From 69ffb410f8d391885843f51807998debdcefe4f2 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 18 Mar 2024 15:54:51 -0500 Subject: [PATCH] Document `Param` trait (#2938) --- .../extensions/mod/Win32/Foundation/BOOL.rs | 6 +- .../mod/Win32/Foundation/BOOLEAN.rs | 6 +- crates/libs/bindgen/src/rust/structs.rs | 2 +- crates/libs/bindgen/src/rust/winrt_methods.rs | 2 +- crates/libs/bindgen/src/rust/writer.rs | 4 +- crates/libs/core/src/imp/com_bindings.rs | 8 +- crates/libs/core/src/param.rs | 111 +- crates/libs/core/src/type.rs | 18 +- crates/libs/core/src/variant.rs | 4 +- .../src/Windows/AI/MachineLearning/mod.rs | 320 +- .../ApplicationModel/Activation/mod.rs | 4 +- .../ApplicationModel/AppExtensions/mod.rs | 20 +- .../ApplicationModel/AppService/mod.rs | 32 +- .../Appointments/DataProvider/mod.rs | 28 +- .../ApplicationModel/Appointments/mod.rs | 164 +- .../ApplicationModel/Background/mod.rs | 140 +- .../ApplicationModel/Calls/Provider/mod.rs | 8 +- .../src/Windows/ApplicationModel/Calls/mod.rs | 172 +- .../src/Windows/ApplicationModel/Chat/mod.rs | 120 +- .../CommunicationBlocking/mod.rs | 8 +- .../Contacts/DataProvider/mod.rs | 24 +- .../ApplicationModel/Contacts/Provider/mod.rs | 12 +- .../Windows/ApplicationModel/Contacts/mod.rs | 328 +- .../ConversationalAgent/mod.rs | 52 +- .../src/Windows/ApplicationModel/Core/mod.rs | 76 +- .../DataTransfer/DragDrop/Core/mod.rs | 44 +- .../DataTransfer/ShareTarget/mod.rs | 8 +- .../ApplicationModel/DataTransfer/mod.rs | 156 +- .../Email/DataProvider/mod.rs | 80 +- .../src/Windows/ApplicationModel/Email/mod.rs | 186 +- .../ExtendedExecution/Foreground/mod.rs | 4 +- .../ApplicationModel/ExtendedExecution/mod.rs | 4 +- .../ApplicationModel/Holographic/mod.rs | 8 +- .../ApplicationModel/LockScreen/mod.rs | 20 +- .../ApplicationModel/Payments/Provider/mod.rs | 20 +- .../Windows/ApplicationModel/Payments/mod.rs | 154 +- .../Preview/Holographic/mod.rs | 12 +- .../Preview/InkWorkspace/mod.rs | 4 +- .../ApplicationModel/Preview/Notes/mod.rs | 34 +- .../ApplicationModel/Resources/Core/mod.rs | 56 +- .../Resources/Management/mod.rs | 18 +- .../Windows/ApplicationModel/Resources/mod.rs | 12 +- .../ApplicationModel/Search/Core/mod.rs | 16 +- .../Windows/ApplicationModel/Search/mod.rs | 36 +- .../Store/LicenseManagement/mod.rs | 10 +- .../Store/Preview/InstallControl/mod.rs | 88 +- .../ApplicationModel/Store/Preview/mod.rs | 64 +- .../src/Windows/ApplicationModel/Store/mod.rs | 36 +- .../UserActivities/Core/mod.rs | 8 +- .../ApplicationModel/UserActivities/mod.rs | 52 +- .../UserDataAccounts/SystemAccess/mod.rs | 24 +- .../ApplicationModel/UserDataAccounts/mod.rs | 12 +- .../UserDataTasks/DataProvider/mod.rs | 24 +- .../ApplicationModel/UserDataTasks/mod.rs | 76 +- .../ApplicationModel/VoiceCommands/mod.rs | 80 +- .../ApplicationModel/Wallet/System/mod.rs | 20 +- .../Windows/ApplicationModel/Wallet/mod.rs | 64 +- .../src/Windows/ApplicationModel/mod.rs | 56 +- .../libs/windows/src/Windows/Data/Json/mod.rs | 36 +- .../libs/windows/src/Windows/Data/Pdf/mod.rs | 26 +- .../libs/windows/src/Windows/Data/Text/mod.rs | 28 +- .../windows/src/Windows/Data/Xml/Dom/mod.rs | 654 +- .../windows/src/Windows/Data/Xml/Xsl/mod.rs | 12 +- .../windows/src/Windows/Devices/Adc/mod.rs | 4 +- .../Devices/Bluetooth/Advertisement/mod.rs | 64 +- .../Devices/Bluetooth/Background/mod.rs | 12 +- .../Bluetooth/GenericAttributeProfile/mod.rs | 136 +- .../Windows/Devices/Bluetooth/Rfcomm/mod.rs | 36 +- .../src/Windows/Devices/Bluetooth/mod.rs | 72 +- .../windows/src/Windows/Devices/Custom/mod.rs | 16 +- .../src/Windows/Devices/Display/Core/mod.rs | 182 +- .../Windows/Devices/Enumeration/Pnp/mod.rs | 48 +- .../src/Windows/Devices/Enumeration/mod.rs | 100 +- .../Devices/Geolocation/Geofencing/mod.rs | 24 +- .../Devices/Geolocation/Provider/mod.rs | 4 +- .../src/Windows/Devices/Geolocation/mod.rs | 44 +- .../src/Windows/Devices/Gpio/Provider/mod.rs | 4 +- .../windows/src/Windows/Devices/Gpio/mod.rs | 20 +- .../src/Windows/Devices/Haptics/mod.rs | 16 +- .../Devices/HumanInterfaceDevice/mod.rs | 44 +- .../src/Windows/Devices/I2c/Provider/mod.rs | 4 +- .../windows/src/Windows/Devices/I2c/mod.rs | 16 +- .../src/Windows/Devices/Input/Preview/mod.rs | 28 +- .../windows/src/Windows/Devices/Input/mod.rs | 32 +- .../src/Windows/Devices/Lights/Effects/mod.rs | 52 +- .../windows/src/Windows/Devices/Lights/mod.rs | 12 +- .../windows/src/Windows/Devices/Midi/mod.rs | 40 +- .../Devices/PointOfService/Provider/mod.rs | 54 +- .../src/Windows/Devices/PointOfService/mod.rs | 334 +- .../windows/src/Windows/Devices/Power/mod.rs | 4 +- .../Devices/Printers/Extensions/mod.rs | 20 +- .../src/Windows/Devices/Printers/mod.rs | 136 +- .../windows/src/Windows/Devices/Pwm/mod.rs | 4 +- .../windows/src/Windows/Devices/Radios/mod.rs | 4 +- .../src/Windows/Devices/Scanners/mod.rs | 8 +- .../src/Windows/Devices/Sensors/Custom/mod.rs | 4 +- .../src/Windows/Devices/Sensors/mod.rs | 124 +- .../Devices/SerialCommunication/mod.rs | 8 +- .../src/Windows/Devices/SmartCards/mod.rs | 184 +- .../windows/src/Windows/Devices/Sms/mod.rs | 98 +- .../src/Windows/Devices/Spi/Provider/mod.rs | 4 +- .../windows/src/Windows/Devices/Spi/mod.rs | 16 +- .../windows/src/Windows/Devices/Usb/mod.rs | 72 +- .../windows/src/Windows/Devices/WiFi/mod.rs | 46 +- .../Devices/WiFiDirect/Services/mod.rs | 56 +- .../src/Windows/Devices/WiFiDirect/mod.rs | 40 +- .../libs/windows/src/Windows/Devices/mod.rs | 16 +- .../src/Windows/Foundation/Collections/mod.rs | 128 +- .../src/Windows/Foundation/Diagnostics/mod.rs | 186 +- .../windows/src/Windows/Foundation/mod.rs | 84 +- .../src/Windows/Gaming/Input/Custom/mod.rs | 34 +- .../Windows/Gaming/Input/ForceFeedback/mod.rs | 8 +- .../src/Windows/Gaming/Input/Preview/mod.rs | 8 +- .../windows/src/Windows/Gaming/Input/mod.rs | 156 +- .../Gaming/Preview/GamesEnumeration/mod.rs | 58 +- .../libs/windows/src/Windows/Gaming/UI/mod.rs | 16 +- .../Windows/Gaming/XboxLive/Storage/mod.rs | 28 +- .../Windows/Globalization/Collation/mod.rs | 4 +- .../Globalization/DateTimeFormatting/mod.rs | 16 +- .../Globalization/NumberFormatting/mod.rs | 40 +- .../PhoneNumberFormatting/mod.rs | 12 +- .../windows/src/Windows/Globalization/mod.rs | 28 +- .../src/Windows/Graphics/Capture/mod.rs | 28 +- .../src/Windows/Graphics/Display/Core/mod.rs | 20 +- .../src/Windows/Graphics/Display/mod.rs | 84 +- .../src/Windows/Graphics/Holographic/mod.rs | 68 +- .../src/Windows/Graphics/Imaging/mod.rs | 136 +- .../Graphics/Printing/OptionDetails/mod.rs | 100 +- .../Graphics/Printing/PrintSupport/mod.rs | 48 +- .../Graphics/Printing/PrintTicket/mod.rs | 12 +- .../Windows/Graphics/Printing/Workflow/mod.rs | 92 +- .../src/Windows/Graphics/Printing/mod.rs | 36 +- .../src/Windows/Graphics/Printing3D/mod.rs | 104 +- .../src/Windows/Management/Deployment/mod.rs | 264 +- .../src/Windows/Management/Policies/mod.rs | 8 +- .../src/Windows/Management/Update/mod.rs | 60 +- .../windows/src/Windows/Management/mod.rs | 4 +- .../src/Windows/Media/AppBroadcasting/mod.rs | 8 +- .../src/Windows/Media/AppRecording/mod.rs | 14 +- .../windows/src/Windows/Media/Audio/mod.rs | 362 +- .../src/Windows/Media/Capture/Core/mod.rs | 8 +- .../src/Windows/Media/Capture/Frames/mod.rs | 38 +- .../windows/src/Windows/Media/Capture/mod.rs | 416 +- .../windows/src/Windows/Media/Casting/mod.rs | 36 +- .../src/Windows/Media/ClosedCaptioning/mod.rs | 4 +- .../Windows/Media/ContentRestrictions/mod.rs | 20 +- .../windows/src/Windows/Media/Control/mod.rs | 20 +- .../src/Windows/Media/Core/Preview/mod.rs | 4 +- .../windows/src/Windows/Media/Core/mod.rs | 424 +- .../src/Windows/Media/Devices/Core/mod.rs | 44 +- .../windows/src/Windows/Media/Devices/mod.rs | 134 +- .../src/Windows/Media/DialProtocol/mod.rs | 24 +- .../windows/src/Windows/Media/Editing/mod.rs | 62 +- .../windows/src/Windows/Media/Effects/mod.rs | 64 +- .../src/Windows/Media/FaceAnalysis/mod.rs | 12 +- .../windows/src/Windows/Media/Import/mod.rs | 16 +- .../src/Windows/Media/MediaProperties/mod.rs | 36 +- .../windows/src/Windows/Media/Miracast/mod.rs | 60 +- .../libs/windows/src/Windows/Media/Ocr/mod.rs | 12 +- .../windows/src/Windows/Media/PlayTo/mod.rs | 68 +- .../windows/src/Windows/Media/Playback/mod.rs | 374 +- .../src/Windows/Media/Playlists/mod.rs | 12 +- .../Windows/Media/Protection/PlayReady/mod.rs | 226 +- .../src/Windows/Media/Protection/mod.rs | 40 +- .../Windows/Media/SpeechRecognition/mod.rs | 52 +- .../src/Windows/Media/SpeechSynthesis/mod.rs | 16 +- .../Windows/Media/Streaming/Adaptive/mod.rs | 88 +- .../src/Windows/Media/Transcoding/mod.rs | 32 +- crates/libs/windows/src/Windows/Media/mod.rs | 202 +- .../Networking/BackgroundTransfer/mod.rs | 156 +- .../Windows/Networking/Connectivity/mod.rs | 58 +- .../Networking/NetworkOperators/mod.rs | 128 +- .../src/Windows/Networking/Proximity/mod.rs | 90 +- .../Networking/PushNotifications/mod.rs | 20 +- .../Networking/ServiceDiscovery/Dnssd/mod.rs | 44 +- .../src/Windows/Networking/Sockets/mod.rs | 218 +- .../windows/src/Windows/Networking/Vpn/mod.rs | 328 +- .../src/Windows/Networking/XboxLive/mod.rs | 58 +- .../windows/src/Windows/Networking/mod.rs | 18 +- .../Windows/Perception/Automation/Core/mod.rs | 4 +- .../src/Windows/Perception/People/mod.rs | 12 +- .../Windows/Perception/Spatial/Preview/mod.rs | 12 +- .../Perception/Spatial/Surfaces/mod.rs | 20 +- .../src/Windows/Perception/Spatial/mod.rs | 132 +- .../src/Windows/Phone/Devices/Power/mod.rs | 4 +- .../Phone/Management/Deployment/mod.rs | 20 +- .../src/Windows/Phone/Media/Devices/mod.rs | 4 +- .../Phone/Notification/Management/mod.rs | 12 +- .../PersonalInformation/Provisioning/mod.rs | 22 +- .../Windows/Phone/PersonalInformation/mod.rs | 34 +- .../src/Windows/Phone/System/Power/mod.rs | 4 +- .../UserProfile/GameServices/Core/mod.rs | 12 +- .../windows/src/Windows/Phone/UI/Input/mod.rs | 16 +- .../Authentication/Identity/Core/mod.rs | 16 +- .../Security/Authentication/OnlineId/mod.rs | 24 +- .../Security/Authentication/Web/Core/mod.rs | 86 +- .../Authentication/Web/Provider/mod.rs | 164 +- .../Security/Authentication/Web/mod.rs | 36 +- .../Authorization/AppCapabilityAccess/mod.rs | 18 +- .../Windows/Security/Credentials/UI/mod.rs | 8 +- .../src/Windows/Security/Credentials/mod.rs | 28 +- .../Security/Cryptography/Certificates/mod.rs | 98 +- .../Windows/Security/Cryptography/Core/mod.rs | 166 +- .../Cryptography/DataProtection/mod.rs | 20 +- .../src/Windows/Security/Cryptography/mod.rs | 22 +- .../Windows/Security/DataProtection/mod.rs | 24 +- .../Windows/Security/EnterpriseData/mod.rs | 180 +- .../src/Windows/Security/Isolation/mod.rs | 76 +- .../src/Windows/Services/Maps/Guidance/mod.rs | 56 +- .../Windows/Services/Maps/LocalSearch/mod.rs | 8 +- .../Windows/Services/Maps/OfflineMaps/mod.rs | 16 +- .../windows/src/Windows/Services/Maps/mod.rs | 116 +- .../windows/src/Windows/Services/Store/mod.rs | 140 +- .../Windows/Services/TargetedContent/mod.rs | 12 +- .../src/Windows/Storage/AccessCache/mod.rs | 86 +- .../src/Windows/Storage/BulkAccess/mod.rs | 96 +- .../src/Windows/Storage/Compression/mod.rs | 20 +- .../src/Windows/Storage/FileProperties/mod.rs | 80 +- .../Windows/Storage/Pickers/Provider/mod.rs | 28 +- .../src/Windows/Storage/Pickers/mod.rs | 24 +- .../src/Windows/Storage/Provider/mod.rs | 98 +- .../windows/src/Windows/Storage/Search/mod.rs | 154 +- .../src/Windows/Storage/Streams/mod.rs | 164 +- .../libs/windows/src/Windows/Storage/mod.rs | 318 +- .../System/Diagnostics/DevicePortal/mod.rs | 32 +- .../System/Diagnostics/Telemetry/mod.rs | 4 +- .../System/Diagnostics/TraceReporting/mod.rs | 4 +- .../src/Windows/System/Diagnostics/mod.rs | 8 +- .../System/Implementation/FileExplorer/mod.rs | 8 +- .../windows/src/Windows/System/Power/mod.rs | 36 +- .../windows/src/Windows/System/Profile/mod.rs | 32 +- .../Windows/System/RemoteDesktop/Input/mod.rs | 4 +- .../System/RemoteDesktop/Provider/mod.rs | 16 +- .../src/Windows/System/RemoteSystems/mod.rs | 142 +- .../src/Windows/System/Threading/Core/mod.rs | 32 +- .../src/Windows/System/Threading/mod.rs | 44 +- .../windows/src/Windows/System/Update/mod.rs | 4 +- .../src/Windows/System/UserProfile/mod.rs | 68 +- crates/libs/windows/src/Windows/System/mod.rs | 324 +- .../src/Windows/UI/Accessibility/mod.rs | 4 +- .../src/Windows/UI/ApplicationSettings/mod.rs | 66 +- .../src/Windows/UI/Composition/Core/mod.rs | 4 +- .../src/Windows/UI/Composition/Desktop/mod.rs | 30 +- .../Windows/UI/Composition/Diagnostics/mod.rs | 20 +- .../src/Windows/UI/Composition/Effects/mod.rs | 4 +- .../UI/Composition/Interactions/mod.rs | 484 +- .../src/Windows/UI/Composition/Scenes/mod.rs | 558 +- .../windows/src/Windows/UI/Composition/mod.rs | 3310 +++--- .../src/Windows/UI/Core/Preview/mod.rs | 8 +- .../libs/windows/src/Windows/UI/Core/mod.rs | 428 +- .../windows/src/Windows/UI/Input/Core/mod.rs | 4 +- .../Windows/UI/Input/Inking/Analysis/mod.rs | 16 +- .../src/Windows/UI/Input/Inking/Core/mod.rs | 72 +- .../Windows/UI/Input/Inking/Preview/mod.rs | 10 +- .../src/Windows/UI/Input/Inking/mod.rs | 224 +- .../Windows/UI/Input/Preview/Injection/mod.rs | 20 +- .../src/Windows/UI/Input/Preview/mod.rs | 4 +- .../src/Windows/UI/Input/Spatial/mod.rs | 146 +- .../libs/windows/src/Windows/UI/Input/mod.rs | 180 +- .../UI/Notifications/Management/mod.rs | 4 +- .../src/Windows/UI/Notifications/mod.rs | 192 +- .../libs/windows/src/Windows/UI/Popups/mod.rs | 38 +- .../libs/windows/src/Windows/UI/Shell/mod.rs | 100 +- .../windows/src/Windows/UI/StartScreen/mod.rs | 90 +- .../windows/src/Windows/UI/Text/Core/mod.rs | 44 +- .../libs/windows/src/Windows/UI/Text/mod.rs | 164 +- .../src/Windows/UI/UIAutomation/Core/mod.rs | 36 +- .../src/Windows/UI/ViewManagement/Core/mod.rs | 44 +- .../src/Windows/UI/ViewManagement/mod.rs | 136 +- .../windows/src/Windows/UI/WebUI/Core/mod.rs | 36 +- .../libs/windows/src/Windows/UI/WebUI/mod.rs | 186 +- .../UI/WindowManagement/Preview/mod.rs | 4 +- .../src/Windows/UI/WindowManagement/mod.rs | 88 +- .../Wdk/Devices/HumanInterfaceDevice/mod.rs | 8 +- .../windows/src/Windows/Wdk/Foundation/mod.rs | 8 +- .../src/Windows/Wdk/Graphics/Direct3D/mod.rs | 12 +- .../Windows/Wdk/NetworkManagement/Ndis/mod.rs | 28 +- .../WindowsFilteringPlatform/mod.rs | 684 +- .../Wdk/Storage/FileSystem/Minifilters/mod.rs | 698 +- .../src/Windows/Wdk/Storage/FileSystem/mod.rs | 1183 +-- .../windows/src/Windows/Wdk/System/IO/mod.rs | 6 +- .../Windows/Wdk/System/OfflineRegistry/mod.rs | 100 +- .../src/Windows/Wdk/System/Registry/mod.rs | 39 +- .../Windows/Wdk/System/SystemServices/mod.rs | 1372 +-- .../src/Windows/Wdk/System/Threading/mod.rs | 22 +- .../windows/src/Windows/Web/AtomPub/mod.rs | 76 +- .../src/Windows/Web/Http/Diagnostics/mod.rs | 16 +- .../src/Windows/Web/Http/Filters/mod.rs | 28 +- .../src/Windows/Web/Http/Headers/mod.rs | 312 +- .../libs/windows/src/Windows/Web/Http/mod.rs | 204 +- .../src/Windows/Web/Syndication/mod.rs | 182 +- .../windows/src/Windows/Web/UI/Interop/mod.rs | 118 +- crates/libs/windows/src/Windows/Web/UI/mod.rs | 102 +- crates/libs/windows/src/Windows/Web/mod.rs | 4 +- .../Win32/AI/MachineLearning/DirectML/mod.rs | 116 +- .../Win32/AI/MachineLearning/WinML/mod.rs | 108 +- .../src/Windows/Win32/Data/HtmlHelp/mod.rs | 90 +- .../Win32/Data/RightsManagement/mod.rs | 264 +- .../src/Windows/Win32/Data/Xml/MsXml/mod.rs | 2580 ++--- .../src/Windows/Win32/Data/Xml/XmlLite/mod.rs | 240 +- .../src/Windows/Win32/Devices/AllJoyn/mod.rs | 2634 ++--- .../Win32/Devices/BiometricFramework/mod.rs | 14 +- .../Windows/Win32/Devices/Bluetooth/mod.rs | 136 +- .../Win32/Devices/Communication/mod.rs | 116 +- .../Windows/Win32/Devices/DeviceAccess/mod.rs | 8 +- .../DeviceAndDriverInstallation/mod.rs | 1716 +-- .../Windows/Win32/Devices/DeviceQuery/mod.rs | 32 +- .../src/Windows/Win32/Devices/Display/mod.rs | 238 +- .../Win32/Devices/Enumeration/Pnp/mod.rs | 266 +- .../src/Windows/Win32/Devices/Fax/mod.rs | 1134 +- .../Win32/Devices/FunctionDiscovery/mod.rs | 184 +- .../Windows/Win32/Devices/Geolocation/mod.rs | 18 +- .../Win32/Devices/HumanInterfaceDevice/mod.rs | 564 +- .../Win32/Devices/ImageAcquisition/mod.rs | 328 +- .../Win32/Devices/PortableDevices/mod.rs | 344 +- .../src/Windows/Win32/Devices/Sensors/mod.rs | 64 +- .../Win32/Devices/SerialCommunication/mod.rs | 26 +- .../src/Windows/Win32/Devices/Tapi/mod.rs | 1154 +- .../src/Windows/Win32/Devices/Usb/mod.rs | 114 +- .../Win32/Devices/WebServicesOnDevices/mod.rs | 522 +- .../src/Windows/Win32/Foundation/mod.rs | 88 +- .../windows/src/Windows/Win32/Gaming/mod.rs | 144 +- .../src/Windows/Win32/Globalization/mod.rs | 1674 +-- .../Graphics/CompositionSwapchain/mod.rs | 20 +- .../src/Windows/Win32/Graphics/DXCore/mod.rs | 4 +- .../Windows/Win32/Graphics/Direct2D/mod.rs | 4134 ++++---- .../Win32/Graphics/Direct3D/Dxc/mod.rs | 200 +- .../Win32/Graphics/Direct3D/Fxc/mod.rs | 60 +- .../Windows/Win32/Graphics/Direct3D/mod.rs | 4 +- .../Windows/Win32/Graphics/Direct3D10/mod.rs | 664 +- .../Windows/Win32/Graphics/Direct3D11/mod.rs | 3398 +++--- .../Win32/Graphics/Direct3D11on12/mod.rs | 26 +- .../Windows/Win32/Graphics/Direct3D12/mod.rs | 3158 +++--- .../Windows/Win32/Graphics/Direct3D9/mod.rs | 290 +- .../Win32/Graphics/Direct3D9on12/mod.rs | 10 +- .../Win32/Graphics/DirectComposition/mod.rs | 680 +- .../Windows/Win32/Graphics/DirectDraw/mod.rs | 384 +- .../Win32/Graphics/DirectManipulation/mod.rs | 202 +- .../Windows/Win32/Graphics/DirectWrite/mod.rs | 2402 ++--- .../src/Windows/Win32/Graphics/Dwm/mod.rs | 88 +- .../src/Windows/Win32/Graphics/Dxgi/mod.rs | 858 +- .../src/Windows/Win32/Graphics/Gdi/mod.rs | 1618 +-- .../src/Windows/Win32/Graphics/GdiPlus/mod.rs | 328 +- .../Windows/Win32/Graphics/Imaging/D2D/mod.rs | 60 +- .../src/Windows/Win32/Graphics/Imaging/mod.rs | 358 +- .../src/Windows/Win32/Graphics/OpenGL/mod.rs | 96 +- .../Graphics/Printing/PrintTicket/mod.rs | 64 +- .../Windows/Win32/Graphics/Printing/mod.rs | 2022 ++-- .../MobileDeviceManagementRegistration/mod.rs | 48 +- .../src/Windows/Win32/Media/Audio/Apo/mod.rs | 40 +- .../Win32/Media/Audio/DirectMusic/mod.rs | 140 +- .../Win32/Media/Audio/DirectSound/mod.rs | 70 +- .../Win32/Media/Audio/Endpoints/mod.rs | 52 +- .../Windows/Win32/Media/Audio/XAudio2/mod.rs | 84 +- .../src/Windows/Win32/Media/Audio/mod.rs | 704 +- .../Windows/Win32/Media/DeviceManager/mod.rs | 480 +- .../Windows/Win32/Media/DirectShow/Tv/mod.rs | 2244 ++-- .../Windows/Win32/Media/DirectShow/Xml/mod.rs | 18 +- .../src/Windows/Win32/Media/DirectShow/mod.rs | 1514 +-- .../Windows/Win32/Media/DxMediaObjects/mod.rs | 8 +- .../Win32/Media/KernelStreaming/mod.rs | 110 +- .../Win32/Media/LibrarySharingServices/mod.rs | 54 +- .../Win32/Media/MediaFoundation/mod.rs | 3880 +++---- .../Windows/Win32/Media/MediaPlayer/mod.rs | 2226 ++-- .../src/Windows/Win32/Media/Multimedia/mod.rs | 526 +- .../Win32/Media/PictureAcquisition/mod.rs | 188 +- .../src/Windows/Win32/Media/Speech/mod.rs | 1892 ++-- .../Win32/Media/WindowsMediaFormat/mod.rs | 1322 +-- .../windows/src/Windows/Win32/Media/mod.rs | 16 +- .../Win32/NetworkManagement/Dhcp/mod.rs | 908 +- .../Win32/NetworkManagement/Dns/mod.rs | 120 +- .../Win32/NetworkManagement/IpHelper/mod.rs | 162 +- .../NetworkManagement/MobileBroadband/mod.rs | 336 +- .../Win32/NetworkManagement/Multicast/mod.rs | 4 +- .../NetworkManagement/NetManagement/mod.rs | 1068 +- .../Win32/NetworkManagement/NetShell/mod.rs | 28 +- .../NetworkDiagnosticsFramework/mod.rs | 70 +- .../NetworkPolicyServer/mod.rs | 72 +- .../Win32/NetworkManagement/P2P/mod.rs | 326 +- .../Win32/NetworkManagement/QoS/mod.rs | 136 +- .../Win32/NetworkManagement/Rras/mod.rs | 862 +- .../Win32/NetworkManagement/Snmp/mod.rs | 30 +- .../Win32/NetworkManagement/WNet/mod.rs | 230 +- .../Win32/NetworkManagement/WebDav/mod.rs | 42 +- .../Win32/NetworkManagement/WiFi/mod.rs | 304 +- .../WindowsConnectNow/mod.rs | 8 +- .../WindowsConnectionManager/mod.rs | 26 +- .../WindowsFilteringPlatform/mod.rs | 858 +- .../NetworkManagement/WindowsFirewall/mod.rs | 538 +- .../WindowsNetworkVirtualization/mod.rs | 4 +- .../Win32/Networking/ActiveDirectory/mod.rs | 2412 ++--- .../mod.rs | 400 +- .../Win32/Networking/Clustering/mod.rs | 2414 ++--- .../Win32/Networking/HttpServer/mod.rs | 138 +- .../src/Windows/Win32/Networking/Ldap/mod.rs | 776 +- .../Networking/NetworkListManager/mod.rs | 20 +- .../RemoteDifferentialCompression/mod.rs | 76 +- .../Windows/Win32/Networking/WebSocket/mod.rs | 42 +- .../Windows/Win32/Networking/WinHttp/mod.rs | 118 +- .../Windows/Win32/Networking/WinInet/mod.rs | 958 +- .../Windows/Win32/Networking/WinSock/mod.rs | 562 +- .../Networking/WindowsWebServices/mod.rs | 42 +- .../Windows/Win32/Security/AppLocker/mod.rs | 30 +- .../Authentication/Identity/Provider/mod.rs | 124 +- .../Security/Authentication/Identity/mod.rs | 470 +- .../Win32/Security/Authorization/UI/mod.rs | 52 +- .../Win32/Security/Authorization/mod.rs | 2904 ++--- .../Win32/Security/ConfigurationSnapin/mod.rs | 4 +- .../Windows/Win32/Security/Credentials/mod.rs | 342 +- .../Security/Cryptography/Catalog/mod.rs | 116 +- .../Security/Cryptography/Certificates/mod.rs | 4068 +++---- .../Win32/Security/Cryptography/Sip/mod.rs | 12 +- .../Win32/Security/Cryptography/UI/mod.rs | 36 +- .../Win32/Security/Cryptography/mod.rs | 1094 +- .../Win32/Security/DiagnosticDataQuery/mod.rs | 144 +- .../Win32/Security/DirectoryServices/mod.rs | 42 +- .../Win32/Security/EnterpriseData/mod.rs | 116 +- .../ExtensibleAuthenticationProtocol/mod.rs | 136 +- .../Windows/Win32/Security/Isolation/mod.rs | 78 +- .../Win32/Security/LicenseProtection/mod.rs | 8 +- .../src/Windows/Win32/Security/Tpm/mod.rs | 129 +- .../Windows/Win32/Security/WinTrust/mod.rs | 36 +- .../windows/src/Windows/Win32/Security/mod.rs | 719 +- .../src/Windows/Win32/Storage/Cabinets/mod.rs | 22 +- .../Windows/Win32/Storage/CloudFilters/mod.rs | 124 +- .../Windows/Win32/Storage/Compression/mod.rs | 20 +- .../Win32/Storage/DataDeduplication/mod.rs | 32 +- .../Storage/DistributedFileSystem/mod.rs | 150 +- .../Win32/Storage/EnhancedStorage/mod.rs | 4 +- .../Windows/Win32/Storage/FileHistory/mod.rs | 72 +- .../Storage/FileServerResourceManager/mod.rs | 906 +- .../Windows/Win32/Storage/FileSystem/mod.rs | 1700 +-- .../src/Windows/Win32/Storage/Imapi/mod.rs | 604 +- .../Windows/Win32/Storage/IndexServer/mod.rs | 32 +- .../Storage/InstallableFileSystems/mod.rs | 122 +- .../Windows/Win32/Storage/IscsiDisc/mod.rs | 220 +- .../src/Windows/Win32/Storage/Jet/mod.rs | 928 +- .../Windows/Win32/Storage/OfflineFiles/mod.rs | 610 +- .../Win32/Storage/Packaging/Appx/mod.rs | 566 +- .../Win32/Storage/Packaging/Opc/mod.rs | 176 +- .../Win32/Storage/ProjectedFileSystem/mod.rs | 90 +- .../src/Windows/Win32/Storage/Vhd/mod.rs | 120 +- .../Win32/Storage/VirtualDiskService/mod.rs | 228 +- .../src/Windows/Win32/Storage/Vss/mod.rs | 366 +- .../Windows/Win32/Storage/Xps/Printing/mod.rs | 34 +- .../src/Windows/Win32/Storage/Xps/mod.rs | 1464 +-- .../Windows/Win32/System/AddressBook/mod.rs | 270 +- .../Windows/Win32/System/Antimalware/mod.rs | 74 +- .../mod.rs | 1958 ++-- .../Win32/System/ApplicationVerifier/mod.rs | 4 +- .../Win32/System/AssessmentTool/mod.rs | 110 +- .../Windows/Win32/System/ClrHosting/mod.rs | 490 +- .../Windows/Win32/System/Com/CallObj/mod.rs | 50 +- .../System/Com/ChannelCredentials/mod.rs | 84 +- .../Windows/Win32/System/Com/Events/mod.rs | 310 +- .../Windows/Win32/System/Com/Marshal/mod.rs | 66 +- .../Win32/System/Com/StructuredStorage/mod.rs | 292 +- .../src/Windows/Win32/System/Com/UI/mod.rs | 14 +- .../Windows/Win32/System/Com/Urlmon/mod.rs | 724 +- .../src/Windows/Win32/System/Com/mod.rs | 724 +- .../Win32/System/ComponentServices/mod.rs | 834 +- .../src/Windows/Win32/System/Console/mod.rs | 298 +- .../src/Windows/Win32/System/Contacts/mod.rs | 216 +- .../Windows/Win32/System/DataExchange/mod.rs | 224 +- .../Win32/System/DeploymentServices/mod.rs | 506 +- .../Win32/System/DesktopSharing/mod.rs | 146 +- .../Win32/System/DeveloperLicensing/mod.rs | 8 +- .../System/Diagnostics/ClrProfiling/mod.rs | 706 +- .../Diagnostics/Debug/ActiveScript/mod.rs | 916 +- .../Diagnostics/Debug/Extensions/mod.rs | 4338 ++++---- .../Win32/System/Diagnostics/Debug/mod.rs | 1282 +-- .../Win32/System/Diagnostics/Etw/mod.rs | 176 +- .../Diagnostics/ProcessSnapshotting/mod.rs | 44 +- .../Win32/System/Diagnostics/ToolHelp/mod.rs | 48 +- .../DistributedTransactionCoordinator/mod.rs | 344 +- .../Windows/Win32/System/Environment/mod.rs | 102 +- .../Win32/System/ErrorReporting/mod.rs | 148 +- .../Win32/System/EventCollector/mod.rs | 20 +- .../src/Windows/Win32/System/EventLog/mod.rs | 266 +- .../System/EventNotificationService/mod.rs | 80 +- .../Windows/Win32/System/GroupPolicy/mod.rs | 759 +- .../Win32/System/HostComputeNetwork/mod.rs | 84 +- .../Win32/System/HostComputeSystem/mod.rs | 378 +- .../Windows/Win32/System/Hypervisor/mod.rs | 346 +- .../src/Windows/Win32/System/IO/mod.rs | 52 +- .../src/Windows/Win32/System/Iis/mod.rs | 454 +- .../Windows/Win32/System/JobObjects/mod.rs | 62 +- .../src/Windows/Win32/System/Js/mod.rs | 52 +- .../Windows/Win32/System/LibraryLoader/mod.rs | 242 +- .../src/Windows/Win32/System/Mailslots/mod.rs | 16 +- .../src/Windows/Win32/System/Memory/mod.rs | 280 +- .../Win32/System/MessageQueuing/mod.rs | 566 +- .../src/Windows/Win32/System/Mmc/mod.rs | 644 +- .../src/Windows/Win32/System/Ole/mod.rs | 1508 +-- .../Win32/System/ParentalControls/mod.rs | 42 +- .../Win32/System/PasswordManagement/mod.rs | 16 +- .../HardwareCounterProfiling/mod.rs | 16 +- .../Windows/Win32/System/Performance/mod.rs | 1410 +-- .../src/Windows/Win32/System/Pipes/mod.rs | 101 +- .../src/Windows/Win32/System/Power/mod.rs | 234 +- .../Windows/Win32/System/ProcessStatus/mod.rs | 164 +- .../System/RealTimeCommunications/mod.rs | 612 +- .../src/Windows/Win32/System/Recovery/mod.rs | 16 +- .../src/Windows/Win32/System/Registry/mod.rs | 508 +- .../Win32/System/RemoteAssistance/mod.rs | 12 +- .../Windows/Win32/System/RemoteDesktop/mod.rs | 1448 +-- .../Win32/System/RemoteManagement/mod.rs | 294 +- .../Win32/System/RestartManager/mod.rs | 16 +- .../src/Windows/Win32/System/Rpc/mod.rs | 426 +- .../src/Windows/Win32/System/Search/mod.rs | 1314 +-- .../Win32/System/SecurityCenter/mod.rs | 8 +- .../Windows/Win32/System/ServerBackup/mod.rs | 28 +- .../src/Windows/Win32/System/Services/mod.rs | 300 +- .../SettingsManagementInfrastructure/mod.rs | 168 +- .../src/Windows/Win32/System/Shutdown/mod.rs | 78 +- .../src/Windows/Win32/System/SideShow/mod.rs | 44 +- .../Win32/System/StationsAndDesktops/mod.rs | 146 +- .../Win32/System/SubsystemForLinux/mod.rs | 44 +- .../Win32/System/SystemInformation/mod.rs | 36 +- .../Windows/Win32/System/TaskScheduler/mod.rs | 956 +- .../src/Windows/Win32/System/Threading/mod.rs | 932 +- .../Win32/System/TransactionServer/mod.rs | 70 +- .../Windows/Win32/System/UpdateAgent/mod.rs | 730 +- .../Win32/System/UserAccessLogging/mod.rs | 8 +- .../src/Windows/Win32/System/Variant/mod.rs | 12 +- .../Win32/System/WinRT/Composition/mod.rs | 38 +- .../Win32/System/WinRT/CoreInputView/mod.rs | 4 +- .../Win32/System/WinRT/Direct3D11/mod.rs | 8 +- .../Windows/Win32/System/WinRT/Display/mod.rs | 8 +- .../System/WinRT/Graphics/Capture/mod.rs | 8 +- .../System/WinRT/Graphics/Direct2D/mod.rs | 8 +- .../System/WinRT/Graphics/Imaging/mod.rs | 12 +- .../Win32/System/WinRT/Holographic/mod.rs | 74 +- .../Win32/System/WinRT/Isolation/mod.rs | 4 +- .../src/Windows/Win32/System/WinRT/ML/mod.rs | 8 +- .../Windows/Win32/System/WinRT/Media/mod.rs | 14 +- .../Win32/System/WinRT/Metadata/mod.rs | 484 +- .../src/Windows/Win32/System/WinRT/Pdf/mod.rs | 16 +- .../Win32/System/WinRT/Printing/mod.rs | 60 +- .../Windows/Win32/System/WinRT/Shell/mod.rs | 18 +- .../Windows/Win32/System/WinRT/Storage/mod.rs | 14 +- .../src/Windows/Win32/System/WinRT/mod.rs | 176 +- .../Win32/System/WindowsProgramming/mod.rs | 894 +- .../Windows/Win32/System/WindowsSync/mod.rs | 444 +- .../src/Windows/Win32/System/Wmi/mod.rs | 1874 ++-- .../src/Windows/Win32/UI/Accessibility/mod.rs | 2480 ++--- .../src/Windows/Win32/UI/Animation/mod.rs | 298 +- .../src/Windows/Win32/UI/ColorSystem/mod.rs | 304 +- .../Windows/Win32/UI/Controls/Dialogs/mod.rs | 16 +- .../Windows/Win32/UI/Controls/RichEdit/mod.rs | 626 +- .../src/Windows/Win32/UI/Controls/mod.rs | 1012 +- .../windows/src/Windows/Win32/UI/HiDpi/mod.rs | 92 +- .../src/Windows/Win32/UI/Input/Ime/mod.rs | 1292 +-- .../src/Windows/Win32/UI/Input/Ink/mod.rs | 32 +- .../Win32/UI/Input/KeyboardAndMouse/mod.rs | 82 +- .../src/Windows/Win32/UI/Input/Pointer/mod.rs | 24 +- .../src/Windows/Win32/UI/Input/Radial/mod.rs | 12 +- .../src/Windows/Win32/UI/Input/Touch/mod.rs | 40 +- .../Win32/UI/Input/XboxController/mod.rs | 4 +- .../windows/src/Windows/Win32/UI/Input/mod.rs | 12 +- .../Win32/UI/InteractionContext/mod.rs | 116 +- .../LegacyWindowsEnvironmentFeatures/mod.rs | 78 +- .../src/Windows/Win32/UI/Magnification/mod.rs | 48 +- .../src/Windows/Win32/UI/Notifications/mod.rs | 6 +- .../src/Windows/Win32/UI/Ribbon/mod.rs | 58 +- .../src/Windows/Win32/UI/Shell/Common/mod.rs | 8 +- .../Win32/UI/Shell/PropertiesSystem/mod.rs | 436 +- .../windows/src/Windows/Win32/UI/Shell/mod.rs | 9440 ++++++++--------- .../src/Windows/Win32/UI/TabletPC/mod.rs | 1170 +- .../src/Windows/Win32/UI/TextServices/mod.rs | 1010 +- .../Win32/UI/WindowsAndMessaging/mod.rs | 1698 +-- .../windows/src/Windows/Win32/UI/Wpf/mod.rs | 78 +- .../Windows/Win32/Web/InternetExplorer/mod.rs | 940 +- crates/tests/component/src/bindings.rs | 16 +- crates/tests/component_client/src/bindings.rs | 16 +- crates/tests/riddle/src/generic_interfaces.rs | 4 +- crates/tests/standalone/src/b_calendar.rs | 24 +- crates/tests/standalone/src/b_uri.rs | 12 +- 578 files changed, 84677 insertions(+), 84950 deletions(-) diff --git a/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOL.rs b/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOL.rs index d12416f277..60cfd39fca 100644 --- a/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOL.rs +++ b/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOL.rs @@ -66,8 +66,8 @@ impl core::ops::Not for BOOL { } } } -impl windows_core::IntoParam for bool { - unsafe fn into_param(self) -> windows_core::Param { - windows_core::Param::Owned(self.into()) +impl windows_core::Param for bool { + unsafe fn param(self) -> windows_core::ParamValue { + windows_core::ParamValue::Owned(self.into()) } } diff --git a/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOLEAN.rs b/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOLEAN.rs index a494599814..7f6a9cc20d 100644 --- a/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOLEAN.rs +++ b/crates/libs/bindgen/src/rust/extensions/mod/Win32/Foundation/BOOLEAN.rs @@ -66,8 +66,8 @@ impl core::ops::Not for BOOLEAN { } } } -impl windows_core::IntoParam for bool { - unsafe fn into_param(self) -> windows_core::Param { - windows_core::Param::Owned(self.into()) +impl windows_core::Param for bool { + unsafe fn param(self) -> windows_core::ParamValue { + windows_core::ParamValue::Owned(self.into()) } } diff --git a/crates/libs/bindgen/src/rust/structs.rs b/crates/libs/bindgen/src/rust/structs.rs index 9350cfb93a..41f9e9f560 100644 --- a/crates/libs/bindgen/src/rust/structs.rs +++ b/crates/libs/bindgen/src/rust/structs.rs @@ -128,7 +128,7 @@ fn gen_windows_traits(writer: &Writer, def: metadata::TypeDef, name: &TokenStrea let type_kind = if is_copy { quote! { CopyType } } else { - quote! { ValueType } + quote! { CloneType } }; let mut tokens = quote! { diff --git a/crates/libs/bindgen/src/rust/winrt_methods.rs b/crates/libs/bindgen/src/rust/winrt_methods.rs index 784389ecf6..e6aee6b6f0 100644 --- a/crates/libs/bindgen/src/rust/winrt_methods.rs +++ b/crates/libs/bindgen/src/rust/winrt_methods.rs @@ -145,7 +145,7 @@ fn gen_winrt_abi_args(writer: &Writer, params: &[metadata::SignatureParam]) -> T quote! { #name.len().try_into().unwrap(), core::mem::transmute(#name.as_ptr()), } } } else if metadata::type_is_borrowed(¶m.ty) { - quote! { #name.into_param().abi(), } + quote! { #name.param().abi(), } } else if metadata::type_is_blittable(¶m.ty) { if param.ty.is_const_ref() { quote! { &#name, } diff --git a/crates/libs/bindgen/src/rust/writer.rs b/crates/libs/bindgen/src/rust/writer.rs index 6a01363d8f..40e31f0097 100644 --- a/crates/libs/bindgen/src/rust/writer.rs +++ b/crates/libs/bindgen/src/rust/writer.rs @@ -373,7 +373,7 @@ impl Writer { if param.kind == metadata::SignatureParamKind::IntoParam { let name: TokenStream = gen_name(position); let into = self.type_name(¶m.ty); - tokens.combine("e! { #name: windows_core::IntoParam<#into>, }); + tokens.combine("e! { #name: windows_core::Param<#into>, }); } } tokens @@ -982,7 +982,7 @@ impl Writer { } } metadata::SignatureParamKind::IntoParam => { - quote! { #name.into_param().abi(), } + quote! { #name.param().abi(), } } metadata::SignatureParamKind::OptionalPointer => { if flags.contains(metadata::ParamAttributes::Out) { diff --git a/crates/libs/core/src/imp/com_bindings.rs b/crates/libs/core/src/imp/com_bindings.rs index f50a67f706..40a76dd6e3 100644 --- a/crates/libs/core/src/imp/com_bindings.rs +++ b/crates/libs/core/src/imp/com_bindings.rs @@ -8,11 +8,11 @@ pub unsafe fn CoCreateGuid() -> windows_core::Result { #[inline] pub unsafe fn RoGetAgileReference(options: AgileReferenceOptions, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - RoGetAgileReference(options, riid, punk.into_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)] @@ -870,11 +870,11 @@ impl PropertyValue { } pub fn CreateInspectable(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPropertyValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInspectable)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInspectable)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateGuid(value: windows_core::GUID) -> windows_core::Result { diff --git a/crates/libs/core/src/param.rs b/crates/libs/core/src/param.rs index 5061d41c0b..81272e1ff1 100644 --- a/crates/libs/core/src/param.rs +++ b/crates/libs/core/src/param.rs @@ -1,105 +1,108 @@ use super::*; -#[doc(hidden)] -pub enum Param> { - Owned(T), - Borrowed(T::Abi), -} - -impl> Param { - pub fn abi(&self) -> T::Abi { - unsafe { - match self { - Self::Owned(item) => std::mem::transmute_copy(item), - Self::Borrowed(borrowed) => std::mem::transmute_copy(borrowed), - } - } - } -} - -#[doc(hidden)] -pub trait CanInto: Sized { - const QUERY: bool = false; -} - -impl CanInto for T where T: Clone {} - -#[doc(hidden)] -pub trait IntoParam::TypeKind>: Sized +/// Provides automatic parameter conversion in cases where the Windows API expects implicit conversion support. +/// +/// There is no need to implement this trait. Blanket implementations are provided for all applicable Windows types. +pub trait Param::TypeKind>: Sized where T: Type, { - unsafe fn into_param(self) -> Param; + #[doc(hidden)] + unsafe fn param(self) -> ParamValue; } -impl IntoParam for Option<&T> +impl Param for Option<&T> where T: Type, { - unsafe fn into_param(self) -> Param { - Param::Borrowed(match self { + unsafe fn param(self) -> ParamValue { + ParamValue::Borrowed(match self { Some(item) => std::mem::transmute_copy(item), None => std::mem::zeroed(), }) } } -impl IntoParam for &U +impl Param for &U where - T: TypeKind + Clone, + T: TypeKind + Clone, T: Interface, U: Interface, U: CanInto, { - unsafe fn into_param(self) -> Param { + unsafe fn param(self) -> ParamValue { if U::QUERY { - self.cast().map_or(Param::Borrowed(std::mem::zeroed()), |ok| Param::Owned(ok)) + self.cast().map_or(ParamValue::Borrowed(std::mem::zeroed()), |ok| ParamValue::Owned(ok)) } else { - Param::Borrowed(std::mem::transmute_copy(self)) + ParamValue::Borrowed(std::mem::transmute_copy(self)) } } } -impl IntoParam for &T +impl Param for &T where - T: TypeKind + Clone, + T: TypeKind + Clone, { - unsafe fn into_param(self) -> Param { - Param::Borrowed(std::mem::transmute_copy(self)) + unsafe fn param(self) -> ParamValue { + ParamValue::Borrowed(std::mem::transmute_copy(self)) } } -impl IntoParam for U +impl Param for U where T: TypeKind + Clone, U: TypeKind + Clone, U: CanInto, { - unsafe fn into_param(self) -> Param { - Param::Owned(std::mem::transmute_copy(&self)) + unsafe fn param(self) -> ParamValue { + ParamValue::Owned(std::mem::transmute_copy(&self)) } } -impl IntoParam for &BSTR { - unsafe fn into_param(self) -> Param { - Param::Owned(PCWSTR(self.as_ptr())) +impl Param for &BSTR { + unsafe fn param(self) -> ParamValue { + ParamValue::Owned(PCWSTR(self.as_ptr())) } } -impl IntoParam for &HSTRING { - unsafe fn into_param(self) -> Param { - Param::Owned(PCWSTR(self.as_ptr())) +impl Param for &HSTRING { + unsafe fn param(self) -> ParamValue { + ParamValue::Owned(PCWSTR(self.as_ptr())) } } -impl IntoParam for PWSTR { - unsafe fn into_param(self) -> Param { - Param::Owned(PCWSTR(self.0)) +impl Param for PWSTR { + unsafe fn param(self) -> ParamValue { + ParamValue::Owned(PCWSTR(self.0)) } } -impl IntoParam for PSTR { - unsafe fn into_param(self) -> Param { - Param::Owned(PCSTR(self.0)) +impl Param for PSTR { + unsafe fn param(self) -> ParamValue { + ParamValue::Owned(PCSTR(self.0)) } } + +#[doc(hidden)] +pub enum ParamValue> { + Owned(T), + Borrowed(T::Abi), +} + +impl> ParamValue { + pub fn abi(&self) -> T::Abi { + unsafe { + match self { + Self::Owned(item) => std::mem::transmute_copy(item), + Self::Borrowed(borrowed) => std::mem::transmute_copy(borrowed), + } + } + } +} + +#[doc(hidden)] +pub trait CanInto: Sized { + const QUERY: bool = false; +} + +impl CanInto for T where T: Clone {} diff --git a/crates/libs/core/src/type.rs b/crates/libs/core/src/type.rs index 2379a5e8ea..dc8363a5c2 100644 --- a/crates/libs/core/src/type.rs +++ b/crates/libs/core/src/type.rs @@ -6,10 +6,10 @@ pub trait TypeKind { } #[doc(hidden)] -pub struct ReferenceType; +pub struct InterfaceType; #[doc(hidden)] -pub struct ValueType; +pub struct CloneType; #[doc(hidden)] pub struct CopyType; @@ -24,9 +24,9 @@ pub trait Type::TypeKind>: TypeKind + Sized + C fn from_default(default: &Self::Default) -> Result; } -impl Type for T +impl Type for T where - T: TypeKind + Clone, + T: TypeKind + Clone, { type Abi = *mut std::ffi::c_void; type Default = Option; @@ -44,9 +44,9 @@ where } } -impl Type for T +impl Type for T where - T: TypeKind + Clone, + T: TypeKind + Clone, { type Abi = std::mem::MaybeUninit; type Default = Self; @@ -77,7 +77,7 @@ where } impl TypeKind for T { - type TypeKind = ReferenceType; + type TypeKind = InterfaceType; } impl TypeKind for *mut T { @@ -116,9 +116,9 @@ impl TypeKind for PCSTR { } impl TypeKind for HSTRING { - type TypeKind = ValueType; + type TypeKind = CloneType; } impl TypeKind for BSTR { - type TypeKind = ValueType; + type TypeKind = CloneType; } diff --git a/crates/libs/core/src/variant.rs b/crates/libs/core/src/variant.rs index 0ddb94e403..e4e8a1f32d 100644 --- a/crates/libs/core/src/variant.rs +++ b/crates/libs/core/src/variant.rs @@ -53,11 +53,11 @@ impl Drop for PROPVARIANT { } impl TypeKind for VARIANT { - type TypeKind = ValueType; + type TypeKind = CloneType; } impl TypeKind for PROPVARIANT { - type TypeKind = ValueType; + type TypeKind = CloneType; } impl std::fmt::Debug for VARIANT { diff --git a/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs b/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs index 8cbc8fff55..d9907e01dd 100644 --- a/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs +++ b/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs @@ -1093,11 +1093,11 @@ impl ImageFeatureValue { #[cfg(feature = "Media")] pub fn CreateFromVideoFrame(image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IImageFeatureValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromVideoFrame)(windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromVideoFrame)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Kind(&self) -> windows_core::Result { @@ -1197,21 +1197,21 @@ impl LearningModel { #[cfg(feature = "Storage")] pub fn LoadFromStorageFileAsync(modelfile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStorageFileAsync)(windows_core::Interface::as_raw(this), modelfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStorageFileAsync)(windows_core::Interface::as_raw(this), modelfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamAsync(modelstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStreamAsync)(windows_core::Interface::as_raw(this), modelstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStreamAsync)(windows_core::Interface::as_raw(this), modelstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LoadFromFilePath(filepath: &windows_core::HSTRING) -> windows_core::Result { @@ -1223,53 +1223,53 @@ impl LearningModel { #[cfg(feature = "Storage_Streams")] pub fn LoadFromStream(modelstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStream)(windows_core::Interface::as_raw(this), modelstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStream)(windows_core::Interface::as_raw(this), modelstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LoadFromStorageFileWithOperatorProviderAsync(modelfile: P0, operatorprovider: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStorageFileWithOperatorProviderAsync)(windows_core::Interface::as_raw(this), modelfile.into_param().abi(), operatorprovider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStorageFileWithOperatorProviderAsync)(windows_core::Interface::as_raw(this), modelfile.param().abi(), operatorprovider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamWithOperatorProviderAsync(modelstream: P0, operatorprovider: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProviderAsync)(windows_core::Interface::as_raw(this), modelstream.into_param().abi(), operatorprovider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProviderAsync)(windows_core::Interface::as_raw(this), modelstream.param().abi(), operatorprovider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LoadFromFilePathWithOperatorProvider(filepath: &windows_core::HSTRING, operatorprovider: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromFilePathWithOperatorProvider)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), operatorprovider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromFilePathWithOperatorProvider)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), operatorprovider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamWithOperatorProvider(modelstream: P0, operatorprovider: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProvider)(windows_core::Interface::as_raw(this), modelstream.into_param().abi(), operatorprovider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProvider)(windows_core::Interface::as_raw(this), modelstream.param().abi(), operatorprovider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1307,19 +1307,19 @@ impl LearningModelBinding { } pub fn Bind(&self, name: &windows_core::HSTRING, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Bind)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Bind)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn BindWithProperties(&self, name: &windows_core::HSTRING, value: P0, props: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).BindWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), value.into_param().abi(), props.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).BindWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), value.param().abi(), props.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = self; @@ -1327,11 +1327,11 @@ impl LearningModelBinding { } pub fn CreateFromSession(session: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILearningModelBindingFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromSession)(windows_core::Interface::as_raw(this), session.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromSession)(windows_core::Interface::as_raw(this), session.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -1427,11 +1427,11 @@ impl LearningModelDevice { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateFromDirect3D11Device(device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILearningModelDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromDirect3D11Device)(windows_core::Interface::as_raw(this), device.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromDirect3D11Device)(windows_core::Interface::as_raw(this), device.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1538,74 +1538,74 @@ impl LearningModelSession { } pub fn EvaluateAsync(&self, bindings: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EvaluateAsync)(windows_core::Interface::as_raw(this), bindings.into_param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EvaluateAsync)(windows_core::Interface::as_raw(this), bindings.param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn EvaluateFeaturesAsync(&self, features: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EvaluateFeaturesAsync)(windows_core::Interface::as_raw(this), features.into_param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EvaluateFeaturesAsync)(windows_core::Interface::as_raw(this), features.param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Evaluate(&self, bindings: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Evaluate)(windows_core::Interface::as_raw(this), bindings.into_param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Evaluate)(windows_core::Interface::as_raw(this), bindings.param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn EvaluateFeatures(&self, features: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EvaluateFeatures)(windows_core::Interface::as_raw(this), features.into_param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EvaluateFeatures)(windows_core::Interface::as_raw(this), features.param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateFromModel(model: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILearningModelSessionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromModel)(windows_core::Interface::as_raw(this), model.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromModel)(windows_core::Interface::as_raw(this), model.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromModelOnDevice(model: P0, devicetorunon: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILearningModelSessionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromModelOnDevice)(windows_core::Interface::as_raw(this), model.into_param().abi(), devicetorunon.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromModelOnDevice)(windows_core::Interface::as_raw(this), model.param().abi(), devicetorunon.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromModelOnDeviceWithSessionOptions(model: P0, devicetorunon: P1, learningmodelsessionoptions: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ILearningModelSessionFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromModelOnDeviceWithSessionOptions)(windows_core::Interface::as_raw(this), model.into_param().abi(), devicetorunon.into_param().abi(), learningmodelsessionoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromModelOnDeviceWithSessionOptions)(windows_core::Interface::as_raw(this), model.param().abi(), devicetorunon.param().abi(), learningmodelsessionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1853,32 +1853,32 @@ impl TensorBoolean { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[bool]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[bool]) -> windows_core::Result { @@ -1890,11 +1890,11 @@ impl TensorBoolean { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorBooleanStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1976,32 +1976,32 @@ impl TensorDouble { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f64]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[f64]) -> windows_core::Result { @@ -2013,11 +2013,11 @@ impl TensorDouble { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorDoubleStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2161,32 +2161,32 @@ impl TensorFloat { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f32]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[f32]) -> windows_core::Result { @@ -2198,11 +2198,11 @@ impl TensorFloat { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorFloatStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2284,32 +2284,32 @@ impl TensorFloat16Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f32]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[f32]) -> windows_core::Result { @@ -2321,11 +2321,11 @@ impl TensorFloat16Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorFloat16BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2407,32 +2407,32 @@ impl TensorInt16Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i16]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[i16]) -> windows_core::Result { @@ -2444,11 +2444,11 @@ impl TensorInt16Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorInt16BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2530,32 +2530,32 @@ impl TensorInt32Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i32]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[i32]) -> windows_core::Result { @@ -2567,11 +2567,11 @@ impl TensorInt32Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorInt32BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2653,32 +2653,32 @@ impl TensorInt64Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i64]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[i64]) -> windows_core::Result { @@ -2690,11 +2690,11 @@ impl TensorInt64Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorInt64BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2776,32 +2776,32 @@ impl TensorInt8Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u8]) -> windows_core::Result { @@ -2813,11 +2813,11 @@ impl TensorInt8Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorInt8BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2899,32 +2899,32 @@ impl TensorString { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[windows_core::HSTRING]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[windows_core::HSTRING]) -> windows_core::Result { @@ -3012,32 +3012,32 @@ impl TensorUInt16Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u16]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u16]) -> windows_core::Result { @@ -3049,11 +3049,11 @@ impl TensorUInt16Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorUInt16BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3135,32 +3135,32 @@ impl TensorUInt32Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u32]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u32]) -> windows_core::Result { @@ -3172,11 +3172,11 @@ impl TensorUInt32Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorUInt32BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3258,32 +3258,32 @@ impl TensorUInt64Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u64]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u64]) -> windows_core::Result { @@ -3295,11 +3295,11 @@ impl TensorUInt64Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorUInt64BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3381,32 +3381,32 @@ impl TensorUInt8Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIterable)(windows_core::Interface::as_raw(this), shape.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u8]) -> windows_core::Result { @@ -3418,11 +3418,11 @@ impl TensorUInt8Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITensorUInt8BitStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), shape.len().try_into().unwrap(), shape.as_ptr(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs index 6551c751f7..a0ac78944c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs @@ -5539,12 +5539,12 @@ impl SplashScreen { } pub fn Dismissed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Dismissed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Dismissed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDismissed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs index 738b76033a..2c83c21c8e 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs @@ -216,12 +216,12 @@ impl AppExtensionCatalog { } pub fn PackageInstalled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageInstalled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageInstalled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageInstalled(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -230,12 +230,12 @@ impl AppExtensionCatalog { } pub fn PackageUpdating(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageUpdating)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageUpdating)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageUpdating(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -244,12 +244,12 @@ impl AppExtensionCatalog { } pub fn PackageUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -258,12 +258,12 @@ impl AppExtensionCatalog { } pub fn PackageUninstalling(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageUninstalling)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageUninstalling)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageUninstalling(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -272,12 +272,12 @@ impl AppExtensionCatalog { } pub fn PackageStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs index cbab7360b2..07088fac97 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs @@ -259,22 +259,22 @@ impl AppServiceConnection { #[cfg(feature = "Foundation_Collections")] pub fn SendMessageAsync(&self, message: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RequestReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRequestReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -283,12 +283,12 @@ impl AppServiceConnection { } pub fn ServiceClosed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServiceClosed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServiceClosed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServiceClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -298,12 +298,12 @@ impl AppServiceConnection { #[cfg(feature = "System_RemoteSystems")] pub fn OpenRemoteAsync(&self, remotesystemconnectionrequest: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenRemoteAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenRemoteAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "System")] @@ -317,21 +317,21 @@ impl AppServiceConnection { #[cfg(feature = "System")] pub fn SetUser(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUser)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUser)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "System_RemoteSystems"))] pub fn SendStatelessMessageAsync(connection: P0, connectionrequest: P1, message: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IAppServiceConnectionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendStatelessMessageAsync)(windows_core::Interface::as_raw(this), connection.into_param().abi(), connectionrequest.into_param().abi(), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendStatelessMessageAsync)(windows_core::Interface::as_raw(this), connection.param().abi(), connectionrequest.param().abi(), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Close(&self) -> windows_core::Result<()> { @@ -394,12 +394,12 @@ impl AppServiceRequest { #[cfg(feature = "Foundation_Collections")] pub fn SendResponseAsync(&self, message: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendResponseAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendResponseAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs index 18b27cae4f..7efb0cd667 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs @@ -328,12 +328,12 @@ impl AppointmentCalendarCreateOrUpdateAppointmentRequest { } pub fn ReportCompletedAsync(&self, createdorupdatedappointment: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), createdorupdatedappointment.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), createdorupdatedappointment.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self) -> windows_core::Result { @@ -806,12 +806,12 @@ windows_core::imp::interface_hierarchy!(AppointmentDataProviderConnection, windo impl AppointmentDataProviderConnection { pub fn SyncRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SyncRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SyncRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSyncRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -820,12 +820,12 @@ impl AppointmentDataProviderConnection { } pub fn CreateOrUpdateAppointmentRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateOrUpdateAppointmentRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CreateOrUpdateAppointmentRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCreateOrUpdateAppointmentRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -834,12 +834,12 @@ impl AppointmentDataProviderConnection { } pub fn CancelMeetingRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CancelMeetingRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CancelMeetingRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCancelMeetingRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -848,12 +848,12 @@ impl AppointmentDataProviderConnection { } pub fn ForwardMeetingRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ForwardMeetingRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ForwardMeetingRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveForwardMeetingRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -862,12 +862,12 @@ impl AppointmentDataProviderConnection { } pub fn ProposeNewTimeForMeetingRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProposeNewTimeForMeetingRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProposeNewTimeForMeetingRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProposeNewTimeForMeetingRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -876,12 +876,12 @@ impl AppointmentDataProviderConnection { } pub fn UpdateMeetingResponseRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateMeetingResponseRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UpdateMeetingResponseRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdateMeetingResponseRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs index 6dc70c04d1..aef41c5291 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs @@ -713,10 +713,10 @@ impl Appointment { } pub fn SetReminder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetReminder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReminder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Organizer(&self) -> windows_core::Result { let this = self; @@ -727,10 +727,10 @@ impl Appointment { } pub fn SetOrganizer(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOrganizer)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOrganizer)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Invitees(&self) -> windows_core::Result> { @@ -749,10 +749,10 @@ impl Appointment { } pub fn SetRecurrence(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRecurrence)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRecurrence)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn BusyStatus(&self) -> windows_core::Result { let this = self; @@ -796,10 +796,10 @@ impl Appointment { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LocalId(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -875,10 +875,10 @@ impl Appointment { } pub fn SetReplyTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReplyTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReplyTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn UserResponse(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1051,12 +1051,12 @@ impl AppointmentCalendar { #[cfg(feature = "Foundation_Collections")] pub fn FindAppointmentsAsyncWithOptions(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, options: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAppointmentsAsyncWithOptions)(windows_core::Interface::as_raw(this), rangestart, rangelength, options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAppointmentsAsyncWithOptions)(windows_core::Interface::as_raw(this), rangestart, rangelength, options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -1078,12 +1078,12 @@ impl AppointmentCalendar { #[cfg(feature = "Foundation_Collections")] pub fn FindAllInstancesAsyncWithOptions(&self, masterlocalid: &windows_core::HSTRING, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, poptions: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllInstancesAsyncWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(masterlocalid), rangestart, rangelength, poptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllInstancesAsyncWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(masterlocalid), rangestart, rangelength, poptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAppointmentAsync(&self, localid: &windows_core::HSTRING) -> windows_core::Result> { @@ -1111,12 +1111,12 @@ impl AppointmentCalendar { #[cfg(feature = "Foundation_Collections")] pub fn FindUnexpandedAppointmentsAsyncWithOptions(&self, options: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindUnexpandedAppointmentsAsyncWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindUnexpandedAppointmentsAsyncWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteAsync(&self) -> windows_core::Result { @@ -1149,12 +1149,12 @@ impl AppointmentCalendar { } pub fn SaveAppointmentAsync(&self, pappointment: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAppointmentAsync)(windows_core::Interface::as_raw(this), pappointment.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAppointmentAsync)(windows_core::Interface::as_raw(this), pappointment.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SyncManager(&self) -> windows_core::Result { @@ -1270,54 +1270,54 @@ impl AppointmentCalendar { } pub fn TryCreateOrUpdateAppointmentAsync(&self, appointment: P0, notifyinvitees: bool) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateOrUpdateAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), notifyinvitees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateOrUpdateAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), notifyinvitees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryCancelMeetingAsync(&self, meeting: P0, subject: &windows_core::HSTRING, comment: &windows_core::HSTRING, notifyinvitees: bool) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCancelMeetingAsync)(windows_core::Interface::as_raw(this), meeting.into_param().abi(), core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), notifyinvitees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCancelMeetingAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), notifyinvitees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn TryForwardMeetingAsync(&self, meeting: P0, invitees: P1, subject: &windows_core::HSTRING, forwardheader: &windows_core::HSTRING, comment: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryForwardMeetingAsync)(windows_core::Interface::as_raw(this), meeting.into_param().abi(), invitees.into_param().abi(), core::mem::transmute_copy(subject), core::mem::transmute_copy(forwardheader), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryForwardMeetingAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), invitees.param().abi(), core::mem::transmute_copy(subject), core::mem::transmute_copy(forwardheader), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryProposeNewTimeForMeetingAsync(&self, meeting: P0, newstarttime: super::super::Foundation::DateTime, newduration: super::super::Foundation::TimeSpan, subject: &windows_core::HSTRING, comment: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryProposeNewTimeForMeetingAsync)(windows_core::Interface::as_raw(this), meeting.into_param().abi(), newstarttime, newduration, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryProposeNewTimeForMeetingAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), newstarttime, newduration, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryUpdateMeetingResponseAsync(&self, meeting: P0, response: AppointmentParticipantResponse, subject: &windows_core::HSTRING, comment: &windows_core::HSTRING, sendupdate: bool) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryUpdateMeetingResponseAsync)(windows_core::Interface::as_raw(this), meeting.into_param().abi(), response, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), sendupdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryUpdateMeetingResponseAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), response, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), sendupdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RegisterSyncManagerAsync(&self) -> windows_core::Result { @@ -1375,12 +1375,12 @@ impl AppointmentCalendarSyncManager { } pub fn SyncStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSyncStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1558,50 +1558,50 @@ pub struct AppointmentManager; impl AppointmentManager { pub fn ShowAddAppointmentAsync(appointment: P0, selection: super::super::Foundation::Rect) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppointmentManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowAddAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowAddAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "UI_Popups")] pub fn ShowAddAppointmentWithPlacementAsync(appointment: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppointmentManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowAddAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowAddAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ShowReplaceAppointmentAsync(appointmentid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppointmentManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.into_param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "UI_Popups")] pub fn ShowReplaceAppointmentWithPlacementAsync(appointmentid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppointmentManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.into_param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "UI_Popups")] pub fn ShowReplaceAppointmentWithPlacementAndDateAsync(appointmentid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement, instancestartdate: super::super::Foundation::DateTime) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppointmentManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAndDateAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.into_param().abi(), selection, preferredplacement, instancestartdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAndDateAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.param().abi(), selection, preferredplacement, instancestartdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ShowRemoveAppointmentAsync(appointmentid: &windows_core::HSTRING, selection: super::super::Foundation::Rect) -> windows_core::Result> { @@ -1644,11 +1644,11 @@ impl AppointmentManager { } pub fn ShowEditNewAppointmentAsync(appointment: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppointmentManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowEditNewAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowEditNewAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestStoreAsync(options: AppointmentStoreAccessType) -> windows_core::Result> { @@ -1660,11 +1660,11 @@ impl AppointmentManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppointmentManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1693,55 +1693,55 @@ windows_core::imp::interface_hierarchy!(AppointmentManagerForUser, windows_core: impl AppointmentManagerForUser { pub fn ShowAddAppointmentAsync(&self, appointment: P0, selection: super::super::Foundation::Rect) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowAddAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowAddAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "UI_Popups")] pub fn ShowAddAppointmentWithPlacementAsync(&self, appointment: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowAddAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowAddAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShowReplaceAppointmentAsync(&self, appointmentid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.into_param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "UI_Popups")] pub fn ShowReplaceAppointmentWithPlacementAsync(&self, appointmentid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.into_param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "UI_Popups")] pub fn ShowReplaceAppointmentWithPlacementAndDateAsync(&self, appointmentid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement, instancestartdate: super::super::Foundation::DateTime) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAndDateAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.into_param().abi(), selection, preferredplacement, instancestartdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAndDateAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appointmentid), appointment.param().abi(), selection, preferredplacement, instancestartdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShowRemoveAppointmentAsync(&self, appointmentid: &windows_core::HSTRING, selection: super::super::Foundation::Rect) -> windows_core::Result> { @@ -1790,12 +1790,12 @@ impl AppointmentManagerForUser { } pub fn ShowEditNewAppointmentAsync(&self, appointment: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowEditNewAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowEditNewAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestStoreAsync(&self, options: AppointmentStoreAccessType) -> windows_core::Result> { @@ -2079,10 +2079,10 @@ impl AppointmentRecurrence { } pub fn SetOccurrences(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOccurrences)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOccurrences)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Until(&self) -> windows_core::Result> { let this = self; @@ -2093,10 +2093,10 @@ impl AppointmentRecurrence { } pub fn SetUntil(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUntil)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUntil)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Interval(&self) -> windows_core::Result { let this = self; @@ -2258,74 +2258,74 @@ impl AppointmentStore { #[cfg(feature = "Foundation_Collections")] pub fn FindAppointmentsAsyncWithOptions(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, options: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAppointmentsAsyncWithOptions)(windows_core::Interface::as_raw(this), rangestart, rangelength, options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAppointmentsAsyncWithOptions)(windows_core::Interface::as_raw(this), rangestart, rangelength, options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FindConflictAsync(&self, appointment: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindConflictAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindConflictAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FindConflictAsyncWithInstanceStart(&self, appointment: P0, instancestarttime: super::super::Foundation::DateTime) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindConflictAsyncWithInstanceStart)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), instancestarttime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindConflictAsyncWithInstanceStart)(windows_core::Interface::as_raw(this), appointment.param().abi(), instancestarttime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveAppointmentAsync(&self, appointment: P0, destinationcalendar: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), destinationcalendar.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), destinationcalendar.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShowAddAppointmentAsync(&self, appointment: P0, selection: super::super::Foundation::Rect) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowAddAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowAddAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShowReplaceAppointmentAsync(&self, localid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localid), appointment.into_param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localid), appointment.param().abi(), selection, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "UI_Popups")] pub fn ShowReplaceAppointmentWithPlacementAndDateAsync(&self, localid: &windows_core::HSTRING, appointment: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement, instancestartdate: super::super::Foundation::DateTime) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAndDateAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localid), appointment.into_param().abi(), selection, preferredplacement, instancestartdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowReplaceAppointmentWithPlacementAndDateAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localid), appointment.param().abi(), selection, preferredplacement, instancestartdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShowRemoveAppointmentAsync(&self, localid: &windows_core::HSTRING, selection: super::super::Foundation::Rect) -> windows_core::Result> { @@ -2359,12 +2359,12 @@ impl AppointmentStore { } pub fn ShowEditNewAppointmentAsync(&self, appointment: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowEditNewAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowEditNewAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -2377,12 +2377,12 @@ impl AppointmentStore { } pub fn StoreChanged(&self, phandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StoreChanged)(windows_core::Interface::as_raw(this), phandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StoreChanged)(windows_core::Interface::as_raw(this), phandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStoreChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2474,10 +2474,10 @@ impl AppointmentStoreChangeReader { } pub fn AcceptChangesThrough(&self, lastchangetoaccept: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoaccept.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoaccept.param().abi()).ok() } } } impl windows_core::RuntimeType for AppointmentStoreChangeReader { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs index a98996e9d6..c3f2fceeb8 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs @@ -156,10 +156,10 @@ windows_core::imp::interface_hierarchy!(IBackgroundTask, windows_core::IUnknown, impl IBackgroundTask { pub fn Run(&self, taskinstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Run)(windows_core::Interface::as_raw(this), taskinstance.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Run)(windows_core::Interface::as_raw(this), taskinstance.param().abi()).ok() } } } impl windows_core::RuntimeType for IBackgroundTask { @@ -280,12 +280,12 @@ impl IBackgroundTaskInstance { } pub fn Canceled(&self, cancelhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCanceled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -368,12 +368,12 @@ impl IBackgroundTaskInstance2 { } pub fn Canceled(&self, cancelhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCanceled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -449,12 +449,12 @@ impl IBackgroundTaskInstance4 { } pub fn Canceled(&self, cancelhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCanceled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -516,12 +516,12 @@ impl IBackgroundTaskRegistration { } pub fn Progress(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProgress(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -530,12 +530,12 @@ impl IBackgroundTaskRegistration { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -588,12 +588,12 @@ impl IBackgroundTaskRegistration2 { } pub fn Progress(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProgress(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -602,12 +602,12 @@ impl IBackgroundTaskRegistration2 { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -654,12 +654,12 @@ impl IBackgroundTaskRegistration3 { } pub fn Progress(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProgress(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -668,12 +668,12 @@ impl IBackgroundTaskRegistration3 { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1565,10 +1565,10 @@ windows_core::imp::required_hierarchy!(AppBroadcastTrigger, IBackgroundTrigger); impl AppBroadcastTrigger { pub fn SetProviderInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProviderInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProviderInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProviderInfo(&self) -> windows_core::Result { let this = self; @@ -1708,12 +1708,12 @@ impl ApplicationTrigger { #[cfg(feature = "Foundation_Collections")] pub fn RequestAsyncWithArguments(&self, arguments: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAsyncWithArguments)(windows_core::Interface::as_raw(this), arguments.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAsyncWithArguments)(windows_core::Interface::as_raw(this), arguments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1881,17 +1881,17 @@ impl BackgroundTaskBuilder { } pub fn SetTrigger(&self, trigger: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTrigger)(windows_core::Interface::as_raw(this), trigger.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTrigger)(windows_core::Interface::as_raw(this), trigger.param().abi()).ok() } } pub fn AddCondition(&self, condition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddCondition)(windows_core::Interface::as_raw(this), condition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddCondition)(windows_core::Interface::as_raw(this), condition.param().abi()).ok() } } pub fn SetName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1942,10 +1942,10 @@ impl BackgroundTaskBuilder { } pub fn SetTaskGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTaskGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTaskGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetTaskEntryPointClsid(&self, taskentrypoint: windows_core::GUID) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2067,12 +2067,12 @@ impl BackgroundTaskRegistration { } pub fn Progress(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Progress)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProgress(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2081,12 +2081,12 @@ impl BackgroundTaskRegistration { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2176,12 +2176,12 @@ impl BackgroundTaskRegistrationGroup { #[cfg(feature = "ApplicationModel_Activation")] pub fn BackgroundActivated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BackgroundActivated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BackgroundActivated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBackgroundActivated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2273,10 +2273,10 @@ impl BluetoothLEAdvertisementPublisherTrigger { } pub fn SetPreferredTransmitPowerLevelInDBm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPreferredTransmitPowerLevelInDBm)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPreferredTransmitPowerLevelInDBm)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn UseExtendedFormat(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2376,10 +2376,10 @@ impl BluetoothLEAdvertisementWatcherTrigger { #[cfg(feature = "Devices_Bluetooth")] pub fn SetSignalStrengthFilter(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSignalStrengthFilter)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSignalStrengthFilter)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Devices_Bluetooth_Advertisement")] pub fn AdvertisementFilter(&self) -> windows_core::Result { @@ -2392,10 +2392,10 @@ impl BluetoothLEAdvertisementWatcherTrigger { #[cfg(feature = "Devices_Bluetooth_Advertisement")] pub fn SetAdvertisementFilter(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAdvertisementFilter)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdvertisementFilter)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AllowExtendedAdvertisements(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2955,21 +2955,21 @@ impl GattCharacteristicNotificationTrigger { #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub fn Create(characteristic: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGattCharacteristicNotificationTriggerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), characteristic.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), characteristic.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Devices_Bluetooth_Background", feature = "Devices_Bluetooth_GenericAttributeProfile"))] pub fn CreateWithEventTriggeringMode(characteristic: P0, eventtriggeringmode: super::super::Devices::Bluetooth::Background::BluetoothEventTriggeringMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGattCharacteristicNotificationTriggerFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithEventTriggeringMode)(windows_core::Interface::as_raw(this), characteristic.into_param().abi(), eventtriggeringmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithEventTriggeringMode)(windows_core::Interface::as_raw(this), characteristic.param().abi(), eventtriggeringmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3019,10 +3019,10 @@ impl GattServiceProviderTrigger { #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub fn SetAdvertisingParameters(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAdvertisingParameters)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdvertisingParameters)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub fn AdvertisingParameters(&self) -> windows_core::Result { @@ -3230,12 +3230,12 @@ impl MediaProcessingTrigger { #[cfg(feature = "Foundation_Collections")] pub fn RequestAsyncWithArguments(&self, arguments: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAsyncWithArguments)(windows_core::Interface::as_raw(this), arguments.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAsyncWithArguments)(windows_core::Interface::as_raw(this), arguments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -3663,10 +3663,10 @@ impl RfcommConnectionTrigger { #[cfg(feature = "Networking")] pub fn SetRemoteHostName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRemoteHostName)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRemoteHostName)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for RfcommConnectionTrigger { @@ -3721,11 +3721,11 @@ impl SensorDataThresholdTrigger { #[cfg(feature = "Devices_Sensors")] pub fn Create(threshold: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISensorDataThresholdTriggerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), threshold.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), threshold.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3792,11 +3792,11 @@ impl SmsMessageReceivedTrigger { #[cfg(feature = "Devices_Sms")] pub fn Create(filterrules: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISmsMessageReceivedTriggerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), filterrules.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), filterrules.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3859,11 +3859,11 @@ impl StorageLibraryChangeTrackerTrigger { #[cfg(feature = "Storage")] pub fn Create(tracker: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageLibraryChangeTrackerTriggerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), tracker.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), tracker.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3893,21 +3893,21 @@ impl StorageLibraryContentChangedTrigger { #[cfg(feature = "Storage")] pub fn Create(storagelibrary: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageLibraryContentChangedTriggerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), storagelibrary.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), storagelibrary.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn CreateFromLibraries(storagelibraries: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IStorageLibraryContentChangedTriggerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromLibraries)(windows_core::Interface::as_raw(this), storagelibraries.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromLibraries)(windows_core::Interface::as_raw(this), storagelibraries.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -4516,10 +4516,10 @@ impl BackgroundTaskCanceledEventHandler { } pub fn Invoke(&self, sender: P0, reason: BackgroundTaskCancellationReason) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), reason).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), reason).ok() } } } #[repr(C)] @@ -4576,11 +4576,11 @@ impl BackgroundTaskCompletedEventHandler { } pub fn Invoke(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } } #[repr(C)] @@ -4637,11 +4637,11 @@ impl BackgroundTaskProgressEventHandler { } pub fn Invoke(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs index 9bc27e3f70..1a9e7fde2f 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs @@ -202,10 +202,10 @@ impl PhoneCallOrigin { #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn SetDisplayPicture(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDisplayPicture)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDisplayPicture)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } #[cfg(feature = "deprecated")] @@ -243,9 +243,9 @@ impl PhoneCallOriginManager { #[cfg(feature = "deprecated")] pub fn SetCallOrigin(requestid: windows_core::GUID, callorigin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IPhoneCallOriginManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetCallOrigin)(windows_core::Interface::as_raw(this), requestid, callorigin.into_param().abi()).ok() }) + Self::IPhoneCallOriginManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetCallOrigin)(windows_core::Interface::as_raw(this), requestid, callorigin.param().abi()).ok() }) } #[cfg(feature = "deprecated")] pub fn RequestSetAsActiveCallOriginAppAsync() -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs index 30a05ef682..5c7cecb360 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs @@ -839,12 +839,12 @@ impl LockScreenCallUI { } pub fn EndRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EndRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EndRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEndRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -853,12 +853,12 @@ impl LockScreenCallUI { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -921,12 +921,12 @@ windows_core::imp::interface_hierarchy!(PhoneCall, windows_core::IUnknown, windo impl PhoneCall { pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -935,12 +935,12 @@ impl PhoneCall { } pub fn AudioDeviceChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioDeviceChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioDeviceChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioDeviceChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -949,12 +949,12 @@ impl PhoneCall { } pub fn IsMutedChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsMutedChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsMutedChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsMutedChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1176,11 +1176,11 @@ impl PhoneCallBlocking { #[cfg(feature = "Foundation_Collections")] pub fn SetCallBlockingListAsync(phonenumberlist: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPhoneCallBlockingStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetCallBlockingListAsync)(windows_core::Interface::as_raw(this), phonenumberlist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetCallBlockingListAsync)(windows_core::Interface::as_raw(this), phonenumberlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1220,10 +1220,10 @@ impl PhoneCallHistoryEntry { } pub fn SetAddress(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAddress)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAddress)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result> { let this = self; @@ -1234,10 +1234,10 @@ impl PhoneCallHistoryEntry { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsCallerIdBlocked(&self) -> windows_core::Result { let this = self; @@ -1574,11 +1574,11 @@ impl PhoneCallHistoryManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPhoneCallHistoryManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1649,64 +1649,64 @@ impl PhoneCallHistoryStore { } pub fn GetEntryReaderWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEntryReaderWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetEntryReaderWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SaveEntryAsync(&self, callhistoryentry: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveEntryAsync)(windows_core::Interface::as_raw(this), callhistoryentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveEntryAsync)(windows_core::Interface::as_raw(this), callhistoryentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteEntryAsync(&self, callhistoryentry: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteEntryAsync)(windows_core::Interface::as_raw(this), callhistoryentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteEntryAsync)(windows_core::Interface::as_raw(this), callhistoryentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn DeleteEntriesAsync(&self, callhistoryentries: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteEntriesAsync)(windows_core::Interface::as_raw(this), callhistoryentries.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteEntriesAsync)(windows_core::Interface::as_raw(this), callhistoryentries.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MarkEntryAsSeenAsync(&self, callhistoryentry: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MarkEntryAsSeenAsync)(windows_core::Interface::as_raw(this), callhistoryentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MarkEntryAsSeenAsync)(windows_core::Interface::as_raw(this), callhistoryentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn MarkEntriesAsSeenAsync(&self, callhistoryentries: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MarkEntriesAsSeenAsync)(windows_core::Interface::as_raw(this), callhistoryentries.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MarkEntriesAsSeenAsync)(windows_core::Interface::as_raw(this), callhistoryentries.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetUnseenCountAsync(&self) -> windows_core::Result> { @@ -1726,23 +1726,23 @@ impl PhoneCallHistoryStore { #[cfg(feature = "Foundation_Collections")] pub fn GetSourcesUnseenCountAsync(&self, sourceids: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSourcesUnseenCountAsync)(windows_core::Interface::as_raw(this), sourceids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSourcesUnseenCountAsync)(windows_core::Interface::as_raw(this), sourceids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn MarkSourcesAsSeenAsync(&self, sourceids: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MarkSourcesAsSeenAsync)(windows_core::Interface::as_raw(this), sourceids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MarkSourcesAsSeenAsync)(windows_core::Interface::as_raw(this), sourceids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1825,11 +1825,11 @@ impl PhoneCallManager { } pub fn CallStateChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPhoneCallManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CallStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CallStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveCallStateChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2029,10 +2029,10 @@ impl PhoneDialOptions { #[cfg(feature = "ApplicationModel_Contacts")] pub fn SetContact(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContact)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContact)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "ApplicationModel_Contacts")] pub fn ContactPhone(&self) -> windows_core::Result { @@ -2045,10 +2045,10 @@ impl PhoneDialOptions { #[cfg(feature = "ApplicationModel_Contacts")] pub fn SetContactPhone(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContactPhone)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContactPhone)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Media(&self) -> windows_core::Result { let this = self; @@ -2092,12 +2092,12 @@ windows_core::imp::interface_hierarchy!(PhoneLine, windows_core::IUnknown, windo impl PhoneLine { pub fn LineChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LineChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LineChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLineChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2202,10 +2202,10 @@ impl PhoneLine { } pub fn DialWithOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).DialWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DialWithOptions)(windows_core::Interface::as_raw(this), options.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn EnableTextReply(&self, value: bool) -> windows_core::Result<()> { @@ -2423,10 +2423,10 @@ impl PhoneLineTransportDevice { #[cfg(feature = "System")] pub fn RegisterAppForUser(&self, user: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterAppForUser)(windows_core::Interface::as_raw(this), user.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterAppForUser)(windows_core::Interface::as_raw(this), user.param().abi()).ok() } } pub fn UnregisterApp(&self) -> windows_core::Result<()> { let this = self; @@ -2435,10 +2435,10 @@ impl PhoneLineTransportDevice { #[cfg(feature = "System")] pub fn UnregisterAppForUser(&self, user: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UnregisterAppForUser)(windows_core::Interface::as_raw(this), user.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UnregisterAppForUser)(windows_core::Interface::as_raw(this), user.param().abi()).ok() } } pub fn IsRegistered(&self) -> windows_core::Result { let this = self; @@ -2470,12 +2470,12 @@ impl PhoneLineTransportDevice { } pub fn AudioRoutingStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioRoutingStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioRoutingStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioRoutingStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2491,12 +2491,12 @@ impl PhoneLineTransportDevice { } pub fn InBandRingingEnabledChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InBandRingingEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InBandRingingEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInBandRingingEnabledChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2554,12 +2554,12 @@ impl PhoneLineWatcher { } pub fn LineAdded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LineAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LineAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLineAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2568,12 +2568,12 @@ impl PhoneLineWatcher { } pub fn LineRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LineRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LineRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLineRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2582,12 +2582,12 @@ impl PhoneLineWatcher { } pub fn LineUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LineUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LineUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLineUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2596,12 +2596,12 @@ impl PhoneLineWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2610,12 +2610,12 @@ impl PhoneLineWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2727,12 +2727,12 @@ impl VoipCallCoordinator { } pub fn MuteStateChanged(&self, mutechangehandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MuteStateChanged)(windows_core::Interface::as_raw(this), mutechangehandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MuteStateChanged)(windows_core::Interface::as_raw(this), mutechangehandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMuteStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2741,14 +2741,14 @@ impl VoipCallCoordinator { } pub fn RequestNewIncomingCall(&self, context: &windows_core::HSTRING, contactname: &windows_core::HSTRING, contactnumber: &windows_core::HSTRING, contactimage: P0, servicename: &windows_core::HSTRING, brandingimage: P1, calldetails: &windows_core::HSTRING, ringtone: P2, media: VoipPhoneCallMedia, ringtimeout: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestNewIncomingCall)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(context), core::mem::transmute_copy(contactname), core::mem::transmute_copy(contactnumber), contactimage.into_param().abi(), core::mem::transmute_copy(servicename), brandingimage.into_param().abi(), core::mem::transmute_copy(calldetails), ringtone.into_param().abi(), media, ringtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestNewIncomingCall)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(context), core::mem::transmute_copy(contactname), core::mem::transmute_copy(contactnumber), contactimage.param().abi(), core::mem::transmute_copy(servicename), brandingimage.param().abi(), core::mem::transmute_copy(calldetails), ringtone.param().abi(), media, ringtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestNewOutgoingCall(&self, context: &windows_core::HSTRING, contactname: &windows_core::HSTRING, servicename: &windows_core::HSTRING, media: VoipPhoneCallMedia) -> windows_core::Result { @@ -2775,14 +2775,14 @@ impl VoipCallCoordinator { } pub fn RequestIncomingUpgradeToVideoCall(&self, context: &windows_core::HSTRING, contactname: &windows_core::HSTRING, contactnumber: &windows_core::HSTRING, contactimage: P0, servicename: &windows_core::HSTRING, brandingimage: P1, calldetails: &windows_core::HSTRING, ringtone: P2, ringtimeout: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestIncomingUpgradeToVideoCall)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(context), core::mem::transmute_copy(contactname), core::mem::transmute_copy(contactnumber), contactimage.into_param().abi(), core::mem::transmute_copy(servicename), brandingimage.into_param().abi(), core::mem::transmute_copy(calldetails), ringtone.into_param().abi(), ringtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestIncomingUpgradeToVideoCall)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(context), core::mem::transmute_copy(contactname), core::mem::transmute_copy(contactnumber), contactimage.param().abi(), core::mem::transmute_copy(servicename), brandingimage.param().abi(), core::mem::transmute_copy(calldetails), ringtone.param().abi(), ringtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TerminateCellularCall(&self, callupgradeguid: windows_core::GUID) -> windows_core::Result<()> { @@ -2809,14 +2809,14 @@ impl VoipCallCoordinator { } pub fn RequestNewIncomingCallWithContactRemoteId(&self, context: &windows_core::HSTRING, contactname: &windows_core::HSTRING, contactnumber: &windows_core::HSTRING, contactimage: P0, servicename: &windows_core::HSTRING, brandingimage: P1, calldetails: &windows_core::HSTRING, ringtone: P2, media: VoipPhoneCallMedia, ringtimeout: super::super::Foundation::TimeSpan, contactremoteid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestNewIncomingCallWithContactRemoteId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(context), core::mem::transmute_copy(contactname), core::mem::transmute_copy(contactnumber), contactimage.into_param().abi(), core::mem::transmute_copy(servicename), brandingimage.into_param().abi(), core::mem::transmute_copy(calldetails), ringtone.into_param().abi(), media, ringtimeout, core::mem::transmute_copy(contactremoteid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestNewIncomingCallWithContactRemoteId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(context), core::mem::transmute_copy(contactname), core::mem::transmute_copy(contactnumber), contactimage.param().abi(), core::mem::transmute_copy(servicename), brandingimage.param().abi(), core::mem::transmute_copy(calldetails), ringtone.param().abi(), media, ringtimeout, core::mem::transmute_copy(contactremoteid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReserveOneProcessCallResourcesAsync(&self) -> windows_core::Result> { @@ -2857,12 +2857,12 @@ windows_core::imp::interface_hierarchy!(VoipPhoneCall, windows_core::IUnknown, w impl VoipPhoneCall { pub fn EndRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EndRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EndRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEndRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2871,12 +2871,12 @@ impl VoipPhoneCall { } pub fn HoldRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HoldRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HoldRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHoldRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2885,12 +2885,12 @@ impl VoipPhoneCall { } pub fn ResumeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResumeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ResumeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveResumeRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2899,12 +2899,12 @@ impl VoipPhoneCall { } pub fn AnswerRequested(&self, accepthandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AnswerRequested)(windows_core::Interface::as_raw(this), accepthandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AnswerRequested)(windows_core::Interface::as_raw(this), accepthandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAnswerRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2913,12 +2913,12 @@ impl VoipPhoneCall { } pub fn RejectRequested(&self, rejecthandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RejectRequested)(windows_core::Interface::as_raw(this), rejecthandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RejectRequested)(windows_core::Interface::as_raw(this), rejecthandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRejectRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs index efe8f9da89..aac7017c27 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs @@ -960,12 +960,12 @@ impl ChatConversation { } pub fn RemoteParticipantComposingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoteParticipantComposingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemoteParticipantComposingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoteParticipantComposingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1386,10 +1386,10 @@ impl ChatMessage { } pub fn SetThreadingInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetThreadingInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThreadingInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RecipientsDeliveryInfos(&self) -> windows_core::Result> { @@ -1446,10 +1446,10 @@ impl ChatMessageAttachment { #[cfg(feature = "Storage_Streams")] pub fn SetDataStreamReference(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDataStreamReference)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDataStreamReference)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GroupId(&self) -> windows_core::Result { let this = self; @@ -1495,10 +1495,10 @@ impl ChatMessageAttachment { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TransferProgress(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1525,11 +1525,11 @@ impl ChatMessageAttachment { #[cfg(feature = "Storage_Streams")] pub fn CreateChatMessageAttachment(mimetype: &windows_core::HSTRING, datastreamreference: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IChatMessageAttachmentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateChatMessageAttachment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mimetype), datastreamreference.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateChatMessageAttachment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mimetype), datastreamreference.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1610,10 +1610,10 @@ impl ChatMessageChangeReader { } pub fn AcceptChangesThrough(&self, lastchangetoacknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoacknowledge.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoacknowledge.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ReadBatchAsync(&self) -> windows_core::Result>> { @@ -1745,11 +1745,11 @@ impl ChatMessageManager { } pub fn ShowComposeSmsMessageAsync(message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IChatMessageManagerStatic(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowComposeSmsMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowComposeSmsMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ShowSmsSettings() -> windows_core::Result<()> { @@ -1930,32 +1930,32 @@ impl ChatMessageStore { } pub fn SendMessageAsync(&self, chatmessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), chatmessage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), chatmessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ValidateMessage(&self, chatmessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValidateMessage)(windows_core::Interface::as_raw(this), chatmessage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ValidateMessage)(windows_core::Interface::as_raw(this), chatmessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MessageChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageChanged(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1965,12 +1965,12 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn ForwardMessageAsync(&self, localchatmessageid: &windows_core::HSTRING, addresses: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ForwardMessageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localchatmessageid), addresses.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ForwardMessageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localchatmessageid), addresses.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetConversationAsync(&self, conversationid: &windows_core::HSTRING) -> windows_core::Result> { @@ -1983,22 +1983,22 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn GetConversationForTransportsAsync(&self, conversationid: &windows_core::HSTRING, transportids: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetConversationForTransportsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(conversationid), transportids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetConversationForTransportsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(conversationid), transportids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetConversationFromThreadingInfoAsync(&self, threadinginfo: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetConversationFromThreadingInfoAsync)(windows_core::Interface::as_raw(this), threadinginfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetConversationFromThreadingInfoAsync)(windows_core::Interface::as_raw(this), threadinginfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetConversationReader(&self) -> windows_core::Result { @@ -2011,12 +2011,12 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn GetConversationForTransportsReader(&self, transportids: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetConversationForTransportsReader)(windows_core::Interface::as_raw(this), transportids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetConversationForTransportsReader)(windows_core::Interface::as_raw(this), transportids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetMessageByRemoteIdAsync(&self, transportid: &windows_core::HSTRING, remoteid: &windows_core::HSTRING) -> windows_core::Result> { @@ -2036,12 +2036,12 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn GetUnseenCountForTransportsReaderAsync(&self, transportids: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetUnseenCountForTransportsReaderAsync)(windows_core::Interface::as_raw(this), transportids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetUnseenCountForTransportsReaderAsync)(windows_core::Interface::as_raw(this), transportids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MarkAsSeenAsync(&self) -> windows_core::Result { @@ -2054,32 +2054,32 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn MarkAsSeenForTransportsAsync(&self, transportids: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MarkAsSeenForTransportsAsync)(windows_core::Interface::as_raw(this), transportids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MarkAsSeenForTransportsAsync)(windows_core::Interface::as_raw(this), transportids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetSearchReader(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSearchReader)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSearchReader)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SaveMessageAsync(&self, chatmessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveMessageAsync)(windows_core::Interface::as_raw(this), chatmessage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveMessageAsync)(windows_core::Interface::as_raw(this), chatmessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryCancelDownloadMessageAsync(&self, localchatmessageid: &windows_core::HSTRING) -> windows_core::Result> { @@ -2098,12 +2098,12 @@ impl ChatMessageStore { } pub fn StoreChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StoreChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StoreChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStoreChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2398,10 +2398,10 @@ impl ChatRecipientDeliveryInfo { } pub fn SetDeliveryTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDeliveryTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDeliveryTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ReadTime(&self) -> windows_core::Result> { let this = self; @@ -2412,10 +2412,10 @@ impl ChatRecipientDeliveryInfo { } pub fn SetReadTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetReadTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReadTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TransportErrorCodeCategory(&self) -> windows_core::Result { let this = self; @@ -2554,12 +2554,12 @@ impl ChatSyncManager { #[cfg(feature = "Security_Credentials")] pub fn AssociateAccountAsync(&self, webaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AssociateAccountAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AssociateAccountAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UnassociateAccountAsync(&self) -> windows_core::Result { @@ -2572,12 +2572,12 @@ impl ChatSyncManager { #[cfg(feature = "Security_Credentials")] pub fn IsAccountAssociated(&self, webaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsAccountAssociated)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsAccountAssociated)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).map(|| result__) } } pub fn StartSync(&self) -> windows_core::Result<()> { @@ -2586,12 +2586,12 @@ impl ChatSyncManager { } pub fn SetConfigurationAsync(&self, configuration: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetConfigurationAsync)(windows_core::Interface::as_raw(this), configuration.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetConfigurationAsync)(windows_core::Interface::as_raw(this), configuration.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2650,22 +2650,22 @@ impl RcsEndUserMessage { } pub fn SendResponseAsync(&self, action: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendResponseAsync)(windows_core::Interface::as_raw(this), action.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendResponseAsync)(windows_core::Interface::as_raw(this), action.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SendResponseWithPinAsync(&self, action: P0, pin: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendResponseWithPinAsync)(windows_core::Interface::as_raw(this), action.into_param().abi(), core::mem::transmute_copy(pin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendResponseWithPinAsync)(windows_core::Interface::as_raw(this), action.param().abi(), core::mem::transmute_copy(pin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2777,12 +2777,12 @@ windows_core::imp::interface_hierarchy!(RcsEndUserMessageManager, windows_core:: impl RcsEndUserMessageManager { pub fn MessageAvailableChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageAvailableChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageAvailableChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageAvailableChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2825,20 +2825,20 @@ impl RcsManager { } pub fn LeaveConversationAsync(conversation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRcsManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LeaveConversationAsync)(windows_core::Interface::as_raw(this), conversation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LeaveConversationAsync)(windows_core::Interface::as_raw(this), conversation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn TransportListChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IRcsManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TransportListChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TransportListChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveTransportListChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2940,12 +2940,12 @@ impl RcsTransport { } pub fn ServiceKindSupportedChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServiceKindSupportedChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServiceKindSupportedChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServiceKindSupportedChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs index c5791949ee..ae09abe2e3 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs @@ -54,21 +54,21 @@ impl CommunicationBlockingAccessManager { #[cfg(feature = "Foundation_Collections")] pub fn ShowBlockNumbersUI(phonenumbers: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICommunicationBlockingAccessManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowBlockNumbersUI)(windows_core::Interface::as_raw(this), phonenumbers.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShowBlockNumbersUI)(windows_core::Interface::as_raw(this), phonenumbers.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "Foundation_Collections")] pub fn ShowUnblockNumbersUI(phonenumbers: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICommunicationBlockingAccessManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowUnblockNumbersUI)(windows_core::Interface::as_raw(this), phonenumbers.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShowUnblockNumbersUI)(windows_core::Interface::as_raw(this), phonenumbers.param().abi(), &mut result__).map(|| result__) }) } pub fn ShowBlockedCallsUI() -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs index 4dda3e09a0..e45c00a4eb 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs @@ -129,12 +129,12 @@ windows_core::imp::interface_hierarchy!(ContactDataProviderConnection, windows_c impl ContactDataProviderConnection { pub fn SyncRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SyncRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SyncRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSyncRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -143,12 +143,12 @@ impl ContactDataProviderConnection { } pub fn ServerSearchReadBatchRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServerSearchReadBatchRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServerSearchReadBatchRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServerSearchReadBatchRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -161,12 +161,12 @@ impl ContactDataProviderConnection { } pub fn CreateOrUpdateContactRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateOrUpdateContactRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CreateOrUpdateContactRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCreateOrUpdateContactRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -175,12 +175,12 @@ impl ContactDataProviderConnection { } pub fn DeleteContactRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteContactRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeleteContactRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDeleteContactRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -246,12 +246,12 @@ impl ContactListCreateOrUpdateContactRequest { } pub fn ReportCompletedAsync(&self, createdorupdatedcontact: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), createdorupdatedcontact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), createdorupdatedcontact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self) -> windows_core::Result { @@ -419,12 +419,12 @@ impl ContactListServerSearchReadBatchRequest { } pub fn SaveContactAsync(&self, contact: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportCompletedAsync(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs index cda33e164d..d0684feae0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs @@ -49,12 +49,12 @@ impl ContactPickerUI { #[cfg(feature = "deprecated")] pub fn AddContact(&self, id: &windows_core::HSTRING, contact: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddContact)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), contact.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AddContact)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), contact.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContact(&self, id: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -85,12 +85,12 @@ impl ContactPickerUI { } pub fn ContactRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContactRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContactRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContactRemoved(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -99,12 +99,12 @@ impl ContactPickerUI { } pub fn AddContact2(&self, contact: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddContact)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AddContact)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs index bac5c3f5d9..d5f381be5c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs @@ -565,12 +565,12 @@ impl IContactInstantMessageFieldFactory { } pub fn CreateInstantMessage_All(&self, username: &windows_core::HSTRING, category: ContactFieldCategory, service: &windows_core::HSTRING, displaytext: &windows_core::HSTRING, verb: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstantMessage_All)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(username), category, core::mem::transmute_copy(service), core::mem::transmute_copy(displaytext), verb.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstantMessage_All)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(username), category, core::mem::transmute_copy(service), core::mem::transmute_copy(displaytext), verb.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1370,44 +1370,44 @@ impl AggregateContactManager { #[cfg(feature = "Foundation_Collections")] pub fn FindRawContactsAsync(&self, contact: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindRawContactsAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindRawContactsAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryLinkContactsAsync(&self, primarycontact: P0, secondarycontact: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryLinkContactsAsync)(windows_core::Interface::as_raw(this), primarycontact.into_param().abi(), secondarycontact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryLinkContactsAsync)(windows_core::Interface::as_raw(this), primarycontact.param().abi(), secondarycontact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UnlinkRawContactAsync(&self, contact: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnlinkRawContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnlinkRawContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TrySetPreferredSourceForPictureAsync(&self, aggregatecontact: P0, rawcontact: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetPreferredSourceForPictureAsync)(windows_core::Interface::as_raw(this), aggregatecontact.into_param().abi(), rawcontact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySetPreferredSourceForPictureAsync)(windows_core::Interface::as_raw(this), aggregatecontact.param().abi(), rawcontact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetRemoteIdentificationInformationAsync(&self, contactlistid: &windows_core::HSTRING, remotesourceid: &windows_core::HSTRING, accountid: &windows_core::HSTRING) -> windows_core::Result { @@ -1464,10 +1464,10 @@ impl Contact { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Fields(&self) -> windows_core::Result> { @@ -1667,10 +1667,10 @@ impl Contact { #[cfg(feature = "Storage_Streams")] pub fn SetSourceDisplayPicture(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSourceDisplayPicture)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSourceDisplayPicture)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TextToneToken(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2065,12 +2065,12 @@ impl ContactAnnotationList { } pub fn TrySaveAnnotationAsync(&self, annotation: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySaveAnnotationAsync)(windows_core::Interface::as_raw(this), annotation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySaveAnnotationAsync)(windows_core::Interface::as_raw(this), annotation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAnnotationAsync(&self, annotationid: &windows_core::HSTRING) -> windows_core::Result> { @@ -2098,12 +2098,12 @@ impl ContactAnnotationList { } pub fn DeleteAnnotationAsync(&self, annotation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteAnnotationAsync)(windows_core::Interface::as_raw(this), annotation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteAnnotationAsync)(windows_core::Interface::as_raw(this), annotation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2143,22 +2143,22 @@ impl ContactAnnotationStore { #[cfg(feature = "Foundation_Collections")] pub fn FindAnnotationsForContactAsync(&self, contact: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAnnotationsForContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAnnotationsForContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DisableAnnotationAsync(&self, annotation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisableAnnotationAsync)(windows_core::Interface::as_raw(this), annotation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DisableAnnotationAsync)(windows_core::Interface::as_raw(this), annotation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateAnnotationListAsync(&self) -> windows_core::Result> { @@ -2256,10 +2256,10 @@ impl ContactCardDelayedDataLoader { } pub fn SetData(&self, contact: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), contact.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), contact.param().abi()).ok() } } } impl windows_core::RuntimeType for ContactCardDelayedDataLoader { @@ -2372,10 +2372,10 @@ impl ContactChangeReader { } pub fn AcceptChangesThrough(&self, lastchangetoaccept: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoaccept.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoaccept.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ReadBatchAsync(&self) -> windows_core::Result>> { @@ -2553,10 +2553,10 @@ impl ContactDate { } pub fn SetDay(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDay)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDay)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Month(&self) -> windows_core::Result> { let this = self; @@ -2567,10 +2567,10 @@ impl ContactDate { } pub fn SetMonth(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMonth)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMonth)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Year(&self) -> windows_core::Result> { let this = self; @@ -2581,10 +2581,10 @@ impl ContactDate { } pub fn SetYear(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetYear)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetYear)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Kind(&self) -> windows_core::Result { let this = self; @@ -2799,12 +2799,12 @@ impl ContactFieldFactory { } pub fn CreateInstantMessage_All(&self, username: &windows_core::HSTRING, category: ContactFieldCategory, service: &windows_core::HSTRING, displaytext: &windows_core::HSTRING, verb: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstantMessage_All)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(username), category, core::mem::transmute_copy(service), core::mem::transmute_copy(displaytext), verb.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstantMessage_All)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(username), category, core::mem::transmute_copy(service), core::mem::transmute_copy(displaytext), verb.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateLocation_Default(&self, unstructuredaddress: &windows_core::HSTRING) -> windows_core::Result { @@ -3013,11 +3013,11 @@ impl ContactInstantMessageField { } pub fn CreateInstantMessage_All(username: &windows_core::HSTRING, category: ContactFieldCategory, service: &windows_core::HSTRING, displaytext: &windows_core::HSTRING, verb: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactInstantMessageFieldFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstantMessage_All)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(username), category, core::mem::transmute_copy(service), core::mem::transmute_copy(displaytext), verb.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstantMessage_All)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(username), category, core::mem::transmute_copy(service), core::mem::transmute_copy(displaytext), verb.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3285,12 +3285,12 @@ impl ContactList { } pub fn ContactChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContactChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContactChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContactChanged(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3334,32 +3334,32 @@ impl ContactList { } pub fn GetContactReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetContactReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetContactReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SaveContactAsync(&self, contact: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteContactAsync(&self, contact: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetContactAsync(&self, contactid: &windows_core::HSTRING) -> windows_core::Result> { @@ -3421,12 +3421,12 @@ windows_core::imp::interface_hierarchy!(ContactListLimitedWriteOperations, windo impl ContactListLimitedWriteOperations { pub fn TryCreateOrUpdateContactAsync(&self, contact: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateOrUpdateContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateOrUpdateContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryDeleteContactAsync(&self, contactid: &windows_core::HSTRING) -> windows_core::Result> { @@ -3474,10 +3474,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxHomePhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxHomePhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxHomePhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxMobilePhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3488,10 +3488,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxMobilePhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxMobilePhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxMobilePhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxWorkPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3502,10 +3502,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWorkPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxWorkPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxWorkPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxOtherPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3516,10 +3516,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxOtherPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxOtherPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxPagerPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3530,10 +3530,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxPagerPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxPagerPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxPagerPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxBusinessFaxPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3544,10 +3544,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxBusinessFaxPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxBusinessFaxPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxBusinessFaxPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxHomeFaxPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3558,10 +3558,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxHomeFaxPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxHomeFaxPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxHomeFaxPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxCompanyPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3572,10 +3572,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxCompanyPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxCompanyPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxCompanyPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxAssistantPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3586,10 +3586,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxAssistantPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxAssistantPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxAssistantPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxRadioPhoneNumbers(&self) -> windows_core::Result> { let this = self; @@ -3600,10 +3600,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxRadioPhoneNumbers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxRadioPhoneNumbers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxRadioPhoneNumbers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxPersonalEmailAddresses(&self) -> windows_core::Result> { let this = self; @@ -3614,10 +3614,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxPersonalEmailAddresses(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxPersonalEmailAddresses)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxPersonalEmailAddresses)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxWorkEmailAddresses(&self) -> windows_core::Result> { let this = self; @@ -3628,10 +3628,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWorkEmailAddresses(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxWorkEmailAddresses)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxWorkEmailAddresses)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxOtherEmailAddresses(&self) -> windows_core::Result> { let this = self; @@ -3642,10 +3642,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherEmailAddresses(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxOtherEmailAddresses)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxOtherEmailAddresses)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxHomeAddresses(&self) -> windows_core::Result> { let this = self; @@ -3656,10 +3656,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxHomeAddresses(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxHomeAddresses)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxHomeAddresses)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxWorkAddresses(&self) -> windows_core::Result> { let this = self; @@ -3670,10 +3670,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWorkAddresses(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxWorkAddresses)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxWorkAddresses)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxOtherAddresses(&self) -> windows_core::Result> { let this = self; @@ -3684,10 +3684,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherAddresses(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxOtherAddresses)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxOtherAddresses)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxBirthdayDates(&self) -> windows_core::Result> { let this = self; @@ -3698,10 +3698,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxBirthdayDates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxBirthdayDates)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxBirthdayDates)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxAnniversaryDates(&self) -> windows_core::Result> { let this = self; @@ -3712,10 +3712,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxAnniversaryDates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxAnniversaryDates)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxAnniversaryDates)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxOtherDates(&self) -> windows_core::Result> { let this = self; @@ -3726,10 +3726,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherDates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxOtherDates)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxOtherDates)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxOtherRelationships(&self) -> windows_core::Result> { let this = self; @@ -3740,10 +3740,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherRelationships(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxOtherRelationships)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxOtherRelationships)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxSpouseRelationships(&self) -> windows_core::Result> { let this = self; @@ -3754,10 +3754,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxSpouseRelationships(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxSpouseRelationships)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxSpouseRelationships)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxPartnerRelationships(&self) -> windows_core::Result> { let this = self; @@ -3768,10 +3768,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxPartnerRelationships(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxPartnerRelationships)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxPartnerRelationships)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxSiblingRelationships(&self) -> windows_core::Result> { let this = self; @@ -3782,10 +3782,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxSiblingRelationships(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxSiblingRelationships)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxSiblingRelationships)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxParentRelationships(&self) -> windows_core::Result> { let this = self; @@ -3796,10 +3796,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxParentRelationships(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxParentRelationships)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxParentRelationships)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxChildRelationships(&self) -> windows_core::Result> { let this = self; @@ -3810,10 +3810,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxChildRelationships(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxChildRelationships)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxChildRelationships)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxJobInfo(&self) -> windows_core::Result> { let this = self; @@ -3824,10 +3824,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxJobInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxJobInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxJobInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxWebsites(&self) -> windows_core::Result> { let this = self; @@ -3838,10 +3838,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWebsites(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxWebsites)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxWebsites)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for ContactListSyncConstraints { @@ -3891,12 +3891,12 @@ impl ContactListSyncManager { } pub fn SyncStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSyncStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4044,25 +4044,25 @@ pub struct ContactManager; impl ContactManager { pub fn ShowContactCard(contact: P0, selection: super::super::Foundation::Rect) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IContactManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ShowContactCard)(windows_core::Interface::as_raw(this), contact.into_param().abi(), selection).ok() }) + Self::IContactManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ShowContactCard)(windows_core::Interface::as_raw(this), contact.param().abi(), selection).ok() }) } #[cfg(feature = "UI_Popups")] pub fn ShowContactCardWithPlacement(contact: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IContactManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ShowContactCardWithPlacement)(windows_core::Interface::as_raw(this), contact.into_param().abi(), selection, preferredplacement).ok() }) + Self::IContactManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ShowContactCardWithPlacement)(windows_core::Interface::as_raw(this), contact.param().abi(), selection, preferredplacement).ok() }) } #[cfg(feature = "UI_Popups")] pub fn ShowDelayLoadedContactCard(contact: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowDelayLoadedContactCard)(windows_core::Interface::as_raw(this), contact.into_param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowDelayLoadedContactCard)(windows_core::Interface::as_raw(this), contact.param().abi(), selection, preferredplacement, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestStoreAsync() -> windows_core::Result> { @@ -4074,31 +4074,31 @@ impl ContactManager { #[cfg(feature = "Storage_Streams")] pub fn ConvertContactToVCardAsync(contact: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertContactToVCardAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertContactToVCardAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ConvertContactToVCardAsyncWithMaxBytes(contact: P0, maxbytes: u32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertContactToVCardAsyncWithMaxBytes)(windows_core::Interface::as_raw(this), contact.into_param().abi(), maxbytes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertContactToVCardAsyncWithMaxBytes)(windows_core::Interface::as_raw(this), contact.param().abi(), maxbytes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ConvertVCardToContactAsync(vcard: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(windows_core::Interface::as_raw(this), vcard.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(windows_core::Interface::as_raw(this), vcard.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestStoreAsyncWithAccessType(accesstype: ContactStoreAccessType) -> windows_core::Result> { @@ -4122,10 +4122,10 @@ impl ContactManager { #[cfg(feature = "UI_Popups")] pub fn ShowContactCardWithOptions(contact: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement, contactcardoptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - Self::IContactManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).ShowContactCardWithOptions)(windows_core::Interface::as_raw(this), contact.into_param().abi(), selection, preferredplacement, contactcardoptions.into_param().abi()).ok() }) + Self::IContactManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).ShowContactCardWithOptions)(windows_core::Interface::as_raw(this), contact.param().abi(), selection, preferredplacement, contactcardoptions.param().abi()).ok() }) } pub fn IsShowDelayLoadedContactCardSupported() -> windows_core::Result { Self::IContactManagerStatics3(|this| unsafe { @@ -4136,20 +4136,20 @@ impl ContactManager { #[cfg(feature = "UI_Popups")] pub fn ShowDelayLoadedContactCardWithOptions(contact: P0, selection: super::super::Foundation::Rect, preferredplacement: super::super::UI::Popups::Placement, contactcardoptions: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IContactManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowDelayLoadedContactCardWithOptions)(windows_core::Interface::as_raw(this), contact.into_param().abi(), selection, preferredplacement, contactcardoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowDelayLoadedContactCardWithOptions)(windows_core::Interface::as_raw(this), contact.param().abi(), selection, preferredplacement, contactcardoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ShowFullContactCard(contact: P0, fullcontactcardoptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - Self::IContactManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).ShowFullContactCard)(windows_core::Interface::as_raw(this), contact.into_param().abi(), fullcontactcardoptions.into_param().abi()).ok() }) + Self::IContactManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).ShowFullContactCard)(windows_core::Interface::as_raw(this), contact.param().abi(), fullcontactcardoptions.param().abi()).ok() }) } pub fn SystemDisplayNameOrder() -> windows_core::Result { Self::IContactManagerStatics3(|this| unsafe { @@ -4172,11 +4172,11 @@ impl ContactManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsShowFullContactCardSupportedAsync() -> windows_core::Result> { @@ -4231,34 +4231,34 @@ impl ContactManagerForUser { #[cfg(feature = "Storage_Streams")] pub fn ConvertContactToVCardAsync(&self, contact: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertContactToVCardAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertContactToVCardAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ConvertContactToVCardAsyncWithMaxBytes(&self, contact: P0, maxbytes: u32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertContactToVCardAsyncWithMaxBytes)(windows_core::Interface::as_raw(this), contact.into_param().abi(), maxbytes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertContactToVCardAsyncWithMaxBytes)(windows_core::Interface::as_raw(this), contact.param().abi(), maxbytes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ConvertVCardToContactAsync(&self, vcard: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(windows_core::Interface::as_raw(this), vcard.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(windows_core::Interface::as_raw(this), vcard.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestStoreAsync(&self, accesstype: ContactStoreAccessType) -> windows_core::Result> { @@ -4307,11 +4307,11 @@ impl ContactManagerForUser { } pub fn ShowFullContactCard(&self, contact: P0, fullcontactcardoptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ShowFullContactCard)(windows_core::Interface::as_raw(this), contact.into_param().abi(), fullcontactcardoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ShowFullContactCard)(windows_core::Interface::as_raw(this), contact.param().abi(), fullcontactcardoptions.param().abi()).ok() } } } impl windows_core::RuntimeType for ContactManagerForUser { @@ -4386,19 +4386,19 @@ impl ContactPanel { #[cfg(feature = "UI")] pub fn SetHeaderColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetHeaderColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetHeaderColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LaunchFullAppRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFullAppRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LaunchFullAppRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLaunchFullAppRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4407,12 +4407,12 @@ impl ContactPanel { } pub fn Closing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosing(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4635,11 +4635,11 @@ impl ContactPicker { #[cfg(feature = "System")] pub fn CreateForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactPickerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsSupportedAsync() -> windows_core::Result> { @@ -4828,12 +4828,12 @@ impl ContactReader { #[cfg(feature = "Foundation_Collections")] pub fn GetMatchingPropertiesWithMatchReason(&self, contact: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMatchingPropertiesWithMatchReason)(windows_core::Interface::as_raw(this), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMatchingPropertiesWithMatchReason)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -4944,12 +4944,12 @@ impl ContactStore { } pub fn ContactChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContactChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContactChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContactChanged(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5001,12 +5001,12 @@ impl ContactStore { } pub fn GetContactReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetContactReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetContactReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateContactListInAccountAsync(&self, displayname: &windows_core::HSTRING, userdataaccountid: &windows_core::HSTRING) -> windows_core::Result> { @@ -5074,10 +5074,10 @@ impl ContactWebsite { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Description(&self) -> windows_core::Result { let this = self; @@ -5257,51 +5257,51 @@ impl PinnedContactManager { } pub fn IsContactPinned(&self, contact: P0, surface: PinnedContactSurface) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsContactPinned)(windows_core::Interface::as_raw(this), contact.into_param().abi(), surface, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsContactPinned)(windows_core::Interface::as_raw(this), contact.param().abi(), surface, &mut result__).map(|| result__) } } pub fn RequestPinContactAsync(&self, contact: P0, surface: PinnedContactSurface) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPinContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), surface, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPinContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), surface, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RequestPinContactsAsync(&self, contacts: P0, surface: PinnedContactSurface) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPinContactsAsync)(windows_core::Interface::as_raw(this), contacts.into_param().abi(), surface, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPinContactsAsync)(windows_core::Interface::as_raw(this), contacts.param().abi(), surface, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestUnpinContactAsync(&self, contact: P0, surface: PinnedContactSurface) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestUnpinContactAsync)(windows_core::Interface::as_raw(this), contact.into_param().abi(), surface, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestUnpinContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), surface, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SignalContactActivity(&self, contact: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SignalContactActivity)(windows_core::Interface::as_raw(this), contact.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SignalContactActivity)(windows_core::Interface::as_raw(this), contact.param().abi()).ok() } } pub fn GetPinnedContactIdsAsync(&self) -> windows_core::Result> { let this = self; @@ -5319,11 +5319,11 @@ impl PinnedContactManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPinnedContactManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsSupported() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs index d501b49aff..986278f1bf 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs @@ -412,12 +412,12 @@ impl ActivationSignalDetectionConfiguration { } pub fn AvailabilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAvailabilityChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -427,20 +427,20 @@ impl ActivationSignalDetectionConfiguration { #[cfg(feature = "Storage_Streams")] pub fn SetModelData(&self, datatype: &windows_core::HSTRING, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetModelData)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetModelData)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn SetModelDataAsync(&self, datatype: &windows_core::HSTRING, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetModelDataAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetModelDataAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetModelDataType(&self) -> windows_core::Result { @@ -508,23 +508,23 @@ impl ActivationSignalDetectionConfiguration { #[cfg(feature = "Storage_Streams")] pub fn ApplyTrainingData(&self, trainingdataformat: ActivationSignalDetectionTrainingDataFormat, trainingdata: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ApplyTrainingData)(windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ApplyTrainingData)(windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Streams")] pub fn ApplyTrainingDataAsync(&self, trainingdataformat: ActivationSignalDetectionTrainingDataFormat, trainingdata: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ApplyTrainingDataAsync)(windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ApplyTrainingDataAsync)(windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ClearTrainingData(&self) -> windows_core::Result<()> { @@ -541,23 +541,23 @@ impl ActivationSignalDetectionConfiguration { #[cfg(feature = "Storage_Streams")] pub fn SetModelDataWithResult(&self, datatype: &windows_core::HSTRING, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetModelDataWithResult)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetModelDataWithResult)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Streams")] pub fn SetModelDataWithResultAsync(&self, datatype: &windows_core::HSTRING, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetModelDataWithResultAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetModelDataWithResultAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(datatype), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetEnabledWithResultAsync(&self, value: bool) -> windows_core::Result> { @@ -899,12 +899,12 @@ impl ConversationalAgentSession { } pub fn SessionInterrupted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SessionInterrupted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SessionInterrupted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSessionInterrupted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -913,12 +913,12 @@ impl ConversationalAgentSession { } pub fn SignalDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SignalDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SignalDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSignalDetected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -927,12 +927,12 @@ impl ConversationalAgentSession { } pub fn SystemStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SystemStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SystemStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSystemStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1054,23 +1054,23 @@ impl ConversationalAgentSession { #[cfg(feature = "Media_Audio")] pub fn CreateAudioDeviceInputNodeAsync(&self, graph: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAudioDeviceInputNodeAsync)(windows_core::Interface::as_raw(this), graph.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAudioDeviceInputNodeAsync)(windows_core::Interface::as_raw(this), graph.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Audio")] pub fn CreateAudioDeviceInputNode(&self, graph: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAudioDeviceInputNode)(windows_core::Interface::as_raw(this), graph.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAudioDeviceInputNode)(windows_core::Interface::as_raw(this), graph.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAudioCaptureDeviceIdAsync(&self) -> windows_core::Result> { @@ -1280,10 +1280,10 @@ impl ConversationalAgentSignal { } pub fn SetSignalContext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSignalContext)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSignalContext)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SignalStart(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs index 077d2d1a23..540fe146b1 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs @@ -105,12 +105,12 @@ windows_core::imp::interface_hierarchy!(ICoreApplicationUnhandledError, windows_ impl ICoreApplicationUnhandledError { pub fn UnhandledErrorDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnhandledErrorDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnhandledErrorDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnhandledErrorDetected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -259,18 +259,18 @@ windows_core::imp::interface_hierarchy!(IFrameworkView, windows_core::IUnknown, impl IFrameworkView { pub fn Initialize(&self, applicationview: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Initialize)(windows_core::Interface::as_raw(this), applicationview.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Initialize)(windows_core::Interface::as_raw(this), applicationview.param().abi()).ok() } } #[cfg(feature = "UI_Core")] pub fn SetWindow(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWindow)(windows_core::Interface::as_raw(this), window.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWindow)(windows_core::Interface::as_raw(this), window.param().abi()).ok() } } pub fn Load(&self, entrypoint: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -376,12 +376,12 @@ impl AppListEntry { #[cfg(feature = "System")] pub fn LaunchForUserAsync(&self, user: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppInfo(&self) -> windows_core::Result { @@ -414,11 +414,11 @@ impl CoreApplication { } pub fn Suspending(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICoreApplication(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Suspending)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Suspending)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveSuspending(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -426,11 +426,11 @@ impl CoreApplication { } pub fn Resuming(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICoreApplication(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Resuming)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Resuming)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveResuming(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -451,24 +451,24 @@ impl CoreApplication { } pub fn Run(viewsource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ICoreApplication(|this| unsafe { (windows_core::Interface::vtable(this).Run)(windows_core::Interface::as_raw(this), viewsource.into_param().abi()).ok() }) + Self::ICoreApplication(|this| unsafe { (windows_core::Interface::vtable(this).Run)(windows_core::Interface::as_raw(this), viewsource.param().abi()).ok() }) } pub fn RunWithActivationFactories(activationfactorycallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ICoreApplication(|this| unsafe { (windows_core::Interface::vtable(this).RunWithActivationFactories)(windows_core::Interface::as_raw(this), activationfactorycallback.into_param().abi()).ok() }) + Self::ICoreApplication(|this| unsafe { (windows_core::Interface::vtable(this).RunWithActivationFactories)(windows_core::Interface::as_raw(this), activationfactorycallback.param().abi()).ok() }) } #[cfg(feature = "ApplicationModel_Activation")] pub fn BackgroundActivated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICoreApplication2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BackgroundActivated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BackgroundActivated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveBackgroundActivated(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -476,11 +476,11 @@ impl CoreApplication { } pub fn LeavingBackground(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICoreApplication2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LeavingBackground)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LeavingBackground)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveLeavingBackground(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -488,11 +488,11 @@ impl CoreApplication { } pub fn EnteredBackground(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICoreApplication2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnteredBackground)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnteredBackground)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveEnteredBackground(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -510,11 +510,11 @@ impl CoreApplication { #[cfg(feature = "System")] pub fn RequestRestartForUserAsync(user: P0, launcharguments: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreApplication3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestRestartForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(launcharguments), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestRestartForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(launcharguments), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Exit() -> windows_core::Result<()> { @@ -522,11 +522,11 @@ impl CoreApplication { } pub fn Exiting(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICoreApplicationExit(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Exiting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Exiting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveExiting(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -534,11 +534,11 @@ impl CoreApplication { } pub fn UnhandledErrorDetected(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICoreApplicationUnhandledError(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnhandledErrorDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnhandledErrorDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveUnhandledErrorDetected(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -577,11 +577,11 @@ impl CoreApplication { } pub fn CreateNewViewWithViewSource(viewsource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreImmersiveApplication3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateNewViewWithViewSource)(windows_core::Interface::as_raw(this), viewsource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateNewViewWithViewSource)(windows_core::Interface::as_raw(this), viewsource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -649,12 +649,12 @@ impl CoreApplicationView { #[cfg(feature = "ApplicationModel_Activation")] pub fn Activated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActivated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -699,12 +699,12 @@ impl CoreApplicationView { } pub fn HostedViewClosing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HostedViewClosing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HostedViewClosing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHostedViewClosing(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -777,12 +777,12 @@ impl CoreApplicationViewTitleBar { } pub fn LayoutMetricsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LayoutMetricsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LayoutMetricsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLayoutMetricsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -798,12 +798,12 @@ impl CoreApplicationViewTitleBar { } pub fn IsVisibleChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsVisibleChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsVisibleChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsVisibleChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs index e07cb65a2c..d247d96e51 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs @@ -100,44 +100,44 @@ windows_core::imp::interface_hierarchy!(ICoreDropOperationTarget, windows_core:: impl ICoreDropOperationTarget { pub fn EnterAsync(&self, draginfo: P0, draguioverride: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnterAsync)(windows_core::Interface::as_raw(this), draginfo.into_param().abi(), draguioverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EnterAsync)(windows_core::Interface::as_raw(this), draginfo.param().abi(), draguioverride.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn OverAsync(&self, draginfo: P0, draguioverride: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OverAsync)(windows_core::Interface::as_raw(this), draginfo.into_param().abi(), draguioverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OverAsync)(windows_core::Interface::as_raw(this), draginfo.param().abi(), draguioverride.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn LeaveAsync(&self, draginfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LeaveAsync)(windows_core::Interface::as_raw(this), draginfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LeaveAsync)(windows_core::Interface::as_raw(this), draginfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DropAsync(&self, draginfo: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DropAsync)(windows_core::Interface::as_raw(this), draginfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DropAsync)(windows_core::Interface::as_raw(this), draginfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -168,12 +168,12 @@ windows_core::imp::interface_hierarchy!(CoreDragDropManager, windows_core::IUnkn impl CoreDragDropManager { pub fn TargetRequested(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TargetRequested)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TargetRequested)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTargetRequested(&self, value: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -287,18 +287,18 @@ impl CoreDragOperation { #[cfg(feature = "Graphics_Imaging")] pub fn SetDragUIContentFromSoftwareBitmap(&self, softwarebitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDragUIContentFromSoftwareBitmap)(windows_core::Interface::as_raw(this), softwarebitmap.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDragUIContentFromSoftwareBitmap)(windows_core::Interface::as_raw(this), softwarebitmap.param().abi()).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetDragUIContentFromSoftwareBitmapWithAnchorPoint(&self, softwarebitmap: P0, anchorpoint: super::super::super::super::Foundation::Point) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDragUIContentFromSoftwareBitmapWithAnchorPoint)(windows_core::Interface::as_raw(this), softwarebitmap.into_param().abi(), anchorpoint).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDragUIContentFromSoftwareBitmapWithAnchorPoint)(windows_core::Interface::as_raw(this), softwarebitmap.param().abi(), anchorpoint).ok() } } pub fn DragUIContentMode(&self) -> windows_core::Result { let this = self; @@ -350,18 +350,18 @@ impl CoreDragUIOverride { #[cfg(feature = "Graphics_Imaging")] pub fn SetContentFromSoftwareBitmap(&self, softwarebitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentFromSoftwareBitmap)(windows_core::Interface::as_raw(this), softwarebitmap.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentFromSoftwareBitmap)(windows_core::Interface::as_raw(this), softwarebitmap.param().abi()).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetContentFromSoftwareBitmapWithAnchorPoint(&self, softwarebitmap: P0, anchorpoint: super::super::super::super::Foundation::Point) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentFromSoftwareBitmapWithAnchorPoint)(windows_core::Interface::as_raw(this), softwarebitmap.into_param().abi(), anchorpoint).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentFromSoftwareBitmapWithAnchorPoint)(windows_core::Interface::as_raw(this), softwarebitmap.param().abi(), anchorpoint).ok() } } pub fn IsContentVisible(&self) -> windows_core::Result { let this = self; @@ -431,10 +431,10 @@ windows_core::imp::interface_hierarchy!(CoreDropOperationTargetRequestedEventArg impl CoreDropOperationTargetRequestedEventArgs { pub fn SetTarget(&self, target: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), target.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), target.param().abi()).ok() } } } impl windows_core::RuntimeType for CoreDropOperationTargetRequestedEventArgs { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs index e81392323b..eab9450798 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs @@ -98,10 +98,10 @@ impl QuickLink { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = self; @@ -178,10 +178,10 @@ impl ShareOperation { } pub fn ReportCompletedWithQuickLink(&self, quicklink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReportCompletedWithQuickLink)(windows_core::Interface::as_raw(this), quicklink.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportCompletedWithQuickLink)(windows_core::Interface::as_raw(this), quicklink.param().abi()).ok() } } pub fn ReportCompleted(&self) -> windows_core::Result<()> { let this = self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs index 2ba7c642ed..09535cbca2 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs @@ -669,9 +669,9 @@ impl Clipboard { } pub fn SetContent(content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IClipboardStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), content.into_param().abi()).ok() }) + Self::IClipboardStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), content.param().abi()).ok() }) } pub fn Flush() -> windows_core::Result<()> { Self::IClipboardStatics(|this| unsafe { (windows_core::Interface::vtable(this).Flush)(windows_core::Interface::as_raw(this)).ok() }) @@ -681,11 +681,11 @@ impl Clipboard { } pub fn ContentChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IClipboardStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveContentChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -705,20 +705,20 @@ impl Clipboard { } pub fn DeleteItemFromHistory(item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IClipboardStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteItemFromHistory)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeleteItemFromHistory)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) }) } pub fn SetHistoryItemAsContent(item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IClipboardStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetHistoryItemAsContent)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetHistoryItemAsContent)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) }) } pub fn IsHistoryEnabled() -> windows_core::Result { @@ -735,21 +735,21 @@ impl Clipboard { } pub fn SetContentWithOptions(content: P0, options: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IClipboardStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetContentWithOptions)(windows_core::Interface::as_raw(this), content.into_param().abi(), options.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetContentWithOptions)(windows_core::Interface::as_raw(this), content.param().abi(), options.param().abi(), &mut result__).map(|| result__) }) } pub fn HistoryChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IClipboardStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HistoryChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HistoryChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveHistoryChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -757,11 +757,11 @@ impl Clipboard { } pub fn RoamingEnabledChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IClipboardStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RoamingEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RoamingEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveRoamingEnabledChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -769,11 +769,11 @@ impl Clipboard { } pub fn HistoryEnabledChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IClipboardStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HistoryEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HistoryEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveHistoryEnabledChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -984,12 +984,12 @@ impl DataPackage { } pub fn OperationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OperationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OperationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOperationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -998,12 +998,12 @@ impl DataPackage { } pub fn Destroyed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Destroyed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Destroyed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDestroyed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1012,17 +1012,17 @@ impl DataPackage { } pub fn SetData(&self, formatid: &windows_core::HSTRING, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formatid), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formatid), value.param().abi()).ok() } } pub fn SetDataProvider(&self, formatid: &windows_core::HSTRING, delayrenderer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDataProvider)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formatid), delayrenderer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDataProvider)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formatid), delayrenderer.param().abi()).ok() } } pub fn SetText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1031,10 +1031,10 @@ impl DataPackage { #[cfg(feature = "deprecated")] pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetHtmlFormat(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1055,49 +1055,49 @@ impl DataPackage { #[cfg(feature = "Storage_Streams")] pub fn SetBitmap(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn SetStorageItemsReadOnly(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStorageItemsReadOnly)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStorageItemsReadOnly)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn SetStorageItems(&self, value: P0, readonly: bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStorageItems)(windows_core::Interface::as_raw(this), value.into_param().abi(), readonly).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStorageItems)(windows_core::Interface::as_raw(this), value.param().abi(), readonly).ok() } } pub fn SetApplicationLink(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetApplicationLink)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetApplicationLink)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetWebLink(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetWebLink)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWebLink)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ShareCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShareCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShareCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShareCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1106,12 +1106,12 @@ impl DataPackage { } pub fn ShareCanceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShareCanceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShareCanceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShareCanceled(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1171,10 +1171,10 @@ impl DataPackagePropertySet { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn FileTypes(&self) -> windows_core::Result> { @@ -1204,10 +1204,10 @@ impl DataPackagePropertySet { } pub fn SetApplicationListingUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetApplicationListingUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetApplicationListingUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentSourceWebLink(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1218,10 +1218,10 @@ impl DataPackagePropertySet { } pub fn SetContentSourceWebLink(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetContentSourceWebLink)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentSourceWebLink)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentSourceApplicationLink(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1232,10 +1232,10 @@ impl DataPackagePropertySet { } pub fn SetContentSourceApplicationLink(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetContentSourceApplicationLink)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentSourceApplicationLink)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PackageFamilyName(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1259,10 +1259,10 @@ impl DataPackagePropertySet { #[cfg(feature = "Storage_Streams")] pub fn SetSquare30x30Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSquare30x30Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSquare30x30Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI")] pub fn LogoBackgroundColor(&self) -> windows_core::Result { @@ -1342,12 +1342,12 @@ impl DataPackagePropertySet { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -1774,10 +1774,10 @@ impl DataProviderRequest { } pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for DataProviderRequest { @@ -1806,10 +1806,10 @@ impl DataRequest { } pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Deadline(&self) -> windows_core::Result { let this = self; @@ -1896,12 +1896,12 @@ windows_core::imp::interface_hierarchy!(DataTransferManager, windows_core::IUnkn impl DataTransferManager { pub fn DataRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DataRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DataRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDataRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1910,12 +1910,12 @@ impl DataTransferManager { } pub fn TargetApplicationChosen(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TargetApplicationChosen)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TargetApplicationChosen)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTargetApplicationChosen(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1924,12 +1924,12 @@ impl DataTransferManager { } pub fn ShareProvidersRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShareProvidersRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShareProvidersRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShareProvidersRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1953,9 +1953,9 @@ impl DataTransferManager { } pub fn ShowShareUIWithOptions(options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IDataTransferManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).ShowShareUIWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi()).ok() }) + Self::IDataTransferManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).ShowShareUIWithOptions)(windows_core::Interface::as_raw(this), options.param().abi()).ok() }) } #[doc(hidden)] pub fn IDataTransferManagerStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -2100,20 +2100,20 @@ impl ShareProvider { } pub fn SetTag(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTag)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTag)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "UI"))] pub fn Create(title: &windows_core::HSTRING, displayicon: P0, backgroundcolor: super::super::UI::Color, handler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IShareProviderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), displayicon.into_param().abi(), backgroundcolor, handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), displayicon.param().abi(), backgroundcolor, handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2274,10 +2274,10 @@ impl ShareUIOptions { } pub fn SetSelectionRect(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSelectionRect)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSelectionRect)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for ShareUIOptions { @@ -2297,11 +2297,11 @@ impl SharedStorageAccessManager { #[cfg(feature = "Storage")] pub fn AddFile(file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISharedStorageAccessManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddFile)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddFile)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] @@ -2542,10 +2542,10 @@ impl DataProviderHandler { } pub fn Invoke(&self, request: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), request.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), request.param().abi()).ok() } } } #[repr(C)] @@ -2602,10 +2602,10 @@ impl ShareProviderHandler { } pub fn Invoke(&self, operation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), operation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), operation.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs index 91273d32de..9e48c54f74 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs @@ -418,12 +418,12 @@ windows_core::imp::interface_hierarchy!(EmailDataProviderConnection, windows_cor impl EmailDataProviderConnection { pub fn MailboxSyncRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MailboxSyncRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MailboxSyncRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMailboxSyncRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -432,12 +432,12 @@ impl EmailDataProviderConnection { } pub fn DownloadMessageRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadMessageRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DownloadMessageRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDownloadMessageRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -446,12 +446,12 @@ impl EmailDataProviderConnection { } pub fn DownloadAttachmentRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadAttachmentRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DownloadAttachmentRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDownloadAttachmentRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -460,12 +460,12 @@ impl EmailDataProviderConnection { } pub fn CreateFolderRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFolderRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CreateFolderRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCreateFolderRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -474,12 +474,12 @@ impl EmailDataProviderConnection { } pub fn DeleteFolderRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteFolderRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeleteFolderRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDeleteFolderRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -488,12 +488,12 @@ impl EmailDataProviderConnection { } pub fn EmptyFolderRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EmptyFolderRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EmptyFolderRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEmptyFolderRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -502,12 +502,12 @@ impl EmailDataProviderConnection { } pub fn MoveFolderRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveFolderRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MoveFolderRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMoveFolderRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -516,12 +516,12 @@ impl EmailDataProviderConnection { } pub fn UpdateMeetingResponseRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateMeetingResponseRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UpdateMeetingResponseRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdateMeetingResponseRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -530,12 +530,12 @@ impl EmailDataProviderConnection { } pub fn ForwardMeetingRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ForwardMeetingRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ForwardMeetingRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveForwardMeetingRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -544,12 +544,12 @@ impl EmailDataProviderConnection { } pub fn ProposeNewTimeForMeetingRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProposeNewTimeForMeetingRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProposeNewTimeForMeetingRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProposeNewTimeForMeetingRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -558,12 +558,12 @@ impl EmailDataProviderConnection { } pub fn SetAutoReplySettingsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAutoReplySettingsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetAutoReplySettingsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSetAutoReplySettingsRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -572,12 +572,12 @@ impl EmailDataProviderConnection { } pub fn GetAutoReplySettingsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAutoReplySettingsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetAutoReplySettingsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGetAutoReplySettingsRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -586,12 +586,12 @@ impl EmailDataProviderConnection { } pub fn ResolveRecipientsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResolveRecipientsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ResolveRecipientsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveResolveRecipientsRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -600,12 +600,12 @@ impl EmailDataProviderConnection { } pub fn ValidateCertificatesRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValidateCertificatesRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ValidateCertificatesRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveValidateCertificatesRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -614,12 +614,12 @@ impl EmailDataProviderConnection { } pub fn ServerSearchReadBatchRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServerSearchReadBatchRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServerSearchReadBatchRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServerSearchReadBatchRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -696,12 +696,12 @@ impl EmailMailboxCreateFolderRequest { } pub fn ReportCompletedAsync(&self, folder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), folder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), folder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self, status: super::EmailMailboxCreateFolderStatus) -> windows_core::Result { @@ -1210,12 +1210,12 @@ impl EmailMailboxGetAutoReplySettingsRequest { } pub fn ReportCompletedAsync(&self, autoreplysettings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), autoreplysettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), autoreplysettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self) -> windows_core::Result { @@ -1491,12 +1491,12 @@ impl EmailMailboxResolveRecipientsRequest { #[cfg(feature = "Foundation_Collections")] pub fn ReportCompletedAsync(&self, resolutionresults: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), resolutionresults.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), resolutionresults.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self) -> windows_core::Result { @@ -1593,12 +1593,12 @@ impl EmailMailboxServerSearchReadBatchRequest { } pub fn SaveMessageAsync(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportCompletedAsync(&self) -> windows_core::Result { @@ -1938,12 +1938,12 @@ impl EmailMailboxValidateCertificatesRequest { #[cfg(feature = "Foundation_Collections")] pub fn ReportCompletedAsync(&self, validationstatuses: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), validationstatuses.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), validationstatuses.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs index 2a9e208a39..68b754e7e5 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs @@ -951,10 +951,10 @@ impl EmailAttachment { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1039,21 +1039,21 @@ impl EmailAttachment { #[cfg(feature = "Storage_Streams")] pub fn Create(filename: &windows_core::HSTRING, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEmailAttachmentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filename), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filename), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn Create2(filename: &windows_core::HSTRING, data: P0, mimetype: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEmailAttachmentFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filename), data.into_param().abi(), core::mem::transmute_copy(mimetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filename), data.param().abi(), core::mem::transmute_copy(mimetype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1370,12 +1370,12 @@ impl EmailFolder { } pub fn GetConversationReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetConversationReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetConversationReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetMessageAsync(&self, id: &windows_core::HSTRING) -> windows_core::Result> { @@ -1394,12 +1394,12 @@ impl EmailFolder { } pub fn GetMessageReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMessageReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMessageReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetMessageCountsAsync(&self) -> windows_core::Result> { @@ -1411,22 +1411,22 @@ impl EmailFolder { } pub fn TryMoveAsync(&self, newparentfolder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryMoveAsync)(windows_core::Interface::as_raw(this), newparentfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryMoveAsync)(windows_core::Interface::as_raw(this), newparentfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryMoveWithNewNameAsync(&self, newparentfolder: P0, newfoldername: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryMoveWithNewNameAsync)(windows_core::Interface::as_raw(this), newparentfolder.into_param().abi(), core::mem::transmute_copy(newfoldername), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryMoveWithNewNameAsync)(windows_core::Interface::as_raw(this), newparentfolder.param().abi(), core::mem::transmute_copy(newfoldername), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TrySaveAsync(&self) -> windows_core::Result> { @@ -1438,12 +1438,12 @@ impl EmailFolder { } pub fn SaveMessageAsync(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1601,18 +1601,18 @@ impl EmailIrmInfo { } pub fn SetTemplate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTemplate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTemplate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(expiration: super::super::Foundation::DateTime, irmtemplate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEmailIrmInfoFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), expiration, irmtemplate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), expiration, irmtemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1877,12 +1877,12 @@ impl EmailMailbox { } pub fn GetConversationReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetConversationReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetConversationReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetMessageReader(&self) -> windows_core::Result { @@ -1894,12 +1894,12 @@ impl EmailMailbox { } pub fn GetMessageReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMessageReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMessageReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteAsync(&self) -> windows_core::Result { @@ -2009,22 +2009,22 @@ impl EmailMailbox { } pub fn SendMessageAsync(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SaveDraftAsync(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveDraftAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveDraftAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DownloadMessageAsync(&self, messageid: &windows_core::HSTRING) -> windows_core::Result { @@ -2050,44 +2050,44 @@ impl EmailMailbox { } pub fn TryUpdateMeetingResponseAsync(&self, meeting: P0, response: EmailMeetingResponseType, subject: &windows_core::HSTRING, comment: &windows_core::HSTRING, sendupdate: bool) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryUpdateMeetingResponseAsync)(windows_core::Interface::as_raw(this), meeting.into_param().abi(), response, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), sendupdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryUpdateMeetingResponseAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), response, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), sendupdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn TryForwardMeetingAsync(&self, meeting: P0, recipients: P1, subject: &windows_core::HSTRING, forwardheadertype: EmailMessageBodyKind, forwardheader: &windows_core::HSTRING, comment: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryForwardMeetingAsync)(windows_core::Interface::as_raw(this), meeting.into_param().abi(), recipients.into_param().abi(), core::mem::transmute_copy(subject), forwardheadertype, core::mem::transmute_copy(forwardheader), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryForwardMeetingAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), recipients.param().abi(), core::mem::transmute_copy(subject), forwardheadertype, core::mem::transmute_copy(forwardheader), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryProposeNewTimeForMeetingAsync(&self, meeting: P0, newstarttime: super::super::Foundation::DateTime, newduration: super::super::Foundation::TimeSpan, subject: &windows_core::HSTRING, comment: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryProposeNewTimeForMeetingAsync)(windows_core::Interface::as_raw(this), meeting.into_param().abi(), newstarttime, newduration, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryProposeNewTimeForMeetingAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), newstarttime, newduration, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MailboxChanged(&self, phandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MailboxChanged)(windows_core::Interface::as_raw(this), phandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MailboxChanged)(windows_core::Interface::as_raw(this), phandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMailboxChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2096,22 +2096,22 @@ impl EmailMailbox { } pub fn SmartSendMessageAsync(&self, message: P0, smartsend: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SmartSendMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), smartsend, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SmartSendMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), smartsend, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TrySetAutoReplySettingsAsync(&self, autoreplysettings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetAutoReplySettingsAsync)(windows_core::Interface::as_raw(this), autoreplysettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySetAutoReplySettingsAsync)(windows_core::Interface::as_raw(this), autoreplysettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryGetAutoReplySettingsAsync(&self, requestedformat: EmailMailboxAutoReplyMessageResponseKind) -> windows_core::Result> { @@ -2145,23 +2145,23 @@ impl EmailMailbox { #[cfg(feature = "Foundation_Collections")] pub fn ResolveRecipientsAsync(&self, recipients: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResolveRecipientsAsync)(windows_core::Interface::as_raw(this), recipients.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ResolveRecipientsAsync)(windows_core::Interface::as_raw(this), recipients.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ValidateCertificatesAsync(&self, certificates: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValidateCertificatesAsync)(windows_core::Interface::as_raw(this), certificates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ValidateCertificatesAsync)(windows_core::Interface::as_raw(this), certificates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryEmptyFolderAsync(&self, folderid: &windows_core::HSTRING) -> windows_core::Result> { @@ -2327,10 +2327,10 @@ impl EmailMailboxAutoReplySettings { } pub fn SetStartTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStartTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStartTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EndTime(&self) -> windows_core::Result> { let this = self; @@ -2341,10 +2341,10 @@ impl EmailMailboxAutoReplySettings { } pub fn SetEndTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEndTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEndTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InternalReply(&self) -> windows_core::Result { let this = self; @@ -2610,10 +2610,10 @@ impl EmailMailboxChangeReader { } pub fn AcceptChangesThrough(&self, lastchangetoacknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoacknowledge.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoacknowledge.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ReadBatchAsync(&self) -> windows_core::Result>> { @@ -2812,17 +2812,17 @@ impl EmailMailboxPolicies { } pub fn SetRequiredSmimeEncryptionAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRequiredSmimeEncryptionAlgorithm)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRequiredSmimeEncryptionAlgorithm)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetRequiredSmimeSigningAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRequiredSmimeSigningAlgorithm)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRequiredSmimeSigningAlgorithm)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetMustEncryptSmimeMessages(&self, value: bool) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2880,12 +2880,12 @@ impl EmailMailboxSyncManager { } pub fn SyncStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSyncStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2921,11 +2921,11 @@ pub struct EmailManager; impl EmailManager { pub fn ShowComposeNewEmailAsync(message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEmailManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowComposeNewEmailAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowComposeNewEmailAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestStoreAsync(accesstype: EmailStoreAccessType) -> windows_core::Result> { @@ -2937,11 +2937,11 @@ impl EmailManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEmailManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2970,12 +2970,12 @@ windows_core::imp::interface_hierarchy!(EmailManagerForUser, windows_core::IUnkn impl EmailManagerForUser { pub fn ShowComposeNewEmailAsync(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowComposeNewEmailAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowComposeNewEmailAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestStoreAsync(&self, accesstype: EmailStoreAccessType) -> windows_core::Result> { @@ -3049,10 +3049,10 @@ impl EmailMeetingInfo { } pub fn SetAppointmentOriginalStartTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppointmentOriginalStartTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppointmentOriginalStartTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result { let this = self; @@ -3107,10 +3107,10 @@ impl EmailMeetingInfo { } pub fn SetProposedStartTime(&self, proposedstarttime: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProposedStartTime)(windows_core::Interface::as_raw(this), proposedstarttime.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProposedStartTime)(windows_core::Interface::as_raw(this), proposedstarttime.param().abi()).ok() } } pub fn ProposedDuration(&self) -> windows_core::Result> { let this = self; @@ -3121,10 +3121,10 @@ impl EmailMeetingInfo { } pub fn SetProposedDuration(&self, duration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProposedDuration)(windows_core::Interface::as_raw(this), duration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProposedDuration)(windows_core::Interface::as_raw(this), duration.param().abi()).ok() } } pub fn RecurrenceStartTime(&self) -> windows_core::Result> { let this = self; @@ -3135,10 +3135,10 @@ impl EmailMeetingInfo { } pub fn SetRecurrenceStartTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRecurrenceStartTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRecurrenceStartTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "ApplicationModel_Appointments")] pub fn Recurrence(&self) -> windows_core::Result { @@ -3151,10 +3151,10 @@ impl EmailMeetingInfo { #[cfg(feature = "ApplicationModel_Appointments")] pub fn SetRecurrence(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRecurrence)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRecurrence)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoteChangeNumber(&self) -> windows_core::Result { let this = self; @@ -3388,10 +3388,10 @@ impl EmailMessage { } pub fn SetIrmInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetIrmInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIrmInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsDraftMessage(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3496,10 +3496,10 @@ impl EmailMessage { } pub fn SetSender(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSender)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSender)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SentTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -3510,10 +3510,10 @@ impl EmailMessage { } pub fn SetSentTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSentTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSentTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MeetingInfo(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3524,10 +3524,10 @@ impl EmailMessage { } pub fn SetMeetingInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetMeetingInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMeetingInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn GetBodyStream(&self, r#type: EmailMessageBodyKind) -> windows_core::Result { @@ -3540,10 +3540,10 @@ impl EmailMessage { #[cfg(feature = "Storage_Streams")] pub fn SetBodyStream(&self, r#type: EmailMessageBodyKind, stream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBodyStream)(windows_core::Interface::as_raw(this), r#type, stream.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBodyStream)(windows_core::Interface::as_raw(this), r#type, stream.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn SmimeData(&self) -> windows_core::Result { @@ -3556,10 +3556,10 @@ impl EmailMessage { #[cfg(feature = "Storage_Streams")] pub fn SetSmimeData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSmimeData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSmimeData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SmimeKind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3589,10 +3589,10 @@ impl EmailMessage { } pub fn SetSentRepresenting(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSentRepresenting)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSentRepresenting)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for EmailMessage { @@ -3904,10 +3904,10 @@ impl EmailRecipientResolutionResult { #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn SetPublicKeys(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPublicKeys)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPublicKeys)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for EmailRecipientResolutionResult { @@ -3944,12 +3944,12 @@ impl EmailStore { } pub fn GetConversationReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetConversationReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetConversationReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetMessageReader(&self) -> windows_core::Result { @@ -3961,12 +3961,12 @@ impl EmailStore { } pub fn GetMessageReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMessageReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMessageReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetMailboxAsync(&self, id: &windows_core::HSTRING) -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs index d8ee0b98df..a28242d31c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs @@ -77,12 +77,12 @@ impl ExtendedExecutionForegroundSession { } pub fn Revoked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Revoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Revoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRevoked(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs index d5f076ffbe..04d4a5e779 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs @@ -103,12 +103,12 @@ impl ExtendedExecutionSession { } pub fn Revoked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Revoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Revoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRevoked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs index cb781546b3..8e6d861e05 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs @@ -32,18 +32,18 @@ impl HolographicKeyboard { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetPlacementOverride(&self, coordinatesystem: P0, topcenterposition: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPlacementOverride)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), topcenterposition, orientation).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPlacementOverride)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, orientation).ok() } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: P0, topcenterposition: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion, maxsize: super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPlacementOverrideWithMaxSize)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), topcenterposition, orientation, maxsize).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPlacementOverrideWithMaxSize)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, orientation, maxsize).ok() } } pub fn ResetPlacementOverride(&self) -> windows_core::Result<()> { let this = self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs index 728cd0ac17..5a5abc0e6c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs @@ -99,12 +99,12 @@ impl LockApplicationHost { } pub fn Unlocking(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Unlocking)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Unlocking)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnlocking(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -194,12 +194,12 @@ windows_core::imp::interface_hierarchy!(LockScreenInfo, windows_core::IUnknown, impl LockScreenInfo { pub fn LockScreenImageChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LockScreenImageChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LockScreenImageChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLockScreenImageChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -216,12 +216,12 @@ impl LockScreenInfo { } pub fn BadgesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BadgesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BadgesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBadgesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -238,12 +238,12 @@ impl LockScreenInfo { } pub fn DetailTextChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DetailTextChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DetailTextChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDetailTextChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -260,12 +260,12 @@ impl LockScreenInfo { } pub fn AlarmIconChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AlarmIconChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AlarmIconChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAlarmIconChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs index 0d0767a800..a4cecd6e19 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs @@ -81,10 +81,10 @@ impl PaymentAppCanMakePaymentTriggerDetails { } pub fn ReportCanMakePaymentResult(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReportCanMakePaymentResult)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportCanMakePaymentResult)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for PaymentAppCanMakePaymentTriggerDetails { @@ -107,12 +107,12 @@ impl PaymentAppManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterAsync(&self, supportedpaymentmethodids: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterAsync)(windows_core::Interface::as_raw(this), supportedpaymentmethodids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterAsync)(windows_core::Interface::as_raw(this), supportedpaymentmethodids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UnregisterAsync(&self) -> windows_core::Result { @@ -193,32 +193,32 @@ impl PaymentTransaction { } pub fn UpdateShippingAddressAsync(&self, shippingaddress: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateShippingAddressAsync)(windows_core::Interface::as_raw(this), shippingaddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateShippingAddressAsync)(windows_core::Interface::as_raw(this), shippingaddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UpdateSelectedShippingOptionAsync(&self, selectedshippingoption: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateSelectedShippingOptionAsync)(windows_core::Interface::as_raw(this), selectedshippingoption.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateSelectedShippingOptionAsync)(windows_core::Interface::as_raw(this), selectedshippingoption.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AcceptAsync(&self, paymenttoken: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcceptAsync)(windows_core::Interface::as_raw(this), paymenttoken.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AcceptAsync)(windows_core::Interface::as_raw(this), paymenttoken.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Reject(&self) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs index 6b03290094..8be7b13c45 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs @@ -477,10 +477,10 @@ impl PaymentAddress { #[cfg(feature = "Foundation_Collections")] pub fn SetAddressLines(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAddressLines)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAddressLines)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Region(&self) -> windows_core::Result { let this = self; @@ -727,10 +727,10 @@ impl PaymentDetails { } pub fn SetTotal(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTotal)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTotal)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn DisplayItems(&self) -> windows_core::Result> { @@ -743,10 +743,10 @@ impl PaymentDetails { #[cfg(feature = "Foundation_Collections")] pub fn SetDisplayItems(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDisplayItems)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDisplayItems)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ShippingOptions(&self) -> windows_core::Result> { @@ -759,10 +759,10 @@ impl PaymentDetails { #[cfg(feature = "Foundation_Collections")] pub fn SetShippingOptions(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetShippingOptions)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetShippingOptions)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Modifiers(&self) -> windows_core::Result> { @@ -775,29 +775,29 @@ impl PaymentDetails { #[cfg(feature = "Foundation_Collections")] pub fn SetModifiers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetModifiers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetModifiers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(total: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPaymentDetailsFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), total.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), total.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithDisplayItems(total: P0, displayitems: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IPaymentDetailsFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithDisplayItems)(windows_core::Interface::as_raw(this), total.into_param().abi(), displayitems.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithDisplayItems)(windows_core::Interface::as_raw(this), total.param().abi(), displayitems.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -856,36 +856,36 @@ impl PaymentDetailsModifier { #[cfg(feature = "Foundation_Collections")] pub fn Create(supportedmethodids: P0, total: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), total.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), total.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAdditionalDisplayItems(supportedmethodids: P0, total: P1, additionaldisplayitems: P2) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param, + P2: windows_core::Param>, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithAdditionalDisplayItems)(windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), total.into_param().abi(), additionaldisplayitems.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithAdditionalDisplayItems)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), total.param().abi(), additionaldisplayitems.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAdditionalDisplayItemsAndJsonData(supportedmethodids: P0, total: P1, additionaldisplayitems: P2, jsondata: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param, + P2: windows_core::Param>, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithAdditionalDisplayItemsAndJsonData)(windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), total.into_param().abi(), additionaldisplayitems.into_param().abi(), core::mem::transmute_copy(jsondata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithAdditionalDisplayItemsAndJsonData)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), total.param().abi(), additionaldisplayitems.param().abi(), core::mem::transmute_copy(jsondata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -931,10 +931,10 @@ impl PaymentItem { } pub fn SetAmount(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAmount)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAmount)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Pending(&self) -> windows_core::Result { let this = self; @@ -949,11 +949,11 @@ impl PaymentItem { } pub fn Create(label: &windows_core::HSTRING, amount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPaymentItemFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -996,33 +996,33 @@ impl PaymentMediator { } pub fn SubmitPaymentRequestAsync(&self, paymentrequest: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SubmitPaymentRequestAsync)(windows_core::Interface::as_raw(this), paymentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SubmitPaymentRequestAsync)(windows_core::Interface::as_raw(this), paymentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SubmitPaymentRequestWithChangeHandlerAsync(&self, paymentrequest: P0, changehandler: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SubmitPaymentRequestWithChangeHandlerAsync)(windows_core::Interface::as_raw(this), paymentrequest.into_param().abi(), changehandler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SubmitPaymentRequestWithChangeHandlerAsync)(windows_core::Interface::as_raw(this), paymentrequest.param().abi(), changehandler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CanMakePaymentAsync(&self, paymentrequest: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanMakePaymentAsync)(windows_core::Interface::as_raw(this), paymentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CanMakePaymentAsync)(windows_core::Interface::as_raw(this), paymentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1066,11 +1066,11 @@ impl PaymentMerchantInfo { } pub fn Create(uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPaymentMerchantInfoFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1114,21 +1114,21 @@ impl PaymentMethodData { #[cfg(feature = "Foundation_Collections")] pub fn Create(supportedmethodids: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPaymentMethodDataFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithJsonData(supportedmethodids: P0, jsondata: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPaymentMethodDataFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithJsonData)(windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), core::mem::transmute_copy(jsondata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithJsonData)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), core::mem::transmute_copy(jsondata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1273,50 +1273,50 @@ impl PaymentRequest { #[cfg(feature = "Foundation_Collections")] pub fn Create(details: P0, methoddata: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IPaymentRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), details.into_param().abi(), methoddata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), details.param().abi(), methoddata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithMerchantInfo(details: P0, methoddata: P1, merchantinfo: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, { Self::IPaymentRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithMerchantInfo)(windows_core::Interface::as_raw(this), details.into_param().abi(), methoddata.into_param().abi(), merchantinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithMerchantInfo)(windows_core::Interface::as_raw(this), details.param().abi(), methoddata.param().abi(), merchantinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithMerchantInfoAndOptions(details: P0, methoddata: P1, merchantinfo: P2, options: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param, { Self::IPaymentRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithMerchantInfoAndOptions)(windows_core::Interface::as_raw(this), details.into_param().abi(), methoddata.into_param().abi(), merchantinfo.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithMerchantInfoAndOptions)(windows_core::Interface::as_raw(this), details.param().abi(), methoddata.param().abi(), merchantinfo.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithMerchantInfoOptionsAndId(details: P0, methoddata: P1, merchantinfo: P2, options: P3, id: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param, { Self::IPaymentRequestFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithMerchantInfoOptionsAndId)(windows_core::Interface::as_raw(this), details.into_param().abi(), methoddata.into_param().abi(), merchantinfo.into_param().abi(), options.into_param().abi(), core::mem::transmute_copy(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithMerchantInfoOptionsAndId)(windows_core::Interface::as_raw(this), details.param().abi(), methoddata.param().abi(), merchantinfo.param().abi(), options.param().abi(), core::mem::transmute_copy(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1370,10 +1370,10 @@ impl PaymentRequestChangedArgs { } pub fn Acknowledge(&self, changeresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Acknowledge)(windows_core::Interface::as_raw(this), changeresult.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Acknowledge)(windows_core::Interface::as_raw(this), changeresult.param().abi()).ok() } } } impl windows_core::RuntimeType for PaymentRequestChangedArgs { @@ -1424,10 +1424,10 @@ impl PaymentRequestChangedResult { } pub fn SetUpdatedPaymentDetails(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUpdatedPaymentDetails)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUpdatedPaymentDetails)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(changeacceptedbymerchant: bool) -> windows_core::Result { Self::IPaymentRequestChangedResultFactory(|this| unsafe { @@ -1437,11 +1437,11 @@ impl PaymentRequestChangedResult { } pub fn CreateWithPaymentDetails(changeacceptedbymerchant: bool, updatedpaymentdetails: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPaymentRequestChangedResultFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithPaymentDetails)(windows_core::Interface::as_raw(this), changeacceptedbymerchant, updatedpaymentdetails.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithPaymentDetails)(windows_core::Interface::as_raw(this), changeacceptedbymerchant, updatedpaymentdetails.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1586,10 +1586,10 @@ impl PaymentShippingOption { } pub fn SetAmount(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAmount)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAmount)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Tag(&self) -> windows_core::Result { let this = self; @@ -1615,29 +1615,29 @@ impl PaymentShippingOption { } pub fn Create(label: &windows_core::HSTRING, amount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPaymentShippingOptionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithSelected(label: &windows_core::HSTRING, amount: P0, selected: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPaymentShippingOptionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithSelected)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.into_param().abi(), selected, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithSelected)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.param().abi(), selected, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithSelectedAndTag(label: &windows_core::HSTRING, amount: P0, selected: bool, tag: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPaymentShippingOptionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithSelectedAndTag)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.into_param().abi(), selected, core::mem::transmute_copy(tag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithSelectedAndTag)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), amount.param().abi(), selected, core::mem::transmute_copy(tag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1832,11 +1832,11 @@ impl PaymentRequestChangedHandler { } pub fn Invoke(&self, paymentrequest: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), paymentrequest.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), paymentrequest.param().abi(), args.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs index abb9949cdc..da10fe2920 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs @@ -60,11 +60,11 @@ impl HolographicApplicationPreview { #[cfg(feature = "ApplicationModel_Activation")] pub fn IsHolographicActivation(activatedeventargs: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHolographicApplicationPreviewStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsHolographicActivation)(windows_core::Interface::as_raw(this), activatedeventargs.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsHolographicActivation)(windows_core::Interface::as_raw(this), activatedeventargs.param().abi(), &mut result__).map(|| result__) }) } #[doc(hidden)] @@ -87,18 +87,18 @@ impl HolographicKeyboardPlacementOverridePreview { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] pub fn SetPlacementOverride(&self, coordinatesystem: P0, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPlacementOverride)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), topcenterposition, normal).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPlacementOverride)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, normal).ok() } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: P0, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3, maxsize: super::super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPlacementOverrideWithMaxSize)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), topcenterposition, normal, maxsize).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPlacementOverrideWithMaxSize)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, normal, maxsize).ok() } } #[cfg(feature = "deprecated")] pub fn ResetPlacementOverride(&self) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Preview/InkWorkspace/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Preview/InkWorkspace/mod.rs index 22d21d6ed5..e1fead97db 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/InkWorkspace/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/InkWorkspace/mod.rs @@ -27,12 +27,12 @@ impl InkWorkspaceHostedAppManager { #[cfg(feature = "Graphics_Imaging")] pub fn SetThumbnailAsync(&self, bitmap: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetThumbnailAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetThumbnailAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetForCurrentApp() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs index b959a2fc0c..3da306bba1 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs @@ -166,10 +166,10 @@ impl NotesWindowManagerPreview { #[cfg(feature = "Storage_Streams")] pub fn ShowNoteWithPlacement(&self, noteviewid: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ShowNoteWithPlacement)(windows_core::Interface::as_raw(this), noteviewid, data.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ShowNoteWithPlacement)(windows_core::Interface::as_raw(this), noteviewid, data.param().abi()).ok() } } pub fn HideNote(&self, noteviewid: i32) -> windows_core::Result<()> { let this = self; @@ -197,22 +197,22 @@ impl NotesWindowManagerPreview { #[cfg(feature = "Storage_Streams")] pub fn SetNotesThumbnailAsync(&self, thumbnail: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetNotesThumbnailAsync)(windows_core::Interface::as_raw(this), thumbnail.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetNotesThumbnailAsync)(windows_core::Interface::as_raw(this), thumbnail.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SystemLockStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SystemLockStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SystemLockStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSystemLockStateChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -221,12 +221,12 @@ impl NotesWindowManagerPreview { } pub fn NotePlacementChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NotePlacementChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NotePlacementChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNotePlacementChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -235,12 +235,12 @@ impl NotesWindowManagerPreview { } pub fn NoteVisibilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NoteVisibilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NoteVisibilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNoteVisibilityChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -249,19 +249,19 @@ impl NotesWindowManagerPreview { } pub fn ShowNoteRelativeToWithOptions(&self, noteviewid: i32, anchornoteviewid: i32, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ShowNoteRelativeToWithOptions)(windows_core::Interface::as_raw(this), noteviewid, anchornoteviewid, options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ShowNoteRelativeToWithOptions)(windows_core::Interface::as_raw(this), noteviewid, anchornoteviewid, options.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn ShowNoteWithPlacementWithOptions(&self, noteviewid: i32, data: P0, options: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ShowNoteWithPlacementWithOptions)(windows_core::Interface::as_raw(this), noteviewid, data.into_param().abi(), options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ShowNoteWithPlacementWithOptions)(windows_core::Interface::as_raw(this), noteviewid, data.param().abi(), options.param().abi()).ok() } } pub fn SetFocusToPreviousView(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -270,12 +270,12 @@ impl NotesWindowManagerPreview { #[cfg(feature = "Graphics_Imaging")] pub fn SetThumbnailImageForTaskSwitcherAsync(&self, bitmap: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetThumbnailImageForTaskSwitcherAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetThumbnailImageForTaskSwitcherAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetForCurrentApp() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs index 93f63ae034..331d7553e0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs @@ -244,12 +244,12 @@ impl NamedResource { } pub fn ResolveForContext(&self, resourcecontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResolveForContext)(windows_core::Interface::as_raw(this), resourcecontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ResolveForContext)(windows_core::Interface::as_raw(this), resourcecontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -263,12 +263,12 @@ impl NamedResource { #[cfg(feature = "Foundation_Collections")] pub fn ResolveAllForContext(&self, resourcecontext: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResolveAllForContext)(windows_core::Interface::as_raw(this), resourcecontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ResolveAllForContext)(windows_core::Interface::as_raw(this), resourcecontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -405,12 +405,12 @@ impl ResourceCandidateVectorView { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -482,18 +482,18 @@ impl ResourceContext { #[cfg(feature = "Foundation_Collections")] pub fn ResetQualifierValues(&self, qualifiernames: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ResetQualifierValues)(windows_core::Interface::as_raw(this), qualifiernames.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ResetQualifierValues)(windows_core::Interface::as_raw(this), qualifiernames.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn OverrideToMatch(&self, result: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OverrideToMatch)(windows_core::Interface::as_raw(this), result.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OverrideToMatch)(windows_core::Interface::as_raw(this), result.param().abi()).ok() } } pub fn Clone(&self) -> windows_core::Result { let this = self; @@ -513,19 +513,19 @@ impl ResourceContext { #[cfg(feature = "Foundation_Collections")] pub fn SetLanguages(&self, languages: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLanguages)(windows_core::Interface::as_raw(this), languages.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLanguages)(windows_core::Interface::as_raw(this), languages.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn CreateMatchingContext(result: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IResourceContextStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMatchingContext)(windows_core::Interface::as_raw(this), result.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMatchingContext)(windows_core::Interface::as_raw(this), result.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetForCurrentView() -> windows_core::Result { @@ -543,9 +543,9 @@ impl ResourceContext { #[cfg(feature = "Foundation_Collections")] pub fn ResetGlobalQualifierValuesForSpecifiedQualifiers(qualifiernames: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::IResourceContextStatics2(|this| unsafe { (windows_core::Interface::vtable(this).ResetGlobalQualifierValuesForSpecifiedQualifiers)(windows_core::Interface::as_raw(this), qualifiernames.into_param().abi()).ok() }) + Self::IResourceContextStatics2(|this| unsafe { (windows_core::Interface::vtable(this).ResetGlobalQualifierValuesForSpecifiedQualifiers)(windows_core::Interface::as_raw(this), qualifiernames.param().abi()).ok() }) } pub fn GetForViewIndependentUse() -> windows_core::Result { Self::IResourceContextStatics2(|this| unsafe { @@ -559,11 +559,11 @@ impl ResourceContext { #[cfg(feature = "UI")] pub fn GetForUIContext(context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IResourceContextStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -713,18 +713,18 @@ impl ResourceManager { #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn LoadPriFiles(&self, files: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LoadPriFiles)(windows_core::Interface::as_raw(this), files.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadPriFiles)(windows_core::Interface::as_raw(this), files.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn UnloadPriFiles(&self, files: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UnloadPriFiles)(windows_core::Interface::as_raw(this), files.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UnloadPriFiles)(windows_core::Interface::as_raw(this), files.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetAllNamedResourcesForPackage(&self, packagename: &windows_core::HSTRING, resourcelayoutinfo: ResourceLayoutInfo) -> windows_core::Result> { @@ -832,12 +832,12 @@ impl ResourceMap { } pub fn GetValueForContext(&self, resource: &windows_core::HSTRING, context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetValueForContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(resource), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetValueForContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(resource), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetSubtree(&self, reference: &windows_core::HSTRING) -> windows_core::Result { @@ -1282,12 +1282,12 @@ impl ResourceQualifierObservableMap { #[cfg(feature = "Foundation_Collections")] pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -1366,12 +1366,12 @@ impl ResourceQualifierVectorView { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs index bcdec5cbc4..15eea268fe 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs @@ -182,44 +182,44 @@ impl ResourceIndexer { #[cfg(feature = "deprecated")] pub fn IndexFilePath(&self, filepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexFilePath)(windows_core::Interface::as_raw(this), filepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).IndexFilePath)(windows_core::Interface::as_raw(this), filepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn IndexFileContentsAsync(&self, file: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexFileContentsAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).IndexFileContentsAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] pub fn CreateResourceIndexer(projectroot: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IResourceIndexerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResourceIndexer)(windows_core::Interface::as_raw(this), projectroot.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResourceIndexer)(windows_core::Interface::as_raw(this), projectroot.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "deprecated")] pub fn CreateResourceIndexerWithExtension(projectroot: P0, extensiondllpath: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IResourceIndexerFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResourceIndexerWithExtension)(windows_core::Interface::as_raw(this), projectroot.into_param().abi(), extensiondllpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResourceIndexerWithExtension)(windows_core::Interface::as_raw(this), projectroot.param().abi(), extensiondllpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs index 6aec2b2629..4bcd7faf1d 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs @@ -92,12 +92,12 @@ impl ResourceLoader { } pub fn GetStringForUri(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStringForUri)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStringForUri)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateResourceLoaderByName(name: &windows_core::HSTRING) -> windows_core::Result { @@ -108,11 +108,11 @@ impl ResourceLoader { } pub fn GetStringForReference(uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IResourceLoaderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStringForReference)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStringForReference)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetForCurrentView() -> windows_core::Result { @@ -142,11 +142,11 @@ impl ResourceLoader { #[cfg(feature = "UI")] pub fn GetForUIContext(context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IResourceLoaderStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefaultPriPath(packagefullname: &windows_core::HSTRING) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs index d1fc38f792..9672e45cab 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs @@ -174,10 +174,10 @@ impl SearchSuggestionManager { } pub fn SetLocalContentSuggestionSettings(&self, settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLocalContentSuggestionSettings)(windows_core::Interface::as_raw(this), settings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLocalContentSuggestionSettings)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() } } pub fn SetQuery(&self, querytext: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -189,10 +189,10 @@ impl SearchSuggestionManager { } pub fn SetQueryWithSearchQueryLinguisticDetails(&self, querytext: &windows_core::HSTRING, language: &windows_core::HSTRING, linguisticdetails: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetQueryWithSearchQueryLinguisticDetails)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(querytext), core::mem::transmute_copy(language), linguisticdetails.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetQueryWithSearchQueryLinguisticDetails)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(querytext), core::mem::transmute_copy(language), linguisticdetails.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Suggestions(&self) -> windows_core::Result> { @@ -216,12 +216,12 @@ impl SearchSuggestionManager { } pub fn SuggestionsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SuggestionsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SuggestionsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSuggestionsRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -230,12 +230,12 @@ impl SearchSuggestionManager { } pub fn RequestingFocusOnKeyboardInput(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestingFocusOnKeyboardInput)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RequestingFocusOnKeyboardInput)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRequestingFocusOnKeyboardInput(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs index 4a8b53e7a1..855eb8ddb1 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs @@ -544,12 +544,12 @@ impl SearchPane { #[cfg(feature = "deprecated")] pub fn VisibilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -560,12 +560,12 @@ impl SearchPane { #[cfg(feature = "deprecated")] pub fn QueryChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QueryChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).QueryChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -576,12 +576,12 @@ impl SearchPane { #[cfg(feature = "deprecated")] pub fn SuggestionsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SuggestionsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SuggestionsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -592,12 +592,12 @@ impl SearchPane { #[cfg(feature = "deprecated")] pub fn QuerySubmitted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QuerySubmitted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).QuerySubmitted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -608,12 +608,12 @@ impl SearchPane { #[cfg(feature = "deprecated")] pub fn ResultSuggestionChosen(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResultSuggestionChosen)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ResultSuggestionChosen)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -624,10 +624,10 @@ impl SearchPane { #[cfg(feature = "deprecated")] pub fn SetLocalContentSuggestionSettings(&self, settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLocalContentSuggestionSettings)(windows_core::Interface::as_raw(this), settings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLocalContentSuggestionSettings)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn ShowOverloadDefault(&self) -> windows_core::Result<()> { @@ -1078,11 +1078,11 @@ impl SearchQueryLinguisticDetails { #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(querytextalternatives: P0, querytextcompositionstart: u32, querytextcompositionlength: u32) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISearchQueryLinguisticDetailsFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), querytextalternatives.into_param().abi(), querytextcompositionstart, querytextcompositionlength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), querytextalternatives.param().abi(), querytextcompositionstart, querytextcompositionlength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1122,18 +1122,18 @@ impl SearchSuggestionCollection { #[cfg(feature = "Foundation_Collections")] pub fn AppendQuerySuggestions(&self, suggestions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AppendQuerySuggestions)(windows_core::Interface::as_raw(this), suggestions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AppendQuerySuggestions)(windows_core::Interface::as_raw(this), suggestions.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn AppendResultSuggestion(&self, text: &windows_core::HSTRING, detailtext: &windows_core::HSTRING, tag: &windows_core::HSTRING, image: P0, imagealternatetext: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AppendResultSuggestion)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), core::mem::transmute_copy(detailtext), core::mem::transmute_copy(tag), image.into_param().abi(), core::mem::transmute_copy(imagealternatetext)).ok() } + unsafe { (windows_core::Interface::vtable(this).AppendResultSuggestion)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), core::mem::transmute_copy(detailtext), core::mem::transmute_copy(tag), image.param().abi(), core::mem::transmute_copy(imagealternatetext)).ok() } } pub fn AppendSearchSeparator(&self, label: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/LicenseManagement/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/LicenseManagement/mod.rs index a0b917d580..ba709099ae 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/LicenseManagement/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/LicenseManagement/mod.rs @@ -56,22 +56,22 @@ impl LicenseManager { #[cfg(feature = "Storage_Streams")] pub fn AddLicenseAsync(license: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILicenseManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddLicenseAsync)(windows_core::Interface::as_raw(this), license.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddLicenseAsync)(windows_core::Interface::as_raw(this), license.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn GetSatisfactionInfosAsync(contentids: P0, keyids: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ILicenseManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSatisfactionInfosAsync)(windows_core::Interface::as_raw(this), contentids.into_param().abi(), keyids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSatisfactionInfosAsync)(windows_core::Interface::as_raw(this), contentids.param().abi(), keyids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RefreshLicensesAsync(refreshoption: LicenseRefreshOption) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/InstallControl/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/InstallControl/mod.rs index 180fdea15d..fdc18fe493 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/InstallControl/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/InstallControl/mod.rs @@ -409,12 +409,12 @@ impl AppInstallItem { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -423,12 +423,12 @@ impl AppInstallItem { } pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -575,12 +575,12 @@ impl AppInstallManager { } pub fn ItemCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemCompleted(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -589,12 +589,12 @@ impl AppInstallManager { } pub fn ItemStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemStatusChanged(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -724,79 +724,79 @@ impl AppInstallManager { #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment"))] pub fn StartProductInstallAsync(&self, productid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, repair: bool, forceuseofnonremovablestorage: bool, correlationvector: &windows_core::HSTRING, targetvolume: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), repair, forceuseofnonremovablestorage, core::mem::transmute_copy(correlationvector), targetvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartProductInstallAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), repair, forceuseofnonremovablestorage, core::mem::transmute_copy(correlationvector), targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment", feature = "System"))] pub fn StartProductInstallForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, repair: bool, forceuseofnonremovablestorage: bool, correlationvector: &windows_core::HSTRING, targetvolume: P1) -> windows_core::Result>> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), repair, forceuseofnonremovablestorage, core::mem::transmute_copy(correlationvector), targetvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartProductInstallForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), repair, forceuseofnonremovablestorage, core::mem::transmute_copy(correlationvector), targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "System")] pub fn UpdateAppByPackageFamilyNameForUserAsync(&self, user: P0, packagefamilyname: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateAppByPackageFamilyNameForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(packagefamilyname), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateAppByPackageFamilyNameForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(packagefamilyname), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "System")] pub fn SearchForUpdatesForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SearchForUpdatesForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "System"))] pub fn SearchForAllUpdatesForUserAsync(&self, user: P0, correlationvector: &windows_core::HSTRING) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SearchForAllUpdatesForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "System")] pub fn GetIsAppAllowedToInstallForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsAppAllowedToInstallForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetIsAppAllowedToInstallForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "System")] pub fn GetIsApplicableForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsApplicableForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetIsApplicableForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveToFrontOfDownloadQueue(&self, productid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -813,12 +813,12 @@ impl AppInstallManager { #[cfg(feature = "System")] pub fn GetFreeUserEntitlementForUserAsync(&self, user: P0, storeid: &windows_core::HSTRING, campaignid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFreeUserEntitlementForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(storeid), core::mem::transmute_copy(campaignid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFreeUserEntitlementForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(storeid), core::mem::transmute_copy(campaignid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetFreeDeviceEntitlementAsync(&self, storeid: &windows_core::HSTRING, campaignid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> { @@ -839,69 +839,69 @@ impl AppInstallManager { #[cfg(feature = "Foundation_Collections")] pub fn SearchForAllUpdatesWithUpdateOptionsAsync(&self, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesWithUpdateOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SearchForAllUpdatesWithUpdateOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "System"))] pub fn SearchForAllUpdatesWithUpdateOptionsForUserAsync(&self, user: P0, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P1) -> windows_core::Result>> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesWithUpdateOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SearchForAllUpdatesWithUpdateOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SearchForUpdatesWithUpdateOptionsAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesWithUpdateOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SearchForUpdatesWithUpdateOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "System")] pub fn SearchForUpdatesWithUpdateOptionsForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesWithUpdateOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SearchForUpdatesWithUpdateOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn StartProductInstallWithOptionsAsync(&self, productid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, installoptions: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), core::mem::transmute_copy(correlationvector), installoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartProductInstallWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), core::mem::transmute_copy(correlationvector), installoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "System"))] pub fn StartProductInstallWithOptionsForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, installoptions: P1) -> windows_core::Result>> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallWithOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), core::mem::transmute_copy(correlationvector), installoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartProductInstallWithOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), core::mem::transmute_copy(correlationvector), installoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetIsPackageIdentityAllowedToInstallAsync(&self, correlationvector: &windows_core::HSTRING, packageidentityname: &windows_core::HSTRING, publishercertificatename: &windows_core::HSTRING) -> windows_core::Result> { @@ -914,12 +914,12 @@ impl AppInstallManager { #[cfg(feature = "System")] pub fn GetIsPackageIdentityAllowedToInstallForUserAsync(&self, user: P0, correlationvector: &windows_core::HSTRING, packageidentityname: &windows_core::HSTRING, publishercertificatename: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsPackageIdentityAllowedToInstallForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(packageidentityname), core::mem::transmute_copy(publishercertificatename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetIsPackageIdentityAllowedToInstallForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(packageidentityname), core::mem::transmute_copy(publishercertificatename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CanInstallForAllUsers(&self) -> windows_core::Result { @@ -1034,10 +1034,10 @@ impl AppInstallOptions { #[cfg(feature = "Management_Deployment")] pub fn SetTargetVolume(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LaunchAfterInstall(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs index de731231c3..ff3efd9a79 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs @@ -275,11 +275,11 @@ impl StoreConfiguration { #[cfg(feature = "Foundation_Collections")] pub fn FilterUnsupportedSystemFeaturesAsync(systemfeatures: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IStoreConfigurationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FilterUnsupportedSystemFeaturesAsync)(windows_core::Interface::as_raw(this), systemfeatures.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FilterUnsupportedSystemFeaturesAsync)(windows_core::Interface::as_raw(this), systemfeatures.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn PurchasePromptingPolicy() -> windows_core::Result> { @@ -290,9 +290,9 @@ impl StoreConfiguration { } pub fn SetPurchasePromptingPolicy(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::IStoreConfigurationStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetPurchasePromptingPolicy)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IStoreConfigurationStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetPurchasePromptingPolicy)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn HasStoreWebAccount() -> windows_core::Result { Self::IStoreConfigurationStatics3(|this| unsafe { @@ -303,11 +303,11 @@ impl StoreConfiguration { #[cfg(feature = "System")] pub fn HasStoreWebAccountForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreConfigurationStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HasStoreWebAccountForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HasStoreWebAccountForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "Storage_Streams")] @@ -320,37 +320,37 @@ impl StoreConfiguration { #[cfg(feature = "System")] pub fn SetStoreWebAccountIdForUser(user: P0, webaccountid: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IStoreConfigurationStatics3(|this| unsafe { (windows_core::Interface::vtable(this).SetStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(webaccountid)).ok() }) + Self::IStoreConfigurationStatics3(|this| unsafe { (windows_core::Interface::vtable(this).SetStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid)).ok() }) } #[cfg(feature = "System")] pub fn IsStoreWebAccountIdForUser(user: P0, webaccountid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreConfigurationStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(webaccountid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid), &mut result__).map(|| result__) }) } #[cfg(feature = "System")] pub fn GetPurchasePromptingPolicyForUser(user: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreConfigurationStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPurchasePromptingPolicyForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPurchasePromptingPolicyForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn SetPurchasePromptingPolicyForUser(user: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { - Self::IStoreConfigurationStatics3(|this| unsafe { (windows_core::Interface::vtable(this).SetPurchasePromptingPolicyForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), value.into_param().abi()).ok() }) + Self::IStoreConfigurationStatics3(|this| unsafe { (windows_core::Interface::vtable(this).SetPurchasePromptingPolicyForUser)(windows_core::Interface::as_raw(this), user.param().abi(), value.param().abi()).ok() }) } pub fn GetStoreWebAccountId() -> windows_core::Result { Self::IStoreConfigurationStatics4(|this| unsafe { @@ -361,11 +361,11 @@ impl StoreConfiguration { #[cfg(feature = "System")] pub fn GetStoreWebAccountIdForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreConfigurationStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn SetEnterpriseStoreWebAccountId(webaccountid: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -374,9 +374,9 @@ impl StoreConfiguration { #[cfg(feature = "System")] pub fn SetEnterpriseStoreWebAccountIdForUser(user: P0, webaccountid: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IStoreConfigurationStatics4(|this| unsafe { (windows_core::Interface::vtable(this).SetEnterpriseStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(webaccountid)).ok() }) + Self::IStoreConfigurationStatics4(|this| unsafe { (windows_core::Interface::vtable(this).SetEnterpriseStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid)).ok() }) } pub fn GetEnterpriseStoreWebAccountId() -> windows_core::Result { Self::IStoreConfigurationStatics4(|this| unsafe { @@ -387,11 +387,11 @@ impl StoreConfiguration { #[cfg(feature = "System")] pub fn GetEnterpriseStoreWebAccountIdForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreConfigurationStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEnterpriseStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetEnterpriseStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ShouldRestrictToEnterpriseStoreOnly() -> windows_core::Result { @@ -403,11 +403,11 @@ impl StoreConfiguration { #[cfg(feature = "System")] pub fn ShouldRestrictToEnterpriseStoreOnlyForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreConfigurationStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShouldRestrictToEnterpriseStoreOnlyForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShouldRestrictToEnterpriseStoreOnlyForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).map(|| result__) }) } pub fn IsPinToDesktopSupported() -> windows_core::Result { @@ -434,9 +434,9 @@ impl StoreConfiguration { #[cfg(feature = "System")] pub fn PinToDesktopForUser(user: P0, apppackagefamilyname: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IStoreConfigurationStatics5(|this| unsafe { (windows_core::Interface::vtable(this).PinToDesktopForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(apppackagefamilyname)).ok() }) + Self::IStoreConfigurationStatics5(|this| unsafe { (windows_core::Interface::vtable(this).PinToDesktopForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(apppackagefamilyname)).ok() }) } #[doc(hidden)] pub fn IStoreConfigurationStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -702,24 +702,24 @@ impl WebAuthenticationCoreManagerHelper { #[cfg(all(feature = "Security_Authentication_Web_Core", feature = "UI_Xaml"))] pub fn RequestTokenWithUIElementHostingAsync(request: P0, uielement: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAuthenticationCoreManagerHelper(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestTokenWithUIElementHostingAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), uielement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestTokenWithUIElementHostingAsync)(windows_core::Interface::as_raw(this), request.param().abi(), uielement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Security_Authentication_Web_Core", feature = "Security_Credentials", feature = "UI_Xaml"))] pub fn RequestTokenWithUIElementHostingAndWebAccountAsync(request: P0, webaccount: P1, uielement: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IWebAuthenticationCoreManagerHelper(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestTokenWithUIElementHostingAndWebAccountAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), webaccount.into_param().abi(), uielement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestTokenWithUIElementHostingAndWebAccountAsync)(windows_core::Interface::as_raw(this), request.param().abi(), webaccount.param().abi(), uielement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs index 80017b5932..caf655fe56 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs @@ -361,21 +361,21 @@ impl CurrentApp { #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByProductIdsAsync(productids: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICurrentAppStaticsWithFiltering(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(windows_core::Interface::as_raw(this), productids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(windows_core::Interface::as_raw(this), productids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByKeywordsAsync(keywords: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICurrentAppStaticsWithFiltering(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(windows_core::Interface::as_raw(this), keywords.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(windows_core::Interface::as_raw(this), keywords.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ReportProductFulfillment(productid: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -401,11 +401,11 @@ impl CurrentApp { } pub fn RequestProductPurchaseWithDisplayPropertiesAsync(productid: &windows_core::HSTRING, offerid: &windows_core::HSTRING, displayproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICurrentAppWithConsumables(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseWithDisplayPropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(offerid), displayproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestProductPurchaseWithDisplayPropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(offerid), displayproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -498,31 +498,31 @@ impl CurrentAppSimulator { #[cfg(feature = "Storage")] pub fn ReloadSimulatorAsync(simulatorsettingsfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICurrentAppSimulator(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReloadSimulatorAsync)(windows_core::Interface::as_raw(this), simulatorsettingsfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReloadSimulatorAsync)(windows_core::Interface::as_raw(this), simulatorsettingsfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByProductIdsAsync(productids: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICurrentAppSimulatorStaticsWithFiltering(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(windows_core::Interface::as_raw(this), productids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(windows_core::Interface::as_raw(this), productids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByKeywordsAsync(keywords: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICurrentAppSimulatorStaticsWithFiltering(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(windows_core::Interface::as_raw(this), keywords.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(windows_core::Interface::as_raw(this), keywords.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetAppPurchaseCampaignIdAsync() -> windows_core::Result> { @@ -545,11 +545,11 @@ impl CurrentAppSimulator { } pub fn RequestProductPurchaseWithDisplayPropertiesAsync(productid: &windows_core::HSTRING, offerid: &windows_core::HSTRING, displayproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICurrentAppSimulatorWithConsumables(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseWithDisplayPropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(offerid), displayproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestProductPurchaseWithDisplayPropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(offerid), displayproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -619,12 +619,12 @@ impl LicenseInformation { } pub fn LicenseChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LicenseChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLicenseChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -925,10 +925,10 @@ impl ProductPurchaseDisplayProperties { } pub fn SetImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateProductPurchaseDisplayProperties(name: &windows_core::HSTRING) -> windows_core::Result { Self::IProductPurchaseDisplayPropertiesFactory(|this| unsafe { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/Core/mod.rs index 525b212e58..6690f93d22 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/Core/mod.rs @@ -12,20 +12,20 @@ pub struct CoreUserActivityManager; impl CoreUserActivityManager { pub fn CreateUserActivitySessionInBackground(activity: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreUserActivityManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUserActivitySessionInBackground)(windows_core::Interface::as_raw(this), activity.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUserActivitySessionInBackground)(windows_core::Interface::as_raw(this), activity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn DeleteUserActivitySessionsInTimeRangeAsync(channel: P0, starttime: super::super::super::Foundation::DateTime, endtime: super::super::super::Foundation::DateTime) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreUserActivityManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteUserActivitySessionsInTimeRangeAsync)(windows_core::Interface::as_raw(this), channel.into_param().abi(), starttime, endtime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteUserActivitySessionsInTimeRangeAsync)(windows_core::Interface::as_raw(this), channel.param().abi(), starttime, endtime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs index 8269ed66cb..f36a46390b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs @@ -313,10 +313,10 @@ impl UserActivity { } pub fn SetContentUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentType(&self) -> windows_core::Result { let this = self; @@ -338,10 +338,10 @@ impl UserActivity { } pub fn SetFallbackUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFallbackUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFallbackUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ActivationUri(&self) -> windows_core::Result { let this = self; @@ -352,10 +352,10 @@ impl UserActivity { } pub fn SetActivationUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetActivationUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetActivationUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentInfo(&self) -> windows_core::Result { let this = self; @@ -366,10 +366,10 @@ impl UserActivity { } pub fn SetContentInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SaveAsync(&self) -> windows_core::Result { let this = self; @@ -425,11 +425,11 @@ impl UserActivity { #[cfg(feature = "Foundation_Collections")] pub fn ToJsonArray(activities: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IUserActivityStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ToJsonArray)(windows_core::Interface::as_raw(this), activities.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ToJsonArray)(windows_core::Interface::as_raw(this), activities.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -476,10 +476,10 @@ impl UserActivityAttribution { } pub fn SetIconUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIconUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIconUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AlternateText(&self) -> windows_core::Result { let this = self; @@ -505,11 +505,11 @@ impl UserActivityAttribution { } pub fn CreateWithUri(iconuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserActivityAttributionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithUri)(windows_core::Interface::as_raw(this), iconuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithUri)(windows_core::Interface::as_raw(this), iconuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -584,21 +584,21 @@ impl UserActivityChannel { #[cfg(feature = "Security_Credentials")] pub fn TryGetForWebAccount(account: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserActivityChannelStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetForWebAccount)(windows_core::Interface::as_raw(this), account.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetForWebAccount)(windows_core::Interface::as_raw(this), account.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserActivityChannelStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -673,10 +673,10 @@ windows_core::imp::interface_hierarchy!(UserActivityRequest, windows_core::IUnkn impl UserActivityRequest { pub fn SetUserActivity(&self, activity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUserActivity)(windows_core::Interface::as_raw(this), activity.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUserActivity)(windows_core::Interface::as_raw(this), activity.param().abi()).ok() } } } impl windows_core::RuntimeType for UserActivityRequest { @@ -698,12 +698,12 @@ windows_core::imp::interface_hierarchy!(UserActivityRequestManager, windows_core impl UserActivityRequestManager { pub fn UserActivityRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserActivityRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserActivityRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserActivityRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -882,18 +882,18 @@ impl UserActivityVisualElements { } pub fn SetAttribution(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAttribution)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAttribution)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Shell")] pub fn SetContent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Shell")] pub fn Content(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs index 2b6a6f34c6..1570d87d10 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs @@ -337,10 +337,10 @@ impl DeviceAccountConfiguration { #[cfg(feature = "Security_Credentials")] pub fn SetIncomingServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetIncomingServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIncomingServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn OutgoingServerCredential(&self) -> windows_core::Result { @@ -353,10 +353,10 @@ impl DeviceAccountConfiguration { #[cfg(feature = "Security_Credentials")] pub fn SetOutgoingServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetOutgoingServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOutgoingServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OAuthRefreshToken(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -524,10 +524,10 @@ impl DeviceAccountConfiguration { } pub fn SetCardDavServerUrl(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetCardDavServerUrl)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCardDavServerUrl)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CardDavRequiresSsl(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -549,10 +549,10 @@ impl DeviceAccountConfiguration { } pub fn SetCalDavServerUrl(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetCalDavServerUrl)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCalDavServerUrl)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CalDavRequiresSsl(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -671,11 +671,11 @@ impl UserDataAccountSystemAccessManager { #[cfg(feature = "Foundation_Collections")] pub fn AddAndShowDeviceAccountsAsync(accounts: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IUserDataAccountSystemAccessManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddAndShowDeviceAccountsAsync)(windows_core::Interface::as_raw(this), accounts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddAndShowDeviceAccountsAsync)(windows_core::Interface::as_raw(this), accounts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn SuppressLocalAccountWithAccountAsync(userdataaccountid: &windows_core::HSTRING) -> windows_core::Result { @@ -686,11 +686,11 @@ impl UserDataAccountSystemAccessManager { } pub fn CreateDeviceAccountAsync(account: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserDataAccountSystemAccessManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDeviceAccountAsync)(windows_core::Interface::as_raw(this), account.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDeviceAccountAsync)(windows_core::Interface::as_raw(this), account.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn DeleteDeviceAccountAsync(accountid: &windows_core::HSTRING) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs index 03b55c242b..96758b9d0c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs @@ -355,10 +355,10 @@ impl UserDataAccount { #[cfg(feature = "Storage_Streams")] pub fn SetIcon(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for UserDataAccount { @@ -402,11 +402,11 @@ impl UserDataAccountManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserDataAccountManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -492,12 +492,12 @@ impl UserDataAccountStore { } pub fn StoreChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StoreChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StoreChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStoreChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs index 07b8daa3fe..df7deed3e0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs @@ -142,12 +142,12 @@ windows_core::imp::interface_hierarchy!(UserDataTaskDataProviderConnection, wind impl UserDataTaskDataProviderConnection { pub fn CreateOrUpdateTaskRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateOrUpdateTaskRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CreateOrUpdateTaskRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCreateOrUpdateTaskRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -156,12 +156,12 @@ impl UserDataTaskDataProviderConnection { } pub fn SyncRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SyncRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SyncRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSyncRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -170,12 +170,12 @@ impl UserDataTaskDataProviderConnection { } pub fn SkipOccurrenceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SkipOccurrenceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SkipOccurrenceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSkipOccurrenceRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -184,12 +184,12 @@ impl UserDataTaskDataProviderConnection { } pub fn CompleteTaskRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CompleteTaskRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CompleteTaskRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleteTaskRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -198,12 +198,12 @@ impl UserDataTaskDataProviderConnection { } pub fn DeleteTaskRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteTaskRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeleteTaskRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDeleteTaskRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -351,12 +351,12 @@ impl UserDataTaskListCreateOrUpdateTaskRequest { } pub fn ReportCompletedAsync(&self, createdorupdateduserdatatask: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), createdorupdateduserdatatask.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), createdorupdateduserdatatask.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs index c04797afad..8ff08f1014 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs @@ -251,10 +251,10 @@ impl UserDataTask { } pub fn SetCompletedDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompletedDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompletedDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Details(&self) -> windows_core::Result { let this = self; @@ -287,10 +287,10 @@ impl UserDataTask { } pub fn SetDueDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDueDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDueDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Kind(&self) -> windows_core::Result { let this = self; @@ -319,10 +319,10 @@ impl UserDataTask { } pub fn SetRecurrenceProperties(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRecurrenceProperties)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRecurrenceProperties)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RegenerationProperties(&self) -> windows_core::Result { let this = self; @@ -333,10 +333,10 @@ impl UserDataTask { } pub fn SetRegenerationProperties(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRegenerationProperties)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRegenerationProperties)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Reminder(&self) -> windows_core::Result> { let this = self; @@ -347,10 +347,10 @@ impl UserDataTask { } pub fn SetReminder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetReminder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReminder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Sensitivity(&self) -> windows_core::Result { let this = self; @@ -383,10 +383,10 @@ impl UserDataTask { } pub fn SetStartDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStartDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStartDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for UserDataTask { @@ -516,12 +516,12 @@ impl UserDataTaskList { } pub fn GetTaskReaderWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetTaskReaderWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetTaskReaderWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetTaskAsync(&self, userdatatask: &windows_core::HSTRING) -> windows_core::Result> { @@ -533,12 +533,12 @@ impl UserDataTaskList { } pub fn SaveTaskAsync(&self, userdatatask: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveTaskAsync)(windows_core::Interface::as_raw(this), userdatatask.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveTaskAsync)(windows_core::Interface::as_raw(this), userdatatask.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteTaskAsync(&self, userdatataskid: &windows_core::HSTRING) -> windows_core::Result { @@ -589,12 +589,12 @@ impl UserDataTaskListLimitedWriteOperations { } pub fn TryCreateOrUpdateTaskAsync(&self, userdatatask: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateOrUpdateTaskAsync)(windows_core::Interface::as_raw(this), userdatatask.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateOrUpdateTaskAsync)(windows_core::Interface::as_raw(this), userdatatask.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryDeleteTaskAsync(&self, userdatataskid: &windows_core::HSTRING) -> windows_core::Result> { @@ -671,12 +671,12 @@ impl UserDataTaskListSyncManager { } pub fn SyncStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SyncStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSyncStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -725,11 +725,11 @@ impl UserDataTaskManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserDataTaskManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -854,10 +854,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetOccurrences(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOccurrences)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOccurrences)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Until(&self) -> windows_core::Result> { let this = self; @@ -868,10 +868,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetUntil(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUntil)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUntil)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Interval(&self) -> windows_core::Result { let this = self; @@ -893,10 +893,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetDaysOfWeek(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDaysOfWeek)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDaysOfWeek)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn WeekOfMonth(&self) -> windows_core::Result> { let this = self; @@ -907,10 +907,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetWeekOfMonth(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWeekOfMonth)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWeekOfMonth)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Month(&self) -> windows_core::Result> { let this = self; @@ -921,10 +921,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetMonth(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMonth)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMonth)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Day(&self) -> windows_core::Result> { let this = self; @@ -935,10 +935,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetDay(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDay)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDay)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for UserDataTaskRecurrenceProperties { @@ -985,10 +985,10 @@ impl UserDataTaskRegenerationProperties { } pub fn SetOccurrences(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOccurrences)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOccurrences)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Until(&self) -> windows_core::Result> { let this = self; @@ -999,10 +999,10 @@ impl UserDataTaskRegenerationProperties { } pub fn SetUntil(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUntil)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUntil)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Interval(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs index f688d30dc6..d631168ea4 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs @@ -342,10 +342,10 @@ impl VoiceCommandContentTile { #[cfg(feature = "Storage")] pub fn SetImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AppContext(&self) -> windows_core::Result { let this = self; @@ -356,10 +356,10 @@ impl VoiceCommandContentTile { } pub fn SetAppContext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppContext)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppContext)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AppLaunchArgument(&self) -> windows_core::Result { let this = self; @@ -418,12 +418,12 @@ impl VoiceCommandDefinition { #[cfg(feature = "Foundation_Collections")] pub fn SetPhraseListAsync(&self, phraselistname: &windows_core::HSTRING, phraselist: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPhraseListAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(phraselistname), phraselist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPhraseListAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(phraselistname), phraselist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -444,11 +444,11 @@ impl VoiceCommandDefinitionManager { #[cfg(feature = "Storage")] pub fn InstallCommandDefinitionsFromStorageFileAsync(file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVoiceCommandDefinitionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InstallCommandDefinitionsFromStorageFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InstallCommandDefinitionsFromStorageFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -506,10 +506,10 @@ impl VoiceCommandResponse { } pub fn SetMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMessage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMessage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RepeatMessage(&self) -> windows_core::Result { let this = self; @@ -520,10 +520,10 @@ impl VoiceCommandResponse { } pub fn SetRepeatMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRepeatMessage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRepeatMessage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AppLaunchArgument(&self) -> windows_core::Result { let this = self; @@ -552,44 +552,44 @@ impl VoiceCommandResponse { } pub fn CreateResponse(usermessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVoiceCommandResponseStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResponse)(windows_core::Interface::as_raw(this), usermessage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResponse)(windows_core::Interface::as_raw(this), usermessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateResponseWithTiles(message: P0, contenttiles: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IVoiceCommandResponseStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResponseWithTiles)(windows_core::Interface::as_raw(this), message.into_param().abi(), contenttiles.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResponseWithTiles)(windows_core::Interface::as_raw(this), message.param().abi(), contenttiles.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateResponseForPrompt(message: P0, repeatmessage: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IVoiceCommandResponseStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResponseForPrompt)(windows_core::Interface::as_raw(this), message.into_param().abi(), repeatmessage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResponseForPrompt)(windows_core::Interface::as_raw(this), message.param().abi(), repeatmessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateResponseForPromptWithTiles(message: P0, repeatmessage: P1, contenttiles: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param>, { Self::IVoiceCommandResponseStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResponseForPromptWithTiles)(windows_core::Interface::as_raw(this), message.into_param().abi(), repeatmessage.into_param().abi(), contenttiles.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResponseForPromptWithTiles)(windows_core::Interface::as_raw(this), message.param().abi(), repeatmessage.param().abi(), contenttiles.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -624,62 +624,62 @@ impl VoiceCommandServiceConnection { } pub fn RequestConfirmationAsync(&self, response: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestConfirmationAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestConfirmationAsync)(windows_core::Interface::as_raw(this), response.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestDisambiguationAsync(&self, response: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestDisambiguationAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestDisambiguationAsync)(windows_core::Interface::as_raw(this), response.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportProgressAsync(&self, response: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportProgressAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportProgressAsync)(windows_core::Interface::as_raw(this), response.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportSuccessAsync(&self, response: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportSuccessAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportSuccessAsync)(windows_core::Interface::as_raw(this), response.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailureAsync(&self, response: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportFailureAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportFailureAsync)(windows_core::Interface::as_raw(this), response.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestAppLaunchAsync(&self, response: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAppLaunchAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAppLaunchAsync)(windows_core::Interface::as_raw(this), response.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Globalization")] @@ -692,12 +692,12 @@ impl VoiceCommandServiceConnection { } pub fn VoiceCommandCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VoiceCommandCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VoiceCommandCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVoiceCommandCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -707,11 +707,11 @@ impl VoiceCommandServiceConnection { #[cfg(feature = "ApplicationModel_AppService")] pub fn FromAppServiceTriggerDetails(triggerdetails: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVoiceCommandServiceConnectionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromAppServiceTriggerDetails)(windows_core::Interface::as_raw(this), triggerdetails.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromAppServiceTriggerDetails)(windows_core::Interface::as_raw(this), triggerdetails.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs index efac9f8b6a..09bf43b378 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs @@ -82,56 +82,56 @@ impl WalletItemSystemStore { #[cfg(feature = "deprecated")] pub fn DeleteAsync(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn ImportItemAsync(&self, stream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportItemAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportItemAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] pub fn GetAppStatusForItem(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAppStatusForItem)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetAppStatusForItem)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] pub fn LaunchAppForItemAsync(&self, item: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchAppForItemAsync)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchAppForItemAsync)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] pub fn ItemsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs index b3885cc136..a8d8577e24 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs @@ -589,11 +589,11 @@ impl WalletBarcode { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn CreateCustomWalletBarcode(streamtobarcodeimage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWalletBarcodeFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCustomWalletBarcode)(windows_core::Interface::as_raw(this), streamtobarcodeimage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCustomWalletBarcode)(windows_core::Interface::as_raw(this), streamtobarcodeimage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -686,10 +686,10 @@ impl WalletItem { #[cfg(feature = "deprecated")] pub fn SetLastUpdated(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLastUpdated)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLastUpdated)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { @@ -710,10 +710,10 @@ impl WalletItem { #[cfg(feature = "deprecated")] pub fn SetBarcode(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBarcode)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBarcode)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn ExpirationDate(&self) -> windows_core::Result> { @@ -726,10 +726,10 @@ impl WalletItem { #[cfg(feature = "deprecated")] pub fn SetExpirationDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpirationDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn Logo159x159(&self) -> windows_core::Result { @@ -742,10 +742,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogo159x159(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLogo159x159)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLogo159x159)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn Logo336x336(&self) -> windows_core::Result { @@ -758,10 +758,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogo336x336(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLogo336x336)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLogo336x336)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn Logo99x99(&self) -> windows_core::Result { @@ -774,10 +774,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogo99x99(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLogo99x99)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLogo99x99)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn DisplayMessage(&self) -> windows_core::Result { @@ -881,10 +881,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetHeaderBackgroundImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetHeaderBackgroundImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetHeaderBackgroundImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn BodyBackgroundImage(&self) -> windows_core::Result { @@ -897,10 +897,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetBodyBackgroundImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBodyBackgroundImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBodyBackgroundImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn LogoImage(&self) -> windows_core::Result { @@ -913,10 +913,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogoImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLogoImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLogoImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn PromotionalImage(&self) -> windows_core::Result { @@ -929,10 +929,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetPromotionalImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPromotionalImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPromotionalImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn RelevantDate(&self) -> windows_core::Result> { @@ -945,10 +945,10 @@ impl WalletItem { #[cfg(feature = "deprecated")] pub fn SetRelevantDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRelevantDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRelevantDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn RelevantDateDisplayMessage(&self) -> windows_core::Result { @@ -1154,12 +1154,12 @@ impl WalletItemStore { #[cfg(feature = "deprecated")] pub fn AddAsync(&self, id: &windows_core::HSTRING, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] @@ -1197,12 +1197,12 @@ impl WalletItemStore { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn ImportItemAsync(&self, stream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportItemAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportItemAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] @@ -1232,12 +1232,12 @@ impl WalletItemStore { #[cfg(feature = "deprecated")] pub fn UpdateAsync(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateAsync)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateAsync)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1417,10 +1417,10 @@ impl WalletTransaction { #[cfg(feature = "deprecated")] pub fn SetTransactionDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTransactionDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTransactionDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn IsLaunchable(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs index 68e75b382f..c9e0301549 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs @@ -605,12 +605,12 @@ windows_core::imp::interface_hierarchy!(IPackageCatalogStatics2, windows_core::I impl IPackageCatalogStatics2 { pub fn OpenForPackage(&self, package: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenForPackage)(windows_core::Interface::as_raw(this), package.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenForPackage)(windows_core::Interface::as_raw(this), package.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1007,11 +1007,11 @@ impl AppInfo { #[cfg(feature = "System")] pub fn GetFromAppUserModelIdForUser(user: P0, appusermodelid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFromAppUserModelIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(appusermodelid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFromAppUserModelIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(appusermodelid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1699,23 +1699,23 @@ impl Package { #[cfg(feature = "Foundation_Collections")] pub fn StageContentGroupsAsync(&self, names: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StageContentGroupsAsync)(windows_core::Interface::as_raw(this), names.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StageContentGroupsAsync)(windows_core::Interface::as_raw(this), names.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn StageContentGroupsWithPriorityAsync(&self, names: P0, movetoheadofqueue: bool) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StageContentGroupsWithPriorityAsync)(windows_core::Interface::as_raw(this), names.into_param().abi(), movetoheadofqueue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StageContentGroupsWithPriorityAsync)(windows_core::Interface::as_raw(this), names.param().abi(), movetoheadofqueue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetInUseAsync(&self, inuse: bool) -> windows_core::Result> { @@ -1847,12 +1847,12 @@ impl Package { #[cfg(feature = "Foundation_Collections")] pub fn FindRelatedPackages(&self, options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindRelatedPackages)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindRelatedPackages)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SourceUriSchemeName(&self) -> windows_core::Result { @@ -1912,12 +1912,12 @@ windows_core::imp::interface_hierarchy!(PackageCatalog, windows_core::IUnknown, impl PackageCatalog { pub fn PackageStaging(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageStaging)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageStaging)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageStaging(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1926,12 +1926,12 @@ impl PackageCatalog { } pub fn PackageInstalling(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageInstalling)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageInstalling)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageInstalling(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1940,12 +1940,12 @@ impl PackageCatalog { } pub fn PackageUpdating(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageUpdating)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageUpdating)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageUpdating(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1954,12 +1954,12 @@ impl PackageCatalog { } pub fn PackageUninstalling(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageUninstalling)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageUninstalling)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageUninstalling(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1968,12 +1968,12 @@ impl PackageCatalog { } pub fn PackageStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageStatusChanged(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1982,12 +1982,12 @@ impl PackageCatalog { } pub fn PackageContentGroupStaging(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageContentGroupStaging)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PackageContentGroupStaging)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePackageContentGroupStaging(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2004,12 +2004,12 @@ impl PackageCatalog { #[cfg(feature = "Foundation_Collections")] pub fn RemoveOptionalPackagesAsync(&self, optionalpackagefamilynames: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveOptionalPackagesAsync)(windows_core::Interface::as_raw(this), optionalpackagefamilynames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveOptionalPackagesAsync)(windows_core::Interface::as_raw(this), optionalpackagefamilynames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AddResourcePackageAsync(&self, resourcepackagefamilyname: &windows_core::HSTRING, resourceid: &windows_core::HSTRING, options: AddResourcePackageOptions) -> windows_core::Result> { @@ -2022,12 +2022,12 @@ impl PackageCatalog { #[cfg(feature = "Foundation_Collections")] pub fn RemoveResourcePackagesAsync(&self, resourcepackages: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveResourcePackagesAsync)(windows_core::Interface::as_raw(this), resourcepackages.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveResourcePackagesAsync)(windows_core::Interface::as_raw(this), resourcepackages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn OpenForCurrentPackage() -> windows_core::Result { @@ -2044,11 +2044,11 @@ impl PackageCatalog { } pub fn OpenForPackage(package: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPackageCatalogStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenForPackage)(windows_core::Interface::as_raw(this), package.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenForPackage)(windows_core::Interface::as_raw(this), package.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Data/Json/mod.rs b/crates/libs/windows/src/Windows/Data/Json/mod.rs index b37e5d36f9..cc93614b5f 100644 --- a/crates/libs/windows/src/Windows/Data/Json/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Json/mod.rs @@ -310,29 +310,29 @@ impl JsonArray { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -342,10 +342,10 @@ impl JsonArray { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -452,10 +452,10 @@ impl JsonObject { } pub fn SetNamedValue(&self, name: &windows_core::HSTRING, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNamedValue)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNamedValue)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), value.param().abi()).ok() } } pub fn GetNamedObject(&self, name: &windows_core::HSTRING) -> windows_core::Result { let this = self; @@ -506,22 +506,22 @@ impl JsonObject { } pub fn GetNamedValueOrDefault(&self, name: &windows_core::HSTRING, defaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNamedValueOrDefault)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), defaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNamedValueOrDefault)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), defaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetNamedObjectOrDefault(&self, name: &windows_core::HSTRING, defaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNamedObjectOrDefault)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), defaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNamedObjectOrDefault)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), defaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetNamedStringOrDefault(&self, name: &windows_core::HSTRING, defaultvalue: &windows_core::HSTRING) -> windows_core::Result { @@ -533,12 +533,12 @@ impl JsonObject { } pub fn GetNamedArrayOrDefault(&self, name: &windows_core::HSTRING, defaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNamedArrayOrDefault)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), defaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNamedArrayOrDefault)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), defaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetNamedNumberOrDefault(&self, name: &windows_core::HSTRING, defaultvalue: f64) -> windows_core::Result { @@ -639,12 +639,12 @@ impl JsonObject { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] diff --git a/crates/libs/windows/src/Windows/Data/Pdf/mod.rs b/crates/libs/windows/src/Windows/Data/Pdf/mod.rs index c7fb0371bc..3b456633d6 100644 --- a/crates/libs/windows/src/Windows/Data/Pdf/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Pdf/mod.rs @@ -123,41 +123,41 @@ impl PdfDocument { #[cfg(feature = "Storage")] pub fn LoadFromFileAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LoadFromFileWithPasswordAsync(file: P0, password: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromFileWithPasswordAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(password), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromFileWithPasswordAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(password), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamAsync(inputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStreamAsync)(windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStreamAsync)(windows_core::Interface::as_raw(this), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamWithPasswordAsync(inputstream: P0, password: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromStreamWithPasswordAsync)(windows_core::Interface::as_raw(this), inputstream.into_param().abi(), core::mem::transmute_copy(password), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromStreamWithPasswordAsync)(windows_core::Interface::as_raw(this), inputstream.param().abi(), core::mem::transmute_copy(password), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -191,24 +191,24 @@ impl PdfPage { #[cfg(feature = "Storage_Streams")] pub fn RenderToStreamAsync(&self, outputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RenderToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn RenderWithOptionsToStreamAsync(&self, outputstream: P0, options: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderWithOptionsToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RenderWithOptionsToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn PreparePageAsync(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Data/Text/mod.rs b/crates/libs/windows/src/Windows/Data/Text/mod.rs index de7e36f822..4b6772bafe 100644 --- a/crates/libs/windows/src/Windows/Data/Text/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Text/mod.rs @@ -359,10 +359,10 @@ impl SelectableWordsSegmenter { #[cfg(feature = "Foundation_Collections")] pub fn Tokenize(&self, text: &windows_core::HSTRING, startindex: u32, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Tokenize)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), startindex, handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Tokenize)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), startindex, handler.param().abi()).ok() } } pub fn CreateWithLanguage(language: &windows_core::HSTRING) -> windows_core::Result { Self::ISelectableWordsSegmenterFactory(|this| unsafe { @@ -568,23 +568,23 @@ impl TextPredictionGenerator { #[cfg(feature = "Foundation_Collections")] pub fn GetCandidatesWithParametersAsync(&self, input: &windows_core::HSTRING, maxcandidates: u32, predictionoptions: TextPredictionOptions, previousstrings: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCandidatesWithParametersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), maxcandidates, predictionoptions, previousstrings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetCandidatesWithParametersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), maxcandidates, predictionoptions, previousstrings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetNextWordCandidatesAsync(&self, maxcandidates: u32, previousstrings: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNextWordCandidatesAsync)(windows_core::Interface::as_raw(this), maxcandidates, previousstrings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNextWordCandidatesAsync)(windows_core::Interface::as_raw(this), maxcandidates, previousstrings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "UI_Text_Core")] @@ -862,10 +862,10 @@ impl WordsSegmenter { #[cfg(feature = "Foundation_Collections")] pub fn Tokenize(&self, text: &windows_core::HSTRING, startindex: u32, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Tokenize)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), startindex, handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Tokenize)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), startindex, handler.param().abi()).ok() } } pub fn CreateWithLanguage(language: &windows_core::HSTRING) -> windows_core::Result { Self::IWordsSegmenterFactory(|this| unsafe { @@ -1074,11 +1074,11 @@ impl SelectableWordSegmentsTokenizingHandler { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, precedingwords: P0, words: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), precedingwords.into_param().abi(), words.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), precedingwords.param().abi(), words.param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] @@ -1145,11 +1145,11 @@ impl WordSegmentsTokenizingHandler { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, precedingwords: P0, words: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), precedingwords.into_param().abi(), words.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), precedingwords.param().abi(), words.param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] diff --git a/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs b/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs index 6bd6bd00f6..d74d4230a9 100644 --- a/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs @@ -93,10 +93,10 @@ impl IXmlCharacterData { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -177,44 +177,44 @@ impl IXmlCharacterData { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -251,10 +251,10 @@ impl IXmlCharacterData { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -272,22 +272,22 @@ impl IXmlCharacterData { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -509,10 +509,10 @@ impl IXmlNode { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = self; @@ -593,44 +593,44 @@ impl IXmlNode { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -667,10 +667,10 @@ impl IXmlNode { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -688,22 +688,22 @@ impl IXmlNode { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -784,22 +784,22 @@ impl IXmlNodeSelector { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -918,10 +918,10 @@ impl IXmlText { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1002,44 +1002,44 @@ impl IXmlText { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -1076,10 +1076,10 @@ impl IXmlText { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1097,22 +1097,22 @@ impl IXmlText { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -1178,10 +1178,10 @@ impl DtdEntity { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1262,44 +1262,44 @@ impl DtdEntity { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -1336,10 +1336,10 @@ impl DtdEntity { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1357,22 +1357,22 @@ impl DtdEntity { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -1435,10 +1435,10 @@ impl DtdNotation { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1519,44 +1519,44 @@ impl DtdNotation { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -1593,10 +1593,10 @@ impl DtdNotation { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1614,22 +1614,22 @@ impl DtdNotation { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -1703,10 +1703,10 @@ impl XmlAttribute { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1787,44 +1787,44 @@ impl XmlAttribute { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -1861,10 +1861,10 @@ impl XmlAttribute { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1882,22 +1882,22 @@ impl XmlAttribute { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -1987,10 +1987,10 @@ impl XmlCDataSection { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2071,44 +2071,44 @@ impl XmlCDataSection { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -2145,10 +2145,10 @@ impl XmlCDataSection { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2166,22 +2166,22 @@ impl XmlCDataSection { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -2278,10 +2278,10 @@ impl XmlComment { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2362,44 +2362,44 @@ impl XmlComment { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -2436,10 +2436,10 @@ impl XmlComment { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2457,22 +2457,22 @@ impl XmlComment { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -2612,22 +2612,22 @@ impl XmlDocument { } pub fn CreateAttributeNS(&self, namespaceuri: P0, qualifiedname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(qualifiedname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(qualifiedname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateElementNS(&self, namespaceuri: P0, qualifiedname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateElementNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(qualifiedname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateElementNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(qualifiedname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetElementById(&self, elementid: &windows_core::HSTRING) -> windows_core::Result { @@ -2639,12 +2639,12 @@ impl XmlDocument { } pub fn ImportNode(&self, node: P0, deep: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportNode)(windows_core::Interface::as_raw(this), node.into_param().abi(), deep, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportNode)(windows_core::Interface::as_raw(this), node.param().abi(), deep, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn LoadXml(&self, xml: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -2653,77 +2653,77 @@ impl XmlDocument { } pub fn LoadXmlWithSettings(&self, xml: &windows_core::HSTRING, loadsettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LoadXmlWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xml), loadsettings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadXmlWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xml), loadsettings.param().abi()).ok() } } #[cfg(feature = "Storage")] pub fn SaveToFileAsync(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveToFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveToFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn LoadXmlFromBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LoadXmlFromBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadXmlFromBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn LoadXmlFromBufferWithSettings(&self, buffer: P0, loadsettings: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LoadXmlFromBufferWithSettings)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), loadsettings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadXmlFromBufferWithSettings)(windows_core::Interface::as_raw(this), buffer.param().abi(), loadsettings.param().abi()).ok() } } pub fn LoadFromUriAsync(uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IXmlDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromUriAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromUriAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LoadFromUriWithSettingsAsync(uri: P0, loadsettings: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IXmlDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromUriWithSettingsAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), loadsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromUriWithSettingsAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), loadsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LoadFromFileAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IXmlDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LoadFromFileWithSettingsAsync(file: P0, loadsettings: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IXmlDocumentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFromFileWithSettingsAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), loadsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFromFileWithSettingsAsync)(windows_core::Interface::as_raw(this), file.param().abi(), loadsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn NodeValue(&self) -> windows_core::Result { @@ -2735,10 +2735,10 @@ impl XmlDocument { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2819,44 +2819,44 @@ impl XmlDocument { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -2893,10 +2893,10 @@ impl XmlDocument { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2914,22 +2914,22 @@ impl XmlDocument { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -2983,10 +2983,10 @@ impl XmlDocumentFragment { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3067,44 +3067,44 @@ impl XmlDocumentFragment { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -3141,10 +3141,10 @@ impl XmlDocumentFragment { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3162,22 +3162,22 @@ impl XmlDocumentFragment { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -3247,10 +3247,10 @@ impl XmlDocumentType { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3331,44 +3331,44 @@ impl XmlDocumentType { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -3405,10 +3405,10 @@ impl XmlDocumentType { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3426,22 +3426,22 @@ impl XmlDocumentType { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -3482,12 +3482,12 @@ windows_core::imp::interface_hierarchy!(XmlDomImplementation, windows_core::IUnk impl XmlDomImplementation { pub fn HasFeature(&self, feature: &windows_core::HSTRING, version: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HasFeature)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(feature), version.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HasFeature)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(feature), version.param().abi(), &mut result__).map(|| result__) } } } @@ -3540,22 +3540,22 @@ impl XmlElement { } pub fn SetAttributeNode(&self, newattribute: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAttributeNode)(windows_core::Interface::as_raw(this), newattribute.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAttributeNode)(windows_core::Interface::as_raw(this), newattribute.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveAttributeNode(&self, attributenode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveAttributeNode)(windows_core::Interface::as_raw(this), attributenode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveAttributeNode)(windows_core::Interface::as_raw(this), attributenode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetElementsByTagName(&self, tagname: &windows_core::HSTRING) -> windows_core::Result { @@ -3567,46 +3567,46 @@ impl XmlElement { } pub fn SetAttributeNS(&self, namespaceuri: P0, qualifiedname: &windows_core::HSTRING, value: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(qualifiedname), core::mem::transmute_copy(value)).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(qualifiedname), core::mem::transmute_copy(value)).ok() } } pub fn GetAttributeNS(&self, namespaceuri: P0, localname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(localname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(localname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveAttributeNS(&self, namespaceuri: P0, localname: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(localname)).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveAttributeNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(localname)).ok() } } pub fn SetAttributeNodeNS(&self, newattribute: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAttributeNodeNS)(windows_core::Interface::as_raw(this), newattribute.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAttributeNodeNS)(windows_core::Interface::as_raw(this), newattribute.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAttributeNodeNS(&self, namespaceuri: P0, localname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAttributeNodeNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(localname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAttributeNodeNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(localname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn NodeValue(&self) -> windows_core::Result { @@ -3618,10 +3618,10 @@ impl XmlElement { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3702,44 +3702,44 @@ impl XmlElement { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -3776,10 +3776,10 @@ impl XmlElement { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3797,22 +3797,22 @@ impl XmlElement { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -3861,10 +3861,10 @@ impl XmlEntityReference { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3945,44 +3945,44 @@ impl XmlEntityReference { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -4019,10 +4019,10 @@ impl XmlEntityReference { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4040,22 +4040,22 @@ impl XmlEntityReference { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -4203,12 +4203,12 @@ impl XmlNamedNodeMap { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -4242,12 +4242,12 @@ impl XmlNamedNodeMap { } pub fn SetNamedItem(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetNamedItem)(windows_core::Interface::as_raw(this), node.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetNamedItem)(windows_core::Interface::as_raw(this), node.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveNamedItem(&self, name: &windows_core::HSTRING) -> windows_core::Result { @@ -4259,32 +4259,32 @@ impl XmlNamedNodeMap { } pub fn GetNamedItemNS(&self, namespaceuri: P0, name: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNamedItemNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNamedItemNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveNamedItemNS(&self, namespaceuri: P0, name: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveNamedItemNS)(windows_core::Interface::as_raw(this), namespaceuri.into_param().abi(), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveNamedItemNS)(windows_core::Interface::as_raw(this), namespaceuri.param().abi(), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetNamedItemNS(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetNamedItemNS)(windows_core::Interface::as_raw(this), node.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetNamedItemNS)(windows_core::Interface::as_raw(this), node.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -4350,12 +4350,12 @@ impl XmlNodeList { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -4424,10 +4424,10 @@ impl XmlProcessingInstruction { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4508,44 +4508,44 @@ impl XmlProcessingInstruction { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -4582,10 +4582,10 @@ impl XmlProcessingInstruction { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4603,22 +4603,22 @@ impl XmlProcessingInstruction { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { @@ -4726,10 +4726,10 @@ impl XmlText { } pub fn SetNodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNodeValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4810,44 +4810,44 @@ impl XmlText { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InsertBefore)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveChild)(windows_core::Interface::as_raw(this), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AppendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendChild)(windows_core::Interface::as_raw(this), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloneNode(&self, deep: bool) -> windows_core::Result { @@ -4884,10 +4884,10 @@ impl XmlText { } pub fn SetPrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrefix)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4905,22 +4905,22 @@ impl XmlText { } pub fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SelectNodesNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetXml(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Data/Xml/Xsl/mod.rs b/crates/libs/windows/src/Windows/Data/Xml/Xsl/mod.rs index dec89f68e8..81ad35cec8 100644 --- a/crates/libs/windows/src/Windows/Data/Xml/Xsl/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Xml/Xsl/mod.rs @@ -42,33 +42,33 @@ impl XsltProcessor { #[cfg(feature = "Data_Xml_Dom")] pub fn TransformToString(&self, inputnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TransformToString)(windows_core::Interface::as_raw(this), inputnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TransformToString)(windows_core::Interface::as_raw(this), inputnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Data_Xml_Dom")] pub fn TransformToDocument(&self, inputnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TransformToDocument)(windows_core::Interface::as_raw(this), inputnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TransformToDocument)(windows_core::Interface::as_raw(this), inputnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Data_Xml_Dom")] pub fn CreateInstance(document: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IXsltProcessorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), document.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), document.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/Adc/mod.rs b/crates/libs/windows/src/Windows/Devices/Adc/mod.rs index 63058bf021..87c1d73a16 100644 --- a/crates/libs/windows/src/Windows/Devices/Adc/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Adc/mod.rs @@ -153,11 +153,11 @@ impl AdcController { #[cfg(all(feature = "Devices_Adc_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAdcControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefaultAsync() -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs index a26663d89c..1c1af88260 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs @@ -326,10 +326,10 @@ impl BluetoothLEAdvertisement { } pub fn SetFlags(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFlags)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFlags)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LocalName(&self) -> windows_core::Result { let this = self; @@ -440,19 +440,19 @@ impl BluetoothLEAdvertisementBytePattern { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn Create(datatype: u8, offset: i16, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothLEAdvertisementBytePatternFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), datatype, offset, data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), datatype, offset, data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -507,19 +507,19 @@ impl BluetoothLEAdvertisementDataSection { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn Create(datatype: u8, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothLEAdvertisementDataSectionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), datatype, data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), datatype, data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -704,10 +704,10 @@ impl BluetoothLEAdvertisementFilter { } pub fn SetAdvertisement(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAdvertisement)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdvertisement)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn BytePatterns(&self) -> windows_core::Result> { @@ -766,12 +766,12 @@ impl BluetoothLEAdvertisementPublisher { } pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -787,10 +787,10 @@ impl BluetoothLEAdvertisementPublisher { } pub fn SetPreferredTransmitPowerLevelInDBm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPreferredTransmitPowerLevelInDBm)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPreferredTransmitPowerLevelInDBm)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn UseExtendedAdvertisement(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -827,11 +827,11 @@ impl BluetoothLEAdvertisementPublisher { } pub fn Create(advertisement: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothLEAdvertisementPublisherFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), advertisement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), advertisement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1060,10 +1060,10 @@ impl BluetoothLEAdvertisementWatcher { } pub fn SetSignalStrengthFilter(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSignalStrengthFilter)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSignalStrengthFilter)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AdvertisementFilter(&self) -> windows_core::Result { let this = self; @@ -1074,10 +1074,10 @@ impl BluetoothLEAdvertisementWatcher { } pub fn SetAdvertisementFilter(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAdvertisementFilter)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdvertisementFilter)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Start(&self) -> windows_core::Result<()> { let this = self; @@ -1089,12 +1089,12 @@ impl BluetoothLEAdvertisementWatcher { } pub fn Received(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Received)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Received)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReceived(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1103,12 +1103,12 @@ impl BluetoothLEAdvertisementWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1128,11 +1128,11 @@ impl BluetoothLEAdvertisementWatcher { } pub fn Create(advertisementfilter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothLEAdvertisementWatcherFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), advertisementfilter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), advertisementfilter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1212,19 +1212,19 @@ impl BluetoothLEManufacturerData { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn Create(companyid: u16, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothLEManufacturerDataFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), companyid, data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), companyid, data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs index d7c7c24f7f..d7143bf5e0 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs @@ -421,10 +421,10 @@ impl RfcommInboundConnectionInformation { #[cfg(feature = "Storage_Streams")] pub fn SetSdpRecord(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSdpRecord)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSdpRecord)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Devices_Bluetooth_Rfcomm")] pub fn LocalServiceId(&self) -> windows_core::Result { @@ -437,10 +437,10 @@ impl RfcommInboundConnectionInformation { #[cfg(feature = "Devices_Bluetooth_Rfcomm")] pub fn SetLocalServiceId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLocalServiceId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLocalServiceId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ServiceCapabilities(&self) -> windows_core::Result { let this = self; @@ -482,10 +482,10 @@ impl RfcommOutboundConnectionInformation { #[cfg(feature = "Devices_Bluetooth_Rfcomm")] pub fn SetRemoteServiceId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRemoteServiceId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRemoteServiceId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for RfcommOutboundConnectionInformation { diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs index 83bf9b9095..1d7d91d432 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs @@ -1023,23 +1023,23 @@ impl GattCharacteristic { #[cfg(feature = "Storage_Streams")] pub fn WriteValueAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteValueAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteValueAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithOptionAsync(&self, value: P0, writeoption: GattWriteOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteValueWithOptionAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), writeoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteValueWithOptionAsync)(windows_core::Interface::as_raw(this), value.param().abi(), writeoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReadClientCharacteristicConfigurationDescriptorAsync(&self) -> windows_core::Result> { @@ -1058,12 +1058,12 @@ impl GattCharacteristic { } pub fn ValueChanged(&self, valuechangedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValueChanged)(windows_core::Interface::as_raw(this), valuechangedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ValueChanged)(windows_core::Interface::as_raw(this), valuechangedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveValueChanged(&self, valuechangedeventcookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1116,23 +1116,23 @@ impl GattCharacteristic { #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithResultAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteValueWithResultAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteValueWithResultAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithResultAndOptionAsync(&self, value: P0, writeoption: GattWriteOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteValueWithResultAndOptionAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), writeoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteValueWithResultAndOptionAsync)(windows_core::Interface::as_raw(this), value.param().abi(), writeoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn WriteClientCharacteristicConfigurationDescriptorWithResultAsync(&self, clientcharacteristicconfigurationdescriptorvalue: GattClientCharacteristicConfigurationDescriptorValue) -> windows_core::Result> { @@ -1802,23 +1802,23 @@ impl GattDescriptor { #[cfg(feature = "Storage_Streams")] pub fn WriteValueAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteValueAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteValueAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithResultAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteValueWithResultAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteValueWithResultAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] @@ -2139,38 +2139,38 @@ impl GattDeviceService { } pub fn GetDeviceSelectorForBluetoothDeviceId(bluetoothdeviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGattDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceId)(windows_core::Interface::as_raw(this), bluetoothdeviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceId)(windows_core::Interface::as_raw(this), bluetoothdeviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDeviceSelectorForBluetoothDeviceIdWithCacheMode(bluetoothdeviceid: P0, cachemode: super::BluetoothCacheMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGattDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceIdWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdeviceid.into_param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceIdWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdeviceid.param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothdeviceid: P0, serviceuuid: windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGattDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceIdAndUuid)(windows_core::Interface::as_raw(this), bluetoothdeviceid.into_param().abi(), serviceuuid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceIdAndUuid)(windows_core::Interface::as_raw(this), bluetoothdeviceid.param().abi(), serviceuuid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode(bluetoothdeviceid: P0, serviceuuid: windows_core::GUID, cachemode: super::BluetoothCacheMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGattDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdeviceid.into_param().abi(), serviceuuid, cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdeviceid.param().abi(), serviceuuid, cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2279,12 +2279,12 @@ impl GattLocalCharacteristic { } pub fn CreateDescriptorAsync(&self, descriptoruuid: windows_core::GUID, parameters: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDescriptorAsync)(windows_core::Interface::as_raw(this), descriptoruuid, parameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDescriptorAsync)(windows_core::Interface::as_raw(this), descriptoruuid, parameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -2320,12 +2320,12 @@ impl GattLocalCharacteristic { } pub fn SubscribedClientsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SubscribedClientsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SubscribedClientsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSubscribedClientsChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2334,12 +2334,12 @@ impl GattLocalCharacteristic { } pub fn ReadRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2348,12 +2348,12 @@ impl GattLocalCharacteristic { } pub fn WriteRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WriteRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWriteRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2363,24 +2363,24 @@ impl GattLocalCharacteristic { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn NotifyValueAsync(&self, value: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NotifyValueAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).NotifyValueAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn NotifyValueForSubscribedClientAsync(&self, value: P0, subscribedclient: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NotifyValueForSubscribedClientAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), subscribedclient.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).NotifyValueForSubscribedClientAsync)(windows_core::Interface::as_raw(this), value.param().abi(), subscribedclient.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2411,10 +2411,10 @@ impl GattLocalCharacteristicParameters { #[cfg(feature = "Storage_Streams")] pub fn SetStaticValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStaticValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStaticValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn StaticValue(&self) -> windows_core::Result { @@ -2557,12 +2557,12 @@ impl GattLocalDescriptor { } pub fn ReadRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2571,12 +2571,12 @@ impl GattLocalDescriptor { } pub fn WriteRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WriteRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWriteRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2611,10 +2611,10 @@ impl GattLocalDescriptorParameters { #[cfg(feature = "Storage_Streams")] pub fn SetStaticValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStaticValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStaticValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn StaticValue(&self) -> windows_core::Result { @@ -2705,12 +2705,12 @@ impl GattLocalService { } pub fn CreateCharacteristicAsync(&self, characteristicuuid: windows_core::GUID, parameters: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCharacteristicAsync)(windows_core::Interface::as_raw(this), characteristicuuid, parameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCharacteristicAsync)(windows_core::Interface::as_raw(this), characteristicuuid, parameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -3162,12 +3162,12 @@ impl GattReadRequest { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3177,10 +3177,10 @@ impl GattReadRequest { #[cfg(feature = "Storage_Streams")] pub fn RespondWithValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RespondWithValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RespondWithValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RespondWithProtocolError(&self, protocolerror: u8) -> windows_core::Result<()> { let this = self; @@ -3293,11 +3293,11 @@ impl GattReliableWriteTransaction { #[cfg(feature = "Storage_Streams")] pub fn WriteValue(&self, characteristic: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).WriteValue)(windows_core::Interface::as_raw(this), characteristic.into_param().abi(), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).WriteValue)(windows_core::Interface::as_raw(this), characteristic.param().abi(), value.param().abi()).ok() } } pub fn CommitAsync(&self) -> windows_core::Result> { let this = self; @@ -3379,12 +3379,12 @@ impl GattServiceProvider { } pub fn AdvertisementStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AdvertisementStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AdvertisementStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdvertisementStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3397,10 +3397,10 @@ impl GattServiceProvider { } pub fn StartAdvertisingWithParameters(&self, parameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartAdvertisingWithParameters)(windows_core::Interface::as_raw(this), parameters.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAdvertisingWithParameters)(windows_core::Interface::as_raw(this), parameters.param().abi()).ok() } } pub fn StopAdvertising(&self) -> windows_core::Result<()> { let this = self; @@ -3499,10 +3499,10 @@ impl GattServiceProviderAdvertisingParameters { #[cfg(feature = "Storage_Streams")] pub fn SetServiceData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetServiceData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServiceData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn ServiceData(&self) -> windows_core::Result { @@ -3756,12 +3756,12 @@ impl GattSession { } pub fn MaxPduSizeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MaxPduSizeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MaxPduSizeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMaxPduSizeChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3770,12 +3770,12 @@ impl GattSession { } pub fn SessionStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SessionStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SessionStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSessionStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3784,11 +3784,11 @@ impl GattSession { } pub fn FromDeviceIdAsync(deviceid: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGattSessionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromDeviceIdAsync)(windows_core::Interface::as_raw(this), deviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromDeviceIdAsync)(windows_core::Interface::as_raw(this), deviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3862,12 +3862,12 @@ impl GattSubscribedClient { } pub fn MaxNotificationSizeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MaxNotificationSizeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MaxNotificationSizeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMaxNotificationSizeChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3956,12 +3956,12 @@ impl GattWriteRequest { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs index e19ab79faf..a0740b6944 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs @@ -249,49 +249,49 @@ impl RfcommDeviceService { } pub fn GetDeviceSelector(serviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRfcommDeviceServiceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelector)(windows_core::Interface::as_raw(this), serviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelector)(windows_core::Interface::as_raw(this), serviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDeviceSelectorForBluetoothDevice(bluetoothdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRfcommDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDevice)(windows_core::Interface::as_raw(this), bluetoothdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDevice)(windows_core::Interface::as_raw(this), bluetoothdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDeviceSelectorForBluetoothDeviceWithCacheMode(bluetoothdevice: P0, cachemode: super::BluetoothCacheMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRfcommDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdevice.into_param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdevice.param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDeviceSelectorForBluetoothDeviceAndServiceId(bluetoothdevice: P0, serviceid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IRfcommDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceAndServiceId)(windows_core::Interface::as_raw(this), bluetoothdevice.into_param().abi(), serviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceAndServiceId)(windows_core::Interface::as_raw(this), bluetoothdevice.param().abi(), serviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDeviceSelectorForBluetoothDeviceAndServiceIdWithCacheMode(bluetoothdevice: P0, serviceid: P1, cachemode: super::BluetoothCacheMode) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IRfcommDeviceServiceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceAndServiceIdWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdevice.into_param().abi(), serviceid.into_param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorForBluetoothDeviceAndServiceIdWithCacheMode)(windows_core::Interface::as_raw(this), bluetoothdevice.param().abi(), serviceid.param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -465,10 +465,10 @@ impl RfcommServiceProvider { #[cfg(feature = "Networking_Sockets")] pub fn StartAdvertising(&self, listener: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartAdvertising)(windows_core::Interface::as_raw(this), listener.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAdvertising)(windows_core::Interface::as_raw(this), listener.param().abi()).ok() } } pub fn StopAdvertising(&self) -> windows_core::Result<()> { let this = self; @@ -477,18 +477,18 @@ impl RfcommServiceProvider { #[cfg(feature = "Networking_Sockets")] pub fn StartAdvertisingWithRadioDiscoverability(&self, listener: P0, radiodiscoverable: bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAdvertisingWithRadioDiscoverability)(windows_core::Interface::as_raw(this), listener.into_param().abi(), radiodiscoverable).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAdvertisingWithRadioDiscoverability)(windows_core::Interface::as_raw(this), listener.param().abi(), radiodiscoverable).ok() } } pub fn CreateAsync(serviceid: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRfcommServiceProviderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), serviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), serviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs index e5a3e5b184..67d5f124fb 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs @@ -783,12 +783,12 @@ impl BluetoothDevice { } pub fn NameChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NameChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NameChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNameChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -797,12 +797,12 @@ impl BluetoothDevice { } pub fn SdpRecordsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SdpRecordsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SdpRecordsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSdpRecordsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -811,12 +811,12 @@ impl BluetoothDevice { } pub fn ConnectionStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -866,23 +866,23 @@ impl BluetoothDevice { #[cfg(feature = "Devices_Bluetooth_Rfcomm")] pub fn GetRfcommServicesForIdAsync(&self, serviceid: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetRfcommServicesForIdAsync)(windows_core::Interface::as_raw(this), serviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetRfcommServicesForIdAsync)(windows_core::Interface::as_raw(this), serviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Devices_Bluetooth_Rfcomm")] pub fn GetRfcommServicesForIdWithCacheModeAsync(&self, serviceid: P0, cachemode: BluetoothCacheMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetRfcommServicesForIdWithCacheModeAsync)(windows_core::Interface::as_raw(this), serviceid.into_param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetRfcommServicesForIdWithCacheModeAsync)(windows_core::Interface::as_raw(this), serviceid.param().abi(), cachemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn BluetoothDeviceId(&self) -> windows_core::Result { @@ -908,11 +908,11 @@ impl BluetoothDevice { #[cfg(feature = "Networking")] pub fn FromHostNameAsync(hostname: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromHostNameAsync)(windows_core::Interface::as_raw(this), hostname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromHostNameAsync)(windows_core::Interface::as_raw(this), hostname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FromBluetoothAddressAsync(address: u64) -> windows_core::Result> { @@ -953,11 +953,11 @@ impl BluetoothDevice { } pub fn GetDeviceSelectorFromClassOfDevice(classofdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothDeviceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorFromClassOfDevice)(windows_core::Interface::as_raw(this), classofdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorFromClassOfDevice)(windows_core::Interface::as_raw(this), classofdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Close(&self) -> windows_core::Result<()> { @@ -1577,12 +1577,12 @@ impl BluetoothLEDevice { } pub fn NameChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NameChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NameChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNameChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1591,12 +1591,12 @@ impl BluetoothLEDevice { } pub fn GattServicesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GattServicesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GattServicesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGattServicesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1605,12 +1605,12 @@ impl BluetoothLEDevice { } pub fn ConnectionStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1717,22 +1717,22 @@ impl BluetoothLEDevice { } pub fn RequestPreferredConnectionParameters(&self, preferredconnectionparameters: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPreferredConnectionParameters)(windows_core::Interface::as_raw(this), preferredconnectionparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPreferredConnectionParameters)(windows_core::Interface::as_raw(this), preferredconnectionparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectionParametersChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionParametersChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionParametersChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionParametersChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1741,12 +1741,12 @@ impl BluetoothLEDevice { } pub fn ConnectionPhyChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionPhyChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionPhyChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionPhyChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1803,11 +1803,11 @@ impl BluetoothLEDevice { } pub fn GetDeviceSelectorFromAppearance(appearance: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBluetoothLEDeviceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorFromAppearance)(windows_core::Interface::as_raw(this), appearance.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorFromAppearance)(windows_core::Interface::as_raw(this), appearance.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FromBluetoothAddressWithBluetoothAddressTypeAsync(bluetoothaddress: u64, bluetoothaddresstype: BluetoothAddressType) -> windows_core::Result> { @@ -1963,10 +1963,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetInRangeThresholdInDBm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInRangeThresholdInDBm)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInRangeThresholdInDBm)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OutOfRangeThresholdInDBm(&self) -> windows_core::Result> { let this = self; @@ -1977,10 +1977,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetOutOfRangeThresholdInDBm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOutOfRangeThresholdInDBm)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOutOfRangeThresholdInDBm)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OutOfRangeTimeout(&self) -> windows_core::Result> { let this = self; @@ -1991,10 +1991,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetOutOfRangeTimeout(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOutOfRangeTimeout)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOutOfRangeTimeout)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SamplingInterval(&self) -> windows_core::Result> { let this = self; @@ -2005,10 +2005,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetSamplingInterval(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSamplingInterval)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSamplingInterval)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for BluetoothSignalStrengthFilter { diff --git a/crates/libs/windows/src/Windows/Devices/Custom/mod.rs b/crates/libs/windows/src/Windows/Devices/Custom/mod.rs index a4d02e5ed5..0cc9b55788 100644 --- a/crates/libs/windows/src/Windows/Devices/Custom/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Custom/mod.rs @@ -125,27 +125,27 @@ impl CustomDevice { #[cfg(feature = "Storage_Streams")] pub fn SendIOControlAsync(&self, iocontrolcode: P0, inputbuffer: P1, outputbuffer: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendIOControlAsync)(windows_core::Interface::as_raw(this), iocontrolcode.into_param().abi(), inputbuffer.into_param().abi(), outputbuffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendIOControlAsync)(windows_core::Interface::as_raw(this), iocontrolcode.param().abi(), inputbuffer.param().abi(), outputbuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn TrySendIOControlAsync(&self, iocontrolcode: P0, inputbuffer: P1, outputbuffer: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySendIOControlAsync)(windows_core::Interface::as_raw(this), iocontrolcode.into_param().abi(), inputbuffer.into_param().abi(), outputbuffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySendIOControlAsync)(windows_core::Interface::as_raw(this), iocontrolcode.param().abi(), inputbuffer.param().abi(), outputbuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetDeviceSelector(classguid: windows_core::GUID) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs b/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs index 9cb6b2d5da..a9609244e9 100644 --- a/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs @@ -666,23 +666,23 @@ windows_core::imp::interface_hierarchy!(DisplayDevice, windows_core::IUnknown, w impl DisplayDevice { pub fn CreateScanoutSource(&self, target: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateScanoutSource)(windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateScanoutSource)(windows_core::Interface::as_raw(this), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreatePrimary(&self, target: P0, desc: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePrimary)(windows_core::Interface::as_raw(this), target.into_param().abi(), desc.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePrimary)(windows_core::Interface::as_raw(this), target.param().abi(), desc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateTaskPool(&self) -> windows_core::Result { @@ -694,30 +694,30 @@ impl DisplayDevice { } pub fn CreatePeriodicFence(&self, target: P0, offsetfromvblank: super::super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePeriodicFence)(windows_core::Interface::as_raw(this), target.into_param().abi(), offsetfromvblank, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePeriodicFence)(windows_core::Interface::as_raw(this), target.param().abi(), offsetfromvblank, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn WaitForVBlank(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).WaitForVBlank)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).WaitForVBlank)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn CreateSimpleScanout(&self, psource: P0, psurface: P1, subresourceindex: u32, syncinterval: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSimpleScanout)(windows_core::Interface::as_raw(this), psource.into_param().abi(), psurface.into_param().abi(), subresourceindex, syncinterval, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSimpleScanout)(windows_core::Interface::as_raw(this), psource.param().abi(), psurface.param().abi(), subresourceindex, syncinterval, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsCapabilitySupported(&self, capability: DisplayDeviceCapability) -> windows_core::Result { @@ -730,14 +730,14 @@ impl DisplayDevice { #[cfg(all(feature = "Foundation_Collections", feature = "Graphics"))] pub fn CreateSimpleScanoutWithDirtyRectsAndOptions(&self, source: P0, surface: P1, subresourceindex: u32, syncinterval: u32, dirtyrects: P2, options: DisplayScanoutOptions) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSimpleScanoutWithDirtyRectsAndOptions)(windows_core::Interface::as_raw(this), source.into_param().abi(), surface.into_param().abi(), subresourceindex, syncinterval, dirtyrects.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSimpleScanoutWithDirtyRectsAndOptions)(windows_core::Interface::as_raw(this), source.param().abi(), surface.param().abi(), subresourceindex, syncinterval, dirtyrects.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -798,20 +798,20 @@ impl DisplayManager { } pub fn TryAcquireTarget(&self, target: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryAcquireTarget)(windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryAcquireTarget)(windows_core::Interface::as_raw(this), target.param().abi(), &mut result__).map(|| result__) } } pub fn ReleaseTarget(&self, target: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReleaseTarget)(windows_core::Interface::as_raw(this), target.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReleaseTarget)(windows_core::Interface::as_raw(this), target.param().abi()).ok() } } pub fn TryReadCurrentStateForAllTargets(&self) -> windows_core::Result { let this = self; @@ -823,55 +823,55 @@ impl DisplayManager { #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndReadCurrentState(&self, targets: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryAcquireTargetsAndReadCurrentState)(windows_core::Interface::as_raw(this), targets.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryAcquireTargetsAndReadCurrentState)(windows_core::Interface::as_raw(this), targets.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndCreateEmptyState(&self, targets: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateEmptyState)(windows_core::Interface::as_raw(this), targets.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateEmptyState)(windows_core::Interface::as_raw(this), targets.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndCreateSubstate(&self, existingstate: P0, targets: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateSubstate)(windows_core::Interface::as_raw(this), existingstate.into_param().abi(), targets.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateSubstate)(windows_core::Interface::as_raw(this), existingstate.param().abi(), targets.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateDisplayDevice(&self, adapter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDisplayDevice)(windows_core::Interface::as_raw(this), adapter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDisplayDevice)(windows_core::Interface::as_raw(this), adapter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Enabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Enabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Enabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnabled(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -880,12 +880,12 @@ impl DisplayManager { } pub fn Disabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Disabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Disabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisabled(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -894,12 +894,12 @@ impl DisplayManager { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -908,12 +908,12 @@ impl DisplayManager { } pub fn PathsFailedOrInvalidated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PathsFailedOrInvalidated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PathsFailedOrInvalidated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePathsFailedOrInvalidated(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1195,12 +1195,12 @@ impl DisplayModeInfo { } pub fn IsWireFormatSupported(&self, wireformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsWireFormatSupported)(windows_core::Interface::as_raw(this), wireformat.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsWireFormatSupported)(windows_core::Interface::as_raw(this), wireformat.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -1269,10 +1269,10 @@ impl DisplayPath { #[cfg(feature = "Graphics")] pub fn SetSourceResolution(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSourceResolution)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSourceResolution)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Graphics_DirectX")] pub fn SourcePixelFormat(&self) -> windows_core::Result { @@ -1309,10 +1309,10 @@ impl DisplayPath { #[cfg(feature = "Graphics")] pub fn SetTargetResolution(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTargetResolution)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTargetResolution)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn PresentationRate(&self) -> windows_core::Result> { @@ -1325,10 +1325,10 @@ impl DisplayPath { #[cfg(feature = "Foundation_Numerics")] pub fn SetPresentationRate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPresentationRate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPresentationRate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsInterlaced(&self) -> windows_core::Result> { let this = self; @@ -1339,10 +1339,10 @@ impl DisplayPath { } pub fn SetIsInterlaced(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIsInterlaced)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIsInterlaced)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn WireFormat(&self) -> windows_core::Result { let this = self; @@ -1353,10 +1353,10 @@ impl DisplayPath { } pub fn SetWireFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWireFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWireFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Rotation(&self) -> windows_core::Result { let this = self; @@ -1390,10 +1390,10 @@ impl DisplayPath { } pub fn ApplyPropertiesFromMode(&self, moderesult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ApplyPropertiesFromMode)(windows_core::Interface::as_raw(this), moderesult.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ApplyPropertiesFromMode)(windows_core::Interface::as_raw(this), moderesult.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result> { @@ -1414,10 +1414,10 @@ impl DisplayPath { #[cfg(feature = "Foundation_Numerics")] pub fn SetPhysicalPresentationRate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPhysicalPresentationRate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPhysicalPresentationRate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for DisplayPath { @@ -1500,11 +1500,11 @@ impl DisplayPrimaryDescription { #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11"))] pub fn CreateWithProperties(extraproperties: P0, width: u32, height: u32, pixelformat: super::super::super::Graphics::DirectX::DirectXPixelFormat, colorspace: super::super::super::Graphics::DirectX::DirectXColorSpace, isstereo: bool, multisampledescription: super::super::super::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { Self::IDisplayPrimaryDescriptionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), extraproperties.into_param().abi(), width, height, pixelformat, colorspace, isstereo, multisampledescription, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), extraproperties.param().abi(), width, height, pixelformat, colorspace, isstereo, multisampledescription, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1584,12 +1584,12 @@ impl DisplaySource { } pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1654,62 +1654,62 @@ impl DisplayState { } pub fn ConnectTarget(&self, target: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectTarget)(windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectTarget)(windows_core::Interface::as_raw(this), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectTargetToView(&self, target: P0, view: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectTargetToView)(windows_core::Interface::as_raw(this), target.into_param().abi(), view.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectTargetToView)(windows_core::Interface::as_raw(this), target.param().abi(), view.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CanConnectTargetToView(&self, target: P0, view: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanConnectTargetToView)(windows_core::Interface::as_raw(this), target.into_param().abi(), view.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CanConnectTargetToView)(windows_core::Interface::as_raw(this), target.param().abi(), view.param().abi(), &mut result__).map(|| result__) } } pub fn GetViewForTarget(&self, target: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetViewForTarget)(windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetViewForTarget)(windows_core::Interface::as_raw(this), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetPathForTarget(&self, target: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPathForTarget)(windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPathForTarget)(windows_core::Interface::as_raw(this), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DisconnectTarget(&self, target: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).DisconnectTarget)(windows_core::Interface::as_raw(this), target.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisconnectTarget)(windows_core::Interface::as_raw(this), target.param().abi()).ok() } } pub fn TryFunctionalize(&self, options: DisplayStateFunctionalizeOptions) -> windows_core::Result { let this = self; @@ -1886,22 +1886,22 @@ impl DisplayTarget { } pub fn IsSame(&self, othertarget: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsSame)(windows_core::Interface::as_raw(this), othertarget.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsSame)(windows_core::Interface::as_raw(this), othertarget.param().abi(), &mut result__).map(|| result__) } } pub fn IsEqual(&self, othertarget: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), othertarget.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), othertarget.param().abi(), &mut result__).map(|| result__) } } } @@ -1924,24 +1924,24 @@ windows_core::imp::interface_hierarchy!(DisplayTask, windows_core::IUnknown, win impl DisplayTask { pub fn SetScanout(&self, scanout: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetScanout)(windows_core::Interface::as_raw(this), scanout.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetScanout)(windows_core::Interface::as_raw(this), scanout.param().abi()).ok() } } pub fn SetWait(&self, readyfence: P0, readyfencevalue: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWait)(windows_core::Interface::as_raw(this), readyfence.into_param().abi(), readyfencevalue).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWait)(windows_core::Interface::as_raw(this), readyfence.param().abi(), readyfencevalue).ok() } } pub fn SetSignal(&self, signalkind: DisplayTaskSignalKind, fence: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSignal)(windows_core::Interface::as_raw(this), signalkind, fence.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSignal)(windows_core::Interface::as_raw(this), signalkind, fence.param().abi()).ok() } } } impl windows_core::RuntimeType for DisplayTask { @@ -1971,19 +1971,19 @@ impl DisplayTaskPool { #[cfg(feature = "deprecated")] pub fn ExecuteTask(&self, task: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ExecuteTask)(windows_core::Interface::as_raw(this), task.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ExecuteTask)(windows_core::Interface::as_raw(this), task.param().abi()).ok() } } pub fn TryExecuteTask(&self, task: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryExecuteTask)(windows_core::Interface::as_raw(this), task.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryExecuteTask)(windows_core::Interface::as_raw(this), task.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2062,17 +2062,17 @@ impl DisplayView { #[cfg(feature = "Graphics")] pub fn SetContentResolution(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentResolution)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentResolution)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetPrimaryPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPrimaryPath)(windows_core::Interface::as_raw(this), path.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrimaryPath)(windows_core::Interface::as_raw(this), path.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result> { @@ -2152,11 +2152,11 @@ impl DisplayWireFormat { #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(extraproperties: P0, pixelencoding: DisplayWireFormatPixelEncoding, bitsperchannel: i32, colorspace: DisplayWireFormatColorSpace, eotf: DisplayWireFormatEotf, hdrmetadata: DisplayWireFormatHdrMetadata) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { Self::IDisplayWireFormatStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), extraproperties.into_param().abi(), pixelencoding, bitsperchannel, colorspace, eotf, hdrmetadata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), extraproperties.param().abi(), pixelencoding, bitsperchannel, colorspace, eotf, hdrmetadata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs b/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs index 311bf7bdd9..e1e782b254 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs @@ -105,59 +105,59 @@ impl PnpObject { } pub fn Update(&self, updateinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), updateinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), updateinfo.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsync(r#type: PnpObjectType, id: &windows_core::HSTRING, requestedproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIdAsync)(windows_core::Interface::as_raw(this), r#type, core::mem::transmute_copy(id), requestedproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIdAsync)(windows_core::Interface::as_raw(this), r#type, core::mem::transmute_copy(id), requestedproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsync(r#type: PnpObjectType, requestedproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), r#type, requestedproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), r#type, requestedproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncAqsFilter(r#type: PnpObjectType, requestedproperties: P0, aqsfilter: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllAsyncAqsFilter)(windows_core::Interface::as_raw(this), r#type, requestedproperties.into_param().abi(), core::mem::transmute_copy(aqsfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllAsyncAqsFilter)(windows_core::Interface::as_raw(this), r#type, requestedproperties.param().abi(), core::mem::transmute_copy(aqsfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcher(r#type: PnpObjectType, requestedproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWatcher)(windows_core::Interface::as_raw(this), r#type, requestedproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWatcher)(windows_core::Interface::as_raw(this), r#type, requestedproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherAqsFilter(r#type: PnpObjectType, requestedproperties: P0, aqsfilter: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWatcherAqsFilter)(windows_core::Interface::as_raw(this), r#type, requestedproperties.into_param().abi(), core::mem::transmute_copy(aqsfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWatcherAqsFilter)(windows_core::Interface::as_raw(this), r#type, requestedproperties.param().abi(), core::mem::transmute_copy(aqsfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -215,12 +215,12 @@ impl PnpObjectCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -312,12 +312,12 @@ windows_core::imp::interface_hierarchy!(PnpObjectWatcher, windows_core::IUnknown impl PnpObjectWatcher { pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -326,12 +326,12 @@ impl PnpObjectWatcher { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -340,12 +340,12 @@ impl PnpObjectWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -354,12 +354,12 @@ impl PnpObjectWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -368,12 +368,12 @@ impl PnpObjectWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs b/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs index 96d029924c..bbeb062093 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs @@ -513,12 +513,12 @@ windows_core::imp::interface_hierarchy!(DeviceAccessInformation, windows_core::I impl DeviceAccessInformation { pub fn AccessChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccessChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccessChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAccessChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -668,10 +668,10 @@ impl DeviceInformation { } pub fn Update(&self, updateinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), updateinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), updateinfo.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn GetThumbnailAsync(&self) -> windows_core::Result> { @@ -712,11 +712,11 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsyncAdditionalProperties(deviceid: &windows_core::HSTRING, additionalproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIdAsyncAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), additionalproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIdAsyncAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), additionalproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -743,11 +743,11 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllAsyncAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllAsyncAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWatcher() -> windows_core::Result { @@ -771,11 +771,11 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWatcherAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWatcherAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetAqsFilterFromDeviceClass(deviceclass: DeviceClass) -> windows_core::Result { @@ -787,31 +787,31 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsyncWithKindAndAdditionalProperties(deviceid: &windows_core::HSTRING, additionalproperties: P0, kind: DeviceInformationKind) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDeviceInformationStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIdAsyncWithKindAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), additionalproperties.into_param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIdAsyncWithKindAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), additionalproperties.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncWithKindAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P0, kind: DeviceInformationKind) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDeviceInformationStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllAsyncWithKindAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllAsyncWithKindAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithKindAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P0, kind: DeviceInformationKind) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDeviceInformationStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWatcherWithKindAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWatcherWithKindAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -874,12 +874,12 @@ impl DeviceInformationCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -945,22 +945,22 @@ impl DeviceInformationCustomPairing { } pub fn PairWithProtectionLevelAndSettingsAsync(&self, pairingkindssupported: DevicePairingKinds, minprotectionlevel: DevicePairingProtectionLevel, devicepairingsettings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PairWithProtectionLevelAndSettingsAsync)(windows_core::Interface::as_raw(this), pairingkindssupported, minprotectionlevel, devicepairingsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PairWithProtectionLevelAndSettingsAsync)(windows_core::Interface::as_raw(this), pairingkindssupported, minprotectionlevel, devicepairingsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn PairingRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PairingRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PairingRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePairingRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1029,12 +1029,12 @@ impl DeviceInformationPairing { } pub fn PairWithProtectionLevelAndSettingsAsync(&self, minprotectionlevel: DevicePairingProtectionLevel, devicepairingsettings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PairWithProtectionLevelAndSettingsAsync)(windows_core::Interface::as_raw(this), minprotectionlevel, devicepairingsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PairWithProtectionLevelAndSettingsAsync)(windows_core::Interface::as_raw(this), minprotectionlevel, devicepairingsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UnpairAsync(&self) -> windows_core::Result> { @@ -1163,10 +1163,10 @@ impl DevicePairingRequestedEventArgs { #[cfg(feature = "Security_Credentials")] pub fn AcceptWithPasswordCredential(&self, passwordcredential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AcceptWithPasswordCredential)(windows_core::Interface::as_raw(this), passwordcredential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AcceptWithPasswordCredential)(windows_core::Interface::as_raw(this), passwordcredential.param().abi()).ok() } } } impl windows_core::RuntimeType for DevicePairingRequestedEventArgs { @@ -1249,12 +1249,12 @@ impl DevicePicker { } pub fn DeviceSelected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeviceSelected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeviceSelected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDeviceSelected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1263,12 +1263,12 @@ impl DevicePicker { } pub fn DisconnectButtonClicked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisconnectButtonClicked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DisconnectButtonClicked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisconnectButtonClicked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1277,12 +1277,12 @@ impl DevicePicker { } pub fn DevicePickerDismissed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DevicePickerDismissed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DevicePickerDismissed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDevicePickerDismissed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1319,10 +1319,10 @@ impl DevicePicker { } pub fn SetDisplayStatus(&self, device: P0, status: &windows_core::HSTRING, options: DevicePickerDisplayStatusOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDisplayStatus)(windows_core::Interface::as_raw(this), device.into_param().abi(), core::mem::transmute_copy(status), options).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDisplayStatus)(windows_core::Interface::as_raw(this), device.param().abi(), core::mem::transmute_copy(status), options).ok() } } } impl windows_core::RuntimeType for DevicePicker { @@ -1528,23 +1528,23 @@ impl DeviceThumbnail { #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, buffer: P0, count: u32, options: super::super::Storage::Streams::InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -1671,12 +1671,12 @@ windows_core::imp::interface_hierarchy!(DeviceWatcher, windows_core::IUnknown, w impl DeviceWatcher { pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1685,12 +1685,12 @@ impl DeviceWatcher { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1699,12 +1699,12 @@ impl DeviceWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1713,12 +1713,12 @@ impl DeviceWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1727,12 +1727,12 @@ impl DeviceWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1757,12 +1757,12 @@ impl DeviceWatcher { #[cfg(all(feature = "ApplicationModel_Background", feature = "Foundation_Collections"))] pub fn GetBackgroundTrigger(&self, requestedeventkinds: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetBackgroundTrigger)(windows_core::Interface::as_raw(this), requestedeventkinds.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetBackgroundTrigger)(windows_core::Interface::as_raw(this), requestedeventkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs index 481715bbda..76ff0e9125 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs @@ -124,38 +124,38 @@ impl Geofence { } pub fn Create(id: &windows_core::HSTRING, geoshape: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGeofenceFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithMonitorStates(id: &windows_core::HSTRING, geoshape: P0, monitoredstates: MonitoredGeofenceStates, singleuse: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGeofenceFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithMonitorStates)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.into_param().abi(), monitoredstates, singleuse, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithMonitorStates)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.param().abi(), monitoredstates, singleuse, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithMonitorStatesAndDwellTime(id: &windows_core::HSTRING, geoshape: P0, monitoredstates: MonitoredGeofenceStates, singleuse: bool, dwelltime: super::super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGeofenceFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithMonitorStatesAndDwellTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.into_param().abi(), monitoredstates, singleuse, dwelltime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithMonitorStatesAndDwellTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.param().abi(), monitoredstates, singleuse, dwelltime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithMonitorStatesDwellTimeStartTimeAndDuration(id: &windows_core::HSTRING, geoshape: P0, monitoredstates: MonitoredGeofenceStates, singleuse: bool, dwelltime: super::super::super::Foundation::TimeSpan, starttime: super::super::super::Foundation::DateTime, duration: super::super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGeofenceFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithMonitorStatesDwellTimeStartTimeAndDuration)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.into_param().abi(), monitoredstates, singleuse, dwelltime, starttime, duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithMonitorStatesDwellTimeStartTimeAndDuration)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), geoshape.param().abi(), monitoredstates, singleuse, dwelltime, starttime, duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -205,12 +205,12 @@ impl GeofenceMonitor { } pub fn GeofenceStateChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GeofenceStateChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GeofenceStateChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGeofenceStateChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -227,12 +227,12 @@ impl GeofenceMonitor { } pub fn StatusChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/Provider/mod.rs index 13cf35bb96..5e2c620e24 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/Provider/mod.rs @@ -43,12 +43,12 @@ impl GeolocationProvider { } pub fn IsOverriddenChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsOverriddenChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsOverriddenChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsOverriddenChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs index 24af968560..9fb4fa266e 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs @@ -534,31 +534,31 @@ impl GeoboundingBox { #[cfg(feature = "Foundation_Collections")] pub fn TryCompute(positions: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCompute)(windows_core::Interface::as_raw(this), positions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCompute)(windows_core::Interface::as_raw(this), positions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn TryComputeWithAltitudeReference(positions: P0, altituderefsystem: AltitudeReferenceSystem) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryComputeWithAltitudeReference)(windows_core::Interface::as_raw(this), positions.into_param().abi(), altituderefsystem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryComputeWithAltitudeReference)(windows_core::Interface::as_raw(this), positions.param().abi(), altituderefsystem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn TryComputeWithAltitudeReferenceAndSpatialReference(positions: P0, altituderefsystem: AltitudeReferenceSystem, spatialreferenceid: u32) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryComputeWithAltitudeReferenceAndSpatialReference)(windows_core::Interface::as_raw(this), positions.into_param().abi(), altituderefsystem, spatialreferenceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryComputeWithAltitudeReferenceAndSpatialReference)(windows_core::Interface::as_raw(this), positions.param().abi(), altituderefsystem, spatialreferenceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GeoshapeType(&self) -> windows_core::Result { @@ -915,12 +915,12 @@ impl Geolocator { } pub fn PositionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePositionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -929,12 +929,12 @@ impl Geolocator { } pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -973,9 +973,9 @@ impl Geolocator { } pub fn SetDefaultGeoposition(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::IGeolocatorStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetDefaultGeoposition)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IGeolocatorStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetDefaultGeoposition)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn DefaultGeoposition() -> windows_core::Result> { Self::IGeolocatorStatics2(|this| unsafe { @@ -992,10 +992,10 @@ impl Geolocator { } pub fn SetDesiredAccuracyInMeters(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDesiredAccuracyInMeters)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDesiredAccuracyInMeters)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[doc(hidden)] pub fn IGeolocatorStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -1037,31 +1037,31 @@ impl Geopath { #[cfg(feature = "Foundation_Collections")] pub fn Create(positions: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), positions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), positions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAltitudeReference(positions: P0, altitudereferencesystem: AltitudeReferenceSystem) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithAltitudeReference)(windows_core::Interface::as_raw(this), positions.into_param().abi(), altitudereferencesystem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithAltitudeReference)(windows_core::Interface::as_raw(this), positions.param().abi(), altitudereferencesystem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAltitudeReferenceAndSpatialReference(positions: P0, altitudereferencesystem: AltitudeReferenceSystem, spatialreferenceid: u32) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithAltitudeReferenceAndSpatialReference)(windows_core::Interface::as_raw(this), positions.into_param().abi(), altitudereferencesystem, spatialreferenceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithAltitudeReferenceAndSpatialReference)(windows_core::Interface::as_raw(this), positions.param().abi(), altitudereferencesystem, spatialreferenceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GeoshapeType(&self) -> windows_core::Result { @@ -1280,12 +1280,12 @@ impl GeovisitMonitor { } pub fn VisitStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VisitStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VisitStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVisitStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs index 8d07915077..93606b8f27 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs @@ -30,12 +30,12 @@ windows_core::imp::interface_hierarchy!(IGpioPinProvider, windows_core::IUnknown impl IGpioPinProvider { pub fn ValueChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValueChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ValueChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveValueChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs b/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs index f744f2e156..93cf98a9ca 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs @@ -173,11 +173,11 @@ impl GpioChangeCounter { } pub fn Create(pin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGpioChangeCounterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), pin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), pin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -297,20 +297,20 @@ impl GpioChangeReader { } pub fn Create(pin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGpioChangeReaderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), pin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), pin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithCapacity(pin: P0, mincapacity: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGpioChangeReaderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithCapacity)(windows_core::Interface::as_raw(this), pin.into_param().abi(), mincapacity, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithCapacity)(windows_core::Interface::as_raw(this), pin.param().abi(), mincapacity, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -373,11 +373,11 @@ impl GpioController { #[cfg(all(feature = "Devices_Gpio_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGpioControllerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefaultAsync() -> windows_core::Result> { @@ -421,12 +421,12 @@ impl GpioPin { } pub fn ValueChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValueChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ValueChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveValueChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs b/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs index 9f5cf08750..2958d6f301 100644 --- a/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs @@ -247,31 +247,31 @@ impl SimpleHapticsController { } pub fn SendHapticFeedback(&self, feedback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendHapticFeedback)(windows_core::Interface::as_raw(this), feedback.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SendHapticFeedback)(windows_core::Interface::as_raw(this), feedback.param().abi()).ok() } } pub fn SendHapticFeedbackWithIntensity(&self, feedback: P0, intensity: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendHapticFeedbackWithIntensity)(windows_core::Interface::as_raw(this), feedback.into_param().abi(), intensity).ok() } + unsafe { (windows_core::Interface::vtable(this).SendHapticFeedbackWithIntensity)(windows_core::Interface::as_raw(this), feedback.param().abi(), intensity).ok() } } pub fn SendHapticFeedbackForDuration(&self, feedback: P0, intensity: f64, playduration: super::super::Foundation::TimeSpan) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendHapticFeedbackForDuration)(windows_core::Interface::as_raw(this), feedback.into_param().abi(), intensity, playduration).ok() } + unsafe { (windows_core::Interface::vtable(this).SendHapticFeedbackForDuration)(windows_core::Interface::as_raw(this), feedback.param().abi(), intensity, playduration).ok() } } pub fn SendHapticFeedbackForPlayCount(&self, feedback: P0, intensity: f64, playcount: i32, replaypauseinterval: super::super::Foundation::TimeSpan) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendHapticFeedbackForPlayCount)(windows_core::Interface::as_raw(this), feedback.into_param().abi(), intensity, playcount, replaypauseinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).SendHapticFeedbackForPlayCount)(windows_core::Interface::as_raw(this), feedback.param().abi(), intensity, playcount, replaypauseinterval).ok() } } } impl windows_core::RuntimeType for SimpleHapticsController { diff --git a/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs index c57ee10907..b42675050f 100644 --- a/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs @@ -491,22 +491,22 @@ impl HidDevice { } pub fn SendOutputReportAsync(&self, outputreport: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendOutputReportAsync)(windows_core::Interface::as_raw(this), outputreport.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendOutputReportAsync)(windows_core::Interface::as_raw(this), outputreport.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SendFeatureReportAsync(&self, featurereport: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendFeatureReportAsync)(windows_core::Interface::as_raw(this), featurereport.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendFeatureReportAsync)(windows_core::Interface::as_raw(this), featurereport.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -527,12 +527,12 @@ impl HidDevice { } pub fn InputReportReceived(&self, reporthandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputReportReceived)(windows_core::Interface::as_raw(this), reporthandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputReportReceived)(windows_core::Interface::as_raw(this), reporthandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputReportReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -599,10 +599,10 @@ impl HidFeatureReport { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GetBooleanControl(&self, usagepage: u16, usageid: u16) -> windows_core::Result { let this = self; @@ -613,12 +613,12 @@ impl HidFeatureReport { } pub fn GetBooleanControlByDescription(&self, controldescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetBooleanControlByDescription)(windows_core::Interface::as_raw(this), controldescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetBooleanControlByDescription)(windows_core::Interface::as_raw(this), controldescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetNumericControl(&self, usagepage: u16, usageid: u16) -> windows_core::Result { @@ -630,12 +630,12 @@ impl HidFeatureReport { } pub fn GetNumericControlByDescription(&self, controldescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNumericControlByDescription)(windows_core::Interface::as_raw(this), controldescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNumericControlByDescription)(windows_core::Interface::as_raw(this), controldescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -696,12 +696,12 @@ impl HidInputReport { } pub fn GetBooleanControlByDescription(&self, controldescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetBooleanControlByDescription)(windows_core::Interface::as_raw(this), controldescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetBooleanControlByDescription)(windows_core::Interface::as_raw(this), controldescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetNumericControl(&self, usagepage: u16, usageid: u16) -> windows_core::Result { @@ -713,12 +713,12 @@ impl HidInputReport { } pub fn GetNumericControlByDescription(&self, controldescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNumericControlByDescription)(windows_core::Interface::as_raw(this), controldescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNumericControlByDescription)(windows_core::Interface::as_raw(this), controldescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -988,10 +988,10 @@ impl HidOutputReport { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GetBooleanControl(&self, usagepage: u16, usageid: u16) -> windows_core::Result { let this = self; @@ -1002,12 +1002,12 @@ impl HidOutputReport { } pub fn GetBooleanControlByDescription(&self, controldescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetBooleanControlByDescription)(windows_core::Interface::as_raw(this), controldescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetBooleanControlByDescription)(windows_core::Interface::as_raw(this), controldescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetNumericControl(&self, usagepage: u16, usageid: u16) -> windows_core::Result { @@ -1019,12 +1019,12 @@ impl HidOutputReport { } pub fn GetNumericControlByDescription(&self, controldescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetNumericControlByDescription)(windows_core::Interface::as_raw(this), controldescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetNumericControlByDescription)(windows_core::Interface::as_raw(this), controldescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs index b5dc1510dc..853df3231d 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs @@ -3,12 +3,12 @@ windows_core::imp::interface_hierarchy!(II2cControllerProvider, windows_core::IU impl II2cControllerProvider { pub fn GetDeviceProvider(&self, settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceProvider)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceProvider)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Devices/I2c/mod.rs b/crates/libs/windows/src/Windows/Devices/I2c/mod.rs index 13f21fc2c7..6500706020 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/mod.rs @@ -80,12 +80,12 @@ impl II2cDeviceStatics { } pub fn FromIdAsync(&self, deviceid: &windows_core::HSTRING, settings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -168,22 +168,22 @@ windows_core::imp::interface_hierarchy!(I2cController, windows_core::IUnknown, w impl I2cController { pub fn GetDevice(&self, settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDevice)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDevice)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Devices_I2c_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::II2cControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefaultAsync() -> windows_core::Result> { @@ -281,11 +281,11 @@ impl I2cDevice { } pub fn FromIdAsync(deviceid: &windows_core::HSTRING, settings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::II2cDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs b/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs index 60cdb77ba5..86ffdfff20 100644 --- a/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs @@ -242,12 +242,12 @@ windows_core::imp::interface_hierarchy!(GazeDeviceWatcherPreview, windows_core:: impl GazeDeviceWatcherPreview { pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -256,12 +256,12 @@ impl GazeDeviceWatcherPreview { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -270,12 +270,12 @@ impl GazeDeviceWatcherPreview { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -284,12 +284,12 @@ impl GazeDeviceWatcherPreview { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -446,12 +446,12 @@ windows_core::imp::interface_hierarchy!(GazeInputSourcePreview, windows_core::IU impl GazeInputSourcePreview { pub fn GazeMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GazeMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GazeMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGazeMoved(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -460,12 +460,12 @@ impl GazeInputSourcePreview { } pub fn GazeEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GazeEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GazeEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGazeEntered(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -474,12 +474,12 @@ impl GazeInputSourcePreview { } pub fn GazeExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GazeExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GazeExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGazeExited(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Input/mod.rs b/crates/libs/windows/src/Windows/Devices/Input/mod.rs index ebe54e0bb3..77fc34ced1 100644 --- a/crates/libs/windows/src/Windows/Devices/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Input/mod.rs @@ -318,12 +318,12 @@ windows_core::imp::interface_hierarchy!(MouseDevice, windows_core::IUnknown, win impl MouseDevice { pub fn MouseMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MouseMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MouseMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMouseMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -389,12 +389,12 @@ impl PenButtonListener { } pub fn IsSupportedChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsSupportedChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsSupportedChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsSupportedChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -403,12 +403,12 @@ impl PenButtonListener { } pub fn TailButtonClicked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TailButtonClicked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TailButtonClicked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTailButtonClicked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -417,12 +417,12 @@ impl PenButtonListener { } pub fn TailButtonDoubleClicked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TailButtonDoubleClicked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TailButtonDoubleClicked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTailButtonDoubleClicked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -431,12 +431,12 @@ impl PenButtonListener { } pub fn TailButtonLongPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TailButtonLongPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TailButtonLongPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTailButtonLongPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -525,12 +525,12 @@ impl PenDockListener { } pub fn IsSupportedChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsSupportedChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsSupportedChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsSupportedChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -539,12 +539,12 @@ impl PenDockListener { } pub fn Docked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Docked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Docked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDocked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -553,12 +553,12 @@ impl PenDockListener { } pub fn Undocked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Undocked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Undocked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUndocked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs b/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs index 11af381acc..17560d26a1 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs @@ -297,12 +297,12 @@ impl LampArrayBitmapEffect { } pub fn BitmapRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BitmapRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BitmapRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBitmapRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -311,11 +311,11 @@ impl LampArrayBitmapEffect { } pub fn CreateInstance(lamparray: P0, lampindexes: &[i32]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILampArrayBitmapEffectFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.into_param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ZIndex(&self) -> windows_core::Result { @@ -362,10 +362,10 @@ impl LampArrayBitmapRequestedEventArgs { #[cfg(feature = "Graphics_Imaging")] pub fn UpdateBitmap(&self, bitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi()).ok() } } } impl windows_core::RuntimeType for LampArrayBitmapRequestedEventArgs { @@ -478,11 +478,11 @@ impl LampArrayBlinkEffect { } pub fn CreateInstance(lamparray: P0, lampindexes: &[i32]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILampArrayBlinkEffectFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.into_param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ZIndex(&self) -> windows_core::Result { @@ -568,11 +568,11 @@ impl LampArrayColorRampEffect { } pub fn CreateInstance(lamparray: P0, lampindexes: &[i32]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILampArrayColorRampEffectFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.into_param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ZIndex(&self) -> windows_core::Result { @@ -634,12 +634,12 @@ impl LampArrayCustomEffect { } pub fn UpdateRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UpdateRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdateRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -648,11 +648,11 @@ impl LampArrayCustomEffect { } pub fn CreateInstance(lamparray: P0, lampindexes: &[i32]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILampArrayCustomEffectFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.into_param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ZIndex(&self) -> windows_core::Result { @@ -708,10 +708,10 @@ impl LampArrayEffectPlaylist { } pub fn Append(&self, effect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), effect.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), effect.param().abi()).ok() } } pub fn OverrideZIndex(&self, zindex: i32) -> windows_core::Result<()> { let this = self; @@ -765,23 +765,23 @@ impl LampArrayEffectPlaylist { #[cfg(feature = "Foundation_Collections")] pub fn StartAll(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).StartAll)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).StartAll)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[cfg(feature = "Foundation_Collections")] pub fn StopAll(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).StopAll)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).StopAll)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[cfg(feature = "Foundation_Collections")] pub fn PauseAll(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).PauseAll)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).PauseAll)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> windows_core::Result { @@ -802,12 +802,12 @@ impl LampArrayEffectPlaylist { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -917,11 +917,11 @@ impl LampArraySolidEffect { } pub fn CreateInstance(lamparray: P0, lampindexes: &[i32]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILampArraySolidEffectFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.into_param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), lamparray.param().abi(), lampindexes.len().try_into().unwrap(), lampindexes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/Lights/mod.rs b/crates/libs/windows/src/Windows/Devices/Lights/mod.rs index bf30d09140..199c8f667c 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/mod.rs @@ -220,12 +220,12 @@ impl Lamp { } pub fn AvailabilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAvailabilityChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -426,12 +426,12 @@ impl LampArray { #[cfg(feature = "Storage_Streams")] pub fn SendMessageAsync(&self, messageid: i32, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), messageid, message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), messageid, message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -451,12 +451,12 @@ impl LampArray { } pub fn AvailabilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAvailabilityChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Midi/mod.rs b/crates/libs/windows/src/Windows/Devices/Midi/mod.rs index e5e363a203..95a07768ca 100644 --- a/crates/libs/windows/src/Windows/Devices/Midi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Midi/mod.rs @@ -152,18 +152,18 @@ windows_core::imp::required_hierarchy!(IMidiOutPort, super::super::Foundation::I impl IMidiOutPort { pub fn SendMessage(&self, midimessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendMessage)(windows_core::Interface::as_raw(this), midimessage.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SendMessage)(windows_core::Interface::as_raw(this), midimessage.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn SendBuffer(&self, mididata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendBuffer)(windows_core::Interface::as_raw(this), mididata.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SendBuffer)(windows_core::Interface::as_raw(this), mididata.param().abi()).ok() } } pub fn DeviceId(&self) -> windows_core::Result { let this = self; @@ -603,12 +603,12 @@ impl MidiInPort { } pub fn MessageReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -835,18 +835,18 @@ impl MidiOutPort { } pub fn SendMessage(&self, midimessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendMessage)(windows_core::Interface::as_raw(this), midimessage.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SendMessage)(windows_core::Interface::as_raw(this), midimessage.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn SendBuffer(&self, mididata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SendBuffer)(windows_core::Interface::as_raw(this), mididata.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SendBuffer)(windows_core::Interface::as_raw(this), mididata.param().abi()).ok() } } pub fn DeviceId(&self) -> windows_core::Result { let this = self; @@ -1316,18 +1316,18 @@ impl MidiSynthesizer { } pub fn SendMessage(&self, midimessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SendMessage)(windows_core::Interface::as_raw(this), midimessage.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SendMessage)(windows_core::Interface::as_raw(this), midimessage.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn SendBuffer(&self, mididata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SendBuffer)(windows_core::Interface::as_raw(this), mididata.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SendBuffer)(windows_core::Interface::as_raw(this), mididata.param().abi()).ok() } } pub fn DeviceId(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1364,21 +1364,21 @@ impl MidiSynthesizer { #[cfg(feature = "Devices_Enumeration")] pub fn CreateFromAudioDeviceAsync(audiodevice: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMidiSynthesizerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromAudioDeviceAsync)(windows_core::Interface::as_raw(this), audiodevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromAudioDeviceAsync)(windows_core::Interface::as_raw(this), audiodevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Enumeration")] pub fn IsSynthesizer(mididevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMidiSynthesizerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsSynthesizer)(windows_core::Interface::as_raw(this), mididevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsSynthesizer)(windows_core::Interface::as_raw(this), mididevice.param().abi(), &mut result__).map(|| result__) }) } #[doc(hidden)] @@ -1430,11 +1430,11 @@ impl MidiSystemExclusiveMessage { #[cfg(feature = "Storage_Streams")] pub fn CreateMidiSystemExclusiveMessage(rawdata: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMidiSystemExclusiveMessageFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMidiSystemExclusiveMessage)(windows_core::Interface::as_raw(this), rawdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMidiSystemExclusiveMessage)(windows_core::Interface::as_raw(this), rawdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs index 2d38829d89..d5aef11a13 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs @@ -560,12 +560,12 @@ impl BarcodeScannerFrameReader { } pub fn FrameArrived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameArrived(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -628,12 +628,12 @@ impl BarcodeScannerGetSymbologyAttributesRequest { } pub fn ReportCompletedAsync(&self, attributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), attributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportCompletedAsync)(windows_core::Interface::as_raw(this), attributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportFailedAsync(&self) -> windows_core::Result { @@ -847,12 +847,12 @@ impl BarcodeScannerProviderConnection { } pub fn ReportScannedDataAsync(&self, report: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportScannedDataAsync)(windows_core::Interface::as_raw(this), report.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportScannedDataAsync)(windows_core::Interface::as_raw(this), report.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportTriggerStateAsync(&self, state: BarcodeScannerTriggerState) -> windows_core::Result { @@ -864,33 +864,33 @@ impl BarcodeScannerProviderConnection { } pub fn ReportErrorAsync(&self, errordata: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportErrorAsync)(windows_core::Interface::as_raw(this), errordata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportErrorAsync)(windows_core::Interface::as_raw(this), errordata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportErrorAsyncWithScanReport(&self, errordata: P0, isretriable: bool, scanreport: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportErrorAsyncWithScanReport)(windows_core::Interface::as_raw(this), errordata.into_param().abi(), isretriable, scanreport.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReportErrorAsyncWithScanReport)(windows_core::Interface::as_raw(this), errordata.param().abi(), isretriable, scanreport.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn EnableScannerRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnableScannerRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnableScannerRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnableScannerRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -899,12 +899,12 @@ impl BarcodeScannerProviderConnection { } pub fn DisableScannerRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisableScannerRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DisableScannerRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisableScannerRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -913,12 +913,12 @@ impl BarcodeScannerProviderConnection { } pub fn SetActiveSymbologiesRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetActiveSymbologiesRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetActiveSymbologiesRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSetActiveSymbologiesRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -927,12 +927,12 @@ impl BarcodeScannerProviderConnection { } pub fn StartSoftwareTriggerRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartSoftwareTriggerRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StartSoftwareTriggerRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStartSoftwareTriggerRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -941,12 +941,12 @@ impl BarcodeScannerProviderConnection { } pub fn StopSoftwareTriggerRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StopSoftwareTriggerRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StopSoftwareTriggerRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopSoftwareTriggerRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -955,12 +955,12 @@ impl BarcodeScannerProviderConnection { } pub fn GetBarcodeSymbologyAttributesRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetBarcodeSymbologyAttributesRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetBarcodeSymbologyAttributesRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGetBarcodeSymbologyAttributesRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -969,12 +969,12 @@ impl BarcodeScannerProviderConnection { } pub fn SetBarcodeSymbologyAttributesRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetBarcodeSymbologyAttributesRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetBarcodeSymbologyAttributesRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSetBarcodeSymbologyAttributesRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -983,12 +983,12 @@ impl BarcodeScannerProviderConnection { } pub fn HideVideoPreviewRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HideVideoPreviewRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HideVideoPreviewRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHideVideoPreviewRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs b/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs index 7971a17d5c..02b5f48b78 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs @@ -1950,34 +1950,34 @@ impl IReceiptOrSlipJob { #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmap(&self, bitmapnumber: u32, bitmap: P0, alignment: PosPrinterAlignment) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignment).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignment).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmapCustomWidthStandardAlign(&self, bitmapnumber: u32, bitmap: P0, alignment: PosPrinterAlignment, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignment, width).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignment, width).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetCustomAlignedBitmap(&self, bitmapnumber: u32, bitmap: P0, alignmentdistance: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignmentdistance).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignmentdistance).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmapCustomWidthCustomAlign(&self, bitmapnumber: u32, bitmap: P0, alignmentdistance: u32, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignmentdistance, width).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignmentdistance, width).ok() } } pub fn PrintSavedBitmap(&self, bitmapnumber: u32) -> windows_core::Result<()> { let this = self; @@ -1998,34 +1998,34 @@ impl IReceiptOrSlipJob { #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmap(&self, bitmap: P0, alignment: PosPrinterAlignment) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignment).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignment).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmapCustomWidthStandardAlign(&self, bitmap: P0, alignment: PosPrinterAlignment, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignment, width).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignment, width).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintCustomAlignedBitmap(&self, bitmap: P0, alignmentdistance: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignmentdistance).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignmentdistance).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmapCustomWidthCustomAlign(&self, bitmap: P0, alignmentdistance: u32, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignmentdistance, width).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignmentdistance, width).ok() } } pub fn Print(&self, data: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2249,12 +2249,12 @@ impl BarcodeScanner { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn RetrieveStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -2274,12 +2274,12 @@ impl BarcodeScanner { } pub fn StatusUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2525,12 +2525,12 @@ impl BarcodeScannerReport { #[cfg(feature = "Storage_Streams")] pub fn CreateInstance(scandatatype: u32, scandata: P0, scandatalabel: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IBarcodeScannerReportFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), scandatatype, scandata.into_param().abi(), scandatalabel.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), scandatatype, scandata.param().abi(), scandatalabel.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3321,22 +3321,22 @@ impl CashDrawer { #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StatusUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3505,12 +3505,12 @@ impl CashDrawerCloseAlarm { } pub fn AlarmTimeoutExpired(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AlarmTimeoutExpired)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AlarmTimeoutExpired)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAlarmTimeoutExpired(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3570,12 +3570,12 @@ windows_core::imp::interface_hierarchy!(CashDrawerEventSource, windows_core::IUn impl CashDrawerEventSource { pub fn DrawerClosed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DrawerClosed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DrawerClosed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDrawerClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3584,12 +3584,12 @@ impl CashDrawerEventSource { } pub fn DrawerOpened(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DrawerOpened)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DrawerOpened)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDrawerOpened(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3755,34 +3755,34 @@ impl ClaimedBarcodeScanner { #[cfg(feature = "Foundation_Collections")] pub fn SetActiveSymbologiesAsync(&self, symbologies: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetActiveSymbologiesAsync)(windows_core::Interface::as_raw(this), symbologies.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetActiveSymbologiesAsync)(windows_core::Interface::as_raw(this), symbologies.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetActiveProfileAsync(&self, profile: &windows_core::HSTRING) -> windows_core::Result { @@ -3794,12 +3794,12 @@ impl ClaimedBarcodeScanner { } pub fn DataReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DataReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DataReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDataReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3808,12 +3808,12 @@ impl ClaimedBarcodeScanner { } pub fn TriggerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TriggerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TriggerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTriggerPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3822,12 +3822,12 @@ impl ClaimedBarcodeScanner { } pub fn TriggerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TriggerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TriggerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTriggerReleased(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3836,12 +3836,12 @@ impl ClaimedBarcodeScanner { } pub fn ReleaseDeviceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReleaseDeviceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3850,12 +3850,12 @@ impl ClaimedBarcodeScanner { } pub fn ImagePreviewReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImagePreviewReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ImagePreviewReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveImagePreviewReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3864,12 +3864,12 @@ impl ClaimedBarcodeScanner { } pub fn ErrorOccurred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveErrorOccurred(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3899,12 +3899,12 @@ impl ClaimedBarcodeScanner { } pub fn SetSymbologyAttributesAsync(&self, barcodesymbology: u32, attributes: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetSymbologyAttributesAsync)(windows_core::Interface::as_raw(this), barcodesymbology, attributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetSymbologyAttributesAsync)(windows_core::Interface::as_raw(this), barcodesymbology, attributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShowVideoPreviewAsync(&self) -> windows_core::Result> { @@ -3931,12 +3931,12 @@ impl ClaimedBarcodeScanner { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4042,33 +4042,33 @@ impl ClaimedCashDrawer { #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReleaseDeviceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReleaseDeviceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4077,12 +4077,12 @@ impl ClaimedCashDrawer { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4335,12 +4335,12 @@ impl ClaimedLineDisplay { } pub fn ReleaseDeviceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReleaseDeviceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4350,12 +4350,12 @@ impl ClaimedLineDisplay { #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> windows_core::Result> { @@ -4374,12 +4374,12 @@ impl ClaimedLineDisplay { } pub fn StatusUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4425,12 +4425,12 @@ impl ClaimedLineDisplay { } pub fn TryUpdateAttributesAsync(&self, attributes: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryUpdateAttributesAsync)(windows_core::Interface::as_raw(this), attributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryUpdateAttributesAsync)(windows_core::Interface::as_raw(this), attributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TrySetDescriptorAsync(&self, descriptor: u32, descriptorstate: LineDisplayDescriptorState) -> windows_core::Result> { @@ -4457,44 +4457,44 @@ impl ClaimedLineDisplay { #[cfg(feature = "Storage")] pub fn TryStoreStorageFileBitmapAsync(&self, bitmap: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryStoreStorageFileBitmapAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryStoreStorageFileBitmapAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TryStoreStorageFileBitmapWithAlignmentAsync(&self, bitmap: P0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryStoreStorageFileBitmapWithAlignmentAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), horizontalalignment, verticalalignment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryStoreStorageFileBitmapWithAlignmentAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), horizontalalignment, verticalalignment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TryStoreStorageFileBitmapWithAlignmentAndWidthAsync(&self, bitmap: P0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment, widthinpixels: i32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryStoreStorageFileBitmapWithAlignmentAndWidthAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), horizontalalignment, verticalalignment, widthinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryStoreStorageFileBitmapWithAlignmentAndWidthAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), horizontalalignment, verticalalignment, widthinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4694,33 +4694,33 @@ impl ClaimedMagneticStripeReader { #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn BankCardDataReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BankCardDataReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BankCardDataReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBankCardDataReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4729,12 +4729,12 @@ impl ClaimedMagneticStripeReader { } pub fn AamvaCardDataReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AamvaCardDataReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AamvaCardDataReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAamvaCardDataReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4743,12 +4743,12 @@ impl ClaimedMagneticStripeReader { } pub fn VendorSpecificDataReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VendorSpecificDataReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VendorSpecificDataReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVendorSpecificDataReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4757,12 +4757,12 @@ impl ClaimedMagneticStripeReader { } pub fn ReleaseDeviceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReleaseDeviceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4771,12 +4771,12 @@ impl ClaimedMagneticStripeReader { } pub fn ErrorOccurred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveErrorOccurred(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4785,12 +4785,12 @@ impl ClaimedMagneticStripeReader { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4936,33 +4936,33 @@ impl ClaimedPosPrinter { #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateStatisticsAsync)(windows_core::Interface::as_raw(this), statistics.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReleaseDeviceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReleaseDeviceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReleaseDeviceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4971,12 +4971,12 @@ impl ClaimedPosPrinter { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5423,10 +5423,10 @@ windows_core::imp::required_hierarchy!(JournalPrintJob, IPosPrinterJob); impl JournalPrintJob { pub fn Print(&self, data: &windows_core::HSTRING, printoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Print)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(data), printoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Print)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(data), printoptions.param().abi()).ok() } } pub fn FeedPaperByLine(&self, linecount: i32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5827,10 +5827,10 @@ impl LineDisplayAttributes { } pub fn SetCurrentWindow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCurrentWindow)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCurrentWindow)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for LineDisplayAttributes { @@ -6052,12 +6052,12 @@ impl LineDisplayCursor { } pub fn TryUpdateAttributesAsync(&self, attributes: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryUpdateAttributesAsync)(windows_core::Interface::as_raw(this), attributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryUpdateAttributesAsync)(windows_core::Interface::as_raw(this), attributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -6158,12 +6158,12 @@ impl LineDisplayCustomGlyphs { #[cfg(feature = "Storage_Streams")] pub fn TryRedefineAsync(&self, glyphcode: u32, glyphdata: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryRedefineAsync)(windows_core::Interface::as_raw(this), glyphcode, glyphdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryRedefineAsync)(windows_core::Interface::as_raw(this), glyphcode, glyphdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -6433,67 +6433,67 @@ impl LineDisplayWindow { } pub fn TryDisplayStoredBitmapAtCursorAsync(&self, bitmap: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryDisplayStoredBitmapAtCursorAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryDisplayStoredBitmapAtCursorAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TryDisplayStorageFileBitmapAtCursorAsync(&self, bitmap: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtCursorAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtCursorAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TryDisplayStorageFileBitmapAtCursorWithAlignmentAsync(&self, bitmap: P0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtCursorWithAlignmentAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), horizontalalignment, verticalalignment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtCursorWithAlignmentAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), horizontalalignment, verticalalignment, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TryDisplayStorageFileBitmapAtCursorWithAlignmentAndWidthAsync(&self, bitmap: P0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment, widthinpixels: i32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtCursorWithAlignmentAndWidthAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), horizontalalignment, verticalalignment, widthinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtCursorWithAlignmentAndWidthAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), horizontalalignment, verticalalignment, widthinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TryDisplayStorageFileBitmapAtPointAsync(&self, bitmap: P0, offsetinpixels: super::super::Foundation::Point) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtPointAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), offsetinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtPointAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), offsetinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TryDisplayStorageFileBitmapAtPointWithWidthAsync(&self, bitmap: P0, offsetinpixels: super::super::Foundation::Point, widthinpixels: i32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtPointWithWidthAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), offsetinpixels, widthinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryDisplayStorageFileBitmapAtPointWithWidthAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), offsetinpixels, widthinpixels, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -6564,12 +6564,12 @@ impl MagneticStripeReader { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn RetrieveStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetErrorReportingType(&self) -> windows_core::Result { @@ -6581,12 +6581,12 @@ impl MagneticStripeReader { } pub fn StatusUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -7338,22 +7338,22 @@ impl PosPrinter { #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StatusUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -7861,34 +7861,34 @@ impl ReceiptPrintJob { #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmap(&self, bitmapnumber: u32, bitmap: P0, alignment: PosPrinterAlignment) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignment).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignment).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmapCustomWidthStandardAlign(&self, bitmapnumber: u32, bitmap: P0, alignment: PosPrinterAlignment, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignment, width).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignment, width).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetCustomAlignedBitmap(&self, bitmapnumber: u32, bitmap: P0, alignmentdistance: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignmentdistance).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignmentdistance).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmapCustomWidthCustomAlign(&self, bitmapnumber: u32, bitmap: P0, alignmentdistance: u32, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignmentdistance, width).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignmentdistance, width).ok() } } pub fn PrintSavedBitmap(&self, bitmapnumber: u32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7909,34 +7909,34 @@ impl ReceiptPrintJob { #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmap(&self, bitmap: P0, alignment: PosPrinterAlignment) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PrintBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignment).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignment).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmapCustomWidthStandardAlign(&self, bitmap: P0, alignment: PosPrinterAlignment, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignment, width).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignment, width).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintCustomAlignedBitmap(&self, bitmap: P0, alignmentdistance: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PrintCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignmentdistance).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignmentdistance).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmapCustomWidthCustomAlign(&self, bitmap: P0, alignmentdistance: u32, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignmentdistance, width).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignmentdistance, width).ok() } } pub fn MarkFeed(&self, kind: PosPrinterMarkFeedKind) -> windows_core::Result<()> { let this = self; @@ -7956,10 +7956,10 @@ impl ReceiptPrintJob { } pub fn Print2(&self, data: &windows_core::HSTRING, printoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Print)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(data), printoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Print)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(data), printoptions.param().abi()).ok() } } pub fn FeedPaperByLine(&self, linecount: i32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8261,34 +8261,34 @@ impl SlipPrintJob { #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmap(&self, bitmapnumber: u32, bitmap: P0, alignment: PosPrinterAlignment) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignment).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignment).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmapCustomWidthStandardAlign(&self, bitmapnumber: u32, bitmap: P0, alignment: PosPrinterAlignment, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignment, width).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignment, width).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetCustomAlignedBitmap(&self, bitmapnumber: u32, bitmap: P0, alignmentdistance: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignmentdistance).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignmentdistance).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SetBitmapCustomWidthCustomAlign(&self, bitmapnumber: u32, bitmap: P0, alignmentdistance: u32, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.into_param().abi(), alignmentdistance, width).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmapnumber, bitmap.param().abi(), alignmentdistance, width).ok() } } pub fn PrintSavedBitmap(&self, bitmapnumber: u32) -> windows_core::Result<()> { let this = self; @@ -8309,41 +8309,41 @@ impl SlipPrintJob { #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmap(&self, bitmap: P0, alignment: PosPrinterAlignment) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignment).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignment).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmapCustomWidthStandardAlign(&self, bitmap: P0, alignment: PosPrinterAlignment, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignment, width).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthStandardAlign)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignment, width).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintCustomAlignedBitmap(&self, bitmap: P0, alignmentdistance: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignmentdistance).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintCustomAlignedBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignmentdistance).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn PrintBitmapCustomWidthCustomAlign(&self, bitmap: P0, alignmentdistance: u32, width: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignmentdistance, width).ok() } + unsafe { (windows_core::Interface::vtable(this).PrintBitmapCustomWidthCustomAlign)(windows_core::Interface::as_raw(this), bitmap.param().abi(), alignmentdistance, width).ok() } } pub fn Print2(&self, data: &windows_core::HSTRING, printoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Print)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(data), printoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Print)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(data), printoptions.param().abi()).ok() } } pub fn FeedPaperByLine(&self, linecount: i32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; diff --git a/crates/libs/windows/src/Windows/Devices/Power/mod.rs b/crates/libs/windows/src/Windows/Devices/Power/mod.rs index 7c82f1e6cb..ed66e45104 100644 --- a/crates/libs/windows/src/Windows/Devices/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Power/mod.rs @@ -58,12 +58,12 @@ impl Battery { } pub fn ReportUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReportUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReportUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs b/crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs index 19d55b8a75..eb77f10357 100644 --- a/crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs @@ -136,12 +136,12 @@ impl Print3DWorkflow { } pub fn PrintRequested(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrintRequested)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrintRequested)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrintRequested(&self, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -150,12 +150,12 @@ impl Print3DWorkflow { } pub fn PrinterChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrinterChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrinterChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrinterChanged(&self, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -193,10 +193,10 @@ impl Print3DWorkflowPrintRequestedEventArgs { } pub fn SetSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn SetSourceChanged(&self, value: bool) -> windows_core::Result<()> { let this = self; @@ -307,12 +307,12 @@ impl PrintTaskConfiguration { } pub fn SaveRequested(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveRequested)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SaveRequested)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSaveRequested(&self, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -341,10 +341,10 @@ impl PrintTaskConfigurationSaveRequest { } pub fn Save(&self, printerextensioncontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Save)(windows_core::Interface::as_raw(this), printerextensioncontext.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Save)(windows_core::Interface::as_raw(this), printerextensioncontext.param().abi()).ok() } } pub fn GetDeferral(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/Devices/Printers/mod.rs b/crates/libs/windows/src/Windows/Devices/Printers/mod.rs index e3973723ab..1d5ca2e043 100644 --- a/crates/libs/windows/src/Windows/Devices/Printers/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Printers/mod.rs @@ -631,11 +631,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateIntegerArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateIntegerArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateIntegerArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateBoolean(value: bool) -> windows_core::Result { @@ -647,11 +647,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateBooleanArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateBooleanArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateBooleanArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateEnum(value: i32) -> windows_core::Result { @@ -663,31 +663,31 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateEnumArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEnumArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEnumArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateOctetString(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateOctetString)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateOctetString)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn CreateOctetStringArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateOctetStringArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateOctetStringArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateDateTime(value: super::super::Foundation::DateTime) -> windows_core::Result { @@ -699,107 +699,107 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDateTimeArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDateTimeArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateResolution(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResolution)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResolution)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateResolutionArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResolutionArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResolutionArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateRangeOfInteger(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRangeOfInteger)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRangeOfInteger)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateRangeOfIntegerArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRangeOfIntegerArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRangeOfIntegerArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateCollection(memberattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCollection)(windows_core::Interface::as_raw(this), memberattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCollection)(windows_core::Interface::as_raw(this), memberattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateCollectionArray(memberattributesarray: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>>, + P0: windows_core::Param>>>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCollectionArray)(windows_core::Interface::as_raw(this), memberattributesarray.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCollectionArray)(windows_core::Interface::as_raw(this), memberattributesarray.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateTextWithLanguage(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTextWithLanguage)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTextWithLanguage)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateTextWithLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTextWithLanguageArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTextWithLanguageArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateNameWithLanguage(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateNameWithLanguage)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateNameWithLanguage)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateNameWithLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateNameWithLanguageArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateNameWithLanguageArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateTextWithoutLanguage(value: &windows_core::HSTRING) -> windows_core::Result { @@ -811,11 +811,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateTextWithoutLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTextWithoutLanguageArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTextWithoutLanguageArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateNameWithoutLanguage(value: &windows_core::HSTRING) -> windows_core::Result { @@ -827,11 +827,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateNameWithoutLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateNameWithoutLanguageArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateNameWithoutLanguageArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateKeyword(value: &windows_core::HSTRING) -> windows_core::Result { @@ -843,30 +843,30 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateKeywordArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateKeywordArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateKeywordArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateUri(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUri)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUri)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateUriArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUriArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUriArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateUriSchema(value: &windows_core::HSTRING) -> windows_core::Result { @@ -878,11 +878,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateUriSchemaArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUriSchemaArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUriSchemaArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateCharset(value: &windows_core::HSTRING) -> windows_core::Result { @@ -894,11 +894,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateCharsetArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCharsetArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCharsetArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateNaturalLanguage(value: &windows_core::HSTRING) -> windows_core::Result { @@ -910,11 +910,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateNaturalLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateNaturalLanguageArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateNaturalLanguageArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateMimeMedia(value: &windows_core::HSTRING) -> windows_core::Result { @@ -926,11 +926,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateMimeMediaArray(values: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMimeMediaArray)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMimeMediaArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1016,45 +1016,45 @@ impl IppPrintDevice { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GetPrinterAttributesAsBuffer(&self, attributenames: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPrinterAttributesAsBuffer)(windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPrinterAttributesAsBuffer)(windows_core::Interface::as_raw(this), attributenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetPrinterAttributes(&self, attributenames: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPrinterAttributes)(windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPrinterAttributes)(windows_core::Interface::as_raw(this), attributenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SetPrinterAttributesFromBuffer(&self, printerattributesbuffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPrinterAttributesFromBuffer)(windows_core::Interface::as_raw(this), printerattributesbuffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPrinterAttributesFromBuffer)(windows_core::Interface::as_raw(this), printerattributesbuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SetPrinterAttributes(&self, printerattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPrinterAttributes)(windows_core::Interface::as_raw(this), printerattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPrinterAttributes)(windows_core::Interface::as_raw(this), printerattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetMaxSupportedPdfSize(&self) -> windows_core::Result { @@ -1316,25 +1316,25 @@ impl PdlPassthroughProvider { #[cfg(feature = "Graphics_Printing")] pub fn StartPrintJobWithTaskOptions(&self, jobname: &windows_core::HSTRING, pdlcontenttype: &windows_core::HSTRING, taskoptions: P0, pageconfigurationsettings: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartPrintJobWithTaskOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(jobname), core::mem::transmute_copy(pdlcontenttype), taskoptions.into_param().abi(), pageconfigurationsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartPrintJobWithTaskOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(jobname), core::mem::transmute_copy(pdlcontenttype), taskoptions.param().abi(), pageconfigurationsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn StartPrintJobWithPrintTicket(&self, jobname: &windows_core::HSTRING, pdlcontenttype: &windows_core::HSTRING, printticket: P0, pageconfigurationsettings: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartPrintJobWithPrintTicket)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(jobname), core::mem::transmute_copy(pdlcontenttype), printticket.into_param().abi(), pageconfigurationsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartPrintJobWithPrintTicket)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(jobname), core::mem::transmute_copy(pdlcontenttype), printticket.param().abi(), pageconfigurationsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1450,23 +1450,23 @@ impl PrintSchema { #[cfg(feature = "Storage_Streams")] pub fn GetCapabilitiesAsync(&self, constrainticket: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCapabilitiesAsync)(windows_core::Interface::as_raw(this), constrainticket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetCapabilitiesAsync)(windows_core::Interface::as_raw(this), constrainticket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn MergeAndValidateWithDefaultPrintTicketAsync(&self, deltaticket: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MergeAndValidateWithDefaultPrintTicketAsync)(windows_core::Interface::as_raw(this), deltaticket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MergeAndValidateWithDefaultPrintTicketAsync)(windows_core::Interface::as_raw(this), deltaticket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs b/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs index af647d3c49..0d6b011007 100644 --- a/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs @@ -112,11 +112,11 @@ impl PwmController { #[cfg(all(feature = "Devices_Pwm_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPwmControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefaultAsync() -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Devices/Radios/mod.rs b/crates/libs/windows/src/Windows/Devices/Radios/mod.rs index 519f38b619..6eb4212c3d 100644 --- a/crates/libs/windows/src/Windows/Devices/Radios/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Radios/mod.rs @@ -41,12 +41,12 @@ impl Radio { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs b/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs index 0b0456153e..ea810a89d5 100644 --- a/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs @@ -441,23 +441,23 @@ impl ImageScanner { #[cfg(feature = "Storage_Streams")] pub fn ScanPreviewToStreamAsync(&self, scansource: ImageScannerScanSource, targetstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScanPreviewToStreamAsync)(windows_core::Interface::as_raw(this), scansource, targetstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ScanPreviewToStreamAsync)(windows_core::Interface::as_raw(this), scansource, targetstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn ScanFilesToFolderAsync(&self, scansource: ImageScannerScanSource, storagefolder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScanFilesToFolderAsync)(windows_core::Interface::as_raw(this), scansource, storagefolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ScanFilesToFolderAsync)(windows_core::Interface::as_raw(this), scansource, storagefolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FromIdAsync(deviceid: &windows_core::HSTRING) -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs b/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs index 216de1d420..478fc98270 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs @@ -104,12 +104,12 @@ impl CustomSensor { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs index e06e7b3d70..f4c0574ccc 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs @@ -781,20 +781,20 @@ impl IHumanPresenceSensorExtension { } pub fn ProcessReading(&self, reading: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProcessReading)(windows_core::Interface::as_raw(this), reading.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProcessReading)(windows_core::Interface::as_raw(this), reading.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ProcessReadingTimeoutExpired(&self, reading: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessReadingTimeoutExpired)(windows_core::Interface::as_raw(this), reading.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessReadingTimeoutExpired)(windows_core::Interface::as_raw(this), reading.param().abi()).ok() } } pub fn Stop(&self) -> windows_core::Result<()> { let this = self; @@ -1795,12 +1795,12 @@ impl Accelerometer { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1809,12 +1809,12 @@ impl Accelerometer { } pub fn Shaken(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Shaken)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Shaken)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShaken(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2138,12 +2138,12 @@ impl ActivitySensor { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2383,12 +2383,12 @@ impl Altimeter { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2548,12 +2548,12 @@ impl Barometer { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2759,12 +2759,12 @@ impl Compass { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3004,12 +3004,12 @@ impl Gyrometer { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3318,12 +3318,12 @@ impl HingeAngleSensor { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3494,12 +3494,12 @@ impl HumanPresenceSensor { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3673,10 +3673,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetTimestamp(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTimestamp)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTimestamp)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Presence(&self) -> windows_core::Result> { let this = self; @@ -3687,10 +3687,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetPresence(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPresence)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPresence)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Engagement(&self) -> windows_core::Result> { let this = self; @@ -3701,10 +3701,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetEngagement(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEngagement)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEngagement)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DistanceInMillimeters(&self) -> windows_core::Result> { let this = self; @@ -3715,10 +3715,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetDistanceInMillimeters(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDistanceInMillimeters)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDistanceInMillimeters)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for HumanPresenceSensorReadingUpdate { @@ -3769,10 +3769,10 @@ impl HumanPresenceSettings { } pub fn SetWakeOnApproachDistanceInMillimeters(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWakeOnApproachDistanceInMillimeters)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWakeOnApproachDistanceInMillimeters)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsLockOnLeaveEnabled(&self) -> windows_core::Result { let this = self; @@ -3794,10 +3794,10 @@ impl HumanPresenceSettings { } pub fn SetLockOnLeaveDistanceInMillimeters(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLockOnLeaveDistanceInMillimeters)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLockOnLeaveDistanceInMillimeters)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LockOnLeaveTimeout(&self) -> windows_core::Result { let this = self; @@ -3869,18 +3869,18 @@ impl HumanPresenceSettings { } pub fn UpdateSettingsAsync(settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHumanPresenceSettingsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateSettingsAsync)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateSettingsAsync)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn UpdateSettings(settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IHumanPresenceSettingsStatics(|this| unsafe { (windows_core::Interface::vtable(this).UpdateSettings)(windows_core::Interface::as_raw(this), settings.into_param().abi()).ok() }) + Self::IHumanPresenceSettingsStatics(|this| unsafe { (windows_core::Interface::vtable(this).UpdateSettings)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() }) } pub fn GetSupportedFeaturesForSensorIdAsync(sensorid: &windows_core::HSTRING) -> windows_core::Result> { Self::IHumanPresenceSettingsStatics(|this| unsafe { @@ -3903,11 +3903,11 @@ impl HumanPresenceSettings { } pub fn SettingsChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IHumanPresenceSettingsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SettingsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SettingsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveSettingsChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3963,12 +3963,12 @@ impl Inclinometer { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4266,12 +4266,12 @@ impl LightSensor { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4524,12 +4524,12 @@ impl Magnetometer { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4798,12 +4798,12 @@ impl OrientationSensor { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5055,12 +5055,12 @@ impl Pedometer { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5110,11 +5110,11 @@ impl Pedometer { #[cfg(feature = "Foundation_Collections")] pub fn GetReadingsFromTriggerDetails(triggerdetails: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPedometerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetReadingsFromTriggerDetails)(windows_core::Interface::as_raw(this), triggerdetails.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetReadingsFromTriggerDetails)(windows_core::Interface::as_raw(this), triggerdetails.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -5148,11 +5148,11 @@ windows_core::imp::required_hierarchy!(PedometerDataThreshold, ISensorDataThresh impl PedometerDataThreshold { pub fn Create(sensor: P0, stepgoal: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPedometerDataThresholdFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), sensor.into_param().abi(), stepgoal, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), sensor.param().abi(), stepgoal, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -5279,12 +5279,12 @@ impl ProximitySensor { } pub fn ReadingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReadingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveReadingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5313,11 +5313,11 @@ impl ProximitySensor { #[cfg(feature = "Foundation_Collections")] pub fn GetReadingsFromTriggerDetails(triggerdetails: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProximitySensorStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetReadingsFromTriggerDetails)(windows_core::Interface::as_raw(this), triggerdetails.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetReadingsFromTriggerDetails)(windows_core::Interface::as_raw(this), triggerdetails.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -5351,11 +5351,11 @@ windows_core::imp::required_hierarchy!(ProximitySensorDataThreshold, ISensorData impl ProximitySensorDataThreshold { pub fn Create(sensor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProximitySensorDataThresholdFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), sensor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), sensor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -5636,12 +5636,12 @@ impl SimpleOrientationSensor { } pub fn OrientationChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OrientationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OrientationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOrientationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs b/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs index c4ac4bdbc6..dadd3b30c3 100644 --- a/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs @@ -312,12 +312,12 @@ impl SerialDevice { } pub fn ErrorReceived(&self, reporthandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ErrorReceived)(windows_core::Interface::as_raw(this), reporthandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ErrorReceived)(windows_core::Interface::as_raw(this), reporthandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveErrorReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -326,12 +326,12 @@ impl SerialDevice { } pub fn PinChanged(&self, reporthandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PinChanged)(windows_core::Interface::as_raw(this), reporthandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PinChanged)(windows_core::Interface::as_raw(this), reporthandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePinChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs index 8b7655b13a..028da427da 100644 --- a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs @@ -1004,10 +1004,10 @@ impl SmartCardAppletIdGroup { #[cfg(feature = "Storage_Streams")] pub fn SetLogo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetLogo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Description(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1042,11 +1042,11 @@ impl SmartCardAppletIdGroup { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn Create(displayname: &windows_core::HSTRING, appletids: P0, emulationcategory: SmartCardEmulationCategory, emulationtype: SmartCardEmulationType) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISmartCardAppletIdGroupFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displayname), appletids.into_param().abi(), emulationcategory, emulationtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displayname), appletids.param().abi(), emulationcategory, emulationtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn MaxAppletIds() -> windows_core::Result { @@ -1114,12 +1114,12 @@ impl SmartCardAppletIdGroupRegistration { #[cfg(feature = "Foundation_Collections")] pub fn SetAutomaticResponseApdusAsync(&self, apdus: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAutomaticResponseApdusAsync)(windows_core::Interface::as_raw(this), apdus.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAutomaticResponseApdusAsync)(windows_core::Interface::as_raw(this), apdus.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SmartCardReaderId(&self) -> windows_core::Result { @@ -1132,12 +1132,12 @@ impl SmartCardAppletIdGroupRegistration { #[cfg(feature = "Foundation_Collections")] pub fn SetPropertiesAsync(&self, props: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPropertiesAsync)(windows_core::Interface::as_raw(this), props.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPropertiesAsync)(windows_core::Interface::as_raw(this), props.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1169,10 +1169,10 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetCommandApdu(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCommandApdu)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCommandApdu)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn CommandApduBitMask(&self) -> windows_core::Result { @@ -1185,10 +1185,10 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetCommandApduBitMask(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCommandApduBitMask)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCommandApduBitMask)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ShouldMatchLength(&self) -> windows_core::Result { let this = self; @@ -1212,10 +1212,10 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetAppletId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppletId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppletId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn ResponseApdu(&self) -> windows_core::Result { @@ -1228,10 +1228,10 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetResponseApdu(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetResponseApdu)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetResponseApdu)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InputState(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1242,10 +1242,10 @@ impl SmartCardAutomaticResponseApdu { } pub fn SetInputState(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInputState)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInputState)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OutputState(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1256,10 +1256,10 @@ impl SmartCardAutomaticResponseApdu { } pub fn SetOutputState(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetOutputState)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOutputState)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AllowWhenCryptogramGeneratorNotPrepared(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1275,12 +1275,12 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn Create(commandapdu: P0, responseapdu: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISmartCardAutomaticResponseApduFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), commandapdu.into_param().abi(), responseapdu.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), commandapdu.param().abi(), responseapdu.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1322,46 +1322,46 @@ impl SmartCardChallengeContext { #[cfg(feature = "Storage_Streams")] pub fn VerifyResponseAsync(&self, response: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VerifyResponseAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).VerifyResponseAsync)(windows_core::Interface::as_raw(this), response.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ProvisionAsync(&self, response: P0, formatcard: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProvisionAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), formatcard, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProvisionAsync)(windows_core::Interface::as_raw(this), response.param().abi(), formatcard, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ProvisionAsyncWithNewCardId(&self, response: P0, formatcard: bool, newcardid: windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProvisionAsyncWithNewCardId)(windows_core::Interface::as_raw(this), response.into_param().abi(), formatcard, newcardid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProvisionAsyncWithNewCardId)(windows_core::Interface::as_raw(this), response.param().abi(), formatcard, newcardid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ChangeAdministrativeKeyAsync(&self, response: P0, newadministrativekey: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ChangeAdministrativeKeyAsync)(windows_core::Interface::as_raw(this), response.into_param().abi(), newadministrativekey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ChangeAdministrativeKeyAsync)(windows_core::Interface::as_raw(this), response.param().abi(), newadministrativekey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1390,12 +1390,12 @@ impl SmartCardConnection { #[cfg(feature = "Storage_Streams")] pub fn TransmitAsync(&self, command: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TransmitAsync)(windows_core::Interface::as_raw(this), command.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TransmitAsync)(windows_core::Interface::as_raw(this), command.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1481,23 +1481,23 @@ impl SmartCardCryptogramGenerator { #[cfg(feature = "Storage_Streams")] pub fn ImportCryptogramMaterialPackageAsync(&self, format: SmartCardCryptogramMaterialPackageFormat, storagekeyname: &windows_core::HSTRING, materialpackagename: &windows_core::HSTRING, cryptogrammaterialpackage: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportCryptogramMaterialPackageAsync)(windows_core::Interface::as_raw(this), format, core::mem::transmute_copy(storagekeyname), core::mem::transmute_copy(materialpackagename), cryptogrammaterialpackage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportCryptogramMaterialPackageAsync)(windows_core::Interface::as_raw(this), format, core::mem::transmute_copy(storagekeyname), core::mem::transmute_copy(materialpackagename), cryptogrammaterialpackage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn TryProvePossessionOfCryptogramMaterialPackageAsync(&self, promptingbehavior: SmartCardUnlockPromptingBehavior, responseformat: SmartCardCryptogramMaterialPackageConfirmationResponseFormat, materialpackagename: &windows_core::HSTRING, materialname: &windows_core::HSTRING, challenge: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryProvePossessionOfCryptogramMaterialPackageAsync)(windows_core::Interface::as_raw(this), promptingbehavior, responseformat, core::mem::transmute_copy(materialpackagename), core::mem::transmute_copy(materialname), challenge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryProvePossessionOfCryptogramMaterialPackageAsync)(windows_core::Interface::as_raw(this), promptingbehavior, responseformat, core::mem::transmute_copy(materialpackagename), core::mem::transmute_copy(materialname), challenge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestUnlockCryptogramMaterialForUseAsync(&self, promptingbehavior: SmartCardUnlockPromptingBehavior) -> windows_core::Result> { @@ -1517,13 +1517,13 @@ impl SmartCardCryptogramGenerator { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn ValidateRequestApduAsync(&self, promptingbehavior: SmartCardUnlockPromptingBehavior, apdutovalidate: P0, cryptogramplacementsteps: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValidateRequestApduAsync)(windows_core::Interface::as_raw(this), promptingbehavior, apdutovalidate.into_param().abi(), cryptogramplacementsteps.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ValidateRequestApduAsync)(windows_core::Interface::as_raw(this), promptingbehavior, apdutovalidate.param().abi(), cryptogramplacementsteps.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAllCryptogramStorageKeyCharacteristicsAsync(&self) -> windows_core::Result> { @@ -1913,10 +1913,10 @@ impl SmartCardCryptogramPlacementStep { #[cfg(feature = "Storage_Streams")] pub fn SetSourceData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSourceData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSourceData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CryptogramMaterialPackageName(&self) -> windows_core::Result { let this = self; @@ -1993,10 +1993,10 @@ impl SmartCardCryptogramPlacementStep { } pub fn SetChainedOutputStep(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetChainedOutputStep)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetChainedOutputStep)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for SmartCardCryptogramPlacementStep { @@ -2156,12 +2156,12 @@ impl SmartCardEmulator { } pub fn ApduReceived(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ApduReceived)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ApduReceived)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveApduReceived(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2170,12 +2170,12 @@ impl SmartCardEmulator { } pub fn ConnectionDeactivated(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionDeactivated)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionDeactivated)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionDeactivated(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2208,20 +2208,20 @@ impl SmartCardEmulator { } pub fn RegisterAppletIdGroupAsync(appletidgroup: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISmartCardEmulatorStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterAppletIdGroupAsync)(windows_core::Interface::as_raw(this), appletidgroup.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterAppletIdGroupAsync)(windows_core::Interface::as_raw(this), appletidgroup.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn UnregisterAppletIdGroupAsync(registration: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISmartCardEmulatorStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnregisterAppletIdGroupAsync)(windows_core::Interface::as_raw(this), registration.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnregisterAppletIdGroupAsync)(windows_core::Interface::as_raw(this), registration.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn MaxAppletIdGroupRegistrations() -> windows_core::Result { @@ -2287,12 +2287,12 @@ impl SmartCardEmulatorApduReceivedEventArgs { #[cfg(feature = "Storage_Streams")] pub fn TryRespondAsync(&self, responseapdu: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryRespondAsync)(windows_core::Interface::as_raw(this), responseapdu.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryRespondAsync)(windows_core::Interface::as_raw(this), responseapdu.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AutomaticResponseStatus(&self) -> windows_core::Result { @@ -2312,38 +2312,38 @@ impl SmartCardEmulatorApduReceivedEventArgs { #[cfg(feature = "Storage_Streams")] pub fn TryRespondWithStateAsync(&self, responseapdu: P0, nextstate: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryRespondWithStateAsync)(windows_core::Interface::as_raw(this), responseapdu.into_param().abi(), nextstate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryRespondWithStateAsync)(windows_core::Interface::as_raw(this), responseapdu.param().abi(), nextstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn TryRespondWithCryptogramsAsync(&self, responsetemplate: P0, cryptogramplacementsteps: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryRespondWithCryptogramsAsync)(windows_core::Interface::as_raw(this), responsetemplate.into_param().abi(), cryptogramplacementsteps.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryRespondWithCryptogramsAsync)(windows_core::Interface::as_raw(this), responsetemplate.param().abi(), cryptogramplacementsteps.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn TryRespondWithCryptogramsAndStateAsync(&self, responsetemplate: P0, cryptogramplacementsteps: P1, nextstate: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryRespondWithCryptogramsAndStateAsync)(windows_core::Interface::as_raw(this), responsetemplate.into_param().abi(), cryptogramplacementsteps.into_param().abi(), nextstate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryRespondWithCryptogramsAndStateAsync)(windows_core::Interface::as_raw(this), responsetemplate.param().abi(), cryptogramplacementsteps.param().abi(), nextstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2566,10 +2566,10 @@ impl SmartCardPinResetRequest { #[cfg(feature = "Storage_Streams")] pub fn SetResponse(&self, response: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetResponse)(windows_core::Interface::as_raw(this), response.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetResponse)(windows_core::Interface::as_raw(this), response.param().abi()).ok() } } } impl windows_core::RuntimeType for SmartCardPinResetRequest { @@ -2626,12 +2626,12 @@ impl SmartCardProvisioning { } pub fn RequestPinResetAsync(&self, handler: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPinResetAsync)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPinResetAsync)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAuthorityKeyContainerNameAsync(&self) -> windows_core::Result> { @@ -2643,64 +2643,64 @@ impl SmartCardProvisioning { } pub fn FromSmartCardAsync(card: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISmartCardProvisioningStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromSmartCardAsync)(windows_core::Interface::as_raw(this), card.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromSmartCardAsync)(windows_core::Interface::as_raw(this), card.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn RequestVirtualSmartCardCreationAsync(friendlyname: &windows_core::HSTRING, administrativekey: P0, pinpolicy: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISmartCardProvisioningStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestVirtualSmartCardCreationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.into_param().abi(), pinpolicy.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestVirtualSmartCardCreationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.param().abi(), pinpolicy.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn RequestVirtualSmartCardCreationAsyncWithCardId(friendlyname: &windows_core::HSTRING, administrativekey: P0, pinpolicy: P1, cardid: windows_core::GUID) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISmartCardProvisioningStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestVirtualSmartCardCreationAsyncWithCardId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.into_param().abi(), pinpolicy.into_param().abi(), cardid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestVirtualSmartCardCreationAsyncWithCardId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.param().abi(), pinpolicy.param().abi(), cardid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestVirtualSmartCardDeletionAsync(card: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISmartCardProvisioningStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestVirtualSmartCardDeletionAsync)(windows_core::Interface::as_raw(this), card.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestVirtualSmartCardDeletionAsync)(windows_core::Interface::as_raw(this), card.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn RequestAttestedVirtualSmartCardCreationAsync(friendlyname: &windows_core::HSTRING, administrativekey: P0, pinpolicy: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISmartCardProvisioningStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAttestedVirtualSmartCardCreationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.into_param().abi(), pinpolicy.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAttestedVirtualSmartCardCreationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.param().abi(), pinpolicy.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn RequestAttestedVirtualSmartCardCreationAsyncWithCardId(friendlyname: &windows_core::HSTRING, administrativekey: P0, pinpolicy: P1, cardid: windows_core::GUID) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISmartCardProvisioningStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAttestedVirtualSmartCardCreationAsyncWithCardId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.into_param().abi(), pinpolicy.into_param().abi(), cardid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAttestedVirtualSmartCardCreationAsyncWithCardId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(friendlyname), administrativekey.param().abi(), pinpolicy.param().abi(), cardid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2769,12 +2769,12 @@ impl SmartCardReader { } pub fn CardAdded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CardAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CardAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCardAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2783,12 +2783,12 @@ impl SmartCardReader { } pub fn CardRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CardRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CardRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCardRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3473,11 +3473,11 @@ impl SmartCardPinResetHandler { } pub fn Invoke(&self, sender: P0, request: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), request.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), request.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index 585e5c052a..15c64b74cb 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -135,23 +135,23 @@ impl ISmsDevice { #[cfg(feature = "deprecated")] pub fn SendMessageAsync(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] pub fn CalculateLength(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -189,12 +189,12 @@ impl ISmsDevice { #[cfg(feature = "deprecated")] pub fn SmsMessageReceived(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SmsMessageReceived)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SmsMessageReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -205,12 +205,12 @@ impl ISmsDevice { #[cfg(feature = "deprecated")] pub fn SmsDeviceStatusChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -928,10 +928,10 @@ windows_core::imp::required_hierarchy!(DeleteSmsMessageOperation, super::super:: impl DeleteSmsMessageOperation { pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result { let this = self; @@ -1030,10 +1030,10 @@ windows_core::imp::required_hierarchy!(DeleteSmsMessagesOperation, super::super: impl DeleteSmsMessagesOperation { pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result { let this = self; @@ -1161,10 +1161,10 @@ impl GetSmsDeviceOperation { } pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; @@ -1266,10 +1266,10 @@ impl GetSmsMessageOperation { } pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; @@ -1372,10 +1372,10 @@ impl GetSmsMessagesOperation { #[cfg(feature = "Foundation_Collections")] pub fn SetProgress(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, i32>>, + P0: windows_core::Param, i32>>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProgress)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProgress)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Progress(&self) -> windows_core::Result, i32>> { @@ -1388,10 +1388,10 @@ impl GetSmsMessagesOperation { #[cfg(feature = "Foundation_Collections")] pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, i32>>, + P0: windows_core::Param, i32>>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Completed(&self) -> windows_core::Result, i32>> { @@ -1466,10 +1466,10 @@ windows_core::imp::required_hierarchy!(SendSmsMessageOperation, super::super::Fo impl SendSmsMessageOperation { pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result { let this = self; @@ -1693,10 +1693,10 @@ impl SmsAppMessage { #[cfg(feature = "Storage_Streams")] pub fn SetBinaryBody(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBinaryBody)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBinaryBody)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MessageType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1958,23 +1958,23 @@ impl SmsDevice { #[cfg(feature = "deprecated")] pub fn SendMessageAsync(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] pub fn CalculateLength(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -2012,12 +2012,12 @@ impl SmsDevice { #[cfg(feature = "deprecated")] pub fn SmsMessageReceived(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SmsMessageReceived)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SmsMessageReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -2028,12 +2028,12 @@ impl SmsDevice { #[cfg(feature = "deprecated")] pub fn SmsDeviceStatusChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -2148,32 +2148,32 @@ impl SmsDevice2 { } pub fn CalculateLength(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).map(|| result__) } } pub fn SendMessageAndGetResultAsync(&self, message: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAndGetResultAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAndGetResultAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeviceStatusChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDeviceStatusChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2592,12 +2592,12 @@ impl SmsMessageRegistration { } pub fn MessageReceived(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageReceived(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2613,11 +2613,11 @@ impl SmsMessageRegistration { } pub fn Register(id: &windows_core::HSTRING, filterrules: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISmsMessageRegistrationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), filterrules.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), filterrules.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2991,11 +2991,11 @@ impl SmsTextMessage { #[cfg(feature = "deprecated")] pub fn FromBinaryMessage(binarymessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISmsTextMessageStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromBinaryMessage)(windows_core::Interface::as_raw(this), binarymessage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromBinaryMessage)(windows_core::Interface::as_raw(this), binarymessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "deprecated")] @@ -3679,10 +3679,10 @@ impl SmsDeviceStatusChangedEventHandler { #[cfg(feature = "deprecated")] pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[cfg(feature = "deprecated")] @@ -3749,11 +3749,11 @@ impl SmsMessageReceivedEventHandler { #[cfg(feature = "deprecated")] pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[cfg(feature = "deprecated")] diff --git a/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs index 99fa51cdb5..58704b6ac2 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs @@ -30,12 +30,12 @@ windows_core::imp::interface_hierarchy!(ISpiControllerProvider, windows_core::IU impl ISpiControllerProvider { pub fn GetDeviceProvider(&self, settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceProvider)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceProvider)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Devices/Spi/mod.rs b/crates/libs/windows/src/Windows/Devices/Spi/mod.rs index 5e53073417..ead4aa93de 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/mod.rs @@ -104,12 +104,12 @@ impl ISpiDeviceStatics { } pub fn FromIdAsync(&self, busid: &windows_core::HSTRING, settings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(busid), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(busid), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -262,12 +262,12 @@ windows_core::imp::interface_hierarchy!(SpiController, windows_core::IUnknown, w impl SpiController { pub fn GetDevice(&self, settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDevice)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDevice)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetDefaultAsync() -> windows_core::Result> { @@ -279,11 +279,11 @@ impl SpiController { #[cfg(all(feature = "Devices_Spi_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpiControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetControllersAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -364,11 +364,11 @@ impl SpiDevice { } pub fn FromIdAsync(busid: &windows_core::HSTRING, settings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpiDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(busid), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(busid), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/Usb/mod.rs b/crates/libs/windows/src/Windows/Devices/Usb/mod.rs index 36538faddd..2e1c3e2934 100644 --- a/crates/libs/windows/src/Windows/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Usb/mod.rs @@ -686,20 +686,20 @@ impl UsbConfigurationDescriptor { } pub fn TryParse(descriptor: P0, parsed: &mut Option) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbConfigurationDescriptorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryParse)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), parsed as *mut _ as _, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryParse)(windows_core::Interface::as_raw(this), descriptor.param().abi(), parsed as *mut _ as _, &mut result__).map(|| result__) }) } pub fn Parse(descriptor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbConfigurationDescriptorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Parse)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Parse)(windows_core::Interface::as_raw(this), descriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -811,10 +811,10 @@ impl UsbDescriptor { #[cfg(feature = "Storage_Streams")] pub fn ReadDescriptorBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReadDescriptorBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReadDescriptorBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } } impl windows_core::RuntimeType for UsbDescriptor { @@ -842,46 +842,46 @@ impl UsbDevice { #[cfg(feature = "Storage_Streams")] pub fn SendControlOutTransferAsync(&self, setuppacket: P0, buffer: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendControlOutTransferAsync)(windows_core::Interface::as_raw(this), setuppacket.into_param().abi(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendControlOutTransferAsync)(windows_core::Interface::as_raw(this), setuppacket.param().abi(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SendControlOutTransferAsyncNoBuffer(&self, setuppacket: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendControlOutTransferAsyncNoBuffer)(windows_core::Interface::as_raw(this), setuppacket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendControlOutTransferAsyncNoBuffer)(windows_core::Interface::as_raw(this), setuppacket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SendControlInTransferAsync(&self, setuppacket: P0, buffer: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendControlInTransferAsync)(windows_core::Interface::as_raw(this), setuppacket.into_param().abi(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendControlInTransferAsync)(windows_core::Interface::as_raw(this), setuppacket.param().abi(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SendControlInTransferAsyncNoBuffer(&self, setuppacket: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendControlInTransferAsyncNoBuffer)(windows_core::Interface::as_raw(this), setuppacket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendControlInTransferAsyncNoBuffer)(windows_core::Interface::as_raw(this), setuppacket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DefaultInterface(&self) -> windows_core::Result { @@ -925,11 +925,11 @@ impl UsbDevice { } pub fn GetDeviceClassSelector(usbclass: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceClassSelector)(windows_core::Interface::as_raw(this), usbclass.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceClassSelector)(windows_core::Interface::as_raw(this), usbclass.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FromIdAsync(deviceid: &windows_core::HSTRING) -> windows_core::Result> { @@ -988,10 +988,10 @@ impl UsbDeviceClass { } pub fn SetSubclassCode(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSubclassCode)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSubclassCode)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProtocolCode(&self) -> windows_core::Result> { let this = self; @@ -1002,10 +1002,10 @@ impl UsbDeviceClass { } pub fn SetProtocolCode(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProtocolCode)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProtocolCode)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for UsbDeviceClass { @@ -1213,20 +1213,20 @@ impl UsbEndpointDescriptor { } pub fn TryParse(descriptor: P0, parsed: &mut Option) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbEndpointDescriptorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryParse)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), parsed as *mut _ as _, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryParse)(windows_core::Interface::as_raw(this), descriptor.param().abi(), parsed as *mut _ as _, &mut result__).map(|| result__) }) } pub fn Parse(descriptor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbEndpointDescriptorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Parse)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Parse)(windows_core::Interface::as_raw(this), descriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1362,20 +1362,20 @@ impl UsbInterfaceDescriptor { } pub fn TryParse(descriptor: P0, parsed: &mut Option) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbInterfaceDescriptorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryParse)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), parsed as *mut _ as _, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryParse)(windows_core::Interface::as_raw(this), descriptor.param().abi(), parsed as *mut _ as _, &mut result__).map(|| result__) }) } pub fn Parse(descriptor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbInterfaceDescriptorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Parse)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Parse)(windows_core::Interface::as_raw(this), descriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1568,12 +1568,12 @@ impl UsbInterruptInPipe { } pub fn DataReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DataReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DataReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDataReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1711,10 +1711,10 @@ impl UsbSetupPacket { } pub fn SetRequestType(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRequestType)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRequestType)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Request(&self) -> windows_core::Result { let this = self; @@ -1763,11 +1763,11 @@ impl UsbSetupPacket { #[cfg(feature = "Storage_Streams")] pub fn CreateWithEightByteBuffer(eightbytebuffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUsbSetupPacketFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithEightByteBuffer)(windows_core::Interface::as_raw(this), eightbytebuffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithEightByteBuffer)(windows_core::Interface::as_raw(this), eightbytebuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs index 15596e793c..3e830d473c 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs @@ -207,12 +207,12 @@ impl WiFiAdapter { } pub fn AvailableNetworksChanged(&self, args: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AvailableNetworksChanged)(windows_core::Interface::as_raw(this), args.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AvailableNetworksChanged)(windows_core::Interface::as_raw(this), args.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAvailableNetworksChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -221,36 +221,36 @@ impl WiFiAdapter { } pub fn ConnectAsync(&self, availablenetwork: P0, reconnectionkind: WiFiReconnectionKind) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), availablenetwork.into_param().abi(), reconnectionkind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), availablenetwork.param().abi(), reconnectionkind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Security_Credentials")] pub fn ConnectWithPasswordCredentialAsync(&self, availablenetwork: P0, reconnectionkind: WiFiReconnectionKind, passwordcredential: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithPasswordCredentialAsync)(windows_core::Interface::as_raw(this), availablenetwork.into_param().abi(), reconnectionkind, passwordcredential.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithPasswordCredentialAsync)(windows_core::Interface::as_raw(this), availablenetwork.param().abi(), reconnectionkind, passwordcredential.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Security_Credentials")] pub fn ConnectWithPasswordCredentialAndSsidAsync(&self, availablenetwork: P0, reconnectionkind: WiFiReconnectionKind, passwordcredential: P1, ssid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithPasswordCredentialAndSsidAsync)(windows_core::Interface::as_raw(this), availablenetwork.into_param().abi(), reconnectionkind, passwordcredential.into_param().abi(), core::mem::transmute_copy(ssid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithPasswordCredentialAndSsidAsync)(windows_core::Interface::as_raw(this), availablenetwork.param().abi(), reconnectionkind, passwordcredential.param().abi(), core::mem::transmute_copy(ssid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Disconnect(&self) -> windows_core::Result<()> { @@ -259,24 +259,24 @@ impl WiFiAdapter { } pub fn GetWpsConfigurationAsync(&self, availablenetwork: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetWpsConfigurationAsync)(windows_core::Interface::as_raw(this), availablenetwork.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetWpsConfigurationAsync)(windows_core::Interface::as_raw(this), availablenetwork.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Security_Credentials")] pub fn ConnectWithPasswordCredentialAndSsidAndConnectionMethodAsync(&self, availablenetwork: P0, reconnectionkind: WiFiReconnectionKind, passwordcredential: P1, ssid: &windows_core::HSTRING, connectionmethod: WiFiConnectionMethod) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithPasswordCredentialAndSsidAndConnectionMethodAsync)(windows_core::Interface::as_raw(this), availablenetwork.into_param().abi(), reconnectionkind, passwordcredential.into_param().abi(), core::mem::transmute_copy(ssid), connectionmethod, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithPasswordCredentialAndSsidAndConnectionMethodAsync)(windows_core::Interface::as_raw(this), availablenetwork.param().abi(), reconnectionkind, passwordcredential.param().abi(), core::mem::transmute_copy(ssid), connectionmethod, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -558,10 +558,10 @@ impl WiFiOnDemandHotspotNetwork { } pub fn UpdateProperties(&self, newproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateProperties)(windows_core::Interface::as_raw(this), newproperties.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateProperties)(windows_core::Interface::as_raw(this), newproperties.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = self; @@ -630,10 +630,10 @@ impl WiFiOnDemandHotspotNetworkProperties { } pub fn SetRemainingBatteryPercent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRemainingBatteryPercent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRemainingBatteryPercent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CellularBars(&self) -> windows_core::Result> { let this = self; @@ -644,10 +644,10 @@ impl WiFiOnDemandHotspotNetworkProperties { } pub fn SetCellularBars(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCellularBars)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCellularBars)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsMetered(&self) -> windows_core::Result { let this = self; @@ -682,10 +682,10 @@ impl WiFiOnDemandHotspotNetworkProperties { #[cfg(feature = "Security_Credentials")] pub fn SetPassword(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPassword)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPassword)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for WiFiOnDemandHotspotNetworkProperties { diff --git a/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs index 50f36518f3..a1113a5f53 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs @@ -260,10 +260,10 @@ impl WiFiDirectService { #[cfg(feature = "Storage_Streams")] pub fn SetSessionInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSessionInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSessionInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ServiceError(&self) -> windows_core::Result { let this = self; @@ -274,12 +274,12 @@ impl WiFiDirectService { } pub fn SessionDeferred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SessionDeferred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SessionDeferred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSessionDeferred(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -316,11 +316,11 @@ impl WiFiDirectService { #[cfg(feature = "Storage_Streams")] pub fn GetSelectorWithFilter(servicename: &windows_core::HSTRING, serviceinfofilter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWiFiDirectServiceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSelectorWithFilter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(servicename), serviceinfofilter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSelectorWithFilter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(servicename), serviceinfofilter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FromIdAsync(deviceid: &windows_core::HSTRING) -> windows_core::Result> { @@ -378,10 +378,10 @@ impl WiFiDirectServiceAdvertiser { #[cfg(feature = "Storage_Streams")] pub fn SetServiceInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServiceInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServiceInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AutoAcceptSession(&self) -> windows_core::Result { let this = self; @@ -446,10 +446,10 @@ impl WiFiDirectServiceAdvertiser { #[cfg(feature = "Storage_Streams")] pub fn SetDeferredSessionInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDeferredSessionInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDeferredSessionInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AdvertisementStatus(&self) -> windows_core::Result { let this = self; @@ -467,12 +467,12 @@ impl WiFiDirectServiceAdvertiser { } pub fn SessionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SessionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SessionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSessionRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -481,12 +481,12 @@ impl WiFiDirectServiceAdvertiser { } pub fn AutoAcceptSessionConnected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutoAcceptSessionConnected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AutoAcceptSessionConnected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAutoAcceptSessionConnected(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -495,12 +495,12 @@ impl WiFiDirectServiceAdvertiser { } pub fn AdvertisementStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AdvertisementStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AdvertisementStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdvertisementStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -510,23 +510,23 @@ impl WiFiDirectServiceAdvertiser { #[cfg(feature = "Devices_Enumeration")] pub fn ConnectAsync(&self, deviceinfo: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), deviceinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), deviceinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Devices_Enumeration")] pub fn ConnectAsyncWithPin(&self, deviceinfo: P0, pin: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsyncWithPin)(windows_core::Interface::as_raw(this), deviceinfo.into_param().abi(), core::mem::transmute_copy(pin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsyncWithPin)(windows_core::Interface::as_raw(this), deviceinfo.param().abi(), core::mem::transmute_copy(pin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Start(&self) -> windows_core::Result<()> { @@ -728,12 +728,12 @@ impl WiFiDirectServiceSession { } pub fn SessionStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SessionStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SessionStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSessionStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -743,33 +743,33 @@ impl WiFiDirectServiceSession { #[cfg(feature = "Networking_Sockets")] pub fn AddStreamSocketListenerAsync(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddStreamSocketListenerAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddStreamSocketListenerAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Networking_Sockets")] pub fn AddDatagramSocketAsync(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddDatagramSocketAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddDatagramSocketAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemotePortAdded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemotePortAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemotePortAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemotePortAdded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs index 325aa08d2a..be6213ea38 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs @@ -238,10 +238,10 @@ impl WiFiDirectAdvertisement { #[cfg(feature = "Foundation_Collections")] pub fn SetInformationElements(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInformationElements)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInformationElements)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ListenStateDiscoverability(&self) -> windows_core::Result { let this = self; @@ -321,12 +321,12 @@ impl WiFiDirectAdvertisementPublisher { } pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -400,12 +400,12 @@ impl WiFiDirectConnectionListener { } pub fn ConnectionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -576,12 +576,12 @@ impl WiFiDirectDevice { } pub fn ConnectionStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -616,11 +616,11 @@ impl WiFiDirectDevice { } pub fn FromIdAsync2(deviceid: &windows_core::HSTRING, connectionparameters: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWiFiDirectDeviceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), connectionparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), connectionparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -669,10 +669,10 @@ impl WiFiDirectInformationElement { #[cfg(feature = "Storage_Streams")] pub fn SetOui(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOui)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOui)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OuiType(&self) -> windows_core::Result { let this = self; @@ -696,29 +696,29 @@ impl WiFiDirectInformationElement { #[cfg(feature = "Storage_Streams")] pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn CreateFromBuffer(buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWiFiDirectInformationElementStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Devices_Enumeration", feature = "Foundation_Collections"))] pub fn CreateFromDeviceInformation(deviceinformation: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWiFiDirectInformationElementStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromDeviceInformation)(windows_core::Interface::as_raw(this), deviceinformation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromDeviceInformation)(windows_core::Interface::as_raw(this), deviceinformation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -777,10 +777,10 @@ impl WiFiDirectLegacySettings { #[cfg(feature = "Security_Credentials")] pub fn SetPassphrase(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPassphrase)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPassphrase)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for WiFiDirectLegacySettings { diff --git a/crates/libs/windows/src/Windows/Devices/mod.rs b/crates/libs/windows/src/Windows/Devices/mod.rs index 4f47a9cc11..5102633bca 100644 --- a/crates/libs/windows/src/Windows/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/mod.rs @@ -206,15 +206,15 @@ impl LowLevelDevicesAggregateProvider { #[cfg(all(feature = "Devices_Adc_Provider", feature = "Devices_Gpio_Provider", feature = "Devices_I2c_Provider", feature = "Devices_Pwm_Provider", feature = "Devices_Spi_Provider"))] pub fn Create(adc: P0, pwm: P1, gpio: P2, i2c: P3, spi: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { Self::ILowLevelDevicesAggregateProviderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), adc.into_param().abi(), pwm.into_param().abi(), gpio.into_param().abi(), i2c.into_param().abi(), spi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), adc.param().abi(), pwm.param().abi(), gpio.param().abi(), i2c.param().abi(), spi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -248,9 +248,9 @@ impl LowLevelDevicesController { } pub fn SetDefaultProvider(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ILowLevelDevicesControllerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetDefaultProvider)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::ILowLevelDevicesControllerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetDefaultProvider)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[doc(hidden)] pub fn ILowLevelDevicesControllerStatics windows_core::Result>(callback: F) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs index 05d8486879..df2a19da0b 100644 --- a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs @@ -167,12 +167,12 @@ impl IMap { pub fn Lookup(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { @@ -184,12 +184,12 @@ impl(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).map(|| result__) } } pub fn GetView(&self) -> windows_core::Result> { @@ -201,21 +201,21 @@ impl(&self, key: P0, value: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key.into_param().abi(), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key.param().abi(), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), key.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), key.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = self; @@ -321,12 +321,12 @@ impl IMapView { pub fn Lookup(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { @@ -338,12 +338,12 @@ impl(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).map(|| result__) } } pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { @@ -410,12 +410,12 @@ impl IObservableMap { pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -431,12 +431,12 @@ impl(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { @@ -448,12 +448,12 @@ impl(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).map(|| result__) } } pub fn GetView(&self) -> windows_core::Result> { @@ -465,21 +465,21 @@ impl(&self, key: P0, value: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key.into_param().abi(), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key.param().abi(), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), key.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), key.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::>(self)?; @@ -535,12 +535,12 @@ impl windows_core::CanInto> f impl IObservableVector { pub fn VectorChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VectorChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VectorChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVectorChanged(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -577,27 +577,27 @@ impl IObservableVector { } pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::>(self)?; @@ -605,10 +605,10 @@ impl IObservableVector { } pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::>(self)?; @@ -702,12 +702,12 @@ impl IPropertySet { } pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -720,12 +720,12 @@ impl IPropertySet { } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -788,27 +788,27 @@ impl IVector { } pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { let this = self; @@ -816,10 +816,10 @@ impl IVector { } pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { let this = self; @@ -961,12 +961,12 @@ impl IVectorView { } pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn GetMany(&self, startindex: u32, items: &mut [>::Default]) -> windows_core::Result { @@ -1085,12 +1085,12 @@ impl PropertySet { } pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -1103,12 +1103,12 @@ impl PropertySet { } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -1207,12 +1207,12 @@ impl StringMap { } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -1296,12 +1296,12 @@ impl ValueSet { } pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -1314,12 +1314,12 @@ impl ValueSet { } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -1386,11 +1386,11 @@ impl(&self, sender: P0, event: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), event.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), event.param().abi()).ok() } } } #[repr(C)] @@ -1470,11 +1470,11 @@ impl VectorChangedEventHandler { } pub fn Invoke(&self, sender: P0, event: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), event.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), event.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs index 0e3e39db5e..8689069230 100644 --- a/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs @@ -70,24 +70,24 @@ impl IFileLoggingSession { } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } #[cfg(feature = "Storage")] pub fn CloseAndSaveToFileAsync(&self) -> windows_core::Result> { @@ -99,12 +99,12 @@ impl IFileLoggingSession { } pub fn LogFileGenerated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LogFileGenerated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LogFileGenerated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLogFileGenerated(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -229,12 +229,12 @@ impl ILoggingChannel { } pub fn LoggingEnabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoggingEnabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LoggingEnabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLoggingEnabled(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -478,34 +478,34 @@ impl ILoggingSession { #[cfg(feature = "Storage")] pub fn SaveToFileAsync(&self, folder: P0, filename: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveToFileAsync)(windows_core::Interface::as_raw(this), folder.into_param().abi(), core::mem::transmute_copy(filename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveToFileAsync)(windows_core::Interface::as_raw(this), folder.param().abi(), core::mem::transmute_copy(filename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -566,25 +566,25 @@ impl ILoggingTarget { } pub fn LogEventWithFields(&self, eventname: &windows_core::HSTRING, fields: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi()).ok() } } pub fn LogEventWithFieldsAndLevel(&self, eventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi(), level).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi(), level).ok() } } pub fn LogEventWithFieldsAndOptions(&self, eventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi(), level, options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi(), level, options.param().abi()).ok() } } pub fn StartActivity(&self, starteventname: &windows_core::HSTRING) -> windows_core::Result { let this = self; @@ -595,33 +595,33 @@ impl ILoggingTarget { } pub fn StartActivityWithFields(&self, starteventname: &windows_core::HSTRING, fields: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StartActivityWithFieldsAndLevel(&self, starteventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StartActivityWithFieldsAndOptions(&self, starteventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), level, options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), level, options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -672,11 +672,11 @@ impl AsyncCausalityTracer { } pub fn TracingStatusChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IAsyncCausalityTracerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TracingStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TracingStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveTracingStatusChanged(cookie: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -760,24 +760,24 @@ impl FileLoggingSession { } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } #[cfg(feature = "Storage")] pub fn CloseAndSaveToFileAsync(&self) -> windows_core::Result> { @@ -789,12 +789,12 @@ impl FileLoggingSession { } pub fn LogFileGenerated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LogFileGenerated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LogFileGenerated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLogFileGenerated(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -888,35 +888,35 @@ impl LoggingActivity { } pub fn StopActivityWithFields(&self, stopeventname: &windows_core::HSTRING, fields: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(stopeventname), fields.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(stopeventname), fields.param().abi()).ok() } } pub fn StopActivityWithFieldsAndOptions(&self, stopeventname: &windows_core::HSTRING, fields: P0, options: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(stopeventname), fields.into_param().abi(), options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(stopeventname), fields.param().abi(), options.param().abi()).ok() } } pub fn CreateLoggingActivity(activityname: &windows_core::HSTRING, loggingchannel: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILoggingActivityFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateLoggingActivity)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activityname), loggingchannel.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateLoggingActivity)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activityname), loggingchannel.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateLoggingActivityWithLevel(activityname: &windows_core::HSTRING, loggingchannel: P0, level: LoggingLevel) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILoggingActivityFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateLoggingActivityWithLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activityname), loggingchannel.into_param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateLoggingActivityWithLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activityname), loggingchannel.param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsEnabled(&self) -> windows_core::Result { @@ -946,25 +946,25 @@ impl LoggingActivity { } pub fn LogEventWithFields(&self, eventname: &windows_core::HSTRING, fields: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi()).ok() } } pub fn LogEventWithFieldsAndLevel(&self, eventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi(), level).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi(), level).ok() } } pub fn LogEventWithFieldsAndOptions(&self, eventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi(), level, options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi(), level, options.param().abi()).ok() } } pub fn StartActivity(&self, starteventname: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -975,33 +975,33 @@ impl LoggingActivity { } pub fn StartActivityWithFields(&self, starteventname: &windows_core::HSTRING, fields: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StartActivityWithFieldsAndLevel(&self, starteventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StartActivityWithFieldsAndOptions(&self, starteventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), level, options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), level, options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] @@ -1071,12 +1071,12 @@ impl LoggingChannel { } pub fn LoggingEnabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoggingEnabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LoggingEnabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLoggingEnabled(&self, token: super::EventRegistrationToken) -> windows_core::Result<()> { @@ -1099,20 +1099,20 @@ impl LoggingChannel { } pub fn CreateWithOptions(name: &windows_core::HSTRING, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILoggingChannelFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithOptionsAndId(name: &windows_core::HSTRING, options: P0, id: windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILoggingChannelFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithOptionsAndId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), options.into_param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithOptionsAndId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), options.param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsEnabled(&self) -> windows_core::Result { @@ -1142,25 +1142,25 @@ impl LoggingChannel { } pub fn LogEventWithFields(&self, eventname: &windows_core::HSTRING, fields: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi()).ok() } } pub fn LogEventWithFieldsAndLevel(&self, eventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi(), level).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi(), level).ok() } } pub fn LogEventWithFieldsAndOptions(&self, eventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.into_param().abi(), level, options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LogEventWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(eventname), fields.param().abi(), level, options.param().abi()).ok() } } pub fn StartActivity(&self, starteventname: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1171,33 +1171,33 @@ impl LoggingChannel { } pub fn StartActivityWithFields(&self, starteventname: &windows_core::HSTRING, fields: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFields)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StartActivityWithFieldsAndLevel(&self, starteventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFieldsAndLevel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StartActivityWithFieldsAndOptions(&self, starteventname: &windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.into_param().abi(), level, options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartActivityWithFieldsAndOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(starteventname), fields.param().abi(), level, options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] @@ -1877,34 +1877,34 @@ impl LoggingSession { #[cfg(feature = "Storage")] pub fn SaveToFileAsync(&self, folder: P0, filename: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveToFileAsync)(windows_core::Interface::as_raw(this), folder.into_param().abi(), core::mem::transmute_copy(filename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveToFileAsync)(windows_core::Interface::as_raw(this), folder.param().abi(), core::mem::transmute_copy(filename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } + unsafe { (windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveLoggingChannel)(windows_core::Interface::as_raw(this), loggingchannel.param().abi()).ok() } } pub fn Create(name: &windows_core::HSTRING) -> windows_core::Result { Self::ILoggingSessionFactory(|this| unsafe { diff --git a/crates/libs/windows/src/Windows/Foundation/mod.rs b/crates/libs/windows/src/Windows/Foundation/mod.rs index 63b641ca27..4410772d40 100644 --- a/crates/libs/windows/src/Windows/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/mod.rs @@ -12,10 +12,10 @@ windows_core::imp::required_hierarchy!(IAsyncAction, IAsyncInfo); impl IAsyncAction { pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result { let this = self; @@ -112,10 +112,10 @@ impl windows_core::CanInto IAsyncActionWithProgress { pub fn SetProgress(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProgress)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProgress)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Progress(&self) -> windows_core::Result> { let this = self; @@ -126,10 +126,10 @@ impl IAsyncActionWithProgress(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; @@ -281,10 +281,10 @@ impl windows_core::CanInto IAsyncOperation { pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; @@ -393,10 +393,10 @@ impl IAsyncOperationWithProgress { pub fn SetProgress(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProgress)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProgress)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Progress(&self) -> windows_core::Result> { let this = self; @@ -407,10 +407,10 @@ impl(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; @@ -619,12 +619,12 @@ impl IMemoryBufferReference { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, cookie: EventRegistrationToken) -> windows_core::Result<()> { @@ -1596,11 +1596,11 @@ impl Deferral { } pub fn Create(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDeferralFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1773,11 +1773,11 @@ impl PropertyValue { } pub fn CreateInspectable(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPropertyValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInspectable)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInspectable)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateGuid(value: windows_core::GUID) -> windows_core::Result { @@ -2071,12 +2071,12 @@ impl Uri { } pub fn Equals(&self, puri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Equals)(windows_core::Interface::as_raw(this), puri.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Equals)(windows_core::Interface::as_raw(this), puri.param().abi(), &mut result__).map(|| result__) } } pub fn CombineUri(&self, relativeuri: &windows_core::HSTRING) -> windows_core::Result { @@ -2169,12 +2169,12 @@ impl WwwFormUrlDecoder { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -2547,10 +2547,10 @@ impl AsyncActionCompletedHandler { } pub fn Invoke(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -2611,11 +2611,11 @@ impl AsyncActionProgressHandler< } pub fn Invoke(&self, asyncinfo: P0, progressinfo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), progressinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.param().abi(), progressinfo.param().abi()).ok() } } } #[repr(C)] @@ -2691,10 +2691,10 @@ impl AsyncActionWithProgressComp } pub fn Invoke(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -2770,10 +2770,10 @@ impl AsyncOperationCompletedHandle } pub fn Invoke(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -2850,11 +2850,11 @@ impl(&self, asyncinfo: P0, progressinfo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), progressinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.param().abi(), progressinfo.param().abi()).ok() } } } #[repr(C)] @@ -2935,10 +2935,10 @@ impl(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), asyncinfo.param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -3075,11 +3075,11 @@ impl EventHandler { } pub fn Invoke(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } } #[repr(C)] @@ -3156,11 +3156,11 @@ impl(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs index 514396fab9..21e0a31539 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs @@ -3,27 +3,27 @@ windows_core::imp::interface_hierarchy!(ICustomGameControllerFactory, windows_co impl ICustomGameControllerFactory { pub fn CreateGameController(&self, provider: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateGameController)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateGameController)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn OnGameControllerAdded(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnGameControllerAdded)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnGameControllerAdded)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OnGameControllerRemoved(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnGameControllerRemoved)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnGameControllerRemoved)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for ICustomGameControllerFactory { @@ -259,30 +259,30 @@ pub struct GameControllerFactoryManager; impl GameControllerFactoryManager { pub fn RegisterCustomFactoryForGipInterface(factory: P0, interfaceid: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IGameControllerFactoryManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RegisterCustomFactoryForGipInterface)(windows_core::Interface::as_raw(this), factory.into_param().abi(), interfaceid).ok() }) + Self::IGameControllerFactoryManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RegisterCustomFactoryForGipInterface)(windows_core::Interface::as_raw(this), factory.param().abi(), interfaceid).ok() }) } pub fn RegisterCustomFactoryForHardwareId(factory: P0, hardwarevendorid: u16, hardwareproductid: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IGameControllerFactoryManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RegisterCustomFactoryForHardwareId)(windows_core::Interface::as_raw(this), factory.into_param().abi(), hardwarevendorid, hardwareproductid).ok() }) + Self::IGameControllerFactoryManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RegisterCustomFactoryForHardwareId)(windows_core::Interface::as_raw(this), factory.param().abi(), hardwarevendorid, hardwareproductid).ok() }) } pub fn RegisterCustomFactoryForXusbType(factory: P0, xusbtype: XusbDeviceType, xusbsubtype: XusbDeviceSubtype) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IGameControllerFactoryManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RegisterCustomFactoryForXusbType)(windows_core::Interface::as_raw(this), factory.into_param().abi(), xusbtype, xusbsubtype).ok() }) + Self::IGameControllerFactoryManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RegisterCustomFactoryForXusbType)(windows_core::Interface::as_raw(this), factory.param().abi(), xusbtype, xusbsubtype).ok() }) } pub fn TryGetFactoryControllerFromGameController(factory: P0, gamecontroller: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IGameControllerFactoryManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetFactoryControllerFromGameController)(windows_core::Interface::as_raw(this), factory.into_param().abi(), gamecontroller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetFactoryControllerFromGameController)(windows_core::Interface::as_raw(this), factory.param().abi(), gamecontroller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -390,12 +390,12 @@ impl GipGameControllerProvider { #[cfg(feature = "Storage_Streams")] pub fn UpdateFirmwareAsync(&self, firmwareimage: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateFirmwareAsync)(windows_core::Interface::as_raw(this), firmwareimage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateFirmwareAsync)(windows_core::Interface::as_raw(this), firmwareimage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs index 9c8cbf9b0e..a9cdc8871a 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs @@ -310,12 +310,12 @@ impl ForceFeedbackMotor { } pub fn LoadEffectAsync(&self, effect: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadEffectAsync)(windows_core::Interface::as_raw(this), effect.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadEffectAsync)(windows_core::Interface::as_raw(this), effect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn PauseAllEffects(&self) -> windows_core::Result<()> { @@ -353,12 +353,12 @@ impl ForceFeedbackMotor { } pub fn TryUnloadEffectAsync(&self, effect: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryUnloadEffectAsync)(windows_core::Interface::as_raw(this), effect.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryUnloadEffectAsync)(windows_core::Interface::as_raw(this), effect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs index 7e475b79ed..31136b5c6a 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs @@ -19,21 +19,21 @@ impl GameControllerProviderInfo { #[cfg(feature = "Gaming_Input_Custom")] pub fn GetParentProviderId(provider: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameControllerProviderInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetParentProviderId)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetParentProviderId)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Gaming_Input_Custom")] pub fn GetProviderId(provider: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameControllerProviderInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetProviderId)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetProviderId)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Gaming/Input/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/mod.rs index 2fbbdb9ecf..5936b1e778 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/mod.rs @@ -72,12 +72,12 @@ windows_core::imp::interface_hierarchy!(IGameController, windows_core::IUnknown, impl IGameController { pub fn HeadsetConnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -86,12 +86,12 @@ impl IGameController { } pub fn HeadsetDisconnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -101,12 +101,12 @@ impl IGameController { #[cfg(feature = "System")] pub fn UserChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -389,11 +389,11 @@ impl ArcadeStick { } pub fn ArcadeStickAdded(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IArcadeStickStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ArcadeStickAdded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ArcadeStickAdded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveArcadeStickAdded(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -401,11 +401,11 @@ impl ArcadeStick { } pub fn ArcadeStickRemoved(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IArcadeStickStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ArcadeStickRemoved)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ArcadeStickRemoved)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveArcadeStickRemoved(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -420,21 +420,21 @@ impl ArcadeStick { } pub fn FromGameController(gamecontroller: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IArcadeStickStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn HeadsetConnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -443,12 +443,12 @@ impl ArcadeStick { } pub fn HeadsetDisconnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -458,12 +458,12 @@ impl ArcadeStick { #[cfg(feature = "System")] pub fn UserChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -552,11 +552,11 @@ impl FlightStick { } pub fn FlightStickAdded(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IFlightStickStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FlightStickAdded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FlightStickAdded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveFlightStickAdded(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -564,11 +564,11 @@ impl FlightStick { } pub fn FlightStickRemoved(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IFlightStickStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FlightStickRemoved)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FlightStickRemoved)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveFlightStickRemoved(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -583,21 +583,21 @@ impl FlightStick { } pub fn FromGameController(gamecontroller: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFlightStickStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn HeadsetConnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -606,12 +606,12 @@ impl FlightStick { } pub fn HeadsetDisconnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -621,12 +621,12 @@ impl FlightStick { #[cfg(feature = "System")] pub fn UserChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -689,12 +689,12 @@ windows_core::imp::required_hierarchy!(Gamepad, IGameController, IGameController impl Gamepad { pub fn HeadsetConnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -703,12 +703,12 @@ impl Gamepad { } pub fn HeadsetDisconnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -718,12 +718,12 @@ impl Gamepad { #[cfg(feature = "System")] pub fn UserChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -787,11 +787,11 @@ impl Gamepad { } pub fn GamepadAdded(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGamepadStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GamepadAdded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GamepadAdded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveGamepadAdded(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -799,11 +799,11 @@ impl Gamepad { } pub fn GamepadRemoved(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGamepadStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GamepadRemoved)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GamepadRemoved)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveGamepadRemoved(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -818,11 +818,11 @@ impl Gamepad { } pub fn FromGameController(gamecontroller: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGamepadStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -897,12 +897,12 @@ windows_core::imp::required_hierarchy!(RacingWheel, IGameController, IGameContro impl RacingWheel { pub fn HeadsetConnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -911,12 +911,12 @@ impl RacingWheel { } pub fn HeadsetDisconnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -926,12 +926,12 @@ impl RacingWheel { #[cfg(feature = "System")] pub fn UserChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1027,11 +1027,11 @@ impl RacingWheel { } pub fn RacingWheelAdded(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IRacingWheelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RacingWheelAdded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RacingWheelAdded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveRacingWheelAdded(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1039,11 +1039,11 @@ impl RacingWheel { } pub fn RacingWheelRemoved(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IRacingWheelStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RacingWheelRemoved)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RacingWheelRemoved)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveRacingWheelRemoved(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1058,11 +1058,11 @@ impl RacingWheel { } pub fn FromGameController(gamecontroller: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRacingWheelStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1096,12 +1096,12 @@ windows_core::imp::required_hierarchy!(RawGameController, IGameController, IGame impl RawGameController { pub fn HeadsetConnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1110,12 +1110,12 @@ impl RawGameController { } pub fn HeadsetDisconnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1125,12 +1125,12 @@ impl RawGameController { #[cfg(feature = "System")] pub fn UserChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1255,11 +1255,11 @@ impl RawGameController { } pub fn RawGameControllerAdded(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IRawGameControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RawGameControllerAdded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RawGameControllerAdded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveRawGameControllerAdded(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1267,11 +1267,11 @@ impl RawGameController { } pub fn RawGameControllerRemoved(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IRawGameControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RawGameControllerRemoved)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RawGameControllerRemoved)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveRawGameControllerRemoved(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1286,11 +1286,11 @@ impl RawGameController { } pub fn FromGameController(gamecontroller: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRawGameControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1319,12 +1319,12 @@ windows_core::imp::required_hierarchy!(UINavigationController, IGameController, impl UINavigationController { pub fn HeadsetConnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetConnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1333,12 +1333,12 @@ impl UINavigationController { } pub fn HeadsetDisconnected(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeadsetDisconnected)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1348,12 +1348,12 @@ impl UINavigationController { #[cfg(feature = "System")] pub fn UserChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1413,11 +1413,11 @@ impl UINavigationController { } pub fn UINavigationControllerAdded(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IUINavigationControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UINavigationControllerAdded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UINavigationControllerAdded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveUINavigationControllerAdded(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1425,11 +1425,11 @@ impl UINavigationController { } pub fn UINavigationControllerRemoved(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IUINavigationControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UINavigationControllerRemoved)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UINavigationControllerRemoved)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveUINavigationControllerRemoved(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1444,11 +1444,11 @@ impl UINavigationController { } pub fn FromGameController(gamecontroller: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUINavigationControllerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromGameController)(windows_core::Interface::as_raw(this), gamecontroller.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs index e3e7c03d59..e5b0a378be 100644 --- a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs @@ -186,11 +186,11 @@ impl GameList { } pub fn GameAdded(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameListStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GameAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GameAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveGameAdded(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -198,11 +198,11 @@ impl GameList { } pub fn GameRemoved(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameListStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GameRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GameRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveGameRemoved(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -210,11 +210,11 @@ impl GameList { } pub fn GameUpdated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameListStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GameUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GameUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveGameUpdated(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -222,22 +222,22 @@ impl GameList { } pub fn MergeEntriesAsync(left: P0, right: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IGameListStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MergeEntriesAsync)(windows_core::Interface::as_raw(this), left.into_param().abi(), right.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MergeEntriesAsync)(windows_core::Interface::as_raw(this), left.param().abi(), right.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn UnmergeEntryAsync(mergedentry: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameListStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnmergeEntryAsync)(windows_core::Interface::as_raw(this), mergedentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnmergeEntryAsync)(windows_core::Interface::as_raw(this), mergedentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -322,23 +322,23 @@ impl GameListEntry { #[cfg(feature = "Storage")] pub fn SetLauncherExecutableFileAsync(&self, executablefile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetLauncherExecutableFileAsync)(windows_core::Interface::as_raw(this), executablefile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetLauncherExecutableFileAsync)(windows_core::Interface::as_raw(this), executablefile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn SetLauncherExecutableFileWithParamsAsync(&self, executablefile: P0, launchparams: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetLauncherExecutableFileWithParamsAsync)(windows_core::Interface::as_raw(this), executablefile.into_param().abi(), core::mem::transmute_copy(launchparams), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetLauncherExecutableFileWithParamsAsync)(windows_core::Interface::as_raw(this), executablefile.param().abi(), core::mem::transmute_copy(launchparams), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TitleId(&self) -> windows_core::Result { @@ -408,10 +408,10 @@ impl GameModeConfiguration { } pub fn SetPercentGpuTimeAllocatedToGame(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPercentGpuTimeAllocatedToGame)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPercentGpuTimeAllocatedToGame)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PercentGpuMemoryAllocatedToGame(&self) -> windows_core::Result> { let this = self; @@ -422,10 +422,10 @@ impl GameModeConfiguration { } pub fn SetPercentGpuMemoryAllocatedToGame(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToGame)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToGame)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PercentGpuMemoryAllocatedToSystemCompositor(&self) -> windows_core::Result> { let this = self; @@ -436,10 +436,10 @@ impl GameModeConfiguration { } pub fn SetPercentGpuMemoryAllocatedToSystemCompositor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToSystemCompositor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToSystemCompositor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxCpuCount(&self) -> windows_core::Result> { let this = self; @@ -450,10 +450,10 @@ impl GameModeConfiguration { } pub fn SetMaxCpuCount(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxCpuCount)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxCpuCount)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CpuExclusivityMaskLow(&self) -> windows_core::Result> { let this = self; @@ -464,10 +464,10 @@ impl GameModeConfiguration { } pub fn SetCpuExclusivityMaskLow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCpuExclusivityMaskLow)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCpuExclusivityMaskLow)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CpuExclusivityMaskHigh(&self) -> windows_core::Result> { let this = self; @@ -478,10 +478,10 @@ impl GameModeConfiguration { } pub fn SetCpuExclusivityMaskHigh(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCpuExclusivityMaskHigh)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCpuExclusivityMaskHigh)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AffinitizeToExclusiveCpus(&self) -> windows_core::Result { let this = self; @@ -605,10 +605,10 @@ impl GameListChangedEventHandler { } pub fn Invoke(&self, game: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), game.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), game.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Gaming/UI/mod.rs b/crates/libs/windows/src/Windows/Gaming/UI/mod.rs index 605e583497..09f2dc7475 100644 --- a/crates/libs/windows/src/Windows/Gaming/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/UI/mod.rs @@ -76,11 +76,11 @@ pub struct GameBar; impl GameBar { pub fn VisibilityChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGameBarStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveVisibilityChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -88,11 +88,11 @@ impl GameBar { } pub fn IsInputRedirectedChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGameBarStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsInputRedirectedChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsInputRedirectedChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveIsInputRedirectedChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -230,12 +230,12 @@ impl GameChatOverlayMessageSource { } pub fn MessageReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -301,10 +301,10 @@ impl GameUIProviderActivatedEventArgs { #[cfg(feature = "Foundation_Collections")] pub fn ReportCompleted(&self, results: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReportCompleted)(windows_core::Interface::as_raw(this), results.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportCompleted)(windows_core::Interface::as_raw(this), results.param().abi()).ok() } } } impl windows_core::RuntimeType for GameUIProviderActivatedEventArgs { diff --git a/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs b/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs index 2ed42c4d23..d374cf56ad 100644 --- a/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs @@ -324,47 +324,47 @@ impl GameSaveContainer { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn SubmitUpdatesAsync(&self, blobstowrite: P0, blobstodelete: P1, displayname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SubmitUpdatesAsync)(windows_core::Interface::as_raw(this), blobstowrite.into_param().abi(), blobstodelete.into_param().abi(), core::mem::transmute_copy(displayname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SubmitUpdatesAsync)(windows_core::Interface::as_raw(this), blobstowrite.param().abi(), blobstodelete.param().abi(), core::mem::transmute_copy(displayname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn ReadAsync(&self, blobstoread: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), blobstoread.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), blobstoread.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetAsync(&self, blobstoread: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAsync)(windows_core::Interface::as_raw(this), blobstoread.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAsync)(windows_core::Interface::as_raw(this), blobstoread.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SubmitPropertySetUpdatesAsync(&self, blobstowrite: P0, blobstodelete: P1, displayname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SubmitPropertySetUpdatesAsync)(windows_core::Interface::as_raw(this), blobstowrite.into_param().abi(), blobstodelete.into_param().abi(), core::mem::transmute_copy(displayname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SubmitPropertySetUpdatesAsync)(windows_core::Interface::as_raw(this), blobstowrite.param().abi(), blobstodelete.param().abi(), core::mem::transmute_copy(displayname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateBlobInfoQuery(&self, blobnameprefix: &windows_core::HSTRING) -> windows_core::Result { @@ -596,21 +596,21 @@ impl GameSaveProvider { #[cfg(feature = "System")] pub fn GetForUserAsync(user: P0, serviceconfigid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameSaveProviderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(serviceconfigid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(serviceconfigid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn GetSyncOnDemandForUserAsync(user: P0, serviceconfigid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameSaveProviderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSyncOnDemandForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(serviceconfigid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSyncOnDemandForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(serviceconfigid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs b/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs index 702bd0fc9a..eaa0ac39a5 100644 --- a/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs @@ -112,12 +112,12 @@ impl CharacterGroupings { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] diff --git a/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs index d726d49f3c..21e2a8fb39 100644 --- a/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs @@ -224,21 +224,21 @@ impl DateTimeFormatter { #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterLanguages(formattemplate: &windows_core::HSTRING, languages: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDateTimeFormatterLanguages)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formattemplate), languages.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDateTimeFormatterLanguages)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formattemplate), languages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterContext(formattemplate: &windows_core::HSTRING, languages: P0, geographicregion: &windows_core::HSTRING, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDateTimeFormatterContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formattemplate), languages.into_param().abi(), core::mem::transmute_copy(geographicregion), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDateTimeFormatterContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formattemplate), languages.param().abi(), core::mem::transmute_copy(geographicregion), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateDateTimeFormatterDate(yearformat: YearFormat, monthformat: MonthFormat, dayformat: DayFormat, dayofweekformat: DayOfWeekFormat) -> windows_core::Result { @@ -256,21 +256,21 @@ impl DateTimeFormatter { #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterDateTimeLanguages(yearformat: YearFormat, monthformat: MonthFormat, dayformat: DayFormat, dayofweekformat: DayOfWeekFormat, hourformat: HourFormat, minuteformat: MinuteFormat, secondformat: SecondFormat, languages: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDateTimeFormatterDateTimeLanguages)(windows_core::Interface::as_raw(this), yearformat, monthformat, dayformat, dayofweekformat, hourformat, minuteformat, secondformat, languages.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDateTimeFormatterDateTimeLanguages)(windows_core::Interface::as_raw(this), yearformat, monthformat, dayformat, dayofweekformat, hourformat, minuteformat, secondformat, languages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterDateTimeContext(yearformat: YearFormat, monthformat: MonthFormat, dayformat: DayFormat, dayofweekformat: DayOfWeekFormat, hourformat: HourFormat, minuteformat: MinuteFormat, secondformat: SecondFormat, languages: P0, geographicregion: &windows_core::HSTRING, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDateTimeFormatterDateTimeContext)(windows_core::Interface::as_raw(this), yearformat, monthformat, dayformat, dayofweekformat, hourformat, minuteformat, secondformat, languages.into_param().abi(), core::mem::transmute_copy(geographicregion), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDateTimeFormatterDateTimeContext)(windows_core::Interface::as_raw(this), yearformat, monthformat, dayformat, dayofweekformat, hourformat, minuteformat, secondformat, languages.param().abi(), core::mem::transmute_copy(geographicregion), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LongDate() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs index 17b8afedbc..172998ce39 100644 --- a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs @@ -347,10 +347,10 @@ impl INumberRounderOption { } pub fn SetNumberRounder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for INumberRounderOption { @@ -516,11 +516,11 @@ impl CurrencyFormatter { #[cfg(feature = "Foundation_Collections")] pub fn CreateCurrencyFormatterCodeContext(currencycode: &windows_core::HSTRING, languages: P0, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICurrencyFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCurrencyFormatterCodeContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(currencycode), languages.into_param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCurrencyFormatterCodeContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(currencycode), languages.param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FormatInt(&self, value: i64) -> windows_core::Result { @@ -679,10 +679,10 @@ impl CurrencyFormatter { } pub fn SetNumberRounder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsZeroSigned(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -740,11 +740,11 @@ impl DecimalFormatter { #[cfg(feature = "Foundation_Collections")] pub fn CreateDecimalFormatter(languages: P0, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDecimalFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDecimalFormatter)(windows_core::Interface::as_raw(this), languages.into_param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDecimalFormatter)(windows_core::Interface::as_raw(this), languages.param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FormatInt(&self, value: i64) -> windows_core::Result { @@ -903,10 +903,10 @@ impl DecimalFormatter { } pub fn SetNumberRounder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsZeroSigned(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1086,11 +1086,11 @@ impl NumeralSystemTranslator { #[cfg(feature = "Foundation_Collections")] pub fn Create(languages: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::INumeralSystemTranslatorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), languages.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), languages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1280,19 +1280,19 @@ impl PercentFormatter { } pub fn SetNumberRounder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn CreatePercentFormatter(languages: P0, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPercentFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePercentFormatter)(windows_core::Interface::as_raw(this), languages.into_param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePercentFormatter)(windows_core::Interface::as_raw(this), languages.param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsZeroSigned(&self) -> windows_core::Result { @@ -1504,19 +1504,19 @@ impl PermilleFormatter { } pub fn SetNumberRounder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn CreatePermilleFormatter(languages: P0, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPermilleFormatterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePermilleFormatter)(windows_core::Interface::as_raw(this), languages.into_param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePermilleFormatter)(windows_core::Interface::as_raw(this), languages.param().abi(), core::mem::transmute_copy(geographicregion), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsZeroSigned(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs index 48b810469c..3e0d1c2e08 100644 --- a/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs @@ -72,22 +72,22 @@ impl PhoneNumberFormatter { } pub fn Format(&self, number: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Format)(windows_core::Interface::as_raw(this), number.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Format)(windows_core::Interface::as_raw(this), number.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FormatWithOutputFormat(&self, number: P0, numberformat: PhoneNumberFormat) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormatWithOutputFormat)(windows_core::Interface::as_raw(this), number.into_param().abi(), numberformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FormatWithOutputFormat)(windows_core::Interface::as_raw(this), number.param().abi(), numberformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FormatPartialString(&self, number: &windows_core::HSTRING) -> windows_core::Result { @@ -207,12 +207,12 @@ impl PhoneNumberInfo { } pub fn CheckNumberMatch(&self, othernumber: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CheckNumberMatch)(windows_core::Interface::as_raw(this), othernumber.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CheckNumberMatch)(windows_core::Interface::as_raw(this), othernumber.param().abi(), &mut result__).map(|| result__) } } pub fn Create(number: &windows_core::HSTRING) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Globalization/mod.rs b/crates/libs/windows/src/Windows/Globalization/mod.rs index 94055d42b1..595f19b9cc 100644 --- a/crates/libs/windows/src/Windows/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/mod.rs @@ -678,11 +678,11 @@ impl ApplicationLanguages { #[cfg(all(feature = "Foundation_Collections", feature = "System"))] pub fn GetLanguagesForUser(user: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IApplicationLanguagesStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetLanguagesForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetLanguagesForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1245,12 +1245,12 @@ impl Calendar { } pub fn Compare(&self, other: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Compare)(windows_core::Interface::as_raw(this), other.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Compare)(windows_core::Interface::as_raw(this), other.param().abi(), &mut result__).map(|| result__) } } pub fn CompareDateTime(&self, other: super::Foundation::DateTime) -> windows_core::Result { @@ -1262,10 +1262,10 @@ impl Calendar { } pub fn CopyTo(&self, other: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CopyTo)(windows_core::Interface::as_raw(this), other.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CopyTo)(windows_core::Interface::as_raw(this), other.param().abi()).ok() } } pub fn FirstMinuteInThisHour(&self) -> windows_core::Result { let this = self; @@ -1326,31 +1326,31 @@ impl Calendar { #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendarDefaultCalendarAndClock(languages: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)(windows_core::Interface::as_raw(this), languages.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)(windows_core::Interface::as_raw(this), languages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendar(languages: P0, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCalendar)(windows_core::Interface::as_raw(this), languages.into_param().abi(), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCalendar)(windows_core::Interface::as_raw(this), languages.param().abi(), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendarWithTimeZone(languages: P0, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING, timezoneid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICalendarFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCalendarWithTimeZone)(windows_core::Interface::as_raw(this), languages.into_param().abi(), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), core::mem::transmute_copy(timezoneid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCalendarWithTimeZone)(windows_core::Interface::as_raw(this), languages.param().abi(), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), core::mem::transmute_copy(timezoneid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetTimeZone(&self) -> windows_core::Result { @@ -2812,11 +2812,11 @@ impl Language { #[cfg(feature = "Foundation_Collections")] pub fn GetMuiCompatibleLanguageListFromLanguageTags(languagetags: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ILanguageStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMuiCompatibleLanguageListFromLanguageTags)(windows_core::Interface::as_raw(this), languagetags.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMuiCompatibleLanguageListFromLanguageTags)(windows_core::Interface::as_raw(this), languagetags.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs b/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs index c6d04eb265..90944788fc 100644 --- a/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs @@ -210,10 +210,10 @@ impl Direct3D11CaptureFramePool { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn Recreate(&self, device: P0, pixelformat: super::DirectX::DirectXPixelFormat, numberofbuffers: i32, size: super::SizeInt32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Recreate)(windows_core::Interface::as_raw(this), device.into_param().abi(), pixelformat, numberofbuffers, size).ok() } + unsafe { (windows_core::Interface::vtable(this).Recreate)(windows_core::Interface::as_raw(this), device.param().abi(), pixelformat, numberofbuffers, size).ok() } } pub fn TryGetNextFrame(&self) -> windows_core::Result { let this = self; @@ -224,12 +224,12 @@ impl Direct3D11CaptureFramePool { } pub fn FrameArrived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameArrived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -238,12 +238,12 @@ impl Direct3D11CaptureFramePool { } pub fn CreateCaptureSession(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCaptureSession)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCaptureSession)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "System")] @@ -257,21 +257,21 @@ impl Direct3D11CaptureFramePool { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn Create(device: P0, pixelformat: super::DirectX::DirectXPixelFormat, numberofbuffers: i32, size: super::SizeInt32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDirect3D11CaptureFramePoolStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), device.into_param().abi(), pixelformat, numberofbuffers, size, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), device.param().abi(), pixelformat, numberofbuffers, size, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateFreeThreaded(device: P0, pixelformat: super::DirectX::DirectXPixelFormat, numberofbuffers: i32, size: super::SizeInt32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDirect3D11CaptureFramePoolStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFreeThreaded)(windows_core::Interface::as_raw(this), device.into_param().abi(), pixelformat, numberofbuffers, size, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFreeThreaded)(windows_core::Interface::as_raw(this), device.param().abi(), pixelformat, numberofbuffers, size, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -336,12 +336,12 @@ impl GraphicsCaptureItem { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -351,11 +351,11 @@ impl GraphicsCaptureItem { #[cfg(feature = "UI_Composition")] pub fn CreateFromVisual(visual: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGraphicsCaptureItemStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromVisual)(windows_core::Interface::as_raw(this), visual.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromVisual)(windows_core::Interface::as_raw(this), visual.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "UI")] diff --git a/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs index 87c612505e..f78ea96d84 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs @@ -83,42 +83,42 @@ impl HdmiDisplayInformation { } pub fn RequestSetCurrentDisplayModeAsync(&self, mode: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestSetCurrentDisplayModeAsync)(windows_core::Interface::as_raw(this), mode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestSetCurrentDisplayModeAsync)(windows_core::Interface::as_raw(this), mode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestSetCurrentDisplayModeWithHdrAsync(&self, mode: P0, hdroption: HdmiDisplayHdrOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestSetCurrentDisplayModeWithHdrAsync)(windows_core::Interface::as_raw(this), mode.into_param().abi(), hdroption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestSetCurrentDisplayModeWithHdrAsync)(windows_core::Interface::as_raw(this), mode.param().abi(), hdroption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestSetCurrentDisplayModeWithHdrAndMetadataAsync(&self, mode: P0, hdroption: HdmiDisplayHdrOption, hdrmetadata: HdmiDisplayHdr2086Metadata) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestSetCurrentDisplayModeWithHdrAndMetadataAsync)(windows_core::Interface::as_raw(this), mode.into_param().abi(), hdroption, hdrmetadata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestSetCurrentDisplayModeWithHdrAndMetadataAsync)(windows_core::Interface::as_raw(this), mode.param().abi(), hdroption, hdrmetadata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DisplayModesChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisplayModesChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DisplayModesChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisplayModesChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -191,12 +191,12 @@ impl HdmiDisplayMode { } pub fn IsEqual(&self, mode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), mode.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), mode.param().abi(), &mut result__).map(|| result__) } } pub fn ColorSpace(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs index cce5a0f2b3..a54a20754c 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs @@ -471,12 +471,12 @@ impl BrightnessOverride { } pub fn IsSupportedChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsSupportedChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsSupportedChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsSupportedChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -485,12 +485,12 @@ impl BrightnessOverride { } pub fn IsOverrideActiveChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsOverrideActiveChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsOverrideActiveChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsOverrideActiveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -499,12 +499,12 @@ impl BrightnessOverride { } pub fn BrightnessLevelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BrightnessLevelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BrightnessLevelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBrightnessLevelChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -525,11 +525,11 @@ impl BrightnessOverride { } pub fn SaveForSystemAsync(value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBrightnessOverrideStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveForSystemAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveForSystemAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -655,10 +655,10 @@ impl DisplayEnhancementOverride { } pub fn SetColorOverrideSettings(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetColorOverrideSettings)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetColorOverrideSettings)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn BrightnessOverrideSettings(&self) -> windows_core::Result { let this = self; @@ -669,10 +669,10 @@ impl DisplayEnhancementOverride { } pub fn SetBrightnessOverrideSettings(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBrightnessOverrideSettings)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBrightnessOverrideSettings)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CanOverride(&self) -> windows_core::Result { let this = self; @@ -705,12 +705,12 @@ impl DisplayEnhancementOverride { } pub fn CanOverrideChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanOverrideChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CanOverrideChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCanOverrideChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -719,12 +719,12 @@ impl DisplayEnhancementOverride { } pub fn IsOverrideActiveChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsOverrideActiveChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsOverrideActiveChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsOverrideActiveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -733,12 +733,12 @@ impl DisplayEnhancementOverride { } pub fn DisplayEnhancementOverrideCapabilitiesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisplayEnhancementOverrideCapabilitiesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DisplayEnhancementOverrideCapabilitiesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisplayEnhancementOverrideCapabilitiesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -855,12 +855,12 @@ impl DisplayInformation { } pub fn OrientationChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OrientationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OrientationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOrientationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -897,12 +897,12 @@ impl DisplayInformation { } pub fn DpiChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DpiChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DpiChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDpiChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -918,12 +918,12 @@ impl DisplayInformation { } pub fn StereoEnabledChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StereoEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StereoEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStereoEnabledChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -940,12 +940,12 @@ impl DisplayInformation { } pub fn ColorProfileChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ColorProfileChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ColorProfileChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveColorProfileChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -989,12 +989,12 @@ impl DisplayInformation { } pub fn AdvancedColorInfoChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AdvancedColorInfoChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AdvancedColorInfoChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdvancedColorInfoChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1018,11 +1018,11 @@ impl DisplayInformation { } pub fn DisplayContentsInvalidated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IDisplayInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisplayContentsInvalidated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DisplayContentsInvalidated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveDisplayContentsInvalidated(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1078,11 +1078,11 @@ impl DisplayProperties { #[cfg(feature = "deprecated")] pub fn OrientationChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OrientationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OrientationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1106,11 +1106,11 @@ impl DisplayProperties { #[cfg(feature = "deprecated")] pub fn LogicalDpiChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LogicalDpiChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LogicalDpiChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1127,11 +1127,11 @@ impl DisplayProperties { #[cfg(feature = "deprecated")] pub fn StereoEnabledChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StereoEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StereoEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1148,11 +1148,11 @@ impl DisplayProperties { #[cfg(feature = "deprecated")] pub fn ColorProfileChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ColorProfileChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ColorProfileChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1162,11 +1162,11 @@ impl DisplayProperties { #[cfg(feature = "deprecated")] pub fn DisplayContentsInvalidated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisplayContentsInvalidated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DisplayContentsInvalidated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1489,10 +1489,10 @@ impl DisplayPropertiesEventHandler { #[cfg(feature = "deprecated")] pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[cfg(feature = "deprecated")] diff --git a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs index 0128d15eca..a9f59d80d3 100644 --- a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs @@ -737,12 +737,12 @@ impl HolographicCameraPose { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn TryGetViewTransform(&self, coordinatesystem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetViewTransform)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetViewTransform)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Numerics")] @@ -756,23 +756,23 @@ impl HolographicCameraPose { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn TryGetCullingFrustum(&self, coordinatesystem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetCullingFrustum)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetCullingFrustum)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn TryGetVisibleFrustum(&self, coordinatesystem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetVisibleFrustum)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetVisibleFrustum)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn NearPlaneDistance(&self) -> windows_core::Result { @@ -792,10 +792,10 @@ impl HolographicCameraPose { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn OverrideViewTransform(&self, coordinatesystem: P0, coordinatesystemtoviewtransform: HolographicStereoTransform) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).OverrideViewTransform)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), coordinatesystemtoviewtransform).ok() } + unsafe { (windows_core::Interface::vtable(this).OverrideViewTransform)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), coordinatesystemtoviewtransform).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn OverrideProjectionTransform(&self, projectiontransform: HolographicStereoTransform) -> windows_core::Result<()> { @@ -827,26 +827,26 @@ impl HolographicCameraRenderingParameters { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetFocusPoint(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFocusPoint)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), position).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFocusPoint)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position).ok() } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetFocusPointWithNormal(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, normal: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFocusPointWithNormal)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), position, normal).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFocusPointWithNormal)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position, normal).ok() } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetFocusPointWithNormalLinearVelocity(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, normal: super::super::Foundation::Numerics::Vector3, linearvelocity: super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFocusPointWithNormalLinearVelocity)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), position, normal, linearvelocity).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFocusPointWithNormalLinearVelocity)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position, normal, linearvelocity).ok() } } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn Direct3D11Device(&self) -> windows_core::Result { @@ -878,10 +878,10 @@ impl HolographicCameraRenderingParameters { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CommitDirect3D11DepthBuffer(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).CommitDirect3D11DepthBuffer)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CommitDirect3D11DepthBuffer)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsContentProtectionEnabled(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1061,12 +1061,12 @@ impl HolographicFrame { } pub fn GetRenderingParameters(&self, camerapose: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetRenderingParameters)(windows_core::Interface::as_raw(this), camerapose.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetRenderingParameters)(windows_core::Interface::as_raw(this), camerapose.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Duration(&self) -> windows_core::Result { @@ -1107,12 +1107,12 @@ impl HolographicFrame { } pub fn GetQuadLayerUpdateParameters(&self, layer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetQuadLayerUpdateParameters)(windows_core::Interface::as_raw(this), layer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetQuadLayerUpdateParameters)(windows_core::Interface::as_raw(this), layer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Id(&self) -> windows_core::Result { @@ -1497,10 +1497,10 @@ impl HolographicQuadLayerUpdateParameters { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn UpdateLocationWithStationaryMode(&self, coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateLocationWithStationaryMode)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), position, orientation).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateLocationWithStationaryMode)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position, orientation).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn UpdateLocationWithDisplayRelativeMode(&self, position: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result<()> { @@ -1550,19 +1550,19 @@ impl HolographicSpace { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn SetDirect3D11Device(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDirect3D11Device)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDirect3D11Device)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CameraAdded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CameraAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CameraAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCameraAdded(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1571,12 +1571,12 @@ impl HolographicSpace { } pub fn CameraRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CameraRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CameraRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCameraRemoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1599,12 +1599,12 @@ impl HolographicSpace { } pub fn UserPresenceChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserPresenceChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserPresenceChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserPresenceChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1637,11 +1637,11 @@ impl HolographicSpace { #[cfg(feature = "UI_Core")] pub fn CreateForCoreWindow(window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHolographicSpaceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForCoreWindow)(windows_core::Interface::as_raw(this), window.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForCoreWindow)(windows_core::Interface::as_raw(this), window.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsSupported() -> windows_core::Result { @@ -1658,11 +1658,11 @@ impl HolographicSpace { } pub fn IsAvailableChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IHolographicSpaceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsAvailableChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsAvailableChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveIsAvailableChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs b/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs index ffa5647c6e..c759a1fd3c 100644 --- a/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs @@ -236,12 +236,12 @@ impl IBitmapFrame { } pub fn GetPixelDataTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: P0, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.into_param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -287,12 +287,12 @@ impl IBitmapFrameWithSoftwareBitmap { } pub fn GetSoftwareBitmapTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: P0, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSoftwareBitmapTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.into_param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSoftwareBitmapTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -375,12 +375,12 @@ impl IBitmapFrameWithSoftwareBitmap { } pub fn GetPixelDataTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: P0, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.into_param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -412,12 +412,12 @@ impl IBitmapPropertiesView { #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -731,21 +731,21 @@ impl BitmapDecoder { #[cfg(feature = "Storage_Streams")] pub fn CreateAsync(stream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBitmapDecoderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateWithIdAsync(decoderid: windows_core::GUID, stream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBitmapDecoderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithIdAsync)(windows_core::Interface::as_raw(this), decoderid, stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithIdAsync)(windows_core::Interface::as_raw(this), decoderid, stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn HeifDecoderId() -> windows_core::Result { @@ -840,12 +840,12 @@ impl BitmapDecoder { } pub fn GetPixelDataTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: P0, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.into_param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetSoftwareBitmapAsync(&self) -> windows_core::Result> { @@ -864,12 +864,12 @@ impl BitmapDecoder { } pub fn GetSoftwareBitmapTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: P0, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSoftwareBitmapTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.into_param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSoftwareBitmapTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] @@ -975,12 +975,12 @@ impl BitmapEncoder { #[cfg(feature = "Foundation_Collections")] pub fn GoToNextFrameWithEncodingOptionsAsync(&self, encodingoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GoToNextFrameWithEncodingOptionsAsync)(windows_core::Interface::as_raw(this), encodingoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GoToNextFrameWithEncodingOptionsAsync)(windows_core::Interface::as_raw(this), encodingoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result { @@ -1036,42 +1036,42 @@ impl BitmapEncoder { #[cfg(feature = "Storage_Streams")] pub fn CreateAsync(encoderid: windows_core::GUID, stream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), encoderid, stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), encoderid, stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn CreateWithEncodingOptionsAsync(encoderid: windows_core::GUID, stream: P0, encodingoptions: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>>, + P0: windows_core::Param, + P1: windows_core::Param>>, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithEncodingOptionsAsync)(windows_core::Interface::as_raw(this), encoderid, stream.into_param().abi(), encodingoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithEncodingOptionsAsync)(windows_core::Interface::as_raw(this), encoderid, stream.param().abi(), encodingoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateForTranscodingAsync(stream: P0, bitmapdecoder: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForTranscodingAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), bitmapdecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForTranscodingAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), bitmapdecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateForInPlacePropertyEncodingAsync(bitmapdecoder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForInPlacePropertyEncodingAsync)(windows_core::Interface::as_raw(this), bitmapdecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForInPlacePropertyEncodingAsync)(windows_core::Interface::as_raw(this), bitmapdecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn HeifEncoderId() -> windows_core::Result { @@ -1082,10 +1082,10 @@ impl BitmapEncoder { } pub fn SetSoftwareBitmap(&self, bitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSoftwareBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSoftwareBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi()).ok() } } #[doc(hidden)] pub fn IBitmapEncoderStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -1196,12 +1196,12 @@ impl BitmapFrame { } pub fn GetPixelDataTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: P0, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.into_param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPixelDataTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetSoftwareBitmapAsync(&self) -> windows_core::Result> { @@ -1220,12 +1220,12 @@ impl BitmapFrame { } pub fn GetSoftwareBitmapTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: P0, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSoftwareBitmapTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.into_param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSoftwareBitmapTransformedAsync)(windows_core::Interface::as_raw(this), pixelformat, alphamode, transform.param().abi(), exiforientationmode, colormanagementmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1250,23 +1250,23 @@ impl BitmapProperties { #[cfg(feature = "Foundation_Collections")] pub fn SetPropertiesAsync(&self, propertiestoset: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1291,12 +1291,12 @@ impl BitmapPropertiesView { #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1372,12 +1372,12 @@ impl BitmapPropertySet { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -1536,11 +1536,11 @@ impl BitmapTypedValue { } pub fn Create(value: P0, r#type: super::super::Foundation::PropertyType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBitmapTypedValueFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), value.into_param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), value.param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1586,23 +1586,23 @@ impl ImageStream { #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, buffer: P0, count: u32, options: super::super::Storage::Streams::InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -1798,26 +1798,26 @@ impl SoftwareBitmap { } pub fn CopyTo(&self, bitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CopyTo)(windows_core::Interface::as_raw(this), bitmap.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CopyTo)(windows_core::Interface::as_raw(this), bitmap.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn CopyFromBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CopyFromBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CopyFromBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn CopyToBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CopyToBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CopyToBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } pub fn GetReadOnlyView(&self) -> windows_core::Result { let this = self; @@ -1840,69 +1840,69 @@ impl SoftwareBitmap { } pub fn Copy(source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Copy)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Copy)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Convert(source: P0, format: BitmapPixelFormat) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Convert)(windows_core::Interface::as_raw(this), source.into_param().abi(), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Convert)(windows_core::Interface::as_raw(this), source.param().abi(), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ConvertWithAlpha(source: P0, format: BitmapPixelFormat, alpha: BitmapAlphaMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertWithAlpha)(windows_core::Interface::as_raw(this), source.into_param().abi(), format, alpha, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertWithAlpha)(windows_core::Interface::as_raw(this), source.param().abi(), format, alpha, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateCopyFromBuffer(source: P0, format: BitmapPixelFormat, width: i32, height: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCopyFromBuffer)(windows_core::Interface::as_raw(this), source.into_param().abi(), format, width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCopyFromBuffer)(windows_core::Interface::as_raw(this), source.param().abi(), format, width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateCopyWithAlphaFromBuffer(source: P0, format: BitmapPixelFormat, width: i32, height: i32, alpha: BitmapAlphaMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCopyWithAlphaFromBuffer)(windows_core::Interface::as_raw(this), source.into_param().abi(), format, width, height, alpha, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCopyWithAlphaFromBuffer)(windows_core::Interface::as_raw(this), source.param().abi(), format, width, height, alpha, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateCopyFromSurfaceAsync(surface: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCopyFromSurfaceAsync)(windows_core::Interface::as_raw(this), surface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCopyFromSurfaceAsync)(windows_core::Interface::as_raw(this), surface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateCopyWithAlphaFromSurfaceAsync(surface: P0, alpha: BitmapAlphaMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCopyWithAlphaFromSurfaceAsync)(windows_core::Interface::as_raw(this), surface.into_param().abi(), alpha, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCopyWithAlphaFromSurfaceAsync)(windows_core::Interface::as_raw(this), surface.param().abi(), alpha, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs index 4089ed90f3..d5e4cfea5f 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs @@ -162,12 +162,12 @@ impl IPrintCustomOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -295,12 +295,12 @@ impl IPrintItemListOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -402,12 +402,12 @@ impl IPrintNumberOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -468,12 +468,12 @@ impl IPrintOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -641,12 +641,12 @@ impl IPrintTextOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -739,12 +739,12 @@ impl PrintBindingOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -841,12 +841,12 @@ impl PrintBorderingOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -943,12 +943,12 @@ impl PrintCollationOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1045,12 +1045,12 @@ impl PrintColorModeOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1153,12 +1153,12 @@ impl PrintCopiesOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1223,10 +1223,10 @@ impl PrintCustomItemListOptionDetails { #[cfg(feature = "Storage_Streams")] pub fn AddItem2(&self, itemid: &windows_core::HSTRING, displayname: &windows_core::HSTRING, description: &windows_core::HSTRING, icon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddItem)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(itemid), core::mem::transmute_copy(displayname), core::mem::transmute_copy(description), icon.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddItem)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(itemid), core::mem::transmute_copy(displayname), core::mem::transmute_copy(description), icon.param().abi()).ok() } } pub fn SetWarningText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1314,12 +1314,12 @@ impl PrintCustomItemListOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1430,12 +1430,12 @@ impl PrintCustomTextOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1535,12 +1535,12 @@ impl PrintCustomToggleOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1637,12 +1637,12 @@ impl PrintDuplexOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1739,12 +1739,12 @@ impl PrintHolePunchOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1841,12 +1841,12 @@ impl PrintMediaSizeOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -1943,12 +1943,12 @@ impl PrintMediaTypeOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } } @@ -2023,12 +2023,12 @@ impl PrintOrientationOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn SetWarningText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -2117,12 +2117,12 @@ impl PrintPageRangeOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn SetWarningText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -2219,12 +2219,12 @@ impl PrintQualityOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn SetWarningText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -2321,12 +2321,12 @@ impl PrintStapleOptionDetails { } pub fn TrySetValue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetValue)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn SetWarningText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -2419,12 +2419,12 @@ impl PrintTaskOptionDetails { } pub fn OptionChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OptionChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OptionChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOptionChanged(&self, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2433,12 +2433,12 @@ impl PrintTaskOptionDetails { } pub fn BeginValidation(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BeginValidation)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BeginValidation)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBeginValidation(&self, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2454,11 +2454,11 @@ impl PrintTaskOptionDetails { } pub fn GetFromPrintTaskOptions(printtaskoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPrintTaskOptionDetailsStatic(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFromPrintTaskOptions)(windows_core::Interface::as_raw(this), printtaskoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFromPrintTaskOptions)(windows_core::Interface::as_raw(this), printtaskoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetPageDescription(&self, jobpagenumber: u32) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs index 05c3321a8f..e19b328075 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs @@ -211,12 +211,12 @@ impl PrintSupportExtensionSession { } pub fn PrintTicketValidationRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrintTicketValidationRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrintTicketValidationRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrintTicketValidationRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -225,12 +225,12 @@ impl PrintSupportExtensionSession { } pub fn PrintDeviceCapabilitiesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrintDeviceCapabilitiesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrintDeviceCapabilitiesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrintDeviceCapabilitiesChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -243,12 +243,12 @@ impl PrintSupportExtensionSession { } pub fn PrinterSelected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrinterSelected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrinterSelected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrinterSelected(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -309,10 +309,10 @@ impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { #[cfg(feature = "Data_Xml_Dom")] pub fn UpdatePrintDeviceCapabilities(&self, updatedpdc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdatePrintDeviceCapabilities)(windows_core::Interface::as_raw(this), updatedpdc.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdatePrintDeviceCapabilities)(windows_core::Interface::as_raw(this), updatedpdc.param().abi()).ok() } } pub fn GetDeferral(&self) -> windows_core::Result { let this = self; @@ -324,10 +324,10 @@ impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { #[cfg(feature = "Foundation_Collections")] pub fn SetSupportedPdlPassthroughContentTypes(&self, supportedpdlcontenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSupportedPdlPassthroughContentTypes)(windows_core::Interface::as_raw(this), supportedpdlcontenttypes.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSupportedPdlPassthroughContentTypes)(windows_core::Interface::as_raw(this), supportedpdlcontenttypes.param().abi()).ok() } } pub fn ResourceLanguage(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -347,17 +347,17 @@ impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { #[cfg(feature = "Data_Xml_Dom")] pub fn UpdatePrintDeviceResources(&self, updatedpdr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).UpdatePrintDeviceResources)(windows_core::Interface::as_raw(this), updatedpdr.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdatePrintDeviceResources)(windows_core::Interface::as_raw(this), updatedpdr.param().abi()).ok() } } pub fn SetPrintDeviceCapabilitiesUpdatePolicy(&self, updatepolicy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPrintDeviceCapabilitiesUpdatePolicy)(windows_core::Interface::as_raw(this), updatepolicy.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrintDeviceCapabilitiesUpdatePolicy)(windows_core::Interface::as_raw(this), updatepolicy.param().abi()).ok() } } } impl windows_core::RuntimeType for PrintSupportPrintDeviceCapabilitiesChangedEventArgs { @@ -515,26 +515,26 @@ impl PrintSupportPrinterSelectedEventArgs { #[cfg(feature = "Graphics_Printing_PrintTicket")] pub fn SetPrintTicket(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPrintTicket)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrintTicket)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalFeatures(&self, features: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAdditionalFeatures)(windows_core::Interface::as_raw(this), features.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdditionalFeatures)(windows_core::Interface::as_raw(this), features.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalParameters(&self, parameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAdditionalParameters)(windows_core::Interface::as_raw(this), parameters.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdditionalParameters)(windows_core::Interface::as_raw(this), parameters.param().abi()).ok() } } pub fn AllowedAdditionalFeaturesAndParametersCount(&self) -> windows_core::Result { let this = self; @@ -546,10 +546,10 @@ impl PrintSupportPrinterSelectedEventArgs { #[cfg(feature = "UI_Shell")] pub fn SetAdaptiveCard(&self, adaptivecard: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAdaptiveCard)(windows_core::Interface::as_raw(this), adaptivecard.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdaptiveCard)(windows_core::Interface::as_raw(this), adaptivecard.param().abi()).ok() } } pub fn GetDeferral(&self) -> windows_core::Result { let this = self; @@ -701,10 +701,10 @@ impl PrintSupportSettingsUISession { #[cfg(feature = "Graphics_Printing_PrintTicket")] pub fn UpdatePrintTicket(&self, printticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdatePrintTicket)(windows_core::Interface::as_raw(this), printticket.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdatePrintTicket)(windows_core::Interface::as_raw(this), printticket.param().abi()).ok() } } pub fn SessionInfo(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs index 84e442edeb..38f101eaa9 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs @@ -386,10 +386,10 @@ impl PrintTicketFeature { } pub fn SetSelectedOption(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSelectedOption)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSelectedOption)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectionType(&self) -> windows_core::Result { let this = self; @@ -585,10 +585,10 @@ impl PrintTicketParameterInitializer { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Value(&self) -> windows_core::Result { let this = self; @@ -832,12 +832,12 @@ impl WorkflowPrintTicket { } pub fn MergeAndValidateTicket(&self, deltashematicket: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MergeAndValidateTicket)(windows_core::Interface::as_raw(this), deltashematicket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MergeAndValidateTicket)(windows_core::Interface::as_raw(this), deltashematicket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs index d27babe569..8009335ffa 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs @@ -432,12 +432,12 @@ windows_core::imp::interface_hierarchy!(PrintWorkflowBackgroundSession, windows_ impl PrintWorkflowBackgroundSession { pub fn SetupRequested(&self, setupeventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetupRequested)(windows_core::Interface::as_raw(this), setupeventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetupRequested)(windows_core::Interface::as_raw(this), setupeventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSetupRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -446,12 +446,12 @@ impl PrintWorkflowBackgroundSession { } pub fn Submitted(&self, submittedeventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Submitted)(windows_core::Interface::as_raw(this), submittedeventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Submitted)(windows_core::Interface::as_raw(this), submittedeventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSubmitted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -576,12 +576,12 @@ windows_core::imp::interface_hierarchy!(PrintWorkflowForegroundSession, windows_ impl PrintWorkflowForegroundSession { pub fn SetupRequested(&self, setupeventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetupRequested)(windows_core::Interface::as_raw(this), setupeventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetupRequested)(windows_core::Interface::as_raw(this), setupeventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSetupRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -590,12 +590,12 @@ impl PrintWorkflowForegroundSession { } pub fn XpsDataAvailable(&self, xpsdataavailableeventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).XpsDataAvailable)(windows_core::Interface::as_raw(this), xpsdataavailableeventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).XpsDataAvailable)(windows_core::Interface::as_raw(this), xpsdataavailableeventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveXpsDataAvailable(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -739,12 +739,12 @@ impl PrintWorkflowJobBackgroundSession { } pub fn JobStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).JobStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).JobStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveJobStarting(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -753,12 +753,12 @@ impl PrintWorkflowJobBackgroundSession { } pub fn PdlModificationRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PdlModificationRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PdlModificationRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePdlModificationRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -904,12 +904,12 @@ impl PrintWorkflowJobUISession { } pub fn PdlDataAvailable(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PdlDataAvailable)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PdlDataAvailable)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePdlDataAvailable(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -918,12 +918,12 @@ impl PrintWorkflowJobUISession { } pub fn JobNotification(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).JobNotification)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).JobNotification)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveJobNotification(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -955,11 +955,11 @@ impl PrintWorkflowObjectModelSourceFileContent { #[cfg(feature = "Storage_Streams")] pub fn CreateInstance(xpsstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPrintWorkflowObjectModelSourceFileContentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), xpsstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), xpsstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1005,27 +1005,27 @@ impl PrintWorkflowPdlConverter { #[cfg(all(feature = "Graphics_Printing_PrintTicket", feature = "Storage_Streams"))] pub fn ConvertPdlAsync(&self, printticket: P0, inputstream: P1, outputstream: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertPdlAsync)(windows_core::Interface::as_raw(this), printticket.into_param().abi(), inputstream.into_param().abi(), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertPdlAsync)(windows_core::Interface::as_raw(this), printticket.param().abi(), inputstream.param().abi(), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Graphics_Printing_PrintTicket", feature = "Storage_Streams"))] pub fn ConvertPdlAsync2(&self, printticket: P0, inputstream: P1, outputstream: P2, hostbasedprocessingoperations: PdlConversionHostBasedProcessingOperations) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertPdlAsync)(windows_core::Interface::as_raw(this), printticket.into_param().abi(), inputstream.into_param().abi(), outputstream.into_param().abi(), hostbasedprocessingoperations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertPdlAsync)(windows_core::Interface::as_raw(this), printticket.param().abi(), inputstream.param().abi(), outputstream.param().abi(), hostbasedprocessingoperations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1130,23 +1130,23 @@ impl PrintWorkflowPdlModificationRequestedEventArgs { #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn CreateJobOnPrinterWithAttributes(&self, jobattributes: P0, targetcontenttype: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributes)(windows_core::Interface::as_raw(this), jobattributes.into_param().abi(), core::mem::transmute_copy(targetcontenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributes)(windows_core::Interface::as_raw(this), jobattributes.param().abi(), core::mem::transmute_copy(targetcontenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateJobOnPrinterWithAttributesBuffer(&self, jobattributesbuffer: P0, targetcontenttype: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributesBuffer)(windows_core::Interface::as_raw(this), jobattributesbuffer.into_param().abi(), core::mem::transmute_copy(targetcontenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributesBuffer)(windows_core::Interface::as_raw(this), jobattributesbuffer.param().abi(), core::mem::transmute_copy(targetcontenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetPdlConverter(&self, conversiontype: PrintWorkflowPdlConversionType) -> windows_core::Result { @@ -1166,25 +1166,25 @@ impl PrintWorkflowPdlModificationRequestedEventArgs { #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn CreateJobOnPrinterWithAttributes2(&self, jobattributes: P0, targetcontenttype: &windows_core::HSTRING, operationattributes: P1, jobattributesmergepolicy: PrintWorkflowAttributesMergePolicy, operationattributesmergepolicy: PrintWorkflowAttributesMergePolicy) -> windows_core::Result where - P0: windows_core::IntoParam>>, - P1: windows_core::IntoParam>>, + P0: windows_core::Param>>, + P1: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributes)(windows_core::Interface::as_raw(this), jobattributes.into_param().abi(), core::mem::transmute_copy(targetcontenttype), operationattributes.into_param().abi(), jobattributesmergepolicy, operationattributesmergepolicy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributes)(windows_core::Interface::as_raw(this), jobattributes.param().abi(), core::mem::transmute_copy(targetcontenttype), operationattributes.param().abi(), jobattributesmergepolicy, operationattributesmergepolicy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateJobOnPrinterWithAttributesBuffer2(&self, jobattributesbuffer: P0, targetcontenttype: &windows_core::HSTRING, operationattributesbuffer: P1, jobattributesmergepolicy: PrintWorkflowAttributesMergePolicy, operationattributesmergepolicy: PrintWorkflowAttributesMergePolicy) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributesBuffer)(windows_core::Interface::as_raw(this), jobattributesbuffer.into_param().abi(), core::mem::transmute_copy(targetcontenttype), operationattributesbuffer.into_param().abi(), jobattributesmergepolicy, operationattributesmergepolicy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributesBuffer)(windows_core::Interface::as_raw(this), jobattributesbuffer.param().abi(), core::mem::transmute_copy(targetcontenttype), operationattributesbuffer.param().abi(), jobattributesmergepolicy, operationattributesmergepolicy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1309,45 +1309,45 @@ impl PrintWorkflowPrinterJob { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GetJobAttributesAsBuffer(&self, attributenames: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetJobAttributesAsBuffer)(windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetJobAttributesAsBuffer)(windows_core::Interface::as_raw(this), attributenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn GetJobAttributes(&self, attributenames: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetJobAttributes)(windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetJobAttributes)(windows_core::Interface::as_raw(this), attributenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Devices_Printers", feature = "Storage_Streams"))] pub fn SetJobAttributesFromBuffer(&self, jobattributesbuffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetJobAttributesFromBuffer)(windows_core::Interface::as_raw(this), jobattributesbuffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetJobAttributesFromBuffer)(windows_core::Interface::as_raw(this), jobattributesbuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn SetJobAttributes(&self, jobattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetJobAttributes)(windows_core::Interface::as_raw(this), jobattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetJobAttributes)(windows_core::Interface::as_raw(this), jobattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1470,12 +1470,12 @@ impl PrintWorkflowSubmittedEventArgs { #[cfg(feature = "Graphics_Printing_PrintTicket")] pub fn GetTarget(&self, jobprintticket: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetTarget)(windows_core::Interface::as_raw(this), jobprintticket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetTarget)(windows_core::Interface::as_raw(this), jobprintticket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetDeferral(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs index a814a49d44..40fa91eb8d 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs @@ -493,12 +493,12 @@ windows_core::imp::interface_hierarchy!(PrintManager, windows_core::IUnknown, wi impl PrintManager { pub fn PrintTaskRequested(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrintTaskRequested)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrintTaskRequested)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrintTaskRequested(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -755,12 +755,12 @@ impl PrintTask { } pub fn Previewing(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Previewing)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Previewing)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePreviewing(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -769,12 +769,12 @@ impl PrintTask { } pub fn Submitting(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Submitting)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Submitting)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSubmitting(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -783,12 +783,12 @@ impl PrintTask { } pub fn Progressing(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Progressing)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Progressing)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProgressing(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -797,12 +797,12 @@ impl PrintTask { } pub fn Completed(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -900,12 +900,12 @@ impl PrintTaskOptions { #[cfg(feature = "Storage_Streams")] pub fn GetPagePrintTicket(&self, printpageinfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPagePrintTicket)(windows_core::Interface::as_raw(this), printpageinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPagePrintTicket)(windows_core::Interface::as_raw(this), printpageinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn PageRangeOptions(&self) -> windows_core::Result { @@ -1125,12 +1125,12 @@ impl PrintTaskRequest { } pub fn CreatePrintTask(&self, title: &windows_core::HSTRING, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePrintTask)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePrintTask)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetDeferral(&self) -> windows_core::Result { @@ -1214,10 +1214,10 @@ impl PrintTaskSourceRequestedArgs { } pub fn SetSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn GetDeferral(&self) -> windows_core::Result { let this = self; @@ -1893,10 +1893,10 @@ impl PrintTaskSourceRequestedHandler { } pub fn Invoke(&self, args: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), args.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs index ac0e01e229..f1b1536a19 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs @@ -603,12 +603,12 @@ windows_core::imp::interface_hierarchy!(Print3DManager, windows_core::IUnknown, impl Print3DManager { pub fn TaskRequested(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TaskRequested)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TaskRequested)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTaskRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -659,12 +659,12 @@ impl Print3DTask { } pub fn Submitting(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Submitting)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Submitting)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSubmitting(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -673,12 +673,12 @@ impl Print3DTask { } pub fn Completed(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -687,12 +687,12 @@ impl Print3DTask { } pub fn SourceChanged(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceChanged)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -751,12 +751,12 @@ windows_core::imp::interface_hierarchy!(Print3DTaskRequest, windows_core::IUnkno impl Print3DTaskRequest { pub fn CreateTask(&self, title: &windows_core::HSTRING, printerid: &windows_core::HSTRING, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTask)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), core::mem::transmute_copy(printerid), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTask)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), core::mem::transmute_copy(printerid), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -829,10 +829,10 @@ windows_core::imp::interface_hierarchy!(Print3DTaskSourceRequestedArgs, windows_ impl Print3DTaskSourceRequestedArgs { pub fn SetSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } } impl windows_core::RuntimeType for Print3DTaskSourceRequestedArgs { @@ -878,10 +878,10 @@ impl Printing3D3MFPackage { #[cfg(feature = "Storage_Streams")] pub fn SetPrintTicket(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPrintTicket)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrintTicket)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn ModelPart(&self) -> windows_core::Result { @@ -894,10 +894,10 @@ impl Printing3D3MFPackage { #[cfg(feature = "Storage_Streams")] pub fn SetModelPart(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetModelPart)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetModelPart)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Thumbnail(&self) -> windows_core::Result { let this = self; @@ -908,10 +908,10 @@ impl Printing3D3MFPackage { } pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Textures(&self) -> windows_core::Result> { @@ -924,22 +924,22 @@ impl Printing3D3MFPackage { #[cfg(feature = "Storage_Streams")] pub fn LoadModelFromPackageAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadModelFromPackageAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadModelFromPackageAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SaveModelToPackageAsync(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveModelToPackageAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveModelToPackageAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Compression(&self) -> windows_core::Result { @@ -956,11 +956,11 @@ impl Printing3D3MFPackage { #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPrinting3D3MFPackageStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1013,10 +1013,10 @@ impl Printing3DBaseMaterial { } pub fn SetColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Abs() -> windows_core::Result { Self::IPrinting3DBaseMaterialStatics(|this| unsafe { @@ -1206,10 +1206,10 @@ impl Printing3DComponent { } pub fn SetMesh(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMesh)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMesh)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Components(&self) -> windows_core::Result> { @@ -1228,10 +1228,10 @@ impl Printing3DComponent { } pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Type(&self) -> windows_core::Result { let this = self; @@ -1300,10 +1300,10 @@ impl Printing3DComponentWithMatrix { } pub fn SetComponent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetComponent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetComponent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn Matrix(&self) -> windows_core::Result { @@ -1401,10 +1401,10 @@ impl Printing3DCompositeMaterialGroup { } pub fn SetBaseMaterialGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseMaterialGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseMaterialGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(materialgroupid: u32) -> windows_core::Result { Self::IPrinting3DCompositeMaterialGroupFactory(|this| unsafe { @@ -1812,10 +1812,10 @@ impl Printing3DModel { } pub fn SetMaterial(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaterial)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaterial)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Build(&self) -> windows_core::Result { let this = self; @@ -1826,10 +1826,10 @@ impl Printing3DModel { } pub fn SetBuild(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBuild)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBuild)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Version(&self) -> windows_core::Result { let this = self; @@ -1895,22 +1895,22 @@ impl Printing3DModel { } pub fn TryReduceFacesWithOptionsAsync(&self, printing3dfacereductionoptions: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryReduceFacesWithOptionsAsync)(windows_core::Interface::as_raw(this), printing3dfacereductionoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryReduceFacesWithOptionsAsync)(windows_core::Interface::as_raw(this), printing3dfacereductionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryReduceFacesWithOptionsAndTimeAsync(&self, printing3dfacereductionoptions: P0, maxwait: super::super::Foundation::TimeSpan) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryReduceFacesWithOptionsAndTimeAsync)(windows_core::Interface::as_raw(this), printing3dfacereductionoptions.into_param().abi(), maxwait, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryReduceFacesWithOptionsAndTimeAsync)(windows_core::Interface::as_raw(this), printing3dfacereductionoptions.param().abi(), maxwait, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RepairWithProgressAsync(&self) -> windows_core::Result> { @@ -1954,10 +1954,10 @@ impl Printing3DModelTexture { } pub fn SetTextureResource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTextureResource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTextureResource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TileStyleU(&self) -> windows_core::Result { let this = self; @@ -2100,10 +2100,10 @@ impl Printing3DTexture2CoordMaterial { } pub fn SetTexture(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTexture)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTexture)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn U(&self) -> windows_core::Result { let this = self; @@ -2169,10 +2169,10 @@ impl Printing3DTexture2CoordMaterialGroup { } pub fn SetTexture(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTexture)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTexture)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(materialgroupid: u32) -> windows_core::Result { Self::IPrinting3DTexture2CoordMaterialGroupFactory(|this| unsafe { @@ -2221,10 +2221,10 @@ impl Printing3DTextureResource { #[cfg(feature = "Storage_Streams")] pub fn SetTextureData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTextureData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTextureData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Name(&self) -> windows_core::Result { let this = self; @@ -2456,10 +2456,10 @@ impl Print3DTaskSourceRequestedHandler { } pub fn Invoke(&self, args: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), args.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Management/Deployment/mod.rs b/crates/libs/windows/src/Windows/Management/Deployment/mod.rs index 69a34e209a..ff73a38009 100644 --- a/crates/libs/windows/src/Windows/Management/Deployment/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Deployment/mod.rs @@ -813,10 +813,10 @@ impl AddPackageOptions { } pub fn SetTargetVolume(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { @@ -851,10 +851,10 @@ impl AddPackageOptions { } pub fn SetExternalLocationUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExternalLocationUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExternalLocationUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StubPackageOption(&self) -> windows_core::Result { let this = self; @@ -1016,10 +1016,10 @@ windows_core::imp::interface_hierarchy!(AppInstallerManager, windows_core::IUnkn impl AppInstallerManager { pub fn SetAutoUpdateSettings(&self, packagefamilyname: &windows_core::HSTRING, appinstallerinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAutoUpdateSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), appinstallerinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAutoUpdateSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), appinstallerinfo.param().abi()).ok() } } pub fn ClearAutoUpdateSettings(&self, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1093,10 +1093,10 @@ impl AutoUpdateSettingsOptions { } pub fn SetAppInstallerUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppInstallerUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppInstallerUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OnLaunch(&self) -> windows_core::Result { let this = self; @@ -1210,11 +1210,11 @@ impl AutoUpdateSettingsOptions { #[cfg(feature = "ApplicationModel")] pub fn CreateFromAppInstallerInfo(appinstallerinfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAutoUpdateSettingsOptionsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromAppInstallerInfo)(windows_core::Interface::as_raw(this), appinstallerinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromAppInstallerInfo)(windows_core::Interface::as_raw(this), appinstallerinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1557,25 +1557,25 @@ impl PackageManager { #[cfg(feature = "Foundation_Collections")] pub fn AddPackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackageAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackageAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdatePackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdatePackageAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdatePackageAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemovePackageAsync(&self, packagefullname: &windows_core::HSTRING) -> windows_core::Result> { @@ -1588,25 +1588,25 @@ impl PackageManager { #[cfg(feature = "Foundation_Collections")] pub fn StagePackageAsync(&self, packageuri: P0, dependencypackageuris: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StagePackageAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StagePackageAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageAsync(&self, manifesturi: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterPackageAsync)(windows_core::Interface::as_raw(this), manifesturi.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterPackageAsync)(windows_core::Interface::as_raw(this), manifesturi.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] @@ -1694,12 +1694,12 @@ impl PackageManager { } pub fn ProvisionPackageForAllUsersWithOptionsAsync(&self, mainpackagefamilyname: &windows_core::HSTRING, options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProvisionPackageForAllUsersWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mainpackagefamilyname), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProvisionPackageForAllUsersWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mainpackagefamilyname), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemovePackageWithOptionsAsync(&self, packagefullname: &windows_core::HSTRING, removaloptions: RemovalOptions) -> windows_core::Result> { @@ -1712,24 +1712,24 @@ impl PackageManager { #[cfg(feature = "Foundation_Collections")] pub fn StagePackageWithOptionsAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StagePackageWithOptionsAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StagePackageWithOptionsAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageByFullNameAsync(&self, mainpackagefullname: &windows_core::HSTRING, dependencypackagefullnames: P0, deploymentoptions: DeploymentOptions) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterPackageByFullNameAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mainpackagefullname), dependencypackagefullnames.into_param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterPackageByFullNameAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mainpackagefullname), dependencypackagefullnames.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] @@ -1797,14 +1797,14 @@ impl PackageManager { #[cfg(feature = "Foundation_Collections")] pub fn AddPackageToVolumeAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackageToVolumeAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, targetvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackageToVolumeAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ClearPackageStatus(&self, packagefullname: &windows_core::HSTRING, status: PackageStatus) -> windows_core::Result<()> { @@ -1814,14 +1814,14 @@ impl PackageManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageWithAppDataVolumeAsync(&self, manifesturi: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, appdatavolume: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterPackageWithAppDataVolumeAsync)(windows_core::Interface::as_raw(this), manifesturi.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, appdatavolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterPackageWithAppDataVolumeAsync)(windows_core::Interface::as_raw(this), manifesturi.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, appdatavolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FindPackageVolumeByName(&self, volumename: &windows_core::HSTRING) -> windows_core::Result { @@ -1848,30 +1848,30 @@ impl PackageManager { } pub fn MovePackageToVolumeAsync(&self, packagefullname: &windows_core::HSTRING, deploymentoptions: DeploymentOptions, targetvolume: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MovePackageToVolumeAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), deploymentoptions, targetvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MovePackageToVolumeAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), deploymentoptions, targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemovePackageVolumeAsync(&self, volume: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemovePackageVolumeAsync)(windows_core::Interface::as_raw(this), volume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemovePackageVolumeAsync)(windows_core::Interface::as_raw(this), volume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetDefaultPackageVolume(&self, volume: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDefaultPackageVolume)(windows_core::Interface::as_raw(this), volume.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultPackageVolume)(windows_core::Interface::as_raw(this), volume.param().abi()).ok() } } pub fn SetPackageStatus(&self, packagefullname: &windows_core::HSTRING, status: PackageStatus) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1879,35 +1879,35 @@ impl PackageManager { } pub fn SetPackageVolumeOfflineAsync(&self, packagevolume: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPackageVolumeOfflineAsync)(windows_core::Interface::as_raw(this), packagevolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPackageVolumeOfflineAsync)(windows_core::Interface::as_raw(this), packagevolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetPackageVolumeOnlineAsync(&self, packagevolume: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPackageVolumeOnlineAsync)(windows_core::Interface::as_raw(this), packagevolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPackageVolumeOnlineAsync)(windows_core::Interface::as_raw(this), packagevolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn StagePackageToVolumeAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StagePackageToVolumeAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, targetvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StagePackageToVolumeAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StageUserDataWithOptionsAsync(&self, packagefullname: &windows_core::HSTRING, deploymentoptions: DeploymentOptions) -> windows_core::Result> { @@ -1928,44 +1928,44 @@ impl PackageManager { #[cfg(feature = "Foundation_Collections")] pub fn AddPackageToVolumeAndOptionalPackagesAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2, optionalpackagefamilynames: P3, externalpackageuris: P4) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam>, - P4: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param>, + P4: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackageToVolumeAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.into_param().abi(), externalpackageuris.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackageToVolumeAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), externalpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn StagePackageToVolumeAndOptionalPackagesAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2, optionalpackagefamilynames: P3, externalpackageuris: P4) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam>, - P4: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param>, + P4: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StagePackageToVolumeAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.into_param().abi(), externalpackageuris.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StagePackageToVolumeAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), externalpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageByFamilyNameAndOptionalPackagesAsync(&self, mainpackagefamilyname: &windows_core::HSTRING, dependencypackagefamilynames: P0, deploymentoptions: DeploymentOptions, appdatavolume: P1, optionalpackagefamilynames: P2) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterPackageByFamilyNameAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mainpackagefamilyname), dependencypackagefamilynames.into_param().abi(), deploymentoptions, appdatavolume.into_param().abi(), optionalpackagefamilynames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterPackageByFamilyNameAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mainpackagefamilyname), dependencypackagefamilynames.param().abi(), deploymentoptions, appdatavolume.param().abi(), optionalpackagefamilynames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DebugSettings(&self) -> windows_core::Result { @@ -1984,87 +1984,87 @@ impl PackageManager { } pub fn AddPackageByAppInstallerFileAsync(&self, appinstallerfileuri: P0, options: AddPackageByAppInstallerOptions, targetvolume: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackageByAppInstallerFileAsync)(windows_core::Interface::as_raw(this), appinstallerfileuri.into_param().abi(), options, targetvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackageByAppInstallerFileAsync)(windows_core::Interface::as_raw(this), appinstallerfileuri.param().abi(), options, targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestAddPackageByAppInstallerFileAsync(&self, appinstallerfileuri: P0, options: AddPackageByAppInstallerOptions, targetvolume: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAddPackageByAppInstallerFileAsync)(windows_core::Interface::as_raw(this), appinstallerfileuri.into_param().abi(), options, targetvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAddPackageByAppInstallerFileAsync)(windows_core::Interface::as_raw(this), appinstallerfileuri.param().abi(), options, targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn AddPackageToVolumeAndRelatedSetAsync(&self, packageuri: P0, dependencypackageuris: P1, options: DeploymentOptions, targetvolume: P2, optionalpackagefamilynames: P3, packageuristoinstall: P4, relatedpackageuris: P5) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam>, - P4: windows_core::IntoParam>, - P5: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackageToVolumeAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), options, targetvolume.into_param().abi(), optionalpackagefamilynames.into_param().abi(), packageuristoinstall.into_param().abi(), relatedpackageuris.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackageToVolumeAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), options, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), packageuristoinstall.param().abi(), relatedpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn StagePackageToVolumeAndRelatedSetAsync(&self, packageuri: P0, dependencypackageuris: P1, options: DeploymentOptions, targetvolume: P2, optionalpackagefamilynames: P3, packageuristoinstall: P4, relatedpackageuris: P5) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam>, - P4: windows_core::IntoParam>, - P5: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StagePackageToVolumeAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), options, targetvolume.into_param().abi(), optionalpackagefamilynames.into_param().abi(), packageuristoinstall.into_param().abi(), relatedpackageuris.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StagePackageToVolumeAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), options, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), packageuristoinstall.param().abi(), relatedpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RequestAddPackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2, optionalpackagefamilynames: P3, relatedpackageuris: P4) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam>, - P4: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param>, + P4: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAddPackageAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.into_param().abi(), relatedpackageuris.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAddPackageAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), relatedpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RequestAddPackageAndRelatedSetAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2, optionalpackagefamilynames: P3, relatedpackageuris: P4, packageuristoinstall: P5) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam>, - P4: windows_core::IntoParam>, - P5: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAddPackageAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.into_param().abi(), relatedpackageuris.into_param().abi(), packageuristoinstall.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAddPackageAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), relatedpackageuris.param().abi(), packageuristoinstall.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeprovisionPackageForAllUsersAsync(&self, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { @@ -2084,47 +2084,47 @@ impl PackageManager { } pub fn AddPackageByUriAsync(&self, packageuri: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackageByUriAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackageByUriAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StagePackageByUriAsync(&self, packageuri: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StagePackageByUriAsync)(windows_core::Interface::as_raw(this), packageuri.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StagePackageByUriAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RegisterPackageByUriAsync(&self, manifesturi: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterPackageByUriAsync)(windows_core::Interface::as_raw(this), manifesturi.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterPackageByUriAsync)(windows_core::Interface::as_raw(this), manifesturi.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackagesByFullNameAsync(&self, packagefullnames: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterPackagesByFullNameAsync)(windows_core::Interface::as_raw(this), packagefullnames.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterPackagesByFullNameAsync)(windows_core::Interface::as_raw(this), packagefullnames.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetPackageStubPreference(&self, packagefamilyname: &windows_core::HSTRING, usestub: PackageStubPreference) -> windows_core::Result<()> { @@ -2159,23 +2159,23 @@ impl PackageManagerDebugSettings { #[cfg(feature = "ApplicationModel")] pub fn SetContentGroupStateAsync(&self, package: P0, contentgroupname: &windows_core::HSTRING, state: super::super::ApplicationModel::PackageContentGroupState) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetContentGroupStateAsync)(windows_core::Interface::as_raw(this), package.into_param().abi(), core::mem::transmute_copy(contentgroupname), state, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetContentGroupStateAsync)(windows_core::Interface::as_raw(this), package.param().abi(), core::mem::transmute_copy(contentgroupname), state, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "ApplicationModel")] pub fn SetContentGroupStateWithPercentageAsync(&self, package: P0, contentgroupname: &windows_core::HSTRING, state: super::super::ApplicationModel::PackageContentGroupState, completionpercentage: f64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetContentGroupStateWithPercentageAsync)(windows_core::Interface::as_raw(this), package.into_param().abi(), core::mem::transmute_copy(contentgroupname), state, completionpercentage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetContentGroupStateWithPercentageAsync)(windows_core::Interface::as_raw(this), package.param().abi(), core::mem::transmute_copy(contentgroupname), state, completionpercentage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2445,10 +2445,10 @@ impl RegisterPackageOptions { } pub fn SetAppDataVolume(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppDataVolume)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppDataVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { @@ -2467,10 +2467,10 @@ impl RegisterPackageOptions { } pub fn SetExternalLocationUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExternalLocationUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExternalLocationUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DeveloperMode(&self) -> windows_core::Result { let this = self; @@ -2610,12 +2610,12 @@ impl SharedPackageContainer { } pub fn RemovePackageFamily(&self, packagefamilyname: &windows_core::HSTRING, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemovePackageFamily)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemovePackageFamily)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ResetData(&self) -> windows_core::Result { @@ -2645,22 +2645,22 @@ windows_core::imp::interface_hierarchy!(SharedPackageContainerManager, windows_c impl SharedPackageContainerManager { pub fn CreateContainer(&self, name: &windows_core::HSTRING, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateContainer)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateContainer)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteContainer(&self, id: &windows_core::HSTRING, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteContainer)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteContainer)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetContainer(&self, id: &windows_core::HSTRING) -> windows_core::Result { @@ -2681,12 +2681,12 @@ impl SharedPackageContainerManager { #[cfg(feature = "Foundation_Collections")] pub fn FindContainersWithOptions(&self, options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindContainersWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindContainersWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetDefault() -> windows_core::Result { @@ -2790,10 +2790,10 @@ impl StagePackageOptions { } pub fn SetTargetVolume(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { @@ -2828,10 +2828,10 @@ impl StagePackageOptions { } pub fn SetExternalLocationUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExternalLocationUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExternalLocationUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StubPackageOption(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/Management/Policies/mod.rs b/crates/libs/windows/src/Windows/Management/Policies/mod.rs index fa00e1ec9c..ea912dbcb5 100644 --- a/crates/libs/windows/src/Windows/Management/Policies/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Policies/mod.rs @@ -49,11 +49,11 @@ impl NamedPolicy { #[cfg(feature = "System")] pub fn GetPolicyFromPathForUser(user: P0, area: &windows_core::HSTRING, name: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::INamedPolicyStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPolicyFromPathForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(area), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPolicyFromPathForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(area), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -151,12 +151,12 @@ impl NamedPolicyData { } pub fn Changed(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Management/Update/mod.rs b/crates/libs/windows/src/Windows/Management/Update/mod.rs index 82cc5a7fad..c60a93f295 100644 --- a/crates/libs/windows/src/Windows/Management/Update/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Update/mod.rs @@ -706,10 +706,10 @@ impl WindowsUpdateAdministrator { } pub fn ApproveWindowsUpdate(&self, updateid: &windows_core::HSTRING, approvaldata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ApproveWindowsUpdate)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(updateid), approvaldata.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ApproveWindowsUpdate)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(updateid), approvaldata.param().abi()).ok() } } pub fn RevokeWindowsUpdateApproval(&self, updateid: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -749,11 +749,11 @@ impl WindowsUpdateAdministrator { } pub fn RequestRestart(restartoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWindowsUpdateAdministratorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestRestart)(windows_core::Interface::as_raw(this), restartoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestRestart)(windows_core::Interface::as_raw(this), restartoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CancelRestartRequest(requestrestarttoken: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -798,10 +798,10 @@ impl WindowsUpdateApprovalData { } pub fn SetSeeker(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSeeker)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSeeker)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AllowDownloadOnMetered(&self) -> windows_core::Result> { let this = self; @@ -812,10 +812,10 @@ impl WindowsUpdateApprovalData { } pub fn SetAllowDownloadOnMetered(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAllowDownloadOnMetered)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAllowDownloadOnMetered)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ComplianceDeadlineInDays(&self) -> windows_core::Result> { let this = self; @@ -826,10 +826,10 @@ impl WindowsUpdateApprovalData { } pub fn SetComplianceDeadlineInDays(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetComplianceDeadlineInDays)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetComplianceDeadlineInDays)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ComplianceGracePeriodInDays(&self) -> windows_core::Result> { let this = self; @@ -840,10 +840,10 @@ impl WindowsUpdateApprovalData { } pub fn SetComplianceGracePeriodInDays(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetComplianceGracePeriodInDays)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetComplianceGracePeriodInDays)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OptOutOfAutoReboot(&self) -> windows_core::Result> { let this = self; @@ -854,10 +854,10 @@ impl WindowsUpdateApprovalData { } pub fn SetOptOutOfAutoReboot(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOptOutOfAutoReboot)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOptOutOfAutoReboot)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for WindowsUpdateApprovalData { @@ -1049,12 +1049,12 @@ windows_core::imp::interface_hierarchy!(WindowsUpdateManager, windows_core::IUnk impl WindowsUpdateManager { pub fn ScanningStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScanningStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScanningStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScanningStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1063,12 +1063,12 @@ impl WindowsUpdateManager { } pub fn WorkingStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WorkingStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WorkingStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWorkingStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1077,12 +1077,12 @@ impl WindowsUpdateManager { } pub fn ProgressChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProgressChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProgressChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProgressChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1091,12 +1091,12 @@ impl WindowsUpdateManager { } pub fn AttentionRequiredReasonChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AttentionRequiredReasonChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AttentionRequiredReasonChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAttentionRequiredReasonChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1105,12 +1105,12 @@ impl WindowsUpdateManager { } pub fn ActionCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ActionCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ActionCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActionCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1119,12 +1119,12 @@ impl WindowsUpdateManager { } pub fn ScanCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScanCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScanCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScanCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1279,10 +1279,10 @@ impl WindowsUpdateRestartRequestOptions { } pub fn SetMoreInfoUrl(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMoreInfoUrl)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMoreInfoUrl)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ComplianceDeadlineInDays(&self) -> windows_core::Result { let this = self; @@ -1330,11 +1330,11 @@ impl WindowsUpdateRestartRequestOptions { } pub fn CreateInstance(title: &windows_core::HSTRING, description: &windows_core::HSTRING, moreinfourl: P0, compliancedeadlineindays: i32, compliancegraceperiodindays: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWindowsUpdateRestartRequestOptionsFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), core::mem::transmute_copy(description), moreinfourl.into_param().abi(), compliancedeadlineindays, compliancegraceperiodindays, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), core::mem::transmute_copy(description), moreinfourl.param().abi(), compliancedeadlineindays, compliancegraceperiodindays, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Management/mod.rs b/crates/libs/windows/src/Windows/Management/mod.rs index 9b89b5582d..4d10587986 100644 --- a/crates/libs/windows/src/Windows/Management/mod.rs +++ b/crates/libs/windows/src/Windows/Management/mod.rs @@ -217,12 +217,12 @@ impl MdmSession { #[cfg(feature = "Foundation_Collections")] pub fn StartWithAlertsAsync(&self, alerts: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartWithAlertsAsync)(windows_core::Interface::as_raw(this), alerts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartWithAlertsAsync)(windows_core::Interface::as_raw(this), alerts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs b/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs index 8cce591ec4..4358ad1966 100644 --- a/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs +++ b/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs @@ -79,12 +79,12 @@ impl AppBroadcastingMonitor { } pub fn IsCurrentAppBroadcastingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsCurrentAppBroadcastingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsCurrentAppBroadcastingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsCurrentAppBroadcastingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -235,11 +235,11 @@ impl AppBroadcastingUI { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppBroadcastingUIStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs b/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs index 15d9083506..58352bcb68 100644 --- a/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs +++ b/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs @@ -115,23 +115,23 @@ impl AppRecordingManager { #[cfg(feature = "Storage")] pub fn StartRecordingToFileAsync(&self, file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartRecordingToFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartRecordingToFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn RecordTimeSpanToFileAsync(&self, starttime: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan, file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecordTimeSpanToFileAsync)(windows_core::Interface::as_raw(this), starttime, duration, file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RecordTimeSpanToFileAsync)(windows_core::Interface::as_raw(this), starttime, duration, file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -145,13 +145,13 @@ impl AppRecordingManager { #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn SaveScreenshotToFilesAsync(&self, folder: P0, filenameprefix: &windows_core::HSTRING, option: AppRecordingSaveScreenshotOption, requestedformats: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveScreenshotToFilesAsync)(windows_core::Interface::as_raw(this), folder.into_param().abi(), core::mem::transmute_copy(filenameprefix), option, requestedformats.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveScreenshotToFilesAsync)(windows_core::Interface::as_raw(this), folder.param().abi(), core::mem::transmute_copy(filenameprefix), option, requestedformats.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetDefault() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Media/Audio/mod.rs index 491a4bf54f..07bdfb2dc2 100644 --- a/crates/libs/windows/src/Windows/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Audio/mod.rs @@ -315,24 +315,24 @@ impl IAudioInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> windows_core::Result> { @@ -387,18 +387,18 @@ impl IAudioInputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -440,24 +440,24 @@ impl IAudioInputNode2 { } pub fn AddOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> windows_core::Result> { @@ -512,18 +512,18 @@ impl IAudioInputNode2 { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -595,18 +595,18 @@ impl IAudioNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -806,10 +806,10 @@ windows_core::imp::required_hierarchy!(IAudioNodeWithListener, IAudioNode, super impl IAudioNodeWithListener { pub fn SetListener(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetListener)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetListener)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Listener(&self) -> windows_core::Result { let this = self; @@ -871,18 +871,18 @@ impl IAudioNodeWithListener { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1371,24 +1371,24 @@ impl AudioDeviceInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn Emitter(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1450,18 +1450,18 @@ impl AudioDeviceInputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1547,25 +1547,25 @@ impl AudioDeviceOutputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn SetListener(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetListener)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetListener)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Listener(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1628,10 +1628,10 @@ impl AudioFileInputNode { } pub fn SetStartTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStartTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStartTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EndTime(&self) -> windows_core::Result> { let this = self; @@ -1642,10 +1642,10 @@ impl AudioFileInputNode { } pub fn SetEndTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEndTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEndTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LoopCount(&self) -> windows_core::Result> { let this = self; @@ -1656,10 +1656,10 @@ impl AudioFileInputNode { } pub fn SetLoopCount(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLoopCount)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLoopCount)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result { let this = self; @@ -1678,12 +1678,12 @@ impl AudioFileInputNode { } pub fn FileCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FileCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FileCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFileCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1700,24 +1700,24 @@ impl AudioFileInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn Emitter(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1779,18 +1779,18 @@ impl AudioFileInputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1892,18 +1892,18 @@ impl AudioFileOutputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1966,10 +1966,10 @@ impl AudioFrameInputNode { } pub fn AddFrame(&self, frame: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddFrame)(windows_core::Interface::as_raw(this), frame.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddFrame)(windows_core::Interface::as_raw(this), frame.param().abi()).ok() } } pub fn DiscardQueuedFrames(&self) -> windows_core::Result<()> { let this = self; @@ -1984,12 +1984,12 @@ impl AudioFrameInputNode { } pub fn AudioFrameCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioFrameCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioFrameCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioFrameCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1998,12 +1998,12 @@ impl AudioFrameInputNode { } pub fn QuantumStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QuantumStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).QuantumStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveQuantumStarted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2020,24 +2020,24 @@ impl AudioFrameInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn Emitter(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2099,18 +2099,18 @@ impl AudioFrameInputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2195,18 +2195,18 @@ impl AudioFrameOutputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2241,12 +2241,12 @@ impl AudioGraph { #[cfg(feature = "Media_MediaProperties")] pub fn CreateFrameInputNodeWithFormat(&self, encodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFrameInputNodeWithFormat)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFrameInputNodeWithFormat)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Capture")] @@ -2260,24 +2260,24 @@ impl AudioGraph { #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn CreateDeviceInputNodeWithFormatAsync(&self, category: super::Capture::MediaCategory, encodingproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDeviceInputNodeWithFormatAsync)(windows_core::Interface::as_raw(this), category, encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDeviceInputNodeWithFormatAsync)(windows_core::Interface::as_raw(this), category, encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Devices_Enumeration", feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn CreateDeviceInputNodeWithFormatOnDeviceAsync(&self, category: super::Capture::MediaCategory, encodingproperties: P0, device: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDeviceInputNodeWithFormatOnDeviceAsync)(windows_core::Interface::as_raw(this), category, encodingproperties.into_param().abi(), device.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDeviceInputNodeWithFormatOnDeviceAsync)(windows_core::Interface::as_raw(this), category, encodingproperties.param().abi(), device.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateFrameOutputNode(&self) -> windows_core::Result { @@ -2290,12 +2290,12 @@ impl AudioGraph { #[cfg(feature = "Media_MediaProperties")] pub fn CreateFrameOutputNodeWithFormat(&self, encodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFrameOutputNodeWithFormat)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFrameOutputNodeWithFormat)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateDeviceOutputNodeAsync(&self) -> windows_core::Result> { @@ -2308,35 +2308,35 @@ impl AudioGraph { #[cfg(feature = "Storage")] pub fn CreateFileInputNodeAsync(&self, file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileInputNodeAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileInputNodeAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn CreateFileOutputNodeAsync(&self, file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileOutputNodeAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileOutputNodeAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_MediaProperties", feature = "Storage"))] pub fn CreateFileOutputNodeWithFileProfileAsync(&self, file: P0, fileencodingprofile: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileOutputNodeWithFileProfileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), fileencodingprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileOutputNodeWithFileProfileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), fileencodingprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateSubmixNode(&self) -> windows_core::Result { @@ -2349,12 +2349,12 @@ impl AudioGraph { #[cfg(feature = "Media_MediaProperties")] pub fn CreateSubmixNodeWithFormat(&self, encodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSubmixNodeWithFormat)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSubmixNodeWithFormat)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Start(&self) -> windows_core::Result<()> { @@ -2371,12 +2371,12 @@ impl AudioGraph { } pub fn QuantumStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QuantumStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).QuantumStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveQuantumStarted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2385,12 +2385,12 @@ impl AudioGraph { } pub fn QuantumProcessed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QuantumProcessed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).QuantumProcessed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveQuantumProcessed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2399,12 +2399,12 @@ impl AudioGraph { } pub fn UnrecoverableErrorOccurred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnrecoverableErrorOccurred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnrecoverableErrorOccurred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnrecoverableErrorOccurred(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2458,50 +2458,50 @@ impl AudioGraph { #[cfg(feature = "Media_MediaProperties")] pub fn CreateFrameInputNodeWithFormatAndEmitter(&self, encodingproperties: P0, emitter: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFrameInputNodeWithFormatAndEmitter)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), emitter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFrameInputNodeWithFormatAndEmitter)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), emitter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Devices_Enumeration", feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn CreateDeviceInputNodeWithFormatAndEmitterOnDeviceAsync(&self, category: super::Capture::MediaCategory, encodingproperties: P0, device: P1, emitter: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDeviceInputNodeWithFormatAndEmitterOnDeviceAsync)(windows_core::Interface::as_raw(this), category, encodingproperties.into_param().abi(), device.into_param().abi(), emitter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDeviceInputNodeWithFormatAndEmitterOnDeviceAsync)(windows_core::Interface::as_raw(this), category, encodingproperties.param().abi(), device.param().abi(), emitter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn CreateFileInputNodeWithEmitterAsync(&self, file: P0, emitter: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileInputNodeWithEmitterAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), emitter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileInputNodeWithEmitterAsync)(windows_core::Interface::as_raw(this), file.param().abi(), emitter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] pub fn CreateSubmixNodeWithFormatAndEmitter(&self, encodingproperties: P0, emitter: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSubmixNodeWithFormatAndEmitter)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), emitter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSubmixNodeWithFormatAndEmitter)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), emitter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateBatchUpdater(&self) -> windows_core::Result { @@ -2514,33 +2514,33 @@ impl AudioGraph { #[cfg(feature = "Media_Core")] pub fn CreateMediaSourceAudioInputNodeAsync(&self, mediasource: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMediaSourceAudioInputNodeAsync)(windows_core::Interface::as_raw(this), mediasource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMediaSourceAudioInputNodeAsync)(windows_core::Interface::as_raw(this), mediasource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Core")] pub fn CreateMediaSourceAudioInputNodeWithEmitterAsync(&self, mediasource: P0, emitter: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMediaSourceAudioInputNodeWithEmitterAsync)(windows_core::Interface::as_raw(this), mediasource.into_param().abi(), emitter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMediaSourceAudioInputNodeWithEmitterAsync)(windows_core::Interface::as_raw(this), mediasource.param().abi(), emitter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateAsync(settings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAudioGraphStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Close(&self) -> windows_core::Result<()> { @@ -2640,10 +2640,10 @@ impl AudioGraphSettings { #[cfg(feature = "Media_MediaProperties")] pub fn SetEncodingProperties(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Devices_Enumeration")] pub fn PrimaryRenderDevice(&self) -> windows_core::Result { @@ -2656,10 +2656,10 @@ impl AudioGraphSettings { #[cfg(feature = "Devices_Enumeration")] pub fn SetPrimaryRenderDevice(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPrimaryRenderDevice)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrimaryRenderDevice)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn QuantumSizeSelectionMode(&self) -> windows_core::Result { let this = self; @@ -2886,12 +2886,12 @@ impl AudioNodeEmitter { } pub fn CreateAudioNodeEmitter(shape: P0, decaymodel: P1, settings: AudioNodeEmitterSettings) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IAudioNodeEmitterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAudioNodeEmitter)(windows_core::Interface::as_raw(this), shape.into_param().abi(), decaymodel.into_param().abi(), settings, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAudioNodeEmitter)(windows_core::Interface::as_raw(this), shape.param().abi(), decaymodel.param().abi(), settings, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3217,12 +3217,12 @@ impl AudioPlaybackConnection { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3302,12 +3302,12 @@ windows_core::imp::interface_hierarchy!(AudioStateMonitor, windows_core::IUnknow impl AudioStateMonitor { pub fn SoundLevelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SoundLevelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SoundLevelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSoundLevelChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3409,24 +3409,24 @@ impl AudioSubmixNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn Emitter(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3488,18 +3488,18 @@ impl AudioSubmixNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3810,11 +3810,11 @@ impl EchoEffectDefinition { } pub fn Create(audiograph: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEchoEffectDefinitionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3919,11 +3919,11 @@ impl EqualizerEffectDefinition { } pub fn Create(audiograph: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEqualizerEffectDefinitionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -4016,11 +4016,11 @@ impl LimiterEffectDefinition { } pub fn Create(audiograph: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILimiterEffectDefinitionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -4057,24 +4057,24 @@ impl MediaSourceAudioInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(windows_core::Interface::as_raw(this), destination.param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } pub fn Emitter(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4136,18 +4136,18 @@ impl MediaSourceAudioInputNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DisableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableEffectsByDefinition)(windows_core::Interface::as_raw(this), definition.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4184,10 +4184,10 @@ impl MediaSourceAudioInputNode { } pub fn SetStartTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStartTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStartTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EndTime(&self) -> windows_core::Result> { let this = self; @@ -4198,10 +4198,10 @@ impl MediaSourceAudioInputNode { } pub fn SetEndTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEndTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEndTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LoopCount(&self) -> windows_core::Result> { let this = self; @@ -4212,10 +4212,10 @@ impl MediaSourceAudioInputNode { } pub fn SetLoopCount(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLoopCount)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLoopCount)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result { let this = self; @@ -4234,12 +4234,12 @@ impl MediaSourceAudioInputNode { } pub fn MediaSourceCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MediaSourceCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MediaSourceCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMediaSourceCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4537,11 +4537,11 @@ impl ReverbEffectDefinition { } pub fn Create(audiograph: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IReverbEffectDefinitionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), audiograph.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -4636,12 +4636,12 @@ impl SpatialAudioDeviceConfiguration { } pub fn ConfigurationChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConfigurationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConfigurationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConfigurationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs index 3c272722d3..3c75932f39 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs @@ -108,12 +108,12 @@ impl VariablePhotoSequenceCapture { } pub fn PhotoCaptured(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PhotoCaptured)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PhotoCaptured)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePhotoCaptured(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -122,12 +122,12 @@ impl VariablePhotoSequenceCapture { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs index 4d70baa8ba..38451f6264 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs @@ -497,13 +497,13 @@ impl DepthMediaFrame { #[cfg(all(feature = "Media_Devices_Core", feature = "Perception_Spatial"))] pub fn TryCreateCoordinateMapper(&self, cameraintrinsics: P0, coordinatesystem: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateCoordinateMapper)(windows_core::Interface::as_raw(this), cameraintrinsics.into_param().abi(), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateCoordinateMapper)(windows_core::Interface::as_raw(this), cameraintrinsics.param().abi(), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MaxReliableDepth(&self) -> windows_core::Result { @@ -696,12 +696,12 @@ impl MediaFrameReader { } pub fn FrameArrived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameArrived(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -877,22 +877,22 @@ impl MediaFrameSource { } pub fn SetFormatAsync(&self, format: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetFormatAsync)(windows_core::Interface::as_raw(this), format.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetFormatAsync)(windows_core::Interface::as_raw(this), format.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FormatChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormatChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FormatChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFormatChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -902,12 +902,12 @@ impl MediaFrameSource { #[cfg(feature = "Media_Devices_Core")] pub fn TryGetCameraIntrinsics(&self, format: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetCameraIntrinsics)(windows_core::Interface::as_raw(this), format.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetCameraIntrinsics)(windows_core::Interface::as_raw(this), format.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -937,12 +937,12 @@ impl MediaFrameSourceController { } pub fn SetPropertyAsync(&self, propertyid: &windows_core::HSTRING, propertyvalue: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPropertyAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), propertyvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPropertyAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), propertyvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Devices")] @@ -955,12 +955,12 @@ impl MediaFrameSourceController { } pub fn GetPropertyByExtendedIdAsync(&self, extendedpropertyid: &[u8], maxpropertyvaluesize: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPropertyByExtendedIdAsync)(windows_core::Interface::as_raw(this), extendedpropertyid.len().try_into().unwrap(), extendedpropertyid.as_ptr(), maxpropertyvaluesize.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPropertyByExtendedIdAsync)(windows_core::Interface::as_raw(this), extendedpropertyid.len().try_into().unwrap(), extendedpropertyid.as_ptr(), maxpropertyvaluesize.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetPropertyByExtendedIdAsync(&self, extendedpropertyid: &[u8], propertyvalue: &[u8]) -> windows_core::Result> { @@ -1162,12 +1162,12 @@ impl MediaFrameSourceInfo { #[cfg(all(feature = "Devices_Enumeration", feature = "UI_WindowManagement"))] pub fn GetRelativePanel(&self, displayregion: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetRelativePanel)(windows_core::Interface::as_raw(this), displayregion.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetRelativePanel)(windows_core::Interface::as_raw(this), displayregion.param().abi(), &mut result__).map(|| result__) } } pub fn IsShareable(&self) -> windows_core::Result { @@ -1219,12 +1219,12 @@ impl MultiSourceMediaFrameReader { } pub fn FrameArrived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameArrived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameArrived(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/Capture/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/mod.rs index b38fd454ad..ecd49b9d90 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/mod.rs @@ -1916,22 +1916,22 @@ impl AdvancedPhotoCapture { } pub fn CaptureWithContextAsync(&self, context: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CaptureWithContextAsync)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CaptureWithContextAsync)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn OptionalReferencePhotoCaptured(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OptionalReferencePhotoCaptured)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OptionalReferencePhotoCaptured)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOptionalReferencePhotoCaptured(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1940,12 +1940,12 @@ impl AdvancedPhotoCapture { } pub fn AllPhotosCaptured(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AllPhotosCaptured)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AllPhotosCaptured)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAllPhotosCaptured(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1990,10 +1990,10 @@ impl AppBroadcastBackgroundService { } pub fn SetSignInInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSignInInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSignInInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SignInInfo(&self) -> windows_core::Result { let this = self; @@ -2004,10 +2004,10 @@ impl AppBroadcastBackgroundService { } pub fn SetStreamInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStreamInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStreamInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StreamInfo(&self) -> windows_core::Result { let this = self; @@ -2047,12 +2047,12 @@ impl AppBroadcastBackgroundService { } pub fn HeartbeatRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HeartbeatRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HeartbeatRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHeartbeatRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2094,12 +2094,12 @@ impl AppBroadcastBackgroundService { } pub fn BroadcastTitleChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BroadcastTitleChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BroadcastTitleChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBroadcastTitleChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2108,12 +2108,12 @@ impl AppBroadcastBackgroundService { } pub fn BroadcastLanguageChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BroadcastLanguageChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BroadcastLanguageChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBroadcastLanguageChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2122,12 +2122,12 @@ impl AppBroadcastBackgroundService { } pub fn BroadcastChannelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BroadcastChannelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BroadcastChannelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBroadcastChannelChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2159,10 +2159,10 @@ impl AppBroadcastBackgroundServiceSignInInfo { } pub fn SetOAuthRequestUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOAuthRequestUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOAuthRequestUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OAuthRequestUri(&self) -> windows_core::Result { let this = self; @@ -2173,10 +2173,10 @@ impl AppBroadcastBackgroundServiceSignInInfo { } pub fn SetOAuthCallbackUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOAuthCallbackUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOAuthCallbackUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OAuthCallbackUri(&self) -> windows_core::Result { let this = self; @@ -2206,12 +2206,12 @@ impl AppBroadcastBackgroundServiceSignInInfo { } pub fn SignInStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SignInStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SignInStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSignInStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2220,12 +2220,12 @@ impl AppBroadcastBackgroundServiceSignInInfo { } pub fn UserNameChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserNameChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserNameChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserNameChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2297,12 +2297,12 @@ impl AppBroadcastBackgroundServiceStreamInfo { } pub fn StreamStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StreamStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StreamStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStreamStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2311,12 +2311,12 @@ impl AppBroadcastBackgroundServiceStreamInfo { } pub fn VideoEncodingResolutionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VideoEncodingResolutionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VideoEncodingResolutionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVideoEncodingResolutionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2325,12 +2325,12 @@ impl AppBroadcastBackgroundServiceStreamInfo { } pub fn VideoEncodingBitrateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VideoEncodingBitrateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VideoEncodingBitrateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVideoEncodingBitrateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2575,9 +2575,9 @@ impl AppBroadcastManager { } pub fn ApplyGlobalSettings(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IAppBroadcastManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ApplyGlobalSettings)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IAppBroadcastManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ApplyGlobalSettings)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn GetProviderSettings() -> windows_core::Result { Self::IAppBroadcastManagerStatics(|this| unsafe { @@ -2587,9 +2587,9 @@ impl AppBroadcastManager { } pub fn ApplyProviderSettings(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IAppBroadcastManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ApplyProviderSettings)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IAppBroadcastManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ApplyProviderSettings)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[doc(hidden)] pub fn IAppBroadcastManagerStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -2708,10 +2708,10 @@ impl AppBroadcastPlugInManager { } pub fn SetDefaultPlugIn(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultPlugIn)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultPlugIn)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GetDefault() -> windows_core::Result { Self::IAppBroadcastPlugInManagerStatics(|this| unsafe { @@ -2722,11 +2722,11 @@ impl AppBroadcastPlugInManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppBroadcastPlugInManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2797,12 +2797,12 @@ impl AppBroadcastPreview { } pub fn PreviewStateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PreviewStateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PreviewStateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePreviewStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2912,12 +2912,12 @@ impl AppBroadcastPreviewStreamReader { } pub fn VideoFrameArrived(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VideoFrameArrived)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VideoFrameArrived)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVideoFrameArrived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3163,12 +3163,12 @@ impl AppBroadcastServices { } pub fn EnterBroadcastModeAsync(&self, plugin: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnterBroadcastModeAsync)(windows_core::Interface::as_raw(this), plugin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EnterBroadcastModeAsync)(windows_core::Interface::as_raw(this), plugin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ExitBroadcastMode(&self, reason: AppBroadcastExitBroadcastModeReason) -> windows_core::Result<()> { @@ -3367,10 +3367,10 @@ impl AppBroadcastState { #[cfg(feature = "Security_Authentication_Web")] pub fn SetAuthenticationResult(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAuthenticationResult)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAuthenticationResult)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetSignInState(&self, value: AppBroadcastSignInState) -> windows_core::Result<()> { let this = self; @@ -3399,12 +3399,12 @@ impl AppBroadcastState { } pub fn ViewerCountChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ViewerCountChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ViewerCountChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveViewerCountChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3413,12 +3413,12 @@ impl AppBroadcastState { } pub fn MicrophoneCaptureStateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MicrophoneCaptureStateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MicrophoneCaptureStateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMicrophoneCaptureStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3427,12 +3427,12 @@ impl AppBroadcastState { } pub fn CameraCaptureStateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CameraCaptureStateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CameraCaptureStateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCameraCaptureStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3441,12 +3441,12 @@ impl AppBroadcastState { } pub fn PlugInStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlugInStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlugInStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlugInStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3455,12 +3455,12 @@ impl AppBroadcastState { } pub fn StreamStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StreamStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StreamStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStreamStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3469,12 +3469,12 @@ impl AppBroadcastState { } pub fn CaptureTargetClosed(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CaptureTargetClosed)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CaptureTargetClosed)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCaptureTargetClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3647,12 +3647,12 @@ impl AppBroadcastStreamReader { } pub fn AudioFrameArrived(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioFrameArrived)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioFrameArrived)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioFrameArrived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3661,12 +3661,12 @@ impl AppBroadcastStreamReader { } pub fn VideoFrameArrived(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VideoFrameArrived)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VideoFrameArrived)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVideoFrameArrived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3865,12 +3865,12 @@ impl AppCapture { } pub fn CapturingChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CapturingChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CapturingChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCapturingChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4195,9 +4195,9 @@ impl AppCaptureManager { } pub fn ApplySettings(appcapturesettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IAppCaptureManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ApplySettings)(windows_core::Interface::as_raw(this), appcapturesettings.into_param().abi()).ok() }) + Self::IAppCaptureManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ApplySettings)(windows_core::Interface::as_raw(this), appcapturesettings.param().abi()).ok() }) } #[doc(hidden)] pub fn IAppCaptureManagerStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -4262,12 +4262,12 @@ impl AppCaptureMetadataWriter { } pub fn MetadataPurged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MetadataPurged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MetadataPurged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMetadataPurged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4370,12 +4370,12 @@ impl AppCaptureRecordOperation { } pub fn StateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4384,12 +4384,12 @@ impl AppCaptureRecordOperation { } pub fn DurationGenerated(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DurationGenerated)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DurationGenerated)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDurationGenerated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4398,12 +4398,12 @@ impl AppCaptureRecordOperation { } pub fn FileGenerated(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FileGenerated)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FileGenerated)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFileGenerated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4509,10 +4509,10 @@ impl AppCaptureSettings { #[cfg(feature = "Storage")] pub fn SetAppCaptureDestinationFolder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppCaptureDestinationFolder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppCaptureDestinationFolder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage")] pub fn AppCaptureDestinationFolder(&self) -> windows_core::Result { @@ -4646,10 +4646,10 @@ impl AppCaptureSettings { #[cfg(feature = "Storage")] pub fn SetScreenshotDestinationFolder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetScreenshotDestinationFolder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetScreenshotDestinationFolder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage")] pub fn ScreenshotDestinationFolder(&self) -> windows_core::Result { @@ -4872,12 +4872,12 @@ impl AppCaptureState { } pub fn MicrophoneCaptureStateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MicrophoneCaptureStateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MicrophoneCaptureStateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMicrophoneCaptureStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4886,12 +4886,12 @@ impl AppCaptureState { } pub fn CaptureTargetClosed(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CaptureTargetClosed)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CaptureTargetClosed)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCaptureTargetClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5095,9 +5095,9 @@ pub struct CameraOptionsUI; impl CameraOptionsUI { pub fn Show(mediacapture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ICameraOptionsUIStatics(|this| unsafe { (windows_core::Interface::vtable(this).Show)(windows_core::Interface::as_raw(this), mediacapture.into_param().abi()).ok() }) + Self::ICameraOptionsUIStatics(|this| unsafe { (windows_core::Interface::vtable(this).Show)(windows_core::Interface::as_raw(this), mediacapture.param().abi()).ok() }) } #[doc(hidden)] pub fn ICameraOptionsUIStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -5167,23 +5167,23 @@ impl CapturedFrame { #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, buffer: P0, count: u32, options: super::super::Storage::Streams::InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -5474,12 +5474,12 @@ impl GameBarServices { } pub fn CommandReceived(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CommandReceived)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CommandReceived)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCommandReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5538,12 +5538,12 @@ windows_core::imp::interface_hierarchy!(GameBarServicesManager, windows_core::IU impl GameBarServicesManager { pub fn GameBarServicesCreated(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GameBarServicesCreated)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GameBarServicesCreated)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGameBarServicesCreated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5770,12 +5770,12 @@ impl LowLagPhotoSequenceCapture { } pub fn PhotoCaptured(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PhotoCaptured)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PhotoCaptured)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePhotoCaptured(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5819,60 +5819,60 @@ impl MediaCapture { } pub fn InitializeWithSettingsAsync(&self, mediacaptureinitializationsettings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InitializeWithSettingsAsync)(windows_core::Interface::as_raw(this), mediacaptureinitializationsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InitializeWithSettingsAsync)(windows_core::Interface::as_raw(this), mediacaptureinitializationsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_MediaProperties", feature = "Storage"))] pub fn StartRecordToStorageFileAsync(&self, encodingprofile: P0, file: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartRecordToStorageFileAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartRecordToStorageFileAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_MediaProperties", feature = "Storage_Streams"))] pub fn StartRecordToStreamAsync(&self, encodingprofile: P0, stream: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartRecordToStreamAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartRecordToStreamAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] pub fn StartRecordToCustomSinkAsync(&self, encodingprofile: P0, custommediasink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartRecordToCustomSinkAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), custommediasink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartRecordToCustomSinkAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), custommediasink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] pub fn StartRecordToCustomSinkIdAsync(&self, encodingprofile: P0, customsinkactivationid: &windows_core::HSTRING, customsinksettings: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartRecordToCustomSinkIdAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), core::mem::transmute_copy(customsinkactivationid), customsinksettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartRecordToCustomSinkIdAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), core::mem::transmute_copy(customsinkactivationid), customsinksettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StopRecordAsync(&self) -> windows_core::Result { @@ -5885,36 +5885,36 @@ impl MediaCapture { #[cfg(all(feature = "Media_MediaProperties", feature = "Storage"))] pub fn CapturePhotoToStorageFileAsync(&self, r#type: P0, file: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CapturePhotoToStorageFileAsync)(windows_core::Interface::as_raw(this), r#type.into_param().abi(), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CapturePhotoToStorageFileAsync)(windows_core::Interface::as_raw(this), r#type.param().abi(), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_MediaProperties", feature = "Storage_Streams"))] pub fn CapturePhotoToStreamAsync(&self, r#type: P0, stream: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CapturePhotoToStreamAsync)(windows_core::Interface::as_raw(this), r#type.into_param().abi(), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CapturePhotoToStreamAsync)(windows_core::Interface::as_raw(this), r#type.param().abi(), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn AddEffectAsync(&self, mediastreamtype: MediaStreamType, effectactivationid: &windows_core::HSTRING, effectsettings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddEffectAsync)(windows_core::Interface::as_raw(this), mediastreamtype, core::mem::transmute_copy(effectactivationid), effectsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddEffectAsync)(windows_core::Interface::as_raw(this), mediastreamtype, core::mem::transmute_copy(effectactivationid), effectsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ClearEffectsAsync(&self, mediastreamtype: MediaStreamType) -> windows_core::Result { @@ -5926,10 +5926,10 @@ impl MediaCapture { } pub fn SetEncoderProperty(&self, mediastreamtype: MediaStreamType, propertyid: windows_core::GUID, propertyvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEncoderProperty)(windows_core::Interface::as_raw(this), mediastreamtype, propertyid, propertyvalue.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEncoderProperty)(windows_core::Interface::as_raw(this), mediastreamtype, propertyid, propertyvalue.param().abi()).ok() } } pub fn GetEncoderProperty(&self, mediastreamtype: MediaStreamType, propertyid: windows_core::GUID) -> windows_core::Result { let this = self; @@ -5940,12 +5940,12 @@ impl MediaCapture { } pub fn Failed(&self, erroreventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Failed)(windows_core::Interface::as_raw(this), erroreventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Failed)(windows_core::Interface::as_raw(this), erroreventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFailed(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5954,12 +5954,12 @@ impl MediaCapture { } pub fn RecordLimitationExceeded(&self, recordlimitationexceededeventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecordLimitationExceeded)(windows_core::Interface::as_raw(this), recordlimitationexceededeventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecordLimitationExceeded)(windows_core::Interface::as_raw(this), recordlimitationexceededeventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRecordLimitationExceeded(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6025,104 +6025,104 @@ impl MediaCapture { #[cfg(all(feature = "Media_MediaProperties", feature = "Storage"))] pub fn PrepareLowLagRecordToStorageFileAsync(&self, encodingprofile: P0, file: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareLowLagRecordToStorageFileAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareLowLagRecordToStorageFileAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_MediaProperties", feature = "Storage_Streams"))] pub fn PrepareLowLagRecordToStreamAsync(&self, encodingprofile: P0, stream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareLowLagRecordToStreamAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareLowLagRecordToStreamAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] pub fn PrepareLowLagRecordToCustomSinkAsync(&self, encodingprofile: P0, custommediasink: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareLowLagRecordToCustomSinkAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), custommediasink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareLowLagRecordToCustomSinkAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), custommediasink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] pub fn PrepareLowLagRecordToCustomSinkIdAsync(&self, encodingprofile: P0, customsinkactivationid: &windows_core::HSTRING, customsinksettings: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareLowLagRecordToCustomSinkIdAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), core::mem::transmute_copy(customsinkactivationid), customsinksettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareLowLagRecordToCustomSinkIdAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), core::mem::transmute_copy(customsinkactivationid), customsinksettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] pub fn PrepareLowLagPhotoCaptureAsync(&self, r#type: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareLowLagPhotoCaptureAsync)(windows_core::Interface::as_raw(this), r#type.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareLowLagPhotoCaptureAsync)(windows_core::Interface::as_raw(this), r#type.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] pub fn PrepareLowLagPhotoSequenceCaptureAsync(&self, r#type: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareLowLagPhotoSequenceCaptureAsync)(windows_core::Interface::as_raw(this), r#type.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareLowLagPhotoSequenceCaptureAsync)(windows_core::Interface::as_raw(this), r#type.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] pub fn SetEncodingPropertiesAsync(&self, mediastreamtype: MediaStreamType, mediaencodingproperties: P0, encoderproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetEncodingPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), encoderproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetEncodingPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.param().abi(), encoderproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_Capture_Core", feature = "Media_MediaProperties"))] pub fn PrepareVariablePhotoSequenceCaptureAsync(&self, r#type: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareVariablePhotoSequenceCaptureAsync)(windows_core::Interface::as_raw(this), r#type.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareVariablePhotoSequenceCaptureAsync)(windows_core::Interface::as_raw(this), r#type.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FocusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FocusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FocusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFocusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6131,12 +6131,12 @@ impl MediaCapture { } pub fn PhotoConfirmationCaptured(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PhotoConfirmationCaptured)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PhotoConfirmationCaptured)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePhotoConfirmationCaptured(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6146,23 +6146,23 @@ impl MediaCapture { #[cfg(feature = "Media_Effects")] pub fn AddAudioEffectAsync(&self, definition: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddAudioEffectAsync)(windows_core::Interface::as_raw(this), definition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddAudioEffectAsync)(windows_core::Interface::as_raw(this), definition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Effects")] pub fn AddVideoEffectAsync(&self, definition: P0, mediastreamtype: MediaStreamType) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddVideoEffectAsync)(windows_core::Interface::as_raw(this), definition.into_param().abi(), mediastreamtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddVideoEffectAsync)(windows_core::Interface::as_raw(this), definition.param().abi(), mediastreamtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Devices")] @@ -6182,12 +6182,12 @@ impl MediaCapture { } pub fn CameraStreamStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CameraStreamStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CameraStreamStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCameraStreamStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6211,22 +6211,22 @@ impl MediaCapture { } pub fn GetPreviewFrameCopyAsync(&self, destination: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPreviewFrameCopyAsync)(windows_core::Interface::as_raw(this), destination.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPreviewFrameCopyAsync)(windows_core::Interface::as_raw(this), destination.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ThermalStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ThermalStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ThermalStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveThermalStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6243,22 +6243,22 @@ impl MediaCapture { #[cfg(feature = "Media_MediaProperties")] pub fn PrepareAdvancedPhotoCaptureAsync(&self, encodingproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareAdvancedPhotoCaptureAsync)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareAdvancedPhotoCaptureAsync)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveEffectAsync(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveEffectAsync)(windows_core::Interface::as_raw(this), effect.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveEffectAsync)(windows_core::Interface::as_raw(this), effect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Devices")] @@ -6287,44 +6287,44 @@ impl MediaCapture { #[cfg(feature = "Media_Capture_Frames")] pub fn CreateFrameReaderAsync(&self, inputsource: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFrameReaderAsync)(windows_core::Interface::as_raw(this), inputsource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFrameReaderAsync)(windows_core::Interface::as_raw(this), inputsource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Capture_Frames")] pub fn CreateFrameReaderWithSubtypeAsync(&self, inputsource: P0, outputsubtype: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFrameReaderWithSubtypeAsync)(windows_core::Interface::as_raw(this), inputsource.into_param().abi(), core::mem::transmute_copy(outputsubtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFrameReaderWithSubtypeAsync)(windows_core::Interface::as_raw(this), inputsource.param().abi(), core::mem::transmute_copy(outputsubtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Graphics_Imaging", feature = "Media_Capture_Frames"))] pub fn CreateFrameReaderWithSubtypeAndSizeAsync(&self, inputsource: P0, outputsubtype: &windows_core::HSTRING, outputsize: super::super::Graphics::Imaging::BitmapSize) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFrameReaderWithSubtypeAndSizeAsync)(windows_core::Interface::as_raw(this), inputsource.into_param().abi(), core::mem::transmute_copy(outputsubtype), outputsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFrameReaderWithSubtypeAndSizeAsync)(windows_core::Interface::as_raw(this), inputsource.param().abi(), core::mem::transmute_copy(outputsubtype), outputsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CaptureDeviceExclusiveControlStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CaptureDeviceExclusiveControlStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CaptureDeviceExclusiveControlStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCaptureDeviceExclusiveControlStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6334,23 +6334,23 @@ impl MediaCapture { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] pub fn CreateMultiSourceFrameReaderAsync(&self, inputsources: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMultiSourceFrameReaderAsync)(windows_core::Interface::as_raw(this), inputsources.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMultiSourceFrameReaderAsync)(windows_core::Interface::as_raw(this), inputsources.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "UI_WindowManagement")] pub fn CreateRelativePanelWatcher(&self, capturemode: StreamingCaptureMode, displayregion: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRelativePanelWatcher)(windows_core::Interface::as_raw(this), capturemode, displayregion.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRelativePanelWatcher)(windows_core::Interface::as_raw(this), capturemode, displayregion.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsVideoProfileSupported(videodeviceid: &windows_core::HSTRING) -> windows_core::Result { @@ -6390,25 +6390,25 @@ impl MediaCapture { #[cfg(feature = "Media_MediaProperties")] pub fn StartPreviewToCustomSinkAsync(&self, encodingprofile: P0, custommediasink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartPreviewToCustomSinkAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), custommediasink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartPreviewToCustomSinkAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), custommediasink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] pub fn StartPreviewToCustomSinkIdAsync(&self, encodingprofile: P0, customsinkactivationid: &windows_core::HSTRING, customsinksettings: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartPreviewToCustomSinkIdAsync)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), core::mem::transmute_copy(customsinkactivationid), customsinksettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartPreviewToCustomSinkIdAsync)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), core::mem::transmute_copy(customsinkactivationid), customsinksettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StopPreviewAsync(&self) -> windows_core::Result { @@ -6603,10 +6603,10 @@ impl MediaCaptureInitializationSettings { #[cfg(feature = "Media_Core")] pub fn SetAudioSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAudioSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAudioSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Media_Core")] pub fn AudioSource(&self) -> windows_core::Result { @@ -6619,10 +6619,10 @@ impl MediaCaptureInitializationSettings { #[cfg(feature = "Media_Core")] pub fn SetVideoSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetVideoSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetVideoSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Media_Core")] pub fn VideoSource(&self) -> windows_core::Result { @@ -6641,10 +6641,10 @@ impl MediaCaptureInitializationSettings { } pub fn SetVideoProfile(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetVideoProfile)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetVideoProfile)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PreviewMediaDescription(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -6655,10 +6655,10 @@ impl MediaCaptureInitializationSettings { } pub fn SetPreviewMediaDescription(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPreviewMediaDescription)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPreviewMediaDescription)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RecordMediaDescription(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -6669,10 +6669,10 @@ impl MediaCaptureInitializationSettings { } pub fn SetRecordMediaDescription(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRecordMediaDescription)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRecordMediaDescription)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PhotoMediaDescription(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -6683,10 +6683,10 @@ impl MediaCaptureInitializationSettings { } pub fn SetPhotoMediaDescription(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPhotoMediaDescription)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPhotoMediaDescription)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Media_Capture_Frames")] pub fn SourceGroup(&self) -> windows_core::Result { @@ -6699,10 +6699,10 @@ impl MediaCaptureInitializationSettings { #[cfg(feature = "Media_Capture_Frames")] pub fn SetSourceGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSourceGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSourceGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SharingMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -6748,10 +6748,10 @@ impl MediaCaptureInitializationSettings { #[cfg(feature = "Security_Credentials")] pub fn SetDeviceUriPasswordCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDeviceUriPasswordCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDeviceUriPasswordCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DeviceUri(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -6762,10 +6762,10 @@ impl MediaCaptureInitializationSettings { } pub fn SetDeviceUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDeviceUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDeviceUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for MediaCaptureInitializationSettings { @@ -6835,12 +6835,12 @@ impl MediaCaptureRelativePanelWatcher { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -7308,12 +7308,12 @@ impl ScreenCapture { } pub fn SourceSuspensionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceSuspensionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceSuspensionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceSuspensionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -8334,11 +8334,11 @@ impl MediaCaptureFailedEventHandler { } pub fn Invoke(&self, sender: P0, erroreventargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), erroreventargs.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), erroreventargs.param().abi()).ok() } } } #[repr(C)] @@ -8395,10 +8395,10 @@ impl RecordLimitationExceededEventHandler { } pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Media/Casting/mod.rs b/crates/libs/windows/src/Windows/Media/Casting/mod.rs index ac653d0a58..a590f40572 100644 --- a/crates/libs/windows/src/Windows/Media/Casting/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Casting/mod.rs @@ -146,19 +146,19 @@ impl CastingConnection { } pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -167,12 +167,12 @@ impl CastingConnection { } pub fn ErrorOccurred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveErrorOccurred(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -181,12 +181,12 @@ impl CastingConnection { } pub fn RequestStartCastingAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestStartCastingAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestStartCastingAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DisconnectAsync(&self) -> windows_core::Result> { @@ -294,11 +294,11 @@ impl CastingDevice { } pub fn GetDeviceSelectorFromCastingSourceAsync(castingsource: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICastingDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDeviceSelectorFromCastingSourceAsync)(windows_core::Interface::as_raw(this), castingsource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDeviceSelectorFromCastingSourceAsync)(windows_core::Interface::as_raw(this), castingsource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FromIdAsync(value: &windows_core::HSTRING) -> windows_core::Result> { @@ -310,11 +310,11 @@ impl CastingDevice { #[cfg(feature = "Devices_Enumeration")] pub fn DeviceInfoSupportsCastingAsync(device: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICastingDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeviceInfoSupportsCastingAsync)(windows_core::Interface::as_raw(this), device.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeviceInfoSupportsCastingAsync)(windows_core::Interface::as_raw(this), device.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -364,12 +364,12 @@ impl CastingDevicePicker { } pub fn CastingDeviceSelected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CastingDeviceSelected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CastingDeviceSelected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCastingDeviceSelected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -378,12 +378,12 @@ impl CastingDevicePicker { } pub fn CastingDevicePickerDismissed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CastingDevicePickerDismissed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CastingDevicePickerDismissed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCastingDevicePickerDismissed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -514,10 +514,10 @@ impl CastingSource { } pub fn SetPreferredSourceUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPreferredSourceUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPreferredSourceUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for CastingSource { diff --git a/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs b/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs index 8d312d0691..22fa95b7b2 100644 --- a/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs +++ b/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs @@ -116,11 +116,11 @@ impl ClosedCaptionProperties { } pub fn PropertiesChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IClosedCaptionPropertiesStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PropertiesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PropertiesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemovePropertiesChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs b/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs index e8fc0c2260..5fc201e184 100644 --- a/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs +++ b/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs @@ -147,10 +147,10 @@ impl RatedContentDescription { #[cfg(feature = "Storage_Streams")] pub fn SetImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Category(&self) -> windows_core::Result { let this = self; @@ -174,10 +174,10 @@ impl RatedContentDescription { #[cfg(feature = "Foundation_Collections")] pub fn SetRatings(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRatings)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRatings)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(id: &windows_core::HSTRING, title: &windows_core::HSTRING, category: RatedContentCategory) -> windows_core::Result { Self::IRatedContentDescriptionFactory(|this| unsafe { @@ -224,32 +224,32 @@ impl RatedContentRestrictions { } pub fn GetRestrictionLevelAsync(&self, ratedcontentdescription: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetRestrictionLevelAsync)(windows_core::Interface::as_raw(this), ratedcontentdescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetRestrictionLevelAsync)(windows_core::Interface::as_raw(this), ratedcontentdescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestContentAccessAsync(&self, ratedcontentdescription: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestContentAccessAsync)(windows_core::Interface::as_raw(this), ratedcontentdescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestContentAccessAsync)(windows_core::Interface::as_raw(this), ratedcontentdescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RestrictionsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RestrictionsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RestrictionsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRestrictionsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/Control/mod.rs b/crates/libs/windows/src/Windows/Media/Control/mod.rs index 6069c0740a..e45e0da341 100644 --- a/crates/libs/windows/src/Windows/Media/Control/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Control/mod.rs @@ -329,12 +329,12 @@ impl GlobalSystemMediaTransportControlsSession { } pub fn TimelinePropertiesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TimelinePropertiesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TimelinePropertiesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTimelinePropertiesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -343,12 +343,12 @@ impl GlobalSystemMediaTransportControlsSession { } pub fn PlaybackInfoChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackInfoChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackInfoChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlaybackInfoChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -357,12 +357,12 @@ impl GlobalSystemMediaTransportControlsSession { } pub fn MediaPropertiesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MediaPropertiesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MediaPropertiesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMediaPropertiesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -404,12 +404,12 @@ impl GlobalSystemMediaTransportControlsSessionManager { } pub fn CurrentSessionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrentSessionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CurrentSessionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCurrentSessionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -418,12 +418,12 @@ impl GlobalSystemMediaTransportControlsSessionManager { } pub fn SessionsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SessionsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SessionsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSessionsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/Core/Preview/mod.rs b/crates/libs/windows/src/Windows/Media/Core/Preview/mod.rs index a030e74d76..528a8fe829 100644 --- a/crates/libs/windows/src/Windows/Media/Core/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Core/Preview/mod.rs @@ -19,11 +19,11 @@ impl SoundLevelBroker { } pub fn SoundLevelChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISoundLevelBrokerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SoundLevelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SoundLevelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveSoundLevelChanged(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/Core/mod.rs b/crates/libs/windows/src/Windows/Media/Core/mod.rs index cc200cff64..2e3d990e81 100644 --- a/crates/libs/windows/src/Windows/Media/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Core/mod.rs @@ -1239,12 +1239,12 @@ windows_core::imp::interface_hierarchy!(ISingleSelectMediaTrackList, windows_cor impl ISingleSelectMediaTrackList { pub fn SelectedIndexChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectedIndexChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectedIndexChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSelectedIndexChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1773,10 +1773,10 @@ impl AudioStreamDescriptor { } pub fn SetLeadingEncoderPadding(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetLeadingEncoderPadding)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLeadingEncoderPadding)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LeadingEncoderPadding(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1787,10 +1787,10 @@ impl AudioStreamDescriptor { } pub fn SetTrailingEncoderPadding(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTrailingEncoderPadding)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTrailingEncoderPadding)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TrailingEncoderPadding(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1809,11 +1809,11 @@ impl AudioStreamDescriptor { #[cfg(feature = "Media_MediaProperties")] pub fn Create(encodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAudioStreamDescriptorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsSelected(&self) -> windows_core::Result { @@ -1882,12 +1882,12 @@ windows_core::imp::required_hierarchy!(AudioTrack, IMediaTrack); impl AudioTrack { pub fn OpenFailed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenFailed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OpenFailed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOpenFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2530,10 +2530,10 @@ impl DataCue { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn Data(&self) -> windows_core::Result { @@ -2652,12 +2652,12 @@ impl FaceDetectionEffect { } pub fn FaceDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FaceDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FaceDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFaceDetected(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2667,10 +2667,10 @@ impl FaceDetectionEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.param().abi()).ok() } } } impl windows_core::RuntimeType for FaceDetectionEffect { @@ -2792,10 +2792,10 @@ impl FaceDetectionEffectFrame { } pub fn SetRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -2806,10 +2806,10 @@ impl FaceDetectionEffectFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SystemRelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -2820,10 +2820,10 @@ impl FaceDetectionEffectFrame { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -2964,10 +2964,10 @@ impl ImageCue { #[cfg(feature = "Graphics_Imaging")] pub fn SetSoftwareBitmap(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSoftwareBitmap)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSoftwareBitmap)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Graphics_Imaging")] pub fn SoftwareBitmap(&self) -> windows_core::Result { @@ -3081,11 +3081,11 @@ impl LowLightFusion { #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] pub fn FuseAsync(frameset: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ILowLightFusionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FuseAsync)(windows_core::Interface::as_raw(this), frameset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FuseAsync)(windows_core::Interface::as_raw(this), frameset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3142,12 +3142,12 @@ impl MediaBinder { } pub fn Binding(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Binding)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Binding)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBinding(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3192,12 +3192,12 @@ windows_core::imp::interface_hierarchy!(MediaBindingEventArgs, windows_core::IUn impl MediaBindingEventArgs { pub fn Canceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCanceled(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3220,50 +3220,50 @@ impl MediaBindingEventArgs { } pub fn SetUri(&self, uri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), uri.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), uri.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn SetStream(&self, stream: P0, contenttype: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStream)(windows_core::Interface::as_raw(this), stream.into_param().abi(), core::mem::transmute_copy(contenttype)).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStream)(windows_core::Interface::as_raw(this), stream.param().abi(), core::mem::transmute_copy(contenttype)).ok() } } #[cfg(feature = "Storage_Streams")] pub fn SetStreamReference(&self, stream: P0, contenttype: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStreamReference)(windows_core::Interface::as_raw(this), stream.into_param().abi(), core::mem::transmute_copy(contenttype)).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStreamReference)(windows_core::Interface::as_raw(this), stream.param().abi(), core::mem::transmute_copy(contenttype)).ok() } } #[cfg(feature = "Media_Streaming_Adaptive")] pub fn SetAdaptiveMediaSource(&self, mediasource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAdaptiveMediaSource)(windows_core::Interface::as_raw(this), mediasource.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAdaptiveMediaSource)(windows_core::Interface::as_raw(this), mediasource.param().abi()).ok() } } #[cfg(feature = "Storage")] pub fn SetStorageFile(&self, file: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetStorageFile)(windows_core::Interface::as_raw(this), file.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStorageFile)(windows_core::Interface::as_raw(this), file.param().abi()).ok() } } #[cfg(feature = "Networking_BackgroundTransfer")] pub fn SetDownloadOperation(&self, downloadoperation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDownloadOperation)(windows_core::Interface::as_raw(this), downloadoperation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDownloadOperation)(windows_core::Interface::as_raw(this), downloadoperation.param().abi()).ok() } } } impl windows_core::RuntimeType for MediaBindingEventArgs { @@ -3316,12 +3316,12 @@ impl MediaSource { } pub fn OpenOperationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenOperationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OpenOperationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOpenOperationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3368,12 +3368,12 @@ impl MediaSource { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3438,106 +3438,106 @@ impl MediaSource { #[cfg(feature = "Media_Streaming_Adaptive")] pub fn CreateFromAdaptiveMediaSource(mediasource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromAdaptiveMediaSource)(windows_core::Interface::as_raw(this), mediasource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromAdaptiveMediaSource)(windows_core::Interface::as_raw(this), mediasource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromMediaStreamSource(mediasource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromMediaStreamSource)(windows_core::Interface::as_raw(this), mediasource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromMediaStreamSource)(windows_core::Interface::as_raw(this), mediasource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromMseStreamSource(mediasource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromMseStreamSource)(windows_core::Interface::as_raw(this), mediasource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromMseStreamSource)(windows_core::Interface::as_raw(this), mediasource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromIMediaSource(mediasource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIMediaSource)(windows_core::Interface::as_raw(this), mediasource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIMediaSource)(windows_core::Interface::as_raw(this), mediasource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn CreateFromStorageFile(file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStorageFile)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStorageFile)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStream(stream: P0, contenttype: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStream)(windows_core::Interface::as_raw(this), stream.into_param().abi(), core::mem::transmute_copy(contenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStream)(windows_core::Interface::as_raw(this), stream.param().abi(), core::mem::transmute_copy(contenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamReference(stream: P0, contenttype: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamReference)(windows_core::Interface::as_raw(this), stream.into_param().abi(), core::mem::transmute_copy(contenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamReference)(windows_core::Interface::as_raw(this), stream.param().abi(), core::mem::transmute_copy(contenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromUri(uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUri)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUri)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromMediaBinder(binder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromMediaBinder)(windows_core::Interface::as_raw(this), binder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromMediaBinder)(windows_core::Interface::as_raw(this), binder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Media_Capture_Frames")] pub fn CreateFromMediaFrameSource(framesource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromMediaFrameSource)(windows_core::Interface::as_raw(this), framesource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromMediaFrameSource)(windows_core::Interface::as_raw(this), framesource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Networking_BackgroundTransfer")] pub fn CreateFromDownloadOperation(downloadoperation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromDownloadOperation)(windows_core::Interface::as_raw(this), downloadoperation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromDownloadOperation)(windows_core::Interface::as_raw(this), downloadoperation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3580,12 +3580,12 @@ windows_core::imp::interface_hierarchy!(MediaSourceAppServiceConnection, windows impl MediaSourceAppServiceConnection { pub fn InitializeMediaStreamSourceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InitializeMediaStreamSourceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InitializeMediaStreamSourceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInitializeMediaStreamSourceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3599,11 +3599,11 @@ impl MediaSourceAppServiceConnection { #[cfg(feature = "ApplicationModel_AppService")] pub fn Create(appserviceconnection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaSourceAppServiceConnectionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), appserviceconnection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), appserviceconnection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3711,12 +3711,12 @@ windows_core::imp::interface_hierarchy!(MediaStreamSample, windows_core::IUnknow impl MediaStreamSample { pub fn Processed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Processed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Processed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProcessed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3808,31 +3808,31 @@ impl MediaStreamSample { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(buffer: P0, timestamp: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaStreamSampleStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), timestamp, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi(), timestamp, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamAsync(stream: P0, count: u32, timestamp: super::super::Foundation::TimeSpan) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaStreamSampleStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), count, timestamp, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), count, timestamp, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateFromDirect3D11Surface(surface: P0, timestamp: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaStreamSampleStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromDirect3D11Surface)(windows_core::Interface::as_raw(this), surface.into_param().abi(), timestamp, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromDirect3D11Surface)(windows_core::Interface::as_raw(this), surface.param().abi(), timestamp, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3911,12 +3911,12 @@ impl MediaStreamSamplePropertySet { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: windows_core::GUID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key, value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key, value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -4013,12 +4013,12 @@ windows_core::imp::required_hierarchy!(MediaStreamSource, IMediaSource); impl MediaStreamSource { pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4027,12 +4027,12 @@ impl MediaStreamSource { } pub fn Starting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Starting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Starting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4041,12 +4041,12 @@ impl MediaStreamSource { } pub fn Paused(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Paused)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Paused)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePaused(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4055,12 +4055,12 @@ impl MediaStreamSource { } pub fn SampleRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SampleRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SampleRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSampleRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4069,12 +4069,12 @@ impl MediaStreamSource { } pub fn SwitchStreamsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SwitchStreamsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SwitchStreamsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSwitchStreamsRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4087,18 +4087,18 @@ impl MediaStreamSource { } pub fn AddStreamDescriptor(&self, descriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddStreamDescriptor)(windows_core::Interface::as_raw(this), descriptor.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddStreamDescriptor)(windows_core::Interface::as_raw(this), descriptor.param().abi()).ok() } } #[cfg(feature = "Media_Protection")] pub fn SetMediaProtectionManager(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMediaProtectionManager)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMediaProtectionManager)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Media_Protection")] pub fn MediaProtectionManager(&self) -> windows_core::Result { @@ -4164,10 +4164,10 @@ impl MediaStreamSource { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn Thumbnail(&self) -> windows_core::Result { @@ -4179,19 +4179,19 @@ impl MediaStreamSource { } pub fn AddProtectionKey(&self, streamdescriptor: P0, keyidentifier: &[u8], licensedata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddProtectionKey)(windows_core::Interface::as_raw(this), streamdescriptor.into_param().abi(), keyidentifier.len().try_into().unwrap(), keyidentifier.as_ptr(), licensedata.len().try_into().unwrap(), licensedata.as_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddProtectionKey)(windows_core::Interface::as_raw(this), streamdescriptor.param().abi(), keyidentifier.len().try_into().unwrap(), keyidentifier.as_ptr(), licensedata.len().try_into().unwrap(), licensedata.as_ptr()).ok() } } pub fn SampleRendered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SampleRendered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SampleRendered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSampleRendered(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4200,10 +4200,10 @@ impl MediaStreamSource { } pub fn SetMaxSupportedPlaybackRate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetMaxSupportedPlaybackRate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxSupportedPlaybackRate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxSupportedPlaybackRate(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -4225,21 +4225,21 @@ impl MediaStreamSource { } pub fn CreateFromDescriptor(descriptor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaStreamSourceFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromDescriptor)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromDescriptor)(windows_core::Interface::as_raw(this), descriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromDescriptors(descriptor: P0, descriptor2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IMediaStreamSourceFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromDescriptors)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), descriptor2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromDescriptors)(windows_core::Interface::as_raw(this), descriptor.param().abi(), descriptor2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -4356,10 +4356,10 @@ impl MediaStreamSourceSampleRequest { } pub fn SetSample(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSample)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSample)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Sample(&self) -> windows_core::Result { let this = self; @@ -4608,12 +4608,12 @@ windows_core::imp::interface_hierarchy!(MseSourceBuffer, windows_core::IUnknown, impl MseSourceBuffer { pub fn UpdateStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UpdateStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdateStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4622,12 +4622,12 @@ impl MseSourceBuffer { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4636,12 +4636,12 @@ impl MseSourceBuffer { } pub fn UpdateEnded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateEnded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UpdateEnded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdateEnded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4650,12 +4650,12 @@ impl MseSourceBuffer { } pub fn ErrorOccurred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveErrorOccurred(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4664,12 +4664,12 @@ impl MseSourceBuffer { } pub fn Aborted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Aborted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Aborted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAborted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4733,34 +4733,34 @@ impl MseSourceBuffer { } pub fn SetAppendWindowEnd(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppendWindowEnd)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppendWindowEnd)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn AppendBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AppendBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AppendBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn AppendStream(&self, stream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AppendStream)(windows_core::Interface::as_raw(this), stream.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AppendStream)(windows_core::Interface::as_raw(this), stream.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn AppendStreamMaxSize(&self, stream: P0, maxsize: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AppendStreamMaxSize)(windows_core::Interface::as_raw(this), stream.into_param().abi(), maxsize).ok() } + unsafe { (windows_core::Interface::vtable(this).AppendStreamMaxSize)(windows_core::Interface::as_raw(this), stream.param().abi(), maxsize).ok() } } pub fn Abort(&self) -> windows_core::Result<()> { let this = self; @@ -4768,10 +4768,10 @@ impl MseSourceBuffer { } pub fn Remove(&self, start: super::super::Foundation::TimeSpan, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), start, end.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), start, end.param().abi()).ok() } } } impl windows_core::RuntimeType for MseSourceBuffer { @@ -4793,12 +4793,12 @@ windows_core::imp::interface_hierarchy!(MseSourceBufferList, windows_core::IUnkn impl MseSourceBufferList { pub fn SourceBufferAdded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceBufferAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceBufferAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceBufferAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4807,12 +4807,12 @@ impl MseSourceBufferList { } pub fn SourceBufferRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceBufferRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceBufferRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceBufferRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4855,12 +4855,12 @@ impl MseStreamSource { } pub fn Opened(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Opened)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Opened)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOpened(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4869,12 +4869,12 @@ impl MseStreamSource { } pub fn Ended(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Ended)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Ended)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4883,12 +4883,12 @@ impl MseStreamSource { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4925,10 +4925,10 @@ impl MseStreamSource { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AddSourceBuffer(&self, mimetype: &windows_core::HSTRING) -> windows_core::Result { let this = self; @@ -4939,10 +4939,10 @@ impl MseStreamSource { } pub fn RemoveSourceBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveSourceBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveSourceBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } pub fn EndOfStream(&self, status: MseEndOfStreamStatus) -> windows_core::Result<()> { let this = self; @@ -4957,10 +4957,10 @@ impl MseStreamSource { } pub fn SetLiveSeekableRange(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetLiveSeekableRange)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLiveSeekableRange)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsContentTypeSupported(contenttype: &windows_core::HSTRING) -> windows_core::Result { Self::IMseStreamSourceStatics(|this| unsafe { @@ -4995,10 +4995,10 @@ impl SceneAnalysisEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.param().abi()).ok() } } pub fn HighDynamicRangeAnalyzer(&self) -> windows_core::Result { let this = self; @@ -5020,12 +5020,12 @@ impl SceneAnalysisEffect { } pub fn SceneAnalyzed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SceneAnalyzed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SceneAnalyzed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSceneAnalyzed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5122,10 +5122,10 @@ impl SceneAnalysisEffectFrame { } pub fn SetRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -5136,10 +5136,10 @@ impl SceneAnalysisEffectFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SystemRelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -5150,10 +5150,10 @@ impl SceneAnalysisEffectFrame { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -5307,10 +5307,10 @@ impl SpeechCue { } pub fn SetStartPositionInInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStartPositionInInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStartPositionInInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EndPositionInInput(&self) -> windows_core::Result> { let this = self; @@ -5321,10 +5321,10 @@ impl SpeechCue { } pub fn SetEndPositionInInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEndPositionInInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEndPositionInInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for SpeechCue { @@ -5403,11 +5403,11 @@ impl TimedMetadataStreamDescriptor { #[cfg(feature = "Media_MediaProperties")] pub fn Create(encodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITimedMetadataStreamDescriptorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -5468,12 +5468,12 @@ impl TimedMetadataTrack { } pub fn CueEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CueEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CueEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCueEntered(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5482,12 +5482,12 @@ impl TimedMetadataTrack { } pub fn CueExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CueExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CueExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCueExited(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5496,12 +5496,12 @@ impl TimedMetadataTrack { } pub fn TrackFailed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrackFailed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrackFailed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTrackFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5540,17 +5540,17 @@ impl TimedMetadataTrack { } pub fn AddCue(&self, cue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddCue)(windows_core::Interface::as_raw(this), cue.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddCue)(windows_core::Interface::as_raw(this), cue.param().abi()).ok() } } pub fn RemoveCue(&self, cue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveCue)(windows_core::Interface::as_raw(this), cue.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveCue)(windows_core::Interface::as_raw(this), cue.param().abi()).ok() } } #[cfg(feature = "Media_Playback")] pub fn PlaybackItem(&self) -> windows_core::Result { @@ -5756,10 +5756,10 @@ impl TimedTextCue { } pub fn SetCueRegion(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCueRegion)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCueRegion)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CueStyle(&self) -> windows_core::Result { let this = self; @@ -5770,10 +5770,10 @@ impl TimedTextCue { } pub fn SetCueStyle(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCueStyle)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCueStyle)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Lines(&self) -> windows_core::Result> { @@ -6068,12 +6068,12 @@ windows_core::imp::interface_hierarchy!(TimedTextSource, windows_core::IUnknown, impl TimedTextSource { pub fn Resolved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Resolved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Resolved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveResolved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6083,81 +6083,81 @@ impl TimedTextSource { #[cfg(feature = "Storage_Streams")] pub fn CreateFromStream(stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITimedTextSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStream)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStream)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromUri(uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITimedTextSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUri)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUri)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamWithLanguage(stream: P0, defaultlanguage: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITimedTextSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamWithLanguage)(windows_core::Interface::as_raw(this), stream.into_param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamWithLanguage)(windows_core::Interface::as_raw(this), stream.param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromUriWithLanguage(uri: P0, defaultlanguage: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITimedTextSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUriWithLanguage)(windows_core::Interface::as_raw(this), uri.into_param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUriWithLanguage)(windows_core::Interface::as_raw(this), uri.param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamWithIndex(stream: P0, indexstream: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ITimedTextSourceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamWithIndex)(windows_core::Interface::as_raw(this), stream.into_param().abi(), indexstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamWithIndex)(windows_core::Interface::as_raw(this), stream.param().abi(), indexstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromUriWithIndex(uri: P0, indexuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ITimedTextSourceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUriWithIndex)(windows_core::Interface::as_raw(this), uri.into_param().abi(), indexuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUriWithIndex)(windows_core::Interface::as_raw(this), uri.param().abi(), indexuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamWithIndexAndLanguage(stream: P0, indexstream: P1, defaultlanguage: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ITimedTextSourceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamWithIndexAndLanguage)(windows_core::Interface::as_raw(this), stream.into_param().abi(), indexstream.into_param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamWithIndexAndLanguage)(windows_core::Interface::as_raw(this), stream.param().abi(), indexstream.param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromUriWithIndexAndLanguage(uri: P0, indexuri: P1, defaultlanguage: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ITimedTextSourceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUriWithIndexAndLanguage)(windows_core::Interface::as_raw(this), uri.into_param().abi(), indexuri.into_param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUriWithIndexAndLanguage)(windows_core::Interface::as_raw(this), uri.param().abi(), indexuri.param().abi(), core::mem::transmute_copy(defaultlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -6502,10 +6502,10 @@ impl TimedTextSubformat { } pub fn SetSubformatStyle(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSubformatStyle)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSubformatStyle)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for TimedTextSubformat { @@ -6529,10 +6529,10 @@ impl VideoStabilizationEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.param().abi()).ok() } } pub fn SetEnabled(&self, value: bool) -> windows_core::Result<()> { let this = self; @@ -6547,12 +6547,12 @@ impl VideoStabilizationEffect { } pub fn EnabledChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnabledChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6562,13 +6562,13 @@ impl VideoStabilizationEffect { #[cfg(all(feature = "Media_Capture", feature = "Media_Devices", feature = "Media_MediaProperties"))] pub fn GetRecommendedStreamConfiguration(&self, controller: P0, desiredproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetRecommendedStreamConfiguration)(windows_core::Interface::as_raw(this), controller.into_param().abi(), desiredproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetRecommendedStreamConfiguration)(windows_core::Interface::as_raw(this), controller.param().abi(), desiredproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -6724,11 +6724,11 @@ impl VideoStreamDescriptor { #[cfg(feature = "Media_MediaProperties")] pub fn Create(encodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVideoStreamDescriptorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -6789,12 +6789,12 @@ impl VideoTrack { } pub fn OpenFailed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenFailed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OpenFailed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOpenFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs index 2962b9d4e1..a1e3660439 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs @@ -426,42 +426,42 @@ impl DepthCorrelatedCoordinateMapper { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn UnprojectPoint(&self, sourcepoint: super::super::super::Foundation::Point, targetcoordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprojectPoint)(windows_core::Interface::as_raw(this), sourcepoint, targetcoordinatesystem.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnprojectPoint)(windows_core::Interface::as_raw(this), sourcepoint, targetcoordinatesystem.param().abi(), &mut result__).map(|| result__) } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn UnprojectPoints(&self, sourcepoints: &[super::super::super::Foundation::Point], targetcoordinatesystem: P0, results: &mut [super::super::super::Foundation::Numerics::Vector3]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UnprojectPoints)(windows_core::Interface::as_raw(this), sourcepoints.len().try_into().unwrap(), sourcepoints.as_ptr(), targetcoordinatesystem.into_param().abi(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).UnprojectPoints)(windows_core::Interface::as_raw(this), sourcepoints.len().try_into().unwrap(), sourcepoints.as_ptr(), targetcoordinatesystem.param().abi(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } } #[cfg(feature = "Perception_Spatial")] pub fn MapPoint(&self, sourcepoint: super::super::super::Foundation::Point, targetcoordinatesystem: P0, targetcameraintrinsics: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapPoint)(windows_core::Interface::as_raw(this), sourcepoint, targetcoordinatesystem.into_param().abi(), targetcameraintrinsics.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapPoint)(windows_core::Interface::as_raw(this), sourcepoint, targetcoordinatesystem.param().abi(), targetcameraintrinsics.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Perception_Spatial")] pub fn MapPoints(&self, sourcepoints: &[super::super::super::Foundation::Point], targetcoordinatesystem: P0, targetcameraintrinsics: P1, results: &mut [super::super::super::Foundation::Point]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).MapPoints)(windows_core::Interface::as_raw(this), sourcepoints.len().try_into().unwrap(), sourcepoints.as_ptr(), targetcoordinatesystem.into_param().abi(), targetcameraintrinsics.into_param().abi(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).MapPoints)(windows_core::Interface::as_raw(this), sourcepoints.len().try_into().unwrap(), sourcepoints.as_ptr(), targetcoordinatesystem.param().abi(), targetcameraintrinsics.param().abi(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } } } impl windows_core::RuntimeType for DepthCorrelatedCoordinateMapper { @@ -583,10 +583,10 @@ impl FrameController { } pub fn SetPhotoConfirmationEnabled(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPhotoConfirmationEnabled)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPhotoConfirmationEnabled)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn FlashControl(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -710,10 +710,10 @@ impl FrameExposureCompensationControl { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for FrameExposureCompensationControl { @@ -751,10 +751,10 @@ impl FrameExposureControl { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for FrameExposureControl { @@ -922,10 +922,10 @@ impl FrameFocusControl { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for FrameFocusControl { @@ -1007,10 +1007,10 @@ impl FrameIsoSpeedControl { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for FrameIsoSpeedControl { @@ -1056,12 +1056,12 @@ impl VariablePhotoSequenceController { #[cfg(feature = "Media_MediaProperties")] pub fn GetHighestConcurrentFrameRate(&self, captureproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(windows_core::Interface::as_raw(this), captureproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(windows_core::Interface::as_raw(this), captureproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] diff --git a/crates/libs/windows/src/Windows/Media/Devices/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/mod.rs index e57c934f00..5249d1cdb2 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/mod.rs @@ -707,12 +707,12 @@ impl IMediaDeviceController { #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn SetMediaStreamPropertiesAsync(&self, mediastreamtype: super::Capture::MediaStreamType, mediaencodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1077,10 +1077,10 @@ impl AdvancedPhotoControl { } pub fn Configure(&self, settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Configure)(windows_core::Interface::as_raw(this), settings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Configure)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() } } } impl windows_core::RuntimeType for AdvancedPhotoControl { @@ -1142,12 +1142,12 @@ impl AudioDeviceController { #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn SetMediaStreamPropertiesAsync(&self, mediastreamtype: super::Capture::MediaStreamType, mediaencodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1204,12 +1204,12 @@ impl AudioDeviceModule { #[cfg(feature = "Storage_Streams")] pub fn SendCommandAsync(&self, command: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendCommandAsync)(windows_core::Interface::as_raw(this), command.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendCommandAsync)(windows_core::Interface::as_raw(this), command.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1263,12 +1263,12 @@ windows_core::imp::interface_hierarchy!(AudioDeviceModulesManager, windows_core: impl AudioDeviceModulesManager { pub fn ModuleNotificationReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ModuleNotificationReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ModuleNotificationReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveModuleNotificationReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1351,12 +1351,12 @@ impl CallControl { } pub fn AnswerRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AnswerRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AnswerRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAnswerRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1365,12 +1365,12 @@ impl CallControl { } pub fn HangUpRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HangUpRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HangUpRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHangUpRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1379,12 +1379,12 @@ impl CallControl { } pub fn DialRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DialRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DialRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDialRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1393,12 +1393,12 @@ impl CallControl { } pub fn RedialRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RedialRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RedialRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRedialRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1407,12 +1407,12 @@ impl CallControl { } pub fn KeypadPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeypadPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeypadPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeypadPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1421,12 +1421,12 @@ impl CallControl { } pub fn AudioTransferRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioTransferRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioTransferRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioTransferRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1484,12 +1484,12 @@ impl CameraOcclusionInfo { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1818,10 +1818,10 @@ impl DigitalWindowControl { } pub fn ConfigureWithBounds(&self, digitalwindowmode: DigitalWindowMode, digitalwindowbounds: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ConfigureWithBounds)(windows_core::Interface::as_raw(this), digitalwindowmode, digitalwindowbounds.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureWithBounds)(windows_core::Interface::as_raw(this), digitalwindowmode, digitalwindowbounds.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SupportedCapabilities(&self) -> windows_core::Result> { @@ -2267,10 +2267,10 @@ impl FocusControl { } pub fn Configure(&self, settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Configure)(windows_core::Interface::as_raw(this), settings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Configure)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() } } } impl windows_core::RuntimeType for FocusControl { @@ -2326,10 +2326,10 @@ impl FocusSettings { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Distance(&self) -> windows_core::Result> { let this = self; @@ -2340,10 +2340,10 @@ impl FocusSettings { } pub fn SetDistance(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDistance)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDistance)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn WaitForFocus(&self) -> windows_core::Result { let this = self; @@ -2629,12 +2629,12 @@ impl LowLagPhotoControl { #[cfg(feature = "Media_MediaProperties")] pub fn GetHighestConcurrentFrameRate(&self, captureproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(windows_core::Interface::as_raw(this), captureproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(windows_core::Interface::as_raw(this), captureproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] @@ -2749,12 +2749,12 @@ impl LowLagPhotoSequenceControl { #[cfg(feature = "Media_MediaProperties")] pub fn GetHighestConcurrentFrameRate(&self, captureproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(windows_core::Interface::as_raw(this), captureproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(windows_core::Interface::as_raw(this), captureproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] @@ -2852,11 +2852,11 @@ impl MediaDevice { } pub fn DefaultAudioCaptureDeviceChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DefaultAudioCaptureDeviceChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DefaultAudioCaptureDeviceChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveDefaultAudioCaptureDeviceChanged(cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2864,11 +2864,11 @@ impl MediaDevice { } pub fn DefaultAudioRenderDeviceChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DefaultAudioRenderDeviceChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DefaultAudioRenderDeviceChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveDefaultAudioRenderDeviceChanged(cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3291,23 +3291,23 @@ impl RegionsOfInterestControl { #[cfg(feature = "Foundation_Collections")] pub fn SetRegionsAsync(&self, regions: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetRegionsAsync)(windows_core::Interface::as_raw(this), regions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetRegionsAsync)(windows_core::Interface::as_raw(this), regions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SetRegionsWithLockAsync(&self, regions: P0, lockvalues: bool) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetRegionsWithLockAsync)(windows_core::Interface::as_raw(this), regions.into_param().abi(), lockvalues, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetRegionsWithLockAsync)(windows_core::Interface::as_raw(this), regions.param().abi(), lockvalues, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ClearRegionsAsync(&self) -> windows_core::Result { @@ -3447,10 +3447,10 @@ windows_core::imp::required_hierarchy!(VideoDeviceController, IMediaDeviceContro impl VideoDeviceController { pub fn SetDeviceProperty(&self, propertyid: &windows_core::HSTRING, propertyvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDeviceProperty)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), propertyvalue.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDeviceProperty)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), propertyvalue.param().abi()).ok() } } pub fn GetDeviceProperty(&self, propertyid: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3632,32 +3632,32 @@ impl VideoDeviceController { } pub fn GetDevicePropertyById(&self, propertyid: &windows_core::HSTRING, maxpropertyvaluesize: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDevicePropertyById)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), maxpropertyvaluesize.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDevicePropertyById)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), maxpropertyvaluesize.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetDevicePropertyById(&self, propertyid: &windows_core::HSTRING, propertyvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetDevicePropertyById)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), propertyvalue.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetDevicePropertyById)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyid), propertyvalue.param().abi(), &mut result__).map(|| result__) } } pub fn GetDevicePropertyByExtendedId(&self, extendedpropertyid: &[u8], maxpropertyvaluesize: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDevicePropertyByExtendedId)(windows_core::Interface::as_raw(this), extendedpropertyid.len().try_into().unwrap(), extendedpropertyid.as_ptr(), maxpropertyvaluesize.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDevicePropertyByExtendedId)(windows_core::Interface::as_raw(this), extendedpropertyid.len().try_into().unwrap(), extendedpropertyid.as_ptr(), maxpropertyvaluesize.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetDevicePropertyByExtendedId(&self, extendedpropertyid: &[u8], propertyvalue: &[u8]) -> windows_core::Result { @@ -3714,12 +3714,12 @@ impl VideoDeviceController { #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn SetMediaStreamPropertiesAsync(&self, mediastreamtype: super::Capture::MediaStreamType, mediaencodingproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Brightness(&self) -> windows_core::Result { @@ -4035,10 +4035,10 @@ impl ZoomControl { } pub fn Configure(&self, settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Configure)(windows_core::Interface::as_raw(this), settings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Configure)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() } } } impl windows_core::RuntimeType for ZoomControl { @@ -4656,10 +4656,10 @@ impl CallControlEventHandler { } pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[repr(C)] @@ -4716,11 +4716,11 @@ impl DialRequestedEventHandler { } pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[repr(C)] @@ -4777,11 +4777,11 @@ impl KeypadPressedEventHandler { } pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[repr(C)] @@ -4838,11 +4838,11 @@ impl RedialRequestedEventHandler { } pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs b/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs index 5d10aa9f3d..d9d83a3bff 100644 --- a/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs +++ b/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs @@ -279,11 +279,11 @@ impl DialDevice { #[cfg(feature = "Devices_Enumeration")] pub fn DeviceInfoSupportsDialAsync(device: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDialDeviceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeviceInfoSupportsDialAsync)(windows_core::Interface::as_raw(this), device.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeviceInfoSupportsDialAsync)(windows_core::Interface::as_raw(this), device.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -333,12 +333,12 @@ impl DialDevicePicker { } pub fn DialDeviceSelected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DialDeviceSelected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DialDeviceSelected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDialDeviceSelected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -347,12 +347,12 @@ impl DialDevicePicker { } pub fn DisconnectButtonClicked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisconnectButtonClicked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DisconnectButtonClicked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisconnectButtonClicked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -361,12 +361,12 @@ impl DialDevicePicker { } pub fn DialDevicePickerDismissed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DialDevicePickerDismissed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DialDevicePickerDismissed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDialDevicePickerDismissed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -403,10 +403,10 @@ impl DialDevicePicker { } pub fn SetDisplayStatus(&self, device: P0, status: DialDeviceDisplayStatus) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDisplayStatus)(windows_core::Interface::as_raw(this), device.into_param().abi(), status).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDisplayStatus)(windows_core::Interface::as_raw(this), device.param().abi(), status).ok() } } } impl windows_core::RuntimeType for DialDevicePicker { @@ -513,12 +513,12 @@ impl DialReceiverApp { #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalDataAsync(&self, additionaldata: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAdditionalDataAsync)(windows_core::Interface::as_raw(this), additionaldata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAdditionalDataAsync)(windows_core::Interface::as_raw(this), additionaldata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetUniqueDeviceNameAsync(&self) -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Media/Editing/mod.rs b/crates/libs/windows/src/Windows/Media/Editing/mod.rs index 032b2aa9d1..8a1841dd20 100644 --- a/crates/libs/windows/src/Windows/Media/Editing/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Editing/mod.rs @@ -366,21 +366,21 @@ impl BackgroundAudioTrack { } pub fn CreateFromEmbeddedAudioTrack(embeddedaudiotrack: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBackgroundAudioTrackStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromEmbeddedAudioTrack)(windows_core::Interface::as_raw(this), embeddedaudiotrack.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromEmbeddedAudioTrack)(windows_core::Interface::as_raw(this), embeddedaudiotrack.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn CreateFromFileAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBackgroundAudioTrackStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -561,31 +561,31 @@ impl MediaClip { #[cfg(feature = "Storage")] pub fn CreateFromFileAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaClipStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn CreateFromImageFileAsync(file: P0, originalduration: super::super::Foundation::TimeSpan) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaClipStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromImageFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), originalduration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromImageFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), originalduration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateFromSurface(surface: P0, originalduration: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaClipStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromSurface)(windows_core::Interface::as_raw(this), surface.into_param().abi(), originalduration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromSurface)(windows_core::Interface::as_raw(this), surface.param().abi(), originalduration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -664,12 +664,12 @@ impl MediaComposition { #[cfg(feature = "Storage")] pub fn SaveAsync(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Graphics_Imaging", feature = "Storage_Streams"))] @@ -683,46 +683,46 @@ impl MediaComposition { #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging", feature = "Storage_Streams"))] pub fn GetThumbnailsAsync(&self, timesfromstart: P0, scaledwidth: i32, scaledheight: i32, frameprecision: VideoFramePrecision) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetThumbnailsAsync)(windows_core::Interface::as_raw(this), timesfromstart.into_param().abi(), scaledwidth, scaledheight, frameprecision, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetThumbnailsAsync)(windows_core::Interface::as_raw(this), timesfromstart.param().abi(), scaledwidth, scaledheight, frameprecision, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_Transcoding", feature = "Storage"))] pub fn RenderToFileAsync(&self, destination: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderToFileAsync)(windows_core::Interface::as_raw(this), destination.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RenderToFileAsync)(windows_core::Interface::as_raw(this), destination.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_Transcoding", feature = "Storage"))] pub fn RenderToFileWithTrimmingPreferenceAsync(&self, destination: P0, trimmingpreference: MediaTrimmingPreference) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderToFileWithTrimmingPreferenceAsync)(windows_core::Interface::as_raw(this), destination.into_param().abi(), trimmingpreference, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RenderToFileWithTrimmingPreferenceAsync)(windows_core::Interface::as_raw(this), destination.param().abi(), trimmingpreference, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_MediaProperties", feature = "Media_Transcoding", feature = "Storage"))] pub fn RenderToFileWithProfileAsync(&self, destination: P0, trimmingpreference: MediaTrimmingPreference, encodingprofile: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderToFileWithProfileAsync)(windows_core::Interface::as_raw(this), destination.into_param().abi(), trimmingpreference, encodingprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RenderToFileWithProfileAsync)(windows_core::Interface::as_raw(this), destination.param().abi(), trimmingpreference, encodingprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_MediaProperties")] @@ -744,12 +744,12 @@ impl MediaComposition { #[cfg(all(feature = "Media_Core", feature = "Media_MediaProperties"))] pub fn GenerateMediaStreamSourceWithProfile(&self, encodingprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GenerateMediaStreamSourceWithProfile)(windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GenerateMediaStreamSourceWithProfile)(windows_core::Interface::as_raw(this), encodingprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Media_Core")] @@ -771,11 +771,11 @@ impl MediaComposition { #[cfg(feature = "Storage")] pub fn LoadAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaCompositionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -861,20 +861,20 @@ impl MediaOverlay { } pub fn Create(clip: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaOverlayFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), clip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), clip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithPositionAndOpacity(clip: P0, position: super::super::Foundation::Rect, opacity: f64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaOverlayFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithPositionAndOpacity)(windows_core::Interface::as_raw(this), clip.into_param().abi(), position, opacity, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithPositionAndOpacity)(windows_core::Interface::as_raw(this), clip.param().abi(), position, opacity, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -933,11 +933,11 @@ impl MediaOverlayLayer { #[cfg(feature = "Media_Effects")] pub fn CreateWithCompositorDefinition(compositordefinition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaOverlayLayerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithCompositorDefinition)(windows_core::Interface::as_raw(this), compositordefinition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithCompositorDefinition)(windows_core::Interface::as_raw(this), compositordefinition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Media/Effects/mod.rs b/crates/libs/windows/src/Windows/Media/Effects/mod.rs index 0ac12fefa7..09328f780f 100644 --- a/crates/libs/windows/src/Windows/Media/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Effects/mod.rs @@ -148,17 +148,17 @@ impl IBasicAudioEffect { #[cfg(feature = "Media_MediaProperties")] pub fn SetEncodingProperties(&self, encodingproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), encodingproperties.param().abi()).ok() } } pub fn ProcessFrame(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessFrame)(windows_core::Interface::as_raw(this), context.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessFrame)(windows_core::Interface::as_raw(this), context.param().abi()).ok() } } pub fn Close(&self, reason: MediaEffectClosedReason) -> windows_core::Result<()> { let this = self; @@ -171,10 +171,10 @@ impl IBasicAudioEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.param().abi()).ok() } } } impl windows_core::RuntimeType for IBasicAudioEffect { @@ -232,18 +232,18 @@ impl IBasicVideoEffect { #[cfg(all(feature = "Graphics_DirectX_Direct3D11", feature = "Media_MediaProperties"))] pub fn SetEncodingProperties(&self, encodingproperties: P0, device: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), device.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), encodingproperties.param().abi(), device.param().abi()).ok() } } pub fn ProcessFrame(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessFrame)(windows_core::Interface::as_raw(this), context.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessFrame)(windows_core::Interface::as_raw(this), context.param().abi()).ok() } } pub fn Close(&self, reason: MediaEffectClosedReason) -> windows_core::Result<()> { let this = self; @@ -256,10 +256,10 @@ impl IBasicVideoEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.param().abi()).ok() } } } impl windows_core::RuntimeType for IBasicVideoEffect { @@ -345,18 +345,18 @@ impl IVideoCompositor { #[cfg(all(feature = "Graphics_DirectX_Direct3D11", feature = "Media_MediaProperties"))] pub fn SetEncodingProperties(&self, backgroundproperties: P0, device: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), backgroundproperties.into_param().abi(), device.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEncodingProperties)(windows_core::Interface::as_raw(this), backgroundproperties.param().abi(), device.param().abi()).ok() } } pub fn CompositeFrame(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CompositeFrame)(windows_core::Interface::as_raw(this), context.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CompositeFrame)(windows_core::Interface::as_raw(this), context.param().abi()).ok() } } pub fn Close(&self, reason: MediaEffectClosedReason) -> windows_core::Result<()> { let this = self; @@ -369,10 +369,10 @@ impl IVideoCompositor { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.param().abi()).ok() } } } impl windows_core::RuntimeType for IVideoCompositor { @@ -574,12 +574,12 @@ windows_core::imp::interface_hierarchy!(AudioCaptureEffectsManager, windows_core impl AudioCaptureEffectsManager { pub fn AudioCaptureEffectsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioCaptureEffectsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioCaptureEffectsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioCaptureEffectsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -662,11 +662,11 @@ impl AudioEffectDefinition { #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(activatableclassid: &windows_core::HSTRING, props: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAudioEffectDefinitionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), props.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), props.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -733,12 +733,12 @@ windows_core::imp::interface_hierarchy!(AudioRenderEffectsManager, windows_core: impl AudioRenderEffectsManager { pub fn AudioRenderEffectsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioRenderEffectsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioRenderEffectsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioRenderEffectsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -817,12 +817,12 @@ impl CompositeVideoFrameContext { #[cfg(all(feature = "Graphics_DirectX_Direct3D11", feature = "Media_Editing"))] pub fn GetOverlayForSurface(&self, surfacetooverlay: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetOverlayForSurface)(windows_core::Interface::as_raw(this), surfacetooverlay.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetOverlayForSurface)(windows_core::Interface::as_raw(this), surfacetooverlay.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -984,11 +984,11 @@ impl VideoCompositorDefinition { #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(activatableclassid: &windows_core::HSTRING, props: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVideoCompositorDefinitionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), props.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), props.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1039,11 +1039,11 @@ impl VideoEffectDefinition { #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(activatableclassid: &windows_core::HSTRING, props: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVideoEffectDefinitionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), props.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), props.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs b/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs index 964a87eaed..f99d05aa82 100644 --- a/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs +++ b/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs @@ -140,23 +140,23 @@ impl FaceDetector { #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] pub fn DetectFacesAsync(&self, image: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DetectFacesAsync)(windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DetectFacesAsync)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] pub fn DetectFacesWithSearchAreaAsync(&self, image: P0, searcharea: super::super::Graphics::Imaging::BitmapBounds) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DetectFacesWithSearchAreaAsync)(windows_core::Interface::as_raw(this), image.into_param().abi(), searcharea, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DetectFacesWithSearchAreaAsync)(windows_core::Interface::as_raw(this), image.param().abi(), searcharea, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Graphics_Imaging")] @@ -237,12 +237,12 @@ impl FaceTracker { #[cfg(feature = "Foundation_Collections")] pub fn ProcessNextFrameAsync(&self, videoframe: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProcessNextFrameAsync)(windows_core::Interface::as_raw(this), videoframe.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProcessNextFrameAsync)(windows_core::Interface::as_raw(this), videoframe.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Graphics_Imaging")] diff --git a/crates/libs/windows/src/Windows/Media/Import/mod.rs b/crates/libs/windows/src/Windows/Media/Import/mod.rs index 69910c7138..d01d611316 100644 --- a/crates/libs/windows/src/Windows/Media/Import/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Import/mod.rs @@ -622,12 +622,12 @@ impl PhotoImportFindItemsResult { } pub fn SelectionChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectionChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectionChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSelectionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -643,12 +643,12 @@ impl PhotoImportFindItemsResult { } pub fn ItemImported(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemImported)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemImported)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemImported(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1068,10 +1068,10 @@ impl PhotoImportSession { #[cfg(feature = "Storage")] pub fn SetDestinationFolder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDestinationFolder)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDestinationFolder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage")] pub fn DestinationFolder(&self) -> windows_core::Result { @@ -1330,11 +1330,11 @@ impl PhotoImportSource { #[cfg(feature = "Storage")] pub fn FromFolderAsync(sourcerootfolder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPhotoImportSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromFolderAsync)(windows_core::Interface::as_raw(this), sourcerootfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromFolderAsync)(windows_core::Interface::as_raw(this), sourcerootfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs b/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs index ba2fbf1cc8..fcca71f313 100644 --- a/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs +++ b/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs @@ -1276,10 +1276,10 @@ impl MediaEncodingProfile { } pub fn SetAudio(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAudio)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAudio)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Audio(&self) -> windows_core::Result { let this = self; @@ -1290,10 +1290,10 @@ impl MediaEncodingProfile { } pub fn SetVideo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetVideo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetVideo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Video(&self) -> windows_core::Result { let this = self; @@ -1304,10 +1304,10 @@ impl MediaEncodingProfile { } pub fn SetContainer(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContainer)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContainer)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Container(&self) -> windows_core::Result { let this = self; @@ -1319,10 +1319,10 @@ impl MediaEncodingProfile { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn SetAudioTracks(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAudioTracks)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAudioTracks)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn GetAudioTracks(&self) -> windows_core::Result> { @@ -1335,10 +1335,10 @@ impl MediaEncodingProfile { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn SetVideoTracks(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetVideoTracks)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetVideoTracks)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn GetVideoTracks(&self) -> windows_core::Result> { @@ -1351,10 +1351,10 @@ impl MediaEncodingProfile { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn SetTimedMetadataTracks(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTimedMetadataTracks)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTimedMetadataTracks)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn GetTimedMetadataTracks(&self) -> windows_core::Result> { @@ -1397,21 +1397,21 @@ impl MediaEncodingProfile { #[cfg(feature = "Storage")] pub fn CreateFromFileAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaEncodingProfileStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamAsync(stream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaEncodingProfileStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWav(quality: AudioEncodingQuality) -> windows_core::Result { @@ -1908,12 +1908,12 @@ impl MediaPropertySet { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: windows_core::GUID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key, value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key, value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] diff --git a/crates/libs/windows/src/Windows/Media/Miracast/mod.rs b/crates/libs/windows/src/Windows/Media/Miracast/mod.rs index aa304f55db..9490e59afb 100644 --- a/crates/libs/windows/src/Windows/Media/Miracast/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Miracast/mod.rs @@ -320,22 +320,22 @@ impl MiracastReceiver { } pub fn DisconnectAllAndApplySettings(&self, settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisconnectAllAndApplySettings)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DisconnectAllAndApplySettings)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DisconnectAllAndApplySettingsAsync(&self, settings: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisconnectAllAndApplySettingsAsync)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DisconnectAllAndApplySettingsAsync)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetStatus(&self) -> windows_core::Result { @@ -354,12 +354,12 @@ impl MiracastReceiver { } pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -369,23 +369,23 @@ impl MiracastReceiver { #[cfg(feature = "ApplicationModel_Core")] pub fn CreateSession(&self, view: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSession)(windows_core::Interface::as_raw(this), view.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSession)(windows_core::Interface::as_raw(this), view.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "ApplicationModel_Core")] pub fn CreateSessionAsync(&self, view: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSessionAsync)(windows_core::Interface::as_raw(this), view.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSessionAsync)(windows_core::Interface::as_raw(this), view.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ClearKnownTransmitters(&self) -> windows_core::Result<()> { @@ -394,10 +394,10 @@ impl MiracastReceiver { } pub fn RemoveKnownTransmitter(&self, transmitter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveKnownTransmitter)(windows_core::Interface::as_raw(this), transmitter.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveKnownTransmitter)(windows_core::Interface::as_raw(this), transmitter.param().abi()).ok() } } } impl windows_core::RuntimeType for MiracastReceiver { @@ -602,12 +602,12 @@ impl MiracastReceiverCursorImageChannel { } pub fn ImageStreamChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImageStreamChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ImageStreamChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveImageStreamChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -616,12 +616,12 @@ impl MiracastReceiverCursorImageChannel { } pub fn PositionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePositionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -751,12 +751,12 @@ impl MiracastReceiverGameControllerDevice { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -840,12 +840,12 @@ impl MiracastReceiverKeyboardDevice { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -924,12 +924,12 @@ impl MiracastReceiverSession { } pub fn ConnectionCreated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionCreated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionCreated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionCreated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -938,12 +938,12 @@ impl MiracastReceiverSession { } pub fn MediaSourceCreated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MediaSourceCreated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MediaSourceCreated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMediaSourceCreated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -952,12 +952,12 @@ impl MiracastReceiverSession { } pub fn Disconnected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Disconnected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Disconnected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1193,19 +1193,19 @@ impl MiracastReceiverStreamControl { } pub fn SuggestVideoStreamSettings(&self, settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SuggestVideoStreamSettings)(windows_core::Interface::as_raw(this), settings.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SuggestVideoStreamSettings)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() } } pub fn SuggestVideoStreamSettingsAsync(&self, settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SuggestVideoStreamSettingsAsync)(windows_core::Interface::as_raw(this), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SuggestVideoStreamSettingsAsync)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MuteAudio(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Media/Ocr/mod.rs b/crates/libs/windows/src/Windows/Media/Ocr/mod.rs index 1c8d99bc35..92372ca2be 100644 --- a/crates/libs/windows/src/Windows/Media/Ocr/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Ocr/mod.rs @@ -81,12 +81,12 @@ impl OcrEngine { #[cfg(feature = "Graphics_Imaging")] pub fn RecognizeAsync(&self, bitmap: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), bitmap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Globalization")] @@ -113,21 +113,21 @@ impl OcrEngine { #[cfg(feature = "Globalization")] pub fn IsLanguageSupported(language: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IOcrEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsLanguageSupported)(windows_core::Interface::as_raw(this), language.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsLanguageSupported)(windows_core::Interface::as_raw(this), language.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "Globalization")] pub fn TryCreateFromLanguage(language: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IOcrEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateFromLanguage)(windows_core::Interface::as_raw(this), language.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateFromLanguage)(windows_core::Interface::as_raw(this), language.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn TryCreateFromUserProfileLanguages() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs index 6341d6e929..82ff20ef46 100644 --- a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs +++ b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs @@ -462,12 +462,12 @@ impl PlayToConnection { #[cfg(feature = "deprecated")] pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -478,12 +478,12 @@ impl PlayToConnection { #[cfg(feature = "deprecated")] pub fn Transferred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Transferred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Transferred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -494,12 +494,12 @@ impl PlayToConnection { #[cfg(feature = "deprecated")] pub fn Error(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Error)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Error)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -662,12 +662,12 @@ impl PlayToManager { #[cfg(feature = "deprecated")] pub fn SourceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -678,12 +678,12 @@ impl PlayToManager { #[cfg(feature = "deprecated")] pub fn SourceSelected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceSelected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceSelected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -753,12 +753,12 @@ impl PlayToReceiver { } pub fn PlayRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlayRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlayRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlayRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -767,12 +767,12 @@ impl PlayToReceiver { } pub fn PauseRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PauseRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PauseRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePauseRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -781,12 +781,12 @@ impl PlayToReceiver { } pub fn SourceChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceChangeRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -795,12 +795,12 @@ impl PlayToReceiver { } pub fn PlaybackRateChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackRateChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackRateChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlaybackRateChangeRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -809,12 +809,12 @@ impl PlayToReceiver { } pub fn CurrentTimeChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrentTimeChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CurrentTimeChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCurrentTimeChangeRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -823,12 +823,12 @@ impl PlayToReceiver { } pub fn MuteChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MuteChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MuteChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMuteChangeRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -837,12 +837,12 @@ impl PlayToReceiver { } pub fn VolumeChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VolumeChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VolumeChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVolumeChangeRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -851,12 +851,12 @@ impl PlayToReceiver { } pub fn TimeUpdateRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TimeUpdateRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TimeUpdateRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTimeUpdateRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -865,12 +865,12 @@ impl PlayToReceiver { } pub fn StopRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StopRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StopRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1029,10 +1029,10 @@ impl PlayToSource { #[cfg(feature = "deprecated")] pub fn SetNext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNext)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNext)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn PlayNext(&self) -> windows_core::Result<()> { @@ -1050,10 +1050,10 @@ impl PlayToSource { #[cfg(feature = "deprecated")] pub fn SetPreferredSourceUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPreferredSourceUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPreferredSourceUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } #[cfg(feature = "deprecated")] @@ -1136,10 +1136,10 @@ impl PlayToSourceRequest { #[cfg(feature = "deprecated")] pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } #[cfg(feature = "deprecated")] diff --git a/crates/libs/windows/src/Windows/Media/Playback/mod.rs b/crates/libs/windows/src/Windows/Media/Playback/mod.rs index 212d98e1ab..387f373627 100644 --- a/crates/libs/windows/src/Windows/Media/Playback/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Playback/mod.rs @@ -190,10 +190,10 @@ impl IMediaEnginePlaybackSource { #[cfg(feature = "deprecated")] pub fn SetPlaybackSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPlaybackSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPlaybackSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } } #[cfg(feature = "deprecated")] @@ -1192,11 +1192,11 @@ impl BackgroundMediaPlayer { #[cfg(feature = "deprecated")] pub fn MessageReceivedFromBackground(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IBackgroundMediaPlayerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceivedFromBackground)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceivedFromBackground)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1206,11 +1206,11 @@ impl BackgroundMediaPlayer { #[cfg(feature = "deprecated")] pub fn MessageReceivedFromForeground(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IBackgroundMediaPlayerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceivedFromForeground)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceivedFromForeground)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1220,16 +1220,16 @@ impl BackgroundMediaPlayer { #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn SendMessageToBackground(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SendMessageToBackground)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SendMessageToBackground)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn SendMessageToForeground(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SendMessageToForeground)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SendMessageToForeground)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[cfg(feature = "deprecated")] pub fn IsMediaPlaying() -> windows_core::Result { @@ -1399,12 +1399,12 @@ windows_core::imp::interface_hierarchy!(MediaBreakManager, windows_core::IUnknow impl MediaBreakManager { pub fn BreaksSeekedOver(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BreaksSeekedOver)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BreaksSeekedOver)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBreaksSeekedOver(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1413,12 +1413,12 @@ impl MediaBreakManager { } pub fn BreakStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BreakStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BreakStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBreakStarted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1427,12 +1427,12 @@ impl MediaBreakManager { } pub fn BreakEnded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BreakEnded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BreakEnded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBreakEnded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1441,12 +1441,12 @@ impl MediaBreakManager { } pub fn BreakSkipped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BreakSkipped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BreakSkipped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBreakSkipped(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1469,10 +1469,10 @@ impl MediaBreakManager { } pub fn PlayBreak(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PlayBreak)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PlayBreak)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SkipCurrentBreak(&self) -> windows_core::Result<()> { let this = self; @@ -1498,12 +1498,12 @@ windows_core::imp::interface_hierarchy!(MediaBreakSchedule, windows_core::IUnkno impl MediaBreakSchedule { pub fn ScheduleChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScheduleChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScheduleChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScheduleChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1512,17 +1512,17 @@ impl MediaBreakSchedule { } pub fn InsertMidrollBreak(&self, mediabreak: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertMidrollBreak)(windows_core::Interface::as_raw(this), mediabreak.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertMidrollBreak)(windows_core::Interface::as_raw(this), mediabreak.param().abi()).ok() } } pub fn RemoveMidrollBreak(&self, mediabreak: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveMidrollBreak)(windows_core::Interface::as_raw(this), mediabreak.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveMidrollBreak)(windows_core::Interface::as_raw(this), mediabreak.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn MidrollBreaks(&self) -> windows_core::Result> { @@ -1534,10 +1534,10 @@ impl MediaBreakSchedule { } pub fn SetPrerollBreak(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPrerollBreak)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPrerollBreak)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PrerollBreak(&self) -> windows_core::Result { let this = self; @@ -1548,10 +1548,10 @@ impl MediaBreakSchedule { } pub fn SetPostrollBreak(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPostrollBreak)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPostrollBreak)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PostrollBreak(&self) -> windows_core::Result { let this = self; @@ -1711,10 +1711,10 @@ impl MediaItemDisplayProperties { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ClearAll(&self) -> windows_core::Result<()> { let this = self; @@ -1754,12 +1754,12 @@ impl MediaPlaybackAudioTrackList { #[cfg(feature = "Media_Core")] pub fn SelectedIndexChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectedIndexChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectedIndexChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Media_Core")] @@ -1799,12 +1799,12 @@ impl MediaPlaybackAudioTrackList { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] @@ -1944,12 +1944,12 @@ impl MediaPlaybackCommandManager { } pub fn PlayReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlayReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlayReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlayReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1958,12 +1958,12 @@ impl MediaPlaybackCommandManager { } pub fn PauseReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PauseReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PauseReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePauseReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1972,12 +1972,12 @@ impl MediaPlaybackCommandManager { } pub fn NextReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NextReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NextReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNextReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1986,12 +1986,12 @@ impl MediaPlaybackCommandManager { } pub fn PreviousReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PreviousReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PreviousReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePreviousReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2000,12 +2000,12 @@ impl MediaPlaybackCommandManager { } pub fn FastForwardReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FastForwardReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FastForwardReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFastForwardReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2014,12 +2014,12 @@ impl MediaPlaybackCommandManager { } pub fn RewindReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RewindReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RewindReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRewindReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2028,12 +2028,12 @@ impl MediaPlaybackCommandManager { } pub fn ShuffleReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShuffleReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShuffleReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShuffleReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2042,12 +2042,12 @@ impl MediaPlaybackCommandManager { } pub fn AutoRepeatModeReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutoRepeatModeReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AutoRepeatModeReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAutoRepeatModeReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2056,12 +2056,12 @@ impl MediaPlaybackCommandManager { } pub fn PositionReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PositionReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PositionReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePositionReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2070,12 +2070,12 @@ impl MediaPlaybackCommandManager { } pub fn RateReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RateReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RateReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRateReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2170,12 +2170,12 @@ impl MediaPlaybackCommandManagerCommandBehavior { } pub fn IsEnabledChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsEnabledChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2549,12 +2549,12 @@ impl MediaPlaybackItem { #[cfg(feature = "Foundation_Collections")] pub fn AudioTracksChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioTracksChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioTracksChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioTracksChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2564,12 +2564,12 @@ impl MediaPlaybackItem { #[cfg(feature = "Foundation_Collections")] pub fn VideoTracksChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VideoTracksChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VideoTracksChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVideoTracksChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2579,12 +2579,12 @@ impl MediaPlaybackItem { #[cfg(feature = "Foundation_Collections")] pub fn TimedMetadataTracksChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TimedMetadataTracksChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TimedMetadataTracksChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTimedMetadataTracksChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2664,10 +2664,10 @@ impl MediaPlaybackItem { } pub fn ApplyDisplayProperties(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ApplyDisplayProperties)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ApplyDisplayProperties)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsDisabledInPlaybackList(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2701,41 +2701,41 @@ impl MediaPlaybackItem { #[cfg(feature = "Media_Core")] pub fn Create(source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaPlaybackItemFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Media_Core")] pub fn CreateWithStartTime(source: P0, starttime: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaPlaybackItemFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithStartTime)(windows_core::Interface::as_raw(this), source.into_param().abi(), starttime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithStartTime)(windows_core::Interface::as_raw(this), source.param().abi(), starttime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Media_Core")] pub fn CreateWithStartTimeAndDurationLimit(source: P0, starttime: super::super::Foundation::TimeSpan, durationlimit: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaPlaybackItemFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithStartTimeAndDurationLimit)(windows_core::Interface::as_raw(this), source.into_param().abi(), starttime, durationlimit, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithStartTimeAndDurationLimit)(windows_core::Interface::as_raw(this), source.param().abi(), starttime, durationlimit, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Media_Core")] pub fn FindFromMediaSource(source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaPlaybackItemStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindFromMediaSource)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindFromMediaSource)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2870,12 +2870,12 @@ impl MediaPlaybackList { } pub fn ItemFailed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemFailed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemFailed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2884,12 +2884,12 @@ impl MediaPlaybackList { } pub fn CurrentItemChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrentItemChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CurrentItemChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCurrentItemChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2898,12 +2898,12 @@ impl MediaPlaybackList { } pub fn ItemOpened(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemOpened)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemOpened)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemOpened(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2984,10 +2984,10 @@ impl MediaPlaybackList { } pub fn SetMaxPrefetchTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetMaxPrefetchTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxPrefetchTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartingItem(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2998,10 +2998,10 @@ impl MediaPlaybackList { } pub fn SetStartingItem(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetStartingItem)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStartingItem)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ShuffledItems(&self) -> windows_core::Result> { @@ -3014,10 +3014,10 @@ impl MediaPlaybackList { #[cfg(feature = "Foundation_Collections")] pub fn SetShuffledItems(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetShuffledItems)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetShuffledItems)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxPlayedItemsToKeepOpen(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -3028,10 +3028,10 @@ impl MediaPlaybackList { } pub fn SetMaxPlayedItemsToKeepOpen(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetMaxPlayedItemsToKeepOpen)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxPlayedItemsToKeepOpen)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for MediaPlaybackList { @@ -3053,12 +3053,12 @@ windows_core::imp::interface_hierarchy!(MediaPlaybackSession, windows_core::IUnk impl MediaPlaybackSession { pub fn PlaybackStateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackStateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackStateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlaybackStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3067,12 +3067,12 @@ impl MediaPlaybackSession { } pub fn PlaybackRateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackRateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackRateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlaybackRateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3081,12 +3081,12 @@ impl MediaPlaybackSession { } pub fn SeekCompleted(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SeekCompleted)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SeekCompleted)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSeekCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3095,12 +3095,12 @@ impl MediaPlaybackSession { } pub fn BufferingStarted(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BufferingStarted)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BufferingStarted)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBufferingStarted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3109,12 +3109,12 @@ impl MediaPlaybackSession { } pub fn BufferingEnded(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BufferingEnded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BufferingEnded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBufferingEnded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3123,12 +3123,12 @@ impl MediaPlaybackSession { } pub fn BufferingProgressChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BufferingProgressChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BufferingProgressChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBufferingProgressChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3137,12 +3137,12 @@ impl MediaPlaybackSession { } pub fn DownloadProgressChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadProgressChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DownloadProgressChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDownloadProgressChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3151,12 +3151,12 @@ impl MediaPlaybackSession { } pub fn NaturalDurationChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NaturalDurationChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NaturalDurationChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNaturalDurationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3165,12 +3165,12 @@ impl MediaPlaybackSession { } pub fn PositionChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePositionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3179,12 +3179,12 @@ impl MediaPlaybackSession { } pub fn NaturalVideoSizeChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NaturalVideoSizeChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NaturalVideoSizeChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNaturalVideoSizeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3309,12 +3309,12 @@ impl MediaPlaybackSession { } pub fn BufferedRangesChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BufferedRangesChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BufferedRangesChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBufferedRangesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3323,12 +3323,12 @@ impl MediaPlaybackSession { } pub fn PlayedRangesChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlayedRangesChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlayedRangesChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlayedRangesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3337,12 +3337,12 @@ impl MediaPlaybackSession { } pub fn SeekableRangesChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SeekableRangesChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SeekableRangesChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSeekableRangesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3351,12 +3351,12 @@ impl MediaPlaybackSession { } pub fn SupportedPlaybackRatesChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SupportedPlaybackRatesChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SupportedPlaybackRatesChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSupportedPlaybackRatesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3593,12 +3593,12 @@ impl MediaPlaybackTimedMetadataTrackList { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn PresentationModeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PresentationModeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PresentationModeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePresentationModeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3635,12 +3635,12 @@ impl MediaPlaybackTimedMetadataTrackList { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] @@ -3706,12 +3706,12 @@ impl MediaPlaybackVideoTrackList { #[cfg(feature = "Media_Core")] pub fn SelectedIndexChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectedIndexChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectedIndexChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Media_Core")] @@ -3751,12 +3751,12 @@ impl MediaPlaybackVideoTrackList { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] @@ -3946,12 +3946,12 @@ impl MediaPlayer { } pub fn MediaOpened(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MediaOpened)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MediaOpened)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMediaOpened(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3960,12 +3960,12 @@ impl MediaPlayer { } pub fn MediaEnded(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MediaEnded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MediaEnded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMediaEnded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3974,12 +3974,12 @@ impl MediaPlayer { } pub fn MediaFailed(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MediaFailed)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MediaFailed)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMediaFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3989,12 +3989,12 @@ impl MediaPlayer { #[cfg(feature = "deprecated")] pub fn CurrentStateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrentStateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CurrentStateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -4005,12 +4005,12 @@ impl MediaPlayer { #[cfg(feature = "deprecated")] pub fn PlaybackMediaMarkerReached(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackMediaMarkerReached)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackMediaMarkerReached)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -4021,12 +4021,12 @@ impl MediaPlayer { #[cfg(feature = "deprecated")] pub fn MediaPlayerRateChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MediaPlayerRateChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MediaPlayerRateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -4036,12 +4036,12 @@ impl MediaPlayer { } pub fn VolumeChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VolumeChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VolumeChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVolumeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4051,12 +4051,12 @@ impl MediaPlayer { #[cfg(feature = "deprecated")] pub fn SeekCompleted(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SeekCompleted)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SeekCompleted)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -4067,12 +4067,12 @@ impl MediaPlayer { #[cfg(feature = "deprecated")] pub fn BufferingStarted(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BufferingStarted)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BufferingStarted)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -4083,12 +4083,12 @@ impl MediaPlayer { #[cfg(feature = "deprecated")] pub fn BufferingEnded(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BufferingEnded)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BufferingEnded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -4107,10 +4107,10 @@ impl MediaPlayer { #[cfg(feature = "deprecated")] pub fn SetUriSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUriSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUriSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SystemMediaTransportControls(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4143,12 +4143,12 @@ impl MediaPlayer { } pub fn IsMutedChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsMutedChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsMutedChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsMutedChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4157,12 +4157,12 @@ impl MediaPlayer { } pub fn SourceChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4227,10 +4227,10 @@ impl MediaPlayer { #[cfg(feature = "Devices_Enumeration")] pub fn SetAudioDevice(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAudioDevice)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAudioDevice)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TimelineController(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4241,10 +4241,10 @@ impl MediaPlayer { } pub fn SetTimelineController(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTimelineController)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTimelineController)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TimelineControllerPositionOffset(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4287,22 +4287,22 @@ impl MediaPlayer { #[cfg(feature = "UI_Composition")] pub fn GetSurface(&self, compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSurface)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSurface)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn VideoFrameAvailable(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VideoFrameAvailable)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VideoFrameAvailable)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVideoFrameAvailable(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4323,36 +4323,36 @@ impl MediaPlayer { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CopyFrameToVideoSurface(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).CopyFrameToVideoSurface)(windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CopyFrameToVideoSurface)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CopyFrameToVideoSurfaceWithTargetRectangle(&self, destination: P0, targetrectangle: super::super::Foundation::Rect) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).CopyFrameToVideoSurfaceWithTargetRectangle)(windows_core::Interface::as_raw(this), destination.into_param().abi(), targetrectangle).ok() } + unsafe { (windows_core::Interface::vtable(this).CopyFrameToVideoSurfaceWithTargetRectangle)(windows_core::Interface::as_raw(this), destination.param().abi(), targetrectangle).ok() } } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CopyFrameToStereoscopicVideoSurfaces(&self, destinationlefteye: P0, destinationrighteye: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).CopyFrameToStereoscopicVideoSurfaces)(windows_core::Interface::as_raw(this), destinationlefteye.into_param().abi(), destinationrighteye.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CopyFrameToStereoscopicVideoSurfaces)(windows_core::Interface::as_raw(this), destinationlefteye.param().abi(), destinationrighteye.param().abi()).ok() } } pub fn SubtitleFrameChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SubtitleFrameChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SubtitleFrameChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSubtitleFrameChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4362,23 +4362,23 @@ impl MediaPlayer { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn RenderSubtitlesToSurface(&self, destination: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderSubtitlesToSurface)(windows_core::Interface::as_raw(this), destination.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RenderSubtitlesToSurface)(windows_core::Interface::as_raw(this), destination.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn RenderSubtitlesToSurfaceWithTargetRectangle(&self, destination: P0, targetrectangle: super::super::Foundation::Rect) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderSubtitlesToSurfaceWithTargetRectangle)(windows_core::Interface::as_raw(this), destination.into_param().abi(), targetrectangle, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RenderSubtitlesToSurfaceWithTargetRectangle)(windows_core::Interface::as_raw(this), destination.param().abi(), targetrectangle, &mut result__).map(|| result__) } } #[cfg(feature = "Media_Audio")] @@ -4392,10 +4392,10 @@ impl MediaPlayer { #[cfg(feature = "Foundation_Collections")] pub fn AddAudioEffect(&self, activatableclassid: &windows_core::HSTRING, effectoptional: bool, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddAudioEffect)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectoptional, configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddAudioEffect)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectoptional, configuration.param().abi()).ok() } } pub fn RemoveAllEffects(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4404,10 +4404,10 @@ impl MediaPlayer { #[cfg(feature = "Foundation_Collections")] pub fn AddVideoEffect(&self, activatableclassid: &windows_core::HSTRING, effectoptional: bool, effectconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddVideoEffect)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectoptional, effectconfiguration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddVideoEffect)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectoptional, effectconfiguration.param().abi()).ok() } } #[cfg(feature = "Media_Protection")] pub fn ProtectionManager(&self) -> windows_core::Result { @@ -4420,34 +4420,34 @@ impl MediaPlayer { #[cfg(feature = "Media_Protection")] pub fn SetProtectionManager(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProtectionManager)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProtectionManager)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn SetFileSource(&self, file: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFileSource)(windows_core::Interface::as_raw(this), file.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFileSource)(windows_core::Interface::as_raw(this), file.param().abi()).ok() } } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetStreamSource(&self, stream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetStreamSource)(windows_core::Interface::as_raw(this), stream.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStreamSource)(windows_core::Interface::as_raw(this), stream.param().abi()).ok() } } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn SetMediaSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetMediaSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMediaSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn Source(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4458,10 +4458,10 @@ impl MediaPlayer { } pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for MediaPlayer { @@ -4717,10 +4717,10 @@ impl PlaybackMediaMarkerSequence { } pub fn Insert(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = self; diff --git a/crates/libs/windows/src/Windows/Media/Playlists/mod.rs b/crates/libs/windows/src/Windows/Media/Playlists/mod.rs index 6a7c619839..a84eb9a79d 100644 --- a/crates/libs/windows/src/Windows/Media/Playlists/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Playlists/mod.rs @@ -61,33 +61,33 @@ impl Playlist { #[cfg(feature = "Storage")] pub fn SaveAsAsync(&self, savelocation: P0, desiredname: &windows_core::HSTRING, option: super::super::Storage::NameCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAsAsync)(windows_core::Interface::as_raw(this), savelocation.into_param().abi(), core::mem::transmute_copy(desiredname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAsAsync)(windows_core::Interface::as_raw(this), savelocation.param().abi(), core::mem::transmute_copy(desiredname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn SaveAsWithFormatAsync(&self, savelocation: P0, desiredname: &windows_core::HSTRING, option: super::super::Storage::NameCollisionOption, playlistformat: PlaylistFormat) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAsWithFormatAsync)(windows_core::Interface::as_raw(this), savelocation.into_param().abi(), core::mem::transmute_copy(desiredname), option, playlistformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAsWithFormatAsync)(windows_core::Interface::as_raw(this), savelocation.param().abi(), core::mem::transmute_copy(desiredname), option, playlistformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn LoadAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlaylistStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs index b1edaad9d8..225a085074 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs @@ -196,10 +196,10 @@ impl INDDownloadEngine { #[cfg(feature = "deprecated")] pub fn Open(&self, uri: P0, sessionidbytes: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Open)(windows_core::Interface::as_raw(this), uri.into_param().abi(), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).Open)(windows_core::Interface::as_raw(this), uri.param().abi(), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr()).ok() } } #[cfg(feature = "deprecated")] pub fn Pause(&self) -> windows_core::Result<()> { @@ -318,10 +318,10 @@ impl INDDownloadEngineNotifier { #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn OnDataReceived(&self, databytes: &[u8], bytesreceived: u32) -> windows_core::Result<()> { @@ -433,10 +433,10 @@ impl INDLicenseFetchDescriptor { #[cfg(feature = "deprecated")] pub fn SetLicenseFetchChallengeCustomData(&self, licensefetchchallengecustomdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.param().abi()).ok() } } } #[cfg(feature = "deprecated")] @@ -725,12 +725,12 @@ impl INDStorageFileHelper { #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFileURLs)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFileURLs)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -761,12 +761,12 @@ impl INDStreamParser { #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn GetStreamInformation(&self, descriptor: P0, streamtype: &mut NDMediaStreamType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStreamInformation)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), streamtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetStreamInformation)(windows_core::Interface::as_raw(this), descriptor.param().abi(), streamtype, &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -826,35 +826,35 @@ impl INDStreamParserNotifier { #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] pub fn OnMediaStreamDescriptorCreated(&self, audiostreamdescriptors: P0, videostreamdescriptors: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.into_param().abi(), videostreamdescriptors.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.param().abi(), videostreamdescriptors.param().abi()).ok() } } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn OnSampleParsed(&self, streamid: u32, streamtype: NDMediaStreamType, streamsample: P0, pts: i64, ccformat: NDClosedCaptionFormat, ccdatabytes: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnSampleParsed)(windows_core::Interface::as_raw(this), streamid, streamtype, streamsample.into_param().abi(), pts, ccformat, ccdatabytes.len().try_into().unwrap(), ccdatabytes.as_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnSampleParsed)(windows_core::Interface::as_raw(this), streamid, streamtype, streamsample.param().abi(), pts, ccformat, ccdatabytes.len().try_into().unwrap(), ccdatabytes.as_ptr()).ok() } } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn OnBeginSetupDecryptor(&self, descriptor: P0, keyid: windows_core::GUID, probytes: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnBeginSetupDecryptor)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), keyid, probytes.len().try_into().unwrap(), probytes.as_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnBeginSetupDecryptor)(windows_core::Interface::as_raw(this), descriptor.param().abi(), keyid, probytes.len().try_into().unwrap(), probytes.as_ptr()).ok() } } } #[cfg(feature = "deprecated")] @@ -1303,10 +1303,10 @@ impl IPlayReadyLicenseAcquisitionServiceRequest { } pub fn SetContentHeader(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentHeader)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentHeader)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DomainServiceId(&self) -> windows_core::Result { let this = self; @@ -1342,10 +1342,10 @@ impl IPlayReadyLicenseAcquisitionServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1459,10 +1459,10 @@ impl IPlayReadyLicenseSession { } pub fn ConfigureMediaProtectionManager(&self, mpm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.param().abi()).ok() } } } impl windows_core::RuntimeType for IPlayReadyLicenseSession { @@ -1481,12 +1481,12 @@ impl IPlayReadyLicenseSession2 { #[cfg(feature = "Foundation_Collections")] pub fn CreateLicenseIterable(&self, contentheader: P0, fullyevaluated: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateLicenseIterable)(windows_core::Interface::as_raw(this), contentheader.into_param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateLicenseIterable)(windows_core::Interface::as_raw(this), contentheader.param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateLAServiceRequest(&self) -> windows_core::Result { @@ -1498,10 +1498,10 @@ impl IPlayReadyLicenseSession2 { } pub fn ConfigureMediaProtectionManager(&self, mpm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.param().abi()).ok() } } } impl windows_core::RuntimeType for IPlayReadyLicenseSession2 { @@ -1619,10 +1619,10 @@ impl IPlayReadySecureStopServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1706,10 +1706,10 @@ impl IPlayReadyServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = self; @@ -1869,12 +1869,12 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn RegistrationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegistrationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RegistrationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -1885,12 +1885,12 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn ProximityDetectionCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProximityDetectionCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProximityDetectionCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -1901,12 +1901,12 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn LicenseFetchCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseFetchCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LicenseFetchCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -1917,12 +1917,12 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn ReRegistrationNeeded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReRegistrationNeeded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ReRegistrationNeeded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -1933,12 +1933,12 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn ClosedCaptionDataReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ClosedCaptionDataReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ClosedCaptionDataReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -1949,36 +1949,36 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn StartAsync(&self, contenturl: P0, startasyncoptions: u32, registrationcustomdata: P1, licensefetchdescriptor: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartAsync)(windows_core::Interface::as_raw(this), contenturl.into_param().abi(), startasyncoptions, registrationcustomdata.into_param().abi(), licensefetchdescriptor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartAsync)(windows_core::Interface::as_raw(this), contenturl.param().abi(), startasyncoptions, registrationcustomdata.param().abi(), licensefetchdescriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] pub fn LicenseFetchAsync(&self, licensefetchdescriptor: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseFetchAsync)(windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LicenseFetchAsync)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] pub fn ReRegistrationAsync(&self, registrationcustomdata: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReRegistrationAsync)(windows_core::Interface::as_raw(this), registrationcustomdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReRegistrationAsync)(windows_core::Interface::as_raw(this), registrationcustomdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "deprecated")] @@ -1989,13 +1989,13 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn CreateInstance(downloadengine: P0, streamparser: P1, pmessenger: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::INDClientFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), downloadengine.into_param().abi(), streamparser.into_param().abi(), pmessenger.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), downloadengine.param().abi(), streamparser.param().abi(), pmessenger.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2101,10 +2101,10 @@ impl NDDownloadEngineNotifier { #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn OnDataReceived(&self, databytes: &[u8], bytesreceived: u32) -> windows_core::Result<()> { @@ -2172,19 +2172,19 @@ impl NDLicenseFetchDescriptor { #[cfg(feature = "deprecated")] pub fn SetLicenseFetchChallengeCustomData(&self, licensefetchchallengecustomdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn CreateInstance(contentidtype: NDContentIDType, contentidbytes: &[u8], licensefetchchallengecustomdata: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::INDLicenseFetchDescriptorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), contentidtype, contentidbytes.len().try_into().unwrap(), contentidbytes.as_ptr(), licensefetchchallengecustomdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), contentidtype, contentidbytes.len().try_into().unwrap(), contentidbytes.as_ptr(), licensefetchchallengecustomdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2227,12 +2227,12 @@ impl NDStorageFileHelper { #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFileURLs)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFileURLs)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2269,35 +2269,35 @@ impl NDStreamParserNotifier { #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] pub fn OnMediaStreamDescriptorCreated(&self, audiostreamdescriptors: P0, videostreamdescriptors: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.into_param().abi(), videostreamdescriptors.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.param().abi(), videostreamdescriptors.param().abi()).ok() } } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn OnSampleParsed(&self, streamid: u32, streamtype: NDMediaStreamType, streamsample: P0, pts: i64, ccformat: NDClosedCaptionFormat, ccdatabytes: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnSampleParsed)(windows_core::Interface::as_raw(this), streamid, streamtype, streamsample.into_param().abi(), pts, ccformat, ccdatabytes.len().try_into().unwrap(), ccdatabytes.as_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnSampleParsed)(windows_core::Interface::as_raw(this), streamid, streamtype, streamsample.param().abi(), pts, ccformat, ccdatabytes.len().try_into().unwrap(), ccdatabytes.as_ptr()).ok() } } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn OnBeginSetupDecryptor(&self, descriptor: P0, keyid: windows_core::GUID, probytes: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).OnBeginSetupDecryptor)(windows_core::Interface::as_raw(this), descriptor.into_param().abi(), keyid, probytes.len().try_into().unwrap(), probytes.as_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).OnBeginSetupDecryptor)(windows_core::Interface::as_raw(this), descriptor.param().abi(), keyid, probytes.len().try_into().unwrap(), probytes.as_ptr()).ok() } } } #[cfg(feature = "deprecated")] @@ -2473,22 +2473,22 @@ impl PlayReadyContentHeader { } pub fn CreateInstanceFromWindowsMediaDrmHeader(headerbytes: &[u8], licenseacquisitionurl: P0, licenseacquisitionuserinterfaceurl: P1, customattributes: &windows_core::HSTRING, domainserviceid: windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IPlayReadyContentHeaderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstanceFromWindowsMediaDrmHeader)(windows_core::Interface::as_raw(this), headerbytes.len().try_into().unwrap(), headerbytes.as_ptr(), licenseacquisitionurl.into_param().abi(), licenseacquisitionuserinterfaceurl.into_param().abi(), core::mem::transmute_copy(customattributes), domainserviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstanceFromWindowsMediaDrmHeader)(windows_core::Interface::as_raw(this), headerbytes.len().try_into().unwrap(), headerbytes.as_ptr(), licenseacquisitionurl.param().abi(), licenseacquisitionuserinterfaceurl.param().abi(), core::mem::transmute_copy(customattributes), domainserviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateInstanceFromComponents(contentkeyid: windows_core::GUID, contentkeyidstring: &windows_core::HSTRING, contentencryptionalgorithm: PlayReadyEncryptionAlgorithm, licenseacquisitionurl: P0, licenseacquisitionuserinterfaceurl: P1, customattributes: &windows_core::HSTRING, domainserviceid: windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IPlayReadyContentHeaderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstanceFromComponents)(windows_core::Interface::as_raw(this), contentkeyid, core::mem::transmute_copy(contentkeyidstring), contentencryptionalgorithm, licenseacquisitionurl.into_param().abi(), licenseacquisitionuserinterfaceurl.into_param().abi(), core::mem::transmute_copy(customattributes), domainserviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstanceFromComponents)(windows_core::Interface::as_raw(this), contentkeyid, core::mem::transmute_copy(contentkeyidstring), contentencryptionalgorithm, licenseacquisitionurl.param().abi(), licenseacquisitionuserinterfaceurl.param().abi(), core::mem::transmute_copy(customattributes), domainserviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateInstanceFromPlayReadyHeader(headerbytes: &[u8]) -> windows_core::Result { @@ -2499,12 +2499,12 @@ impl PlayReadyContentHeader { } pub fn CreateInstanceFromComponents2(dwflags: u32, contentkeyids: &[windows_core::GUID], contentkeyidstrings: &[windows_core::HSTRING], contentencryptionalgorithm: PlayReadyEncryptionAlgorithm, licenseacquisitionurl: P0, licenseacquisitionuserinterfaceurl: P1, customattributes: &windows_core::HSTRING, domainserviceid: windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IPlayReadyContentHeaderFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstanceFromComponents2)(windows_core::Interface::as_raw(this), dwflags, contentkeyids.len().try_into().unwrap(), contentkeyids.as_ptr(), contentkeyidstrings.len().try_into().unwrap(), core::mem::transmute(contentkeyidstrings.as_ptr()), contentencryptionalgorithm, licenseacquisitionurl.into_param().abi(), licenseacquisitionuserinterfaceurl.into_param().abi(), core::mem::transmute_copy(customattributes), domainserviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstanceFromComponents2)(windows_core::Interface::as_raw(this), dwflags, contentkeyids.len().try_into().unwrap(), contentkeyids.as_ptr(), contentkeyidstrings.len().try_into().unwrap(), core::mem::transmute(contentkeyidstrings.as_ptr()), contentencryptionalgorithm, licenseacquisitionurl.param().abi(), licenseacquisitionuserinterfaceurl.param().abi(), core::mem::transmute_copy(customattributes), domainserviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2532,11 +2532,11 @@ pub struct PlayReadyContentResolver; impl PlayReadyContentResolver { pub fn ServiceRequest(contentheader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlayReadyContentResolver(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServiceRequest)(windows_core::Interface::as_raw(this), contentheader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ServiceRequest)(windows_core::Interface::as_raw(this), contentheader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2785,10 +2785,10 @@ impl PlayReadyDomainJoinServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2905,10 +2905,10 @@ impl PlayReadyDomainLeaveServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2982,12 +2982,12 @@ impl PlayReadyITADataGenerator { #[cfg(feature = "Foundation_Collections")] pub fn GenerateData(&self, guidcpsystemid: windows_core::GUID, countofstreams: u32, configuration: P0, format: PlayReadyITADataFormat) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = core::mem::MaybeUninit::zeroed(); - (windows_core::Interface::vtable(this).GenerateData)(windows_core::Interface::as_raw(this), guidcpsystemid, countofstreams, configuration.into_param().abi(), format, windows_core::Array::::set_abi_len(std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) + (windows_core::Interface::vtable(this).GenerateData)(windows_core::Interface::as_raw(this), guidcpsystemid, countofstreams, configuration.param().abi(), format, windows_core::Array::::set_abi_len(std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) } } } @@ -3037,10 +3037,10 @@ impl PlayReadyIndividualizationServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3229,10 +3229,10 @@ impl PlayReadyLicenseAcquisitionServiceRequest { } pub fn SetContentHeader(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentHeader)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentHeader)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DomainServiceId(&self) -> windows_core::Result { let this = self; @@ -3255,12 +3255,12 @@ impl PlayReadyLicenseAcquisitionServiceRequest { #[cfg(feature = "Foundation_Collections")] pub fn CreateLicenseIterable(&self, contentheader: P0, fullyevaluated: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateLicenseIterable)(windows_core::Interface::as_raw(this), contentheader.into_param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateLicenseIterable)(windows_core::Interface::as_raw(this), contentheader.param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Uri(&self) -> windows_core::Result { @@ -3272,10 +3272,10 @@ impl PlayReadyLicenseAcquisitionServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3362,11 +3362,11 @@ impl PlayReadyLicenseIterable { #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(contentheader: P0, fullyevaluated: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlayReadyLicenseIterableFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), contentheader.into_param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), contentheader.param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3464,11 +3464,11 @@ pub struct PlayReadyLicenseManagement; impl PlayReadyLicenseManagement { pub fn DeleteLicenses(contentheader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlayReadyLicenseManagement(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteLicenses)(windows_core::Interface::as_raw(this), contentheader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteLicenses)(windows_core::Interface::as_raw(this), contentheader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3495,30 +3495,30 @@ impl PlayReadyLicenseSession { } pub fn ConfigureMediaProtectionManager(&self, mpm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn CreateLicenseIterable(&self, contentheader: P0, fullyevaluated: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateLicenseIterable)(windows_core::Interface::as_raw(this), contentheader.into_param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateLicenseIterable)(windows_core::Interface::as_raw(this), contentheader.param().abi(), fullyevaluated, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(configuration: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlayReadyLicenseSessionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), configuration.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), configuration.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3584,10 +3584,10 @@ impl PlayReadyMeteringReportServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3682,10 +3682,10 @@ impl PlayReadyRevocationServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3936,10 +3936,10 @@ impl PlayReadySecureStopServiceRequest { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResponseCustomData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; diff --git a/crates/libs/windows/src/Windows/Media/Protection/mod.rs b/crates/libs/windows/src/Windows/Media/Protection/mod.rs index 7e4c48d0c5..5b9d3b38f6 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/mod.rs @@ -202,11 +202,11 @@ pub struct ComponentRenewal; impl ComponentRenewal { pub fn RenewSystemComponentsAsync(information: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IComponentRenewalStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenewSystemComponentsAsync)(windows_core::Interface::as_raw(this), information.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RenewSystemComponentsAsync)(windows_core::Interface::as_raw(this), information.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -258,12 +258,12 @@ impl HdcpSession { } pub fn ProtectionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProtectionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProtectionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -297,12 +297,12 @@ impl MediaProtectionManager { } pub fn ServiceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServiceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServiceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServiceRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -311,12 +311,12 @@ impl MediaProtectionManager { } pub fn RebootNeeded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RebootNeeded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RebootNeeded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRebootNeeded(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -325,12 +325,12 @@ impl MediaProtectionManager { } pub fn ComponentLoadFailed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ComponentLoadFailed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ComponentLoadFailed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveComponentLoadFailed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -374,11 +374,11 @@ impl MediaProtectionPMPServer { #[cfg(feature = "Foundation_Collections")] pub fn CreatePMPServer(pproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMediaProtectionPMPServerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePMPServer)(windows_core::Interface::as_raw(this), pproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePMPServer)(windows_core::Interface::as_raw(this), pproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -745,11 +745,11 @@ impl ComponentLoadFailedEventHandler { } pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[repr(C)] @@ -806,10 +806,10 @@ impl RebootNeededEventHandler { } pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[repr(C)] @@ -866,11 +866,11 @@ impl ServiceRequestedEventHandler { } pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs b/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs index 331425b151..d321609f44 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs @@ -516,12 +516,12 @@ impl SpeechContinuousRecognitionSession { } pub fn Completed(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -530,12 +530,12 @@ impl SpeechContinuousRecognitionSession { } pub fn ResultGenerated(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResultGenerated)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ResultGenerated)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveResultGenerated(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -637,21 +637,21 @@ impl SpeechRecognitionGrammarFileConstraint { #[cfg(feature = "Storage")] pub fn Create(file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpeechRecognitionGrammarFileConstraintFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn CreateWithTag(file: P0, tag: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpeechRecognitionGrammarFileConstraintFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithTag)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(tag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithTag)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(tag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -779,21 +779,21 @@ impl SpeechRecognitionListConstraint { #[cfg(feature = "Foundation_Collections")] pub fn Create(commands: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISpeechRecognitionListConstraintFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), commands.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), commands.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithTag(commands: P0, tag: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISpeechRecognitionListConstraintFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithTag)(windows_core::Interface::as_raw(this), commands.into_param().abi(), core::mem::transmute_copy(tag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithTag)(windows_core::Interface::as_raw(this), commands.param().abi(), core::mem::transmute_copy(tag), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1174,12 +1174,12 @@ impl SpeechRecognizer { } pub fn RecognitionQualityDegrading(&self, speechrecognitionqualitydegradinghandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecognitionQualityDegrading)(windows_core::Interface::as_raw(this), speechrecognitionqualitydegradinghandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecognitionQualityDegrading)(windows_core::Interface::as_raw(this), speechrecognitionqualitydegradinghandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRecognitionQualityDegrading(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1188,12 +1188,12 @@ impl SpeechRecognizer { } pub fn StateChanged(&self, statechangedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), statechangedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), statechangedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1223,12 +1223,12 @@ impl SpeechRecognizer { } pub fn HypothesisGenerated(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HypothesisGenerated)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HypothesisGenerated)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHypothesisGenerated(&self, value: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1238,11 +1238,11 @@ impl SpeechRecognizer { #[cfg(feature = "Globalization")] pub fn Create(language: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpeechRecognizerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), language.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), language.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Globalization")] @@ -1269,11 +1269,11 @@ impl SpeechRecognizer { #[cfg(feature = "Globalization")] pub fn TrySetSystemSpeechLanguageAsync(speechlanguage: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpeechRecognizerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetSystemSpeechLanguageAsync)(windows_core::Interface::as_raw(this), speechlanguage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySetSystemSpeechLanguageAsync)(windows_core::Interface::as_raw(this), speechlanguage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1447,11 +1447,11 @@ impl VoiceCommandManager { #[cfg(feature = "Storage")] pub fn InstallCommandSetsFromStorageFileAsync(file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVoiceCommandManager(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InstallCommandSetsFromStorageFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InstallCommandSetsFromStorageFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -1492,12 +1492,12 @@ impl VoiceCommandSet { #[cfg(feature = "Foundation_Collections")] pub fn SetPhraseListAsync(&self, phraselistname: &windows_core::HSTRING, phraselist: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPhraseListAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(phraselistname), phraselist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPhraseListAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(phraselistname), phraselist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs b/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs index 9c8f7c99c9..dabcfea4c8 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs @@ -126,23 +126,23 @@ impl SpeechSynthesisStream { #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, buffer: P0, count: u32, options: super::super::Storage::Streams::InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -280,11 +280,11 @@ impl SpeechSynthesizer { } pub fn TrySetDefaultVoiceAsync(voice: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInstalledVoicesStatic2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetDefaultVoiceAsync)(windows_core::Interface::as_raw(this), voice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySetDefaultVoiceAsync)(windows_core::Interface::as_raw(this), voice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn SynthesizeTextToStreamAsync(&self, text: &windows_core::HSTRING) -> windows_core::Result> { @@ -303,10 +303,10 @@ impl SpeechSynthesizer { } pub fn SetVoice(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetVoice)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetVoice)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Voice(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs b/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs index 36d77c2358..d3962bb226 100644 --- a/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs @@ -443,10 +443,10 @@ impl AdaptiveMediaSource { } pub fn SetDesiredMinBitrate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDesiredMinBitrate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDesiredMinBitrate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DesiredMaxBitrate(&self) -> windows_core::Result> { let this = self; @@ -457,10 +457,10 @@ impl AdaptiveMediaSource { } pub fn SetDesiredMaxBitrate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDesiredMaxBitrate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDesiredMaxBitrate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AudioOnlyPlayback(&self) -> windows_core::Result { let this = self; @@ -489,12 +489,12 @@ impl AdaptiveMediaSource { } pub fn DownloadBitrateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadBitrateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DownloadBitrateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDownloadBitrateChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -503,12 +503,12 @@ impl AdaptiveMediaSource { } pub fn PlaybackBitrateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackBitrateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackBitrateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlaybackBitrateChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -517,12 +517,12 @@ impl AdaptiveMediaSource { } pub fn DownloadRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DownloadRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDownloadRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -531,12 +531,12 @@ impl AdaptiveMediaSource { } pub fn DownloadCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DownloadCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDownloadCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -545,12 +545,12 @@ impl AdaptiveMediaSource { } pub fn DownloadFailed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadFailed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DownloadFailed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDownloadFailed(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -587,10 +587,10 @@ impl AdaptiveMediaSource { } pub fn SetDesiredSeekableWindowSize(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDesiredSeekableWindowSize)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDesiredSeekableWindowSize)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Diagnostics(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -614,45 +614,45 @@ impl AdaptiveMediaSource { } pub fn CreateFromUriAsync(uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAdaptiveMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUriAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUriAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Web_Http")] pub fn CreateFromUriWithDownloaderAsync(uri: P0, httpclient: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IAdaptiveMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUriWithDownloaderAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), httpclient.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUriWithDownloaderAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), httpclient.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamAsync(stream: P0, uri: P1, contenttype: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IAdaptiveMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), uri.into_param().abi(), core::mem::transmute_copy(contenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), uri.param().abi(), core::mem::transmute_copy(contenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage_Streams", feature = "Web_Http"))] pub fn CreateFromStreamWithDownloaderAsync(stream: P0, uri: P1, contenttype: &windows_core::HSTRING, httpclient: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IAdaptiveMediaSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStreamWithDownloaderAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), uri.into_param().abi(), core::mem::transmute_copy(contenttype), httpclient.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStreamWithDownloaderAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), uri.param().abi(), core::mem::transmute_copy(contenttype), httpclient.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Close(&self) -> windows_core::Result<()> { @@ -702,10 +702,10 @@ impl AdaptiveMediaSourceAdvancedSettings { } pub fn SetDesiredBitrateHeadroomRatio(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDesiredBitrateHeadroomRatio)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDesiredBitrateHeadroomRatio)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn BitrateDowngradeTriggerRatio(&self) -> windows_core::Result> { let this = self; @@ -716,10 +716,10 @@ impl AdaptiveMediaSourceAdvancedSettings { } pub fn SetBitrateDowngradeTriggerRatio(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBitrateDowngradeTriggerRatio)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBitrateDowngradeTriggerRatio)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for AdaptiveMediaSourceAdvancedSettings { @@ -929,12 +929,12 @@ windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDiagnostics, windows_ impl AdaptiveMediaSourceDiagnostics { pub fn DiagnosticAvailable(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DiagnosticAvailable)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DiagnosticAvailable)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDiagnosticAvailable(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1302,10 +1302,10 @@ impl AdaptiveMediaSourceDownloadResult { } pub fn SetResourceUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetResourceUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetResourceUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn InputStream(&self) -> windows_core::Result { @@ -1318,10 +1318,10 @@ impl AdaptiveMediaSourceDownloadResult { #[cfg(feature = "Storage_Streams")] pub fn SetInputStream(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInputStream)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInputStream)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn Buffer(&self) -> windows_core::Result { @@ -1334,10 +1334,10 @@ impl AdaptiveMediaSourceDownloadResult { #[cfg(feature = "Storage_Streams")] pub fn SetBuffer(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBuffer)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBuffer)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentType(&self) -> windows_core::Result { let this = self; @@ -1370,10 +1370,10 @@ impl AdaptiveMediaSourceDownloadResult { } pub fn SetResourceByteRangeOffset(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetResourceByteRangeOffset)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetResourceByteRangeOffset)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResourceByteRangeLength(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1384,10 +1384,10 @@ impl AdaptiveMediaSourceDownloadResult { } pub fn SetResourceByteRangeLength(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetResourceByteRangeLength)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetResourceByteRangeLength)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for AdaptiveMediaSourceDownloadResult { diff --git a/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs b/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs index e57e6fb386..146ae8b018 100644 --- a/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs @@ -121,10 +121,10 @@ impl MediaTranscoder { #[cfg(feature = "Foundation_Collections")] pub fn AddAudioEffectWithSettings(&self, activatableclassid: &windows_core::HSTRING, effectrequired: bool, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddAudioEffectWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectrequired, configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddAudioEffectWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectrequired, configuration.param().abi()).ok() } } pub fn AddVideoEffect(&self, activatableclassid: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -133,10 +133,10 @@ impl MediaTranscoder { #[cfg(feature = "Foundation_Collections")] pub fn AddVideoEffectWithSettings(&self, activatableclassid: &windows_core::HSTRING, effectrequired: bool, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddVideoEffectWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectrequired, configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddVideoEffectWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), effectrequired, configuration.param().abi()).ok() } } pub fn ClearEffects(&self) -> windows_core::Result<()> { let this = self; @@ -145,40 +145,40 @@ impl MediaTranscoder { #[cfg(all(feature = "Media_MediaProperties", feature = "Storage"))] pub fn PrepareFileTranscodeAsync(&self, source: P0, destination: P1, profile: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareFileTranscodeAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareFileTranscodeAsync)(windows_core::Interface::as_raw(this), source.param().abi(), destination.param().abi(), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_MediaProperties", feature = "Storage_Streams"))] pub fn PrepareStreamTranscodeAsync(&self, source: P0, destination: P1, profile: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareStreamTranscodeAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareStreamTranscodeAsync)(windows_core::Interface::as_raw(this), source.param().abi(), destination.param().abi(), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Media_Core", feature = "Media_MediaProperties", feature = "Storage_Streams"))] pub fn PrepareMediaStreamSourceTranscodeAsync(&self, source: P0, destination: P1, profile: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrepareMediaStreamSourceTranscodeAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PrepareMediaStreamSourceTranscodeAsync)(windows_core::Interface::as_raw(this), source.param().abi(), destination.param().abi(), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetVideoProcessingAlgorithm(&self, value: MediaVideoProcessingAlgorithm) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Media/mod.rs b/crates/libs/windows/src/Windows/Media/mod.rs index 45b4d89840..bc266122fe 100644 --- a/crates/libs/windows/src/Windows/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Media/mod.rs @@ -251,10 +251,10 @@ impl IMediaExtension { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProperties)(windows_core::Interface::as_raw(this), configuration.param().abi()).ok() } } } impl windows_core::RuntimeType for IMediaExtension { @@ -338,10 +338,10 @@ impl IMediaFrame { } pub fn SetRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RelativeTime(&self) -> windows_core::Result> { let this = self; @@ -352,10 +352,10 @@ impl IMediaFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SystemRelativeTime(&self) -> windows_core::Result> { let this = self; @@ -366,10 +366,10 @@ impl IMediaFrame { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result> { let this = self; @@ -938,10 +938,10 @@ impl AudioFrame { } pub fn SetRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -952,10 +952,10 @@ impl AudioFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SystemRelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -966,10 +966,10 @@ impl AudioFrame { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1087,11 +1087,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn SoundLevelChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SoundLevelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SoundLevelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1101,11 +1101,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn PlayPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlayPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlayPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1115,11 +1115,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn PausePressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PausePressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PausePressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1129,11 +1129,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn StopPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StopPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StopPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1143,11 +1143,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn PlayPauseTogglePressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlayPauseTogglePressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlayPauseTogglePressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1157,11 +1157,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn RecordPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecordPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecordPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1171,11 +1171,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn NextTrackPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NextTrackPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NextTrackPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1185,11 +1185,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn PreviousTrackPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PreviousTrackPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PreviousTrackPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1199,11 +1199,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn FastForwardPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FastForwardPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FastForwardPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1213,11 +1213,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn RewindPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RewindPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RewindPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1227,11 +1227,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn ChannelUpPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ChannelUpPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ChannelUpPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1241,11 +1241,11 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn ChannelDownPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMediaControl(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ChannelDownPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ChannelDownPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1295,9 +1295,9 @@ impl MediaControl { #[cfg(feature = "deprecated")] pub fn SetAlbumArt(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).SetAlbumArt)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).SetAlbumArt)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } #[cfg(feature = "deprecated")] pub fn AlbumArt() -> windows_core::Result { @@ -1336,10 +1336,10 @@ impl MediaExtensionManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterSchemeHandlerWithSettings(&self, activatableclassid: &windows_core::HSTRING, scheme: &windows_core::HSTRING, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterSchemeHandlerWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), core::mem::transmute_copy(scheme), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterSchemeHandlerWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), core::mem::transmute_copy(scheme), configuration.param().abi()).ok() } } pub fn RegisterByteStreamHandler(&self, activatableclassid: &windows_core::HSTRING, fileextension: &windows_core::HSTRING, mimetype: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1348,10 +1348,10 @@ impl MediaExtensionManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterByteStreamHandlerWithSettings(&self, activatableclassid: &windows_core::HSTRING, fileextension: &windows_core::HSTRING, mimetype: &windows_core::HSTRING, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterByteStreamHandlerWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), core::mem::transmute_copy(fileextension), core::mem::transmute_copy(mimetype), configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterByteStreamHandlerWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), core::mem::transmute_copy(fileextension), core::mem::transmute_copy(mimetype), configuration.param().abi()).ok() } } pub fn RegisterAudioDecoder(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID) -> windows_core::Result<()> { let this = self; @@ -1360,10 +1360,10 @@ impl MediaExtensionManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterAudioDecoderWithSettings(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterAudioDecoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterAudioDecoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.param().abi()).ok() } } pub fn RegisterAudioEncoder(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID) -> windows_core::Result<()> { let this = self; @@ -1372,10 +1372,10 @@ impl MediaExtensionManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterAudioEncoderWithSettings(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterAudioEncoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterAudioEncoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.param().abi()).ok() } } pub fn RegisterVideoDecoder(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID) -> windows_core::Result<()> { let this = self; @@ -1384,10 +1384,10 @@ impl MediaExtensionManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterVideoDecoderWithSettings(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterVideoDecoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterVideoDecoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.param().abi()).ok() } } pub fn RegisterVideoEncoder(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID) -> windows_core::Result<()> { let this = self; @@ -1396,19 +1396,19 @@ impl MediaExtensionManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterVideoEncoderWithSettings(&self, activatableclassid: &windows_core::HSTRING, inputsubtype: windows_core::GUID, outputsubtype: windows_core::GUID, configuration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterVideoEncoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterVideoEncoderWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.param().abi()).ok() } } #[cfg(feature = "ApplicationModel_AppService")] pub fn RegisterMediaExtensionForAppService(&self, extension: P0, connection: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RegisterMediaExtensionForAppService)(windows_core::Interface::as_raw(this), extension.into_param().abi(), connection.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterMediaExtensionForAppService)(windows_core::Interface::as_raw(this), extension.param().abi(), connection.param().abi()).ok() } } } impl windows_core::RuntimeType for MediaExtensionManager { @@ -1521,12 +1521,12 @@ impl MediaTimelineController { } pub fn PositionChanged(&self, positionchangedeventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), positionchangedeventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PositionChanged)(windows_core::Interface::as_raw(this), positionchangedeventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePositionChanged(&self, eventcookie: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1535,12 +1535,12 @@ impl MediaTimelineController { } pub fn StateChanged(&self, statechangedeventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), statechangedeventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), statechangedeventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, eventcookie: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1556,10 +1556,10 @@ impl MediaTimelineController { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsLoopingEnabled(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1574,12 +1574,12 @@ impl MediaTimelineController { } pub fn Failed(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Failed)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Failed)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFailed(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1588,12 +1588,12 @@ impl MediaTimelineController { } pub fn Ended(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Ended)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Ended)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnded(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1958,12 +1958,12 @@ impl SystemMediaTransportControls { } pub fn ButtonPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ButtonPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ButtonPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveButtonPressed(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1972,12 +1972,12 @@ impl SystemMediaTransportControls { } pub fn PropertyChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PropertyChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PropertyChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePropertyChanged(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2019,19 +2019,19 @@ impl SystemMediaTransportControls { } pub fn UpdateTimelineProperties(&self, timelineproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).UpdateTimelineProperties)(windows_core::Interface::as_raw(this), timelineproperties.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateTimelineProperties)(windows_core::Interface::as_raw(this), timelineproperties.param().abi()).ok() } } pub fn PlaybackPositionChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackPositionChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackPositionChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlaybackPositionChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2040,12 +2040,12 @@ impl SystemMediaTransportControls { } pub fn PlaybackRateChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PlaybackRateChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PlaybackRateChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePlaybackRateChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2054,12 +2054,12 @@ impl SystemMediaTransportControls { } pub fn ShuffleEnabledChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShuffleEnabledChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShuffleEnabledChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShuffleEnabledChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2068,12 +2068,12 @@ impl SystemMediaTransportControls { } pub fn AutoRepeatModeChangeRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutoRepeatModeChangeRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AutoRepeatModeChangeRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAutoRepeatModeChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2167,10 +2167,10 @@ impl SystemMediaTransportControlsDisplayUpdater { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MusicProperties(&self) -> windows_core::Result { let this = self; @@ -2196,12 +2196,12 @@ impl SystemMediaTransportControlsDisplayUpdater { #[cfg(feature = "Storage")] pub fn CopyFromFileAsync(&self, r#type: MediaPlaybackType, source: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyFromFileAsync)(windows_core::Interface::as_raw(this), r#type, source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyFromFileAsync)(windows_core::Interface::as_raw(this), r#type, source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ClearAll(&self) -> windows_core::Result<()> { @@ -2421,10 +2421,10 @@ impl VideoFrame { } pub fn SetRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -2435,10 +2435,10 @@ impl VideoFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSystemRelativeTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SystemRelativeTime(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -2449,10 +2449,10 @@ impl VideoFrame { } pub fn SetDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Duration(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -2490,12 +2490,12 @@ impl VideoFrame { } pub fn CopyToAsync(&self, frame: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyToAsync)(windows_core::Interface::as_raw(this), frame.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyToAsync)(windows_core::Interface::as_raw(this), frame.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Graphics_DirectX_Direct3D11")] @@ -2509,14 +2509,14 @@ impl VideoFrame { #[cfg(feature = "Graphics_Imaging")] pub fn CopyToWithBoundsAsync(&self, frame: P0, sourcebounds: P1, destinationbounds: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyToWithBoundsAsync)(windows_core::Interface::as_raw(this), frame.into_param().abi(), sourcebounds.into_param().abi(), destinationbounds.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyToWithBoundsAsync)(windows_core::Interface::as_raw(this), frame.param().abi(), sourcebounds.param().abi(), destinationbounds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Graphics_Imaging")] @@ -2543,31 +2543,31 @@ impl VideoFrame { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateAsDirect3D11SurfaceBackedWithDevice(format: super::Graphics::DirectX::DirectXPixelFormat, width: i32, height: i32, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVideoFrameStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAsDirect3D11SurfaceBackedWithDevice)(windows_core::Interface::as_raw(this), format, width, height, device.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAsDirect3D11SurfaceBackedWithDevice)(windows_core::Interface::as_raw(this), format, width, height, device.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Graphics_Imaging")] pub fn CreateWithSoftwareBitmap(bitmap: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVideoFrameStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithSoftwareBitmap)(windows_core::Interface::as_raw(this), bitmap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithSoftwareBitmap)(windows_core::Interface::as_raw(this), bitmap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateWithDirect3D11Surface(surface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVideoFrameStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithDirect3D11Surface)(windows_core::Interface::as_raw(this), surface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithDirect3D11Surface)(windows_core::Interface::as_raw(this), surface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs index 3a190c467d..ca1fcca1e3 100644 --- a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs @@ -139,10 +139,10 @@ impl IBackgroundTransferBase { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -155,10 +155,10 @@ impl IBackgroundTransferBase { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } pub fn Method(&self) -> windows_core::Result { let this = self; @@ -770,39 +770,39 @@ impl BackgroundDownloader { #[cfg(feature = "Storage")] pub fn CreateDownload(&self, uri: P0, resultfile: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDownload)(windows_core::Interface::as_raw(this), uri.into_param().abi(), resultfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDownload)(windows_core::Interface::as_raw(this), uri.param().abi(), resultfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn CreateDownloadFromFile(&self, uri: P0, resultfile: P1, requestbodyfile: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDownloadFromFile)(windows_core::Interface::as_raw(this), uri.into_param().abi(), resultfile.into_param().abi(), requestbodyfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDownloadFromFile)(windows_core::Interface::as_raw(this), uri.param().abi(), resultfile.param().abi(), requestbodyfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateDownloadAsync(&self, uri: P0, resultfile: P1, requestbodystream: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDownloadAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), resultfile.into_param().abi(), requestbodystream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDownloadAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), resultfile.param().abi(), requestbodystream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TransferGroup(&self) -> windows_core::Result { @@ -814,10 +814,10 @@ impl BackgroundDownloader { } pub fn SetTransferGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTransferGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTransferGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn SuccessToastNotification(&self) -> windows_core::Result { @@ -830,10 +830,10 @@ impl BackgroundDownloader { #[cfg(feature = "UI_Notifications")] pub fn SetSuccessToastNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSuccessToastNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSuccessToastNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn FailureToastNotification(&self) -> windows_core::Result { @@ -846,10 +846,10 @@ impl BackgroundDownloader { #[cfg(feature = "UI_Notifications")] pub fn SetFailureToastNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFailureToastNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFailureToastNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn SuccessTileNotification(&self) -> windows_core::Result { @@ -862,10 +862,10 @@ impl BackgroundDownloader { #[cfg(feature = "UI_Notifications")] pub fn SetSuccessTileNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSuccessTileNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSuccessTileNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn FailureTileNotification(&self) -> windows_core::Result { @@ -878,10 +878,10 @@ impl BackgroundDownloader { #[cfg(feature = "UI_Notifications")] pub fn SetFailureTileNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFailureTileNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFailureTileNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompletionGroup(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -892,11 +892,11 @@ impl BackgroundDownloader { } pub fn CreateWithCompletionGroup(completiongroup: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBackgroundDownloaderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithCompletionGroup)(windows_core::Interface::as_raw(this), completiongroup.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithCompletionGroup)(windows_core::Interface::as_raw(this), completiongroup.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -916,21 +916,21 @@ impl BackgroundDownloader { #[cfg(feature = "Foundation_Collections")] pub fn GetCurrentDownloadsForTransferGroupAsync(group: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBackgroundDownloaderStaticMethods2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCurrentDownloadsForTransferGroupAsync)(windows_core::Interface::as_raw(this), group.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetCurrentDownloadsForTransferGroupAsync)(windows_core::Interface::as_raw(this), group.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn RequestUnconstrainedDownloadsAsync(operations: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IBackgroundDownloaderUserConsent(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestUnconstrainedDownloadsAsync)(windows_core::Interface::as_raw(this), operations.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestUnconstrainedDownloadsAsync)(windows_core::Interface::as_raw(this), operations.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn SetRequestHeader(&self, headername: &windows_core::HSTRING, headervalue: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -948,10 +948,10 @@ impl BackgroundDownloader { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -964,10 +964,10 @@ impl BackgroundDownloader { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } pub fn Method(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1139,10 +1139,10 @@ impl BackgroundTransferContentPart { #[cfg(feature = "Storage")] pub fn SetFile(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFile)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFile)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateWithName(name: &windows_core::HSTRING) -> windows_core::Result { Self::IBackgroundTransferContentPartFactory(|this| unsafe { @@ -1307,10 +1307,10 @@ impl BackgroundUploader { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -1323,10 +1323,10 @@ impl BackgroundUploader { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } pub fn Method(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1366,61 +1366,61 @@ impl BackgroundUploader { #[cfg(feature = "Storage")] pub fn CreateUpload(&self, uri: P0, sourcefile: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUpload)(windows_core::Interface::as_raw(this), uri.into_param().abi(), sourcefile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUpload)(windows_core::Interface::as_raw(this), uri.param().abi(), sourcefile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateUploadFromStreamAsync(&self, uri: P0, sourcestream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUploadFromStreamAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), sourcestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUploadFromStreamAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), sourcestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn CreateUploadWithFormDataAndAutoBoundaryAsync(&self, uri: P0, parts: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUploadWithFormDataAndAutoBoundaryAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), parts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUploadWithFormDataAndAutoBoundaryAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), parts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn CreateUploadWithSubTypeAsync(&self, uri: P0, parts: P1, subtype: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUploadWithSubTypeAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), parts.into_param().abi(), core::mem::transmute_copy(subtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUploadWithSubTypeAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), parts.param().abi(), core::mem::transmute_copy(subtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn CreateUploadWithSubTypeAndBoundaryAsync(&self, uri: P0, parts: P1, subtype: &windows_core::HSTRING, boundary: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateUploadWithSubTypeAndBoundaryAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), parts.into_param().abi(), core::mem::transmute_copy(subtype), core::mem::transmute_copy(boundary), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateUploadWithSubTypeAndBoundaryAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), parts.param().abi(), core::mem::transmute_copy(subtype), core::mem::transmute_copy(boundary), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TransferGroup(&self) -> windows_core::Result { @@ -1432,10 +1432,10 @@ impl BackgroundUploader { } pub fn SetTransferGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTransferGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTransferGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn SuccessToastNotification(&self) -> windows_core::Result { @@ -1448,10 +1448,10 @@ impl BackgroundUploader { #[cfg(feature = "UI_Notifications")] pub fn SetSuccessToastNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSuccessToastNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSuccessToastNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn FailureToastNotification(&self) -> windows_core::Result { @@ -1464,10 +1464,10 @@ impl BackgroundUploader { #[cfg(feature = "UI_Notifications")] pub fn SetFailureToastNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFailureToastNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFailureToastNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn SuccessTileNotification(&self) -> windows_core::Result { @@ -1480,10 +1480,10 @@ impl BackgroundUploader { #[cfg(feature = "UI_Notifications")] pub fn SetSuccessTileNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSuccessTileNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSuccessTileNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Notifications")] pub fn FailureTileNotification(&self) -> windows_core::Result { @@ -1496,10 +1496,10 @@ impl BackgroundUploader { #[cfg(feature = "UI_Notifications")] pub fn SetFailureTileNotification(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFailureTileNotification)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFailureTileNotification)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompletionGroup(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1510,11 +1510,11 @@ impl BackgroundUploader { } pub fn CreateWithCompletionGroup(completiongroup: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBackgroundUploaderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithCompletionGroup)(windows_core::Interface::as_raw(this), completiongroup.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithCompletionGroup)(windows_core::Interface::as_raw(this), completiongroup.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -1534,21 +1534,21 @@ impl BackgroundUploader { #[cfg(feature = "Foundation_Collections")] pub fn GetCurrentUploadsForTransferGroupAsync(group: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBackgroundUploaderStaticMethods2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCurrentUploadsForTransferGroupAsync)(windows_core::Interface::as_raw(this), group.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetCurrentUploadsForTransferGroupAsync)(windows_core::Interface::as_raw(this), group.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn RequestUnconstrainedUploadsAsync(operations: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IBackgroundUploaderUserConsent(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestUnconstrainedUploadsAsync)(windows_core::Interface::as_raw(this), operations.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestUnconstrainedUploadsAsync)(windows_core::Interface::as_raw(this), operations.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1596,9 +1596,9 @@ impl ContentPrefetcher { } pub fn SetIndirectContentUri(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IContentPrefetcher(|this| unsafe { (windows_core::Interface::vtable(this).SetIndirectContentUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IContentPrefetcher(|this| unsafe { (windows_core::Interface::vtable(this).SetIndirectContentUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn IndirectContentUri() -> windows_core::Result { Self::IContentPrefetcher(|this| unsafe { @@ -1771,12 +1771,12 @@ impl DownloadOperation { } pub fn RangesDownloaded(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RangesDownloaded)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RangesDownloaded)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRangesDownloaded(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1785,10 +1785,10 @@ impl DownloadOperation { } pub fn SetRequestedUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRequestedUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRequestedUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Web"))] pub fn RecoverableWebErrorStatuses(&self) -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs index dab2c984b3..ee8c9f0e5f 100644 --- a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs @@ -950,10 +950,10 @@ impl ConnectionProfileFilter { } pub fn SetServiceProviderGuid(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServiceProviderGuid)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServiceProviderGuid)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ServiceProviderGuid(&self) -> windows_core::Result> { let this = self; @@ -964,10 +964,10 @@ impl ConnectionProfileFilter { } pub fn SetIsRoaming(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetIsRoaming)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIsRoaming)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsRoaming(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -978,10 +978,10 @@ impl ConnectionProfileFilter { } pub fn SetIsOverDataLimit(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetIsOverDataLimit)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIsOverDataLimit)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsOverDataLimit(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -992,10 +992,10 @@ impl ConnectionProfileFilter { } pub fn SetIsBackgroundDataUsageRestricted(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetIsBackgroundDataUsageRestricted)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIsBackgroundDataUsageRestricted)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsBackgroundDataUsageRestricted(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1014,10 +1014,10 @@ impl ConnectionProfileFilter { } pub fn SetPurposeGuid(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPurposeGuid)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPurposeGuid)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PurposeGuid(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -1105,24 +1105,24 @@ pub struct ConnectivityManager; impl ConnectivityManager { pub fn AcquireConnectionAsync(cellularapncontext: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IConnectivityManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcquireConnectionAsync)(windows_core::Interface::as_raw(this), cellularapncontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AcquireConnectionAsync)(windows_core::Interface::as_raw(this), cellularapncontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AddHttpRoutePolicy(routepolicy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IConnectivityManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).AddHttpRoutePolicy)(windows_core::Interface::as_raw(this), routepolicy.into_param().abi()).ok() }) + Self::IConnectivityManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).AddHttpRoutePolicy)(windows_core::Interface::as_raw(this), routepolicy.param().abi()).ok() }) } pub fn RemoveHttpRoutePolicy(routepolicy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IConnectivityManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveHttpRoutePolicy)(windows_core::Interface::as_raw(this), routepolicy.into_param().abi()).ok() }) + Self::IConnectivityManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveHttpRoutePolicy)(windows_core::Interface::as_raw(this), routepolicy.param().abi()).ok() }) } #[doc(hidden)] pub fn IConnectivityManagerStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -1462,30 +1462,30 @@ impl NetworkInformation { } pub fn GetProxyConfigurationAsync(uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetProxyConfigurationAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetProxyConfigurationAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn GetSortedEndpointPairs(destinationlist: P0, sortoptions: super::HostNameSortOptions) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSortedEndpointPairs)(windows_core::Interface::as_raw(this), destinationlist.into_param().abi(), sortoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSortedEndpointPairs)(windows_core::Interface::as_raw(this), destinationlist.param().abi(), sortoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn NetworkStatusChanged(networkstatushandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NetworkStatusChanged)(windows_core::Interface::as_raw(this), networkstatushandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NetworkStatusChanged)(windows_core::Interface::as_raw(this), networkstatushandler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveNetworkStatusChanged(eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1494,11 +1494,11 @@ impl NetworkInformation { #[cfg(feature = "Foundation_Collections")] pub fn FindConnectionProfilesAsync(pprofilefilter: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::INetworkInformationStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindConnectionProfilesAsync)(windows_core::Interface::as_raw(this), pprofilefilter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindConnectionProfilesAsync)(windows_core::Interface::as_raw(this), pprofilefilter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1792,12 +1792,12 @@ impl RoutePolicy { } pub fn CreateRoutePolicy(connectionprofile: P0, hostname: P1, r#type: super::DomainNameType) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IRoutePolicyFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRoutePolicy)(windows_core::Interface::as_raw(this), connectionprofile.into_param().abi(), hostname.into_param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRoutePolicy)(windows_core::Interface::as_raw(this), connectionprofile.param().abi(), hostname.param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2373,10 +2373,10 @@ impl NetworkStatusChangedEventHandler { } pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs b/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs index e3e48ff7c5..0a1c1f6e3a 100644 --- a/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs @@ -1612,12 +1612,12 @@ impl ESim { } pub fn ProfileChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProfileChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProfileChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProfileChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1824,11 +1824,11 @@ impl ESimManager { } pub fn ServiceInfoChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IESimManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServiceInfoChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServiceInfoChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveServiceInfoChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2074,12 +2074,12 @@ impl ESimProfileMetadata { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2242,12 +2242,12 @@ impl ESimWatcher { } pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2256,12 +2256,12 @@ impl ESimWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2270,12 +2270,12 @@ impl ESimWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2284,12 +2284,12 @@ impl ESimWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2298,12 +2298,12 @@ impl ESimWatcher { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2802,12 +2802,12 @@ impl MobileBroadbandAccountWatcher { } pub fn AccountAdded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccountAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccountAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAccountAdded(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2816,12 +2816,12 @@ impl MobileBroadbandAccountWatcher { } pub fn AccountUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccountUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccountUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAccountUpdated(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2830,12 +2830,12 @@ impl MobileBroadbandAccountWatcher { } pub fn AccountRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccountRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccountRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAccountRemoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2844,12 +2844,12 @@ impl MobileBroadbandAccountWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2858,12 +2858,12 @@ impl MobileBroadbandAccountWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3775,23 +3775,23 @@ impl MobileBroadbandDeviceServiceCommandSession { #[cfg(feature = "Storage_Streams")] pub fn SendQueryCommandAsync(&self, commandid: u32, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendQueryCommandAsync)(windows_core::Interface::as_raw(this), commandid, data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendQueryCommandAsync)(windows_core::Interface::as_raw(this), commandid, data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SendSetCommandAsync(&self, commandid: u32, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendSetCommandAsync)(windows_core::Interface::as_raw(this), commandid, data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendSetCommandAsync)(windows_core::Interface::as_raw(this), commandid, data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloseSession(&self) -> windows_core::Result<()> { @@ -3845,12 +3845,12 @@ impl MobileBroadbandDeviceServiceDataSession { #[cfg(feature = "Storage_Streams")] pub fn WriteDataAsync(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteDataAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteDataAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CloseSession(&self) -> windows_core::Result<()> { @@ -3859,12 +3859,12 @@ impl MobileBroadbandDeviceServiceDataSession { } pub fn DataReceived(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DataReceived)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DataReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDataReceived(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4076,12 +4076,12 @@ impl MobileBroadbandModem { } pub fn IsInEmergencyCallModeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsInEmergencyCallModeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsInEmergencyCallModeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsInEmergencyCallModeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4203,18 +4203,18 @@ windows_core::imp::interface_hierarchy!(MobileBroadbandModemIsolation, windows_c impl MobileBroadbandModemIsolation { pub fn AddAllowedHost(&self, host: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddAllowedHost)(windows_core::Interface::as_raw(this), host.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddAllowedHost)(windows_core::Interface::as_raw(this), host.param().abi()).ok() } } pub fn AddAllowedHostRange(&self, first: P0, last: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddAllowedHostRange)(windows_core::Interface::as_raw(this), first.into_param().abi(), last.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddAllowedHostRange)(windows_core::Interface::as_raw(this), first.param().abi(), last.param().abi()).ok() } } pub fn ApplyConfigurationAsync(&self) -> windows_core::Result { let this = self; @@ -4816,12 +4816,12 @@ impl MobileBroadbandSarManager { } pub fn TransmissionStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TransmissionStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TransmissionStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTransmissionStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4845,12 +4845,12 @@ impl MobileBroadbandSarManager { #[cfg(feature = "Foundation_Collections")] pub fn SetConfigurationAsync(&self, antennas: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetConfigurationAsync)(windows_core::Interface::as_raw(this), antennas.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetConfigurationAsync)(windows_core::Interface::as_raw(this), antennas.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RevertSarToHardwareControlAsync(&self) -> windows_core::Result { @@ -4995,12 +4995,12 @@ impl MobileBroadbandSlotManager { } pub fn SlotInfoChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SlotInfoChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SlotInfoChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSlotInfoChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5009,12 +5009,12 @@ impl MobileBroadbandSlotManager { } pub fn CurrentSlotIndexChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrentSlotIndexChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CurrentSlotIndexChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCurrentSlotIndexChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -5114,23 +5114,23 @@ impl MobileBroadbandUiccApp { #[cfg(feature = "Foundation_Collections")] pub fn GetRecordDetailsAsync(&self, uiccfilepath: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetRecordDetailsAsync)(windows_core::Interface::as_raw(this), uiccfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetRecordDetailsAsync)(windows_core::Interface::as_raw(this), uiccfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn ReadRecordAsync(&self, uiccfilepath: P0, recordindex: i32) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadRecordAsync)(windows_core::Interface::as_raw(this), uiccfilepath.into_param().abi(), recordindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadRecordAsync)(windows_core::Interface::as_raw(this), uiccfilepath.param().abi(), recordindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -5510,12 +5510,12 @@ impl NetworkOperatorTetheringManager { } pub fn ConfigureAccessPointAsync(&self, configuration: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConfigureAccessPointAsync)(windows_core::Interface::as_raw(this), configuration.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConfigureAccessPointAsync)(windows_core::Interface::as_raw(this), configuration.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn StartTetheringAsync(&self) -> windows_core::Result> { @@ -5547,32 +5547,32 @@ impl NetworkOperatorTetheringManager { #[cfg(feature = "Networking_Connectivity")] pub fn GetTetheringCapabilityFromConnectionProfile(profile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::INetworkOperatorTetheringManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetTetheringCapabilityFromConnectionProfile)(windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetTetheringCapabilityFromConnectionProfile)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "Networking_Connectivity")] pub fn CreateFromConnectionProfile(profile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::INetworkOperatorTetheringManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromConnectionProfile)(windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromConnectionProfile)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Networking_Connectivity")] pub fn CreateFromConnectionProfileWithTargetAdapter(profile: P0, adapter: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::INetworkOperatorTetheringManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromConnectionProfileWithTargetAdapter)(windows_core::Interface::as_raw(this), profile.into_param().abi(), adapter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromConnectionProfileWithTargetAdapter)(windows_core::Interface::as_raw(this), profile.param().abi(), adapter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsNoConnectionsTimeoutEnabled() -> windows_core::Result { @@ -5895,12 +5895,12 @@ windows_core::imp::interface_hierarchy!(UssdSession, windows_core::IUnknown, win impl UssdSession { pub fn SendMessageAndGetReplyAsync(&self, message: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendMessageAndGetReplyAsync)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendMessageAndGetReplyAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Close(&self) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs index b972029318..4fb5b4e53f 100644 --- a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs @@ -272,11 +272,11 @@ impl PeerFinder { } pub fn TriggeredConnectionStateChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPeerFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TriggeredConnectionStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TriggeredConnectionStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveTriggeredConnectionStateChanged(cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -284,11 +284,11 @@ impl PeerFinder { } pub fn ConnectionRequested(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPeerFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveConnectionRequested(cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -304,11 +304,11 @@ impl PeerFinder { #[cfg(feature = "Networking_Sockets")] pub fn ConnectAsync(peerinformation: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPeerFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), peerinformation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), peerinformation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Role() -> windows_core::Result { @@ -330,9 +330,9 @@ impl PeerFinder { #[cfg(feature = "Storage_Streams")] pub fn SetDiscoveryData(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IPeerFinderStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetDiscoveryData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IPeerFinderStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetDiscoveryData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn CreateWatcher() -> windows_core::Result { Self::IPeerFinderStatics2(|this| unsafe { @@ -415,12 +415,12 @@ windows_core::imp::interface_hierarchy!(PeerWatcher, windows_core::IUnknown, win impl PeerWatcher { pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -429,12 +429,12 @@ impl PeerWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -443,12 +443,12 @@ impl PeerWatcher { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -457,12 +457,12 @@ impl PeerWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -471,12 +471,12 @@ impl PeerWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -518,12 +518,12 @@ windows_core::imp::interface_hierarchy!(ProximityDevice, windows_core::IUnknown, impl ProximityDevice { pub fn SubscribeForMessage(&self, messagetype: &windows_core::HSTRING, messagereceivedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SubscribeForMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), messagereceivedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SubscribeForMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), messagereceivedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn PublishMessage(&self, messagetype: &windows_core::HSTRING, message: &windows_core::HSTRING) -> windows_core::Result { @@ -535,56 +535,56 @@ impl ProximityDevice { } pub fn PublishMessageWithCallback(&self, messagetype: &windows_core::HSTRING, message: &windows_core::HSTRING, messagetransmittedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PublishMessageWithCallback)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), core::mem::transmute_copy(message), messagetransmittedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PublishMessageWithCallback)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), core::mem::transmute_copy(message), messagetransmittedhandler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Streams")] pub fn PublishBinaryMessage(&self, messagetype: &windows_core::HSTRING, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PublishBinaryMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), message.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PublishBinaryMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), message.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Streams")] pub fn PublishBinaryMessageWithCallback(&self, messagetype: &windows_core::HSTRING, message: P0, messagetransmittedhandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PublishBinaryMessageWithCallback)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), message.into_param().abi(), messagetransmittedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PublishBinaryMessageWithCallback)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(messagetype), message.param().abi(), messagetransmittedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn PublishUriMessage(&self, message: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PublishUriMessage)(windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PublishUriMessage)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).map(|| result__) } } pub fn PublishUriMessageWithCallback(&self, message: P0, messagetransmittedhandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PublishUriMessageWithCallback)(windows_core::Interface::as_raw(this), message.into_param().abi(), messagetransmittedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PublishUriMessageWithCallback)(windows_core::Interface::as_raw(this), message.param().abi(), messagetransmittedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn StopSubscribingForMessage(&self, subscriptionid: i64) -> windows_core::Result<()> { @@ -597,12 +597,12 @@ impl ProximityDevice { } pub fn DeviceArrived(&self, arrivedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeviceArrived)(windows_core::Interface::as_raw(this), arrivedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeviceArrived)(windows_core::Interface::as_raw(this), arrivedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDeviceArrived(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -611,12 +611,12 @@ impl ProximityDevice { } pub fn DeviceDeparted(&self, departedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeviceDeparted)(windows_core::Interface::as_raw(this), departedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DeviceDeparted)(windows_core::Interface::as_raw(this), departedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDeviceDeparted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -890,10 +890,10 @@ impl DeviceArrivedEventHandler { } pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[repr(C)] @@ -950,10 +950,10 @@ impl DeviceDepartedEventHandler { } pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[repr(C)] @@ -1010,11 +1010,11 @@ impl MessageReceivedHandler { } pub fn Invoke(&self, sender: P0, message: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), message.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), message.param().abi()).ok() } } } #[repr(C)] @@ -1071,10 +1071,10 @@ impl MessageTransmittedHandler { } pub fn Invoke(&self, sender: P0, messageid: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), messageid).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), messageid).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs b/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs index a0f9513f4d..6e6cbe53b4 100644 --- a/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs @@ -175,12 +175,12 @@ impl PushNotificationChannel { } pub fn PushNotificationReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PushNotificationReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PushNotificationReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePushNotificationReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -223,11 +223,11 @@ impl PushNotificationChannelManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPushNotificationChannelManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefault() -> windows_core::Result { @@ -238,11 +238,11 @@ impl PushNotificationChannelManager { } pub fn ChannelsRevoked(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPushNotificationChannelManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ChannelsRevoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ChannelsRevoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveChannelsRevoked(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -309,23 +309,23 @@ impl PushNotificationChannelManagerForUser { #[cfg(feature = "Storage_Streams")] pub fn CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(&self, appserverkey: P0, channelid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync)(windows_core::Interface::as_raw(this), appserverkey.into_param().abi(), core::mem::transmute_copy(channelid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync)(windows_core::Interface::as_raw(this), appserverkey.param().abi(), core::mem::transmute_copy(channelid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId(&self, appserverkey: P0, channelid: &windows_core::HSTRING, appid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId)(windows_core::Interface::as_raw(this), appserverkey.into_param().abi(), core::mem::transmute_copy(channelid), core::mem::transmute_copy(appid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId)(windows_core::Interface::as_raw(this), appserverkey.param().abi(), core::mem::transmute_copy(channelid), core::mem::transmute_copy(appid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs b/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs index 1a04589b02..2d89c8b454 100644 --- a/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs @@ -153,10 +153,10 @@ impl DnssdServiceInstance { } pub fn SetHostName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetHostName)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetHostName)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Port(&self) -> windows_core::Result { let this = self; @@ -202,56 +202,56 @@ impl DnssdServiceInstance { #[cfg(feature = "Networking_Sockets")] pub fn RegisterStreamSocketListenerAsync1(&self, socket: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterStreamSocketListenerAsync1)(windows_core::Interface::as_raw(this), socket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterStreamSocketListenerAsync1)(windows_core::Interface::as_raw(this), socket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Networking_Connectivity", feature = "Networking_Sockets"))] pub fn RegisterStreamSocketListenerAsync2(&self, socket: P0, adapter: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterStreamSocketListenerAsync2)(windows_core::Interface::as_raw(this), socket.into_param().abi(), adapter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterStreamSocketListenerAsync2)(windows_core::Interface::as_raw(this), socket.param().abi(), adapter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Networking_Sockets")] pub fn RegisterDatagramSocketAsync1(&self, socket: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterDatagramSocketAsync1)(windows_core::Interface::as_raw(this), socket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterDatagramSocketAsync1)(windows_core::Interface::as_raw(this), socket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Networking_Connectivity", feature = "Networking_Sockets"))] pub fn RegisterDatagramSocketAsync2(&self, socket: P0, adapter: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterDatagramSocketAsync2)(windows_core::Interface::as_raw(this), socket.into_param().abi(), adapter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterDatagramSocketAsync2)(windows_core::Interface::as_raw(this), socket.param().abi(), adapter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Create(dnssdserviceinstancename: &windows_core::HSTRING, hostname: P0, port: u16) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDnssdServiceInstanceFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(dnssdserviceinstancename), hostname.into_param().abi(), port, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(dnssdserviceinstancename), hostname.param().abi(), port, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ToString(&self) -> windows_core::Result { @@ -316,12 +316,12 @@ impl DnssdServiceInstanceCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -373,12 +373,12 @@ windows_core::imp::interface_hierarchy!(DnssdServiceWatcher, windows_core::IUnkn impl DnssdServiceWatcher { pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -387,12 +387,12 @@ impl DnssdServiceWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -401,12 +401,12 @@ impl DnssdServiceWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs b/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs index af25619169..470a77c815 100644 --- a/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs @@ -786,12 +786,12 @@ impl IWebSocket { } pub fn ConnectAsync(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetRequestHeader(&self, headername: &windows_core::HSTRING, headervalue: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -800,12 +800,12 @@ impl IWebSocket { } pub fn Closed(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -872,10 +872,10 @@ impl IWebSocketControl { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -888,10 +888,10 @@ impl IWebSocketControl { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SupportedProtocols(&self) -> windows_core::Result> { @@ -965,10 +965,10 @@ impl IWebSocketControl2 { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -981,10 +981,10 @@ impl IWebSocketControl2 { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SupportedProtocols(&self) -> windows_core::Result> { @@ -1213,10 +1213,10 @@ impl ControlChannelTrigger { } pub fn UsingTransport(&self, transport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UsingTransport)(windows_core::Interface::as_raw(this), transport.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UsingTransport)(windows_core::Interface::as_raw(this), transport.param().abi()).ok() } } pub fn WaitForPushEnabled(&self) -> windows_core::Result { let this = self; @@ -1311,22 +1311,22 @@ impl DatagramSocket { } pub fn ConnectAsync(&self, remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectWithEndpointPairAsync(&self, endpointpair: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithEndpointPairAsync)(windows_core::Interface::as_raw(this), endpointpair.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithEndpointPairAsync)(windows_core::Interface::as_raw(this), endpointpair.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn BindServiceNameAsync(&self, localservicename: &windows_core::HSTRING) -> windows_core::Result { @@ -1338,51 +1338,51 @@ impl DatagramSocket { } pub fn BindEndpointAsync(&self, localhostname: P0, localservicename: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BindEndpointAsync)(windows_core::Interface::as_raw(this), localhostname.into_param().abi(), core::mem::transmute_copy(localservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BindEndpointAsync)(windows_core::Interface::as_raw(this), localhostname.param().abi(), core::mem::transmute_copy(localservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn JoinMulticastGroup(&self, host: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).JoinMulticastGroup)(windows_core::Interface::as_raw(this), host.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).JoinMulticastGroup)(windows_core::Interface::as_raw(this), host.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn GetOutputStreamAsync(&self, remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetOutputStreamAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetOutputStreamAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn GetOutputStreamWithEndpointPairAsync(&self, endpointpair: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetOutputStreamWithEndpointPairAsync)(windows_core::Interface::as_raw(this), endpointpair.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetOutputStreamWithEndpointPairAsync)(windows_core::Interface::as_raw(this), endpointpair.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MessageReceived(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageReceived(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1392,12 +1392,12 @@ impl DatagramSocket { #[cfg(feature = "Networking_Connectivity")] pub fn BindServiceNameAndAdapterAsync(&self, localservicename: &windows_core::HSTRING, adapter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BindServiceNameAndAdapterAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localservicename), adapter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BindServiceNameAndAdapterAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localservicename), adapter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CancelIOAsync(&self) -> windows_core::Result { @@ -1421,36 +1421,36 @@ impl DatagramSocket { } pub fn TransferOwnershipWithContext(&self, socketid: &windows_core::HSTRING, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.param().abi()).ok() } } pub fn TransferOwnershipWithContextAndKeepAliveTime(&self, socketid: &windows_core::HSTRING, data: P0, keepalivetime: super::super::Foundation::TimeSpan) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContextAndKeepAliveTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.into_param().abi(), keepalivetime).ok() } + unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContextAndKeepAliveTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.param().abi(), keepalivetime).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetEndpointPairsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDatagramSocketStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEndpointPairsAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetEndpointPairsAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn GetEndpointPairsWithSortOptionsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING, sortoptions: super::HostNameSortOptions) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDatagramSocketStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEndpointPairsWithSortOptionsAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), sortoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetEndpointPairsWithSortOptionsAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), sortoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1678,12 +1678,12 @@ impl MessageWebSocket { } pub fn MessageReceived(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageReceived(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1692,12 +1692,12 @@ impl MessageWebSocket { } pub fn ServerCustomValidationRequested(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServerCustomValidationRequested)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServerCustomValidationRequested)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServerCustomValidationRequested(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1707,23 +1707,23 @@ impl MessageWebSocket { #[cfg(feature = "Storage_Streams")] pub fn SendNonfinalFrameAsync(&self, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendNonfinalFrameAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendNonfinalFrameAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SendFinalFrameAsync(&self, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendFinalFrameAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendFinalFrameAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -1736,12 +1736,12 @@ impl MessageWebSocket { } pub fn ConnectAsync(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetRequestHeader(&self, headername: &windows_core::HSTRING, headervalue: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -1750,12 +1750,12 @@ impl MessageWebSocket { } pub fn Closed(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1847,10 +1847,10 @@ impl MessageWebSocketControl { #[cfg(feature = "Security_Cryptography_Certificates")] pub fn SetClientCertificate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OutboundBufferSizeInBytes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1874,10 +1874,10 @@ impl MessageWebSocketControl { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -1890,10 +1890,10 @@ impl MessageWebSocketControl { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SupportedProtocols(&self) -> windows_core::Result> { @@ -2055,12 +2055,12 @@ impl ServerMessageWebSocket { } pub fn MessageReceived(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageReceived)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2091,12 +2091,12 @@ impl ServerMessageWebSocket { } pub fn Closed(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2223,12 +2223,12 @@ impl ServerStreamWebSocket { } pub fn Closed(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2307,11 +2307,11 @@ impl SocketActivityContext { #[cfg(feature = "Storage_Streams")] pub fn Create(data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISocketActivityContextFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2509,64 +2509,64 @@ impl StreamSocket { } pub fn ConnectWithEndpointPairAsync(&self, endpointpair: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithEndpointPairAsync)(windows_core::Interface::as_raw(this), endpointpair.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithEndpointPairAsync)(windows_core::Interface::as_raw(this), endpointpair.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectAsync(&self, remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectWithEndpointPairAndProtectionLevelAsync(&self, endpointpair: P0, protectionlevel: SocketProtectionLevel) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithEndpointPairAndProtectionLevelAsync)(windows_core::Interface::as_raw(this), endpointpair.into_param().abi(), protectionlevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithEndpointPairAndProtectionLevelAsync)(windows_core::Interface::as_raw(this), endpointpair.param().abi(), protectionlevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectWithProtectionLevelAsync(&self, remotehostname: P0, remoteservicename: &windows_core::HSTRING, protectionlevel: SocketProtectionLevel) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithProtectionLevelAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), protectionlevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithProtectionLevelAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), protectionlevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UpgradeToSslAsync(&self, protectionlevel: SocketProtectionLevel, validationhostname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpgradeToSslAsync)(windows_core::Interface::as_raw(this), protectionlevel, validationhostname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpgradeToSslAsync)(windows_core::Interface::as_raw(this), protectionlevel, validationhostname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Networking_Connectivity")] pub fn ConnectWithProtectionLevelAndAdapterAsync(&self, remotehostname: P0, remoteservicename: &windows_core::HSTRING, protectionlevel: SocketProtectionLevel, adapter: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectWithProtectionLevelAndAdapterAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), protectionlevel, adapter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectWithProtectionLevelAndAdapterAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), protectionlevel, adapter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CancelIOAsync(&self) -> windows_core::Result { @@ -2590,36 +2590,36 @@ impl StreamSocket { } pub fn TransferOwnershipWithContext(&self, socketid: &windows_core::HSTRING, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.param().abi()).ok() } } pub fn TransferOwnershipWithContextAndKeepAliveTime(&self, socketid: &windows_core::HSTRING, data: P0, keepalivetime: super::super::Foundation::TimeSpan) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContextAndKeepAliveTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.into_param().abi(), keepalivetime).ok() } + unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContextAndKeepAliveTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.param().abi(), keepalivetime).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetEndpointPairsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStreamSocketStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEndpointPairsAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetEndpointPairsAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn GetEndpointPairsWithSortOptionsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING, sortoptions: super::HostNameSortOptions) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStreamSocketStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEndpointPairsWithSortOptionsAsync)(windows_core::Interface::as_raw(this), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), sortoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetEndpointPairsWithSortOptionsAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), sortoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2730,10 +2730,10 @@ impl StreamSocketControl { #[cfg(feature = "Security_Cryptography_Certificates")] pub fn SetClientCertificate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MinProtectionLevel(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2919,22 +2919,22 @@ impl StreamSocketListener { } pub fn BindEndpointAsync(&self, localhostname: P0, localservicename: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BindEndpointAsync)(windows_core::Interface::as_raw(this), localhostname.into_param().abi(), core::mem::transmute_copy(localservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BindEndpointAsync)(windows_core::Interface::as_raw(this), localhostname.param().abi(), core::mem::transmute_copy(localservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectionReceived(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionReceived)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionReceived(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2951,12 +2951,12 @@ impl StreamSocketListener { #[cfg(feature = "Networking_Connectivity")] pub fn BindServiceNameWithProtectionLevelAndAdapterAsync(&self, localservicename: &windows_core::HSTRING, protectionlevel: SocketProtectionLevel, adapter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BindServiceNameWithProtectionLevelAndAdapterAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localservicename), protectionlevel, adapter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BindServiceNameWithProtectionLevelAndAdapterAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localservicename), protectionlevel, adapter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CancelIOAsync(&self) -> windows_core::Result { @@ -2980,10 +2980,10 @@ impl StreamSocketListener { } pub fn TransferOwnershipWithContext(&self, socketid: &windows_core::HSTRING, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.param().abi()).ok() } } } impl windows_core::RuntimeType for StreamSocketListener { @@ -3162,12 +3162,12 @@ impl StreamWebSocket { } pub fn ServerCustomValidationRequested(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServerCustomValidationRequested)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServerCustomValidationRequested)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServerCustomValidationRequested(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3184,12 +3184,12 @@ impl StreamWebSocket { } pub fn ConnectAsync(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetRequestHeader(&self, headername: &windows_core::HSTRING, headervalue: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -3198,12 +3198,12 @@ impl StreamWebSocket { } pub fn Closed(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3273,10 +3273,10 @@ impl StreamWebSocketControl { #[cfg(feature = "Security_Cryptography_Certificates")] pub fn SetClientCertificate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OutboundBufferSizeInBytes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3300,10 +3300,10 @@ impl StreamWebSocketControl { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -3316,10 +3316,10 @@ impl StreamWebSocketControl { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SupportedProtocols(&self) -> windows_core::Result> { @@ -3491,10 +3491,10 @@ impl WebSocketKeepAlive { #[cfg(feature = "ApplicationModel_Background")] pub fn Run(&self, taskinstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Run)(windows_core::Interface::as_raw(this), taskinstance.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Run)(windows_core::Interface::as_raw(this), taskinstance.param().abi()).ok() } } } #[cfg(feature = "ApplicationModel_Background")] diff --git a/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs b/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs index bb47d97ff7..2e59967b95 100644 --- a/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs @@ -180,11 +180,11 @@ windows_core::imp::interface_hierarchy!(IVpnChannelStatics, windows_core::IUnkno impl IVpnChannelStatics { pub fn ProcessEventAsync(&self, thirdpartyplugin: P0, event: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessEventAsync)(windows_core::Interface::as_raw(this), thirdpartyplugin.into_param().abi(), event.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessEventAsync)(windows_core::Interface::as_raw(this), thirdpartyplugin.param().abi(), event.param().abi()).ok() } } } impl windows_core::RuntimeType for IVpnChannelStatics { @@ -508,13 +508,13 @@ impl IVpnDomainNameInfoFactory { #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnDomainNameInfo(&self, name: &windows_core::HSTRING, nametype: VpnDomainNameType, dnsserverlist: P0, proxyserverlist: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnDomainNameInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), nametype, dnsserverlist.into_param().abi(), proxyserverlist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnDomainNameInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), nametype, dnsserverlist.param().abi(), proxyserverlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -656,13 +656,13 @@ impl IVpnNamespaceInfoFactory { #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnNamespaceInfo(&self, name: &windows_core::HSTRING, dnsserverlist: P0, proxyserverlist: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnNamespaceInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), dnsserverlist.into_param().abi(), proxyserverlist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnNamespaceInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), dnsserverlist.param().abi(), proxyserverlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -750,12 +750,12 @@ windows_core::imp::interface_hierarchy!(IVpnPacketBufferFactory, windows_core::I impl IVpnPacketBufferFactory { pub fn CreateVpnPacketBuffer(&self, parentbuffer: P0, offset: u32, length: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnPacketBuffer)(windows_core::Interface::as_raw(this), parentbuffer.into_param().abi(), offset, length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnPacketBuffer)(windows_core::Interface::as_raw(this), parentbuffer.param().abi(), offset, length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -817,43 +817,43 @@ windows_core::imp::interface_hierarchy!(IVpnPlugIn, windows_core::IUnknown, wind impl IVpnPlugIn { pub fn Connect(&self, channel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Connect)(windows_core::Interface::as_raw(this), channel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Connect)(windows_core::Interface::as_raw(this), channel.param().abi()).ok() } } pub fn Disconnect(&self, channel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Disconnect)(windows_core::Interface::as_raw(this), channel.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Disconnect)(windows_core::Interface::as_raw(this), channel.param().abi()).ok() } } pub fn GetKeepAlivePayload(&self, channel: P0, keepalivepacket: &mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).GetKeepAlivePayload)(windows_core::Interface::as_raw(this), channel.into_param().abi(), keepalivepacket as *mut _ as _).ok() } + unsafe { (windows_core::Interface::vtable(this).GetKeepAlivePayload)(windows_core::Interface::as_raw(this), channel.param().abi(), keepalivepacket as *mut _ as _).ok() } } pub fn Encapsulate(&self, channel: P0, packets: P1, encapulatedpackets: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Encapsulate)(windows_core::Interface::as_raw(this), channel.into_param().abi(), packets.into_param().abi(), encapulatedpackets.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Encapsulate)(windows_core::Interface::as_raw(this), channel.param().abi(), packets.param().abi(), encapulatedpackets.param().abi()).ok() } } pub fn Decapsulate(&self, channel: P0, encapbuffer: P1, decapsulatedpackets: P2, controlpacketstosend: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Decapsulate)(windows_core::Interface::as_raw(this), channel.into_param().abi(), encapbuffer.into_param().abi(), decapsulatedpackets.into_param().abi(), controlpacketstosend.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Decapsulate)(windows_core::Interface::as_raw(this), channel.param().abi(), encapbuffer.param().abi(), decapsulatedpackets.param().abi(), controlpacketstosend.param().abi()).ok() } } } impl windows_core::RuntimeType for IVpnPlugIn { @@ -1052,12 +1052,12 @@ windows_core::imp::interface_hierarchy!(IVpnRouteFactory, windows_core::IUnknown impl IVpnRouteFactory { pub fn CreateVpnRoute(&self, address: P0, prefixsize: u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnRoute)(windows_core::Interface::as_raw(this), address.into_param().abi(), prefixsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnRoute)(windows_core::Interface::as_raw(this), address.param().abi(), prefixsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1198,25 +1198,25 @@ windows_core::imp::interface_hierarchy!(VpnChannel, windows_core::IUnknown, wind impl VpnChannel { pub fn AssociateTransport(&self, mainoutertunneltransport: P0, optionaloutertunneltransport: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AssociateTransport)(windows_core::Interface::as_raw(this), mainoutertunneltransport.into_param().abi(), optionaloutertunneltransport.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AssociateTransport)(windows_core::Interface::as_raw(this), mainoutertunneltransport.param().abi(), optionaloutertunneltransport.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Start(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, routescope: P3, namespacescope: P4, mtusize: u32, maxframesize: u32, optimizeforlowcostnetwork: bool, mainoutertunneltransport: P5, optionaloutertunneltransport: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Start)(windows_core::Interface::as_raw(this), assignedclientipv4list.into_param().abi(), assignedclientipv6list.into_param().abi(), vpninterfaceid.into_param().abi(), routescope.into_param().abi(), namespacescope.into_param().abi(), mtusize, maxframesize, optimizeforlowcostnetwork, mainoutertunneltransport.into_param().abi(), optionaloutertunneltransport.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Start)(windows_core::Interface::as_raw(this), assignedclientipv4list.param().abi(), assignedclientipv6list.param().abi(), vpninterfaceid.param().abi(), routescope.param().abi(), namespacescope.param().abi(), mtusize, maxframesize, optimizeforlowcostnetwork, mainoutertunneltransport.param().abi(), optionaloutertunneltransport.param().abi()).ok() } } pub fn Stop(&self) -> windows_core::Result<()> { let this = self; @@ -1225,12 +1225,12 @@ impl VpnChannel { #[cfg(feature = "Security_Cryptography_Certificates")] pub fn RequestCredentials(&self, credtype: VpnCredentialType, isretry: bool, issinglesignoncredential: bool, certificate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestCredentials)(windows_core::Interface::as_raw(this), credtype, isretry, issinglesignoncredential, certificate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestCredentials)(windows_core::Interface::as_raw(this), credtype, isretry, issinglesignoncredential, certificate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestVpnPacketBuffer(&self, r#type: VpnDataPathType, vpnpacketbuffer: &mut Option) -> windows_core::Result<()> { @@ -1257,12 +1257,12 @@ impl VpnChannel { } pub fn ActivityChange(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ActivityChange)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ActivityChange)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActivityChange(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1271,10 +1271,10 @@ impl VpnChannel { } pub fn SetPlugInContext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPlugInContext)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPlugInContext)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PlugInContext(&self) -> windows_core::Result { let this = self; @@ -1293,10 +1293,10 @@ impl VpnChannel { #[cfg(feature = "Foundation_Collections")] pub fn RequestCustomPrompt(&self, customprompt: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RequestCustomPrompt)(windows_core::Interface::as_raw(this), customprompt.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RequestCustomPrompt)(windows_core::Interface::as_raw(this), customprompt.param().abi()).ok() } } pub fn SetErrorMessage(&self, message: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1304,44 +1304,44 @@ impl VpnChannel { } pub fn SetAllowedSslTlsVersions(&self, tunneltransport: P0, usetls12: bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAllowedSslTlsVersions)(windows_core::Interface::as_raw(this), tunneltransport.into_param().abi(), usetls12).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAllowedSslTlsVersions)(windows_core::Interface::as_raw(this), tunneltransport.param().abi(), usetls12).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn StartWithMainTransport(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, assignedroutes: P3, assigneddomainname: P4, mtusize: u32, maxframesize: u32, reserved: bool, mainoutertunneltransport: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartWithMainTransport)(windows_core::Interface::as_raw(this), assignedclientipv4list.into_param().abi(), assignedclientipv6list.into_param().abi(), vpninterfaceid.into_param().abi(), assignedroutes.into_param().abi(), assigneddomainname.into_param().abi(), mtusize, maxframesize, reserved, mainoutertunneltransport.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartWithMainTransport)(windows_core::Interface::as_raw(this), assignedclientipv4list.param().abi(), assignedclientipv6list.param().abi(), vpninterfaceid.param().abi(), assignedroutes.param().abi(), assigneddomainname.param().abi(), mtusize, maxframesize, reserved, mainoutertunneltransport.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn StartExistingTransports(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, assignedroutes: P3, assigneddomainname: P4, mtusize: u32, maxframesize: u32, reserved: bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartExistingTransports)(windows_core::Interface::as_raw(this), assignedclientipv4list.into_param().abi(), assignedclientipv6list.into_param().abi(), vpninterfaceid.into_param().abi(), assignedroutes.into_param().abi(), assigneddomainname.into_param().abi(), mtusize, maxframesize, reserved).ok() } + unsafe { (windows_core::Interface::vtable(this).StartExistingTransports)(windows_core::Interface::as_raw(this), assignedclientipv4list.param().abi(), assignedclientipv6list.param().abi(), vpninterfaceid.param().abi(), assignedroutes.param().abi(), assigneddomainname.param().abi(), mtusize, maxframesize, reserved).ok() } } pub fn ActivityStateChange(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ActivityStateChange)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ActivityStateChange)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActivityStateChange(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1365,23 +1365,23 @@ impl VpnChannel { #[cfg(feature = "Foundation_Collections")] pub fn RequestCustomPromptAsync(&self, custompromptelement: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestCustomPromptAsync)(windows_core::Interface::as_raw(this), custompromptelement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestCustomPromptAsync)(windows_core::Interface::as_raw(this), custompromptelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Security_Cryptography_Certificates")] pub fn RequestCredentialsWithCertificateAsync(&self, credtype: VpnCredentialType, credoptions: u32, certificate: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestCredentialsWithCertificateAsync)(windows_core::Interface::as_raw(this), credtype, credoptions, certificate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestCredentialsWithCertificateAsync)(windows_core::Interface::as_raw(this), credtype, credoptions, certificate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestCredentialsWithOptionsAsync(&self, credtype: VpnCredentialType, credoptions: u32) -> windows_core::Result> { @@ -1405,65 +1405,65 @@ impl VpnChannel { #[cfg(feature = "Foundation_Collections")] pub fn StartWithTrafficFilter(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, assignedroutes: P3, assignednamespace: P4, mtusize: u32, maxframesize: u32, reserved: bool, mainoutertunneltransport: P5, optionaloutertunneltransport: P6, assignedtrafficfilters: P7) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartWithTrafficFilter)(windows_core::Interface::as_raw(this), assignedclientipv4list.into_param().abi(), assignedclientipv6list.into_param().abi(), vpninterfaceid.into_param().abi(), assignedroutes.into_param().abi(), assignednamespace.into_param().abi(), mtusize, maxframesize, reserved, mainoutertunneltransport.into_param().abi(), optionaloutertunneltransport.into_param().abi(), assignedtrafficfilters.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartWithTrafficFilter)(windows_core::Interface::as_raw(this), assignedclientipv4list.param().abi(), assignedclientipv6list.param().abi(), vpninterfaceid.param().abi(), assignedroutes.param().abi(), assignednamespace.param().abi(), mtusize, maxframesize, reserved, mainoutertunneltransport.param().abi(), optionaloutertunneltransport.param().abi(), assignedtrafficfilters.param().abi()).ok() } } pub fn AddAndAssociateTransport(&self, transport: P0, context: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddAndAssociateTransport)(windows_core::Interface::as_raw(this), transport.into_param().abi(), context.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddAndAssociateTransport)(windows_core::Interface::as_raw(this), transport.param().abi(), context.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn StartWithMultipleTransports(&self, assignedclientipv4addresses: P0, assignedclientipv6addresses: P1, vpninterfaceid: P2, assignedroutes: P3, assignednamespace: P4, mtusize: u32, maxframesize: u32, reserved: bool, transports: P5, assignedtrafficfilters: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam>, - P6: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param>, + P6: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartWithMultipleTransports)(windows_core::Interface::as_raw(this), assignedclientipv4addresses.into_param().abi(), assignedclientipv6addresses.into_param().abi(), vpninterfaceid.into_param().abi(), assignedroutes.into_param().abi(), assignednamespace.into_param().abi(), mtusize, maxframesize, reserved, transports.into_param().abi(), assignedtrafficfilters.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartWithMultipleTransports)(windows_core::Interface::as_raw(this), assignedclientipv4addresses.param().abi(), assignedclientipv6addresses.param().abi(), vpninterfaceid.param().abi(), assignedroutes.param().abi(), assignednamespace.param().abi(), mtusize, maxframesize, reserved, transports.param().abi(), assignedtrafficfilters.param().abi()).ok() } } pub fn ReplaceAndAssociateTransport(&self, transport: P0, context: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReplaceAndAssociateTransport)(windows_core::Interface::as_raw(this), transport.into_param().abi(), context.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReplaceAndAssociateTransport)(windows_core::Interface::as_raw(this), transport.param().abi(), context.param().abi()).ok() } } pub fn StartReconnectingTransport(&self, transport: P0, context: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartReconnectingTransport)(windows_core::Interface::as_raw(this), transport.into_param().abi(), context.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartReconnectingTransport)(windows_core::Interface::as_raw(this), transport.param().abi(), context.param().abi()).ok() } } #[cfg(feature = "Networking_Sockets")] pub fn GetSlotTypeForTransportContext(&self, context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSlotTypeForTransportContext)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetSlotTypeForTransportContext)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).map(|| result__) } } pub fn CurrentRequestTransportContext(&self) -> windows_core::Result { @@ -1475,17 +1475,17 @@ impl VpnChannel { } pub fn AppendVpnReceivePacketBuffer(&self, decapsulatedpacketbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AppendVpnReceivePacketBuffer)(windows_core::Interface::as_raw(this), decapsulatedpacketbuffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AppendVpnReceivePacketBuffer)(windows_core::Interface::as_raw(this), decapsulatedpacketbuffer.param().abi()).ok() } } pub fn AppendVpnSendPacketBuffer(&self, encapsulatedpacketbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AppendVpnSendPacketBuffer)(windows_core::Interface::as_raw(this), encapsulatedpacketbuffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AppendVpnSendPacketBuffer)(windows_core::Interface::as_raw(this), encapsulatedpacketbuffer.param().abi()).ok() } } pub fn FlushVpnReceivePacketBuffers(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1498,20 +1498,20 @@ impl VpnChannel { #[cfg(feature = "Foundation_Collections")] pub fn ActivateForeground(&self, packagerelativeappid: &windows_core::HSTRING, sharedcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ActivateForeground)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagerelativeappid), sharedcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ActivateForeground)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagerelativeappid), sharedcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ProcessEventAsync(thirdpartyplugin: P0, event: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - Self::IVpnChannelStatics(|this| unsafe { (windows_core::Interface::vtable(this).ProcessEventAsync)(windows_core::Interface::as_raw(this), thirdpartyplugin.into_param().abi(), event.into_param().abi()).ok() }) + Self::IVpnChannelStatics(|this| unsafe { (windows_core::Interface::vtable(this).ProcessEventAsync)(windows_core::Interface::as_raw(this), thirdpartyplugin.param().abi(), event.param().abi()).ok() }) } #[doc(hidden)] pub fn IVpnChannelStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -1772,10 +1772,10 @@ impl VpnCustomComboBox { #[cfg(feature = "Foundation_Collections")] pub fn SetOptionsText(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOptionsText)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOptionsText)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn OptionsText(&self) -> windows_core::Result> { @@ -2386,10 +2386,10 @@ impl VpnDomainNameAssignment { } pub fn SetProxyAutoConfigurationUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyAutoConfigurationUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyAutoConfigurationUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProxyAutoConfigurationUri(&self) -> windows_core::Result { let this = self; @@ -2418,10 +2418,10 @@ windows_core::imp::interface_hierarchy!(VpnDomainNameInfo, windows_core::IUnknow impl VpnDomainNameInfo { pub fn SetDomainName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDomainName)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDomainName)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DomainName(&self) -> windows_core::Result { let this = self; @@ -2468,12 +2468,12 @@ impl VpnDomainNameInfo { #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnDomainNameInfo(name: &windows_core::HSTRING, nametype: VpnDomainNameType, dnsserverlist: P0, proxyserverlist: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::IVpnDomainNameInfoFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnDomainNameInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), nametype, dnsserverlist.into_param().abi(), proxyserverlist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnDomainNameInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), nametype, dnsserverlist.param().abi(), proxyserverlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2576,10 +2576,10 @@ impl VpnForegroundActivationOperation { #[cfg(feature = "Foundation_Collections")] pub fn Complete(&self, result: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Complete)(windows_core::Interface::as_raw(this), result.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Complete)(windows_core::Interface::as_raw(this), result.param().abi()).ok() } } } impl windows_core::RuntimeType for VpnForegroundActivationOperation { @@ -2648,12 +2648,12 @@ impl VpnManagementAgent { } pub fn AddProfileFromObjectAsync(&self, profile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddProfileFromObjectAsync)(windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddProfileFromObjectAsync)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UpdateProfileFromXmlAsync(&self, xml: &windows_core::HSTRING) -> windows_core::Result> { @@ -2665,12 +2665,12 @@ impl VpnManagementAgent { } pub fn UpdateProfileFromObjectAsync(&self, profile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateProfileFromObjectAsync)(windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateProfileFromObjectAsync)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -2683,44 +2683,44 @@ impl VpnManagementAgent { } pub fn DeleteProfileAsync(&self, profile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteProfileAsync)(windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteProfileAsync)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ConnectProfileAsync(&self, profile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectProfileAsync)(windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectProfileAsync)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Security_Credentials")] pub fn ConnectProfileWithPasswordCredentialAsync(&self, profile: P0, passwordcredential: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectProfileWithPasswordCredentialAsync)(windows_core::Interface::as_raw(this), profile.into_param().abi(), passwordcredential.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConnectProfileWithPasswordCredentialAsync)(windows_core::Interface::as_raw(this), profile.param().abi(), passwordcredential.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DisconnectProfileAsync(&self, profile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DisconnectProfileAsync)(windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DisconnectProfileAsync)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2751,10 +2751,10 @@ impl VpnNamespaceAssignment { #[cfg(feature = "Foundation_Collections")] pub fn SetNamespaceList(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNamespaceList)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNamespaceList)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn NamespaceList(&self) -> windows_core::Result> { @@ -2766,10 +2766,10 @@ impl VpnNamespaceAssignment { } pub fn SetProxyAutoConfigUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyAutoConfigUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyAutoConfigUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProxyAutoConfigUri(&self) -> windows_core::Result { let this = self; @@ -2810,10 +2810,10 @@ impl VpnNamespaceInfo { #[cfg(feature = "Foundation_Collections")] pub fn SetDnsServers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDnsServers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDnsServers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn DnsServers(&self) -> windows_core::Result> { @@ -2826,10 +2826,10 @@ impl VpnNamespaceInfo { #[cfg(feature = "Foundation_Collections")] pub fn SetWebProxyServers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWebProxyServers)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWebProxyServers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn WebProxyServers(&self) -> windows_core::Result> { @@ -2842,12 +2842,12 @@ impl VpnNamespaceInfo { #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnNamespaceInfo(name: &windows_core::HSTRING, dnsserverlist: P0, proxyserverlist: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::IVpnNamespaceInfoFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnNamespaceInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), dnsserverlist.into_param().abi(), proxyserverlist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnNamespaceInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), dnsserverlist.param().abi(), proxyserverlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3084,10 +3084,10 @@ impl VpnPacketBuffer { } pub fn SetTransportContext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTransportContext)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTransportContext)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TransportContext(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3098,11 +3098,11 @@ impl VpnPacketBuffer { } pub fn CreateVpnPacketBuffer(parentbuffer: P0, offset: u32, length: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVpnPacketBufferFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnPacketBuffer)(windows_core::Interface::as_raw(this), parentbuffer.into_param().abi(), offset, length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnPacketBuffer)(windows_core::Interface::as_raw(this), parentbuffer.param().abi(), offset, length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3140,17 +3140,17 @@ impl VpnPacketBufferList { } pub fn Append(&self, nextvpnpacketbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), nextvpnpacketbuffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), nextvpnpacketbuffer.param().abi()).ok() } } pub fn AddAtBegin(&self, nextvpnpacketbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddAtBegin)(windows_core::Interface::as_raw(this), nextvpnpacketbuffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddAtBegin)(windows_core::Interface::as_raw(this), nextvpnpacketbuffer.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result { let this = self; @@ -3404,10 +3404,10 @@ windows_core::imp::interface_hierarchy!(VpnRoute, windows_core::IUnknown, window impl VpnRoute { pub fn SetAddress(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAddress)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAddress)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Address(&self) -> windows_core::Result { let this = self; @@ -3429,11 +3429,11 @@ impl VpnRoute { } pub fn CreateVpnRoute(address: P0, prefixsize: u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVpnRouteFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateVpnRoute)(windows_core::Interface::as_raw(this), address.into_param().abi(), prefixsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateVpnRoute)(windows_core::Interface::as_raw(this), address.param().abi(), prefixsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3469,18 +3469,18 @@ impl VpnRouteAssignment { #[cfg(feature = "Foundation_Collections")] pub fn SetIpv4InclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIpv4InclusionRoutes)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIpv4InclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SetIpv6InclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIpv6InclusionRoutes)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIpv6InclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Ipv4InclusionRoutes(&self) -> windows_core::Result> { @@ -3501,18 +3501,18 @@ impl VpnRouteAssignment { #[cfg(feature = "Foundation_Collections")] pub fn SetIpv4ExclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIpv4ExclusionRoutes)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIpv4ExclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SetIpv6ExclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIpv6ExclusionRoutes)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIpv6ExclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Ipv4ExclusionRoutes(&self) -> windows_core::Result> { @@ -3594,10 +3594,10 @@ impl VpnTrafficFilter { } pub fn SetAppId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAppId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAppId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AppClaims(&self) -> windows_core::Result> { @@ -3663,11 +3663,11 @@ impl VpnTrafficFilter { } pub fn Create(appid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVpnTrafficFilterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), appid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), appid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs b/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs index 032af5122a..21909f0cb6 100644 --- a/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs @@ -232,12 +232,12 @@ windows_core::imp::interface_hierarchy!(XboxLiveDeviceAddress, windows_core::IUn impl XboxLiveDeviceAddress { pub fn SnapshotChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SnapshotChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SnapshotChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSnapshotChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -265,12 +265,12 @@ impl XboxLiveDeviceAddress { } pub fn Compare(&self, otherdeviceaddress: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Compare)(windows_core::Interface::as_raw(this), otherdeviceaddress.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Compare)(windows_core::Interface::as_raw(this), otherdeviceaddress.param().abi(), &mut result__).map(|| result__) } } pub fn IsValid(&self) -> windows_core::Result { @@ -303,11 +303,11 @@ impl XboxLiveDeviceAddress { #[cfg(feature = "Storage_Streams")] pub fn CreateFromSnapshotBuffer(buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IXboxLiveDeviceAddressStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromSnapshotBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromSnapshotBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromSnapshotBytes(buffer: &[u8]) -> windows_core::Result { @@ -353,12 +353,12 @@ windows_core::imp::interface_hierarchy!(XboxLiveEndpointPair, windows_core::IUnk impl XboxLiveEndpointPair { pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -437,12 +437,12 @@ impl XboxLiveEndpointPair { } pub fn FindEndpointPairByHostNamesAndPorts(localhostname: P0, localport: &windows_core::HSTRING, remotehostname: P1, remoteport: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IXboxLiveEndpointPairStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindEndpointPairByHostNamesAndPorts)(windows_core::Interface::as_raw(this), localhostname.into_param().abi(), core::mem::transmute_copy(localport), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteport), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindEndpointPairByHostNamesAndPorts)(windows_core::Interface::as_raw(this), localhostname.param().abi(), core::mem::transmute_copy(localport), remotehostname.param().abi(), core::mem::transmute_copy(remoteport), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -548,12 +548,12 @@ windows_core::imp::interface_hierarchy!(XboxLiveEndpointPairTemplate, windows_co impl XboxLiveEndpointPairTemplate { pub fn InboundEndpointPairCreated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InboundEndpointPairCreated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InboundEndpointPairCreated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInboundEndpointPairCreated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -562,42 +562,42 @@ impl XboxLiveEndpointPairTemplate { } pub fn CreateEndpointPairDefaultAsync(&self, deviceaddress: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEndpointPairDefaultAsync)(windows_core::Interface::as_raw(this), deviceaddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEndpointPairDefaultAsync)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateEndpointPairWithBehaviorsAsync(&self, deviceaddress: P0, behaviors: XboxLiveEndpointPairCreationBehaviors) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEndpointPairWithBehaviorsAsync)(windows_core::Interface::as_raw(this), deviceaddress.into_param().abi(), behaviors, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEndpointPairWithBehaviorsAsync)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), behaviors, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateEndpointPairForPortsDefaultAsync(&self, deviceaddress: P0, initiatorport: &windows_core::HSTRING, acceptorport: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEndpointPairForPortsDefaultAsync)(windows_core::Interface::as_raw(this), deviceaddress.into_param().abi(), core::mem::transmute_copy(initiatorport), core::mem::transmute_copy(acceptorport), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEndpointPairForPortsDefaultAsync)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), core::mem::transmute_copy(initiatorport), core::mem::transmute_copy(acceptorport), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateEndpointPairForPortsWithBehaviorsAsync(&self, deviceaddress: P0, initiatorport: &windows_core::HSTRING, acceptorport: &windows_core::HSTRING, behaviors: XboxLiveEndpointPairCreationBehaviors) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEndpointPairForPortsWithBehaviorsAsync)(windows_core::Interface::as_raw(this), deviceaddress.into_param().abi(), core::mem::transmute_copy(initiatorport), core::mem::transmute_copy(acceptorport), behaviors, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEndpointPairForPortsWithBehaviorsAsync)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), core::mem::transmute_copy(initiatorport), core::mem::transmute_copy(acceptorport), behaviors, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Name(&self) -> windows_core::Result { @@ -728,12 +728,12 @@ impl XboxLiveQualityOfServiceMeasurement { #[cfg(feature = "Foundation_Collections")] pub fn GetMetricResultsForDevice(&self, deviceaddress: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMetricResultsForDevice)(windows_core::Interface::as_raw(this), deviceaddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMetricResultsForDevice)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -746,22 +746,22 @@ impl XboxLiveQualityOfServiceMeasurement { } pub fn GetMetricResult(&self, deviceaddress: P0, metric: XboxLiveQualityOfServiceMetric) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMetricResult)(windows_core::Interface::as_raw(this), deviceaddress.into_param().abi(), metric, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMetricResult)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), metric, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetPrivatePayloadResult(&self, deviceaddress: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPrivatePayloadResult)(windows_core::Interface::as_raw(this), deviceaddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPrivatePayloadResult)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -879,9 +879,9 @@ impl XboxLiveQualityOfServiceMeasurement { #[cfg(feature = "Storage_Streams")] pub fn SetPublishedPrivatePayload(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IXboxLiveQualityOfServiceMeasurementStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetPublishedPrivatePayload)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IXboxLiveQualityOfServiceMeasurementStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetPublishedPrivatePayload)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn MaxPrivatePayloadSize() -> windows_core::Result { Self::IXboxLiveQualityOfServiceMeasurementStatics(|this| unsafe { diff --git a/crates/libs/windows/src/Windows/Networking/mod.rs b/crates/libs/windows/src/Windows/Networking/mod.rs index 452b5c1b2c..9bafd2d296 100644 --- a/crates/libs/windows/src/Windows/Networking/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/mod.rs @@ -90,10 +90,10 @@ impl EndpointPair { } pub fn SetLocalHostName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLocalHostName)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLocalHostName)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LocalServiceName(&self) -> windows_core::Result { let this = self; @@ -115,10 +115,10 @@ impl EndpointPair { } pub fn SetRemoteHostName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRemoteHostName)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRemoteHostName)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoteServiceName(&self) -> windows_core::Result { let this = self; @@ -133,12 +133,12 @@ impl EndpointPair { } pub fn CreateEndpointPair(localhostname: P0, localservicename: &windows_core::HSTRING, remotehostname: P1, remoteservicename: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IEndpointPairFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEndpointPair)(windows_core::Interface::as_raw(this), localhostname.into_param().abi(), core::mem::transmute_copy(localservicename), remotehostname.into_param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEndpointPair)(windows_core::Interface::as_raw(this), localhostname.param().abi(), core::mem::transmute_copy(localservicename), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -203,12 +203,12 @@ impl HostName { } pub fn IsEqual(&self, hostname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), hostname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), hostname.param().abi(), &mut result__).map(|| result__) } } pub fn CreateHostName(hostname: &windows_core::HSTRING) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Perception/Automation/Core/mod.rs b/crates/libs/windows/src/Windows/Perception/Automation/Core/mod.rs index a29181f272..38a57c9f2b 100644 --- a/crates/libs/windows/src/Windows/Perception/Automation/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Automation/Core/mod.rs @@ -11,9 +11,9 @@ pub struct CorePerceptionAutomation; impl CorePerceptionAutomation { pub fn SetActivationFactoryProvider(provider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ICorePerceptionAutomationStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetActivationFactoryProvider)(windows_core::Interface::as_raw(this), provider.into_param().abi()).ok() }) + Self::ICorePerceptionAutomationStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetActivationFactoryProvider)(windows_core::Interface::as_raw(this), provider.param().abi()).ok() }) } #[doc(hidden)] pub fn ICorePerceptionAutomationStatics windows_core::Result>(callback: F) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Perception/People/mod.rs b/crates/libs/windows/src/Windows/Perception/People/mod.rs index be3210a34f..9b5a3a1351 100644 --- a/crates/libs/windows/src/Windows/Perception/People/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/People/mod.rs @@ -196,12 +196,12 @@ impl HandMeshObserver { } pub fn GetVertexStateForPose(&self, handpose: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetVertexStateForPose)(windows_core::Interface::as_raw(this), handpose.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetVertexStateForPose)(windows_core::Interface::as_raw(this), handpose.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn NeutralPose(&self) -> windows_core::Result { @@ -284,23 +284,23 @@ impl HandPose { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn TryGetJoint(&self, coordinatesystem: P0, joint: HandJointKind, jointpose: &mut JointPose) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetJoint)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), joint, jointpose, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryGetJoint)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), joint, jointpose, &mut result__).map(|| result__) } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn TryGetJoints(&self, coordinatesystem: P0, joints: &[HandJointKind], jointposes: &mut [JointPose]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetJoints)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), joints.len().try_into().unwrap(), joints.as_ptr(), jointposes.len().try_into().unwrap(), jointposes.as_mut_ptr(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryGetJoints)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), joints.len().try_into().unwrap(), joints.as_ptr(), jointposes.len().try_into().unwrap(), jointposes.as_mut_ptr(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Numerics")] diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs index bef9366789..4dce2f7886 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs @@ -117,31 +117,31 @@ impl SpatialGraphInteropPreview { } pub fn TryCreateFrameOfReference(coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialGraphInteropPreviewStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateFrameOfReference)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateFrameOfReference)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] pub fn TryCreateFrameOfReferenceWithPosition(coordinatesystem: P0, relativeposition: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialGraphInteropPreviewStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateFrameOfReferenceWithPosition)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), relativeposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateFrameOfReferenceWithPosition)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), relativeposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] pub fn TryCreateFrameOfReferenceWithPositionAndOrientation(coordinatesystem: P0, relativeposition: super::super::super::Foundation::Numerics::Vector3, relativeorientation: super::super::super::Foundation::Numerics::Quaternion) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialGraphInteropPreviewStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateFrameOfReferenceWithPositionAndOrientation)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), relativeposition, relativeorientation, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateFrameOfReferenceWithPositionAndOrientation)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), relativeposition, relativeorientation, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs index fcd6e79463..e6403d5a16 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs @@ -162,12 +162,12 @@ impl SpatialSurfaceInfo { #[cfg(feature = "Foundation_Numerics")] pub fn TryGetBounds(&self, coordinatesystem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetBounds)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetBounds)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryComputeLatestMeshAsync(&self, maxtrianglespercubicmeter: f64) -> windows_core::Result> { @@ -179,12 +179,12 @@ impl SpatialSurfaceInfo { } pub fn TryComputeLatestMeshWithOptionsAsync(&self, maxtrianglespercubicmeter: f64, options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryComputeLatestMeshWithOptionsAsync)(windows_core::Interface::as_raw(this), maxtrianglespercubicmeter, options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryComputeLatestMeshWithOptionsAsync)(windows_core::Interface::as_raw(this), maxtrianglespercubicmeter, options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -432,27 +432,27 @@ impl SpatialSurfaceObserver { } pub fn SetBoundingVolume(&self, bounds: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBoundingVolume)(windows_core::Interface::as_raw(this), bounds.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBoundingVolume)(windows_core::Interface::as_raw(this), bounds.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn SetBoundingVolumes(&self, bounds: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBoundingVolumes)(windows_core::Interface::as_raw(this), bounds.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBoundingVolumes)(windows_core::Interface::as_raw(this), bounds.param().abi()).ok() } } pub fn ObservedSurfacesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ObservedSurfacesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ObservedSurfacesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveObservedSurfacesChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs index 942756c912..18a374cee6 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs @@ -466,12 +466,12 @@ impl SpatialAnchor { } pub fn RawCoordinateSystemAdjusted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RawCoordinateSystemAdjusted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RawCoordinateSystemAdjusted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRawCoordinateSystemAdjusted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -487,31 +487,31 @@ impl SpatialAnchor { } pub fn TryCreateRelativeTo(coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialAnchorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateRelativeTo)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateRelativeTo)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] pub fn TryCreateWithPositionRelativeTo(coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialAnchorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateWithPositionRelativeTo)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), position, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateWithPositionRelativeTo)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] pub fn TryCreateWithPositionAndOrientationRelativeTo(coordinatesystem: P0, position: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialAnchorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateWithPositionAndOrientationRelativeTo)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), position, orientation, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateWithPositionAndOrientationRelativeTo)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), position, orientation, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -578,24 +578,24 @@ windows_core::imp::interface_hierarchy!(SpatialAnchorExporter, windows_core::IUn impl SpatialAnchorExporter { pub fn GetAnchorExportSufficiencyAsync(&self, anchor: P0, purpose: SpatialAnchorExportPurpose) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAnchorExportSufficiencyAsync)(windows_core::Interface::as_raw(this), anchor.into_param().abi(), purpose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAnchorExportSufficiencyAsync)(windows_core::Interface::as_raw(this), anchor.param().abi(), purpose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn TryExportAnchorAsync(&self, anchor: P0, purpose: SpatialAnchorExportPurpose, stream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryExportAnchorAsync)(windows_core::Interface::as_raw(this), anchor.into_param().abi(), purpose, stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryExportAnchorAsync)(windows_core::Interface::as_raw(this), anchor.param().abi(), purpose, stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetDefault() -> windows_core::Result { @@ -686,12 +686,12 @@ impl SpatialAnchorStore { } pub fn TrySave(&self, id: &windows_core::HSTRING, anchor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySave)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), anchor.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySave)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), anchor.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, id: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -722,22 +722,22 @@ impl SpatialAnchorTransferManager { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] pub fn TryImportAnchorsAsync(stream: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialAnchorTransferManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryImportAnchorsAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryImportAnchorsAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] pub fn TryExportAnchorsAsync(anchors: P0, stream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>>, - P1: windows_core::IntoParam, + P0: windows_core::Param>>, + P1: windows_core::Param, { Self::ISpatialAnchorTransferManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryExportAnchorsAsync)(windows_core::Interface::as_raw(this), anchors.into_param().abi(), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryExportAnchorsAsync)(windows_core::Interface::as_raw(this), anchors.param().abi(), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "deprecated")] @@ -766,41 +766,41 @@ impl SpatialBoundingVolume { #[cfg(feature = "Foundation_Numerics")] pub fn FromBox(coordinatesystem: P0, r#box: SpatialBoundingBox) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialBoundingVolumeStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromBox)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), r#box, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromBox)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), r#box, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] pub fn FromOrientedBox(coordinatesystem: P0, r#box: SpatialBoundingOrientedBox) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialBoundingVolumeStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromOrientedBox)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), r#box, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromOrientedBox)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), r#box, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] pub fn FromSphere(coordinatesystem: P0, sphere: SpatialBoundingSphere) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialBoundingVolumeStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromSphere)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), sphere, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromSphere)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), sphere, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] pub fn FromFrustum(coordinatesystem: P0, frustum: SpatialBoundingFrustum) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialBoundingVolumeStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromFrustum)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), frustum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromFrustum)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), frustum, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -829,12 +829,12 @@ impl SpatialCoordinateSystem { #[cfg(feature = "Foundation_Numerics")] pub fn TryGetTransformTo(&self, target: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetTransformTo)(windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetTransformTo)(windows_core::Interface::as_raw(this), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -879,22 +879,22 @@ impl SpatialEntity { } pub fn CreateWithSpatialAnchor(spatialanchor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialEntityFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithSpatialAnchor)(windows_core::Interface::as_raw(this), spatialanchor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithSpatialAnchor)(windows_core::Interface::as_raw(this), spatialanchor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWithSpatialAnchorAndProperties(spatialanchor: P0, propertyset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISpatialEntityFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithSpatialAnchorAndProperties)(windows_core::Interface::as_raw(this), spatialanchor.into_param().abi(), propertyset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithSpatialAnchorAndProperties)(windows_core::Interface::as_raw(this), spatialanchor.param().abi(), propertyset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -972,22 +972,22 @@ windows_core::imp::interface_hierarchy!(SpatialEntityStore, windows_core::IUnkno impl SpatialEntityStore { pub fn SaveAsync(&self, entity: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), entity.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), entity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RemoveAsync(&self, entity: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveAsync)(windows_core::Interface::as_raw(this), entity.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveAsync)(windows_core::Interface::as_raw(this), entity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateEntityWatcher(&self) -> windows_core::Result { @@ -1006,11 +1006,11 @@ impl SpatialEntityStore { #[cfg(feature = "System_RemoteSystems")] pub fn TryGetForRemoteSystemSession(session: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISpatialEntityStoreStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetForRemoteSystemSession)(windows_core::Interface::as_raw(this), session.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetForRemoteSystemSession)(windows_core::Interface::as_raw(this), session.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1070,12 +1070,12 @@ impl SpatialEntityWatcher { } pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1084,12 +1084,12 @@ impl SpatialEntityWatcher { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1098,12 +1098,12 @@ impl SpatialEntityWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1112,12 +1112,12 @@ impl SpatialEntityWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1241,12 +1241,12 @@ impl SpatialLocator { } pub fn LocatabilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LocatabilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LocatabilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLocatabilityChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1255,12 +1255,12 @@ impl SpatialLocator { } pub fn PositionalTrackingDeactivating(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PositionalTrackingDeactivating)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PositionalTrackingDeactivating)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePositionalTrackingDeactivating(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1269,13 +1269,13 @@ impl SpatialLocator { } pub fn TryLocateAtTimestamp(&self, timestamp: P0, coordinatesystem: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryLocateAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.into_param().abi(), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryLocateAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.param().abi(), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateAttachedFrameOfReferenceAtCurrentHeading(&self) -> windows_core::Result { @@ -1401,22 +1401,22 @@ impl SpatialLocatorAttachedFrameOfReference { } pub fn GetStationaryCoordinateSystemAtTimestamp(&self, timestamp: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStationaryCoordinateSystemAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStationaryCoordinateSystemAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryGetRelativeHeadingAtTimestamp(&self, timestamp: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetRelativeHeadingAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetRelativeHeadingAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1489,23 +1489,23 @@ impl SpatialStageFrameOfReference { } pub fn GetCoordinateSystemAtCurrentLocation(&self, locator: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCoordinateSystemAtCurrentLocation)(windows_core::Interface::as_raw(this), locator.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetCoordinateSystemAtCurrentLocation)(windows_core::Interface::as_raw(this), locator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Numerics")] pub fn TryGetMovementBounds(&self, coordinatesystem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = core::mem::MaybeUninit::zeroed(); - (windows_core::Interface::vtable(this).TryGetMovementBounds)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), windows_core::Array::::set_abi_len(std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) + (windows_core::Interface::vtable(this).TryGetMovementBounds)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), windows_core::Array::::set_abi_len(std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) } } pub fn Current() -> windows_core::Result { @@ -1516,11 +1516,11 @@ impl SpatialStageFrameOfReference { } pub fn CurrentChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISpatialStageFrameOfReferenceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrentChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CurrentChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveCurrentChanged(cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Phone/Devices/Power/mod.rs b/crates/libs/windows/src/Windows/Phone/Devices/Power/mod.rs index 6cfc0944f4..a7ef5a8fb7 100644 --- a/crates/libs/windows/src/Windows/Phone/Devices/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Devices/Power/mod.rs @@ -40,12 +40,12 @@ impl Battery { } pub fn RemainingChargePercentChanged(&self, changehandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemainingChargePercentChanged)(windows_core::Interface::as_raw(this), changehandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemainingChargePercentChanged)(windows_core::Interface::as_raw(this), changehandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemainingChargePercentChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs b/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs index 09178d4796..176857a8f6 100644 --- a/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs @@ -191,11 +191,11 @@ impl EnterpriseEnrollmentManager { } pub fn RequestUnenrollmentAsync(enterprise: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEnterpriseEnrollmentManager(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestUnenrollmentAsync)(windows_core::Interface::as_raw(this), enterprise.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestUnenrollmentAsync)(windows_core::Interface::as_raw(this), enterprise.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -241,21 +241,21 @@ pub struct InstallationManager; impl InstallationManager { pub fn AddPackageAsync(title: &windows_core::HSTRING, sourcelocation: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInstallationManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), sourcelocation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), sourcelocation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AddPackagePreloadedAsync(title: &windows_core::HSTRING, sourcelocation: P0, instanceid: &windows_core::HSTRING, offerid: &windows_core::HSTRING, license: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IInstallationManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddPackagePreloadedAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), sourcelocation.into_param().abi(), core::mem::transmute_copy(instanceid), core::mem::transmute_copy(offerid), license.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddPackagePreloadedAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), sourcelocation.param().abi(), core::mem::transmute_copy(instanceid), core::mem::transmute_copy(offerid), license.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] @@ -289,12 +289,12 @@ impl InstallationManager { #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment"))] pub fn RegisterPackageAsync(manifesturi: P0, dependencypackageuris: P1, deploymentoptions: super::super::super::Management::Deployment::DeploymentOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IInstallationManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterPackageAsync)(windows_core::Interface::as_raw(this), manifesturi.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterPackageAsync)(windows_core::Interface::as_raw(this), manifesturi.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] diff --git a/crates/libs/windows/src/Windows/Phone/Media/Devices/mod.rs b/crates/libs/windows/src/Windows/Phone/Media/Devices/mod.rs index 45692d8d57..a42ff3159c 100644 --- a/crates/libs/windows/src/Windows/Phone/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Media/Devices/mod.rs @@ -38,12 +38,12 @@ impl AudioRoutingManager { } pub fn AudioEndpointChanged(&self, endpointchangehandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioEndpointChanged)(windows_core::Interface::as_raw(this), endpointchangehandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioEndpointChanged)(windows_core::Interface::as_raw(this), endpointchangehandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioEndpointChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs b/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs index e196327d41..f1354e75e2 100644 --- a/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs @@ -473,9 +473,9 @@ impl AccessoryManager { } pub fn ProcessTriggerDetails(pdetails: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IAccessoryManager(|this| unsafe { (windows_core::Interface::vtable(this).ProcessTriggerDetails)(windows_core::Interface::as_raw(this), pdetails.into_param().abi()).ok() }) + Self::IAccessoryManager(|this| unsafe { (windows_core::Interface::vtable(this).ProcessTriggerDetails)(windows_core::Interface::as_raw(this), pdetails.param().abi()).ok() }) } #[cfg(feature = "Foundation_Collections")] pub fn PhoneLineDetails() -> windows_core::Result> { @@ -708,15 +708,15 @@ impl AccessoryManager { #[cfg(feature = "Foundation_Collections")] pub fn EnableEmailNotificationFolderFilter(emailaccount: &windows_core::HSTRING, folders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::IAccessoryManager2(|this| unsafe { (windows_core::Interface::vtable(this).EnableEmailNotificationFolderFilter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(emailaccount), folders.into_param().abi()).ok() }) + Self::IAccessoryManager2(|this| unsafe { (windows_core::Interface::vtable(this).EnableEmailNotificationFolderFilter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(emailaccount), folders.param().abi()).ok() }) } pub fn UpdateEmailReadStatus(messageentryid: P0, isread: bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IAccessoryManager2(|this| unsafe { (windows_core::Interface::vtable(this).UpdateEmailReadStatus)(windows_core::Interface::as_raw(this), messageentryid.into_param().abi(), isread).ok() }) + Self::IAccessoryManager2(|this| unsafe { (windows_core::Interface::vtable(this).UpdateEmailReadStatus)(windows_core::Interface::as_raw(this), messageentryid.param().abi(), isread).ok() }) } pub fn SnoozeAlarmByInstanceId(instanceid: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IAccessoryManager3(|this| unsafe { (windows_core::Interface::vtable(this).SnoozeAlarmByInstanceId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(instanceid)).ok() }) diff --git a/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs b/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs index b378e78263..a27822722b 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs @@ -40,30 +40,30 @@ pub struct ContactPartnerProvisioningManager; impl ContactPartnerProvisioningManager { pub fn AssociateNetworkAccountAsync(store: P0, networkname: &windows_core::HSTRING, networkaccountid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactPartnerProvisioningManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AssociateNetworkAccountAsync)(windows_core::Interface::as_raw(this), store.into_param().abi(), core::mem::transmute_copy(networkname), core::mem::transmute_copy(networkaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AssociateNetworkAccountAsync)(windows_core::Interface::as_raw(this), store.param().abi(), core::mem::transmute_copy(networkname), core::mem::transmute_copy(networkaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ImportVcardToSystemAsync(stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactPartnerProvisioningManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportVcardToSystemAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportVcardToSystemAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AssociateSocialNetworkAccountAsync(store: P0, networkname: &windows_core::HSTRING, networkaccountid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactPartnerProvisioningManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AssociateSocialNetworkAccountAsync)(windows_core::Interface::as_raw(this), store.into_param().abi(), core::mem::transmute_copy(networkname), core::mem::transmute_copy(networkaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AssociateSocialNetworkAccountAsync)(windows_core::Interface::as_raw(this), store.param().abi(), core::mem::transmute_copy(networkname), core::mem::transmute_copy(networkaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -85,22 +85,22 @@ impl MessagePartnerProvisioningManager { #[cfg(feature = "Foundation_Collections")] pub fn ImportSmsToSystemAsync(incoming: bool, read: bool, body: &windows_core::HSTRING, sender: &windows_core::HSTRING, recipients: P0, deliverytime: super::super::super::Foundation::DateTime) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMessagePartnerProvisioningManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportSmsToSystemAsync)(windows_core::Interface::as_raw(this), incoming, read, core::mem::transmute_copy(body), core::mem::transmute_copy(sender), recipients.into_param().abi(), deliverytime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportSmsToSystemAsync)(windows_core::Interface::as_raw(this), incoming, read, core::mem::transmute_copy(body), core::mem::transmute_copy(sender), recipients.param().abi(), deliverytime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn ImportMmsToSystemAsync(incoming: bool, read: bool, subject: &windows_core::HSTRING, sender: &windows_core::HSTRING, recipients: P0, deliverytime: super::super::super::Foundation::DateTime, attachments: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>>, + P0: windows_core::Param>, + P1: windows_core::Param>>, { Self::IMessagePartnerProvisioningManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportMmsToSystemAsync)(windows_core::Interface::as_raw(this), incoming, read, core::mem::transmute_copy(subject), core::mem::transmute_copy(sender), recipients.into_param().abi(), deliverytime, attachments.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportMmsToSystemAsync)(windows_core::Interface::as_raw(this), incoming, read, core::mem::transmute_copy(subject), core::mem::transmute_copy(sender), recipients.param().abi(), deliverytime, attachments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs b/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs index 346a08309b..de0a2d72b5 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs @@ -99,12 +99,12 @@ impl IContactInformation { #[cfg(feature = "Storage_Streams")] pub fn SetDisplayPictureAsync(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetDisplayPictureAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetDisplayPictureAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -571,12 +571,12 @@ impl ContactInformation { #[cfg(feature = "Storage_Streams")] pub fn SetDisplayPictureAsync(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetDisplayPictureAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetDisplayPictureAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -614,11 +614,11 @@ impl ContactInformation { #[cfg(feature = "Storage_Streams")] pub fn ParseVcardAsync(vcard: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IContactInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ParseVcardAsync)(windows_core::Interface::as_raw(this), vcard.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ParseVcardAsync)(windows_core::Interface::as_raw(this), vcard.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -766,12 +766,12 @@ impl ContactStore { } pub fn CreateContactQueryWithOptions(&self, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateContactQueryWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateContactQueryWithOptions)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteAsync(&self) -> windows_core::Result { @@ -807,12 +807,12 @@ impl ContactStore { #[cfg(feature = "Foundation_Collections")] pub fn SaveExtendedPropertiesAsync(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveExtendedPropertiesAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveExtendedPropertiesAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateMeContactAsync(&self, id: &windows_core::HSTRING) -> windows_core::Result> { @@ -1145,12 +1145,12 @@ impl StoredContact { #[cfg(feature = "Storage_Streams")] pub fn SetDisplayPictureAsync(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetDisplayPictureAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetDisplayPictureAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -1245,21 +1245,21 @@ impl StoredContact { } pub fn CreateStoredContact(store: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoredContactFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStoredContact)(windows_core::Interface::as_raw(this), store.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStoredContact)(windows_core::Interface::as_raw(this), store.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateStoredContactFromInformation(store: P0, contact: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IStoredContactFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStoredContactFromInformation)(windows_core::Interface::as_raw(this), store.into_param().abi(), contact.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStoredContactFromInformation)(windows_core::Interface::as_raw(this), store.param().abi(), contact.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Phone/System/Power/mod.rs b/crates/libs/windows/src/Windows/Phone/System/Power/mod.rs index 5d6b293edf..e96103ada0 100644 --- a/crates/libs/windows/src/Windows/Phone/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/System/Power/mod.rs @@ -28,11 +28,11 @@ impl PowerManager { } pub fn PowerSavingModeChanged(changehandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPowerManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PowerSavingModeChanged)(windows_core::Interface::as_raw(this), changehandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PowerSavingModeChanged)(windows_core::Interface::as_raw(this), changehandler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemovePowerSavingModeChanged(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Phone/System/UserProfile/GameServices/Core/mod.rs b/crates/libs/windows/src/Windows/Phone/System/UserProfile/GameServices/Core/mod.rs index 94c9ad752d..6101146f04 100644 --- a/crates/libs/windows/src/Windows/Phone/System/UserProfile/GameServices/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/System/UserProfile/GameServices/Core/mod.rs @@ -58,11 +58,11 @@ impl GameService { } pub fn GetPartnerTokenAsync(audienceuri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGameService(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPartnerTokenAsync)(windows_core::Interface::as_raw(this), audienceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPartnerTokenAsync)(windows_core::Interface::as_raw(this), audienceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetPrivilegesAsync() -> windows_core::Result> { @@ -80,15 +80,15 @@ impl GameService { #[cfg(feature = "Storage_Streams")] pub fn PostResult(gamevariant: u32, scorekind: GameServiceScoreKind, scorevalue: i64, gameoutcome: GameServiceGameOutcome, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IGameService(|this| unsafe { (windows_core::Interface::vtable(this).PostResult)(windows_core::Interface::as_raw(this), gamevariant, scorekind, scorevalue, gameoutcome, buffer.into_param().abi()).ok() }) + Self::IGameService(|this| unsafe { (windows_core::Interface::vtable(this).PostResult)(windows_core::Interface::as_raw(this), gamevariant, scorekind, scorevalue, gameoutcome, buffer.param().abi()).ok() }) } pub fn NotifyPartnerTokenExpired(audienceuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IGameService2(|this| unsafe { (windows_core::Interface::vtable(this).NotifyPartnerTokenExpired)(windows_core::Interface::as_raw(this), audienceuri.into_param().abi()).ok() }) + Self::IGameService2(|this| unsafe { (windows_core::Interface::vtable(this).NotifyPartnerTokenExpired)(windows_core::Interface::as_raw(this), audienceuri.param().abi()).ok() }) } pub fn GetAuthenticationStatus() -> windows_core::Result { Self::IGameService2(|this| unsafe { diff --git a/crates/libs/windows/src/Windows/Phone/UI/Input/mod.rs b/crates/libs/windows/src/Windows/Phone/UI/Input/mod.rs index 9fd05edeb0..d62277f720 100644 --- a/crates/libs/windows/src/Windows/Phone/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/UI/Input/mod.rs @@ -90,11 +90,11 @@ pub struct HardwareButtons; impl HardwareButtons { pub fn BackPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IHardwareButtonsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BackPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BackPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveBackPressed(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -102,11 +102,11 @@ impl HardwareButtons { } pub fn CameraHalfPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IHardwareButtonsStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CameraHalfPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CameraHalfPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveCameraHalfPressed(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -114,11 +114,11 @@ impl HardwareButtons { } pub fn CameraPressed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IHardwareButtonsStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CameraPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CameraPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveCameraPressed(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -126,11 +126,11 @@ impl HardwareButtons { } pub fn CameraReleased(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IHardwareButtonsStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CameraReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CameraReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveCameraReleased(token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs index 1dcad38035..e4e7d7022a 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs @@ -124,33 +124,33 @@ impl MicrosoftAccountMultiFactorAuthenticationManager { #[cfg(feature = "Foundation_Collections")] pub fn GetSessionsAsync(&self, useraccountidlist: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSessionsAsync)(windows_core::Interface::as_raw(this), useraccountidlist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSessionsAsync)(windows_core::Interface::as_raw(this), useraccountidlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetSessionsAndUnregisteredAccountsAsync(&self, useraccountidlist: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSessionsAndUnregisteredAccountsAsync)(windows_core::Interface::as_raw(this), useraccountidlist.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSessionsAndUnregisteredAccountsAsync)(windows_core::Interface::as_raw(this), useraccountidlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ApproveSessionUsingAuthSessionInfoAsync(&self, sessionauthentictionstatus: MicrosoftAccountMultiFactorSessionAuthenticationStatus, authenticationsessioninfo: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ApproveSessionUsingAuthSessionInfoAsync)(windows_core::Interface::as_raw(this), sessionauthentictionstatus, authenticationsessioninfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ApproveSessionUsingAuthSessionInfoAsync)(windows_core::Interface::as_raw(this), sessionauthentictionstatus, authenticationsessioninfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ApproveSessionAsync(&self, sessionauthentictionstatus: MicrosoftAccountMultiFactorSessionAuthenticationStatus, useraccountid: &windows_core::HSTRING, sessionid: &windows_core::HSTRING, sessionauthenticationtype: MicrosoftAccountMultiFactorAuthenticationType) -> windows_core::Result> { @@ -162,12 +162,12 @@ impl MicrosoftAccountMultiFactorAuthenticationManager { } pub fn DenySessionUsingAuthSessionInfoAsync(&self, authenticationsessioninfo: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DenySessionUsingAuthSessionInfoAsync)(windows_core::Interface::as_raw(this), authenticationsessioninfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DenySessionUsingAuthSessionInfoAsync)(windows_core::Interface::as_raw(this), authenticationsessioninfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DenySessionAsync(&self, useraccountid: &windows_core::HSTRING, sessionid: &windows_core::HSTRING, sessionauthenticationtype: MicrosoftAccountMultiFactorAuthenticationType) -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs index 6722e5f3b6..877e8f86bc 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs @@ -129,23 +129,23 @@ impl OnlineIdAuthenticator { } pub fn AuthenticateUserAsync(&self, request: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticateUserAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AuthenticateUserAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn AuthenticateUserAsyncAdvanced(&self, requests: P0, credentialprompttype: CredentialPromptType) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticateUserAsyncAdvanced)(windows_core::Interface::as_raw(this), requests.into_param().abi(), credentialprompttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AuthenticateUserAsyncAdvanced)(windows_core::Interface::as_raw(this), requests.param().abi(), credentialprompttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SignOutUserAsync(&self) -> windows_core::Result { @@ -292,11 +292,11 @@ impl OnlineIdSystemAuthenticator { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IOnlineIdSystemAuthenticatorStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -315,12 +315,12 @@ windows_core::imp::interface_hierarchy!(OnlineIdSystemAuthenticatorForUser, wind impl OnlineIdSystemAuthenticatorForUser { pub fn GetTicketAsync(&self, request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetTicketAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetTicketAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetApplicationId(&self, value: windows_core::GUID) -> windows_core::Result<()> { @@ -434,10 +434,10 @@ windows_core::imp::required_hierarchy!(SignOutUserOperation, super::super::super impl SignOutUserOperation { pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result { let this = self; @@ -558,10 +558,10 @@ impl UserAuthenticationOperation { } pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs index 9f7440aa71..4d538bc97c 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs @@ -341,12 +341,12 @@ windows_core::imp::interface_hierarchy!(WebAccountMonitor, windows_core::IUnknow impl WebAccountMonitor { pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -355,12 +355,12 @@ impl WebAccountMonitor { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -369,12 +369,12 @@ impl WebAccountMonitor { } pub fn DefaultSignInAccountChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DefaultSignInAccountChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DefaultSignInAccountChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDefaultSignInAccountChanged(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -383,12 +383,12 @@ impl WebAccountMonitor { } pub fn AccountPictureUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccountPictureUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccountPictureUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAccountPictureUpdated(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -412,52 +412,52 @@ pub struct WebAuthenticationCoreManager; impl WebAuthenticationCoreManager { pub fn GetTokenSilentlyAsync(request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetTokenSilentlyAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetTokenSilentlyAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn GetTokenSilentlyWithWebAccountAsync(request: P0, webaccount: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetTokenSilentlyWithWebAccountAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetTokenSilentlyWithWebAccountAsync)(windows_core::Interface::as_raw(this), request.param().abi(), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestTokenAsync(request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestTokenAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestTokenAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn RequestTokenWithWebAccountAsync(request: P0, webaccount: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestTokenWithWebAccountAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestTokenWithWebAccountAsync)(windows_core::Interface::as_raw(this), request.param().abi(), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn FindAccountAsync(provider: P0, webaccountid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAccountAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), core::mem::transmute_copy(webaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAccountAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), core::mem::transmute_copy(webaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] @@ -477,41 +477,41 @@ impl WebAuthenticationCoreManager { #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub fn FindAccountProviderWithAuthorityForUserAsync(webaccountproviderid: &windows_core::HSTRING, authority: &windows_core::HSTRING, user: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAccountProviderWithAuthorityForUserAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountproviderid), core::mem::transmute_copy(authority), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAccountProviderWithAuthorityForUserAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountproviderid), core::mem::transmute_copy(authority), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] pub fn CreateWebAccountMonitor(webaccounts: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IWebAuthenticationCoreManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWebAccountMonitor)(windows_core::Interface::as_raw(this), webaccounts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWebAccountMonitor)(windows_core::Interface::as_raw(this), webaccounts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn FindAllAccountsAsync(provider: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllAccountsAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllAccountsAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn FindAllAccountsWithClientIdAsync(provider: P0, clientid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllAccountsWithClientIdAsync)(windows_core::Interface::as_raw(this), provider.into_param().abi(), core::mem::transmute_copy(clientid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllAccountsWithClientIdAsync)(windows_core::Interface::as_raw(this), provider.param().abi(), core::mem::transmute_copy(clientid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] @@ -531,11 +531,11 @@ impl WebAuthenticationCoreManager { #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub fn FindSystemAccountProviderWithAuthorityForUserAsync(webaccountproviderid: &windows_core::HSTRING, authority: &windows_core::HSTRING, user: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationCoreManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindSystemAccountProviderWithAuthorityForUserAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountproviderid), core::mem::transmute_copy(authority), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindSystemAccountProviderWithAuthorityForUserAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountproviderid), core::mem::transmute_copy(authority), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -677,41 +677,41 @@ impl WebTokenRequest { #[cfg(feature = "Security_Credentials")] pub fn Create(provider: P0, scope: &windows_core::HSTRING, clientid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebTokenRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), provider.into_param().abi(), core::mem::transmute_copy(scope), core::mem::transmute_copy(clientid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), provider.param().abi(), core::mem::transmute_copy(scope), core::mem::transmute_copy(clientid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn CreateWithPromptType(provider: P0, scope: &windows_core::HSTRING, clientid: &windows_core::HSTRING, prompttype: WebTokenRequestPromptType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebTokenRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithPromptType)(windows_core::Interface::as_raw(this), provider.into_param().abi(), core::mem::transmute_copy(scope), core::mem::transmute_copy(clientid), prompttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithPromptType)(windows_core::Interface::as_raw(this), provider.param().abi(), core::mem::transmute_copy(scope), core::mem::transmute_copy(clientid), prompttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn CreateWithProvider(provider: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebTokenRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithProvider)(windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithProvider)(windows_core::Interface::as_raw(this), provider.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn CreateWithScope(provider: P0, scope: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebTokenRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithScope)(windows_core::Interface::as_raw(this), provider.into_param().abi(), core::mem::transmute_copy(scope), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithScope)(windows_core::Interface::as_raw(this), provider.param().abi(), core::mem::transmute_copy(scope), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -830,22 +830,22 @@ impl WebTokenResponse { #[cfg(feature = "Security_Credentials")] pub fn CreateWithTokenAndAccount(token: &windows_core::HSTRING, webaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebTokenResponseFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithTokenAndAccount)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithTokenAndAccount)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn CreateWithTokenAccountAndError(token: &windows_core::HSTRING, webaccount: P0, error: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebTokenResponseFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithTokenAccountAndError)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), webaccount.into_param().abi(), error.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithTokenAccountAndError)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), webaccount.param().abi(), error.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs index 99013f8012..8cfb1e5e68 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs @@ -156,10 +156,10 @@ impl IWebAccountProviderBaseReportOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for IWebAccountProviderBaseReportOperation { @@ -259,10 +259,10 @@ impl IWebAccountProviderSilentReportOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportUserInteractionRequiredWithError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReportUserInteractionRequiredWithError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportUserInteractionRequiredWithError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ReportCompleted(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -271,10 +271,10 @@ impl IWebAccountProviderSilentReportOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for IWebAccountProviderSilentReportOperation { @@ -406,10 +406,10 @@ impl IWebAccountProviderUIReportOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for IWebAccountProviderUIReportOperation { @@ -537,20 +537,20 @@ impl WebAccountClientView { } pub fn Create(viewtype: WebAccountClientViewType, applicationcallbackuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountClientViewFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), viewtype, applicationcallbackuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), viewtype, applicationcallbackuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithPairwiseId(viewtype: WebAccountClientViewType, applicationcallbackuri: P0, accountpairwiseid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountClientViewFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithPairwiseId)(windows_core::Interface::as_raw(this), viewtype, applicationcallbackuri.into_param().abi(), core::mem::transmute_copy(accountpairwiseid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithPairwiseId)(windows_core::Interface::as_raw(this), viewtype, applicationcallbackuri.param().abi(), core::mem::transmute_copy(accountpairwiseid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -576,32 +576,32 @@ impl WebAccountManager { #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] pub fn UpdateWebAccountPropertiesAsync(webaccount: P0, webaccountusername: &windows_core::HSTRING, additionalproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateWebAccountPropertiesAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), core::mem::transmute_copy(webaccountusername), additionalproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateWebAccountPropertiesAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), core::mem::transmute_copy(webaccountusername), additionalproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] pub fn AddWebAccountAsync(webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddWebAccountAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddWebAccountAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn DeleteWebAccountAsync(webaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteWebAccountAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteWebAccountAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] @@ -614,65 +614,65 @@ impl WebAccountManager { #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http"))] pub fn PushCookiesAsync(uri: P0, cookies: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PushCookiesAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), cookies.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PushCookiesAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), cookies.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn SetViewAsync(webaccount: P0, view: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetViewAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), view.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetViewAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), view.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn ClearViewAsync(webaccount: P0, applicationcallbackuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ClearViewAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), applicationcallbackuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ClearViewAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), applicationcallbackuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] pub fn GetViewsAsync(webaccount: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetViewsAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetViewsAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Security_Credentials", feature = "Storage_Streams"))] pub fn SetWebAccountPictureAsync(webaccount: P0, webaccountpicture: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetWebAccountPictureAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), webaccountpicture.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetWebAccountPictureAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), webaccountpicture.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn ClearWebAccountPictureAsync(webaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ClearWebAccountPictureAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ClearWebAccountPictureAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn PullCookiesAsync(uristring: &windows_core::HSTRING, callerpfn: &windows_core::HSTRING) -> windows_core::Result { @@ -684,44 +684,44 @@ impl WebAccountManager { #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] pub fn FindAllProviderWebAccountsForUserAsync(user: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllProviderWebAccountsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllProviderWebAccountsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] pub fn AddWebAccountForUserAsync(user: P0, webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IWebAccountManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddWebAccountForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddWebAccountForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] pub fn AddWebAccountWithScopeForUserAsync(user: P0, webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P1, scope: WebAccountScope) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IWebAccountManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddWebAccountWithScopeForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.into_param().abi(), scope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddWebAccountWithScopeForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), scope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] pub fn AddWebAccountWithScopeAndMapForUserAsync(user: P0, webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P1, scope: WebAccountScope, peruserwebaccountid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IWebAccountManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddWebAccountWithScopeAndMapForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.into_param().abi(), scope, core::mem::transmute_copy(peruserwebaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddWebAccountWithScopeAndMapForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), scope, core::mem::transmute_copy(peruserwebaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn InvalidateAppCacheForAllAccountsAsync() -> windows_core::Result { @@ -733,81 +733,81 @@ impl WebAccountManager { #[cfg(feature = "Security_Credentials")] pub fn InvalidateAppCacheForAccountAsync(webaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InvalidateAppCacheForAccountAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InvalidateAppCacheForAccountAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] pub fn AddWebAccountWithScopeAndMapAsync(webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P0, scope: WebAccountScope, peruserwebaccountid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IWebAccountMapManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddWebAccountWithScopeAndMapAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.into_param().abi(), scope, core::mem::transmute_copy(peruserwebaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddWebAccountWithScopeAndMapAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), scope, core::mem::transmute_copy(peruserwebaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn SetPerAppToPerUserAccountAsync(perappaccount: P0, peruserwebaccountid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountMapManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetPerAppToPerUserAccountAsync)(windows_core::Interface::as_raw(this), perappaccount.into_param().abi(), core::mem::transmute_copy(peruserwebaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetPerAppToPerUserAccountAsync)(windows_core::Interface::as_raw(this), perappaccount.param().abi(), core::mem::transmute_copy(peruserwebaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn GetPerUserFromPerAppAccountAsync(perappaccount: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountMapManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPerUserFromPerAppAccountAsync)(windows_core::Interface::as_raw(this), perappaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPerUserFromPerAppAccountAsync)(windows_core::Interface::as_raw(this), perappaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn ClearPerUserFromPerAppAccountAsync(perappaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountMapManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ClearPerUserFromPerAppAccountAsync)(windows_core::Interface::as_raw(this), perappaccount.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ClearPerUserFromPerAppAccountAsync)(windows_core::Interface::as_raw(this), perappaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] pub fn AddWebAccountWithScopeAsync(webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P0, scope: WebAccountScope) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IWebAccountScopeManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddWebAccountWithScopeAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.into_param().abi(), scope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddWebAccountWithScopeAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), scope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn SetScopeAsync(webaccount: P0, scope: WebAccountScope) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountScopeManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetScopeAsync)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), scope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetScopeAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), scope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn GetScope(webaccount: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountScopeManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetScope)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetScope)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).map(|| result__) }) } #[doc(hidden)] @@ -887,10 +887,10 @@ impl WebAccountProviderDeleteAccountOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn WebAccount(&self) -> windows_core::Result { @@ -933,10 +933,10 @@ impl WebAccountProviderGetTokenSilentOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -952,10 +952,10 @@ impl WebAccountProviderGetTokenSilentOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportUserInteractionRequiredWithError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportUserInteractionRequiredWithError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportUserInteractionRequiredWithError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProviderRequest(&self) -> windows_core::Result { let this = self; @@ -1047,10 +1047,10 @@ impl WebAccountProviderRequestTokenOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1115,10 +1115,10 @@ impl WebAccountProviderRetrieveCookiesOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1144,10 +1144,10 @@ impl WebAccountProviderRetrieveCookiesOperation { } pub fn SetUri(&self, uri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), uri.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), uri.param().abi()).ok() } } pub fn Uri(&self) -> windows_core::Result { let this = self; @@ -1189,10 +1189,10 @@ impl WebAccountProviderSignOutAccountOperation { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn ReportError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1308,23 +1308,23 @@ impl WebProviderTokenRequest { #[cfg(feature = "Security_Cryptography_Core")] pub fn GetApplicationTokenBindingKeyAsync(&self, keytype: super::TokenBindingKeyType, target: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetApplicationTokenBindingKeyAsync)(windows_core::Interface::as_raw(this), keytype, target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetApplicationTokenBindingKeyAsync)(windows_core::Interface::as_raw(this), keytype, target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn GetApplicationTokenBindingKeyIdAsync(&self, keytype: super::TokenBindingKeyType, target: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetApplicationTokenBindingKeyIdAsync)(windows_core::Interface::as_raw(this), keytype, target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetApplicationTokenBindingKeyIdAsync)(windows_core::Interface::as_raw(this), keytype, target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ApplicationPackageFamilyName(&self) -> windows_core::Result { @@ -1377,11 +1377,11 @@ impl WebProviderTokenResponse { #[cfg(feature = "Security_Authentication_Web_Core")] pub fn Create(webtokenresponse: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebProviderTokenResponseFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), webtokenresponse.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), webtokenresponse.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Web/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Web/mod.rs index 3f02f4ba0e..30eaaa653c 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/mod.rs @@ -44,21 +44,21 @@ pub struct WebAuthenticationBroker; impl WebAuthenticationBroker { pub fn AuthenticateWithCallbackUriAsync(options: WebAuthenticationOptions, requesturi: P0, callbackuri: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAuthenticationBrokerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticateWithCallbackUriAsync)(windows_core::Interface::as_raw(this), options, requesturi.into_param().abi(), callbackuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AuthenticateWithCallbackUriAsync)(windows_core::Interface::as_raw(this), options, requesturi.param().abi(), callbackuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AuthenticateWithoutCallbackUriAsync(options: WebAuthenticationOptions, requesturi: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationBrokerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticateWithoutCallbackUriAsync)(windows_core::Interface::as_raw(this), options, requesturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AuthenticateWithoutCallbackUriAsync)(windows_core::Interface::as_raw(this), options, requesturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetCurrentApplicationCallbackUri() -> windows_core::Result { @@ -69,42 +69,42 @@ impl WebAuthenticationBroker { } pub fn AuthenticateAndContinue(requesturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IWebAuthenticationBrokerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).AuthenticateAndContinue)(windows_core::Interface::as_raw(this), requesturi.into_param().abi()).ok() }) + Self::IWebAuthenticationBrokerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).AuthenticateAndContinue)(windows_core::Interface::as_raw(this), requesturi.param().abi()).ok() }) } pub fn AuthenticateWithCallbackUriAndContinue(requesturi: P0, callbackuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - Self::IWebAuthenticationBrokerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).AuthenticateWithCallbackUriAndContinue)(windows_core::Interface::as_raw(this), requesturi.into_param().abi(), callbackuri.into_param().abi()).ok() }) + Self::IWebAuthenticationBrokerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).AuthenticateWithCallbackUriAndContinue)(windows_core::Interface::as_raw(this), requesturi.param().abi(), callbackuri.param().abi()).ok() }) } #[cfg(feature = "Foundation_Collections")] pub fn AuthenticateWithCallbackUriContinuationDataAndOptionsAndContinue(requesturi: P0, callbackuri: P1, continuationdata: P2, options: WebAuthenticationOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - Self::IWebAuthenticationBrokerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).AuthenticateWithCallbackUriContinuationDataAndOptionsAndContinue)(windows_core::Interface::as_raw(this), requesturi.into_param().abi(), callbackuri.into_param().abi(), continuationdata.into_param().abi(), options).ok() }) + Self::IWebAuthenticationBrokerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).AuthenticateWithCallbackUriContinuationDataAndOptionsAndContinue)(windows_core::Interface::as_raw(this), requesturi.param().abi(), callbackuri.param().abi(), continuationdata.param().abi(), options).ok() }) } pub fn AuthenticateSilentlyAsync(requesturi: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationBrokerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticateSilentlyAsync)(windows_core::Interface::as_raw(this), requesturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AuthenticateSilentlyAsync)(windows_core::Interface::as_raw(this), requesturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AuthenticateSilentlyWithOptionsAsync(requesturi: P0, options: WebAuthenticationOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAuthenticationBrokerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticateSilentlyWithOptionsAsync)(windows_core::Interface::as_raw(this), requesturi.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AuthenticateSilentlyWithOptionsAsync)(windows_core::Interface::as_raw(this), requesturi.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs b/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs index 15c57511a6..e5b6858873 100644 --- a/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs @@ -90,12 +90,12 @@ impl AppCapability { } pub fn AccessChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccessChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccessChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAccessChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -116,22 +116,22 @@ impl AppCapability { #[cfg(feature = "Foundation_Collections")] pub fn RequestAccessForCapabilitiesAsync(capabilitynames: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IAppCapabilityStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessForCapabilitiesAsync)(windows_core::Interface::as_raw(this), capabilitynames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessForCapabilitiesAsync)(windows_core::Interface::as_raw(this), capabilitynames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "System"))] pub fn RequestAccessForCapabilitiesForUserAsync(user: P0, capabilitynames: P1) -> windows_core::Result>> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IAppCapabilityStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessForCapabilitiesForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), capabilitynames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessForCapabilitiesForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), capabilitynames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Create(capabilityname: &windows_core::HSTRING) -> windows_core::Result { @@ -143,11 +143,11 @@ impl AppCapability { #[cfg(feature = "System")] pub fn CreateWithProcessIdForUser(user: P0, capabilityname: &windows_core::HSTRING, pid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppCapabilityStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithProcessIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(capabilityname), pid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithProcessIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(capabilityname), pid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs b/crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs index 549b99af02..8a4dd0709f 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs @@ -75,11 +75,11 @@ pub struct CredentialPicker; impl CredentialPicker { pub fn PickWithOptionsAsync(options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICredentialPickerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PickWithOptionsAsync)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PickWithOptionsAsync)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn PickWithMessageAsync(targetname: &windows_core::HSTRING, message: &windows_core::HSTRING) -> windows_core::Result> { @@ -184,10 +184,10 @@ impl CredentialPickerOptions { #[cfg(feature = "Storage_Streams")] pub fn SetPreviousCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPreviousCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPreviousCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn PreviousCredential(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs index 67bef3c8c8..4fe60b5dac 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs @@ -274,12 +274,12 @@ impl KeyCredential { #[cfg(feature = "Storage_Streams")] pub fn RequestSignAsync(&self, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestSignAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestSignAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAttestationAsync(&self) -> windows_core::Result> { @@ -590,12 +590,12 @@ impl PasswordCredentialPropertyStore { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -611,12 +611,12 @@ impl PasswordCredentialPropertyStore { #[cfg(feature = "Foundation_Collections")] pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -672,17 +672,17 @@ impl PasswordVault { } pub fn Add(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } pub fn Remove(&self, credential: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), credential.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), credential.param().abi()).ok() } } pub fn Retrieve(&self, resource: &windows_core::HSTRING, username: &windows_core::HSTRING) -> windows_core::Result { let this = self; @@ -794,11 +794,11 @@ impl WebAccount { } pub fn CreateWebAccount(webaccountprovider: P0, username: &windows_core::HSTRING, state: WebAccountState) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWebAccount)(windows_core::Interface::as_raw(this), webaccountprovider.into_param().abi(), core::mem::transmute_copy(username), state, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWebAccount)(windows_core::Interface::as_raw(this), webaccountprovider.param().abi(), core::mem::transmute_copy(username), state, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -877,11 +877,11 @@ impl WebAccountProvider { } pub fn CreateWebAccountProvider(id: &windows_core::HSTRING, displayname: &windows_core::HSTRING, iconuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebAccountProviderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWebAccountProvider)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), core::mem::transmute_copy(displayname), iconuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWebAccountProvider)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), core::mem::transmute_copy(displayname), iconuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs b/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs index ef381375f1..05dbfdc8f5 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs @@ -669,24 +669,24 @@ impl Certificate { #[cfg(feature = "Foundation_Collections")] pub fn BuildChainAsync(&self, certificates: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BuildChainAsync)(windows_core::Interface::as_raw(this), certificates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BuildChainAsync)(windows_core::Interface::as_raw(this), certificates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn BuildChainWithParametersAsync(&self, certificates: P0, parameters: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BuildChainWithParametersAsync)(windows_core::Interface::as_raw(this), certificates.into_param().abi(), parameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BuildChainWithParametersAsync)(windows_core::Interface::as_raw(this), certificates.param().abi(), parameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SerialNumber(&self) -> windows_core::Result> { @@ -845,11 +845,11 @@ impl Certificate { #[cfg(feature = "Storage_Streams")] pub fn CreateCertificate(certblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICertificateFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCertificate)(windows_core::Interface::as_raw(this), certblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCertificate)(windows_core::Interface::as_raw(this), certblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -884,12 +884,12 @@ impl CertificateChain { } pub fn ValidateWithParameters(&self, parameter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValidateWithParameters)(windows_core::Interface::as_raw(this), parameter.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ValidateWithParameters)(windows_core::Interface::as_raw(this), parameter.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -917,11 +917,11 @@ pub struct CertificateEnrollmentManager; impl CertificateEnrollmentManager { pub fn CreateRequestAsync(request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICertificateEnrollmentManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRequestAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRequestAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn InstallCertificateAsync(certificate: &windows_core::HSTRING, installoption: InstallOptions) -> windows_core::Result { @@ -950,11 +950,11 @@ impl CertificateEnrollmentManager { } pub fn ImportPfxDataToKspWithParametersAsync(pfxdata: &windows_core::HSTRING, password: &windows_core::HSTRING, pfximportparameters: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICertificateEnrollmentManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportPfxDataToKspWithParametersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(pfxdata), core::mem::transmute_copy(password), pfximportparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportPfxDataToKspWithParametersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(pfxdata), core::mem::transmute_copy(password), pfximportparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1392,10 +1392,10 @@ impl CertificateRequestProperties { } pub fn SetSigningCertificate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSigningCertificate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSigningCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn AttestationCredentialCertificate(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1406,10 +1406,10 @@ impl CertificateRequestProperties { } pub fn SetAttestationCredentialCertificate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAttestationCredentialCertificate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAttestationCredentialCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CurveName(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1509,17 +1509,17 @@ windows_core::imp::interface_hierarchy!(CertificateStore, windows_core::IUnknown impl CertificateStore { pub fn Add(&self, certificate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), certificate.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), certificate.param().abi()).ok() } } pub fn Delete(&self, certificate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Delete)(windows_core::Interface::as_raw(this), certificate.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Delete)(windows_core::Interface::as_raw(this), certificate.param().abi()).ok() } } pub fn Name(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1553,11 +1553,11 @@ impl CertificateStores { #[cfg(feature = "Foundation_Collections")] pub fn FindAllWithQueryAsync(query: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICertificateStoresStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAllWithQueryAsync)(windows_core::Interface::as_raw(this), query.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAllWithQueryAsync)(windows_core::Interface::as_raw(this), query.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn TrustedRootCertificationAuthorities() -> windows_core::Result { @@ -1728,10 +1728,10 @@ impl ChainValidationParameters { #[cfg(feature = "Networking")] pub fn SetServerDnsName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServerDnsName)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerDnsName)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for ChainValidationParameters { @@ -1784,23 +1784,23 @@ impl CmsAttachedSignature { #[cfg(feature = "Storage_Streams")] pub fn CreateCmsAttachedSignature(inputblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICmsAttachedSignatureFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCmsAttachedSignature)(windows_core::Interface::as_raw(this), inputblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCmsAttachedSignature)(windows_core::Interface::as_raw(this), inputblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GenerateSignatureAsync(data: P0, signers: P1, certificates: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param>, { Self::ICmsAttachedSignatureStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GenerateSignatureAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), signers.into_param().abi(), certificates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GenerateSignatureAsync)(windows_core::Interface::as_raw(this), data.param().abi(), signers.param().abi(), certificates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1850,34 +1850,34 @@ impl CmsDetachedSignature { #[cfg(feature = "Storage_Streams")] pub fn VerifySignatureAsync(&self, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VerifySignatureAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).VerifySignatureAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateCmsDetachedSignature(inputblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICmsDetachedSignatureFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCmsDetachedSignature)(windows_core::Interface::as_raw(this), inputblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCmsDetachedSignature)(windows_core::Interface::as_raw(this), inputblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GenerateSignatureAsync(data: P0, signers: P1, certificates: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, + P2: windows_core::Param>, { Self::ICmsDetachedSignatureStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GenerateSignatureAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), signers.into_param().abi(), certificates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GenerateSignatureAsync)(windows_core::Interface::as_raw(this), data.param().abi(), signers.param().abi(), certificates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1924,10 +1924,10 @@ impl CmsSignerInfo { } pub fn SetCertificate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCertificate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn HashAlgorithmName(&self) -> windows_core::Result { let this = self; @@ -2416,12 +2416,12 @@ windows_core::imp::interface_hierarchy!(UserCertificateEnrollmentManager, window impl UserCertificateEnrollmentManager { pub fn CreateRequestAsync(&self, request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRequestAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRequestAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn InstallCertificateAsync(&self, certificate: &windows_core::HSTRING, installoption: InstallOptions) -> windows_core::Result { @@ -2447,12 +2447,12 @@ impl UserCertificateEnrollmentManager { } pub fn ImportPfxDataToKspWithParametersAsync(&self, pfxdata: &windows_core::HSTRING, password: &windows_core::HSTRING, pfximportparameters: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportPfxDataToKspWithParametersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(pfxdata), core::mem::transmute_copy(password), pfximportparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportPfxDataToKspWithParametersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(pfxdata), core::mem::transmute_copy(password), pfximportparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2475,22 +2475,22 @@ windows_core::imp::interface_hierarchy!(UserCertificateStore, windows_core::IUnk impl UserCertificateStore { pub fn RequestAddAsync(&self, certificate: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAddAsync)(windows_core::Interface::as_raw(this), certificate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAddAsync)(windows_core::Interface::as_raw(this), certificate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestDeleteAsync(&self, certificate: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestDeleteAsync)(windows_core::Interface::as_raw(this), certificate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestDeleteAsync)(windows_core::Interface::as_raw(this), certificate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Name(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs b/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs index fca3f21fa2..d83233c837 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs @@ -688,45 +688,45 @@ impl AsymmetricKeyAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn ImportDefaultPrivateKeyBlob(&self, keyblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportDefaultPrivateKeyBlob)(windows_core::Interface::as_raw(this), keyblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportDefaultPrivateKeyBlob)(windows_core::Interface::as_raw(this), keyblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ImportKeyPairWithBlobType(&self, keyblob: P0, blobtype: CryptographicPrivateKeyBlobType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportKeyPairWithBlobType)(windows_core::Interface::as_raw(this), keyblob.into_param().abi(), blobtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportKeyPairWithBlobType)(windows_core::Interface::as_raw(this), keyblob.param().abi(), blobtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ImportDefaultPublicKeyBlob(&self, keyblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportDefaultPublicKeyBlob)(windows_core::Interface::as_raw(this), keyblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportDefaultPublicKeyBlob)(windows_core::Interface::as_raw(this), keyblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ImportPublicKeyWithBlobType(&self, keyblob: P0, blobtype: CryptographicPublicKeyBlobType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImportPublicKeyWithBlobType)(windows_core::Interface::as_raw(this), keyblob.into_param().abi(), blobtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ImportPublicKeyWithBlobType)(windows_core::Interface::as_raw(this), keyblob.param().abi(), blobtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateKeyPairWithCurveName(&self, curvename: &windows_core::HSTRING) -> windows_core::Result { @@ -772,143 +772,143 @@ impl CryptographicEngine { #[cfg(feature = "Storage_Streams")] pub fn Encrypt(key: P0, data: P1, iv: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ICryptographicEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Encrypt)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), iv.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Encrypt)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), iv.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn Decrypt(key: P0, data: P1, iv: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ICryptographicEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Decrypt)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), iv.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Decrypt)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), iv.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn EncryptAndAuthenticate(key: P0, data: P1, nonce: P2, authenticateddata: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { Self::ICryptographicEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EncryptAndAuthenticate)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), nonce.into_param().abi(), authenticateddata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EncryptAndAuthenticate)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), nonce.param().abi(), authenticateddata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn DecryptAndAuthenticate(key: P0, data: P1, nonce: P2, authenticationtag: P3, authenticateddata: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { Self::ICryptographicEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DecryptAndAuthenticate)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), nonce.into_param().abi(), authenticationtag.into_param().abi(), authenticateddata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DecryptAndAuthenticate)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), nonce.param().abi(), authenticationtag.param().abi(), authenticateddata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn Sign(key: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ICryptographicEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Sign)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Sign)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn VerifySignature(key: P0, data: P1, signature: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ICryptographicEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VerifySignature)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), signature.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VerifySignature)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), signature.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "Storage_Streams")] pub fn DeriveKeyMaterial(key: P0, parameters: P1, desiredkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ICryptographicEngineStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeriveKeyMaterial)(windows_core::Interface::as_raw(this), key.into_param().abi(), parameters.into_param().abi(), desiredkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeriveKeyMaterial)(windows_core::Interface::as_raw(this), key.param().abi(), parameters.param().abi(), desiredkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn SignHashedData(key: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ICryptographicEngineStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SignHashedData)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SignHashedData)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn VerifySignatureWithHashInput(key: P0, data: P1, signature: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ICryptographicEngineStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VerifySignatureWithHashInput)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), signature.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VerifySignatureWithHashInput)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), signature.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "Storage_Streams")] pub fn DecryptAsync(key: P0, data: P1, iv: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ICryptographicEngineStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DecryptAsync)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), iv.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DecryptAsync)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), iv.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn SignAsync(key: P0, data: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ICryptographicEngineStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SignAsync)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SignAsync)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn SignHashedDataAsync(key: P0, data: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ICryptographicEngineStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SignHashedDataAsync)(windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SignHashedDataAsync)(windows_core::Interface::as_raw(this), key.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -933,10 +933,10 @@ impl CryptographicHash { #[cfg(feature = "Storage_Streams")] pub fn Append(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), data.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), data.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn GetValueAndReset(&self) -> windows_core::Result { @@ -1401,12 +1401,12 @@ impl HashAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn HashData(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HashData)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).HashData)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateHash(&self) -> windows_core::Result { @@ -1591,12 +1591,12 @@ impl KeyDerivationAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn CreateKey(&self, keymaterial: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateKey)(windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateKey)(windows_core::Interface::as_raw(this), keymaterial.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn OpenAlgorithm(algorithm: &windows_core::HSTRING) -> windows_core::Result { @@ -1639,10 +1639,10 @@ impl KeyDerivationParameters { #[cfg(feature = "Storage_Streams")] pub fn SetKdfGenericBinary(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetKdfGenericBinary)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetKdfGenericBinary)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IterationCount(&self) -> windows_core::Result { let this = self; @@ -1665,36 +1665,36 @@ impl KeyDerivationParameters { #[cfg(feature = "Storage_Streams")] pub fn BuildForPbkdf2(pbkdf2salt: P0, iterationcount: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IKeyDerivationParametersStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BuildForPbkdf2)(windows_core::Interface::as_raw(this), pbkdf2salt.into_param().abi(), iterationcount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BuildForPbkdf2)(windows_core::Interface::as_raw(this), pbkdf2salt.param().abi(), iterationcount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn BuildForSP800108(label: P0, context: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IKeyDerivationParametersStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BuildForSP800108)(windows_core::Interface::as_raw(this), label.into_param().abi(), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BuildForSP800108)(windows_core::Interface::as_raw(this), label.param().abi(), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn BuildForSP80056a(algorithmid: P0, partyuinfo: P1, partyvinfo: P2, supppubinfo: P3, suppprivinfo: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { Self::IKeyDerivationParametersStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BuildForSP80056a)(windows_core::Interface::as_raw(this), algorithmid.into_param().abi(), partyuinfo.into_param().abi(), partyvinfo.into_param().abi(), supppubinfo.into_param().abi(), suppprivinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BuildForSP80056a)(windows_core::Interface::as_raw(this), algorithmid.param().abi(), partyuinfo.param().abi(), partyvinfo.param().abi(), supppubinfo.param().abi(), suppprivinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn BuildForCapi1Kdf(capi1kdftargetalgorithm: Capi1KdfTargetAlgorithm) -> windows_core::Result { @@ -1795,23 +1795,23 @@ impl MacAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn CreateKey(&self, keymaterial: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateKey)(windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateKey)(windows_core::Interface::as_raw(this), keymaterial.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateHash(&self, keymaterial: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateHash)(windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateHash)(windows_core::Interface::as_raw(this), keymaterial.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn OpenAlgorithm(algorithm: &windows_core::HSTRING) -> windows_core::Result { @@ -1843,21 +1843,21 @@ impl PersistedKeyProvider { #[cfg(feature = "Security_Cryptography_Certificates")] pub fn OpenKeyPairFromCertificateAsync(certificate: P0, hashalgorithmname: &windows_core::HSTRING, padding: CryptographicPadding) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPersistedKeyProviderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenKeyPairFromCertificateAsync)(windows_core::Interface::as_raw(this), certificate.into_param().abi(), core::mem::transmute_copy(hashalgorithmname), padding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenKeyPairFromCertificateAsync)(windows_core::Interface::as_raw(this), certificate.param().abi(), core::mem::transmute_copy(hashalgorithmname), padding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Cryptography_Certificates")] pub fn OpenPublicKeyFromCertificate(certificate: P0, hashalgorithmname: &windows_core::HSTRING, padding: CryptographicPadding) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPersistedKeyProviderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenPublicKeyFromCertificate)(windows_core::Interface::as_raw(this), certificate.into_param().abi(), core::mem::transmute_copy(hashalgorithmname), padding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenPublicKeyFromCertificate)(windows_core::Interface::as_raw(this), certificate.param().abi(), core::mem::transmute_copy(hashalgorithmname), padding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2016,12 +2016,12 @@ impl SymmetricKeyAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn CreateSymmetricKey(&self, keymaterial: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSymmetricKey)(windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSymmetricKey)(windows_core::Interface::as_raw(this), keymaterial.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn OpenAlgorithm(algorithm: &windows_core::HSTRING) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Security/Cryptography/DataProtection/mod.rs b/crates/libs/windows/src/Windows/Security/Cryptography/DataProtection/mod.rs index d8fc119ed2..5a78d9892d 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/DataProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/DataProtection/mod.rs @@ -46,47 +46,47 @@ impl DataProtectionProvider { #[cfg(feature = "Storage_Streams")] pub fn ProtectAsync(&self, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn UnprotectAsync(&self, data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprotectAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnprotectAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ProtectStreamAsync(&self, src: P0, dest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectStreamAsync)(windows_core::Interface::as_raw(this), src.into_param().abi(), dest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectStreamAsync)(windows_core::Interface::as_raw(this), src.param().abi(), dest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn UnprotectStreamAsync(&self, src: P0, dest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprotectStreamAsync)(windows_core::Interface::as_raw(this), src.into_param().abi(), dest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnprotectStreamAsync)(windows_core::Interface::as_raw(this), src.param().abi(), dest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateOverloadExplicit(protectiondescriptor: &windows_core::HSTRING) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs b/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs index 223b1827d3..929cff3d4f 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs @@ -58,12 +58,12 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn Compare(object1: P0, object2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Compare)(windows_core::Interface::as_raw(this), object1.into_param().abi(), object2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Compare)(windows_core::Interface::as_raw(this), object1.param().abi(), object2.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "Storage_Streams")] @@ -89,9 +89,9 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn CopyToByteArray(buffer: P0, value: &mut windows_core::Array) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ICryptographicBufferStatics(|this| unsafe { (windows_core::Interface::vtable(this).CopyToByteArray)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), value.set_abi_len(), value as *mut _ as _).ok() }) + Self::ICryptographicBufferStatics(|this| unsafe { (windows_core::Interface::vtable(this).CopyToByteArray)(windows_core::Interface::as_raw(this), buffer.param().abi(), value.set_abi_len(), value as *mut _ as _).ok() }) } #[cfg(feature = "Storage_Streams")] pub fn DecodeFromHexString(value: &windows_core::HSTRING) -> windows_core::Result { @@ -103,11 +103,11 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn EncodeToHexString(buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EncodeToHexString)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EncodeToHexString)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] @@ -120,11 +120,11 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn EncodeToBase64String(buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EncodeToBase64String)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EncodeToBase64String)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] @@ -137,11 +137,11 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn ConvertBinaryToString(encoding: BinaryStringEncoding, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConvertBinaryToString)(windows_core::Interface::as_raw(this), encoding, buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ConvertBinaryToString)(windows_core::Interface::as_raw(this), encoding, buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Security/DataProtection/mod.rs b/crates/libs/windows/src/Windows/Security/DataProtection/mod.rs index a2ebb3314a..290f854350 100644 --- a/crates/libs/windows/src/Windows/Security/DataProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Security/DataProtection/mod.rs @@ -135,45 +135,45 @@ impl UserDataProtectionManager { #[cfg(feature = "Storage")] pub fn ProtectStorageItemAsync(&self, storageitem: P0, availability: UserDataAvailability) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectStorageItemAsync)(windows_core::Interface::as_raw(this), storageitem.into_param().abi(), availability, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectStorageItemAsync)(windows_core::Interface::as_raw(this), storageitem.param().abi(), availability, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn GetStorageItemProtectionInfoAsync(&self, storageitem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStorageItemProtectionInfoAsync)(windows_core::Interface::as_raw(this), storageitem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStorageItemProtectionInfoAsync)(windows_core::Interface::as_raw(this), storageitem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn ProtectBufferAsync(&self, unprotectedbuffer: P0, availability: UserDataAvailability) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectBufferAsync)(windows_core::Interface::as_raw(this), unprotectedbuffer.into_param().abi(), availability, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectBufferAsync)(windows_core::Interface::as_raw(this), unprotectedbuffer.param().abi(), availability, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn UnprotectBufferAsync(&self, protectedbuffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprotectBufferAsync)(windows_core::Interface::as_raw(this), protectedbuffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnprotectBufferAsync)(windows_core::Interface::as_raw(this), protectedbuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsContinuedDataAvailabilityExpected(&self, availability: UserDataAvailability) -> windows_core::Result { @@ -185,12 +185,12 @@ impl UserDataProtectionManager { } pub fn DataAvailabilityStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DataAvailabilityStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DataAvailabilityStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDataAvailabilityStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -206,11 +206,11 @@ impl UserDataProtectionManager { #[cfg(feature = "System")] pub fn TryGetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserDataProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs index 9ec8c3eba8..6da1847eca 100644 --- a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs @@ -489,63 +489,63 @@ impl DataProtectionManager { #[cfg(feature = "Storage_Streams")] pub fn ProtectAsync(data: P0, identity: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), core::mem::transmute_copy(identity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), data.param().abi(), core::mem::transmute_copy(identity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn UnprotectAsync(data: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprotectAsync)(windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnprotectAsync)(windows_core::Interface::as_raw(this), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ProtectStreamAsync(unprotectedstream: P0, identity: &windows_core::HSTRING, protectedstream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectStreamAsync)(windows_core::Interface::as_raw(this), unprotectedstream.into_param().abi(), core::mem::transmute_copy(identity), protectedstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectStreamAsync)(windows_core::Interface::as_raw(this), unprotectedstream.param().abi(), core::mem::transmute_copy(identity), protectedstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn UnprotectStreamAsync(protectedstream: P0, unprotectedstream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprotectStreamAsync)(windows_core::Interface::as_raw(this), protectedstream.into_param().abi(), unprotectedstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnprotectStreamAsync)(windows_core::Interface::as_raw(this), protectedstream.param().abi(), unprotectedstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn GetProtectionInfoAsync(protecteddata: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetProtectionInfoAsync)(windows_core::Interface::as_raw(this), protecteddata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetProtectionInfoAsync)(windows_core::Interface::as_raw(this), protecteddata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn GetStreamProtectionInfoAsync(protectedstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStreamProtectionInfoAsync)(windows_core::Interface::as_raw(this), protectedstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStreamProtectionInfoAsync)(windows_core::Interface::as_raw(this), protectedstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -608,126 +608,126 @@ impl FileProtectionManager { #[cfg(feature = "Storage")] pub fn ProtectAsync(target: P0, identity: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), target.into_param().abi(), core::mem::transmute_copy(identity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), target.param().abi(), core::mem::transmute_copy(identity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn CopyProtectionAsync(source: P0, target: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyProtectionAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyProtectionAsync)(windows_core::Interface::as_raw(this), source.param().abi(), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn GetProtectionInfoAsync(source: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetProtectionInfoAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetProtectionInfoAsync)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn SaveFileAsContainerAsync(protectedfile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveFileAsContainerAsync)(windows_core::Interface::as_raw(this), protectedfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveFileAsContainerAsync)(windows_core::Interface::as_raw(this), protectedfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LoadFileFromContainerAsync(containerfile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFileFromContainerAsync)(windows_core::Interface::as_raw(this), containerfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFileFromContainerAsync)(windows_core::Interface::as_raw(this), containerfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LoadFileFromContainerWithTargetAsync(containerfile: P0, target: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAsync)(windows_core::Interface::as_raw(this), containerfile.into_param().abi(), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAsync)(windows_core::Interface::as_raw(this), containerfile.param().abi(), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn CreateProtectedAndOpenAsync(parentfolder: P0, desiredname: &windows_core::HSTRING, identity: &windows_core::HSTRING, collisionoption: super::super::Storage::CreationCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateProtectedAndOpenAsync)(windows_core::Interface::as_raw(this), parentfolder.into_param().abi(), core::mem::transmute_copy(desiredname), core::mem::transmute_copy(identity), collisionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateProtectedAndOpenAsync)(windows_core::Interface::as_raw(this), parentfolder.param().abi(), core::mem::transmute_copy(desiredname), core::mem::transmute_copy(identity), collisionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn IsContainerAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileProtectionManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsContainerAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).IsContainerAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LoadFileFromContainerWithTargetAndNameCollisionOptionAsync(containerfile: P0, target: P1, collisionoption: super::super::Storage::NameCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IFileProtectionManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAndNameCollisionOptionAsync)(windows_core::Interface::as_raw(this), containerfile.into_param().abi(), target.into_param().abi(), collisionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAndNameCollisionOptionAsync)(windows_core::Interface::as_raw(this), containerfile.param().abi(), target.param().abi(), collisionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn SaveFileAsContainerWithSharingAsync(protectedfile: P0, sharedwithidentities: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IFileProtectionManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveFileAsContainerWithSharingAsync)(windows_core::Interface::as_raw(this), protectedfile.into_param().abi(), sharedwithidentities.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveFileAsContainerWithSharingAsync)(windows_core::Interface::as_raw(this), protectedfile.param().abi(), sharedwithidentities.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn UnprotectAsync(target: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileProtectionManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprotectAsync)(windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnprotectAsync)(windows_core::Interface::as_raw(this), target.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn UnprotectWithOptionsAsync(target: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IFileProtectionManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnprotectWithOptionsAsync)(windows_core::Interface::as_raw(this), target.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UnprotectWithOptionsAsync)(windows_core::Interface::as_raw(this), target.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -756,22 +756,22 @@ impl FileRevocationManager { #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn ProtectAsync(storageitem: P0, enterpriseidentity: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileRevocationManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), storageitem.into_param().abi(), core::mem::transmute_copy(enterpriseidentity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), storageitem.param().abi(), core::mem::transmute_copy(enterpriseidentity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn CopyProtectionAsync(sourcestorageitem: P0, targetstorageitem: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IFileRevocationManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyProtectionAsync)(windows_core::Interface::as_raw(this), sourcestorageitem.into_param().abi(), targetstorageitem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyProtectionAsync)(windows_core::Interface::as_raw(this), sourcestorageitem.param().abi(), targetstorageitem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "deprecated")] @@ -781,11 +781,11 @@ impl FileRevocationManager { #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn GetStatusAsync(storageitem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileRevocationManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStatusAsync)(windows_core::Interface::as_raw(this), storageitem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStatusAsync)(windows_core::Interface::as_raw(this), storageitem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1168,11 +1168,11 @@ impl ProtectionPolicyManager { #[cfg(feature = "Networking")] pub fn GetPrimaryManagedIdentityForNetworkEndpointAsync(endpointhost: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPrimaryManagedIdentityForNetworkEndpointAsync)(windows_core::Interface::as_raw(this), endpointhost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPrimaryManagedIdentityForNetworkEndpointAsync)(windows_core::Interface::as_raw(this), endpointhost.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RevokeContent(identity: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -1186,11 +1186,11 @@ impl ProtectionPolicyManager { } pub fn ProtectedAccessSuspending(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IProtectionPolicyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectedAccessSuspending)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProtectedAccessSuspending)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveProtectedAccessSuspending(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1198,11 +1198,11 @@ impl ProtectionPolicyManager { } pub fn ProtectedAccessResumed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IProtectionPolicyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectedAccessResumed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProtectedAccessResumed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveProtectedAccessResumed(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1210,11 +1210,11 @@ impl ProtectionPolicyManager { } pub fn ProtectedContentRevoked(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IProtectionPolicyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProtectedContentRevoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProtectedContentRevoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveProtectedContentRevoked(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1270,11 +1270,11 @@ impl ProtectionPolicyManager { } pub fn PolicyChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IProtectionPolicyManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PolicyChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PolicyChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemovePolicyChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1288,45 +1288,45 @@ impl ProtectionPolicyManager { } pub fn RequestAccessWithAuditingInfoAsync(sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfo: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessWithAuditingInfoAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessWithAuditingInfoAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestAccessWithMessageAsync(sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfo: P0, messagefromapp: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessWithMessageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.into_param().abi(), core::mem::transmute_copy(messagefromapp), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessWithMessageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestAccessForAppWithAuditingInfoAsync(sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfo: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessForAppWithAuditingInfoAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessForAppWithAuditingInfoAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestAccessForAppWithMessageAsync(sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfo: P0, messagefromapp: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessForAppWithMessageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfo.into_param().abi(), core::mem::transmute_copy(messagefromapp), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessForAppWithMessageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LogAuditEvent(sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IProtectionPolicyManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).LogAuditEvent)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.into_param().abi()).ok() }) + Self::IProtectionPolicyManagerStatics3(|this| unsafe { (windows_core::Interface::vtable(this).LogAuditEvent)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.param().abi()).ok() }) } pub fn IsRoamableProtectionEnabled(identity: &windows_core::HSTRING) -> windows_core::Result { Self::IProtectionPolicyManagerStatics4(|this| unsafe { @@ -1336,84 +1336,84 @@ impl ProtectionPolicyManager { } pub fn RequestAccessWithBehaviorAsync(sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfo: P0, messagefromapp: &windows_core::HSTRING, behavior: ProtectionPolicyRequestAccessBehavior) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessWithBehaviorAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.into_param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessWithBehaviorAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestAccessForAppWithBehaviorAsync(sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfo: P0, messagefromapp: &windows_core::HSTRING, behavior: ProtectionPolicyRequestAccessBehavior) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessForAppWithBehaviorAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfo.into_param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessForAppWithBehaviorAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn RequestAccessToFilesForAppAsync(sourceitemlist: P0, apppackagefamilyname: &windows_core::HSTRING, auditinfo: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessToFilesForAppAsync)(windows_core::Interface::as_raw(this), sourceitemlist.into_param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessToFilesForAppAsync)(windows_core::Interface::as_raw(this), sourceitemlist.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn RequestAccessToFilesForAppWithMessageAndBehaviorAsync(sourceitemlist: P0, apppackagefamilyname: &windows_core::HSTRING, auditinfo: P1, messagefromapp: &windows_core::HSTRING, behavior: ProtectionPolicyRequestAccessBehavior) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessToFilesForAppWithMessageAndBehaviorAsync)(windows_core::Interface::as_raw(this), sourceitemlist.into_param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfo.into_param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessToFilesForAppWithMessageAndBehaviorAsync)(windows_core::Interface::as_raw(this), sourceitemlist.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn RequestAccessToFilesForProcessAsync(sourceitemlist: P0, processid: u32, auditinfo: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessToFilesForProcessAsync)(windows_core::Interface::as_raw(this), sourceitemlist.into_param().abi(), processid, auditinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessToFilesForProcessAsync)(windows_core::Interface::as_raw(this), sourceitemlist.param().abi(), processid, auditinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn RequestAccessToFilesForProcessWithMessageAndBehaviorAsync(sourceitemlist: P0, processid: u32, auditinfo: P1, messagefromapp: &windows_core::HSTRING, behavior: ProtectionPolicyRequestAccessBehavior) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessToFilesForProcessWithMessageAndBehaviorAsync)(windows_core::Interface::as_raw(this), sourceitemlist.into_param().abi(), processid, auditinfo.into_param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessToFilesForProcessWithMessageAndBehaviorAsync)(windows_core::Interface::as_raw(this), sourceitemlist.param().abi(), processid, auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn IsFileProtectionRequiredAsync(target: P0, identity: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsFileProtectionRequiredAsync)(windows_core::Interface::as_raw(this), target.into_param().abi(), core::mem::transmute_copy(identity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).IsFileProtectionRequiredAsync)(windows_core::Interface::as_raw(this), target.param().abi(), core::mem::transmute_copy(identity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn IsFileProtectionRequiredForNewFileAsync(parentfolder: P0, identity: &windows_core::HSTRING, desiredname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsFileProtectionRequiredForNewFileAsync)(windows_core::Interface::as_raw(this), parentfolder.into_param().abi(), core::mem::transmute_copy(identity), core::mem::transmute_copy(desiredname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).IsFileProtectionRequiredForNewFileAsync)(windows_core::Interface::as_raw(this), parentfolder.param().abi(), core::mem::transmute_copy(identity), core::mem::transmute_copy(desiredname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn PrimaryManagedIdentity() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs index 77ff9fc672..b677f14715 100644 --- a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs @@ -381,33 +381,33 @@ impl IsolatedWindowsEnvironment { } pub fn StartProcessSilentlyWithTelemetryAsync(&self, hostexepath: &windows_core::HSTRING, arguments: &windows_core::HSTRING, activator: IsolatedWindowsEnvironmentActivator, telemetryparameters: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProcessSilentlyWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostexepath), core::mem::transmute_copy(arguments), activator, telemetryparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartProcessSilentlyWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostexepath), core::mem::transmute_copy(arguments), activator, telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShareFolderAsync(&self, hostfolder: &windows_core::HSTRING, requestoptions: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShareFolderAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostfolder), requestoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShareFolderAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostfolder), requestoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShareFolderWithTelemetryAsync(&self, hostfolder: &windows_core::HSTRING, requestoptions: P0, telemetryparameters: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShareFolderWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostfolder), requestoptions.into_param().abi(), telemetryparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShareFolderWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostfolder), requestoptions.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn LaunchFileWithUIAsync(&self, appexepath: &windows_core::HSTRING, argumentstemplate: &windows_core::HSTRING, filepath: &windows_core::HSTRING) -> windows_core::Result> { @@ -419,12 +419,12 @@ impl IsolatedWindowsEnvironment { } pub fn LaunchFileWithUIAndTelemetryAsync(&self, appexepath: &windows_core::HSTRING, argumentstemplate: &windows_core::HSTRING, filepath: &windows_core::HSTRING, telemetryparameters: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFileWithUIAndTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appexepath), core::mem::transmute_copy(argumentstemplate), core::mem::transmute_copy(filepath), telemetryparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFileWithUIAndTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appexepath), core::mem::transmute_copy(argumentstemplate), core::mem::transmute_copy(filepath), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TerminateAsync(&self) -> windows_core::Result { @@ -436,21 +436,21 @@ impl IsolatedWindowsEnvironment { } pub fn TerminateWithTelemetryAsync(&self, telemetryparameters: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TerminateWithTelemetryAsync)(windows_core::Interface::as_raw(this), telemetryparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TerminateWithTelemetryAsync)(windows_core::Interface::as_raw(this), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RegisterMessageReceiver(&self, receiverid: windows_core::GUID, messagereceivedcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RegisterMessageReceiver)(windows_core::Interface::as_raw(this), receiverid, messagereceivedcallback.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RegisterMessageReceiver)(windows_core::Interface::as_raw(this), receiverid, messagereceivedcallback.param().abi()).ok() } } pub fn UnregisterMessageReceiver(&self, receiverid: windows_core::GUID) -> windows_core::Result<()> { let this = self; @@ -459,24 +459,24 @@ impl IsolatedWindowsEnvironment { #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverAsync(&self, receiverid: windows_core::GUID, message: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PostMessageToReceiverAsync)(windows_core::Interface::as_raw(this), receiverid, message.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PostMessageToReceiverAsync)(windows_core::Interface::as_raw(this), receiverid, message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverWithTelemetryAsync(&self, receiverid: windows_core::GUID, message: P0, telemetryparameters: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PostMessageToReceiverWithTelemetryAsync)(windows_core::Interface::as_raw(this), receiverid, message.into_param().abi(), telemetryparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PostMessageToReceiverWithTelemetryAsync)(windows_core::Interface::as_raw(this), receiverid, message.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetUserInfo(&self) -> windows_core::Result { @@ -488,23 +488,23 @@ impl IsolatedWindowsEnvironment { } pub fn ShareFileAsync(&self, filepath: &windows_core::HSTRING, options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShareFileAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShareFileAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ShareFileWithTelemetryAsync(&self, filepath: &windows_core::HSTRING, options: P0, telemetryparameters: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShareFileWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), options.into_param().abi(), telemetryparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShareFileWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), options.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ChangePriority(&self, priority: IsolatedWindowsEnvironmentCreationPriority) -> windows_core::Result<()> { @@ -513,21 +513,21 @@ impl IsolatedWindowsEnvironment { } pub fn CreateAsync(options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIsolatedWindowsEnvironmentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithTelemetryAsync(options: P0, telemetryparameters: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IIsolatedWindowsEnvironmentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithTelemetryAsync)(windows_core::Interface::as_raw(this), options.into_param().abi(), telemetryparameters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithTelemetryAsync)(windows_core::Interface::as_raw(this), options.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetById(environmentid: &windows_core::HSTRING) -> windows_core::Result { @@ -885,11 +885,11 @@ pub struct IsolatedWindowsEnvironmentOwnerRegistration; impl IsolatedWindowsEnvironmentOwnerRegistration { pub fn Register(ownername: &windows_core::HSTRING, ownerregistrationdata: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IIsolatedWindowsEnvironmentOwnerRegistrationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(ownername), ownerregistrationdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(ownername), ownerregistrationdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Unregister(ownername: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -1341,9 +1341,9 @@ impl IsolatedWindowsHostMessenger { #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiver(receiverid: windows_core::GUID, message: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { - Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { (windows_core::Interface::vtable(this).PostMessageToReceiver)(windows_core::Interface::as_raw(this), receiverid, message.into_param().abi()).ok() }) + Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { (windows_core::Interface::vtable(this).PostMessageToReceiver)(windows_core::Interface::as_raw(this), receiverid, message.param().abi()).ok() }) } pub fn GetFileId(filepath: &windows_core::HSTRING) -> windows_core::Result { Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { @@ -1354,9 +1354,9 @@ impl IsolatedWindowsHostMessenger { #[cfg(feature = "Foundation_Collections")] pub fn RegisterHostMessageReceiver(receiverid: windows_core::GUID, hostmessagereceivedcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IIsolatedWindowsHostMessengerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).RegisterHostMessageReceiver)(windows_core::Interface::as_raw(this), receiverid, hostmessagereceivedcallback.into_param().abi()).ok() }) + Self::IIsolatedWindowsHostMessengerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).RegisterHostMessageReceiver)(windows_core::Interface::as_raw(this), receiverid, hostmessagereceivedcallback.param().abi()).ok() }) } pub fn UnregisterHostMessageReceiver(receiverid: windows_core::GUID) -> windows_core::Result<()> { Self::IIsolatedWindowsHostMessengerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).UnregisterHostMessageReceiver)(windows_core::Interface::as_raw(this), receiverid).ok() }) @@ -1844,10 +1844,10 @@ impl HostMessageReceivedCallback { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, receiverid: windows_core::GUID, message: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), receiverid, message.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), receiverid, message.param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] @@ -1914,10 +1914,10 @@ impl MessageReceivedCallback { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, receiverid: windows_core::GUID, message: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), receiverid, message.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), receiverid, message.param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] diff --git a/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs index d61b08523c..ddc2d0530f 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs @@ -515,17 +515,17 @@ windows_core::imp::interface_hierarchy!(GuidanceNavigator, windows_core::IUnknow impl GuidanceNavigator { pub fn StartNavigating(&self, route: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartNavigating)(windows_core::Interface::as_raw(this), route.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartNavigating)(windows_core::Interface::as_raw(this), route.param().abi()).ok() } } pub fn StartSimulating(&self, route: P0, speedinmeterspersecond: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartSimulating)(windows_core::Interface::as_raw(this), route.into_param().abi(), speedinmeterspersecond).ok() } + unsafe { (windows_core::Interface::vtable(this).StartSimulating)(windows_core::Interface::as_raw(this), route.param().abi(), speedinmeterspersecond).ok() } } pub fn StartTracking(&self) -> windows_core::Result<()> { let this = self; @@ -571,12 +571,12 @@ impl GuidanceNavigator { } pub fn GuidanceUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GuidanceUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GuidanceUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGuidanceUpdated(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -585,12 +585,12 @@ impl GuidanceNavigator { } pub fn DestinationReached(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DestinationReached)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DestinationReached)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDestinationReached(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -599,12 +599,12 @@ impl GuidanceNavigator { } pub fn Rerouting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Rerouting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Rerouting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRerouting(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -613,12 +613,12 @@ impl GuidanceNavigator { } pub fn Rerouted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Rerouted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Rerouted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRerouted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -627,12 +627,12 @@ impl GuidanceNavigator { } pub fn RerouteFailed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RerouteFailed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RerouteFailed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRerouteFailed(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -641,12 +641,12 @@ impl GuidanceNavigator { } pub fn UserLocationLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserLocationLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserLocationLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserLocationLost(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -655,12 +655,12 @@ impl GuidanceNavigator { } pub fn UserLocationRestored(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserLocationRestored)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserLocationRestored)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUserLocationRestored(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -674,27 +674,27 @@ impl GuidanceNavigator { #[cfg(feature = "Devices_Geolocation")] pub fn UpdateUserLocation(&self, userlocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateUserLocation)(windows_core::Interface::as_raw(this), userlocation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateUserLocation)(windows_core::Interface::as_raw(this), userlocation.param().abi()).ok() } } #[cfg(feature = "Devices_Geolocation")] pub fn UpdateUserLocationWithPositionOverride(&self, userlocation: P0, positionoverride: super::super::super::Devices::Geolocation::BasicGeoposition) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateUserLocationWithPositionOverride)(windows_core::Interface::as_raw(this), userlocation.into_param().abi(), positionoverride).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateUserLocationWithPositionOverride)(windows_core::Interface::as_raw(this), userlocation.param().abi(), positionoverride).ok() } } pub fn AudioNotificationRequested(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AudioNotificationRequested)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AudioNotificationRequested)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAudioNotificationRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -977,20 +977,20 @@ impl GuidanceRoute { } pub fn CanCreateFromMapRoute(maproute: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGuidanceRouteStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanCreateFromMapRoute)(windows_core::Interface::as_raw(this), maproute.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CanCreateFromMapRoute)(windows_core::Interface::as_raw(this), maproute.param().abi(), &mut result__).map(|| result__) }) } pub fn TryCreateFromMapRoute(maproute: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGuidanceRouteStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateFromMapRoute)(windows_core::Interface::as_raw(this), maproute.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateFromMapRoute)(windows_core::Interface::as_raw(this), maproute.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs index 3d8c6f8010..5a9681fd42 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs @@ -259,11 +259,11 @@ impl LocalLocationFinder { #[cfg(feature = "Devices_Geolocation")] pub fn FindLocalLocationsAsync(searchterm: &windows_core::HSTRING, searcharea: P0, localcategory: &windows_core::HSTRING, maxresults: u32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILocalLocationFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindLocalLocationsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchterm), searcharea.into_param().abi(), core::mem::transmute_copy(localcategory), maxresults, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindLocalLocationsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchterm), searcharea.param().abi(), core::mem::transmute_copy(localcategory), maxresults, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -391,11 +391,11 @@ pub struct PlaceInfoHelper; impl PlaceInfoHelper { pub fn CreateFromLocalLocation(location: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlaceInfoHelperStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromLocalLocation)(windows_core::Interface::as_raw(this), location.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromLocalLocation)(windows_core::Interface::as_raw(this), location.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs index 4dad3bad42..28f53f6051 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs @@ -94,12 +94,12 @@ impl OfflineMapPackage { } pub fn StatusChanged(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn RequestStartDownloadAsync(&self) -> windows_core::Result> { @@ -112,31 +112,31 @@ impl OfflineMapPackage { #[cfg(feature = "Devices_Geolocation")] pub fn FindPackagesAsync(querypoint: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IOfflineMapPackageStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindPackagesAsync)(windows_core::Interface::as_raw(this), querypoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindPackagesAsync)(windows_core::Interface::as_raw(this), querypoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn FindPackagesInBoundingBoxAsync(queryboundingbox: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IOfflineMapPackageStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindPackagesInBoundingBoxAsync)(windows_core::Interface::as_raw(this), queryboundingbox.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindPackagesInBoundingBoxAsync)(windows_core::Interface::as_raw(this), queryboundingbox.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn FindPackagesInGeocircleAsync(querycircle: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IOfflineMapPackageStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindPackagesInGeocircleAsync)(windows_core::Interface::as_raw(this), querycircle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindPackagesInGeocircleAsync)(windows_core::Interface::as_raw(this), querycircle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Services/Maps/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/mod.rs index c2b385da5d..ac725f1b38 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/mod.rs @@ -515,11 +515,11 @@ impl EnhancedWaypoint { #[cfg(feature = "Devices_Geolocation")] pub fn Create(point: P0, kind: WaypointKind) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IEnhancedWaypointFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), point.into_param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), point.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -754,41 +754,41 @@ impl MapLocationFinder { #[cfg(feature = "Devices_Geolocation")] pub fn FindLocationsAtAsync(querypoint: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMapLocationFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindLocationsAtAsync)(windows_core::Interface::as_raw(this), querypoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindLocationsAtAsync)(windows_core::Interface::as_raw(this), querypoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn FindLocationsAsync(searchtext: &windows_core::HSTRING, referencepoint: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMapLocationFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindLocationsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchtext), referencepoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindLocationsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchtext), referencepoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn FindLocationsWithMaxCountAsync(searchtext: &windows_core::HSTRING, referencepoint: P0, maxcount: u32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMapLocationFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindLocationsWithMaxCountAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchtext), referencepoint.into_param().abi(), maxcount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindLocationsWithMaxCountAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchtext), referencepoint.param().abi(), maxcount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn FindLocationsAtWithAccuracyAsync(querypoint: P0, accuracy: MapLocationDesiredAccuracy) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IMapLocationFinderStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindLocationsAtWithAccuracyAsync)(windows_core::Interface::as_raw(this), querypoint.into_param().abi(), accuracy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindLocationsAtWithAccuracyAsync)(windows_core::Interface::as_raw(this), querypoint.param().abi(), accuracy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -985,10 +985,10 @@ impl MapRouteDrivingOptions { } pub fn SetInitialHeading(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInitialHeading)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialHeading)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RouteOptimization(&self) -> windows_core::Result { let this = self; @@ -1021,10 +1021,10 @@ impl MapRouteDrivingOptions { } pub fn SetDepartureTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDepartureTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDepartureTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for MapRouteDrivingOptions { @@ -1044,139 +1044,139 @@ impl MapRouteFinder { #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteAsync(startpoint: P0, endpoint: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteAsync)(windows_core::Interface::as_raw(this), startpoint.into_param().abi(), endpoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteWithOptimizationAsync(startpoint: P0, endpoint: P1, optimization: MapRouteOptimization) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteWithOptimizationAsync)(windows_core::Interface::as_raw(this), startpoint.into_param().abi(), endpoint.into_param().abi(), optimization, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteWithOptimizationAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), optimization, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteWithOptimizationAndRestrictionsAsync(startpoint: P0, endpoint: P1, optimization: MapRouteOptimization, restrictions: MapRouteRestrictions) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteWithOptimizationAndRestrictionsAsync)(windows_core::Interface::as_raw(this), startpoint.into_param().abi(), endpoint.into_param().abi(), optimization, restrictions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteWithOptimizationAndRestrictionsAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), optimization, restrictions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync(startpoint: P0, endpoint: P1, optimization: MapRouteOptimization, restrictions: MapRouteRestrictions, headingindegrees: f64) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync)(windows_core::Interface::as_raw(this), startpoint.into_param().abi(), endpoint.into_param().abi(), optimization, restrictions, headingindegrees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), optimization, restrictions, headingindegrees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetDrivingRouteFromWaypointsAsync(waypoints: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetDrivingRouteFromWaypointsAndOptimizationAsync(waypoints: P0, optimization: MapRouteOptimization) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAndOptimizationAsync)(windows_core::Interface::as_raw(this), waypoints.into_param().abi(), optimization, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAndOptimizationAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), optimization, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync(waypoints: P0, optimization: MapRouteOptimization, restrictions: MapRouteRestrictions) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync)(windows_core::Interface::as_raw(this), waypoints.into_param().abi(), optimization, restrictions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), optimization, restrictions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync(waypoints: P0, optimization: MapRouteOptimization, restrictions: MapRouteRestrictions, headingindegrees: f64) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync)(windows_core::Interface::as_raw(this), waypoints.into_param().abi(), optimization, restrictions, headingindegrees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), optimization, restrictions, headingindegrees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn GetWalkingRouteAsync(startpoint: P0, endpoint: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetWalkingRouteAsync)(windows_core::Interface::as_raw(this), startpoint.into_param().abi(), endpoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetWalkingRouteAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetWalkingRouteFromWaypointsAsync(waypoints: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetWalkingRouteFromWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetWalkingRouteFromWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteWithOptionsAsync(startpoint: P0, endpoint: P1, options: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IMapRouteFinderStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteWithOptionsAsync)(windows_core::Interface::as_raw(this), startpoint.into_param().abi(), endpoint.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteWithOptionsAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn GetDrivingRouteFromEnhancedWaypointsAsync(waypoints: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync(waypoints: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { Self::IMapRouteFinderStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync)(windows_core::Interface::as_raw(this), waypoints.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1500,22 +1500,22 @@ impl PlaceInfo { #[cfg(feature = "Devices_Geolocation")] pub fn Create(referencepoint: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlaceInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), referencepoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), referencepoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn CreateWithGeopointAndOptions(referencepoint: P0, options: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IPlaceInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithGeopointAndOptions)(windows_core::Interface::as_raw(this), referencepoint.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithGeopointAndOptions)(windows_core::Interface::as_raw(this), referencepoint.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromIdentifier(identifier: &windows_core::HSTRING) -> windows_core::Result { @@ -1527,21 +1527,21 @@ impl PlaceInfo { #[cfg(feature = "Devices_Geolocation")] pub fn CreateFromIdentifierWithOptions(identifier: &windows_core::HSTRING, defaultpoint: P0, options: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IPlaceInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIdentifierWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(identifier), defaultpoint.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIdentifierWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(identifier), defaultpoint.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromMapLocation(location: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlaceInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromMapLocation)(windows_core::Interface::as_raw(this), location.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromMapLocation)(windows_core::Interface::as_raw(this), location.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsShowSupported() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Services/Store/mod.rs b/crates/libs/windows/src/Windows/Services/Store/mod.rs index fa9a6786b9..45ec601743 100644 --- a/crates/libs/windows/src/Windows/Services/Store/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Store/mod.rs @@ -823,12 +823,12 @@ impl StoreAvailability { } pub fn RequestPurchaseWithPurchasePropertiesAsync(&self, storepurchaseproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), storepurchaseproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), storepurchaseproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1018,12 +1018,12 @@ impl StoreContext { } pub fn OfflineLicensesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OfflineLicensesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OfflineLicensesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOfflineLicensesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1061,57 +1061,57 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn GetStoreProductsAsync(&self, productkinds: P0, storeids: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStoreProductsAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), storeids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStoreProductsAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), storeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsAsync(&self, productkinds: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAssociatedStoreProductsAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAssociatedStoreProductsAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsWithPagingAsync(&self, productkinds: P0, maxitemstoretrieveperpage: u32) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAssociatedStoreProductsWithPagingAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), maxitemstoretrieveperpage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAssociatedStoreProductsWithPagingAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), maxitemstoretrieveperpage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetUserCollectionAsync(&self, productkinds: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetUserCollectionAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetUserCollectionAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetUserCollectionWithPagingAsync(&self, productkinds: P0, maxitemstoretrieveperpage: u32) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetUserCollectionWithPagingAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), maxitemstoretrieveperpage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetUserCollectionWithPagingAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), maxitemstoretrieveperpage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ReportConsumableFulfillmentAsync(&self, productstoreid: &windows_core::HSTRING, quantity: u32, trackingid: windows_core::GUID) -> windows_core::Result> { @@ -1131,12 +1131,12 @@ impl StoreContext { #[cfg(feature = "ApplicationModel")] pub fn AcquireStoreLicenseForOptionalPackageAsync(&self, optionalpackage: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcquireStoreLicenseForOptionalPackageAsync)(windows_core::Interface::as_raw(this), optionalpackage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AcquireStoreLicenseForOptionalPackageAsync)(windows_core::Interface::as_raw(this), optionalpackage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestPurchaseAsync(&self, storeid: &windows_core::HSTRING) -> windows_core::Result> { @@ -1148,12 +1148,12 @@ impl StoreContext { } pub fn RequestPurchaseWithPurchasePropertiesAsync(&self, storeid: &windows_core::HSTRING, storepurchaseproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(storeid), storepurchaseproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(storeid), storepurchaseproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -1167,46 +1167,46 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestDownloadStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestDownloadStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackagesAsync(&self, storeids: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesAsync)(windows_core::Interface::as_raw(this), storeids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesAsync)(windows_core::Interface::as_raw(this), storeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindStoreProductForPackageAsync(&self, productkinds: P0, package: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindStoreProductForPackageAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), package.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindStoreProductForPackageAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), package.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CanSilentlyDownloadStorePackageUpdates(&self) -> windows_core::Result { @@ -1219,34 +1219,34 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn TrySilentDownloadStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySilentDownloadStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySilentDownloadStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn TrySilentDownloadAndInstallStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySilentDownloadAndInstallStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySilentDownloadAndInstallStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "ApplicationModel")] pub fn CanAcquireStoreLicenseForOptionalPackageAsync(&self, optionalpackage: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanAcquireStoreLicenseForOptionalPackageAsync)(windows_core::Interface::as_raw(this), optionalpackage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CanAcquireStoreLicenseForOptionalPackageAsync)(windows_core::Interface::as_raw(this), optionalpackage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CanAcquireStoreLicenseAsync(&self, productstoreid: &windows_core::HSTRING) -> windows_core::Result> { @@ -1259,14 +1259,14 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn GetStoreProductsWithOptionsAsync(&self, productkinds: P0, storeids: P1, storeproductoptions: P2) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStoreProductsWithOptionsAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), storeids.into_param().abi(), storeproductoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStoreProductsWithOptionsAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), storeids.param().abi(), storeproductoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -1280,46 +1280,46 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn GetStoreQueueItemsAsync(&self, storeids: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStoreQueueItemsAsync)(windows_core::Interface::as_raw(this), storeids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStoreQueueItemsAsync)(windows_core::Interface::as_raw(this), storeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync(&self, storeids: P0, storepackageinstalloptions: P1) -> windows_core::Result> where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam, + P0: windows_core::Param>, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync)(windows_core::Interface::as_raw(this), storeids.into_param().abi(), storepackageinstalloptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync)(windows_core::Interface::as_raw(this), storeids.param().abi(), storepackageinstalloptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn DownloadAndInstallStorePackagesAsync(&self, storeids: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadAndInstallStorePackagesAsync)(windows_core::Interface::as_raw(this), storeids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DownloadAndInstallStorePackagesAsync)(windows_core::Interface::as_raw(this), storeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "ApplicationModel")] pub fn RequestUninstallStorePackageAsync(&self, package: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestUninstallStorePackageAsync)(windows_core::Interface::as_raw(this), package.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestUninstallStorePackageAsync)(windows_core::Interface::as_raw(this), package.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestUninstallStorePackageByStoreIdAsync(&self, storeid: &windows_core::HSTRING) -> windows_core::Result> { @@ -1332,12 +1332,12 @@ impl StoreContext { #[cfg(feature = "ApplicationModel")] pub fn UninstallStorePackageAsync(&self, package: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UninstallStorePackageAsync)(windows_core::Interface::as_raw(this), package.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UninstallStorePackageAsync)(windows_core::Interface::as_raw(this), package.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UninstallStorePackageByStoreIdAsync(&self, storeid: &windows_core::HSTRING) -> windows_core::Result> { @@ -1357,34 +1357,34 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn SetInstallOrderForAssociatedStoreQueueItemsAsync(&self, items: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetInstallOrderForAssociatedStoreQueueItemsAsync)(windows_core::Interface::as_raw(this), items.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetInstallOrderForAssociatedStoreQueueItemsAsync)(windows_core::Interface::as_raw(this), items.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetUserPurchaseHistoryAsync(&self, productkinds: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetUserPurchaseHistoryAsync)(windows_core::Interface::as_raw(this), productkinds.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetUserPurchaseHistoryAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsByInAppOfferTokenAsync(&self, inappoffertokens: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAssociatedStoreProductsByInAppOfferTokenAsync)(windows_core::Interface::as_raw(this), inappoffertokens.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAssociatedStoreProductsByInAppOfferTokenAsync)(windows_core::Interface::as_raw(this), inappoffertokens.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestPurchaseByInAppOfferTokenAsync(&self, inappoffertoken: &windows_core::HSTRING) -> windows_core::Result> { @@ -1403,11 +1403,11 @@ impl StoreContext { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreContextStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1582,12 +1582,12 @@ impl StorePackageLicense { } pub fn LicenseLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LicenseLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLicenseLost(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1904,12 +1904,12 @@ impl StoreProduct { } pub fn RequestPurchaseWithPurchasePropertiesAsync(&self, storepurchaseproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), storepurchaseproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), storepurchaseproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn InAppOfferToken(&self) -> windows_core::Result { @@ -2202,12 +2202,12 @@ impl StoreQueueItem { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2216,12 +2216,12 @@ impl StoreQueueItem { } pub fn StatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2383,11 +2383,11 @@ pub struct StoreRequestHelper; impl StoreRequestHelper { pub fn SendRequestAsync(context: P0, requestkind: u32, parametersasjson: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStoreRequestHelperStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), context.into_param().abi(), requestkind, core::mem::transmute_copy(parametersasjson), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), context.param().abi(), requestkind, core::mem::transmute_copy(parametersasjson), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2562,12 +2562,12 @@ impl StoreSku { } pub fn RequestPurchaseWithPurchasePropertiesAsync(&self, storepurchaseproperties: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), storepurchaseproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), storepurchaseproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsSubscription(&self) -> windows_core::Result { @@ -2990,7 +2990,7 @@ impl core::fmt::Debug for StorePackageUpdateStatus { } } impl windows_core::TypeKind for StorePackageUpdateStatus { - type TypeKind = windows_core::ValueType; + type TypeKind = windows_core::CloneType; } impl windows_core::RuntimeType for StorePackageUpdateStatus { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Services.Store.StorePackageUpdateStatus;string;u8;u8;f8;f8;enum(Windows.Services.Store.StorePackageUpdateState;i4))"); diff --git a/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs b/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs index d922e73911..6070e5cabd 100644 --- a/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs +++ b/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs @@ -695,12 +695,12 @@ impl TargetedContentSubscription { } pub fn ContentChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContentChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -709,12 +709,12 @@ impl TargetedContentSubscription { } pub fn AvailabilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AvailabilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAvailabilityChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -723,12 +723,12 @@ impl TargetedContentSubscription { } pub fn StateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStateChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs b/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs index e8e2f86f37..6fd9269f4d 100644 --- a/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs @@ -38,37 +38,37 @@ windows_core::imp::interface_hierarchy!(IStorageItemAccessList, windows_core::IU impl IStorageItemAccessList { pub fn AddOverloadDefaultMetadata(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Add(&self, file: P0, metadata: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(metadata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(metadata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AddOrReplaceOverloadDefaultMetadata(&self, token: &windows_core::HSTRING, file: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.param().abi()).ok() } } pub fn AddOrReplace(&self, token: &windows_core::HSTRING, file: P0, metadata: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOrReplace)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.into_param().abi(), core::mem::transmute_copy(metadata)).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOrReplace)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.param().abi(), core::mem::transmute_copy(metadata)).ok() } } pub fn GetItemAsync(&self, token: &windows_core::HSTRING) -> windows_core::Result> { let this = self; @@ -129,12 +129,12 @@ impl IStorageItemAccessList { } pub fn CheckAccess(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -236,12 +236,12 @@ impl AccessListEntryView { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -322,21 +322,21 @@ impl StorageApplicationPermissions { #[cfg(feature = "System")] pub fn GetFutureAccessListForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageApplicationPermissionsStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFutureAccessListForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFutureAccessListForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn GetMostRecentlyUsedListForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageApplicationPermissionsStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMostRecentlyUsedListForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMostRecentlyUsedListForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -361,37 +361,37 @@ windows_core::imp::required_hierarchy!(StorageItemAccessList, IStorageItemAccess impl StorageItemAccessList { pub fn AddOverloadDefaultMetadata(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Add(&self, file: P0, metadata: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(metadata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(metadata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AddOrReplaceOverloadDefaultMetadata(&self, token: &windows_core::HSTRING, file: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.param().abi()).ok() } } pub fn AddOrReplace(&self, token: &windows_core::HSTRING, file: P0, metadata: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddOrReplace)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.into_param().abi(), core::mem::transmute_copy(metadata)).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOrReplace)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.param().abi(), core::mem::transmute_copy(metadata)).ok() } } pub fn GetItemAsync(&self, token: &windows_core::HSTRING) -> windows_core::Result> { let this = self; @@ -452,12 +452,12 @@ impl StorageItemAccessList { } pub fn CheckAccess(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -494,37 +494,37 @@ windows_core::imp::required_hierarchy!(StorageItemMostRecentlyUsedList, IStorage impl StorageItemMostRecentlyUsedList { pub fn AddOverloadDefaultMetadata(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Add(&self, file: P0, metadata: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(metadata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(metadata), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AddOrReplaceOverloadDefaultMetadata(&self, token: &windows_core::HSTRING, file: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.param().abi()).ok() } } pub fn AddOrReplace(&self, token: &windows_core::HSTRING, file: P0, metadata: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOrReplace)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.into_param().abi(), core::mem::transmute_copy(metadata)).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOrReplace)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.param().abi(), core::mem::transmute_copy(metadata)).ok() } } pub fn GetItemAsync(&self, token: &windows_core::HSTRING) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -585,12 +585,12 @@ impl StorageItemMostRecentlyUsedList { } pub fn CheckAccess(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -610,12 +610,12 @@ impl StorageItemMostRecentlyUsedList { } pub fn ItemRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemRemoved(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -624,20 +624,20 @@ impl StorageItemMostRecentlyUsedList { } pub fn AddWithMetadataAndVisibility(&self, file: P0, metadata: &windows_core::HSTRING, visibility: RecentStorageItemVisibility) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddWithMetadataAndVisibility)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(metadata), visibility, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddWithMetadataAndVisibility)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(metadata), visibility, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn AddOrReplaceWithMetadataAndVisibility(&self, token: &windows_core::HSTRING, file: P0, metadata: &windows_core::HSTRING, visibility: RecentStorageItemVisibility) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddOrReplaceWithMetadataAndVisibility)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.into_param().abi(), core::mem::transmute_copy(metadata), visibility).ok() } + unsafe { (windows_core::Interface::vtable(this).AddOrReplaceWithMetadataAndVisibility)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(token), file.param().abi(), core::mem::transmute_copy(metadata), visibility).ok() } } } impl windows_core::RuntimeType for StorageItemMostRecentlyUsedList { @@ -738,7 +738,7 @@ impl core::fmt::Debug for AccessListEntry { } } impl windows_core::TypeKind for AccessListEntry { - type TypeKind = windows_core::ValueType; + type TypeKind = windows_core::CloneType; } impl windows_core::RuntimeType for AccessListEntry { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Storage.AccessCache.AccessListEntry;string;string)"); diff --git a/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs b/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs index 6f8d96cf03..1ac826ee24 100644 --- a/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs @@ -110,12 +110,12 @@ impl IStorageItemInformation { } pub fn ThumbnailUpdated(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ThumbnailUpdated)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ThumbnailUpdated)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveThumbnailUpdated(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -124,12 +124,12 @@ impl IStorageItemInformation { } pub fn PropertiesUpdated(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PropertiesUpdated)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PropertiesUpdated)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePropertiesUpdated(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -226,82 +226,82 @@ impl FileInformation { } pub fn CopyOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyOverload(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING, option: super::NameCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverload)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverload)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyAndReplaceAsync(&self, filetoreplace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverload(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING, option: super::NameCollisionOption) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverload)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverload)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveAndReplaceAsync(&self, filetoreplace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -406,12 +406,12 @@ impl FileInformation { } pub fn IsEqual(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_FileProperties")] @@ -464,12 +464,12 @@ impl FileInformation { } pub fn ThumbnailUpdated(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ThumbnailUpdated)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ThumbnailUpdated)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveThumbnailUpdated(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -478,12 +478,12 @@ impl FileInformation { } pub fn PropertiesUpdated(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PropertiesUpdated)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PropertiesUpdated)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePropertiesUpdated(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -638,41 +638,41 @@ impl FileInformationFactory { #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Search"))] pub fn CreateWithMode(queryresult: P0, mode: super::FileProperties::ThumbnailMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithMode)(windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithMode)(windows_core::Interface::as_raw(this), queryresult.param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Search"))] pub fn CreateWithModeAndSize(queryresult: P0, mode: super::FileProperties::ThumbnailMode, requestedthumbnailsize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithModeAndSize)(windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, requestedthumbnailsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithModeAndSize)(windows_core::Interface::as_raw(this), queryresult.param().abi(), mode, requestedthumbnailsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Search"))] pub fn CreateWithModeAndSizeAndOptions(queryresult: P0, mode: super::FileProperties::ThumbnailMode, requestedthumbnailsize: u32, thumbnailoptions: super::FileProperties::ThumbnailOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptions)(windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, requestedthumbnailsize, thumbnailoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptions)(windows_core::Interface::as_raw(this), queryresult.param().abi(), mode, requestedthumbnailsize, thumbnailoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Search"))] pub fn CreateWithModeAndSizeAndOptionsAndFlags(queryresult: P0, mode: super::FileProperties::ThumbnailMode, requestedthumbnailsize: u32, thumbnailoptions: super::FileProperties::ThumbnailOptions, delayload: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptionsAndFlags)(windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, requestedthumbnailsize, thumbnailoptions, delayload, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptionsAndFlags)(windows_core::Interface::as_raw(this), queryresult.param().abi(), mode, requestedthumbnailsize, thumbnailoptions, delayload, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -807,12 +807,12 @@ impl FolderInformation { #[cfg(feature = "Storage_Search")] pub fn CreateFileQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Search")] @@ -834,12 +834,12 @@ impl FolderInformation { #[cfg(feature = "Storage_Search")] pub fn CreateFolderQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFolderQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFolderQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Search")] @@ -853,12 +853,12 @@ impl FolderInformation { #[cfg(feature = "Storage_Search")] pub fn CreateItemQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] @@ -904,12 +904,12 @@ impl FolderInformation { #[cfg(feature = "Storage_Search")] pub fn AreQueryOptionsSupported(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AreQueryOptionsSupported)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AreQueryOptionsSupported)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Search")] @@ -1008,12 +1008,12 @@ impl FolderInformation { } pub fn IsEqual(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_FileProperties")] @@ -1066,12 +1066,12 @@ impl FolderInformation { } pub fn ThumbnailUpdated(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ThumbnailUpdated)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ThumbnailUpdated)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveThumbnailUpdated(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1080,12 +1080,12 @@ impl FolderInformation { } pub fn PropertiesUpdated(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PropertiesUpdated)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PropertiesUpdated)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePropertiesUpdated(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Storage/Compression/mod.rs b/crates/libs/windows/src/Windows/Storage/Compression/mod.rs index 0491b93f73..5a82f23986 100644 --- a/crates/libs/windows/src/Windows/Storage/Compression/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Compression/mod.rs @@ -80,32 +80,32 @@ impl Compressor { #[cfg(feature = "Storage_Streams")] pub fn CreateCompressor(underlyingstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompressorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCompressor)(windows_core::Interface::as_raw(this), underlyingstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCompressor)(windows_core::Interface::as_raw(this), underlyingstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateCompressorEx(underlyingstream: P0, algorithm: CompressAlgorithm, blocksize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompressorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCompressorEx)(windows_core::Interface::as_raw(this), underlyingstream.into_param().abi(), algorithm, blocksize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCompressorEx)(windows_core::Interface::as_raw(this), underlyingstream.param().abi(), algorithm, blocksize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -156,22 +156,22 @@ impl Decompressor { #[cfg(feature = "Storage_Streams")] pub fn CreateDecompressor(underlyingstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDecompressorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDecompressor)(windows_core::Interface::as_raw(this), underlyingstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDecompressor)(windows_core::Interface::as_raw(this), underlyingstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, buffer: P0, count: u32, options: super::Streams::InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs b/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs index 3aad2df15a..6b21c2edf2 100644 --- a/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs @@ -146,23 +146,23 @@ impl IStorageItemExtraProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result { @@ -272,23 +272,23 @@ impl BasicProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result { @@ -356,23 +356,23 @@ impl DocumentProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result { @@ -398,33 +398,33 @@ impl GeotagHelper { #[cfg(feature = "Devices_Geolocation")] pub fn GetGeotagAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGeotagHelperStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetGeotagAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetGeotagAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn SetGeotagFromGeolocatorAsync(file: P0, geolocator: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IGeotagHelperStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetGeotagFromGeolocatorAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), geolocator.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetGeotagFromGeolocatorAsync)(windows_core::Interface::as_raw(this), file.param().abi(), geolocator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Devices_Geolocation")] pub fn SetGeotagAsync(file: P0, geopoint: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IGeotagHelperStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetGeotagAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), geopoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetGeotagAsync)(windows_core::Interface::as_raw(this), file.param().abi(), geopoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -551,23 +551,23 @@ impl ImageProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result { @@ -750,23 +750,23 @@ impl MusicProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result { @@ -824,23 +824,23 @@ impl StorageItemContentProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result { @@ -886,23 +886,23 @@ impl StorageItemThumbnail { #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, buffer: P0, count: u32, options: super::Streams::InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -1030,23 +1030,23 @@ impl VideoProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SavePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestosave.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs b/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs index dd8c035266..594e7d7dfd 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs @@ -129,12 +129,12 @@ windows_core::imp::interface_hierarchy!(FileOpenPickerUI, windows_core::IUnknown impl FileOpenPickerUI { pub fn AddFile(&self, id: &windows_core::HSTRING, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddFile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), file.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AddFile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), file.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFile(&self, id: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -150,12 +150,12 @@ impl FileOpenPickerUI { } pub fn CanAddFile(&self, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanAddFile)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CanAddFile)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -194,12 +194,12 @@ impl FileOpenPickerUI { #[cfg(feature = "deprecated")] pub fn FileRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FileRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FileRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -209,12 +209,12 @@ impl FileOpenPickerUI { } pub fn Closing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosing(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -309,12 +309,12 @@ impl FileSavePickerUI { } pub fn FileNameChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FileNameChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FileNameChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFileNameChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -323,12 +323,12 @@ impl FileSavePickerUI { } pub fn TargetFileRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TargetFileRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TargetFileRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTargetFileRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -440,10 +440,10 @@ impl TargetFileRequest { } pub fn SetTargetFile(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTargetFile)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTargetFile)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GetDeferral(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs index 82b7e16e82..7474453cdb 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs @@ -468,11 +468,11 @@ impl FileOpenPicker { #[cfg(feature = "System")] pub fn CreateForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileOpenPickerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn PickSingleFileAsync2(&self, pickeroperationid: &windows_core::HSTRING) -> windows_core::Result> { @@ -558,12 +558,12 @@ impl FilePickerFileTypesOrderedMap { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -647,12 +647,12 @@ impl FilePickerSelectedFilesArray { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -770,10 +770,10 @@ impl FileSavePicker { } pub fn SetSuggestedSaveFile(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSuggestedSaveFile)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSuggestedSaveFile)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SuggestedFileName(&self) -> windows_core::Result { let this = self; @@ -828,11 +828,11 @@ impl FileSavePicker { #[cfg(feature = "System")] pub fn CreateForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileSavePickerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -948,11 +948,11 @@ impl FolderPicker { #[cfg(feature = "System")] pub fn CreateForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFolderPickerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Storage/Provider/mod.rs b/crates/libs/windows/src/Windows/Storage/Provider/mod.rs index 8eb8e73958..091e3bd9f8 100644 --- a/crates/libs/windows/src/Windows/Storage/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Provider/mod.rs @@ -221,12 +221,12 @@ impl IStorageProviderKnownFolderSyncInfoSource { } pub fn KnownFolderSyncInfoChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KnownFolderSyncInfoChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KnownFolderSyncInfoChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKnownFolderSyncInfoChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -371,12 +371,12 @@ impl IStorageProviderStatusUISource { } pub fn StatusUIChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusUIChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StatusUIChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStatusUIChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -561,17 +561,17 @@ windows_core::imp::interface_hierarchy!(IStorageProviderUriSource, windows_core: impl IStorageProviderUriSource { pub fn GetPathForContentUri(&self, contenturi: &windows_core::HSTRING, result: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).GetPathForContentUri)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(contenturi), result.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).GetPathForContentUri)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(contenturi), result.param().abi()).ok() } } pub fn GetContentInfoForPath(&self, path: &windows_core::HSTRING, result: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).GetContentInfoForPath)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(path), result.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).GetContentInfoForPath)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(path), result.param().abi()).ok() } } } impl windows_core::RuntimeType for IStorageProviderUriSource { @@ -587,9 +587,9 @@ pub struct CachedFileUpdater; impl CachedFileUpdater { pub fn SetUpdateInformation(file: P0, contentid: &windows_core::HSTRING, readmode: ReadActivationMode, writemode: WriteActivationMode, options: CachedFileOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ICachedFileUpdaterStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetUpdateInformation)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(contentid), readmode, writemode, options).ok() }) + Self::ICachedFileUpdaterStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetUpdateInformation)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(contentid), readmode, writemode, options).ok() }) } #[doc(hidden)] pub fn ICachedFileUpdaterStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -625,12 +625,12 @@ impl CachedFileUpdaterUI { } pub fn FileUpdateRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FileUpdateRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FileUpdateRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFileUpdateRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -639,12 +639,12 @@ impl CachedFileUpdaterUI { } pub fn UIRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UIRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UIRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUIRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -722,10 +722,10 @@ impl FileUpdateRequest { } pub fn UpdateLocalFile(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateLocalFile)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateLocalFile)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn UserInputNeededMessage(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -945,12 +945,12 @@ impl StorageProviderItemProperties { #[cfg(feature = "Foundation_Collections")] pub fn SetAsync(item: P0, itemproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IStorageProviderItemPropertiesStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAsync)(windows_core::Interface::as_raw(this), item.into_param().abi(), itemproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAsync)(windows_core::Interface::as_raw(this), item.param().abi(), itemproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1154,10 +1154,10 @@ impl StorageProviderKnownFolderSyncInfo { } pub fn SetSyncRequested(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSyncRequested)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSyncRequested)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for StorageProviderKnownFolderSyncInfo { @@ -1237,10 +1237,10 @@ impl StorageProviderMoreInfoUI { } pub fn SetCommand(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCommand)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCommand)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for StorageProviderMoreInfoUI { @@ -1311,10 +1311,10 @@ impl StorageProviderQuotaUI { #[cfg(feature = "UI")] pub fn SetQuotaUsedColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetQuotaUsedColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetQuotaUsedColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for StorageProviderQuotaUI { @@ -1372,10 +1372,10 @@ impl StorageProviderStatusUI { } pub fn SetProviderStateIcon(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProviderStateIcon)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProviderStateIcon)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SyncStatusCommand(&self) -> windows_core::Result { let this = self; @@ -1386,10 +1386,10 @@ impl StorageProviderStatusUI { } pub fn SetSyncStatusCommand(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSyncStatusCommand)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSyncStatusCommand)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn QuotaUI(&self) -> windows_core::Result { let this = self; @@ -1400,10 +1400,10 @@ impl StorageProviderStatusUI { } pub fn SetQuotaUI(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetQuotaUI)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetQuotaUI)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MoreInfoUI(&self) -> windows_core::Result { let this = self; @@ -1414,10 +1414,10 @@ impl StorageProviderStatusUI { } pub fn SetMoreInfoUI(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMoreInfoUI)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMoreInfoUI)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProviderPrimaryCommand(&self) -> windows_core::Result { let this = self; @@ -1428,10 +1428,10 @@ impl StorageProviderStatusUI { } pub fn SetProviderPrimaryCommand(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProviderPrimaryCommand)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProviderPrimaryCommand)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ProviderSecondaryCommands(&self) -> windows_core::Result> { @@ -1444,10 +1444,10 @@ impl StorageProviderStatusUI { #[cfg(feature = "Foundation_Collections")] pub fn SetProviderSecondaryCommands(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProviderSecondaryCommands)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProviderSecondaryCommands)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for StorageProviderStatusUI { @@ -1496,10 +1496,10 @@ impl StorageProviderSyncRootInfo { #[cfg(feature = "Storage_Streams")] pub fn SetContext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContext)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContext)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Path(&self) -> windows_core::Result { let this = self; @@ -1510,10 +1510,10 @@ impl StorageProviderSyncRootInfo { } pub fn SetPath(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPath)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPath)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn DisplayNameResource(&self) -> windows_core::Result { let this = self; @@ -1653,10 +1653,10 @@ impl StorageProviderSyncRootInfo { } pub fn SetRecycleBinUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRecycleBinUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRecycleBinUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProviderId(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1694,20 +1694,20 @@ pub struct StorageProviderSyncRootManager; impl StorageProviderSyncRootManager { pub fn Register(syncrootinformation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IStorageProviderSyncRootManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), syncrootinformation.into_param().abi()).ok() }) + Self::IStorageProviderSyncRootManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), syncrootinformation.param().abi()).ok() }) } pub fn Unregister(id: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IStorageProviderSyncRootManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).Unregister)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id)).ok() }) } pub fn GetSyncRootInformationForFolder(folder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageProviderSyncRootManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSyncRootInformationForFolder)(windows_core::Interface::as_raw(this), folder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSyncRootInformationForFolder)(windows_core::Interface::as_raw(this), folder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetSyncRootInformationForId(id: &windows_core::HSTRING) -> windows_core::Result { @@ -2202,10 +2202,10 @@ impl StorageProviderKnownFolderSyncRequestedHandler { } pub fn Invoke(&self, args: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), args.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Storage/Search/mod.rs b/crates/libs/windows/src/Windows/Storage/Search/mod.rs index d9a3875b78..668eeb2790 100644 --- a/crates/libs/windows/src/Windows/Storage/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Search/mod.rs @@ -108,10 +108,10 @@ impl IIndexableContent { #[cfg(feature = "Storage_Streams")] pub fn SetStream(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStream)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStream)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StreamContentType(&self) -> windows_core::Result { let this = self; @@ -265,12 +265,12 @@ impl IStorageFolderQueryOperations { } pub fn CreateFileQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateFolderQueryOverloadDefault(&self) -> windows_core::Result { @@ -289,12 +289,12 @@ impl IStorageFolderQueryOperations { } pub fn CreateFolderQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFolderQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFolderQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateItemQuery(&self) -> windows_core::Result { @@ -306,12 +306,12 @@ impl IStorageFolderQueryOperations { } pub fn CreateItemQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -356,12 +356,12 @@ impl IStorageFolderQueryOperations { } pub fn AreQueryOptionsSupported(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AreQueryOptionsSupported)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AreQueryOptionsSupported)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).map(|| result__) } } pub fn IsCommonFolderQuerySupported(&self, query: CommonFolderQuery) -> windows_core::Result { @@ -489,12 +489,12 @@ impl IStorageQueryResultBase { } pub fn ContentsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContentsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -503,12 +503,12 @@ impl IStorageQueryResultBase { } pub fn OptionsChanged(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOptionsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -517,12 +517,12 @@ impl IStorageQueryResultBase { } pub fn FindStartIndexAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetCurrentQueryOptions(&self) -> windows_core::Result { @@ -534,10 +534,10 @@ impl IStorageQueryResultBase { } pub fn ApplyNewQueryOptions(&self, newqueryoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.param().abi()).ok() } } } impl windows_core::RuntimeType for IStorageQueryResultBase { @@ -575,22 +575,22 @@ windows_core::imp::interface_hierarchy!(ContentIndexer, windows_core::IUnknown, impl ContentIndexer { pub fn AddAsync(&self, indexablecontent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddAsync)(windows_core::Interface::as_raw(this), indexablecontent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AddAsync)(windows_core::Interface::as_raw(this), indexablecontent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn UpdateAsync(&self, indexablecontent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateAsync)(windows_core::Interface::as_raw(this), indexablecontent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateAsync)(windows_core::Interface::as_raw(this), indexablecontent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteAsync(&self, contentid: &windows_core::HSTRING) -> windows_core::Result { @@ -603,12 +603,12 @@ impl ContentIndexer { #[cfg(feature = "Foundation_Collections")] pub fn DeleteMultipleAsync(&self, contentids: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteMultipleAsync)(windows_core::Interface::as_raw(this), contentids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteMultipleAsync)(windows_core::Interface::as_raw(this), contentids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DeleteAllAsync(&self) -> windows_core::Result { @@ -621,12 +621,12 @@ impl ContentIndexer { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, contentid: &windows_core::HSTRING, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(contentid), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(contentid), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Revision(&self) -> windows_core::Result { @@ -639,36 +639,36 @@ impl ContentIndexer { #[cfg(feature = "Foundation_Collections")] pub fn CreateQueryWithSortOrderAndLanguage(&self, searchfilter: &windows_core::HSTRING, propertiestoretrieve: P0, sortorder: P1, searchfilterlanguage: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateQueryWithSortOrderAndLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.into_param().abi(), sortorder.into_param().abi(), core::mem::transmute_copy(searchfilterlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateQueryWithSortOrderAndLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.param().abi(), sortorder.param().abi(), core::mem::transmute_copy(searchfilterlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn CreateQueryWithSortOrder(&self, searchfilter: &windows_core::HSTRING, propertiestoretrieve: P0, sortorder: P1) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateQueryWithSortOrder)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.into_param().abi(), sortorder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateQueryWithSortOrder)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.param().abi(), sortorder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn CreateQuery(&self, searchfilter: &windows_core::HSTRING, propertiestoretrieve: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateQuery)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateQuery)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetIndexerWithName(indexname: &windows_core::HSTRING) -> windows_core::Result { @@ -808,10 +808,10 @@ impl IndexableContent { #[cfg(feature = "Storage_Streams")] pub fn SetStream(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStream)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStream)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StreamContentType(&self) -> windows_core::Result { let this = self; @@ -953,19 +953,19 @@ impl QueryOptions { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties"))] pub fn SetPropertyPrefetch(&self, options: super::FileProperties::PropertyPrefetchOptions, propertiestoretrieve: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPropertyPrefetch)(windows_core::Interface::as_raw(this), options, propertiestoretrieve.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPropertyPrefetch)(windows_core::Interface::as_raw(this), options, propertiestoretrieve.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn CreateCommonFileQuery(query: CommonFileQuery, filetypefilter: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IQueryOptionsFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCommonFileQuery)(windows_core::Interface::as_raw(this), query, filetypefilter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCommonFileQuery)(windows_core::Interface::as_raw(this), query, filetypefilter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateCommonFolderQuery(query: CommonFolderQuery) -> windows_core::Result { @@ -1045,29 +1045,29 @@ impl SortEntryVector { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -1077,10 +1077,10 @@ impl SortEntryVector { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -1160,12 +1160,12 @@ impl StorageFileQueryResult { #[cfg(all(feature = "Data_Text", feature = "Foundation_Collections"))] pub fn GetMatchingPropertiesWithRanges(&self, file: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMatchingPropertiesWithRanges)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetMatchingPropertiesWithRanges)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetItemCountAsync(&self) -> windows_core::Result> { @@ -1184,12 +1184,12 @@ impl StorageFileQueryResult { } pub fn ContentsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContentsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1198,12 +1198,12 @@ impl StorageFileQueryResult { } pub fn OptionsChanged(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOptionsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1212,12 +1212,12 @@ impl StorageFileQueryResult { } pub fn FindStartIndexAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetCurrentQueryOptions(&self) -> windows_core::Result { @@ -1229,10 +1229,10 @@ impl StorageFileQueryResult { } pub fn ApplyNewQueryOptions(&self, newqueryoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.param().abi()).ok() } } } impl windows_core::RuntimeType for StorageFileQueryResult { @@ -1283,12 +1283,12 @@ impl StorageFolderQueryResult { } pub fn ContentsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContentsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1297,12 +1297,12 @@ impl StorageFolderQueryResult { } pub fn OptionsChanged(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOptionsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1311,12 +1311,12 @@ impl StorageFolderQueryResult { } pub fn FindStartIndexAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetCurrentQueryOptions(&self) -> windows_core::Result { @@ -1328,10 +1328,10 @@ impl StorageFolderQueryResult { } pub fn ApplyNewQueryOptions(&self, newqueryoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.param().abi()).ok() } } } impl windows_core::RuntimeType for StorageFolderQueryResult { @@ -1382,12 +1382,12 @@ impl StorageItemQueryResult { } pub fn ContentsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContentsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1396,12 +1396,12 @@ impl StorageItemQueryResult { } pub fn OptionsChanged(&self, changedhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OptionsChanged)(windows_core::Interface::as_raw(this), changedhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOptionsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1410,12 +1410,12 @@ impl StorageItemQueryResult { } pub fn FindStartIndexAsync(&self, value: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindStartIndexAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetCurrentQueryOptions(&self) -> windows_core::Result { @@ -1427,10 +1427,10 @@ impl StorageItemQueryResult { } pub fn ApplyNewQueryOptions(&self, newqueryoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ApplyNewQueryOptions)(windows_core::Interface::as_raw(this), newqueryoptions.param().abi()).ok() } } } impl windows_core::RuntimeType for StorageItemQueryResult { @@ -1535,10 +1535,10 @@ impl ValueAndLanguage { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for ValueAndLanguage { @@ -1697,7 +1697,7 @@ impl core::fmt::Debug for SortEntry { } } impl windows_core::TypeKind for SortEntry { - type TypeKind = windows_core::ValueType; + type TypeKind = windows_core::CloneType; } impl windows_core::RuntimeType for SortEntry { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Storage.Search.SortEntry;string;b1)"); diff --git a/crates/libs/windows/src/Windows/Storage/Streams/mod.rs b/crates/libs/windows/src/Windows/Storage/Streams/mod.rs index 135755c727..177cfbb57d 100644 --- a/crates/libs/windows/src/Windows/Storage/Streams/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Streams/mod.rs @@ -335,17 +335,17 @@ impl IDataWriter { } pub fn WriteBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).WriteBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).WriteBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } pub fn WriteBufferRange(&self, buffer: P0, start: u32, count: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).WriteBufferRange)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), start, count).ok() } + unsafe { (windows_core::Interface::vtable(this).WriteBufferRange)(windows_core::Interface::as_raw(this), buffer.param().abi(), start, count).ok() } } pub fn WriteBoolean(&self, value: bool) -> windows_core::Result<()> { let this = self; @@ -515,12 +515,12 @@ windows_core::imp::required_hierarchy!(IInputStream, super::super::Foundation::I impl IInputStream { pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Close(&self) -> windows_core::Result<()> { @@ -561,12 +561,12 @@ windows_core::imp::required_hierarchy!(IOutputStream, super::super::Foundation:: impl IOutputStream { pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -596,22 +596,22 @@ impl IPropertySetSerializer { #[cfg(feature = "Foundation_Collections")] pub fn Serialize(&self, propertyset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Serialize)(windows_core::Interface::as_raw(this), propertyset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Serialize)(windows_core::Interface::as_raw(this), propertyset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn Deserialize(&self, propertyset: P0, buffer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Deserialize)(windows_core::Interface::as_raw(this), propertyset.into_param().abi(), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Deserialize)(windows_core::Interface::as_raw(this), propertyset.param().abi(), buffer.param().abi()).ok() } } } impl windows_core::RuntimeType for IPropertySetSerializer { @@ -696,22 +696,22 @@ impl IRandomAccessStream { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -796,22 +796,22 @@ impl IRandomAccessStreamWithContentType { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -918,20 +918,20 @@ impl Buffer { } pub fn CreateCopyFromMemoryBuffer(input: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBufferStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCopyFromMemoryBuffer)(windows_core::Interface::as_raw(this), input.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCopyFromMemoryBuffer)(windows_core::Interface::as_raw(this), input.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateMemoryBufferOverIBuffer(input: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBufferStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMemoryBufferOverIBuffer)(windows_core::Interface::as_raw(this), input.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMemoryBufferOverIBuffer)(windows_core::Interface::as_raw(this), input.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1139,20 +1139,20 @@ impl DataReader { } pub fn CreateDataReader(inputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDataReaderFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDataReader)(windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDataReader)(windows_core::Interface::as_raw(this), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn FromBuffer(buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDataReaderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FromBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FromBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1215,10 +1215,10 @@ impl DataReaderLoadOperation { } pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; @@ -1332,17 +1332,17 @@ impl DataWriter { } pub fn WriteBuffer(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).WriteBuffer)(windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).WriteBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi()).ok() } } pub fn WriteBufferRange(&self, buffer: P0, start: u32, count: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).WriteBufferRange)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), start, count).ok() } + unsafe { (windows_core::Interface::vtable(this).WriteBufferRange)(windows_core::Interface::as_raw(this), buffer.param().abi(), start, count).ok() } } pub fn WriteBoolean(&self, value: bool) -> windows_core::Result<()> { let this = self; @@ -1436,11 +1436,11 @@ impl DataWriter { } pub fn CreateDataWriter(outputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDataWriterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateDataWriter)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateDataWriter)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1498,10 +1498,10 @@ impl DataWriterStoreOperation { } pub fn SetCompleted(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCompleted)(windows_core::Interface::as_raw(this), handler.param().abi()).ok() } } pub fn Completed(&self) -> windows_core::Result> { let this = self; @@ -1571,12 +1571,12 @@ impl FileInputStream { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1604,12 +1604,12 @@ impl FileOutputStream { } pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -1669,61 +1669,61 @@ impl FileRandomAccessStream { #[cfg(feature = "System")] pub fn OpenForUserAsync(user: P0, filepath: &windows_core::HSTRING, accessmode: super::FileAccessMode) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileRandomAccessStreamStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(filepath), accessmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(filepath), accessmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn OpenForUserWithOptionsAsync(user: P0, filepath: &windows_core::HSTRING, accessmode: super::FileAccessMode, sharingoptions: super::StorageOpenOptions, opendisposition: FileOpenDisposition) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileRandomAccessStreamStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenForUserWithOptionsAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(filepath), accessmode, sharingoptions, opendisposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenForUserWithOptionsAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(filepath), accessmode, sharingoptions, opendisposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn OpenTransactedWriteForUserAsync(user: P0, filepath: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileRandomAccessStreamStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenTransactedWriteForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(filepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenTransactedWriteForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(filepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn OpenTransactedWriteForUserWithOptionsAsync(user: P0, filepath: &windows_core::HSTRING, openoptions: super::StorageOpenOptions, opendisposition: FileOpenDisposition) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileRandomAccessStreamStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OpenTransactedWriteForUserWithOptionsAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(filepath), openoptions, opendisposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).OpenTransactedWriteForUserWithOptionsAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(filepath), openoptions, opendisposition, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -1827,22 +1827,22 @@ impl InMemoryRandomAccessStream { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -1934,12 +1934,12 @@ impl InputStreamOverStream { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1967,12 +1967,12 @@ impl OutputStreamOverStream { } pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -1999,32 +1999,32 @@ pub struct RandomAccessStream; impl RandomAccessStream { pub fn CopyAsync(source: P0, destination: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IRandomAccessStreamStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyAsync)(windows_core::Interface::as_raw(this), source.param().abi(), destination.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CopySizeAsync(source: P0, destination: P1, bytestocopy: u64) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IRandomAccessStreamStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopySizeAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), bytestocopy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopySizeAsync)(windows_core::Interface::as_raw(this), source.param().abi(), destination.param().abi(), bytestocopy, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CopyAndCloseAsync(source: P0, destination: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IRandomAccessStreamStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyAndCloseAsync)(windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyAndCloseAsync)(windows_core::Interface::as_raw(this), source.param().abi(), destination.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2048,22 +2048,22 @@ impl RandomAccessStreamOverStream { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), count, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn FlushAsync(&self) -> windows_core::Result> { @@ -2158,29 +2158,29 @@ impl RandomAccessStreamReference { } pub fn CreateFromFile(file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRandomAccessStreamReferenceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromFile)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromFile)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromUri(uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRandomAccessStreamReferenceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromUri)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromUri)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromStream(stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRandomAccessStreamReferenceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromStream)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromStream)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Storage/mod.rs b/crates/libs/windows/src/Windows/Storage/mod.rs index 2c61f1eecb..31448bd17f 100644 --- a/crates/libs/windows/src/Windows/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/mod.rs @@ -422,82 +422,82 @@ impl IStorageFile { } pub fn CopyOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyOverload(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING, option: NameCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverload)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverload)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyAndReplaceAsync(&self, filetoreplace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverload(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING, option: NameCollisionOption) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverload)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverload)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveAndReplaceAsync(&self, filetoreplace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -1030,12 +1030,12 @@ impl IStorageItem2 { } pub fn IsEqual(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) } } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &windows_core::HSTRING) -> windows_core::Result { @@ -1813,11 +1813,11 @@ impl AppDataPaths { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppDataPathsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefault() -> windows_core::Result { @@ -1859,12 +1859,12 @@ impl ApplicationData { } pub fn SetVersionAsync(&self, desiredversion: u32, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetVersionAsync)(windows_core::Interface::as_raw(this), desiredversion, handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetVersionAsync)(windows_core::Interface::as_raw(this), desiredversion, handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ClearAllAsync(&self) -> windows_core::Result { @@ -1918,12 +1918,12 @@ impl ApplicationData { } pub fn DataChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DataChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DataChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDataChanged(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1978,11 +1978,11 @@ impl ApplicationData { #[cfg(feature = "System")] pub fn GetForUserAsync(user: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IApplicationDataStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Close(&self) -> windows_core::Result<()> { @@ -2072,12 +2072,12 @@ impl ApplicationDataCompositeValue { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -2093,12 +2093,12 @@ impl ApplicationDataCompositeValue { #[cfg(feature = "Foundation_Collections")] pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -2257,12 +2257,12 @@ impl ApplicationDataContainerSettings { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -2278,12 +2278,12 @@ impl ApplicationDataContainerSettings { #[cfg(feature = "Foundation_Collections")] pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -2329,18 +2329,18 @@ pub struct CachedFileManager; impl CachedFileManager { pub fn DeferUpdates(file: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::ICachedFileManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).DeferUpdates)(windows_core::Interface::as_raw(this), file.into_param().abi()).ok() }) + Self::ICachedFileManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).DeferUpdates)(windows_core::Interface::as_raw(this), file.param().abi()).ok() }) } #[cfg(feature = "Storage_Provider")] pub fn CompleteUpdatesAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICachedFileManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CompleteUpdatesAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CompleteUpdatesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2381,41 +2381,41 @@ impl DownloadsFolder { #[cfg(feature = "System")] pub fn CreateFileForUserAsync(user: P0, desiredname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDownloadsFolderStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(desiredname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(desiredname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn CreateFolderForUserAsync(user: P0, desiredname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDownloadsFolderStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFolderForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(desiredname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFolderForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(desiredname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn CreateFileForUserWithCollisionOptionAsync(user: P0, desiredname: &windows_core::HSTRING, option: CreationCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDownloadsFolderStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileForUserWithCollisionOptionAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(desiredname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileForUserWithCollisionOptionAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(desiredname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn CreateFolderForUserWithCollisionOptionAsync(user: P0, desiredname: &windows_core::HSTRING, option: CreationCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDownloadsFolderStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFolderForUserWithCollisionOptionAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(desiredname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFolderForUserWithCollisionOptionAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(desiredname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2436,153 +2436,153 @@ pub struct FileIO; impl FileIO { pub fn ReadTextAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadTextAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadTextAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ReadTextWithEncodingAsync(file: P0, encoding: Streams::UnicodeEncoding) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadTextWithEncodingAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadTextWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn WriteTextAsync(file: P0, contents: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteTextAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(contents), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteTextAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(contents), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn WriteTextWithEncodingAsync(file: P0, contents: &windows_core::HSTRING, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteTextWithEncodingAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(contents), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteTextWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(contents), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AppendTextAsync(file: P0, contents: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendTextAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(contents), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendTextAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(contents), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn AppendTextWithEncodingAsync(file: P0, contents: &windows_core::HSTRING, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendTextWithEncodingAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(contents), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendTextWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(contents), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn ReadLinesAsync(file: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadLinesAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadLinesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn ReadLinesWithEncodingAsync(file: P0, encoding: Streams::UnicodeEncoding) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn WriteLinesAsync(file: P0, lines: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteLinesAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteLinesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn WriteLinesWithEncodingAsync(file: P0, lines: P1, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), lines.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn AppendLinesAsync(file: P0, lines: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendLinesAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendLinesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn AppendLinesWithEncodingAsync(file: P0, lines: P1, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), lines.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ReadBufferAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadBufferAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReadBufferAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn WriteBufferAsync(file: P0, buffer: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteBufferAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteBufferAsync)(windows_core::Interface::as_raw(this), file.param().abi(), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn WriteBytesAsync(file: P0, buffer: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IFileIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteBytesAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), buffer.len().try_into().unwrap(), buffer.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteBytesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), buffer.len().try_into().unwrap(), buffer.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2677,11 +2677,11 @@ impl KnownFolders { #[cfg(feature = "System")] pub fn GetFolderForUserAsync(user: P0, folderid: KnownFolderId) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IKnownFoldersStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFolderForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), folderid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFolderForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), folderid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestAccessAsync(folderid: KnownFolderId) -> windows_core::Result> { @@ -2693,11 +2693,11 @@ impl KnownFolders { #[cfg(feature = "System")] pub fn RequestAccessForUserAsync(user: P0, folderid: KnownFolderId) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IKnownFoldersStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAccessForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), folderid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAccessForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), folderid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetFolderAsync(folderid: KnownFolderId) -> windows_core::Result> { @@ -2803,41 +2803,41 @@ impl PathIO { #[cfg(feature = "Foundation_Collections")] pub fn WriteLinesAsync(absolutepath: &windows_core::HSTRING, lines: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteLinesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteLinesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn WriteLinesWithEncodingAsync(absolutepath: &windows_core::HSTRING, lines: P0, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn AppendLinesAsync(absolutepath: &windows_core::HSTRING, lines: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendLinesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendLinesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn AppendLinesWithEncodingAsync(absolutepath: &windows_core::HSTRING, lines: P0, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] @@ -2850,11 +2850,11 @@ impl PathIO { #[cfg(feature = "Storage_Streams")] pub fn WriteBufferAsync(absolutepath: &windows_core::HSTRING, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPathIOStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteBufferAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteBufferAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn WriteBytesAsync(absolutepath: &windows_core::HSTRING, buffer: &[u8]) -> windows_core::Result { @@ -2987,82 +2987,82 @@ impl StorageFile { } pub fn CopyOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyOverload(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING, option: NameCollisionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyOverload)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyOverload)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CopyAndReplaceAsync(&self, filetoreplace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CopyAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CopyAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveOverload(&self, destinationfolder: P0, desirednewname: &windows_core::HSTRING, option: NameCollisionOption) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveOverload)(windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveOverload)(windows_core::Interface::as_raw(this), destinationfolder.param().abi(), core::mem::transmute_copy(desirednewname), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MoveAndReplaceAsync(&self, filetoreplace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MoveAndReplaceAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -3095,67 +3095,67 @@ impl StorageFile { } pub fn GetFileFromApplicationUriAsync(uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageFileStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFileFromApplicationUriAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFileFromApplicationUriAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateStreamedFileAsync(displaynamewithextension: &windows_core::HSTRING, datarequested: P0, thumbnail: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IStorageFileStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStreamedFileAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaynamewithextension), datarequested.into_param().abi(), thumbnail.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStreamedFileAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaynamewithextension), datarequested.param().abi(), thumbnail.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ReplaceWithStreamedFileAsync(filetoreplace: P0, datarequested: P1, thumbnail: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IStorageFileStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceWithStreamedFileAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), datarequested.into_param().abi(), thumbnail.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceWithStreamedFileAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), datarequested.param().abi(), thumbnail.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateStreamedFileFromUriAsync(displaynamewithextension: &windows_core::HSTRING, uri: P0, thumbnail: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IStorageFileStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStreamedFileFromUriAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaynamewithextension), uri.into_param().abi(), thumbnail.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStreamedFileFromUriAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaynamewithextension), uri.param().abi(), thumbnail.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn ReplaceWithStreamedFileFromUriAsync(filetoreplace: P0, uri: P1, thumbnail: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IStorageFileStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReplaceWithStreamedFileFromUriAsync)(windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), uri.into_param().abi(), thumbnail.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ReplaceWithStreamedFileFromUriAsync)(windows_core::Interface::as_raw(this), filetoreplace.param().abi(), uri.param().abi(), thumbnail.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn GetFileFromPathForUserAsync(user: P0, path: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageFileStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFileFromPathForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFileFromPathForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &windows_core::HSTRING) -> windows_core::Result { @@ -3238,12 +3238,12 @@ impl StorageFile { } pub fn IsEqual(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) } } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] @@ -3472,12 +3472,12 @@ impl StorageFolder { #[cfg(feature = "Storage_Search")] pub fn CreateFileQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFileQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFileQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Search")] @@ -3499,12 +3499,12 @@ impl StorageFolder { #[cfg(feature = "Storage_Search")] pub fn CreateFolderQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFolderQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFolderQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Search")] @@ -3518,12 +3518,12 @@ impl StorageFolder { #[cfg(feature = "Storage_Search")] pub fn CreateItemQueryWithOptions(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] @@ -3569,12 +3569,12 @@ impl StorageFolder { #[cfg(feature = "Storage_Search")] pub fn AreQueryOptionsSupported(&self, queryoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AreQueryOptionsSupported)(windows_core::Interface::as_raw(this), queryoptions.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AreQueryOptionsSupported)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Search")] @@ -3602,11 +3602,11 @@ impl StorageFolder { #[cfg(feature = "System")] pub fn GetFolderFromPathForUserAsync(user: P0, path: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageFolderStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFolderFromPathForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetFolderFromPathForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &windows_core::HSTRING) -> windows_core::Result { @@ -3689,12 +3689,12 @@ impl StorageFolder { } pub fn IsEqual(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) } } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] @@ -3816,12 +3816,12 @@ impl StorageLibrary { } pub fn RequestRemoveFolderAsync(&self, folder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestRemoveFolderAsync)(windows_core::Interface::as_raw(this), folder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestRemoveFolderAsync)(windows_core::Interface::as_raw(this), folder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -3841,12 +3841,12 @@ impl StorageLibrary { } pub fn DefinitionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DefinitionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DefinitionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDefinitionChanged(&self, eventcookie: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3876,11 +3876,11 @@ impl StorageLibrary { #[cfg(feature = "System")] pub fn GetLibraryForUserAsync(user: P0, libraryid: KnownLibraryId) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStorageLibraryStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetLibraryForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), libraryid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetLibraryForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), libraryid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -4019,10 +4019,10 @@ impl StorageLibraryChangeTracker { } pub fn EnableWithOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).EnableWithOptions)(windows_core::Interface::as_raw(this), options.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).EnableWithOptions)(windows_core::Interface::as_raw(this), options.param().abi()).ok() } } pub fn Disable(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4196,12 +4196,12 @@ impl StreamedFileDataRequest { #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteAsync)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -4930,11 +4930,11 @@ impl UserDataPaths { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserDataPathsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetDefault() -> windows_core::Result { @@ -5362,10 +5362,10 @@ impl ApplicationDataSetVersionHandler { } pub fn Invoke(&self, setversionrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), setversionrequest.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), setversionrequest.param().abi()).ok() } } } #[repr(C)] @@ -5425,10 +5425,10 @@ impl StreamedFileDataRequestedHandler { #[cfg(feature = "Storage_Streams")] pub fn Invoke(&self, stream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), stream.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), stream.param().abi()).ok() } } } #[cfg(feature = "Storage_Streams")] diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs index d405ffb2e8..a75e6d1fd2 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs @@ -96,12 +96,12 @@ windows_core::imp::interface_hierarchy!(DevicePortalConnection, windows_core::IU impl DevicePortalConnection { pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -110,12 +110,12 @@ impl DevicePortalConnection { } pub fn RequestReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RequestReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRequestReceived(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -125,66 +125,66 @@ impl DevicePortalConnection { #[cfg(feature = "ApplicationModel_AppService")] pub fn GetForAppServiceConnection(appserviceconnection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDevicePortalConnectionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForAppServiceConnection)(windows_core::Interface::as_raw(this), appserviceconnection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForAppServiceConnection)(windows_core::Interface::as_raw(this), appserviceconnection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Networking_Sockets", feature = "Web_Http"))] pub fn GetServerMessageWebSocketForRequest(&self, request: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetServerMessageWebSocketForRequest)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetServerMessageWebSocketForRequest)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Networking_Sockets", feature = "Web_Http"))] pub fn GetServerMessageWebSocketForRequest2(&self, request: P0, messagetype: super::super::super::Networking::Sockets::SocketMessageType, protocol: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetServerMessageWebSocketForRequest2)(windows_core::Interface::as_raw(this), request.into_param().abi(), messagetype, core::mem::transmute_copy(protocol), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetServerMessageWebSocketForRequest2)(windows_core::Interface::as_raw(this), request.param().abi(), messagetype, core::mem::transmute_copy(protocol), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Networking_Sockets", feature = "Web_Http"))] pub fn GetServerMessageWebSocketForRequest3(&self, request: P0, messagetype: super::super::super::Networking::Sockets::SocketMessageType, protocol: &windows_core::HSTRING, outboundbuffersizeinbytes: u32, maxmessagesize: u32, receivemode: super::super::super::Networking::Sockets::MessageWebSocketReceiveMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetServerMessageWebSocketForRequest3)(windows_core::Interface::as_raw(this), request.into_param().abi(), messagetype, core::mem::transmute_copy(protocol), outboundbuffersizeinbytes, maxmessagesize, receivemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetServerMessageWebSocketForRequest3)(windows_core::Interface::as_raw(this), request.param().abi(), messagetype, core::mem::transmute_copy(protocol), outboundbuffersizeinbytes, maxmessagesize, receivemode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Networking_Sockets", feature = "Web_Http"))] pub fn GetServerStreamWebSocketForRequest(&self, request: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetServerStreamWebSocketForRequest)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetServerStreamWebSocketForRequest)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Networking_Sockets", feature = "Web_Http"))] pub fn GetServerStreamWebSocketForRequest2(&self, request: P0, protocol: &windows_core::HSTRING, outboundbuffersizeinbytes: u32, nodelay: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetServerStreamWebSocketForRequest2)(windows_core::Interface::as_raw(this), request.into_param().abi(), core::mem::transmute_copy(protocol), outboundbuffersizeinbytes, nodelay, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetServerStreamWebSocketForRequest2)(windows_core::Interface::as_raw(this), request.param().abi(), core::mem::transmute_copy(protocol), outboundbuffersizeinbytes, nodelay, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/Telemetry/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/Telemetry/mod.rs index 890ca21ae4..38384c9fd4 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/Telemetry/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/Telemetry/mod.rs @@ -39,11 +39,11 @@ impl PlatformTelemetryClient { } pub fn RegisterWithSettings(id: &windows_core::HSTRING, settings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPlatformTelemetryClientStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RegisterWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), settings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RegisterWithSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs index cdfe7fc148..2f846c8ba4 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs @@ -58,11 +58,11 @@ impl PlatformDiagnosticActions { #[cfg(feature = "Foundation_Collections")] pub fn TryEscalateScenario(scenarioid: windows_core::GUID, escalationtype: PlatformDiagnosticEscalationType, outputdirectory: &windows_core::HSTRING, timestampoutputdirectory: bool, forceescalationupload: bool, triggers: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPlatformDiagnosticActionsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryEscalateScenario)(windows_core::Interface::as_raw(this), scenarioid, escalationtype, core::mem::transmute_copy(outputdirectory), timestampoutputdirectory, forceescalationupload, triggers.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryEscalateScenario)(windows_core::Interface::as_raw(this), scenarioid, escalationtype, core::mem::transmute_copy(outputdirectory), timestampoutputdirectory, forceescalationupload, triggers.param().abi(), &mut result__).map(|| result__) }) } pub fn DownloadLatestSettingsForNamespace(partner: &windows_core::HSTRING, feature: &windows_core::HSTRING, isscenarionamespace: bool, downloadovercostednetwork: bool, downloadoverbattery: bool) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs index c62124ba67..27ac28c2e2 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs @@ -280,12 +280,12 @@ impl DiagnosticInvoker { #[cfg(feature = "Data_Json")] pub fn RunDiagnosticActionAsync(&self, context: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RunDiagnosticActionAsync)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RunDiagnosticActionAsync)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RunDiagnosticActionFromStringAsync(&self, context: &windows_core::HSTRING) -> windows_core::Result> { @@ -303,11 +303,11 @@ impl DiagnosticInvoker { } pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDiagnosticInvokerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn IsSupported() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs b/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs index 79919ce42f..f8a7a7cd96 100644 --- a/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs @@ -21,12 +21,12 @@ windows_core::imp::interface_hierarchy!(ISysStorageProviderEventSource, windows_ impl ISysStorageProviderEventSource { pub fn EventReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EventReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EventReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEventReceived(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -76,12 +76,12 @@ impl ISysStorageProviderHttpRequestProvider { #[cfg(feature = "Web_Http")] pub fn SendRequestAsync(&self, request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } diff --git a/crates/libs/windows/src/Windows/System/Power/mod.rs b/crates/libs/windows/src/Windows/System/Power/mod.rs index 1ac10d154d..c7ea870102 100644 --- a/crates/libs/windows/src/Windows/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/System/Power/mod.rs @@ -194,11 +194,11 @@ impl BackgroundEnergyManager { #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageIncreased(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -208,11 +208,11 @@ impl BackgroundEnergyManager { #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageReturnedToLow(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -279,11 +279,11 @@ impl ForegroundEnergyManager { #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageIncreased(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -293,11 +293,11 @@ impl ForegroundEnergyManager { #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageReturnedToLow(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -325,11 +325,11 @@ impl PowerManager { } pub fn EnergySaverStatusChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPowerManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnergySaverStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnergySaverStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveEnergySaverStatusChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -343,11 +343,11 @@ impl PowerManager { } pub fn BatteryStatusChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPowerManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BatteryStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BatteryStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveBatteryStatusChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -361,11 +361,11 @@ impl PowerManager { } pub fn PowerSupplyStatusChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPowerManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PowerSupplyStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PowerSupplyStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemovePowerSupplyStatusChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -379,11 +379,11 @@ impl PowerManager { } pub fn RemainingChargePercentChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPowerManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemainingChargePercentChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemainingChargePercentChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveRemainingChargePercentChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -397,11 +397,11 @@ impl PowerManager { } pub fn RemainingDischargeTimeChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPowerManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemainingDischargeTimeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemainingDischargeTimeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveRemainingDischargeTimeChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/System/Profile/mod.rs b/crates/libs/windows/src/Windows/System/Profile/mod.rs index ae73d25df7..6164a92fe6 100644 --- a/crates/libs/windows/src/Windows/System/Profile/mod.rs +++ b/crates/libs/windows/src/Windows/System/Profile/mod.rs @@ -253,11 +253,11 @@ impl AnalyticsInfo { #[cfg(feature = "Foundation_Collections")] pub fn GetSystemPropertiesAsync(attributenames: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IAnalyticsInfoStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSystemPropertiesAsync)(windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSystemPropertiesAsync)(windows_core::Interface::as_raw(this), attributenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -318,11 +318,11 @@ impl AppApplicability { #[cfg(feature = "Foundation_Collections")] pub fn GetUnsupportedAppRequirements(capabilities: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IAppApplicabilityStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetUnsupportedAppRequirements)(windows_core::Interface::as_raw(this), capabilities.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetUnsupportedAppRequirements)(windows_core::Interface::as_raw(this), capabilities.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -356,11 +356,11 @@ impl HardwareIdentification { #[cfg(feature = "Storage_Streams")] pub fn GetPackageSpecificToken(nonce: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHardwareIdentificationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPackageSpecificToken)(windows_core::Interface::as_raw(this), nonce.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPackageSpecificToken)(windows_core::Interface::as_raw(this), nonce.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -567,11 +567,11 @@ impl PlatformDiagnosticsAndUsageDataSettings { } pub fn CollectionLevelChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IPlatformDiagnosticsAndUsageDataSettingsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CollectionLevelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CollectionLevelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveCollectionLevelChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -654,11 +654,11 @@ impl SmartAppControlPolicy { } pub fn Changed(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISmartAppControlPolicyStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -683,11 +683,11 @@ impl SystemIdentification { } pub fn GetSystemIdForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISystemIdentificationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSystemIdForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetSystemIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -742,11 +742,11 @@ impl SystemSetupInfo { } pub fn OutOfBoxExperienceStateChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISystemSetupInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OutOfBoxExperienceStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OutOfBoxExperienceStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveOutOfBoxExperienceStateChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -821,11 +821,11 @@ impl WindowsIntegrityPolicy { } pub fn PolicyChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IWindowsIntegrityPolicyStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PolicyChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PolicyChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemovePolicyChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs b/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs index 99738fa10a..654b3448e3 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs @@ -55,11 +55,11 @@ impl RemoteTextConnection { } pub fn CreateInstance(connectionid: windows_core::GUID, pduforwarder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteTextConnectionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), connectionid, pduforwarder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), connectionid, pduforwarder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs b/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs index 31ffd73e67..53d8ab3892 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs @@ -125,11 +125,11 @@ impl RemoteDesktopConnectionInfo { #[cfg(feature = "UI")] pub fn GetForLaunchUri(launchuri: P0, windowid: super::super::super::UI::WindowId) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteDesktopConnectionInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForLaunchUri)(windows_core::Interface::as_raw(this), launchuri.into_param().abi(), windowid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForLaunchUri)(windows_core::Interface::as_raw(this), launchuri.param().abi(), windowid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -166,12 +166,12 @@ impl RemoteDesktopConnectionRemoteInfo { } pub fn SwitchToLocalSessionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SwitchToLocalSessionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SwitchToLocalSessionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSwitchToLocalSessionRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -180,12 +180,12 @@ impl RemoteDesktopConnectionRemoteInfo { } pub fn PerformLocalActionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PerformLocalActionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PerformLocalActionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePerformLocalActionRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -200,11 +200,11 @@ impl RemoteDesktopConnectionRemoteInfo { } pub fn GetForLaunchUri(launchuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteDesktopConnectionRemoteInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForLaunchUri)(windows_core::Interface::as_raw(this), launchuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForLaunchUri)(windows_core::Interface::as_raw(this), launchuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs b/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs index e89096b17f..c784ea0aa5 100644 --- a/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs @@ -867,11 +867,11 @@ impl RemoteSystem { #[cfg(feature = "Networking")] pub fn FindByHostNameAsync(hostname: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindByHostNameAsync)(windows_core::Interface::as_raw(this), hostname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindByHostNameAsync)(windows_core::Interface::as_raw(this), hostname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWatcher() -> windows_core::Result { @@ -883,11 +883,11 @@ impl RemoteSystem { #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithFilters(filters: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IRemoteSystemStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWatcherWithFilters)(windows_core::Interface::as_raw(this), filters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWatcherWithFilters)(windows_core::Interface::as_raw(this), filters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestAccessAsync() -> windows_core::Result> { @@ -904,22 +904,22 @@ impl RemoteSystem { } pub fn CreateWatcherForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWatcherForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWatcherForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithFiltersForUser(user: P0, filters: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { Self::IRemoteSystemStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWatcherWithFiltersForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), filters.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWatcherWithFiltersForUser)(windows_core::Interface::as_raw(this), user.param().abi(), filters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1078,11 +1078,11 @@ impl RemoteSystemAppRegistration { } pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemAppRegistrationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1155,11 +1155,11 @@ impl RemoteSystemConnectionInfo { #[cfg(feature = "ApplicationModel_AppService")] pub fn TryCreateFromAppServiceConnection(connection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemConnectionInfoStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryCreateFromAppServiceConnection)(windows_core::Interface::as_raw(this), connection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryCreateFromAppServiceConnection)(windows_core::Interface::as_raw(this), connection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1208,20 +1208,20 @@ impl RemoteSystemConnectionRequest { } pub fn Create(remotesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemConnectionRequestFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), remotesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), remotesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateForApp(remotesystemapp: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemConnectionRequestStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForApp)(windows_core::Interface::as_raw(this), remotesystemapp.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForApp)(windows_core::Interface::as_raw(this), remotesystemapp.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromConnectionToken(connectiontoken: &windows_core::HSTRING) -> windows_core::Result { @@ -1232,11 +1232,11 @@ impl RemoteSystemConnectionRequest { } pub fn CreateFromConnectionTokenForUser(user: P0, connectiontoken: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemConnectionRequestStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromConnectionTokenForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(connectiontoken), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromConnectionTokenForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(connectiontoken), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1338,11 +1338,11 @@ impl RemoteSystemKindFilter { #[cfg(feature = "Foundation_Collections")] pub fn Create(remotesystemkinds: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IRemoteSystemKindFilterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), remotesystemkinds.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), remotesystemkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1485,12 +1485,12 @@ impl RemoteSystemSession { } pub fn Disconnected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Disconnected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Disconnected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1506,12 +1506,12 @@ impl RemoteSystemSession { } pub fn SendInvitationAsync(&self, invitee: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendInvitationAsync)(windows_core::Interface::as_raw(this), invitee.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendInvitationAsync)(windows_core::Interface::as_raw(this), invitee.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateWatcher() -> windows_core::Result { @@ -1570,12 +1570,12 @@ windows_core::imp::interface_hierarchy!(RemoteSystemSessionController, windows_c impl RemoteSystemSessionController { pub fn JoinRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).JoinRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).JoinRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveJoinRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1584,12 +1584,12 @@ impl RemoteSystemSessionController { } pub fn RemoveParticipantAsync(&self, pparticipant: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoveParticipantAsync)(windows_core::Interface::as_raw(this), pparticipant.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RemoveParticipantAsync)(windows_core::Interface::as_raw(this), pparticipant.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateSessionAsync(&self) -> windows_core::Result> { @@ -1607,11 +1607,11 @@ impl RemoteSystemSessionController { } pub fn CreateControllerWithSessionOptions(displayname: &windows_core::HSTRING, options: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemSessionControllerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateControllerWithSessionOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displayname), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateControllerWithSessionOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displayname), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1774,12 +1774,12 @@ impl RemoteSystemSessionInvitationListener { } pub fn InvitationReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InvitationReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InvitationReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInvitationReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1932,46 +1932,46 @@ impl RemoteSystemSessionMessageChannel { #[cfg(feature = "Foundation_Collections")] pub fn BroadcastValueSetAsync(&self, messagedata: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BroadcastValueSetAsync)(windows_core::Interface::as_raw(this), messagedata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).BroadcastValueSetAsync)(windows_core::Interface::as_raw(this), messagedata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SendValueSetAsync(&self, messagedata: P0, participant: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendValueSetAsync)(windows_core::Interface::as_raw(this), messagedata.into_param().abi(), participant.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendValueSetAsync)(windows_core::Interface::as_raw(this), messagedata.param().abi(), participant.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn SendValueSetToParticipantsAsync(&self, messagedata: P0, participants: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendValueSetToParticipantsAsync)(windows_core::Interface::as_raw(this), messagedata.into_param().abi(), participants.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendValueSetToParticipantsAsync)(windows_core::Interface::as_raw(this), messagedata.param().abi(), participants.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ValueSetReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ValueSetReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ValueSetReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveValueSetReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1980,20 +1980,20 @@ impl RemoteSystemSessionMessageChannel { } pub fn Create(session: P0, channelname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemSessionMessageChannelFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), session.into_param().abi(), core::mem::transmute_copy(channelname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), session.param().abi(), core::mem::transmute_copy(channelname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithReliability(session: P0, channelname: &windows_core::HSTRING, reliability: RemoteSystemSessionMessageChannelReliability) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemSessionMessageChannelFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithReliability)(windows_core::Interface::as_raw(this), session.into_param().abi(), core::mem::transmute_copy(channelname), reliability, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithReliability)(windows_core::Interface::as_raw(this), session.param().abi(), core::mem::transmute_copy(channelname), reliability, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2155,12 +2155,12 @@ impl RemoteSystemSessionParticipantWatcher { } pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2169,12 +2169,12 @@ impl RemoteSystemSessionParticipantWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2183,12 +2183,12 @@ impl RemoteSystemSessionParticipantWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2313,12 +2313,12 @@ impl RemoteSystemSessionWatcher { } pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2327,12 +2327,12 @@ impl RemoteSystemSessionWatcher { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2341,12 +2341,12 @@ impl RemoteSystemSessionWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2443,12 +2443,12 @@ impl RemoteSystemWatcher { } pub fn RemoteSystemAdded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoteSystemAdded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemoteSystemAdded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoteSystemAdded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2457,12 +2457,12 @@ impl RemoteSystemWatcher { } pub fn RemoteSystemUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoteSystemUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemoteSystemUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoteSystemUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2471,12 +2471,12 @@ impl RemoteSystemWatcher { } pub fn RemoteSystemRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RemoteSystemRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RemoteSystemRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoteSystemRemoved(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2485,12 +2485,12 @@ impl RemoteSystemWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2499,12 +2499,12 @@ impl RemoteSystemWatcher { } pub fn ErrorOccurred(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ErrorOccurred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveErrorOccurred(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2573,11 +2573,11 @@ impl RemoteSystemWebAccountFilter { #[cfg(feature = "Security_Credentials")] pub fn Create(account: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRemoteSystemWebAccountFilterFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), account.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), account.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs b/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs index a75c37ff62..d0b5b68d24 100644 --- a/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs @@ -54,29 +54,29 @@ impl PreallocatedWorkItem { } pub fn CreateWorkItem(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPreallocatedWorkItemFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWorkItem)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWorkItem)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWorkItemWithPriority(handler: P0, priority: super::WorkItemPriority) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPreallocatedWorkItemFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWorkItemWithPriority)(windows_core::Interface::as_raw(this), handler.into_param().abi(), priority, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWorkItemWithPriority)(windows_core::Interface::as_raw(this), handler.param().abi(), priority, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWorkItemWithPriorityAndOptions(handler: P0, priority: super::WorkItemPriority, options: super::WorkItemOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPreallocatedWorkItemFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWorkItemWithPriorityAndOptions)(windows_core::Interface::as_raw(this), handler.into_param().abi(), priority, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWorkItemWithPriorityAndOptions)(windows_core::Interface::as_raw(this), handler.param().abi(), priority, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -112,38 +112,38 @@ impl SignalNotifier { } pub fn AttachToEvent(name: &windows_core::HSTRING, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISignalNotifierStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AttachToEvent)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AttachToEvent)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AttachToEventWithTimeout(name: &windows_core::HSTRING, handler: P0, timeout: super::super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISignalNotifierStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AttachToEventWithTimeout)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.into_param().abi(), timeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AttachToEventWithTimeout)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.param().abi(), timeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AttachToSemaphore(name: &windows_core::HSTRING, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISignalNotifierStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AttachToSemaphore)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AttachToSemaphore)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AttachToSemaphoreWithTimeout(name: &windows_core::HSTRING, handler: P0, timeout: super::super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISignalNotifierStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AttachToSemaphoreWithTimeout)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.into_param().abi(), timeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AttachToSemaphoreWithTimeout)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), handler.param().abi(), timeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -172,10 +172,10 @@ impl SignalHandler { } pub fn Invoke(&self, signalnotifier: P0, timedout: bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), signalnotifier.into_param().abi(), timedout).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), signalnotifier.param().abi(), timedout).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/System/Threading/mod.rs b/crates/libs/windows/src/Windows/System/Threading/mod.rs index d75c625a8f..deae068950 100644 --- a/crates/libs/windows/src/Windows/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/mod.rs @@ -38,29 +38,29 @@ pub struct ThreadPool; impl ThreadPool { pub fn RunAsync(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IThreadPoolStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RunAsync)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RunAsync)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RunWithPriorityAsync(handler: P0, priority: WorkItemPriority) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IThreadPoolStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RunWithPriorityAsync)(windows_core::Interface::as_raw(this), handler.into_param().abi(), priority, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RunWithPriorityAsync)(windows_core::Interface::as_raw(this), handler.param().abi(), priority, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RunWithPriorityAndOptionsAsync(handler: P0, priority: WorkItemPriority, options: WorkItemOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IThreadPoolStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RunWithPriorityAndOptionsAsync)(windows_core::Interface::as_raw(this), handler.into_param().abi(), priority, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RunWithPriorityAndOptionsAsync)(windows_core::Interface::as_raw(this), handler.param().abi(), priority, options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -97,40 +97,40 @@ impl ThreadPoolTimer { } pub fn CreatePeriodicTimer(handler: P0, period: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IThreadPoolTimerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePeriodicTimer)(windows_core::Interface::as_raw(this), handler.into_param().abi(), period, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePeriodicTimer)(windows_core::Interface::as_raw(this), handler.param().abi(), period, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateTimer(handler: P0, delay: super::super::Foundation::TimeSpan) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IThreadPoolTimerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTimer)(windows_core::Interface::as_raw(this), handler.into_param().abi(), delay, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTimer)(windows_core::Interface::as_raw(this), handler.param().abi(), delay, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreatePeriodicTimerWithCompletion(handler: P0, period: super::super::Foundation::TimeSpan, destroyed: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IThreadPoolTimerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePeriodicTimerWithCompletion)(windows_core::Interface::as_raw(this), handler.into_param().abi(), period, destroyed.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePeriodicTimerWithCompletion)(windows_core::Interface::as_raw(this), handler.param().abi(), period, destroyed.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateTimerWithCompletion(handler: P0, delay: super::super::Foundation::TimeSpan, destroyed: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IThreadPoolTimerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTimerWithCompletion)(windows_core::Interface::as_raw(this), handler.into_param().abi(), delay, destroyed.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTimerWithCompletion)(windows_core::Interface::as_raw(this), handler.param().abi(), delay, destroyed.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -229,10 +229,10 @@ impl TimerDestroyedHandler { } pub fn Invoke(&self, timer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), timer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), timer.param().abi()).ok() } } } #[repr(C)] @@ -289,10 +289,10 @@ impl TimerElapsedHandler { } pub fn Invoke(&self, timer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), timer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), timer.param().abi()).ok() } } } #[repr(C)] @@ -349,10 +349,10 @@ impl WorkItemHandler { } pub fn Invoke(&self, operation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), operation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), operation.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/System/Update/mod.rs b/crates/libs/windows/src/Windows/System/Update/mod.rs index 2ed7402c6b..d7f405cffe 100644 --- a/crates/libs/windows/src/Windows/System/Update/mod.rs +++ b/crates/libs/windows/src/Windows/System/Update/mod.rs @@ -192,11 +192,11 @@ impl SystemUpdateManager { } pub fn StateChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ISystemUpdateManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveStateChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs index 0f0678672b..e85a5d4112 100644 --- a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs +++ b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs @@ -303,11 +303,11 @@ impl AdvertisingManager { } pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAdvertisingManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -390,11 +390,11 @@ impl AssignedAccessSettings { } pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAssignedAccessSettingsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -442,11 +442,11 @@ impl DiagnosticsSettings { } pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDiagnosticsSettingsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -603,20 +603,20 @@ impl GlobalizationPreferences { #[cfg(feature = "Foundation_Collections")] pub fn TrySetLanguages(languagetags: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IGlobalizationPreferencesStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetLanguages)(windows_core::Interface::as_raw(this), languagetags.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TrySetLanguages)(windows_core::Interface::as_raw(this), languagetags.param().abi(), &mut result__).map(|| result__) }) } pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IGlobalizationPreferencesStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -714,11 +714,11 @@ pub struct LockScreen; impl LockScreen { pub fn RequestSetImageFeedAsync(syndicationfeeduri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILockScreenImageFeedStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestSetImageFeedAsync)(windows_core::Interface::as_raw(this), syndicationfeeduri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestSetImageFeedAsync)(windows_core::Interface::as_raw(this), syndicationfeeduri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn TryRemoveImageFeed() -> windows_core::Result { @@ -743,21 +743,21 @@ impl LockScreen { #[cfg(feature = "Storage")] pub fn SetImageFileAsync(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILockScreenStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetImageFileAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetImageFileAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn SetImageStreamAsync(value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILockScreenStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetImageStreamAsync)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetImageStreamAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -802,55 +802,55 @@ impl UserInformation { #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn SetAccountPictureAsync(image: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAccountPictureAsync)(windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAccountPictureAsync)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn SetAccountPicturesAsync(smallimage: P0, largeimage: P1, video: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAccountPicturesAsync)(windows_core::Interface::as_raw(this), smallimage.into_param().abi(), largeimage.into_param().abi(), video.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAccountPicturesAsync)(windows_core::Interface::as_raw(this), smallimage.param().abi(), largeimage.param().abi(), video.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetAccountPictureFromStreamAsync(image: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAccountPictureFromStreamAsync)(windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAccountPictureFromStreamAsync)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetAccountPicturesFromStreamsAsync(smallimage: P0, largeimage: P1, video: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAccountPicturesFromStreamsAsync)(windows_core::Interface::as_raw(this), smallimage.into_param().abi(), largeimage.into_param().abi(), video.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAccountPicturesFromStreamsAsync)(windows_core::Interface::as_raw(this), smallimage.param().abi(), largeimage.param().abi(), video.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "deprecated")] pub fn AccountPictureChanged(changehandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccountPictureChanged)(windows_core::Interface::as_raw(this), changehandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccountPictureChanged)(windows_core::Interface::as_raw(this), changehandler.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -918,23 +918,23 @@ impl UserProfilePersonalizationSettings { #[cfg(feature = "Storage")] pub fn TrySetLockScreenImageAsync(&self, imagefile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetLockScreenImageAsync)(windows_core::Interface::as_raw(this), imagefile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySetLockScreenImageAsync)(windows_core::Interface::as_raw(this), imagefile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage")] pub fn TrySetWallpaperImageAsync(&self, imagefile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySetWallpaperImageAsync)(windows_core::Interface::as_raw(this), imagefile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySetWallpaperImageAsync)(windows_core::Interface::as_raw(this), imagefile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Current() -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/System/mod.rs b/crates/libs/windows/src/Windows/System/mod.rs index e412091a67..6b5bc32a01 100644 --- a/crates/libs/windows/src/Windows/System/mod.rs +++ b/crates/libs/windows/src/Windows/System/mod.rs @@ -1247,12 +1247,12 @@ windows_core::imp::interface_hierarchy!(AppDiagnosticInfoWatcher, windows_core:: impl AppDiagnosticInfoWatcher { pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1261,12 +1261,12 @@ impl AppDiagnosticInfoWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1275,12 +1275,12 @@ impl AppDiagnosticInfoWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1289,12 +1289,12 @@ impl AppDiagnosticInfoWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1600,12 +1600,12 @@ windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcher, windows_cor impl AppResourceGroupInfoWatcher { pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1614,12 +1614,12 @@ impl AppResourceGroupInfoWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1628,12 +1628,12 @@ impl AppResourceGroupInfoWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1642,12 +1642,12 @@ impl AppResourceGroupInfoWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1656,12 +1656,12 @@ impl AppResourceGroupInfoWatcher { } pub fn ExecutionStateChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ExecutionStateChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ExecutionStateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveExecutionStateChanged(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1928,12 +1928,12 @@ impl AppUriHandlerRegistration { #[cfg(feature = "Foundation_Collections")] pub fn SetAppAddedHostsAsync(&self, hosts: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetAppAddedHostsAsync)(windows_core::Interface::as_raw(this), hosts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SetAppAddedHostsAsync)(windows_core::Interface::as_raw(this), hosts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -1947,10 +1947,10 @@ impl AppUriHandlerRegistration { #[cfg(feature = "Foundation_Collections")] pub fn UpdateHosts(&self, hosts: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).UpdateHosts)(windows_core::Interface::as_raw(this), hosts.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateHosts)(windows_core::Interface::as_raw(this), hosts.param().abi()).ok() } } pub fn PackageFamilyName(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2006,11 +2006,11 @@ impl AppUriHandlerRegistrationManager { } pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppUriHandlerRegistrationManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetForPackage(packagefamilyname: &windows_core::HSTRING) -> windows_core::Result { @@ -2021,11 +2021,11 @@ impl AppUriHandlerRegistrationManager { } pub fn GetForPackageForUser(packagefamilyname: &windows_core::HSTRING, user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAppUriHandlerRegistrationManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForPackageForUser)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForPackageForUser)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2079,32 +2079,32 @@ impl DispatcherQueue { } pub fn TryEnqueue(&self, callback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryEnqueue)(windows_core::Interface::as_raw(this), callback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryEnqueue)(windows_core::Interface::as_raw(this), callback.param().abi(), &mut result__).map(|| result__) } } pub fn TryEnqueueWithPriority(&self, priority: DispatcherQueuePriority, callback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryEnqueueWithPriority)(windows_core::Interface::as_raw(this), priority, callback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryEnqueueWithPriority)(windows_core::Interface::as_raw(this), priority, callback.param().abi(), &mut result__).map(|| result__) } } pub fn ShutdownStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShutdownStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShutdownStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShutdownStarting(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2113,12 +2113,12 @@ impl DispatcherQueue { } pub fn ShutdownCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShutdownCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ShutdownCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShutdownCompleted(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2268,12 +2268,12 @@ impl DispatcherQueueTimer { } pub fn Tick(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Tick)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Tick)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTick(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2454,113 +2454,113 @@ impl Launcher { #[cfg(feature = "Storage")] pub fn LaunchFileAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFileAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LaunchFileWithOptionsAsync(file: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFileWithOptionsAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFileWithOptionsAsync)(windows_core::Interface::as_raw(this), file.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchUriAsync(uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchUriWithOptionsAsync(uri: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriWithOptionsAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriWithOptionsAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchUriForResultsAsync(uri: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILauncherStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriForResultsAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriForResultsAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn LaunchUriForResultsWithDataAsync(uri: P0, options: P1, inputdata: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ILauncherStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriForResultsWithDataAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), options.into_param().abi(), inputdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriForResultsWithDataAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), options.param().abi(), inputdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn LaunchUriWithDataAsync(uri: P0, options: P1, inputdata: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ILauncherStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriWithDataAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), options.into_param().abi(), inputdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriWithDataAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), options.param().abi(), inputdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn QueryUriSupportAsync(uri: P0, launchquerysupporttype: LaunchQuerySupportType) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QueryUriSupportAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), launchquerysupporttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).QueryUriSupportAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), launchquerysupporttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn QueryUriSupportWithPackageFamilyNameAsync(uri: P0, launchquerysupporttype: LaunchQuerySupportType, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QueryUriSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), launchquerysupporttype, core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).QueryUriSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), launchquerysupporttype, core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn QueryFileSupportAsync(file: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QueryFileSupportAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).QueryFileSupportAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn QueryFileSupportWithPackageFamilyNameAsync(file: P0, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QueryFileSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), file.into_param().abi(), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).QueryFileSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] @@ -2587,108 +2587,108 @@ impl Launcher { #[cfg(feature = "Storage")] pub fn LaunchFolderAsync(folder: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFolderAsync)(windows_core::Interface::as_raw(this), folder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFolderAsync)(windows_core::Interface::as_raw(this), folder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage")] pub fn LaunchFolderWithOptionsAsync(folder: P0, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILauncherStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFolderWithOptionsAsync)(windows_core::Interface::as_raw(this), folder.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFolderWithOptionsAsync)(windows_core::Interface::as_raw(this), folder.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn QueryAppUriSupportAsync(uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QueryAppUriSupportAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).QueryAppUriSupportAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn QueryAppUriSupportWithPackageFamilyNameAsync(uri: P0, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).QueryAppUriSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).QueryAppUriSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindAppUriHandlersAsync(uri: P0) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FindAppUriHandlersAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).FindAppUriHandlersAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchUriForUserAsync(user: P0, uri: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchUriWithOptionsForUserAsync(user: P0, uri: P1, options: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriWithOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), uri.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriWithOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), uri.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn LaunchUriWithDataForUserAsync(user: P0, uri: P1, options: P2, inputdata: P3) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriWithDataForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), uri.into_param().abi(), options.into_param().abi(), inputdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriWithDataForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), uri.param().abi(), options.param().abi(), inputdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchUriForResultsForUserAsync(user: P0, uri: P1, options: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriForResultsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), uri.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriForResultsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), uri.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn LaunchUriForResultsWithDataForUserAsync(user: P0, uri: P1, options: P2, inputdata: P3) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { Self::ILauncherStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriForResultsWithDataForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), uri.into_param().abi(), options.into_param().abi(), inputdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriForResultsWithDataForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), uri.param().abi(), options.param().abi(), inputdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchFolderPathAsync(path: &windows_core::HSTRING) -> windows_core::Result> { @@ -2699,30 +2699,30 @@ impl Launcher { } pub fn LaunchFolderPathWithOptionsAsync(path: &windows_core::HSTRING, options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics5(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFolderPathWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(path), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFolderPathWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(path), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchFolderPathForUserAsync(user: P0, path: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ILauncherStatics5(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFolderPathForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFolderPathForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(path), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn LaunchFolderPathWithOptionsForUserAsync(user: P0, path: &windows_core::HSTRING, options: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ILauncherStatics5(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchFolderPathWithOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(path), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchFolderPathWithOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(path), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2827,10 +2827,10 @@ impl LauncherOptions { } pub fn SetFallbackUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFallbackUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFallbackUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentType(&self) -> windows_core::Result { let this = self; @@ -2865,10 +2865,10 @@ impl LauncherOptions { #[cfg(feature = "Storage_Search")] pub fn SetNeighboringFilesQuery(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNeighboringFilesQuery)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNeighboringFilesQuery)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IgnoreAppUriHandlers(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2932,10 +2932,10 @@ impl LauncherUIOptions { } pub fn SetInvocationPoint(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInvocationPoint)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInvocationPoint)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SelectionRect(&self) -> windows_core::Result> { let this = self; @@ -2946,10 +2946,10 @@ impl LauncherUIOptions { } pub fn SetSelectionRect(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSelectionRect)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSelectionRect)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Popups")] pub fn PreferredPlacement(&self) -> windows_core::Result { @@ -2999,11 +2999,11 @@ impl MemoryManager { } pub fn AppMemoryUsageIncreased(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMemoryManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppMemoryUsageIncreased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AppMemoryUsageIncreased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveAppMemoryUsageIncreased(token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3011,11 +3011,11 @@ impl MemoryManager { } pub fn AppMemoryUsageDecreased(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMemoryManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppMemoryUsageDecreased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AppMemoryUsageDecreased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveAppMemoryUsageDecreased(token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3023,11 +3023,11 @@ impl MemoryManager { } pub fn AppMemoryUsageLimitChanging(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IMemoryManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppMemoryUsageLimitChanging)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AppMemoryUsageLimitChanging)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveAppMemoryUsageLimitChanging(token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3091,11 +3091,11 @@ impl ProcessLauncher { } pub fn RunToCompletionAsyncWithOptions(filename: &windows_core::HSTRING, args: &windows_core::HSTRING, options: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProcessLauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RunToCompletionAsyncWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filename), core::mem::transmute_copy(args), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RunToCompletionAsyncWithOptions)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filename), core::mem::transmute_copy(args), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3130,10 +3130,10 @@ impl ProcessLauncherOptions { #[cfg(feature = "Storage_Streams")] pub fn SetStandardInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStandardInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStandardInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn StandardOutput(&self) -> windows_core::Result { @@ -3146,10 +3146,10 @@ impl ProcessLauncherOptions { #[cfg(feature = "Storage_Streams")] pub fn SetStandardOutput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStandardOutput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStandardOutput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn StandardError(&self) -> windows_core::Result { @@ -3162,10 +3162,10 @@ impl ProcessLauncherOptions { #[cfg(feature = "Storage_Streams")] pub fn SetStandardError(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStandardError)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStandardError)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn WorkingDirectory(&self) -> windows_core::Result { let this = self; @@ -3256,10 +3256,10 @@ impl ProtocolForResultsOperation { #[cfg(feature = "Foundation_Collections")] pub fn ReportCompleted(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReportCompleted)(windows_core::Interface::as_raw(this), data.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReportCompleted)(windows_core::Interface::as_raw(this), data.param().abi()).ok() } } } impl windows_core::RuntimeType for ProtocolForResultsOperation { @@ -3279,37 +3279,37 @@ impl RemoteLauncher { #[cfg(feature = "System_RemoteSystems")] pub fn LaunchUriAsync(remotesystemconnectionrequest: P0, uri: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IRemoteLauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.into_param().abi(), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.param().abi(), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System_RemoteSystems")] pub fn LaunchUriWithOptionsAsync(remotesystemconnectionrequest: P0, uri: P1, options: P2) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { Self::IRemoteLauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriWithOptionsAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.into_param().abi(), uri.into_param().abi(), options.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriWithOptionsAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.param().abi(), uri.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Foundation_Collections", feature = "System_RemoteSystems"))] pub fn LaunchUriWithDataAsync(remotesystemconnectionrequest: P0, uri: P1, options: P2, inputdata: P3) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { Self::IRemoteLauncherStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchUriWithDataAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.into_param().abi(), uri.into_param().abi(), options.into_param().abi(), inputdata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LaunchUriWithDataAsync)(windows_core::Interface::as_raw(this), remotesystemconnectionrequest.param().abi(), uri.param().abi(), options.param().abi(), inputdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3342,10 +3342,10 @@ impl RemoteLauncherOptions { } pub fn SetFallbackUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFallbackUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFallbackUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn PreferredAppIds(&self) -> windows_core::Result> { @@ -3482,12 +3482,12 @@ impl User { #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, values: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] @@ -3678,11 +3678,11 @@ impl UserDeviceAssociation { } pub fn UserDeviceAssociationChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IUserDeviceAssociationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UserDeviceAssociationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UserDeviceAssociationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveUserDeviceAssociationChanged(token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3768,10 +3768,10 @@ impl UserPicker { } pub fn SetSuggestedSelectedUser(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSuggestedSelectedUser)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSuggestedSelectedUser)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PickSingleUserAsync(&self) -> windows_core::Result> { let this = self; @@ -3826,12 +3826,12 @@ impl UserWatcher { } pub fn Added(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Added)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdded(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3840,12 +3840,12 @@ impl UserWatcher { } pub fn Removed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Removed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRemoved(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3854,12 +3854,12 @@ impl UserWatcher { } pub fn Updated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Updated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUpdated(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3868,12 +3868,12 @@ impl UserWatcher { } pub fn AuthenticationStatusChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticationStatusChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AuthenticationStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAuthenticationStatusChanged(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3882,12 +3882,12 @@ impl UserWatcher { } pub fn AuthenticationStatusChanging(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AuthenticationStatusChanging)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AuthenticationStatusChanging)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAuthenticationStatusChanging(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3896,12 +3896,12 @@ impl UserWatcher { } pub fn EnumerationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnumerationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3910,12 +3910,12 @@ impl UserWatcher { } pub fn Stopped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Stopped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStopped(&self, token: super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs b/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs index 4358081845..57f3afe1d2 100644 --- a/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs @@ -72,12 +72,12 @@ impl ScreenReaderService { } pub fn ScreenReaderPositionChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScreenReaderPositionChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScreenReaderPositionChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScreenReaderPositionChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs index 48c35164f4..74c0602772 100644 --- a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs @@ -284,12 +284,12 @@ windows_core::imp::interface_hierarchy!(AccountsSettingsPane, windows_core::IUnk impl AccountsSettingsPane { pub fn AccountCommandsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AccountCommandsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AccountCommandsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAccountCommandsRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -320,21 +320,21 @@ impl AccountsSettingsPane { #[cfg(feature = "System")] pub fn ShowManageAccountsForUserAsync(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAccountsSettingsPaneStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowManageAccountsForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowManageAccountsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "System")] pub fn ShowAddAccountForUserAsync(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAccountsSettingsPaneStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShowAddAccountForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ShowAddAccountForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -480,22 +480,22 @@ impl CredentialCommand { #[cfg(feature = "Security_Credentials")] pub fn CreateCredentialCommand(passwordcredential: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICredentialCommandFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCredentialCommand)(windows_core::Interface::as_raw(this), passwordcredential.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCredentialCommand)(windows_core::Interface::as_raw(this), passwordcredential.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Security_Credentials")] pub fn CreateCredentialCommandWithHandler(passwordcredential: P0, deleted: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ICredentialCommandFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCredentialCommandWithHandler)(windows_core::Interface::as_raw(this), passwordcredential.into_param().abi(), deleted.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCredentialCommandWithHandler)(windows_core::Interface::as_raw(this), passwordcredential.param().abi(), deleted.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -527,12 +527,12 @@ impl SettingsCommand { #[cfg(feature = "UI_Popups")] pub fn CreateSettingsCommand(settingscommandid: P0, label: &windows_core::HSTRING, handler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISettingsCommandFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSettingsCommand)(windows_core::Interface::as_raw(this), settingscommandid.into_param().abi(), core::mem::transmute_copy(label), handler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSettingsCommand)(windows_core::Interface::as_raw(this), settingscommandid.param().abi(), core::mem::transmute_copy(label), handler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "UI_Popups")] @@ -566,10 +566,10 @@ impl SettingsCommand { #[cfg(feature = "UI_Popups")] pub fn SetInvoked(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Popups")] pub fn Id(&self) -> windows_core::Result { @@ -582,10 +582,10 @@ impl SettingsCommand { #[cfg(feature = "UI_Popups")] pub fn SetId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[doc(hidden)] pub fn ISettingsCommandFactory windows_core::Result>(callback: F) -> windows_core::Result { @@ -622,12 +622,12 @@ impl SettingsPane { #[cfg(feature = "deprecated")] pub fn CommandsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CommandsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CommandsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "deprecated")] @@ -763,12 +763,12 @@ impl WebAccountCommand { #[cfg(feature = "Security_Credentials")] pub fn CreateWebAccountCommand(webaccount: P0, invoked: P1, actions: SupportedWebAccountActions) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAccountCommandFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWebAccountCommand)(windows_core::Interface::as_raw(this), webaccount.into_param().abi(), invoked.into_param().abi(), actions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWebAccountCommand)(windows_core::Interface::as_raw(this), webaccount.param().abi(), invoked.param().abi(), actions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -833,12 +833,12 @@ impl WebAccountProviderCommand { #[cfg(feature = "Security_Credentials")] pub fn CreateWebAccountProviderCommand(webaccountprovider: P0, invoked: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IWebAccountProviderCommandFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWebAccountProviderCommand)(windows_core::Interface::as_raw(this), webaccountprovider.into_param().abi(), invoked.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWebAccountProviderCommand)(windows_core::Interface::as_raw(this), webaccountprovider.param().abi(), invoked.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -964,10 +964,10 @@ impl CredentialCommandCredentialDeletedHandler { } pub fn Invoke(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.param().abi()).ok() } } } #[repr(C)] @@ -1024,11 +1024,11 @@ impl WebAccountCommandInvokedHandler { } pub fn Invoke(&self, command: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.param().abi(), args.param().abi()).ok() } } } #[repr(C)] @@ -1085,10 +1085,10 @@ impl WebAccountProviderCommandInvokedHandler { } pub fn Invoke(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/UI/Composition/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Core/mod.rs index 4a736df601..08a5c26f72 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Core/mod.rs @@ -48,12 +48,12 @@ impl CompositorController { } pub fn CommitNeeded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CommitNeeded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CommitNeeded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCommitNeeded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs index b82ca6a32f..1b2669d9fb 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs @@ -15,10 +15,10 @@ windows_core::imp::required_hierarchy!(DesktopWindowTarget, super::IAnimationObj impl DesktopWindowTarget { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -48,10 +48,10 @@ impl DesktopWindowTarget { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -77,24 +77,24 @@ impl DesktopWindowTarget { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -113,11 +113,11 @@ impl DesktopWindowTarget { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Root(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -128,10 +128,10 @@ impl DesktopWindowTarget { } pub fn SetRoot(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetRoot)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRoot)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsTopmost(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/UI/Composition/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Diagnostics/mod.rs index 92c859ccaf..931bb47c4a 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Diagnostics/mod.rs @@ -35,31 +35,31 @@ windows_core::imp::interface_hierarchy!(CompositionDebugHeatMaps, windows_core:: impl CompositionDebugHeatMaps { pub fn Hide(&self, subtree: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Hide)(windows_core::Interface::as_raw(this), subtree.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Hide)(windows_core::Interface::as_raw(this), subtree.param().abi()).ok() } } pub fn ShowMemoryUsage(&self, subtree: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ShowMemoryUsage)(windows_core::Interface::as_raw(this), subtree.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ShowMemoryUsage)(windows_core::Interface::as_raw(this), subtree.param().abi()).ok() } } pub fn ShowOverdraw(&self, subtree: P0, contentkinds: CompositionDebugOverdrawContentKinds) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ShowOverdraw)(windows_core::Interface::as_raw(this), subtree.into_param().abi(), contentkinds).ok() } + unsafe { (windows_core::Interface::vtable(this).ShowOverdraw)(windows_core::Interface::as_raw(this), subtree.param().abi(), contentkinds).ok() } } pub fn ShowRedraw(&self, subtree: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ShowRedraw)(windows_core::Interface::as_raw(this), subtree.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ShowRedraw)(windows_core::Interface::as_raw(this), subtree.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionDebugHeatMaps { @@ -88,11 +88,11 @@ impl CompositionDebugSettings { } pub fn TryGetSettings(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionDebugSettingsStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetSettings)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetSettings)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/Composition/Effects/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Effects/mod.rs index 16b7319982..262bca0c5c 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Effects/mod.rs @@ -92,10 +92,10 @@ impl SceneLightingEffect { #[cfg(feature = "Graphics_Effects")] pub fn SetNormalMapSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNormalMapSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNormalMapSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SpecularAmount(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs index 3c640c4ca9..fdb59e2345 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs @@ -387,51 +387,51 @@ windows_core::imp::interface_hierarchy!(IInteractionTrackerOwner, windows_core:: impl IInteractionTrackerOwner { pub fn CustomAnimationStateEntered(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CustomAnimationStateEntered)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CustomAnimationStateEntered)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } pub fn IdleStateEntered(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).IdleStateEntered)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).IdleStateEntered)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } pub fn InertiaStateEntered(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InertiaStateEntered)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InertiaStateEntered)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } pub fn InteractingStateEntered(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InteractingStateEntered)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InteractingStateEntered)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } pub fn RequestIgnored(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RequestIgnored)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RequestIgnored)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } pub fn ValuesChanged(&self, sender: P0, args: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ValuesChanged)(windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ValuesChanged)(windows_core::Interface::as_raw(this), sender.param().abi(), args.param().abi()).ok() } } } impl windows_core::RuntimeType for IInteractionTrackerOwner { @@ -644,10 +644,10 @@ windows_core::imp::required_hierarchy!(CompositionConditionalValue, super::IAnim impl CompositionConditionalValue { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -662,10 +662,10 @@ impl CompositionConditionalValue { } pub fn SetCondition(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Value(&self) -> windows_core::Result { let this = self; @@ -676,18 +676,18 @@ impl CompositionConditionalValue { } pub fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionConditionalValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Compositor(&self) -> windows_core::Result { @@ -714,10 +714,10 @@ impl CompositionConditionalValue { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -743,24 +743,24 @@ impl CompositionConditionalValue { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -779,11 +779,11 @@ impl CompositionConditionalValue { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[doc(hidden)] pub fn ICompositionConditionalValueStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -812,10 +812,10 @@ windows_core::imp::required_hierarchy!(CompositionInteractionSourceCollection, s impl CompositionInteractionSourceCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -830,17 +830,17 @@ impl CompositionInteractionSourceCollection { } pub fn Add(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Remove(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAll(&self) -> windows_core::Result<()> { let this = self; @@ -870,10 +870,10 @@ impl CompositionInteractionSourceCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -899,24 +899,24 @@ impl CompositionInteractionSourceCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -935,11 +935,11 @@ impl CompositionInteractionSourceCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -986,10 +986,10 @@ windows_core::imp::required_hierarchy!(InteractionSourceConfiguration, super::IA impl InteractionSourceConfiguration { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1019,10 +1019,10 @@ impl InteractionSourceConfiguration { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1048,24 +1048,24 @@ impl InteractionSourceConfiguration { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1084,11 +1084,11 @@ impl InteractionSourceConfiguration { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn PositionXSourceMode(&self) -> windows_core::Result { let this = self; @@ -1144,10 +1144,10 @@ windows_core::imp::required_hierarchy!(InteractionTracker, super::IAnimationObje impl InteractionTracker { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1177,10 +1177,10 @@ impl InteractionTracker { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1206,24 +1206,24 @@ impl InteractionTracker { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1242,11 +1242,11 @@ impl InteractionTracker { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn InteractionSources(&self) -> windows_core::Result { let this = self; @@ -1351,10 +1351,10 @@ impl InteractionTracker { #[cfg(feature = "Foundation_Numerics")] pub fn SetPositionInertiaDecayRate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPositionInertiaDecayRate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPositionInertiaDecayRate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn PositionVelocityInPixelsPerSecond(&self) -> windows_core::Result { @@ -1380,10 +1380,10 @@ impl InteractionTracker { } pub fn SetScaleInertiaDecayRate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetScaleInertiaDecayRate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetScaleInertiaDecayRate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ScaleVelocityInPercentPerSecond(&self) -> windows_core::Result { let this = self; @@ -1403,26 +1403,26 @@ impl InteractionTracker { #[cfg(feature = "Foundation_Collections")] pub fn ConfigurePositionXInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ConfigurePositionXInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigurePositionXInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigurePositionYInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ConfigurePositionYInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigurePositionYInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigureScaleInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ConfigureScaleInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureScaleInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn TryUpdatePosition(&self, value: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result { @@ -1442,12 +1442,12 @@ impl InteractionTracker { } pub fn TryUpdatePositionWithAnimation(&self, animation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryUpdatePositionWithAnimation)(windows_core::Interface::as_raw(this), animation.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryUpdatePositionWithAnimation)(windows_core::Interface::as_raw(this), animation.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Numerics")] @@ -1469,12 +1469,12 @@ impl InteractionTracker { #[cfg(feature = "Foundation_Numerics")] pub fn TryUpdateScaleWithAnimation(&self, animation: P0, centerpoint: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryUpdateScaleWithAnimation)(windows_core::Interface::as_raw(this), animation.into_param().abi(), centerpoint, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TryUpdateScaleWithAnimation)(windows_core::Interface::as_raw(this), animation.param().abi(), centerpoint, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Numerics")] @@ -1488,26 +1488,26 @@ impl InteractionTracker { #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointXInertiaModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointXInertiaModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointXInertiaModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointYInertiaModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointYInertiaModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointYInertiaModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigureVector2PositionInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureVector2PositionInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureVector2PositionInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn TryUpdatePositionWithOption(&self, value: super::super::super::Foundation::Numerics::Vector3, option: InteractionTrackerClampingOption) -> windows_core::Result { @@ -1542,38 +1542,38 @@ impl InteractionTracker { } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInteractionTrackerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithOwner(compositor: P0, owner: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IInteractionTrackerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithOwner)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), owner.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithOwner)(windows_core::Interface::as_raw(this), compositor.param().abi(), owner.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn SetBindingMode(boundtracker1: P0, boundtracker2: P1, axismode: InteractionBindingAxisModes) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - Self::IInteractionTrackerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetBindingMode)(windows_core::Interface::as_raw(this), boundtracker1.into_param().abi(), boundtracker2.into_param().abi(), axismode).ok() }) + Self::IInteractionTrackerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetBindingMode)(windows_core::Interface::as_raw(this), boundtracker1.param().abi(), boundtracker2.param().abi(), axismode).ok() }) } pub fn GetBindingMode(boundtracker1: P0, boundtracker2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IInteractionTrackerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetBindingMode)(windows_core::Interface::as_raw(this), boundtracker1.into_param().abi(), boundtracker2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetBindingMode)(windows_core::Interface::as_raw(this), boundtracker1.param().abi(), boundtracker2.param().abi(), &mut result__).map(|| result__) }) } #[doc(hidden)] @@ -1671,10 +1671,10 @@ windows_core::imp::required_hierarchy!(InteractionTrackerInertiaModifier, super: impl InteractionTrackerInertiaModifier { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1704,10 +1704,10 @@ impl InteractionTrackerInertiaModifier { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1733,24 +1733,24 @@ impl InteractionTrackerInertiaModifier { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1769,11 +1769,11 @@ impl InteractionTrackerInertiaModifier { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for InteractionTrackerInertiaModifier { @@ -1796,10 +1796,10 @@ windows_core::imp::required_hierarchy!(InteractionTrackerInertiaMotion, super::I impl InteractionTrackerInertiaMotion { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1829,10 +1829,10 @@ impl InteractionTrackerInertiaMotion { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1858,24 +1858,24 @@ impl InteractionTrackerInertiaMotion { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1894,11 +1894,11 @@ impl InteractionTrackerInertiaMotion { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Condition(&self) -> windows_core::Result { let this = self; @@ -1909,10 +1909,10 @@ impl InteractionTrackerInertiaMotion { } pub fn SetCondition(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Motion(&self) -> windows_core::Result { let this = self; @@ -1923,18 +1923,18 @@ impl InteractionTrackerInertiaMotion { } pub fn SetMotion(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMotion)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMotion)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInteractionTrackerInertiaMotionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1963,10 +1963,10 @@ windows_core::imp::required_hierarchy!(InteractionTrackerInertiaNaturalMotion, s impl InteractionTrackerInertiaNaturalMotion { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1996,10 +1996,10 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2025,24 +2025,24 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2061,11 +2061,11 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Condition(&self) -> windows_core::Result { let this = self; @@ -2076,10 +2076,10 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn SetCondition(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NaturalMotion(&self) -> windows_core::Result { let this = self; @@ -2090,18 +2090,18 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn SetNaturalMotion(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNaturalMotion)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNaturalMotion)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInteractionTrackerInertiaNaturalMotionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2130,10 +2130,10 @@ windows_core::imp::required_hierarchy!(InteractionTrackerInertiaRestingValue, su impl InteractionTrackerInertiaRestingValue { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2163,10 +2163,10 @@ impl InteractionTrackerInertiaRestingValue { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2192,24 +2192,24 @@ impl InteractionTrackerInertiaRestingValue { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2228,11 +2228,11 @@ impl InteractionTrackerInertiaRestingValue { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Condition(&self) -> windows_core::Result { let this = self; @@ -2243,10 +2243,10 @@ impl InteractionTrackerInertiaRestingValue { } pub fn SetCondition(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RestingValue(&self) -> windows_core::Result { let this = self; @@ -2257,18 +2257,18 @@ impl InteractionTrackerInertiaRestingValue { } pub fn SetRestingValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRestingValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRestingValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInteractionTrackerInertiaRestingValueStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2478,10 +2478,10 @@ windows_core::imp::required_hierarchy!(InteractionTrackerVector2InertiaModifier, impl InteractionTrackerVector2InertiaModifier { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2511,10 +2511,10 @@ impl InteractionTrackerVector2InertiaModifier { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2540,24 +2540,24 @@ impl InteractionTrackerVector2InertiaModifier { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2576,11 +2576,11 @@ impl InteractionTrackerVector2InertiaModifier { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for InteractionTrackerVector2InertiaModifier { @@ -2603,10 +2603,10 @@ windows_core::imp::required_hierarchy!(InteractionTrackerVector2InertiaNaturalMo impl InteractionTrackerVector2InertiaNaturalMotion { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2636,10 +2636,10 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2665,24 +2665,24 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2701,11 +2701,11 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Condition(&self) -> windows_core::Result { let this = self; @@ -2716,10 +2716,10 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn SetCondition(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCondition)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NaturalMotion(&self) -> windows_core::Result { let this = self; @@ -2730,18 +2730,18 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn SetNaturalMotion(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNaturalMotion)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNaturalMotion)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInteractionTrackerVector2InertiaNaturalMotionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2770,10 +2770,10 @@ windows_core::imp::required_hierarchy!(VisualInteractionSource, super::IAnimatio impl VisualInteractionSource { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2803,10 +2803,10 @@ impl VisualInteractionSource { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2832,24 +2832,24 @@ impl VisualInteractionSource { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2868,11 +2868,11 @@ impl VisualInteractionSource { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn IsPositionXRailsEnabled(&self) -> windows_core::Result { let this = self; @@ -2983,10 +2983,10 @@ impl VisualInteractionSource { #[cfg(feature = "UI_Input")] pub fn TryRedirectForManipulation(&self, pointerpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).TryRedirectForManipulation)(windows_core::Interface::as_raw(this), pointerpoint.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).TryRedirectForManipulation)(windows_core::Interface::as_raw(this), pointerpoint.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn DeltaPosition(&self) -> windows_core::Result { @@ -3036,42 +3036,42 @@ impl VisualInteractionSource { #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointXModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointXModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointXModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointYModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointYModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointYModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaPositionXModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaPositionXModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaPositionXModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaPositionYModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaPositionYModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaPositionYModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaScaleModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaScaleModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaScaleModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } pub fn PointerWheelConfig(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3082,20 +3082,20 @@ impl VisualInteractionSource { } pub fn Create(source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVisualInteractionSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromIVisualElement(source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IVisualInteractionSourceStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIVisualElement)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIVisualElement)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs index 5bb3cb0838..4d0aa70208 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs @@ -380,10 +380,10 @@ windows_core::imp::required_hierarchy!(SceneBoundingBox, super::IAnimationObject impl SceneBoundingBox { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -413,10 +413,10 @@ impl SceneBoundingBox { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -442,24 +442,24 @@ impl SceneBoundingBox { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -478,11 +478,11 @@ impl SceneBoundingBox { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn Center(&self) -> windows_core::Result { @@ -545,10 +545,10 @@ windows_core::imp::required_hierarchy!(SceneComponent, super::IAnimationObject, impl SceneComponent { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -578,10 +578,10 @@ impl SceneComponent { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -607,24 +607,24 @@ impl SceneComponent { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -643,11 +643,11 @@ impl SceneComponent { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn ComponentType(&self) -> windows_core::Result { let this = self; @@ -681,10 +681,10 @@ windows_core::imp::required_hierarchy!(SceneComponentCollection, super::IAnimati impl SceneComponentCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -714,10 +714,10 @@ impl SceneComponentCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -743,24 +743,24 @@ impl SceneComponentCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -779,11 +779,11 @@ impl SceneComponentCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -820,29 +820,29 @@ impl SceneComponentCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -852,10 +852,10 @@ impl SceneComponentCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -922,10 +922,10 @@ windows_core::imp::required_hierarchy!(SceneMaterial, super::IAnimationObject, s impl SceneMaterial { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -955,10 +955,10 @@ impl SceneMaterial { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -984,24 +984,24 @@ impl SceneMaterial { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1020,11 +1020,11 @@ impl SceneMaterial { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for SceneMaterial { @@ -1047,10 +1047,10 @@ windows_core::imp::required_hierarchy!(SceneMaterialInput, super::IAnimationObje impl SceneMaterialInput { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1080,10 +1080,10 @@ impl SceneMaterialInput { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1109,24 +1109,24 @@ impl SceneMaterialInput { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1145,11 +1145,11 @@ impl SceneMaterialInput { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for SceneMaterialInput { @@ -1172,10 +1172,10 @@ windows_core::imp::required_hierarchy!(SceneMesh, super::IAnimationObject, super impl SceneMesh { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1205,10 +1205,10 @@ impl SceneMesh { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1234,24 +1234,24 @@ impl SceneMesh { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1270,11 +1270,11 @@ impl SceneMesh { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Bounds(&self) -> windows_core::Result { let this = self; @@ -1299,18 +1299,18 @@ impl SceneMesh { #[cfg(feature = "Graphics_DirectX")] pub fn FillMeshAttribute(&self, semantic: SceneAttributeSemantic, format: super::super::super::Graphics::DirectX::DirectXPixelFormat, memory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).FillMeshAttribute)(windows_core::Interface::as_raw(this), semantic, format, memory.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).FillMeshAttribute)(windows_core::Interface::as_raw(this), semantic, format, memory.param().abi()).ok() } } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISceneMeshStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1340,10 +1340,10 @@ windows_core::imp::required_hierarchy!(SceneMeshMaterialAttributeMap, super::IAn impl SceneMeshMaterialAttributeMap { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1373,10 +1373,10 @@ impl SceneMeshMaterialAttributeMap { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1402,24 +1402,24 @@ impl SceneMeshMaterialAttributeMap { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1438,11 +1438,11 @@ impl SceneMeshMaterialAttributeMap { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result>> { @@ -1539,10 +1539,10 @@ windows_core::imp::required_hierarchy!(SceneMeshRendererComponent, super::IAnima impl SceneMeshRendererComponent { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1572,10 +1572,10 @@ impl SceneMeshRendererComponent { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1601,24 +1601,24 @@ impl SceneMeshRendererComponent { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1637,11 +1637,11 @@ impl SceneMeshRendererComponent { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn ComponentType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1659,10 +1659,10 @@ impl SceneMeshRendererComponent { } pub fn SetMaterial(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaterial)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaterial)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Mesh(&self) -> windows_core::Result { let this = self; @@ -1673,10 +1673,10 @@ impl SceneMeshRendererComponent { } pub fn SetMesh(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMesh)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMesh)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn UVMappings(&self) -> windows_core::Result { let this = self; @@ -1687,11 +1687,11 @@ impl SceneMeshRendererComponent { } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISceneMeshRendererComponentStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1720,10 +1720,10 @@ windows_core::imp::required_hierarchy!(SceneMetallicRoughnessMaterial, super::IA impl SceneMetallicRoughnessMaterial { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1753,10 +1753,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -1782,24 +1782,24 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -1818,11 +1818,11 @@ impl SceneMetallicRoughnessMaterial { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn BaseColorInput(&self) -> windows_core::Result { let this = self; @@ -1833,10 +1833,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetBaseColorInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBaseColorInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseColorInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn BaseColorFactor(&self) -> windows_core::Result { @@ -1871,10 +1871,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetMetallicRoughnessInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMetallicRoughnessInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMetallicRoughnessInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RoughnessFactor(&self) -> windows_core::Result { let this = self; @@ -1889,11 +1889,11 @@ impl SceneMetallicRoughnessMaterial { } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISceneMetallicRoughnessMaterialStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn AlphaCutoff(&self) -> windows_core::Result { @@ -1927,10 +1927,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetEmissiveInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetEmissiveInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEmissiveInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn EmissiveFactor(&self) -> windows_core::Result { @@ -1965,10 +1965,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetNormalInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNormalInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNormalInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NormalScale(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1990,10 +1990,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetOcclusionInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetOcclusionInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOcclusionInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OcclusionStrength(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2032,10 +2032,10 @@ windows_core::imp::required_hierarchy!(SceneModelTransform, super::IAnimationObj impl SceneModelTransform { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2065,10 +2065,10 @@ impl SceneModelTransform { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2094,24 +2094,24 @@ impl SceneModelTransform { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2130,11 +2130,11 @@ impl SceneModelTransform { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> windows_core::Result { @@ -2231,10 +2231,10 @@ windows_core::imp::required_hierarchy!(SceneNode, super::IAnimationObject, super impl SceneNode { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2264,10 +2264,10 @@ impl SceneNode { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2293,24 +2293,24 @@ impl SceneNode { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2329,11 +2329,11 @@ impl SceneNode { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { @@ -2374,11 +2374,11 @@ impl SceneNode { } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISceneNodeStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2411,10 +2411,10 @@ windows_core::imp::required_hierarchy!(SceneNodeCollection, super::IAnimationObj impl SceneNodeCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2444,10 +2444,10 @@ impl SceneNodeCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2473,24 +2473,24 @@ impl SceneNodeCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2509,11 +2509,11 @@ impl SceneNodeCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -2550,29 +2550,29 @@ impl SceneNodeCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -2582,10 +2582,10 @@ impl SceneNodeCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -2652,10 +2652,10 @@ windows_core::imp::required_hierarchy!(SceneObject, super::IAnimationObject, sup impl SceneObject { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2685,10 +2685,10 @@ impl SceneObject { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2714,24 +2714,24 @@ impl SceneObject { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2750,11 +2750,11 @@ impl SceneObject { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for SceneObject { @@ -2777,10 +2777,10 @@ windows_core::imp::required_hierarchy!(ScenePbrMaterial, super::IAnimationObject impl ScenePbrMaterial { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2810,10 +2810,10 @@ impl ScenePbrMaterial { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2839,24 +2839,24 @@ impl ScenePbrMaterial { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2875,11 +2875,11 @@ impl ScenePbrMaterial { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn AlphaCutoff(&self) -> windows_core::Result { let this = self; @@ -2912,10 +2912,10 @@ impl ScenePbrMaterial { } pub fn SetEmissiveInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEmissiveInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEmissiveInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn EmissiveFactor(&self) -> windows_core::Result { @@ -2950,10 +2950,10 @@ impl ScenePbrMaterial { } pub fn SetNormalInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetNormalInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNormalInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NormalScale(&self) -> windows_core::Result { let this = self; @@ -2975,10 +2975,10 @@ impl ScenePbrMaterial { } pub fn SetOcclusionInput(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOcclusionInput)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOcclusionInput)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn OcclusionStrength(&self) -> windows_core::Result { let this = self; @@ -3012,10 +3012,10 @@ windows_core::imp::required_hierarchy!(SceneRendererComponent, super::IAnimation impl SceneRendererComponent { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3045,10 +3045,10 @@ impl SceneRendererComponent { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3074,24 +3074,24 @@ impl SceneRendererComponent { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3110,11 +3110,11 @@ impl SceneRendererComponent { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn ComponentType(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3144,10 +3144,10 @@ windows_core::imp::required_hierarchy!(SceneSurfaceMaterialInput, super::IAnimat impl SceneSurfaceMaterialInput { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3177,10 +3177,10 @@ impl SceneSurfaceMaterialInput { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3206,24 +3206,24 @@ impl SceneSurfaceMaterialInput { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3242,11 +3242,11 @@ impl SceneSurfaceMaterialInput { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn BitmapInterpolationMode(&self) -> windows_core::Result { let this = self; @@ -3268,10 +3268,10 @@ impl SceneSurfaceMaterialInput { } pub fn SetSurface(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSurface)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSurface)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn WrappingUMode(&self) -> windows_core::Result { let this = self; @@ -3297,11 +3297,11 @@ impl SceneSurfaceMaterialInput { } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISceneSurfaceMaterialInputStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3330,10 +3330,10 @@ windows_core::imp::required_hierarchy!(SceneVisual, super::IAnimationObject, sup impl SceneVisual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3363,10 +3363,10 @@ impl SceneVisual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3392,24 +3392,24 @@ impl SceneVisual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3428,11 +3428,11 @@ impl SceneVisual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3450,18 +3450,18 @@ impl SceneVisual { } pub fn SetRoot(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRoot)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRoot)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISceneVisualStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] @@ -3521,10 +3521,10 @@ impl SceneVisual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3675,10 +3675,10 @@ impl SceneVisual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/UI/Composition/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/mod.rs index 6be8b46ff6..b5f234cc7e 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/mod.rs @@ -61,10 +61,10 @@ windows_core::imp::interface_hierarchy!(IAnimationObject, windows_core::IUnknown impl IAnimationObject { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } } impl windows_core::RuntimeType for IAnimationObject { @@ -1399,10 +1399,10 @@ impl ICompositionSupportsSystemBackdrop { } pub fn SetSystemBackdrop(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSystemBackdrop)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSystemBackdrop)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for ICompositionSupportsSystemBackdrop { @@ -2853,10 +2853,10 @@ impl AmbientLight { } pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2911,10 +2911,10 @@ impl AmbientLight { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2940,24 +2940,24 @@ impl AmbientLight { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -2976,11 +2976,11 @@ impl AmbientLight { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for AmbientLight { @@ -3056,10 +3056,10 @@ impl AnimationController { } pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3089,10 +3089,10 @@ impl AnimationController { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3118,24 +3118,24 @@ impl AnimationController { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3154,11 +3154,11 @@ impl AnimationController { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[doc(hidden)] pub fn IAnimationControllerStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -3186,10 +3186,10 @@ windows_core::imp::required_hierarchy!(AnimationPropertyInfo, IAnimationObject, impl AnimationPropertyInfo { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn AccessMode(&self) -> windows_core::Result { let this = self; @@ -3244,10 +3244,10 @@ impl AnimationPropertyInfo { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3273,24 +3273,24 @@ impl AnimationPropertyInfo { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3309,11 +3309,11 @@ impl AnimationPropertyInfo { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for AnimationPropertyInfo { @@ -3336,10 +3336,10 @@ windows_core::imp::required_hierarchy!(BackEasingFunction, IAnimationObject, sup impl BackEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Mode(&self) -> windows_core::Result { let this = self; @@ -3383,10 +3383,10 @@ impl BackEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3412,24 +3412,24 @@ impl BackEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3448,11 +3448,11 @@ impl BackEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for BackEasingFunction { @@ -3475,10 +3475,10 @@ windows_core::imp::required_hierarchy!(BooleanKeyFrameAnimation, IAnimationObjec impl BooleanKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: bool) -> windows_core::Result<()> { let this = self; @@ -3517,10 +3517,10 @@ impl BooleanKeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3566,10 +3566,10 @@ impl BooleanKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3595,10 +3595,10 @@ impl BooleanKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3624,24 +3624,24 @@ impl BooleanKeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3660,11 +3660,11 @@ impl BooleanKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3734,10 +3734,10 @@ impl BooleanKeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -3782,10 +3782,10 @@ windows_core::imp::required_hierarchy!(BounceEasingFunction, IAnimationObject, s impl BounceEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Mode(&self) -> windows_core::Result { let this = self; @@ -3836,10 +3836,10 @@ impl BounceEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -3865,24 +3865,24 @@ impl BounceEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -3901,11 +3901,11 @@ impl BounceEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for BounceEasingFunction { @@ -3928,10 +3928,10 @@ windows_core::imp::required_hierarchy!(BounceScalarNaturalMotionAnimation, IAnim impl BounceScalarNaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Acceleration(&self) -> windows_core::Result { let this = self; @@ -3988,10 +3988,10 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4037,10 +4037,10 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4066,10 +4066,10 @@ impl BounceScalarNaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4095,24 +4095,24 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -4131,11 +4131,11 @@ impl BounceScalarNaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4179,10 +4179,10 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InitialValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -4193,10 +4193,10 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InitialVelocity(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4230,10 +4230,10 @@ windows_core::imp::required_hierarchy!(BounceVector2NaturalMotionAnimation, IAni impl BounceVector2NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Acceleration(&self) -> windows_core::Result { let this = self; @@ -4290,10 +4290,10 @@ impl BounceVector2NaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4339,10 +4339,10 @@ impl BounceVector2NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4368,10 +4368,10 @@ impl BounceVector2NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4397,24 +4397,24 @@ impl BounceVector2NaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -4433,11 +4433,11 @@ impl BounceVector2NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4483,10 +4483,10 @@ impl BounceVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> windows_core::Result> { @@ -4499,10 +4499,10 @@ impl BounceVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> windows_core::Result { @@ -4538,10 +4538,10 @@ windows_core::imp::required_hierarchy!(BounceVector3NaturalMotionAnimation, IAni impl BounceVector3NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Acceleration(&self) -> windows_core::Result { let this = self; @@ -4598,10 +4598,10 @@ impl BounceVector3NaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4647,10 +4647,10 @@ impl BounceVector3NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4676,10 +4676,10 @@ impl BounceVector3NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4705,24 +4705,24 @@ impl BounceVector3NaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -4741,11 +4741,11 @@ impl BounceVector3NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -4791,10 +4791,10 @@ impl BounceVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> windows_core::Result> { @@ -4807,10 +4807,10 @@ impl BounceVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> windows_core::Result { @@ -4846,10 +4846,10 @@ windows_core::imp::required_hierarchy!(CircleEasingFunction, IAnimationObject, s impl CircleEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Mode(&self) -> windows_core::Result { let this = self; @@ -4886,10 +4886,10 @@ impl CircleEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -4915,24 +4915,24 @@ impl CircleEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -4951,11 +4951,11 @@ impl CircleEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CircleEasingFunction { @@ -4978,10 +4978,10 @@ windows_core::imp::required_hierarchy!(ColorKeyFrameAnimation, IAnimationObject, impl ColorKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5004,10 +5004,10 @@ impl ColorKeyFrameAnimation { } pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::Color, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.param().abi()).ok() } } pub fn ClearAllParameters(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5038,10 +5038,10 @@ impl ColorKeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5087,10 +5087,10 @@ impl ColorKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -5116,10 +5116,10 @@ impl ColorKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5145,24 +5145,24 @@ impl ColorKeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -5181,11 +5181,11 @@ impl ColorKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -5255,10 +5255,10 @@ impl ColorKeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -5303,10 +5303,10 @@ windows_core::imp::required_hierarchy!(CompositionAnimation, IAnimationObject, s impl CompositionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5341,10 +5341,10 @@ impl CompositionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = self; @@ -5390,10 +5390,10 @@ impl CompositionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -5419,10 +5419,10 @@ impl CompositionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5448,24 +5448,24 @@ impl CompositionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -5484,11 +5484,11 @@ impl CompositionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionAnimation { @@ -5512,10 +5512,10 @@ windows_core::imp::required_hierarchy!(CompositionAnimationGroup, IAnimationObje impl CompositionAnimationGroup { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5530,17 +5530,17 @@ impl CompositionAnimationGroup { } pub fn Add(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Remove(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAll(&self) -> windows_core::Result<()> { let this = self; @@ -5570,10 +5570,10 @@ impl CompositionAnimationGroup { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5599,24 +5599,24 @@ impl CompositionAnimationGroup { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -5635,11 +5635,11 @@ impl CompositionAnimationGroup { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -5686,10 +5686,10 @@ windows_core::imp::required_hierarchy!(CompositionBackdropBrush, IAnimationObjec impl CompositionBackdropBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5719,10 +5719,10 @@ impl CompositionBackdropBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5748,24 +5748,24 @@ impl CompositionBackdropBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -5784,11 +5784,11 @@ impl CompositionBackdropBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionBackdropBrush { @@ -5811,10 +5811,10 @@ windows_core::imp::required_hierarchy!(CompositionBatchCompletedEventArgs, IAnim impl CompositionBatchCompletedEventArgs { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5844,10 +5844,10 @@ impl CompositionBatchCompletedEventArgs { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5873,24 +5873,24 @@ impl CompositionBatchCompletedEventArgs { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -5909,11 +5909,11 @@ impl CompositionBatchCompletedEventArgs { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionBatchCompletedEventArgs { @@ -5936,10 +5936,10 @@ windows_core::imp::required_hierarchy!(CompositionBrush, IAnimationObject, super impl CompositionBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5969,10 +5969,10 @@ impl CompositionBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -5998,24 +5998,24 @@ impl CompositionBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -6034,11 +6034,11 @@ impl CompositionBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionBrush { @@ -6074,12 +6074,12 @@ impl CompositionCapabilities { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6118,10 +6118,10 @@ windows_core::imp::required_hierarchy!(CompositionClip, IAnimationObject, super: impl CompositionClip { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6238,10 +6238,10 @@ impl CompositionClip { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6267,24 +6267,24 @@ impl CompositionClip { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -6303,11 +6303,11 @@ impl CompositionClip { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionClip { @@ -6330,10 +6330,10 @@ windows_core::imp::required_hierarchy!(CompositionColorBrush, IAnimationObject, impl CompositionColorBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6374,10 +6374,10 @@ impl CompositionColorBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6403,24 +6403,24 @@ impl CompositionColorBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -6439,11 +6439,11 @@ impl CompositionColorBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionColorBrush { @@ -6466,10 +6466,10 @@ windows_core::imp::required_hierarchy!(CompositionColorGradientStop, IAnimationO impl CompositionColorGradientStop { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6521,10 +6521,10 @@ impl CompositionColorGradientStop { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6550,24 +6550,24 @@ impl CompositionColorGradientStop { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -6586,11 +6586,11 @@ impl CompositionColorGradientStop { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionColorGradientStop { @@ -6647,29 +6647,29 @@ impl CompositionColorGradientStopCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -6679,10 +6679,10 @@ impl CompositionColorGradientStopCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -6744,10 +6744,10 @@ windows_core::imp::required_hierarchy!(CompositionCommitBatch, IAnimationObject, impl CompositionCommitBatch { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6769,12 +6769,12 @@ impl CompositionCommitBatch { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -6805,10 +6805,10 @@ impl CompositionCommitBatch { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6834,24 +6834,24 @@ impl CompositionCommitBatch { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -6870,11 +6870,11 @@ impl CompositionCommitBatch { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionCommitBatch { @@ -6897,10 +6897,10 @@ windows_core::imp::required_hierarchy!(CompositionContainerShape, IAnimationObje impl CompositionContainerShape { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6938,10 +6938,10 @@ impl CompositionContainerShape { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -6967,24 +6967,24 @@ impl CompositionContainerShape { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -7003,11 +7003,11 @@ impl CompositionContainerShape { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> windows_core::Result { @@ -7104,10 +7104,10 @@ windows_core::imp::required_hierarchy!(CompositionDrawingSurface, IAnimationObje impl CompositionDrawingSurface { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7193,10 +7193,10 @@ impl CompositionDrawingSurface { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7222,24 +7222,24 @@ impl CompositionDrawingSurface { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -7258,11 +7258,11 @@ impl CompositionDrawingSurface { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionDrawingSurface { @@ -7285,10 +7285,10 @@ windows_core::imp::required_hierarchy!(CompositionEasingFunction, IAnimationObje impl CompositionEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7297,101 +7297,101 @@ impl CompositionEasingFunction { #[cfg(feature = "Foundation_Numerics")] pub fn CreateCubicBezierEasingFunction(owner: P0, controlpoint1: super::super::Foundation::Numerics::Vector2, controlpoint2: super::super::Foundation::Numerics::Vector2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCubicBezierEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), controlpoint1, controlpoint2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCubicBezierEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), controlpoint1, controlpoint2, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateLinearEasingFunction(owner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateLinearEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateLinearEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateStepEasingFunction(owner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStepEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStepEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateStepEasingFunctionWithStepCount(owner: P0, stepcount: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStepEasingFunctionWithStepCount)(windows_core::Interface::as_raw(this), owner.into_param().abi(), stepcount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStepEasingFunctionWithStepCount)(windows_core::Interface::as_raw(this), owner.param().abi(), stepcount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateBackEasingFunction(owner: P0, mode: CompositionEasingFunctionMode, amplitude: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateBackEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), mode, amplitude, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateBackEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), mode, amplitude, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateBounceEasingFunction(owner: P0, mode: CompositionEasingFunctionMode, bounces: i32, bounciness: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateBounceEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), mode, bounces, bounciness, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateBounceEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), mode, bounces, bounciness, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateCircleEasingFunction(owner: P0, mode: CompositionEasingFunctionMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateCircleEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateCircleEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateElasticEasingFunction(owner: P0, mode: CompositionEasingFunctionMode, oscillations: i32, springiness: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateElasticEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), mode, oscillations, springiness, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateElasticEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), mode, oscillations, springiness, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateExponentialEasingFunction(owner: P0, mode: CompositionEasingFunctionMode, exponent: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateExponentialEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), mode, exponent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateExponentialEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), mode, exponent, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreatePowerEasingFunction(owner: P0, mode: CompositionEasingFunctionMode, power: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePowerEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), mode, power, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePowerEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), mode, power, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateSineEasingFunction(owner: P0, mode: CompositionEasingFunctionMode) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionEasingFunctionStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSineEasingFunction)(windows_core::Interface::as_raw(this), owner.into_param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSineEasingFunction)(windows_core::Interface::as_raw(this), owner.param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Compositor(&self) -> windows_core::Result { @@ -7418,10 +7418,10 @@ impl CompositionEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7447,24 +7447,24 @@ impl CompositionEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -7483,11 +7483,11 @@ impl CompositionEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[doc(hidden)] pub fn ICompositionEasingFunctionStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -7515,10 +7515,10 @@ windows_core::imp::required_hierarchy!(CompositionEffectBrush, IAnimationObject, impl CompositionEffectBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7533,10 +7533,10 @@ impl CompositionEffectBrush { } pub fn SetSourceParameter(&self, name: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSourceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSourceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -7562,10 +7562,10 @@ impl CompositionEffectBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7591,24 +7591,24 @@ impl CompositionEffectBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -7627,11 +7627,11 @@ impl CompositionEffectBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionEffectBrush { @@ -7654,10 +7654,10 @@ windows_core::imp::required_hierarchy!(CompositionEffectFactory, IAnimationObjec impl CompositionEffectFactory { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7708,10 +7708,10 @@ impl CompositionEffectFactory { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7737,24 +7737,24 @@ impl CompositionEffectFactory { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -7773,11 +7773,11 @@ impl CompositionEffectFactory { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionEffectFactory { @@ -7838,10 +7838,10 @@ windows_core::imp::required_hierarchy!(CompositionEllipseGeometry, IAnimationObj impl CompositionEllipseGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7930,10 +7930,10 @@ impl CompositionEllipseGeometry { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -7959,24 +7959,24 @@ impl CompositionEllipseGeometry { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -7995,11 +7995,11 @@ impl CompositionEllipseGeometry { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionEllipseGeometry { @@ -8022,10 +8022,10 @@ windows_core::imp::required_hierarchy!(CompositionGeometricClip, IAnimationObjec impl CompositionGeometricClip { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8127,10 +8127,10 @@ impl CompositionGeometricClip { } pub fn SetGeometry(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetGeometry)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetGeometry)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ViewBox(&self) -> windows_core::Result { let this = self; @@ -8141,10 +8141,10 @@ impl CompositionGeometricClip { } pub fn SetViewBox(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetViewBox)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetViewBox)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -8170,10 +8170,10 @@ impl CompositionGeometricClip { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8199,24 +8199,24 @@ impl CompositionGeometricClip { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -8235,11 +8235,11 @@ impl CompositionGeometricClip { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionGeometricClip { @@ -8262,10 +8262,10 @@ windows_core::imp::required_hierarchy!(CompositionGeometry, IAnimationObject, su impl CompositionGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8328,10 +8328,10 @@ impl CompositionGeometry { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8357,24 +8357,24 @@ impl CompositionGeometry { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -8393,11 +8393,11 @@ impl CompositionGeometry { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionGeometry { @@ -8420,10 +8420,10 @@ windows_core::imp::required_hierarchy!(CompositionGradientBrush, IAnimationObjec impl CompositionGradientBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8580,10 +8580,10 @@ impl CompositionGradientBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8609,24 +8609,24 @@ impl CompositionGradientBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -8645,11 +8645,11 @@ impl CompositionGradientBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionGradientBrush { @@ -8672,10 +8672,10 @@ windows_core::imp::required_hierarchy!(CompositionGraphicsDevice, IAnimationObje impl CompositionGraphicsDevice { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8691,12 +8691,12 @@ impl CompositionGraphicsDevice { } pub fn RenderingDeviceReplaced(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RenderingDeviceReplaced)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RenderingDeviceReplaced)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRenderingDeviceReplaced(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -8734,12 +8734,12 @@ impl CompositionGraphicsDevice { #[cfg(feature = "Graphics_DirectX")] pub fn CaptureAsync(&self, capturevisual: P0, size: super::super::Graphics::SizeInt32, pixelformat: super::super::Graphics::DirectX::DirectXPixelFormat, alphamode: super::super::Graphics::DirectX::DirectXAlphaMode, sdrboost: f32) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CaptureAsync)(windows_core::Interface::as_raw(this), capturevisual.into_param().abi(), size, pixelformat, alphamode, sdrboost, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CaptureAsync)(windows_core::Interface::as_raw(this), capturevisual.param().abi(), size, pixelformat, alphamode, sdrboost, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Compositor(&self) -> windows_core::Result { @@ -8766,10 +8766,10 @@ impl CompositionGraphicsDevice { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8795,24 +8795,24 @@ impl CompositionGraphicsDevice { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -8831,11 +8831,11 @@ impl CompositionGraphicsDevice { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionGraphicsDevice { @@ -8858,10 +8858,10 @@ windows_core::imp::required_hierarchy!(CompositionLight, IAnimationObject, super impl CompositionLight { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8916,10 +8916,10 @@ impl CompositionLight { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -8945,24 +8945,24 @@ impl CompositionLight { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -8981,11 +8981,11 @@ impl CompositionLight { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionLight { @@ -9008,10 +9008,10 @@ windows_core::imp::required_hierarchy!(CompositionLineGeometry, IAnimationObject impl CompositionLineGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9100,10 +9100,10 @@ impl CompositionLineGeometry { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9129,24 +9129,24 @@ impl CompositionLineGeometry { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -9165,11 +9165,11 @@ impl CompositionLineGeometry { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionLineGeometry { @@ -9192,10 +9192,10 @@ windows_core::imp::required_hierarchy!(CompositionLinearGradientBrush, IAnimatio impl CompositionLinearGradientBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9378,10 +9378,10 @@ impl CompositionLinearGradientBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9407,24 +9407,24 @@ impl CompositionLinearGradientBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -9443,11 +9443,11 @@ impl CompositionLinearGradientBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionLinearGradientBrush { @@ -9470,10 +9470,10 @@ windows_core::imp::required_hierarchy!(CompositionMaskBrush, IAnimationObject, s impl CompositionMaskBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9488,10 +9488,10 @@ impl CompositionMaskBrush { } pub fn SetMask(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMask)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMask)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Source(&self) -> windows_core::Result { let this = self; @@ -9502,10 +9502,10 @@ impl CompositionMaskBrush { } pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -9531,10 +9531,10 @@ impl CompositionMaskBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9560,24 +9560,24 @@ impl CompositionMaskBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -9596,11 +9596,11 @@ impl CompositionMaskBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionMaskBrush { @@ -9623,10 +9623,10 @@ windows_core::imp::required_hierarchy!(CompositionMipmapSurface, IAnimationObjec impl CompositionMipmapSurface { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9694,10 +9694,10 @@ impl CompositionMipmapSurface { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9723,24 +9723,24 @@ impl CompositionMipmapSurface { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -9759,11 +9759,11 @@ impl CompositionMipmapSurface { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionMipmapSurface { @@ -9786,10 +9786,10 @@ windows_core::imp::required_hierarchy!(CompositionNineGridBrush, IAnimationObjec impl CompositionNineGridBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9881,10 +9881,10 @@ impl CompositionNineGridBrush { } pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TopInset(&self) -> windows_core::Result { let this = self; @@ -9948,10 +9948,10 @@ impl CompositionNineGridBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -9977,24 +9977,24 @@ impl CompositionNineGridBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -10013,11 +10013,11 @@ impl CompositionNineGridBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionNineGridBrush { @@ -10040,10 +10040,10 @@ windows_core::imp::required_hierarchy!(CompositionObject, IAnimationObject, supe impl CompositionObject { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10073,10 +10073,10 @@ impl CompositionObject { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -10102,24 +10102,24 @@ impl CompositionObject { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -10138,25 +10138,25 @@ impl CompositionObject { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn StartAnimationWithIAnimationObject(target: P0, propertyname: &windows_core::HSTRING, animation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - Self::ICompositionObjectStatics(|this| unsafe { (windows_core::Interface::vtable(this).StartAnimationWithIAnimationObject)(windows_core::Interface::as_raw(this), target.into_param().abi(), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() }) + Self::ICompositionObjectStatics(|this| unsafe { (windows_core::Interface::vtable(this).StartAnimationWithIAnimationObject)(windows_core::Interface::as_raw(this), target.param().abi(), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() }) } pub fn StartAnimationGroupWithIAnimationObject(target: P0, animation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - Self::ICompositionObjectStatics(|this| unsafe { (windows_core::Interface::vtable(this).StartAnimationGroupWithIAnimationObject)(windows_core::Interface::as_raw(this), target.into_param().abi(), animation.into_param().abi()).ok() }) + Self::ICompositionObjectStatics(|this| unsafe { (windows_core::Interface::vtable(this).StartAnimationGroupWithIAnimationObject)(windows_core::Interface::as_raw(this), target.param().abi(), animation.param().abi()).ok() }) } #[doc(hidden)] pub fn ICompositionObjectStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -10186,11 +10186,11 @@ impl CompositionPath { #[cfg(feature = "Graphics")] pub fn Create(source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICompositionPathFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -10219,10 +10219,10 @@ windows_core::imp::required_hierarchy!(CompositionPathGeometry, IAnimationObject impl CompositionPathGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10285,10 +10285,10 @@ impl CompositionPathGeometry { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10314,24 +10314,24 @@ impl CompositionPathGeometry { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -10350,11 +10350,11 @@ impl CompositionPathGeometry { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Path(&self) -> windows_core::Result { let this = self; @@ -10365,10 +10365,10 @@ impl CompositionPathGeometry { } pub fn SetPath(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPath)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPath)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionPathGeometry { @@ -10391,10 +10391,10 @@ windows_core::imp::required_hierarchy!(CompositionProjectedShadow, IAnimationObj impl CompositionProjectedShadow { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10424,10 +10424,10 @@ impl CompositionProjectedShadow { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10453,24 +10453,24 @@ impl CompositionProjectedShadow { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -10489,11 +10489,11 @@ impl CompositionProjectedShadow { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn BlurRadiusMultiplier(&self) -> windows_core::Result { let this = self; @@ -10522,10 +10522,10 @@ impl CompositionProjectedShadow { } pub fn SetLightSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLightSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLightSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxBlurRadius(&self) -> windows_core::Result { let this = self; @@ -10577,10 +10577,10 @@ windows_core::imp::required_hierarchy!(CompositionProjectedShadowCaster, IAnimat impl CompositionProjectedShadowCaster { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10610,10 +10610,10 @@ impl CompositionProjectedShadowCaster { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10639,24 +10639,24 @@ impl CompositionProjectedShadowCaster { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -10675,11 +10675,11 @@ impl CompositionProjectedShadowCaster { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Brush(&self) -> windows_core::Result { let this = self; @@ -10690,10 +10690,10 @@ impl CompositionProjectedShadowCaster { } pub fn SetBrush(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBrush)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBrush)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CastingVisual(&self) -> windows_core::Result { let this = self; @@ -10704,10 +10704,10 @@ impl CompositionProjectedShadowCaster { } pub fn SetCastingVisual(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCastingVisual)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCastingVisual)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionProjectedShadowCaster { @@ -10731,10 +10731,10 @@ windows_core::imp::required_hierarchy!(CompositionProjectedShadowCasterCollectio impl CompositionProjectedShadowCasterCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10764,10 +10764,10 @@ impl CompositionProjectedShadowCasterCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10793,24 +10793,24 @@ impl CompositionProjectedShadowCasterCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -10829,11 +10829,11 @@ impl CompositionProjectedShadowCasterCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Count(&self) -> windows_core::Result { let this = self; @@ -10844,40 +10844,40 @@ impl CompositionProjectedShadowCasterCollection { } pub fn InsertAbove(&self, newcaster: P0, reference: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAbove)(windows_core::Interface::as_raw(this), newcaster.into_param().abi(), reference.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAbove)(windows_core::Interface::as_raw(this), newcaster.param().abi(), reference.param().abi()).ok() } } pub fn InsertAtBottom(&self, newcaster: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAtBottom)(windows_core::Interface::as_raw(this), newcaster.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAtBottom)(windows_core::Interface::as_raw(this), newcaster.param().abi()).ok() } } pub fn InsertAtTop(&self, newcaster: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAtTop)(windows_core::Interface::as_raw(this), newcaster.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAtTop)(windows_core::Interface::as_raw(this), newcaster.param().abi()).ok() } } pub fn InsertBelow(&self, newcaster: P0, reference: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertBelow)(windows_core::Interface::as_raw(this), newcaster.into_param().abi(), reference.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertBelow)(windows_core::Interface::as_raw(this), newcaster.param().abi(), reference.param().abi()).ok() } } pub fn Remove(&self, caster: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), caster.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), caster.param().abi()).ok() } } pub fn RemoveAll(&self) -> windows_core::Result<()> { let this = self; @@ -10939,10 +10939,10 @@ windows_core::imp::required_hierarchy!(CompositionProjectedShadowReceiver, IAnim impl CompositionProjectedShadowReceiver { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -10972,10 +10972,10 @@ impl CompositionProjectedShadowReceiver { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11001,24 +11001,24 @@ impl CompositionProjectedShadowReceiver { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -11037,11 +11037,11 @@ impl CompositionProjectedShadowReceiver { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn ReceivingVisual(&self) -> windows_core::Result { let this = self; @@ -11052,10 +11052,10 @@ impl CompositionProjectedShadowReceiver { } pub fn SetReceivingVisual(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetReceivingVisual)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReceivingVisual)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionProjectedShadowReceiver { @@ -11079,10 +11079,10 @@ windows_core::imp::required_hierarchy!(CompositionProjectedShadowReceiverUnorder impl CompositionProjectedShadowReceiverUnorderedCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11112,10 +11112,10 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11141,24 +11141,24 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -11177,18 +11177,18 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Add(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Count(&self) -> windows_core::Result { let this = self; @@ -11199,10 +11199,10 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { } pub fn Remove(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAll(&self) -> windows_core::Result<()> { let this = self; @@ -11253,10 +11253,10 @@ windows_core::imp::required_hierarchy!(CompositionPropertySet, IAnimationObject, impl CompositionPropertySet { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11286,10 +11286,10 @@ impl CompositionPropertySet { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11315,24 +11315,24 @@ impl CompositionPropertySet { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -11351,11 +11351,11 @@ impl CompositionPropertySet { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn InsertColor(&self, propertyname: &windows_core::HSTRING, value: super::Color) -> windows_core::Result<()> { let this = self; @@ -11489,10 +11489,10 @@ windows_core::imp::required_hierarchy!(CompositionRadialGradientBrush, IAnimatio impl CompositionRadialGradientBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11649,10 +11649,10 @@ impl CompositionRadialGradientBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11678,24 +11678,24 @@ impl CompositionRadialGradientBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -11714,11 +11714,11 @@ impl CompositionRadialGradientBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn EllipseCenter(&self) -> windows_core::Result { @@ -11780,10 +11780,10 @@ windows_core::imp::required_hierarchy!(CompositionRectangleGeometry, IAnimationO impl CompositionRectangleGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11846,10 +11846,10 @@ impl CompositionRectangleGeometry { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -11875,24 +11875,24 @@ impl CompositionRectangleGeometry { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -11911,11 +11911,11 @@ impl CompositionRectangleGeometry { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> windows_core::Result { @@ -11964,10 +11964,10 @@ windows_core::imp::required_hierarchy!(CompositionRoundedRectangleGeometry, IAni impl CompositionRoundedRectangleGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12030,10 +12030,10 @@ impl CompositionRoundedRectangleGeometry { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12059,24 +12059,24 @@ impl CompositionRoundedRectangleGeometry { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -12095,11 +12095,11 @@ impl CompositionRoundedRectangleGeometry { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn CornerRadius(&self) -> windows_core::Result { @@ -12161,10 +12161,10 @@ windows_core::imp::required_hierarchy!(CompositionScopedBatch, IAnimationObject, impl CompositionScopedBatch { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12194,10 +12194,10 @@ impl CompositionScopedBatch { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12223,24 +12223,24 @@ impl CompositionScopedBatch { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -12259,11 +12259,11 @@ impl CompositionScopedBatch { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn IsActive(&self) -> windows_core::Result { let this = self; @@ -12293,12 +12293,12 @@ impl CompositionScopedBatch { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -12326,10 +12326,10 @@ windows_core::imp::required_hierarchy!(CompositionShadow, IAnimationObject, supe impl CompositionShadow { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12359,10 +12359,10 @@ impl CompositionShadow { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12388,24 +12388,24 @@ impl CompositionShadow { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -12424,11 +12424,11 @@ impl CompositionShadow { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionShadow { @@ -12451,10 +12451,10 @@ windows_core::imp::required_hierarchy!(CompositionShape, IAnimationObject, super impl CompositionShape { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12484,10 +12484,10 @@ impl CompositionShape { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12513,24 +12513,24 @@ impl CompositionShape { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -12549,11 +12549,11 @@ impl CompositionShape { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> windows_core::Result { @@ -12654,10 +12654,10 @@ windows_core::imp::required_hierarchy!(CompositionShapeCollection, IAnimationObj impl CompositionShapeCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12687,10 +12687,10 @@ impl CompositionShapeCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12716,24 +12716,24 @@ impl CompositionShapeCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -12752,11 +12752,11 @@ impl CompositionShapeCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -12793,29 +12793,29 @@ impl CompositionShapeCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -12825,10 +12825,10 @@ impl CompositionShapeCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -12895,10 +12895,10 @@ windows_core::imp::required_hierarchy!(CompositionSpriteShape, IAnimationObject, impl CompositionSpriteShape { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12928,10 +12928,10 @@ impl CompositionSpriteShape { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -12957,24 +12957,24 @@ impl CompositionSpriteShape { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -12993,11 +12993,11 @@ impl CompositionSpriteShape { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> windows_core::Result { @@ -13082,10 +13082,10 @@ impl CompositionSpriteShape { } pub fn SetFillBrush(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFillBrush)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFillBrush)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Geometry(&self) -> windows_core::Result { let this = self; @@ -13096,10 +13096,10 @@ impl CompositionSpriteShape { } pub fn SetGeometry(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetGeometry)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetGeometry)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsStrokeNonScaling(&self) -> windows_core::Result { let this = self; @@ -13121,10 +13121,10 @@ impl CompositionSpriteShape { } pub fn SetStrokeBrush(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStrokeBrush)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStrokeBrush)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn StrokeDashArray(&self) -> windows_core::Result { @@ -13236,10 +13236,10 @@ windows_core::imp::required_hierarchy!(CompositionStrokeDashArray, IAnimationObj impl CompositionStrokeDashArray { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13269,10 +13269,10 @@ impl CompositionStrokeDashArray { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13298,24 +13298,24 @@ impl CompositionStrokeDashArray { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -13334,11 +13334,11 @@ impl CompositionStrokeDashArray { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -13465,10 +13465,10 @@ windows_core::imp::required_hierarchy!(CompositionSurfaceBrush, IAnimationObject impl CompositionSurfaceBrush { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13498,10 +13498,10 @@ impl CompositionSurfaceBrush { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13527,24 +13527,24 @@ impl CompositionSurfaceBrush { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -13563,11 +13563,11 @@ impl CompositionSurfaceBrush { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn BitmapInterpolationMode(&self) -> windows_core::Result { let this = self; @@ -13611,10 +13611,10 @@ impl CompositionSurfaceBrush { } pub fn SetSurface(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSurface)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSurface)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn VerticalAlignmentRatio(&self) -> windows_core::Result { let this = self; @@ -13746,10 +13746,10 @@ windows_core::imp::required_hierarchy!(CompositionTarget, IAnimationObject, supe impl CompositionTarget { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13779,10 +13779,10 @@ impl CompositionTarget { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13808,24 +13808,24 @@ impl CompositionTarget { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -13844,11 +13844,11 @@ impl CompositionTarget { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Root(&self) -> windows_core::Result { let this = self; @@ -13859,10 +13859,10 @@ impl CompositionTarget { } pub fn SetRoot(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRoot)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRoot)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionTarget { @@ -13885,10 +13885,10 @@ windows_core::imp::required_hierarchy!(CompositionTexture, IAnimationObject, sup impl CompositionTexture { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13918,10 +13918,10 @@ impl CompositionTexture { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -13947,24 +13947,24 @@ impl CompositionTexture { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -13983,11 +13983,11 @@ impl CompositionTexture { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Graphics")] pub fn SourceRect(&self) -> windows_core::Result { @@ -14049,10 +14049,10 @@ windows_core::imp::required_hierarchy!(CompositionTransform, IAnimationObject, s impl CompositionTransform { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14082,10 +14082,10 @@ impl CompositionTransform { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14111,24 +14111,24 @@ impl CompositionTransform { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -14147,11 +14147,11 @@ impl CompositionTransform { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for CompositionTransform { @@ -14174,10 +14174,10 @@ windows_core::imp::required_hierarchy!(CompositionViewBox, IAnimationObject, sup impl CompositionViewBox { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14207,10 +14207,10 @@ impl CompositionViewBox { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14236,24 +14236,24 @@ impl CompositionViewBox { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -14272,11 +14272,11 @@ impl CompositionViewBox { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn HorizontalAlignmentRatio(&self) -> windows_core::Result { let this = self; @@ -14358,10 +14358,10 @@ windows_core::imp::required_hierarchy!(CompositionVirtualDrawingSurface, IAnimat impl CompositionVirtualDrawingSurface { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14447,10 +14447,10 @@ impl CompositionVirtualDrawingSurface { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14476,24 +14476,24 @@ impl CompositionVirtualDrawingSurface { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -14512,11 +14512,11 @@ impl CompositionVirtualDrawingSurface { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Graphics")] pub fn Trim(&self, rects: &[super::super::Graphics::RectInt32]) -> windows_core::Result<()> { @@ -14544,10 +14544,10 @@ windows_core::imp::required_hierarchy!(CompositionVisualSurface, IAnimationObjec impl CompositionVisualSurface { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14577,10 +14577,10 @@ impl CompositionVisualSurface { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -14606,24 +14606,24 @@ impl CompositionVisualSurface { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -14642,11 +14642,11 @@ impl CompositionVisualSurface { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn SourceVisual(&self) -> windows_core::Result { let this = self; @@ -14657,10 +14657,10 @@ impl CompositionVisualSurface { } pub fn SetSourceVisual(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSourceVisual)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSourceVisual)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn SourceOffset(&self) -> windows_core::Result { @@ -14757,24 +14757,24 @@ impl Compositor { #[cfg(feature = "Graphics_Effects")] pub fn CreateEffectFactory(&self, graphicseffect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEffectFactory)(windows_core::Interface::as_raw(this), graphicseffect.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEffectFactory)(windows_core::Interface::as_raw(this), graphicseffect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Effects"))] pub fn CreateEffectFactoryWithProperties(&self, graphicseffect: P0, animatableproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam>, + P0: windows_core::Param, + P1: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateEffectFactoryWithProperties)(windows_core::Interface::as_raw(this), graphicseffect.into_param().abi(), animatableproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateEffectFactoryWithProperties)(windows_core::Interface::as_raw(this), graphicseffect.param().abi(), animatableproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateExpressionAnimation(&self) -> windows_core::Result { @@ -14856,12 +14856,12 @@ impl Compositor { } pub fn CreateSurfaceBrushWithSurface(&self, surface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSurfaceBrushWithSurface)(windows_core::Interface::as_raw(this), surface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSurfaceBrushWithSurface)(windows_core::Interface::as_raw(this), surface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateTargetForCurrentView(&self) -> windows_core::Result { @@ -15112,12 +15112,12 @@ impl Compositor { } pub fn CreatePathGeometryWithPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreatePathGeometryWithPath)(windows_core::Interface::as_raw(this), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreatePathGeometryWithPath)(windows_core::Interface::as_raw(this), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreatePathKeyFrameAnimation(&self) -> windows_core::Result { @@ -15157,12 +15157,12 @@ impl Compositor { } pub fn CreateSpriteShapeWithGeometry(&self, geometry: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSpriteShapeWithGeometry)(windows_core::Interface::as_raw(this), geometry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSpriteShapeWithGeometry)(windows_core::Interface::as_raw(this), geometry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateViewBox(&self) -> windows_core::Result { @@ -15188,12 +15188,12 @@ impl Compositor { } pub fn CreateGeometricClipWithGeometry(&self, geometry: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateGeometricClipWithGeometry)(windows_core::Interface::as_raw(this), geometry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateGeometricClipWithGeometry)(windows_core::Interface::as_raw(this), geometry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateRedirectVisual(&self) -> windows_core::Result { @@ -15205,12 +15205,12 @@ impl Compositor { } pub fn CreateRedirectVisualWithSourceVisual(&self, source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateRedirectVisualWithSourceVisual)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateRedirectVisualWithSourceVisual)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateBooleanKeyFrameAnimation(&self) -> windows_core::Result { @@ -15344,10 +15344,10 @@ windows_core::imp::required_hierarchy!(ContainerVisual, IAnimationObject, super: impl ContainerVisual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -15377,10 +15377,10 @@ impl ContainerVisual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -15406,24 +15406,24 @@ impl ContainerVisual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -15442,11 +15442,11 @@ impl ContainerVisual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Children(&self) -> windows_core::Result { let this = self; @@ -15512,10 +15512,10 @@ impl ContainerVisual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -15666,10 +15666,10 @@ impl ContainerVisual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { @@ -15740,10 +15740,10 @@ windows_core::imp::required_hierarchy!(CubicBezierEasingFunction, IAnimationObje impl CubicBezierEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -15773,10 +15773,10 @@ impl CubicBezierEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -15802,24 +15802,24 @@ impl CubicBezierEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -15838,11 +15838,11 @@ impl CubicBezierEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn ControlPoint1(&self) -> windows_core::Result { @@ -15881,10 +15881,10 @@ windows_core::imp::required_hierarchy!(DelegatedInkTrailVisual, IAnimationObject impl DelegatedInkTrailVisual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -15914,10 +15914,10 @@ impl DelegatedInkTrailVisual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -15943,24 +15943,24 @@ impl DelegatedInkTrailVisual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -15979,11 +15979,11 @@ impl DelegatedInkTrailVisual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn AddTrailPoints(&self, inkpoints: &[InkTrailPoint]) -> windows_core::Result { let this = self; @@ -16009,21 +16009,21 @@ impl DelegatedInkTrailVisual { } pub fn Create(compositor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IDelegatedInkTrailVisualStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), compositor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateForSwapChain(compositor: P0, swapchain: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IDelegatedInkTrailVisualStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForSwapChain)(windows_core::Interface::as_raw(this), compositor.into_param().abi(), swapchain.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForSwapChain)(windows_core::Interface::as_raw(this), compositor.param().abi(), swapchain.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Numerics")] @@ -16083,10 +16083,10 @@ impl DelegatedInkTrailVisual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -16237,10 +16237,10 @@ impl DelegatedInkTrailVisual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { @@ -16316,10 +16316,10 @@ windows_core::imp::required_hierarchy!(DistantLight, IAnimationObject, super::su impl DistantLight { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16374,10 +16374,10 @@ impl DistantLight { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16403,24 +16403,24 @@ impl DistantLight { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -16439,11 +16439,11 @@ impl DistantLight { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Color(&self) -> windows_core::Result { let this = self; @@ -16465,10 +16465,10 @@ impl DistantLight { } pub fn SetCoordinateSpace(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn Direction(&self) -> windows_core::Result { @@ -16515,10 +16515,10 @@ windows_core::imp::required_hierarchy!(DropShadow, IAnimationObject, super::supe impl DropShadow { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16548,10 +16548,10 @@ impl DropShadow { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16577,24 +16577,24 @@ impl DropShadow { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -16613,11 +16613,11 @@ impl DropShadow { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn BlurRadius(&self) -> windows_core::Result { let this = self; @@ -16650,10 +16650,10 @@ impl DropShadow { } pub fn SetMask(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMask)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMask)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> windows_core::Result { @@ -16711,10 +16711,10 @@ windows_core::imp::required_hierarchy!(ElasticEasingFunction, IAnimationObject, impl ElasticEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16744,10 +16744,10 @@ impl ElasticEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16773,24 +16773,24 @@ impl ElasticEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -16809,11 +16809,11 @@ impl ElasticEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Mode(&self) -> windows_core::Result { let this = self; @@ -16857,10 +16857,10 @@ windows_core::imp::required_hierarchy!(ExponentialEasingFunction, IAnimationObje impl ExponentialEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16890,10 +16890,10 @@ impl ExponentialEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -16919,24 +16919,24 @@ impl ExponentialEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -16955,11 +16955,11 @@ impl ExponentialEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Mode(&self) -> windows_core::Result { let this = self; @@ -16996,10 +16996,10 @@ windows_core::imp::required_hierarchy!(ExpressionAnimation, IAnimationObject, su impl ExpressionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17034,10 +17034,10 @@ impl ExpressionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17083,10 +17083,10 @@ impl ExpressionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -17112,10 +17112,10 @@ impl ExpressionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17141,24 +17141,24 @@ impl ExpressionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -17177,11 +17177,11 @@ impl ExpressionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Expression(&self) -> windows_core::Result { let this = self; @@ -17216,10 +17216,10 @@ windows_core::imp::required_hierarchy!(ImplicitAnimationCollection, IAnimationOb impl ImplicitAnimationCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17249,10 +17249,10 @@ impl ImplicitAnimationCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17278,24 +17278,24 @@ impl ImplicitAnimationCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -17314,11 +17314,11 @@ impl ImplicitAnimationCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result>> { @@ -17363,12 +17363,12 @@ impl ImplicitAnimationCollection { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &windows_core::HSTRING, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -17422,10 +17422,10 @@ windows_core::imp::required_hierarchy!(InitialValueExpressionCollection, IAnimat impl InitialValueExpressionCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17455,10 +17455,10 @@ impl InitialValueExpressionCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17484,24 +17484,24 @@ impl InitialValueExpressionCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -17520,11 +17520,11 @@ impl InitialValueExpressionCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result>> { @@ -17626,10 +17626,10 @@ windows_core::imp::required_hierarchy!(InsetClip, IAnimationObject, super::super impl InsetClip { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17746,10 +17746,10 @@ impl InsetClip { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17775,24 +17775,24 @@ impl InsetClip { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -17811,11 +17811,11 @@ impl InsetClip { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn BottomInset(&self) -> windows_core::Result { let this = self; @@ -17882,10 +17882,10 @@ windows_core::imp::required_hierarchy!(KeyFrameAnimation, IAnimationObject, supe impl KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17920,10 +17920,10 @@ impl KeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -17969,10 +17969,10 @@ impl KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -17998,10 +17998,10 @@ impl KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18027,24 +18027,24 @@ impl KeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -18063,11 +18063,11 @@ impl KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = self; @@ -18137,10 +18137,10 @@ impl KeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -18185,10 +18185,10 @@ windows_core::imp::required_hierarchy!(LayerVisual, IAnimationObject, super::sup impl LayerVisual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18218,10 +18218,10 @@ impl LayerVisual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18247,24 +18247,24 @@ impl LayerVisual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -18283,11 +18283,11 @@ impl LayerVisual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -18305,10 +18305,10 @@ impl LayerVisual { } pub fn SetEffect(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetEffect)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetEffect)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Shadow(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -18319,10 +18319,10 @@ impl LayerVisual { } pub fn SetShadow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetShadow)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetShadow)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> windows_core::Result { @@ -18381,10 +18381,10 @@ impl LayerVisual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -18535,10 +18535,10 @@ impl LayerVisual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { @@ -18609,10 +18609,10 @@ windows_core::imp::required_hierarchy!(LinearEasingFunction, IAnimationObject, s impl LinearEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18642,10 +18642,10 @@ impl LinearEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18671,24 +18671,24 @@ impl LinearEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -18707,11 +18707,11 @@ impl LinearEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } } impl windows_core::RuntimeType for LinearEasingFunction { @@ -18734,10 +18734,10 @@ windows_core::imp::required_hierarchy!(NaturalMotionAnimation, IAnimationObject, impl NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18772,10 +18772,10 @@ impl NaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18821,10 +18821,10 @@ impl NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -18850,10 +18850,10 @@ impl NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -18879,24 +18879,24 @@ impl NaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -18915,11 +18915,11 @@ impl NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = self; @@ -18975,10 +18975,10 @@ windows_core::imp::required_hierarchy!(PathKeyFrameAnimation, IAnimationObject, impl PathKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19013,10 +19013,10 @@ impl PathKeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19062,10 +19062,10 @@ impl PathKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -19091,10 +19091,10 @@ impl PathKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19120,24 +19120,24 @@ impl PathKeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -19156,11 +19156,11 @@ impl PathKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -19230,10 +19230,10 @@ impl PathKeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -19259,18 +19259,18 @@ impl PathKeyFrameAnimation { } pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrame)(windows_core::Interface::as_raw(this), normalizedprogresskey, path.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrame)(windows_core::Interface::as_raw(this), normalizedprogresskey, path.param().abi()).ok() } } pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, path: P0, easingfunction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, path.into_param().abi(), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, path.param().abi(), easingfunction.param().abi()).ok() } } } impl windows_core::RuntimeType for PathKeyFrameAnimation { @@ -19293,10 +19293,10 @@ windows_core::imp::required_hierarchy!(PointLight, IAnimationObject, super::supe impl PointLight { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19351,10 +19351,10 @@ impl PointLight { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19380,24 +19380,24 @@ impl PointLight { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -19416,11 +19416,11 @@ impl PointLight { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Color(&self) -> windows_core::Result { let this = self; @@ -19453,10 +19453,10 @@ impl PointLight { } pub fn SetCoordinateSpace(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LinearAttenuation(&self) -> windows_core::Result { let this = self; @@ -19547,10 +19547,10 @@ windows_core::imp::required_hierarchy!(PowerEasingFunction, IAnimationObject, su impl PowerEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19580,10 +19580,10 @@ impl PowerEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19609,24 +19609,24 @@ impl PowerEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -19645,11 +19645,11 @@ impl PowerEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Mode(&self) -> windows_core::Result { let this = self; @@ -19686,10 +19686,10 @@ windows_core::imp::required_hierarchy!(QuaternionKeyFrameAnimation, IAnimationOb impl QuaternionKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19724,10 +19724,10 @@ impl QuaternionKeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19773,10 +19773,10 @@ impl QuaternionKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -19802,10 +19802,10 @@ impl QuaternionKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -19831,24 +19831,24 @@ impl QuaternionKeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -19867,11 +19867,11 @@ impl QuaternionKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -19941,10 +19941,10 @@ impl QuaternionKeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -19976,10 +19976,10 @@ impl QuaternionKeyFrameAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Quaternion, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.param().abi()).ok() } } } impl windows_core::RuntimeType for QuaternionKeyFrameAnimation { @@ -20002,10 +20002,10 @@ windows_core::imp::required_hierarchy!(RectangleClip, IAnimationObject, super::s impl RectangleClip { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20122,10 +20122,10 @@ impl RectangleClip { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20151,24 +20151,24 @@ impl RectangleClip { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -20187,11 +20187,11 @@ impl RectangleClip { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Bottom(&self) -> windows_core::Result { let this = self; @@ -20310,10 +20310,10 @@ windows_core::imp::required_hierarchy!(RedirectVisual, IAnimationObject, super:: impl RedirectVisual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20343,10 +20343,10 @@ impl RedirectVisual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20372,24 +20372,24 @@ impl RedirectVisual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -20408,11 +20408,11 @@ impl RedirectVisual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -20430,10 +20430,10 @@ impl RedirectVisual { } pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> windows_core::Result { @@ -20492,10 +20492,10 @@ impl RedirectVisual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -20646,10 +20646,10 @@ impl RedirectVisual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { @@ -20720,10 +20720,10 @@ windows_core::imp::required_hierarchy!(RenderingDeviceReplacedEventArgs, IAnimat impl RenderingDeviceReplacedEventArgs { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20753,10 +20753,10 @@ impl RenderingDeviceReplacedEventArgs { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20782,24 +20782,24 @@ impl RenderingDeviceReplacedEventArgs { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -20818,11 +20818,11 @@ impl RenderingDeviceReplacedEventArgs { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn GraphicsDevice(&self) -> windows_core::Result { let this = self; @@ -20852,10 +20852,10 @@ windows_core::imp::required_hierarchy!(ScalarKeyFrameAnimation, IAnimationObject impl ScalarKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20890,10 +20890,10 @@ impl ScalarKeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20939,10 +20939,10 @@ impl ScalarKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -20968,10 +20968,10 @@ impl ScalarKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -20997,24 +20997,24 @@ impl ScalarKeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -21033,11 +21033,11 @@ impl ScalarKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -21107,10 +21107,10 @@ impl ScalarKeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -21140,10 +21140,10 @@ impl ScalarKeyFrameAnimation { } pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: f32, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.param().abi()).ok() } } } impl windows_core::RuntimeType for ScalarKeyFrameAnimation { @@ -21166,10 +21166,10 @@ windows_core::imp::required_hierarchy!(ScalarNaturalMotionAnimation, IAnimationO impl ScalarNaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -21204,10 +21204,10 @@ impl ScalarNaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -21253,10 +21253,10 @@ impl ScalarNaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -21282,10 +21282,10 @@ impl ScalarNaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -21311,24 +21311,24 @@ impl ScalarNaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -21347,11 +21347,11 @@ impl ScalarNaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -21395,10 +21395,10 @@ impl ScalarNaturalMotionAnimation { } pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InitialValue(&self) -> windows_core::Result> { let this = self; @@ -21409,10 +21409,10 @@ impl ScalarNaturalMotionAnimation { } pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InitialVelocity(&self) -> windows_core::Result { let this = self; @@ -21446,10 +21446,10 @@ windows_core::imp::required_hierarchy!(ShapeVisual, IAnimationObject, super::sup impl ShapeVisual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -21479,10 +21479,10 @@ impl ShapeVisual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -21508,24 +21508,24 @@ impl ShapeVisual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -21544,11 +21544,11 @@ impl ShapeVisual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -21574,10 +21574,10 @@ impl ShapeVisual { } pub fn SetViewBox(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetViewBox)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetViewBox)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> windows_core::Result { @@ -21636,10 +21636,10 @@ impl ShapeVisual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -21790,10 +21790,10 @@ impl ShapeVisual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { @@ -21864,10 +21864,10 @@ windows_core::imp::required_hierarchy!(SineEasingFunction, IAnimationObject, sup impl SineEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -21897,10 +21897,10 @@ impl SineEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -21926,24 +21926,24 @@ impl SineEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -21962,11 +21962,11 @@ impl SineEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Mode(&self) -> windows_core::Result { let this = self; @@ -21996,10 +21996,10 @@ windows_core::imp::required_hierarchy!(SpotLight, IAnimationObject, super::super impl SpotLight { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22054,10 +22054,10 @@ impl SpotLight { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22083,24 +22083,24 @@ impl SpotLight { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -22119,11 +22119,11 @@ impl SpotLight { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn ConstantAttenuation(&self) -> windows_core::Result { let this = self; @@ -22145,10 +22145,10 @@ impl SpotLight { } pub fn SetCoordinateSpace(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCoordinateSpace)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn Direction(&self) -> windows_core::Result { @@ -22329,10 +22329,10 @@ windows_core::imp::required_hierarchy!(SpringScalarNaturalMotionAnimation, IAnim impl SpringScalarNaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22367,10 +22367,10 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22416,10 +22416,10 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -22445,10 +22445,10 @@ impl SpringScalarNaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22474,24 +22474,24 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -22510,11 +22510,11 @@ impl SpringScalarNaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -22558,10 +22558,10 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InitialValue(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -22572,10 +22572,10 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InitialVelocity(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -22631,10 +22631,10 @@ windows_core::imp::required_hierarchy!(SpringVector2NaturalMotionAnimation, IAni impl SpringVector2NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22669,10 +22669,10 @@ impl SpringVector2NaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22718,10 +22718,10 @@ impl SpringVector2NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -22747,10 +22747,10 @@ impl SpringVector2NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22776,24 +22776,24 @@ impl SpringVector2NaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -22812,11 +22812,11 @@ impl SpringVector2NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -22884,10 +22884,10 @@ impl SpringVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> windows_core::Result> { @@ -22900,10 +22900,10 @@ impl SpringVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> windows_core::Result { @@ -22939,10 +22939,10 @@ windows_core::imp::required_hierarchy!(SpringVector3NaturalMotionAnimation, IAni impl SpringVector3NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -22977,10 +22977,10 @@ impl SpringVector3NaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23026,10 +23026,10 @@ impl SpringVector3NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -23055,10 +23055,10 @@ impl SpringVector3NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23084,24 +23084,24 @@ impl SpringVector3NaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -23120,11 +23120,11 @@ impl SpringVector3NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -23192,10 +23192,10 @@ impl SpringVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> windows_core::Result> { @@ -23208,10 +23208,10 @@ impl SpringVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> windows_core::Result { @@ -23247,10 +23247,10 @@ windows_core::imp::required_hierarchy!(SpriteVisual, IAnimationObject, super::su impl SpriteVisual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23280,10 +23280,10 @@ impl SpriteVisual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23309,24 +23309,24 @@ impl SpriteVisual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -23345,11 +23345,11 @@ impl SpriteVisual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -23367,10 +23367,10 @@ impl SpriteVisual { } pub fn SetBrush(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBrush)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBrush)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Shadow(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -23381,10 +23381,10 @@ impl SpriteVisual { } pub fn SetShadow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetShadow)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetShadow)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> windows_core::Result { @@ -23443,10 +23443,10 @@ impl SpriteVisual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -23597,10 +23597,10 @@ impl SpriteVisual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { @@ -23671,10 +23671,10 @@ windows_core::imp::required_hierarchy!(StepEasingFunction, IAnimationObject, sup impl StepEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23704,10 +23704,10 @@ impl StepEasingFunction { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23733,24 +23733,24 @@ impl StepEasingFunction { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -23769,11 +23769,11 @@ impl StepEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn FinalStep(&self) -> windows_core::Result { let this = self; @@ -23851,10 +23851,10 @@ windows_core::imp::required_hierarchy!(Vector2KeyFrameAnimation, IAnimationObjec impl Vector2KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23889,10 +23889,10 @@ impl Vector2KeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23938,10 +23938,10 @@ impl Vector2KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -23967,10 +23967,10 @@ impl Vector2KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -23996,24 +23996,24 @@ impl Vector2KeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -24032,11 +24032,11 @@ impl Vector2KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24106,10 +24106,10 @@ impl Vector2KeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24141,10 +24141,10 @@ impl Vector2KeyFrameAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector2, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.param().abi()).ok() } } } impl windows_core::RuntimeType for Vector2KeyFrameAnimation { @@ -24167,10 +24167,10 @@ windows_core::imp::required_hierarchy!(Vector2NaturalMotionAnimation, IAnimation impl Vector2NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24205,10 +24205,10 @@ impl Vector2NaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24254,10 +24254,10 @@ impl Vector2NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24283,10 +24283,10 @@ impl Vector2NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24312,24 +24312,24 @@ impl Vector2NaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -24348,11 +24348,11 @@ impl Vector2NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24398,10 +24398,10 @@ impl Vector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> windows_core::Result> { @@ -24414,10 +24414,10 @@ impl Vector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> windows_core::Result { @@ -24453,10 +24453,10 @@ windows_core::imp::required_hierarchy!(Vector3KeyFrameAnimation, IAnimationObjec impl Vector3KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24491,10 +24491,10 @@ impl Vector3KeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24540,10 +24540,10 @@ impl Vector3KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24569,10 +24569,10 @@ impl Vector3KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24598,24 +24598,24 @@ impl Vector3KeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -24634,11 +24634,11 @@ impl Vector3KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24708,10 +24708,10 @@ impl Vector3KeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24743,10 +24743,10 @@ impl Vector3KeyFrameAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector3, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.param().abi()).ok() } } } impl windows_core::RuntimeType for Vector3KeyFrameAnimation { @@ -24769,10 +24769,10 @@ windows_core::imp::required_hierarchy!(Vector3NaturalMotionAnimation, IAnimation impl Vector3NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24807,10 +24807,10 @@ impl Vector3NaturalMotionAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24856,10 +24856,10 @@ impl Vector3NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -24885,10 +24885,10 @@ impl Vector3NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -24914,24 +24914,24 @@ impl Vector3NaturalMotionAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -24950,11 +24950,11 @@ impl Vector3NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayBehavior(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -25000,10 +25000,10 @@ impl Vector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFinalValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> windows_core::Result> { @@ -25016,10 +25016,10 @@ impl Vector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInitialValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> windows_core::Result { @@ -25055,10 +25055,10 @@ windows_core::imp::required_hierarchy!(Vector4KeyFrameAnimation, IAnimationObjec impl Vector4KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25093,10 +25093,10 @@ impl Vector4KeyFrameAnimation { } pub fn SetReferenceParameter(&self, key: &windows_core::HSTRING, compositionobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), compositionobject.param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &windows_core::HSTRING, value: f32) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25142,10 +25142,10 @@ impl Vector4KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &windows_core::HSTRING, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parametername), source.param().abi()).ok() } } pub fn Compositor(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -25171,10 +25171,10 @@ impl Vector4KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25200,24 +25200,24 @@ impl Vector4KeyFrameAnimation { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -25236,11 +25236,11 @@ impl Vector4KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } pub fn DelayTime(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -25310,10 +25310,10 @@ impl Vector4KeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &windows_core::HSTRING, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, core::mem::transmute_copy(value), easingfunction.param().abi()).ok() } } pub fn Direction(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -25345,10 +25345,10 @@ impl Vector4KeyFrameAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::super::Foundation::Numerics::Vector4, easingfunction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.param().abi()).ok() } } } impl windows_core::RuntimeType for Vector4KeyFrameAnimation { @@ -25371,10 +25371,10 @@ windows_core::imp::required_hierarchy!(Visual, IAnimationObject, super::super::F impl Visual { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25404,10 +25404,10 @@ impl Visual { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25433,24 +25433,24 @@ impl Visual { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -25469,11 +25469,11 @@ impl Visual { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> windows_core::Result { @@ -25532,10 +25532,10 @@ impl Visual { } pub fn SetClip(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClip)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CompositeMode(&self) -> windows_core::Result { let this = self; @@ -25686,10 +25686,10 @@ impl Visual { } pub fn SetParentForTransform(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParentForTransform)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> windows_core::Result { @@ -25761,10 +25761,10 @@ windows_core::imp::required_hierarchy!(VisualCollection, IAnimationObject, super impl VisualCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25794,10 +25794,10 @@ impl VisualCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25823,24 +25823,24 @@ impl VisualCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -25859,11 +25859,11 @@ impl VisualCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -25882,40 +25882,40 @@ impl VisualCollection { } pub fn InsertAbove(&self, newchild: P0, sibling: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAbove)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), sibling.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAbove)(windows_core::Interface::as_raw(this), newchild.param().abi(), sibling.param().abi()).ok() } } pub fn InsertAtBottom(&self, newchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAtBottom)(windows_core::Interface::as_raw(this), newchild.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAtBottom)(windows_core::Interface::as_raw(this), newchild.param().abi()).ok() } } pub fn InsertAtTop(&self, newchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertAtTop)(windows_core::Interface::as_raw(this), newchild.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAtTop)(windows_core::Interface::as_raw(this), newchild.param().abi()).ok() } } pub fn InsertBelow(&self, newchild: P0, sibling: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertBelow)(windows_core::Interface::as_raw(this), newchild.into_param().abi(), sibling.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertBelow)(windows_core::Interface::as_raw(this), newchild.param().abi(), sibling.param().abi()).ok() } } pub fn Remove(&self, child: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), child.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), child.param().abi()).ok() } } pub fn RemoveAll(&self) -> windows_core::Result<()> { let this = self; @@ -25959,10 +25959,10 @@ windows_core::imp::required_hierarchy!(VisualUnorderedCollection, IAnimationObje impl VisualUnorderedCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).PopulatePropertyInfo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), propertyinfo.param().abi()).ok() } } pub fn Close(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -25992,10 +25992,10 @@ impl VisualUnorderedCollection { } pub fn StartAnimation(&self, propertyname: &windows_core::HSTRING, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -26021,24 +26021,24 @@ impl VisualUnorderedCollection { } pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImplicitAnimations)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StopAnimationGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StopAnimationGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> windows_core::Result { @@ -26057,11 +26057,11 @@ impl VisualUnorderedCollection { } pub fn StartAnimationWithController(&self, propertyname: &windows_core::HSTRING, animation: P0, animationcontroller: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.into_param().abi(), animationcontroller.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> windows_core::Result> { @@ -26080,17 +26080,17 @@ impl VisualUnorderedCollection { } pub fn Add(&self, newvisual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), newvisual.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), newvisual.param().abi()).ok() } } pub fn Remove(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), visual.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), visual.param().abi()).ok() } } pub fn RemoveAll(&self) -> windows_core::Result<()> { let this = self; diff --git a/crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs b/crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs index bf11f1cc4a..e0e609629b 100644 --- a/crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs @@ -56,11 +56,11 @@ impl CoreAppWindowPreview { #[cfg(feature = "UI_WindowManagement")] pub fn GetIdFromWindow(window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreAppWindowPreviewStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIdFromWindow)(windows_core::Interface::as_raw(this), window.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetIdFromWindow)(windows_core::Interface::as_raw(this), window.param().abi(), &mut result__).map(|| result__) }) } #[doc(hidden)] @@ -124,12 +124,12 @@ windows_core::imp::interface_hierarchy!(SystemNavigationManagerPreview, windows_ impl SystemNavigationManagerPreview { pub fn CloseRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CloseRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CloseRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCloseRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Core/mod.rs index 3175d1eeca..fcbdad7869 100644 --- a/crates/libs/windows/src/Windows/UI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/mod.rs @@ -72,12 +72,12 @@ windows_core::imp::interface_hierarchy!(ICoreAcceleratorKeys, windows_core::IUnk impl ICoreAcceleratorKeys { pub fn AcceleratorKeyActivated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcceleratorKeyActivated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AcceleratorKeyActivated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAcceleratorKeyActivated(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -225,12 +225,12 @@ impl ICoreInputSourceBase { } pub fn InputEnabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputEnabled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -311,19 +311,19 @@ impl ICorePointerInputSource { } pub fn SetPointerCursor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PointerCaptureLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -332,12 +332,12 @@ impl ICorePointerInputSource { } pub fn PointerEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -346,12 +346,12 @@ impl ICorePointerInputSource { } pub fn PointerExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -360,12 +360,12 @@ impl ICorePointerInputSource { } pub fn PointerMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -374,12 +374,12 @@ impl ICorePointerInputSource { } pub fn PointerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -388,12 +388,12 @@ impl ICorePointerInputSource { } pub fn PointerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -402,12 +402,12 @@ impl ICorePointerInputSource { } pub fn PointerWheelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -485,19 +485,19 @@ impl ICorePointerInputSource2 { } pub fn SetPointerCursor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PointerCaptureLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -506,12 +506,12 @@ impl ICorePointerInputSource2 { } pub fn PointerEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -520,12 +520,12 @@ impl ICorePointerInputSource2 { } pub fn PointerExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -534,12 +534,12 @@ impl ICorePointerInputSource2 { } pub fn PointerMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -548,12 +548,12 @@ impl ICorePointerInputSource2 { } pub fn PointerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -562,12 +562,12 @@ impl ICorePointerInputSource2 { } pub fn PointerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -576,12 +576,12 @@ impl ICorePointerInputSource2 { } pub fn PointerWheelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -605,12 +605,12 @@ windows_core::imp::interface_hierarchy!(ICorePointerRedirector, windows_core::IU impl ICorePointerRedirector { pub fn PointerRoutedAway(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedAway)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedAway)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedAway(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -619,12 +619,12 @@ impl ICorePointerRedirector { } pub fn PointerRoutedTo(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedTo)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedTo)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedTo(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -633,12 +633,12 @@ impl ICorePointerRedirector { } pub fn PointerRoutedReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -732,10 +732,10 @@ impl ICoreWindow { } pub fn SetPointerCursor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PointerPosition(&self) -> windows_core::Result { let this = self; @@ -785,12 +785,12 @@ impl ICoreWindow { } pub fn Activated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActivated(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -799,12 +799,12 @@ impl ICoreWindow { } pub fn AutomationProviderRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutomationProviderRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AutomationProviderRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAutomationProviderRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -813,12 +813,12 @@ impl ICoreWindow { } pub fn CharacterReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CharacterReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CharacterReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCharacterReceived(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -827,12 +827,12 @@ impl ICoreWindow { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -841,12 +841,12 @@ impl ICoreWindow { } pub fn InputEnabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputEnabled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -855,12 +855,12 @@ impl ICoreWindow { } pub fn KeyDown(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyDown(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -869,12 +869,12 @@ impl ICoreWindow { } pub fn KeyUp(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyUp(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -883,12 +883,12 @@ impl ICoreWindow { } pub fn PointerCaptureLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -897,12 +897,12 @@ impl ICoreWindow { } pub fn PointerEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -911,12 +911,12 @@ impl ICoreWindow { } pub fn PointerExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -925,12 +925,12 @@ impl ICoreWindow { } pub fn PointerMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -939,12 +939,12 @@ impl ICoreWindow { } pub fn PointerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -953,12 +953,12 @@ impl ICoreWindow { } pub fn PointerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -967,12 +967,12 @@ impl ICoreWindow { } pub fn TouchHitTesting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TouchHitTesting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TouchHitTesting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTouchHitTesting(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -981,12 +981,12 @@ impl ICoreWindow { } pub fn PointerWheelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -995,12 +995,12 @@ impl ICoreWindow { } pub fn SizeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SizeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SizeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSizeChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1009,12 +1009,12 @@ impl ICoreWindow { } pub fn VisibilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVisibilityChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1317,10 +1317,10 @@ windows_core::imp::interface_hierarchy!(IInitializeWithCoreWindow, windows_core: impl IInitializeWithCoreWindow { pub fn Initialize(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Initialize)(windows_core::Interface::as_raw(this), window.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Initialize)(windows_core::Interface::as_raw(this), window.param().abi()).ok() } } } impl windows_core::RuntimeType for IInitializeWithCoreWindow { @@ -1526,10 +1526,10 @@ impl AutomationProviderRequestedEventArgs { } pub fn SetAutomationProvider(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAutomationProvider)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAutomationProvider)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Handled(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1673,12 +1673,12 @@ windows_core::imp::required_hierarchy!(CoreAcceleratorKeys, ICoreAcceleratorKeys impl CoreAcceleratorKeys { pub fn AcceleratorKeyActivated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcceleratorKeyActivated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AcceleratorKeyActivated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAcceleratorKeyActivated(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1706,12 +1706,12 @@ windows_core::imp::required_hierarchy!(CoreComponentInputSource, ICoreInputSourc impl CoreComponentInputSource { pub fn ClosestInteractiveBoundsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ClosestInteractiveBoundsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ClosestInteractiveBoundsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosestInteractiveBoundsRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1727,12 +1727,12 @@ impl CoreComponentInputSource { } pub fn GotFocus(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GotFocus)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GotFocus)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGotFocus(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1741,12 +1741,12 @@ impl CoreComponentInputSource { } pub fn LostFocus(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LostFocus)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LostFocus)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLostFocus(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1773,12 +1773,12 @@ impl CoreComponentInputSource { } pub fn InputEnabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputEnabled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1795,12 +1795,12 @@ impl CoreComponentInputSource { } pub fn CharacterReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CharacterReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CharacterReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCharacterReceived(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1809,12 +1809,12 @@ impl CoreComponentInputSource { } pub fn KeyDown(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyDown(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1823,12 +1823,12 @@ impl CoreComponentInputSource { } pub fn KeyUp(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyUp(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1873,19 +1873,19 @@ impl CoreComponentInputSource { } pub fn SetPointerCursor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PointerCaptureLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1894,12 +1894,12 @@ impl CoreComponentInputSource { } pub fn PointerEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1908,12 +1908,12 @@ impl CoreComponentInputSource { } pub fn PointerExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1922,12 +1922,12 @@ impl CoreComponentInputSource { } pub fn PointerMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1936,12 +1936,12 @@ impl CoreComponentInputSource { } pub fn PointerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1950,12 +1950,12 @@ impl CoreComponentInputSource { } pub fn PointerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1964,12 +1964,12 @@ impl CoreComponentInputSource { } pub fn PointerWheelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1986,12 +1986,12 @@ impl CoreComponentInputSource { } pub fn TouchHitTesting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TouchHitTesting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TouchHitTesting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTouchHitTesting(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2062,12 +2062,12 @@ windows_core::imp::required_hierarchy!(CoreDispatcher, ICoreAcceleratorKeys); impl CoreDispatcher { pub fn AcceleratorKeyActivated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcceleratorKeyActivated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AcceleratorKeyActivated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAcceleratorKeyActivated(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2087,42 +2087,42 @@ impl CoreDispatcher { } pub fn RunAsync(&self, priority: CoreDispatcherPriority, agilecallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RunAsync)(windows_core::Interface::as_raw(this), priority, agilecallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RunAsync)(windows_core::Interface::as_raw(this), priority, agilecallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RunIdleAsync(&self, agilecallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RunIdleAsync)(windows_core::Interface::as_raw(this), agilecallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RunIdleAsync)(windows_core::Interface::as_raw(this), agilecallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryRunAsync(&self, priority: CoreDispatcherPriority, agilecallback: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryRunAsync)(windows_core::Interface::as_raw(this), priority, agilecallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryRunAsync)(windows_core::Interface::as_raw(this), priority, agilecallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryRunIdleAsync(&self, agilecallback: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryRunIdleAsync)(windows_core::Interface::as_raw(this), agilecallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryRunIdleAsync)(windows_core::Interface::as_raw(this), agilecallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CurrentPriority(&self) -> windows_core::Result { @@ -2193,12 +2193,12 @@ impl CoreIndependentInputSource { } pub fn InputEnabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputEnabled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2236,19 +2236,19 @@ impl CoreIndependentInputSource { } pub fn SetPointerCursor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PointerCaptureLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2257,12 +2257,12 @@ impl CoreIndependentInputSource { } pub fn PointerEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2271,12 +2271,12 @@ impl CoreIndependentInputSource { } pub fn PointerExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2285,12 +2285,12 @@ impl CoreIndependentInputSource { } pub fn PointerMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2299,12 +2299,12 @@ impl CoreIndependentInputSource { } pub fn PointerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2313,12 +2313,12 @@ impl CoreIndependentInputSource { } pub fn PointerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2327,12 +2327,12 @@ impl CoreIndependentInputSource { } pub fn PointerWheelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2349,12 +2349,12 @@ impl CoreIndependentInputSource { } pub fn PointerRoutedAway(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedAway)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedAway)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedAway(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2363,12 +2363,12 @@ impl CoreIndependentInputSource { } pub fn PointerRoutedTo(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedTo)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedTo)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedTo(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2377,12 +2377,12 @@ impl CoreIndependentInputSource { } pub fn PointerRoutedReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2452,21 +2452,21 @@ impl CoreIndependentInputSourceController { #[cfg(feature = "UI_Composition")] pub fn CreateForVisual(visual: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreIndependentInputSourceControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForVisual)(windows_core::Interface::as_raw(this), visual.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForVisual)(windows_core::Interface::as_raw(this), visual.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "UI_Composition")] pub fn CreateForIVisualElement(visualelement: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreIndependentInputSourceControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForIVisualElement)(windows_core::Interface::as_raw(this), visualelement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForIVisualElement)(windows_core::Interface::as_raw(this), visualelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2495,12 +2495,12 @@ windows_core::imp::required_hierarchy!(CoreWindow, ICorePointerRedirector, ICore impl CoreWindow { pub fn PointerRoutedAway(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedAway)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedAway)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedAway(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2509,12 +2509,12 @@ impl CoreWindow { } pub fn PointerRoutedTo(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedTo)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedTo)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedTo(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2523,12 +2523,12 @@ impl CoreWindow { } pub fn PointerRoutedReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerRoutedReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerRoutedReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerRoutedReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2595,10 +2595,10 @@ impl CoreWindow { } pub fn SetPointerCursor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PointerPosition(&self) -> windows_core::Result { let this = self; @@ -2648,12 +2648,12 @@ impl CoreWindow { } pub fn Activated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActivated(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2662,12 +2662,12 @@ impl CoreWindow { } pub fn AutomationProviderRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutomationProviderRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AutomationProviderRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAutomationProviderRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2676,12 +2676,12 @@ impl CoreWindow { } pub fn CharacterReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CharacterReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CharacterReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCharacterReceived(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2690,12 +2690,12 @@ impl CoreWindow { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2704,12 +2704,12 @@ impl CoreWindow { } pub fn InputEnabled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputEnabled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputEnabled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2718,12 +2718,12 @@ impl CoreWindow { } pub fn KeyDown(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyDown(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2732,12 +2732,12 @@ impl CoreWindow { } pub fn KeyUp(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyUp(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2746,12 +2746,12 @@ impl CoreWindow { } pub fn PointerCaptureLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerCaptureLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2760,12 +2760,12 @@ impl CoreWindow { } pub fn PointerEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2774,12 +2774,12 @@ impl CoreWindow { } pub fn PointerExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2788,12 +2788,12 @@ impl CoreWindow { } pub fn PointerMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2802,12 +2802,12 @@ impl CoreWindow { } pub fn PointerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2816,12 +2816,12 @@ impl CoreWindow { } pub fn PointerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2830,12 +2830,12 @@ impl CoreWindow { } pub fn TouchHitTesting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TouchHitTesting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TouchHitTesting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTouchHitTesting(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2844,12 +2844,12 @@ impl CoreWindow { } pub fn PointerWheelChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerWheelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2858,12 +2858,12 @@ impl CoreWindow { } pub fn SizeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SizeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SizeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSizeChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2872,12 +2872,12 @@ impl CoreWindow { } pub fn VisibilityChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVisibilityChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2890,12 +2890,12 @@ impl CoreWindow { } pub fn ClosestInteractiveBoundsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ClosestInteractiveBoundsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ClosestInteractiveBoundsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosestInteractiveBoundsRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2911,12 +2911,12 @@ impl CoreWindow { } pub fn ResizeStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResizeStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ResizeStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveResizeStarted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2925,12 +2925,12 @@ impl CoreWindow { } pub fn ResizeCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResizeCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ResizeCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveResizeCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2995,12 +2995,12 @@ impl CoreWindowDialog { } pub fn Showing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShowing(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3084,10 +3084,10 @@ impl CoreWindowDialog { #[cfg(feature = "UI_Popups")] pub fn SetBackButtonCommand(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBackButtonCommand)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBackButtonCommand)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Popups")] pub fn ShowAsync(&self) -> windows_core::Result> { @@ -3154,12 +3154,12 @@ windows_core::imp::interface_hierarchy!(CoreWindowFlyout, windows_core::IUnknown impl CoreWindowFlyout { pub fn Showing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShowing(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3232,10 +3232,10 @@ impl CoreWindowFlyout { #[cfg(feature = "UI_Popups")] pub fn SetBackButtonCommand(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBackButtonCommand)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBackButtonCommand)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "UI_Popups")] pub fn ShowAsync(&self) -> windows_core::Result> { @@ -3504,12 +3504,12 @@ windows_core::imp::interface_hierarchy!(SystemNavigationManager, windows_core::I impl SystemNavigationManager { pub fn BackRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BackRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BackRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveBackRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4209,10 +4209,10 @@ impl IdleDispatchedHandler { } pub fn Invoke(&self, e: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), e.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/UI/Input/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Core/mod.rs index 3c1b523ba8..81f2b8f45b 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Core/mod.rs @@ -66,11 +66,11 @@ impl RadialControllerIndependentInputSource { #[cfg(feature = "ApplicationModel_Core")] pub fn CreateForView(view: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRadialControllerIndependentInputSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForView)(windows_core::Interface::as_raw(this), view.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForView)(windows_core::Interface::as_raw(this), view.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs index 1d7721f3a9..086857b63e 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs @@ -1001,18 +1001,18 @@ impl InkAnalyzer { } pub fn AddDataForStroke(&self, stroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddDataForStroke)(windows_core::Interface::as_raw(this), stroke.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddDataForStroke)(windows_core::Interface::as_raw(this), stroke.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AddDataForStrokes(&self, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddDataForStrokes)(windows_core::Interface::as_raw(this), strokes.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddDataForStrokes)(windows_core::Interface::as_raw(this), strokes.param().abi()).ok() } } pub fn ClearDataForAllStrokes(&self) -> windows_core::Result<()> { let this = self; @@ -1025,17 +1025,17 @@ impl InkAnalyzer { #[cfg(feature = "Foundation_Collections")] pub fn RemoveDataForStrokes(&self, strokeids: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveDataForStrokes)(windows_core::Interface::as_raw(this), strokeids.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveDataForStrokes)(windows_core::Interface::as_raw(this), strokeids.param().abi()).ok() } } pub fn ReplaceDataForStroke(&self, stroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ReplaceDataForStroke)(windows_core::Interface::as_raw(this), stroke.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ReplaceDataForStroke)(windows_core::Interface::as_raw(this), stroke.param().abi()).ok() } } pub fn SetStrokeDataKind(&self, strokeid: u32, strokekind: InkAnalysisStrokeKind) -> windows_core::Result<()> { let this = self; diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs index 02e094dd28..f615721a7e 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs @@ -166,12 +166,12 @@ impl CoreIncrementalInkStroke { #[cfg(feature = "Foundation_Collections")] pub fn AppendInkPoints(&self, inkpoints: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendInkPoints)(windows_core::Interface::as_raw(this), inkpoints.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AppendInkPoints)(windows_core::Interface::as_raw(this), inkpoints.param().abi(), &mut result__).map(|| result__) } } pub fn CreateInkStroke(&self) -> windows_core::Result { @@ -206,11 +206,11 @@ impl CoreIncrementalInkStroke { #[cfg(feature = "Foundation_Numerics")] pub fn Create(drawingattributes: P0, pointtransform: super::super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreIncrementalInkStrokeFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), drawingattributes.into_param().abi(), pointtransform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), drawingattributes.param().abi(), pointtransform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -239,12 +239,12 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn PointerEntering(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntering)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntering)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntering(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -254,12 +254,12 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn PointerHovering(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerHovering)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerHovering)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerHovering(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -269,12 +269,12 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn PointerExiting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExiting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExiting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExiting(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -284,12 +284,12 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn PointerPressing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressing(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -299,12 +299,12 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn PointerMoving(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoving)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoving)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoving(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -314,12 +314,12 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn PointerReleasing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleasing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleasing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleasing(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -329,12 +329,12 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn PointerLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerLost(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -359,18 +359,18 @@ impl CoreInkIndependentInputSource { #[cfg(feature = "UI_Core")] pub fn SetPointerCursor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetPointerCursor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(inkpresenter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreInkIndependentInputSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -421,10 +421,10 @@ impl CoreInkPresenterHost { #[cfg(feature = "UI_Composition")] pub fn SetRootVisual(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRootVisual)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRootVisual)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for CoreInkPresenterHost { @@ -490,12 +490,12 @@ windows_core::imp::interface_hierarchy!(CoreWetStrokeUpdateSource, windows_core: impl CoreWetStrokeUpdateSource { pub fn WetStrokeStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WetStrokeStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WetStrokeStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWetStrokeStarting(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -504,12 +504,12 @@ impl CoreWetStrokeUpdateSource { } pub fn WetStrokeContinuing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WetStrokeContinuing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WetStrokeContinuing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWetStrokeContinuing(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -518,12 +518,12 @@ impl CoreWetStrokeUpdateSource { } pub fn WetStrokeStopping(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WetStrokeStopping)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WetStrokeStopping)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWetStrokeStopping(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -532,12 +532,12 @@ impl CoreWetStrokeUpdateSource { } pub fn WetStrokeCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WetStrokeCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WetStrokeCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWetStrokeCompleted(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -546,12 +546,12 @@ impl CoreWetStrokeUpdateSource { } pub fn WetStrokeCanceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WetStrokeCanceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WetStrokeCanceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWetStrokeCanceled(&self, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -567,11 +567,11 @@ impl CoreWetStrokeUpdateSource { } pub fn Create(inkpresenter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreWetStrokeUpdateSourceStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Preview/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Preview/mod.rs index f07f39e9d8..23c5760219 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Preview/mod.rs @@ -35,22 +35,22 @@ impl PalmRejectionDelayZonePreview { #[cfg(feature = "UI_Composition")] pub fn CreateForVisual(inputpanelvisual: P0, inputpanelrect: super::super::super::super::Foundation::Rect) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPalmRejectionDelayZonePreviewStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForVisual)(windows_core::Interface::as_raw(this), inputpanelvisual.into_param().abi(), inputpanelrect, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForVisual)(windows_core::Interface::as_raw(this), inputpanelvisual.param().abi(), inputpanelrect, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "UI_Composition")] pub fn CreateForVisualWithViewportClip(inputpanelvisual: P0, inputpanelrect: super::super::super::super::Foundation::Rect, viewportvisual: P1, viewportrect: super::super::super::super::Foundation::Rect) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IPalmRejectionDelayZonePreviewStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForVisualWithViewportClip)(windows_core::Interface::as_raw(this), inputpanelvisual.into_param().abi(), inputpanelrect, viewportvisual.into_param().abi(), viewportrect, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForVisualWithViewportClip)(windows_core::Interface::as_raw(this), inputpanelvisual.param().abi(), inputpanelrect, viewportvisual.param().abi(), viewportrect, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs index 4a63527307..090f4cb6b2 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs @@ -321,12 +321,12 @@ windows_core::imp::interface_hierarchy!(IInkPresenterRulerFactory, windows_core: impl IInkPresenterRulerFactory { pub fn Create(&self, inkpresenter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -448,20 +448,20 @@ windows_core::imp::interface_hierarchy!(IInkRecognizerContainer, windows_core::I impl IInkRecognizerContainer { pub fn SetDefaultRecognizer(&self, recognizer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RecognizeAsync(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.into_param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -602,10 +602,10 @@ impl IInkStrokeContainer { } pub fn AddStroke(&self, stroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddStroke)(windows_core::Interface::as_raw(this), stroke.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddStroke)(windows_core::Interface::as_raw(this), stroke.param().abi()).ok() } } pub fn DeleteSelected(&self) -> windows_core::Result { let this = self; @@ -624,12 +624,12 @@ impl IInkStrokeContainer { #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectWithPolyLine)(windows_core::Interface::as_raw(this), polyline.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectWithPolyLine)(windows_core::Interface::as_raw(this), polyline.param().abi(), &mut result__).map(|| result__) } } pub fn SelectWithLine(&self, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point) -> windows_core::Result { @@ -660,32 +660,32 @@ impl IInkStrokeContainer { #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(&self, inputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SaveAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetStrokes(&self) -> windows_core::Result> { @@ -1219,37 +1219,37 @@ impl InkManager { } pub fn ProcessPointerDown(&self, pointerpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessPointerDown)(windows_core::Interface::as_raw(this), pointerpoint.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessPointerDown)(windows_core::Interface::as_raw(this), pointerpoint.param().abi()).ok() } } pub fn ProcessPointerUpdate(&self, pointerpoint: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProcessPointerUpdate)(windows_core::Interface::as_raw(this), pointerpoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ProcessPointerUpdate)(windows_core::Interface::as_raw(this), pointerpoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ProcessPointerUp(&self, pointerpoint: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProcessPointerUp)(windows_core::Interface::as_raw(this), pointerpoint.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProcessPointerUp)(windows_core::Interface::as_raw(this), pointerpoint.param().abi(), &mut result__).map(|| result__) } } pub fn SetDefaultDrawingAttributes(&self, drawingattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), drawingattributes.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), drawingattributes.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RecognizeAsync2(&self, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> { @@ -1261,20 +1261,20 @@ impl InkManager { } pub fn SetDefaultRecognizer(&self, recognizer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RecognizeAsync(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.into_param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -1294,10 +1294,10 @@ impl InkManager { } pub fn AddStroke(&self, stroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddStroke)(windows_core::Interface::as_raw(this), stroke.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddStroke)(windows_core::Interface::as_raw(this), stroke.param().abi()).ok() } } pub fn DeleteSelected(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1316,12 +1316,12 @@ impl InkManager { #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectWithPolyLine)(windows_core::Interface::as_raw(this), polyline.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectWithPolyLine)(windows_core::Interface::as_raw(this), polyline.param().abi(), &mut result__).map(|| result__) } } pub fn SelectWithLine(&self, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point) -> windows_core::Result { @@ -1352,32 +1352,32 @@ impl InkManager { #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(&self, inputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SaveAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetStrokes(&self) -> windows_core::Result> { @@ -1591,10 +1591,10 @@ impl InkPresenter { } pub fn SetStrokeContainer(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetStrokeContainer)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStrokeContainer)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CopyDefaultDrawingAttributes(&self) -> windows_core::Result { let this = self; @@ -1605,10 +1605,10 @@ impl InkPresenter { } pub fn UpdateDefaultDrawingAttributes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ActivateCustomDrying(&self) -> windows_core::Result { let this = self; @@ -1623,12 +1623,12 @@ impl InkPresenter { } pub fn StrokesCollected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StrokesCollected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StrokesCollected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStrokesCollected(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1637,12 +1637,12 @@ impl InkPresenter { } pub fn StrokesErased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StrokesErased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StrokesErased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStrokesErased(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1765,11 +1765,11 @@ impl InkPresenterProtractor { } pub fn Create(inkpresenter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInkPresenterProtractorFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Kind(&self) -> windows_core::Result { @@ -1895,11 +1895,11 @@ impl InkPresenterRuler { } pub fn Create(inkpresenter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInkPresenterRulerFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), inkpresenter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Kind(&self) -> windows_core::Result { @@ -2052,20 +2052,20 @@ impl InkRecognizerContainer { } pub fn SetDefaultRecognizer(&self, recognizer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RecognizeAsync(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.into_param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -2101,10 +2101,10 @@ impl InkStroke { } pub fn SetDrawingAttributes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDrawingAttributes)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDrawingAttributes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn BoundingRect(&self) -> windows_core::Result { let this = self; @@ -2183,10 +2183,10 @@ impl InkStroke { } pub fn SetStrokeStartedTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetStrokeStartedTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStrokeStartedTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StrokeDuration(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; @@ -2197,10 +2197,10 @@ impl InkStroke { } pub fn SetStrokeDuration(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetStrokeDuration)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetStrokeDuration)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn PointerId(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2236,71 +2236,71 @@ impl InkStrokeBuilder { } pub fn BeginStroke(&self, pointerpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).BeginStroke)(windows_core::Interface::as_raw(this), pointerpoint.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).BeginStroke)(windows_core::Interface::as_raw(this), pointerpoint.param().abi()).ok() } } pub fn AppendToStroke(&self, pointerpoint: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppendToStroke)(windows_core::Interface::as_raw(this), pointerpoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).AppendToStroke)(windows_core::Interface::as_raw(this), pointerpoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn EndStroke(&self, pointerpoint: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EndStroke)(windows_core::Interface::as_raw(this), pointerpoint.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).EndStroke)(windows_core::Interface::as_raw(this), pointerpoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn CreateStroke(&self, points: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStroke)(windows_core::Interface::as_raw(this), points.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStroke)(windows_core::Interface::as_raw(this), points.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SetDefaultDrawingAttributes(&self, drawingattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), drawingattributes.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), drawingattributes.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Foundation_Numerics"))] pub fn CreateStrokeFromInkPoints(&self, inkpoints: P0, transform: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStrokeFromInkPoints)(windows_core::Interface::as_raw(this), inkpoints.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStrokeFromInkPoints)(windows_core::Interface::as_raw(this), inkpoints.param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Foundation_Collections", feature = "Foundation_Numerics"))] pub fn CreateStrokeFromInkPoints2(&self, inkpoints: P0, transform: super::super::super::Foundation::Numerics::Matrix3x2, strokestartedtime: P1, strokeduration: P2) -> windows_core::Result where - P0: windows_core::IntoParam>, - P1: windows_core::IntoParam>, - P2: windows_core::IntoParam>, + P0: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateStrokeFromInkPoints)(windows_core::Interface::as_raw(this), inkpoints.into_param().abi(), transform, strokestartedtime.into_param().abi(), strokeduration.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateStrokeFromInkPoints)(windows_core::Interface::as_raw(this), inkpoints.param().abi(), transform, strokestartedtime.param().abi(), strokeduration.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -2336,10 +2336,10 @@ impl InkStrokeContainer { } pub fn AddStroke(&self, stroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddStroke)(windows_core::Interface::as_raw(this), stroke.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddStroke)(windows_core::Interface::as_raw(this), stroke.param().abi()).ok() } } pub fn DeleteSelected(&self) -> windows_core::Result { let this = self; @@ -2358,12 +2358,12 @@ impl InkStrokeContainer { #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectWithPolyLine)(windows_core::Interface::as_raw(this), polyline.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectWithPolyLine)(windows_core::Interface::as_raw(this), polyline.param().abi(), &mut result__).map(|| result__) } } pub fn SelectWithLine(&self, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point) -> windows_core::Result { @@ -2394,32 +2394,32 @@ impl InkStrokeContainer { #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(&self, inputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).LoadAsync)(windows_core::Interface::as_raw(this), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn SaveAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetStrokes(&self) -> windows_core::Result> { @@ -2440,10 +2440,10 @@ impl InkStrokeContainer { #[cfg(feature = "Foundation_Collections")] pub fn AddStrokes(&self, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddStrokes)(windows_core::Interface::as_raw(this), strokes.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddStrokes)(windows_core::Interface::as_raw(this), strokes.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2452,12 +2452,12 @@ impl InkStrokeContainer { #[cfg(feature = "Storage_Streams")] pub fn SaveWithFormatAsync(&self, outputstream: P0, inkpersistenceformat: InkPersistenceFormat) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveWithFormatAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), inkpersistenceformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveWithFormatAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), inkpersistenceformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetStrokeById(&self, id: u32) -> windows_core::Result { @@ -2486,12 +2486,12 @@ impl InkStrokeInput { #[cfg(feature = "UI_Core")] pub fn StrokeStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StrokeStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StrokeStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStrokeStarted(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2501,12 +2501,12 @@ impl InkStrokeInput { #[cfg(feature = "UI_Core")] pub fn StrokeContinued(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StrokeContinued)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StrokeContinued)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStrokeContinued(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2516,12 +2516,12 @@ impl InkStrokeInput { #[cfg(feature = "UI_Core")] pub fn StrokeEnded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StrokeEnded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StrokeEnded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStrokeEnded(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2531,12 +2531,12 @@ impl InkStrokeInput { #[cfg(feature = "UI_Core")] pub fn StrokeCanceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StrokeCanceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).StrokeCanceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStrokeCanceled(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2714,12 +2714,12 @@ impl InkUnprocessedInput { #[cfg(feature = "UI_Core")] pub fn PointerEntered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerEntered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2729,12 +2729,12 @@ impl InkUnprocessedInput { #[cfg(feature = "UI_Core")] pub fn PointerHovered(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerHovered)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerHovered)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerHovered(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2744,12 +2744,12 @@ impl InkUnprocessedInput { #[cfg(feature = "UI_Core")] pub fn PointerExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerExited(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2759,12 +2759,12 @@ impl InkUnprocessedInput { #[cfg(feature = "UI_Core")] pub fn PointerPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2774,12 +2774,12 @@ impl InkUnprocessedInput { #[cfg(feature = "UI_Core")] pub fn PointerMoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerMoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2789,12 +2789,12 @@ impl InkUnprocessedInput { #[cfg(feature = "UI_Core")] pub fn PointerReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2804,12 +2804,12 @@ impl InkUnprocessedInput { #[cfg(feature = "UI_Core")] pub fn PointerLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PointerLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PointerLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePointerLost(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs index b37d57c985..dd438e9efc 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs @@ -599,18 +599,18 @@ impl InputInjector { #[cfg(feature = "Foundation_Collections")] pub fn InjectKeyboardInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InjectKeyboardInput)(windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InjectKeyboardInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InjectMouseInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InjectMouseInput)(windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InjectMouseInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } } pub fn InitializeTouchInjection(&self, visualmode: InjectedInputVisualizationMode) -> windows_core::Result<()> { let this = self; @@ -619,10 +619,10 @@ impl InputInjector { #[cfg(feature = "Foundation_Collections")] pub fn InjectTouchInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InjectTouchInput)(windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InjectTouchInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } } pub fn UninitializeTouchInjection(&self) -> windows_core::Result<()> { let this = self; @@ -634,10 +634,10 @@ impl InputInjector { } pub fn InjectPenInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InjectPenInput)(windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InjectPenInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } } pub fn UninitializePenInjection(&self) -> windows_core::Result<()> { let this = self; @@ -653,10 +653,10 @@ impl InputInjector { } pub fn InjectGamepadInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InjectGamepadInput)(windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InjectGamepadInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } } pub fn UninitializeGamepadInjection(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; diff --git a/crates/libs/windows/src/Windows/UI/Input/Preview/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Preview/mod.rs index 7c4797c860..228d7a665c 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Preview/mod.rs @@ -17,11 +17,11 @@ impl InputActivationListenerPreview { #[cfg(feature = "UI_WindowManagement")] pub fn CreateForApplicationWindow(window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInputActivationListenerPreviewStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForApplicationWindow)(windows_core::Interface::as_raw(this), window.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForApplicationWindow)(windows_core::Interface::as_raw(this), window.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs index 8a978f49bf..248b430faa 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs @@ -618,12 +618,12 @@ windows_core::imp::interface_hierarchy!(SpatialGestureRecognizer, windows_core:: impl SpatialGestureRecognizer { pub fn RecognitionStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecognitionStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecognitionStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRecognitionStarted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -632,12 +632,12 @@ impl SpatialGestureRecognizer { } pub fn RecognitionEnded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RecognitionEnded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RecognitionEnded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRecognitionEnded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -646,12 +646,12 @@ impl SpatialGestureRecognizer { } pub fn Tapped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Tapped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Tapped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTapped(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -660,12 +660,12 @@ impl SpatialGestureRecognizer { } pub fn HoldStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HoldStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HoldStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHoldStarted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -674,12 +674,12 @@ impl SpatialGestureRecognizer { } pub fn HoldCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HoldCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HoldCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHoldCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -688,12 +688,12 @@ impl SpatialGestureRecognizer { } pub fn HoldCanceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HoldCanceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HoldCanceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHoldCanceled(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -702,12 +702,12 @@ impl SpatialGestureRecognizer { } pub fn ManipulationStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationStarted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -716,12 +716,12 @@ impl SpatialGestureRecognizer { } pub fn ManipulationUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationUpdated(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -730,12 +730,12 @@ impl SpatialGestureRecognizer { } pub fn ManipulationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -744,12 +744,12 @@ impl SpatialGestureRecognizer { } pub fn ManipulationCanceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationCanceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationCanceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationCanceled(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -758,12 +758,12 @@ impl SpatialGestureRecognizer { } pub fn NavigationStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationStarted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -772,12 +772,12 @@ impl SpatialGestureRecognizer { } pub fn NavigationUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationUpdated(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -786,12 +786,12 @@ impl SpatialGestureRecognizer { } pub fn NavigationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -800,12 +800,12 @@ impl SpatialGestureRecognizer { } pub fn NavigationCanceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationCanceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationCanceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationCanceled(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -814,10 +814,10 @@ impl SpatialGestureRecognizer { } pub fn CaptureInteraction(&self, interaction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CaptureInteraction)(windows_core::Interface::as_raw(this), interaction.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).CaptureInteraction)(windows_core::Interface::as_raw(this), interaction.param().abi()).ok() } } pub fn CancelPendingGestures(&self) -> windows_core::Result<()> { let this = self; @@ -926,12 +926,12 @@ impl SpatialHoldStartedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetPointerPose(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1131,12 +1131,12 @@ impl SpatialInteractionDetectedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetPointerPose(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Interaction(&self) -> windows_core::Result { @@ -1173,12 +1173,12 @@ windows_core::imp::interface_hierarchy!(SpatialInteractionManager, windows_core: impl SpatialInteractionManager { pub fn SourceDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceDetected(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1187,12 +1187,12 @@ impl SpatialInteractionManager { } pub fn SourceLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceLost(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1201,12 +1201,12 @@ impl SpatialInteractionManager { } pub fn SourceUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceUpdated(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1215,12 +1215,12 @@ impl SpatialInteractionManager { } pub fn SourcePressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourcePressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourcePressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourcePressed(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1229,12 +1229,12 @@ impl SpatialInteractionManager { } pub fn SourceReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SourceReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SourceReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSourceReleased(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1243,12 +1243,12 @@ impl SpatialInteractionManager { } pub fn InteractionDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InteractionDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InteractionDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInteractionDetected(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1258,12 +1258,12 @@ impl SpatialInteractionManager { #[cfg(all(feature = "Foundation_Collections", feature = "Perception"))] pub fn GetDetectedSourcesAtTimestamp(&self, timestamp: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetDetectedSourcesAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetDetectedSourcesAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetForCurrentView() -> windows_core::Result { @@ -1351,12 +1351,12 @@ impl SpatialInteractionSource { #[cfg(feature = "Perception")] pub fn TryGetStateAtTimestamp(&self, timestamp: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetStateAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetStateAtTimestamp)(windows_core::Interface::as_raw(this), timestamp.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Handedness(&self) -> windows_core::Result { @@ -1499,12 +1499,12 @@ impl SpatialInteractionSourceProperties { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn TryGetSourceLossMitigationDirection(&self, coordinatesystem: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetSourceLossMitigationDirection)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetSourceLossMitigationDirection)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SourceLossRisk(&self) -> windows_core::Result { @@ -1517,12 +1517,12 @@ impl SpatialInteractionSourceProperties { #[cfg(feature = "Perception_Spatial")] pub fn TryGetLocation(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetLocation)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetLocation)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1575,12 +1575,12 @@ impl SpatialInteractionSourceState { #[cfg(feature = "Perception_Spatial")] pub fn TryGetPointerPose(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsSelectPressed(&self) -> windows_core::Result { @@ -1679,12 +1679,12 @@ impl SpatialManipulationCompletedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetCumulativeDelta(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetCumulativeDelta)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetCumulativeDelta)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1741,12 +1741,12 @@ impl SpatialManipulationStartedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetPointerPose(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1777,12 +1777,12 @@ impl SpatialManipulationUpdatedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetCumulativeDelta(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetCumulativeDelta)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetCumulativeDelta)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1871,12 +1871,12 @@ impl SpatialNavigationStartedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetPointerPose(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsNavigatingX(&self) -> windows_core::Result { @@ -2026,12 +2026,12 @@ impl SpatialPointerPose { } pub fn TryGetInteractionSourcePose(&self, source: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetInteractionSourcePose)(windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetInteractionSourcePose)(windows_core::Interface::as_raw(this), source.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Perception_People")] @@ -2052,12 +2052,12 @@ impl SpatialPointerPose { #[cfg(feature = "Perception_Spatial")] pub fn TryGetAtTimestamp(coordinatesystem: P0, timestamp: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISpatialPointerPoseStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetAtTimestamp)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), timestamp.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetAtTimestamp)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), timestamp.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2118,12 +2118,12 @@ impl SpatialRecognitionStartedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetPointerPose(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsGesturePossible(&self, gesture: SpatialGestureSettings) -> windows_core::Result { @@ -2161,12 +2161,12 @@ impl SpatialTappedEventArgs { #[cfg(feature = "Perception_Spatial")] pub fn TryGetPointerPose(&self, coordinatesystem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetPointerPose)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TapCount(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/UI/Input/mod.rs b/crates/libs/windows/src/Windows/UI/Input/mod.rs index 0f43dce4d2..cb9856b420 100644 --- a/crates/libs/windows/src/Windows/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/mod.rs @@ -1066,12 +1066,12 @@ windows_core::imp::interface_hierarchy!(EdgeGesture, windows_core::IUnknown, win impl EdgeGesture { pub fn Starting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Starting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Starting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1080,12 +1080,12 @@ impl EdgeGesture { } pub fn Completed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1094,12 +1094,12 @@ impl EdgeGesture { } pub fn Canceled(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCanceled(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1351,42 +1351,42 @@ impl GestureRecognizer { } pub fn CanBeDoubleTap(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanBeDoubleTap)(windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CanBeDoubleTap)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } pub fn ProcessDownEvent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessDownEvent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessDownEvent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn ProcessMoveEvents(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessMoveEvents)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessMoveEvents)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProcessUpEvent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessUpEvent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessUpEvent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProcessMouseWheelEvent(&self, value: P0, isshiftkeydown: bool, iscontrolkeydown: bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ProcessMouseWheelEvent)(windows_core::Interface::as_raw(this), value.into_param().abi(), isshiftkeydown, iscontrolkeydown).ok() } + unsafe { (windows_core::Interface::vtable(this).ProcessMouseWheelEvent)(windows_core::Interface::as_raw(this), value.param().abi(), isshiftkeydown, iscontrolkeydown).ok() } } pub fn ProcessInertia(&self) -> windows_core::Result<()> { let this = self; @@ -1398,12 +1398,12 @@ impl GestureRecognizer { } pub fn Tapped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Tapped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Tapped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTapped(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1412,12 +1412,12 @@ impl GestureRecognizer { } pub fn RightTapped(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RightTapped)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RightTapped)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRightTapped(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1426,12 +1426,12 @@ impl GestureRecognizer { } pub fn Holding(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Holding)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Holding)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHolding(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1440,12 +1440,12 @@ impl GestureRecognizer { } pub fn Dragging(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Dragging)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Dragging)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDragging(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1454,12 +1454,12 @@ impl GestureRecognizer { } pub fn ManipulationStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationStarted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1468,12 +1468,12 @@ impl GestureRecognizer { } pub fn ManipulationUpdated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationUpdated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationUpdated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1482,12 +1482,12 @@ impl GestureRecognizer { } pub fn ManipulationInertiaStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationInertiaStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationInertiaStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationInertiaStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1496,12 +1496,12 @@ impl GestureRecognizer { } pub fn ManipulationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManipulationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ManipulationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveManipulationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1510,12 +1510,12 @@ impl GestureRecognizer { } pub fn CrossSliding(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CrossSliding)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CrossSliding)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCrossSliding(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1692,12 +1692,12 @@ impl InputActivationListener { } pub fn InputActivationChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputActivationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputActivationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputActivationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1761,12 +1761,12 @@ impl KeyboardDeliveryInterceptor { #[cfg(feature = "UI_Core")] pub fn KeyDown(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyDown)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyDown(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1776,12 +1776,12 @@ impl KeyboardDeliveryInterceptor { #[cfg(feature = "UI_Core")] pub fn KeyUp(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).KeyUp)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveKeyUp(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2178,21 +2178,21 @@ impl PointerPoint { } pub fn GetCurrentPointTransformed(pointerid: u32, transform: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPointerPointStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCurrentPointTransformed)(windows_core::Interface::as_raw(this), pointerid, transform.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetCurrentPointTransformed)(windows_core::Interface::as_raw(this), pointerid, transform.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn GetIntermediatePointsTransformed(pointerid: u32, transform: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IPointerPointStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIntermediatePointsTransformed)(windows_core::Interface::as_raw(this), pointerid, transform.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetIntermediatePointsTransformed)(windows_core::Interface::as_raw(this), pointerid, transform.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2489,12 +2489,12 @@ impl RadialController { } pub fn ScreenContactStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScreenContactStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScreenContactStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScreenContactStarted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2503,12 +2503,12 @@ impl RadialController { } pub fn ScreenContactEnded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScreenContactEnded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScreenContactEnded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScreenContactEnded(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2517,12 +2517,12 @@ impl RadialController { } pub fn ScreenContactContinued(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScreenContactContinued)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScreenContactContinued)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScreenContactContinued(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2531,12 +2531,12 @@ impl RadialController { } pub fn ControlLost(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ControlLost)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ControlLost)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveControlLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2545,12 +2545,12 @@ impl RadialController { } pub fn RotationChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RotationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RotationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRotationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2559,12 +2559,12 @@ impl RadialController { } pub fn ButtonClicked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ButtonClicked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ButtonClicked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveButtonClicked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2573,12 +2573,12 @@ impl RadialController { } pub fn ControlAcquired(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ControlAcquired)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ControlAcquired)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveControlAcquired(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2587,12 +2587,12 @@ impl RadialController { } pub fn ButtonPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ButtonPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ButtonPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveButtonPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2601,12 +2601,12 @@ impl RadialController { } pub fn ButtonHolding(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ButtonHolding)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ButtonHolding)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveButtonHolding(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2615,12 +2615,12 @@ impl RadialController { } pub fn ButtonReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ButtonReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ButtonReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveButtonReleased(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2797,10 +2797,10 @@ impl RadialControllerConfiguration { #[cfg(feature = "Foundation_Collections")] pub fn SetDefaultMenuItems(&self, buttons: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultMenuItems)(windows_core::Interface::as_raw(this), buttons.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultMenuItems)(windows_core::Interface::as_raw(this), buttons.param().abi()).ok() } } pub fn ResetToDefaultMenuItems(&self) -> windows_core::Result<()> { let this = self; @@ -2815,10 +2815,10 @@ impl RadialControllerConfiguration { } pub fn SetActiveControllerWhenMenuIsSuppressed(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetActiveControllerWhenMenuIsSuppressed)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetActiveControllerWhenMenuIsSuppressed)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ActiveControllerWhenMenuIsSuppressed(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2846,9 +2846,9 @@ impl RadialControllerConfiguration { } pub fn SetAppController(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IRadialControllerConfigurationStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetAppController)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) + Self::IRadialControllerConfigurationStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetAppController)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn AppController() -> windows_core::Result { Self::IRadialControllerConfigurationStatics2(|this| unsafe { @@ -2961,10 +2961,10 @@ impl RadialControllerMenu { } pub fn SelectMenuItem(&self, menuitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SelectMenuItem)(windows_core::Interface::as_raw(this), menuitem.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SelectMenuItem)(windows_core::Interface::as_raw(this), menuitem.param().abi()).ok() } } pub fn TrySelectPreviouslySelectedMenuItem(&self) -> windows_core::Result { let this = self; @@ -3007,19 +3007,19 @@ impl RadialControllerMenuItem { } pub fn SetTag(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTag)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTag)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Invoked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Invoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Invoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInvoked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3029,11 +3029,11 @@ impl RadialControllerMenuItem { #[cfg(feature = "Storage_Streams")] pub fn CreateFromIcon(displaytext: &windows_core::HSTRING, icon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRadialControllerMenuItemStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromIcon)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaytext), icon.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromIcon)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaytext), icon.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateFromKnownIcon(displaytext: &windows_core::HSTRING, value: RadialControllerMenuKnownIcon) -> windows_core::Result { @@ -3050,11 +3050,11 @@ impl RadialControllerMenuItem { } pub fn CreateFromFontGlyphWithUri(displaytext: &windows_core::HSTRING, glyph: &windows_core::HSTRING, fontfamily: &windows_core::HSTRING, fonturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IRadialControllerMenuItemStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromFontGlyphWithUri)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaytext), core::mem::transmute_copy(glyph), core::mem::transmute_copy(fontfamily), fonturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromFontGlyphWithUri)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(displaytext), core::mem::transmute_copy(glyph), core::mem::transmute_copy(fontfamily), fonturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -3322,12 +3322,12 @@ impl SystemButtonEventController { } pub fn SystemFunctionButtonPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SystemFunctionButtonPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SystemFunctionButtonPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSystemFunctionButtonPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3336,12 +3336,12 @@ impl SystemButtonEventController { } pub fn SystemFunctionButtonReleased(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SystemFunctionButtonReleased)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SystemFunctionButtonReleased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSystemFunctionButtonReleased(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3350,12 +3350,12 @@ impl SystemButtonEventController { } pub fn SystemFunctionLockChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SystemFunctionLockChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SystemFunctionLockChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSystemFunctionLockChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3364,12 +3364,12 @@ impl SystemButtonEventController { } pub fn SystemFunctionLockIndicatorChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SystemFunctionLockIndicatorChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SystemFunctionLockIndicatorChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSystemFunctionLockIndicatorChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3379,11 +3379,11 @@ impl SystemButtonEventController { #[cfg(feature = "System")] pub fn CreateForDispatcherQueue(queue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISystemButtonEventControllerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForDispatcherQueue)(windows_core::Interface::as_raw(this), queue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForDispatcherQueue)(windows_core::Interface::as_raw(this), queue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs b/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs index 53139d7a11..4884f1f541 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs @@ -47,12 +47,12 @@ impl UserNotificationListener { } pub fn NotificationChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NotificationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NotificationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNotificationChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/Notifications/mod.rs b/crates/libs/windows/src/Windows/UI/Notifications/mod.rs index bd0699f360..1f0bc8c775 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/mod.rs @@ -988,10 +988,10 @@ impl BadgeNotification { } pub fn SetExpirationTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ExpirationTime(&self) -> windows_core::Result> { let this = self; @@ -1003,11 +1003,11 @@ impl BadgeNotification { #[cfg(feature = "Data_Xml_Dom")] pub fn CreateBadgeNotification(content: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBadgeNotificationFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateBadgeNotification)(windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateBadgeNotification)(windows_core::Interface::as_raw(this), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1058,11 +1058,11 @@ impl BadgeUpdateManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IBadgeUpdateManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1133,10 +1133,10 @@ windows_core::imp::interface_hierarchy!(BadgeUpdater, windows_core::IUnknown, wi impl BadgeUpdater { pub fn Update(&self, notification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), notification.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), notification.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = self; @@ -1144,17 +1144,17 @@ impl BadgeUpdater { } pub fn StartPeriodicUpdate(&self, badgecontent: P0, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdate)(windows_core::Interface::as_raw(this), badgecontent.into_param().abi(), requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdate)(windows_core::Interface::as_raw(this), badgecontent.param().abi(), requestedinterval).ok() } } pub fn StartPeriodicUpdateAtTime(&self, badgecontent: P0, starttime: super::super::Foundation::DateTime, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateAtTime)(windows_core::Interface::as_raw(this), badgecontent.into_param().abi(), starttime, requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateAtTime)(windows_core::Interface::as_raw(this), badgecontent.param().abi(), starttime, requestedinterval).ok() } } pub fn StopPeriodicUpdate(&self) -> windows_core::Result<()> { let this = self; @@ -1383,10 +1383,10 @@ impl Notification { } pub fn SetExpirationTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Visual(&self) -> windows_core::Result { let this = self; @@ -1397,10 +1397,10 @@ impl Notification { } pub fn SetVisual(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetVisual)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetVisual)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for Notification { @@ -1505,21 +1505,21 @@ impl NotificationData { #[cfg(feature = "Foundation_Collections")] pub fn CreateNotificationDataWithValuesAndSequenceNumber(initialvalues: P0, sequencenumber: u32) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { Self::INotificationDataFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateNotificationDataWithValuesAndSequenceNumber)(windows_core::Interface::as_raw(this), initialvalues.into_param().abi(), sequencenumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateNotificationDataWithValuesAndSequenceNumber)(windows_core::Interface::as_raw(this), initialvalues.param().abi(), sequencenumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Foundation_Collections")] pub fn CreateNotificationDataWithValues(initialvalues: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { Self::INotificationDataFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateNotificationDataWithValues)(windows_core::Interface::as_raw(this), initialvalues.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateNotificationDataWithValues)(windows_core::Interface::as_raw(this), initialvalues.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1606,10 +1606,10 @@ impl ScheduledTileNotification { } pub fn SetExpirationTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ExpirationTime(&self) -> windows_core::Result> { let this = self; @@ -1643,11 +1643,11 @@ impl ScheduledTileNotification { #[cfg(feature = "Data_Xml_Dom")] pub fn CreateScheduledTileNotification(content: P0, deliverytime: super::super::Foundation::DateTime) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IScheduledTileNotificationFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateScheduledTileNotification)(windows_core::Interface::as_raw(this), content.into_param().abi(), deliverytime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateScheduledTileNotification)(windows_core::Interface::as_raw(this), content.param().abi(), deliverytime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1777,29 +1777,29 @@ impl ScheduledToastNotification { } pub fn SetExpirationTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Data_Xml_Dom")] pub fn CreateScheduledToastNotification(content: P0, deliverytime: super::super::Foundation::DateTime) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IScheduledToastNotificationFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateScheduledToastNotification)(windows_core::Interface::as_raw(this), content.into_param().abi(), deliverytime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateScheduledToastNotification)(windows_core::Interface::as_raw(this), content.param().abi(), deliverytime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Data_Xml_Dom")] pub fn CreateScheduledToastNotificationRecurring(content: P0, deliverytime: super::super::Foundation::DateTime, snoozeinterval: super::super::Foundation::TimeSpan, maximumsnoozecount: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IScheduledToastNotificationFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateScheduledToastNotificationRecurring)(windows_core::Interface::as_raw(this), content.into_param().abi(), deliverytime, snoozeinterval, maximumsnoozecount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateScheduledToastNotificationRecurring)(windows_core::Interface::as_raw(this), content.param().abi(), deliverytime, snoozeinterval, maximumsnoozecount, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1903,10 +1903,10 @@ impl TileFlyoutNotification { } pub fn SetExpirationTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ExpirationTime(&self) -> windows_core::Result> { let this = self; @@ -1918,11 +1918,11 @@ impl TileFlyoutNotification { #[cfg(feature = "Data_Xml_Dom")] pub fn CreateTileFlyoutNotification(content: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITileFlyoutNotificationFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTileFlyoutNotification)(windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTileFlyoutNotification)(windows_core::Interface::as_raw(this), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1986,10 +1986,10 @@ windows_core::imp::interface_hierarchy!(TileFlyoutUpdater, windows_core::IUnknow impl TileFlyoutUpdater { pub fn Update(&self, notification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), notification.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), notification.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = self; @@ -1997,17 +1997,17 @@ impl TileFlyoutUpdater { } pub fn StartPeriodicUpdate(&self, tileflyoutcontent: P0, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdate)(windows_core::Interface::as_raw(this), tileflyoutcontent.into_param().abi(), requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdate)(windows_core::Interface::as_raw(this), tileflyoutcontent.param().abi(), requestedinterval).ok() } } pub fn StartPeriodicUpdateAtTime(&self, tileflyoutcontent: P0, starttime: super::super::Foundation::DateTime, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateAtTime)(windows_core::Interface::as_raw(this), tileflyoutcontent.into_param().abi(), starttime, requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateAtTime)(windows_core::Interface::as_raw(this), tileflyoutcontent.param().abi(), starttime, requestedinterval).ok() } } pub fn StopPeriodicUpdate(&self) -> windows_core::Result<()> { let this = self; @@ -2046,10 +2046,10 @@ impl TileNotification { } pub fn SetExpirationTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ExpirationTime(&self) -> windows_core::Result> { let this = self; @@ -2072,11 +2072,11 @@ impl TileNotification { #[cfg(feature = "Data_Xml_Dom")] pub fn CreateTileNotification(content: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITileNotificationFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTileNotification)(windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTileNotification)(windows_core::Interface::as_raw(this), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2127,11 +2127,11 @@ impl TileUpdateManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ITileUpdateManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2202,10 +2202,10 @@ windows_core::imp::interface_hierarchy!(TileUpdater, windows_core::IUnknown, win impl TileUpdater { pub fn Update(&self, notification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), notification.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), notification.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { let this = self; @@ -2224,17 +2224,17 @@ impl TileUpdater { } pub fn AddToSchedule(&self, scheduledtile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddToSchedule)(windows_core::Interface::as_raw(this), scheduledtile.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddToSchedule)(windows_core::Interface::as_raw(this), scheduledtile.param().abi()).ok() } } pub fn RemoveFromSchedule(&self, scheduledtile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveFromSchedule)(windows_core::Interface::as_raw(this), scheduledtile.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveFromSchedule)(windows_core::Interface::as_raw(this), scheduledtile.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetScheduledTileNotifications(&self) -> windows_core::Result> { @@ -2246,17 +2246,17 @@ impl TileUpdater { } pub fn StartPeriodicUpdate(&self, tilecontent: P0, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdate)(windows_core::Interface::as_raw(this), tilecontent.into_param().abi(), requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdate)(windows_core::Interface::as_raw(this), tilecontent.param().abi(), requestedinterval).ok() } } pub fn StartPeriodicUpdateAtTime(&self, tilecontent: P0, starttime: super::super::Foundation::DateTime, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateAtTime)(windows_core::Interface::as_raw(this), tilecontent.into_param().abi(), starttime, requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateAtTime)(windows_core::Interface::as_raw(this), tilecontent.param().abi(), starttime, requestedinterval).ok() } } pub fn StopPeriodicUpdate(&self) -> windows_core::Result<()> { let this = self; @@ -2265,18 +2265,18 @@ impl TileUpdater { #[cfg(feature = "Foundation_Collections")] pub fn StartPeriodicUpdateBatch(&self, tilecontents: P0, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateBatch)(windows_core::Interface::as_raw(this), tilecontents.into_param().abi(), requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateBatch)(windows_core::Interface::as_raw(this), tilecontents.param().abi(), requestedinterval).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn StartPeriodicUpdateBatchAtTime(&self, tilecontents: P0, starttime: super::super::Foundation::DateTime, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateBatchAtTime)(windows_core::Interface::as_raw(this), tilecontents.into_param().abi(), starttime, requestedinterval).ok() } + unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateBatchAtTime)(windows_core::Interface::as_raw(this), tilecontents.param().abi(), starttime, requestedinterval).ok() } } pub fn EnableNotificationQueueForSquare150x150(&self, enable: bool) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; @@ -2377,18 +2377,18 @@ impl ToastCollection { } pub fn SetIcon(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateInstance(collectionid: &windows_core::HSTRING, displayname: &windows_core::HSTRING, launchargs: &windows_core::HSTRING, iconuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IToastCollectionFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(collectionid), core::mem::transmute_copy(displayname), core::mem::transmute_copy(launchargs), iconuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(collectionid), core::mem::transmute_copy(displayname), core::mem::transmute_copy(launchargs), iconuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2416,12 +2416,12 @@ windows_core::imp::interface_hierarchy!(ToastCollectionManager, windows_core::IU impl ToastCollectionManager { pub fn SaveToastCollectionAsync(&self, collection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaveToastCollectionAsync)(windows_core::Interface::as_raw(this), collection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SaveToastCollectionAsync)(windows_core::Interface::as_raw(this), collection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] @@ -2546,10 +2546,10 @@ impl ToastNotification { } pub fn SetExpirationTime(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpirationTime)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ExpirationTime(&self) -> windows_core::Result> { let this = self; @@ -2560,12 +2560,12 @@ impl ToastNotification { } pub fn Dismissed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Dismissed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Dismissed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDismissed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2574,12 +2574,12 @@ impl ToastNotification { } pub fn Activated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActivated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2588,12 +2588,12 @@ impl ToastNotification { } pub fn Failed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Failed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Failed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2664,10 +2664,10 @@ impl ToastNotification { } pub fn SetData(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Priority(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -2694,11 +2694,11 @@ impl ToastNotification { #[cfg(feature = "Data_Xml_Dom")] pub fn CreateToastNotification(content: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IToastNotificationFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateToastNotification)(windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateToastNotification)(windows_core::Interface::as_raw(this), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2870,11 +2870,11 @@ impl ToastNotificationManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IToastNotificationManagerStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ConfigureNotificationMirroring(value: NotificationMirroring) -> windows_core::Result<()> { @@ -2981,12 +2981,12 @@ impl ToastNotificationManagerForUser { } pub fn NotificationModeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NotificationModeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NotificationModeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNotificationModeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -3013,17 +3013,17 @@ windows_core::imp::interface_hierarchy!(ToastNotifier, windows_core::IUnknown, w impl ToastNotifier { pub fn Show(&self, notification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Show)(windows_core::Interface::as_raw(this), notification.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Show)(windows_core::Interface::as_raw(this), notification.param().abi()).ok() } } pub fn Hide(&self, notification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Hide)(windows_core::Interface::as_raw(this), notification.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Hide)(windows_core::Interface::as_raw(this), notification.param().abi()).ok() } } pub fn Setting(&self) -> windows_core::Result { let this = self; @@ -3034,17 +3034,17 @@ impl ToastNotifier { } pub fn AddToSchedule(&self, scheduledtoast: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).AddToSchedule)(windows_core::Interface::as_raw(this), scheduledtoast.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).AddToSchedule)(windows_core::Interface::as_raw(this), scheduledtoast.param().abi()).ok() } } pub fn RemoveFromSchedule(&self, scheduledtoast: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveFromSchedule)(windows_core::Interface::as_raw(this), scheduledtoast.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RemoveFromSchedule)(windows_core::Interface::as_raw(this), scheduledtoast.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetScheduledToastNotifications(&self) -> windows_core::Result> { @@ -3056,32 +3056,32 @@ impl ToastNotifier { } pub fn UpdateWithTagAndGroup(&self, data: P0, tag: &windows_core::HSTRING, group: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateWithTagAndGroup)(windows_core::Interface::as_raw(this), data.into_param().abi(), core::mem::transmute_copy(tag), core::mem::transmute_copy(group), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UpdateWithTagAndGroup)(windows_core::Interface::as_raw(this), data.param().abi(), core::mem::transmute_copy(tag), core::mem::transmute_copy(group), &mut result__).map(|| result__) } } pub fn UpdateWithTag(&self, data: P0, tag: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateWithTag)(windows_core::Interface::as_raw(this), data.into_param().abi(), core::mem::transmute_copy(tag), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UpdateWithTag)(windows_core::Interface::as_raw(this), data.param().abi(), core::mem::transmute_copy(tag), &mut result__).map(|| result__) } } pub fn ScheduledToastNotificationShowing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScheduledToastNotificationShowing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScheduledToastNotificationShowing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScheduledToastNotificationShowing(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/Popups/mod.rs b/crates/libs/windows/src/Windows/UI/Popups/mod.rs index ba4331bc70..a0dc812259 100644 --- a/crates/libs/windows/src/Windows/UI/Popups/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Popups/mod.rs @@ -69,10 +69,10 @@ impl IUICommand { } pub fn SetInvoked(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = self; @@ -83,10 +83,10 @@ impl IUICommand { } pub fn SetId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for IUICommand { @@ -301,10 +301,10 @@ impl UICommand { } pub fn SetInvoked(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = self; @@ -315,10 +315,10 @@ impl UICommand { } pub fn SetId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(label: &windows_core::HSTRING) -> windows_core::Result { Self::IUICommandFactory(|this| unsafe { @@ -328,21 +328,21 @@ impl UICommand { } pub fn CreateWithHandler(label: &windows_core::HSTRING, action: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IUICommandFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithHandler)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), action.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithHandler)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), action.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithHandlerAndId(label: &windows_core::HSTRING, action: P0, commandid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IUICommandFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithHandlerAndId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), action.into_param().abi(), commandid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithHandlerAndId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(label), action.param().abi(), commandid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -396,10 +396,10 @@ impl UICommandSeparator { } pub fn SetInvoked(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInvoked)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = self; @@ -410,10 +410,10 @@ impl UICommandSeparator { } pub fn SetId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for UICommandSeparator { @@ -508,10 +508,10 @@ impl UICommandInvokedHandler { } pub fn Invoke(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), command.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/UI/Shell/mod.rs index 9668982bbb..57e6297e11 100644 --- a/crates/libs/windows/src/Windows/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Shell/mod.rs @@ -397,12 +397,12 @@ impl FocusSessionManager { } pub fn IsFocusActiveChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsFocusActiveChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsFocusActiveChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveIsFocusActiveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -453,12 +453,12 @@ impl SecurityAppManager { } pub fn Register(&self, kind: SecurityAppKind, displayname: &windows_core::HSTRING, detailsuri: P0, registerperuser: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), kind, core::mem::transmute_copy(displayname), detailsuri.into_param().abi(), registerperuser, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), kind, core::mem::transmute_copy(displayname), detailsuri.param().abi(), registerperuser, &mut result__).map(|| result__) } } pub fn Unregister(&self, kind: SecurityAppKind, guidregistration: windows_core::GUID) -> windows_core::Result<()> { @@ -467,10 +467,10 @@ impl SecurityAppManager { } pub fn UpdateState(&self, kind: SecurityAppKind, guidregistration: windows_core::GUID, state: SecurityAppState, substatus: SecurityAppSubstatus, detailsuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).UpdateState)(windows_core::Interface::as_raw(this), kind, guidregistration, state, substatus, detailsuri.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).UpdateState)(windows_core::Interface::as_raw(this), kind, guidregistration, state, substatus, detailsuri.param().abi()).ok() } } } impl windows_core::RuntimeType for SecurityAppManager { @@ -540,12 +540,12 @@ impl ShareWindowCommandSource { } pub fn CommandRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CommandRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CommandRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCommandRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -554,12 +554,12 @@ impl ShareWindowCommandSource { } pub fn CommandInvoked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CommandInvoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CommandInvoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCommandInvoked(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -619,12 +619,12 @@ impl TaskbarManager { #[cfg(feature = "ApplicationModel_Core")] pub fn IsAppListEntryPinnedAsync(&self, applistentry: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsAppListEntryPinnedAsync)(windows_core::Interface::as_raw(this), applistentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).IsAppListEntryPinnedAsync)(windows_core::Interface::as_raw(this), applistentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn RequestPinCurrentAppAsync(&self) -> windows_core::Result> { @@ -637,12 +637,12 @@ impl TaskbarManager { #[cfg(feature = "ApplicationModel_Core")] pub fn RequestPinAppListEntryAsync(&self, applistentry: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPinAppListEntryAsync)(windows_core::Interface::as_raw(this), applistentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPinAppListEntryAsync)(windows_core::Interface::as_raw(this), applistentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn IsSecondaryTilePinnedAsync(&self, tileid: &windows_core::HSTRING) -> windows_core::Result> { @@ -655,12 +655,12 @@ impl TaskbarManager { #[cfg(feature = "UI_StartScreen")] pub fn RequestPinSecondaryTileAsync(&self, secondarytile: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPinSecondaryTileAsync)(windows_core::Interface::as_raw(this), secondarytile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestPinSecondaryTileAsync)(windows_core::Interface::as_raw(this), secondarytile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryUnpinSecondaryTileAsync(&self, tileid: &windows_core::HSTRING) -> windows_core::Result> { @@ -715,10 +715,10 @@ impl WindowTab { } pub fn SetTag(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTag)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTag)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Title(&self) -> windows_core::Result { let this = self; @@ -740,10 +740,10 @@ impl WindowTab { } pub fn SetIcon(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TreatAsSecondaryTileId(&self) -> windows_core::Result { let this = self; @@ -765,10 +765,10 @@ impl WindowTab { } pub fn SetGroup(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetGroup)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetGroup)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ReportThumbnailAvailable(&self) -> windows_core::Result<()> { let this = self; @@ -854,29 +854,29 @@ impl WindowTabCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -886,10 +886,10 @@ impl WindowTabCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -916,10 +916,10 @@ impl WindowTabCollection { } pub fn MoveTab(&self, tab: P0, index: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).MoveTab)(windows_core::Interface::as_raw(this), tab.into_param().abi(), index).ok() } + unsafe { (windows_core::Interface::vtable(this).MoveTab)(windows_core::Interface::as_raw(this), tab.param().abi(), index).ok() } } } impl windows_core::RuntimeType for WindowTabCollection { @@ -982,10 +982,10 @@ impl WindowTabGroup { } pub fn SetIcon(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for WindowTabGroup { @@ -1013,21 +1013,21 @@ impl WindowTabIcon { } pub fn CreateFromFontGlyphWithUri(glyph: &windows_core::HSTRING, fontfamily: &windows_core::HSTRING, fonturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWindowTabIconStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromFontGlyphWithUri)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(glyph), core::mem::transmute_copy(fontfamily), fonturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromFontGlyphWithUri)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(glyph), core::mem::transmute_copy(fontfamily), fonturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromImage(image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWindowTabIconStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromImage)(windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromImage)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1062,19 +1062,19 @@ impl WindowTabManager { } pub fn SetActiveTab(&self, tab: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetActiveTab)(windows_core::Interface::as_raw(this), tab.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetActiveTab)(windows_core::Interface::as_raw(this), tab.param().abi()).ok() } } pub fn TabSwitchRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TabSwitchRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TabSwitchRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTabSwitchRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1083,12 +1083,12 @@ impl WindowTabManager { } pub fn TabCloseRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TabCloseRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TabCloseRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTabCloseRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1097,12 +1097,12 @@ impl WindowTabManager { } pub fn TabTearOutRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TabTearOutRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TabTearOutRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTabTearOutRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1111,12 +1111,12 @@ impl WindowTabManager { } pub fn TabThumbnailRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TabThumbnailRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TabThumbnailRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTabThumbnailRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1258,10 +1258,10 @@ impl WindowTabThumbnailRequestedEventArgs { #[cfg(feature = "Storage_Streams")] pub fn SetImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GetDeferral(&self) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs index de7bfa09cd..01e6db2556 100644 --- a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs +++ b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs @@ -509,10 +509,10 @@ impl JumpListItem { } pub fn SetLogo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLogo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateWithArguments(arguments: &windows_core::HSTRING, displayname: &windows_core::HSTRING) -> windows_core::Result { Self::IJumpListItemStatics(|this| unsafe { @@ -605,10 +605,10 @@ impl SecondaryTile { #[cfg(feature = "deprecated")] pub fn SetLogo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLogo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn Logo(&self) -> windows_core::Result { @@ -621,10 +621,10 @@ impl SecondaryTile { #[cfg(feature = "deprecated")] pub fn SetSmallLogo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSmallLogo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSmallLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn SmallLogo(&self) -> windows_core::Result { @@ -637,10 +637,10 @@ impl SecondaryTile { #[cfg(feature = "deprecated")] pub fn SetWideLogo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWideLogo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWideLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn WideLogo(&self) -> windows_core::Result { @@ -652,10 +652,10 @@ impl SecondaryTile { } pub fn SetLockScreenBadgeLogo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLockScreenBadgeLogo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLockScreenBadgeLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LockScreenBadgeLogo(&self) -> windows_core::Result { let this = self; @@ -810,12 +810,12 @@ impl SecondaryTile { } pub fn VisualElementsRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VisualElementsRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VisualElementsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVisualElementsRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -825,22 +825,22 @@ impl SecondaryTile { #[cfg(feature = "deprecated")] pub fn CreateTile(tileid: &windows_core::HSTRING, shortname: &windows_core::HSTRING, displayname: &windows_core::HSTRING, arguments: &windows_core::HSTRING, tileoptions: TileOptions, logoreference: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISecondaryTileFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateTile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), core::mem::transmute_copy(shortname), core::mem::transmute_copy(displayname), core::mem::transmute_copy(arguments), tileoptions, logoreference.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateTile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), core::mem::transmute_copy(shortname), core::mem::transmute_copy(displayname), core::mem::transmute_copy(arguments), tileoptions, logoreference.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "deprecated")] pub fn CreateWideTile(tileid: &windows_core::HSTRING, shortname: &windows_core::HSTRING, displayname: &windows_core::HSTRING, arguments: &windows_core::HSTRING, tileoptions: TileOptions, logoreference: P0, widelogoreference: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISecondaryTileFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWideTile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), core::mem::transmute_copy(shortname), core::mem::transmute_copy(displayname), core::mem::transmute_copy(arguments), tileoptions, logoreference.into_param().abi(), widelogoreference.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWideTile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), core::mem::transmute_copy(shortname), core::mem::transmute_copy(displayname), core::mem::transmute_copy(arguments), tileoptions, logoreference.param().abi(), widelogoreference.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateWithId(tileid: &windows_core::HSTRING) -> windows_core::Result { @@ -851,11 +851,11 @@ impl SecondaryTile { } pub fn CreateMinimalTile(tileid: &windows_core::HSTRING, displayname: &windows_core::HSTRING, arguments: &windows_core::HSTRING, square150x150logo: P0, desiredsize: TileSize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISecondaryTileFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMinimalTile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), core::mem::transmute_copy(displayname), core::mem::transmute_copy(arguments), square150x150logo.into_param().abi(), desiredsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMinimalTile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), core::mem::transmute_copy(displayname), core::mem::transmute_copy(arguments), square150x150logo.param().abi(), desiredsize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn Exists(tileid: &windows_core::HSTRING) -> windows_core::Result { @@ -921,10 +921,10 @@ impl SecondaryTileVisualElements { #[cfg(feature = "deprecated")] pub fn SetSquare30x30Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSquare30x30Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSquare30x30Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn Square30x30Logo(&self) -> windows_core::Result { @@ -937,10 +937,10 @@ impl SecondaryTileVisualElements { #[cfg(feature = "deprecated")] pub fn SetSquare70x70Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSquare70x70Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSquare70x70Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "deprecated")] pub fn Square70x70Logo(&self) -> windows_core::Result { @@ -952,10 +952,10 @@ impl SecondaryTileVisualElements { } pub fn SetSquare150x150Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSquare150x150Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSquare150x150Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Square150x150Logo(&self) -> windows_core::Result { let this = self; @@ -966,10 +966,10 @@ impl SecondaryTileVisualElements { } pub fn SetWide310x150Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetWide310x150Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetWide310x150Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Wide310x150Logo(&self) -> windows_core::Result { let this = self; @@ -980,10 +980,10 @@ impl SecondaryTileVisualElements { } pub fn SetSquare310x310Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSquare310x310Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSquare310x310Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Square310x310Logo(&self) -> windows_core::Result { let this = self; @@ -1049,10 +1049,10 @@ impl SecondaryTileVisualElements { } pub fn SetSquare71x71Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSquare71x71Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSquare71x71Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Square71x71Logo(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1063,10 +1063,10 @@ impl SecondaryTileVisualElements { } pub fn SetSquare44x44Logo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSquare44x44Logo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSquare44x44Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Square44x44Logo(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1111,34 +1111,34 @@ impl StartScreenManager { #[cfg(feature = "ApplicationModel_Core")] pub fn SupportsAppListEntry(&self, applistentry: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SupportsAppListEntry)(windows_core::Interface::as_raw(this), applistentry.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SupportsAppListEntry)(windows_core::Interface::as_raw(this), applistentry.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "ApplicationModel_Core")] pub fn ContainsAppListEntryAsync(&self, applistentry: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContainsAppListEntryAsync)(windows_core::Interface::as_raw(this), applistentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).ContainsAppListEntryAsync)(windows_core::Interface::as_raw(this), applistentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "ApplicationModel_Core")] pub fn RequestAddAppListEntryAsync(&self, applistentry: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAddAppListEntryAsync)(windows_core::Interface::as_raw(this), applistentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestAddAppListEntryAsync)(windows_core::Interface::as_raw(this), applistentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ContainsSecondaryTileAsync(&self, tileid: &windows_core::HSTRING) -> windows_core::Result> { @@ -1164,11 +1164,11 @@ impl StartScreenManager { #[cfg(feature = "System")] pub fn GetForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IStartScreenManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1196,10 +1196,10 @@ windows_core::imp::interface_hierarchy!(TileMixedRealityModel, windows_core::IUn impl TileMixedRealityModel { pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Uri(&self) -> windows_core::Result { let this = self; @@ -1211,10 +1211,10 @@ impl TileMixedRealityModel { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetBoundingBox(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBoundingBox)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBoundingBox)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn BoundingBox(&self) -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs index bcc5df3c1b..d5b1438a7c 100644 --- a/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs @@ -413,12 +413,12 @@ impl CoreTextEditContext { } pub fn TextRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TextRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TextRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTextRequested(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -427,12 +427,12 @@ impl CoreTextEditContext { } pub fn SelectionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSelectionRequested(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -441,12 +441,12 @@ impl CoreTextEditContext { } pub fn LayoutRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LayoutRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LayoutRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLayoutRequested(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -455,12 +455,12 @@ impl CoreTextEditContext { } pub fn TextUpdating(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TextUpdating)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TextUpdating)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTextUpdating(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -469,12 +469,12 @@ impl CoreTextEditContext { } pub fn SelectionUpdating(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SelectionUpdating)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SelectionUpdating)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSelectionUpdating(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -483,12 +483,12 @@ impl CoreTextEditContext { } pub fn FormatUpdating(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormatUpdating)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FormatUpdating)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFormatUpdating(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -497,12 +497,12 @@ impl CoreTextEditContext { } pub fn CompositionStarted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CompositionStarted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CompositionStarted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompositionStarted(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -511,12 +511,12 @@ impl CoreTextEditContext { } pub fn CompositionCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CompositionCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CompositionCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCompositionCompleted(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -525,12 +525,12 @@ impl CoreTextEditContext { } pub fn FocusRemoved(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FocusRemoved)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FocusRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFocusRemoved(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -559,12 +559,12 @@ impl CoreTextEditContext { } pub fn NotifyFocusLeaveCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NotifyFocusLeaveCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NotifyFocusLeaveCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNotifyFocusLeaveCompleted(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -940,12 +940,12 @@ impl CoreTextServicesManager { } pub fn InputLanguageChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InputLanguageChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InputLanguageChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveInputLanguageChanged(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/Text/mod.rs b/crates/libs/windows/src/Windows/UI/Text/mod.rs index cb4d19244b..068bd04b27 100644 --- a/crates/libs/windows/src/Windows/UI/Text/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Text/mod.rs @@ -320,10 +320,10 @@ impl ITextCharacterFormat { } pub fn SetClone(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetClone)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClone)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GetClone(&self) -> windows_core::Result { let this = self; @@ -334,12 +334,12 @@ impl ITextCharacterFormat { } pub fn IsEqual(&self, format: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), format.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), format.param().abi(), &mut result__).map(|| result__) } } } @@ -544,10 +544,10 @@ impl ITextDocument { #[cfg(feature = "Storage_Streams")] pub fn LoadFromStream(&self, options: TextSetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LoadFromStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadFromStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn Redo(&self) -> windows_core::Result<()> { let this = self; @@ -556,24 +556,24 @@ impl ITextDocument { #[cfg(feature = "Storage_Streams")] pub fn SaveToStream(&self, options: TextGetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SaveToStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SaveToStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn SetDefaultCharacterFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetDefaultParagraphFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetText(&self, options: TextSetOptions, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -906,20 +906,20 @@ impl ITextParagraphFormat { } pub fn IsEqual(&self, format: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), format.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), format.param().abi(), &mut result__).map(|| result__) } } pub fn SetClone(&self, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetClone)(windows_core::Interface::as_raw(this), format.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClone)(windows_core::Interface::as_raw(this), format.param().abi()).ok() } } pub fn SetIndents(&self, start: f32, left: f32, right: f32) -> windows_core::Result<()> { let this = self; @@ -1008,10 +1008,10 @@ impl ITextRange { } pub fn SetCharacterFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCharacterFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCharacterFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn FormattedText(&self) -> windows_core::Result { let this = self; @@ -1022,10 +1022,10 @@ impl ITextRange { } pub fn SetFormattedText(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFormattedText)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFormattedText)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EndPosition(&self) -> windows_core::Result { let this = self; @@ -1076,10 +1076,10 @@ impl ITextRange { } pub fn SetParagraphFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetParagraphFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParagraphFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartPosition(&self) -> windows_core::Result { let this = self; @@ -1194,47 +1194,47 @@ impl ITextRange { #[cfg(feature = "Storage_Streams")] pub fn GetTextViaStream(&self, options: TextGetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).GetTextViaStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).GetTextViaStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn InRange(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InRange)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InRange)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Streams")] pub fn InsertImage(&self, width: i32, height: i32, ascent: i32, verticalalign: VerticalCharacterAlignment, alternatetext: &windows_core::HSTRING, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertImage)(windows_core::Interface::as_raw(this), width, height, ascent, verticalalign, core::mem::transmute_copy(alternatetext), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertImage)(windows_core::Interface::as_raw(this), width, height, ascent, verticalalign, core::mem::transmute_copy(alternatetext), value.param().abi()).ok() } } pub fn InStory(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InStory)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InStory)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } pub fn IsEqual(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } pub fn Move(&self, unit: TextRangeUnit, count: i32) -> windows_core::Result { @@ -1289,10 +1289,10 @@ impl ITextRange { #[cfg(feature = "Storage_Streams")] pub fn SetTextViaStream(&self, options: TextSetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTextViaStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTextViaStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> windows_core::Result { let this = self; @@ -1458,10 +1458,10 @@ impl ITextSelection { } pub fn SetCharacterFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetCharacterFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCharacterFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn FormattedText(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1472,10 +1472,10 @@ impl ITextSelection { } pub fn SetFormattedText(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetFormattedText)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFormattedText)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EndPosition(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1526,10 +1526,10 @@ impl ITextSelection { } pub fn SetParagraphFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetParagraphFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParagraphFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartPosition(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1644,47 +1644,47 @@ impl ITextSelection { #[cfg(feature = "Storage_Streams")] pub fn GetTextViaStream(&self, options: TextGetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).GetTextViaStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).GetTextViaStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn InRange(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InRange)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InRange)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Streams")] pub fn InsertImage(&self, width: i32, height: i32, ascent: i32, verticalalign: VerticalCharacterAlignment, alternatetext: &windows_core::HSTRING, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertImage)(windows_core::Interface::as_raw(this), width, height, ascent, verticalalign, core::mem::transmute_copy(alternatetext), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertImage)(windows_core::Interface::as_raw(this), width, height, ascent, verticalalign, core::mem::transmute_copy(alternatetext), value.param().abi()).ok() } } pub fn InStory(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InStory)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InStory)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } pub fn IsEqual(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } pub fn Move(&self, unit: TextRangeUnit, count: i32) -> windows_core::Result { @@ -1739,10 +1739,10 @@ impl ITextSelection { #[cfg(feature = "Storage_Streams")] pub fn SetTextViaStream(&self, options: TextSetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetTextViaStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTextViaStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1823,10 +1823,10 @@ impl ContentLinkInfo { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LinkContentKind(&self) -> windows_core::Result { let this = self; @@ -2072,10 +2072,10 @@ impl RichEditTextDocument { #[cfg(feature = "Storage_Streams")] pub fn LoadFromStream(&self, options: TextSetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LoadFromStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadFromStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn Redo(&self) -> windows_core::Result<()> { let this = self; @@ -2084,24 +2084,24 @@ impl RichEditTextDocument { #[cfg(feature = "Storage_Streams")] pub fn SaveToStream(&self, options: TextGetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SaveToStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SaveToStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn SetDefaultCharacterFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetDefaultParagraphFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SetText(&self, options: TextSetOptions, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -2177,10 +2177,10 @@ impl RichEditTextRange { } pub fn SetContentLinkInfo(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetContentLinkInfo)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentLinkInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Character(&self) -> windows_core::Result { let this = self; @@ -2202,10 +2202,10 @@ impl RichEditTextRange { } pub fn SetCharacterFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCharacterFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCharacterFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn FormattedText(&self) -> windows_core::Result { let this = self; @@ -2216,10 +2216,10 @@ impl RichEditTextRange { } pub fn SetFormattedText(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetFormattedText)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetFormattedText)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EndPosition(&self) -> windows_core::Result { let this = self; @@ -2270,10 +2270,10 @@ impl RichEditTextRange { } pub fn SetParagraphFormat(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetParagraphFormat)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetParagraphFormat)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn StartPosition(&self) -> windows_core::Result { let this = self; @@ -2388,47 +2388,47 @@ impl RichEditTextRange { #[cfg(feature = "Storage_Streams")] pub fn GetTextViaStream(&self, options: TextGetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).GetTextViaStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).GetTextViaStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn InRange(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InRange)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InRange)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Storage_Streams")] pub fn InsertImage(&self, width: i32, height: i32, ascent: i32, verticalalign: VerticalCharacterAlignment, alternatetext: &windows_core::HSTRING, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).InsertImage)(windows_core::Interface::as_raw(this), width, height, ascent, verticalalign, core::mem::transmute_copy(alternatetext), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertImage)(windows_core::Interface::as_raw(this), width, height, ascent, verticalalign, core::mem::transmute_copy(alternatetext), value.param().abi()).ok() } } pub fn InStory(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InStory)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).InStory)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } pub fn IsEqual(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IsEqual)(windows_core::Interface::as_raw(this), range.param().abi(), &mut result__).map(|| result__) } } pub fn Move(&self, unit: TextRangeUnit, count: i32) -> windows_core::Result { @@ -2483,10 +2483,10 @@ impl RichEditTextRange { #[cfg(feature = "Storage_Streams")] pub fn SetTextViaStream(&self, options: TextSetOptions, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTextViaStream)(windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTextViaStream)(windows_core::Interface::as_raw(this), options, value.param().abi()).ok() } } pub fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> windows_core::Result { let this = self; diff --git a/crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs b/crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs index 0f482084e3..3a815a1a85 100644 --- a/crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs @@ -78,10 +78,10 @@ windows_core::imp::interface_hierarchy!(ICoreAutomationRemoteOperationExtensionP impl ICoreAutomationRemoteOperationExtensionProvider { pub fn CallExtension(&self, extensionid: windows_core::GUID, context: P0, operandids: &[AutomationRemoteOperationOperandId]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).CallExtension)(windows_core::Interface::as_raw(this), extensionid, context.into_param().abi(), operandids.len().try_into().unwrap(), operandids.as_ptr()).ok() } + unsafe { (windows_core::Interface::vtable(this).CallExtension)(windows_core::Interface::as_raw(this), extensionid, context.param().abi(), operandids.len().try_into().unwrap(), operandids.as_ptr()).ok() } } pub fn IsExtensionSupported(&self, extensionid: windows_core::GUID) -> windows_core::Result { let this = self; @@ -258,17 +258,17 @@ impl CoreAutomationRemoteOperation { } pub fn ImportElement(&self, operandid: AutomationRemoteOperationOperandId, element: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ImportElement)(windows_core::Interface::as_raw(this), operandid, element.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ImportElement)(windows_core::Interface::as_raw(this), operandid, element.param().abi()).ok() } } pub fn ImportTextRange(&self, operandid: AutomationRemoteOperationOperandId, textrange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).ImportTextRange)(windows_core::Interface::as_raw(this), operandid, textrange.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ImportTextRange)(windows_core::Interface::as_raw(this), operandid, textrange.param().abi()).ok() } } pub fn AddToResults(&self, operandid: AutomationRemoteOperationOperandId) -> windows_core::Result<()> { let this = self; @@ -283,10 +283,10 @@ impl CoreAutomationRemoteOperation { } pub fn ImportConnectionBoundObject(&self, operandid: AutomationRemoteOperationOperandId, connectionboundobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).ImportConnectionBoundObject)(windows_core::Interface::as_raw(this), operandid, connectionboundobject.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).ImportConnectionBoundObject)(windows_core::Interface::as_raw(this), operandid, connectionboundobject.param().abi()).ok() } } } impl windows_core::RuntimeType for CoreAutomationRemoteOperation { @@ -315,17 +315,17 @@ impl CoreAutomationRemoteOperationContext { } pub fn SetOperand(&self, id: AutomationRemoteOperationOperandId, operand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOperand)(windows_core::Interface::as_raw(this), id, operand.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOperand)(windows_core::Interface::as_raw(this), id, operand.param().abi()).ok() } } pub fn SetOperand2(&self, id: AutomationRemoteOperationOperandId, operand: P0, operandinterfaceid: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetOperand2)(windows_core::Interface::as_raw(this), id, operand.into_param().abi(), operandinterfaceid).ok() } + unsafe { (windows_core::Interface::vtable(this).SetOperand2)(windows_core::Interface::as_raw(this), id, operand.param().abi(), operandinterfaceid).ok() } } } impl windows_core::RuntimeType for CoreAutomationRemoteOperationContext { @@ -355,12 +355,12 @@ impl RemoteAutomationClientSession { } pub fn CreateWindowAsync(&self, remotewindowid: u64, remoteprocessid: u32, parentautomationelement: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWindowAsync)(windows_core::Interface::as_raw(this), remotewindowid, remoteprocessid, parentautomationelement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWindowAsync)(windows_core::Interface::as_raw(this), remotewindowid, remoteprocessid, parentautomationelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SessionId(&self) -> windows_core::Result { @@ -372,12 +372,12 @@ impl RemoteAutomationClientSession { } pub fn ConnectionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ConnectionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ConnectionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConnectionRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -386,12 +386,12 @@ impl RemoteAutomationClientSession { } pub fn Disconnected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Disconnected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Disconnected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDisconnected(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs b/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs index 4896f08527..18da1673b6 100644 --- a/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs @@ -230,12 +230,12 @@ windows_core::imp::interface_hierarchy!(CoreFrameworkInputView, windows_core::IU impl CoreFrameworkInputView { pub fn PrimaryViewAnimationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrimaryViewAnimationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrimaryViewAnimationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrimaryViewAnimationStarting(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -244,12 +244,12 @@ impl CoreFrameworkInputView { } pub fn OcclusionsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OcclusionsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OcclusionsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOcclusionsChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -258,11 +258,11 @@ impl CoreFrameworkInputView { } pub fn GetForUIContext(context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreFrameworkInputViewStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn GetForCurrentView() -> windows_core::Result { @@ -369,12 +369,12 @@ windows_core::imp::interface_hierarchy!(CoreInputView, windows_core::IUnknown, w impl CoreInputView { pub fn OcclusionsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OcclusionsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).OcclusionsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveOcclusionsChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -405,12 +405,12 @@ impl CoreInputView { } pub fn XYFocusTransferringFromPrimaryView(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).XYFocusTransferringFromPrimaryView)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).XYFocusTransferringFromPrimaryView)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveXYFocusTransferringFromPrimaryView(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -419,12 +419,12 @@ impl CoreInputView { } pub fn XYFocusTransferredToPrimaryView(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).XYFocusTransferredToPrimaryView)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).XYFocusTransferredToPrimaryView)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveXYFocusTransferredToPrimaryView(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -461,12 +461,12 @@ impl CoreInputView { } pub fn PrimaryViewShowing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrimaryViewShowing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrimaryViewShowing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrimaryViewShowing(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -475,12 +475,12 @@ impl CoreInputView { } pub fn PrimaryViewHiding(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrimaryViewHiding)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrimaryViewHiding)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrimaryViewHiding(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -496,12 +496,12 @@ impl CoreInputView { } pub fn SupportedKindsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SupportedKindsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SupportedKindsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSupportedKindsChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -510,12 +510,12 @@ impl CoreInputView { } pub fn PrimaryViewAnimationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PrimaryViewAnimationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PrimaryViewAnimationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePrimaryViewAnimationStarting(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -530,11 +530,11 @@ impl CoreInputView { } pub fn GetForUIContext(context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ICoreInputViewStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs index 9d8f4ae626..b41aa65a13 100644 --- a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs @@ -640,12 +640,12 @@ impl AccessibilitySettings { } pub fn HighContrastChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HighContrastChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).HighContrastChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHighContrastChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -776,12 +776,12 @@ impl ApplicationView { } pub fn Consolidated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Consolidated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Consolidated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveConsolidated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -810,12 +810,12 @@ impl ApplicationView { } pub fn VisibleBoundsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).VisibleBoundsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VisibleBoundsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveVisibleBoundsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -910,12 +910,12 @@ impl ApplicationView { } pub fn TryEnterViewModeWithPreferencesAsync(&self, viewmode: ApplicationViewMode, viewmodepreferences: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryEnterViewModeWithPreferencesAsync)(windows_core::Interface::as_raw(this), viewmode, viewmodepreferences.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryEnterViewModeWithPreferencesAsync)(windows_core::Interface::as_raw(this), viewmode, viewmodepreferences.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryConsolidateAsync(&self) -> windows_core::Result> { @@ -962,11 +962,11 @@ impl ApplicationView { #[cfg(feature = "UI_Core")] pub fn GetApplicationViewIdForWindow(window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IApplicationViewInteropStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetApplicationViewIdForWindow)(windows_core::Interface::as_raw(this), window.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetApplicationViewIdForWindow)(windows_core::Interface::as_raw(this), window.param().abi(), &mut result__).map(|| result__) }) } #[cfg(feature = "deprecated")] @@ -1197,11 +1197,11 @@ impl ApplicationViewSwitcher { } pub fn TryShowAsViewModeWithPreferencesAsync(viewid: i32, viewmode: ApplicationViewMode, viewmodepreferences: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IApplicationViewSwitcherStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryShowAsViewModeWithPreferencesAsync)(windows_core::Interface::as_raw(this), viewid, viewmode, viewmodepreferences.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryShowAsViewModeWithPreferencesAsync)(windows_core::Interface::as_raw(this), viewid, viewmode, viewmodepreferences.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1230,10 +1230,10 @@ windows_core::imp::interface_hierarchy!(ApplicationViewTitleBar, windows_core::I impl ApplicationViewTitleBar { pub fn SetForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -1244,10 +1244,10 @@ impl ApplicationViewTitleBar { } pub fn SetBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn BackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -1258,10 +1258,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -1272,10 +1272,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -1286,10 +1286,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonHoverForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonHoverForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -1300,10 +1300,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonHoverBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonHoverBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -1314,10 +1314,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonPressedForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonPressedForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -1328,10 +1328,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonPressedBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonPressedBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -1342,10 +1342,10 @@ impl ApplicationViewTitleBar { } pub fn SetInactiveForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InactiveForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -1356,10 +1356,10 @@ impl ApplicationViewTitleBar { } pub fn SetInactiveBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InactiveBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -1370,10 +1370,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonInactiveForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonInactiveForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -1384,10 +1384,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonInactiveBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonInactiveBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -1461,12 +1461,12 @@ windows_core::imp::interface_hierarchy!(InputPane, windows_core::IUnknown, windo impl InputPane { pub fn Showing(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShowing(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1475,12 +1475,12 @@ impl InputPane { } pub fn Hiding(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Hiding)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Hiding)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHiding(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1527,11 +1527,11 @@ impl InputPane { } pub fn GetForUIContext(context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IInputPaneStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetForUIContext)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1617,11 +1617,11 @@ impl ProjectionManager { } pub fn ProjectionDisplayAvailableChanged(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IProjectionManagerStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProjectionDisplayAvailableChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProjectionDisplayAvailableChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveProjectionDisplayAvailableChanged(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1630,11 +1630,11 @@ impl ProjectionManager { #[cfg(feature = "Devices_Enumeration")] pub fn StartProjectingWithDeviceInfoAsync(projectionviewid: i32, anchorviewid: i32, displaydeviceinfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IProjectionManagerStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProjectingWithDeviceInfoAsync)(windows_core::Interface::as_raw(this), projectionviewid, anchorviewid, displaydeviceinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).StartProjectingWithDeviceInfoAsync)(windows_core::Interface::as_raw(this), projectionviewid, anchorviewid, displaydeviceinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn RequestStartProjectingAsync(projectionviewid: i32, anchorviewid: i32, selection: super::super::Foundation::Rect) -> windows_core::Result> { @@ -1709,10 +1709,10 @@ impl StatusBar { } pub fn SetForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn BackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -1723,10 +1723,10 @@ impl StatusBar { } pub fn SetBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProgressIndicator(&self) -> windows_core::Result { let this = self; @@ -1744,12 +1744,12 @@ impl StatusBar { } pub fn Showing(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Showing)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveShowing(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1758,12 +1758,12 @@ impl StatusBar { } pub fn Hiding(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Hiding)(windows_core::Interface::as_raw(this), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Hiding)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveHiding(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1833,10 +1833,10 @@ impl StatusBarProgressIndicator { } pub fn SetProgressValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProgressValue)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProgressValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } } impl windows_core::RuntimeType for StatusBarProgressIndicator { @@ -1963,12 +1963,12 @@ impl UISettings { } pub fn TextScaleFactorChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TextScaleFactorChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).TextScaleFactorChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveTextScaleFactorChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1984,12 +1984,12 @@ impl UISettings { } pub fn ColorValuesChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ColorValuesChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ColorValuesChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveColorValuesChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2005,12 +2005,12 @@ impl UISettings { } pub fn AdvancedEffectsEnabledChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AdvancedEffectsEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AdvancedEffectsEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAdvancedEffectsEnabledChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2026,12 +2026,12 @@ impl UISettings { } pub fn AutoHideScrollBarsChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutoHideScrollBarsChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AutoHideScrollBarsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAutoHideScrollBarsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2040,12 +2040,12 @@ impl UISettings { } pub fn AnimationsEnabledChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AnimationsEnabledChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AnimationsEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAnimationsEnabledChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -2054,12 +2054,12 @@ impl UISettings { } pub fn MessageDurationChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MessageDurationChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MessageDurationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMessageDurationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs index 9a5b0a7b9f..f64b2c2288 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs @@ -246,12 +246,12 @@ impl WebUICommandBar { } pub fn MenuOpened(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MenuOpened)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MenuOpened)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMenuOpened(&self, value: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -260,12 +260,12 @@ impl WebUICommandBar { } pub fn MenuClosed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MenuClosed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MenuClosed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMenuClosed(&self, value: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -274,12 +274,12 @@ impl WebUICommandBar { } pub fn SizeChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SizeChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SizeChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveSizeChanged(&self, value: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -332,18 +332,18 @@ impl WebUICommandBarBitmapIcon { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUICommandBarBitmapIconFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -390,12 +390,12 @@ impl WebUICommandBarConfirmationButton { } pub fn ItemInvoked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemInvoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemInvoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemInvoked(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -481,19 +481,19 @@ impl WebUICommandBarIconButton { } pub fn SetIcon(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIcon)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ItemInvoked(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemInvoked)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ItemInvoked)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveItemInvoked(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -752,10 +752,10 @@ impl SizeChangedEventHandler { } pub fn Invoke(&self, eventargs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), eventargs.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), eventargs.param().abi()).ok() } } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs index 77c2e78b48..80c875d01d 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs @@ -676,11 +676,11 @@ impl WebUIApplication { #[cfg(feature = "ApplicationModel_Activation")] pub fn Activated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveActivated(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -689,11 +689,11 @@ impl WebUIApplication { #[cfg(feature = "ApplicationModel")] pub fn Suspending(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Suspending)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Suspending)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveSuspending(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -701,11 +701,11 @@ impl WebUIApplication { } pub fn Resuming(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Resuming)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Resuming)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveResuming(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -713,11 +713,11 @@ impl WebUIApplication { } pub fn Navigated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Navigated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Navigated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveNavigated(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -726,11 +726,11 @@ impl WebUIApplication { #[cfg(feature = "ApplicationModel")] pub fn LeavingBackground(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LeavingBackground)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LeavingBackground)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveLeavingBackground(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -739,11 +739,11 @@ impl WebUIApplication { #[cfg(feature = "ApplicationModel")] pub fn EnteredBackground(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics2(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).EnteredBackground)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).EnteredBackground)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveEnteredBackground(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -762,20 +762,20 @@ impl WebUIApplication { #[cfg(all(feature = "ApplicationModel_Core", feature = "System"))] pub fn RequestRestartForUserAsync(user: P0, launcharguments: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics3(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestRestartForUserAsync)(windows_core::Interface::as_raw(this), user.into_param().abi(), core::mem::transmute_copy(launcharguments), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RequestRestartForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(launcharguments), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn NewWebUIViewCreated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::IWebUIActivationStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NewWebUIViewCreated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NewWebUIViewCreated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveNewWebUIViewCreated(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -784,11 +784,11 @@ impl WebUIApplication { #[cfg(feature = "ApplicationModel_Activation")] pub fn BackgroundActivated(handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIActivationStatics4(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BackgroundActivated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).BackgroundActivated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } pub fn RemoveBackgroundActivated(token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1301,12 +1301,12 @@ impl WebUIBackgroundTaskInstanceRuntimeClass { #[cfg(feature = "ApplicationModel_Background")] pub fn Canceled(&self, cancelhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Canceled)(windows_core::Interface::as_raw(this), cancelhandler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "ApplicationModel_Background")] @@ -4293,12 +4293,12 @@ impl WebUIView { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4308,12 +4308,12 @@ impl WebUIView { #[cfg(feature = "ApplicationModel_Activation")] pub fn Activated(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Activated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveActivated(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -4339,11 +4339,11 @@ impl WebUIView { } pub fn CreateWithUriAsync(uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebUIViewStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithUriAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithUriAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Web_UI")] @@ -4357,10 +4357,10 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn SetSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } #[cfg(feature = "Web_UI")] pub fn DocumentTitle(&self) -> windows_core::Result { @@ -4446,10 +4446,10 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn Navigate(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Navigate)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Navigate)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } #[cfg(feature = "Web_UI")] pub fn NavigateToString(&self, text: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -4459,40 +4459,40 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn NavigateToLocalStreamUri(&self, source: P0, streamresolver: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(windows_core::Interface::as_raw(this), source.param().abi(), streamresolver.param().abi()).ok() } } #[cfg(all(feature = "Web_Http", feature = "Web_UI"))] pub fn NavigateWithHttpRequestMessage(&self, requestmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Web_UI"))] pub fn InvokeScriptAsync(&self, scriptname: &windows_core::HSTRING, arguments: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InvokeScriptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scriptname), arguments.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InvokeScriptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scriptname), arguments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Storage_Streams", feature = "Web_UI"))] pub fn CapturePreviewToStreamAsync(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Web_UI"))] @@ -4519,12 +4519,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn NavigationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4535,12 +4535,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn ContentLoading(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentLoading)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentLoading)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4551,12 +4551,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn DOMContentLoaded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DOMContentLoaded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DOMContentLoaded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4567,12 +4567,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn NavigationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4583,12 +4583,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn FrameNavigationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameNavigationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameNavigationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4599,12 +4599,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn FrameContentLoading(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameContentLoading)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameContentLoading)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4615,12 +4615,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn FrameDOMContentLoaded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameDOMContentLoaded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameDOMContentLoaded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4631,12 +4631,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn FrameNavigationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameNavigationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameNavigationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4647,12 +4647,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn ScriptNotify(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScriptNotify)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScriptNotify)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4663,12 +4663,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn LongRunningScriptDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LongRunningScriptDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LongRunningScriptDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4679,12 +4679,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn UnsafeContentWarningDisplaying(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnsafeContentWarningDisplaying)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnsafeContentWarningDisplaying)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4695,12 +4695,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn UnviewableContentIdentified(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnviewableContentIdentified)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnviewableContentIdentified)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4711,12 +4711,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn PermissionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PermissionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PermissionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4727,12 +4727,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn UnsupportedUriSchemeIdentified(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnsupportedUriSchemeIdentified)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnsupportedUriSchemeIdentified)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4743,12 +4743,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn NewWindowRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NewWindowRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NewWindowRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4759,12 +4759,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn ContainsFullScreenElementChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContainsFullScreenElementChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContainsFullScreenElementChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -4775,12 +4775,12 @@ impl WebUIView { #[cfg(feature = "Web_UI")] pub fn WebResourceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WebResourceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WebResourceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Web_UI")] @@ -5132,11 +5132,11 @@ impl ActivatedEventHandler { #[cfg(feature = "ApplicationModel_Activation")] pub fn Invoke(&self, sender: P0, eventargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), eventargs.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), eventargs.param().abi()).ok() } } } #[cfg(feature = "ApplicationModel_Activation")] @@ -5203,11 +5203,11 @@ impl BackgroundActivatedEventHandler { #[cfg(feature = "ApplicationModel_Activation")] pub fn Invoke(&self, sender: P0, eventargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), eventargs.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), eventargs.param().abi()).ok() } } } #[cfg(feature = "ApplicationModel_Activation")] @@ -5274,11 +5274,11 @@ impl EnteredBackgroundEventHandler { #[cfg(feature = "ApplicationModel")] pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[cfg(feature = "ApplicationModel")] @@ -5345,11 +5345,11 @@ impl LeavingBackgroundEventHandler { #[cfg(feature = "ApplicationModel")] pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[cfg(feature = "ApplicationModel")] @@ -5413,11 +5413,11 @@ impl NavigatedEventHandler { } pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[repr(C)] @@ -5474,10 +5474,10 @@ impl ResumingEventHandler { } pub fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi()).ok() } } } #[repr(C)] @@ -5537,11 +5537,11 @@ impl SuspendingEventHandler { #[cfg(feature = "ApplicationModel")] pub fn Invoke(&self, sender: P0, e: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), sender.param().abi(), e.param().abi()).ok() } } } #[cfg(feature = "ApplicationModel")] diff --git a/crates/libs/windows/src/Windows/UI/WindowManagement/Preview/mod.rs b/crates/libs/windows/src/Windows/UI/WindowManagement/Preview/mod.rs index d697584b5b..2df0870bc1 100644 --- a/crates/libs/windows/src/Windows/UI/WindowManagement/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WindowManagement/Preview/mod.rs @@ -22,9 +22,9 @@ windows_core::imp::interface_hierarchy!(WindowManagementPreview, windows_core::I impl WindowManagementPreview { pub fn SetPreferredMinSize(window: P0, preferredframeminsize: super::super::super::Foundation::Size) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - Self::IWindowManagementPreviewStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetPreferredMinSize)(windows_core::Interface::as_raw(this), window.into_param().abi(), preferredframeminsize).ok() }) + Self::IWindowManagementPreviewStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetPreferredMinSize)(windows_core::Interface::as_raw(this), window.param().abi(), preferredframeminsize).ok() }) } #[doc(hidden)] pub fn IWindowManagementPreviewStatics windows_core::Result>(callback: F) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs b/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs index 48d5d00e33..f480ab805f 100644 --- a/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs @@ -429,10 +429,10 @@ impl AppWindow { } pub fn RequestMoveToDisplayRegion(&self, displayregion: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RequestMoveToDisplayRegion)(windows_core::Interface::as_raw(this), displayregion.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RequestMoveToDisplayRegion)(windows_core::Interface::as_raw(this), displayregion.param().abi()).ok() } } pub fn RequestMoveAdjacentToCurrentView(&self) -> windows_core::Result<()> { let this = self; @@ -440,17 +440,17 @@ impl AppWindow { } pub fn RequestMoveAdjacentToWindow(&self, anchorwindow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RequestMoveAdjacentToWindow)(windows_core::Interface::as_raw(this), anchorwindow.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).RequestMoveAdjacentToWindow)(windows_core::Interface::as_raw(this), anchorwindow.param().abi()).ok() } } pub fn RequestMoveRelativeToWindowContent(&self, anchorwindow: P0, contentoffset: super::super::Foundation::Point) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RequestMoveRelativeToWindowContent)(windows_core::Interface::as_raw(this), anchorwindow.into_param().abi(), contentoffset).ok() } + unsafe { (windows_core::Interface::vtable(this).RequestMoveRelativeToWindowContent)(windows_core::Interface::as_raw(this), anchorwindow.param().abi(), contentoffset).ok() } } pub fn RequestMoveRelativeToCurrentViewContent(&self, contentoffset: super::super::Foundation::Point) -> windows_core::Result<()> { let this = self; @@ -458,10 +458,10 @@ impl AppWindow { } pub fn RequestMoveRelativeToDisplayRegion(&self, displayregion: P0, displayregionoffset: super::super::Foundation::Point) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).RequestMoveRelativeToDisplayRegion)(windows_core::Interface::as_raw(this), displayregion.into_param().abi(), displayregionoffset).ok() } + unsafe { (windows_core::Interface::vtable(this).RequestMoveRelativeToDisplayRegion)(windows_core::Interface::as_raw(this), displayregion.param().abi(), displayregionoffset).ok() } } pub fn RequestSize(&self, framesize: super::super::Foundation::Size) -> windows_core::Result<()> { let this = self; @@ -476,12 +476,12 @@ impl AppWindow { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -490,12 +490,12 @@ impl AppWindow { } pub fn Closed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Closed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -504,12 +504,12 @@ impl AppWindow { } pub fn CloseRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CloseRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).CloseRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveCloseRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -803,12 +803,12 @@ impl AppWindowPresenter { } pub fn RequestPresentation(&self, configuration: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestPresentation)(windows_core::Interface::as_raw(this), configuration.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RequestPresentation)(windows_core::Interface::as_raw(this), configuration.param().abi(), &mut result__).map(|| result__) } } pub fn RequestPresentationByKind(&self, presentationkind: AppWindowPresentationKind) -> windows_core::Result { @@ -845,10 +845,10 @@ impl AppWindowTitleBar { } pub fn SetBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -859,10 +859,10 @@ impl AppWindowTitleBar { } pub fn SetButtonBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -873,10 +873,10 @@ impl AppWindowTitleBar { } pub fn SetButtonForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonHoverBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -887,10 +887,10 @@ impl AppWindowTitleBar { } pub fn SetButtonHoverBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonHoverForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -901,10 +901,10 @@ impl AppWindowTitleBar { } pub fn SetButtonHoverForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonInactiveBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -915,10 +915,10 @@ impl AppWindowTitleBar { } pub fn SetButtonInactiveBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonInactiveForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -929,10 +929,10 @@ impl AppWindowTitleBar { } pub fn SetButtonInactiveForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonPressedBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -943,10 +943,10 @@ impl AppWindowTitleBar { } pub fn SetButtonPressedBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ButtonPressedForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -957,10 +957,10 @@ impl AppWindowTitleBar { } pub fn SetButtonPressedForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ExtendsContentIntoTitleBar(&self) -> windows_core::Result { let this = self; @@ -982,10 +982,10 @@ impl AppWindowTitleBar { } pub fn SetForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InactiveBackgroundColor(&self) -> windows_core::Result> { let this = self; @@ -996,10 +996,10 @@ impl AppWindowTitleBar { } pub fn SetInactiveBackgroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn InactiveForegroundColor(&self) -> windows_core::Result> { let this = self; @@ -1010,10 +1010,10 @@ impl AppWindowTitleBar { } pub fn SetInactiveForegroundColor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetInactiveForegroundColor)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IsVisible(&self) -> windows_core::Result { let this = self; @@ -1187,12 +1187,12 @@ impl DisplayRegion { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -1303,12 +1303,12 @@ impl WindowingEnvironment { } pub fn Changed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Changed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { 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 7859a31d97..2f19bb9792 100644 --- a/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn VhfAsyncOperationComplete(vhfoperationhandle: *const core::ffi::c_void, completionstatus: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(vhfoperationhandle, completionstatus.into_param().abi()) + VhfAsyncOperationComplete(vhfoperationhandle, completionstatus.param().abi()) } #[inline] pub unsafe fn VhfCreate(vhfconfig: *const VHF_CONFIG, vhfhandle: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -14,10 +14,10 @@ pub unsafe fn VhfCreate(vhfconfig: *const VHF_CONFIG, vhfhandle: *mut *mut core: #[inline] pub unsafe fn VhfDelete(vhfhandle: *const core::ffi::c_void, wait: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("vhfum.dll" "system" fn VhfDelete(vhfhandle : *const core::ffi::c_void, wait : super::super::super::Win32::Foundation:: BOOLEAN)); - VhfDelete(vhfhandle, wait.into_param().abi()) + VhfDelete(vhfhandle, wait.param().abi()) } #[inline] pub unsafe fn VhfReadReportSubmit(vhfhandle: *const core::ffi::c_void, hidtransferpacket: *const HID_XFER_PACKET) -> super::super::super::Win32::Foundation::NTSTATUS { diff --git a/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs b/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs index b7db3c9e19..4076fa7cc6 100644 --- a/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn NtClose(handle: P0) -> super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtClose(handle : super::super::Win32::Foundation:: HANDLE) -> super::super::Win32::Foundation:: NTSTATUS); - NtClose(handle.into_param().abi()) + NtClose(handle.param().abi()) } #[inline] pub unsafe fn NtQueryObject(handle: P0, objectinformationclass: OBJECT_INFORMATION_CLASS, objectinformation: Option<*mut core::ffi::c_void>, objectinformationlength: u32, returnlength: Option<*mut u32>) -> super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), objectinformationclass, core::mem::transmute(objectinformation.unwrap_or(std::ptr::null_mut())), objectinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + NtQueryObject(handle.param().abi(), objectinformationclass, core::mem::transmute(objectinformation.unwrap_or(std::ptr::null_mut())), objectinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } pub const DontUseThisType: POOL_TYPE = POOL_TYPE(3i32); pub const DontUseThisTypeSession: POOL_TYPE = POOL_TYPE(35i32); 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 5fe329f4bf..9f7e51177b 100644 --- a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs @@ -334,10 +334,10 @@ pub unsafe fn D3DKMTGetProcessDeviceRemovalSupport(param0: *mut D3DKMT_GETPROCES #[inline] pub unsafe fn D3DKMTGetProcessSchedulingPriorityClass(param0: P0, param1: *mut D3DKMT_SCHEDULINGPRIORITYCLASS) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1) + D3DKMTGetProcessSchedulingPriorityClass(param0.param().abi(), param1) } #[inline] pub unsafe fn D3DKMTGetResourcePresentPrivateDriverData(param0: *mut D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -645,10 +645,10 @@ pub unsafe fn D3DKMTReleaseKeyedMutex2(param0: *mut D3DKMT_RELEASEKEYEDMUTEX2) - #[inline] pub unsafe fn D3DKMTReleaseProcessVidPnSourceOwners(param0: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn D3DKMTReleaseProcessVidPnSourceOwners(param0 : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - D3DKMTReleaseProcessVidPnSourceOwners(param0.into_param().abi()) + D3DKMTReleaseProcessVidPnSourceOwners(param0.param().abi()) } #[inline] pub unsafe fn D3DKMTRender(param0: *mut D3DKMT_RENDER) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -708,10 +708,10 @@ pub unsafe fn D3DKMTSetMonitorColorSpaceTransform(param0: *const D3DKMT_SET_COLO #[inline] pub unsafe fn D3DKMTSetProcessSchedulingPriorityClass(param0: P0, param1: D3DKMT_SCHEDULINGPRIORITYCLASS) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1) + D3DKMTSetProcessSchedulingPriorityClass(param0.param().abi(), param1) } #[inline] pub unsafe fn D3DKMTSetQueuedLimit(param0: *const D3DKMT_SETQUEUEDLIMIT) -> super::super::super::Win32::Foundation::NTSTATUS { 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 df231cba14..ff2d836540 100644 --- a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn NdisAcquireReadWriteLock(lock: *mut NDIS_RW_LOCK, fwrite: P0, lockstate: *mut LOCK_STATE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndis.sys" "system" fn NdisAcquireReadWriteLock(lock : *mut NDIS_RW_LOCK, fwrite : super::super::super::Win32::Foundation:: BOOLEAN, lockstate : *mut LOCK_STATE)); - NdisAcquireReadWriteLock(lock, fwrite.into_param().abi(), lockstate) + NdisAcquireReadWriteLock(lock, fwrite.param().abi(), lockstate) } #[inline] pub unsafe fn NdisAllocateMemoryWithTag(virtualaddress: *mut *mut core::ffi::c_void, length: u32, tag: u32) -> i32 { @@ -183,10 +183,10 @@ pub unsafe fn NdisCoGetTapiCallId(ndisvchandle: *const core::ffi::c_void, tapica #[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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN)); - NdisCompleteDmaTransfer(status, ndisdmahandle, buffer, offset, length, writetodevice.into_param().abi()) + NdisCompleteDmaTransfer(status, ndisdmahandle, buffer, offset, length, writetodevice.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -288,18 +288,18 @@ pub unsafe fn NdisInitializeTimer(timer: *mut NDIS_TIMER, timerfunction: PNDIS_T #[inline] pub unsafe fn NdisMAllocateSharedMemory(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: P0, virtualaddress: *mut *mut core::ffi::c_void, physicaladdress: *mut i64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, virtualaddress : *mut *mut core::ffi::c_void, physicaladdress : *mut i64)); - NdisMAllocateSharedMemory(miniportadapterhandle, length, cached.into_param().abi(), virtualaddress, physicaladdress) + NdisMAllocateSharedMemory(miniportadapterhandle, length, cached.param().abi(), virtualaddress, physicaladdress) } #[inline] pub unsafe fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: P0, context: *const core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, context : *const core::ffi::c_void) -> i32); - NdisMAllocateSharedMemoryAsync(miniportadapterhandle, length, cached.into_param().abi(), context) + NdisMAllocateSharedMemoryAsync(miniportadapterhandle, length, cached.param().abi(), context) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] @@ -372,10 +372,10 @@ pub unsafe fn NdisMFlushLog(loghandle: *const core::ffi::c_void) { #[inline] pub unsafe fn NdisMFreeSharedMemory(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: P0, virtualaddress: *const core::ffi::c_void, physicaladdress: i64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndis.sys" "system" fn NdisMFreeSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, virtualaddress : *const core::ffi::c_void, physicaladdress : i64)); - NdisMFreeSharedMemory(miniportadapterhandle, length, cached.into_param().abi(), virtualaddress, physicaladdress) + NdisMFreeSharedMemory(miniportadapterhandle, length, cached.param().abi(), 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] @@ -413,10 +413,10 @@ pub unsafe fn NdisMReadDmaCounter(miniportdmahandle: *const core::ffi::c_void) - #[inline] pub unsafe fn NdisMRegisterDmaChannel(miniportdmahandle: *mut *mut core::ffi::c_void, miniportadapterhandle: *const core::ffi::c_void, dmachannel: u32, dma32bitaddresses: P0, dmadescription: *const NDIS_DMA_DESCRIPTION, maximumlength: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndis.sys" "system" fn NdisMRegisterDmaChannel(miniportdmahandle : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, dmachannel : u32, dma32bitaddresses : super::super::super::Win32::Foundation:: BOOLEAN, dmadescription : *const NDIS_DMA_DESCRIPTION, maximumlength : u32) -> i32); - NdisMRegisterDmaChannel(miniportdmahandle, miniportadapterhandle, dmachannel, dma32bitaddresses.into_param().abi(), dmadescription, maximumlength) + NdisMRegisterDmaChannel(miniportdmahandle, miniportadapterhandle, dmachannel, dma32bitaddresses.param().abi(), 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 { @@ -538,10 +538,10 @@ pub unsafe fn NdisSetTimerEx(ndistimer: *const NDIS_TIMER, millisecondstodelay: #[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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN)); - NdisSetupDmaTransfer(status, ndisdmahandle, buffer, offset, length, writetodevice.into_param().abi()) + NdisSetupDmaTransfer(status, ndisdmahandle, buffer, offset, length, writetodevice.param().abi()) } #[inline] pub unsafe fn NdisSystemProcessorCount() -> i8 { 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 9405964f08..780cf34a87 100644 --- a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/WindowsFilteringPlatform/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/WindowsFilteringPlatform/mod.rs @@ -13,298 +13,298 @@ pub unsafe fn FwpmBfeStateSubscribeChanges0(deviceobject: *mut core::ffi::c_void #[inline] pub unsafe fn FwpmBfeStateUnsubscribeChanges0(changehandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpkclnt.sys" "system" fn FwpmBfeStateUnsubscribeChanges0(changehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmBfeStateUnsubscribeChanges0(changehandle.into_param().abi()) + FwpmBfeStateUnsubscribeChanges0(changehandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmCalloutAdd0(enginehandle: P0, callout: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0, sd: P1, id: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), callout, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmCalloutAdd0(enginehandle.param().abi(), callout, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmCalloutCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmCalloutDeleteById0(enginehandle: P0, id: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmCalloutDeleteById0(enginehandle.into_param().abi(), id) + FwpmCalloutDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn FwpmCalloutDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key) + FwpmCalloutDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmCalloutDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmCalloutDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmCalloutEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutGetById0(enginehandle: P0, id: u32, callout: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, callout) + FwpmCalloutGetById0(enginehandle.param().abi(), id, callout) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmCalloutGetByKey0(enginehandle: P0, key: *const windows_core::GUID, callout: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CALLOUT0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, callout) + FwpmCalloutGetByKey0(enginehandle.param().abi(), key, callout) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmCalloutGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmCalloutSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmConnectionCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmConnectionCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmConnectionDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmConnectionDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmConnectionEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CONNECTION0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmConnectionEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmConnectionGetById0(enginehandle: P0, id: u64, connection: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_CONNECTION0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, connection) + FwpmConnectionGetById0(enginehandle.param().abi(), id, connection) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmConnectionGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmConnectionSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmEngineClose0(enginehandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineClose0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmEngineClose0(enginehandle.into_param().abi()) + FwpmEngineClose0(enginehandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmEngineGetOption0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), option, value) + FwpmEngineGetOption0(enginehandle.param().abi(), option, value) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmEngineGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security", feature = "Win32_System_Rpc"))] #[inline] pub unsafe fn FwpmEngineOpen0(servername: P0, authnservice: u32, authidentity: Option<*const super::super::super::Win32::System::Rpc::SEC_WINNT_AUTH_IDENTITY_W>, session: Option<*const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SESSION0>, enginehandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), authnservice, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), core::mem::transmute(session.unwrap_or(std::ptr::null())), enginehandle) + FwpmEngineOpen0(servername.param().abi(), authnservice, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), core::mem::transmute(session.unwrap_or(std::ptr::null())), enginehandle) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmEngineSetOption0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), option, newvalue) + FwpmEngineSetOption0(enginehandle.param().abi(), option, newvalue) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmEngineSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterAdd0(enginehandle: P0, filter: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0, sd: P1, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), filter, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmFilterAdd0(enginehandle.param().abi(), filter, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmFilterCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmFilterDeleteById0(enginehandle: P0, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmFilterDeleteById0(enginehandle.into_param().abi(), id) + FwpmFilterDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn FwpmFilterDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key) + FwpmFilterDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmFilterDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmFilterDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmFilterEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterGetById0(enginehandle: P0, id: u64, filter: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, filter) + FwpmFilterGetById0(enginehandle.param().abi(), id, filter) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmFilterGetByKey0(enginehandle: P0, key: *const windows_core::GUID, filter: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_FILTER0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, filter) + FwpmFilterGetByKey0(enginehandle.param().abi(), key, filter) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmFilterGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmFilterSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmFreeMemory0(p: *mut *mut core::ffi::c_void) { @@ -315,1039 +315,1039 @@ pub unsafe fn FwpmFreeMemory0(p: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn FwpmIPsecTunnelAdd0(enginehandle: P0, 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: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), sd.into_param().abi()) + FwpmIPsecTunnelAdd0(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), sd.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmIPsecTunnelAdd1(enginehandle: P0, 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: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.into_param().abi()) + FwpmIPsecTunnelAdd1(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmIPsecTunnelAdd2(enginehandle: P0, 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: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.into_param().abi()) + FwpmIPsecTunnelAdd2(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmIPsecTunnelAdd3(enginehandle: P0, 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: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.into_param().abi()) + FwpmIPsecTunnelAdd3(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.param().abi()) } #[inline] pub unsafe fn FwpmIPsecTunnelDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key) + FwpmIPsecTunnelDeleteByKey0(enginehandle.param().abi(), key) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmLayerCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmLayerDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmLayerDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_LAYER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmLayerEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerGetById0(enginehandle: P0, id: u16, layer: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_LAYER0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, layer) + FwpmLayerGetById0(enginehandle.param().abi(), id, layer) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmLayerGetByKey0(enginehandle: P0, key: *const windows_core::GUID, layer: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_LAYER0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, layer) + FwpmLayerGetByKey0(enginehandle.param().abi(), key, layer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmLayerGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmLayerSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmNetEventCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmNetEventDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmNetEventDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum2(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT2, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum2(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum3(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT3, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum3(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum4(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT4, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum4(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmNetEventEnum5(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_NET_EVENT5, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum5(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventsGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmNetEventsGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmNetEventsSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderAdd0(enginehandle: P0, provider: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER0, sd: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), provider, sd.into_param().abi()) + FwpmProviderAdd0(enginehandle.param().abi(), provider, sd.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd0(enginehandle: P0, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0, sd: P1, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd0(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd1(enginehandle: P0, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1, sd: P1, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd1(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd2(enginehandle: P0, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2, sd: P1, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd2(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextAdd3(enginehandle: P0, providercontext: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3, sd: P1, id: Option<*mut u64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd3(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderContextCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmProviderContextCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmProviderContextDeleteById0(enginehandle: P0, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmProviderContextDeleteById0(enginehandle.into_param().abi(), id) + FwpmProviderContextDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn FwpmProviderContextDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key) + FwpmProviderContextDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmProviderContextDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmProviderContextDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum2(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum2(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextEnum3(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum3(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById0(enginehandle: P0, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById0(enginehandle.param().abi(), id, providercontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById1(enginehandle: P0, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById1(enginehandle.param().abi(), id, providercontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById2(enginehandle: P0, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById2(enginehandle.param().abi(), id, providercontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetById3(enginehandle: P0, id: u64, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById3(enginehandle.param().abi(), id, providercontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey0(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey0(enginehandle.param().abi(), key, providercontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey1(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey1(enginehandle.param().abi(), key, providercontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey2(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey2(enginehandle.param().abi(), key, providercontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmProviderContextGetByKey3(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey3(enginehandle.param().abi(), key, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmProviderContextGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmProviderContextSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmProviderCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmProviderDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key) + FwpmProviderDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmProviderDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmProviderDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmProviderGetByKey0(enginehandle: P0, key: *const windows_core::GUID, provider: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_PROVIDER0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, provider) + FwpmProviderGetByKey0(enginehandle.param().abi(), key, provider) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmProviderGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmProviderSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSessionCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmSessionCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmSessionDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmSessionDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmSessionEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SESSION0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmSessionEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn FwpmSubLayerAdd0(enginehandle: P0, sublayer: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SUBLAYER0, sd: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), sublayer, sd.into_param().abi()) + FwpmSubLayerAdd0(enginehandle.param().abi(), sublayer, sd.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSubLayerCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmSubLayerCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmSubLayerDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key) + FwpmSubLayerDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmSubLayerDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmSubLayerDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSubLayerEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SUBLAYER0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmSubLayerEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn FwpmSubLayerGetByKey0(enginehandle: P0, key: *const windows_core::GUID, sublayer: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SUBLAYER0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, sublayer) + FwpmSubLayerGetByKey0(enginehandle.param().abi(), key, sublayer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmSubLayerGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmSubLayerSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmTransactionAbort0(enginehandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionAbort0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmTransactionAbort0(enginehandle.into_param().abi()) + FwpmTransactionAbort0(enginehandle.param().abi()) } #[inline] pub unsafe fn FwpmTransactionBegin0(enginehandle: P0, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionBegin0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmTransactionBegin0(enginehandle.into_param().abi(), flags) + FwpmTransactionBegin0(enginehandle.param().abi(), flags) } #[inline] pub unsafe fn FwpmTransactionCommit0(enginehandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionCommit0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - FwpmTransactionCommit0(enginehandle.into_param().abi()) + FwpmTransactionCommit0(enginehandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmvSwitchEventsGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmvSwitchEventsSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + IPsecDospGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecDospGetStatistics0(enginehandle: P0, idpstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_DOSP_STATISTICS0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), idpstatistics) + IPsecDospGetStatistics0(enginehandle.param().abi(), idpstatistics) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + IPsecDospSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecDospStateCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IPsecDospStateCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn IPsecDospStateDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IPsecDospStateDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecDospStateEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_DOSP_STATE0, numentries: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentries) + IPsecDospStateEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentries) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecGetStatistics0(enginehandle: P0, ipsecstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_STATISTICS0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), ipsecstatistics) + IPsecGetStatistics0(enginehandle.param().abi(), ipsecstatistics) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecGetStatistics1(enginehandle: P0, ipsecstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_STATISTICS1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), ipsecstatistics) + IPsecGetStatistics1(enginehandle.param().abi(), ipsecstatistics) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddInbound0(enginehandle: P0, id: u64, inboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, inboundbundle) + IPsecSaContextAddInbound0(enginehandle.param().abi(), id, inboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddInbound1(enginehandle: P0, id: u64, inboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, inboundbundle) + IPsecSaContextAddInbound1(enginehandle.param().abi(), id, inboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddOutbound0(enginehandle: P0, id: u64, outboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, outboundbundle) + IPsecSaContextAddOutbound0(enginehandle.param().abi(), id, outboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextAddOutbound1(enginehandle: P0, id: u64, outboundbundle: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, outboundbundle) + IPsecSaContextAddOutbound1(enginehandle.param().abi(), id, outboundbundle) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextCreate0(enginehandle: P0, outboundtraffic: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_TRAFFIC0, inboundfilterid: Option<*mut u64>, id: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), outboundtraffic, core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) + IPsecSaContextCreate0(enginehandle.param().abi(), outboundtraffic, core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextCreate1(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), outboundtraffic, core::mem::transmute(virtualiftunnelinfo.unwrap_or(std::ptr::null())), core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) + IPsecSaContextCreate1(enginehandle.param().abi(), outboundtraffic, core::mem::transmute(virtualiftunnelinfo.unwrap_or(std::ptr::null())), core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IPsecSaContextCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn IPsecSaContextDeleteById0(enginehandle: P0, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextDeleteById0(enginehandle.into_param().abi(), id) + IPsecSaContextDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn IPsecSaContextDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IPsecSaContextDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaContextEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaContextEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn IPsecSaContextExpire0(enginehandle: P0, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextExpire0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IPsecSaContextExpire0(enginehandle.into_param().abi(), id) + IPsecSaContextExpire0(enginehandle.param().abi(), id) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextGetById0(enginehandle: P0, id: u64, sacontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, sacontext) + IPsecSaContextGetById0(enginehandle.param().abi(), id, sacontext) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextGetById1(enginehandle: P0, id: u64, sacontext: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, sacontext) + IPsecSaContextGetById1(enginehandle.param().abi(), id, sacontext) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextGetSpi0(enginehandle: P0, id: u64, getspi: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_GETSPI0, inboundspi: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, getspi, inboundspi) + IPsecSaContextGetSpi0(enginehandle.param().abi(), id, getspi, inboundspi) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextGetSpi1(enginehandle: P0, id: u64, getspi: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_GETSPI1, inboundspi: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, getspi, inboundspi) + IPsecSaContextGetSpi1(enginehandle.param().abi(), id, getspi, inboundspi) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaContextSetSpi0(enginehandle: P0, id: u64, getspi: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_GETSPI1, inboundspi: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, getspi, inboundspi) + IPsecSaContextSetSpi0(enginehandle.param().abi(), id, getspi, inboundspi) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaContextUpdate0(enginehandle: P0, flags: u64, newvalues: *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, newvalues) + IPsecSaContextUpdate0(enginehandle.param().abi(), flags, newvalues) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IPsecSaCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IPsecSaCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDbGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + IPsecSaDbGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + IPsecSaDbSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn IPsecSaDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IPsecSaDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_DETAILS0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IPsecSaEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IPSEC_SA_DETAILS1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextGetStatistics0(enginehandle: P0, ikeextstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_STATISTICS0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), ikeextstatistics) + IkeextGetStatistics0(enginehandle.param().abi(), ikeextstatistics) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextGetStatistics1(enginehandle: P0, ikeextstatistics: *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_STATISTICS1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), ikeextstatistics) + IkeextGetStatistics1(enginehandle.param().abi(), ikeextstatistics) } #[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))] #[inline] pub unsafe fn IkeextSaCreateEnumHandle0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IkeextSaCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::super::Win32::Foundation::PSID, sidgroup: *mut super::super::super::Win32::Foundation::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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDbGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Foundation:: PSID, sidgroup : *mut super::super::super::Win32::Foundation:: 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(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + IkeextSaDbGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + IkeextSaDbSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn IkeextSaDeleteById0(enginehandle: P0, id: u64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); - IkeextSaDeleteById0(enginehandle.into_param().abi(), id) + IkeextSaDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn IkeextSaDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IkeextSaDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS0, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IkeextSaEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS1, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IkeextSaEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaEnum2(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS2, numentriesreturned: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IkeextSaEnum2(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaGetById0(enginehandle: P0, id: u64, sa: *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::IKEEXT_SA_DETAILS0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, sa) + IkeextSaGetById0(enginehandle.param().abi(), id, sa) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaGetById1(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), sa) + IkeextSaGetById1(enginehandle.param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), sa) } #[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")] #[inline] pub unsafe fn IkeextSaGetById2(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), sa) + IkeextSaGetById2(enginehandle.param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), 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 a1ee26f299..b741b60ffc 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,10 +1,10 @@ #[inline] pub unsafe fn FltAcknowledgeEcp(filter: P0, ecpcontext: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltAcknowledgeEcp(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void)); - FltAcknowledgeEcp(filter.into_param().abi(), ecpcontext) + FltAcknowledgeEcp(filter.param().abi(), ecpcontext) } #[inline] pub unsafe fn FltAcquirePushLockExclusive(pushlock: *mut usize) { @@ -42,46 +42,46 @@ pub unsafe fn FltAcquireResourceShared(resource: *mut super::super::super::Found #[inline] pub unsafe fn FltAddOpenReparseEntry(filter: P0, data: *const FLT_CALLBACK_DATA, openreparseentry: *const super::OPEN_REPARSE_LIST_ENTRY) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), data, openreparseentry) + FltAddOpenReparseEntry(filter.param().abi(), data, openreparseentry) } #[inline] pub unsafe fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance: P0, targetinstance: P1, sourcedevicestacksizemodified: Option<*mut super::super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, sourcedevicestacksizemodified : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltAdjustDeviceStackSizeForIoRedirection(sourceinstance.into_param().abi(), targetinstance.into_param().abi(), core::mem::transmute(sourcedevicestacksizemodified.unwrap_or(std::ptr::null_mut()))) + FltAdjustDeviceStackSizeForIoRedirection(sourceinstance.param().abi(), targetinstance.param().abi(), core::mem::transmute(sourcedevicestacksizemodified.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, fileobject: Option<*const super::super::super::Foundation::FILE_OBJECT>, retnewcallbackdata: *mut *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), retnewcallbackdata) + FltAllocateCallbackData(instance.param().abi(), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), 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: P0, fileobject: Option<*const super::super::super::Foundation::FILE_OBJECT>, flags: u32, retnewcallbackdata: *mut *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), flags, retnewcallbackdata) + FltAllocateCallbackDataEx(instance.param().abi(), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), flags, retnewcallbackdata) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltAllocateContext(filter: P0, contexttype: u16, contextsize: usize, pooltype: super::super::super::Foundation::POOL_TYPE, returnedcontext: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), contexttype, contextsize, pooltype, returnedcontext) + FltAllocateContext(filter.param().abi(), contexttype, contextsize, pooltype, returnedcontext) } #[inline] pub unsafe fn FltAllocateDeferredIoWorkItem() -> PFLT_DEFERRED_IO_WORKITEM { @@ -91,27 +91,27 @@ pub unsafe fn FltAllocateDeferredIoWorkItem() -> PFLT_DEFERRED_IO_WORKITEM { #[inline] pub unsafe fn FltAllocateExtraCreateParameter(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), ecptype, sizeofcontext, flags, cleanupcallback, pooltag, ecpcontext) + FltAllocateExtraCreateParameter(filter.param().abi(), ecptype, sizeofcontext, flags, cleanupcallback, pooltag, ecpcontext) } #[inline] pub unsafe fn FltAllocateExtraCreateParameterFromLookasideList(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), ecptype, sizeofcontext, flags, cleanupcallback, lookasidelist, ecpcontext) + FltAllocateExtraCreateParameterFromLookasideList(filter.param().abi(), ecptype, sizeofcontext, flags, cleanupcallback, lookasidelist, ecpcontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltAllocateExtraCreateParameterList(filter: P0, flags: u32, ecplist: *mut *mut super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), flags, ecplist) + FltAllocateExtraCreateParameterList(filter.param().abi(), flags, 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] @@ -128,37 +128,37 @@ pub unsafe fn FltAllocateGenericWorkItem() -> PFLT_GENERIC_WORKITEM { #[inline] pub unsafe fn FltAllocatePoolAlignedWithTag(instance: P0, pooltype: super::super::super::Foundation::POOL_TYPE, numberofbytes: usize, tag: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), pooltype, numberofbytes, tag) + FltAllocatePoolAlignedWithTag(instance.param().abi(), 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: P0) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(inputpriorityinfo, core::mem::transmute(outputpriorityinfo.unwrap_or(std::ptr::null_mut())), thread.into_param().abi()) + FltApplyPriorityInfoThread(inputpriorityinfo, core::mem::transmute(outputpriorityinfo.unwrap_or(std::ptr::null_mut())), thread.param().abi()) } #[inline] pub unsafe fn FltAttachVolume(filter: P0, volume: P1, instancename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, retinstance: Option<*mut PFLT_INSTANCE>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), volume.into_param().abi(), core::mem::transmute(instancename.unwrap_or(std::ptr::null())), core::mem::transmute(retinstance.unwrap_or(std::ptr::null_mut()))) + FltAttachVolume(filter.param().abi(), volume.param().abi(), core::mem::transmute(instancename.unwrap_or(std::ptr::null())), core::mem::transmute(retinstance.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltAttachVolumeAtAltitude(filter: P0, volume: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), volume.into_param().abi(), altitude, core::mem::transmute(instancename.unwrap_or(std::ptr::null())), core::mem::transmute(retinstance.unwrap_or(std::ptr::null_mut()))) + FltAttachVolumeAtAltitude(filter.param().abi(), volume.param().abi(), altitude, core::mem::transmute(instancename.unwrap_or(std::ptr::null())), core::mem::transmute(retinstance.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -170,10 +170,10 @@ pub unsafe fn FltBuildDefaultSecurityDescriptor(securitydescriptor: *mut super:: #[inline] pub unsafe fn FltCancelFileOpen(instance: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltCancelFileOpen(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT)); - FltCancelFileOpen(instance.into_param().abi(), fileobject) + FltCancelFileOpen(instance.param().abi(), 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] @@ -209,10 +209,10 @@ pub unsafe fn FltCbdqEnable(cbdq: *mut FLT_CALLBACK_DATA_QUEUE) { #[inline] pub unsafe fn FltCbdqInitialize(instance: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), cbdq, cbdqinsertio, cbdqremoveio, cbdqpeeknextio, cbdqacquire, cbdqrelease, cbdqcompletecanceledio) + FltCbdqInitialize(instance.param().abi(), 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] @@ -276,63 +276,63 @@ pub unsafe fn FltClearCancelCompletion(callbackdata: *const FLT_CALLBACK_DATA) - #[inline] pub unsafe fn FltClose(filehandle: P0) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltClose(filehandle : super::super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltClose(filehandle.into_param().abi()) + FltClose(filehandle.param().abi()) } #[inline] pub unsafe fn FltCloseClientPort(filter: P0, clientport: *mut PFLT_PORT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltCloseClientPort(filter : PFLT_FILTER, clientport : *mut PFLT_PORT)); - FltCloseClientPort(filter.into_param().abi(), clientport) + FltCloseClientPort(filter.param().abi(), clientport) } #[inline] pub unsafe fn FltCloseCommunicationPort(serverport: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltCloseCommunicationPort(serverport : PFLT_PORT)); - FltCloseCommunicationPort(serverport.into_param().abi()) + FltCloseCommunicationPort(serverport.param().abi()) } #[inline] pub unsafe fn FltCloseSectionForDataScan(sectioncontext: P0) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltCloseSectionForDataScan(sectioncontext : PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCloseSectionForDataScan(sectioncontext.into_param().abi()) + FltCloseSectionForDataScan(sectioncontext.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltCommitComplete(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: P1) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, transactioncontext.into_param().abi()) + FltCommitComplete(instance.param().abi(), transaction, transactioncontext.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltCommitFinalizeComplete(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: P1) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, transactioncontext.into_param().abi()) + FltCommitFinalizeComplete(instance.param().abi(), transaction, transactioncontext.param().abi()) } #[inline] pub unsafe fn FltCompareInstanceAltitudes(instance1: P0, instance2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltCompareInstanceAltitudes(instance1 : PFLT_INSTANCE, instance2 : PFLT_INSTANCE) -> i32); - FltCompareInstanceAltitudes(instance1.into_param().abi(), instance2.into_param().abi()) + FltCompareInstanceAltitudes(instance1.param().abi(), instance2.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -350,87 +350,87 @@ pub unsafe fn FltCompletePendedPreOperation(callbackdata: *const FLT_CALLBACK_DA #[inline] pub unsafe fn FltCopyOpenReparseList(filter: P0, data: *const FLT_CALLBACK_DATA, ecplist: *mut super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), data, ecplist) + FltCopyOpenReparseList(filter.param().abi(), data, ecplist) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltCreateCommunicationPort(filter: P0, 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: PFLT_MESSAGE_NOTIFY, maxconnections: i32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), serverport, objectattributes, core::mem::transmute(serverportcookie.unwrap_or(std::ptr::null())), connectnotifycallback, disconnectnotifycallback, messagenotifycallback, maxconnections) + FltCreateCommunicationPort(filter.param().abi(), serverport, objectattributes, core::mem::transmute(serverportcookie.unwrap_or(std::ptr::null())), connectnotifycallback, disconnectnotifycallback, messagenotifycallback, maxconnections) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] pub unsafe fn FltCreateFile(filter: P0, instance: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), instance.into_param().abi(), filehandle, desiredaccess, objectattributes, iostatusblock, core::mem::transmute(allocationsize.unwrap_or(std::ptr::null())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(std::ptr::null())), ealength, flags) + FltCreateFile(filter.param().abi(), instance.param().abi(), filehandle, desiredaccess, objectattributes, iostatusblock, core::mem::transmute(allocationsize.unwrap_or(std::ptr::null())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(std::ptr::null())), 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: P0, instance: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), instance.into_param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, core::mem::transmute(allocationsize.unwrap_or(std::ptr::null())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(std::ptr::null())), ealength, flags) + FltCreateFileEx(filter.param().abi(), instance.param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, core::mem::transmute(allocationsize.unwrap_or(std::ptr::null())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(std::ptr::null())), 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: P0, instance: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), instance.into_param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, core::mem::transmute(allocationsize.unwrap_or(std::ptr::null())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(std::ptr::null())), ealength, flags, core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) + FltCreateFileEx2(filter.param().abi(), instance.param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, core::mem::transmute(allocationsize.unwrap_or(std::ptr::null())), fileattributes, shareaccess, createdisposition, createoptions, core::mem::transmute(eabuffer.unwrap_or(std::ptr::null())), ealength, flags, core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) } #[cfg(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 FltCreateMailslotFile(filter: P0, instance: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), instance.into_param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, createoptions, mailslotquota, maximummessagesize, readtimeout, core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) + FltCreateMailslotFile(filter.param().abi(), instance.param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, createoptions, mailslotquota, maximummessagesize, readtimeout, core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, instance: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), instance.into_param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, shareaccess, createdisposition, createoptions, namedpipetype, readmode, completionmode, maximuminstances, inboundquota, outboundquota, core::mem::transmute(defaulttimeout.unwrap_or(std::ptr::null())), core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) + FltCreateNamedPipeFile(filter.param().abi(), instance.param().abi(), filehandle, core::mem::transmute(fileobject.unwrap_or(std::ptr::null_mut())), desiredaccess, objectattributes, iostatusblock, shareaccess, createdisposition, createoptions, namedpipetype, readmode, completionmode, maximuminstances, inboundquota, outboundquota, core::mem::transmute(defaulttimeout.unwrap_or(std::ptr::null())), core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) } #[cfg(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 FltCreateSectionForDataScan(instance: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, sectioncontext: P1, desiredaccess: u32, objectattributes: Option<*const super::super::super::Foundation::OBJECT_ATTRIBUTES>, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), fileobject, sectioncontext.into_param().abi(), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, flags, sectionhandle, sectionobject, core::mem::transmute(sectionfilesize.unwrap_or(std::ptr::null_mut()))) + FltCreateSectionForDataScan(instance.param().abi(), fileobject, sectioncontext.param().abi(), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, flags, sectionhandle, sectionobject, core::mem::transmute(sectionfilesize.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltCreateSystemVolumeInformationFolder(instance: P0) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltCreateSystemVolumeInformationFolder(instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltCreateSystemVolumeInformationFolder(instance.into_param().abi()) + FltCreateSystemVolumeInformationFolder(instance.param().abi()) } #[inline] pub unsafe fn FltCurrentBatchOplock(oplock: *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN { @@ -456,35 +456,35 @@ pub unsafe fn FltDecodeParameters(callbackdata: *const FLT_CALLBACK_DATA, mdladd #[inline] pub unsafe fn FltDeleteContext(context: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteContext(context : PFLT_CONTEXT)); - FltDeleteContext(context.into_param().abi()) + FltDeleteContext(context.param().abi()) } #[inline] pub unsafe fn FltDeleteExtraCreateParameterLookasideList(filter: P0, lookaside: *mut core::ffi::c_void, flags: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteExtraCreateParameterLookasideList(filter : PFLT_FILTER, lookaside : *mut core::ffi::c_void, flags : u32)); - FltDeleteExtraCreateParameterLookasideList(filter.into_param().abi(), lookaside, flags) + FltDeleteExtraCreateParameterLookasideList(filter.param().abi(), 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltDeleteFileContext(instance.param().abi(), fileobject, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltDeleteInstanceContext(instance: P0, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltDeleteInstanceContext(instance : PFLT_INSTANCE, oldcontext : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltDeleteInstanceContext(instance.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltDeleteInstanceContext(instance.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltDeletePushLock(pushlock: *const usize) { @@ -495,55 +495,55 @@ pub unsafe fn FltDeletePushLock(pushlock: *const usize) { #[inline] pub unsafe fn FltDeleteStreamContext(instance: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltDeleteStreamContext(instance.param().abi(), fileobject, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltDeleteStreamHandleContext(instance.param().abi(), fileobject, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltDeleteTransactionContext(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), transaction, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltDeleteTransactionContext(instance.param().abi(), transaction, core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltDeleteVolumeContext(filter: P0, volume: P1, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), volume.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltDeleteVolumeContext(filter.param().abi(), volume.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltDetachVolume(filter: P0, volume: P1, instancename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), volume.into_param().abi(), core::mem::transmute(instancename.unwrap_or(std::ptr::null()))) + FltDetachVolume(filter.param().abi(), volume.param().abi(), core::mem::transmute(instancename.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltDeviceIoControlFile(instance.param().abi(), fileobject, iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -555,11 +555,11 @@ pub unsafe fn FltDoCompletionProcessingWhenSafe(data: *const FLT_CALLBACK_DATA, #[inline] pub unsafe fn FltEnlistInTransaction(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: P1, notificationmask: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, transactioncontext.into_param().abi(), notificationmask) + FltEnlistInTransaction(instance.param().abi(), transaction, transactioncontext.param().abi(), notificationmask) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] @@ -582,19 +582,19 @@ pub unsafe fn FltEnumerateInstanceInformationByDeviceObject(deviceobject: *const #[inline] pub unsafe fn FltEnumerateInstanceInformationByFilter(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), index, informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) + FltEnumerateInstanceInformationByFilter(filter.param().abi(), index, informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltEnumerateInstanceInformationByVolume(volume: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(volume.into_param().abi(), index, informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) + FltEnumerateInstanceInformationByVolume(volume.param().abi(), index, informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] @@ -605,91 +605,91 @@ pub unsafe fn FltEnumerateInstanceInformationByVolumeName(volumename: *const sup #[inline] pub unsafe fn FltEnumerateInstances(volume: P0, filter: P1, instancelist: Option<&mut [PFLT_INSTANCE]>, numberinstancesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateInstances(volume : PFLT_VOLUME, filter : PFLT_FILTER, instancelist : *mut PFLT_INSTANCE, instancelistsize : u32, numberinstancesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltEnumerateInstances(volume.into_param().abi(), filter.into_param().abi(), core::mem::transmute(instancelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), instancelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), numberinstancesreturned) + FltEnumerateInstances(volume.param().abi(), filter.param().abi(), core::mem::transmute(instancelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), instancelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), numberinstancesreturned) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltEnumerateVolumeInformation(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), index, informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) + FltEnumerateVolumeInformation(filter.param().abi(), index, informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) } #[inline] pub unsafe fn FltEnumerateVolumes(filter: P0, volumelist: Option<&mut [PFLT_VOLUME]>, numbervolumesreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), 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()), numbervolumesreturned) + FltEnumerateVolumes(filter.param().abi(), 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()), 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: P0, 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) -> super::super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::super::Win32::Foundation:: BOOLEAN); - FltFastIoMdlRead(initiatinginstance.into_param().abi(), fileobject, fileoffset, length, lockkey, mdlchain, iostatus) + FltFastIoMdlRead(initiatinginstance.param().abi(), fileobject, fileoffset, length, lockkey, mdlchain, 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::super::Foundation::MDL) -> super::super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::super::Win32::Foundation:: BOOLEAN); - FltFastIoMdlReadComplete(initiatinginstance.into_param().abi(), fileobject, mdlchain) + FltFastIoMdlReadComplete(initiatinginstance.param().abi(), 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::super::Foundation::MDL) -> super::super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::super::Win32::Foundation:: BOOLEAN); - FltFastIoMdlWriteComplete(initiatinginstance.into_param().abi(), fileobject, fileoffset, mdlchain) + FltFastIoMdlWriteComplete(initiatinginstance.param().abi(), 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: P0, 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) -> super::super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::super::Win32::Foundation:: BOOLEAN); - FltFastIoPrepareMdlWrite(initiatinginstance.into_param().abi(), fileobject, fileoffset, length, lockkey, mdlchain, iostatus) + FltFastIoPrepareMdlWrite(initiatinginstance.param().abi(), fileobject, fileoffset, length, lockkey, mdlchain, iostatus) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltFindExtraCreateParameter(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), ecplist, ecptype, core::mem::transmute(ecpcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ecpcontextsize.unwrap_or(std::ptr::null_mut()))) + FltFindExtraCreateParameter(filter.param().abi(), ecplist, ecptype, core::mem::transmute(ecpcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ecpcontextsize.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject) + FltFlushBuffers(instance.param().abi(), 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, flushtype: u32, callbackdata: Option<*const FLT_CALLBACK_DATA>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, flushtype, core::mem::transmute(callbackdata.unwrap_or(std::ptr::null()))) + FltFlushBuffers2(instance.param().abi(), fileobject, flushtype, core::mem::transmute(callbackdata.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -700,27 +700,27 @@ pub unsafe fn FltFreeCallbackData(callbackdata: *const FLT_CALLBACK_DATA) { #[inline] pub unsafe fn FltFreeDeferredIoWorkItem(fltworkitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltFreeDeferredIoWorkItem(fltworkitem : PFLT_DEFERRED_IO_WORKITEM)); - FltFreeDeferredIoWorkItem(fltworkitem.into_param().abi()) + FltFreeDeferredIoWorkItem(fltworkitem.param().abi()) } #[inline] pub unsafe fn FltFreeExtraCreateParameter(filter: P0, ecpcontext: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltFreeExtraCreateParameter(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void)); - FltFreeExtraCreateParameter(filter.into_param().abi(), ecpcontext) + FltFreeExtraCreateParameter(filter.param().abi(), ecpcontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltFreeExtraCreateParameterList(filter: P0, ecplist: *const super::super::super::Foundation::ECP_LIST) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltFreeExtraCreateParameterList(filter : PFLT_FILTER, ecplist : *const super::super::super::Foundation:: ECP_LIST)); - FltFreeExtraCreateParameterList(filter.into_param().abi(), ecplist) + FltFreeExtraCreateParameterList(filter.param().abi(), 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] @@ -731,45 +731,45 @@ pub unsafe fn FltFreeFileLock(filelock: *const super::FILE_LOCK) { #[inline] pub unsafe fn FltFreeGenericWorkItem(fltworkitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltFreeGenericWorkItem(fltworkitem : PFLT_GENERIC_WORKITEM)); - FltFreeGenericWorkItem(fltworkitem.into_param().abi()) + FltFreeGenericWorkItem(fltworkitem.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltFreeOpenReparseList(filter: P0, ecplist: *const super::super::super::Foundation::ECP_LIST) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltFreeOpenReparseList(filter : PFLT_FILTER, ecplist : *const super::super::super::Foundation:: ECP_LIST)); - FltFreeOpenReparseList(filter.into_param().abi(), ecplist) + FltFreeOpenReparseList(filter.param().abi(), ecplist) } #[inline] pub unsafe fn FltFreePoolAlignedWithTag(instance: P0, buffer: *const core::ffi::c_void, tag: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltFreePoolAlignedWithTag(instance : PFLT_INSTANCE, buffer : *const core::ffi::c_void, tag : u32)); - FltFreePoolAlignedWithTag(instance.into_param().abi(), buffer, tag) + FltFreePoolAlignedWithTag(instance.param().abi(), buffer, tag) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FltFreeSecurityDescriptor(securitydescriptor: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltFreeSecurityDescriptor(securitydescriptor : super::super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR)); - FltFreeSecurityDescriptor(securitydescriptor.into_param().abi()) + FltFreeSecurityDescriptor(securitydescriptor.param().abi()) } #[cfg(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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltFsControlFile(instance.param().abi(), fileobject, fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -780,10 +780,10 @@ pub unsafe fn FltGetActivityIdCallbackData(callbackdata: *const FLT_CALLBACK_DAT #[inline] pub unsafe fn FltGetBottomInstance(volume: P0, instance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetBottomInstance(volume : PFLT_VOLUME, instance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetBottomInstance(volume.into_param().abi(), instance) + FltGetBottomInstance(volume.param().abi(), 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] @@ -801,48 +801,48 @@ pub unsafe fn FltGetContextsEx(fltobjects: *const FLT_RELATED_OBJECTS, desiredco #[inline] pub unsafe fn FltGetDestinationFileNameInformation(instance: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, rootdirectory: P1, filename: P2, filenamelength: u32, nameoptions: u32, retfilenameinformation: *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(instance.into_param().abi(), fileobject, rootdirectory.into_param().abi(), filename.into_param().abi(), filenamelength, nameoptions, retfilenameinformation) + FltGetDestinationFileNameInformation(instance.param().abi(), fileobject, rootdirectory.param().abi(), filename.param().abi(), filenamelength, nameoptions, 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: P0, deviceobject: *mut *mut super::super::super::Foundation::DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(volume.into_param().abi(), deviceobject) + FltGetDeviceObject(volume.param().abi(), 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: P0, diskdeviceobject: *mut *mut super::super::super::Foundation::DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(volume.into_param().abi(), diskdeviceobject) + FltGetDiskDeviceObject(volume.param().abi(), 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: P0, callbackdata: *const FLT_CALLBACK_DATA, ecplist: *mut *mut super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), callbackdata, ecplist) + FltGetEcpListFromCallbackData(filter.param().abi(), 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 FltGetFileContext(instance: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, context) + FltGetFileContext(instance.param().abi(), fileobject, 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] @@ -854,10 +854,10 @@ pub unsafe fn FltGetFileNameInformation(callbackdata: *const FLT_CALLBACK_DATA, #[inline] pub unsafe fn FltGetFileNameInformationUnsafe(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: P0, nameoptions: u32, filenameinformation: *mut *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(fileobject, instance.into_param().abi(), nameoptions, filenameinformation) + FltGetFileNameInformationUnsafe(fileobject, instance.param().abi(), nameoptions, filenameinformation) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] @@ -868,10 +868,10 @@ pub unsafe fn FltGetFileSystemType(fltobject: *const core::ffi::c_void, filesyst #[inline] pub unsafe fn FltGetFilterFromInstance(instance: P0, retfilter: *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetFilterFromInstance(instance : PFLT_INSTANCE, retfilter : *mut PFLT_FILTER) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetFilterFromInstance(instance.into_param().abi(), retfilter) + FltGetFilterFromInstance(instance.param().abi(), 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 { @@ -882,10 +882,10 @@ pub unsafe fn FltGetFilterFromName(filtername: *const super::super::super::super #[inline] pub unsafe fn FltGetFilterInformation(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) + FltGetFilterInformation(filter.param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, 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] @@ -896,19 +896,19 @@ pub unsafe fn FltGetFsZeroingOffset(data: *const FLT_CALLBACK_DATA, zeroingoffse #[inline] pub unsafe fn FltGetInstanceContext(instance: P0, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetInstanceContext(instance : PFLT_INSTANCE, context : *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetInstanceContext(instance.into_param().abi(), context) + FltGetInstanceContext(instance.param().abi(), context) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltGetInstanceInformation(instance: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) + FltGetInstanceInformation(instance.param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, 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] @@ -938,10 +938,10 @@ pub unsafe fn FltGetIoPriorityHintFromFileObject(fileobject: *const super::super #[inline] pub unsafe fn FltGetIoPriorityHintFromThread(thread: P0) -> super::super::super::Foundation::IO_PRIORITY_HINT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetIoPriorityHintFromThread(thread : super::super::super::Foundation:: PETHREAD) -> super::super::super::Foundation:: IO_PRIORITY_HINT); - FltGetIoPriorityHintFromThread(thread.into_param().abi()) + FltGetIoPriorityHintFromThread(thread.param().abi()) } #[inline] pub unsafe fn FltGetIrpName(irpmajorcode: u8) -> windows_core::PSTR { @@ -951,10 +951,10 @@ pub unsafe fn FltGetIrpName(irpmajorcode: u8) -> windows_core::PSTR { #[inline] pub unsafe fn FltGetLowerInstance(currentinstance: P0, lowerinstance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetLowerInstance(currentinstance : PFLT_INSTANCE, lowerinstance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetLowerInstance(currentinstance.into_param().abi(), lowerinstance) + FltGetLowerInstance(currentinstance.param().abi(), 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] @@ -966,10 +966,10 @@ pub unsafe fn FltGetNewSystemBufferAddress(callbackdata: *const FLT_CALLBACK_DAT #[inline] pub unsafe fn FltGetNextExtraCreateParameter(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), ecplist, core::mem::transmute(currentecpcontext.unwrap_or(std::ptr::null())), core::mem::transmute(nextecptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(nextecpcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(nextecpcontextsize.unwrap_or(std::ptr::null_mut()))) + FltGetNextExtraCreateParameter(filter.param().abi(), ecplist, core::mem::transmute(currentecpcontext.unwrap_or(std::ptr::null())), core::mem::transmute(nextecptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(nextecpcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(nextecpcontextsize.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -998,37 +998,37 @@ pub unsafe fn FltGetRequestorSessionId(callbackdata: *const FLT_CALLBACK_DATA, s #[inline] pub unsafe fn FltGetRoutineAddress(fltmgrroutinename: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetRoutineAddress(fltmgrroutinename : windows_core::PCSTR) -> *mut core::ffi::c_void); - FltGetRoutineAddress(fltmgrroutinename.into_param().abi()) + FltGetRoutineAddress(fltmgrroutinename.param().abi()) } #[cfg(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 FltGetSectionContext(instance: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, context) + FltGetSectionContext(instance.param().abi(), fileobject, 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, context) + FltGetStreamContext(instance.param().abi(), fileobject, 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, context) + FltGetStreamHandleContext(instance.param().abi(), fileobject, 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] @@ -1039,19 +1039,19 @@ pub unsafe fn FltGetSwappedBufferMdlAddress(callbackdata: *const FLT_CALLBACK_DA #[inline] pub unsafe fn FltGetTopInstance(volume: P0, instance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetTopInstance(volume : PFLT_VOLUME, instance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetTopInstance(volume.into_param().abi(), instance) + FltGetTopInstance(volume.param().abi(), instance) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltGetTransactionContext(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), transaction, context) + FltGetTransactionContext(instance.param().abi(), transaction, 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] @@ -1062,103 +1062,103 @@ pub unsafe fn FltGetTunneledName(callbackdata: *const FLT_CALLBACK_DATA, filenam #[inline] pub unsafe fn FltGetUpperInstance(currentinstance: P0, upperinstance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetUpperInstance(currentinstance : PFLT_INSTANCE, upperinstance : *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetUpperInstance(currentinstance.into_param().abi(), upperinstance) + FltGetUpperInstance(currentinstance.param().abi(), upperinstance) } #[inline] pub unsafe fn FltGetVolumeContext(filter: P0, volume: P1, context: *mut PFLT_CONTEXT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), volume.into_param().abi(), context) + FltGetVolumeContext(filter.param().abi(), volume.param().abi(), 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: P0, deviceobject: *const super::super::super::Foundation::DEVICE_OBJECT, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), deviceobject, retvolume) + FltGetVolumeFromDeviceObject(filter.param().abi(), deviceobject, 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), fileobject, retvolume) + FltGetVolumeFromFileObject(filter.param().abi(), fileobject, retvolume) } #[inline] pub unsafe fn FltGetVolumeFromInstance(instance: P0, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltGetVolumeFromInstance(instance : PFLT_INSTANCE, retvolume : *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltGetVolumeFromInstance(instance.into_param().abi(), retvolume) + FltGetVolumeFromInstance(instance.param().abi(), retvolume) } #[inline] pub unsafe fn FltGetVolumeFromName(filter: P0, volumename: *const super::super::super::super::Win32::Foundation::UNICODE_STRING, retvolume: *mut PFLT_VOLUME) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), volumename, retvolume) + FltGetVolumeFromName(filter.param().abi(), volumename, retvolume) } #[inline] pub unsafe fn FltGetVolumeGuidName(volume: P0, volumeguidname: Option<*mut super::super::super::super::Win32::Foundation::UNICODE_STRING>, buffersizeneeded: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(volume.into_param().abi(), core::mem::transmute(volumeguidname.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffersizeneeded.unwrap_or(std::ptr::null_mut()))) + FltGetVolumeGuidName(volume.param().abi(), core::mem::transmute(volumeguidname.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffersizeneeded.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_InstallableFileSystems")] #[inline] pub unsafe fn FltGetVolumeInformation(volume: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(volume.into_param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) + FltGetVolumeInformation(volume.param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, bytesreturned) } #[inline] pub unsafe fn FltGetVolumeInstanceFromName(filter: P0, volume: P1, instancename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, retinstance: *mut PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), volume.into_param().abi(), core::mem::transmute(instancename.unwrap_or(std::ptr::null())), retinstance) + FltGetVolumeInstanceFromName(filter.param().abi(), volume.param().abi(), core::mem::transmute(instancename.unwrap_or(std::ptr::null())), retinstance) } #[inline] pub unsafe fn FltGetVolumeName(volume: P0, volumename: Option<*mut super::super::super::super::Win32::Foundation::UNICODE_STRING>, buffersizeneeded: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(volume.into_param().abi(), core::mem::transmute(volumename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffersizeneeded.unwrap_or(std::ptr::null_mut()))) + FltGetVolumeName(volume.param().abi(), core::mem::transmute(volumename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffersizeneeded.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltGetVolumeProperties(volume: P0, volumeproperties: Option<*mut FLT_VOLUME_PROPERTIES>, volumepropertieslength: u32, lengthreturned: *mut u32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(volume.into_param().abi(), core::mem::transmute(volumeproperties.unwrap_or(std::ptr::null_mut())), volumepropertieslength, lengthreturned) + FltGetVolumeProperties(volume.param().abi(), core::mem::transmute(volumeproperties.unwrap_or(std::ptr::null_mut())), volumepropertieslength, lengthreturned) } #[inline] pub unsafe fn FltInitExtraCreateParameterLookasideList(filter: P0, lookaside: *mut core::ffi::c_void, flags: u32, size: usize, tag: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltInitExtraCreateParameterLookasideList(filter : PFLT_FILTER, lookaside : *mut core::ffi::c_void, flags : u32, size : usize, tag : u32)); - FltInitExtraCreateParameterLookasideList(filter.into_param().abi(), lookaside, flags, size, tag) + FltInitExtraCreateParameterLookasideList(filter.param().abi(), 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] @@ -1182,10 +1182,10 @@ pub unsafe fn FltInitializePushLock() -> usize { #[inline] pub unsafe fn FltInsertExtraCreateParameter(filter: P0, ecplist: *mut super::super::super::Foundation::ECP_LIST, ecpcontext: *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), ecplist, ecpcontext) + FltInsertExtraCreateParameter(filter.param().abi(), ecplist, 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] @@ -1203,26 +1203,26 @@ pub unsafe fn FltIsCallbackDataDirty(data: *const FLT_CALLBACK_DATA) -> super::s #[inline] pub unsafe fn FltIsDirectory(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: P0, isdirectory: *mut super::super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltIsDirectory(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE, isdirectory : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsDirectory(fileobject, instance.into_param().abi(), isdirectory) + FltIsDirectory(fileobject, instance.param().abi(), isdirectory) } #[inline] pub unsafe fn FltIsEcpAcknowledged(filter: P0, ecpcontext: *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpAcknowledged(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); - FltIsEcpAcknowledged(filter.into_param().abi(), ecpcontext) + FltIsEcpAcknowledged(filter.param().abi(), ecpcontext) } #[inline] pub unsafe fn FltIsEcpFromUserMode(filter: P0, ecpcontext: *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpFromUserMode(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); - FltIsEcpFromUserMode(filter.into_param().abi(), ecpcontext) + FltIsEcpFromUserMode(filter.param().abi(), 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] @@ -1239,20 +1239,20 @@ pub unsafe fn FltIsIoCanceled(callbackdata: *const FLT_CALLBACK_DATA) -> super:: #[inline] pub unsafe fn FltIsIoRedirectionAllowed(sourceinstance: P0, targetinstance: P1, redirectionallowed: *mut super::super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowed(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, redirectionallowed : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsIoRedirectionAllowed(sourceinstance.into_param().abi(), targetinstance.into_param().abi(), redirectionallowed) + FltIsIoRedirectionAllowed(sourceinstance.param().abi(), targetinstance.param().abi(), 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: P0, redirectionallowedthisio: *mut super::super::super::super::Win32::Foundation::BOOLEAN, redirectionallowedallio: Option<*mut super::super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowedForOperation(data : *const FLT_CALLBACK_DATA, targetinstance : PFLT_INSTANCE, redirectionallowedthisio : *mut super::super::super::super::Win32::Foundation:: BOOLEAN, redirectionallowedallio : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltIsIoRedirectionAllowedForOperation(data, targetinstance.into_param().abi(), redirectionallowedthisio, core::mem::transmute(redirectionallowedallio.unwrap_or(std::ptr::null_mut()))) + FltIsIoRedirectionAllowedForOperation(data, targetinstance.param().abi(), redirectionallowedthisio, core::mem::transmute(redirectionallowedallio.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1285,12 +1285,12 @@ pub unsafe fn FltLockUserBuffer(callbackdata: *const FLT_CALLBACK_DATA) -> super #[inline] pub unsafe fn FltNotifyFilterChangeDirectory(notifysync: P0, 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: P1, ignorebuffer: P2, completionfilter: u32, notifycallbackdata: *const FLT_CALLBACK_DATA, traversecallback: super::PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext: Option<*const super::super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, filtercallback: super::PFILTER_REPORT_CHANGE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::super::Win32::Foundation:: BOOLEAN, 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(notifysync.into_param().abi(), notifylist, fscontext, fulldirectoryname, watchtree.into_param().abi(), ignorebuffer.into_param().abi(), completionfilter, notifycallbackdata, traversecallback, core::mem::transmute(subjectcontext.unwrap_or(std::ptr::null())), filtercallback) + FltNotifyFilterChangeDirectory(notifysync.param().abi(), notifylist, fscontext, fulldirectoryname, watchtree.param().abi(), ignorebuffer.param().abi(), completionfilter, notifycallbackdata, traversecallback, core::mem::transmute(subjectcontext.unwrap_or(std::ptr::null())), filtercallback) } #[inline] pub unsafe fn FltObjectDereference(fltobject: *mut core::ffi::c_void) { @@ -1306,10 +1306,10 @@ pub unsafe fn FltObjectReference(fltobject: *mut core::ffi::c_void) -> super::su #[inline] pub unsafe fn FltOpenVolume(instance: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), volumehandle, core::mem::transmute(volumefileobject.unwrap_or(std::ptr::null_mut()))) + FltOpenVolume(instance.param().abi(), volumehandle, core::mem::transmute(volumefileobject.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1384,29 +1384,29 @@ pub unsafe fn FltPerformSynchronousIo(callbackdata: *mut FLT_CALLBACK_DATA) { #[inline] pub unsafe fn FltPrePrepareComplete(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: P1) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, transactioncontext.into_param().abi()) + FltPrePrepareComplete(instance.param().abi(), transaction, transactioncontext.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltPrepareComplete(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: P1) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, transactioncontext.into_param().abi()) + FltPrepareComplete(instance.param().abi(), transaction, transactioncontext.param().abi()) } #[inline] pub unsafe fn FltPrepareToReuseEcp(filter: P0, ecpcontext: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltPrepareToReuseEcp(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void)); - FltPrepareToReuseEcp(filter.into_param().abi(), ecpcontext) + FltPrepareToReuseEcp(filter.param().abi(), 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] @@ -1430,142 +1430,142 @@ pub unsafe fn FltPropagateIrpExtension(sourcedata: *const FLT_CALLBACK_DATA, tar #[inline] pub unsafe fn FltPurgeFileNameInformationCache(instance: P0, fileobject: Option<*const super::super::super::Foundation::FILE_OBJECT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), core::mem::transmute(fileobject.unwrap_or(std::ptr::null()))) + FltPurgeFileNameInformationCache(instance.param().abi(), core::mem::transmute(fileobject.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::FILE_INFORMATION_CLASS, returnsingleentry: P1, filename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: P2, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryDirectoryFile(instance.into_param().abi(), fileobject, fileinformation, length, fileinformationclass, returnsingleentry.into_param().abi(), core::mem::transmute(filename.unwrap_or(std::ptr::null())), restartscan.into_param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltQueryDirectoryFile(instance.param().abi(), fileobject, fileinformation, length, fileinformationclass, returnsingleentry.param().abi(), core::mem::transmute(filename.unwrap_or(std::ptr::null())), restartscan.param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, fileinformation, length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(std::ptr::null())), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltQueryDirectoryFileEx(instance.param().abi(), fileobject, fileinformation, length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(std::ptr::null())), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, returnedeadata: *mut core::ffi::c_void, length: u32, returnsingleentry: P1, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: P2, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryEaFile(instance.into_param().abi(), fileobject, returnedeadata, length, returnsingleentry.into_param().abi(), core::mem::transmute(ealist.unwrap_or(std::ptr::null())), ealistlength, core::mem::transmute(eaindex.unwrap_or(std::ptr::null())), restartscan.into_param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltQueryEaFile(instance.param().abi(), fileobject, returnedeadata, length, returnsingleentry.param().abi(), core::mem::transmute(ealist.unwrap_or(std::ptr::null())), ealistlength, core::mem::transmute(eaindex.unwrap_or(std::ptr::null())), restartscan.param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_IO"))] #[inline] pub unsafe fn FltQueryInformationByName(filter: P0, instance: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filter.into_param().abi(), instance.into_param().abi(), objectattributes, iostatusblock, fileinformation, length, fileinformationclass, core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) + FltQueryInformationByName(filter.param().abi(), instance.param().abi(), objectattributes, iostatusblock, fileinformation, length, fileinformationclass, core::mem::transmute(drivercontext.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, fileinformation, length, fileinformationclass, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltQueryInformationFile(instance.param().abi(), fileobject, fileinformation, length, fileinformationclass, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, 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: P1, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: Option<*const u32>, restartscan: P2, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : *const u32, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryQuotaInformationFile(instance.into_param().abi(), fileobject, iostatusblock, buffer, length, returnsingleentry.into_param().abi(), core::mem::transmute(sidlist.unwrap_or(std::ptr::null())), sidlistlength, core::mem::transmute(startsid.unwrap_or(std::ptr::null())), restartscan.into_param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltQueryQuotaInformationFile(instance.param().abi(), fileobject, iostatusblock, buffer, length, returnsingleentry.param().abi(), core::mem::transmute(sidlist.unwrap_or(std::ptr::null())), sidlistlength, core::mem::transmute(startsid.unwrap_or(std::ptr::null())), restartscan.param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, securityinformation: u32, securitydescriptor: super::super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, length: u32, lengthneeded: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, securityinformation, securitydescriptor, length, core::mem::transmute(lengthneeded.unwrap_or(std::ptr::null_mut()))) + FltQuerySecurityObject(instance.param().abi(), fileobject, securityinformation, securitydescriptor, length, core::mem::transmute(lengthneeded.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FltQueryVolumeInformation(instance: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), iosb, fsinformation, length, fsinformationclass) + FltQueryVolumeInformation(instance.param().abi(), iosb, 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, fsinformation, length, fsinformationclass, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FltQueryVolumeInformationFile(instance.param().abi(), fileobject, fsinformation, length, fsinformationclass, core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(fltworkitem.into_param().abi(), data, workerroutine, queuetype, context) + FltQueueDeferredIoWorkItem(fltworkitem.param().abi(), data, workerroutine, queuetype, context) } #[cfg(feature = "Wdk_System_SystemServices")] #[inline] pub unsafe fn FltQueueGenericWorkItem(fltworkitem: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(fltworkitem.into_param().abi(), fltobject, workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) + FltQueueGenericWorkItem(fltworkitem.param().abi(), fltobject, workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, 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: PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(initiatinginstance.into_param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, buffer, flags, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + FltReadFile(initiatinginstance.param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, buffer, flags, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, 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: PFLT_COMPLETED_ASYNC_IO_CALLBACK, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(initiatinginstance.into_param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), flags, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null())), core::mem::transmute(mdl.unwrap_or(std::ptr::null()))) + FltReadFileEx(initiatinginstance.param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), flags, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null())), core::mem::transmute(mdl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FltReferenceContext(context: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltReferenceContext(context : PFLT_CONTEXT)); - FltReferenceContext(context.into_param().abi()) + FltReferenceContext(context.param().abi()) } #[inline] pub unsafe fn FltReferenceFileNameInformation(filenameinformation: *const FLT_FILE_NAME_INFORMATION) { @@ -1581,27 +1581,27 @@ pub unsafe fn FltRegisterFilter(driver: *const super::super::super::Foundation:: #[inline] pub unsafe fn FltRegisterForDataScan(instance: P0) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltRegisterForDataScan(instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRegisterForDataScan(instance.into_param().abi()) + FltRegisterForDataScan(instance.param().abi()) } #[cfg(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: P0, callbackdata: *const FLT_CALLBACK_DATA) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltReissueSynchronousIo(initiatinginstance : PFLT_INSTANCE, callbackdata : *const FLT_CALLBACK_DATA)); - FltReissueSynchronousIo(initiatinginstance.into_param().abi(), callbackdata) + FltReissueSynchronousIo(initiatinginstance.param().abi(), callbackdata) } #[inline] pub unsafe fn FltReleaseContext(context: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltReleaseContext(context : PFLT_CONTEXT)); - FltReleaseContext(context.into_param().abi()) + FltReleaseContext(context.param().abi()) } #[inline] pub unsafe fn FltReleaseContexts(contexts: *const FLT_RELATED_CONTEXTS) { @@ -1638,28 +1638,28 @@ pub unsafe fn FltReleaseResource(resource: *mut super::super::super::Foundation: #[inline] pub unsafe fn FltRemoveExtraCreateParameter(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), ecplist, ecptype, ecpcontext, core::mem::transmute(ecpcontextsize.unwrap_or(std::ptr::null_mut()))) + FltRemoveExtraCreateParameter(filter.param().abi(), ecplist, ecptype, ecpcontext, core::mem::transmute(ecpcontextsize.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, data: *const FLT_CALLBACK_DATA, openreparseentry: *const super::OPEN_REPARSE_LIST_ENTRY) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltRemoveOpenReparseEntry(filter : PFLT_FILTER, data : *const FLT_CALLBACK_DATA, openreparseentry : *const super:: OPEN_REPARSE_LIST_ENTRY)); - FltRemoveOpenReparseEntry(filter.into_param().abi(), data, openreparseentry) + FltRemoveOpenReparseEntry(filter.param().abi(), 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: P0, data: *const FLT_CALLBACK_DATA, infoclassflags: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), data, infoclassflags) + FltRequestFileInfoOnCreateCompletion(filter.param().abi(), 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] @@ -1677,28 +1677,28 @@ pub unsafe fn FltRetainSwappedBufferMdlAddress(callbackdata: *const FLT_CALLBACK #[inline] pub unsafe fn FltRetrieveFileInfoOnCreateCompletion(filter: P0, data: *const FLT_CALLBACK_DATA, infoclass: u32, size: *mut u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), data, infoclass, size) + FltRetrieveFileInfoOnCreateCompletion(filter.param().abi(), data, infoclass, 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: P0, data: *const FLT_CALLBACK_DATA, infoclass: u32, retinfosize: *mut u32, retinfobuffer: *mut *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), data, infoclass, retinfosize, retinfobuffer) + FltRetrieveFileInfoOnCreateCompletionEx(filter.param().abi(), data, infoclass, retinfosize, 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] pub unsafe fn FltRetrieveIoPriorityInfo(data: Option<*const FLT_CALLBACK_DATA>, fileobject: Option<*const super::super::super::Foundation::FILE_OBJECT>, thread: P0, priorityinfo: *mut super::IO_PRIORITY_INFO) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltRetrieveIoPriorityInfo(data : *const FLT_CALLBACK_DATA, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, thread : super::super::super::Foundation:: PETHREAD, priorityinfo : *mut super:: IO_PRIORITY_INFO) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltRetrieveIoPriorityInfo(core::mem::transmute(data.unwrap_or(std::ptr::null())), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), thread.into_param().abi(), priorityinfo) + FltRetrieveIoPriorityInfo(core::mem::transmute(data.unwrap_or(std::ptr::null())), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), thread.param().abi(), priorityinfo) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1710,29 +1710,29 @@ pub unsafe fn FltReuseCallbackData(callbackdata: *mut FLT_CALLBACK_DATA) { #[inline] pub unsafe fn FltRollbackComplete(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: P1) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, transactioncontext.into_param().abi()) + FltRollbackComplete(instance.param().abi(), transaction, transactioncontext.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltRollbackEnlistment(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, transactioncontext: P1) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, transactioncontext.into_param().abi()) + FltRollbackEnlistment(instance.param().abi(), transaction, transactioncontext.param().abi()) } #[inline] pub unsafe fn FltSendMessage(filter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), clientport, senderbuffer, senderbufferlength, core::mem::transmute(replybuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(replylength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(timeout.unwrap_or(std::ptr::null()))) + FltSendMessage(filter.param().abi(), clientport, senderbuffer, senderbufferlength, core::mem::transmute(replybuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(replylength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(timeout.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1756,29 +1756,29 @@ pub unsafe fn FltSetCancelCompletion(callbackdata: *const FLT_CALLBACK_DATA, can #[inline] pub unsafe fn FltSetEaFile(instance: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, eabuffer: *const core::ffi::c_void, length: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, eabuffer, length) + FltSetEaFile(instance.param().abi(), 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: P0, callbackdata: *const FLT_CALLBACK_DATA, ecplist: *const super::super::super::Foundation::ECP_LIST) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filter.into_param().abi(), callbackdata, ecplist) + FltSetEcpListIntoCallbackData(filter.param().abi(), 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, operation: FLT_SET_CONTEXT_OPERATION, newcontext: P1, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), fileobject, operation, newcontext.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltSetFileContext(instance.param().abi(), fileobject, operation, newcontext.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1796,19 +1796,19 @@ pub unsafe fn FltSetFsZeroingOffsetRequired(data: *const FLT_CALLBACK_DATA) -> s #[inline] pub unsafe fn FltSetInformationFile(instance: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, fileinformation, length, fileinformationclass) + FltSetInformationFile(instance.param().abi(), fileobject, fileinformation, length, fileinformationclass) } #[inline] pub unsafe fn FltSetInstanceContext(instance: P0, operation: FLT_SET_CONTEXT_OPERATION, newcontext: P1, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), operation, newcontext.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltSetInstanceContext(instance.param().abi(), operation, newcontext.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1826,85 +1826,85 @@ pub unsafe fn FltSetIoPriorityHintIntoFileObject(fileobject: *const super::super #[inline] pub unsafe fn FltSetIoPriorityHintIntoThread(thread: P0, priorityhint: super::super::super::Foundation::IO_PRIORITY_HINT) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(thread.into_param().abi(), priorityhint) + FltSetIoPriorityHintIntoThread(thread.param().abi(), 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, buffer: *const core::ffi::c_void, length: u32) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), fileobject, buffer, length) + FltSetQuotaInformationFile(instance.param().abi(), 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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, securityinformation: u32, securitydescriptor: P1) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), fileobject, securityinformation, securitydescriptor.into_param().abi()) + FltSetSecurityObject(instance.param().abi(), fileobject, securityinformation, securitydescriptor.param().abi()) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, operation: FLT_SET_CONTEXT_OPERATION, newcontext: P1, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), fileobject, operation, newcontext.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltSetStreamContext(instance.param().abi(), fileobject, operation, newcontext.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, operation: FLT_SET_CONTEXT_OPERATION, newcontext: P1, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), fileobject, operation, newcontext.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltSetStreamHandleContext(instance.param().abi(), fileobject, operation, newcontext.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn FltSetTransactionContext(instance: P0, transaction: *const super::super::super::Foundation::KTRANSACTION, operation: FLT_SET_CONTEXT_OPERATION, newcontext: P1, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(instance.into_param().abi(), transaction, operation, newcontext.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltSetTransactionContext(instance.param().abi(), transaction, operation, newcontext.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FltSetVolumeContext(volume: P0, operation: FLT_SET_CONTEXT_OPERATION, newcontext: P1, oldcontext: Option<*mut PFLT_CONTEXT>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(volume.into_param().abi(), operation, newcontext.into_param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) + FltSetVolumeContext(volume.param().abi(), operation, newcontext.param().abi(), core::mem::transmute(oldcontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FltSetVolumeInformation(instance: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance.into_param().abi(), iosb, fsinformation, length, fsinformationclass) + FltSetVolumeInformation(instance.param().abi(), iosb, fsinformation, length, fsinformationclass) } #[inline] pub unsafe fn FltStartFiltering(filter: P0) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltStartFiltering(filter : PFLT_FILTER) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltStartFiltering(filter.into_param().abi()) + FltStartFiltering(filter.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1916,10 +1916,10 @@ pub unsafe fn FltSupportsFileContexts(fileobject: *const super::super::super::Fo #[inline] pub unsafe fn FltSupportsFileContextsEx(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: P0) -> super::super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContextsEx(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: BOOLEAN); - FltSupportsFileContextsEx(fileobject, instance.into_param().abi()) + FltSupportsFileContextsEx(fileobject, instance.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1937,19 +1937,19 @@ pub unsafe fn FltSupportsStreamHandleContexts(fileobject: *const super::super::s #[inline] pub unsafe fn FltTagFile(initiatinginstance: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(initiatinginstance.into_param().abi(), fileobject, filetag, core::mem::transmute(guid.unwrap_or(std::ptr::null())), databuffer, databufferlength) + FltTagFile(initiatinginstance.param().abi(), fileobject, filetag, core::mem::transmute(guid.unwrap_or(std::ptr::null())), 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(initiatinginstance.into_param().abi(), fileobject, filetag, core::mem::transmute(guid.unwrap_or(std::ptr::null())), databuffer, databufferlength, existingfiletag, core::mem::transmute(existingguid.unwrap_or(std::ptr::null())), flags) + FltTagFileEx(initiatinginstance.param().abi(), fileobject, filetag, core::mem::transmute(guid.unwrap_or(std::ptr::null())), databuffer, databufferlength, existingfiletag, core::mem::transmute(existingguid.unwrap_or(std::ptr::null())), 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] @@ -1970,46 +1970,46 @@ pub unsafe fn FltUnloadFilter(filtername: *const super::super::super::super::Win #[inline] pub unsafe fn FltUnregisterFilter(filter: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltmgr.sys" "system" fn FltUnregisterFilter(filter : PFLT_FILTER)); - FltUnregisterFilter(filter.into_param().abi()) + FltUnregisterFilter(filter.param().abi()) } #[cfg(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: P0, fileobject: *const super::super::super::Foundation::FILE_OBJECT, filetag: u32, guid: Option<*const windows_core::GUID>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(initiatinginstance.into_param().abi(), fileobject, filetag, core::mem::transmute(guid.unwrap_or(std::ptr::null()))) + FltUntagFile(initiatinginstance.param().abi(), fileobject, filetag, core::mem::transmute(guid.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, failurereason: *const super::super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(callbackdata, fltobjects, operationstatus.into_param().abi(), failurereason) + FltVetoBypassIo(callbackdata, fltobjects, operationstatus.param().abi(), 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: P0, 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: PFLT_COMPLETED_ASYNC_IO_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(initiatinginstance.into_param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, buffer, flags, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + FltWriteFile(initiatinginstance.param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, buffer, flags, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, 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: PFLT_COMPLETED_ASYNC_IO_CALLBACK, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(initiatinginstance.into_param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, core::mem::transmute(buffer.unwrap_or(std::ptr::null())), flags, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null())), core::mem::transmute(mdl.unwrap_or(std::ptr::null()))) + FltWriteFileEx(initiatinginstance.param().abi(), fileobject, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), length, core::mem::transmute(buffer.unwrap_or(std::ptr::null())), flags, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut())), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null())), core::mem::transmute(mdl.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] 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 b587d2a664..8f51b86235 100644 --- a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs @@ -9,20 +9,20 @@ pub unsafe fn ApplyControlToken(phcontext: *const SecHandle, pinput: *const SecB #[inline] pub unsafe fn CcAsyncCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: P0, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: P1, asyncreadcontext: *const CC_ASYNC_READ_CONTEXT) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcAsyncCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcAsyncCopyRead(fileobject, fileoffset, length, wait.into_param().abi(), buffer, iostatus, ioissuerthread.into_param().abi(), asyncreadcontext) + CcAsyncCopyRead(fileobject, fileoffset, length, wait.param().abi(), buffer, iostatus, ioissuerthread.param().abi(), 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: P0, retrying: u8) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcCanIWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, bytestowrite : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, retrying : u8) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCanIWrite(core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), bytestowrite, wait.into_param().abi(), retrying) + CcCanIWrite(core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), bytestowrite, wait.param().abi(), retrying) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] @@ -34,39 +34,39 @@ pub unsafe fn CcCoherencyFlushAndPurgeCache(sectionobjectpointer: *const super:: #[inline] pub unsafe fn CcCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: P0, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyRead(fileobject, fileoffset, length, wait.into_param().abi(), buffer, iostatus) + CcCopyRead(fileobject, fileoffset, length, wait.param().abi(), buffer, 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: P0, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyReadEx(fileobject, fileoffset, length, wait.into_param().abi(), buffer, iostatus, ioissuerthread.into_param().abi()) + CcCopyReadEx(fileobject, fileoffset, length, wait.param().abi(), buffer, iostatus, ioissuerthread.param().abi()) } #[cfg(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: P0, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyWrite(fileobject, fileoffset, length, wait.into_param().abi(), buffer) + CcCopyWrite(fileobject, fileoffset, length, wait.param().abi(), 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: P0, buffer: *const core::ffi::c_void, ioissuerthread: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *const core::ffi::c_void, ioissuerthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyWriteEx(fileobject, fileoffset, length, wait.into_param().abi(), buffer, ioissuerthread.into_param().abi()) + CcCopyWriteEx(fileobject, fileoffset, length, wait.param().abi(), buffer, ioissuerthread.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -78,10 +78,10 @@ pub unsafe fn CcCopyWriteWontFlush(fileobject: *const super::super::Foundation:: #[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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN)); - CcDeferWrite(fileobject, postroutine, context1, context2, bytestowrite, retrying.into_param().abi()) + CcDeferWrite(fileobject, postroutine, context1, context2, bytestowrite, retrying.param().abi()) } #[inline] pub unsafe fn CcErrorCallbackRoutine(context: *const CC_ERROR_CALLBACK_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -134,36 +134,36 @@ pub unsafe fn CcGetFileObjectFromSectionPtrsRef(sectionobjectpointer: *const sup #[inline] pub unsafe fn CcGetFlushedValidData(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, bcblistheld: P0) -> i64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFlushedValidData(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, bcblistheld : super::super::super::Win32::Foundation:: BOOLEAN) -> i64); - CcGetFlushedValidData(sectionobjectpointer, bcblistheld.into_param().abi()) + CcGetFlushedValidData(sectionobjectpointer, bcblistheld.param().abi()) } #[cfg(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: P0, callbacks: *const CACHE_MANAGER_CALLBACKS, lazywritecontext: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : super::super::super::Win32::Foundation:: BOOLEAN, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void)); - CcInitializeCacheMap(fileobject, filesizes, pinaccess.into_param().abi(), callbacks, lazywritecontext) + CcInitializeCacheMap(fileobject, filesizes, pinaccess.param().abi(), 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: P0, callbacks: *const CACHE_MANAGER_CALLBACKS, lazywritecontext: *const core::ffi::c_void, flags: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMapEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : super::super::super::Win32::Foundation:: BOOLEAN, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void, flags : u32)); - CcInitializeCacheMapEx(fileobject, filesizes, pinaccess.into_param().abi(), callbacks, lazywritecontext, flags) + CcInitializeCacheMapEx(fileobject, filesizes, pinaccess.param().abi(), callbacks, lazywritecontext, flags) } #[inline] pub unsafe fn CcIsCacheManagerCallbackNeeded(status: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcIsCacheManagerCallbackNeeded(status : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcIsCacheManagerCallbackNeeded(status.into_param().abi()) + CcIsCacheManagerCallbackNeeded(status.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -229,10 +229,10 @@ pub unsafe fn CcPrepareMdlWrite(fileobject: *const super::super::Foundation::FIL #[inline] pub unsafe fn CcPreparePinWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, zero: P0, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcPreparePinWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, zero : super::super::super::Win32::Foundation:: BOOLEAN, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcPreparePinWrite(fileobject, fileoffset, length, zero.into_param().abi(), flags, bcb, buffer) + CcPreparePinWrite(fileobject, fileoffset, length, zero.param().abi(), flags, bcb, buffer) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -260,20 +260,20 @@ pub unsafe fn CcScheduleReadAhead(fileobject: *const super::super::Foundation::F #[inline] pub unsafe fn CcScheduleReadAheadEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, ioissuerthread: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(fileobject, fileoffset, length, ioissuerthread.into_param().abi()) + CcScheduleReadAheadEx(fileobject, fileoffset, length, ioissuerthread.param().abi()) } #[cfg(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: P0, disablewritebehind: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributes(fileobject : *const super::super::Foundation:: FILE_OBJECT, disablereadahead : super::super::super::Win32::Foundation:: BOOLEAN, disablewritebehind : super::super::super::Win32::Foundation:: BOOLEAN)); - CcSetAdditionalCacheAttributes(fileobject, disablereadahead.into_param().abi(), disablewritebehind.into_param().abi()) + CcSetAdditionalCacheAttributes(fileobject, disablereadahead.param().abi(), disablewritebehind.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -319,10 +319,10 @@ pub unsafe fn CcSetLogHandleForFile(fileobject: *const super::super::Foundation: #[inline] pub unsafe fn CcSetParallelFlushFile(fileobject: *const super::super::Foundation::FILE_OBJECT, enableparallelflush: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcSetParallelFlushFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, enableparallelflush : super::super::super::Win32::Foundation:: BOOLEAN)); - CcSetParallelFlushFile(fileobject, enableparallelflush.into_param().abi()) + CcSetParallelFlushFile(fileobject, enableparallelflush.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -350,11 +350,11 @@ pub unsafe fn CcUnpinDataForThread(bcb: *const core::ffi::c_void, resourcethread #[inline] pub unsafe fn CcUnpinRepinnedBcb(bcb: *const core::ffi::c_void, writethrough: P0) -> super::super::super::Win32::System::IO::IO_STATUS_BLOCK where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinRepinnedBcb(bcb : *const core::ffi::c_void, writethrough : super::super::super::Win32::Foundation:: BOOLEAN, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); let mut result__ = std::mem::zeroed(); - CcUnpinRepinnedBcb(bcb, writethrough.into_param().abi(), &mut result__); + CcUnpinRepinnedBcb(bcb, writethrough.param().abi(), &mut result__); result__ } #[inline] @@ -366,10 +366,10 @@ 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: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn CcZeroData(fileobject : *const super::super::Foundation:: FILE_OBJECT, startoffset : *const i64, endoffset : *const i64, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcZeroData(fileobject, startoffset, endoffset, wait.into_param().abi()) + CcZeroData(fileobject, startoffset, endoffset, wait.param().abi()) } #[inline] pub unsafe fn CompleteAuthToken(phcontext: *const SecHandle, ptoken: *const SecBufferDesc) -> windows_core::Result<()> { @@ -429,10 +429,10 @@ pub unsafe fn FsRtlAddMcbEntry(mcb: *mut MCB, vbn: u32, lbn: u32, sectorcount: u #[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: P0, datalength: u32, data: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, datalength : u32, data : *const core::ffi::c_void)); - FsRtlAddToTunnelCache(cache, directorykey, shortname, longname, keybyshortname.into_param().abi(), datalength, data) + FsRtlAddToTunnelCache(cache, directorykey, shortname, longname, keybyshortname.param().abi(), datalength, data) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -477,10 +477,10 @@ 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: P0, upcasetable: Option<*const u16>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : *const u16) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlAreNamesEqual(constantnamea, constantnameb, ignorecase.into_param().abi(), core::mem::transmute(upcasetable.unwrap_or(std::ptr::null()))) + FsRtlAreNamesEqual(constantnamea, constantnameb, ignorecase.param().abi(), core::mem::transmute(upcasetable.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -569,19 +569,19 @@ pub unsafe fn FsRtlCheckUpperOplock(oplock: *const *const core::ffi::c_void, new #[inline] pub unsafe fn FsRtlCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: P0, 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) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlCopyRead(fileobject, fileoffset, length, wait.into_param().abi(), lockkey, buffer, iostatus, deviceobject) + FsRtlCopyRead(fileobject, fileoffset, length, wait.param().abi(), lockkey, buffer, 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: P0, 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) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlCopyWrite(fileobject, fileoffset, length, wait.into_param().abi(), lockkey, buffer, iostatus, deviceobject) + FsRtlCopyWrite(fileobject, fileoffset, length, wait.param().abi(), lockkey, buffer, 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] @@ -624,19 +624,19 @@ pub unsafe fn FsRtlDeleteTunnelCache(cache: *mut TUNNEL) { #[inline] pub unsafe fn FsRtlDeregisterUncProvider(handle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDeregisterUncProvider(handle : super::super::super::Win32::Foundation:: HANDLE)); - FsRtlDeregisterUncProvider(handle.into_param().abi()) + FsRtlDeregisterUncProvider(handle.param().abi()) } #[cfg(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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDismountComplete(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, dismountstatus : super::super::super::Win32::Foundation:: NTSTATUS)); - FsRtlDismountComplete(deviceobject, dismountstatus.into_param().abi()) + FsRtlDismountComplete(deviceobject, dismountstatus.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -676,29 +676,29 @@ pub unsafe fn FsRtlFastCheckLockForWrite(filelock: *const FILE_LOCK, startingbyt #[inline] pub unsafe fn FsRtlFastUnlockAll(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, processid: P0, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filelock, fileobject, processid.into_param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))) + FsRtlFastUnlockAll(filelock, fileobject, processid.param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, key: u32, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filelock, fileobject, processid.into_param().abi(), key, core::mem::transmute(context.unwrap_or(std::ptr::null()))) + FsRtlFastUnlockAllByKey(filelock, fileobject, processid.param().abi(), key, core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, key: u32, context: Option<*const core::ffi::c_void>, alreadysynchronized: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlFastUnlockSingle(filelock, fileobject, fileoffset, length, processid.into_param().abi(), key, core::mem::transmute(context.unwrap_or(std::ptr::null())), alreadysynchronized.into_param().abi()) + FsRtlFastUnlockSingle(filelock, fileobject, fileoffset, length, processid.param().abi(), key, core::mem::transmute(context.unwrap_or(std::ptr::null())), alreadysynchronized.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -773,10 +773,10 @@ pub unsafe fn FsRtlGetNextExtraCreateParameter(ecplist: *const super::super::Fou #[inline] pub unsafe fn FsRtlGetNextFileLock(filelock: *const FILE_LOCK, restart: P0) -> *mut FILE_LOCK_INFO where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextFileLock(filelock : *const FILE_LOCK, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut FILE_LOCK_INFO); - FsRtlGetNextFileLock(filelock, restart.into_param().abi()) + FsRtlGetNextFileLock(filelock, restart.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -919,10 +919,10 @@ pub unsafe fn FsRtlInsertPerStreamContext(perstreamcontext: *const FSRTL_ADVANCE #[inline] pub unsafe fn FsRtlIs32BitProcess(process: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIs32BitProcess(process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIs32BitProcess(process.into_param().abi()) + FsRtlIs32BitProcess(process.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -955,23 +955,23 @@ pub unsafe fn FsRtlIsExtentDangling(startpage: u32, numberofpages: u32, flags: u #[inline] pub unsafe fn FsRtlIsFatDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: P0, pathnamepermissible: P1, leadingbackslashpermissible: P2) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsFatDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : super::super::super::Win32::Foundation:: BOOLEAN, pathnamepermissible : super::super::super::Win32::Foundation:: BOOLEAN, leadingbackslashpermissible : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsFatDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible.into_param().abi(), pathnamepermissible.into_param().abi(), leadingbackslashpermissible.into_param().abi()) + FsRtlIsFatDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible.param().abi(), pathnamepermissible.param().abi(), leadingbackslashpermissible.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn FsRtlIsHpfsDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: P0, pathnamepermissible: P1, leadingbackslashpermissible: P2) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsHpfsDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : super::super::super::Win32::Foundation:: BOOLEAN, pathnamepermissible : super::super::super::Win32::Foundation:: BOOLEAN, leadingbackslashpermissible : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsHpfsDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible.into_param().abi(), pathnamepermissible.into_param().abi(), leadingbackslashpermissible.into_param().abi()) + FsRtlIsHpfsDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible.param().abi(), pathnamepermissible.param().abi(), leadingbackslashpermissible.param().abi()) } #[inline] pub unsafe fn FsRtlIsMobileOS() -> super::super::super::Win32::Foundation::BOOLEAN { @@ -981,20 +981,20 @@ pub unsafe fn FsRtlIsMobileOS() -> super::super::super::Win32::Foundation::BOOLE #[inline] pub unsafe fn FsRtlIsNameInExpression(expression: *const super::super::super::Win32::Foundation::UNICODE_STRING, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: P0, upcasetable: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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 : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsNameInExpression(expression, name, ignorecase.into_param().abi(), upcasetable.into_param().abi()) + FsRtlIsNameInExpression(expression, name, ignorecase.param().abi(), 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: P0, upcasetable: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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 : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsNameInUnUpcasedExpression(expression, name, ignorecase.into_param().abi(), upcasetable.into_param().abi()) + FsRtlIsNameInUnUpcasedExpression(expression, name, ignorecase.param().abi(), upcasetable.param().abi()) } #[inline] pub unsafe fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -1004,10 +1004,10 @@ pub unsafe fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> su #[inline] pub unsafe fn FsRtlIsNtstatusExpected(exception: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNtstatusExpected(exception : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsNtstatusExpected(exception.into_param().abi()) + FsRtlIsNtstatusExpected(exception.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1037,10 +1037,10 @@ pub unsafe fn FsRtlKernelFsControlFile(fileobject: *const super::super::Foundati #[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: P0, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filename, deviceobject, sectionobjectpointer, flusherror.into_param().abi(), flags) + FsRtlLogCcFlushError(filename, deviceobject, sectionobjectpointer, flusherror.param().abi(), 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>) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -1143,69 +1143,69 @@ pub unsafe fn FsRtlMupGetProviderInfoFromFileObject(pfileobject: *const super::s #[inline] pub unsafe fn FsRtlNormalizeNtstatus(exception: P0, genericexception: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(exception.into_param().abi(), genericexception.into_param().abi()) + FsRtlNormalizeNtstatus(exception.param().abi(), genericexception.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyCleanup(notifysync: P0, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(notifysync.into_param().abi(), notifylist, fscontext) + FsRtlNotifyCleanup(notifysync.param().abi(), notifylist, fscontext) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyCleanupAll(notifysync: P0, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(notifysync.into_param().abi(), notifylist) + FsRtlNotifyCleanupAll(notifysync.param().abi(), 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: P0, 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: P1, ignorebuffer: P2, completionfilter: u32, notifyirp: Option<*const super::super::Foundation::IRP>, traversecallback: PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, filtercallback: PFILTER_REPORT_CHANGE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::Win32::Foundation:: BOOLEAN, 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(notifysync.into_param().abi(), notifylist, fscontext, fulldirectoryname, watchtree.into_param().abi(), ignorebuffer.into_param().abi(), completionfilter, core::mem::transmute(notifyirp.unwrap_or(std::ptr::null())), traversecallback, core::mem::transmute(subjectcontext.unwrap_or(std::ptr::null())), filtercallback) + FsRtlNotifyFilterChangeDirectory(notifysync.param().abi(), notifylist, fscontext, fulldirectoryname, watchtree.param().abi(), ignorebuffer.param().abi(), completionfilter, core::mem::transmute(notifyirp.unwrap_or(std::ptr::null())), traversecallback, core::mem::transmute(subjectcontext.unwrap_or(std::ptr::null())), filtercallback) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyFilterReportChange(notifysync: P0, 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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(notifysync.into_param().abi(), notifylist, fulltargetname, targetnameoffset, core::mem::transmute(streamname.unwrap_or(std::ptr::null())), core::mem::transmute(normalizedparentname.unwrap_or(std::ptr::null())), filtermatch, action, core::mem::transmute(targetcontext.unwrap_or(std::ptr::null())), core::mem::transmute(filtercontext.unwrap_or(std::ptr::null()))) + FsRtlNotifyFilterReportChange(notifysync.param().abi(), notifylist, fulltargetname, targetnameoffset, core::mem::transmute(streamname.unwrap_or(std::ptr::null())), core::mem::transmute(normalizedparentname.unwrap_or(std::ptr::null())), filtermatch, action, core::mem::transmute(targetcontext.unwrap_or(std::ptr::null())), core::mem::transmute(filtercontext.unwrap_or(std::ptr::null()))) } #[cfg(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: P0, 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: P1, ignorebuffer: P2, completionfilter: u32, notifyirp: Option<*const super::super::Foundation::IRP>, traversecallback: PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::Win32::Foundation:: BOOLEAN, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); - FsRtlNotifyFullChangeDirectory(notifysync.into_param().abi(), notifylist, fscontext, fulldirectoryname, watchtree.into_param().abi(), ignorebuffer.into_param().abi(), completionfilter, core::mem::transmute(notifyirp.unwrap_or(std::ptr::null())), traversecallback, core::mem::transmute(subjectcontext.unwrap_or(std::ptr::null()))) + FsRtlNotifyFullChangeDirectory(notifysync.param().abi(), notifylist, fscontext, fulldirectoryname, watchtree.param().abi(), ignorebuffer.param().abi(), completionfilter, core::mem::transmute(notifyirp.unwrap_or(std::ptr::null())), traversecallback, core::mem::transmute(subjectcontext.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlNotifyFullReportChange(notifysync: P0, 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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(notifysync.into_param().abi(), notifylist, fulltargetname, targetnameoffset, core::mem::transmute(streamname.unwrap_or(std::ptr::null())), core::mem::transmute(normalizedparentname.unwrap_or(std::ptr::null())), filtermatch, action, core::mem::transmute(targetcontext.unwrap_or(std::ptr::null()))) + FsRtlNotifyFullReportChange(notifysync.param().abi(), notifylist, fulltargetname, targetnameoffset, core::mem::transmute(streamname.unwrap_or(std::ptr::null())), core::mem::transmute(normalizedparentname.unwrap_or(std::ptr::null())), filtermatch, action, core::mem::transmute(targetcontext.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1342,13 +1342,13 @@ pub unsafe fn FsRtlPrepareToReuseEcp(ecpcontext: *const core::ffi::c_void) { #[inline] pub unsafe fn FsRtlPrivateLock(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: *const i64, processid: P0, key: u32, failimmediately: P1, exclusivelock: P2, 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: P3) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN, iosb : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, alreadysynchronized : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlPrivateLock(filelock, fileobject, fileoffset, length, processid.into_param().abi(), key, failimmediately.into_param().abi(), exclusivelock.into_param().abi(), iosb, core::mem::transmute(irp.unwrap_or(std::ptr::null())), core::mem::transmute(context.unwrap_or(std::ptr::null())), alreadysynchronized.into_param().abi()) + FsRtlPrivateLock(filelock, fileobject, fileoffset, length, processid.param().abi(), key, failimmediately.param().abi(), exclusivelock.param().abi(), iosb, core::mem::transmute(irp.unwrap_or(std::ptr::null())), core::mem::transmute(context.unwrap_or(std::ptr::null())), alreadysynchronized.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1372,11 +1372,11 @@ pub unsafe fn FsRtlQueryInformationFile(fileobject: *const super::super::Foundat #[inline] pub unsafe fn FsRtlQueryKernelEaFile(fileobject: *const super::super::Foundation::FILE_OBJECT, returnedeadata: *mut core::ffi::c_void, length: u32, returnsingleentry: P0, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: P1, lengthreturned: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlQueryKernelEaFile(fileobject, returnedeadata, length, returnsingleentry.into_param().abi(), core::mem::transmute(ealist.unwrap_or(std::ptr::null())), ealistlength, core::mem::transmute(eaindex.unwrap_or(std::ptr::null())), restartscan.into_param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) + FsRtlQueryKernelEaFile(fileobject, returnedeadata, length, returnsingleentry.param().abi(), core::mem::transmute(ealist.unwrap_or(std::ptr::null())), ealistlength, core::mem::transmute(eaindex.unwrap_or(std::ptr::null())), restartscan.param().abi(), core::mem::transmute(lengthreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FsRtlQueryMaximumVirtualDiskNestingLevel() -> u32 { @@ -1392,10 +1392,10 @@ pub unsafe fn FsRtlRegisterFileSystemFilterCallbacks(filterdriverobject: *const #[inline] pub unsafe fn FsRtlRegisterUncProvider(muphandle: *mut super::super::super::Win32::Foundation::HANDLE, redirectordevicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, mailslotssupported: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRegisterUncProvider(muphandle, redirectordevicename, mailslotssupported.into_param().abi()) + FsRtlRegisterUncProvider(muphandle, redirectordevicename, mailslotssupported.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1472,10 +1472,10 @@ pub unsafe fn FsRtlResetBaseMcb() -> BASE_MCB { #[inline] pub unsafe fn FsRtlResetLargeMcb(mcb: *mut LARGE_MCB, selfsynchronized: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlResetLargeMcb(mcb : *mut LARGE_MCB, selfsynchronized : super::super::super::Win32::Foundation:: BOOLEAN)); - FsRtlResetLargeMcb(mcb, selfsynchronized.into_param().abi()) + FsRtlResetLargeMcb(mcb, selfsynchronized.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1601,10 +1601,10 @@ pub unsafe fn IoAcquireVpbSpinLock() -> u8 { #[inline] pub unsafe fn IoApplyPriorityInfoThread(inputpriorityinfo: *const IO_PRIORITY_INFO, outputpriorityinfo: Option<*mut IO_PRIORITY_INFO>, thread: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(inputpriorityinfo, core::mem::transmute(outputpriorityinfo.unwrap_or(std::ptr::null_mut())), thread.into_param().abi()) + IoApplyPriorityInfoThread(inputpriorityinfo, core::mem::transmute(outputpriorityinfo.unwrap_or(std::ptr::null_mut())), thread.param().abi()) } #[inline] pub unsafe fn IoCheckDesiredAccess(desiredaccess: *mut u32, grantedaccess: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -1624,18 +1624,18 @@ pub unsafe fn IoCheckFunctionAccess(grantedaccess: u32, majorfunction: u8, minor #[inline] pub unsafe fn IoCheckQuerySetFileInformation(fileinformationclass: FILE_INFORMATION_CLASS, length: u32, setoperation: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetFileInformation(fileinformationclass : FILE_INFORMATION_CLASS, length : u32, setoperation : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckQuerySetFileInformation(fileinformationclass, length, setoperation.into_param().abi()) + IoCheckQuerySetFileInformation(fileinformationclass, length, setoperation.param().abi()) } #[inline] pub unsafe fn IoCheckQuerySetVolumeInformation(fsinformationclass: FS_INFORMATION_CLASS, length: u32, setoperation: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetVolumeInformation(fsinformationclass : FS_INFORMATION_CLASS, length : u32, setoperation : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckQuerySetVolumeInformation(fsinformationclass, length, setoperation.into_param().abi()) + IoCheckQuerySetVolumeInformation(fsinformationclass, length, setoperation.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -1713,10 +1713,10 @@ pub unsafe fn IoGetDeviceAttachmentBaseRef(deviceobject: *const super::super::Fo #[inline] pub unsafe fn IoGetDeviceToVerify(thread: P0) -> *mut super::super::Foundation::DEVICE_OBJECT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoGetDeviceToVerify(thread : super::super::Foundation:: PETHREAD) -> *mut super::super::Foundation:: DEVICE_OBJECT); - IoGetDeviceToVerify(thread.into_param().abi()) + IoGetDeviceToVerify(thread.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1782,10 +1782,10 @@ pub unsafe fn IoIsOperationSynchronous(irp: *const super::super::Foundation::IRP #[inline] pub unsafe fn IoIsSystemThread(thread: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); - IoIsSystemThread(thread.into_param().abi()) + IoIsSystemThread(thread.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1839,10 +1839,10 @@ pub unsafe fn IoRegisterFsRegistrationChange(driverobject: *const super::super:: #[inline] pub unsafe fn IoRegisterFsRegistrationChangeMountAware(driverobject: *const super::super::Foundation::DRIVER_OBJECT, drivernotificationroutine: *const super::super::Foundation::DRIVER_FS_NOTIFICATION, synchronizewithmounts: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChangeMountAware(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : *const super::super::Foundation:: DRIVER_FS_NOTIFICATION, synchronizewithmounts : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterFsRegistrationChangeMountAware(driverobject, drivernotificationroutine, synchronizewithmounts.into_param().abi()) + IoRegisterFsRegistrationChangeMountAware(driverobject, drivernotificationroutine, synchronizewithmounts.param().abi()) } #[inline] pub unsafe fn IoReleaseVpbSpinLock(irql: u8) { @@ -1853,10 +1853,10 @@ pub unsafe fn IoReleaseVpbSpinLock(irql: u8) { #[inline] pub unsafe fn IoReplaceFileObjectName(fileobject: *const super::super::Foundation::FILE_OBJECT, newfilename: P0, filenamelength: u16) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(fileobject, newfilename.into_param().abi(), 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] @@ -1868,19 +1868,19 @@ pub unsafe fn IoRequestDeviceRemovalForReset(physicaldeviceobject: *const super: #[inline] pub unsafe fn IoRetrievePriorityInfo(irp: Option<*const super::super::Foundation::IRP>, fileobject: Option<*const super::super::Foundation::FILE_OBJECT>, thread: P0, priorityinfo: *mut IO_PRIORITY_INFO) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoRetrievePriorityInfo(irp : *const super::super::Foundation:: IRP, fileobject : *const super::super::Foundation:: FILE_OBJECT, thread : super::super::Foundation:: PETHREAD, priorityinfo : *mut IO_PRIORITY_INFO) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRetrievePriorityInfo(core::mem::transmute(irp.unwrap_or(std::ptr::null())), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), thread.into_param().abi(), priorityinfo) + IoRetrievePriorityInfo(core::mem::transmute(irp.unwrap_or(std::ptr::null())), core::mem::transmute(fileobject.unwrap_or(std::ptr::null())), thread.param().abi(), priorityinfo) } #[cfg(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 IoSetDeviceToVerify(thread: P0, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceToVerify(thread : super::super::Foundation:: PETHREAD, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); - IoSetDeviceToVerify(thread.into_param().abi(), core::mem::transmute(deviceobject.unwrap_or(std::ptr::null()))) + IoSetDeviceToVerify(thread.param().abi(), core::mem::transmute(deviceobject.unwrap_or(std::ptr::null()))) } #[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] @@ -1904,10 +1904,10 @@ pub unsafe fn IoSynchronousPageWrite(fileobject: *const super::super::Foundation #[inline] pub unsafe fn IoThreadToProcess(thread: P0) -> super::super::Foundation::PEPROCESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoThreadToProcess(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PEPROCESS); - IoThreadToProcess(thread.into_param().abi()) + IoThreadToProcess(thread.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1925,10 +1925,10 @@ pub unsafe fn IoUnregisterFsRegistrationChange(driverobject: *const super::super #[inline] pub unsafe fn IoVerifyVolume(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, allowrawmount: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyVolume(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, allowrawmount : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVerifyVolume(deviceobject, allowrawmount.into_param().abi()) + IoVerifyVolume(deviceobject, allowrawmount.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1945,10 +1945,10 @@ pub unsafe fn KeAcquireSpinLockRaiseToSynch(spinlock: *mut usize) -> u8 { #[inline] pub unsafe fn KeAttachProcess(process: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeAttachProcess(process : super::super::Foundation:: PRKPROCESS)); - KeAttachProcess(process.into_param().abi()) + KeAttachProcess(process.param().abi()) } #[inline] pub unsafe fn KeDetachProcess() { @@ -1959,10 +1959,10 @@ pub unsafe fn KeDetachProcess() { #[inline] pub unsafe fn KeInitializeMutant(mutant: *mut super::super::Foundation::KMUTANT, initialowner: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeMutant(mutant : *mut super::super::Foundation:: KMUTANT, initialowner : super::super::super::Win32::Foundation:: BOOLEAN)); - KeInitializeMutant(mutant, initialowner.into_param().abi()) + KeInitializeMutant(mutant, initialowner.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1998,11 +1998,11 @@ pub unsafe fn KeReadStateQueue(queue: *const super::super::Foundation::KQUEUE) - #[inline] pub unsafe fn KeReleaseMutant(mutant: *mut super::super::Foundation::KMUTANT, increment: i32, abandoned: P0, wait: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutant(mutant : *mut super::super::Foundation:: KMUTANT, increment : i32, abandoned : super::super::super::Win32::Foundation:: BOOLEAN, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeReleaseMutant(mutant, increment, abandoned.into_param().abi(), wait.into_param().abi()) + KeReleaseMutant(mutant, increment, abandoned.param().abi(), wait.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -2020,10 +2020,10 @@ pub unsafe fn KeRemoveQueue(queue: *mut super::super::Foundation::KQUEUE, waitmo #[inline] pub unsafe fn KeRemoveQueueEx(queue: *mut super::super::Foundation::KQUEUE, waitmode: i8, alertable: P0, timeout: Option<*const i64>, entryarray: &mut [*mut super::super::super::Win32::System::Kernel::LIST_ENTRY]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueEx(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64, entryarray : *mut *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY, count : u32) -> u32); - KeRemoveQueueEx(queue, waitmode, alertable.into_param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(entryarray.as_ptr()), entryarray.len().try_into().unwrap()) + KeRemoveQueueEx(queue, waitmode, alertable.param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(entryarray.as_ptr()), entryarray.len().try_into().unwrap()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2035,27 +2035,27 @@ pub unsafe fn KeRundownQueue(queue: *mut super::super::Foundation::KQUEUE) -> *m #[inline] pub unsafe fn KeSetIdealProcessorThread(thread: P0, processor: u8) -> u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetIdealProcessorThread(thread : super::super::Foundation:: PKTHREAD, processor : u8) -> u8); - KeSetIdealProcessorThread(thread.into_param().abi(), processor) + KeSetIdealProcessorThread(thread.param().abi(), processor) } #[inline] pub unsafe fn KeSetKernelStackSwapEnable(enable: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetKernelStackSwapEnable(enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - KeSetKernelStackSwapEnable(enable.into_param().abi()) + KeSetKernelStackSwapEnable(enable.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeStackAttachProcess(process: P0, apcstate: *mut KAPC_STATE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeStackAttachProcess(process : super::super::Foundation:: PRKPROCESS, apcstate : *mut KAPC_STATE)); - KeStackAttachProcess(process.into_param().abi(), apcstate) + KeStackAttachProcess(process.param().abi(), apcstate) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -2101,10 +2101,10 @@ pub unsafe fn MmFlushImageSection(sectionobjectpointer: *const super::super::Fou #[inline] pub unsafe fn MmForceSectionClosed(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, delayclose: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosed(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, delayclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - MmForceSectionClosed(sectionobjectpointer, delayclose.into_param().abi()) + MmForceSectionClosed(sectionobjectpointer, delayclose.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -2149,11 +2149,11 @@ pub unsafe fn MmSetAddressRangeModified(address: *const core::ffi::c_void, lengt #[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: P0, desiredaccess: u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, objectcreation: P1, grantedaccess: *mut u32, accessstatus: *mut i32, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename, objectname, securitydescriptor.into_param().abi(), desiredaccess, genericmapping, objectcreation.into_param().abi(), grantedaccess, accessstatus, generateonclose) + NtAccessCheckAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename, objectname, securitydescriptor.param().abi(), desiredaccess, genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, generateonclose) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2175,29 +2175,12 @@ pub unsafe fn NtAccessCheckByTypeAndAuditAlarm( generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, ) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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::Foundation:: 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 : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckByTypeAndAuditAlarm( - subsystemname, - core::mem::transmute(handleid.unwrap_or(std::ptr::null())), - objecttypename, - objectname, - securitydescriptor.into_param().abi(), - principalselfsid.into_param().abi(), - 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()), - genericmapping, - objectcreation.into_param().abi(), - grantedaccess, - accessstatus, - generateonclose, - ) + NtAccessCheckByTypeAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename, objectname, securitydescriptor.param().abi(), principalselfsid.param().abi(), 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()), genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, generateonclose) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2220,12 +2203,12 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarm( generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, ) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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::Foundation:: 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 : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename, objectname, securitydescriptor.into_param().abi(), principalselfsid.into_param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null())), objecttypelistlength, genericmapping, objectcreation.into_param().abi(), grantedaccess, accessstatus, generateonclose) + NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename, objectname, securitydescriptor.param().abi(), principalselfsid.param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null())), objecttypelistlength, genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, generateonclose) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2249,58 +2232,58 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, ) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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::Foundation:: 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 : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), clienttoken.into_param().abi(), objecttypename, objectname, securitydescriptor.into_param().abi(), principalselfsid.into_param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null())), objecttypelistlength, genericmapping, objectcreation.into_param().abi(), grantedaccess, accessstatus, generateonclose) + NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), clienttoken.param().abi(), objecttypename, objectname, securitydescriptor.param().abi(), principalselfsid.param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null())), objecttypelistlength, genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, generateonclose) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtAdjustGroupsToken(tokenhandle: P0, resettodefault: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : super::super::super::Win32::Foundation:: BOOLEAN, 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(tokenhandle.into_param().abi(), resettodefault.into_param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), returnlength) + NtAdjustGroupsToken(tokenhandle.param().abi(), resettodefault.param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), returnlength) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtAdjustPrivilegesToken(tokenhandle: P0, disableallprivileges: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : super::super::super::Win32::Foundation:: BOOLEAN, 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(tokenhandle.into_param().abi(), disableallprivileges.into_param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + NtAdjustPrivilegesToken(tokenhandle.param().abi(), disableallprivileges.param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NtAllocateVirtualMemory(processhandle: P0, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, regionsize: *mut usize, allocationtype: u32, protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), baseaddress, zerobits, regionsize, allocationtype, protect) + NtAllocateVirtualMemory(processhandle.param().abi(), baseaddress, zerobits, regionsize, allocationtype, protect) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtCancelIoFileEx(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), core::mem::transmute(iorequesttocancel.unwrap_or(std::ptr::null())), iostatusblock) + NtCancelIoFileEx(filehandle.param().abi(), core::mem::transmute(iorequesttocancel.unwrap_or(std::ptr::null())), iostatusblock) } #[inline] pub unsafe fn NtCloseObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCloseObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), generateonclose.into_param().abi()) + NtCloseObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), generateonclose.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] @@ -2312,93 +2295,93 @@ pub unsafe fn NtCreateFile(filehandle: *mut super::super::super::Win32::Foundati #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(sectionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, filehandle.into_param().abi()) + NtCreateSection(sectionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, filehandle.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Memory"))] #[inline] pub unsafe fn NtCreateSectionEx(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: P0, extendedparameters: Option<&mut [super::super::super::Win32::System::Memory::MEM_EXTENDED_PARAMETER]>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(sectionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, filehandle.into_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())) + NtCreateSectionEx(sectionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, filehandle.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())) } #[inline] pub unsafe fn NtDeleteObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDeleteObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), generateonclose.into_param().abi()) + NtDeleteObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), generateonclose.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtDuplicateToken(existingtokenhandle: P0, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, effectiveonly: P1, tokentype: super::super::super::Win32::Security::TOKEN_TYPE, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDuplicateToken(existingtokenhandle.into_param().abi(), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), effectiveonly.into_param().abi(), tokentype, newtokenhandle) + NtDuplicateToken(existingtokenhandle.param().abi(), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), effectiveonly.param().abi(), tokentype, newtokenhandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtFilterToken(existingtokenhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(existingtokenhandle.into_param().abi(), flags, core::mem::transmute(sidstodisable.unwrap_or(std::ptr::null())), core::mem::transmute(privilegestodelete.unwrap_or(std::ptr::null())), core::mem::transmute(restrictedsids.unwrap_or(std::ptr::null())), newtokenhandle) + NtFilterToken(existingtokenhandle.param().abi(), flags, core::mem::transmute(sidstodisable.unwrap_or(std::ptr::null())), core::mem::transmute(privilegestodelete.unwrap_or(std::ptr::null())), core::mem::transmute(restrictedsids.unwrap_or(std::ptr::null())), newtokenhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtFlushBuffersFileEx(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), flags, parameters, parameterssize, iostatusblock) + NtFlushBuffersFileEx(filehandle.param().abi(), flags, parameters, parameterssize, iostatusblock) } #[inline] pub unsafe fn NtFreeVirtualMemory(processhandle: P0, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, freetype: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), baseaddress, regionsize, freetype) + NtFreeVirtualMemory(processhandle.param().abi(), baseaddress, regionsize, freetype) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtFsControlFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) + NtFsControlFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) } #[inline] pub unsafe fn NtImpersonateAnonymousToken(threadhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtImpersonateAnonymousToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtImpersonateAnonymousToken(threadhandle.into_param().abi()) + NtImpersonateAnonymousToken(threadhandle.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtLockFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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: P2, exclusivelock: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtLockFile(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, byteoffset, length, key, failimmediately.into_param().abi(), exclusivelock.into_param().abi()) + NtLockFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, byteoffset, length, key, failimmediately.param().abi(), exclusivelock.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] @@ -2410,98 +2393,98 @@ pub unsafe fn NtOpenFile(filehandle: *mut super::super::super::Win32::Foundation #[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: P0, clienttoken: P1, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const super::super::super::Win32::Security::PRIVILEGE_SET>, objectcreation: P2, accessgranted: P3, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename, objectname, securitydescriptor.into_param().abi(), clienttoken.into_param().abi(), desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null())), objectcreation.into_param().abi(), accessgranted.into_param().abi(), generateonclose) + NtOpenObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename, objectname, securitydescriptor.param().abi(), clienttoken.param().abi(), desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null())), objectcreation.param().abi(), accessgranted.param().abi(), generateonclose) } #[inline] pub unsafe fn NtOpenProcessToken(processhandle: P0, desiredaccess: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), desiredaccess, tokenhandle) + NtOpenProcessToken(processhandle.param().abi(), desiredaccess, tokenhandle) } #[inline] pub unsafe fn NtOpenProcessTokenEx(processhandle: P0, desiredaccess: u32, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), desiredaccess, handleattributes, tokenhandle) + NtOpenProcessTokenEx(processhandle.param().abi(), desiredaccess, handleattributes, tokenhandle) } #[inline] pub unsafe fn NtOpenThreadToken(threadhandle: P0, desiredaccess: u32, openasself: P1, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenThreadToken(threadhandle.into_param().abi(), desiredaccess, openasself.into_param().abi(), tokenhandle) + NtOpenThreadToken(threadhandle.param().abi(), desiredaccess, openasself.param().abi(), tokenhandle) } #[inline] pub unsafe fn NtOpenThreadTokenEx(threadhandle: P0, desiredaccess: u32, openasself: P1, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenThreadTokenEx(threadhandle.into_param().abi(), desiredaccess, openasself.into_param().abi(), handleattributes, tokenhandle) + NtOpenThreadTokenEx(threadhandle.param().abi(), desiredaccess, openasself.param().abi(), handleattributes, tokenhandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtPrivilegeCheck(clienttoken: P0, requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, result: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegeCheck(clienttoken.into_param().abi(), requiredprivileges, result) + NtPrivilegeCheck(clienttoken.param().abi(), requiredprivileges, 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: P0, desiredaccess: u32, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegeObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), clienttoken.into_param().abi(), desiredaccess, privileges, accessgranted.into_param().abi()) + NtPrivilegeObjectAuditAlarm(subsystemname, core::mem::transmute(handleid.unwrap_or(std::ptr::null())), clienttoken.param().abi(), desiredaccess, privileges, accessgranted.param().abi()) } #[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: P0, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegedServiceAuditAlarm(subsystemname, servicename, clienttoken.into_param().abi(), privileges, accessgranted.into_param().abi()) + NtPrivilegedServiceAuditAlarm(subsystemname, servicename, clienttoken.param().abi(), privileges, accessgranted.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryDirectoryFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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: P2, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryDirectoryFile(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, returnsingleentry.into_param().abi(), core::mem::transmute(filename.unwrap_or(std::ptr::null())), restartscan.into_param().abi()) + NtQueryDirectoryFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, returnsingleentry.param().abi(), core::mem::transmute(filename.unwrap_or(std::ptr::null())), restartscan.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryDirectoryFileEx(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(std::ptr::null()))) + NtQueryDirectoryFileEx(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] @@ -2513,140 +2496,140 @@ pub unsafe fn NtQueryInformationByName(objectattributes: *const super::super::Fo #[inline] pub unsafe fn NtQueryInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fileinformation, length, fileinformationclass) + NtQueryInformationFile(filehandle.param().abi(), iostatusblock, fileinformation, length, fileinformationclass) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtQueryInformationToken(tokenhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tokenhandle.into_param().abi(), tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(std::ptr::null_mut())), tokeninformationlength, returnlength) + NtQueryInformationToken(tokenhandle.param().abi(), tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(std::ptr::null_mut())), tokeninformationlength, returnlength) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryQuotaInformationFile(filehandle: P0, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: P1, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: P2, restartscan: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Foundation:: PSID, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryQuotaInformationFile(filehandle.into_param().abi(), iostatusblock, buffer, length, returnsingleentry.into_param().abi(), core::mem::transmute(sidlist.unwrap_or(std::ptr::null())), sidlistlength, startsid.into_param().abi(), restartscan.into_param().abi()) + NtQueryQuotaInformationFile(filehandle.param().abi(), iostatusblock, buffer, length, returnsingleentry.param().abi(), core::mem::transmute(sidlist.unwrap_or(std::ptr::null())), sidlistlength, startsid.param().abi(), restartscan.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtQuerySecurityObject(handle: P0, securityinformation: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, length: u32, lengthneeded: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), securityinformation, securitydescriptor, length, lengthneeded) + NtQuerySecurityObject(handle.param().abi(), securityinformation, securitydescriptor, length, lengthneeded) } #[inline] pub unsafe fn NtQueryVirtualMemory(processhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), memoryinformationclass, memoryinformation, memoryinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + NtQueryVirtualMemory(processhandle.param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), memoryinformationclass, memoryinformation, memoryinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryVolumeInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fsinformation, length, fsinformationclass) + NtQueryVolumeInformationFile(filehandle.param().abi(), iostatusblock, fsinformation, length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtReadFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) + NtReadFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtSetInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fileinformation, length, fileinformationclass) + NtSetInformationFile(filehandle.param().abi(), iostatusblock, fileinformation, length, fileinformationclass) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtSetInformationToken(tokenhandle: P0, tokeninformationclass: super::super::super::Win32::Security::TOKEN_INFORMATION_CLASS, tokeninformation: *const core::ffi::c_void, tokeninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tokenhandle.into_param().abi(), tokeninformationclass, tokeninformation, tokeninformationlength) + NtSetInformationToken(tokenhandle.param().abi(), tokeninformationclass, tokeninformation, tokeninformationlength) } #[inline] pub unsafe fn NtSetInformationVirtualMemory(processhandle: P0, vminformationclass: VIRTUAL_MEMORY_INFORMATION_CLASS, virtualaddresses: &[MEMORY_RANGE_ENTRY], vminformation: *const core::ffi::c_void, vminformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), vminformationclass, virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), vminformation, vminformationlength) + NtSetInformationVirtualMemory(processhandle.param().abi(), 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, buffer, length) + NtSetQuotaInformationFile(filehandle.param().abi(), iostatusblock, buffer, length) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtSetSecurityObject(handle: P0, securityinformation: u32, securitydescriptor: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(handle.into_param().abi(), securityinformation, securitydescriptor.into_param().abi()) + NtSetSecurityObject(handle.param().abi(), securityinformation, securitydescriptor.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtSetVolumeInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fsinformation, length, fsinformationclass) + NtSetVolumeInformationFile(filehandle.param().abi(), iostatusblock, fsinformation, length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtUnlockFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, byteoffset, length, key) + NtUnlockFile(filehandle.param().abi(), iostatusblock, byteoffset, length, key) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtWriteFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) + NtWriteFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] @@ -2657,10 +2640,10 @@ pub unsafe fn ObInsertObject(object: *const core::ffi::c_void, passedaccessstate #[inline] pub unsafe fn ObIsKernelHandle(handle: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ObIsKernelHandle(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: BOOLEAN); - ObIsKernelHandle(handle.into_param().abi()) + ObIsKernelHandle(handle.param().abi()) } #[inline] pub unsafe fn ObMakeTemporaryObject(object: *const core::ffi::c_void) { @@ -2671,19 +2654,19 @@ pub unsafe fn ObMakeTemporaryObject(object: *const core::ffi::c_void) { #[inline] pub unsafe fn ObOpenObjectByPointer(object: *const core::ffi::c_void, handleattributes: u32, passedaccessstate: Option<*const super::super::Foundation::ACCESS_STATE>, desiredaccess: u32, objecttype: P0, accessmode: i8, handle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(object, handleattributes, core::mem::transmute(passedaccessstate.unwrap_or(std::ptr::null())), desiredaccess, objecttype.into_param().abi(), accessmode, handle) + ObOpenObjectByPointer(object, handleattributes, core::mem::transmute(passedaccessstate.unwrap_or(std::ptr::null())), desiredaccess, objecttype.param().abi(), accessmode, 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: P0, accessmode: i8, tag: u32, handle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(object, handleattributes, core::mem::transmute(passedaccessstate.unwrap_or(std::ptr::null())), desiredaccess, objecttype.into_param().abi(), accessmode, tag, handle) + ObOpenObjectByPointerWithTag(object, handleattributes, core::mem::transmute(passedaccessstate.unwrap_or(std::ptr::null())), desiredaccess, objecttype.param().abi(), accessmode, tag, handle) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -2694,10 +2677,10 @@ pub unsafe fn ObQueryNameString(object: *const core::ffi::c_void, objectnameinfo #[inline] pub unsafe fn ObQueryObjectAuditingByHandle(handle: P0, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryObjectAuditingByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObQueryObjectAuditingByHandle(handle.into_param().abi(), generateonclose) + ObQueryObjectAuditingByHandle(handle.param().abi(), generateonclose) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2735,29 +2718,29 @@ pub unsafe fn PoQueueShutdownWorkItem(workitem: *mut super::super::Foundation::W #[inline] pub unsafe fn PsAssignImpersonationToken(thread: P0, token: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(thread.into_param().abi(), token.into_param().abi()) + PsAssignImpersonationToken(thread.param().abi(), token.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsChargePoolQuota(process: P0, pooltype: super::super::Foundation::POOL_TYPE, amount: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsChargePoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize)); - PsChargePoolQuota(process.into_param().abi(), pooltype, amount) + PsChargePoolQuota(process.param().abi(), pooltype, amount) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsChargeProcessPoolQuota(process: P0, pooltype: super::super::Foundation::POOL_TYPE, amount: usize) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), pooltype, amount) + PsChargeProcessPoolQuota(process.param().abi(), pooltype, amount) } #[inline] pub unsafe fn PsDereferenceImpersonationToken(impersonationtoken: *const core::ffi::c_void) { @@ -2773,10 +2756,10 @@ pub unsafe fn PsDereferencePrimaryToken(primarytoken: *const core::ffi::c_void) #[inline] pub unsafe fn PsDisableImpersonation(thread: P0, impersonationstate: *mut super::super::super::Win32::Security::SE_IMPERSONATION_STATE) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsDisableImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *mut super::super::super::Win32::Security:: SE_IMPERSONATION_STATE) -> super::super::super::Win32::Foundation:: BOOLEAN); - PsDisableImpersonation(thread.into_param().abi(), impersonationstate) + PsDisableImpersonation(thread.param().abi(), impersonationstate) } #[inline] pub unsafe fn PsGetProcessExitTime() -> i64 { @@ -2787,21 +2770,21 @@ pub unsafe fn PsGetProcessExitTime() -> i64 { #[inline] pub unsafe fn PsGetThreadProcess(thread: P0) -> super::super::Foundation::PEPROCESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProcess(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PEPROCESS); - PsGetThreadProcess(thread.into_param().abi()) + PsGetThreadProcess(thread.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsImpersonateClient(thread: P0, token: Option<*const core::ffi::c_void>, copyonopen: P1, effectiveonly: P2, impersonationlevel: super::super::super::Win32::Security::SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsImpersonateClient(thread : super::super::Foundation:: PETHREAD, token : *const core::ffi::c_void, copyonopen : super::super::super::Win32::Foundation:: BOOLEAN, effectiveonly : super::super::super::Win32::Foundation:: BOOLEAN, impersonationlevel : super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsImpersonateClient(thread.into_param().abi(), core::mem::transmute(token.unwrap_or(std::ptr::null())), copyonopen.into_param().abi(), effectiveonly.into_param().abi(), impersonationlevel) + PsImpersonateClient(thread.param().abi(), core::mem::transmute(token.unwrap_or(std::ptr::null())), copyonopen.param().abi(), effectiveonly.param().abi(), impersonationlevel) } #[inline] pub unsafe fn PsIsDiskCountersEnabled() -> super::super::super::Win32::Foundation::BOOLEAN { @@ -2812,73 +2795,73 @@ pub unsafe fn PsIsDiskCountersEnabled() -> super::super::super::Win32::Foundatio #[inline] pub unsafe fn PsIsSystemThread(thread: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); - PsIsSystemThread(thread.into_param().abi()) + PsIsSystemThread(thread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsIsThreadTerminating(thread: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsIsThreadTerminating(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); - PsIsThreadTerminating(thread.into_param().abi()) + PsIsThreadTerminating(thread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsLookupProcessByProcessId(processid: P0, process: *mut super::super::Foundation::PEPROCESS) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processid.into_param().abi(), process) + PsLookupProcessByProcessId(processid.param().abi(), process) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsLookupThreadByThreadId(threadid: P0, thread: *mut super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(threadid.into_param().abi(), thread) + PsLookupThreadByThreadId(threadid.param().abi(), thread) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsReferenceImpersonationToken(thread: P0, copyonopen: *mut super::super::super::Win32::Foundation::BOOLEAN, effectiveonly: *mut super::super::super::Win32::Foundation::BOOLEAN, impersonationlevel: *mut super::super::super::Win32::Security::SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsReferenceImpersonationToken(thread : super::super::Foundation:: PETHREAD, copyonopen : *mut super::super::super::Win32::Foundation:: BOOLEAN, effectiveonly : *mut super::super::super::Win32::Foundation:: BOOLEAN, impersonationlevel : *mut super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void); - PsReferenceImpersonationToken(thread.into_param().abi(), copyonopen, effectiveonly, impersonationlevel) + PsReferenceImpersonationToken(thread.param().abi(), copyonopen, effectiveonly, impersonationlevel) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsReferencePrimaryToken(process: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsReferencePrimaryToken(process : super::super::Foundation:: PEPROCESS) -> *mut core::ffi::c_void); - PsReferencePrimaryToken(process.into_param().abi()) + PsReferencePrimaryToken(process.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsRestoreImpersonation(thread: P0, impersonationstate: *const super::super::super::Win32::Security::SE_IMPERSONATION_STATE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsRestoreImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *const super::super::super::Win32::Security:: SE_IMPERSONATION_STATE)); - PsRestoreImpersonation(thread.into_param().abi(), impersonationstate) + PsRestoreImpersonation(thread.param().abi(), impersonationstate) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsReturnPoolQuota(process: P0, pooltype: super::super::Foundation::POOL_TYPE, amount: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsReturnPoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize)); - PsReturnPoolQuota(process.into_param().abi(), pooltype, amount) + PsReturnPoolQuota(process.param().abi(), pooltype, amount) } #[inline] pub unsafe fn PsRevertToSelf() { @@ -2889,10 +2872,10 @@ pub unsafe fn PsRevertToSelf() { #[inline] pub unsafe fn PsUpdateDiskCounters(process: P0, bytesread: u64, byteswritten: u64, readoperationcount: u32, writeoperationcount: u32, flushoperationcount: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsUpdateDiskCounters(process : super::super::Foundation:: PEPROCESS, bytesread : u64, byteswritten : u64, readoperationcount : u32, writeoperationcount : u32, flushoperationcount : u32)); - PsUpdateDiskCounters(process.into_param().abi(), bytesread, byteswritten, readoperationcount, writeoperationcount, flushoperationcount) + PsUpdateDiskCounters(process.param().abi(), bytesread, byteswritten, readoperationcount, writeoperationcount, flushoperationcount) } #[inline] pub unsafe fn QuerySecurityContextToken(phcontext: *const SecHandle, token: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -2903,28 +2886,28 @@ pub unsafe fn QuerySecurityContextToken(phcontext: *const SecHandle, token: *mut #[inline] pub unsafe fn RtlAbsoluteToSelfRelativeSD(absolutesecuritydescriptor: P0, selfrelativesecuritydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, bufferlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(absolutesecuritydescriptor.into_param().abi(), selfrelativesecuritydescriptor, bufferlength) + RtlAbsoluteToSelfRelativeSD(absolutesecuritydescriptor.param().abi(), selfrelativesecuritydescriptor, bufferlength) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAddAccessAllowedAce(acl: *mut super::super::super::Win32::Security::ACL, acerevision: u32, accessmask: u32, sid: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAddAccessAllowedAce(acl, acerevision, accessmask, sid.into_param().abi()) + RtlAddAccessAllowedAce(acl, acerevision, accessmask, sid.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlAddAccessAllowedAceEx(acl: *mut super::super::super::Win32::Security::ACL, acerevision: u32, aceflags: u32, accessmask: u32, sid: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAddAccessAllowedAceEx(acl, acerevision, aceflags, accessmask, sid.into_param().abi()) + RtlAddAccessAllowedAceEx(acl, acerevision, aceflags, accessmask, sid.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2983,10 +2966,10 @@ pub unsafe fn RtlCopyLuid(destinationluid: *mut super::super::super::Win32::Foun #[inline] pub unsafe fn RtlCopySid(destinationsidlength: u32, destinationsid: super::super::super::Win32::Foundation::PSID, sourcesid: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlCopySid(destinationsidlength : u32, destinationsid : super::super::super::Win32::Foundation:: PSID, sourcesid : super::super::super::Win32::Foundation:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCopySid(destinationsidlength, destinationsid, sourcesid.into_param().abi()) + RtlCopySid(destinationsidlength, destinationsid, sourcesid.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3012,10 +2995,10 @@ pub unsafe fn RtlCreateSystemVolumeInformationFolder(volumerootpath: *const supe #[inline] pub unsafe fn RtlCreateUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlCreateUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlCreateUnicodeString(destinationstring, sourcestring.into_param().abi()) + RtlCreateUnicodeString(destinationstring, sourcestring.param().abi()) } #[inline] pub unsafe fn RtlCreateVirtualAccountSid(name: *const super::super::super::Win32::Foundation::UNICODE_STRING, basesubauthority: u32, sid: super::super::super::Win32::Foundation::PSID, sidlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3076,10 +3059,10 @@ pub unsafe fn RtlDestroyHeap(heaphandle: *const core::ffi::c_void) -> *mut core: #[inline] pub unsafe fn RtlDowncaseUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDowncaseUnicodeString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlDowncaseUnicodeString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[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 { @@ -3089,20 +3072,20 @@ pub unsafe fn RtlDuplicateUnicodeString(flags: u32, stringin: *const super::supe #[inline] pub unsafe fn RtlEqualPrefixSid(sid1: P0, sid2: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlEqualPrefixSid(sid1 : super::super::super::Win32::Foundation:: PSID, sid2 : super::super::super::Win32::Foundation:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlEqualPrefixSid(sid1.into_param().abi(), sid2.into_param().abi()) + RtlEqualPrefixSid(sid1.param().abi(), sid2.param().abi()) } #[inline] pub unsafe fn RtlEqualSid(sid1: P0, sid2: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlEqualSid(sid1 : super::super::super::Win32::Foundation:: PSID, sid2 : super::super::super::Win32::Foundation:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlEqualSid(sid1.into_param().abi(), sid2.into_param().abi()) + RtlEqualSid(sid1.param().abi(), sid2.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -3118,18 +3101,18 @@ pub unsafe fn RtlFreeHeap(heaphandle: *const core::ffi::c_void, flags: u32, base #[inline] pub unsafe fn RtlFreeSid(sid: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlFreeSid(sid : super::super::super::Win32::Foundation:: PSID) -> *mut core::ffi::c_void); - RtlFreeSid(sid.into_param().abi()) + RtlFreeSid(sid.param().abi()) } #[inline] pub unsafe fn RtlGenerate8dot3Name(name: *const super::super::super::Win32::Foundation::UNICODE_STRING, allowextendedcharacters: P0, context: *mut GENERATE_NAME_CONTEXT, name8dot3: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlGenerate8dot3Name(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allowextendedcharacters : super::super::super::Win32::Foundation:: BOOLEAN, context : *mut GENERATE_NAME_CONTEXT, name8dot3 : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGenerate8dot3Name(name, allowextendedcharacters.into_param().abi(), context, name8dot3) + RtlGenerate8dot3Name(name, allowextendedcharacters.param().abi(), context, name8dot3) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3146,70 +3129,70 @@ pub unsafe fn RtlGetCompressionWorkSpaceSize(compressionformatandengine: u16, co #[inline] pub unsafe fn RtlGetDaclSecurityDescriptor(securitydescriptor: P0, daclpresent: *mut super::super::super::Win32::Foundation::BOOLEAN, dacl: *mut *mut super::super::super::Win32::Security::ACL, dacldefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlGetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : *mut super::super::super::Win32::Foundation:: BOOLEAN, dacl : *mut *mut super::super::super::Win32::Security:: ACL, dacldefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetDaclSecurityDescriptor(securitydescriptor.into_param().abi(), daclpresent, dacl, dacldefaulted) + RtlGetDaclSecurityDescriptor(securitydescriptor.param().abi(), daclpresent, dacl, dacldefaulted) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetGroupSecurityDescriptor(securitydescriptor: P0, group: *mut super::super::super::Win32::Foundation::PSID, groupdefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlGetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : *mut super::super::super::Win32::Foundation:: PSID, groupdefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetGroupSecurityDescriptor(securitydescriptor.into_param().abi(), group, groupdefaulted) + RtlGetGroupSecurityDescriptor(securitydescriptor.param().abi(), group, groupdefaulted) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetOwnerSecurityDescriptor(securitydescriptor: P0, owner: *mut super::super::super::Win32::Foundation::PSID, ownerdefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlGetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : *mut super::super::super::Win32::Foundation:: PSID, ownerdefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetOwnerSecurityDescriptor(securitydescriptor.into_param().abi(), owner, ownerdefaulted) + RtlGetOwnerSecurityDescriptor(securitydescriptor.param().abi(), owner, ownerdefaulted) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlGetSaclSecurityDescriptor(securitydescriptor: P0, saclpresent: *mut super::super::super::Win32::Foundation::BOOLEAN, sacl: *mut *mut super::super::super::Win32::Security::ACL, sacldefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlGetSaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, saclpresent : *mut super::super::super::Win32::Foundation:: BOOLEAN, sacl : *mut *mut super::super::super::Win32::Security:: ACL, sacldefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGetSaclSecurityDescriptor(securitydescriptor.into_param().abi(), saclpresent, sacl, sacldefaulted) + RtlGetSaclSecurityDescriptor(securitydescriptor.param().abi(), saclpresent, sacl, sacldefaulted) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlIdentifierAuthoritySid(sid: P0) -> *mut super::super::super::Win32::Security::SID_IDENTIFIER_AUTHORITY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIdentifierAuthoritySid(sid : super::super::super::Win32::Foundation:: PSID) -> *mut super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY); - RtlIdentifierAuthoritySid(sid.into_param().abi()) + RtlIdentifierAuthoritySid(sid.param().abi()) } #[inline] pub unsafe fn RtlIdnToAscii(flags: u32, sourcestring: P0, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(flags, sourcestring.into_param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) + RtlIdnToAscii(flags, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) } #[inline] pub unsafe fn RtlIdnToNameprepUnicode(flags: u32, sourcestring: P0, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(flags, sourcestring.into_param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) + RtlIdnToNameprepUnicode(flags, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) } #[inline] pub unsafe fn RtlIdnToUnicode(flags: u32, sourcestring: P0, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(flags, sourcestring.into_param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) + RtlIdnToUnicode(flags, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) } #[inline] pub unsafe fn RtlInitCodePageTable(tablebase: Option<&[u16; 2]>, codepagetable: *mut CPTABLEINFO) { @@ -3219,10 +3202,10 @@ pub unsafe fn RtlInitCodePageTable(tablebase: Option<&[u16; 2]>, codepagetable: #[inline] pub unsafe fn RtlInitUnicodeStringEx(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlInitUnicodeStringEx(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlInitUnicodeStringEx(destinationstring, sourcestring.into_param().abi()) + RtlInitUnicodeStringEx(destinationstring, sourcestring.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3263,10 +3246,10 @@ pub unsafe fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> supe #[inline] pub unsafe fn RtlIsNormalizedString(normform: u32, sourcestring: P0, sourcestringlength: i32, normalized: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIsNormalizedString(normform : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, normalized : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIsNormalizedString(normform, sourcestring.into_param().abi(), sourcestringlength, normalized) + RtlIsNormalizedString(normform, sourcestring.param().abi(), sourcestringlength, normalized) } #[inline] pub unsafe fn RtlIsPartialPlaceholder(fileattributes: u32, reparsetag: u32) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -3276,10 +3259,10 @@ pub unsafe fn RtlIsPartialPlaceholder(fileattributes: u32, reparsetag: u32) -> s #[inline] pub unsafe fn RtlIsPartialPlaceholderFileHandle(filehandle: P0, ispartialplaceholder: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, ispartialplaceholder : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIsPartialPlaceholderFileHandle(filehandle.into_param().abi(), ispartialplaceholder) + RtlIsPartialPlaceholderFileHandle(filehandle.param().abi(), ispartialplaceholder) } #[inline] pub unsafe fn RtlIsPartialPlaceholderFileInfo(infobuffer: *const core::ffi::c_void, infoclass: FILE_INFORMATION_CLASS, ispartialplaceholder: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3305,10 +3288,10 @@ pub unsafe fn RtlLengthRequiredSid(subauthoritycount: u32) -> u32 { #[inline] pub unsafe fn RtlLengthSid(sid: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlLengthSid(sid : super::super::super::Win32::Foundation:: PSID) -> u32); - RtlLengthSid(sid.into_param().abi()) + RtlLengthSid(sid.param().abi()) } #[inline] pub unsafe fn RtlMultiByteToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, multibytestring: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3324,44 +3307,44 @@ pub unsafe fn RtlMultiByteToUnicodeSize(bytesinunicodestring: *mut u32, multibyt #[inline] pub unsafe fn RtlNextUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, restart: P0) -> *mut UNICODE_PREFIX_TABLE_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn RtlNextUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut UNICODE_PREFIX_TABLE_ENTRY); - RtlNextUnicodePrefix(prefixtable, restart.into_param().abi()) + RtlNextUnicodePrefix(prefixtable, restart.param().abi()) } #[inline] pub unsafe fn RtlNormalizeString(normform: u32, sourcestring: P0, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(normform, sourcestring.into_param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) + RtlNormalizeString(normform, sourcestring.param().abi(), sourcestringlength, core::mem::transmute(destinationstring), destinationstringlength) } #[inline] pub unsafe fn RtlNtStatusToDosErrorNoTeb(status: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlNtStatusToDosErrorNoTeb(status : super::super::super::Win32::Foundation:: NTSTATUS) -> u32); - RtlNtStatusToDosErrorNoTeb(status.into_param().abi()) + RtlNtStatusToDosErrorNoTeb(status.param().abi()) } #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlOemStringToCountedUnicodeString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlOemStringToCountedUnicodeString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlOemStringToUnicodeString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlOemStringToUnicodeString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlOemToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, oemstring: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3372,10 +3355,10 @@ pub unsafe fn RtlOemToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinuni #[inline] pub unsafe fn RtlPrefixString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlPrefixString(string1, string2, caseinsensitive.into_param().abi()) + RtlPrefixString(string1, string2, caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlQueryPackageIdentity(tokenobject: *const core::ffi::c_void, packagefullname: windows_core::PWSTR, packagesize: *mut usize, appid: windows_core::PWSTR, appidsize: Option<*mut usize>, packaged: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3417,11 +3400,11 @@ pub unsafe fn RtlRemoveUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, p #[inline] pub unsafe fn RtlReplaceSidInSd(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, oldsid: P0, newsid: P1, numchanges: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlReplaceSidInSd(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, oldsid : super::super::super::Win32::Foundation:: PSID, newsid : super::super::super::Win32::Foundation:: PSID, numchanges : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlReplaceSidInSd(securitydescriptor, oldsid.into_param().abi(), newsid.into_param().abi(), numchanges) + RtlReplaceSidInSd(securitydescriptor, oldsid.param().abi(), newsid.param().abi(), 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 { @@ -3446,30 +3429,30 @@ pub unsafe fn RtlSecondsSince1980ToTime(elapsedseconds: u32) -> i64 { #[inline] pub unsafe fn RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor: P0, absolutesecuritydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, 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: super::super::super::Win32::Foundation::PSID, ownersize: *mut u32, primarygroup: super::super::super::Win32::Foundation::PSID, primarygroupsize: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, ownersize : *mut u32, primarygroup : super::super::super::Win32::Foundation:: PSID, primarygroupsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor.into_param().abi(), absolutesecuritydescriptor, absolutesecuritydescriptorsize, core::mem::transmute(dacl.unwrap_or(std::ptr::null_mut())), daclsize, core::mem::transmute(sacl.unwrap_or(std::ptr::null_mut())), saclsize, owner, ownersize, primarygroup, primarygroupsize) + RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor.param().abi(), absolutesecuritydescriptor, absolutesecuritydescriptorsize, core::mem::transmute(dacl.unwrap_or(std::ptr::null_mut())), daclsize, core::mem::transmute(sacl.unwrap_or(std::ptr::null_mut())), saclsize, owner, ownersize, primarygroup, primarygroupsize) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSetGroupSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, group: P0, groupdefaulted: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlSetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : super::super::super::Win32::Foundation:: PSID, groupdefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetGroupSecurityDescriptor(securitydescriptor, group.into_param().abi(), groupdefaulted.into_param().abi()) + RtlSetGroupSecurityDescriptor(securitydescriptor, group.param().abi(), groupdefaulted.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSetOwnerSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, owner: P0, ownerdefaulted: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlSetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : super::super::super::Win32::Foundation:: PSID, ownerdefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetOwnerSecurityDescriptor(securitydescriptor, owner.into_param().abi(), ownerdefaulted.into_param().abi()) + RtlSetOwnerSecurityDescriptor(securitydescriptor, owner.param().abi(), ownerdefaulted.param().abi()) } #[inline] pub unsafe fn RtlSetProcessPlaceholderCompatibilityMode(mode: i8) -> i8 { @@ -3484,18 +3467,18 @@ pub unsafe fn RtlSetThreadPlaceholderCompatibilityMode(mode: i8) -> i8 { #[inline] pub unsafe fn RtlSubAuthorityCountSid(sid: P0) -> *mut u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlSubAuthorityCountSid(sid : super::super::super::Win32::Foundation:: PSID) -> *mut u8); - RtlSubAuthorityCountSid(sid.into_param().abi()) + RtlSubAuthorityCountSid(sid.param().abi()) } #[inline] pub unsafe fn RtlSubAuthoritySid(sid: P0, subauthority: u32) -> *mut u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlSubAuthoritySid(sid : super::super::super::Win32::Foundation:: PSID, subauthority : u32) -> *mut u32); - RtlSubAuthoritySid(sid.into_param().abi(), subauthority) + RtlSubAuthoritySid(sid.param().abi(), subauthority) } #[inline] pub unsafe fn RtlTimeToSecondsSince1980(time: *const i64, elapsedseconds: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -3506,18 +3489,18 @@ pub unsafe fn RtlTimeToSecondsSince1980(time: *const i64, elapsedseconds: *mut u #[inline] pub unsafe fn RtlUnicodeStringToCountedOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToCountedOemString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUnicodeStringToCountedOemString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlUnicodeToCustomCPN(customcp: *const CPTABLEINFO, customcpstring: &mut [u8], bytesincustomcpstring: Option<*mut u32>, unicodestring: P0, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(customcp, core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(std::ptr::null_mut())), unicodestring.into_param().abi(), bytesinunicodestring) + RtlUnicodeToCustomCPN(customcp, core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(std::ptr::null_mut())), 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 { @@ -3533,27 +3516,27 @@ pub unsafe fn RtlUnicodeToOemN(oemstring: &mut [u8], bytesinoemstring: Option<*m #[inline] pub unsafe fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeStringToCountedOemString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUpcaseUnicodeStringToCountedOemString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeStringToOemString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUpcaseUnicodeStringToOemString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlUpcaseUnicodeToCustomCPN(customcp: *const CPTABLEINFO, customcpstring: &mut [u8], bytesincustomcpstring: Option<*mut u32>, unicodestring: P0, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(customcp, core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(std::ptr::null_mut())), unicodestring.into_param().abi(), bytesinunicodestring) + RtlUpcaseUnicodeToCustomCPN(customcp, core::mem::transmute(customcpstring.as_ptr()), customcpstring.len().try_into().unwrap(), core::mem::transmute(bytesincustomcpstring.unwrap_or(std::ptr::null_mut())), 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 { @@ -3568,10 +3551,10 @@ pub unsafe fn RtlUpcaseUnicodeToOemN(oemstring: &mut [u8], bytesinoemstring: Opt #[inline] pub unsafe fn RtlValidSid(sid: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlValidSid(sid : super::super::super::Win32::Foundation:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlValidSid(sid.into_param().abi()) + RtlValidSid(sid.param().abi()) } #[inline] pub unsafe fn RtlValidateUnicodeString(flags: u32, string: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3593,47 +3576,47 @@ pub unsafe fn RtlxUnicodeStringToOemSize(unicodestring: *const super::super::sup #[inline] pub unsafe fn SeAccessCheckFromState(securitydescriptor: P0, 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) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAccessCheckFromState(securitydescriptor.into_param().abi(), primarytokeninformation, core::mem::transmute(clienttokeninformation.unwrap_or(std::ptr::null())), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null_mut())), genericmapping, accessmode, grantedaccess, accessstatus) + SeAccessCheckFromState(securitydescriptor.param().abi(), primarytokeninformation, core::mem::transmute(clienttokeninformation.unwrap_or(std::ptr::null())), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null_mut())), genericmapping, accessmode, grantedaccess, accessstatus) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeAccessCheckFromStateEx(securitydescriptor: P0, 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) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAccessCheckFromStateEx(securitydescriptor.into_param().abi(), primarytoken, core::mem::transmute(clienttoken.unwrap_or(std::ptr::null())), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null_mut())), genericmapping, accessmode, grantedaccess, accessstatus) + SeAccessCheckFromStateEx(securitydescriptor.param().abi(), primarytoken, core::mem::transmute(clienttoken.unwrap_or(std::ptr::null())), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null_mut())), genericmapping, accessmode, grantedaccess, 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: P0, accessstate: *mut super::super::Foundation::ACCESS_STATE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(objecttype, securitydescriptor.into_param().abi(), accessstate) + SeAdjustAccessStateForAccessConstraints(objecttype, securitydescriptor.param().abi(), 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: P0, accessstate: *mut super::super::Foundation::ACCESS_STATE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(objecttype, securitydescriptor.into_param().abi(), accessstate) + SeAdjustAccessStateForTrustLabel(objecttype, securitydescriptor.param().abi(), accessstate) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAdjustObjectSecurity(objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, originaldescriptor: P0, proposeddescriptor: P1, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, adjusteddescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, applyadjusteddescriptor: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeAdjustObjectSecurity(objectname, originaldescriptor.into_param().abi(), proposeddescriptor.into_param().abi(), subjectsecuritycontext, adjusteddescriptor, applyadjusteddescriptor) + SeAdjustObjectSecurity(objectname, originaldescriptor.param().abi(), proposeddescriptor.param().abi(), subjectsecuritycontext, adjusteddescriptor, applyadjusteddescriptor) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] @@ -3644,26 +3627,26 @@ pub unsafe fn SeAppendPrivileges(accessstate: *mut super::super::Foundation::ACC #[inline] pub unsafe fn SeAuditFipsCryptoSelftests(bsuccess: P0, selftestcode: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditFipsCryptoSelftests(bsuccess : super::super::super::Win32::Foundation:: BOOLEAN, selftestcode : u32)); - SeAuditFipsCryptoSelftests(bsuccess.into_param().abi(), selftestcode) + SeAuditFipsCryptoSelftests(bsuccess.param().abi(), 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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN)); - SeAuditHardLinkCreation(filename, linkname, bsuccess.into_param().abi()) + SeAuditHardLinkCreation(filename, linkname, bsuccess.param().abi()) } #[inline] pub unsafe fn SeAuditHardLinkCreationWithTransaction(filename: *const super::super::super::Win32::Foundation::UNICODE_STRING, linkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, bsuccess: P0, transactionid: Option<*const windows_core::GUID>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, transactionid : *const windows_core::GUID)); - SeAuditHardLinkCreationWithTransaction(filename, linkname, bsuccess.into_param().abi(), core::mem::transmute(transactionid.unwrap_or(std::ptr::null()))) + SeAuditHardLinkCreationWithTransaction(filename, linkname, bsuccess.param().abi(), core::mem::transmute(transactionid.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SeAuditTransactionStateChange(transactionid: *const windows_core::GUID, resourcemanagerid: *const windows_core::GUID, newtransactionstate: u32) { @@ -3674,122 +3657,122 @@ pub unsafe fn SeAuditTransactionStateChange(transactionid: *const windows_core:: #[inline] pub unsafe fn SeAuditingAnyFileEventsWithContext(securitydescriptor: P0, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContext(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingAnyFileEventsWithContext(securitydescriptor.into_param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null()))) + SeAuditingAnyFileEventsWithContext(securitydescriptor.param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor: P0, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingAnyFileEventsWithContextEx(securitydescriptor.into_param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null())), core::mem::transmute(stagingenabled.unwrap_or(std::ptr::null_mut()))) + SeAuditingAnyFileEventsWithContextEx(securitydescriptor.param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null())), core::mem::transmute(stagingenabled.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeAuditingFileEvents(accessgranted: P0, securitydescriptor: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileEvents(accessgranted.into_param().abi(), securitydescriptor.into_param().abi()) + SeAuditingFileEvents(accessgranted.param().abi(), securitydescriptor.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingFileEventsWithContext(accessgranted: P0, securitydescriptor: P1, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContext(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileEventsWithContext(accessgranted.into_param().abi(), securitydescriptor.into_param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null()))) + SeAuditingFileEventsWithContext(accessgranted.param().abi(), securitydescriptor.param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingFileEventsWithContextEx(accessgranted: P0, securitydescriptor: P1, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContextEx(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileEventsWithContextEx(accessgranted.into_param().abi(), securitydescriptor.into_param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null())), core::mem::transmute(stagingenabled.unwrap_or(std::ptr::null_mut()))) + SeAuditingFileEventsWithContextEx(accessgranted.param().abi(), securitydescriptor.param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null())), core::mem::transmute(stagingenabled.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingFileOrGlobalEvents(accessgranted: P0, securitydescriptor: P1, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileOrGlobalEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileOrGlobalEvents(accessgranted.into_param().abi(), securitydescriptor.into_param().abi(), subjectsecuritycontext) + SeAuditingFileOrGlobalEvents(accessgranted.param().abi(), securitydescriptor.param().abi(), subjectsecuritycontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SeAuditingHardLinkEvents(accessgranted: P0, securitydescriptor: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingHardLinkEvents(accessgranted.into_param().abi(), securitydescriptor.into_param().abi()) + SeAuditingHardLinkEvents(accessgranted.param().abi(), securitydescriptor.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAuditingHardLinkEventsWithContext(accessgranted: P0, securitydescriptor: P1, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEventsWithContext(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingHardLinkEventsWithContext(accessgranted.into_param().abi(), securitydescriptor.into_param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null()))) + SeAuditingHardLinkEventsWithContext(accessgranted.param().abi(), securitydescriptor.param().abi(), core::mem::transmute(subjectsecuritycontext.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCaptureSubjectContextEx(thread: P0, process: P1) -> super::super::Foundation::SECURITY_SUBJECT_CONTEXT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - SeCaptureSubjectContextEx(thread.into_param().abi(), process.into_param().abi(), &mut result__); + SeCaptureSubjectContextEx(thread.param().abi(), process.param().abi(), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCheckForCriticalAceRemoval(currentdescriptor: P0, newdescriptor: P1, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 super::super::super::Win32::Foundation:: BOOLEAN)); let mut result__ = std::mem::zeroed(); - SeCheckForCriticalAceRemoval(currentdescriptor.into_param().abi(), newdescriptor.into_param().abi(), subjectsecuritycontext, &mut result__); + SeCheckForCriticalAceRemoval(currentdescriptor.param().abi(), newdescriptor.param().abi(), subjectsecuritycontext, &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCreateClientSecurity(clientthread: P0, clientsecurityqos: *const super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE, remotesession: P1, clientcontext: *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeCreateClientSecurity(clientthread.into_param().abi(), clientsecurityqos, remotesession.into_param().abi(), clientcontext) + SeCreateClientSecurity(clientthread.param().abi(), clientsecurityqos, remotesession.param().abi(), 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: P0, clientcontext: *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeCreateClientSecurityFromSubjectContext(subjectcontext, clientsecurityqos, serverisremote.into_param().abi(), clientcontext) + SeCreateClientSecurityFromSubjectContext(subjectcontext, clientsecurityqos, serverisremote.param().abi(), clientcontext) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3800,27 +3783,27 @@ pub unsafe fn SeDeleteClientSecurity(clientcontext: *mut SECURITY_CLIENT_CONTEXT #[inline] pub unsafe fn SeDeleteObjectAuditAlarm(object: *const core::ffi::c_void, handle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeDeleteObjectAuditAlarm(object : *const core::ffi::c_void, handle : super::super::super::Win32::Foundation:: HANDLE)); - SeDeleteObjectAuditAlarm(object, handle.into_param().abi()) + SeDeleteObjectAuditAlarm(object, handle.param().abi()) } #[inline] pub unsafe fn SeDeleteObjectAuditAlarmWithTransaction(object: *const core::ffi::c_void, handle: P0, transactionid: Option<*const windows_core::GUID>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(object, handle.into_param().abi(), core::mem::transmute(transactionid.unwrap_or(std::ptr::null()))) + SeDeleteObjectAuditAlarmWithTransaction(object, handle.param().abi(), core::mem::transmute(transactionid.unwrap_or(std::ptr::null()))) } #[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: P0, generateaudit: *mut super::super::super::Win32::Foundation::BOOLEAN, generatealarm: *mut super::super::super::Win32::Foundation::BOOLEAN) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, generateaudit : *mut super::super::super::Win32::Foundation:: BOOLEAN, generatealarm : *mut super::super::super::Win32::Foundation:: BOOLEAN)); - SeExamineSacl(sacl, resourcesacl, token, desiredaccess, accessgranted.into_param().abi(), generateaudit, generatealarm) + SeExamineSacl(sacl, resourcesacl, token, desiredaccess, accessgranted.param().abi(), generateaudit, generatealarm) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3838,28 +3821,28 @@ pub unsafe fn SeFreePrivileges(privileges: *const super::super::super::Win32::Se #[inline] pub unsafe fn SeImpersonateClient(clientcontext: *const SECURITY_CLIENT_CONTEXT, serverthread: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeImpersonateClient(clientcontext : *const SECURITY_CLIENT_CONTEXT, serverthread : super::super::Foundation:: PETHREAD)); - SeImpersonateClient(clientcontext, serverthread.into_param().abi()) + SeImpersonateClient(clientcontext, serverthread.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeImpersonateClientEx(clientcontext: *const SECURITY_CLIENT_CONTEXT, serverthread: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(clientcontext, serverthread.into_param().abi()) + SeImpersonateClientEx(clientcontext, serverthread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn SeLocateProcessImageName(process: P0, pimagefilename: *mut *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), pimagefilename) + SeLocateProcessImageName(process.param().abi(), pimagefilename) } #[inline] pub unsafe fn SeMarkLogonSessionForTerminationNotification(logonid: *const super::super::super::Win32::Foundation::LUID) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3870,61 +3853,61 @@ pub unsafe fn SeMarkLogonSessionForTerminationNotification(logonid: *const super #[inline] pub unsafe fn SeMarkLogonSessionForTerminationNotificationEx(logonid: *const super::super::super::Win32::Foundation::LUID, pserversilo: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(logonid, pserversilo.into_param().abi()) + SeMarkLogonSessionForTerminationNotificationEx(logonid, pserversilo.param().abi()) } #[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: P0, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: P1, accessgranted: P2, accessmode: i8) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); let mut result__ = std::mem::zeroed(); - SeOpenObjectAuditAlarm(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.into_param().abi(), accessstate, objectcreated.into_param().abi(), accessgranted.into_param().abi(), accessmode, &mut result__); + SeOpenObjectAuditAlarm(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.param().abi(), accessstate, objectcreated.param().abi(), accessgranted.param().abi(), accessmode, &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] 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: P0, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: P1, accessgranted: P2, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); let mut result__ = std::mem::zeroed(); - SeOpenObjectAuditAlarmWithTransaction(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.into_param().abi(), accessstate, objectcreated.into_param().abi(), accessgranted.into_param().abi(), accessmode, core::mem::transmute(transactionid.unwrap_or(std::ptr::null())), &mut result__); + SeOpenObjectAuditAlarmWithTransaction(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.param().abi(), accessstate, objectcreated.param().abi(), accessgranted.param().abi(), accessmode, core::mem::transmute(transactionid.unwrap_or(std::ptr::null())), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] 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: P0, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: P1, accessgranted: P2, accessmode: i8) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); let mut result__ = std::mem::zeroed(); - SeOpenObjectForDeleteAuditAlarm(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.into_param().abi(), accessstate, objectcreated.into_param().abi(), accessgranted.into_param().abi(), accessmode, &mut result__); + SeOpenObjectForDeleteAuditAlarm(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.param().abi(), accessstate, objectcreated.param().abi(), accessgranted.param().abi(), accessmode, &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] 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: P0, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: P1, accessgranted: P2, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); let mut result__ = std::mem::zeroed(); - SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.into_param().abi(), accessstate, objectcreated.into_param().abi(), accessgranted.into_param().abi(), accessmode, core::mem::transmute(transactionid.unwrap_or(std::ptr::null())), &mut result__); + SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename, core::mem::transmute(object.unwrap_or(std::ptr::null())), core::mem::transmute(absoluteobjectname.unwrap_or(std::ptr::null())), securitydescriptor.param().abi(), accessstate, objectcreated.param().abi(), accessgranted.param().abi(), accessmode, core::mem::transmute(transactionid.unwrap_or(std::ptr::null())), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -3980,10 +3963,10 @@ pub unsafe fn SeRegisterLogonSessionTerminatedRoutineEx(callbackroutine: PSE_LOG #[inline] pub unsafe fn SeReportSecurityEventWithSubCategory(flags: u32, sourcename: *const super::super::super::Win32::Foundation::UNICODE_STRING, usersid: P0, auditparameters: *const super::super::super::Win32::Security::Authentication::Identity::SE_ADT_PARAMETER_ARRAY, auditsubcategoryid: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeReportSecurityEventWithSubCategory(flags : u32, sourcename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, usersid : super::super::super::Win32::Foundation:: PSID, auditparameters : *const super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY, auditsubcategoryid : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeReportSecurityEventWithSubCategory(flags, sourcename, usersid.into_param().abi(), auditparameters, auditsubcategoryid) + SeReportSecurityEventWithSubCategory(flags, sourcename, usersid.param().abi(), auditparameters, auditsubcategoryid) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] @@ -3995,28 +3978,28 @@ pub unsafe fn SeSetAccessStateGenericMapping(accessstate: *mut super::super::Fou #[inline] pub unsafe fn SeSetSecurityDescriptorInfo(object: Option<*const core::ffi::c_void>, securityinformation: *const u32, modificationdescriptor: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), securityinformation, modificationdescriptor.into_param().abi(), objectssecuritydescriptor, pooltype, genericmapping) + SeSetSecurityDescriptorInfo(core::mem::transmute(object.unwrap_or(std::ptr::null())), securityinformation, modificationdescriptor.param().abi(), 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), securityinformation, modificationdescriptor.into_param().abi(), objectssecuritydescriptor, autoinheritflags, pooltype, genericmapping) + SeSetSecurityDescriptorInfoEx(core::mem::transmute(object.unwrap_or(std::ptr::null())), securityinformation, modificationdescriptor.param().abi(), 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: P0, accessstate: *const super::super::Foundation::ACCESS_STATE) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeShouldCheckForAccessRightsFromParent(objecttype, childdescriptor.into_param().abi(), accessstate) + SeShouldCheckForAccessRightsFromParent(objecttype, childdescriptor.param().abi(), accessstate) } #[cfg(feature = "Win32_Security")] #[inline] @@ -4065,10 +4048,10 @@ pub unsafe fn SecLookupAccountName(name: *const super::super::super::Win32::Foun #[inline] pub unsafe fn SecLookupAccountSid(sid: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ksecdd.sys" "system" fn SecLookupAccountSid(sid : super::super::super::Win32::Foundation:: 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(sid.into_param().abi(), namesize, namebuffer, domainsize, core::mem::transmute(domainbuffer.unwrap_or(std::ptr::null_mut())), nameuse) + SecLookupAccountSid(sid.param().abi(), namesize, namebuffer, domainsize, core::mem::transmute(domainbuffer.unwrap_or(std::ptr::null_mut())), nameuse) } #[cfg(feature = "Win32_Security")] #[inline] @@ -4079,27 +4062,27 @@ pub unsafe fn SecLookupWellKnownSid(sidtype: super::super::super::Win32::Securit #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPN(serviceclass, servicename, instancename, instanceport, referrer, spn, length, allocate.into_param().abi()) + SecMakeSPN(serviceclass, servicename, instancename, instanceport, referrer, spn, length, allocate.param().abi()) } #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPNEx(serviceclass, servicename, instancename, instanceport, referrer, targetinfo, spn, length, allocate.into_param().abi()) + SecMakeSPNEx(serviceclass, servicename, instancename, instanceport, referrer, targetinfo, spn, length, allocate.param().abi()) } #[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: P0, istargetinfomarshaled: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, istargetinfomarshaled : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPNEx2(serviceclass, servicename, instancename, instanceport, referrer, intargetinfo, spn, totalsize, allocate.into_param().abi(), istargetinfomarshaled.into_param().abi()) + SecMakeSPNEx2(serviceclass, servicename, instancename, instanceport, referrer, intargetinfo, spn, totalsize, allocate.param().abi(), istargetinfomarshaled.param().abi()) } #[inline] pub unsafe fn SetContextAttributesW(phcontext: *const SecHandle, ulattribute: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { @@ -4116,11 +4099,11 @@ pub unsafe fn SspiAcceptSecurityContextAsync(asynccontext: *mut super::super::Fo #[inline] pub unsafe fn SspiAcquireCredentialsHandleAsyncA(asynccontext: *mut super::super::Foundation::SspiAsyncContext, pszprincipal: P0, pszpackage: P1, fcredentialuse: u32, pvlogonid: Option<*const core::ffi::c_void>, pauthdata: Option<*const core::ffi::c_void>, pgetkeyfn: super::super::super::Win32::Security::Authentication::Identity::SEC_GET_KEY_FN, pvgetkeyargument: Option<*const core::ffi::c_void>, phcredential: *const SecHandle, ptsexpiry: Option<*const i64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(asynccontext, pszprincipal.into_param().abi(), pszpackage.into_param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(std::ptr::null())), core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null()))).ok() + SspiAcquireCredentialsHandleAsyncA(asynccontext, pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(std::ptr::null())), core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null()))).ok() } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security_Authentication_Identity"))] #[inline] @@ -4162,10 +4145,10 @@ pub unsafe fn SspiGetAsyncCallStatus(handle: *const super::super::Foundation::Ss #[inline] pub unsafe fn SspiInitializeSecurityContextAsyncA(asynccontext: *mut super::super::Foundation::SspiAsyncContext, phcredential: Option<*const SecHandle>, phcontext: Option<*const SecHandle>, psztargetname: P0, fcontextreq: u32, reserved1: u32, targetdatarep: u32, pinput: Option<*const SecBufferDesc>, reserved2: u32, phnewcontext: Option<*const SecHandle>, poutput: Option<*const SecBufferDesc>, pfcontextattr: *const u32, ptsexpiry: Option<*const i64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ksecdd.sys" "system" fn SspiInitializeSecurityContextAsyncA(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle, phcontext : *const SecHandle, psztargetname : windows_core::PCSTR, fcontextreq : u32, reserved1 : u32, targetdatarep : u32, pinput : *const SecBufferDesc, reserved2 : u32, phnewcontext : *const SecHandle, poutput : *const SecBufferDesc, pfcontextattr : *const u32, ptsexpiry : *const i64) -> windows_core::HRESULT); - SspiInitializeSecurityContextAsyncA(asynccontext, core::mem::transmute(phcredential.unwrap_or(std::ptr::null())), core::mem::transmute(phcontext.unwrap_or(std::ptr::null())), psztargetname.into_param().abi(), fcontextreq, reserved1, targetdatarep, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(phnewcontext.unwrap_or(std::ptr::null())), core::mem::transmute(poutput.unwrap_or(std::ptr::null())), pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null()))).ok() + SspiInitializeSecurityContextAsyncA(asynccontext, core::mem::transmute(phcredential.unwrap_or(std::ptr::null())), core::mem::transmute(phcontext.unwrap_or(std::ptr::null())), psztargetname.param().abi(), fcontextreq, reserved1, targetdatarep, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(phnewcontext.unwrap_or(std::ptr::null())), core::mem::transmute(poutput.unwrap_or(std::ptr::null())), pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4209,28 +4192,28 @@ pub unsafe fn VerifySignature(phcontext: *const SecHandle, pmessage: *const SecB #[inline] pub unsafe fn ZwAllocateVirtualMemory(processhandle: P0, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, regionsize: *mut usize, allocationtype: u32, protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), baseaddress, zerobits, regionsize, allocationtype, protect) + ZwAllocateVirtualMemory(processhandle.param().abi(), baseaddress, zerobits, regionsize, allocationtype, protect) } #[cfg(feature = "Win32_System_Memory")] #[inline] pub unsafe fn ZwAllocateVirtualMemoryEx(processhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), baseaddress, 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())) + ZwAllocateVirtualMemoryEx(processhandle.param().abi(), baseaddress, 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(all(feature = "Wdk_Foundation", 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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateEvent(eventhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), eventtype, initialstate.into_param().abi()) + ZwCreateEvent(eventhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), eventtype, initialstate.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4241,91 +4224,91 @@ pub unsafe fn ZwDeleteFile(objectattributes: *const super::super::Foundation::OB #[inline] pub unsafe fn ZwDuplicateObject(sourceprocesshandle: P0, sourcehandle: P1, targetprocesshandle: P2, targethandle: Option<*mut super::super::super::Win32::Foundation::HANDLE>, desiredaccess: u32, handleattributes: u32, options: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(sourceprocesshandle.into_param().abi(), sourcehandle.into_param().abi(), targetprocesshandle.into_param().abi(), core::mem::transmute(targethandle.unwrap_or(std::ptr::null_mut())), desiredaccess, handleattributes, options) + ZwDuplicateObject(sourceprocesshandle.param().abi(), sourcehandle.param().abi(), targetprocesshandle.param().abi(), core::mem::transmute(targethandle.unwrap_or(std::ptr::null_mut())), desiredaccess, handleattributes, options) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwDuplicateToken(existingtokenhandle: P0, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, effectiveonly: P1, tokentype: super::super::super::Win32::Security::TOKEN_TYPE, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDuplicateToken(existingtokenhandle.into_param().abi(), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), effectiveonly.into_param().abi(), tokentype, newtokenhandle) + ZwDuplicateToken(existingtokenhandle.param().abi(), desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), effectiveonly.param().abi(), tokentype, newtokenhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFlushBuffersFile(filehandle: P0, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock) + ZwFlushBuffersFile(filehandle.param().abi(), iostatusblock) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFlushBuffersFileEx(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), flags, parameters, parameterssize, iostatusblock) + ZwFlushBuffersFileEx(filehandle.param().abi(), flags, parameters, parameterssize, iostatusblock) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFlushVirtualMemory(processhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), baseaddress, regionsize, iostatus) + ZwFlushVirtualMemory(processhandle.param().abi(), baseaddress, regionsize, iostatus) } #[inline] pub unsafe fn ZwFreeVirtualMemory(processhandle: P0, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, freetype: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), baseaddress, regionsize, freetype) + ZwFreeVirtualMemory(processhandle.param().abi(), baseaddress, regionsize, freetype) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwFsControlFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) + ZwFsControlFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fscontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwLockFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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: P2, exclusivelock: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwLockFile(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, byteoffset, length, key, failimmediately.into_param().abi(), exclusivelock.into_param().abi()) + ZwLockFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, byteoffset, length, key, failimmediately.param().abi(), exclusivelock.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwNotifyChangeKey(keyhandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: P2, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwNotifyChangeKey(keyhandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, completionfilter, watchtree.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, asynchronous.into_param().abi()) + ZwNotifyChangeKey(keyhandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, completionfilter, watchtree.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, asynchronous.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4336,52 +4319,52 @@ pub unsafe fn ZwOpenDirectoryObject(directoryhandle: *mut super::super::super::W #[inline] pub unsafe fn ZwOpenProcessTokenEx(processhandle: P0, desiredaccess: u32, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), desiredaccess, handleattributes, tokenhandle) + ZwOpenProcessTokenEx(processhandle.param().abi(), desiredaccess, handleattributes, tokenhandle) } #[inline] pub unsafe fn ZwOpenThreadTokenEx(threadhandle: P0, desiredaccess: u32, openasself: P1, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenThreadTokenEx(threadhandle.into_param().abi(), desiredaccess, openasself.into_param().abi(), handleattributes, tokenhandle) + ZwOpenThreadTokenEx(threadhandle.param().abi(), desiredaccess, openasself.param().abi(), handleattributes, tokenhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryDirectoryFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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: P2, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryDirectoryFile(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, returnsingleentry.into_param().abi(), core::mem::transmute(filename.unwrap_or(std::ptr::null())), restartscan.into_param().abi()) + ZwQueryDirectoryFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, returnsingleentry.param().abi(), core::mem::transmute(filename.unwrap_or(std::ptr::null())), restartscan.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryDirectoryFileEx(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(std::ptr::null()))) + ZwQueryDirectoryFileEx(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, fileinformation, length, fileinformationclass, queryflags, core::mem::transmute(filename.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryEaFile(filehandle: P0, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: P1, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: P2) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryEaFile(filehandle.into_param().abi(), iostatusblock, buffer, length, returnsingleentry.into_param().abi(), core::mem::transmute(ealist.unwrap_or(std::ptr::null())), ealistlength, core::mem::transmute(eaindex.unwrap_or(std::ptr::null())), restartscan.into_param().abi()) + ZwQueryEaFile(filehandle.param().abi(), iostatusblock, buffer, length, returnsingleentry.param().abi(), core::mem::transmute(ealist.unwrap_or(std::ptr::null())), ealistlength, core::mem::transmute(eaindex.unwrap_or(std::ptr::null())), restartscan.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4393,137 +4376,137 @@ pub unsafe fn ZwQueryFullAttributesFile(objectattributes: *const super::super::F #[inline] pub unsafe fn ZwQueryInformationToken(tokenhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tokenhandle.into_param().abi(), tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(std::ptr::null_mut())), tokeninformationlength, returnlength) + ZwQueryInformationToken(tokenhandle.param().abi(), tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(std::ptr::null_mut())), tokeninformationlength, returnlength) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ZwQueryObject(handle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), objectinformationclass, core::mem::transmute(objectinformation.unwrap_or(std::ptr::null_mut())), objectinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + ZwQueryObject(handle.param().abi(), objectinformationclass, core::mem::transmute(objectinformation.unwrap_or(std::ptr::null_mut())), objectinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryQuotaInformationFile(filehandle: P0, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: P1, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: P2, restartscan: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Foundation:: PSID, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryQuotaInformationFile(filehandle.into_param().abi(), iostatusblock, buffer, length, returnsingleentry.into_param().abi(), core::mem::transmute(sidlist.unwrap_or(std::ptr::null())), sidlistlength, startsid.into_param().abi(), restartscan.into_param().abi()) + ZwQueryQuotaInformationFile(filehandle.param().abi(), iostatusblock, buffer, length, returnsingleentry.param().abi(), core::mem::transmute(sidlist.unwrap_or(std::ptr::null())), sidlistlength, startsid.param().abi(), restartscan.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwQuerySecurityObject(handle: P0, securityinformation: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, length: u32, lengthneeded: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), securityinformation, securitydescriptor, length, lengthneeded) + ZwQuerySecurityObject(handle.param().abi(), securityinformation, securitydescriptor, length, lengthneeded) } #[inline] pub unsafe fn ZwQueryVirtualMemory(processhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), memoryinformationclass, memoryinformation, memoryinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + ZwQueryVirtualMemory(processhandle.param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), memoryinformationclass, memoryinformation, memoryinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryVolumeInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fsinformation, length, fsinformationclass) + ZwQueryVolumeInformationFile(filehandle.param().abi(), iostatusblock, fsinformation, length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwSetEaFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, buffer, length) + ZwSetEaFile(filehandle.param().abi(), iostatusblock, buffer, length) } #[inline] pub unsafe fn ZwSetEvent(eventhandle: P0, previousstate: Option<*mut i32>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(eventhandle.into_param().abi(), core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut()))) + ZwSetEvent(eventhandle.param().abi(), core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwSetInformationToken(tokenhandle: P0, tokeninformationclass: super::super::super::Win32::Security::TOKEN_INFORMATION_CLASS, tokeninformation: *const core::ffi::c_void, tokeninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tokenhandle.into_param().abi(), tokeninformationclass, tokeninformation, tokeninformationlength) + ZwSetInformationToken(tokenhandle.param().abi(), tokeninformationclass, tokeninformation, tokeninformationlength) } #[inline] pub unsafe fn ZwSetInformationVirtualMemory(processhandle: P0, vminformationclass: VIRTUAL_MEMORY_INFORMATION_CLASS, virtualaddresses: &[MEMORY_RANGE_ENTRY], vminformation: *const core::ffi::c_void, vminformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), vminformationclass, virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), vminformation, vminformationlength) + ZwSetInformationVirtualMemory(processhandle.param().abi(), 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, buffer, length) + ZwSetQuotaInformationFile(filehandle.param().abi(), iostatusblock, buffer, length) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwSetSecurityObject(handle: P0, securityinformation: u32, securitydescriptor: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(handle.into_param().abi(), securityinformation, securitydescriptor.into_param().abi()) + ZwSetSecurityObject(handle.param().abi(), securityinformation, securitydescriptor.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwSetVolumeInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fsinformation, length, fsinformationclass) + ZwSetVolumeInformationFile(filehandle.param().abi(), iostatusblock, fsinformation, length, fsinformationclass) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwUnlockFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, byteoffset, length, key) + ZwUnlockFile(filehandle.param().abi(), iostatusblock, byteoffset, length, key) } #[inline] pub unsafe fn ZwWaitForSingleObject(handle: P0, alertable: P1, timeout: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwWaitForSingleObject(handle.into_param().abi(), alertable.into_param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null()))) + ZwWaitForSingleObject(handle.param().abi(), alertable.param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null()))) } pub const ATOMIC_CREATE_ECP_IN_FLAG_BEST_EFFORT: u32 = 256u32; pub const ATOMIC_CREATE_ECP_IN_FLAG_EOF_SPECIFIED: u32 = 4u32; 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 492a223d73..baea09c46f 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/IO/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/IO/mod.rs @@ -2,9 +2,9 @@ #[inline] pub unsafe fn NtDeviceIoControlFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) + NtDeviceIoControlFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) } 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 435442fa0b..b532178147 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn ORCloseHive(handle: P0) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORCloseHive(handle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORCloseHive(handle.into_param().abi()) + ORCloseHive(handle.param().abi()) } #[inline] pub unsafe fn ORCloseKey(keyhandle: P0) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORCloseKey(keyhandle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORCloseKey(keyhandle.into_param().abi()) + ORCloseKey(keyhandle.param().abi()) } #[inline] pub unsafe fn ORCreateHive(horkey: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR { @@ -23,66 +23,66 @@ pub unsafe fn ORCreateHive(horkey: *mut ORHKEY) -> super::super::super::Win32::F #[inline] pub unsafe fn ORCreateKey(keyhandle: P0, lpsubkey: P1, lpclass: P2, dwoptions: u32, psecuritydescriptor: P3, phkresult: *mut ORHKEY, pdwdisposition: Option<*mut u32>) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(keyhandle.into_param().abi(), lpsubkey.into_param().abi(), lpclass.into_param().abi(), dwoptions, psecuritydescriptor.into_param().abi(), phkresult, core::mem::transmute(pdwdisposition.unwrap_or(std::ptr::null_mut()))) + ORCreateKey(keyhandle.param().abi(), lpsubkey.param().abi(), lpclass.param().abi(), dwoptions, psecuritydescriptor.param().abi(), phkresult, core::mem::transmute(pdwdisposition.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ORDeleteKey(handle: P0, lpsubkey: P1) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(handle.into_param().abi(), lpsubkey.into_param().abi()) + ORDeleteKey(handle.param().abi(), lpsubkey.param().abi()) } #[inline] pub unsafe fn ORDeleteValue(handle: P0, lpvaluename: P1) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(handle.into_param().abi(), lpvaluename.into_param().abi()) + ORDeleteValue(handle.param().abi(), lpvaluename.param().abi()) } #[inline] pub unsafe fn OREnumKey(handle: P0, dwindex: u32, lpname: windows_core::PWSTR, lpcname: *mut u32, lpclass: windows_core::PWSTR, lpcclass: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::super::Win32::Foundation::FILETIME>) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), dwindex, core::mem::transmute(lpname), lpcname, core::mem::transmute(lpclass), core::mem::transmute(lpcclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) + OREnumKey(handle.param().abi(), dwindex, core::mem::transmute(lpname), lpcname, core::mem::transmute(lpclass), core::mem::transmute(lpcclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OREnumValue(handle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), dwindex, core::mem::transmute(lpvaluename), lpcvaluename, core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + OREnumValue(handle.param().abi(), dwindex, core::mem::transmute(lpvaluename), lpcvaluename, core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ORGetKeySecurity(handle: P0, securityinformation: u32, psecuritydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor: *mut u32) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), securityinformation, psecuritydescriptor, lpcbsecuritydescriptor) + ORGetKeySecurity(handle.param().abi(), securityinformation, psecuritydescriptor, lpcbsecuritydescriptor) } #[inline] pub unsafe fn ORGetValue(handle: P0, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(handle.into_param().abi(), lpsubkey.into_param().abi(), lpvalue.into_param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + ORGetValue(handle.param().abi(), lpsubkey.param().abi(), lpvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ORGetVersion(pdwmajorversion: *mut u32, pdwminorversion: *mut u32) -> super::super::super::Win32::Foundation::WIN32_ERROR { @@ -92,10 +92,10 @@ pub unsafe fn ORGetVersion(pdwmajorversion: *mut u32, pdwminorversion: *mut u32) #[inline] pub unsafe fn ORGetVirtualFlags(handle: P0, pdwflags: *mut u32) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORGetVirtualFlags(handle : ORHKEY, pdwflags : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORGetVirtualFlags(handle.into_param().abi(), pdwflags) + ORGetVirtualFlags(handle.param().abi(), pdwflags) } #[inline] pub unsafe fn ORMergeHives(hivehandles: &[ORHKEY], phkresult: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR { @@ -105,36 +105,36 @@ pub unsafe fn ORMergeHives(hivehandles: &[ORHKEY], phkresult: *mut ORHKEY) -> su #[inline] pub unsafe fn OROpenHive(filepath: P0, horkey: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn OROpenHive(filepath : windows_core::PCWSTR, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - OROpenHive(filepath.into_param().abi(), horkey) + OROpenHive(filepath.param().abi(), horkey) } #[inline] pub unsafe fn OROpenHiveByHandle(filehandle: P0, horkey: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), horkey) + OROpenHiveByHandle(filehandle.param().abi(), horkey) } #[inline] pub unsafe fn OROpenKey(handle: P0, lpsubkey: P1, phkresult: *mut ORHKEY) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(handle.into_param().abi(), lpsubkey.into_param().abi(), phkresult) + OROpenKey(handle.param().abi(), lpsubkey.param().abi(), phkresult) } #[inline] pub unsafe fn ORQueryInfoKey(handle: P0, lpclass: windows_core::PWSTR, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - handle.into_param().abi(), + handle.param().abi(), core::mem::transmute(lpclass), core::mem::transmute(lpcclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcsubkeys.unwrap_or(std::ptr::null_mut())), @@ -150,47 +150,47 @@ where #[inline] pub unsafe fn ORRenameKey(handle: P0, lpnewname: P1) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(handle.into_param().abi(), lpnewname.into_param().abi()) + ORRenameKey(handle.param().abi(), lpnewname.param().abi()) } #[inline] pub unsafe fn ORSaveHive(horkey: P0, hivepath: P1, osmajorversion: u32, osminorversion: u32) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(horkey.into_param().abi(), hivepath.into_param().abi(), osmajorversion, osminorversion) + ORSaveHive(horkey.param().abi(), hivepath.param().abi(), osmajorversion, osminorversion) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ORSetKeySecurity(handle: P0, securityinformation: u32, psecuritydescriptor: P1) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(handle.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()) + ORSetKeySecurity(handle.param().abi(), securityinformation, psecuritydescriptor.param().abi()) } #[inline] pub unsafe fn ORSetValue(handle: P0, lpvaluename: P1, dwtype: u32, lpdata: Option<&[u8]>) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(handle.into_param().abi(), lpvaluename.into_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())) + ORSetValue(handle.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())) } #[inline] pub unsafe fn ORSetVirtualFlags(handle: P0, dwflags: u32) -> super::super::super::Win32::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("offreg.dll" "system" fn ORSetVirtualFlags(handle : ORHKEY, dwflags : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR); - ORSetVirtualFlags(handle.into_param().abi(), dwflags) + ORSetVirtualFlags(handle.param().abi(), 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 410e7958e4..4779392dab 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs @@ -2,58 +2,45 @@ #[inline] pub unsafe fn NtNotifyChangeMultipleKeys(masterkeyhandle: P0, subordinateobjects: Option<&[super::super::Foundation::OBJECT_ATTRIBUTES]>, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: P2, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: P3) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtNotifyChangeMultipleKeys( - masterkeyhandle.into_param().abi(), - 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())), - event.into_param().abi(), - apcroutine, - core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), - iostatusblock, - completionfilter, - watchtree.into_param().abi(), - core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), - buffersize, - asynchronous.into_param().abi(), - ) + NtNotifyChangeMultipleKeys(masterkeyhandle.param().abi(), 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())), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, completionfilter, watchtree.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, asynchronous.param().abi()) } #[inline] pub unsafe fn NtQueryMultipleValueKey(keyhandle: P0, valueentries: &mut [KEY_VALUE_ENTRY], valuebuffer: *mut core::ffi::c_void, bufferlength: *mut u32, requiredbufferlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), core::mem::transmute(valueentries.as_ptr()), valueentries.len().try_into().unwrap(), valuebuffer, bufferlength, core::mem::transmute(requiredbufferlength.unwrap_or(std::ptr::null_mut()))) + NtQueryMultipleValueKey(keyhandle.param().abi(), core::mem::transmute(valueentries.as_ptr()), valueentries.len().try_into().unwrap(), valuebuffer, bufferlength, core::mem::transmute(requiredbufferlength.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NtRenameKey(keyhandle: P0, newname: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), newname) + NtRenameKey(keyhandle.param().abi(), newname) } #[inline] pub unsafe fn NtSetInformationKey(keyhandle: P0, keysetinformationclass: KEY_SET_INFORMATION_CLASS, keysetinformation: *const core::ffi::c_void, keysetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), keysetinformationclass, keysetinformation, keysetinformationlength) + NtSetInformationKey(keyhandle.param().abi(), keysetinformationclass, keysetinformation, keysetinformationlength) } #[inline] pub unsafe fn ZwSetInformationKey(keyhandle: P0, keysetinformationclass: KEY_SET_INFORMATION_CLASS, keysetinformation: *const core::ffi::c_void, keysetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), keysetinformationclass, keysetinformation, keysetinformationlength) + ZwSetInformationKey(keyhandle.param().abi(), keysetinformationclass, keysetinformation, keysetinformationlength) } pub const KeyControlFlagsInformation: KEY_SET_INFORMATION_CLASS = KEY_SET_INFORMATION_CLASS(2i32); pub const KeySetDebugInformation: KEY_SET_INFORMATION_CLASS = KEY_SET_INFORMATION_CLASS(4i32); 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 115a60717d..8ace2097f1 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs @@ -42,10 +42,10 @@ pub unsafe fn ClfsCloseLogFileObject(plfolog: *const super::super::Foundation::F #[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: P0, fcreatedisposition: u32, fcreateoptions: u32, fflagsandattributes: u32, flogoptionflag: u32, pvcontext: Option<*const core::ffi::c_void>, cbcontext: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(pplfolog, puszlogfilename, fdesiredaccess, dwsharemode, psdlogfile.into_param().abi(), fcreatedisposition, fcreateoptions, fflagsandattributes, flogoptionflag, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), cbcontext) + ClfsCreateLogFile(pplfolog, puszlogfilename, fdesiredaccess, dwsharemode, psdlogfile.param().abi(), fcreatedisposition, fcreateoptions, fflagsandattributes, flogoptionflag, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), 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] @@ -246,10 +246,10 @@ pub unsafe fn ClfsMgmtSetLogFileSizeAsClient(logfile: *const super::super::Found #[inline] pub unsafe fn ClfsMgmtTailAdvanceFailure(client: *const core::ffi::c_void, reason: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(client, reason.into_param().abi()) + ClfsMgmtTailAdvanceFailure(client, reason.param().abi()) } #[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] @@ -285,19 +285,19 @@ 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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsRemoveLogContainer(plfolog, puszcontainerpath, fforce.into_param().abi()) + ClfsRemoveLogContainer(plfolog, puszcontainerpath, fforce.param().abi()) } #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsRemoveLogContainerSet(plfolog, rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.into_param().abi()) + ClfsRemoveLogContainerSet(plfolog, rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.param().abi()) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -420,34 +420,34 @@ pub unsafe fn DbgBreakPointWithStatus(status: u32) { #[inline] pub unsafe fn DbgPrint(format: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "cdecl" fn DbgPrint(format : windows_core::PCSTR) -> u32); - DbgPrint(format.into_param().abi()) + DbgPrint(format.param().abi()) } #[inline] pub unsafe fn DbgPrintEx(componentid: u32, level: u32, format: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "cdecl" fn DbgPrintEx(componentid : u32, level : u32, format : windows_core::PCSTR) -> u32); - DbgPrintEx(componentid, level, format.into_param().abi()) + DbgPrintEx(componentid, level, format.param().abi()) } #[inline] pub unsafe fn DbgPrintReturnControlC(format: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "cdecl" fn DbgPrintReturnControlC(format : windows_core::PCSTR) -> u32); - DbgPrintReturnControlC(format.into_param().abi()) + DbgPrintReturnControlC(format.param().abi()) } #[inline] pub unsafe fn DbgPrompt(prompt: P0, response: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn DbgPrompt(prompt : windows_core::PCSTR, response : windows_core::PSTR, length : u32) -> u32); - DbgPrompt(prompt.into_param().abi(), core::mem::transmute(response.as_ptr()), response.len().try_into().unwrap()) + DbgPrompt(prompt.param().abi(), core::mem::transmute(response.as_ptr()), response.len().try_into().unwrap()) } #[inline] pub unsafe fn DbgQueryDebugFilterState(componentid: u32, level: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -457,19 +457,19 @@ pub unsafe fn DbgQueryDebugFilterState(componentid: u32, level: u32) -> super::s #[inline] pub unsafe fn DbgSetDebugFilterState(componentid: u32, level: u32, state: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn DbgSetDebugFilterState(componentid : u32, level : u32, state : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - DbgSetDebugFilterState(componentid, level, state.into_param().abi()) + DbgSetDebugFilterState(componentid, level, state.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn DbgSetDebugPrintCallback(debugprintcallback: PDEBUG_PRINT_CALLBACK, enable: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn DbgSetDebugPrintCallback(debugprintcallback : PDEBUG_PRINT_CALLBACK, enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - DbgSetDebugPrintCallback(debugprintcallback, enable.into_param().abi()) + DbgSetDebugPrintCallback(debugprintcallback, enable.param().abi()) } #[inline] pub unsafe fn EtwActivityIdControl(controlcode: u32, activityid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -518,10 +518,10 @@ pub unsafe fn EtwWriteEx(reghandle: u64, eventdescriptor: *const super::super::s #[inline] pub unsafe fn EtwWriteString(reghandle: u64, level: u8, keyword: u64, activityid: Option<*const windows_core::GUID>, string: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn EtwWriteString(reghandle : u64, level : u8, keyword : u64, activityid : *const windows_core::GUID, string : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - EtwWriteString(reghandle, level, keyword, core::mem::transmute(activityid.unwrap_or(std::ptr::null())), string.into_param().abi()) + EtwWriteString(reghandle, level, keyword, core::mem::transmute(activityid.unwrap_or(std::ptr::null())), string.param().abi()) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] @@ -555,19 +555,19 @@ pub unsafe fn ExAcquirePushLockSharedEx(pushlock: *mut usize, flags: u32) { #[inline] pub unsafe fn ExAcquireResourceExclusiveLite(resource: *mut super::super::Foundation::ERESOURCE, wait: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceExclusiveLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireResourceExclusiveLite(resource, wait.into_param().abi()) + ExAcquireResourceExclusiveLite(resource, wait.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExAcquireResourceSharedLite(resource: *mut super::super::Foundation::ERESOURCE, wait: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceSharedLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireResourceSharedLite(resource, wait.into_param().abi()) + ExAcquireResourceSharedLite(resource, wait.param().abi()) } #[inline] pub unsafe fn ExAcquireRundownProtection(runref: *mut EX_RUNDOWN_REF) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -578,19 +578,19 @@ pub unsafe fn ExAcquireRundownProtection(runref: *mut EX_RUNDOWN_REF) -> super:: #[inline] pub unsafe fn ExAcquireRundownProtectionCacheAware(runrefcacheaware: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireRundownProtectionCacheAware(runrefcacheaware.into_param().abi()) + ExAcquireRundownProtectionCacheAware(runrefcacheaware.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware: P0, count: u32) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware.into_param().abi(), count) + ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware.param().abi(), count) } #[inline] pub unsafe fn ExAcquireRundownProtectionEx(runref: *mut EX_RUNDOWN_REF, count: u32) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -601,19 +601,19 @@ pub unsafe fn ExAcquireRundownProtectionEx(runref: *mut EX_RUNDOWN_REF, count: u #[inline] pub unsafe fn ExAcquireSharedStarveExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedStarveExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireSharedStarveExclusive(resource, wait.into_param().abi()) + ExAcquireSharedStarveExclusive(resource, wait.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ExAcquireSharedWaitForExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedWaitForExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireSharedWaitForExclusive(resource, wait.into_param().abi()) + ExAcquireSharedWaitForExclusive(resource, wait.param().abi()) } #[inline] pub unsafe fn ExAcquireSpinLockExclusive(spinlock: *mut i32) -> u8 { @@ -691,19 +691,19 @@ pub unsafe fn ExAllocateTimer(callback: PEXT_CALLBACK, callbackcontext: Option<* #[inline] pub unsafe fn ExCancelTimer(timer: P0, parameters: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExCancelTimer(timer : super::super::Foundation:: PEX_TIMER, parameters : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExCancelTimer(timer.into_param().abi(), core::mem::transmute(parameters.unwrap_or(std::ptr::null()))) + ExCancelTimer(timer.param().abi(), core::mem::transmute(parameters.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExCleanupRundownProtectionCacheAware(runrefcacheaware: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExCleanupRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExCleanupRundownProtectionCacheAware(runrefcacheaware.into_param().abi()) + ExCleanupRundownProtectionCacheAware(runrefcacheaware.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -715,11 +715,11 @@ 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: P0, allowmultiplecallbacks: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExCreateCallback(callbackobject : *mut super::super::Foundation:: PCALLBACK_OBJECT, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, create : super::super::super::Win32::Foundation:: BOOLEAN, allowmultiplecallbacks : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExCreateCallback(callbackobject, objectattributes, create.into_param().abi(), allowmultiplecallbacks.into_param().abi()) + ExCreateCallback(callbackobject, objectattributes, create.param().abi(), allowmultiplecallbacks.param().abi()) } #[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 { @@ -736,20 +736,20 @@ pub unsafe fn ExDeleteResourceLite(resource: *mut super::super::Foundation::ERES #[inline] pub unsafe fn ExDeleteTimer(timer: P0, cancel: P1, wait: P2, parameters: Option<*const EXT_DELETE_PARAMETERS>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExDeleteTimer(timer : super::super::Foundation:: PEX_TIMER, cancel : super::super::super::Win32::Foundation:: BOOLEAN, wait : super::super::super::Win32::Foundation:: BOOLEAN, parameters : *const EXT_DELETE_PARAMETERS) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExDeleteTimer(timer.into_param().abi(), cancel.into_param().abi(), wait.into_param().abi(), core::mem::transmute(parameters.unwrap_or(std::ptr::null()))) + ExDeleteTimer(timer.param().abi(), cancel.param().abi(), wait.param().abi(), core::mem::transmute(parameters.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ExDestroyPool(poolhandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExDestroyPool(poolhandle : super::super::super::Win32::Foundation:: HANDLE)); - ExDestroyPool(poolhandle.into_param().abi()) + ExDestroyPool(poolhandle.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -784,10 +784,10 @@ pub unsafe fn ExExtendZone(zone: *mut ZONE_HEADER, segment: *mut core::ffi::c_vo #[inline] pub unsafe fn ExFreeCacheAwareRundownProtection(runrefcacheaware: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExFreeCacheAwareRundownProtection(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExFreeCacheAwareRundownProtection(runrefcacheaware.into_param().abi()) + ExFreeCacheAwareRundownProtection(runrefcacheaware.param().abi()) } #[inline] pub unsafe fn ExFreePool(p: *mut core::ffi::c_void) { @@ -861,19 +861,19 @@ pub unsafe fn ExInitializeRundownProtection() -> EX_RUNDOWN_REF { #[inline] pub unsafe fn ExInitializeRundownProtectionCacheAware(runrefcacheaware: P0, runrefsize: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExInitializeRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, runrefsize : usize)); - ExInitializeRundownProtectionCacheAware(runrefcacheaware.into_param().abi(), runrefsize) + ExInitializeRundownProtectionCacheAware(runrefcacheaware.param().abi(), runrefsize) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExInitializeRundownProtectionCacheAwareEx(runrefcacheaware: P0, flags: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExInitializeRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, flags : u32)); - ExInitializeRundownProtectionCacheAwareEx(runrefcacheaware.into_param().abi(), flags) + ExInitializeRundownProtectionCacheAwareEx(runrefcacheaware.param().abi(), flags) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -955,10 +955,10 @@ pub unsafe fn ExRaiseDatatypeMisalignment() { #[inline] pub unsafe fn ExRaiseStatus(status: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExRaiseStatus(status : super::super::super::Win32::Foundation:: NTSTATUS)); - ExRaiseStatus(status.into_param().abi()) + ExRaiseStatus(status.param().abi()) } #[inline] pub unsafe fn ExReInitializeRundownProtection(runref: *mut EX_RUNDOWN_REF) { @@ -969,19 +969,19 @@ pub unsafe fn ExReInitializeRundownProtection(runref: *mut EX_RUNDOWN_REF) { #[inline] pub unsafe fn ExReInitializeRundownProtectionCacheAware(runrefcacheaware: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExReInitializeRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExReInitializeRundownProtectionCacheAware(runrefcacheaware.into_param().abi()) + ExReInitializeRundownProtectionCacheAware(runrefcacheaware.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExRegisterCallback(callbackobject: P0, callbackfunction: PCALLBACK_FUNCTION, callbackcontext: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(callbackobject.into_param().abi(), callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + ExRegisterCallback(callbackobject.param().abi(), callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1038,19 +1038,19 @@ pub unsafe fn ExReleaseRundownProtection(runref: *mut EX_RUNDOWN_REF) { #[inline] pub unsafe fn ExReleaseRundownProtectionCacheAware(runrefcacheaware: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExReleaseRundownProtectionCacheAware(runrefcacheaware.into_param().abi()) + ExReleaseRundownProtectionCacheAware(runrefcacheaware.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ExReleaseRundownProtectionCacheAwareEx(runref: P0, count: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExReleaseRundownProtectionCacheAwareEx(runref : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32)); - ExReleaseRundownProtectionCacheAwareEx(runref.into_param().abi(), count) + ExReleaseRundownProtectionCacheAwareEx(runref.param().abi(), count) } #[inline] pub unsafe fn ExReleaseRundownProtectionEx(runref: *mut EX_RUNDOWN_REF, count: u32) { @@ -1088,26 +1088,26 @@ pub unsafe fn ExRundownCompleted() -> EX_RUNDOWN_REF { #[inline] pub unsafe fn ExRundownCompletedCacheAware(runrefcacheaware: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExRundownCompletedCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExRundownCompletedCacheAware(runrefcacheaware.into_param().abi()) + ExRundownCompletedCacheAware(runrefcacheaware.param().abi()) } #[inline] pub unsafe fn ExSecurePoolUpdate(securepoolhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(securepoolhandle.into_param().abi(), tag, allocation, cookie, offset, size, buffer) + ExSecurePoolUpdate(securepoolhandle.param().abi(), tag, allocation, cookie, offset, size, buffer) } #[inline] pub unsafe fn ExSecurePoolValidate(securepoolhandle: P0, tag: u32, allocation: *const core::ffi::c_void, cookie: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(securepoolhandle.into_param().abi(), tag, allocation, cookie) + ExSecurePoolValidate(securepoolhandle.param().abi(), 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 { @@ -1130,18 +1130,18 @@ pub unsafe fn ExSetResourceOwnerPointerEx(resource: *mut super::super::Foundatio #[inline] pub unsafe fn ExSetTimer(timer: P0, duetime: i64, period: i64, parameters: Option<*const _EXT_SET_PARAMETERS_V0>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimer(timer : super::super::Foundation:: PEX_TIMER, duetime : i64, period : i64, parameters : *const _EXT_SET_PARAMETERS_V0) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExSetTimer(timer.into_param().abi(), duetime, period, core::mem::transmute(parameters.unwrap_or(std::ptr::null()))) + ExSetTimer(timer.param().abi(), duetime, period, core::mem::transmute(parameters.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ExSetTimerResolution(desiredtime: u32, setresolution: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimerResolution(desiredtime : u32, setresolution : super::super::super::Win32::Foundation:: BOOLEAN) -> u32); - ExSetTimerResolution(desiredtime, setresolution.into_param().abi()) + ExSetTimerResolution(desiredtime, setresolution.param().abi()) } #[inline] pub unsafe fn ExSizeOfRundownProtectionCacheAware() -> usize { @@ -1201,18 +1201,18 @@ pub unsafe fn ExWaitForRundownProtectionRelease(runref: *mut EX_RUNDOWN_REF) { #[inline] pub unsafe fn ExWaitForRundownProtectionReleaseCacheAware(runref: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ExWaitForRundownProtectionReleaseCacheAware(runref : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); - ExWaitForRundownProtectionReleaseCacheAware(runref.into_param().abi()) + ExWaitForRundownProtectionReleaseCacheAware(runref.param().abi()) } #[inline] pub unsafe fn FsRtlIsTotalDeviceFailure(status: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsTotalDeviceFailure(status : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsTotalDeviceFailure(status.into_param().abi()) + FsRtlIsTotalDeviceFailure(status.param().abi()) } #[inline] pub unsafe fn HalAcquireDisplayOwnership(resetdisplayparameters: PHAL_RESET_DISPLAY_PARAMETERS) { @@ -1229,10 +1229,10 @@ pub unsafe fn HalAllocateAdapterChannel(adapterobject: *const super::super::supe #[inline] pub unsafe fn HalAllocateCommonBuffer(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, length: u32, logicaladdress: *mut i64, cacheenabled: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hal.dll" "system" fn HalAllocateCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : *mut i64, cacheenabled : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); - HalAllocateCommonBuffer(adapterobject, length, logicaladdress, cacheenabled.into_param().abi()) + HalAllocateCommonBuffer(adapterobject, length, logicaladdress, cacheenabled.param().abi()) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] @@ -1280,18 +1280,18 @@ pub unsafe fn HalExamineMBR(deviceobject: *const super::super::Foundation::DEVIC #[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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN)); - HalFreeCommonBuffer(adapterobject, length, logicaladdress, virtualaddress, cacheenabled.into_param().abi()) + HalFreeCommonBuffer(adapterobject, length, logicaladdress, virtualaddress, cacheenabled.param().abi()) } #[inline] pub unsafe fn HalFreeHardwareCounters(countersethandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hal.dll" "system" fn HalFreeHardwareCounters(countersethandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - HalFreeHardwareCounters(countersethandle.into_param().abi()) + HalFreeHardwareCounters(countersethandle.param().abi()) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] @@ -1373,10 +1373,10 @@ pub unsafe fn IoAcquireKsrPersistentMemoryEx(driverobject: *const super::super:: #[inline] pub unsafe fn IoAcquireRemoveLockEx(removelock: *mut IO_REMOVE_LOCK, tag: Option<*const core::ffi::c_void>, file: P0, line: u32, remlocksize: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(removelock, core::mem::transmute(tag.unwrap_or(std::ptr::null())), file.into_param().abi(), line, remlocksize) + IoAcquireRemoveLockEx(removelock, core::mem::transmute(tag.unwrap_or(std::ptr::null())), 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] @@ -1405,29 +1405,29 @@ pub unsafe fn IoAllocateErrorLogEntry(ioobject: *const core::ffi::c_void, entrys #[inline] pub unsafe fn IoAllocateIrp(stacksize: i8, chargequota: P0) -> *mut super::super::Foundation::IRP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrp(stacksize : i8, chargequota : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut super::super::Foundation:: IRP); - IoAllocateIrp(stacksize, chargequota.into_param().abi()) + IoAllocateIrp(stacksize, chargequota.param().abi()) } #[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: P0) -> *mut super::super::Foundation::IRP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8, chargequota : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut super::super::Foundation:: IRP); - IoAllocateIrpEx(deviceobject, stacksize, chargequota.into_param().abi()) + IoAllocateIrpEx(deviceobject, stacksize, chargequota.param().abi()) } #[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: P0, chargequota: P1, irp: Option<*mut super::super::Foundation::IRP>) -> *mut super::super::Foundation::MDL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateMdl(virtualaddress : *const core::ffi::c_void, length : u32, secondarybuffer : super::super::super::Win32::Foundation:: BOOLEAN, chargequota : super::super::super::Win32::Foundation:: BOOLEAN, irp : *mut super::super::Foundation:: IRP) -> *mut super::super::Foundation:: MDL); - IoAllocateMdl(core::mem::transmute(virtualaddress.unwrap_or(std::ptr::null())), length, secondarybuffer.into_param().abi(), chargequota.into_param().abi(), core::mem::transmute(irp.unwrap_or(std::ptr::null_mut()))) + IoAllocateMdl(core::mem::transmute(virtualaddress.unwrap_or(std::ptr::null())), length, secondarybuffer.param().abi(), chargequota.param().abi(), core::mem::transmute(irp.unwrap_or(std::ptr::null_mut()))) } #[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] @@ -1481,10 +1481,10 @@ pub unsafe fn IoBuildAsynchronousFsdRequest(majorfunction: u32, deviceobject: *c #[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: P0, event: Option<*const super::super::Foundation::KEVENT>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> *mut super::super::Foundation::IRP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); - IoBuildDeviceIoControlRequest(iocontrolcode, deviceobject, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength, internaldeviceiocontrol.into_param().abi(), core::mem::transmute(event.unwrap_or(std::ptr::null())), iostatusblock) + IoBuildDeviceIoControlRequest(iocontrolcode, deviceobject, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength, internaldeviceiocontrol.param().abi(), core::mem::transmute(event.unwrap_or(std::ptr::null())), iostatusblock) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1520,19 +1520,19 @@ pub unsafe fn IoCheckLinkShareAccess(desiredaccess: u32, desiredshareaccess: u32 #[inline] pub unsafe fn IoCheckShareAccess(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, update: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckShareAccess(desiredaccess, desiredshareaccess, fileobject, shareaccess, update.into_param().abi()) + IoCheckShareAccess(desiredaccess, desiredshareaccess, fileobject, shareaccess, update.param().abi()) } #[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: P0, writepermission: Option<*const super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : super::super::super::Win32::Foundation:: BOOLEAN, writepermission : *const super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckShareAccessEx(desiredaccess, desiredshareaccess, fileobject, shareaccess, update.into_param().abi(), core::mem::transmute(writepermission.unwrap_or(std::ptr::null()))) + IoCheckShareAccessEx(desiredaccess, desiredshareaccess, fileobject, shareaccess, update.param().abi(), core::mem::transmute(writepermission.unwrap_or(std::ptr::null()))) } #[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] @@ -1555,11 +1555,11 @@ 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: P0, processorenablemask: usize, floatingsave: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, processorenablemask : usize, floatingsave : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoConnectInterrupt(interruptobject, serviceroutine, core::mem::transmute(servicecontext.unwrap_or(std::ptr::null())), core::mem::transmute(spinlock.unwrap_or(std::ptr::null())), vector, irql, synchronizeirql, interruptmode, sharevector.into_param().abi(), processorenablemask, floatingsave.into_param().abi()) + IoConnectInterrupt(interruptobject, serviceroutine, core::mem::transmute(servicecontext.unwrap_or(std::ptr::null())), core::mem::transmute(spinlock.unwrap_or(std::ptr::null())), vector, irql, synchronizeirql, interruptmode, sharevector.param().abi(), processorenablemask, floatingsave.param().abi()) } #[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] @@ -1577,10 +1577,10 @@ pub unsafe fn IoCreateController(size: u32) -> *mut CONTROLLER_OBJECT { #[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: P0, deviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateDevice(driverobject, deviceextensionsize, core::mem::transmute(devicename.unwrap_or(std::ptr::null())), devicetype, devicecharacteristics, exclusive.into_param().abi(), deviceobject) + IoCreateDevice(driverobject, deviceextensionsize, core::mem::transmute(devicename.unwrap_or(std::ptr::null())), devicetype, devicecharacteristics, exclusive.param().abi(), 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] @@ -1627,10 +1627,10 @@ pub unsafe fn IoCreateSynchronizationEvent(eventname: *const super::super::super #[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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioobject, threadhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), processhandle.into_param().abi(), core::mem::transmute(clientid.unwrap_or(std::ptr::null_mut())), startroutine, core::mem::transmute(startcontext.unwrap_or(std::ptr::null()))) + IoCreateSystemThread(ioobject, threadhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), processhandle.param().abi(), core::mem::transmute(clientid.unwrap_or(std::ptr::null_mut())), startroutine, core::mem::transmute(startcontext.unwrap_or(std::ptr::null()))) } #[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 { @@ -1677,10 +1677,10 @@ 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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(fileobject, process.into_param().abi()) + IoDecrementKeepAliveCount(fileobject, process.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1709,10 +1709,10 @@ pub unsafe fn IoDetachDevice(targetdevice: *mut super::super::Foundation::DEVICE #[inline] pub unsafe fn IoDisconnectInterrupt(interruptobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoDisconnectInterrupt(interruptobject : super::super::Foundation:: PKINTERRUPT)); - IoDisconnectInterrupt(interruptobject.into_param().abi()) + IoDisconnectInterrupt(interruptobject.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1730,10 +1730,10 @@ pub unsafe fn IoEnumerateKsrPersistentMemoryEx(driverobject: *const super::super #[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: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - IoFlushAdapterBuffers(adapterobject, mdl, mapregisterbase, currentva, length, writetodevice.into_param().abi()) + IoFlushAdapterBuffers(adapterobject, mdl, mapregisterbase, currentva, length, writetodevice.param().abi()) } #[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] @@ -1791,10 +1791,10 @@ pub unsafe fn IoFreeSfioStreamIdentifier(fileobject: *const super::super::Founda #[inline] pub unsafe fn IoFreeWorkItem(ioworkitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoFreeWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM)); - IoFreeWorkItem(ioworkitem.into_param().abi()) + IoFreeWorkItem(ioworkitem.param().abi()) } #[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] @@ -1811,10 +1811,10 @@ pub unsafe fn IoGetActivityIdThread() -> *mut windows_core::GUID { #[inline] pub unsafe fn IoGetAffinityInterrupt(interruptobject: P0, groupaffinity: *mut super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interruptobject.into_param().abi(), groupaffinity) + IoGetAffinityInterrupt(interruptobject.param().abi(), 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] @@ -2015,10 +2015,10 @@ pub unsafe fn IoGetTransactionParameterBlock(fileobject: *const super::super::Fo #[inline] pub unsafe fn IoIncrementKeepAliveCount(fileobject: *mut super::super::Foundation::FILE_OBJECT, process: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(fileobject, process.into_param().abi()) + IoIncrementKeepAliveCount(fileobject, process.param().abi()) } #[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] @@ -2048,10 +2048,10 @@ pub unsafe fn IoInitializeTimer(deviceobject: *const super::super::Foundation::D #[inline] pub unsafe fn IoInitializeWorkItem(ioobject: *const core::ffi::c_void, ioworkitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoInitializeWorkItem(ioobject : *const core::ffi::c_void, ioworkitem : super::super::Foundation:: PIO_WORKITEM)); - IoInitializeWorkItem(ioobject, ioworkitem.into_param().abi()) + IoInitializeWorkItem(ioobject, ioworkitem.param().abi()) } #[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] @@ -2092,10 +2092,10 @@ pub unsafe fn IoIsInitiator32bitProcess(irp: *const super::super::Foundation::IR #[inline] pub unsafe fn IoIsValidIrpStatus(status: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidIrpStatus(status : super::super::super::Win32::Foundation:: NTSTATUS) -> u32); - IoIsValidIrpStatus(status.into_param().abi()) + IoIsValidIrpStatus(status.param().abi()) } #[inline] pub unsafe fn IoIsWdmVersionAvailable(majorversion: u8, minorversion: u8) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -2118,10 +2118,10 @@ pub unsafe fn IoMakeAssociatedIrpEx(irp: *const super::super::Foundation::IRP, d #[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: P0) -> i64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> i64); - IoMapTransfer(adapterobject, mdl, mapregisterbase, currentva, length, writetodevice.into_param().abi()) + IoMapTransfer(adapterobject, mdl, mapregisterbase, currentva, length, writetodevice.param().abi()) } #[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 { @@ -2179,19 +2179,19 @@ pub unsafe fn IoQueryKsrPersistentMemorySizeEx(driverobject: *const super::super #[inline] pub unsafe fn IoQueueWorkItem(ioworkitem: P0, workerroutine: PIO_WORKITEM_ROUTINE, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioworkitem.into_param().abi(), workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) + IoQueueWorkItem(ioworkitem.param().abi(), workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoQueueWorkItemEx(ioworkitem: P0, workerroutine: PIO_WORKITEM_ROUTINE_EX, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioworkitem.into_param().abi(), workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) + IoQueueWorkItemEx(ioworkitem.param().abi(), workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[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] @@ -2203,11 +2203,11 @@ pub unsafe fn IoRaiseHardError(irp: *const super::super::Foundation::IRP, vpb: O #[inline] pub unsafe fn IoRaiseInformationalHardError(errorstatus: P0, string: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, thread: P1) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - IoRaiseInformationalHardError(errorstatus.into_param().abi(), core::mem::transmute(string.unwrap_or(std::ptr::null())), thread.into_param().abi()) + IoRaiseInformationalHardError(errorstatus.param().abi(), core::mem::transmute(string.unwrap_or(std::ptr::null())), thread.param().abi()) } #[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] @@ -2219,10 +2219,10 @@ pub unsafe fn IoReadDiskSignature(deviceobject: *const super::super::Foundation: #[inline] pub unsafe fn IoReadPartitionTable(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectorsize: u32, returnrecognizedpartitions: P0, partitionbuffer: *mut *mut super::super::super::Win32::System::Ioctl::DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, returnrecognizedpartitions : super::super::super::Win32::Foundation:: BOOLEAN, partitionbuffer : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReadPartitionTable(deviceobject, sectorsize, returnrecognizedpartitions.into_param().abi(), partitionbuffer) + IoReadPartitionTable(deviceobject, sectorsize, returnrecognizedpartitions.param().abi(), 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] @@ -2326,10 +2326,10 @@ pub unsafe fn IoReplacePartitionUnit(targetpdo: *const super::super::Foundation: #[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: P0, deviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportDetectedDevice(driverobject, legacybustype, busnumber, slotnumber, core::mem::transmute(resourcelist.unwrap_or(std::ptr::null())), core::mem::transmute(resourcerequirements.unwrap_or(std::ptr::null())), resourceassigned.into_param().abi(), deviceobject) + IoReportDetectedDevice(driverobject, legacybustype, busnumber, slotnumber, core::mem::transmute(resourcelist.unwrap_or(std::ptr::null())), core::mem::transmute(resourcerequirements.unwrap_or(std::ptr::null())), resourceassigned.param().abi(), deviceobject) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -2353,10 +2353,10 @@ pub unsafe fn IoReportResourceForDetection(driverobject: *const super::super::Fo #[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: u32, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicelist: Option<*const CM_RESOURCE_LIST>, devicelistsize: u32, overrideconflict: P0, conflictdetected: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, conflictdetected : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportResourceUsage(core::mem::transmute(driverclassname.unwrap_or(std::ptr::null())), driverobject, core::mem::transmute(driverlist.unwrap_or(std::ptr::null())), driverlistsize, core::mem::transmute(deviceobject.unwrap_or(std::ptr::null())), core::mem::transmute(devicelist.unwrap_or(std::ptr::null())), devicelistsize, overrideconflict.into_param().abi(), conflictdetected) + IoReportResourceUsage(core::mem::transmute(driverclassname.unwrap_or(std::ptr::null())), driverobject, core::mem::transmute(driverlist.unwrap_or(std::ptr::null())), driverlistsize, core::mem::transmute(deviceobject.unwrap_or(std::ptr::null())), core::mem::transmute(devicelist.unwrap_or(std::ptr::null())), devicelistsize, overrideconflict.param().abi(), 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] @@ -2404,10 +2404,10 @@ pub unsafe fn IoReserveKsrPersistentMemoryEx(driverobject: *const super::super:: #[inline] pub unsafe fn IoReuseIrp(irp: *mut super::super::Foundation::IRP, iostatus: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoReuseIrp(irp : *mut super::super::Foundation:: IRP, iostatus : super::super::super::Win32::Foundation:: NTSTATUS)); - IoReuseIrp(irp, iostatus.into_param().abi()) + IoReuseIrp(irp, iostatus.param().abi()) } #[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] @@ -2424,12 +2424,12 @@ pub unsafe fn IoSetActivityIdThread(activityid: *const windows_core::GUID) -> *m #[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: P0, invokeonerror: P1, invokeoncancel: P2) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, invokeonerror : super::super::super::Win32::Foundation:: BOOLEAN, invokeoncancel : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetCompletionRoutineEx(deviceobject, irp, completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null())), invokeonsuccess.into_param().abi(), invokeonerror.into_param().abi(), invokeoncancel.into_param().abi()) + IoSetCompletionRoutineEx(deviceobject, irp, completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null())), invokeonsuccess.param().abi(), invokeonerror.param().abi(), invokeoncancel.param().abi()) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -2440,10 +2440,10 @@ pub unsafe fn IoSetDeviceInterfacePropertyData(symboliclinkname: *const super::s #[inline] pub unsafe fn IoSetDeviceInterfaceState(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, enable: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfaceState(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetDeviceInterfaceState(symboliclinkname, enable.into_param().abi()) + IoSetDeviceInterfaceState(symboliclinkname, enable.param().abi()) } #[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] @@ -2461,10 +2461,10 @@ pub unsafe fn IoSetFileObjectIgnoreSharing(fileobject: *const super::super::Foun #[inline] pub unsafe fn IoSetFileOrigin(fileobject: *const super::super::Foundation::FILE_OBJECT, remote: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileOrigin(fileobject : *const super::super::Foundation:: FILE_OBJECT, remote : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetFileOrigin(fileobject, remote.into_param().abi()) + IoSetFileOrigin(fileobject, remote.param().abi()) } #[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] @@ -2512,10 +2512,10 @@ pub unsafe fn IoSetLinkShareAccess(desiredaccess: u32, desiredshareaccess: u32, #[inline] pub unsafe fn IoSetMasterIrpStatus(masterirp: *mut super::super::Foundation::IRP, status: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetMasterIrpStatus(masterirp : *mut super::super::Foundation:: IRP, status : super::super::super::Win32::Foundation:: NTSTATUS)); - IoSetMasterIrpStatus(masterirp, status.into_param().abi()) + IoSetMasterIrpStatus(masterirp, status.param().abi()) } #[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] @@ -2545,11 +2545,11 @@ pub unsafe fn IoSetShareAccessEx(desiredaccess: u32, desiredshareaccess: u32, fi #[inline] pub unsafe fn IoSetStartIoAttributes(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, deferredstartio: P0, noncancelable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetStartIoAttributes(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, deferredstartio : super::super::super::Win32::Foundation:: BOOLEAN, noncancelable : super::super::super::Win32::Foundation:: BOOLEAN)); - IoSetStartIoAttributes(deviceobject, deferredstartio.into_param().abi(), noncancelable.into_param().abi()) + IoSetStartIoAttributes(deviceobject, deferredstartio.param().abi(), noncancelable.param().abi()) } #[inline] pub unsafe fn IoSetSystemPartition(volumenamestring: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2559,10 +2559,10 @@ pub unsafe fn IoSetSystemPartition(volumenamestring: *const super::super::super: #[inline] pub unsafe fn IoSetThreadHardErrorMode(enableharderrors: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoSetThreadHardErrorMode(enableharderrors : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - IoSetThreadHardErrorMode(enableharderrors.into_param().abi()) + IoSetThreadHardErrorMode(enableharderrors.param().abi()) } #[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] @@ -2585,19 +2585,19 @@ pub unsafe fn IoSizeofWorkItem() -> u32 { #[inline] pub unsafe fn IoStartNextPacket(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, cancelable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : super::super::super::Win32::Foundation:: BOOLEAN)); - IoStartNextPacket(deviceobject, cancelable.into_param().abi()) + IoStartNextPacket(deviceobject, cancelable.param().abi()) } #[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: P0, key: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacketByKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : super::super::super::Win32::Foundation:: BOOLEAN, key : u32)); - IoStartNextPacketByKey(deviceobject, cancelable.into_param().abi(), key) + IoStartNextPacketByKey(deviceobject, cancelable.param().abi(), 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] @@ -2637,19 +2637,19 @@ pub unsafe fn IoTranslateBusAddress(interfacetype: INTERFACE_TYPE, busnumber: u3 #[inline] pub unsafe fn IoTryQueueWorkItem(ioworkitem: P0, workerroutine: PIO_WORKITEM_ROUTINE_EX, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - IoTryQueueWorkItem(ioworkitem.into_param().abi(), workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) + IoTryQueueWorkItem(ioworkitem.param().abi(), workerroutine, queuetype, core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoUninitializeWorkItem(ioworkitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoUninitializeWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM)); - IoUninitializeWorkItem(ioworkitem.into_param().abi()) + IoUninitializeWorkItem(ioworkitem.param().abi()) } #[inline] pub unsafe fn IoUnregisterBootDriverCallback(callbackhandle: *const core::ffi::c_void) { @@ -2705,10 +2705,10 @@ pub unsafe fn IoValidateDeviceIoControlAccess(irp: *const super::super::Foundati #[inline] pub unsafe fn IoVerifyPartitionTable(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, fixerrors: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fixerrors : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVerifyPartitionTable(deviceobject, fixerrors.into_param().abi()) + IoVerifyPartitionTable(deviceobject, fixerrors.param().abi()) } #[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 { @@ -2754,10 +2754,10 @@ pub unsafe fn IoWMIExecuteMethod(datablockobject: *const core::ffi::c_void, inst #[inline] pub unsafe fn IoWMIHandleToInstanceName(datablockobject: *const core::ffi::c_void, filehandle: P0, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(datablockobject, filehandle.into_param().abi(), instancename) + IoWMIHandleToInstanceName(datablockobject, filehandle.param().abi(), 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 { @@ -2809,10 +2809,10 @@ pub unsafe fn IoWMISetSingleItem(datablockobject: *const core::ffi::c_void, inst #[inline] pub unsafe fn IoWMISuggestInstanceName(physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, symboliclinkname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, combinenames: P0, suggestedinstancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, suggestedinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMISuggestInstanceName(core::mem::transmute(physicaldeviceobject.unwrap_or(std::ptr::null())), core::mem::transmute(symboliclinkname.unwrap_or(std::ptr::null())), combinenames.into_param().abi(), suggestedinstancename) + IoWMISuggestInstanceName(core::mem::transmute(physicaldeviceobject.unwrap_or(std::ptr::null())), core::mem::transmute(symboliclinkname.unwrap_or(std::ptr::null())), combinenames.param().abi(), suggestedinstancename) } #[inline] pub unsafe fn IoWMIWriteEvent(wnodeeventitem: *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2909,10 +2909,10 @@ pub unsafe fn KeAcquireInStackQueuedSpinLockForDpc(spinlock: *mut usize, lockhan #[inline] pub unsafe fn KeAcquireInterruptSpinLock(interrupt: P0) -> u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireInterruptSpinLock(interrupt : super::super::Foundation:: PKINTERRUPT) -> u8); - KeAcquireInterruptSpinLock(interrupt.into_param().abi()) + KeAcquireInterruptSpinLock(interrupt.param().abi()) } #[inline] pub unsafe fn KeAcquireSpinLockForDpc(spinlock: *mut usize) -> u8 { @@ -2972,10 +2972,10 @@ pub unsafe fn KeConvertPerformanceCounterToAuxiliaryCounter(performancecounterva #[inline] pub unsafe fn KeDelayExecutionThread(waitmode: i8, alertable: P0, interval: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeDelayExecutionThread(waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, interval : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeDelayExecutionThread(waitmode, alertable.into_param().abi(), interval) + KeDelayExecutionThread(waitmode, alertable.param().abi(), interval) } #[inline] pub unsafe fn KeDeregisterBoundCallback(handle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3022,20 +3022,20 @@ pub unsafe fn KeExpandKernelStackAndCallout(callout: PEXPAND_STACK_CALLOUT, para #[inline] pub unsafe fn KeExpandKernelStackAndCalloutEx(callout: PEXPAND_STACK_CALLOUT, parameter: Option<*const core::ffi::c_void>, size: usize, wait: P0, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCalloutEx(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize, wait : super::super::super::Win32::Foundation:: BOOLEAN, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeExpandKernelStackAndCalloutEx(callout, core::mem::transmute(parameter.unwrap_or(std::ptr::null())), size, wait.into_param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))) + KeExpandKernelStackAndCalloutEx(callout, core::mem::transmute(parameter.unwrap_or(std::ptr::null())), size, wait.param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeFlushIoBuffers(mdl: *const super::super::Foundation::MDL, readoperation: P0, dmaoperation: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeFlushIoBuffers(mdl : *const super::super::Foundation:: MDL, readoperation : super::super::super::Win32::Foundation:: BOOLEAN, dmaoperation : super::super::super::Win32::Foundation:: BOOLEAN)); - KeFlushIoBuffers(mdl, readoperation.into_param().abi(), dmaoperation.into_param().abi()) + KeFlushIoBuffers(mdl, readoperation.param().abi(), dmaoperation.param().abi()) } #[inline] pub unsafe fn KeFlushQueuedDpcs() { @@ -3101,10 +3101,10 @@ pub unsafe fn KeInitializeDpc(dpc: *mut super::super::Foundation::KDPC, deferred #[inline] pub unsafe fn KeInitializeEvent(event: *mut super::super::Foundation::KEVENT, r#type: super::super::super::Win32::System::Kernel::EVENT_TYPE, state: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN)); - KeInitializeEvent(event, r#type, state.into_param().abi()) + KeInitializeEvent(event, r#type, state.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3207,10 +3207,10 @@ pub unsafe fn KeLeaveGuardedRegion() { #[inline] pub unsafe fn KePulseEvent(event: *mut super::super::Foundation::KEVENT, increment: i32, wait: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KePulseEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KePulseEvent(event, increment, wait.into_param().abi()) + KePulseEvent(event, increment, wait.param().abi()) } #[inline] pub unsafe fn KeQueryActiveGroupCount() -> u16 { @@ -3314,19 +3314,19 @@ pub unsafe fn KeQueryPerformanceCounter(performancefrequency: Option<*mut i64>) #[inline] pub unsafe fn KeQueryPriorityThread(thread: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryPriorityThread(thread : super::super::Foundation:: PKTHREAD) -> i32); - KeQueryPriorityThread(thread.into_param().abi()) + KeQueryPriorityThread(thread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeQueryRuntimeThread(thread: P0, usertime: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryRuntimeThread(thread : super::super::Foundation:: PKTHREAD, usertime : *mut u32) -> u32); - KeQueryRuntimeThread(thread.into_param().abi(), usertime) + KeQueryRuntimeThread(thread.param().abi(), usertime) } #[inline] pub unsafe fn KeQuerySystemTimePrecise() -> i64 { @@ -3344,10 +3344,10 @@ pub unsafe fn KeQueryTimeIncrement() -> u32 { #[inline] pub unsafe fn KeQueryTotalCycleTimeThread(thread: P0, cycletimestamp: *mut u64) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryTotalCycleTimeThread(thread : super::super::Foundation:: PKTHREAD, cycletimestamp : *mut u64) -> u64); - KeQueryTotalCycleTimeThread(thread.into_param().abi(), cycletimestamp) + KeQueryTotalCycleTimeThread(thread.param().abi(), cycletimestamp) } #[inline] pub unsafe fn KeQueryUnbiasedInterruptTime() -> u64 { @@ -3441,28 +3441,28 @@ pub unsafe fn KeReleaseInStackQueuedSpinLockFromDpcLevel(lockhandle: *const KLOC #[inline] pub unsafe fn KeReleaseInterruptSpinLock(interrupt: P0, oldirql: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseInterruptSpinLock(interrupt : super::super::Foundation:: PKINTERRUPT, oldirql : u8)); - KeReleaseInterruptSpinLock(interrupt.into_param().abi(), oldirql) + KeReleaseInterruptSpinLock(interrupt.param().abi(), oldirql) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseMutex(mutex: *mut super::super::Foundation::KMUTANT, wait: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutex(mutex : *mut super::super::Foundation:: KMUTANT, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeReleaseMutex(mutex, wait.into_param().abi()) + KeReleaseMutex(mutex, wait.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseSemaphore(semaphore: *mut KSEMAPHORE, increment: i32, adjustment: i32, wait: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSemaphore(semaphore : *mut KSEMAPHORE, increment : i32, adjustment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeReleaseSemaphore(semaphore, increment, adjustment, wait.into_param().abi()) + KeReleaseSemaphore(semaphore, increment, adjustment, wait.param().abi()) } #[inline] pub unsafe fn KeReleaseSpinLockForDpc(spinlock: *mut usize, oldirql: u8) { @@ -3503,10 +3503,10 @@ pub unsafe fn KeRemoveQueueDpc(dpc: *mut super::super::Foundation::KDPC) -> supe #[inline] pub unsafe fn KeRemoveQueueDpcEx(dpc: *mut super::super::Foundation::KDPC, waitifactive: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpcEx(dpc : *mut super::super::Foundation:: KDPC, waitifactive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - KeRemoveQueueDpcEx(dpc, waitifactive.into_param().abi()) + KeRemoveQueueDpcEx(dpc, waitifactive.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3546,10 +3546,10 @@ pub unsafe fn KeSaveExtendedProcessorState(mask: u64, xstatesave: *mut XSTATE_SA #[inline] pub unsafe fn KeSetBasePriorityThread(thread: P0, increment: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetBasePriorityThread(thread : super::super::Foundation:: PKTHREAD, increment : i32) -> i32); - KeSetBasePriorityThread(thread.into_param().abi(), increment) + KeSetBasePriorityThread(thread.param().abi(), increment) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3561,10 +3561,10 @@ pub unsafe fn KeSetCoalescableTimer(timer: *mut KTIMER, duetime: i64, period: u3 #[inline] pub unsafe fn KeSetEvent(event: *mut super::super::Foundation::KEVENT, increment: i32, wait: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeSetEvent(event, increment, wait.into_param().abi()) + KeSetEvent(event, increment, wait.param().abi()) } #[inline] pub unsafe fn KeSetHardwareCounterConfiguration(counterarray: &[HARDWARE_COUNTER]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3581,10 +3581,10 @@ pub unsafe fn KeSetImportanceDpc(dpc: *mut super::super::Foundation::KDPC, impor #[inline] pub unsafe fn KeSetPriorityThread(thread: P0, priority: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeSetPriorityThread(thread : super::super::Foundation:: PKTHREAD, priority : i32) -> i32); - KeSetPriorityThread(thread.into_param().abi(), priority) + KeSetPriorityThread(thread.param().abi(), priority) } #[inline] pub unsafe fn KeSetSystemAffinityThread(affinity: usize) { @@ -3640,10 +3640,10 @@ pub unsafe fn KeStallExecutionProcessor(microseconds: u32) { #[inline] pub unsafe fn KeSynchronizeExecution(interrupt: P0, synchronizeroutine: PKSYNCHRONIZE_ROUTINE, synchronizecontext: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeSynchronizeExecution(interrupt : super::super::Foundation:: PKINTERRUPT, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); - KeSynchronizeExecution(interrupt.into_param().abi(), synchronizeroutine, core::mem::transmute(synchronizecontext.unwrap_or(std::ptr::null()))) + KeSynchronizeExecution(interrupt.param().abi(), synchronizeroutine, core::mem::transmute(synchronizecontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn KeTestSpinLock(spinlock: *const usize) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -3665,18 +3665,18 @@ pub unsafe fn KeTryToAcquireSpinLockAtDpcLevel(spinlock: *mut usize) -> super::s #[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: P0, timeout: Option<*const i64>, waitblockarray: Option<*mut super::super::Foundation::KWAIT_BLOCK>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, 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()), waittype, waitreason, waitmode, alertable.into_param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(waitblockarray.unwrap_or(std::ptr::null_mut()))) + KeWaitForMultipleObjects(object.len().try_into().unwrap(), core::mem::transmute(object.as_ptr()), waittype, waitreason, waitmode, alertable.param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(waitblockarray.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn KeWaitForSingleObject(object: *const core::ffi::c_void, waitreason: KWAIT_REASON, waitmode: i8, alertable: P0, timeout: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForSingleObject(object : *const core::ffi::c_void, waitreason : KWAIT_REASON, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeWaitForSingleObject(object, waitreason, waitmode, alertable.into_param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null()))) + KeWaitForSingleObject(object, waitreason, waitmode, alertable.param().abi(), core::mem::transmute(timeout.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn KfRaiseIrql(newirql: u8) -> u8 { @@ -4017,10 +4017,10 @@ pub unsafe fn MmProbeAndLockPages(memorydescriptorlist: *mut super::super::Found #[inline] pub unsafe fn MmProbeAndLockProcessPages(memorydescriptorlist: *mut super::super::Foundation::MDL, process: P0, accessmode: i8, operation: LOCK_OPERATION) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(memorydescriptorlist, process.into_param().abi(), accessmode, operation) + MmProbeAndLockProcessPages(memorydescriptorlist, process.param().abi(), accessmode, operation) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_FileSystem"))] #[inline] @@ -4126,63 +4126,63 @@ pub unsafe fn MmUnmapViewInSystemSpace(mappedbase: *const core::ffi::c_void) -> #[inline] pub unsafe fn MmUnsecureVirtualMemory(securehandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn MmUnsecureVirtualMemory(securehandle : super::super::super::Win32::Foundation:: HANDLE)); - MmUnsecureVirtualMemory(securehandle.into_param().abi()) + MmUnsecureVirtualMemory(securehandle.param().abi()) } #[inline] pub unsafe fn NtCommitComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtCommitComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtCommitEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtCommitEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtCommitTransaction(transactionhandle: P0, wait: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCommitTransaction(transactionhandle.into_param().abi(), wait.into_param().abi()) + NtCommitTransaction(transactionhandle.param().abi(), wait.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NtCreateEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, resourcemanagerhandle: P0, transactionhandle: P1, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: u32, notificationmask: u32, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enlistmenthandle, desiredaccess, resourcemanagerhandle.into_param().abi(), transactionhandle.into_param().abi(), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, notificationmask, core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) + NtCreateEnlistment(enlistmenthandle, desiredaccess, resourcemanagerhandle.param().abi(), transactionhandle.param().abi(), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, notificationmask, core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NtCreateResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: P0, rmguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: u32, description: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle, desiredaccess, tmhandle.into_param().abi(), rmguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, core::mem::transmute(description.unwrap_or(std::ptr::null()))) + NtCreateResourceManager(resourcemanagerhandle, desiredaccess, tmhandle.param().abi(), rmguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, core::mem::transmute(description.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NtCreateTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, uow: Option<*const windows_core::GUID>, tmhandle: P0, createoptions: u32, isolationlevel: u32, isolationflags: u32, timeout: Option<*const i64>, description: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(uow.unwrap_or(std::ptr::null())), tmhandle.into_param().abi(), createoptions, isolationlevel, isolationflags, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(description.unwrap_or(std::ptr::null()))) + NtCreateTransaction(transactionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(uow.unwrap_or(std::ptr::null())), tmhandle.param().abi(), createoptions, isolationlevel, isolationflags, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(description.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4194,37 +4194,37 @@ pub unsafe fn NtCreateTransactionManager(tmhandle: *mut super::super::super::Win #[inline] pub unsafe fn NtEnumerateTransactionObject(rootobjecthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootobjecthandle.into_param().abi(), querytype, objectcursor, objectcursorlength, returnlength) + NtEnumerateTransactionObject(rootobjecthandle.param().abi(), querytype, objectcursor, objectcursorlength, returnlength) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn NtGetNotificationResourceManager(resourcemanagerhandle: P0, transactionnotification: *mut super::super::super::Win32::Storage::FileSystem::TRANSACTION_NOTIFICATION, notificationlength: u32, timeout: Option<*const i64>, returnlength: Option<*mut u32>, asynchronous: u32, asynchronouscontext: usize) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), transactionnotification, notificationlength, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut())), asynchronous, asynchronouscontext) + NtGetNotificationResourceManager(resourcemanagerhandle.param().abi(), transactionnotification, notificationlength, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut())), asynchronous, asynchronouscontext) } #[inline] pub unsafe fn NtManagePartition(targethandle: P0, sourcehandle: P1, partitioninformationclass: PARTITION_INFORMATION_CLASS, partitioninformation: *mut core::ffi::c_void, partitioninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(targethandle.into_param().abi(), sourcehandle.into_param().abi(), partitioninformationclass, partitioninformation, partitioninformationlength) + NtManagePartition(targethandle.param().abi(), sourcehandle.param().abi(), partitioninformationclass, partitioninformation, partitioninformationlength) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NtOpenEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, resourcemanagerhandle: P0, enlistmentguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle, desiredaccess, resourcemanagerhandle.into_param().abi(), enlistmentguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) + NtOpenEnlistment(enlistmenthandle, desiredaccess, resourcemanagerhandle.param().abi(), enlistmentguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_WindowsProgramming"))] #[inline] @@ -4242,19 +4242,19 @@ pub unsafe fn NtOpenRegistryTransaction(transactionhandle: *mut super::super::su #[inline] pub unsafe fn NtOpenResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: P0, resourcemanagerguid: Option<*const windows_core::GUID>, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle, desiredaccess, tmhandle.into_param().abi(), core::mem::transmute(resourcemanagerguid.unwrap_or(std::ptr::null())), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) + NtOpenResourceManager(resourcemanagerhandle, desiredaccess, tmhandle.param().abi(), core::mem::transmute(resourcemanagerguid.unwrap_or(std::ptr::null())), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle, desiredaccess, objectattributes, uow, tmhandle.into_param().abi()) + NtOpenTransaction(transactionhandle, desiredaccess, objectattributes, uow, tmhandle.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4271,127 +4271,127 @@ pub unsafe fn NtPowerInformation(informationlevel: super::super::super::Win32::S #[inline] pub unsafe fn NtPrePrepareComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtPrePrepareComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtPrePrepareEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtPrePrepareEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtPrepareComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtPrepareComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtPrepareEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtPrepareEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtPropagationComplete(resourcemanagerhandle: P0, requestcookie: u32, bufferlength: u32, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), requestcookie, bufferlength, buffer) + NtPropagationComplete(resourcemanagerhandle.param().abi(), requestcookie, bufferlength, buffer) } #[inline] pub unsafe fn NtPropagationFailed(resourcemanagerhandle: P0, requestcookie: u32, propstatus: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), requestcookie, propstatus.into_param().abi()) + NtPropagationFailed(resourcemanagerhandle.param().abi(), requestcookie, propstatus.param().abi()) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationEnlistment(enlistmenthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength, returnlength) + NtQueryInformationEnlistment(enlistmenthandle.param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength, returnlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationResourceManager(resourcemanagerhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + NtQueryInformationResourceManager(resourcemanagerhandle.param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationTransaction(transactionhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle.into_param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + NtQueryInformationTransaction(transactionhandle.param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtQueryInformationTransactionManager(transactionmanagerhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionmanagerhandle.into_param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength, returnlength) + NtQueryInformationTransactionManager(transactionmanagerhandle.param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength, returnlength) } #[inline] pub unsafe fn NtReadOnlyEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtReadOnlyEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtRecoverEnlistment(enlistmenthandle: P0, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) + NtRecoverEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtRecoverResourceManager(resourcemanagerhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtRecoverResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRecoverResourceManager(resourcemanagerhandle.into_param().abi()) + NtRecoverResourceManager(resourcemanagerhandle.param().abi()) } #[inline] pub unsafe fn NtRecoverTransactionManager(transactionmanagerhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtRecoverTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRecoverTransactionManager(transactionmanagerhandle.into_param().abi()) + NtRecoverTransactionManager(transactionmanagerhandle.param().abi()) } #[inline] pub unsafe fn NtRegisterProtocolAddressInformation(resourcemanager: P0, protocolid: *const windows_core::GUID, protocolinformationsize: u32, protocolinformation: *const core::ffi::c_void, createoptions: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanager.into_param().abi(), protocolid, protocolinformationsize, protocolinformation, createoptions) + NtRegisterProtocolAddressInformation(resourcemanager.param().abi(), protocolid, protocolinformationsize, protocolinformation, createoptions) } #[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 { @@ -4401,95 +4401,95 @@ pub unsafe fn NtRenameTransactionManager(logfilename: *const super::super::super #[inline] pub unsafe fn NtRollbackComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtRollbackComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtRollbackEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtRollbackEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NtRollbackRegistryTransaction(transactionhandle: P0, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtRollbackRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollbackRegistryTransaction(transactionhandle.into_param().abi(), flags) + NtRollbackRegistryTransaction(transactionhandle.param().abi(), flags) } #[inline] pub unsafe fn NtRollbackTransaction(transactionhandle: P0, wait: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollbackTransaction(transactionhandle.into_param().abi(), wait.into_param().abi()) + NtRollbackTransaction(transactionhandle.param().abi(), wait.param().abi()) } #[inline] pub unsafe fn NtRollforwardTransactionManager(transactionmanagerhandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionmanagerhandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtRollforwardTransactionManager(transactionmanagerhandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationEnlistment(enlistmenthandle: P0, enlistmentinformationclass: super::super::super::Win32::System::SystemServices::ENLISTMENT_INFORMATION_CLASS, enlistmentinformation: *const core::ffi::c_void, enlistmentinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength) + NtSetInformationEnlistment(enlistmenthandle.param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationResourceManager(resourcemanagerhandle: P0, resourcemanagerinformationclass: super::super::super::Win32::System::SystemServices::RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation: *const core::ffi::c_void, resourcemanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength) + NtSetInformationResourceManager(resourcemanagerhandle.param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationTransaction(transactionhandle: P0, transactioninformationclass: super::super::super::Win32::System::SystemServices::TRANSACTION_INFORMATION_CLASS, transactioninformation: *const core::ffi::c_void, transactioninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle.into_param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength) + NtSetInformationTransaction(transactionhandle.param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn NtSetInformationTransactionManager(tmhandle: P0, transactionmanagerinformationclass: super::super::super::Win32::System::SystemServices::TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation: *const core::ffi::c_void, transactionmanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tmhandle.into_param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength) + NtSetInformationTransactionManager(tmhandle.param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength) } #[inline] pub unsafe fn NtSinglePhaseReject(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + NtSinglePhaseReject(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ObCloseHandle(handle: P0, previousmode: i8) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ObCloseHandle(handle : super::super::super::Win32::Foundation:: HANDLE, previousmode : i8) -> super::super::super::Win32::Foundation:: NTSTATUS); - ObCloseHandle(handle.into_param().abi(), previousmode) + ObCloseHandle(handle.param().abi(), previousmode) } #[inline] pub unsafe fn ObDereferenceObjectDeferDelete(object: *const core::ffi::c_void) { @@ -4516,39 +4516,39 @@ pub unsafe fn ObGetObjectSecurity(object: *const core::ffi::c_void, securitydesc #[inline] pub unsafe fn ObReferenceObjectByHandle(handle: P0, desiredaccess: u32, objecttype: P1, accessmode: i8, object: *mut *mut core::ffi::c_void, handleinformation: Option<*mut OBJECT_HANDLE_INFORMATION>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(handle.into_param().abi(), desiredaccess, objecttype.into_param().abi(), accessmode, object, core::mem::transmute(handleinformation.unwrap_or(std::ptr::null_mut()))) + ObReferenceObjectByHandle(handle.param().abi(), desiredaccess, objecttype.param().abi(), accessmode, object, core::mem::transmute(handleinformation.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObReferenceObjectByHandleWithTag(handle: P0, desiredaccess: u32, objecttype: P1, accessmode: i8, tag: u32, object: *mut *mut core::ffi::c_void, handleinformation: Option<*mut OBJECT_HANDLE_INFORMATION>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(handle.into_param().abi(), desiredaccess, objecttype.into_param().abi(), accessmode, tag, object, core::mem::transmute(handleinformation.unwrap_or(std::ptr::null_mut()))) + ObReferenceObjectByHandleWithTag(handle.param().abi(), desiredaccess, objecttype.param().abi(), accessmode, tag, object, core::mem::transmute(handleinformation.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObReferenceObjectByPointer(object: *const core::ffi::c_void, desiredaccess: u32, objecttype: P0, accessmode: i8) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(object, desiredaccess, objecttype.into_param().abi(), accessmode) + ObReferenceObjectByPointer(object, desiredaccess, objecttype.param().abi(), accessmode) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ObReferenceObjectByPointerWithTag(object: *const core::ffi::c_void, desiredaccess: u32, objecttype: P0, accessmode: i8, tag: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(object, desiredaccess, objecttype.into_param().abi(), accessmode, tag) + ObReferenceObjectByPointerWithTag(object, desiredaccess, objecttype.param().abi(), accessmode, tag) } #[inline] pub unsafe fn ObReferenceObjectSafe(object: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -4570,11 +4570,11 @@ pub unsafe fn ObRegisterCallbacks(callbackregistration: *const OB_CALLBACK_REGIS #[inline] pub unsafe fn ObReleaseObjectSecurity(securitydescriptor: P0, memoryallocated: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn ObReleaseObjectSecurity(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : super::super::super::Win32::Foundation:: BOOLEAN)); - ObReleaseObjectSecurity(securitydescriptor.into_param().abi(), memoryallocated.into_param().abi()) + ObReleaseObjectSecurity(securitydescriptor.param().abi(), memoryallocated.param().abi()) } #[inline] pub unsafe fn ObUnRegisterCallbacks(registrationhandle: *const core::ffi::c_void) { @@ -4605,28 +4605,28 @@ pub unsafe fn ObfReferenceObjectWithTag(object: *const core::ffi::c_void, tag: u #[inline] pub unsafe fn PcwAddInstance(buffer: P0, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, id: u32, data: &[PCW_DATA]) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(buffer.into_param().abi(), name, id, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) + PcwAddInstance(buffer.param().abi(), name, id, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PcwCloseInstance(instance: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PcwCloseInstance(instance : super::super::Foundation:: PPCW_INSTANCE)); - PcwCloseInstance(instance.into_param().abi()) + PcwCloseInstance(instance.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PcwCreateInstance(instance: *mut super::super::Foundation::PPCW_INSTANCE, registration: P0, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, data: &[PCW_DATA]) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(instance, registration.into_param().abi(), name, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) + PcwCreateInstance(instance, registration.param().abi(), name, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr())) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4638,10 +4638,10 @@ pub unsafe fn PcwRegister(registration: *mut super::super::Foundation::PPCW_REGI #[inline] pub unsafe fn PcwUnregister(registration: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PcwUnregister(registration : super::super::Foundation:: PPCW_REGISTRATION)); - PcwUnregister(registration.into_param().abi()) + PcwUnregister(registration.param().abi()) } #[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] @@ -4686,73 +4686,73 @@ pub unsafe fn PoEndDeviceBusy(idlepointer: *mut u32) { #[inline] pub unsafe fn PoFxActivateComponent(handle: P0, component: u32, flags: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxActivateComponent(handle : super::super::Foundation:: POHANDLE, component : u32, flags : u32)); - PoFxActivateComponent(handle.into_param().abi(), component, flags) + PoFxActivateComponent(handle.param().abi(), component, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteDevicePowerNotRequired(handle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteDevicePowerNotRequired(handle : super::super::Foundation:: POHANDLE)); - PoFxCompleteDevicePowerNotRequired(handle.into_param().abi()) + PoFxCompleteDevicePowerNotRequired(handle.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteDirectedPowerDown(handle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteDirectedPowerDown(handle : super::super::Foundation:: POHANDLE)); - PoFxCompleteDirectedPowerDown(handle.into_param().abi()) + PoFxCompleteDirectedPowerDown(handle.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteIdleCondition(handle: P0, component: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteIdleCondition(handle : super::super::Foundation:: POHANDLE, component : u32)); - PoFxCompleteIdleCondition(handle.into_param().abi(), component) + PoFxCompleteIdleCondition(handle.param().abi(), component) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxCompleteIdleState(handle: P0, component: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxCompleteIdleState(handle : super::super::Foundation:: POHANDLE, component : u32)); - PoFxCompleteIdleState(handle.into_param().abi(), component) + PoFxCompleteIdleState(handle.param().abi(), component) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxIdleComponent(handle: P0, component: u32, flags: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxIdleComponent(handle : super::super::Foundation:: POHANDLE, component : u32, flags : u32)); - PoFxIdleComponent(handle.into_param().abi(), component, flags) + PoFxIdleComponent(handle.param().abi(), component, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxIssueComponentPerfStateChange(handle: P0, flags: u32, component: u32, perfchange: *const PO_FX_PERF_STATE_CHANGE, context: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), flags, component, perfchange, context) + PoFxIssueComponentPerfStateChange(handle.param().abi(), flags, component, perfchange, context) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxIssueComponentPerfStateChangeMultiple(handle: P0, flags: u32, component: u32, perfchangescount: u32, perfchanges: *const PO_FX_PERF_STATE_CHANGE, context: *const core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), flags, component, perfchangescount, perfchanges, context) + PoFxIssueComponentPerfStateChangeMultiple(handle.param().abi(), 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] @@ -4764,46 +4764,46 @@ pub unsafe fn PoFxNotifySurprisePowerOn(pdo: *const super::super::Foundation::DE #[inline] pub unsafe fn PoFxPowerControl(handle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), powercontrolcode, core::mem::transmute(inbuffer.unwrap_or(std::ptr::null())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(std::ptr::null_mut())), outbuffersize, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut()))) + PoFxPowerControl(handle.param().abi(), powercontrolcode, core::mem::transmute(inbuffer.unwrap_or(std::ptr::null())), inbuffersize, core::mem::transmute(outbuffer.unwrap_or(std::ptr::null_mut())), outbuffersize, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxPowerOnCrashdumpDevice(handle: P0, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))) + PoFxPowerOnCrashdumpDevice(handle.param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxQueryCurrentComponentPerfState(handle: P0, flags: u32, component: u32, setindex: u32, currentperf: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), flags, component, setindex, currentperf) + PoFxQueryCurrentComponentPerfState(handle.param().abi(), flags, component, setindex, currentperf) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxRegisterComponentPerfStates(handle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), component, flags, componentperfstatecallback, inputstateinfo, outputstateinfo) + PoFxRegisterComponentPerfStates(handle.param().abi(), component, flags, componentperfstatecallback, inputstateinfo, outputstateinfo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxRegisterCrashdumpDevice(handle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterCrashdumpDevice(handle : super::super::Foundation:: POHANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoFxRegisterCrashdumpDevice(handle.into_param().abi()) + PoFxRegisterCrashdumpDevice(handle.param().abi()) } #[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] @@ -4815,84 +4815,84 @@ pub unsafe fn PoFxRegisterDevice(pdo: *const super::super::Foundation::DEVICE_OB #[inline] pub unsafe fn PoFxRegisterDripsWatchdogCallback(handle: P0, callback: PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices: P1, matchingdriverobject: Option<*const super::super::Foundation::DRIVER_OBJECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDripsWatchdogCallback(handle : super::super::Foundation:: POHANDLE, callback : PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices : super::super::super::Win32::Foundation:: BOOLEAN, matchingdriverobject : *const super::super::Foundation:: DRIVER_OBJECT)); - PoFxRegisterDripsWatchdogCallback(handle.into_param().abi(), callback, includechilddevices.into_param().abi(), core::mem::transmute(matchingdriverobject.unwrap_or(std::ptr::null()))) + PoFxRegisterDripsWatchdogCallback(handle.param().abi(), callback, includechilddevices.param().abi(), core::mem::transmute(matchingdriverobject.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxReportDevicePoweredOn(handle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxReportDevicePoweredOn(handle : super::super::Foundation:: POHANDLE)); - PoFxReportDevicePoweredOn(handle.into_param().abi()) + PoFxReportDevicePoweredOn(handle.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetComponentLatency(handle: P0, component: u32, latency: u64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentLatency(handle : super::super::Foundation:: POHANDLE, component : u32, latency : u64)); - PoFxSetComponentLatency(handle.into_param().abi(), component, latency) + PoFxSetComponentLatency(handle.param().abi(), component, latency) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetComponentResidency(handle: P0, component: u32, residency: u64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentResidency(handle : super::super::Foundation:: POHANDLE, component : u32, residency : u64)); - PoFxSetComponentResidency(handle.into_param().abi(), component, residency) + PoFxSetComponentResidency(handle.param().abi(), component, residency) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetComponentWake(handle: P0, component: u32, wakehint: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentWake(handle : super::super::Foundation:: POHANDLE, component : u32, wakehint : super::super::super::Win32::Foundation:: BOOLEAN)); - PoFxSetComponentWake(handle.into_param().abi(), component, wakehint.into_param().abi()) + PoFxSetComponentWake(handle.param().abi(), component, wakehint.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetDeviceIdleTimeout(handle: P0, idletimeout: u64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetDeviceIdleTimeout(handle : super::super::Foundation:: POHANDLE, idletimeout : u64)); - PoFxSetDeviceIdleTimeout(handle.into_param().abi(), idletimeout) + PoFxSetDeviceIdleTimeout(handle.param().abi(), idletimeout) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoFxSetTargetDripsDevicePowerState(handle: P0, targetstate: super::super::super::Win32::System::Power::DEVICE_POWER_STATE) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), targetstate) + PoFxSetTargetDripsDevicePowerState(handle.param().abi(), targetstate) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxStartDevicePowerManagement(handle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxStartDevicePowerManagement(handle : super::super::Foundation:: POHANDLE)); - PoFxStartDevicePowerManagement(handle.into_param().abi()) + PoFxStartDevicePowerManagement(handle.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxUnregisterDevice(handle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoFxUnregisterDevice(handle : super::super::Foundation:: POHANDLE)); - PoFxUnregisterDevice(handle.into_param().abi()) + PoFxUnregisterDevice(handle.param().abi()) } #[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] @@ -4976,10 +4976,10 @@ pub unsafe fn PoSetSystemWakeDevice(deviceobject: *const super::super::Foundatio #[inline] pub unsafe fn PoSetThermalActiveCooling(thermalrequest: *mut core::ffi::c_void, engaged: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalActiveCooling(thermalrequest : *mut core::ffi::c_void, engaged : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoSetThermalActiveCooling(thermalrequest, engaged.into_param().abi()) + PoSetThermalActiveCooling(thermalrequest, engaged.param().abi()) } #[inline] pub unsafe fn PoSetThermalPassiveCooling(thermalrequest: *mut core::ffi::c_void, throttle: u8) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5021,10 +5021,10 @@ pub unsafe fn ProbeForWrite(address: *mut core::ffi::c_void, length: usize, alig #[inline] pub unsafe fn PsAcquireSiloHardReference(silo: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsAcquireSiloHardReference(silo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsAcquireSiloHardReference(silo.into_param().abi()) + PsAcquireSiloHardReference(silo.param().abi()) } #[inline] pub unsafe fn PsAllocSiloContextSlot(reserved: usize, returnedcontextslot: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5041,28 +5041,28 @@ pub unsafe fn PsAllocateAffinityToken(affinitytoken: *mut super::super::Foundati #[inline] pub unsafe fn PsAttachSiloToCurrentThread(silo: P0) -> super::super::Foundation::PESILO where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsAttachSiloToCurrentThread(silo : super::super::Foundation:: PESILO) -> super::super::Foundation:: PESILO); - PsAttachSiloToCurrentThread(silo.into_param().abi()) + PsAttachSiloToCurrentThread(silo.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsCreateSiloContext(silo: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(silo.into_param().abi(), size, pooltype, contextcleanupcallback, returnedsilocontext) + PsCreateSiloContext(silo.param().abi(), size, pooltype, contextcleanupcallback, returnedsilocontext) } #[cfg(all(feature = "Wdk_Foundation", 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(threadhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), processhandle.into_param().abi(), core::mem::transmute(clientid.unwrap_or(std::ptr::null_mut())), startroutine, core::mem::transmute(startcontext.unwrap_or(std::ptr::null()))) + PsCreateSystemThread(threadhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), processhandle.param().abi(), core::mem::transmute(clientid.unwrap_or(std::ptr::null_mut())), startroutine, core::mem::transmute(startcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn PsDereferenceSiloContext(silocontext: *const core::ffi::c_void) { @@ -5073,19 +5073,19 @@ pub unsafe fn PsDereferenceSiloContext(silocontext: *const core::ffi::c_void) { #[inline] pub unsafe fn PsDetachSiloFromCurrentThread(previoussilo: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsDetachSiloFromCurrentThread(previoussilo : super::super::Foundation:: PESILO)); - PsDetachSiloFromCurrentThread(previoussilo.into_param().abi()) + PsDetachSiloFromCurrentThread(previoussilo.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsFreeAffinityToken(affinitytoken: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsFreeAffinityToken(affinitytoken : super::super::Foundation:: PAFFINITY_TOKEN)); - PsFreeAffinityToken(affinitytoken.into_param().abi()) + PsFreeAffinityToken(affinitytoken.param().abi()) } #[inline] pub unsafe fn PsFreeSiloContextSlot(contextslot: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5128,10 +5128,10 @@ pub unsafe fn PsGetCurrentThreadTeb() -> *mut core::ffi::c_void { #[inline] pub unsafe fn PsGetEffectiveServerSilo(silo: P0) -> super::super::Foundation::PESILO where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetEffectiveServerSilo(silo : super::super::Foundation:: PESILO) -> super::super::Foundation:: PESILO); - PsGetEffectiveServerSilo(silo.into_param().abi()) + PsGetEffectiveServerSilo(silo.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -5143,163 +5143,163 @@ pub unsafe fn PsGetHostSilo() -> super::super::Foundation::PESILO { #[inline] pub unsafe fn PsGetJobServerSilo(job: P0, serversilo: *mut super::super::Foundation::PESILO) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetJobServerSilo(job : super::super::Foundation:: PEJOB, serversilo : *mut super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetJobServerSilo(job.into_param().abi(), serversilo) + PsGetJobServerSilo(job.param().abi(), serversilo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetJobSilo(job: P0, silo: *mut super::super::Foundation::PESILO) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(job.into_param().abi(), silo) + PsGetJobSilo(job.param().abi(), silo) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetParentSilo(job: P0) -> super::super::Foundation::PESILO where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetParentSilo(job : super::super::Foundation:: PEJOB) -> super::super::Foundation:: PESILO); - PsGetParentSilo(job.into_param().abi()) + PsGetParentSilo(job.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetPermanentSiloContext(silo: P0, contextslot: u32, returnedsilocontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(silo.into_param().abi(), contextslot, returnedsilocontext) + PsGetPermanentSiloContext(silo.param().abi(), contextslot, returnedsilocontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessCreateTimeQuadPart(process: P0) -> i64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessCreateTimeQuadPart(process : super::super::Foundation:: PEPROCESS) -> i64); - PsGetProcessCreateTimeQuadPart(process.into_param().abi()) + PsGetProcessCreateTimeQuadPart(process.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessExitStatus(process: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessExitStatus(process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetProcessExitStatus(process.into_param().abi()) + PsGetProcessExitStatus(process.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessId(process: P0) -> super::super::super::Win32::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessId(process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: HANDLE); - PsGetProcessId(process.into_param().abi()) + PsGetProcessId(process.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetProcessStartKey(process: P0) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessStartKey(process : super::super::Foundation:: PEPROCESS) -> u64); - PsGetProcessStartKey(process.into_param().abi()) + PsGetProcessStartKey(process.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetServerSiloServiceSessionId(silo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetServerSiloServiceSessionId(silo : super::super::Foundation:: PESILO) -> u32); - PsGetServerSiloServiceSessionId(silo.into_param().abi()) + PsGetServerSiloServiceSessionId(silo.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetSiloContainerId(silo: P0) -> *mut windows_core::GUID where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetSiloContainerId(silo : super::super::Foundation:: PESILO) -> *mut windows_core::GUID); - PsGetSiloContainerId(silo.into_param().abi()) + PsGetSiloContainerId(silo.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetSiloContext(silo: P0, contextslot: u32, returnedsilocontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(silo.into_param().abi(), contextslot, returnedsilocontext) + PsGetSiloContext(silo.param().abi(), contextslot, returnedsilocontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetSiloMonitorContextSlot(monitor: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetSiloMonitorContextSlot(monitor : super::super::Foundation:: PSILO_MONITOR) -> u32); - PsGetSiloMonitorContextSlot(monitor.into_param().abi()) + PsGetSiloMonitorContextSlot(monitor.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadCreateTime(thread: P0) -> i64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadCreateTime(thread : super::super::Foundation:: PETHREAD) -> i64); - PsGetThreadCreateTime(thread.into_param().abi()) + PsGetThreadCreateTime(thread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadExitStatus(thread: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadExitStatus(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsGetThreadExitStatus(thread.into_param().abi()) + PsGetThreadExitStatus(thread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadId(thread: P0) -> super::super::super::Win32::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadId(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: HANDLE); - PsGetThreadId(thread.into_param().abi()) + PsGetThreadId(thread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadProcessId(thread: P0) -> super::super::super::Win32::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProcessId(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: HANDLE); - PsGetThreadProcessId(thread.into_param().abi()) + PsGetThreadProcessId(thread.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadProperty(thread: P0, key: usize, flags: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProperty(thread : super::super::Foundation:: PETHREAD, key : usize, flags : u32) -> *mut core::ffi::c_void); - PsGetThreadProperty(thread.into_param().abi(), key, flags) + PsGetThreadProperty(thread.param().abi(), key, flags) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsGetThreadServerSilo(thread: P0) -> super::super::Foundation::PESILO where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadServerSilo(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PESILO); - PsGetThreadServerSilo(thread.into_param().abi()) + PsGetThreadServerSilo(thread.param().abi()) } #[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>) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -5310,19 +5310,19 @@ pub unsafe fn PsGetVersion(majorversion: Option<*mut u32>, minorversion: Option< #[inline] pub unsafe fn PsInsertPermanentSiloContext(silo: P0, contextslot: u32, silocontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(silo.into_param().abi(), contextslot, silocontext) + PsInsertPermanentSiloContext(silo.param().abi(), contextslot, silocontext) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsInsertSiloContext(silo: P0, contextslot: u32, silocontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(silo.into_param().abi(), contextslot, silocontext) + PsInsertSiloContext(silo.param().abi(), contextslot, silocontext) } #[inline] pub unsafe fn PsIsCurrentThreadInServerSilo() -> super::super::super::Win32::Foundation::BOOLEAN { @@ -5338,28 +5338,28 @@ pub unsafe fn PsIsCurrentThreadPrefetching() -> super::super::super::Win32::Foun #[inline] pub unsafe fn PsIsHostSilo(silo: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsIsHostSilo(silo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: BOOLEAN); - PsIsHostSilo(silo.into_param().abi()) + PsIsHostSilo(silo.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsMakeSiloContextPermanent(silo: P0, contextslot: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsMakeSiloContextPermanent(silo : super::super::Foundation:: PESILO, contextslot : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsMakeSiloContextPermanent(silo.into_param().abi(), contextslot) + PsMakeSiloContextPermanent(silo.param().abi(), contextslot) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsQueryTotalCycleTimeProcess(process: P0, cycletimestamp: *mut u64) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsQueryTotalCycleTimeProcess(process : super::super::Foundation:: PEPROCESS, cycletimestamp : *mut u64) -> u64); - PsQueryTotalCycleTimeProcess(process.into_param().abi(), cycletimestamp) + PsQueryTotalCycleTimeProcess(process.param().abi(), cycletimestamp) } #[inline] pub unsafe fn PsReferenceSiloContext(silocontext: *const core::ffi::c_void) { @@ -5376,10 +5376,10 @@ pub unsafe fn PsRegisterSiloMonitor(registration: *const SILO_MONITOR_REGISTRATI #[inline] pub unsafe fn PsReleaseSiloHardReference(silo: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsReleaseSiloHardReference(silo : super::super::Foundation:: PESILO)); - PsReleaseSiloHardReference(silo.into_param().abi()) + PsReleaseSiloHardReference(silo.param().abi()) } #[inline] pub unsafe fn PsRemoveCreateThreadNotifyRoutine(notifyroutine: PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5395,53 +5395,53 @@ pub unsafe fn PsRemoveLoadImageNotifyRoutine(notifyroutine: PLOAD_IMAGE_NOTIFY_R #[inline] pub unsafe fn PsRemoveSiloContext(silo: P0, contextslot: u32, removedsilocontext: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(silo.into_param().abi(), contextslot, core::mem::transmute(removedsilocontext.unwrap_or(std::ptr::null_mut()))) + PsRemoveSiloContext(silo.param().abi(), contextslot, core::mem::transmute(removedsilocontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsReplaceSiloContext(silo: P0, contextslot: u32, newsilocontext: *const core::ffi::c_void, oldsilocontext: Option<*mut *mut core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(silo.into_param().abi(), contextslot, newsilocontext, core::mem::transmute(oldsilocontext.unwrap_or(std::ptr::null_mut()))) + PsReplaceSiloContext(silo.param().abi(), contextslot, newsilocontext, core::mem::transmute(oldsilocontext.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsRevertToUserMultipleGroupAffinityThread(affinitytoken: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsRevertToUserMultipleGroupAffinityThread(affinitytoken : super::super::Foundation:: PAFFINITY_TOKEN)); - PsRevertToUserMultipleGroupAffinityThread(affinitytoken.into_param().abi()) + PsRevertToUserMultipleGroupAffinityThread(affinitytoken.param().abi()) } #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutine(notifyroutine: PCREATE_PROCESS_NOTIFY_ROUTINE, remove: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutine(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutine(notifyroutine, remove.into_param().abi()) + PsSetCreateProcessNotifyRoutine(notifyroutine, remove.param().abi()) } #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutineEx(notifyroutine, remove.into_param().abi()) + PsSetCreateProcessNotifyRoutineEx(notifyroutine, remove.param().abi()) } #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutineEx2(notifytype: PSCREATEPROCESSNOTIFYTYPE, notifyinformation: *const core::ffi::c_void, remove: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx2(notifytype : PSCREATEPROCESSNOTIFYTYPE, notifyinformation : *const core::ffi::c_void, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutineEx2(notifytype, notifyinformation, remove.into_param().abi()) + PsSetCreateProcessNotifyRoutineEx2(notifytype, notifyinformation, remove.param().abi()) } #[inline] pub unsafe fn PsSetCreateThreadNotifyRoutine(notifyroutine: PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5456,10 +5456,10 @@ pub unsafe fn PsSetCreateThreadNotifyRoutineEx(notifytype: PSCREATETHREADNOTIFYT #[inline] pub unsafe fn PsSetCurrentThreadPrefetching(prefetching: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCurrentThreadPrefetching(prefetching : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - PsSetCurrentThreadPrefetching(prefetching.into_param().abi()) + PsSetCurrentThreadPrefetching(prefetching.param().abi()) } #[inline] pub unsafe fn PsSetLoadImageNotifyRoutine(notifyroutine: PLOAD_IMAGE_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5475,46 +5475,46 @@ pub unsafe fn PsSetLoadImageNotifyRoutineEx(notifyroutine: PLOAD_IMAGE_NOTIFY_RO #[inline] pub unsafe fn PsSetSystemMultipleGroupAffinityThread(groupaffinities: &[super::super::super::Win32::System::SystemInformation::GROUP_AFFINITY], affinitytoken: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(), affinitytoken.into_param().abi()) + PsSetSystemMultipleGroupAffinityThread(core::mem::transmute(groupaffinities.as_ptr()), groupaffinities.len().try_into().unwrap(), affinitytoken.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsStartSiloMonitor(monitor: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsStartSiloMonitor(monitor : super::super::Foundation:: PSILO_MONITOR) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsStartSiloMonitor(monitor.into_param().abi()) + PsStartSiloMonitor(monitor.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsTerminateServerSilo(serversilo: P0, exitstatus: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsTerminateServerSilo(serversilo : super::super::Foundation:: PESILO, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS)); - PsTerminateServerSilo(serversilo.into_param().abi(), exitstatus.into_param().abi()) + PsTerminateServerSilo(serversilo.param().abi(), exitstatus.param().abi()) } #[inline] pub unsafe fn PsTerminateSystemThread(exitstatus: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsTerminateSystemThread(exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsTerminateSystemThread(exitstatus.into_param().abi()) + PsTerminateSystemThread(exitstatus.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PsUnregisterSiloMonitor(monitor: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn PsUnregisterSiloMonitor(monitor : super::super::Foundation:: PSILO_MONITOR)); - PsUnregisterSiloMonitor(monitor.into_param().abi()) + PsUnregisterSiloMonitor(monitor.param().abi()) } #[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 { @@ -5561,10 +5561,10 @@ pub unsafe fn RtlAppendUnicodeStringToString(destination: *mut super::super::sup #[inline] pub unsafe fn RtlAppendUnicodeToString(destination: *mut super::super::super::Win32::Foundation::UNICODE_STRING, source: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlAppendUnicodeToString(destination : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, source : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlAppendUnicodeToString(destination, source.into_param().abi()) + RtlAppendUnicodeToString(destination, source.param().abi()) } #[inline] pub unsafe fn RtlAreBitsClear(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -5579,18 +5579,18 @@ pub unsafe fn RtlAreBitsSet(bitmapheader: *const RTL_BITMAP, startingindex: u32, #[inline] pub unsafe fn RtlAssert(voidfailedassertion: *const core::ffi::c_void, voidfilename: *const core::ffi::c_void, linenumber: u32, mutablemessage: P0) where - P0: windows_core::IntoParam, + P0: 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(voidfailedassertion, voidfilename, linenumber, mutablemessage.into_param().abi()) + RtlAssert(voidfailedassertion, voidfilename, linenumber, mutablemessage.param().abi()) } #[inline] pub unsafe fn RtlCheckRegistryKey(relativeto: u32, path: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlCheckRegistryKey(relativeto : u32, path : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCheckRegistryKey(relativeto, path.into_param().abi()) + RtlCheckRegistryKey(relativeto, path.param().abi()) } #[inline] pub unsafe fn RtlClearAllBits(bitmapheader: *const RTL_BITMAP) { @@ -5621,26 +5621,26 @@ pub unsafe fn RtlCmEncodeMemIoResource(descriptor: *const CM_PARTIAL_RESOURCE_DE #[inline] pub unsafe fn RtlCompareString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - RtlCompareString(string1, string2, caseinsensitive.into_param().abi()) + RtlCompareString(string1, string2, caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlCompareUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - RtlCompareUnicodeString(string1, string2, caseinsensitive.into_param().abi()) + RtlCompareUnicodeString(string1, string2, caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlCompareUnicodeStrings(string1: &[u16], string2: &[u16], caseinsensitive: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeStrings(string1 : *const u16, string1length : usize, string2 : *const u16, string2length : usize, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - RtlCompareUnicodeStrings(core::mem::transmute(string1.as_ptr()), string1.len().try_into().unwrap(), core::mem::transmute(string2.as_ptr()), string2.len().try_into().unwrap(), caseinsensitive.into_param().abi()) + RtlCompareUnicodeStrings(core::mem::transmute(string1.as_ptr()), string1.len().try_into().unwrap(), core::mem::transmute(string2.as_ptr()), string2.len().try_into().unwrap(), caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlContractHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -5676,10 +5676,10 @@ pub unsafe fn RtlCreateHashTableEx(hashtable: *mut *mut RTL_DYNAMIC_HASH_TABLE, #[inline] pub unsafe fn RtlCreateRegistryKey(relativeto: u32, path: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlCreateRegistryKey(relativeto : u32, path : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlCreateRegistryKey(relativeto, path.into_param().abi()) + RtlCreateRegistryKey(relativeto, path.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -5723,11 +5723,11 @@ pub unsafe fn RtlDeleteNoSplay(links: *const super::super::Foundation::RTL_SPLAY #[inline] pub unsafe fn RtlDeleteRegistryValue(relativeto: u32, path: P0, valuename: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(relativeto, path.into_param().abi(), valuename.into_param().abi()) + RtlDeleteRegistryValue(relativeto, path.param().abi(), valuename.param().abi()) } #[inline] pub unsafe fn RtlDowncaseUnicodeChar(sourcecharacter: u16) -> u16 { @@ -5762,18 +5762,18 @@ pub unsafe fn RtlEnumerateEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABL #[inline] pub unsafe fn RtlEnumerateGenericTable(table: *const RTL_GENERIC_TABLE, restart: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTable(table : *const RTL_GENERIC_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); - RtlEnumerateGenericTable(table, restart.into_param().abi()) + RtlEnumerateGenericTable(table, restart.param().abi()) } #[inline] pub unsafe fn RtlEnumerateGenericTableAvl(table: *const RTL_AVL_TABLE, restart: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableAvl(table : *const RTL_AVL_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); - RtlEnumerateGenericTableAvl(table, restart.into_param().abi()) + RtlEnumerateGenericTableAvl(table, restart.param().abi()) } #[inline] pub unsafe fn RtlEnumerateGenericTableLikeADirectory(table: *const RTL_AVL_TABLE, matchfunction: PRTL_AVL_MATCH_FUNCTION, 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 { @@ -5795,18 +5795,18 @@ pub unsafe fn RtlEnumerateGenericTableWithoutSplayingAvl(table: *const RTL_AVL_T #[inline] pub unsafe fn RtlEqualString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlEqualString(string1, string2, caseinsensitive.into_param().abi()) + RtlEqualString(string1, string2, caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlEqualUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlEqualUnicodeString(string1, string2, caseinsensitive.into_param().abi()) + RtlEqualUnicodeString(string1, string2, caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlExpandHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -5831,10 +5831,10 @@ pub unsafe fn RtlFindClearBitsAndSet(bitmapheader: *const RTL_BITMAP, numbertofi #[inline] pub unsafe fn RtlFindClearRuns(bitmapheader: *const RTL_BITMAP, runarray: &mut [RTL_BITMAP_RUN], locatelongestruns: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlFindClearRuns(bitmapheader : *const RTL_BITMAP, runarray : *mut RTL_BITMAP_RUN, sizeofrunarray : u32, locatelongestruns : super::super::super::Win32::Foundation:: BOOLEAN) -> u32); - RtlFindClearRuns(bitmapheader, core::mem::transmute(runarray.as_ptr()), runarray.len().try_into().unwrap(), locatelongestruns.into_param().abi()) + RtlFindClearRuns(bitmapheader, core::mem::transmute(runarray.as_ptr()), runarray.len().try_into().unwrap(), locatelongestruns.param().abi()) } #[inline] pub unsafe fn RtlFindClosestEncodableLength(sourcelength: u64, targetlength: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5948,12 +5948,12 @@ pub unsafe fn RtlGetNtSystemRoot() -> windows_core::PCWSTR { #[inline] pub unsafe fn RtlGetPersistedStateLocation(sourceid: P0, customvalue: P1, defaultpath: P2, statelocationtype: STATE_LOCATION_TYPE, targetpath: windows_core::PWSTR, bufferlengthin: u32, bufferlengthout: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), customvalue.into_param().abi(), defaultpath.into_param().abi(), statelocationtype, core::mem::transmute(targetpath), bufferlengthin, core::mem::transmute(bufferlengthout.unwrap_or(std::ptr::null_mut()))) + RtlGetPersistedStateLocation(sourceid.param().abi(), customvalue.param().abi(), defaultpath.param().abi(), statelocationtype, core::mem::transmute(targetpath), bufferlengthin, core::mem::transmute(bufferlengthout.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RtlGetSuiteMask() -> u32 { @@ -5969,10 +5969,10 @@ 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: P0, hashalgorithm: u32, hashvalue: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlHashUnicodeString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN, hashalgorithm : u32, hashvalue : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlHashUnicodeString(string, caseinsensitive.into_param().abi(), hashalgorithm, hashvalue) + RtlHashUnicodeString(string, caseinsensitive.param().abi(), hashalgorithm, hashvalue) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -6071,10 +6071,10 @@ pub unsafe fn RtlIoEncodeMemIoResource(descriptor: *const IO_RESOURCE_DESCRIPTOR #[inline] pub unsafe fn RtlIsApiSetImplemented(apisetname: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIsApiSetImplemented(apisetname : windows_core::PCSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIsApiSetImplemented(apisetname.into_param().abi()) + RtlIsApiSetImplemented(apisetname.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -6115,19 +6115,19 @@ pub unsafe fn RtlIsStateSeparationEnabled() -> super::super::super::Win32::Found #[inline] pub unsafe fn RtlIsUntrustedObject(handle: P0, object: Option<*const core::ffi::c_void>, untrustedobject: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIsUntrustedObject(handle : super::super::super::Win32::Foundation:: HANDLE, object : *const core::ffi::c_void, untrustedobject : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlIsUntrustedObject(handle.into_param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null())), untrustedobject) + RtlIsUntrustedObject(handle.param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null())), untrustedobject) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlLengthSecurityDescriptor(securitydescriptor: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlLengthSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> u32); - RtlLengthSecurityDescriptor(securitydescriptor.into_param().abi()) + RtlLengthSecurityDescriptor(securitydescriptor.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -6172,10 +6172,10 @@ pub unsafe fn RtlMapGenericMask(accessmask: *mut u32, genericmapping: *const sup #[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: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlNormalizeSecurityDescriptor(securitydescriptor, securitydescriptorlength, core::mem::transmute(newsecuritydescriptor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(std::ptr::null_mut())), checkonly.into_param().abi()) + RtlNormalizeSecurityDescriptor(securitydescriptor, securitydescriptorlength, core::mem::transmute(newsecuritydescriptor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(std::ptr::null_mut())), checkonly.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -6221,27 +6221,27 @@ pub unsafe fn RtlPrefetchMemoryNonTemporal(source: *const core::ffi::c_void, len #[inline] pub unsafe fn RtlPrefixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlPrefixUnicodeString(string1, string2, caseinsensitive.into_param().abi()) + RtlPrefixUnicodeString(string1, string2, caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlQueryRegistryValueWithFallback(primaryhandle: P0, fallbackhandle: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(primaryhandle.into_param().abi(), fallbackhandle.into_param().abi(), valuename, valuelength, core::mem::transmute(valuetype.unwrap_or(std::ptr::null_mut())), valuedata, resultlength) + RtlQueryRegistryValueWithFallback(primaryhandle.param().abi(), fallbackhandle.param().abi(), valuename, valuelength, core::mem::transmute(valuetype.unwrap_or(std::ptr::null_mut())), valuedata, resultlength) } #[inline] pub unsafe fn RtlQueryRegistryValues(relativeto: u32, path: P0, 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 where - P0: windows_core::IntoParam, + P0: 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(relativeto, path.into_param().abi(), querytable, core::mem::transmute(context.unwrap_or(std::ptr::null())), core::mem::transmute(environment.unwrap_or(std::ptr::null()))) + RtlQueryRegistryValues(relativeto, path.param().abi(), querytable, core::mem::transmute(context.unwrap_or(std::ptr::null())), core::mem::transmute(environment.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RtlQueryValidationRunlevel(componentname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> u32 { @@ -6311,11 +6311,11 @@ pub unsafe fn RtlSetBits(bitmapheader: *const RTL_BITMAP, startingindex: u32, nu #[inline] pub unsafe fn RtlSetDaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, daclpresent: P0, dacl: Option<*const super::super::super::Win32::Security::ACL>, dacldefaulted: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlSetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : super::super::super::Win32::Foundation:: BOOLEAN, dacl : *const super::super::super::Win32::Security:: ACL, dacldefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetDaclSecurityDescriptor(securitydescriptor, daclpresent.into_param().abi(), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), dacldefaulted.into_param().abi()) + RtlSetDaclSecurityDescriptor(securitydescriptor, daclpresent.param().abi(), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), dacldefaulted.param().abi()) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] @@ -6355,10 +6355,10 @@ pub unsafe fn RtlSubtreeSuccessor(links: *const super::super::Foundation::RTL_SP #[inline] pub unsafe fn RtlSuffixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlSuffixUnicodeString(string1, string2, caseinsensitive.into_param().abi()) + RtlSuffixUnicodeString(string1, string2, caseinsensitive.param().abi()) } #[inline] pub unsafe fn RtlTestBit(bitmapheader: *const RTL_BITMAP, bitnumber: u32) -> super::super::super::Win32::Foundation::BOOLEAN { @@ -6381,10 +6381,10 @@ pub unsafe fn RtlTimeToTimeFields(time: *const i64) -> TIME_FIELDS { #[inline] pub unsafe fn RtlUTF8StringToUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING, allocatedestinationstring: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUTF8StringToUnicodeString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUTF8StringToUnicodeString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlUTF8ToUnicodeN(unicodestringdestination: windows_core::PWSTR, unicodestringmaxbytecount: u32, unicodestringactualbytecount: *mut u32, utf8stringsource: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -6405,10 +6405,10 @@ pub unsafe fn RtlUnicodeStringToInteger(string: *const super::super::super::Win3 #[inline] pub unsafe fn RtlUnicodeStringToUTF8String(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToUTF8String(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUnicodeStringToUTF8String(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlUnicodeToUTF8N(utf8stringdestination: &mut [u8], utf8stringactualbytecount: *mut u32, unicodestringsource: *const u16, unicodestringbytecount: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -6423,10 +6423,10 @@ pub unsafe fn RtlUpcaseUnicodeChar(sourcecharacter: u16) -> u16 { #[inline] pub unsafe fn RtlUpcaseUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUpcaseUnicodeString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlUpperChar(character: i8) -> i8 { @@ -6443,19 +6443,19 @@ pub unsafe fn RtlUpperString(destinationstring: *mut super::super::super::Win32: #[inline] pub unsafe fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput: P0, securitydescriptorlength: u32, requiredinformation: u32) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, requiredinformation : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlValidRelativeSecurityDescriptor(securitydescriptorinput.into_param().abi(), securitydescriptorlength, requiredinformation) + RtlValidRelativeSecurityDescriptor(securitydescriptorinput.param().abi(), securitydescriptorlength, requiredinformation) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlValidSecurityDescriptor(securitydescriptor: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlValidSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlValidSecurityDescriptor(securitydescriptor.into_param().abi()) + RtlValidSecurityDescriptor(securitydescriptor.param().abi()) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] @@ -6482,11 +6482,11 @@ pub unsafe fn RtlWeaklyEnumerateEntryHashTable(hashtable: *const RTL_DYNAMIC_HAS #[inline] pub unsafe fn RtlWriteRegistryValue(relativeto: u32, path: P0, valuename: P1, valuetype: u32, valuedata: Option<*const core::ffi::c_void>, valuelength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(relativeto, path.into_param().abi(), valuename.into_param().abi(), valuetype, core::mem::transmute(valuedata.unwrap_or(std::ptr::null())), valuelength) + RtlWriteRegistryValue(relativeto, path.param().abi(), valuename.param().abi(), valuetype, core::mem::transmute(valuedata.unwrap_or(std::ptr::null())), valuelength) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -6503,33 +6503,33 @@ pub unsafe fn RtlxUnicodeStringToAnsiSize(unicodestring: *const super::super::su #[inline] pub unsafe fn SeAccessCheck(securitydescriptor: P0, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, subjectcontextlocked: P1, 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) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, 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) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAccessCheck(securitydescriptor.into_param().abi(), subjectsecuritycontext, subjectcontextlocked.into_param().abi(), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null_mut())), genericmapping, accessmode, grantedaccess, accessstatus) + SeAccessCheck(securitydescriptor.param().abi(), subjectsecuritycontext, subjectcontextlocked.param().abi(), desiredaccess, previouslygrantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null_mut())), genericmapping, accessmode, grantedaccess, accessstatus) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAssignSecurity(parentdescriptor: P0, explicitdescriptor: P1, newdescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, isdirectoryobject: P2, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, 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(parentdescriptor.into_param().abi(), explicitdescriptor.into_param().abi(), newdescriptor, isdirectoryobject.into_param().abi(), subjectcontext, genericmapping, pooltype) + SeAssignSecurity(parentdescriptor.param().abi(), explicitdescriptor.param().abi(), newdescriptor, isdirectoryobject.param().abi(), subjectcontext, genericmapping, pooltype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAssignSecurityEx(parentdescriptor: P0, explicitdescriptor: P1, newdescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, isdirectoryobject: P2, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::super::super::Win32::Foundation:: BOOLEAN, 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(parentdescriptor.into_param().abi(), explicitdescriptor.into_param().abi(), newdescriptor, core::mem::transmute(objecttype.unwrap_or(std::ptr::null())), isdirectoryobject.into_param().abi(), autoinheritflags, subjectcontext, genericmapping, pooltype) + SeAssignSecurityEx(parentdescriptor.param().abi(), explicitdescriptor.param().abi(), newdescriptor, core::mem::transmute(objecttype.unwrap_or(std::ptr::null())), isdirectoryobject.param().abi(), autoinheritflags, subjectcontext, genericmapping, pooltype) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -6543,11 +6543,11 @@ pub unsafe fn SeCaptureSubjectContext() -> super::super::Foundation::SECURITY_SU #[inline] pub unsafe fn SeComputeAutoInheritByObjectType(objecttype: *const core::ffi::c_void, securitydescriptor: P0, parentsecuritydescriptor: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(objecttype, securitydescriptor.into_param().abi(), parentsecuritydescriptor.into_param().abi()) + SeComputeAutoInheritByObjectType(objecttype, securitydescriptor.param().abi(), parentsecuritydescriptor.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -6581,10 +6581,10 @@ 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: P0, auditparameters: *const super::super::super::Win32::Security::Authentication::Identity::SE_ADT_PARAMETER_ARRAY) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeReportSecurityEvent(flags : u32, sourcename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, usersid : super::super::super::Win32::Foundation:: PSID, auditparameters : *const super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeReportSecurityEvent(flags, sourcename, usersid.into_param().abi(), auditparameters) + SeReportSecurityEvent(flags, sourcename, usersid.param().abi(), auditparameters) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] @@ -6612,10 +6612,10 @@ pub unsafe fn SeUnregisterImageVerificationCallback(callbackhandle: *const core: #[inline] pub unsafe fn SeValidSecurityDescriptor(length: u32, securitydescriptor: P0) -> super::super::super::Win32::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn SeValidSecurityDescriptor(length : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeValidSecurityDescriptor(length, securitydescriptor.into_param().abi()) + SeValidSecurityDescriptor(length, securitydescriptor.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -6633,10 +6633,10 @@ pub unsafe fn TmCommitEnlistment(enlistment: *const super::super::Foundation::KE #[inline] pub unsafe fn TmCommitTransaction(transaction: *const super::super::Foundation::KTRANSACTION, wait: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmCommitTransaction(transaction, wait.into_param().abi()) + TmCommitTransaction(transaction, wait.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -6709,10 +6709,10 @@ pub unsafe fn TmPropagationComplete(resourcemanager: *const super::super::Founda #[inline] pub unsafe fn TmPropagationFailed(resourcemanager: *const super::super::Foundation::KRESOURCEMANAGER, requestcookie: u32, status: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanager, requestcookie, status.into_param().abi()) + TmPropagationFailed(resourcemanager, requestcookie, status.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -6771,10 +6771,10 @@ pub unsafe fn TmRollbackEnlistment(enlistment: *const super::super::Foundation:: #[inline] pub unsafe fn TmRollbackTransaction(transaction: *const super::super::Foundation::KTRANSACTION, wait: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRollbackTransaction(transaction, wait.into_param().abi()) + TmRollbackTransaction(transaction, wait.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -6786,18 +6786,18 @@ pub unsafe fn TmSinglePhaseReject(enlistment: *const super::super::Foundation::K #[inline] pub unsafe fn VslCreateSecureSection(handle: *mut super::super::super::Win32::Foundation::HANDLE, targetprocess: P0, mdl: *const super::super::Foundation::MDL, devicepageprotection: u32, attributes: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle, targetprocess.into_param().abi(), mdl, devicepageprotection, attributes) + VslCreateSecureSection(handle, targetprocess.param().abi(), mdl, devicepageprotection, attributes) } #[inline] pub unsafe fn VslDeleteSecureSection(globalhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntoskrnl.exe" "system" fn VslDeleteSecureSection(globalhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - VslDeleteSecureSection(globalhandle.into_param().abi()) + VslDeleteSecureSection(globalhandle.param().abi()) } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] @@ -6918,10 +6918,10 @@ pub unsafe fn WheaReportHwError(errorpacket: *mut WHEA_ERROR_PACKET_V2) -> super #[inline] pub unsafe fn WheaReportHwErrorDeviceDriver(errorsourceid: u32, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, errordata: &[u8], sectiontypeguid: *const windows_core::GUID, errorseverity: WHEA_ERROR_SEVERITY, devicefriendlyname: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(errorsourceid, deviceobject, core::mem::transmute(errordata.as_ptr()), errordata.len().try_into().unwrap(), sectiontypeguid, errorseverity, devicefriendlyname.into_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] @@ -6947,51 +6947,51 @@ pub unsafe fn ZwAllocateLocallyUniqueId(luid: *mut super::super::super::Win32::F #[inline] pub unsafe fn ZwCancelTimer(timerhandle: P0, currentstate: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCancelTimer(timerhandle.into_param().abi(), core::mem::transmute(currentstate.unwrap_or(std::ptr::null_mut()))) + ZwCancelTimer(timerhandle.param().abi(), core::mem::transmute(currentstate.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ZwClose(handle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwClose(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwClose(handle.into_param().abi()) + ZwClose(handle.param().abi()) } #[inline] pub unsafe fn ZwCommitComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwCommitComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwCommitEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwCommitEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwCommitRegistryTransaction(transactionhandle: P0, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwCommitRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCommitRegistryTransaction(transactionhandle.into_param().abi(), flags) + ZwCommitRegistryTransaction(transactionhandle.param().abi(), flags) } #[inline] pub unsafe fn ZwCommitTransaction(transactionhandle: P0, wait: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCommitTransaction(transactionhandle.into_param().abi(), wait.into_param().abi()) + ZwCommitTransaction(transactionhandle.param().abi(), wait.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -7003,11 +7003,11 @@ pub unsafe fn ZwCreateDirectoryObject(directoryhandle: *mut super::super::super: #[inline] pub unsafe fn ZwCreateEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, resourcemanagerhandle: P0, transactionhandle: P1, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: u32, notificationmask: u32, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enlistmenthandle, desiredaccess, resourcemanagerhandle.into_param().abi(), transactionhandle.into_param().abi(), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, notificationmask, core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) + ZwCreateEnlistment(enlistmenthandle, desiredaccess, resourcemanagerhandle.param().abi(), transactionhandle.param().abi(), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, notificationmask, core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] @@ -7025,10 +7025,10 @@ pub unsafe fn ZwCreateKey(keyhandle: *mut super::super::super::Win32::Foundation #[inline] pub unsafe fn ZwCreateKeyTransacted(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, titleindex: u32, class: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, createoptions: u32, transactionhandle: P0, disposition: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle, desiredaccess, objectattributes, titleindex, core::mem::transmute(class.unwrap_or(std::ptr::null())), createoptions, transactionhandle.into_param().abi(), core::mem::transmute(disposition.unwrap_or(std::ptr::null_mut()))) + ZwCreateKeyTransacted(keyhandle, desiredaccess, objectattributes, titleindex, core::mem::transmute(class.unwrap_or(std::ptr::null())), createoptions, transactionhandle.param().abi(), core::mem::transmute(disposition.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -7040,19 +7040,19 @@ pub unsafe fn ZwCreateRegistryTransaction(transactionhandle: *mut super::super:: #[inline] pub unsafe fn ZwCreateResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: P0, resourcemanagerguid: Option<*const windows_core::GUID>, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, createoptions: u32, description: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle, desiredaccess, tmhandle.into_param().abi(), core::mem::transmute(resourcemanagerguid.unwrap_or(std::ptr::null())), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, core::mem::transmute(description.unwrap_or(std::ptr::null()))) + ZwCreateResourceManager(resourcemanagerhandle, desiredaccess, tmhandle.param().abi(), core::mem::transmute(resourcemanagerguid.unwrap_or(std::ptr::null())), core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), createoptions, core::mem::transmute(description.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(sectionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, filehandle.into_param().abi()) + ZwCreateSection(sectionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(maximumsize.unwrap_or(std::ptr::null())), sectionpageprotection, allocationattributes, filehandle.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -7064,10 +7064,10 @@ pub unsafe fn ZwCreateTimer(timerhandle: *mut super::super::super::Win32::Founda #[inline] pub unsafe fn ZwCreateTransaction(transactionhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, uow: Option<*const windows_core::GUID>, tmhandle: P0, createoptions: u32, isolationlevel: u32, isolationflags: u32, timeout: Option<*const i64>, description: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(uow.unwrap_or(std::ptr::null())), tmhandle.into_param().abi(), createoptions, isolationlevel, isolationflags, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(description.unwrap_or(std::ptr::null()))) + ZwCreateTransaction(transactionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), core::mem::transmute(uow.unwrap_or(std::ptr::null())), tmhandle.param().abi(), createoptions, isolationlevel, isolationflags, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(description.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -7078,28 +7078,28 @@ pub unsafe fn ZwCreateTransactionManager(tmhandle: *mut super::super::super::Win #[inline] pub unsafe fn ZwDeleteKey(keyhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwDeleteKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDeleteKey(keyhandle.into_param().abi()) + ZwDeleteKey(keyhandle.param().abi()) } #[inline] pub unsafe fn ZwDeleteValueKey(keyhandle: P0, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), valuename) + ZwDeleteValueKey(keyhandle.param().abi(), valuename) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwDeviceIoControlFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) + ZwDeviceIoControlFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, iocontrolcode, core::mem::transmute(inputbuffer.unwrap_or(std::ptr::null())), inputbufferlength, core::mem::transmute(outputbuffer.unwrap_or(std::ptr::null_mut())), outputbufferlength) } #[inline] pub unsafe fn ZwDisplayString(string: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -7109,44 +7109,44 @@ pub unsafe fn ZwDisplayString(string: *const super::super::super::Win32::Foundat #[inline] pub unsafe fn ZwEnumerateKey(keyhandle: P0, index: u32, keyinformationclass: KEY_INFORMATION_CLASS, keyinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), index, keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) + ZwEnumerateKey(keyhandle.param().abi(), index, keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwEnumerateTransactionObject(rootobjecthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootobjecthandle.into_param().abi(), querytype, objectcursor, objectcursorlength, returnlength) + ZwEnumerateTransactionObject(rootobjecthandle.param().abi(), querytype, objectcursor, objectcursorlength, returnlength) } #[inline] pub unsafe fn ZwEnumerateValueKey(keyhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), index, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) + ZwEnumerateValueKey(keyhandle.param().abi(), index, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) } #[inline] pub unsafe fn ZwFlushKey(keyhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwFlushKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwFlushKey(keyhandle.into_param().abi()) + ZwFlushKey(keyhandle.param().abi()) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn ZwGetNotificationResourceManager(resourcemanagerhandle: P0, transactionnotification: *mut super::super::super::Win32::Storage::FileSystem::TRANSACTION_NOTIFICATION, notificationlength: u32, timeout: *const i64, returnlength: Option<*mut u32>, asynchronous: u32, asynchronouscontext: usize) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), transactionnotification, notificationlength, timeout, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut())), asynchronous, asynchronouscontext) + ZwGetNotificationResourceManager(resourcemanagerhandle.param().abi(), transactionnotification, notificationlength, timeout, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut())), asynchronous, asynchronouscontext) } #[inline] pub unsafe fn ZwLoadDriver(driverservicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -7156,28 +7156,28 @@ pub unsafe fn ZwLoadDriver(driverservicename: *const super::super::super::Win32: #[inline] pub unsafe fn ZwMakeTemporaryObject(handle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwMakeTemporaryObject(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwMakeTemporaryObject(handle.into_param().abi()) + ZwMakeTemporaryObject(handle.param().abi()) } #[inline] pub unsafe fn ZwMapViewOfSection(sectionhandle: P0, processhandle: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(sectionhandle.into_param().abi(), processhandle.into_param().abi(), baseaddress, zerobits, commitsize, core::mem::transmute(sectionoffset.unwrap_or(std::ptr::null_mut())), viewsize, inheritdisposition, allocationtype, win32protect) + ZwMapViewOfSection(sectionhandle.param().abi(), processhandle.param().abi(), baseaddress, zerobits, commitsize, core::mem::transmute(sectionoffset.unwrap_or(std::ptr::null_mut())), viewsize, inheritdisposition, allocationtype, win32protect) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn ZwOpenEnlistment(enlistmenthandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, rmhandle: P0, enlistmentguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle, desiredaccess, rmhandle.into_param().abi(), enlistmentguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) + ZwOpenEnlistment(enlistmenthandle, desiredaccess, rmhandle.param().abi(), enlistmentguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -7207,19 +7207,19 @@ pub unsafe fn ZwOpenKeyEx(keyhandle: *mut super::super::super::Win32::Foundation #[inline] pub unsafe fn ZwOpenKeyTransacted(keyhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, transactionhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle, desiredaccess, objectattributes, transactionhandle.into_param().abi()) + ZwOpenKeyTransacted(keyhandle, desiredaccess, objectattributes, transactionhandle.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle, desiredaccess, objectattributes, openoptions, transactionhandle.into_param().abi()) + ZwOpenKeyTransactedEx(keyhandle, desiredaccess, objectattributes, openoptions, transactionhandle.param().abi()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_WindowsProgramming"))] #[inline] @@ -7231,10 +7231,10 @@ pub unsafe fn ZwOpenProcess(processhandle: *mut super::super::super::Win32::Foun #[inline] pub unsafe fn ZwOpenResourceManager(resourcemanagerhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, tmhandle: P0, resourcemanagerguid: *const windows_core::GUID, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle, desiredaccess, tmhandle.into_param().abi(), resourcemanagerguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) + ZwOpenResourceManager(resourcemanagerhandle, desiredaccess, tmhandle.param().abi(), resourcemanagerguid, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -7258,10 +7258,10 @@ pub unsafe fn ZwOpenTimer(timerhandle: *mut super::super::super::Win32::Foundati #[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: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), uow, tmhandle.into_param().abi()) + ZwOpenTransaction(transactionhandle, desiredaccess, core::mem::transmute(objectattributes.unwrap_or(std::ptr::null())), uow, tmhandle.param().abi()) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -7278,34 +7278,34 @@ pub unsafe fn ZwPowerInformation(informationlevel: super::super::super::Win32::S #[inline] pub unsafe fn ZwPrePrepareComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwPrePrepareComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwPrePrepareEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwPrePrepareEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwPrepareComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwPrepareComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwPrepareEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwPrepareEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] @@ -7317,267 +7317,267 @@ pub unsafe fn ZwQueryInformationByName(objectattributes: *const super::super::Fo #[inline] pub unsafe fn ZwQueryInformationEnlistment(enlistmenthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + ZwQueryInformationEnlistment(enlistmenthandle.param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwQueryInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fileinformation, length, fileinformationclass) + ZwQueryInformationFile(filehandle.param().abi(), iostatusblock, fileinformation, length, fileinformationclass) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwQueryInformationResourceManager(resourcemanagerhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + ZwQueryInformationResourceManager(resourcemanagerhandle.param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwQueryInformationTransaction(transactionhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle.into_param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + ZwQueryInformationTransaction(transactionhandle.param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwQueryInformationTransactionManager(transactionmanagerhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionmanagerhandle.into_param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) + ZwQueryInformationTransactionManager(transactionmanagerhandle.param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ZwQueryKey(keyhandle: P0, keyinformationclass: KEY_INFORMATION_CLASS, keyinformation: Option<*mut core::ffi::c_void>, length: u32, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) + ZwQueryKey(keyhandle.param().abi(), keyinformationclass, core::mem::transmute(keyinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) } #[inline] pub unsafe fn ZwQuerySymbolicLinkObject(linkhandle: P0, linktarget: *mut super::super::super::Win32::Foundation::UNICODE_STRING, returnedlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(linkhandle.into_param().abi(), linktarget, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))) + ZwQuerySymbolicLinkObject(linkhandle.param().abi(), linktarget, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ZwQueryValueKey(keyhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), valuename, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) + ZwQueryValueKey(keyhandle.param().abi(), valuename, keyvalueinformationclass, core::mem::transmute(keyvalueinformation.unwrap_or(std::ptr::null_mut())), length, resultlength) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwReadFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) + ZwReadFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwReadOnlyEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwReadOnlyEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwRecoverEnlistment(enlistmenthandle: P0, enlistmentkey: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) + ZwRecoverEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(enlistmentkey.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwRecoverResourceManager(resourcemanagerhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwRecoverResourceManager(resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRecoverResourceManager(resourcemanagerhandle.into_param().abi()) + ZwRecoverResourceManager(resourcemanagerhandle.param().abi()) } #[inline] pub unsafe fn ZwRecoverTransactionManager(transactionmanagerhandle: P0) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwRecoverTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRecoverTransactionManager(transactionmanagerhandle.into_param().abi()) + ZwRecoverTransactionManager(transactionmanagerhandle.param().abi()) } #[inline] pub unsafe fn ZwRenameKey(keyhandle: P0, newname: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), newname) + ZwRenameKey(keyhandle.param().abi(), newname) } #[inline] pub unsafe fn ZwRestoreKey(keyhandle: P0, filehandle: P1, flags: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(keyhandle.into_param().abi(), filehandle.into_param().abi(), flags) + ZwRestoreKey(keyhandle.param().abi(), filehandle.param().abi(), flags) } #[inline] pub unsafe fn ZwRollbackComplete(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwRollbackComplete(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwRollbackEnlistment(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwRollbackEnlistment(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwRollbackTransaction(transactionhandle: P0, wait: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRollbackTransaction(transactionhandle.into_param().abi(), wait.into_param().abi()) + ZwRollbackTransaction(transactionhandle.param().abi(), wait.param().abi()) } #[inline] pub unsafe fn ZwRollforwardTransactionManager(transactionmanagerhandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionmanagerhandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwRollforwardTransactionManager(transactionmanagerhandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwSaveKey(keyhandle: P0, filehandle: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(keyhandle.into_param().abi(), filehandle.into_param().abi()) + ZwSaveKey(keyhandle.param().abi(), filehandle.param().abi()) } #[inline] pub unsafe fn ZwSaveKeyEx(keyhandle: P0, filehandle: P1, format: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(keyhandle.into_param().abi(), filehandle.into_param().abi(), format) + ZwSaveKeyEx(keyhandle.param().abi(), filehandle.param().abi(), format) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationEnlistment(enlistmenthandle: P0, enlistmentinformationclass: super::super::super::Win32::System::SystemServices::ENLISTMENT_INFORMATION_CLASS, enlistmentinformation: *const core::ffi::c_void, enlistmentinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength) + ZwSetInformationEnlistment(enlistmenthandle.param().abi(), enlistmentinformationclass, enlistmentinformation, enlistmentinformationlength) } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwSetInformationFile(filehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), iostatusblock, fileinformation, length, fileinformationclass) + ZwSetInformationFile(filehandle.param().abi(), iostatusblock, fileinformation, length, fileinformationclass) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationResourceManager(resourcemanagerhandle: P0, resourcemanagerinformationclass: super::super::super::Win32::System::SystemServices::RESOURCEMANAGER_INFORMATION_CLASS, resourcemanagerinformation: *const core::ffi::c_void, resourcemanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength) + ZwSetInformationResourceManager(resourcemanagerhandle.param().abi(), resourcemanagerinformationclass, resourcemanagerinformation, resourcemanagerinformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationTransaction(transactionhandle: P0, transactioninformationclass: super::super::super::Win32::System::SystemServices::TRANSACTION_INFORMATION_CLASS, transactioninformation: *const core::ffi::c_void, transactioninformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle.into_param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength) + ZwSetInformationTransaction(transactionhandle.param().abi(), transactioninformationclass, transactioninformation, transactioninformationlength) } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn ZwSetInformationTransactionManager(tmhandle: P0, transactionmanagerinformationclass: super::super::super::Win32::System::SystemServices::TRANSACTIONMANAGER_INFORMATION_CLASS, transactionmanagerinformation: *const core::ffi::c_void, transactionmanagerinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tmhandle.into_param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength) + ZwSetInformationTransactionManager(tmhandle.param().abi(), transactionmanagerinformationclass, transactionmanagerinformation, transactionmanagerinformationlength) } #[inline] pub unsafe fn ZwSetTimer(timerhandle: P0, duetime: *const i64, timerapcroutine: PTIMER_APC_ROUTINE, timercontext: Option<*const core::ffi::c_void>, resumetimer: P1, period: i32, previousstate: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn ZwSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : super::super::super::Win32::Foundation:: BOOLEAN, period : i32, previousstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetTimer(timerhandle.into_param().abi(), duetime, timerapcroutine, core::mem::transmute(timercontext.unwrap_or(std::ptr::null())), resumetimer.into_param().abi(), period, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut()))) + ZwSetTimer(timerhandle.param().abi(), duetime, timerapcroutine, core::mem::transmute(timercontext.unwrap_or(std::ptr::null())), resumetimer.param().abi(), period, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ZwSetTimerEx(timerhandle: P0, timersetinformationclass: TIMER_SET_INFORMATION_CLASS, timersetinformation: Option<*mut core::ffi::c_void>, timersetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(timerhandle.into_param().abi(), timersetinformationclass, core::mem::transmute(timersetinformation.unwrap_or(std::ptr::null_mut())), timersetinformationlength) + ZwSetTimerEx(timerhandle.param().abi(), timersetinformationclass, core::mem::transmute(timersetinformation.unwrap_or(std::ptr::null_mut())), timersetinformationlength) } #[inline] pub unsafe fn ZwSetValueKey(keyhandle: P0, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING, titleindex: u32, r#type: u32, data: Option<*const core::ffi::c_void>, datasize: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(keyhandle.into_param().abi(), valuename, titleindex, r#type, core::mem::transmute(data.unwrap_or(std::ptr::null())), datasize) + ZwSetValueKey(keyhandle.param().abi(), valuename, titleindex, r#type, core::mem::transmute(data.unwrap_or(std::ptr::null())), datasize) } #[inline] pub unsafe fn ZwSinglePhaseReject(enlistmenthandle: P0, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) + ZwSinglePhaseReject(enlistmenthandle.param().abi(), core::mem::transmute(tmvirtualclock.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ZwTerminateProcess(processhandle: P0, exitstatus: P1) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(processhandle.into_param().abi(), exitstatus.into_param().abi()) + ZwTerminateProcess(processhandle.param().abi(), exitstatus.param().abi()) } #[inline] pub unsafe fn ZwUnloadDriver(driverservicename: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -7587,37 +7587,37 @@ pub unsafe fn ZwUnloadDriver(driverservicename: *const super::super::super::Win3 #[inline] pub unsafe fn ZwUnmapViewOfSection(processhandle: P0, baseaddress: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null()))) + ZwUnmapViewOfSection(processhandle.param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwWriteFile(filehandle: P0, event: P1, apcroutine: super::super::super::Win32::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) + ZwWriteFile(filehandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), iostatusblock, buffer, length, core::mem::transmute(byteoffset.unwrap_or(std::ptr::null())), core::mem::transmute(key.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn vDbgPrintEx(componentid: u32, level: u32, format: P0, arglist: *const i8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn vDbgPrintEx(componentid : u32, level : u32, format : windows_core::PCSTR, arglist : *const i8) -> u32); - vDbgPrintEx(componentid, level, format.into_param().abi(), arglist) + vDbgPrintEx(componentid, level, format.param().abi(), arglist) } #[inline] pub unsafe fn vDbgPrintExWithPrefix(prefix: P0, componentid: u32, level: u32, format: P1, arglist: *const i8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), componentid, level, format.into_param().abi(), arglist) + vDbgPrintExWithPrefix(prefix.param().abi(), componentid, level, format.param().abi(), arglist) } pub const ACPIBus: INTERFACE_TYPE = INTERFACE_TYPE(17i32); pub const ADAPTER_INFO_API_BYPASS: u32 = 2u32; 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 3a53c14570..22ce396455 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs @@ -1,43 +1,43 @@ #[inline] pub unsafe fn NtQueryInformationProcess(processhandle: P0, processinformationclass: PROCESSINFOCLASS, processinformation: *mut core::ffi::c_void, processinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), processinformationclass, processinformation, processinformationlength, returnlength) + NtQueryInformationProcess(processhandle.param().abi(), processinformationclass, processinformation, processinformationlength, returnlength) } #[inline] pub unsafe fn NtQueryInformationThread(threadhandle: P0, threadinformationclass: THREADINFOCLASS, threadinformation: *mut core::ffi::c_void, threadinformationlength: u32, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(threadhandle.into_param().abi(), threadinformationclass, threadinformation, threadinformationlength, returnlength) + NtQueryInformationThread(threadhandle.param().abi(), threadinformationclass, threadinformation, threadinformationlength, returnlength) } #[inline] pub unsafe fn NtSetInformationThread(threadhandle: P0, threadinformationclass: THREADINFOCLASS, threadinformation: *const core::ffi::c_void, threadinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(threadhandle.into_param().abi(), threadinformationclass, threadinformation, threadinformationlength) + NtSetInformationThread(threadhandle.param().abi(), threadinformationclass, threadinformation, threadinformationlength) } #[inline] pub unsafe fn NtWaitForSingleObject(handle: P0, alertable: P1, timeout: *mut i64) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtWaitForSingleObject(handle.into_param().abi(), alertable.into_param().abi(), timeout) + NtWaitForSingleObject(handle.param().abi(), alertable.param().abi(), timeout) } #[inline] pub unsafe fn ZwSetInformationThread(threadhandle: P0, threadinformationclass: THREADINFOCLASS, threadinformation: *const core::ffi::c_void, threadinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(threadhandle.into_param().abi(), threadinformationclass, threadinformation, threadinformationlength) + ZwSetInformationThread(threadhandle.param().abi(), threadinformationclass, threadinformation, threadinformationlength) } pub const MaxProcessInfoClass: PROCESSINFOCLASS = PROCESSINFOCLASS(83i32); pub const MaxThreadInfoClass: THREADINFOCLASS = THREADINFOCLASS(56i32); diff --git a/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs b/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs index 86393bef84..9c907ac734 100644 --- a/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs +++ b/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs @@ -125,115 +125,115 @@ impl AtomPubClient { #[cfg(feature = "Web_Syndication")] pub fn RetrieveServiceDocumentAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveServiceDocumentAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveServiceDocumentAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Storage_Streams", feature = "Web_Syndication"))] pub fn RetrieveMediaResourceAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveMediaResourceAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveMediaResourceAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Web_Syndication")] pub fn RetrieveResourceAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveResourceAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveResourceAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Web_Syndication")] pub fn CreateResourceAsync(&self, uri: P0, description: &windows_core::HSTRING, item: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateResourceAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), core::mem::transmute_copy(description), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateResourceAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), core::mem::transmute_copy(description), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Storage_Streams", feature = "Web_Syndication"))] pub fn CreateMediaResourceAsync(&self, uri: P0, mediatype: &windows_core::HSTRING, description: &windows_core::HSTRING, mediastream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateMediaResourceAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), core::mem::transmute_copy(mediatype), core::mem::transmute_copy(description), mediastream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateMediaResourceAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), core::mem::transmute_copy(mediatype), core::mem::transmute_copy(description), mediastream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(all(feature = "Storage_Streams", feature = "Web_Syndication"))] pub fn UpdateMediaResourceAsync(&self, uri: P0, mediatype: &windows_core::HSTRING, mediastream: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateMediaResourceAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), core::mem::transmute_copy(mediatype), mediastream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateMediaResourceAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), core::mem::transmute_copy(mediatype), mediastream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Web_Syndication")] pub fn UpdateResourceAsync(&self, uri: P0, item: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateResourceAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateResourceAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Web_Syndication")] pub fn UpdateResourceItemAsync(&self, item: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateResourceItemAsync)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UpdateResourceItemAsync)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Web_Syndication")] pub fn DeleteResourceAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteResourceAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteResourceAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Web_Syndication")] pub fn DeleteResourceItemAsync(&self, item: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteResourceItemAsync)(windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteResourceItemAsync)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CancelAsyncOperations(&self) -> windows_core::Result<()> { @@ -243,11 +243,11 @@ impl AtomPubClient { #[cfg(feature = "Security_Credentials")] pub fn CreateAtomPubClientWithCredentials(servercredential: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IAtomPubClientFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateAtomPubClientWithCredentials)(windows_core::Interface::as_raw(this), servercredential.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateAtomPubClientWithCredentials)(windows_core::Interface::as_raw(this), servercredential.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(all(feature = "Security_Credentials", feature = "Web_Syndication"))] @@ -261,10 +261,10 @@ impl AtomPubClient { #[cfg(all(feature = "Security_Credentials", feature = "Web_Syndication"))] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Security_Credentials", feature = "Web_Syndication"))] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -277,10 +277,10 @@ impl AtomPubClient { #[cfg(all(feature = "Security_Credentials", feature = "Web_Syndication"))] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Web_Syndication")] pub fn MaxResponseBufferSize(&self) -> windows_core::Result { @@ -329,12 +329,12 @@ impl AtomPubClient { #[cfg(feature = "Web_Syndication")] pub fn RetrieveFeedAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveFeedAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveFeedAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] @@ -456,10 +456,10 @@ impl ResourceCollection { #[cfg(feature = "Web_Syndication")] pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -576,10 +576,10 @@ impl ServiceDocument { #[cfg(feature = "Web_Syndication")] pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -688,10 +688,10 @@ impl Workspace { #[cfg(feature = "Web_Syndication")] pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn AttributeExtensions(&self) -> windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs index 24b565ea33..d3be646452 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs @@ -116,12 +116,12 @@ impl HttpDiagnosticProvider { } pub fn RequestSent(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestSent)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RequestSent)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRequestSent(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -130,12 +130,12 @@ impl HttpDiagnosticProvider { } pub fn ResponseReceived(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ResponseReceived)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ResponseReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveResponseReceived(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -144,12 +144,12 @@ impl HttpDiagnosticProvider { } pub fn RequestResponseCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestResponseCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).RequestResponseCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveRequestResponseCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -159,11 +159,11 @@ impl HttpDiagnosticProvider { #[cfg(feature = "System_Diagnostics")] pub fn CreateFromProcessDiagnosticInfo(processdiagnosticinfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHttpDiagnosticProviderStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromProcessDiagnosticInfo)(windows_core::Interface::as_raw(this), processdiagnosticinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromProcessDiagnosticInfo)(windows_core::Interface::as_raw(this), processdiagnosticinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs b/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs index eb3e853248..b1c4c0cea8 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs @@ -119,12 +119,12 @@ windows_core::imp::required_hierarchy!(IHttpFilter, super::super::super::Foundat impl IHttpFilter { pub fn SendRequestAsync(&self, request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Close(&self) -> windows_core::Result<()> { @@ -242,10 +242,10 @@ impl HttpBaseProtocolFilter { #[cfg(feature = "Security_Cryptography_Certificates")] pub fn SetClientCertificate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { @@ -277,10 +277,10 @@ impl HttpBaseProtocolFilter { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ServerCredential(&self) -> windows_core::Result { @@ -293,10 +293,10 @@ impl HttpBaseProtocolFilter { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn UseProxy(&self) -> windows_core::Result { let this = self; @@ -333,12 +333,12 @@ impl HttpBaseProtocolFilter { } pub fn ServerCustomValidationRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ServerCustomValidationRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ServerCustomValidationRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveServerCustomValidationRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -360,21 +360,21 @@ impl HttpBaseProtocolFilter { #[cfg(feature = "System")] pub fn CreateForUser(user: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHttpBaseProtocolFilterStatics(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn SendRequestAsync(&self, request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs b/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs index f0524e2552..d1caeb4d5f 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs @@ -794,10 +794,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetMaxAge(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxAge)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxAge)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxStale(&self) -> windows_core::Result> { let this = self; @@ -808,10 +808,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetMaxStale(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxStale)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxStale)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MinFresh(&self) -> windows_core::Result> { let this = self; @@ -822,10 +822,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetMinFresh(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMinFresh)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMinFresh)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn SharedMaxAge(&self) -> windows_core::Result> { let this = self; @@ -836,10 +836,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetSharedMaxAge(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSharedMaxAge)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSharedMaxAge)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -894,29 +894,29 @@ impl HttpCacheDirectiveHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -926,10 +926,10 @@ impl HttpCacheDirectiveHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -1125,29 +1125,29 @@ impl HttpChallengeHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -1157,10 +1157,10 @@ impl HttpChallengeHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -1335,29 +1335,29 @@ impl HttpConnectionOptionHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -1367,10 +1367,10 @@ impl HttpConnectionOptionHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -1545,29 +1545,29 @@ impl HttpContentCodingHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -1577,10 +1577,10 @@ impl HttpContentCodingHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -1768,29 +1768,29 @@ impl HttpContentCodingWithQualityHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -1800,10 +1800,10 @@ impl HttpContentCodingWithQualityHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -1924,10 +1924,10 @@ impl HttpContentDispositionHeaderValue { } pub fn SetSize(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSize)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Create(dispositiontype: &windows_core::HSTRING) -> windows_core::Result { Self::IHttpContentDispositionHeaderValueFactory(|this| unsafe { @@ -2000,10 +2000,10 @@ impl HttpContentHeaderCollection { } pub fn SetContentDisposition(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentDisposition)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentDisposition)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentEncoding(&self) -> windows_core::Result { let this = self; @@ -2028,10 +2028,10 @@ impl HttpContentHeaderCollection { } pub fn SetContentLength(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentLength)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentLength)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentLocation(&self) -> windows_core::Result { let this = self; @@ -2042,10 +2042,10 @@ impl HttpContentHeaderCollection { } pub fn SetContentLocation(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentLocation)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentLocation)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Storage_Streams")] pub fn ContentMD5(&self) -> windows_core::Result { @@ -2058,10 +2058,10 @@ impl HttpContentHeaderCollection { #[cfg(feature = "Storage_Streams")] pub fn SetContentMD5(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentMD5)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentMD5)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentRange(&self) -> windows_core::Result { let this = self; @@ -2072,10 +2072,10 @@ impl HttpContentHeaderCollection { } pub fn SetContentRange(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentRange)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentRange)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ContentType(&self) -> windows_core::Result { let this = self; @@ -2086,10 +2086,10 @@ impl HttpContentHeaderCollection { } pub fn SetContentType(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContentType)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContentType)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Expires(&self) -> windows_core::Result> { let this = self; @@ -2100,10 +2100,10 @@ impl HttpContentHeaderCollection { } pub fn SetExpires(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpires)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpires)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn LastModified(&self) -> windows_core::Result> { let this = self; @@ -2114,10 +2114,10 @@ impl HttpContentHeaderCollection { } pub fn SetLastModified(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLastModified)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLastModified)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Append(&self, name: &windows_core::HSTRING, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -2460,29 +2460,29 @@ impl HttpCookiePairHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -2492,10 +2492,10 @@ impl HttpCookiePairHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -2834,29 +2834,29 @@ impl HttpExpectationHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -2866,10 +2866,10 @@ impl HttpExpectationHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -2983,29 +2983,29 @@ impl HttpLanguageHeaderValueCollection { #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -3015,10 +3015,10 @@ impl HttpLanguageHeaderValueCollection { #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -3206,29 +3206,29 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -3238,10 +3238,10 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -3424,10 +3424,10 @@ impl HttpMediaTypeWithQualityHeaderValue { } pub fn SetQuality(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetQuality)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetQuality)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateFromMediaType(mediatype: &windows_core::HSTRING) -> windows_core::Result { Self::IHttpMediaTypeWithQualityHeaderValueFactory(|this| unsafe { @@ -3543,29 +3543,29 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -3575,10 +3575,10 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -3692,29 +3692,29 @@ impl HttpMethodHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -3724,10 +3724,10 @@ impl HttpMethodHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -4067,29 +4067,29 @@ impl HttpProductInfoHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -4099,10 +4099,10 @@ impl HttpProductInfoHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { @@ -4193,10 +4193,10 @@ impl HttpRequestHeaderCollection { } pub fn SetAuthorization(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAuthorization)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAuthorization)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CacheControl(&self) -> windows_core::Result { let this = self; @@ -4228,10 +4228,10 @@ impl HttpRequestHeaderCollection { } pub fn SetDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Expect(&self) -> windows_core::Result { let this = self; @@ -4262,10 +4262,10 @@ impl HttpRequestHeaderCollection { #[cfg(feature = "Networking")] pub fn SetHost(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetHost)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetHost)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IfModifiedSince(&self) -> windows_core::Result> { let this = self; @@ -4276,10 +4276,10 @@ impl HttpRequestHeaderCollection { } pub fn SetIfModifiedSince(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIfModifiedSince)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIfModifiedSince)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IfUnmodifiedSince(&self) -> windows_core::Result> { let this = self; @@ -4290,10 +4290,10 @@ impl HttpRequestHeaderCollection { } pub fn SetIfUnmodifiedSince(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIfUnmodifiedSince)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIfUnmodifiedSince)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxForwards(&self) -> windows_core::Result> { let this = self; @@ -4304,10 +4304,10 @@ impl HttpRequestHeaderCollection { } pub fn SetMaxForwards(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMaxForwards)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMaxForwards)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProxyAuthorization(&self) -> windows_core::Result { let this = self; @@ -4318,10 +4318,10 @@ impl HttpRequestHeaderCollection { } pub fn SetProxyAuthorization(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyAuthorization)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyAuthorization)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Referer(&self) -> windows_core::Result { let this = self; @@ -4332,10 +4332,10 @@ impl HttpRequestHeaderCollection { } pub fn SetReferer(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetReferer)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetReferer)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TransferEncoding(&self) -> windows_core::Result { let this = self; @@ -4472,10 +4472,10 @@ impl HttpResponseHeaderCollection { } pub fn SetAge(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAge)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAge)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Allow(&self) -> windows_core::Result { let this = self; @@ -4507,10 +4507,10 @@ impl HttpResponseHeaderCollection { } pub fn SetDate(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDate)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Location(&self) -> windows_core::Result { let this = self; @@ -4521,10 +4521,10 @@ impl HttpResponseHeaderCollection { } pub fn SetLocation(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLocation)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetLocation)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ProxyAuthenticate(&self) -> windows_core::Result { let this = self; @@ -4542,10 +4542,10 @@ impl HttpResponseHeaderCollection { } pub fn SetRetryAfter(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRetryAfter)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRetryAfter)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TransferEncoding(&self) -> windows_core::Result { let this = self; @@ -4795,29 +4795,29 @@ impl HttpTransferCodingHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { @@ -4827,10 +4827,10 @@ impl HttpTransferCodingHeaderValueCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Web/Http/mod.rs b/crates/libs/windows/src/Windows/Web/Http/mod.rs index bbe6db47d4..fe0fc21254 100644 --- a/crates/libs/windows/src/Windows/Web/Http/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/mod.rs @@ -140,12 +140,12 @@ impl IHttpContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Close(&self) -> windows_core::Result<()> { @@ -506,21 +506,21 @@ impl HttpBufferContent { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(content: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHttpBufferContentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Storage_Streams")] pub fn CreateFromBufferWithOffset(content: P0, offset: u32, count: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHttpBufferContentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromBufferWithOffset)(windows_core::Interface::as_raw(this), content.into_param().abi(), offset, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromBufferWithOffset)(windows_core::Interface::as_raw(this), content.param().abi(), offset, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[cfg(feature = "Web_Http_Headers")] @@ -571,12 +571,12 @@ impl HttpBufferContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ToString(&self) -> windows_core::Result { @@ -623,106 +623,106 @@ impl HttpClient { } pub fn DeleteAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetWithOptionAsync(&self, uri: P0, completionoption: HttpCompletionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetWithOptionAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetWithOptionAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn GetBufferAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetBufferAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetBufferAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn GetInputStreamAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetInputStreamAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetInputStreamAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetStringAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStringAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetStringAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn PostAsync(&self, uri: P0, content: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PostAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PostAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn PutAsync(&self, uri: P0, content: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PutAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).PutAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SendRequestAsync(&self, request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendRequestAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SendRequestWithOptionAsync(&self, request: P0, completionoption: HttpCompletionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SendRequestWithOptionAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).SendRequestWithOptionAsync)(windows_core::Interface::as_raw(this), request.param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Web_Http_Headers")] @@ -735,104 +735,104 @@ impl HttpClient { } pub fn TryDeleteAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryDeleteAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryDeleteAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryGetAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryGetAsync2(&self, uri: P0, completionoption: HttpCompletionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetAsync2)(windows_core::Interface::as_raw(this), uri.into_param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetAsync2)(windows_core::Interface::as_raw(this), uri.param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryGetBufferAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetBufferAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetBufferAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryGetInputStreamAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetInputStreamAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetInputStreamAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryGetStringAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryGetStringAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryGetStringAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryPostAsync(&self, uri: P0, content: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryPostAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryPostAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TryPutAsync(&self, uri: P0, content: P1) -> windows_core::Result> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TryPutAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TryPutAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TrySendRequestAsync(&self, request: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySendRequestAsync)(windows_core::Interface::as_raw(this), request.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySendRequestAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TrySendRequestAsync2(&self, request: P0, completionoption: HttpCompletionOption) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TrySendRequestAsync2)(windows_core::Interface::as_raw(this), request.into_param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).TrySendRequestAsync2)(windows_core::Interface::as_raw(this), request.param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DefaultPrivacyAnnotation(&self) -> windows_core::Result { @@ -849,11 +849,11 @@ impl HttpClient { #[cfg(feature = "Web_Http_Filters")] pub fn Create(filter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHttpClientFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), filter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), filter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ToString(&self) -> windows_core::Result { @@ -917,10 +917,10 @@ impl HttpCookie { } pub fn SetExpires(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetExpires)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetExpires)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn HttpOnly(&self) -> windows_core::Result { let this = self; @@ -1023,12 +1023,12 @@ impl HttpCookieCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } #[cfg(feature = "Foundation_Collections")] @@ -1080,40 +1080,40 @@ windows_core::imp::interface_hierarchy!(HttpCookieManager, windows_core::IUnknow impl HttpCookieManager { pub fn SetCookie(&self, cookie: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetCookie)(windows_core::Interface::as_raw(this), cookie.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetCookie)(windows_core::Interface::as_raw(this), cookie.param().abi(), &mut result__).map(|| result__) } } pub fn SetCookieWithThirdParty(&self, cookie: P0, thirdparty: bool) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SetCookieWithThirdParty)(windows_core::Interface::as_raw(this), cookie.into_param().abi(), thirdparty, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).SetCookieWithThirdParty)(windows_core::Interface::as_raw(this), cookie.param().abi(), thirdparty, &mut result__).map(|| result__) } } pub fn DeleteCookie(&self, cookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).DeleteCookie)(windows_core::Interface::as_raw(this), cookie.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).DeleteCookie)(windows_core::Interface::as_raw(this), cookie.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn GetCookies(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCookies)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).GetCookies)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -1187,22 +1187,22 @@ impl HttpFormUrlEncodedContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Foundation_Collections")] pub fn Create(content: P0) -> windows_core::Result where - P0: windows_core::IntoParam>>, + P0: windows_core::Param>>, { Self::IHttpFormUrlEncodedContentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ToString(&self) -> windows_core::Result { @@ -1584,20 +1584,20 @@ impl HttpMultipartContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Add(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), content.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), content.param().abi()).ok() } } pub fn CreateWithSubtype(subtype: &windows_core::HSTRING) -> windows_core::Result { Self::IHttpMultipartContentFactory(|this| unsafe { @@ -1726,34 +1726,34 @@ impl HttpMultipartFormDataContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Add(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), content.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Add)(windows_core::Interface::as_raw(this), content.param().abi()).ok() } } pub fn AddWithName(&self, content: P0, name: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddWithName)(windows_core::Interface::as_raw(this), content.into_param().abi(), core::mem::transmute_copy(name)).ok() } + unsafe { (windows_core::Interface::vtable(this).AddWithName)(windows_core::Interface::as_raw(this), content.param().abi(), core::mem::transmute_copy(name)).ok() } } pub fn AddWithNameAndFileName(&self, content: P0, name: &windows_core::HSTRING, filename: &windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).AddWithNameAndFileName)(windows_core::Interface::as_raw(this), content.into_param().abi(), core::mem::transmute_copy(name), core::mem::transmute_copy(filename)).ok() } + unsafe { (windows_core::Interface::vtable(this).AddWithNameAndFileName)(windows_core::Interface::as_raw(this), content.param().abi(), core::mem::transmute_copy(name), core::mem::transmute_copy(filename)).ok() } } pub fn CreateWithBoundary(boundary: &windows_core::HSTRING) -> windows_core::Result { Self::IHttpMultipartFormDataContentFactory(|this| unsafe { @@ -1836,10 +1836,10 @@ impl HttpRequestMessage { } pub fn SetContent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { @@ -1858,10 +1858,10 @@ impl HttpRequestMessage { } pub fn SetMethod(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetMethod)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetMethod)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result> { @@ -1880,10 +1880,10 @@ impl HttpRequestMessage { } pub fn SetRequestUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRequestUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRequestUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn TransportInformation(&self) -> windows_core::Result { let this = self; @@ -1905,12 +1905,12 @@ impl HttpRequestMessage { } pub fn Create(method: P0, uri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::IHttpRequestMessageFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), method.into_param().abi(), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), method.param().abi(), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ToString(&self) -> windows_core::Result { @@ -2022,10 +2022,10 @@ impl HttpResponseMessage { } pub fn SetContent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { @@ -2062,10 +2062,10 @@ impl HttpResponseMessage { } pub fn SetRequestMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRequestMessage)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRequestMessage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Source(&self) -> windows_core::Result { let this = self; @@ -2196,22 +2196,22 @@ impl HttpStreamContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CreateFromInputStream(content: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IHttpStreamContentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateFromInputStream)(windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateFromInputStream)(windows_core::Interface::as_raw(this), content.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn ToString(&self) -> windows_core::Result { @@ -2297,12 +2297,12 @@ impl HttpStringContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn CreateFromString(content: &windows_core::HSTRING) -> windows_core::Result { @@ -2592,7 +2592,7 @@ impl core::fmt::Debug for HttpProgress { } } impl windows_core::TypeKind for HttpProgress { - type TypeKind = windows_core::ValueType; + type TypeKind = windows_core::CloneType; } impl windows_core::RuntimeType for HttpProgress { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Web.Http.HttpProgress;enum(Windows.Web.Http.HttpProgressStage;i4);u8;pinterface({61c17706-2d65-11e0-9ae8-d48564015472};u8);u8;pinterface({61c17706-2d65-11e0-9ae8-d48564015472};u8);u4)"); diff --git a/crates/libs/windows/src/Windows/Web/Syndication/mod.rs b/crates/libs/windows/src/Windows/Web/Syndication/mod.rs index 611278d435..4ccc0143cf 100644 --- a/crates/libs/windows/src/Windows/Web/Syndication/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Syndication/mod.rs @@ -59,10 +59,10 @@ impl ISyndicationClient { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -75,10 +75,10 @@ impl ISyndicationClient { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxResponseBufferSize(&self) -> windows_core::Result { let this = self; @@ -119,12 +119,12 @@ impl ISyndicationClient { } pub fn RetrieveFeedAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveFeedAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveFeedAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } @@ -432,10 +432,10 @@ impl ISyndicationNode { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -561,10 +561,10 @@ impl ISyndicationText { #[cfg(feature = "Data_Xml_Dom")] pub fn SetXml(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetXml)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetXml)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn NodeName(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -619,10 +619,10 @@ impl ISyndicationText { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -858,10 +858,10 @@ impl SyndicationCategory { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -929,10 +929,10 @@ impl SyndicationClient { #[cfg(feature = "Security_Credentials")] pub fn SetServerCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetServerCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> windows_core::Result { @@ -945,10 +945,10 @@ impl SyndicationClient { #[cfg(feature = "Security_Credentials")] pub fn SetProxyCredential(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn MaxResponseBufferSize(&self) -> windows_core::Result { let this = self; @@ -989,22 +989,22 @@ impl SyndicationClient { } pub fn RetrieveFeedAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RetrieveFeedAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).RetrieveFeedAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Security_Credentials")] pub fn CreateSyndicationClient(servercredential: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISyndicationClientFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSyndicationClient)(windows_core::Interface::as_raw(this), servercredential.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSyndicationClient)(windows_core::Interface::as_raw(this), servercredential.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -1047,10 +1047,10 @@ impl SyndicationContent { } pub fn SetSourceUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSourceUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSourceUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateSyndicationContent(text: &windows_core::HSTRING, r#type: SyndicationTextType) -> windows_core::Result { Self::ISyndicationContentFactory(|this| unsafe { @@ -1060,11 +1060,11 @@ impl SyndicationContent { } pub fn CreateSyndicationContentWithSourceUri(sourceuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISyndicationContentFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSyndicationContentWithSourceUri)(windows_core::Interface::as_raw(this), sourceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSyndicationContentWithSourceUri)(windows_core::Interface::as_raw(this), sourceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn NodeName(&self) -> windows_core::Result { @@ -1120,10 +1120,10 @@ impl SyndicationContent { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -1182,10 +1182,10 @@ impl SyndicationContent { #[cfg(feature = "Data_Xml_Dom")] pub fn SetXml(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetXml)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetXml)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[doc(hidden)] pub fn ISyndicationContentFactory windows_core::Result>(callback: F) -> windows_core::Result { @@ -1268,10 +1268,10 @@ impl SyndicationFeed { } pub fn SetGenerator(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetGenerator)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetGenerator)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn IconUri(&self) -> windows_core::Result { let this = self; @@ -1282,10 +1282,10 @@ impl SyndicationFeed { } pub fn SetIconUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetIconUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetIconUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = self; @@ -1334,10 +1334,10 @@ impl SyndicationFeed { } pub fn SetImageUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetImageUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetImageUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Rights(&self) -> windows_core::Result { let this = self; @@ -1348,10 +1348,10 @@ impl SyndicationFeed { } pub fn SetRights(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRights)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRights)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Subtitle(&self) -> windows_core::Result { let this = self; @@ -1362,10 +1362,10 @@ impl SyndicationFeed { } pub fn SetSubtitle(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSubtitle)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSubtitle)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Title(&self) -> windows_core::Result { let this = self; @@ -1376,10 +1376,10 @@ impl SyndicationFeed { } pub fn SetTitle(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn FirstUri(&self) -> windows_core::Result { let this = self; @@ -1423,18 +1423,18 @@ impl SyndicationFeed { #[cfg(feature = "Data_Xml_Dom")] pub fn LoadFromXml(&self, feeddocument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LoadFromXml)(windows_core::Interface::as_raw(this), feeddocument.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadFromXml)(windows_core::Interface::as_raw(this), feeddocument.param().abi()).ok() } } pub fn CreateSyndicationFeed(title: &windows_core::HSTRING, subtitle: &windows_core::HSTRING, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISyndicationFeedFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSyndicationFeed)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), core::mem::transmute_copy(subtitle), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSyndicationFeed)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), core::mem::transmute_copy(subtitle), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn NodeName(&self) -> windows_core::Result { @@ -1490,10 +1490,10 @@ impl SyndicationFeed { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -1570,10 +1570,10 @@ impl SyndicationGenerator { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Version(&self) -> windows_core::Result { let this = self; @@ -1645,10 +1645,10 @@ impl SyndicationGenerator { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -1738,10 +1738,10 @@ impl SyndicationItem { } pub fn SetContent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Id(&self) -> windows_core::Result { let this = self; @@ -1793,10 +1793,10 @@ impl SyndicationItem { } pub fn SetRights(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRights)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetRights)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Source(&self) -> windows_core::Result { let this = self; @@ -1807,10 +1807,10 @@ impl SyndicationItem { } pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Summary(&self) -> windows_core::Result { let this = self; @@ -1821,10 +1821,10 @@ impl SyndicationItem { } pub fn SetSummary(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSummary)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSummary)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn Title(&self) -> windows_core::Result { let this = self; @@ -1835,10 +1835,10 @@ impl SyndicationItem { } pub fn SetTitle(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CommentsUri(&self) -> windows_core::Result { let this = self; @@ -1849,10 +1849,10 @@ impl SyndicationItem { } pub fn SetCommentsUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCommentsUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetCommentsUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn EditUri(&self) -> windows_core::Result { let this = self; @@ -1889,19 +1889,19 @@ impl SyndicationItem { #[cfg(feature = "Data_Xml_Dom")] pub fn LoadFromXml(&self, itemdocument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).LoadFromXml)(windows_core::Interface::as_raw(this), itemdocument.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).LoadFromXml)(windows_core::Interface::as_raw(this), itemdocument.param().abi()).ok() } } pub fn CreateSyndicationItem(title: &windows_core::HSTRING, content: P0, uri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { Self::ISyndicationItemFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSyndicationItem)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), content.into_param().abi(), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSyndicationItem)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), content.param().abi(), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn NodeName(&self) -> windows_core::Result { @@ -1957,10 +1957,10 @@ impl SyndicationItem { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -2070,10 +2070,10 @@ impl SyndicationLink { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn ResourceLanguage(&self) -> windows_core::Result { let this = self; @@ -2088,20 +2088,20 @@ impl SyndicationLink { } pub fn CreateSyndicationLink(uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISyndicationLinkFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSyndicationLink)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSyndicationLink)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateSyndicationLinkEx(uri: P0, relationship: &windows_core::HSTRING, title: &windows_core::HSTRING, mediatype: &windows_core::HSTRING, length: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISyndicationLinkFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSyndicationLinkEx)(windows_core::Interface::as_raw(this), uri.into_param().abi(), core::mem::transmute_copy(relationship), core::mem::transmute_copy(title), core::mem::transmute_copy(mediatype), length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSyndicationLinkEx)(windows_core::Interface::as_raw(this), uri.param().abi(), core::mem::transmute_copy(relationship), core::mem::transmute_copy(title), core::mem::transmute_copy(mediatype), length, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn NodeName(&self) -> windows_core::Result { @@ -2157,10 +2157,10 @@ impl SyndicationLink { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -2270,10 +2270,10 @@ impl SyndicationNode { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -2389,10 +2389,10 @@ impl SyndicationPerson { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -2449,10 +2449,10 @@ impl SyndicationPerson { } pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateSyndicationPerson(name: &windows_core::HSTRING) -> windows_core::Result { Self::ISyndicationPersonFactory(|this| unsafe { @@ -2462,11 +2462,11 @@ impl SyndicationPerson { } pub fn CreateSyndicationPersonEx(name: &windows_core::HSTRING, email: &windows_core::HSTRING, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::ISyndicationPersonFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateSyndicationPersonEx)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), core::mem::transmute_copy(email), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateSyndicationPersonEx)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), core::mem::transmute_copy(email), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] @@ -2553,10 +2553,10 @@ impl SyndicationText { } pub fn SetBaseUri(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> windows_core::Result> { @@ -2615,10 +2615,10 @@ impl SyndicationText { #[cfg(feature = "Data_Xml_Dom")] pub fn SetXml(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetXml)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetXml)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn CreateSyndicationText(text: &windows_core::HSTRING) -> windows_core::Result { Self::ISyndicationTextFactory(|this| unsafe { diff --git a/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs b/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs index 2e856d9137..ae705e1490 100644 --- a/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs +++ b/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs @@ -118,10 +118,10 @@ impl WebViewControl { } pub fn SetSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn DocumentTitle(&self) -> windows_core::Result { let this = self; @@ -197,10 +197,10 @@ impl WebViewControl { } pub fn Navigate(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Navigate)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Navigate)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn NavigateToString(&self, text: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -208,40 +208,40 @@ impl WebViewControl { } pub fn NavigateToLocalStreamUri(&self, source: P0, streamresolver: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(windows_core::Interface::as_raw(this), source.param().abi(), streamresolver.param().abi()).ok() } } #[cfg(feature = "Web_Http")] pub fn NavigateWithHttpRequestMessage(&self, requestmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InvokeScriptAsync(&self, scriptname: &windows_core::HSTRING, arguments: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InvokeScriptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scriptname), arguments.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InvokeScriptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scriptname), arguments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CapturePreviewToStreamAsync(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "ApplicationModel_DataTransfer")] @@ -265,12 +265,12 @@ impl WebViewControl { } pub fn NavigationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationStarting(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -279,12 +279,12 @@ impl WebViewControl { } pub fn ContentLoading(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentLoading)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentLoading)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContentLoading(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -293,12 +293,12 @@ impl WebViewControl { } pub fn DOMContentLoaded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DOMContentLoaded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DOMContentLoaded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDOMContentLoaded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -307,12 +307,12 @@ impl WebViewControl { } pub fn NavigationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -321,12 +321,12 @@ impl WebViewControl { } pub fn FrameNavigationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameNavigationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameNavigationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameNavigationStarting(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -335,12 +335,12 @@ impl WebViewControl { } pub fn FrameContentLoading(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameContentLoading)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameContentLoading)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameContentLoading(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -349,12 +349,12 @@ impl WebViewControl { } pub fn FrameDOMContentLoaded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameDOMContentLoaded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameDOMContentLoaded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameDOMContentLoaded(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -363,12 +363,12 @@ impl WebViewControl { } pub fn FrameNavigationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameNavigationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameNavigationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameNavigationCompleted(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -377,12 +377,12 @@ impl WebViewControl { } pub fn ScriptNotify(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScriptNotify)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScriptNotify)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScriptNotify(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -391,12 +391,12 @@ impl WebViewControl { } pub fn LongRunningScriptDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LongRunningScriptDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LongRunningScriptDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLongRunningScriptDetected(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -405,12 +405,12 @@ impl WebViewControl { } pub fn UnsafeContentWarningDisplaying(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnsafeContentWarningDisplaying)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnsafeContentWarningDisplaying)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnsafeContentWarningDisplaying(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -419,12 +419,12 @@ impl WebViewControl { } pub fn UnviewableContentIdentified(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnviewableContentIdentified)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnviewableContentIdentified)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnviewableContentIdentified(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -433,12 +433,12 @@ impl WebViewControl { } pub fn PermissionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PermissionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PermissionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePermissionRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -447,12 +447,12 @@ impl WebViewControl { } pub fn UnsupportedUriSchemeIdentified(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnsupportedUriSchemeIdentified)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnsupportedUriSchemeIdentified)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnsupportedUriSchemeIdentified(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -461,12 +461,12 @@ impl WebViewControl { } pub fn NewWindowRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NewWindowRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NewWindowRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNewWindowRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -475,12 +475,12 @@ impl WebViewControl { } pub fn ContainsFullScreenElementChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContainsFullScreenElementChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContainsFullScreenElementChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContainsFullScreenElementChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -489,12 +489,12 @@ impl WebViewControl { } pub fn WebResourceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WebResourceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WebResourceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWebResourceRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -555,12 +555,12 @@ impl WebViewControl { } pub fn MoveFocusRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveFocusRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).MoveFocusRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveMoveFocusRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -569,12 +569,12 @@ impl WebViewControl { } pub fn AcceleratorKeyPressed(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcceleratorKeyPressed)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).AcceleratorKeyPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveAcceleratorKeyPressed(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -583,12 +583,12 @@ impl WebViewControl { } pub fn GotFocus(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GotFocus)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GotFocus)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveGotFocus(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -597,12 +597,12 @@ impl WebViewControl { } pub fn LostFocus(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LostFocus)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LostFocus)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLostFocus(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -755,12 +755,12 @@ impl WebViewControlProcess { } pub fn ProcessExited(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProcessExited)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ProcessExited)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveProcessExited(&self, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -769,11 +769,11 @@ impl WebViewControlProcess { } pub fn CreateWithOptions(processoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { Self::IWebViewControlProcessFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateWithOptions)(windows_core::Interface::as_raw(this), processoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CreateWithOptions)(windows_core::Interface::as_raw(this), processoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Web/UI/mod.rs b/crates/libs/windows/src/Windows/Web/UI/mod.rs index 26a226df8f..7cbcf5cf96 100644 --- a/crates/libs/windows/src/Windows/Web/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Web/UI/mod.rs @@ -12,10 +12,10 @@ impl IWebViewControl { } pub fn SetSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetSource)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn DocumentTitle(&self) -> windows_core::Result { let this = self; @@ -91,10 +91,10 @@ impl IWebViewControl { } pub fn Navigate(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).Navigate)(windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).Navigate)(windows_core::Interface::as_raw(this), source.param().abi()).ok() } } pub fn NavigateToString(&self, text: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -102,40 +102,40 @@ impl IWebViewControl { } pub fn NavigateToLocalStreamUri(&self, source: P0, streamresolver: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(windows_core::Interface::as_raw(this), source.param().abi(), streamresolver.param().abi()).ok() } } #[cfg(feature = "Web_Http")] pub fn NavigateWithHttpRequestMessage(&self, requestmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.param().abi()).ok() } } #[cfg(feature = "Foundation_Collections")] pub fn InvokeScriptAsync(&self, scriptname: &windows_core::HSTRING, arguments: P0) -> windows_core::Result> where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InvokeScriptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scriptname), arguments.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).InvokeScriptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scriptname), arguments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Storage_Streams")] pub fn CapturePreviewToStreamAsync(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "ApplicationModel_DataTransfer")] @@ -159,12 +159,12 @@ impl IWebViewControl { } pub fn NavigationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -173,12 +173,12 @@ impl IWebViewControl { } pub fn ContentLoading(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContentLoading)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContentLoading)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContentLoading(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -187,12 +187,12 @@ impl IWebViewControl { } pub fn DOMContentLoaded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DOMContentLoaded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).DOMContentLoaded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveDOMContentLoaded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -201,12 +201,12 @@ impl IWebViewControl { } pub fn NavigationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NavigationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNavigationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -215,12 +215,12 @@ impl IWebViewControl { } pub fn FrameNavigationStarting(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameNavigationStarting)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameNavigationStarting)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameNavigationStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -229,12 +229,12 @@ impl IWebViewControl { } pub fn FrameContentLoading(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameContentLoading)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameContentLoading)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameContentLoading(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -243,12 +243,12 @@ impl IWebViewControl { } pub fn FrameDOMContentLoaded(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameDOMContentLoaded)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameDOMContentLoaded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameDOMContentLoaded(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -257,12 +257,12 @@ impl IWebViewControl { } pub fn FrameNavigationCompleted(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FrameNavigationCompleted)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).FrameNavigationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveFrameNavigationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -271,12 +271,12 @@ impl IWebViewControl { } pub fn ScriptNotify(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ScriptNotify)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ScriptNotify)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveScriptNotify(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -285,12 +285,12 @@ impl IWebViewControl { } pub fn LongRunningScriptDetected(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LongRunningScriptDetected)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).LongRunningScriptDetected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveLongRunningScriptDetected(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -299,12 +299,12 @@ impl IWebViewControl { } pub fn UnsafeContentWarningDisplaying(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnsafeContentWarningDisplaying)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnsafeContentWarningDisplaying)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnsafeContentWarningDisplaying(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -313,12 +313,12 @@ impl IWebViewControl { } pub fn UnviewableContentIdentified(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnviewableContentIdentified)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnviewableContentIdentified)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnviewableContentIdentified(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -327,12 +327,12 @@ impl IWebViewControl { } pub fn PermissionRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PermissionRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).PermissionRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemovePermissionRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -341,12 +341,12 @@ impl IWebViewControl { } pub fn UnsupportedUriSchemeIdentified(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UnsupportedUriSchemeIdentified)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).UnsupportedUriSchemeIdentified)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveUnsupportedUriSchemeIdentified(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -355,12 +355,12 @@ impl IWebViewControl { } pub fn NewWindowRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).NewWindowRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).NewWindowRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveNewWindowRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -369,12 +369,12 @@ impl IWebViewControl { } pub fn ContainsFullScreenElementChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ContainsFullScreenElementChanged)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).ContainsFullScreenElementChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveContainsFullScreenElementChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -383,12 +383,12 @@ impl IWebViewControl { } pub fn WebResourceRequested(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).WebResourceRequested)(windows_core::Interface::as_raw(this), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).WebResourceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } pub fn RemoveWebResourceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { @@ -910,10 +910,10 @@ impl WebViewControlNewWindowRequestedEventArgs { } pub fn SetNewWindow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetNewWindow)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetNewWindow)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn GetDeferral(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; @@ -1185,10 +1185,10 @@ impl WebViewControlWebResourceRequestedEventArgs { #[cfg(feature = "Web_Http")] pub fn SetResponse(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; - unsafe { (windows_core::Interface::vtable(this).SetResponse)(windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } + unsafe { (windows_core::Interface::vtable(this).SetResponse)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } #[cfg(feature = "Web_Http")] pub fn Response(&self) -> windows_core::Result { diff --git a/crates/libs/windows/src/Windows/Web/mod.rs b/crates/libs/windows/src/Windows/Web/mod.rs index beddb3178f..21cb2d83e1 100644 --- a/crates/libs/windows/src/Windows/Web/mod.rs +++ b/crates/libs/windows/src/Windows/Web/mod.rs @@ -12,12 +12,12 @@ impl IUriToStreamResolver { #[cfg(feature = "Storage_Streams")] pub fn UriToStreamAsync(&self, uri: P0) -> windows_core::Result> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UriToStreamAsync)(windows_core::Interface::as_raw(this), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).UriToStreamAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } 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 12708bbd02..9ff0a795e1 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 @@ -2,21 +2,21 @@ #[inline] pub unsafe fn DMLCreateDevice(d3d12device: P0, flags: DML_CREATE_DEVICE_FLAGS, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, 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.into_param().abi(), 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] pub unsafe fn DMLCreateDevice1(d3d12device: P0, flags: DML_CREATE_DEVICE_FLAGS, minimumfeaturelevel: DML_FEATURE_LEVEL, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, 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.into_param().abi(), flags, minimumfeaturelevel, &T::IID, result__ as *mut _ as *mut _).ok() + DMLCreateDevice1(d3d12device.param().abi(), flags, minimumfeaturelevel, &T::IID, result__ as *mut _ as *mut _).ok() } windows_core::imp::define_interface!(IDMLBindingTable, IDMLBindingTable_Vtbl, 0x29c687dc_de74_4e3b_ab00_1168f2fc3cfc); windows_core::imp::interface_hierarchy!(IDMLBindingTable, windows_core::IUnknown, IDMLObject, IDMLDeviceChild); @@ -29,15 +29,15 @@ impl IDMLBindingTable { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result where @@ -86,15 +86,15 @@ impl IDMLCommandRecorder { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result where @@ -106,11 +106,11 @@ impl IDMLCommandRecorder { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn RecordDispatch(&self, commandlist: P0, dispatchable: P1, bindings: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RecordDispatch)(windows_core::Interface::as_raw(self), commandlist.into_param().abi(), dispatchable.into_param().abi(), bindings.into_param().abi()) + (windows_core::Interface::vtable(self).RecordDispatch)(windows_core::Interface::as_raw(self), commandlist.param().abi(), dispatchable.param().abi(), bindings.param().abi()) } } #[repr(C)] @@ -132,15 +132,15 @@ impl IDMLCompiledOperator { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result where @@ -164,9 +164,9 @@ windows_core::imp::interface_hierarchy!(IDMLDebugDevice, windows_core::IUnknown) impl IDMLDebugDevice { pub unsafe fn SetMuteDebugOutput(&self, mute: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), mute.into_param().abi()) + (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), mute.param().abi()) } } #[repr(C)] @@ -185,15 +185,15 @@ impl IDMLDevice { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } 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), feature, featurequerydatasize, core::mem::transmute(featurequerydata.unwrap_or(std::ptr::null())), featuresupportdatasize, featuresupportdata).ok() @@ -206,10 +206,10 @@ impl IDMLDevice { } pub unsafe fn CompileOperator(&self, op: P0, flags: DML_EXECUTION_FLAGS, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CompileOperator)(windows_core::Interface::as_raw(self), op.into_param().abi(), 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 @@ -278,15 +278,15 @@ impl IDMLDevice1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } 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).base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, featurequerydatasize, core::mem::transmute(featurequerydata.unwrap_or(std::ptr::null())), featuresupportdatasize, featuresupportdata).ok() @@ -299,10 +299,10 @@ impl IDMLDevice1 { } pub unsafe fn CompileOperator(&self, op: P0, flags: DML_EXECUTION_FLAGS, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CompileOperator)(windows_core::Interface::as_raw(self), op.into_param().abi(), flags, &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.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 @@ -365,15 +365,15 @@ impl IDMLDeviceChild { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result where @@ -399,15 +399,15 @@ impl IDMLDispatchable { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result where @@ -438,15 +438,15 @@ impl IDMLObject { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } #[repr(C)] @@ -468,15 +468,15 @@ impl IDMLOperator { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result where @@ -501,15 +501,15 @@ impl IDMLOperatorInitializer { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> windows_core::Result where @@ -543,15 +543,15 @@ impl IDMLPageable { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, data.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self) -> 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 e341135734..edd1caafa7 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 @@ -15,29 +15,29 @@ windows_core::imp::interface_hierarchy!(IMLOperatorAttributes, windows_core::IUn impl IMLOperatorAttributes { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeElementCount)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, elementcount, elementbytesize, value).ok() + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, elementcount, elementbytesize, value).ok() } pub unsafe fn GetStringAttributeElementLength(&self, name: P0, elementindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringAttributeElementLength)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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)] @@ -53,9 +53,9 @@ windows_core::imp::interface_hierarchy!(IMLOperatorKernel, windows_core::IUnknow impl IMLOperatorKernel { pub unsafe fn Compute(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Compute)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Compute)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } } #[repr(C)] @@ -102,29 +102,29 @@ windows_core::imp::interface_hierarchy!(IMLOperatorKernelCreationContext, window impl IMLOperatorKernelCreationContext { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetAttributeElementCount)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, elementcount, elementbytesize, value).ok() + (windows_core::Interface::vtable(self).base__.GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, elementcount, elementbytesize, value).ok() } pub unsafe fn GetStringAttributeElementLength(&self, name: P0, elementindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStringAttributeElementLength)(windows_core::Interface::as_raw(self), name.into_param().abi(), elementindex, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.into_param().abi(), elementindex, attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.param().abi(), elementindex, attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() } pub unsafe fn GetInputCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetInputCount)(windows_core::Interface::as_raw(self)) @@ -177,10 +177,10 @@ windows_core::imp::interface_hierarchy!(IMLOperatorKernelFactory, windows_core:: impl IMLOperatorKernelFactory { pub unsafe fn CreateKernel(&self, context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateKernel)(windows_core::Interface::as_raw(self), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateKernel)(windows_core::Interface::as_raw(self), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -193,17 +193,17 @@ windows_core::imp::interface_hierarchy!(IMLOperatorRegistry, windows_core::IUnkn impl IMLOperatorRegistry { pub unsafe fn RegisterOperatorSetSchema(&self, operatorsetid: *const MLOperatorSetId, baselineversion: i32, schema: Option<&[*const MLOperatorSchemaDescription]>, typeinferrer: P0, shapeinferrer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (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.into_param().abi(), shapeinferrer.into_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: P0, shapeinferrer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterOperatorKernel)(windows_core::Interface::as_raw(self), operatorkernel, operatorkernelfactory.into_param().abi(), shapeinferrer.into_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)] @@ -217,29 +217,29 @@ windows_core::imp::interface_hierarchy!(IMLOperatorShapeInferenceContext, window impl IMLOperatorShapeInferenceContext { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetAttributeElementCount)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, elementcount, elementbytesize, value).ok() + (windows_core::Interface::vtable(self).base__.GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, elementcount, elementbytesize, value).ok() } pub unsafe fn GetStringAttributeElementLength(&self, name: P0, elementindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStringAttributeElementLength)(windows_core::Interface::as_raw(self), name.into_param().abi(), elementindex, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.into_param().abi(), elementindex, attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.param().abi(), elementindex, attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() } pub unsafe fn GetInputCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetInputCount)(windows_core::Interface::as_raw(self)) @@ -285,9 +285,9 @@ windows_core::imp::interface_hierarchy!(IMLOperatorShapeInferrer, windows_core:: impl IMLOperatorShapeInferrer { pub unsafe fn InferOutputShapes(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InferOutputShapes)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InferOutputShapes)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } } #[repr(C)] @@ -368,29 +368,29 @@ windows_core::imp::interface_hierarchy!(IMLOperatorTypeInferenceContext, windows impl IMLOperatorTypeInferenceContext { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetAttributeElementCount)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, elementcount, elementbytesize, value).ok() + (windows_core::Interface::vtable(self).base__.GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, elementcount, elementbytesize, value).ok() } pub unsafe fn GetStringAttributeElementLength(&self, name: P0, elementindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStringAttributeElementLength)(windows_core::Interface::as_raw(self), name.into_param().abi(), elementindex, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.into_param().abi(), elementindex, attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.GetStringAttributeElement)(windows_core::Interface::as_raw(self), name.param().abi(), elementindex, attributeelement.len().try_into().unwrap(), core::mem::transmute(attributeelement.as_ptr())).ok() } pub unsafe fn GetInputCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetInputCount)(windows_core::Interface::as_raw(self)) @@ -427,9 +427,9 @@ windows_core::imp::interface_hierarchy!(IMLOperatorTypeInferrer, windows_core::I impl IMLOperatorTypeInferrer { pub unsafe fn InferOutputTypes(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InferOutputTypes)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InferOutputTypes)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } } #[repr(C)] @@ -447,10 +447,10 @@ impl IWinMLEvaluationContext { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetValueByName(&self, name: P0) -> windows_core::Result<*mut WINML_BINDING_DESC> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -501,24 +501,24 @@ windows_core::imp::interface_hierarchy!(IWinMLRuntime, windows_core::IUnknown); impl IWinMLRuntime { pub unsafe fn LoadModel(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadModel)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadModel)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateEvaluationContext(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEvaluationContext)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEvaluationContext)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EvaluateModel(&self, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateModel)(windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EvaluateModel)(windows_core::Interface::as_raw(self), pcontext.param().abi()).ok() } } #[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 80415ae518..7dfad95fa2 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs @@ -1,30 +1,30 @@ #[inline] pub unsafe fn HtmlHelpA(hwndcaller: P0, pszfile: P1, ucommand: HTML_HELP_COMMAND, dwdata: usize) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndcaller.into_param().abi(), pszfile.into_param().abi(), ucommand.0 as _, dwdata) + HtmlHelpA(hwndcaller.param().abi(), pszfile.param().abi(), ucommand.0 as _, dwdata) } #[inline] pub unsafe fn HtmlHelpW(hwndcaller: P0, pszfile: P1, ucommand: HTML_HELP_COMMAND, dwdata: usize) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndcaller.into_param().abi(), pszfile.into_param().abi(), ucommand.0 as _, dwdata) + HtmlHelpW(hwndcaller.param().abi(), pszfile.param().abi(), ucommand.0 as _, dwdata) } windows_core::imp::define_interface!(IITDatabase, IITDatabase_Vtbl, 0x8fa0d5a2_dedf_11d0_9a61_00c04fb68bf7); windows_core::imp::interface_hierarchy!(IITDatabase, windows_core::IUnknown); impl IITDatabase { pub unsafe fn Open(&self, lpszhost: P0, lpszmoniker: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), lpszhost.into_param().abi(), lpszmoniker.into_param().abi(), 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() @@ -37,10 +37,10 @@ impl IITDatabase { } pub unsafe fn GetObjectPersistence(&self, lpwszobject: P0, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjectPersistence)(windows_core::Interface::as_raw(self), lpwszobject.into_param().abi(), dwobjinstance, ppvpersistence, fstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetObjectPersistence)(windows_core::Interface::as_raw(self), lpwszobject.param().abi(), dwobjinstance, ppvpersistence, fstream.param().abi()).ok() } } #[repr(C)] @@ -70,17 +70,17 @@ impl IITPropList { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Load(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Save(&self, pstm: P0, fcleardirty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.param().abi(), fcleardirty.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSizeMax(&self) -> windows_core::Result { @@ -93,9 +93,9 @@ impl IITPropList { } pub unsafe fn Set(&self, propid: u32, lpszwstring: P0, dwoperation: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), propid, lpszwstring.into_param().abi(), 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), propid, lpvdata, cbdata, dwoperation).ok() @@ -114,15 +114,15 @@ impl IITPropList { } pub unsafe fn SetPersist(&self, fpersist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPersist)(windows_core::Interface::as_raw(self), fpersist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPersist)(windows_core::Interface::as_raw(self), fpersist.param().abi()).ok() } pub unsafe fn SetPersist2(&self, propid: u32, fpersist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPersist2)(windows_core::Interface::as_raw(self), propid, fpersist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPersist2)(windows_core::Interface::as_raw(self), propid, fpersist.param().abi()).ok() } pub unsafe fn GetFirst(&self, property: *mut CProperty) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFirst)(windows_core::Interface::as_raw(self), property).ok() @@ -148,9 +148,9 @@ impl IITPropList { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveDataToStream(&self, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDataToStream)(windows_core::Interface::as_raw(self), lpvheader, dwhdrsize, pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveDataToStream)(windows_core::Interface::as_raw(self), 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), lpvdata, dwbufsize).ok() @@ -202,9 +202,9 @@ impl IITResultSet { } pub unsafe fn Add2(&self, propid: u32, lpszwdefault: P0, priority: PRIORITY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add2)(windows_core::Interface::as_raw(self), propid, lpszwdefault.into_param().abi(), 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), propid, lpvdefaultdata, cbdata, priority).ok() @@ -220,9 +220,9 @@ impl IITResultSet { } pub unsafe fn Set2(&self, lrowindex: i32, lcolumnindex: i32, lpwstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set2)(windows_core::Interface::as_raw(self), lrowindex, lcolumnindex, lpwstr.into_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), lrowindex, lcolumnindex, dwdata).ok() @@ -232,15 +232,15 @@ impl IITResultSet { } pub unsafe fn Copy(&self, prscopy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), prscopy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), prscopy.param().abi()).ok() } pub unsafe fn AppendRows(&self, pressrc: P0, lrowsrcfirst: i32, csrcrows: i32, lrowfirstdest: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendRows)(windows_core::Interface::as_raw(self), pressrc.into_param().abi(), lrowsrcfirst, csrcrows, lrowfirstdest).ok() + (windows_core::Interface::vtable(self).AppendRows)(windows_core::Interface::as_raw(self), pressrc.param().abi(), lrowsrcfirst, csrcrows, 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), lrowindex, lcolumnindex, prop).ok() @@ -283,9 +283,9 @@ impl IITResultSet { } pub unsafe fn Pause(&self, fpause: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), fpause.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), fpause.param().abi()).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), lrowfirst, crows, lprowstatus).ok() @@ -333,15 +333,15 @@ windows_core::imp::interface_hierarchy!(IStemSink, windows_core::IUnknown); impl IStemSink { pub unsafe fn PutAltWord(&self, pwcinbuf: P0, cwc: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), pwcinbuf.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.into_param().abi(), cwc).ok() + (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), cwc).ok() } } #[repr(C)] @@ -368,9 +368,9 @@ impl IStemmerConfig { #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadExternalStemmerData(&self, pstream: P0, dwextdatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadExternalStemmerData)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), dwextdatatype).ok() + (windows_core::Interface::vtable(self).LoadExternalStemmerData)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwextdatatype).ok() } } #[repr(C)] @@ -409,16 +409,16 @@ impl IWordBreakerConfig { #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadExternalBreakerData(&self, pstream: P0, dwextdatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadExternalBreakerData)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWordStemmer)(windows_core::Interface::as_raw(self), rclsid, pstemmer.into_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 f22119b23d..24a90fd378 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs @@ -1,46 +1,46 @@ #[inline] pub unsafe fn DRMAcquireAdvisories(hlicensestorage: u32, wszlicense: P0, wszurl: P1, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hlicensestorage, wszlicense.into_param().abi(), wszurl.into_param().abi(), pvcontext).ok() + DRMAcquireAdvisories(hlicensestorage, wszlicense.param().abi(), wszurl.param().abi(), pvcontext).ok() } #[inline] pub unsafe fn DRMAcquireIssuanceLicenseTemplate(hclient: u32, uflags: u32, pvreserved: *mut core::ffi::c_void, pwsztemplateids: Option<&[windows_core::PCWSTR]>, wszurl: P0, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hclient, uflags, 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.into_param().abi(), pvcontext).ok() + DRMAcquireIssuanceLicenseTemplate(hclient, uflags, 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(), pvcontext).ok() } #[inline] pub unsafe fn DRMAcquireLicense(hsession: u32, uflags: u32, wszgroupidentitycredential: P0, wszrequestedrights: P1, wszcustomdata: P2, wszurl: P3, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hsession, uflags, wszgroupidentitycredential.into_param().abi(), wszrequestedrights.into_param().abi(), wszcustomdata.into_param().abi(), wszurl.into_param().abi(), pvcontext).ok() + DRMAcquireLicense(hsession, uflags, wszgroupidentitycredential.param().abi(), wszrequestedrights.param().abi(), wszcustomdata.param().abi(), wszurl.param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclient, uflags, ulangid, pactservinfo, pvcontext, hparentwnd.into_param().abi()).ok() + DRMActivate(hclient, uflags, ulangid, pactservinfo, pvcontext, hparentwnd.param().abi()).ok() } #[inline] pub unsafe fn DRMAddLicense(hlicensestorage: u32, uflags: u32, wszlicense: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMAddLicense(hlicensestorage : u32, uflags : u32, wszlicense : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMAddLicense(hlicensestorage, uflags, wszlicense.into_param().abi()).ok() + DRMAddLicense(hlicensestorage, uflags, wszlicense.param().abi()).ok() } #[inline] pub unsafe fn DRMAddRightWithUser(hissuancelicense: u32, hright: u32, huser: u32) -> windows_core::Result<()> { @@ -50,10 +50,10 @@ pub unsafe fn DRMAddRightWithUser(hissuancelicense: u32, hright: u32, huser: u32 #[inline] pub unsafe fn DRMAttest(henablingprincipal: u32, wszdata: P0, etype: DRMATTESTTYPE, pcattestedblob: *mut u32, wszattestedblob: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(henablingprincipal, wszdata.into_param().abi(), etype, pcattestedblob, core::mem::transmute(wszattestedblob)).ok() + DRMAttest(henablingprincipal, wszdata.param().abi(), etype, pcattestedblob, core::mem::transmute(wszattestedblob)).ok() } #[inline] pub unsafe fn DRMCheckSecurity(henv: u32, clevel: u32) -> windows_core::Result<()> { @@ -98,99 +98,99 @@ pub unsafe fn DRMConstructCertificateChain(rgwszcertificates: &[windows_core::PC #[inline] pub unsafe fn DRMCreateBoundLicense(henv: u32, pparams: *mut DRMBOUNDLICENSEPARAMS, wszlicensechain: P0, phboundlicense: *mut u32, pherrorlog: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(henv, pparams, wszlicensechain.into_param().abi(), phboundlicense, pherrorlog).ok() + DRMCreateBoundLicense(henv, pparams, wszlicensechain.param().abi(), phboundlicense, pherrorlog).ok() } #[inline] pub unsafe fn DRMCreateClientSession(pfncallback: DRMCALLBACK, ucallbackversion: u32, wszgroupidprovidertype: P0, wszgroupid: P1, phclient: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(pfncallback, ucallbackversion, wszgroupidprovidertype.into_param().abi(), wszgroupid.into_param().abi(), phclient).ok() + DRMCreateClientSession(pfncallback, ucallbackversion, wszgroupidprovidertype.param().abi(), wszgroupid.param().abi(), phclient).ok() } #[inline] pub unsafe fn DRMCreateEnablingBitsDecryptor(hboundlicense: u32, wszright: P0, hauxlib: u32, wszauxplug: P1, phdecryptor: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hboundlicense, wszright.into_param().abi(), hauxlib, wszauxplug.into_param().abi(), phdecryptor).ok() + DRMCreateEnablingBitsDecryptor(hboundlicense, wszright.param().abi(), hauxlib, wszauxplug.param().abi(), phdecryptor).ok() } #[inline] pub unsafe fn DRMCreateEnablingBitsEncryptor(hboundlicense: u32, wszright: P0, hauxlib: u32, wszauxplug: P1, phencryptor: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hboundlicense, wszright.into_param().abi(), hauxlib, wszauxplug.into_param().abi(), phencryptor).ok() + DRMCreateEnablingBitsEncryptor(hboundlicense, wszright.param().abi(), hauxlib, wszauxplug.param().abi(), phencryptor).ok() } #[inline] pub unsafe fn DRMCreateEnablingPrincipal(henv: u32, hlibrary: u32, wszobject: P0, pidprincipal: *mut DRMID, wszcredentials: P1, phenablingprincipal: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(henv, hlibrary, wszobject.into_param().abi(), pidprincipal, wszcredentials.into_param().abi(), phenablingprincipal).ok() + DRMCreateEnablingPrincipal(henv, hlibrary, wszobject.param().abi(), pidprincipal, wszcredentials.param().abi(), phenablingprincipal).ok() } #[inline] pub unsafe fn DRMCreateIssuanceLicense(psttimefrom: *mut super::super::Foundation::SYSTEMTIME, psttimeuntil: *mut super::super::Foundation::SYSTEMTIME, wszreferralinfoname: P0, wszreferralinfourl: P1, howner: u32, wszissuancelicense: P2, hboundlicense: u32, phissuancelicense: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(psttimefrom, psttimeuntil, wszreferralinfoname.into_param().abi(), wszreferralinfourl.into_param().abi(), howner, wszissuancelicense.into_param().abi(), hboundlicense, phissuancelicense).ok() + DRMCreateIssuanceLicense(psttimefrom, psttimeuntil, wszreferralinfoname.param().abi(), wszreferralinfourl.param().abi(), howner, wszissuancelicense.param().abi(), hboundlicense, phissuancelicense).ok() } #[inline] pub unsafe fn DRMCreateLicenseStorageSession(henv: u32, hdefaultlibrary: u32, hclient: u32, uflags: u32, wszissuancelicense: P0, phlicensestorage: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(henv, hdefaultlibrary, hclient, uflags, wszissuancelicense.into_param().abi(), phlicensestorage).ok() + DRMCreateLicenseStorageSession(henv, hdefaultlibrary, hclient, uflags, wszissuancelicense.param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pstfrom, pstuntil, cextendedinfo, core::mem::transmute(pwszextendedinfoname.unwrap_or(std::ptr::null())), core::mem::transmute(pwszextendedinfovalue.unwrap_or(std::ptr::null())), phright).ok() + DRMCreateRight(wszrightname.param().abi(), pstfrom, pstuntil, cextendedinfo, core::mem::transmute(pwszextendedinfoname.unwrap_or(std::ptr::null())), core::mem::transmute(pwszextendedinfovalue.unwrap_or(std::ptr::null())), phright).ok() } #[inline] pub unsafe fn DRMCreateUser(wszusername: P0, wszuserid: P1, wszuseridtype: P2, phuser: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMCreateUser(wszusername : windows_core::PCWSTR, wszuserid : windows_core::PCWSTR, wszuseridtype : windows_core::PCWSTR, phuser : *mut u32) -> windows_core::HRESULT); - DRMCreateUser(wszusername.into_param().abi(), wszuserid.into_param().abi(), wszuseridtype.into_param().abi(), phuser).ok() + DRMCreateUser(wszusername.param().abi(), wszuserid.param().abi(), wszuseridtype.param().abi(), phuser).ok() } #[inline] pub unsafe fn DRMDecode(wszalgid: P0, wszencodedstring: P1, pudecodeddatalen: *mut u32, pbdecodeddata: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMDecode(wszalgid : windows_core::PCWSTR, wszencodedstring : windows_core::PCWSTR, pudecodeddatalen : *mut u32, pbdecodeddata : *mut u8) -> windows_core::HRESULT); - DRMDecode(wszalgid.into_param().abi(), wszencodedstring.into_param().abi(), pudecodeddatalen, pbdecodeddata).ok() + DRMDecode(wszalgid.param().abi(), wszencodedstring.param().abi(), pudecodeddatalen, pbdecodeddata).ok() } #[inline] pub unsafe fn DRMDeconstructCertificateChain(wszchain: P0, iwhich: u32, pccert: *mut u32, wszcert: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), iwhich, pccert, core::mem::transmute(wszcert)).ok() + DRMDeconstructCertificateChain(wszchain.param().abi(), iwhich, pccert, core::mem::transmute(wszcert)).ok() } #[inline] pub unsafe fn DRMDecrypt(hcryptoprovider: u32, iposition: u32, cnuminbytes: u32, pbindata: *mut u8, pcnumoutbytes: *mut u32, pboutdata: *mut u8) -> windows_core::Result<()> { @@ -200,10 +200,10 @@ pub unsafe fn DRMDecrypt(hcryptoprovider: u32, iposition: u32, cnuminbytes: u32, #[inline] pub unsafe fn DRMDeleteLicense(hsession: u32, wszlicenseid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMDeleteLicense(hsession : u32, wszlicenseid : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMDeleteLicense(hsession, wszlicenseid.into_param().abi()).ok() + DRMDeleteLicense(hsession, wszlicenseid.param().abi()).ok() } #[inline] pub unsafe fn DRMDuplicateEnvironmentHandle(htocopy: u32, phcopy: *mut u32) -> windows_core::Result<()> { @@ -228,10 +228,10 @@ pub unsafe fn DRMDuplicateSession(hsessionin: u32, phsessionout: *mut u32) -> wi #[inline] pub unsafe fn DRMEncode(wszalgid: P0, udatalen: u32, pbdecodeddata: *mut u8, puencodedstringlen: *mut u32, wszencodedstring: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), udatalen, pbdecodeddata, puencodedstringlen, core::mem::transmute(wszencodedstring)).ok() + DRMEncode(wszalgid.param().abi(), udatalen, pbdecodeddata, puencodedstringlen, core::mem::transmute(wszencodedstring)).ok() } #[inline] pub unsafe fn DRMEncrypt(hcryptoprovider: u32, iposition: u32, cnuminbytes: u32, pbindata: *mut u8, pcnumoutbytes: *mut u32, pboutdata: *mut u8) -> windows_core::Result<()> { @@ -251,42 +251,42 @@ pub unsafe fn DRMGetApplicationSpecificData(hissuancelicense: u32, uindex: u32, #[inline] pub unsafe fn DRMGetBoundLicenseAttribute(hqueryroot: u32, wszattribute: P0, iwhich: u32, peencoding: *mut DRMENCODINGTYPE, pcbuffer: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hqueryroot, wszattribute.into_param().abi(), iwhich, peencoding, pcbuffer, pbbuffer).ok() + DRMGetBoundLicenseAttribute(hqueryroot, wszattribute.param().abi(), iwhich, peencoding, pcbuffer, pbbuffer).ok() } #[inline] pub unsafe fn DRMGetBoundLicenseAttributeCount(hqueryroot: u32, wszattribute: P0, pcattributes: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetBoundLicenseAttributeCount(hqueryroot : u32, wszattribute : windows_core::PCWSTR, pcattributes : *mut u32) -> windows_core::HRESULT); - DRMGetBoundLicenseAttributeCount(hqueryroot, wszattribute.into_param().abi(), pcattributes).ok() + DRMGetBoundLicenseAttributeCount(hqueryroot, wszattribute.param().abi(), pcattributes).ok() } #[inline] pub unsafe fn DRMGetBoundLicenseObject(hqueryroot: u32, wszsubobjecttype: P0, iwhich: u32, phsubobject: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hqueryroot, wszsubobjecttype.into_param().abi(), iwhich, phsubobject).ok() + DRMGetBoundLicenseObject(hqueryroot, wszsubobjecttype.param().abi(), iwhich, phsubobject).ok() } #[inline] pub unsafe fn DRMGetBoundLicenseObjectCount(hqueryroot: u32, wszsubobjecttype: P0, pcsubobjects: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetBoundLicenseObjectCount(hqueryroot : u32, wszsubobjecttype : windows_core::PCWSTR, pcsubobjects : *mut u32) -> windows_core::HRESULT); - DRMGetBoundLicenseObjectCount(hqueryroot, wszsubobjecttype.into_param().abi(), pcsubobjects).ok() + DRMGetBoundLicenseObjectCount(hqueryroot, wszsubobjecttype.param().abi(), pcsubobjects).ok() } #[inline] pub unsafe fn DRMGetCertificateChainCount(wszchain: P0, pccertcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetCertificateChainCount(wszchain : windows_core::PCWSTR, pccertcount : *mut u32) -> windows_core::HRESULT); - DRMGetCertificateChainCount(wszchain.into_param().abi(), pccertcount).ok() + DRMGetCertificateChainCount(wszchain.param().abi(), pccertcount).ok() } #[inline] pub unsafe fn DRMGetClientVersion(pdrmclientversioninfo: *mut DRM_CLIENT_VERSION_INFO) -> windows_core::Result<()> { @@ -296,18 +296,18 @@ pub unsafe fn DRMGetClientVersion(pdrmclientversioninfo: *mut DRM_CLIENT_VERSION #[inline] pub unsafe fn DRMGetEnvironmentInfo(handle: u32, wszattribute: P0, peencoding: *mut DRMENCODINGTYPE, pcbuffer: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(handle, wszattribute.into_param().abi(), peencoding, pcbuffer, pbbuffer).ok() + DRMGetEnvironmentInfo(handle, wszattribute.param().abi(), peencoding, pcbuffer, pbbuffer).ok() } #[inline] pub unsafe fn DRMGetInfo(handle: u32, wszattribute: P0, peencoding: *const DRMENCODINGTYPE, pcbuffer: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(handle, wszattribute.into_param().abi(), peencoding, pcbuffer, pbbuffer).ok() + DRMGetInfo(handle, wszattribute.param().abi(), peencoding, pcbuffer, pbbuffer).ok() } #[inline] pub unsafe fn DRMGetIntervalTime(hissuancelicense: u32, pcdays: *mut u32) -> windows_core::Result<()> { @@ -342,10 +342,10 @@ pub unsafe fn DRMGetOwnerLicense(hissuancelicense: u32, puownerlicenselength: *m #[inline] pub unsafe fn DRMGetProcAddress(hlibrary: u32, wszprocname: P0, ppfnprocaddress: *mut super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hlibrary, wszprocname.into_param().abi(), ppfnprocaddress).ok() + DRMGetProcAddress(hlibrary, wszprocname.param().abi(), ppfnprocaddress).ok() } #[inline] pub unsafe 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::Result<()> { @@ -370,28 +370,28 @@ pub unsafe fn DRMGetSecurityProvider(uflags: u32, putypelen: *mut u32, wsztype: #[inline] pub unsafe fn DRMGetServiceLocation(hclient: u32, uservicetype: u32, uservicelocation: u32, wszissuancelicense: P0, puserviceurllength: *mut u32, wszserviceurl: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hclient, uservicetype, uservicelocation, wszissuancelicense.into_param().abi(), puserviceurllength, core::mem::transmute(wszserviceurl)).ok() + DRMGetServiceLocation(hclient, uservicetype, uservicelocation, wszissuancelicense.param().abi(), puserviceurllength, core::mem::transmute(wszserviceurl)).ok() } #[inline] pub unsafe fn DRMGetSignedIssuanceLicense(henv: u32, hissuancelicense: u32, uflags: u32, pbsymkey: *mut u8, cbsymkey: u32, wszsymkeytype: P0, wszclientlicensorcertificate: P1, pfncallback: DRMCALLBACK, wszurl: P2, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(henv, hissuancelicense, uflags, pbsymkey, cbsymkey, wszsymkeytype.into_param().abi(), wszclientlicensorcertificate.into_param().abi(), pfncallback, wszurl.into_param().abi(), pvcontext).ok() + DRMGetSignedIssuanceLicense(henv, hissuancelicense, uflags, pbsymkey, cbsymkey, wszsymkeytype.param().abi(), wszclientlicensorcertificate.param().abi(), pfncallback, wszurl.param().abi(), pvcontext).ok() } #[inline] pub unsafe fn DRMGetSignedIssuanceLicenseEx(henv: u32, hissuancelicense: u32, uflags: u32, pbsymkey: Option<&[u8]>, wszsymkeytype: P0, pvreserved: Option<*const core::ffi::c_void>, henablingprincipal: u32, hboundlicenseclc: u32, pfncallback: DRMCALLBACK, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), henablingprincipal, hboundlicenseclc, pfncallback, 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(std::ptr::null())), henablingprincipal, hboundlicenseclc, pfncallback, pvcontext).ok() } #[inline] pub unsafe fn DRMGetTime(henv: u32, etimeridtype: DRMTIMETYPE, potimeobject: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { @@ -401,34 +401,34 @@ pub unsafe fn DRMGetTime(henv: u32, etimeridtype: DRMTIMETYPE, potimeobject: *mu #[inline] pub unsafe fn DRMGetUnboundLicenseAttribute(hqueryroot: u32, wszattributetype: P0, iwhich: u32, peencoding: *mut DRMENCODINGTYPE, pcbuffer: *mut u32, pbbuffer: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hqueryroot, wszattributetype.into_param().abi(), iwhich, peencoding, pcbuffer, pbbuffer).ok() + DRMGetUnboundLicenseAttribute(hqueryroot, wszattributetype.param().abi(), iwhich, peencoding, pcbuffer, pbbuffer).ok() } #[inline] pub unsafe fn DRMGetUnboundLicenseAttributeCount(hqueryroot: u32, wszattributetype: P0, pcattributes: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseAttributeCount(hqueryroot : u32, wszattributetype : windows_core::PCWSTR, pcattributes : *mut u32) -> windows_core::HRESULT); - DRMGetUnboundLicenseAttributeCount(hqueryroot, wszattributetype.into_param().abi(), pcattributes).ok() + DRMGetUnboundLicenseAttributeCount(hqueryroot, wszattributetype.param().abi(), pcattributes).ok() } #[inline] pub unsafe fn DRMGetUnboundLicenseObject(hqueryroot: u32, wszsubobjecttype: P0, iindex: u32, phsubquery: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hqueryroot, wszsubobjecttype.into_param().abi(), iindex, phsubquery).ok() + DRMGetUnboundLicenseObject(hqueryroot, wszsubobjecttype.param().abi(), iindex, phsubquery).ok() } #[inline] pub unsafe fn DRMGetUnboundLicenseObjectCount(hqueryroot: u32, wszsubobjecttype: P0, pcsubobjects: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseObjectCount(hqueryroot : u32, wszsubobjecttype : windows_core::PCWSTR, pcsubobjects : *mut u32) -> windows_core::HRESULT); - DRMGetUnboundLicenseObjectCount(hqueryroot, wszsubobjecttype.into_param().abi(), pcsubobjects).ok() + DRMGetUnboundLicenseObjectCount(hqueryroot, wszsubobjecttype.param().abi(), 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: 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::Result<()> { @@ -453,12 +453,12 @@ pub unsafe fn DRMGetUsers(hissuancelicense: u32, uindex: u32, phuser: *mut u32) #[inline] pub unsafe fn DRMInitEnvironment(esecurityprovidertype: DRMSECURITYPROVIDERTYPE, especification: DRMSPECTYPE, wszsecurityprovider: P0, wszmanifestcredentials: P1, wszmachinecredentials: P2, phenv: *mut u32, phdefaultlibrary: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(esecurityprovidertype, especification, wszsecurityprovider.into_param().abi(), wszmanifestcredentials.into_param().abi(), wszmachinecredentials.into_param().abi(), phenv, phdefaultlibrary).ok() + DRMInitEnvironment(esecurityprovidertype, especification, wszsecurityprovider.param().abi(), wszmanifestcredentials.param().abi(), wszmachinecredentials.param().abi(), phenv, phdefaultlibrary).ok() } #[inline] pub unsafe fn DRMIsActivated(hclient: u32, uflags: u32, pactservinfo: *mut DRM_ACTSERV_INFO) -> windows_core::Result<()> { @@ -468,51 +468,51 @@ pub unsafe fn DRMIsActivated(hclient: u32, uflags: u32, pactservinfo: *mut DRM_A #[inline] pub unsafe fn DRMIsWindowProtected(hwnd: P0, pfprotected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMIsWindowProtected(hwnd : super::super::Foundation:: HWND, pfprotected : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DRMIsWindowProtected(hwnd.into_param().abi(), pfprotected).ok() + DRMIsWindowProtected(hwnd.param().abi(), pfprotected).ok() } #[inline] pub unsafe fn DRMLoadLibrary(henv: u32, especification: DRMSPECTYPE, wszlibraryprovider: P0, wszcredentials: P1, phlibrary: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(henv, especification, wszlibraryprovider.into_param().abi(), wszcredentials.into_param().abi(), phlibrary).ok() + DRMLoadLibrary(henv, especification, wszlibraryprovider.param().abi(), wszcredentials.param().abi(), phlibrary).ok() } #[inline] pub unsafe fn DRMParseUnboundLicense(wszcertificate: P0, phqueryroot: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMParseUnboundLicense(wszcertificate : windows_core::PCWSTR, phqueryroot : *mut u32) -> windows_core::HRESULT); - DRMParseUnboundLicense(wszcertificate.into_param().abi(), phqueryroot).ok() + DRMParseUnboundLicense(wszcertificate.param().abi(), phqueryroot).ok() } #[inline] pub unsafe fn DRMRegisterContent(fregister: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMRegisterContent(fregister : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DRMRegisterContent(fregister.into_param().abi()).ok() + DRMRegisterContent(fregister.param().abi()).ok() } #[inline] pub unsafe fn DRMRegisterProtectedWindow(henv: u32, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMRegisterProtectedWindow(henv : u32, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DRMRegisterProtectedWindow(henv, hwnd.into_param().abi()).ok() + DRMRegisterProtectedWindow(henv, hwnd.param().abi()).ok() } #[inline] pub unsafe fn DRMRegisterRevocationList(henv: u32, wszrevocationlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMRegisterRevocationList(henv : u32, wszrevocationlist : windows_core::PCWSTR) -> windows_core::HRESULT); - DRMRegisterRevocationList(henv, wszrevocationlist.into_param().abi()).ok() + DRMRegisterRevocationList(henv, wszrevocationlist.param().abi()).ok() } #[inline] pub unsafe fn DRMRepair() -> windows_core::Result<()> { @@ -522,12 +522,12 @@ pub unsafe fn DRMRepair() -> windows_core::Result<()> { #[inline] pub unsafe fn DRMSetApplicationSpecificData(hissuancelicense: u32, fdelete: P0, wszname: P1, wszvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hissuancelicense, fdelete.into_param().abi(), wszname.into_param().abi(), wszvalue.into_param().abi()).ok() + DRMSetApplicationSpecificData(hissuancelicense, fdelete.param().abi(), 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<()> { @@ -542,60 +542,60 @@ pub unsafe fn DRMSetIntervalTime(hissuancelicense: u32, cdays: u32) -> windows_c #[inline] pub unsafe fn DRMSetMetaData(hissuancelicense: u32, wszcontentid: P0, wszcontentidtype: P1, wszskuid: P2, wszskuidtype: P3, wszcontenttype: P4, wszcontentname: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(hissuancelicense, wszcontentid.into_param().abi(), wszcontentidtype.into_param().abi(), wszskuid.into_param().abi(), wszskuidtype.into_param().abi(), wszcontenttype.into_param().abi(), wszcontentname.into_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: P0, lcid: u32, wszname: P1, wszdescription: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hissuancelicense, fdelete.into_param().abi(), lcid, wszname.into_param().abi(), wszdescription.into_param().abi()).ok() + DRMSetNameAndDescription(hissuancelicense, fdelete.param().abi(), lcid, wszname.param().abi(), wszdescription.param().abi()).ok() } #[inline] pub unsafe fn DRMSetRevocationPoint(hissuancelicense: u32, fdelete: P0, wszid: P1, wszidtype: P2, wszurl: P3, pstfrequency: *mut super::super::Foundation::SYSTEMTIME, wszname: P4, wszpublickey: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(hissuancelicense, fdelete.into_param().abi(), wszid.into_param().abi(), wszidtype.into_param().abi(), wszurl.into_param().abi(), pstfrequency, wszname.into_param().abi(), wszpublickey.into_param().abi()).ok() + DRMSetRevocationPoint(hissuancelicense, fdelete.param().abi(), wszid.param().abi(), wszidtype.param().abi(), wszurl.param().abi(), pstfrequency, wszname.param().abi(), wszpublickey.param().abi()).ok() } #[inline] pub unsafe fn DRMSetUsagePolicy(hissuancelicense: u32, eusagepolicytype: DRM_USAGEPOLICY_TYPE, fdelete: P0, fexclusion: P1, wszname: P2, wszminversion: P3, wszmaxversion: P4, wszpublickey: P5, wszdigestalgorithm: P6, pbdigest: *mut u8, cbdigest: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: 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(hissuancelicense, eusagepolicytype, fdelete.into_param().abi(), fexclusion.into_param().abi(), wszname.into_param().abi(), wszminversion.into_param().abi(), wszmaxversion.into_param().abi(), wszpublickey.into_param().abi(), wszdigestalgorithm.into_param().abi(), pbdigest, cbdigest).ok() + DRMSetUsagePolicy(hissuancelicense, eusagepolicytype, fdelete.param().abi(), fexclusion.param().abi(), wszname.param().abi(), wszminversion.param().abi(), wszmaxversion.param().abi(), wszpublickey.param().abi(), wszdigestalgorithm.param().abi(), pbdigest, cbdigest).ok() } #[inline] pub unsafe fn DRMVerify(wszdata: P0, pcattesteddata: *mut u32, wszattesteddata: windows_core::PWSTR, petype: *mut DRMATTESTTYPE, pcprincipal: *mut u32, wszprincipal: windows_core::PWSTR, pcmanifest: *mut u32, wszmanifest: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdrm.dll" "system" fn DRMVerify(wszdata : windows_core::PCWSTR, pcattesteddata : *mut u32, wszattesteddata : windows_core::PWSTR, petype : *mut DRMATTESTTYPE, pcprincipal : *mut u32, wszprincipal : windows_core::PWSTR, pcmanifest : *mut u32, wszmanifest : windows_core::PWSTR) -> windows_core::HRESULT); - DRMVerify(wszdata.into_param().abi(), pcattesteddata, core::mem::transmute(wszattesteddata), petype, pcprincipal, core::mem::transmute(wszprincipal), pcmanifest, core::mem::transmute(wszmanifest)).ok() + DRMVerify(wszdata.param().abi(), pcattesteddata, core::mem::transmute(wszattesteddata), petype, pcprincipal, core::mem::transmute(wszprincipal), pcmanifest, core::mem::transmute(wszmanifest)).ok() } pub const DRMACTSERVINFOVERSION: u32 = 0u32; pub const DRMATTESTTYPE_FULLENVIRONMENT: DRMATTESTTYPE = DRMATTESTTYPE(0i32); 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 940de94cfc..e17e32466b 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 @@ -6,19 +6,19 @@ windows_core::imp::interface_hierarchy!(IMXAttributes, windows_core::IUnknown, s impl IMXAttributes { pub unsafe fn addAttribute(&self, struri: P0, strlocalname: P1, strqname: P2, strtype: P3, strvalue: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).addAttribute)(windows_core::Interface::as_raw(self), struri.into_param().abi(), strlocalname.into_param().abi(), strqname.into_param().abi(), strtype.into_param().abi(), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addAttribute)(windows_core::Interface::as_raw(self), struri.param().abi(), strlocalname.param().abi(), strqname.param().abi(), strtype.param().abi(), strvalue.param().abi()).ok() } pub unsafe fn addAttributeFromIndex(&self, varatts: P0, nindex: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addAttributeFromIndex)(windows_core::Interface::as_raw(self), varatts.into_param().abi(), nindex).ok() + (windows_core::Interface::vtable(self).addAttributeFromIndex)(windows_core::Interface::as_raw(self), varatts.param().abi(), nindex).ok() } pub unsafe fn clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).clear)(windows_core::Interface::as_raw(self)).ok() @@ -28,49 +28,49 @@ impl IMXAttributes { } pub unsafe fn setAttribute(&self, nindex: i32, struri: P0, strlocalname: P1, strqname: P2, strtype: P3, strvalue: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), nindex, struri.into_param().abi(), strlocalname.into_param().abi(), strqname.into_param().abi(), strtype.into_param().abi(), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), nindex, struri.param().abi(), strlocalname.param().abi(), strqname.param().abi(), strtype.param().abi(), strvalue.param().abi()).ok() } pub unsafe fn setAttributes(&self, varatts: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setAttributes)(windows_core::Interface::as_raw(self), varatts.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAttributes)(windows_core::Interface::as_raw(self), varatts.param().abi()).ok() } pub unsafe fn setLocalName(&self, nindex: i32, strlocalname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setLocalName)(windows_core::Interface::as_raw(self), nindex, strlocalname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setLocalName)(windows_core::Interface::as_raw(self), nindex, strlocalname.param().abi()).ok() } pub unsafe fn setQName(&self, nindex: i32, strqname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setQName)(windows_core::Interface::as_raw(self), nindex, strqname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setQName)(windows_core::Interface::as_raw(self), nindex, strqname.param().abi()).ok() } pub unsafe fn setType(&self, nindex: i32, strtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setType)(windows_core::Interface::as_raw(self), nindex, strtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setType)(windows_core::Interface::as_raw(self), nindex, strtype.param().abi()).ok() } pub unsafe fn setURI(&self, nindex: i32, struri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setURI)(windows_core::Interface::as_raw(self), nindex, struri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setURI)(windows_core::Interface::as_raw(self), nindex, struri.param().abi()).ok() } pub unsafe fn setValue(&self, nindex: i32, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setValue)(windows_core::Interface::as_raw(self), nindex, strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setValue)(windows_core::Interface::as_raw(self), nindex, strvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -94,9 +94,9 @@ windows_core::imp::interface_hierarchy!(IMXNamespaceManager, windows_core::IUnkn impl IMXNamespaceManager { pub unsafe fn putAllowOverride(&self, foverride: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putAllowOverride)(windows_core::Interface::as_raw(self), foverride.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putAllowOverride)(windows_core::Interface::as_raw(self), foverride.param().abi()).ok() } pub unsafe fn getAllowOverride(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -111,37 +111,37 @@ impl IMXNamespaceManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn pushNodeContext(&self, contextnode: P0, fdeep: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.into_param().abi(), fdeep.into_param().abi()).ok() + (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.param().abi(), fdeep.param().abi()).ok() } pub unsafe fn popContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).popContext)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn declarePrefix(&self, prefix: P0, namespaceuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).declarePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi(), namespaceuri.into_param().abi()).ok() + (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), nindex, core::mem::transmute(pwchprefix), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getPrefix)(windows_core::Interface::as_raw(self), pwsznamespaceuri.into_param().abi(), nindex, core::mem::transmute(pwchprefix), pcchprefix).ok() + (windows_core::Interface::vtable(self).getPrefix)(windows_core::Interface::as_raw(self), pwsznamespaceuri.param().abi(), nindex, core::mem::transmute(pwchprefix), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), pwchprefix.into_param().abi(), pcontextnode.into_param().abi(), core::mem::transmute(pwchuri), pcchuri).ok() + (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), pwchprefix.param().abi(), pcontextnode.param().abi(), core::mem::transmute(pwchuri), pcchuri).ok() } } #[repr(C)] @@ -224,9 +224,9 @@ impl IMXSchemaDeclHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn schemaElementDecl(&self, oschemaelement: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).schemaElementDecl)(windows_core::Interface::as_raw(self), oschemaelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).schemaElementDecl)(windows_core::Interface::as_raw(self), oschemaelement.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -246,9 +246,9 @@ windows_core::imp::interface_hierarchy!(IMXWriter, windows_core::IUnknown, super impl IMXWriter { pub unsafe fn Setoutput(&self, vardestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setoutput)(windows_core::Interface::as_raw(self), vardestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setoutput)(windows_core::Interface::as_raw(self), vardestination.param().abi()).ok() } pub unsafe fn output(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -256,9 +256,9 @@ impl IMXWriter { } pub unsafe fn Setencoding(&self, strencoding: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setencoding)(windows_core::Interface::as_raw(self), strencoding.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setencoding)(windows_core::Interface::as_raw(self), strencoding.param().abi()).ok() } pub unsafe fn encoding(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -266,9 +266,9 @@ impl IMXWriter { } pub unsafe fn SetbyteOrderMark(&self, fwritebyteordermark: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetbyteOrderMark)(windows_core::Interface::as_raw(self), fwritebyteordermark.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetbyteOrderMark)(windows_core::Interface::as_raw(self), fwritebyteordermark.param().abi()).ok() } pub unsafe fn byteOrderMark(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -276,9 +276,9 @@ impl IMXWriter { } pub unsafe fn Setindent(&self, findentmode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setindent)(windows_core::Interface::as_raw(self), findentmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setindent)(windows_core::Interface::as_raw(self), findentmode.param().abi()).ok() } pub unsafe fn indent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -286,9 +286,9 @@ impl IMXWriter { } pub unsafe fn Setstandalone(&self, fvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setstandalone)(windows_core::Interface::as_raw(self), fvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setstandalone)(windows_core::Interface::as_raw(self), fvalue.param().abi()).ok() } pub unsafe fn standalone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -296,9 +296,9 @@ impl IMXWriter { } pub unsafe fn SetomitXMLDeclaration(&self, fvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetomitXMLDeclaration)(windows_core::Interface::as_raw(self), fvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetomitXMLDeclaration)(windows_core::Interface::as_raw(self), fvalue.param().abi()).ok() } pub unsafe fn omitXMLDeclaration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -306,9 +306,9 @@ impl IMXWriter { } pub unsafe fn Setversion(&self, strversion: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setversion)(windows_core::Interface::as_raw(self), strversion.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setversion)(windows_core::Interface::as_raw(self), strversion.param().abi()).ok() } pub unsafe fn version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -316,9 +316,9 @@ impl IMXWriter { } pub unsafe fn SetdisableOutputEscaping(&self, fvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetdisableOutputEscaping)(windows_core::Interface::as_raw(self), fvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetdisableOutputEscaping)(windows_core::Interface::as_raw(self), fvalue.param().abi()).ok() } pub unsafe fn disableOutputEscaping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -358,31 +358,31 @@ windows_core::imp::interface_hierarchy!(IMXXMLFilter, windows_core::IUnknown, su impl IMXXMLFilter { pub unsafe fn getFeature(&self, strname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), strname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), strname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn putFeature(&self, strname: P0, fvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), strname.into_param().abi(), fvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), strname.param().abi(), fvalue.param().abi()).ok() } pub unsafe fn getProperty(&self, strname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), strname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), strname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn putProperty(&self, strname: P0, varvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).putProperty)(windows_core::Interface::as_raw(self), strname.into_param().abi(), varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putProperty)(windows_core::Interface::as_raw(self), strname.param().abi(), varvalue.param().abi()).ok() } pub unsafe fn entityResolver(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -390,9 +390,9 @@ impl IMXXMLFilter { } pub unsafe fn putref_entityResolver(&self, oresolver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_entityResolver)(windows_core::Interface::as_raw(self), oresolver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_entityResolver)(windows_core::Interface::as_raw(self), oresolver.param().abi()).ok() } pub unsafe fn contentHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -400,9 +400,9 @@ impl IMXXMLFilter { } pub unsafe fn putref_contentHandler(&self, ohandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_contentHandler)(windows_core::Interface::as_raw(self), ohandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_contentHandler)(windows_core::Interface::as_raw(self), ohandler.param().abi()).ok() } pub unsafe fn dtdHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -410,9 +410,9 @@ impl IMXXMLFilter { } pub unsafe fn putref_dtdHandler(&self, ohandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_dtdHandler)(windows_core::Interface::as_raw(self), ohandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_dtdHandler)(windows_core::Interface::as_raw(self), ohandler.param().abi()).ok() } pub unsafe fn errorHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -420,9 +420,9 @@ impl IMXXMLFilter { } pub unsafe fn putref_errorHandler(&self, ohandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_errorHandler)(windows_core::Interface::as_raw(self), ohandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_errorHandler)(windows_core::Interface::as_raw(self), ohandler.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -463,50 +463,50 @@ impl ISAXAttributes { } pub unsafe fn getIndexFromName(&self, pwchuri: P0, cchuri: i32, pwchlocalname: P1, cchlocalname: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getIndexFromName)(windows_core::Interface::as_raw(self), pwchuri.into_param().abi(), cchuri, pwchlocalname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getIndexFromQName)(windows_core::Interface::as_raw(self), pwchqname.into_param().abi(), 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), nindex, ppwchtype, pcchtype).ok() } pub unsafe fn getTypeFromName(&self, pwchuri: P0, cchuri: i32, pwchlocalname: P1, cchlocalname: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).getTypeFromName)(windows_core::Interface::as_raw(self), pwchuri.into_param().abi(), cchuri, pwchlocalname.into_param().abi(), cchlocalname, ppwchtype, pcchtype).ok() + (windows_core::Interface::vtable(self).getTypeFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), cchuri, pwchlocalname.param().abi(), cchlocalname, ppwchtype, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getTypeFromQName)(windows_core::Interface::as_raw(self), pwchqname.into_param().abi(), cchqname, ppwchtype, pcchtype).ok() + (windows_core::Interface::vtable(self).getTypeFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), cchqname, ppwchtype, 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), nindex, ppwchvalue, pcchvalue).ok() } pub unsafe fn getValueFromName(&self, pwchuri: P0, cchuri: i32, pwchlocalname: P1, cchlocalname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).getValueFromName)(windows_core::Interface::as_raw(self), pwchuri.into_param().abi(), cchuri, pwchlocalname.into_param().abi(), cchlocalname, ppwchvalue, pcchvalue).ok() + (windows_core::Interface::vtable(self).getValueFromName)(windows_core::Interface::as_raw(self), pwchuri.param().abi(), cchuri, pwchlocalname.param().abi(), cchlocalname, ppwchvalue, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getValueFromQName)(windows_core::Interface::as_raw(self), pwchqname.into_param().abi(), cchqname, ppwchvalue, pcchvalue).ok() + (windows_core::Interface::vtable(self).getValueFromQName)(windows_core::Interface::as_raw(self), pwchqname.param().abi(), cchqname, ppwchvalue, pcchvalue).ok() } } #[repr(C)] @@ -531,9 +531,9 @@ windows_core::imp::interface_hierarchy!(ISAXContentHandler, windows_core::IUnkno impl ISAXContentHandler { pub unsafe fn putDocumentLocator(&self, plocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putDocumentLocator)(windows_core::Interface::as_raw(self), plocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putDocumentLocator)(windows_core::Interface::as_raw(self), plocator.param().abi()).ok() } pub unsafe fn startDocument(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).startDocument)(windows_core::Interface::as_raw(self)).ok() @@ -543,58 +543,58 @@ impl ISAXContentHandler { } pub unsafe fn startPrefixMapping(&self, pwchprefix: P0, cchprefix: i32, pwchuri: P1, cchuri: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).startPrefixMapping)(windows_core::Interface::as_raw(self), pwchprefix.into_param().abi(), cchprefix, pwchuri.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).endPrefixMapping)(windows_core::Interface::as_raw(self), pwchprefix.into_param().abi(), 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: P1, cchlocalname: i32, pwchqname: P2, cchqname: i32, pattributes: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).startElement)(windows_core::Interface::as_raw(self), pwchnamespaceuri.into_param().abi(), cchnamespaceuri, pwchlocalname.into_param().abi(), cchlocalname, pwchqname.into_param().abi(), cchqname, pattributes.into_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: P1, cchlocalname: i32, pwchqname: P2, cchqname: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).endElement)(windows_core::Interface::as_raw(self), pwchnamespaceuri.into_param().abi(), cchnamespaceuri, pwchlocalname.into_param().abi(), cchlocalname, pwchqname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).characters)(windows_core::Interface::as_raw(self), pwchchars.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ignorableWhitespace)(windows_core::Interface::as_raw(self), pwchchars.into_param().abi(), 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: P1, cchdata: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).processingInstruction)(windows_core::Interface::as_raw(self), pwchtarget.into_param().abi(), cchtarget, pwchdata.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).skippedEntity)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname).ok() + (windows_core::Interface::vtable(self).skippedEntity)(windows_core::Interface::as_raw(self), pwchname.param().abi(), cchname).ok() } } #[repr(C)] @@ -617,20 +617,20 @@ windows_core::imp::interface_hierarchy!(ISAXDTDHandler, windows_core::IUnknown); impl ISAXDTDHandler { pub unsafe fn notationDecl(&self, pwchname: P0, cchname: i32, pwchpublicid: P1, cchpublicid: i32, pwchsystemid: P2, cchsystemid: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).notationDecl)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname, pwchpublicid.into_param().abi(), cchpublicid, pwchsystemid.into_param().abi(), 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: P1, cchpublicid: i32, pwchsystemid: P2, cchsystemid: i32, pwchnotationname: P3, cchnotationname: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).unparsedEntityDecl)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname, pwchpublicid.into_param().abi(), cchpublicid, pwchsystemid.into_param().abi(), cchsystemid, pwchnotationname.into_param().abi(), 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)] @@ -644,35 +644,35 @@ windows_core::imp::interface_hierarchy!(ISAXDeclHandler, windows_core::IUnknown) impl ISAXDeclHandler { pub unsafe fn elementDecl(&self, pwchname: P0, cchname: i32, pwchmodel: P1, cchmodel: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).elementDecl)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname, pwchmodel.into_param().abi(), 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: P1, cchattributename: i32, pwchtype: P2, cchtype: i32, pwchvaluedefault: P3, cchvaluedefault: i32, pwchvalue: P4, cchvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).attributeDecl)(windows_core::Interface::as_raw(self), pwchelementname.into_param().abi(), cchelementname, pwchattributename.into_param().abi(), cchattributename, pwchtype.into_param().abi(), cchtype, pwchvaluedefault.into_param().abi(), cchvaluedefault, pwchvalue.into_param().abi(), 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: P1, cchvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).internalEntityDecl)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname, pwchvalue.into_param().abi(), 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: P1, cchpublicid: i32, pwchsystemid: P2, cchsystemid: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).externalEntityDecl)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname, pwchpublicid.into_param().abi(), cchpublicid, pwchsystemid.into_param().abi(), 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)] @@ -688,11 +688,11 @@ windows_core::imp::interface_hierarchy!(ISAXEntityResolver, windows_core::IUnkno impl ISAXEntityResolver { pub unsafe fn resolveEntity(&self, pwchpublicid: P0, pwchsystemid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).resolveEntity)(windows_core::Interface::as_raw(self), pwchpublicid.into_param().abi(), pwchsystemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).resolveEntity)(windows_core::Interface::as_raw(self), pwchpublicid.param().abi(), pwchsystemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -705,24 +705,24 @@ windows_core::imp::interface_hierarchy!(ISAXErrorHandler, windows_core::IUnknown impl ISAXErrorHandler { pub unsafe fn error(&self, plocator: P0, pwcherrormessage: P1, hrerrorcode: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).error)(windows_core::Interface::as_raw(self), plocator.into_param().abi(), pwcherrormessage.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).fatalError)(windows_core::Interface::as_raw(self), plocator.into_param().abi(), pwcherrormessage.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ignorableWarning)(windows_core::Interface::as_raw(self), plocator.into_param().abi(), pwcherrormessage.into_param().abi(), hrerrorcode).ok() + (windows_core::Interface::vtable(self).ignorableWarning)(windows_core::Interface::as_raw(self), plocator.param().abi(), pwcherrormessage.param().abi(), hrerrorcode).ok() } } #[repr(C)] @@ -737,26 +737,26 @@ windows_core::imp::interface_hierarchy!(ISAXLexicalHandler, windows_core::IUnkno impl ISAXLexicalHandler { pub unsafe fn startDTD(&self, pwchname: P0, cchname: i32, pwchpublicid: P1, cchpublicid: i32, pwchsystemid: P2, cchsystemid: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).startDTD)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname, pwchpublicid.into_param().abi(), cchpublicid, pwchsystemid.into_param().abi(), 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() } pub unsafe fn startEntity(&self, pwchname: P0, cchname: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).startEntity)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).endEntity)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), 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() @@ -766,9 +766,9 @@ impl ISAXLexicalHandler { } pub unsafe fn comment(&self, pwchchars: P0, cchchars: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).comment)(windows_core::Interface::as_raw(self), pwchchars.into_param().abi(), cchchars).ok() + (windows_core::Interface::vtable(self).comment)(windows_core::Interface::as_raw(self), pwchchars.param().abi(), cchchars).ok() } } #[repr(C)] @@ -815,31 +815,31 @@ windows_core::imp::interface_hierarchy!(ISAXXMLFilter, windows_core::IUnknown, I impl ISAXXMLFilter { pub unsafe fn getFeature(&self, pwchname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getFeature)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.getFeature)(windows_core::Interface::as_raw(self), pwchname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn putFeature(&self, pwchname: P0, vfvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putFeature)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), vfvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putFeature)(windows_core::Interface::as_raw(self), pwchname.param().abi(), vfvalue.param().abi()).ok() } pub unsafe fn getProperty(&self, pwchname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getProperty)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getProperty)(windows_core::Interface::as_raw(self), pwchname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn putProperty(&self, pwchname: P0, varvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putProperty)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putProperty)(windows_core::Interface::as_raw(self), pwchname.param().abi(), varvalue.param().abi()).ok() } pub unsafe fn getEntityResolver(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -847,9 +847,9 @@ impl ISAXXMLFilter { } pub unsafe fn putEntityResolver(&self, presolver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putEntityResolver)(windows_core::Interface::as_raw(self), presolver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putEntityResolver)(windows_core::Interface::as_raw(self), presolver.param().abi()).ok() } pub unsafe fn getContentHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -857,9 +857,9 @@ impl ISAXXMLFilter { } pub unsafe fn putContentHandler(&self, phandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putContentHandler)(windows_core::Interface::as_raw(self), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putContentHandler)(windows_core::Interface::as_raw(self), phandler.param().abi()).ok() } pub unsafe fn getDTDHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -867,9 +867,9 @@ impl ISAXXMLFilter { } pub unsafe fn putDTDHandler(&self, phandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putDTDHandler)(windows_core::Interface::as_raw(self), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putDTDHandler)(windows_core::Interface::as_raw(self), phandler.param().abi()).ok() } pub unsafe fn getErrorHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -877,9 +877,9 @@ impl ISAXXMLFilter { } pub unsafe fn putErrorHandler(&self, phandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putErrorHandler)(windows_core::Interface::as_raw(self), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putErrorHandler)(windows_core::Interface::as_raw(self), phandler.param().abi()).ok() } pub unsafe fn getBaseURL(&self) -> windows_core::Result<*mut u16> { let mut result__ = std::mem::zeroed(); @@ -887,9 +887,9 @@ impl ISAXXMLFilter { } pub unsafe fn putBaseURL(&self, pwchbaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putBaseURL)(windows_core::Interface::as_raw(self), pwchbaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putBaseURL)(windows_core::Interface::as_raw(self), pwchbaseurl.param().abi()).ok() } pub unsafe fn getSecureBaseURL(&self) -> windows_core::Result<*mut u16> { let mut result__ = std::mem::zeroed(); @@ -897,21 +897,21 @@ impl ISAXXMLFilter { } pub unsafe fn putSecureBaseURL(&self, pwchsecurebaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putSecureBaseURL)(windows_core::Interface::as_raw(self), pwchsecurebaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putSecureBaseURL)(windows_core::Interface::as_raw(self), pwchsecurebaseurl.param().abi()).ok() } pub unsafe fn parse(&self, varinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.parse)(windows_core::Interface::as_raw(self), varinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.parse)(windows_core::Interface::as_raw(self), varinput.param().abi()).ok() } pub unsafe fn parseURL(&self, pwchurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.parseURL)(windows_core::Interface::as_raw(self), pwchurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.parseURL)(windows_core::Interface::as_raw(self), pwchurl.param().abi()).ok() } pub unsafe fn getParent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -919,9 +919,9 @@ impl ISAXXMLFilter { } pub unsafe fn putParent(&self, preader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putParent)(windows_core::Interface::as_raw(self), preader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putParent)(windows_core::Interface::as_raw(self), preader.param().abi()).ok() } } #[repr(C)] @@ -935,31 +935,31 @@ windows_core::imp::interface_hierarchy!(ISAXXMLReader, windows_core::IUnknown); impl ISAXXMLReader { pub unsafe fn getFeature(&self, pwchname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), pwchname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn putFeature(&self, pwchname: P0, vfvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), vfvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), pwchname.param().abi(), vfvalue.param().abi()).ok() } pub unsafe fn getProperty(&self, pwchname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), pwchname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn putProperty(&self, pwchname: P0, varvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).putProperty)(windows_core::Interface::as_raw(self), pwchname.into_param().abi(), varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putProperty)(windows_core::Interface::as_raw(self), pwchname.param().abi(), varvalue.param().abi()).ok() } pub unsafe fn getEntityResolver(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -967,9 +967,9 @@ impl ISAXXMLReader { } pub unsafe fn putEntityResolver(&self, presolver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putEntityResolver)(windows_core::Interface::as_raw(self), presolver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putEntityResolver)(windows_core::Interface::as_raw(self), presolver.param().abi()).ok() } pub unsafe fn getContentHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -977,9 +977,9 @@ impl ISAXXMLReader { } pub unsafe fn putContentHandler(&self, phandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putContentHandler)(windows_core::Interface::as_raw(self), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putContentHandler)(windows_core::Interface::as_raw(self), phandler.param().abi()).ok() } pub unsafe fn getDTDHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -987,9 +987,9 @@ impl ISAXXMLReader { } pub unsafe fn putDTDHandler(&self, phandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putDTDHandler)(windows_core::Interface::as_raw(self), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putDTDHandler)(windows_core::Interface::as_raw(self), phandler.param().abi()).ok() } pub unsafe fn getErrorHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -997,9 +997,9 @@ impl ISAXXMLReader { } pub unsafe fn putErrorHandler(&self, phandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putErrorHandler)(windows_core::Interface::as_raw(self), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putErrorHandler)(windows_core::Interface::as_raw(self), phandler.param().abi()).ok() } pub unsafe fn getBaseURL(&self) -> windows_core::Result<*mut u16> { let mut result__ = std::mem::zeroed(); @@ -1007,9 +1007,9 @@ impl ISAXXMLReader { } pub unsafe fn putBaseURL(&self, pwchbaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putBaseURL)(windows_core::Interface::as_raw(self), pwchbaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putBaseURL)(windows_core::Interface::as_raw(self), pwchbaseurl.param().abi()).ok() } pub unsafe fn getSecureBaseURL(&self) -> windows_core::Result<*mut u16> { let mut result__ = std::mem::zeroed(); @@ -1017,21 +1017,21 @@ impl ISAXXMLReader { } pub unsafe fn putSecureBaseURL(&self, pwchsecurebaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putSecureBaseURL)(windows_core::Interface::as_raw(self), pwchsecurebaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putSecureBaseURL)(windows_core::Interface::as_raw(self), pwchsecurebaseurl.param().abi()).ok() } pub unsafe fn parse(&self, varinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).parse)(windows_core::Interface::as_raw(self), varinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).parse)(windows_core::Interface::as_raw(self), varinput.param().abi()).ok() } pub unsafe fn parseURL(&self, pwchurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).parseURL)(windows_core::Interface::as_raw(self), pwchurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).parseURL)(windows_core::Interface::as_raw(self), pwchurl.param().abi()).ok() } } #[repr(C)] @@ -1090,10 +1090,10 @@ impl ISchema { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn targetNamespace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1208,10 +1208,10 @@ impl ISchemaAny { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn minOccurs(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1275,10 +1275,10 @@ impl ISchemaAttribute { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn r#type(&self) -> windows_core::Result { @@ -1358,10 +1358,10 @@ impl ISchemaAttributeGroup { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn anyAttribute(&self) -> windows_core::Result { @@ -1421,10 +1421,10 @@ impl ISchemaComplexType { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn baseTypes(&self) -> windows_core::Result { @@ -1445,10 +1445,10 @@ impl ISchemaComplexType { } pub unsafe fn isValid(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.isValid)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.isValid)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).map(|| result__) } pub unsafe fn minExclusive(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1582,10 +1582,10 @@ impl ISchemaElement { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn minOccurs(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1706,10 +1706,10 @@ impl ISchemaIdentityConstraint { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn selector(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1774,10 +1774,10 @@ impl ISchemaItem { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1812,19 +1812,19 @@ impl ISchemaItemCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn itemByName(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).itemByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).itemByName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn itemByQName(&self, name: P0, namespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).itemByQName)(windows_core::Interface::as_raw(self), name.into_param().abi(), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).itemByQName)(windows_core::Interface::as_raw(self), name.param().abi(), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1888,10 +1888,10 @@ impl ISchemaModelGroup { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn minOccurs(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1950,10 +1950,10 @@ impl ISchemaNotation { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn systemIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2005,10 +2005,10 @@ impl ISchemaParticle { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn minOccurs(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2087,10 +2087,10 @@ impl ISchemaType { } pub unsafe fn writeAnnotation(&self, annotationsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.writeAnnotation)(windows_core::Interface::as_raw(self), annotationsink.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn baseTypes(&self) -> windows_core::Result { @@ -2111,10 +2111,10 @@ impl ISchemaType { } pub unsafe fn isValid(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).isValid)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).isValid)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).map(|| result__) } pub unsafe fn minExclusive(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2206,27 +2206,27 @@ windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest, windows_core::IUn impl IServerXMLHTTPRequest { pub unsafe fn open(&self, bstrmethod: P0, bstrurl: P1, varasync: P2, bstruser: P3, bstrpassword: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.open)(windows_core::Interface::as_raw(self), bstrmethod.into_param().abi(), bstrurl.into_param().abi(), varasync.into_param().abi(), bstruser.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.open)(windows_core::Interface::as_raw(self), bstrmethod.param().abi(), bstrurl.param().abi(), varasync.param().abi(), bstruser.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn setRequestHeader(&self, bstrheader: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setRequestHeader)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setRequestHeader)(windows_core::Interface::as_raw(self), bstrheader.param().abi(), bstrvalue.param().abi()).ok() } pub unsafe fn getResponseHeader(&self, bstrheader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getResponseHeader)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getResponseHeader)(windows_core::Interface::as_raw(self), bstrheader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getAllResponseHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2234,9 +2234,9 @@ impl IServerXMLHTTPRequest { } pub unsafe fn send(&self, varbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.send)(windows_core::Interface::as_raw(self), varbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.send)(windows_core::Interface::as_raw(self), varbody.param().abi()).ok() } pub unsafe fn abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.abort)(windows_core::Interface::as_raw(self)).ok() @@ -2273,19 +2273,19 @@ impl IServerXMLHTTPRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Setonreadystatechange(&self, preadystatesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), preadystatesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), preadystatesink.param().abi()).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), resolvetimeout, connecttimeout, sendtimeout, receivetimeout).ok() } pub unsafe fn waitForResponse(&self, timeoutinseconds: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).waitForResponse)(windows_core::Interface::as_raw(self), timeoutinseconds.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).waitForResponse)(windows_core::Interface::as_raw(self), timeoutinseconds.param().abi(), &mut result__).map(|| result__) } pub unsafe fn getOption(&self, option: SERVERXMLHTTP_OPTION) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2293,9 +2293,9 @@ impl IServerXMLHTTPRequest { } pub unsafe fn setOption(&self, option: SERVERXMLHTTP_OPTION, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setOption)(windows_core::Interface::as_raw(self), option, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setOption)(windows_core::Interface::as_raw(self), option, value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2315,27 +2315,27 @@ windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest2, windows_core::IU impl IServerXMLHTTPRequest2 { pub unsafe fn open(&self, bstrmethod: P0, bstrurl: P1, varasync: P2, bstruser: P3, bstrpassword: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.open)(windows_core::Interface::as_raw(self), bstrmethod.into_param().abi(), bstrurl.into_param().abi(), varasync.into_param().abi(), bstruser.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.open)(windows_core::Interface::as_raw(self), bstrmethod.param().abi(), bstrurl.param().abi(), varasync.param().abi(), bstruser.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn setRequestHeader(&self, bstrheader: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.setRequestHeader)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.setRequestHeader)(windows_core::Interface::as_raw(self), bstrheader.param().abi(), bstrvalue.param().abi()).ok() } pub unsafe fn getResponseHeader(&self, bstrheader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.getResponseHeader)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.getResponseHeader)(windows_core::Interface::as_raw(self), bstrheader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getAllResponseHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2343,9 +2343,9 @@ impl IServerXMLHTTPRequest2 { } pub unsafe fn send(&self, varbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.send)(windows_core::Interface::as_raw(self), varbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.send)(windows_core::Interface::as_raw(self), varbody.param().abi()).ok() } pub unsafe fn abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.abort)(windows_core::Interface::as_raw(self)).ok() @@ -2382,19 +2382,19 @@ impl IServerXMLHTTPRequest2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Setonreadystatechange(&self, preadystatesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), preadystatesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), preadystatesink.param().abi()).ok() } pub unsafe fn setTimeouts(&self, resolvetimeout: i32, connecttimeout: i32, sendtimeout: i32, receivetimeout: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.setTimeouts)(windows_core::Interface::as_raw(self), resolvetimeout, connecttimeout, sendtimeout, receivetimeout).ok() } pub unsafe fn waitForResponse(&self, timeoutinseconds: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.waitForResponse)(windows_core::Interface::as_raw(self), timeoutinseconds.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.waitForResponse)(windows_core::Interface::as_raw(self), timeoutinseconds.param().abi(), &mut result__).map(|| result__) } pub unsafe fn getOption(&self, option: SERVERXMLHTTP_OPTION) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2402,23 +2402,23 @@ impl IServerXMLHTTPRequest2 { } pub unsafe fn setOption(&self, option: SERVERXMLHTTP_OPTION, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setOption)(windows_core::Interface::as_raw(self), option, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setOption)(windows_core::Interface::as_raw(self), option, value.param().abi()).ok() } pub unsafe fn setProxy(&self, proxysetting: SXH_PROXY_SETTING, varproxyserver: P0, varbypasslist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setProxy)(windows_core::Interface::as_raw(self), proxysetting, varproxyserver.into_param().abi(), varbypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setProxy)(windows_core::Interface::as_raw(self), proxysetting, varproxyserver.param().abi(), varbypasslist.param().abi()).ok() } pub unsafe fn setProxyCredentials(&self, bstrusername: P0, bstrpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setProxyCredentials)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setProxyCredentials)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), bstrpassword.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2436,9 +2436,9 @@ windows_core::imp::interface_hierarchy!(IVBMXNamespaceManager, windows_core::IUn impl IVBMXNamespaceManager { pub unsafe fn SetallowOverride(&self, foverride: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetallowOverride)(windows_core::Interface::as_raw(self), foverride.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetallowOverride)(windows_core::Interface::as_raw(self), foverride.param().abi()).ok() } pub unsafe fn allowOverride(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2453,20 +2453,20 @@ impl IVBMXNamespaceManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn pushNodeContext(&self, contextnode: P0, fdeep: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.into_param().abi(), fdeep.into_param().abi()).ok() + (windows_core::Interface::vtable(self).pushNodeContext)(windows_core::Interface::as_raw(self), contextnode.param().abi(), fdeep.param().abi()).ok() } pub unsafe fn popContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).popContext)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn declarePrefix(&self, prefix: P0, namespaceuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).declarePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi(), namespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).declarePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi(), namespaceuri.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getDeclaredPrefixes(&self) -> windows_core::Result { @@ -2476,26 +2476,26 @@ impl IVBMXNamespaceManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getPrefixes(&self, namespaceuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getPrefixes)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getPrefixes)(windows_core::Interface::as_raw(self), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getURI(&self, prefix: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), prefix.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getURI)(windows_core::Interface::as_raw(self), prefix.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getURIFromNode(&self, strprefix: P0, contextnode: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getURIFromNode)(windows_core::Interface::as_raw(self), strprefix.into_param().abi(), contextnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getURIFromNode)(windows_core::Interface::as_raw(self), strprefix.param().abi(), contextnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2550,18 +2550,18 @@ impl IVBSAXAttributes { } pub unsafe fn getIndexFromName(&self, struri: P0, strlocalname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getIndexFromName)(windows_core::Interface::as_raw(self), struri.into_param().abi(), strlocalname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getIndexFromName)(windows_core::Interface::as_raw(self), struri.param().abi(), strlocalname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn getIndexFromQName(&self, strqname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getIndexFromQName)(windows_core::Interface::as_raw(self), strqname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getIndexFromQName)(windows_core::Interface::as_raw(self), strqname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn getType(&self, nindex: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2569,18 +2569,18 @@ impl IVBSAXAttributes { } pub unsafe fn getTypeFromName(&self, struri: P0, strlocalname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getTypeFromName)(windows_core::Interface::as_raw(self), struri.into_param().abi(), strlocalname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getTypeFromName)(windows_core::Interface::as_raw(self), struri.param().abi(), strlocalname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getTypeFromQName(&self, strqname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getTypeFromQName)(windows_core::Interface::as_raw(self), strqname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getTypeFromQName)(windows_core::Interface::as_raw(self), strqname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getValue(&self, nindex: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2588,18 +2588,18 @@ impl IVBSAXAttributes { } pub unsafe fn getValueFromName(&self, struri: P0, strlocalname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getValueFromName)(windows_core::Interface::as_raw(self), struri.into_param().abi(), strlocalname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getValueFromName)(windows_core::Interface::as_raw(self), struri.param().abi(), strlocalname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getValueFromQName(&self, strqname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getValueFromQName)(windows_core::Interface::as_raw(self), strqname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getValueFromQName)(windows_core::Interface::as_raw(self), strqname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2628,9 +2628,9 @@ impl IVBSAXContentHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_documentLocator(&self, olocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_documentLocator)(windows_core::Interface::as_raw(self), olocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_documentLocator)(windows_core::Interface::as_raw(self), olocator.param().abi()).ok() } pub unsafe fn startDocument(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).startDocument)(windows_core::Interface::as_raw(self)).ok() @@ -2647,9 +2647,9 @@ impl IVBSAXContentHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn startElement(&self, strnamespaceuri: *mut windows_core::BSTR, strlocalname: *mut windows_core::BSTR, strqname: *mut windows_core::BSTR, oattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).startElement)(windows_core::Interface::as_raw(self), core::mem::transmute(strnamespaceuri), core::mem::transmute(strlocalname), core::mem::transmute(strqname), oattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).startElement)(windows_core::Interface::as_raw(self), core::mem::transmute(strnamespaceuri), core::mem::transmute(strlocalname), core::mem::transmute(strqname), oattributes.param().abi()).ok() } pub unsafe fn endElement(&self, strnamespaceuri: *mut windows_core::BSTR, strlocalname: *mut windows_core::BSTR, strqname: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).endElement)(windows_core::Interface::as_raw(self), core::mem::transmute(strnamespaceuri), core::mem::transmute(strlocalname), core::mem::transmute(strqname)).ok() @@ -2763,23 +2763,23 @@ impl IVBSAXErrorHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn error(&self, olocator: P0, strerrormessage: *mut windows_core::BSTR, nerrorcode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).error)(windows_core::Interface::as_raw(self), olocator.into_param().abi(), core::mem::transmute(strerrormessage), nerrorcode).ok() + (windows_core::Interface::vtable(self).error)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), nerrorcode).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn fatalError(&self, olocator: P0, strerrormessage: *mut windows_core::BSTR, nerrorcode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).fatalError)(windows_core::Interface::as_raw(self), olocator.into_param().abi(), core::mem::transmute(strerrormessage), nerrorcode).ok() + (windows_core::Interface::vtable(self).fatalError)(windows_core::Interface::as_raw(self), olocator.param().abi(), core::mem::transmute(strerrormessage), nerrorcode).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ignorableWarning(&self, olocator: P0, strerrormessage: *mut windows_core::BSTR, nerrorcode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ignorableWarning)(windows_core::Interface::as_raw(self), olocator.into_param().abi(), core::mem::transmute(strerrormessage), 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")] @@ -2885,9 +2885,9 @@ impl IVBSAXXMLFilter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_parent(&self, oreader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_parent)(windows_core::Interface::as_raw(self), oreader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_parent)(windows_core::Interface::as_raw(self), oreader.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2911,31 +2911,31 @@ windows_core::imp::interface_hierarchy!(IVBSAXXMLReader, windows_core::IUnknown, impl IVBSAXXMLReader { pub unsafe fn getFeature(&self, strname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), strname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getFeature)(windows_core::Interface::as_raw(self), strname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn putFeature(&self, strname: P0, fvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), strname.into_param().abi(), fvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putFeature)(windows_core::Interface::as_raw(self), strname.param().abi(), fvalue.param().abi()).ok() } pub unsafe fn getProperty(&self, strname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), strname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), strname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn putProperty(&self, strname: P0, varvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).putProperty)(windows_core::Interface::as_raw(self), strname.into_param().abi(), varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putProperty)(windows_core::Interface::as_raw(self), strname.param().abi(), varvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn entityResolver(&self) -> windows_core::Result { @@ -2945,9 +2945,9 @@ impl IVBSAXXMLReader { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_entityResolver(&self, oresolver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_entityResolver)(windows_core::Interface::as_raw(self), oresolver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_entityResolver)(windows_core::Interface::as_raw(self), oresolver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn contentHandler(&self) -> windows_core::Result { @@ -2957,9 +2957,9 @@ impl IVBSAXXMLReader { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_contentHandler(&self, ohandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_contentHandler)(windows_core::Interface::as_raw(self), ohandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_contentHandler)(windows_core::Interface::as_raw(self), ohandler.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn dtdHandler(&self) -> windows_core::Result { @@ -2969,9 +2969,9 @@ impl IVBSAXXMLReader { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_dtdHandler(&self, ohandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_dtdHandler)(windows_core::Interface::as_raw(self), ohandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_dtdHandler)(windows_core::Interface::as_raw(self), ohandler.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn errorHandler(&self) -> windows_core::Result { @@ -2981,9 +2981,9 @@ impl IVBSAXXMLReader { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_errorHandler(&self, ohandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_errorHandler)(windows_core::Interface::as_raw(self), ohandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_errorHandler)(windows_core::Interface::as_raw(self), ohandler.param().abi()).ok() } pub unsafe fn baseURL(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2991,9 +2991,9 @@ impl IVBSAXXMLReader { } pub unsafe fn SetbaseURL(&self, strbaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetbaseURL)(windows_core::Interface::as_raw(self), strbaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetbaseURL)(windows_core::Interface::as_raw(self), strbaseurl.param().abi()).ok() } pub unsafe fn secureBaseURL(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3001,21 +3001,21 @@ impl IVBSAXXMLReader { } pub unsafe fn SetsecureBaseURL(&self, strsecurebaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetsecureBaseURL)(windows_core::Interface::as_raw(self), strsecurebaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetsecureBaseURL)(windows_core::Interface::as_raw(self), strsecurebaseurl.param().abi()).ok() } pub unsafe fn parse(&self, varinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).parse)(windows_core::Interface::as_raw(self), varinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).parse)(windows_core::Interface::as_raw(self), varinput.param().abi()).ok() } pub unsafe fn parseURL(&self, strurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).parseURL)(windows_core::Interface::as_raw(self), strurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).parseURL)(windows_core::Interface::as_raw(self), strurl.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3103,9 +3103,9 @@ impl IXMLDOMAttribute { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3149,36 +3149,36 @@ impl IXMLDOMAttribute { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3192,10 +3192,10 @@ impl IXMLDOMAttribute { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3207,9 +3207,9 @@ impl IXMLDOMAttribute { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3226,9 +3226,9 @@ impl IXMLDOMAttribute { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3236,9 +3236,9 @@ impl IXMLDOMAttribute { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3247,26 +3247,26 @@ impl IXMLDOMAttribute { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3287,10 +3287,10 @@ impl IXMLDOMAttribute { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3302,9 +3302,9 @@ impl IXMLDOMAttribute { } pub unsafe fn Setvalue(&self, attributevalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setvalue)(windows_core::Interface::as_raw(self), attributevalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setvalue)(windows_core::Interface::as_raw(self), attributevalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3331,9 +3331,9 @@ impl IXMLDOMCDATASection { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3377,36 +3377,36 @@ impl IXMLDOMCDATASection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3420,10 +3420,10 @@ impl IXMLDOMCDATASection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3435,9 +3435,9 @@ impl IXMLDOMCDATASection { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3454,9 +3454,9 @@ impl IXMLDOMCDATASection { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3464,9 +3464,9 @@ impl IXMLDOMCDATASection { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3475,26 +3475,26 @@ impl IXMLDOMCDATASection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3515,10 +3515,10 @@ impl IXMLDOMCDATASection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3526,9 +3526,9 @@ impl IXMLDOMCDATASection { } pub unsafe fn Setdata(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Setdata)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Setdata)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3540,24 +3540,24 @@ impl IXMLDOMCDATASection { } pub unsafe fn appendData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.appendData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.appendData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn insertData(&self, offset: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.insertData)(windows_core::Interface::as_raw(self), offset, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.insertData)(windows_core::Interface::as_raw(self), offset, data.param().abi()).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.deleteData)(windows_core::Interface::as_raw(self), offset, count).ok() } pub unsafe fn replaceData(&self, offset: i32, count: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.replaceData)(windows_core::Interface::as_raw(self), offset, count, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.replaceData)(windows_core::Interface::as_raw(self), offset, count, data.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn splitText(&self, offset: i32) -> windows_core::Result { @@ -3586,9 +3586,9 @@ impl IXMLDOMCharacterData { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3632,36 +3632,36 @@ impl IXMLDOMCharacterData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3675,10 +3675,10 @@ impl IXMLDOMCharacterData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3690,9 +3690,9 @@ impl IXMLDOMCharacterData { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3709,9 +3709,9 @@ impl IXMLDOMCharacterData { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3719,9 +3719,9 @@ impl IXMLDOMCharacterData { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3730,26 +3730,26 @@ impl IXMLDOMCharacterData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3770,10 +3770,10 @@ impl IXMLDOMCharacterData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3781,9 +3781,9 @@ impl IXMLDOMCharacterData { } pub unsafe fn Setdata(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setdata)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setdata)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3795,24 +3795,24 @@ impl IXMLDOMCharacterData { } pub unsafe fn appendData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).appendData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).appendData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn insertData(&self, offset: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).insertData)(windows_core::Interface::as_raw(self), offset, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).insertData)(windows_core::Interface::as_raw(self), offset, data.param().abi()).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).deleteData)(windows_core::Interface::as_raw(self), offset, count).ok() } pub unsafe fn replaceData(&self, offset: i32, count: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).replaceData)(windows_core::Interface::as_raw(self), offset, count, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).replaceData)(windows_core::Interface::as_raw(self), offset, count, data.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3844,9 +3844,9 @@ impl IXMLDOMComment { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3890,36 +3890,36 @@ impl IXMLDOMComment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3933,10 +3933,10 @@ impl IXMLDOMComment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3948,9 +3948,9 @@ impl IXMLDOMComment { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3967,9 +3967,9 @@ impl IXMLDOMComment { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3977,9 +3977,9 @@ impl IXMLDOMComment { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3988,26 +3988,26 @@ impl IXMLDOMComment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4028,10 +4028,10 @@ impl IXMLDOMComment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4039,9 +4039,9 @@ impl IXMLDOMComment { } pub unsafe fn Setdata(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setdata)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setdata)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4053,24 +4053,24 @@ impl IXMLDOMComment { } pub unsafe fn appendData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.appendData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.appendData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn insertData(&self, offset: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.insertData)(windows_core::Interface::as_raw(self), offset, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.insertData)(windows_core::Interface::as_raw(self), offset, data.param().abi()).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.deleteData)(windows_core::Interface::as_raw(self), offset, count).ok() } pub unsafe fn replaceData(&self, offset: i32, count: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.replaceData)(windows_core::Interface::as_raw(self), offset, count, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.replaceData)(windows_core::Interface::as_raw(self), offset, count, data.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4094,9 +4094,9 @@ impl IXMLDOMDocument { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4140,36 +4140,36 @@ impl IXMLDOMDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4183,10 +4183,10 @@ impl IXMLDOMDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4198,9 +4198,9 @@ impl IXMLDOMDocument { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4217,9 +4217,9 @@ impl IXMLDOMDocument { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4227,9 +4227,9 @@ impl IXMLDOMDocument { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4238,26 +4238,26 @@ impl IXMLDOMDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4278,10 +4278,10 @@ impl IXMLDOMDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn doctype(&self) -> windows_core::Result { @@ -4301,17 +4301,17 @@ impl IXMLDOMDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_documentElement(&self, domelement: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_documentElement)(windows_core::Interface::as_raw(self), domelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_documentElement)(windows_core::Interface::as_raw(self), domelement.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createElement(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createElement)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createElement)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createDocumentFragment(&self) -> windows_core::Result { @@ -4321,84 +4321,84 @@ impl IXMLDOMDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn createTextNode(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createTextNode)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createTextNode)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createComment(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createComment)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createComment)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createCDATASection(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createCDATASection)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createCDATASection)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createProcessingInstruction(&self, target: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createProcessingInstruction)(windows_core::Interface::as_raw(self), target.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createProcessingInstruction)(windows_core::Interface::as_raw(self), target.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createEntityReference(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createEntityReference)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createEntityReference)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getElementsByTagName(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createNode(&self, r#type: P0, name: P1, namespaceuri: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createNode)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), name.into_param().abi(), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createNode)(windows_core::Interface::as_raw(self), r#type.param().abi(), name.param().abi(), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn nodeFromID(&self, idstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).nodeFromID)(windows_core::Interface::as_raw(self), idstring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).nodeFromID)(windows_core::Interface::as_raw(self), idstring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn load(&self, xmlsource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).load)(windows_core::Interface::as_raw(self), xmlsource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).load)(windows_core::Interface::as_raw(self), xmlsource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn readyState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4419,25 +4419,25 @@ impl IXMLDOMDocument { } pub unsafe fn Setasync(&self, isasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), isasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), isasync.param().abi()).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 loadXML(&self, bstrxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).loadXML)(windows_core::Interface::as_raw(self), bstrxml.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).loadXML)(windows_core::Interface::as_raw(self), bstrxml.param().abi(), &mut result__).map(|| result__) } pub unsafe fn save(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).save)(windows_core::Interface::as_raw(self), destination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).save)(windows_core::Interface::as_raw(self), destination.param().abi()).ok() } pub unsafe fn validateOnParse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4445,9 +4445,9 @@ impl IXMLDOMDocument { } pub unsafe fn SetvalidateOnParse(&self, isvalidating: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetvalidateOnParse)(windows_core::Interface::as_raw(self), isvalidating.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetvalidateOnParse)(windows_core::Interface::as_raw(self), isvalidating.param().abi()).ok() } pub unsafe fn resolveExternals(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4455,9 +4455,9 @@ impl IXMLDOMDocument { } pub unsafe fn SetresolveExternals(&self, isresolving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetresolveExternals)(windows_core::Interface::as_raw(self), isresolving.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetresolveExternals)(windows_core::Interface::as_raw(self), isresolving.param().abi()).ok() } pub unsafe fn preserveWhiteSpace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4465,27 +4465,27 @@ impl IXMLDOMDocument { } pub unsafe fn SetpreserveWhiteSpace(&self, ispreserving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), ispreserving.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), ispreserving.param().abi()).ok() } pub unsafe fn Setonreadystatechange(&self, readystatechangesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setonreadystatechange)(windows_core::Interface::as_raw(self), readystatechangesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setonreadystatechange)(windows_core::Interface::as_raw(self), readystatechangesink.param().abi()).ok() } pub unsafe fn Setondataavailable(&self, ondataavailablesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setondataavailable)(windows_core::Interface::as_raw(self), ondataavailablesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setondataavailable)(windows_core::Interface::as_raw(self), ondataavailablesink.param().abi()).ok() } pub unsafe fn Setontransformnode(&self, ontransformnodesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setontransformnode)(windows_core::Interface::as_raw(self), ontransformnodesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setontransformnode)(windows_core::Interface::as_raw(self), ontransformnodesink.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4590,9 +4590,9 @@ impl IXMLDOMDocument2 { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4636,36 +4636,36 @@ impl IXMLDOMDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4679,10 +4679,10 @@ impl IXMLDOMDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4694,9 +4694,9 @@ impl IXMLDOMDocument2 { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4713,9 +4713,9 @@ impl IXMLDOMDocument2 { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4723,9 +4723,9 @@ impl IXMLDOMDocument2 { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4734,26 +4734,26 @@ impl IXMLDOMDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4774,10 +4774,10 @@ impl IXMLDOMDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn doctype(&self) -> windows_core::Result { @@ -4797,17 +4797,17 @@ impl IXMLDOMDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_documentElement(&self, domelement: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_documentElement)(windows_core::Interface::as_raw(self), domelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_documentElement)(windows_core::Interface::as_raw(self), domelement.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createElement(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createElement)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createElement)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createDocumentFragment(&self) -> windows_core::Result { @@ -4817,84 +4817,84 @@ impl IXMLDOMDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn createTextNode(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createTextNode)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createTextNode)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createComment(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createComment)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createComment)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createCDATASection(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createCDATASection)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createCDATASection)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createProcessingInstruction(&self, target: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createProcessingInstruction)(windows_core::Interface::as_raw(self), target.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createProcessingInstruction)(windows_core::Interface::as_raw(self), target.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createEntityReference(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createEntityReference)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createEntityReference)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getElementsByTagName(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createNode(&self, r#type: P0, name: P1, namespaceuri: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createNode)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), name.into_param().abi(), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createNode)(windows_core::Interface::as_raw(self), r#type.param().abi(), name.param().abi(), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn nodeFromID(&self, idstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.nodeFromID)(windows_core::Interface::as_raw(self), idstring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.nodeFromID)(windows_core::Interface::as_raw(self), idstring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn load(&self, xmlsource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.load)(windows_core::Interface::as_raw(self), xmlsource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.load)(windows_core::Interface::as_raw(self), xmlsource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn readyState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4915,25 +4915,25 @@ impl IXMLDOMDocument2 { } pub unsafe fn Setasync(&self, isasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setasync)(windows_core::Interface::as_raw(self), isasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setasync)(windows_core::Interface::as_raw(self), isasync.param().abi()).ok() } pub unsafe fn abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.abort)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn loadXML(&self, bstrxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.loadXML)(windows_core::Interface::as_raw(self), bstrxml.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.loadXML)(windows_core::Interface::as_raw(self), bstrxml.param().abi(), &mut result__).map(|| result__) } pub unsafe fn save(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.save)(windows_core::Interface::as_raw(self), destination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.save)(windows_core::Interface::as_raw(self), destination.param().abi()).ok() } pub unsafe fn validateOnParse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4941,9 +4941,9 @@ impl IXMLDOMDocument2 { } pub unsafe fn SetvalidateOnParse(&self, isvalidating: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetvalidateOnParse)(windows_core::Interface::as_raw(self), isvalidating.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetvalidateOnParse)(windows_core::Interface::as_raw(self), isvalidating.param().abi()).ok() } pub unsafe fn resolveExternals(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4951,9 +4951,9 @@ impl IXMLDOMDocument2 { } pub unsafe fn SetresolveExternals(&self, isresolving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetresolveExternals)(windows_core::Interface::as_raw(self), isresolving.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetresolveExternals)(windows_core::Interface::as_raw(self), isresolving.param().abi()).ok() } pub unsafe fn preserveWhiteSpace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4961,27 +4961,27 @@ impl IXMLDOMDocument2 { } pub unsafe fn SetpreserveWhiteSpace(&self, ispreserving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), ispreserving.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), ispreserving.param().abi()).ok() } pub unsafe fn Setonreadystatechange(&self, readystatechangesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), readystatechangesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), readystatechangesink.param().abi()).ok() } pub unsafe fn Setondataavailable(&self, ondataavailablesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setondataavailable)(windows_core::Interface::as_raw(self), ondataavailablesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setondataavailable)(windows_core::Interface::as_raw(self), ondataavailablesink.param().abi()).ok() } pub unsafe fn Setontransformnode(&self, ontransformnodesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setontransformnode)(windows_core::Interface::as_raw(self), ontransformnodesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setontransformnode)(windows_core::Interface::as_raw(self), ontransformnodesink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn namespaces(&self) -> windows_core::Result { @@ -4994,9 +4994,9 @@ impl IXMLDOMDocument2 { } pub unsafe fn putref_schemas(&self, othercollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_schemas)(windows_core::Interface::as_raw(self), othercollection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_schemas)(windows_core::Interface::as_raw(self), othercollection.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn validate(&self) -> windows_core::Result { @@ -5005,17 +5005,17 @@ impl IXMLDOMDocument2 { } pub unsafe fn setProperty(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setProperty)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn getProperty(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5051,9 +5051,9 @@ impl IXMLDOMDocument3 { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5097,36 +5097,36 @@ impl IXMLDOMDocument3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5140,10 +5140,10 @@ impl IXMLDOMDocument3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5155,9 +5155,9 @@ impl IXMLDOMDocument3 { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5174,9 +5174,9 @@ impl IXMLDOMDocument3 { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5184,9 +5184,9 @@ impl IXMLDOMDocument3 { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5195,26 +5195,26 @@ impl IXMLDOMDocument3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5235,10 +5235,10 @@ impl IXMLDOMDocument3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn doctype(&self) -> windows_core::Result { @@ -5258,17 +5258,17 @@ impl IXMLDOMDocument3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_documentElement(&self, domelement: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.putref_documentElement)(windows_core::Interface::as_raw(self), domelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.putref_documentElement)(windows_core::Interface::as_raw(self), domelement.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createElement(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createElement)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createElement)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createDocumentFragment(&self) -> windows_core::Result { @@ -5278,84 +5278,84 @@ impl IXMLDOMDocument3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn createTextNode(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createTextNode)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createTextNode)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createComment(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createComment)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createComment)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createCDATASection(&self, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createCDATASection)(windows_core::Interface::as_raw(self), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createCDATASection)(windows_core::Interface::as_raw(self), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createProcessingInstruction(&self, target: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createProcessingInstruction)(windows_core::Interface::as_raw(self), target.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createProcessingInstruction)(windows_core::Interface::as_raw(self), target.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createEntityReference(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createEntityReference)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createEntityReference)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getElementsByTagName(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createNode(&self, r#type: P0, name: P1, namespaceuri: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createNode)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), name.into_param().abi(), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createNode)(windows_core::Interface::as_raw(self), r#type.param().abi(), name.param().abi(), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn nodeFromID(&self, idstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.nodeFromID)(windows_core::Interface::as_raw(self), idstring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.nodeFromID)(windows_core::Interface::as_raw(self), idstring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn load(&self, xmlsource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.load)(windows_core::Interface::as_raw(self), xmlsource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.load)(windows_core::Interface::as_raw(self), xmlsource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn readyState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5376,25 +5376,25 @@ impl IXMLDOMDocument3 { } pub unsafe fn Setasync(&self, isasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Setasync)(windows_core::Interface::as_raw(self), isasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Setasync)(windows_core::Interface::as_raw(self), isasync.param().abi()).ok() } pub unsafe fn abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.abort)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn loadXML(&self, bstrxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.loadXML)(windows_core::Interface::as_raw(self), bstrxml.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.loadXML)(windows_core::Interface::as_raw(self), bstrxml.param().abi(), &mut result__).map(|| result__) } pub unsafe fn save(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.save)(windows_core::Interface::as_raw(self), destination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.save)(windows_core::Interface::as_raw(self), destination.param().abi()).ok() } pub unsafe fn validateOnParse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5402,9 +5402,9 @@ impl IXMLDOMDocument3 { } pub unsafe fn SetvalidateOnParse(&self, isvalidating: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetvalidateOnParse)(windows_core::Interface::as_raw(self), isvalidating.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetvalidateOnParse)(windows_core::Interface::as_raw(self), isvalidating.param().abi()).ok() } pub unsafe fn resolveExternals(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5412,9 +5412,9 @@ impl IXMLDOMDocument3 { } pub unsafe fn SetresolveExternals(&self, isresolving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetresolveExternals)(windows_core::Interface::as_raw(self), isresolving.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetresolveExternals)(windows_core::Interface::as_raw(self), isresolving.param().abi()).ok() } pub unsafe fn preserveWhiteSpace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5422,27 +5422,27 @@ impl IXMLDOMDocument3 { } pub unsafe fn SetpreserveWhiteSpace(&self, ispreserving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), ispreserving.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetpreserveWhiteSpace)(windows_core::Interface::as_raw(self), ispreserving.param().abi()).ok() } pub unsafe fn Setonreadystatechange(&self, readystatechangesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), readystatechangesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Setonreadystatechange)(windows_core::Interface::as_raw(self), readystatechangesink.param().abi()).ok() } pub unsafe fn Setondataavailable(&self, ondataavailablesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Setondataavailable)(windows_core::Interface::as_raw(self), ondataavailablesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Setondataavailable)(windows_core::Interface::as_raw(self), ondataavailablesink.param().abi()).ok() } pub unsafe fn Setontransformnode(&self, ontransformnodesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Setontransformnode)(windows_core::Interface::as_raw(self), ontransformnodesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Setontransformnode)(windows_core::Interface::as_raw(self), ontransformnodesink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn namespaces(&self) -> windows_core::Result { @@ -5455,9 +5455,9 @@ impl IXMLDOMDocument3 { } pub unsafe fn putref_schemas(&self, othercollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_schemas)(windows_core::Interface::as_raw(self), othercollection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_schemas)(windows_core::Interface::as_raw(self), othercollection.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn validate(&self) -> windows_core::Result { @@ -5466,34 +5466,34 @@ impl IXMLDOMDocument3 { } pub unsafe fn setProperty(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setProperty)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn getProperty(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getProperty)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn validateNode(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).validateNode)(windows_core::Interface::as_raw(self), node.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).validateNode)(windows_core::Interface::as_raw(self), node.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn importNode(&self, node: P0, deep: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).importNode)(windows_core::Interface::as_raw(self), node.into_param().abi(), deep.into_param().abi(), &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.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5525,9 +5525,9 @@ impl IXMLDOMDocumentFragment { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5571,36 +5571,36 @@ impl IXMLDOMDocumentFragment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5614,10 +5614,10 @@ impl IXMLDOMDocumentFragment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5629,9 +5629,9 @@ impl IXMLDOMDocumentFragment { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5648,9 +5648,9 @@ impl IXMLDOMDocumentFragment { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5658,9 +5658,9 @@ impl IXMLDOMDocumentFragment { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5669,26 +5669,26 @@ impl IXMLDOMDocumentFragment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5709,10 +5709,10 @@ impl IXMLDOMDocumentFragment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5736,9 +5736,9 @@ impl IXMLDOMDocumentType { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5782,36 +5782,36 @@ impl IXMLDOMDocumentType { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5825,10 +5825,10 @@ impl IXMLDOMDocumentType { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5840,9 +5840,9 @@ impl IXMLDOMDocumentType { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5859,9 +5859,9 @@ impl IXMLDOMDocumentType { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5869,9 +5869,9 @@ impl IXMLDOMDocumentType { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5880,26 +5880,26 @@ impl IXMLDOMDocumentType { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5920,10 +5920,10 @@ impl IXMLDOMDocumentType { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5970,9 +5970,9 @@ impl IXMLDOMElement { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6016,36 +6016,36 @@ impl IXMLDOMElement { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6059,10 +6059,10 @@ impl IXMLDOMElement { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6074,9 +6074,9 @@ impl IXMLDOMElement { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6093,9 +6093,9 @@ impl IXMLDOMElement { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6103,9 +6103,9 @@ impl IXMLDOMElement { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6114,26 +6114,26 @@ impl IXMLDOMElement { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6154,10 +6154,10 @@ impl IXMLDOMElement { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn tagName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6165,55 +6165,55 @@ impl IXMLDOMElement { } pub unsafe fn getAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn setAttribute(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn removeAttribute(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getAttributeNode(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getAttributeNode)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getAttributeNode)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn setAttributeNode(&self, domattribute: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).setAttributeNode)(windows_core::Interface::as_raw(self), domattribute.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).setAttributeNode)(windows_core::Interface::as_raw(self), domattribute.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeAttributeNode(&self, domattribute: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).removeAttributeNode)(windows_core::Interface::as_raw(self), domattribute.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).removeAttributeNode)(windows_core::Interface::as_raw(self), domattribute.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getElementsByTagName(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getElementsByTagName)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn normalize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).normalize)(windows_core::Interface::as_raw(self)).ok() @@ -6261,9 +6261,9 @@ impl IXMLDOMEntity { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6307,36 +6307,36 @@ impl IXMLDOMEntity { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6350,10 +6350,10 @@ impl IXMLDOMEntity { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6365,9 +6365,9 @@ impl IXMLDOMEntity { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6384,9 +6384,9 @@ impl IXMLDOMEntity { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6394,9 +6394,9 @@ impl IXMLDOMEntity { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6405,26 +6405,26 @@ impl IXMLDOMEntity { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6445,10 +6445,10 @@ impl IXMLDOMEntity { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn publicId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6487,9 +6487,9 @@ impl IXMLDOMEntityReference { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6533,36 +6533,36 @@ impl IXMLDOMEntityReference { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6576,10 +6576,10 @@ impl IXMLDOMEntityReference { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6591,9 +6591,9 @@ impl IXMLDOMEntityReference { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6610,9 +6610,9 @@ impl IXMLDOMEntityReference { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6620,9 +6620,9 @@ impl IXMLDOMEntityReference { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6631,26 +6631,26 @@ impl IXMLDOMEntityReference { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6671,10 +6671,10 @@ impl IXMLDOMEntityReference { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6690,11 +6690,11 @@ windows_core::imp::interface_hierarchy!(IXMLDOMImplementation, windows_core::IUn impl IXMLDOMImplementation { pub unsafe fn hasFeature(&self, feature: P0, version: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).hasFeature)(windows_core::Interface::as_raw(self), feature.into_param().abi(), version.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).hasFeature)(windows_core::Interface::as_raw(self), feature.param().abi(), version.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6712,26 +6712,26 @@ impl IXMLDOMNamedNodeMap { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getNamedItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getNamedItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getNamedItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn setNamedItem(&self, newitem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).setNamedItem)(windows_core::Interface::as_raw(self), newitem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).setNamedItem)(windows_core::Interface::as_raw(self), newitem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeNamedItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).removeNamedItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).removeNamedItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_item(&self, index: i32) -> windows_core::Result { @@ -6745,20 +6745,20 @@ impl IXMLDOMNamedNodeMap { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getQualifiedItem(&self, basename: P0, namespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getQualifiedItem)(windows_core::Interface::as_raw(self), basename.into_param().abi(), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getQualifiedItem)(windows_core::Interface::as_raw(self), basename.param().abi(), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeQualifiedItem(&self, basename: P0, namespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).removeQualifiedItem)(windows_core::Interface::as_raw(self), basename.into_param().abi(), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).removeQualifiedItem)(windows_core::Interface::as_raw(self), basename.param().abi(), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn nextNode(&self) -> windows_core::Result { @@ -6825,9 +6825,9 @@ impl IXMLDOMNode { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6871,36 +6871,36 @@ impl IXMLDOMNode { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6914,10 +6914,10 @@ impl IXMLDOMNode { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6929,9 +6929,9 @@ impl IXMLDOMNode { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6948,9 +6948,9 @@ impl IXMLDOMNode { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6958,9 +6958,9 @@ impl IXMLDOMNode { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6969,26 +6969,26 @@ impl IXMLDOMNode { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7009,10 +7009,10 @@ impl IXMLDOMNode { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7170,9 +7170,9 @@ impl IXMLDOMNotation { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7216,36 +7216,36 @@ impl IXMLDOMNotation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7259,10 +7259,10 @@ impl IXMLDOMNotation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7274,9 +7274,9 @@ impl IXMLDOMNotation { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7293,9 +7293,9 @@ impl IXMLDOMNotation { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7303,9 +7303,9 @@ impl IXMLDOMNotation { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7314,26 +7314,26 @@ impl IXMLDOMNotation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7354,10 +7354,10 @@ impl IXMLDOMNotation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn publicId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7546,9 +7546,9 @@ impl IXMLDOMProcessingInstruction { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7592,36 +7592,36 @@ impl IXMLDOMProcessingInstruction { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7635,10 +7635,10 @@ impl IXMLDOMProcessingInstruction { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7650,9 +7650,9 @@ impl IXMLDOMProcessingInstruction { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7669,9 +7669,9 @@ impl IXMLDOMProcessingInstruction { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7679,9 +7679,9 @@ impl IXMLDOMProcessingInstruction { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7690,26 +7690,26 @@ impl IXMLDOMProcessingInstruction { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7730,10 +7730,10 @@ impl IXMLDOMProcessingInstruction { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn target(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7745,9 +7745,9 @@ impl IXMLDOMProcessingInstruction { } pub unsafe fn Setdata(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setdata)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setdata)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7766,24 +7766,24 @@ windows_core::imp::interface_hierarchy!(IXMLDOMSchemaCollection, windows_core::I impl IXMLDOMSchemaCollection { pub unsafe fn add(&self, namespaceuri: P0, var: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).add)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi(), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).add)(windows_core::Interface::as_raw(self), namespaceuri.param().abi(), var.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get(&self, namespaceuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get)(windows_core::Interface::as_raw(self), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn remove(&self, namespaceuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), namespaceuri.param().abi()).ok() } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7796,9 +7796,9 @@ impl IXMLDOMSchemaCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn addCollection(&self, othercollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addCollection)(windows_core::Interface::as_raw(self), othercollection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addCollection)(windows_core::Interface::as_raw(self), othercollection.param().abi()).ok() } pub unsafe fn _newEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7831,24 +7831,24 @@ windows_core::imp::interface_hierarchy!(IXMLDOMSchemaCollection2, windows_core:: impl IXMLDOMSchemaCollection2 { pub unsafe fn add(&self, namespaceuri: P0, var: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.add)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi(), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.add)(windows_core::Interface::as_raw(self), namespaceuri.param().abi(), var.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get(&self, namespaceuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get)(windows_core::Interface::as_raw(self), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn remove(&self, namespaceuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.remove)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.remove)(windows_core::Interface::as_raw(self), namespaceuri.param().abi()).ok() } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7861,9 +7861,9 @@ impl IXMLDOMSchemaCollection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn addCollection(&self, othercollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.addCollection)(windows_core::Interface::as_raw(self), othercollection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.addCollection)(windows_core::Interface::as_raw(self), othercollection.param().abi()).ok() } pub unsafe fn _newEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7874,9 +7874,9 @@ impl IXMLDOMSchemaCollection2 { } pub unsafe fn SetvalidateOnLoad(&self, validateonload: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetvalidateOnLoad)(windows_core::Interface::as_raw(self), validateonload.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetvalidateOnLoad)(windows_core::Interface::as_raw(self), validateonload.param().abi()).ok() } pub unsafe fn validateOnLoad(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7885,18 +7885,18 @@ impl IXMLDOMSchemaCollection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getSchema(&self, namespaceuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getSchema)(windows_core::Interface::as_raw(self), namespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getSchema)(windows_core::Interface::as_raw(self), namespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getDeclaration(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getDeclaration)(windows_core::Interface::as_raw(self), node.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getDeclaration)(windows_core::Interface::as_raw(self), node.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7948,9 +7948,9 @@ impl IXMLDOMSelection { } pub unsafe fn Setexpr(&self, expression: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setexpr)(windows_core::Interface::as_raw(self), expression.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setexpr)(windows_core::Interface::as_raw(self), expression.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn context(&self) -> windows_core::Result { @@ -7960,9 +7960,9 @@ impl IXMLDOMSelection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_context(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_context)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_context)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn peekNode(&self) -> windows_core::Result { @@ -7972,10 +7972,10 @@ impl IXMLDOMSelection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn matches(&self, pnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).matches)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).matches)(windows_core::Interface::as_raw(self), pnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeNext(&self) -> windows_core::Result { @@ -7992,17 +7992,17 @@ impl IXMLDOMSelection { } pub unsafe fn getProperty(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getProperty)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn setProperty(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setProperty)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8055,9 +8055,9 @@ impl IXMLDOMText { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8101,36 +8101,36 @@ impl IXMLDOMText { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8144,10 +8144,10 @@ impl IXMLDOMText { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8159,9 +8159,9 @@ impl IXMLDOMText { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8178,9 +8178,9 @@ impl IXMLDOMText { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8188,9 +8188,9 @@ impl IXMLDOMText { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8199,26 +8199,26 @@ impl IXMLDOMText { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8239,10 +8239,10 @@ impl IXMLDOMText { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } pub unsafe fn data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8250,9 +8250,9 @@ impl IXMLDOMText { } pub unsafe fn Setdata(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setdata)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setdata)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8264,24 +8264,24 @@ impl IXMLDOMText { } pub unsafe fn appendData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.appendData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.appendData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn insertData(&self, offset: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.insertData)(windows_core::Interface::as_raw(self), offset, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.insertData)(windows_core::Interface::as_raw(self), offset, data.param().abi()).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.deleteData)(windows_core::Interface::as_raw(self), offset, count).ok() } pub unsafe fn replaceData(&self, offset: i32, count: i32, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.replaceData)(windows_core::Interface::as_raw(self), offset, count, data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.replaceData)(windows_core::Interface::as_raw(self), offset, count, data.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn splitText(&self, offset: i32) -> windows_core::Result { @@ -8312,9 +8312,9 @@ impl IXMLDSOControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXMLDocument(&self, ppdoc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetXMLDocument)(windows_core::Interface::as_raw(self), ppdoc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetXMLDocument)(windows_core::Interface::as_raw(self), ppdoc.param().abi()).ok() } pub unsafe fn JavaDSOCompatible(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8322,9 +8322,9 @@ impl IXMLDSOControl { } pub unsafe fn SetJavaDSOCompatible(&self, fjavadsocompatible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetJavaDSOCompatible)(windows_core::Interface::as_raw(self), fjavadsocompatible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetJavaDSOCompatible)(windows_core::Interface::as_raw(self), fjavadsocompatible.param().abi()).ok() } pub unsafe fn readyState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8376,9 +8376,9 @@ impl IXMLDocument { } pub unsafe fn SetURL(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } pub unsafe fn mimeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8394,9 +8394,9 @@ impl IXMLDocument { } pub unsafe fn Setcharset(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setcharset)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setcharset)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } pub unsafe fn version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8413,11 +8413,11 @@ impl IXMLDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn createElement(&self, vtype: P0, var1: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createElement)(windows_core::Interface::as_raw(self), vtype.into_param().abi(), var1.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createElement)(windows_core::Interface::as_raw(self), vtype.param().abi(), var1.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8474,9 +8474,9 @@ impl IXMLDocument2 { } pub unsafe fn SetURL(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } pub unsafe fn mimeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8492,9 +8492,9 @@ impl IXMLDocument2 { } pub unsafe fn Setcharset(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setcharset)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setcharset)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } pub unsafe fn version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8511,11 +8511,11 @@ impl IXMLDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn createElement(&self, vtype: P0, var1: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createElement)(windows_core::Interface::as_raw(self), vtype.into_param().abi(), var1.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createElement)(windows_core::Interface::as_raw(self), vtype.param().abi(), var1.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn r#async(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8523,9 +8523,9 @@ impl IXMLDocument2 { } pub unsafe fn Setasync(&self, f: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), f.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setasync)(windows_core::Interface::as_raw(self), f.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8567,9 +8567,9 @@ impl IXMLElement { } pub unsafe fn SettagName(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SettagName)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SettagName)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn parent(&self) -> windows_core::Result { @@ -8578,23 +8578,23 @@ impl IXMLElement { } pub unsafe fn setAttribute(&self, strpropertyname: P0, propertyvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), propertyvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), propertyvalue.param().abi()).ok() } pub unsafe fn getAttribute(&self, strpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn removeAttribute(&self, strpropertyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), strpropertyname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn children(&self) -> windows_core::Result { @@ -8611,23 +8611,23 @@ impl IXMLElement { } pub unsafe fn Settext(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Settext)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Settext)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn addChild(&self, pchildelem: P0, lindex: i32, lreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.into_param().abi(), lindex, lreserved).ok() + (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi(), lindex, lreserved).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, pchildelem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeChild)(windows_core::Interface::as_raw(self), pchildelem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8671,9 +8671,9 @@ impl IXMLElement2 { } pub unsafe fn SettagName(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SettagName)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SettagName)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn parent(&self) -> windows_core::Result { @@ -8682,23 +8682,23 @@ impl IXMLElement2 { } pub unsafe fn setAttribute(&self, strpropertyname: P0, propertyvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), propertyvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), propertyvalue.param().abi()).ok() } pub unsafe fn getAttribute(&self, strpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn removeAttribute(&self, strpropertyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), strpropertyname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn children(&self) -> windows_core::Result { @@ -8715,23 +8715,23 @@ impl IXMLElement2 { } pub unsafe fn Settext(&self, p: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Settext)(windows_core::Interface::as_raw(self), p.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Settext)(windows_core::Interface::as_raw(self), p.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn addChild(&self, pchildelem: P0, lindex: i32, lreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.into_param().abi(), lindex, lreserved).ok() + (windows_core::Interface::vtable(self).addChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi(), lindex, lreserved).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, pchildelem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeChild)(windows_core::Interface::as_raw(self), pchildelem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeChild)(windows_core::Interface::as_raw(self), pchildelem.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn attributes(&self) -> windows_core::Result { @@ -8792,11 +8792,11 @@ impl IXMLElementCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn item(&self, var1: P0, var2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), var1.into_param().abi(), var2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).item)(windows_core::Interface::as_raw(self), var1.param().abi(), var2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -8831,27 +8831,27 @@ windows_core::imp::interface_hierarchy!(IXMLHTTPRequest, windows_core::IUnknown, impl IXMLHTTPRequest { pub unsafe fn open(&self, bstrmethod: P0, bstrurl: P1, varasync: P2, bstruser: P3, bstrpassword: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).open)(windows_core::Interface::as_raw(self), bstrmethod.into_param().abi(), bstrurl.into_param().abi(), varasync.into_param().abi(), bstruser.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).open)(windows_core::Interface::as_raw(self), bstrmethod.param().abi(), bstrurl.param().abi(), varasync.param().abi(), bstruser.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn setRequestHeader(&self, bstrheader: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setRequestHeader)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setRequestHeader)(windows_core::Interface::as_raw(self), bstrheader.param().abi(), bstrvalue.param().abi()).ok() } pub unsafe fn getResponseHeader(&self, bstrheader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getResponseHeader)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getResponseHeader)(windows_core::Interface::as_raw(self), bstrheader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getAllResponseHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8859,9 +8859,9 @@ impl IXMLHTTPRequest { } pub unsafe fn send(&self, varbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).send)(windows_core::Interface::as_raw(self), varbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).send)(windows_core::Interface::as_raw(self), varbody.param().abi()).ok() } pub unsafe fn abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).abort)(windows_core::Interface::as_raw(self)).ok() @@ -8898,9 +8898,9 @@ impl IXMLHTTPRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Setonreadystatechange(&self, preadystatesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setonreadystatechange)(windows_core::Interface::as_raw(self), preadystatesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setonreadystatechange)(windows_core::Interface::as_raw(self), preadystatesink.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8933,22 +8933,22 @@ windows_core::imp::interface_hierarchy!(IXMLHTTPRequest2, windows_core::IUnknown impl IXMLHTTPRequest2 { pub unsafe fn Open(&self, pwszmethod: P0, pwszurl: P1, pstatuscallback: P2, pwszusername: P3, pwszpassword: P4, pwszproxyusername: P5, pwszproxypassword: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszmethod.into_param().abi(), pwszurl.into_param().abi(), pstatuscallback.into_param().abi(), pwszusername.into_param().abi(), pwszpassword.into_param().abi(), pwszproxyusername.into_param().abi(), pwszproxypassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszmethod.param().abi(), pwszurl.param().abi(), pstatuscallback.param().abi(), pwszusername.param().abi(), pwszpassword.param().abi(), pwszproxyusername.param().abi(), pwszproxypassword.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Send(&self, pbody: P0, cbbody: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), pbody.into_param().abi(), 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() @@ -8960,19 +8960,19 @@ impl IXMLHTTPRequest2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCustomResponseStream(&self, psequentialstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCustomResponseStream)(windows_core::Interface::as_raw(self), psequentialstream.into_param().abi()).ok() + (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), eproperty, ullvalue).ok() } pub unsafe fn SetRequestHeader(&self, pwszheader: P0, pwszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestHeader)(windows_core::Interface::as_raw(self), pwszheader.into_param().abi(), pwszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestHeader)(windows_core::Interface::as_raw(self), pwszheader.param().abi(), pwszvalue.param().abi()).ok() } pub unsafe fn GetAllResponseHeaders(&self) -> windows_core::Result<*mut u16> { let mut result__ = std::mem::zeroed(); @@ -8980,17 +8980,17 @@ impl IXMLHTTPRequest2 { } pub unsafe fn GetCookie(&self, pwszurl: P0, pwszname: P1, dwflags: u32, pccookies: *mut u32, ppcookies: *mut *mut XHR_COOKIE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCookie)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pwszname.into_param().abi(), dwflags, pccookies, ppcookies).ok() + (windows_core::Interface::vtable(self).GetCookie)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pwszname.param().abi(), dwflags, pccookies, ppcookies).ok() } pub unsafe fn GetResponseHeader(&self, pwszheader: P0) -> windows_core::Result<*mut u16> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResponseHeader)(windows_core::Interface::as_raw(self), pwszheader.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetResponseHeader)(windows_core::Interface::as_raw(self), pwszheader.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -9018,39 +9018,39 @@ windows_core::imp::interface_hierarchy!(IXMLHTTPRequest2Callback, windows_core:: impl IXMLHTTPRequest2Callback { pub unsafe fn OnRedirect(&self, pxhr: P0, pwszredirecturl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRedirect)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), pwszredirecturl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRedirect)(windows_core::Interface::as_raw(self), pxhr.param().abi(), pwszredirecturl.param().abi()).ok() } pub unsafe fn OnHeadersAvailable(&self, pxhr: P0, dwstatus: u32, pwszstatus: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnHeadersAvailable)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), dwstatus, pwszstatus.into_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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDataAvailable)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), presponsestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDataAvailable)(windows_core::Interface::as_raw(self), pxhr.param().abi(), presponsestream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnResponseReceived(&self, pxhr: P0, presponsestream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResponseReceived)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), presponsestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnResponseReceived)(windows_core::Interface::as_raw(self), pxhr.param().abi(), presponsestream.param().abi()).ok() } pub unsafe fn OnError(&self, pxhr: P0, hrerror: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), hrerror).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), pxhr.param().abi(), hrerror).ok() } } #[repr(C)] @@ -9073,22 +9073,22 @@ windows_core::imp::interface_hierarchy!(IXMLHTTPRequest3, windows_core::IUnknown impl IXMLHTTPRequest3 { pub unsafe fn Open(&self, pwszmethod: P0, pwszurl: P1, pstatuscallback: P2, pwszusername: P3, pwszpassword: P4, pwszproxyusername: P5, pwszproxypassword: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszmethod.into_param().abi(), pwszurl.into_param().abi(), pstatuscallback.into_param().abi(), pwszusername.into_param().abi(), pwszpassword.into_param().abi(), pwszproxyusername.into_param().abi(), pwszproxypassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszmethod.param().abi(), pwszurl.param().abi(), pstatuscallback.param().abi(), pwszusername.param().abi(), pwszpassword.param().abi(), pwszproxyusername.param().abi(), pwszproxypassword.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Send(&self, pbody: P0, cbbody: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Send)(windows_core::Interface::as_raw(self), pbody.into_param().abi(), cbbody).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Abort)(windows_core::Interface::as_raw(self)).ok() @@ -9100,19 +9100,19 @@ impl IXMLHTTPRequest3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCustomResponseStream(&self, psequentialstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCustomResponseStream)(windows_core::Interface::as_raw(self), psequentialstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetProperty)(windows_core::Interface::as_raw(self), eproperty, ullvalue).ok() } pub unsafe fn SetRequestHeader(&self, pwszheader: P0, pwszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequestHeader)(windows_core::Interface::as_raw(self), pwszheader.into_param().abi(), pwszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequestHeader)(windows_core::Interface::as_raw(self), pwszheader.param().abi(), pwszvalue.param().abi()).ok() } pub unsafe fn GetAllResponseHeaders(&self) -> windows_core::Result<*mut u16> { let mut result__ = std::mem::zeroed(); @@ -9120,23 +9120,23 @@ impl IXMLHTTPRequest3 { } pub unsafe fn GetCookie(&self, pwszurl: P0, pwszname: P1, dwflags: u32, pccookies: *mut u32, ppcookies: *mut *mut XHR_COOKIE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetCookie)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pwszname.into_param().abi(), dwflags, pccookies, ppcookies).ok() + (windows_core::Interface::vtable(self).base__.GetCookie)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pwszname.param().abi(), dwflags, pccookies, ppcookies).ok() } pub unsafe fn GetResponseHeader(&self, pwszheader: P0) -> windows_core::Result<*mut u16> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetResponseHeader)(windows_core::Interface::as_raw(self), pwszheader.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetResponseHeader)(windows_core::Interface::as_raw(self), pwszheader.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetClientCertificate(&self, pbclientcertificatehash: &[u8], pwszpin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificate)(windows_core::Interface::as_raw(self), pbclientcertificatehash.len().try_into().unwrap(), core::mem::transmute(pbclientcertificatehash.as_ptr()), pwszpin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientCertificate)(windows_core::Interface::as_raw(self), pbclientcertificatehash.len().try_into().unwrap(), core::mem::transmute(pbclientcertificatehash.as_ptr()), pwszpin.param().abi()).ok() } } #[repr(C)] @@ -9149,51 +9149,51 @@ windows_core::imp::interface_hierarchy!(IXMLHTTPRequest3Callback, windows_core:: impl IXMLHTTPRequest3Callback { pub unsafe fn OnRedirect(&self, pxhr: P0, pwszredirecturl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnRedirect)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), pwszredirecturl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnRedirect)(windows_core::Interface::as_raw(self), pxhr.param().abi(), pwszredirecturl.param().abi()).ok() } pub unsafe fn OnHeadersAvailable(&self, pxhr: P0, dwstatus: u32, pwszstatus: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnHeadersAvailable)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), dwstatus, pwszstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnDataAvailable)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), presponsestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnDataAvailable)(windows_core::Interface::as_raw(self), pxhr.param().abi(), presponsestream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnResponseReceived(&self, pxhr: P0, presponsestream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnResponseReceived)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), presponsestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnResponseReceived)(windows_core::Interface::as_raw(self), pxhr.param().abi(), presponsestream.param().abi()).ok() } pub unsafe fn OnError(&self, pxhr: P0, hrerror: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnError)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), hrerror).ok() + (windows_core::Interface::vtable(self).base__.OnError)(windows_core::Interface::as_raw(self), pxhr.param().abi(), hrerror).ok() } pub unsafe fn OnServerCertificateReceived(&self, pxhr: P0, dwcertificateerrors: u32, rgservercertificatechain: &[XHR_CERT]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnServerCertificateReceived)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnClientCertificateRequested)(windows_core::Interface::as_raw(self), pxhr.into_param().abi(), rgpwszissuerlist.len().try_into().unwrap(), core::mem::transmute(rgpwszissuerlist.as_ptr())).ok() + (windows_core::Interface::vtable(self).OnClientCertificateRequested)(windows_core::Interface::as_raw(self), pxhr.param().abi(), rgpwszissuerlist.len().try_into().unwrap(), core::mem::transmute(rgpwszissuerlist.as_ptr())).ok() } } #[repr(C)] @@ -9210,9 +9210,9 @@ windows_core::imp::interface_hierarchy!(IXSLProcessor, windows_core::IUnknown, s impl IXSLProcessor { pub unsafe fn Setinput(&self, var: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setinput)(windows_core::Interface::as_raw(self), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setinput)(windows_core::Interface::as_raw(self), var.param().abi()).ok() } pub unsafe fn input(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9225,10 +9225,10 @@ impl IXSLProcessor { } pub unsafe fn setStartMode(&self, mode: P0, namespaceuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setStartMode)(windows_core::Interface::as_raw(self), mode.into_param().abi(), namespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setStartMode)(windows_core::Interface::as_raw(self), mode.param().abi(), namespaceuri.param().abi()).ok() } pub unsafe fn startMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9240,9 +9240,9 @@ impl IXSLProcessor { } pub unsafe fn Setoutput(&self, output: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setoutput)(windows_core::Interface::as_raw(self), output.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setoutput)(windows_core::Interface::as_raw(self), output.param().abi()).ok() } pub unsafe fn output(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9261,19 +9261,19 @@ impl IXSLProcessor { } pub unsafe fn addParameter(&self, basename: P0, parameter: P1, namespaceuri: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).addParameter)(windows_core::Interface::as_raw(self), basename.into_param().abi(), parameter.into_param().abi(), namespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addParameter)(windows_core::Interface::as_raw(self), basename.param().abi(), parameter.param().abi(), namespaceuri.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn addObject(&self, obj: P0, namespaceuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addObject)(windows_core::Interface::as_raw(self), obj.into_param().abi(), namespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addObject)(windows_core::Interface::as_raw(self), obj.param().abi(), namespaceuri.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn stylesheet(&self) -> windows_core::Result { @@ -9318,9 +9318,9 @@ impl IXSLTemplate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_stylesheet(&self, stylesheet: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_stylesheet)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_stylesheet)(windows_core::Interface::as_raw(self), stylesheet.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn stylesheet(&self) -> windows_core::Result { @@ -9366,9 +9366,9 @@ impl IXTLRuntime { } pub unsafe fn SetnodeValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn nodeType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9412,36 +9412,36 @@ impl IXTLRuntime { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertBefore(&self, newchild: P0, refchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), refchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.insertBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), refchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn replaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.replaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeChild(&self, childnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.removeChild)(windows_core::Interface::as_raw(self), childnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendChild(&self, newchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.appendChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn hasChildNodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9455,10 +9455,10 @@ impl IXTLRuntime { #[cfg(feature = "Win32_System_Com")] pub unsafe fn cloneNode(&self, deep: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.cloneNode)(windows_core::Interface::as_raw(self), deep.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn nodeTypeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9470,9 +9470,9 @@ impl IXTLRuntime { } pub unsafe fn Settext(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settext)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn specified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9489,9 +9489,9 @@ impl IXTLRuntime { } pub unsafe fn SetnodeTypedValue(&self, typedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetnodeTypedValue)(windows_core::Interface::as_raw(self), typedvalue.param().abi()).ok() } pub unsafe fn dataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9499,9 +9499,9 @@ impl IXTLRuntime { } pub unsafe fn SetdataType(&self, datatypename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdataType)(windows_core::Interface::as_raw(self), datatypename.param().abi()).ok() } pub unsafe fn xml(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9510,26 +9510,26 @@ impl IXTLRuntime { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNode(&self, stylesheet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.transformNode)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectNodes(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectNodes)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn selectSingleNode(&self, querystring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.selectSingleNode)(windows_core::Interface::as_raw(self), querystring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn parsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9550,83 +9550,83 @@ impl IXTLRuntime { #[cfg(feature = "Win32_System_Com")] pub unsafe fn transformNodeToObject(&self, stylesheet: P0, outputobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.into_param().abi(), outputobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.transformNodeToObject)(windows_core::Interface::as_raw(self), stylesheet.param().abi(), outputobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn uniqueID(&self, pnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).uniqueID)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).uniqueID)(windows_core::Interface::as_raw(self), pnode.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn depth(&self, pnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).depth)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).depth)(windows_core::Interface::as_raw(self), pnode.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn childNumber(&self, pnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).childNumber)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).childNumber)(windows_core::Interface::as_raw(self), pnode.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ancestorChildNumber(&self, bstrnodename: P0, pnode: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ancestorChildNumber)(windows_core::Interface::as_raw(self), bstrnodename.into_param().abi(), pnode.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ancestorChildNumber)(windows_core::Interface::as_raw(self), bstrnodename.param().abi(), pnode.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn absoluteChildNumber(&self, pnode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).absoluteChildNumber)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).absoluteChildNumber)(windows_core::Interface::as_raw(self), pnode.param().abi(), &mut result__).map(|| result__) } pub unsafe fn formatIndex(&self, lindex: i32, bstrformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).formatIndex)(windows_core::Interface::as_raw(self), lindex, bstrformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).formatIndex)(windows_core::Interface::as_raw(self), lindex, bstrformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn formatNumber(&self, dblnumber: f64, bstrformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).formatNumber)(windows_core::Interface::as_raw(self), dblnumber, bstrformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).formatNumber)(windows_core::Interface::as_raw(self), dblnumber, bstrformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn formatDate(&self, vardate: P0, bstrformat: P1, vardestlocale: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).formatDate)(windows_core::Interface::as_raw(self), vardate.into_param().abi(), bstrformat.into_param().abi(), vardestlocale.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).formatDate)(windows_core::Interface::as_raw(self), vardate.param().abi(), bstrformat.param().abi(), vardestlocale.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn formatTime(&self, vartime: P0, bstrformat: P1, vardestlocale: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).formatTime)(windows_core::Interface::as_raw(self), vartime.into_param().abi(), bstrformat.into_param().abi(), vardestlocale.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).formatTime)(windows_core::Interface::as_raw(self), vartime.param().abi(), bstrformat.param().abi(), vardestlocale.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] 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 9c1defd961..e05f06a4eb 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 @@ -2,78 +2,78 @@ #[inline] pub unsafe fn CreateXmlReader(riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, pmalloc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(riid, ppvobject, pmalloc.into_param().abi()).ok() + CreateXmlReader(riid, ppvobject, pmalloc.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn CreateXmlReaderInputWithEncodingCodePage(pinputstream: P0, pmalloc: P1, nencodingcodepage: u32, fencodinghint: P2, pwszbaseuri: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateXmlReaderInputWithEncodingCodePage(pinputstream.into_param().abi(), pmalloc.into_param().abi(), nencodingcodepage, fencodinghint.into_param().abi(), pwszbaseuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateXmlReaderInputWithEncodingCodePage(pinputstream.param().abi(), pmalloc.param().abi(), nencodingcodepage, fencodinghint.param().abi(), pwszbaseuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn CreateXmlReaderInputWithEncodingName(pinputstream: P0, pmalloc: P1, pwszencodingname: P2, fencodinghint: P3, pwszbaseuri: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("xmllite.dll" "system" fn CreateXmlReaderInputWithEncodingName(pinputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, pwszencodingname : windows_core::PCWSTR, fencodinghint : super::super::super::Foundation:: BOOL, pwszbaseuri : windows_core::PCWSTR, ppinput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateXmlReaderInputWithEncodingName(pinputstream.into_param().abi(), pmalloc.into_param().abi(), pwszencodingname.into_param().abi(), fencodinghint.into_param().abi(), pwszbaseuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateXmlReaderInputWithEncodingName(pinputstream.param().abi(), pmalloc.param().abi(), pwszencodingname.param().abi(), fencodinghint.param().abi(), pwszbaseuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn CreateXmlWriter(riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, pmalloc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(riid, ppvobject, pmalloc.into_param().abi()).ok() + CreateXmlWriter(riid, ppvobject, pmalloc.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn CreateXmlWriterOutputWithEncodingCodePage(poutputstream: P0, pmalloc: P1, nencodingcodepage: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateXmlWriterOutputWithEncodingCodePage(poutputstream.into_param().abi(), pmalloc.into_param().abi(), 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] pub unsafe fn CreateXmlWriterOutputWithEncodingName(poutputstream: P0, pmalloc: P1, pwszencodingname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("xmllite.dll" "system" fn CreateXmlWriterOutputWithEncodingName(poutputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, pwszencodingname : windows_core::PCWSTR, ppoutput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateXmlWriterOutputWithEncodingName(poutputstream.into_param().abi(), pmalloc.into_param().abi(), pwszencodingname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateXmlWriterOutputWithEncodingName(poutputstream.param().abi(), pmalloc.param().abi(), pwszencodingname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } windows_core::imp::define_interface!(IXmlReader, IXmlReader_Vtbl, 0x7279fc81_709d_4095_b63d_69fe4b0d9030); windows_core::imp::interface_hierarchy!(IXmlReader, windows_core::IUnknown); impl IXmlReader { pub unsafe fn SetInput(&self, pinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), pinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), pinput.param().abi()).ok() } pub unsafe fn GetProperty(&self, nproperty: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -97,10 +97,10 @@ impl IXmlReader { } pub unsafe fn MoveToAttributeByName(&self, pwszlocalname: P0, pwsznamespaceuri: P1) -> windows_core::HRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveToAttributeByName)(windows_core::Interface::as_raw(self), pwszlocalname.into_param().abi(), pwsznamespaceuri.into_param().abi()) + (windows_core::Interface::vtable(self).MoveToAttributeByName)(windows_core::Interface::as_raw(self), pwszlocalname.param().abi(), pwsznamespaceuri.param().abi()) } pub unsafe fn MoveToElement(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MoveToElement)(windows_core::Interface::as_raw(self)).ok() @@ -184,12 +184,12 @@ windows_core::imp::interface_hierarchy!(IXmlResolver, windows_core::IUnknown); impl IXmlResolver { pub unsafe fn ResolveUri(&self, pwszbaseuri: P0, pwszpublicidentifier: P1, pwszsystemidentifier: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ResolveUri)(windows_core::Interface::as_raw(self), pwszbaseuri.into_param().abi(), pwszpublicidentifier.into_param().abi(), pwszsystemidentifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ResolveUri)(windows_core::Interface::as_raw(self), pwszbaseuri.param().abi(), pwszpublicidentifier.param().abi(), pwszsystemidentifier.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -202,9 +202,9 @@ windows_core::imp::interface_hierarchy!(IXmlWriter, windows_core::IUnknown); impl IXmlWriter { pub unsafe fn SetOutput(&self, poutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), poutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), poutput.param().abi()).ok() } pub unsafe fn GetProperty(&self, nproperty: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -215,25 +215,25 @@ impl IXmlWriter { } pub unsafe fn WriteAttributes(&self, preader: P0, fwritedefaultattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteAttributes)(windows_core::Interface::as_raw(self), preader.into_param().abi(), fwritedefaultattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteAttributes)(windows_core::Interface::as_raw(self), preader.param().abi(), fwritedefaultattributes.param().abi()).ok() } pub unsafe fn WriteAttributeString(&self, pwszprefix: P0, pwszlocalname: P1, pwsznamespaceuri: P2, pwszvalue: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteAttributeString)(windows_core::Interface::as_raw(self), pwszprefix.into_param().abi(), pwszlocalname.into_param().abi(), pwsznamespaceuri.into_param().abi(), pwszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteAttributeString)(windows_core::Interface::as_raw(self), pwszprefix.param().abi(), pwszlocalname.param().abi(), pwsznamespaceuri.param().abi(), pwszvalue.param().abi()).ok() } pub unsafe fn WriteCData(&self, pwsztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteCData)(windows_core::Interface::as_raw(self), pwsztext.into_param().abi()).ok() + (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), wch).ok() @@ -243,27 +243,27 @@ impl IXmlWriter { } pub unsafe fn WriteComment(&self, pwszcomment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteComment)(windows_core::Interface::as_raw(self), pwszcomment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteComment)(windows_core::Interface::as_raw(self), pwszcomment.param().abi()).ok() } pub unsafe fn WriteDocType(&self, pwszname: P0, pwszpublicid: P1, pwszsystemid: P2, pwszsubset: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDocType)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), pwszpublicid.into_param().abi(), pwszsystemid.into_param().abi(), pwszsubset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDocType)(windows_core::Interface::as_raw(self), pwszname.param().abi(), pwszpublicid.param().abi(), pwszsystemid.param().abi(), pwszsubset.param().abi()).ok() } pub unsafe fn WriteElementString(&self, pwszprefix: P0, pwszlocalname: P1, pwsznamespaceuri: P2, pwszvalue: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteElementString)(windows_core::Interface::as_raw(self), pwszprefix.into_param().abi(), pwszlocalname.into_param().abi(), pwsznamespaceuri.into_param().abi(), pwszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteElementString)(windows_core::Interface::as_raw(self), pwszprefix.param().abi(), pwszlocalname.param().abi(), pwsznamespaceuri.param().abi(), pwszvalue.param().abi()).ok() } pub unsafe fn WriteEndDocument(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteEndDocument)(windows_core::Interface::as_raw(self)).ok() @@ -273,58 +273,58 @@ impl IXmlWriter { } pub unsafe fn WriteEntityRef(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEntityRef)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteEntityRef)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn WriteFullEndElement(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteFullEndElement)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteName(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteName)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteName)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn WriteNmToken(&self, pwsznmtoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteNmToken)(windows_core::Interface::as_raw(self), pwsznmtoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteNmToken)(windows_core::Interface::as_raw(self), pwsznmtoken.param().abi()).ok() } pub unsafe fn WriteNode(&self, preader: P0, fwritedefaultattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteNode)(windows_core::Interface::as_raw(self), preader.into_param().abi(), fwritedefaultattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteNode)(windows_core::Interface::as_raw(self), preader.param().abi(), fwritedefaultattributes.param().abi()).ok() } pub unsafe fn WriteNodeShallow(&self, preader: P0, fwritedefaultattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteNodeShallow)(windows_core::Interface::as_raw(self), preader.into_param().abi(), fwritedefaultattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteNodeShallow)(windows_core::Interface::as_raw(self), preader.param().abi(), fwritedefaultattributes.param().abi()).ok() } pub unsafe fn WriteProcessingInstruction(&self, pwszname: P0, pwsztext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteProcessingInstruction)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), pwsztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteProcessingInstruction)(windows_core::Interface::as_raw(self), pwszname.param().abi(), pwsztext.param().abi()).ok() } pub unsafe fn WriteQualifiedName(&self, pwszlocalname: P0, pwsznamespaceuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteQualifiedName)(windows_core::Interface::as_raw(self), pwszlocalname.into_param().abi(), pwsznamespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteQualifiedName)(windows_core::Interface::as_raw(self), pwszlocalname.param().abi(), pwsznamespaceuri.param().abi()).ok() } pub unsafe fn WriteRaw(&self, pwszdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteRaw)(windows_core::Interface::as_raw(self), pwszdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteRaw)(windows_core::Interface::as_raw(self), pwszdata.param().abi()).ok() } pub unsafe fn WriteRawChars(&self, pwch: Option<&[u16]>) -> windows_core::Result<()> { (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() @@ -334,26 +334,26 @@ impl IXmlWriter { } pub unsafe fn WriteStartElement(&self, pwszprefix: P0, pwszlocalname: P1, pwsznamespaceuri: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStartElement)(windows_core::Interface::as_raw(self), pwszprefix.into_param().abi(), pwszlocalname.into_param().abi(), pwsznamespaceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteStartElement)(windows_core::Interface::as_raw(self), pwszprefix.param().abi(), pwszlocalname.param().abi(), pwsznamespaceuri.param().abi()).ok() } pub unsafe fn WriteString(&self, pwsztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteString)(windows_core::Interface::as_raw(self), pwsztext.into_param().abi()).ok() + (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), wchlow, wchhigh).ok() } pub unsafe fn WriteWhitespace(&self, pwszwhitespace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteWhitespace)(windows_core::Interface::as_raw(self), pwszwhitespace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteWhitespace)(windows_core::Interface::as_raw(self), pwszwhitespace.param().abi()).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() @@ -397,9 +397,9 @@ windows_core::imp::interface_hierarchy!(IXmlWriterLite, windows_core::IUnknown); impl IXmlWriterLite { pub unsafe fn SetOutput(&self, poutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), poutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), poutput.param().abi()).ok() } pub unsafe fn GetProperty(&self, nproperty: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -410,19 +410,19 @@ impl IXmlWriterLite { } pub unsafe fn WriteAttributes(&self, preader: P0, fwritedefaultattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteAttributes)(windows_core::Interface::as_raw(self), preader.into_param().abi(), fwritedefaultattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteAttributes)(windows_core::Interface::as_raw(self), preader.param().abi(), fwritedefaultattributes.param().abi()).ok() } pub unsafe fn WriteAttributeString(&self, pwszqname: &[u16], pwszvalue: Option<&[u16]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteAttributeString)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszqname.as_ptr()), pwszqname.len().try_into().unwrap(), core::mem::transmute(pwszvalue.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pwszvalue.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn WriteCData(&self, pwsztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteCData)(windows_core::Interface::as_raw(self), pwsztext.into_param().abi()).ok() + (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), wch).ok() @@ -432,24 +432,24 @@ impl IXmlWriterLite { } pub unsafe fn WriteComment(&self, pwszcomment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteComment)(windows_core::Interface::as_raw(self), pwszcomment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteComment)(windows_core::Interface::as_raw(self), pwszcomment.param().abi()).ok() } pub unsafe fn WriteDocType(&self, pwszname: P0, pwszpublicid: P1, pwszsystemid: P2, pwszsubset: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDocType)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), pwszpublicid.into_param().abi(), pwszsystemid.into_param().abi(), pwszsubset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteDocType)(windows_core::Interface::as_raw(self), pwszname.param().abi(), pwszpublicid.param().abi(), pwszsystemid.param().abi(), pwszsubset.param().abi()).ok() } pub unsafe fn WriteElementString(&self, pwszqname: &[u16], pwszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteElementString)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszqname.as_ptr()), pwszqname.len().try_into().unwrap(), pwszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteElementString)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszqname.as_ptr()), pwszqname.len().try_into().unwrap(), pwszvalue.param().abi()).ok() } pub unsafe fn WriteEndDocument(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteEndDocument)(windows_core::Interface::as_raw(self)).ok() @@ -459,51 +459,51 @@ impl IXmlWriterLite { } pub unsafe fn WriteEntityRef(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEntityRef)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteEntityRef)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn WriteFullEndElement(&self, pwszqname: &[u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteFullEndElement)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszqname.as_ptr()), pwszqname.len().try_into().unwrap()).ok() } pub unsafe fn WriteName(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteName)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteName)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn WriteNmToken(&self, pwsznmtoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteNmToken)(windows_core::Interface::as_raw(self), pwsznmtoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteNmToken)(windows_core::Interface::as_raw(self), pwsznmtoken.param().abi()).ok() } pub unsafe fn WriteNode(&self, preader: P0, fwritedefaultattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteNode)(windows_core::Interface::as_raw(self), preader.into_param().abi(), fwritedefaultattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteNode)(windows_core::Interface::as_raw(self), preader.param().abi(), fwritedefaultattributes.param().abi()).ok() } pub unsafe fn WriteNodeShallow(&self, preader: P0, fwritedefaultattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteNodeShallow)(windows_core::Interface::as_raw(self), preader.into_param().abi(), fwritedefaultattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteNodeShallow)(windows_core::Interface::as_raw(self), preader.param().abi(), fwritedefaultattributes.param().abi()).ok() } pub unsafe fn WriteProcessingInstruction(&self, pwszname: P0, pwsztext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteProcessingInstruction)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), pwsztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteProcessingInstruction)(windows_core::Interface::as_raw(self), pwszname.param().abi(), pwsztext.param().abi()).ok() } pub unsafe fn WriteRaw(&self, pwszdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteRaw)(windows_core::Interface::as_raw(self), pwszdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteRaw)(windows_core::Interface::as_raw(self), pwszdata.param().abi()).ok() } pub unsafe fn WriteRawChars(&self, pwch: Option<&[u16]>) -> windows_core::Result<()> { (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() @@ -516,18 +516,18 @@ impl IXmlWriterLite { } pub unsafe fn WriteString(&self, pwsztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteString)(windows_core::Interface::as_raw(self), pwsztext.into_param().abi()).ok() + (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), wchlow, wchhigh).ok() } pub unsafe fn WriteWhitespace(&self, pwszwhitespace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteWhitespace)(windows_core::Interface::as_raw(self), pwszwhitespace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteWhitespace)(windows_core::Interface::as_raw(self), pwszwhitespace.param().abi()).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() 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 6558757052..206946d347 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs @@ -1,27 +1,27 @@ #[inline] pub unsafe fn AllJoynAcceptBusConnection(serverbushandle: P0, abortevent: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn AllJoynAcceptBusConnection(serverbushandle : super::super::Foundation:: HANDLE, abortevent : super::super::Foundation:: HANDLE) -> u32); - AllJoynAcceptBusConnection(serverbushandle.into_param().abi(), abortevent.into_param().abi()) + AllJoynAcceptBusConnection(serverbushandle.param().abi(), abortevent.param().abi()) } #[inline] pub unsafe fn AllJoynCloseBusHandle(bushandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn AllJoynCloseBusHandle(bushandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AllJoynCloseBusHandle(bushandle.into_param().abi()).ok() + AllJoynCloseBusHandle(bushandle.param().abi()).ok() } #[inline] pub unsafe fn AllJoynConnectToBus(connectionspec: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn AllJoynConnectToBus(connectionspec : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = AllJoynConnectToBus(connectionspec.into_param().abi()); + let result__ = AllJoynConnectToBus(connectionspec.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -33,36 +33,36 @@ pub unsafe fn AllJoynCreateBus(outbuffersize: u32, inbuffersize: u32, lpsecurity #[inline] pub unsafe fn AllJoynEnumEvents(connectedbushandle: P0, eventtoreset: P1, eventtypes: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(connectedbushandle.into_param().abi(), eventtoreset.into_param().abi(), eventtypes).ok() + AllJoynEnumEvents(connectedbushandle.param().abi(), eventtoreset.param().abi(), eventtypes).ok() } #[inline] pub unsafe fn AllJoynEventSelect(connectedbushandle: P0, eventhandle: P1, eventtypes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(connectedbushandle.into_param().abi(), eventhandle.into_param().abi(), eventtypes).ok() + AllJoynEventSelect(connectedbushandle.param().abi(), eventhandle.param().abi(), eventtypes).ok() } #[inline] pub unsafe fn AllJoynReceiveFromBus(connectedbushandle: P0, buffer: Option<*mut core::ffi::c_void>, bytestoread: u32, bytestransferred: Option<*mut u32>, reserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(connectedbushandle.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), bytestoread, core::mem::transmute(bytestransferred.unwrap_or(std::ptr::null_mut())), reserved).ok() + AllJoynReceiveFromBus(connectedbushandle.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), bytestoread, core::mem::transmute(bytestransferred.unwrap_or(std::ptr::null_mut())), reserved).ok() } #[inline] pub unsafe fn AllJoynSendToBus(connectedbushandle: P0, buffer: Option<*const core::ffi::c_void>, bytestowrite: u32, bytestransferred: Option<*mut u32>, reserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(connectedbushandle.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null())), bytestowrite, core::mem::transmute(bytestransferred.unwrap_or(std::ptr::null_mut())), reserved).ok() + AllJoynSendToBus(connectedbushandle.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null())), bytestowrite, core::mem::transmute(bytestransferred.unwrap_or(std::ptr::null_mut())), reserved).ok() } #[inline] pub unsafe fn QCC_StatusText(status: QStatus) -> windows_core::PCSTR { @@ -72,10 +72,10 @@ pub unsafe fn QCC_StatusText(status: QStatus) -> windows_core::PCSTR { #[inline] pub unsafe fn alljoyn_aboutdata_create(defaultlanguage: P0) -> alljoyn_aboutdata where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_create(defaultlanguage : windows_core::PCSTR) -> alljoyn_aboutdata); - alljoyn_aboutdata_create(defaultlanguage.into_param().abi()) + alljoyn_aboutdata_create(defaultlanguage.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_create_empty() -> alljoyn_aboutdata { @@ -85,376 +85,376 @@ pub unsafe fn alljoyn_aboutdata_create_empty() -> alljoyn_aboutdata { #[inline] pub unsafe fn alljoyn_aboutdata_create_full(arg: P0, language: P1) -> alljoyn_aboutdata where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_create_full(arg.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_createfrommsgarg(data: P0, arg: P1, language: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(data.into_param().abi(), arg.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_createfrommsgarg(data.param().abi(), arg.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_createfromxml(data: P0, aboutdataxml: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), aboutdataxml.into_param().abi()) + alljoyn_aboutdata_createfromxml(data.param().abi(), aboutdataxml.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_destroy(data: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_destroy(data : alljoyn_aboutdata)); - alljoyn_aboutdata_destroy(data.into_param().abi()) + alljoyn_aboutdata_destroy(data.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getaboutdata(data: P0, msgarg: P1, language: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(data.into_param().abi(), msgarg.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_getaboutdata(data.param().abi(), msgarg.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getajsoftwareversion(data: P0, ajsoftwareversion: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getajsoftwareversion(data : alljoyn_aboutdata, ajsoftwareversion : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getajsoftwareversion(data.into_param().abi(), ajsoftwareversion) + alljoyn_aboutdata_getajsoftwareversion(data.param().abi(), ajsoftwareversion) } #[inline] pub unsafe fn alljoyn_aboutdata_getannouncedaboutdata(data: P0, msgarg: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getannouncedaboutdata(data : alljoyn_aboutdata, msgarg : alljoyn_msgarg) -> QStatus); - alljoyn_aboutdata_getannouncedaboutdata(data.into_param().abi(), msgarg.into_param().abi()) + alljoyn_aboutdata_getannouncedaboutdata(data.param().abi(), msgarg.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getappid(data: P0, appid: *mut *mut u8, num: *mut usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getappid(data : alljoyn_aboutdata, appid : *mut *mut u8, num : *mut usize) -> QStatus); - alljoyn_aboutdata_getappid(data.into_param().abi(), appid, num) + alljoyn_aboutdata_getappid(data.param().abi(), appid, num) } #[inline] pub unsafe fn alljoyn_aboutdata_getappname(data: P0, appname: *mut *mut i8, language: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(data.into_param().abi(), appname, language.into_param().abi()) + alljoyn_aboutdata_getappname(data.param().abi(), appname, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getdateofmanufacture(data: P0, dateofmanufacture: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdateofmanufacture(data : alljoyn_aboutdata, dateofmanufacture : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getdateofmanufacture(data.into_param().abi(), dateofmanufacture) + alljoyn_aboutdata_getdateofmanufacture(data.param().abi(), dateofmanufacture) } #[inline] pub unsafe fn alljoyn_aboutdata_getdefaultlanguage(data: P0, defaultlanguage: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdefaultlanguage(data : alljoyn_aboutdata, defaultlanguage : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getdefaultlanguage(data.into_param().abi(), defaultlanguage) + alljoyn_aboutdata_getdefaultlanguage(data.param().abi(), defaultlanguage) } #[inline] pub unsafe fn alljoyn_aboutdata_getdescription(data: P0, description: *mut *mut i8, language: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(data.into_param().abi(), description, language.into_param().abi()) + alljoyn_aboutdata_getdescription(data.param().abi(), description, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getdeviceid(data: P0, deviceid: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getdeviceid(data : alljoyn_aboutdata, deviceid : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getdeviceid(data.into_param().abi(), deviceid) + alljoyn_aboutdata_getdeviceid(data.param().abi(), deviceid) } #[inline] pub unsafe fn alljoyn_aboutdata_getdevicename(data: P0, devicename: *mut *mut i8, language: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(data.into_param().abi(), devicename, language.into_param().abi()) + alljoyn_aboutdata_getdevicename(data.param().abi(), devicename, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getfield(data: P0, name: P1, value: *mut alljoyn_msgarg, language: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(data.into_param().abi(), name.into_param().abi(), value, language.into_param().abi()) + alljoyn_aboutdata_getfield(data.param().abi(), name.param().abi(), value, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getfields(data: P0, fields: *const *const i8, num_fields: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getfields(data : alljoyn_aboutdata, fields : *const *const i8, num_fields : usize) -> usize); - alljoyn_aboutdata_getfields(data.into_param().abi(), fields, num_fields) + alljoyn_aboutdata_getfields(data.param().abi(), fields, num_fields) } #[inline] pub unsafe fn alljoyn_aboutdata_getfieldsignature(data: P0, fieldname: P1) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), fieldname.into_param().abi()) + alljoyn_aboutdata_getfieldsignature(data.param().abi(), fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_gethardwareversion(data: P0, hardwareversion: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_gethardwareversion(data : alljoyn_aboutdata, hardwareversion : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_gethardwareversion(data.into_param().abi(), hardwareversion) + alljoyn_aboutdata_gethardwareversion(data.param().abi(), hardwareversion) } #[inline] pub unsafe fn alljoyn_aboutdata_getmanufacturer(data: P0, manufacturer: *mut *mut i8, language: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(data.into_param().abi(), manufacturer, language.into_param().abi()) + alljoyn_aboutdata_getmanufacturer(data.param().abi(), manufacturer, language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_getmodelnumber(data: P0, modelnumber: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getmodelnumber(data : alljoyn_aboutdata, modelnumber : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getmodelnumber(data.into_param().abi(), modelnumber) + alljoyn_aboutdata_getmodelnumber(data.param().abi(), modelnumber) } #[inline] pub unsafe fn alljoyn_aboutdata_getsoftwareversion(data: P0, softwareversion: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getsoftwareversion(data : alljoyn_aboutdata, softwareversion : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getsoftwareversion(data.into_param().abi(), softwareversion) + alljoyn_aboutdata_getsoftwareversion(data.param().abi(), softwareversion) } #[inline] pub unsafe fn alljoyn_aboutdata_getsupportedlanguages(data: P0, languagetags: *const *const i8, num: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getsupportedlanguages(data : alljoyn_aboutdata, languagetags : *const *const i8, num : usize) -> usize); - alljoyn_aboutdata_getsupportedlanguages(data.into_param().abi(), languagetags, num) + alljoyn_aboutdata_getsupportedlanguages(data.param().abi(), languagetags, num) } #[inline] pub unsafe fn alljoyn_aboutdata_getsupporturl(data: P0, supporturl: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_getsupporturl(data : alljoyn_aboutdata, supporturl : *mut *mut i8) -> QStatus); - alljoyn_aboutdata_getsupporturl(data.into_param().abi(), supporturl) + alljoyn_aboutdata_getsupporturl(data.param().abi(), supporturl) } #[inline] pub unsafe fn alljoyn_aboutdata_isfieldannounced(data: P0, fieldname: P1) -> u8 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), fieldname.into_param().abi()) + alljoyn_aboutdata_isfieldannounced(data.param().abi(), fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_isfieldlocalized(data: P0, fieldname: P1) -> u8 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), fieldname.into_param().abi()) + alljoyn_aboutdata_isfieldlocalized(data.param().abi(), fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_isfieldrequired(data: P0, fieldname: P1) -> u8 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), fieldname.into_param().abi()) + alljoyn_aboutdata_isfieldrequired(data.param().abi(), fieldname.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_isvalid(data: P0, language: P1) -> u8 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_isvalid(data.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setappid(data: P0, appid: *const u8, num: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdata_setappid(data : alljoyn_aboutdata, appid : *const u8, num : usize) -> QStatus); - alljoyn_aboutdata_setappid(data.into_param().abi(), appid, num) + alljoyn_aboutdata_setappid(data.param().abi(), appid, num) } #[inline] pub unsafe fn alljoyn_aboutdata_setappid_fromstring(data: P0, appid: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), appid.into_param().abi()) + alljoyn_aboutdata_setappid_fromstring(data.param().abi(), appid.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setappname(data: P0, appname: P1, language: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(data.into_param().abi(), appname.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_setappname(data.param().abi(), appname.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdateofmanufacture(data: P0, dateofmanufacture: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), dateofmanufacture.into_param().abi()) + alljoyn_aboutdata_setdateofmanufacture(data.param().abi(), dateofmanufacture.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdefaultlanguage(data: P0, defaultlanguage: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), defaultlanguage.into_param().abi()) + alljoyn_aboutdata_setdefaultlanguage(data.param().abi(), defaultlanguage.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdescription(data: P0, description: P1, language: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(data.into_param().abi(), description.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_setdescription(data.param().abi(), description.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdeviceid(data: P0, deviceid: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), deviceid.into_param().abi()) + alljoyn_aboutdata_setdeviceid(data.param().abi(), deviceid.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setdevicename(data: P0, devicename: P1, language: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(data.into_param().abi(), devicename.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_setdevicename(data.param().abi(), devicename.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setfield(data: P0, name: P1, value: P2, language: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(data.into_param().abi(), name.into_param().abi(), value.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_setfield(data.param().abi(), name.param().abi(), value.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_sethardwareversion(data: P0, hardwareversion: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), hardwareversion.into_param().abi()) + alljoyn_aboutdata_sethardwareversion(data.param().abi(), hardwareversion.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setmanufacturer(data: P0, manufacturer: P1, language: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(data.into_param().abi(), manufacturer.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_setmanufacturer(data.param().abi(), manufacturer.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setmodelnumber(data: P0, modelnumber: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), modelnumber.into_param().abi()) + alljoyn_aboutdata_setmodelnumber(data.param().abi(), modelnumber.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setsoftwareversion(data: P0, softwareversion: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), softwareversion.into_param().abi()) + alljoyn_aboutdata_setsoftwareversion(data.param().abi(), softwareversion.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setsupportedlanguage(data: P0, language: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), language.into_param().abi()) + alljoyn_aboutdata_setsupportedlanguage(data.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdata_setsupporturl(data: P0, supporturl: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(data.into_param().abi(), supporturl.into_param().abi()) + alljoyn_aboutdata_setsupporturl(data.param().abi(), supporturl.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutdatalistener_create(callbacks: *const alljoyn_aboutdatalistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_aboutdatalistener { @@ -464,18 +464,18 @@ pub unsafe fn alljoyn_aboutdatalistener_create(callbacks: *const alljoyn_aboutda #[inline] pub unsafe fn alljoyn_aboutdatalistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutdatalistener_destroy(listener : alljoyn_aboutdatalistener)); - alljoyn_aboutdatalistener_destroy(listener.into_param().abi()) + alljoyn_aboutdatalistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticon_clear(icon: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_clear(icon : alljoyn_abouticon)); - alljoyn_abouticon_clear(icon.into_param().abi()) + alljoyn_abouticon_clear(icon.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticon_create() -> alljoyn_abouticon { @@ -485,105 +485,105 @@ pub unsafe fn alljoyn_abouticon_create() -> alljoyn_abouticon { #[inline] pub unsafe fn alljoyn_abouticon_destroy(icon: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_destroy(icon : alljoyn_abouticon)); - alljoyn_abouticon_destroy(icon.into_param().abi()) + alljoyn_abouticon_destroy(icon.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticon_getcontent(icon: P0, data: *const *const u8, size: *mut usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_getcontent(icon : alljoyn_abouticon, data : *const *const u8, size : *mut usize)); - alljoyn_abouticon_getcontent(icon.into_param().abi(), data, size) + alljoyn_abouticon_getcontent(icon.param().abi(), data, size) } #[inline] pub unsafe fn alljoyn_abouticon_geturl(icon: P0, r#type: *const *const i8, url: *const *const i8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(icon.into_param().abi(), r#type, url) + alljoyn_abouticon_geturl(icon.param().abi(), r#type, url) } #[inline] pub unsafe fn alljoyn_abouticon_setcontent(icon: P0, r#type: P1, data: *mut u8, csize: usize, ownsdata: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(icon.into_param().abi(), r#type.into_param().abi(), data, csize, ownsdata) + alljoyn_abouticon_setcontent(icon.param().abi(), r#type.param().abi(), data, csize, ownsdata) } #[inline] pub unsafe fn alljoyn_abouticon_setcontent_frommsgarg(icon: P0, arg: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticon_setcontent_frommsgarg(icon : alljoyn_abouticon, arg : alljoyn_msgarg) -> QStatus); - alljoyn_abouticon_setcontent_frommsgarg(icon.into_param().abi(), arg.into_param().abi()) + alljoyn_abouticon_setcontent_frommsgarg(icon.param().abi(), arg.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticon_seturl(icon: P0, r#type: P1, url: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(icon.into_param().abi(), r#type.into_param().abi(), url.into_param().abi()) + alljoyn_abouticon_seturl(icon.param().abi(), r#type.param().abi(), url.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticonobj_create(bus: P0, icon: P1) -> alljoyn_abouticonobj where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonobj_create(bus : alljoyn_busattachment, icon : alljoyn_abouticon) -> alljoyn_abouticonobj); - alljoyn_abouticonobj_create(bus.into_param().abi(), icon.into_param().abi()) + alljoyn_abouticonobj_create(bus.param().abi(), icon.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticonobj_destroy(icon: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonobj_destroy(icon : alljoyn_abouticonobj)); - alljoyn_abouticonobj_destroy(icon.into_param().abi()) + alljoyn_abouticonobj_destroy(icon.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticonproxy_create(bus: P0, busname: P1, sessionid: u32) -> alljoyn_abouticonproxy where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), busname.into_param().abi(), sessionid) + alljoyn_abouticonproxy_create(bus.param().abi(), busname.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_abouticonproxy_destroy(proxy: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonproxy_destroy(proxy : alljoyn_abouticonproxy)); - alljoyn_abouticonproxy_destroy(proxy.into_param().abi()) + alljoyn_abouticonproxy_destroy(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticonproxy_geticon(proxy: P0, icon: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonproxy_geticon(proxy : alljoyn_abouticonproxy, icon : alljoyn_abouticon) -> QStatus); - alljoyn_abouticonproxy_geticon(proxy.into_param().abi(), icon.into_param().abi()) + alljoyn_abouticonproxy_geticon(proxy.param().abi(), icon.param().abi()) } #[inline] pub unsafe fn alljoyn_abouticonproxy_getversion(proxy: P0, version: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_abouticonproxy_getversion(proxy : alljoyn_abouticonproxy, version : *mut u16) -> QStatus); - alljoyn_abouticonproxy_getversion(proxy.into_param().abi(), version) + alljoyn_abouticonproxy_getversion(proxy.param().abi(), version) } #[inline] pub unsafe fn alljoyn_aboutlistener_create(callback: *const alljoyn_aboutlistener_callback, context: *const core::ffi::c_void) -> alljoyn_aboutlistener { @@ -593,60 +593,60 @@ pub unsafe fn alljoyn_aboutlistener_create(callback: *const alljoyn_aboutlistene #[inline] pub unsafe fn alljoyn_aboutlistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutlistener_destroy(listener : alljoyn_aboutlistener)); - alljoyn_aboutlistener_destroy(listener.into_param().abi()) + alljoyn_aboutlistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobj_announce(obj: P0, sessionport: u16, aboutdata: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_announce(obj : alljoyn_aboutobj, sessionport : u16, aboutdata : alljoyn_aboutdata) -> QStatus); - alljoyn_aboutobj_announce(obj.into_param().abi(), sessionport, aboutdata.into_param().abi()) + alljoyn_aboutobj_announce(obj.param().abi(), sessionport, aboutdata.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobj_announce_using_datalistener(obj: P0, sessionport: u16, aboutlistener: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(obj.into_param().abi(), sessionport, aboutlistener.into_param().abi()) + alljoyn_aboutobj_announce_using_datalistener(obj.param().abi(), sessionport, aboutlistener.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobj_create(bus: P0, isannounced: alljoyn_about_announceflag) -> alljoyn_aboutobj where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_create(bus : alljoyn_busattachment, isannounced : alljoyn_about_announceflag) -> alljoyn_aboutobj); - alljoyn_aboutobj_create(bus.into_param().abi(), isannounced) + alljoyn_aboutobj_create(bus.param().abi(), isannounced) } #[inline] pub unsafe fn alljoyn_aboutobj_destroy(obj: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_destroy(obj : alljoyn_aboutobj)); - alljoyn_aboutobj_destroy(obj.into_param().abi()) + alljoyn_aboutobj_destroy(obj.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobj_unannounce(obj: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobj_unannounce(obj : alljoyn_aboutobj) -> QStatus); - alljoyn_aboutobj_unannounce(obj.into_param().abi()) + alljoyn_aboutobj_unannounce(obj.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_clear(description: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_clear(description : alljoyn_aboutobjectdescription)); - alljoyn_aboutobjectdescription_clear(description.into_param().abi()) + alljoyn_aboutobjectdescription_clear(description.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_create() -> alljoyn_aboutobjectdescription { @@ -656,134 +656,134 @@ pub unsafe fn alljoyn_aboutobjectdescription_create() -> alljoyn_aboutobjectdesc #[inline] pub unsafe fn alljoyn_aboutobjectdescription_create_full(arg: P0) -> alljoyn_aboutobjectdescription where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_create_full(arg : alljoyn_msgarg) -> alljoyn_aboutobjectdescription); - alljoyn_aboutobjectdescription_create_full(arg.into_param().abi()) + alljoyn_aboutobjectdescription_create_full(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_createfrommsgarg(description: P0, arg: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_createfrommsgarg(description : alljoyn_aboutobjectdescription, arg : alljoyn_msgarg) -> QStatus); - alljoyn_aboutobjectdescription_createfrommsgarg(description.into_param().abi(), arg.into_param().abi()) + alljoyn_aboutobjectdescription_createfrommsgarg(description.param().abi(), arg.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_destroy(description: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_destroy(description : alljoyn_aboutobjectdescription)); - alljoyn_aboutobjectdescription_destroy(description.into_param().abi()) + alljoyn_aboutobjectdescription_destroy(description.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getinterfacepaths(description: P0, interfacename: P1, paths: *const *const i8, numpaths: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(description.into_param().abi(), interfacename.into_param().abi(), paths, numpaths) + alljoyn_aboutobjectdescription_getinterfacepaths(description.param().abi(), interfacename.param().abi(), paths, numpaths) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getinterfaces(description: P0, path: P1, interfaces: *const *const i8, numinterfaces: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(description.into_param().abi(), path.into_param().abi(), interfaces, numinterfaces) + alljoyn_aboutobjectdescription_getinterfaces(description.param().abi(), path.param().abi(), interfaces, numinterfaces) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getmsgarg(description: P0, msgarg: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_getmsgarg(description : alljoyn_aboutobjectdescription, msgarg : alljoyn_msgarg) -> QStatus); - alljoyn_aboutobjectdescription_getmsgarg(description.into_param().abi(), msgarg.into_param().abi()) + alljoyn_aboutobjectdescription_getmsgarg(description.param().abi(), msgarg.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_getpaths(description: P0, paths: *const *const i8, numpaths: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutobjectdescription_getpaths(description : alljoyn_aboutobjectdescription, paths : *const *const i8, numpaths : usize) -> usize); - alljoyn_aboutobjectdescription_getpaths(description.into_param().abi(), paths, numpaths) + alljoyn_aboutobjectdescription_getpaths(description.param().abi(), paths, numpaths) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_hasinterface(description: P0, interfacename: P1) -> u8 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(description.into_param().abi(), interfacename.into_param().abi()) + alljoyn_aboutobjectdescription_hasinterface(description.param().abi(), interfacename.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_hasinterfaceatpath(description: P0, path: P1, interfacename: P2) -> u8 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(description.into_param().abi(), path.into_param().abi(), interfacename.into_param().abi()) + alljoyn_aboutobjectdescription_hasinterfaceatpath(description.param().abi(), path.param().abi(), interfacename.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutobjectdescription_haspath(description: P0, path: P1) -> u8 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(description.into_param().abi(), path.into_param().abi()) + alljoyn_aboutobjectdescription_haspath(description.param().abi(), path.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutproxy_create(bus: P0, busname: P1, sessionid: u32) -> alljoyn_aboutproxy where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), busname.into_param().abi(), sessionid) + alljoyn_aboutproxy_create(bus.param().abi(), busname.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_aboutproxy_destroy(proxy: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_destroy(proxy : alljoyn_aboutproxy)); - alljoyn_aboutproxy_destroy(proxy.into_param().abi()) + alljoyn_aboutproxy_destroy(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutproxy_getaboutdata(proxy: P0, language: P1, data: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(proxy.into_param().abi(), language.into_param().abi(), data.into_param().abi()) + alljoyn_aboutproxy_getaboutdata(proxy.param().abi(), language.param().abi(), data.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutproxy_getobjectdescription(proxy: P0, objectdesc: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_getobjectdescription(proxy : alljoyn_aboutproxy, objectdesc : alljoyn_msgarg) -> QStatus); - alljoyn_aboutproxy_getobjectdescription(proxy.into_param().abi(), objectdesc.into_param().abi()) + alljoyn_aboutproxy_getobjectdescription(proxy.param().abi(), objectdesc.param().abi()) } #[inline] pub unsafe fn alljoyn_aboutproxy_getversion(proxy: P0, version: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_aboutproxy_getversion(proxy : alljoyn_aboutproxy, version : *mut u16) -> QStatus); - alljoyn_aboutproxy_getversion(proxy.into_param().abi(), version) + alljoyn_aboutproxy_getversion(proxy.param().abi(), version) } #[inline] pub unsafe fn alljoyn_applicationstatelistener_create(callbacks: *const alljoyn_applicationstatelistener_callbacks, context: *mut core::ffi::c_void) -> alljoyn_applicationstatelistener { @@ -793,10 +793,10 @@ pub unsafe fn alljoyn_applicationstatelistener_create(callbacks: *const alljoyn_ #[inline] pub unsafe fn alljoyn_applicationstatelistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_applicationstatelistener_destroy(listener : alljoyn_applicationstatelistener)); - alljoyn_applicationstatelistener_destroy(listener.into_param().abi()) + alljoyn_applicationstatelistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_authlistener_create(callbacks: *const alljoyn_authlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_authlistener { @@ -806,35 +806,35 @@ pub unsafe fn alljoyn_authlistener_create(callbacks: *const alljoyn_authlistener #[inline] pub unsafe fn alljoyn_authlistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistener_destroy(listener : alljoyn_authlistener)); - alljoyn_authlistener_destroy(listener.into_param().abi()) + alljoyn_authlistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_authlistener_requestcredentialsresponse(listener: P0, authcontext: *mut core::ffi::c_void, accept: i32, credentials: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(listener.into_param().abi(), authcontext, accept, credentials.into_param().abi()) + alljoyn_authlistener_requestcredentialsresponse(listener.param().abi(), authcontext, accept, credentials.param().abi()) } #[inline] pub unsafe fn alljoyn_authlistener_setsharedsecret(listener: P0, sharedsecret: *const u8, sharedsecretsize: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistener_setsharedsecret(listener : alljoyn_authlistener, sharedsecret : *const u8, sharedsecretsize : usize) -> QStatus); - alljoyn_authlistener_setsharedsecret(listener.into_param().abi(), sharedsecret, sharedsecretsize) + alljoyn_authlistener_setsharedsecret(listener.param().abi(), sharedsecret, sharedsecretsize) } #[inline] pub unsafe fn alljoyn_authlistener_verifycredentialsresponse(listener: P0, authcontext: *mut core::ffi::c_void, accept: i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(listener.into_param().abi(), authcontext, accept) + alljoyn_authlistener_verifycredentialsresponse(listener.param().abi(), authcontext, accept) } #[inline] pub unsafe fn alljoyn_authlistenerasync_create(callbacks: *const alljoyn_authlistenerasync_callbacks, context: *const core::ffi::c_void) -> alljoyn_authlistener { @@ -844,417 +844,417 @@ pub unsafe fn alljoyn_authlistenerasync_create(callbacks: *const alljoyn_authlis #[inline] pub unsafe fn alljoyn_authlistenerasync_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_authlistenerasync_destroy(listener : alljoyn_authlistener)); - alljoyn_authlistenerasync_destroy(listener.into_param().abi()) + alljoyn_authlistenerasync_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_adddestination(autopinger: P0, group: P1, destination: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(autopinger.into_param().abi(), group.into_param().abi(), destination.into_param().abi()) + alljoyn_autopinger_adddestination(autopinger.param().abi(), group.param().abi(), destination.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_addpinggroup(autopinger: P0, group: P1, listener: P2, pinginterval: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(autopinger.into_param().abi(), group.into_param().abi(), listener.into_param().abi(), pinginterval) + alljoyn_autopinger_addpinggroup(autopinger.param().abi(), group.param().abi(), listener.param().abi(), pinginterval) } #[inline] pub unsafe fn alljoyn_autopinger_create(bus: P0) -> alljoyn_autopinger where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_create(bus : alljoyn_busattachment) -> alljoyn_autopinger); - alljoyn_autopinger_create(bus.into_param().abi()) + alljoyn_autopinger_create(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_destroy(autopinger: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_destroy(autopinger : alljoyn_autopinger)); - alljoyn_autopinger_destroy(autopinger.into_param().abi()) + alljoyn_autopinger_destroy(autopinger.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_pause(autopinger: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_pause(autopinger : alljoyn_autopinger)); - alljoyn_autopinger_pause(autopinger.into_param().abi()) + alljoyn_autopinger_pause(autopinger.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_removedestination(autopinger: P0, group: P1, destination: P2, removeall: i32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(autopinger.into_param().abi(), group.into_param().abi(), destination.into_param().abi(), removeall) + alljoyn_autopinger_removedestination(autopinger.param().abi(), group.param().abi(), destination.param().abi(), removeall) } #[inline] pub unsafe fn alljoyn_autopinger_removepinggroup(autopinger: P0, group: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_removepinggroup(autopinger : alljoyn_autopinger, group : windows_core::PCSTR)); - alljoyn_autopinger_removepinggroup(autopinger.into_param().abi(), group.into_param().abi()) + alljoyn_autopinger_removepinggroup(autopinger.param().abi(), group.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_resume(autopinger: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_autopinger_resume(autopinger : alljoyn_autopinger)); - alljoyn_autopinger_resume(autopinger.into_param().abi()) + alljoyn_autopinger_resume(autopinger.param().abi()) } #[inline] pub unsafe fn alljoyn_autopinger_setpinginterval(autopinger: P0, group: P1, pinginterval: u32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(autopinger.into_param().abi(), group.into_param().abi(), pinginterval) + alljoyn_autopinger_setpinginterval(autopinger.param().abi(), group.param().abi(), pinginterval) } #[inline] pub unsafe fn alljoyn_busattachment_addlogonentry(bus: P0, authmechanism: P1, username: P2, password: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(bus.into_param().abi(), authmechanism.into_param().abi(), username.into_param().abi(), password.into_param().abi()) + alljoyn_busattachment_addlogonentry(bus.param().abi(), authmechanism.param().abi(), username.param().abi(), password.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_addmatch(bus: P0, rule: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), rule.into_param().abi()) + alljoyn_busattachment_addmatch(bus.param().abi(), rule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_advertisename(bus: P0, name: P1, transports: u16) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), transports) + alljoyn_busattachment_advertisename(bus.param().abi(), name.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_bindsessionport(bus: P0, sessionport: *mut u16, opts: P1, listener: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(bus.into_param().abi(), sessionport, opts.into_param().abi(), listener.into_param().abi()) + alljoyn_busattachment_bindsessionport(bus.param().abi(), sessionport, opts.param().abi(), listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_canceladvertisename(bus: P0, name: P1, transports: u16) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), transports) + alljoyn_busattachment_canceladvertisename(bus.param().abi(), name.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_cancelfindadvertisedname(bus: P0, nameprefix: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), nameprefix.into_param().abi()) + alljoyn_busattachment_cancelfindadvertisedname(bus.param().abi(), nameprefix.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_cancelfindadvertisednamebytransport(bus: P0, nameprefix: P1, transports: u16) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), nameprefix.into_param().abi(), transports) + alljoyn_busattachment_cancelfindadvertisednamebytransport(bus.param().abi(), nameprefix.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_cancelwhoimplements_interface(bus: P0, implementsinterface: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), implementsinterface.into_param().abi()) + alljoyn_busattachment_cancelwhoimplements_interface(bus.param().abi(), implementsinterface.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_cancelwhoimplements_interfaces(bus: P0, implementsinterfaces: *const *const i8, numberinterfaces: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(bus.into_param().abi(), implementsinterfaces, numberinterfaces) + alljoyn_busattachment_cancelwhoimplements_interfaces(bus.param().abi(), implementsinterfaces, numberinterfaces) } #[inline] pub unsafe fn alljoyn_busattachment_clearkeys(bus: P0, guid: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), guid.into_param().abi()) + alljoyn_busattachment_clearkeys(bus.param().abi(), guid.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_clearkeystore(bus: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_clearkeystore(bus : alljoyn_busattachment)); - alljoyn_busattachment_clearkeystore(bus.into_param().abi()) + alljoyn_busattachment_clearkeystore(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_connect(bus: P0, connectspec: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), connectspec.into_param().abi()) + alljoyn_busattachment_connect(bus.param().abi(), connectspec.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_create(applicationname: P0, allowremotemessages: i32) -> alljoyn_busattachment where - P0: windows_core::IntoParam, + 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.into_param().abi(), allowremotemessages) + alljoyn_busattachment_create(applicationname.param().abi(), allowremotemessages) } #[inline] pub unsafe fn alljoyn_busattachment_create_concurrency(applicationname: P0, allowremotemessages: i32, concurrency: u32) -> alljoyn_busattachment where - P0: windows_core::IntoParam, + 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.into_param().abi(), allowremotemessages, concurrency) + alljoyn_busattachment_create_concurrency(applicationname.param().abi(), allowremotemessages, concurrency) } #[inline] pub unsafe fn alljoyn_busattachment_createinterface(bus: P0, name: P1, iface: *mut alljoyn_interfacedescription) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), iface) + alljoyn_busattachment_createinterface(bus.param().abi(), name.param().abi(), iface) } #[inline] pub unsafe fn alljoyn_busattachment_createinterface_secure(bus: P0, name: P1, iface: *mut alljoyn_interfacedescription, secpolicy: alljoyn_interfacedescription_securitypolicy) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), iface, secpolicy) + alljoyn_busattachment_createinterface_secure(bus.param().abi(), name.param().abi(), iface, secpolicy) } #[inline] pub unsafe fn alljoyn_busattachment_createinterfacesfromxml(bus: P0, xml: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), xml.into_param().abi()) + alljoyn_busattachment_createinterfacesfromxml(bus.param().abi(), xml.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_deletedefaultkeystore(applicationname: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_deletedefaultkeystore(applicationname : windows_core::PCSTR) -> QStatus); - alljoyn_busattachment_deletedefaultkeystore(applicationname.into_param().abi()) + alljoyn_busattachment_deletedefaultkeystore(applicationname.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_deleteinterface(bus: P0, iface: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_deleteinterface(bus : alljoyn_busattachment, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_busattachment_deleteinterface(bus.into_param().abi(), iface.into_param().abi()) + alljoyn_busattachment_deleteinterface(bus.param().abi(), iface.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_destroy(bus: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_destroy(bus : alljoyn_busattachment)); - alljoyn_busattachment_destroy(bus.into_param().abi()) + alljoyn_busattachment_destroy(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_disconnect(bus: P0, unused: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), unused.into_param().abi()) + alljoyn_busattachment_disconnect(bus.param().abi(), unused.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_enableconcurrentcallbacks(bus: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_enableconcurrentcallbacks(bus : alljoyn_busattachment)); - alljoyn_busattachment_enableconcurrentcallbacks(bus.into_param().abi()) + alljoyn_busattachment_enableconcurrentcallbacks(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_enablepeersecurity(bus: P0, authmechanisms: P1, listener: P2, keystorefilename: P3, isshared: i32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(bus.into_param().abi(), authmechanisms.into_param().abi(), listener.into_param().abi(), keystorefilename.into_param().abi(), isshared) + alljoyn_busattachment_enablepeersecurity(bus.param().abi(), authmechanisms.param().abi(), listener.param().abi(), keystorefilename.param().abi(), isshared) } #[inline] pub unsafe fn alljoyn_busattachment_enablepeersecuritywithpermissionconfigurationlistener(bus: P0, authmechanisms: P1, authlistener: P2, keystorefilename: P3, isshared: i32, permissionconfigurationlistener: P4) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(bus.into_param().abi(), authmechanisms.into_param().abi(), authlistener.into_param().abi(), keystorefilename.into_param().abi(), isshared, permissionconfigurationlistener.into_param().abi()) + alljoyn_busattachment_enablepeersecuritywithpermissionconfigurationlistener(bus.param().abi(), authmechanisms.param().abi(), authlistener.param().abi(), keystorefilename.param().abi(), isshared, permissionconfigurationlistener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_findadvertisedname(bus: P0, nameprefix: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), nameprefix.into_param().abi()) + alljoyn_busattachment_findadvertisedname(bus.param().abi(), nameprefix.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_findadvertisednamebytransport(bus: P0, nameprefix: P1, transports: u16) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), nameprefix.into_param().abi(), transports) + alljoyn_busattachment_findadvertisednamebytransport(bus.param().abi(), nameprefix.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_busattachment_getalljoyndebugobj(bus: P0) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getalljoyndebugobj(bus : alljoyn_busattachment) -> alljoyn_proxybusobject); - alljoyn_busattachment_getalljoyndebugobj(bus.into_param().abi()) + alljoyn_busattachment_getalljoyndebugobj(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getalljoynproxyobj(bus: P0) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getalljoynproxyobj(bus : alljoyn_busattachment) -> alljoyn_proxybusobject); - alljoyn_busattachment_getalljoynproxyobj(bus.into_param().abi()) + alljoyn_busattachment_getalljoynproxyobj(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getconcurrency(bus: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getconcurrency(bus : alljoyn_busattachment) -> u32); - alljoyn_busattachment_getconcurrency(bus.into_param().abi()) + alljoyn_busattachment_getconcurrency(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getconnectspec(bus: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getconnectspec(bus : alljoyn_busattachment) -> windows_core::PCSTR); - alljoyn_busattachment_getconnectspec(bus.into_param().abi()) + alljoyn_busattachment_getconnectspec(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getdbusproxyobj(bus: P0) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getdbusproxyobj(bus : alljoyn_busattachment) -> alljoyn_proxybusobject); - alljoyn_busattachment_getdbusproxyobj(bus.into_param().abi()) + alljoyn_busattachment_getdbusproxyobj(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getglobalguidstring(bus: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getglobalguidstring(bus : alljoyn_busattachment) -> windows_core::PCSTR); - alljoyn_busattachment_getglobalguidstring(bus.into_param().abi()) + alljoyn_busattachment_getglobalguidstring(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getinterface(bus: P0, name: P1) -> alljoyn_interfacedescription where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi()) + alljoyn_busattachment_getinterface(bus.param().abi(), name.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_getinterfaces(bus: P0, ifaces: *const alljoyn_interfacedescription, numifaces: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getinterfaces(bus : alljoyn_busattachment, ifaces : *const alljoyn_interfacedescription, numifaces : usize) -> usize); - alljoyn_busattachment_getinterfaces(bus.into_param().abi(), ifaces, numifaces) + alljoyn_busattachment_getinterfaces(bus.param().abi(), ifaces, numifaces) } #[inline] pub unsafe fn alljoyn_busattachment_getkeyexpiration(bus: P0, guid: P1, timeout: *mut u32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), guid.into_param().abi(), timeout) + alljoyn_busattachment_getkeyexpiration(bus.param().abi(), guid.param().abi(), timeout) } #[inline] pub unsafe fn alljoyn_busattachment_getpeerguid(bus: P0, name: P1, guid: P2, guidsz: *mut usize) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), guid.into_param().abi(), guidsz) + alljoyn_busattachment_getpeerguid(bus.param().abi(), name.param().abi(), guid.param().abi(), guidsz) } #[inline] pub unsafe fn alljoyn_busattachment_getpermissionconfigurator(bus: P0) -> alljoyn_permissionconfigurator where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getpermissionconfigurator(bus : alljoyn_busattachment) -> alljoyn_permissionconfigurator); - alljoyn_busattachment_getpermissionconfigurator(bus.into_param().abi()) + alljoyn_busattachment_getpermissionconfigurator(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_gettimestamp() -> u32 { @@ -1264,386 +1264,386 @@ pub unsafe fn alljoyn_busattachment_gettimestamp() -> u32 { #[inline] pub unsafe fn alljoyn_busattachment_getuniquename(bus: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_getuniquename(bus : alljoyn_busattachment) -> windows_core::PCSTR); - alljoyn_busattachment_getuniquename(bus.into_param().abi()) + alljoyn_busattachment_getuniquename(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_isconnected(bus: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_isconnected(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_isconnected(bus.into_param().abi()) + alljoyn_busattachment_isconnected(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_ispeersecurityenabled(bus: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_ispeersecurityenabled(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_ispeersecurityenabled(bus.into_param().abi()) + alljoyn_busattachment_ispeersecurityenabled(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_isstarted(bus: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_isstarted(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_isstarted(bus.into_param().abi()) + alljoyn_busattachment_isstarted(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_isstopping(bus: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_isstopping(bus : alljoyn_busattachment) -> i32); - alljoyn_busattachment_isstopping(bus.into_param().abi()) + alljoyn_busattachment_isstopping(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_join(bus: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_join(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_join(bus.into_param().abi()) + alljoyn_busattachment_join(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_joinsession(bus: P0, sessionhost: P1, sessionport: u16, listener: P2, sessionid: *mut u32, opts: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(bus.into_param().abi(), sessionhost.into_param().abi(), sessionport, listener.into_param().abi(), sessionid, opts.into_param().abi()) + alljoyn_busattachment_joinsession(bus.param().abi(), sessionhost.param().abi(), sessionport, listener.param().abi(), sessionid, opts.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_joinsessionasync(bus: P0, sessionhost: P1, sessionport: u16, listener: P2, opts: P3, callback: alljoyn_busattachment_joinsessioncb_ptr, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(bus.into_param().abi(), sessionhost.into_param().abi(), sessionport, listener.into_param().abi(), opts.into_param().abi(), callback, context) + alljoyn_busattachment_joinsessionasync(bus.param().abi(), sessionhost.param().abi(), sessionport, listener.param().abi(), opts.param().abi(), callback, context) } #[inline] pub unsafe fn alljoyn_busattachment_leavesession(bus: P0, sessionid: u32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_leavesession(bus : alljoyn_busattachment, sessionid : u32) -> QStatus); - alljoyn_busattachment_leavesession(bus.into_param().abi(), sessionid) + alljoyn_busattachment_leavesession(bus.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_busattachment_namehasowner(bus: P0, name: P1, hasowner: *mut i32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), hasowner) + alljoyn_busattachment_namehasowner(bus.param().abi(), name.param().abi(), hasowner) } #[inline] pub unsafe fn alljoyn_busattachment_ping(bus: P0, name: P1, timeout: u32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), timeout) + alljoyn_busattachment_ping(bus.param().abi(), name.param().abi(), timeout) } #[inline] pub unsafe fn alljoyn_busattachment_registeraboutlistener(bus: P0, aboutlistener: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registeraboutlistener(bus : alljoyn_busattachment, aboutlistener : alljoyn_aboutlistener)); - alljoyn_busattachment_registeraboutlistener(bus.into_param().abi(), aboutlistener.into_param().abi()) + alljoyn_busattachment_registeraboutlistener(bus.param().abi(), aboutlistener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registerapplicationstatelistener(bus: P0, listener: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerapplicationstatelistener(bus : alljoyn_busattachment, listener : alljoyn_applicationstatelistener) -> QStatus); - alljoyn_busattachment_registerapplicationstatelistener(bus.into_param().abi(), listener.into_param().abi()) + alljoyn_busattachment_registerapplicationstatelistener(bus.param().abi(), listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registerbuslistener(bus: P0, listener: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerbuslistener(bus : alljoyn_busattachment, listener : alljoyn_buslistener)); - alljoyn_busattachment_registerbuslistener(bus.into_param().abi(), listener.into_param().abi()) + alljoyn_busattachment_registerbuslistener(bus.param().abi(), listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registerbusobject(bus: P0, obj: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerbusobject(bus : alljoyn_busattachment, obj : alljoyn_busobject) -> QStatus); - alljoyn_busattachment_registerbusobject(bus.into_param().abi(), obj.into_param().abi()) + alljoyn_busattachment_registerbusobject(bus.param().abi(), obj.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registerbusobject_secure(bus: P0, obj: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerbusobject_secure(bus : alljoyn_busattachment, obj : alljoyn_busobject) -> QStatus); - alljoyn_busattachment_registerbusobject_secure(bus.into_param().abi(), obj.into_param().abi()) + alljoyn_busattachment_registerbusobject_secure(bus.param().abi(), obj.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registerkeystorelistener(bus: P0, listener: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_registerkeystorelistener(bus : alljoyn_busattachment, listener : alljoyn_keystorelistener) -> QStatus); - alljoyn_busattachment_registerkeystorelistener(bus.into_param().abi(), listener.into_param().abi()) + alljoyn_busattachment_registerkeystorelistener(bus.param().abi(), listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registersignalhandler(bus: P0, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, srcpath: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(bus.into_param().abi(), signal_handler, core::mem::transmute(member), srcpath.into_param().abi()) + alljoyn_busattachment_registersignalhandler(bus.param().abi(), signal_handler, core::mem::transmute(member), srcpath.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_registersignalhandlerwithrule(bus: P0, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, matchrule: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(bus.into_param().abi(), signal_handler, core::mem::transmute(member), matchrule.into_param().abi()) + alljoyn_busattachment_registersignalhandlerwithrule(bus.param().abi(), signal_handler, core::mem::transmute(member), matchrule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_releasename(bus: P0, name: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi()) + alljoyn_busattachment_releasename(bus.param().abi(), name.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_reloadkeystore(bus: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_reloadkeystore(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_reloadkeystore(bus.into_param().abi()) + alljoyn_busattachment_reloadkeystore(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_removematch(bus: P0, rule: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), rule.into_param().abi()) + alljoyn_busattachment_removematch(bus.param().abi(), rule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_removesessionmember(bus: P0, sessionid: u32, membername: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(bus.into_param().abi(), sessionid, membername.into_param().abi()) + alljoyn_busattachment_removesessionmember(bus.param().abi(), sessionid, membername.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_requestname(bus: P0, requestedname: P1, flags: u32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), requestedname.into_param().abi(), flags) + alljoyn_busattachment_requestname(bus.param().abi(), requestedname.param().abi(), flags) } #[inline] pub unsafe fn alljoyn_busattachment_secureconnection(bus: P0, name: P1, forceauth: i32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), forceauth) + alljoyn_busattachment_secureconnection(bus.param().abi(), name.param().abi(), forceauth) } #[inline] pub unsafe fn alljoyn_busattachment_secureconnectionasync(bus: P0, name: P1, forceauth: i32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), name.into_param().abi(), forceauth) + alljoyn_busattachment_secureconnectionasync(bus.param().abi(), name.param().abi(), forceauth) } #[inline] pub unsafe fn alljoyn_busattachment_setdaemondebug(bus: P0, module: P1, level: u32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), module.into_param().abi(), level) + alljoyn_busattachment_setdaemondebug(bus.param().abi(), module.param().abi(), level) } #[inline] pub unsafe fn alljoyn_busattachment_setkeyexpiration(bus: P0, guid: P1, timeout: u32) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), guid.into_param().abi(), timeout) + alljoyn_busattachment_setkeyexpiration(bus.param().abi(), guid.param().abi(), timeout) } #[inline] pub unsafe fn alljoyn_busattachment_setlinktimeout(bus: P0, sessionid: u32, linktimeout: *mut u32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_setlinktimeout(bus : alljoyn_busattachment, sessionid : u32, linktimeout : *mut u32) -> QStatus); - alljoyn_busattachment_setlinktimeout(bus.into_param().abi(), sessionid, linktimeout) + alljoyn_busattachment_setlinktimeout(bus.param().abi(), sessionid, linktimeout) } #[inline] pub unsafe fn alljoyn_busattachment_setlinktimeoutasync(bus: P0, sessionid: u32, linktimeout: u32, callback: alljoyn_busattachment_setlinktimeoutcb_ptr, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(bus.into_param().abi(), sessionid, linktimeout, callback, context) + alljoyn_busattachment_setlinktimeoutasync(bus.param().abi(), sessionid, linktimeout, callback, context) } #[inline] pub unsafe fn alljoyn_busattachment_setsessionlistener(bus: P0, sessionid: u32, listener: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_setsessionlistener(bus : alljoyn_busattachment, sessionid : u32, listener : alljoyn_sessionlistener) -> QStatus); - alljoyn_busattachment_setsessionlistener(bus.into_param().abi(), sessionid, listener.into_param().abi()) + alljoyn_busattachment_setsessionlistener(bus.param().abi(), sessionid, listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_start(bus: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_start(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_start(bus.into_param().abi()) + alljoyn_busattachment_start(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_stop(bus: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_stop(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_stop(bus.into_param().abi()) + alljoyn_busattachment_stop(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unbindsessionport(bus: P0, sessionport: u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unbindsessionport(bus : alljoyn_busattachment, sessionport : u16) -> QStatus); - alljoyn_busattachment_unbindsessionport(bus.into_param().abi(), sessionport) + alljoyn_busattachment_unbindsessionport(bus.param().abi(), sessionport) } #[inline] pub unsafe fn alljoyn_busattachment_unregisteraboutlistener(bus: P0, aboutlistener: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisteraboutlistener(bus : alljoyn_busattachment, aboutlistener : alljoyn_aboutlistener)); - alljoyn_busattachment_unregisteraboutlistener(bus.into_param().abi(), aboutlistener.into_param().abi()) + alljoyn_busattachment_unregisteraboutlistener(bus.param().abi(), aboutlistener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterallaboutlisteners(bus: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterallaboutlisteners(bus : alljoyn_busattachment)); - alljoyn_busattachment_unregisterallaboutlisteners(bus.into_param().abi()) + alljoyn_busattachment_unregisterallaboutlisteners(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterallhandlers(bus: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterallhandlers(bus : alljoyn_busattachment) -> QStatus); - alljoyn_busattachment_unregisterallhandlers(bus.into_param().abi()) + alljoyn_busattachment_unregisterallhandlers(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterapplicationstatelistener(bus: P0, listener: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterapplicationstatelistener(bus : alljoyn_busattachment, listener : alljoyn_applicationstatelistener) -> QStatus); - alljoyn_busattachment_unregisterapplicationstatelistener(bus.into_param().abi(), listener.into_param().abi()) + alljoyn_busattachment_unregisterapplicationstatelistener(bus.param().abi(), listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterbuslistener(bus: P0, listener: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterbuslistener(bus : alljoyn_busattachment, listener : alljoyn_buslistener)); - alljoyn_busattachment_unregisterbuslistener(bus.into_param().abi(), listener.into_param().abi()) + alljoyn_busattachment_unregisterbuslistener(bus.param().abi(), listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregisterbusobject(bus: P0, object: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busattachment_unregisterbusobject(bus : alljoyn_busattachment, object : alljoyn_busobject)); - alljoyn_busattachment_unregisterbusobject(bus.into_param().abi(), object.into_param().abi()) + alljoyn_busattachment_unregisterbusobject(bus.param().abi(), object.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregistersignalhandler(bus: P0, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, srcpath: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(bus.into_param().abi(), signal_handler, core::mem::transmute(member), srcpath.into_param().abi()) + alljoyn_busattachment_unregistersignalhandler(bus.param().abi(), signal_handler, core::mem::transmute(member), srcpath.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_unregistersignalhandlerwithrule(bus: P0, signal_handler: alljoyn_messagereceiver_signalhandler_ptr, member: alljoyn_interfacedescription_member, matchrule: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(bus.into_param().abi(), signal_handler, core::mem::transmute(member), matchrule.into_param().abi()) + alljoyn_busattachment_unregistersignalhandlerwithrule(bus.param().abi(), signal_handler, core::mem::transmute(member), matchrule.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_whoimplements_interface(bus: P0, implementsinterface: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), implementsinterface.into_param().abi()) + alljoyn_busattachment_whoimplements_interface(bus.param().abi(), implementsinterface.param().abi()) } #[inline] pub unsafe fn alljoyn_busattachment_whoimplements_interfaces(bus: P0, implementsinterfaces: *const *const i8, numberinterfaces: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(bus.into_param().abi(), implementsinterfaces, numberinterfaces) + alljoyn_busattachment_whoimplements_interfaces(bus.param().abi(), implementsinterfaces, numberinterfaces) } #[inline] pub unsafe fn alljoyn_buslistener_create(callbacks: *const alljoyn_buslistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_buslistener { @@ -1653,196 +1653,196 @@ pub unsafe fn alljoyn_buslistener_create(callbacks: *const alljoyn_buslistener_c #[inline] pub unsafe fn alljoyn_buslistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_buslistener_destroy(listener : alljoyn_buslistener)); - alljoyn_buslistener_destroy(listener.into_param().abi()) + alljoyn_buslistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_addinterface(bus: P0, iface: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_addinterface(bus : alljoyn_busobject, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_busobject_addinterface(bus.into_param().abi(), iface.into_param().abi()) + alljoyn_busobject_addinterface(bus.param().abi(), iface.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_addinterface_announced(bus: P0, iface: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_addinterface_announced(bus : alljoyn_busobject, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_busobject_addinterface_announced(bus.into_param().abi(), iface.into_param().abi()) + alljoyn_busobject_addinterface_announced(bus.param().abi(), iface.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_addmethodhandler(bus: P0, member: alljoyn_interfacedescription_member, handler: alljoyn_messagereceiver_methodhandler_ptr, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(bus.into_param().abi(), core::mem::transmute(member), handler, context) + alljoyn_busobject_addmethodhandler(bus.param().abi(), core::mem::transmute(member), handler, context) } #[inline] pub unsafe fn alljoyn_busobject_addmethodhandlers(bus: P0, entries: *const alljoyn_busobject_methodentry, numentries: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_addmethodhandlers(bus : alljoyn_busobject, entries : *const alljoyn_busobject_methodentry, numentries : usize) -> QStatus); - alljoyn_busobject_addmethodhandlers(bus.into_param().abi(), entries, numentries) + alljoyn_busobject_addmethodhandlers(bus.param().abi(), entries, numentries) } #[inline] pub unsafe fn alljoyn_busobject_cancelsessionlessmessage(bus: P0, msg: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_cancelsessionlessmessage(bus : alljoyn_busobject, msg : alljoyn_message) -> QStatus); - alljoyn_busobject_cancelsessionlessmessage(bus.into_param().abi(), msg.into_param().abi()) + alljoyn_busobject_cancelsessionlessmessage(bus.param().abi(), msg.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_cancelsessionlessmessage_serial(bus: P0, serialnumber: u32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_cancelsessionlessmessage_serial(bus : alljoyn_busobject, serialnumber : u32) -> QStatus); - alljoyn_busobject_cancelsessionlessmessage_serial(bus.into_param().abi(), serialnumber) + alljoyn_busobject_cancelsessionlessmessage_serial(bus.param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), isplaceholder, callbacks_in, context_in) + alljoyn_busobject_create(path.param().abi(), isplaceholder, callbacks_in, context_in) } #[inline] pub unsafe fn alljoyn_busobject_destroy(bus: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_destroy(bus : alljoyn_busobject)); - alljoyn_busobject_destroy(bus.into_param().abi()) + alljoyn_busobject_destroy(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_emitpropertieschanged(bus: P0, ifcname: P1, propnames: *const *const i8, numprops: usize, id: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), ifcname.into_param().abi(), propnames, numprops, id) + alljoyn_busobject_emitpropertieschanged(bus.param().abi(), ifcname.param().abi(), propnames, numprops, id) } #[inline] pub unsafe fn alljoyn_busobject_emitpropertychanged(bus: P0, ifcname: P1, propname: P2, val: P3, id: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(bus.into_param().abi(), ifcname.into_param().abi(), propname.into_param().abi(), val.into_param().abi(), id) + alljoyn_busobject_emitpropertychanged(bus.param().abi(), ifcname.param().abi(), propname.param().abi(), val.param().abi(), id) } #[inline] pub unsafe fn alljoyn_busobject_getannouncedinterfacenames(bus: P0, interfaces: *const *const i8, numinterfaces: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_getannouncedinterfacenames(bus : alljoyn_busobject, interfaces : *const *const i8, numinterfaces : usize) -> usize); - alljoyn_busobject_getannouncedinterfacenames(bus.into_param().abi(), interfaces, numinterfaces) + alljoyn_busobject_getannouncedinterfacenames(bus.param().abi(), interfaces, numinterfaces) } #[inline] pub unsafe fn alljoyn_busobject_getbusattachment(bus: P0) -> alljoyn_busattachment where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_getbusattachment(bus : alljoyn_busobject) -> alljoyn_busattachment); - alljoyn_busobject_getbusattachment(bus.into_param().abi()) + alljoyn_busobject_getbusattachment(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_getname(bus: P0, buffer: P1, buffersz: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(bus.into_param().abi(), buffer.into_param().abi(), buffersz) + alljoyn_busobject_getname(bus.param().abi(), buffer.param().abi(), buffersz) } #[inline] pub unsafe fn alljoyn_busobject_getpath(bus: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_getpath(bus : alljoyn_busobject) -> windows_core::PCSTR); - alljoyn_busobject_getpath(bus.into_param().abi()) + alljoyn_busobject_getpath(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_issecure(bus: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_issecure(bus : alljoyn_busobject) -> i32); - alljoyn_busobject_issecure(bus.into_param().abi()) + alljoyn_busobject_issecure(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_methodreply_args(bus: P0, msg: P1, args: P2, numargs: usize) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(bus.into_param().abi(), msg.into_param().abi(), args.into_param().abi(), numargs) + alljoyn_busobject_methodreply_args(bus.param().abi(), msg.param().abi(), args.param().abi(), numargs) } #[inline] pub unsafe fn alljoyn_busobject_methodreply_err(bus: P0, msg: P1, error: P2, errormessage: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(bus.into_param().abi(), msg.into_param().abi(), error.into_param().abi(), errormessage.into_param().abi()) + alljoyn_busobject_methodreply_err(bus.param().abi(), msg.param().abi(), error.param().abi(), errormessage.param().abi()) } #[inline] pub unsafe fn alljoyn_busobject_methodreply_status(bus: P0, msg: P1, status: QStatus) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_methodreply_status(bus : alljoyn_busobject, msg : alljoyn_message, status : QStatus) -> QStatus); - alljoyn_busobject_methodreply_status(bus.into_param().abi(), msg.into_param().abi(), status) + alljoyn_busobject_methodreply_status(bus.param().abi(), msg.param().abi(), status) } #[inline] pub unsafe fn alljoyn_busobject_setannounceflag(bus: P0, iface: P1, isannounced: alljoyn_about_announceflag) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_busobject_setannounceflag(bus : alljoyn_busobject, iface : alljoyn_interfacedescription, isannounced : alljoyn_about_announceflag) -> QStatus); - alljoyn_busobject_setannounceflag(bus.into_param().abi(), iface.into_param().abi(), isannounced) + alljoyn_busobject_setannounceflag(bus.param().abi(), iface.param().abi(), isannounced) } #[inline] pub unsafe fn alljoyn_busobject_signal(bus: P0, destination: P1, sessionid: u32, signal: alljoyn_interfacedescription_member, args: P2, numargs: usize, timetolive: u16, flags: u8, msg: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(bus.into_param().abi(), destination.into_param().abi(), sessionid, core::mem::transmute(signal), args.into_param().abi(), numargs, timetolive, flags, msg.into_param().abi()) + alljoyn_busobject_signal(bus.param().abi(), destination.param().abi(), sessionid, core::mem::transmute(signal), args.param().abi(), numargs, timetolive, flags, msg.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_clear(cred: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_clear(cred : alljoyn_credentials)); - alljoyn_credentials_clear(cred.into_param().abi()) + alljoyn_credentials_clear(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_create() -> alljoyn_credentials { @@ -1852,119 +1852,119 @@ pub unsafe fn alljoyn_credentials_create() -> alljoyn_credentials { #[inline] pub unsafe fn alljoyn_credentials_destroy(cred: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_destroy(cred : alljoyn_credentials)); - alljoyn_credentials_destroy(cred.into_param().abi()) + alljoyn_credentials_destroy(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_getcertchain(cred: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getcertchain(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getcertchain(cred.into_param().abi()) + alljoyn_credentials_getcertchain(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_getexpiration(cred: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getexpiration(cred : alljoyn_credentials) -> u32); - alljoyn_credentials_getexpiration(cred.into_param().abi()) + alljoyn_credentials_getexpiration(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_getlogonentry(cred: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getlogonentry(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getlogonentry(cred.into_param().abi()) + alljoyn_credentials_getlogonentry(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_getpassword(cred: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getpassword(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getpassword(cred.into_param().abi()) + alljoyn_credentials_getpassword(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_getprivateKey(cred: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getprivateKey(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getprivateKey(cred.into_param().abi()) + alljoyn_credentials_getprivateKey(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_getusername(cred: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_getusername(cred : alljoyn_credentials) -> windows_core::PCSTR); - alljoyn_credentials_getusername(cred.into_param().abi()) + alljoyn_credentials_getusername(cred.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_isset(cred: P0, creds: u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_isset(cred : alljoyn_credentials, creds : u16) -> i32); - alljoyn_credentials_isset(cred.into_param().abi(), creds) + alljoyn_credentials_isset(cred.param().abi(), creds) } #[inline] pub unsafe fn alljoyn_credentials_setcertchain(cred: P0, certchain: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setcertchain(cred : alljoyn_credentials, certchain : windows_core::PCSTR)); - alljoyn_credentials_setcertchain(cred.into_param().abi(), certchain.into_param().abi()) + alljoyn_credentials_setcertchain(cred.param().abi(), certchain.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setexpiration(cred: P0, expiration: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setexpiration(cred : alljoyn_credentials, expiration : u32)); - alljoyn_credentials_setexpiration(cred.into_param().abi(), expiration) + alljoyn_credentials_setexpiration(cred.param().abi(), expiration) } #[inline] pub unsafe fn alljoyn_credentials_setlogonentry(cred: P0, logonentry: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setlogonentry(cred : alljoyn_credentials, logonentry : windows_core::PCSTR)); - alljoyn_credentials_setlogonentry(cred.into_param().abi(), logonentry.into_param().abi()) + alljoyn_credentials_setlogonentry(cred.param().abi(), logonentry.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setpassword(cred: P0, pwd: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setpassword(cred : alljoyn_credentials, pwd : windows_core::PCSTR)); - alljoyn_credentials_setpassword(cred.into_param().abi(), pwd.into_param().abi()) + alljoyn_credentials_setpassword(cred.param().abi(), pwd.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setprivatekey(cred: P0, pk: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setprivatekey(cred : alljoyn_credentials, pk : windows_core::PCSTR)); - alljoyn_credentials_setprivatekey(cred.into_param().abi(), pk.into_param().abi()) + alljoyn_credentials_setprivatekey(cred.param().abi(), pk.param().abi()) } #[inline] pub unsafe fn alljoyn_credentials_setusername(cred: P0, username: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_credentials_setusername(cred : alljoyn_credentials, username : windows_core::PCSTR)); - alljoyn_credentials_setusername(cred.into_param().abi(), username.into_param().abi()) + alljoyn_credentials_setusername(cred.param().abi(), username.param().abi()) } #[inline] pub unsafe fn alljoyn_getbuildinfo() -> windows_core::PCSTR { @@ -1989,362 +1989,362 @@ pub unsafe fn alljoyn_init() -> QStatus { #[inline] pub unsafe fn alljoyn_interfacedescription_activate(iface: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_activate(iface : alljoyn_interfacedescription)); - alljoyn_interfacedescription_activate(iface.into_param().abi()) + alljoyn_interfacedescription_activate(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addannotation(iface: P0, name: P1, value: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), value.into_param().abi()) + alljoyn_interfacedescription_addannotation(iface.param().abi(), name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addargannotation(iface: P0, member: P1, argname: P2, name: P3, value: P4) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), argname.into_param().abi(), name.into_param().abi(), value.into_param().abi()) + alljoyn_interfacedescription_addargannotation(iface.param().abi(), member.param().abi(), argname.param().abi(), name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addmember(iface: P0, r#type: alljoyn_messagetype, name: P1, inputsig: P2, outsig: P3, argnames: P4, annotation: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(iface.into_param().abi(), r#type, name.into_param().abi(), inputsig.into_param().abi(), outsig.into_param().abi(), argnames.into_param().abi(), annotation) + alljoyn_interfacedescription_addmember(iface.param().abi(), r#type, name.param().abi(), inputsig.param().abi(), outsig.param().abi(), argnames.param().abi(), annotation) } #[inline] pub unsafe fn alljoyn_interfacedescription_addmemberannotation(iface: P0, member: P1, name: P2, value: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), name.into_param().abi(), value.into_param().abi()) + alljoyn_interfacedescription_addmemberannotation(iface.param().abi(), member.param().abi(), name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addmethod(iface: P0, name: P1, inputsig: P2, outsig: P3, argnames: P4, annotation: u8, accessperms: P5) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(iface.into_param().abi(), name.into_param().abi(), inputsig.into_param().abi(), outsig.into_param().abi(), argnames.into_param().abi(), annotation, accessperms.into_param().abi()) + alljoyn_interfacedescription_addmethod(iface.param().abi(), name.param().abi(), inputsig.param().abi(), outsig.param().abi(), argnames.param().abi(), annotation, accessperms.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addproperty(iface: P0, name: P1, signature: P2, access: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), signature.into_param().abi(), access) + alljoyn_interfacedescription_addproperty(iface.param().abi(), name.param().abi(), signature.param().abi(), access) } #[inline] pub unsafe fn alljoyn_interfacedescription_addpropertyannotation(iface: P0, property: P1, name: P2, value: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), property.into_param().abi(), name.into_param().abi(), value.into_param().abi()) + alljoyn_interfacedescription_addpropertyannotation(iface.param().abi(), property.param().abi(), name.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_addsignal(iface: P0, name: P1, sig: P2, argnames: P3, annotation: u8, accessperms: P4) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(iface.into_param().abi(), name.into_param().abi(), sig.into_param().abi(), argnames.into_param().abi(), annotation, accessperms.into_param().abi()) + alljoyn_interfacedescription_addsignal(iface.param().abi(), name.param().abi(), sig.param().abi(), argnames.param().abi(), annotation, accessperms.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_eql(one: P0, other: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_eql(one : alljoyn_interfacedescription, other : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_eql(one.into_param().abi(), other.into_param().abi()) + alljoyn_interfacedescription_eql(one.param().abi(), other.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getannotation(iface: P0, name: P1, value: P2, value_size: *mut usize) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), value.into_param().abi(), value_size) + alljoyn_interfacedescription_getannotation(iface.param().abi(), name.param().abi(), value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_getannotationatindex(iface: P0, index: usize, name: P1, name_size: *mut usize, value: P2, value_size: *mut usize) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(iface.into_param().abi(), index, name.into_param().abi(), name_size, value.into_param().abi(), value_size) + alljoyn_interfacedescription_getannotationatindex(iface.param().abi(), index, name.param().abi(), name_size, value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_getannotationscount(iface: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getannotationscount(iface : alljoyn_interfacedescription) -> usize); - alljoyn_interfacedescription_getannotationscount(iface.into_param().abi()) + alljoyn_interfacedescription_getannotationscount(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getargdescriptionforlanguage(iface: P0, member: P1, arg: P2, description: P3, maxlanguagelength: usize, languagetag: P4) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(iface.into_param().abi(), member.into_param().abi(), arg.into_param().abi(), description.into_param().abi(), maxlanguagelength, languagetag.into_param().abi()) + alljoyn_interfacedescription_getargdescriptionforlanguage(iface.param().abi(), member.param().abi(), arg.param().abi(), description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptionforlanguage(iface: P0, description: P1, maxlanguagelength: usize, languagetag: P2) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(iface.into_param().abi(), description.into_param().abi(), maxlanguagelength, languagetag.into_param().abi()) + alljoyn_interfacedescription_getdescriptionforlanguage(iface.param().abi(), description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptionlanguages(iface: P0, languages: *const *const i8, size: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getdescriptionlanguages(iface : alljoyn_interfacedescription, languages : *const *const i8, size : usize) -> usize); - alljoyn_interfacedescription_getdescriptionlanguages(iface.into_param().abi(), languages, size) + alljoyn_interfacedescription_getdescriptionlanguages(iface.param().abi(), languages, size) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptionlanguages2(iface: P0, languages: P1, languagessize: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(iface.into_param().abi(), languages.into_param().abi(), languagessize) + alljoyn_interfacedescription_getdescriptionlanguages2(iface.param().abi(), languages.param().abi(), languagessize) } #[inline] pub unsafe fn alljoyn_interfacedescription_getdescriptiontranslationcallback(iface: P0) -> alljoyn_interfacedescription_translation_callback_ptr where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getdescriptiontranslationcallback(iface : alljoyn_interfacedescription) -> alljoyn_interfacedescription_translation_callback_ptr); - alljoyn_interfacedescription_getdescriptiontranslationcallback(iface.into_param().abi()) + alljoyn_interfacedescription_getdescriptiontranslationcallback(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmember(iface: P0, name: P1, member: *mut alljoyn_interfacedescription_member) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), member) + alljoyn_interfacedescription_getmember(iface.param().abi(), name.param().abi(), member) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmemberannotation(iface: P0, member: P1, name: P2, value: P3, value_size: *mut usize) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), name.into_param().abi(), value.into_param().abi(), value_size) + alljoyn_interfacedescription_getmemberannotation(iface.param().abi(), member.param().abi(), name.param().abi(), value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmemberargannotation(iface: P0, member: P1, argname: P2, name: P3, value: P4, value_size: *mut usize) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), argname.into_param().abi(), name.into_param().abi(), value.into_param().abi(), value_size) + alljoyn_interfacedescription_getmemberargannotation(iface.param().abi(), member.param().abi(), argname.param().abi(), name.param().abi(), value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmemberdescriptionforlanguage(iface: P0, member: P1, description: P2, maxlanguagelength: usize, languagetag: P3) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(iface.into_param().abi(), member.into_param().abi(), description.into_param().abi(), maxlanguagelength, languagetag.into_param().abi()) + alljoyn_interfacedescription_getmemberdescriptionforlanguage(iface.param().abi(), member.param().abi(), description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmembers(iface: P0, members: *mut alljoyn_interfacedescription_member, nummembers: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getmembers(iface : alljoyn_interfacedescription, members : *mut alljoyn_interfacedescription_member, nummembers : usize) -> usize); - alljoyn_interfacedescription_getmembers(iface.into_param().abi(), members, nummembers) + alljoyn_interfacedescription_getmembers(iface.param().abi(), members, nummembers) } #[inline] pub unsafe fn alljoyn_interfacedescription_getmethod(iface: P0, name: P1, member: *mut alljoyn_interfacedescription_member) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), member) + alljoyn_interfacedescription_getmethod(iface.param().abi(), name.param().abi(), member) } #[inline] pub unsafe fn alljoyn_interfacedescription_getname(iface: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getname(iface : alljoyn_interfacedescription) -> windows_core::PCSTR); - alljoyn_interfacedescription_getname(iface.into_param().abi()) + alljoyn_interfacedescription_getname(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getproperties(iface: P0, props: *mut alljoyn_interfacedescription_property, numprops: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getproperties(iface : alljoyn_interfacedescription, props : *mut alljoyn_interfacedescription_property, numprops : usize) -> usize); - alljoyn_interfacedescription_getproperties(iface.into_param().abi(), props, numprops) + alljoyn_interfacedescription_getproperties(iface.param().abi(), props, numprops) } #[inline] pub unsafe fn alljoyn_interfacedescription_getproperty(iface: P0, name: P1, property: *mut alljoyn_interfacedescription_property) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), property) + alljoyn_interfacedescription_getproperty(iface.param().abi(), name.param().abi(), property) } #[inline] pub unsafe fn alljoyn_interfacedescription_getpropertyannotation(iface: P0, property: P1, name: P2, value: P3, str_size: *mut usize) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), property.into_param().abi(), name.into_param().abi(), value.into_param().abi(), str_size) + alljoyn_interfacedescription_getpropertyannotation(iface.param().abi(), property.param().abi(), name.param().abi(), value.param().abi(), str_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_getpropertydescriptionforlanguage(iface: P0, property: P1, description: P2, maxlanguagelength: usize, languagetag: P3) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(iface.into_param().abi(), property.into_param().abi(), description.into_param().abi(), maxlanguagelength, languagetag.into_param().abi()) + alljoyn_interfacedescription_getpropertydescriptionforlanguage(iface.param().abi(), property.param().abi(), description.param().abi(), maxlanguagelength, languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getsecuritypolicy(iface: P0) -> alljoyn_interfacedescription_securitypolicy where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_getsecuritypolicy(iface : alljoyn_interfacedescription) -> alljoyn_interfacedescription_securitypolicy); - alljoyn_interfacedescription_getsecuritypolicy(iface.into_param().abi()) + alljoyn_interfacedescription_getsecuritypolicy(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_getsignal(iface: P0, name: P1, member: *mut alljoyn_interfacedescription_member) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), member) + alljoyn_interfacedescription_getsignal(iface.param().abi(), name.param().abi(), member) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasdescription(iface: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_hasdescription(iface : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_hasdescription(iface.into_param().abi()) + alljoyn_interfacedescription_hasdescription(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasmember(iface: P0, name: P1, insig: P2, outsig: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), insig.into_param().abi(), outsig.into_param().abi()) + alljoyn_interfacedescription_hasmember(iface.param().abi(), name.param().abi(), insig.param().abi(), outsig.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasproperties(iface: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_hasproperties(iface : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_hasproperties(iface.into_param().abi()) + alljoyn_interfacedescription_hasproperties(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_hasproperty(iface: P0, name: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi()) + alljoyn_interfacedescription_hasproperty(iface.param().abi(), name.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_introspect(iface: P0, str: P1, buf: usize, indent: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(iface.into_param().abi(), str.into_param().abi(), buf, indent) + alljoyn_interfacedescription_introspect(iface.param().abi(), str.param().abi(), buf, indent) } #[inline] pub unsafe fn alljoyn_interfacedescription_issecure(iface: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_issecure(iface : alljoyn_interfacedescription) -> i32); - alljoyn_interfacedescription_issecure(iface.into_param().abi()) + alljoyn_interfacedescription_issecure(iface.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_eql(one: alljoyn_interfacedescription_member, other: alljoyn_interfacedescription_member) -> i32 { @@ -2354,20 +2354,20 @@ pub unsafe fn alljoyn_interfacedescription_member_eql(one: alljoyn_interfacedesc #[inline] pub unsafe fn alljoyn_interfacedescription_member_getannotation(member: alljoyn_interfacedescription_member, name: P0, value: P1, value_size: *mut usize) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_member_getannotation(member : alljoyn_interfacedescription_member, name : windows_core::PCSTR, value : windows_core::PCSTR, value_size : *mut usize) -> i32); - alljoyn_interfacedescription_member_getannotation(core::mem::transmute(member), name.into_param().abi(), value.into_param().abi(), value_size) + alljoyn_interfacedescription_member_getannotation(core::mem::transmute(member), name.param().abi(), value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_getannotationatindex(member: alljoyn_interfacedescription_member, index: usize, name: P0, name_size: *mut usize, value: P1, value_size: *mut usize) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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), index, name.into_param().abi(), name_size, value.into_param().abi(), value_size) + alljoyn_interfacedescription_member_getannotationatindex(core::mem::transmute(member), index, name.param().abi(), name_size, value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_getannotationscount(member: alljoyn_interfacedescription_member) -> usize { @@ -2377,30 +2377,30 @@ pub unsafe fn alljoyn_interfacedescription_member_getannotationscount(member: al #[inline] pub unsafe fn alljoyn_interfacedescription_member_getargannotation(member: alljoyn_interfacedescription_member, argname: P0, name: P1, value: P2, value_size: *mut usize) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_member_getargannotation(member : alljoyn_interfacedescription_member, argname : windows_core::PCSTR, name : windows_core::PCSTR, value : windows_core::PCSTR, value_size : *mut usize) -> i32); - alljoyn_interfacedescription_member_getargannotation(core::mem::transmute(member), argname.into_param().abi(), name.into_param().abi(), value.into_param().abi(), value_size) + alljoyn_interfacedescription_member_getargannotation(core::mem::transmute(member), argname.param().abi(), name.param().abi(), value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_getargannotationatindex(member: alljoyn_interfacedescription_member, argname: P0, index: usize, name: P1, name_size: *mut usize, value: P2, value_size: *mut usize) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), index, name.into_param().abi(), name_size, value.into_param().abi(), value_size) + alljoyn_interfacedescription_member_getargannotationatindex(core::mem::transmute(member), argname.param().abi(), index, name.param().abi(), name_size, value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_member_getargannotationscount(member: alljoyn_interfacedescription_member, argname: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_member_getargannotationscount(member : alljoyn_interfacedescription_member, argname : windows_core::PCSTR) -> usize); - alljoyn_interfacedescription_member_getargannotationscount(core::mem::transmute(member), argname.into_param().abi()) + alljoyn_interfacedescription_member_getargannotationscount(core::mem::transmute(member), argname.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_property_eql(one: alljoyn_interfacedescription_property, other: alljoyn_interfacedescription_property) -> i32 { @@ -2410,20 +2410,20 @@ pub unsafe fn alljoyn_interfacedescription_property_eql(one: alljoyn_interfacede #[inline] pub unsafe fn alljoyn_interfacedescription_property_getannotation(property: alljoyn_interfacedescription_property, name: P0, value: P1, value_size: *mut usize) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_property_getannotation(property : alljoyn_interfacedescription_property, name : windows_core::PCSTR, value : windows_core::PCSTR, value_size : *mut usize) -> i32); - alljoyn_interfacedescription_property_getannotation(core::mem::transmute(property), name.into_param().abi(), value.into_param().abi(), value_size) + alljoyn_interfacedescription_property_getannotation(core::mem::transmute(property), name.param().abi(), value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_property_getannotationatindex(property: alljoyn_interfacedescription_property, index: usize, name: P0, name_size: *mut usize, value: P1, value_size: *mut usize) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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), index, name.into_param().abi(), name_size, value.into_param().abi(), value_size) + alljoyn_interfacedescription_property_getannotationatindex(core::mem::transmute(property), index, name.param().abi(), name_size, value.param().abi(), value_size) } #[inline] pub unsafe fn alljoyn_interfacedescription_property_getannotationscount(property: alljoyn_interfacedescription_property) -> usize { @@ -2433,103 +2433,103 @@ pub unsafe fn alljoyn_interfacedescription_property_getannotationscount(property #[inline] pub unsafe fn alljoyn_interfacedescription_setargdescription(iface: P0, member: P1, argname: P2, description: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), argname.into_param().abi(), description.into_param().abi()) + alljoyn_interfacedescription_setargdescription(iface.param().abi(), member.param().abi(), argname.param().abi(), description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setargdescriptionforlanguage(iface: P0, member: P1, arg: P2, description: P3, languagetag: P4) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), arg.into_param().abi(), description.into_param().abi(), languagetag.into_param().abi()) + alljoyn_interfacedescription_setargdescriptionforlanguage(iface.param().abi(), member.param().abi(), arg.param().abi(), description.param().abi(), languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescription(iface: P0, description: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setdescription(iface : alljoyn_interfacedescription, description : windows_core::PCSTR)); - alljoyn_interfacedescription_setdescription(iface.into_param().abi(), description.into_param().abi()) + alljoyn_interfacedescription_setdescription(iface.param().abi(), description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescriptionforlanguage(iface: P0, description: P1, languagetag: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(iface.into_param().abi(), description.into_param().abi(), languagetag.into_param().abi()) + alljoyn_interfacedescription_setdescriptionforlanguage(iface.param().abi(), description.param().abi(), languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescriptionlanguage(iface: P0, language: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setdescriptionlanguage(iface : alljoyn_interfacedescription, language : windows_core::PCSTR)); - alljoyn_interfacedescription_setdescriptionlanguage(iface.into_param().abi(), language.into_param().abi()) + alljoyn_interfacedescription_setdescriptionlanguage(iface.param().abi(), language.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setdescriptiontranslationcallback(iface: P0, translationcallback: alljoyn_interfacedescription_translation_callback_ptr) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_interfacedescription_setdescriptiontranslationcallback(iface : alljoyn_interfacedescription, translationcallback : alljoyn_interfacedescription_translation_callback_ptr)); - alljoyn_interfacedescription_setdescriptiontranslationcallback(iface.into_param().abi(), translationcallback) + alljoyn_interfacedescription_setdescriptiontranslationcallback(iface.param().abi(), translationcallback) } #[inline] pub unsafe fn alljoyn_interfacedescription_setmemberdescription(iface: P0, member: P1, description: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), description.into_param().abi()) + alljoyn_interfacedescription_setmemberdescription(iface.param().abi(), member.param().abi(), description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setmemberdescriptionforlanguage(iface: P0, member: P1, description: P2, languagetag: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), member.into_param().abi(), description.into_param().abi(), languagetag.into_param().abi()) + alljoyn_interfacedescription_setmemberdescriptionforlanguage(iface.param().abi(), member.param().abi(), description.param().abi(), languagetag.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setpropertydescription(iface: P0, name: P1, description: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), description.into_param().abi()) + alljoyn_interfacedescription_setpropertydescription(iface.param().abi(), name.param().abi(), description.param().abi()) } #[inline] pub unsafe fn alljoyn_interfacedescription_setpropertydescriptionforlanguage(iface: P0, name: P1, description: P2, languagetag: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(iface.into_param().abi(), name.into_param().abi(), description.into_param().abi(), languagetag.into_param().abi()) + alljoyn_interfacedescription_setpropertydescriptionforlanguage(iface.param().abi(), 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 { @@ -2539,31 +2539,31 @@ pub unsafe fn alljoyn_keystorelistener_create(callbacks: *const alljoyn_keystore #[inline] pub unsafe fn alljoyn_keystorelistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_keystorelistener_destroy(listener : alljoyn_keystorelistener)); - alljoyn_keystorelistener_destroy(listener.into_param().abi()) + alljoyn_keystorelistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_keystorelistener_getkeys(listener: P0, keystore: P1, sink: P2, sink_sz: *mut usize) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(listener.into_param().abi(), keystore.into_param().abi(), sink.into_param().abi(), sink_sz) + alljoyn_keystorelistener_getkeys(listener.param().abi(), keystore.param().abi(), sink.param().abi(), sink_sz) } #[inline] pub unsafe fn alljoyn_keystorelistener_putkeys(listener: P0, keystore: P1, source: P2, password: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(listener.into_param().abi(), keystore.into_param().abi(), source.into_param().abi(), password.into_param().abi()) + alljoyn_keystorelistener_putkeys(listener.param().abi(), keystore.param().abi(), 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 { @@ -2573,238 +2573,238 @@ pub unsafe fn alljoyn_keystorelistener_with_synchronization_create(callbacks: *c #[inline] pub unsafe fn alljoyn_message_create(bus: P0) -> alljoyn_message where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_create(bus : alljoyn_busattachment) -> alljoyn_message); - alljoyn_message_create(bus.into_param().abi()) + alljoyn_message_create(bus.param().abi()) } #[inline] pub unsafe fn alljoyn_message_description(msg: P0, str: P1, buf: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(msg.into_param().abi(), str.into_param().abi(), buf) + alljoyn_message_description(msg.param().abi(), str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_message_destroy(msg: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_destroy(msg : alljoyn_message)); - alljoyn_message_destroy(msg.into_param().abi()) + alljoyn_message_destroy(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_eql(one: P0, other: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_eql(one : alljoyn_message, other : alljoyn_message) -> i32); - alljoyn_message_eql(one.into_param().abi(), other.into_param().abi()) + alljoyn_message_eql(one.param().abi(), other.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getarg(msg: P0, argn: usize) -> alljoyn_msgarg where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getarg(msg : alljoyn_message, argn : usize) -> alljoyn_msgarg); - alljoyn_message_getarg(msg.into_param().abi(), argn) + alljoyn_message_getarg(msg.param().abi(), argn) } #[inline] pub unsafe fn alljoyn_message_getargs(msg: P0, numargs: *mut usize, args: *mut alljoyn_msgarg) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getargs(msg : alljoyn_message, numargs : *mut usize, args : *mut alljoyn_msgarg)); - alljoyn_message_getargs(msg.into_param().abi(), numargs, args) + alljoyn_message_getargs(msg.param().abi(), numargs, args) } #[inline] pub unsafe fn alljoyn_message_getauthmechanism(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getauthmechanism(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getauthmechanism(msg.into_param().abi()) + alljoyn_message_getauthmechanism(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getcallserial(msg: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getcallserial(msg : alljoyn_message) -> u32); - alljoyn_message_getcallserial(msg.into_param().abi()) + alljoyn_message_getcallserial(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getcompressiontoken(msg: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getcompressiontoken(msg : alljoyn_message) -> u32); - alljoyn_message_getcompressiontoken(msg.into_param().abi()) + alljoyn_message_getcompressiontoken(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getdestination(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getdestination(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getdestination(msg.into_param().abi()) + alljoyn_message_getdestination(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_geterrorname(msg: P0, errormessage: P1, errormessage_size: *mut usize) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(msg.into_param().abi(), errormessage.into_param().abi(), errormessage_size) + alljoyn_message_geterrorname(msg.param().abi(), errormessage.param().abi(), errormessage_size) } #[inline] pub unsafe fn alljoyn_message_getflags(msg: P0) -> u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getflags(msg : alljoyn_message) -> u8); - alljoyn_message_getflags(msg.into_param().abi()) + alljoyn_message_getflags(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getinterface(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getinterface(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getinterface(msg.into_param().abi()) + alljoyn_message_getinterface(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getmembername(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getmembername(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getmembername(msg.into_param().abi()) + alljoyn_message_getmembername(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getobjectpath(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getobjectpath(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getobjectpath(msg.into_param().abi()) + alljoyn_message_getobjectpath(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getreceiveendpointname(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getreceiveendpointname(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getreceiveendpointname(msg.into_param().abi()) + alljoyn_message_getreceiveendpointname(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getreplyserial(msg: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getreplyserial(msg : alljoyn_message) -> u32); - alljoyn_message_getreplyserial(msg.into_param().abi()) + alljoyn_message_getreplyserial(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getsender(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getsender(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getsender(msg.into_param().abi()) + alljoyn_message_getsender(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getsessionid(msg: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getsessionid(msg : alljoyn_message) -> u32); - alljoyn_message_getsessionid(msg.into_param().abi()) + alljoyn_message_getsessionid(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_getsignature(msg: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_getsignature(msg : alljoyn_message) -> windows_core::PCSTR); - alljoyn_message_getsignature(msg.into_param().abi()) + alljoyn_message_getsignature(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_gettimestamp(msg: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_gettimestamp(msg : alljoyn_message) -> u32); - alljoyn_message_gettimestamp(msg.into_param().abi()) + alljoyn_message_gettimestamp(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_gettype(msg: P0) -> alljoyn_messagetype where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_gettype(msg : alljoyn_message) -> alljoyn_messagetype); - alljoyn_message_gettype(msg.into_param().abi()) + alljoyn_message_gettype(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_isbroadcastsignal(msg: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isbroadcastsignal(msg : alljoyn_message) -> i32); - alljoyn_message_isbroadcastsignal(msg.into_param().abi()) + alljoyn_message_isbroadcastsignal(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_isencrypted(msg: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isencrypted(msg : alljoyn_message) -> i32); - alljoyn_message_isencrypted(msg.into_param().abi()) + alljoyn_message_isencrypted(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_isexpired(msg: P0, tillexpirems: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isexpired(msg : alljoyn_message, tillexpirems : *mut u32) -> i32); - alljoyn_message_isexpired(msg.into_param().abi(), tillexpirems) + alljoyn_message_isexpired(msg.param().abi(), tillexpirems) } #[inline] pub unsafe fn alljoyn_message_isglobalbroadcast(msg: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isglobalbroadcast(msg : alljoyn_message) -> i32); - alljoyn_message_isglobalbroadcast(msg.into_param().abi()) + alljoyn_message_isglobalbroadcast(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_issessionless(msg: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_issessionless(msg : alljoyn_message) -> i32); - alljoyn_message_issessionless(msg.into_param().abi()) + alljoyn_message_issessionless(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_isunreliable(msg: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_message_isunreliable(msg : alljoyn_message) -> i32); - alljoyn_message_isunreliable(msg.into_param().abi()) + alljoyn_message_isunreliable(msg.param().abi()) } #[inline] pub unsafe fn alljoyn_message_parseargs(msg: P0, signature: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(msg.into_param().abi(), signature.into_param().abi()) + alljoyn_message_parseargs(msg.param().abi(), signature.param().abi()) } #[inline] pub unsafe fn alljoyn_message_setendianess(endian: i8) { @@ -2814,11 +2814,11 @@ pub unsafe fn alljoyn_message_setendianess(endian: i8) { #[inline] pub unsafe fn alljoyn_message_tostring(msg: P0, str: P1, buf: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(msg.into_param().abi(), str.into_param().abi(), buf) + alljoyn_message_tostring(msg.param().abi(), str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_msgarg_array_create(size: usize) -> alljoyn_msgarg { @@ -2828,80 +2828,80 @@ pub unsafe fn alljoyn_msgarg_array_create(size: usize) -> alljoyn_msgarg { #[inline] pub unsafe fn alljoyn_msgarg_array_element(arg: P0, index: usize) -> alljoyn_msgarg where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_array_element(arg : alljoyn_msgarg, index : usize) -> alljoyn_msgarg); - alljoyn_msgarg_array_element(arg.into_param().abi(), index) + alljoyn_msgarg_array_element(arg.param().abi(), index) } #[inline] pub unsafe fn alljoyn_msgarg_array_get(args: P0, numargs: usize, signature: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(args.into_param().abi(), numargs, signature.into_param().abi()) + alljoyn_msgarg_array_get(args.param().abi(), numargs, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_array_set(args: P0, numargs: *mut usize, signature: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(args.into_param().abi(), numargs, signature.into_param().abi()) + alljoyn_msgarg_array_set(args.param().abi(), numargs, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_array_set_offset(args: P0, argoffset: usize, numargs: *mut usize, signature: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(args.into_param().abi(), argoffset, numargs, signature.into_param().abi()) + alljoyn_msgarg_array_set_offset(args.param().abi(), argoffset, numargs, signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_array_signature(values: P0, numvalues: usize, str: P1, buf: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(values.into_param().abi(), numvalues, str.into_param().abi(), buf) + alljoyn_msgarg_array_signature(values.param().abi(), numvalues, str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_msgarg_array_tostring(args: P0, numargs: usize, str: P1, buf: usize, indent: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(args.into_param().abi(), numargs, str.into_param().abi(), buf, indent) + alljoyn_msgarg_array_tostring(args.param().abi(), numargs, str.param().abi(), buf, indent) } #[inline] pub unsafe fn alljoyn_msgarg_clear(arg: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_clear(arg : alljoyn_msgarg)); - alljoyn_msgarg_clear(arg.into_param().abi()) + alljoyn_msgarg_clear(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_clone(destination: P0, source: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_clone(destination : alljoyn_msgarg, source : alljoyn_msgarg)); - alljoyn_msgarg_clone(destination.into_param().abi(), source.into_param().abi()) + alljoyn_msgarg_clone(destination.param().abi(), source.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_copy(source: P0) -> alljoyn_msgarg where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_copy(source : alljoyn_msgarg) -> alljoyn_msgarg); - alljoyn_msgarg_copy(source.into_param().abi()) + alljoyn_msgarg_copy(source.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_create() -> alljoyn_msgarg { @@ -2911,631 +2911,631 @@ pub unsafe fn alljoyn_msgarg_create() -> alljoyn_msgarg { #[inline] pub unsafe fn alljoyn_msgarg_create_and_set(signature: P0) -> alljoyn_msgarg where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "cdecl" fn alljoyn_msgarg_create_and_set(signature : windows_core::PCSTR) -> alljoyn_msgarg); - alljoyn_msgarg_create_and_set(signature.into_param().abi()) + alljoyn_msgarg_create_and_set(signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_destroy(arg: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_destroy(arg : alljoyn_msgarg)); - alljoyn_msgarg_destroy(arg.into_param().abi()) + alljoyn_msgarg_destroy(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_equal(lhv: P0, rhv: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_equal(lhv : alljoyn_msgarg, rhv : alljoyn_msgarg) -> i32); - alljoyn_msgarg_equal(lhv.into_param().abi(), rhv.into_param().abi()) + alljoyn_msgarg_equal(lhv.param().abi(), rhv.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_get(arg: P0, signature: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), signature.into_param().abi()) + alljoyn_msgarg_get(arg.param().abi(), signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_get_array_element(arg: P0, index: usize, element: *mut alljoyn_msgarg) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), index, element) + alljoyn_msgarg_get_array_element(arg.param().abi(), index, element) } #[inline] pub unsafe fn alljoyn_msgarg_get_array_elementsignature(arg: P0, index: usize) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), index) + alljoyn_msgarg_get_array_elementsignature(arg.param().abi(), index) } #[inline] pub unsafe fn alljoyn_msgarg_get_array_numberofelements(arg: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_array_numberofelements(arg : alljoyn_msgarg) -> usize); - alljoyn_msgarg_get_array_numberofelements(arg.into_param().abi()) + alljoyn_msgarg_get_array_numberofelements(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_get_bool(arg: P0, b: *mut i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_bool(arg : alljoyn_msgarg, b : *mut i32) -> QStatus); - alljoyn_msgarg_get_bool(arg.into_param().abi(), b) + alljoyn_msgarg_get_bool(arg.param().abi(), b) } #[inline] pub unsafe fn alljoyn_msgarg_get_bool_array(arg: P0, length: *mut usize, ab: *mut i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ab) + alljoyn_msgarg_get_bool_array(arg.param().abi(), length, ab) } #[inline] pub unsafe fn alljoyn_msgarg_get_double(arg: P0, d: *mut f64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_double(arg : alljoyn_msgarg, d : *mut f64) -> QStatus); - alljoyn_msgarg_get_double(arg.into_param().abi(), d) + alljoyn_msgarg_get_double(arg.param().abi(), d) } #[inline] pub unsafe fn alljoyn_msgarg_get_double_array(arg: P0, length: *mut usize, ad: *mut f64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ad) + alljoyn_msgarg_get_double_array(arg.param().abi(), length, ad) } #[inline] pub unsafe fn alljoyn_msgarg_get_int16(arg: P0, n: *mut i16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int16(arg : alljoyn_msgarg, n : *mut i16) -> QStatus); - alljoyn_msgarg_get_int16(arg.into_param().abi(), n) + alljoyn_msgarg_get_int16(arg.param().abi(), n) } #[inline] pub unsafe fn alljoyn_msgarg_get_int16_array(arg: P0, length: *mut usize, an: *mut i16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, an) + alljoyn_msgarg_get_int16_array(arg.param().abi(), length, an) } #[inline] pub unsafe fn alljoyn_msgarg_get_int32(arg: P0, i: *mut i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int32(arg : alljoyn_msgarg, i : *mut i32) -> QStatus); - alljoyn_msgarg_get_int32(arg.into_param().abi(), i) + alljoyn_msgarg_get_int32(arg.param().abi(), i) } #[inline] pub unsafe fn alljoyn_msgarg_get_int32_array(arg: P0, length: *mut usize, ai: *mut i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ai) + alljoyn_msgarg_get_int32_array(arg.param().abi(), length, ai) } #[inline] pub unsafe fn alljoyn_msgarg_get_int64(arg: P0, x: *mut i64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_int64(arg : alljoyn_msgarg, x : *mut i64) -> QStatus); - alljoyn_msgarg_get_int64(arg.into_param().abi(), x) + alljoyn_msgarg_get_int64(arg.param().abi(), x) } #[inline] pub unsafe fn alljoyn_msgarg_get_int64_array(arg: P0, length: *mut usize, ax: *mut i64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ax) + alljoyn_msgarg_get_int64_array(arg.param().abi(), length, ax) } #[inline] pub unsafe fn alljoyn_msgarg_get_objectpath(arg: P0, o: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_objectpath(arg : alljoyn_msgarg, o : *mut *mut i8) -> QStatus); - alljoyn_msgarg_get_objectpath(arg.into_param().abi(), o) + alljoyn_msgarg_get_objectpath(arg.param().abi(), o) } #[inline] pub unsafe fn alljoyn_msgarg_get_signature(arg: P0, g: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_signature(arg : alljoyn_msgarg, g : *mut *mut i8) -> QStatus); - alljoyn_msgarg_get_signature(arg.into_param().abi(), g) + alljoyn_msgarg_get_signature(arg.param().abi(), g) } #[inline] pub unsafe fn alljoyn_msgarg_get_string(arg: P0, s: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_string(arg : alljoyn_msgarg, s : *mut *mut i8) -> QStatus); - alljoyn_msgarg_get_string(arg.into_param().abi(), s) + alljoyn_msgarg_get_string(arg.param().abi(), s) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint16(arg: P0, q: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint16(arg : alljoyn_msgarg, q : *mut u16) -> QStatus); - alljoyn_msgarg_get_uint16(arg.into_param().abi(), q) + alljoyn_msgarg_get_uint16(arg.param().abi(), q) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint16_array(arg: P0, length: *mut usize, aq: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, aq) + alljoyn_msgarg_get_uint16_array(arg.param().abi(), length, aq) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint32(arg: P0, u: *mut u32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint32(arg : alljoyn_msgarg, u : *mut u32) -> QStatus); - alljoyn_msgarg_get_uint32(arg.into_param().abi(), u) + alljoyn_msgarg_get_uint32(arg.param().abi(), u) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint32_array(arg: P0, length: *mut usize, au: *mut u32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, au) + alljoyn_msgarg_get_uint32_array(arg.param().abi(), length, au) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint64(arg: P0, t: *mut u64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint64(arg : alljoyn_msgarg, t : *mut u64) -> QStatus); - alljoyn_msgarg_get_uint64(arg.into_param().abi(), t) + alljoyn_msgarg_get_uint64(arg.param().abi(), t) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint64_array(arg: P0, length: *mut usize, at: *mut u64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, at) + alljoyn_msgarg_get_uint64_array(arg.param().abi(), length, at) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint8(arg: P0, y: *mut u8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_uint8(arg : alljoyn_msgarg, y : *mut u8) -> QStatus); - alljoyn_msgarg_get_uint8(arg.into_param().abi(), y) + alljoyn_msgarg_get_uint8(arg.param().abi(), y) } #[inline] pub unsafe fn alljoyn_msgarg_get_uint8_array(arg: P0, length: *mut usize, ay: *mut u8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ay) + alljoyn_msgarg_get_uint8_array(arg.param().abi(), length, ay) } #[inline] pub unsafe fn alljoyn_msgarg_get_variant(arg: P0, v: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_get_variant(arg : alljoyn_msgarg, v : alljoyn_msgarg) -> QStatus); - alljoyn_msgarg_get_variant(arg.into_param().abi(), v.into_param().abi()) + alljoyn_msgarg_get_variant(arg.param().abi(), v.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_get_variant_array(arg: P0, signature: P1, length: *mut usize, av: *mut alljoyn_msgarg) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), signature.into_param().abi(), length, av) + alljoyn_msgarg_get_variant_array(arg.param().abi(), signature.param().abi(), length, av) } #[inline] pub unsafe fn alljoyn_msgarg_getdictelement(arg: P0, elemsig: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), elemsig.into_param().abi()) + alljoyn_msgarg_getdictelement(arg.param().abi(), elemsig.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_getkey(arg: P0) -> alljoyn_msgarg where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getkey(arg : alljoyn_msgarg) -> alljoyn_msgarg); - alljoyn_msgarg_getkey(arg.into_param().abi()) + alljoyn_msgarg_getkey(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_getmember(arg: P0, index: usize) -> alljoyn_msgarg where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getmember(arg : alljoyn_msgarg, index : usize) -> alljoyn_msgarg); - alljoyn_msgarg_getmember(arg.into_param().abi(), index) + alljoyn_msgarg_getmember(arg.param().abi(), index) } #[inline] pub unsafe fn alljoyn_msgarg_getnummembers(arg: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getnummembers(arg : alljoyn_msgarg) -> usize); - alljoyn_msgarg_getnummembers(arg.into_param().abi()) + alljoyn_msgarg_getnummembers(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_gettype(arg: P0) -> alljoyn_typeid where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_gettype(arg : alljoyn_msgarg) -> alljoyn_typeid); - alljoyn_msgarg_gettype(arg.into_param().abi()) + alljoyn_msgarg_gettype(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_getvalue(arg: P0) -> alljoyn_msgarg where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_getvalue(arg : alljoyn_msgarg) -> alljoyn_msgarg); - alljoyn_msgarg_getvalue(arg.into_param().abi()) + alljoyn_msgarg_getvalue(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_hassignature(arg: P0, signature: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), signature.into_param().abi()) + alljoyn_msgarg_hassignature(arg.param().abi(), signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set(arg: P0, signature: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), signature.into_param().abi()) + alljoyn_msgarg_set(arg.param().abi(), signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_and_stabilize(arg: P0, signature: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), signature.into_param().abi()) + alljoyn_msgarg_set_and_stabilize(arg.param().abi(), signature.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_bool(arg: P0, b: i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_bool(arg : alljoyn_msgarg, b : i32) -> QStatus); - alljoyn_msgarg_set_bool(arg.into_param().abi(), b) + alljoyn_msgarg_set_bool(arg.param().abi(), b) } #[inline] pub unsafe fn alljoyn_msgarg_set_bool_array(arg: P0, length: usize, ab: *mut i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ab) + alljoyn_msgarg_set_bool_array(arg.param().abi(), length, ab) } #[inline] pub unsafe fn alljoyn_msgarg_set_double(arg: P0, d: f64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_double(arg : alljoyn_msgarg, d : f64) -> QStatus); - alljoyn_msgarg_set_double(arg.into_param().abi(), d) + alljoyn_msgarg_set_double(arg.param().abi(), d) } #[inline] pub unsafe fn alljoyn_msgarg_set_double_array(arg: P0, length: usize, ad: *mut f64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ad) + alljoyn_msgarg_set_double_array(arg.param().abi(), length, ad) } #[inline] pub unsafe fn alljoyn_msgarg_set_int16(arg: P0, n: i16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int16(arg : alljoyn_msgarg, n : i16) -> QStatus); - alljoyn_msgarg_set_int16(arg.into_param().abi(), n) + alljoyn_msgarg_set_int16(arg.param().abi(), n) } #[inline] pub unsafe fn alljoyn_msgarg_set_int16_array(arg: P0, length: usize, an: *mut i16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, an) + alljoyn_msgarg_set_int16_array(arg.param().abi(), length, an) } #[inline] pub unsafe fn alljoyn_msgarg_set_int32(arg: P0, i: i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int32(arg : alljoyn_msgarg, i : i32) -> QStatus); - alljoyn_msgarg_set_int32(arg.into_param().abi(), i) + alljoyn_msgarg_set_int32(arg.param().abi(), i) } #[inline] pub unsafe fn alljoyn_msgarg_set_int32_array(arg: P0, length: usize, ai: *mut i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ai) + alljoyn_msgarg_set_int32_array(arg.param().abi(), length, ai) } #[inline] pub unsafe fn alljoyn_msgarg_set_int64(arg: P0, x: i64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_int64(arg : alljoyn_msgarg, x : i64) -> QStatus); - alljoyn_msgarg_set_int64(arg.into_param().abi(), x) + alljoyn_msgarg_set_int64(arg.param().abi(), x) } #[inline] pub unsafe fn alljoyn_msgarg_set_int64_array(arg: P0, length: usize, ax: *mut i64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ax) + alljoyn_msgarg_set_int64_array(arg.param().abi(), length, ax) } #[inline] pub unsafe fn alljoyn_msgarg_set_objectpath(arg: P0, o: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), o.into_param().abi()) + alljoyn_msgarg_set_objectpath(arg.param().abi(), o.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_objectpath_array(arg: P0, length: usize, ao: *const *const i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ao) + alljoyn_msgarg_set_objectpath_array(arg.param().abi(), length, ao) } #[inline] pub unsafe fn alljoyn_msgarg_set_signature(arg: P0, g: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), g.into_param().abi()) + alljoyn_msgarg_set_signature(arg.param().abi(), g.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_signature_array(arg: P0, length: usize, ag: *const *const i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ag) + alljoyn_msgarg_set_signature_array(arg.param().abi(), length, ag) } #[inline] pub unsafe fn alljoyn_msgarg_set_string(arg: P0, s: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), s.into_param().abi()) + alljoyn_msgarg_set_string(arg.param().abi(), s.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_set_string_array(arg: P0, length: usize, r#as: *const *const i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, r#as) + alljoyn_msgarg_set_string_array(arg.param().abi(), length, r#as) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint16(arg: P0, q: u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint16(arg : alljoyn_msgarg, q : u16) -> QStatus); - alljoyn_msgarg_set_uint16(arg.into_param().abi(), q) + alljoyn_msgarg_set_uint16(arg.param().abi(), q) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint16_array(arg: P0, length: usize, aq: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, aq) + alljoyn_msgarg_set_uint16_array(arg.param().abi(), length, aq) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint32(arg: P0, u: u32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint32(arg : alljoyn_msgarg, u : u32) -> QStatus); - alljoyn_msgarg_set_uint32(arg.into_param().abi(), u) + alljoyn_msgarg_set_uint32(arg.param().abi(), u) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint32_array(arg: P0, length: usize, au: *mut u32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, au) + alljoyn_msgarg_set_uint32_array(arg.param().abi(), length, au) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint64(arg: P0, t: u64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint64(arg : alljoyn_msgarg, t : u64) -> QStatus); - alljoyn_msgarg_set_uint64(arg.into_param().abi(), t) + alljoyn_msgarg_set_uint64(arg.param().abi(), t) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint64_array(arg: P0, length: usize, at: *mut u64) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, at) + alljoyn_msgarg_set_uint64_array(arg.param().abi(), length, at) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint8(arg: P0, y: u8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_set_uint8(arg : alljoyn_msgarg, y : u8) -> QStatus); - alljoyn_msgarg_set_uint8(arg.into_param().abi(), y) + alljoyn_msgarg_set_uint8(arg.param().abi(), y) } #[inline] pub unsafe fn alljoyn_msgarg_set_uint8_array(arg: P0, length: usize, ay: *mut u8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(arg.into_param().abi(), length, ay) + alljoyn_msgarg_set_uint8_array(arg.param().abi(), length, ay) } #[inline] pub unsafe fn alljoyn_msgarg_setdictentry(arg: P0, key: P1, value: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_setdictentry(arg : alljoyn_msgarg, key : alljoyn_msgarg, value : alljoyn_msgarg) -> QStatus); - alljoyn_msgarg_setdictentry(arg.into_param().abi(), key.into_param().abi(), value.into_param().abi()) + alljoyn_msgarg_setdictentry(arg.param().abi(), key.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_setstruct(arg: P0, struct_members: P1, num_members: usize) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_setstruct(arg : alljoyn_msgarg, struct_members : alljoyn_msgarg, num_members : usize) -> QStatus); - alljoyn_msgarg_setstruct(arg.into_param().abi(), struct_members.into_param().abi(), num_members) + alljoyn_msgarg_setstruct(arg.param().abi(), struct_members.param().abi(), num_members) } #[inline] pub unsafe fn alljoyn_msgarg_signature(arg: P0, str: P1, buf: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), str.into_param().abi(), buf) + alljoyn_msgarg_signature(arg.param().abi(), str.param().abi(), buf) } #[inline] pub unsafe fn alljoyn_msgarg_stabilize(arg: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_msgarg_stabilize(arg : alljoyn_msgarg)); - alljoyn_msgarg_stabilize(arg.into_param().abi()) + alljoyn_msgarg_stabilize(arg.param().abi()) } #[inline] pub unsafe fn alljoyn_msgarg_tostring(arg: P0, str: P1, buf: usize, indent: usize) -> usize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(arg.into_param().abi(), str.into_param().abi(), buf, indent) + alljoyn_msgarg_tostring(arg.param().abi(), str.param().abi(), buf, indent) } #[inline] pub unsafe fn alljoyn_observer_create(bus: P0, mandatoryinterfaces: *const *const i8, nummandatoryinterfaces: usize) -> alljoyn_observer where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_create(bus : alljoyn_busattachment, mandatoryinterfaces : *const *const i8, nummandatoryinterfaces : usize) -> alljoyn_observer); - alljoyn_observer_create(bus.into_param().abi(), mandatoryinterfaces, nummandatoryinterfaces) + alljoyn_observer_create(bus.param().abi(), mandatoryinterfaces, nummandatoryinterfaces) } #[inline] pub unsafe fn alljoyn_observer_destroy(observer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_destroy(observer : alljoyn_observer)); - alljoyn_observer_destroy(observer.into_param().abi()) + alljoyn_observer_destroy(observer.param().abi()) } #[inline] pub unsafe fn alljoyn_observer_get(observer: P0, uniquebusname: P1, objectpath: P2) -> alljoyn_proxybusobject_ref where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(observer.into_param().abi(), uniquebusname.into_param().abi(), objectpath.into_param().abi()) + alljoyn_observer_get(observer.param().abi(), uniquebusname.param().abi(), objectpath.param().abi()) } #[inline] pub unsafe fn alljoyn_observer_getfirst(observer: P0) -> alljoyn_proxybusobject_ref where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_getfirst(observer : alljoyn_observer) -> alljoyn_proxybusobject_ref); - alljoyn_observer_getfirst(observer.into_param().abi()) + alljoyn_observer_getfirst(observer.param().abi()) } #[inline] pub unsafe fn alljoyn_observer_getnext(observer: P0, proxyref: P1) -> alljoyn_proxybusobject_ref where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_getnext(observer : alljoyn_observer, proxyref : alljoyn_proxybusobject_ref) -> alljoyn_proxybusobject_ref); - alljoyn_observer_getnext(observer.into_param().abi(), proxyref.into_param().abi()) + alljoyn_observer_getnext(observer.param().abi(), proxyref.param().abi()) } #[inline] pub unsafe fn alljoyn_observer_registerlistener(observer: P0, listener: P1, triggeronexisting: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_registerlistener(observer : alljoyn_observer, listener : alljoyn_observerlistener, triggeronexisting : i32)); - alljoyn_observer_registerlistener(observer.into_param().abi(), listener.into_param().abi(), triggeronexisting) + alljoyn_observer_registerlistener(observer.param().abi(), listener.param().abi(), triggeronexisting) } #[inline] pub unsafe fn alljoyn_observer_unregisteralllisteners(observer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_unregisteralllisteners(observer : alljoyn_observer)); - alljoyn_observer_unregisteralllisteners(observer.into_param().abi()) + alljoyn_observer_unregisteralllisteners(observer.param().abi()) } #[inline] pub unsafe fn alljoyn_observer_unregisterlistener(observer: P0, listener: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observer_unregisterlistener(observer : alljoyn_observer, listener : alljoyn_observerlistener)); - alljoyn_observer_unregisterlistener(observer.into_param().abi(), listener.into_param().abi()) + alljoyn_observer_unregisterlistener(observer.param().abi(), listener.param().abi()) } #[inline] pub unsafe fn alljoyn_observerlistener_create(callback: *const alljoyn_observerlistener_callback, context: *const core::ffi::c_void) -> alljoyn_observerlistener { @@ -3545,19 +3545,19 @@ pub unsafe fn alljoyn_observerlistener_create(callback: *const alljoyn_observerl #[inline] pub unsafe fn alljoyn_observerlistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_observerlistener_destroy(listener : alljoyn_observerlistener)); - alljoyn_observerlistener_destroy(listener.into_param().abi()) + alljoyn_observerlistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_passwordmanager_setcredentials(authmechanism: P0, password: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_passwordmanager_setcredentials(authmechanism : windows_core::PCSTR, password : windows_core::PCSTR) -> QStatus); - alljoyn_passwordmanager_setcredentials(authmechanism.into_param().abi(), password.into_param().abi()) + alljoyn_passwordmanager_setcredentials(authmechanism.param().abi(), password.param().abi()) } #[inline] pub unsafe fn alljoyn_permissionconfigurationlistener_create(callbacks: *const alljoyn_permissionconfigurationlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_permissionconfigurationlistener { @@ -3567,10 +3567,10 @@ pub unsafe fn alljoyn_permissionconfigurationlistener_create(callbacks: *const a #[inline] pub unsafe fn alljoyn_permissionconfigurationlistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurationlistener_destroy(listener : alljoyn_permissionconfigurationlistener)); - alljoyn_permissionconfigurationlistener_destroy(listener.into_param().abi()) + alljoyn_permissionconfigurationlistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_certificatechain_destroy(certificatechain: *mut i8) { @@ -3590,42 +3590,42 @@ pub unsafe fn alljoyn_permissionconfigurator_certificateidarray_cleanup(certific #[inline] pub unsafe fn alljoyn_permissionconfigurator_claim(configurator: P0, cakey: *mut i8, identitycertificatechain: *mut i8, groupid: *const u8, groupsize: usize, groupauthority: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(configurator.into_param().abi(), cakey, identitycertificatechain, groupid, groupsize, groupauthority, manifestsxmls, manifestscount) + alljoyn_permissionconfigurator_claim(configurator.param().abi(), cakey, identitycertificatechain, groupid, groupsize, groupauthority, manifestsxmls, manifestscount) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_endmanagement(configurator: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_endmanagement(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_endmanagement(configurator.into_param().abi()) + alljoyn_permissionconfigurator_endmanagement(configurator.param().abi()) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getapplicationstate(configurator: P0, state: *mut alljoyn_applicationstate) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getapplicationstate(configurator : alljoyn_permissionconfigurator, state : *mut alljoyn_applicationstate) -> QStatus); - alljoyn_permissionconfigurator_getapplicationstate(configurator.into_param().abi(), state) + alljoyn_permissionconfigurator_getapplicationstate(configurator.param().abi(), state) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getclaimcapabilities(configurator: P0, claimcapabilities: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getclaimcapabilities(configurator : alljoyn_permissionconfigurator, claimcapabilities : *mut u16) -> QStatus); - alljoyn_permissionconfigurator_getclaimcapabilities(configurator.into_param().abi(), claimcapabilities) + alljoyn_permissionconfigurator_getclaimcapabilities(configurator.param().abi(), claimcapabilities) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(configurator: P0, additionalinfo: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(configurator : alljoyn_permissionconfigurator, additionalinfo : *mut u16) -> QStatus); - alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(configurator.into_param().abi(), additionalinfo) + alljoyn_permissionconfigurator_getclaimcapabilitiesadditionalinfo(configurator.param().abi(), additionalinfo) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getdefaultclaimcapabilities() -> u16 { @@ -3635,82 +3635,82 @@ pub unsafe fn alljoyn_permissionconfigurator_getdefaultclaimcapabilities() -> u1 #[inline] pub unsafe fn alljoyn_permissionconfigurator_getdefaultpolicy(configurator: P0, policyxml: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getdefaultpolicy(configurator : alljoyn_permissionconfigurator, policyxml : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getdefaultpolicy(configurator.into_param().abi(), policyxml) + alljoyn_permissionconfigurator_getdefaultpolicy(configurator.param().abi(), policyxml) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getidentity(configurator: P0, identitycertificatechain: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getidentity(configurator : alljoyn_permissionconfigurator, identitycertificatechain : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getidentity(configurator.into_param().abi(), identitycertificatechain) + alljoyn_permissionconfigurator_getidentity(configurator.param().abi(), identitycertificatechain) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getidentitycertificateid(configurator: P0, certificateid: *mut alljoyn_certificateid) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getidentitycertificateid(configurator : alljoyn_permissionconfigurator, certificateid : *mut alljoyn_certificateid) -> QStatus); - alljoyn_permissionconfigurator_getidentitycertificateid(configurator.into_param().abi(), certificateid) + alljoyn_permissionconfigurator_getidentitycertificateid(configurator.param().abi(), certificateid) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getmanifests(configurator: P0, manifestarray: *mut alljoyn_manifestarray) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getmanifests(configurator : alljoyn_permissionconfigurator, manifestarray : *mut alljoyn_manifestarray) -> QStatus); - alljoyn_permissionconfigurator_getmanifests(configurator.into_param().abi(), manifestarray) + alljoyn_permissionconfigurator_getmanifests(configurator.param().abi(), manifestarray) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getmanifesttemplate(configurator: P0, manifesttemplatexml: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getmanifesttemplate(configurator : alljoyn_permissionconfigurator, manifesttemplatexml : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getmanifesttemplate(configurator.into_param().abi(), manifesttemplatexml) + alljoyn_permissionconfigurator_getmanifesttemplate(configurator.param().abi(), manifesttemplatexml) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getmembershipsummaries(configurator: P0, certificateids: *mut alljoyn_certificateidarray) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getmembershipsummaries(configurator : alljoyn_permissionconfigurator, certificateids : *mut alljoyn_certificateidarray) -> QStatus); - alljoyn_permissionconfigurator_getmembershipsummaries(configurator.into_param().abi(), certificateids) + alljoyn_permissionconfigurator_getmembershipsummaries(configurator.param().abi(), certificateids) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getpolicy(configurator: P0, policyxml: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getpolicy(configurator : alljoyn_permissionconfigurator, policyxml : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getpolicy(configurator.into_param().abi(), policyxml) + alljoyn_permissionconfigurator_getpolicy(configurator.param().abi(), policyxml) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_getpublickey(configurator: P0, publickey: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_getpublickey(configurator : alljoyn_permissionconfigurator, publickey : *mut *mut i8) -> QStatus); - alljoyn_permissionconfigurator_getpublickey(configurator.into_param().abi(), publickey) + alljoyn_permissionconfigurator_getpublickey(configurator.param().abi(), publickey) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_installmanifests(configurator: P0, manifestsxmls: *mut *mut i8, manifestscount: usize, append: i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(configurator.into_param().abi(), manifestsxmls, manifestscount, append) + alljoyn_permissionconfigurator_installmanifests(configurator.param().abi(), manifestsxmls, manifestscount, append) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_installmembership(configurator: P0, membershipcertificatechain: *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_installmembership(configurator : alljoyn_permissionconfigurator, membershipcertificatechain : *mut i8) -> QStatus); - alljoyn_permissionconfigurator_installmembership(configurator.into_param().abi(), membershipcertificatechain) + alljoyn_permissionconfigurator_installmembership(configurator.param().abi(), membershipcertificatechain) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_manifestarray_cleanup(manifestarray: *mut alljoyn_manifestarray) { @@ -3735,82 +3735,82 @@ pub unsafe fn alljoyn_permissionconfigurator_publickey_destroy(publickey: *mut i #[inline] pub unsafe fn alljoyn_permissionconfigurator_removemembership(configurator: P0, serial: *const u8, seriallen: usize, issuerpublickey: *mut i8, issueraki: *const u8, issuerakilen: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(configurator.into_param().abi(), serial, seriallen, issuerpublickey, issueraki, issuerakilen) + alljoyn_permissionconfigurator_removemembership(configurator.param().abi(), serial, seriallen, issuerpublickey, issueraki, issuerakilen) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_reset(configurator: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_reset(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_reset(configurator.into_param().abi()) + alljoyn_permissionconfigurator_reset(configurator.param().abi()) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_resetpolicy(configurator: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_resetpolicy(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_resetpolicy(configurator.into_param().abi()) + alljoyn_permissionconfigurator_resetpolicy(configurator.param().abi()) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setapplicationstate(configurator: P0, state: alljoyn_applicationstate) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setapplicationstate(configurator : alljoyn_permissionconfigurator, state : alljoyn_applicationstate) -> QStatus); - alljoyn_permissionconfigurator_setapplicationstate(configurator.into_param().abi(), state) + alljoyn_permissionconfigurator_setapplicationstate(configurator.param().abi(), state) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setclaimcapabilities(configurator: P0, claimcapabilities: u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setclaimcapabilities(configurator : alljoyn_permissionconfigurator, claimcapabilities : u16) -> QStatus); - alljoyn_permissionconfigurator_setclaimcapabilities(configurator.into_param().abi(), claimcapabilities) + alljoyn_permissionconfigurator_setclaimcapabilities(configurator.param().abi(), claimcapabilities) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(configurator: P0, additionalinfo: u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(configurator : alljoyn_permissionconfigurator, additionalinfo : u16) -> QStatus); - alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(configurator.into_param().abi(), additionalinfo) + alljoyn_permissionconfigurator_setclaimcapabilitiesadditionalinfo(configurator.param().abi(), additionalinfo) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_setmanifesttemplatefromxml(configurator: P0, manifesttemplatexml: *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_setmanifesttemplatefromxml(configurator : alljoyn_permissionconfigurator, manifesttemplatexml : *mut i8) -> QStatus); - alljoyn_permissionconfigurator_setmanifesttemplatefromxml(configurator.into_param().abi(), manifesttemplatexml) + alljoyn_permissionconfigurator_setmanifesttemplatefromxml(configurator.param().abi(), manifesttemplatexml) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_startmanagement(configurator: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_startmanagement(configurator : alljoyn_permissionconfigurator) -> QStatus); - alljoyn_permissionconfigurator_startmanagement(configurator.into_param().abi()) + alljoyn_permissionconfigurator_startmanagement(configurator.param().abi()) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_updateidentity(configurator: P0, identitycertificatechain: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(configurator.into_param().abi(), identitycertificatechain, manifestsxmls, manifestscount) + alljoyn_permissionconfigurator_updateidentity(configurator.param().abi(), identitycertificatechain, manifestsxmls, manifestscount) } #[inline] pub unsafe fn alljoyn_permissionconfigurator_updatepolicy(configurator: P0, policyxml: *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_permissionconfigurator_updatepolicy(configurator : alljoyn_permissionconfigurator, policyxml : *mut i8) -> QStatus); - alljoyn_permissionconfigurator_updatepolicy(configurator.into_param().abi(), policyxml) + alljoyn_permissionconfigurator_updatepolicy(configurator.param().abi(), policyxml) } #[inline] pub unsafe fn alljoyn_pinglistener_create(callback: *const alljoyn_pinglistener_callback, context: *const core::ffi::c_void) -> alljoyn_pinglistener { @@ -3820,397 +3820,397 @@ pub unsafe fn alljoyn_pinglistener_create(callback: *const alljoyn_pinglistener_ #[inline] pub unsafe fn alljoyn_pinglistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_pinglistener_destroy(listener : alljoyn_pinglistener)); - alljoyn_pinglistener_destroy(listener.into_param().abi()) + alljoyn_pinglistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_addchild(proxyobj: P0, child: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_addchild(proxyobj : alljoyn_proxybusobject, child : alljoyn_proxybusobject) -> QStatus); - alljoyn_proxybusobject_addchild(proxyobj.into_param().abi(), child.into_param().abi()) + alljoyn_proxybusobject_addchild(proxyobj.param().abi(), child.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_addinterface(proxyobj: P0, iface: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_addinterface(proxyobj : alljoyn_proxybusobject, iface : alljoyn_interfacedescription) -> QStatus); - alljoyn_proxybusobject_addinterface(proxyobj.into_param().abi(), iface.into_param().abi()) + alljoyn_proxybusobject_addinterface(proxyobj.param().abi(), iface.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_addinterface_by_name(proxyobj: P0, name: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), name.into_param().abi()) + alljoyn_proxybusobject_addinterface_by_name(proxyobj.param().abi(), name.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_copy(source: P0) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_copy(source : alljoyn_proxybusobject) -> alljoyn_proxybusobject); - alljoyn_proxybusobject_copy(source.into_param().abi()) + alljoyn_proxybusobject_copy(source.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_create(bus: P0, service: P1, path: P2, sessionid: u32) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(bus.into_param().abi(), service.into_param().abi(), path.into_param().abi(), sessionid) + alljoyn_proxybusobject_create(bus.param().abi(), service.param().abi(), path.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_proxybusobject_create_secure(bus: P0, service: P1, path: P2, sessionid: u32) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(bus.into_param().abi(), service.into_param().abi(), path.into_param().abi(), sessionid) + alljoyn_proxybusobject_create_secure(bus.param().abi(), service.param().abi(), path.param().abi(), sessionid) } #[inline] pub unsafe fn alljoyn_proxybusobject_destroy(proxyobj: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_destroy(proxyobj : alljoyn_proxybusobject)); - alljoyn_proxybusobject_destroy(proxyobj.into_param().abi()) + alljoyn_proxybusobject_destroy(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_enablepropertycaching(proxyobj: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_enablepropertycaching(proxyobj : alljoyn_proxybusobject)); - alljoyn_proxybusobject_enablepropertycaching(proxyobj.into_param().abi()) + alljoyn_proxybusobject_enablepropertycaching(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getallproperties(proxyobj: P0, iface: P1, values: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(proxyobj.into_param().abi(), iface.into_param().abi(), values.into_param().abi()) + alljoyn_proxybusobject_getallproperties(proxyobj.param().abi(), iface.param().abi(), values.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getallpropertiesasync(proxyobj: P0, iface: P1, callback: alljoyn_proxybusobject_listener_getallpropertiescb_ptr, timeout: u32, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), iface.into_param().abi(), callback, timeout, context) + alljoyn_proxybusobject_getallpropertiesasync(proxyobj.param().abi(), iface.param().abi(), callback, timeout, context) } #[inline] pub unsafe fn alljoyn_proxybusobject_getchild(proxyobj: P0, path: P1) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), path.into_param().abi()) + alljoyn_proxybusobject_getchild(proxyobj.param().abi(), path.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getchildren(proxyobj: P0, children: *mut alljoyn_proxybusobject, numchildren: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getchildren(proxyobj : alljoyn_proxybusobject, children : *mut alljoyn_proxybusobject, numchildren : usize) -> usize); - alljoyn_proxybusobject_getchildren(proxyobj.into_param().abi(), children, numchildren) + alljoyn_proxybusobject_getchildren(proxyobj.param().abi(), children, numchildren) } #[inline] pub unsafe fn alljoyn_proxybusobject_getinterface(proxyobj: P0, iface: P1) -> alljoyn_interfacedescription where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), iface.into_param().abi()) + alljoyn_proxybusobject_getinterface(proxyobj.param().abi(), iface.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getinterfaces(proxyobj: P0, ifaces: *const alljoyn_interfacedescription, numifaces: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getinterfaces(proxyobj : alljoyn_proxybusobject, ifaces : *const alljoyn_interfacedescription, numifaces : usize) -> usize); - alljoyn_proxybusobject_getinterfaces(proxyobj.into_param().abi(), ifaces, numifaces) + alljoyn_proxybusobject_getinterfaces(proxyobj.param().abi(), ifaces, numifaces) } #[inline] pub unsafe fn alljoyn_proxybusobject_getpath(proxyobj: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getpath(proxyobj : alljoyn_proxybusobject) -> windows_core::PCSTR); - alljoyn_proxybusobject_getpath(proxyobj.into_param().abi()) + alljoyn_proxybusobject_getpath(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getproperty(proxyobj: P0, iface: P1, property: P2, value: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(proxyobj.into_param().abi(), iface.into_param().abi(), property.into_param().abi(), value.into_param().abi()) + alljoyn_proxybusobject_getproperty(proxyobj.param().abi(), iface.param().abi(), property.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getpropertyasync(proxyobj: P0, iface: P1, property: P2, callback: alljoyn_proxybusobject_listener_getpropertycb_ptr, timeout: u32, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(proxyobj.into_param().abi(), iface.into_param().abi(), property.into_param().abi(), callback, timeout, context) + alljoyn_proxybusobject_getpropertyasync(proxyobj.param().abi(), iface.param().abi(), property.param().abi(), callback, timeout, context) } #[inline] pub unsafe fn alljoyn_proxybusobject_getservicename(proxyobj: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getservicename(proxyobj : alljoyn_proxybusobject) -> windows_core::PCSTR); - alljoyn_proxybusobject_getservicename(proxyobj.into_param().abi()) + alljoyn_proxybusobject_getservicename(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getsessionid(proxyobj: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getsessionid(proxyobj : alljoyn_proxybusobject) -> u32); - alljoyn_proxybusobject_getsessionid(proxyobj.into_param().abi()) + alljoyn_proxybusobject_getsessionid(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_getuniquename(proxyobj: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_getuniquename(proxyobj : alljoyn_proxybusobject) -> windows_core::PCSTR); - alljoyn_proxybusobject_getuniquename(proxyobj.into_param().abi()) + alljoyn_proxybusobject_getuniquename(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_implementsinterface(proxyobj: P0, iface: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), iface.into_param().abi()) + alljoyn_proxybusobject_implementsinterface(proxyobj.param().abi(), iface.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_introspectremoteobject(proxyobj: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_introspectremoteobject(proxyobj : alljoyn_proxybusobject) -> QStatus); - alljoyn_proxybusobject_introspectremoteobject(proxyobj.into_param().abi()) + alljoyn_proxybusobject_introspectremoteobject(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_introspectremoteobjectasync(proxyobj: P0, callback: alljoyn_proxybusobject_listener_introspectcb_ptr, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(proxyobj.into_param().abi(), callback, context) + alljoyn_proxybusobject_introspectremoteobjectasync(proxyobj.param().abi(), callback, context) } #[inline] pub unsafe fn alljoyn_proxybusobject_issecure(proxyobj: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_issecure(proxyobj : alljoyn_proxybusobject) -> i32); - alljoyn_proxybusobject_issecure(proxyobj.into_param().abi()) + alljoyn_proxybusobject_issecure(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_isvalid(proxyobj: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_isvalid(proxyobj : alljoyn_proxybusobject) -> i32); - alljoyn_proxybusobject_isvalid(proxyobj.into_param().abi()) + alljoyn_proxybusobject_isvalid(proxyobj.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall(proxyobj: P0, ifacename: P1, methodname: P2, args: P3, numargs: usize, replymsg: P4, timeout: u32, flags: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(proxyobj.into_param().abi(), ifacename.into_param().abi(), methodname.into_param().abi(), args.into_param().abi(), numargs, replymsg.into_param().abi(), timeout, flags) + alljoyn_proxybusobject_methodcall(proxyobj.param().abi(), ifacename.param().abi(), methodname.param().abi(), args.param().abi(), numargs, replymsg.param().abi(), timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall_member(proxyobj: P0, method: alljoyn_interfacedescription_member, args: P1, numargs: usize, replymsg: P2, timeout: u32, flags: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(proxyobj.into_param().abi(), core::mem::transmute(method), args.into_param().abi(), numargs, replymsg.into_param().abi(), timeout, flags) + alljoyn_proxybusobject_methodcall_member(proxyobj.param().abi(), core::mem::transmute(method), args.param().abi(), numargs, replymsg.param().abi(), timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall_member_noreply(proxyobj: P0, method: alljoyn_interfacedescription_member, args: P1, numargs: usize, flags: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(proxyobj.into_param().abi(), core::mem::transmute(method), args.into_param().abi(), numargs, flags) + alljoyn_proxybusobject_methodcall_member_noreply(proxyobj.param().abi(), core::mem::transmute(method), args.param().abi(), numargs, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcall_noreply(proxyobj: P0, ifacename: P1, methodname: P2, args: P3, numargs: usize, flags: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(proxyobj.into_param().abi(), ifacename.into_param().abi(), methodname.into_param().abi(), args.into_param().abi(), numargs, flags) + alljoyn_proxybusobject_methodcall_noreply(proxyobj.param().abi(), ifacename.param().abi(), methodname.param().abi(), args.param().abi(), numargs, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcallasync(proxyobj: P0, ifacename: P1, methodname: P2, replyfunc: alljoyn_messagereceiver_replyhandler_ptr, args: P3, numargs: usize, context: *mut core::ffi::c_void, timeout: u32, flags: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(proxyobj.into_param().abi(), ifacename.into_param().abi(), methodname.into_param().abi(), replyfunc, args.into_param().abi(), numargs, context, timeout, flags) + alljoyn_proxybusobject_methodcallasync(proxyobj.param().abi(), ifacename.param().abi(), methodname.param().abi(), replyfunc, args.param().abi(), numargs, context, timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_methodcallasync_member(proxyobj: P0, method: alljoyn_interfacedescription_member, replyfunc: alljoyn_messagereceiver_replyhandler_ptr, args: P1, numargs: usize, context: *mut core::ffi::c_void, timeout: u32, flags: u8) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(proxyobj.into_param().abi(), core::mem::transmute(method), replyfunc, args.into_param().abi(), numargs, context, timeout, flags) + alljoyn_proxybusobject_methodcallasync_member(proxyobj.param().abi(), core::mem::transmute(method), replyfunc, args.param().abi(), numargs, context, timeout, flags) } #[inline] pub unsafe fn alljoyn_proxybusobject_parsexml(proxyobj: P0, xml: P1, identifier: P2) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(proxyobj.into_param().abi(), xml.into_param().abi(), identifier.into_param().abi()) + alljoyn_proxybusobject_parsexml(proxyobj.param().abi(), xml.param().abi(), identifier.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_create(proxy: P0) -> alljoyn_proxybusobject_ref where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_create(proxy : alljoyn_proxybusobject) -> alljoyn_proxybusobject_ref); - alljoyn_proxybusobject_ref_create(proxy.into_param().abi()) + alljoyn_proxybusobject_ref_create(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_decref(r#ref: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_decref(r#ref : alljoyn_proxybusobject_ref)); - alljoyn_proxybusobject_ref_decref(r#ref.into_param().abi()) + alljoyn_proxybusobject_ref_decref(r#ref.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_get(r#ref: P0) -> alljoyn_proxybusobject where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_get(r#ref : alljoyn_proxybusobject_ref) -> alljoyn_proxybusobject); - alljoyn_proxybusobject_ref_get(r#ref.into_param().abi()) + alljoyn_proxybusobject_ref_get(r#ref.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_ref_incref(r#ref: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_ref_incref(r#ref : alljoyn_proxybusobject_ref)); - alljoyn_proxybusobject_ref_incref(r#ref.into_param().abi()) + alljoyn_proxybusobject_ref_incref(r#ref.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_registerpropertieschangedlistener(proxyobj: P0, iface: P1, properties: *const *const i8, numproperties: usize, callback: alljoyn_proxybusobject_listener_propertieschanged_ptr, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), iface.into_param().abi(), properties, numproperties, callback, context) + alljoyn_proxybusobject_registerpropertieschangedlistener(proxyobj.param().abi(), iface.param().abi(), properties, numproperties, callback, context) } #[inline] pub unsafe fn alljoyn_proxybusobject_removechild(proxyobj: P0, path: P1) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), path.into_param().abi()) + alljoyn_proxybusobject_removechild(proxyobj.param().abi(), path.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_secureconnection(proxyobj: P0, forceauth: i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_secureconnection(proxyobj : alljoyn_proxybusobject, forceauth : i32) -> QStatus); - alljoyn_proxybusobject_secureconnection(proxyobj.into_param().abi(), forceauth) + alljoyn_proxybusobject_secureconnection(proxyobj.param().abi(), forceauth) } #[inline] pub unsafe fn alljoyn_proxybusobject_secureconnectionasync(proxyobj: P0, forceauth: i32) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_proxybusobject_secureconnectionasync(proxyobj : alljoyn_proxybusobject, forceauth : i32) -> QStatus); - alljoyn_proxybusobject_secureconnectionasync(proxyobj.into_param().abi(), forceauth) + alljoyn_proxybusobject_secureconnectionasync(proxyobj.param().abi(), forceauth) } #[inline] pub unsafe fn alljoyn_proxybusobject_setproperty(proxyobj: P0, iface: P1, property: P2, value: P3) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(proxyobj.into_param().abi(), iface.into_param().abi(), property.into_param().abi(), value.into_param().abi()) + alljoyn_proxybusobject_setproperty(proxyobj.param().abi(), iface.param().abi(), property.param().abi(), value.param().abi()) } #[inline] pub unsafe fn alljoyn_proxybusobject_setpropertyasync(proxyobj: P0, iface: P1, property: P2, value: P3, callback: alljoyn_proxybusobject_listener_setpropertycb_ptr, timeout: u32, context: *mut core::ffi::c_void) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(proxyobj.into_param().abi(), iface.into_param().abi(), property.into_param().abi(), value.into_param().abi(), callback, timeout, context) + alljoyn_proxybusobject_setpropertyasync(proxyobj.param().abi(), iface.param().abi(), property.param().abi(), value.param().abi(), callback, timeout, context) } #[inline] pub unsafe fn alljoyn_proxybusobject_unregisterpropertieschangedlistener(proxyobj: P0, iface: P1, callback: alljoyn_proxybusobject_listener_propertieschanged_ptr) -> QStatus where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(proxyobj.into_param().abi(), iface.into_param().abi(), callback) + alljoyn_proxybusobject_unregisterpropertieschangedlistener(proxyobj.param().abi(), iface.param().abi(), callback) } #[inline] pub unsafe fn alljoyn_routerinit() -> QStatus { @@ -4230,10 +4230,10 @@ pub unsafe fn alljoyn_routershutdown() -> QStatus { #[inline] pub unsafe fn alljoyn_securityapplicationproxy_claim(proxy: P0, cakey: *mut i8, identitycertificatechain: *mut i8, groupid: *const u8, groupsize: usize, groupauthority: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(proxy.into_param().abi(), cakey, identitycertificatechain, groupid, groupsize, groupauthority, manifestsxmls, manifestscount) + alljoyn_securityapplicationproxy_claim(proxy.param().abi(), cakey, identitycertificatechain, groupid, groupsize, groupauthority, manifestsxmls, manifestscount) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_computemanifestdigest(unsignedmanifestxml: *mut i8, identitycertificatepem: *mut i8, digest: *mut *mut u8, digestsize: *mut usize) -> QStatus { @@ -4243,18 +4243,18 @@ pub unsafe fn alljoyn_securityapplicationproxy_computemanifestdigest(unsignedman #[inline] pub unsafe fn alljoyn_securityapplicationproxy_create(bus: P0, appbusname: *mut i8, sessionid: u32) -> alljoyn_securityapplicationproxy where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_create(bus : alljoyn_busattachment, appbusname : *mut i8, sessionid : u32) -> alljoyn_securityapplicationproxy); - alljoyn_securityapplicationproxy_create(bus.into_param().abi(), appbusname, sessionid) + alljoyn_securityapplicationproxy_create(bus.param().abi(), appbusname, sessionid) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_destroy(proxy: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_destroy(proxy : alljoyn_securityapplicationproxy)); - alljoyn_securityapplicationproxy_destroy(proxy.into_param().abi()) + alljoyn_securityapplicationproxy_destroy(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_digest_destroy(digest: *mut u8) { @@ -4269,58 +4269,58 @@ pub unsafe fn alljoyn_securityapplicationproxy_eccpublickey_destroy(eccpublickey #[inline] pub unsafe fn alljoyn_securityapplicationproxy_endmanagement(proxy: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_endmanagement(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_endmanagement(proxy.into_param().abi()) + alljoyn_securityapplicationproxy_endmanagement(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getapplicationstate(proxy: P0, applicationstate: *mut alljoyn_applicationstate) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getapplicationstate(proxy : alljoyn_securityapplicationproxy, applicationstate : *mut alljoyn_applicationstate) -> QStatus); - alljoyn_securityapplicationproxy_getapplicationstate(proxy.into_param().abi(), applicationstate) + alljoyn_securityapplicationproxy_getapplicationstate(proxy.param().abi(), applicationstate) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getclaimcapabilities(proxy: P0, capabilities: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getclaimcapabilities(proxy : alljoyn_securityapplicationproxy, capabilities : *mut u16) -> QStatus); - alljoyn_securityapplicationproxy_getclaimcapabilities(proxy.into_param().abi(), capabilities) + alljoyn_securityapplicationproxy_getclaimcapabilities(proxy.param().abi(), capabilities) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(proxy: P0, additionalinfo: *mut u16) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(proxy : alljoyn_securityapplicationproxy, additionalinfo : *mut u16) -> QStatus); - alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(proxy.into_param().abi(), additionalinfo) + alljoyn_securityapplicationproxy_getclaimcapabilitiesadditionalinfo(proxy.param().abi(), additionalinfo) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getdefaultpolicy(proxy: P0, policyxml: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getdefaultpolicy(proxy : alljoyn_securityapplicationproxy, policyxml : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_getdefaultpolicy(proxy.into_param().abi(), policyxml) + alljoyn_securityapplicationproxy_getdefaultpolicy(proxy.param().abi(), policyxml) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_geteccpublickey(proxy: P0, eccpublickey: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_geteccpublickey(proxy : alljoyn_securityapplicationproxy, eccpublickey : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_geteccpublickey(proxy.into_param().abi(), eccpublickey) + alljoyn_securityapplicationproxy_geteccpublickey(proxy.param().abi(), eccpublickey) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getmanifesttemplate(proxy: P0, manifesttemplatexml: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getmanifesttemplate(proxy : alljoyn_securityapplicationproxy, manifesttemplatexml : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_getmanifesttemplate(proxy.into_param().abi(), manifesttemplatexml) + alljoyn_securityapplicationproxy_getmanifesttemplate(proxy.param().abi(), manifesttemplatexml) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getpermissionmanagementsessionport() -> u16 { @@ -4330,18 +4330,18 @@ pub unsafe fn alljoyn_securityapplicationproxy_getpermissionmanagementsessionpor #[inline] pub unsafe fn alljoyn_securityapplicationproxy_getpolicy(proxy: P0, policyxml: *mut *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_getpolicy(proxy : alljoyn_securityapplicationproxy, policyxml : *mut *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_getpolicy(proxy.into_param().abi(), policyxml) + alljoyn_securityapplicationproxy_getpolicy(proxy.param().abi(), policyxml) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_installmembership(proxy: P0, membershipcertificatechain: *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_installmembership(proxy : alljoyn_securityapplicationproxy, membershipcertificatechain : *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_installmembership(proxy.into_param().abi(), membershipcertificatechain) + alljoyn_securityapplicationproxy_installmembership(proxy.param().abi(), membershipcertificatechain) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_manifest_destroy(signedmanifestxml: *mut i8) { @@ -4361,18 +4361,18 @@ pub unsafe fn alljoyn_securityapplicationproxy_policy_destroy(policyxml: *mut i8 #[inline] pub unsafe fn alljoyn_securityapplicationproxy_reset(proxy: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_reset(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_reset(proxy.into_param().abi()) + alljoyn_securityapplicationproxy_reset(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_resetpolicy(proxy: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_resetpolicy(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_resetpolicy(proxy.into_param().abi()) + alljoyn_securityapplicationproxy_resetpolicy(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_setmanifestsignature(unsignedmanifestxml: *mut i8, identitycertificatepem: *mut i8, signature: *const u8, signaturesize: usize, signedmanifestxml: *mut *mut i8) -> QStatus { @@ -4387,26 +4387,26 @@ pub unsafe fn alljoyn_securityapplicationproxy_signmanifest(unsignedmanifestxml: #[inline] pub unsafe fn alljoyn_securityapplicationproxy_startmanagement(proxy: P0) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_startmanagement(proxy : alljoyn_securityapplicationproxy) -> QStatus); - alljoyn_securityapplicationproxy_startmanagement(proxy.into_param().abi()) + alljoyn_securityapplicationproxy_startmanagement(proxy.param().abi()) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_updateidentity(proxy: P0, identitycertificatechain: *mut i8, manifestsxmls: *mut *mut i8, manifestscount: usize) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(proxy.into_param().abi(), identitycertificatechain, manifestsxmls, manifestscount) + alljoyn_securityapplicationproxy_updateidentity(proxy.param().abi(), identitycertificatechain, manifestsxmls, manifestscount) } #[inline] pub unsafe fn alljoyn_securityapplicationproxy_updatepolicy(proxy: P0, policyxml: *mut i8) -> QStatus where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_securityapplicationproxy_updatepolicy(proxy : alljoyn_securityapplicationproxy, policyxml : *mut i8) -> QStatus); - alljoyn_securityapplicationproxy_updatepolicy(proxy.into_param().abi(), policyxml) + alljoyn_securityapplicationproxy_updatepolicy(proxy.param().abi(), policyxml) } #[inline] pub unsafe fn alljoyn_sessionlistener_create(callbacks: *const alljoyn_sessionlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_sessionlistener { @@ -4416,19 +4416,19 @@ pub unsafe fn alljoyn_sessionlistener_create(callbacks: *const alljoyn_sessionli #[inline] pub unsafe fn alljoyn_sessionlistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionlistener_destroy(listener : alljoyn_sessionlistener)); - alljoyn_sessionlistener_destroy(listener.into_param().abi()) + alljoyn_sessionlistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_cmp(one: P0, other: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_cmp(one : alljoyn_sessionopts, other : alljoyn_sessionopts) -> i32); - alljoyn_sessionopts_cmp(one.into_param().abi(), other.into_param().abi()) + alljoyn_sessionopts_cmp(one.param().abi(), other.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_create(traffic: u8, ismultipoint: i32, proximity: u8, transports: u16) -> alljoyn_sessionopts { @@ -4438,83 +4438,83 @@ pub unsafe fn alljoyn_sessionopts_create(traffic: u8, ismultipoint: i32, proximi #[inline] pub unsafe fn alljoyn_sessionopts_destroy(opts: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_destroy(opts : alljoyn_sessionopts)); - alljoyn_sessionopts_destroy(opts.into_param().abi()) + alljoyn_sessionopts_destroy(opts.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_get_multipoint(opts: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_multipoint(opts : alljoyn_sessionopts) -> i32); - alljoyn_sessionopts_get_multipoint(opts.into_param().abi()) + alljoyn_sessionopts_get_multipoint(opts.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_get_proximity(opts: P0) -> u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_proximity(opts : alljoyn_sessionopts) -> u8); - alljoyn_sessionopts_get_proximity(opts.into_param().abi()) + alljoyn_sessionopts_get_proximity(opts.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_get_traffic(opts: P0) -> u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_traffic(opts : alljoyn_sessionopts) -> u8); - alljoyn_sessionopts_get_traffic(opts.into_param().abi()) + alljoyn_sessionopts_get_traffic(opts.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_get_transports(opts: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_get_transports(opts : alljoyn_sessionopts) -> u16); - alljoyn_sessionopts_get_transports(opts.into_param().abi()) + alljoyn_sessionopts_get_transports(opts.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_iscompatible(one: P0, other: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_iscompatible(one : alljoyn_sessionopts, other : alljoyn_sessionopts) -> i32); - alljoyn_sessionopts_iscompatible(one.into_param().abi(), other.into_param().abi()) + alljoyn_sessionopts_iscompatible(one.param().abi(), other.param().abi()) } #[inline] pub unsafe fn alljoyn_sessionopts_set_multipoint(opts: P0, ismultipoint: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_multipoint(opts : alljoyn_sessionopts, ismultipoint : i32)); - alljoyn_sessionopts_set_multipoint(opts.into_param().abi(), ismultipoint) + alljoyn_sessionopts_set_multipoint(opts.param().abi(), ismultipoint) } #[inline] pub unsafe fn alljoyn_sessionopts_set_proximity(opts: P0, proximity: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_proximity(opts : alljoyn_sessionopts, proximity : u8)); - alljoyn_sessionopts_set_proximity(opts.into_param().abi(), proximity) + alljoyn_sessionopts_set_proximity(opts.param().abi(), proximity) } #[inline] pub unsafe fn alljoyn_sessionopts_set_traffic(opts: P0, traffic: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_traffic(opts : alljoyn_sessionopts, traffic : u8)); - alljoyn_sessionopts_set_traffic(opts.into_param().abi(), traffic) + alljoyn_sessionopts_set_traffic(opts.param().abi(), traffic) } #[inline] pub unsafe fn alljoyn_sessionopts_set_transports(opts: P0, transports: u16) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionopts_set_transports(opts : alljoyn_sessionopts, transports : u16)); - alljoyn_sessionopts_set_transports(opts.into_param().abi(), transports) + alljoyn_sessionopts_set_transports(opts.param().abi(), transports) } #[inline] pub unsafe fn alljoyn_sessionportlistener_create(callbacks: *const alljoyn_sessionportlistener_callbacks, context: *const core::ffi::c_void) -> alljoyn_sessionportlistener { @@ -4524,10 +4524,10 @@ pub unsafe fn alljoyn_sessionportlistener_create(callbacks: *const alljoyn_sessi #[inline] pub unsafe fn alljoyn_sessionportlistener_destroy(listener: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msajapi.dll" "system" fn alljoyn_sessionportlistener_destroy(listener : alljoyn_sessionportlistener)); - alljoyn_sessionportlistener_destroy(listener.into_param().abi()) + alljoyn_sessionportlistener_destroy(listener.param().abi()) } #[inline] pub unsafe fn alljoyn_shutdown() -> QStatus { 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 f53ed99db8..21efb309fd 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs @@ -26,17 +26,17 @@ pub unsafe fn WinBioAsyncMonitorFrameworkChanges(frameworkhandle: u32, changetyp #[inline] pub unsafe fn WinBioAsyncOpenFramework(notificationmethod: WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow: P0, messagecode: u32, callbackroutine: PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata: Option<*const core::ffi::c_void>, asynchronousopen: P1, frameworkhandle: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(notificationmethod, targetwindow.into_param().abi(), messagecode, callbackroutine, core::mem::transmute(userdata.unwrap_or(std::ptr::null())), asynchronousopen.into_param().abi(), core::mem::transmute(frameworkhandle.unwrap_or(std::ptr::null_mut()))).ok() + WinBioAsyncOpenFramework(notificationmethod, targetwindow.param().abi(), messagecode, callbackroutine, core::mem::transmute(userdata.unwrap_or(std::ptr::null())), asynchronousopen.param().abi(), core::mem::transmute(frameworkhandle.unwrap_or(std::ptr::null_mut()))).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: P0, messagecode: u32, callbackroutine: PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata: Option<*const core::ffi::c_void>, asynchronousopen: P1, sessionhandle: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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( @@ -47,11 +47,11 @@ where unitarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(databaseid.unwrap_or(std::ptr::null())), notificationmethod, - targetwindow.into_param().abi(), + targetwindow.param().abi(), messagecode, callbackroutine, core::mem::transmute(userdata.unwrap_or(std::ptr::null())), - asynchronousopen.into_param().abi(), + asynchronousopen.param().abi(), core::mem::transmute(sessionhandle.unwrap_or(std::ptr::null_mut())), ) .ok() 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 3cd419da2f..2219e903e6 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -1,71 +1,71 @@ #[inline] pub unsafe fn BluetoothAuthenticateDevice(hwndparent: P0, hradio: P1, pbtbi: *mut BLUETOOTH_DEVICE_INFO, pszpasskey: Option<&[u16]>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("bthprops.cpl" "system" fn BluetoothAuthenticateDevice(hwndparent : super::super::Foundation:: HWND, hradio : super::super::Foundation:: HANDLE, pbtbi : *mut BLUETOOTH_DEVICE_INFO, pszpasskey : windows_core::PCWSTR, ulpasskeylength : u32) -> u32); - BluetoothAuthenticateDevice(hwndparent.into_param().abi(), hradio.into_param().abi(), pbtbi, core::mem::transmute(pszpasskey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszpasskey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + BluetoothAuthenticateDevice(hwndparent.param().abi(), hradio.param().abi(), pbtbi, core::mem::transmute(pszpasskey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszpasskey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn BluetoothAuthenticateDeviceEx(hwndparentin: P0, hradioin: P1, pbtdiinout: *mut BLUETOOTH_DEVICE_INFO, pbtoobdata: Option<*const BLUETOOTH_OOB_DATA_INFO>, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndparentin.into_param().abi(), hradioin.into_param().abi(), pbtdiinout, core::mem::transmute(pbtoobdata.unwrap_or(std::ptr::null())), authenticationrequirement) + BluetoothAuthenticateDeviceEx(hwndparentin.param().abi(), hradioin.param().abi(), pbtdiinout, core::mem::transmute(pbtoobdata.unwrap_or(std::ptr::null())), authenticationrequirement) } #[inline] pub unsafe fn BluetoothAuthenticateMultipleDevices(hwndparent: P0, hradio: P1, rgbtdi: &mut [BLUETOOTH_DEVICE_INFO]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("bthprops.cpl" "system" fn BluetoothAuthenticateMultipleDevices(hwndparent : super::super::Foundation:: HWND, hradio : super::super::Foundation:: HANDLE, cdevices : u32, rgbtdi : *mut BLUETOOTH_DEVICE_INFO) -> u32); - BluetoothAuthenticateMultipleDevices(hwndparent.into_param().abi(), hradio.into_param().abi(), rgbtdi.len().try_into().unwrap(), core::mem::transmute(rgbtdi.as_ptr())) + BluetoothAuthenticateMultipleDevices(hwndparent.param().abi(), hradio.param().abi(), rgbtdi.len().try_into().unwrap(), core::mem::transmute(rgbtdi.as_ptr())) } #[inline] pub unsafe fn BluetoothDisplayDeviceProperties(hwndparent: P0, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bthprops.cpl" "system" fn BluetoothDisplayDeviceProperties(hwndparent : super::super::Foundation:: HWND, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation:: BOOL); - BluetoothDisplayDeviceProperties(hwndparent.into_param().abi(), pbtdi).ok() + BluetoothDisplayDeviceProperties(hwndparent.param().abi(), pbtdi).ok() } #[inline] pub unsafe fn BluetoothEnableDiscovery(hradio: P0, fenabled: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothEnableDiscovery(hradio : super::super::Foundation:: HANDLE, fenabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - BluetoothEnableDiscovery(hradio.into_param().abi(), fenabled.into_param().abi()) + BluetoothEnableDiscovery(hradio.param().abi(), fenabled.param().abi()) } #[inline] pub unsafe fn BluetoothEnableIncomingConnections(hradio: P0, fenabled: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothEnableIncomingConnections(hradio : super::super::Foundation:: HANDLE, fenabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - BluetoothEnableIncomingConnections(hradio.into_param().abi(), fenabled.into_param().abi()) + BluetoothEnableIncomingConnections(hradio.param().abi(), fenabled.param().abi()) } #[inline] pub unsafe fn BluetoothEnumerateInstalledServices(hradio: P0, pbtdi: *const BLUETOOTH_DEVICE_INFO, pcserviceinout: *mut u32, pguidservices: Option<*mut windows_core::GUID>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hradio.into_param().abi(), pbtdi, pcserviceinout, core::mem::transmute(pguidservices.unwrap_or(std::ptr::null_mut()))) + BluetoothEnumerateInstalledServices(hradio.param().abi(), pbtdi, pcserviceinout, core::mem::transmute(pguidservices.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BluetoothFindDeviceClose(hfind: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindDeviceClose(hfind : HBLUETOOTH_DEVICE_FIND) -> super::super::Foundation:: BOOL); - BluetoothFindDeviceClose(hfind.into_param().abi()).ok() + BluetoothFindDeviceClose(hfind.param().abi()).ok() } #[inline] pub unsafe fn BluetoothFindFirstDevice(pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> windows_core::Result { @@ -82,122 +82,122 @@ pub unsafe fn BluetoothFindFirstRadio(pbtfrp: *const BLUETOOTH_FIND_RADIO_PARAMS #[inline] pub unsafe fn BluetoothFindNextDevice(hfind: P0, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextDevice(hfind : HBLUETOOTH_DEVICE_FIND, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation:: BOOL); - BluetoothFindNextDevice(hfind.into_param().abi(), pbtdi).ok() + BluetoothFindNextDevice(hfind.param().abi(), pbtdi).ok() } #[inline] pub unsafe fn BluetoothFindNextRadio(hfind: P0, phradio: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextRadio(hfind : HBLUETOOTH_RADIO_FIND, phradio : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - BluetoothFindNextRadio(hfind.into_param().abi(), phradio).ok() + BluetoothFindNextRadio(hfind.param().abi(), phradio).ok() } #[inline] pub unsafe fn BluetoothFindRadioClose(hfind: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindRadioClose(hfind : HBLUETOOTH_RADIO_FIND) -> super::super::Foundation:: BOOL); - BluetoothFindRadioClose(hfind.into_param().abi()).ok() + BluetoothFindRadioClose(hfind.param().abi()).ok() } #[inline] pub unsafe fn BluetoothGATTAbortReliableWrite(hdevice: P0, reliablewritecontext: u64, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTAbortReliableWrite(hdevice : super::super::Foundation:: HANDLE, reliablewritecontext : u64, flags : u32) -> windows_core::HRESULT); - BluetoothGATTAbortReliableWrite(hdevice.into_param().abi(), reliablewritecontext, flags).ok() + BluetoothGATTAbortReliableWrite(hdevice.param().abi(), reliablewritecontext, flags).ok() } #[inline] pub unsafe fn BluetoothGATTBeginReliableWrite(hdevice: P0, reliablewritecontext: *mut u64, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTBeginReliableWrite(hdevice : super::super::Foundation:: HANDLE, reliablewritecontext : *mut u64, flags : u32) -> windows_core::HRESULT); - BluetoothGATTBeginReliableWrite(hdevice.into_param().abi(), reliablewritecontext, flags).ok() + BluetoothGATTBeginReliableWrite(hdevice.param().abi(), reliablewritecontext, flags).ok() } #[inline] pub unsafe fn BluetoothGATTEndReliableWrite(hdevice: P0, reliablewritecontext: u64, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGATTEndReliableWrite(hdevice : super::super::Foundation:: HANDLE, reliablewritecontext : u64, flags : u32) -> windows_core::HRESULT); - BluetoothGATTEndReliableWrite(hdevice.into_param().abi(), reliablewritecontext, flags).ok() + BluetoothGATTEndReliableWrite(hdevice.param().abi(), reliablewritecontext, flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetCharacteristicValue(hdevice: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), characteristic, characteristicvaluedatasize, core::mem::transmute(characteristicvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(characteristicvaluesizerequired.unwrap_or(std::ptr::null_mut())), flags).ok() + BluetoothGATTGetCharacteristicValue(hdevice.param().abi(), characteristic, characteristicvaluedatasize, core::mem::transmute(characteristicvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(characteristicvaluesizerequired.unwrap_or(std::ptr::null_mut())), flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetCharacteristics(hdevice: P0, service: Option<*const BTH_LE_GATT_SERVICE>, characteristicsbuffer: Option<&mut [BTH_LE_GATT_CHARACTERISTIC]>, characteristicsbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), core::mem::transmute(service.unwrap_or(std::ptr::null())), 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())), characteristicsbufferactual, flags).ok() + BluetoothGATTGetCharacteristics(hdevice.param().abi(), core::mem::transmute(service.unwrap_or(std::ptr::null())), 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())), characteristicsbufferactual, flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetDescriptorValue(hdevice: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), descriptor, descriptorvaluedatasize, core::mem::transmute(descriptorvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(descriptorvaluesizerequired.unwrap_or(std::ptr::null_mut())), flags).ok() + BluetoothGATTGetDescriptorValue(hdevice.param().abi(), descriptor, descriptorvaluedatasize, core::mem::transmute(descriptorvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(descriptorvaluesizerequired.unwrap_or(std::ptr::null_mut())), flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetDescriptors(hdevice: P0, characteristic: *const BTH_LE_GATT_CHARACTERISTIC, descriptorsbuffer: Option<&mut [BTH_LE_GATT_DESCRIPTOR]>, descriptorsbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), 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())), descriptorsbufferactual, flags).ok() + BluetoothGATTGetDescriptors(hdevice.param().abi(), 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())), descriptorsbufferactual, flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetIncludedServices(hdevice: P0, parentservice: Option<*const BTH_LE_GATT_SERVICE>, includedservicesbuffer: Option<&mut [BTH_LE_GATT_SERVICE]>, includedservicesbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), core::mem::transmute(parentservice.unwrap_or(std::ptr::null())), 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())), includedservicesbufferactual, flags).ok() + BluetoothGATTGetIncludedServices(hdevice.param().abi(), core::mem::transmute(parentservice.unwrap_or(std::ptr::null())), 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())), includedservicesbufferactual, flags).ok() } #[inline] pub unsafe fn BluetoothGATTGetServices(hdevice: P0, servicesbuffer: Option<&mut [BTH_LE_GATT_SERVICE]>, servicesbufferactual: *mut u16, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), 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())), servicesbufferactual, flags).ok() + BluetoothGATTGetServices(hdevice.param().abi(), 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())), servicesbufferactual, flags).ok() } #[inline] pub unsafe fn BluetoothGATTRegisterEvent(hservice: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hservice.into_param().abi(), eventtype, eventparameterin, callback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), peventhandle, flags).ok() + BluetoothGATTRegisterEvent(hservice.param().abi(), eventtype, eventparameterin, callback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), peventhandle, flags).ok() } #[inline] pub unsafe fn BluetoothGATTSetCharacteristicValue(hdevice: P0, characteristic: *const BTH_LE_GATT_CHARACTERISTIC, characteristicvalue: *const BTH_LE_GATT_CHARACTERISTIC_VALUE, reliablewritecontext: u64, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), characteristic, characteristicvalue, reliablewritecontext, flags).ok() + BluetoothGATTSetCharacteristicValue(hdevice.param().abi(), characteristic, characteristicvalue, reliablewritecontext, flags).ok() } #[inline] pub unsafe fn BluetoothGATTSetDescriptorValue(hdevice: P0, descriptor: *const BTH_LE_GATT_DESCRIPTOR, descriptorvalue: *const BTH_LE_GATT_DESCRIPTOR_VALUE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), descriptor, descriptorvalue, flags).ok() + BluetoothGATTSetDescriptorValue(hdevice.param().abi(), descriptor, descriptorvalue, flags).ok() } #[inline] pub unsafe fn BluetoothGATTUnregisterEvent(eventhandle: isize, flags: u32) -> windows_core::Result<()> { @@ -207,34 +207,34 @@ pub unsafe fn BluetoothGATTUnregisterEvent(eventhandle: isize, flags: u32) -> wi #[inline] pub unsafe fn BluetoothGetDeviceInfo(hradio: P0, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGetDeviceInfo(hradio : super::super::Foundation:: HANDLE, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> u32); - BluetoothGetDeviceInfo(hradio.into_param().abi(), pbtdi) + BluetoothGetDeviceInfo(hradio.param().abi(), pbtdi) } #[inline] pub unsafe fn BluetoothGetRadioInfo(hradio: P0, pradioinfo: *mut BLUETOOTH_RADIO_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothGetRadioInfo(hradio : super::super::Foundation:: HANDLE, pradioinfo : *mut BLUETOOTH_RADIO_INFO) -> u32); - BluetoothGetRadioInfo(hradio.into_param().abi(), pradioinfo) + BluetoothGetRadioInfo(hradio.param().abi(), pradioinfo) } #[inline] pub unsafe fn BluetoothIsConnectable(hradio: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsConnectable(hradio : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - BluetoothIsConnectable(hradio.into_param().abi()) + BluetoothIsConnectable(hradio.param().abi()) } #[inline] pub unsafe fn BluetoothIsDiscoverable(hradio: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsDiscoverable(hradio : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - BluetoothIsDiscoverable(hradio.into_param().abi()) + BluetoothIsDiscoverable(hradio.param().abi()) } #[inline] pub unsafe fn BluetoothIsVersionAvailable(majorversion: u8, minorversion: u8) -> super::super::Foundation::BOOL { @@ -294,35 +294,35 @@ pub unsafe fn BluetoothSelectDevicesFree(pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PA #[inline] pub unsafe fn BluetoothSendAuthenticationResponse(hradio: P0, pbtdi: *const BLUETOOTH_DEVICE_INFO, pszpasskey: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hradio.into_param().abi(), pbtdi, pszpasskey.into_param().abi()) + BluetoothSendAuthenticationResponse(hradio.param().abi(), pbtdi, pszpasskey.param().abi()) } #[inline] pub unsafe fn BluetoothSendAuthenticationResponseEx(hradioin: P0, pauthresponse: *const BLUETOOTH_AUTHENTICATE_RESPONSE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSendAuthenticationResponseEx(hradioin : super::super::Foundation:: HANDLE, pauthresponse : *const BLUETOOTH_AUTHENTICATE_RESPONSE) -> u32); - BluetoothSendAuthenticationResponseEx(hradioin.into_param().abi(), pauthresponse) + BluetoothSendAuthenticationResponseEx(hradioin.param().abi(), pauthresponse) } #[inline] pub unsafe fn BluetoothSetLocalServiceInfo(hradioin: P0, pclassguid: *const windows_core::GUID, ulinstance: u32, pserviceinfoin: *const BLUETOOTH_LOCAL_SERVICE_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hradioin.into_param().abi(), pclassguid, ulinstance, pserviceinfoin) + BluetoothSetLocalServiceInfo(hradioin.param().abi(), pclassguid, ulinstance, pserviceinfoin) } #[inline] pub unsafe fn BluetoothSetServiceState(hradio: P0, pbtdi: *const BLUETOOTH_DEVICE_INFO, pguidservice: *const windows_core::GUID, dwserviceflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hradio.into_param().abi(), pbtdi, pguidservice, dwserviceflags) + BluetoothSetServiceState(hradio.param().abi(), pbtdi, pguidservice, dwserviceflags) } #[inline] pub unsafe fn BluetoothUnregisterAuthentication(hreghandle: isize) -> windows_core::Result<()> { 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 b9b4dd4341..9c7270cc14 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs @@ -1,100 +1,100 @@ #[inline] pub unsafe fn BuildCommDCBA(lpdef: P0, lpdcb: *mut DCB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBA(lpdef : windows_core::PCSTR, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); - BuildCommDCBA(lpdef.into_param().abi(), lpdcb).ok() + BuildCommDCBA(lpdef.param().abi(), lpdcb).ok() } #[inline] pub unsafe fn BuildCommDCBAndTimeoutsA(lpdef: P0, lpdcb: *mut DCB, lpcommtimeouts: *mut COMMTIMEOUTS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsA(lpdef : windows_core::PCSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); - BuildCommDCBAndTimeoutsA(lpdef.into_param().abi(), lpdcb, lpcommtimeouts).ok() + BuildCommDCBAndTimeoutsA(lpdef.param().abi(), lpdcb, lpcommtimeouts).ok() } #[inline] pub unsafe fn BuildCommDCBAndTimeoutsW(lpdef: P0, lpdcb: *mut DCB, lpcommtimeouts: *mut COMMTIMEOUTS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsW(lpdef : windows_core::PCWSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); - BuildCommDCBAndTimeoutsW(lpdef.into_param().abi(), lpdcb, lpcommtimeouts).ok() + BuildCommDCBAndTimeoutsW(lpdef.param().abi(), lpdcb, lpcommtimeouts).ok() } #[inline] pub unsafe fn BuildCommDCBW(lpdef: P0, lpdcb: *mut DCB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBW(lpdef : windows_core::PCWSTR, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); - BuildCommDCBW(lpdef.into_param().abi(), lpdcb).ok() + BuildCommDCBW(lpdef.param().abi(), lpdcb).ok() } #[inline] pub unsafe fn ClearCommBreak(hfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ClearCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ClearCommBreak(hfile.into_param().abi()).ok() + ClearCommBreak(hfile.param().abi()).ok() } #[inline] pub unsafe fn ClearCommError(hfile: P0, lperrors: Option<*mut CLEAR_COMM_ERROR_FLAGS>, lpstat: Option<*mut COMSTAT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), core::mem::transmute(lperrors.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpstat.unwrap_or(std::ptr::null_mut()))).ok() + ClearCommError(hfile.param().abi(), core::mem::transmute(lperrors.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpstat.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CommConfigDialogA(lpszname: P0, hwnd: P1, lpcc: *mut COMMCONFIG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CommConfigDialogA(lpszname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> super::super::Foundation:: BOOL); - CommConfigDialogA(lpszname.into_param().abi(), hwnd.into_param().abi(), lpcc).ok() + CommConfigDialogA(lpszname.param().abi(), hwnd.param().abi(), lpcc).ok() } #[inline] pub unsafe fn CommConfigDialogW(lpszname: P0, hwnd: P1, lpcc: *mut COMMCONFIG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CommConfigDialogW(lpszname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> super::super::Foundation:: BOOL); - CommConfigDialogW(lpszname.into_param().abi(), hwnd.into_param().abi(), lpcc).ok() + CommConfigDialogW(lpszname.param().abi(), hwnd.param().abi(), lpcc).ok() } #[inline] pub unsafe fn EscapeCommFunction(hfile: P0, dwfunc: ESCAPE_COMM_FUNCTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EscapeCommFunction(hfile : super::super::Foundation:: HANDLE, dwfunc : ESCAPE_COMM_FUNCTION) -> super::super::Foundation:: BOOL); - EscapeCommFunction(hfile.into_param().abi(), dwfunc).ok() + EscapeCommFunction(hfile.param().abi(), dwfunc).ok() } #[inline] pub unsafe fn GetCommConfig(hcommdev: P0, lpcc: Option<*mut COMMCONFIG>, lpdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - GetCommConfig(hcommdev.into_param().abi(), core::mem::transmute(lpcc.unwrap_or(std::ptr::null_mut())), lpdwsize).ok() + GetCommConfig(hcommdev.param().abi(), core::mem::transmute(lpcc.unwrap_or(std::ptr::null_mut())), lpdwsize).ok() } #[inline] pub unsafe fn GetCommMask(hfile: P0, lpevtmask: *mut COMM_EVENT_MASK) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCommMask(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); - GetCommMask(hfile.into_param().abi(), lpevtmask).ok() + GetCommMask(hfile.param().abi(), lpevtmask).ok() } #[inline] pub unsafe fn GetCommModemStatus(hfile: P0, lpmodemstat: *mut MODEM_STATUS_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCommModemStatus(hfile : super::super::Foundation:: HANDLE, lpmodemstat : *mut MODEM_STATUS_FLAGS) -> super::super::Foundation:: BOOL); - GetCommModemStatus(hfile.into_param().abi(), lpmodemstat).ok() + GetCommModemStatus(hfile.param().abi(), lpmodemstat).ok() } #[inline] pub unsafe fn GetCommPorts(lpportnumbers: &mut [u32], puportnumbersfound: *mut u32) -> u32 { @@ -104,42 +104,42 @@ pub unsafe fn GetCommPorts(lpportnumbers: &mut [u32], puportnumbersfound: *mut u #[inline] pub unsafe fn GetCommProperties(hfile: P0, lpcommprop: *mut COMMPROP) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCommProperties(hfile : super::super::Foundation:: HANDLE, lpcommprop : *mut COMMPROP) -> super::super::Foundation:: BOOL); - GetCommProperties(hfile.into_param().abi(), lpcommprop).ok() + GetCommProperties(hfile.param().abi(), lpcommprop).ok() } #[inline] pub unsafe fn GetCommState(hfile: P0, lpdcb: *mut DCB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); - GetCommState(hfile.into_param().abi(), lpdcb).ok() + GetCommState(hfile.param().abi(), lpdcb).ok() } #[inline] pub unsafe fn GetCommTimeouts(hfile: P0, lpcommtimeouts: *mut COMMTIMEOUTS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); - GetCommTimeouts(hfile.into_param().abi(), lpcommtimeouts).ok() + GetCommTimeouts(hfile.param().abi(), lpcommtimeouts).ok() } #[inline] pub unsafe fn GetDefaultCommConfigA(lpszname: P0, lpcc: *mut COMMCONFIG, lpdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDefaultCommConfigA(lpszname : windows_core::PCSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - GetDefaultCommConfigA(lpszname.into_param().abi(), lpcc, lpdwsize).ok() + GetDefaultCommConfigA(lpszname.param().abi(), lpcc, lpdwsize).ok() } #[inline] pub unsafe fn GetDefaultCommConfigW(lpszname: P0, lpcc: *mut COMMCONFIG, lpdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDefaultCommConfigW(lpszname : windows_core::PCWSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - GetDefaultCommConfigW(lpszname.into_param().abi(), lpcc, lpdwsize).ok() + GetDefaultCommConfigW(lpszname.param().abi(), lpcc, lpdwsize).ok() } #[inline] pub unsafe fn OpenCommPort(uportnumber: u32, dwdesiredaccess: u32, dwflagsandattributes: u32) -> super::super::Foundation::HANDLE { @@ -149,91 +149,91 @@ pub unsafe fn OpenCommPort(uportnumber: u32, dwdesiredaccess: u32, dwflagsandatt #[inline] pub unsafe fn PurgeComm(hfile: P0, dwflags: PURGE_COMM_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PurgeComm(hfile : super::super::Foundation:: HANDLE, dwflags : PURGE_COMM_FLAGS) -> super::super::Foundation:: BOOL); - PurgeComm(hfile.into_param().abi(), dwflags).ok() + PurgeComm(hfile.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SetCommBreak(hfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetCommBreak(hfile.into_param().abi()).ok() + SetCommBreak(hfile.param().abi()).ok() } #[inline] pub unsafe fn SetCommConfig(hcommdev: P0, lpcc: *const COMMCONFIG, dwsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); - SetCommConfig(hcommdev.into_param().abi(), lpcc, dwsize).ok() + SetCommConfig(hcommdev.param().abi(), lpcc, dwsize).ok() } #[inline] pub unsafe fn SetCommMask(hfile: P0, dwevtmask: COMM_EVENT_MASK) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCommMask(hfile : super::super::Foundation:: HANDLE, dwevtmask : COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); - SetCommMask(hfile.into_param().abi(), dwevtmask).ok() + SetCommMask(hfile.param().abi(), dwevtmask).ok() } #[inline] pub unsafe fn SetCommState(hfile: P0, lpdcb: *const DCB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *const DCB) -> super::super::Foundation:: BOOL); - SetCommState(hfile.into_param().abi(), lpdcb).ok() + SetCommState(hfile.param().abi(), lpdcb).ok() } #[inline] pub unsafe fn SetCommTimeouts(hfile: P0, lpcommtimeouts: *const COMMTIMEOUTS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *const COMMTIMEOUTS) -> super::super::Foundation:: BOOL); - SetCommTimeouts(hfile.into_param().abi(), lpcommtimeouts).ok() + SetCommTimeouts(hfile.param().abi(), lpcommtimeouts).ok() } #[inline] pub unsafe fn SetDefaultCommConfigA(lpszname: P0, lpcc: *const COMMCONFIG, dwsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpcc, dwsize).ok() + SetDefaultCommConfigA(lpszname.param().abi(), lpcc, dwsize).ok() } #[inline] pub unsafe fn SetDefaultCommConfigW(lpszname: P0, lpcc: *const COMMCONFIG, dwsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpcc, dwsize).ok() + SetDefaultCommConfigW(lpszname.param().abi(), lpcc, dwsize).ok() } #[inline] pub unsafe fn SetupComm(hfile: P0, dwinqueue: u32, dwoutqueue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetupComm(hfile : super::super::Foundation:: HANDLE, dwinqueue : u32, dwoutqueue : u32) -> super::super::Foundation:: BOOL); - SetupComm(hfile.into_param().abi(), dwinqueue, dwoutqueue).ok() + SetupComm(hfile.param().abi(), dwinqueue, dwoutqueue).ok() } #[inline] pub unsafe fn TransmitCommChar(hfile: P0, cchar: i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn TransmitCommChar(hfile : super::super::Foundation:: HANDLE, cchar : i8) -> super::super::Foundation:: BOOL); - TransmitCommChar(hfile.into_param().abi(), cchar).ok() + TransmitCommChar(hfile.param().abi(), cchar).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WaitCommEvent(hfile: P0, lpevtmask: *mut COMM_EVENT_MASK, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), lpevtmask, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() + WaitCommEvent(hfile.param().abi(), lpevtmask, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).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 1b8f13be73..7bb10ff8d6 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn CreateDeviceAccessInstance(deviceinterfacepath: P0, desiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateDeviceAccessInstance(deviceinterfacepath.into_param().abi(), 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__)) } windows_core::imp::define_interface!(ICreateDeviceAccessAsync, ICreateDeviceAccessAsync_Vtbl, 0x3474628f_683d_42d2_abcb_db018c6503bc); windows_core::imp::interface_hierarchy!(ICreateDeviceAccessAsync, windows_core::IUnknown); @@ -43,7 +43,7 @@ impl IDeviceIoControl { } pub unsafe fn DeviceIoControlAsync(&self, iocontrolcode: u32, inputbuffer: Option<&[u8]>, outputbuffer: Option<&mut [u8]>, requestcompletioncallback: P0, cancelcontext: Option<*mut usize>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).DeviceIoControlAsync)( windows_core::Interface::as_raw(self), @@ -52,7 +52,7 @@ impl IDeviceIoControl { 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()), - requestcompletioncallback.into_param().abi(), + requestcompletioncallback.param().abi(), core::mem::transmute(cancelcontext.unwrap_or(std::ptr::null_mut())), ) .ok() 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 5665c1f98d..e479f84f79 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -18,34 +18,34 @@ pub unsafe fn CM_Add_Empty_Log_Conf_Ex(plclogconf: *mut usize, dndevinst: u32, p #[inline] pub unsafe fn CM_Add_IDA(dndevinst: u32, pszid: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszid.into_param().abi(), ulflags) + CM_Add_IDA(dndevinst, pszid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Add_IDW(dndevinst: u32, pszid: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszid.into_param().abi(), ulflags) + CM_Add_IDW(dndevinst, pszid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Add_ID_ExA(dndevinst: u32, pszid: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszid.into_param().abi(), ulflags, hmachine) + CM_Add_ID_ExA(dndevinst, pszid.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Add_ID_ExW(dndevinst: u32, pszid: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszid.into_param().abi(), ulflags, hmachine) + CM_Add_ID_ExW(dndevinst, pszid.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Add_Range(ullstartvalue: u64, ullendvalue: u64, rlh: usize, ulflags: u32) -> CONFIGRET { @@ -65,50 +65,50 @@ pub unsafe fn CM_Add_Res_Des_Ex(prdresdes: Option<*mut usize>, lclogconf: usize, #[inline] pub unsafe fn CM_Connect_MachineA(uncservername: P0, phmachine: *mut isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Connect_MachineA(uncservername : windows_core::PCSTR, phmachine : *mut isize) -> CONFIGRET); - CM_Connect_MachineA(uncservername.into_param().abi(), phmachine) + CM_Connect_MachineA(uncservername.param().abi(), phmachine) } #[inline] pub unsafe fn CM_Connect_MachineW(uncservername: P0, phmachine: *mut isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Connect_MachineW(uncservername : windows_core::PCWSTR, phmachine : *mut isize) -> CONFIGRET); - CM_Connect_MachineW(uncservername.into_param().abi(), phmachine) + CM_Connect_MachineW(uncservername.param().abi(), phmachine) } #[inline] pub unsafe fn CM_Create_DevNodeA(pdndevinst: *mut u32, pdeviceid: P0, dnparent: u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), dnparent, ulflags) + CM_Create_DevNodeA(pdndevinst, pdeviceid.param().abi(), dnparent, ulflags) } #[inline] pub unsafe fn CM_Create_DevNodeW(pdndevinst: *mut u32, pdeviceid: P0, dnparent: u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), dnparent, ulflags) + CM_Create_DevNodeW(pdndevinst, pdeviceid.param().abi(), dnparent, ulflags) } #[inline] pub unsafe fn CM_Create_DevNode_ExA(pdndevinst: *mut u32, pdeviceid: P0, dnparent: u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), dnparent, ulflags, hmachine) + CM_Create_DevNode_ExA(pdndevinst, pdeviceid.param().abi(), dnparent, ulflags, hmachine) } #[inline] pub unsafe fn CM_Create_DevNode_ExW(pdndevinst: *mut u32, pdeviceid: P0, dnparent: u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), dnparent, ulflags, hmachine) + CM_Create_DevNode_ExW(pdndevinst, pdeviceid.param().abi(), dnparent, ulflags, hmachine) } #[inline] pub unsafe fn CM_Create_Range_List(prlh: *mut usize, ulflags: u32) -> CONFIGRET { @@ -138,34 +138,34 @@ pub unsafe fn CM_Delete_DevNode_Key_Ex(dndevnode: u32, ulhardwareprofile: u32, u #[inline] pub unsafe fn CM_Delete_Device_Interface_KeyA(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags) + CM_Delete_Device_Interface_KeyA(pszdeviceinterface.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Delete_Device_Interface_KeyW(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, hmachine) + CM_Delete_Device_Interface_Key_ExA(pszdeviceinterface.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Delete_Device_Interface_Key_ExW(pszdeviceinterface: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, hmachine) + CM_Delete_Device_Interface_Key_ExW(pszdeviceinterface.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Delete_Range(ullstartvalue: u64, ullendvalue: u64, rlh: usize, ulflags: u32) -> CONFIGRET { @@ -389,34 +389,34 @@ pub unsafe fn CM_Get_Depth_Ex(puldepth: *mut u32, dndevinst: u32, ulflags: u32, #[inline] pub unsafe fn CM_Get_DevNode_Custom_PropertyA(dndevinst: u32, pszcustompropertyname: P0, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszcustompropertyname.into_param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags) + CM_Get_DevNode_Custom_PropertyA(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Custom_PropertyW(dndevinst: u32, pszcustompropertyname: P0, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszcustompropertyname.into_param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags) + CM_Get_DevNode_Custom_PropertyW(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags) } #[inline] pub unsafe fn CM_Get_DevNode_Custom_Property_ExA(dndevinst: u32, pszcustompropertyname: P0, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszcustompropertyname.into_param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags, hmachine) + CM_Get_DevNode_Custom_Property_ExA(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_DevNode_Custom_Property_ExW(dndevinst: u32, pszcustompropertyname: P0, pulregdatatype: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, pullength: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, pszcustompropertyname.into_param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags, hmachine) + CM_Get_DevNode_Custom_Property_ExW(dndevinst, pszcustompropertyname.param().abi(), core::mem::transmute(pulregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), pullength, ulflags, hmachine) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -495,66 +495,66 @@ pub unsafe fn CM_Get_Device_ID_ExW(dndevinst: u32, buffer: &mut [u16], ulflags: #[inline] pub unsafe fn CM_Get_Device_ID_ListA(pszfilter: P0, buffer: &mut [u8], ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), 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: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) + CM_Get_Device_ID_List_ExA(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_ID_List_ExW(pszfilter: P0, buffer: &mut [u16], ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) + CM_Get_Device_ID_List_ExW(pszfilter.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_ID_List_SizeA(pullen: *mut u32, pszfilter: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, pszfilter.into_param().abi(), ulflags) + CM_Get_Device_ID_List_SizeA(pullen, pszfilter.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_List_SizeW(pullen: *mut u32, pszfilter: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, pszfilter.into_param().abi(), ulflags) + CM_Get_Device_ID_List_SizeW(pullen, pszfilter.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Get_Device_ID_List_Size_ExA(pullen: *mut u32, pszfilter: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, pszfilter.into_param().abi(), ulflags, hmachine) + CM_Get_Device_ID_List_Size_ExA(pullen, pszfilter.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_ID_List_Size_ExW(pullen: *mut u32, pszfilter: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, pszfilter.into_param().abi(), ulflags, hmachine) + CM_Get_Device_ID_List_Size_ExW(pullen, pszfilter.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_ID_Size(pullen: *mut u32, dndevinst: u32, ulflags: u32) -> CONFIGRET { @@ -569,134 +569,134 @@ pub unsafe fn CM_Get_Device_ID_Size_Ex(pullen: *mut u32, dndevinst: u32, ulflags #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), pullength, ulflags) + CM_Get_Device_Interface_AliasA(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), pullength, ulflags) + CM_Get_Device_Interface_AliasW(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), 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: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), pullength, ulflags, hmachine) + CM_Get_Device_Interface_Alias_ExA(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), pullength, ulflags, hmachine) } #[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: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), pullength, ulflags, hmachine) + CM_Get_Device_Interface_Alias_ExW(pszdeviceinterface.param().abi(), aliasinterfaceguid, core::mem::transmute(pszaliasdeviceinterface), pullength, ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_Interface_ListA(interfaceclassguid: *const windows_core::GUID, pdeviceid: P0, buffer: &mut [u8], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(interfaceclassguid, pdeviceid.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), 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: P0, buffer: &mut [u16], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(interfaceclassguid, pdeviceid.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), 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: P0, buffer: &mut [u8], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(interfaceclassguid, pdeviceid.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) + CM_Get_Device_Interface_List_ExA(interfaceclassguid, pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_ExW(interfaceclassguid: *const windows_core::GUID, pdeviceid: P0, buffer: &mut [u16], ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(interfaceclassguid, pdeviceid.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) + CM_Get_Device_Interface_List_ExW(interfaceclassguid, pdeviceid.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_SizeA(pullen: *mut u32, interfaceclassguid: *const windows_core::GUID, pdeviceid: P0, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, interfaceclassguid, pdeviceid.into_param().abi(), ulflags) + CM_Get_Device_Interface_List_SizeA(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: P0, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, interfaceclassguid, pdeviceid.into_param().abi(), ulflags) + CM_Get_Device_Interface_List_SizeW(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: P0, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, interfaceclassguid, pdeviceid.into_param().abi(), ulflags, hmachine) + CM_Get_Device_Interface_List_Size_ExA(pullen, interfaceclassguid, pdeviceid.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Device_Interface_List_Size_ExW(pullen: *mut u32, interfaceclassguid: *const windows_core::GUID, pdeviceid: P0, ulflags: CM_GET_DEVICE_INTERFACE_LIST_FLAGS, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pullen, interfaceclassguid, pdeviceid.into_param().abi(), ulflags, hmachine) + CM_Get_Device_Interface_List_Size_ExW(pullen, interfaceclassguid, pdeviceid.param().abi(), ulflags, hmachine) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_Device_Interface_PropertyW(pszdeviceinterface: P0, propertykey: *const super::Properties::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<*mut u8>, propertybuffersize: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_PropertyW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_Interface_PropertyW(pszdeviceinterface.into_param().abi(), propertykey, propertytype, core::mem::transmute(propertybuffer.unwrap_or(std::ptr::null_mut())), propertybuffersize, ulflags) + CM_Get_Device_Interface_PropertyW(pszdeviceinterface.param().abi(), propertykey, propertytype, core::mem::transmute(propertybuffer.unwrap_or(std::ptr::null_mut())), propertybuffersize, ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_Device_Interface_Property_ExW(pszdeviceinterface: P0, propertykey: *const super::Properties::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<*mut u8>, propertybuffersize: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_Property_ExW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_Property_ExW(pszdeviceinterface.into_param().abi(), propertykey, propertytype, core::mem::transmute(propertybuffer.unwrap_or(std::ptr::null_mut())), propertybuffersize, ulflags, hmachine) + CM_Get_Device_Interface_Property_ExW(pszdeviceinterface.param().abi(), propertykey, propertytype, core::mem::transmute(propertybuffer.unwrap_or(std::ptr::null_mut())), propertybuffersize, ulflags, hmachine) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface: P0, propertykeyarray: Option<*mut super::Properties::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface : windows_core::PCWSTR, propertykeyarray : *mut super::Properties:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32) -> CONFIGRET); - CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface.into_param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(std::ptr::null_mut())), propertykeycount, ulflags) + CM_Get_Device_Interface_Property_KeysW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(std::ptr::null_mut())), propertykeycount, ulflags) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn CM_Get_Device_Interface_Property_Keys_ExW(pszdeviceinterface: P0, propertykeyarray: Option<*mut super::Properties::DEVPROPKEY>, propertykeycount: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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::Properties:: DEVPROPKEY, propertykeycount : *mut u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Get_Device_Interface_Property_Keys_ExW(pszdeviceinterface.into_param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(std::ptr::null_mut())), propertykeycount, ulflags, hmachine) + CM_Get_Device_Interface_Property_Keys_ExW(pszdeviceinterface.param().abi(), core::mem::transmute(propertykeyarray.unwrap_or(std::ptr::null_mut())), propertykeycount, ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_First_Log_Conf(plclogconf: Option<*mut usize>, dndevinst: u32, ulflags: CM_LOG_CONF) -> CONFIGRET { @@ -721,34 +721,34 @@ pub unsafe fn CM_Get_Global_State_Ex(pulstate: *mut u32, ulflags: u32, hmachine: #[inline] pub unsafe fn CM_Get_HW_Prof_FlagsA(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulhardwareprofile, pulvalue, ulflags) + CM_Get_HW_Prof_FlagsA(pdeviceid.param().abi(), ulhardwareprofile, pulvalue, ulflags) } #[inline] pub unsafe fn CM_Get_HW_Prof_FlagsW(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulhardwareprofile, pulvalue, ulflags) + CM_Get_HW_Prof_FlagsW(pdeviceid.param().abi(), ulhardwareprofile, pulvalue, ulflags) } #[inline] pub unsafe fn CM_Get_HW_Prof_Flags_ExA(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulhardwareprofile, pulvalue, ulflags, hmachine) + CM_Get_HW_Prof_Flags_ExA(pdeviceid.param().abi(), ulhardwareprofile, pulvalue, ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_HW_Prof_Flags_ExW(pdeviceid: P0, ulhardwareprofile: u32, pulvalue: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulhardwareprofile, pulvalue, ulflags, hmachine) + CM_Get_HW_Prof_Flags_ExW(pdeviceid.param().abi(), ulhardwareprofile, pulvalue, ulflags, hmachine) } #[inline] pub unsafe fn CM_Get_Hardware_Profile_InfoA(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_A, ulflags: u32) -> CONFIGRET { @@ -898,34 +898,34 @@ pub unsafe fn CM_Is_Version_Available_Ex(wversion: u16, hmachine: isize) -> supe #[inline] pub unsafe fn CM_Locate_DevNodeA(pdndevinst: *mut u32, pdeviceid: P0, ulflags: CM_LOCATE_DEVNODE_FLAGS) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), ulflags) + CM_Locate_DevNodeA(pdndevinst, pdeviceid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Locate_DevNodeW(pdndevinst: *mut u32, pdeviceid: P0, ulflags: CM_LOCATE_DEVNODE_FLAGS) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), ulflags) + CM_Locate_DevNodeW(pdndevinst, pdeviceid.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Locate_DevNode_ExA(pdndevinst: *mut u32, pdeviceid: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), ulflags, hmachine) + CM_Locate_DevNode_ExA(pdndevinst, pdeviceid.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Locate_DevNode_ExW(pdndevinst: *mut u32, pdeviceid: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(pdndevinst, pdeviceid.into_param().abi(), ulflags, hmachine) + CM_Locate_DevNode_ExW(pdndevinst, pdeviceid.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_MapCrToWin32Err(cmreturncode: CONFIGRET, defaulterr: u32) -> u32 { @@ -966,37 +966,37 @@ pub unsafe fn CM_Next_Range(preelement: *mut usize, pullstart: *mut u64, pullend #[inline] pub unsafe fn CM_Open_Class_KeyA(classguid: Option<*const windows_core::GUID>, pszclassname: P0, samdesired: u32, disposition: u32, phkclass: *mut super::super::System::Registry::HKEY, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), pszclassname.into_param().abi(), samdesired, disposition, phkclass, ulflags) + CM_Open_Class_KeyA(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), pszclassname.param().abi(), samdesired, disposition, phkclass, ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_Class_KeyW(classguid: Option<*const windows_core::GUID>, pszclassname: P0, samdesired: u32, disposition: u32, phkclass: *mut super::super::System::Registry::HKEY, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), pszclassname.into_param().abi(), samdesired, disposition, phkclass, ulflags) + CM_Open_Class_KeyW(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), pszclassname.param().abi(), samdesired, disposition, phkclass, ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_Class_Key_ExA(classguid: Option<*const windows_core::GUID>, pszclassname: P0, samdesired: u32, disposition: u32, phkclass: *mut super::super::System::Registry::HKEY, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), pszclassname.into_param().abi(), samdesired, disposition, phkclass, ulflags, hmachine) + CM_Open_Class_Key_ExA(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), pszclassname.param().abi(), samdesired, disposition, phkclass, ulflags, hmachine) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_Class_Key_ExW(classguid: Option<*const windows_core::GUID>, pszclassname: P0, samdesired: u32, disposition: u32, phkclass: *mut super::super::System::Registry::HKEY, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), pszclassname.into_param().abi(), samdesired, disposition, phkclass, ulflags, hmachine) + CM_Open_Class_Key_ExW(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), pszclassname.param().abi(), samdesired, disposition, phkclass, ulflags, hmachine) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -1014,37 +1014,37 @@ pub unsafe fn CM_Open_DevNode_Key_Ex(dndevnode: u32, samdesired: u32, ulhardware #[inline] pub unsafe fn CM_Open_Device_Interface_KeyA(pszdeviceinterface: P0, samdesired: u32, disposition: u32, phkdeviceinterface: *mut super::super::System::Registry::HKEY, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), samdesired, disposition, phkdeviceinterface, ulflags) + CM_Open_Device_Interface_KeyA(pszdeviceinterface.param().abi(), samdesired, disposition, phkdeviceinterface, ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_Device_Interface_KeyW(pszdeviceinterface: P0, samdesired: u32, disposition: u32, phkdeviceinterface: *mut super::super::System::Registry::HKEY, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), samdesired, disposition, phkdeviceinterface, ulflags) + CM_Open_Device_Interface_KeyW(pszdeviceinterface.param().abi(), samdesired, disposition, phkdeviceinterface, ulflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_Device_Interface_Key_ExA(pszdeviceinterface: P0, samdesired: u32, disposition: u32, phkdeviceinterface: *mut super::super::System::Registry::HKEY, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), samdesired, disposition, phkdeviceinterface, ulflags, hmachine) + CM_Open_Device_Interface_Key_ExA(pszdeviceinterface.param().abi(), samdesired, disposition, phkdeviceinterface, ulflags, hmachine) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn CM_Open_Device_Interface_Key_ExW(pszdeviceinterface: P0, samdesired: u32, disposition: u32, phkdeviceinterface: *mut super::super::System::Registry::HKEY, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), samdesired, disposition, phkdeviceinterface, ulflags, hmachine) + CM_Open_Device_Interface_Key_ExW(pszdeviceinterface.param().abi(), samdesired, disposition, phkdeviceinterface, ulflags, hmachine) } #[inline] pub unsafe fn CM_Query_And_Remove_SubTreeA(dnancestor: u32, pvetotype: Option<*mut PNP_VETO_TYPE>, pszvetoname: Option<&mut [u8]>, ulflags: u32) -> CONFIGRET { @@ -1124,34 +1124,34 @@ pub unsafe fn CM_Register_Device_Driver_Ex(dndevinst: u32, ulflags: u32, hmachin #[inline] pub unsafe fn CM_Register_Device_InterfaceA(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P0, pszdeviceinterface: windows_core::PSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, interfaceclassguid, pszreference.into_param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags) + CM_Register_Device_InterfaceA(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags) } #[inline] pub unsafe fn CM_Register_Device_InterfaceW(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P0, pszdeviceinterface: windows_core::PWSTR, pullength: *mut u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, interfaceclassguid, pszreference.into_param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags) + CM_Register_Device_InterfaceW(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags) } #[inline] pub unsafe fn CM_Register_Device_Interface_ExA(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P0, pszdeviceinterface: windows_core::PSTR, pullength: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, interfaceclassguid, pszreference.into_param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags, hmachine) + CM_Register_Device_Interface_ExA(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags, hmachine) } #[inline] pub unsafe fn CM_Register_Device_Interface_ExW(dndevinst: u32, interfaceclassguid: *const windows_core::GUID, pszreference: P0, pszdeviceinterface: windows_core::PWSTR, pullength: *mut u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: 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(dndevinst, interfaceclassguid, pszreference.into_param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags, hmachine) + CM_Register_Device_Interface_ExW(dndevinst, interfaceclassguid, pszreference.param().abi(), core::mem::transmute(pszdeviceinterface), pullength, ulflags, hmachine) } #[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 { @@ -1276,19 +1276,19 @@ pub unsafe fn CM_Set_DevNode_Registry_Property_ExW(dndevinst: u32, ulproperty: u #[inline] pub unsafe fn CM_Set_Device_Interface_PropertyW(pszdeviceinterface: P0, propertykey: *const super::Properties::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Device_Interface_PropertyW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32) -> CONFIGRET); - CM_Set_Device_Interface_PropertyW(pszdeviceinterface.into_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) + 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] pub unsafe fn CM_Set_Device_Interface_Property_ExW(pszdeviceinterface: P0, propertykey: *const super::Properties::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Set_Device_Interface_Property_ExW(pszdeviceinterface : windows_core::PCWSTR, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, ulflags : u32, hmachine : isize) -> CONFIGRET); - CM_Set_Device_Interface_Property_ExW(pszdeviceinterface.into_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, hmachine) + 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, hmachine) } #[inline] pub unsafe fn CM_Set_HW_Prof(ulhardwareprofile: u32, ulflags: u32) -> CONFIGRET { @@ -1303,34 +1303,34 @@ pub unsafe fn CM_Set_HW_Prof_Ex(ulhardwareprofile: u32, ulflags: u32, hmachine: #[inline] pub unsafe fn CM_Set_HW_Prof_FlagsA(pdeviceid: P0, ulconfig: u32, ulvalue: u32, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulconfig, ulvalue, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulconfig, ulvalue, 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: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulconfig, ulvalue, ulflags, hmachine) + CM_Set_HW_Prof_Flags_ExA(pdeviceid.param().abi(), ulconfig, ulvalue, ulflags, hmachine) } #[inline] pub unsafe fn CM_Set_HW_Prof_Flags_ExW(pdeviceid: P0, ulconfig: u32, ulvalue: u32, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulconfig, ulvalue, ulflags, hmachine) + CM_Set_HW_Prof_Flags_ExW(pdeviceid.param().abi(), ulconfig, ulvalue, ulflags, hmachine) } #[inline] pub unsafe fn CM_Setup_DevNode(dndevinst: u32, ulflags: u32) -> CONFIGRET { @@ -1360,245 +1360,245 @@ pub unsafe fn CM_Uninstall_DevNode_Ex(dndevinst: u32, ulflags: u32, hmachine: is #[inline] pub unsafe fn CM_Unregister_Device_InterfaceA(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags) + CM_Unregister_Device_InterfaceA(pszdeviceinterface.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Unregister_Device_InterfaceW(pszdeviceinterface: P0, ulflags: u32) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags) + CM_Unregister_Device_InterfaceW(pszdeviceinterface.param().abi(), ulflags) } #[inline] pub unsafe fn CM_Unregister_Device_Interface_ExA(pszdeviceinterface: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, hmachine) + CM_Unregister_Device_Interface_ExA(pszdeviceinterface.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Unregister_Device_Interface_ExW(pszdeviceinterface: P0, ulflags: u32, hmachine: isize) -> CONFIGRET where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, hmachine) + CM_Unregister_Device_Interface_ExW(pszdeviceinterface.param().abi(), ulflags, hmachine) } #[inline] pub unsafe fn CM_Unregister_Notification(notifycontext: P0) -> CONFIGRET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn CM_Unregister_Notification(notifycontext : HCMNOTIFICATION) -> CONFIGRET); - CM_Unregister_Notification(notifycontext.into_param().abi()) + CM_Unregister_Notification(notifycontext.param().abi()) } #[inline] pub unsafe fn DiInstallDevice(hwndparent: P0, deviceinfoset: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndparent.into_param().abi(), deviceinfoset.into_param().abi(), deviceinfodata, core::mem::transmute(driverinfodata.unwrap_or(std::ptr::null())), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiInstallDevice(hwndparent.param().abi(), deviceinfoset.param().abi(), deviceinfodata, core::mem::transmute(driverinfodata.unwrap_or(std::ptr::null())), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiInstallDriverA(hwndparent: P0, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), infpath.into_param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiInstallDriverA(hwndparent.param().abi(), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiInstallDriverW(hwndparent: P0, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), infpath.into_param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiInstallDriverW(hwndparent.param().abi(), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiRollbackDriver(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, hwndparent: P1, flags: DIROLLBACKDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinfodata, hwndparent.into_param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiRollbackDriver(deviceinfoset.param().abi(), deviceinfodata, hwndparent.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiShowUpdateDevice(hwndparent: P0, deviceinfoset: P1, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndparent.into_param().abi(), deviceinfoset.into_param().abi(), deviceinfodata, flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiShowUpdateDevice(hwndparent.param().abi(), deviceinfoset.param().abi(), deviceinfodata, flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiShowUpdateDriver(hwndparent: P0, filepath: P1, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), filepath.into_param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))) + DiShowUpdateDriver(hwndparent.param().abi(), filepath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DiUninstallDevice(hwndparent: P0, deviceinfoset: P1, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndparent.into_param().abi(), deviceinfoset.into_param().abi(), deviceinfodata, flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiUninstallDevice(hwndparent.param().abi(), deviceinfoset.param().abi(), deviceinfodata, flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiUninstallDriverA(hwndparent: P0, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), infpath.into_param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiUninstallDriverA(hwndparent.param().abi(), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiUninstallDriverW(hwndparent: P0, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), infpath.into_param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() + DiUninstallDriverW(hwndparent.param().abi(), infpath.param().abi(), flags, core::mem::transmute(needreboot.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn InstallHinfSectionA(window: P0, modulehandle: P1, commandline: P2, showcommand: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(window.into_param().abi(), modulehandle.into_param().abi(), commandline.into_param().abi(), showcommand) + InstallHinfSectionA(window.param().abi(), modulehandle.param().abi(), commandline.param().abi(), showcommand) } #[inline] pub unsafe fn InstallHinfSectionW(window: P0, modulehandle: P1, commandline: P2, showcommand: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(window.into_param().abi(), modulehandle.into_param().abi(), commandline.into_param().abi(), showcommand) + InstallHinfSectionW(window.param().abi(), modulehandle.param().abi(), 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: P0, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAddInstallSectionToDiskSpaceListA(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).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: P0, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAddInstallSectionToDiskSpaceListW(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).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: P0, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAddSectionToDiskSpaceListA(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).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: P0, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAddSectionToDiskSpaceListW(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupAddToDiskSpaceListA(diskspace: *const core::ffi::c_void, targetfilespec: P0, filesize: i64, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, targetfilespec.into_param().abi(), filesize, operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAddToDiskSpaceListA(diskspace, targetfilespec.param().abi(), filesize, operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupAddToDiskSpaceListW(diskspace: *const core::ffi::c_void, targetfilespec: P0, filesize: i64, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, targetfilespec.into_param().abi(), filesize, operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAddToDiskSpaceListW(diskspace, targetfilespec.param().abi(), filesize, operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupAddToSourceListA(flags: u32, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListA(flags : u32, source : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupAddToSourceListA(flags, source.into_param().abi()).ok() + SetupAddToSourceListA(flags, source.param().abi()).ok() } #[inline] pub unsafe fn SetupAddToSourceListW(flags: u32, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListW(flags : u32, source : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupAddToSourceListW(flags, source.into_param().abi()).ok() + SetupAddToSourceListW(flags, source.param().abi()).ok() } #[inline] pub unsafe fn SetupAdjustDiskSpaceListA(diskspace: *const core::ffi::c_void, driveroot: P0, amount: i64, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, driveroot.into_param().abi(), amount, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAdjustDiskSpaceListA(diskspace, driveroot.param().abi(), amount, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupAdjustDiskSpaceListW(diskspace: *const core::ffi::c_void, driveroot: P0, amount: i64, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, driveroot.into_param().abi(), amount, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupAdjustDiskSpaceListW(diskspace, driveroot.param().abi(), amount, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupBackupErrorA(hwndparent: P0, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), sourcefile.into_param().abi(), targetfile.into_param().abi(), win32errorcode, style) + SetupBackupErrorA(hwndparent.param().abi(), dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupBackupErrorW(hwndparent: P0, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), sourcefile.into_param().abi(), targetfile.into_param().abi(), win32errorcode, style) + SetupBackupErrorW(hwndparent.param().abi(), dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupCancelTemporarySourceList() -> windows_core::Result<()> { @@ -1623,78 +1623,78 @@ pub unsafe fn SetupCloseLog() { #[inline] pub unsafe fn SetupCommitFileQueueA(owner: P0, queuehandle: *const core::ffi::c_void, msghandler: PSP_FILE_CALLBACK_A, context: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(owner.into_param().abi(), queuehandle, msghandler, context).ok() + SetupCommitFileQueueA(owner.param().abi(), queuehandle, msghandler, context).ok() } #[inline] pub unsafe fn SetupCommitFileQueueW(owner: P0, queuehandle: *const core::ffi::c_void, msghandler: PSP_FILE_CALLBACK_W, context: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(owner.into_param().abi(), queuehandle, msghandler, context).ok() + SetupCommitFileQueueW(owner.param().abi(), queuehandle, msghandler, context).ok() } #[inline] pub unsafe fn SetupConfigureWmiFromInfSectionA(infhandle: *const core::ffi::c_void, sectionname: P0, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(infhandle, sectionname.into_param().abi(), flags) + SetupConfigureWmiFromInfSectionA(infhandle, sectionname.param().abi(), flags) } #[inline] pub unsafe fn SetupConfigureWmiFromInfSectionW(infhandle: *const core::ffi::c_void, sectionname: P0, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(infhandle, sectionname.into_param().abi(), flags) + SetupConfigureWmiFromInfSectionW(infhandle, sectionname.param().abi(), flags) } #[inline] pub unsafe fn SetupCopyErrorA(hwndparent: P0, dialogtitle: P1, diskname: P2, pathtosource: P3, sourcefile: P4, targetpathfile: P5, win32errorcode: u32, style: u32, pathbuffer: Option<&mut [u8]>, pathrequiredsize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), diskname.into_param().abi(), pathtosource.into_param().abi(), sourcefile.into_param().abi(), targetpathfile.into_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(std::ptr::null_mut()))) + SetupCopyErrorA(hwndparent.param().abi(), 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetupCopyErrorW(hwndparent: P0, dialogtitle: P1, diskname: P2, pathtosource: P3, sourcefile: P4, targetpathfile: P5, win32errorcode: u32, style: u32, pathbuffer: Option<&mut [u16]>, pathrequiredsize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), diskname.into_param().abi(), pathtosource.into_param().abi(), sourcefile.into_param().abi(), targetpathfile.into_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(std::ptr::null_mut()))) + SetupCopyErrorW(hwndparent.param().abi(), 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(std::ptr::null_mut()))) } #[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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), oemsourcemedialocation.into_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(std::ptr::null_mut())), core::mem::transmute(destinationinffilenamecomponent.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(destinationinffilenamecomponent.unwrap_or(std::ptr::null_mut()))).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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), oemsourcemedialocation.into_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(std::ptr::null_mut())), core::mem::transmute(destinationinffilenamecomponent.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(destinationinffilenamecomponent.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupCreateDiskSpaceListA(reserved1: Option<*const core::ffi::c_void>, reserved2: u32, flags: u32) -> *mut core::ffi::c_void { @@ -1709,20 +1709,20 @@ pub unsafe fn SetupCreateDiskSpaceListW(reserved1: Option<*const core::ffi::c_vo #[inline] pub unsafe fn SetupDecompressOrCopyFileA(sourcefilename: P0, targetfilename: P1, compressiontype: Option<*const u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDecompressOrCopyFileA(sourcefilename : windows_core::PCSTR, targetfilename : windows_core::PCSTR, compressiontype : *const u32) -> u32); - SetupDecompressOrCopyFileA(sourcefilename.into_param().abi(), targetfilename.into_param().abi(), core::mem::transmute(compressiontype.unwrap_or(std::ptr::null()))) + SetupDecompressOrCopyFileA(sourcefilename.param().abi(), targetfilename.param().abi(), core::mem::transmute(compressiontype.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetupDecompressOrCopyFileW(sourcefilename: P0, targetfilename: P1, compressiontype: Option<*const u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDecompressOrCopyFileW(sourcefilename : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, compressiontype : *const u32) -> u32); - SetupDecompressOrCopyFileW(sourcefilename.into_param().abi(), targetfilename.into_param().abi(), core::mem::transmute(compressiontype.unwrap_or(std::ptr::null()))) + SetupDecompressOrCopyFileW(sourcefilename.param().abi(), targetfilename.param().abi(), core::mem::transmute(compressiontype.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetupDefaultQueueCallbackA(context: *const core::ffi::c_void, notification: u32, param1: usize, param2: usize) -> u32 { @@ -1737,22 +1737,22 @@ pub unsafe fn SetupDefaultQueueCallbackW(context: *const core::ffi::c_void, noti #[inline] pub unsafe fn SetupDeleteErrorA(hwndparent: P0, dialogtitle: P1, file: P2, win32errorcode: u32, style: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), file.into_param().abi(), win32errorcode, style) + SetupDeleteErrorA(hwndparent.param().abi(), dialogtitle.param().abi(), file.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupDeleteErrorW(hwndparent: P0, dialogtitle: P1, file: P2, win32errorcode: u32, style: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), file.into_param().abi(), win32errorcode, style) + SetupDeleteErrorW(hwndparent.param().abi(), dialogtitle.param().abi(), file.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupDestroyDiskSpaceList(diskspace: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1762,10 +1762,10 @@ pub unsafe fn SetupDestroyDiskSpaceList(diskspace: *mut core::ffi::c_void) -> wi #[inline] pub unsafe fn SetupDiAskForOEMDisk(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiAskForOEMDisk(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiAskForOEMDisk(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() + SetupDiAskForOEMDisk(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiBuildClassInfoList(flags: u32, classguidlist: Option<&mut [windows_core::GUID]>, requiredsize: *mut u32) -> windows_core::Result<()> { @@ -1775,84 +1775,84 @@ pub unsafe fn SetupDiBuildClassInfoList(flags: u32, classguidlist: Option<&mut [ #[inline] pub unsafe fn SetupDiBuildClassInfoListExA(flags: u32, classguidlist: Option<&mut [windows_core::GUID]>, requiredsize: *mut u32, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(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()), requiredsize, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).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()), requiredsize, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiBuildClassInfoListExW(flags: u32, classguidlist: Option<&mut [windows_core::GUID]>, requiredsize: *mut u32, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(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()), requiredsize, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).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()), requiredsize, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiBuildDriverInfoList(deviceinfoset: P0, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut())), drivertype).ok() + SetupDiBuildDriverInfoList(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut())), drivertype).ok() } #[inline] pub unsafe fn SetupDiCallClassInstaller(installfunction: DI_FUNCTION, deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCallClassInstaller(installfunction : DI_FUNCTION, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiCallClassInstaller(installfunction, deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() + SetupDiCallClassInstaller(installfunction, deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiCancelDriverInfoSearch(deviceinfoset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCancelDriverInfoSearch(deviceinfoset : HDEVINFO) -> super::super::Foundation:: BOOL); - SetupDiCancelDriverInfoSearch(deviceinfoset.into_param().abi()).ok() + SetupDiCancelDriverInfoSearch(deviceinfoset.param().abi()).ok() } #[inline] pub unsafe fn SetupDiChangeState(deviceinfoset: P0, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiChangeState(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiChangeState(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiChangeState(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiClassGuidsFromNameA(classname: P0, classguidlist: &mut [windows_core::GUID], requiredsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameA(classname : windows_core::PCSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiClassGuidsFromNameA(classname.into_param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize).ok() + SetupDiClassGuidsFromNameA(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize).ok() } #[inline] pub unsafe fn SetupDiClassGuidsFromNameExA(classname: P0, classguidlist: &mut [windows_core::GUID], requiredsize: *mut u32, machinename: P1, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameExA(classname : windows_core::PCSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiClassGuidsFromNameExA(classname.into_param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiClassGuidsFromNameExA(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiClassGuidsFromNameExW(classname: P0, classguidlist: &mut [windows_core::GUID], requiredsize: *mut u32, machinename: P1, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameExW(classname : windows_core::PCWSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiClassGuidsFromNameExW(classname.into_param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiClassGuidsFromNameExW(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiClassGuidsFromNameW(classname: P0, classguidlist: &mut [windows_core::GUID], requiredsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameW(classname : windows_core::PCWSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiClassGuidsFromNameW(classname.into_param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize).ok() + SetupDiClassGuidsFromNameW(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize).ok() } #[inline] pub unsafe fn SetupDiClassNameFromGuidA(classguid: *const windows_core::GUID, classname: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -1862,18 +1862,18 @@ pub unsafe fn SetupDiClassNameFromGuidA(classguid: *const windows_core::GUID, cl #[inline] pub unsafe fn SetupDiClassNameFromGuidExA(classguid: *const windows_core::GUID, classname: &mut [u8], requiredsize: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiClassNameFromGuidExA(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiClassNameFromGuidExW(classguid: *const windows_core::GUID, classname: &mut [u16], requiredsize: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiClassNameFromGuidExW(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiClassNameFromGuidW(classguid: *const windows_core::GUID, classname: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -1884,146 +1884,146 @@ pub unsafe fn SetupDiClassNameFromGuidW(classguid: *const windows_core::GUID, cl #[inline] pub unsafe fn SetupDiCreateDevRegKeyA(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, scope: u32, hwprofile: u32, keytype: u32, infhandle: Option<*const core::ffi::c_void>, infsectionname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinfodata, scope, hwprofile, keytype, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.into_param().abi()); + let result__ = SetupDiCreateDevRegKeyA(deviceinfoset.param().abi(), deviceinfodata, scope, hwprofile, keytype, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiCreateDevRegKeyW(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, scope: u32, hwprofile: u32, keytype: u32, infhandle: Option<*const core::ffi::c_void>, infsectionname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinfodata, scope, hwprofile, keytype, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.into_param().abi()); + let result__ = SetupDiCreateDevRegKeyW(deviceinfoset.param().abi(), deviceinfodata, scope, hwprofile, keytype, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiCreateDeviceInfoA(deviceinfoset: P0, devicename: P1, classguid: *const windows_core::GUID, devicedescription: P2, hwndparent: P3, creationflags: SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(deviceinfoset.into_param().abi(), devicename.into_param().abi(), classguid, devicedescription.into_param().abi(), hwndparent.into_param().abi(), creationflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiCreateDeviceInfoA(deviceinfoset.param().abi(), devicename.param().abi(), classguid, devicedescription.param().abi(), hwndparent.param().abi(), creationflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiCreateDeviceInfoList(classguid: Option<*const windows_core::GUID>, hwndparent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoList(classguid : *const windows_core::GUID, hwndparent : super::super::Foundation:: HWND) -> HDEVINFO); - let result__ = SetupDiCreateDeviceInfoList(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), hwndparent.into_param().abi()); + let result__ = SetupDiCreateDeviceInfoList(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), hwndparent.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiCreateDeviceInfoListExA(classguid: Option<*const windows_core::GUID>, hwndparent: P0, machinename: P1, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoListExA(classguid : *const windows_core::GUID, hwndparent : super::super::Foundation:: HWND, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> HDEVINFO); - let result__ = SetupDiCreateDeviceInfoListExA(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), hwndparent.into_param().abi(), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); + let result__ = SetupDiCreateDeviceInfoListExA(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), hwndparent.param().abi(), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiCreateDeviceInfoListExW(classguid: Option<*const windows_core::GUID>, hwndparent: P0, machinename: P1, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoListExW(classguid : *const windows_core::GUID, hwndparent : super::super::Foundation:: HWND, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> HDEVINFO); - let result__ = SetupDiCreateDeviceInfoListExW(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), hwndparent.into_param().abi(), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); + let result__ = SetupDiCreateDeviceInfoListExW(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), hwndparent.param().abi(), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiCreateDeviceInfoW(deviceinfoset: P0, devicename: P1, classguid: *const windows_core::GUID, devicedescription: P2, hwndparent: P3, creationflags: SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(deviceinfoset.into_param().abi(), devicename.into_param().abi(), classguid, devicedescription.into_param().abi(), hwndparent.into_param().abi(), creationflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiCreateDeviceInfoW(deviceinfoset.param().abi(), devicename.param().abi(), classguid, devicedescription.param().abi(), hwndparent.param().abi(), creationflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiCreateDeviceInterfaceA(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, interfaceclassguid: *const windows_core::GUID, referencestring: P1, creationflags: u32, deviceinterfacedata: Option<*mut SP_DEVICE_INTERFACE_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinfodata, interfaceclassguid, referencestring.into_param().abi(), creationflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiCreateDeviceInterfaceA(deviceinfoset.param().abi(), deviceinfodata, interfaceclassguid, referencestring.param().abi(), creationflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiCreateDeviceInterfaceRegKeyA(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, reserved: u32, samdesired: u32, infhandle: Option<*const core::ffi::c_void>, infsectionname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinterfacedata, reserved, samdesired, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.into_param().abi()); + let result__ = SetupDiCreateDeviceInterfaceRegKeyA(deviceinfoset.param().abi(), deviceinterfacedata, reserved, samdesired, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiCreateDeviceInterfaceRegKeyW(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, reserved: u32, samdesired: u32, infhandle: Option<*const core::ffi::c_void>, infsectionname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinterfacedata, reserved, samdesired, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.into_param().abi()); + let result__ = SetupDiCreateDeviceInterfaceRegKeyW(deviceinfoset.param().abi(), deviceinterfacedata, reserved, samdesired, core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), infsectionname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiCreateDeviceInterfaceW(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, interfaceclassguid: *const windows_core::GUID, referencestring: P1, creationflags: u32, deviceinterfacedata: Option<*mut SP_DEVICE_INTERFACE_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinfodata, interfaceclassguid, referencestring.into_param().abi(), creationflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiCreateDeviceInterfaceW(deviceinfoset.param().abi(), deviceinfodata, interfaceclassguid, referencestring.param().abi(), creationflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiDeleteDevRegKey(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, scope: u32, hwprofile: u32, keytype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinfodata, scope, hwprofile, keytype).ok() + SetupDiDeleteDevRegKey(deviceinfoset.param().abi(), deviceinfodata, scope, hwprofile, keytype).ok() } #[inline] pub unsafe fn SetupDiDeleteDeviceInfo(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInfo(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiDeleteDeviceInfo(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiDeleteDeviceInfo(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiDeleteDeviceInterfaceData(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceData(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiDeleteDeviceInterfaceData(deviceinfoset.into_param().abi(), deviceinterfacedata).ok() + SetupDiDeleteDeviceInterfaceData(deviceinfoset.param().abi(), deviceinterfacedata).ok() } #[inline] pub unsafe fn SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, reserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, reserved : u32) -> super::super::Foundation:: BOOL); - SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset.into_param().abi(), deviceinterfacedata, reserved).ok() + SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset.param().abi(), deviceinterfacedata, reserved).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] @@ -2034,59 +2034,59 @@ pub unsafe fn SetupDiDestroyClassImageList(classimagelistdata: *const SP_CLASSIM #[inline] pub unsafe fn SetupDiDestroyDeviceInfoList(deviceinfoset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyDeviceInfoList(deviceinfoset : HDEVINFO) -> super::super::Foundation:: BOOL); - SetupDiDestroyDeviceInfoList(deviceinfoset.into_param().abi()).ok() + SetupDiDestroyDeviceInfoList(deviceinfoset.param().abi()).ok() } #[inline] pub unsafe fn SetupDiDestroyDriverInfoList(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), drivertype).ok() + SetupDiDestroyDriverInfoList(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), drivertype).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetupDiDrawMiniIcon(hdc: P0, rc: super::super::Foundation::RECT, miniiconindex: i32, flags: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(rc), miniiconindex, flags) + SetupDiDrawMiniIcon(hdc.param().abi(), core::mem::transmute(rc), miniiconindex, flags) } #[inline] pub unsafe fn SetupDiEnumDeviceInfo(deviceinfoset: P0, memberindex: u32, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDeviceInfo(deviceinfoset : HDEVINFO, memberindex : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiEnumDeviceInfo(deviceinfoset.into_param().abi(), memberindex, deviceinfodata).ok() + SetupDiEnumDeviceInfo(deviceinfoset.param().abi(), memberindex, deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiEnumDeviceInterfaces(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, interfaceclassguid: *const windows_core::GUID, memberindex: u32, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), interfaceclassguid, memberindex, deviceinterfacedata).ok() + SetupDiEnumDeviceInterfaces(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), interfaceclassguid, memberindex, deviceinterfacedata).ok() } #[inline] pub unsafe fn SetupDiEnumDriverInfoA(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE, memberindex: u32, driverinfodata: *mut SP_DRVINFO_DATA_V2_A) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), drivertype, memberindex, driverinfodata).ok() + SetupDiEnumDriverInfoA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), drivertype, memberindex, driverinfodata).ok() } #[inline] pub unsafe fn SetupDiEnumDriverInfoW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE, memberindex: u32, driverinfodata: *mut SP_DRVINFO_DATA_V2_W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), drivertype, memberindex, driverinfodata).ok() + SetupDiEnumDriverInfoW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), drivertype, memberindex, driverinfodata).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] @@ -2103,21 +2103,21 @@ pub unsafe fn SetupDiGetActualModelsSectionW(context: *const INFCONTEXT, alterna #[inline] pub unsafe fn SetupDiGetActualSectionToInstallA(infhandle: *const core::ffi::c_void, infsectionname: P0, infsectionwithext: Option<&mut [u8]>, requiredsize: Option<*mut u32>, extension: Option<*mut windows_core::PSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, infsectionname.into_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(std::ptr::null_mut())), core::mem::transmute(extension.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(extension.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupDiGetActualSectionToInstallExA(infhandle: *const core::ffi::c_void, infsectionname: P0, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsectionwithext: Option<&mut [u8]>, requiredsize: Option<*mut u32>, extension: Option<*mut windows_core::PSTR>, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( infhandle, - infsectionname.into_param().abi(), + infsectionname.param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), 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()), @@ -2131,12 +2131,12 @@ where #[inline] pub unsafe fn SetupDiGetActualSectionToInstallExW(infhandle: *const core::ffi::c_void, infsectionname: P0, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsectionwithext: Option<&mut [u16]>, requiredsize: Option<*mut u32>, extension: Option<*mut windows_core::PWSTR>, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( infhandle, - infsectionname.into_param().abi(), + infsectionname.param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), 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()), @@ -2149,10 +2149,10 @@ where #[inline] pub unsafe fn SetupDiGetActualSectionToInstallW(infhandle: *const core::ffi::c_void, infsectionname: P0, infsectionwithext: Option<&mut [u16]>, requiredsize: Option<*mut u32>, extension: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, infsectionname.into_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(std::ptr::null_mut())), core::mem::transmute(extension.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(extension.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetClassBitmapIndex(classguid: Option<*const windows_core::GUID>, miniiconindex: *mut i32) -> windows_core::Result<()> { @@ -2167,18 +2167,18 @@ pub unsafe fn SetupDiGetClassDescriptionA(classguid: *const windows_core::GUID, #[inline] pub unsafe fn SetupDiGetClassDescriptionExA(classguid: *const windows_core::GUID, classdescription: &mut [u8], requiredsize: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetClassDescriptionExA(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetClassDescriptionExW(classguid: *const windows_core::GUID, classdescription: &mut [u16], requiredsize: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetClassDescriptionExW(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetClassDescriptionW(classguid: *const windows_core::GUID, classdescription: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -2189,62 +2189,62 @@ pub unsafe fn SetupDiGetClassDescriptionW(classguid: *const windows_core::GUID, #[inline] pub unsafe fn SetupDiGetClassDevPropertySheetsA(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), propertysheetheader, propertysheetheaderpagelistsize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), propertysheettype).ok() + SetupDiGetClassDevPropertySheetsA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), propertysheetheader, propertysheetheaderpagelistsize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), propertysheettype).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SetupDiGetClassDevPropertySheetsW(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), propertysheetheader, propertysheetheaderpagelistsize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), propertysheettype).ok() + SetupDiGetClassDevPropertySheetsW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), propertysheetheader, propertysheetheaderpagelistsize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), propertysheettype).ok() } #[inline] pub unsafe fn SetupDiGetClassDevsA(classguid: Option<*const windows_core::GUID>, enumerator: P0, hwndparent: P1, flags: SETUP_DI_GET_CLASS_DEVS_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(std::ptr::null())), enumerator.into_param().abi(), hwndparent.into_param().abi(), flags); + let result__ = SetupDiGetClassDevsA(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), enumerator.param().abi(), hwndparent.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiGetClassDevsExA(classguid: Option<*const windows_core::GUID>, enumerator: P0, hwndparent: P1, flags: SETUP_DI_GET_CLASS_DEVS_FLAGS, deviceinfoset: P2, machinename: P3, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(std::ptr::null())), enumerator.into_param().abi(), hwndparent.into_param().abi(), flags, deviceinfoset.into_param().abi(), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); + let result__ = SetupDiGetClassDevsExA(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), enumerator.param().abi(), hwndparent.param().abi(), flags, deviceinfoset.param().abi(), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiGetClassDevsExW(classguid: Option<*const windows_core::GUID>, enumerator: P0, hwndparent: P1, flags: SETUP_DI_GET_CLASS_DEVS_FLAGS, deviceinfoset: P2, machinename: P3, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(std::ptr::null())), enumerator.into_param().abi(), hwndparent.into_param().abi(), flags, deviceinfoset.into_param().abi(), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); + let result__ = SetupDiGetClassDevsExW(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), enumerator.param().abi(), hwndparent.param().abi(), flags, deviceinfoset.param().abi(), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiGetClassDevsW(classguid: Option<*const windows_core::GUID>, enumerator: P0, hwndparent: P1, flags: SETUP_DI_GET_CLASS_DEVS_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(std::ptr::null())), enumerator.into_param().abi(), hwndparent.into_param().abi(), flags); + let result__ = SetupDiGetClassDevsW(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), enumerator.param().abi(), hwndparent.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_Controls")] @@ -2263,44 +2263,44 @@ pub unsafe fn SetupDiGetClassImageList(classimagelistdata: *mut SP_CLASSIMAGELIS #[inline] pub unsafe fn SetupDiGetClassImageListExA(classimagelistdata: *mut SP_CLASSIMAGELIST_DATA, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageListExA(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassImageListExA(classimagelistdata, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetClassImageListExA(classimagelistdata, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiGetClassImageListExW(classimagelistdata: *mut SP_CLASSIMAGELIST_DATA, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageListExW(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetClassImageListExW(classimagelistdata, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetClassImageListExW(classimagelistdata, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetClassInstallParamsA(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*mut SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null_mut())), classinstallparamssize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetClassInstallParamsA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null_mut())), classinstallparamssize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetClassInstallParamsW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*mut SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null_mut())), classinstallparamssize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetClassInstallParamsW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null_mut())), classinstallparamssize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetClassPropertyExW(classguid: *const windows_core::GUID, propertykey: *const super::Properties::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::Properties:: 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(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()), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), flags, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetClassPropertyExW(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()), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -2312,10 +2312,10 @@ pub unsafe fn SetupDiGetClassPropertyKeys(classguid: *const windows_core::GUID, #[inline] pub unsafe fn SetupDiGetClassPropertyKeysExW(classguid: *const windows_core::GUID, propertykeyarray: Option<&mut [super::Properties::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyKeysExW(classguid : *const windows_core::GUID, propertykeyarray : *mut super::Properties:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - 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(std::ptr::null_mut())), flags, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).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(std::ptr::null_mut())), flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -2326,200 +2326,200 @@ pub unsafe fn SetupDiGetClassPropertyW(classguid: *const windows_core::GUID, pro #[inline] pub unsafe fn SetupDiGetClassRegistryPropertyA(classguid: *const windows_core::GUID, property: u32, propertyregdatatype: Option<*mut u32>, propertybuffer: &mut [u8], requiredsize: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(classguid, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetClassRegistryPropertyA(classguid, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).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: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(classguid, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetClassRegistryPropertyW(classguid, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetCustomDevicePropertyA(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, custompropertyname: P1, flags: u32, propertyregdatatype: Option<*mut u32>, propertybuffer: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinfodata, custompropertyname.into_param().abi(), flags, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetCustomDevicePropertyA(deviceinfoset.param().abi(), deviceinfodata, custompropertyname.param().abi(), flags, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetCustomDevicePropertyW(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, custompropertyname: P1, flags: u32, propertyregdatatype: Option<*mut u32>, propertybuffer: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(deviceinfoset.into_param().abi(), deviceinfodata, custompropertyname.into_param().abi(), flags, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetCustomDevicePropertyW(deviceinfoset.param().abi(), deviceinfodata, custompropertyname.param().abi(), flags, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInfoListClass(deviceinfoset: P0, classguid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListClass(deviceinfoset : HDEVINFO, classguid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInfoListClass(deviceinfoset.into_param().abi(), classguid).ok() + SetupDiGetDeviceInfoListClass(deviceinfoset.param().abi(), classguid).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInfoListDetailA(deviceinfoset: P0, deviceinfosetdetaildata: *mut SP_DEVINFO_LIST_DETAIL_DATA_A) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailA(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_A) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInfoListDetailA(deviceinfoset.into_param().abi(), deviceinfosetdetaildata).ok() + SetupDiGetDeviceInfoListDetailA(deviceinfoset.param().abi(), deviceinfosetdetaildata).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInfoListDetailW(deviceinfoset: P0, deviceinfosetdetaildata: *mut SP_DEVINFO_LIST_DETAIL_DATA_W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailW(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_W) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInfoListDetailW(deviceinfoset.into_param().abi(), deviceinfosetdetaildata).ok() + SetupDiGetDeviceInfoListDetailW(deviceinfoset.param().abi(), deviceinfosetdetaildata).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstallParamsA(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *mut SP_DEVINSTALL_PARAMS_A) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() + SetupDiGetDeviceInstallParamsA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstallParamsW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *mut SP_DEVINSTALL_PARAMS_W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() + SetupDiGetDeviceInstallParamsW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstanceIdA(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, deviceinstanceid: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), 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(std::ptr::null_mut()))).ok() + SetupDiGetDeviceInstanceIdA(deviceinfoset.param().abi(), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInstanceIdW(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, deviceinstanceid: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), 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(std::ptr::null_mut()))).ok() + SetupDiGetDeviceInstanceIdW(deviceinfoset.param().abi(), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceAlias(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, aliasinterfaceclassguid: *const windows_core::GUID, aliasdeviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinterfacedata, aliasinterfaceclassguid, aliasdeviceinterfacedata).ok() + SetupDiGetDeviceInterfaceAlias(deviceinfoset.param().abi(), deviceinterfacedata, aliasinterfaceclassguid, aliasdeviceinterfacedata).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceDetailA(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinterfacedata, core::mem::transmute(deviceinterfacedetaildata.unwrap_or(std::ptr::null_mut())), deviceinterfacedetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetDeviceInterfaceDetailA(deviceinfoset.param().abi(), deviceinterfacedata, core::mem::transmute(deviceinterfacedetaildata.unwrap_or(std::ptr::null_mut())), deviceinterfacedetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceDetailW(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinterfacedata, core::mem::transmute(deviceinterfacedetaildata.unwrap_or(std::ptr::null_mut())), deviceinterfacedetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetDeviceInterfaceDetailW(deviceinfoset.param().abi(), deviceinterfacedata, core::mem::transmute(deviceinterfacedetaildata.unwrap_or(std::ptr::null_mut())), deviceinterfacedetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykeyarray: Option<&mut [super::Properties::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykeyarray : *mut super::Properties:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset.into_param().abi(), 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(std::ptr::null_mut())), flags).ok() + SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset.param().abi(), 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(std::ptr::null_mut())), flags).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDeviceInterfacePropertyW(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykey: *const super::Properties::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDeviceInterfacePropertyW(deviceinfoset.into_param().abi(), 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()), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), flags).ok() + SetupDiGetDeviceInterfacePropertyW(deviceinfoset.param().abi(), 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()), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), flags).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDevicePropertyKeys(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, propertykeyarray: Option<&mut [super::Properties::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyKeys(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykeyarray : *mut super::Properties:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDevicePropertyKeys(deviceinfoset.into_param().abi(), 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(std::ptr::null_mut())), flags).ok() + SetupDiGetDevicePropertyKeys(deviceinfoset.param().abi(), 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(std::ptr::null_mut())), flags).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDevicePropertyW(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, propertykey: *const super::Properties::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiGetDevicePropertyW(deviceinfoset.into_param().abi(), 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()), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), flags).ok() + SetupDiGetDevicePropertyW(deviceinfoset.param().abi(), 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()), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), flags).ok() } #[inline] pub unsafe fn SetupDiGetDeviceRegistryPropertyA(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinfodata, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() + SetupDiGetDeviceRegistryPropertyA(deviceinfoset.param().abi(), deviceinfodata, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDeviceRegistryPropertyW(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinfodata, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() + SetupDiGetDeviceRegistryPropertyW(deviceinfoset.param().abi(), deviceinfodata, property, core::mem::transmute(propertyregdatatype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDriverInfoDetailA(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, core::mem::transmute(driverinfodetaildata.unwrap_or(std::ptr::null_mut())), driverinfodetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetDriverInfoDetailA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, core::mem::transmute(driverinfodetaildata.unwrap_or(std::ptr::null_mut())), driverinfodetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDriverInfoDetailW(deviceinfoset: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, core::mem::transmute(driverinfodetaildata.unwrap_or(std::ptr::null_mut())), driverinfodetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetDriverInfoDetailW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, core::mem::transmute(driverinfodetaildata.unwrap_or(std::ptr::null_mut())), driverinfodetaildatasize, core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetDriverInstallParamsA(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinstallparams: *mut SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() + SetupDiGetDriverInstallParamsA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() } #[inline] pub unsafe fn SetupDiGetDriverInstallParamsW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinstallparams: *mut SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() + SetupDiGetDriverInstallParamsW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameA(hwprofile: u32, friendlyname: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -2529,18 +2529,18 @@ pub unsafe fn SetupDiGetHwProfileFriendlyNameA(hwprofile: u32, friendlyname: &mu #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameExA(hwprofile: u32, friendlyname: &mut [u8], requiredsize: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetHwProfileFriendlyNameExA(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameExW(hwprofile: u32, friendlyname: &mut [u16], requiredsize: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetHwProfileFriendlyNameExW(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameW(hwprofile: u32, friendlyname: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -2555,127 +2555,127 @@ pub unsafe fn SetupDiGetHwProfileList(hwprofilelist: &mut [u32], requiredsize: * #[inline] pub unsafe fn SetupDiGetHwProfileListExA(hwprofilelist: &mut [u32], requiredsize: *mut u32, currentlyactiveindex: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileListExA(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetHwProfileListExA(core::mem::transmute(hwprofilelist.as_ptr()), hwprofilelist.len().try_into().unwrap(), requiredsize, core::mem::transmute(currentlyactiveindex.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetHwProfileListExA(core::mem::transmute(hwprofilelist.as_ptr()), hwprofilelist.len().try_into().unwrap(), requiredsize, core::mem::transmute(currentlyactiveindex.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetHwProfileListExW(hwprofilelist: &mut [u32], requiredsize: *mut u32, currentlyactiveindex: Option<*mut u32>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileListExW(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - SetupDiGetHwProfileListExW(core::mem::transmute(hwprofilelist.as_ptr()), hwprofilelist.len().try_into().unwrap(), requiredsize, core::mem::transmute(currentlyactiveindex.unwrap_or(std::ptr::null_mut())), machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiGetHwProfileListExW(core::mem::transmute(hwprofilelist.as_ptr()), hwprofilelist.len().try_into().unwrap(), requiredsize, core::mem::transmute(currentlyactiveindex.unwrap_or(std::ptr::null_mut())), machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiGetINFClassA(infname: P0, classguid: *mut windows_core::GUID, classname: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetINFClassA(infname : windows_core::PCSTR, classguid : *mut windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetINFClassA(infname.into_param().abi(), classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetINFClassA(infname.param().abi(), classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetINFClassW(infname: P0, classguid: *mut windows_core::GUID, classname: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetINFClassW(infname : windows_core::PCWSTR, classguid : *mut windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupDiGetINFClassW(infname.into_param().abi(), classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiGetINFClassW(infname.param().abi(), classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiGetSelectedDevice(deviceinfoset: P0, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiGetSelectedDevice(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiGetSelectedDevice(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiGetSelectedDriverA(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *mut SP_DRVINFO_DATA_V2_A) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata).ok() + SetupDiGetSelectedDriverA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata).ok() } #[inline] pub unsafe fn SetupDiGetSelectedDriverW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *mut SP_DRVINFO_DATA_V2_W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata).ok() + SetupDiGetSelectedDriverW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiGetWizardPage(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, installwizarddata: *const SP_INSTALLWIZARD_DATA, pagetype: u32, flags: u32) -> super::super::UI::Controls::HPROPSHEETPAGE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), installwizarddata, pagetype, flags) + SetupDiGetWizardPage(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), installwizarddata, pagetype, flags) } #[inline] pub unsafe fn SetupDiInstallClassA(hwndparent: P0, inffilename: P1, flags: u32, filequeue: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), inffilename.into_param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null()))).ok() + SetupDiInstallClassA(hwndparent.param().abi(), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiInstallClassExA(hwndparent: P0, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), inffilename.into_param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null())), core::mem::transmute(interfaceclassguid.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() + SetupDiInstallClassExA(hwndparent.param().abi(), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null())), core::mem::transmute(interfaceclassguid.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiInstallClassExW(hwndparent: P0, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), inffilename.into_param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null())), core::mem::transmute(interfaceclassguid.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() + SetupDiInstallClassExW(hwndparent.param().abi(), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null())), core::mem::transmute(interfaceclassguid.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiInstallClassW(hwndparent: P0, inffilename: P1, flags: u32, filequeue: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), inffilename.into_param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null()))).ok() + SetupDiInstallClassW(hwndparent.param().abi(), inffilename.param().abi(), flags, core::mem::transmute(filequeue.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiInstallDevice(deviceinfoset: P0, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiInstallDevice(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiInstallDevice(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiInstallDeviceInterfaces(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDeviceInterfaces(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiInstallDeviceInterfaces(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiInstallDeviceInterfaces(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiInstallDriverFiles(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDriverFiles(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiInstallDriverFiles(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiInstallDriverFiles(deviceinfoset.param().abi(), deviceinfodata).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -2687,10 +2687,10 @@ pub unsafe fn SetupDiLoadClassIcon(classguid: *const windows_core::GUID, largeic #[inline] pub unsafe fn SetupDiLoadDeviceIcon(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, cxicon: u32, cyicon: u32, flags: u32, hicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinfodata, cxicon, cyicon, flags, hicon).ok() + SetupDiLoadDeviceIcon(deviceinfoset.param().abi(), deviceinfodata, cxicon, cyicon, flags, hicon).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -2703,169 +2703,169 @@ pub unsafe fn SetupDiOpenClassRegKey(classguid: Option<*const windows_core::GUID #[inline] pub unsafe fn SetupDiOpenClassRegKeyExA(classguid: Option<*const windows_core::GUID>, samdesired: u32, flags: u32, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), samdesired, flags, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); + let result__ = SetupDiOpenClassRegKeyExA(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), samdesired, flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiOpenClassRegKeyExW(classguid: Option<*const windows_core::GUID>, samdesired: u32, flags: u32, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), samdesired, flags, machinename.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); + let result__ = SetupDiOpenClassRegKeyExW(core::mem::transmute(classguid.unwrap_or(std::ptr::null())), samdesired, flags, machinename.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiOpenDevRegKey(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA, scope: u32, hwprofile: u32, keytype: u32, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinfodata, scope, hwprofile, keytype, samdesired); + let result__ = SetupDiOpenDevRegKey(deviceinfoset.param().abi(), deviceinfodata, scope, hwprofile, keytype, samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiOpenDeviceInfoA(deviceinfoset: P0, deviceinstanceid: P1, hwndparent: P2, openflags: u32, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(deviceinfoset.into_param().abi(), deviceinstanceid.into_param().abi(), hwndparent.into_param().abi(), openflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiOpenDeviceInfoA(deviceinfoset.param().abi(), deviceinstanceid.param().abi(), hwndparent.param().abi(), openflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiOpenDeviceInfoW(deviceinfoset: P0, deviceinstanceid: P1, hwndparent: P2, openflags: u32, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(deviceinfoset.into_param().abi(), deviceinstanceid.into_param().abi(), hwndparent.into_param().abi(), openflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiOpenDeviceInfoW(deviceinfoset.param().abi(), deviceinstanceid.param().abi(), hwndparent.param().abi(), openflags, core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiOpenDeviceInterfaceA(deviceinfoset: P0, devicepath: P1, openflags: u32, deviceinterfacedata: Option<*mut SP_DEVICE_INTERFACE_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(deviceinfoset.into_param().abi(), devicepath.into_param().abi(), openflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiOpenDeviceInterfaceA(deviceinfoset.param().abi(), devicepath.param().abi(), openflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupDiOpenDeviceInterfaceRegKey(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, reserved: u32, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinterfacedata, reserved, samdesired); + let result__ = SetupDiOpenDeviceInterfaceRegKey(deviceinfoset.param().abi(), deviceinterfacedata, reserved, samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetupDiOpenDeviceInterfaceW(deviceinfoset: P0, devicepath: P1, openflags: u32, deviceinterfacedata: Option<*mut SP_DEVICE_INTERFACE_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(deviceinfoset.into_param().abi(), devicepath.into_param().abi(), openflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiOpenDeviceInterfaceW(deviceinfoset.param().abi(), devicepath.param().abi(), openflags, core::mem::transmute(deviceinterfacedata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiRegisterCoDeviceInstallers(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiRegisterCoDeviceInstallers(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiRegisterCoDeviceInstallers(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiRegisterCoDeviceInstallers(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiRegisterDeviceInfo(deviceinfoset: P0, deviceinfodata: *mut SP_DEVINFO_DATA, flags: u32, compareproc: PSP_DETSIG_CMPPROC, comparecontext: Option<*const core::ffi::c_void>, dupdeviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinfodata, flags, compareproc, core::mem::transmute(comparecontext.unwrap_or(std::ptr::null())), core::mem::transmute(dupdeviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiRegisterDeviceInfo(deviceinfoset.param().abi(), deviceinfodata, flags, compareproc, core::mem::transmute(comparecontext.unwrap_or(std::ptr::null())), core::mem::transmute(dupdeviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiRemoveDevice(deviceinfoset: P0, deviceinfodata: *mut SP_DEVINFO_DATA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiRemoveDevice(deviceinfoset.into_param().abi(), deviceinfodata) + SetupDiRemoveDevice(deviceinfoset.param().abi(), deviceinfodata) } #[inline] pub unsafe fn SetupDiRemoveDeviceInterface(deviceinfoset: P0, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDeviceInterface(deviceinfoset : HDEVINFO, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); - SetupDiRemoveDeviceInterface(deviceinfoset.into_param().abi(), deviceinterfacedata).ok() + SetupDiRemoveDeviceInterface(deviceinfoset.param().abi(), deviceinterfacedata).ok() } #[inline] pub unsafe fn SetupDiRestartDevices(deviceinfoset: P0, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiRestartDevices(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiRestartDevices(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiRestartDevices(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiSelectBestCompatDrv(deviceinfoset: P0, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectBestCompatDrv(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiSelectBestCompatDrv(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiSelectBestCompatDrv(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiSelectDevice(deviceinfoset: P0, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiSelectDevice(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiSelectDevice(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiSelectOEMDrv(hwndparent: P0, deviceinfoset: P1, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndparent.into_param().abi(), deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiSelectOEMDrv(hwndparent.param().abi(), deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiSetClassInstallParamsA(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*const SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null())), classinstallparamssize).ok() + SetupDiSetClassInstallParamsA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null())), classinstallparamssize).ok() } #[inline] pub unsafe fn SetupDiSetClassInstallParamsW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*const SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null())), classinstallparamssize).ok() + SetupDiSetClassInstallParamsW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(classinstallparams.unwrap_or(std::ptr::null())), classinstallparamssize).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetClassPropertyExW(classguid: *const windows_core::GUID, propertykey: *const super::Properties::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::Properties:: 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(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.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -2876,124 +2876,124 @@ pub unsafe fn SetupDiSetClassPropertyW(classguid: *const windows_core::GUID, pro #[inline] pub unsafe fn SetupDiSetClassRegistryPropertyA(classguid: *const windows_core::GUID, property: u32, propertybuffer: Option<&[u8]>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiSetClassRegistryPropertyW(classguid: *const windows_core::GUID, property: u32, propertybuffer: Option<&[u8]>, machinename: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupDiSetDeviceInstallParamsA(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *const SP_DEVINSTALL_PARAMS_A) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() + SetupDiSetDeviceInstallParamsA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetDeviceInstallParamsW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *const SP_DEVINSTALL_PARAMS_W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() + SetupDiSetDeviceInstallParamsW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), deviceinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetDeviceInterfaceDefault(deviceinfoset: P0, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA, flags: u32, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), deviceinterfacedata, flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + SetupDiSetDeviceInterfaceDefault(deviceinfoset.param().abi(), deviceinterfacedata, flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetDeviceInterfacePropertyW(deviceinfoset: P0, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykey: *const super::Properties::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiSetDeviceInterfacePropertyW(deviceinfoset.into_param().abi(), 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() + SetupDiSetDeviceInterfacePropertyW(deviceinfoset.param().abi(), 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: P0, deviceinfodata: *const SP_DEVINFO_DATA, propertykey: *const super::Properties::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::Properties:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); - SetupDiSetDevicePropertyW(deviceinfoset.into_param().abi(), 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() + SetupDiSetDevicePropertyW(deviceinfoset.param().abi(), 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: P0, deviceinfodata: *mut SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertybuffer: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), 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() + SetupDiSetDeviceRegistryPropertyA(deviceinfoset.param().abi(), 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: P0, deviceinfodata: *mut SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertybuffer: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), 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() + SetupDiSetDeviceRegistryPropertyW(deviceinfoset.param().abi(), 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: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinstallparams: *const SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() + SetupDiSetDriverInstallParamsA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetDriverInstallParamsW(deviceinfoset: P0, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinstallparams: *const SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() + SetupDiSetDriverInstallParamsW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), driverinfodata, driverinstallparams).ok() } #[inline] pub unsafe fn SetupDiSetSelectedDevice(deviceinfoset: P0, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiSetSelectedDevice(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiSetSelectedDevice(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDiSetSelectedDriverA(deviceinfoset: P0, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, driverinfodata: Option<*mut SP_DRVINFO_DATA_V2_A>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(driverinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiSetSelectedDriverA(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(driverinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiSetSelectedDriverW(deviceinfoset: P0, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, driverinfodata: Option<*mut SP_DRVINFO_DATA_V2_W>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(driverinfodata.unwrap_or(std::ptr::null_mut()))).ok() + SetupDiSetSelectedDriverW(deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(driverinfodata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupDiUnremoveDevice(deviceinfoset: P0, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupDiUnremoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); - SetupDiUnremoveDevice(deviceinfoset.into_param().abi(), deviceinfodata).ok() + SetupDiUnremoveDevice(deviceinfoset.param().abi(), deviceinfodata).ok() } #[inline] pub unsafe fn SetupDuplicateDiskSpaceListA(diskspace: *const core::ffi::c_void, reserved1: Option<*const core::ffi::c_void>, reserved2: u32, flags: u32) -> *mut core::ffi::c_void { @@ -3018,20 +3018,20 @@ pub unsafe fn SetupEnumInfSectionsW(infhandle: *const core::ffi::c_void, index: #[inline] pub unsafe fn SetupFindFirstLineA(infhandle: *const core::ffi::c_void, section: P0, key: P1, context: *mut INFCONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(infhandle, section.into_param().abi(), key.into_param().abi(), context).ok() + SetupFindFirstLineA(infhandle, section.param().abi(), key.param().abi(), context).ok() } #[inline] pub unsafe fn SetupFindFirstLineW(infhandle: *const core::ffi::c_void, section: P0, key: P1, context: *mut INFCONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(infhandle, section.into_param().abi(), key.into_param().abi(), context).ok() + SetupFindFirstLineW(infhandle, section.param().abi(), key.param().abi(), context).ok() } #[inline] pub unsafe fn SetupFindNextLine(contextin: *const INFCONTEXT, contextout: *mut INFCONTEXT) -> windows_core::Result<()> { @@ -3041,18 +3041,18 @@ pub unsafe fn SetupFindNextLine(contextin: *const INFCONTEXT, contextout: *mut I #[inline] pub unsafe fn SetupFindNextMatchLineA(contextin: *const INFCONTEXT, key: P0, contextout: *mut INFCONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(contextin, key.into_param().abi(), contextout).ok() + SetupFindNextMatchLineA(contextin, key.param().abi(), contextout).ok() } #[inline] pub unsafe fn SetupFindNextMatchLineW(contextin: *const INFCONTEXT, key: P0, contextout: *mut INFCONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(contextin, key.into_param().abi(), contextout).ok() + SetupFindNextMatchLineW(contextin, key.param().abi(), contextout).ok() } #[inline] pub unsafe fn SetupFreeSourceListA(list: &mut [*mut windows_core::PCSTR]) -> windows_core::Result<()> { @@ -3087,34 +3087,34 @@ pub unsafe fn SetupGetFieldCount(context: *const INFCONTEXT) -> u32 { #[inline] pub unsafe fn SetupGetFileCompressionInfoA(sourcefilename: P0, actualsourcefilename: *mut windows_core::PSTR, sourcefilesize: *mut u32, targetfilesize: *mut u32, compressiontype: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoA(sourcefilename : windows_core::PCSTR, actualsourcefilename : *mut windows_core::PSTR, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut u32) -> u32); - SetupGetFileCompressionInfoA(sourcefilename.into_param().abi(), actualsourcefilename, sourcefilesize, targetfilesize, compressiontype) + SetupGetFileCompressionInfoA(sourcefilename.param().abi(), actualsourcefilename, sourcefilesize, targetfilesize, compressiontype) } #[inline] pub unsafe fn SetupGetFileCompressionInfoExA(sourcefilename: P0, actualsourcefilenamebuffer: Option<&[u8]>, requiredbufferlen: Option<*mut u32>, sourcefilesize: *mut u32, targetfilesize: *mut u32, compressiontype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoExA(sourcefilename : windows_core::PCSTR, actualsourcefilenamebuffer : windows_core::PCSTR, actualsourcefilenamebufferlen : u32, requiredbufferlen : *mut u32, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetFileCompressionInfoExA(sourcefilename.into_param().abi(), core::mem::transmute(actualsourcefilenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualsourcefilenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredbufferlen.unwrap_or(std::ptr::null_mut())), sourcefilesize, targetfilesize, compressiontype).ok() + SetupGetFileCompressionInfoExA(sourcefilename.param().abi(), core::mem::transmute(actualsourcefilenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualsourcefilenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredbufferlen.unwrap_or(std::ptr::null_mut())), sourcefilesize, targetfilesize, compressiontype).ok() } #[inline] pub unsafe fn SetupGetFileCompressionInfoExW(sourcefilename: P0, actualsourcefilenamebuffer: Option<&[u16]>, requiredbufferlen: Option<*mut u32>, sourcefilesize: *mut u32, targetfilesize: *mut u32, compressiontype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoExW(sourcefilename : windows_core::PCWSTR, actualsourcefilenamebuffer : windows_core::PCWSTR, actualsourcefilenamebufferlen : u32, requiredbufferlen : *mut u32, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetFileCompressionInfoExW(sourcefilename.into_param().abi(), core::mem::transmute(actualsourcefilenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualsourcefilenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredbufferlen.unwrap_or(std::ptr::null_mut())), sourcefilesize, targetfilesize, compressiontype).ok() + SetupGetFileCompressionInfoExW(sourcefilename.param().abi(), core::mem::transmute(actualsourcefilenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualsourcefilenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(requiredbufferlen.unwrap_or(std::ptr::null_mut())), sourcefilesize, targetfilesize, compressiontype).ok() } #[inline] pub unsafe fn SetupGetFileCompressionInfoW(sourcefilename: P0, actualsourcefilename: *mut windows_core::PWSTR, sourcefilesize: *mut u32, targetfilesize: *mut u32, compressiontype: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoW(sourcefilename : windows_core::PCWSTR, actualsourcefilename : *mut windows_core::PWSTR, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut u32) -> u32); - SetupGetFileCompressionInfoW(sourcefilename.into_param().abi(), actualsourcefilename, sourcefilesize, targetfilesize, compressiontype) + SetupGetFileCompressionInfoW(sourcefilename.param().abi(), actualsourcefilename, sourcefilesize, targetfilesize, compressiontype) } #[inline] pub unsafe fn SetupGetFileQueueCount(filequeue: *const core::ffi::c_void, subqueuefileop: u32, numoperations: *mut u32) -> windows_core::Result<()> { @@ -3130,37 +3130,37 @@ pub unsafe fn SetupGetFileQueueFlags(filequeue: *const core::ffi::c_void, flags: #[inline] pub unsafe fn SetupGetInfDriverStoreLocationA(filename: P0, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, localename: P1, returnbuffer: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfDriverStoreLocationA(filename : windows_core::PCSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, localename : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfDriverStoreLocationA(filename.into_param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), localename.into_param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupGetInfDriverStoreLocationA(filename.param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), localename.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupGetInfDriverStoreLocationW(filename: P0, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, localename: P1, returnbuffer: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfDriverStoreLocationW(filename : windows_core::PCWSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, localename : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfDriverStoreLocationW(filename.into_param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), localename.into_param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupGetInfDriverStoreLocationW(filename.param().abi(), core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), localename.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetInfFileListA(directorypath: P0, infstyle: INF_STYLE, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetInfFileListW(directorypath: P0, infstyle: INF_STYLE, returnbuffer: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), infstyle, core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupGetInfFileListW(directorypath.param().abi(), infstyle, core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).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<()> { @@ -3175,18 +3175,18 @@ pub unsafe fn SetupGetInfInformationW(infspec: *const core::ffi::c_void, searchc #[inline] pub unsafe fn SetupGetInfPublishedNameA(driverstorelocation: P0, returnbuffer: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfPublishedNameA(driverstorelocation : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfPublishedNameA(driverstorelocation.into_param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupGetInfPublishedNameA(driverstorelocation.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetInfPublishedNameW(driverstorelocation: P0, returnbuffer: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetInfPublishedNameW(driverstorelocation : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetInfPublishedNameW(driverstorelocation.into_param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() + SetupGetInfPublishedNameW(driverstorelocation.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), core::mem::transmute(requiredsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetIntField(context: *const INFCONTEXT, fieldindex: u32, integervalue: *mut i32) -> windows_core::Result<()> { @@ -3196,52 +3196,52 @@ pub unsafe fn SetupGetIntField(context: *const INFCONTEXT, fieldindex: u32, inte #[inline] pub unsafe fn SetupGetLineByIndexA(infhandle: *const core::ffi::c_void, section: P0, index: u32, context: *mut INFCONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, section.into_param().abi(), index, context).ok() + SetupGetLineByIndexA(infhandle, section.param().abi(), index, context).ok() } #[inline] pub unsafe fn SetupGetLineByIndexW(infhandle: *const core::ffi::c_void, section: P0, index: u32, context: *mut INFCONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, section.into_param().abi(), index, context).ok() + SetupGetLineByIndexW(infhandle, section.param().abi(), index, context).ok() } #[inline] pub unsafe fn SetupGetLineCountA(infhandle: *const core::ffi::c_void, section: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineCountA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> i32); - SetupGetLineCountA(infhandle, section.into_param().abi()) + SetupGetLineCountA(infhandle, section.param().abi()) } #[inline] pub unsafe fn SetupGetLineCountW(infhandle: *const core::ffi::c_void, section: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineCountW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> i32); - SetupGetLineCountW(infhandle, section.into_param().abi()) + SetupGetLineCountW(infhandle, section.param().abi()) } #[inline] pub unsafe fn SetupGetLineTextA(context: Option<*const INFCONTEXT>, infhandle: Option<*const core::ffi::c_void>, section: P0, key: P1, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineTextA(context : *const INFCONTEXT, infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, key : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetLineTextA(core::mem::transmute(context.unwrap_or(std::ptr::null())), core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), section.into_param().abi(), key.into_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(std::ptr::null_mut()))).ok() + SetupGetLineTextA(core::mem::transmute(context.unwrap_or(std::ptr::null())), core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), section.param().abi(), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetLineTextW(context: Option<*const INFCONTEXT>, infhandle: Option<*const core::ffi::c_void>, section: P0, key: P1, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupGetLineTextW(context : *const INFCONTEXT, infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, key : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); - SetupGetLineTextW(core::mem::transmute(context.unwrap_or(std::ptr::null())), core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), section.into_param().abi(), key.into_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(std::ptr::null_mut()))).ok() + SetupGetLineTextW(core::mem::transmute(context.unwrap_or(std::ptr::null())), core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), section.param().abi(), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetMultiSzFieldA(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -3261,36 +3261,36 @@ pub unsafe fn SetupGetNonInteractiveMode() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn SetupGetSourceFileLocationA(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, filename: P0, sourceid: *mut u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.into_param().abi(), 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(std::ptr::null_mut()))).ok() + SetupGetSourceFileLocationA(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.param().abi(), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetSourceFileLocationW(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, filename: P0, sourceid: *mut u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.into_param().abi(), 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(std::ptr::null_mut()))).ok() + SetupGetSourceFileLocationW(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.param().abi(), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetSourceFileSizeA(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, filename: P0, section: P1, filesize: *mut u32, roundingfactor: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.into_param().abi(), section.into_param().abi(), filesize, roundingfactor).ok() + SetupGetSourceFileSizeA(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.param().abi(), section.param().abi(), filesize, roundingfactor).ok() } #[inline] pub unsafe fn SetupGetSourceFileSizeW(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, filename: P0, section: P1, filesize: *mut u32, roundingfactor: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.into_param().abi(), section.into_param().abi(), filesize, roundingfactor).ok() + SetupGetSourceFileSizeW(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), filename.param().abi(), section.param().abi(), 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<()> { @@ -3315,18 +3315,18 @@ pub unsafe fn SetupGetStringFieldW(context: *const INFCONTEXT, fieldindex: u32, #[inline] pub unsafe fn SetupGetTargetPathA(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, section: P0, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), section.into_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(std::ptr::null_mut()))).ok() + SetupGetTargetPathA(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetTargetPathW(infhandle: *const core::ffi::c_void, infcontext: Option<*const INFCONTEXT>, section: P0, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), section.into_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(std::ptr::null_mut()))).ok() + SetupGetTargetPathW(infhandle, core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupGetThreadLogToken() -> u64 { @@ -3336,227 +3336,227 @@ pub unsafe fn SetupGetThreadLogToken() -> u64 { #[inline] pub unsafe fn SetupInitDefaultQueueCallback(ownerwindow: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupInitDefaultQueueCallback(ownerwindow : super::super::Foundation:: HWND) -> *mut core::ffi::c_void); - SetupInitDefaultQueueCallback(ownerwindow.into_param().abi()) + SetupInitDefaultQueueCallback(ownerwindow.param().abi()) } #[inline] pub unsafe fn SetupInitDefaultQueueCallbackEx(ownerwindow: P0, alternateprogresswindow: P1, progressmessage: u32, reserved1: u32, reserved2: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(ownerwindow.into_param().abi(), alternateprogresswindow.into_param().abi(), progressmessage, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) + SetupInitDefaultQueueCallbackEx(ownerwindow.param().abi(), alternateprogresswindow.param().abi(), progressmessage, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetupInitializeFileLogA(logfilename: P0, flags: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags) + SetupInitializeFileLogA(logfilename.param().abi(), flags) } #[inline] pub unsafe fn SetupInitializeFileLogW(logfilename: P0, flags: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags) + SetupInitializeFileLogW(logfilename.param().abi(), flags) } #[inline] pub unsafe fn SetupInstallFileA(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P0, sourcepathroot: P1, destinationname: P2, copystyle: SP_COPY_STYLE, copymsghandler: PSP_FILE_CALLBACK_A, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.into_param().abi(), sourcepathroot.into_param().abi(), destinationname.into_param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + SetupInstallFileA(core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupInstallFileExA(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P0, sourcepathroot: P1, destinationname: P2, copystyle: SP_COPY_STYLE, copymsghandler: PSP_FILE_CALLBACK_A, context: Option<*const core::ffi::c_void>, filewasinuse: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.into_param().abi(), sourcepathroot.into_param().abi(), destinationname.into_param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), filewasinuse).ok() + SetupInstallFileExA(core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), filewasinuse).ok() } #[inline] pub unsafe fn SetupInstallFileExW(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P0, sourcepathroot: P1, destinationname: P2, copystyle: SP_COPY_STYLE, copymsghandler: PSP_FILE_CALLBACK_W, context: Option<*const core::ffi::c_void>, filewasinuse: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.into_param().abi(), sourcepathroot.into_param().abi(), destinationname.into_param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), filewasinuse).ok() + SetupInstallFileExW(core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), filewasinuse).ok() } #[inline] pub unsafe fn SetupInstallFileW(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P0, sourcepathroot: P1, destinationname: P2, copystyle: SP_COPY_STYLE, copymsghandler: PSP_FILE_CALLBACK_W, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.into_param().abi(), sourcepathroot.into_param().abi(), destinationname.into_param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + SetupInstallFileW(core::mem::transmute(infhandle.unwrap_or(std::ptr::null())), core::mem::transmute(infcontext.unwrap_or(std::ptr::null())), sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler, core::mem::transmute(context.unwrap_or(std::ptr::null()))).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: P0, sourcerootpath: P1, copyflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), filequeue, sectionname.into_param().abi(), sourcerootpath.into_param().abi(), copyflags).ok() + SetupInstallFilesFromInfSectionA(infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), 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: P0, sourcerootpath: P1, copyflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), filequeue, sectionname.into_param().abi(), sourcerootpath.into_param().abi(), copyflags).ok() + SetupInstallFilesFromInfSectionW(infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), filequeue, sectionname.param().abi(), sourcerootpath.param().abi(), copyflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupInstallFromInfSectionA(owner: P0, infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32, relativekeyroot: P2, sourcerootpath: P3, copyflags: u32, msghandler: PSP_FILE_CALLBACK_A, context: Option<*const core::ffi::c_void>, deviceinfoset: P4, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(owner.into_param().abi(), infhandle, sectionname.into_param().abi(), flags, relativekeyroot.into_param().abi(), sourcerootpath.into_param().abi(), copyflags, msghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() + SetupInstallFromInfSectionA(owner.param().abi(), infhandle, sectionname.param().abi(), flags, relativekeyroot.param().abi(), sourcerootpath.param().abi(), copyflags, msghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SetupInstallFromInfSectionW(owner: P0, infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32, relativekeyroot: P2, sourcerootpath: P3, copyflags: u32, msghandler: PSP_FILE_CALLBACK_W, context: Option<*const core::ffi::c_void>, deviceinfoset: P4, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(owner.into_param().abi(), infhandle, sectionname.into_param().abi(), flags, relativekeyroot.into_param().abi(), sourcerootpath.into_param().abi(), copyflags, msghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() + SetupInstallFromInfSectionW(owner.param().abi(), infhandle, sectionname.param().abi(), flags, relativekeyroot.param().abi(), sourcerootpath.param().abi(), copyflags, msghandler, core::mem::transmute(context.unwrap_or(std::ptr::null())), deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionA(infhandle: *const core::ffi::c_void, sectionname: P0, flags: SPSVCINST_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, sectionname.into_param().abi(), flags).ok() + SetupInstallServicesFromInfSectionA(infhandle, sectionname.param().abi(), flags).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionExA(infhandle: *const core::ffi::c_void, sectionname: P0, flags: SPSVCINST_FLAGS, deviceinfoset: P1, deviceinfodata: Option<*const SP_DEVINFO_DATA>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(infhandle, sectionname.into_param().abi(), flags, deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() + SetupInstallServicesFromInfSectionExA(infhandle, sectionname.param().abi(), flags, deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionExW(infhandle: *const core::ffi::c_void, sectionname: P0, flags: SPSVCINST_FLAGS, deviceinfoset: P1, deviceinfodata: Option<*const SP_DEVINFO_DATA>, reserved1: Option<*const core::ffi::c_void>, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(infhandle, sectionname.into_param().abi(), flags, deviceinfoset.into_param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() + SetupInstallServicesFromInfSectionExW(infhandle, sectionname.param().abi(), flags, deviceinfoset.param().abi(), core::mem::transmute(deviceinfodata.unwrap_or(std::ptr::null())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupInstallServicesFromInfSectionW(infhandle: *const core::ffi::c_void, sectionname: P0, flags: SPSVCINST_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, sectionname.into_param().abi(), flags).ok() + SetupInstallServicesFromInfSectionW(infhandle, sectionname.param().abi(), flags).ok() } #[inline] pub unsafe fn SetupIterateCabinetA(cabinetfile: P0, reserved: u32, msghandler: PSP_FILE_CALLBACK_A, context: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), reserved, msghandler, context).ok() + SetupIterateCabinetA(cabinetfile.param().abi(), reserved, msghandler, context).ok() } #[inline] pub unsafe fn SetupIterateCabinetW(cabinetfile: P0, reserved: u32, msghandler: PSP_FILE_CALLBACK_W, context: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), reserved, msghandler, context).ok() + SetupIterateCabinetW(cabinetfile.param().abi(), reserved, msghandler, context).ok() } #[inline] pub unsafe fn SetupLogErrorA(messagestring: P0, severity: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorA(messagestring : windows_core::PCSTR, severity : u32) -> super::super::Foundation:: BOOL); - SetupLogErrorA(messagestring.into_param().abi(), severity).ok() + SetupLogErrorA(messagestring.param().abi(), severity).ok() } #[inline] pub unsafe fn SetupLogErrorW(messagestring: P0, severity: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorW(messagestring : windows_core::PCWSTR, severity : u32) -> super::super::Foundation:: BOOL); - SetupLogErrorW(messagestring.into_param().abi(), severity).ok() + SetupLogErrorW(messagestring.param().abi(), severity).ok() } #[inline] pub unsafe fn SetupLogFileA(fileloghandle: *const core::ffi::c_void, logsectionname: P0, sourcefilename: P1, targetfilename: P2, checksum: u32, disktagfile: P3, diskdescription: P4, otherinfo: P5, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(fileloghandle, logsectionname.into_param().abi(), sourcefilename.into_param().abi(), targetfilename.into_param().abi(), checksum, disktagfile.into_param().abi(), diskdescription.into_param().abi(), otherinfo.into_param().abi(), 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: P0, sourcefilename: P1, targetfilename: P2, checksum: u32, disktagfile: P3, diskdescription: P4, otherinfo: P5, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(fileloghandle, logsectionname.into_param().abi(), sourcefilename.into_param().abi(), targetfilename.into_param().abi(), checksum, disktagfile.into_param().abi(), diskdescription.into_param().abi(), otherinfo.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), infhandle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))).ok() + SetupOpenAppendInfFileA(filename.param().abi(), infhandle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupOpenAppendInfFileW(filename: P0, infhandle: *const core::ffi::c_void, errorline: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), infhandle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))).ok() + SetupOpenAppendInfFileW(filename.param().abi(), infhandle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupOpenFileQueue() -> *mut core::ffi::c_void { @@ -3566,28 +3566,28 @@ pub unsafe fn SetupOpenFileQueue() -> *mut core::ffi::c_void { #[inline] pub unsafe fn SetupOpenInfFileA(filename: P0, infclass: P1, infstyle: INF_STYLE, errorline: Option<*mut u32>) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), infclass.into_param().abi(), infstyle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))) + SetupOpenInfFileA(filename.param().abi(), infclass.param().abi(), infstyle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetupOpenInfFileW(filename: P0, infclass: P1, infstyle: INF_STYLE, errorline: Option<*mut u32>) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), infclass.into_param().abi(), infstyle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))) + SetupOpenInfFileW(filename.param().abi(), infclass.param().abi(), infstyle, core::mem::transmute(errorline.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetupOpenLog(erase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupOpenLog(erase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetupOpenLog(erase.into_param().abi()).ok() + SetupOpenLog(erase.param().abi()).ok() } #[inline] pub unsafe fn SetupOpenMasterInf() -> *mut core::ffi::c_void { @@ -3597,53 +3597,53 @@ pub unsafe fn SetupOpenMasterInf() -> *mut core::ffi::c_void { #[inline] pub unsafe fn SetupPrepareQueueForRestoreA(queuehandle: *const core::ffi::c_void, backuppath: P0, restoreflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(queuehandle, backuppath.into_param().abi(), restoreflags) + SetupPrepareQueueForRestoreA(queuehandle, backuppath.param().abi(), restoreflags) } #[inline] pub unsafe fn SetupPrepareQueueForRestoreW(queuehandle: *const core::ffi::c_void, backuppath: P0, restoreflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(queuehandle, backuppath.into_param().abi(), restoreflags) + SetupPrepareQueueForRestoreW(queuehandle, backuppath.param().abi(), restoreflags) } #[inline] pub unsafe fn SetupPromptForDiskA(hwndparent: P0, dialogtitle: P1, diskname: P2, pathtosource: P3, filesought: P4, tagfile: P5, diskpromptstyle: u32, pathbuffer: Option<&mut [u8]>, pathrequiredsize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), diskname.into_param().abi(), pathtosource.into_param().abi(), filesought.into_param().abi(), tagfile.into_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(std::ptr::null_mut()))) + SetupPromptForDiskA(hwndparent.param().abi(), 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetupPromptForDiskW(hwndparent: P0, dialogtitle: P1, diskname: P2, pathtosource: P3, filesought: P4, tagfile: P5, diskpromptstyle: u32, pathbuffer: Option<&mut [u16]>, pathrequiredsize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), diskname.into_param().abi(), pathtosource.into_param().abi(), filesought.into_param().abi(), tagfile.into_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(std::ptr::null_mut()))) + SetupPromptForDiskW(hwndparent.param().abi(), 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetupPromptReboot(filequeue: Option<*const core::ffi::c_void>, owner: P0, scanonly: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupPromptReboot(filequeue : *const core::ffi::c_void, owner : super::super::Foundation:: HWND, scanonly : super::super::Foundation:: BOOL) -> i32); - SetupPromptReboot(core::mem::transmute(filequeue.unwrap_or(std::ptr::null())), owner.into_param().abi(), scanonly.into_param().abi()) + SetupPromptReboot(core::mem::transmute(filequeue.unwrap_or(std::ptr::null())), owner.param().abi(), scanonly.param().abi()) } #[inline] pub unsafe fn SetupQueryDrivesInDiskSpaceListA(diskspace: *const core::ffi::c_void, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -3658,20 +3658,20 @@ pub unsafe fn SetupQueryDrivesInDiskSpaceListW(diskspace: *const core::ffi::c_vo #[inline] pub unsafe fn SetupQueryFileLogA(fileloghandle: *const core::ffi::c_void, logsectionname: P0, targetfilename: P1, desiredinfo: SetupFileLogInfo, dataout: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(fileloghandle, logsectionname.into_param().abi(), targetfilename.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupQueryFileLogW(fileloghandle: *const core::ffi::c_void, logsectionname: P0, targetfilename: P1, desiredinfo: SetupFileLogInfo, dataout: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(fileloghandle, logsectionname.into_param().abi(), targetfilename.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupQueryInfFileInformationA(infinformation: *const SP_INF_INFORMATION, infindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { @@ -3698,18 +3698,18 @@ pub unsafe fn SetupQueryInfOriginalFileInformationW(infinformation: *const SP_IN #[inline] pub unsafe fn SetupQueryInfVersionInformationA(infinformation: *const SP_INF_INFORMATION, infindex: u32, key: P0, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infinformation, infindex, key.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupQueryInfVersionInformationW(infinformation: *const SP_INF_INFORMATION, infindex: u32, key: P0, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infinformation, infindex, key.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetupQuerySourceListA(flags: u32, list: *mut *mut windows_core::PCSTR, count: *mut u32) -> windows_core::Result<()> { @@ -3724,32 +3724,32 @@ pub unsafe fn SetupQuerySourceListW(flags: u32, list: *mut *mut windows_core::PC #[inline] pub unsafe fn SetupQuerySpaceRequiredOnDriveA(diskspace: *const core::ffi::c_void, drivespec: P0, spacerequired: *mut i64, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, drivespec.into_param().abi(), spacerequired, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupQuerySpaceRequiredOnDriveA(diskspace, drivespec.param().abi(), spacerequired, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupQuerySpaceRequiredOnDriveW(diskspace: *const core::ffi::c_void, drivespec: P0, spacerequired: *mut i64, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, drivespec.into_param().abi(), spacerequired, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupQuerySpaceRequiredOnDriveW(diskspace, drivespec.param().abi(), spacerequired, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupQueueCopyA(queuehandle: *const core::ffi::c_void, sourcerootpath: P0, sourcepath: P1, sourcefilename: P2, sourcedescription: P3, sourcetagfile: P4, targetdirectory: P5, targetfilename: P6, copystyle: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: 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(queuehandle, sourcerootpath.into_param().abi(), sourcepath.into_param().abi(), sourcefilename.into_param().abi(), sourcedescription.into_param().abi(), sourcetagfile.into_param().abi(), targetdirectory.into_param().abi(), targetfilename.into_param().abi(), 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<()> { @@ -3764,296 +3764,296 @@ pub unsafe fn SetupQueueCopyIndirectW(copyparams: *const SP_FILE_COPY_PARAMS_W) #[inline] pub unsafe fn SetupQueueCopySectionA(queuehandle: *const core::ffi::c_void, sourcerootpath: P0, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P1, copystyle: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(queuehandle, sourcerootpath.into_param().abi(), infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.into_param().abi(), copystyle).ok() + SetupQueueCopySectionA(queuehandle, sourcerootpath.param().abi(), infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueCopySectionW(queuehandle: *const core::ffi::c_void, sourcerootpath: P0, infhandle: *const core::ffi::c_void, listinfhandle: Option<*const core::ffi::c_void>, section: P1, copystyle: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(queuehandle, sourcerootpath.into_param().abi(), infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.into_param().abi(), copystyle).ok() + SetupQueueCopySectionW(queuehandle, sourcerootpath.param().abi(), infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.param().abi(), copystyle).ok() } #[inline] pub unsafe fn SetupQueueCopyW(queuehandle: *const core::ffi::c_void, sourcerootpath: P0, sourcepath: P1, sourcefilename: P2, sourcedescription: P3, sourcetagfile: P4, targetdirectory: P5, targetfilename: P6, copystyle: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: 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(queuehandle, sourcerootpath.into_param().abi(), sourcepath.into_param().abi(), sourcefilename.into_param().abi(), sourcedescription.into_param().abi(), sourcetagfile.into_param().abi(), targetdirectory.into_param().abi(), targetfilename.into_param().abi(), 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: P0, sourcefilename: P1, targetfilename: P2, copystyle: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(queuehandle, infhandle, sourcerootpath.into_param().abi(), sourcefilename.into_param().abi(), targetfilename.into_param().abi(), 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: P0, sourcefilename: P1, targetfilename: P2, copystyle: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(queuehandle, infhandle, sourcerootpath.into_param().abi(), sourcefilename.into_param().abi(), targetfilename.into_param().abi(), 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: P0, pathpart2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(queuehandle, pathpart1.into_param().abi(), pathpart2.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.into_param().abi()).ok() + SetupQueueDeleteSectionA(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.into_param().abi()).ok() + SetupQueueDeleteSectionW(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueDeleteW(queuehandle: *const core::ffi::c_void, pathpart1: P0, pathpart2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(queuehandle, pathpart1.into_param().abi(), pathpart2.into_param().abi()).ok() + SetupQueueDeleteW(queuehandle, pathpart1.param().abi(), pathpart2.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueRenameA(queuehandle: *const core::ffi::c_void, sourcepath: P0, sourcefilename: P1, targetpath: P2, targetfilename: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(queuehandle, sourcepath.into_param().abi(), sourcefilename.into_param().abi(), targetpath.into_param().abi(), targetfilename.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.into_param().abi()).ok() + SetupQueueRenameSectionA(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.into_param().abi()).ok() + SetupQueueRenameSectionW(queuehandle, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), section.param().abi()).ok() } #[inline] pub unsafe fn SetupQueueRenameW(queuehandle: *const core::ffi::c_void, sourcepath: P0, sourcefilename: P1, targetpath: P2, targetfilename: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(queuehandle, sourcepath.into_param().abi(), sourcefilename.into_param().abi(), targetpath.into_param().abi(), targetfilename.into_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: P0, targetfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(fileloghandle, logsectionname.into_param().abi(), targetfilename.into_param().abi()).ok() + SetupRemoveFileLogEntryA(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveFileLogEntryW(fileloghandle: *const core::ffi::c_void, logsectionname: P0, targetfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(fileloghandle, logsectionname.into_param().abi(), targetfilename.into_param().abi()).ok() + SetupRemoveFileLogEntryW(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveFromDiskSpaceListA(diskspace: *const core::ffi::c_void, targetfilespec: P0, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, targetfilespec.into_param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupRemoveFromDiskSpaceListA(diskspace, targetfilespec.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupRemoveFromDiskSpaceListW(diskspace: *const core::ffi::c_void, targetfilespec: P0, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, targetfilespec.into_param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupRemoveFromDiskSpaceListW(diskspace, targetfilespec.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupRemoveFromSourceListA(flags: u32, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListA(flags : u32, source : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupRemoveFromSourceListA(flags, source.into_param().abi()).ok() + SetupRemoveFromSourceListA(flags, source.param().abi()).ok() } #[inline] pub unsafe fn SetupRemoveFromSourceListW(flags: u32, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListW(flags : u32, source : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupRemoveFromSourceListW(flags, source.into_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: P0, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupRemoveInstallSectionFromDiskSpaceListA(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).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: P0, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupRemoveInstallSectionFromDiskSpaceListW(diskspace, infhandle, core::mem::transmute(layoutinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).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: P0, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupRemoveSectionFromDiskSpaceListA(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).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: P0, operation: SETUP_FILE_OPERATION, reserved1: Option<*const core::ffi::c_void>, reserved2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.into_param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() + SetupRemoveSectionFromDiskSpaceListW(diskspace, infhandle, core::mem::transmute(listinfhandle.unwrap_or(std::ptr::null())), sectionname.param().abi(), operation, core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2).ok() } #[inline] pub unsafe fn SetupRenameErrorA(hwndparent: P0, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), sourcefile.into_param().abi(), targetfile.into_param().abi(), win32errorcode, style) + SetupRenameErrorA(hwndparent.param().abi(), dialogtitle.param().abi(), sourcefile.param().abi(), targetfile.param().abi(), win32errorcode, style) } #[inline] pub unsafe fn SetupRenameErrorW(hwndparent: P0, dialogtitle: P1, sourcefile: P2, targetfile: P3, win32errorcode: u32, style: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hwndparent.into_param().abi(), dialogtitle.into_param().abi(), sourcefile.into_param().abi(), targetfile.into_param().abi(), win32errorcode, style) + SetupRenameErrorW(hwndparent.param().abi(), 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: P0, callbackroutine: PSP_FILE_CALLBACK_A, callbackcontext: Option<*const core::ffi::c_void>, result: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filequeue, flags, window.into_param().abi(), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), result).ok() + SetupScanFileQueueA(filequeue, flags, window.param().abi(), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), result).ok() } #[inline] pub unsafe fn SetupScanFileQueueW(filequeue: *const core::ffi::c_void, flags: SETUPSCANFILEQUEUE_FLAGS, window: P0, callbackroutine: PSP_FILE_CALLBACK_W, callbackcontext: Option<*const core::ffi::c_void>, result: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filequeue, flags, window.into_param().abi(), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), result).ok() + SetupScanFileQueueW(filequeue, flags, window.param().abi(), callbackroutine, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), result).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdA(infhandle: *const core::ffi::c_void, id: u32, directory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, id, directory.into_param().abi()).ok() + SetupSetDirectoryIdA(infhandle, id, directory.param().abi()).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdExA(infhandle: *const core::ffi::c_void, id: u32, directory: P0, flags: u32, reserved1: u32, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, id, directory.into_param().abi(), flags, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() + SetupSetDirectoryIdExA(infhandle, id, directory.param().abi(), flags, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdExW(infhandle: *const core::ffi::c_void, id: u32, directory: P0, flags: u32, reserved1: u32, reserved2: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, id, directory.into_param().abi(), flags, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() + SetupSetDirectoryIdExW(infhandle, id, directory.param().abi(), flags, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetupSetDirectoryIdW(infhandle: *const core::ffi::c_void, id: u32, directory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(infhandle, id, directory.into_param().abi()).ok() + SetupSetDirectoryIdW(infhandle, id, directory.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupSetFileQueueAlternatePlatformA(queuehandle: *const core::ffi::c_void, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, alternatedefaultcatalogfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(queuehandle, core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), alternatedefaultcatalogfile.into_param().abi()).ok() + SetupSetFileQueueAlternatePlatformA(queuehandle, core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), alternatedefaultcatalogfile.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupSetFileQueueAlternatePlatformW(queuehandle: *const core::ffi::c_void, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, alternatedefaultcatalogfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(queuehandle, core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), alternatedefaultcatalogfile.into_param().abi()).ok() + SetupSetFileQueueAlternatePlatformW(queuehandle, core::mem::transmute(alternateplatforminfo.unwrap_or(std::ptr::null())), alternatedefaultcatalogfile.param().abi()).ok() } #[inline] pub unsafe fn SetupSetFileQueueFlags(filequeue: *const core::ffi::c_void, flagmask: u32, flags: u32) -> windows_core::Result<()> { @@ -4063,26 +4063,26 @@ pub unsafe fn SetupSetFileQueueFlags(filequeue: *const core::ffi::c_void, flagma #[inline] pub unsafe fn SetupSetNonInteractiveMode(noninteractiveflag: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetNonInteractiveMode(noninteractiveflag : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetupSetNonInteractiveMode(noninteractiveflag.into_param().abi()) + SetupSetNonInteractiveMode(noninteractiveflag.param().abi()) } #[inline] pub unsafe fn SetupSetPlatformPathOverrideA(r#override: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetPlatformPathOverrideA(r#override : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetupSetPlatformPathOverrideA(r#override.into_param().abi()).ok() + SetupSetPlatformPathOverrideA(r#override.param().abi()).ok() } #[inline] pub unsafe fn SetupSetPlatformPathOverrideW(r#override: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupSetPlatformPathOverrideW(r#override : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetupSetPlatformPathOverrideW(r#override.into_param().abi()).ok() + SetupSetPlatformPathOverrideW(r#override.param().abi()).ok() } #[inline] pub unsafe fn SetupSetSourceListA(flags: u32, sourcelist: &[windows_core::PCSTR]) -> windows_core::Result<()> { @@ -4117,52 +4117,52 @@ pub unsafe fn SetupUninstallNewlyCopiedInfs(filequeue: *const core::ffi::c_void, #[inline] pub unsafe fn SetupUninstallOEMInfA(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) + SetupUninstallOEMInfA(inffilename.param().abi(), flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetupUninstallOEMInfW(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) + SetupUninstallOEMInfW(inffilename.param().abi(), flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupVerifyInfFileA(infname: P0, altplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsignerinfo: *mut SP_INF_SIGNER_INFO_V2_A) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupVerifyInfFileA(infname : windows_core::PCSTR, altplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsignerinfo : *mut SP_INF_SIGNER_INFO_V2_A) -> super::super::Foundation:: BOOL); - SetupVerifyInfFileA(infname.into_param().abi(), core::mem::transmute(altplatforminfo.unwrap_or(std::ptr::null())), infsignerinfo) + SetupVerifyInfFileA(infname.param().abi(), core::mem::transmute(altplatforminfo.unwrap_or(std::ptr::null())), infsignerinfo) } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupVerifyInfFileW(infname: P0, altplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsignerinfo: *mut SP_INF_SIGNER_INFO_V2_W) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "system" fn SetupVerifyInfFileW(infname : windows_core::PCWSTR, altplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsignerinfo : *mut SP_INF_SIGNER_INFO_V2_W) -> super::super::Foundation:: BOOL); - SetupVerifyInfFileW(infname.into_param().abi(), core::mem::transmute(altplatforminfo.unwrap_or(std::ptr::null())), infsignerinfo) + SetupVerifyInfFileW(infname.param().abi(), core::mem::transmute(altplatforminfo.unwrap_or(std::ptr::null())), infsignerinfo) } #[inline] pub unsafe fn SetupWriteTextLog(logtoken: u64, category: u32, flags: u32, messagestr: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "cdecl" fn SetupWriteTextLog(logtoken : u64, category : u32, flags : u32, messagestr : windows_core::PCSTR)); - SetupWriteTextLog(logtoken, category, flags, messagestr.into_param().abi()) + SetupWriteTextLog(logtoken, category, flags, messagestr.param().abi()) } #[inline] pub unsafe fn SetupWriteTextLogError(logtoken: u64, category: u32, logflags: u32, error: u32, messagestr: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("setupapi.dll" "cdecl" fn SetupWriteTextLogError(logtoken : u64, category : u32, logflags : u32, error : u32, messagestr : windows_core::PCSTR)); - SetupWriteTextLogError(logtoken, category, logflags, error, messagestr.into_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) { @@ -4172,22 +4172,22 @@ pub unsafe fn SetupWriteTextLogInfLine(logtoken: u64, flags: u32, infhandle: *co #[inline] pub unsafe fn UpdateDriverForPlugAndPlayDevicesA(hwndparent: P0, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwndparent.into_param().abi(), hardwareid.into_param().abi(), fullinfpath.into_param().abi(), installflags, core::mem::transmute(brebootrequired.unwrap_or(std::ptr::null_mut()))).ok() + UpdateDriverForPlugAndPlayDevicesA(hwndparent.param().abi(), hardwareid.param().abi(), fullinfpath.param().abi(), installflags, core::mem::transmute(brebootrequired.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn UpdateDriverForPlugAndPlayDevicesW(hwndparent: P0, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwndparent.into_param().abi(), hardwareid.into_param().abi(), fullinfpath.into_param().abi(), installflags, core::mem::transmute(brebootrequired.unwrap_or(std::ptr::null_mut()))).ok() + UpdateDriverForPlugAndPlayDevicesW(hwndparent.param().abi(), hardwareid.param().abi(), fullinfpath.param().abi(), installflags, core::mem::transmute(brebootrequired.unwrap_or(std::ptr::null_mut()))).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 e619d8b034..0033773544 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn DevCloseObjectQuery(hdevquery: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCloseObjectQuery(hdevquery : HDEVQUERY)); - DevCloseObjectQuery(hdevquery.into_param().abi()) + DevCloseObjectQuery(hdevquery.param().abi()) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -37,13 +37,13 @@ pub unsafe fn DevCreateObjectQueryEx(objecttype: DEV_OBJECT_TYPE, queryflags: u3 #[inline] pub unsafe fn DevCreateObjectQueryFromId(objecttype: DEV_OBJECT_TYPE, pszobjectid: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); DevCreateObjectQueryFromId( objecttype, - pszobjectid.into_param().abi(), + pszobjectid.param().abi(), 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())), @@ -59,13 +59,13 @@ where #[inline] pub unsafe fn DevCreateObjectQueryFromIdEx(objecttype: DEV_OBJECT_TYPE, pszobjectid: P0, queryflags: u32, prequestedproperties: Option<&[super::Properties::DEVPROPCOMPKEY]>, pfilter: Option<&[DEVPROP_FILTER_EXPRESSION]>, pextendedparameters: Option<&[DEV_QUERY_PARAMETER]>, pcallback: PDEV_QUERY_RESULT_CALLBACK, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); DevCreateObjectQueryFromIdEx( objecttype, - pszobjectid.into_param().abi(), + pszobjectid.param().abi(), 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())), @@ -83,13 +83,13 @@ where #[inline] pub unsafe fn DevCreateObjectQueryFromIds(objecttype: DEV_OBJECT_TYPE, pszzobjectids: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); DevCreateObjectQueryFromIds( objecttype, - pszzobjectids.into_param().abi(), + pszzobjectids.param().abi(), 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())), @@ -105,13 +105,13 @@ where #[inline] pub unsafe fn DevCreateObjectQueryFromIdsEx(objecttype: DEV_OBJECT_TYPE, pszzobjectids: P0, queryflags: u32, prequestedproperties: Option<&[super::Properties::DEVPROPCOMPKEY]>, pfilter: Option<&[DEVPROP_FILTER_EXPRESSION]>, pextendedparameters: Option<&[DEV_QUERY_PARAMETER]>, pcallback: PDEV_QUERY_RESULT_CALLBACK, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); DevCreateObjectQueryFromIdsEx( objecttype, - pszzobjectids.into_param().abi(), + pszzobjectids.param().abi(), 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())), @@ -129,10 +129,10 @@ where #[inline] pub unsafe fn DevFindProperty(pkey: *const super::Properties::DEVPROPKEY, store: super::Properties::DEVPROPSTORE, pszlocalename: P0, pproperties: Option<&[super::Properties::DEVPROPERTY]>) -> *mut super::Properties::DEVPROPERTY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevFindProperty(pkey : *const super::Properties:: DEVPROPKEY, store : super::Properties:: DEVPROPSTORE, pszlocalename : windows_core::PCWSTR, cproperties : u32, pproperties : *const super::Properties:: DEVPROPERTY) -> *mut super::Properties:: DEVPROPERTY); - DevFindProperty(pkey, store, pszlocalename.into_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] @@ -150,19 +150,19 @@ pub unsafe fn DevFreeObjects(pobjects: &[DEV_OBJECT]) { #[inline] pub unsafe fn DevGetObjectProperties(objecttype: DEV_OBJECT_TYPE, pszobjectid: P0, queryflags: u32, prequestedproperties: &[super::Properties::DEVPROPCOMPKEY], pcpropertycount: *mut u32, ppproperties: *mut *mut super::Properties::DEVPROPERTY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(objecttype, pszobjectid.into_param().abi(), queryflags, prequestedproperties.len().try_into().unwrap(), core::mem::transmute(prequestedproperties.as_ptr()), pcpropertycount, ppproperties).ok() + DevGetObjectProperties(objecttype, pszobjectid.param().abi(), queryflags, prequestedproperties.len().try_into().unwrap(), core::mem::transmute(prequestedproperties.as_ptr()), pcpropertycount, ppproperties).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn DevGetObjectPropertiesEx(objecttype: DEV_OBJECT_TYPE, pszobjectid: P0, queryflags: u32, prequestedproperties: &[super::Properties::DEVPROPCOMPKEY], pextendedparameters: Option<&[DEV_QUERY_PARAMETER]>, pcpropertycount: *mut u32, ppproperties: *mut *mut super::Properties::DEVPROPERTY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(objecttype, pszobjectid.into_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())), pcpropertycount, 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())), pcpropertycount, ppproperties).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] 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 a7dac1b0c8..1ecb43d96b 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs @@ -26,10 +26,10 @@ pub unsafe fn CLIPOBJ_bEnum(pco: *mut CLIPOBJ, cj: u32, pul: *mut u32) -> super: #[inline] pub unsafe fn CLIPOBJ_cEnumStart(pco: *mut CLIPOBJ, ball: P0, itype: u32, idirection: u32, climit: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(pco, ball.into_param().abi(), itype, idirection, climit) + CLIPOBJ_cEnumStart(pco, ball.param().abi(), itype, idirection, climit) } #[inline] pub unsafe fn CLIPOBJ_ppoGetPath(pco: *mut CLIPOBJ) -> *mut PATHOBJ { @@ -39,26 +39,26 @@ pub unsafe fn CLIPOBJ_ppoGetPath(pco: *mut CLIPOBJ) -> *mut PATHOBJ { #[inline] pub unsafe fn CapabilitiesRequestAndCapabilitiesReply(hmonitor: P0, pszasciicapabilitiesstring: &mut [u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn CapabilitiesRequestAndCapabilitiesReply(hmonitor : super::super::Foundation:: HANDLE, pszasciicapabilitiesstring : windows_core::PSTR, dwcapabilitiesstringlengthincharacters : u32) -> i32); - CapabilitiesRequestAndCapabilitiesReply(hmonitor.into_param().abi(), core::mem::transmute(pszasciicapabilitiesstring.as_ptr()), pszasciicapabilitiesstring.len().try_into().unwrap()) + CapabilitiesRequestAndCapabilitiesReply(hmonitor.param().abi(), core::mem::transmute(pszasciicapabilitiesstring.as_ptr()), pszasciicapabilitiesstring.len().try_into().unwrap()) } #[inline] pub unsafe fn DegaussMonitor(hmonitor: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn DegaussMonitor(hmonitor : super::super::Foundation:: HANDLE) -> i32); - DegaussMonitor(hmonitor.into_param().abi()) + DegaussMonitor(hmonitor.param().abi()) } #[inline] pub unsafe fn DestroyPhysicalMonitor(hmonitor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn DestroyPhysicalMonitor(hmonitor : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DestroyPhysicalMonitor(hmonitor.into_param().abi()).ok() + DestroyPhysicalMonitor(hmonitor.param().abi()).ok() } #[inline] pub unsafe fn DestroyPhysicalMonitors(pphysicalmonitorarray: &[PHYSICAL_MONITOR]) -> windows_core::Result<()> { @@ -78,10 +78,10 @@ pub unsafe fn DisplayConfigSetDeviceInfo(setpacket: *const DISPLAYCONFIG_DEVICE_ #[inline] pub unsafe fn EngAcquireSemaphore(hsem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngAcquireSemaphore(hsem : HSEMAPHORE)); - EngAcquireSemaphore(hsem.into_param().abi()) + EngAcquireSemaphore(hsem.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -92,11 +92,11 @@ pub unsafe fn EngAlphaBlend(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *m #[inline] pub unsafe fn EngAssociateSurface(hsurf: P0, hdev: P1, flhooks: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngAssociateSurface(hsurf : HSURF, hdev : HDEV, flhooks : u32) -> super::super::Foundation:: BOOL); - EngAssociateSurface(hsurf.into_param().abi(), hdev.into_param().abi(), flhooks) + EngAssociateSurface(hsurf.param().abi(), hdev.param().abi(), 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 { @@ -133,18 +133,18 @@ pub unsafe fn EngCreateClip() -> *mut CLIPOBJ { #[inline] pub unsafe fn EngCreateDeviceBitmap(dhsurf: P0, sizl: super::super::Foundation::SIZE, iformatcompat: u32) -> super::super::Graphics::Gdi::HBITMAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngCreateDeviceBitmap(dhsurf : DHSURF, sizl : super::super::Foundation:: SIZE, iformatcompat : u32) -> super::super::Graphics::Gdi:: HBITMAP); - EngCreateDeviceBitmap(dhsurf.into_param().abi(), core::mem::transmute(sizl), iformatcompat) + EngCreateDeviceBitmap(dhsurf.param().abi(), core::mem::transmute(sizl), iformatcompat) } #[inline] pub unsafe fn EngCreateDeviceSurface(dhsurf: P0, sizl: super::super::Foundation::SIZE, iformatcompat: u32) -> HSURF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngCreateDeviceSurface(dhsurf : DHSURF, sizl : super::super::Foundation:: SIZE, iformatcompat : u32) -> HSURF); - EngCreateDeviceSurface(dhsurf.into_param().abi(), core::mem::transmute(sizl), iformatcompat) + EngCreateDeviceSurface(dhsurf.param().abi(), core::mem::transmute(sizl), iformatcompat) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -166,10 +166,10 @@ pub unsafe fn EngDeleteClip(pco: Option<*const CLIPOBJ>) { #[inline] pub unsafe fn EngDeletePalette(hpal: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngDeletePalette(hpal : super::super::Graphics::Gdi:: HPALETTE) -> super::super::Foundation:: BOOL); - EngDeletePalette(hpal.into_param().abi()) + EngDeletePalette(hpal.param().abi()) } #[inline] pub unsafe fn EngDeletePath(ppo: *mut PATHOBJ) { @@ -179,18 +179,18 @@ pub unsafe fn EngDeletePath(ppo: *mut PATHOBJ) { #[inline] pub unsafe fn EngDeleteSemaphore(hsem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngDeleteSemaphore(hsem : HSEMAPHORE)); - EngDeleteSemaphore(hsem.into_param().abi()) + EngDeleteSemaphore(hsem.param().abi()) } #[inline] pub unsafe fn EngDeleteSurface(hsurf: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngDeleteSurface(hsurf : HSURF) -> super::super::Foundation:: BOOL); - EngDeleteSurface(hsurf.into_param().abi()) + EngDeleteSurface(hsurf.param().abi()) } #[inline] pub unsafe fn EngEraseSurface(pso: *mut SURFOBJ, prcl: *mut super::super::Foundation::RECTL, icolor: u32) -> super::super::Foundation::BOOL { @@ -205,18 +205,18 @@ pub unsafe fn EngFillPath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOB #[inline] pub unsafe fn EngFindResource(h: P0, iname: i32, itype: i32, pulsize: *mut u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(h.into_param().abi(), iname, itype, pulsize) + EngFindResource(h.param().abi(), iname, itype, pulsize) } #[inline] pub unsafe fn EngFreeModule(h: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngFreeModule(h : super::super::Foundation:: HANDLE)); - EngFreeModule(h.into_param().abi()) + EngFreeModule(h.param().abi()) } #[inline] pub unsafe fn EngGetCurrentCodePage(oemcodepage: *mut u16, ansicodepage: *mut u16) { @@ -226,18 +226,18 @@ pub unsafe fn EngGetCurrentCodePage(oemcodepage: *mut u16, ansicodepage: *mut u1 #[inline] pub unsafe fn EngGetDriverName(hdev: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngGetDriverName(hdev : HDEV) -> windows_core::PWSTR); - EngGetDriverName(hdev.into_param().abi()) + EngGetDriverName(hdev.param().abi()) } #[inline] pub unsafe fn EngGetPrinterDataFileName(hdev: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngGetPrinterDataFileName(hdev : HDEV) -> windows_core::PWSTR); - EngGetPrinterDataFileName(hdev.into_param().abi()) + EngGetPrinterDataFileName(hdev.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -253,26 +253,26 @@ pub unsafe fn EngLineTo(pso: *mut SURFOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ #[inline] pub unsafe fn EngLoadModule(pwsz: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngLoadModule(pwsz : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - EngLoadModule(pwsz.into_param().abi()) + EngLoadModule(pwsz.param().abi()) } #[inline] pub unsafe fn EngLockSurface(hsurf: P0) -> *mut SURFOBJ where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngLockSurface(hsurf : HSURF) -> *mut SURFOBJ); - EngLockSurface(hsurf.into_param().abi()) + EngLockSurface(hsurf.param().abi()) } #[inline] pub unsafe fn EngMarkBandingSurface(hsurf: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngMarkBandingSurface(hsurf : HSURF) -> super::super::Foundation:: BOOL); - EngMarkBandingSurface(hsurf.into_param().abi()) + EngMarkBandingSurface(hsurf.param().abi()) } #[inline] pub unsafe fn EngMultiByteToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, multibytestring: &[u8]) { @@ -299,10 +299,10 @@ pub unsafe fn EngPlgBlt(psotrg: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomsk: *mut #[inline] pub unsafe fn EngQueryEMFInfo(hdev: P0, pemfinfo: *mut EMFINFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngQueryEMFInfo(hdev : HDEV, pemfinfo : *mut EMFINFO) -> super::super::Foundation:: BOOL); - EngQueryEMFInfo(hdev.into_param().abi(), pemfinfo) + EngQueryEMFInfo(hdev.param().abi(), pemfinfo) } #[inline] pub unsafe fn EngQueryLocalTime() -> ENG_TIME_FIELDS { @@ -314,10 +314,10 @@ pub unsafe fn EngQueryLocalTime() -> ENG_TIME_FIELDS { #[inline] pub unsafe fn EngReleaseSemaphore(hsem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EngReleaseSemaphore(hsem : HSEMAPHORE)); - EngReleaseSemaphore(hsem.into_param().abi()) + EngReleaseSemaphore(hsem.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -354,10 +354,10 @@ pub unsafe fn EngTransparentBlt(psodst: *const SURFOBJ, psosrc: *const SURFOBJ, #[inline] pub unsafe fn EngUnicodeToMultiByteN(multibytestring: &mut [u8], bytesinmultibytestring: Option<*mut u32>, unicodestring: P0, bytesinunicodestring: u32) where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null_mut())), unicodestring.into_param().abi(), bytesinunicodestring) + EngUnicodeToMultiByteN(core::mem::transmute(multibytestring.as_ptr()), multibytestring.len().try_into().unwrap(), core::mem::transmute(bytesinmultibytestring.unwrap_or(std::ptr::null_mut())), unicodestring.param().abi(), bytesinunicodestring) } #[inline] pub unsafe fn EngUnlockSurface(pso: *mut SURFOBJ) { @@ -367,10 +367,10 @@ pub unsafe fn EngUnlockSurface(pso: *mut SURFOBJ) { #[inline] pub unsafe fn EngWideCharToMultiByte(codepage: u32, widecharstring: P0, bytesinwidecharstring: i32, multibytestring: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(codepage, widecharstring.into_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())) + 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 { @@ -421,10 +421,10 @@ pub unsafe fn GetAutoRotationState(pstate: *mut AR_STATE) -> super::super::Found #[inline] pub unsafe fn GetCapabilitiesStringLength(hmonitor: P0, pdwcapabilitiesstringlengthincharacters: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetCapabilitiesStringLength(hmonitor : super::super::Foundation:: HANDLE, pdwcapabilitiesstringlengthincharacters : *mut u32) -> i32); - GetCapabilitiesStringLength(hmonitor.into_param().abi(), pdwcapabilitiesstringlengthincharacters) + GetCapabilitiesStringLength(hmonitor.param().abi(), pdwcapabilitiesstringlengthincharacters) } #[inline] pub unsafe fn GetDisplayAutoRotationPreferences(porientation: *mut ORIENTATION_PREFERENCE) -> super::super::Foundation::BOOL { @@ -439,127 +439,127 @@ pub unsafe fn GetDisplayConfigBufferSizes(flags: QUERY_DISPLAY_CONFIG_FLAGS, num #[inline] pub unsafe fn GetMonitorBrightness(hmonitor: P0, pdwminimumbrightness: *mut u32, pdwcurrentbrightness: *mut u32, pdwmaximumbrightness: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetMonitorBrightness(hmonitor : super::super::Foundation:: HANDLE, pdwminimumbrightness : *mut u32, pdwcurrentbrightness : *mut u32, pdwmaximumbrightness : *mut u32) -> i32); - GetMonitorBrightness(hmonitor.into_param().abi(), pdwminimumbrightness, pdwcurrentbrightness, pdwmaximumbrightness) + GetMonitorBrightness(hmonitor.param().abi(), pdwminimumbrightness, pdwcurrentbrightness, pdwmaximumbrightness) } #[inline] pub unsafe fn GetMonitorCapabilities(hmonitor: P0, pdwmonitorcapabilities: *mut u32, pdwsupportedcolortemperatures: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetMonitorCapabilities(hmonitor : super::super::Foundation:: HANDLE, pdwmonitorcapabilities : *mut u32, pdwsupportedcolortemperatures : *mut u32) -> i32); - GetMonitorCapabilities(hmonitor.into_param().abi(), pdwmonitorcapabilities, pdwsupportedcolortemperatures) + GetMonitorCapabilities(hmonitor.param().abi(), pdwmonitorcapabilities, pdwsupportedcolortemperatures) } #[inline] pub unsafe fn GetMonitorColorTemperature(hmonitor: P0, pctcurrentcolortemperature: *mut MC_COLOR_TEMPERATURE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetMonitorColorTemperature(hmonitor : super::super::Foundation:: HANDLE, pctcurrentcolortemperature : *mut MC_COLOR_TEMPERATURE) -> i32); - GetMonitorColorTemperature(hmonitor.into_param().abi(), pctcurrentcolortemperature) + GetMonitorColorTemperature(hmonitor.param().abi(), pctcurrentcolortemperature) } #[inline] pub unsafe fn GetMonitorContrast(hmonitor: P0, pdwminimumcontrast: *mut u32, pdwcurrentcontrast: *mut u32, pdwmaximumcontrast: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetMonitorContrast(hmonitor : super::super::Foundation:: HANDLE, pdwminimumcontrast : *mut u32, pdwcurrentcontrast : *mut u32, pdwmaximumcontrast : *mut u32) -> i32); - GetMonitorContrast(hmonitor.into_param().abi(), pdwminimumcontrast, pdwcurrentcontrast, pdwmaximumcontrast) + GetMonitorContrast(hmonitor.param().abi(), pdwminimumcontrast, pdwcurrentcontrast, pdwmaximumcontrast) } #[inline] pub unsafe fn GetMonitorDisplayAreaPosition(hmonitor: P0, ptpositiontype: MC_POSITION_TYPE, pdwminimumposition: *mut u32, pdwcurrentposition: *mut u32, pdwmaximumposition: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmonitor.into_param().abi(), ptpositiontype, pdwminimumposition, pdwcurrentposition, pdwmaximumposition) + GetMonitorDisplayAreaPosition(hmonitor.param().abi(), ptpositiontype, pdwminimumposition, pdwcurrentposition, pdwmaximumposition) } #[inline] pub unsafe fn GetMonitorDisplayAreaSize(hmonitor: P0, stsizetype: MC_SIZE_TYPE, pdwminimumwidthorheight: *mut u32, pdwcurrentwidthorheight: *mut u32, pdwmaximumwidthorheight: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmonitor.into_param().abi(), stsizetype, pdwminimumwidthorheight, pdwcurrentwidthorheight, pdwmaximumwidthorheight) + GetMonitorDisplayAreaSize(hmonitor.param().abi(), stsizetype, pdwminimumwidthorheight, pdwcurrentwidthorheight, pdwmaximumwidthorheight) } #[inline] pub unsafe fn GetMonitorRedGreenOrBlueDrive(hmonitor: P0, dtdrivetype: MC_DRIVE_TYPE, pdwminimumdrive: *mut u32, pdwcurrentdrive: *mut u32, pdwmaximumdrive: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmonitor.into_param().abi(), dtdrivetype, pdwminimumdrive, pdwcurrentdrive, pdwmaximumdrive) + GetMonitorRedGreenOrBlueDrive(hmonitor.param().abi(), dtdrivetype, pdwminimumdrive, pdwcurrentdrive, pdwmaximumdrive) } #[inline] pub unsafe fn GetMonitorRedGreenOrBlueGain(hmonitor: P0, gtgaintype: MC_GAIN_TYPE, pdwminimumgain: *mut u32, pdwcurrentgain: *mut u32, pdwmaximumgain: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmonitor.into_param().abi(), gtgaintype, pdwminimumgain, pdwcurrentgain, pdwmaximumgain) + GetMonitorRedGreenOrBlueGain(hmonitor.param().abi(), gtgaintype, pdwminimumgain, pdwcurrentgain, pdwmaximumgain) } #[inline] pub unsafe fn GetMonitorTechnologyType(hmonitor: P0, pdtydisplaytechnologytype: *mut MC_DISPLAY_TECHNOLOGY_TYPE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetMonitorTechnologyType(hmonitor : super::super::Foundation:: HANDLE, pdtydisplaytechnologytype : *mut MC_DISPLAY_TECHNOLOGY_TYPE) -> i32); - GetMonitorTechnologyType(hmonitor.into_param().abi(), pdtydisplaytechnologytype) + GetMonitorTechnologyType(hmonitor.param().abi(), pdtydisplaytechnologytype) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor: P0, pdwnumberofphysicalmonitors: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, pdwnumberofphysicalmonitors : *mut u32) -> super::super::Foundation:: BOOL); - GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor.into_param().abi(), pdwnumberofphysicalmonitors).ok() + GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor.param().abi(), pdwnumberofphysicalmonitors).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] pub unsafe fn GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9 : * mut core::ffi::c_void, pdwnumberofphysicalmonitors : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9.into_param().abi(), &mut result__).map(|| result__) + GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetPhysicalMonitorsFromHMONITOR(hmonitor: P0, pphysicalmonitorarray: &mut [PHYSICAL_MONITOR]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmonitor.into_param().abi(), pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() + GetPhysicalMonitorsFromHMONITOR(hmonitor.param().abi(), pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] pub unsafe fn GetPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9: P0, pphysicalmonitorarray: &mut [PHYSICAL_MONITOR]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9 : * mut core::ffi::c_void, dwphysicalmonitorarraysize : u32, pphysicalmonitorarray : *mut PHYSICAL_MONITOR) -> windows_core::HRESULT); - GetPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9.into_param().abi(), pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() + GetPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9.param().abi(), pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() } #[inline] pub unsafe fn GetTimingReport(hmonitor: P0, pmtrmonitortimingreport: *mut MC_TIMING_REPORT) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn GetTimingReport(hmonitor : super::super::Foundation:: HANDLE, pmtrmonitortimingreport : *mut MC_TIMING_REPORT) -> i32); - GetTimingReport(hmonitor.into_param().abi(), pmtrmonitortimingreport) + GetTimingReport(hmonitor.param().abi(), pmtrmonitortimingreport) } #[inline] pub unsafe fn GetVCPFeatureAndVCPFeatureReply(hmonitor: P0, bvcpcode: u8, pvct: Option<*mut MC_VCP_CODE_TYPE>, pdwcurrentvalue: *mut u32, pdwmaximumvalue: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmonitor.into_param().abi(), bvcpcode, core::mem::transmute(pvct.unwrap_or(std::ptr::null_mut())), pdwcurrentvalue, core::mem::transmute(pdwmaximumvalue.unwrap_or(std::ptr::null_mut()))) + GetVCPFeatureAndVCPFeatureReply(hmonitor.param().abi(), bvcpcode, core::mem::transmute(pvct.unwrap_or(std::ptr::null_mut())), pdwcurrentvalue, core::mem::transmute(pdwmaximumvalue.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -571,10 +571,10 @@ pub unsafe fn HT_Get8BPPFormatPalette(ppaletteentry: Option<*mut super::super::G #[inline] pub unsafe fn HT_Get8BPPMaskPalette(ppaletteentry: Option<*mut super::super::Graphics::Gdi::PALETTEENTRY>, use8bppmaskpal: P0, cmymask: u8, redgamma: u16, greengamma: u16, bluegamma: u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), use8bppmaskpal.into_param().abi(), cmymask, redgamma, greengamma, bluegamma) + HT_Get8BPPMaskPalette(core::mem::transmute(ppaletteentry.unwrap_or(std::ptr::null_mut())), use8bppmaskpal.param().abi(), cmymask, redgamma, greengamma, bluegamma) } #[inline] pub unsafe fn PATHOBJ_bEnum(ppo: *mut PATHOBJ, ppd: *mut PATHDATA) -> super::super::Foundation::BOOL { @@ -609,18 +609,18 @@ pub unsafe fn QueryDisplayConfig(flags: QUERY_DISPLAY_CONFIG_FLAGS, numpatharray #[inline] pub unsafe fn RestoreMonitorFactoryColorDefaults(hmonitor: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn RestoreMonitorFactoryColorDefaults(hmonitor : super::super::Foundation:: HANDLE) -> i32); - RestoreMonitorFactoryColorDefaults(hmonitor.into_param().abi()) + RestoreMonitorFactoryColorDefaults(hmonitor.param().abi()) } #[inline] pub unsafe fn RestoreMonitorFactoryDefaults(hmonitor: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn RestoreMonitorFactoryDefaults(hmonitor : super::super::Foundation:: HANDLE) -> i32); - RestoreMonitorFactoryDefaults(hmonitor.into_param().abi()) + RestoreMonitorFactoryDefaults(hmonitor.param().abi()) } #[inline] pub unsafe fn STROBJ_bEnum(pstro: *mut STROBJ, pc: *mut u32, ppgpos: *mut *mut GLYPHPOS) -> super::super::Foundation::BOOL { @@ -650,18 +650,18 @@ pub unsafe fn STROBJ_vEnumStart(pstro: *mut STROBJ) { #[inline] pub unsafe fn SaveCurrentMonitorSettings(hmonitor: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SaveCurrentMonitorSettings(hmonitor : super::super::Foundation:: HANDLE) -> i32); - SaveCurrentMonitorSettings(hmonitor.into_param().abi()) + SaveCurrentMonitorSettings(hmonitor.param().abi()) } #[inline] pub unsafe fn SaveCurrentSettings(hmonitor: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SaveCurrentSettings(hmonitor : super::super::Foundation:: HANDLE) -> i32); - SaveCurrentSettings(hmonitor.into_param().abi()) + SaveCurrentSettings(hmonitor.param().abi()) } #[inline] pub unsafe fn SetDisplayAutoRotationPreferences(orientation: ORIENTATION_PREFERENCE) -> super::super::Foundation::BOOL { @@ -676,66 +676,66 @@ pub unsafe fn SetDisplayConfig(patharray: Option<&[DISPLAYCONFIG_PATH_INFO]>, mo #[inline] pub unsafe fn SetMonitorBrightness(hmonitor: P0, dwnewbrightness: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetMonitorBrightness(hmonitor : super::super::Foundation:: HANDLE, dwnewbrightness : u32) -> i32); - SetMonitorBrightness(hmonitor.into_param().abi(), dwnewbrightness) + SetMonitorBrightness(hmonitor.param().abi(), dwnewbrightness) } #[inline] pub unsafe fn SetMonitorColorTemperature(hmonitor: P0, ctcurrentcolortemperature: MC_COLOR_TEMPERATURE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetMonitorColorTemperature(hmonitor : super::super::Foundation:: HANDLE, ctcurrentcolortemperature : MC_COLOR_TEMPERATURE) -> i32); - SetMonitorColorTemperature(hmonitor.into_param().abi(), ctcurrentcolortemperature) + SetMonitorColorTemperature(hmonitor.param().abi(), ctcurrentcolortemperature) } #[inline] pub unsafe fn SetMonitorContrast(hmonitor: P0, dwnewcontrast: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetMonitorContrast(hmonitor : super::super::Foundation:: HANDLE, dwnewcontrast : u32) -> i32); - SetMonitorContrast(hmonitor.into_param().abi(), dwnewcontrast) + SetMonitorContrast(hmonitor.param().abi(), dwnewcontrast) } #[inline] pub unsafe fn SetMonitorDisplayAreaPosition(hmonitor: P0, ptpositiontype: MC_POSITION_TYPE, dwnewposition: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetMonitorDisplayAreaPosition(hmonitor : super::super::Foundation:: HANDLE, ptpositiontype : MC_POSITION_TYPE, dwnewposition : u32) -> i32); - SetMonitorDisplayAreaPosition(hmonitor.into_param().abi(), ptpositiontype, dwnewposition) + SetMonitorDisplayAreaPosition(hmonitor.param().abi(), ptpositiontype, dwnewposition) } #[inline] pub unsafe fn SetMonitorDisplayAreaSize(hmonitor: P0, stsizetype: MC_SIZE_TYPE, dwnewdisplayareawidthorheight: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetMonitorDisplayAreaSize(hmonitor : super::super::Foundation:: HANDLE, stsizetype : MC_SIZE_TYPE, dwnewdisplayareawidthorheight : u32) -> i32); - SetMonitorDisplayAreaSize(hmonitor.into_param().abi(), stsizetype, dwnewdisplayareawidthorheight) + SetMonitorDisplayAreaSize(hmonitor.param().abi(), stsizetype, dwnewdisplayareawidthorheight) } #[inline] pub unsafe fn SetMonitorRedGreenOrBlueDrive(hmonitor: P0, dtdrivetype: MC_DRIVE_TYPE, dwnewdrive: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetMonitorRedGreenOrBlueDrive(hmonitor : super::super::Foundation:: HANDLE, dtdrivetype : MC_DRIVE_TYPE, dwnewdrive : u32) -> i32); - SetMonitorRedGreenOrBlueDrive(hmonitor.into_param().abi(), dtdrivetype, dwnewdrive) + SetMonitorRedGreenOrBlueDrive(hmonitor.param().abi(), dtdrivetype, dwnewdrive) } #[inline] pub unsafe fn SetMonitorRedGreenOrBlueGain(hmonitor: P0, gtgaintype: MC_GAIN_TYPE, dwnewgain: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetMonitorRedGreenOrBlueGain(hmonitor : super::super::Foundation:: HANDLE, gtgaintype : MC_GAIN_TYPE, dwnewgain : u32) -> i32); - SetMonitorRedGreenOrBlueGain(hmonitor.into_param().abi(), gtgaintype, dwnewgain) + SetMonitorRedGreenOrBlueGain(hmonitor.param().abi(), gtgaintype, dwnewgain) } #[inline] pub unsafe fn SetVCPFeature(hmonitor: P0, bvcpcode: u8, dwnewvalue: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dxva2.dll" "system" fn SetVCPFeature(hmonitor : super::super::Foundation:: HANDLE, bvcpcode : u8, dwnewvalue : u32) -> i32); - SetVCPFeature(hmonitor.into_param().abi(), bvcpcode, dwnewvalue) + SetVCPFeature(hmonitor.param().abi(), 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 { @@ -772,27 +772,27 @@ windows_core::imp::interface_hierarchy!(ICloneViewHelper, windows_core::IUnknown impl ICloneViewHelper { pub unsafe fn GetConnectedIDs(&self, wszadaptorname: P0, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.into_param().abi(), pulcount, pulid, ulflags).ok() + (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), pulcount, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.into_param().abi(), ulsourceid, pulcount, pultargetid).ok() + (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), ulsourceid, pulcount, pultargetid).ok() } pub unsafe fn SetActiveTopology(&self, wszadaptorname: P0, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.into_param().abi(), ulsourceid, ulcount, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), ffinalcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), ffinalcall.param().abi()).ok() } } #[repr(C)] @@ -808,21 +808,21 @@ windows_core::imp::interface_hierarchy!(IViewHelper, windows_core::IUnknown); impl IViewHelper { pub unsafe fn GetConnectedIDs(&self, wszadaptorname: P0, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.into_param().abi(), pulcount, pulid, ulflags).ok() + (windows_core::Interface::vtable(self).GetConnectedIDs)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), pulcount, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.into_param().abi(), ulsourceid, pulcount, pultargetid).ok() + (windows_core::Interface::vtable(self).GetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.param().abi(), ulsourceid, pulcount, pultargetid).ok() } pub unsafe fn SetActiveTopology(&self, wszadaptorname: P0, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveTopology)(windows_core::Interface::as_raw(self), wszadaptorname.into_param().abi(), ulsourceid, ulcount, 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() @@ -830,10 +830,10 @@ impl IViewHelper { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetConfiguration(&self, pistream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), pistream.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetProceedOnNewConfiguration(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProceedOnNewConfiguration)(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 41e61967f6..955ad89d76 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,79 +1,79 @@ #[inline] pub unsafe fn SwDeviceClose(hswdevice: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceClose(hswdevice : HSWDEVICE)); - SwDeviceClose(hswdevice.into_param().abi()) + SwDeviceClose(hswdevice.param().abi()) } #[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Security"))] #[inline] pub unsafe fn SwDeviceCreate(pszenumeratorname: P0, pszparentdeviceinstance: P1, pcreateinfo: *const SW_DEVICE_CREATE_INFO, pproperties: Option<&[super::super::Properties::DEVPROPERTY]>, pcallback: SW_DEVICE_CREATE_CALLBACK, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - SwDeviceCreate(pszenumeratorname.into_param().abi(), pszparentdeviceinstance.into_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(std::ptr::null())), &mut result__).map(|| 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(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn SwDeviceGetLifetime(hswdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceGetLifetime(hswdevice : HSWDEVICE, plifetime : *mut SW_DEVICE_LIFETIME) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SwDeviceGetLifetime(hswdevice.into_param().abi(), &mut result__).map(|| result__) + SwDeviceGetLifetime(hswdevice.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SwDeviceInterfacePropertySet(hswdevice: P0, pszdeviceinterfaceid: P1, pproperties: &[super::super::Properties::DEVPROPERTY]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hswdevice.into_param().abi(), pszdeviceinterfaceid.into_param().abi(), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() + SwDeviceInterfacePropertySet(hswdevice.param().abi(), pszdeviceinterfaceid.param().abi(), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SwDeviceInterfaceRegister(hswdevice: P0, pinterfaceclassguid: *const windows_core::GUID, pszreferencestring: P1, pproperties: Option<&[super::super::Properties::DEVPROPERTY]>, fenabled: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - SwDeviceInterfaceRegister(hswdevice.into_param().abi(), pinterfaceclassguid, pszreferencestring.into_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_param().abi(), &mut result__).map(|| result__) + SwDeviceInterfaceRegister(hswdevice.param().abi(), 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.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SwDeviceInterfaceSetState(hswdevice: P0, pszdeviceinterfaceid: P1, fenabled: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hswdevice.into_param().abi(), pszdeviceinterfaceid.into_param().abi(), fenabled.into_param().abi()).ok() + SwDeviceInterfaceSetState(hswdevice.param().abi(), pszdeviceinterfaceid.param().abi(), fenabled.param().abi()).ok() } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SwDevicePropertySet(hswdevice: P0, pproperties: &[super::super::Properties::DEVPROPERTY]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn SwDevicePropertySet(hswdevice : HSWDEVICE, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY) -> windows_core::HRESULT); - SwDevicePropertySet(hswdevice.into_param().abi(), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() + SwDevicePropertySet(hswdevice.param().abi(), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() } #[inline] pub unsafe fn SwDeviceSetLifetime(hswdevice: P0, lifetime: SW_DEVICE_LIFETIME) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceSetLifetime(hswdevice : HSWDEVICE, lifetime : SW_DEVICE_LIFETIME) -> windows_core::HRESULT); - SwDeviceSetLifetime(hswdevice.into_param().abi(), lifetime).ok() + SwDeviceSetLifetime(hswdevice.param().abi(), lifetime).ok() } #[inline] pub unsafe fn SwMemFree(pmem: *const core::ffi::c_void) { @@ -121,16 +121,16 @@ impl IUPnPDescriptionDocument { } pub unsafe fn Load(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn LoadAsync(&self, bstrurl: P0, punkcallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadAsync)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), punkcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadAsync)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), punkcallback.param().abi()).ok() } pub unsafe fn LoadResult(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -147,10 +147,10 @@ impl IUPnPDescriptionDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeviceByUDN(&self, bstrudn: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DeviceByUDN)(windows_core::Interface::as_raw(self), bstrudn.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DeviceByUDN)(windows_core::Interface::as_raw(self), bstrudn.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -262,10 +262,10 @@ impl IUPnPDevice { } pub unsafe fn IconURL(&self, bstrencodingformat: P0, lsizex: i32, lsizey: i32, lbitdepth: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IconURL)(windows_core::Interface::as_raw(self), bstrencodingformat.into_param().abi(), lsizex, lsizey, lbitdepth, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).IconURL)(windows_core::Interface::as_raw(self), bstrencodingformat.param().abi(), lsizex, lsizey, lbitdepth, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Services(&self) -> windows_core::Result { @@ -314,20 +314,20 @@ windows_core::imp::interface_hierarchy!(IUPnPDeviceControl, windows_core::IUnkno impl IUPnPDeviceControl { pub unsafe fn Initialize(&self, bstrxmldesc: P0, bstrdeviceidentifier: P1, bstrinitstring: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrxmldesc.into_param().abi(), bstrdeviceidentifier.into_param().abi(), bstrinitstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrxmldesc.param().abi(), bstrdeviceidentifier.param().abi(), bstrinitstring.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetServiceObject(&self, bstrudn: P0, bstrserviceid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceObject)(windows_core::Interface::as_raw(self), bstrudn.into_param().abi(), bstrserviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceObject)(windows_core::Interface::as_raw(self), bstrudn.param().abi(), bstrserviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -387,18 +387,18 @@ impl IUPnPDeviceFinder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindByType(&self, bstrtypeuri: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindByType)(windows_core::Interface::as_raw(self), bstrtypeuri.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindByType)(windows_core::Interface::as_raw(self), bstrtypeuri.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAsyncFind(&self, bstrtypeuri: P0, dwflags: u32, punkdevicefindercallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAsyncFind)(windows_core::Interface::as_raw(self), bstrtypeuri.into_param().abi(), dwflags, punkdevicefindercallback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateAsyncFind)(windows_core::Interface::as_raw(self), bstrtypeuri.param().abi(), 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), lfinddata).ok() @@ -409,10 +409,10 @@ impl IUPnPDeviceFinder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindByUDN(&self, bstrudn: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindByUDN)(windows_core::Interface::as_raw(self), bstrudn.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindByUDN)(windows_core::Interface::as_raw(self), bstrudn.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -437,9 +437,9 @@ impl IUPnPDeviceFinderAddCallbackWithInterface { #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeviceAddedWithInterface(&self, lfinddata: i32, pdevice: P0, pguidinterface: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceAddedWithInterface)(windows_core::Interface::as_raw(self), lfinddata, pdevice.into_param().abi(), pguidinterface).ok() + (windows_core::Interface::vtable(self).DeviceAddedWithInterface)(windows_core::Interface::as_raw(self), lfinddata, pdevice.param().abi(), pguidinterface).ok() } } #[repr(C)] @@ -456,15 +456,15 @@ impl IUPnPDeviceFinderCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeviceAdded(&self, lfinddata: i32, pdevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceAdded)(windows_core::Interface::as_raw(self), lfinddata, pdevice.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceRemoved)(windows_core::Interface::as_raw(self), lfinddata, bstrudn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeviceRemoved)(windows_core::Interface::as_raw(self), lfinddata, bstrudn.param().abi()).ok() } pub unsafe fn SearchComplete(&self, lfinddata: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SearchComplete)(windows_core::Interface::as_raw(self), lfinddata).ok() @@ -485,9 +485,9 @@ windows_core::imp::interface_hierarchy!(IUPnPDeviceProvider, windows_core::IUnkn impl IUPnPDeviceProvider { pub unsafe fn Start(&self, bstrinitstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), bstrinitstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), bstrinitstring.param().abi()).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -516,10 +516,10 @@ impl IUPnPDevices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, bstrudn: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), bstrudn.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), bstrudn.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -541,9 +541,9 @@ impl IUPnPEventSink { } pub unsafe fn OnStateChangedSafe(&self, varsadispidchanges: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStateChangedSafe)(windows_core::Interface::as_raw(self), varsadispidchanges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnStateChangedSafe)(windows_core::Interface::as_raw(self), varsadispidchanges.param().abi()).ok() } } #[repr(C)] @@ -557,15 +557,15 @@ windows_core::imp::interface_hierarchy!(IUPnPEventSource, windows_core::IUnknown impl IUPnPEventSource { pub unsafe fn Advise(&self, pessubscriber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pessubscriber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pessubscriber.param().abi()).ok() } pub unsafe fn Unadvise(&self, pessubscriber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pessubscriber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pessubscriber.param().abi()).ok() } } #[repr(C)] @@ -579,9 +579,9 @@ windows_core::imp::interface_hierarchy!(IUPnPHttpHeaderControl, windows_core::IU impl IUPnPHttpHeaderControl { pub unsafe fn AddRequestHeaders(&self, bstrhttpheaders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRequestHeaders)(windows_core::Interface::as_raw(self), bstrhttpheaders.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRequestHeaders)(windows_core::Interface::as_raw(self), bstrhttpheaders.param().abi()).ok() } } #[repr(C)] @@ -594,54 +594,54 @@ windows_core::imp::interface_hierarchy!(IUPnPRegistrar, windows_core::IUnknown); impl IUPnPRegistrar { pub unsafe fn RegisterDevice(&self, bstrxmldesc: P0, bstrprogiddevicecontrolclass: P1, bstrinitstring: P2, bstrcontainerid: P3, bstrresourcepath: P4, nlifetime: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDevice)(windows_core::Interface::as_raw(self), bstrxmldesc.into_param().abi(), bstrprogiddevicecontrolclass.into_param().abi(), bstrinitstring.into_param().abi(), bstrcontainerid.into_param().abi(), bstrresourcepath.into_param().abi(), nlifetime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterDevice)(windows_core::Interface::as_raw(self), bstrxmldesc.param().abi(), bstrprogiddevicecontrolclass.param().abi(), bstrinitstring.param().abi(), bstrcontainerid.param().abi(), bstrresourcepath.param().abi(), nlifetime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterRunningDevice(&self, bstrxmldesc: P0, punkdevicecontrol: P1, bstrinitstring: P2, bstrresourcepath: P3, nlifetime: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterRunningDevice)(windows_core::Interface::as_raw(self), bstrxmldesc.into_param().abi(), punkdevicecontrol.into_param().abi(), bstrinitstring.into_param().abi(), bstrresourcepath.into_param().abi(), nlifetime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterRunningDevice)(windows_core::Interface::as_raw(self), bstrxmldesc.param().abi(), punkdevicecontrol.param().abi(), bstrinitstring.param().abi(), bstrresourcepath.param().abi(), nlifetime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterDeviceProvider(&self, bstrprovidername: P0, bstrprogidproviderclass: P1, bstrinitstring: P2, bstrcontainerid: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrprovidername.into_param().abi(), bstrprogidproviderclass.into_param().abi(), bstrinitstring.into_param().abi(), bstrcontainerid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrprovidername.param().abi(), bstrprogidproviderclass.param().abi(), bstrinitstring.param().abi(), bstrcontainerid.param().abi()).ok() } pub unsafe fn GetUniqueDeviceName(&self, bstrdeviceidentifier: P0, bstrtemplateudn: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUniqueDeviceName)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.into_param().abi(), bstrtemplateudn.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUniqueDeviceName)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.param().abi(), bstrtemplateudn.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnregisterDevice(&self, bstrdeviceidentifier: P0, fpermanent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterDevice)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.into_param().abi(), fpermanent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterDevice)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.param().abi(), fpermanent.param().abi()).ok() } pub unsafe fn UnregisterDeviceProvider(&self, bstrprovidername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrprovidername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrprovidername.param().abi()).ok() } } #[repr(C)] @@ -659,24 +659,24 @@ windows_core::imp::interface_hierarchy!(IUPnPRemoteEndpointInfo, windows_core::I impl IUPnPRemoteEndpointInfo { pub unsafe fn GetDwordValue(&self, bstrvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDwordValue)(windows_core::Interface::as_raw(self), bstrvaluename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDwordValue)(windows_core::Interface::as_raw(self), bstrvaluename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetStringValue(&self, bstrvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), bstrvaluename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), bstrvaluename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetGuidValue(&self, bstrvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGuidValue)(windows_core::Interface::as_raw(self), bstrvaluename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGuidValue)(windows_core::Interface::as_raw(self), bstrvaluename.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -691,24 +691,24 @@ windows_core::imp::interface_hierarchy!(IUPnPReregistrar, windows_core::IUnknown impl IUPnPReregistrar { pub unsafe fn ReregisterDevice(&self, bstrdeviceidentifier: P0, bstrxmldesc: P1, bstrprogiddevicecontrolclass: P2, bstrinitstring: P3, bstrcontainerid: P4, bstrresourcepath: P5, nlifetime: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ReregisterDevice)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.into_param().abi(), bstrxmldesc.into_param().abi(), bstrprogiddevicecontrolclass.into_param().abi(), bstrinitstring.into_param().abi(), bstrcontainerid.into_param().abi(), bstrresourcepath.into_param().abi(), nlifetime).ok() + (windows_core::Interface::vtable(self).ReregisterDevice)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.param().abi(), bstrxmldesc.param().abi(), bstrprogiddevicecontrolclass.param().abi(), bstrinitstring.param().abi(), bstrcontainerid.param().abi(), bstrresourcepath.param().abi(), nlifetime).ok() } pub unsafe fn ReregisterRunningDevice(&self, bstrdeviceidentifier: P0, bstrxmldesc: P1, punkdevicecontrol: P2, bstrinitstring: P3, bstrresourcepath: P4, nlifetime: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ReregisterRunningDevice)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.into_param().abi(), bstrxmldesc.into_param().abi(), punkdevicecontrol.into_param().abi(), bstrinitstring.into_param().abi(), bstrresourcepath.into_param().abi(), nlifetime).ok() + (windows_core::Interface::vtable(self).ReregisterRunningDevice)(windows_core::Interface::as_raw(self), bstrdeviceidentifier.param().abi(), bstrxmldesc.param().abi(), punkdevicecontrol.param().abi(), bstrinitstring.param().abi(), bstrresourcepath.param().abi(), nlifetime).ok() } } #[repr(C)] @@ -725,18 +725,18 @@ windows_core::imp::interface_hierarchy!(IUPnPService, windows_core::IUnknown, su impl IUPnPService { pub unsafe fn QueryStateVariable(&self, bstrvariablename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryStateVariable)(windows_core::Interface::as_raw(self), bstrvariablename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryStateVariable)(windows_core::Interface::as_raw(self), bstrvariablename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InvokeAction(&self, bstractionname: P0, vinactionargs: P1, pvoutactionargs: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InvokeAction)(windows_core::Interface::as_raw(self), bstractionname.into_param().abi(), vinactionargs.into_param().abi(), core::mem::transmute(pvoutactionargs), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InvokeAction)(windows_core::Interface::as_raw(self), bstractionname.param().abi(), vinactionargs.param().abi(), core::mem::transmute(pvoutactionargs), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceTypeIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -744,9 +744,9 @@ impl IUPnPService { } pub unsafe fn AddCallback(&self, punkcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCallback)(windows_core::Interface::as_raw(self), punkcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddCallback)(windows_core::Interface::as_raw(self), punkcallback.param().abi()).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -773,44 +773,44 @@ windows_core::imp::interface_hierarchy!(IUPnPServiceAsync, windows_core::IUnknow impl IUPnPServiceAsync { pub unsafe fn BeginInvokeAction(&self, bstractionname: P0, vinactionargs: P1, pasyncresult: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginInvokeAction)(windows_core::Interface::as_raw(self), bstractionname.into_param().abi(), vinactionargs.into_param().abi(), pasyncresult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).BeginInvokeAction)(windows_core::Interface::as_raw(self), bstractionname.param().abi(), vinactionargs.param().abi(), pasyncresult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInvokeAction(&self, ullrequestid: u64, pvoutactionargs: *mut windows_core::VARIANT, pvretval: *mut windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndInvokeAction)(windows_core::Interface::as_raw(self), ullrequestid, core::mem::transmute(pvoutactionargs), core::mem::transmute(pvretval)).ok() } pub unsafe fn BeginQueryStateVariable(&self, bstrvariablename: P0, pasyncresult: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginQueryStateVariable)(windows_core::Interface::as_raw(self), bstrvariablename.into_param().abi(), pasyncresult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).BeginQueryStateVariable)(windows_core::Interface::as_raw(self), bstrvariablename.param().abi(), pasyncresult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndQueryStateVariable(&self, ullrequestid: u64, pvalue: *mut windows_core::VARIANT) -> windows_core::Result<()> { (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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSubscribeToEvents)(windows_core::Interface::as_raw(self), punkcallback.into_param().abi(), pasyncresult.into_param().abi(), &mut result__).map(|| result__) + (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), ullrequestid).ok() } pub unsafe fn BeginSCPDDownload(&self, pasyncresult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSCPDDownload)(windows_core::Interface::as_raw(self), pasyncresult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).BeginSCPDDownload)(windows_core::Interface::as_raw(self), pasyncresult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndSCPDDownload(&self, ullrequestid: u64) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -839,18 +839,18 @@ impl IUPnPServiceCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateVariableChanged(&self, pus: P0, pcwszstatevarname: P1, vavalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).StateVariableChanged)(windows_core::Interface::as_raw(self), pus.into_param().abi(), pcwszstatevarname.into_param().abi(), vavalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StateVariableChanged)(windows_core::Interface::as_raw(self), pus.param().abi(), pcwszstatevarname.param().abi(), vavalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ServiceInstanceDied(&self, pus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ServiceInstanceDied)(windows_core::Interface::as_raw(self), pus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ServiceInstanceDied)(windows_core::Interface::as_raw(self), pus.param().abi()).ok() } } #[repr(C)] @@ -912,10 +912,10 @@ impl IUPnPServices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, bstrserviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), bstrserviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), bstrserviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] 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 ea09733b24..0c86ddb681 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs @@ -6,26 +6,26 @@ pub unsafe fn CanSendToFaxRecipient() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn FaxAbort(faxhandle: P0, jobid: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxAbort(faxhandle : super::super::Foundation:: HANDLE, jobid : u32) -> super::super::Foundation:: BOOL); - FaxAbort(faxhandle.into_param().abi(), jobid) + FaxAbort(faxhandle.param().abi(), jobid) } #[inline] pub unsafe fn FaxAccessCheck(faxhandle: P0, accessmask: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxAccessCheck(faxhandle : super::super::Foundation:: HANDLE, accessmask : u32) -> super::super::Foundation:: BOOL); - FaxAccessCheck(faxhandle.into_param().abi(), accessmask) + FaxAccessCheck(faxhandle.param().abi(), accessmask) } #[inline] pub unsafe fn FaxClose(faxhandle: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxClose(faxhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FaxClose(faxhandle.into_param().abi()) + FaxClose(faxhandle.param().abi()) } #[inline] pub unsafe fn FaxCompleteJobParamsA(jobparams: *mut *mut FAX_JOB_PARAMA, coverpageinfo: *mut *mut FAX_COVERPAGE_INFOA) -> super::super::Foundation::BOOL { @@ -40,102 +40,102 @@ pub unsafe fn FaxCompleteJobParamsW(jobparams: *mut *mut FAX_JOB_PARAMW, coverpa #[inline] pub unsafe fn FaxConnectFaxServerA(machinename: P0, faxhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxConnectFaxServerA(machinename : windows_core::PCSTR, faxhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FaxConnectFaxServerA(machinename.into_param().abi(), faxhandle).ok() + FaxConnectFaxServerA(machinename.param().abi(), faxhandle).ok() } #[inline] pub unsafe fn FaxConnectFaxServerW(machinename: P0, faxhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxConnectFaxServerW(machinename : windows_core::PCWSTR, faxhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FaxConnectFaxServerW(machinename.into_param().abi(), faxhandle).ok() + FaxConnectFaxServerW(machinename.param().abi(), faxhandle).ok() } #[inline] pub unsafe fn FaxEnableRoutingMethodA(faxporthandle: P0, routingguid: P1, enabled: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(faxporthandle.into_param().abi(), routingguid.into_param().abi(), enabled.into_param().abi()).ok() + FaxEnableRoutingMethodA(faxporthandle.param().abi(), routingguid.param().abi(), enabled.param().abi()).ok() } #[inline] pub unsafe fn FaxEnableRoutingMethodW(faxporthandle: P0, routingguid: P1, enabled: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(faxporthandle.into_param().abi(), routingguid.into_param().abi(), enabled.into_param().abi()).ok() + FaxEnableRoutingMethodW(faxporthandle.param().abi(), routingguid.param().abi(), enabled.param().abi()).ok() } #[inline] pub unsafe fn FaxEnumGlobalRoutingInfoA(faxhandle: P0, routinginfo: *mut *mut FAX_GLOBAL_ROUTING_INFOA, methodsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), routinginfo, methodsreturned).ok() + FaxEnumGlobalRoutingInfoA(faxhandle.param().abi(), routinginfo, methodsreturned).ok() } #[inline] pub unsafe fn FaxEnumGlobalRoutingInfoW(faxhandle: P0, routinginfo: *mut *mut FAX_GLOBAL_ROUTING_INFOW, methodsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), routinginfo, methodsreturned).ok() + FaxEnumGlobalRoutingInfoW(faxhandle.param().abi(), routinginfo, methodsreturned).ok() } #[inline] pub unsafe fn FaxEnumJobsA(faxhandle: P0, jobentry: *mut *mut FAX_JOB_ENTRYA, jobsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), jobentry, jobsreturned).ok() + FaxEnumJobsA(faxhandle.param().abi(), jobentry, jobsreturned).ok() } #[inline] pub unsafe fn FaxEnumJobsW(faxhandle: P0, jobentry: *mut *mut FAX_JOB_ENTRYW, jobsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), jobentry, jobsreturned).ok() + FaxEnumJobsW(faxhandle.param().abi(), jobentry, jobsreturned).ok() } #[inline] pub unsafe fn FaxEnumPortsA(faxhandle: P0, portinfo: *mut *mut FAX_PORT_INFOA, portsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), portinfo, portsreturned).ok() + FaxEnumPortsA(faxhandle.param().abi(), portinfo, portsreturned).ok() } #[inline] pub unsafe fn FaxEnumPortsW(faxhandle: P0, portinfo: *mut *mut FAX_PORT_INFOW, portsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), portinfo, portsreturned).ok() + FaxEnumPortsW(faxhandle.param().abi(), portinfo, portsreturned).ok() } #[inline] pub unsafe fn FaxEnumRoutingMethodsA(faxporthandle: P0, routingmethod: *mut *mut FAX_ROUTING_METHODA, methodsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxporthandle.into_param().abi(), routingmethod, methodsreturned).ok() + FaxEnumRoutingMethodsA(faxporthandle.param().abi(), routingmethod, methodsreturned).ok() } #[inline] pub unsafe fn FaxEnumRoutingMethodsW(faxporthandle: P0, routingmethod: *mut *mut FAX_ROUTING_METHODW, methodsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxporthandle.into_param().abi(), routingmethod, methodsreturned).ok() + FaxEnumRoutingMethodsW(faxporthandle.param().abi(), routingmethod, methodsreturned).ok() } #[inline] pub unsafe fn FaxFreeBuffer(buffer: *mut core::ffi::c_void) { @@ -145,126 +145,126 @@ pub unsafe fn FaxFreeBuffer(buffer: *mut core::ffi::c_void) { #[inline] pub unsafe fn FaxGetConfigurationA(faxhandle: P0, faxconfig: *mut *mut FAX_CONFIGURATIONA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONA) -> super::super::Foundation:: BOOL); - FaxGetConfigurationA(faxhandle.into_param().abi(), faxconfig).ok() + FaxGetConfigurationA(faxhandle.param().abi(), faxconfig).ok() } #[inline] pub unsafe fn FaxGetConfigurationW(faxhandle: P0, faxconfig: *mut *mut FAX_CONFIGURATIONW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONW) -> super::super::Foundation:: BOOL); - FaxGetConfigurationW(faxhandle.into_param().abi(), faxconfig).ok() + FaxGetConfigurationW(faxhandle.param().abi(), faxconfig).ok() } #[inline] pub unsafe fn FaxGetDeviceStatusA(faxporthandle: P0, devicestatus: *mut *mut FAX_DEVICE_STATUSA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusA(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSA) -> super::super::Foundation:: BOOL); - FaxGetDeviceStatusA(faxporthandle.into_param().abi(), devicestatus).ok() + FaxGetDeviceStatusA(faxporthandle.param().abi(), devicestatus).ok() } #[inline] pub unsafe fn FaxGetDeviceStatusW(faxporthandle: P0, devicestatus: *mut *mut FAX_DEVICE_STATUSW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusW(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSW) -> super::super::Foundation:: BOOL); - FaxGetDeviceStatusW(faxporthandle.into_param().abi(), devicestatus).ok() + FaxGetDeviceStatusW(faxporthandle.param().abi(), devicestatus).ok() } #[inline] pub unsafe fn FaxGetJobA(faxhandle: P0, jobid: u32, jobentry: *mut *mut FAX_JOB_ENTRYA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), jobid, jobentry).ok() + FaxGetJobA(faxhandle.param().abi(), jobid, jobentry).ok() } #[inline] pub unsafe fn FaxGetJobW(faxhandle: P0, jobid: u32, jobentry: *mut *mut FAX_JOB_ENTRYW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), jobid, jobentry).ok() + FaxGetJobW(faxhandle.param().abi(), jobid, jobentry).ok() } #[inline] pub unsafe fn FaxGetLoggingCategoriesA(faxhandle: P0, categories: *mut *mut FAX_LOG_CATEGORYA, numbercategories: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), categories, numbercategories).ok() + FaxGetLoggingCategoriesA(faxhandle.param().abi(), categories, numbercategories).ok() } #[inline] pub unsafe fn FaxGetLoggingCategoriesW(faxhandle: P0, categories: *mut *mut FAX_LOG_CATEGORYW, numbercategories: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), categories, numbercategories).ok() + FaxGetLoggingCategoriesW(faxhandle.param().abi(), categories, numbercategories).ok() } #[inline] pub unsafe fn FaxGetPageData(faxhandle: P0, jobid: u32, buffer: *mut *mut u8, buffersize: *mut u32, imagewidth: *mut u32, imageheight: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), jobid, buffer, buffersize, imagewidth, imageheight) + FaxGetPageData(faxhandle.param().abi(), jobid, buffer, buffersize, imagewidth, imageheight) } #[inline] pub unsafe fn FaxGetPortA(faxporthandle: P0, portinfo: *mut *mut FAX_PORT_INFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOA) -> super::super::Foundation:: BOOL); - FaxGetPortA(faxporthandle.into_param().abi(), portinfo).ok() + FaxGetPortA(faxporthandle.param().abi(), portinfo).ok() } #[inline] pub unsafe fn FaxGetPortW(faxporthandle: P0, portinfo: *mut *mut FAX_PORT_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxGetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOW) -> super::super::Foundation:: BOOL); - FaxGetPortW(faxporthandle.into_param().abi(), portinfo).ok() + FaxGetPortW(faxporthandle.param().abi(), portinfo).ok() } #[inline] pub unsafe fn FaxGetRoutingInfoA(faxporthandle: P0, routingguid: P1, routinginfobuffer: *mut *mut u8, routinginfobuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(faxporthandle.into_param().abi(), routingguid.into_param().abi(), routinginfobuffer, routinginfobuffersize).ok() + FaxGetRoutingInfoA(faxporthandle.param().abi(), routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } #[inline] pub unsafe fn FaxGetRoutingInfoW(faxporthandle: P0, routingguid: P1, routinginfobuffer: *mut *mut u8, routinginfobuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(faxporthandle.into_param().abi(), routingguid.into_param().abi(), routinginfobuffer, routinginfobuffersize).ok() + FaxGetRoutingInfoW(faxporthandle.param().abi(), routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } #[inline] pub unsafe fn FaxInitializeEventQueue(faxhandle: P0, completionport: P1, completionkey: usize, hwnd: P2, messagestart: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(faxhandle.into_param().abi(), completionport.into_param().abi(), completionkey, hwnd.into_param().abi(), messagestart) + FaxInitializeEventQueue(faxhandle.param().abi(), completionport.param().abi(), completionkey, hwnd.param().abi(), messagestart) } #[inline] pub unsafe fn FaxOpenPort(faxhandle: P0, deviceid: u32, flags: u32, faxporthandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), deviceid, flags, faxporthandle) + FaxOpenPort(faxhandle.param().abi(), deviceid, flags, faxporthandle) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -281,201 +281,201 @@ pub unsafe fn FaxPrintCoverPageW(faxcontextinfo: *const FAX_CONTEXT_INFOW, cover #[inline] pub unsafe fn FaxRegisterRoutingExtensionW(faxhandle: P0, extensionname: P1, friendlyname: P2, imagename: P3, callback: PFAX_ROUTING_INSTALLATION_CALLBACKW, context: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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 : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FaxRegisterRoutingExtensionW(faxhandle.into_param().abi(), extensionname.into_param().abi(), friendlyname.into_param().abi(), imagename.into_param().abi(), callback, context).ok() + FaxRegisterRoutingExtensionW(faxhandle.param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxRegisterServiceProviderW(deviceprovider : windows_core::PCWSTR, friendlyname : windows_core::PCWSTR, imagename : windows_core::PCWSTR, tspname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FaxRegisterServiceProviderW(deviceprovider.into_param().abi(), friendlyname.into_param().abi(), imagename.into_param().abi(), tspname.into_param().abi()).ok() + FaxRegisterServiceProviderW(deviceprovider.param().abi(), friendlyname.param().abi(), imagename.param().abi(), tspname.param().abi()).ok() } #[inline] pub unsafe fn FaxSendDocumentA(faxhandle: P0, filename: P1, jobparams: *mut FAX_JOB_PARAMA, coverpageinfo: *const FAX_COVERPAGE_INFOA, faxjobid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentA(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, jobparams : *mut FAX_JOB_PARAMA, coverpageinfo : *const FAX_COVERPAGE_INFOA, faxjobid : *mut u32) -> super::super::Foundation:: BOOL); - FaxSendDocumentA(faxhandle.into_param().abi(), filename.into_param().abi(), jobparams, coverpageinfo, faxjobid).ok() + FaxSendDocumentA(faxhandle.param().abi(), filename.param().abi(), jobparams, coverpageinfo, faxjobid).ok() } #[inline] pub unsafe fn FaxSendDocumentForBroadcastA(faxhandle: P0, filename: P1, faxjobid: *mut u32, faxrecipientcallback: PFAX_RECIPIENT_CALLBACKA, context: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FaxSendDocumentForBroadcastA(faxhandle.into_param().abi(), filename.into_param().abi(), faxjobid, faxrecipientcallback, context).ok() + FaxSendDocumentForBroadcastA(faxhandle.param().abi(), filename.param().abi(), faxjobid, faxrecipientcallback, context).ok() } #[inline] pub unsafe fn FaxSendDocumentForBroadcastW(faxhandle: P0, filename: P1, faxjobid: *mut u32, faxrecipientcallback: PFAX_RECIPIENT_CALLBACKW, context: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FaxSendDocumentForBroadcastW(faxhandle.into_param().abi(), filename.into_param().abi(), faxjobid, faxrecipientcallback, context).ok() + FaxSendDocumentForBroadcastW(faxhandle.param().abi(), filename.param().abi(), faxjobid, faxrecipientcallback, context).ok() } #[inline] pub unsafe fn FaxSendDocumentW(faxhandle: P0, filename: P1, jobparams: *mut FAX_JOB_PARAMW, coverpageinfo: *const FAX_COVERPAGE_INFOW, faxjobid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentW(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, jobparams : *mut FAX_JOB_PARAMW, coverpageinfo : *const FAX_COVERPAGE_INFOW, faxjobid : *mut u32) -> super::super::Foundation:: BOOL); - FaxSendDocumentW(faxhandle.into_param().abi(), filename.into_param().abi(), jobparams, coverpageinfo, faxjobid).ok() + FaxSendDocumentW(faxhandle.param().abi(), filename.param().abi(), jobparams, coverpageinfo, faxjobid).ok() } #[inline] pub unsafe fn FaxSetConfigurationA(faxhandle: P0, faxconfig: *const FAX_CONFIGURATIONA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONA) -> super::super::Foundation:: BOOL); - FaxSetConfigurationA(faxhandle.into_param().abi(), faxconfig).ok() + FaxSetConfigurationA(faxhandle.param().abi(), faxconfig).ok() } #[inline] pub unsafe fn FaxSetConfigurationW(faxhandle: P0, faxconfig: *const FAX_CONFIGURATIONW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONW) -> super::super::Foundation:: BOOL); - FaxSetConfigurationW(faxhandle.into_param().abi(), faxconfig).ok() + FaxSetConfigurationW(faxhandle.param().abi(), faxconfig).ok() } #[inline] pub unsafe fn FaxSetGlobalRoutingInfoA(faxhandle: P0, routinginfo: *const FAX_GLOBAL_ROUTING_INFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoA(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOA) -> super::super::Foundation:: BOOL); - FaxSetGlobalRoutingInfoA(faxhandle.into_param().abi(), routinginfo).ok() + FaxSetGlobalRoutingInfoA(faxhandle.param().abi(), routinginfo).ok() } #[inline] pub unsafe fn FaxSetGlobalRoutingInfoW(faxhandle: P0, routinginfo: *const FAX_GLOBAL_ROUTING_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoW(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOW) -> super::super::Foundation:: BOOL); - FaxSetGlobalRoutingInfoW(faxhandle.into_param().abi(), routinginfo).ok() + FaxSetGlobalRoutingInfoW(faxhandle.param().abi(), routinginfo).ok() } #[inline] pub unsafe fn FaxSetJobA(faxhandle: P0, jobid: u32, command: u32, jobentry: *const FAX_JOB_ENTRYA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), jobid, command, jobentry).ok() + FaxSetJobA(faxhandle.param().abi(), jobid, command, jobentry).ok() } #[inline] pub unsafe fn FaxSetJobW(faxhandle: P0, jobid: u32, command: u32, jobentry: *const FAX_JOB_ENTRYW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), jobid, command, jobentry).ok() + FaxSetJobW(faxhandle.param().abi(), jobid, command, jobentry).ok() } #[inline] pub unsafe fn FaxSetLoggingCategoriesA(faxhandle: P0, categories: *const FAX_LOG_CATEGORYA, numbercategories: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), categories, numbercategories).ok() + FaxSetLoggingCategoriesA(faxhandle.param().abi(), categories, numbercategories).ok() } #[inline] pub unsafe fn FaxSetLoggingCategoriesW(faxhandle: P0, categories: *const FAX_LOG_CATEGORYW, numbercategories: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(faxhandle.into_param().abi(), categories, numbercategories).ok() + FaxSetLoggingCategoriesW(faxhandle.param().abi(), categories, numbercategories).ok() } #[inline] pub unsafe fn FaxSetPortA(faxporthandle: P0, portinfo: *const FAX_PORT_INFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOA) -> super::super::Foundation:: BOOL); - FaxSetPortA(faxporthandle.into_param().abi(), portinfo).ok() + FaxSetPortA(faxporthandle.param().abi(), portinfo).ok() } #[inline] pub unsafe fn FaxSetPortW(faxporthandle: P0, portinfo: *const FAX_PORT_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxSetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOW) -> super::super::Foundation:: BOOL); - FaxSetPortW(faxporthandle.into_param().abi(), portinfo).ok() + FaxSetPortW(faxporthandle.param().abi(), portinfo).ok() } #[inline] pub unsafe fn FaxSetRoutingInfoA(faxporthandle: P0, routingguid: P1, routinginfobuffer: *const u8, routinginfobuffersize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(faxporthandle.into_param().abi(), routingguid.into_param().abi(), routinginfobuffer, routinginfobuffersize).ok() + FaxSetRoutingInfoA(faxporthandle.param().abi(), routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } #[inline] pub unsafe fn FaxSetRoutingInfoW(faxporthandle: P0, routingguid: P1, routinginfobuffer: *const u8, routinginfobuffersize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(faxporthandle.into_param().abi(), routingguid.into_param().abi(), routinginfobuffer, routinginfobuffersize).ok() + FaxSetRoutingInfoW(faxporthandle.param().abi(), routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn FaxStartPrintJobA(printername: P0, printinfo: *const FAX_PRINT_INFOA, faxjobid: *mut u32, faxcontextinfo: *mut FAX_CONTEXT_INFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), printinfo, faxjobid, faxcontextinfo).ok() + FaxStartPrintJobA(printername.param().abi(), printinfo, faxjobid, faxcontextinfo).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn FaxStartPrintJobW(printername: P0, printinfo: *const FAX_PRINT_INFOW, faxjobid: *mut u32, faxcontextinfo: *mut FAX_CONTEXT_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), printinfo, faxjobid, faxcontextinfo).ok() + FaxStartPrintJobW(printername.param().abi(), printinfo, faxjobid, faxcontextinfo).ok() } #[inline] pub unsafe fn FaxUnregisterServiceProviderW(deviceprovider: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winfax.dll" "system" fn FaxUnregisterServiceProviderW(deviceprovider : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FaxUnregisterServiceProviderW(deviceprovider.into_param().abi()) + FaxUnregisterServiceProviderW(deviceprovider.param().abi()) } #[inline] pub unsafe fn SendToFaxRecipient(sndmode: SendToMode, lpfilename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fxsutility.dll" "system" fn SendToFaxRecipient(sndmode : SendToMode, lpfilename : windows_core::PCWSTR) -> u32); - SendToFaxRecipient(sndmode, lpfilename.into_param().abi()) + SendToFaxRecipient(sndmode, lpfilename.param().abi()) } #[inline] pub unsafe fn StiCreateInstanceW(hinst: P0, dwver: u32, ppsti: *mut Option, punkouter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hinst.into_param().abi(), dwver, core::mem::transmute(ppsti), punkouter.into_param().abi()).ok() + StiCreateInstanceW(hinst.param().abi(), dwver, core::mem::transmute(ppsti), punkouter.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IFaxAccount, IFaxAccount_Vtbl, 0x68535b33_5dc4_4086_be26_b76f9b711006); @@ -585,10 +585,10 @@ impl IFaxAccountIncomingArchive { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMessage(&self, bstrmessageid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -621,10 +621,10 @@ impl IFaxAccountIncomingQueue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetJob(&self, bstrjobid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -649,93 +649,93 @@ impl IFaxAccountNotify { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingJobAdded(&self, pfaxaccount: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingJobAdded)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingJobAdded)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingJobRemoved(&self, pfaxaccount: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingJobRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingJobRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingJobChanged(&self, pfaxaccount: P0, bstrjobid: P1, pjobstatus: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingJobChanged)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrjobid.into_param().abi(), pjobstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingJobChanged)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrjobid.param().abi(), pjobstatus.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingJobAdded(&self, pfaxaccount: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingJobAdded)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingJobAdded)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingJobRemoved(&self, pfaxaccount: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingJobRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingJobRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingJobChanged(&self, pfaxaccount: P0, bstrjobid: P1, pjobstatus: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingJobChanged)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrjobid.into_param().abi(), pjobstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingJobChanged)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrjobid.param().abi(), pjobstatus.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingMessageAdded(&self, pfaxaccount: P0, bstrmessageid: P1, faddedtoreceivefolder: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingMessageAdded)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrmessageid.into_param().abi(), faddedtoreceivefolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingMessageAdded)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrmessageid.param().abi(), faddedtoreceivefolder.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingMessageRemoved(&self, pfaxaccount: P0, bstrmessageid: P1, fremovedfromreceivefolder: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrmessageid.into_param().abi(), fremovedfromreceivefolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrmessageid.param().abi(), fremovedfromreceivefolder.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingMessageAdded(&self, pfaxaccount: P0, bstrmessageid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingMessageAdded)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrmessageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingMessageAdded)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrmessageid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingMessageRemoved(&self, pfaxaccount: P0, bstrmessageid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.into_param().abi(), bstrmessageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxaccount.param().abi(), bstrmessageid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnServerShutDown(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnServerShutDown)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnServerShutDown)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -812,10 +812,10 @@ impl IFaxAccountOutgoingArchive { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMessage(&self, bstrmessageid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -848,10 +848,10 @@ impl IFaxAccountOutgoingQueue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetJob(&self, bstrjobid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -881,24 +881,24 @@ impl IFaxAccountSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAccount(&self, bstraccountname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAccount)(windows_core::Interface::as_raw(self), bstraccountname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAccount)(windows_core::Interface::as_raw(self), bstraccountname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddAccount(&self, bstraccountname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddAccount)(windows_core::Interface::as_raw(self), bstraccountname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddAccount)(windows_core::Interface::as_raw(self), bstraccountname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveAccount(&self, bstraccountname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveAccount)(windows_core::Interface::as_raw(self), bstraccountname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveAccount)(windows_core::Interface::as_raw(self), bstraccountname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -932,10 +932,10 @@ impl IFaxAccounts { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1001,9 +1001,9 @@ impl IFaxActivityLogging { } pub unsafe fn SetLogIncoming(&self, blogincoming: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogIncoming)(windows_core::Interface::as_raw(self), blogincoming.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogIncoming)(windows_core::Interface::as_raw(self), blogincoming.param().abi()).ok() } pub unsafe fn LogOutgoing(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1011,9 +1011,9 @@ impl IFaxActivityLogging { } pub unsafe fn SetLogOutgoing(&self, blogoutgoing: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogOutgoing)(windows_core::Interface::as_raw(self), blogoutgoing.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogOutgoing)(windows_core::Interface::as_raw(self), blogoutgoing.param().abi()).ok() } pub unsafe fn DatabasePath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1021,9 +1021,9 @@ impl IFaxActivityLogging { } pub unsafe fn SetDatabasePath(&self, bstrdatabasepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDatabasePath)(windows_core::Interface::as_raw(self), bstrdatabasepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDatabasePath)(windows_core::Interface::as_raw(self), bstrdatabasepath.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -1057,9 +1057,9 @@ impl IFaxConfiguration { } pub unsafe fn SetUseArchive(&self, busearchive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive.param().abi()).ok() } pub unsafe fn ArchiveLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1067,9 +1067,9 @@ impl IFaxConfiguration { } pub unsafe fn SetArchiveLocation(&self, bstrarchivelocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArchiveLocation)(windows_core::Interface::as_raw(self), bstrarchivelocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArchiveLocation)(windows_core::Interface::as_raw(self), bstrarchivelocation.param().abi()).ok() } pub unsafe fn SizeQuotaWarning(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1077,9 +1077,9 @@ impl IFaxConfiguration { } pub unsafe fn SetSizeQuotaWarning(&self, bsizequotawarning: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning.param().abi()).ok() } pub unsafe fn HighQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1116,9 +1116,9 @@ impl IFaxConfiguration { } pub unsafe fn SetOutgoingQueueBlocked(&self, boutgoingblocked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutgoingQueueBlocked)(windows_core::Interface::as_raw(self), boutgoingblocked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutgoingQueueBlocked)(windows_core::Interface::as_raw(self), boutgoingblocked.param().abi()).ok() } pub unsafe fn OutgoingQueuePaused(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1126,9 +1126,9 @@ impl IFaxConfiguration { } pub unsafe fn SetOutgoingQueuePaused(&self, boutgoingpaused: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutgoingQueuePaused)(windows_core::Interface::as_raw(self), boutgoingpaused.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutgoingQueuePaused)(windows_core::Interface::as_raw(self), boutgoingpaused.param().abi()).ok() } pub unsafe fn AllowPersonalCoverPages(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1136,9 +1136,9 @@ impl IFaxConfiguration { } pub unsafe fn SetAllowPersonalCoverPages(&self, ballowpersonalcoverpages: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), ballowpersonalcoverpages.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), ballowpersonalcoverpages.param().abi()).ok() } pub unsafe fn UseDeviceTSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1146,9 +1146,9 @@ impl IFaxConfiguration { } pub unsafe fn SetUseDeviceTSID(&self, busedevicetsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), busedevicetsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), busedevicetsid.param().abi()).ok() } pub unsafe fn Retries(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1191,9 +1191,9 @@ impl IFaxConfiguration { } pub unsafe fn SetBranding(&self, bbranding: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), bbranding.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), bbranding.param().abi()).ok() } pub unsafe fn IncomingQueueBlocked(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1201,9 +1201,9 @@ impl IFaxConfiguration { } pub unsafe fn SetIncomingQueueBlocked(&self, bincomingblocked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIncomingQueueBlocked)(windows_core::Interface::as_raw(self), bincomingblocked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIncomingQueueBlocked)(windows_core::Interface::as_raw(self), bincomingblocked.param().abi()).ok() } pub unsafe fn AutoCreateAccountOnConnect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1211,9 +1211,9 @@ impl IFaxConfiguration { } pub unsafe fn SetAutoCreateAccountOnConnect(&self, bautocreateaccountonconnect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoCreateAccountOnConnect)(windows_core::Interface::as_raw(self), bautocreateaccountonconnect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoCreateAccountOnConnect)(windows_core::Interface::as_raw(self), bautocreateaccountonconnect.param().abi()).ok() } pub unsafe fn IncomingFaxesArePublic(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1221,9 +1221,9 @@ impl IFaxConfiguration { } pub unsafe fn SetIncomingFaxesArePublic(&self, bincomingfaxesarepublic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIncomingFaxesArePublic)(windows_core::Interface::as_raw(self), bincomingfaxesarepublic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIncomingFaxesArePublic)(windows_core::Interface::as_raw(self), bincomingfaxesarepublic.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -1319,9 +1319,9 @@ impl IFaxDevice { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn SendEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1329,9 +1329,9 @@ impl IFaxDevice { } pub unsafe fn SetSendEnabled(&self, bsendenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSendEnabled)(windows_core::Interface::as_raw(self), bsendenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSendEnabled)(windows_core::Interface::as_raw(self), bsendenabled.param().abi()).ok() } pub unsafe fn ReceiveMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1353,9 +1353,9 @@ impl IFaxDevice { } pub unsafe fn SetCSID(&self, bstrcsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCSID)(windows_core::Interface::as_raw(self), bstrcsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCSID)(windows_core::Interface::as_raw(self), bstrcsid.param().abi()).ok() } pub unsafe fn TSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1363,9 +1363,9 @@ impl IFaxDevice { } pub unsafe fn SetTSID(&self, bstrtsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), bstrtsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), bstrtsid.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -1375,24 +1375,24 @@ impl IFaxDevice { } pub unsafe fn GetExtensionProperty(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetExtensionProperty(&self, bstrguid: P0, vproperty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), vproperty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), vproperty.param().abi()).ok() } pub unsafe fn UseRoutingMethod(&self, bstrmethodguid: P0, buse: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UseRoutingMethod)(windows_core::Interface::as_raw(self), bstrmethodguid.into_param().abi(), buse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UseRoutingMethod)(windows_core::Interface::as_raw(self), bstrmethodguid.param().abi(), buse.param().abi()).ok() } pub unsafe fn RingingNow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1557,10 +1557,10 @@ impl IFaxDeviceProviders { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1591,10 +1591,10 @@ impl IFaxDevices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1633,9 +1633,9 @@ impl IFaxDocument { } pub unsafe fn SetBody(&self, bstrbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), bstrbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), bstrbody.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Sender(&self) -> windows_core::Result { @@ -1653,9 +1653,9 @@ impl IFaxDocument { } pub unsafe fn SetCoverPage(&self, bstrcoverpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCoverPage)(windows_core::Interface::as_raw(self), bstrcoverpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCoverPage)(windows_core::Interface::as_raw(self), bstrcoverpage.param().abi()).ok() } pub unsafe fn Subject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1663,9 +1663,9 @@ impl IFaxDocument { } pub unsafe fn SetSubject(&self, bstrsubject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), bstrsubject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), bstrsubject.param().abi()).ok() } pub unsafe fn Note(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1673,9 +1673,9 @@ impl IFaxDocument { } pub unsafe fn SetNote(&self, bstrnote: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNote)(windows_core::Interface::as_raw(self), bstrnote.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNote)(windows_core::Interface::as_raw(self), bstrnote.param().abi()).ok() } pub unsafe fn ScheduleTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1690,9 +1690,9 @@ impl IFaxDocument { } pub unsafe fn SetReceiptAddress(&self, bstrreceiptaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReceiptAddress)(windows_core::Interface::as_raw(self), bstrreceiptaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReceiptAddress)(windows_core::Interface::as_raw(self), bstrreceiptaddress.param().abi()).ok() } pub unsafe fn DocumentName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1700,9 +1700,9 @@ impl IFaxDocument { } pub unsafe fn SetDocumentName(&self, bstrdocumentname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentName)(windows_core::Interface::as_raw(self), bstrdocumentname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentName)(windows_core::Interface::as_raw(self), bstrdocumentname.param().abi()).ok() } pub unsafe fn CallHandle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1738,9 +1738,9 @@ impl IFaxDocument { } pub unsafe fn SetGroupBroadcastReceipts(&self, busegrouping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroupBroadcastReceipts)(windows_core::Interface::as_raw(self), busegrouping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGroupBroadcastReceipts)(windows_core::Interface::as_raw(self), busegrouping.param().abi()).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1757,24 +1757,24 @@ impl IFaxDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_TapiConnection(&self, ptapiconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_TapiConnection)(windows_core::Interface::as_raw(self), ptapiconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_TapiConnection)(windows_core::Interface::as_raw(self), ptapiconnection.param().abi()).ok() } pub unsafe fn Submit(&self, bstrfaxservername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), bstrfaxservername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), bstrfaxservername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConnectedSubmit(&self, pfaxserver: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectedSubmit)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectedSubmit)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AttachFaxToReceipt(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1782,9 +1782,9 @@ impl IFaxDocument { } pub unsafe fn SetAttachFaxToReceipt(&self, battachfax: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttachFaxToReceipt)(windows_core::Interface::as_raw(self), battachfax.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttachFaxToReceipt)(windows_core::Interface::as_raw(self), battachfax.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1853,9 +1853,9 @@ impl IFaxDocument2 { } pub unsafe fn SetBody(&self, bstrbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBody)(windows_core::Interface::as_raw(self), bstrbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBody)(windows_core::Interface::as_raw(self), bstrbody.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Sender(&self) -> windows_core::Result { @@ -1873,9 +1873,9 @@ impl IFaxDocument2 { } pub unsafe fn SetCoverPage(&self, bstrcoverpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCoverPage)(windows_core::Interface::as_raw(self), bstrcoverpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCoverPage)(windows_core::Interface::as_raw(self), bstrcoverpage.param().abi()).ok() } pub unsafe fn Subject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1883,9 +1883,9 @@ impl IFaxDocument2 { } pub unsafe fn SetSubject(&self, bstrsubject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSubject)(windows_core::Interface::as_raw(self), bstrsubject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSubject)(windows_core::Interface::as_raw(self), bstrsubject.param().abi()).ok() } pub unsafe fn Note(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1893,9 +1893,9 @@ impl IFaxDocument2 { } pub unsafe fn SetNote(&self, bstrnote: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNote)(windows_core::Interface::as_raw(self), bstrnote.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNote)(windows_core::Interface::as_raw(self), bstrnote.param().abi()).ok() } pub unsafe fn ScheduleTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1910,9 +1910,9 @@ impl IFaxDocument2 { } pub unsafe fn SetReceiptAddress(&self, bstrreceiptaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReceiptAddress)(windows_core::Interface::as_raw(self), bstrreceiptaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReceiptAddress)(windows_core::Interface::as_raw(self), bstrreceiptaddress.param().abi()).ok() } pub unsafe fn DocumentName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1920,9 +1920,9 @@ impl IFaxDocument2 { } pub unsafe fn SetDocumentName(&self, bstrdocumentname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDocumentName)(windows_core::Interface::as_raw(self), bstrdocumentname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDocumentName)(windows_core::Interface::as_raw(self), bstrdocumentname.param().abi()).ok() } pub unsafe fn CallHandle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1958,9 +1958,9 @@ impl IFaxDocument2 { } pub unsafe fn SetGroupBroadcastReceipts(&self, busegrouping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetGroupBroadcastReceipts)(windows_core::Interface::as_raw(self), busegrouping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetGroupBroadcastReceipts)(windows_core::Interface::as_raw(self), busegrouping.param().abi()).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1977,24 +1977,24 @@ impl IFaxDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_TapiConnection(&self, ptapiconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_TapiConnection)(windows_core::Interface::as_raw(self), ptapiconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_TapiConnection)(windows_core::Interface::as_raw(self), ptapiconnection.param().abi()).ok() } pub unsafe fn Submit(&self, bstrfaxservername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), bstrfaxservername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), bstrfaxservername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConnectedSubmit(&self, pfaxserver: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ConnectedSubmit)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ConnectedSubmit)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AttachFaxToReceipt(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2002,9 +2002,9 @@ impl IFaxDocument2 { } pub unsafe fn SetAttachFaxToReceipt(&self, battachfax: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAttachFaxToReceipt)(windows_core::Interface::as_raw(self), battachfax.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAttachFaxToReceipt)(windows_core::Interface::as_raw(self), battachfax.param().abi()).ok() } pub unsafe fn SubmissionId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2016,22 +2016,22 @@ impl IFaxDocument2 { } pub unsafe fn SetBodies(&self, vbodies: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBodies)(windows_core::Interface::as_raw(self), vbodies.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBodies)(windows_core::Interface::as_raw(self), vbodies.param().abi()).ok() } pub unsafe fn Submit2(&self, bstrfaxservername: P0, pvfaxoutgoingjobids: *mut windows_core::VARIANT, plerrorbodyfile: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit2)(windows_core::Interface::as_raw(self), bstrfaxservername.into_param().abi(), core::mem::transmute(pvfaxoutgoingjobids), plerrorbodyfile).ok() + (windows_core::Interface::vtable(self).Submit2)(windows_core::Interface::as_raw(self), bstrfaxservername.param().abi(), core::mem::transmute(pvfaxoutgoingjobids), plerrorbodyfile).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConnectedSubmit2(&self, pfaxserver: P0, pvfaxoutgoingjobids: *mut windows_core::VARIANT, plerrorbodyfile: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectedSubmit2)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), core::mem::transmute(pvfaxoutgoingjobids), plerrorbodyfile).ok() + (windows_core::Interface::vtable(self).ConnectedSubmit2)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), core::mem::transmute(pvfaxoutgoingjobids), plerrorbodyfile).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2261,10 +2261,10 @@ impl IFaxInboundRoutingExtensions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2349,10 +2349,10 @@ impl IFaxInboundRoutingMethods { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2382,9 +2382,9 @@ impl IFaxIncomingArchive { } pub unsafe fn SetUseArchive(&self, busearchive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive.param().abi()).ok() } pub unsafe fn ArchiveFolder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2392,9 +2392,9 @@ impl IFaxIncomingArchive { } pub unsafe fn SetArchiveFolder(&self, bstrarchivefolder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArchiveFolder)(windows_core::Interface::as_raw(self), bstrarchivefolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArchiveFolder)(windows_core::Interface::as_raw(self), bstrarchivefolder.param().abi()).ok() } pub unsafe fn SizeQuotaWarning(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2402,9 +2402,9 @@ impl IFaxIncomingArchive { } pub unsafe fn SetSizeQuotaWarning(&self, bsizequotawarning: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning.param().abi()).ok() } pub unsafe fn HighQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2449,10 +2449,10 @@ impl IFaxIncomingArchive { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMessage(&self, bstrmessageid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2562,9 +2562,9 @@ impl IFaxIncomingJob { } pub unsafe fn CopyTiff(&self, bstrtiffpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2604,10 +2604,10 @@ impl IFaxIncomingJobs { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2677,9 +2677,9 @@ impl IFaxIncomingMessage { } pub unsafe fn CopyTiff(&self, bstrtiffpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2755,9 +2755,9 @@ impl IFaxIncomingMessage2 { } pub unsafe fn CopyTiff(&self, bstrtiffpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2768,9 +2768,9 @@ impl IFaxIncomingMessage2 { } pub unsafe fn SetSubject(&self, bstrsubject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), bstrsubject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), bstrsubject.param().abi()).ok() } pub unsafe fn SenderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2778,9 +2778,9 @@ impl IFaxIncomingMessage2 { } pub unsafe fn SetSenderName(&self, bstrsendername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderName)(windows_core::Interface::as_raw(self), bstrsendername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderName)(windows_core::Interface::as_raw(self), bstrsendername.param().abi()).ok() } pub unsafe fn SenderFaxNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2788,9 +2788,9 @@ impl IFaxIncomingMessage2 { } pub unsafe fn SetSenderFaxNumber(&self, bstrsenderfaxnumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderFaxNumber)(windows_core::Interface::as_raw(self), bstrsenderfaxnumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderFaxNumber)(windows_core::Interface::as_raw(self), bstrsenderfaxnumber.param().abi()).ok() } pub unsafe fn HasCoverPage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2798,9 +2798,9 @@ impl IFaxIncomingMessage2 { } pub unsafe fn SetHasCoverPage(&self, bhascoverpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHasCoverPage)(windows_core::Interface::as_raw(self), bhascoverpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHasCoverPage)(windows_core::Interface::as_raw(self), bhascoverpage.param().abi()).ok() } pub unsafe fn Recipients(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2808,9 +2808,9 @@ impl IFaxIncomingMessage2 { } pub unsafe fn SetRecipients(&self, bstrrecipients: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecipients)(windows_core::Interface::as_raw(self), bstrrecipients.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecipients)(windows_core::Interface::as_raw(self), bstrrecipients.param().abi()).ok() } pub unsafe fn WasReAssigned(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2822,9 +2822,9 @@ impl IFaxIncomingMessage2 { } pub unsafe fn SetRead(&self, bread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), bread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), bread.param().abi()).ok() } pub unsafe fn ReAssign(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReAssign)(windows_core::Interface::as_raw(self)).ok() @@ -2912,9 +2912,9 @@ impl IFaxIncomingQueue { } pub unsafe fn SetBlocked(&self, bblocked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), bblocked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), bblocked.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -2930,10 +2930,10 @@ impl IFaxIncomingQueue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetJob(&self, bstrjobid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3154,10 +3154,10 @@ impl IFaxOutboundRoutingGroups { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3166,16 +3166,16 @@ impl IFaxOutboundRoutingGroups { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, vindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), vindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), vindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3218,9 +3218,9 @@ impl IFaxOutboundRoutingRule { } pub unsafe fn SetUseDevice(&self, busedevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseDevice)(windows_core::Interface::as_raw(self), busedevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseDevice)(windows_core::Interface::as_raw(self), busedevice.param().abi()).ok() } pub unsafe fn DeviceId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3235,9 +3235,9 @@ impl IFaxOutboundRoutingRule { } pub unsafe fn SetGroupName(&self, bstrgroupname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroupName)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGroupName)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -3295,11 +3295,11 @@ impl IFaxOutboundRoutingRules { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, lcountrycode: i32, lareacode: i32, busedevice: P0, bstrgroupname: P1, ldeviceid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lcountrycode, lareacode, busedevice.into_param().abi(), bstrgroupname.into_param().abi(), 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.param().abi(), bstrgroupname.param().abi(), ldeviceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3335,9 +3335,9 @@ impl IFaxOutgoingArchive { } pub unsafe fn SetUseArchive(&self, busearchive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseArchive)(windows_core::Interface::as_raw(self), busearchive.param().abi()).ok() } pub unsafe fn ArchiveFolder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3345,9 +3345,9 @@ impl IFaxOutgoingArchive { } pub unsafe fn SetArchiveFolder(&self, bstrarchivefolder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArchiveFolder)(windows_core::Interface::as_raw(self), bstrarchivefolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArchiveFolder)(windows_core::Interface::as_raw(self), bstrarchivefolder.param().abi()).ok() } pub unsafe fn SizeQuotaWarning(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3355,9 +3355,9 @@ impl IFaxOutgoingArchive { } pub unsafe fn SetSizeQuotaWarning(&self, bsizequotawarning: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSizeQuotaWarning)(windows_core::Interface::as_raw(self), bsizequotawarning.param().abi()).ok() } pub unsafe fn HighQuotaWaterMark(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3402,10 +3402,10 @@ impl IFaxOutgoingArchive { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMessage(&self, bstrmessageid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMessage)(windows_core::Interface::as_raw(self), bstrmessageid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3556,9 +3556,9 @@ impl IFaxOutgoingJob { } pub unsafe fn CopyTiff(&self, bstrtiffpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -3728,9 +3728,9 @@ impl IFaxOutgoingJob2 { } pub unsafe fn CopyTiff(&self, bstrtiffpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -3772,10 +3772,10 @@ impl IFaxOutgoingJobs { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, vindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), vindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3871,9 +3871,9 @@ impl IFaxOutgoingMessage { } pub unsafe fn CopyTiff(&self, bstrtiffpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3987,9 +3987,9 @@ impl IFaxOutgoingMessage2 { } pub unsafe fn CopyTiff(&self, bstrtiffpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyTiff)(windows_core::Interface::as_raw(self), bstrtiffpath.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -4012,9 +4012,9 @@ impl IFaxOutgoingMessage2 { } pub unsafe fn SetRead(&self, bread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), bread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRead)(windows_core::Interface::as_raw(self), bread.param().abi()).ok() } pub unsafe fn Save(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self)).ok() @@ -4090,9 +4090,9 @@ impl IFaxOutgoingQueue { } pub unsafe fn SetBlocked(&self, bblocked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), bblocked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlocked)(windows_core::Interface::as_raw(self), bblocked.param().abi()).ok() } pub unsafe fn Paused(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4100,9 +4100,9 @@ impl IFaxOutgoingQueue { } pub unsafe fn SetPaused(&self, bpaused: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPaused)(windows_core::Interface::as_raw(self), bpaused.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPaused)(windows_core::Interface::as_raw(self), bpaused.param().abi()).ok() } pub unsafe fn AllowPersonalCoverPages(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4110,9 +4110,9 @@ impl IFaxOutgoingQueue { } pub unsafe fn SetAllowPersonalCoverPages(&self, ballowpersonalcoverpages: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), ballowpersonalcoverpages.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowPersonalCoverPages)(windows_core::Interface::as_raw(self), ballowpersonalcoverpages.param().abi()).ok() } pub unsafe fn UseDeviceTSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4120,9 +4120,9 @@ impl IFaxOutgoingQueue { } pub unsafe fn SetUseDeviceTSID(&self, busedevicetsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), busedevicetsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseDeviceTSID)(windows_core::Interface::as_raw(self), busedevicetsid.param().abi()).ok() } pub unsafe fn Retries(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4165,9 +4165,9 @@ impl IFaxOutgoingQueue { } pub unsafe fn SetBranding(&self, bbranding: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), bbranding.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBranding)(windows_core::Interface::as_raw(self), bbranding.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -4183,10 +4183,10 @@ impl IFaxOutgoingQueue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetJob(&self, bstrjobid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetJob)(windows_core::Interface::as_raw(self), bstrjobid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4243,9 +4243,9 @@ impl IFaxReceiptOptions { } pub unsafe fn SetSMTPServer(&self, bstrsmtpserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSMTPServer)(windows_core::Interface::as_raw(self), bstrsmtpserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSMTPServer)(windows_core::Interface::as_raw(self), bstrsmtpserver.param().abi()).ok() } pub unsafe fn SMTPPort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4260,9 +4260,9 @@ impl IFaxReceiptOptions { } pub unsafe fn SetSMTPSender(&self, bstrsmtpsender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSMTPSender)(windows_core::Interface::as_raw(self), bstrsmtpsender.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSMTPSender)(windows_core::Interface::as_raw(self), bstrsmtpsender.param().abi()).ok() } pub unsafe fn SMTPUser(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4270,9 +4270,9 @@ impl IFaxReceiptOptions { } pub unsafe fn SetSMTPUser(&self, bstrsmtpuser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSMTPUser)(windows_core::Interface::as_raw(self), bstrsmtpuser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSMTPUser)(windows_core::Interface::as_raw(self), bstrsmtpuser.param().abi()).ok() } pub unsafe fn AllowedReceipts(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4287,9 +4287,9 @@ impl IFaxReceiptOptions { } pub unsafe fn SetSMTPPassword(&self, bstrsmtppassword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSMTPPassword)(windows_core::Interface::as_raw(self), bstrsmtppassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSMTPPassword)(windows_core::Interface::as_raw(self), bstrsmtppassword.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -4303,9 +4303,9 @@ impl IFaxReceiptOptions { } pub unsafe fn SetUseForInboundRouting(&self, buseforinboundrouting: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseForInboundRouting)(windows_core::Interface::as_raw(self), buseforinboundrouting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseForInboundRouting)(windows_core::Interface::as_raw(self), buseforinboundrouting.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4343,9 +4343,9 @@ impl IFaxRecipient { } pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4353,9 +4353,9 @@ impl IFaxRecipient { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4389,11 +4389,11 @@ impl IFaxRecipients { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, bstrfaxnumber: P0, bstrrecipientname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrfaxnumber.into_param().abi(), bstrrecipientname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrfaxnumber.param().abi(), bstrrecipientname.param().abi(), &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), lindex).ok() @@ -4427,9 +4427,9 @@ impl IFaxSecurity { } pub unsafe fn SetDescriptor(&self, vdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescriptor)(windows_core::Interface::as_raw(self), vdescriptor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescriptor)(windows_core::Interface::as_raw(self), vdescriptor.param().abi()).ok() } pub unsafe fn GrantedRights(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4473,9 +4473,9 @@ impl IFaxSecurity2 { } pub unsafe fn SetDescriptor(&self, vdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescriptor)(windows_core::Interface::as_raw(self), vdescriptor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescriptor)(windows_core::Interface::as_raw(self), vdescriptor.param().abi()).ok() } pub unsafe fn GrantedRights(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4519,9 +4519,9 @@ impl IFaxSender { } pub unsafe fn SetBillingCode(&self, bstrbillingcode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBillingCode)(windows_core::Interface::as_raw(self), bstrbillingcode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBillingCode)(windows_core::Interface::as_raw(self), bstrbillingcode.param().abi()).ok() } pub unsafe fn City(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4529,9 +4529,9 @@ impl IFaxSender { } pub unsafe fn SetCity(&self, bstrcity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCity)(windows_core::Interface::as_raw(self), bstrcity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCity)(windows_core::Interface::as_raw(self), bstrcity.param().abi()).ok() } pub unsafe fn Company(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4539,9 +4539,9 @@ impl IFaxSender { } pub unsafe fn SetCompany(&self, bstrcompany: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompany)(windows_core::Interface::as_raw(self), bstrcompany.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCompany)(windows_core::Interface::as_raw(self), bstrcompany.param().abi()).ok() } pub unsafe fn Country(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4549,9 +4549,9 @@ impl IFaxSender { } pub unsafe fn SetCountry(&self, bstrcountry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCountry)(windows_core::Interface::as_raw(self), bstrcountry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCountry)(windows_core::Interface::as_raw(self), bstrcountry.param().abi()).ok() } pub unsafe fn Department(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4559,9 +4559,9 @@ impl IFaxSender { } pub unsafe fn SetDepartment(&self, bstrdepartment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDepartment)(windows_core::Interface::as_raw(self), bstrdepartment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDepartment)(windows_core::Interface::as_raw(self), bstrdepartment.param().abi()).ok() } pub unsafe fn Email(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4569,9 +4569,9 @@ impl IFaxSender { } pub unsafe fn SetEmail(&self, bstremail: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEmail)(windows_core::Interface::as_raw(self), bstremail.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEmail)(windows_core::Interface::as_raw(self), bstremail.param().abi()).ok() } pub unsafe fn FaxNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4579,9 +4579,9 @@ impl IFaxSender { } pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.param().abi()).ok() } pub unsafe fn HomePhone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4589,9 +4589,9 @@ impl IFaxSender { } pub unsafe fn SetHomePhone(&self, bstrhomephone: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHomePhone)(windows_core::Interface::as_raw(self), bstrhomephone.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHomePhone)(windows_core::Interface::as_raw(self), bstrhomephone.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4599,9 +4599,9 @@ impl IFaxSender { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn TSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4609,9 +4609,9 @@ impl IFaxSender { } pub unsafe fn SetTSID(&self, bstrtsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), bstrtsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTSID)(windows_core::Interface::as_raw(self), bstrtsid.param().abi()).ok() } pub unsafe fn OfficePhone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4619,9 +4619,9 @@ impl IFaxSender { } pub unsafe fn SetOfficePhone(&self, bstrofficephone: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOfficePhone)(windows_core::Interface::as_raw(self), bstrofficephone.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOfficePhone)(windows_core::Interface::as_raw(self), bstrofficephone.param().abi()).ok() } pub unsafe fn OfficeLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4629,9 +4629,9 @@ impl IFaxSender { } pub unsafe fn SetOfficeLocation(&self, bstrofficelocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOfficeLocation)(windows_core::Interface::as_raw(self), bstrofficelocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOfficeLocation)(windows_core::Interface::as_raw(self), bstrofficelocation.param().abi()).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4639,9 +4639,9 @@ impl IFaxSender { } pub unsafe fn SetState(&self, bstrstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), bstrstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), bstrstate.param().abi()).ok() } pub unsafe fn StreetAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4649,9 +4649,9 @@ impl IFaxSender { } pub unsafe fn SetStreetAddress(&self, bstrstreetaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreetAddress)(windows_core::Interface::as_raw(self), bstrstreetaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreetAddress)(windows_core::Interface::as_raw(self), bstrstreetaddress.param().abi()).ok() } pub unsafe fn Title(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4659,9 +4659,9 @@ impl IFaxSender { } pub unsafe fn SetTitle(&self, bstrtitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), bstrtitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), bstrtitle.param().abi()).ok() } pub unsafe fn ZipCode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4669,9 +4669,9 @@ impl IFaxSender { } pub unsafe fn SetZipCode(&self, bstrzipcode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetZipCode)(windows_core::Interface::as_raw(self), bstrzipcode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetZipCode)(windows_core::Interface::as_raw(self), bstrzipcode.param().abi()).ok() } pub unsafe fn LoadDefaultSender(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LoadDefaultSender)(windows_core::Interface::as_raw(self)).ok() @@ -4727,9 +4727,9 @@ windows_core::imp::interface_hierarchy!(IFaxServer, windows_core::IUnknown, supe impl IFaxServer { pub unsafe fn Connect(&self, bstrservername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrservername.param().abi()).ok() } pub unsafe fn ServerName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4805,50 +4805,50 @@ impl IFaxServer { } pub unsafe fn GetExtensionProperty(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetExtensionProperty(&self, bstrguid: P0, vproperty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), vproperty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), vproperty.param().abi()).ok() } pub unsafe fn ListenToServerEvents(&self, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ListenToServerEvents)(windows_core::Interface::as_raw(self), eventtypes).ok() } pub unsafe fn RegisterDeviceProvider(&self, bstrguid: P0, bstrfriendlyname: P1, bstrimagename: P2, tspname: P3, lfspiversion: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), bstrfriendlyname.into_param().abi(), bstrimagename.into_param().abi(), tspname.into_param().abi(), lfspiversion).ok() + (windows_core::Interface::vtable(self).RegisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), bstrfriendlyname.param().abi(), bstrimagename.param().abi(), tspname.param().abi(), lfspiversion).ok() } pub unsafe fn UnregisterDeviceProvider(&self, bstruniquename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterDeviceProvider)(windows_core::Interface::as_raw(self), bstruniquename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterDeviceProvider)(windows_core::Interface::as_raw(self), bstruniquename.param().abi()).ok() } pub unsafe fn RegisterInboundRoutingExtension(&self, bstrextensionname: P0, bstrfriendlyname: P1, bstrimagename: P2, vmethods: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionname.into_param().abi(), bstrfriendlyname.into_param().abi(), bstrimagename.into_param().abi(), vmethods.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionname.param().abi(), bstrfriendlyname.param().abi(), bstrimagename.param().abi(), vmethods.param().abi()).ok() } pub unsafe fn UnregisterInboundRoutingExtension(&self, bstrextensionuniquename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionuniquename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionuniquename.param().abi()).ok() } pub unsafe fn RegisteredEvents(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4925,9 +4925,9 @@ windows_core::imp::interface_hierarchy!(IFaxServer2, windows_core::IUnknown, sup impl IFaxServer2 { pub unsafe fn Connect(&self, bstrservername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), bstrservername.param().abi()).ok() } pub unsafe fn ServerName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5003,50 +5003,50 @@ impl IFaxServer2 { } pub unsafe fn GetExtensionProperty(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetExtensionProperty(&self, bstrguid: P0, vproperty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), vproperty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExtensionProperty)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), vproperty.param().abi()).ok() } pub unsafe fn ListenToServerEvents(&self, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ListenToServerEvents)(windows_core::Interface::as_raw(self), eventtypes).ok() } pub unsafe fn RegisterDeviceProvider(&self, bstrguid: P0, bstrfriendlyname: P1, bstrimagename: P2, tspname: P3, lfspiversion: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), bstrfriendlyname.into_param().abi(), bstrimagename.into_param().abi(), tspname.into_param().abi(), lfspiversion).ok() + (windows_core::Interface::vtable(self).base__.RegisterDeviceProvider)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), bstrfriendlyname.param().abi(), bstrimagename.param().abi(), tspname.param().abi(), lfspiversion).ok() } pub unsafe fn UnregisterDeviceProvider(&self, bstruniquename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterDeviceProvider)(windows_core::Interface::as_raw(self), bstruniquename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterDeviceProvider)(windows_core::Interface::as_raw(self), bstruniquename.param().abi()).ok() } pub unsafe fn RegisterInboundRoutingExtension(&self, bstrextensionname: P0, bstrfriendlyname: P1, bstrimagename: P2, vmethods: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionname.into_param().abi(), bstrfriendlyname.into_param().abi(), bstrimagename.into_param().abi(), vmethods.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionname.param().abi(), bstrfriendlyname.param().abi(), bstrimagename.param().abi(), vmethods.param().abi()).ok() } pub unsafe fn UnregisterInboundRoutingExtension(&self, bstrextensionuniquename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionuniquename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterInboundRoutingExtension)(windows_core::Interface::as_raw(self), bstrextensionuniquename.param().abi()).ok() } pub unsafe fn RegisteredEvents(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5118,204 +5118,204 @@ impl IFaxServerNotify2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingJobAdded(&self, pfaxserver: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingJobAdded)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingJobAdded)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingJobRemoved(&self, pfaxserver: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingJobRemoved)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingJobRemoved)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingJobChanged(&self, pfaxserver: P0, bstrjobid: P1, pjobstatus: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingJobChanged)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrjobid.into_param().abi(), pjobstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingJobChanged)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrjobid.param().abi(), pjobstatus.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingJobAdded(&self, pfaxserver: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingJobAdded)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingJobAdded)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingJobRemoved(&self, pfaxserver: P0, bstrjobid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingJobRemoved)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrjobid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingJobRemoved)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrjobid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingJobChanged(&self, pfaxserver: P0, bstrjobid: P1, pjobstatus: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingJobChanged)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrjobid.into_param().abi(), pjobstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingJobChanged)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrjobid.param().abi(), pjobstatus.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingMessageAdded(&self, pfaxserver: P0, bstrmessageid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingMessageAdded)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrmessageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingMessageAdded)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrmessageid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingMessageRemoved(&self, pfaxserver: P0, bstrmessageid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrmessageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrmessageid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingMessageAdded(&self, pfaxserver: P0, bstrmessageid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingMessageAdded)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrmessageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingMessageAdded)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrmessageid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingMessageRemoved(&self, pfaxserver: P0, bstrmessageid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), bstrmessageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingMessageRemoved)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), bstrmessageid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnReceiptOptionsChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReceiptOptionsChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnReceiptOptionsChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnActivityLoggingConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnActivityLoggingConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnActivityLoggingConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSecurityConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSecurityConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSecurityConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnEventLoggingConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEventLoggingConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEventLoggingConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingQueueConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingQueueConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingQueueConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutgoingArchiveConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutgoingArchiveConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutgoingArchiveConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnIncomingArchiveConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIncomingArchiveConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnIncomingArchiveConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnDevicesConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDevicesConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDevicesConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutboundRoutingGroupsConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutboundRoutingGroupsConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutboundRoutingGroupsConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnOutboundRoutingRulesConfigChange(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOutboundRoutingRulesConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOutboundRoutingRulesConfigChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnServerActivityChange(&self, pfaxserver: P0, lincomingmessages: i32, lroutingmessages: i32, loutgoingmessages: i32, lqueuedmessages: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnServerActivityChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), lincomingmessages, lroutingmessages, loutgoingmessages, lqueuedmessages).ok() + (windows_core::Interface::vtable(self).OnServerActivityChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), lincomingmessages, lroutingmessages, loutgoingmessages, lqueuedmessages).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnQueuesStatusChange(&self, pfaxserver: P0, boutgoingqueueblocked: P1, boutgoingqueuepaused: P2, bincomingqueueblocked: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnQueuesStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), boutgoingqueueblocked.into_param().abi(), boutgoingqueuepaused.into_param().abi(), bincomingqueueblocked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnQueuesStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), boutgoingqueueblocked.param().abi(), boutgoingqueuepaused.param().abi(), bincomingqueueblocked.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnNewCall(&self, pfaxserver: P0, lcallid: i32, ldeviceid: i32, bstrcallerid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNewCall)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), lcallid, ldeviceid, bstrcallerid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnNewCall)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), lcallid, ldeviceid, bstrcallerid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnServerShutDown(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnServerShutDown)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnServerShutDown)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnDeviceStatusChange(&self, pfaxserver: P0, ldeviceid: i32, bpoweredoff: P1, bsending: P2, breceiving: P3, bringing: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDeviceStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi(), ldeviceid, bpoweredoff.into_param().abi(), bsending.into_param().abi(), breceiving.into_param().abi(), bringing.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDeviceStatusChange)(windows_core::Interface::as_raw(self), pfaxserver.param().abi(), ldeviceid, bpoweredoff.param().abi(), bsending.param().abi(), breceiving.param().abi(), bringing.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnGeneralServerConfigChanged(&self, pfaxserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnGeneralServerConfigChanged)(windows_core::Interface::as_raw(self), pfaxserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnGeneralServerConfigChanged)(windows_core::Interface::as_raw(self), pfaxserver.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5432,10 +5432,10 @@ windows_core::imp::interface_hierarchy!(IStiDevice, windows_core::IUnknown); impl IStiDevice { pub unsafe fn Initialize(&self, hinst: P0, pwszdevicename: P1, dwversion: u32, dwmode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hinst.into_param().abi(), pwszdevicename.into_param().abi(), dwversion, dwmode).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hinst.param().abi(), 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), pdevcaps).ok() @@ -5529,9 +5529,9 @@ windows_core::imp::interface_hierarchy!(IStiDeviceControl, windows_core::IUnknow impl IStiDeviceControl { pub unsafe fn Initialize(&self, dwdevicetype: u32, dwmode: u32, pwszportname: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), dwdevicetype, dwmode, pwszportname.into_param().abi(), 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<()> { @@ -5566,9 +5566,9 @@ impl IStiDeviceControl { } pub unsafe fn WriteToErrorLog(&self, dwmessagetype: u32, pszmessage: P0, dwerrorcode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToErrorLog)(windows_core::Interface::as_raw(self), dwmessagetype, pszmessage.into_param().abi(), dwerrorcode).ok() + (windows_core::Interface::vtable(self).WriteToErrorLog)(windows_core::Interface::as_raw(self), dwmessagetype, pszmessage.param().abi(), dwerrorcode).ok() } } #[repr(C)] @@ -5604,10 +5604,10 @@ impl IStiUSD { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn Initialize(&self, pheldcb: P0, dwstiversion: u32, hparameterskey: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pheldcb.into_param().abi(), dwstiversion, hparameterskey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pheldcb.param().abi(), dwstiversion, hparameterskey.param().abi()).ok() } pub unsafe fn GetCapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5653,9 +5653,9 @@ impl IStiUSD { } pub unsafe fn SetNotificationHandle(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotificationHandle)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotificationHandle)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } pub unsafe fn GetNotificationData(&self, lpnotify: *mut STINOTIFY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNotificationData)(windows_core::Interface::as_raw(self), lpnotify).ok() @@ -5704,91 +5704,91 @@ windows_core::imp::interface_hierarchy!(IStillImageW, windows_core::IUnknown); impl IStillImageW { pub unsafe fn Initialize(&self, hinst: P0, dwversion: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hinst.into_param().abi(), dwversion).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hinst.param().abi(), 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), dwtype, dwflags, pdwitemsreturned, ppbuffer).ok() } pub unsafe fn GetDeviceInfo(&self, pwszdevicename: P0, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceInfo)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi(), ppbuffer).ok() + (windows_core::Interface::vtable(self).GetDeviceInfo)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), ppbuffer).ok() } pub unsafe fn CreateDevice(&self, pwszdevicename: P0, dwmode: u32, pdevice: *mut Option, punkouter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi(), dwmode, core::mem::transmute(pdevice), punkouter.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceValue)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi(), pvaluename.into_param().abi(), ptype, pdata, cbdata).ok() + (windows_core::Interface::vtable(self).GetDeviceValue)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), pvaluename.param().abi(), ptype, pdata, cbdata).ok() } pub unsafe fn SetDeviceValue(&self, pwszdevicename: P0, pvaluename: P1, r#type: u32, pdata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeviceValue)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi(), pvaluename.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(pwszeventname.as_ptr())).ok() } pub unsafe fn RegisterLaunchApplication(&self, pwszappname: P0, pwszcommandline: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterLaunchApplication)(windows_core::Interface::as_raw(self), pwszappname.into_param().abi(), pwszcommandline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterLaunchApplication)(windows_core::Interface::as_raw(self), pwszappname.param().abi(), pwszcommandline.param().abi()).ok() } pub unsafe fn UnregisterLaunchApplication(&self, pwszappname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterLaunchApplication)(windows_core::Interface::as_raw(self), pwszappname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterLaunchApplication)(windows_core::Interface::as_raw(self), pwszappname.param().abi()).ok() } pub unsafe fn EnableHwNotifications(&self, pwszdevicename: P0, bnewstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableHwNotifications)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi(), bnewstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableHwNotifications)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), bnewstate.param().abi()).ok() } pub unsafe fn GetHwNotificationState(&self, pwszdevicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHwNotificationState)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetHwNotificationState)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RefreshDeviceBus(&self, pwszdevicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RefreshDeviceBus)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RefreshDeviceBus)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi()).ok() } pub unsafe fn LaunchApplicationForDevice(&self, pwszdevicename: P0, pwszappname: P1, pstinotify: *const STINOTIFY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchApplicationForDevice)(windows_core::Interface::as_raw(self), pwszdevicename.into_param().abi(), pwszappname.into_param().abi(), 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), param0).ok() } pub unsafe fn WriteToErrorLog(&self, dwmessagetype: u32, pszmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToErrorLog)(windows_core::Interface::as_raw(self), dwmessagetype, pszmessage.into_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 5ae60af5f4..94d93f30fb 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs @@ -3,56 +3,56 @@ windows_core::imp::interface_hierarchy!(IFunctionDiscovery, windows_core::IUnkno impl IFunctionDiscovery { pub unsafe fn GetInstanceCollection(&self, pszcategory: P0, pszsubcategory: P1, fincludeallsubcategories: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInstanceCollection)(windows_core::Interface::as_raw(self), pszcategory.into_param().abi(), pszsubcategory.into_param().abi(), fincludeallsubcategories.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInstanceCollection)(windows_core::Interface::as_raw(self), pszcategory.param().abi(), pszsubcategory.param().abi(), fincludeallsubcategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetInstance(&self, pszfunctioninstanceidentity: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInstance)(windows_core::Interface::as_raw(self), pszfunctioninstanceidentity.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInstance)(windows_core::Interface::as_raw(self), pszfunctioninstanceidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInstanceCollectionQuery(&self, pszcategory: P0, pszsubcategory: P1, fincludeallsubcategories: P2, pifunctiondiscoverynotification: P3, pfdqcquerycontext: *mut u64) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceCollectionQuery)(windows_core::Interface::as_raw(self), pszcategory.into_param().abi(), pszsubcategory.into_param().abi(), fincludeallsubcategories.into_param().abi(), pifunctiondiscoverynotification.into_param().abi(), pfdqcquerycontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceCollectionQuery)(windows_core::Interface::as_raw(self), pszcategory.param().abi(), pszsubcategory.param().abi(), fincludeallsubcategories.param().abi(), pifunctiondiscoverynotification.param().abi(), pfdqcquerycontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInstanceQuery(&self, pszfunctioninstanceidentity: P0, pifunctiondiscoverynotification: P1, pfdqcquerycontext: *mut u64) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceQuery)(windows_core::Interface::as_raw(self), pszfunctioninstanceidentity.into_param().abi(), pifunctiondiscoverynotification.into_param().abi(), pfdqcquerycontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceQuery)(windows_core::Interface::as_raw(self), pszfunctioninstanceidentity.param().abi(), pifunctiondiscoverynotification.param().abi(), pfdqcquerycontext, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddInstance(&self, enumsystemvisibility: SystemVisibilityFlags, pszcategory: P0, pszsubcategory: P1, pszcategoryidentity: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddInstance)(windows_core::Interface::as_raw(self), enumsystemvisibility, pszcategory.into_param().abi(), pszsubcategory.into_param().abi(), pszcategoryidentity.into_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: P0, pszsubcategory: P1, pszcategoryidentity: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveInstance)(windows_core::Interface::as_raw(self), enumsystemvisibility, pszcategory.into_param().abi(), pszsubcategory.into_param().abi(), pszcategoryidentity.into_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)] @@ -77,21 +77,21 @@ impl IFunctionDiscoveryNotification { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnUpdate(&self, enumqueryupdateaction: QueryUpdateAction, fdqcquerycontext: u64, pifunctioninstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUpdate)(windows_core::Interface::as_raw(self), enumqueryupdateaction, fdqcquerycontext, pifunctioninstance.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hr, fdqcquerycontext, pszprovider.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), dweventid, fdqcquerycontext, pszprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), dweventid, fdqcquerycontext, pszprovider.param().abi()).ok() } } #[repr(C)] @@ -109,18 +109,18 @@ windows_core::imp::interface_hierarchy!(IFunctionDiscoveryProvider, windows_core impl IFunctionDiscoveryProvider { pub unsafe fn Initialize(&self, pifunctiondiscoveryproviderfactory: P0, pifunctiondiscoverynotification: P1, lciduserdefault: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pifunctiondiscoveryproviderfactory.into_param().abi(), pifunctiondiscoverynotification.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pifunctiondiscoveryproviderquery.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pifunctiondiscoveryproviderquery.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EndQuery(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self)).ok() @@ -128,39 +128,39 @@ impl IFunctionDiscoveryProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancePropertyStoreValidateAccess(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, dwstgaccess: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancePropertyStoreValidateAccess)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstancePropertyStoreOpen)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancePropertyStoreFlush)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstanceQueryService)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext, guidservice, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstanceReleased)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext).ok() + (windows_core::Interface::vtable(self).InstanceReleased)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext).ok() } } #[repr(C)] @@ -201,13 +201,13 @@ impl IFunctionDiscoveryProviderFactory { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn CreateInstance(&self, pszsubcategory: P0, pszproviderinstanceidentity: P1, iproviderinstancecontext: isize, pipropertystore: P2, pifunctiondiscoveryprovider: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi(), pszproviderinstanceidentity.into_param().abi(), iproviderinstancecontext, pipropertystore.into_param().abi(), pifunctiondiscoveryprovider.into_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__ = std::mem::zeroed(); @@ -259,11 +259,11 @@ impl IFunctionDiscoveryServiceProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pifunctioninstance: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -327,10 +327,10 @@ impl IFunctionInstanceCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Get(&self, pszinstanceidentity: P0, pdwindex: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), pszinstanceidentity.into_param().abi(), pdwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), pszinstanceidentity.param().abi(), pdwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, dwindex: u32) -> windows_core::Result { @@ -340,9 +340,9 @@ impl IFunctionInstanceCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pifunctioninstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Remove(&self, dwindex: u32) -> windows_core::Result { @@ -384,10 +384,10 @@ windows_core::imp::interface_hierarchy!(IFunctionInstanceCollectionQuery, window impl IFunctionInstanceCollectionQuery { pub unsafe fn AddQueryConstraint(&self, pszconstraintname: P0, pszconstraintvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddQueryConstraint)(windows_core::Interface::as_raw(self), pszconstraintname.into_param().abi(), pszconstraintvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddQueryConstraint)(windows_core::Interface::as_raw(self), pszconstraintname.param().abi(), pszconstraintvalue.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn AddPropertyConstraint(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *const windows_core::PROPVARIANT, enumpropertyconstraint: PropertyConstraint) -> windows_core::Result<()> { @@ -430,21 +430,21 @@ windows_core::imp::interface_hierarchy!(IPNPXAssociation, windows_core::IUnknown impl IPNPXAssociation { pub unsafe fn Associate(&self, pszsubcategory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Associate)(windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Associate)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi()).ok() } pub unsafe fn Unassociate(&self, pszsubcategory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unassociate)(windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unassociate)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi()).ok() } pub unsafe fn Delete(&self, pszsubcategory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi()).ok() } } #[repr(C)] @@ -459,24 +459,24 @@ windows_core::imp::interface_hierarchy!(IPNPXDeviceAssociation, windows_core::IU impl IPNPXDeviceAssociation { pub unsafe fn Associate(&self, pszsubcategory: P0, pifunctiondiscoverynotification: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Associate)(windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi(), pifunctiondiscoverynotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Associate)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi(), pifunctiondiscoverynotification.param().abi()).ok() } pub unsafe fn Unassociate(&self, pszsubcategory: P0, pifunctiondiscoverynotification: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Unassociate)(windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi(), pifunctiondiscoverynotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unassociate)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi(), pifunctiondiscoverynotification.param().abi()).ok() } pub unsafe fn Delete(&self, pszsubcategory: P0, pifunctiondiscoverynotification: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi(), pifunctiondiscoverynotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszsubcategory.param().abi(), pifunctiondiscoverynotification.param().abi()).ok() } } #[repr(C)] @@ -496,10 +496,10 @@ impl IPropertyStoreCollection { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Get(&self, pszinstanceidentity: P0, pdwindex: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), pszinstanceidentity.into_param().abi(), pdwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), pszinstanceidentity.param().abi(), pdwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Item(&self, dwindex: u32) -> windows_core::Result { @@ -509,9 +509,9 @@ impl IPropertyStoreCollection { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Add(&self, pipropertystore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pipropertystore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pipropertystore.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Remove(&self, dwindex: u32) -> windows_core::Result { @@ -554,32 +554,32 @@ impl IProviderProperties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCount(&self, pifunctioninstance: P0, iproviderinstancecontext: isize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), 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(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetAt(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext, dwindex, pkey).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, dwindex, pkey).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetValue(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext, key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), pifunctioninstance.param().abi(), iproviderinstancecontext, key, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn SetValue(&self, pifunctioninstance: P0, iproviderinstancecontext: isize, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext, 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)] @@ -653,18 +653,18 @@ impl IProviderPublishing { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateInstance(&self, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: P0, pszproviderinstanceidentity: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), enumvisibilityflags, pszsubcategory.into_param().abi(), pszproviderinstanceidentity.into_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: P0, pszproviderinstanceidentity: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveInstance)(windows_core::Interface::as_raw(self), enumvisibilityflags, pszsubcategory.into_param().abi(), pszproviderinstanceidentity.into_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)] @@ -685,10 +685,10 @@ impl IProviderQueryConstraintCollection { } pub unsafe fn Get(&self, pszconstraintname: P0) -> windows_core::Result<*mut u16> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), pszconstraintname.into_param().abi(), &mut result__).map(|| result__) + (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), dwindex, ppszconstraintname, 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 f7cad5fbf4..1a0a1bfe9b 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs @@ -107,9 +107,9 @@ windows_core::imp::interface_hierarchy!(IDefaultLocation, windows_core::IUnknown impl IDefaultLocation { pub unsafe fn SetReport(&self, reporttype: *const windows_core::GUID, plocationreport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReport)(windows_core::Interface::as_raw(self), reporttype, plocationreport.into_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__ = std::mem::zeroed(); @@ -315,9 +315,9 @@ windows_core::imp::interface_hierarchy!(ILocation, windows_core::IUnknown); impl ILocation { pub unsafe fn RegisterForReport(&self, pevents: P0, reporttype: *const windows_core::GUID, dwrequestedreportinterval: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForReport)(windows_core::Interface::as_raw(self), pevents.into_param().abi(), reporttype, 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), reporttype).ok() @@ -348,10 +348,10 @@ impl ILocation { } pub unsafe fn RequestPermissions(&self, hparent: P0, preporttypes: &[windows_core::GUID], fmodal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), hparent.into_param().abi(), core::mem::transmute(preporttypes.as_ptr()), preporttypes.len().try_into().unwrap(), fmodal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), hparent.param().abi(), core::mem::transmute(preporttypes.as_ptr()), preporttypes.len().try_into().unwrap(), fmodal.param().abi()).ok() } } #[repr(C)] @@ -378,9 +378,9 @@ windows_core::imp::interface_hierarchy!(ILocationEvents, windows_core::IUnknown) impl ILocationEvents { pub unsafe fn OnLocationChanged(&self, reporttype: *const windows_core::GUID, plocationreport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLocationChanged)(windows_core::Interface::as_raw(self), reporttype, plocationreport.into_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), reporttype, newstatus).ok() 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 c3c73a2c25..4ebd11ad55 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs @@ -1,51 +1,51 @@ #[inline] pub unsafe fn DirectInput8Create(hinst: P0, dwversion: u32, riidltf: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void, punkouter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hinst.into_param().abi(), dwversion, riidltf, ppvout, punkouter.into_param().abi()).ok() + DirectInput8Create(hinst.param().abi(), dwversion, riidltf, ppvout, punkouter.param().abi()).ok() } #[inline] pub unsafe fn HidD_FlushQueue(hiddeviceobject: P0) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_FlushQueue(hiddeviceobject : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); - HidD_FlushQueue(hiddeviceobject.into_param().abi()) + HidD_FlushQueue(hiddeviceobject.param().abi()) } #[inline] pub unsafe fn HidD_FreePreparsedData(preparseddata: P0) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_FreePreparsedData(preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: BOOLEAN); - HidD_FreePreparsedData(preparseddata.into_param().abi()) + HidD_FreePreparsedData(preparseddata.param().abi()) } #[inline] pub unsafe fn HidD_GetAttributes(hiddeviceobject: P0, attributes: *mut HIDD_ATTRIBUTES) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetAttributes(hiddeviceobject : super::super::Foundation:: HANDLE, attributes : *mut HIDD_ATTRIBUTES) -> super::super::Foundation:: BOOLEAN); - HidD_GetAttributes(hiddeviceobject.into_param().abi(), attributes) + HidD_GetAttributes(hiddeviceobject.param().abi(), attributes) } #[inline] pub unsafe fn HidD_GetConfiguration(hiddeviceobject: P0, configuration: *mut HIDD_CONFIGURATION, configurationlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *mut HIDD_CONFIGURATION, configurationlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetConfiguration(hiddeviceobject.into_param().abi(), configuration, configurationlength) + HidD_GetConfiguration(hiddeviceobject.param().abi(), configuration, configurationlength) } #[inline] pub unsafe fn HidD_GetFeature(hiddeviceobject: P0, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetFeature(hiddeviceobject.into_param().abi(), reportbuffer, reportbufferlength) + HidD_GetFeature(hiddeviceobject.param().abi(), reportbuffer, reportbufferlength) } #[inline] pub unsafe fn HidD_GetHidGuid() -> windows_core::GUID { @@ -57,290 +57,290 @@ pub unsafe fn HidD_GetHidGuid() -> windows_core::GUID { #[inline] pub unsafe fn HidD_GetIndexedString(hiddeviceobject: P0, stringindex: u32, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetIndexedString(hiddeviceobject : super::super::Foundation:: HANDLE, stringindex : u32, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetIndexedString(hiddeviceobject.into_param().abi(), stringindex, buffer, bufferlength) + HidD_GetIndexedString(hiddeviceobject.param().abi(), stringindex, buffer, bufferlength) } #[inline] pub unsafe fn HidD_GetInputReport(hiddeviceobject: P0, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetInputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetInputReport(hiddeviceobject.into_param().abi(), reportbuffer, reportbufferlength) + HidD_GetInputReport(hiddeviceobject.param().abi(), reportbuffer, reportbufferlength) } #[inline] pub unsafe fn HidD_GetManufacturerString(hiddeviceobject: P0, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetManufacturerString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetManufacturerString(hiddeviceobject.into_param().abi(), buffer, bufferlength) + HidD_GetManufacturerString(hiddeviceobject.param().abi(), buffer, bufferlength) } #[inline] pub unsafe fn HidD_GetMsGenreDescriptor(hiddeviceobject: P0, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetMsGenreDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetMsGenreDescriptor(hiddeviceobject.into_param().abi(), buffer, bufferlength) + HidD_GetMsGenreDescriptor(hiddeviceobject.param().abi(), buffer, bufferlength) } #[inline] pub unsafe fn HidD_GetNumInputBuffers(hiddeviceobject: P0, numberbuffers: *mut u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : *mut u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetNumInputBuffers(hiddeviceobject.into_param().abi(), numberbuffers) + HidD_GetNumInputBuffers(hiddeviceobject.param().abi(), numberbuffers) } #[inline] pub unsafe fn HidD_GetPhysicalDescriptor(hiddeviceobject: P0, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetPhysicalDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetPhysicalDescriptor(hiddeviceobject.into_param().abi(), buffer, bufferlength) + HidD_GetPhysicalDescriptor(hiddeviceobject.param().abi(), buffer, bufferlength) } #[inline] pub unsafe fn HidD_GetPreparsedData(hiddeviceobject: P0, preparseddata: *mut PHIDP_PREPARSED_DATA) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetPreparsedData(hiddeviceobject : super::super::Foundation:: HANDLE, preparseddata : *mut PHIDP_PREPARSED_DATA) -> super::super::Foundation:: BOOLEAN); - HidD_GetPreparsedData(hiddeviceobject.into_param().abi(), preparseddata) + HidD_GetPreparsedData(hiddeviceobject.param().abi(), preparseddata) } #[inline] pub unsafe fn HidD_GetProductString(hiddeviceobject: P0, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetProductString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetProductString(hiddeviceobject.into_param().abi(), buffer, bufferlength) + HidD_GetProductString(hiddeviceobject.param().abi(), buffer, bufferlength) } #[inline] pub unsafe fn HidD_GetSerialNumberString(hiddeviceobject: P0, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_GetSerialNumberString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_GetSerialNumberString(hiddeviceobject.into_param().abi(), buffer, bufferlength) + HidD_GetSerialNumberString(hiddeviceobject.param().abi(), buffer, bufferlength) } #[inline] pub unsafe fn HidD_SetConfiguration(hiddeviceobject: P0, configuration: *const HIDD_CONFIGURATION, configurationlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_SetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *const HIDD_CONFIGURATION, configurationlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_SetConfiguration(hiddeviceobject.into_param().abi(), configuration, configurationlength) + HidD_SetConfiguration(hiddeviceobject.param().abi(), configuration, configurationlength) } #[inline] pub unsafe fn HidD_SetFeature(hiddeviceobject: P0, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_SetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_SetFeature(hiddeviceobject.into_param().abi(), reportbuffer, reportbufferlength) + HidD_SetFeature(hiddeviceobject.param().abi(), reportbuffer, reportbufferlength) } #[inline] pub unsafe fn HidD_SetNumInputBuffers(hiddeviceobject: P0, numberbuffers: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_SetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : u32) -> super::super::Foundation:: BOOLEAN); - HidD_SetNumInputBuffers(hiddeviceobject.into_param().abi(), numberbuffers) + HidD_SetNumInputBuffers(hiddeviceobject.param().abi(), numberbuffers) } #[inline] pub unsafe fn HidD_SetOutputReport(hiddeviceobject: P0, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidD_SetOutputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); - HidD_SetOutputReport(hiddeviceobject.into_param().abi(), reportbuffer, reportbufferlength) + HidD_SetOutputReport(hiddeviceobject.param().abi(), reportbuffer, reportbufferlength) } #[inline] pub unsafe fn HidP_GetButtonArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, buttondata: *mut HIDP_BUTTON_ARRAY_DATA, buttondatalength: *mut u16, preparseddata: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, buttondata, buttondatalength, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetButtonArray(reporttype, usagepage, linkcollection, usage, buttondata, buttondatalength, preparseddata.param().abi(), 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: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, buttoncaps, buttoncapslength, preparseddata.into_param().abi()) + HidP_GetButtonCaps(reporttype, buttoncaps, buttoncapslength, preparseddata.param().abi()) } #[inline] pub unsafe fn HidP_GetCaps(preparseddata: P0, capabilities: *mut HIDP_CAPS) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidP_GetCaps(preparseddata : PHIDP_PREPARSED_DATA, capabilities : *mut HIDP_CAPS) -> super::super::Foundation:: NTSTATUS); - HidP_GetCaps(preparseddata.into_param().abi(), capabilities) + HidP_GetCaps(preparseddata.param().abi(), capabilities) } #[inline] pub unsafe fn HidP_GetData(reporttype: HIDP_REPORT_TYPE, datalist: *mut HIDP_DATA, datalength: *mut u32, preparseddata: P0, report: &mut [u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, datalist, datalength, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetData(reporttype, datalist, datalength, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetExtendedAttributes(reporttype: HIDP_REPORT_TYPE, dataindex: u16, preparseddata: P0, attributes: *mut HIDP_EXTENDED_ATTRIBUTES, lengthattributes: *mut u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, dataindex, preparseddata.into_param().abi(), attributes, lengthattributes) + HidP_GetExtendedAttributes(reporttype, dataindex, preparseddata.param().abi(), attributes, lengthattributes) } #[inline] pub unsafe fn HidP_GetLinkCollectionNodes(linkcollectionnodes: *mut HIDP_LINK_COLLECTION_NODE, linkcollectionnodeslength: *mut u32, preparseddata: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(linkcollectionnodes, linkcollectionnodeslength, preparseddata.into_param().abi()) + HidP_GetLinkCollectionNodes(linkcollectionnodes, linkcollectionnodeslength, preparseddata.param().abi()) } #[inline] pub unsafe fn HidP_GetScaledUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, usagevalue: *mut i32, preparseddata: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetScaledUsageValue(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetSpecificButtonCaps(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, buttoncaps: *mut HIDP_BUTTON_CAPS, buttoncapslength: *mut u16, preparseddata: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, buttoncaps, buttoncapslength, preparseddata.into_param().abi()) + HidP_GetSpecificButtonCaps(reporttype, usagepage, linkcollection, usage, buttoncaps, buttoncapslength, preparseddata.param().abi()) } #[inline] pub unsafe fn HidP_GetSpecificValueCaps(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, valuecaps: *mut HIDP_VALUE_CAPS, valuecapslength: *mut u16, preparseddata: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, valuecaps, valuecapslength, preparseddata.into_param().abi()) + HidP_GetSpecificValueCaps(reporttype, usagepage, linkcollection, usage, valuecaps, valuecapslength, preparseddata.param().abi()) } #[inline] pub unsafe fn HidP_GetUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, usagevalue: *mut u32, preparseddata: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsageValue(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetUsageValueArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, usagevalue: &mut [u8], preparseddata: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsageValueArray(reporttype, usagepage, linkcollection, usage, core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetUsages(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usagelist: *mut u16, usagelength: *mut u32, preparseddata: P0, report: &mut [u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usagelist, usagelength, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsages(reporttype, usagepage, linkcollection, usagelist, usagelength, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_GetUsagesEx(reporttype: HIDP_REPORT_TYPE, linkcollection: u16, buttonlist: *mut USAGE_AND_PAGE, usagelength: *mut u32, preparseddata: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, linkcollection, buttonlist, usagelength, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_GetUsagesEx(reporttype, linkcollection, buttonlist, usagelength, preparseddata.param().abi(), 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: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, valuecaps, valuecapslength, preparseddata.into_param().abi()) + HidP_GetValueCaps(reporttype, valuecaps, valuecapslength, preparseddata.param().abi()) } #[inline] pub unsafe fn HidP_InitializeReportForID(reporttype: HIDP_REPORT_TYPE, reportid: u8, preparseddata: P0, report: &mut [u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, reportid, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_InitializeReportForID(reporttype, reportid, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_MaxDataListLength(reporttype: HIDP_REPORT_TYPE, preparseddata: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidP_MaxDataListLength(reporttype : HIDP_REPORT_TYPE, preparseddata : PHIDP_PREPARSED_DATA) -> u32); - HidP_MaxDataListLength(reporttype, preparseddata.into_param().abi()) + HidP_MaxDataListLength(reporttype, preparseddata.param().abi()) } #[inline] pub unsafe fn HidP_MaxUsageListLength(reporttype: HIDP_REPORT_TYPE, usagepage: u16, preparseddata: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hid.dll" "system" fn HidP_MaxUsageListLength(reporttype : HIDP_REPORT_TYPE, usagepage : u16, preparseddata : PHIDP_PREPARSED_DATA) -> u32); - HidP_MaxUsageListLength(reporttype, usagepage, preparseddata.into_param().abi()) + HidP_MaxUsageListLength(reporttype, usagepage, preparseddata.param().abi()) } #[inline] pub unsafe fn HidP_SetButtonArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, buttondata: &[HIDP_BUTTON_ARRAY_DATA], preparseddata: P0, report: &mut [u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, core::mem::transmute(buttondata.as_ptr()), buttondata.len().try_into().unwrap(), preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetButtonArray(reporttype, usagepage, linkcollection, usage, core::mem::transmute(buttondata.as_ptr()), buttondata.len().try_into().unwrap(), preparseddata.param().abi(), 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: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, datalist, datalength, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetData(reporttype, datalist, datalength, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetScaledUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, usagevalue: i32, preparseddata: P0, report: &mut [u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetScaledUsageValue(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetUsageValue(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, usagevalue: u32, preparseddata: P0, report: &mut [u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetUsageValue(reporttype, usagepage, linkcollection, usage, usagevalue, preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetUsageValueArray(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usage: u16, usagevalue: &[u8], preparseddata: P0, report: &mut [u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usage, core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetUsageValueArray(reporttype, usagepage, linkcollection, usage, core::mem::transmute(usagevalue.as_ptr()), usagevalue.len().try_into().unwrap(), preparseddata.param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) } #[inline] pub unsafe fn HidP_SetUsages(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usagelist: *mut u16, usagelength: *mut u32, preparseddata: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usagelist, usagelength, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_SetUsages(reporttype, usagepage, linkcollection, usagelist, usagelength, preparseddata.param().abi(), 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 { @@ -350,10 +350,10 @@ pub unsafe fn HidP_TranslateUsagesToI8042ScanCodes(changedusagelist: &[u16], key #[inline] pub unsafe fn HidP_UnsetUsages(reporttype: HIDP_REPORT_TYPE, usagepage: u16, linkcollection: u16, usagelist: *mut u16, usagelength: *mut u32, preparseddata: P0, report: &[u8]) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reporttype, usagepage, linkcollection, usagelist, usagelength, preparseddata.into_param().abi(), core::mem::transmute(report.as_ptr()), report.len().try_into().unwrap()) + HidP_UnsetUsages(reporttype, usagepage, linkcollection, usagelist, usagelength, preparseddata.param().abi(), 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 { @@ -370,9 +370,9 @@ windows_core::imp::interface_hierarchy!(IDirectInput2A, windows_core::IUnknown, impl IDirectInput2A { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() @@ -382,21 +382,21 @@ impl IDirectInput2A { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P0, param2: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2).ok() } } #[repr(C)] @@ -409,9 +409,9 @@ windows_core::imp::interface_hierarchy!(IDirectInput2W, windows_core::IUnknown, impl IDirectInput2W { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() @@ -421,21 +421,21 @@ impl IDirectInput2W { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P0, param2: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2).ok() } } #[repr(C)] @@ -448,9 +448,9 @@ windows_core::imp::interface_hierarchy!(IDirectInput7A, windows_core::IUnknown, impl IDirectInput7A { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() @@ -460,27 +460,27 @@ impl IDirectInput7A { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P0, param2: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindDevice)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).base__.FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2).ok() } pub unsafe fn CreateDeviceEx(&self, param0: *const windows_core::GUID, param1: *const windows_core::GUID, param2: *mut *mut core::ffi::c_void, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi()).ok() } } #[repr(C)] @@ -493,9 +493,9 @@ windows_core::imp::interface_hierarchy!(IDirectInput7W, windows_core::IUnknown, impl IDirectInput7W { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.EnumDevices)(windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() @@ -505,27 +505,27 @@ impl IDirectInput7W { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P0, param2: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindDevice)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).base__.FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2).ok() } pub unsafe fn CreateDeviceEx(&self, param0: *const windows_core::GUID, param1: *const windows_core::GUID, param2: *mut *mut core::ffi::c_void, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi()).ok() } } #[repr(C)] @@ -538,9 +538,9 @@ windows_core::imp::interface_hierarchy!(IDirectInput8A, windows_core::IUnknown); impl IDirectInput8A { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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), param0, param1, param2, param3).ok() @@ -550,27 +550,27 @@ impl IDirectInput8A { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P0, param2: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3, param4).ok() + (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, 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), param0, param1, param2, param3).ok() @@ -593,9 +593,9 @@ windows_core::imp::interface_hierarchy!(IDirectInput8W, windows_core::IUnknown); impl IDirectInput8W { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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), param0, param1, param2, param3).ok() @@ -605,27 +605,27 @@ impl IDirectInput8W { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn FindDevice(&self, param0: *const windows_core::GUID, param1: P0, param2: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).FindDevice)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3, param4).ok() + (windows_core::Interface::vtable(self).EnumDevicesBySemantics)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, 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), param0, param1, param2, param3).ok() @@ -648,9 +648,9 @@ windows_core::imp::interface_hierarchy!(IDirectInputA, windows_core::IUnknown); impl IDirectInputA { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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), param0, param1, param2, param3).ok() @@ -660,15 +660,15 @@ impl IDirectInputA { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } } #[repr(C)] @@ -712,15 +712,15 @@ impl IDirectInputDevice2A { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetObjectInfo)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() @@ -730,21 +730,21 @@ impl IDirectInputDevice2A { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, 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), param0, param1, param2).ok() @@ -816,15 +816,15 @@ impl IDirectInputDevice2W { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetObjectInfo)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() @@ -834,21 +834,21 @@ impl IDirectInputDevice2W { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, 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), param0, param1, param2).ok() @@ -920,15 +920,15 @@ impl IDirectInputDevice7A { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetObjectInfo)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() @@ -938,21 +938,21 @@ impl IDirectInputDevice7A { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateEffect)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CreateEffect)(windows_core::Interface::as_raw(self), param0, 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).base__.EnumEffects)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() @@ -980,15 +980,15 @@ impl IDirectInputDevice7A { } pub unsafe fn EnumEffectsInFile(&self, param0: P0, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } } #[repr(C)] @@ -1029,15 +1029,15 @@ impl IDirectInputDevice7W { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn GetObjectInfo(&self, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetObjectInfo)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() @@ -1047,21 +1047,21 @@ impl IDirectInputDevice7W { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).base__.base__.RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateEffect)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CreateEffect)(windows_core::Interface::as_raw(self), param0, 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).base__.EnumEffects)(windows_core::Interface::as_raw(self), param0, param1, param2).ok() @@ -1089,15 +1089,15 @@ impl IDirectInputDevice7W { } pub unsafe fn EnumEffectsInFile(&self, param0: P0, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } } #[repr(C)] @@ -1138,15 +1138,15 @@ impl IDirectInputDevice8A { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2).ok() @@ -1156,21 +1156,21 @@ impl IDirectInputDevice8A { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, 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), param0, param1, param2).ok() @@ -1198,27 +1198,27 @@ impl IDirectInputDevice8A { } pub unsafe fn EnumEffectsInFile(&self, param0: P0, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } pub unsafe fn BuildActionMap(&self, param0: *mut DIACTIONFORMATA, param1: P0, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2).ok() } pub unsafe fn SetActionMap(&self, param0: *mut DIACTIONFORMATA, param1: P0, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), 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), param0).ok() @@ -1289,15 +1289,15 @@ impl IDirectInputDevice8W { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2).ok() @@ -1307,21 +1307,21 @@ impl IDirectInputDevice8W { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn CreateEffect(&self, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut Option, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateEffect)(windows_core::Interface::as_raw(self), param0, 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), param0, param1, param2).ok() @@ -1349,27 +1349,27 @@ impl IDirectInputDevice8W { } pub unsafe fn EnumEffectsInFile(&self, param0: P0, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).EnumEffectsInFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } pub unsafe fn WriteEffectToFile(&self, param0: P0, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() + (windows_core::Interface::vtable(self).WriteEffectToFile)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3).ok() } pub unsafe fn BuildActionMap(&self, param0: *mut DIACTIONFORMATW, param1: P0, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).BuildActionMap)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2).ok() } pub unsafe fn SetActionMap(&self, param0: *mut DIACTIONFORMATW, param1: P0, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() + (windows_core::Interface::vtable(self).SetActionMap)(windows_core::Interface::as_raw(self), 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), param0).ok() @@ -1440,15 +1440,15 @@ impl IDirectInputDeviceA { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2).ok() @@ -1458,15 +1458,15 @@ impl IDirectInputDeviceA { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } } #[repr(C)] @@ -1520,15 +1520,15 @@ impl IDirectInputDeviceW { } pub unsafe fn SetEventNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2).ok() @@ -1538,15 +1538,15 @@ impl IDirectInputDeviceW { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } } #[repr(C)] @@ -1573,9 +1573,9 @@ windows_core::imp::interface_hierarchy!(IDirectInputEffect, windows_core::IUnkno impl IDirectInputEffect { pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0).ok() @@ -1682,9 +1682,9 @@ impl IDirectInputJoyConfig { } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn SendNotify(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendNotify)(windows_core::Interface::as_raw(self)).ok() @@ -1694,21 +1694,21 @@ impl IDirectInputJoyConfig { } pub unsafe fn GetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn SetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn DeleteType(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteType)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (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), param0, param1, param2).ok() @@ -1727,16 +1727,16 @@ impl IDirectInputJoyConfig { } pub unsafe fn AddNewHardware(&self, param0: P0, param1: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), param0.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, 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<()> { @@ -1780,9 +1780,9 @@ impl IDirectInputJoyConfig8 { } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn SendNotify(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendNotify)(windows_core::Interface::as_raw(self)).ok() @@ -1792,22 +1792,22 @@ impl IDirectInputJoyConfig8 { } pub unsafe fn GetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).GetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } pub unsafe fn SetTypeInfo(&self, param0: P0, param1: *mut DIJOYTYPEINFO, param2: u32, param3: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTypeInfo)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2, param3.param().abi()).ok() } pub unsafe fn DeleteType(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteType)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (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), param0, param1, param2).ok() @@ -1826,16 +1826,16 @@ impl IDirectInputJoyConfig8 { } pub unsafe fn AddNewHardware(&self, param0: P0, param1: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).AddNewHardware)(windows_core::Interface::as_raw(self), param0.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).OpenTypeKey)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, param2).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn OpenAppStatusKey(&self, param0: *mut super::super::System::Registry::HKEY) -> windows_core::Result<()> { @@ -1873,9 +1873,9 @@ windows_core::imp::interface_hierarchy!(IDirectInputW, windows_core::IUnknown); impl IDirectInputW { pub unsafe fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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), param0, param1, param2, param3).ok() @@ -1885,15 +1885,15 @@ impl IDirectInputW { } pub unsafe fn RunControlPanel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).RunControlPanel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), 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 7774458580..b697fad500 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs @@ -157,9 +157,9 @@ impl IWiaAppErrorHandler { } pub unsafe fn ReportStatus(&self, lflags: i32, pwiaitem2: P0, hrstatus: windows_core::HRESULT, lpercentcomplete: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.into_param().abi(), hrstatus, lpercentcomplete).ok() + (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.param().abi(), hrstatus, lpercentcomplete).ok() } } #[repr(C)] @@ -186,15 +186,15 @@ impl IWiaDataTransfer { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn idtGetData(&self, pmedium: *mut super::super::System::Com::STGMEDIUM, piwiadatacallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).idtGetData)(windows_core::Interface::as_raw(self), pmedium, piwiadatacallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).idtGetData)(windows_core::Interface::as_raw(self), pmedium, piwiadatacallback.param().abi()).ok() } pub unsafe fn idtGetBandedData(&self, pwiadatatransinfo: *mut WIA_DATA_TRANSFER_INFO, piwiadatacallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).idtGetBandedData)(windows_core::Interface::as_raw(self), pwiadatatransinfo, piwiadatacallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).idtGetBandedData)(windows_core::Interface::as_raw(self), pwiadatatransinfo, piwiadatacallback.param().abi()).ok() } pub unsafe fn idtQueryGetData(&self, pfe: Option<*const WIA_FORMAT_INFO>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).idtQueryGetData)(windows_core::Interface::as_raw(self), core::mem::transmute(pfe.unwrap_or(std::ptr::null()))).ok() @@ -228,63 +228,63 @@ impl IWiaDevMgr { } pub unsafe fn CreateDevice(&self, bstrdeviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), bstrdeviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), bstrdeviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectDeviceDlg(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR, ppitemroot: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() } pub unsafe fn SelectDeviceDlgID(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid)).ok() } pub unsafe fn GetImageDlg(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: P1, bstrfilename: P2, pguidformat: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), ldevicetype, lflags, lintent, pitemroot.into_param().abi(), bstrfilename.into_param().abi(), pguidformat).ok() + (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), ldevicetype, lflags, lintent, pitemroot.param().abi(), bstrfilename.param().abi(), pguidformat).ok() } pub unsafe fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: P0, peventguid: *const windows_core::GUID, bstrcommandline: P1, bstrname: P2, bstrdescription: P3, bstricon: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), peventguid, bstrcommandline.into_param().abi(), bstrname.into_param().abi(), bstrdescription.into_param().abi(), bstricon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.param().abi(), peventguid, bstrcommandline.param().abi(), bstrname.param().abi(), bstrdescription.param().abi(), bstricon.param().abi()).ok() } pub unsafe fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: P0, peventguid: *const windows_core::GUID, piwiaeventcallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterEventCallbackInterface)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), peventguid, piwiaeventcallback.into_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, bstrdeviceid.param().abi(), peventguid, piwiaeventcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: P0, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: P1, bstrdescription: P2, bstricon: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), peventguid, pclsid, bstrname.into_param().abi(), bstrdescription.into_param().abi(), bstricon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.param().abi(), peventguid, pclsid, bstrname.param().abi(), bstrdescription.param().abi(), bstricon.param().abi()).ok() } pub unsafe fn AddDeviceDlg(&self, hwndparent: P0, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).AddDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), lflags).ok() } } #[repr(C)] @@ -309,59 +309,59 @@ impl IWiaDevMgr2 { } pub unsafe fn CreateDevice(&self, lflags: i32, bstrdeviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SelectDeviceDlg(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR, ppitemroot: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid), core::mem::transmute(ppitemroot)).ok() } pub unsafe fn SelectDeviceDlgID(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid)).ok() + (windows_core::Interface::vtable(self).SelectDeviceDlgID)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), ldevicetype, lflags, core::mem::transmute(pbstrdeviceid)).ok() } pub unsafe fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: P0, peventguid: *const windows_core::GUID, piwiaeventcallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterEventCallbackInterface)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), peventguid, piwiaeventcallback.into_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, bstrdeviceid.param().abi(), peventguid, piwiaeventcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: P0, peventguid: *const windows_core::GUID, bstrfullappname: P1, bstrcommandlinearg: P2, bstrname: P3, bstrdescription: P4, bstricon: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), peventguid, bstrfullappname.into_param().abi(), bstrcommandlinearg.into_param().abi(), bstrname.into_param().abi(), bstrdescription.into_param().abi(), bstricon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackProgram)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.param().abi(), peventguid, bstrfullappname.param().abi(), bstrcommandlinearg.param().abi(), bstrname.param().abi(), bstrdescription.param().abi(), bstricon.param().abi()).ok() } pub unsafe fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: P0, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: P1, bstrdescription: P2, bstricon: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), peventguid, pclsid, bstrname.into_param().abi(), bstrdescription.into_param().abi(), bstricon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterEventCallbackCLSID)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.param().abi(), peventguid, pclsid, bstrname.param().abi(), bstrdescription.param().abi(), bstricon.param().abi()).ok() } pub unsafe fn GetImageDlg(&self, lflags: i32, bstrdeviceid: P0, hwndparent: P1, bstrfoldername: P2, bstrfilename: P3, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.into_param().abi(), hwndparent.into_param().abi(), bstrfoldername.into_param().abi(), bstrfilename.into_param().abi(), plnumfiles, ppbstrfilepaths, core::mem::transmute(ppitem)).ok() + (windows_core::Interface::vtable(self).GetImageDlg)(windows_core::Interface::as_raw(self), lflags, bstrdeviceid.param().abi(), hwndparent.param().abi(), bstrfoldername.param().abi(), bstrfilename.param().abi(), plnumfiles, ppbstrfilepaths, core::mem::transmute(ppitem)).ok() } } #[repr(C)] @@ -397,9 +397,9 @@ impl IWiaDrvItem { } pub unsafe fn AddItemToFolder(&self, __midl__iwiadrvitem0004: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItemToFolder)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0004.into_param().abi()).ok() + (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), __midl__iwiadrvitem0005).ok() @@ -409,17 +409,17 @@ impl IWiaDrvItem { } pub unsafe fn FindItemByName(&self, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0007, __midl__iwiadrvitem0008.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0007, __midl__iwiadrvitem0008.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindChildItemByName(&self, __midl__iwiadrvitem0010: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindChildItemByName)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0010.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindChildItemByName)(windows_core::Interface::as_raw(self), __midl__iwiadrvitem0010.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetParentItem(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -460,17 +460,17 @@ windows_core::imp::interface_hierarchy!(IWiaErrorHandler, windows_core::IUnknown impl IWiaErrorHandler { pub unsafe fn ReportStatus(&self, lflags: i32, hwndparent: P0, pwiaitem2: P1, hrstatus: windows_core::HRESULT, lpercentcomplete: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), lflags, hwndparent.into_param().abi(), pwiaitem2.into_param().abi(), hrstatus, lpercentcomplete).ok() + (windows_core::Interface::vtable(self).ReportStatus)(windows_core::Interface::as_raw(self), lflags, hwndparent.param().abi(), pwiaitem2.param().abi(), hrstatus, lpercentcomplete).ok() } pub unsafe fn GetStatusDescription(&self, lflags: i32, pwiaitem2: P0, hrstatus: windows_core::HRESULT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatusDescription)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.into_param().abi(), hrstatus, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStatusDescription)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.param().abi(), hrstatus, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -484,12 +484,12 @@ windows_core::imp::interface_hierarchy!(IWiaEventCallback, windows_core::IUnknow impl IWiaEventCallback { pub unsafe fn ImageEventCallback(&self, peventguid: *const windows_core::GUID, bstreventdescription: P0, bstrdeviceid: P1, bstrdevicedescription: P2, dwdevicetype: u32, bstrfullitemname: P3, puleventtype: *mut u32, ulreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ImageEventCallback)(windows_core::Interface::as_raw(self), peventguid, bstreventdescription.into_param().abi(), bstrdeviceid.into_param().abi(), bstrdevicedescription.into_param().abi(), dwdevicetype, bstrfullitemname.into_param().abi(), puleventtype, ulreserved).ok() + (windows_core::Interface::vtable(self).ImageEventCallback)(windows_core::Interface::as_raw(self), peventguid, bstreventdescription.param().abi(), bstrdeviceid.param().abi(), bstrdevicedescription.param().abi(), dwdevicetype, bstrfullitemname.param().abi(), puleventtype, ulreserved).ok() } } #[repr(C)] @@ -502,30 +502,30 @@ windows_core::imp::interface_hierarchy!(IWiaImageFilter, windows_core::IUnknown) impl IWiaImageFilter { pub unsafe fn InitializeFilter(&self, pwiaitem2: P0, pwiatransfercallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFilter)(windows_core::Interface::as_raw(self), pwiaitem2.into_param().abi(), pwiatransfercallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFilter)(windows_core::Interface::as_raw(self), pwiaitem2.param().abi(), pwiatransfercallback.param().abi()).ok() } pub unsafe fn SetNewCallback(&self, pwiatransfercallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNewCallback)(windows_core::Interface::as_raw(self), pwiatransfercallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNewCallback)(windows_core::Interface::as_raw(self), pwiatransfercallback.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FilterPreviewImage(&self, lflags: i32, pwiachilditem2: P0, inputimageextents: super::super::Foundation::RECT, pinputstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FilterPreviewImage)(windows_core::Interface::as_raw(self), lflags, pwiachilditem2.into_param().abi(), core::mem::transmute(inputimageextents), pinputstream.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self), pwiapropertystorage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self), pwiapropertystorage.param().abi()).ok() } } #[repr(C)] @@ -558,11 +558,11 @@ impl IWiaItem { } pub unsafe fn CreateChildItem(&self, lflags: i32, bstritemname: P0, bstrfullitemname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), lflags, bstritemname.into_param().abi(), bstrfullitemname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), lflags, bstritemname.param().abi(), bstrfullitemname.param().abi(), &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__ = std::mem::zeroed(); @@ -570,16 +570,16 @@ impl IWiaItem { } pub unsafe fn FindItemByName(&self, lflags: i32, bstrfullitemname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), lflags, bstrfullitemname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), lflags, bstrfullitemname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeviceDlg(&self, hwndparent: P0, lflags: i32, lintent: i32, plitemcount: *mut i32, ppiwiaitem: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lflags, lintent, plitemcount, ppiwiaitem).ok() + (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), lflags, lintent, plitemcount, 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), lflags, pcmdguid, core::mem::transmute(piwiaitem)).ok() @@ -632,10 +632,10 @@ windows_core::imp::interface_hierarchy!(IWiaItem2, windows_core::IUnknown); impl IWiaItem2 { pub unsafe fn CreateChildItem(&self, litemflags: i32, lcreationflags: i32, bstritemname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), litemflags, lcreationflags, bstritemname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChildItem)(windows_core::Interface::as_raw(self), litemflags, lcreationflags, bstritemname.param().abi(), &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), lflags).ok() @@ -646,10 +646,10 @@ impl IWiaItem2 { } pub unsafe fn FindItemByName(&self, lflags: i32, bstrfullitemname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), lflags, bstrfullitemname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindItemByName)(windows_core::Interface::as_raw(self), lflags, bstrfullitemname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetItemCategory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -661,11 +661,11 @@ impl IWiaItem2 { } pub unsafe fn DeviceDlg(&self, lflags: i32, hwndparent: P0, bstrfoldername: P1, bstrfilename: P2, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), lflags, hwndparent.into_param().abi(), bstrfoldername.into_param().abi(), bstrfilename.into_param().abi(), plnumfiles, ppbstrfilepaths, core::mem::transmute(ppitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DeviceDlg)(windows_core::Interface::as_raw(self), lflags, hwndparent.param().abi(), bstrfoldername.param().abi(), bstrfilename.param().abi(), plnumfiles, ppbstrfilepaths, core::mem::transmute(ppitem.unwrap_or(std::ptr::null_mut()))).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), lflags, pcmdguid, core::mem::transmute(ppiwiaitem2)).ok() @@ -676,15 +676,15 @@ impl IWiaItem2 { } pub unsafe fn CheckExtension(&self, lflags: i32, bstrname: P0, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckExtension)(windows_core::Interface::as_raw(self), lflags, bstrname.into_param().abi(), riidextensioninterface, pbextensionexists).ok() + (windows_core::Interface::vtable(self).CheckExtension)(windows_core::Interface::as_raw(self), lflags, bstrname.param().abi(), riidextensioninterface, pbextensionexists).ok() } pub unsafe fn GetExtension(&self, lflags: i32, bstrname: P0, riidextensioninterface: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtension)(windows_core::Interface::as_raw(self), lflags, bstrname.into_param().abi(), riidextensioninterface, ppout).ok() + (windows_core::Interface::vtable(self).GetExtension)(windows_core::Interface::as_raw(self), lflags, bstrname.param().abi(), riidextensioninterface, ppout).ok() } pub unsafe fn GetParentItem(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -758,9 +758,9 @@ impl IWiaLog { } pub unsafe fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), lflags, lresid, ldetail, bstrtext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), lflags, lresid, ldetail, bstrtext.param().abi()).ok() } } #[repr(C)] @@ -781,18 +781,18 @@ impl IWiaLogEx { } pub unsafe fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), lflags, lresid, ldetail, bstrtext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), lflags, lresid, ldetail, bstrtext.param().abi()).ok() } pub unsafe fn hResultEx(&self, lmethodid: i32, hresult: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).hResultEx)(windows_core::Interface::as_raw(self), lmethodid, hresult).ok() } pub unsafe fn LogEx(&self, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LogEx)(windows_core::Interface::as_raw(self), lmethodid, lflags, lresid, ldetail, bstrtext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LogEx)(windows_core::Interface::as_raw(self), lmethodid, lflags, lresid, ldetail, bstrtext.param().abi()).ok() } } #[repr(C)] @@ -809,12 +809,12 @@ windows_core::imp::interface_hierarchy!(IWiaMiniDrv, windows_core::IUnknown); impl IWiaMiniDrv { pub unsafe fn drvInitializeWia(&self, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: P0, __midl__iwiaminidrv0003: P1, __midl__iwiaminidrv0004: P2, __midl__iwiaminidrv0005: P3, __midl__iwiaminidrv0006: *mut Option, __midl__iwiaminidrv0007: *mut Option, __midl__iwiaminidrv0008: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).drvInitializeWia)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0000, __midl__iwiaminidrv0001, __midl__iwiaminidrv0002.into_param().abi(), __midl__iwiaminidrv0003.into_param().abi(), __midl__iwiaminidrv0004.into_param().abi(), __midl__iwiaminidrv0005.into_param().abi(), core::mem::transmute(__midl__iwiaminidrv0006), core::mem::transmute(__midl__iwiaminidrv0007), __midl__iwiaminidrv0008).ok() + (windows_core::Interface::vtable(self).drvInitializeWia)(windows_core::Interface::as_raw(self), __midl__iwiaminidrv0000, __midl__iwiaminidrv0001, __midl__iwiaminidrv0002.param().abi(), __midl__iwiaminidrv0003.param().abi(), __midl__iwiaminidrv0004.param().abi(), __midl__iwiaminidrv0005.param().abi(), core::mem::transmute(__midl__iwiaminidrv0006), core::mem::transmute(__midl__iwiaminidrv0007), __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), __midl__iwiaminidrv0009, __midl__iwiaminidrv0010, __midl__iwiaminidrv0011, __midl__iwiaminidrv0012).ok() @@ -870,9 +870,9 @@ impl IWiaMiniDrv { } pub unsafe fn drvNotifyPnpEvent(&self, peventguid: *const windows_core::GUID, bstrdeviceid: P0, ulreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).drvNotifyPnpEvent)(windows_core::Interface::as_raw(self), peventguid, bstrdeviceid.into_param().abi(), ulreserved).ok() + (windows_core::Interface::vtable(self).drvNotifyPnpEvent)(windows_core::Interface::as_raw(self), peventguid, bstrdeviceid.param().abi(), 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), __midl__iwiaminidrv0064).ok() @@ -923,11 +923,11 @@ impl IWiaMiniDrvTransferCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextStream(&self, lflags: i32, bstritemname: P0, bstrfullitemname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), lflags, bstritemname.into_param().abi(), bstrfullitemname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), lflags, bstritemname.param().abi(), bstrfullitemname.param().abi(), &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), lflags, pwiatransferparams).ok() @@ -959,17 +959,17 @@ windows_core::imp::interface_hierarchy!(IWiaPreview, windows_core::IUnknown); impl IWiaPreview { pub unsafe fn GetNewPreview(&self, lflags: i32, pwiaitem2: P0, pwiatransfercallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNewPreview)(windows_core::Interface::as_raw(self), lflags, pwiaitem2.into_param().abi(), pwiatransfercallback.into_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: P0, pwiatransfercallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdatePreview)(windows_core::Interface::as_raw(self), lflags, pchildwiaitem2.into_param().abi(), pwiatransfercallback.into_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), lflags).ok() @@ -1046,9 +1046,9 @@ impl IWiaPropertyStorage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPropertyStream(&self, pcompatibilityid: *mut windows_core::GUID, pistream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyStream)(windows_core::Interface::as_raw(self), pcompatibilityid, pistream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropertyStream)(windows_core::Interface::as_raw(self), pcompatibilityid, pistream.param().abi()).ok() } } #[repr(C)] @@ -1101,10 +1101,10 @@ impl IWiaSegmentationFilter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn DetectRegions(&self, lflags: i32, pinputstream: P0, pwiaitem2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectRegions)(windows_core::Interface::as_raw(self), lflags, pinputstream.into_param().abi(), pwiaitem2.into_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)] @@ -1120,17 +1120,17 @@ windows_core::imp::interface_hierarchy!(IWiaTransfer, windows_core::IUnknown); impl IWiaTransfer { pub unsafe fn Download(&self, lflags: i32, piwiatransfercallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), lflags, piwiatransfercallback.into_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: P0, piwiatransfercallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Upload)(windows_core::Interface::as_raw(self), lflags, psource.into_param().abi(), piwiatransfercallback.into_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() @@ -1160,11 +1160,11 @@ impl IWiaTransferCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextStream(&self, lflags: i32, bstritemname: P0, bstrfullitemname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), lflags, bstritemname.into_param().abi(), bstrfullitemname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextStream)(windows_core::Interface::as_raw(self), lflags, bstritemname.param().abi(), bstrfullitemname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1185,16 +1185,16 @@ impl IWiaUIExtension { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetDeviceIcon(&self, bstrdeviceid: P0, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), bstrdeviceid.into_param().abi(), phicon, nsize).ok() + (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), bstrdeviceid.param().abi(), phicon, nsize).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDeviceBitmapLogo(&self, bstrdeviceid: P0, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceBitmapLogo)(windows_core::Interface::as_raw(self), bstrdeviceid.into_param().abi(), phbitmap, nmaxwidth, nmaxheight).ok() + (windows_core::Interface::vtable(self).GetDeviceBitmapLogo)(windows_core::Interface::as_raw(self), bstrdeviceid.param().abi(), phbitmap, nmaxwidth, nmaxheight).ok() } } #[repr(C)] @@ -1219,9 +1219,9 @@ impl IWiaUIExtension2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetDeviceIcon(&self, bstrdeviceid: P0, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), bstrdeviceid.into_param().abi(), phicon, nsize).ok() + (windows_core::Interface::vtable(self).GetDeviceIcon)(windows_core::Interface::as_raw(self), bstrdeviceid.param().abi(), phicon, nsize).ok() } } #[repr(C)] @@ -1242,9 +1242,9 @@ impl IWiaVideo { } pub unsafe fn SetPreviewVisible(&self, bpreviewvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreviewVisible)(windows_core::Interface::as_raw(self), bpreviewvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreviewVisible)(windows_core::Interface::as_raw(self), bpreviewvisible.param().abi()).ok() } pub unsafe fn ImagesDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1252,35 +1252,35 @@ impl IWiaVideo { } pub unsafe fn SetImagesDirectory(&self, bstrimagedirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagesDirectory)(windows_core::Interface::as_raw(self), bstrimagedirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagesDirectory)(windows_core::Interface::as_raw(self), bstrimagedirectory.param().abi()).ok() } pub unsafe fn CreateVideoByWiaDevID(&self, bstrwiadeviceid: P0, hwndparent: P1, bstretchtofitparent: P2, bautobeginplayback: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoByWiaDevID)(windows_core::Interface::as_raw(self), bstrwiadeviceid.into_param().abi(), hwndparent.into_param().abi(), bstretchtofitparent.into_param().abi(), bautobeginplayback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateVideoByWiaDevID)(windows_core::Interface::as_raw(self), bstrwiadeviceid.param().abi(), hwndparent.param().abi(), bstretchtofitparent.param().abi(), bautobeginplayback.param().abi()).ok() } pub unsafe fn CreateVideoByDevNum(&self, uidevicenumber: u32, hwndparent: P0, bstretchtofitparent: P1, bautobeginplayback: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoByDevNum)(windows_core::Interface::as_raw(self), uidevicenumber, hwndparent.into_param().abi(), bstretchtofitparent.into_param().abi(), bautobeginplayback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateVideoByDevNum)(windows_core::Interface::as_raw(self), uidevicenumber, hwndparent.param().abi(), bstretchtofitparent.param().abi(), bautobeginplayback.param().abi()).ok() } pub unsafe fn CreateVideoByName(&self, bstrfriendlyname: P0, hwndparent: P1, bstretchtofitparent: P2, bautobeginplayback: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoByName)(windows_core::Interface::as_raw(self), bstrfriendlyname.into_param().abi(), hwndparent.into_param().abi(), bstretchtofitparent.into_param().abi(), bautobeginplayback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateVideoByName)(windows_core::Interface::as_raw(self), bstrfriendlyname.param().abi(), hwndparent.param().abi(), bstretchtofitparent.param().abi(), bautobeginplayback.param().abi()).ok() } pub unsafe fn DestroyVideo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DestroyVideo)(windows_core::Interface::as_raw(self)).ok() @@ -1297,9 +1297,9 @@ impl IWiaVideo { } pub unsafe fn ResizeVideo(&self, bstretchtofitparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResizeVideo)(windows_core::Interface::as_raw(self), bstretchtofitparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ResizeVideo)(windows_core::Interface::as_raw(self), bstretchtofitparent.param().abi()).ok() } pub unsafe fn GetCurrentState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 57ae3caaaa..476d8b15af 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn DMProcessConfigXMLFiltered(pszxmlin: P0, rgszallowedcspnodes: &[windows_core::PCWSTR]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dmprocessxmlfiltered.dll" "system" fn DMProcessConfigXMLFiltered(pszxmlin : windows_core::PCWSTR, rgszallowedcspnodes : *const windows_core::PCWSTR, dwnumallowedcspnodes : u32, pbstrxmlout : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DMProcessConfigXMLFiltered(pszxmlin.into_param().abi(), core::mem::transmute(rgszallowedcspnodes.as_ptr()), rgszallowedcspnodes.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DMProcessConfigXMLFiltered(pszxmlin.param().abi(), core::mem::transmute(rgszallowedcspnodes.as_ptr()), rgszallowedcspnodes.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } windows_core::imp::define_interface!(IConnectionRequestCallback, IConnectionRequestCallback_Vtbl, 0x272c9ae0_7161_4ae0_91bd_9f448ee9c427); windows_core::imp::interface_hierarchy!(IConnectionRequestCallback, windows_core::IUnknown); @@ -95,21 +95,21 @@ windows_core::imp::interface_hierarchy!(IMediaRadioManagerNotifySink, windows_co impl IMediaRadioManagerNotifySink { pub unsafe fn OnInstanceAdd(&self, pradioinstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInstanceAdd)(windows_core::Interface::as_raw(self), pradioinstance.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInstanceAdd)(windows_core::Interface::as_raw(self), pradioinstance.param().abi()).ok() } pub unsafe fn OnInstanceRemove(&self, bstrradioinstanceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInstanceRemove)(windows_core::Interface::as_raw(self), bstrradioinstanceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInstanceRemove)(windows_core::Interface::as_raw(self), bstrradioinstanceid.param().abi()).ok() } pub unsafe fn OnInstanceRadioChange(&self, bstrradioinstanceid: P0, radiostate: DEVICE_RADIO_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInstanceRadioChange)(windows_core::Interface::as_raw(self), bstrradioinstanceid.into_param().abi(), radiostate).ok() + (windows_core::Interface::vtable(self).OnInstanceRadioChange)(windows_core::Interface::as_raw(self), bstrradioinstanceid.param().abi(), radiostate).ok() } } #[repr(C)] @@ -124,17 +124,17 @@ windows_core::imp::interface_hierarchy!(IPortableDevice, windows_core::IUnknown) impl IPortableDevice { pub unsafe fn Open(&self, pszpnpdeviceid: P0, pclientinfo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), pclientinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), pclientinfo.param().abi()).ok() } pub unsafe fn SendCommand(&self, dwflags: u32, pparameters: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), dwflags, pparameters.into_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__ = std::mem::zeroed(); @@ -152,17 +152,17 @@ impl IPortableDevice { } pub unsafe fn Advise(&self, dwflags: u32, pcallback: P0, pparameters: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), dwflags, pcallback.into_param().abi(), pparameters.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pszcookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pszcookie.param().abi()).ok() } pub unsafe fn GetPnPDeviceID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -257,21 +257,21 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceConnector, windows_core:: impl IPortableDeviceConnector { pub unsafe fn Connect(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn Disconnect(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn Cancel(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } #[cfg(feature = "Win32_Devices_Properties")] pub unsafe fn GetProperty(&self, ppropertykey: *const super::Properties::DEVPROPKEY, ppropertytype: *mut super::Properties::DEVPROPTYPE, ppdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()> { @@ -307,11 +307,11 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceContent, windows_core::IU impl IPortableDeviceContent { pub unsafe fn EnumObjects(&self, dwflags: u32, pszparentobjectid: P0, pfilter: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), dwflags, pszparentobjectid.into_param().abi(), pfilter.into_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__ = std::mem::zeroed(); @@ -323,46 +323,46 @@ impl IPortableDeviceContent { } pub unsafe fn CreateObjectWithPropertiesOnly(&self, pvalues: P0, ppszobjectid: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateObjectWithPropertiesOnly)(windows_core::Interface::as_raw(self), pvalues.into_param().abi(), ppszobjectid).ok() + (windows_core::Interface::vtable(self).CreateObjectWithPropertiesOnly)(windows_core::Interface::as_raw(self), pvalues.param().abi(), ppszobjectid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateObjectWithPropertiesAndData(&self, pvalues: P0, ppdata: *mut Option, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateObjectWithPropertiesAndData)(windows_core::Interface::as_raw(self), pvalues.into_param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize, ppszcookie).ok() + (windows_core::Interface::vtable(self).CreateObjectWithPropertiesAndData)(windows_core::Interface::as_raw(self), pvalues.param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize, ppszcookie).ok() } pub unsafe fn Delete(&self, dwoptions: u32, pobjectids: P0, ppresults: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), dwoptions, pobjectids.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectIDsFromPersistentUniqueIDs)(windows_core::Interface::as_raw(self), ppersistentuniqueids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObjectIDsFromPersistentUniqueIDs)(windows_core::Interface::as_raw(self), ppersistentuniqueids.param().abi(), &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() } pub unsafe fn Move(&self, pobjectids: P0, pszdestinationfolderobjectid: P1, ppresults: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), pobjectids.into_param().abi(), pszdestinationfolderobjectid.into_param().abi(), core::mem::transmute(ppresults)).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), pobjectids.param().abi(), pszdestinationfolderobjectid.param().abi(), core::mem::transmute(ppresults)).ok() } pub unsafe fn Copy(&self, pobjectids: P0, pszdestinationfolderobjectid: P1, ppresults: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), pobjectids.into_param().abi(), pszdestinationfolderobjectid.into_param().abi(), core::mem::transmute(ppresults)).ok() + (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), pobjectids.param().abi(), pszdestinationfolderobjectid.param().abi(), core::mem::transmute(ppresults)).ok() } } #[repr(C)] @@ -387,11 +387,11 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceContent2, windows_core::I impl IPortableDeviceContent2 { pub unsafe fn EnumObjects(&self, dwflags: u32, pszparentobjectid: P0, pfilter: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumObjects)(windows_core::Interface::as_raw(self), dwflags, pszparentobjectid.into_param().abi(), pfilter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -403,54 +403,54 @@ impl IPortableDeviceContent2 { } pub unsafe fn CreateObjectWithPropertiesOnly(&self, pvalues: P0, ppszobjectid: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateObjectWithPropertiesOnly)(windows_core::Interface::as_raw(self), pvalues.into_param().abi(), ppszobjectid).ok() + (windows_core::Interface::vtable(self).base__.CreateObjectWithPropertiesOnly)(windows_core::Interface::as_raw(self), pvalues.param().abi(), ppszobjectid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateObjectWithPropertiesAndData(&self, pvalues: P0, ppdata: *mut Option, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateObjectWithPropertiesAndData)(windows_core::Interface::as_raw(self), pvalues.into_param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize, ppszcookie).ok() + (windows_core::Interface::vtable(self).base__.CreateObjectWithPropertiesAndData)(windows_core::Interface::as_raw(self), pvalues.param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize, ppszcookie).ok() } pub unsafe fn Delete(&self, dwoptions: u32, pobjectids: P0, ppresults: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), dwoptions, pobjectids.into_param().abi(), core::mem::transmute(ppresults)).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetObjectIDsFromPersistentUniqueIDs)(windows_core::Interface::as_raw(self), ppersistentuniqueids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetObjectIDsFromPersistentUniqueIDs)(windows_core::Interface::as_raw(self), ppersistentuniqueids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Cancel)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Move(&self, pobjectids: P0, pszdestinationfolderobjectid: P1, ppresults: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), pobjectids.into_param().abi(), pszdestinationfolderobjectid.into_param().abi(), core::mem::transmute(ppresults)).ok() + (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), pobjectids.param().abi(), pszdestinationfolderobjectid.param().abi(), core::mem::transmute(ppresults)).ok() } pub unsafe fn Copy(&self, pobjectids: P0, pszdestinationfolderobjectid: P1, ppresults: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Copy)(windows_core::Interface::as_raw(self), pobjectids.into_param().abi(), pszdestinationfolderobjectid.into_param().abi(), core::mem::transmute(ppresults)).ok() + (windows_core::Interface::vtable(self).base__.Copy)(windows_core::Interface::as_raw(self), pobjectids.param().abi(), pszdestinationfolderobjectid.param().abi(), core::mem::transmute(ppresults)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateObjectWithPropertiesAndData(&self, pszobjectid: P0, pproperties: P1, ppdata: *mut Option, pdwoptimalwritebuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateObjectWithPropertiesAndData)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), pproperties.into_param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize).ok() + (windows_core::Interface::vtable(self).UpdateObjectWithPropertiesAndData)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), pproperties.param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize).ok() } } #[repr(C)] @@ -486,9 +486,9 @@ impl IPortableDeviceDataStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -536,10 +536,10 @@ impl IPortableDeviceDispatchFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDeviceDispatch(&self, pszpnpdeviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeviceDispatch)(windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDeviceDispatch)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -555,9 +555,9 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceEventCallback, windows_co impl IPortableDeviceEventCallback { pub unsafe fn OnEvent(&self, peventparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), peventparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), peventparameters.param().abi()).ok() } } #[repr(C)] @@ -612,28 +612,28 @@ impl IPortableDeviceManager { } pub unsafe fn GetDeviceFriendlyName(&self, pszpnpdeviceid: P0, pdevicefriendlyname: windows_core::PWSTR, pcchdevicefriendlyname: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceFriendlyName)(windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), core::mem::transmute(pdevicefriendlyname), pcchdevicefriendlyname).ok() + (windows_core::Interface::vtable(self).GetDeviceFriendlyName)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), core::mem::transmute(pdevicefriendlyname), pcchdevicefriendlyname).ok() } pub unsafe fn GetDeviceDescription(&self, pszpnpdeviceid: P0, pdevicedescription: windows_core::PWSTR, pcchdevicedescription: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceDescription)(windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), core::mem::transmute(pdevicedescription), pcchdevicedescription).ok() + (windows_core::Interface::vtable(self).GetDeviceDescription)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), core::mem::transmute(pdevicedescription), pcchdevicedescription).ok() } pub unsafe fn GetDeviceManufacturer(&self, pszpnpdeviceid: P0, pdevicemanufacturer: windows_core::PWSTR, pcchdevicemanufacturer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceManufacturer)(windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), core::mem::transmute(pdevicemanufacturer), pcchdevicemanufacturer).ok() + (windows_core::Interface::vtable(self).GetDeviceManufacturer)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), core::mem::transmute(pdevicemanufacturer), pcchdevicemanufacturer).ok() } pub unsafe fn GetDeviceProperty(&self, pszpnpdeviceid: P0, pszdevicepropertyname: P1, pdata: *mut u8, pcbdata: *mut u32, pdwtype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceProperty)(windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), pszdevicepropertyname.into_param().abi(), pdata, pcbdata, pdwtype).ok() + (windows_core::Interface::vtable(self).GetDeviceProperty)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), pszdevicepropertyname.param().abi(), pdata, pcbdata, pdwtype).ok() } pub unsafe fn GetPrivateDevices(&self, ppnpdeviceids: *mut windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPrivateDevices)(windows_core::Interface::as_raw(self), ppnpdeviceids, pcpnpdeviceids).ok() @@ -692,41 +692,41 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceProperties, windows_core: impl IPortableDeviceProperties { pub unsafe fn GetSupportedProperties(&self, pszobjectid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedProperties)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSupportedProperties)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyAttributes(&self, pszobjectid: P0, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyAttributes)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValues)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), pkeys.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValues)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), pkeys.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetValues(&self, pszobjectid: P0, pvalues: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), pvalues.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), pvalues.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, pszobjectid: P0, pkeys: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), pkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), pkeys.param().abi()).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -750,29 +750,29 @@ windows_core::imp::interface_hierarchy!(IPortableDevicePropertiesBulk, windows_c impl IPortableDevicePropertiesBulk { pub unsafe fn QueueGetValuesByObjectList(&self, pobjectids: P0, pkeys: P1, pcallback: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueueGetValuesByObjectList)(windows_core::Interface::as_raw(self), pobjectids.into_param().abi(), pkeys.into_param().abi(), pcallback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueueGetValuesByObjectList)(windows_core::Interface::as_raw(self), pobjectids.param().abi(), pkeys.param().abi(), pcallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn QueueGetValuesByObjectFormat(&self, pguidobjectformat: *const windows_core::GUID, pszparentobjectid: P0, dwdepth: u32, pkeys: P1, pcallback: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueueGetValuesByObjectFormat)(windows_core::Interface::as_raw(self), pguidobjectformat, pszparentobjectid.into_param().abi(), dwdepth, pkeys.into_param().abi(), pcallback.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueueSetValuesByObjectList)(windows_core::Interface::as_raw(self), pobjectvalues.into_param().abi(), pcallback.into_param().abi(), &mut result__).map(|| result__) + (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), pcontext).ok() @@ -798,9 +798,9 @@ impl IPortableDevicePropertiesBulkCallback { } pub unsafe fn OnProgress(&self, pcontext: *const windows_core::GUID, presults: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), pcontext, presults.into_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), pcontext, hrstatus).ok() @@ -818,32 +818,32 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceResources, windows_core:: impl IPortableDeviceResources { pub unsafe fn GetSupportedResources(&self, pszobjectid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSupportedResources)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSupportedResources)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetResourceAttributes(&self, pszobjectid: P0, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceAttributes)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), 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(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetStream(&self, pszobjectid: P0, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, dwmode: u32, pdwoptimalbuffersize: *mut u32, ppstream: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), key, dwmode, pdwoptimalbuffersize, core::mem::transmute(ppstream)).ok() + (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), key, dwmode, pdwoptimalbuffersize, core::mem::transmute(ppstream)).ok() } pub unsafe fn Delete(&self, pszobjectid: P0, pkeys: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszobjectid.into_param().abi(), pkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pszobjectid.param().abi(), pkeys.param().abi()).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -851,9 +851,9 @@ impl IPortableDeviceResources { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateResource(&self, presourceattributes: P0, ppdata: *mut Option, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateResource)(windows_core::Interface::as_raw(self), presourceattributes.into_param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize, ppszcookie).ok() + (windows_core::Interface::vtable(self).CreateResource)(windows_core::Interface::as_raw(self), presourceattributes.param().abi(), core::mem::transmute(ppdata), pdwoptimalwritebuffersize, ppszcookie).ok() } } #[repr(C)] @@ -880,10 +880,10 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceService, windows_core::IU impl IPortableDeviceService { pub unsafe fn Open(&self, pszpnpserviceid: P0, pclientinfo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pszpnpserviceid.into_param().abi(), pclientinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pszpnpserviceid.param().abi(), pclientinfo.param().abi()).ok() } pub unsafe fn Capabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -913,24 +913,24 @@ impl IPortableDeviceService { } pub unsafe fn Advise(&self, dwflags: u32, pcallback: P0, pparameters: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), dwflags, pcallback.into_param().abi(), pparameters.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pszcookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pszcookie.param().abi()).ok() } pub unsafe fn SendCommand(&self, dwflags: u32, pparameters: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendCommand)(windows_core::Interface::as_raw(self), dwflags, pparameters.into_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)] @@ -953,11 +953,11 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceServiceActivation, window impl IPortableDeviceServiceActivation { pub unsafe fn OpenAsync(&self, pszpnpserviceid: P0, pclientinfo: P1, pcallback: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenAsync)(windows_core::Interface::as_raw(self), pszpnpserviceid.into_param().abi(), pclientinfo.into_param().abi(), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenAsync)(windows_core::Interface::as_raw(self), pszpnpserviceid.param().abi(), pclientinfo.param().abi(), pcallback.param().abi()).ok() } pub unsafe fn CancelOpenAsync(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelOpenAsync)(windows_core::Interface::as_raw(self)).ok() @@ -1077,16 +1077,16 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceServiceManager, windows_c impl IPortableDeviceServiceManager { pub unsafe fn GetDeviceServices(&self, pszpnpdeviceid: P0, guidservicecategory: *const windows_core::GUID, pservices: *mut windows_core::PWSTR, pcservices: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceServices)(windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), guidservicecategory, pservices, pcservices).ok() + (windows_core::Interface::vtable(self).GetDeviceServices)(windows_core::Interface::as_raw(self), pszpnpdeviceid.param().abi(), guidservicecategory, pservices, pcservices).ok() } pub unsafe fn GetDeviceForService(&self, pszpnpserviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeviceForService)(windows_core::Interface::as_raw(self), pszpnpserviceid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDeviceForService)(windows_core::Interface::as_raw(self), pszpnpserviceid.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1100,9 +1100,9 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceServiceMethodCallback, wi impl IPortableDeviceServiceMethodCallback { pub unsafe fn OnComplete(&self, hrstatus: windows_core::HRESULT, presults: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), hrstatus, presults.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnComplete)(windows_core::Interface::as_raw(self), hrstatus, presults.param().abi()).ok() } } #[repr(C)] @@ -1115,22 +1115,22 @@ windows_core::imp::interface_hierarchy!(IPortableDeviceServiceMethods, windows_c impl IPortableDeviceServiceMethods { pub unsafe fn Invoke(&self, method: *const windows_core::GUID, pparameters: P0, ppresults: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), method, pparameters.into_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: P0, pcallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeAsync)(windows_core::Interface::as_raw(self), method, pparameters.into_param().abi(), pcallback.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } } #[repr(C)] @@ -1190,9 +1190,9 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetStringValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), key, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), key, value.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetStringValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -1264,9 +1264,9 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetBoolValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBoolValue)(windows_core::Interface::as_raw(self), key, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBoolValue)(windows_core::Interface::as_raw(self), key, value.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetBoolValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -1276,9 +1276,9 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetIUnknownValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIUnknownValue)(windows_core::Interface::as_raw(self), key, pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIUnknownValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetIUnknownValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -1305,9 +1305,9 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetIPortableDeviceValuesValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDeviceValuesValue)(windows_core::Interface::as_raw(self), key, pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDeviceValuesValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetIPortableDeviceValuesValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -1317,9 +1317,9 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetIPortableDevicePropVariantCollectionValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDevicePropVariantCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDevicePropVariantCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetIPortableDevicePropVariantCollectionValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -1329,9 +1329,9 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetIPortableDeviceKeyCollectionValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDeviceKeyCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDeviceKeyCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetIPortableDeviceKeyCollectionValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -1341,9 +1341,9 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetIPortableDeviceValuesCollectionValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPortableDeviceValuesCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPortableDeviceValuesCollectionValue)(windows_core::Interface::as_raw(self), key, pvalue.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetIPortableDeviceValuesCollectionValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -1357,16 +1357,16 @@ impl IPortableDeviceValues { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CopyValuesFromPropertyStore(&self, pstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyValuesFromPropertyStore)(windows_core::Interface::as_raw(self), pstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyValuesFromPropertyStore)(windows_core::Interface::as_raw(self), pstore.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CopyValuesToPropertyStore(&self, pstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyValuesToPropertyStore)(windows_core::Interface::as_raw(self), pstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyValuesToPropertyStore)(windows_core::Interface::as_raw(self), pstore.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -1542,9 +1542,9 @@ impl IPortableDeviceValuesCollection { } pub unsafe fn Add(&self, pvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pvalues.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pvalues.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -1571,19 +1571,19 @@ impl IPortableDeviceWebControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDeviceFromId(&self, deviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeviceFromId)(windows_core::Interface::as_raw(self), deviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDeviceFromId)(windows_core::Interface::as_raw(self), deviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDeviceFromIdAsync(&self, deviceid: P0, pcompletionhandler: P1, perrorhandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDeviceFromIdAsync)(windows_core::Interface::as_raw(self), deviceid.into_param().abi(), pcompletionhandler.into_param().abi(), perrorhandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetDeviceFromIdAsync)(windows_core::Interface::as_raw(self), deviceid.param().abi(), pcompletionhandler.param().abi(), perrorhandler.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1666,22 +1666,22 @@ impl IWpdSerializer { } pub unsafe fn WriteIPortableDeviceValuesToBuffer(&self, presults: P0, pbuffer: &mut [u8], pdwbyteswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteIPortableDeviceValuesToBuffer)(windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), presults.into_param().abi(), core::mem::transmute(pbuffer.as_ptr()), pdwbyteswritten).ok() + (windows_core::Interface::vtable(self).WriteIPortableDeviceValuesToBuffer)(windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), presults.param().abi(), core::mem::transmute(pbuffer.as_ptr()), pdwbyteswritten).ok() } pub unsafe fn GetBufferFromIPortableDeviceValues(&self, psource: P0, ppbuffer: *mut *mut u8, pdwbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBufferFromIPortableDeviceValues)(windows_core::Interface::as_raw(self), psource.into_param().abi(), ppbuffer, pdwbuffersize).ok() + (windows_core::Interface::vtable(self).GetBufferFromIPortableDeviceValues)(windows_core::Interface::as_raw(self), psource.param().abi(), ppbuffer, pdwbuffersize).ok() } pub unsafe fn GetSerializedSize(&self, psource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSerializedSize)(windows_core::Interface::as_raw(self), psource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSerializedSize)(windows_core::Interface::as_raw(self), psource.param().abi(), &mut result__).map(|| 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 e6525c8ac8..7cbb3a3f03 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs @@ -179,10 +179,10 @@ pub unsafe fn PropKeyFindKeyGetNthUshort(plist: *const SENSOR_COLLECTION_LIST, p #[inline] pub unsafe fn PropKeyFindKeyGetPropVariant(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, typecheck: P0, pvalue: *mut windows_core::PROPVARIANT) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetPropVariant(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::UI::Shell::PropertiesSystem:: PROPERTYKEY, typecheck : super::super::Foundation:: BOOLEAN, pvalue : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetPropVariant(plist, pkey, typecheck.into_param().abi(), core::mem::transmute(pvalue)) + PropKeyFindKeyGetPropVariant(plist, pkey, typecheck.param().abi(), core::mem::transmute(pvalue)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] #[inline] @@ -200,10 +200,10 @@ pub unsafe fn PropKeyFindKeyGetUshort(plist: *const SENSOR_COLLECTION_LIST, pkey #[inline] pub unsafe fn PropKeyFindKeySetPropVariant(plist: *mut SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, typecheck: P0, pvalue: *const windows_core::PROPVARIANT) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeySetPropVariant(plist : *mut SENSOR_COLLECTION_LIST, pkey : *const super::super::UI::Shell::PropertiesSystem:: PROPERTYKEY, typecheck : super::super::Foundation:: BOOLEAN, pvalue : *const std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeySetPropVariant(plist, pkey, typecheck.into_param().abi(), core::mem::transmute(pvalue)) + PropKeyFindKeySetPropVariant(plist, pkey, typecheck.param().abi(), core::mem::transmute(pvalue)) } #[cfg(feature = "Win32_Devices_Properties")] #[inline] @@ -282,10 +282,10 @@ impl ISensor { #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn GetProperties(&self, pkeys: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), pkeys.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), pkeys.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn GetSupportedDataFields(&self) -> windows_core::Result { @@ -295,10 +295,10 @@ impl ISensor { #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn SetProperties(&self, pproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SupportsDataField(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -325,9 +325,9 @@ impl ISensor { } pub unsafe fn SetEventSink(&self, pevents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), pevents.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), pevents.param().abi()).ok() } } #[repr(C)] @@ -377,15 +377,15 @@ impl ISensorCollection { } pub unsafe fn Add(&self, psensor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), psensor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), psensor.param().abi()).ok() } pub unsafe fn Remove(&self, psensor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), psensor.into_param().abi()).ok() + (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), sensorid).ok() @@ -419,10 +419,10 @@ impl ISensorDataReport { #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn GetSensorValues(&self, pkeys: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSensorValues)(windows_core::Interface::as_raw(self), pkeys.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSensorValues)(windows_core::Interface::as_raw(self), pkeys.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -443,24 +443,24 @@ windows_core::imp::interface_hierarchy!(ISensorEvents, windows_core::IUnknown); impl ISensorEvents { pub unsafe fn OnStateChanged(&self, psensor: P0, state: SensorState) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), psensor.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDataUpdated)(windows_core::Interface::as_raw(self), psensor.into_param().abi(), pnewdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDataUpdated)(windows_core::Interface::as_raw(self), psensor.param().abi(), pnewdata.param().abi()).ok() } #[cfg(feature = "Win32_Devices_PortableDevices")] pub unsafe fn OnEvent(&self, psensor: P0, eventid: *const windows_core::GUID, peventdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), psensor.into_param().abi(), eventid, peventdata.into_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), id).ok() @@ -494,17 +494,17 @@ impl ISensorManager { } pub unsafe fn SetEventSink(&self, pevents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), pevents.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), pevents.param().abi()).ok() } pub unsafe fn RequestPermissions(&self, hparent: P0, psensors: P1, fmodal: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), hparent.into_param().abi(), psensors.into_param().abi(), fmodal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RequestPermissions)(windows_core::Interface::as_raw(self), hparent.param().abi(), psensors.param().abi(), fmodal.param().abi()).ok() } } #[repr(C)] @@ -521,9 +521,9 @@ windows_core::imp::interface_hierarchy!(ISensorManagerEvents, windows_core::IUnk impl ISensorManagerEvents { pub unsafe fn OnSensorEnter(&self, psensor: P0, state: SensorState) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSensorEnter)(windows_core::Interface::as_raw(self), psensor.into_param().abi(), 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 8972ae9f7d..3540275527 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs @@ -1,35 +1,35 @@ #[inline] pub unsafe fn ComDBClaimNextFreePort(hcomdb: P0, comnumber: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msports.dll" "system" fn ComDBClaimNextFreePort(hcomdb : HCOMDB, comnumber : *mut u32) -> i32); - ComDBClaimNextFreePort(hcomdb.into_param().abi(), comnumber) + ComDBClaimNextFreePort(hcomdb.param().abi(), comnumber) } #[inline] pub unsafe fn ComDBClaimPort(hcomdb: P0, comnumber: u32, forceclaim: P1, forced: Option<*mut super::super::Foundation::BOOL>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hcomdb.into_param().abi(), comnumber, forceclaim.into_param().abi(), core::mem::transmute(forced.unwrap_or(std::ptr::null_mut()))) + ComDBClaimPort(hcomdb.param().abi(), comnumber, forceclaim.param().abi(), core::mem::transmute(forced.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ComDBClose(hcomdb: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msports.dll" "system" fn ComDBClose(hcomdb : HCOMDB) -> i32); - ComDBClose(hcomdb.into_param().abi()) + ComDBClose(hcomdb.param().abi()) } #[inline] pub unsafe fn ComDBGetCurrentPortUsage(hcomdb: P0, buffer: Option<&mut [u8]>, reporttype: u32, maxportsreported: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msports.dll" "system" fn ComDBGetCurrentPortUsage(hcomdb : HCOMDB, buffer : *mut u8, buffersize : u32, reporttype : u32, maxportsreported : *mut u32) -> i32); - ComDBGetCurrentPortUsage(hcomdb.into_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()), reporttype, core::mem::transmute(maxportsreported.unwrap_or(std::ptr::null_mut()))) + ComDBGetCurrentPortUsage(hcomdb.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()), reporttype, core::mem::transmute(maxportsreported.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ComDBOpen(phcomdb: *mut HCOMDB) -> i32 { @@ -39,18 +39,18 @@ pub unsafe fn ComDBOpen(phcomdb: *mut HCOMDB) -> i32 { #[inline] pub unsafe fn ComDBReleasePort(hcomdb: P0, comnumber: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msports.dll" "system" fn ComDBReleasePort(hcomdb : HCOMDB, comnumber : u32) -> i32); - ComDBReleasePort(hcomdb.into_param().abi(), comnumber) + ComDBReleasePort(hcomdb.param().abi(), comnumber) } #[inline] pub unsafe fn ComDBResizeDatabase(hcomdb: P0, newsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msports.dll" "system" fn ComDBResizeDatabase(hcomdb : HCOMDB, newsize : u32) -> i32); - ComDBResizeDatabase(hcomdb.into_param().abi(), newsize) + ComDBResizeDatabase(hcomdb.param().abi(), 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 2b32baad82..3c447a6e67 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs @@ -2,66 +2,66 @@ #[inline] pub unsafe fn GetTnefStreamCodepage(lpstream: P0, lpulcodepage: *mut u32, lpulsubcodepage: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn GetTnefStreamCodepage(lpstream : * mut core::ffi::c_void, lpulcodepage : *mut u32, lpulsubcodepage : *mut u32) -> windows_core::HRESULT); - GetTnefStreamCodepage(lpstream.into_param().abi(), lpulcodepage, lpulsubcodepage).ok() + GetTnefStreamCodepage(lpstream.param().abi(), lpulcodepage, lpulsubcodepage).ok() } #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] #[inline] pub unsafe fn OpenTnefStream(lpvsupport: *mut core::ffi::c_void, lpstream: P0, lpszstreamname: *const i8, ulflags: u32, lpmessage: P1, wkeyval: u16, lpptnef: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lpvsupport, lpstream.into_param().abi(), lpszstreamname, ulflags, lpmessage.into_param().abi(), wkeyval, core::mem::transmute(lpptnef)).ok() + OpenTnefStream(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] pub unsafe fn OpenTnefStreamEx(lpvsupport: *mut core::ffi::c_void, lpstream: P0, lpszstreamname: *const i8, ulflags: u32, lpmessage: P1, wkeyval: u16, lpadressbook: P2, lpptnef: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(lpvsupport, lpstream.into_param().abi(), lpszstreamname, ulflags, lpmessage.into_param().abi(), wkeyval, lpadressbook.into_param().abi(), core::mem::transmute(lpptnef)).ok() + OpenTnefStreamEx(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: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineAccept(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineAccept(hcall, lpsuseruserinfo.into_param().abi(), dwsize) + lineAccept(hcall, lpsuseruserinfo.param().abi(), dwsize) } #[inline] pub unsafe fn lineAddProvider(lpszproviderfilename: P0, hwndowner: P1, lpdwpermanentproviderid: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndowner.into_param().abi(), lpdwpermanentproviderid) + lineAddProvider(lpszproviderfilename.param().abi(), hwndowner.param().abi(), lpdwpermanentproviderid) } #[inline] pub unsafe fn lineAddProviderA(lpszproviderfilename: P0, hwndowner: P1, lpdwpermanentproviderid: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndowner.into_param().abi(), lpdwpermanentproviderid) + lineAddProviderA(lpszproviderfilename.param().abi(), hwndowner.param().abi(), lpdwpermanentproviderid) } #[inline] pub unsafe fn lineAddProviderW(lpszproviderfilename: P0, hwndowner: P1, lpdwpermanentproviderid: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndowner.into_param().abi(), lpdwpermanentproviderid) + lineAddProviderW(lpszproviderfilename.param().abi(), hwndowner.param().abi(), lpdwpermanentproviderid) } #[inline] pub unsafe fn lineAddToConference(hconfcall: u32, hconsultcall: u32) -> i32 { @@ -76,34 +76,34 @@ pub unsafe fn lineAgentSpecific(hline: u32, dwaddressid: u32, dwagentextensionid #[inline] pub unsafe fn lineAnswer(hcall: u32, lpsuseruserinfo: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineAnswer(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineAnswer(hcall, lpsuseruserinfo.into_param().abi(), dwsize) + lineAnswer(hcall, lpsuseruserinfo.param().abi(), dwsize) } #[inline] pub unsafe fn lineBlindTransfer(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineBlindTransfer(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineBlindTransfer(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineBlindTransfer(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineBlindTransferA(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineBlindTransferA(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineBlindTransferA(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineBlindTransferA(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineBlindTransferW(hcall: u32, lpszdestaddressw: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineBlindTransferW(hcall : u32, lpszdestaddressw : windows_core::PCWSTR, dwcountrycode : u32) -> i32); - lineBlindTransferW(hcall, lpszdestaddressw.into_param().abi(), dwcountrycode) + lineBlindTransferW(hcall, lpszdestaddressw.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineClose(hline: u32) -> i32 { @@ -123,98 +123,98 @@ pub unsafe fn lineCompleteTransfer(hcall: u32, hconsultcall: u32, lphconfcall: * #[inline] pub unsafe fn lineConfigDialog(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialog(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineConfigDialog(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi()) + lineConfigDialog(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineConfigDialogA(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialogA(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineConfigDialogA(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi()) + lineConfigDialogA(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineConfigDialogEdit(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1, lpdeviceconfigin: *const core::ffi::c_void, dwsize: u32, lpdeviceconfigout: *mut VARSTRING) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi(), lpdeviceconfigin, dwsize, lpdeviceconfigout) + lineConfigDialogEdit(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi(), lpdeviceconfigin, dwsize, lpdeviceconfigout) } #[inline] pub unsafe fn lineConfigDialogEditA(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1, lpdeviceconfigin: *const core::ffi::c_void, dwsize: u32, lpdeviceconfigout: *mut VARSTRING) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi(), lpdeviceconfigin, dwsize, lpdeviceconfigout) + lineConfigDialogEditA(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi(), lpdeviceconfigin, dwsize, lpdeviceconfigout) } #[inline] pub unsafe fn lineConfigDialogEditW(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1, lpdeviceconfigin: *const core::ffi::c_void, dwsize: u32, lpdeviceconfigout: *mut VARSTRING) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi(), lpdeviceconfigin, dwsize, lpdeviceconfigout) + lineConfigDialogEditW(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi(), lpdeviceconfigin, dwsize, lpdeviceconfigout) } #[inline] pub unsafe fn lineConfigDialogW(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigDialogW(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCWSTR) -> i32); - lineConfigDialogW(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi()) + lineConfigDialogW(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineConfigProvider(hwndowner: P0, dwpermanentproviderid: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineConfigProvider(hwndowner : super::super::Foundation:: HWND, dwpermanentproviderid : u32) -> i32); - lineConfigProvider(hwndowner.into_param().abi(), dwpermanentproviderid) + lineConfigProvider(hwndowner.param().abi(), dwpermanentproviderid) } #[inline] pub unsafe fn lineCreateAgentA(hline: u32, lpszagentid: P0, lpszagentpin: P1, lphagent: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hline, lpszagentid.into_param().abi(), lpszagentpin.into_param().abi(), lphagent) + lineCreateAgentA(hline, lpszagentid.param().abi(), lpszagentpin.param().abi(), lphagent) } #[inline] pub unsafe fn lineCreateAgentSessionA(hline: u32, hagent: u32, lpszagentpin: P0, dwworkingaddressid: u32, lpgroupid: *mut windows_core::GUID, lphagentsession: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, hagent, lpszagentpin.into_param().abi(), dwworkingaddressid, lpgroupid, lphagentsession) + lineCreateAgentSessionA(hline, hagent, lpszagentpin.param().abi(), dwworkingaddressid, lpgroupid, lphagentsession) } #[inline] pub unsafe fn lineCreateAgentSessionW(hline: u32, hagent: u32, lpszagentpin: P0, dwworkingaddressid: u32, lpgroupid: *mut windows_core::GUID, lphagentsession: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, hagent, lpszagentpin.into_param().abi(), dwworkingaddressid, lpgroupid, lphagentsession) + lineCreateAgentSessionW(hline, hagent, lpszagentpin.param().abi(), dwworkingaddressid, lpgroupid, lphagentsession) } #[inline] pub unsafe fn lineCreateAgentW(hline: u32, lpszagentid: P0, lpszagentpin: P1, lphagent: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hline, lpszagentid.into_param().abi(), lpszagentpin.into_param().abi(), lphagent) + lineCreateAgentW(hline, lpszagentid.param().abi(), lpszagentpin.param().abi(), lphagent) } #[inline] pub unsafe fn lineDeallocateCall(hcall: u32) -> i32 { @@ -234,34 +234,34 @@ pub unsafe fn lineDevSpecificFeature(hline: u32, dwfeature: u32, lpparams: *mut #[inline] pub unsafe fn lineDial(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDial(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineDial(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineDial(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineDialA(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDialA(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineDialA(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineDialA(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineDialW(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDialW(hcall : u32, lpszdestaddress : windows_core::PCWSTR, dwcountrycode : u32) -> i32); - lineDialW(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineDialW(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineDrop(hcall: u32, lpsuseruserinfo: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineDrop(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineDrop(hcall, lpsuseruserinfo.into_param().abi(), 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 { @@ -281,50 +281,50 @@ pub unsafe fn lineForwardW(hline: u32, balladdresses: u32, dwaddressid: u32, lpf #[inline] pub unsafe fn lineGatherDigits(hcall: u32, dwdigitmodes: u32, lpsdigits: Option<&mut [u8]>, lpszterminationdigits: P0, dwfirstdigittimeout: u32, dwinterdigittimeout: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), dwfirstdigittimeout, 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: P0, dwfirstdigittimeout: u32, dwinterdigittimeout: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), dwfirstdigittimeout, 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: P0, dwfirstdigittimeout: u32, dwinterdigittimeout: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), dwfirstdigittimeout, 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: P0, dwduration: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGenerateDigits(hcall : u32, dwdigitmode : u32, lpszdigits : windows_core::PCSTR, dwduration : u32) -> i32); - lineGenerateDigits(hcall, dwdigitmode, lpszdigits.into_param().abi(), dwduration) + lineGenerateDigits(hcall, dwdigitmode, lpszdigits.param().abi(), dwduration) } #[inline] pub unsafe fn lineGenerateDigitsA(hcall: u32, dwdigitmode: u32, lpszdigits: P0, dwduration: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGenerateDigitsA(hcall : u32, dwdigitmode : u32, lpszdigits : windows_core::PCSTR, dwduration : u32) -> i32); - lineGenerateDigitsA(hcall, dwdigitmode, lpszdigits.into_param().abi(), dwduration) + lineGenerateDigitsA(hcall, dwdigitmode, lpszdigits.param().abi(), dwduration) } #[inline] pub unsafe fn lineGenerateDigitsW(hcall: u32, dwdigitmode: u32, lpszdigits: P0, dwduration: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGenerateDigitsW(hcall : u32, dwdigitmode : u32, lpszdigits : windows_core::PCWSTR, dwduration : u32) -> i32); - lineGenerateDigitsW(hcall, dwdigitmode, lpszdigits.into_param().abi(), 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 { @@ -349,26 +349,26 @@ pub unsafe fn lineGetAddressCapsW(hlineapp: u32, dwdeviceid: u32, dwaddressid: u #[inline] pub unsafe fn lineGetAddressID(hline: u32, lpdwaddressid: *mut u32, dwaddressmode: u32, lpsaddress: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, lpdwaddressid, dwaddressmode, lpsaddress.into_param().abi(), dwsize) + lineGetAddressID(hline, lpdwaddressid, dwaddressmode, lpsaddress.param().abi(), dwsize) } #[inline] pub unsafe fn lineGetAddressIDA(hline: u32, lpdwaddressid: *mut u32, dwaddressmode: u32, lpsaddress: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, lpdwaddressid, dwaddressmode, lpsaddress.into_param().abi(), dwsize) + lineGetAddressIDA(hline, lpdwaddressid, dwaddressmode, lpsaddress.param().abi(), dwsize) } #[inline] pub unsafe fn lineGetAddressIDW(hline: u32, lpdwaddressid: *mut u32, dwaddressmode: u32, lpsaddress: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, lpdwaddressid, dwaddressmode, lpsaddress.into_param().abi(), dwsize) + lineGetAddressIDW(hline, lpdwaddressid, dwaddressmode, lpsaddress.param().abi(), dwsize) } #[inline] pub unsafe fn lineGetAddressStatus(hline: u32, dwaddressid: u32, lpaddressstatus: *mut LINEADDRESSSTATUS) -> i32 { @@ -445,26 +445,26 @@ pub unsafe fn lineGetAgentStatusW(hline: u32, dwaddressid: u32, lpagentstatus: * #[inline] pub unsafe fn lineGetAppPriority(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpextensionname: *mut VARSTRING, lpdwpriority: *mut u32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpextensionname, lpdwpriority) + lineGetAppPriority(lpszappfilename.param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpextensionname, lpdwpriority) } #[inline] pub unsafe fn lineGetAppPriorityA(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpextensionname: *mut VARSTRING, lpdwpriority: *mut u32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpextensionname, lpdwpriority) + lineGetAppPriorityA(lpszappfilename.param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpextensionname, lpdwpriority) } #[inline] pub unsafe fn lineGetAppPriorityW(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpextensionname: *mut VARSTRING, lpdwpriority: *mut u32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpextensionname, lpdwpriority) + lineGetAppPriorityW(lpszappfilename.param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpextensionname, lpdwpriority) } #[inline] pub unsafe fn lineGetCallInfo(hcall: u32, lpcallinfo: *mut LINECALLINFO) -> i32 { @@ -524,26 +524,26 @@ pub unsafe fn lineGetDevCapsW(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, #[inline] pub unsafe fn lineGetDevConfig(dwdeviceid: u32, lpdeviceconfig: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetDevConfig(dwdeviceid : u32, lpdeviceconfig : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineGetDevConfig(dwdeviceid, lpdeviceconfig, lpszdeviceclass.into_param().abi()) + lineGetDevConfig(dwdeviceid, lpdeviceconfig, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetDevConfigA(dwdeviceid: u32, lpdeviceconfig: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetDevConfigA(dwdeviceid : u32, lpdeviceconfig : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - lineGetDevConfigA(dwdeviceid, lpdeviceconfig, lpszdeviceclass.into_param().abi()) + lineGetDevConfigA(dwdeviceid, lpdeviceconfig, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetDevConfigW(dwdeviceid: u32, lpdeviceconfig: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineGetDevConfigW(dwdeviceid : u32, lpdeviceconfig : *mut VARSTRING, lpszdeviceclass : windows_core::PCWSTR) -> i32); - lineGetDevConfigW(dwdeviceid, lpdeviceconfig, lpszdeviceclass.into_param().abi()) + lineGetDevConfigW(dwdeviceid, lpdeviceconfig, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetGroupListA(hline: u32, lpgrouplist: *mut LINEAGENTGROUPLIST) -> i32 { @@ -558,53 +558,53 @@ pub unsafe fn lineGetGroupListW(hline: u32, lpgrouplist: *mut LINEAGENTGROUPLIST #[inline] pub unsafe fn lineGetID(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, dwaddressid, hcall, dwselect, lpdeviceid, lpszdeviceclass.into_param().abi()) + lineGetID(hline, dwaddressid, hcall, dwselect, lpdeviceid, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetIDA(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, dwaddressid, hcall, dwselect, lpdeviceid, lpszdeviceclass.into_param().abi()) + lineGetIDA(hline, dwaddressid, hcall, dwselect, lpdeviceid, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineGetIDW(hline: u32, dwaddressid: u32, hcall: u32, dwselect: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, dwaddressid, hcall, dwselect, lpdeviceid, lpszdeviceclass.into_param().abi()) + lineGetIDW(hline, dwaddressid, hcall, dwselect, lpdeviceid, lpszdeviceclass.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn lineGetIcon(dwdeviceid: u32, lpszdeviceclass: P0, lphicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpszdeviceclass.into_param().abi(), lphicon) + lineGetIcon(dwdeviceid, lpszdeviceclass.param().abi(), lphicon) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn lineGetIconA(dwdeviceid: u32, lpszdeviceclass: P0, lphicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpszdeviceclass.into_param().abi(), lphicon) + lineGetIconA(dwdeviceid, lpszdeviceclass.param().abi(), lphicon) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn lineGetIconW(dwdeviceid: u32, lpszdeviceclass: P0, lphicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpszdeviceclass.into_param().abi(), lphicon) + lineGetIconW(dwdeviceid, lpszdeviceclass.param().abi(), lphicon) } #[inline] pub unsafe fn lineGetLineDevStatus(hline: u32, lplinedevstatus: *mut LINEDEVSTATUS) -> i32 { @@ -709,26 +709,26 @@ pub unsafe fn lineGetTranslateCapsW(hlineapp: u32, dwapiversion: u32, lptranslat #[inline] pub unsafe fn lineHandoff(hcall: u32, lpszfilename: P0, dwmediamode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineHandoff(hcall : u32, lpszfilename : windows_core::PCSTR, dwmediamode : u32) -> i32); - lineHandoff(hcall, lpszfilename.into_param().abi(), dwmediamode) + lineHandoff(hcall, lpszfilename.param().abi(), dwmediamode) } #[inline] pub unsafe fn lineHandoffA(hcall: u32, lpszfilename: P0, dwmediamode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineHandoffA(hcall : u32, lpszfilename : windows_core::PCSTR, dwmediamode : u32) -> i32); - lineHandoffA(hcall, lpszfilename.into_param().abi(), dwmediamode) + lineHandoffA(hcall, lpszfilename.param().abi(), dwmediamode) } #[inline] pub unsafe fn lineHandoffW(hcall: u32, lpszfilename: P0, dwmediamode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineHandoffW(hcall : u32, lpszfilename : windows_core::PCWSTR, dwmediamode : u32) -> i32); - lineHandoffW(hcall, lpszfilename.into_param().abi(), dwmediamode) + lineHandoffW(hcall, lpszfilename.param().abi(), dwmediamode) } #[inline] pub unsafe fn lineHold(hcall: u32) -> i32 { @@ -738,53 +738,53 @@ pub unsafe fn lineHold(hcall: u32) -> i32 { #[inline] pub unsafe fn lineInitialize(lphlineapp: *mut u32, hinstance: P0, lpfncallback: LINECALLBACK, lpszappname: P1, lpdwnumdevs: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lphlineapp, hinstance.into_param().abi(), lpfncallback, lpszappname.into_param().abi(), lpdwnumdevs) + lineInitialize(lphlineapp, hinstance.param().abi(), lpfncallback, lpszappname.param().abi(), lpdwnumdevs) } #[inline] pub unsafe fn lineInitializeExA(lphlineapp: *mut u32, hinstance: P0, lpfncallback: LINECALLBACK, lpszfriendlyappname: P1, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lplineinitializeexparams: *mut LINEINITIALIZEEXPARAMS) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lphlineapp, hinstance.into_param().abi(), lpfncallback, lpszfriendlyappname.into_param().abi(), lpdwnumdevs, lpdwapiversion, lplineinitializeexparams) + lineInitializeExA(lphlineapp, hinstance.param().abi(), lpfncallback, lpszfriendlyappname.param().abi(), lpdwnumdevs, lpdwapiversion, lplineinitializeexparams) } #[inline] pub unsafe fn lineInitializeExW(lphlineapp: *mut u32, hinstance: P0, lpfncallback: LINECALLBACK, lpszfriendlyappname: P1, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lplineinitializeexparams: *mut LINEINITIALIZEEXPARAMS) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lphlineapp, hinstance.into_param().abi(), lpfncallback, lpszfriendlyappname.into_param().abi(), lpdwnumdevs, lpdwapiversion, lplineinitializeexparams) + lineInitializeExW(lphlineapp, hinstance.param().abi(), lpfncallback, lpszfriendlyappname.param().abi(), lpdwnumdevs, lpdwapiversion, lplineinitializeexparams) } #[inline] pub unsafe fn lineMakeCall(hline: u32, lphcall: *mut u32, lpszdestaddress: P0, dwcountrycode: u32, lpcallparams: *const LINECALLPARAMS) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, lphcall, lpszdestaddress.into_param().abi(), dwcountrycode, lpcallparams) + lineMakeCall(hline, lphcall, lpszdestaddress.param().abi(), dwcountrycode, lpcallparams) } #[inline] pub unsafe fn lineMakeCallA(hline: u32, lphcall: *mut u32, lpszdestaddress: P0, dwcountrycode: u32, lpcallparams: *const LINECALLPARAMS) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, lphcall, lpszdestaddress.into_param().abi(), dwcountrycode, lpcallparams) + lineMakeCallA(hline, lphcall, lpszdestaddress.param().abi(), dwcountrycode, lpcallparams) } #[inline] pub unsafe fn lineMakeCallW(hline: u32, lphcall: *mut u32, lpszdestaddress: P0, dwcountrycode: u32, lpcallparams: *const LINECALLPARAMS) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hline, lphcall, lpszdestaddress.into_param().abi(), dwcountrycode, lpcallparams) + lineMakeCallW(hline, lphcall, lpszdestaddress.param().abi(), dwcountrycode, lpcallparams) } #[inline] pub unsafe fn lineMonitorDigits(hcall: u32, dwdigitmodes: u32) -> i32 { @@ -829,53 +829,53 @@ pub unsafe fn lineOpenW(hlineapp: u32, dwdeviceid: u32, lphline: *mut u32, dwapi #[inline] pub unsafe fn linePark(hcall: u32, dwparkmode: u32, lpszdiraddress: P0, lpnondiraddress: *mut VARSTRING) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn linePark(hcall : u32, dwparkmode : u32, lpszdiraddress : windows_core::PCSTR, lpnondiraddress : *mut VARSTRING) -> i32); - linePark(hcall, dwparkmode, lpszdiraddress.into_param().abi(), lpnondiraddress) + linePark(hcall, dwparkmode, lpszdiraddress.param().abi(), lpnondiraddress) } #[inline] pub unsafe fn lineParkA(hcall: u32, dwparkmode: u32, lpszdiraddress: P0, lpnondiraddress: *mut VARSTRING) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineParkA(hcall : u32, dwparkmode : u32, lpszdiraddress : windows_core::PCSTR, lpnondiraddress : *mut VARSTRING) -> i32); - lineParkA(hcall, dwparkmode, lpszdiraddress.into_param().abi(), lpnondiraddress) + lineParkA(hcall, dwparkmode, lpszdiraddress.param().abi(), lpnondiraddress) } #[inline] pub unsafe fn lineParkW(hcall: u32, dwparkmode: u32, lpszdiraddress: P0, lpnondiraddress: *mut VARSTRING) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineParkW(hcall : u32, dwparkmode : u32, lpszdiraddress : windows_core::PCWSTR, lpnondiraddress : *mut VARSTRING) -> i32); - lineParkW(hcall, dwparkmode, lpszdiraddress.into_param().abi(), lpnondiraddress) + lineParkW(hcall, dwparkmode, lpszdiraddress.param().abi(), lpnondiraddress) } #[inline] pub unsafe fn linePickup(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P0, lpszgroupid: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hline, dwaddressid, lphcall, lpszdestaddress.into_param().abi(), lpszgroupid.into_param().abi()) + linePickup(hline, dwaddressid, lphcall, lpszdestaddress.param().abi(), lpszgroupid.param().abi()) } #[inline] pub unsafe fn linePickupA(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P0, lpszgroupid: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hline, dwaddressid, lphcall, lpszdestaddress.into_param().abi(), lpszgroupid.into_param().abi()) + linePickupA(hline, dwaddressid, lphcall, lpszdestaddress.param().abi(), lpszgroupid.param().abi()) } #[inline] pub unsafe fn linePickupW(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P0, lpszgroupid: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hline, dwaddressid, lphcall, lpszdestaddress.into_param().abi(), lpszgroupid.into_param().abi()) + linePickupW(hline, dwaddressid, lphcall, lpszdestaddress.param().abi(), lpszgroupid.param().abi()) } #[inline] pub unsafe fn linePrepareAddToConference(hconfcall: u32, lphconsultcall: *mut u32, lpcallparams: *const LINECALLPARAMS) -> i32 { @@ -906,26 +906,26 @@ pub unsafe fn lineProxyResponse(hline: u32, lpproxyrequest: *mut LINEPROXYREQUES #[inline] pub unsafe fn lineRedirect(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineRedirect(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineRedirect(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineRedirect(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineRedirectA(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineRedirectA(hcall : u32, lpszdestaddress : windows_core::PCSTR, dwcountrycode : u32) -> i32); - lineRedirectA(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineRedirectA(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineRedirectW(hcall: u32, lpszdestaddress: P0, dwcountrycode: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineRedirectW(hcall : u32, lpszdestaddress : windows_core::PCWSTR, dwcountrycode : u32) -> i32); - lineRedirectW(hcall, lpszdestaddress.into_param().abi(), dwcountrycode) + lineRedirectW(hcall, lpszdestaddress.param().abi(), dwcountrycode) } #[inline] pub unsafe fn lineRegisterRequestRecipient(hlineapp: u32, dwregistrationinstance: u32, dwrequestmode: u32, benable: u32) -> i32 { @@ -945,10 +945,10 @@ pub unsafe fn lineRemoveFromConference(hcall: u32) -> i32 { #[inline] pub unsafe fn lineRemoveProvider(dwpermanentproviderid: u32, hwndowner: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineRemoveProvider(dwpermanentproviderid : u32, hwndowner : super::super::Foundation:: HWND) -> i32); - lineRemoveProvider(dwpermanentproviderid, hwndowner.into_param().abi()) + lineRemoveProvider(dwpermanentproviderid, hwndowner.param().abi()) } #[inline] pub unsafe fn lineSecureCall(hcall: u32) -> i32 { @@ -958,10 +958,10 @@ pub unsafe fn lineSecureCall(hcall: u32) -> i32 { #[inline] pub unsafe fn lineSendUserUserInfo(hcall: u32, lpsuseruserinfo: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSendUserUserInfo(hcall : u32, lpsuseruserinfo : windows_core::PCSTR, dwsize : u32) -> i32); - lineSendUserUserInfo(hcall, lpsuseruserinfo.into_param().abi(), dwsize) + lineSendUserUserInfo(hcall, lpsuseruserinfo.param().abi(), dwsize) } #[inline] pub unsafe fn lineSetAgentActivity(hline: u32, dwaddressid: u32, dwactivityid: u32) -> i32 { @@ -996,29 +996,29 @@ pub unsafe fn lineSetAgentStateEx(hline: u32, hagent: u32, dwagentstate: u32, dw #[inline] pub unsafe fn lineSetAppPriority(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpszextensionname: P1, dwpriority: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpszextensionname.into_param().abi(), dwpriority) + lineSetAppPriority(lpszappfilename.param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpszextensionname.param().abi(), dwpriority) } #[inline] pub unsafe fn lineSetAppPriorityA(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpszextensionname: P1, dwpriority: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpszextensionname.into_param().abi(), dwpriority) + lineSetAppPriorityA(lpszappfilename.param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpszextensionname.param().abi(), dwpriority) } #[inline] pub unsafe fn lineSetAppPriorityW(lpszappfilename: P0, dwmediamode: u32, lpextensionid: *mut LINEEXTENSIONID, dwrequestmode: u32, lpszextensionname: P1, dwpriority: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpszextensionname.into_param().abi(), dwpriority) + lineSetAppPriorityW(lpszappfilename.param().abi(), dwmediamode, lpextensionid, dwrequestmode, lpszextensionname.param().abi(), dwpriority) } #[inline] pub unsafe fn lineSetAppSpecific(hcall: u32, dwappspecific: u32) -> i32 { @@ -1058,26 +1058,26 @@ pub unsafe fn lineSetCurrentLocation(hlineapp: u32, dwlocation: u32) -> i32 { #[inline] pub unsafe fn lineSetDevConfig(dwdeviceid: u32, lpdeviceconfig: *const core::ffi::c_void, dwsize: u32, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpdeviceconfig, dwsize, lpszdeviceclass.into_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: P0) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpdeviceconfig, dwsize, lpszdeviceclass.into_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: P0) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpdeviceconfig, dwsize, lpszdeviceclass.into_param().abi()) + lineSetDevConfigW(dwdeviceid, lpdeviceconfig, dwsize, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn lineSetLineDevStatus(hline: u32, dwstatustochange: u32, fstatus: u32) -> i32 { @@ -1117,26 +1117,26 @@ pub unsafe fn lineSetTerminal(hline: u32, dwaddressid: u32, hcall: u32, dwselect #[inline] pub unsafe fn lineSetTollList(hlineapp: u32, dwdeviceid: u32, lpszaddressin: P0, dwtolllistoption: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetTollList(hlineapp : u32, dwdeviceid : u32, lpszaddressin : windows_core::PCSTR, dwtolllistoption : u32) -> i32); - lineSetTollList(hlineapp, dwdeviceid, lpszaddressin.into_param().abi(), dwtolllistoption) + lineSetTollList(hlineapp, dwdeviceid, lpszaddressin.param().abi(), dwtolllistoption) } #[inline] pub unsafe fn lineSetTollListA(hlineapp: u32, dwdeviceid: u32, lpszaddressin: P0, dwtolllistoption: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetTollListA(hlineapp : u32, dwdeviceid : u32, lpszaddressin : windows_core::PCSTR, dwtolllistoption : u32) -> i32); - lineSetTollListA(hlineapp, dwdeviceid, lpszaddressin.into_param().abi(), dwtolllistoption) + lineSetTollListA(hlineapp, dwdeviceid, lpszaddressin.param().abi(), dwtolllistoption) } #[inline] pub unsafe fn lineSetTollListW(hlineapp: u32, dwdeviceid: u32, lpszaddressinw: P0, dwtolllistoption: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineSetTollListW(hlineapp : u32, dwdeviceid : u32, lpszaddressinw : windows_core::PCWSTR, dwtolllistoption : u32) -> i32); - lineSetTollListW(hlineapp, dwdeviceid, lpszaddressinw.into_param().abi(), 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 { @@ -1181,53 +1181,53 @@ pub unsafe fn lineSwapHold(hactivecall: u32, hheldcall: u32) -> i32 { #[inline] pub unsafe fn lineTranslateAddress(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, lpszaddressin: P0, dwcard: u32, dwtranslateoptions: u32, lptranslateoutput: *mut LINETRANSLATEOUTPUT) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.into_param().abi(), dwcard, dwtranslateoptions, lptranslateoutput) + lineTranslateAddress(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.param().abi(), dwcard, dwtranslateoptions, lptranslateoutput) } #[inline] pub unsafe fn lineTranslateAddressA(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, lpszaddressin: P0, dwcard: u32, dwtranslateoptions: u32, lptranslateoutput: *mut LINETRANSLATEOUTPUT) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.into_param().abi(), dwcard, dwtranslateoptions, lptranslateoutput) + lineTranslateAddressA(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.param().abi(), dwcard, dwtranslateoptions, lptranslateoutput) } #[inline] pub unsafe fn lineTranslateAddressW(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, lpszaddressin: P0, dwcard: u32, dwtranslateoptions: u32, lptranslateoutput: *mut LINETRANSLATEOUTPUT) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.into_param().abi(), dwcard, dwtranslateoptions, lptranslateoutput) + lineTranslateAddressW(hlineapp, dwdeviceid, dwapiversion, lpszaddressin.param().abi(), dwcard, dwtranslateoptions, lptranslateoutput) } #[inline] pub unsafe fn lineTranslateDialog(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, hwndowner: P0, lpszaddressin: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hlineapp, dwdeviceid, dwapiversion, hwndowner.into_param().abi(), lpszaddressin.into_param().abi()) + lineTranslateDialog(hlineapp, dwdeviceid, dwapiversion, hwndowner.param().abi(), lpszaddressin.param().abi()) } #[inline] pub unsafe fn lineTranslateDialogA(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, hwndowner: P0, lpszaddressin: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hlineapp, dwdeviceid, dwapiversion, hwndowner.into_param().abi(), lpszaddressin.into_param().abi()) + lineTranslateDialogA(hlineapp, dwdeviceid, dwapiversion, hwndowner.param().abi(), lpszaddressin.param().abi()) } #[inline] pub unsafe fn lineTranslateDialogW(hlineapp: u32, dwdeviceid: u32, dwapiversion: u32, hwndowner: P0, lpszaddressin: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hlineapp, dwdeviceid, dwapiversion, hwndowner.into_param().abi(), lpszaddressin.into_param().abi()) + lineTranslateDialogW(hlineapp, dwdeviceid, dwapiversion, hwndowner.param().abi(), lpszaddressin.param().abi()) } #[inline] pub unsafe fn lineUncompleteCall(hline: u32, dwcompletionid: u32) -> i32 { @@ -1242,26 +1242,26 @@ pub unsafe fn lineUnhold(hcall: u32) -> i32 { #[inline] pub unsafe fn lineUnpark(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineUnpark(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR) -> i32); - lineUnpark(hline, dwaddressid, lphcall, lpszdestaddress.into_param().abi()) + lineUnpark(hline, dwaddressid, lphcall, lpszdestaddress.param().abi()) } #[inline] pub unsafe fn lineUnparkA(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineUnparkA(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCSTR) -> i32); - lineUnparkA(hline, dwaddressid, lphcall, lpszdestaddress.into_param().abi()) + lineUnparkA(hline, dwaddressid, lphcall, lpszdestaddress.param().abi()) } #[inline] pub unsafe fn lineUnparkW(hline: u32, dwaddressid: u32, lphcall: *mut u32, lpszdestaddress: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn lineUnparkW(hline : u32, dwaddressid : u32, lphcall : *mut u32, lpszdestaddress : windows_core::PCWSTR) -> i32); - lineUnparkW(hline, dwaddressid, lphcall, lpszdestaddress.into_param().abi()) + lineUnparkW(hline, dwaddressid, lphcall, lpszdestaddress.param().abi()) } #[inline] pub unsafe fn phoneClose(hphone: u32) -> i32 { @@ -1271,29 +1271,29 @@ pub unsafe fn phoneClose(hphone: u32) -> i32 { #[inline] pub unsafe fn phoneConfigDialog(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneConfigDialog(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneConfigDialog(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi()) + phoneConfigDialog(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneConfigDialogA(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneConfigDialogA(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneConfigDialogA(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi()) + phoneConfigDialogA(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneConfigDialogW(dwdeviceid: u32, hwndowner: P0, lpszdeviceclass: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneConfigDialogW(dwdeviceid : u32, hwndowner : super::super::Foundation:: HWND, lpszdeviceclass : windows_core::PCWSTR) -> i32); - phoneConfigDialogW(dwdeviceid, hwndowner.into_param().abi(), lpszdeviceclass.into_param().abi()) + phoneConfigDialogW(dwdeviceid, hwndowner.param().abi(), lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneDevSpecific(hphone: u32, lpparams: *mut core::ffi::c_void, dwsize: u32) -> i32 { @@ -1353,53 +1353,53 @@ pub unsafe fn phoneGetHookSwitch(hphone: u32, lpdwhookswitchdevs: *mut u32) -> i #[inline] pub unsafe fn phoneGetID(hphone: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetID(hphone : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneGetID(hphone, lpdeviceid, lpszdeviceclass.into_param().abi()) + phoneGetID(hphone, lpdeviceid, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneGetIDA(hphone: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetIDA(hphone : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCSTR) -> i32); - phoneGetIDA(hphone, lpdeviceid, lpszdeviceclass.into_param().abi()) + phoneGetIDA(hphone, lpdeviceid, lpszdeviceclass.param().abi()) } #[inline] pub unsafe fn phoneGetIDW(hphone: u32, lpdeviceid: *mut VARSTRING, lpszdeviceclass: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn phoneGetIDW(hphone : u32, lpdeviceid : *mut VARSTRING, lpszdeviceclass : windows_core::PCWSTR) -> i32); - phoneGetIDW(hphone, lpdeviceid, lpszdeviceclass.into_param().abi()) + phoneGetIDW(hphone, lpdeviceid, lpszdeviceclass.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn phoneGetIcon(dwdeviceid: u32, lpszdeviceclass: P0, lphicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpszdeviceclass.into_param().abi(), lphicon) + phoneGetIcon(dwdeviceid, lpszdeviceclass.param().abi(), lphicon) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn phoneGetIconA(dwdeviceid: u32, lpszdeviceclass: P0, lphicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpszdeviceclass.into_param().abi(), lphicon) + phoneGetIconA(dwdeviceid, lpszdeviceclass.param().abi(), lphicon) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn phoneGetIconW(dwdeviceid: u32, lpszdeviceclass: P0, lphicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwdeviceid, lpszdeviceclass.into_param().abi(), lphicon) + phoneGetIconW(dwdeviceid, lpszdeviceclass.param().abi(), lphicon) } #[inline] pub unsafe fn phoneGetLamp(hphone: u32, dwbuttonlampid: u32, lpdwlampmode: *mut u32) -> i32 { @@ -1444,29 +1444,29 @@ pub unsafe fn phoneGetVolume(hphone: u32, dwhookswitchdev: u32, lpdwvolume: *mut #[inline] pub unsafe fn phoneInitialize(lphphoneapp: *mut u32, hinstance: P0, lpfncallback: PHONECALLBACK, lpszappname: P1, lpdwnumdevs: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lphphoneapp, hinstance.into_param().abi(), lpfncallback, lpszappname.into_param().abi(), lpdwnumdevs) + phoneInitialize(lphphoneapp, hinstance.param().abi(), lpfncallback, lpszappname.param().abi(), lpdwnumdevs) } #[inline] pub unsafe fn phoneInitializeExA(lphphoneapp: *mut u32, hinstance: P0, lpfncallback: PHONECALLBACK, lpszfriendlyappname: P1, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lpphoneinitializeexparams: *mut PHONEINITIALIZEEXPARAMS) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lphphoneapp, hinstance.into_param().abi(), lpfncallback, lpszfriendlyappname.into_param().abi(), lpdwnumdevs, lpdwapiversion, lpphoneinitializeexparams) + phoneInitializeExA(lphphoneapp, hinstance.param().abi(), lpfncallback, lpszfriendlyappname.param().abi(), lpdwnumdevs, lpdwapiversion, lpphoneinitializeexparams) } #[inline] pub unsafe fn phoneInitializeExW(lphphoneapp: *mut u32, hinstance: P0, lpfncallback: PHONECALLBACK, lpszfriendlyappname: P1, lpdwnumdevs: *mut u32, lpdwapiversion: *mut u32, lpphoneinitializeexparams: *mut PHONEINITIALIZEEXPARAMS) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lphphoneapp, hinstance.into_param().abi(), lpfncallback, lpszfriendlyappname.into_param().abi(), lpdwnumdevs, lpdwapiversion, lpphoneinitializeexparams) + phoneInitializeExW(lphphoneapp, hinstance.param().abi(), lpfncallback, lpszfriendlyappname.param().abi(), lpdwnumdevs, lpdwapiversion, lpphoneinitializeexparams) } #[inline] pub unsafe fn phoneNegotiateAPIVersion(hphoneapp: u32, dwdeviceid: u32, dwapilowversion: u32, dwapihighversion: u32, lpdwapiversion: *mut u32, lpextensionid: *mut PHONEEXTENSIONID) -> i32 { @@ -1506,10 +1506,10 @@ pub unsafe fn phoneSetData(hphone: u32, dwdataid: u32, lpdata: *const core::ffi: #[inline] pub unsafe fn phoneSetDisplay(hphone: u32, dwrow: u32, dwcolumn: u32, lpsdisplay: P0, dwsize: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hphone, dwrow, dwcolumn, lpsdisplay.into_param().abi(), dwsize) + phoneSetDisplay(hphone, dwrow, dwcolumn, lpsdisplay.param().abi(), dwsize) } #[inline] pub unsafe fn phoneSetGain(hphone: u32, dwhookswitchdev: u32, dwgain: u32) -> i32 { @@ -1564,89 +1564,89 @@ pub unsafe fn tapiGetLocationInfoW(lpszcountrycodew: &mut [u16; 8], lpszcitycode #[inline] pub unsafe fn tapiRequestDrop(hwnd: P0, wrequestid: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn tapiRequestDrop(hwnd : super::super::Foundation:: HWND, wrequestid : super::super::Foundation:: WPARAM) -> i32); - tapiRequestDrop(hwnd.into_param().abi(), wrequestid.into_param().abi()) + tapiRequestDrop(hwnd.param().abi(), wrequestid.param().abi()) } #[inline] pub unsafe fn tapiRequestMakeCall(lpszdestaddress: P0, lpszappname: P1, lpszcalledparty: P2, lpszcomment: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn tapiRequestMakeCall(lpszdestaddress : windows_core::PCSTR, lpszappname : windows_core::PCSTR, lpszcalledparty : windows_core::PCSTR, lpszcomment : windows_core::PCSTR) -> i32); - tapiRequestMakeCall(lpszdestaddress.into_param().abi(), lpszappname.into_param().abi(), lpszcalledparty.into_param().abi(), lpszcomment.into_param().abi()) + tapiRequestMakeCall(lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) } #[inline] pub unsafe fn tapiRequestMakeCallA(lpszdestaddress: P0, lpszappname: P1, lpszcalledparty: P2, lpszcomment: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn tapiRequestMakeCallA(lpszdestaddress : windows_core::PCSTR, lpszappname : windows_core::PCSTR, lpszcalledparty : windows_core::PCSTR, lpszcomment : windows_core::PCSTR) -> i32); - tapiRequestMakeCallA(lpszdestaddress.into_param().abi(), lpszappname.into_param().abi(), lpszcalledparty.into_param().abi(), lpszcomment.into_param().abi()) + tapiRequestMakeCallA(lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) } #[inline] pub unsafe fn tapiRequestMakeCallW(lpszdestaddress: P0, lpszappname: P1, lpszcalledparty: P2, lpszcomment: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("tapi32.dll" "system" fn tapiRequestMakeCallW(lpszdestaddress : windows_core::PCWSTR, lpszappname : windows_core::PCWSTR, lpszcalledparty : windows_core::PCWSTR, lpszcomment : windows_core::PCWSTR) -> i32); - tapiRequestMakeCallW(lpszdestaddress.into_param().abi(), lpszappname.into_param().abi(), lpszcalledparty.into_param().abi(), lpszcomment.into_param().abi()) + tapiRequestMakeCallW(lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) } #[inline] pub unsafe fn tapiRequestMediaCall(hwnd: P0, wrequestid: P1, lpszdeviceclass: P2, lpdeviceid: P3, dwsize: u32, dwsecure: u32, lpszdestaddress: P4, lpszappname: P5, lpszcalledparty: P6, lpszcomment: P7) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: 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(hwnd.into_param().abi(), wrequestid.into_param().abi(), lpszdeviceclass.into_param().abi(), lpdeviceid.into_param().abi(), dwsize, dwsecure, lpszdestaddress.into_param().abi(), lpszappname.into_param().abi(), lpszcalledparty.into_param().abi(), lpszcomment.into_param().abi()) + tapiRequestMediaCall(hwnd.param().abi(), wrequestid.param().abi(), 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: P0, wrequestid: P1, lpszdeviceclass: P2, lpdeviceid: P3, dwsize: u32, dwsecure: u32, lpszdestaddress: P4, lpszappname: P5, lpszcalledparty: P6, lpszcomment: P7) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: 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(hwnd.into_param().abi(), wrequestid.into_param().abi(), lpszdeviceclass.into_param().abi(), lpdeviceid.into_param().abi(), dwsize, dwsecure, lpszdestaddress.into_param().abi(), lpszappname.into_param().abi(), lpszcalledparty.into_param().abi(), lpszcomment.into_param().abi()) + tapiRequestMediaCallA(hwnd.param().abi(), wrequestid.param().abi(), 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: P0, wrequestid: P1, lpszdeviceclass: P2, lpdeviceid: P3, dwsize: u32, dwsecure: u32, lpszdestaddress: P4, lpszappname: P5, lpszcalledparty: P6, lpszcomment: P7) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: 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(hwnd.into_param().abi(), wrequestid.into_param().abi(), lpszdeviceclass.into_param().abi(), lpdeviceid.into_param().abi(), dwsize, dwsecure, lpszdestaddress.into_param().abi(), lpszappname.into_param().abi(), lpszcalledparty.into_param().abi(), lpszcomment.into_param().abi()) + tapiRequestMediaCallW(hwnd.param().abi(), wrequestid.param().abi(), lpszdeviceclass.param().abi(), lpdeviceid.param().abi(), dwsize, dwsecure, lpszdestaddress.param().abi(), lpszappname.param().abi(), lpszcalledparty.param().abi(), lpszcomment.param().abi()) } windows_core::imp::define_interface!(IEnumACDGroup, IEnumACDGroup_Vtbl, 0x5afc3157_4bcc_11d1_bf80_00805fc147d3); windows_core::imp::interface_hierarchy!(IEnumACDGroup, windows_core::IUnknown); @@ -2291,44 +2291,44 @@ impl IMcastAddressAllocation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RequestAddress(&self, pscope: P0, leasestarttime: f64, leasestoptime: f64, numaddresses: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestAddress)(windows_core::Interface::as_raw(self), pscope.into_param().abi(), leasestarttime, leasestoptime, 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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RenewAddress(&self, lreserved: i32, prenewrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RenewAddress)(windows_core::Interface::as_raw(self), lreserved, prenewrequest.into_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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReleaseAddress(&self, preleaserequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseAddress)(windows_core::Interface::as_raw(self), preleaserequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseAddress)(windows_core::Interface::as_raw(self), preleaserequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateLeaseInfo(&self, leasestarttime: f64, leasestoptime: f64, dwnumaddresses: u32, ppaddresses: *const windows_core::PCWSTR, prequestid: P0, pserveraddress: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLeaseInfo)(windows_core::Interface::as_raw(self), leasestarttime, leasestoptime, dwnumaddresses, ppaddresses, prequestid.into_param().abi(), pserveraddress.into_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(feature = "Win32_System_Com")] pub unsafe fn CreateLeaseInfoFromVariant(&self, leasestarttime: f64, leasestoptime: f64, vaddresses: P0, prequestid: P1, pserveraddress: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLeaseInfoFromVariant)(windows_core::Interface::as_raw(self), leasestarttime, leasestoptime, vaddresses.into_param().abi(), prequestid.into_param().abi(), pserveraddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLeaseInfoFromVariant)(windows_core::Interface::as_raw(self), leasestarttime, leasestoptime, vaddresses.param().abi(), prequestid.param().abi(), pserveraddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2594,10 +2594,10 @@ impl ITAddress { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateCall(&self, pdestaddress: P0, laddresstype: i32, lmediatypes: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCall)(windows_core::Interface::as_raw(self), pdestaddress.into_param().abi(), laddresstype, lmediatypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCall)(windows_core::Interface::as_raw(self), pdestaddress.param().abi(), laddresstype, lmediatypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Calls(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2619,10 +2619,10 @@ impl ITAddress { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Forward(&self, pforwardinfo: P0, pcall: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Forward)(windows_core::Interface::as_raw(self), pforwardinfo.into_param().abi(), pcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Forward)(windows_core::Interface::as_raw(self), pforwardinfo.param().abi(), pcall.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CurrentForwardInfo(&self) -> windows_core::Result { @@ -2631,9 +2631,9 @@ impl ITAddress { } pub unsafe fn SetMessageWaiting(&self, fmessagewaiting: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMessageWaiting)(windows_core::Interface::as_raw(self), fmessagewaiting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMessageWaiting)(windows_core::Interface::as_raw(self), fmessagewaiting.param().abi()).ok() } pub unsafe fn MessageWaiting(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2641,9 +2641,9 @@ impl ITAddress { } pub unsafe fn SetDoNotDisturb(&self, fdonotdisturb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDoNotDisturb)(windows_core::Interface::as_raw(self), fdonotdisturb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDoNotDisturb)(windows_core::Interface::as_raw(self), fdonotdisturb.param().abi()).ok() } pub unsafe fn DoNotDisturb(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2711,10 +2711,10 @@ impl ITAddress2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateCall(&self, pdestaddress: P0, laddresstype: i32, lmediatypes: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateCall)(windows_core::Interface::as_raw(self), pdestaddress.into_param().abi(), laddresstype, lmediatypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateCall)(windows_core::Interface::as_raw(self), pdestaddress.param().abi(), laddresstype, lmediatypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Calls(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2736,10 +2736,10 @@ impl ITAddress2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Forward(&self, pforwardinfo: P0, pcall: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Forward)(windows_core::Interface::as_raw(self), pforwardinfo.into_param().abi(), pcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Forward)(windows_core::Interface::as_raw(self), pforwardinfo.param().abi(), pcall.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CurrentForwardInfo(&self) -> windows_core::Result { @@ -2748,9 +2748,9 @@ impl ITAddress2 { } pub unsafe fn SetMessageWaiting(&self, fmessagewaiting: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMessageWaiting)(windows_core::Interface::as_raw(self), fmessagewaiting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMessageWaiting)(windows_core::Interface::as_raw(self), fmessagewaiting.param().abi()).ok() } pub unsafe fn MessageWaiting(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2758,9 +2758,9 @@ impl ITAddress2 { } pub unsafe fn SetDoNotDisturb(&self, fdonotdisturb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDoNotDisturb)(windows_core::Interface::as_raw(self), fdonotdisturb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDoNotDisturb)(windows_core::Interface::as_raw(self), fdonotdisturb.param().abi()).ok() } pub unsafe fn DoNotDisturb(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2777,10 +2777,10 @@ impl ITAddress2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPhoneFromTerminal(&self, pterminal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPhoneFromTerminal)(windows_core::Interface::as_raw(self), pterminal.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPhoneFromTerminal)(windows_core::Interface::as_raw(self), pterminal.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PreferredPhones(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2796,24 +2796,24 @@ impl ITAddress2 { } pub unsafe fn put_EventFilter(&self, tapievent: TAPI_EVENT, lsubevent: i32, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, benable.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeviceSpecific(&self, pcall: P0, pparams: *const u8, dwsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceSpecific)(windows_core::Interface::as_raw(self), pcall.into_param().abi(), pparams, dwsize).ok() + (windows_core::Interface::vtable(self).DeviceSpecific)(windows_core::Interface::as_raw(self), pcall.param().abi(), pparams, dwsize).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeviceSpecificVariant(&self, pcall: P0, vardevspecificbytearray: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceSpecificVariant)(windows_core::Interface::as_raw(self), pcall.into_param().abi(), vardevspecificbytearray.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeviceSpecificVariant)(windows_core::Interface::as_raw(self), pcall.param().abi(), vardevspecificbytearray.param().abi()).ok() } pub unsafe fn NegotiateExtVersion(&self, llowversion: i32, lhighversion: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2985,16 +2985,16 @@ impl ITAddressTranslation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn TranslateAddress(&self, paddresstotranslate: P0, lcard: i32, ltranslateoptions: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TranslateAddress)(windows_core::Interface::as_raw(self), paddresstotranslate.into_param().abi(), lcard, ltranslateoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TranslateAddress)(windows_core::Interface::as_raw(self), paddresstotranslate.param().abi(), lcard, ltranslateoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TranslateDialog(&self, hwndowner: isize, paddressin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TranslateDialog)(windows_core::Interface::as_raw(self), hwndowner, paddressin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TranslateDialog)(windows_core::Interface::as_raw(self), hwndowner, paddressin.param().abi()).ok() } pub unsafe fn EnumerateLocations(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3077,21 +3077,21 @@ impl ITAgent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSession(&self, pacdgroup: P0, paddress: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), pacdgroup.into_param().abi(), paddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), pacdgroup.param().abi(), paddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSessionWithPIN(&self, pacdgroup: P0, paddress: P1, ppin: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSessionWithPIN)(windows_core::Interface::as_raw(self), pacdgroup.into_param().abi(), paddress.into_param().abi(), ppin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSessionWithPIN)(windows_core::Interface::as_raw(self), pacdgroup.param().abi(), paddress.param().abi(), ppin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3224,11 +3224,11 @@ impl ITAgentHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAgentWithID(&self, pid: P0, ppin: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAgentWithID)(windows_core::Interface::as_raw(self), pid.into_param().abi(), ppin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAgentWithID)(windows_core::Interface::as_raw(self), pid.param().abi(), ppin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateACDGroups(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3443,9 +3443,9 @@ impl ITAllocatorProperties { } pub unsafe fn SetAllocateBuffers(&self, ballocbuffers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateBuffers)(windows_core::Interface::as_raw(self), ballocbuffers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllocateBuffers)(windows_core::Interface::as_raw(self), ballocbuffers.param().abi()).ok() } pub unsafe fn GetAllocateBuffers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3503,9 +3503,9 @@ impl ITAutomatedPhoneControl { } pub unsafe fn SetPhoneHandlingEnabled(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPhoneHandlingEnabled)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPhoneHandlingEnabled)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn PhoneHandlingEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3520,9 +3520,9 @@ impl ITAutomatedPhoneControl { } pub unsafe fn SetAutoDialtone(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoDialtone)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoDialtone)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn AutoDialtone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3530,9 +3530,9 @@ impl ITAutomatedPhoneControl { } pub unsafe fn SetAutoStopTonesOnOnHook(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoStopTonesOnOnHook)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoStopTonesOnOnHook)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn AutoStopTonesOnOnHook(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3540,9 +3540,9 @@ impl ITAutomatedPhoneControl { } pub unsafe fn SetAutoStopRingOnOffHook(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoStopRingOnOffHook)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoStopRingOnOffHook)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn AutoStopRingOnOffHook(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3550,9 +3550,9 @@ impl ITAutomatedPhoneControl { } pub unsafe fn SetAutoKeypadTones(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoKeypadTones)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoKeypadTones)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn AutoKeypadTones(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3567,9 +3567,9 @@ impl ITAutomatedPhoneControl { } pub unsafe fn SetAutoVolumeControl(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoVolumeControl)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoVolumeControl)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn AutoVolumeControl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3599,17 +3599,17 @@ impl ITAutomatedPhoneControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectCall(&self, pcall: P0, fselectdefaultterminals: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectCall)(windows_core::Interface::as_raw(self), pcall.into_param().abi(), fselectdefaultterminals.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectCall)(windows_core::Interface::as_raw(self), pcall.param().abi(), fselectdefaultterminals.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UnselectCall(&self, pcall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnselectCall)(windows_core::Interface::as_raw(self), pcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnselectCall)(windows_core::Interface::as_raw(self), pcall.param().abi()).ok() } pub unsafe fn EnumerateSelectedCalls(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3701,9 +3701,9 @@ windows_core::imp::interface_hierarchy!(ITBasicCallControl, windows_core::IUnkno impl ITBasicCallControl { pub unsafe fn Connect(&self, fsync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), fsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), fsync.param().abi()).ok() } pub unsafe fn Answer(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Answer)(windows_core::Interface::as_raw(self)).ok() @@ -3713,15 +3713,15 @@ impl ITBasicCallControl { } pub unsafe fn Hold(&self, fhold: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Hold)(windows_core::Interface::as_raw(self), fhold.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Hold)(windows_core::Interface::as_raw(self), fhold.param().abi()).ok() } pub unsafe fn HandoffDirect(&self, papplicationname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandoffDirect)(windows_core::Interface::as_raw(self), papplicationname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandoffDirect)(windows_core::Interface::as_raw(self), papplicationname.param().abi()).ok() } pub unsafe fn HandoffIndirect(&self, lmediatype: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HandoffIndirect)(windows_core::Interface::as_raw(self), lmediatype).ok() @@ -3729,37 +3729,37 @@ impl ITBasicCallControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Conference(&self, pcall: P0, fsync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Conference)(windows_core::Interface::as_raw(self), pcall.into_param().abi(), fsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Conference)(windows_core::Interface::as_raw(self), pcall.param().abi(), fsync.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Transfer(&self, pcall: P0, fsync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Transfer)(windows_core::Interface::as_raw(self), pcall.into_param().abi(), fsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Transfer)(windows_core::Interface::as_raw(self), pcall.param().abi(), fsync.param().abi()).ok() } pub unsafe fn BlindTransfer(&self, pdestaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlindTransfer)(windows_core::Interface::as_raw(self), pdestaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BlindTransfer)(windows_core::Interface::as_raw(self), pdestaddress.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SwapHold(&self, pcall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SwapHold)(windows_core::Interface::as_raw(self), pcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SwapHold)(windows_core::Interface::as_raw(self), pcall.param().abi()).ok() } pub unsafe fn ParkDirect(&self, pparkaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParkDirect)(windows_core::Interface::as_raw(self), pparkaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ParkDirect)(windows_core::Interface::as_raw(self), pparkaddress.param().abi()).ok() } pub unsafe fn ParkIndirect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3773,15 +3773,15 @@ impl ITBasicCallControl { } pub unsafe fn Pickup(&self, pgroupid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Pickup)(windows_core::Interface::as_raw(self), pgroupid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Pickup)(windows_core::Interface::as_raw(self), pgroupid.param().abi()).ok() } pub unsafe fn Dial(&self, pdestaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Dial)(windows_core::Interface::as_raw(self), pdestaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Dial)(windows_core::Interface::as_raw(self), pdestaddress.param().abi()).ok() } pub unsafe fn Finish(&self, finishmode: FINISH_MODE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish)(windows_core::Interface::as_raw(self), finishmode).ok() @@ -3830,9 +3830,9 @@ windows_core::imp::interface_hierarchy!(ITBasicCallControl2, windows_core::IUnkn impl ITBasicCallControl2 { pub unsafe fn Connect(&self, fsync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), fsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), fsync.param().abi()).ok() } pub unsafe fn Answer(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Answer)(windows_core::Interface::as_raw(self)).ok() @@ -3842,15 +3842,15 @@ impl ITBasicCallControl2 { } pub unsafe fn Hold(&self, fhold: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Hold)(windows_core::Interface::as_raw(self), fhold.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Hold)(windows_core::Interface::as_raw(self), fhold.param().abi()).ok() } pub unsafe fn HandoffDirect(&self, papplicationname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.HandoffDirect)(windows_core::Interface::as_raw(self), papplicationname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.HandoffDirect)(windows_core::Interface::as_raw(self), papplicationname.param().abi()).ok() } pub unsafe fn HandoffIndirect(&self, lmediatype: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.HandoffIndirect)(windows_core::Interface::as_raw(self), lmediatype).ok() @@ -3858,37 +3858,37 @@ impl ITBasicCallControl2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Conference(&self, pcall: P0, fsync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Conference)(windows_core::Interface::as_raw(self), pcall.into_param().abi(), fsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Conference)(windows_core::Interface::as_raw(self), pcall.param().abi(), fsync.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Transfer(&self, pcall: P0, fsync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Transfer)(windows_core::Interface::as_raw(self), pcall.into_param().abi(), fsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Transfer)(windows_core::Interface::as_raw(self), pcall.param().abi(), fsync.param().abi()).ok() } pub unsafe fn BlindTransfer(&self, pdestaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BlindTransfer)(windows_core::Interface::as_raw(self), pdestaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BlindTransfer)(windows_core::Interface::as_raw(self), pdestaddress.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SwapHold(&self, pcall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SwapHold)(windows_core::Interface::as_raw(self), pcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SwapHold)(windows_core::Interface::as_raw(self), pcall.param().abi()).ok() } pub unsafe fn ParkDirect(&self, pparkaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ParkDirect)(windows_core::Interface::as_raw(self), pparkaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ParkDirect)(windows_core::Interface::as_raw(self), pparkaddress.param().abi()).ok() } pub unsafe fn ParkIndirect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3902,15 +3902,15 @@ impl ITBasicCallControl2 { } pub unsafe fn Pickup(&self, pgroupid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Pickup)(windows_core::Interface::as_raw(self), pgroupid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Pickup)(windows_core::Interface::as_raw(self), pgroupid.param().abi()).ok() } pub unsafe fn Dial(&self, pdestaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Dial)(windows_core::Interface::as_raw(self), pdestaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Dial)(windows_core::Interface::as_raw(self), pdestaddress.param().abi()).ok() } pub unsafe fn Finish(&self, finishmode: FINISH_MODE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Finish)(windows_core::Interface::as_raw(self), finishmode).ok() @@ -3921,24 +3921,24 @@ impl ITBasicCallControl2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RequestTerminal(&self, bstrterminalclassguid: P0, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestTerminal)(windows_core::Interface::as_raw(self), bstrterminalclassguid.into_param().abi(), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RequestTerminal)(windows_core::Interface::as_raw(self), bstrterminalclassguid.param().abi(), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectTerminalOnCall(&self, pterminal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectTerminalOnCall)(windows_core::Interface::as_raw(self), pterminal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectTerminalOnCall)(windows_core::Interface::as_raw(self), pterminal.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UnselectTerminalOnCall(&self, pterminal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnselectTerminalOnCall)(windows_core::Interface::as_raw(self), pterminal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnselectTerminalOnCall)(windows_core::Interface::as_raw(self), pterminal.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4066,9 +4066,9 @@ impl ITCallInfo { } pub unsafe fn put_CallInfoString(&self, callinfostring: CALLINFO_STRING, pcallinfostring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_CallInfoString)(windows_core::Interface::as_raw(self), callinfostring, pcallinfostring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_CallInfoString)(windows_core::Interface::as_raw(self), callinfostring, pcallinfostring.param().abi()).ok() } pub unsafe fn get_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4076,9 +4076,9 @@ impl ITCallInfo { } pub unsafe fn put_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pcallinfobuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_CallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, pcallinfobuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_CallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, pcallinfobuffer.param().abi()).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), callinfobuffer, pdwsize, ppcallinfobuffer).ok() @@ -4151,9 +4151,9 @@ impl ITCallInfo2 { } pub unsafe fn put_CallInfoString(&self, callinfostring: CALLINFO_STRING, pcallinfostring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_CallInfoString)(windows_core::Interface::as_raw(self), callinfostring, pcallinfostring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_CallInfoString)(windows_core::Interface::as_raw(self), callinfostring, pcallinfostring.param().abi()).ok() } pub unsafe fn get_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4161,9 +4161,9 @@ impl ITCallInfo2 { } pub unsafe fn put_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pcallinfobuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_CallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, pcallinfobuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_CallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, pcallinfobuffer.param().abi()).ok() } pub unsafe fn GetCallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pdwsize: *mut u32, ppcallinfobuffer: *mut *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetCallInfoBuffer)(windows_core::Interface::as_raw(self), callinfobuffer, pdwsize, ppcallinfobuffer).ok() @@ -4180,9 +4180,9 @@ impl ITCallInfo2 { } pub unsafe fn put_EventFilter(&self, tapievent: TAPI_EVENT, lsubevent: i32, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_EventFilter)(windows_core::Interface::as_raw(self), tapievent, lsubevent, benable.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4682,65 +4682,65 @@ impl ITDirectory { } pub unsafe fn EnableAutoRefresh(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableAutoRefresh)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableAutoRefresh)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn Connect(&self, fsecure: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), fsecure.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), fsecure.param().abi()).ok() } pub unsafe fn Bind(&self, pdomainname: P0, pusername: P1, ppassword: P2, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), pdomainname.into_param().abi(), pusername.into_param().abi(), ppassword.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), pdomainname.param().abi(), pusername.param().abi(), ppassword.param().abi(), lflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddDirectoryObject(&self, pdirectoryobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ModifyDirectoryObject(&self, pdirectoryobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifyDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ModifyDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RefreshDirectoryObject(&self, pdirectoryobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RefreshDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RefreshDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteDirectoryObject(&self, pdirectoryobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteDirectoryObject)(windows_core::Interface::as_raw(self), pdirectoryobject.param().abi()).ok() } pub unsafe fn get_DirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_DirectoryObjects)(windows_core::Interface::as_raw(self), directoryobjecttype, pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_DirectoryObjects)(windows_core::Interface::as_raw(self), directoryobjecttype, pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateDirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateDirectoryObjects)(windows_core::Interface::as_raw(self), directoryobjecttype, pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateDirectoryObjects)(windows_core::Interface::as_raw(self), directoryobjecttype, pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4790,9 +4790,9 @@ impl ITDirectoryObject { } pub unsafe fn SetName(&self, pname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pname.param().abi()).ok() } pub unsafe fn get_DialableAddrs(&self, dwaddresstype: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4810,9 +4810,9 @@ impl ITDirectoryObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor(&self, psecdes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), psecdes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), psecdes.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4849,9 +4849,9 @@ impl ITDirectoryObjectConference { } pub unsafe fn SetOriginator(&self, poriginator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOriginator)(windows_core::Interface::as_raw(self), poriginator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOriginator)(windows_core::Interface::as_raw(self), poriginator.param().abi()).ok() } pub unsafe fn AdvertisingScope(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4866,9 +4866,9 @@ impl ITDirectoryObjectConference { } pub unsafe fn SetUrl(&self, purl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), purl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), purl.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4876,9 +4876,9 @@ impl ITDirectoryObjectConference { } pub unsafe fn SetDescription(&self, pdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pdescription.param().abi()).ok() } pub unsafe fn IsEncrypted(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4886,9 +4886,9 @@ impl ITDirectoryObjectConference { } pub unsafe fn SetIsEncrypted(&self, fencrypted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsEncrypted)(windows_core::Interface::as_raw(self), fencrypted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsEncrypted)(windows_core::Interface::as_raw(self), fencrypted.param().abi()).ok() } pub unsafe fn StartTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4937,9 +4937,9 @@ impl ITDirectoryObjectUser { } pub unsafe fn SetIPPhonePrimary(&self, pname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIPPhonePrimary)(windows_core::Interface::as_raw(self), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIPPhonePrimary)(windows_core::Interface::as_raw(self), pname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4958,11 +4958,11 @@ impl ITDispatchMapper { #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDispatchInterface(&self, piid: P0, pinterfacetomap: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryDispatchInterface)(windows_core::Interface::as_raw(self), piid.into_param().abi(), pinterfacetomap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryDispatchInterface)(windows_core::Interface::as_raw(self), piid.param().abi(), pinterfacetomap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5056,9 +5056,9 @@ impl ITFileTrack { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAudioFormatForScripting(&self, paudioformat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioFormatForScripting)(windows_core::Interface::as_raw(self), paudioformat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioFormatForScripting)(windows_core::Interface::as_raw(self), paudioformat.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EmptyAudioFormatForScripting(&self) -> windows_core::Result { @@ -5110,10 +5110,10 @@ impl ITForwardInformation { } pub unsafe fn SetForwardType(&self, forwardtype: i32, pdestaddress: P0, pcalleraddress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetForwardType)(windows_core::Interface::as_raw(self), forwardtype, pdestaddress.into_param().abi(), pcalleraddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetForwardType)(windows_core::Interface::as_raw(self), forwardtype, pdestaddress.param().abi(), pcalleraddress.param().abi()).ok() } pub unsafe fn get_ForwardTypeDestination(&self, forwardtype: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5157,10 +5157,10 @@ impl ITForwardInformation2 { } pub unsafe fn SetForwardType(&self, forwardtype: i32, pdestaddress: P0, pcalleraddress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetForwardType)(windows_core::Interface::as_raw(self), forwardtype, pdestaddress.into_param().abi(), pcalleraddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetForwardType)(windows_core::Interface::as_raw(self), forwardtype, pdestaddress.param().abi(), pcalleraddress.param().abi()).ok() } pub unsafe fn get_ForwardTypeDestination(&self, forwardtype: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5178,10 +5178,10 @@ impl ITForwardInformation2 { } pub unsafe fn SetForwardType2(&self, forwardtype: i32, pdestaddress: P0, destaddresstype: i32, pcalleraddress: P1, calleraddresstype: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetForwardType2)(windows_core::Interface::as_raw(self), forwardtype, pdestaddress.into_param().abi(), destaddresstype, pcalleraddress.into_param().abi(), calleraddresstype).ok() + (windows_core::Interface::vtable(self).SetForwardType2)(windows_core::Interface::as_raw(self), forwardtype, pdestaddress.param().abi(), destaddresstype, pcalleraddress.param().abi(), 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), forwardtype, core::mem::transmute(ppdestinationaddress), pdestaddresstype, core::mem::transmute(ppcalleraddress), pcalleraddresstype).ok() @@ -5230,21 +5230,21 @@ windows_core::imp::interface_hierarchy!(ITLegacyAddressMediaControl, windows_cor impl ITLegacyAddressMediaControl { pub unsafe fn GetID(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetID)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdwsize, ppdeviceid).ok() + (windows_core::Interface::vtable(self).GetID)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdwsize, ppdeviceid).ok() } pub unsafe fn GetDevConfig(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdwsize, ppdeviceconfig).ok() + (windows_core::Interface::vtable(self).GetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdwsize, ppdeviceconfig).ok() } pub unsafe fn SetDevConfig(&self, pdeviceclass: P0, pdeviceconfig: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdeviceconfig.len().try_into().unwrap(), core::mem::transmute(pdeviceconfig.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdeviceconfig.len().try_into().unwrap(), core::mem::transmute(pdeviceconfig.as_ptr())).ok() } } #[repr(C)] @@ -5259,35 +5259,35 @@ windows_core::imp::interface_hierarchy!(ITLegacyAddressMediaControl2, windows_co impl ITLegacyAddressMediaControl2 { pub unsafe fn GetID(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetID)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdwsize, ppdeviceid).ok() + (windows_core::Interface::vtable(self).base__.GetID)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdwsize, ppdeviceid).ok() } pub unsafe fn GetDevConfig(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdwsize, ppdeviceconfig).ok() + (windows_core::Interface::vtable(self).base__.GetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdwsize, ppdeviceconfig).ok() } pub unsafe fn SetDevConfig(&self, pdeviceclass: P0, pdeviceconfig: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdeviceconfig.len().try_into().unwrap(), core::mem::transmute(pdeviceconfig.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.SetDevConfig)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdeviceconfig.len().try_into().unwrap(), core::mem::transmute(pdeviceconfig.as_ptr())).ok() } pub unsafe fn ConfigDialog(&self, hwndowner: P0, pdeviceclass: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigDialog)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi(), pdeviceclass.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConfigDialog)(windows_core::Interface::as_raw(self), hwndowner.param().abi(), pdeviceclass.param().abi()).ok() } pub unsafe fn ConfigDialogEdit(&self, hwndowner: P0, pdeviceclass: P1, pdeviceconfigin: &[u8], pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigDialogEdit)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi(), pdeviceclass.into_param().abi(), pdeviceconfigin.len().try_into().unwrap(), core::mem::transmute(pdeviceconfigin.as_ptr()), pdwsizeout, ppdeviceconfigout).ok() + (windows_core::Interface::vtable(self).ConfigDialogEdit)(windows_core::Interface::as_raw(self), hwndowner.param().abi(), pdeviceclass.param().abi(), pdeviceconfigin.len().try_into().unwrap(), core::mem::transmute(pdeviceconfigin.as_ptr()), pdwsizeout, ppdeviceconfigout).ok() } } #[repr(C)] @@ -5307,15 +5307,15 @@ impl ITLegacyCallMediaControl { } pub unsafe fn GenerateDigits(&self, pdigits: P0, digitmode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateDigits)(windows_core::Interface::as_raw(self), pdigits.into_param().abi(), digitmode).ok() + (windows_core::Interface::vtable(self).GenerateDigits)(windows_core::Interface::as_raw(self), pdigits.param().abi(), digitmode).ok() } pub unsafe fn GetID(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetID)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdwsize, ppdeviceid).ok() + (windows_core::Interface::vtable(self).GetID)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdwsize, ppdeviceid).ok() } pub unsafe fn SetMediaType(&self, lmediatype: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), lmediatype).ok() @@ -5345,15 +5345,15 @@ impl ITLegacyCallMediaControl2 { } pub unsafe fn GenerateDigits(&self, pdigits: P0, digitmode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GenerateDigits)(windows_core::Interface::as_raw(self), pdigits.into_param().abi(), digitmode).ok() + (windows_core::Interface::vtable(self).base__.GenerateDigits)(windows_core::Interface::as_raw(self), pdigits.param().abi(), digitmode).ok() } pub unsafe fn GetID(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetID)(windows_core::Interface::as_raw(self), pdeviceclass.into_param().abi(), pdwsize, ppdeviceid).ok() + (windows_core::Interface::vtable(self).base__.GetID)(windows_core::Interface::as_raw(self), pdeviceclass.param().abi(), pdwsize, ppdeviceid).ok() } pub unsafe fn SetMediaType(&self, lmediatype: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetMediaType)(windows_core::Interface::as_raw(self), lmediatype).ok() @@ -5363,15 +5363,15 @@ impl ITLegacyCallMediaControl2 { } pub unsafe fn GenerateDigits2(&self, pdigits: P0, digitmode: i32, lduration: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateDigits2)(windows_core::Interface::as_raw(self), pdigits.into_param().abi(), digitmode, lduration).ok() + (windows_core::Interface::vtable(self).GenerateDigits2)(windows_core::Interface::as_raw(self), pdigits.param().abi(), digitmode, lduration).ok() } pub unsafe fn GatherDigits(&self, digitmode: i32, lnumdigits: i32, pterminationdigits: P0, lfirstdigittimeout: i32, linterdigittimeout: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GatherDigits)(windows_core::Interface::as_raw(self), digitmode, lnumdigits, pterminationdigits.into_param().abi(), lfirstdigittimeout, linterdigittimeout).ok() + (windows_core::Interface::vtable(self).GatherDigits)(windows_core::Interface::as_raw(self), digitmode, lnumdigits, pterminationdigits.param().abi(), 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), ptonelist, lnumtones).ok() @@ -5379,9 +5379,9 @@ impl ITLegacyCallMediaControl2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn DetectTonesByCollection(&self, pdetecttonecollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectTonesByCollection)(windows_core::Interface::as_raw(self), pdetecttonecollection.into_param().abi()).ok() + (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), tonemode, lduration).ok() @@ -5392,9 +5392,9 @@ impl ITLegacyCallMediaControl2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateCustomTonesByCollection(&self, pcustomtonecollection: P0, lduration: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateCustomTonesByCollection)(windows_core::Interface::as_raw(self), pcustomtonecollection.into_param().abi(), lduration).ok() + (windows_core::Interface::vtable(self).GenerateCustomTonesByCollection)(windows_core::Interface::as_raw(self), pcustomtonecollection.param().abi(), lduration).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDetectToneObject(&self) -> windows_core::Result { @@ -5408,10 +5408,10 @@ impl ITLegacyCallMediaControl2 { } pub unsafe fn GetIDAsVariant(&self, bstrdeviceclass: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIDAsVariant)(windows_core::Interface::as_raw(self), bstrdeviceclass.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIDAsVariant)(windows_core::Interface::as_raw(self), bstrdeviceclass.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5536,22 +5536,22 @@ impl ITMSPAddress { } pub unsafe fn CreateMSPCall(&self, hcall: *const i32, dwreserved: u32, dwmediatype: u32, pouterunknown: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMSPCall)(windows_core::Interface::as_raw(self), hcall, dwreserved, dwmediatype, pouterunknown.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShutdownMSPCall)(windows_core::Interface::as_raw(self), pstreamcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShutdownMSPCall)(windows_core::Interface::as_raw(self), pstreamcontrol.param().abi()).ok() } pub unsafe fn ReceiveTSPData(&self, pmspcall: P0, pbuffer: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReceiveTSPData)(windows_core::Interface::as_raw(self), pmspcall.into_param().abi(), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).ReceiveTSPData)(windows_core::Interface::as_raw(self), pmspcall.param().abi(), core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()).ok() } pub unsafe fn GetEvent(&self, pdwsize: *mut u32, peventbuffer: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), pdwsize, peventbuffer).ok() @@ -5604,9 +5604,9 @@ windows_core::imp::interface_hierarchy!(ITMediaPlayback, windows_core::IUnknown, impl ITMediaPlayback { pub unsafe fn SetPlayList(&self, playlistvariant: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlayList)(windows_core::Interface::as_raw(self), playlistvariant.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlayList)(windows_core::Interface::as_raw(self), playlistvariant.param().abi()).ok() } pub unsafe fn PlayList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5628,9 +5628,9 @@ windows_core::imp::interface_hierarchy!(ITMediaRecord, windows_core::IUnknown, s impl ITMediaRecord { pub unsafe fn SetFileName(&self, bstrfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), bstrfilename.param().abi()).ok() } pub unsafe fn FileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5696,9 +5696,9 @@ impl ITMultiTrackTerminal { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveTrackTerminal(&self, ptrackterminaltoremove: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveTrackTerminal)(windows_core::Interface::as_raw(self), ptrackterminaltoremove.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveTrackTerminal)(windows_core::Interface::as_raw(self), ptrackterminaltoremove.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5749,18 +5749,18 @@ impl ITPhone { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Terminals(&self, paddress: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Terminals)(windows_core::Interface::as_raw(self), paddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Terminals)(windows_core::Interface::as_raw(self), paddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateTerminals(&self, paddress: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateTerminals)(windows_core::Interface::as_raw(self), paddress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateTerminals)(windows_core::Interface::as_raw(self), paddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_ButtonMode(&self, lbuttonid: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5782,9 +5782,9 @@ impl ITPhone { } pub unsafe fn put_ButtonText(&self, lbuttonid: i32, bstrbuttontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_ButtonText)(windows_core::Interface::as_raw(self), lbuttonid, bstrbuttontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_ButtonText)(windows_core::Interface::as_raw(self), lbuttonid, bstrbuttontext.param().abi()).ok() } pub unsafe fn get_ButtonState(&self, lbuttonid: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5835,9 +5835,9 @@ impl ITPhone { } pub unsafe fn SetDisplay(&self, lrow: i32, lcolumn: i32, bstrdisplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), lrow, lcolumn, bstrdisplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplay)(windows_core::Interface::as_raw(self), lrow, lcolumn, bstrdisplay.param().abi()).ok() } pub unsafe fn PreferredAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5852,9 +5852,9 @@ impl ITPhone { } pub unsafe fn DeviceSpecificVariant(&self, vardevspecificbytearray: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceSpecificVariant)(windows_core::Interface::as_raw(self), vardevspecificbytearray.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeviceSpecificVariant)(windows_core::Interface::as_raw(self), vardevspecificbytearray.param().abi()).ok() } pub unsafe fn NegotiateExtVersion(&self, llowversion: i32, lhighversion: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6074,9 +6074,9 @@ windows_core::imp::interface_hierarchy!(ITPluggableTerminalEventSinkRegistration impl ITPluggableTerminalEventSinkRegistration { pub unsafe fn RegisterSink(&self, peventsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterSink)(windows_core::Interface::as_raw(self), peventsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterSink)(windows_core::Interface::as_raw(self), peventsink.param().abi()).ok() } pub unsafe fn UnregisterSink(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterSink)(windows_core::Interface::as_raw(self)).ok() @@ -6308,18 +6308,18 @@ impl ITRendezvous { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDirectory(&self, directorytype: DIRECTORY_TYPE, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirectory)(windows_core::Interface::as_raw(self), directorytype, pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirectory)(windows_core::Interface::as_raw(self), directorytype, pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDirectoryObject(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirectoryObject)(windows_core::Interface::as_raw(self), directoryobjecttype, pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirectoryObject)(windows_core::Interface::as_raw(self), directoryobjecttype, pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6345,12 +6345,12 @@ windows_core::imp::interface_hierarchy!(ITRequest, windows_core::IUnknown, super impl ITRequest { pub unsafe fn MakeCall(&self, pdestaddress: P0, pappname: P1, pcalledparty: P2, pcomment: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).MakeCall)(windows_core::Interface::as_raw(self), pdestaddress.into_param().abi(), pappname.into_param().abi(), pcalledparty.into_param().abi(), pcomment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MakeCall)(windows_core::Interface::as_raw(self), pdestaddress.param().abi(), pappname.param().abi(), pcalledparty.param().abi(), pcomment.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6514,16 +6514,16 @@ impl ITStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectTerminal(&self, pterminal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectTerminal)(windows_core::Interface::as_raw(self), pterminal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectTerminal)(windows_core::Interface::as_raw(self), pterminal.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UnselectTerminal(&self, pterminal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnselectTerminal)(windows_core::Interface::as_raw(self), pterminal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnselectTerminal)(windows_core::Interface::as_raw(self), pterminal.param().abi()).ok() } pub unsafe fn EnumerateTerminals(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6569,9 +6569,9 @@ impl ITStreamControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveStream(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } pub unsafe fn EnumerateStreams(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6615,16 +6615,16 @@ impl ITSubStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectTerminal(&self, pterminal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectTerminal)(windows_core::Interface::as_raw(self), pterminal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectTerminal)(windows_core::Interface::as_raw(self), pterminal.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UnselectTerminal(&self, pterminal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnselectTerminal)(windows_core::Interface::as_raw(self), pterminal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnselectTerminal)(windows_core::Interface::as_raw(self), pterminal.param().abi()).ok() } pub unsafe fn EnumerateTerminals(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6676,9 +6676,9 @@ impl ITSubStreamControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveSubStream(&self, psubstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSubStream)(windows_core::Interface::as_raw(self), psubstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveSubStream)(windows_core::Interface::as_raw(self), psubstream.param().abi()).ok() } pub unsafe fn EnumerateSubStreams(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6727,12 +6727,12 @@ impl ITTAPI { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterCallNotifications(&self, paddress: P0, fmonitor: P1, fowner: P2, lmediatypes: i32, lcallbackinstance: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterCallNotifications)(windows_core::Interface::as_raw(self), paddress.into_param().abi(), fmonitor.into_param().abi(), fowner.into_param().abi(), lmediatypes, lcallbackinstance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterCallNotifications)(windows_core::Interface::as_raw(self), paddress.param().abi(), fmonitor.param().abi(), fowner.param().abi(), 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), lregister).ok() @@ -6747,10 +6747,10 @@ impl ITTAPI { } pub unsafe fn SetCallHubTracking(&self, paddresses: P0, btracking: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCallHubTracking)(windows_core::Interface::as_raw(self), paddresses.into_param().abi(), btracking.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCallHubTracking)(windows_core::Interface::as_raw(self), paddresses.param().abi(), btracking.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumeratePrivateTAPIObjects(&self) -> windows_core::Result { @@ -6763,23 +6763,23 @@ impl ITTAPI { } pub unsafe fn RegisterRequestRecipient(&self, lregistrationinstance: i32, lrequestmode: i32, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterRequestRecipient)(windows_core::Interface::as_raw(self), lregistrationinstance, lrequestmode, fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterRequestRecipient)(windows_core::Interface::as_raw(self), lregistrationinstance, lrequestmode, fenable.param().abi()).ok() } pub unsafe fn SetAssistedTelephonyPriority(&self, pappfilename: P0, fpriority: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAssistedTelephonyPriority)(windows_core::Interface::as_raw(self), pappfilename.into_param().abi(), fpriority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAssistedTelephonyPriority)(windows_core::Interface::as_raw(self), pappfilename.param().abi(), fpriority.param().abi()).ok() } pub unsafe fn SetApplicationPriority(&self, pappfilename: P0, lmediatype: i32, fpriority: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationPriority)(windows_core::Interface::as_raw(self), pappfilename.into_param().abi(), lmediatype, fpriority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationPriority)(windows_core::Interface::as_raw(self), pappfilename.param().abi(), lmediatype, fpriority.param().abi()).ok() } pub unsafe fn SetEventFilter(&self, lfiltermask: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetEventFilter)(windows_core::Interface::as_raw(self), lfiltermask).ok() @@ -6839,12 +6839,12 @@ impl ITTAPI2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterCallNotifications(&self, paddress: P0, fmonitor: P1, fowner: P2, lmediatypes: i32, lcallbackinstance: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterCallNotifications)(windows_core::Interface::as_raw(self), paddress.into_param().abi(), fmonitor.into_param().abi(), fowner.into_param().abi(), lmediatypes, lcallbackinstance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterCallNotifications)(windows_core::Interface::as_raw(self), paddress.param().abi(), fmonitor.param().abi(), fowner.param().abi(), lmediatypes, lcallbackinstance, &mut result__).map(|| result__) } pub unsafe fn UnregisterNotifications(&self, lregister: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UnregisterNotifications)(windows_core::Interface::as_raw(self), lregister).ok() @@ -6859,10 +6859,10 @@ impl ITTAPI2 { } pub unsafe fn SetCallHubTracking(&self, paddresses: P0, btracking: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCallHubTracking)(windows_core::Interface::as_raw(self), paddresses.into_param().abi(), btracking.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCallHubTracking)(windows_core::Interface::as_raw(self), paddresses.param().abi(), btracking.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumeratePrivateTAPIObjects(&self) -> windows_core::Result { @@ -6875,23 +6875,23 @@ impl ITTAPI2 { } pub unsafe fn RegisterRequestRecipient(&self, lregistrationinstance: i32, lrequestmode: i32, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterRequestRecipient)(windows_core::Interface::as_raw(self), lregistrationinstance, lrequestmode, fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterRequestRecipient)(windows_core::Interface::as_raw(self), lregistrationinstance, lrequestmode, fenable.param().abi()).ok() } pub unsafe fn SetAssistedTelephonyPriority(&self, pappfilename: P0, fpriority: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAssistedTelephonyPriority)(windows_core::Interface::as_raw(self), pappfilename.into_param().abi(), fpriority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAssistedTelephonyPriority)(windows_core::Interface::as_raw(self), pappfilename.param().abi(), fpriority.param().abi()).ok() } pub unsafe fn SetApplicationPriority(&self, pappfilename: P0, lmediatype: i32, fpriority: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationPriority)(windows_core::Interface::as_raw(self), pappfilename.into_param().abi(), lmediatype, fpriority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationPriority)(windows_core::Interface::as_raw(self), pappfilename.param().abi(), lmediatype, fpriority.param().abi()).ok() } pub unsafe fn SetEventFilter(&self, lfiltermask: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetEventFilter)(windows_core::Interface::as_raw(self), lfiltermask).ok() @@ -6964,9 +6964,9 @@ impl ITTAPIEventNotification { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Event(&self, tapievent: TAPI_EVENT, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), tapievent, pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), tapievent, pevent.param().abi()).ok() } } #[repr(C)] @@ -7158,10 +7158,10 @@ impl ITTerminalSupport { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTerminal(&self, pterminalclass: P0, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTerminal)(windows_core::Interface::as_raw(self), pterminalclass.into_param().abi(), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTerminal)(windows_core::Interface::as_raw(self), pterminalclass.param().abi(), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDefaultStaticTerminal(&self, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result { @@ -7211,10 +7211,10 @@ impl ITTerminalSupport2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTerminal(&self, pterminalclass: P0, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTerminal)(windows_core::Interface::as_raw(self), pterminalclass.into_param().abi(), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTerminal)(windows_core::Interface::as_raw(self), pterminalclass.param().abi(), lmediatype, direction, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDefaultStaticTerminal(&self, lmediatype: i32, direction: TERMINAL_DIRECTION) -> windows_core::Result { @@ -7231,10 +7231,10 @@ impl ITTerminalSupport2 { } pub unsafe fn get_PluggableTerminalClasses(&self, bstrterminalsuperclass: P0, lmediatype: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_PluggableTerminalClasses)(windows_core::Interface::as_raw(self), bstrterminalsuperclass.into_param().abi(), lmediatype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_PluggableTerminalClasses)(windows_core::Interface::as_raw(self), bstrterminalsuperclass.param().abi(), lmediatype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumeratePluggableTerminalClasses(&self, iidterminalsuperclass: windows_core::GUID, lmediatype: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7338,10 +7338,10 @@ impl ITnef { #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] pub unsafe fn OpenTaggedBody(&self, lpmessage: P0, ulflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenTaggedBody)(windows_core::Interface::as_raw(self), lpmessage.into_param().abi(), 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<()> { @@ -7350,9 +7350,9 @@ impl ITnef { #[cfg(feature = "Win32_System_AddressBook")] pub unsafe fn EncodeRecips(&self, ulflags: u32, lprecipienttable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeRecips)(windows_core::Interface::as_raw(self), ulflags, lprecipienttable.into_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<()> { 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 db06e56665..68b9798dce 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs @@ -1,35 +1,35 @@ #[inline] pub unsafe fn WinUsb_AbortPipe(interfacehandle: P0, pipeid: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winusb.dll" "system" fn WinUsb_AbortPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); - WinUsb_AbortPipe(interfacehandle.into_param().abi(), pipeid).ok() + WinUsb_AbortPipe(interfacehandle.param().abi(), pipeid).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ControlTransfer(interfacehandle: P0, setuppacket: WINUSB_SETUP_PACKET, buffer: Option<&mut [u8]>, lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() + WinUsb_ControlTransfer(interfacehandle.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WinUsb_FlushPipe(interfacehandle: P0, pipeid: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winusb.dll" "system" fn WinUsb_FlushPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); - WinUsb_FlushPipe(interfacehandle.into_param().abi(), pipeid).ok() + WinUsb_FlushPipe(interfacehandle.param().abi(), pipeid).ok() } #[inline] pub unsafe fn WinUsb_Free(interfacehandle: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winusb.dll" "system" fn WinUsb_Free(interfacehandle : WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL); - WinUsb_Free(interfacehandle.into_param().abi()) + WinUsb_Free(interfacehandle.param().abi()) } #[inline] pub unsafe fn WinUsb_GetAdjustedFrameNumber(currentframenumber: *mut u32, timestamp: i64) -> windows_core::Result<()> { @@ -39,76 +39,76 @@ pub unsafe fn WinUsb_GetAdjustedFrameNumber(currentframenumber: *mut u32, timest #[inline] pub unsafe fn WinUsb_GetAssociatedInterface(interfacehandle: P0, associatedinterfaceindex: u8, associatedinterfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), associatedinterfaceindex, associatedinterfacehandle).ok() + WinUsb_GetAssociatedInterface(interfacehandle.param().abi(), associatedinterfaceindex, associatedinterfacehandle).ok() } #[inline] pub unsafe fn WinUsb_GetCurrentAlternateSetting(interfacehandle: P0, settingnumber: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : *mut u8) -> super::super::Foundation:: BOOL); - WinUsb_GetCurrentAlternateSetting(interfacehandle.into_param().abi(), settingnumber).ok() + WinUsb_GetCurrentAlternateSetting(interfacehandle.param().abi(), settingnumber).ok() } #[inline] pub unsafe fn WinUsb_GetCurrentFrameNumber(interfacehandle: P0, currentframenumber: *mut u32, timestamp: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), currentframenumber, timestamp).ok() + WinUsb_GetCurrentFrameNumber(interfacehandle.param().abi(), currentframenumber, timestamp).ok() } #[inline] pub unsafe fn WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle: P0, frameqpcinfo: *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), frameqpcinfo).ok() + WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle.param().abi(), frameqpcinfo).ok() } #[inline] pub unsafe fn WinUsb_GetDescriptor(interfacehandle: P0, descriptortype: u8, index: u8, languageid: u16, buffer: Option<&mut [u8]>, lengthtransferred: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), 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()), lengthtransferred).ok() + WinUsb_GetDescriptor(interfacehandle.param().abi(), 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()), lengthtransferred).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_GetOverlappedResult(interfacehandle: P0, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(interfacehandle.into_param().abi(), lpoverlapped, lpnumberofbytestransferred, bwait.into_param().abi()).ok() + WinUsb_GetOverlappedResult(interfacehandle.param().abi(), lpoverlapped, lpnumberofbytestransferred, bwait.param().abi()).ok() } #[inline] pub unsafe fn WinUsb_GetPipePolicy(interfacehandle: P0, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: *mut u32, value: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), pipeid, policytype, valuelength, value).ok() + WinUsb_GetPipePolicy(interfacehandle.param().abi(), pipeid, policytype, valuelength, value).ok() } #[inline] pub unsafe fn WinUsb_GetPowerPolicy(interfacehandle: P0, policytype: WINUSB_POWER_POLICY, valuelength: *mut u32, value: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), policytype, valuelength, value).ok() + WinUsb_GetPowerPolicy(interfacehandle.param().abi(), policytype, valuelength, value).ok() } #[inline] pub unsafe fn WinUsb_Initialize(devicehandle: P0, interfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(devicehandle.into_param().abi(), interfacehandle).ok() + WinUsb_Initialize(devicehandle.param().abi(), 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 { @@ -123,34 +123,34 @@ pub unsafe fn WinUsb_ParseDescriptors(descriptorbuffer: *const core::ffi::c_void #[inline] pub unsafe fn WinUsb_QueryDeviceInformation(interfacehandle: P0, informationtype: u32, bufferlength: *mut u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), informationtype, bufferlength, buffer).ok() + WinUsb_QueryDeviceInformation(interfacehandle.param().abi(), informationtype, bufferlength, buffer).ok() } #[inline] pub unsafe fn WinUsb_QueryInterfaceSettings(interfacehandle: P0, alternateinterfacenumber: u8, usbaltinterfacedescriptor: *mut USB_INTERFACE_DESCRIPTOR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), alternateinterfacenumber, usbaltinterfacedescriptor).ok() + WinUsb_QueryInterfaceSettings(interfacehandle.param().abi(), alternateinterfacenumber, usbaltinterfacedescriptor).ok() } #[inline] pub unsafe fn WinUsb_QueryPipe(interfacehandle: P0, alternateinterfacenumber: u8, pipeindex: u8, pipeinformation: *mut WINUSB_PIPE_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), alternateinterfacenumber, pipeindex, pipeinformation).ok() + WinUsb_QueryPipe(interfacehandle.param().abi(), alternateinterfacenumber, pipeindex, pipeinformation).ok() } #[inline] pub unsafe fn WinUsb_QueryPipeEx(interfacehandle: P0, alternatesettingnumber: u8, pipeindex: u8, pipeinformationex: *mut WINUSB_PIPE_INFORMATION_EX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), alternatesettingnumber, pipeindex, pipeinformationex).ok() + WinUsb_QueryPipeEx(interfacehandle.param().abi(), alternatesettingnumber, pipeindex, pipeinformationex).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -162,75 +162,75 @@ pub unsafe fn WinUsb_ReadIsochPipe(bufferhandle: *const core::ffi::c_void, offse #[inline] pub unsafe fn WinUsb_ReadIsochPipeAsap(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, continuestream: P0, isopacketdescriptors: &mut [USBD_ISO_PACKET_DESCRIPTOR], overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(bufferhandle, offset, length, continuestream.into_param().abi(), isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() + WinUsb_ReadIsochPipeAsap(bufferhandle, offset, length, continuestream.param().abi(), isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ReadPipe(interfacehandle: P0, pipeid: u8, buffer: Option<&mut [u8]>, lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() + WinUsb_ReadPipe(interfacehandle.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WinUsb_RegisterIsochBuffer(interfacehandle: P0, pipeid: u8, buffer: &mut [u8], isochbufferhandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), isochbufferhandle).ok() + WinUsb_RegisterIsochBuffer(interfacehandle.param().abi(), pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), isochbufferhandle).ok() } #[inline] pub unsafe fn WinUsb_ResetPipe(interfacehandle: P0, pipeid: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winusb.dll" "system" fn WinUsb_ResetPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); - WinUsb_ResetPipe(interfacehandle.into_param().abi(), pipeid).ok() + WinUsb_ResetPipe(interfacehandle.param().abi(), pipeid).ok() } #[inline] pub unsafe fn WinUsb_SetCurrentAlternateSetting(interfacehandle: P0, settingnumber: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winusb.dll" "system" fn WinUsb_SetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : u8) -> super::super::Foundation:: BOOL); - WinUsb_SetCurrentAlternateSetting(interfacehandle.into_param().abi(), settingnumber).ok() + WinUsb_SetCurrentAlternateSetting(interfacehandle.param().abi(), settingnumber).ok() } #[inline] pub unsafe fn WinUsb_SetPipePolicy(interfacehandle: P0, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: u32, value: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), pipeid, policytype, valuelength, value).ok() + WinUsb_SetPipePolicy(interfacehandle.param().abi(), pipeid, policytype, valuelength, value).ok() } #[inline] pub unsafe fn WinUsb_SetPowerPolicy(interfacehandle: P0, policytype: WINUSB_POWER_POLICY, valuelength: u32, value: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), policytype, valuelength, value).ok() + WinUsb_SetPowerPolicy(interfacehandle.param().abi(), policytype, valuelength, value).ok() } #[inline] pub unsafe fn WinUsb_StartTrackingForTimeSync(interfacehandle: P0, starttrackinginfo: *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), starttrackinginfo).ok() + WinUsb_StartTrackingForTimeSync(interfacehandle.param().abi(), starttrackinginfo).ok() } #[inline] pub unsafe fn WinUsb_StopTrackingForTimeSync(interfacehandle: P0, stoptrackinginfo: *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), stoptrackinginfo).ok() + WinUsb_StopTrackingForTimeSync(interfacehandle.param().abi(), stoptrackinginfo).ok() } #[inline] pub unsafe fn WinUsb_UnregisterIsochBuffer(isochbufferhandle: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -247,19 +247,19 @@ pub unsafe fn WinUsb_WriteIsochPipe(bufferhandle: *const core::ffi::c_void, offs #[inline] pub unsafe fn WinUsb_WriteIsochPipeAsap(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, continuestream: P0, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(bufferhandle, offset, length, continuestream.into_param().abi(), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() + WinUsb_WriteIsochPipeAsap(bufferhandle, offset, length, continuestream.param().abi(), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_WritePipe(interfacehandle: P0, pipeid: u8, buffer: &[u8], lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interfacehandle.into_param().abi(), pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(lengthtransferred.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).ok() + WinUsb_WritePipe(interfacehandle.param().abi(), pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(lengthtransferred.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))).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 8bc10ff8bc..23c635d535 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -11,102 +11,102 @@ pub unsafe fn WSDAttachLinkedMemory(pparent: *mut core::ffi::c_void, pchild: *mu #[inline] pub unsafe fn WSDCreateDeviceHost(pszlocalid: P0, pcontext: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDeviceHost(pszlocalid : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, ppdevicehost : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDeviceHost(pszlocalid.into_param().abi(), pcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDeviceHost(pszlocalid.param().abi(), pcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WSDCreateDeviceHost2(pszlocalid: P0, pcontext: P1, pconfigparams: Option<&[WSD_CONFIG_PARAM]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDeviceHost2(pszlocalid : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, pconfigparams : *const WSD_CONFIG_PARAM, dwconfigparamcount : u32, ppdevicehost : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDeviceHost2(pszlocalid.into_param().abi(), pcontext.into_param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDeviceHost2(pszlocalid.param().abi(), pcontext.param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.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 WSDCreateDeviceHostAdvanced(pszlocalid: P0, pcontext: P1, pphostaddresses: Option<&[Option]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDeviceHostAdvanced(pszlocalid : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, pphostaddresses : *const * mut core::ffi::c_void, dwhostaddresscount : u32, ppdevicehost : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDeviceHostAdvanced(pszlocalid.into_param().abi(), pcontext.into_param().abi(), core::mem::transmute(pphostaddresses.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pphostaddresses.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDeviceHostAdvanced(pszlocalid.param().abi(), pcontext.param().abi(), core::mem::transmute(pphostaddresses.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pphostaddresses.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 WSDCreateDeviceProxy(pszdeviceid: P0, pszlocalid: P1, pcontext: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDeviceProxy(pszdeviceid : windows_core::PCWSTR, pszlocalid : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, ppdeviceproxy : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDeviceProxy(pszdeviceid.into_param().abi(), pszlocalid.into_param().abi(), pcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDeviceProxy(pszdeviceid.param().abi(), pszlocalid.param().abi(), pcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WSDCreateDeviceProxy2(pszdeviceid: P0, pszlocalid: P1, pcontext: P2, pconfigparams: Option<&[WSD_CONFIG_PARAM]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDeviceProxy2(pszdeviceid : windows_core::PCWSTR, pszlocalid : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, pconfigparams : *const WSD_CONFIG_PARAM, dwconfigparamcount : u32, ppdeviceproxy : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDeviceProxy2(pszdeviceid.into_param().abi(), pszlocalid.into_param().abi(), pcontext.into_param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDeviceProxy2(pszdeviceid.param().abi(), pszlocalid.param().abi(), pcontext.param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.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 WSDCreateDeviceProxyAdvanced(pszdeviceid: P0, pdeviceaddress: P1, pszlocalid: P2, pcontext: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDeviceProxyAdvanced(pszdeviceid : windows_core::PCWSTR, pdeviceaddress : * mut core::ffi::c_void, pszlocalid : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, ppdeviceproxy : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDeviceProxyAdvanced(pszdeviceid.into_param().abi(), pdeviceaddress.into_param().abi(), pszlocalid.into_param().abi(), pcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDeviceProxyAdvanced(pszdeviceid.param().abi(), pdeviceaddress.param().abi(), pszlocalid.param().abi(), pcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WSDCreateDiscoveryProvider(pcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDiscoveryProvider(pcontext : * mut core::ffi::c_void, ppprovider : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDiscoveryProvider(pcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDiscoveryProvider(pcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WSDCreateDiscoveryProvider2(pcontext: P0, pconfigparams: Option<&[WSD_CONFIG_PARAM]>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDiscoveryProvider2(pcontext : * mut core::ffi::c_void, pconfigparams : *const WSD_CONFIG_PARAM, dwconfigparamcount : u32, ppprovider : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDiscoveryProvider2(pcontext.into_param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDiscoveryProvider2(pcontext.param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.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 WSDCreateDiscoveryPublisher(pcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDiscoveryPublisher(pcontext : * mut core::ffi::c_void, pppublisher : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDiscoveryPublisher(pcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDiscoveryPublisher(pcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WSDCreateDiscoveryPublisher2(pcontext: P0, pconfigparams: Option<&[WSD_CONFIG_PARAM]>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDCreateDiscoveryPublisher2(pcontext : * mut core::ffi::c_void, pconfigparams : *const WSD_CONFIG_PARAM, dwconfigparamcount : u32, pppublisher : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDCreateDiscoveryPublisher2(pcontext.into_param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WSDCreateDiscoveryPublisher2(pcontext.param().abi(), core::mem::transmute(pconfigparams.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pconfigparams.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 WSDCreateHttpAddress() -> windows_core::Result { @@ -151,24 +151,24 @@ pub unsafe fn WSDFreeLinkedMemory(pvoid: *mut core::ffi::c_void) { #[inline] pub unsafe fn WSDGenerateFault(pszcode: P0, pszsubcode: P1, pszreason: P2, pszdetail: P3, pcontext: P4) -> windows_core::Result<*mut WSD_SOAP_FAULT> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDGenerateFault(pszcode : windows_core::PCWSTR, pszsubcode : windows_core::PCWSTR, pszreason : windows_core::PCWSTR, pszdetail : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, ppfault : *mut *mut WSD_SOAP_FAULT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDGenerateFault(pszcode.into_param().abi(), pszsubcode.into_param().abi(), pszreason.into_param().abi(), pszdetail.into_param().abi(), pcontext.into_param().abi(), &mut result__).map(|| result__) + WSDGenerateFault(pszcode.param().abi(), pszsubcode.param().abi(), pszreason.param().abi(), pszdetail.param().abi(), pcontext.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WSDGenerateFaultEx(pcode: *const WSDXML_NAME, psubcode: Option<*const WSDXML_NAME>, preasons: *const WSD_LOCALIZED_STRING_LIST, pszdetail: P0) -> windows_core::Result<*mut WSD_SOAP_FAULT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WSDGenerateFaultEx(pcode, core::mem::transmute(psubcode.unwrap_or(std::ptr::null())), preasons, pszdetail.into_param().abi(), &mut result__).map(|| result__) + WSDGenerateFaultEx(pcode, core::mem::transmute(psubcode.unwrap_or(std::ptr::null())), preasons, pszdetail.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WSDGetConfigurationOption(dwoption: u32, pvoid: *mut core::ffi::c_void, cboutbuffer: u32) -> windows_core::Result<()> { @@ -203,10 +203,10 @@ pub unsafe fn WSDXMLAddSibling(pfirst: *mut WSDXML_ELEMENT, psecond: *mut WSDXML #[inline] pub unsafe fn WSDXMLBuildAnyForSingleElement(pelementname: *mut WSDXML_NAME, psztext: P0, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDXMLBuildAnyForSingleElement(pelementname : *mut WSDXML_NAME, psztext : windows_core::PCWSTR, ppany : *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT); - WSDXMLBuildAnyForSingleElement(pelementname, psztext.into_param().abi(), ppany).ok() + WSDXMLBuildAnyForSingleElement(pelementname, psztext.param().abi(), ppany).ok() } #[inline] pub unsafe fn WSDXMLCleanupElement(pany: *mut WSDXML_ELEMENT) -> windows_core::Result<()> { @@ -222,36 +222,36 @@ pub unsafe fn WSDXMLCreateContext() -> windows_core::Result { #[inline] pub unsafe fn WSDXMLGetNameFromBuiltinNamespace(psznamespace: P0, pszname: P1) -> windows_core::Result<*mut WSDXML_NAME> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDXMLGetNameFromBuiltinNamespace(psznamespace : windows_core::PCWSTR, pszname : windows_core::PCWSTR, ppname : *mut *mut WSDXML_NAME) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WSDXMLGetNameFromBuiltinNamespace(psznamespace.into_param().abi(), pszname.into_param().abi(), &mut result__).map(|| result__) + WSDXMLGetNameFromBuiltinNamespace(psznamespace.param().abi(), pszname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WSDXMLGetValueFromAny(psznamespace: P0, pszname: P1, pany: *mut WSDXML_ELEMENT, ppszvalue: *mut windows_core::PCWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wsdapi.dll" "system" fn WSDXMLGetValueFromAny(psznamespace : windows_core::PCWSTR, pszname : windows_core::PCWSTR, pany : *mut WSDXML_ELEMENT, ppszvalue : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - WSDXMLGetValueFromAny(psznamespace.into_param().abi(), pszname.into_param().abi(), pany, ppszvalue).ok() + WSDXMLGetValueFromAny(psznamespace.param().abi(), pszname.param().abi(), pany, ppszvalue).ok() } windows_core::imp::define_interface!(IWSDAddress, IWSDAddress_Vtbl, 0xb9574c6c_12a6_4f74_93a1_3318ff605759); windows_core::imp::interface_hierarchy!(IWSDAddress, windows_core::IUnknown); impl IWSDAddress { pub unsafe fn Serialize(&self, pszbuffer: &mut [u16], fsafe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.param().abi()).ok() } pub unsafe fn Deserialize(&self, pszbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.param().abi()).ok() } } #[repr(C)] @@ -265,10 +265,10 @@ windows_core::imp::interface_hierarchy!(IWSDAsyncCallback, windows_core::IUnknow impl IWSDAsyncCallback { pub unsafe fn AsyncOperationComplete(&self, pasyncresult: P0, pasyncstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncOperationComplete)(windows_core::Interface::as_raw(self), pasyncresult.into_param().abi(), pasyncstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsyncOperationComplete)(windows_core::Interface::as_raw(self), pasyncresult.param().abi(), pasyncstate.param().abi()).ok() } } #[repr(C)] @@ -281,16 +281,16 @@ windows_core::imp::interface_hierarchy!(IWSDAsyncResult, windows_core::IUnknown) impl IWSDAsyncResult { pub unsafe fn SetCallback(&self, pcallback: P0, pasyncstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pasyncstate.into_param().abi()).ok() + (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWaitHandle)(windows_core::Interface::as_raw(self), hwaithandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWaitHandle)(windows_core::Interface::as_raw(self), hwaithandle.param().abi()).ok() } pub unsafe fn HasCompleted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HasCompleted)(windows_core::Interface::as_raw(self)).ok() @@ -333,16 +333,16 @@ windows_core::imp::interface_hierarchy!(IWSDDeviceHost, windows_core::IUnknown); impl IWSDDeviceHost { pub unsafe fn Init(&self, pszlocalid: P0, pcontext: P1, pphostaddresses: Option<&[Option]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pszlocalid.into_param().abi(), pcontext.into_param().abi(), core::mem::transmute(pphostaddresses.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pphostaddresses.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pszlocalid.param().abi(), pcontext.param().abi(), core::mem::transmute(pphostaddresses.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pphostaddresses.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } pub unsafe fn Start(&self, ullinstanceid: u64, pscopelist: *const WSD_URI_LIST, pnotificationsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ullinstanceid, pscopelist, pnotificationsink.into_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() @@ -358,43 +358,43 @@ impl IWSDDeviceHost { } pub unsafe fn RegisterService(&self, pszserviceid: P0, pservice: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterService)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi(), pservice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterService)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), pservice.param().abi()).ok() } pub unsafe fn RetireService(&self, pszserviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RetireService)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RetireService)(windows_core::Interface::as_raw(self), pszserviceid.param().abi()).ok() } pub unsafe fn AddDynamicService(&self, pszserviceid: P0, pszendpointaddress: P1, pporttype: Option<*const WSD_PORT_TYPE>, pportname: Option<*const WSDXML_NAME>, pany: Option<*const WSDXML_ELEMENT>, pservice: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDynamicService)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi(), pszendpointaddress.into_param().abi(), core::mem::transmute(pporttype.unwrap_or(std::ptr::null())), core::mem::transmute(pportname.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pservice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDynamicService)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), pszendpointaddress.param().abi(), core::mem::transmute(pporttype.unwrap_or(std::ptr::null())), core::mem::transmute(pportname.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pservice.param().abi()).ok() } pub unsafe fn RemoveDynamicService(&self, pszserviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveDynamicService)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveDynamicService)(windows_core::Interface::as_raw(self), pszserviceid.param().abi()).ok() } pub unsafe fn SetServiceDiscoverable(&self, pszserviceid: P0, fdiscoverable: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceDiscoverable)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi(), fdiscoverable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceDiscoverable)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), fdiscoverable.param().abi()).ok() } pub unsafe fn SignalEvent(&self, pszserviceid: P0, pbody: Option<*const core::ffi::c_void>, poperation: *const WSD_OPERATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SignalEvent)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi(), core::mem::transmute(pbody.unwrap_or(std::ptr::null())), poperation).ok() + (windows_core::Interface::vtable(self).SignalEvent)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), core::mem::transmute(pbody.unwrap_or(std::ptr::null())), poperation).ok() } } #[repr(C)] @@ -418,10 +418,10 @@ windows_core::imp::interface_hierarchy!(IWSDDeviceHostNotify, windows_core::IUnk impl IWSDDeviceHostNotify { pub unsafe fn GetService(&self, pszserviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -434,13 +434,13 @@ windows_core::imp::interface_hierarchy!(IWSDDeviceProxy, windows_core::IUnknown) impl IWSDDeviceProxy { pub unsafe fn Init(&self, pszdeviceid: P0, pdeviceaddress: P1, pszlocalid: P2, pcontext: P3, psponsor: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), pdeviceaddress.into_param().abi(), pszlocalid.into_param().abi(), pcontext.into_param().abi(), psponsor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pdeviceaddress.param().abi(), pszlocalid.param().abi(), pcontext.param().abi(), psponsor.param().abi()).ok() } pub unsafe fn BeginGetMetadata(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -448,9 +448,9 @@ impl IWSDDeviceProxy { } pub unsafe fn EndGetMetadata(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndGetMetadata)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndGetMetadata)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn GetHostMetadata(&self) -> windows_core::Result<*mut WSD_HOST_METADATA> { let mut result__ = std::mem::zeroed(); @@ -470,10 +470,10 @@ impl IWSDDeviceProxy { } pub unsafe fn GetServiceProxyById(&self, pszserviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceProxyById)(windows_core::Interface::as_raw(self), pszserviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceProxyById)(windows_core::Interface::as_raw(self), pszserviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetServiceProxyByType(&self, ptype: *const WSDXML_NAME) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -509,17 +509,17 @@ impl IWSDEndpointProxy { } pub unsafe fn SendTwoWayRequestAsync(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pasyncstate: P0, pcallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendTwoWayRequestAsync)(windows_core::Interface::as_raw(self), pbody, poperation, pasyncstate.into_param().abi(), pcallback.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AbortAsyncOperation)(windows_core::Interface::as_raw(self), pasyncresult.into_param().abi()).ok() + (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), pfault).ok() @@ -549,21 +549,21 @@ windows_core::imp::interface_hierarchy!(IWSDEventingStatus, windows_core::IUnkno impl IWSDEventingStatus { pub unsafe fn SubscriptionRenewed(&self, pszsubscriptionaction: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubscriptionRenewed)(windows_core::Interface::as_raw(self), pszsubscriptionaction.into_param().abi()) + (windows_core::Interface::vtable(self).SubscriptionRenewed)(windows_core::Interface::as_raw(self), pszsubscriptionaction.param().abi()) } pub unsafe fn SubscriptionRenewalFailed(&self, pszsubscriptionaction: P0, hr: windows_core::HRESULT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubscriptionRenewalFailed)(windows_core::Interface::as_raw(self), pszsubscriptionaction.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubscriptionEnded)(windows_core::Interface::as_raw(self), pszsubscriptionaction.into_param().abi()) + (windows_core::Interface::vtable(self).SubscriptionEnded)(windows_core::Interface::as_raw(self), pszsubscriptionaction.param().abi()) } } #[repr(C)] @@ -578,15 +578,15 @@ windows_core::imp::interface_hierarchy!(IWSDHttpAddress, windows_core::IUnknown, impl IWSDHttpAddress { pub unsafe fn Serialize(&self, pszbuffer: &mut [u16], fsafe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.param().abi()).ok() } pub unsafe fn Deserialize(&self, pszbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.param().abi()).ok() } pub unsafe fn GetPort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -601,25 +601,25 @@ impl IWSDHttpAddress { } pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetTransportAddressEx)(windows_core::Interface::as_raw(self), fsafe.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetTransportAddressEx)(windows_core::Interface::as_raw(self), fsafe.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetTransportAddress(&self, pszaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransportAddress)(windows_core::Interface::as_raw(self), pszaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransportAddress)(windows_core::Interface::as_raw(self), pszaddress.param().abi()).ok() } pub unsafe fn GetSecure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSecure)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetSecure(&self, fsecure: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecure)(windows_core::Interface::as_raw(self), fsecure.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecure)(windows_core::Interface::as_raw(self), fsecure.param().abi()).ok() } pub unsafe fn GetPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -627,9 +627,9 @@ impl IWSDHttpAddress { } pub unsafe fn SetPath(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } } #[repr(C)] @@ -667,9 +667,9 @@ impl IWSDHttpMessageParameters { } pub unsafe fn SetLocalAddress(&self, paddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocalAddress)(windows_core::Interface::as_raw(self), paddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocalAddress)(windows_core::Interface::as_raw(self), paddress.param().abi()).ok() } pub unsafe fn GetRemoteAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -677,9 +677,9 @@ impl IWSDHttpMessageParameters { } pub unsafe fn SetRemoteAddress(&self, paddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRemoteAddress)(windows_core::Interface::as_raw(self), paddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRemoteAddress)(windows_core::Interface::as_raw(self), paddress.param().abi()).ok() } pub unsafe fn GetLowerParameters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -687,9 +687,9 @@ impl IWSDHttpMessageParameters { } pub unsafe fn SetInboundHttpHeaders(&self, pszheaders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInboundHttpHeaders)(windows_core::Interface::as_raw(self), pszheaders.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInboundHttpHeaders)(windows_core::Interface::as_raw(self), pszheaders.param().abi()).ok() } pub unsafe fn GetInboundHttpHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -697,9 +697,9 @@ impl IWSDHttpMessageParameters { } pub unsafe fn SetOutboundHttpHeaders(&self, pszheaders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutboundHttpHeaders)(windows_core::Interface::as_raw(self), pszheaders.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutboundHttpHeaders)(windows_core::Interface::as_raw(self), pszheaders.param().abi()).ok() } pub unsafe fn GetOutboundHttpHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -707,9 +707,9 @@ impl IWSDHttpMessageParameters { } pub unsafe fn SetID(&self, pszid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetID)(windows_core::Interface::as_raw(self), pszid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetID)(windows_core::Interface::as_raw(self), pszid.param().abi()).ok() } pub unsafe fn GetID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -717,9 +717,9 @@ impl IWSDHttpMessageParameters { } pub unsafe fn SetContext(&self, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), pcontext.param().abi()).ok() } pub unsafe fn GetContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -767,9 +767,9 @@ impl IWSDMessageParameters { } pub unsafe fn SetLocalAddress(&self, paddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalAddress)(windows_core::Interface::as_raw(self), paddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalAddress)(windows_core::Interface::as_raw(self), paddress.param().abi()).ok() } pub unsafe fn GetRemoteAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -777,9 +777,9 @@ impl IWSDMessageParameters { } pub unsafe fn SetRemoteAddress(&self, paddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteAddress)(windows_core::Interface::as_raw(self), paddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteAddress)(windows_core::Interface::as_raw(self), paddress.param().abi()).ok() } pub unsafe fn GetLowerParameters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -860,11 +860,11 @@ impl IWSDScopeMatchingRule { } pub unsafe fn MatchScopes(&self, pszscope1: P0, pszscope2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MatchScopes)(windows_core::Interface::as_raw(self), pszscope1.into_param().abi(), pszscope2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MatchScopes)(windows_core::Interface::as_raw(self), pszscope1.param().abi(), pszscope2.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -878,15 +878,15 @@ windows_core::imp::interface_hierarchy!(IWSDServiceMessaging, windows_core::IUnk impl IWSDServiceMessaging { pub unsafe fn SendResponse(&self, pbody: Option<*const core::ffi::c_void>, poperation: *const WSD_OPERATION, pmessageparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody.unwrap_or(std::ptr::null())), poperation, pmessageparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendResponse)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody.unwrap_or(std::ptr::null())), poperation, pmessageparameters.param().abi()).ok() } pub unsafe fn FaultRequest(&self, prequestheader: *const WSD_SOAP_HEADER, pmessageparameters: P0, pfault: Option<*const WSD_SOAP_FAULT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FaultRequest)(windows_core::Interface::as_raw(self), prequestheader, pmessageparameters.into_param().abi(), core::mem::transmute(pfault.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).FaultRequest)(windows_core::Interface::as_raw(self), prequestheader, pmessageparameters.param().abi(), core::mem::transmute(pfault.unwrap_or(std::ptr::null()))).ok() } } #[repr(C)] @@ -908,10 +908,10 @@ impl IWSDServiceProxy { } pub unsafe fn EndGetMetadata(&self, presult: P0) -> windows_core::Result<*mut WSD_METADATA_SECTION_LIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetMetadata)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EndGetMetadata)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetServiceMetadata(&self) -> windows_core::Result<*mut WSD_SERVICE_METADATA> { let mut result__ = std::mem::zeroed(); @@ -919,18 +919,18 @@ impl IWSDServiceProxy { } pub unsafe fn SubscribeToOperation(&self, poperation: *const WSD_OPERATION, punknown: P0, pany: *const WSDXML_ELEMENT, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubscribeToOperation)(windows_core::Interface::as_raw(self), poperation, punknown.into_param().abi(), pany, core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SubscribeToOperation)(windows_core::Interface::as_raw(self), poperation, punknown.param().abi(), pany, core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).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), poperation).ok() } pub unsafe fn SetEventingStatusCallback(&self, pstatus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventingStatusCallback)(windows_core::Interface::as_raw(self), pstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventingStatusCallback)(windows_core::Interface::as_raw(self), pstatus.param().abi()).ok() } pub unsafe fn GetEndpointProxy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -961,10 +961,10 @@ impl IWSDServiceProxyEventing { } pub unsafe fn EndGetMetadata(&self, presult: P0) -> windows_core::Result<*mut WSD_METADATA_SECTION_LIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndGetMetadata)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.EndGetMetadata)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetServiceMetadata(&self) -> windows_core::Result<*mut WSD_SERVICE_METADATA> { let mut result__ = std::mem::zeroed(); @@ -972,18 +972,18 @@ impl IWSDServiceProxyEventing { } pub unsafe fn SubscribeToOperation(&self, poperation: *const WSD_OPERATION, punknown: P0, pany: *const WSDXML_ELEMENT, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SubscribeToOperation)(windows_core::Interface::as_raw(self), poperation, punknown.into_param().abi(), pany, core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.SubscribeToOperation)(windows_core::Interface::as_raw(self), poperation, punknown.param().abi(), pany, core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn UnsubscribeToOperation(&self, poperation: *const WSD_OPERATION) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UnsubscribeToOperation)(windows_core::Interface::as_raw(self), poperation).ok() } pub unsafe fn SetEventingStatusCallback(&self, pstatus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventingStatusCallback)(windows_core::Interface::as_raw(self), pstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventingStatusCallback)(windows_core::Interface::as_raw(self), pstatus.param().abi()).ok() } pub unsafe fn GetEndpointProxy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -991,75 +991,75 @@ impl IWSDServiceProxyEventing { } pub unsafe fn SubscribeToMultipleOperations(&self, poperations: &[WSD_OPERATION], punknown: P0, pexpires: Option<*const WSD_EVENTING_EXPIRES>, pany: Option<*const WSDXML_ELEMENT>, ppexpires: Option<*mut *mut WSD_EVENTING_EXPIRES>, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), punknown.into_param().abi(), core::mem::transmute(pexpires.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), core::mem::transmute(ppexpires.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), punknown.param().abi(), core::mem::transmute(pexpires.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), core::mem::transmute(ppexpires.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn BeginSubscribeToMultipleOperations(&self, poperations: &[WSD_OPERATION], punknown: P0, pexpires: Option<*const WSD_EVENTING_EXPIRES>, pany: Option<*const WSDXML_ELEMENT>, pasyncstate: P1, pasynccallback: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), punknown.into_param().abi(), core::mem::transmute(pexpires.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.into_param().abi(), pasynccallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginSubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), punknown.param().abi(), core::mem::transmute(pexpires.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.param().abi(), pasynccallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EndSubscribeToMultipleOperations(&self, poperations: &[WSD_OPERATION], presult: P0, ppexpires: Option<*mut *mut WSD_EVENTING_EXPIRES>, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndSubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), presult.into_param().abi(), core::mem::transmute(ppexpires.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() + (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(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).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(), pany).ok() } pub unsafe fn BeginUnsubscribeToMultipleOperations(&self, poperations: &[WSD_OPERATION], pany: Option<*const WSDXML_ELEMENT>, pasyncstate: P0, pasynccallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUnsubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.into_param().abi(), pasynccallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginUnsubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.param().abi(), pasynccallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EndUnsubscribeToMultipleOperations(&self, poperations: &[WSD_OPERATION], presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUnsubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndUnsubscribeToMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), presult.param().abi()).ok() } pub unsafe fn RenewMultipleOperations(&self, poperations: &[WSD_OPERATION], pexpires: Option<*const WSD_EVENTING_EXPIRES>, pany: Option<*const WSDXML_ELEMENT>, ppexpires: Option<*mut *mut WSD_EVENTING_EXPIRES>, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RenewMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pexpires.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), core::mem::transmute(ppexpires.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn BeginRenewMultipleOperations(&self, poperations: &[WSD_OPERATION], pexpires: Option<*const WSD_EVENTING_EXPIRES>, pany: Option<*const WSDXML_ELEMENT>, pasyncstate: P0, pasynccallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRenewMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pexpires.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.into_param().abi(), pasynccallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginRenewMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pexpires.unwrap_or(std::ptr::null())), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.param().abi(), pasynccallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EndRenewMultipleOperations(&self, poperations: &[WSD_OPERATION], presult: P0, ppexpires: Option<*mut *mut WSD_EVENTING_EXPIRES>, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndRenewMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), presult.into_param().abi(), core::mem::transmute(ppexpires.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EndRenewMultipleOperations)(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(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetStatusForMultipleOperations(&self, poperations: &[WSD_OPERATION], pany: Option<*const WSDXML_ELEMENT>, ppexpires: Option<*mut *mut WSD_EVENTING_EXPIRES>, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStatusForMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pany.unwrap_or(std::ptr::null())), core::mem::transmute(ppexpires.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn BeginGetStatusForMultipleOperations(&self, poperations: &[WSD_OPERATION], pany: Option<*const WSDXML_ELEMENT>, pasyncstate: P0, pasynccallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetStatusForMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.into_param().abi(), pasynccallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginGetStatusForMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), core::mem::transmute(pany.unwrap_or(std::ptr::null())), pasyncstate.param().abi(), pasynccallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EndGetStatusForMultipleOperations(&self, poperations: &[WSD_OPERATION], presult: P0, ppexpires: Option<*mut *mut WSD_EVENTING_EXPIRES>, ppany: Option<*mut *mut WSDXML_ELEMENT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndGetStatusForMultipleOperations)(windows_core::Interface::as_raw(self), core::mem::transmute(poperations.as_ptr()), poperations.len().try_into().unwrap(), presult.into_param().abi(), core::mem::transmute(ppexpires.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EndGetStatusForMultipleOperations)(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(std::ptr::null_mut())), core::mem::transmute(ppany.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -1113,15 +1113,15 @@ windows_core::imp::interface_hierarchy!(IWSDTransportAddress, windows_core::IUnk impl IWSDTransportAddress { pub unsafe fn Serialize(&self, pszbuffer: &mut [u16], fsafe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.param().abi()).ok() } pub unsafe fn Deserialize(&self, pszbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.param().abi()).ok() } pub unsafe fn GetPort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1136,16 +1136,16 @@ impl IWSDTransportAddress { } pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTransportAddressEx)(windows_core::Interface::as_raw(self), fsafe.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTransportAddressEx)(windows_core::Interface::as_raw(self), fsafe.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetTransportAddress(&self, pszaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransportAddress)(windows_core::Interface::as_raw(self), pszaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransportAddress)(windows_core::Interface::as_raw(self), pszaddress.param().abi()).ok() } } #[repr(C)] @@ -1162,15 +1162,15 @@ windows_core::imp::interface_hierarchy!(IWSDUdpAddress, windows_core::IUnknown, impl IWSDUdpAddress { pub unsafe fn Serialize(&self, pszbuffer: &mut [u16], fsafe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Serialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), fsafe.param().abi()).ok() } pub unsafe fn Deserialize(&self, pszbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Deserialize)(windows_core::Interface::as_raw(self), pszbuffer.param().abi()).ok() } pub unsafe fn GetPort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1185,16 +1185,16 @@ impl IWSDUdpAddress { } pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetTransportAddressEx)(windows_core::Interface::as_raw(self), fsafe.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetTransportAddressEx)(windows_core::Interface::as_raw(self), fsafe.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetTransportAddress(&self, pszaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransportAddress)(windows_core::Interface::as_raw(self), pszaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransportAddress)(windows_core::Interface::as_raw(self), pszaddress.param().abi()).ok() } #[cfg(feature = "Win32_Networking_WinSock")] pub unsafe fn SetSockaddr(&self, psockaddr: *const super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::Result<()> { @@ -1206,9 +1206,9 @@ impl IWSDUdpAddress { } pub unsafe fn SetExclusive(&self, fexclusive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExclusive)(windows_core::Interface::as_raw(self), fexclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExclusive)(windows_core::Interface::as_raw(self), fexclusive.param().abi()).ok() } pub unsafe fn GetExclusive(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetExclusive)(windows_core::Interface::as_raw(self)).ok() @@ -1264,9 +1264,9 @@ impl IWSDUdpMessageParameters { } pub unsafe fn SetLocalAddress(&self, paddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocalAddress)(windows_core::Interface::as_raw(self), paddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocalAddress)(windows_core::Interface::as_raw(self), paddress.param().abi()).ok() } pub unsafe fn GetRemoteAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1274,9 +1274,9 @@ impl IWSDUdpMessageParameters { } pub unsafe fn SetRemoteAddress(&self, paddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRemoteAddress)(windows_core::Interface::as_raw(self), paddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRemoteAddress)(windows_core::Interface::as_raw(self), paddress.param().abi()).ok() } pub unsafe fn GetLowerParameters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1300,17 +1300,17 @@ windows_core::imp::interface_hierarchy!(IWSDXMLContext, windows_core::IUnknown); impl IWSDXMLContext { pub unsafe fn AddNamespace(&self, pszuri: P0, pszsuggestedprefix: P1, ppnamespace: Option<*mut *mut WSDXML_NAMESPACE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNamespace)(windows_core::Interface::as_raw(self), pszuri.into_param().abi(), pszsuggestedprefix.into_param().abi(), core::mem::transmute(ppnamespace.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).AddNamespace)(windows_core::Interface::as_raw(self), pszuri.param().abi(), pszsuggestedprefix.param().abi(), core::mem::transmute(ppnamespace.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddNameToNamespace(&self, pszuri: P0, pszname: P1, ppname: Option<*mut *mut WSDXML_NAME>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNameToNamespace)(windows_core::Interface::as_raw(self), pszuri.into_param().abi(), pszname.into_param().abi(), core::mem::transmute(ppname.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).AddNameToNamespace)(windows_core::Interface::as_raw(self), pszuri.param().abi(), pszname.param().abi(), core::mem::transmute(ppname.unwrap_or(std::ptr::null_mut()))).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(), blayernumber).ok() @@ -1397,33 +1397,33 @@ impl IWSDiscoveryProvider { } pub unsafe fn Attach(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn Detach(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SearchById(&self, pszid: P0, psztag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SearchById)(windows_core::Interface::as_raw(self), pszid.into_param().abi(), psztag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SearchById)(windows_core::Interface::as_raw(self), pszid.param().abi(), psztag.param().abi()).ok() } pub unsafe fn SearchByAddress(&self, pszaddress: P0, psztag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SearchByAddress)(windows_core::Interface::as_raw(self), pszaddress.into_param().abi(), psztag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SearchByAddress)(windows_core::Interface::as_raw(self), pszaddress.param().abi(), psztag.param().abi()).ok() } pub unsafe fn SearchByType(&self, ptypeslist: Option<*const WSD_NAME_LIST>, pscopeslist: Option<*const WSD_URI_LIST>, pszmatchby: P0, psztag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SearchByType)(windows_core::Interface::as_raw(self), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), pszmatchby.into_param().abi(), psztag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SearchByType)(windows_core::Interface::as_raw(self), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), pszmatchby.param().abi(), psztag.param().abi()).ok() } pub unsafe fn GetXMLContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1446,27 +1446,27 @@ windows_core::imp::interface_hierarchy!(IWSDiscoveryProviderNotify, windows_core impl IWSDiscoveryProviderNotify { pub unsafe fn Add(&self, pservice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pservice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pservice.param().abi()).ok() } pub unsafe fn Remove(&self, pservice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), pservice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), pservice.param().abi()).ok() } pub unsafe fn SearchFailed(&self, hr: windows_core::HRESULT, psztag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SearchFailed)(windows_core::Interface::as_raw(self), hr, psztag.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SearchComplete)(windows_core::Interface::as_raw(self), psztag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SearchComplete)(windows_core::Interface::as_raw(self), psztag.param().abi()).ok() } } #[repr(C)] @@ -1485,58 +1485,58 @@ impl IWSDiscoveryPublisher { } pub unsafe fn RegisterNotificationSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNotificationSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterNotificationSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn UnRegisterNotificationSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnRegisterNotificationSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnRegisterNotificationSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn Publish(&self, pszid: P0, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P1, ptypeslist: Option<*const WSD_NAME_LIST>, pscopeslist: Option<*const WSD_URI_LIST>, pxaddrslist: Option<*const WSD_URI_LIST>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Publish)(windows_core::Interface::as_raw(self), pszid.into_param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, pszsessionid.into_param().abi(), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null()))).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(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn UnPublish(&self, pszid: P0, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P1, pany: Option<*const WSDXML_ELEMENT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnPublish)(windows_core::Interface::as_raw(self), pszid.into_param().abi(), ullinstanceid, ullmessagenumber, pszsessionid.into_param().abi(), core::mem::transmute(pany.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).ok() } pub unsafe fn MatchProbe(&self, pprobemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: P0, pszid: P1, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P2, ptypeslist: Option<*const WSD_NAME_LIST>, pscopeslist: Option<*const WSD_URI_LIST>, pxaddrslist: Option<*const WSD_URI_LIST>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MatchProbe)(windows_core::Interface::as_raw(self), pprobemessage, pmessageparameters.into_param().abi(), pszid.into_param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, pszsessionid.into_param().abi(), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null()))).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(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn MatchResolve(&self, presolvemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: P0, pszid: P1, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P2, ptypeslist: Option<*const WSD_NAME_LIST>, pscopeslist: Option<*const WSD_URI_LIST>, pxaddrslist: Option<*const WSD_URI_LIST>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MatchResolve)(windows_core::Interface::as_raw(self), presolvemessage, pmessageparameters.into_param().abi(), pszid.into_param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, pszsessionid.into_param().abi(), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null()))).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(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn PublishEx(&self, pszid: P0, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { (windows_core::Interface::vtable(self).PublishEx)( windows_core::Interface::as_raw(self), - pszid.into_param().abi(), + pszid.param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, - pszsessionid.into_param().abi(), + pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null())), @@ -1550,19 +1550,19 @@ impl IWSDiscoveryPublisher { } pub unsafe fn MatchProbeEx(&self, pprobemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: P0, pszid: P1, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P2, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { (windows_core::Interface::vtable(self).MatchProbeEx)( windows_core::Interface::as_raw(self), pprobemessage, - pmessageparameters.into_param().abi(), - pszid.into_param().abi(), + pmessageparameters.param().abi(), + pszid.param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, - pszsessionid.into_param().abi(), + pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null())), @@ -1576,19 +1576,19 @@ impl IWSDiscoveryPublisher { } pub unsafe fn MatchResolveEx(&self, presolvemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: P0, pszid: P1, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: P2, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { (windows_core::Interface::vtable(self).MatchResolveEx)( windows_core::Interface::as_raw(self), presolvemessage, - pmessageparameters.into_param().abi(), - pszid.into_param().abi(), + pmessageparameters.param().abi(), + pszid.param().abi(), ullmetadataversion, ullinstanceid, ullmessagenumber, - pszsessionid.into_param().abi(), + pszsessionid.param().abi(), core::mem::transmute(ptypeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pscopeslist.unwrap_or(std::ptr::null())), core::mem::transmute(pxaddrslist.unwrap_or(std::ptr::null())), @@ -1602,15 +1602,15 @@ impl IWSDiscoveryPublisher { } pub unsafe fn RegisterScopeMatchingRule(&self, pscopematchingrule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterScopeMatchingRule)(windows_core::Interface::as_raw(self), pscopematchingrule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterScopeMatchingRule)(windows_core::Interface::as_raw(self), pscopematchingrule.param().abi()).ok() } pub unsafe fn UnRegisterScopeMatchingRule(&self, pscopematchingrule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnRegisterScopeMatchingRule)(windows_core::Interface::as_raw(self), pscopematchingrule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnRegisterScopeMatchingRule)(windows_core::Interface::as_raw(self), pscopematchingrule.param().abi()).ok() } pub unsafe fn GetXMLContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1639,15 +1639,15 @@ windows_core::imp::interface_hierarchy!(IWSDiscoveryPublisherNotify, windows_cor impl IWSDiscoveryPublisherNotify { pub unsafe fn ProbeHandler(&self, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProbeHandler)(windows_core::Interface::as_raw(self), psoap, pmessageparameters.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveHandler)(windows_core::Interface::as_raw(self), psoap, pmessageparameters.into_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 c504b1aac9..f7eb01194e 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -1,46 +1,46 @@ #[inline] pub unsafe fn CloseHandle(hobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> BOOL); - CloseHandle(hobject.into_param().abi()).ok() + CloseHandle(hobject.param().abi()).ok() } #[inline] pub unsafe fn CompareObjectHandles(hfirstobjecthandle: P0, hsecondobjecthandle: P1) -> BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("api-ms-win-core-handle-l1-1-0.dll" "system" fn CompareObjectHandles(hfirstobjecthandle : HANDLE, hsecondobjecthandle : HANDLE) -> BOOL); - CompareObjectHandles(hfirstobjecthandle.into_param().abi(), hsecondobjecthandle.into_param().abi()) + CompareObjectHandles(hfirstobjecthandle.param().abi(), hsecondobjecthandle.param().abi()) } #[inline] pub unsafe fn DuplicateHandle(hsourceprocesshandle: P0, hsourcehandle: P1, htargetprocesshandle: P2, lptargethandle: *mut HANDLE, dwdesiredaccess: u32, binherithandle: P3, dwoptions: DUPLICATE_HANDLE_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hsourceprocesshandle.into_param().abi(), hsourcehandle.into_param().abi(), htargetprocesshandle.into_param().abi(), lptargethandle, dwdesiredaccess, binherithandle.into_param().abi(), dwoptions).ok() + DuplicateHandle(hsourceprocesshandle.param().abi(), hsourcehandle.param().abi(), htargetprocesshandle.param().abi(), lptargethandle, dwdesiredaccess, binherithandle.param().abi(), dwoptions).ok() } #[inline] pub unsafe fn FreeLibrary(hlibmodule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FreeLibrary(hlibmodule : HMODULE) -> BOOL); - FreeLibrary(hlibmodule.into_param().abi()).ok() + FreeLibrary(hlibmodule.param().abi()).ok() } #[inline] pub unsafe fn GetHandleInformation(hobject: P0, lpdwflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetHandleInformation(hobject : HANDLE, lpdwflags : *mut u32) -> BOOL); - GetHandleInformation(hobject.into_param().abi(), lpdwflags).ok() + GetHandleInformation(hobject.param().abi(), lpdwflags).ok() } #[inline] pub unsafe fn GetLastError() -> WIN32_ERROR { @@ -50,35 +50,35 @@ pub unsafe fn GetLastError() -> WIN32_ERROR { #[inline] pub unsafe fn GlobalFree(hmem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalFree(hmem : HGLOBAL) -> HGLOBAL); - let result__ = GlobalFree(hmem.into_param().abi()); + let result__ = GlobalFree(hmem.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LocalFree(hmem: P0) -> HLOCAL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocalFree(hmem : HLOCAL) -> HLOCAL); - LocalFree(hmem.into_param().abi()) + LocalFree(hmem.param().abi()) } #[inline] pub unsafe fn RtlNtStatusToDosError(status: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlNtStatusToDosError(status : NTSTATUS) -> u32); - RtlNtStatusToDosError(status.into_param().abi()) + RtlNtStatusToDosError(status.param().abi()) } #[inline] pub unsafe fn SetHandleInformation(hobject: P0, dwmask: u32, dwflags: HANDLE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetHandleInformation(hobject : HANDLE, dwmask : u32, dwflags : HANDLE_FLAGS) -> BOOL); - SetHandleInformation(hobject.into_param().abi(), dwmask, dwflags).ok() + SetHandleInformation(hobject.param().abi(), dwmask, dwflags).ok() } #[inline] pub unsafe fn SetLastError(dwerrcode: WIN32_ERROR) { @@ -93,18 +93,18 @@ pub unsafe fn SetLastErrorEx(dwerrcode: WIN32_ERROR, dwtype: u32) { #[inline] pub unsafe fn SysAddRefString(bstrstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysAddRefString(bstrstring : std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - SysAddRefString(bstrstring.into_param().abi()).ok() + SysAddRefString(bstrstring.param().abi()).ok() } #[inline] pub unsafe fn SysAllocString(psz: P0) -> windows_core::BSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysAllocString(psz : windows_core::PCWSTR) -> windows_core::BSTR); - SysAllocString(psz.into_param().abi()) + SysAllocString(psz.param().abi()) } #[inline] pub unsafe fn SysAllocStringByteLen(psz: Option<&[u8]>) -> windows_core::BSTR { @@ -119,50 +119,50 @@ pub unsafe fn SysAllocStringLen(strin: Option<&[u16]>) -> windows_core::BSTR { #[inline] pub unsafe fn SysFreeString(bstrstring: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysFreeString(bstrstring : std::mem::MaybeUninit < windows_core::BSTR >)); - SysFreeString(bstrstring.into_param().abi()) + SysFreeString(bstrstring.param().abi()) } #[inline] pub unsafe fn SysReAllocString(pbstr: *mut windows_core::BSTR, psz: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysReAllocString(pbstr : *mut std::mem::MaybeUninit < windows_core::BSTR >, psz : windows_core::PCWSTR) -> i32); - SysReAllocString(core::mem::transmute(pbstr), psz.into_param().abi()) + SysReAllocString(core::mem::transmute(pbstr), psz.param().abi()) } #[inline] pub unsafe fn SysReAllocStringLen(pbstr: *mut windows_core::BSTR, psz: P0, len: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysReAllocStringLen(pbstr : *mut std::mem::MaybeUninit < windows_core::BSTR >, psz : windows_core::PCWSTR, len : u32) -> i32); - SysReAllocStringLen(core::mem::transmute(pbstr), psz.into_param().abi(), len) + SysReAllocStringLen(core::mem::transmute(pbstr), psz.param().abi(), len) } #[inline] pub unsafe fn SysReleaseString(bstrstring: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysReleaseString(bstrstring : std::mem::MaybeUninit < windows_core::BSTR >)); - SysReleaseString(bstrstring.into_param().abi()) + SysReleaseString(bstrstring.param().abi()) } #[inline] pub unsafe fn SysStringByteLen(bstr: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysStringByteLen(bstr : std::mem::MaybeUninit < windows_core::BSTR >) -> u32); - SysStringByteLen(bstr.into_param().abi()) + SysStringByteLen(bstr.param().abi()) } #[inline] pub unsafe fn SysStringLen(pbstr: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SysStringLen(pbstr : std::mem::MaybeUninit < windows_core::BSTR >) -> u32); - SysStringLen(pbstr.into_param().abi()) + SysStringLen(pbstr.param().abi()) } pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID: WIN32_ERROR = WIN32_ERROR(15705u32); pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED: WIN32_ERROR = WIN32_ERROR(15704u32); @@ -11602,9 +11602,9 @@ impl core::ops::Not for BOOL { } } } -impl windows_core::IntoParam for bool { - unsafe fn into_param(self) -> windows_core::Param { - windows_core::Param::Owned(self.into()) +impl windows_core::Param for bool { + unsafe fn param(self) -> windows_core::ParamValue { + windows_core::ParamValue::Owned(self.into()) } } impl BOOLEAN { @@ -11675,9 +11675,9 @@ impl core::ops::Not for BOOLEAN { } } } -impl windows_core::IntoParam for bool { - unsafe fn into_param(self) -> windows_core::Param { - windows_core::Param::Owned(self.into()) +impl windows_core::Param for bool { + unsafe fn param(self) -> windows_core::ParamValue { + windows_core::ParamValue::Owned(self.into()) } } impl NTSTATUS { diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs index 5259445368..006f5f7780 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs @@ -7,11 +7,11 @@ pub unsafe fn CheckGamingPrivilegeSilently(privilegeid: u32, scope: &windows_cor #[inline] pub unsafe fn CheckGamingPrivilegeSilentlyForUser(user: P0, privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn CheckGamingPrivilegeSilentlyForUser(user : * mut core::ffi::c_void, privilegeid : u32, scope : std::mem::MaybeUninit < windows_core::HSTRING >, policy : std::mem::MaybeUninit < windows_core::HSTRING >, hasprivilege : *mut super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CheckGamingPrivilegeSilentlyForUser(user.into_param().abi(), privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| result__) + CheckGamingPrivilegeSilentlyForUser(user.param().abi(), privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| 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<()> { @@ -21,10 +21,10 @@ pub unsafe fn CheckGamingPrivilegeWithUI(privilegeid: u32, scope: &windows_core: #[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<()> where - P0: windows_core::IntoParam, + 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 : std::mem::MaybeUninit < windows_core::HSTRING >, policy : std::mem::MaybeUninit < windows_core::HSTRING >, friendlymessage : std::mem::MaybeUninit < windows_core::HSTRING >, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - CheckGamingPrivilegeWithUIForUser(user.into_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(std::ptr::null()))).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(std::ptr::null()))).ok() } #[inline] pub unsafe fn GetExpandedResourceExclusiveCpuCount() -> windows_core::Result { @@ -47,10 +47,10 @@ pub unsafe fn HasExpandedResources() -> windows_core::Result(waitforcompletion: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ProcessPendingGameUI(waitforcompletion : super::Foundation:: BOOL) -> windows_core::HRESULT); - ProcessPendingGameUI(waitforcompletion.into_param().abi()).ok() + ProcessPendingGameUI(waitforcompletion.param().abi()).ok() } #[inline] pub unsafe fn ReleaseExclusiveCpuSets() -> windows_core::Result<()> { @@ -65,10 +65,10 @@ pub unsafe fn ShowChangeFriendRelationshipUI(targetuserxuid: &windows_core::HSTR #[inline] pub unsafe fn ShowChangeFriendRelationshipUIForUser(user: P0, targetuserxuid: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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 : std::mem::MaybeUninit < windows_core::HSTRING >, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowChangeFriendRelationshipUIForUser(user.into_param().abi(), core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + ShowChangeFriendRelationshipUIForUser(user.param().abi(), core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn ShowCustomizeUserProfileUI(completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -78,10 +78,10 @@ pub unsafe fn ShowCustomizeUserProfileUI(completionroutine: GameUICompletionRout #[inline] pub unsafe fn ShowCustomizeUserProfileUIForUser(user: P0, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + ShowCustomizeUserProfileUIForUser(user.param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn ShowFindFriendsUI(completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -91,10 +91,10 @@ pub unsafe fn ShowFindFriendsUI(completionroutine: GameUICompletionRoutine, cont #[inline] pub unsafe fn ShowFindFriendsUIForUser(user: P0, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + ShowFindFriendsUIForUser(user.param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn ShowGameInfoUI(titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -104,10 +104,10 @@ pub unsafe fn ShowGameInfoUI(titleid: u32, completionroutine: GameUICompletionRo #[inline] pub unsafe fn ShowGameInfoUIForUser(user: P0, titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), titleid, completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + ShowGameInfoUIForUser(user.param().abi(), titleid, completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).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<()> { @@ -117,10 +117,10 @@ pub unsafe fn ShowGameInviteUI(serviceconfigurationid: &windows_core::HSTRING, s #[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<()> where - P0: windows_core::IntoParam, + 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 : std::mem::MaybeUninit < windows_core::HSTRING >, sessiontemplatename : std::mem::MaybeUninit < windows_core::HSTRING >, sessionid : std::mem::MaybeUninit < windows_core::HSTRING >, invitationdisplaytext : std::mem::MaybeUninit < windows_core::HSTRING >, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInviteUIForUser(user.into_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(std::ptr::null()))).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(std::ptr::null()))).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<()> { @@ -130,10 +130,10 @@ pub unsafe fn ShowGameInviteUIWithContext(serviceconfigurationid: &windows_core: #[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<()> where - P0: windows_core::IntoParam, + 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 : std::mem::MaybeUninit < windows_core::HSTRING >, sessiontemplatename : std::mem::MaybeUninit < windows_core::HSTRING >, sessionid : std::mem::MaybeUninit < windows_core::HSTRING >, invitationdisplaytext : std::mem::MaybeUninit < windows_core::HSTRING >, customactivationcontext : std::mem::MaybeUninit < windows_core::HSTRING >, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowGameInviteUIWithContextForUser(user.into_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(std::ptr::null()))).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(std::ptr::null()))).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<()> { @@ -143,10 +143,10 @@ pub unsafe fn ShowPlayerPickerUI(promptdisplaytext: &windows_core::HSTRING, xuid #[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<()> where - P0: windows_core::IntoParam, + 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 : std::mem::MaybeUninit < windows_core::HSTRING >, xuids : *const std::mem::MaybeUninit < windows_core::HSTRING >, xuidscount : usize, preselectedxuids : *const std::mem::MaybeUninit < windows_core::HSTRING >, preselectedxuidscount : usize, minselectioncount : usize, maxselectioncount : usize, completionroutine : PlayerPickerUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowPlayerPickerUIForUser(user.into_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(std::ptr::null()))).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(std::ptr::null()))).ok() } #[inline] pub unsafe fn ShowProfileCardUI(targetuserxuid: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -156,10 +156,10 @@ pub unsafe fn ShowProfileCardUI(targetuserxuid: &windows_core::HSTRING, completi #[inline] pub unsafe fn ShowProfileCardUIForUser(user: P0, targetuserxuid: &windows_core::HSTRING, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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 : std::mem::MaybeUninit < windows_core::HSTRING >, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_core::HRESULT); - ShowProfileCardUIForUser(user.into_param().abi(), core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + ShowProfileCardUIForUser(user.param().abi(), core::mem::transmute_copy(targetuserxuid), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn ShowTitleAchievementsUI(titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -169,10 +169,10 @@ pub unsafe fn ShowTitleAchievementsUI(titleid: u32, completionroutine: GameUICom #[inline] pub unsafe fn ShowTitleAchievementsUIForUser(user: P0, titleid: u32, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), titleid, completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + ShowTitleAchievementsUIForUser(user.param().abi(), titleid, completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn ShowUserSettingsUI(completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -182,10 +182,10 @@ pub unsafe fn ShowUserSettingsUI(completionroutine: GameUICompletionRoutine, con #[inline] pub unsafe fn ShowUserSettingsUIForUser(user: P0, completionroutine: GameUICompletionRoutine, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + ShowUserSettingsUIForUser(user.param().abi(), completionroutine, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn TryCancelPendingGameUI() -> super::Foundation::BOOL { @@ -197,10 +197,10 @@ windows_core::imp::interface_hierarchy!(IGameExplorer, windows_core::IUnknown); impl IGameExplorer { pub unsafe fn AddGame(&self, bstrgdfbinarypath: P0, bstrgameinstalldirectory: P1, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddGame)(windows_core::Interface::as_raw(self), bstrgdfbinarypath.into_param().abi(), bstrgameinstalldirectory.into_param().abi(), installscope, pguidinstanceid).ok() + (windows_core::Interface::vtable(self).AddGame)(windows_core::Interface::as_raw(self), bstrgdfbinarypath.param().abi(), bstrgameinstalldirectory.param().abi(), installscope, 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() @@ -210,10 +210,10 @@ impl IGameExplorer { } pub unsafe fn VerifyAccess(&self, bstrgdfbinarypath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VerifyAccess)(windows_core::Interface::as_raw(self), bstrgdfbinarypath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VerifyAccess)(windows_core::Interface::as_raw(self), bstrgdfbinarypath.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -229,23 +229,23 @@ windows_core::imp::interface_hierarchy!(IGameExplorer2, windows_core::IUnknown); impl IGameExplorer2 { pub unsafe fn InstallGame(&self, binarygdfpath: P0, installdirectory: P1, installscope: GAME_INSTALL_SCOPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallGame)(windows_core::Interface::as_raw(self), binarygdfpath.into_param().abi(), installdirectory.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UninstallGame)(windows_core::Interface::as_raw(self), binarygdfpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UninstallGame)(windows_core::Interface::as_raw(self), binarygdfpath.param().abi()).ok() } pub unsafe fn CheckAccess(&self, binarygdfpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckAccess)(windows_core::Interface::as_raw(self), binarygdfpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckAccess)(windows_core::Interface::as_raw(self), binarygdfpath.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -280,9 +280,9 @@ impl IGameStatistics { } pub unsafe fn SetCategoryTitle(&self, categoryindex: u16, title: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCategoryTitle)(windows_core::Interface::as_raw(self), categoryindex, title.into_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__ = std::mem::zeroed(); @@ -293,16 +293,16 @@ impl IGameStatistics { } pub unsafe fn SetStatistic(&self, categoryindex: u16, statindex: u16, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatistic)(windows_core::Interface::as_raw(self), categoryindex, statindex, name.into_param().abi(), value.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), trackchanges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), trackchanges.param().abi()).ok() } pub unsafe fn SetLastPlayedCategory(&self, categoryindex: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLastPlayedCategory)(windows_core::Interface::as_raw(self), categoryindex).ok() @@ -333,15 +333,15 @@ windows_core::imp::interface_hierarchy!(IGameStatisticsMgr, windows_core::IUnkno impl IGameStatisticsMgr { pub unsafe fn GetGameStatistics(&self, gdfbinarypath: P0, opentype: GAMESTATS_OPEN_TYPE, popenresult: *mut GAMESTATS_OPEN_RESULT, ppistats: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGameStatistics)(windows_core::Interface::as_raw(self), gdfbinarypath.into_param().abi(), opentype, popenresult, core::mem::transmute(ppistats)).ok() + (windows_core::Interface::vtable(self).GetGameStatistics)(windows_core::Interface::as_raw(self), gdfbinarypath.param().abi(), opentype, popenresult, core::mem::transmute(ppistats)).ok() } pub unsafe fn RemoveGameStatistics(&self, gdfbinarypath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveGameStatistics)(windows_core::Interface::as_raw(self), gdfbinarypath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveGameStatistics)(windows_core::Interface::as_raw(self), gdfbinarypath.param().abi()).ok() } } #[repr(C)] @@ -355,20 +355,20 @@ windows_core::imp::interface_hierarchy!(IXblIdpAuthManager, windows_core::IUnkno impl IXblIdpAuthManager { pub unsafe fn SetGamerAccount(&self, msaaccountid: P0, xuid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGamerAccount)(windows_core::Interface::as_raw(self), msaaccountid.into_param().abi(), xuid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGamerAccount)(windows_core::Interface::as_raw(self), msaaccountid.param().abi(), xuid.param().abi()).ok() } pub unsafe fn GetGamerAccount(&self, msaaccountid: *mut windows_core::PWSTR, xuid: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGamerAccount)(windows_core::Interface::as_raw(self), msaaccountid, xuid).ok() } pub unsafe fn SetAppViewInitialized(&self, appsid: P0, msaaccountid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppViewInitialized)(windows_core::Interface::as_raw(self), appsid.into_param().abi(), msaaccountid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppViewInitialized)(windows_core::Interface::as_raw(self), appsid.param().abi(), msaaccountid.param().abi()).ok() } pub unsafe fn GetEnvironment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -380,17 +380,17 @@ impl IXblIdpAuthManager { } pub unsafe fn GetTokenAndSignatureWithTokenResult(&self, msaaccountid: P0, appsid: P1, msatarget: P2, msapolicy: P3, httpmethod: P4, uri: P5, headers: P6, body: &[u8], forcerefresh: P7) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTokenAndSignatureWithTokenResult)(windows_core::Interface::as_raw(self), msaaccountid.into_param().abi(), appsid.into_param().abi(), msatarget.into_param().abi(), msapolicy.into_param().abi(), httpmethod.into_param().abi(), uri.into_param().abi(), headers.into_param().abi(), core::mem::transmute(body.as_ptr()), body.len().try_into().unwrap(), forcerefresh.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTokenAndSignatureWithTokenResult)(windows_core::Interface::as_raw(self), msaaccountid.param().abi(), appsid.param().abi(), msatarget.param().abi(), msapolicy.param().abi(), httpmethod.param().abi(), uri.param().abi(), headers.param().abi(), core::mem::transmute(body.as_ptr()), body.len().try_into().unwrap(), forcerefresh.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -408,16 +408,16 @@ windows_core::imp::interface_hierarchy!(IXblIdpAuthManager2, windows_core::IUnkn impl IXblIdpAuthManager2 { pub unsafe fn GetUserlessTokenAndSignatureWithTokenResult(&self, appsid: P0, msatarget: P1, msapolicy: P2, httpmethod: P3, uri: P4, headers: P5, body: &[u8], forcerefresh: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserlessTokenAndSignatureWithTokenResult)(windows_core::Interface::as_raw(self), appsid.into_param().abi(), msatarget.into_param().abi(), msapolicy.into_param().abi(), httpmethod.into_param().abi(), uri.into_param().abi(), headers.into_param().abi(), core::mem::transmute(body.as_ptr()), body.len().try_into().unwrap(), forcerefresh.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUserlessTokenAndSignatureWithTokenResult)(windows_core::Interface::as_raw(self), appsid.param().abi(), msatarget.param().abi(), msapolicy.param().abi(), httpmethod.param().abi(), uri.param().abi(), headers.param().abi(), core::mem::transmute(body.as_ptr()), body.len().try_into().unwrap(), forcerefresh.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 5437b8d985..b1eebaf676 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -11,19 +11,19 @@ pub unsafe fn CompareStringA(locale: u32, dwcmpflags: u32, lpstring1: &[i8], lps #[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: P1) -> COMPARESTRING_RESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), lparam.into_param().abi()) + 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(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), lparam.param().abi()) } #[inline] pub unsafe fn CompareStringOrdinal(lpstring1: &[u16], lpstring2: &[u16], bignorecase: P0) -> COMPARESTRING_RESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CompareStringOrdinal(lpstring1 : windows_core::PCWSTR, cchcount1 : i32, lpstring2 : windows_core::PCWSTR, cchcount2 : i32, bignorecase : super::Foundation:: BOOL) -> COMPARESTRING_RESULT); - CompareStringOrdinal(core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap(), bignorecase.into_param().abi()) + CompareStringOrdinal(core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap(), bignorecase.param().abi()) } #[inline] pub unsafe fn CompareStringW(locale: u32, dwcmpflags: u32, lpstring1: &[u16], lpstring2: &[u16]) -> COMPARESTRING_RESULT { @@ -58,12 +58,12 @@ pub unsafe fn EnumCalendarInfoExA(lpcalinfoenumprocex: CALINFO_ENUMPROCEXA, loca #[inline] pub unsafe fn EnumCalendarInfoExEx(pcalinfoenumprocexex: CALINFO_ENUMPROCEXEX, lplocalename: P0, calendar: u32, lpreserved: P1, caltype: u32, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(pcalinfoenumprocexex, lplocalename.into_param().abi(), calendar, lpreserved.into_param().abi(), caltype, lparam.into_param().abi()).ok() + EnumCalendarInfoExEx(pcalinfoenumprocexex, lplocalename.param().abi(), calendar, lpreserved.param().abi(), caltype, lparam.param().abi()).ok() } #[inline] pub unsafe fn EnumCalendarInfoExW(lpcalinfoenumprocex: CALINFO_ENUMPROCEXW, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { @@ -88,11 +88,11 @@ pub unsafe fn EnumDateFormatsExA(lpdatefmtenumprocex: DATEFMT_ENUMPROCEXA, local #[inline] pub unsafe fn EnumDateFormatsExEx(lpdatefmtenumprocexex: DATEFMT_ENUMPROCEXEX, lplocalename: P0, dwflags: ENUM_DATE_FORMATS_FLAGS, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(lpdatefmtenumprocexex, lplocalename.into_param().abi(), dwflags, lparam.into_param().abi()).ok() + EnumDateFormatsExEx(lpdatefmtenumprocexex, lplocalename.param().abi(), dwflags, lparam.param().abi()).ok() } #[inline] pub unsafe fn EnumDateFormatsExW(lpdatefmtenumprocex: DATEFMT_ENUMPROCEXW, locale: u32, dwflags: u32) -> windows_core::Result<()> { @@ -132,10 +132,10 @@ pub unsafe fn EnumSystemGeoID(geoclass: u32, parentgeoid: i32, lpgeoenumproc: GE #[inline] pub unsafe fn EnumSystemGeoNames(geoclass: u32, geoenumproc: GEO_ENUMNAMEPROC, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumSystemGeoNames(geoclass : u32, geoenumproc : GEO_ENUMNAMEPROC, data : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); - EnumSystemGeoNames(geoclass, geoenumproc, data.into_param().abi()).ok() + EnumSystemGeoNames(geoclass, geoenumproc, data.param().abi()).ok() } #[inline] pub unsafe fn EnumSystemLanguageGroupsA(lplanguagegroupenumproc: LANGUAGEGROUP_ENUMPROCA, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam: isize) -> windows_core::Result<()> { @@ -155,10 +155,10 @@ pub unsafe fn EnumSystemLocalesA(lplocaleenumproc: LOCALE_ENUMPROCA, dwflags: u3 #[inline] pub unsafe fn EnumSystemLocalesEx(lplocaleenumprocex: LOCALE_ENUMPROCEX, dwflags: u32, lparam: P0, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lplocaleenumprocex, dwflags, lparam.into_param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + EnumSystemLocalesEx(lplocaleenumprocex, dwflags, lparam.param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn EnumSystemLocalesW(lplocaleenumproc: LOCALE_ENUMPROCW, dwflags: u32) -> windows_core::Result<()> { @@ -173,11 +173,11 @@ pub unsafe fn EnumTimeFormatsA(lptimefmtenumproc: TIMEFMT_ENUMPROCA, locale: u32 #[inline] pub unsafe fn EnumTimeFormatsEx(lptimefmtenumprocex: TIMEFMT_ENUMPROCEX, lplocalename: P0, dwflags: u32, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(lptimefmtenumprocex, lplocalename.into_param().abi(), dwflags, lparam.into_param().abi()).ok() + EnumTimeFormatsEx(lptimefmtenumprocex, lplocalename.param().abi(), dwflags, lparam.param().abi()).ok() } #[inline] pub unsafe fn EnumTimeFormatsW(lptimefmtenumproc: TIMEFMT_ENUMPROCW, locale: u32, dwflags: TIME_FORMAT_FLAGS) -> windows_core::Result<()> { @@ -202,19 +202,19 @@ pub unsafe fn FindNLSString(locale: u32, dwfindnlsstringflags: u32, lpstringsour #[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: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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(std::ptr::null_mut())), core::mem::transmute(lpversioninformation.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), sorthandle.into_param().abi()) + 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(std::ptr::null_mut())), core::mem::transmute(lpversioninformation.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), sorthandle.param().abi()) } #[inline] pub unsafe fn FindStringOrdinal(dwfindstringordinalflags: u32, lpstringsource: &[u16], lpstringvalue: &[u16], bignorecase: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(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_param().abi()) + 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.param().abi()) } #[inline] pub unsafe fn FoldStringA(dwmapflags: FOLD_STRING_MAP_FLAGS, lpsrcstr: &[u8], lpdeststr: Option<&mut [u8]>) -> i32 { @@ -249,11 +249,11 @@ pub unsafe fn GetCPInfoExW(codepage: u32, dwflags: u32, lpcpinfoex: *mut CPINFOE #[inline] pub unsafe fn GetCalendarDateFormatEx(lpszlocale: P0, dwflags: u32, lpcaldatetime: *const CALDATETIME, lpformat: P1, lpdatestr: windows_core::PWSTR, cchdate: i32) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, lpcaldatetime, lpformat.into_param().abi(), core::mem::transmute(lpdatestr), 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 { @@ -263,11 +263,11 @@ pub unsafe fn GetCalendarInfoA(locale: u32, calendar: u32, caltype: u32, lpcalda #[inline] pub unsafe fn GetCalendarInfoEx(lplocalename: P0, calendar: u32, lpreserved: P1, caltype: u32, lpcaldata: Option<&mut [u16]>, lpvalue: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), calendar, lpreserved.into_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(std::ptr::null_mut()))) + 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetCalendarInfoW(locale: u32, calendar: u32, caltype: u32, lpcaldata: Option<&mut [u16]>, lpvalue: Option<*mut u32>) -> i32 { @@ -282,96 +282,96 @@ pub unsafe fn GetCalendarSupportedDateRange(calendar: u32, lpcalmindatetime: *mu #[inline] pub unsafe fn GetCurrencyFormatA(locale: u32, dwflags: u32, lpvalue: P0, lpformat: Option<*const CURRENCYFMTA>, lpcurrencystr: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, lpvalue.into_param().abi(), core::mem::transmute(lpformat.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P1, lpformat: Option<*const CURRENCYFMTW>, lpcurrencystr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, lpvalue.into_param().abi(), core::mem::transmute(lpformat.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P0, lpformat: Option<*const CURRENCYFMTW>, lpcurrencystr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, lpvalue.into_param().abi(), core::mem::transmute(lpformat.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P0, lpdatestr: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, core::mem::transmute(lpdate.unwrap_or(std::ptr::null())), lpformat.into_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(std::ptr::null())), 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: P1, lpdatestr: Option<&mut [u16]>, lpcalendar: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwflags, core::mem::transmute(lpdate.unwrap_or(std::ptr::null())), lpformat.into_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.into_param().abi()) + GetDateFormatEx(lplocalename.param().abi(), dwflags, core::mem::transmute(lpdate.unwrap_or(std::ptr::null())), 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: P0, lpdatestr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, core::mem::transmute(lpdate.unwrap_or(std::ptr::null())), lpformat.into_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(std::ptr::null())), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetDistanceOfClosestLanguageInList(pszlanguage.into_param().abi(), pszlanguageslist.into_param().abi(), wchlistdelimiter, &mut result__).map(|| result__) + GetDistanceOfClosestLanguageInList(pszlanguage.param().abi(), pszlanguageslist.param().abi(), wchlistdelimiter, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetDurationFormat(locale: u32, dwflags: u32, lpduration: Option<*const super::Foundation::SYSTEMTIME>, ullduration: u64, lpformat: P0, lpdurationstr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, core::mem::transmute(lpduration.unwrap_or(std::ptr::null())), ullduration, lpformat.into_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(std::ptr::null())), 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: P1, lpdurationstr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, core::mem::transmute(lpduration.unwrap_or(std::ptr::null())), ullduration, lpformat.into_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(std::ptr::null())), 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: P0, pfilemuiinfo: Option<*mut FILEMUIINFO>, pcbfilemuiinfo: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, pcwszfilepath.into_param().abi(), core::mem::transmute(pfilemuiinfo.unwrap_or(std::ptr::null_mut())), pcbfilemuiinfo).ok() + GetFileMUIInfo(dwflags, pcwszfilepath.param().abi(), core::mem::transmute(pfilemuiinfo.unwrap_or(std::ptr::null_mut())), pcbfilemuiinfo).ok() } #[inline] pub unsafe fn GetFileMUIPath(dwflags: u32, pcwszfilepath: P0, pwszlanguage: windows_core::PWSTR, pcchlanguage: *mut u32, pwszfilemuipath: windows_core::PWSTR, pcchfilemuipath: *mut u32, pululenumerator: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, pcwszfilepath.into_param().abi(), core::mem::transmute(pwszlanguage), pcchlanguage, core::mem::transmute(pwszfilemuipath), pcchfilemuipath, pululenumerator).ok() + GetFileMUIPath(dwflags, pcwszfilepath.param().abi(), core::mem::transmute(pwszlanguage), pcchlanguage, core::mem::transmute(pwszfilemuipath), pcchfilemuipath, pululenumerator).ok() } #[inline] pub unsafe fn GetGeoInfoA(location: i32, geotype: SYSGEOTYPE, lpgeodata: Option<&mut [u8]>, langid: u16) -> i32 { @@ -381,10 +381,10 @@ pub unsafe fn GetGeoInfoA(location: i32, geotype: SYSGEOTYPE, lpgeodata: Option< #[inline] pub unsafe fn GetGeoInfoEx(location: P0, geotype: SYSGEOTYPE, geodata: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + 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.into_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())) + 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 { @@ -399,10 +399,10 @@ pub unsafe fn GetLocaleInfoA(locale: u32, lctype: u32, lplcdata: Option<&mut [u8 #[inline] pub unsafe fn GetLocaleInfoEx(lplocalename: P0, lctype: u32, lplcdata: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + 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.into_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())) + 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 { @@ -417,35 +417,35 @@ pub unsafe fn GetNLSVersion(function: u32, locale: u32, lpversioninformation: *m #[inline] pub unsafe fn GetNLSVersionEx(function: u32, lplocalename: P0, lpversioninformation: *mut NLSVERSIONINFOEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNLSVersionEx(function : u32, lplocalename : windows_core::PCWSTR, lpversioninformation : *mut NLSVERSIONINFOEX) -> super::Foundation:: BOOL); - GetNLSVersionEx(function, lplocalename.into_param().abi(), lpversioninformation).ok() + GetNLSVersionEx(function, lplocalename.param().abi(), lpversioninformation).ok() } #[inline] pub unsafe fn GetNumberFormatA(locale: u32, dwflags: u32, lpvalue: P0, lpformat: Option<*const NUMBERFMTA>, lpnumberstr: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, lpvalue.into_param().abi(), core::mem::transmute(lpformat.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P1, lpformat: Option<*const NUMBERFMTW>, lpnumberstr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, lpvalue.into_param().abi(), core::mem::transmute(lpformat.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P0, lpformat: Option<*const NUMBERFMTW>, lpnumberstr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, lpvalue.into_param().abi(), core::mem::transmute(lpformat.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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 { @@ -460,10 +460,10 @@ pub unsafe fn GetProcessPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut #[inline] pub unsafe fn GetStringScripts(dwflags: u32, lpstring: P0, cchstring: i32, lpscripts: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwflags, lpstring.into_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())) + 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<()> { @@ -473,18 +473,18 @@ pub unsafe fn GetStringTypeA(locale: u32, dwinfotype: u32, lpsrcstr: &[u8], lpch #[inline] pub unsafe fn GetStringTypeExA(locale: u32, dwinfotype: u32, lpsrcstr: P0, cchsrc: i32, lpchartype: *mut u16) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(locale, dwinfotype, lpsrcstr.into_param().abi(), cchsrc, lpchartype) + GetStringTypeExA(locale, dwinfotype, lpsrcstr.param().abi(), cchsrc, lpchartype) } #[inline] pub unsafe fn GetStringTypeExW(locale: u32, dwinfotype: u32, lpsrcstr: P0, cchsrc: i32, lpchartype: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(locale, dwinfotype, lpsrcstr.into_param().abi(), cchsrc, lpchartype).ok() + GetStringTypeExW(locale, dwinfotype, lpsrcstr.param().abi(), cchsrc, lpchartype).ok() } #[inline] pub unsafe fn GetStringTypeW(dwinfotype: u32, lpsrcstr: &[u16], lpchartype: *mut u16) -> windows_core::Result<()> { @@ -520,19 +520,19 @@ pub unsafe fn GetSystemPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut #[inline] pub unsafe fn GetTextCharset(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextCharset(hdc : super::Graphics::Gdi:: HDC) -> i32); - GetTextCharset(hdc.into_param().abi()) + GetTextCharset(hdc.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetTextCharsetInfo(hdc: P0, lpsig: Option<*mut FONTSIGNATURE>, dwflags: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextCharsetInfo(hdc : super::Graphics::Gdi:: HDC, lpsig : *mut FONTSIGNATURE, dwflags : u32) -> i32); - GetTextCharsetInfo(hdc.into_param().abi(), core::mem::transmute(lpsig.unwrap_or(std::ptr::null_mut())), dwflags) + GetTextCharsetInfo(hdc.param().abi(), core::mem::transmute(lpsig.unwrap_or(std::ptr::null_mut())), dwflags) } #[inline] pub unsafe fn GetThreadLocale() -> u32 { @@ -552,35 +552,35 @@ pub unsafe fn GetThreadUILanguage() -> u16 { #[inline] pub unsafe fn GetTimeFormatA(locale: u32, dwflags: u32, lptime: Option<*const super::Foundation::SYSTEMTIME>, lpformat: P0, lptimestr: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, core::mem::transmute(lptime.unwrap_or(std::ptr::null())), lpformat.into_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(std::ptr::null())), 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: P1, lptimestr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, core::mem::transmute(lptime.unwrap_or(std::ptr::null())), lpformat.into_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(std::ptr::null())), 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: P0, lptimestr: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(locale, dwflags, core::mem::transmute(lptime.unwrap_or(std::ptr::null())), lpformat.into_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(std::ptr::null())), 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: P0, pwszfallbacklanguages: windows_core::PWSTR, pcchfallbacklanguages: Option<*mut u32>, pattributes: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, pwmszlanguage.into_param().abi(), core::mem::transmute(pwszfallbacklanguages), core::mem::transmute(pcchfallbacklanguages.unwrap_or(std::ptr::null_mut())), pattributes).ok() + GetUILanguageInfo(dwflags, pwmszlanguage.param().abi(), core::mem::transmute(pwszfallbacklanguages), core::mem::transmute(pcchfallbacklanguages.unwrap_or(std::ptr::null_mut())), pattributes).ok() } #[inline] pub unsafe fn GetUserDefaultGeoName(geoname: &mut [u16]) -> i32 { @@ -680,26 +680,26 @@ pub unsafe fn IsValidLocale(locale: u32, dwflags: IS_VALID_LOCALE_FLAGS) -> supe #[inline] pub unsafe fn IsValidLocaleName(lplocalename: P0) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsValidLocaleName(lplocalename : windows_core::PCWSTR) -> super::Foundation:: BOOL); - IsValidLocaleName(lplocalename.into_param().abi()) + IsValidLocaleName(lplocalename.param().abi()) } #[inline] pub unsafe fn IsValidNLSVersion(function: u32, lplocalename: P0, lpversioninformation: *const NLSVERSIONINFOEX) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsValidNLSVersion(function : u32, lplocalename : windows_core::PCWSTR, lpversioninformation : *const NLSVERSIONINFOEX) -> u32); - IsValidNLSVersion(function, lplocalename.into_param().abi(), lpversioninformation) + IsValidNLSVersion(function, lplocalename.param().abi(), lpversioninformation) } #[inline] pub unsafe fn IsWellFormedTag(psztag: P0) -> u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bcp47mrm.dll" "system" fn IsWellFormedTag(psztag : windows_core::PCWSTR) -> u8); - IsWellFormedTag(psztag.into_param().abi()) + IsWellFormedTag(psztag.param().abi()) } #[inline] pub unsafe fn LCIDToLocaleName(locale: u32, lpname: Option<&mut [u16]>, dwflags: u32) -> i32 { @@ -714,11 +714,11 @@ pub unsafe fn LCMapStringA(locale: u32, dwmapflags: u32, lpsrcstr: &[u8], lpdest #[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: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), sorthandle.into_param().abi()) + 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(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), sorthandle.param().abi()) } #[inline] pub unsafe fn LCMapStringW(locale: u32, dwmapflags: u32, lpsrcstr: &[u16], lpdeststr: windows_core::PWSTR, cchdest: i32) -> i32 { @@ -728,18 +728,18 @@ pub unsafe fn LCMapStringW(locale: u32, dwmapflags: u32, lpsrcstr: &[u16], lpdes #[inline] pub unsafe fn LocaleNameToLCID(lpname: P0, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocaleNameToLCID(lpname : windows_core::PCWSTR, dwflags : u32) -> u32); - LocaleNameToLCID(lpname.into_param().abi(), dwflags) + LocaleNameToLCID(lpname.param().abi(), dwflags) } #[inline] pub unsafe fn MappingDoAction(pbag: *mut MAPPING_PROPERTY_BAG, dwrangeindex: u32, pszactionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pbag, dwrangeindex, pszactionid.into_param().abi()).ok() + MappingDoAction(pbag, dwrangeindex, pszactionid.param().abi()).ok() } #[inline] pub unsafe fn MappingFreePropertyBag(pbag: *const MAPPING_PROPERTY_BAG) -> windows_core::Result<()> { @@ -774,27 +774,27 @@ pub unsafe fn NormalizeString(normform: NORM_FORM, lpsrcstring: &[u16], lpdststr #[inline] pub unsafe fn NotifyUILanguageChange(dwflags: u32, pcwstrnewlanguage: P0, pcwstrpreviouslanguage: P1, dwreserved: u32, pdwstatusrtrn: Option<*mut u32>) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, pcwstrnewlanguage.into_param().abi(), pcwstrpreviouslanguage.into_param().abi(), dwreserved, core::mem::transmute(pdwstatusrtrn.unwrap_or(std::ptr::null_mut()))) + NotifyUILanguageChange(dwflags, pcwstrnewlanguage.param().abi(), pcwstrpreviouslanguage.param().abi(), dwreserved, core::mem::transmute(pdwstatusrtrn.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ResolveLocaleName(lpnametoresolve: P0, lplocalename: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ResolveLocaleName(lpnametoresolve : windows_core::PCWSTR, lplocalename : windows_core::PWSTR, cchlocalename : i32) -> i32); - ResolveLocaleName(lpnametoresolve.into_param().abi(), core::mem::transmute(lplocalename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplocalename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ResolveLocaleName(lpnametoresolve.param().abi(), core::mem::transmute(lplocalename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lplocalename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn RestoreThreadPreferredUILanguages(snapshot: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RestoreThreadPreferredUILanguages(snapshot : HSAVEDUILANGUAGES)); - RestoreThreadPreferredUILanguages(snapshot.into_param().abi()) + RestoreThreadPreferredUILanguages(snapshot.param().abi()) } #[inline] pub unsafe fn ScriptApplyDigitSubstitution(psds: *const SCRIPT_DIGITSUBSTITUTE, psc: *mut SCRIPT_CONTROL, pss: *mut SCRIPT_STATE) -> windows_core::Result<()> { @@ -810,27 +810,27 @@ pub unsafe fn ScriptApplyLogicalWidth(pidx: *const i32, cchars: i32, cglyphs: i3 #[inline] pub unsafe fn ScriptBreak(pwcchars: P0, cchars: i32, psa: *const SCRIPT_ANALYSIS, psla: *mut SCRIPT_LOGATTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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); - ScriptBreak(pwcchars.into_param().abi(), cchars, psa, psla).ok() + ScriptBreak(pwcchars.param().abi(), cchars, psa, psla).ok() } #[inline] pub unsafe fn ScriptCPtoX(icp: i32, ftrailing: P0, cglyphs: i32, pwlogclust: &[u16], psva: *const SCRIPT_VISATTR, piadvance: *const i32, psa: *const SCRIPT_ANALYSIS, pix: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(icp, ftrailing.into_param().abi(), pwlogclust.len().try_into().unwrap(), cglyphs, core::mem::transmute(pwlogclust.as_ptr()), psva, piadvance, psa, pix).ok() + ScriptCPtoX(icp, ftrailing.param().abi(), pwlogclust.len().try_into().unwrap(), cglyphs, core::mem::transmute(pwlogclust.as_ptr()), psva, piadvance, psa, pix).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptCacheGetHeight(hdc: P0, psc: *mut *mut core::ffi::c_void, tmheight: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, tmheight).ok() + ScriptCacheGetHeight(hdc.param().abi(), psc, tmheight).ok() } #[inline] pub unsafe fn ScriptFreeCache(psc: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -841,65 +841,65 @@ pub unsafe fn ScriptFreeCache(psc: *mut *mut core::ffi::c_void) -> windows_core: #[inline] pub unsafe fn ScriptGetCMap(hdc: P0, psc: *mut *mut core::ffi::c_void, pwcinchars: P1, cchars: i32, dwflags: u32, pwoutglyphs: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdc.into_param().abi(), psc, pwcinchars.into_param().abi(), cchars, dwflags, pwoutglyphs).ok() + ScriptGetCMap(hdc.param().abi(), psc, pwcinchars.param().abi(), cchars, dwflags, pwoutglyphs).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontAlternateGlyphs(hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, tagfeature, wglyphid, palternateglyphs.len().try_into().unwrap(), core::mem::transmute(palternateglyphs.as_ptr()), pcalternates).ok() + ScriptGetFontAlternateGlyphs(hdc.param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, tagfeature, wglyphid, palternateglyphs.len().try_into().unwrap(), core::mem::transmute(palternateglyphs.as_ptr()), pcalternates).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontFeatureTags(hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, pfeaturetags.len().try_into().unwrap(), core::mem::transmute(pfeaturetags.as_ptr()), pctags).ok() + ScriptGetFontFeatureTags(hdc.param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, pfeaturetags.len().try_into().unwrap(), core::mem::transmute(pfeaturetags.as_ptr()), pctags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontLanguageTags(hdc: P0, psc: *mut *mut core::ffi::c_void, psa: Option<*const SCRIPT_ANALYSIS>, tagscript: u32, plangsystags: &mut [u32], pctags: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, plangsystags.len().try_into().unwrap(), core::mem::transmute(plangsystags.as_ptr()), pctags).ok() + ScriptGetFontLanguageTags(hdc.param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, plangsystags.len().try_into().unwrap(), core::mem::transmute(plangsystags.as_ptr()), pctags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontProperties(hdc: P0, psc: *mut *mut core::ffi::c_void, sfp: *mut SCRIPT_FONTPROPERTIES) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, sfp).ok() + ScriptGetFontProperties(hdc.param().abi(), psc, sfp).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetFontScriptTags(hdc: P0, psc: *mut *mut core::ffi::c_void, psa: Option<*const SCRIPT_ANALYSIS>, pscripttags: &mut [u32], pctags: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("usp10.dll" "system" fn ScriptGetFontScriptTags(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *const SCRIPT_ANALYSIS, cmaxtags : i32, pscripttags : *mut u32, pctags : *mut i32) -> windows_core::HRESULT); - ScriptGetFontScriptTags(hdc.into_param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), pscripttags.len().try_into().unwrap(), core::mem::transmute(pscripttags.as_ptr()), pctags).ok() + ScriptGetFontScriptTags(hdc.param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), pscripttags.len().try_into().unwrap(), core::mem::transmute(pscripttags.as_ptr()), pctags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptGetGlyphABCWidth(hdc: P0, psc: *mut *mut core::ffi::c_void, wglyph: u16, pabc: *mut super::Graphics::Gdi::ABC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, wglyph, pabc).ok() + ScriptGetGlyphABCWidth(hdc.param().abi(), psc, wglyph, 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<()> { @@ -940,29 +940,29 @@ pub unsafe fn ScriptLayout(cruns: i32, pblevel: *const u8, pivisualtological: Op #[inline] pub unsafe fn ScriptPlace(hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, pwglyphs, cglyphs, psva, psa, piadvance, core::mem::transmute(pgoffset.unwrap_or(std::ptr::null_mut())), pabc).ok() + ScriptPlace(hdc.param().abi(), psc, pwglyphs, cglyphs, psva, psa, piadvance, core::mem::transmute(pgoffset.unwrap_or(std::ptr::null_mut())), pabc).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptPlaceOpenType(hdc: P0, psc: *mut *mut core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: Option<*const i32>, rprangeproperties: Option<*const *const TEXTRANGE_PROPERTIES>, cranges: i32, pwcchars: P1, pwlogclust: *const u16, pcharprops: *const SCRIPT_CHARPROP, cchars: i32, pwglyphs: *const u16, pglyphprops: *const SCRIPT_GLYPHPROP, cglyphs: i32, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: Option<*mut super::Graphics::Gdi::ABC>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("usp10.dll" "system" fn ScriptPlaceOpenType(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *mut SCRIPT_ANALYSIS, tagscript : u32, taglangsys : u32, rcrangechars : *const i32, rprangeproperties : *const *const TEXTRANGE_PROPERTIES, cranges : i32, pwcchars : windows_core::PCWSTR, pwlogclust : *const u16, pcharprops : *const SCRIPT_CHARPROP, cchars : i32, pwglyphs : *const u16, pglyphprops : *const SCRIPT_GLYPHPROP, cglyphs : i32, piadvance : *mut i32, pgoffset : *mut GOFFSET, pabc : *mut super::Graphics::Gdi:: ABC) -> windows_core::HRESULT); - ScriptPlaceOpenType(hdc.into_param().abi(), psc, psa, tagscript, taglangsys, core::mem::transmute(rcrangechars.unwrap_or(std::ptr::null())), core::mem::transmute(rprangeproperties.unwrap_or(std::ptr::null())), cranges, pwcchars.into_param().abi(), pwlogclust, pcharprops, cchars, pwglyphs, pglyphprops, cglyphs, piadvance, pgoffset, core::mem::transmute(pabc.unwrap_or(std::ptr::null_mut()))).ok() + ScriptPlaceOpenType(hdc.param().abi(), psc, psa, tagscript, taglangsys, core::mem::transmute(rcrangechars.unwrap_or(std::ptr::null())), core::mem::transmute(rprangeproperties.unwrap_or(std::ptr::null())), cranges, pwcchars.param().abi(), pwlogclust, pcharprops, cchars, pwglyphs, pglyphprops, cglyphs, piadvance, pgoffset, core::mem::transmute(pabc.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptPositionSingleGlyph(hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, tagfeature, lparameter, wglyphid, iadvance, core::mem::transmute(goffset), pioutadvance, poutgoffset).ok() + ScriptPositionSingleGlyph(hdc.param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, tagfeature, lparameter, wglyphid, iadvance, core::mem::transmute(goffset), pioutadvance, poutgoffset).ok() } #[inline] pub unsafe fn ScriptRecordDigitSubstitution(locale: u32) -> windows_core::Result { @@ -974,39 +974,39 @@ pub unsafe fn ScriptRecordDigitSubstitution(locale: u32) -> windows_core::Result #[inline] pub unsafe fn ScriptShape(hdc: P0, psc: *mut *mut core::ffi::c_void, pwcchars: P1, cchars: i32, cmaxglyphs: i32, psa: *mut SCRIPT_ANALYSIS, pwoutglyphs: *mut u16, pwlogclust: *mut u16, psva: *mut SCRIPT_VISATTR, pcglyphs: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdc.into_param().abi(), psc, pwcchars.into_param().abi(), cchars, cmaxglyphs, psa, pwoutglyphs, pwlogclust, psva, pcglyphs).ok() + ScriptShape(hdc.param().abi(), psc, pwcchars.param().abi(), cchars, cmaxglyphs, psa, pwoutglyphs, pwlogclust, psva, pcglyphs).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptShapeOpenType(hdc: P0, psc: *mut *mut core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: Option<*const i32>, rprangeproperties: Option<*const *const TEXTRANGE_PROPERTIES>, cranges: i32, pwcchars: P1, cchars: i32, cmaxglyphs: i32, pwlogclust: *mut u16, pcharprops: *mut SCRIPT_CHARPROP, pwoutglyphs: *mut u16, poutglyphprops: *mut SCRIPT_GLYPHPROP, pcglyphs: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("usp10.dll" "system" fn ScriptShapeOpenType(hdc : super::Graphics::Gdi:: HDC, psc : *mut *mut core::ffi::c_void, psa : *mut SCRIPT_ANALYSIS, tagscript : u32, taglangsys : u32, rcrangechars : *const i32, rprangeproperties : *const *const TEXTRANGE_PROPERTIES, cranges : i32, pwcchars : windows_core::PCWSTR, cchars : i32, cmaxglyphs : i32, pwlogclust : *mut u16, pcharprops : *mut SCRIPT_CHARPROP, pwoutglyphs : *mut u16, poutglyphprops : *mut SCRIPT_GLYPHPROP, pcglyphs : *mut i32) -> windows_core::HRESULT); - ScriptShapeOpenType(hdc.into_param().abi(), psc, psa, tagscript, taglangsys, core::mem::transmute(rcrangechars.unwrap_or(std::ptr::null())), core::mem::transmute(rprangeproperties.unwrap_or(std::ptr::null())), cranges, pwcchars.into_param().abi(), cchars, cmaxglyphs, pwlogclust, pcharprops, pwoutglyphs, poutglyphprops, pcglyphs).ok() + ScriptShapeOpenType(hdc.param().abi(), psc, psa, tagscript, taglangsys, core::mem::transmute(rcrangechars.unwrap_or(std::ptr::null())), core::mem::transmute(rprangeproperties.unwrap_or(std::ptr::null())), cranges, pwcchars.param().abi(), cchars, cmaxglyphs, pwlogclust, pcharprops, pwoutglyphs, poutglyphprops, pcglyphs).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptStringAnalyse(hdc: P0, pstring: *const core::ffi::c_void, cglyphs: i32, icharset: i32, dwflags: u32, ireqwidth: i32, pscontrol: Option<*const SCRIPT_CONTROL>, psstate: Option<*const SCRIPT_STATE>, pidx: Option<&[i32]>, ptabdef: Option<*const SCRIPT_TABDEF>, pbinclass: *const u8, pssa: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), pstring, pidx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), cglyphs, icharset, dwflags, ireqwidth, core::mem::transmute(pscontrol.unwrap_or(std::ptr::null())), core::mem::transmute(psstate.unwrap_or(std::ptr::null())), core::mem::transmute(pidx.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ptabdef.unwrap_or(std::ptr::null())), pbinclass, pssa).ok() + ScriptStringAnalyse(hdc.param().abi(), pstring, pidx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), cglyphs, icharset, dwflags, ireqwidth, core::mem::transmute(pscontrol.unwrap_or(std::ptr::null())), core::mem::transmute(psstate.unwrap_or(std::ptr::null())), core::mem::transmute(pidx.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(ptabdef.unwrap_or(std::ptr::null())), pbinclass, pssa).ok() } #[inline] pub unsafe fn ScriptStringCPtoX(ssa: *const core::ffi::c_void, icp: i32, ftrailing: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - ScriptStringCPtoX(ssa, icp, ftrailing.into_param().abi(), &mut result__).map(|| result__) + ScriptStringCPtoX(ssa, icp, ftrailing.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn ScriptStringFree(pssa: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1027,10 +1027,10 @@ pub unsafe fn ScriptStringGetOrder(ssa: *const core::ffi::c_void, puorder: *mut #[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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ssa, ix, iy, uoptions, core::mem::transmute(prc.unwrap_or(std::ptr::null())), iminsel, imaxsel, fdisabled.into_param().abi()).ok() + ScriptStringOut(ssa, ix, iy, uoptions, core::mem::transmute(prc.unwrap_or(std::ptr::null())), iminsel, imaxsel, fdisabled.param().abi()).ok() } #[inline] pub unsafe fn ScriptStringValidate(ssa: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -1061,20 +1061,20 @@ pub unsafe fn ScriptString_pcOutChars(ssa: *const core::ffi::c_void) -> *mut i32 #[inline] pub unsafe fn ScriptSubstituteSingleGlyph(hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, tagfeature, lparameter, wglyphid, pwoutglyphid).ok() + ScriptSubstituteSingleGlyph(hdc.param().abi(), psc, core::mem::transmute(psa.unwrap_or(std::ptr::null())), tagscript, taglangsys, tagfeature, lparameter, wglyphid, pwoutglyphid).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptTextOut(hdc: P0, psc: *mut *mut core::ffi::c_void, x: i32, y: i32, fuoptions: u32, lprc: Option<*const super::Foundation::RECT>, psa: *const SCRIPT_ANALYSIS, pwcreserved: P1, ireserved: i32, pwglyphs: *const u16, cglyphs: i32, piadvance: *const i32, pijustify: Option<*const i32>, pgoffset: *const GOFFSET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdc.into_param().abi(), psc, x, y, fuoptions, core::mem::transmute(lprc.unwrap_or(std::ptr::null())), psa, pwcreserved.into_param().abi(), ireserved, pwglyphs, cglyphs, piadvance, core::mem::transmute(pijustify.unwrap_or(std::ptr::null())), pgoffset).ok() + ScriptTextOut(hdc.param().abi(), psc, x, y, fuoptions, core::mem::transmute(lprc.unwrap_or(std::ptr::null())), psa, pwcreserved.param().abi(), ireserved, pwglyphs, cglyphs, piadvance, core::mem::transmute(pijustify.unwrap_or(std::ptr::null())), 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<()> { @@ -1084,42 +1084,42 @@ pub unsafe fn ScriptXtoCP(ix: i32, cglyphs: i32, pwlogclust: &[u16], psva: *cons #[inline] pub unsafe fn SetCalendarInfoA(locale: u32, calendar: u32, caltype: u32, lpcaldata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(locale, calendar, caltype, lpcaldata.into_param().abi()).ok() + SetCalendarInfoA(locale, calendar, caltype, lpcaldata.param().abi()).ok() } #[inline] pub unsafe fn SetCalendarInfoW(locale: u32, calendar: u32, caltype: u32, lpcaldata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(locale, calendar, caltype, lpcaldata.into_param().abi()).ok() + SetCalendarInfoW(locale, calendar, caltype, lpcaldata.param().abi()).ok() } #[inline] pub unsafe fn SetLocaleInfoA(locale: u32, lctype: u32, lplcdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoA(locale : u32, lctype : u32, lplcdata : windows_core::PCSTR) -> super::Foundation:: BOOL); - SetLocaleInfoA(locale, lctype, lplcdata.into_param().abi()).ok() + SetLocaleInfoA(locale, lctype, lplcdata.param().abi()).ok() } #[inline] pub unsafe fn SetLocaleInfoW(locale: u32, lctype: u32, lplcdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoW(locale : u32, lctype : u32, lplcdata : windows_core::PCWSTR) -> super::Foundation:: BOOL); - SetLocaleInfoW(locale, lctype, lplcdata.into_param().abi()).ok() + SetLocaleInfoW(locale, lctype, lplcdata.param().abi()).ok() } #[inline] pub unsafe fn SetProcessPreferredUILanguages(dwflags: u32, pwszlanguagesbuffer: P0, pulnumlanguages: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetProcessPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> super::Foundation:: BOOL); - SetProcessPreferredUILanguages(dwflags, pwszlanguagesbuffer.into_param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(std::ptr::null_mut()))).ok() + SetProcessPreferredUILanguages(dwflags, pwszlanguagesbuffer.param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetThreadLocale(locale: u32) -> super::Foundation::BOOL { @@ -1129,18 +1129,18 @@ pub unsafe fn SetThreadLocale(locale: u32) -> super::Foundation::BOOL { #[inline] pub unsafe fn SetThreadPreferredUILanguages(dwflags: u32, pwszlanguagesbuffer: P0, pulnumlanguages: Option<*mut u32>) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> super::Foundation:: BOOL); - SetThreadPreferredUILanguages(dwflags, pwszlanguagesbuffer.into_param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(std::ptr::null_mut()))) + SetThreadPreferredUILanguages(dwflags, pwszlanguagesbuffer.param().abi(), core::mem::transmute(pulnumlanguages.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetThreadPreferredUILanguages2(flags: u32, languages: P0, numlanguagesset: Option<*mut u32>, snapshot: Option<*mut HSAVEDUILANGUAGES>) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(flags, languages.into_param().abi(), core::mem::transmute(numlanguagesset.unwrap_or(std::ptr::null_mut())), core::mem::transmute(snapshot.unwrap_or(std::ptr::null_mut()))) + SetThreadPreferredUILanguages2(flags, languages.param().abi(), core::mem::transmute(numlanguagesset.unwrap_or(std::ptr::null_mut())), core::mem::transmute(snapshot.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetThreadUILanguage(langid: u16) -> u16 { @@ -1155,10 +1155,10 @@ pub unsafe fn SetUserGeoID(geoid: i32) -> windows_core::Result<()> { #[inline] pub unsafe fn SetUserGeoName(geoname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetUserGeoName(geoname : windows_core::PCWSTR) -> super::Foundation:: BOOL); - SetUserGeoName(geoname.into_param().abi()).ok() + SetUserGeoName(geoname.param().abi()).ok() } #[inline] pub unsafe fn TranslateCharsetInfo(lpsrc: *mut u32, lpcs: *mut CHARSETINFO, dwflags: TRANSLATE_CHARSET_INFO_FLAGS) -> windows_core::Result<()> { @@ -1188,34 +1188,34 @@ pub unsafe fn UCNV_FROM_U_CALLBACK_SUBSTITUTE(context: *const core::ffi::c_void, #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_ESCAPE(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P0, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(context, touargs, codeunits.into_param().abi(), length, reason, err) + UCNV_TO_U_CALLBACK_ESCAPE(context, touargs, codeunits.param().abi(), length, reason, err) } #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_SKIP(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P0, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(context, touargs, codeunits.into_param().abi(), length, reason, err) + UCNV_TO_U_CALLBACK_SKIP(context, touargs, codeunits.param().abi(), length, reason, err) } #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_STOP(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P0, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(context, touargs, codeunits.into_param().abi(), length, reason, err) + UCNV_TO_U_CALLBACK_STOP(context, touargs, codeunits.param().abi(), length, reason, err) } #[inline] pub unsafe fn UCNV_TO_U_CALLBACK_SUBSTITUTE(context: *const core::ffi::c_void, touargs: *mut UConverterToUnicodeArgs, codeunits: P0, length: i32, reason: UConverterCallbackReason, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(context, touargs, codeunits.into_param().abi(), length, reason, err) + UCNV_TO_U_CALLBACK_SUBSTITUTE(context, touargs, codeunits.param().abi(), length, reason, err) } #[inline] pub unsafe fn UpdateCalendarDayOfWeek(lpcaldatetime: *mut CALDATETIME) -> super::Foundation::BOOL { @@ -1225,143 +1225,143 @@ pub unsafe fn UpdateCalendarDayOfWeek(lpcaldatetime: *mut CALDATETIME) -> super: #[inline] pub unsafe fn VerifyScripts(dwflags: u32, lplocalescripts: P0, cchlocalescripts: i32, lptestscripts: P1, cchtestscripts: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, lplocalescripts.into_param().abi(), cchlocalescripts, lptestscripts.into_param().abi(), 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: P0, lpuseddefaultchar: Option<*mut super::Foundation::BOOL>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), core::mem::transmute(lpuseddefaultchar.unwrap_or(std::ptr::null_mut()))) + 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn lstrcatA(lpstring1: windows_core::PSTR, lpstring2: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcatA(lpstring1 : windows_core::PSTR, lpstring2 : windows_core::PCSTR) -> windows_core::PSTR); - lstrcatA(core::mem::transmute(lpstring1), lpstring2.into_param().abi()) + lstrcatA(core::mem::transmute(lpstring1), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcatW(lpstring1: windows_core::PWSTR, lpstring2: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcatW(lpstring1 : windows_core::PWSTR, lpstring2 : windows_core::PCWSTR) -> windows_core::PWSTR); - lstrcatW(core::mem::transmute(lpstring1), lpstring2.into_param().abi()) + lstrcatW(core::mem::transmute(lpstring1), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcmpA(lpstring1: P0, lpstring2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcmpA(lpstring1 : windows_core::PCSTR, lpstring2 : windows_core::PCSTR) -> i32); - lstrcmpA(lpstring1.into_param().abi(), lpstring2.into_param().abi()) + lstrcmpA(lpstring1.param().abi(), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcmpW(lpstring1: P0, lpstring2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcmpW(lpstring1 : windows_core::PCWSTR, lpstring2 : windows_core::PCWSTR) -> i32); - lstrcmpW(lpstring1.into_param().abi(), lpstring2.into_param().abi()) + lstrcmpW(lpstring1.param().abi(), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcmpiA(lpstring1: P0, lpstring2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcmpiA(lpstring1 : windows_core::PCSTR, lpstring2 : windows_core::PCSTR) -> i32); - lstrcmpiA(lpstring1.into_param().abi(), lpstring2.into_param().abi()) + lstrcmpiA(lpstring1.param().abi(), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcmpiW(lpstring1: P0, lpstring2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcmpiW(lpstring1 : windows_core::PCWSTR, lpstring2 : windows_core::PCWSTR) -> i32); - lstrcmpiW(lpstring1.into_param().abi(), lpstring2.into_param().abi()) + lstrcmpiW(lpstring1.param().abi(), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcpyA(lpstring1: windows_core::PSTR, lpstring2: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcpyA(lpstring1 : windows_core::PSTR, lpstring2 : windows_core::PCSTR) -> windows_core::PSTR); - lstrcpyA(core::mem::transmute(lpstring1), lpstring2.into_param().abi()) + lstrcpyA(core::mem::transmute(lpstring1), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcpyW(lpstring1: windows_core::PWSTR, lpstring2: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcpyW(lpstring1 : windows_core::PWSTR, lpstring2 : windows_core::PCWSTR) -> windows_core::PWSTR); - lstrcpyW(core::mem::transmute(lpstring1), lpstring2.into_param().abi()) + lstrcpyW(core::mem::transmute(lpstring1), lpstring2.param().abi()) } #[inline] pub unsafe fn lstrcpynA(lpstring1: &mut [u8], lpstring2: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcpynA(lpstring1 : windows_core::PSTR, lpstring2 : windows_core::PCSTR, imaxlength : i32) -> windows_core::PSTR); - lstrcpynA(core::mem::transmute(lpstring1.as_ptr()), lpstring2.into_param().abi(), lpstring1.len().try_into().unwrap()) + lstrcpynA(core::mem::transmute(lpstring1.as_ptr()), lpstring2.param().abi(), lpstring1.len().try_into().unwrap()) } #[inline] pub unsafe fn lstrcpynW(lpstring1: &mut [u16], lpstring2: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrcpynW(lpstring1 : windows_core::PWSTR, lpstring2 : windows_core::PCWSTR, imaxlength : i32) -> windows_core::PWSTR); - lstrcpynW(core::mem::transmute(lpstring1.as_ptr()), lpstring2.into_param().abi(), lpstring1.len().try_into().unwrap()) + lstrcpynW(core::mem::transmute(lpstring1.as_ptr()), lpstring2.param().abi(), lpstring1.len().try_into().unwrap()) } #[inline] pub unsafe fn lstrlenA(lpstring: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrlenA(lpstring : windows_core::PCSTR) -> i32); - lstrlenA(lpstring.into_param().abi()) + lstrlenA(lpstring.param().abi()) } #[inline] pub unsafe fn lstrlenW(lpstring: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn lstrlenW(lpstring : windows_core::PCWSTR) -> i32); - lstrlenW(lpstring.into_param().abi()) + lstrlenW(lpstring.param().abi()) } #[inline] pub unsafe fn u_UCharsToChars(us: *const u16, cs: P0, length: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_UCharsToChars(us : *const u16, cs : windows_core::PCSTR, length : i32)); - u_UCharsToChars(us, cs.into_param().abi(), length) + u_UCharsToChars(us, cs.param().abi(), length) } #[inline] pub unsafe fn u_austrcpy(dst: P0, src: *const u16) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_austrcpy(dst : windows_core::PCSTR, src : *const u16) -> windows_core::PSTR); - u_austrcpy(dst.into_param().abi(), src) + u_austrcpy(dst.param().abi(), src) } #[inline] pub unsafe fn u_austrncpy(dst: P0, src: *const u16, n: i32) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_austrncpy(dst : windows_core::PCSTR, src : *const u16, n : i32) -> windows_core::PSTR); - u_austrncpy(dst.into_param().abi(), src, n) + u_austrncpy(dst.param().abi(), src, n) } #[inline] pub unsafe fn u_catclose(catd: *mut UResourceBundle) { @@ -1376,11 +1376,11 @@ pub unsafe fn u_catgets(catd: *mut UResourceBundle, set_num: i32, msg_num: i32, #[inline] pub unsafe fn u_catopen(name: P0, locale: P1, ec: *mut UErrorCode) -> *mut UResourceBundle where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_catopen(name : windows_core::PCSTR, locale : windows_core::PCSTR, ec : *mut UErrorCode) -> *mut UResourceBundle); - u_catopen(name.into_param().abi(), locale.into_param().abi(), ec) + u_catopen(name.param().abi(), locale.param().abi(), ec) } #[inline] pub unsafe fn u_charAge(c: i32, versionarray: *mut u8) { @@ -1400,10 +1400,10 @@ pub unsafe fn u_charDirection(c: i32) -> UCharDirection { #[inline] pub unsafe fn u_charFromName(namechoice: UCharNameChoice, name: P0, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_charFromName(namechoice : UCharNameChoice, name : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> i32); - u_charFromName(namechoice, name.into_param().abi(), perrorcode) + u_charFromName(namechoice, name.param().abi(), perrorcode) } #[inline] pub unsafe fn u_charMirror(c: i32) -> i32 { @@ -1413,10 +1413,10 @@ pub unsafe fn u_charMirror(c: i32) -> i32 { #[inline] pub unsafe fn u_charName(code: i32, namechoice: UCharNameChoice, buffer: P0, bufferlength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_charName(code : i32, namechoice : UCharNameChoice, buffer : windows_core::PCSTR, bufferlength : i32, perrorcode : *mut UErrorCode) -> i32); - u_charName(code, namechoice, buffer.into_param().abi(), bufferlength, perrorcode) + u_charName(code, namechoice, buffer.param().abi(), bufferlength, perrorcode) } #[inline] pub unsafe fn u_charType(c: i32) -> i8 { @@ -1426,10 +1426,10 @@ pub unsafe fn u_charType(c: i32) -> i8 { #[inline] pub unsafe fn u_charsToUChars(cs: P0, us: *mut u16, length: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_charsToUChars(cs : windows_core::PCSTR, us : *mut u16, length : i32)); - u_charsToUChars(cs.into_param().abi(), us, length) + u_charsToUChars(cs.param().abi(), us, length) } #[inline] pub unsafe fn u_cleanup() { @@ -1474,18 +1474,18 @@ pub unsafe fn u_forDigit(digit: i32, radix: i8) -> i32 { #[inline] pub unsafe fn u_formatMessage(locale: P0, pattern: *const u16, patternlength: i32, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, result, resultlength, status) + u_formatMessage(locale.param().abi(), pattern, patternlength, result, resultlength, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, result, resultlength, parseerror, status) + u_formatMessageWithError(locale.param().abi(), pattern, patternlength, result, resultlength, parseerror, status) } #[inline] pub unsafe fn u_getBidiPairedBracket(c: i32) -> i32 { @@ -1540,10 +1540,10 @@ pub unsafe fn u_getNumericValue(c: i32) -> f64 { #[inline] pub unsafe fn u_getPropertyEnum(alias: P0) -> UProperty where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_getPropertyEnum(alias : windows_core::PCSTR) -> UProperty); - u_getPropertyEnum(alias.into_param().abi()) + u_getPropertyEnum(alias.param().abi()) } #[inline] pub unsafe fn u_getPropertyName(property: UProperty, namechoice: UPropertyNameChoice) -> windows_core::PCSTR { @@ -1553,10 +1553,10 @@ pub unsafe fn u_getPropertyName(property: UProperty, namechoice: UPropertyNameCh #[inline] pub unsafe fn u_getPropertyValueEnum(property: UProperty, alias: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_getPropertyValueEnum(property : UProperty, alias : windows_core::PCSTR) -> i32); - u_getPropertyValueEnum(property, alias.into_param().abi()) + u_getPropertyValueEnum(property, alias.param().abi()) } #[inline] pub unsafe fn u_getPropertyValueName(property: UProperty, value: i32, namechoice: UPropertyNameChoice) -> windows_core::PCSTR { @@ -1776,18 +1776,18 @@ pub unsafe fn u_memset(dest: *mut u16, c: u16, count: i32) -> *mut u16 { #[inline] pub unsafe fn u_parseMessage(locale: P0, pattern: *const u16, patternlength: i32, source: *const u16, sourcelength: i32, status: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, source, sourcelength, status) + u_parseMessage(locale.param().abi(), pattern, patternlength, source, sourcelength, 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) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, source, sourcelength, parseerror, status) + u_parseMessageWithError(locale.param().abi(), pattern, patternlength, source, sourcelength, parseerror, 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) { @@ -1832,10 +1832,10 @@ pub unsafe fn u_strFoldCase(dest: *mut u16, destcapacity: i32, src: *const u16, #[inline] pub unsafe fn u_strFromJavaModifiedUTF8WithSub(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P0, srclength: i32, subchar: i32, pnumsubstitutions: *mut i32, perrorcode: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, pdestlength, src.into_param().abi(), srclength, subchar, pnumsubstitutions, perrorcode) + u_strFromJavaModifiedUTF8WithSub(dest, destcapacity, pdestlength, src.param().abi(), srclength, subchar, pnumsubstitutions, 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 { @@ -1850,34 +1850,34 @@ pub unsafe fn u_strFromUTF32WithSub(dest: *mut u16, destcapacity: i32, pdestleng #[inline] pub unsafe fn u_strFromUTF8(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P0, srclength: i32, perrorcode: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, pdestlength, src.into_param().abi(), srclength, perrorcode) + u_strFromUTF8(dest, destcapacity, pdestlength, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn u_strFromUTF8Lenient(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P0, srclength: i32, perrorcode: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, pdestlength, src.into_param().abi(), srclength, perrorcode) + u_strFromUTF8Lenient(dest, destcapacity, pdestlength, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn u_strFromUTF8WithSub(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P0, srclength: i32, subchar: i32, pnumsubstitutions: *mut i32, perrorcode: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, pdestlength, src.into_param().abi(), srclength, subchar, pnumsubstitutions, perrorcode) + u_strFromUTF8WithSub(dest, destcapacity, pdestlength, src.param().abi(), srclength, subchar, pnumsubstitutions, perrorcode) } #[inline] pub unsafe fn u_strFromWCS(dest: *mut u16, destcapacity: i32, pdestlength: *mut i32, src: P0, srclength: i32, perrorcode: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, pdestlength, src.into_param().abi(), srclength, perrorcode) + u_strFromWCS(dest, destcapacity, pdestlength, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn u_strHasMoreChar32Than(s: *const u16, length: i32, number: i32) -> i8 { @@ -1887,26 +1887,26 @@ pub unsafe fn u_strHasMoreChar32Than(s: *const u16, length: i32, number: i32) -> #[inline] pub unsafe fn u_strToJavaModifiedUTF8(dest: P0, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), destcapacity, pdestlength, src, srclength, perrorcode) + u_strToJavaModifiedUTF8(dest.param().abi(), destcapacity, pdestlength, src, srclength, perrorcode) } #[inline] pub unsafe fn u_strToLower(dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, locale: P0, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, src, srclength, locale.into_param().abi(), perrorcode) + u_strToLower(dest, destcapacity, src, srclength, locale.param().abi(), perrorcode) } #[inline] pub unsafe fn u_strToTitle(dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, titleiter: *mut UBreakIterator, locale: P0, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, src, srclength, titleiter, locale.into_param().abi(), perrorcode) + u_strToTitle(dest, destcapacity, src, srclength, titleiter, locale.param().abi(), 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 { @@ -1921,34 +1921,34 @@ pub unsafe fn u_strToUTF32WithSub(dest: *mut i32, destcapacity: i32, pdestlength #[inline] pub unsafe fn u_strToUTF8(dest: P0, destcapacity: i32, pdestlength: *mut i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), destcapacity, pdestlength, src, srclength, perrorcode) + u_strToUTF8(dest.param().abi(), destcapacity, pdestlength, src, srclength, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), destcapacity, pdestlength, src, srclength, subchar, pnumsubstitutions, perrorcode) + u_strToUTF8WithSub(dest.param().abi(), destcapacity, pdestlength, src, srclength, subchar, pnumsubstitutions, perrorcode) } #[inline] pub unsafe fn u_strToUpper(dest: *mut u16, destcapacity: i32, src: *const u16, srclength: i32, locale: P0, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(dest, destcapacity, src, srclength, locale.into_param().abi(), perrorcode) + u_strToUpper(dest, destcapacity, src, srclength, locale.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), destcapacity, pdestlength, src, srclength, perrorcode) + u_strToWCS(dest.param().abi(), destcapacity, pdestlength, src, srclength, perrorcode) } #[inline] pub unsafe fn u_strcasecmp(s1: *const u16, s2: *const u16, options: u32) -> i32 { @@ -2073,26 +2073,26 @@ pub unsafe fn u_toupper(c: i32) -> i32 { #[inline] pub unsafe fn u_uastrcpy(dst: *mut u16, src: P0) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_uastrcpy(dst : *mut u16, src : windows_core::PCSTR) -> *mut u16); - u_uastrcpy(dst, src.into_param().abi()) + u_uastrcpy(dst, src.param().abi()) } #[inline] pub unsafe fn u_uastrncpy(dst: *mut u16, src: P0, n: i32) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_uastrncpy(dst : *mut u16, src : windows_core::PCSTR, n : i32) -> *mut u16); - u_uastrncpy(dst, src.into_param().abi(), n) + u_uastrncpy(dst, src.param().abi(), n) } #[inline] pub unsafe fn u_unescape(src: P0, dest: *mut u16, destcapacity: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_unescape(src : windows_core::PCSTR, dest : *mut u16, destcapacity : i32) -> i32); - u_unescape(src.into_param().abi(), dest, destcapacity) + u_unescape(src.param().abi(), dest, destcapacity) } #[inline] pub unsafe fn u_unescapeAt(charat: UNESCAPE_CHAR_AT, offset: *mut i32, length: i32, context: *mut core::ffi::c_void) -> i32 { @@ -2102,10 +2102,10 @@ pub unsafe fn u_unescapeAt(charat: UNESCAPE_CHAR_AT, offset: *mut i32, length: i #[inline] pub unsafe fn u_versionFromString(versionarray: *mut u8, versionstring: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_versionFromString(versionarray : *mut u8, versionstring : windows_core::PCSTR)); - u_versionFromString(versionarray, versionstring.into_param().abi()) + u_versionFromString(versionarray, versionstring.param().abi()) } #[inline] pub unsafe fn u_versionFromUString(versionarray: *mut u8, versionstring: *const u16) { @@ -2115,42 +2115,42 @@ pub unsafe fn u_versionFromUString(versionarray: *mut u8, versionstring: *const #[inline] pub unsafe fn u_versionToString(versionarray: *const u8, versionstring: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn u_versionToString(versionarray : *const u8, versionstring : windows_core::PCSTR)); - u_versionToString(versionarray, versionstring.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, result, resultlength, ap, status) + u_vformatMessage(locale.param().abi(), pattern, patternlength, result, resultlength, ap, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, result, resultlength, parseerror, ap, status) + u_vformatMessageWithError(locale.param().abi(), pattern, patternlength, result, resultlength, parseerror, ap, 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) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, source, sourcelength, ap, status) + u_vparseMessage(locale.param().abi(), pattern, patternlength, source, sourcelength, ap, 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) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), pattern, patternlength, source, sourcelength, ap, parseerror, status) + u_vparseMessageWithError(locale.param().abi(), pattern, patternlength, source, sourcelength, ap, parseerror, status) } #[inline] pub unsafe fn ubidi_close(pbidi: *mut UBiDi) { @@ -2445,10 +2445,10 @@ pub unsafe fn ubrk_next(bi: *mut UBreakIterator) -> i32 { #[inline] pub unsafe fn ubrk_open(r#type: UBreakIteratorType, locale: P0, text: *const u16, textlength: i32, status: *mut UErrorCode) -> *mut UBreakIterator where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ubrk_open(r#type : UBreakIteratorType, locale : windows_core::PCSTR, text : *const u16, textlength : i32, status : *mut UErrorCode) -> *mut UBreakIterator); - ubrk_open(r#type, locale.into_param().abi(), text, textlength, status) + ubrk_open(r#type, locale.param().abi(), text, textlength, status) } #[inline] pub unsafe fn ubrk_openBinaryRules(binaryrules: *const u8, ruleslength: i32, text: *const u16, textlength: i32, status: *mut UErrorCode) -> *mut UBreakIterator { @@ -2578,11 +2578,11 @@ pub unsafe fn ucal_getHostTimeZone(result: *mut u16, resultcapacity: i32, ec: *m #[inline] pub unsafe fn ucal_getKeywordValuesForLocale(key: P0, locale: P1, commonlyused: i8, status: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucal_getKeywordValuesForLocale(key : windows_core::PCSTR, locale : windows_core::PCSTR, commonlyused : i8, status : *mut UErrorCode) -> *mut UEnumeration); - ucal_getKeywordValuesForLocale(key.into_param().abi(), locale.into_param().abi(), commonlyused, status) + ucal_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), commonlyused, status) } #[inline] pub unsafe fn ucal_getLimit(cal: *const *const core::ffi::c_void, field: UCalendarDateFields, r#type: UCalendarLimitType, status: *mut UErrorCode) -> i32 { @@ -2612,10 +2612,10 @@ pub unsafe fn ucal_getTZDataVersion(status: *mut UErrorCode) -> windows_core::PC #[inline] pub unsafe fn ucal_getTimeZoneDisplayName(cal: *const *const core::ffi::c_void, r#type: UCalendarDisplayNameType, locale: P0, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(cal, r#type, locale.into_param().abi(), result, resultlength, status) + ucal_getTimeZoneDisplayName(cal, r#type, locale.param().abi(), result, resultlength, status) } #[inline] pub unsafe fn ucal_getTimeZoneID(cal: *const *const core::ffi::c_void, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { @@ -2625,10 +2625,10 @@ pub unsafe fn ucal_getTimeZoneID(cal: *const *const core::ffi::c_void, result: * #[inline] pub unsafe fn ucal_getTimeZoneIDForWindowsID(winid: *const u16, len: i32, region: P0, id: *mut u16, idcapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(winid, len, region.into_param().abi(), id, idcapacity, status) + ucal_getTimeZoneIDForWindowsID(winid, len, region.param().abi(), id, idcapacity, status) } #[inline] pub unsafe fn ucal_getTimeZoneTransitionDate(cal: *const *const core::ffi::c_void, r#type: UTimeZoneTransitionType, transition: *mut f64, status: *mut UErrorCode) -> i8 { @@ -2668,26 +2668,26 @@ pub unsafe fn ucal_isWeekend(cal: *const *const core::ffi::c_void, date: f64, st #[inline] pub unsafe fn ucal_open(zoneid: *const u16, len: i32, locale: P0, r#type: UCalendarType, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(zoneid, len, locale.into_param().abi(), r#type, status) + ucal_open(zoneid, len, locale.param().abi(), r#type, status) } #[inline] pub unsafe fn ucal_openCountryTimeZones(country: P0, ec: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucal_openCountryTimeZones(country : windows_core::PCSTR, ec : *mut UErrorCode) -> *mut UEnumeration); - ucal_openCountryTimeZones(country.into_param().abi(), ec) + ucal_openCountryTimeZones(country.param().abi(), ec) } #[inline] pub unsafe fn ucal_openTimeZoneIDEnumeration(zonetype: USystemTimeZoneType, region: P0, rawoffset: *const i32, ec: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucal_openTimeZoneIDEnumeration(zonetype : USystemTimeZoneType, region : windows_core::PCSTR, rawoffset : *const i32, ec : *mut UErrorCode) -> *mut UEnumeration); - ucal_openTimeZoneIDEnumeration(zonetype, region.into_param().abi(), rawoffset, ec) + ucal_openTimeZoneIDEnumeration(zonetype, region.param().abi(), rawoffset, ec) } #[inline] pub unsafe fn ucal_openTimeZones(ec: *mut UErrorCode) -> *mut UEnumeration { @@ -2762,10 +2762,10 @@ pub unsafe fn ucasemap_getOptions(csm: *const UCaseMap) -> u32 { #[inline] pub unsafe fn ucasemap_open(locale: P0, options: u32, perrorcode: *mut UErrorCode) -> *mut UCaseMap where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucasemap_open(locale : windows_core::PCSTR, options : u32, perrorcode : *mut UErrorCode) -> *mut UCaseMap); - ucasemap_open(locale.into_param().abi(), options, perrorcode) + ucasemap_open(locale.param().abi(), options, perrorcode) } #[inline] pub unsafe fn ucasemap_setBreakIterator(csm: *mut UCaseMap, itertoadopt: *mut UBreakIterator, perrorcode: *mut UErrorCode) { @@ -2775,10 +2775,10 @@ pub unsafe fn ucasemap_setBreakIterator(csm: *mut UCaseMap, itertoadopt: *mut UB #[inline] pub unsafe fn ucasemap_setLocale(csm: *mut UCaseMap, locale: P0, perrorcode: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucasemap_setLocale(csm : *mut UCaseMap, locale : windows_core::PCSTR, perrorcode : *mut UErrorCode)); - ucasemap_setLocale(csm, locale.into_param().abi(), perrorcode) + ucasemap_setLocale(csm, locale.param().abi(), perrorcode) } #[inline] pub unsafe fn ucasemap_setOptions(csm: *mut UCaseMap, options: u32, perrorcode: *mut UErrorCode) { @@ -2793,38 +2793,38 @@ pub unsafe fn ucasemap_toTitle(csm: *mut UCaseMap, dest: *mut u16, destcapacity: #[inline] pub unsafe fn ucasemap_utf8FoldCase(csm: *const UCaseMap, dest: P0, destcapacity: i32, src: P1, srclength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(csm, dest.into_param().abi(), destcapacity, src.into_param().abi(), srclength, perrorcode) + ucasemap_utf8FoldCase(csm, dest.param().abi(), destcapacity, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn ucasemap_utf8ToLower(csm: *const UCaseMap, dest: P0, destcapacity: i32, src: P1, srclength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(csm, dest.into_param().abi(), destcapacity, src.into_param().abi(), srclength, perrorcode) + ucasemap_utf8ToLower(csm, dest.param().abi(), destcapacity, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn ucasemap_utf8ToTitle(csm: *mut UCaseMap, dest: P0, destcapacity: i32, src: P1, srclength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(csm, dest.into_param().abi(), destcapacity, src.into_param().abi(), srclength, perrorcode) + ucasemap_utf8ToTitle(csm, dest.param().abi(), destcapacity, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn ucasemap_utf8ToUpper(csm: *const UCaseMap, dest: P0, destcapacity: i32, src: P1, srclength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(csm, dest.into_param().abi(), destcapacity, src.into_param().abi(), srclength, perrorcode) + ucasemap_utf8ToUpper(csm, dest.param().abi(), destcapacity, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn ucfpos_close(ucfpos: *mut UConstrainedFieldPosition) { @@ -2889,10 +2889,10 @@ pub unsafe fn ucfpos_setState(ucfpos: *mut UConstrainedFieldPosition, category: #[inline] pub unsafe fn ucnv_cbFromUWriteBytes(args: *mut UConverterFromUnicodeArgs, source: P0, length: i32, offsetindex: i32, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_cbFromUWriteBytes(args : *mut UConverterFromUnicodeArgs, source : windows_core::PCSTR, length : i32, offsetindex : i32, err : *mut UErrorCode)); - ucnv_cbFromUWriteBytes(args, source.into_param().abi(), length, offsetindex, err) + ucnv_cbFromUWriteBytes(args, source.param().abi(), length, offsetindex, err) } #[inline] pub unsafe fn ucnv_cbFromUWriteSub(args: *mut UConverterFromUnicodeArgs, offsetindex: i32, err: *mut UErrorCode) { @@ -2922,39 +2922,39 @@ pub unsafe fn ucnv_close(converter: *mut UConverter) { #[inline] pub unsafe fn ucnv_compareNames(name1: P0, name2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_compareNames(name1 : windows_core::PCSTR, name2 : windows_core::PCSTR) -> i32); - ucnv_compareNames(name1.into_param().abi(), name2.into_param().abi()) + ucnv_compareNames(name1.param().abi(), name2.param().abi()) } #[inline] pub unsafe fn ucnv_convert(toconvertername: P0, fromconvertername: P1, target: P2, targetcapacity: i32, source: P3, sourcelength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), fromconvertername.into_param().abi(), target.into_param().abi(), targetcapacity, source.into_param().abi(), sourcelength, perrorcode) + ucnv_convert(toconvertername.param().abi(), fromconvertername.param().abi(), target.param().abi(), targetcapacity, source.param().abi(), sourcelength, perrorcode) } #[inline] pub unsafe fn ucnv_convertEx(targetcnv: *mut UConverter, sourcecnv: *mut UConverter, target: *mut *mut i8, targetlimit: P0, source: *const *const i8, sourcelimit: P1, pivotstart: *mut u16, pivotsource: *mut *mut u16, pivottarget: *mut *mut u16, pivotlimit: *const u16, reset: i8, flush: i8, perrorcode: *mut UErrorCode) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(targetcnv, sourcecnv, target, targetlimit.into_param().abi(), source, sourcelimit.into_param().abi(), pivotstart, pivotsource, pivottarget, pivotlimit, reset, flush, perrorcode) + ucnv_convertEx(targetcnv, sourcecnv, target, targetlimit.param().abi(), source, sourcelimit.param().abi(), pivotstart, pivotsource, pivottarget, pivotlimit, reset, flush, perrorcode) } #[inline] pub unsafe fn ucnv_countAliases(alias: P0, perrorcode: *mut UErrorCode) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_countAliases(alias : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> u16); - ucnv_countAliases(alias.into_param().abi(), perrorcode) + ucnv_countAliases(alias.param().abi(), perrorcode) } #[inline] pub unsafe fn ucnv_countAvailable() -> i32 { @@ -2969,10 +2969,10 @@ pub unsafe fn ucnv_countStandards() -> u16 { #[inline] pub unsafe fn ucnv_detectUnicodeSignature(source: P0, sourcelength: i32, signaturelength: *mut i32, perrorcode: *mut UErrorCode) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_detectUnicodeSignature(source : windows_core::PCSTR, sourcelength : i32, signaturelength : *mut i32, perrorcode : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_detectUnicodeSignature(source.into_param().abi(), sourcelength, signaturelength, perrorcode) + ucnv_detectUnicodeSignature(source.param().abi(), sourcelength, signaturelength, perrorcode) } #[inline] pub unsafe fn ucnv_fixFileSeparator(cnv: *const UConverter, source: *mut u16, sourcelen: i32) { @@ -2987,19 +2987,19 @@ pub unsafe fn ucnv_flushCache() -> i32 { #[inline] pub unsafe fn ucnv_fromAlgorithmic(cnv: *mut UConverter, algorithmictype: UConverterType, target: P0, targetcapacity: i32, source: P1, sourcelength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(cnv, algorithmictype, target.into_param().abi(), targetcapacity, source.into_param().abi(), sourcelength, perrorcode) + ucnv_fromAlgorithmic(cnv, algorithmictype, target.param().abi(), targetcapacity, source.param().abi(), sourcelength, perrorcode) } #[inline] pub unsafe fn ucnv_fromUChars(cnv: *mut UConverter, dest: P0, destcapacity: i32, src: *const u16, srclength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(cnv, dest.into_param().abi(), destcapacity, src, srclength, perrorcode) + ucnv_fromUChars(cnv, dest.param().abi(), destcapacity, src, srclength, perrorcode) } #[inline] pub unsafe fn ucnv_fromUCountPending(cnv: *const UConverter, status: *mut UErrorCode) -> i32 { @@ -3009,26 +3009,26 @@ pub unsafe fn ucnv_fromUCountPending(cnv: *const UConverter, status: *mut UError #[inline] pub unsafe fn ucnv_fromUnicode(converter: *mut UConverter, target: *mut *mut i8, targetlimit: P0, source: *const *const u16, sourcelimit: *const u16, offsets: *mut i32, flush: i8, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(converter, target, targetlimit.into_param().abi(), source, sourcelimit, offsets, flush, err) + ucnv_fromUnicode(converter, target, targetlimit.param().abi(), source, sourcelimit, offsets, flush, err) } #[inline] pub unsafe fn ucnv_getAlias(alias: P0, n: u16, perrorcode: *mut UErrorCode) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getAlias(alias : windows_core::PCSTR, n : u16, perrorcode : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_getAlias(alias.into_param().abi(), n, perrorcode) + ucnv_getAlias(alias.param().abi(), n, perrorcode) } #[inline] pub unsafe fn ucnv_getAliases(alias: P0, aliases: *const *const i8, perrorcode: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getAliases(alias : windows_core::PCSTR, aliases : *const *const i8, perrorcode : *mut UErrorCode)); - ucnv_getAliases(alias.into_param().abi(), aliases, perrorcode) + ucnv_getAliases(alias.param().abi(), aliases, perrorcode) } #[inline] pub unsafe fn ucnv_getAvailableName(n: i32) -> windows_core::PCSTR { @@ -3043,11 +3043,11 @@ pub unsafe fn ucnv_getCCSID(converter: *const UConverter, err: *mut UErrorCode) #[inline] pub unsafe fn ucnv_getCanonicalName(alias: P0, standard: P1, perrorcode: *mut UErrorCode) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getCanonicalName(alias : windows_core::PCSTR, standard : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_getCanonicalName(alias.into_param().abi(), standard.into_param().abi(), perrorcode) + ucnv_getCanonicalName(alias.param().abi(), standard.param().abi(), perrorcode) } #[inline] pub unsafe fn ucnv_getDefaultName() -> windows_core::PCSTR { @@ -3057,10 +3057,10 @@ pub unsafe fn ucnv_getDefaultName() -> windows_core::PCSTR { #[inline] pub unsafe fn ucnv_getDisplayName(converter: *const UConverter, displaylocale: P0, displayname: *mut u16, displaynamecapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getDisplayName(converter : *const UConverter, displaylocale : windows_core::PCSTR, displayname : *mut u16, displaynamecapacity : i32, err : *mut UErrorCode) -> i32); - ucnv_getDisplayName(converter, displaylocale.into_param().abi(), displayname, displaynamecapacity, err) + ucnv_getDisplayName(converter, displaylocale.param().abi(), displayname, displaynamecapacity, err) } #[inline] pub unsafe fn ucnv_getFromUCallBack(converter: *const UConverter, action: *mut UConverterFromUCallback, context: *const *const core::ffi::c_void) { @@ -3070,10 +3070,10 @@ pub unsafe fn ucnv_getFromUCallBack(converter: *const UConverter, action: *mut U #[inline] pub unsafe fn ucnv_getInvalidChars(converter: *const UConverter, errbytes: P0, len: *mut i8, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getInvalidChars(converter : *const UConverter, errbytes : windows_core::PCSTR, len : *mut i8, err : *mut UErrorCode)); - ucnv_getInvalidChars(converter, errbytes.into_param().abi(), len, err) + ucnv_getInvalidChars(converter, errbytes.param().abi(), len, err) } #[inline] pub unsafe fn ucnv_getInvalidUChars(converter: *const UConverter, erruchars: *mut u16, len: *mut i8, err: *mut UErrorCode) { @@ -3098,10 +3098,10 @@ pub unsafe fn ucnv_getName(converter: *const UConverter, err: *mut UErrorCode) - #[inline] pub unsafe fn ucnv_getNextUChar(converter: *mut UConverter, source: *const *const i8, sourcelimit: P0, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getNextUChar(converter : *mut UConverter, source : *const *const i8, sourcelimit : windows_core::PCSTR, err : *mut UErrorCode) -> i32); - ucnv_getNextUChar(converter, source, sourcelimit.into_param().abi(), err) + ucnv_getNextUChar(converter, source, sourcelimit.param().abi(), err) } #[inline] pub unsafe fn ucnv_getPlatform(converter: *const UConverter, err: *mut UErrorCode) -> UConverterPlatform { @@ -3116,11 +3116,11 @@ pub unsafe fn ucnv_getStandard(n: u16, perrorcode: *mut UErrorCode) -> windows_c #[inline] pub unsafe fn ucnv_getStandardName(name: P0, standard: P1, perrorcode: *mut UErrorCode) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getStandardName(name : windows_core::PCSTR, standard : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> windows_core::PCSTR); - ucnv_getStandardName(name.into_param().abi(), standard.into_param().abi(), perrorcode) + ucnv_getStandardName(name.param().abi(), standard.param().abi(), perrorcode) } #[inline] pub unsafe fn ucnv_getStarters(converter: *const UConverter, starters: *mut i8, err: *mut UErrorCode) { @@ -3130,10 +3130,10 @@ pub unsafe fn ucnv_getStarters(converter: *const UConverter, starters: *mut i8, #[inline] pub unsafe fn ucnv_getSubstChars(converter: *const UConverter, subchars: P0, len: *mut i8, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_getSubstChars(converter : *const UConverter, subchars : windows_core::PCSTR, len : *mut i8, err : *mut UErrorCode)); - ucnv_getSubstChars(converter, subchars.into_param().abi(), len, err) + ucnv_getSubstChars(converter, subchars.param().abi(), len, err) } #[inline] pub unsafe fn ucnv_getToUCallBack(converter: *const UConverter, action: *mut UConverterToUCallback, context: *const *const core::ffi::c_void) { @@ -3163,10 +3163,10 @@ pub unsafe fn ucnv_isFixedWidth(cnv: *mut UConverter, status: *mut UErrorCode) - #[inline] pub unsafe fn ucnv_open(convertername: P0, err: *mut UErrorCode) -> *mut UConverter where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_open(convertername : windows_core::PCSTR, err : *mut UErrorCode) -> *mut UConverter); - ucnv_open(convertername.into_param().abi(), err) + ucnv_open(convertername.param().abi(), err) } #[inline] pub unsafe fn ucnv_openAllNames(perrorcode: *mut UErrorCode) -> *mut UEnumeration { @@ -3181,20 +3181,20 @@ pub unsafe fn ucnv_openCCSID(codepage: i32, platform: UConverterPlatform, err: * #[inline] pub unsafe fn ucnv_openPackage(packagename: P0, convertername: P1, err: *mut UErrorCode) -> *mut UConverter where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_openPackage(packagename : windows_core::PCSTR, convertername : windows_core::PCSTR, err : *mut UErrorCode) -> *mut UConverter); - ucnv_openPackage(packagename.into_param().abi(), convertername.into_param().abi(), err) + ucnv_openPackage(packagename.param().abi(), convertername.param().abi(), err) } #[inline] pub unsafe fn ucnv_openStandardNames(convname: P0, standard: P1, perrorcode: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_openStandardNames(convname : windows_core::PCSTR, standard : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> *mut UEnumeration); - ucnv_openStandardNames(convname.into_param().abi(), standard.into_param().abi(), perrorcode) + ucnv_openStandardNames(convname.param().abi(), standard.param().abi(), perrorcode) } #[inline] pub unsafe fn ucnv_openU(name: *const u16, err: *mut UErrorCode) -> *mut UConverter { @@ -3224,10 +3224,10 @@ pub unsafe fn ucnv_safeClone(cnv: *const UConverter, stackbuffer: *mut core::ffi #[inline] pub unsafe fn ucnv_setDefaultName(name: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_setDefaultName(name : windows_core::PCSTR)); - ucnv_setDefaultName(name.into_param().abi()) + ucnv_setDefaultName(name.param().abi()) } #[inline] pub unsafe fn ucnv_setFallback(cnv: *mut UConverter, usesfallback: i8) { @@ -3242,10 +3242,10 @@ pub unsafe fn ucnv_setFromUCallBack(converter: *mut UConverter, newaction: UConv #[inline] pub unsafe fn ucnv_setSubstChars(converter: *mut UConverter, subchars: P0, len: i8, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnv_setSubstChars(converter : *mut UConverter, subchars : windows_core::PCSTR, len : i8, err : *mut UErrorCode)); - ucnv_setSubstChars(converter, subchars.into_param().abi(), len, err) + ucnv_setSubstChars(converter, subchars.param().abi(), len, err) } #[inline] pub unsafe fn ucnv_setSubstString(cnv: *mut UConverter, s: *const u16, length: i32, err: *mut UErrorCode) { @@ -3260,19 +3260,19 @@ pub unsafe fn ucnv_setToUCallBack(converter: *mut UConverter, newaction: UConver #[inline] pub unsafe fn ucnv_toAlgorithmic(algorithmictype: UConverterType, cnv: *mut UConverter, target: P0, targetcapacity: i32, source: P1, sourcelength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(algorithmictype, cnv, target.into_param().abi(), targetcapacity, source.into_param().abi(), sourcelength, perrorcode) + ucnv_toAlgorithmic(algorithmictype, cnv, target.param().abi(), targetcapacity, source.param().abi(), sourcelength, perrorcode) } #[inline] pub unsafe fn ucnv_toUChars(cnv: *mut UConverter, dest: *mut u16, destcapacity: i32, src: P0, srclength: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(cnv, dest, destcapacity, src.into_param().abi(), srclength, perrorcode) + ucnv_toUChars(cnv, dest, destcapacity, src.param().abi(), srclength, perrorcode) } #[inline] pub unsafe fn ucnv_toUCountPending(cnv: *const UConverter, status: *mut UErrorCode) -> i32 { @@ -3282,10 +3282,10 @@ pub unsafe fn ucnv_toUCountPending(cnv: *const UConverter, status: *mut UErrorCo #[inline] pub unsafe fn ucnv_toUnicode(converter: *mut UConverter, target: *mut *mut u16, targetlimit: *const u16, source: *const *const i8, sourcelimit: P0, offsets: *mut i32, flush: i8, err: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(converter, target, targetlimit, source, sourcelimit.into_param().abi(), offsets, flush, err) + ucnv_toUnicode(converter, target, targetlimit, source, sourcelimit.param().abi(), offsets, flush, err) } #[inline] pub unsafe fn ucnv_usesFallback(cnv: *const UConverter) -> i8 { @@ -3315,10 +3315,10 @@ pub unsafe fn ucnvsel_selectForString(sel: *const UConverterSelector, s: *const #[inline] pub unsafe fn ucnvsel_selectForUTF8(sel: *const UConverterSelector, s: P0, length: i32, status: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucnvsel_selectForUTF8(sel : *const UConverterSelector, s : windows_core::PCSTR, length : i32, status : *mut UErrorCode) -> *mut UEnumeration); - ucnvsel_selectForUTF8(sel, s.into_param().abi(), length, status) + ucnvsel_selectForUTF8(sel, s.param().abi(), length, status) } #[inline] pub unsafe fn ucnvsel_serialize(sel: *const UConverterSelector, buffer: *mut core::ffi::c_void, buffercapacity: i32, status: *mut UErrorCode) -> i32 { @@ -3373,11 +3373,11 @@ pub unsafe fn ucol_getContractionsAndExpansions(coll: *const UCollator, contract #[inline] pub unsafe fn ucol_getDisplayName(objloc: P0, disploc: P1, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), disploc.into_param().abi(), result, resultlength, status) + ucol_getDisplayName(objloc.param().abi(), disploc.param().abi(), result, resultlength, status) } #[inline] pub unsafe fn ucol_getEquivalentReorderCodes(reordercode: i32, dest: *mut i32, destcapacity: i32, perrorcode: *mut UErrorCode) -> i32 { @@ -3387,29 +3387,29 @@ pub unsafe fn ucol_getEquivalentReorderCodes(reordercode: i32, dest: *mut i32, d #[inline] pub unsafe fn ucol_getFunctionalEquivalent(result: P0, resultcapacity: i32, keyword: P1, locale: P2, isavailable: *mut i8, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), resultcapacity, keyword.into_param().abi(), locale.into_param().abi(), isavailable, status) + ucol_getFunctionalEquivalent(result.param().abi(), resultcapacity, keyword.param().abi(), locale.param().abi(), isavailable, status) } #[inline] pub unsafe fn ucol_getKeywordValues(keyword: P0, status: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucol_getKeywordValues(keyword : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UEnumeration); - ucol_getKeywordValues(keyword.into_param().abi(), status) + ucol_getKeywordValues(keyword.param().abi(), status) } #[inline] pub unsafe fn ucol_getKeywordValuesForLocale(key: P0, locale: P1, commonlyused: i8, status: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucol_getKeywordValuesForLocale(key : windows_core::PCSTR, locale : windows_core::PCSTR, commonlyused : i8, status : *mut UErrorCode) -> *mut UEnumeration); - ucol_getKeywordValuesForLocale(key.into_param().abi(), locale.into_param().abi(), commonlyused, status) + ucol_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), commonlyused, status) } #[inline] pub unsafe fn ucol_getKeywords(status: *mut UErrorCode) -> *mut UEnumeration { @@ -3514,10 +3514,10 @@ pub unsafe fn ucol_nextSortKeyPart(coll: *const UCollator, iter: *mut UCharItera #[inline] pub unsafe fn ucol_open(loc: P0, status: *mut UErrorCode) -> *mut UCollator where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucol_open(loc : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UCollator); - ucol_open(loc.into_param().abi(), status) + ucol_open(loc.param().abi(), status) } #[inline] pub unsafe fn ucol_openAvailableLocales(status: *mut UErrorCode) -> *mut UEnumeration { @@ -3607,11 +3607,11 @@ pub unsafe fn ucol_strcollIter(coll: *const UCollator, siter: *mut UCharIterator #[inline] pub unsafe fn ucol_strcollUTF8(coll: *const UCollator, source: P0, sourcelength: i32, target: P1, targetlength: i32, status: *mut UErrorCode) -> UCollationResult where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(coll, source.into_param().abi(), sourcelength, target.into_param().abi(), targetlength, status) + ucol_strcollUTF8(coll, source.param().abi(), sourcelength, target.param().abi(), targetlength, status) } #[inline] pub unsafe fn ucol_tertiaryOrder(order: i32) -> i32 { @@ -3736,42 +3736,42 @@ pub unsafe fn ucsdet_open(status: *mut UErrorCode) -> *mut UCharsetDetector { #[inline] pub unsafe fn ucsdet_setDeclaredEncoding(ucsd: *mut UCharsetDetector, encoding: P0, length: i32, status: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucsdet_setDeclaredEncoding(ucsd : *mut UCharsetDetector, encoding : windows_core::PCSTR, length : i32, status : *mut UErrorCode)); - ucsdet_setDeclaredEncoding(ucsd, encoding.into_param().abi(), length, status) + ucsdet_setDeclaredEncoding(ucsd, encoding.param().abi(), length, status) } #[inline] pub unsafe fn ucsdet_setText(ucsd: *mut UCharsetDetector, textin: P0, len: i32, status: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucsdet_setText(ucsd : *mut UCharsetDetector, textin : windows_core::PCSTR, len : i32, status : *mut UErrorCode)); - ucsdet_setText(ucsd, textin.into_param().abi(), len, status) + ucsdet_setText(ucsd, textin.param().abi(), len, status) } #[inline] pub unsafe fn ucurr_countCurrencies(locale: P0, date: f64, ec: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucurr_countCurrencies(locale : windows_core::PCSTR, date : f64, ec : *mut UErrorCode) -> i32); - ucurr_countCurrencies(locale.into_param().abi(), date, ec) + ucurr_countCurrencies(locale.param().abi(), date, ec) } #[inline] pub unsafe fn ucurr_forLocale(locale: P0, buff: *mut u16, buffcapacity: i32, ec: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucurr_forLocale(locale : windows_core::PCSTR, buff : *mut u16, buffcapacity : i32, ec : *mut UErrorCode) -> i32); - ucurr_forLocale(locale.into_param().abi(), buff, buffcapacity, ec) + ucurr_forLocale(locale.param().abi(), buff, buffcapacity, ec) } #[inline] pub unsafe fn ucurr_forLocaleAndDate(locale: P0, date: f64, index: i32, buff: *mut u16, buffcapacity: i32, ec: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), date, index, buff, buffcapacity, ec) + ucurr_forLocaleAndDate(locale.param().abi(), date, index, buff, buffcapacity, ec) } #[inline] pub unsafe fn ucurr_getDefaultFractionDigits(currency: *const u16, ec: *mut UErrorCode) -> i32 { @@ -3786,19 +3786,19 @@ pub unsafe fn ucurr_getDefaultFractionDigitsForUsage(currency: *const u16, usage #[inline] pub unsafe fn ucurr_getKeywordValuesForLocale(key: P0, locale: P1, commonlyused: i8, status: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucurr_getKeywordValuesForLocale(key : windows_core::PCSTR, locale : windows_core::PCSTR, commonlyused : i8, status : *mut UErrorCode) -> *mut UEnumeration); - ucurr_getKeywordValuesForLocale(key.into_param().abi(), locale.into_param().abi(), commonlyused, status) + ucurr_getKeywordValuesForLocale(key.param().abi(), locale.param().abi(), commonlyused, status) } #[inline] pub unsafe fn ucurr_getName(currency: *const u16, locale: P0, namestyle: UCurrNameStyle, ischoiceformat: *mut i8, len: *mut i32, ec: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(currency, locale.into_param().abi(), namestyle, ischoiceformat, len, ec) + ucurr_getName(currency, locale.param().abi(), namestyle, ischoiceformat, len, ec) } #[inline] pub unsafe fn ucurr_getNumericCode(currency: *const u16) -> i32 { @@ -3808,11 +3808,11 @@ pub unsafe fn ucurr_getNumericCode(currency: *const u16) -> i32 { #[inline] pub unsafe fn ucurr_getPluralName(currency: *const u16, locale: P0, ischoiceformat: *mut i8, pluralcount: P1, len: *mut i32, ec: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(currency, locale.into_param().abi(), ischoiceformat, pluralcount.into_param().abi(), len, ec) + ucurr_getPluralName(currency, locale.param().abi(), ischoiceformat, pluralcount.param().abi(), len, ec) } #[inline] pub unsafe fn ucurr_getRoundingIncrement(currency: *const u16, ec: *mut UErrorCode) -> f64 { @@ -3837,10 +3837,10 @@ pub unsafe fn ucurr_openISOCurrencies(currtype: u32, perrorcode: *mut UErrorCode #[inline] pub unsafe fn ucurr_register(isocode: *const u16, locale: P0, status: *mut UErrorCode) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ucurr_register(isocode : *const u16, locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut core::ffi::c_void); - ucurr_register(isocode, locale.into_param().abi(), status) + ucurr_register(isocode, locale.param().abi(), status) } #[inline] pub unsafe fn ucurr_unregister(key: *mut core::ffi::c_void, status: *mut UErrorCode) -> i8 { @@ -3955,10 +3955,10 @@ pub unsafe fn udat_isLenient(fmt: *const *const core::ffi::c_void) -> i8 { #[inline] pub unsafe fn udat_open(timestyle: UDateFormatStyle, datestyle: UDateFormatStyle, locale: P0, tzid: *const u16, tzidlength: i32, pattern: *const u16, patternlength: i32, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(timestyle, datestyle, locale.into_param().abi(), tzid, tzidlength, pattern, patternlength, status) + udat_open(timestyle, datestyle, locale.param().abi(), tzid, tzidlength, pattern, patternlength, 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 { @@ -4083,10 +4083,10 @@ pub unsafe fn udatpg_getSkeleton(unuseddtpg: *mut *mut core::ffi::c_void, patter #[inline] pub unsafe fn udatpg_open(locale: P0, perrorcode: *mut UErrorCode) -> *mut *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn udatpg_open(locale : windows_core::PCSTR, perrorcode : *mut UErrorCode) -> *mut *mut core::ffi::c_void); - udatpg_open(locale.into_param().abi(), perrorcode) + udatpg_open(locale.param().abi(), perrorcode) } #[inline] pub unsafe fn udatpg_openBaseSkeletons(dtpg: *const *const core::ffi::c_void, perrorcode: *mut UErrorCode) -> *mut UEnumeration { @@ -4151,10 +4151,10 @@ pub unsafe fn udtitvfmt_format(formatter: *const UDateIntervalFormat, fromdate: #[inline] pub unsafe fn udtitvfmt_open(locale: P0, skeleton: *const u16, skeletonlength: i32, tzid: *const u16, tzidlength: i32, status: *mut UErrorCode) -> *mut UDateIntervalFormat where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), skeleton, skeletonlength, tzid, tzidlength, status) + udtitvfmt_open(locale.param().abi(), skeleton, skeletonlength, tzid, tzidlength, status) } #[inline] pub unsafe fn udtitvfmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedDateInterval { @@ -4294,10 +4294,10 @@ pub unsafe fn ufmtval_nextPosition(ufmtval: *const UFormattedValue, ucfpos: *mut #[inline] pub unsafe fn ugender_getInstance(locale: P0, status: *mut UErrorCode) -> *mut UGenderInfo where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ugender_getInstance(locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UGenderInfo); - ugender_getInstance(locale.into_param().abi(), status) + ugender_getInstance(locale.param().abi(), status) } #[inline] pub unsafe fn ugender_getListGender(genderinfo: *const UGenderInfo, genders: *const UGender, size: i32, status: *mut UErrorCode) -> UGender { @@ -4317,11 +4317,11 @@ pub unsafe fn uidna_labelToASCII(idna: *const UIDNA, label: *const u16, length: #[inline] pub unsafe fn uidna_labelToASCII_UTF8(idna: *const UIDNA, label: P0, length: i32, dest: P1, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(idna, label.into_param().abi(), length, dest.into_param().abi(), capacity, pinfo, perrorcode) + uidna_labelToASCII_UTF8(idna, label.param().abi(), length, dest.param().abi(), capacity, pinfo, 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 { @@ -4331,11 +4331,11 @@ pub unsafe fn uidna_labelToUnicode(idna: *const UIDNA, label: *const u16, length #[inline] pub unsafe fn uidna_labelToUnicodeUTF8(idna: *const UIDNA, label: P0, length: i32, dest: P1, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(idna, label.into_param().abi(), length, dest.into_param().abi(), capacity, pinfo, perrorcode) + uidna_labelToUnicodeUTF8(idna, label.param().abi(), length, dest.param().abi(), capacity, pinfo, 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 { @@ -4345,11 +4345,11 @@ pub unsafe fn uidna_nameToASCII(idna: *const UIDNA, name: *const u16, length: i3 #[inline] pub unsafe fn uidna_nameToASCII_UTF8(idna: *const UIDNA, name: P0, length: i32, dest: P1, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(idna, name.into_param().abi(), length, dest.into_param().abi(), capacity, pinfo, perrorcode) + uidna_nameToASCII_UTF8(idna, name.param().abi(), length, dest.param().abi(), capacity, pinfo, 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 { @@ -4359,11 +4359,11 @@ pub unsafe fn uidna_nameToUnicode(idna: *const UIDNA, name: *const u16, length: #[inline] pub unsafe fn uidna_nameToUnicodeUTF8(idna: *const UIDNA, name: P0, length: i32, dest: P1, capacity: i32, pinfo: *mut UIDNAInfo, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(idna, name.into_param().abi(), length, dest.into_param().abi(), capacity, pinfo, perrorcode) + uidna_nameToUnicodeUTF8(idna, name.param().abi(), length, dest.param().abi(), capacity, pinfo, perrorcode) } #[inline] pub unsafe fn uidna_openUTS46(options: u32, perrorcode: *mut UErrorCode) -> *mut UIDNA { @@ -4403,18 +4403,18 @@ pub unsafe fn uiter_setString(iter: *mut UCharIterator, s: *const u16, length: i #[inline] pub unsafe fn uiter_setUTF16BE(iter: *mut UCharIterator, s: P0, length: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uiter_setUTF16BE(iter : *mut UCharIterator, s : windows_core::PCSTR, length : i32)); - uiter_setUTF16BE(iter, s.into_param().abi(), length) + uiter_setUTF16BE(iter, s.param().abi(), length) } #[inline] pub unsafe fn uiter_setUTF8(iter: *mut UCharIterator, s: P0, length: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uiter_setUTF8(iter : *mut UCharIterator, s : windows_core::PCSTR, length : i32)); - uiter_setUTF8(iter, s.into_param().abi(), length) + uiter_setUTF8(iter, s.param().abi(), length) } #[inline] pub unsafe fn uldn_close(ldn: *mut ULocaleDisplayNames) { @@ -4439,59 +4439,59 @@ pub unsafe fn uldn_getLocale(ldn: *const ULocaleDisplayNames) -> windows_core::P #[inline] pub unsafe fn uldn_keyDisplayName(ldn: *const ULocaleDisplayNames, key: P0, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_keyDisplayName(ldn : *const ULocaleDisplayNames, key : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_keyDisplayName(ldn, key.into_param().abi(), result, maxresultsize, perrorcode) + uldn_keyDisplayName(ldn, key.param().abi(), result, maxresultsize, perrorcode) } #[inline] pub unsafe fn uldn_keyValueDisplayName(ldn: *const ULocaleDisplayNames, key: P0, value: P1, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(ldn, key.into_param().abi(), value.into_param().abi(), result, maxresultsize, perrorcode) + uldn_keyValueDisplayName(ldn, key.param().abi(), value.param().abi(), result, maxresultsize, perrorcode) } #[inline] pub unsafe fn uldn_languageDisplayName(ldn: *const ULocaleDisplayNames, lang: P0, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_languageDisplayName(ldn : *const ULocaleDisplayNames, lang : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_languageDisplayName(ldn, lang.into_param().abi(), result, maxresultsize, perrorcode) + uldn_languageDisplayName(ldn, lang.param().abi(), result, maxresultsize, perrorcode) } #[inline] pub unsafe fn uldn_localeDisplayName(ldn: *const ULocaleDisplayNames, locale: P0, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_localeDisplayName(ldn : *const ULocaleDisplayNames, locale : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_localeDisplayName(ldn, locale.into_param().abi(), result, maxresultsize, perrorcode) + uldn_localeDisplayName(ldn, locale.param().abi(), result, maxresultsize, perrorcode) } #[inline] pub unsafe fn uldn_open(locale: P0, dialecthandling: UDialectHandling, perrorcode: *mut UErrorCode) -> *mut ULocaleDisplayNames where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_open(locale : windows_core::PCSTR, dialecthandling : UDialectHandling, perrorcode : *mut UErrorCode) -> *mut ULocaleDisplayNames); - uldn_open(locale.into_param().abi(), dialecthandling, perrorcode) + uldn_open(locale.param().abi(), dialecthandling, perrorcode) } #[inline] pub unsafe fn uldn_openForContext(locale: P0, contexts: *mut UDisplayContext, length: i32, perrorcode: *mut UErrorCode) -> *mut ULocaleDisplayNames where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_openForContext(locale : windows_core::PCSTR, contexts : *mut UDisplayContext, length : i32, perrorcode : *mut UErrorCode) -> *mut ULocaleDisplayNames); - uldn_openForContext(locale.into_param().abi(), contexts, length, perrorcode) + uldn_openForContext(locale.param().abi(), contexts, length, perrorcode) } #[inline] pub unsafe fn uldn_regionDisplayName(ldn: *const ULocaleDisplayNames, region: P0, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_regionDisplayName(ldn : *const ULocaleDisplayNames, region : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_regionDisplayName(ldn, region.into_param().abi(), result, maxresultsize, perrorcode) + uldn_regionDisplayName(ldn, region.param().abi(), result, maxresultsize, perrorcode) } #[inline] pub unsafe fn uldn_scriptCodeDisplayName(ldn: *const ULocaleDisplayNames, scriptcode: UScriptCode, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 { @@ -4501,18 +4501,18 @@ pub unsafe fn uldn_scriptCodeDisplayName(ldn: *const ULocaleDisplayNames, script #[inline] pub unsafe fn uldn_scriptDisplayName(ldn: *const ULocaleDisplayNames, script: P0, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_scriptDisplayName(ldn : *const ULocaleDisplayNames, script : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_scriptDisplayName(ldn, script.into_param().abi(), result, maxresultsize, perrorcode) + uldn_scriptDisplayName(ldn, script.param().abi(), result, maxresultsize, perrorcode) } #[inline] pub unsafe fn uldn_variantDisplayName(ldn: *const ULocaleDisplayNames, variant: P0, result: *mut u16, maxresultsize: i32, perrorcode: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uldn_variantDisplayName(ldn : *const ULocaleDisplayNames, variant : windows_core::PCSTR, result : *mut u16, maxresultsize : i32, perrorcode : *mut UErrorCode) -> i32); - uldn_variantDisplayName(ldn, variant.into_param().abi(), result, maxresultsize, perrorcode) + uldn_variantDisplayName(ldn, variant.param().abi(), result, maxresultsize, perrorcode) } #[inline] pub unsafe fn ulistfmt_close(listfmt: *mut UListFormatter) { @@ -4537,18 +4537,18 @@ pub unsafe fn ulistfmt_formatStringsToResult(listfmt: *const UListFormatter, str #[inline] pub unsafe fn ulistfmt_open(locale: P0, status: *mut UErrorCode) -> *mut UListFormatter where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ulistfmt_open(locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UListFormatter); - ulistfmt_open(locale.into_param().abi(), status) + ulistfmt_open(locale.param().abi(), status) } #[inline] pub unsafe fn ulistfmt_openForType(locale: P0, r#type: UListFormatterType, width: UListFormatterWidth, status: *mut UErrorCode) -> *mut UListFormatter where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, width, status) + ulistfmt_openForType(locale.param().abi(), r#type, width, status) } #[inline] pub unsafe fn ulistfmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedList { @@ -4563,37 +4563,37 @@ pub unsafe fn ulistfmt_resultAsValue(uresult: *const UFormattedList, ec: *mut UE #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), resultavailable, outresult, acceptlist, acceptlistcount, availablelocales, status) + uloc_acceptLanguage(result.param().abi(), resultavailable, outresult, acceptlist, acceptlistcount, availablelocales, status) } #[inline] pub unsafe fn uloc_acceptLanguageFromHTTP(result: P0, resultavailable: i32, outresult: *mut UAcceptResult, httpacceptlanguage: P1, availablelocales: *mut UEnumeration, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), resultavailable, outresult, httpacceptlanguage.into_param().abi(), availablelocales, status) + uloc_acceptLanguageFromHTTP(result.param().abi(), resultavailable, outresult, httpacceptlanguage.param().abi(), availablelocales, status) } #[inline] pub unsafe fn uloc_addLikelySubtags(localeid: P0, maximizedlocaleid: P1, maximizedlocaleidcapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_addLikelySubtags(localeid : windows_core::PCSTR, maximizedlocaleid : windows_core::PCSTR, maximizedlocaleidcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_addLikelySubtags(localeid.into_param().abi(), maximizedlocaleid.into_param().abi(), maximizedlocaleidcapacity, err) + uloc_addLikelySubtags(localeid.param().abi(), maximizedlocaleid.param().abi(), maximizedlocaleidcapacity, err) } #[inline] pub unsafe fn uloc_canonicalize(localeid: P0, name: P1, namecapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_canonicalize(localeid : windows_core::PCSTR, name : windows_core::PCSTR, namecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_canonicalize(localeid.into_param().abi(), name.into_param().abi(), namecapacity, err) + uloc_canonicalize(localeid.param().abi(), name.param().abi(), namecapacity, err) } #[inline] pub unsafe fn uloc_countAvailable() -> i32 { @@ -4603,11 +4603,11 @@ pub unsafe fn uloc_countAvailable() -> i32 { #[inline] pub unsafe fn uloc_forLanguageTag(langtag: P0, localeid: P1, localeidcapacity: i32, parsedlength: *mut i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), localeid.into_param().abi(), localeidcapacity, parsedlength, err) + uloc_forLanguageTag(langtag.param().abi(), localeid.param().abi(), localeidcapacity, parsedlength, err) } #[inline] pub unsafe fn uloc_getAvailable(n: i32) -> windows_core::PCSTR { @@ -4617,28 +4617,28 @@ pub unsafe fn uloc_getAvailable(n: i32) -> windows_core::PCSTR { #[inline] pub unsafe fn uloc_getBaseName(localeid: P0, name: P1, namecapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getBaseName(localeid : windows_core::PCSTR, name : windows_core::PCSTR, namecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getBaseName(localeid.into_param().abi(), name.into_param().abi(), namecapacity, err) + uloc_getBaseName(localeid.param().abi(), name.param().abi(), namecapacity, err) } #[inline] pub unsafe fn uloc_getCharacterOrientation(localeid: P0, status: *mut UErrorCode) -> ULayoutType where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getCharacterOrientation(localeid : windows_core::PCSTR, status : *mut UErrorCode) -> ULayoutType); - uloc_getCharacterOrientation(localeid.into_param().abi(), status) + uloc_getCharacterOrientation(localeid.param().abi(), status) } #[inline] pub unsafe fn uloc_getCountry(localeid: P0, country: P1, countrycapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getCountry(localeid : windows_core::PCSTR, country : windows_core::PCSTR, countrycapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getCountry(localeid.into_param().abi(), country.into_param().abi(), countrycapacity, err) + uloc_getCountry(localeid.param().abi(), country.param().abi(), countrycapacity, err) } #[inline] pub unsafe fn uloc_getDefault() -> windows_core::PCSTR { @@ -4648,82 +4648,82 @@ pub unsafe fn uloc_getDefault() -> windows_core::PCSTR { #[inline] pub unsafe fn uloc_getDisplayCountry(locale: P0, displaylocale: P1, country: *mut u16, countrycapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), displaylocale.into_param().abi(), country, countrycapacity, status) + uloc_getDisplayCountry(locale.param().abi(), displaylocale.param().abi(), country, countrycapacity, status) } #[inline] pub unsafe fn uloc_getDisplayKeyword(keyword: P0, displaylocale: P1, dest: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), displaylocale.into_param().abi(), dest, destcapacity, status) + uloc_getDisplayKeyword(keyword.param().abi(), displaylocale.param().abi(), dest, destcapacity, status) } #[inline] pub unsafe fn uloc_getDisplayKeywordValue(locale: P0, keyword: P1, displaylocale: P2, dest: *mut u16, destcapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), keyword.into_param().abi(), displaylocale.into_param().abi(), dest, destcapacity, status) + uloc_getDisplayKeywordValue(locale.param().abi(), keyword.param().abi(), displaylocale.param().abi(), dest, destcapacity, status) } #[inline] pub unsafe fn uloc_getDisplayLanguage(locale: P0, displaylocale: P1, language: *mut u16, languagecapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), displaylocale.into_param().abi(), language, languagecapacity, status) + uloc_getDisplayLanguage(locale.param().abi(), displaylocale.param().abi(), language, languagecapacity, status) } #[inline] pub unsafe fn uloc_getDisplayName(localeid: P0, inlocaleid: P1, result: *mut u16, maxresultsize: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), inlocaleid.into_param().abi(), result, maxresultsize, err) + uloc_getDisplayName(localeid.param().abi(), inlocaleid.param().abi(), result, maxresultsize, err) } #[inline] pub unsafe fn uloc_getDisplayScript(locale: P0, displaylocale: P1, script: *mut u16, scriptcapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), displaylocale.into_param().abi(), script, scriptcapacity, status) + uloc_getDisplayScript(locale.param().abi(), displaylocale.param().abi(), script, scriptcapacity, status) } #[inline] pub unsafe fn uloc_getDisplayVariant(locale: P0, displaylocale: P1, variant: *mut u16, variantcapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), displaylocale.into_param().abi(), variant, variantcapacity, status) + uloc_getDisplayVariant(locale.param().abi(), displaylocale.param().abi(), variant, variantcapacity, status) } #[inline] pub unsafe fn uloc_getISO3Country(localeid: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getISO3Country(localeid : windows_core::PCSTR) -> windows_core::PCSTR); - uloc_getISO3Country(localeid.into_param().abi()) + uloc_getISO3Country(localeid.param().abi()) } #[inline] pub unsafe fn uloc_getISO3Language(localeid: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getISO3Language(localeid : windows_core::PCSTR) -> windows_core::PCSTR); - uloc_getISO3Language(localeid.into_param().abi()) + uloc_getISO3Language(localeid.param().abi()) } #[inline] pub unsafe fn uloc_getISOCountries() -> *mut *mut i8 { @@ -4738,98 +4738,98 @@ pub unsafe fn uloc_getISOLanguages() -> *mut *mut i8 { #[inline] pub unsafe fn uloc_getKeywordValue(localeid: P0, keywordname: P1, buffer: P2, buffercapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), keywordname.into_param().abi(), buffer.into_param().abi(), buffercapacity, status) + uloc_getKeywordValue(localeid.param().abi(), keywordname.param().abi(), buffer.param().abi(), buffercapacity, status) } #[inline] pub unsafe fn uloc_getLCID(localeid: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getLCID(localeid : windows_core::PCSTR) -> u32); - uloc_getLCID(localeid.into_param().abi()) + uloc_getLCID(localeid.param().abi()) } #[inline] pub unsafe fn uloc_getLanguage(localeid: P0, language: P1, languagecapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getLanguage(localeid : windows_core::PCSTR, language : windows_core::PCSTR, languagecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getLanguage(localeid.into_param().abi(), language.into_param().abi(), languagecapacity, err) + uloc_getLanguage(localeid.param().abi(), language.param().abi(), languagecapacity, err) } #[inline] pub unsafe fn uloc_getLineOrientation(localeid: P0, status: *mut UErrorCode) -> ULayoutType where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getLineOrientation(localeid : windows_core::PCSTR, status : *mut UErrorCode) -> ULayoutType); - uloc_getLineOrientation(localeid.into_param().abi(), status) + uloc_getLineOrientation(localeid.param().abi(), status) } #[inline] pub unsafe fn uloc_getLocaleForLCID(hostid: u32, locale: P0, localecapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getLocaleForLCID(hostid : u32, locale : windows_core::PCSTR, localecapacity : i32, status : *mut UErrorCode) -> i32); - uloc_getLocaleForLCID(hostid, locale.into_param().abi(), localecapacity, status) + uloc_getLocaleForLCID(hostid, locale.param().abi(), localecapacity, status) } #[inline] pub unsafe fn uloc_getName(localeid: P0, name: P1, namecapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getName(localeid : windows_core::PCSTR, name : windows_core::PCSTR, namecapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getName(localeid.into_param().abi(), name.into_param().abi(), namecapacity, err) + uloc_getName(localeid.param().abi(), name.param().abi(), namecapacity, err) } #[inline] pub unsafe fn uloc_getParent(localeid: P0, parent: P1, parentcapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getParent(localeid : windows_core::PCSTR, parent : windows_core::PCSTR, parentcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getParent(localeid.into_param().abi(), parent.into_param().abi(), parentcapacity, err) + uloc_getParent(localeid.param().abi(), parent.param().abi(), parentcapacity, err) } #[inline] pub unsafe fn uloc_getScript(localeid: P0, script: P1, scriptcapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getScript(localeid : windows_core::PCSTR, script : windows_core::PCSTR, scriptcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getScript(localeid.into_param().abi(), script.into_param().abi(), scriptcapacity, err) + uloc_getScript(localeid.param().abi(), script.param().abi(), scriptcapacity, err) } #[inline] pub unsafe fn uloc_getVariant(localeid: P0, variant: P1, variantcapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_getVariant(localeid : windows_core::PCSTR, variant : windows_core::PCSTR, variantcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_getVariant(localeid.into_param().abi(), variant.into_param().abi(), variantcapacity, err) + uloc_getVariant(localeid.param().abi(), variant.param().abi(), variantcapacity, err) } #[inline] pub unsafe fn uloc_isRightToLeft(locale: P0) -> i8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_isRightToLeft(locale : windows_core::PCSTR) -> i8); - uloc_isRightToLeft(locale.into_param().abi()) + uloc_isRightToLeft(locale.param().abi()) } #[inline] pub unsafe fn uloc_minimizeSubtags(localeid: P0, minimizedlocaleid: P1, minimizedlocaleidcapacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_minimizeSubtags(localeid : windows_core::PCSTR, minimizedlocaleid : windows_core::PCSTR, minimizedlocaleidcapacity : i32, err : *mut UErrorCode) -> i32); - uloc_minimizeSubtags(localeid.into_param().abi(), minimizedlocaleid.into_param().abi(), minimizedlocaleidcapacity, err) + uloc_minimizeSubtags(localeid.param().abi(), minimizedlocaleid.param().abi(), minimizedlocaleidcapacity, err) } #[inline] pub unsafe fn uloc_openAvailableByType(r#type: ULocAvailableType, status: *mut UErrorCode) -> *mut UEnumeration { @@ -4839,71 +4839,71 @@ pub unsafe fn uloc_openAvailableByType(r#type: ULocAvailableType, status: *mut U #[inline] pub unsafe fn uloc_openKeywords(localeid: P0, status: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_openKeywords(localeid : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UEnumeration); - uloc_openKeywords(localeid.into_param().abi(), status) + uloc_openKeywords(localeid.param().abi(), status) } #[inline] pub unsafe fn uloc_setDefault(localeid: P0, status: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_setDefault(localeid : windows_core::PCSTR, status : *mut UErrorCode)); - uloc_setDefault(localeid.into_param().abi(), status) + uloc_setDefault(localeid.param().abi(), status) } #[inline] pub unsafe fn uloc_setKeywordValue(keywordname: P0, keywordvalue: P1, buffer: P2, buffercapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), keywordvalue.into_param().abi(), buffer.into_param().abi(), buffercapacity, status) + uloc_setKeywordValue(keywordname.param().abi(), keywordvalue.param().abi(), buffer.param().abi(), buffercapacity, status) } #[inline] pub unsafe fn uloc_toLanguageTag(localeid: P0, langtag: P1, langtagcapacity: i32, strict: i8, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_toLanguageTag(localeid : windows_core::PCSTR, langtag : windows_core::PCSTR, langtagcapacity : i32, strict : i8, err : *mut UErrorCode) -> i32); - uloc_toLanguageTag(localeid.into_param().abi(), langtag.into_param().abi(), langtagcapacity, strict, err) + uloc_toLanguageTag(localeid.param().abi(), langtag.param().abi(), langtagcapacity, strict, err) } #[inline] pub unsafe fn uloc_toLegacyKey(keyword: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_toLegacyKey(keyword : windows_core::PCSTR) -> windows_core::PCSTR); - uloc_toLegacyKey(keyword.into_param().abi()) + uloc_toLegacyKey(keyword.param().abi()) } #[inline] pub unsafe fn uloc_toLegacyType(keyword: P0, value: P1) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_toLegacyType(keyword : windows_core::PCSTR, value : windows_core::PCSTR) -> windows_core::PCSTR); - uloc_toLegacyType(keyword.into_param().abi(), value.into_param().abi()) + uloc_toLegacyType(keyword.param().abi(), value.param().abi()) } #[inline] pub unsafe fn uloc_toUnicodeLocaleKey(keyword: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_toUnicodeLocaleKey(keyword : windows_core::PCSTR) -> windows_core::PCSTR); - uloc_toUnicodeLocaleKey(keyword.into_param().abi()) + uloc_toUnicodeLocaleKey(keyword.param().abi()) } #[inline] pub unsafe fn uloc_toUnicodeLocaleType(keyword: P0, value: P1) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uloc_toUnicodeLocaleType(keyword : windows_core::PCSTR, value : windows_core::PCSTR) -> windows_core::PCSTR); - uloc_toUnicodeLocaleType(keyword.into_param().abi(), value.into_param().abi()) + uloc_toUnicodeLocaleType(keyword.param().abi(), value.param().abi()) } #[inline] pub unsafe fn ulocdata_close(uld: *mut ULocaleData) { @@ -4938,10 +4938,10 @@ pub unsafe fn ulocdata_getLocaleSeparator(uld: *mut ULocaleData, separator: *mut #[inline] pub unsafe fn ulocdata_getMeasurementSystem(localeid: P0, status: *mut UErrorCode) -> UMeasurementSystem where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ulocdata_getMeasurementSystem(localeid : windows_core::PCSTR, status : *mut UErrorCode) -> UMeasurementSystem); - ulocdata_getMeasurementSystem(localeid.into_param().abi(), status) + ulocdata_getMeasurementSystem(localeid.param().abi(), status) } #[inline] pub unsafe fn ulocdata_getNoSubstitute(uld: *mut ULocaleData) -> i8 { @@ -4951,18 +4951,18 @@ pub unsafe fn ulocdata_getNoSubstitute(uld: *mut ULocaleData) -> i8 { #[inline] pub unsafe fn ulocdata_getPaperSize(localeid: P0, height: *mut i32, width: *mut i32, status: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ulocdata_getPaperSize(localeid : windows_core::PCSTR, height : *mut i32, width : *mut i32, status : *mut UErrorCode)); - ulocdata_getPaperSize(localeid.into_param().abi(), height, width, status) + ulocdata_getPaperSize(localeid.param().abi(), height, width, status) } #[inline] pub unsafe fn ulocdata_open(localeid: P0, status: *mut UErrorCode) -> *mut ULocaleData where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ulocdata_open(localeid : windows_core::PCSTR, status : *mut UErrorCode) -> *mut ULocaleData); - ulocdata_open(localeid.into_param().abi(), status) + ulocdata_open(localeid.param().abi(), status) } #[inline] pub unsafe fn ulocdata_setNoSubstitute(uld: *mut ULocaleData, setting: i8) { @@ -5002,10 +5002,10 @@ pub unsafe fn umsg_getLocale(fmt: *const *const core::ffi::c_void) -> windows_co #[inline] pub unsafe fn umsg_open(pattern: *const u16, patternlength: i32, locale: P0, parseerror: *mut UParseError, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(pattern, patternlength, locale.into_param().abi(), parseerror, status) + umsg_open(pattern, patternlength, locale.param().abi(), parseerror, 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) { @@ -5015,10 +5015,10 @@ pub unsafe fn umsg_parse(fmt: *const *const core::ffi::c_void, source: *const u1 #[inline] pub unsafe fn umsg_setLocale(fmt: *mut *mut core::ffi::c_void, locale: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn umsg_setLocale(fmt : *mut *mut core::ffi::c_void, locale : windows_core::PCSTR)); - umsg_setLocale(fmt, locale.into_param().abi()) + umsg_setLocale(fmt, locale.param().abi()) } #[inline] pub unsafe fn umsg_toPattern(fmt: *const *const core::ffi::c_void, result: *mut u16, resultlength: i32, status: *mut UErrorCode) -> i32 { @@ -5113,11 +5113,11 @@ pub unsafe fn unorm2_getDecomposition(norm2: *const UNormalizer2, c: i32, decomp #[inline] pub unsafe fn unorm2_getInstance(packagename: P0, name: P1, mode: UNormalization2Mode, perrorcode: *mut UErrorCode) -> *mut UNormalizer2 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn unorm2_getInstance(packagename : windows_core::PCSTR, name : windows_core::PCSTR, mode : UNormalization2Mode, perrorcode : *mut UErrorCode) -> *mut UNormalizer2); - unorm2_getInstance(packagename.into_param().abi(), name.into_param().abi(), mode, perrorcode) + unorm2_getInstance(packagename.param().abi(), name.param().abi(), mode, perrorcode) } #[inline] pub unsafe fn unorm2_getNFCInstance(perrorcode: *mut UErrorCode) -> *mut UNormalizer2 { @@ -5227,10 +5227,10 @@ pub unsafe fn unum_format(fmt: *const *const core::ffi::c_void, number: i32, res #[inline] pub unsafe fn unum_formatDecimal(fmt: *const *const core::ffi::c_void, number: P0, length: i32, result: *mut u16, resultlength: i32, pos: *mut UFieldPosition, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(fmt, number.into_param().abi(), length, result, resultlength, pos, status) + unum_formatDecimal(fmt, number.param().abi(), length, result, resultlength, pos, 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 { @@ -5295,10 +5295,10 @@ pub unsafe fn unum_getTextAttribute(fmt: *const *const core::ffi::c_void, tag: U #[inline] pub unsafe fn unum_open(style: UNumberFormatStyle, pattern: *const u16, patternlength: i32, locale: P0, parseerr: *mut UParseError, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(style, pattern, patternlength, locale.into_param().abi(), parseerr, status) + unum_open(style, pattern, patternlength, locale.param().abi(), parseerr, 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 { @@ -5308,10 +5308,10 @@ pub unsafe fn unum_parse(fmt: *const *const core::ffi::c_void, text: *const u16, #[inline] pub unsafe fn unum_parseDecimal(fmt: *const *const core::ffi::c_void, text: *const u16, textlength: i32, parsepos: *mut i32, outbuf: P0, outbuflength: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(fmt, text, textlength, parsepos, outbuf.into_param().abi(), outbuflength, status) + unum_parseDecimal(fmt, text, textlength, parsepos, outbuf.param().abi(), outbuflength, 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 { @@ -5376,10 +5376,10 @@ pub unsafe fn unumf_closeResult(uresult: *mut UFormattedNumber) { #[inline] pub unsafe fn unumf_formatDecimal(uformatter: *const UNumberFormatter, value: P0, valuelen: i32, uresult: *mut UFormattedNumber, ec: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: 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(uformatter, value.into_param().abi(), valuelen, uresult, ec) + unumf_formatDecimal(uformatter, value.param().abi(), valuelen, uresult, ec) } #[inline] pub unsafe fn unumf_formatDouble(uformatter: *const UNumberFormatter, value: f64, uresult: *mut UFormattedNumber, ec: *mut UErrorCode) { @@ -5394,18 +5394,18 @@ pub unsafe fn unumf_formatInt(uformatter: *const UNumberFormatter, value: i64, u #[inline] pub unsafe fn unumf_openForSkeletonAndLocale(skeleton: *const u16, skeletonlen: i32, locale: P0, ec: *mut UErrorCode) -> *mut UNumberFormatter where - P0: windows_core::IntoParam, + P0: 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(skeleton, skeletonlen, locale.into_param().abi(), ec) + unumf_openForSkeletonAndLocale(skeleton, skeletonlen, locale.param().abi(), ec) } #[inline] pub unsafe fn unumf_openForSkeletonAndLocaleWithError(skeleton: *const u16, skeletonlen: i32, locale: P0, perror: *mut UParseError, ec: *mut UErrorCode) -> *mut UNumberFormatter where - P0: windows_core::IntoParam, + P0: 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(skeleton, skeletonlen, locale.into_param().abi(), perror, ec) + unumf_openForSkeletonAndLocaleWithError(skeleton, skeletonlen, locale.param().abi(), perror, ec) } #[inline] pub unsafe fn unumf_openResult(ec: *mut UErrorCode) -> *mut UFormattedNumber { @@ -5460,10 +5460,10 @@ pub unsafe fn unumsys_isAlgorithmic(unumsys: *const UNumberingSystem) -> i8 { #[inline] pub unsafe fn unumsys_open(locale: P0, status: *mut UErrorCode) -> *mut UNumberingSystem where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn unumsys_open(locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UNumberingSystem); - unumsys_open(locale.into_param().abi(), status) + unumsys_open(locale.param().abi(), status) } #[inline] pub unsafe fn unumsys_openAvailableNames(status: *mut UErrorCode) -> *mut UEnumeration { @@ -5473,10 +5473,10 @@ pub unsafe fn unumsys_openAvailableNames(status: *mut UErrorCode) -> *mut UEnume #[inline] pub unsafe fn unumsys_openByName(name: P0, status: *mut UErrorCode) -> *mut UNumberingSystem where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn unumsys_openByName(name : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UNumberingSystem); - unumsys_openByName(name.into_param().abi(), status) + unumsys_openByName(name.param().abi(), status) } #[inline] pub unsafe fn uplrules_close(uplrules: *mut UPluralRules) { @@ -5491,18 +5491,18 @@ pub unsafe fn uplrules_getKeywords(uplrules: *const UPluralRules, status: *mut U #[inline] pub unsafe fn uplrules_open(locale: P0, status: *mut UErrorCode) -> *mut UPluralRules where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uplrules_open(locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UPluralRules); - uplrules_open(locale.into_param().abi(), status) + uplrules_open(locale.param().abi(), status) } #[inline] pub unsafe fn uplrules_openForType(locale: P0, r#type: UPluralType, status: *mut UErrorCode) -> *mut UPluralRules where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uplrules_openForType(locale : windows_core::PCSTR, r#type : UPluralType, status : *mut UErrorCode) -> *mut UPluralRules); - uplrules_openForType(locale.into_param().abi(), r#type, status) + uplrules_openForType(locale.param().abi(), r#type, status) } #[inline] pub unsafe fn uplrules_select(uplrules: *const UPluralRules, number: f64, keyword: *mut u16, capacity: i32, status: *mut UErrorCode) -> i32 { @@ -5617,10 +5617,10 @@ pub unsafe fn uregex_groupCount(regexp: *mut URegularExpression, status: *mut UE #[inline] pub unsafe fn uregex_groupNumberFromCName(regexp: *mut URegularExpression, groupname: P0, namelength: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uregex_groupNumberFromCName(regexp : *mut URegularExpression, groupname : windows_core::PCSTR, namelength : i32, status : *mut UErrorCode) -> i32); - uregex_groupNumberFromCName(regexp, groupname.into_param().abi(), namelength, status) + uregex_groupNumberFromCName(regexp, groupname.param().abi(), namelength, status) } #[inline] pub unsafe fn uregex_groupNumberFromName(regexp: *mut URegularExpression, groupname: *const u16, namelength: i32, status: *mut UErrorCode) -> i32 { @@ -5675,10 +5675,10 @@ pub unsafe fn uregex_open(pattern: *const u16, patternlength: i32, flags: u32, p #[inline] pub unsafe fn uregex_openC(pattern: P0, flags: u32, pe: *mut UParseError, status: *mut UErrorCode) -> *mut URegularExpression where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uregex_openC(pattern : windows_core::PCSTR, flags : u32, pe : *mut UParseError, status : *mut UErrorCode) -> *mut URegularExpression); - uregex_openC(pattern.into_param().abi(), flags, pe, status) + uregex_openC(pattern.param().abi(), flags, pe, status) } #[inline] pub unsafe fn uregex_openUText(pattern: *mut UText, flags: u32, pe: *mut UParseError, status: *mut UErrorCode) -> *mut URegularExpression { @@ -5883,10 +5883,10 @@ pub unsafe fn uregion_getRegionCode(uregion: *const URegion) -> windows_core::PC #[inline] pub unsafe fn uregion_getRegionFromCode(regioncode: P0, status: *mut UErrorCode) -> *mut URegion where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uregion_getRegionFromCode(regioncode : windows_core::PCSTR, status : *mut UErrorCode) -> *mut URegion); - uregion_getRegionFromCode(regioncode.into_param().abi(), status) + uregion_getRegionFromCode(regioncode.param().abi(), status) } #[inline] pub unsafe fn uregion_getRegionFromNumericCode(code: i32, status: *mut UErrorCode) -> *mut URegion { @@ -5936,10 +5936,10 @@ pub unsafe fn ureldatefmt_formatToResult(reldatefmt: *const URelativeDateTimeFor #[inline] pub unsafe fn ureldatefmt_open(locale: P0, nftoadopt: *mut *mut core::ffi::c_void, width: UDateRelativeDateTimeFormatterStyle, capitalizationcontext: UDisplayContext, status: *mut UErrorCode) -> *mut URelativeDateTimeFormatter where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), nftoadopt, width, capitalizationcontext, status) + ureldatefmt_open(locale.param().abi(), nftoadopt, width, capitalizationcontext, status) } #[inline] pub unsafe fn ureldatefmt_openResult(ec: *mut UErrorCode) -> *mut UFormattedRelativeDateTime { @@ -5969,10 +5969,10 @@ pub unsafe fn ures_getByIndex(resourcebundle: *const UResourceBundle, indexr: i3 #[inline] pub unsafe fn ures_getByKey(resourcebundle: *const UResourceBundle, key: P0, fillin: *mut UResourceBundle, status: *mut UErrorCode) -> *mut UResourceBundle where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ures_getByKey(resourcebundle : *const UResourceBundle, key : windows_core::PCSTR, fillin : *mut UResourceBundle, status : *mut UErrorCode) -> *mut UResourceBundle); - ures_getByKey(resourcebundle, key.into_param().abi(), fillin, status) + ures_getByKey(resourcebundle, key.param().abi(), fillin, status) } #[inline] pub unsafe fn ures_getInt(resourcebundle: *const UResourceBundle, status: *mut UErrorCode) -> i32 { @@ -6022,10 +6022,10 @@ pub unsafe fn ures_getStringByIndex(resourcebundle: *const UResourceBundle, inde #[inline] pub unsafe fn ures_getStringByKey(resb: *const UResourceBundle, key: P0, len: *mut i32, status: *mut UErrorCode) -> *mut u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ures_getStringByKey(resb : *const UResourceBundle, key : windows_core::PCSTR, len : *mut i32, status : *mut UErrorCode) -> *mut u16); - ures_getStringByKey(resb, key.into_param().abi(), len, status) + ures_getStringByKey(resb, key.param().abi(), len, status) } #[inline] pub unsafe fn ures_getType(resourcebundle: *const UResourceBundle) -> UResType { @@ -6040,27 +6040,27 @@ pub unsafe fn ures_getUInt(resourcebundle: *const UResourceBundle, status: *mut #[inline] pub unsafe fn ures_getUTF8String(resb: *const UResourceBundle, dest: P0, length: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(resb, dest.into_param().abi(), length, forcecopy, status) + ures_getUTF8String(resb, dest.param().abi(), length, forcecopy, status) } #[inline] pub unsafe fn ures_getUTF8StringByIndex(resb: *const UResourceBundle, stringindex: i32, dest: P0, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(resb, stringindex, dest.into_param().abi(), plength, forcecopy, status) + ures_getUTF8StringByIndex(resb, stringindex, dest.param().abi(), plength, forcecopy, status) } #[inline] pub unsafe fn ures_getUTF8StringByKey(resb: *const UResourceBundle, key: P0, dest: P1, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(resb, key.into_param().abi(), dest.into_param().abi(), plength, forcecopy, status) + ures_getUTF8StringByKey(resb, key.param().abi(), dest.param().abi(), plength, forcecopy, status) } #[inline] pub unsafe fn ures_getVersion(resb: *const UResourceBundle, versioninfo: *mut u8) { @@ -6075,36 +6075,36 @@ pub unsafe fn ures_hasNext(resourcebundle: *const UResourceBundle) -> i8 { #[inline] pub unsafe fn ures_open(packagename: P0, locale: P1, status: *mut UErrorCode) -> *mut UResourceBundle where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ures_open(packagename : windows_core::PCSTR, locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UResourceBundle); - ures_open(packagename.into_param().abi(), locale.into_param().abi(), status) + ures_open(packagename.param().abi(), locale.param().abi(), status) } #[inline] pub unsafe fn ures_openAvailableLocales(packagename: P0, status: *mut UErrorCode) -> *mut UEnumeration where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ures_openAvailableLocales(packagename : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UEnumeration); - ures_openAvailableLocales(packagename.into_param().abi(), status) + ures_openAvailableLocales(packagename.param().abi(), status) } #[inline] pub unsafe fn ures_openDirect(packagename: P0, locale: P1, status: *mut UErrorCode) -> *mut UResourceBundle where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ures_openDirect(packagename : windows_core::PCSTR, locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UResourceBundle); - ures_openDirect(packagename.into_param().abi(), locale.into_param().abi(), status) + ures_openDirect(packagename.param().abi(), locale.param().abi(), status) } #[inline] pub unsafe fn ures_openU(packagename: *const u16, locale: P0, status: *mut UErrorCode) -> *mut UResourceBundle where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn ures_openU(packagename : *const u16, locale : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UResourceBundle); - ures_openU(packagename, locale.into_param().abi(), status) + ures_openU(packagename, locale.param().abi(), status) } #[inline] pub unsafe fn ures_resetIterator(resourcebundle: *mut UResourceBundle) { @@ -6119,10 +6119,10 @@ pub unsafe fn uscript_breaksBetweenLetters(script: UScriptCode) -> i8 { #[inline] pub unsafe fn uscript_getCode(nameorabbrorlocale: P0, fillin: *mut UScriptCode, capacity: i32, err: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uscript_getCode(nameorabbrorlocale : windows_core::PCSTR, fillin : *mut UScriptCode, capacity : i32, err : *mut UErrorCode) -> i32); - uscript_getCode(nameorabbrorlocale.into_param().abi(), fillin, capacity, err) + uscript_getCode(nameorabbrorlocale.param().abi(), fillin, capacity, err) } #[inline] pub unsafe fn uscript_getName(scriptcode: UScriptCode) -> windows_core::PCSTR { @@ -6242,10 +6242,10 @@ pub unsafe fn usearch_next(strsrch: *mut UStringSearch, status: *mut UErrorCode) #[inline] pub unsafe fn usearch_open(pattern: *const u16, patternlength: i32, text: *const u16, textlength: i32, locale: P0, breakiter: *mut UBreakIterator, status: *mut UErrorCode) -> *mut UStringSearch where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.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(pattern, patternlength, text, textlength, locale.into_param().abi(), breakiter, status) + usearch_open(pattern, patternlength, text, textlength, locale.param().abi(), breakiter, 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 { @@ -6565,18 +6565,18 @@ pub unsafe fn uset_spanBack(set: *const USet, s: *const u16, length: i32, spanco #[inline] pub unsafe fn uset_spanBackUTF8(set: *const USet, s: P0, length: i32, spancondition: USetSpanCondition) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uset_spanBackUTF8(set : *const USet, s : windows_core::PCSTR, length : i32, spancondition : USetSpanCondition) -> i32); - uset_spanBackUTF8(set, s.into_param().abi(), length, spancondition) + uset_spanBackUTF8(set, s.param().abi(), length, spancondition) } #[inline] pub unsafe fn uset_spanUTF8(set: *const USet, s: P0, length: i32, spancondition: USetSpanCondition) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uset_spanUTF8(set : *const USet, s : windows_core::PCSTR, length : i32, spancondition : USetSpanCondition) -> i32); - uset_spanUTF8(set, s.into_param().abi(), length, 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 { @@ -6591,11 +6591,11 @@ pub unsafe fn uspoof_areConfusable(sc: *const USpoofChecker, id1: *const u16, le #[inline] pub unsafe fn uspoof_areConfusableUTF8(sc: *const USpoofChecker, id1: P0, length1: i32, id2: P1, length2: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(sc, id1.into_param().abi(), length1, id2.into_param().abi(), length2, status) + uspoof_areConfusableUTF8(sc, id1.param().abi(), length1, id2.param().abi(), length2, status) } #[inline] pub unsafe fn uspoof_check(sc: *const USpoofChecker, id: *const u16, length: i32, position: *mut i32, status: *mut UErrorCode) -> i32 { @@ -6610,18 +6610,18 @@ pub unsafe fn uspoof_check2(sc: *const USpoofChecker, id: *const u16, length: i3 #[inline] pub unsafe fn uspoof_check2UTF8(sc: *const USpoofChecker, id: P0, length: i32, checkresult: *mut USpoofCheckResult, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uspoof_check2UTF8(sc : *const USpoofChecker, id : windows_core::PCSTR, length : i32, checkresult : *mut USpoofCheckResult, status : *mut UErrorCode) -> i32); - uspoof_check2UTF8(sc, id.into_param().abi(), length, checkresult, status) + uspoof_check2UTF8(sc, id.param().abi(), length, checkresult, status) } #[inline] pub unsafe fn uspoof_checkUTF8(sc: *const USpoofChecker, id: P0, length: i32, position: *mut i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uspoof_checkUTF8(sc : *const USpoofChecker, id : windows_core::PCSTR, length : i32, position : *mut i32, status : *mut UErrorCode) -> i32); - uspoof_checkUTF8(sc, id.into_param().abi(), length, position, status) + uspoof_checkUTF8(sc, id.param().abi(), length, position, status) } #[inline] pub unsafe fn uspoof_clone(sc: *const USpoofChecker, status: *mut UErrorCode) -> *mut USpoofChecker { @@ -6691,11 +6691,11 @@ pub unsafe fn uspoof_getSkeleton(sc: *const USpoofChecker, r#type: u32, id: *con #[inline] pub unsafe fn uspoof_getSkeletonUTF8(sc: *const USpoofChecker, r#type: u32, id: P0, length: i32, dest: P1, destcapacity: i32, status: *mut UErrorCode) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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(sc, r#type, id.into_param().abi(), length, dest.into_param().abi(), destcapacity, status) + uspoof_getSkeletonUTF8(sc, r#type, id.param().abi(), length, dest.param().abi(), destcapacity, status) } #[inline] pub unsafe fn uspoof_open(status: *mut UErrorCode) -> *mut USpoofChecker { @@ -6715,11 +6715,11 @@ pub unsafe fn uspoof_openFromSerialized(data: *const core::ffi::c_void, length: #[inline] pub unsafe fn uspoof_openFromSource(confusables: P0, confusableslen: i32, confusableswholescript: P1, confusableswholescriptlen: i32, errtype: *mut i32, pe: *mut UParseError, status: *mut UErrorCode) -> *mut USpoofChecker where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.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.into_param().abi(), confusableslen, confusableswholescript.into_param().abi(), confusableswholescriptlen, errtype, pe, status) + uspoof_openFromSource(confusables.param().abi(), confusableslen, confusableswholescript.param().abi(), confusableswholescriptlen, errtype, pe, status) } #[inline] pub unsafe fn uspoof_serialize(sc: *mut USpoofChecker, data: *mut core::ffi::c_void, capacity: i32, status: *mut UErrorCode) -> i32 { @@ -6734,10 +6734,10 @@ pub unsafe fn uspoof_setAllowedChars(sc: *mut USpoofChecker, chars: *const USet, #[inline] pub unsafe fn uspoof_setAllowedLocales(sc: *mut USpoofChecker, localeslist: P0, status: *mut UErrorCode) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn uspoof_setAllowedLocales(sc : *mut USpoofChecker, localeslist : windows_core::PCSTR, status : *mut UErrorCode)); - uspoof_setAllowedLocales(sc, localeslist.into_param().abi(), status) + uspoof_setAllowedLocales(sc, localeslist.param().abi(), status) } #[inline] pub unsafe fn uspoof_setChecks(sc: *mut USpoofChecker, checks: i32, status: *mut UErrorCode) { @@ -6757,11 +6757,11 @@ pub unsafe fn usprep_close(profile: *mut UStringPrepProfile) { #[inline] pub unsafe fn usprep_open(path: P0, filename: P1, status: *mut UErrorCode) -> *mut UStringPrepProfile where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn usprep_open(path : windows_core::PCSTR, filename : windows_core::PCSTR, status : *mut UErrorCode) -> *mut UStringPrepProfile); - usprep_open(path.into_param().abi(), filename.into_param().abi(), status) + usprep_open(path.param().abi(), filename.param().abi(), status) } #[inline] pub unsafe fn usprep_openByType(r#type: UStringPrepProfileType, status: *mut UErrorCode) -> *mut UStringPrepProfile { @@ -6866,10 +6866,10 @@ pub unsafe fn utext_openUChars(ut: *mut UText, s: *const u16, length: i64, statu #[inline] pub unsafe fn utext_openUTF8(ut: *mut UText, s: P0, length: i64, status: *mut UErrorCode) -> *mut UText where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn utext_openUTF8(ut : *mut UText, s : windows_core::PCSTR, length : i64, status : *mut UErrorCode) -> *mut UText); - utext_openUTF8(ut, s.into_param().abi(), length, status) + utext_openUTF8(ut, s.param().abi(), length, status) } #[inline] pub unsafe fn utext_previous32(ut: *mut UText) -> i32 { @@ -6934,11 +6934,11 @@ pub unsafe fn utmscale_toInt64(universaltime: i64, timescale: UDateTimeScale, st #[inline] pub unsafe fn utrace_format(outbuf: P0, capacity: i32, indent: i32, fmt: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn utrace_format(outbuf : windows_core::PCSTR, capacity : i32, indent : i32, fmt : windows_core::PCSTR) -> i32); - utrace_format(outbuf.into_param().abi(), capacity, indent, fmt.into_param().abi()) + utrace_format(outbuf.param().abi(), capacity, indent, fmt.param().abi()) } #[inline] pub unsafe fn utrace_functionName(fnnumber: i32) -> windows_core::PCSTR { @@ -6968,11 +6968,11 @@ pub unsafe fn utrace_setLevel(tracelevel: i32) { #[inline] pub unsafe fn utrace_vformat(outbuf: P0, capacity: i32, indent: i32, fmt: P1, args: *mut i8) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("icu.dll" "cdecl" fn utrace_vformat(outbuf : windows_core::PCSTR, capacity : i32, indent : i32, fmt : windows_core::PCSTR, args : *mut i8) -> i32); - utrace_vformat(outbuf.into_param().abi(), capacity, indent, fmt.into_param().abi(), args) + utrace_vformat(outbuf.param().abi(), capacity, indent, fmt.param().abi(), args) } #[inline] pub unsafe fn utrans_clone(trans: *const *const core::ffi::c_void, status: *mut UErrorCode) -> *mut *mut core::ffi::c_void { @@ -7059,10 +7059,10 @@ windows_core::imp::interface_hierarchy!(IComprehensiveSpellCheckProvider, window impl IComprehensiveSpellCheckProvider { pub unsafe fn ComprehensiveCheck(&self, text: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ComprehensiveCheck)(windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ComprehensiveCheck)(windows_core::Interface::as_raw(self), text.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7204,15 +7204,15 @@ impl IMLangConvertCharset { } pub unsafe fn DoConversionToUnicode(&self, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoConversionToUnicode)(windows_core::Interface::as_raw(self), psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DoConversionToUnicode)(windows_core::Interface::as_raw(self), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn DoConversionFromUnicode(&self, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoConversionFromUnicode)(windows_core::Interface::as_raw(self), psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DoConversionFromUnicode)(windows_core::Interface::as_raw(self), psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -7247,25 +7247,25 @@ impl IMLangFontLink { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFontCodePages(&self, hdc: P0, hfont: P1, pdwcodepages: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), hfont.into_param().abi(), core::mem::transmute(pdwcodepages.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), hdc.param().abi(), hfont.param().abi(), core::mem::transmute(pdwcodepages.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn MapFont(&self, hdc: P0, dwcodepages: u32, hsrcfont: P1, phdestfont: Option<*mut super::Graphics::Gdi::HFONT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), dwcodepages, hsrcfont.into_param().abi(), core::mem::transmute(phdestfont.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), hdc.param().abi(), dwcodepages, hsrcfont.param().abi(), core::mem::transmute(phdestfont.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseFont(&self, hfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), hfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), hfont.param().abi()).ok() } pub unsafe fn ResetFontMapping(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetFontMapping)(windows_core::Interface::as_raw(self)).ok() @@ -7309,17 +7309,17 @@ impl IMLangFontLink2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFontCodePages(&self, hdc: P0, hfont: P1, pdwcodepages: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), hfont.into_param().abi(), core::mem::transmute(pdwcodepages.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFontCodePages)(windows_core::Interface::as_raw(self), hdc.param().abi(), hfont.param().abi(), core::mem::transmute(pdwcodepages.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseFont(&self, hfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), hfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseFont)(windows_core::Interface::as_raw(self), hfont.param().abi()).ok() } pub unsafe fn ResetFontMapping(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetFontMapping)(windows_core::Interface::as_raw(self)).ok() @@ -7327,16 +7327,16 @@ impl IMLangFontLink2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn MapFont(&self, hdc: P0, dwcodepages: u32, chsrc: u16, pfont: Option<*mut super::Graphics::Gdi::HFONT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), dwcodepages, chsrc, core::mem::transmute(pfont.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).MapFont)(windows_core::Interface::as_raw(self), hdc.param().abi(), dwcodepages, chsrc, core::mem::transmute(pfont.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFontUnicodeRanges(&self, hdc: P0, puiranges: *const u32, puranges: Option<*mut UNICODERANGE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFontUnicodeRanges)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), puiranges, core::mem::transmute(puranges.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFontUnicodeRanges)(windows_core::Interface::as_raw(self), hdc.param().abi(), puiranges, core::mem::transmute(puranges.unwrap_or(std::ptr::null_mut()))).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), sid, dwflags, puifonts, core::mem::transmute(pscriptfont.unwrap_or(std::ptr::null_mut()))).ok() @@ -7374,9 +7374,9 @@ windows_core::imp::interface_hierarchy!(IMLangLineBreakConsole, windows_core::IU impl IMLangLineBreakConsole { pub unsafe fn BreakLineML(&self, psrcmlstr: P0, lsrcpos: i32, lsrclen: i32, cmincolumns: i32, cmaxcolumns: i32, pllinelen: Option<*mut i32>, plskiplen: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BreakLineML)(windows_core::Interface::as_raw(self), psrcmlstr.into_param().abi(), lsrcpos, lsrclen, cmincolumns, cmaxcolumns, core::mem::transmute(pllinelen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plskiplen.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(plskiplen.unwrap_or(std::ptr::null_mut()))).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), locale, core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), cmaxcolumns, core::mem::transmute(pcchline.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchskip.unwrap_or(std::ptr::null_mut()))).ok() @@ -7397,24 +7397,24 @@ windows_core::imp::interface_hierarchy!(IMLangString, windows_core::IUnknown); impl IMLangString { pub unsafe fn Sync(&self, fnoaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Sync)(windows_core::Interface::as_raw(self), fnoaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Sync)(windows_core::Interface::as_raw(self), fnoaccess.param().abi()).ok() } pub unsafe fn GetLength(&self, pllen: Option<*mut i32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(pllen.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetMLStr(&self, ldestpos: i32, ldestlen: i32, psrcmlstr: P0, lsrcpos: i32, lsrclen: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMLStr)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, psrcmlstr.into_param().abi(), lsrcpos, 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: P0, dwclscontext: u32, piid: *const windows_core::GUID, ppdestmlstr: *mut Option, pldestpos: Option<*mut i32>, pldestlen: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMLStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, punkouter.into_param().abi(), dwclscontext, piid, core::mem::transmute(ppdestmlstr), core::mem::transmute(pldestpos.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pldestlen.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(pldestlen.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -7430,33 +7430,33 @@ windows_core::imp::interface_hierarchy!(IMLangStringAStr, windows_core::IUnknown impl IMLangStringAStr { pub unsafe fn Sync(&self, fnoaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Sync)(windows_core::Interface::as_raw(self), fnoaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Sync)(windows_core::Interface::as_raw(self), fnoaccess.param().abi()).ok() } pub unsafe fn GetLength(&self, pllen: Option<*mut i32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(pllen.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetMLStr(&self, ldestpos: i32, ldestlen: i32, psrcmlstr: P0, lsrcpos: i32, lsrclen: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMLStr)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, psrcmlstr.into_param().abi(), lsrcpos, lsrclen).ok() + (windows_core::Interface::vtable(self).base__.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: P0, dwclscontext: u32, piid: *const windows_core::GUID, ppdestmlstr: *mut Option, pldestpos: Option<*mut i32>, pldestlen: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMLStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, punkouter.into_param().abi(), dwclscontext, piid, core::mem::transmute(ppdestmlstr), core::mem::transmute(pldestpos.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pldestlen.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetMLStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, punkouter.param().abi(), dwclscontext, piid, core::mem::transmute(ppdestmlstr), core::mem::transmute(pldestpos.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pldestlen.unwrap_or(std::ptr::null_mut()))).ok() } 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), ldestpos, ldestlen, ucodepage, core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetStrBufA(&self, ldestpos: i32, ldestlen: i32, ucodepage: u32, psrcbuf: P0, pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrBufA)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, ucodepage, psrcbuf.into_param().abi(), core::mem::transmute(pcchactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).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), lsrcpos, lsrclen, ucodepagein, core::mem::transmute(pucodepageout.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).ok() @@ -7500,9 +7500,9 @@ impl IMLangStringBufA { } pub unsafe fn UnlockBuf(&self, pszbuf: P0, cchoffset: i32, cchwrite: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockBuf)(windows_core::Interface::as_raw(self), pszbuf.into_param().abi(), cchoffset, 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), cchoffset, cchmaxinsert, core::mem::transmute(pcchactual.unwrap_or(std::ptr::null_mut()))).ok() @@ -7531,9 +7531,9 @@ impl IMLangStringBufW { } pub unsafe fn UnlockBuf(&self, pszbuf: P0, cchoffset: i32, cchwrite: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockBuf)(windows_core::Interface::as_raw(self), pszbuf.into_param().abi(), cchoffset, 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), cchoffset, cchmaxinsert, core::mem::transmute(pcchactual.unwrap_or(std::ptr::null_mut()))).ok() @@ -7556,33 +7556,33 @@ windows_core::imp::interface_hierarchy!(IMLangStringWStr, windows_core::IUnknown impl IMLangStringWStr { pub unsafe fn Sync(&self, fnoaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Sync)(windows_core::Interface::as_raw(self), fnoaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Sync)(windows_core::Interface::as_raw(self), fnoaccess.param().abi()).ok() } pub unsafe fn GetLength(&self, pllen: Option<*mut i32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetLength)(windows_core::Interface::as_raw(self), core::mem::transmute(pllen.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetMLStr(&self, ldestpos: i32, ldestlen: i32, psrcmlstr: P0, lsrcpos: i32, lsrclen: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMLStr)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, psrcmlstr.into_param().abi(), lsrcpos, lsrclen).ok() + (windows_core::Interface::vtable(self).base__.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: P0, dwclscontext: u32, piid: *const windows_core::GUID, ppdestmlstr: *mut Option, pldestpos: Option<*mut i32>, pldestlen: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMLStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, punkouter.into_param().abi(), dwclscontext, piid, core::mem::transmute(ppdestmlstr), core::mem::transmute(pldestpos.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pldestlen.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetMLStr)(windows_core::Interface::as_raw(self), lsrcpos, lsrclen, punkouter.param().abi(), dwclscontext, piid, core::mem::transmute(ppdestmlstr), core::mem::transmute(pldestpos.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pldestlen.unwrap_or(std::ptr::null_mut()))).ok() } 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), ldestpos, ldestlen, core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), core::mem::transmute(pcchactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetStrBufW(&self, ldestpos: i32, ldestlen: i32, psrcbuf: P0, pcchactual: Option<*mut i32>, plactuallen: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrBufW)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, psrcbuf.into_param().abi(), core::mem::transmute(pcchactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SetStrBufW)(windows_core::Interface::as_raw(self), ldestpos, ldestlen, psrcbuf.param().abi(), core::mem::transmute(pcchactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut())), core::mem::transmute(plactuallen.unwrap_or(std::ptr::null_mut()))).ok() @@ -7635,9 +7635,9 @@ impl IMultiLanguage { } pub unsafe fn GetCharsetInfo(&self, charset: P0, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCharsetInfo)(windows_core::Interface::as_raw(self), charset.into_param().abi(), pcharsetinfo).ok() + (windows_core::Interface::vtable(self).GetCharsetInfo)(windows_core::Interface::as_raw(self), charset.param().abi(), 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), dwsrcencoding, dwdstencoding).ok() @@ -7647,15 +7647,15 @@ impl IMultiLanguage { } pub unsafe fn ConvertStringToUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ConvertStringFromUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ConvertStringReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertStringReset)(windows_core::Interface::as_raw(self)).ok() @@ -7666,9 +7666,9 @@ impl IMultiLanguage { } pub unsafe fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), plocale, bstrrfc1766.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), plocale, bstrrfc1766.param().abi()).ok() } pub unsafe fn EnumRfc1766(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7721,9 +7721,9 @@ impl IMultiLanguage2 { } pub unsafe fn GetCharsetInfo(&self, charset: P0, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCharsetInfo)(windows_core::Interface::as_raw(self), charset.into_param().abi(), pcharsetinfo).ok() + (windows_core::Interface::vtable(self).GetCharsetInfo)(windows_core::Interface::as_raw(self), charset.param().abi(), 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), dwsrcencoding, dwdstencoding).ok() @@ -7733,15 +7733,15 @@ impl IMultiLanguage2 { } pub unsafe fn ConvertStringToUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ConvertStringFromUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ConvertStringReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertStringReset)(windows_core::Interface::as_raw(self)).ok() @@ -7752,9 +7752,9 @@ impl IMultiLanguage2 { } pub unsafe fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), plocale, bstrrfc1766.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), plocale, bstrrfc1766.param().abi()).ok() } pub unsafe fn EnumRfc1766(&self, langid: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7770,44 +7770,44 @@ impl IMultiLanguage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConvertStringInIStream(&self, pdwmode: Option<*mut u32>, dwflag: u32, lpfallback: P0, dwsrcencoding: u32, dwdstencoding: u32, pstmin: P1, pstmout: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.into_param().abi(), dwsrcencoding, dwdstencoding, pstmin.into_param().abi(), pstmout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertStringInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), 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: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>, dwflag: u32, lpfallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringToUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertStringToUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.param().abi()).ok() } pub unsafe fn ConvertStringFromUnicodeEx(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PSTR, pcdstsize: Option<*mut u32>, dwflag: u32, lpfallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertStringFromUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertStringFromUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DetectCodepageInIStream(&self, dwflag: u32, dwprefwincodepage: u32, pstmin: P0, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectCodepageInIStream)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, pstmin.into_param().abi(), lpencoding, pnscores).ok() + (windows_core::Interface::vtable(self).DetectCodepageInIStream)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, pstmin.param().abi(), lpencoding, pnscores).ok() } pub unsafe fn DetectInputCodepage(&self, dwflag: u32, dwprefwincodepage: u32, psrcstr: P0, pcsrcsize: *mut i32, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectInputCodepage)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, psrcstr.into_param().abi(), pcsrcsize, lpencoding, pnscores).ok() + (windows_core::Interface::vtable(self).DetectInputCodepage)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, psrcstr.param().abi(), pcsrcsize, lpencoding, pnscores).ok() } pub unsafe fn ValidateCodePage(&self, uicodepage: u32, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidateCodePage)(windows_core::Interface::as_raw(self), uicodepage, hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ValidateCodePage)(windows_core::Interface::as_raw(self), uicodepage, hwnd.param().abi()).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), uicodepage, lcid, core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap()).ok() @@ -7828,9 +7828,9 @@ impl IMultiLanguage2 { } pub unsafe fn ValidateCodePageEx(&self, uicodepage: u32, hwnd: P0, dwfiodcontrol: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidateCodePageEx)(windows_core::Interface::as_raw(self), uicodepage, hwnd.into_param().abi(), dwfiodcontrol).ok() + (windows_core::Interface::vtable(self).ValidateCodePageEx)(windows_core::Interface::as_raw(self), uicodepage, hwnd.param().abi(), dwfiodcontrol).ok() } } #[repr(C)] @@ -7890,9 +7890,9 @@ impl IMultiLanguage3 { } pub unsafe fn GetCharsetInfo(&self, charset: P0, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetCharsetInfo)(windows_core::Interface::as_raw(self), charset.into_param().abi(), pcharsetinfo).ok() + (windows_core::Interface::vtable(self).base__.GetCharsetInfo)(windows_core::Interface::as_raw(self), charset.param().abi(), pcharsetinfo).ok() } pub unsafe fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.IsConvertible)(windows_core::Interface::as_raw(self), dwsrcencoding, dwdstencoding).ok() @@ -7902,15 +7902,15 @@ impl IMultiLanguage3 { } pub unsafe fn ConvertStringToUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.ConvertStringToUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ConvertStringFromUnicode(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PSTR, pcdstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.ConvertStringFromUnicode)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ConvertStringReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ConvertStringReset)(windows_core::Interface::as_raw(self)).ok() @@ -7921,9 +7921,9 @@ impl IMultiLanguage3 { } pub unsafe fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), plocale, bstrrfc1766.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetLcidFromRfc1766)(windows_core::Interface::as_raw(self), plocale, bstrrfc1766.param().abi()).ok() } pub unsafe fn EnumRfc1766(&self, langid: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7939,44 +7939,44 @@ impl IMultiLanguage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConvertStringInIStream(&self, pdwmode: Option<*mut u32>, dwflag: u32, lpfallback: P0, dwsrcencoding: u32, dwdstencoding: u32, pstmin: P1, pstmout: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertStringInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.into_param().abi(), dwsrcencoding, dwdstencoding, pstmin.into_param().abi(), pstmout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConvertStringInIStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), 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: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PWSTR, pcdstsize: Option<*mut u32>, dwflag: u32, lpfallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertStringToUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConvertStringToUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.param().abi()).ok() } pub unsafe fn ConvertStringFromUnicodeEx(&self, pdwmode: Option<*mut u32>, dwencoding: u32, psrcstr: P0, pcsrcsize: Option<*mut u32>, pdststr: windows_core::PSTR, pcdstsize: Option<*mut u32>, dwflag: u32, lpfallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertStringFromUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.into_param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConvertStringFromUnicodeEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pdwmode.unwrap_or(std::ptr::null_mut())), dwencoding, psrcstr.param().abi(), core::mem::transmute(pcsrcsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdststr), core::mem::transmute(pcdstsize.unwrap_or(std::ptr::null_mut())), dwflag, lpfallback.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DetectCodepageInIStream(&self, dwflag: u32, dwprefwincodepage: u32, pstmin: P0, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DetectCodepageInIStream)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, pstmin.into_param().abi(), lpencoding, pnscores).ok() + (windows_core::Interface::vtable(self).base__.DetectCodepageInIStream)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, pstmin.param().abi(), lpencoding, pnscores).ok() } pub unsafe fn DetectInputCodepage(&self, dwflag: u32, dwprefwincodepage: u32, psrcstr: P0, pcsrcsize: *mut i32, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DetectInputCodepage)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, psrcstr.into_param().abi(), pcsrcsize, lpencoding, pnscores).ok() + (windows_core::Interface::vtable(self).base__.DetectInputCodepage)(windows_core::Interface::as_raw(self), dwflag, dwprefwincodepage, psrcstr.param().abi(), pcsrcsize, lpencoding, pnscores).ok() } pub unsafe fn ValidateCodePage(&self, uicodepage: u32, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ValidateCodePage)(windows_core::Interface::as_raw(self), uicodepage, hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ValidateCodePage)(windows_core::Interface::as_raw(self), uicodepage, hwnd.param().abi()).ok() } pub unsafe fn GetCodePageDescription(&self, uicodepage: u32, lcid: u32, lpwidecharstr: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetCodePageDescription)(windows_core::Interface::as_raw(self), uicodepage, lcid, core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap()).ok() @@ -7997,23 +7997,23 @@ impl IMultiLanguage3 { } pub unsafe fn ValidateCodePageEx(&self, uicodepage: u32, hwnd: P0, dwfiodcontrol: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ValidateCodePageEx)(windows_core::Interface::as_raw(self), uicodepage, hwnd.into_param().abi(), dwfiodcontrol).ok() + (windows_core::Interface::vtable(self).base__.ValidateCodePageEx)(windows_core::Interface::as_raw(self), uicodepage, hwnd.param().abi(), dwfiodcontrol).ok() } pub unsafe fn DetectOutboundCodePage(&self, dwflags: u32, lpwidecharstr: &[u16], puipreferredcodepages: Option<&[u32]>, puidetectedcodepages: *mut u32, pndetectedcodepages: *mut u32, lpspecialchar: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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()), puidetectedcodepages, pndetectedcodepages, lpspecialchar.into_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()), puidetectedcodepages, pndetectedcodepages, lpspecialchar.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DetectOutboundCodePageInIStream(&self, dwflags: u32, pstrin: P0, puipreferredcodepages: Option<&[u32]>, puidetectedcodepages: *mut u32, pndetectedcodepages: *mut u32, lpspecialchar: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DetectOutboundCodePageInIStream)(windows_core::Interface::as_raw(self), dwflags, pstrin.into_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()), puidetectedcodepages, pndetectedcodepages, lpspecialchar.into_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()), puidetectedcodepages, pndetectedcodepages, lpspecialchar.param().abi()).ok() } } #[repr(C)] @@ -8066,31 +8066,31 @@ impl ISpellCheckProvider { } pub unsafe fn Check(&self, text: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Check)(windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Check)(windows_core::Interface::as_raw(self), text.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Suggest(&self, word: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Suggest)(windows_core::Interface::as_raw(self), word.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Suggest)(windows_core::Interface::as_raw(self), word.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOptionValue(&self, optionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOptionValue)(windows_core::Interface::as_raw(self), optionid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOptionValue)(windows_core::Interface::as_raw(self), optionid.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOptionValue(&self, optionid: P0, value: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOptionValue)(windows_core::Interface::as_raw(self), optionid.into_param().abi(), 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 { @@ -8107,17 +8107,17 @@ impl ISpellCheckProvider { } pub unsafe fn GetOptionDescription(&self, optionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOptionDescription)(windows_core::Interface::as_raw(self), optionid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOptionDescription)(windows_core::Interface::as_raw(self), optionid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeWordlist(&self, wordlisttype: WORDLIST_TYPE, words: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeWordlist)(windows_core::Interface::as_raw(self), wordlisttype, words.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeWordlist)(windows_core::Interface::as_raw(self), wordlisttype, words.param().abi()).ok() } } #[repr(C)] @@ -8153,17 +8153,17 @@ impl ISpellCheckProviderFactory { } pub unsafe fn IsSupported(&self, languagetag: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), languagetag.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), languagetag.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateSpellCheckProvider(&self, languagetag: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSpellCheckProvider)(windows_core::Interface::as_raw(self), languagetag.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSpellCheckProvider)(windows_core::Interface::as_raw(self), languagetag.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8185,44 +8185,44 @@ impl ISpellChecker { } pub unsafe fn Check(&self, text: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Check)(windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Check)(windows_core::Interface::as_raw(self), text.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Suggest(&self, word: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Suggest)(windows_core::Interface::as_raw(self), word.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Suggest)(windows_core::Interface::as_raw(self), word.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Add(&self, word: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), word.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), word.param().abi()).ok() } pub unsafe fn Ignore(&self, word: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Ignore)(windows_core::Interface::as_raw(self), word.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Ignore)(windows_core::Interface::as_raw(self), word.param().abi()).ok() } pub unsafe fn AutoCorrect(&self, from: P0, to: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AutoCorrect)(windows_core::Interface::as_raw(self), from.into_param().abi(), to.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AutoCorrect)(windows_core::Interface::as_raw(self), from.param().abi(), to.param().abi()).ok() } pub unsafe fn GetOptionValue(&self, optionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOptionValue)(windows_core::Interface::as_raw(self), optionid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOptionValue)(windows_core::Interface::as_raw(self), optionid.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OptionIds(&self) -> windows_core::Result { @@ -8239,27 +8239,27 @@ impl ISpellChecker { } pub unsafe fn add_SpellCheckerChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).add_SpellCheckerChanged)(windows_core::Interface::as_raw(self), handler.into_param().abi(), &mut result__).map(|| result__) + (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), eventcookie).ok() } pub unsafe fn GetOptionDescription(&self, optionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOptionDescription)(windows_core::Interface::as_raw(self), optionid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOptionDescription)(windows_core::Interface::as_raw(self), optionid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ComprehensiveCheck(&self, text: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ComprehensiveCheck)(windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ComprehensiveCheck)(windows_core::Interface::as_raw(self), text.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8295,44 +8295,44 @@ impl ISpellChecker2 { } pub unsafe fn Check(&self, text: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Check)(windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Check)(windows_core::Interface::as_raw(self), text.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Suggest(&self, word: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Suggest)(windows_core::Interface::as_raw(self), word.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Suggest)(windows_core::Interface::as_raw(self), word.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Add(&self, word: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), word.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), word.param().abi()).ok() } pub unsafe fn Ignore(&self, word: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Ignore)(windows_core::Interface::as_raw(self), word.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Ignore)(windows_core::Interface::as_raw(self), word.param().abi()).ok() } pub unsafe fn AutoCorrect(&self, from: P0, to: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AutoCorrect)(windows_core::Interface::as_raw(self), from.into_param().abi(), to.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AutoCorrect)(windows_core::Interface::as_raw(self), from.param().abi(), to.param().abi()).ok() } pub unsafe fn GetOptionValue(&self, optionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOptionValue)(windows_core::Interface::as_raw(self), optionid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetOptionValue)(windows_core::Interface::as_raw(self), optionid.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OptionIds(&self) -> windows_core::Result { @@ -8349,33 +8349,33 @@ impl ISpellChecker2 { } pub unsafe fn add_SpellCheckerChanged(&self, handler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.add_SpellCheckerChanged)(windows_core::Interface::as_raw(self), handler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.remove_SpellCheckerChanged)(windows_core::Interface::as_raw(self), eventcookie).ok() } pub unsafe fn GetOptionDescription(&self, optionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOptionDescription)(windows_core::Interface::as_raw(self), optionid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetOptionDescription)(windows_core::Interface::as_raw(self), optionid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ComprehensiveCheck(&self, text: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ComprehensiveCheck)(windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ComprehensiveCheck)(windows_core::Interface::as_raw(self), text.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, word: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), word.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), word.param().abi()).ok() } } #[repr(C)] @@ -8388,9 +8388,9 @@ windows_core::imp::interface_hierarchy!(ISpellCheckerChangedEventHandler, window impl ISpellCheckerChangedEventHandler { pub unsafe fn Invoke(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), sender.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), sender.param().abi()).ok() } } #[repr(C)] @@ -8408,17 +8408,17 @@ impl ISpellCheckerFactory { } pub unsafe fn IsSupported(&self, languagetag: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), languagetag.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), languagetag.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateSpellChecker(&self, languagetag: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSpellChecker)(windows_core::Interface::as_raw(self), languagetag.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSpellChecker)(windows_core::Interface::as_raw(self), languagetag.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8464,17 +8464,17 @@ windows_core::imp::interface_hierarchy!(IUserDictionariesRegistrar, windows_core impl IUserDictionariesRegistrar { pub unsafe fn RegisterUserDictionary(&self, dictionarypath: P0, languagetag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterUserDictionary)(windows_core::Interface::as_raw(self), dictionarypath.into_param().abi(), languagetag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterUserDictionary)(windows_core::Interface::as_raw(self), dictionarypath.param().abi(), languagetag.param().abi()).ok() } pub unsafe fn UnregisterUserDictionary(&self, dictionarypath: P0, languagetag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterUserDictionary)(windows_core::Interface::as_raw(self), dictionarypath.into_param().abi(), languagetag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterUserDictionary)(windows_core::Interface::as_raw(self), dictionarypath.param().abi(), languagetag.param().abi()).ok() } } #[repr(C)] 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 2e0a4f11a3..c68c8a5522 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn CreatePresentationFactory(d3ddevice: P0, riid: *const windows_core::GUID, presentationfactory: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dcomp.dll" "system" fn CreatePresentationFactory(d3ddevice : * mut core::ffi::c_void, riid : *const windows_core::GUID, presentationfactory : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CreatePresentationFactory(d3ddevice.into_param().abi(), riid, presentationfactory).ok() + CreatePresentationFactory(d3ddevice.param().abi(), riid, presentationfactory).ok() } windows_core::imp::define_interface!(ICompositionFramePresentStatistics, ICompositionFramePresentStatistics_Vtbl, 0xab41d127_c101_4c0a_911d_f9f2e9d08e64); windows_core::imp::interface_hierarchy!(ICompositionFramePresentStatistics, windows_core::IUnknown, IPresentStatistics); @@ -170,17 +170,17 @@ windows_core::imp::interface_hierarchy!(IPresentationManager, windows_core::IUnk impl IPresentationManager { pub unsafe fn AddBufferFromResource(&self, resource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBufferFromResource)(windows_core::Interface::as_raw(self), resource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBufferFromResource)(windows_core::Interface::as_raw(self), resource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePresentationSurface(&self, compositionsurfacehandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePresentationSurface)(windows_core::Interface::as_raw(self), compositionsurfacehandle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePresentationSurface)(windows_core::Interface::as_raw(self), compositionsurfacehandle.param().abi(), &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)) @@ -245,9 +245,9 @@ impl IPresentationSurface { } pub unsafe fn SetBuffer(&self, presentationbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), presentationbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), presentationbuffer.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn SetColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result<()> { @@ -265,9 +265,9 @@ impl IPresentationSurface { } pub unsafe fn RestrictToOutput(&self, output: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestrictToOutput)(windows_core::Interface::as_raw(self), output.into_param().abi()).ok() + (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), value).ok() 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 f2427ffc6f..5dae3c8181 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs @@ -82,10 +82,10 @@ impl IDXCoreAdapterFactory { } 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterEventNotification)(windows_core::Interface::as_raw(self), dxcoreobject.into_param().abi(), notificationtype, callbackfunction, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), &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(std::ptr::null())), &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), eventcookie).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 5283caf1c2..71ddd60b00 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs @@ -16,21 +16,21 @@ pub unsafe fn D2D1ConvertColorSpace(sourcecolorspace: D2D1_COLOR_SPACE, destinat #[inline] pub unsafe fn D2D1CreateDevice(dxgidevice: P0, creationproperties: Option<*const D2D1_CREATION_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d2d1.dll" "system" fn D2D1CreateDevice(dxgidevice : * mut core::ffi::c_void, creationproperties : *const D2D1_CREATION_PROPERTIES, d2ddevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - D2D1CreateDevice(dxgidevice.into_param().abi(), core::mem::transmute(creationproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D2D1CreateDevice(dxgidevice.param().abi(), core::mem::transmute(creationproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] #[inline] pub unsafe fn D2D1CreateDeviceContext(dxgisurface: P0, creationproperties: Option<*const D2D1_CREATION_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d2d1.dll" "system" fn D2D1CreateDeviceContext(dxgisurface : * mut core::ffi::c_void, creationproperties : *const D2D1_CREATION_PROPERTIES, d2ddevicecontext : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - D2D1CreateDeviceContext(dxgisurface.into_param().abi(), core::mem::transmute(creationproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D2D1CreateDeviceContext(dxgisurface.param().abi(), core::mem::transmute(creationproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D2D1CreateFactory(factorytype: D2D1_FACTORY_TYPE, pfactoryoptions: Option<*const D2D1_FACTORY_OPTIONS>) -> windows_core::Result @@ -132,16 +132,16 @@ impl ID2D1Bitmap { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CopyFromBitmap(&self, destpoint: Option<*const Common::D2D_POINT_2U>, bitmap: P0, srcrect: Option<*const Common::D2D_RECT_U>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyFromBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), bitmap.into_param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).CopyFromBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), bitmap.param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CopyFromRenderTarget(&self, destpoint: Option<*const Common::D2D_POINT_2U>, rendertarget: P0, srcrect: Option<*const Common::D2D_RECT_U>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyFromRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), rendertarget.into_param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).CopyFromRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), rendertarget.param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() } #[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<()> { @@ -211,16 +211,16 @@ impl ID2D1Bitmap1 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CopyFromBitmap(&self, destpoint: Option<*const Common::D2D_POINT_2U>, bitmap: P0, srcrect: Option<*const Common::D2D_RECT_U>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyFromBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), bitmap.into_param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.CopyFromBitmap)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), bitmap.param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CopyFromRenderTarget(&self, destpoint: Option<*const Common::D2D_POINT_2U>, rendertarget: P0, srcrect: Option<*const Common::D2D_RECT_U>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyFromRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), rendertarget.into_param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.CopyFromRenderTarget)(windows_core::Interface::as_raw(self), core::mem::transmute(destpoint.unwrap_or(std::ptr::null())), rendertarget.param().abi(), core::mem::transmute(srcrect.unwrap_or(std::ptr::null()))).ok() } #[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<()> { @@ -294,9 +294,9 @@ impl ID2D1BitmapBrush { } pub unsafe fn SetBitmap(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).SetBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } pub unsafe fn GetExtendModeX(&self) -> D2D1_EXTEND_MODE { (windows_core::Interface::vtable(self).GetExtendModeX)(windows_core::Interface::as_raw(self)) @@ -360,9 +360,9 @@ impl ID2D1BitmapBrush1 { } pub unsafe fn SetBitmap(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } pub unsafe fn GetExtendModeX(&self) -> D2D1_EXTEND_MODE { (windows_core::Interface::vtable(self).base__.GetExtendModeX)(windows_core::Interface::as_raw(self)) @@ -409,10 +409,10 @@ impl ID2D1BitmapRenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -421,10 +421,10 @@ impl ID2D1BitmapRenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -439,18 +439,18 @@ impl ID2D1BitmapRenderTarget { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -469,116 +469,116 @@ impl ID2D1BitmapRenderTarget { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -603,9 +603,9 @@ impl ID2D1BitmapRenderTarget { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -622,9 +622,9 @@ impl ID2D1BitmapRenderTarget { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -634,15 +634,15 @@ impl ID2D1BitmapRenderTarget { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -715,9 +715,9 @@ impl ID2D1BlendTransform { } pub unsafe fn SetCached(&self, iscached: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.param().abi()) } pub unsafe fn SetDescription(&self, description: *const D2D1_BLEND_DESCRIPTION) { (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description) @@ -745,9 +745,9 @@ impl ID2D1BorderTransform { } pub unsafe fn SetCached(&self, iscached: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.param().abi()) } pub unsafe fn SetExtendModeX(&self, extendmode: D2D1_EXTEND_MODE) { (windows_core::Interface::vtable(self).SetExtendModeX)(windows_core::Interface::as_raw(self), extendmode) @@ -915,9 +915,9 @@ impl ID2D1CommandList { } pub unsafe fn Stream(&self, sink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Stream)(windows_core::Interface::as_raw(self), sink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Stream)(windows_core::Interface::as_raw(self), sink.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -952,9 +952,9 @@ impl ID2D1CommandSink { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -973,84 +973,84 @@ impl ID2D1CommandSink { #[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, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode).ok() + (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()).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>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillGeometry(&self, geometry: P0, brush: P1, opacitybrush: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_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<()> { @@ -1059,9 +1059,9 @@ impl ID2D1CommandSink { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.param().abi()).ok() } pub unsafe fn PopAxisAlignedClip(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PopAxisAlignedClip)(windows_core::Interface::as_raw(self)).ok() @@ -1161,9 +1161,9 @@ impl ID2D1CommandSink1 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -1182,84 +1182,84 @@ impl ID2D1CommandSink1 { #[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, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode).ok() + (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode).ok() + (windows_core::Interface::vtable(self).base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()).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>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillGeometry(&self, geometry: P0, brush: P1, opacitybrush: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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<()> { @@ -1268,9 +1268,9 @@ impl ID2D1CommandSink1 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.param().abi()).ok() } pub unsafe fn PopAxisAlignedClip(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.PopAxisAlignedClip)(windows_core::Interface::as_raw(self)).ok() @@ -1310,9 +1310,9 @@ impl ID2D1CommandSink2 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -1331,84 +1331,84 @@ impl ID2D1CommandSink2 { #[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, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()).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>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillGeometry(&self, geometry: P0, brush: P1, opacitybrush: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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<()> { @@ -1417,9 +1417,9 @@ impl ID2D1CommandSink2 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.param().abi()).ok() } pub unsafe fn PopAxisAlignedClip(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.PopAxisAlignedClip)(windows_core::Interface::as_raw(self)).ok() @@ -1432,24 +1432,24 @@ impl ID2D1CommandSink2 { } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()).ok() } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } } unsafe impl Send for ID2D1CommandSink2 {} @@ -1485,9 +1485,9 @@ impl ID2D1CommandSink3 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -1506,84 +1506,84 @@ impl ID2D1CommandSink3 { #[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, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()).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>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillGeometry(&self, geometry: P0, brush: P1, opacitybrush: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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<()> { @@ -1592,9 +1592,9 @@ impl ID2D1CommandSink3 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.param().abi()).ok() } pub unsafe fn PopAxisAlignedClip(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.PopAxisAlignedClip)(windows_core::Interface::as_raw(self)).ok() @@ -1607,31 +1607,31 @@ impl ID2D1CommandSink3 { } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()).ok() } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, 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() } } unsafe impl Send for ID2D1CommandSink3 {} @@ -1662,9 +1662,9 @@ impl ID2D1CommandSink4 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -1683,84 +1683,84 @@ impl ID2D1CommandSink4 { #[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, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()).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>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillGeometry(&self, geometry: P0, brush: P1, opacitybrush: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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<()> { @@ -1769,9 +1769,9 @@ impl ID2D1CommandSink4 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.param().abi()).ok() } pub unsafe fn PopAxisAlignedClip(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.PopAxisAlignedClip)(windows_core::Interface::as_raw(self)).ok() @@ -1784,31 +1784,31 @@ impl ID2D1CommandSink4 { } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()).ok() } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, spriteoptions).ok() + (windows_core::Interface::vtable(self).base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions).ok() } pub unsafe fn SetPrimitiveBlend2(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetPrimitiveBlend2)(windows_core::Interface::as_raw(self), primitiveblend).ok() @@ -1842,9 +1842,9 @@ impl ID2D1CommandSink5 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -1863,84 +1863,84 @@ impl ID2D1CommandSink5 { #[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, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()).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>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn FillGeometry(&self, geometry: P0, brush: P1, opacitybrush: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillRectangle(&self, rect: *const Common::D2D_RECT_F, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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<()> { @@ -1949,9 +1949,9 @@ impl ID2D1CommandSink5 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters1, layer.param().abi()).ok() } pub unsafe fn PopAxisAlignedClip(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PopAxisAlignedClip)(windows_core::Interface::as_raw(self)).ok() @@ -1964,31 +1964,31 @@ impl ID2D1CommandSink5 { } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()).ok() } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, spriteoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions).ok() } pub unsafe fn SetPrimitiveBlend2(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetPrimitiveBlend2)(windows_core::Interface::as_raw(self), primitiveblend).ok() @@ -1996,9 +1996,9 @@ impl ID2D1CommandSink5 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn BlendImage(&self, image: P0, blendmode: Common::D2D1_BLEND_MODE, targetoffset: Option<*const Common::D2D_POINT_2F>, imagerectangle: Option<*const Common::D2D_RECT_F>, interpolationmode: D2D1_INTERPOLATION_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode).ok() + (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode).ok() } } unsafe impl Send for ID2D1CommandSink5 {} @@ -2022,9 +2022,9 @@ impl ID2D1ComputeInfo { } pub unsafe fn SetCached(&self, iscached: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.param().abi()) } pub unsafe fn SetInstructionCountHint(&self, instructioncount: u32) { (windows_core::Interface::vtable(self).base__.SetInstructionCountHint)(windows_core::Interface::as_raw(self), instructioncount) @@ -2037,9 +2037,9 @@ impl ID2D1ComputeInfo { } pub unsafe fn SetResourceTexture(&self, textureindex: u32, resourcetexture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResourceTexture)(windows_core::Interface::as_raw(self), textureindex, resourcetexture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetResourceTexture)(windows_core::Interface::as_raw(self), textureindex, resourcetexture.param().abi()).ok() } } unsafe impl Send for ID2D1ComputeInfo {} @@ -2069,9 +2069,9 @@ impl ID2D1ComputeTransform { } pub unsafe fn SetComputeInfo(&self, computeinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetComputeInfo)(windows_core::Interface::as_raw(self), computeinfo.into_param().abi()).ok() + (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), outputrect, dimensionx, dimensiony, dimensionz).ok() @@ -2096,9 +2096,9 @@ impl ID2D1ConcreteTransform { } pub unsafe fn SetCached(&self, iscached: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCached)(windows_core::Interface::as_raw(self), iscached.into_param().abi()) + (windows_core::Interface::vtable(self).SetCached)(windows_core::Interface::as_raw(self), iscached.param().abi()) } } unsafe impl Send for ID2D1ConcreteTransform {} @@ -2125,10 +2125,10 @@ impl ID2D1DCRenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -2137,10 +2137,10 @@ impl ID2D1DCRenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -2155,18 +2155,18 @@ impl ID2D1DCRenderTarget { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -2185,116 +2185,116 @@ impl ID2D1DCRenderTarget { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -2319,9 +2319,9 @@ impl ID2D1DCRenderTarget { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -2338,9 +2338,9 @@ impl ID2D1DCRenderTarget { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -2350,15 +2350,15 @@ impl ID2D1DCRenderTarget { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -2411,9 +2411,9 @@ impl ID2D1DCRenderTarget { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn BindDC(&self, hdc: P0, psubrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindDC)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), psubrect).ok() + (windows_core::Interface::vtable(self).BindDC)(windows_core::Interface::as_raw(self), hdc.param().abi(), psubrect).ok() } } unsafe impl Send for ID2D1DCRenderTarget {} @@ -2441,11 +2441,11 @@ impl ID2D1Device { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &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), maximuminbytes) @@ -2486,11 +2486,11 @@ impl ID2D1Device1 { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { (windows_core::Interface::vtable(self).base__.SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) @@ -2536,11 +2536,11 @@ impl ID2D1Device2 { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { (windows_core::Interface::vtable(self).base__.base__.SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) @@ -2567,9 +2567,9 @@ impl ID2D1Device2 { } pub unsafe fn FlushDeviceContexts(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetDxgiDevice(&self) -> windows_core::Result { @@ -2604,11 +2604,11 @@ impl ID2D1Device3 { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { (windows_core::Interface::vtable(self).base__.base__.base__.SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) @@ -2635,9 +2635,9 @@ impl ID2D1Device3 { } pub unsafe fn FlushDeviceContexts(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetDxgiDevice(&self) -> windows_core::Result { @@ -2671,11 +2671,11 @@ impl ID2D1Device4 { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) @@ -2702,9 +2702,9 @@ impl ID2D1Device4 { } pub unsafe fn FlushDeviceContexts(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetDxgiDevice(&self) -> windows_core::Result { @@ -2750,11 +2750,11 @@ impl ID2D1Device5 { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) @@ -2781,9 +2781,9 @@ impl ID2D1Device5 { } pub unsafe fn FlushDeviceContexts(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetDxgiDevice(&self) -> windows_core::Result { @@ -2831,11 +2831,11 @@ impl ID2D1Device6 { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) @@ -2862,9 +2862,9 @@ impl ID2D1Device6 { } pub unsafe fn FlushDeviceContexts(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetDxgiDevice(&self) -> windows_core::Result { @@ -2916,11 +2916,11 @@ impl ID2D1Device7 { #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.into_param().abi(), documenttarget.into_param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreatePrintControl)(windows_core::Interface::as_raw(self), wicfactory.param().abi(), documenttarget.param().abi(), core::mem::transmute(printcontrolproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetMaximumTextureMemory(&self, maximuminbytes: u64) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetMaximumTextureMemory)(windows_core::Interface::as_raw(self), maximuminbytes) @@ -2947,9 +2947,9 @@ impl ID2D1Device7 { } pub unsafe fn FlushDeviceContexts(&self, bitmap: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FlushDeviceContexts)(windows_core::Interface::as_raw(self), bitmap.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetDxgiDevice(&self) -> windows_core::Result { @@ -3006,10 +3006,10 @@ impl ID2D1DeviceContext { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -3018,10 +3018,10 @@ impl ID2D1DeviceContext { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -3036,18 +3036,18 @@ impl ID2D1DeviceContext { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -3066,116 +3066,116 @@ impl ID2D1DeviceContext { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -3200,9 +3200,9 @@ impl ID2D1DeviceContext { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -3219,9 +3219,9 @@ impl ID2D1DeviceContext { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -3231,15 +3231,15 @@ impl ID2D1DeviceContext { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -3297,10 +3297,10 @@ impl ID2D1DeviceContext { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -3308,26 +3308,26 @@ impl ID2D1DeviceContext { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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__)) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3341,18 +3341,18 @@ impl ID2D1DeviceContext { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &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(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3368,18 +3368,18 @@ impl ID2D1DeviceContext { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -3393,9 +3393,9 @@ impl ID2D1DeviceContext { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3427,73 +3427,73 @@ impl ID2D1DeviceContext { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } } unsafe impl Send for ID2D1DeviceContext {} @@ -3619,10 +3619,10 @@ impl ID2D1DeviceContext1 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -3631,10 +3631,10 @@ impl ID2D1DeviceContext1 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -3649,18 +3649,18 @@ impl ID2D1DeviceContext1 { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -3679,116 +3679,116 @@ impl ID2D1DeviceContext1 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -3813,9 +3813,9 @@ impl ID2D1DeviceContext1 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -3832,9 +3832,9 @@ impl ID2D1DeviceContext1 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -3844,15 +3844,15 @@ impl ID2D1DeviceContext1 { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -3910,10 +3910,10 @@ impl ID2D1DeviceContext1 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -3921,26 +3921,26 @@ impl ID2D1DeviceContext1 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.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 CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3954,18 +3954,18 @@ impl ID2D1DeviceContext1 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3981,18 +3981,18 @@ impl ID2D1DeviceContext1 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -4006,9 +4006,9 @@ impl ID2D1DeviceContext1 { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4040,95 +4040,95 @@ impl ID2D1DeviceContext1 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, inputrectangle).ok() + (windows_core::Interface::vtable(self).base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateFilledGeometryRealization(&self, geometry: P0, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), 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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, strokewidth, strokestyle.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.param().abi(), brush.param().abi()) } } unsafe impl Send for ID2D1DeviceContext1 {} @@ -4156,10 +4156,10 @@ impl ID2D1DeviceContext2 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -4168,10 +4168,10 @@ impl ID2D1DeviceContext2 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -4186,18 +4186,18 @@ impl ID2D1DeviceContext2 { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -4216,116 +4216,116 @@ impl ID2D1DeviceContext2 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -4350,9 +4350,9 @@ impl ID2D1DeviceContext2 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -4369,9 +4369,9 @@ impl ID2D1DeviceContext2 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -4381,15 +4381,15 @@ impl ID2D1DeviceContext2 { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -4447,10 +4447,10 @@ impl ID2D1DeviceContext2 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -4458,26 +4458,26 @@ impl ID2D1DeviceContext2 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.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 CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4491,18 +4491,18 @@ impl ID2D1DeviceContext2 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4518,18 +4518,18 @@ impl ID2D1DeviceContext2 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -4543,9 +4543,9 @@ impl ID2D1DeviceContext2 { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4577,95 +4577,95 @@ impl ID2D1DeviceContext2 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, inputrectangle).ok() + (windows_core::Interface::vtable(self).base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateFilledGeometryRealization(&self, geometry: P0, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, strokewidth, strokestyle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.param().abi(), brush.param().abi()) } pub unsafe fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4684,10 +4684,10 @@ impl ID2D1DeviceContext2 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateImageSourceFromWic(&self, wicbitmapsource: P0, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), loadingoptions, 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__ = std::mem::zeroed(); @@ -4701,38 +4701,38 @@ impl ID2D1DeviceContext2 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientMeshWorldBounds(&self, gradientmesh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()) + (windows_core::Interface::vtable(self).DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()) } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()) + (windows_core::Interface::vtable(self).DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateTransformedImageSource(&self, imagesource: P0, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.into_param().abi(), 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__)) } } unsafe impl Send for ID2D1DeviceContext2 {} @@ -4786,10 +4786,10 @@ impl ID2D1DeviceContext3 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -4798,10 +4798,10 @@ impl ID2D1DeviceContext3 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -4816,18 +4816,18 @@ impl ID2D1DeviceContext3 { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -4846,116 +4846,116 @@ impl ID2D1DeviceContext3 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -4980,9 +4980,9 @@ impl ID2D1DeviceContext3 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -4999,9 +4999,9 @@ impl ID2D1DeviceContext3 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -5011,15 +5011,15 @@ impl ID2D1DeviceContext3 { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -5077,10 +5077,10 @@ impl ID2D1DeviceContext3 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -5088,26 +5088,26 @@ impl ID2D1DeviceContext3 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.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 CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5121,18 +5121,18 @@ impl ID2D1DeviceContext3 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5148,18 +5148,18 @@ impl ID2D1DeviceContext3 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -5173,9 +5173,9 @@ impl ID2D1DeviceContext3 { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5207,95 +5207,95 @@ impl ID2D1DeviceContext3 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, inputrectangle).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateFilledGeometryRealization(&self, geometry: P0, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, strokewidth, strokestyle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.param().abi(), brush.param().abi()) } pub unsafe fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5314,10 +5314,10 @@ impl ID2D1DeviceContext3 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateImageSourceFromWic(&self, wicbitmapsource: P0, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), loadingoptions, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -5331,38 +5331,38 @@ impl ID2D1DeviceContext3 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientMeshWorldBounds(&self, gradientmesh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()) } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateTransformedImageSource(&self, imagesource: P0, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.into_param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSpriteBatch(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5370,10 +5370,10 @@ impl ID2D1DeviceContext3 { } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, spriteoptions) + (windows_core::Interface::vtable(self).DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions) } } unsafe impl Send for ID2D1DeviceContext3 {} @@ -5400,10 +5400,10 @@ impl ID2D1DeviceContext4 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -5412,10 +5412,10 @@ impl ID2D1DeviceContext4 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -5430,18 +5430,18 @@ impl ID2D1DeviceContext4 { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -5460,116 +5460,116 @@ impl ID2D1DeviceContext4 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -5594,9 +5594,9 @@ impl ID2D1DeviceContext4 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -5613,9 +5613,9 @@ impl ID2D1DeviceContext4 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -5625,15 +5625,15 @@ impl ID2D1DeviceContext4 { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -5691,10 +5691,10 @@ impl ID2D1DeviceContext4 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -5702,26 +5702,26 @@ impl ID2D1DeviceContext4 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.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 CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5735,18 +5735,18 @@ impl ID2D1DeviceContext4 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5762,18 +5762,18 @@ impl ID2D1DeviceContext4 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -5787,9 +5787,9 @@ impl ID2D1DeviceContext4 { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5821,95 +5821,95 @@ impl ID2D1DeviceContext4 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, inputrectangle).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateFilledGeometryRealization(&self, geometry: P0, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, strokewidth, strokestyle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.param().abi(), brush.param().abi()) } pub unsafe fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5928,10 +5928,10 @@ impl ID2D1DeviceContext4 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateImageSourceFromWic(&self, wicbitmapsource: P0, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), loadingoptions, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -5945,38 +5945,38 @@ impl ID2D1DeviceContext4 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientMeshWorldBounds(&self, gradientmesh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()) } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateTransformedImageSource(&self, imagesource: P0, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.into_param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSpriteBatch(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5984,10 +5984,10 @@ impl ID2D1DeviceContext4 { } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, spriteoptions) + (windows_core::Interface::vtable(self).base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions) } pub unsafe fn CreateSvgGlyphStyle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5996,20 +5996,20 @@ impl ID2D1DeviceContext4 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText2(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawText2)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options, measuringmode) + (windows_core::Interface::vtable(self).DrawText2)(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 DrawTextLayout2(&self, origin: Common::D2D_POINT_2F, textlayout: P0, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawTextLayout2)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options) + (windows_core::Interface::vtable(self).DrawTextLayout2)(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) { @@ -6018,28 +6018,28 @@ impl ID2D1DeviceContext4 { #[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: P0, svgglyphstyle: P1, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, measuringmode) + (windows_core::Interface::vtable(self).DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, 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.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, defaultfillbrush: P2, svgglyphstyle: P3, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, 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.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, glyphtransform, core::mem::transmute(glyphimage)).ok() } } unsafe impl Send for ID2D1DeviceContext4 {} @@ -6089,10 +6089,10 @@ impl ID2D1DeviceContext5 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -6101,10 +6101,10 @@ impl ID2D1DeviceContext5 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -6119,18 +6119,18 @@ impl ID2D1DeviceContext5 { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -6149,116 +6149,116 @@ impl ID2D1DeviceContext5 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -6283,9 +6283,9 @@ impl ID2D1DeviceContext5 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -6302,9 +6302,9 @@ impl ID2D1DeviceContext5 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -6314,15 +6314,15 @@ impl ID2D1DeviceContext5 { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -6380,10 +6380,10 @@ impl ID2D1DeviceContext5 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -6391,26 +6391,26 @@ impl ID2D1DeviceContext5 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.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 CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6424,18 +6424,18 @@ impl ID2D1DeviceContext5 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6451,18 +6451,18 @@ impl ID2D1DeviceContext5 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -6476,9 +6476,9 @@ impl ID2D1DeviceContext5 { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6510,95 +6510,95 @@ impl ID2D1DeviceContext5 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, inputrectangle).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateFilledGeometryRealization(&self, geometry: P0, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, strokewidth, strokestyle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.param().abi(), brush.param().abi()) } pub unsafe fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6617,10 +6617,10 @@ impl ID2D1DeviceContext5 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateImageSourceFromWic(&self, wicbitmapsource: P0, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), loadingoptions, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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__ = std::mem::zeroed(); @@ -6634,38 +6634,38 @@ impl ID2D1DeviceContext5 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientMeshWorldBounds(&self, gradientmesh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()) } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateTransformedImageSource(&self, imagesource: P0, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.into_param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSpriteBatch(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6673,10 +6673,10 @@ impl ID2D1DeviceContext5 { } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, spriteoptions) + (windows_core::Interface::vtable(self).base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions) } pub unsafe fn CreateSvgGlyphStyle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6685,20 +6685,20 @@ impl ID2D1DeviceContext5 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText2(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawText2)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options, measuringmode) + (windows_core::Interface::vtable(self).base__.DrawText2)(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 DrawTextLayout2(&self, origin: Common::D2D_POINT_2F, textlayout: P0, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawTextLayout2)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options) + (windows_core::Interface::vtable(self).base__.DrawTextLayout2)(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) { @@ -6707,42 +6707,42 @@ impl ID2D1DeviceContext5 { #[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: P0, svgglyphstyle: P1, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, measuringmode) + (windows_core::Interface::vtable(self).base__.DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, glyphtransform, core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).base__.GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, defaultfillbrush: P2, svgglyphstyle: P3, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, glyphtransform, core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).base__.GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, glyphtransform, core::mem::transmute(glyphimage)).ok() } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] pub unsafe fn CreateSvgDocument(&self, inputxmlstream: P0, viewportsize: Common::D2D_SIZE_F) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSvgDocument)(windows_core::Interface::as_raw(self), inputxmlstream.into_param().abi(), core::mem::transmute(viewportsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSvgDocument)(windows_core::Interface::as_raw(self), inputxmlstream.param().abi(), core::mem::transmute(viewportsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DrawSvgDocument(&self, svgdocument: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawSvgDocument)(windows_core::Interface::as_raw(self), svgdocument.into_param().abi()) + (windows_core::Interface::vtable(self).DrawSvgDocument)(windows_core::Interface::as_raw(self), svgdocument.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateColorContextFromDxgiColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { @@ -6790,10 +6790,10 @@ impl ID2D1DeviceContext6 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -6802,10 +6802,10 @@ impl ID2D1DeviceContext6 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -6820,18 +6820,18 @@ impl ID2D1DeviceContext6 { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -6850,116 +6850,116 @@ impl ID2D1DeviceContext6 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -6984,9 +6984,9 @@ impl ID2D1DeviceContext6 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -7003,9 +7003,9 @@ impl ID2D1DeviceContext6 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -7015,15 +7015,15 @@ impl ID2D1DeviceContext6 { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -7081,10 +7081,10 @@ impl ID2D1DeviceContext6 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -7092,26 +7092,26 @@ impl ID2D1DeviceContext6 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.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 CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7125,18 +7125,18 @@ impl ID2D1DeviceContext6 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7152,18 +7152,18 @@ impl ID2D1DeviceContext6 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -7177,9 +7177,9 @@ impl ID2D1DeviceContext6 { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7211,95 +7211,95 @@ impl ID2D1DeviceContext6 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, inputrectangle).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateFilledGeometryRealization(&self, geometry: P0, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, strokewidth, strokestyle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.param().abi(), brush.param().abi()) } pub unsafe fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7318,10 +7318,10 @@ impl ID2D1DeviceContext6 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateImageSourceFromWic(&self, wicbitmapsource: P0, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), loadingoptions, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -7335,38 +7335,38 @@ impl ID2D1DeviceContext6 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientMeshWorldBounds(&self, gradientmesh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()) } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateTransformedImageSource(&self, imagesource: P0, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.into_param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSpriteBatch(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7374,10 +7374,10 @@ impl ID2D1DeviceContext6 { } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, spriteoptions) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions) } pub unsafe fn CreateSvgGlyphStyle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7386,20 +7386,20 @@ impl ID2D1DeviceContext6 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText2(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawText2)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.DrawText2)(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 DrawTextLayout2(&self, origin: Common::D2D_POINT_2F, textlayout: P0, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawTextLayout2)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options) + (windows_core::Interface::vtable(self).base__.base__.DrawTextLayout2)(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) { @@ -7408,42 +7408,42 @@ impl ID2D1DeviceContext6 { #[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: P0, svgglyphstyle: P1, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, glyphtransform, core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).base__.base__.GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, defaultfillbrush: P2, svgglyphstyle: P3, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, glyphtransform, core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).base__.base__.GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, glyphtransform, core::mem::transmute(glyphimage)).ok() } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] pub unsafe fn CreateSvgDocument(&self, inputxmlstream: P0, viewportsize: Common::D2D_SIZE_F) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSvgDocument)(windows_core::Interface::as_raw(self), inputxmlstream.into_param().abi(), core::mem::transmute(viewportsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSvgDocument)(windows_core::Interface::as_raw(self), inputxmlstream.param().abi(), core::mem::transmute(viewportsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DrawSvgDocument(&self, svgdocument: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawSvgDocument)(windows_core::Interface::as_raw(self), svgdocument.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DrawSvgDocument)(windows_core::Interface::as_raw(self), svgdocument.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateColorContextFromDxgiColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { @@ -7458,9 +7458,9 @@ impl ID2D1DeviceContext6 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn BlendImage(&self, image: P0, blendmode: Common::D2D1_BLEND_MODE, targetoffset: Option<*const Common::D2D_POINT_2F>, imagerectangle: Option<*const Common::D2D_RECT_F>, interpolationmode: D2D1_INTERPOLATION_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode) + (windows_core::Interface::vtable(self).BlendImage)(windows_core::Interface::as_raw(self), image.param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode) } } unsafe impl Send for ID2D1DeviceContext6 {} @@ -7489,10 +7489,10 @@ impl ID2D1DeviceContext7 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -7501,10 +7501,10 @@ impl ID2D1DeviceContext7 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -7519,18 +7519,18 @@ impl ID2D1DeviceContext7 { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -7549,116 +7549,116 @@ impl ID2D1DeviceContext7 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -7683,9 +7683,9 @@ impl ID2D1DeviceContext7 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -7702,9 +7702,9 @@ impl ID2D1DeviceContext7 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -7714,15 +7714,15 @@ impl ID2D1DeviceContext7 { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -7780,10 +7780,10 @@ impl ID2D1DeviceContext7 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateBitmapFromWicBitmap2(&self, wicbitmapsource: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromWicBitmap2)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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__ = std::mem::zeroed(); @@ -7791,26 +7791,26 @@ impl ID2D1DeviceContext7 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.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 CreateBitmapFromDxgiSurface(&self, surface: P0, bitmapproperties: Option<*const D2D1_BITMAP_PROPERTIES1>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapFromDxgiSurface)(windows_core::Interface::as_raw(self), surface.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7824,18 +7824,18 @@ impl ID2D1DeviceContext7 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.param().abi(), imagebrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateBitmapBrush2(&self, bitmap: P0, bitmapbrushproperties: Option<*const D2D1_BITMAP_BRUSH_PROPERTIES1>, brushproperties: Option<*const D2D1_BRUSH_PROPERTIES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateBitmapBrush2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCommandList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7851,18 +7851,18 @@ impl ID2D1DeviceContext7 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageLocalBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetImageLocalBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetImageWorldBounds(&self, image: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetImageWorldBounds)(windows_core::Interface::as_raw(self), image.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -7876,9 +7876,9 @@ impl ID2D1DeviceContext7 { } pub unsafe fn SetTarget(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetTarget)(windows_core::Interface::as_raw(self), image.param().abi()) } pub unsafe fn GetTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7910,95 +7910,95 @@ impl ID2D1DeviceContext7 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawGlyphRun2(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: Option<*const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION>, foregroundbrush: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawImage)(windows_core::Interface::as_raw(self), image.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode, compositemode) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile(&self, gdimetafile: P0, targetoffset: Option<*const Common::D2D_POINT_2F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawGdiMetafile)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(targetoffset.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawBitmap2(&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>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DrawBitmap2)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null())), core::mem::transmute(perspectivetransform.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer2(&self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.PushLayer2)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn InvalidateEffectInputRectangle(&self, effect: P0, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.into_param().abi(), input, inputrectangle).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.InvalidateEffectInputRectangle)(windows_core::Interface::as_raw(self), effect.param().abi(), input, inputrectangle).ok() } pub unsafe fn GetEffectInvalidRectangleCount(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangleCount)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectInvalidRectangles(&self, effect: P0, rectangles: &mut [Common::D2D_RECT_F]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.into_param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEffectInvalidRectangles)(windows_core::Interface::as_raw(self), effect.param().abi(), core::mem::transmute(rectangles.as_ptr()), rectangles.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEffectRequiredInputRectangles(&self, rendereffect: P0, renderimagerectangle: Option<*const Common::D2D_RECT_F>, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.into_param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEffectRequiredInputRectangles)(windows_core::Interface::as_raw(self), rendereffect.param().abi(), core::mem::transmute(renderimagerectangle.unwrap_or(std::ptr::null())), inputdescriptions, requiredinputrects, inputcount).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask2(&self, opacitymask: P0, brush: P1, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FillOpacityMask2)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateFilledGeometryRealization(&self, geometry: P0, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateFilledGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateStrokedGeometryRealization)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), flatteningtolerance, strokewidth, strokestyle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DrawGeometryRealization)(windows_core::Interface::as_raw(self), geometryrealization.param().abi(), brush.param().abi()) } pub unsafe fn CreateInk(&self, startpoint: *const D2D1_INK_POINT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8017,10 +8017,10 @@ impl ID2D1DeviceContext7 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Imaging"))] pub unsafe fn CreateImageSourceFromWic(&self, wicbitmapsource: P0, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateImageSourceFromWic)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), loadingoptions, alphamode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -8034,38 +8034,38 @@ impl ID2D1DeviceContext7 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetGradientMeshWorldBounds(&self, gradientmesh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGradientMeshWorldBounds)(windows_core::Interface::as_raw(self), gradientmesh.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DrawInk(&self, ink: P0, brush: P1, inkstyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.into_param().abi(), brush.into_param().abi(), inkstyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawInk)(windows_core::Interface::as_raw(self), ink.param().abi(), brush.param().abi(), inkstyle.param().abi()) } pub unsafe fn DrawGradientMesh(&self, gradientmesh: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGradientMesh)(windows_core::Interface::as_raw(self), gradientmesh.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawGdiMetafile2(&self, gdimetafile: P0, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DrawGdiMetafile2)(windows_core::Interface::as_raw(self), gdimetafile.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } pub unsafe fn CreateTransformedImageSource(&self, imagesource: P0, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.into_param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateTransformedImageSource)(windows_core::Interface::as_raw(self), imagesource.param().abi(), properties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSpriteBatch(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8073,10 +8073,10 @@ impl ID2D1DeviceContext7 { } pub unsafe fn DrawSpriteBatch(&self, spritebatch: P0, startindex: u32, spritecount: u32, bitmap: P1, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.into_param().abi(), startindex, spritecount, bitmap.into_param().abi(), interpolationmode, spriteoptions) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawSpriteBatch)(windows_core::Interface::as_raw(self), spritebatch.param().abi(), startindex, spritecount, bitmap.param().abi(), interpolationmode, spriteoptions) } pub unsafe fn CreateSvgGlyphStyle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8085,20 +8085,20 @@ impl ID2D1DeviceContext7 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText2(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawText2)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawText2)(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 DrawTextLayout2(&self, origin: Common::D2D_POINT_2F, textlayout: P0, defaultfillbrush: P1, svgglyphstyle: P2, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawTextLayout2)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, options) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawTextLayout2)(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) { @@ -8107,42 +8107,42 @@ impl ID2D1DeviceContext7 { #[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: P0, svgglyphstyle: P1, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, measuringmode) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawSvgGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, glyphtransform, core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetColorBitmapGlyphImage)(windows_core::Interface::as_raw(self), glyphimageformat, core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), dpix, dpiy, 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: P0, fontemsize: f32, glyphindex: u16, issideways: P1, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, defaultfillbrush: P2, svgglyphstyle: P3, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.into_param().abi(), fontemsize, glyphindex, issideways.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, glyphtransform, core::mem::transmute(glyphimage)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetSvgGlyphImage)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphorigin), fontface.param().abi(), fontemsize, glyphindex, issideways.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), defaultfillbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, glyphtransform, core::mem::transmute(glyphimage)).ok() } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] pub unsafe fn CreateSvgDocument(&self, inputxmlstream: P0, viewportsize: Common::D2D_SIZE_F) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSvgDocument)(windows_core::Interface::as_raw(self), inputxmlstream.into_param().abi(), core::mem::transmute(viewportsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateSvgDocument)(windows_core::Interface::as_raw(self), inputxmlstream.param().abi(), core::mem::transmute(viewportsize), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DrawSvgDocument(&self, svgdocument: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawSvgDocument)(windows_core::Interface::as_raw(self), svgdocument.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DrawSvgDocument)(windows_core::Interface::as_raw(self), svgdocument.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateColorContextFromDxgiColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { @@ -8157,9 +8157,9 @@ impl ID2D1DeviceContext7 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn BlendImage(&self, image: P0, blendmode: Common::D2D1_BLEND_MODE, targetoffset: Option<*const Common::D2D_POINT_2F>, imagerectangle: Option<*const Common::D2D_RECT_F>, interpolationmode: D2D1_INTERPOLATION_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BlendImage)(windows_core::Interface::as_raw(self), image.into_param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode) + (windows_core::Interface::vtable(self).base__.BlendImage)(windows_core::Interface::as_raw(self), image.param().abi(), blendmode, core::mem::transmute(targetoffset.unwrap_or(std::ptr::null())), core::mem::transmute(imagerectangle.unwrap_or(std::ptr::null())), interpolationmode) } pub unsafe fn GetPaintFeatureLevel(&self) -> DWRITE_PAINT_FEATURE_LEVEL { (windows_core::Interface::vtable(self).GetPaintFeatureLevel)(windows_core::Interface::as_raw(self)) @@ -8167,17 +8167,17 @@ impl ID2D1DeviceContext7 { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawPaintGlyphRun(&self, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: P0, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, defaultfillbrush.into_param().abi(), colorpaletteindex, measuringmode) + (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), 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: P0, svgglyphstyle: P1, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.into_param().abi(), svgglyphstyle.into_param().abi(), colorpaletteindex, measuringmode, bitmapsnapoption) + (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, core::mem::transmute(glyphrundescription.unwrap_or(std::ptr::null())), foregroundbrush.param().abi(), svgglyphstyle.param().abi(), colorpaletteindex, measuringmode, bitmapsnapoption) } } unsafe impl Send for ID2D1DeviceContext7 {} @@ -8206,9 +8206,9 @@ impl ID2D1DrawInfo { } pub unsafe fn SetCached(&self, iscached: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetCached)(windows_core::Interface::as_raw(self), iscached.param().abi()) } pub unsafe fn SetInstructionCountHint(&self, instructioncount: u32) { (windows_core::Interface::vtable(self).base__.SetInstructionCountHint)(windows_core::Interface::as_raw(self), instructioncount) @@ -8218,9 +8218,9 @@ impl ID2D1DrawInfo { } pub unsafe fn SetResourceTexture(&self, textureindex: u32, resourcetexture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResourceTexture)(windows_core::Interface::as_raw(self), textureindex, resourcetexture.into_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() @@ -8230,9 +8230,9 @@ impl ID2D1DrawInfo { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVertexProcessing)(windows_core::Interface::as_raw(self), vertexbuffer.into_param().abi(), vertexoptions, core::mem::transmute(blenddescription.unwrap_or(std::ptr::null())), core::mem::transmute(vertexrange.unwrap_or(std::ptr::null())), core::mem::transmute(vertexshader.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetVertexProcessing)(windows_core::Interface::as_raw(self), vertexbuffer.param().abi(), vertexoptions, core::mem::transmute(blenddescription.unwrap_or(std::ptr::null())), core::mem::transmute(vertexrange.unwrap_or(std::ptr::null())), core::mem::transmute(vertexshader.unwrap_or(std::ptr::null()))).ok() } } unsafe impl Send for ID2D1DrawInfo {} @@ -8264,9 +8264,9 @@ impl ID2D1DrawTransform { } pub unsafe fn SetDrawInfo(&self, drawinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDrawInfo)(windows_core::Interface::as_raw(self), drawinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDrawInfo)(windows_core::Interface::as_raw(self), drawinfo.param().abi()).ok() } } unsafe impl Send for ID2D1DrawTransform {} @@ -8295,9 +8295,9 @@ impl ID2D1DrawingStateBlock { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -8347,9 +8347,9 @@ impl ID2D1DrawingStateBlock1 { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -8397,24 +8397,24 @@ impl ID2D1Effect { } pub unsafe fn GetPropertyIndex(&self, name: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetPropertyIndex)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetPropertyIndex)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn SetValueByName(&self, name: P0, r#type: D2D1_PROPERTY_TYPE, data: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetValueByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetValue)(windows_core::Interface::as_raw(self), index, r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() @@ -8428,10 +8428,10 @@ impl ID2D1Effect { } pub unsafe fn SetInput(&self, index: u32, input: P0, invalidate: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), invalidate.into_param().abi()) + (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), invalidate.param().abi()) } pub unsafe fn SetInputCount(&self, inputcount: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetInputCount)(windows_core::Interface::as_raw(self), inputcount).ok() @@ -8478,10 +8478,10 @@ impl ID2D1EffectContext { } pub unsafe fn CreateTransformNodeFromEffect(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransformNodeFromEffect)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTransformNodeFromEffect)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlendTransform(&self, numinputs: u32, blenddescription: *const D2D1_BLEND_DESCRIPTION) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8534,18 +8534,18 @@ impl ID2D1EffectContext { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), feature, featuresupportdata, featuresupportdatasize).ok() @@ -8607,10 +8607,10 @@ impl ID2D1EffectContext1 { } pub unsafe fn CreateTransformNodeFromEffect(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTransformNodeFromEffect)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTransformNodeFromEffect)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlendTransform(&self, numinputs: u32, blenddescription: *const D2D1_BLEND_DESCRIPTION) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8663,18 +8663,18 @@ impl ID2D1EffectContext1 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, featuresupportdata, featuresupportdatasize).ok() @@ -8711,10 +8711,10 @@ impl ID2D1EffectContext2 { } pub unsafe fn CreateTransformNodeFromEffect(&self, effect: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTransformNodeFromEffect)(windows_core::Interface::as_raw(self), effect.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateTransformNodeFromEffect)(windows_core::Interface::as_raw(self), effect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlendTransform(&self, numinputs: u32, blenddescription: *const D2D1_BLEND_DESCRIPTION) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8767,18 +8767,18 @@ impl ID2D1EffectContext2 { } pub unsafe fn CreateColorContextFromFilename(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateColorContextFromFilename)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateColorContextFromWicColorContext)(windows_core::Interface::as_raw(self), wiccolorcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, featuresupportdata, featuresupportdatasize).ok() @@ -8820,19 +8820,19 @@ windows_core::imp::interface_hierarchy!(ID2D1EffectImpl, windows_core::IUnknown) impl ID2D1EffectImpl { pub unsafe fn Initialize(&self, effectcontext: P0, transformgraph: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), effectcontext.into_param().abi(), transformgraph.into_param().abi()).ok() + (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), changetype).ok() } pub unsafe fn SetGraph(&self, transformgraph: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGraph)(windows_core::Interface::as_raw(self), transformgraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGraph)(windows_core::Interface::as_raw(self), transformgraph.param().abi()).ok() } } unsafe impl Send for ID2D1EffectImpl {} @@ -8860,18 +8860,18 @@ impl ID2D1EllipseGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -8881,39 +8881,39 @@ impl ID2D1EllipseGeometry { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -8932,10 +8932,10 @@ impl ID2D1EllipseGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetEllipse(&self) -> D2D1_ELLIPSE { @@ -8986,10 +8986,10 @@ impl ID2D1Factory { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), 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__ = std::mem::zeroed(); @@ -9002,18 +9002,18 @@ impl ID2D1Factory { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), 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 { @@ -9023,10 +9023,10 @@ impl ID2D1Factory { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), 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 { @@ -9116,10 +9116,10 @@ impl ID2D1Factory1 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -9132,18 +9132,18 @@ impl ID2D1Factory1 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 { @@ -9153,10 +9153,10 @@ impl ID2D1Factory1 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 { @@ -9166,10 +9166,10 @@ impl ID2D1Factory1 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9182,31 +9182,31 @@ impl ID2D1Factory1 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (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), classid).ok() @@ -9279,10 +9279,10 @@ impl ID2D1Factory2 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -9295,18 +9295,18 @@ impl ID2D1Factory2 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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 { @@ -9316,10 +9316,10 @@ impl ID2D1Factory2 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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 { @@ -9329,10 +9329,10 @@ impl ID2D1Factory2 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9345,31 +9345,31 @@ impl ID2D1Factory2 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.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).base__.UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() @@ -9384,10 +9384,10 @@ impl ID2D1Factory2 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice2(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID2D1Factory2 {} @@ -9432,10 +9432,10 @@ impl ID2D1Factory3 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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__ = std::mem::zeroed(); @@ -9448,18 +9448,18 @@ impl ID2D1Factory3 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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 { @@ -9469,10 +9469,10 @@ impl ID2D1Factory3 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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 { @@ -9482,10 +9482,10 @@ impl ID2D1Factory3 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9498,31 +9498,31 @@ impl ID2D1Factory3 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() @@ -9537,18 +9537,18 @@ impl ID2D1Factory3 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice2(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice3(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID2D1Factory3 {} @@ -9593,10 +9593,10 @@ impl ID2D1Factory4 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -9609,18 +9609,18 @@ impl ID2D1Factory4 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 { @@ -9630,10 +9630,10 @@ impl ID2D1Factory4 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 { @@ -9643,10 +9643,10 @@ impl ID2D1Factory4 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9659,31 +9659,31 @@ impl ID2D1Factory4 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() @@ -9698,26 +9698,26 @@ impl ID2D1Factory4 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice2(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice3(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice4(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID2D1Factory4 {} @@ -9762,10 +9762,10 @@ impl ID2D1Factory5 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -9778,18 +9778,18 @@ impl ID2D1Factory5 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 { @@ -9799,10 +9799,10 @@ impl ID2D1Factory5 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 { @@ -9812,10 +9812,10 @@ impl ID2D1Factory5 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9828,31 +9828,31 @@ impl ID2D1Factory5 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() @@ -9867,34 +9867,34 @@ impl ID2D1Factory5 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice2(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice3(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice4(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice5(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID2D1Factory5 {} @@ -9939,10 +9939,10 @@ impl ID2D1Factory6 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -9955,18 +9955,18 @@ impl ID2D1Factory6 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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 { @@ -9976,10 +9976,10 @@ impl ID2D1Factory6 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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 { @@ -9989,10 +9989,10 @@ impl ID2D1Factory6 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10005,31 +10005,31 @@ impl ID2D1Factory6 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() @@ -10044,42 +10044,42 @@ impl ID2D1Factory6 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice2(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice3(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice4(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice5(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice6(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice6)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice6)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID2D1Factory6 {} @@ -10124,10 +10124,10 @@ impl ID2D1Factory7 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -10140,18 +10140,18 @@ impl ID2D1Factory7 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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 { @@ -10161,10 +10161,10 @@ impl ID2D1Factory7 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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 { @@ -10174,10 +10174,10 @@ impl ID2D1Factory7 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10190,31 +10190,31 @@ impl ID2D1Factory7 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() @@ -10229,50 +10229,50 @@ impl ID2D1Factory7 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice2(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice3(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice4(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice5(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice6(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDevice6)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDevice6)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice7(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice7)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice7)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID2D1Factory7 {} @@ -10317,10 +10317,10 @@ impl ID2D1Factory8 { #[cfg(feature = "Foundation_Numerics")] pub unsafe fn CreateTransformedGeometry(&self, sourcegeometry: P0, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateTransformedGeometry)(windows_core::Interface::as_raw(self), sourcegeometry.into_param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -10333,18 +10333,18 @@ impl ID2D1Factory8 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &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 CreateWicBitmapRenderTarget(&self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateWicBitmapRenderTarget)(windows_core::Interface::as_raw(self), target.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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 { @@ -10354,10 +10354,10 @@ impl ID2D1Factory8 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateDxgiSurfaceRenderTarget)(windows_core::Interface::as_raw(self), dxgisurface.into_param().abi(), rendertargetproperties, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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 { @@ -10367,10 +10367,10 @@ impl ID2D1Factory8 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDevice)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateStrokeStyle2(&self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10383,31 +10383,31 @@ impl ID2D1Factory8 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn CreateDrawingStateBlock2(&self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDrawingStateBlock2)(windows_core::Interface::as_raw(self), core::mem::transmute(drawingstatedescription.unwrap_or(std::ptr::null())), textrenderingparams.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGdiMetafile(&self, metafilestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateGdiMetafile)(windows_core::Interface::as_raw(self), metafilestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterEffectFromStream(&self, classid: *const windows_core::GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RegisterEffectFromStream)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RegisterEffectFromString)(windows_core::Interface::as_raw(self), classid, propertyxml.into_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() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.UnregisterEffect)(windows_core::Interface::as_raw(self), classid).ok() @@ -10422,58 +10422,58 @@ impl ID2D1Factory8 { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice2(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDevice2)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice3(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDevice3)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice4(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDevice4)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice5(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDevice5)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice6(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDevice6)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDevice6)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice7(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDevice7)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDevice7)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn CreateDevice8(&self, dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDevice8)(windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDevice8)(windows_core::Interface::as_raw(self), dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID2D1Factory8 {} @@ -10519,9 +10519,9 @@ impl ID2D1GdiMetafile { } pub unsafe fn Stream(&self, sink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Stream)(windows_core::Interface::as_raw(self), sink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Stream)(windows_core::Interface::as_raw(self), sink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetBounds(&self) -> windows_core::Result { @@ -10550,9 +10550,9 @@ impl ID2D1GdiMetafile1 { } pub unsafe fn Stream(&self, sink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Stream)(windows_core::Interface::as_raw(self), sink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Stream)(windows_core::Interface::as_raw(self), sink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetBounds(&self) -> windows_core::Result { @@ -10626,18 +10626,18 @@ impl ID2D1Geometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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 { @@ -10647,39 +10647,39 @@ impl ID2D1Geometry { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_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(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -10698,10 +10698,10 @@ impl ID2D1Geometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_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(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } } unsafe impl Send for ID2D1Geometry {} @@ -10778,18 +10778,18 @@ impl ID2D1GeometryGroup { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -10799,39 +10799,39 @@ impl ID2D1GeometryGroup { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -10850,10 +10850,10 @@ impl ID2D1GeometryGroup { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetFillMode(&self) -> Common::D2D1_FILL_MODE { @@ -11107,10 +11107,10 @@ impl ID2D1HwndRenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -11119,10 +11119,10 @@ impl ID2D1HwndRenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -11137,18 +11137,18 @@ impl ID2D1HwndRenderTarget { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), 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 { @@ -11167,116 +11167,116 @@ impl ID2D1HwndRenderTarget { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.param().abi()) } pub unsafe fn DrawGeometry(&self, geometry: P0, brush: P1, strokewidth: f32, strokestyle: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.param().abi(), brush.param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawText)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, measuringmode) + (windows_core::Interface::vtable(self).base__.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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), options) + (windows_core::Interface::vtable(self).base__.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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -11301,9 +11301,9 @@ impl ID2D1HwndRenderTarget { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -11320,9 +11320,9 @@ impl ID2D1HwndRenderTarget { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).base__.PopLayer)(windows_core::Interface::as_raw(self)) @@ -11332,15 +11332,15 @@ impl ID2D1HwndRenderTarget { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).base__.RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -11452,9 +11452,9 @@ impl ID2D1ImageBrush { } pub unsafe fn SetImage(&self, image: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), image.into_param().abi()) + (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), extendmodex) @@ -11621,18 +11621,18 @@ impl ID2D1Ink { #[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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StreamAsGeometry)(windows_core::Interface::as_raw(self), inkstyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StreamAsGeometry)(windows_core::Interface::as_raw(self), inkstyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBounds)(windows_core::Interface::as_raw(self), inkstyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBounds)(windows_core::Interface::as_raw(self), inkstyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } } unsafe impl Send for ID2D1Ink {} @@ -11888,18 +11888,18 @@ impl ID2D1PathGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -11909,39 +11909,39 @@ impl ID2D1PathGeometry { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -11960,10 +11960,10 @@ impl ID2D1PathGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn Open(&self) -> windows_core::Result { @@ -11973,9 +11973,9 @@ impl ID2D1PathGeometry { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn Stream(&self, geometrysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Stream)(windows_core::Interface::as_raw(self), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Stream)(windows_core::Interface::as_raw(self), geometrysink.param().abi()).ok() } pub unsafe fn GetSegmentCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12018,18 +12018,18 @@ impl ID2D1PathGeometry1 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -12039,39 +12039,39 @@ impl ID2D1PathGeometry1 { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -12090,10 +12090,10 @@ impl ID2D1PathGeometry1 { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn Open(&self) -> windows_core::Result { @@ -12103,9 +12103,9 @@ impl ID2D1PathGeometry1 { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn Stream(&self, geometrysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Stream)(windows_core::Interface::as_raw(self), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Stream)(windows_core::Interface::as_raw(self), geometrysink.param().abi()).ok() } pub unsafe fn GetSegmentCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12136,10 +12136,10 @@ impl ID2D1PrintControl { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] pub unsafe fn AddPage(&self, commandlist: P0, pagesize: Common::D2D_SIZE_F, pageprintticketstream: P1, tag1: Option<*mut u64>, tag2: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), commandlist.into_param().abi(), core::mem::transmute(pagesize), pageprintticketstream.into_param().abi(), core::mem::transmute(tag1.unwrap_or(std::ptr::null_mut())), core::mem::transmute(tag2.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), commandlist.param().abi(), core::mem::transmute(pagesize), pageprintticketstream.param().abi(), core::mem::transmute(tag1.unwrap_or(std::ptr::null_mut())), core::mem::transmute(tag2.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -12173,24 +12173,24 @@ impl ID2D1Properties { } pub unsafe fn GetPropertyIndex(&self, name: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyIndex)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetPropertyIndex)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn SetValueByName(&self, name: P0, r#type: D2D1_PROPERTY_TYPE, data: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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), index, r#type, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() @@ -12323,18 +12323,18 @@ impl ID2D1RectangleGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -12344,39 +12344,39 @@ impl ID2D1RectangleGeometry { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -12395,10 +12395,10 @@ impl ID2D1RectangleGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetRect(&self) -> Common::D2D_RECT_F { @@ -12428,9 +12428,9 @@ impl ID2D1RenderInfo { } pub unsafe fn SetCached(&self, iscached: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCached)(windows_core::Interface::as_raw(self), iscached.into_param().abi()) + (windows_core::Interface::vtable(self).SetCached)(windows_core::Interface::as_raw(self), iscached.param().abi()) } pub unsafe fn SetInstructionCountHint(&self, instructioncount: u32) { (windows_core::Interface::vtable(self).SetInstructionCountHint)(windows_core::Interface::as_raw(self), instructioncount) @@ -12462,10 +12462,10 @@ impl ID2D1RenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.into_param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromWicBitmap)(windows_core::Interface::as_raw(self), wicbitmapsource.param().abi(), core::mem::transmute(bitmapproperties.unwrap_or(std::ptr::null())), &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 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<()> { @@ -12474,10 +12474,10 @@ impl ID2D1RenderTarget { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapBrush)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(bitmapbrushproperties.unwrap_or(std::ptr::null())), core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -12492,18 +12492,18 @@ impl ID2D1RenderTarget { #[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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), lineargradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_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(std::ptr::null())), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), radialgradientbrushproperties, core::mem::transmute(brushproperties.unwrap_or(std::ptr::null())), gradientstopcollection.into_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(std::ptr::null())), 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 { @@ -12522,116 +12522,116 @@ impl ID2D1RenderTarget { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn DrawLine(&self, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawLine)(windows_core::Interface::as_raw(self), core::mem::transmute(point0), core::mem::transmute(point1), brush.into_param().abi(), strokewidth, strokestyle.into_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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_param().abi(), strokewidth, strokestyle.into_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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FillRectangle)(windows_core::Interface::as_raw(self), rect, brush.into_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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_param().abi(), strokewidth, strokestyle.into_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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FillRoundedRectangle)(windows_core::Interface::as_raw(self), roundedrect, brush.into_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: P0, strokewidth: f32, strokestyle: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_param().abi(), strokewidth, strokestyle.into_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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FillEllipse)(windows_core::Interface::as_raw(self), ellipse, brush.into_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: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), strokewidth, strokestyle.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FillGeometry)(windows_core::Interface::as_raw(self), geometry.into_param().abi(), brush.into_param().abi(), opacitybrush.into_param().abi()) + (windows_core::Interface::vtable(self).FillGeometry)(windows_core::Interface::as_raw(self), geometry.param().abi(), brush.param().abi(), opacitybrush.param().abi()) } pub unsafe fn FillMesh(&self, mesh: P0, brush: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillMesh)(windows_core::Interface::as_raw(self), mesh.into_param().abi(), brush.into_param().abi()) + (windows_core::Interface::vtable(self).FillMesh)(windows_core::Interface::as_raw(self), mesh.param().abi(), brush.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn FillOpacityMask(&self, opacitymask: P0, brush: P1, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: Option<*const Common::D2D_RECT_F>, sourcerectangle: Option<*const Common::D2D_RECT_F>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FillOpacityMask)(windows_core::Interface::as_raw(self), opacitymask.into_param().abi(), brush.into_param().abi(), content, core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (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(std::ptr::null())), core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DrawBitmap)(windows_core::Interface::as_raw(self), bitmap.param().abi(), core::mem::transmute(destinationrectangle.unwrap_or(std::ptr::null())), opacity, interpolationmode, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] pub unsafe fn DrawText(&self, string: &[u16], textformat: P0, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), layoutrect, defaultfillbrush.into_param().abi(), options, 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: P0, defaultfillbrush: P1, options: D2D1_DRAW_TEXT_OPTIONS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(origin), textlayout.into_param().abi(), defaultfillbrush.into_param().abi(), 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: P0, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.into_param().abi(), measuringmode) + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(baselineorigin), glyphrun, foregroundbrush.param().abi(), measuringmode) } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform(&self, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { @@ -12656,9 +12656,9 @@ impl ID2D1RenderTarget { #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn SetTextRenderingParams(&self, textrenderingparams: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.into_param().abi()) + (windows_core::Interface::vtable(self).SetTextRenderingParams)(windows_core::Interface::as_raw(self), textrenderingparams.param().abi()) } #[cfg(feature = "Win32_Graphics_DirectWrite")] pub unsafe fn GetTextRenderingParams(&self) -> windows_core::Result { @@ -12675,9 +12675,9 @@ impl ID2D1RenderTarget { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn PushLayer(&self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.into_param().abi()) + (windows_core::Interface::vtable(self).PushLayer)(windows_core::Interface::as_raw(self), layerparameters, layer.param().abi()) } pub unsafe fn PopLayer(&self) { (windows_core::Interface::vtable(self).PopLayer)(windows_core::Interface::as_raw(self)) @@ -12687,15 +12687,15 @@ impl ID2D1RenderTarget { } pub unsafe fn SaveDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).SaveDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } pub unsafe fn RestoreDrawingState(&self, drawingstateblock: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.into_param().abi()) + (windows_core::Interface::vtable(self).RestoreDrawingState)(windows_core::Interface::as_raw(self), drawingstateblock.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn PushAxisAlignedClip(&self, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { @@ -12950,18 +12950,18 @@ impl ID2D1RoundedRectangleGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -12971,39 +12971,39 @@ impl ID2D1RoundedRectangleGeometry { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -13022,10 +13022,10 @@ impl ID2D1RoundedRectangleGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn GetRoundedRect(&self, roundedrect: *mut D2D1_ROUNDED_RECT) { @@ -13107,16 +13107,16 @@ impl ID2D1SourceTransform { } pub unsafe fn SetRenderInfo(&self, renderinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRenderInfo)(windows_core::Interface::as_raw(self), renderinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRenderInfo)(windows_core::Interface::as_raw(self), renderinfo.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn Draw(&self, target: P0, drawrect: *const super::super::Foundation::RECT, targetorigin: Common::D2D_POINT_2U) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), target.into_param().abi(), 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() } } unsafe impl Send for ID2D1SourceTransform {} @@ -13320,9 +13320,9 @@ impl ID2D1SvgDocument { } pub unsafe fn SetRoot(&self, root: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), root.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), root.param().abi()).ok() } pub unsafe fn GetRoot(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13331,34 +13331,34 @@ impl ID2D1SvgDocument { } pub unsafe fn FindElementById(&self, id: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindElementById)(windows_core::Interface::as_raw(self), id.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindElementById)(windows_core::Interface::as_raw(self), id.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Serialize(&self, outputxmlstream: P0, subtree: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), outputxmlstream.into_param().abi(), subtree.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), outputxmlstream.param().abi(), subtree.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Deserialize(&self, inputxmlstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), inputxmlstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), inputxmlstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn CreatePaint(&self, painttype: D2D1_SVG_PAINT_TYPE, color: Option<*const Common::D2D1_COLOR_F>, id: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePaint)(windows_core::Interface::as_raw(self), painttype, core::mem::transmute(color.unwrap_or(std::ptr::null())), id.into_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(std::ptr::null())), 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__ = std::mem::zeroed(); @@ -13451,56 +13451,56 @@ impl ID2D1SvgElement { } pub unsafe fn GetPreviousChild(&self, referencechild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreviousChild)(windows_core::Interface::as_raw(self), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPreviousChild)(windows_core::Interface::as_raw(self), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNextChild(&self, referencechild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextChild)(windows_core::Interface::as_raw(self), referencechild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextChild)(windows_core::Interface::as_raw(self), referencechild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InsertChildBefore(&self, newchild: P0, referencechild: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertChildBefore)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), referencechild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InsertChildBefore)(windows_core::Interface::as_raw(self), newchild.param().abi(), referencechild.param().abi()).ok() } pub unsafe fn AppendChild(&self, newchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendChild)(windows_core::Interface::as_raw(self), newchild.param().abi()).ok() } pub unsafe fn ReplaceChild(&self, newchild: P0, oldchild: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReplaceChild)(windows_core::Interface::as_raw(self), newchild.into_param().abi(), oldchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReplaceChild)(windows_core::Interface::as_raw(self), newchild.param().abi(), oldchild.param().abi()).ok() } pub unsafe fn RemoveChild(&self, oldchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveChild)(windows_core::Interface::as_raw(self), oldchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveChild)(windows_core::Interface::as_raw(self), oldchild.param().abi()).ok() } pub unsafe fn CreateChild(&self, tagname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChild)(windows_core::Interface::as_raw(self), tagname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateChild)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsAttributeSpecified(&self, name: P0, inherited: Option<*mut super::super::Foundation::BOOL>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsAttributeSpecified)(windows_core::Interface::as_raw(self), name.into_param().abi(), core::mem::transmute(inherited.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).IsAttributeSpecified)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(inherited.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn GetSpecifiedAttributeCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetSpecifiedAttributeCount)(windows_core::Interface::as_raw(self)) @@ -13513,9 +13513,9 @@ impl ID2D1SvgElement { } pub unsafe fn RemoveAttribute(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveAttribute)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn SetTextValue(&self, name: &[u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetTextValue)(windows_core::Interface::as_raw(self), core::mem::transmute(name.as_ptr()), name.len().try_into().unwrap()).ok() @@ -13528,50 +13528,50 @@ impl ID2D1SvgElement { } pub unsafe fn SetAttributeValue(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttributeValue)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttributeValue)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn SetAttributeValue2(&self, name: P0, r#type: D2D1_SVG_ATTRIBUTE_POD_TYPE, value: *const core::ffi::c_void, valuesizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttributeValue2)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, value, 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttributeValue3)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, value.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetAttributeValue)(windows_core::Interface::as_raw(self), name.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttributeValue)(windows_core::Interface::as_raw(self), name.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAttributeValue2(&self, name: P0, r#type: D2D1_SVG_ATTRIBUTE_POD_TYPE, value: *mut core::ffi::c_void, valuesizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeValue2)(windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, value, valuesizeinbytes).ok() + (windows_core::Interface::vtable(self).GetAttributeValue2)(windows_core::Interface::as_raw(self), name.param().abi(), r#type, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeValue3)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeValueLength)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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__) } } unsafe impl Send for ID2D1SvgElement {} @@ -13620,9 +13620,9 @@ impl ID2D1SvgGlyphStyle { } pub unsafe fn SetFill(&self, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFill)(windows_core::Interface::as_raw(self), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFill)(windows_core::Interface::as_raw(self), brush.param().abi()).ok() } pub unsafe fn GetFill(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13631,9 +13631,9 @@ impl ID2D1SvgGlyphStyle { } pub unsafe fn SetStroke(&self, brush: P0, strokewidth: f32, dashes: Option<&[f32]>, dashoffset: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStroke)(windows_core::Interface::as_raw(self), brush.into_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() + (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)) @@ -13688,9 +13688,9 @@ impl ID2D1SvgPaint { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn GetId(&self, id: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetId)(windows_core::Interface::as_raw(self), core::mem::transmute(id.as_ptr()), id.len().try_into().unwrap()).ok() @@ -13935,40 +13935,40 @@ impl ID2D1TransformGraph { } pub unsafe fn SetSingleTransformNode(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSingleTransformNode)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSingleTransformNode)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } pub unsafe fn AddNode(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNode)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddNode)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } pub unsafe fn RemoveNode(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveNode)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveNode)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } pub unsafe fn SetOutputNode(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputNode)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputNode)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } pub unsafe fn ConnectNode(&self, fromnode: P0, tonode: P1, tonodeinputindex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectNode)(windows_core::Interface::as_raw(self), fromnode.into_param().abi(), tonode.into_param().abi(), 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: P0, tonodeinputindex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectToEffectInput)(windows_core::Interface::as_raw(self), toeffectinputindex, node.into_param().abi(), 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)) @@ -14022,18 +14022,18 @@ impl ID2D1TransformedGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetWidenedBounds)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.StrokeContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -14043,39 +14043,39 @@ impl ID2D1TransformedGeometry { #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Simplify)(windows_core::Interface::as_raw(self), simplificationoption, core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, tessellationsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Tessellate)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.into_param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CombineWithGeometry)(windows_core::Interface::as_raw(self), inputgeometry.param().abi(), combinemode, core::mem::transmute(inputgeometrytransform.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Outline)(windows_core::Interface::as_raw(self), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), 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 { @@ -14094,10 +14094,10 @@ impl ID2D1TransformedGeometry { #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub unsafe fn Widen(&self, strokewidth: f32, strokestyle: P0, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32, geometrysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.into_param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Widen)(windows_core::Interface::as_raw(self), strokewidth, strokestyle.param().abi(), core::mem::transmute(worldtransform.unwrap_or(std::ptr::null())), flatteningtolerance, geometrysink.param().abi()).ok() } pub unsafe fn GetSourceGeometry(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 023f4a2753..0b9a84a295 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 @@ -11,22 +11,22 @@ where #[inline] pub unsafe fn DxcCreateInstance2(pmalloc: P0, rclsid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - DxcCreateInstance2(pmalloc.into_param().abi(), 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__)) } windows_core::imp::define_interface!(IDxcAssembler, IDxcAssembler_Vtbl, 0x091f7a26_1c1f_4948_904b_e6e3a8a771d5); windows_core::imp::interface_hierarchy!(IDxcAssembler, windows_core::IUnknown); impl IDxcAssembler { pub unsafe fn AssembleToContainer(&self, pshader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleToContainer)(windows_core::Interface::as_raw(self), pshader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AssembleToContainer)(windows_core::Interface::as_raw(self), pshader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -123,30 +123,30 @@ windows_core::imp::interface_hierarchy!(IDxcCompiler, windows_core::IUnknown); impl IDxcCompiler { pub unsafe fn Compile(&self, psource: P0, psourcename: P1, pentrypoint: P2, ptargetprofile: P3, parguments: Option<&[windows_core::PCWSTR]>, pdefines: &[DxcDefine], pincludehandler: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Compile)(windows_core::Interface::as_raw(self), psource.into_param().abi(), psourcename.into_param().abi(), pentrypoint.into_param().abi(), ptargetprofile.into_param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Compile)(windows_core::Interface::as_raw(self), psource.param().abi(), psourcename.param().abi(), pentrypoint.param().abi(), ptargetprofile.param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Preprocess(&self, psource: P0, psourcename: P1, parguments: Option<&[windows_core::PCWSTR]>, pdefines: &[DxcDefine], pincludehandler: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Preprocess)(windows_core::Interface::as_raw(self), psource.into_param().abi(), psourcename.into_param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Preprocess)(windows_core::Interface::as_raw(self), psource.param().abi(), psourcename.param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Disassemble(&self, psource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), psource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Disassemble)(windows_core::Interface::as_raw(self), psource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -161,50 +161,50 @@ windows_core::imp::interface_hierarchy!(IDxcCompiler2, windows_core::IUnknown, I impl IDxcCompiler2 { pub unsafe fn Compile(&self, psource: P0, psourcename: P1, pentrypoint: P2, ptargetprofile: P3, parguments: Option<&[windows_core::PCWSTR]>, pdefines: &[DxcDefine], pincludehandler: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compile)(windows_core::Interface::as_raw(self), psource.into_param().abi(), psourcename.into_param().abi(), pentrypoint.into_param().abi(), ptargetprofile.into_param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Compile)(windows_core::Interface::as_raw(self), psource.param().abi(), psourcename.param().abi(), pentrypoint.param().abi(), ptargetprofile.param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Preprocess(&self, psource: P0, psourcename: P1, parguments: Option<&[windows_core::PCWSTR]>, pdefines: &[DxcDefine], pincludehandler: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Preprocess)(windows_core::Interface::as_raw(self), psource.into_param().abi(), psourcename.into_param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Preprocess)(windows_core::Interface::as_raw(self), psource.param().abi(), psourcename.param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), pincludehandler.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Disassemble(&self, psource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Disassemble)(windows_core::Interface::as_raw(self), psource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Disassemble)(windows_core::Interface::as_raw(self), psource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CompileWithDebug(&self, psource: P0, psourcename: P1, pentrypoint: P2, ptargetprofile: P3, parguments: Option<&[windows_core::PCWSTR]>, pdefines: &[DxcDefine], pincludehandler: P4, ppresult: *mut Option, ppdebugblobname: Option<*mut windows_core::PWSTR>, ppdebugblob: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { (windows_core::Interface::vtable(self).CompileWithDebug)( windows_core::Interface::as_raw(self), - psource.into_param().abi(), - psourcename.into_param().abi(), - pentrypoint.into_param().abi(), - ptargetprofile.into_param().abi(), + psource.param().abi(), + psourcename.param().abi(), + pentrypoint.param().abi(), + ptargetprofile.param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), - pincludehandler.into_param().abi(), + pincludehandler.param().abi(), core::mem::transmute(ppresult), core::mem::transmute(ppdebugblobname.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdebugblob.unwrap_or(std::ptr::null_mut())), @@ -222,11 +222,11 @@ windows_core::imp::interface_hierarchy!(IDxcCompiler3, windows_core::IUnknown); impl IDxcCompiler3 { pub unsafe fn Compile(&self, psource: *const DxcBuffer, parguments: Option<&[windows_core::PCWSTR]>, pincludehandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (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.into_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 @@ -275,15 +275,15 @@ windows_core::imp::interface_hierarchy!(IDxcContainerBuilder, windows_core::IUnk impl IDxcContainerBuilder { pub unsafe fn Load(&self, pdxilcontainerheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pdxilcontainerheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pdxilcontainerheader.param().abi()).ok() } pub unsafe fn AddPart(&self, fourcc: u32, psource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPart)(windows_core::Interface::as_raw(self), fourcc, psource.into_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), fourcc).ok() @@ -306,9 +306,9 @@ windows_core::imp::interface_hierarchy!(IDxcContainerReflection, windows_core::I impl IDxcContainerReflection { pub unsafe fn Load(&self, pcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pcontainer.param().abi()).ok() } pub unsafe fn GetPartCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -364,10 +364,10 @@ windows_core::imp::interface_hierarchy!(IDxcIncludeHandler, windows_core::IUnkno impl IDxcIncludeHandler { pub unsafe fn LoadSource(&self, pfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadSource)(windows_core::Interface::as_raw(self), pfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadSource)(windows_core::Interface::as_raw(self), pfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -381,23 +381,23 @@ impl IDxcLibrary { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMalloc(&self, pmalloc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMalloc)(windows_core::Interface::as_raw(self), pmalloc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMalloc)(windows_core::Interface::as_raw(self), pmalloc.param().abi()).ok() } pub unsafe fn CreateBlobFromBlob(&self, pblob: P0, offset: u32, length: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobFromBlob)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), offset, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobFromFile)(windows_core::Interface::as_raw(self), pfilename.into_param().abi(), core::mem::transmute(codepage.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlobFromFile)(windows_core::Interface::as_raw(self), pfilename.param().abi(), core::mem::transmute(codepage.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBlobWithEncodingFromPinned(&self, ptext: *const core::ffi::c_void, size: u32, codepage: DXC_CP) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -410,10 +410,10 @@ impl IDxcLibrary { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateBlobWithEncodingOnMalloc(&self, ptext: *const core::ffi::c_void, pimalloc: P0, size: u32, codepage: DXC_CP) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobWithEncodingOnMalloc)(windows_core::Interface::as_raw(self), ptext, pimalloc.into_param().abi(), size, 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__ = std::mem::zeroed(); @@ -422,24 +422,24 @@ impl IDxcLibrary { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateStreamFromBlobReadOnly(&self, pblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStreamFromBlobReadOnly)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStreamFromBlobReadOnly)(windows_core::Interface::as_raw(self), pblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBlobAsUtf8(&self, pblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBlobAsUtf8)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBlobAsUtf8)(windows_core::Interface::as_raw(self), pblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBlobAsUtf16(&self, pblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBlobAsUtf16)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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__)) } } #[repr(C)] @@ -470,18 +470,18 @@ windows_core::imp::interface_hierarchy!(IDxcLinker, windows_core::IUnknown); impl IDxcLinker { pub unsafe fn RegisterLibrary(&self, plibname: P0, plib: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterLibrary)(windows_core::Interface::as_raw(self), plibname.into_param().abi(), plib.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterLibrary)(windows_core::Interface::as_raw(self), plibname.param().abi(), plib.param().abi()).ok() } pub unsafe fn Link(&self, pentryname: P0, ptargetprofile: P1, plibnames: &[windows_core::PCWSTR], parguments: Option<&[windows_core::PCWSTR]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Link)(windows_core::Interface::as_raw(self), pentryname.into_param().abi(), ptargetprofile.into_param().abi(), core::mem::transmute(plibnames.as_ptr()), plibnames.len().try_into().unwrap(), 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()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Link)(windows_core::Interface::as_raw(self), pentryname.param().abi(), ptargetprofile.param().abi(), core::mem::transmute(plibnames.as_ptr()), plibnames.len().try_into().unwrap(), 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()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -526,9 +526,9 @@ impl IDxcOptimizer { } pub unsafe fn RunOptimizer(&self, pblob: P0, ppoptions: &[windows_core::PCWSTR], poutputmodule: *mut Option, ppoutputtext: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunOptimizer)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), core::mem::transmute(ppoptions.as_ptr()), ppoptions.len().try_into().unwrap(), core::mem::transmute(poutputmodule), core::mem::transmute(ppoutputtext.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).RunOptimizer)(windows_core::Interface::as_raw(self), pblob.param().abi(), core::mem::transmute(ppoptions.as_ptr()), ppoptions.len().try_into().unwrap(), core::mem::transmute(poutputmodule), core::mem::transmute(ppoutputtext.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -576,9 +576,9 @@ windows_core::imp::interface_hierarchy!(IDxcPdbUtils, windows_core::IUnknown); impl IDxcPdbUtils { pub unsafe fn Load(&self, ppdbordxil: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppdbordxil.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppdbordxil.param().abi()).ok() } pub unsafe fn GetSourceCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -656,9 +656,9 @@ impl IDxcPdbUtils { } pub unsafe fn SetCompiler(&self, pcompiler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompiler)(windows_core::Interface::as_raw(self), pcompiler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCompiler)(windows_core::Interface::as_raw(self), pcompiler.param().abi()).ok() } pub unsafe fn CompileForFullPDB(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -669,9 +669,9 @@ impl IDxcPdbUtils { } pub unsafe fn OverrideRootSignature(&self, prootsignature: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OverrideRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OverrideRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()).ok() } } #[repr(C)] @@ -750,10 +750,10 @@ windows_core::imp::interface_hierarchy!(IDxcUtils, windows_core::IUnknown); impl IDxcUtils { pub unsafe fn CreateBlobFromBlob(&self, pblob: P0, offset: u32, length: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlobFromBlob)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), offset, 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__ = std::mem::zeroed(); @@ -762,10 +762,10 @@ impl IDxcUtils { #[cfg(feature = "Win32_System_Com")] pub unsafe fn MoveToBlob(&self, pdata: *const core::ffi::c_void, pimalloc: P0, size: u32, codepage: DXC_CP) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveToBlob)(windows_core::Interface::as_raw(self), pdata, pimalloc.into_param().abi(), size, 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__ = std::mem::zeroed(); @@ -773,18 +773,18 @@ impl IDxcUtils { } pub unsafe fn LoadFile(&self, pfilename: P0, pcodepage: Option<*const DXC_CP>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadFile)(windows_core::Interface::as_raw(self), pfilename.into_param().abi(), core::mem::transmute(pcodepage.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadFile)(windows_core::Interface::as_raw(self), pfilename.param().abi(), core::mem::transmute(pcodepage.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateReadOnlyStreamFromBlob(&self, pblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReadOnlyStreamFromBlob)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateReadOnlyStreamFromBlob)(windows_core::Interface::as_raw(self), pblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDefaultIncludeHandler(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -792,17 +792,17 @@ impl IDxcUtils { } pub unsafe fn GetBlobAsUtf8(&self, pblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBlobAsUtf8)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBlobAsUtf8)(windows_core::Interface::as_raw(self), pblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBlobAsUtf16(&self, pblob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBlobAsUtf16)(windows_core::Interface::as_raw(self), pblob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), pshader, dxcpart, pppartdata, ppartsizeinbytes).ok() @@ -812,18 +812,18 @@ impl IDxcUtils { } pub unsafe fn BuildArguments(&self, psourcename: P0, pentrypoint: P1, ptargetprofile: P2, parguments: Option<&[windows_core::PCWSTR]>, pdefines: &[DxcDefine]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BuildArguments)(windows_core::Interface::as_raw(self), psourcename.into_param().abi(), pentrypoint.into_param().abi(), ptargetprofile.into_param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BuildArguments)(windows_core::Interface::as_raw(self), psourcename.param().abi(), pentrypoint.param().abi(), ptargetprofile.param().abi(), 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()), core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPDBContents(&self, ppdbblob: P0, pphash: *mut Option, ppcontainer: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPDBContents)(windows_core::Interface::as_raw(self), ppdbblob.into_param().abi(), core::mem::transmute(pphash), core::mem::transmute(ppcontainer)).ok() + (windows_core::Interface::vtable(self).GetPDBContents)(windows_core::Interface::as_raw(self), ppdbblob.param().abi(), core::mem::transmute(pphash), core::mem::transmute(ppcontainer)).ok() } } #[repr(C)] @@ -854,10 +854,10 @@ windows_core::imp::interface_hierarchy!(IDxcValidator, windows_core::IUnknown); impl IDxcValidator { pub unsafe fn Validate(&self, pshader: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), pshader.into_param().abi(), 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)] @@ -870,17 +870,17 @@ windows_core::imp::interface_hierarchy!(IDxcValidator2, windows_core::IUnknown, impl IDxcValidator2 { pub unsafe fn Validate(&self, pshader: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Validate)(windows_core::Interface::as_raw(self), pshader.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Validate)(windows_core::Interface::as_raw(self), pshader.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ValidateWithDebug(&self, pshader: P0, flags: u32, poptdebugbitcode: Option<*const DxcBuffer>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ValidateWithDebug)(windows_core::Interface::as_raw(self), pshader.into_param().abi(), flags, core::mem::transmute(poptdebugbitcode.unwrap_or(std::ptr::null())), &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(std::ptr::null())), &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 c8b6aa7f4e..5c6cb91e13 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 @@ -1,35 +1,35 @@ #[inline] pub unsafe fn D3DCompile(psrcdata: *const core::ffi::c_void, srcdatasize: usize, psourcename: P0, pdefines: Option<*const super::D3D_SHADER_MACRO>, pinclude: P1, pentrypoint: P2, ptarget: P3, flags1: u32, flags2: u32, ppcode: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(psrcdata, srcdatasize, psourcename.into_param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.into_param().abi(), pentrypoint.into_param().abi(), ptarget.into_param().abi(), flags1, flags2, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() + D3DCompile(psrcdata, srcdatasize, psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), flags1, flags2, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn D3DCompile2(psrcdata: *const core::ffi::c_void, srcdatasize: usize, psourcename: P0, pdefines: Option<*const super::D3D_SHADER_MACRO>, pinclude: P1, pentrypoint: P2, ptarget: P3, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(psrcdata, srcdatasize, psourcename.into_param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.into_param().abi(), pentrypoint.into_param().abi(), ptarget.into_param().abi(), flags1, flags2, secondarydataflags, core::mem::transmute(psecondarydata.unwrap_or(std::ptr::null())), secondarydatasize, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() + D3DCompile2(psrcdata, srcdatasize, psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), flags1, flags2, secondarydataflags, core::mem::transmute(psecondarydata.unwrap_or(std::ptr::null())), secondarydatasize, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn D3DCompileFromFile(pfilename: P0, pdefines: Option<*const super::D3D_SHADER_MACRO>, pinclude: P1, pentrypoint: P2, ptarget: P3, flags1: u32, flags2: u32, ppcode: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.into_param().abi(), pentrypoint.into_param().abi(), ptarget.into_param().abi(), flags1, flags2, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() + D3DCompileFromFile(pfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.param().abi(), pentrypoint.param().abi(), ptarget.param().abi(), flags1, flags2, core::mem::transmute(ppcode), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn D3DCompressShaders(pshaderdata: &[D3D_SHADER_DATA], uflags: u32) -> windows_core::Result { @@ -65,29 +65,29 @@ pub unsafe fn D3DDecompressShaders(psrcdata: *const core::ffi::c_void, srcdatasi #[inline] pub unsafe fn D3DDisassemble(psrcdata: *const core::ffi::c_void, srcdatasize: usize, flags: u32, szcomments: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - D3DDisassemble(psrcdata, srcdatasize, flags, szcomments.into_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] pub unsafe fn D3DDisassemble10Effect(peffect: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - D3DDisassemble10Effect(peffect.into_param().abi(), 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: P0, startbyteoffset: usize, numinsts: usize, pfinishbyteoffset: Option<*mut usize>, ppdisassembly: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(psrcdata, srcdatasize, flags, szcomments.into_param().abi(), startbyteoffset, numinsts, core::mem::transmute(pfinishbyteoffset.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdisassembly)).ok() + D3DDisassembleRegion(psrcdata, srcdatasize, flags, szcomments.param().abi(), startbyteoffset, numinsts, core::mem::transmute(pfinishbyteoffset.unwrap_or(std::ptr::null_mut())), 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 { @@ -134,20 +134,20 @@ pub unsafe fn D3DLoadModule(psrcdata: *const core::ffi::c_void, cbsrcdatasize: u #[inline] pub unsafe fn D3DPreprocess(psrcdata: *const core::ffi::c_void, srcdatasize: usize, psourcename: P0, pdefines: Option<*const super::D3D_SHADER_MACRO>, pinclude: P1, ppcodetext: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(psrcdata, srcdatasize, psourcename.into_param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.into_param().abi(), core::mem::transmute(ppcodetext), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() + D3DPreprocess(psrcdata, srcdatasize, psourcename.param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.param().abi(), core::mem::transmute(ppcodetext), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn D3DReadFileToBlob(pfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DReadFileToBlob(pfilename : windows_core::PCWSTR, ppcontents : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - D3DReadFileToBlob(pfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3DReadFileToBlob(pfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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<()> { @@ -174,12 +174,12 @@ pub unsafe fn D3DStripShader(pshaderbytecode: *const core::ffi::c_void, bytecode #[inline] pub unsafe fn D3DWriteBlobToFile(pblob: P0, pfilename: P1, boverwrite: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DWriteBlobToFile(pblob : * mut core::ffi::c_void, pfilename : windows_core::PCWSTR, boverwrite : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); - D3DWriteBlobToFile(pblob.into_param().abi(), pfilename.into_param().abi(), boverwrite.into_param().abi()).ok() + D3DWriteBlobToFile(pblob.param().abi(), pfilename.param().abi(), boverwrite.param().abi()).ok() } pub const D3DCOMPILER_DLL_A: windows_core::PCSTR = windows_core::s!("d3dcompiler_47.dll"); pub const D3DCOMPILER_DLL_W: windows_core::PCWSTR = windows_core::w!("d3dcompiler_47.dll"); 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 c118bbe3fb..469ce236dc 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs @@ -43,9 +43,9 @@ windows_core::imp::define_interface!(ID3DInclude, ID3DInclude_Vtbl); impl ID3DInclude { pub unsafe fn Open(&self, includetype: D3D_INCLUDE_TYPE, pfilename: P0, pparentdata: *const core::ffi::c_void, ppdata: *mut *mut core::ffi::c_void, pbytes: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), includetype, pfilename.into_param().abi(), pparentdata, ppdata, pbytes).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), includetype, pfilename.param().abi(), pparentdata, ppdata, 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), pdata).ok() 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 6a9f8ad52d..6ffde55319 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs @@ -2,23 +2,23 @@ #[inline] pub unsafe fn D3D10CompileEffectFromMemory(pdata: *const core::ffi::c_void, datalength: usize, psrcfilename: P0, pdefines: Option<*const super::Direct3D::D3D_SHADER_MACRO>, pinclude: P1, hlslflags: u32, fxflags: u32, ppcompiledeffect: *mut Option, pperrors: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(pdata, datalength, psrcfilename.into_param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.into_param().abi(), hlslflags, fxflags, core::mem::transmute(ppcompiledeffect), core::mem::transmute(pperrors.unwrap_or(std::ptr::null_mut()))).ok() + D3D10CompileEffectFromMemory(pdata, datalength, psrcfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.param().abi(), hlslflags, fxflags, core::mem::transmute(ppcompiledeffect), core::mem::transmute(pperrors.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D10CompileShader(psrcdata: &[u8], pfilename: P0, pdefines: Option<*const super::Direct3D::D3D_SHADER_MACRO>, pinclude: P1, pfunctionname: P2, pprofile: P3, flags: u32, ppshader: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.into_param().abi(), pfunctionname.into_param().abi(), pprofile.into_param().abi(), flags, core::mem::transmute(ppshader), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() + D3D10CompileShader(core::mem::transmute(psrcdata.as_ptr()), psrcdata.len().try_into().unwrap(), pfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.param().abi(), pfunctionname.param().abi(), pprofile.param().abi(), flags, core::mem::transmute(ppshader), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] @@ -31,99 +31,99 @@ pub unsafe fn D3D10CreateBlob(numbytes: usize) -> windows_core::Result(padapter: P0, drivertype: D3D10_DRIVER_TYPE, software: P1, flags: u32, sdkversion: u32, ppdevice: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), drivertype, software.into_param().abi(), flags, sdkversion, core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() + D3D10CreateDevice(padapter.param().abi(), drivertype, software.param().abi(), flags, sdkversion, core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi")] #[inline] pub unsafe fn D3D10CreateDevice1(padapter: P0, drivertype: D3D10_DRIVER_TYPE, software: P1, flags: u32, hardwarelevel: D3D10_FEATURE_LEVEL1, sdkversion: u32, ppdevice: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), drivertype, software.into_param().abi(), flags, hardwarelevel, sdkversion, core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() + D3D10CreateDevice1(padapter.param().abi(), drivertype, software.param().abi(), flags, hardwarelevel, sdkversion, core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] #[inline] pub unsafe fn D3D10CreateDeviceAndSwapChain(padapter: P0, drivertype: D3D10_DRIVER_TYPE, software: P1, flags: u32, sdkversion: u32, pswapchaindesc: Option<*const super::Dxgi::DXGI_SWAP_CHAIN_DESC>, ppswapchain: Option<*mut Option>, ppdevice: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), drivertype, software.into_param().abi(), flags, sdkversion, core::mem::transmute(pswapchaindesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppswapchain.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() + D3D10CreateDeviceAndSwapChain(padapter.param().abi(), drivertype, software.param().abi(), flags, sdkversion, core::mem::transmute(pswapchaindesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppswapchain.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] #[inline] pub unsafe fn D3D10CreateDeviceAndSwapChain1(padapter: P0, drivertype: D3D10_DRIVER_TYPE, software: P1, flags: u32, hardwarelevel: D3D10_FEATURE_LEVEL1, sdkversion: u32, pswapchaindesc: Option<*const super::Dxgi::DXGI_SWAP_CHAIN_DESC>, ppswapchain: Option<*mut Option>, ppdevice: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), drivertype, software.into_param().abi(), flags, hardwarelevel, sdkversion, core::mem::transmute(pswapchaindesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppswapchain.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() + D3D10CreateDeviceAndSwapChain1(padapter.param().abi(), drivertype, software.param().abi(), flags, hardwarelevel, sdkversion, core::mem::transmute(pswapchaindesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppswapchain.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdevice.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn D3D10CreateEffectFromMemory(pdata: *const core::ffi::c_void, datalength: usize, fxflags: u32, pdevice: P0, peffectpool: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - D3D10CreateEffectFromMemory(pdata, datalength, fxflags, pdevice.into_param().abi(), peffectpool.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - D3D10CreateEffectPoolFromMemory(pdata, datalength, fxflags, pdevice.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - D3D10CreateStateBlock(pdevice.into_param().abi(), 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] pub unsafe fn D3D10DisassembleEffect(peffect: P0, enablecolorcode: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10DisassembleEffect(peffect : * mut core::ffi::c_void, enablecolorcode : super::super::Foundation:: BOOL, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - D3D10DisassembleEffect(peffect.into_param().abi(), enablecolorcode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10DisassembleEffect(peffect.param().abi(), enablecolorcode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D10DisassembleShader(pshader: *const core::ffi::c_void, bytecodelength: usize, enablecolorcode: P0, pcomments: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - D3D10DisassembleShader(pshader, bytecodelength, enablecolorcode.into_param().abi(), pcomments.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + D3D10DisassembleShader(pshader, bytecodelength, enablecolorcode.param().abi(), pcomments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn D3D10GetGeometryShaderProfile(pdevice: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10GetGeometryShaderProfile(pdevice : * mut core::ffi::c_void) -> windows_core::PCSTR); - D3D10GetGeometryShaderProfile(pdevice.into_param().abi()) + D3D10GetGeometryShaderProfile(pdevice.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] @@ -149,10 +149,10 @@ pub unsafe fn D3D10GetOutputSignatureBlob(pshaderbytecode: *const core::ffi::c_v #[inline] pub unsafe fn D3D10GetPixelShaderProfile(pdevice: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10GetPixelShaderProfile(pdevice : * mut core::ffi::c_void) -> windows_core::PCSTR); - D3D10GetPixelShaderProfile(pdevice.into_param().abi()) + D3D10GetPixelShaderProfile(pdevice.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] @@ -164,20 +164,20 @@ pub unsafe fn D3D10GetShaderDebugInfo(pshaderbytecode: *const core::ffi::c_void, #[inline] pub unsafe fn D3D10GetVertexShaderProfile(pdevice: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10GetVertexShaderProfile(pdevice : * mut core::ffi::c_void) -> windows_core::PCSTR); - D3D10GetVertexShaderProfile(pdevice.into_param().abi()) + D3D10GetVertexShaderProfile(pdevice.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] #[inline] pub unsafe fn D3D10PreprocessShader(psrcdata: &[u8], pfilename: P0, pdefines: Option<*const super::Direct3D::D3D_SHADER_MACRO>, pinclude: P1, ppshadertext: *mut Option, pperrormsgs: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("d3d10.dll" "system" fn D3D10PreprocessShader(psrcdata : windows_core::PCSTR, srcdatasize : usize, pfilename : windows_core::PCSTR, pdefines : *const super::Direct3D:: D3D_SHADER_MACRO, pinclude : * mut core::ffi::c_void, ppshadertext : *mut * mut core::ffi::c_void, pperrormsgs : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - D3D10PreprocessShader(core::mem::transmute(psrcdata.as_ptr()), psrcdata.len().try_into().unwrap(), pfilename.into_param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.into_param().abi(), core::mem::transmute(ppshadertext), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() + D3D10PreprocessShader(core::mem::transmute(psrcdata.as_ptr()), psrcdata.len().try_into().unwrap(), pfilename.param().abi(), core::mem::transmute(pdefines.unwrap_or(std::ptr::null())), pinclude.param().abi(), core::mem::transmute(ppshadertext), core::mem::transmute(pperrormsgs.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn D3D10ReflectShader(pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize) -> windows_core::Result { @@ -241,9 +241,9 @@ impl ID3D10Asynchronous { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn Begin(&self) { (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self)) @@ -284,9 +284,9 @@ impl ID3D10BlendState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_BLEND_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -315,9 +315,9 @@ impl ID3D10BlendState1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_BLEND_DESC) { (windows_core::Interface::vtable(self).base__.GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -349,9 +349,9 @@ impl ID3D10Buffer { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D10_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -399,9 +399,9 @@ impl ID3D10Counter { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn Begin(&self) { (windows_core::Interface::vtable(self).base__.Begin)(windows_core::Interface::as_raw(self)) @@ -446,9 +446,9 @@ impl ID3D10Debug { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn SetSwapChain(&self, pswapchain: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSwapChain)(windows_core::Interface::as_raw(self), pswapchain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSwapChain)(windows_core::Interface::as_raw(self), pswapchain.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetSwapChain(&self) -> windows_core::Result { @@ -494,9 +494,9 @@ impl ID3D10DepthStencilState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_DEPTH_STENCIL_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -525,9 +525,9 @@ impl ID3D10DepthStencilView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -560,18 +560,18 @@ impl ID3D10Device { } pub unsafe fn PSSetShader(&self, ppixelshader: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.into_param().abi()) + (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), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.into_param().abi()) + (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), indexcount, startindexlocation, basevertexlocation) @@ -584,9 +584,9 @@ impl ID3D10Device { } pub unsafe fn IASetInputLayout(&self, pinputlayout: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.into_param().abi()) + (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), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pstrides.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -594,9 +594,9 @@ impl ID3D10Device { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.into_param().abi(), format, 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), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) @@ -609,9 +609,9 @@ impl ID3D10Device { } pub unsafe fn GSSetShader(&self, pshader: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GSSetShader)(windows_core::Interface::as_raw(self), pshader.into_param().abi()) + (windows_core::Interface::vtable(self).GSSetShader)(windows_core::Interface::as_raw(self), pshader.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { @@ -625,10 +625,10 @@ impl ID3D10Device { } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), ppredicate.into_param().abi(), predicatevalue.into_param().abi()) + (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.param().abi()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (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()))) @@ -638,21 +638,21 @@ impl ID3D10Device { } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetRenderTargets)(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.into_param().abi()) + (windows_core::Interface::vtable(self).OMSetRenderTargets)(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()) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: &[f32; 4], samplemask: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.into_param().abi(), core::mem::transmute(blendfactor.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.into_param().abi(), 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), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -662,9 +662,9 @@ impl ID3D10Device { } pub unsafe fn RSSetState(&self, prasterizerstate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.into_param().abi()) + (windows_core::Interface::vtable(self).RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.param().abi()) } pub unsafe fn RSSetViewports(&self, pviewports: Option<&[D3D10_VIEWPORT]>) { (windows_core::Interface::vtable(self).RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviewports.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -674,49 +674,49 @@ impl ID3D10Device { } pub unsafe fn CopySubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D10_BOX>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (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(std::ptr::null()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn UpdateSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D10_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn ClearRenderTargetView(&self, prendertargetview: P0, colorrgba: &[f32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.into_param().abi(), core::mem::transmute(colorrgba.as_ptr())) + (windows_core::Interface::vtable(self).ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.param().abi(), core::mem::transmute(colorrgba.as_ptr())) } pub unsafe fn ClearDepthStencilView(&self, pdepthstencilview: P0, clearflags: u32, depth: f32, stencil: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.into_param().abi(), clearflags, depth, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.into_param().abi()) + (windows_core::Interface::vtable(self).GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, 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), 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()))) @@ -821,9 +821,9 @@ impl ID3D10Device { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_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)) @@ -852,23 +852,23 @@ impl ID3D10Device { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D10_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D10_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D10_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -930,9 +930,9 @@ impl ID3D10Device { } pub unsafe fn OpenSharedResource(&self, hresource: P0, returnedinterface: *const windows_core::GUID, ppresource: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), returnedinterface, core::mem::transmute(ppresource.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), returnedinterface, core::mem::transmute(ppresource.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetTextFilterSize(&self, width: u32, height: u32) { (windows_core::Interface::vtable(self).SetTextFilterSize)(windows_core::Interface::as_raw(self), width, height) @@ -1095,18 +1095,18 @@ impl ID3D10Device1 { } pub unsafe fn PSSetShader(&self, ppixelshader: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.DrawIndexed)(windows_core::Interface::as_raw(self), indexcount, startindexlocation, basevertexlocation) @@ -1119,9 +1119,9 @@ impl ID3D10Device1 { } pub unsafe fn IASetInputLayout(&self, pinputlayout: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pstrides.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -1129,9 +1129,9 @@ impl ID3D10Device1 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.into_param().abi(), format, offset) + (windows_core::Interface::vtable(self).base__.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).base__.DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) @@ -1144,9 +1144,9 @@ impl ID3D10Device1 { } pub unsafe fn GSSetShader(&self, pshader: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { @@ -1160,10 +1160,10 @@ impl ID3D10Device1 { } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.into_param().abi(), predicatevalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.param().abi()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.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()))) @@ -1173,21 +1173,21 @@ impl ID3D10Device1 { } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OMSetRenderTargets)(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.into_param().abi()) + (windows_core::Interface::vtable(self).base__.OMSetRenderTargets)(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()) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: &[f32; 4], samplemask: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.into_param().abi(), core::mem::transmute(blendfactor.as_ptr()), samplemask) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.into_param().abi(), stencilref) + (windows_core::Interface::vtable(self).base__.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).base__.SOSetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -1197,9 +1197,9 @@ impl ID3D10Device1 { } pub unsafe fn RSSetState(&self, prasterizerstate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.param().abi()) } pub unsafe fn RSSetViewports(&self, pviewports: Option<&[D3D10_VIEWPORT]>) { (windows_core::Interface::vtable(self).base__.RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviewports.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -1209,49 +1209,49 @@ impl ID3D10Device1 { } pub unsafe fn CopySubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D10_BOX>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn UpdateSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D10_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn ClearRenderTargetView(&self, prendertargetview: P0, colorrgba: &[f32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.into_param().abi(), core::mem::transmute(colorrgba.as_ptr())) + (windows_core::Interface::vtable(self).base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.param().abi(), core::mem::transmute(colorrgba.as_ptr())) } pub unsafe fn ClearDepthStencilView(&self, pdepthstencilview: P0, clearflags: u32, depth: f32, stencil: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.into_param().abi(), clearflags, depth, stencil) + (windows_core::Interface::vtable(self).base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), clearflags, depth, stencil) } pub unsafe fn GenerateMips(&self, pshaderresourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.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).base__.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()))) @@ -1356,9 +1356,9 @@ impl ID3D10Device1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -1387,23 +1387,23 @@ impl ID3D10Device1 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D10_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D10_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D10_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -1465,9 +1465,9 @@ impl ID3D10Device1 { } pub unsafe fn OpenSharedResource(&self, hresource: P0, returnedinterface: *const windows_core::GUID, ppresource: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), returnedinterface, core::mem::transmute(ppresource.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), returnedinterface, core::mem::transmute(ppresource.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetTextFilterSize(&self, width: u32, height: u32) { (windows_core::Interface::vtable(self).base__.SetTextFilterSize)(windows_core::Interface::as_raw(self), width, height) @@ -1478,9 +1478,9 @@ impl ID3D10Device1 { #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateShaderResourceView1(&self, presource: P0, pdesc: Option<*const D3D10_SHADER_RESOURCE_VIEW_DESC1>, ppsrview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).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), pblendstatedesc, core::mem::transmute(ppblendstate.unwrap_or(std::ptr::null_mut()))).ok() @@ -1517,9 +1517,9 @@ impl ID3D10DeviceChild { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D10DeviceChild {} @@ -1553,33 +1553,33 @@ impl ID3D10Effect { } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (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), index) } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetVariableBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (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), index) } pub unsafe fn GetTechniqueByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTechniqueByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetTechniqueByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn Optimize(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Optimize)(windows_core::Interface::as_raw(self)).ok() @@ -1624,24 +1624,24 @@ impl ID3D10EffectBlendVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -1727,24 +1727,24 @@ impl ID3D10EffectConstantBuffer { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -1799,9 +1799,9 @@ impl ID3D10EffectConstantBuffer { } pub unsafe fn SetConstantBuffer(&self, pconstantbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConstantBuffer)(windows_core::Interface::as_raw(self), pconstantbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConstantBuffer)(windows_core::Interface::as_raw(self), pconstantbuffer.param().abi()).ok() } pub unsafe fn GetConstantBuffer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1809,9 +1809,9 @@ impl ID3D10EffectConstantBuffer { } pub unsafe fn SetTextureBuffer(&self, ptexturebuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextureBuffer)(windows_core::Interface::as_raw(self), ptexturebuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextureBuffer)(windows_core::Interface::as_raw(self), ptexturebuffer.param().abi()).ok() } pub unsafe fn GetTextureBuffer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1845,24 +1845,24 @@ impl ID3D10EffectDepthStencilVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -1948,24 +1948,24 @@ impl ID3D10EffectDepthStencilViewVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2020,9 +2020,9 @@ impl ID3D10EffectDepthStencilViewVariable { } pub unsafe fn SetDepthStencil(&self, presource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDepthStencil)(windows_core::Interface::as_raw(self), presource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDepthStencil)(windows_core::Interface::as_raw(self), presource.param().abi()).ok() } pub unsafe fn GetDepthStencil(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2062,24 +2062,24 @@ impl ID3D10EffectMatrixVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2193,9 +2193,9 @@ impl ID3D10EffectPass { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (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), flags).ok() @@ -2249,24 +2249,24 @@ impl ID3D10EffectRasterizerVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2352,24 +2352,24 @@ impl ID3D10EffectRenderTargetViewVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2424,9 +2424,9 @@ impl ID3D10EffectRenderTargetViewVariable { } pub unsafe fn SetRenderTarget(&self, presource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRenderTarget)(windows_core::Interface::as_raw(self), presource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRenderTarget)(windows_core::Interface::as_raw(self), presource.param().abi()).ok() } pub unsafe fn GetRenderTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2466,24 +2466,24 @@ impl ID3D10EffectSamplerVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2569,24 +2569,24 @@ impl ID3D10EffectScalarVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2667,9 +2667,9 @@ impl ID3D10EffectScalarVariable { } pub unsafe fn SetBool(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn GetBool(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2717,24 +2717,24 @@ impl ID3D10EffectShaderResourceVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2789,9 +2789,9 @@ impl ID3D10EffectShaderResourceVariable { } pub unsafe fn SetResource(&self, presource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResource)(windows_core::Interface::as_raw(self), presource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetResource)(windows_core::Interface::as_raw(self), presource.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2831,24 +2831,24 @@ impl ID3D10EffectShaderVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -2960,24 +2960,24 @@ impl ID3D10EffectStringVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -3059,18 +3059,18 @@ impl ID3D10EffectTechnique { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (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), index) } pub unsafe fn GetPassByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPassByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetPassByName)(windows_core::Interface::as_raw(self), name.param().abi()) } 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), pstateblockmask).ok() @@ -3102,15 +3102,15 @@ impl ID3D10EffectType { } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberTypeBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMemberTypeBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (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), index) @@ -3150,24 +3150,24 @@ impl ID3D10EffectVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (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), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (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), index) @@ -3268,24 +3268,24 @@ impl ID3D10EffectVectorVariable { } pub unsafe fn GetAnnotationByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetAnnotationByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberByIndex(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetMemberByIndex)(windows_core::Interface::as_raw(self), index) } pub unsafe fn GetMemberByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberByName)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetMemberBySemantic(&self, semantic: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetMemberBySemantic)(windows_core::Interface::as_raw(self), semantic.param().abi()) } pub unsafe fn GetElement(&self, index: u32) -> Option { (windows_core::Interface::vtable(self).base__.GetElement)(windows_core::Interface::as_raw(self), index) @@ -3409,9 +3409,9 @@ impl ID3D10GeometryShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D10GeometryShader {} @@ -3500,33 +3500,33 @@ impl ID3D10InfoQueue { } pub unsafe fn AddMessage(&self, category: D3D10_MESSAGE_CATEGORY, severity: D3D10_MESSAGE_SEVERITY, id: D3D10_MESSAGE_ID, pdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.param().abi()).ok() } pub unsafe fn SetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.param().abi()).ok() } pub unsafe fn SetBreakOnID(&self, id: D3D10_MESSAGE_ID, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.param().abi()).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), category) @@ -3539,9 +3539,9 @@ impl ID3D10InfoQueue { } pub unsafe fn SetMuteDebugOutput(&self, bmute: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into_param().abi()) + (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.param().abi()) } pub unsafe fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self)) @@ -3604,9 +3604,9 @@ impl ID3D10InputLayout { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D10InputLayout {} @@ -3626,9 +3626,9 @@ impl ID3D10Multithread { } pub unsafe fn SetMultithreadProtected(&self, bmtprotect: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultithreadProtected)(windows_core::Interface::as_raw(self), bmtprotect.into_param().abi()) + (windows_core::Interface::vtable(self).SetMultithreadProtected)(windows_core::Interface::as_raw(self), bmtprotect.param().abi()) } pub unsafe fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetMultithreadProtected)(windows_core::Interface::as_raw(self)) @@ -3660,9 +3660,9 @@ impl ID3D10PixelShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D10PixelShader {} @@ -3687,9 +3687,9 @@ impl ID3D10Predicate { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn Begin(&self) { (windows_core::Interface::vtable(self).base__.base__.Begin)(windows_core::Interface::as_raw(self)) @@ -3731,9 +3731,9 @@ impl ID3D10Query { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn Begin(&self) { (windows_core::Interface::vtable(self).base__.Begin)(windows_core::Interface::as_raw(self)) @@ -3776,9 +3776,9 @@ impl ID3D10RasterizerState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_RASTERIZER_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -3807,9 +3807,9 @@ impl ID3D10RenderTargetView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3847,9 +3847,9 @@ impl ID3D10Resource { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D10_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -3888,9 +3888,9 @@ impl ID3D10SamplerState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_SAMPLER_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -3915,9 +3915,9 @@ impl ID3D10ShaderReflection { } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { @@ -3968,9 +3968,9 @@ impl ID3D10ShaderReflection1 { } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { @@ -3986,16 +3986,16 @@ impl ID3D10ShaderReflection1 { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDescByName(&self, name: P0, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), pdesc).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.param().abi(), pdesc).ok() } pub unsafe fn GetMovInstructionCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4077,9 +4077,9 @@ impl ID3D10ShaderReflectionConstantBuffer { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } } unsafe impl Send for ID3D10ShaderReflectionConstantBuffer {} @@ -4104,9 +4104,9 @@ impl ID3D10ShaderReflectionType { } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (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), index) @@ -4156,9 +4156,9 @@ impl ID3D10ShaderResourceView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4196,9 +4196,9 @@ impl ID3D10ShaderResourceView1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4256,9 +4256,9 @@ windows_core::imp::interface_hierarchy!(ID3D10SwitchToRef, windows_core::IUnknow impl ID3D10SwitchToRef { pub unsafe fn SetUseRef(&self, useref: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseRef)(windows_core::Interface::as_raw(self), useref.into_param().abi()) + (windows_core::Interface::vtable(self).SetUseRef)(windows_core::Interface::as_raw(self), useref.param().abi()) } pub unsafe fn GetUseRef(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetUseRef)(windows_core::Interface::as_raw(self)) @@ -4288,9 +4288,9 @@ impl ID3D10Texture1D { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D10_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -4342,9 +4342,9 @@ impl ID3D10Texture2D { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D10_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -4397,9 +4397,9 @@ impl ID3D10Texture3D { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D10_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -4452,9 +4452,9 @@ impl ID3D10VertexShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D10VertexShader {} @@ -4479,9 +4479,9 @@ impl ID3D10View { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 25238bfd3b..d1c9bf95b6 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs @@ -2,24 +2,24 @@ #[inline] pub unsafe fn D3D11CreateDevice(padapter: P0, drivertype: super::Direct3D::D3D_DRIVER_TYPE, software: P1, flags: D3D11_CREATE_DEVICE_FLAG, pfeaturelevels: Option<&[super::Direct3D::D3D_FEATURE_LEVEL]>, sdkversion: u32, ppdevice: Option<*mut Option>, pfeaturelevel: Option<*mut super::Direct3D::D3D_FEATURE_LEVEL>, ppimmediatecontext: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), drivertype, software.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(pfeaturelevel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppimmediatecontext.unwrap_or(std::ptr::null_mut()))).ok() + D3D11CreateDevice(padapter.param().abi(), drivertype, software.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(pfeaturelevel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppimmediatecontext.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] #[inline] pub unsafe fn D3D11CreateDeviceAndSwapChain(padapter: P0, drivertype: super::Direct3D::D3D_DRIVER_TYPE, software: P1, flags: D3D11_CREATE_DEVICE_FLAG, pfeaturelevels: Option<&[super::Direct3D::D3D_FEATURE_LEVEL]>, sdkversion: u32, pswapchaindesc: Option<*const super::Dxgi::DXGI_SWAP_CHAIN_DESC>, ppswapchain: Option<*mut Option>, ppdevice: Option<*mut Option>, pfeaturelevel: Option<*mut super::Direct3D::D3D_FEATURE_LEVEL>, ppimmediatecontext: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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.into_param().abi(), + padapter.param().abi(), drivertype, - software.into_param().abi(), + software.param().abi(), 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()), @@ -36,85 +36,85 @@ where #[inline] pub unsafe fn D3DDisassemble11Trace(psrcdata: *const core::ffi::c_void, srcdatasize: usize, ptrace: P0, startstep: u32, numsteps: u32, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - D3DDisassemble11Trace(psrcdata, srcdatasize, ptrace.into_param().abi(), startstep, numsteps, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pdesc, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT(pdevicecontext.param().abi(), pdesc, flags, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), x, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT1DComplex(pdevicecontext.param().abi(), x, flags, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), x, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT1DReal(pdevicecontext.param().abi(), x, flags, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), x, y, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT2DComplex(pdevicecontext.param().abi(), x, y, flags, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), x, y, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT2DReal(pdevicecontext.param().abi(), x, y, flags, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), x, y, z, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT3DComplex(pdevicecontext.param().abi(), x, y, z, flags, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), x, y, z, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() + D3DX11CreateFFT3DReal(pdevicecontext.param().abi(), x, y, z, flags, pbufferinfo, core::mem::transmute(ppfft)).ok() } #[inline] pub unsafe fn D3DX11CreateScan(pdevicecontext: P0, maxelementscansize: u32, maxscancount: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - D3DX11CreateScan(pdevicecontext.into_param().abi(), maxelementscansize, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - D3DX11CreateSegmentedScan(pdevicecontext.into_param().abi(), 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__)) } windows_core::imp::define_interface!(ID3D11Asynchronous, ID3D11Asynchronous_Vtbl, 0x4b35d0cd_1e15_4258_9c98_1b1333f6dd3b); windows_core::imp::interface_hierarchy!(ID3D11Asynchronous, windows_core::IUnknown, ID3D11DeviceChild); @@ -132,9 +132,9 @@ impl ID3D11Asynchronous { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDataSize(&self) -> u32 { (windows_core::Interface::vtable(self).GetDataSize)(windows_core::Interface::as_raw(self)) @@ -163,9 +163,9 @@ impl ID3D11AuthenticatedChannel { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetCertificateSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -205,9 +205,9 @@ impl ID3D11BlendState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_BLEND_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -236,9 +236,9 @@ impl ID3D11BlendState1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_BLEND_DESC) { (windows_core::Interface::vtable(self).base__.GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -270,9 +270,9 @@ impl ID3D11Buffer { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D11_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -312,9 +312,9 @@ impl ID3D11ClassInstance { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetClassLinkage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -357,23 +357,23 @@ impl ID3D11ClassLinkage { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetClassInstance(&self, pclassinstancename: P0, instanceindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClassInstance)(windows_core::Interface::as_raw(self), pclassinstancename.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateClassInstance)(windows_core::Interface::as_raw(self), pclasstypename.into_param().abi(), constantbufferoffset, constantvectoroffset, textureoffset, 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__)) } } unsafe impl Send for ID3D11ClassLinkage {} @@ -400,9 +400,9 @@ impl ID3D11CommandList { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetContextFlags(&self) -> u32 { (windows_core::Interface::vtable(self).GetContextFlags)(windows_core::Interface::as_raw(self)) @@ -431,9 +431,9 @@ impl ID3D11ComputeShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11ComputeShader {} @@ -458,9 +458,9 @@ impl ID3D11Counter { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDataSize(&self) -> u32 { (windows_core::Interface::vtable(self).base__.GetDataSize)(windows_core::Interface::as_raw(self)) @@ -494,9 +494,9 @@ impl ID3D11CryptoSession { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetCryptoType(&self) -> windows_core::GUID { let mut result__ = std::mem::zeroed(); @@ -550,9 +550,9 @@ impl ID3D11Debug { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn SetSwapChain(&self, pswapchain: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSwapChain)(windows_core::Interface::as_raw(self), pswapchain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSwapChain)(windows_core::Interface::as_raw(self), pswapchain.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn GetSwapChain(&self) -> windows_core::Result { @@ -561,18 +561,18 @@ impl ID3D11Debug { } pub unsafe fn ValidateContext(&self, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidateContext)(windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() + (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), flags).ok() } pub unsafe fn ValidateContextForDispatch(&self, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidateContextForDispatch)(windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ValidateContextForDispatch)(windows_core::Interface::as_raw(self), pcontext.param().abi()).ok() } } unsafe impl Send for ID3D11Debug {} @@ -612,9 +612,9 @@ impl ID3D11DepthStencilState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_DEPTH_STENCIL_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -643,9 +643,9 @@ impl ID3D11DepthStencilView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -688,30 +688,30 @@ impl ID3D11Device { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pdesc: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC>, ppuaview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D11_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D11_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D11_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -719,19 +719,19 @@ impl ID3D11Device { } pub unsafe fn CreateVertexShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppvertexshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShaderWithStreamOutput(&self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D11_SO_DECLARATION_ENTRY]>, pbufferstrides: Option<&[u32]>, rasterizedstream: u32, pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).CreateGeometryShaderWithStreamOutput)( windows_core::Interface::as_raw(self), @@ -742,34 +742,34 @@ impl ID3D11Device { 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()), rasterizedstream, - pclasslinkage.into_param().abi(), + pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut())), ) .ok() } pub unsafe fn CreatePixelShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pppixelshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateHullShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pphullshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateDomainShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppdomainshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateComputeShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppcomputeshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateClassLinkage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -801,10 +801,10 @@ impl ID3D11Device { } pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 { @@ -835,9 +835,9 @@ impl ID3D11Device { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_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 { @@ -961,30 +961,30 @@ impl ID3D11Device1 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pdesc: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC>, ppuaview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D11_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D11_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D11_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -992,19 +992,19 @@ impl ID3D11Device1 { } pub unsafe fn CreateVertexShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppvertexshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShaderWithStreamOutput(&self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D11_SO_DECLARATION_ENTRY]>, pbufferstrides: Option<&[u32]>, rasterizedstream: u32, pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).base__.CreateGeometryShaderWithStreamOutput)( windows_core::Interface::as_raw(self), @@ -1015,34 +1015,34 @@ impl ID3D11Device1 { 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()), rasterizedstream, - pclasslinkage.into_param().abi(), + pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut())), ) .ok() } pub unsafe fn CreatePixelShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pppixelshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateHullShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pphullshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateDomainShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppdomainshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateComputeShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppcomputeshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateClassLinkage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1074,10 +1074,10 @@ impl ID3D11Device1 { } pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 { @@ -1108,9 +1108,9 @@ impl ID3D11Device1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 { @@ -1153,19 +1153,19 @@ impl ID3D11Device1 { } pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &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.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.into_param().abi(), 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__)) } } unsafe impl Send for ID3D11Device1 {} @@ -1205,30 +1205,30 @@ impl ID3D11Device2 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pdesc: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC>, ppuaview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D11_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D11_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D11_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -1236,19 +1236,19 @@ impl ID3D11Device2 { } pub unsafe fn CreateVertexShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppvertexshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShaderWithStreamOutput(&self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D11_SO_DECLARATION_ENTRY]>, pbufferstrides: Option<&[u32]>, rasterizedstream: u32, pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).base__.base__.CreateGeometryShaderWithStreamOutput)( windows_core::Interface::as_raw(self), @@ -1259,34 +1259,34 @@ impl ID3D11Device2 { 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()), rasterizedstream, - pclasslinkage.into_param().abi(), + pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut())), ) .ok() } pub unsafe fn CreatePixelShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pppixelshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateHullShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pphullshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateDomainShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppdomainshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateComputeShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppcomputeshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateClassLinkage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1318,10 +1318,10 @@ impl ID3D11Device2 { } pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 { @@ -1352,9 +1352,9 @@ impl ID3D11Device2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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 { @@ -1397,19 +1397,19 @@ impl ID3D11Device2 { } pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.into_param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetImmediateContext2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1421,9 +1421,9 @@ impl ID3D11Device2 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, 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 { @@ -1465,30 +1465,30 @@ impl ID3D11Device3 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pdesc: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC>, ppuaview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D11_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D11_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D11_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -1496,19 +1496,19 @@ impl ID3D11Device3 { } pub unsafe fn CreateVertexShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppvertexshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShaderWithStreamOutput(&self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D11_SO_DECLARATION_ENTRY]>, pbufferstrides: Option<&[u32]>, rasterizedstream: u32, pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).base__.base__.base__.CreateGeometryShaderWithStreamOutput)( windows_core::Interface::as_raw(self), @@ -1519,34 +1519,34 @@ impl ID3D11Device3 { 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()), rasterizedstream, - pclasslinkage.into_param().abi(), + pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut())), ) .ok() } pub unsafe fn CreatePixelShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pppixelshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateHullShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pphullshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateDomainShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppdomainshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateComputeShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppcomputeshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateClassLinkage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1578,10 +1578,10 @@ impl ID3D11Device3 { } pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 { @@ -1612,9 +1612,9 @@ impl ID3D11Device3 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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 { @@ -1657,19 +1657,19 @@ impl ID3D11Device3 { } pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.into_param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetImmediateContext2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1681,9 +1681,9 @@ impl ID3D11Device3 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, 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 { @@ -1704,23 +1704,23 @@ impl ID3D11Device3 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview1.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView1(&self, presource: P0, pdesc1: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC1>, ppuaview1: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateUnorderedAccessView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateUnorderedAccessView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview1.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView1(&self, presource: P0, pdesc1: Option<*const D3D11_RENDER_TARGET_VIEW_DESC1>, pprtview1: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRenderTargetView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateRenderTargetView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview1.unwrap_or(std::ptr::null_mut()))).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), pquerydesc1, core::mem::transmute(ppquery1.unwrap_or(std::ptr::null_mut()))).ok() @@ -1735,15 +1735,15 @@ impl ID3D11Device3 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn ReadFromSubresource(&self, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: P0, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadFromSubresource)(windows_core::Interface::as_raw(self), pdstdata, dstrowpitch, dstdepthpitch, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).ReadFromSubresource)(windows_core::Interface::as_raw(self), pdstdata, dstrowpitch, dstdepthpitch, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } } unsafe impl Send for ID3D11Device3 {} @@ -1799,30 +1799,30 @@ impl ID3D11Device4 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pdesc: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC>, ppuaview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D11_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D11_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D11_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -1830,19 +1830,19 @@ impl ID3D11Device4 { } pub unsafe fn CreateVertexShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppvertexshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShaderWithStreamOutput(&self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D11_SO_DECLARATION_ENTRY]>, pbufferstrides: Option<&[u32]>, rasterizedstream: u32, pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateGeometryShaderWithStreamOutput)( windows_core::Interface::as_raw(self), @@ -1853,34 +1853,34 @@ impl ID3D11Device4 { 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()), rasterizedstream, - pclasslinkage.into_param().abi(), + pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut())), ) .ok() } pub unsafe fn CreatePixelShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pppixelshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateHullShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pphullshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateDomainShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppdomainshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateComputeShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppcomputeshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateClassLinkage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1912,10 +1912,10 @@ impl ID3D11Device4 { } pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 { @@ -1946,9 +1946,9 @@ impl ID3D11Device4 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 { @@ -1991,19 +1991,19 @@ impl ID3D11Device4 { } pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.into_param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetImmediateContext2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2015,9 +2015,9 @@ impl ID3D11Device4 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, 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 { @@ -2038,23 +2038,23 @@ impl ID3D11Device4 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview1.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView1(&self, presource: P0, pdesc1: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC1>, ppuaview1: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateUnorderedAccessView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateUnorderedAccessView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview1.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView1(&self, presource: P0, pdesc1: Option<*const D3D11_RENDER_TARGET_VIEW_DESC1>, pprtview1: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateRenderTargetView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateRenderTargetView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview1.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateQuery1(&self, pquerydesc1: *const D3D11_QUERY_DESC1, ppquery1: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CreateQuery1)(windows_core::Interface::as_raw(self), pquerydesc1, core::mem::transmute(ppquery1.unwrap_or(std::ptr::null_mut()))).ok() @@ -2069,22 +2069,22 @@ impl ID3D11Device4 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).base__.WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn ReadFromSubresource(&self, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: P0, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReadFromSubresource)(windows_core::Interface::as_raw(self), pdstdata, dstrowpitch, dstdepthpitch, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.ReadFromSubresource)(windows_core::Interface::as_raw(self), pdstdata, dstrowpitch, dstdepthpitch, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } pub unsafe fn RegisterDeviceRemovedEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDeviceRemovedEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterDeviceRemovedEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterDeviceRemoved(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).UnregisterDeviceRemoved)(windows_core::Interface::as_raw(self), dwcookie) @@ -2119,30 +2119,30 @@ impl ID3D11Device5 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pdesc: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC>, ppuaview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D11_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D11_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(ppdepthstencilview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateInputLayout(&self, pinputelementdescs: &[D3D11_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option>) -> windows_core::Result<()> { @@ -2150,19 +2150,19 @@ impl ID3D11Device5 { } pub unsafe fn CreateVertexShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppvertexshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateVertexShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppvertexshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateGeometryShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateGeometryShaderWithStreamOutput(&self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D11_SO_DECLARATION_ENTRY]>, pbufferstrides: Option<&[u32]>, rasterizedstream: u32, pclasslinkage: P0, ppgeometryshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateGeometryShaderWithStreamOutput)( windows_core::Interface::as_raw(self), @@ -2173,34 +2173,34 @@ impl ID3D11Device5 { 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()), rasterizedstream, - pclasslinkage.into_param().abi(), + pclasslinkage.param().abi(), core::mem::transmute(ppgeometryshader.unwrap_or(std::ptr::null_mut())), ) .ok() } pub unsafe fn CreatePixelShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pppixelshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePixelShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pppixelshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateHullShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, pphullshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateHullShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(pphullshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateDomainShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppdomainshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDomainShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppdomainshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateComputeShader(&self, pshaderbytecode: &[u8], pclasslinkage: P0, ppcomputeshader: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.into_param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateComputeShader)(windows_core::Interface::as_raw(self), core::mem::transmute(pshaderbytecode.as_ptr()), pshaderbytecode.len().try_into().unwrap(), pclasslinkage.param().abi(), core::mem::transmute(ppcomputeshader.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateClassLinkage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2232,10 +2232,10 @@ impl ID3D11Device5 { } pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenSharedResource)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 { @@ -2266,9 +2266,9 @@ impl ID3D11Device5 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 { @@ -2311,19 +2311,19 @@ impl ID3D11Device5 { } pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedResource1)(windows_core::Interface::as_raw(self), hresource.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.into_param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedResourceByName)(windows_core::Interface::as_raw(self), lpname.param().abi(), dwdesiredaccess, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetImmediateContext2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2335,9 +2335,9 @@ impl ID3D11Device5 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, 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 { @@ -2358,23 +2358,23 @@ impl ID3D11Device5 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateShaderResourceView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppsrview1.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView1(&self, presource: P0, pdesc1: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC1>, ppuaview1: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateUnorderedAccessView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateUnorderedAccessView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(ppuaview1.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView1(&self, presource: P0, pdesc1: Option<*const D3D11_RENDER_TARGET_VIEW_DESC1>, pprtview1: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateRenderTargetView1)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview1.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateRenderTargetView1)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc1.unwrap_or(std::ptr::null())), core::mem::transmute(pprtview1.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateQuery1(&self, pquerydesc1: *const D3D11_QUERY_DESC1, ppquery1: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CreateQuery1)(windows_core::Interface::as_raw(self), pquerydesc1, core::mem::transmute(ppquery1.unwrap_or(std::ptr::null_mut()))).ok() @@ -2389,32 +2389,32 @@ impl ID3D11Device5 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).base__.base__.WriteToSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn ReadFromSubresource(&self, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: P0, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ReadFromSubresource)(windows_core::Interface::as_raw(self), pdstdata, dstrowpitch, dstdepthpitch, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.ReadFromSubresource)(windows_core::Interface::as_raw(self), pdstdata, dstrowpitch, dstdepthpitch, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } pub unsafe fn RegisterDeviceRemovedEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterDeviceRemovedEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterDeviceRemovedEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterDeviceRemoved(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.UnregisterDeviceRemoved)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn OpenSharedFence(&self, hfence: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).OpenSharedFence)(windows_core::Interface::as_raw(self), hfence.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).OpenSharedFence)(windows_core::Interface::as_raw(self), hfence.param().abi(), &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 @@ -2447,9 +2447,9 @@ impl ID3D11DeviceChild { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11DeviceChild {} @@ -2478,9 +2478,9 @@ impl ID3D11DeviceContext { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { (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()))) @@ -2490,18 +2490,18 @@ impl ID3D11DeviceContext { } pub unsafe fn PSSetShader(&self, ppixelshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.into_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())) + (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), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.into_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())) + (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), indexcount, startindexlocation, basevertexlocation) @@ -2511,24 +2511,24 @@ impl ID3D11DeviceContext { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Map)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn Unmap(&self, presource: P0, subresource: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unmap)(windows_core::Interface::as_raw(self), presource.into_param().abi(), 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), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.into_param().abi()) + (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), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pstrides.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -2536,9 +2536,9 @@ impl ID3D11DeviceContext { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.into_param().abi(), format, 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), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) @@ -2551,9 +2551,9 @@ impl ID3D11DeviceContext { } pub unsafe fn GSSetShader(&self, pshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GSSetShader)(windows_core::Interface::as_raw(self), pshader.into_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())) + (windows_core::Interface::vtable(self).GSSetShader)(windows_core::Interface::as_raw(self), pshader.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())) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { @@ -2567,28 +2567,28 @@ impl ID3D11DeviceContext { } pub unsafe fn Begin(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn End(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn GetData(&self, pasync: P0, pdata: Option<*mut core::ffi::c_void>, datasize: u32, getdataflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), pasync.into_param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), pasync.param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), ppredicate.into_param().abi(), predicatevalue.into_param().abi()) + (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.param().abi()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (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()))) @@ -2598,27 +2598,27 @@ impl ID3D11DeviceContext { } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetRenderTargets)(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.into_param().abi()) + (windows_core::Interface::vtable(self).OMSetRenderTargets)(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()) } pub unsafe fn OMSetRenderTargetsAndUnorderedAccessViews(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: Option<*const Option>, puavinitialcounts: Option<*const u32>) where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), uavstartslot, numuavs, core::mem::transmute(ppunorderedaccessviews.unwrap_or(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) + (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(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: Option<&[f32; 4]>, samplemask: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.into_param().abi(), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.into_param().abi(), 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), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -2628,30 +2628,30 @@ impl ID3D11DeviceContext { } pub unsafe fn DrawIndexedInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), 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), threadgroupcountx, threadgroupcounty, threadgroupcountz) } pub unsafe fn DispatchIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.into_param().abi()) + (windows_core::Interface::vtable(self).RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.param().abi()) } pub unsafe fn RSSetViewports(&self, pviewports: Option<&[D3D11_VIEWPORT]>) { (windows_core::Interface::vtable(self).RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviewports.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -2661,96 +2661,96 @@ impl ID3D11DeviceContext { } pub unsafe fn CopySubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (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(std::ptr::null()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn UpdateSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn CopyStructureCount(&self, pdstbuffer: P0, dstalignedbyteoffset: u32, psrcview: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyStructureCount)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstalignedbyteoffset, psrcview.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.into_param().abi(), core::mem::transmute(colorrgba.as_ptr())) + (windows_core::Interface::vtable(self).ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.param().abi(), core::mem::transmute(colorrgba.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewUint(&self, punorderedaccessview: P0, values: &[u32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, punorderedaccessview: P0, values: &[f32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearDepthStencilView(&self, pdepthstencilview: P0, clearflags: u32, depth: f32, stencil: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.into_param().abi(), clearflags, depth, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.into_param().abi()) + (windows_core::Interface::vtable(self).GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.param().abi()) } pub unsafe fn SetResourceMinLOD(&self, presource: P0, minlod: f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, 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: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi(), restorecontextstate.into_param().abi()) + (windows_core::Interface::vtable(self).ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.param().abi(), restorecontextstate.param().abi()) } pub unsafe fn HSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HSSetShader)(windows_core::Interface::as_raw(self), phullshader.into_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())) + (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), 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()))) @@ -2763,9 +2763,9 @@ impl ID3D11DeviceContext { } pub unsafe fn DSSetShader(&self, pdomainshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DSSetShader)(windows_core::Interface::as_raw(self), pdomainshader.into_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())) + (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), 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()))) @@ -2781,9 +2781,9 @@ impl ID3D11DeviceContext { } pub unsafe fn CSSetShader(&self, pcomputeshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CSSetShader)(windows_core::Interface::as_raw(self), pcomputeshader.into_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())) + (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), 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()))) @@ -2935,9 +2935,9 @@ impl ID3D11DeviceContext { } pub unsafe fn FinishCommandList(&self, restoredeferredcontextstate: P0, ppcommandlist: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.into_param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() } } unsafe impl Send for ID3D11DeviceContext {} @@ -3085,9 +3085,9 @@ impl ID3D11DeviceContext1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.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()))) @@ -3097,18 +3097,18 @@ impl ID3D11DeviceContext1 { } pub unsafe fn PSSetShader(&self, ppixelshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.into_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())) + (windows_core::Interface::vtable(self).base__.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).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.into_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())) + (windows_core::Interface::vtable(self).base__.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).base__.DrawIndexed)(windows_core::Interface::as_raw(self), indexcount, startindexlocation, basevertexlocation) @@ -3118,24 +3118,24 @@ impl ID3D11DeviceContext1 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Map)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.Map)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Unmap(&self, presource: P0, subresource: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Unmap)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource) + (windows_core::Interface::vtable(self).base__.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).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pstrides.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -3143,9 +3143,9 @@ impl ID3D11DeviceContext1 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.into_param().abi(), format, offset) + (windows_core::Interface::vtable(self).base__.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).base__.DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) @@ -3158,9 +3158,9 @@ impl ID3D11DeviceContext1 { } pub unsafe fn GSSetShader(&self, pshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.into_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())) + (windows_core::Interface::vtable(self).base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.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())) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { @@ -3174,28 +3174,28 @@ impl ID3D11DeviceContext1 { } pub unsafe fn Begin(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Begin)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Begin)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn End(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.End)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.End)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn GetData(&self, pasync: P0, pdata: Option<*mut core::ffi::c_void>, datasize: u32, getdataflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pasync.into_param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() + (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pasync.param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.into_param().abi(), predicatevalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.param().abi()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.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()))) @@ -3205,27 +3205,27 @@ impl ID3D11DeviceContext1 { } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OMSetRenderTargets)(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.into_param().abi()) + (windows_core::Interface::vtable(self).base__.OMSetRenderTargets)(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()) } pub unsafe fn OMSetRenderTargetsAndUnorderedAccessViews(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: Option<*const Option>, puavinitialcounts: Option<*const u32>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.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.into_param().abi(), uavstartslot, numuavs, core::mem::transmute(ppunorderedaccessviews.unwrap_or(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.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(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: Option<&[f32; 4]>, samplemask: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.into_param().abi(), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), samplemask) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.into_param().abi(), stencilref) + (windows_core::Interface::vtable(self).base__.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).base__.SOSetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -3235,30 +3235,30 @@ impl ID3D11DeviceContext1 { } pub unsafe fn DrawIndexedInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn DrawInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.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).base__.Dispatch)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } pub unsafe fn DispatchIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn RSSetState(&self, prasterizerstate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.param().abi()) } pub unsafe fn RSSetViewports(&self, pviewports: Option<&[D3D11_VIEWPORT]>) { (windows_core::Interface::vtable(self).base__.RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviewports.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -3268,96 +3268,96 @@ impl ID3D11DeviceContext1 { } pub unsafe fn CopySubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn UpdateSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn CopyStructureCount(&self, pdstbuffer: P0, dstalignedbyteoffset: u32, psrcview: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyStructureCount)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstalignedbyteoffset, psrcview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.into_param().abi(), core::mem::transmute(colorrgba.as_ptr())) + (windows_core::Interface::vtable(self).base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.param().abi(), core::mem::transmute(colorrgba.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewUint(&self, punorderedaccessview: P0, values: &[u32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, punorderedaccessview: P0, values: &[f32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearDepthStencilView(&self, pdepthstencilview: P0, clearflags: u32, depth: f32, stencil: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.into_param().abi(), clearflags, depth, stencil) + (windows_core::Interface::vtable(self).base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), clearflags, depth, stencil) } pub unsafe fn GenerateMips(&self, pshaderresourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.param().abi()) } pub unsafe fn SetResourceMinLOD(&self, presource: P0, minlod: f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi(), minlod) + (windows_core::Interface::vtable(self).base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi(), minlod) } pub unsafe fn GetResourceMinLOD(&self, presource: P0) -> f32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, psrcresource.param().abi(), srcsubresource, format) } pub unsafe fn ExecuteCommandList(&self, pcommandlist: P0, restorecontextstate: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi(), restorecontextstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.param().abi(), restorecontextstate.param().abi()) } pub unsafe fn HSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.HSSetShader)(windows_core::Interface::as_raw(self), phullshader.into_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())) + (windows_core::Interface::vtable(self).base__.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).base__.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()))) @@ -3370,9 +3370,9 @@ impl ID3D11DeviceContext1 { } pub unsafe fn DSSetShader(&self, pdomainshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DSSetShader)(windows_core::Interface::as_raw(self), pdomainshader.into_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())) + (windows_core::Interface::vtable(self).base__.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).base__.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()))) @@ -3388,9 +3388,9 @@ impl ID3D11DeviceContext1 { } pub unsafe fn CSSetShader(&self, pcomputeshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CSSetShader)(windows_core::Interface::as_raw(self), pcomputeshader.into_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())) + (windows_core::Interface::vtable(self).base__.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).base__.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()))) @@ -3542,34 +3542,34 @@ impl ID3D11DeviceContext1 { } pub unsafe fn FinishCommandList(&self, restoredeferredcontextstate: P0, ppcommandlist: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.into_param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CopySubresourceRegion1(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>, copyflags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) + (windows_core::Interface::vtable(self).UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) } pub unsafe fn DiscardResource(&self, presource: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi()) } pub unsafe fn DiscardView(&self, presourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardView)(windows_core::Interface::as_raw(self), presourceview.into_param().abi()) + (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), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pfirstconstant.unwrap_or(std::ptr::null())), core::mem::transmute(pnumconstants.unwrap_or(std::ptr::null()))) @@ -3609,21 +3609,21 @@ impl ID3D11DeviceContext1 { } pub unsafe fn SwapDeviceContextState(&self, pstate: P0, pppreviousstate: Option<*mut Option>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.into_param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn ClearView(&self, pview: P0, color: &[f32; 4], prect: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearView)(windows_core::Interface::as_raw(self), pview.into_param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).ClearView)(windows_core::Interface::as_raw(self), pview.param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn DiscardView1(&self, presourceview: P0, prects: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardView1)(windows_core::Interface::as_raw(self), presourceview.into_param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).DiscardView1)(windows_core::Interface::as_raw(self), presourceview.param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } unsafe impl Send for ID3D11DeviceContext1 {} @@ -3667,9 +3667,9 @@ impl ID3D11DeviceContext2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.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()))) @@ -3679,18 +3679,18 @@ impl ID3D11DeviceContext2 { } pub unsafe fn PSSetShader(&self, ppixelshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.DrawIndexed)(windows_core::Interface::as_raw(self), indexcount, startindexlocation, basevertexlocation) @@ -3700,24 +3700,24 @@ impl ID3D11DeviceContext2 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Map)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.Map)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Unmap(&self, presource: P0, subresource: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Unmap)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pstrides.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -3725,9 +3725,9 @@ impl ID3D11DeviceContext2 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.into_param().abi(), format, offset) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) @@ -3740,9 +3740,9 @@ impl ID3D11DeviceContext2 { } pub unsafe fn GSSetShader(&self, pshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.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())) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { @@ -3756,28 +3756,28 @@ impl ID3D11DeviceContext2 { } pub unsafe fn Begin(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Begin)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.Begin)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn End(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.End)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.End)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn GetData(&self, pasync: P0, pdata: Option<*mut core::ffi::c_void>, datasize: u32, getdataflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), pasync.into_param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() + (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), pasync.param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.into_param().abi(), predicatevalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.param().abi()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.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()))) @@ -3787,27 +3787,27 @@ impl ID3D11DeviceContext2 { } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OMSetRenderTargets)(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.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.OMSetRenderTargets)(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()) } pub unsafe fn OMSetRenderTargetsAndUnorderedAccessViews(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: Option<*const Option>, puavinitialcounts: Option<*const u32>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.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.into_param().abi(), uavstartslot, numuavs, core::mem::transmute(ppunorderedaccessviews.unwrap_or(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.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(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: Option<&[f32; 4]>, samplemask: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.into_param().abi(), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), samplemask) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.into_param().abi(), stencilref) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SOSetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -3817,30 +3817,30 @@ impl ID3D11DeviceContext2 { } pub unsafe fn DrawIndexedInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn DrawInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.Dispatch)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } pub unsafe fn DispatchIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn RSSetState(&self, prasterizerstate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.param().abi()) } pub unsafe fn RSSetViewports(&self, pviewports: Option<&[D3D11_VIEWPORT]>) { (windows_core::Interface::vtable(self).base__.base__.RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviewports.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -3850,96 +3850,96 @@ impl ID3D11DeviceContext2 { } pub unsafe fn CopySubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn UpdateSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).base__.base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn CopyStructureCount(&self, pdstbuffer: P0, dstalignedbyteoffset: u32, psrcview: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyStructureCount)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstalignedbyteoffset, psrcview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.into_param().abi(), core::mem::transmute(colorrgba.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.param().abi(), core::mem::transmute(colorrgba.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewUint(&self, punorderedaccessview: P0, values: &[u32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, punorderedaccessview: P0, values: &[f32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearDepthStencilView(&self, pdepthstencilview: P0, clearflags: u32, depth: f32, stencil: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.into_param().abi(), clearflags, depth, stencil) + (windows_core::Interface::vtable(self).base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), clearflags, depth, stencil) } pub unsafe fn GenerateMips(&self, pshaderresourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.param().abi()) } pub unsafe fn SetResourceMinLOD(&self, presource: P0, minlod: f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi(), minlod) + (windows_core::Interface::vtable(self).base__.base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi(), minlod) } pub unsafe fn GetResourceMinLOD(&self, presource: P0) -> f32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, psrcresource.param().abi(), srcsubresource, format) } pub unsafe fn ExecuteCommandList(&self, pcommandlist: P0, restorecontextstate: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi(), restorecontextstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.param().abi(), restorecontextstate.param().abi()) } pub unsafe fn HSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.HSSetShader)(windows_core::Interface::as_raw(self), phullshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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()))) @@ -3952,9 +3952,9 @@ impl ID3D11DeviceContext2 { } pub unsafe fn DSSetShader(&self, pdomainshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DSSetShader)(windows_core::Interface::as_raw(self), pdomainshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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()))) @@ -3970,9 +3970,9 @@ impl ID3D11DeviceContext2 { } pub unsafe fn CSSetShader(&self, pcomputeshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CSSetShader)(windows_core::Interface::as_raw(self), pcomputeshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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()))) @@ -4124,34 +4124,34 @@ impl ID3D11DeviceContext2 { } pub unsafe fn FinishCommandList(&self, restoredeferredcontextstate: P0, ppcommandlist: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.into_param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CopySubresourceRegion1(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>, copyflags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null())), copyflags) + (windows_core::Interface::vtable(self).base__.CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) + (windows_core::Interface::vtable(self).base__.UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) } pub unsafe fn DiscardResource(&self, presource: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi()) } pub unsafe fn DiscardView(&self, presourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DiscardView)(windows_core::Interface::as_raw(self), presourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.VSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pfirstconstant.unwrap_or(std::ptr::null())), core::mem::transmute(pnumconstants.unwrap_or(std::ptr::null()))) @@ -4191,34 +4191,34 @@ impl ID3D11DeviceContext2 { } pub unsafe fn SwapDeviceContextState(&self, pstate: P0, pppreviousstate: Option<*mut Option>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.into_param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn ClearView(&self, pview: P0, color: &[f32; 4], prect: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearView)(windows_core::Interface::as_raw(self), pview.into_param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).base__.ClearView)(windows_core::Interface::as_raw(self), pview.param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn DiscardView1(&self, presourceview: P0, prects: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DiscardView1)(windows_core::Interface::as_raw(self), presourceview.into_param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).base__.DiscardView1)(windows_core::Interface::as_raw(self), presourceview.param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn UpdateTileMappings(&self, ptiledresource: P0, numtiledresourceregions: u32, ptiledresourceregionstartcoordinates: Option<*const D3D11_TILED_RESOURCE_COORDINATE>, ptiledresourceregionsizes: Option<*const D3D11_TILE_REGION_SIZE>, ptilepool: P1, numranges: u32, prangeflags: Option<*const u32>, ptilepoolstartoffsets: Option<*const u32>, prangetilecounts: Option<*const u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { (windows_core::Interface::vtable(self).UpdateTileMappings)( windows_core::Interface::as_raw(self), - ptiledresource.into_param().abi(), + ptiledresource.param().abi(), numtiledresourceregions, core::mem::transmute(ptiledresourceregionstartcoordinates.unwrap_or(std::ptr::null())), core::mem::transmute(ptiledresourceregionsizes.unwrap_or(std::ptr::null())), - ptilepool.into_param().abi(), + ptilepool.param().abi(), numranges, core::mem::transmute(prangeflags.unwrap_or(std::ptr::null())), core::mem::transmute(ptilepoolstartoffsets.unwrap_or(std::ptr::null())), @@ -4229,51 +4229,51 @@ impl ID3D11DeviceContext2 { } pub unsafe fn CopyTileMappings(&self, pdesttiledresource: P0, pdestregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, psourcetiledresource: P1, psourceregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTileMappings)(windows_core::Interface::as_raw(self), pdesttiledresource.into_param().abi(), pdestregionstartcoordinate, psourcetiledresource.into_param().abi(), psourceregionstartcoordinate, ptileregionsize, 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: P1, bufferstartoffsetinbytes: u64, flags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateTiles)(windows_core::Interface::as_raw(self), pdesttiledresource.into_param().abi(), pdesttileregionstartcoordinate, pdesttileregionsize, psourcetiledata, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResizeTilePool)(windows_core::Interface::as_raw(self), ptilepool.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TiledResourceBarrier)(windows_core::Interface::as_raw(self), ptiledresourceorviewaccessbeforebarrier.into_param().abi(), ptiledresourceorviewaccessafterbarrier.into_param().abi()) + (windows_core::Interface::vtable(self).TiledResourceBarrier)(windows_core::Interface::as_raw(self), ptiledresourceorviewaccessbeforebarrier.param().abi(), ptiledresourceorviewaccessafterbarrier.param().abi()) } pub unsafe fn IsAnnotationEnabled(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsAnnotationEnabled)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetMarkerInt(&self, plabel: P0, data: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMarkerInt)(windows_core::Interface::as_raw(self), plabel.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginEventInt)(windows_core::Interface::as_raw(self), plabel.into_param().abi(), 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)) @@ -4311,9 +4311,9 @@ impl ID3D11DeviceContext3 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.base__.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()))) @@ -4323,18 +4323,18 @@ impl ID3D11DeviceContext3 { } pub unsafe fn PSSetShader(&self, ppixelshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.DrawIndexed)(windows_core::Interface::as_raw(self), indexcount, startindexlocation, basevertexlocation) @@ -4344,24 +4344,24 @@ impl ID3D11DeviceContext3 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Map)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Map)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Unmap(&self, presource: P0, subresource: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Unmap)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pstrides.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -4369,9 +4369,9 @@ impl ID3D11DeviceContext3 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.into_param().abi(), format, offset) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) @@ -4384,9 +4384,9 @@ impl ID3D11DeviceContext3 { } pub unsafe fn GSSetShader(&self, pshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.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())) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { @@ -4400,28 +4400,28 @@ impl ID3D11DeviceContext3 { } pub unsafe fn Begin(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Begin)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.Begin)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn End(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.End)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.End)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn GetData(&self, pasync: P0, pdata: Option<*mut core::ffi::c_void>, datasize: u32, getdataflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetData)(windows_core::Interface::as_raw(self), pasync.into_param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetData)(windows_core::Interface::as_raw(self), pasync.param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.into_param().abi(), predicatevalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.param().abi()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.base__.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()))) @@ -4431,27 +4431,27 @@ impl ID3D11DeviceContext3 { } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OMSetRenderTargets)(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.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.OMSetRenderTargets)(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()) } pub unsafe fn OMSetRenderTargetsAndUnorderedAccessViews(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: Option<*const Option>, puavinitialcounts: Option<*const u32>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.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.into_param().abi(), uavstartslot, numuavs, core::mem::transmute(ppunorderedaccessviews.unwrap_or(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.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(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: Option<&[f32; 4]>, samplemask: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.into_param().abi(), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), samplemask) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.into_param().abi(), stencilref) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SOSetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -4461,30 +4461,30 @@ impl ID3D11DeviceContext3 { } pub unsafe fn DrawIndexedInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn DrawInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.Dispatch)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } pub unsafe fn DispatchIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn RSSetState(&self, prasterizerstate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.param().abi()) } pub unsafe fn RSSetViewports(&self, pviewports: Option<&[D3D11_VIEWPORT]>) { (windows_core::Interface::vtable(self).base__.base__.base__.RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviewports.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -4494,96 +4494,96 @@ impl ID3D11DeviceContext3 { } pub unsafe fn CopySubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn UpdateSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).base__.base__.base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn CopyStructureCount(&self, pdstbuffer: P0, dstalignedbyteoffset: u32, psrcview: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyStructureCount)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstalignedbyteoffset, psrcview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.into_param().abi(), core::mem::transmute(colorrgba.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.param().abi(), core::mem::transmute(colorrgba.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewUint(&self, punorderedaccessview: P0, values: &[u32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, punorderedaccessview: P0, values: &[f32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearDepthStencilView(&self, pdepthstencilview: P0, clearflags: u32, depth: f32, stencil: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.into_param().abi(), clearflags, depth, stencil) + (windows_core::Interface::vtable(self).base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), clearflags, depth, stencil) } pub unsafe fn GenerateMips(&self, pshaderresourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.param().abi()) } pub unsafe fn SetResourceMinLOD(&self, presource: P0, minlod: f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi(), minlod) + (windows_core::Interface::vtable(self).base__.base__.base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi(), minlod) } pub unsafe fn GetResourceMinLOD(&self, presource: P0) -> f32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, psrcresource.param().abi(), srcsubresource, format) } pub unsafe fn ExecuteCommandList(&self, pcommandlist: P0, restorecontextstate: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi(), restorecontextstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.param().abi(), restorecontextstate.param().abi()) } pub unsafe fn HSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.HSSetShader)(windows_core::Interface::as_raw(self), phullshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.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()))) @@ -4596,9 +4596,9 @@ impl ID3D11DeviceContext3 { } pub unsafe fn DSSetShader(&self, pdomainshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DSSetShader)(windows_core::Interface::as_raw(self), pdomainshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.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()))) @@ -4614,9 +4614,9 @@ impl ID3D11DeviceContext3 { } pub unsafe fn CSSetShader(&self, pcomputeshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CSSetShader)(windows_core::Interface::as_raw(self), pcomputeshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.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()))) @@ -4768,34 +4768,34 @@ impl ID3D11DeviceContext3 { } pub unsafe fn FinishCommandList(&self, restoredeferredcontextstate: P0, ppcommandlist: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.into_param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CopySubresourceRegion1(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>, copyflags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null())), copyflags) + (windows_core::Interface::vtable(self).base__.base__.CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) + (windows_core::Interface::vtable(self).base__.base__.UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) } pub unsafe fn DiscardResource(&self, presource: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi()) } pub unsafe fn DiscardView(&self, presourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DiscardView)(windows_core::Interface::as_raw(self), presourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.VSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pfirstconstant.unwrap_or(std::ptr::null())), core::mem::transmute(pnumconstants.unwrap_or(std::ptr::null()))) @@ -4835,34 +4835,34 @@ impl ID3D11DeviceContext3 { } pub unsafe fn SwapDeviceContextState(&self, pstate: P0, pppreviousstate: Option<*mut Option>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.into_param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.base__.SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn ClearView(&self, pview: P0, color: &[f32; 4], prect: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearView)(windows_core::Interface::as_raw(self), pview.into_param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).base__.base__.ClearView)(windows_core::Interface::as_raw(self), pview.param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn DiscardView1(&self, presourceview: P0, prects: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DiscardView1)(windows_core::Interface::as_raw(self), presourceview.into_param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).base__.base__.DiscardView1)(windows_core::Interface::as_raw(self), presourceview.param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn UpdateTileMappings(&self, ptiledresource: P0, numtiledresourceregions: u32, ptiledresourceregionstartcoordinates: Option<*const D3D11_TILED_RESOURCE_COORDINATE>, ptiledresourceregionsizes: Option<*const D3D11_TILE_REGION_SIZE>, ptilepool: P1, numranges: u32, prangeflags: Option<*const u32>, ptilepoolstartoffsets: Option<*const u32>, prangetilecounts: Option<*const u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { (windows_core::Interface::vtable(self).base__.UpdateTileMappings)( windows_core::Interface::as_raw(self), - ptiledresource.into_param().abi(), + ptiledresource.param().abi(), numtiledresourceregions, core::mem::transmute(ptiledresourceregionstartcoordinates.unwrap_or(std::ptr::null())), core::mem::transmute(ptiledresourceregionsizes.unwrap_or(std::ptr::null())), - ptilepool.into_param().abi(), + ptilepool.param().abi(), numranges, core::mem::transmute(prangeflags.unwrap_or(std::ptr::null())), core::mem::transmute(ptilepoolstartoffsets.unwrap_or(std::ptr::null())), @@ -4873,66 +4873,66 @@ impl ID3D11DeviceContext3 { } pub unsafe fn CopyTileMappings(&self, pdesttiledresource: P0, pdestregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, psourcetiledresource: P1, psourceregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTileMappings)(windows_core::Interface::as_raw(self), pdesttiledresource.into_param().abi(), pdestregionstartcoordinate, psourcetiledresource.into_param().abi(), psourceregionstartcoordinate, ptileregionsize, flags).ok() + (windows_core::Interface::vtable(self).base__.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: P1, bufferstartoffsetinbytes: u64, flags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateTiles)(windows_core::Interface::as_raw(self), pdesttiledresource.into_param().abi(), pdesttileregionstartcoordinate, pdesttileregionsize, psourcetiledata, flags) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResizeTilePool)(windows_core::Interface::as_raw(self), ptilepool.into_param().abi(), newsizeinbytes).ok() + (windows_core::Interface::vtable(self).base__.ResizeTilePool)(windows_core::Interface::as_raw(self), ptilepool.param().abi(), newsizeinbytes).ok() } pub unsafe fn TiledResourceBarrier(&self, ptiledresourceorviewaccessbeforebarrier: P0, ptiledresourceorviewaccessafterbarrier: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TiledResourceBarrier)(windows_core::Interface::as_raw(self), ptiledresourceorviewaccessbeforebarrier.into_param().abi(), ptiledresourceorviewaccessafterbarrier.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TiledResourceBarrier)(windows_core::Interface::as_raw(self), ptiledresourceorviewaccessbeforebarrier.param().abi(), ptiledresourceorviewaccessafterbarrier.param().abi()) } pub unsafe fn IsAnnotationEnabled(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.IsAnnotationEnabled)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetMarkerInt(&self, plabel: P0, data: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMarkerInt)(windows_core::Interface::as_raw(self), plabel.into_param().abi(), data) + (windows_core::Interface::vtable(self).base__.SetMarkerInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), data) } pub unsafe fn BeginEventInt(&self, plabel: P0, data: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginEventInt)(windows_core::Interface::as_raw(self), plabel.into_param().abi(), data) + (windows_core::Interface::vtable(self).base__.BeginEventInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), data) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).base__.EndEvent)(windows_core::Interface::as_raw(self)) } pub unsafe fn Flush1(&self, contexttype: D3D11_CONTEXT_TYPE, hevent: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flush1)(windows_core::Interface::as_raw(self), contexttype, hevent.into_param().abi()) + (windows_core::Interface::vtable(self).Flush1)(windows_core::Interface::as_raw(self), contexttype, hevent.param().abi()) } pub unsafe fn SetHardwareProtectionState(&self, hwprotectionenable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHardwareProtectionState)(windows_core::Interface::as_raw(self), hwprotectionenable.into_param().abi()) + (windows_core::Interface::vtable(self).SetHardwareProtectionState)(windows_core::Interface::as_raw(self), hwprotectionenable.param().abi()) } pub unsafe fn GetHardwareProtectionState(&self) -> super::super::Foundation::BOOL { let mut result__ = std::mem::zeroed(); @@ -4965,9 +4965,9 @@ impl ID3D11DeviceContext4 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.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()))) @@ -4977,18 +4977,18 @@ impl ID3D11DeviceContext4 { } pub unsafe fn PSSetShader(&self, ppixelshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.PSSetShader)(windows_core::Interface::as_raw(self), ppixelshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.VSSetShader)(windows_core::Interface::as_raw(self), pvertexshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.DrawIndexed)(windows_core::Interface::as_raw(self), indexcount, startindexlocation, basevertexlocation) @@ -4998,24 +4998,24 @@ impl ID3D11DeviceContext4 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Map)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.Map)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, maptype, mapflags, core::mem::transmute(pmappedresource.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Unmap(&self, presource: P0, subresource: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Unmap)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IASetInputLayout)(windows_core::Interface::as_raw(self), pinputlayout.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.IASetVertexBuffers)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppvertexbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pstrides.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -5023,9 +5023,9 @@ impl ID3D11DeviceContext4 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IASetIndexBuffer)(windows_core::Interface::as_raw(self), pindexbuffer.into_param().abi(), format, offset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.DrawIndexedInstanced)(windows_core::Interface::as_raw(self), indexcountperinstance, instancecount, startindexlocation, basevertexlocation, startinstancelocation) @@ -5038,9 +5038,9 @@ impl ID3D11DeviceContext4 { } pub unsafe fn GSSetShader(&self, pshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GSSetShader)(windows_core::Interface::as_raw(self), pshader.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())) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { @@ -5054,28 +5054,28 @@ impl ID3D11DeviceContext4 { } pub unsafe fn Begin(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Begin)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.Begin)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn End(&self, pasync: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.End)(windows_core::Interface::as_raw(self), pasync.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.End)(windows_core::Interface::as_raw(self), pasync.param().abi()) } pub unsafe fn GetData(&self, pasync: P0, pdata: Option<*mut core::ffi::c_void>, datasize: u32, getdataflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetData)(windows_core::Interface::as_raw(self), pasync.into_param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetData)(windows_core::Interface::as_raw(self), pasync.param().abi(), core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), datasize, getdataflags).ok() } pub unsafe fn SetPredication(&self, ppredicate: P0, predicatevalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.into_param().abi(), predicatevalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), ppredicate.param().abi(), predicatevalue.param().abi()) } pub unsafe fn GSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.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()))) @@ -5085,27 +5085,27 @@ impl ID3D11DeviceContext4 { } pub unsafe fn OMSetRenderTargets(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OMSetRenderTargets)(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.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OMSetRenderTargets)(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()) } pub unsafe fn OMSetRenderTargetsAndUnorderedAccessViews(&self, pprendertargetviews: Option<&[Option]>, pdepthstencilview: P0, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: Option<*const Option>, puavinitialcounts: Option<*const u32>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.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.into_param().abi(), uavstartslot, numuavs, core::mem::transmute(ppunorderedaccessviews.unwrap_or(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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(std::ptr::null())), core::mem::transmute(puavinitialcounts.unwrap_or(std::ptr::null()))) } pub unsafe fn OMSetBlendState(&self, pblendstate: P0, blendfactor: Option<&[f32; 4]>, samplemask: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OMSetBlendState)(windows_core::Interface::as_raw(self), pblendstate.into_param().abi(), core::mem::transmute(blendfactor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), samplemask) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OMSetDepthStencilState)(windows_core::Interface::as_raw(self), pdepthstencilstate.into_param().abi(), stencilref) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.SOSetTargets)(windows_core::Interface::as_raw(self), numbuffers, core::mem::transmute(ppsotargets.unwrap_or(std::ptr::null())), core::mem::transmute(poffsets.unwrap_or(std::ptr::null()))) @@ -5115,30 +5115,30 @@ impl ID3D11DeviceContext4 { } pub unsafe fn DrawIndexedInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawIndexedInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn DrawInstancedIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DrawInstancedIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.Dispatch)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } pub unsafe fn DispatchIndirect(&self, pbufferforargs: P0, alignedbyteoffsetforargs: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.into_param().abi(), alignedbyteoffsetforargs) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DispatchIndirect)(windows_core::Interface::as_raw(self), pbufferforargs.param().abi(), alignedbyteoffsetforargs) } pub unsafe fn RSSetState(&self, prasterizerstate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RSSetState)(windows_core::Interface::as_raw(self), prasterizerstate.param().abi()) } pub unsafe fn RSSetViewports(&self, pviewports: Option<&[D3D11_VIEWPORT]>) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.RSSetViewports)(windows_core::Interface::as_raw(self), pviewports.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pviewports.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) @@ -5148,96 +5148,96 @@ impl ID3D11DeviceContext4 { } pub unsafe fn CopySubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopySubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null()))) } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn UpdateSubresource(&self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.UpdateSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch) } pub unsafe fn CopyStructureCount(&self, pdstbuffer: P0, dstalignedbyteoffset: u32, psrcview: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyStructureCount)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstalignedbyteoffset, psrcview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.into_param().abi(), core::mem::transmute(colorrgba.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearRenderTargetView)(windows_core::Interface::as_raw(self), prendertargetview.param().abi(), core::mem::transmute(colorrgba.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewUint(&self, punorderedaccessview: P0, values: &[u32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, punorderedaccessview: P0, values: &[f32; 4]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.into_param().abi(), core::mem::transmute(values.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), punorderedaccessview.param().abi(), core::mem::transmute(values.as_ptr())) } pub unsafe fn ClearDepthStencilView(&self, pdepthstencilview: P0, clearflags: u32, depth: f32, stencil: u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.into_param().abi(), clearflags, depth, stencil) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), pdepthstencilview.param().abi(), clearflags, depth, stencil) } pub unsafe fn GenerateMips(&self, pshaderresourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GenerateMips)(windows_core::Interface::as_raw(self), pshaderresourceview.param().abi()) } pub unsafe fn SetResourceMinLOD(&self, presource: P0, minlod: f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi(), minlod) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi(), minlod) } pub unsafe fn GetResourceMinLOD(&self, presource: P0) -> f32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetResourceMinLOD)(windows_core::Interface::as_raw(self), presource.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresource(&self, pdstresource: P0, dstsubresource: u32, psrcresource: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, psrcresource.param().abi(), srcsubresource, format) } pub unsafe fn ExecuteCommandList(&self, pcommandlist: P0, restorecontextstate: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi(), restorecontextstate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteCommandList)(windows_core::Interface::as_raw(self), pcommandlist.param().abi(), restorecontextstate.param().abi()) } pub unsafe fn HSSetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&[Option]>) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.HSSetShader)(windows_core::Interface::as_raw(self), phullshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.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()))) @@ -5250,9 +5250,9 @@ impl ID3D11DeviceContext4 { } pub unsafe fn DSSetShader(&self, pdomainshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DSSetShader)(windows_core::Interface::as_raw(self), pdomainshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.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()))) @@ -5268,9 +5268,9 @@ impl ID3D11DeviceContext4 { } pub unsafe fn CSSetShader(&self, pcomputeshader: P0, ppclassinstances: Option<&[Option]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CSSetShader)(windows_core::Interface::as_raw(self), pcomputeshader.into_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())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.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()))) @@ -5422,34 +5422,34 @@ impl ID3D11DeviceContext4 { } pub unsafe fn FinishCommandList(&self, restoredeferredcontextstate: P0, ppcommandlist: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.into_param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FinishCommandList)(windows_core::Interface::as_raw(self), restoredeferredcontextstate.param().abi(), core::mem::transmute(ppcommandlist.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CopySubresourceRegion1(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: P1, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>, copyflags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null())), copyflags) + (windows_core::Interface::vtable(self).base__.base__.base__.CopySubresourceRegion1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, dstz, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcbox.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) + (windows_core::Interface::vtable(self).base__.base__.base__.UpdateSubresource1)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, core::mem::transmute(pdstbox.unwrap_or(std::ptr::null())), psrcdata, srcrowpitch, srcdepthpitch, copyflags) } pub unsafe fn DiscardResource(&self, presource: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi()) } pub unsafe fn DiscardView(&self, presourceview: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DiscardView)(windows_core::Interface::as_raw(self), presourceview.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.VSSetConstantBuffers1)(windows_core::Interface::as_raw(self), startslot, numbuffers, core::mem::transmute(ppconstantbuffers.unwrap_or(std::ptr::null())), core::mem::transmute(pfirstconstant.unwrap_or(std::ptr::null())), core::mem::transmute(pnumconstants.unwrap_or(std::ptr::null()))) @@ -5489,34 +5489,34 @@ impl ID3D11DeviceContext4 { } pub unsafe fn SwapDeviceContextState(&self, pstate: P0, pppreviousstate: Option<*mut Option>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.into_param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.base__.base__.SwapDeviceContextState)(windows_core::Interface::as_raw(self), pstate.param().abi(), core::mem::transmute(pppreviousstate.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn ClearView(&self, pview: P0, color: &[f32; 4], prect: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearView)(windows_core::Interface::as_raw(self), pview.into_param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).base__.base__.base__.ClearView)(windows_core::Interface::as_raw(self), pview.param().abi(), core::mem::transmute(color.as_ptr()), core::mem::transmute(prect.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prect.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn DiscardView1(&self, presourceview: P0, prects: Option<&[super::super::Foundation::RECT]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DiscardView1)(windows_core::Interface::as_raw(self), presourceview.into_param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + (windows_core::Interface::vtable(self).base__.base__.base__.DiscardView1)(windows_core::Interface::as_raw(self), presourceview.param().abi(), core::mem::transmute(prects.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } pub unsafe fn UpdateTileMappings(&self, ptiledresource: P0, numtiledresourceregions: u32, ptiledresourceregionstartcoordinates: Option<*const D3D11_TILED_RESOURCE_COORDINATE>, ptiledresourceregionsizes: Option<*const D3D11_TILE_REGION_SIZE>, ptilepool: P1, numranges: u32, prangeflags: Option<*const u32>, ptilepoolstartoffsets: Option<*const u32>, prangetilecounts: Option<*const u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { (windows_core::Interface::vtable(self).base__.base__.UpdateTileMappings)( windows_core::Interface::as_raw(self), - ptiledresource.into_param().abi(), + ptiledresource.param().abi(), numtiledresourceregions, core::mem::transmute(ptiledresourceregionstartcoordinates.unwrap_or(std::ptr::null())), core::mem::transmute(ptiledresourceregionsizes.unwrap_or(std::ptr::null())), - ptilepool.into_param().abi(), + ptilepool.param().abi(), numranges, core::mem::transmute(prangeflags.unwrap_or(std::ptr::null())), core::mem::transmute(ptilepoolstartoffsets.unwrap_or(std::ptr::null())), @@ -5527,66 +5527,66 @@ impl ID3D11DeviceContext4 { } pub unsafe fn CopyTileMappings(&self, pdesttiledresource: P0, pdestregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, psourcetiledresource: P1, psourceregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTileMappings)(windows_core::Interface::as_raw(self), pdesttiledresource.into_param().abi(), pdestregionstartcoordinate, psourcetiledresource.into_param().abi(), psourceregionstartcoordinate, ptileregionsize, flags).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P1, bufferstartoffsetinbytes: u64, flags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.UpdateTiles)(windows_core::Interface::as_raw(self), pdesttiledresource.into_param().abi(), pdesttileregionstartcoordinate, pdesttileregionsize, psourcetiledata, flags) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResizeTilePool)(windows_core::Interface::as_raw(self), ptilepool.into_param().abi(), newsizeinbytes).ok() + (windows_core::Interface::vtable(self).base__.base__.ResizeTilePool)(windows_core::Interface::as_raw(self), ptilepool.param().abi(), newsizeinbytes).ok() } pub unsafe fn TiledResourceBarrier(&self, ptiledresourceorviewaccessbeforebarrier: P0, ptiledresourceorviewaccessafterbarrier: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.TiledResourceBarrier)(windows_core::Interface::as_raw(self), ptiledresourceorviewaccessbeforebarrier.into_param().abi(), ptiledresourceorviewaccessafterbarrier.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.TiledResourceBarrier)(windows_core::Interface::as_raw(self), ptiledresourceorviewaccessbeforebarrier.param().abi(), ptiledresourceorviewaccessafterbarrier.param().abi()) } pub unsafe fn IsAnnotationEnabled(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.IsAnnotationEnabled)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetMarkerInt(&self, plabel: P0, data: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMarkerInt)(windows_core::Interface::as_raw(self), plabel.into_param().abi(), data) + (windows_core::Interface::vtable(self).base__.base__.SetMarkerInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), data) } pub unsafe fn BeginEventInt(&self, plabel: P0, data: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BeginEventInt)(windows_core::Interface::as_raw(self), plabel.into_param().abi(), data) + (windows_core::Interface::vtable(self).base__.base__.BeginEventInt)(windows_core::Interface::as_raw(self), plabel.param().abi(), data) } pub unsafe fn EndEvent(&self) { (windows_core::Interface::vtable(self).base__.base__.EndEvent)(windows_core::Interface::as_raw(self)) } pub unsafe fn Flush1(&self, contexttype: D3D11_CONTEXT_TYPE, hevent: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Flush1)(windows_core::Interface::as_raw(self), contexttype, hevent.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Flush1)(windows_core::Interface::as_raw(self), contexttype, hevent.param().abi()) } pub unsafe fn SetHardwareProtectionState(&self, hwprotectionenable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHardwareProtectionState)(windows_core::Interface::as_raw(self), hwprotectionenable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetHardwareProtectionState)(windows_core::Interface::as_raw(self), hwprotectionenable.param().abi()) } pub unsafe fn GetHardwareProtectionState(&self) -> super::super::Foundation::BOOL { let mut result__ = std::mem::zeroed(); @@ -5595,15 +5595,15 @@ impl ID3D11DeviceContext4 { } pub unsafe fn Signal(&self, pfence: P0, value: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), pfence.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), pfence.into_param().abi(), value).ok() + (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), pfence.param().abi(), value).ok() } } unsafe impl Send for ID3D11DeviceContext4 {} @@ -5630,9 +5630,9 @@ impl ID3D11DomainShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11DomainShader {} @@ -5657,26 +5657,26 @@ impl ID3D11Fence { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwaccess: u32, lpname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), dwaccess, lpname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent.param().abi()).ok() } } unsafe impl Send for ID3D11Fence {} @@ -5710,28 +5710,28 @@ impl ID3D11FunctionLinkingGraph { } pub unsafe fn CallFunction(&self, pmoduleinstancenamespace: P0, pmodulewithfunctionprototype: P1, pfunctionname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CallFunction)(windows_core::Interface::as_raw(self), pmoduleinstancenamespace.into_param().abi(), pmodulewithfunctionprototype.into_param().abi(), pfunctionname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CallFunction)(windows_core::Interface::as_raw(self), pmoduleinstancenamespace.param().abi(), pmodulewithfunctionprototype.param().abi(), pfunctionname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PassValue(&self, psrcnode: P0, srcparameterindex: i32, pdstnode: P1, dstparameterindex: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PassValue)(windows_core::Interface::as_raw(self), psrcnode.into_param().abi(), srcparameterindex, pdstnode.into_param().abi(), 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: P1, pdstnode: P2, dstparameterindex: i32, pdstswizzle: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PassValueWithSwizzle)(windows_core::Interface::as_raw(self), psrcnode.into_param().abi(), srcparameterindex, psrcswizzle.into_param().abi(), pdstnode.into_param().abi(), dstparameterindex, pdstswizzle.into_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<()> { @@ -5799,9 +5799,9 @@ impl ID3D11FunctionReflection { } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { @@ -5809,16 +5809,16 @@ impl ID3D11FunctionReflection { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDescByName(&self, name: P0, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), pdesc).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.param().abi(), pdesc).ok() } pub unsafe fn GetFunctionParameter(&self, parameterindex: i32) -> Option { (windows_core::Interface::vtable(self).GetFunctionParameter)(windows_core::Interface::as_raw(self), parameterindex) @@ -5861,9 +5861,9 @@ impl ID3D11GeometryShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11GeometryShader {} @@ -5888,9 +5888,9 @@ impl ID3D11HullShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11HullShader {} @@ -5979,33 +5979,33 @@ impl ID3D11InfoQueue { } pub unsafe fn AddMessage(&self, category: D3D11_MESSAGE_CATEGORY, severity: D3D11_MESSAGE_SEVERITY, id: D3D11_MESSAGE_ID, pdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.param().abi()).ok() } pub unsafe fn SetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.param().abi()).ok() } pub unsafe fn SetBreakOnID(&self, id: D3D11_MESSAGE_ID, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.param().abi()).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), category) @@ -6018,9 +6018,9 @@ impl ID3D11InfoQueue { } pub unsafe fn SetMuteDebugOutput(&self, bmute: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into_param().abi()) + (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.param().abi()) } pub unsafe fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self)) @@ -6083,9 +6083,9 @@ impl ID3D11InputLayout { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11InputLayout {} @@ -6119,17 +6119,17 @@ impl ID3D11Linker { #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn Link(&self, pentry: P0, pentryname: P1, ptargetname: P2, uflags: u32, ppshaderblob: *mut Option, pperrorbuffer: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Link)(windows_core::Interface::as_raw(self), pentry.into_param().abi(), pentryname.into_param().abi(), ptargetname.into_param().abi(), uflags, core::mem::transmute(ppshaderblob), core::mem::transmute(pperrorbuffer.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn UseLibrary(&self, plibrarymi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UseLibrary)(windows_core::Interface::as_raw(self), plibrarymi.into_param().abi()).ok() + (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), ucbufferslot, ucbufferentry).ok() @@ -6161,10 +6161,10 @@ windows_core::imp::interface_hierarchy!(ID3D11Module, windows_core::IUnknown); impl ID3D11Module { pub unsafe fn CreateInstance(&self, pnamespace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), pnamespace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for ID3D11Module {} @@ -6182,45 +6182,45 @@ impl ID3D11ModuleInstance { } pub unsafe fn BindConstantBufferByName(&self, pname: P0, udstslot: u32, cbdstoffset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindConstantBufferByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), udstslot, 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), usrcslot, udstslot, ucount).ok() } pub unsafe fn BindResourceByName(&self, pname: P0, udstslot: u32, ucount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindResourceByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), udstslot, 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), usrcslot, udstslot, ucount).ok() } pub unsafe fn BindSamplerByName(&self, pname: P0, udstslot: u32, ucount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindSamplerByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), udstslot, 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), usrcslot, udstslot, ucount).ok() } pub unsafe fn BindUnorderedAccessViewByName(&self, pname: P0, udstslot: u32, ucount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindUnorderedAccessViewByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), udstslot, 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), usrcsrvslot, udstuavslot, ucount).ok() } pub unsafe fn BindResourceAsUnorderedAccessViewByName(&self, psrvname: P0, udstuavslot: u32, ucount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindResourceAsUnorderedAccessViewByName)(windows_core::Interface::as_raw(self), psrvname.into_param().abi(), udstuavslot, ucount).ok() + (windows_core::Interface::vtable(self).BindResourceAsUnorderedAccessViewByName)(windows_core::Interface::as_raw(self), psrvname.param().abi(), udstuavslot, ucount).ok() } } unsafe impl Send for ID3D11ModuleInstance {} @@ -6250,9 +6250,9 @@ impl ID3D11Multithread { } pub unsafe fn SetMultithreadProtected(&self, bmtprotect: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultithreadProtected)(windows_core::Interface::as_raw(self), bmtprotect.into_param().abi()) + (windows_core::Interface::vtable(self).SetMultithreadProtected)(windows_core::Interface::as_raw(self), bmtprotect.param().abi()) } pub unsafe fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetMultithreadProtected)(windows_core::Interface::as_raw(self)) @@ -6284,9 +6284,9 @@ impl ID3D11PixelShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11PixelShader {} @@ -6311,9 +6311,9 @@ impl ID3D11Predicate { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDataSize(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.GetDataSize)(windows_core::Interface::as_raw(self)) @@ -6346,9 +6346,9 @@ impl ID3D11Query { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDataSize(&self) -> u32 { (windows_core::Interface::vtable(self).base__.GetDataSize)(windows_core::Interface::as_raw(self)) @@ -6382,9 +6382,9 @@ impl ID3D11Query1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDataSize(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.GetDataSize)(windows_core::Interface::as_raw(self)) @@ -6423,9 +6423,9 @@ impl ID3D11RasterizerState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_RASTERIZER_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -6454,9 +6454,9 @@ impl ID3D11RasterizerState1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_RASTERIZER_DESC) { (windows_core::Interface::vtable(self).base__.GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -6488,9 +6488,9 @@ impl ID3D11RasterizerState2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_RASTERIZER_DESC) { (windows_core::Interface::vtable(self).base__.base__.GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -6553,9 +6553,9 @@ impl ID3D11RenderTargetView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6593,9 +6593,9 @@ impl ID3D11RenderTargetView1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6637,9 +6637,9 @@ impl ID3D11Resource { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D11_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -6678,9 +6678,9 @@ impl ID3D11SamplerState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_SAMPLER_DESC) { (windows_core::Interface::vtable(self).GetDesc)(windows_core::Interface::as_raw(self), pdesc) @@ -6705,9 +6705,9 @@ impl ID3D11ShaderReflection { } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { @@ -6727,16 +6727,16 @@ impl ID3D11ShaderReflection { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDescByName(&self, name: P0, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), pdesc).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.param().abi(), pdesc).ok() } pub unsafe fn GetMovInstructionCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetMovInstructionCount)(windows_core::Interface::as_raw(self)) @@ -6832,9 +6832,9 @@ impl ID3D11ShaderReflectionConstantBuffer { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } } unsafe impl Send for ID3D11ShaderReflectionConstantBuffer {} @@ -6859,18 +6859,18 @@ impl ID3D11ShaderReflectionType { } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (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), index) } pub unsafe fn IsEqual(&self, ptype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), ptype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), ptype.param().abi()).ok() } pub unsafe fn GetSubType(&self) -> Option { (windows_core::Interface::vtable(self).GetSubType)(windows_core::Interface::as_raw(self)) @@ -6886,15 +6886,15 @@ impl ID3D11ShaderReflectionType { } pub unsafe fn IsOfType(&self, ptype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), ptype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), ptype.param().abi()).ok() } pub unsafe fn ImplementsInterface(&self, pbase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImplementsInterface)(windows_core::Interface::as_raw(self), pbase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImplementsInterface)(windows_core::Interface::as_raw(self), pbase.param().abi()).ok() } } unsafe impl Send for ID3D11ShaderReflectionType {} @@ -6956,9 +6956,9 @@ impl ID3D11ShaderResourceView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6996,9 +6996,9 @@ impl ID3D11ShaderResourceView1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7071,10 +7071,10 @@ windows_core::imp::interface_hierarchy!(ID3D11ShaderTraceFactory, windows_core:: impl ID3D11ShaderTraceFactory { pub unsafe fn CreateShaderTrace(&self, pshader: P0, ptracedesc: *const D3D11_SHADER_TRACE_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateShaderTrace)(windows_core::Interface::as_raw(self), pshader.into_param().abi(), 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__)) } } unsafe impl Send for ID3D11ShaderTraceFactory {} @@ -7089,9 +7089,9 @@ windows_core::imp::interface_hierarchy!(ID3D11SwitchToRef, windows_core::IUnknow impl ID3D11SwitchToRef { pub unsafe fn SetUseRef(&self, useref: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseRef)(windows_core::Interface::as_raw(self), useref.into_param().abi()) + (windows_core::Interface::vtable(self).SetUseRef)(windows_core::Interface::as_raw(self), useref.param().abi()) } pub unsafe fn GetUseRef(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetUseRef)(windows_core::Interface::as_raw(self)) @@ -7121,9 +7121,9 @@ impl ID3D11Texture1D { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D11_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -7167,9 +7167,9 @@ impl ID3D11Texture2D { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D11_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -7213,9 +7213,9 @@ impl ID3D11Texture2D1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D11_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -7263,9 +7263,9 @@ impl ID3D11Texture3D { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D11_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -7309,9 +7309,9 @@ impl ID3D11Texture3D1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetType(&self) -> D3D11_RESOURCE_DIMENSION { let mut result__ = std::mem::zeroed(); @@ -7351,9 +7351,9 @@ impl ID3D11TracingDevice { } pub unsafe fn SetShaderTrackingOptions(&self, pshader: P0, options: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShaderTrackingOptions)(windows_core::Interface::as_raw(self), pshader.into_param().abi(), options).ok() + (windows_core::Interface::vtable(self).SetShaderTrackingOptions)(windows_core::Interface::as_raw(self), pshader.param().abi(), options).ok() } } unsafe impl Send for ID3D11TracingDevice {} @@ -7380,9 +7380,9 @@ impl ID3D11UnorderedAccessView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7420,9 +7420,9 @@ impl ID3D11UnorderedAccessView1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7464,9 +7464,9 @@ impl ID3D11VertexShader { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11VertexShader {} @@ -7491,393 +7491,393 @@ impl ID3D11VideoContext { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE, pbuffersize: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), r#type, pbuffersize, ppbuffer).ok() + (windows_core::Interface::vtable(self).GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), r#type, pbuffersize, ppbuffer).ok() } pub unsafe fn ReleaseDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pview.into_param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).ok() } pub unsafe fn DecoderEndFrame(&self, pdecoder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi()).ok() } pub unsafe fn SubmitDecoderBuffers(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } pub unsafe fn DecoderExtension(&self, pdecoder: P0, pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), 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: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetOutputBackgroundColor(&self, pvideoprocessor: P0, ycbcr: P1, pcolor: *const D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), ycbcr.into_param().abi(), pcolor) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ycbcr.param().abi(), pcolor) } pub unsafe fn VideoProcessorSetOutputColorSpace(&self, pvideoprocessor: P0, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), alphafillmode, 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: P1, size: super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(size)) } pub unsafe fn VideoProcessorSetOutputStereoMode(&self, pvideoprocessor: P0, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi()) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi()) } pub unsafe fn VideoProcessorSetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enabled, prect) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enabled, prect) } pub unsafe fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: P0, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pycbcr, pcolor) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pycbcr, pcolor) } pub unsafe fn VideoProcessorGetOutputColorSpace(&self, pvideoprocessor: P0) -> D3D11_VIDEO_PROCESSOR_COLOR_SPACE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputAlphaFillMode(&self, pvideoprocessor: P0, palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, pstreamindex: *mut u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), palphafillmode, pstreamindex) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), palphafillmode, pstreamindex) } pub unsafe fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: P0, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), penabled, psize) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), penabled, psize) } pub unsafe fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorSetStreamFrameFormat(&self, pvideoprocessor: P0, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, 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: P1, pcustomrate: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, outputrate, repeatframe.into_param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, outputrate, repeatframe.param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, alpha: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), alpha) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), alpha) } pub unsafe fn VideoProcessorSetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: Option<&[u32]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_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()))) + (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: P1, psourceaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>, pdestinationaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, lower: f32, upper: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), lower, upper) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), lower, upper) } pub unsafe fn VideoProcessorSetStreamStereoFormat(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: P2, baseviewframe0: P3, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), format, leftviewframe0.into_param().abi(), baseviewframe0.into_param().abi(), flipmode, monooffset) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), format, leftviewframe0.param().abi(), baseviewframe0.param().abi(), flipmode, monooffset) } pub unsafe fn VideoProcessorSetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi()) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi()) } pub unsafe fn VideoProcessorSetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: P1, level: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, enable.into_param().abi(), level) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), 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")] pub unsafe fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: P0, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, poutputrate, prepeatframe, pcustomrate) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, poutputrate, prepeatframe, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, prect) } pub unsafe fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, palpha) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, palpha) } pub unsafe fn VideoProcessorGetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: &mut [u32]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, psourceaspectratio, pdestinationaspectratio) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, psourceaspectratio, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, plower, pupper) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, plower, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) } pub unsafe fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, penabled, plevel) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorBlt(&self, pvideoprocessor: P0, pview: P1, outputframe: u32, pstreams: &[D3D11_VIDEO_PROCESSOR_STREAM]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorBlt)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pview.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), datasize, pdata).ok() } pub unsafe fn EncryptionBlt(&self, pcryptosession: P0, psrcsurface: P1, pdstsurface: P2, ivsize: u32, piv: Option<*mut core::ffi::c_void>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (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(std::ptr::null_mut()))) } 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (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(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn StartSessionKeyRefresh(&self, pcryptosession: P0, randomnumbersize: u32, prandomnumber: *mut core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), randomnumbersize, prandomnumber) + (windows_core::Interface::vtable(self).StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), randomnumbersize, prandomnumber) } pub unsafe fn FinishSessionKeyRefresh(&self, pcryptosession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi()) + (windows_core::Interface::vtable(self).FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi()) } pub unsafe fn GetEncryptionBltKey(&self, pcryptosession: P0, keysize: u32, preadbackkey: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), keysize, preadbackkey).ok() + (windows_core::Interface::vtable(self).GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), keysize, preadbackkey).ok() } pub unsafe fn NegotiateAuthenticatedChannelKeyExchange(&self, pchannel: P0, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.param().abi(), datasize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, outputsize, poutput).ok() + (windows_core::Interface::vtable(self).QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, outputsize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, poutput).ok() + (windows_core::Interface::vtable(self).ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, poutput).ok() } pub unsafe fn VideoProcessorSetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), rotation) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, protation) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, protation) } } unsafe impl Send for ID3D11VideoContext {} @@ -7972,497 +7972,497 @@ impl ID3D11VideoContext1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE, pbuffersize: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), r#type, pbuffersize, ppbuffer).ok() + (windows_core::Interface::vtable(self).base__.GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), r#type, pbuffersize, ppbuffer).ok() } pub unsafe fn ReleaseDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReleaseDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pview.into_param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pview.param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DecoderEndFrame(&self, pdecoder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi()).ok() } pub unsafe fn SubmitDecoderBuffers(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } pub unsafe fn DecoderExtension(&self, pdecoder: P0, pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pextensiondata) + (windows_core::Interface::vtable(self).base__.DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pextensiondata) } pub unsafe fn VideoProcessorSetOutputTargetRect(&self, pvideoprocessor: P0, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetOutputBackgroundColor(&self, pvideoprocessor: P0, ycbcr: P1, pcolor: *const D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), ycbcr.into_param().abi(), pcolor) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ycbcr.param().abi(), pcolor) } pub unsafe fn VideoProcessorSetOutputColorSpace(&self, pvideoprocessor: P0, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pcolorspace) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), alphafillmode, streamindex) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), alphafillmode, streamindex) } pub unsafe fn VideoProcessorSetOutputConstriction(&self, pvideoprocessor: P0, enable: P1, size: super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(size)) } pub unsafe fn VideoProcessorSetOutputStereoMode(&self, pvideoprocessor: P0, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi()) } pub unsafe fn VideoProcessorSetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enabled, prect) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enabled, prect) } pub unsafe fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: P0, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pycbcr, pcolor) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pycbcr, pcolor) } pub unsafe fn VideoProcessorGetOutputColorSpace(&self, pvideoprocessor: P0) -> D3D11_VIDEO_PROCESSOR_COLOR_SPACE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputAlphaFillMode(&self, pvideoprocessor: P0, palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, pstreamindex: *mut u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), palphafillmode, pstreamindex) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), palphafillmode, pstreamindex) } pub unsafe fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: P0, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), penabled, psize) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), penabled, psize) } pub unsafe fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorSetStreamFrameFormat(&self, pvideoprocessor: P0, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, frameformat) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pcolorspace) + (windows_core::Interface::vtable(self).base__.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: P1, pcustomrate: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, outputrate, repeatframe.into_param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, outputrate, repeatframe.param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, alpha: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), alpha) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), alpha) } pub unsafe fn VideoProcessorSetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: Option<&[u32]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_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()))) + (windows_core::Interface::vtable(self).base__.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: P1, psourceaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>, pdestinationaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, lower: f32, upper: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), lower, upper) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), lower, upper) } pub unsafe fn VideoProcessorSetStreamStereoFormat(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: P2, baseviewframe0: P3, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), format, leftviewframe0.into_param().abi(), baseviewframe0.into_param().abi(), flipmode, monooffset) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), format, leftviewframe0.param().abi(), baseviewframe0.param().abi(), flipmode, monooffset) } pub unsafe fn VideoProcessorSetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi()) } pub unsafe fn VideoProcessorSetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: P1, level: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, enable.into_param().abi(), level) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, &mut result__); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: P0, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, poutputrate, prepeatframe, pcustomrate) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, poutputrate, prepeatframe, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, prect) } pub unsafe fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, palpha) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, palpha) } pub unsafe fn VideoProcessorGetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: &mut [u32]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pentries.len().try_into().unwrap(), core::mem::transmute(pentries.as_ptr())) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, psourceaspectratio, pdestinationaspectratio) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, psourceaspectratio, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, plower, pupper) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, plower, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) } pub unsafe fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, penabled, plevel) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorBlt(&self, pvideoprocessor: P0, pview: P1, outputframe: u32, pstreams: &[D3D11_VIDEO_PROCESSOR_STREAM]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorBlt)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pview.into_param().abi(), outputframe, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).base__.NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), datasize, pdata).ok() } pub unsafe fn EncryptionBlt(&self, pcryptosession: P0, psrcsurface: P1, pdstsurface: P2, ivsize: u32, piv: Option<*mut core::ffi::c_void>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) } 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn StartSessionKeyRefresh(&self, pcryptosession: P0, randomnumbersize: u32, prandomnumber: *mut core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), randomnumbersize, prandomnumber) + (windows_core::Interface::vtable(self).base__.StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), randomnumbersize, prandomnumber) } pub unsafe fn FinishSessionKeyRefresh(&self, pcryptosession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi()) } pub unsafe fn GetEncryptionBltKey(&self, pcryptosession: P0, keysize: u32, preadbackkey: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), keysize, preadbackkey).ok() + (windows_core::Interface::vtable(self).base__.GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), keysize, preadbackkey).ok() } pub unsafe fn NegotiateAuthenticatedChannelKeyExchange(&self, pchannel: P0, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).base__.NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.param().abi(), datasize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, outputsize, poutput).ok() + (windows_core::Interface::vtable(self).base__.QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, outputsize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, poutput).ok() + (windows_core::Interface::vtable(self).base__.ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, poutput).ok() } pub unsafe fn VideoProcessorSetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), rotation) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, protation) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, protation) } pub unsafe fn SubmitDecoderBuffers1(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC1]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubmitDecoderBuffers1)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).SubmitDecoderBuffers1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } pub unsafe fn GetDataForNewHardwareKey(&self, pcryptosession: P0, pprivatinputdata: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataForNewHardwareKey)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), pprivatinputdata.len().try_into().unwrap(), core::mem::transmute(pprivatinputdata.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDataForNewHardwareKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), pprivatinputdata.len().try_into().unwrap(), core::mem::transmute(pprivatinputdata.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn CheckCryptoSessionStatus(&self, pcryptosession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckCryptoSessionStatus)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckCryptoSessionStatus)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn DecoderEnableDownsampling(&self, pdecoder: P0, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, referenceframecount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderEnableDownsampling)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), inputcolorspace, poutputdesc, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderUpdateDownsampling)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), 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: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), shaderusage.into_param().abi()) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), shaderusage.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetOutputColorSpace1(&self, pvideoprocessor: P0) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputShaderUsage(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).VideoProcessorGetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorSetStreamColorSpace1(&self, pvideoprocessor: P0, streamindex: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, 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: P1, fliphorizontal: P2, flipvertical: P3) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), fliphorizontal.into_param().abi(), flipvertical.into_param().abi()) + (windows_core::Interface::vtable(self).VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), fliphorizontal.param().abi(), flipvertical.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamColorSpace1(&self, pvideoprocessor: P0, streamindex: u32) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, pfliphorizontal, pflipvertical) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, pfliphorizontal, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VideoProcessorGetBehaviorHints)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), outputwidth, outputheight, 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__) } } unsafe impl Send for ID3D11VideoContext1 {} @@ -8522,525 +8522,525 @@ impl ID3D11VideoContext2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE, pbuffersize: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), r#type, pbuffersize, ppbuffer).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), r#type, pbuffersize, ppbuffer).ok() } pub unsafe fn ReleaseDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ReleaseDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pview.into_param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pview.param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DecoderEndFrame(&self, pdecoder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi()).ok() } pub unsafe fn SubmitDecoderBuffers(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } pub unsafe fn DecoderExtension(&self, pdecoder: P0, pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pextensiondata) + (windows_core::Interface::vtable(self).base__.base__.DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pextensiondata) } pub unsafe fn VideoProcessorSetOutputTargetRect(&self, pvideoprocessor: P0, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetOutputBackgroundColor(&self, pvideoprocessor: P0, ycbcr: P1, pcolor: *const D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), ycbcr.into_param().abi(), pcolor) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ycbcr.param().abi(), pcolor) } pub unsafe fn VideoProcessorSetOutputColorSpace(&self, pvideoprocessor: P0, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pcolorspace) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), alphafillmode, streamindex) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), alphafillmode, streamindex) } pub unsafe fn VideoProcessorSetOutputConstriction(&self, pvideoprocessor: P0, enable: P1, size: super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(size)) } pub unsafe fn VideoProcessorSetOutputStereoMode(&self, pvideoprocessor: P0, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi()) } pub unsafe fn VideoProcessorSetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enabled, prect) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enabled, prect) } pub unsafe fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: P0, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pycbcr, pcolor) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pycbcr, pcolor) } pub unsafe fn VideoProcessorGetOutputColorSpace(&self, pvideoprocessor: P0) -> D3D11_VIDEO_PROCESSOR_COLOR_SPACE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputAlphaFillMode(&self, pvideoprocessor: P0, palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, pstreamindex: *mut u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), palphafillmode, pstreamindex) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), palphafillmode, pstreamindex) } pub unsafe fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: P0, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), penabled, psize) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), penabled, psize) } pub unsafe fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorSetStreamFrameFormat(&self, pvideoprocessor: P0, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, frameformat) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pcolorspace) + (windows_core::Interface::vtable(self).base__.base__.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: P1, pcustomrate: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, outputrate, repeatframe.into_param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, outputrate, repeatframe.param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, alpha: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), alpha) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), alpha) } pub unsafe fn VideoProcessorSetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: Option<&[u32]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_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()))) + (windows_core::Interface::vtable(self).base__.base__.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: P1, psourceaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>, pdestinationaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, lower: f32, upper: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), lower, upper) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), lower, upper) } pub unsafe fn VideoProcessorSetStreamStereoFormat(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: P2, baseviewframe0: P3, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), format, leftviewframe0.into_param().abi(), baseviewframe0.into_param().abi(), flipmode, monooffset) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), format, leftviewframe0.param().abi(), baseviewframe0.param().abi(), flipmode, monooffset) } pub unsafe fn VideoProcessorSetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi()) } pub unsafe fn VideoProcessorSetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: P1, level: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, enable.into_param().abi(), level) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.base__.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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, &mut result__); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: P0, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, poutputrate, prepeatframe, pcustomrate) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, poutputrate, prepeatframe, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, prect) } pub unsafe fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, palpha) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, palpha) } pub unsafe fn VideoProcessorGetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: &mut [u32]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pentries.len().try_into().unwrap(), core::mem::transmute(pentries.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, psourceaspectratio, pdestinationaspectratio) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, psourceaspectratio, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, plower, pupper) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, plower, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) } pub unsafe fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, penabled, plevel) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorBlt(&self, pvideoprocessor: P0, pview: P1, outputframe: u32, pstreams: &[D3D11_VIDEO_PROCESSOR_STREAM]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorBlt)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pview.into_param().abi(), outputframe, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), datasize, pdata).ok() } pub unsafe fn EncryptionBlt(&self, pcryptosession: P0, psrcsurface: P1, pdstsurface: P2, ivsize: u32, piv: Option<*mut core::ffi::c_void>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.base__.EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) } 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.base__.DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn StartSessionKeyRefresh(&self, pcryptosession: P0, randomnumbersize: u32, prandomnumber: *mut core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), randomnumbersize, prandomnumber) + (windows_core::Interface::vtable(self).base__.base__.StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), randomnumbersize, prandomnumber) } pub unsafe fn FinishSessionKeyRefresh(&self, pcryptosession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi()) } pub unsafe fn GetEncryptionBltKey(&self, pcryptosession: P0, keysize: u32, preadbackkey: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), keysize, preadbackkey).ok() + (windows_core::Interface::vtable(self).base__.base__.GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), keysize, preadbackkey).ok() } pub unsafe fn NegotiateAuthenticatedChannelKeyExchange(&self, pchannel: P0, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.param().abi(), datasize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, outputsize, poutput).ok() + (windows_core::Interface::vtable(self).base__.base__.QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, outputsize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, poutput).ok() + (windows_core::Interface::vtable(self).base__.base__.ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, poutput).ok() } pub unsafe fn VideoProcessorSetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), rotation) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, protation) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, protation) } pub unsafe fn SubmitDecoderBuffers1(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC1]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SubmitDecoderBuffers1)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.SubmitDecoderBuffers1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } pub unsafe fn GetDataForNewHardwareKey(&self, pcryptosession: P0, pprivatinputdata: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDataForNewHardwareKey)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), pprivatinputdata.len().try_into().unwrap(), core::mem::transmute(pprivatinputdata.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetDataForNewHardwareKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), pprivatinputdata.len().try_into().unwrap(), core::mem::transmute(pprivatinputdata.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn CheckCryptoSessionStatus(&self, pcryptosession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CheckCryptoSessionStatus)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CheckCryptoSessionStatus)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn DecoderEnableDownsampling(&self, pdecoder: P0, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, referenceframecount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecoderEnableDownsampling)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), inputcolorspace, poutputdesc, referenceframecount).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecoderUpdateDownsampling)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputdesc).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), colorspace) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), colorspace) } pub unsafe fn VideoProcessorSetOutputShaderUsage(&self, pvideoprocessor: P0, shaderusage: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), shaderusage.into_param().abi()) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), shaderusage.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetOutputColorSpace1(&self, pvideoprocessor: P0) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputShaderUsage(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorSetStreamColorSpace1(&self, pvideoprocessor: P0, streamindex: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, colorspace) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, colorspace) } pub unsafe fn VideoProcessorSetStreamMirror(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, fliphorizontal: P2, flipvertical: P3) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), fliphorizontal.into_param().abi(), flipvertical.into_param().abi()) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), fliphorizontal.param().abi(), flipvertical.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamColorSpace1(&self, pvideoprocessor: P0, streamindex: u32) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, pfliphorizontal, pflipvertical) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, pfliphorizontal, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VideoProcessorGetBehaviorHints)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), outputwidth, outputheight, outputformat, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn VideoProcessorSetOutputHDRMetaData(&self, pvideoprocessor: P0, r#type: super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, phdrmetadata: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).VideoProcessorSetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).VideoProcessorGetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorSetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(std::ptr::null()))) + (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(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessorGetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).VideoProcessorGetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) } } unsafe impl Send for ID3D11VideoContext2 {} @@ -9081,538 +9081,538 @@ impl ID3D11VideoContext3 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE, pbuffersize: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), r#type, pbuffersize, ppbuffer).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), r#type, pbuffersize, ppbuffer).ok() } pub unsafe fn ReleaseDecoderBuffer(&self, pdecoder: P0, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ReleaseDecoderBuffer)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pview.into_param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DecoderBeginFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pview.param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DecoderEndFrame(&self, pdecoder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DecoderEndFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi()).ok() } pub unsafe fn SubmitDecoderBuffers(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SubmitDecoderBuffers)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } pub unsafe fn DecoderExtension(&self, pdecoder: P0, pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pextensiondata) + (windows_core::Interface::vtable(self).base__.base__.base__.DecoderExtension)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pextensiondata) } pub unsafe fn VideoProcessorSetOutputTargetRect(&self, pvideoprocessor: P0, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetOutputBackgroundColor(&self, pvideoprocessor: P0, ycbcr: P1, pcolor: *const D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), ycbcr.into_param().abi(), pcolor) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ycbcr.param().abi(), pcolor) } pub unsafe fn VideoProcessorSetOutputColorSpace(&self, pvideoprocessor: P0, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pcolorspace) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), alphafillmode, streamindex) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), alphafillmode, streamindex) } pub unsafe fn VideoProcessorSetOutputConstriction(&self, pvideoprocessor: P0, enable: P1, size: super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi(), core::mem::transmute(size)) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi(), core::mem::transmute(size)) } pub unsafe fn VideoProcessorSetOutputStereoMode(&self, pvideoprocessor: P0, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enable.param().abi()) } pub unsafe fn VideoProcessorSetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), enabled, prect) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enabled, prect) } pub unsafe fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: P0, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pycbcr, pcolor) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputBackgroundColor)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pycbcr, pcolor) } pub unsafe fn VideoProcessorGetOutputColorSpace(&self, pvideoprocessor: P0) -> D3D11_VIDEO_PROCESSOR_COLOR_SPACE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputAlphaFillMode(&self, pvideoprocessor: P0, palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, pstreamindex: *mut u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), palphafillmode, pstreamindex) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), palphafillmode, pstreamindex) } pub unsafe fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: P0, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), penabled, psize) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), penabled, psize) } pub unsafe fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputStereoMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputExtension(&self, pvideoprocessor: P0, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorSetStreamFrameFormat(&self, pvideoprocessor: P0, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, frameformat) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pcolorspace) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, pcustomrate: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, outputrate, repeatframe.into_param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, outputrate, repeatframe.param().abi(), core::mem::transmute(pcustomrate.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, prect: Option<*const super::super::Foundation::RECT>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(prect.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, alpha: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), alpha) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), alpha) } pub unsafe fn VideoProcessorSetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: Option<&[u32]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_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()))) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, psourceaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>, pdestinationaspectratio: Option<*const super::Dxgi::Common::DXGI_RATIONAL>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), core::mem::transmute(psourceaspectratio.unwrap_or(std::ptr::null())), core::mem::transmute(pdestinationaspectratio.unwrap_or(std::ptr::null()))) } pub unsafe fn VideoProcessorSetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, lower: f32, upper: f32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), lower, upper) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), lower, upper) } pub unsafe fn VideoProcessorSetStreamStereoFormat(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: P2, baseviewframe0: P3, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), format, leftviewframe0.into_param().abi(), baseviewframe0.into_param().abi(), flipmode, monooffset) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), format, leftviewframe0.param().abi(), baseviewframe0.param().abi(), flipmode, monooffset) } pub unsafe fn VideoProcessorSetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32, enable: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi()) } pub unsafe fn VideoProcessorSetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: P1, level: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, enable.into_param().abi(), level) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamFrameFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.base__.base__.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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamColorSpace)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, &mut result__); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: P0, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, poutputrate, prepeatframe, pcustomrate) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, poutputrate, prepeatframe, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, prect) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, prect) } pub unsafe fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, palpha) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamAlpha)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, palpha) } pub unsafe fn VideoProcessorGetStreamPalette(&self, pvideoprocessor: P0, streamindex: u32, pentries: &mut [u32]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pentries.len().try_into().unwrap(), core::mem::transmute(pentries.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, psourceaspectratio, pdestinationaspectratio) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, psourceaspectratio, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penabled, plower, pupper) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled, plower, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, pformat, pleftviewframe0, pbaseviewframe0, pflipmode, monooffset) } pub unsafe fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamAutoProcessingMode)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, filter, penabled, plevel) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamFilter)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, filter, penabled, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, pextensionguid, datasize, pdata) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pextensionguid, datasize, pdata) } pub unsafe fn VideoProcessorBlt(&self, pvideoprocessor: P0, pview: P1, outputframe: u32, pstreams: &[D3D11_VIDEO_PROCESSOR_STREAM]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorBlt)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), pview.into_param().abi(), outputframe, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.NegotiateCryptoSessionKeyExchange)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), datasize, pdata).ok() } pub unsafe fn EncryptionBlt(&self, pcryptosession: P0, psrcsurface: P1, pdstsurface: P2, ivsize: u32, piv: Option<*mut core::ffi::c_void>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.base__.base__.EncryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) } 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DecryptionBlt)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), psrcsurface.param().abi(), pdstsurface.param().abi(), core::mem::transmute(pencryptedblockinfo.unwrap_or(std::ptr::null())), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), ivsize, core::mem::transmute(piv.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn StartSessionKeyRefresh(&self, pcryptosession: P0, randomnumbersize: u32, prandomnumber: *mut core::ffi::c_void) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), randomnumbersize, prandomnumber) + (windows_core::Interface::vtable(self).base__.base__.base__.StartSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), randomnumbersize, prandomnumber) } pub unsafe fn FinishSessionKeyRefresh(&self, pcryptosession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.FinishSessionKeyRefresh)(windows_core::Interface::as_raw(self), pcryptosession.param().abi()) } pub unsafe fn GetEncryptionBltKey(&self, pcryptosession: P0, keysize: u32, preadbackkey: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), keysize, preadbackkey).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetEncryptionBltKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), keysize, preadbackkey).ok() } pub unsafe fn NegotiateAuthenticatedChannelKeyExchange(&self, pchannel: P0, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), datasize, pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.NegotiateAuthenticatedChannelKeyExchange)(windows_core::Interface::as_raw(self), pchannel.param().abi(), datasize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, outputsize, poutput).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.QueryAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, outputsize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), inputsize, pinput, poutput).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ConfigureAuthenticatedChannel)(windows_core::Interface::as_raw(self), pchannel.param().abi(), inputsize, pinput, poutput).ok() } pub unsafe fn VideoProcessorSetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), rotation) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, protation) + (windows_core::Interface::vtable(self).base__.base__.base__.VideoProcessorGetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, protation) } pub unsafe fn SubmitDecoderBuffers1(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC1]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SubmitDecoderBuffers1)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.SubmitDecoderBuffers1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } pub unsafe fn GetDataForNewHardwareKey(&self, pcryptosession: P0, pprivatinputdata: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetDataForNewHardwareKey)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), pprivatinputdata.len().try_into().unwrap(), core::mem::transmute(pprivatinputdata.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetDataForNewHardwareKey)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), pprivatinputdata.len().try_into().unwrap(), core::mem::transmute(pprivatinputdata.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn CheckCryptoSessionStatus(&self, pcryptosession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CheckCryptoSessionStatus)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CheckCryptoSessionStatus)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn DecoderEnableDownsampling(&self, pdecoder: P0, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, referenceframecount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecoderEnableDownsampling)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), inputcolorspace, poutputdesc, referenceframecount).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecoderUpdateDownsampling)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputdesc).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), colorspace) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), colorspace) } pub unsafe fn VideoProcessorSetOutputShaderUsage(&self, pvideoprocessor: P0, shaderusage: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), shaderusage.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), shaderusage.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetOutputColorSpace1(&self, pvideoprocessor: P0) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } pub unsafe fn VideoProcessorGetOutputShaderUsage(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetOutputShaderUsage)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), &mut result__); result__ } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorSetStreamColorSpace1(&self, pvideoprocessor: P0, streamindex: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, colorspace) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, colorspace) } pub unsafe fn VideoProcessorSetStreamMirror(&self, pvideoprocessor: P0, streamindex: u32, enable: P1, fliphorizontal: P2, flipvertical: P3) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, enable.into_param().abi(), fliphorizontal.into_param().abi(), flipvertical.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorSetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.param().abi(), fliphorizontal.param().abi(), flipvertical.param().abi()) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn VideoProcessorGetStreamColorSpace1(&self, pvideoprocessor: P0, streamindex: u32) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamColorSpace1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, &mut result__); + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, pfliphorizontal, pflipvertical) + (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetStreamMirror)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable, pfliphorizontal, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VideoProcessorGetBehaviorHints)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), outputwidth, outputheight, outputformat, pstreams.len().try_into().unwrap(), core::mem::transmute(pstreams.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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__) } #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn VideoProcessorSetOutputHDRMetaData(&self, pvideoprocessor: P0, r#type: super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, phdrmetadata: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetOutputHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorSetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, r#type, size, core::mem::transmute(phdrmetadata.unwrap_or(std::ptr::null()))) } #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) + (windows_core::Interface::vtable(self).base__.VideoProcessorGetStreamHDRMetaData)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, ptype, size, core::mem::transmute(pmetadata.unwrap_or(std::ptr::null_mut()))) } pub unsafe fn DecoderBeginFrame1(&self, pdecoder: P0, pview: P1, contentkeysize: u32, pcontentkey: Option<*const core::ffi::c_void>, numcomponenthistograms: u32, phistogramoffsets: Option<*const u32>, pphistogrambuffers: Option<*const Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecoderBeginFrame1)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pview.into_param().abi(), contentkeysize, core::mem::transmute(pcontentkey.unwrap_or(std::ptr::null())), numcomponenthistograms, core::mem::transmute(phistogramoffsets.unwrap_or(std::ptr::null())), core::mem::transmute(pphistogrambuffers.unwrap_or(std::ptr::null()))).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(std::ptr::null())), numcomponenthistograms, core::mem::transmute(phistogramoffsets.unwrap_or(std::ptr::null())), core::mem::transmute(pphistogrambuffers.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn SubmitDecoderBuffers2(&self, pdecoder: P0, pbufferdesc: &[D3D11_VIDEO_DECODER_BUFFER_DESC2]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubmitDecoderBuffers2)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() + (windows_core::Interface::vtable(self).SubmitDecoderBuffers2)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), pbufferdesc.len().try_into().unwrap(), core::mem::transmute(pbufferdesc.as_ptr())).ok() } } unsafe impl Send for ID3D11VideoContext3 {} @@ -9639,9 +9639,9 @@ impl ID3D11VideoDecoder { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetCreationParameters(&self, pvideodesc: *mut D3D11_VIDEO_DECODER_DESC, pconfig: *mut D3D11_VIDEO_DECODER_CONFIG) -> windows_core::Result<()> { @@ -9679,9 +9679,9 @@ impl ID3D11VideoDecoderOutputView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9709,10 +9709,10 @@ impl ID3D11VideoDevice { } pub unsafe fn CreateVideoProcessor(&self, penum: P0, rateconversionindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVideoProcessor)(windows_core::Interface::as_raw(self), penum.into_param().abi(), 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__ = std::mem::zeroed(); @@ -9724,23 +9724,23 @@ impl ID3D11VideoDevice { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pdesc, core::mem::transmute(ppvdovview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), pdesc, core::mem::transmute(ppvdovview.unwrap_or(std::ptr::null_mut()))).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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoProcessorInputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), penum.into_param().abi(), pdesc, core::mem::transmute(ppvpiview.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoProcessorOutputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), penum.into_param().abi(), pdesc, core::mem::transmute(ppvpoview.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessorEnumerator(&self, pdesc: *const D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::Result { @@ -9780,9 +9780,9 @@ impl ID3D11VideoDevice { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3D11VideoDevice {} @@ -9833,10 +9833,10 @@ impl ID3D11VideoDevice1 { } pub unsafe fn CreateVideoProcessor(&self, penum: P0, rateconversionindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateVideoProcessor)(windows_core::Interface::as_raw(self), penum.into_param().abi(), rateconversionindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -9848,23 +9848,23 @@ impl ID3D11VideoDevice1 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pdesc, core::mem::transmute(ppvdovview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), pdesc, core::mem::transmute(ppvdovview.unwrap_or(std::ptr::null_mut()))).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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateVideoProcessorInputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), penum.into_param().abi(), pdesc, core::mem::transmute(ppvpiview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateVideoProcessorInputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), pdesc, core::mem::transmute(ppvpiview.unwrap_or(std::ptr::null_mut()))).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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateVideoProcessorOutputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), penum.into_param().abi(), pdesc, core::mem::transmute(ppvpoview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CreateVideoProcessorOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), pdesc, core::mem::transmute(ppvpoview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessorEnumerator(&self, pdesc: *const D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::Result { @@ -9904,9 +9904,9 @@ impl ID3D11VideoDevice1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } 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), pcryptotype, core::mem::transmute(pdecoderprofile.unwrap_or(std::ptr::null())), pkeyexchangetype, pprivateinputsize, pprivateoutputsize).ok() @@ -9955,10 +9955,10 @@ impl ID3D11VideoDevice2 { } pub unsafe fn CreateVideoProcessor(&self, penum: P0, rateconversionindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateVideoProcessor)(windows_core::Interface::as_raw(self), penum.into_param().abi(), rateconversionindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -9970,23 +9970,23 @@ impl ID3D11VideoDevice2 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pdesc, core::mem::transmute(ppvdovview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateVideoDecoderOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), pdesc, core::mem::transmute(ppvdovview.unwrap_or(std::ptr::null_mut()))).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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateVideoProcessorInputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), penum.into_param().abi(), pdesc, core::mem::transmute(ppvpiview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateVideoProcessorInputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), pdesc, core::mem::transmute(ppvpiview.unwrap_or(std::ptr::null_mut()))).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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateVideoProcessorOutputView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), penum.into_param().abi(), pdesc, core::mem::transmute(ppvpoview.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateVideoProcessorOutputView)(windows_core::Interface::as_raw(self), presource.param().abi(), penum.param().abi(), pdesc, core::mem::transmute(ppvpoview.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessorEnumerator(&self, pdesc: *const D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::Result { @@ -10026,9 +10026,9 @@ impl ID3D11VideoDevice2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } 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).base__.GetCryptoSessionPrivateDataSize)(windows_core::Interface::as_raw(self), pcryptotype, core::mem::transmute(pdecoderprofile.unwrap_or(std::ptr::null())), pkeyexchangetype, pprivateinputsize, pprivateoutputsize).ok() @@ -10052,9 +10052,9 @@ impl ID3D11VideoDevice2 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchangeMT)(windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), flags, datasize, pdata).ok() + (windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchangeMT)(windows_core::Interface::as_raw(self), pcryptosession.param().abi(), flags, datasize, pdata).ok() } } unsafe impl Send for ID3D11VideoDevice2 {} @@ -10081,9 +10081,9 @@ impl ID3D11VideoProcessor { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetContentDesc(&self, pdesc: *mut D3D11_VIDEO_PROCESSOR_CONTENT_DESC) { @@ -10120,9 +10120,9 @@ impl ID3D11VideoProcessorEnumerator { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetVideoProcessorContentDesc(&self, pcontentdesc: *mut D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::Result<()> { @@ -10185,9 +10185,9 @@ impl ID3D11VideoProcessorEnumerator1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn GetVideoProcessorContentDesc(&self, pcontentdesc: *mut D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::Result<()> { @@ -10244,9 +10244,9 @@ impl ID3D11VideoProcessorInputView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10282,9 +10282,9 @@ impl ID3D11VideoProcessorOutputView { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10320,9 +10320,9 @@ impl ID3D11View { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn GetResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10353,9 +10353,9 @@ impl ID3DDeviceContextState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } } unsafe impl Send for ID3DDeviceContextState {} @@ -10369,18 +10369,18 @@ windows_core::imp::interface_hierarchy!(ID3DUserDefinedAnnotation, windows_core: impl ID3DUserDefinedAnnotation { pub unsafe fn BeginEvent(&self, name: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).BeginEvent)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn EndEvent(&self) -> i32 { (windows_core::Interface::vtable(self).EndEvent)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetMarker(&self, name: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), name.param().abi()) } pub unsafe fn GetStatus(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self)) @@ -10416,15 +10416,15 @@ impl ID3DX11FFT { } pub unsafe fn ForwardTransform(&self, pinputbuffer: P0, ppoutputbuffer: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ForwardTransform)(windows_core::Interface::as_raw(self), pinputbuffer.into_param().abi(), core::mem::transmute(ppoutputbuffer)).ok() + (windows_core::Interface::vtable(self).ForwardTransform)(windows_core::Interface::as_raw(self), pinputbuffer.param().abi(), core::mem::transmute(ppoutputbuffer)).ok() } pub unsafe fn InverseTransform(&self, pinputbuffer: P0, ppoutputbuffer: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InverseTransform)(windows_core::Interface::as_raw(self), pinputbuffer.into_param().abi(), core::mem::transmute(ppoutputbuffer)).ok() + (windows_core::Interface::vtable(self).InverseTransform)(windows_core::Interface::as_raw(self), pinputbuffer.param().abi(), core::mem::transmute(ppoutputbuffer)).ok() } } unsafe impl Send for ID3DX11FFT {} @@ -10448,17 +10448,17 @@ impl ID3DX11Scan { } pub unsafe fn Scan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: P0, pdst: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), elementtype, opcode, elementscansize, psrc.into_param().abi(), pdst.into_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: P0, pdst: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Multiscan)(windows_core::Interface::as_raw(self), elementtype, opcode, elementscansize, elementscanpitch, scancount, psrc.into_param().abi(), pdst.into_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() } } unsafe impl Send for ID3DX11Scan {} @@ -10478,11 +10478,11 @@ impl ID3DX11SegmentedScan { } pub unsafe fn SegScan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: P0, psrcelementflags: P1, pdst: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SegScan)(windows_core::Interface::as_raw(self), elementtype, opcode, elementscansize, psrc.into_param().abi(), psrcelementflags.into_param().abi(), pdst.into_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() } } unsafe impl Send for ID3DX11SegmentedScan {} 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 e48d16b05b..a7b26fd755 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs @@ -2,11 +2,11 @@ #[inline] pub unsafe fn D3D11On12CreateDevice(pdevice: P0, flags: u32, pfeaturelevels: Option<&[super::Direct3D::D3D_FEATURE_LEVEL]>, ppcommandqueues: Option<&[Option]>, nodemask: u32, ppdevice: Option<*mut Option>, ppimmediatecontext: Option<*mut Option>, pchosenfeaturelevel: Option<*mut super::Direct3D::D3D_FEATURE_LEVEL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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.into_param().abi(), + pdevice.param().abi(), 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()), @@ -25,10 +25,10 @@ impl ID3D11On12Device { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateWrappedResource(&self, presource12: P0, pflags11: *const D3D11_RESOURCE_FLAGS, instate: super::Direct3D12::D3D12_RESOURCE_STATES, outstate: super::Direct3D12::D3D12_RESOURCE_STATES, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateWrappedResource)(windows_core::Interface::as_raw(self), presource12.into_param().abi(), pflags11, instate, 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]) { @@ -63,10 +63,10 @@ impl ID3D11On12Device1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateWrappedResource(&self, presource12: P0, pflags11: *const D3D11_RESOURCE_FLAGS, instate: super::Direct3D12::D3D12_RESOURCE_STATES, outstate: super::Direct3D12::D3D12_RESOURCE_STATES, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateWrappedResource)(windows_core::Interface::as_raw(self), presource12.into_param().abi(), pflags11, instate, outstate, &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.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]) { @@ -97,10 +97,10 @@ impl ID3D11On12Device2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateWrappedResource(&self, presource12: P0, pflags11: *const D3D11_RESOURCE_FLAGS, instate: super::Direct3D12::D3D12_RESOURCE_STATES, outstate: super::Direct3D12::D3D12_RESOURCE_STATES, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateWrappedResource)(windows_core::Interface::as_raw(self), presource12.into_param().abi(), pflags11, instate, outstate, &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.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]) { @@ -120,19 +120,19 @@ impl ID3D11On12Device2 { #[cfg(all(feature = "Win32_Graphics_Direct3D11", feature = "Win32_Graphics_Direct3D12"))] pub unsafe fn UnwrapUnderlyingResource(&self, presource11: P0, pcommandqueue: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).UnwrapUnderlyingResource)(windows_core::Interface::as_raw(self), presource11.into_param().abi(), pcommandqueue.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).UnwrapUnderlyingResource)(windows_core::Interface::as_raw(self), presource11.param().abi(), pcommandqueue.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Graphics_Direct3D11", feature = "Win32_Graphics_Direct3D12"))] pub unsafe fn ReturnUnderlyingResource(&self, presource11: P0, numsync: u32, psignalvalues: *const u64, ppfences: *const Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnUnderlyingResource)(windows_core::Interface::as_raw(self), presource11.into_param().abi(), numsync, 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() } } unsafe impl Send for ID3D11On12Device2 {} 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 93c2cdb875..a20217c1d0 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs @@ -2,11 +2,11 @@ #[inline] pub unsafe fn D3D12CreateDevice(padapter: P0, minimumfeaturelevel: super::Direct3D::D3D_FEATURE_LEVEL, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, 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.into_param().abi(), 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<()> { @@ -62,15 +62,15 @@ impl ID3D12CommandAllocator { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -100,15 +100,15 @@ impl ID3D12CommandList { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -138,15 +138,15 @@ impl ID3D12CommandQueue { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -156,16 +156,16 @@ impl ID3D12CommandQueue { } pub unsafe fn UpdateTileMappings(&self, presource: P0, numresourceregions: u32, presourceregionstartcoordinates: Option<*const D3D12_TILED_RESOURCE_COORDINATE>, presourceregionsizes: Option<*const D3D12_TILE_REGION_SIZE>, pheap: P1, numranges: u32, prangeflags: Option<*const D3D12_TILE_RANGE_FLAGS>, pheaprangestartoffsets: Option<*const u32>, prangetilecounts: Option<*const u32>, flags: D3D12_TILE_MAPPING_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { (windows_core::Interface::vtable(self).UpdateTileMappings)( windows_core::Interface::as_raw(self), - presource.into_param().abi(), + presource.param().abi(), numresourceregions, core::mem::transmute(presourceregionstartcoordinates.unwrap_or(std::ptr::null())), core::mem::transmute(presourceregionsizes.unwrap_or(std::ptr::null())), - pheap.into_param().abi(), + pheap.param().abi(), numranges, core::mem::transmute(prangeflags.unwrap_or(std::ptr::null())), core::mem::transmute(pheaprangestartoffsets.unwrap_or(std::ptr::null())), @@ -175,10 +175,10 @@ impl ID3D12CommandQueue { } pub unsafe fn CopyTileMappings(&self, pdstresource: P0, pdstregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, psrcresource: P1, psrcregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, pregionsize: *const D3D12_TILE_REGION_SIZE, flags: D3D12_TILE_MAPPING_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTileMappings)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), pdstregionstartcoordinate, psrcresource.into_param().abi(), psrcregionstartcoordinate, pregionsize, 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())) @@ -194,15 +194,15 @@ impl ID3D12CommandQueue { } pub unsafe fn Signal(&self, pfence: P0, value: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), pfence.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), pfence.into_param().abi(), 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__ = std::mem::zeroed(); @@ -245,15 +245,15 @@ impl ID3D12CommandSignature { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -290,15 +290,15 @@ impl ID3D12Debug1 { } pub unsafe fn SetEnableGPUBasedValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetEnableSynchronizedCommandQueueValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } } unsafe impl Send for ID3D12Debug1 {} @@ -332,15 +332,15 @@ impl ID3D12Debug3 { } pub unsafe fn SetEnableGPUBasedValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetEnableSynchronizedCommandQueueValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { (windows_core::Interface::vtable(self).SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), flags) @@ -363,15 +363,15 @@ impl ID3D12Debug4 { } pub unsafe fn SetEnableGPUBasedValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetEnableSynchronizedCommandQueueValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { (windows_core::Interface::vtable(self).base__.SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), flags) @@ -395,15 +395,15 @@ impl ID3D12Debug5 { } pub unsafe fn SetEnableGPUBasedValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetEnableSynchronizedCommandQueueValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { (windows_core::Interface::vtable(self).base__.base__.SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), flags) @@ -413,9 +413,9 @@ impl ID3D12Debug5 { } pub unsafe fn SetEnableAutoName(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableAutoName)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).SetEnableAutoName)(windows_core::Interface::as_raw(self), enable.param().abi()) } } unsafe impl Send for ID3D12Debug5 {} @@ -433,15 +433,15 @@ impl ID3D12Debug6 { } pub unsafe fn SetEnableGPUBasedValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetEnableGPUBasedValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetEnableSynchronizedCommandQueueValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetEnableSynchronizedCommandQueueValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { (windows_core::Interface::vtable(self).base__.base__.base__.SetGPUBasedValidationFlags)(windows_core::Interface::as_raw(self), flags) @@ -451,15 +451,15 @@ impl ID3D12Debug6 { } pub unsafe fn SetEnableAutoName(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableAutoName)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetEnableAutoName)(windows_core::Interface::as_raw(self), enable.param().abi()) } pub unsafe fn SetForceLegacyBarrierValidation(&self, enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetForceLegacyBarrierValidation)(windows_core::Interface::as_raw(self), enable.into_param().abi()) + (windows_core::Interface::vtable(self).SetForceLegacyBarrierValidation)(windows_core::Interface::as_raw(self), enable.param().abi()) } } unsafe impl Send for ID3D12Debug6 {} @@ -474,9 +474,9 @@ windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList, windows_core::IU impl ID3D12DebugCommandList { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, 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), mask).ok() @@ -499,9 +499,9 @@ windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList1, windows_core::I impl ID3D12DebugCommandList1 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, 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), r#type, pdata, datasize).ok() @@ -524,9 +524,9 @@ windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList2, windows_core::I impl ID3D12DebugCommandList2 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AssertResourceState)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, state) + (windows_core::Interface::vtable(self).base__.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).base__.SetFeatureMask)(windows_core::Interface::as_raw(self), mask).ok() @@ -554,9 +554,9 @@ windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList3, windows_core::I impl ID3D12DebugCommandList3 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AssertResourceState)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, state) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetFeatureMask)(windows_core::Interface::as_raw(self), mask).ok() @@ -572,15 +572,15 @@ impl ID3D12DebugCommandList3 { } pub unsafe fn AssertResourceAccess(&self, presource: P0, subresource: u32, access: D3D12_BARRIER_ACCESS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceAccess)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, layout) + (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, layout) } } unsafe impl Send for ID3D12DebugCommandList3 {} @@ -596,9 +596,9 @@ windows_core::imp::interface_hierarchy!(ID3D12DebugCommandQueue, windows_core::I impl ID3D12DebugCommandQueue { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, state) + (windows_core::Interface::vtable(self).AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, state) } } unsafe impl Send for ID3D12DebugCommandQueue {} @@ -613,21 +613,21 @@ windows_core::imp::interface_hierarchy!(ID3D12DebugCommandQueue1, windows_core:: impl ID3D12DebugCommandQueue1 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AssertResourceState)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, state) + (windows_core::Interface::vtable(self).base__.AssertResourceState)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, state) } pub unsafe fn AssertResourceAccess(&self, presource: P0, subresource: u32, access: D3D12_BARRIER_ACCESS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertResourceAccess)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, layout) + (windows_core::Interface::vtable(self).AssertTextureLayout)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, layout) } } unsafe impl Send for ID3D12DebugCommandQueue1 {} @@ -720,15 +720,15 @@ impl ID3D12DescriptorHeap { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -772,15 +772,15 @@ impl ID3D12Device { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -816,12 +816,12 @@ impl ID3D12Device { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_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), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -849,31 +849,31 @@ impl ID3D12Device { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), 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), pdesc, core::mem::transmute(destdescriptor)) @@ -911,10 +911,10 @@ impl ID3D12Device { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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(std::ptr::null())), &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<()> @@ -926,25 +926,25 @@ impl ID3D12Device { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_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(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), 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() @@ -974,22 +974,22 @@ impl ID3D12Device { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -1084,15 +1084,15 @@ impl ID3D12Device1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -1128,12 +1128,12 @@ impl ID3D12Device1 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -1161,31 +1161,31 @@ impl ID3D12Device1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -1223,10 +1223,10 @@ impl ID3D12Device1 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -1238,25 +1238,25 @@ impl ID3D12Device1 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -1286,22 +1286,22 @@ impl ID3D12Device1 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -1317,9 +1317,9 @@ impl ID3D12Device1 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).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), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -1345,15 +1345,15 @@ impl ID3D12Device10 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -1389,12 +1389,12 @@ impl ID3D12Device10 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -1422,31 +1422,31 @@ impl ID3D12Device10 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -1484,10 +1484,10 @@ impl ID3D12Device10 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -1499,25 +1499,25 @@ impl ID3D12Device10 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -1547,22 +1547,22 @@ impl ID3D12Device10 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -1578,9 +1578,9 @@ impl ID3D12Device10 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -1601,17 +1601,17 @@ impl ID3D12Device10 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -1630,25 +1630,25 @@ impl ID3D12Device10 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -1658,11 +1658,11 @@ impl ID3D12Device10 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -1696,17 +1696,17 @@ impl ID3D12Device10 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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 @@ -1724,25 +1724,25 @@ impl ID3D12Device10 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateSamplerFeedbackUnorderedAccessView(&self, ptargetedresource: P0, pfeedbackresource: P1, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.into_param().abi(), pfeedbackresource.into_param().abi(), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.param().abi(), pfeedbackresource.param().abi(), core::mem::transmute(destdescriptor)) } #[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>) { @@ -1767,26 +1767,26 @@ impl ID3D12Device10 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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(std::ptr::null())), 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() } } unsafe impl Send for ID3D12Device10 {} @@ -1818,15 +1818,15 @@ impl ID3D12Device11 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -1862,12 +1862,12 @@ impl ID3D12Device11 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -1895,31 +1895,31 @@ impl ID3D12Device11 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -1957,10 +1957,10 @@ impl ID3D12Device11 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -1972,25 +1972,25 @@ impl ID3D12Device11 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -2020,22 +2020,22 @@ impl ID3D12Device11 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -2051,9 +2051,9 @@ impl ID3D12Device11 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -2074,17 +2074,17 @@ impl ID3D12Device11 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -2103,25 +2103,25 @@ impl ID3D12Device11 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -2131,11 +2131,11 @@ impl ID3D12Device11 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -2169,17 +2169,17 @@ impl ID3D12Device11 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 @@ -2197,25 +2197,25 @@ impl ID3D12Device11 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateSamplerFeedbackUnorderedAccessView(&self, ptargetedresource: P0, pfeedbackresource: P1, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.into_param().abi(), pfeedbackresource.into_param().abi(), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.param().abi(), pfeedbackresource.param().abi(), core::mem::transmute(destdescriptor)) } #[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>) { @@ -2240,26 +2240,26 @@ impl ID3D12Device11 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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).base__.CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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).base__.CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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).base__.CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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() } 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), pdesc, core::mem::transmute(destdescriptor)) @@ -2283,15 +2283,15 @@ impl ID3D12Device12 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -2327,12 +2327,12 @@ impl ID3D12Device12 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -2360,31 +2360,31 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -2422,10 +2422,10 @@ impl ID3D12Device12 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -2437,25 +2437,25 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -2485,22 +2485,22 @@ impl ID3D12Device12 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -2516,9 +2516,9 @@ impl ID3D12Device12 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -2539,17 +2539,17 @@ impl ID3D12Device12 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -2568,25 +2568,25 @@ impl ID3D12Device12 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -2596,11 +2596,11 @@ impl ID3D12Device12 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -2634,17 +2634,17 @@ impl ID3D12Device12 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 @@ -2662,25 +2662,25 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateSamplerFeedbackUnorderedAccessView(&self, ptargetedresource: P0, pfeedbackresource: P1, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.into_param().abi(), pfeedbackresource.into_param().abi(), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.param().abi(), pfeedbackresource.param().abi(), core::mem::transmute(destdescriptor)) } #[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>) { @@ -2705,26 +2705,26 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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).base__.base__.CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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).base__.base__.CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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).base__.base__.CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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() } pub unsafe fn CreateSampler2(&self, pdesc: *const D3D12_SAMPLER_DESC2, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.CreateSampler2)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -2757,15 +2757,15 @@ impl ID3D12Device13 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -2801,12 +2801,12 @@ impl ID3D12Device13 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -2834,31 +2834,31 @@ impl ID3D12Device13 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -2896,10 +2896,10 @@ impl ID3D12Device13 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -2911,25 +2911,25 @@ impl ID3D12Device13 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -2959,22 +2959,22 @@ impl ID3D12Device13 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -2990,9 +2990,9 @@ impl ID3D12Device13 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -3013,17 +3013,17 @@ impl ID3D12Device13 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -3042,25 +3042,25 @@ impl ID3D12Device13 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -3070,11 +3070,11 @@ impl ID3D12Device13 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -3108,17 +3108,17 @@ impl ID3D12Device13 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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 @@ -3136,25 +3136,25 @@ impl ID3D12Device13 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateSamplerFeedbackUnorderedAccessView(&self, ptargetedresource: P0, pfeedbackresource: P1, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.into_param().abi(), pfeedbackresource.into_param().abi(), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.param().abi(), pfeedbackresource.param().abi(), core::mem::transmute(destdescriptor)) } #[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>) { @@ -3179,26 +3179,26 @@ impl ID3D12Device13 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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).base__.base__.base__.CreateCommittedResource3)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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).base__.base__.base__.CreatePlacedResource2)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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: P0, pcastableformats: Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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).base__.base__.base__.CreateReservedResource2)(windows_core::Interface::as_raw(self), pdesc, initiallayout, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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() } pub unsafe fn CreateSampler2(&self, pdesc: *const D3D12_SAMPLER_DESC2, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.CreateSampler2)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -3235,15 +3235,15 @@ impl ID3D12Device2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -3279,12 +3279,12 @@ impl ID3D12Device2 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -3312,31 +3312,31 @@ impl ID3D12Device2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -3374,10 +3374,10 @@ impl ID3D12Device2 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -3389,25 +3389,25 @@ impl ID3D12Device2 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -3437,22 +3437,22 @@ impl ID3D12Device2 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -3468,9 +3468,9 @@ impl ID3D12Device2 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -3501,15 +3501,15 @@ impl ID3D12Device3 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -3545,12 +3545,12 @@ impl ID3D12Device3 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -3578,31 +3578,31 @@ impl ID3D12Device3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -3640,10 +3640,10 @@ impl ID3D12Device3 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -3655,25 +3655,25 @@ impl ID3D12Device3 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -3703,22 +3703,22 @@ impl ID3D12Device3 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -3734,9 +3734,9 @@ impl ID3D12Device3 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -3757,17 +3757,17 @@ impl ID3D12Device3 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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.into_param().abi(), 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() } } unsafe impl Send for ID3D12Device3 {} @@ -3790,15 +3790,15 @@ impl ID3D12Device4 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -3834,12 +3834,12 @@ impl ID3D12Device4 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -3867,31 +3867,31 @@ impl ID3D12Device4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -3929,10 +3929,10 @@ impl ID3D12Device4 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -3944,25 +3944,25 @@ impl ID3D12Device4 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -3992,22 +3992,22 @@ impl ID3D12Device4 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -4023,9 +4023,9 @@ impl ID3D12Device4 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -4046,17 +4046,17 @@ impl ID3D12Device4 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -4075,25 +4075,25 @@ impl ID3D12Device4 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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(std::ptr::null())), 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 { @@ -4134,15 +4134,15 @@ impl ID3D12Device5 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -4178,12 +4178,12 @@ impl ID3D12Device5 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -4211,31 +4211,31 @@ impl ID3D12Device5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -4273,10 +4273,10 @@ impl ID3D12Device5 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -4288,25 +4288,25 @@ impl ID3D12Device5 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -4336,22 +4336,22 @@ impl ID3D12Device5 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -4367,9 +4367,9 @@ impl ID3D12Device5 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -4390,17 +4390,17 @@ impl ID3D12Device5 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -4419,25 +4419,25 @@ impl ID3D12Device5 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -4447,11 +4447,11 @@ impl ID3D12Device5 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -4512,15 +4512,15 @@ impl ID3D12Device6 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -4556,12 +4556,12 @@ impl ID3D12Device6 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -4589,31 +4589,31 @@ impl ID3D12Device6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -4651,10 +4651,10 @@ impl ID3D12Device6 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -4666,25 +4666,25 @@ impl ID3D12Device6 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -4714,22 +4714,22 @@ impl ID3D12Device6 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -4745,9 +4745,9 @@ impl ID3D12Device6 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -4768,17 +4768,17 @@ impl ID3D12Device6 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -4797,25 +4797,25 @@ impl ID3D12Device6 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -4825,11 +4825,11 @@ impl ID3D12Device6 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -4863,9 +4863,9 @@ impl ID3D12Device6 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } } unsafe impl Send for ID3D12Device6 {} @@ -4886,15 +4886,15 @@ impl ID3D12Device7 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -4930,12 +4930,12 @@ impl ID3D12Device7 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -4963,31 +4963,31 @@ impl ID3D12Device7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -5025,10 +5025,10 @@ impl ID3D12Device7 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -5040,25 +5040,25 @@ impl ID3D12Device7 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -5088,22 +5088,22 @@ impl ID3D12Device7 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -5119,9 +5119,9 @@ impl ID3D12Device7 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -5142,17 +5142,17 @@ impl ID3D12Device7 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -5171,25 +5171,25 @@ impl ID3D12Device7 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -5199,11 +5199,11 @@ impl ID3D12Device7 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -5237,17 +5237,17 @@ impl ID3D12Device7 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.into_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 @@ -5276,15 +5276,15 @@ impl ID3D12Device8 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -5320,12 +5320,12 @@ impl ID3D12Device8 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -5353,31 +5353,31 @@ impl ID3D12Device8 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -5415,10 +5415,10 @@ impl ID3D12Device8 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -5430,25 +5430,25 @@ impl ID3D12Device8 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -5478,22 +5478,22 @@ impl ID3D12Device8 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -5509,9 +5509,9 @@ impl ID3D12Device8 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -5532,17 +5532,17 @@ impl ID3D12Device8 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -5561,25 +5561,25 @@ impl ID3D12Device8 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -5589,11 +5589,11 @@ impl ID3D12Device8 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -5627,17 +5627,17 @@ impl ID3D12Device8 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 @@ -5655,25 +5655,25 @@ impl ID3D12Device8 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_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(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateSamplerFeedbackUnorderedAccessView(&self, ptargetedresource: P0, pfeedbackresource: P1, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.into_param().abi(), pfeedbackresource.into_param().abi(), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.param().abi(), pfeedbackresource.param().abi(), core::mem::transmute(destdescriptor)) } #[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>) { @@ -5714,15 +5714,15 @@ impl ID3D12Device9 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.GetNodeCount)(windows_core::Interface::as_raw(self)) @@ -5758,12 +5758,12 @@ impl ID3D12Device9 { } pub unsafe fn CreateCommandList(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: P0, pinitialstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandList)(windows_core::Interface::as_raw(self), nodemask, r#type, pcommandallocator.into_param().abi(), pinitialstate.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() @@ -5791,31 +5791,31 @@ impl ID3D12Device9 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateShaderResourceView(&self, presource: P0, pdesc: Option<*const D3D12_SHADER_RESOURCE_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateShaderResourceView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateUnorderedAccessView(&self, presource: P0, pcounterresource: P1, pdesc: Option<*const D3D12_UNORDERED_ACCESS_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcounterresource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateUnorderedAccessView)(windows_core::Interface::as_raw(self), presource.param().abi(), pcounterresource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateRenderTargetView(&self, presource: P0, pdesc: Option<*const D3D12_RENDER_TARGET_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateRenderTargetView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateDepthStencilView(&self, presource: P0, pdesc: Option<*const D3D12_DEPTH_STENCIL_VIEW_DESC>, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateDepthStencilView)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pdesc.unwrap_or(std::ptr::null())), core::mem::transmute(destdescriptor)) } pub unsafe fn CreateSampler(&self, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSampler)(windows_core::Interface::as_raw(self), pdesc, core::mem::transmute(destdescriptor)) @@ -5853,10 +5853,10 @@ impl ID3D12Device9 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreatePlacedResource)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &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<()> @@ -5868,25 +5868,25 @@ impl ID3D12Device9 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, access: u32, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.param().abi(), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), access, name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn OpenSharedHandleByName(&self, name: P0, access: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.OpenSharedHandleByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), access, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.MakeResident)(windows_core::Interface::as_raw(self), ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr())).ok() @@ -5916,22 +5916,22 @@ impl ID3D12Device9 { } pub unsafe fn SetStablePowerState(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetStablePowerState)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandSignature)(windows_core::Interface::as_raw(self), pdesc, prootsignature.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.GetResourceTiling)(windows_core::Interface::as_raw(self), ptiledresource.param().abi(), core::mem::transmute(pnumtilesforentireresource.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppackedmipdesc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pstandardtileshapefornonpackedmips.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pnumsubresourcetilings.unwrap_or(std::ptr::null_mut())), firstsubresourcetilingtoget, psubresourcetilingsfornonpackedmips) } pub unsafe fn GetAdapterLuid(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = core::mem::zeroed(); @@ -5947,9 +5947,9 @@ impl ID3D12Device9 { } pub unsafe fn SetEventOnMultipleFenceCompletion(&self, ppfences: *const Option, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetEventOnMultipleFenceCompletion)(windows_core::Interface::as_raw(self), core::mem::transmute(ppfences), pfencevalues, numfences, flags, hevent.param().abi()).ok() } pub unsafe fn SetResidencyPriority(&self, numobjects: u32, ppobjects: *const Option, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetResidencyPriority)(windows_core::Interface::as_raw(self), numobjects, core::mem::transmute(ppobjects), ppriorities).ok() @@ -5970,17 +5970,17 @@ impl ID3D12Device9 { } pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OpenExistingHeapFromFileMapping)(windows_core::Interface::as_raw(self), hfilemapping.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnqueueMakeResident(&self, flags: D3D12_RESIDENCY_FLAGS, ppobjects: &[Option], pfencetosignal: P0, fencevaluetosignal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.into_param().abi(), fencevaluetosignal).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.EnqueueMakeResident)(windows_core::Interface::as_raw(self), flags, ppobjects.len().try_into().unwrap(), core::mem::transmute(ppobjects.as_ptr()), pfencetosignal.param().abi(), fencevaluetosignal).ok() } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> windows_core::Result where @@ -5999,25 +5999,25 @@ impl ID3D12Device9 { #[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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommittedResource1)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateHeap1)(windows_core::Interface::as_raw(self), pdesc, pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateReservedResource1)(windows_core::Interface::as_raw(self), pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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 { @@ -6027,11 +6027,11 @@ impl ID3D12Device9 { } pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateLifetimeTracker)(windows_core::Interface::as_raw(self), powner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveDevice(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemoveDevice)(windows_core::Interface::as_raw(self)) @@ -6065,17 +6065,17 @@ impl ID3D12Device9 { } pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: P0, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.into_param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.param().abi(), core::mem::transmute(pbfurthermeasurementsdesired.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.AddToStateObject)(windows_core::Interface::as_raw(self), paddition, pstateobjecttogrowfrom.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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 @@ -6093,25 +6093,25 @@ impl ID3D12Device9 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), pprotectedsession.into_param().abi(), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.CreateCommittedResource2)(windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.into_param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() + (windows_core::Interface::vtable(self).base__.CreatePlacedResource1)(windows_core::Interface::as_raw(self), pheap.param().abi(), heapoffset, pdesc, initialstate, core::mem::transmute(poptimizedclearvalue.unwrap_or(std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateSamplerFeedbackUnorderedAccessView(&self, ptargetedresource: P0, pfeedbackresource: P1, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.into_param().abi(), pfeedbackresource.into_param().abi(), core::mem::transmute(destdescriptor)) + (windows_core::Interface::vtable(self).base__.CreateSamplerFeedbackUnorderedAccessView)(windows_core::Interface::as_raw(self), ptargetedresource.param().abi(), pfeedbackresource.param().abi(), core::mem::transmute(destdescriptor)) } #[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>) { @@ -6154,15 +6154,15 @@ impl ID3D12DeviceChild { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -6242,10 +6242,10 @@ impl ID3D12DeviceFactory { #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn CreateDevice(&self, adapter: P0, featurelevel: super::Direct3D::D3D_FEATURE_LEVEL, result__: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), adapter.into_param().abi(), 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() } } unsafe impl Send for ID3D12DeviceFactory {} @@ -6408,9 +6408,9 @@ impl ID3D12DeviceRemovedExtendedDataSettings2 { } pub unsafe fn UseMarkersOnlyAutoBreadcrumbs(&self, markersonly: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UseMarkersOnlyAutoBreadcrumbs)(windows_core::Interface::as_raw(self), markersonly.into_param().abi()) + (windows_core::Interface::vtable(self).UseMarkersOnlyAutoBreadcrumbs)(windows_core::Interface::as_raw(self), markersonly.param().abi()) } } unsafe impl Send for ID3D12DeviceRemovedExtendedDataSettings2 {} @@ -6431,15 +6431,15 @@ impl ID3D12Fence { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -6452,9 +6452,9 @@ impl ID3D12Fence { } pub unsafe fn SetEventOnCompletion(&self, value: u64, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent.param().abi()).ok() } pub unsafe fn Signal(&self, value: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Signal)(windows_core::Interface::as_raw(self), value).ok() @@ -6480,15 +6480,15 @@ impl ID3D12Fence1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -6501,9 +6501,9 @@ impl ID3D12Fence1 { } pub unsafe fn SetEventOnCompletion(&self, value: u64, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventOnCompletion)(windows_core::Interface::as_raw(self), value, hevent.param().abi()).ok() } pub unsafe fn Signal(&self, value: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Signal)(windows_core::Interface::as_raw(self), value).ok() @@ -6546,9 +6546,9 @@ impl ID3D12FunctionReflection { } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { @@ -6556,16 +6556,16 @@ impl ID3D12FunctionReflection { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDescByName(&self, name: P0, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), pdesc).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.param().abi(), pdesc).ok() } pub unsafe fn GetFunctionParameter(&self, parameterindex: i32) -> Option { (windows_core::Interface::vtable(self).GetFunctionParameter)(windows_core::Interface::as_raw(self), parameterindex) @@ -6603,15 +6603,15 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -6627,16 +6627,16 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (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), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -6649,10 +6649,10 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, 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>) { @@ -6660,25 +6660,25 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, 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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, 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) { @@ -6698,33 +6698,33 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (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), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -6774,9 +6774,9 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -6786,46 +6786,46 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, 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), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -6838,11 +6838,11 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), 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) } } unsafe impl Send for ID3D12GraphicsCommandList {} @@ -6925,15 +6925,15 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -6949,16 +6949,16 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -6971,10 +6971,10 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.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>) { @@ -6982,25 +6982,25 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.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) { @@ -7020,33 +7020,33 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -7096,9 +7096,9 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -7108,46 +7108,46 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.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).base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -7160,25 +7160,25 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), 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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), 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), min, max) @@ -7189,10 +7189,10 @@ impl ID3D12GraphicsCommandList1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, 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(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -7224,15 +7224,15 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -7248,16 +7248,16 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -7270,10 +7270,10 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.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>) { @@ -7281,25 +7281,25 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.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) { @@ -7319,33 +7319,33 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -7395,9 +7395,9 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -7407,46 +7407,46 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -7459,25 +7459,25 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.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).base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -7488,10 +7488,10 @@ impl ID3D12GraphicsCommandList2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -7518,15 +7518,15 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -7542,16 +7542,16 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -7564,10 +7564,10 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.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>) { @@ -7575,25 +7575,25 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.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) { @@ -7613,33 +7613,33 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -7689,9 +7689,9 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -7701,46 +7701,46 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -7753,25 +7753,25 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -7782,10 +7782,10 @@ impl ID3D12GraphicsCommandList3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -7795,9 +7795,9 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } } unsafe impl Send for ID3D12GraphicsCommandList3 {} @@ -7818,15 +7818,15 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -7842,16 +7842,16 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -7864,10 +7864,10 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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>) { @@ -7875,25 +7875,25 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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) { @@ -7913,33 +7913,33 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -7989,9 +7989,9 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -8001,46 +8001,46 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -8053,25 +8053,25 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -8082,10 +8082,10 @@ impl ID3D12GraphicsCommandList4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -8095,9 +8095,9 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[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) { @@ -8108,15 +8108,15 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn InitializeMetaCommand(&self, pmetacommand: P0, pinitializationparametersdata: Option<*const core::ffi::c_void>, initializationparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) } pub unsafe fn ExecuteMetaCommand(&self, pmetacommand: P0, pexecutionparametersdata: Option<*const core::ffi::c_void>, executionparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), executionparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), 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]>) { @@ -8130,9 +8130,9 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn SetPipelineState1(&self, pstateobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPipelineState1)(windows_core::Interface::as_raw(self), pstateobject.into_param().abi()) + (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), pdesc) @@ -8170,15 +8170,15 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -8194,16 +8194,16 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -8216,10 +8216,10 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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>) { @@ -8227,25 +8227,25 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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) { @@ -8265,33 +8265,33 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -8341,9 +8341,9 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -8353,46 +8353,46 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -8405,25 +8405,25 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -8434,10 +8434,10 @@ impl ID3D12GraphicsCommandList5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -8447,9 +8447,9 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[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) { @@ -8460,15 +8460,15 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn InitializeMetaCommand(&self, pmetacommand: P0, pinitializationparametersdata: Option<*const core::ffi::c_void>, initializationparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) } pub unsafe fn ExecuteMetaCommand(&self, pmetacommand: P0, pexecutionparametersdata: Option<*const core::ffi::c_void>, executionparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), executionparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), 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]>) { @@ -8482,9 +8482,9 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn SetPipelineState1(&self, pstateobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPipelineState1)(windows_core::Interface::as_raw(self), pstateobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.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).base__.DispatchRays)(windows_core::Interface::as_raw(self), pdesc) @@ -8494,9 +8494,9 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn RSSetShadingRateImage(&self, shadingrateimage: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.into_param().abi()) + (windows_core::Interface::vtable(self).RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.param().abi()) } } unsafe impl Send for ID3D12GraphicsCommandList5 {} @@ -8518,15 +8518,15 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -8542,16 +8542,16 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -8564,10 +8564,10 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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>) { @@ -8575,25 +8575,25 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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) { @@ -8613,33 +8613,33 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -8689,9 +8689,9 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -8701,46 +8701,46 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -8753,25 +8753,25 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -8782,10 +8782,10 @@ impl ID3D12GraphicsCommandList6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -8795,9 +8795,9 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[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) { @@ -8808,15 +8808,15 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn InitializeMetaCommand(&self, pmetacommand: P0, pinitializationparametersdata: Option<*const core::ffi::c_void>, initializationparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) } pub unsafe fn ExecuteMetaCommand(&self, pmetacommand: P0, pexecutionparametersdata: Option<*const core::ffi::c_void>, executionparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), executionparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), 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]>) { @@ -8830,9 +8830,9 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn SetPipelineState1(&self, pstateobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPipelineState1)(windows_core::Interface::as_raw(self), pstateobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.DispatchRays)(windows_core::Interface::as_raw(self), pdesc) @@ -8842,9 +8842,9 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn RSSetShadingRateImage(&self, shadingrateimage: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.into_param().abi()) + (windows_core::Interface::vtable(self).base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.param().abi()) } pub unsafe fn DispatchMesh(&self, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { (windows_core::Interface::vtable(self).DispatchMesh)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) @@ -8868,15 +8868,15 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -8892,16 +8892,16 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -8914,10 +8914,10 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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>) { @@ -8925,25 +8925,25 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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) { @@ -8963,33 +8963,33 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -9039,9 +9039,9 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -9051,46 +9051,46 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -9103,25 +9103,25 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -9132,10 +9132,10 @@ impl ID3D12GraphicsCommandList7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -9145,9 +9145,9 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[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) { @@ -9158,15 +9158,15 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn InitializeMetaCommand(&self, pmetacommand: P0, pinitializationparametersdata: Option<*const core::ffi::c_void>, initializationparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) } pub unsafe fn ExecuteMetaCommand(&self, pmetacommand: P0, pexecutionparametersdata: Option<*const core::ffi::c_void>, executionparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), executionparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), 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]>) { @@ -9180,9 +9180,9 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn SetPipelineState1(&self, pstateobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPipelineState1)(windows_core::Interface::as_raw(self), pstateobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.DispatchRays)(windows_core::Interface::as_raw(self), pdesc) @@ -9192,9 +9192,9 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn RSSetShadingRateImage(&self, shadingrateimage: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.param().abi()) } pub unsafe fn DispatchMesh(&self, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { (windows_core::Interface::vtable(self).base__.DispatchMesh)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) @@ -9221,15 +9221,15 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -9245,16 +9245,16 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -9267,10 +9267,10 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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>) { @@ -9278,25 +9278,25 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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) { @@ -9316,33 +9316,33 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -9392,9 +9392,9 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -9404,46 +9404,46 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -9456,25 +9456,25 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -9485,10 +9485,10 @@ impl ID3D12GraphicsCommandList8 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -9498,9 +9498,9 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[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) { @@ -9511,15 +9511,15 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn InitializeMetaCommand(&self, pmetacommand: P0, pinitializationparametersdata: Option<*const core::ffi::c_void>, initializationparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) } pub unsafe fn ExecuteMetaCommand(&self, pmetacommand: P0, pexecutionparametersdata: Option<*const core::ffi::c_void>, executionparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), executionparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), 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]>) { @@ -9533,9 +9533,9 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn SetPipelineState1(&self, pstateobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPipelineState1)(windows_core::Interface::as_raw(self), pstateobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.DispatchRays)(windows_core::Interface::as_raw(self), pdesc) @@ -9545,9 +9545,9 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn RSSetShadingRateImage(&self, shadingrateimage: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.param().abi()) } pub unsafe fn DispatchMesh(&self, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { (windows_core::Interface::vtable(self).base__.base__.DispatchMesh)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) @@ -9577,15 +9577,15 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -9601,16 +9601,16 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn Reset(&self, pallocator: P0, pinitialstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), pinitialstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi(), pinitialstate.param().abi()).ok() } pub unsafe fn ClearState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.DrawInstanced)(windows_core::Interface::as_raw(self), vertexcountperinstance, instancecount, startvertexlocation, startinstancelocation) @@ -9623,10 +9623,10 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn CopyBufferRegion(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, numbytes: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CopyBufferRegion)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, numbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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>) { @@ -9634,25 +9634,25 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn CopyResource(&self, pdstresource: P0, psrcresource: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), psrcresource.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CopyResource)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), psrcresource.param().abi()) } pub unsafe fn CopyTiles(&self, ptiledresource: P0, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: P1, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CopyTiles)(windows_core::Interface::as_raw(self), ptiledresource.into_param().abi(), ptileregionstartcoordinate, ptileregionsize, pbuffer.into_param().abi(), bufferstartoffsetinbytes, flags) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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: P1, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ResolveSubresource)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, psrcresource.into_param().abi(), srcsubresource, format) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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) { @@ -9672,33 +9672,33 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn SetPipelineState(&self, ppipelinestate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPipelineState)(windows_core::Interface::as_raw(self), ppipelinestate.param().abi()) } pub unsafe fn ResourceBarrier(&self, pbarriers: &[D3D12_RESOURCE_BARRIER]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ResourceBarrier)(windows_core::Interface::as_raw(self), pbarriers.len().try_into().unwrap(), core::mem::transmute(pbarriers.as_ptr())) } pub unsafe fn ExecuteBundle(&self, pcommandlist: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ExecuteBundle)(windows_core::Interface::as_raw(self), pcommandlist.param().abi()) } pub unsafe fn SetDescriptorHeaps(&self, ppdescriptorheaps: &[Option]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetDescriptorHeaps)(windows_core::Interface::as_raw(self), ppdescriptorheaps.len().try_into().unwrap(), core::mem::transmute(ppdescriptorheaps.as_ptr())) } pub unsafe fn SetComputeRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetComputeRootSignature)(windows_core::Interface::as_raw(self), prootsignature.param().abi()) } pub unsafe fn SetGraphicsRootSignature(&self, prootsignature: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetGraphicsRootSignature)(windows_core::Interface::as_raw(self), prootsignature.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetComputeRootDescriptorTable)(windows_core::Interface::as_raw(self), rootparameterindex, core::mem::transmute(basedescriptor)) @@ -9748,9 +9748,9 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>, rtssinglehandletodescriptorrange: P0, pdepthstencildescriptor: Option<*const D3D12_CPU_DESCRIPTOR_HANDLE>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.into_param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.OMSetRenderTargets)(windows_core::Interface::as_raw(self), numrendertargetdescriptors, core::mem::transmute(prendertargetdescriptors.unwrap_or(std::ptr::null())), rtssinglehandletodescriptorrange.param().abi(), core::mem::transmute(pdepthstencildescriptor.unwrap_or(std::ptr::null()))) } pub unsafe fn ClearDepthStencilView(&self, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, prects: &[super::super::Foundation::RECT]) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ClearDepthStencilView)(windows_core::Interface::as_raw(self), core::mem::transmute(depthstencilview), clearflags, depth, stencil, prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) @@ -9760,46 +9760,46 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[u32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewUint)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn ClearUnorderedAccessViewFloat(&self, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: P0, values: &[f32; 4], prects: &[super::super::Foundation::RECT]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.into_param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ClearUnorderedAccessViewFloat)(windows_core::Interface::as_raw(self), core::mem::transmute(viewgpuhandleincurrentheap), core::mem::transmute(viewcpuhandle), presource.param().abi(), core::mem::transmute(values.as_ptr()), prects.len().try_into().unwrap(), core::mem::transmute(prects.as_ptr())) } pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -9812,25 +9812,25 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn ExecuteIndirect(&self, pcommandsignature: P0, maxcommandcount: u32, pargumentbuffer: P1, argumentbufferoffset: u64, pcountbuffer: P2, countbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.into_param().abi(), maxcommandcount, pargumentbuffer.into_param().abi(), argumentbufferoffset, pcountbuffer.into_param().abi(), countbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.ExecuteIndirect)(windows_core::Interface::as_raw(self), pcommandsignature.param().abi(), maxcommandcount, pargumentbuffer.param().abi(), argumentbufferoffset, pcountbuffer.param().abi(), countbufferoffset) } pub unsafe fn AtomicCopyBufferUINT(&self, pdstbuffer: P0, dstoffset: u64, psrcbuffer: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AtomicCopyBufferUINT)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P1, srcoffset: u64, dependencies: u32, ppdependentresources: *const Option, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AtomicCopyBufferUINT64)(windows_core::Interface::as_raw(self), pdstbuffer.into_param().abi(), dstoffset, psrcbuffer.into_param().abi(), srcoffset, dependencies, core::mem::transmute(ppdependentresources), pdependentsubresourceranges) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.OMSetDepthBounds)(windows_core::Interface::as_raw(self), min, max) @@ -9841,10 +9841,10 @@ impl ID3D12GraphicsCommandList9 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn ResolveSubresourceRegion(&self, pdstresource: P0, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: P1, srcsubresource: u32, psrcrect: Option<*const super::super::Foundation::RECT>, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.into_param().abi(), dstsubresource, dstx, dsty, psrcresource.into_param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ResolveSubresourceRegion)(windows_core::Interface::as_raw(self), pdstresource.param().abi(), dstsubresource, dstx, dsty, psrcresource.param().abi(), srcsubresource, core::mem::transmute(psrcrect.unwrap_or(std::ptr::null())), format, resolvemode) } pub unsafe fn SetViewInstanceMask(&self, mask: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetViewInstanceMask)(windows_core::Interface::as_raw(self), mask) @@ -9854,9 +9854,9 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[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) { @@ -9867,15 +9867,15 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn InitializeMetaCommand(&self, pmetacommand: P0, pinitializationparametersdata: Option<*const core::ffi::c_void>, initializationparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.InitializeMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pinitializationparametersdata.unwrap_or(std::ptr::null())), initializationparametersdatasizeinbytes) } pub unsafe fn ExecuteMetaCommand(&self, pmetacommand: P0, pexecutionparametersdata: Option<*const core::ffi::c_void>, executionparametersdatasizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.into_param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), executionparametersdatasizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ExecuteMetaCommand)(windows_core::Interface::as_raw(self), pmetacommand.param().abi(), core::mem::transmute(pexecutionparametersdata.unwrap_or(std::ptr::null())), 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]>) { @@ -9889,9 +9889,9 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn SetPipelineState1(&self, pstateobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPipelineState1)(windows_core::Interface::as_raw(self), pstateobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.DispatchRays)(windows_core::Interface::as_raw(self), pdesc) @@ -9901,9 +9901,9 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn RSSetShadingRateImage(&self, shadingrateimage: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RSSetShadingRateImage)(windows_core::Interface::as_raw(self), shadingrateimage.param().abi()) } pub unsafe fn DispatchMesh(&self, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.DispatchMesh)(windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) @@ -9940,15 +9940,15 @@ impl ID3D12Heap { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -9980,15 +9980,15 @@ impl ID3D12Heap1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10095,33 +10095,33 @@ impl ID3D12InfoQueue { } pub unsafe fn AddMessage(&self, category: D3D12_MESSAGE_CATEGORY, severity: D3D12_MESSAGE_SEVERITY, id: D3D12_MESSAGE_ID, pdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.param().abi()).ok() } pub unsafe fn SetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.param().abi()).ok() } pub unsafe fn SetBreakOnID(&self, id: D3D12_MESSAGE_ID, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.param().abi()).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), category) @@ -10134,9 +10134,9 @@ impl ID3D12InfoQueue { } pub unsafe fn SetMuteDebugOutput(&self, bmute: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into_param().abi()) + (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.param().abi()) } pub unsafe fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self)) @@ -10263,33 +10263,33 @@ impl ID3D12InfoQueue1 { } pub unsafe fn AddMessage(&self, category: D3D12_MESSAGE_CATEGORY, severity: D3D12_MESSAGE_SEVERITY, id: D3D12_MESSAGE_ID, pdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddMessage)(windows_core::Interface::as_raw(self), category, severity, id, pdescription.param().abi()).ok() } pub unsafe fn AddApplicationMessage(&self, severity: D3D12_MESSAGE_SEVERITY, pdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.param().abi()).ok() } pub unsafe fn SetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBreakOnCategory)(windows_core::Interface::as_raw(self), category, benable.param().abi()).ok() } pub unsafe fn SetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity, benable.param().abi()).ok() } pub unsafe fn SetBreakOnID(&self, id: D3D12_MESSAGE_ID, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.param().abi()).ok() } pub unsafe fn GetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.GetBreakOnCategory)(windows_core::Interface::as_raw(self), category) @@ -10302,9 +10302,9 @@ impl ID3D12InfoQueue1 { } pub unsafe fn SetMuteDebugOutput(&self, bmute: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.param().abi()) } pub unsafe fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.GetMuteDebugOutput)(windows_core::Interface::as_raw(self)) @@ -10368,15 +10368,15 @@ impl ID3D12LifetimeTracker { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10386,9 +10386,9 @@ impl ID3D12LifetimeTracker { } pub unsafe fn DestroyOwnedObject(&self, pobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroyOwnedObject)(windows_core::Interface::as_raw(self), pobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroyOwnedObject)(windows_core::Interface::as_raw(self), pobject.param().abi()).ok() } } unsafe impl Send for ID3D12LifetimeTracker {} @@ -10423,15 +10423,15 @@ impl ID3D12MetaCommand { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10461,15 +10461,15 @@ impl ID3D12Object { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } unsafe impl Send for ID3D12Object {} @@ -10493,15 +10493,15 @@ impl ID3D12Pageable { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10527,15 +10527,15 @@ impl ID3D12PipelineLibrary { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10545,27 +10545,27 @@ impl ID3D12PipelineLibrary { } pub unsafe fn StorePipeline(&self, pname: P0, ppipeline: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StorePipeline)(windows_core::Interface::as_raw(self), pname.into_param().abi(), ppipeline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StorePipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), ppipeline.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn LoadGraphicsPipeline(&self, pname: P0, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).LoadGraphicsPipeline)(windows_core::Interface::as_raw(self), pname.into_param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadGraphicsPipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadComputePipeline(&self, pname: P0, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).LoadComputePipeline)(windows_core::Interface::as_raw(self), pname.into_param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadComputePipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSerializedSize(&self) -> usize { (windows_core::Interface::vtable(self).GetSerializedSize)(windows_core::Interface::as_raw(self)) @@ -10599,15 +10599,15 @@ impl ID3D12PipelineLibrary1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10617,27 +10617,27 @@ impl ID3D12PipelineLibrary1 { } pub unsafe fn StorePipeline(&self, pname: P0, ppipeline: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StorePipeline)(windows_core::Interface::as_raw(self), pname.into_param().abi(), ppipeline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StorePipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), ppipeline.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn LoadGraphicsPipeline(&self, pname: P0, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.LoadGraphicsPipeline)(windows_core::Interface::as_raw(self), pname.into_param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.LoadGraphicsPipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LoadComputePipeline(&self, pname: P0, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.LoadComputePipeline)(windows_core::Interface::as_raw(self), pname.into_param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.LoadComputePipeline)(windows_core::Interface::as_raw(self), pname.param().abi(), pdesc, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSerializedSize(&self) -> usize { (windows_core::Interface::vtable(self).base__.GetSerializedSize)(windows_core::Interface::as_raw(self)) @@ -10647,11 +10647,11 @@ impl ID3D12PipelineLibrary1 { } pub unsafe fn LoadPipeline(&self, pname: P0, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).LoadPipeline)(windows_core::Interface::as_raw(self), pname.into_param().abi(), 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__)) } } unsafe impl Send for ID3D12PipelineLibrary1 {} @@ -10672,15 +10672,15 @@ impl ID3D12PipelineState { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10715,15 +10715,15 @@ impl ID3D12ProtectedResourceSession { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10764,15 +10764,15 @@ impl ID3D12ProtectedResourceSession1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10818,15 +10818,15 @@ impl ID3D12ProtectedSession { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10863,15 +10863,15 @@ impl ID3D12QueryHeap { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10897,15 +10897,15 @@ impl ID3D12Resource { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -10965,15 +10965,15 @@ impl ID3D12Resource1 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -11030,15 +11030,15 @@ impl ID3D12Resource2 { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -11104,15 +11104,15 @@ impl ID3D12RootSignature { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -11146,9 +11146,9 @@ windows_core::imp::interface_hierarchy!(ID3D12SDKConfiguration, windows_core::IU impl ID3D12SDKConfiguration { pub unsafe fn SetSDKVersion(&self, sdkversion: u32, sdkpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSDKVersion)(windows_core::Interface::as_raw(self), sdkversion, sdkpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSDKVersion)(windows_core::Interface::as_raw(self), sdkversion, sdkpath.param().abi()).ok() } } unsafe impl Send for ID3D12SDKConfiguration {} @@ -11163,17 +11163,17 @@ windows_core::imp::interface_hierarchy!(ID3D12SDKConfiguration1, windows_core::I impl ID3D12SDKConfiguration1 { pub unsafe fn SetSDKVersion(&self, sdkversion: u32, sdkpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSDKVersion)(windows_core::Interface::as_raw(self), sdkversion, sdkpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSDKVersion)(windows_core::Interface::as_raw(self), sdkversion, sdkpath.param().abi()).ok() } pub unsafe fn CreateDeviceFactory(&self, sdkversion: u32, sdkpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateDeviceFactory)(windows_core::Interface::as_raw(self), sdkversion, sdkpath.into_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)) @@ -11198,15 +11198,15 @@ impl ID3D12ShaderCacheSession { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -11251,9 +11251,9 @@ impl ID3D12ShaderReflection { } pub unsafe fn GetConstantBufferByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetConstantBufferByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDesc(&self, resourceindex: u32, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> { @@ -11273,16 +11273,16 @@ impl ID3D12ShaderReflection { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D")] pub unsafe fn GetResourceBindingDescByName(&self, name: P0, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), pdesc).ok() + (windows_core::Interface::vtable(self).GetResourceBindingDescByName)(windows_core::Interface::as_raw(self), name.param().abi(), pdesc).ok() } pub unsafe fn GetMovInstructionCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetMovInstructionCount)(windows_core::Interface::as_raw(self)) @@ -11378,9 +11378,9 @@ impl ID3D12ShaderReflectionConstantBuffer { } pub unsafe fn GetVariableByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (windows_core::Interface::vtable(self).GetVariableByName)(windows_core::Interface::as_raw(self), name.param().abi()) } } unsafe impl Send for ID3D12ShaderReflectionConstantBuffer {} @@ -11405,18 +11405,18 @@ impl ID3D12ShaderReflectionType { } pub unsafe fn GetMemberTypeByName(&self, name: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMemberTypeByName)(windows_core::Interface::as_raw(self), name.into_param().abi()) + (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), index) } pub unsafe fn IsEqual(&self, ptype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), ptype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), ptype.param().abi()).ok() } pub unsafe fn GetSubType(&self) -> Option { (windows_core::Interface::vtable(self).GetSubType)(windows_core::Interface::as_raw(self)) @@ -11432,15 +11432,15 @@ impl ID3D12ShaderReflectionType { } pub unsafe fn IsOfType(&self, ptype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), ptype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), ptype.param().abi()).ok() } pub unsafe fn ImplementsInterface(&self, pbase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImplementsInterface)(windows_core::Interface::as_raw(self), pbase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImplementsInterface)(windows_core::Interface::as_raw(self), pbase.param().abi()).ok() } } unsafe impl Send for ID3D12ShaderReflectionType {} @@ -11491,16 +11491,16 @@ windows_core::imp::interface_hierarchy!(ID3D12SharingContract, windows_core::IUn impl ID3D12SharingContract { pub unsafe fn Present(&self, presource: P0, subresource: u32, window: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, window.into_param().abi()) + (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), presource.param().abi(), subresource, window.param().abi()) } pub unsafe fn SharedFenceSignal(&self, pfence: P0, fencevalue: u64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SharedFenceSignal)(windows_core::Interface::as_raw(self), pfence.into_param().abi(), 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), guid) @@ -11530,15 +11530,15 @@ impl ID3D12StateObject { } pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> where @@ -11558,15 +11558,15 @@ windows_core::imp::interface_hierarchy!(ID3D12StateObjectProperties, windows_cor impl ID3D12StateObjectProperties { pub unsafe fn GetShaderIdentifier(&self, pexportname: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetShaderIdentifier)(windows_core::Interface::as_raw(self), pexportname.into_param().abi()) + (windows_core::Interface::vtable(self).GetShaderIdentifier)(windows_core::Interface::as_raw(self), pexportname.param().abi()) } pub unsafe fn GetShaderStackSize(&self, pexportname: P0) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetShaderStackSize)(windows_core::Interface::as_raw(self), pexportname.into_param().abi()) + (windows_core::Interface::vtable(self).GetShaderStackSize)(windows_core::Interface::as_raw(self), pexportname.param().abi()) } pub unsafe fn GetPipelineStackSize(&self) -> u64 { (windows_core::Interface::vtable(self).GetPipelineStackSize)(windows_core::Interface::as_raw(self)) @@ -11626,9 +11626,9 @@ windows_core::imp::interface_hierarchy!(ID3D12Tools, windows_core::IUnknown); impl ID3D12Tools { pub unsafe fn EnableShaderInstrumentation(&self, benable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableShaderInstrumentation)(windows_core::Interface::as_raw(self), benable.into_param().abi()) + (windows_core::Interface::vtable(self).EnableShaderInstrumentation)(windows_core::Interface::as_raw(self), benable.param().abi()) } pub unsafe fn ShaderInstrumentationEnabled(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).ShaderInstrumentationEnabled)(windows_core::Interface::as_raw(self)) @@ -11666,17 +11666,17 @@ windows_core::imp::interface_hierarchy!(ID3D12VirtualizationGuestDevice, windows impl ID3D12VirtualizationGuestDevice { pub unsafe fn ShareWithHost(&self, pobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ShareWithHost)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShareWithHost)(windows_core::Interface::as_raw(self), pobject.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateFenceFd(&self, pfence: P0, fencevalue: u64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFenceFd)(windows_core::Interface::as_raw(self), pfence.into_param().abi(), 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__) } } unsafe impl Send for ID3D12VirtualizationGuestDevice {} 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 145dc5be2d..2e87a69d10 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn D3DPERF_BeginEvent(col: u32, wszname: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d9.dll" "system" fn D3DPERF_BeginEvent(col : u32, wszname : windows_core::PCWSTR) -> i32); - D3DPERF_BeginEvent(col, wszname.into_param().abi()) + D3DPERF_BeginEvent(col, wszname.param().abi()) } #[inline] pub unsafe fn D3DPERF_EndEvent() -> i32 { @@ -24,10 +24,10 @@ pub unsafe fn D3DPERF_QueryRepeatFrame() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn D3DPERF_SetMarker(col: u32, wszname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d9.dll" "system" fn D3DPERF_SetMarker(col : u32, wszname : windows_core::PCWSTR)); - D3DPERF_SetMarker(col, wszname.into_param().abi()) + D3DPERF_SetMarker(col, wszname.param().abi()) } #[inline] pub unsafe fn D3DPERF_SetOptions(dwoptions: u32) { @@ -37,10 +37,10 @@ pub unsafe fn D3DPERF_SetOptions(dwoptions: u32) { #[inline] pub unsafe fn D3DPERF_SetRegion(col: u32, wszname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d9.dll" "system" fn D3DPERF_SetRegion(col : u32, wszname : windows_core::PCWSTR)); - D3DPERF_SetRegion(col, wszname.into_param().abi()) + D3DPERF_SetRegion(col, wszname.param().abi()) } #[inline] pub unsafe fn Direct3DCreate9(sdkversion: u32) -> Option { @@ -76,18 +76,18 @@ impl IDirect3D9 { } pub unsafe fn CheckDeviceType(&self, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckDeviceType)(windows_core::Interface::as_raw(self), adapter, devtype, adapterformat, backbufferformat, bwindowed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CheckDeviceType)(windows_core::Interface::as_raw(self), adapter, devtype, adapterformat, backbufferformat, bwindowed.param().abi()).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), adapter, devicetype, adapterformat, usage, rtype, checkformat).ok() } pub unsafe fn CheckDeviceMultiSampleType(&self, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: P0, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckDeviceMultiSampleType)(windows_core::Interface::as_raw(self), adapter, devicetype, surfaceformat, windowed.into_param().abi(), multisampletype, pqualitylevels).ok() + (windows_core::Interface::vtable(self).CheckDeviceMultiSampleType)(windows_core::Interface::as_raw(self), adapter, devicetype, surfaceformat, windowed.param().abi(), multisampletype, 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), adapter, devicetype, adapterformat, rendertargetformat, depthstencilformat).ok() @@ -104,9 +104,9 @@ impl IDirect3D9 { } pub unsafe fn CreateDevice(&self, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: P0, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ppreturneddeviceinterface: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow.into_param().abi(), behaviorflags, ppresentationparameters, core::mem::transmute(ppreturneddeviceinterface)).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow.param().abi(), behaviorflags, ppresentationparameters, core::mem::transmute(ppreturneddeviceinterface)).ok() } } #[repr(C)] @@ -153,18 +153,18 @@ impl IDirect3D9Ex { } pub unsafe fn CheckDeviceType(&self, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CheckDeviceType)(windows_core::Interface::as_raw(self), adapter, devtype, adapterformat, backbufferformat, bwindowed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CheckDeviceType)(windows_core::Interface::as_raw(self), adapter, devtype, adapterformat, backbufferformat, bwindowed.param().abi()).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).base__.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: P0, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CheckDeviceMultiSampleType)(windows_core::Interface::as_raw(self), adapter, devicetype, surfaceformat, windowed.into_param().abi(), multisampletype, pqualitylevels).ok() + (windows_core::Interface::vtable(self).base__.CheckDeviceMultiSampleType)(windows_core::Interface::as_raw(self), adapter, devicetype, surfaceformat, windowed.param().abi(), multisampletype, 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).base__.CheckDepthStencilMatch)(windows_core::Interface::as_raw(self), adapter, devicetype, adapterformat, rendertargetformat, depthstencilformat).ok() @@ -181,9 +181,9 @@ impl IDirect3D9Ex { } pub unsafe fn CreateDevice(&self, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: P0, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ppreturneddeviceinterface: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow.into_param().abi(), behaviorflags, ppresentationparameters, core::mem::transmute(ppreturneddeviceinterface)).ok() + (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow.param().abi(), behaviorflags, ppresentationparameters, core::mem::transmute(ppreturneddeviceinterface)).ok() } pub unsafe fn GetAdapterModeCountEx(&self, adapter: u32, pfilter: *const D3DDISPLAYMODEFILTER) -> u32 { (windows_core::Interface::vtable(self).GetAdapterModeCountEx)(windows_core::Interface::as_raw(self), adapter, pfilter) @@ -196,9 +196,9 @@ impl IDirect3D9Ex { } pub unsafe fn CreateDeviceEx(&self, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: P0, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX, ppreturneddeviceinterface: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow.into_param().abi(), behaviorflags, ppresentationparameters, pfullscreendisplaymode, core::mem::transmute(ppreturneddeviceinterface)).ok() + (windows_core::Interface::vtable(self).CreateDeviceEx)(windows_core::Interface::as_raw(self), adapter, devicetype, hfocuswindow.param().abi(), behaviorflags, ppresentationparameters, 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), adapter, pluid).ok() @@ -369,18 +369,18 @@ impl IDirect3DDevice9 { } pub unsafe fn SetCursorProperties(&self, xhotspot: u32, yhotspot: u32, pcursorbitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCursorProperties)(windows_core::Interface::as_raw(self), xhotspot, yhotspot, pcursorbitmap.into_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), x, y, flags) } pub unsafe fn ShowCursor(&self, bshow: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowCursor)(windows_core::Interface::as_raw(self), bshow.into_param().abi()) + (windows_core::Interface::vtable(self).ShowCursor)(windows_core::Interface::as_raw(self), bshow.param().abi()) } pub unsafe fn CreateAdditionalSwapChain(&self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreateAdditionalSwapChain)(windows_core::Interface::as_raw(self), ppresentationparameters, core::mem::transmute(pswapchain)).ok() @@ -398,9 +398,9 @@ 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: P0, pdirtyregion: *const super::Gdi::RGNDATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.into_param().abi(), pdirtyregion).ok() + (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.param().abi(), pdirtyregion).ok() } pub unsafe fn GetBackBuffer(&self, iswapchain: u32, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -411,9 +411,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetDialogBoxMode(&self, benabledialogs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDialogBoxMode)(windows_core::Interface::as_raw(self), benabledialogs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDialogBoxMode)(windows_core::Interface::as_raw(self), benabledialogs.param().abi()).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), iswapchain, flags, pramp) @@ -438,64 +438,64 @@ impl IDirect3DDevice9 { } pub unsafe fn CreateRenderTarget(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: P0, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRenderTarget)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.into_param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() + (windows_core::Interface::vtable(self).CreateRenderTarget)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() } pub unsafe fn CreateDepthStencilSurface(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: P0, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDepthStencilSurface)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.into_param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilSurface)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() } pub unsafe fn UpdateSurface(&self, psourcesurface: P0, psourcerect: *const super::super::Foundation::RECT, pdestinationsurface: P1, pdestpoint: *const super::super::Foundation::POINT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSurface)(windows_core::Interface::as_raw(self), psourcesurface.into_param().abi(), psourcerect, pdestinationsurface.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateTexture)(windows_core::Interface::as_raw(self), psourcetexture.into_param().abi(), pdestinationtexture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateTexture)(windows_core::Interface::as_raw(self), psourcetexture.param().abi(), pdestinationtexture.param().abi()).ok() } pub unsafe fn GetRenderTargetData(&self, prendertarget: P0, pdestsurface: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRenderTargetData)(windows_core::Interface::as_raw(self), prendertarget.into_param().abi(), pdestsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetRenderTargetData)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), pdestsurface.param().abi()).ok() } pub unsafe fn GetFrontBufferData(&self, iswapchain: u32, pdestsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFrontBufferData)(windows_core::Interface::as_raw(self), iswapchain, pdestsurface.into_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: P1, pdestrect: *const super::super::Foundation::RECT, filter: D3DTEXTUREFILTERTYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StretchRect)(windows_core::Interface::as_raw(self), psourcesurface.into_param().abi(), psourcerect, pdestsurface.into_param().abi(), pdestrect, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ColorFill)(windows_core::Interface::as_raw(self), psurface.into_param().abi(), prect, 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), width, height, format, pool, core::mem::transmute(ppsurface), psharedhandle).ok() } pub unsafe fn SetRenderTarget(&self, rendertargetindex: u32, prendertarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRenderTarget)(windows_core::Interface::as_raw(self), rendertargetindex, prendertarget.into_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__ = std::mem::zeroed(); @@ -503,9 +503,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetDepthStencilSurface(&self, pnewzstencil: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDepthStencilSurface)(windows_core::Interface::as_raw(self), pnewzstencil.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDepthStencilSurface)(windows_core::Interface::as_raw(self), pnewzstencil.param().abi()).ok() } pub unsafe fn GetDepthStencilSurface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -554,9 +554,9 @@ impl IDirect3DDevice9 { } pub unsafe fn LightEnable(&self, index: u32, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LightEnable)(windows_core::Interface::as_raw(self), index, enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LightEnable)(windows_core::Interface::as_raw(self), index, enable.param().abi()).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), index, penable).ok() @@ -596,9 +596,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetTexture(&self, stage: u32, ptexture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTexture)(windows_core::Interface::as_raw(self), stage, ptexture.into_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), stage, r#type, pvalue).ok() @@ -637,9 +637,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetSoftwareVertexProcessing(&self, bsoftware: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self), bsoftware.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self), bsoftware.param().abi()).ok() } pub unsafe fn GetSoftwareVertexProcessing(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self)) @@ -664,10 +664,10 @@ impl IDirect3DDevice9 { } pub unsafe fn ProcessVertices(&self, srcstartindex: u32, destindex: u32, vertexcount: u32, pdestbuffer: P0, pvertexdecl: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessVertices)(windows_core::Interface::as_raw(self), srcstartindex, destindex, vertexcount, pdestbuffer.into_param().abi(), pvertexdecl.into_param().abi(), 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__ = std::mem::zeroed(); @@ -675,9 +675,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetVertexDeclaration(&self, pdecl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVertexDeclaration)(windows_core::Interface::as_raw(self), pdecl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVertexDeclaration)(windows_core::Interface::as_raw(self), pdecl.param().abi()).ok() } pub unsafe fn GetVertexDeclaration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -695,9 +695,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetVertexShader(&self, pshader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVertexShader)(windows_core::Interface::as_raw(self), pshader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVertexShader)(windows_core::Interface::as_raw(self), pshader.param().abi()).ok() } pub unsafe fn GetVertexShader(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -723,9 +723,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetStreamSource(&self, streamnumber: u32, pstreamdata: P0, offsetinbytes: u32, stride: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSource)(windows_core::Interface::as_raw(self), streamnumber, pstreamdata.into_param().abi(), offsetinbytes, 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), streamnumber, core::mem::transmute(ppstreamdata), poffsetinbytes, pstride).ok() @@ -738,9 +738,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetIndices(&self, pindexdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIndices)(windows_core::Interface::as_raw(self), pindexdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIndices)(windows_core::Interface::as_raw(self), pindexdata.param().abi()).ok() } pub unsafe fn GetIndices(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -752,9 +752,9 @@ impl IDirect3DDevice9 { } pub unsafe fn SetPixelShader(&self, pshader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPixelShader)(windows_core::Interface::as_raw(self), pshader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPixelShader)(windows_core::Interface::as_raw(self), pshader.param().abi()).ok() } pub unsafe fn GetPixelShader(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -963,18 +963,18 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetCursorProperties(&self, xhotspot: u32, yhotspot: u32, pcursorbitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCursorProperties)(windows_core::Interface::as_raw(self), xhotspot, yhotspot, pcursorbitmap.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetCursorPosition)(windows_core::Interface::as_raw(self), x, y, flags) } pub unsafe fn ShowCursor(&self, bshow: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShowCursor)(windows_core::Interface::as_raw(self), bshow.into_param().abi()) + (windows_core::Interface::vtable(self).base__.ShowCursor)(windows_core::Interface::as_raw(self), bshow.param().abi()) } pub unsafe fn CreateAdditionalSwapChain(&self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CreateAdditionalSwapChain)(windows_core::Interface::as_raw(self), ppresentationparameters, core::mem::transmute(pswapchain)).ok() @@ -992,9 +992,9 @@ impl IDirect3DDevice9Ex { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Present(&self, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: P0, pdirtyregion: *const super::Gdi::RGNDATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.into_param().abi(), pdirtyregion).ok() + (windows_core::Interface::vtable(self).base__.Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.param().abi(), pdirtyregion).ok() } pub unsafe fn GetBackBuffer(&self, iswapchain: u32, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1005,9 +1005,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetDialogBoxMode(&self, benabledialogs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDialogBoxMode)(windows_core::Interface::as_raw(self), benabledialogs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDialogBoxMode)(windows_core::Interface::as_raw(self), benabledialogs.param().abi()).ok() } pub unsafe fn SetGammaRamp(&self, iswapchain: u32, flags: u32, pramp: *const D3DGAMMARAMP) { (windows_core::Interface::vtable(self).base__.SetGammaRamp)(windows_core::Interface::as_raw(self), iswapchain, flags, pramp) @@ -1032,64 +1032,64 @@ impl IDirect3DDevice9Ex { } pub unsafe fn CreateRenderTarget(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: P0, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateRenderTarget)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.into_param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() + (windows_core::Interface::vtable(self).base__.CreateRenderTarget)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() } pub unsafe fn CreateDepthStencilSurface(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: P0, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDepthStencilSurface)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.into_param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() + (windows_core::Interface::vtable(self).base__.CreateDepthStencilSurface)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.param().abi(), core::mem::transmute(ppsurface), psharedhandle).ok() } pub unsafe fn UpdateSurface(&self, psourcesurface: P0, psourcerect: *const super::super::Foundation::RECT, pdestinationsurface: P1, pdestpoint: *const super::super::Foundation::POINT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateSurface)(windows_core::Interface::as_raw(self), psourcesurface.into_param().abi(), psourcerect, pdestinationsurface.into_param().abi(), pdestpoint).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateTexture)(windows_core::Interface::as_raw(self), psourcetexture.into_param().abi(), pdestinationtexture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateTexture)(windows_core::Interface::as_raw(self), psourcetexture.param().abi(), pdestinationtexture.param().abi()).ok() } pub unsafe fn GetRenderTargetData(&self, prendertarget: P0, pdestsurface: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetRenderTargetData)(windows_core::Interface::as_raw(self), prendertarget.into_param().abi(), pdestsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetRenderTargetData)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), pdestsurface.param().abi()).ok() } pub unsafe fn GetFrontBufferData(&self, iswapchain: u32, pdestsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetFrontBufferData)(windows_core::Interface::as_raw(self), iswapchain, pdestsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1, pdestrect: *const super::super::Foundation::RECT, filter: D3DTEXTUREFILTERTYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StretchRect)(windows_core::Interface::as_raw(self), psourcesurface.into_param().abi(), psourcerect, pdestsurface.into_param().abi(), pdestrect, filter).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ColorFill)(windows_core::Interface::as_raw(self), psurface.into_param().abi(), prect, color).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CreateOffscreenPlainSurface)(windows_core::Interface::as_raw(self), width, height, format, pool, core::mem::transmute(ppsurface), psharedhandle).ok() } pub unsafe fn SetRenderTarget(&self, rendertargetindex: u32, prendertarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRenderTarget)(windows_core::Interface::as_raw(self), rendertargetindex, prendertarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1097,9 +1097,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetDepthStencilSurface(&self, pnewzstencil: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDepthStencilSurface)(windows_core::Interface::as_raw(self), pnewzstencil.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDepthStencilSurface)(windows_core::Interface::as_raw(self), pnewzstencil.param().abi()).ok() } pub unsafe fn GetDepthStencilSurface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1148,9 +1148,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn LightEnable(&self, index: u32, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LightEnable)(windows_core::Interface::as_raw(self), index, enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LightEnable)(windows_core::Interface::as_raw(self), index, enable.param().abi()).ok() } pub unsafe fn GetLightEnable(&self, index: u32, penable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetLightEnable)(windows_core::Interface::as_raw(self), index, penable).ok() @@ -1190,9 +1190,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetTexture(&self, stage: u32, ptexture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTexture)(windows_core::Interface::as_raw(self), stage, ptexture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetTextureStageState)(windows_core::Interface::as_raw(self), stage, r#type, pvalue).ok() @@ -1231,9 +1231,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetSoftwareVertexProcessing(&self, bsoftware: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self), bsoftware.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self), bsoftware.param().abi()).ok() } pub unsafe fn GetSoftwareVertexProcessing(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.GetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self)) @@ -1258,10 +1258,10 @@ impl IDirect3DDevice9Ex { } pub unsafe fn ProcessVertices(&self, srcstartindex: u32, destindex: u32, vertexcount: u32, pdestbuffer: P0, pvertexdecl: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ProcessVertices)(windows_core::Interface::as_raw(self), srcstartindex, destindex, vertexcount, pdestbuffer.into_param().abi(), pvertexdecl.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1269,9 +1269,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetVertexDeclaration(&self, pdecl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVertexDeclaration)(windows_core::Interface::as_raw(self), pdecl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVertexDeclaration)(windows_core::Interface::as_raw(self), pdecl.param().abi()).ok() } pub unsafe fn GetVertexDeclaration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1289,9 +1289,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetVertexShader(&self, pshader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVertexShader)(windows_core::Interface::as_raw(self), pshader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVertexShader)(windows_core::Interface::as_raw(self), pshader.param().abi()).ok() } pub unsafe fn GetVertexShader(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1317,9 +1317,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetStreamSource(&self, streamnumber: u32, pstreamdata: P0, offsetinbytes: u32, stride: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStreamSource)(windows_core::Interface::as_raw(self), streamnumber, pstreamdata.into_param().abi(), offsetinbytes, stride).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetStreamSource)(windows_core::Interface::as_raw(self), streamnumber, core::mem::transmute(ppstreamdata), poffsetinbytes, pstride).ok() @@ -1332,9 +1332,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetIndices(&self, pindexdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIndices)(windows_core::Interface::as_raw(self), pindexdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIndices)(windows_core::Interface::as_raw(self), pindexdata.param().abi()).ok() } pub unsafe fn GetIndices(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1346,9 +1346,9 @@ impl IDirect3DDevice9Ex { } pub unsafe fn SetPixelShader(&self, pshader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPixelShader)(windows_core::Interface::as_raw(self), pshader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPixelShader)(windows_core::Interface::as_raw(self), pshader.param().abi()).ok() } pub unsafe fn GetPixelShader(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1390,19 +1390,19 @@ impl IDirect3DDevice9Ex { } pub unsafe fn ComposeRects(&self, psrc: P0, pdst: P1, psrcrectdescs: P2, numrects: u32, pdstrectdescs: P3, operation: D3DCOMPOSERECTSOP, xoffset: i32, yoffset: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ComposeRects)(windows_core::Interface::as_raw(self), psrc.into_param().abi(), pdst.into_param().abi(), psrcrectdescs.into_param().abi(), numrects, pdstrectdescs.into_param().abi(), operation, xoffset, 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: P0, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PresentEx)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.into_param().abi(), pdirtyregion, dwflags).ok() + (windows_core::Interface::vtable(self).PresentEx)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.param().abi(), 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), ppriority).ok() @@ -1424,24 +1424,24 @@ impl IDirect3DDevice9Ex { } pub unsafe fn CheckDeviceState(&self, hdestinationwindow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckDeviceState)(windows_core::Interface::as_raw(self), hdestinationwindow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CheckDeviceState)(windows_core::Interface::as_raw(self), hdestinationwindow.param().abi()).ok() } pub unsafe fn CreateRenderTargetEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: P0, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRenderTargetEx)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.into_param().abi(), core::mem::transmute(ppsurface), psharedhandle, usage).ok() + (windows_core::Interface::vtable(self).CreateRenderTargetEx)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, lockable.param().abi(), core::mem::transmute(ppsurface), 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), width, height, format, pool, core::mem::transmute(ppsurface), psharedhandle, usage).ok() } pub unsafe fn CreateDepthStencilSurfaceEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: P0, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDepthStencilSurfaceEx)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.into_param().abi(), core::mem::transmute(ppsurface), psharedhandle, usage).ok() + (windows_core::Interface::vtable(self).CreateDepthStencilSurfaceEx)(windows_core::Interface::as_raw(self), width, height, format, multisample, multisamplequality, discard.param().abi(), core::mem::transmute(ppsurface), 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), ppresentationparameters, pfullscreendisplaymode).ok() @@ -1672,9 +1672,9 @@ impl IDirect3DSurface9 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, hdc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), hdc.param().abi()).ok() } } #[repr(C)] @@ -1699,15 +1699,15 @@ 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: P0, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.into_param().abi(), pdirtyregion, dwflags).ok() + (windows_core::Interface::vtable(self).Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.param().abi(), pdirtyregion, dwflags).ok() } pub unsafe fn GetFrontBufferData(&self, pdestsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFrontBufferData)(windows_core::Interface::as_raw(self), pdestsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetFrontBufferData)(windows_core::Interface::as_raw(self), pdestsurface.param().abi()).ok() } pub unsafe fn GetBackBuffer(&self, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1747,15 +1747,15 @@ impl IDirect3DSwapChain9Ex { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Present(&self, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: P0, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.into_param().abi(), pdirtyregion, dwflags).ok() + (windows_core::Interface::vtable(self).base__.Present)(windows_core::Interface::as_raw(self), psourcerect, pdestrect, hdestwindowoverride.param().abi(), pdirtyregion, dwflags).ok() } pub unsafe fn GetFrontBufferData(&self, pdestsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetFrontBufferData)(windows_core::Interface::as_raw(self), pdestsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetFrontBufferData)(windows_core::Interface::as_raw(self), pdestsurface.param().abi()).ok() } pub unsafe fn GetBackBuffer(&self, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 1a47343f88..8a3c74268f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs @@ -19,17 +19,17 @@ impl IDirect3DDevice9On12 { #[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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnwrapUnderlyingResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), pcommandqueue.into_param().abi(), riid, ppvresource12).ok() + (windows_core::Interface::vtable(self).UnwrapUnderlyingResource)(windows_core::Interface::as_raw(self), presource.param().abi(), pcommandqueue.param().abi(), riid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnUnderlyingResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), numsync, psignalvalues, core::mem::transmute(ppfences)).ok() + (windows_core::Interface::vtable(self).ReturnUnderlyingResource)(windows_core::Interface::as_raw(self), presource.param().abi(), numsync, 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 485f1193df..a1d2a92947 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs @@ -1,61 +1,61 @@ #[inline] pub unsafe fn DCompositionAttachMouseDragToHwnd(visual: P0, hwnd: P1, enable: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), hwnd.into_param().abi(), enable.into_param().abi()).ok() + DCompositionAttachMouseDragToHwnd(visual.param().abi(), hwnd.param().abi(), enable.param().abi()).ok() } #[inline] pub unsafe fn DCompositionAttachMouseWheelToHwnd(visual: P0, hwnd: P1, enable: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), hwnd.into_param().abi(), enable.into_param().abi()).ok() + DCompositionAttachMouseWheelToHwnd(visual.param().abi(), hwnd.param().abi(), enable.param().abi()).ok() } #[inline] pub unsafe fn DCompositionBoostCompositorClock(enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dcomp.dll" "system" fn DCompositionBoostCompositorClock(enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DCompositionBoostCompositorClock(enable.into_param().abi()).ok() + DCompositionBoostCompositorClock(enable.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Dxgi")] #[inline] pub unsafe fn DCompositionCreateDevice(dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("dcomp.dll" "system" fn DCompositionCreateDevice(dxgidevice : * mut core::ffi::c_void, iid : *const windows_core::GUID, dcompositiondevice : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - DCompositionCreateDevice(dxgidevice.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DCompositionCreateDevice(dxgidevice.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn DCompositionCreateDevice2(renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("dcomp.dll" "system" fn DCompositionCreateDevice2(renderingdevice : * mut core::ffi::c_void, iid : *const windows_core::GUID, dcompositiondevice : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - DCompositionCreateDevice2(renderingdevice.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DCompositionCreateDevice2(renderingdevice.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn DCompositionCreateDevice3(renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("dcomp.dll" "system" fn DCompositionCreateDevice3(renderingdevice : * mut core::ffi::c_void, iid : *const windows_core::GUID, dcompositiondevice : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - DCompositionCreateDevice3(renderingdevice.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DCompositionCreateDevice3(renderingdevice.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -90,9 +90,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionAffineTransform2DEffect, wi impl IDCompositionAffineTransform2DEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetInterpolationMode(&self, interpolationmode: super::Direct2D::Common::D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE) -> windows_core::Result<()> { @@ -108,18 +108,18 @@ impl IDCompositionAffineTransform2DEffect { } pub unsafe fn SetTransformMatrixElement(&self, row: i32, column: i32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.into_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), row, column, value).ok() } pub unsafe fn SetSharpness(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSharpness)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), sharpness).ok() @@ -182,9 +182,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionArithmeticCompositeEffect, impl IDCompositionArithmeticCompositeEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetCoefficients(&self, coefficients: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::Result<()> { @@ -192,42 +192,42 @@ impl IDCompositionArithmeticCompositeEffect { } pub unsafe fn SetClampOutput(&self, clampoutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clampoutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clampoutput.param().abi()).ok() } pub unsafe fn SetCoefficient1(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCoefficient1)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), coeffcient1).ok() } pub unsafe fn SetCoefficient2(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCoefficient2)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), coefficient2).ok() } pub unsafe fn SetCoefficient3(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCoefficient3)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), coefficient3).ok() } pub unsafe fn SetCoefficient4(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCoefficient4)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), coefficient4).ok() @@ -255,9 +255,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionBlendEffect, windows_core:: impl IDCompositionBlendEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetMode(&self, mode: super::Direct2D::Common::D2D1_BLEND_MODE) -> windows_core::Result<()> { @@ -277,9 +277,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionBrightnessEffect, windows_c impl IDCompositionBrightnessEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetWhitePoint(&self, whitepoint: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::Result<()> { @@ -291,36 +291,36 @@ impl IDCompositionBrightnessEffect { } pub unsafe fn SetWhitePointX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWhitePointX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), whitepointx).ok() } pub unsafe fn SetWhitePointY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWhitePointY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), whitepointy).ok() } pub unsafe fn SetBlackPointX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlackPointX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), blackpointx).ok() } pub unsafe fn SetBlackPointY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlackPointY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), blackpointy).ok() @@ -358,9 +358,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionColorMatrixEffect, windows_ impl IDCompositionColorMatrixEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetMatrix(&self, matrix: *const super::Direct2D::Common::D2D_MATRIX_5X4_F) -> windows_core::Result<()> { @@ -368,9 +368,9 @@ impl IDCompositionColorMatrixEffect { } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.into_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), row, column, value).ok() @@ -381,9 +381,9 @@ impl IDCompositionColorMatrixEffect { } pub unsafe fn SetClampOutput(&self, clamp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clamp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clamp.param().abi()).ok() } } #[repr(C)] @@ -406,9 +406,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionCompositeEffect, windows_co impl IDCompositionCompositeEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetMode(&self, mode: super::Direct2D::Common::D2D1_COMPOSITE_MODE) -> windows_core::Result<()> { @@ -472,10 +472,10 @@ impl IDCompositionDesktopDevice { } pub unsafe fn CreateSurfaceFactory(&self, renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -545,25 +545,25 @@ impl IDCompositionDesktopDevice { } pub unsafe fn CreateTargetForHwnd(&self, hwnd: P0, topmost: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), topmost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), hwnd.param().abi(), topmost.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSurfaceFromHandle(&self, handle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), handle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), handle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSurfaceFromHwnd(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -588,11 +588,11 @@ impl IDCompositionDevice { } pub unsafe fn CreateTargetForHwnd(&self, hwnd: P0, topmost: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), topmost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTargetForHwnd)(windows_core::Interface::as_raw(self), hwnd.param().abi(), topmost.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateVisual(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -610,17 +610,17 @@ impl IDCompositionDevice { } pub unsafe fn CreateSurfaceFromHandle(&self, handle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), handle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHandle)(windows_core::Interface::as_raw(self), handle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSurfaceFromHwnd(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTranslateTransform(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -739,10 +739,10 @@ impl IDCompositionDevice2 { } pub unsafe fn CreateSurfaceFactory(&self, renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -864,10 +864,10 @@ impl IDCompositionDevice3 { } pub unsafe fn CreateSurfaceFactory(&self, renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -1024,10 +1024,10 @@ impl IDCompositionDevice4 { } pub unsafe fn CreateSurfaceFactory(&self, renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateSurfaceFactory)(windows_core::Interface::as_raw(self), renderingdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[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 { @@ -1149,17 +1149,17 @@ impl IDCompositionDevice4 { } pub unsafe fn CheckCompositionTextureSupport(&self, renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckCompositionTextureSupport)(windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckCompositionTextureSupport)(windows_core::Interface::as_raw(self), renderingdevice.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateCompositionTexture(&self, d3dtexture: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCompositionTexture)(windows_core::Interface::as_raw(self), d3dtexture.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompositionTexture)(windows_core::Interface::as_raw(self), d3dtexture.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1196,18 +1196,18 @@ windows_core::imp::interface_hierarchy!(IDCompositionEffectGroup, windows_core:: impl IDCompositionEffectGroup { pub unsafe fn SetOpacity(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), opacity).ok() } pub unsafe fn SetTransform3D(&self, transform3d: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransform3D)(windows_core::Interface::as_raw(self), transform3d.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransform3D)(windows_core::Interface::as_raw(self), transform3d.param().abi()).ok() } } #[repr(C)] @@ -1222,9 +1222,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionFilterEffect, windows_core: impl IDCompositionFilterEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } } #[repr(C)] @@ -1237,15 +1237,15 @@ windows_core::imp::interface_hierarchy!(IDCompositionGaussianBlurEffect, windows impl IDCompositionGaussianBlurEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } pub unsafe fn SetStandardDeviation(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStandardDeviation)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), amount).ok() @@ -1270,15 +1270,15 @@ windows_core::imp::interface_hierarchy!(IDCompositionHueRotationEffect, windows_ impl IDCompositionHueRotationEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } pub unsafe fn SetAngle(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAngle)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), amountdegrees).ok() @@ -1299,10 +1299,10 @@ impl IDCompositionInkTrailDevice { } pub unsafe fn CreateDelegatedInkTrailForSwapChain(&self, swapchain: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDelegatedInkTrailForSwapChain)(windows_core::Interface::as_raw(self), swapchain.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDelegatedInkTrailForSwapChain)(windows_core::Interface::as_raw(self), swapchain.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1316,111 +1316,111 @@ windows_core::imp::interface_hierarchy!(IDCompositionLinearTransferEffect, windo impl IDCompositionLinearTransferEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } pub unsafe fn SetRedYIntercept(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedYIntercept)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), redyintercept).ok() } pub unsafe fn SetRedSlope(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedSlope)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), redslope).ok() } pub unsafe fn SetRedDisable(&self, reddisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedDisable)(windows_core::Interface::as_raw(self), reddisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRedDisable)(windows_core::Interface::as_raw(self), reddisable.param().abi()).ok() } pub unsafe fn SetGreenYIntercept(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGreenYIntercept)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), greenyintercept).ok() } pub unsafe fn SetGreenSlope(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGreenSlope)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), greenslope).ok() } pub unsafe fn SetGreenDisable(&self, greendisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGreenDisable)(windows_core::Interface::as_raw(self), greendisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGreenDisable)(windows_core::Interface::as_raw(self), greendisable.param().abi()).ok() } pub unsafe fn SetBlueYIntercept(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlueYIntercept)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), blueyintercept).ok() } pub unsafe fn SetBlueSlope(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlueSlope)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), blueslope).ok() } pub unsafe fn SetBlueDisable(&self, bluedisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlueDisable)(windows_core::Interface::as_raw(self), bluedisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlueDisable)(windows_core::Interface::as_raw(self), bluedisable.param().abi()).ok() } pub unsafe fn SetAlphaYIntercept(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlphaYIntercept)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), alphayintercept).ok() } pub unsafe fn SetAlphaSlope(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlphaSlope)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), alphaslope).ok() } pub unsafe fn SetAlphaDisable(&self, alphadisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlphaDisable)(windows_core::Interface::as_raw(self), alphadisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlphaDisable)(windows_core::Interface::as_raw(self), alphadisable.param().abi()).ok() } pub unsafe fn SetClampOutput(&self, clampoutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clampoutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clampoutput.param().abi()).ok() } } #[repr(C)] @@ -1457,9 +1457,9 @@ impl IDCompositionMatrixTransform { } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.into_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), row, column, value).ok() @@ -1484,9 +1484,9 @@ impl IDCompositionMatrixTransform3D { } pub unsafe fn SetMatrixElement(&self, row: i32, column: i32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMatrixElement)(windows_core::Interface::as_raw(self), row, column, animation.into_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), row, column, value).ok() @@ -1507,108 +1507,108 @@ windows_core::imp::interface_hierarchy!(IDCompositionRectangleClip, windows_core impl IDCompositionRectangleClip { pub unsafe fn SetLeft(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLeft)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), left).ok() } pub unsafe fn SetTop(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTop)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), top).ok() } pub unsafe fn SetRight(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRight)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), right).ok() } pub unsafe fn SetBottom(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBottom)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), bottom).ok() } pub unsafe fn SetTopLeftRadiusX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTopLeftRadiusX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() } pub unsafe fn SetTopLeftRadiusY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTopLeftRadiusY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() } pub unsafe fn SetTopRightRadiusX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTopRightRadiusX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() } pub unsafe fn SetTopRightRadiusY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTopRightRadiusY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() } pub unsafe fn SetBottomLeftRadiusX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBottomLeftRadiusX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() } pub unsafe fn SetBottomLeftRadiusY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBottomLeftRadiusY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() } pub unsafe fn SetBottomRightRadiusX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBottomRightRadiusX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() } pub unsafe fn SetBottomRightRadiusY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBottomRightRadiusY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), radius).ok() @@ -1647,27 +1647,27 @@ windows_core::imp::interface_hierarchy!(IDCompositionRotateTransform, windows_co impl IDCompositionRotateTransform { pub unsafe fn SetAngle(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAngle)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), angle).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centery).ok() @@ -1688,63 +1688,63 @@ windows_core::imp::interface_hierarchy!(IDCompositionRotateTransform3D, windows_ impl IDCompositionRotateTransform3D { pub unsafe fn SetAngle(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAngle)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), angle).ok() } pub unsafe fn SetAxisX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAxisX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), axisx).ok() } pub unsafe fn SetAxisY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAxisY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), axisy).ok() } pub unsafe fn SetAxisZ(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAxisZ)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), axisz).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centery).ok() } pub unsafe fn SetCenterZ(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterZ)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centerz).ok() @@ -1773,15 +1773,15 @@ windows_core::imp::interface_hierarchy!(IDCompositionSaturationEffect, windows_c impl IDCompositionSaturationEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } pub unsafe fn SetSaturation(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSaturation)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), ratio).ok() @@ -1798,36 +1798,36 @@ windows_core::imp::interface_hierarchy!(IDCompositionScaleTransform, windows_cor impl IDCompositionScaleTransform { pub unsafe fn SetScaleX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScaleX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), scalex).ok() } pub unsafe fn SetScaleY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScaleY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), scaley).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centery).ok() @@ -1850,54 +1850,54 @@ windows_core::imp::interface_hierarchy!(IDCompositionScaleTransform3D, windows_c impl IDCompositionScaleTransform3D { pub unsafe fn SetScaleX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScaleX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), scalex).ok() } pub unsafe fn SetScaleY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScaleY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), scaley).ok() } pub unsafe fn SetScaleZ(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScaleZ)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), scalez).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centery).ok() } pub unsafe fn SetCenterZ(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterZ)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centerz).ok() @@ -1924,15 +1924,15 @@ windows_core::imp::interface_hierarchy!(IDCompositionShadowEffect, windows_core: impl IDCompositionShadowEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } pub unsafe fn SetStandardDeviation(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStandardDeviation)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), amount).ok() @@ -1943,36 +1943,36 @@ impl IDCompositionShadowEffect { } pub unsafe fn SetRed(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRed)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), amount).ok() } pub unsafe fn SetGreen(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGreen)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), amount).ok() } pub unsafe fn SetBlue(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlue)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), amount).ok() } pub unsafe fn SetAlpha(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlpha)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), amount).ok() @@ -2001,36 +2001,36 @@ windows_core::imp::interface_hierarchy!(IDCompositionSkewTransform, windows_core impl IDCompositionSkewTransform { pub unsafe fn SetAngleX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAngleX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), anglex).ok() } pub unsafe fn SetAngleY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAngleY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), angley).ok() } pub unsafe fn SetCenterX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centerx).ok() } pub unsafe fn SetCenterY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCenterY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), centery).ok() @@ -2111,9 +2111,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionTableTransferEffect, window impl IDCompositionTableTransferEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } pub unsafe fn SetRedTable(&self, tablevalues: &[f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetRedTable)(windows_core::Interface::as_raw(self), core::mem::transmute(tablevalues.as_ptr()), tablevalues.len().try_into().unwrap()).ok() @@ -2129,66 +2129,66 @@ impl IDCompositionTableTransferEffect { } pub unsafe fn SetRedDisable(&self, reddisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedDisable)(windows_core::Interface::as_raw(self), reddisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRedDisable)(windows_core::Interface::as_raw(self), reddisable.param().abi()).ok() } pub unsafe fn SetGreenDisable(&self, greendisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGreenDisable)(windows_core::Interface::as_raw(self), greendisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGreenDisable)(windows_core::Interface::as_raw(self), greendisable.param().abi()).ok() } pub unsafe fn SetBlueDisable(&self, bluedisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlueDisable)(windows_core::Interface::as_raw(self), bluedisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlueDisable)(windows_core::Interface::as_raw(self), bluedisable.param().abi()).ok() } pub unsafe fn SetAlphaDisable(&self, alphadisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlphaDisable)(windows_core::Interface::as_raw(self), alphadisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlphaDisable)(windows_core::Interface::as_raw(self), alphadisable.param().abi()).ok() } pub unsafe fn SetClampOutput(&self, clampoutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clampoutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClampOutput)(windows_core::Interface::as_raw(self), clampoutput.param().abi()).ok() } pub unsafe fn SetRedTableValue(&self, index: u32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedTableValue)(windows_core::Interface::as_raw(self), index, animation.into_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), index, value).ok() } pub unsafe fn SetGreenTableValue(&self, index: u32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGreenTableValue)(windows_core::Interface::as_raw(self), index, animation.into_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), index, value).ok() } pub unsafe fn SetBlueTableValue(&self, index: u32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlueTableValue)(windows_core::Interface::as_raw(self), index, animation.into_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), index, value).ok() } pub unsafe fn SetAlphaTableValue(&self, index: u32, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlphaTableValue)(windows_core::Interface::as_raw(self), index, animation.into_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), index, value).ok() @@ -2220,9 +2220,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionTarget, windows_core::IUnkn impl IDCompositionTarget { pub unsafe fn SetRoot(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } } #[repr(C)] @@ -2285,18 +2285,18 @@ windows_core::imp::interface_hierarchy!(IDCompositionTranslateTransform, windows impl IDCompositionTranslateTransform { pub unsafe fn SetOffsetX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsety).ok() @@ -2315,27 +2315,27 @@ windows_core::imp::interface_hierarchy!(IDCompositionTranslateTransform3D, windo impl IDCompositionTranslateTransform3D { pub unsafe fn SetOffsetX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsety).ok() } pub unsafe fn SetOffsetZ(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetZ)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsetz).ok() @@ -2356,9 +2356,9 @@ windows_core::imp::interface_hierarchy!(IDCompositionTurbulenceEffect, windows_c impl IDCompositionTurbulenceEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.SetInput)(windows_core::Interface::as_raw(self), index, input.param().abi(), flags).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetOffset(&self, offset: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::Result<()> { @@ -2384,9 +2384,9 @@ impl IDCompositionTurbulenceEffect { } pub unsafe fn SetStitchable(&self, stitchable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStitchable)(windows_core::Interface::as_raw(self), stitchable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStitchable)(windows_core::Interface::as_raw(self), stitchable.param().abi()).ok() } } #[repr(C)] @@ -2452,27 +2452,27 @@ windows_core::imp::interface_hierarchy!(IDCompositionVisual, windows_core::IUnkn impl IDCompositionVisual { pub unsafe fn SetOffsetX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsety).ok() } pub unsafe fn SetTransform(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransform)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform2(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -2480,15 +2480,15 @@ impl IDCompositionVisual { } pub unsafe fn SetTransformParent(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformParent)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformParent)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn SetEffect(&self, effect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEffect)(windows_core::Interface::as_raw(self), effect.into_param().abi()).ok() + (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), interpolationmode).ok() @@ -2498,9 +2498,9 @@ impl IDCompositionVisual { } pub unsafe fn SetClip(&self, clip: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClip)(windows_core::Interface::as_raw(self), clip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClip)(windows_core::Interface::as_raw(self), clip.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetClip2(&self, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::Result<()> { @@ -2508,23 +2508,23 @@ impl IDCompositionVisual { } pub unsafe fn SetContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn AddVisual(&self, visual: P0, insertabove: P1, referencevisual: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi(), insertabove.into_param().abi(), referencevisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddVisual)(windows_core::Interface::as_raw(self), visual.param().abi(), insertabove.param().abi(), referencevisual.param().abi()).ok() } pub unsafe fn RemoveVisual(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveVisual)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn RemoveAllVisuals(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllVisuals)(windows_core::Interface::as_raw(self)).ok() @@ -2565,27 +2565,27 @@ windows_core::imp::interface_hierarchy!(IDCompositionVisual2, windows_core::IUnk impl IDCompositionVisual2 { pub unsafe fn SetOffsetX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOffsetX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetOffsetX2)(windows_core::Interface::as_raw(self), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOffsetY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetOffsetY2)(windows_core::Interface::as_raw(self), offsety).ok() } pub unsafe fn SetTransform(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransform)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransform)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform2(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -2593,15 +2593,15 @@ impl IDCompositionVisual2 { } pub unsafe fn SetTransformParent(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformParent)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformParent)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn SetEffect(&self, effect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEffect)(windows_core::Interface::as_raw(self), effect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetBitmapInterpolationMode)(windows_core::Interface::as_raw(self), interpolationmode).ok() @@ -2611,9 +2611,9 @@ impl IDCompositionVisual2 { } pub unsafe fn SetClip(&self, clip: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClip)(windows_core::Interface::as_raw(self), clip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClip)(windows_core::Interface::as_raw(self), clip.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetClip2(&self, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::Result<()> { @@ -2621,23 +2621,23 @@ impl IDCompositionVisual2 { } pub unsafe fn SetContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn AddVisual(&self, visual: P0, insertabove: P1, referencevisual: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi(), insertabove.into_param().abi(), referencevisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddVisual)(windows_core::Interface::as_raw(self), visual.param().abi(), insertabove.param().abi(), referencevisual.param().abi()).ok() } pub unsafe fn RemoveVisual(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveVisual)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn RemoveAllVisuals(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RemoveAllVisuals)(windows_core::Interface::as_raw(self)).ok() @@ -2663,27 +2663,27 @@ windows_core::imp::interface_hierarchy!(IDCompositionVisual3, windows_core::IUnk impl IDCompositionVisual3 { pub unsafe fn SetOffsetX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetOffsetX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetOffsetX2)(windows_core::Interface::as_raw(self), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetOffsetY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetOffsetY2)(windows_core::Interface::as_raw(self), offsety).ok() } pub unsafe fn SetTransform(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTransform)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetTransform)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform2(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -2691,15 +2691,15 @@ impl IDCompositionVisual3 { } pub unsafe fn SetTransformParent(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTransformParent)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetTransformParent)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn SetEffect(&self, effect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetEffect)(windows_core::Interface::as_raw(self), effect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetBitmapInterpolationMode)(windows_core::Interface::as_raw(self), interpolationmode).ok() @@ -2709,9 +2709,9 @@ impl IDCompositionVisual3 { } pub unsafe fn SetClip(&self, clip: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetClip)(windows_core::Interface::as_raw(self), clip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetClip)(windows_core::Interface::as_raw(self), clip.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetClip2(&self, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::Result<()> { @@ -2719,23 +2719,23 @@ impl IDCompositionVisual3 { } pub unsafe fn SetContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn AddVisual(&self, visual: P0, insertabove: P1, referencevisual: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi(), insertabove.into_param().abi(), referencevisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddVisual)(windows_core::Interface::as_raw(self), visual.param().abi(), insertabove.param().abi(), referencevisual.param().abi()).ok() } pub unsafe fn RemoveVisual(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemoveVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemoveVisual)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn RemoveAllVisuals(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.RemoveAllVisuals)(windows_core::Interface::as_raw(self)).ok() @@ -2767,27 +2767,27 @@ impl IDCompositionVisual3 { } pub unsafe fn SetOffsetZ(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetZ)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), offsetz).ok() } pub unsafe fn SetOpacity(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpacity)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (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), opacity).ok() } pub unsafe fn SetTransform3(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransform3)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransform3)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetTransform4(&self, matrix: *const super::Direct2D::Common::D2D_MATRIX_4X4_F) -> windows_core::Result<()> { @@ -2795,9 +2795,9 @@ impl IDCompositionVisual3 { } pub unsafe fn SetVisible(&self, visible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible.param().abi()).ok() } } #[repr(C)] @@ -2820,27 +2820,27 @@ windows_core::imp::interface_hierarchy!(IDCompositionVisualDebug, windows_core:: impl IDCompositionVisualDebug { pub unsafe fn SetOffsetX(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetOffsetX)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetOffsetX2)(windows_core::Interface::as_raw(self), offsetx).ok() } pub unsafe fn SetOffsetY(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetOffsetY)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetOffsetY2)(windows_core::Interface::as_raw(self), offsety).ok() } pub unsafe fn SetTransform(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTransform)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTransform)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } #[cfg(feature = "Foundation_Numerics")] pub unsafe fn SetTransform2(&self, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result<()> { @@ -2848,15 +2848,15 @@ impl IDCompositionVisualDebug { } pub unsafe fn SetTransformParent(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTransformParent)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTransformParent)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn SetEffect(&self, effect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEffect)(windows_core::Interface::as_raw(self), effect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetBitmapInterpolationMode)(windows_core::Interface::as_raw(self), interpolationmode).ok() @@ -2866,9 +2866,9 @@ impl IDCompositionVisualDebug { } pub unsafe fn SetClip(&self, clip: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetClip)(windows_core::Interface::as_raw(self), clip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetClip)(windows_core::Interface::as_raw(self), clip.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn SetClip2(&self, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::Result<()> { @@ -2876,23 +2876,23 @@ impl IDCompositionVisualDebug { } pub unsafe fn SetContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn AddVisual(&self, visual: P0, insertabove: P1, referencevisual: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi(), insertabove.into_param().abi(), referencevisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddVisual)(windows_core::Interface::as_raw(self), visual.param().abi(), insertabove.param().abi(), referencevisual.param().abi()).ok() } pub unsafe fn RemoveVisual(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveVisual)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveVisual)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn RemoveAllVisuals(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RemoveAllVisuals)(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 16a81df55f..6b65e401ca 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs @@ -1,26 +1,26 @@ #[inline] pub unsafe fn DirectDrawCreate(lpguid: *mut windows_core::GUID, lplpdd: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ddraw.dll" "system" fn DirectDrawCreate(lpguid : *mut windows_core::GUID, lplpdd : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectDrawCreate(lpguid, core::mem::transmute(lplpdd), punkouter.into_param().abi()).ok() + DirectDrawCreate(lpguid, core::mem::transmute(lplpdd), punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectDrawCreateClipper(dwflags: u32, lplpddclipper: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, core::mem::transmute(lplpddclipper), punkouter.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(lpguid, lplpdd, iid, punkouter.into_param().abi()).ok() + DirectDrawCreateEx(lpguid, lplpdd, iid, punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectDrawEnumerateA(lpcallback: LPDDENUMCALLBACKA, lpcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -49,9 +49,9 @@ windows_core::imp::interface_hierarchy!(IDDVideoPortContainer, windows_core::IUn impl IDDVideoPortContainer { pub unsafe fn CreateVideoPort(&self, param0: u32, param1: *mut DDVIDEOPORTDESC, param2: *mut Option, param3: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVideoPort)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateVideoPort)(windows_core::Interface::as_raw(self), param0, 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), param0, param1, param2, param3).ok() @@ -79,29 +79,29 @@ impl IDirectDraw { } pub unsafe fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn DuplicateSurface(&self, param0: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), param0, param1, param2, param3).ok() @@ -142,18 +142,18 @@ impl IDirectDraw { } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } } #[repr(C)] @@ -191,29 +191,29 @@ impl IDirectDraw2 { } pub unsafe fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn DuplicateSurface(&self, param0: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), param0, param1, param2, param3).ok() @@ -254,18 +254,18 @@ impl IDirectDraw2 { } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2, param3, param4).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).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), param0, param1, param2).ok() @@ -307,29 +307,29 @@ impl IDirectDraw4 { } pub unsafe fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC2, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn DuplicateSurface(&self, param0: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), param0, param1, param2, param3).ok() @@ -370,18 +370,18 @@ impl IDirectDraw4 { } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2, param3, param4).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).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), param0, param1, param2).ok() @@ -389,10 +389,10 @@ impl IDirectDraw4 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetSurfaceFromDC(&self, param0: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), param0.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), param0.param().abi(), &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() @@ -447,29 +447,29 @@ impl IDirectDraw7 { } pub unsafe fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClipper)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePalette)(windows_core::Interface::as_raw(self), param0, param1, core::mem::transmute(param2), param3.param().abi()).ok() } pub unsafe fn CreateSurface(&self, param0: *mut DDSURFACEDESC2, param1: *mut Option, param2: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateSurface)(windows_core::Interface::as_raw(self), param0, core::mem::transmute(param1), param2.param().abi()).ok() } pub unsafe fn DuplicateSurface(&self, param0: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), param0, param1, param2, param3).ok() @@ -510,18 +510,18 @@ impl IDirectDraw7 { } pub unsafe fn SetCooperativeLevel(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), param0.param().abi(), 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), param0, param1, param2, param3, param4).ok() } pub unsafe fn WaitForVerticalBlank(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WaitForVerticalBlank)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).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), param0, param1, param2).ok() @@ -529,10 +529,10 @@ impl IDirectDraw7 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetSurfaceFromDC(&self, param0: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), param0.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSurfaceFromDC)(windows_core::Interface::as_raw(self), param0.param().abi(), &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() @@ -599,9 +599,9 @@ impl IDirectDrawClipper { } pub unsafe fn Initialize(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0).ok() @@ -612,9 +612,9 @@ impl IDirectDrawClipper { } pub unsafe fn SetHWnd(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } } #[repr(C)] @@ -698,9 +698,9 @@ impl IDirectDrawPalette { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1, 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<()> { @@ -729,33 +729,33 @@ windows_core::imp::interface_hierarchy!(IDirectDrawSurface, windows_core::IUnkno impl IDirectDrawSurface { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddOverlayDirtyRect)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, 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), param0, param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P0, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.into_param().abi(), param3, param4).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), param3, param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0, param1).ok() @@ -765,9 +765,9 @@ impl IDirectDrawSurface { } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0, core::mem::transmute(param1)).ok() @@ -807,34 +807,34 @@ impl IDirectDrawSurface { } pub unsafe fn Initialize(&self, param0: P0, param1: *mut DDSURFACEDESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn IsLost(&self) -> windows_core::Result<()> { (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetClipper(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (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), param0, param1).ok() @@ -844,27 +844,27 @@ impl IDirectDrawSurface { } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Unlock(&self, param0: *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlay(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, param4).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.param().abi()).ok() } } #[repr(C)] @@ -915,33 +915,33 @@ windows_core::imp::interface_hierarchy!(IDirectDrawSurface2, windows_core::IUnkn impl IDirectDrawSurface2 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddOverlayDirtyRect)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, 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), param0, param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P0, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.into_param().abi(), param3, param4).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), param3, param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0, param1).ok() @@ -951,9 +951,9 @@ impl IDirectDrawSurface2 { } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0, core::mem::transmute(param1)).ok() @@ -993,34 +993,34 @@ impl IDirectDrawSurface2 { } pub unsafe fn Initialize(&self, param0: P0, param1: *mut DDSURFACEDESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn IsLost(&self) -> windows_core::Result<()> { (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetClipper(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (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), param0, param1).ok() @@ -1030,27 +1030,27 @@ impl IDirectDrawSurface2 { } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Unlock(&self, param0: *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlay(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, param4).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0).ok() @@ -1113,33 +1113,33 @@ windows_core::imp::interface_hierarchy!(IDirectDrawSurface3, windows_core::IUnkn impl IDirectDrawSurface3 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddOverlayDirtyRect)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, 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), param0, param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P0, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.into_param().abi(), param3, param4).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), param3, param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0, param1).ok() @@ -1149,9 +1149,9 @@ impl IDirectDrawSurface3 { } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0, core::mem::transmute(param1)).ok() @@ -1191,34 +1191,34 @@ impl IDirectDrawSurface3 { } pub unsafe fn Initialize(&self, param0: P0, param1: *mut DDSURFACEDESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn IsLost(&self) -> windows_core::Result<()> { (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetClipper(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (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), param0, param1).ok() @@ -1228,27 +1228,27 @@ impl IDirectDrawSurface3 { } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Unlock(&self, param0: *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlay(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, param4).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0).ok() @@ -1315,33 +1315,33 @@ windows_core::imp::interface_hierarchy!(IDirectDrawSurface4, windows_core::IUnkn impl IDirectDrawSurface4 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddOverlayDirtyRect)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, 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), param0, param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P0, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.into_param().abi(), param3, param4).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), param3, param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0, param1).ok() @@ -1351,9 +1351,9 @@ impl IDirectDrawSurface4 { } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0, core::mem::transmute(param1)).ok() @@ -1393,34 +1393,34 @@ impl IDirectDrawSurface4 { } pub unsafe fn Initialize(&self, param0: P0, param1: *mut DDSURFACEDESC2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn IsLost(&self) -> windows_core::Result<()> { (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetClipper(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (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), param0, param1).ok() @@ -1430,27 +1430,27 @@ impl IDirectDrawSurface4 { } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Unlock(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlay(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, param4).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0).ok() @@ -1537,33 +1537,33 @@ windows_core::imp::interface_hierarchy!(IDirectDrawSurface7, windows_core::IUnkn impl IDirectDrawSurface7 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAttachedSurface)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddOverlayDirtyRect)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).Blt)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, 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), param0, param1, param2).ok() } pub unsafe fn BltFast(&self, param0: u32, param1: u32, param2: P0, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.into_param().abi(), param3, param4).ok() + (windows_core::Interface::vtable(self).BltFast)(windows_core::Interface::as_raw(self), param0, param1, param2.param().abi(), param3, param4).ok() } pub unsafe fn DeleteAttachedSurface(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttachedSurface)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0, param1).ok() @@ -1573,9 +1573,9 @@ impl IDirectDrawSurface7 { } pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0, core::mem::transmute(param1)).ok() @@ -1615,34 +1615,34 @@ impl IDirectDrawSurface7 { } pub unsafe fn Initialize(&self, param0: P0, param1: *mut DDSURFACEDESC2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } pub unsafe fn IsLost(&self) -> windows_core::Result<()> { (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Lock)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Restore(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetClipper(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipper)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (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), param0, param1).ok() @@ -1652,27 +1652,27 @@ impl IDirectDrawSurface7 { } pub unsafe fn SetPalette(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn Unlock(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlay(&self, param0: *mut super::super::Foundation::RECT, param1: P0, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2, param3, param4).ok() + (windows_core::Interface::vtable(self).UpdateOverlay)(windows_core::Interface::as_raw(self), param0, param1.param().abi(), param2, param3, param4).ok() } pub unsafe fn UpdateOverlayDisplay(&self, param0: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateOverlayDisplay)(windows_core::Interface::as_raw(self), param0).ok() } pub unsafe fn UpdateOverlayZOrder(&self, param0: u32, param1: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOverlayZOrder)(windows_core::Interface::as_raw(self), param0, param1.into_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), param0).ok() @@ -1791,9 +1791,9 @@ windows_core::imp::interface_hierarchy!(IDirectDrawVideoPort, windows_core::IUnk impl IDirectDrawVideoPort { pub unsafe fn Flip(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flip)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0, param1, param2, param3, param4).ok() @@ -1821,9 +1821,9 @@ impl IDirectDrawVideoPort { } pub unsafe fn SetTargetSurface(&self, param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetSurface)(windows_core::Interface::as_raw(self), param0.into_param().abi(), 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), param0).ok() @@ -1864,9 +1864,9 @@ impl IDirectDrawVideoPortNotify { } pub unsafe fn ReleaseNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).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 bfe4bd3bbc..8f654e01ed 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs @@ -15,24 +15,24 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationCompositor, windows_c impl IDirectManipulationCompositor { pub unsafe fn AddContent(&self, content: P0, device: P1, parentvisual: P2, childvisual: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddContent)(windows_core::Interface::as_raw(self), content.into_param().abi(), device.into_param().abi(), parentvisual.into_param().abi(), childvisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddContent)(windows_core::Interface::as_raw(self), content.param().abi(), device.param().abi(), parentvisual.param().abi(), childvisual.param().abi()).ok() } pub unsafe fn RemoveContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn SetUpdateManager(&self, updatemanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUpdateManager)(windows_core::Interface::as_raw(self), updatemanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUpdateManager)(windows_core::Interface::as_raw(self), updatemanager.param().abi()).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self)).ok() @@ -51,36 +51,36 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationCompositor2, windows_ impl IDirectManipulationCompositor2 { pub unsafe fn AddContent(&self, content: P0, device: P1, parentvisual: P2, childvisual: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddContent)(windows_core::Interface::as_raw(self), content.into_param().abi(), device.into_param().abi(), parentvisual.into_param().abi(), childvisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddContent)(windows_core::Interface::as_raw(self), content.param().abi(), device.param().abi(), parentvisual.param().abi(), childvisual.param().abi()).ok() } pub unsafe fn RemoveContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn SetUpdateManager(&self, updatemanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUpdateManager)(windows_core::Interface::as_raw(self), updatemanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUpdateManager)(windows_core::Interface::as_raw(self), updatemanager.param().abi()).ok() } pub unsafe fn Flush(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Flush)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddContentWithCrossProcessChaining(&self, content: P0, device: P1, parentvisual: P2, childvisual: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddContentWithCrossProcessChaining)(windows_core::Interface::as_raw(self), content.into_param().abi(), device.into_param().abi(), parentvisual.into_param().abi(), childvisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddContentWithCrossProcessChaining)(windows_core::Interface::as_raw(self), content.param().abi(), device.param().abi(), parentvisual.param().abi(), childvisual.param().abi()).ok() } } #[repr(C)] @@ -113,9 +113,9 @@ impl IDirectManipulationContent { } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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() @@ -181,9 +181,9 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationDragDropEventHandler, impl IDirectManipulationDragDropEventHandler { pub unsafe fn OnDragDropStatusChange(&self, viewport: P0, current: DIRECTMANIPULATION_DRAG_DROP_STATUS, previous: DIRECTMANIPULATION_DRAG_DROP_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragDropStatusChange)(windows_core::Interface::as_raw(self), viewport.into_param().abi(), current, previous).ok() + (windows_core::Interface::vtable(self).OnDragDropStatusChange)(windows_core::Interface::as_raw(self), viewport.param().abi(), current, previous).ok() } } #[repr(C)] @@ -208,9 +208,9 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationInteractionEventHandl impl IDirectManipulationInteractionEventHandler { pub unsafe fn OnInteraction(&self, viewport: P0, interaction: DIRECTMANIPULATION_INTERACTION_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInteraction)(windows_core::Interface::as_raw(self), viewport.into_param().abi(), interaction).ok() + (windows_core::Interface::vtable(self).OnInteraction)(windows_core::Interface::as_raw(self), viewport.param().abi(), interaction).ok() } } #[repr(C)] @@ -223,22 +223,22 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationManager, windows_core impl IDirectManipulationManager { pub unsafe fn Activate(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), window.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), window.param().abi()).ok() } pub unsafe fn Deactivate(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), window.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self), window.param().abi()).ok() } pub unsafe fn RegisterHitTestTarget(&self, window: P0, hittestwindow: P1, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window.into_param().abi(), hittestwindow.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window.param().abi(), hittestwindow.param().abi(), r#type).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result { @@ -254,20 +254,20 @@ impl IDirectManipulationManager { } pub unsafe fn CreateViewport(&self, frameinfo: P0, window: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateViewport)(windows_core::Interface::as_raw(self), frameinfo.into_param().abi(), window.into_param().abi(), &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.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateContent)(windows_core::Interface::as_raw(self), frameinfo.into_param().abi(), 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)] @@ -289,22 +289,22 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationManager2, windows_cor impl IDirectManipulationManager2 { pub unsafe fn Activate(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), window.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), window.param().abi()).ok() } pub unsafe fn Deactivate(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Deactivate)(windows_core::Interface::as_raw(self), window.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Deactivate)(windows_core::Interface::as_raw(self), window.param().abi()).ok() } pub unsafe fn RegisterHitTestTarget(&self, window: P0, hittestwindow: P1, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window.into_param().abi(), hittestwindow.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).base__.RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window.param().abi(), hittestwindow.param().abi(), r#type).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result { @@ -320,20 +320,20 @@ impl IDirectManipulationManager2 { } pub unsafe fn CreateViewport(&self, frameinfo: P0, window: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateViewport)(windows_core::Interface::as_raw(self), frameinfo.into_param().abi(), window.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateViewport)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), window.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateContent)(windows_core::Interface::as_raw(self), frameinfo.into_param().abi(), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateContent)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBehavior(&self, clsid: *const windows_core::GUID) -> windows_core::Result where @@ -353,22 +353,22 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationManager3, windows_cor impl IDirectManipulationManager3 { pub unsafe fn Activate(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Activate)(windows_core::Interface::as_raw(self), window.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Activate)(windows_core::Interface::as_raw(self), window.param().abi()).ok() } pub unsafe fn Deactivate(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Deactivate)(windows_core::Interface::as_raw(self), window.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Deactivate)(windows_core::Interface::as_raw(self), window.param().abi()).ok() } pub unsafe fn RegisterHitTestTarget(&self, window: P0, hittestwindow: P1, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window.into_param().abi(), hittestwindow.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).base__.base__.RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window.param().abi(), hittestwindow.param().abi(), r#type).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result { @@ -384,20 +384,20 @@ impl IDirectManipulationManager3 { } pub unsafe fn CreateViewport(&self, frameinfo: P0, window: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.CreateViewport)(windows_core::Interface::as_raw(self), frameinfo.into_param().abi(), window.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateViewport)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), window.param().abi(), &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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.CreateContent)(windows_core::Interface::as_raw(self), frameinfo.into_param().abi(), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateContent)(windows_core::Interface::as_raw(self), frameinfo.param().abi(), clsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateBehavior(&self, clsid: *const windows_core::GUID) -> windows_core::Result where @@ -480,20 +480,20 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationUpdateManager, window impl IDirectManipulationUpdateManager { pub unsafe fn RegisterWaitHandleCallback(&self, handle: P0, eventhandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterWaitHandleCallback)(windows_core::Interface::as_raw(self), handle.into_param().abi(), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterWaitHandleCallback)(windows_core::Interface::as_raw(self), handle.param().abi(), 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), cookie).ok() } pub unsafe fn Update(&self, frameinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), frameinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), frameinfo.param().abi()).ok() } } #[repr(C)] @@ -533,9 +533,9 @@ impl IDirectManipulationViewport { } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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__ = std::mem::zeroed(); @@ -546,9 +546,9 @@ impl IDirectManipulationViewport { } pub unsafe fn ZoomToRect(&self, left: f32, top: f32, right: f32, bottom: f32, animate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ZoomToRect)(windows_core::Interface::as_raw(self), left, top, right, bottom, animate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ZoomToRect)(windows_core::Interface::as_raw(self), left, top, right, bottom, animate.param().abi()).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() @@ -565,15 +565,15 @@ impl IDirectManipulationViewport { } pub unsafe fn AddContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn RemoveContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (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), options).ok() @@ -595,11 +595,11 @@ impl IDirectManipulationViewport { } pub unsafe fn AddEventHandler(&self, window: P0, eventhandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddEventHandler)(windows_core::Interface::as_raw(self), window.into_param().abi(), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddEventHandler)(windows_core::Interface::as_raw(self), window.param().abi(), 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), cookie).ok() @@ -679,9 +679,9 @@ impl IDirectManipulationViewport2 { } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), id).ok() + (windows_core::Interface::vtable(self).base__.SetTag)(windows_core::Interface::as_raw(self), object.param().abi(), id).ok() } pub unsafe fn GetViewportRect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -692,9 +692,9 @@ impl IDirectManipulationViewport2 { } pub unsafe fn ZoomToRect(&self, left: f32, top: f32, right: f32, bottom: f32, animate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ZoomToRect)(windows_core::Interface::as_raw(self), left, top, right, bottom, animate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ZoomToRect)(windows_core::Interface::as_raw(self), left, top, right, bottom, animate.param().abi()).ok() } pub unsafe fn SetViewportTransform(&self, matrix: &[f32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetViewportTransform)(windows_core::Interface::as_raw(self), core::mem::transmute(matrix.as_ptr()), matrix.len().try_into().unwrap()).ok() @@ -711,15 +711,15 @@ impl IDirectManipulationViewport2 { } pub unsafe fn AddContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddContent)(windows_core::Interface::as_raw(self), content.param().abi()).ok() } pub unsafe fn RemoveContent(&self, content: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveContent)(windows_core::Interface::as_raw(self), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetViewportOptions)(windows_core::Interface::as_raw(self), options).ok() @@ -741,11 +741,11 @@ impl IDirectManipulationViewport2 { } pub unsafe fn AddEventHandler(&self, window: P0, eventhandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddEventHandler)(windows_core::Interface::as_raw(self), window.into_param().abi(), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.AddEventHandler)(windows_core::Interface::as_raw(self), window.param().abi(), eventhandler.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveEventHandler(&self, cookie: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RemoveEventHandler)(windows_core::Interface::as_raw(self), cookie).ok() @@ -764,10 +764,10 @@ impl IDirectManipulationViewport2 { } pub unsafe fn AddBehavior(&self, behavior: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBehavior)(windows_core::Interface::as_raw(self), behavior.into_param().abi(), &mut result__).map(|| result__) + (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), cookie).ok() @@ -788,22 +788,22 @@ windows_core::imp::interface_hierarchy!(IDirectManipulationViewportEventHandler, impl IDirectManipulationViewportEventHandler { pub unsafe fn OnViewportStatusChanged(&self, viewport: P0, current: DIRECTMANIPULATION_STATUS, previous: DIRECTMANIPULATION_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewportStatusChanged)(windows_core::Interface::as_raw(self), viewport.into_param().abi(), current, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewportUpdated)(windows_core::Interface::as_raw(self), viewport.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnViewportUpdated)(windows_core::Interface::as_raw(self), viewport.param().abi()).ok() } pub unsafe fn OnContentUpdated(&self, viewport: P0, content: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnContentUpdated)(windows_core::Interface::as_raw(self), viewport.into_param().abi(), content.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnContentUpdated)(windows_core::Interface::as_raw(self), viewport.param().abi(), content.param().abi()).ok() } } #[repr(C)] 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 ac1a7f4e08..79bd46708a 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs @@ -30,10 +30,10 @@ windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget, windows_core: impl IDWriteBitmapRenderTarget { pub unsafe fn DrawGlyphRun(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: P0, textcolor: P1, blackboxrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.into_param().abi(), textcolor.into_param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.param().abi(), textcolor.param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMemoryDC(&self) -> super::Gdi::HDC { @@ -81,10 +81,10 @@ windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget1, windows_core impl IDWriteBitmapRenderTarget1 { pub unsafe fn DrawGlyphRun(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: P0, textcolor: P1, blackboxrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.into_param().abi(), textcolor.into_param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.param().abi(), textcolor.param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMemoryDC(&self) -> super::Gdi::HDC { @@ -129,10 +129,10 @@ windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget2, windows_core impl IDWriteBitmapRenderTarget2 { pub unsafe fn DrawGlyphRun(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: P0, textcolor: P1, blackboxrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.into_param().abi(), textcolor.into_param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.param().abi(), textcolor.param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMemoryDC(&self) -> super::Gdi::HDC { @@ -180,10 +180,10 @@ windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget3, windows_core impl IDWriteBitmapRenderTarget3 { pub unsafe fn DrawGlyphRun(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: P0, textcolor: P1, blackboxrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.into_param().abi(), textcolor.into_param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.param().abi(), textcolor.param().abi(), core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMemoryDC(&self) -> super::Gdi::HDC { @@ -223,16 +223,16 @@ impl IDWriteBitmapRenderTarget3 { } pub unsafe fn DrawPaintGlyphRun(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, textcolor: P0, colorpaletteindex: u32, blackboxrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, glyphimageformat, textcolor.into_param().abi(), colorpaletteindex, core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DrawPaintGlyphRun)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, glyphimageformat, textcolor.param().abi(), colorpaletteindex, core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn DrawGlyphRunWithColorSupport(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: P0, textcolor: P1, colorpaletteindex: u32, blackboxrect: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.into_param().abi(), textcolor.into_param().abi(), colorpaletteindex, core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DrawGlyphRunWithColorSupport)(windows_core::Interface::as_raw(self), baselineoriginx, baselineoriginy, measuringmode, glyphrun, renderingparams.param().abi(), textcolor.param().abi(), colorpaletteindex, core::mem::transmute(blackboxrect.unwrap_or(std::ptr::null_mut()))).ok() } } unsafe impl Send for IDWriteBitmapRenderTarget3 {} @@ -292,42 +292,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory, windows_core::IUnknown); impl IDWriteFactory { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_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__ = std::mem::zeroed(); @@ -340,10 +340,10 @@ impl IDWriteFactory { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -351,24 +351,24 @@ impl IDWriteFactory { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_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__ = std::mem::zeroed(); @@ -380,25 +380,25 @@ impl IDWriteFactory { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::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.into_param().abi(), maxwidth, 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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::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.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -406,11 +406,11 @@ impl IDWriteFactory { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &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.param().abi(), &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__ = std::mem::zeroed(); @@ -452,42 +452,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory1, windows_core::IUnknown, impl IDWriteFactory1 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -500,10 +500,10 @@ impl IDWriteFactory1 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -511,24 +511,24 @@ impl IDWriteFactory1 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -540,25 +540,25 @@ impl IDWriteFactory1 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -566,11 +566,11 @@ impl IDWriteFactory1 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -578,9 +578,9 @@ impl IDWriteFactory1 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -600,42 +600,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory2, windows_core::IUnknown, impl IDWriteFactory2 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -648,10 +648,10 @@ impl IDWriteFactory2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -659,24 +659,24 @@ impl IDWriteFactory2 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -688,25 +688,25 @@ impl IDWriteFactory2 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -714,11 +714,11 @@ impl IDWriteFactory2 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -726,9 +726,9 @@ impl IDWriteFactory2 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -771,42 +771,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory3, windows_core::IUnknown, impl IDWriteFactory3 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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__ = std::mem::zeroed(); @@ -819,10 +819,10 @@ impl IDWriteFactory3 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -830,24 +830,24 @@ impl IDWriteFactory3 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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__ = std::mem::zeroed(); @@ -859,25 +859,25 @@ impl IDWriteFactory3 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -885,11 +885,11 @@ impl IDWriteFactory3 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -897,9 +897,9 @@ impl IDWriteFactory3 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -935,17 +935,17 @@ impl IDWriteFactory3 { } pub unsafe fn CreateFontFaceReference(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, 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(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -957,17 +957,17 @@ impl IDWriteFactory3 { } pub unsafe fn CreateFontCollectionFromFontSet(&self, fontset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), &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(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection2(&self, includedownloadablefonts: P0, fontcollection: *mut Option, checkforupdates: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn GetFontDownloadQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -994,42 +994,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory4, windows_core::IUnknown, impl IDWriteFactory4 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1042,10 +1042,10 @@ impl IDWriteFactory4 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -1053,24 +1053,24 @@ impl IDWriteFactory4 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1082,25 +1082,25 @@ impl IDWriteFactory4 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1108,11 +1108,11 @@ impl IDWriteFactory4 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -1120,9 +1120,9 @@ impl IDWriteFactory4 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1158,17 +1158,17 @@ impl IDWriteFactory4 { } pub unsafe fn CreateFontFaceReference(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1180,17 +1180,17 @@ impl IDWriteFactory4 { } pub unsafe fn CreateFontCollectionFromFontSet(&self, fontset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection2(&self, includedownloadablefonts: P0, fontcollection: *mut Option, checkforupdates: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn GetFontDownloadQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1235,42 +1235,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory5, windows_core::IUnknown, impl IDWriteFactory5 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1283,10 +1283,10 @@ impl IDWriteFactory5 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -1294,24 +1294,24 @@ impl IDWriteFactory5 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1323,25 +1323,25 @@ impl IDWriteFactory5 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1349,11 +1349,11 @@ impl IDWriteFactory5 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -1361,9 +1361,9 @@ impl IDWriteFactory5 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1399,17 +1399,17 @@ impl IDWriteFactory5 { } pub unsafe fn CreateFontFaceReference(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1421,17 +1421,17 @@ impl IDWriteFactory5 { } pub unsafe fn CreateFontCollectionFromFontSet(&self, fontset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection2(&self, includedownloadablefonts: P0, fontcollection: *mut Option, checkforupdates: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn GetFontDownloadQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1462,11 +1462,11 @@ impl IDWriteFactory5 { } pub unsafe fn CreateHttpFontFileLoader(&self, referrerurl: P0, extraheaders: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateHttpFontFileLoader)(windows_core::Interface::as_raw(self), referrerurl.into_param().abi(), extraheaders.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), filedata, filedatasize) @@ -1492,42 +1492,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory6, windows_core::IUnknown, impl IDWriteFactory6 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1540,10 +1540,10 @@ impl IDWriteFactory6 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -1551,24 +1551,24 @@ impl IDWriteFactory6 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1580,25 +1580,25 @@ impl IDWriteFactory6 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1606,11 +1606,11 @@ impl IDWriteFactory6 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -1618,9 +1618,9 @@ impl IDWriteFactory6 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1656,17 +1656,17 @@ impl IDWriteFactory6 { } pub unsafe fn CreateFontFaceReference(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1678,17 +1678,17 @@ impl IDWriteFactory6 { } pub unsafe fn CreateFontCollectionFromFontSet(&self, fontset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection2(&self, includedownloadablefonts: P0, fontcollection: *mut Option, checkforupdates: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn GetFontDownloadQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1719,11 +1719,11 @@ impl IDWriteFactory6 { } pub unsafe fn CreateHttpFontFileLoader(&self, referrerurl: P0, extraheaders: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateHttpFontFileLoader)(windows_core::Interface::as_raw(self), referrerurl.into_param().abi(), extraheaders.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.AnalyzeContainerType)(windows_core::Interface::as_raw(self), filedata, filedatasize) @@ -1734,38 +1734,38 @@ impl IDWriteFactory6 { } pub unsafe fn CreateFontFaceReference3(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceReference3)(windows_core::Interface::as_raw(self), fontfile.into_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__)) + (windows_core::Interface::vtable(self).CreateFontFaceReference3)(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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), 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 GetSystemFontSet2(&self, includedownloadablefonts: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemFontSet2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSystemFontSet2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection3(&self, includedownloadablefonts: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemFontCollection3)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSystemFontCollection3)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontCollectionFromFontSet2(&self, fontset: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontCollectionFromFontSet2)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontCollectionFromFontSet2)(windows_core::Interface::as_raw(self), fontset.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontSetBuilder3(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1773,12 +1773,12 @@ impl IDWriteFactory6 { } pub unsafe fn CreateTextFormat2(&self, fontfamilyname: P0, fontcollection: P1, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE], fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTextFormat2)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTextFormat2)(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__)) } } unsafe impl Send for IDWriteFactory6 {} @@ -1799,42 +1799,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory7, windows_core::IUnknown, impl IDWriteFactory7 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1847,10 +1847,10 @@ impl IDWriteFactory7 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -1858,24 +1858,24 @@ impl IDWriteFactory7 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -1887,25 +1887,25 @@ impl IDWriteFactory7 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1913,11 +1913,11 @@ impl IDWriteFactory7 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -1925,9 +1925,9 @@ impl IDWriteFactory7 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1963,17 +1963,17 @@ impl IDWriteFactory7 { } pub unsafe fn CreateFontFaceReference(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1985,17 +1985,17 @@ impl IDWriteFactory7 { } pub unsafe fn CreateFontCollectionFromFontSet(&self, fontset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection2(&self, includedownloadablefonts: P0, fontcollection: *mut Option, checkforupdates: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn GetFontDownloadQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2026,11 +2026,11 @@ impl IDWriteFactory7 { } pub unsafe fn CreateHttpFontFileLoader(&self, referrerurl: P0, extraheaders: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateHttpFontFileLoader)(windows_core::Interface::as_raw(self), referrerurl.into_param().abi(), extraheaders.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.AnalyzeContainerType)(windows_core::Interface::as_raw(self), filedata, filedatasize) @@ -2041,38 +2041,38 @@ impl IDWriteFactory7 { } pub unsafe fn CreateFontFaceReference3(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontFaceReference3)(windows_core::Interface::as_raw(self), fontfile.into_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__)) + (windows_core::Interface::vtable(self).base__.CreateFontFaceReference3)(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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontResource)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFontResource)(windows_core::Interface::as_raw(self), fontfile.param().abi(), faceindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet2(&self, includedownloadablefonts: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSystemFontSet2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSystemFontSet2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection3(&self, includedownloadablefonts: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSystemFontCollection3)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSystemFontCollection3)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontCollectionFromFontSet2(&self, fontset: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontCollectionFromFontSet2)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFontCollectionFromFontSet2)(windows_core::Interface::as_raw(self), fontset.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontSetBuilder3(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2080,26 +2080,26 @@ impl IDWriteFactory7 { } pub unsafe fn CreateTextFormat2(&self, fontfamilyname: P0, fontcollection: P1, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE], fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTextFormat2)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTextFormat2)(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__)) } pub unsafe fn GetSystemFontSet3(&self, includedownloadablefonts: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemFontSet3)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSystemFontSet3)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection4(&self, includedownloadablefonts: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemFontCollection4)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSystemFontCollection4)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for IDWriteFactory7 {} @@ -2115,42 +2115,42 @@ windows_core::imp::interface_hierarchy!(IDWriteFactory8, windows_core::IUnknown, impl IDWriteFactory8 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetSystemFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomFontCollection(&self, collectionloader: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCustomFontCollection)(windows_core::Interface::as_raw(self), collectionloader.into_param().abi(), collectionkey, collectionkeysize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RegisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn UnregisterFontCollectionLoader(&self, fontcollectionloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.UnregisterFontCollectionLoader)(windows_core::Interface::as_raw(self), fontcollectionloader.param().abi()).ok() } pub unsafe fn CreateFontFileReference(&self, filepath: P0, lastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateFontFileReference)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCustomFontFileReference(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCustomFontFileReference)(windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, fontfileloader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -2163,10 +2163,10 @@ impl IDWriteFactory8 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateMonitorRenderingParams(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateMonitorRenderingParams)(windows_core::Interface::as_raw(self), monitor.param().abi(), &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__ = std::mem::zeroed(); @@ -2174,24 +2174,24 @@ impl IDWriteFactory8 { } pub unsafe fn RegisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RegisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn UnregisterFontFileLoader(&self, fontfileloader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.UnregisterFontFileLoader)(windows_core::Interface::as_raw(self), fontfileloader.param().abi()).ok() } pub unsafe fn CreateTextFormat(&self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateTextFormat)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), fontweight, fontstyle, fontstretch, fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -2203,25 +2203,25 @@ impl IDWriteFactory8 { } pub unsafe fn CreateTextLayout(&self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), maxwidth, maxheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateGdiCompatibleTextLayout)(windows_core::Interface::as_raw(self), core::mem::transmute(string.as_ptr()), string.len().try_into().unwrap(), textformat.into_param().abi(), layoutwidth, layoutheight, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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(std::ptr::null())), usegdinatural.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEllipsisTrimmingSign(&self, textformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateEllipsisTrimmingSign)(windows_core::Interface::as_raw(self), textformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTextAnalyzer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2229,11 +2229,11 @@ impl IDWriteFactory8 { } pub unsafe fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.into_param().abi(), ignoreuseroverride.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateNumberSubstitution)(windows_core::Interface::as_raw(self), substitutionmethod, localename.param().abi(), ignoreuseroverride.param().abi(), &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__ = std::mem::zeroed(); @@ -2241,9 +2241,9 @@ impl IDWriteFactory8 { } pub unsafe fn GetEudcFontCollection(&self, fontcollection: *mut Option, checkforupdates: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetEudcFontCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn CreateCustomRenderingParams2(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2279,17 +2279,17 @@ impl IDWriteFactory8 { } pub unsafe fn CreateFontFaceReference(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFontFaceReference)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFontFaceReference2)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(lastwritetime.unwrap_or(std::ptr::null())), faceindex, fontsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2301,17 +2301,17 @@ impl IDWriteFactory8 { } pub unsafe fn CreateFontCollectionFromFontSet(&self, fontset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFontCollectionFromFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection2(&self, includedownloadablefonts: P0, fontcollection: *mut Option, checkforupdates: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), core::mem::transmute(fontcollection), checkforupdates.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetSystemFontCollection2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), core::mem::transmute(fontcollection), checkforupdates.param().abi()).ok() } pub unsafe fn GetFontDownloadQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2342,11 +2342,11 @@ impl IDWriteFactory8 { } pub unsafe fn CreateHttpFontFileLoader(&self, referrerurl: P0, extraheaders: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateHttpFontFileLoader)(windows_core::Interface::as_raw(self), referrerurl.into_param().abi(), extraheaders.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.AnalyzeContainerType)(windows_core::Interface::as_raw(self), filedata, filedatasize) @@ -2357,38 +2357,38 @@ impl IDWriteFactory8 { } pub unsafe fn CreateFontFaceReference3(&self, fontfile: P0, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFontFaceReference3)(windows_core::Interface::as_raw(self), fontfile.into_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__)) + (windows_core::Interface::vtable(self).base__.base__.CreateFontFaceReference3)(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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFontResource)(windows_core::Interface::as_raw(self), fontfile.into_param().abi(), faceindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateFontResource)(windows_core::Interface::as_raw(self), fontfile.param().abi(), faceindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontSet2(&self, includedownloadablefonts: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetSystemFontSet2)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetSystemFontSet2)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection3(&self, includedownloadablefonts: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetSystemFontCollection3)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetSystemFontCollection3)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontCollectionFromFontSet2(&self, fontset: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFontCollectionFromFontSet2)(windows_core::Interface::as_raw(self), fontset.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateFontCollectionFromFontSet2)(windows_core::Interface::as_raw(self), fontset.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFontSetBuilder3(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2396,26 +2396,26 @@ impl IDWriteFactory8 { } pub unsafe fn CreateTextFormat2(&self, fontfamilyname: P0, fontcollection: P1, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE], fontsize: f32, localename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTextFormat2)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), fontcollection.into_param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), fontsize, localename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateTextFormat2)(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__)) } pub unsafe fn GetSystemFontSet3(&self, includedownloadablefonts: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSystemFontSet3)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSystemFontSet3)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSystemFontCollection4(&self, includedownloadablefonts: P0, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSystemFontCollection4)(windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSystemFontCollection4)(windows_core::Interface::as_raw(self), includedownloadablefonts.param().abi(), fontfamilymodel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn TranslateColorGlyphRun3(&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 { @@ -2684,9 +2684,9 @@ impl IDWriteFont3 { } pub unsafe fn Equals(&self, font: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Equals)(windows_core::Interface::as_raw(self), font.into_param().abi()) + (windows_core::Interface::vtable(self).Equals)(windows_core::Interface::as_raw(self), font.param().abi()) } pub unsafe fn GetFontFaceReference(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2722,16 +2722,16 @@ impl IDWriteFontCollection { } pub unsafe fn FindFamilyName(&self, familyname: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindFamilyName)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), index, exists).ok() + (windows_core::Interface::vtable(self).FindFamilyName)(windows_core::Interface::as_raw(self), familyname.param().abi(), index, exists).ok() } pub unsafe fn GetFontFromFontFace(&self, fontface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for IDWriteFontCollection {} @@ -2756,16 +2756,16 @@ impl IDWriteFontCollection1 { } pub unsafe fn FindFamilyName(&self, familyname: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindFamilyName)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), index, exists).ok() + (windows_core::Interface::vtable(self).base__.FindFamilyName)(windows_core::Interface::as_raw(self), familyname.param().abi(), index, exists).ok() } pub unsafe fn GetFontFromFontFace(&self, fontface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2796,16 +2796,16 @@ impl IDWriteFontCollection2 { } pub unsafe fn FindFamilyName(&self, familyname: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FindFamilyName)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), index, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.FindFamilyName)(windows_core::Interface::as_raw(self), familyname.param().abi(), index, exists).ok() } pub unsafe fn GetFontFromFontFace(&self, fontface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2821,10 +2821,10 @@ impl IDWriteFontCollection2 { } pub unsafe fn GetMatchingFonts(&self, familyname: P0, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), 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).GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontFamilyModel(&self) -> DWRITE_FONT_FAMILY_MODEL { (windows_core::Interface::vtable(self).GetFontFamilyModel)(windows_core::Interface::as_raw(self)) @@ -2856,16 +2856,16 @@ impl IDWriteFontCollection3 { } pub unsafe fn FindFamilyName(&self, familyname: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FindFamilyName)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), index, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FindFamilyName)(windows_core::Interface::as_raw(self), familyname.param().abi(), index, exists).ok() } pub unsafe fn GetFontFromFontFace(&self, fontface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetFontFromFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2881,10 +2881,10 @@ impl IDWriteFontCollection3 { } pub unsafe fn GetMatchingFonts(&self, familyname: P0, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), 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).base__.GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFontFamilyModel(&self) -> DWRITE_FONT_FAMILY_MODEL { (windows_core::Interface::vtable(self).base__.GetFontFamilyModel)(windows_core::Interface::as_raw(self)) @@ -2909,10 +2909,10 @@ windows_core::imp::interface_hierarchy!(IDWriteFontCollectionLoader, windows_cor impl IDWriteFontCollectionLoader { pub unsafe fn CreateEnumeratorFromKey(&self, factory: P0, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEnumeratorFromKey)(windows_core::Interface::as_raw(self), factory.into_param().abi(), collectionkey, 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__)) } } unsafe impl Send for IDWriteFontCollectionLoader {} @@ -2927,10 +2927,10 @@ windows_core::imp::interface_hierarchy!(IDWriteFontDownloadListener, windows_cor impl IDWriteFontDownloadListener { pub unsafe fn DownloadCompleted(&self, downloadqueue: P0, context: P1, downloadresult: windows_core::HRESULT) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DownloadCompleted)(windows_core::Interface::as_raw(self), downloadqueue.into_param().abi(), context.into_param().abi(), downloadresult) + (windows_core::Interface::vtable(self).DownloadCompleted)(windows_core::Interface::as_raw(self), downloadqueue.param().abi(), context.param().abi(), downloadresult) } } unsafe impl Send for IDWriteFontDownloadListener {} @@ -2945,10 +2945,10 @@ windows_core::imp::interface_hierarchy!(IDWriteFontDownloadQueue, windows_core:: impl IDWriteFontDownloadQueue { pub unsafe fn AddListener(&self, listener: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddListener)(windows_core::Interface::as_raw(self), listener.into_param().abi(), &mut result__).map(|| result__) + (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), token).ok() @@ -2958,9 +2958,9 @@ impl IDWriteFontDownloadQueue { } pub unsafe fn BeginDownload(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginDownload)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginDownload)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } pub unsafe fn CancelDownload(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelDownload)(windows_core::Interface::as_raw(self)).ok() @@ -3007,9 +3007,9 @@ impl IDWriteFontFace { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -3023,28 +3023,28 @@ impl IDWriteFontFace { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_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), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } } unsafe impl Send for IDWriteFontFace {} @@ -3097,9 +3097,9 @@ impl IDWriteFontFace1 { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -3113,28 +3113,28 @@ impl IDWriteFontFace1 { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetMetrics2(&self, fontmetrics: *mut DWRITE_FONT_METRICS1) { (windows_core::Interface::vtable(self).GetMetrics2)(windows_core::Interface::as_raw(self), fontmetrics) @@ -3155,16 +3155,16 @@ impl IDWriteFontFace1 { } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.param().abi()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, issideways: P1, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), issideways.into_param().abi(), glyphcount, glyphindices, glyphadvances).ok() + (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), issideways.param().abi(), glyphcount, glyphindices, glyphadvances).ok() } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments).ok() @@ -3174,10 +3174,10 @@ impl IDWriteFontFace1 { } pub unsafe fn GetRecommendedRenderingMode2(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices).ok() @@ -3230,9 +3230,9 @@ impl IDWriteFontFace2 { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -3246,28 +3246,28 @@ impl IDWriteFontFace2 { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetMetrics2(&self, fontmetrics: *mut DWRITE_FONT_METRICS1) { (windows_core::Interface::vtable(self).base__.GetMetrics2)(windows_core::Interface::as_raw(self), fontmetrics) @@ -3288,16 +3288,16 @@ impl IDWriteFontFace2 { } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.param().abi()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, issideways: P1, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), issideways.into_param().abi(), glyphcount, glyphindices, glyphadvances).ok() + (windows_core::Interface::vtable(self).base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), issideways.param().abi(), glyphcount, glyphindices, glyphadvances).ok() } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments).ok() @@ -3307,10 +3307,10 @@ impl IDWriteFontFace2 { } pub unsafe fn GetRecommendedRenderingMode2(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices).ok() @@ -3332,10 +3332,10 @@ impl IDWriteFontFace2 { } pub unsafe fn GetRecommendedRenderingMode3(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } } unsafe impl Send for IDWriteFontFace2 {} @@ -3375,9 +3375,9 @@ impl IDWriteFontFace3 { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -3391,28 +3391,28 @@ impl IDWriteFontFace3 { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetMetrics2(&self, fontmetrics: *mut DWRITE_FONT_METRICS1) { (windows_core::Interface::vtable(self).base__.base__.GetMetrics2)(windows_core::Interface::as_raw(self), fontmetrics) @@ -3433,16 +3433,16 @@ impl IDWriteFontFace3 { } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.param().abi()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, issideways: P1, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), issideways.into_param().abi(), glyphcount, glyphindices, glyphadvances).ok() + (windows_core::Interface::vtable(self).base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), issideways.param().abi(), glyphcount, glyphindices, glyphadvances).ok() } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments).ok() @@ -3452,10 +3452,10 @@ impl IDWriteFontFace3 { } pub unsafe fn GetRecommendedRenderingMode2(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices).ok() @@ -3477,10 +3477,10 @@ impl IDWriteFontFace3 { } pub unsafe fn GetRecommendedRenderingMode3(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn GetFontFaceReference(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3516,10 +3516,10 @@ impl IDWriteFontFace3 { } pub unsafe fn GetRecommendedRenderingMode4(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, 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), unicodevalue) @@ -3529,17 +3529,17 @@ impl IDWriteFontFace3 { } pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AreGlyphsLocal(&self, glyphindices: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } } unsafe impl Send for IDWriteFontFace3 {} @@ -3588,9 +3588,9 @@ impl IDWriteFontFace4 { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -3604,28 +3604,28 @@ impl IDWriteFontFace4 { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetMetrics2(&self, fontmetrics: *mut DWRITE_FONT_METRICS1) { (windows_core::Interface::vtable(self).base__.base__.base__.GetMetrics2)(windows_core::Interface::as_raw(self), fontmetrics) @@ -3646,16 +3646,16 @@ impl IDWriteFontFace4 { } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.param().abi()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, issideways: P1, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), issideways.into_param().abi(), glyphcount, glyphindices, glyphadvances).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), issideways.param().abi(), glyphcount, glyphindices, glyphadvances).ok() } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments).ok() @@ -3665,10 +3665,10 @@ impl IDWriteFontFace4 { } pub unsafe fn GetRecommendedRenderingMode2(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices).ok() @@ -3690,10 +3690,10 @@ impl IDWriteFontFace4 { } pub unsafe fn GetRecommendedRenderingMode3(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn GetFontFaceReference(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3729,10 +3729,10 @@ impl IDWriteFontFace4 { } pub unsafe fn GetRecommendedRenderingMode4(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn IsCharacterLocal(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.IsCharacterLocal)(windows_core::Interface::as_raw(self), unicodevalue) @@ -3742,17 +3742,17 @@ impl IDWriteFontFace4 { } pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AreGlyphsLocal(&self, glyphindices: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetGlyphImageFormats(&self, glyphid: u16, pixelsperemfirst: u32, pixelsperemlast: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3808,9 +3808,9 @@ impl IDWriteFontFace5 { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -3824,28 +3824,28 @@ impl IDWriteFontFace5 { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetMetrics2(&self, fontmetrics: *mut DWRITE_FONT_METRICS1) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetMetrics2)(windows_core::Interface::as_raw(self), fontmetrics) @@ -3866,16 +3866,16 @@ impl IDWriteFontFace5 { } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.param().abi()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, issideways: P1, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), issideways.into_param().abi(), glyphcount, glyphindices, glyphadvances).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), issideways.param().abi(), glyphcount, glyphindices, glyphadvances).ok() } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments).ok() @@ -3885,10 +3885,10 @@ impl IDWriteFontFace5 { } pub unsafe fn GetRecommendedRenderingMode2(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices).ok() @@ -3910,10 +3910,10 @@ impl IDWriteFontFace5 { } pub unsafe fn GetRecommendedRenderingMode3(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn GetFontFaceReference(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3949,10 +3949,10 @@ impl IDWriteFontFace5 { } pub unsafe fn GetRecommendedRenderingMode4(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn IsCharacterLocal(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.IsCharacterLocal)(windows_core::Interface::as_raw(self), unicodevalue) @@ -3962,17 +3962,17 @@ impl IDWriteFontFace5 { } pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AreGlyphsLocal(&self, glyphindices: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetGlyphImageFormats(&self, glyphid: u16, pixelsperemfirst: u32, pixelsperemlast: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4003,9 +4003,9 @@ impl IDWriteFontFace5 { } pub unsafe fn Equals(&self, fontface: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Equals)(windows_core::Interface::as_raw(self), fontface.into_param().abi()) + (windows_core::Interface::vtable(self).Equals)(windows_core::Interface::as_raw(self), fontface.param().abi()) } } unsafe impl Send for IDWriteFontFace5 {} @@ -4045,9 +4045,9 @@ impl IDWriteFontFace6 { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -4061,28 +4061,28 @@ impl IDWriteFontFace6 { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetMetrics2(&self, fontmetrics: *mut DWRITE_FONT_METRICS1) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetMetrics2)(windows_core::Interface::as_raw(self), fontmetrics) @@ -4103,16 +4103,16 @@ impl IDWriteFontFace6 { } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.param().abi()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, issideways: P1, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), issideways.into_param().abi(), glyphcount, glyphindices, glyphadvances).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), issideways.param().abi(), glyphcount, glyphindices, glyphadvances).ok() } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments).ok() @@ -4122,10 +4122,10 @@ impl IDWriteFontFace6 { } pub unsafe fn GetRecommendedRenderingMode2(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices).ok() @@ -4147,10 +4147,10 @@ impl IDWriteFontFace6 { } pub unsafe fn GetRecommendedRenderingMode3(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn GetFontFaceReference(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4186,10 +4186,10 @@ impl IDWriteFontFace6 { } pub unsafe fn GetRecommendedRenderingMode4(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn IsCharacterLocal(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.base__.IsCharacterLocal)(windows_core::Interface::as_raw(self), unicodevalue) @@ -4199,17 +4199,17 @@ impl IDWriteFontFace6 { } pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AreGlyphsLocal(&self, glyphindices: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetGlyphImageFormats(&self, glyphid: u16, pixelsperemfirst: u32, pixelsperemlast: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4240,9 +4240,9 @@ impl IDWriteFontFace6 { } pub unsafe fn Equals(&self, fontface: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Equals)(windows_core::Interface::as_raw(self), fontface.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Equals)(windows_core::Interface::as_raw(self), fontface.param().abi()) } pub unsafe fn GetFamilyNames2(&self, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4287,9 +4287,9 @@ impl IDWriteFontFace7 { } pub unsafe fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetDesignGlyphMetrics)(windows_core::Interface::as_raw(self), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices).ok() @@ -4303,28 +4303,28 @@ impl IDWriteFontFace7 { #[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: P0, isrighttoleft: P1, geometrysink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.into_param().abi(), isrighttoleft.into_param().abi(), geometrysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetGlyphRunOutline)(windows_core::Interface::as_raw(self), emsize, glyphindices, core::mem::transmute(glyphadvances.unwrap_or(std::ptr::null())), core::mem::transmute(glyphoffsets.unwrap_or(std::ptr::null())), glyphcount, issideways.param().abi(), isrighttoleft.param().abi(), geometrysink.param().abi()).ok() } pub unsafe fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, measuringmode, renderingparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.GetGdiCompatibleMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), fontfacemetrics).ok() } pub unsafe fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetGdiCompatibleGlyphMetrics)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), glyphindices, glyphcount, glyphmetrics, issideways.param().abi()).ok() } pub unsafe fn GetMetrics2(&self, fontmetrics: *mut DWRITE_FONT_METRICS1) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetMetrics2)(windows_core::Interface::as_raw(self), fontmetrics) @@ -4345,16 +4345,16 @@ impl IDWriteFontFace7 { } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetDesignGlyphAdvances)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvances, issideways.param().abi()).ok() } pub unsafe fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P0, issideways: P1, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.into_param().abi(), issideways.into_param().abi(), glyphcount, glyphindices, glyphadvances).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetGdiCompatibleGlyphAdvances)(windows_core::Interface::as_raw(self), emsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), usegdinatural.param().abi(), issideways.param().abi(), glyphcount, glyphindices, glyphadvances).ok() } pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments).ok() @@ -4364,10 +4364,10 @@ impl IDWriteFontFace7 { } pub unsafe fn GetRecommendedRenderingMode2(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetRecommendedRenderingMode2)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, &mut result__).map(|| result__) } pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices).ok() @@ -4389,10 +4389,10 @@ impl IDWriteFontFace7 { } pub unsafe fn GetRecommendedRenderingMode3(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetRecommendedRenderingMode3)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn GetFontFaceReference(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4428,10 +4428,10 @@ impl IDWriteFontFace7 { } pub unsafe fn GetRecommendedRenderingMode4(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: P0, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P1, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.into_param().abi(), outlinethreshold, measuringmode, renderingparams.into_param().abi(), renderingmode, gridfitmode).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRecommendedRenderingMode4)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, core::mem::transmute(transform.unwrap_or(std::ptr::null())), issideways.param().abi(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode, gridfitmode).ok() } pub unsafe fn IsCharacterLocal(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsCharacterLocal)(windows_core::Interface::as_raw(self), unicodevalue) @@ -4441,17 +4441,17 @@ impl IDWriteFontFace7 { } pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AreGlyphsLocal(&self, glyphindices: &[u16], enqueueifnotlocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetGlyphImageFormats(&self, glyphid: u16, pixelsperemfirst: u32, pixelsperemlast: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4482,9 +4482,9 @@ impl IDWriteFontFace7 { } pub unsafe fn Equals(&self, fontface: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Equals)(windows_core::Interface::as_raw(self), fontface.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.Equals)(windows_core::Interface::as_raw(self), fontface.param().abi()) } pub unsafe fn GetFamilyNames2(&self, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4523,9 +4523,9 @@ impl IDWriteFontFaceReference { } pub unsafe fn Equals(&self, fontfacereference: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Equals)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi()) + (windows_core::Interface::vtable(self).Equals)(windows_core::Interface::as_raw(self), fontfacereference.param().abi()) } pub unsafe fn GetFontFaceIndex(&self) -> u32 { (windows_core::Interface::vtable(self).GetFontFaceIndex)(windows_core::Interface::as_raw(self)) @@ -4596,9 +4596,9 @@ impl IDWriteFontFaceReference1 { } pub unsafe fn Equals(&self, fontfacereference: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Equals)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Equals)(windows_core::Interface::as_raw(self), fontfacereference.param().abi()) } pub unsafe fn GetFontFaceIndex(&self) -> u32 { (windows_core::Interface::vtable(self).base__.GetFontFaceIndex)(windows_core::Interface::as_raw(self)) @@ -4660,11 +4660,11 @@ windows_core::imp::interface_hierarchy!(IDWriteFontFallback, windows_core::IUnkn impl IDWriteFontFallback { pub unsafe fn MapCharacters(&self, analysissource: P0, textposition: u32, textlength: u32, basefontcollection: P1, basefamilyname: P2, baseweight: DWRITE_FONT_WEIGHT, basestyle: DWRITE_FONT_STYLE, basestretch: DWRITE_FONT_STRETCH, mappedlength: *mut u32, mappedfont: *mut Option, scale: *mut f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MapCharacters)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, basefontcollection.into_param().abi(), basefamilyname.into_param().abi(), baseweight, basestyle, basestretch, mappedlength, core::mem::transmute(mappedfont), 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, mappedlength, core::mem::transmute(mappedfont), scale).ok() } } unsafe impl Send for IDWriteFontFallback {} @@ -4679,19 +4679,19 @@ windows_core::imp::interface_hierarchy!(IDWriteFontFallback1, windows_core::IUnk impl IDWriteFontFallback1 { pub unsafe fn MapCharacters(&self, analysissource: P0, textposition: u32, textlength: u32, basefontcollection: P1, basefamilyname: P2, baseweight: DWRITE_FONT_WEIGHT, basestyle: DWRITE_FONT_STYLE, basestretch: DWRITE_FONT_STRETCH, mappedlength: *mut u32, mappedfont: *mut Option, scale: *mut f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MapCharacters)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, basefontcollection.into_param().abi(), basefamilyname.into_param().abi(), baseweight, basestyle, basestretch, mappedlength, core::mem::transmute(mappedfont), scale).ok() + (windows_core::Interface::vtable(self).base__.MapCharacters)(windows_core::Interface::as_raw(self), analysissource.param().abi(), textposition, textlength, basefontcollection.param().abi(), basefamilyname.param().abi(), baseweight, basestyle, basestretch, mappedlength, core::mem::transmute(mappedfont), scale).ok() } pub unsafe fn MapCharacters2(&self, analysissource: P0, textposition: u32, textlength: u32, basefontcollection: P1, basefamilyname: P2, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE], mappedlength: *mut u32, scale: *mut f32, mappedfontface: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MapCharacters2)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, basefontcollection.into_param().abi(), basefamilyname.into_param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), mappedlength, scale, core::mem::transmute(mappedfontface)).ok() + (windows_core::Interface::vtable(self).MapCharacters2)(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(), mappedlength, scale, core::mem::transmute(mappedfontface)).ok() } } unsafe impl Send for IDWriteFontFallback1 {} @@ -4706,17 +4706,17 @@ windows_core::imp::interface_hierarchy!(IDWriteFontFallbackBuilder, windows_core impl IDWriteFontFallbackBuilder { pub unsafe fn AddMapping(&self, ranges: &[DWRITE_UNICODE_RANGE], targetfamilynames: &[*const u16], fontcollection: P0, localename: P1, basefamilyname: P2, scale: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), localename.into_param().abi(), basefamilyname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMappings)(windows_core::Interface::as_raw(self), fontfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMappings)(windows_core::Interface::as_raw(self), fontfallback.param().abi()).ok() } pub unsafe fn CreateFontFallback(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5125,15 +5125,15 @@ impl IDWriteFontSet { } pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), listindex, exists).ok() } pub unsafe fn FindFontFace(&self, fontface: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).FindFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), listindex, exists).ok() } pub unsafe fn GetPropertyValues(&self, propertyid: DWRITE_FONT_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5141,10 +5141,10 @@ impl IDWriteFontSet { } pub unsafe fn GetPropertyValues2(&self, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyValues2)(windows_core::Interface::as_raw(self), propertyid, preferredlocalenames.into_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), listindex, propertyid, exists, core::mem::transmute(values)).ok() @@ -5155,10 +5155,10 @@ impl IDWriteFontSet { } 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), fontweight, fontstretch, 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__ = std::mem::zeroed(); @@ -5193,15 +5193,15 @@ impl IDWriteFontSet1 { } pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), listindex, exists).ok() } pub unsafe fn FindFontFace(&self, fontface: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), listindex, exists).ok() } pub unsafe fn GetPropertyValues(&self, propertyid: DWRITE_FONT_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5209,10 +5209,10 @@ impl IDWriteFontSet1 { } pub unsafe fn GetPropertyValues2(&self, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyValues2)(windows_core::Interface::as_raw(self), propertyid, preferredlocalenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.GetPropertyValues3)(windows_core::Interface::as_raw(self), listindex, propertyid, exists, core::mem::transmute(values)).ok() @@ -5223,10 +5223,10 @@ impl IDWriteFontSet1 { } 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), fontweight, fontstretch, fontstyle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -5246,29 +5246,29 @@ impl IDWriteFontSet1 { } pub unsafe fn GetFilteredFonts2(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFonts3(&self, properties: Option<&[DWRITE_FONT_PROPERTY]>, selectanyproperty: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFontIndices(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() } pub unsafe fn GetFilteredFontIndices2(&self, properties: &[DWRITE_FONT_PROPERTY], selectanyproperty: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), 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), listindex, core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), actualfontaxisrangecount).ok() @@ -5323,15 +5323,15 @@ impl IDWriteFontSet2 { } pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), listindex, exists).ok() } pub unsafe fn FindFontFace(&self, fontface: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), listindex, exists).ok() } pub unsafe fn GetPropertyValues(&self, propertyid: DWRITE_FONT_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5339,10 +5339,10 @@ impl IDWriteFontSet2 { } pub unsafe fn GetPropertyValues2(&self, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetPropertyValues2)(windows_core::Interface::as_raw(self), propertyid, preferredlocalenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPropertyValues3)(windows_core::Interface::as_raw(self), listindex, propertyid, exists, core::mem::transmute(values)).ok() @@ -5353,10 +5353,10 @@ impl IDWriteFontSet2 { } 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), fontweight, fontstretch, fontstyle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -5376,29 +5376,29 @@ impl IDWriteFontSet2 { } pub unsafe fn GetFilteredFonts2(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFonts3(&self, properties: Option<&[DWRITE_FONT_PROPERTY]>, selectanyproperty: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFontIndices(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).base__.GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() } pub unsafe fn GetFilteredFontIndices2(&self, properties: &[DWRITE_FONT_PROPERTY], selectanyproperty: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.into_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).base__.GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), 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).base__.GetFontAxisRanges)(windows_core::Interface::as_raw(self), listindex, core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), actualfontaxisrangecount).ok() @@ -5444,15 +5444,15 @@ impl IDWriteFontSet3 { } pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), listindex, exists).ok() } pub unsafe fn FindFontFace(&self, fontface: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), listindex, exists).ok() } pub unsafe fn GetPropertyValues(&self, propertyid: DWRITE_FONT_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5460,10 +5460,10 @@ impl IDWriteFontSet3 { } pub unsafe fn GetPropertyValues2(&self, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetPropertyValues2)(windows_core::Interface::as_raw(self), propertyid, preferredlocalenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPropertyValues3)(windows_core::Interface::as_raw(self), listindex, propertyid, exists, core::mem::transmute(values)).ok() @@ -5474,10 +5474,10 @@ impl IDWriteFontSet3 { } 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), fontweight, fontstretch, fontstyle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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__ = std::mem::zeroed(); @@ -5497,29 +5497,29 @@ impl IDWriteFontSet3 { } pub unsafe fn GetFilteredFonts2(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFonts3(&self, properties: Option<&[DWRITE_FONT_PROPERTY]>, selectanyproperty: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFontIndices(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).base__.base__.GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() } pub unsafe fn GetFilteredFontIndices2(&self, properties: &[DWRITE_FONT_PROPERTY], selectanyproperty: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.into_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).base__.base__.GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), 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).base__.base__.GetFontAxisRanges)(windows_core::Interface::as_raw(self), listindex, core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), actualfontaxisrangecount).ok() @@ -5576,15 +5576,15 @@ impl IDWriteFontSet4 { } pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), listindex, exists).ok() } pub unsafe fn FindFontFace(&self, fontface: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), listindex, exists).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindFontFace)(windows_core::Interface::as_raw(self), fontface.param().abi(), listindex, exists).ok() } pub unsafe fn GetPropertyValues(&self, propertyid: DWRITE_FONT_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5592,10 +5592,10 @@ impl IDWriteFontSet4 { } pub unsafe fn GetPropertyValues2(&self, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPropertyValues2)(windows_core::Interface::as_raw(self), propertyid, preferredlocalenames.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetPropertyValues3)(windows_core::Interface::as_raw(self), listindex, propertyid, exists, core::mem::transmute(values)).ok() @@ -5606,10 +5606,10 @@ impl IDWriteFontSet4 { } 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetMatchingFonts)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), fontweight, fontstretch, fontstyle, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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__ = std::mem::zeroed(); @@ -5629,29 +5629,29 @@ impl IDWriteFontSet4 { } pub unsafe fn GetFilteredFonts2(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFonts2)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFonts3(&self, properties: Option<&[DWRITE_FONT_PROPERTY]>, selectanyproperty: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFonts3)(windows_core::Interface::as_raw(self), 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()), selectanyproperty.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredFontIndices(&self, fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], selectanyrange: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.into_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFontIndices)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), selectanyrange.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() } pub unsafe fn GetFilteredFontIndices2(&self, properties: &[DWRITE_FONT_PROPERTY], selectanyproperty: P0, indices: &mut [u32], actualindexcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.into_param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), actualindexcount).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetFilteredFontIndices2)(windows_core::Interface::as_raw(self), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), selectanyproperty.param().abi(), core::mem::transmute(indices.as_ptr()), indices.len().try_into().unwrap(), 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).base__.base__.base__.GetFontAxisRanges)(windows_core::Interface::as_raw(self), listindex, core::mem::transmute(fontaxisranges.as_ptr()), fontaxisranges.len().try_into().unwrap(), actualfontaxisrangecount).ok() @@ -5691,10 +5691,10 @@ impl IDWriteFontSet4 { } pub unsafe fn GetMatchingFonts4(&self, familyname: P0, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE], allowedsimulations: DWRITE_FONT_SIMULATIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFonts4)(windows_core::Interface::as_raw(self), familyname.into_param().abi(), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), allowedsimulations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMatchingFonts4)(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__)) } } unsafe impl Send for IDWriteFontSet4 {} @@ -5710,21 +5710,21 @@ windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder, windows_core::IUn impl IDWriteFontSetBuilder { pub unsafe fn AddFontFaceReference(&self, fontfacereference: P0, properties: &[DWRITE_FONT_PROPERTY]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).AddFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() } pub unsafe fn AddFontFaceReference2(&self, fontfacereference: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFontFaceReference2)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFontFaceReference2)(windows_core::Interface::as_raw(self), fontfacereference.param().abi()).ok() } pub unsafe fn AddFontSet(&self, fontset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi()).ok() } pub unsafe fn CreateFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5746,21 +5746,21 @@ windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder1, windows_core::IU impl IDWriteFontSetBuilder1 { pub unsafe fn AddFontFaceReference(&self, fontfacereference: P0, properties: &[DWRITE_FONT_PROPERTY]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.AddFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() } pub unsafe fn AddFontFaceReference2(&self, fontfacereference: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFontFaceReference2)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddFontFaceReference2)(windows_core::Interface::as_raw(self), fontfacereference.param().abi()).ok() } pub unsafe fn AddFontSet(&self, fontset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi()).ok() } pub unsafe fn CreateFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5768,9 +5768,9 @@ impl IDWriteFontSetBuilder1 { } pub unsafe fn AddFontFile(&self, fontfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFontFile)(windows_core::Interface::as_raw(self), fontfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFontFile)(windows_core::Interface::as_raw(self), fontfile.param().abi()).ok() } } unsafe impl Send for IDWriteFontSetBuilder1 {} @@ -5785,21 +5785,21 @@ windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder2, windows_core::IU impl IDWriteFontSetBuilder2 { pub unsafe fn AddFontFaceReference(&self, fontfacereference: P0, properties: &[DWRITE_FONT_PROPERTY]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() } pub unsafe fn AddFontFaceReference2(&self, fontfacereference: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFontFaceReference2)(windows_core::Interface::as_raw(self), fontfacereference.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddFontFaceReference2)(windows_core::Interface::as_raw(self), fontfacereference.param().abi()).ok() } pub unsafe fn AddFontSet(&self, fontset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFontSet)(windows_core::Interface::as_raw(self), fontset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddFontSet)(windows_core::Interface::as_raw(self), fontset.param().abi()).ok() } pub unsafe fn CreateFontSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5807,21 +5807,21 @@ impl IDWriteFontSetBuilder2 { } pub unsafe fn AddFontFile(&self, fontfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFontFile)(windows_core::Interface::as_raw(self), fontfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddFontFile)(windows_core::Interface::as_raw(self), fontfile.param().abi()).ok() } pub unsafe fn AddFont(&self, fontfile: P0, fontfaceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE], fontaxisranges: &[DWRITE_FONT_AXIS_RANGE], properties: &[DWRITE_FONT_PROPERTY]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFont)(windows_core::Interface::as_raw(self), fontfile.into_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() + (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 AddFontFile2(&self, filepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFontFile2)(windows_core::Interface::as_raw(self), filepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFontFile2)(windows_core::Interface::as_raw(self), filepath.param().abi()).ok() } } unsafe impl Send for IDWriteFontSetBuilder2 {} @@ -5843,32 +5843,32 @@ impl IDWriteGdiInterop { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertFontToLOGFONT)(windows_core::Interface::as_raw(self), font.into_param().abi(), logfont, issystemfont).ok() + (windows_core::Interface::vtable(self).ConvertFontToLOGFONT)(windows_core::Interface::as_raw(self), font.param().abi(), logfont, issystemfont).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ConvertFontFaceToLOGFONT(&self, font: P0, logfont: *mut super::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertFontFaceToLOGFONT)(windows_core::Interface::as_raw(self), font.into_param().abi(), logfont).ok() + (windows_core::Interface::vtable(self).ConvertFontFaceToLOGFONT)(windows_core::Interface::as_raw(self), font.param().abi(), logfont).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateFontFaceFromHdc(&self, hdc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFaceFromHdc)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFaceFromHdc)(windows_core::Interface::as_raw(self), hdc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateBitmapRenderTarget(&self, hdc: P0, width: u32, height: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapRenderTarget)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapRenderTarget)(windows_core::Interface::as_raw(self), hdc.param().abi(), width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for IDWriteGdiInterop {} @@ -5908,62 +5908,62 @@ impl IDWriteGdiInterop1 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertFontToLOGFONT)(windows_core::Interface::as_raw(self), font.into_param().abi(), logfont, issystemfont).ok() + (windows_core::Interface::vtable(self).base__.ConvertFontToLOGFONT)(windows_core::Interface::as_raw(self), font.param().abi(), logfont, issystemfont).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ConvertFontFaceToLOGFONT(&self, font: P0, logfont: *mut super::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertFontFaceToLOGFONT)(windows_core::Interface::as_raw(self), font.into_param().abi(), logfont).ok() + (windows_core::Interface::vtable(self).base__.ConvertFontFaceToLOGFONT)(windows_core::Interface::as_raw(self), font.param().abi(), logfont).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateFontFaceFromHdc(&self, hdc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontFaceFromHdc)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFontFaceFromHdc)(windows_core::Interface::as_raw(self), hdc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateBitmapRenderTarget(&self, hdc: P0, width: u32, height: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapRenderTarget)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapRenderTarget)(windows_core::Interface::as_raw(self), hdc.param().abi(), width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateFontFromLOGFONT2(&self, logfont: *const super::Gdi::LOGFONTW, fontcollection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFromLOGFONT2)(windows_core::Interface::as_raw(self), logfont, fontcollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFromLOGFONT2)(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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFontSignature)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), fontsignature).ok() + (windows_core::Interface::vtable(self).GetFontSignature)(windows_core::Interface::as_raw(self), fontface.param().abi(), fontsignature).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetFontSignature2(&self, font: P0, fontsignature: *mut super::super::Globalization::FONTSIGNATURE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFontSignature2)(windows_core::Interface::as_raw(self), font.into_param().abi(), fontsignature).ok() + (windows_core::Interface::vtable(self).GetFontSignature2)(windows_core::Interface::as_raw(self), font.param().abi(), fontsignature).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMatchingFontsByLOGFONT(&self, logfont: *const super::Gdi::LOGFONTA, fontset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingFontsByLOGFONT)(windows_core::Interface::as_raw(self), logfont, fontset.into_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__)) } } unsafe impl Send for IDWriteGdiInterop1 {} @@ -6000,9 +6000,9 @@ impl IDWriteGlyphRunAnalysis { } pub unsafe fn GetAlphaBlendParams(&self, renderingparams: P0, blendgamma: *mut f32, blendenhancedcontrast: *mut f32, blendcleartypelevel: *mut f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAlphaBlendParams)(windows_core::Interface::as_raw(self), renderingparams.into_param().abi(), blendgamma, blendenhancedcontrast, blendcleartypelevel).ok() + (windows_core::Interface::vtable(self).GetAlphaBlendParams)(windows_core::Interface::as_raw(self), renderingparams.param().abi(), blendgamma, blendenhancedcontrast, blendcleartypelevel).ok() } } unsafe impl Send for IDWriteGlyphRunAnalysis {} @@ -6023,11 +6023,11 @@ impl IDWriteInMemoryFontFileLoader { } pub unsafe fn CreateInMemoryFontFileReference(&self, factory: P0, fontdata: *const core::ffi::c_void, fontdatasize: u32, ownerobject: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInMemoryFontFileReference)(windows_core::Interface::as_raw(self), factory.into_param().abi(), fontdata, fontdatasize, ownerobject.into_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)) @@ -6046,12 +6046,12 @@ windows_core::imp::interface_hierarchy!(IDWriteInlineObject, windows_core::IUnkn impl IDWriteInlineObject { pub unsafe fn Draw(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, renderer: P0, originx: f32, originy: f32, issideways: P1, isrighttoleft: P2, clientdrawingeffect: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), renderer.into_param().abi(), originx, originy, issideways.into_param().abi(), isrighttoleft.into_param().abi(), clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), renderer.param().abi(), originx, originy, issideways.param().abi(), isrighttoleft.param().abi(), clientdrawingeffect.param().abi()).ok() } pub unsafe fn GetMetrics(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6111,9 +6111,9 @@ impl IDWriteLocalizedStrings { } pub unsafe fn FindLocaleName(&self, localename: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindLocaleName)(windows_core::Interface::as_raw(self), localename.into_param().abi(), index, exists).ok() + (windows_core::Interface::vtable(self).FindLocaleName)(windows_core::Interface::as_raw(self), localename.param().abi(), index, exists).ok() } pub unsafe fn GetLocaleNameLength(&self, index: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6254,12 +6254,12 @@ impl IDWriteRemoteFontFileLoader { } pub unsafe fn CreateFontFileReferenceFromUrl(&self, factory: P0, baseurl: P1, fontfileurl: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontFileReferenceFromUrl)(windows_core::Interface::as_raw(self), factory.into_param().abi(), baseurl.into_param().abi(), fontfileurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFontFileReferenceFromUrl)(windows_core::Interface::as_raw(self), factory.param().abi(), baseurl.param().abi(), fontfileurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for IDWriteRemoteFontFileLoader {} @@ -6485,9 +6485,9 @@ impl IDWriteTextAnalysisSink { } pub unsafe fn SetNumberSubstitution(&self, textposition: u32, textlength: u32, numbersubstitution: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNumberSubstitution)(windows_core::Interface::as_raw(self), textposition, textlength, numbersubstitution.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNumberSubstitution)(windows_core::Interface::as_raw(self), textposition, textlength, numbersubstitution.param().abi()).ok() } } unsafe impl Send for IDWriteTextAnalysisSink {} @@ -6514,16 +6514,16 @@ impl IDWriteTextAnalysisSink1 { } pub unsafe fn SetNumberSubstitution(&self, textposition: u32, textlength: u32, numbersubstitution: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNumberSubstitution)(windows_core::Interface::as_raw(self), textposition, textlength, numbersubstitution.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNumberSubstitution)(windows_core::Interface::as_raw(self), textposition, textlength, numbersubstitution.param().abi()).ok() } pub unsafe fn SetGlyphOrientation(&self, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: P0, isrighttoleft: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGlyphOrientation)(windows_core::Interface::as_raw(self), textposition, textlength, glyphorientationangle, adjustedbidilevel, issideways.into_param().abi(), isrighttoleft.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGlyphOrientation)(windows_core::Interface::as_raw(self), textposition, textlength, glyphorientationangle, adjustedbidilevel, issideways.param().abi(), isrighttoleft.param().abi()).ok() } } unsafe impl Send for IDWriteTextAnalysisSink1 {} @@ -6597,100 +6597,80 @@ windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer, windows_core::IUnkn impl IDWriteTextAnalyzer { pub unsafe fn AnalyzeScript(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeScript)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeBidi)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeNumberSubstitution)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeLineBreakpoints)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_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: P1, issideways: P2, isrighttoleft: P3, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P4, numbersubstitution: P5, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlyphs)( - windows_core::Interface::as_raw(self), - textstring.into_param().abi(), - textlength, - fontface.into_param().abi(), - issideways.into_param().abi(), - isrighttoleft.into_param().abi(), - scriptanalysis, - localename.into_param().abi(), - numbersubstitution.into_param().abi(), - core::mem::transmute(features.unwrap_or(std::ptr::null())), - core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), - featureranges, - maxglyphcount, - clustermap, - textprops, - glyphindices, - glyphprops, - actualglyphcount, - ) - .ok() + (windows_core::Interface::vtable(self).GetGlyphs)(windows_core::Interface::as_raw(self), textstring.param().abi(), textlength, fontface.param().abi(), issideways.param().abi(), isrighttoleft.param().abi(), scriptanalysis, localename.param().abi(), numbersubstitution.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, maxglyphcount, clustermap, textprops, glyphindices, glyphprops, actualglyphcount).ok() } pub unsafe fn GetGlyphPlacements(&self, textstring: P0, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: P1, fontemsize: f32, issideways: P2, isrighttoleft: P3, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P4, features: Option<*const *const DWRITE_TYPOGRAPHIC_FEATURES>, featurerangelengths: Option<*const u32>, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlyphPlacements)(windows_core::Interface::as_raw(self), textstring.into_param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, fontface.into_param().abi(), fontemsize, issideways.into_param().abi(), isrighttoleft.into_param().abi(), scriptanalysis, localename.into_param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, glyphadvances, glyphoffsets).ok() + (windows_core::Interface::vtable(self).GetGlyphPlacements)(windows_core::Interface::as_raw(self), textstring.param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, fontface.param().abi(), fontemsize, issideways.param().abi(), isrighttoleft.param().abi(), scriptanalysis, localename.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, glyphadvances, glyphoffsets).ok() } pub unsafe fn GetGdiCompatibleGlyphPlacements(&self, textstring: P0, clustermap: *const u16, textprops: *const DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: P1, fontemsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P2, issideways: P3, isrighttoleft: P4, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P5, features: Option<*const *const DWRITE_TYPOGRAPHIC_FEATURES>, featurerangelengths: Option<*const u32>, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { (windows_core::Interface::vtable(self).GetGdiCompatibleGlyphPlacements)( windows_core::Interface::as_raw(self), - textstring.into_param().abi(), + textstring.param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, - fontface.into_param().abi(), + fontface.param().abi(), fontemsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), - usegdinatural.into_param().abi(), - issideways.into_param().abi(), - isrighttoleft.into_param().abi(), + usegdinatural.param().abi(), + issideways.param().abi(), + isrighttoleft.param().abi(), scriptanalysis, - localename.into_param().abi(), + localename.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, @@ -6718,100 +6698,80 @@ windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer1, windows_core::IUnk impl IDWriteTextAnalyzer1 { pub unsafe fn AnalyzeScript(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AnalyzeScript)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AnalyzeBidi)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AnalyzeNumberSubstitution)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AnalyzeLineBreakpoints)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1, issideways: P2, isrighttoleft: P3, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P4, numbersubstitution: P5, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetGlyphs)( - windows_core::Interface::as_raw(self), - textstring.into_param().abi(), - textlength, - fontface.into_param().abi(), - issideways.into_param().abi(), - isrighttoleft.into_param().abi(), - scriptanalysis, - localename.into_param().abi(), - numbersubstitution.into_param().abi(), - core::mem::transmute(features.unwrap_or(std::ptr::null())), - core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), - featureranges, - maxglyphcount, - clustermap, - textprops, - glyphindices, - glyphprops, - actualglyphcount, - ) - .ok() + (windows_core::Interface::vtable(self).base__.GetGlyphs)(windows_core::Interface::as_raw(self), textstring.param().abi(), textlength, fontface.param().abi(), issideways.param().abi(), isrighttoleft.param().abi(), scriptanalysis, localename.param().abi(), numbersubstitution.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, maxglyphcount, clustermap, textprops, glyphindices, glyphprops, actualglyphcount).ok() } pub unsafe fn GetGlyphPlacements(&self, textstring: P0, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: P1, fontemsize: f32, issideways: P2, isrighttoleft: P3, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P4, features: Option<*const *const DWRITE_TYPOGRAPHIC_FEATURES>, featurerangelengths: Option<*const u32>, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetGlyphPlacements)(windows_core::Interface::as_raw(self), textstring.into_param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, fontface.into_param().abi(), fontemsize, issideways.into_param().abi(), isrighttoleft.into_param().abi(), scriptanalysis, localename.into_param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, glyphadvances, glyphoffsets).ok() + (windows_core::Interface::vtable(self).base__.GetGlyphPlacements)(windows_core::Interface::as_raw(self), textstring.param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, fontface.param().abi(), fontemsize, issideways.param().abi(), isrighttoleft.param().abi(), scriptanalysis, localename.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, glyphadvances, glyphoffsets).ok() } pub unsafe fn GetGdiCompatibleGlyphPlacements(&self, textstring: P0, clustermap: *const u16, textprops: *const DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: P1, fontemsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P2, issideways: P3, isrighttoleft: P4, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P5, features: Option<*const *const DWRITE_TYPOGRAPHIC_FEATURES>, featurerangelengths: Option<*const u32>, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { (windows_core::Interface::vtable(self).base__.GetGdiCompatibleGlyphPlacements)( windows_core::Interface::as_raw(self), - textstring.into_param().abi(), + textstring.param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, - fontface.into_param().abi(), + fontface.param().abi(), fontemsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), - usegdinatural.into_param().abi(), - issideways.into_param().abi(), - isrighttoleft.into_param().abi(), + usegdinatural.param().abi(), + issideways.param().abi(), + isrighttoleft.param().abi(), scriptanalysis, - localename.into_param().abi(), + localename.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, @@ -6825,51 +6785,51 @@ impl IDWriteTextAnalyzer1 { } pub unsafe fn GetBaseline(&self, fontface: P0, baseline: DWRITE_BASELINE, isvertical: P1, issimulationallowed: P2, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P3, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBaseline)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), baseline, isvertical.into_param().abi(), issimulationallowed.into_param().abi(), core::mem::transmute(scriptanalysis), localename.into_param().abi(), baselinecoordinate, exists).ok() + (windows_core::Interface::vtable(self).GetBaseline)(windows_core::Interface::as_raw(self), fontface.param().abi(), baseline, isvertical.param().abi(), issimulationallowed.param().abi(), core::mem::transmute(scriptanalysis), localename.param().abi(), baselinecoordinate, exists).ok() } pub unsafe fn AnalyzeVerticalGlyphOrientation(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AnalyzeVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_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: P0, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.into_param().abi(), transform).ok() + (windows_core::Interface::vtable(self).GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.param().abi(), 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), scriptproperties).ok() } pub unsafe fn GetTextComplexity(&self, textstring: P0, textlength: u32, fontface: P1, istextsimple: *mut super::super::Foundation::BOOL, textlengthread: *mut u32, glyphindices: Option<*mut u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTextComplexity)(windows_core::Interface::as_raw(self), textstring.into_param().abi(), textlength, fontface.into_param().abi(), istextsimple, textlengthread, core::mem::transmute(glyphindices.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetTextComplexity)(windows_core::Interface::as_raw(self), textstring.param().abi(), textlength, fontface.param().abi(), istextsimple, textlengthread, core::mem::transmute(glyphindices.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetJustificationOpportunities(&self, fontface: P0, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, textstring: P1, clustermap: *const u16, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, justificationopportunities: *mut DWRITE_JUSTIFICATION_OPPORTUNITY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetJustificationOpportunities)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, textstring.into_param().abi(), clustermap, glyphproperties, justificationopportunities).ok() + (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, justificationopportunities).ok() } 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), linewidth, glyphcount, justificationopportunities, glyphadvances, glyphoffsets, justifiedglyphadvances, core::mem::transmute(justifiedglyphoffsets.unwrap_or(std::ptr::null_mut()))).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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetJustifiedGlyphs)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, maxglyphcount, core::mem::transmute(clustermap.unwrap_or(std::ptr::null())), glyphindices, glyphadvances, justifiedglyphadvances, justifiedglyphoffsets, glyphproperties, actualglyphcount, core::mem::transmute(modifiedclustermap.unwrap_or(std::ptr::null_mut())), modifiedglyphindices, modifiedglyphadvances, modifiedglyphoffsets).ok() + (windows_core::Interface::vtable(self).GetJustifiedGlyphs)(windows_core::Interface::as_raw(self), fontface.param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, maxglyphcount, core::mem::transmute(clustermap.unwrap_or(std::ptr::null())), glyphindices, glyphadvances, justifiedglyphadvances, justifiedglyphoffsets, glyphproperties, actualglyphcount, core::mem::transmute(modifiedclustermap.unwrap_or(std::ptr::null_mut())), modifiedglyphindices, modifiedglyphadvances, modifiedglyphoffsets).ok() } } unsafe impl Send for IDWriteTextAnalyzer1 {} @@ -6892,100 +6852,80 @@ windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer2, windows_core::IUnk impl IDWriteTextAnalyzer2 { pub unsafe fn AnalyzeScript(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AnalyzeScript)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AnalyzeBidi)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AnalyzeNumberSubstitution)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AnalyzeLineBreakpoints)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P1, issideways: P2, isrighttoleft: P3, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P4, numbersubstitution: P5, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetGlyphs)( - windows_core::Interface::as_raw(self), - textstring.into_param().abi(), - textlength, - fontface.into_param().abi(), - issideways.into_param().abi(), - isrighttoleft.into_param().abi(), - scriptanalysis, - localename.into_param().abi(), - numbersubstitution.into_param().abi(), - core::mem::transmute(features.unwrap_or(std::ptr::null())), - core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), - featureranges, - maxglyphcount, - clustermap, - textprops, - glyphindices, - glyphprops, - actualglyphcount, - ) - .ok() + (windows_core::Interface::vtable(self).base__.base__.GetGlyphs)(windows_core::Interface::as_raw(self), textstring.param().abi(), textlength, fontface.param().abi(), issideways.param().abi(), isrighttoleft.param().abi(), scriptanalysis, localename.param().abi(), numbersubstitution.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, maxglyphcount, clustermap, textprops, glyphindices, glyphprops, actualglyphcount).ok() } pub unsafe fn GetGlyphPlacements(&self, textstring: P0, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: P1, fontemsize: f32, issideways: P2, isrighttoleft: P3, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P4, features: Option<*const *const DWRITE_TYPOGRAPHIC_FEATURES>, featurerangelengths: Option<*const u32>, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetGlyphPlacements)(windows_core::Interface::as_raw(self), textstring.into_param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, fontface.into_param().abi(), fontemsize, issideways.into_param().abi(), isrighttoleft.into_param().abi(), scriptanalysis, localename.into_param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, glyphadvances, glyphoffsets).ok() + (windows_core::Interface::vtable(self).base__.base__.GetGlyphPlacements)(windows_core::Interface::as_raw(self), textstring.param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, fontface.param().abi(), fontemsize, issideways.param().abi(), isrighttoleft.param().abi(), scriptanalysis, localename.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, glyphadvances, glyphoffsets).ok() } pub unsafe fn GetGdiCompatibleGlyphPlacements(&self, textstring: P0, clustermap: *const u16, textprops: *const DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: P1, fontemsize: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P2, issideways: P3, isrighttoleft: P4, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: P5, features: Option<*const *const DWRITE_TYPOGRAPHIC_FEATURES>, featurerangelengths: Option<*const u32>, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { (windows_core::Interface::vtable(self).base__.base__.GetGdiCompatibleGlyphPlacements)( windows_core::Interface::as_raw(self), - textstring.into_param().abi(), + textstring.param().abi(), clustermap, textprops, textlength, glyphindices, glyphprops, glyphcount, - fontface.into_param().abi(), + fontface.param().abi(), fontemsize, pixelsperdip, core::mem::transmute(transform.unwrap_or(std::ptr::null())), - usegdinatural.into_param().abi(), - issideways.into_param().abi(), - isrighttoleft.into_param().abi(), + usegdinatural.param().abi(), + issideways.param().abi(), + isrighttoleft.param().abi(), scriptanalysis, - localename.into_param().abi(), + localename.param().abi(), core::mem::transmute(features.unwrap_or(std::ptr::null())), core::mem::transmute(featurerangelengths.unwrap_or(std::ptr::null())), featureranges, @@ -6999,71 +6939,71 @@ impl IDWriteTextAnalyzer2 { } pub unsafe fn GetBaseline(&self, fontface: P0, baseline: DWRITE_BASELINE, isvertical: P1, issimulationallowed: P2, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P3, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetBaseline)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), baseline, isvertical.into_param().abi(), issimulationallowed.into_param().abi(), core::mem::transmute(scriptanalysis), localename.into_param().abi(), baselinecoordinate, exists).ok() + (windows_core::Interface::vtable(self).base__.GetBaseline)(windows_core::Interface::as_raw(self), fontface.param().abi(), baseline, isvertical.param().abi(), issimulationallowed.param().abi(), core::mem::transmute(scriptanalysis), localename.param().abi(), baselinecoordinate, exists).ok() } pub unsafe fn AnalyzeVerticalGlyphOrientation(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AnalyzeVerticalGlyphOrientation)(windows_core::Interface::as_raw(self), analysissource.into_param().abi(), textposition, textlength, analysissink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P0, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.into_param().abi(), transform).ok() + (windows_core::Interface::vtable(self).base__.GetGlyphOrientationTransform)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.param().abi(), transform).ok() } pub unsafe fn GetScriptProperties(&self, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, scriptproperties: *mut DWRITE_SCRIPT_PROPERTIES) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetScriptProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(scriptanalysis), scriptproperties).ok() } pub unsafe fn GetTextComplexity(&self, textstring: P0, textlength: u32, fontface: P1, istextsimple: *mut super::super::Foundation::BOOL, textlengthread: *mut u32, glyphindices: Option<*mut u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetTextComplexity)(windows_core::Interface::as_raw(self), textstring.into_param().abi(), textlength, fontface.into_param().abi(), istextsimple, textlengthread, core::mem::transmute(glyphindices.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetTextComplexity)(windows_core::Interface::as_raw(self), textstring.param().abi(), textlength, fontface.param().abi(), istextsimple, textlengthread, core::mem::transmute(glyphindices.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetJustificationOpportunities(&self, fontface: P0, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, textstring: P1, clustermap: *const u16, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, justificationopportunities: *mut DWRITE_JUSTIFICATION_OPPORTUNITY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetJustificationOpportunities)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, textstring.into_param().abi(), clustermap, glyphproperties, justificationopportunities).ok() + (windows_core::Interface::vtable(self).base__.GetJustificationOpportunities)(windows_core::Interface::as_raw(self), fontface.param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, textstring.param().abi(), clustermap, glyphproperties, justificationopportunities).ok() } 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).base__.JustifyGlyphAdvances)(windows_core::Interface::as_raw(self), linewidth, glyphcount, justificationopportunities, glyphadvances, glyphoffsets, justifiedglyphadvances, core::mem::transmute(justifiedglyphoffsets.unwrap_or(std::ptr::null_mut()))).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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetJustifiedGlyphs)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, maxglyphcount, core::mem::transmute(clustermap.unwrap_or(std::ptr::null())), glyphindices, glyphadvances, justifiedglyphadvances, justifiedglyphoffsets, glyphproperties, actualglyphcount, core::mem::transmute(modifiedclustermap.unwrap_or(std::ptr::null_mut())), modifiedglyphindices, modifiedglyphadvances, modifiedglyphoffsets).ok() + (windows_core::Interface::vtable(self).base__.GetJustifiedGlyphs)(windows_core::Interface::as_raw(self), fontface.param().abi(), fontemsize, core::mem::transmute(scriptanalysis), textlength, glyphcount, maxglyphcount, core::mem::transmute(clustermap.unwrap_or(std::ptr::null())), glyphindices, glyphadvances, justifiedglyphadvances, justifiedglyphoffsets, glyphproperties, actualglyphcount, core::mem::transmute(modifiedclustermap.unwrap_or(std::ptr::null_mut())), modifiedglyphindices, modifiedglyphadvances, modifiedglyphoffsets).ok() } pub unsafe fn GetGlyphOrientationTransform2(&self, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: P0, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlyphOrientationTransform2)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.into_param().abi(), originx, originy, transform).ok() + (windows_core::Interface::vtable(self).GetGlyphOrientationTransform2)(windows_core::Interface::as_raw(self), glyphorientationangle, issideways.param().abi(), originx, originy, transform).ok() } pub unsafe fn GetTypographicFeatures(&self, fontface: P0, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P1, actualtagcount: *mut u32, tags: &mut [DWRITE_FONT_FEATURE_TAG]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTypographicFeatures)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), core::mem::transmute(scriptanalysis), localename.into_param().abi(), tags.len().try_into().unwrap(), actualtagcount, core::mem::transmute(tags.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetTypographicFeatures)(windows_core::Interface::as_raw(self), fontface.param().abi(), core::mem::transmute(scriptanalysis), localename.param().abi(), tags.len().try_into().unwrap(), actualtagcount, core::mem::transmute(tags.as_ptr())).ok() } pub unsafe fn CheckTypographicFeature(&self, fontface: P0, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P1, featuretag: DWRITE_FONT_FEATURE_TAG, glyphcount: u32, glyphindices: *const u16, featureapplies: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckTypographicFeature)(windows_core::Interface::as_raw(self), fontface.into_param().abi(), core::mem::transmute(scriptanalysis), localename.into_param().abi(), featuretag, glyphcount, glyphindices, featureapplies).ok() + (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, featureapplies).ok() } } unsafe impl Send for IDWriteTextAnalyzer2 {} @@ -7098,9 +7038,9 @@ impl IDWriteTextFormat { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_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), linespacingmethod, linespacing, baseline).ok() @@ -7212,9 +7152,9 @@ impl IDWriteTextFormat1 { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -7279,9 +7219,9 @@ impl IDWriteTextFormat1 { } pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.param().abi()).ok() } pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetLastLineWrapping)(windows_core::Interface::as_raw(self)) @@ -7294,9 +7234,9 @@ impl IDWriteTextFormat1 { } pub unsafe fn SetFontFallback(&self, fontfallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.param().abi()).ok() } pub unsafe fn GetFontFallback(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7340,9 +7280,9 @@ impl IDWriteTextFormat2 { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -7407,9 +7347,9 @@ impl IDWriteTextFormat2 { } pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.param().abi()).ok() } pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.GetLastLineWrapping)(windows_core::Interface::as_raw(self)) @@ -7422,9 +7362,9 @@ impl IDWriteTextFormat2 { } pub unsafe fn SetFontFallback(&self, fontfallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.param().abi()).ok() } pub unsafe fn GetFontFallback(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7468,9 +7408,9 @@ impl IDWriteTextFormat3 { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -7535,9 +7475,9 @@ impl IDWriteTextFormat3 { } pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.param().abi()).ok() } pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.GetLastLineWrapping)(windows_core::Interface::as_raw(self)) @@ -7550,9 +7490,9 @@ impl IDWriteTextFormat3 { } pub unsafe fn SetFontFallback(&self, fontfallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.param().abi()).ok() } pub unsafe fn GetFontFallback(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7614,9 +7554,9 @@ impl IDWriteTextLayout { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -7681,15 +7621,15 @@ impl IDWriteTextLayout { } pub unsafe fn SetFontCollection(&self, fontcollection: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontFamilyName(&self, fontfamilyname: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFontFamilyName)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), core::mem::transmute(textrange)).ok() + (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), fontweight, core::mem::transmute(textrange)).ok() @@ -7705,39 +7645,39 @@ impl IDWriteTextLayout { } pub unsafe fn SetUnderline(&self, hasunderline: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetStrikethrough(&self, hasstrikethrough: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetDrawingEffect(&self, drawingeffect: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetInlineObject(&self, inlineobject: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetTypography(&self, typography: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTypography)(windows_core::Interface::as_raw(self), typography.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetTypography)(windows_core::Interface::as_raw(self), typography.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetLocaleName(&self, localename: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocaleName)(windows_core::Interface::as_raw(self), localename.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetLocaleName)(windows_core::Interface::as_raw(self), localename.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn GetMaxWidth(&self) -> f32 { (windows_core::Interface::vtable(self).GetMaxWidth)(windows_core::Interface::as_raw(self)) @@ -7789,9 +7729,9 @@ impl IDWriteTextLayout { } pub unsafe fn Draw(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, renderer: P0, originx: f32, originy: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), renderer.into_param().abi(), originx, originy).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), 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()), actuallinecount).ok() @@ -7815,9 +7755,9 @@ impl IDWriteTextLayout { } pub unsafe fn HitTestTextPosition(&self, textposition: u32, istrailinghit: P0, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.into_param().abi(), pointx, pointy, hittestmetrics).ok() + (windows_core::Interface::vtable(self).HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.param().abi(), pointx, pointy, 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), 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()), actualhittestmetricscount).ok() @@ -7891,9 +7831,9 @@ impl IDWriteTextLayout1 { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -7958,15 +7898,15 @@ impl IDWriteTextLayout1 { } pub unsafe fn SetFontCollection(&self, fontcollection: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontFamilyName(&self, fontfamilyname: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFontFamilyName)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetFontWeight)(windows_core::Interface::as_raw(self), fontweight, core::mem::transmute(textrange)).ok() @@ -7982,39 +7922,39 @@ impl IDWriteTextLayout1 { } pub unsafe fn SetUnderline(&self, hasunderline: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetStrikethrough(&self, hasstrikethrough: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetDrawingEffect(&self, drawingeffect: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetInlineObject(&self, inlineobject: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetTypography(&self, typography: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTypography)(windows_core::Interface::as_raw(self), typography.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetTypography)(windows_core::Interface::as_raw(self), typography.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetLocaleName(&self, localename: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn GetMaxWidth(&self) -> f32 { (windows_core::Interface::vtable(self).base__.GetMaxWidth)(windows_core::Interface::as_raw(self)) @@ -8066,9 +8006,9 @@ impl IDWriteTextLayout1 { } pub unsafe fn Draw(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, renderer: P0, originx: f32, originy: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), renderer.into_param().abi(), originx, originy).ok() + (windows_core::Interface::vtable(self).base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), 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).base__.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()), actuallinecount).ok() @@ -8092,18 +8032,18 @@ impl IDWriteTextLayout1 { } pub unsafe fn HitTestTextPosition(&self, textposition: u32, istrailinghit: P0, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.into_param().abi(), pointx, pointy, hittestmetrics).ok() + (windows_core::Interface::vtable(self).base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.param().abi(), pointx, pointy, 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).base__.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()), actualhittestmetricscount).ok() } pub unsafe fn SetPairKerning(&self, ispairkerningenabled: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.param().abi(), 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), currentposition, ispairkerningenabled, core::mem::transmute(textrange.unwrap_or(std::ptr::null_mut()))).ok() @@ -8148,9 +8088,9 @@ impl IDWriteTextLayout2 { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -8215,15 +8155,15 @@ impl IDWriteTextLayout2 { } pub unsafe fn SetFontCollection(&self, fontcollection: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontFamilyName(&self, fontfamilyname: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFontFamilyName)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetFontWeight)(windows_core::Interface::as_raw(self), fontweight, core::mem::transmute(textrange)).ok() @@ -8239,39 +8179,39 @@ impl IDWriteTextLayout2 { } pub unsafe fn SetUnderline(&self, hasunderline: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetStrikethrough(&self, hasstrikethrough: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetDrawingEffect(&self, drawingeffect: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetInlineObject(&self, inlineobject: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetTypography(&self, typography: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTypography)(windows_core::Interface::as_raw(self), typography.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTypography)(windows_core::Interface::as_raw(self), typography.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetLocaleName(&self, localename: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn GetMaxWidth(&self) -> f32 { (windows_core::Interface::vtable(self).base__.base__.GetMaxWidth)(windows_core::Interface::as_raw(self)) @@ -8323,9 +8263,9 @@ impl IDWriteTextLayout2 { } pub unsafe fn Draw(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, renderer: P0, originx: f32, originy: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), renderer.into_param().abi(), originx, originy).ok() + (windows_core::Interface::vtable(self).base__.base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), 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).base__.base__.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()), actuallinecount).ok() @@ -8349,18 +8289,18 @@ impl IDWriteTextLayout2 { } pub unsafe fn HitTestTextPosition(&self, textposition: u32, istrailinghit: P0, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.into_param().abi(), pointx, pointy, hittestmetrics).ok() + (windows_core::Interface::vtable(self).base__.base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.param().abi(), pointx, pointy, 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).base__.base__.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()), actualhittestmetricscount).ok() } pub unsafe fn SetPairKerning(&self, ispairkerningenabled: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.param().abi(), 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).base__.GetPairKerning)(windows_core::Interface::as_raw(self), currentposition, ispairkerningenabled, core::mem::transmute(textrange.unwrap_or(std::ptr::null_mut()))).ok() @@ -8382,9 +8322,9 @@ impl IDWriteTextLayout2 { } pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.param().abi()).ok() } pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetLastLineWrapping)(windows_core::Interface::as_raw(self)) @@ -8397,9 +8337,9 @@ impl IDWriteTextLayout2 { } pub unsafe fn SetFontFallback(&self, fontfallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.param().abi()).ok() } pub unsafe fn GetFontFallback(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8444,9 +8384,9 @@ impl IDWriteTextLayout3 { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -8511,15 +8451,15 @@ impl IDWriteTextLayout3 { } pub unsafe fn SetFontCollection(&self, fontcollection: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontFamilyName(&self, fontfamilyname: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFontFamilyName)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetFontWeight)(windows_core::Interface::as_raw(self), fontweight, core::mem::transmute(textrange)).ok() @@ -8535,39 +8475,39 @@ impl IDWriteTextLayout3 { } pub unsafe fn SetUnderline(&self, hasunderline: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetStrikethrough(&self, hasstrikethrough: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetDrawingEffect(&self, drawingeffect: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetInlineObject(&self, inlineobject: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetTypography(&self, typography: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTypography)(windows_core::Interface::as_raw(self), typography.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetTypography)(windows_core::Interface::as_raw(self), typography.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetLocaleName(&self, localename: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn GetMaxWidth(&self) -> f32 { (windows_core::Interface::vtable(self).base__.base__.base__.GetMaxWidth)(windows_core::Interface::as_raw(self)) @@ -8619,9 +8559,9 @@ impl IDWriteTextLayout3 { } pub unsafe fn Draw(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, renderer: P0, originx: f32, originy: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), renderer.into_param().abi(), originx, originy).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), 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).base__.base__.base__.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()), actuallinecount).ok() @@ -8645,18 +8585,18 @@ impl IDWriteTextLayout3 { } pub unsafe fn HitTestTextPosition(&self, textposition: u32, istrailinghit: P0, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.into_param().abi(), pointx, pointy, hittestmetrics).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.param().abi(), pointx, pointy, 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).base__.base__.base__.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()), actualhittestmetricscount).ok() } pub unsafe fn SetPairKerning(&self, ispairkerningenabled: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.param().abi(), 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).base__.base__.GetPairKerning)(windows_core::Interface::as_raw(self), currentposition, ispairkerningenabled, core::mem::transmute(textrange.unwrap_or(std::ptr::null_mut()))).ok() @@ -8678,9 +8618,9 @@ impl IDWriteTextLayout3 { } pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.param().abi()).ok() } pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.GetLastLineWrapping)(windows_core::Interface::as_raw(self)) @@ -8693,9 +8633,9 @@ impl IDWriteTextLayout3 { } pub unsafe fn SetFontFallback(&self, fontfallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.param().abi()).ok() } pub unsafe fn GetFontFallback(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8747,9 +8687,9 @@ impl IDWriteTextLayout4 { } pub unsafe fn SetTrimming(&self, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTrimming)(windows_core::Interface::as_raw(self), trimmingoptions, trimmingsign.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.SetLineSpacing)(windows_core::Interface::as_raw(self), linespacingmethod, linespacing, baseline).ok() @@ -8814,15 +8754,15 @@ impl IDWriteTextLayout4 { } pub unsafe fn SetFontCollection(&self, fontcollection: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetFontCollection)(windows_core::Interface::as_raw(self), fontcollection.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetFontFamilyName(&self, fontfamilyname: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetFontFamilyName)(windows_core::Interface::as_raw(self), fontfamilyname.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.SetFontWeight)(windows_core::Interface::as_raw(self), fontweight, core::mem::transmute(textrange)).ok() @@ -8838,39 +8778,39 @@ impl IDWriteTextLayout4 { } pub unsafe fn SetUnderline(&self, hasunderline: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetUnderline)(windows_core::Interface::as_raw(self), hasunderline.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetStrikethrough(&self, hasstrikethrough: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetStrikethrough)(windows_core::Interface::as_raw(self), hasstrikethrough.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetDrawingEffect(&self, drawingeffect: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDrawingEffect)(windows_core::Interface::as_raw(self), drawingeffect.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetInlineObject(&self, inlineobject: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetInlineObject)(windows_core::Interface::as_raw(self), inlineobject.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetTypography(&self, typography: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTypography)(windows_core::Interface::as_raw(self), typography.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTypography)(windows_core::Interface::as_raw(self), typography.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn SetLocaleName(&self, localename: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetLocaleName)(windows_core::Interface::as_raw(self), localename.param().abi(), core::mem::transmute(textrange)).ok() } pub unsafe fn GetMaxWidth(&self) -> f32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetMaxWidth)(windows_core::Interface::as_raw(self)) @@ -8922,9 +8862,9 @@ impl IDWriteTextLayout4 { } pub unsafe fn Draw(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, renderer: P0, originx: f32, originy: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), renderer.into_param().abi(), originx, originy).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.Draw)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), 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).base__.base__.base__.base__.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()), actuallinecount).ok() @@ -8948,18 +8888,18 @@ impl IDWriteTextLayout4 { } pub unsafe fn HitTestTextPosition(&self, textposition: u32, istrailinghit: P0, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.into_param().abi(), pointx, pointy, hittestmetrics).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.HitTestTextPosition)(windows_core::Interface::as_raw(self), textposition, istrailinghit.param().abi(), pointx, pointy, 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).base__.base__.base__.base__.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()), actualhittestmetricscount).ok() } pub unsafe fn SetPairKerning(&self, ispairkerningenabled: P0, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.into_param().abi(), core::mem::transmute(textrange)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.param().abi(), 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).base__.base__.base__.GetPairKerning)(windows_core::Interface::as_raw(self), currentposition, ispairkerningenabled, core::mem::transmute(textrange.unwrap_or(std::ptr::null_mut()))).ok() @@ -8981,9 +8921,9 @@ impl IDWriteTextLayout4 { } pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.param().abi()).ok() } pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.GetLastLineWrapping)(windows_core::Interface::as_raw(self)) @@ -8996,9 +8936,9 @@ impl IDWriteTextLayout4 { } pub unsafe fn SetFontFallback(&self, fontfallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFontFallback)(windows_core::Interface::as_raw(self), fontfallback.param().abi()).ok() } pub unsafe fn GetFontFallback(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9059,30 +8999,30 @@ impl IDWriteTextRenderer { } pub unsafe fn DrawGlyphRun(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, measuringmode, glyphrun, glyphrundescription, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, measuringmode, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, underline, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, strikethrough, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, strikethrough, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawInlineObject(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, originx: f32, originy: f32, inlineobject: P0, issideways: P1, isrighttoleft: P2, clientdrawingeffect: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), originx, originy, inlineobject.into_param().abi(), issideways.into_param().abi(), isrighttoleft.into_param().abi(), clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), originx, originy, inlineobject.param().abi(), issideways.param().abi(), isrighttoleft.param().abi(), clientdrawingeffect.param().abi()).ok() } } unsafe impl Send for IDWriteTextRenderer {} @@ -9111,57 +9051,57 @@ impl IDWriteTextRenderer1 { } pub unsafe fn DrawGlyphRun(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, measuringmode, glyphrun, glyphrundescription, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DrawGlyphRun)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, measuringmode, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, underline, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DrawUnderline)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, strikethrough, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DrawStrikethrough)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, strikethrough, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawInlineObject(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, originx: f32, originy: f32, inlineobject: P0, issideways: P1, isrighttoleft: P2, clientdrawingeffect: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), originx, originy, inlineobject.into_param().abi(), issideways.into_param().abi(), isrighttoleft.into_param().abi(), clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DrawInlineObject)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), originx, originy, inlineobject.param().abi(), issideways.param().abi(), isrighttoleft.param().abi(), clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawGlyphRun2(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, orientationangle, measuringmode, glyphrun, glyphrundescription, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawGlyphRun2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, orientationangle, measuringmode, glyphrun, glyphrundescription, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawUnderline2(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawUnderline2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, orientationangle, underline, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawUnderline2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, orientationangle, underline, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawStrikethrough2(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawStrikethrough2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, orientationangle, strikethrough, clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawStrikethrough2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), baselineoriginx, baselineoriginy, orientationangle, strikethrough, clientdrawingeffect.param().abi()).ok() } pub unsafe fn DrawInlineObject2(&self, clientdrawingcontext: Option<*const core::ffi::c_void>, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: P0, issideways: P1, isrighttoleft: P2, clientdrawingeffect: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawInlineObject2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), originx, originy, orientationangle, inlineobject.into_param().abi(), issideways.into_param().abi(), isrighttoleft.into_param().abi(), clientdrawingeffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrawInlineObject2)(windows_core::Interface::as_raw(self), core::mem::transmute(clientdrawingcontext.unwrap_or(std::ptr::null())), originx, originy, orientationangle, inlineobject.param().abi(), issideways.param().abi(), isrighttoleft.param().abi(), clientdrawingeffect.param().abi()).ok() } } unsafe impl Send for IDWriteTextRenderer1 {} 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 a7f8266ee0..9f7e6c0ff7 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs @@ -1,37 +1,37 @@ #[inline] pub unsafe fn DwmAttachMilContent(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmAttachMilContent(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DwmAttachMilContent(hwnd.into_param().abi()).ok() + DwmAttachMilContent(hwnd.param().abi()).ok() } #[inline] pub unsafe fn DwmDefWindowProc(hwnd: P0, msg: u32, wparam: P1, lparam: P2, plresult: *mut super::super::Foundation::LRESULT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi(), plresult) + DwmDefWindowProc(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi(), plresult) } #[inline] pub unsafe fn DwmDetachMilContent(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmDetachMilContent(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DwmDetachMilContent(hwnd.into_param().abi()).ok() + DwmDetachMilContent(hwnd.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DwmEnableBlurBehindWindow(hwnd: P0, pblurbehind: *const DWM_BLURBEHIND) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmEnableBlurBehindWindow(hwnd : super::super::Foundation:: HWND, pblurbehind : *const DWM_BLURBEHIND) -> windows_core::HRESULT); - DwmEnableBlurBehindWindow(hwnd.into_param().abi(), pblurbehind).ok() + DwmEnableBlurBehindWindow(hwnd.param().abi(), pblurbehind).ok() } #[inline] pub unsafe fn DwmEnableComposition(ucompositionaction: u32) -> windows_core::Result<()> { @@ -41,19 +41,19 @@ pub unsafe fn DwmEnableComposition(ucompositionaction: u32) -> windows_core::Res #[inline] pub unsafe fn DwmEnableMMCSS(fenablemmcss: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmEnableMMCSS(fenablemmcss : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DwmEnableMMCSS(fenablemmcss.into_param().abi()).ok() + DwmEnableMMCSS(fenablemmcss.param().abi()).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn DwmExtendFrameIntoClientArea(hwnd: P0, pmarinset: *const super::super::UI::Controls::MARGINS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmExtendFrameIntoClientArea(hwnd : super::super::Foundation:: HWND, pmarinset : *const super::super::UI::Controls:: MARGINS) -> windows_core::HRESULT); - DwmExtendFrameIntoClientArea(hwnd.into_param().abi(), pmarinset).ok() + DwmExtendFrameIntoClientArea(hwnd.param().abi(), pmarinset).ok() } #[inline] pub unsafe fn DwmFlush() -> windows_core::Result<()> { @@ -68,10 +68,10 @@ pub unsafe fn DwmGetColorizationColor(pcrcolorization: *mut u32, pfopaqueblend: #[inline] pub unsafe fn DwmGetCompositionTimingInfo(hwnd: P0, ptiminginfo: *mut DWM_TIMING_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmGetCompositionTimingInfo(hwnd : super::super::Foundation:: HWND, ptiminginfo : *mut DWM_TIMING_INFO) -> windows_core::HRESULT); - DwmGetCompositionTimingInfo(hwnd.into_param().abi(), ptiminginfo).ok() + DwmGetCompositionTimingInfo(hwnd.param().abi(), ptiminginfo).ok() } #[inline] pub unsafe fn DwmGetGraphicsStreamClient(uindex: u32) -> windows_core::Result { @@ -92,27 +92,27 @@ pub unsafe fn DwmGetTransportAttributes(pfisremoting: *mut super::super::Foundat #[inline] pub unsafe fn DwmGetUnmetTabRequirements(appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmGetUnmetTabRequirements(appwindow : super::super::Foundation:: HWND, value : *mut DWM_TAB_WINDOW_REQUIREMENTS) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DwmGetUnmetTabRequirements(appwindow.into_param().abi(), &mut result__).map(|| result__) + DwmGetUnmetTabRequirements(appwindow.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DwmGetWindowAttribute(hwnd: P0, dwattribute: DWMWINDOWATTRIBUTE, pvattribute: *mut core::ffi::c_void, cbattribute: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), dwattribute.0 as _, pvattribute, cbattribute).ok() + DwmGetWindowAttribute(hwnd.param().abi(), dwattribute.0 as _, pvattribute, cbattribute).ok() } #[inline] pub unsafe fn DwmInvalidateIconicBitmaps(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmInvalidateIconicBitmaps(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - DwmInvalidateIconicBitmaps(hwnd.into_param().abi()).ok() + DwmInvalidateIconicBitmaps(hwnd.param().abi()).ok() } #[inline] pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result { @@ -123,11 +123,11 @@ pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result(hwnd: P0, crefreshes: i32, frelative: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmModifyPreviousDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32, frelative : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - DwmModifyPreviousDxFrameDuration(hwnd.into_param().abi(), crefreshes, frelative.into_param().abi()).ok() + DwmModifyPreviousDxFrameDuration(hwnd.param().abi(), crefreshes, frelative.param().abi()).ok() } #[inline] pub unsafe fn DwmQueryThumbnailSourceSize(hthumbnail: isize) -> windows_core::Result { @@ -138,12 +138,12 @@ pub unsafe fn DwmQueryThumbnailSourceSize(hthumbnail: isize) -> windows_core::Re #[inline] pub unsafe fn DwmRegisterThumbnail(hwnddestination: P0, hwndsource: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - DwmRegisterThumbnail(hwnddestination.into_param().abi(), hwndsource.into_param().abi(), &mut result__).map(|| result__) + DwmRegisterThumbnail(hwnddestination.param().abi(), hwndsource.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DwmRenderGesture(gt: GESTURE_TYPE, ccontacts: u32, pdwpointerid: *const u32, ppoints: *const super::super::Foundation::POINT) -> windows_core::Result<()> { @@ -153,46 +153,46 @@ pub unsafe fn DwmRenderGesture(gt: GESTURE_TYPE, ccontacts: u32, pdwpointerid: * #[inline] pub unsafe fn DwmSetDxFrameDuration(hwnd: P0, crefreshes: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmSetDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32) -> windows_core::HRESULT); - DwmSetDxFrameDuration(hwnd.into_param().abi(), crefreshes).ok() + DwmSetDxFrameDuration(hwnd.param().abi(), crefreshes).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DwmSetIconicLivePreviewBitmap(hwnd: P0, hbmp: P1, pptclient: Option<*const super::super::Foundation::POINT>, dwsitflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hbmp.into_param().abi(), core::mem::transmute(pptclient.unwrap_or(std::ptr::null())), dwsitflags).ok() + DwmSetIconicLivePreviewBitmap(hwnd.param().abi(), hbmp.param().abi(), core::mem::transmute(pptclient.unwrap_or(std::ptr::null())), dwsitflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DwmSetIconicThumbnail(hwnd: P0, hbmp: P1, dwsitflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmSetIconicThumbnail(hwnd : super::super::Foundation:: HWND, hbmp : super::Gdi:: HBITMAP, dwsitflags : u32) -> windows_core::HRESULT); - DwmSetIconicThumbnail(hwnd.into_param().abi(), hbmp.into_param().abi(), dwsitflags).ok() + DwmSetIconicThumbnail(hwnd.param().abi(), hbmp.param().abi(), dwsitflags).ok() } #[inline] pub unsafe fn DwmSetPresentParameters(hwnd: P0, ppresentparams: *mut DWM_PRESENT_PARAMETERS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmSetPresentParameters(hwnd : super::super::Foundation:: HWND, ppresentparams : *mut DWM_PRESENT_PARAMETERS) -> windows_core::HRESULT); - DwmSetPresentParameters(hwnd.into_param().abi(), ppresentparams).ok() + DwmSetPresentParameters(hwnd.param().abi(), ppresentparams).ok() } #[inline] pub unsafe fn DwmSetWindowAttribute(hwnd: P0, dwattribute: DWMWINDOWATTRIBUTE, pvattribute: *const core::ffi::c_void, cbattribute: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), dwattribute.0 as _, pvattribute, cbattribute).ok() + DwmSetWindowAttribute(hwnd.param().abi(), dwattribute.0 as _, pvattribute, cbattribute).ok() } #[inline] pub unsafe fn DwmShowContact(dwpointerid: u32, eshowcontact: DWM_SHOWCONTACT) -> windows_core::Result<()> { @@ -202,18 +202,18 @@ pub unsafe fn DwmShowContact(dwpointerid: u32, eshowcontact: DWM_SHOWCONTACT) -> #[inline] pub unsafe fn DwmTetherContact(dwpointerid: u32, fenable: P0, pttether: super::super::Foundation::POINT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmTetherContact(dwpointerid : u32, fenable : super::super::Foundation:: BOOL, pttether : super::super::Foundation:: POINT) -> windows_core::HRESULT); - DwmTetherContact(dwpointerid, fenable.into_param().abi(), core::mem::transmute(pttether)).ok() + DwmTetherContact(dwpointerid, fenable.param().abi(), core::mem::transmute(pttether)).ok() } #[inline] pub unsafe fn DwmTransitionOwnedWindow(hwnd: P0, target: DWMTRANSITION_OWNEDWINDOW_TARGET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dwmapi.dll" "system" fn DwmTransitionOwnedWindow(hwnd : super::super::Foundation:: HWND, target : DWMTRANSITION_OWNEDWINDOW_TARGET) -> windows_core::HRESULT); - DwmTransitionOwnedWindow(hwnd.into_param().abi(), target).ok() + DwmTransitionOwnedWindow(hwnd.param().abi(), target).ok() } #[inline] pub unsafe fn DwmUnregisterThumbnail(hthumbnailid: isize) -> windows_core::Result<()> { 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 12afa448ee..e8bba7a522 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs @@ -54,9 +54,9 @@ impl IDXGIAdapter { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -97,9 +97,9 @@ impl IDXGIAdapter1 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -141,9 +141,9 @@ impl IDXGIAdapter2 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -188,9 +188,9 @@ impl IDXGIAdapter3 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -221,10 +221,10 @@ impl IDXGIAdapter3 { } pub unsafe fn RegisterHardwareContentProtectionTeardownStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterHardwareContentProtectionTeardownStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterHardwareContentProtectionTeardownStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterHardwareContentProtectionTeardownStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).UnregisterHardwareContentProtectionTeardownStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -237,10 +237,10 @@ impl IDXGIAdapter3 { } pub unsafe fn RegisterVideoMemoryBudgetChangeNotificationEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterVideoMemoryBudgetChangeNotificationEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterVideoMemoryBudgetChangeNotificationEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterVideoMemoryBudgetChangeNotification(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).UnregisterVideoMemoryBudgetChangeNotification)(windows_core::Interface::as_raw(self), dwcookie) @@ -266,9 +266,9 @@ impl IDXGIAdapter4 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -299,10 +299,10 @@ impl IDXGIAdapter4 { } pub unsafe fn RegisterHardwareContentProtectionTeardownStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterHardwareContentProtectionTeardownStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterHardwareContentProtectionTeardownStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterHardwareContentProtectionTeardownStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.UnregisterHardwareContentProtectionTeardownStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -315,10 +315,10 @@ impl IDXGIAdapter4 { } pub unsafe fn RegisterVideoMemoryBudgetChangeNotificationEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterVideoMemoryBudgetChangeNotificationEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterVideoMemoryBudgetChangeNotificationEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterVideoMemoryBudgetChangeNotification(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.UnregisterVideoMemoryBudgetChangeNotification)(windows_core::Interface::as_raw(self), dwcookie) @@ -429,9 +429,9 @@ impl IDXGIDevice { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -484,9 +484,9 @@ impl IDXGIDevice1 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -540,9 +540,9 @@ impl IDXGIDevice2 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -587,9 +587,9 @@ impl IDXGIDevice2 { } pub unsafe fn EnqueueSetEvent(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnqueueSetEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnqueueSetEvent)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } } unsafe impl Send for IDXGIDevice2 {} @@ -609,9 +609,9 @@ impl IDXGIDevice3 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -656,9 +656,9 @@ impl IDXGIDevice3 { } pub unsafe fn EnqueueSetEvent(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnqueueSetEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnqueueSetEvent)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } pub unsafe fn Trim(&self) { (windows_core::Interface::vtable(self).Trim)(windows_core::Interface::as_raw(self)) @@ -679,9 +679,9 @@ impl IDXGIDevice4 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -726,9 +726,9 @@ impl IDXGIDevice4 { } pub unsafe fn EnqueueSetEvent(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnqueueSetEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.EnqueueSetEvent)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } pub unsafe fn Trim(&self) { (windows_core::Interface::vtable(self).base__.Trim)(windows_core::Interface::as_raw(self)) @@ -756,9 +756,9 @@ impl IDXGIDeviceSubObject { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -793,9 +793,9 @@ impl IDXGIDisplayControl { } pub unsafe fn SetStereoEnabled(&self, enabled: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStereoEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()) + (windows_core::Interface::vtable(self).SetStereoEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()) } } unsafe impl Send for IDXGIDisplayControl {} @@ -814,9 +814,9 @@ impl IDXGIFactory { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -834,9 +834,9 @@ impl IDXGIFactory { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -845,16 +845,16 @@ impl IDXGIFactory { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for IDXGIFactory {} @@ -879,9 +879,9 @@ impl IDXGIFactory1 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -899,9 +899,9 @@ impl IDXGIFactory1 { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -910,16 +910,16 @@ impl IDXGIFactory1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -945,9 +945,9 @@ impl IDXGIFactory2 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -965,9 +965,9 @@ impl IDXGIFactory2 { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -976,16 +976,16 @@ impl IDXGIFactory2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1000,60 +1000,60 @@ impl IDXGIFactory2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForHwnd(&self, pdevice: P0, hwnd: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: Option<*const DXGI_SWAP_CHAIN_FULLSCREEN_DESC>, prestricttooutput: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hwnd.into_param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), prestricttooutput.into_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.param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), 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: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pwindow.into_param().abi(), pdesc, prestricttooutput.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterStereoStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).UnregisterStereoStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn RegisterOcclusionStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterOcclusionStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterOcclusionStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -1061,11 +1061,11 @@ impl IDXGIFactory2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForComposition(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, prestricttooutput.into_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__)) } } unsafe impl Send for IDXGIFactory2 {} @@ -1102,9 +1102,9 @@ impl IDXGIFactory3 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -1122,9 +1122,9 @@ impl IDXGIFactory3 { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1133,16 +1133,16 @@ impl IDXGIFactory3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1157,60 +1157,60 @@ impl IDXGIFactory3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForHwnd(&self, pdevice: P0, hwnd: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: Option<*const DXGI_SWAP_CHAIN_FULLSCREEN_DESC>, prestricttooutput: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hwnd.into_param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hwnd.param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), 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: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pwindow.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterStereoStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.UnregisterStereoStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn RegisterOcclusionStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterOcclusionStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterOcclusionStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -1218,11 +1218,11 @@ impl IDXGIFactory3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForComposition(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCreationFlags(&self) -> u32 { (windows_core::Interface::vtable(self).GetCreationFlags)(windows_core::Interface::as_raw(self)) @@ -1243,9 +1243,9 @@ impl IDXGIFactory4 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -1263,9 +1263,9 @@ impl IDXGIFactory4 { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1274,16 +1274,16 @@ impl IDXGIFactory4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1298,60 +1298,60 @@ impl IDXGIFactory4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForHwnd(&self, pdevice: P0, hwnd: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: Option<*const DXGI_SWAP_CHAIN_FULLSCREEN_DESC>, prestricttooutput: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hwnd.into_param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hwnd.param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), 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: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pwindow.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterStereoStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.UnregisterStereoStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn RegisterOcclusionStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterOcclusionStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterOcclusionStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -1359,11 +1359,11 @@ impl IDXGIFactory4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForComposition(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCreationFlags(&self) -> u32 { (windows_core::Interface::vtable(self).base__.GetCreationFlags)(windows_core::Interface::as_raw(self)) @@ -1399,9 +1399,9 @@ impl IDXGIFactory5 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -1419,9 +1419,9 @@ impl IDXGIFactory5 { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1430,16 +1430,16 @@ impl IDXGIFactory5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1454,60 +1454,60 @@ impl IDXGIFactory5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForHwnd(&self, pdevice: P0, hwnd: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: Option<*const DXGI_SWAP_CHAIN_FULLSCREEN_DESC>, prestricttooutput: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hwnd.into_param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hwnd.param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), 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: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pwindow.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterStereoStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.UnregisterStereoStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn RegisterOcclusionStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterOcclusionStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterOcclusionStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -1515,11 +1515,11 @@ impl IDXGIFactory5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForComposition(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCreationFlags(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.GetCreationFlags)(windows_core::Interface::as_raw(self)) @@ -1557,9 +1557,9 @@ impl IDXGIFactory6 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -1577,9 +1577,9 @@ impl IDXGIFactory6 { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1588,16 +1588,16 @@ impl IDXGIFactory6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1612,60 +1612,60 @@ impl IDXGIFactory6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForHwnd(&self, pdevice: P0, hwnd: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: Option<*const DXGI_SWAP_CHAIN_FULLSCREEN_DESC>, prestricttooutput: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hwnd.into_param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hwnd.param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), 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: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pwindow.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterStereoStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.UnregisterStereoStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn RegisterOcclusionStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterOcclusionStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterOcclusionStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -1673,11 +1673,11 @@ impl IDXGIFactory6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForComposition(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCreationFlags(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.GetCreationFlags)(windows_core::Interface::as_raw(self)) @@ -1722,9 +1722,9 @@ impl IDXGIFactory7 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -1742,9 +1742,9 @@ impl IDXGIFactory7 { } pub unsafe fn MakeWindowAssociation(&self, windowhandle: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.MakeWindowAssociation)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), flags).ok() } pub unsafe fn GetWindowAssociation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1753,16 +1753,16 @@ impl IDXGIFactory7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChain(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, core::mem::transmute(ppswapchain)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateSwapChain)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, core::mem::transmute(ppswapchain)) } pub unsafe fn CreateSoftwareAdapter(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateSoftwareAdapter)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1777,60 +1777,60 @@ impl IDXGIFactory7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForHwnd(&self, pdevice: P0, hwnd: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: Option<*const DXGI_SWAP_CHAIN_FULLSCREEN_DESC>, prestricttooutput: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hwnd.into_param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSwapChainForHwnd)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hwnd.param().abi(), pdesc, core::mem::transmute(pfullscreendesc.unwrap_or(std::ptr::null())), 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: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSwapChainForCoreWindow)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pwindow.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetSharedResourceAdapterLuid)(windows_core::Interface::as_raw(self), hresource.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterStereoStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterStereoStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterStereoStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterStereoStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.UnregisterStereoStatus)(windows_core::Interface::as_raw(self), dwcookie) } pub unsafe fn RegisterOcclusionStatusWindow(&self, windowhandle: P0, wmsg: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.into_param().abi(), wmsg, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterOcclusionStatusWindow)(windows_core::Interface::as_raw(self), windowhandle.param().abi(), wmsg, &mut result__).map(|| result__) } pub unsafe fn RegisterOcclusionStatusEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RegisterOcclusionStatusEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UnregisterOcclusionStatus(&self, dwcookie: u32) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.UnregisterOcclusionStatus)(windows_core::Interface::as_raw(self), dwcookie) @@ -1838,11 +1838,11 @@ impl IDXGIFactory7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForComposition(&self, pdevice: P0, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateSwapChainForComposition)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCreationFlags(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetCreationFlags)(windows_core::Interface::as_raw(self)) @@ -1873,10 +1873,10 @@ impl IDXGIFactory7 { } pub unsafe fn RegisterAdaptersChangedEvent(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterAdaptersChangedEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterAdaptersChangedEvent)(windows_core::Interface::as_raw(self), hevent.param().abi(), &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), dwcookie).ok() @@ -1896,22 +1896,22 @@ impl IDXGIFactoryMedia { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateSwapChainForCompositionSurfaceHandle(&self, pdevice: P0, hsurface: P1, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSwapChainForCompositionSurfaceHandle)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hsurface.into_param().abi(), pdesc, prestricttooutput.into_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(), hsurface.param().abi(), pdesc, prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDecodeSwapChainForCompositionSurfaceHandle(&self, pdevice: P0, hsurface: P1, pdesc: *const DXGI_DECODE_SWAP_CHAIN_DESC, pyuvdecodebuffers: P2, prestricttooutput: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecodeSwapChainForCompositionSurfaceHandle)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hsurface.into_param().abi(), pdesc, pyuvdecodebuffers.into_param().abi(), prestricttooutput.into_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(), hsurface.param().abi(), pdesc, pyuvdecodebuffers.param().abi(), prestricttooutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for IDXGIFactoryMedia {} @@ -2011,33 +2011,33 @@ impl IDXGIInfoQueue { } pub unsafe fn AddMessage(&self, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, id: i32, pdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), category, severity, id, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationMessage)(windows_core::Interface::as_raw(self), severity, pdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), category, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), category, benable.param().abi()).ok() } pub unsafe fn SetBreakOnSeverity(&self, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), severity, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), severity, benable.param().abi()).ok() } pub unsafe fn SetBreakOnID(&self, producer: windows_core::GUID, id: i32, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), id, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), id, benable.param().abi()).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), category) @@ -2050,9 +2050,9 @@ impl IDXGIInfoQueue { } pub unsafe fn SetMuteDebugOutput(&self, producer: windows_core::GUID, bmute: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), bmute.into_param().abi()) + (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), bmute.param().abi()) } pub unsafe fn GetMuteDebugOutput(&self, producer: windows_core::GUID) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) @@ -2109,9 +2109,9 @@ impl IDXGIKeyedMutex { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2153,9 +2153,9 @@ impl IDXGIObject { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_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), name, pdatasize, pdata).ok() @@ -2186,9 +2186,9 @@ impl IDXGIOutput { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2211,19 +2211,19 @@ impl IDXGIOutput { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, 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() } pub unsafe fn TakeOwnership(&self, pdevice: P0, exclusive: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), exclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.param().abi(), exclusive.param().abi()).ok() } pub unsafe fn ReleaseOwnership(&self) { (windows_core::Interface::vtable(self).ReleaseOwnership)(windows_core::Interface::as_raw(self)) @@ -2242,15 +2242,15 @@ impl IDXGIOutput { } pub unsafe fn SetDisplaySurface(&self, pscanoutsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFrameStatistics)(windows_core::Interface::as_raw(self), pstats).ok() @@ -2300,9 +2300,9 @@ impl IDXGIOutput1 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2325,19 +2325,19 @@ impl IDXGIOutput1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn WaitForVBlank(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.WaitForVBlank)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TakeOwnership(&self, pdevice: P0, exclusive: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), exclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.param().abi(), exclusive.param().abi()).ok() } pub unsafe fn ReleaseOwnership(&self) { (windows_core::Interface::vtable(self).base__.ReleaseOwnership)(windows_core::Interface::as_raw(self)) @@ -2356,15 +2356,15 @@ impl IDXGIOutput1 { } pub unsafe fn SetDisplaySurface(&self, pscanoutsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetFrameStatistics)(windows_core::Interface::as_raw(self), pstats).ok() @@ -2376,22 +2376,22 @@ impl IDXGIOutput1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode1(&self, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData1(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn DuplicateOutput(&self, pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } unsafe impl Send for IDXGIOutput1 {} @@ -2418,9 +2418,9 @@ impl IDXGIOutput2 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2443,19 +2443,19 @@ impl IDXGIOutput2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn WaitForVBlank(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.WaitForVBlank)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TakeOwnership(&self, pdevice: P0, exclusive: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), exclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.param().abi(), exclusive.param().abi()).ok() } pub unsafe fn ReleaseOwnership(&self) { (windows_core::Interface::vtable(self).base__.base__.ReleaseOwnership)(windows_core::Interface::as_raw(self)) @@ -2474,15 +2474,15 @@ impl IDXGIOutput2 { } pub unsafe fn SetDisplaySurface(&self, pscanoutsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetFrameStatistics)(windows_core::Interface::as_raw(self), pstats).ok() @@ -2494,22 +2494,22 @@ impl IDXGIOutput2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode1(&self, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData1(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn DuplicateOutput(&self, pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SupportsOverlays(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).SupportsOverlays)(windows_core::Interface::as_raw(self)) @@ -2530,9 +2530,9 @@ impl IDXGIOutput3 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2555,19 +2555,19 @@ impl IDXGIOutput3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn WaitForVBlank(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.WaitForVBlank)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TakeOwnership(&self, pdevice: P0, exclusive: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), exclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.param().abi(), exclusive.param().abi()).ok() } pub unsafe fn ReleaseOwnership(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.ReleaseOwnership)(windows_core::Interface::as_raw(self)) @@ -2586,15 +2586,15 @@ impl IDXGIOutput3 { } pub unsafe fn SetDisplaySurface(&self, pscanoutsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.GetFrameStatistics)(windows_core::Interface::as_raw(self), pstats).ok() @@ -2606,22 +2606,22 @@ impl IDXGIOutput3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode1(&self, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData1(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn DuplicateOutput(&self, pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SupportsOverlays(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.SupportsOverlays)(windows_core::Interface::as_raw(self)) @@ -2629,10 +2629,10 @@ impl IDXGIOutput3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckOverlaySupport(&self, enumformat: Common::DXGI_FORMAT, pconcerneddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.into_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__) } } unsafe impl Send for IDXGIOutput3 {} @@ -2653,9 +2653,9 @@ impl IDXGIOutput4 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2678,19 +2678,19 @@ impl IDXGIOutput4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn WaitForVBlank(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.WaitForVBlank)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TakeOwnership(&self, pdevice: P0, exclusive: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), exclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.param().abi(), exclusive.param().abi()).ok() } pub unsafe fn ReleaseOwnership(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.ReleaseOwnership)(windows_core::Interface::as_raw(self)) @@ -2709,15 +2709,15 @@ impl IDXGIOutput4 { } pub unsafe fn SetDisplaySurface(&self, pscanoutsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetFrameStatistics)(windows_core::Interface::as_raw(self), pstats).ok() @@ -2729,22 +2729,22 @@ impl IDXGIOutput4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode1(&self, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData1(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn DuplicateOutput(&self, pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SupportsOverlays(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.SupportsOverlays)(windows_core::Interface::as_raw(self)) @@ -2752,18 +2752,18 @@ impl IDXGIOutput4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckOverlaySupport(&self, enumformat: Common::DXGI_FORMAT, pconcerneddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckOverlayColorSpaceSupport(&self, format: Common::DXGI_FORMAT, colorspace: Common::DXGI_COLOR_SPACE_TYPE, pconcerneddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckOverlayColorSpaceSupport)(windows_core::Interface::as_raw(self), format, colorspace, pconcerneddevice.into_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__) } } unsafe impl Send for IDXGIOutput4 {} @@ -2784,9 +2784,9 @@ impl IDXGIOutput5 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2809,19 +2809,19 @@ impl IDXGIOutput5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn WaitForVBlank(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.WaitForVBlank)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TakeOwnership(&self, pdevice: P0, exclusive: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), exclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.param().abi(), exclusive.param().abi()).ok() } pub unsafe fn ReleaseOwnership(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ReleaseOwnership)(windows_core::Interface::as_raw(self)) @@ -2840,15 +2840,15 @@ impl IDXGIOutput5 { } pub unsafe fn SetDisplaySurface(&self, pscanoutsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetFrameStatistics)(windows_core::Interface::as_raw(self), pstats).ok() @@ -2860,22 +2860,22 @@ impl IDXGIOutput5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode1(&self, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData1(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn DuplicateOutput(&self, pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SupportsOverlays(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.base__.SupportsOverlays)(windows_core::Interface::as_raw(self)) @@ -2883,26 +2883,26 @@ impl IDXGIOutput5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckOverlaySupport(&self, enumformat: Common::DXGI_FORMAT, pconcerneddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckOverlayColorSpaceSupport(&self, format: Common::DXGI_FORMAT, colorspace: Common::DXGI_COLOR_SPACE_TYPE, pconcerneddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CheckOverlayColorSpaceSupport)(windows_core::Interface::as_raw(self), format, colorspace, pconcerneddevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CheckOverlayColorSpaceSupport)(windows_core::Interface::as_raw(self), format, colorspace, pconcerneddevice.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn DuplicateOutput1(&self, pdevice: P0, flags: u32, psupportedformats: &[Common::DXGI_FORMAT]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateOutput1)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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__)) } } unsafe impl Send for IDXGIOutput5 {} @@ -2923,9 +2923,9 @@ impl IDXGIOutput6 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -2948,19 +2948,19 @@ impl IDXGIOutput6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FindClosestMatchingMode)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn WaitForVBlank(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.WaitForVBlank)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn TakeOwnership(&self, pdevice: P0, exclusive: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), exclusive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.TakeOwnership)(windows_core::Interface::as_raw(self), pdevice.param().abi(), exclusive.param().abi()).ok() } pub unsafe fn ReleaseOwnership(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ReleaseOwnership)(windows_core::Interface::as_raw(self)) @@ -2979,15 +2979,15 @@ impl IDXGIOutput6 { } pub unsafe fn SetDisplaySurface(&self, pscanoutsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetDisplaySurface)(windows_core::Interface::as_raw(self), pscanoutsurface.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetDisplaySurfaceData)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetFrameStatistics)(windows_core::Interface::as_raw(self), pstats).ok() @@ -2999,22 +2999,22 @@ impl IDXGIOutput6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn FindClosestMatchingMode1(&self, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindClosestMatchingMode1)(windows_core::Interface::as_raw(self), pmodetomatch, pclosestmatch, pconcerneddevice.param().abi()).ok() } pub unsafe fn GetDisplaySurfaceData1(&self, pdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDisplaySurfaceData1)(windows_core::Interface::as_raw(self), pdestination.param().abi()).ok() } pub unsafe fn DuplicateOutput(&self, pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.DuplicateOutput)(windows_core::Interface::as_raw(self), pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SupportsOverlays(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.base__.base__.base__.SupportsOverlays)(windows_core::Interface::as_raw(self)) @@ -3022,26 +3022,26 @@ impl IDXGIOutput6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckOverlaySupport(&self, enumformat: Common::DXGI_FORMAT, pconcerneddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.CheckOverlaySupport)(windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CheckOverlayColorSpaceSupport(&self, format: Common::DXGI_FORMAT, colorspace: Common::DXGI_COLOR_SPACE_TYPE, pconcerneddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CheckOverlayColorSpaceSupport)(windows_core::Interface::as_raw(self), format, colorspace, pconcerneddevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CheckOverlayColorSpaceSupport)(windows_core::Interface::as_raw(self), format, colorspace, pconcerneddevice.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn DuplicateOutput1(&self, pdevice: P0, flags: u32, psupportedformats: &[Common::DXGI_FORMAT]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.DuplicateOutput1)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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).base__.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__)) } #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetDesc1(&self, pdesc: *mut DXGI_OUTPUT_DESC1) -> windows_core::Result<()> { @@ -3071,9 +3071,9 @@ impl IDXGIOutputDuplication { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3137,9 +3137,9 @@ impl IDXGIResource { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3192,9 +3192,9 @@ impl IDXGIResource1 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3235,10 +3235,10 @@ impl IDXGIResource1 { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwaccess: u32, lpname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), dwaccess, lpname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), core::mem::transmute(pattributes.unwrap_or(std::ptr::null())), dwaccess, lpname.param().abi(), &mut result__).map(|| result__) } } unsafe impl Send for IDXGIResource1 {} @@ -3260,9 +3260,9 @@ impl IDXGISurface { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3312,9 +3312,9 @@ impl IDXGISurface1 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3346,10 +3346,10 @@ impl IDXGISurface1 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, discard: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), discard.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDC)(windows_core::Interface::as_raw(self), discard.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReleaseDC(&self, pdirtyrect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(pdirtyrect.unwrap_or(std::ptr::null()))).ok() @@ -3374,9 +3374,9 @@ impl IDXGISurface2 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3408,10 +3408,10 @@ impl IDXGISurface2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, discard: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDC)(windows_core::Interface::as_raw(self), discard.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetDC)(windows_core::Interface::as_raw(self), discard.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReleaseDC(&self, pdirtyrect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ReleaseDC)(windows_core::Interface::as_raw(self), core::mem::transmute(pdirtyrect.unwrap_or(std::ptr::null()))).ok() @@ -3439,9 +3439,9 @@ impl IDXGISwapChain { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3472,10 +3472,10 @@ impl IDXGISwapChain { } pub unsafe fn SetFullscreenState(&self, fullscreen: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.into_param().abi(), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.param().abi(), ptarget.param().abi()).ok() } pub unsafe fn GetFullscreenState(&self, pfullscreen: Option<*mut super::super::Foundation::BOOL>, pptarget: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFullscreenState)(windows_core::Interface::as_raw(self), core::mem::transmute(pfullscreen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pptarget.unwrap_or(std::ptr::null_mut()))).ok() @@ -3537,9 +3537,9 @@ impl IDXGISwapChain1 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3570,10 +3570,10 @@ impl IDXGISwapChain1 { } pub unsafe fn SetFullscreenState(&self, fullscreen: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.into_param().abi(), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.param().abi(), ptarget.param().abi()).ok() } pub unsafe fn GetFullscreenState(&self, pfullscreen: Option<*mut super::super::Foundation::BOOL>, pptarget: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetFullscreenState)(windows_core::Interface::as_raw(self), core::mem::transmute(pfullscreen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pptarget.unwrap_or(std::ptr::null_mut()))).ok() @@ -3684,9 +3684,9 @@ impl IDXGISwapChain2 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3717,10 +3717,10 @@ impl IDXGISwapChain2 { } pub unsafe fn SetFullscreenState(&self, fullscreen: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.into_param().abi(), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.param().abi(), ptarget.param().abi()).ok() } pub unsafe fn GetFullscreenState(&self, pfullscreen: Option<*mut super::super::Foundation::BOOL>, pptarget: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetFullscreenState)(windows_core::Interface::as_raw(self), core::mem::transmute(pfullscreen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pptarget.unwrap_or(std::ptr::null_mut()))).ok() @@ -3837,9 +3837,9 @@ impl IDXGISwapChain3 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -3870,10 +3870,10 @@ impl IDXGISwapChain3 { } pub unsafe fn SetFullscreenState(&self, fullscreen: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.into_param().abi(), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.param().abi(), ptarget.param().abi()).ok() } pub unsafe fn GetFullscreenState(&self, pfullscreen: Option<*mut super::super::Foundation::BOOL>, pptarget: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.GetFullscreenState)(windows_core::Interface::as_raw(self), core::mem::transmute(pfullscreen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pptarget.unwrap_or(std::ptr::null_mut()))).ok() @@ -4012,9 +4012,9 @@ impl IDXGISwapChain4 { } pub unsafe fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), name, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.GetPrivateData)(windows_core::Interface::as_raw(self), name, pdatasize, pdata).ok() @@ -4045,10 +4045,10 @@ impl IDXGISwapChain4 { } pub unsafe fn SetFullscreenState(&self, fullscreen: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.into_param().abi(), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.param().abi(), ptarget.param().abi()).ok() } pub unsafe fn GetFullscreenState(&self, pfullscreen: Option<*mut super::super::Foundation::BOOL>, pptarget: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetFullscreenState)(windows_core::Interface::as_raw(self), core::mem::transmute(pfullscreen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pptarget.unwrap_or(std::ptr::null_mut()))).ok() 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 9ba0a98346..0577da6ad0 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn AbortPath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn AbortPath(hdc : HDC) -> super::super::Foundation:: BOOL); - AbortPath(hdc.into_param().abi()) + AbortPath(hdc.param().abi()) } #[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 { @@ -14,108 +14,108 @@ pub unsafe fn AddFontMemResourceEx(pfileview: *const core::ffi::c_void, cjsize: #[inline] pub unsafe fn AddFontResourceA(param0: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn AddFontResourceA(param0 : windows_core::PCSTR) -> i32); - AddFontResourceA(param0.into_param().abi()) + AddFontResourceA(param0.param().abi()) } #[inline] pub unsafe fn AddFontResourceExA(name: P0, fl: FONT_RESOURCE_CHARACTERISTICS, res: Option<*const core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), fl, core::mem::transmute(res.unwrap_or(std::ptr::null()))) + AddFontResourceExA(name.param().abi(), fl, core::mem::transmute(res.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AddFontResourceExW(name: P0, fl: FONT_RESOURCE_CHARACTERISTICS, res: Option<*const core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), fl, core::mem::transmute(res.unwrap_or(std::ptr::null()))) + AddFontResourceExW(name.param().abi(), fl, core::mem::transmute(res.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AddFontResourceW(param0: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn AddFontResourceW(param0 : windows_core::PCWSTR) -> i32); - AddFontResourceW(param0.into_param().abi()) + AddFontResourceW(param0.param().abi()) } #[inline] pub unsafe fn AlphaBlend(hdcdest: P0, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: P1, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdcdest.into_param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.into_param().abi(), xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) + AlphaBlend(hdcdest.param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.param().abi(), xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) } #[inline] pub unsafe fn AngleArc(hdc: P0, x: i32, y: i32, r: u32, startangle: f32, sweepangle: f32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, r, startangle, sweepangle) + AngleArc(hdc.param().abi(), x, y, r, startangle, sweepangle) } #[inline] pub unsafe fn AnimatePalette(hpal: P0, istartindex: u32, ppe: &[PALETTEENTRY]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn AnimatePalette(hpal : HPALETTE, istartindex : u32, centries : u32, ppe : *const PALETTEENTRY) -> super::super::Foundation:: BOOL); - AnimatePalette(hpal.into_param().abi(), istartindex, ppe.len().try_into().unwrap(), core::mem::transmute(ppe.as_ptr())) + AnimatePalette(hpal.param().abi(), istartindex, ppe.len().try_into().unwrap(), core::mem::transmute(ppe.as_ptr())) } #[inline] pub unsafe fn Arc(hdc: P0, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x1, y1, x2, y2, x3, y3, x4, y4) + Arc(hdc.param().abi(), x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn ArcTo(hdc: P0, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), left, top, right, bottom, xr1, yr1, xr2, yr2) + ArcTo(hdc.param().abi(), left, top, right, bottom, xr1, yr1, xr2, yr2) } #[inline] pub unsafe fn BeginPaint(hwnd: P0, lppaint: *mut PAINTSTRUCT) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn BeginPaint(hwnd : super::super::Foundation:: HWND, lppaint : *mut PAINTSTRUCT) -> HDC); - BeginPaint(hwnd.into_param().abi(), lppaint) + BeginPaint(hwnd.param().abi(), lppaint) } #[inline] pub unsafe fn BeginPath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn BeginPath(hdc : HDC) -> super::super::Foundation:: BOOL); - BeginPath(hdc.into_param().abi()) + BeginPath(hdc.param().abi()) } #[inline] pub unsafe fn BitBlt(hdc: P0, x: i32, y: i32, cx: i32, cy: i32, hdcsrc: P1, x1: i32, y1: i32, rop: ROP_CODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), x, y, cx, cy, hdcsrc.into_param().abi(), x1, y1, rop).ok() + BitBlt(hdc.param().abi(), x, y, cx, cy, hdcsrc.param().abi(), x1, y1, rop).ok() } #[inline] pub unsafe fn CancelDC(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CancelDC(hdc : HDC) -> super::super::Foundation:: BOOL); - CancelDC(hdc.into_param().abi()) + CancelDC(hdc.param().abi()) } #[inline] pub unsafe fn ChangeDisplaySettingsA(lpdevmode: Option<*const DEVMODEA>, dwflags: CDS_TYPE) -> DISP_CHANGE { @@ -125,20 +125,20 @@ pub unsafe fn ChangeDisplaySettingsA(lpdevmode: Option<*const DEVMODEA>, dwflags #[inline] pub unsafe fn ChangeDisplaySettingsExA(lpszdevicename: P0, lpdevmode: Option<*const DEVMODEA>, hwnd: P1, dwflags: CDS_TYPE, lparam: Option<*const core::ffi::c_void>) -> DISP_CHANGE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(lpdevmode.unwrap_or(std::ptr::null())), hwnd.into_param().abi(), dwflags, core::mem::transmute(lparam.unwrap_or(std::ptr::null()))) + ChangeDisplaySettingsExA(lpszdevicename.param().abi(), core::mem::transmute(lpdevmode.unwrap_or(std::ptr::null())), hwnd.param().abi(), dwflags, core::mem::transmute(lparam.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ChangeDisplaySettingsExW(lpszdevicename: P0, lpdevmode: Option<*const DEVMODEW>, hwnd: P1, dwflags: CDS_TYPE, lparam: Option<*const core::ffi::c_void>) -> DISP_CHANGE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(lpdevmode.unwrap_or(std::ptr::null())), hwnd.into_param().abi(), dwflags, core::mem::transmute(lparam.unwrap_or(std::ptr::null()))) + ChangeDisplaySettingsExW(lpszdevicename.param().abi(), core::mem::transmute(lpdevmode.unwrap_or(std::ptr::null())), hwnd.param().abi(), dwflags, core::mem::transmute(lparam.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ChangeDisplaySettingsW(lpdevmode: Option<*const DEVMODEW>, dwflags: CDS_TYPE) -> DISP_CHANGE { @@ -148,52 +148,52 @@ pub unsafe fn ChangeDisplaySettingsW(lpdevmode: Option<*const DEVMODEW>, dwflags #[inline] pub unsafe fn Chord(hdc: P0, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x1, y1, x2, y2, x3, y3, x4, y4) + Chord(hdc.param().abi(), x1, y1, x2, y2, x3, y3, x4, y4) } #[inline] pub unsafe fn ClientToScreen(hwnd: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ClientToScreen(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - ClientToScreen(hwnd.into_param().abi(), lppoint) + ClientToScreen(hwnd.param().abi(), lppoint) } #[inline] pub unsafe fn CloseEnhMetaFile(hdc: P0) -> HENHMETAFILE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CloseEnhMetaFile(hdc : HDC) -> HENHMETAFILE); - CloseEnhMetaFile(hdc.into_param().abi()) + CloseEnhMetaFile(hdc.param().abi()) } #[inline] pub unsafe fn CloseFigure(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CloseFigure(hdc : HDC) -> super::super::Foundation:: BOOL); - CloseFigure(hdc.into_param().abi()) + CloseFigure(hdc.param().abi()) } #[inline] pub unsafe fn CloseMetaFile(hdc: P0) -> HMETAFILE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CloseMetaFile(hdc : HDC) -> HMETAFILE); - CloseMetaFile(hdc.into_param().abi()) + CloseMetaFile(hdc.param().abi()) } #[inline] pub unsafe fn CombineRgn(hrgndst: P0, hrgnsrc1: P1, hrgnsrc2: P2, imode: RGN_COMBINE_MODE) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CombineRgn(hrgndst : HRGN, hrgnsrc1 : HRGN, hrgnsrc2 : HRGN, imode : RGN_COMBINE_MODE) -> GDI_REGION_TYPE); - CombineRgn(hrgndst.into_param().abi(), hrgnsrc1.into_param().abi(), hrgnsrc2.into_param().abi(), imode) + CombineRgn(hrgndst.param().abi(), hrgnsrc1.param().abi(), hrgnsrc2.param().abi(), imode) } #[inline] pub unsafe fn CombineTransform(lpxfout: *mut XFORM, lpxf1: *const XFORM, lpxf2: *const XFORM) -> super::super::Foundation::BOOL { @@ -203,38 +203,38 @@ pub unsafe fn CombineTransform(lpxfout: *mut XFORM, lpxf1: *const XFORM, lpxf2: #[inline] pub unsafe fn CopyEnhMetaFileA(henh: P0, lpfilename: P1) -> HENHMETAFILE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyEnhMetaFileA(henh : HENHMETAFILE, lpfilename : windows_core::PCSTR) -> HENHMETAFILE); - CopyEnhMetaFileA(henh.into_param().abi(), lpfilename.into_param().abi()) + CopyEnhMetaFileA(henh.param().abi(), lpfilename.param().abi()) } #[inline] pub unsafe fn CopyEnhMetaFileW(henh: P0, lpfilename: P1) -> HENHMETAFILE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyEnhMetaFileW(henh : HENHMETAFILE, lpfilename : windows_core::PCWSTR) -> HENHMETAFILE); - CopyEnhMetaFileW(henh.into_param().abi(), lpfilename.into_param().abi()) + CopyEnhMetaFileW(henh.param().abi(), lpfilename.param().abi()) } #[inline] pub unsafe fn CopyMetaFileA(param0: P0, param1: P1) -> HMETAFILE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyMetaFileA(param0 : HMETAFILE, param1 : windows_core::PCSTR) -> HMETAFILE); - CopyMetaFileA(param0.into_param().abi(), param1.into_param().abi()) + CopyMetaFileA(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn CopyMetaFileW(param0: P0, param1: P1) -> HMETAFILE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CopyMetaFileW(param0 : HMETAFILE, param1 : windows_core::PCWSTR) -> HMETAFILE); - CopyMetaFileW(param0.into_param().abi(), param1.into_param().abi()) + CopyMetaFileW(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn CopyRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { @@ -259,46 +259,46 @@ pub unsafe fn CreateBrushIndirect(plbrush: *const LOGBRUSH) -> HBRUSH { #[inline] pub unsafe fn CreateCompatibleBitmap(hdc: P0, cx: i32, cy: i32) -> HBITMAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateCompatibleBitmap(hdc : HDC, cx : i32, cy : i32) -> HBITMAP); - CreateCompatibleBitmap(hdc.into_param().abi(), cx, cy) + CreateCompatibleBitmap(hdc.param().abi(), cx, cy) } #[inline] pub unsafe fn CreateCompatibleDC(hdc: P0) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateCompatibleDC(hdc : HDC) -> HDC); - CreateCompatibleDC(hdc.into_param().abi()) + CreateCompatibleDC(hdc.param().abi()) } #[inline] pub unsafe fn CreateDCA(pwszdriver: P0, pwszdevice: P1, pszport: P2, pdm: Option<*const DEVMODEA>) -> HDC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateDCA(pwszdriver : windows_core::PCSTR, pwszdevice : windows_core::PCSTR, pszport : windows_core::PCSTR, pdm : *const DEVMODEA) -> HDC); - CreateDCA(pwszdriver.into_param().abi(), pwszdevice.into_param().abi(), pszport.into_param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) + CreateDCA(pwszdriver.param().abi(), pwszdevice.param().abi(), pszport.param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateDCW(pwszdriver: P0, pwszdevice: P1, pszport: P2, pdm: Option<*const DEVMODEW>) -> HDC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateDCW(pwszdriver : windows_core::PCWSTR, pwszdevice : windows_core::PCWSTR, pszport : windows_core::PCWSTR, pdm : *const DEVMODEW) -> HDC); - CreateDCW(pwszdriver.into_param().abi(), pwszdevice.into_param().abi(), pszport.into_param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) + CreateDCW(pwszdriver.param().abi(), pwszdevice.param().abi(), pszport.param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateDIBPatternBrush(h: P0, iusage: DIB_USAGE) -> HBRUSH where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateDIBPatternBrush(h : super::super::Foundation:: HGLOBAL, iusage : DIB_USAGE) -> HBRUSH); - CreateDIBPatternBrush(h.into_param().abi(), iusage) + CreateDIBPatternBrush(h.param().abi(), iusage) } #[inline] pub unsafe fn CreateDIBPatternBrushPt(lppackeddib: *const core::ffi::c_void, iusage: DIB_USAGE) -> HBRUSH { @@ -308,28 +308,28 @@ pub unsafe fn CreateDIBPatternBrushPt(lppackeddib: *const core::ffi::c_void, ius #[inline] pub unsafe fn CreateDIBSection(hdc: P0, pbmi: *const BITMAPINFO, usage: DIB_USAGE, ppvbits: *mut *mut core::ffi::c_void, hsection: P1, offset: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), pbmi, usage, ppvbits, hsection.into_param().abi(), offset); + let result__ = CreateDIBSection(hdc.param().abi(), pbmi, usage, ppvbits, hsection.param().abi(), offset); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateDIBitmap(hdc: P0, pbmih: Option<*const BITMAPINFOHEADER>, flinit: u32, pjbits: Option<*const core::ffi::c_void>, pbmi: Option<*const BITMAPINFO>, iusage: DIB_USAGE) -> HBITMAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(pbmih.unwrap_or(std::ptr::null())), flinit, core::mem::transmute(pjbits.unwrap_or(std::ptr::null())), core::mem::transmute(pbmi.unwrap_or(std::ptr::null())), iusage) + CreateDIBitmap(hdc.param().abi(), core::mem::transmute(pbmih.unwrap_or(std::ptr::null())), flinit, core::mem::transmute(pjbits.unwrap_or(std::ptr::null())), core::mem::transmute(pbmi.unwrap_or(std::ptr::null())), iusage) } #[inline] pub unsafe fn CreateDiscardableBitmap(hdc: P0, cx: i32, cy: i32) -> HBITMAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateDiscardableBitmap(hdc : HDC, cx : i32, cy : i32) -> HBITMAP); - CreateDiscardableBitmap(hdc.into_param().abi(), cx, cy) + CreateDiscardableBitmap(hdc.param().abi(), cx, cy) } #[inline] pub unsafe fn CreateEllipticRgn(x1: i32, y1: i32, x2: i32, y2: i32) -> HRGN { @@ -344,30 +344,30 @@ pub unsafe fn CreateEllipticRgnIndirect(lprect: *const super::super::Foundation: #[inline] pub unsafe fn CreateEnhMetaFileA(hdc: P0, lpfilename: P1, lprc: Option<*const super::super::Foundation::RECT>, lpdesc: P2) -> HDC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateEnhMetaFileA(hdc : HDC, lpfilename : windows_core::PCSTR, lprc : *const super::super::Foundation:: RECT, lpdesc : windows_core::PCSTR) -> HDC); - CreateEnhMetaFileA(hdc.into_param().abi(), lpfilename.into_param().abi(), core::mem::transmute(lprc.unwrap_or(std::ptr::null())), lpdesc.into_param().abi()) + CreateEnhMetaFileA(hdc.param().abi(), lpfilename.param().abi(), core::mem::transmute(lprc.unwrap_or(std::ptr::null())), lpdesc.param().abi()) } #[inline] pub unsafe fn CreateEnhMetaFileW(hdc: P0, lpfilename: P1, lprc: Option<*const super::super::Foundation::RECT>, lpdesc: P2) -> HDC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateEnhMetaFileW(hdc : HDC, lpfilename : windows_core::PCWSTR, lprc : *const super::super::Foundation:: RECT, lpdesc : windows_core::PCWSTR) -> HDC); - CreateEnhMetaFileW(hdc.into_param().abi(), lpfilename.into_param().abi(), core::mem::transmute(lprc.unwrap_or(std::ptr::null())), lpdesc.into_param().abi()) + CreateEnhMetaFileW(hdc.param().abi(), lpfilename.param().abi(), core::mem::transmute(lprc.unwrap_or(std::ptr::null())), lpdesc.param().abi()) } #[inline] pub unsafe 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: P0) -> HFONT where - P0: windows_core::IntoParam, + P0: 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(cheight, cwidth, cescapement, corientation, cweight, bitalic, bunderline, bstrikeout, icharset, ioutprecision, iclipprecision, iquality, ipitchandfamily, pszfacename.into_param().abi()) + CreateFontA(cheight, cwidth, cescapement, corientation, cweight, bitalic, bunderline, bstrikeout, icharset, ioutprecision, iclipprecision, iquality, ipitchandfamily, pszfacename.param().abi()) } #[inline] pub unsafe fn CreateFontIndirectA(lplf: *const LOGFONTA) -> HFONT { @@ -397,62 +397,62 @@ pub unsafe fn CreateFontPackage(puchsrcbuffer: *const u8, ulsrcbuffersize: u32, #[inline] pub unsafe 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: P0) -> HFONT where - P0: windows_core::IntoParam, + P0: 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(cheight, cwidth, cescapement, corientation, cweight, bitalic, bunderline, bstrikeout, icharset, ioutprecision, iclipprecision, iquality, ipitchandfamily, pszfacename.into_param().abi()) + CreateFontW(cheight, cwidth, cescapement, corientation, cweight, bitalic, bunderline, bstrikeout, icharset, ioutprecision, iclipprecision, iquality, ipitchandfamily, pszfacename.param().abi()) } #[inline] pub unsafe fn CreateHalftonePalette(hdc: P0) -> HPALETTE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateHalftonePalette(hdc : HDC) -> HPALETTE); - CreateHalftonePalette(hdc.into_param().abi()) + CreateHalftonePalette(hdc.param().abi()) } #[inline] pub unsafe fn CreateHatchBrush(ihatch: HATCH_BRUSH_STYLE, color: P0) -> HBRUSH where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateHatchBrush(ihatch : HATCH_BRUSH_STYLE, color : super::super::Foundation:: COLORREF) -> HBRUSH); - CreateHatchBrush(ihatch, color.into_param().abi()) + CreateHatchBrush(ihatch, color.param().abi()) } #[inline] pub unsafe fn CreateICA(pszdriver: P0, pszdevice: P1, pszport: P2, pdm: Option<*const DEVMODEA>) -> HDC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateICA(pszdriver : windows_core::PCSTR, pszdevice : windows_core::PCSTR, pszport : windows_core::PCSTR, pdm : *const DEVMODEA) -> HDC); - CreateICA(pszdriver.into_param().abi(), pszdevice.into_param().abi(), pszport.into_param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) + CreateICA(pszdriver.param().abi(), pszdevice.param().abi(), pszport.param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateICW(pszdriver: P0, pszdevice: P1, pszport: P2, pdm: Option<*const DEVMODEW>) -> HDC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateICW(pszdriver : windows_core::PCWSTR, pszdevice : windows_core::PCWSTR, pszport : windows_core::PCWSTR, pdm : *const DEVMODEW) -> HDC); - CreateICW(pszdriver.into_param().abi(), pszdevice.into_param().abi(), pszport.into_param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) + CreateICW(pszdriver.param().abi(), pszdevice.param().abi(), pszport.param().abi(), core::mem::transmute(pdm.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateMetaFileA(pszfile: P0) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateMetaFileA(pszfile : windows_core::PCSTR) -> HDC); - CreateMetaFileA(pszfile.into_param().abi()) + CreateMetaFileA(pszfile.param().abi()) } #[inline] pub unsafe fn CreateMetaFileW(pszfile: P0) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateMetaFileW(pszfile : windows_core::PCWSTR) -> HDC); - CreateMetaFileW(pszfile.into_param().abi()) + CreateMetaFileW(pszfile.param().abi()) } #[inline] pub unsafe fn CreatePalette(plpal: *const LOGPALETTE) -> HPALETTE { @@ -462,18 +462,18 @@ pub unsafe fn CreatePalette(plpal: *const LOGPALETTE) -> HPALETTE { #[inline] pub unsafe fn CreatePatternBrush(hbm: P0) -> HBRUSH where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreatePatternBrush(hbm : HBITMAP) -> HBRUSH); - CreatePatternBrush(hbm.into_param().abi()) + CreatePatternBrush(hbm.param().abi()) } #[inline] pub unsafe fn CreatePen(istyle: PEN_STYLE, cwidth: i32, color: P0) -> HPEN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreatePen(istyle : PEN_STYLE, cwidth : i32, color : super::super::Foundation:: COLORREF) -> HPEN); - CreatePen(istyle, cwidth, color.into_param().abi()) + CreatePen(istyle, cwidth, color.param().abi()) } #[inline] pub unsafe fn CreatePenIndirect(plpen: *const LOGPEN) -> HPEN { @@ -508,340 +508,340 @@ pub unsafe fn CreateRoundRectRgn(x1: i32, y1: i32, x2: i32, y2: i32, w: i32, h: #[inline] pub unsafe fn CreateScalableFontResourceA(fdwhidden: u32, lpszfont: P0, lpszfile: P1, lpszpath: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(fdwhidden, lpszfont.into_param().abi(), lpszfile.into_param().abi(), lpszpath.into_param().abi()).ok() + CreateScalableFontResourceA(fdwhidden, lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() } #[inline] pub unsafe fn CreateScalableFontResourceW(fdwhidden: u32, lpszfont: P0, lpszfile: P1, lpszpath: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(fdwhidden, lpszfont.into_param().abi(), lpszfile.into_param().abi(), lpszpath.into_param().abi()).ok() + CreateScalableFontResourceW(fdwhidden, lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() } #[inline] pub unsafe fn CreateSolidBrush(color: P0) -> HBRUSH where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn CreateSolidBrush(color : super::super::Foundation:: COLORREF) -> HBRUSH); - CreateSolidBrush(color.into_param().abi()) + CreateSolidBrush(color.param().abi()) } #[inline] pub unsafe fn DPtoLP(hdc: P0, lppt: &mut [super::super::Foundation::POINT]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DPtoLP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> super::super::Foundation:: BOOL); - DPtoLP(hdc.into_param().abi(), core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) + DPtoLP(hdc.param().abi(), core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) } #[inline] pub unsafe fn DeleteDC(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DeleteDC(hdc : HDC) -> super::super::Foundation:: BOOL); - DeleteDC(hdc.into_param().abi()) + DeleteDC(hdc.param().abi()) } #[inline] pub unsafe fn DeleteEnhMetaFile(hmf: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DeleteEnhMetaFile(hmf : HENHMETAFILE) -> super::super::Foundation:: BOOL); - DeleteEnhMetaFile(hmf.into_param().abi()) + DeleteEnhMetaFile(hmf.param().abi()) } #[inline] pub unsafe fn DeleteMetaFile(hmf: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DeleteMetaFile(hmf : HMETAFILE) -> super::super::Foundation:: BOOL); - DeleteMetaFile(hmf.into_param().abi()) + DeleteMetaFile(hmf.param().abi()) } #[inline] pub unsafe fn DeleteObject(ho: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DeleteObject(ho : HGDIOBJ) -> super::super::Foundation:: BOOL); - DeleteObject(ho.into_param().abi()) + DeleteObject(ho.param().abi()) } #[inline] pub unsafe fn DrawAnimatedRects(hwnd: P0, idani: i32, lprcfrom: *const super::super::Foundation::RECT, lprcto: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), idani, lprcfrom, lprcto) + DrawAnimatedRects(hwnd.param().abi(), idani, lprcfrom, lprcto) } #[inline] pub unsafe fn DrawCaption(hwnd: P0, hdc: P1, lprect: *const super::super::Foundation::RECT, flags: DRAW_CAPTION_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hdc.into_param().abi(), lprect, flags) + DrawCaption(hwnd.param().abi(), hdc.param().abi(), lprect, flags) } #[inline] pub unsafe fn DrawEdge(hdc: P0, qrc: *mut super::super::Foundation::RECT, edge: DRAWEDGE_FLAGS, grfflags: DRAW_EDGE_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), qrc, edge, grfflags) + DrawEdge(hdc.param().abi(), qrc, edge, grfflags) } #[inline] pub unsafe fn DrawEscape(hdc: P0, iescape: i32, lpin: Option<&[u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DrawEscape(hdc : HDC, iescape : i32, cjin : i32, lpin : windows_core::PCSTR) -> i32); - DrawEscape(hdc.into_param().abi(), 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.param().abi(), 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: P0, lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DrawFocusRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - DrawFocusRect(hdc.into_param().abi(), lprc) + DrawFocusRect(hdc.param().abi(), lprc) } #[inline] pub unsafe fn DrawFrameControl(param0: P0, param1: *mut super::super::Foundation::RECT, param2: DFC_TYPE, param3: DFCS_STATE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1, param2, param3) + DrawFrameControl(param0.param().abi(), param1, param2, param3) } #[inline] pub unsafe fn DrawStateA(hdc: P0, hbrfore: P1, qfncallback: DRAWSTATEPROC, ldata: P2, wdata: P3, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hdc.into_param().abi(), hbrfore.into_param().abi(), qfncallback, ldata.into_param().abi(), wdata.into_param().abi(), x, y, cx, cy, uflags) + DrawStateA(hdc.param().abi(), hbrfore.param().abi(), qfncallback, ldata.param().abi(), wdata.param().abi(), x, y, cx, cy, uflags) } #[inline] pub unsafe fn DrawStateW(hdc: P0, hbrfore: P1, qfncallback: DRAWSTATEPROC, ldata: P2, wdata: P3, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hdc.into_param().abi(), hbrfore.into_param().abi(), qfncallback, ldata.into_param().abi(), wdata.into_param().abi(), x, y, cx, cy, uflags) + DrawStateW(hdc.param().abi(), hbrfore.param().abi(), qfncallback, ldata.param().abi(), wdata.param().abi(), x, y, cx, cy, uflags) } #[inline] pub unsafe fn DrawTextA(hdc: P0, lpchtext: &mut [u8], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format) + DrawTextA(hdc.param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format) } #[inline] pub unsafe fn DrawTextExA(hdc: P0, lpchtext: &mut [u8], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT, lpdtp: Option<*const DRAWTEXTPARAMS>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format, core::mem::transmute(lpdtp.unwrap_or(std::ptr::null()))) + DrawTextExA(hdc.param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format, core::mem::transmute(lpdtp.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DrawTextExW(hdc: P0, lpchtext: &mut [u16], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT, lpdtp: Option<*const DRAWTEXTPARAMS>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format, core::mem::transmute(lpdtp.unwrap_or(std::ptr::null()))) + DrawTextExW(hdc.param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format, core::mem::transmute(lpdtp.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DrawTextW(hdc: P0, lpchtext: &mut [u16], lprc: *mut super::super::Foundation::RECT, format: DRAW_TEXT_FORMAT) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format) + DrawTextW(hdc.param().abi(), core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc, format) } #[inline] pub unsafe fn Ellipse(hdc: P0, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn Ellipse(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); - Ellipse(hdc.into_param().abi(), left, top, right, bottom) + Ellipse(hdc.param().abi(), left, top, right, bottom) } #[inline] pub unsafe fn EndPaint(hwnd: P0, lppaint: *const PAINTSTRUCT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EndPaint(hwnd : super::super::Foundation:: HWND, lppaint : *const PAINTSTRUCT) -> super::super::Foundation:: BOOL); - EndPaint(hwnd.into_param().abi(), lppaint) + EndPaint(hwnd.param().abi(), lppaint) } #[inline] pub unsafe fn EndPath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EndPath(hdc : HDC) -> super::super::Foundation:: BOOL); - EndPath(hdc.into_param().abi()) + EndPath(hdc.param().abi()) } #[inline] pub unsafe fn EnumDisplayDevicesA(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEA, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), idevnum, lpdisplaydevice, dwflags) + EnumDisplayDevicesA(lpdevice.param().abi(), idevnum, lpdisplaydevice, dwflags) } #[inline] pub unsafe fn EnumDisplayDevicesW(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEW, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), idevnum, lpdisplaydevice, dwflags) + EnumDisplayDevicesW(lpdevice.param().abi(), idevnum, lpdisplaydevice, dwflags) } #[inline] pub unsafe fn EnumDisplayMonitors(hdc: P0, lprcclip: Option<*const super::super::Foundation::RECT>, lpfnenum: MONITORENUMPROC, dwdata: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lprcclip.unwrap_or(std::ptr::null())), lpfnenum, dwdata.into_param().abi()) + EnumDisplayMonitors(hdc.param().abi(), core::mem::transmute(lprcclip.unwrap_or(std::ptr::null())), lpfnenum, dwdata.param().abi()) } #[inline] pub unsafe fn EnumDisplaySettingsA(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), imodenum, lpdevmode) + EnumDisplaySettingsA(lpszdevicename.param().abi(), imodenum, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), imodenum, lpdevmode, dwflags) + EnumDisplaySettingsExA(lpszdevicename.param().abi(), imodenum, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), imodenum, lpdevmode, dwflags) + EnumDisplaySettingsExW(lpszdevicename.param().abi(), imodenum, lpdevmode, dwflags) } #[inline] pub unsafe fn EnumDisplaySettingsW(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), imodenum, lpdevmode) + EnumDisplaySettingsW(lpszdevicename.param().abi(), imodenum, lpdevmode) } #[inline] pub unsafe fn EnumEnhMetaFile(hdc: P0, hmf: P1, proc: ENHMFENUMPROC, param3: Option<*const core::ffi::c_void>, lprect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), hmf.into_param().abi(), proc, core::mem::transmute(param3.unwrap_or(std::ptr::null())), core::mem::transmute(lprect.unwrap_or(std::ptr::null()))) + EnumEnhMetaFile(hdc.param().abi(), hmf.param().abi(), proc, core::mem::transmute(param3.unwrap_or(std::ptr::null())), core::mem::transmute(lprect.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn EnumFontFamiliesA(hdc: P0, lplogfont: P1, lpproc: FONTENUMPROCA, lparam: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hdc.into_param().abi(), lplogfont.into_param().abi(), lpproc, lparam.into_param().abi()) + EnumFontFamiliesA(hdc.param().abi(), lplogfont.param().abi(), lpproc, lparam.param().abi()) } #[inline] pub unsafe fn EnumFontFamiliesExA(hdc: P0, lplogfont: *const LOGFONTA, lpproc: FONTENUMPROCA, lparam: P1, dwflags: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumFontFamiliesExA(hdc : HDC, lplogfont : *const LOGFONTA, lpproc : FONTENUMPROCA, lparam : super::super::Foundation:: LPARAM, dwflags : u32) -> i32); - EnumFontFamiliesExA(hdc.into_param().abi(), lplogfont, lpproc, lparam.into_param().abi(), dwflags) + EnumFontFamiliesExA(hdc.param().abi(), lplogfont, lpproc, lparam.param().abi(), dwflags) } #[inline] pub unsafe fn EnumFontFamiliesExW(hdc: P0, lplogfont: *const LOGFONTW, lpproc: FONTENUMPROCW, lparam: P1, dwflags: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumFontFamiliesExW(hdc : HDC, lplogfont : *const LOGFONTW, lpproc : FONTENUMPROCW, lparam : super::super::Foundation:: LPARAM, dwflags : u32) -> i32); - EnumFontFamiliesExW(hdc.into_param().abi(), lplogfont, lpproc, lparam.into_param().abi(), dwflags) + EnumFontFamiliesExW(hdc.param().abi(), lplogfont, lpproc, lparam.param().abi(), dwflags) } #[inline] pub unsafe fn EnumFontFamiliesW(hdc: P0, lplogfont: P1, lpproc: FONTENUMPROCW, lparam: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hdc.into_param().abi(), lplogfont.into_param().abi(), lpproc, lparam.into_param().abi()) + EnumFontFamiliesW(hdc.param().abi(), lplogfont.param().abi(), lpproc, lparam.param().abi()) } #[inline] pub unsafe fn EnumFontsA(hdc: P0, lplogfont: P1, lpproc: FONTENUMPROCA, lparam: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hdc.into_param().abi(), lplogfont.into_param().abi(), lpproc, lparam.into_param().abi()) + EnumFontsA(hdc.param().abi(), lplogfont.param().abi(), lpproc, lparam.param().abi()) } #[inline] pub unsafe fn EnumFontsW(hdc: P0, lplogfont: P1, lpproc: FONTENUMPROCW, lparam: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hdc.into_param().abi(), lplogfont.into_param().abi(), lpproc, lparam.into_param().abi()) + EnumFontsW(hdc.param().abi(), lplogfont.param().abi(), lpproc, lparam.param().abi()) } #[inline] pub unsafe fn EnumMetaFile(hdc: P0, hmf: P1, proc: MFENUMPROC, param3: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumMetaFile(hdc : HDC, hmf : HMETAFILE, proc : MFENUMPROC, param3 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumMetaFile(hdc.into_param().abi(), hmf.into_param().abi(), proc, param3.into_param().abi()) + EnumMetaFile(hdc.param().abi(), hmf.param().abi(), proc, param3.param().abi()) } #[inline] pub unsafe fn EnumObjects(hdc: P0, ntype: OBJ_TYPE, lpfunc: GOBJENUMPROC, lparam: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumObjects(hdc : HDC, ntype : OBJ_TYPE, lpfunc : GOBJENUMPROC, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumObjects(hdc.into_param().abi(), ntype, lpfunc, lparam.into_param().abi()) + EnumObjects(hdc.param().abi(), ntype, lpfunc, lparam.param().abi()) } #[inline] pub unsafe fn EqualRect(lprc1: *const super::super::Foundation::RECT, lprc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { @@ -851,28 +851,28 @@ pub unsafe fn EqualRect(lprc1: *const super::super::Foundation::RECT, lprc2: *co #[inline] pub unsafe fn EqualRgn(hrgn1: P0, hrgn2: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EqualRgn(hrgn1 : HRGN, hrgn2 : HRGN) -> super::super::Foundation:: BOOL); - EqualRgn(hrgn1.into_param().abi(), hrgn2.into_param().abi()) + EqualRgn(hrgn1.param().abi(), hrgn2.param().abi()) } #[inline] pub unsafe fn ExcludeClipRect(hdc: P0, left: i32, top: i32, right: i32, bottom: i32) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ExcludeClipRect(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> GDI_REGION_TYPE); - ExcludeClipRect(hdc.into_param().abi(), left, top, right, bottom) + ExcludeClipRect(hdc.param().abi(), left, top, right, bottom) } #[inline] pub unsafe fn ExcludeUpdateRgn(hdc: P0, hwnd: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ExcludeUpdateRgn(hdc : HDC, hwnd : super::super::Foundation:: HWND) -> i32); - ExcludeUpdateRgn(hdc.into_param().abi(), hwnd.into_param().abi()) + ExcludeUpdateRgn(hdc.param().abi(), hwnd.param().abi()) } #[inline] pub unsafe fn ExtCreatePen(ipenstyle: PEN_STYLE, cwidth: u32, plbrush: *const LOGBRUSH, pstyle: Option<&[u32]>) -> HPEN { @@ -887,126 +887,126 @@ pub unsafe fn ExtCreateRegion(lpx: Option<*const XFORM>, ncount: u32, lpdata: *c #[inline] pub unsafe fn ExtFloodFill(hdc: P0, x: i32, y: i32, color: P1, r#type: EXT_FLOOD_FILL_TYPE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), x, y, color.into_param().abi(), r#type) + ExtFloodFill(hdc.param().abi(), x, y, color.param().abi(), r#type) } #[inline] pub unsafe fn ExtSelectClipRgn(hdc: P0, hrgn: P1, mode: RGN_COMBINE_MODE) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ExtSelectClipRgn(hdc : HDC, hrgn : HRGN, mode : RGN_COMBINE_MODE) -> GDI_REGION_TYPE); - ExtSelectClipRgn(hdc.into_param().abi(), hrgn.into_param().abi(), mode) + ExtSelectClipRgn(hdc.param().abi(), hrgn.param().abi(), mode) } #[inline] pub unsafe fn ExtTextOutA(hdc: P0, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P1, c: u32, lpdx: Option<*const i32>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdc.into_param().abi(), x, y, options, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), lpstring.into_param().abi(), c, core::mem::transmute(lpdx.unwrap_or(std::ptr::null()))) + ExtTextOutA(hdc.param().abi(), x, y, options, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), lpstring.param().abi(), c, core::mem::transmute(lpdx.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ExtTextOutW(hdc: P0, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P1, c: u32, lpdx: Option<*const i32>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdc.into_param().abi(), x, y, options, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), lpstring.into_param().abi(), c, core::mem::transmute(lpdx.unwrap_or(std::ptr::null()))) + ExtTextOutW(hdc.param().abi(), x, y, options, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), lpstring.param().abi(), c, core::mem::transmute(lpdx.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FillPath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn FillPath(hdc : HDC) -> super::super::Foundation:: BOOL); - FillPath(hdc.into_param().abi()) + FillPath(hdc.param().abi()) } #[inline] pub unsafe fn FillRect(hdc: P0, lprc: *const super::super::Foundation::RECT, hbr: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FillRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT, hbr : HBRUSH) -> i32); - FillRect(hdc.into_param().abi(), lprc, hbr.into_param().abi()) + FillRect(hdc.param().abi(), lprc, hbr.param().abi()) } #[inline] pub unsafe fn FillRgn(hdc: P0, hrgn: P1, hbr: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn FillRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH) -> super::super::Foundation:: BOOL); - FillRgn(hdc.into_param().abi(), hrgn.into_param().abi(), hbr.into_param().abi()) + FillRgn(hdc.param().abi(), hrgn.param().abi(), hbr.param().abi()) } #[inline] pub unsafe fn FixBrushOrgEx(hdc: P0, x: i32, y: i32, ptl: Option<*const super::super::Foundation::POINT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(ptl.unwrap_or(std::ptr::null()))) + FixBrushOrgEx(hdc.param().abi(), x, y, core::mem::transmute(ptl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FlattenPath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn FlattenPath(hdc : HDC) -> super::super::Foundation:: BOOL); - FlattenPath(hdc.into_param().abi()) + FlattenPath(hdc.param().abi()) } #[inline] pub unsafe fn FloodFill(hdc: P0, x: i32, y: i32, color: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn FloodFill(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); - FloodFill(hdc.into_param().abi(), x, y, color.into_param().abi()) + FloodFill(hdc.param().abi(), x, y, color.param().abi()) } #[inline] pub unsafe fn FrameRect(hdc: P0, lprc: *const super::super::Foundation::RECT, hbr: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FrameRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT, hbr : HBRUSH) -> i32); - FrameRect(hdc.into_param().abi(), lprc, hbr.into_param().abi()) + FrameRect(hdc.param().abi(), lprc, hbr.param().abi()) } #[inline] pub unsafe fn FrameRgn(hdc: P0, hrgn: P1, hbr: P2, w: i32, h: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn FrameRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH, w : i32, h : i32) -> super::super::Foundation:: BOOL); - FrameRgn(hdc.into_param().abi(), hrgn.into_param().abi(), hbr.into_param().abi(), w, h) + FrameRgn(hdc.param().abi(), hrgn.param().abi(), hbr.param().abi(), w, h) } #[inline] pub unsafe fn GdiAlphaBlend(hdcdest: P0, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: P1, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdcdest.into_param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.into_param().abi(), xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) + GdiAlphaBlend(hdcdest.param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.param().abi(), xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) } #[inline] pub unsafe fn GdiComment(hdc: P0, lpdata: &[u8]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiComment(hdc : HDC, nsize : u32, lpdata : *const u8) -> super::super::Foundation:: BOOL); - GdiComment(hdc.into_param().abi(), lpdata.len().try_into().unwrap(), core::mem::transmute(lpdata.as_ptr())) + GdiComment(hdc.param().abi(), lpdata.len().try_into().unwrap(), core::mem::transmute(lpdata.as_ptr())) } #[inline] pub unsafe fn GdiFlush() -> super::super::Foundation::BOOL { @@ -1021,10 +1021,10 @@ pub unsafe fn GdiGetBatchLimit() -> u32 { #[inline] pub unsafe fn GdiGradientFill(hdc: P0, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, ncount: u32, ulmode: GRADIENT_FILL) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, ncount, ulmode) + GdiGradientFill(hdc.param().abi(), core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, ncount, ulmode) } #[inline] pub unsafe fn GdiSetBatchLimit(dw: u32) -> u32 { @@ -1034,612 +1034,612 @@ pub unsafe fn GdiSetBatchLimit(dw: u32) -> u32 { #[inline] pub unsafe fn GdiTransparentBlt(hdcdest: P0, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: P1, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdcdest.into_param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.into_param().abi(), xoriginsrc, yoriginsrc, wsrc, hsrc, crtransparent) + GdiTransparentBlt(hdcdest.param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.param().abi(), xoriginsrc, yoriginsrc, wsrc, hsrc, crtransparent) } #[inline] pub unsafe fn GetArcDirection(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetArcDirection(hdc : HDC) -> i32); - GetArcDirection(hdc.into_param().abi()) + GetArcDirection(hdc.param().abi()) } #[inline] pub unsafe fn GetAspectRatioFilterEx(hdc: P0, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetAspectRatioFilterEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetAspectRatioFilterEx(hdc.into_param().abi(), lpsize) + GetAspectRatioFilterEx(hdc.param().abi(), lpsize) } #[inline] pub unsafe fn GetBitmapBits(hbit: P0, cb: i32, lpvbits: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetBitmapBits(hbit : HBITMAP, cb : i32, lpvbits : *mut core::ffi::c_void) -> i32); - GetBitmapBits(hbit.into_param().abi(), cb, lpvbits) + GetBitmapBits(hbit.param().abi(), cb, lpvbits) } #[inline] pub unsafe fn GetBitmapDimensionEx(hbit: P0, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetBitmapDimensionEx(hbit : HBITMAP, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetBitmapDimensionEx(hbit.into_param().abi(), lpsize) + GetBitmapDimensionEx(hbit.param().abi(), lpsize) } #[inline] pub unsafe fn GetBkColor(hdc: P0) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetBkColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetBkColor(hdc.into_param().abi()) + GetBkColor(hdc.param().abi()) } #[inline] pub unsafe fn GetBkMode(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetBkMode(hdc : HDC) -> i32); - GetBkMode(hdc.into_param().abi()) + GetBkMode(hdc.param().abi()) } #[inline] pub unsafe fn GetBoundsRect(hdc: P0, lprect: *mut super::super::Foundation::RECT, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetBoundsRect(hdc : HDC, lprect : *mut super::super::Foundation:: RECT, flags : u32) -> u32); - GetBoundsRect(hdc.into_param().abi(), lprect, flags) + GetBoundsRect(hdc.param().abi(), lprect, flags) } #[inline] pub unsafe fn GetBrushOrgEx(hdc: P0, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetBrushOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetBrushOrgEx(hdc.into_param().abi(), lppt) + GetBrushOrgEx(hdc.param().abi(), lppt) } #[inline] pub unsafe fn GetCharABCWidthsA(hdc: P0, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsA(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> super::super::Foundation:: BOOL); - GetCharABCWidthsA(hdc.into_param().abi(), wfirst, wlast, lpabc) + GetCharABCWidthsA(hdc.param().abi(), wfirst, wlast, lpabc) } #[inline] pub unsafe fn GetCharABCWidthsFloatA(hdc: P0, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> super::super::Foundation:: BOOL); - GetCharABCWidthsFloatA(hdc.into_param().abi(), ifirst, ilast, lpabc) + GetCharABCWidthsFloatA(hdc.param().abi(), ifirst, ilast, lpabc) } #[inline] pub unsafe fn GetCharABCWidthsFloatW(hdc: P0, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> super::super::Foundation:: BOOL); - GetCharABCWidthsFloatW(hdc.into_param().abi(), ifirst, ilast, lpabc) + GetCharABCWidthsFloatW(hdc.param().abi(), ifirst, ilast, lpabc) } #[inline] pub unsafe fn GetCharABCWidthsI(hdc: P0, gifirst: u32, cgi: u32, pgi: Option<*const u16>, pabc: *mut ABC) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), gifirst, cgi, core::mem::transmute(pgi.unwrap_or(std::ptr::null())), pabc) + GetCharABCWidthsI(hdc.param().abi(), gifirst, cgi, core::mem::transmute(pgi.unwrap_or(std::ptr::null())), pabc) } #[inline] pub unsafe fn GetCharABCWidthsW(hdc: P0, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsW(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> super::super::Foundation:: BOOL); - GetCharABCWidthsW(hdc.into_param().abi(), wfirst, wlast, lpabc) + GetCharABCWidthsW(hdc.param().abi(), wfirst, wlast, lpabc) } #[inline] pub unsafe fn GetCharWidth32A(hdc: P0, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32A(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidth32A(hdc.into_param().abi(), ifirst, ilast, lpbuffer) + GetCharWidth32A(hdc.param().abi(), ifirst, ilast, lpbuffer) } #[inline] pub unsafe fn GetCharWidth32W(hdc: P0, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32W(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidth32W(hdc.into_param().abi(), ifirst, ilast, lpbuffer) + GetCharWidth32W(hdc.param().abi(), ifirst, ilast, lpbuffer) } #[inline] pub unsafe fn GetCharWidthA(hdc: P0, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidthA(hdc.into_param().abi(), ifirst, ilast, lpbuffer) + GetCharWidthA(hdc.param().abi(), ifirst, ilast, lpbuffer) } #[inline] pub unsafe fn GetCharWidthFloatA(hdc: P0, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> super::super::Foundation:: BOOL); - GetCharWidthFloatA(hdc.into_param().abi(), ifirst, ilast, lpbuffer) + GetCharWidthFloatA(hdc.param().abi(), ifirst, ilast, lpbuffer) } #[inline] pub unsafe fn GetCharWidthFloatW(hdc: P0, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> super::super::Foundation:: BOOL); - GetCharWidthFloatW(hdc.into_param().abi(), ifirst, ilast, lpbuffer) + GetCharWidthFloatW(hdc.param().abi(), ifirst, ilast, lpbuffer) } #[inline] pub unsafe fn GetCharWidthI(hdc: P0, gifirst: u32, cgi: u32, pgi: Option<*const u16>, piwidths: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), gifirst, cgi, core::mem::transmute(pgi.unwrap_or(std::ptr::null())), piwidths) + GetCharWidthI(hdc.param().abi(), gifirst, cgi, core::mem::transmute(pgi.unwrap_or(std::ptr::null())), piwidths) } #[inline] pub unsafe fn GetCharWidthW(hdc: P0, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCharWidthW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); - GetCharWidthW(hdc.into_param().abi(), ifirst, ilast, lpbuffer) + GetCharWidthW(hdc.param().abi(), ifirst, ilast, lpbuffer) } #[inline] pub unsafe fn GetCharacterPlacementA(hdc: P0, lpstring: &[u8], nmexextent: i32, lpresults: *mut GCP_RESULTSA, dwflags: GET_CHARACTER_PLACEMENT_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), nmexextent, lpresults, dwflags) + GetCharacterPlacementA(hdc.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), nmexextent, lpresults, dwflags) } #[inline] pub unsafe fn GetCharacterPlacementW(hdc: P0, lpstring: &[u16], nmexextent: i32, lpresults: *mut GCP_RESULTSW, dwflags: GET_CHARACTER_PLACEMENT_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), nmexextent, lpresults, dwflags) + GetCharacterPlacementW(hdc.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), nmexextent, lpresults, dwflags) } #[inline] pub unsafe fn GetClipBox(hdc: P0, lprect: *mut super::super::Foundation::RECT) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetClipBox(hdc : HDC, lprect : *mut super::super::Foundation:: RECT) -> GDI_REGION_TYPE); - GetClipBox(hdc.into_param().abi(), lprect) + GetClipBox(hdc.param().abi(), lprect) } #[inline] pub unsafe fn GetClipRgn(hdc: P0, hrgn: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetClipRgn(hdc : HDC, hrgn : HRGN) -> i32); - GetClipRgn(hdc.into_param().abi(), hrgn.into_param().abi()) + GetClipRgn(hdc.param().abi(), hrgn.param().abi()) } #[inline] pub unsafe fn GetColorAdjustment(hdc: P0, lpca: *mut COLORADJUSTMENT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetColorAdjustment(hdc : HDC, lpca : *mut COLORADJUSTMENT) -> super::super::Foundation:: BOOL); - GetColorAdjustment(hdc.into_param().abi(), lpca) + GetColorAdjustment(hdc.param().abi(), lpca) } #[inline] pub unsafe fn GetCurrentObject(hdc: P0, r#type: OBJ_TYPE) -> HGDIOBJ where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCurrentObject(hdc : HDC, r#type : u32) -> HGDIOBJ); - GetCurrentObject(hdc.into_param().abi(), r#type.0 as _) + GetCurrentObject(hdc.param().abi(), r#type.0 as _) } #[inline] pub unsafe fn GetCurrentPositionEx(hdc: P0, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetCurrentPositionEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetCurrentPositionEx(hdc.into_param().abi(), lppt) + GetCurrentPositionEx(hdc.param().abi(), lppt) } #[inline] pub unsafe fn GetDC(hwnd: P0) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDC(hwnd : super::super::Foundation:: HWND) -> HDC); - GetDC(hwnd.into_param().abi()) + GetDC(hwnd.param().abi()) } #[inline] pub unsafe fn GetDCBrushColor(hdc: P0) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetDCBrushColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetDCBrushColor(hdc.into_param().abi()) + GetDCBrushColor(hdc.param().abi()) } #[inline] pub unsafe fn GetDCEx(hwnd: P0, hrgnclip: P1, flags: GET_DCX_FLAGS) -> HDC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDCEx(hwnd : super::super::Foundation:: HWND, hrgnclip : HRGN, flags : GET_DCX_FLAGS) -> HDC); - GetDCEx(hwnd.into_param().abi(), hrgnclip.into_param().abi(), flags) + GetDCEx(hwnd.param().abi(), hrgnclip.param().abi(), flags) } #[inline] pub unsafe fn GetDCOrgEx(hdc: P0, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetDCOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetDCOrgEx(hdc.into_param().abi(), lppt) + GetDCOrgEx(hdc.param().abi(), lppt) } #[inline] pub unsafe fn GetDCPenColor(hdc: P0) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetDCPenColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetDCPenColor(hdc.into_param().abi()) + GetDCPenColor(hdc.param().abi()) } #[inline] pub unsafe fn GetDIBColorTable(hdc: P0, istart: u32, prgbq: &mut [RGBQUAD]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetDIBColorTable(hdc : HDC, istart : u32, centries : u32, prgbq : *mut RGBQUAD) -> u32); - GetDIBColorTable(hdc.into_param().abi(), istart, prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) + GetDIBColorTable(hdc.param().abi(), istart, prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) } #[inline] pub unsafe fn GetDIBits(hdc: P0, hbm: P1, start: u32, clines: u32, lpvbits: Option<*mut core::ffi::c_void>, lpbmi: *mut BITMAPINFO, usage: DIB_USAGE) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), hbm.into_param().abi(), start, clines, core::mem::transmute(lpvbits.unwrap_or(std::ptr::null_mut())), lpbmi, usage) + GetDIBits(hdc.param().abi(), hbm.param().abi(), start, clines, core::mem::transmute(lpvbits.unwrap_or(std::ptr::null_mut())), lpbmi, usage) } #[inline] pub unsafe fn GetDeviceCaps(hdc: P0, index: GET_DEVICE_CAPS_INDEX) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetDeviceCaps(hdc : HDC, index : i32) -> i32); - GetDeviceCaps(hdc.into_param().abi(), index.0 as _) + GetDeviceCaps(hdc.param().abi(), index.0 as _) } #[inline] pub unsafe fn GetEnhMetaFileA(lpname: P0) -> HENHMETAFILE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileA(lpname : windows_core::PCSTR) -> HENHMETAFILE); - GetEnhMetaFileA(lpname.into_param().abi()) + GetEnhMetaFileA(lpname.param().abi()) } #[inline] pub unsafe fn GetEnhMetaFileBits(hemf: P0, lpdata: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileBits(hemf : HENHMETAFILE, nsize : u32, lpdata : *mut u8) -> u32); - GetEnhMetaFileBits(hemf.into_param().abi(), 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.param().abi(), 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: P0, lpdescription: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileDescriptionA(hemf : HENHMETAFILE, cchbuffer : u32, lpdescription : windows_core::PSTR) -> u32); - GetEnhMetaFileDescriptionA(hemf.into_param().abi(), 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.param().abi(), 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: P0, lpdescription: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileDescriptionW(hemf : HENHMETAFILE, cchbuffer : u32, lpdescription : windows_core::PWSTR) -> u32); - GetEnhMetaFileDescriptionW(hemf.into_param().abi(), 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.param().abi(), 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: P0, nsize: u32, lpenhmetaheader: Option<*mut ENHMETAHEADER>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileHeader(hemf : HENHMETAFILE, nsize : u32, lpenhmetaheader : *mut ENHMETAHEADER) -> u32); - GetEnhMetaFileHeader(hemf.into_param().abi(), nsize, core::mem::transmute(lpenhmetaheader.unwrap_or(std::ptr::null_mut()))) + GetEnhMetaFileHeader(hemf.param().abi(), nsize, core::mem::transmute(lpenhmetaheader.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetEnhMetaFilePaletteEntries(hemf: P0, lppaletteentries: Option<&mut [PALETTEENTRY]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFilePaletteEntries(hemf : HENHMETAFILE, nnumentries : u32, lppaletteentries : *mut PALETTEENTRY) -> u32); - GetEnhMetaFilePaletteEntries(hemf.into_param().abi(), 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.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFileW(lpname : windows_core::PCWSTR) -> HENHMETAFILE); - GetEnhMetaFileW(lpname.into_param().abi()) + GetEnhMetaFileW(lpname.param().abi()) } #[inline] pub unsafe fn GetFontData(hdc: P0, dwtable: u32, dwoffset: u32, pvbuffer: Option<*mut core::ffi::c_void>, cjbuffer: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetFontData(hdc : HDC, dwtable : u32, dwoffset : u32, pvbuffer : *mut core::ffi::c_void, cjbuffer : u32) -> u32); - GetFontData(hdc.into_param().abi(), dwtable, dwoffset, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), cjbuffer) + GetFontData(hdc.param().abi(), dwtable, dwoffset, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), cjbuffer) } #[inline] pub unsafe fn GetFontLanguageInfo(hdc: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetFontLanguageInfo(hdc : HDC) -> u32); - GetFontLanguageInfo(hdc.into_param().abi()) + GetFontLanguageInfo(hdc.param().abi()) } #[inline] pub unsafe fn GetFontUnicodeRanges(hdc: P0, lpgs: Option<*mut GLYPHSET>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetFontUnicodeRanges(hdc : HDC, lpgs : *mut GLYPHSET) -> u32); - GetFontUnicodeRanges(hdc.into_param().abi(), core::mem::transmute(lpgs.unwrap_or(std::ptr::null_mut()))) + GetFontUnicodeRanges(hdc.param().abi(), core::mem::transmute(lpgs.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetGlyphIndicesA(hdc: P0, lpstr: P1, c: i32, pgi: *mut u16, fl: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdc.into_param().abi(), lpstr.into_param().abi(), c, pgi, fl) + GetGlyphIndicesA(hdc.param().abi(), lpstr.param().abi(), c, pgi, fl) } #[inline] pub unsafe fn GetGlyphIndicesW(hdc: P0, lpstr: P1, c: i32, pgi: *mut u16, fl: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdc.into_param().abi(), lpstr.into_param().abi(), c, pgi, fl) + GetGlyphIndicesW(hdc.param().abi(), lpstr.param().abi(), c, pgi, fl) } #[inline] pub unsafe fn GetGlyphOutlineA(hdc: P0, uchar: u32, fuformat: GET_GLYPH_OUTLINE_FORMAT, lpgm: *mut GLYPHMETRICS, cjbuffer: u32, pvbuffer: Option<*mut core::ffi::c_void>, lpmat2: *const MAT2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), uchar, fuformat, lpgm, cjbuffer, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), lpmat2) + GetGlyphOutlineA(hdc.param().abi(), uchar, fuformat, lpgm, cjbuffer, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), lpmat2) } #[inline] pub unsafe fn GetGlyphOutlineW(hdc: P0, uchar: u32, fuformat: GET_GLYPH_OUTLINE_FORMAT, lpgm: *mut GLYPHMETRICS, cjbuffer: u32, pvbuffer: Option<*mut core::ffi::c_void>, lpmat2: *const MAT2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), uchar, fuformat, lpgm, cjbuffer, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), lpmat2) + GetGlyphOutlineW(hdc.param().abi(), uchar, fuformat, lpgm, cjbuffer, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), lpmat2) } #[inline] pub unsafe fn GetGraphicsMode(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetGraphicsMode(hdc : HDC) -> i32); - GetGraphicsMode(hdc.into_param().abi()) + GetGraphicsMode(hdc.param().abi()) } #[inline] pub unsafe fn GetKerningPairsA(hdc: P0, lpkernpair: Option<&mut [KERNINGPAIR]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetKerningPairsA(hdc : HDC, npairs : u32, lpkernpair : *mut KERNINGPAIR) -> u32); - GetKerningPairsA(hdc.into_param().abi(), 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.param().abi(), 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: P0, lpkernpair: Option<&mut [KERNINGPAIR]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetKerningPairsW(hdc : HDC, npairs : u32, lpkernpair : *mut KERNINGPAIR) -> u32); - GetKerningPairsW(hdc.into_param().abi(), 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.param().abi(), 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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetLayout(hdc : HDC) -> u32); - GetLayout(hdc.into_param().abi()) + GetLayout(hdc.param().abi()) } #[inline] pub unsafe fn GetMapMode(hdc: P0) -> HDC_MAP_MODE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetMapMode(hdc : HDC) -> HDC_MAP_MODE); - GetMapMode(hdc.into_param().abi()) + GetMapMode(hdc.param().abi()) } #[inline] pub unsafe fn GetMetaFileA(lpname: P0) -> HMETAFILE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetMetaFileA(lpname : windows_core::PCSTR) -> HMETAFILE); - GetMetaFileA(lpname.into_param().abi()) + GetMetaFileA(lpname.param().abi()) } #[inline] pub unsafe fn GetMetaFileBitsEx(hmf: P0, cbbuffer: u32, lpdata: Option<*mut core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetMetaFileBitsEx(hmf : HMETAFILE, cbbuffer : u32, lpdata : *mut core::ffi::c_void) -> u32); - GetMetaFileBitsEx(hmf.into_param().abi(), cbbuffer, core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut()))) + GetMetaFileBitsEx(hmf.param().abi(), cbbuffer, core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetMetaFileW(lpname: P0) -> HMETAFILE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetMetaFileW(lpname : windows_core::PCWSTR) -> HMETAFILE); - GetMetaFileW(lpname.into_param().abi()) + GetMetaFileW(lpname.param().abi()) } #[inline] pub unsafe fn GetMetaRgn(hdc: P0, hrgn: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetMetaRgn(hdc : HDC, hrgn : HRGN) -> i32); - GetMetaRgn(hdc.into_param().abi(), hrgn.into_param().abi()) + GetMetaRgn(hdc.param().abi(), hrgn.param().abi()) } #[inline] pub unsafe fn GetMiterLimit(hdc: P0, plimit: *mut f32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetMiterLimit(hdc : HDC, plimit : *mut f32) -> super::super::Foundation:: BOOL); - GetMiterLimit(hdc.into_param().abi(), plimit) + GetMiterLimit(hdc.param().abi(), plimit) } #[inline] pub unsafe fn GetMonitorInfoA(hmonitor: P0, lpmi: *mut MONITORINFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMonitorInfoA(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> super::super::Foundation:: BOOL); - GetMonitorInfoA(hmonitor.into_param().abi(), lpmi) + GetMonitorInfoA(hmonitor.param().abi(), lpmi) } #[inline] pub unsafe fn GetMonitorInfoW(hmonitor: P0, lpmi: *mut MONITORINFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMonitorInfoW(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> super::super::Foundation:: BOOL); - GetMonitorInfoW(hmonitor.into_param().abi(), lpmi) + GetMonitorInfoW(hmonitor.param().abi(), lpmi) } #[inline] pub unsafe fn GetNearestColor(hdc: P0, color: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetNearestColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - GetNearestColor(hdc.into_param().abi(), color.into_param().abi()) + GetNearestColor(hdc.param().abi(), color.param().abi()) } #[inline] pub unsafe fn GetNearestPaletteIndex(h: P0, color: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetNearestPaletteIndex(h : HPALETTE, color : super::super::Foundation:: COLORREF) -> u32); - GetNearestPaletteIndex(h.into_param().abi(), color.into_param().abi()) + GetNearestPaletteIndex(h.param().abi(), color.param().abi()) } #[inline] pub unsafe fn GetObjectA(h: P0, c: i32, pv: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetObjectA(h : HGDIOBJ, c : i32, pv : *mut core::ffi::c_void) -> i32); - GetObjectA(h.into_param().abi(), c, core::mem::transmute(pv.unwrap_or(std::ptr::null_mut()))) + GetObjectA(h.param().abi(), c, core::mem::transmute(pv.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetObjectType(h: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetObjectType(h : HGDIOBJ) -> u32); - GetObjectType(h.into_param().abi()) + GetObjectType(h.param().abi()) } #[inline] pub unsafe fn GetObjectW(h: P0, c: i32, pv: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetObjectW(h : HGDIOBJ, c : i32, pv : *mut core::ffi::c_void) -> i32); - GetObjectW(h.into_param().abi(), c, core::mem::transmute(pv.unwrap_or(std::ptr::null_mut()))) + GetObjectW(h.param().abi(), c, core::mem::transmute(pv.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetOutlineTextMetricsA(hdc: P0, cjcopy: u32, potm: Option<*mut OUTLINETEXTMETRICA>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetOutlineTextMetricsA(hdc : HDC, cjcopy : u32, potm : *mut OUTLINETEXTMETRICA) -> u32); - GetOutlineTextMetricsA(hdc.into_param().abi(), cjcopy, core::mem::transmute(potm.unwrap_or(std::ptr::null_mut()))) + GetOutlineTextMetricsA(hdc.param().abi(), cjcopy, core::mem::transmute(potm.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetOutlineTextMetricsW(hdc: P0, cjcopy: u32, potm: Option<*mut OUTLINETEXTMETRICW>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetOutlineTextMetricsW(hdc : HDC, cjcopy : u32, potm : *mut OUTLINETEXTMETRICW) -> u32); - GetOutlineTextMetricsW(hdc.into_param().abi(), cjcopy, core::mem::transmute(potm.unwrap_or(std::ptr::null_mut()))) + GetOutlineTextMetricsW(hdc.param().abi(), cjcopy, core::mem::transmute(potm.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetPaletteEntries(hpal: P0, istart: u32, ppalentries: Option<&mut [PALETTEENTRY]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetPaletteEntries(hpal : HPALETTE, istart : u32, centries : u32, ppalentries : *mut PALETTEENTRY) -> u32); - GetPaletteEntries(hpal.into_param().abi(), 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.param().abi(), 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: P0, apt: Option<*mut super::super::Foundation::POINT>, aj: Option<*mut u8>, cpt: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetPath(hdc : HDC, apt : *mut super::super::Foundation:: POINT, aj : *mut u8, cpt : i32) -> i32); - GetPath(hdc.into_param().abi(), core::mem::transmute(apt.unwrap_or(std::ptr::null_mut())), core::mem::transmute(aj.unwrap_or(std::ptr::null_mut())), cpt) + GetPath(hdc.param().abi(), core::mem::transmute(apt.unwrap_or(std::ptr::null_mut())), core::mem::transmute(aj.unwrap_or(std::ptr::null_mut())), cpt) } #[inline] pub unsafe fn GetPixel(hdc: P0, x: i32, y: i32) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetPixel(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: COLORREF); - GetPixel(hdc.into_param().abi(), x, y) + GetPixel(hdc.param().abi(), x, y) } #[inline] pub unsafe fn GetPolyFillMode(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetPolyFillMode(hdc : HDC) -> i32); - GetPolyFillMode(hdc.into_param().abi()) + GetPolyFillMode(hdc.param().abi()) } #[inline] pub unsafe fn GetROP2(hdc: P0) -> R2_MODE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetROP2(hdc : HDC) -> R2_MODE); - GetROP2(hdc.into_param().abi()) + GetROP2(hdc.param().abi()) } #[inline] pub unsafe fn GetRandomRgn(hdc: P0, hrgn: P1, i: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetRandomRgn(hdc : HDC, hrgn : HRGN, i : i32) -> i32); - GetRandomRgn(hdc.into_param().abi(), hrgn.into_param().abi(), i) + GetRandomRgn(hdc.param().abi(), hrgn.param().abi(), i) } #[inline] pub unsafe fn GetRasterizerCaps(lpraststat: *mut RASTERIZER_STATUS, cjbytes: u32) -> super::super::Foundation::BOOL { @@ -1649,18 +1649,18 @@ pub unsafe fn GetRasterizerCaps(lpraststat: *mut RASTERIZER_STATUS, cjbytes: u32 #[inline] pub unsafe fn GetRegionData(hrgn: P0, ncount: u32, lprgndata: Option<*mut RGNDATA>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetRegionData(hrgn : HRGN, ncount : u32, lprgndata : *mut RGNDATA) -> u32); - GetRegionData(hrgn.into_param().abi(), ncount, core::mem::transmute(lprgndata.unwrap_or(std::ptr::null_mut()))) + GetRegionData(hrgn.param().abi(), ncount, core::mem::transmute(lprgndata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetRgnBox(hrgn: P0, lprc: *mut super::super::Foundation::RECT) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetRgnBox(hrgn : HRGN, lprc : *mut super::super::Foundation:: RECT) -> GDI_REGION_TYPE); - GetRgnBox(hrgn.into_param().abi(), lprc) + GetRgnBox(hrgn.param().abi(), lprc) } #[inline] pub unsafe fn GetStockObject(i: GET_STOCK_OBJECT_FLAGS) -> HGDIOBJ { @@ -1670,10 +1670,10 @@ pub unsafe fn GetStockObject(i: GET_STOCK_OBJECT_FLAGS) -> HGDIOBJ { #[inline] pub unsafe fn GetStretchBltMode(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetStretchBltMode(hdc : HDC) -> i32); - GetStretchBltMode(hdc.into_param().abi()) + GetStretchBltMode(hdc.param().abi()) } #[inline] pub unsafe fn GetSysColor(nindex: SYS_COLOR_INDEX) -> u32 { @@ -1688,277 +1688,277 @@ pub unsafe fn GetSysColorBrush(nindex: SYS_COLOR_INDEX) -> HBRUSH { #[inline] pub unsafe fn GetSystemPaletteEntries(hdc: P0, istart: u32, ppalentries: Option<&mut [PALETTEENTRY]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetSystemPaletteEntries(hdc : HDC, istart : u32, centries : u32, ppalentries : *mut PALETTEENTRY) -> u32); - GetSystemPaletteEntries(hdc.into_param().abi(), 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.param().abi(), 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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetSystemPaletteUse(hdc : HDC) -> u32); - GetSystemPaletteUse(hdc.into_param().abi()) + GetSystemPaletteUse(hdc.param().abi()) } #[inline] pub unsafe fn GetTabbedTextExtentA(hdc: P0, lpstring: &[u8], lpntabstoppositions: Option<&[i32]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetTabbedTextExtentA(hdc : HDC, lpstring : windows_core::PCSTR, chcount : i32, ntabpositions : i32, lpntabstoppositions : *const i32) -> u32); - GetTabbedTextExtentA(hdc.into_param().abi(), 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.param().abi(), 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: P0, lpstring: &[u16], lpntabstoppositions: Option<&[i32]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetTabbedTextExtentW(hdc : HDC, lpstring : windows_core::PCWSTR, chcount : i32, ntabpositions : i32, lpntabstoppositions : *const i32) -> u32); - GetTabbedTextExtentW(hdc.into_param().abi(), 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.param().abi(), 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: P0) -> TEXT_ALIGN_OPTIONS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextAlign(hdc : HDC) -> TEXT_ALIGN_OPTIONS); - GetTextAlign(hdc.into_param().abi()) + GetTextAlign(hdc.param().abi()) } #[inline] pub unsafe fn GetTextCharacterExtra(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextCharacterExtra(hdc : HDC) -> i32); - GetTextCharacterExtra(hdc.into_param().abi()) + GetTextCharacterExtra(hdc.param().abi()) } #[inline] pub unsafe fn GetTextColor(hdc: P0) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextColor(hdc : HDC) -> super::super::Foundation:: COLORREF); - GetTextColor(hdc.into_param().abi()) + GetTextColor(hdc.param().abi()) } #[inline] pub unsafe fn GetTextExtentExPointA(hdc: P0, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdc.into_param().abi(), lpszstring.into_param().abi(), cchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpndx.unwrap_or(std::ptr::null_mut())), lpsize) + GetTextExtentExPointA(hdc.param().abi(), lpszstring.param().abi(), cchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpndx.unwrap_or(std::ptr::null_mut())), lpsize) } #[inline] pub unsafe fn GetTextExtentExPointI(hdc: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), lpwszstring, cwchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpndx.unwrap_or(std::ptr::null_mut())), lpsize) + GetTextExtentExPointI(hdc.param().abi(), lpwszstring, cwchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpndx.unwrap_or(std::ptr::null_mut())), lpsize) } #[inline] pub unsafe fn GetTextExtentExPointW(hdc: P0, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdc.into_param().abi(), lpszstring.into_param().abi(), cchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpndx.unwrap_or(std::ptr::null_mut())), lpsize) + GetTextExtentExPointW(hdc.param().abi(), lpszstring.param().abi(), cchstring, nmaxextent, core::mem::transmute(lpnfit.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpndx.unwrap_or(std::ptr::null_mut())), lpsize) } #[inline] pub unsafe fn GetTextExtentPoint32A(hdc: P0, lpstring: &[u8], psizl: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), psizl) + GetTextExtentPoint32A(hdc.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), psizl) } #[inline] pub unsafe fn GetTextExtentPoint32W(hdc: P0, lpstring: &[u16], psizl: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), psizl) + GetTextExtentPoint32W(hdc.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), psizl) } #[inline] pub unsafe fn GetTextExtentPointA(hdc: P0, lpstring: &[u8], lpsz: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpsz) + GetTextExtentPointA(hdc.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpsz) } #[inline] pub unsafe fn GetTextExtentPointI(hdc: P0, pgiin: &[u16], psize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(pgiin.as_ptr()), pgiin.len().try_into().unwrap(), psize) + GetTextExtentPointI(hdc.param().abi(), core::mem::transmute(pgiin.as_ptr()), pgiin.len().try_into().unwrap(), psize) } #[inline] pub unsafe fn GetTextExtentPointW(hdc: P0, lpstring: &[u16], lpsz: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpsz) + GetTextExtentPointW(hdc.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpsz) } #[inline] pub unsafe fn GetTextFaceA(hdc: P0, lpname: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextFaceA(hdc : HDC, c : i32, lpname : windows_core::PSTR) -> i32); - GetTextFaceA(hdc.into_param().abi(), 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.param().abi(), 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: P0, lpname: Option<&mut [u16]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextFaceW(hdc : HDC, c : i32, lpname : windows_core::PWSTR) -> i32); - GetTextFaceW(hdc.into_param().abi(), 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.param().abi(), 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: P0, lptm: *mut TEXTMETRICA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsA(hdc : HDC, lptm : *mut TEXTMETRICA) -> super::super::Foundation:: BOOL); - GetTextMetricsA(hdc.into_param().abi(), lptm) + GetTextMetricsA(hdc.param().abi(), lptm) } #[inline] pub unsafe fn GetTextMetricsW(hdc: P0, lptm: *mut TEXTMETRICW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsW(hdc : HDC, lptm : *mut TEXTMETRICW) -> super::super::Foundation:: BOOL); - GetTextMetricsW(hdc.into_param().abi(), lptm) + GetTextMetricsW(hdc.param().abi(), lptm) } #[inline] pub unsafe fn GetUpdateRect(hwnd: P0, lprect: Option<*mut super::super::Foundation::RECT>, berase: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null_mut())), berase.into_param().abi()) + GetUpdateRect(hwnd.param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null_mut())), berase.param().abi()) } #[inline] pub unsafe fn GetUpdateRgn(hwnd: P0, hrgn: P1, berase: P2) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetUpdateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, berase : super::super::Foundation:: BOOL) -> GDI_REGION_TYPE); - GetUpdateRgn(hwnd.into_param().abi(), hrgn.into_param().abi(), berase.into_param().abi()) + GetUpdateRgn(hwnd.param().abi(), hrgn.param().abi(), berase.param().abi()) } #[inline] pub unsafe fn GetViewportExtEx(hdc: P0, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetViewportExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetViewportExtEx(hdc.into_param().abi(), lpsize) + GetViewportExtEx(hdc.param().abi(), lpsize) } #[inline] pub unsafe fn GetViewportOrgEx(hdc: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetViewportOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetViewportOrgEx(hdc.into_param().abi(), lppoint) + GetViewportOrgEx(hdc.param().abi(), lppoint) } #[inline] pub unsafe fn GetWinMetaFileBits(hemf: P0, pdata16: Option<&mut [u8]>, imapmode: i32, hdcref: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetWinMetaFileBits(hemf : HENHMETAFILE, cbdata16 : u32, pdata16 : *mut u8, imapmode : i32, hdcref : HDC) -> u32); - GetWinMetaFileBits(hemf.into_param().abi(), 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.into_param().abi()) + GetWinMetaFileBits(hemf.param().abi(), 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.param().abi()) } #[inline] pub unsafe fn GetWindowDC(hwnd: P0) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowDC(hwnd : super::super::Foundation:: HWND) -> HDC); - GetWindowDC(hwnd.into_param().abi()) + GetWindowDC(hwnd.param().abi()) } #[inline] pub unsafe fn GetWindowExtEx(hdc: P0, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetWindowExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); - GetWindowExtEx(hdc.into_param().abi(), lpsize) + GetWindowExtEx(hdc.param().abi(), lpsize) } #[inline] pub unsafe fn GetWindowOrgEx(hdc: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetWindowOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - GetWindowOrgEx(hdc.into_param().abi(), lppoint) + GetWindowOrgEx(hdc.param().abi(), lppoint) } #[inline] pub unsafe fn GetWindowRgn(hwnd: P0, hrgn: P1) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN) -> GDI_REGION_TYPE); - GetWindowRgn(hwnd.into_param().abi(), hrgn.into_param().abi()) + GetWindowRgn(hwnd.param().abi(), hrgn.param().abi()) } #[inline] pub unsafe fn GetWindowRgnBox(hwnd: P0, lprc: *mut super::super::Foundation::RECT) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowRgnBox(hwnd : super::super::Foundation:: HWND, lprc : *mut super::super::Foundation:: RECT) -> GDI_REGION_TYPE); - GetWindowRgnBox(hwnd.into_param().abi(), lprc) + GetWindowRgnBox(hwnd.param().abi(), lprc) } #[inline] pub unsafe fn GetWorldTransform(hdc: P0, lpxf: *mut XFORM) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetWorldTransform(hdc : HDC, lpxf : *mut XFORM) -> super::super::Foundation:: BOOL); - GetWorldTransform(hdc.into_param().abi(), lpxf) + GetWorldTransform(hdc.param().abi(), lpxf) } #[inline] pub unsafe fn GradientFill(hdc: P0, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, nmesh: u32, ulmode: GRADIENT_FILL) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, nmesh, ulmode) + GradientFill(hdc.param().abi(), core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, nmesh, ulmode) } #[inline] pub unsafe fn GrayStringA(hdc: P0, hbrush: P1, lpoutputfunc: GRAYSTRINGPROC, lpdata: P2, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdc.into_param().abi(), hbrush.into_param().abi(), lpoutputfunc, lpdata.into_param().abi(), ncount, x, y, nwidth, nheight) + GrayStringA(hdc.param().abi(), hbrush.param().abi(), lpoutputfunc, lpdata.param().abi(), ncount, x, y, nwidth, nheight) } #[inline] pub unsafe fn GrayStringW(hdc: P0, hbrush: P1, lpoutputfunc: GRAYSTRINGPROC, lpdata: P2, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdc.into_param().abi(), hbrush.into_param().abi(), lpoutputfunc, lpdata.into_param().abi(), ncount, x, y, nwidth, nheight) + GrayStringW(hdc.param().abi(), hbrush.param().abi(), lpoutputfunc, lpdata.param().abi(), ncount, x, y, nwidth, nheight) } #[inline] pub unsafe fn InflateRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> super::super::Foundation::BOOL { @@ -1968,10 +1968,10 @@ pub unsafe fn InflateRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy #[inline] pub unsafe fn IntersectClipRect(hdc: P0, left: i32, top: i32, right: i32, bottom: i32) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn IntersectClipRect(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> GDI_REGION_TYPE); - IntersectClipRect(hdc.into_param().abi(), left, top, right, bottom) + IntersectClipRect(hdc.param().abi(), 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 { @@ -1981,38 +1981,38 @@ pub unsafe fn IntersectRect(lprcdst: *mut super::super::Foundation::RECT, lprcsr #[inline] pub unsafe fn InvalidateRect(hwnd: P0, lprect: Option<*const super::super::Foundation::RECT>, berase: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn InvalidateRect(hwnd : super::super::Foundation:: HWND, lprect : *const super::super::Foundation:: RECT, berase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - InvalidateRect(hwnd.into_param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null())), berase.into_param().abi()) + InvalidateRect(hwnd.param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null())), berase.param().abi()) } #[inline] pub unsafe fn InvalidateRgn(hwnd: P0, hrgn: P1, berase: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), hrgn.into_param().abi(), berase.into_param().abi()) + InvalidateRgn(hwnd.param().abi(), hrgn.param().abi(), berase.param().abi()) } #[inline] pub unsafe fn InvertRect(hdc: P0, lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn InvertRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - InvertRect(hdc.into_param().abi(), lprc) + InvertRect(hdc.param().abi(), lprc) } #[inline] pub unsafe fn InvertRgn(hdc: P0, hrgn: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn InvertRgn(hdc : HDC, hrgn : HRGN) -> super::super::Foundation:: BOOL); - InvertRgn(hdc.into_param().abi(), hrgn.into_param().abi()) + InvertRgn(hdc.param().abi(), hrgn.param().abi()) } #[inline] pub unsafe fn IsRectEmpty(lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { @@ -2022,71 +2022,71 @@ pub unsafe fn IsRectEmpty(lprc: *const super::super::Foundation::RECT) -> super: #[inline] pub unsafe fn LPtoDP(hdc: P0, lppt: &mut [super::super::Foundation::POINT]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn LPtoDP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> super::super::Foundation:: BOOL); - LPtoDP(hdc.into_param().abi(), core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) + LPtoDP(hdc.param().abi(), 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: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(xstart, ystart, xend, yend, lpproc, data.into_param().abi()) + LineDDA(xstart, ystart, xend, yend, lpproc, data.param().abi()) } #[inline] pub unsafe fn LineTo(hdc: P0, x: i32, y: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn LineTo(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: BOOL); - LineTo(hdc.into_param().abi(), x, y) + LineTo(hdc.param().abi(), x, y) } #[inline] pub unsafe fn LoadBitmapA(hinstance: P0, lpbitmapname: P1) -> HBITMAP where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadBitmapA(hinstance : super::super::Foundation:: HINSTANCE, lpbitmapname : windows_core::PCSTR) -> HBITMAP); - LoadBitmapA(hinstance.into_param().abi(), lpbitmapname.into_param().abi()) + LoadBitmapA(hinstance.param().abi(), lpbitmapname.param().abi()) } #[inline] pub unsafe fn LoadBitmapW(hinstance: P0, lpbitmapname: P1) -> HBITMAP where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadBitmapW(hinstance : super::super::Foundation:: HINSTANCE, lpbitmapname : windows_core::PCWSTR) -> HBITMAP); - LoadBitmapW(hinstance.into_param().abi(), lpbitmapname.into_param().abi()) + LoadBitmapW(hinstance.param().abi(), lpbitmapname.param().abi()) } #[inline] pub unsafe fn LockWindowUpdate(hwndlock: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LockWindowUpdate(hwndlock : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - LockWindowUpdate(hwndlock.into_param().abi()) + LockWindowUpdate(hwndlock.param().abi()) } #[inline] pub unsafe fn MapWindowPoints(hwndfrom: P0, hwndto: P1, lppoints: &mut [super::super::Foundation::POINT]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MapWindowPoints(hwndfrom : super::super::Foundation:: HWND, hwndto : super::super::Foundation:: HWND, lppoints : *mut super::super::Foundation:: POINT, cpoints : u32) -> i32); - MapWindowPoints(hwndfrom.into_param().abi(), hwndto.into_param().abi(), core::mem::transmute(lppoints.as_ptr()), lppoints.len().try_into().unwrap()) + MapWindowPoints(hwndfrom.param().abi(), hwndto.param().abi(), core::mem::transmute(lppoints.as_ptr()), lppoints.len().try_into().unwrap()) } #[inline] pub unsafe fn MaskBlt(hdcdest: P0, xdest: i32, ydest: i32, width: i32, height: i32, hdcsrc: P1, xsrc: i32, ysrc: i32, hbmmask: P2, xmask: i32, ymask: i32, rop: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdcdest.into_param().abi(), xdest, ydest, width, height, hdcsrc.into_param().abi(), xsrc, ysrc, hbmmask.into_param().abi(), xmask, ymask, rop) + MaskBlt(hdcdest.param().abi(), xdest, ydest, width, height, hdcsrc.param().abi(), xsrc, ysrc, hbmmask.param().abi(), 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 { @@ -2096,10 +2096,10 @@ pub unsafe fn MergeFontPackage(puchmergefontbuffer: *const u8, ulmergefontbuffer #[inline] pub unsafe fn ModifyWorldTransform(hdc: P0, lpxf: Option<*const XFORM>, mode: MODIFY_WORLD_TRANSFORM_MODE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ModifyWorldTransform(hdc : HDC, lpxf : *const XFORM, mode : MODIFY_WORLD_TRANSFORM_MODE) -> super::super::Foundation:: BOOL); - ModifyWorldTransform(hdc.into_param().abi(), core::mem::transmute(lpxf.unwrap_or(std::ptr::null())), mode) + ModifyWorldTransform(hdc.param().abi(), core::mem::transmute(lpxf.unwrap_or(std::ptr::null())), mode) } #[inline] pub unsafe fn MonitorFromPoint(pt: super::super::Foundation::POINT, dwflags: MONITOR_FROM_FLAGS) -> HMONITOR { @@ -2114,26 +2114,26 @@ pub unsafe fn MonitorFromRect(lprc: *const super::super::Foundation::RECT, dwfla #[inline] pub unsafe fn MonitorFromWindow(hwnd: P0, dwflags: MONITOR_FROM_FLAGS) -> HMONITOR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MonitorFromWindow(hwnd : super::super::Foundation:: HWND, dwflags : MONITOR_FROM_FLAGS) -> HMONITOR); - MonitorFromWindow(hwnd.into_param().abi(), dwflags) + MonitorFromWindow(hwnd.param().abi(), dwflags) } #[inline] pub unsafe fn MoveToEx(hdc: P0, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) + MoveToEx(hdc.param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OffsetClipRgn(hdc: P0, x: i32, y: i32) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn OffsetClipRgn(hdc : HDC, x : i32, y : i32) -> GDI_REGION_TYPE); - OffsetClipRgn(hdc.into_param().abi(), x, y) + OffsetClipRgn(hdc.param().abi(), x, y) } #[inline] pub unsafe fn OffsetRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> super::super::Foundation::BOOL { @@ -2143,191 +2143,191 @@ pub unsafe fn OffsetRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: #[inline] pub unsafe fn OffsetRgn(hrgn: P0, x: i32, y: i32) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn OffsetRgn(hrgn : HRGN, x : i32, y : i32) -> GDI_REGION_TYPE); - OffsetRgn(hrgn.into_param().abi(), x, y) + OffsetRgn(hrgn.param().abi(), x, y) } #[inline] pub unsafe fn OffsetViewportOrgEx(hdc: P0, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) + OffsetViewportOrgEx(hdc.param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OffsetWindowOrgEx(hdc: P0, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) + OffsetWindowOrgEx(hdc.param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn PaintDesktop(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn PaintDesktop(hdc : HDC) -> super::super::Foundation:: BOOL); - PaintDesktop(hdc.into_param().abi()) + PaintDesktop(hdc.param().abi()) } #[inline] pub unsafe fn PaintRgn(hdc: P0, hrgn: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PaintRgn(hdc : HDC, hrgn : HRGN) -> super::super::Foundation:: BOOL); - PaintRgn(hdc.into_param().abi(), hrgn.into_param().abi()) + PaintRgn(hdc.param().abi(), hrgn.param().abi()) } #[inline] pub unsafe fn PatBlt(hdc: P0, x: i32, y: i32, w: i32, h: i32, rop: ROP_CODE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, w, h, rop) + PatBlt(hdc.param().abi(), x, y, w, h, rop) } #[inline] pub unsafe fn PathToRegion(hdc: P0) -> HRGN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PathToRegion(hdc : HDC) -> HRGN); - PathToRegion(hdc.into_param().abi()) + PathToRegion(hdc.param().abi()) } #[inline] pub unsafe fn Pie(hdc: P0, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), left, top, right, bottom, xr1, yr1, xr2, yr2) + Pie(hdc.param().abi(), left, top, right, bottom, xr1, yr1, xr2, yr2) } #[inline] pub unsafe fn PlayEnhMetaFile(hdc: P0, hmf: P1, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFile(hdc : HDC, hmf : HENHMETAFILE, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - PlayEnhMetaFile(hdc.into_param().abi(), hmf.into_param().abi(), lprect) + PlayEnhMetaFile(hdc.param().abi(), hmf.param().abi(), lprect) } #[inline] pub unsafe fn PlayEnhMetaFileRecord(hdc: P0, pht: &[HANDLETABLE], pmr: *const ENHMETARECORD) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFileRecord(hdc : HDC, pht : *const HANDLETABLE, pmr : *const ENHMETARECORD, cht : u32) -> super::super::Foundation:: BOOL); - PlayEnhMetaFileRecord(hdc.into_param().abi(), core::mem::transmute(pht.as_ptr()), pmr, pht.len().try_into().unwrap()) + PlayEnhMetaFileRecord(hdc.param().abi(), core::mem::transmute(pht.as_ptr()), pmr, pht.len().try_into().unwrap()) } #[inline] pub unsafe fn PlayMetaFile(hdc: P0, hmf: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PlayMetaFile(hdc : HDC, hmf : HMETAFILE) -> super::super::Foundation:: BOOL); - PlayMetaFile(hdc.into_param().abi(), hmf.into_param().abi()) + PlayMetaFile(hdc.param().abi(), hmf.param().abi()) } #[inline] pub unsafe fn PlayMetaFileRecord(hdc: P0, lphandletable: &[HANDLETABLE], lpmr: *const METARECORD) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PlayMetaFileRecord(hdc : HDC, lphandletable : *const HANDLETABLE, lpmr : *const METARECORD, noobjs : u32) -> super::super::Foundation:: BOOL); - PlayMetaFileRecord(hdc.into_param().abi(), core::mem::transmute(lphandletable.as_ptr()), lpmr, lphandletable.len().try_into().unwrap()) + PlayMetaFileRecord(hdc.param().abi(), core::mem::transmute(lphandletable.as_ptr()), lpmr, lphandletable.len().try_into().unwrap()) } #[inline] pub unsafe fn PlgBlt(hdcdest: P0, lppoint: &[super::super::Foundation::POINT; 3], hdcsrc: P1, xsrc: i32, ysrc: i32, width: i32, height: i32, hbmmask: P2, xmask: i32, ymask: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdcdest.into_param().abi(), core::mem::transmute(lppoint.as_ptr()), hdcsrc.into_param().abi(), xsrc, ysrc, width, height, hbmmask.into_param().abi(), xmask, ymask) + PlgBlt(hdcdest.param().abi(), core::mem::transmute(lppoint.as_ptr()), hdcsrc.param().abi(), xsrc, ysrc, width, height, hbmmask.param().abi(), xmask, ymask) } #[inline] pub unsafe fn PolyBezier(hdc: P0, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PolyBezier(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); - PolyBezier(hdc.into_param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + PolyBezier(hdc.param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyBezierTo(hdc: P0, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PolyBezierTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); - PolyBezierTo(hdc.into_param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + PolyBezierTo(hdc.param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyDraw(hdc: P0, apt: *const super::super::Foundation::POINT, aj: *const u8, cpt: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), apt, aj, cpt) + PolyDraw(hdc.param().abi(), apt, aj, cpt) } #[inline] pub unsafe fn PolyPolygon(hdc: P0, apt: *const super::super::Foundation::POINT, asz: &[i32]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) + PolyPolygon(hdc.param().abi(), apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyPolyline(hdc: P0, apt: *const super::super::Foundation::POINT, asz: &[u32]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) + PolyPolyline(hdc.param().abi(), apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyTextOutA(hdc: P0, ppt: &[POLYTEXTA]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PolyTextOutA(hdc : HDC, ppt : *const POLYTEXTA, nstrings : i32) -> super::super::Foundation:: BOOL); - PolyTextOutA(hdc.into_param().abi(), core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) + PolyTextOutA(hdc.param().abi(), core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolyTextOutW(hdc: P0, ppt: &[POLYTEXTW]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PolyTextOutW(hdc : HDC, ppt : *const POLYTEXTW, nstrings : i32) -> super::super::Foundation:: BOOL); - PolyTextOutW(hdc.into_param().abi(), core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) + PolyTextOutW(hdc.param().abi(), core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) } #[inline] pub unsafe fn Polygon(hdc: P0, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn Polygon(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> super::super::Foundation:: BOOL); - Polygon(hdc.into_param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + Polygon(hdc.param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn Polyline(hdc: P0, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn Polyline(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> super::super::Foundation:: BOOL); - Polyline(hdc.into_param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + Polyline(hdc.param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } #[inline] pub unsafe fn PolylineTo(hdc: P0, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PolylineTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); - PolylineTo(hdc.into_param().abi(), core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) + PolylineTo(hdc.param().abi(), 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 { @@ -2337,324 +2337,324 @@ pub unsafe fn PtInRect(lprc: *const super::super::Foundation::RECT, pt: super::s #[inline] pub unsafe fn PtInRegion(hrgn: P0, x: i32, y: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PtInRegion(hrgn : HRGN, x : i32, y : i32) -> super::super::Foundation:: BOOL); - PtInRegion(hrgn.into_param().abi(), x, y) + PtInRegion(hrgn.param().abi(), x, y) } #[inline] pub unsafe fn PtVisible(hdc: P0, x: i32, y: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn PtVisible(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: BOOL); - PtVisible(hdc.into_param().abi(), x, y) + PtVisible(hdc.param().abi(), x, y) } #[inline] pub unsafe fn RealizePalette(hdc: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RealizePalette(hdc : HDC) -> u32); - RealizePalette(hdc.into_param().abi()) + RealizePalette(hdc.param().abi()) } #[inline] pub unsafe fn RectInRegion(hrgn: P0, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RectInRegion(hrgn : HRGN, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - RectInRegion(hrgn.into_param().abi(), lprect) + RectInRegion(hrgn.param().abi(), lprect) } #[inline] pub unsafe fn RectVisible(hdc: P0, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RectVisible(hdc : HDC, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - RectVisible(hdc.into_param().abi(), lprect) + RectVisible(hdc.param().abi(), lprect) } #[inline] pub unsafe fn Rectangle(hdc: P0, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn Rectangle(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); - Rectangle(hdc.into_param().abi(), left, top, right, bottom) + Rectangle(hdc.param().abi(), left, top, right, bottom) } #[inline] pub unsafe fn RedrawWindow(hwnd: P0, lprcupdate: Option<*const super::super::Foundation::RECT>, hrgnupdate: P1, flags: REDRAW_WINDOW_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(lprcupdate.unwrap_or(std::ptr::null())), hrgnupdate.into_param().abi(), flags) + RedrawWindow(hwnd.param().abi(), core::mem::transmute(lprcupdate.unwrap_or(std::ptr::null())), hrgnupdate.param().abi(), flags) } #[inline] pub unsafe fn ReleaseDC(hwnd: P0, hdc: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ReleaseDC(hwnd : super::super::Foundation:: HWND, hdc : HDC) -> i32); - ReleaseDC(hwnd.into_param().abi(), hdc.into_param().abi()) + ReleaseDC(hwnd.param().abi(), hdc.param().abi()) } #[inline] pub unsafe fn RemoveFontMemResourceEx(h: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RemoveFontMemResourceEx(h : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RemoveFontMemResourceEx(h.into_param().abi()) + RemoveFontMemResourceEx(h.param().abi()) } #[inline] pub unsafe fn RemoveFontResourceA(lpfilename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceA(lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - RemoveFontResourceA(lpfilename.into_param().abi()) + RemoveFontResourceA(lpfilename.param().abi()) } #[inline] pub unsafe fn RemoveFontResourceExA(name: P0, fl: u32, pdv: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), fl, core::mem::transmute(pdv.unwrap_or(std::ptr::null()))) + RemoveFontResourceExA(name.param().abi(), fl, core::mem::transmute(pdv.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RemoveFontResourceExW(name: P0, fl: u32, pdv: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), fl, core::mem::transmute(pdv.unwrap_or(std::ptr::null()))) + RemoveFontResourceExW(name.param().abi(), fl, core::mem::transmute(pdv.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RemoveFontResourceW(lpfilename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - RemoveFontResourceW(lpfilename.into_param().abi()) + RemoveFontResourceW(lpfilename.param().abi()) } #[inline] pub unsafe fn ResetDCA(hdc: P0, lpdm: *const DEVMODEA) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ResetDCA(hdc : HDC, lpdm : *const DEVMODEA) -> HDC); - ResetDCA(hdc.into_param().abi(), lpdm) + ResetDCA(hdc.param().abi(), lpdm) } #[inline] pub unsafe fn ResetDCW(hdc: P0, lpdm: *const DEVMODEW) -> HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ResetDCW(hdc : HDC, lpdm : *const DEVMODEW) -> HDC); - ResetDCW(hdc.into_param().abi(), lpdm) + ResetDCW(hdc.param().abi(), lpdm) } #[inline] pub unsafe fn ResizePalette(hpal: P0, n: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ResizePalette(hpal : HPALETTE, n : u32) -> super::super::Foundation:: BOOL); - ResizePalette(hpal.into_param().abi(), n) + ResizePalette(hpal.param().abi(), n) } #[inline] pub unsafe fn RestoreDC(hdc: P0, nsaveddc: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn RestoreDC(hdc : HDC, nsaveddc : i32) -> super::super::Foundation:: BOOL); - RestoreDC(hdc.into_param().abi(), nsaveddc) + RestoreDC(hdc.param().abi(), nsaveddc) } #[inline] pub unsafe fn RoundRect(hdc: P0, left: i32, top: i32, right: i32, bottom: i32, width: i32, height: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), left, top, right, bottom, width, height) + RoundRect(hdc.param().abi(), left, top, right, bottom, width, height) } #[inline] pub unsafe fn SaveDC(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SaveDC(hdc : HDC) -> i32); - SaveDC(hdc.into_param().abi()) + SaveDC(hdc.param().abi()) } #[inline] pub unsafe fn ScaleViewportExtEx(hdc: P0, xn: i32, dx: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), xn, dx, yn, yd, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) + ScaleViewportExtEx(hdc.param().abi(), xn, dx, yn, yd, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ScaleWindowExtEx(hdc: P0, xn: i32, xd: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), xn, xd, yn, yd, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) + ScaleWindowExtEx(hdc.param().abi(), xn, xd, yn, yd, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ScreenToClient(hwnd: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ScreenToClient(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - ScreenToClient(hwnd.into_param().abi(), lppoint) + ScreenToClient(hwnd.param().abi(), lppoint) } #[inline] pub unsafe fn SelectClipPath(hdc: P0, mode: RGN_COMBINE_MODE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SelectClipPath(hdc : HDC, mode : RGN_COMBINE_MODE) -> super::super::Foundation:: BOOL); - SelectClipPath(hdc.into_param().abi(), mode) + SelectClipPath(hdc.param().abi(), mode) } #[inline] pub unsafe fn SelectClipRgn(hdc: P0, hrgn: P1) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SelectClipRgn(hdc : HDC, hrgn : HRGN) -> GDI_REGION_TYPE); - SelectClipRgn(hdc.into_param().abi(), hrgn.into_param().abi()) + SelectClipRgn(hdc.param().abi(), hrgn.param().abi()) } #[inline] pub unsafe fn SelectObject(hdc: P0, h: P1) -> HGDIOBJ where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SelectObject(hdc : HDC, h : HGDIOBJ) -> HGDIOBJ); - SelectObject(hdc.into_param().abi(), h.into_param().abi()) + SelectObject(hdc.param().abi(), h.param().abi()) } #[inline] pub unsafe fn SelectPalette(hdc: P0, hpal: P1, bforcebkgd: P2) -> HPALETTE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SelectPalette(hdc : HDC, hpal : HPALETTE, bforcebkgd : super::super::Foundation:: BOOL) -> HPALETTE); - SelectPalette(hdc.into_param().abi(), hpal.into_param().abi(), bforcebkgd.into_param().abi()) + SelectPalette(hdc.param().abi(), hpal.param().abi(), bforcebkgd.param().abi()) } #[inline] pub unsafe fn SetArcDirection(hdc: P0, dir: ARC_DIRECTION) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetArcDirection(hdc : HDC, dir : ARC_DIRECTION) -> i32); - SetArcDirection(hdc.into_param().abi(), dir) + SetArcDirection(hdc.param().abi(), dir) } #[inline] pub unsafe fn SetBitmapBits(hbm: P0, cb: u32, pvbits: *const core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetBitmapBits(hbm : HBITMAP, cb : u32, pvbits : *const core::ffi::c_void) -> i32); - SetBitmapBits(hbm.into_param().abi(), cb, pvbits) + SetBitmapBits(hbm.param().abi(), cb, pvbits) } #[inline] pub unsafe fn SetBitmapDimensionEx(hbm: P0, w: i32, h: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hbm.into_param().abi(), w, h, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) + SetBitmapDimensionEx(hbm.param().abi(), w, h, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetBkColor(hdc: P0, color: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetBkColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetBkColor(hdc.into_param().abi(), color.into_param().abi()) + SetBkColor(hdc.param().abi(), color.param().abi()) } #[inline] pub unsafe fn SetBkMode(hdc: P0, mode: BACKGROUND_MODE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetBkMode(hdc : HDC, mode : i32) -> i32); - SetBkMode(hdc.into_param().abi(), mode.0 as _) + SetBkMode(hdc.param().abi(), mode.0 as _) } #[inline] pub unsafe fn SetBoundsRect(hdc: P0, lprect: Option<*const super::super::Foundation::RECT>, flags: SET_BOUNDS_RECT_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetBoundsRect(hdc : HDC, lprect : *const super::super::Foundation:: RECT, flags : SET_BOUNDS_RECT_FLAGS) -> u32); - SetBoundsRect(hdc.into_param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null())), flags) + SetBoundsRect(hdc.param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null())), flags) } #[inline] pub unsafe fn SetBrushOrgEx(hdc: P0, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) + SetBrushOrgEx(hdc.param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetColorAdjustment(hdc: P0, lpca: *const COLORADJUSTMENT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetColorAdjustment(hdc : HDC, lpca : *const COLORADJUSTMENT) -> super::super::Foundation:: BOOL); - SetColorAdjustment(hdc.into_param().abi(), lpca) + SetColorAdjustment(hdc.param().abi(), lpca) } #[inline] pub unsafe fn SetDCBrushColor(hdc: P0, color: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetDCBrushColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetDCBrushColor(hdc.into_param().abi(), color.into_param().abi()) + SetDCBrushColor(hdc.param().abi(), color.param().abi()) } #[inline] pub unsafe fn SetDCPenColor(hdc: P0, color: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetDCPenColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetDCPenColor(hdc.into_param().abi(), color.into_param().abi()) + SetDCPenColor(hdc.param().abi(), color.param().abi()) } #[inline] pub unsafe fn SetDIBColorTable(hdc: P0, istart: u32, prgbq: &[RGBQUAD]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetDIBColorTable(hdc : HDC, istart : u32, centries : u32, prgbq : *const RGBQUAD) -> u32); - SetDIBColorTable(hdc.into_param().abi(), istart, prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) + SetDIBColorTable(hdc.param().abi(), istart, prgbq.len().try_into().unwrap(), core::mem::transmute(prgbq.as_ptr())) } #[inline] pub unsafe fn SetDIBits(hdc: P0, hbm: P1, start: u32, clines: u32, lpbits: *const core::ffi::c_void, lpbmi: *const BITMAPINFO, coloruse: DIB_USAGE) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), hbm.into_param().abi(), start, clines, lpbits, lpbmi, coloruse) + SetDIBits(hdc.param().abi(), hbm.param().abi(), start, clines, lpbits, lpbmi, coloruse) } #[inline] pub unsafe fn SetDIBitsToDevice(hdc: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), xdest, ydest, w, h, xsrc, ysrc, startscan, clines, lpvbits, lpbmi, coloruse) + SetDIBitsToDevice(hdc.param().abi(), xdest, ydest, w, h, xsrc, ysrc, startscan, clines, lpvbits, lpbmi, coloruse) } #[inline] pub unsafe fn SetEnhMetaFileBits(pb: &[u8]) -> HENHMETAFILE { @@ -2664,34 +2664,34 @@ pub unsafe fn SetEnhMetaFileBits(pb: &[u8]) -> HENHMETAFILE { #[inline] pub unsafe fn SetGraphicsMode(hdc: P0, imode: GRAPHICS_MODE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetGraphicsMode(hdc : HDC, imode : GRAPHICS_MODE) -> i32); - SetGraphicsMode(hdc.into_param().abi(), imode) + SetGraphicsMode(hdc.param().abi(), imode) } #[inline] pub unsafe fn SetLayout(hdc: P0, l: DC_LAYOUT) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetLayout(hdc : HDC, l : DC_LAYOUT) -> u32); - SetLayout(hdc.into_param().abi(), l) + SetLayout(hdc.param().abi(), l) } #[inline] pub unsafe fn SetMapMode(hdc: P0, imode: HDC_MAP_MODE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetMapMode(hdc : HDC, imode : HDC_MAP_MODE) -> i32); - SetMapMode(hdc.into_param().abi(), imode) + SetMapMode(hdc.param().abi(), imode) } #[inline] pub unsafe fn SetMapperFlags(hdc: P0, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetMapperFlags(hdc : HDC, flags : u32) -> u32); - SetMapperFlags(hdc.into_param().abi(), flags) + SetMapperFlags(hdc.param().abi(), flags) } #[inline] pub unsafe fn SetMetaFileBitsEx(lpdata: &[u8]) -> HMETAFILE { @@ -2701,60 +2701,60 @@ pub unsafe fn SetMetaFileBitsEx(lpdata: &[u8]) -> HMETAFILE { #[inline] pub unsafe fn SetMetaRgn(hdc: P0) -> GDI_REGION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetMetaRgn(hdc : HDC) -> GDI_REGION_TYPE); - SetMetaRgn(hdc.into_param().abi()) + SetMetaRgn(hdc.param().abi()) } #[inline] pub unsafe fn SetMiterLimit(hdc: P0, limit: f32, old: Option<*mut f32>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetMiterLimit(hdc : HDC, limit : f32, old : *mut f32) -> super::super::Foundation:: BOOL); - SetMiterLimit(hdc.into_param().abi(), limit, core::mem::transmute(old.unwrap_or(std::ptr::null_mut()))) + SetMiterLimit(hdc.param().abi(), limit, core::mem::transmute(old.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetPaletteEntries(hpal: P0, istart: u32, ppalentries: &[PALETTEENTRY]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetPaletteEntries(hpal : HPALETTE, istart : u32, centries : u32, ppalentries : *const PALETTEENTRY) -> u32); - SetPaletteEntries(hpal.into_param().abi(), istart, ppalentries.len().try_into().unwrap(), core::mem::transmute(ppalentries.as_ptr())) + SetPaletteEntries(hpal.param().abi(), istart, ppalentries.len().try_into().unwrap(), core::mem::transmute(ppalentries.as_ptr())) } #[inline] pub unsafe fn SetPixel(hdc: P0, x: i32, y: i32, color: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetPixel(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetPixel(hdc.into_param().abi(), x, y, color.into_param().abi()) + SetPixel(hdc.param().abi(), x, y, color.param().abi()) } #[inline] pub unsafe fn SetPixelV(hdc: P0, x: i32, y: i32, color: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetPixelV(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); - SetPixelV(hdc.into_param().abi(), x, y, color.into_param().abi()) + SetPixelV(hdc.param().abi(), x, y, color.param().abi()) } #[inline] pub unsafe fn SetPolyFillMode(hdc: P0, mode: CREATE_POLYGON_RGN_MODE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetPolyFillMode(hdc : HDC, mode : CREATE_POLYGON_RGN_MODE) -> i32); - SetPolyFillMode(hdc.into_param().abi(), mode) + SetPolyFillMode(hdc.param().abi(), mode) } #[inline] pub unsafe fn SetROP2(hdc: P0, rop2: R2_MODE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetROP2(hdc : HDC, rop2 : R2_MODE) -> i32); - SetROP2(hdc.into_param().abi(), rop2) + SetROP2(hdc.param().abi(), rop2) } #[inline] pub unsafe fn SetRect(lprc: *mut super::super::Foundation::RECT, xleft: i32, ytop: i32, xright: i32, ybottom: i32) -> super::super::Foundation::BOOL { @@ -2769,18 +2769,18 @@ pub unsafe fn SetRectEmpty(lprc: *mut super::super::Foundation::RECT) -> super:: #[inline] pub unsafe fn SetRectRgn(hrgn: P0, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetRectRgn(hrgn : HRGN, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); - SetRectRgn(hrgn.into_param().abi(), left, top, right, bottom) + SetRectRgn(hrgn.param().abi(), left, top, right, bottom) } #[inline] pub unsafe fn SetStretchBltMode(hdc: P0, mode: STRETCH_BLT_MODE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetStretchBltMode(hdc : HDC, mode : STRETCH_BLT_MODE) -> i32); - SetStretchBltMode(hdc.into_param().abi(), mode) + SetStretchBltMode(hdc.param().abi(), mode) } #[inline] pub unsafe fn SetSysColors(celements: i32, lpaelements: *const i32, lpargbvalues: *const super::super::Foundation::COLORREF) -> windows_core::Result<()> { @@ -2790,126 +2790,126 @@ pub unsafe fn SetSysColors(celements: i32, lpaelements: *const i32, lpargbvalues #[inline] pub unsafe fn SetSystemPaletteUse(hdc: P0, r#use: SYSTEM_PALETTE_USE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetSystemPaletteUse(hdc : HDC, r#use : SYSTEM_PALETTE_USE) -> u32); - SetSystemPaletteUse(hdc.into_param().abi(), r#use) + SetSystemPaletteUse(hdc.param().abi(), r#use) } #[inline] pub unsafe fn SetTextAlign(hdc: P0, align: TEXT_ALIGN_OPTIONS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetTextAlign(hdc : HDC, align : TEXT_ALIGN_OPTIONS) -> u32); - SetTextAlign(hdc.into_param().abi(), align) + SetTextAlign(hdc.param().abi(), align) } #[inline] pub unsafe fn SetTextCharacterExtra(hdc: P0, extra: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetTextCharacterExtra(hdc : HDC, extra : i32) -> i32); - SetTextCharacterExtra(hdc.into_param().abi(), extra) + SetTextCharacterExtra(hdc.param().abi(), extra) } #[inline] pub unsafe fn SetTextColor(hdc: P0, color: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetTextColor(hdc : HDC, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - SetTextColor(hdc.into_param().abi(), color.into_param().abi()) + SetTextColor(hdc.param().abi(), color.param().abi()) } #[inline] pub unsafe fn SetTextJustification(hdc: P0, extra: i32, count: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetTextJustification(hdc : HDC, extra : i32, count : i32) -> super::super::Foundation:: BOOL); - SetTextJustification(hdc.into_param().abi(), extra, count) + SetTextJustification(hdc.param().abi(), extra, count) } #[inline] pub unsafe fn SetViewportExtEx(hdc: P0, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) + SetViewportExtEx(hdc.param().abi(), x, y, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetViewportOrgEx(hdc: P0, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) + SetViewportOrgEx(hdc.param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetWindowExtEx(hdc: P0, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) + SetWindowExtEx(hdc.param().abi(), x, y, core::mem::transmute(lpsz.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetWindowOrgEx(hdc: P0, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) + SetWindowOrgEx(hdc.param().abi(), x, y, core::mem::transmute(lppt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetWindowRgn(hwnd: P0, hrgn: P1, bredraw: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, bredraw : super::super::Foundation:: BOOL) -> i32); - SetWindowRgn(hwnd.into_param().abi(), hrgn.into_param().abi(), bredraw.into_param().abi()) + SetWindowRgn(hwnd.param().abi(), hrgn.param().abi(), bredraw.param().abi()) } #[inline] pub unsafe fn SetWorldTransform(hdc: P0, lpxf: *const XFORM) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetWorldTransform(hdc : HDC, lpxf : *const XFORM) -> super::super::Foundation:: BOOL); - SetWorldTransform(hdc.into_param().abi(), lpxf) + SetWorldTransform(hdc.param().abi(), lpxf) } #[inline] pub unsafe fn StretchBlt(hdcdest: P0, xdest: i32, ydest: i32, wdest: i32, hdest: i32, hdcsrc: P1, xsrc: i32, ysrc: i32, wsrc: i32, hsrc: i32, rop: ROP_CODE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdcdest.into_param().abi(), xdest, ydest, wdest, hdest, hdcsrc.into_param().abi(), xsrc, ysrc, wsrc, hsrc, rop) + StretchBlt(hdcdest.param().abi(), xdest, ydest, wdest, hdest, hdcsrc.param().abi(), xsrc, ysrc, wsrc, hsrc, rop) } #[inline] pub unsafe fn StretchDIBits(hdc: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), xdest, ydest, destwidth, destheight, xsrc, ysrc, srcwidth, srcheight, core::mem::transmute(lpbits.unwrap_or(std::ptr::null())), lpbmi, iusage, rop) + StretchDIBits(hdc.param().abi(), xdest, ydest, destwidth, destheight, xsrc, ysrc, srcwidth, srcheight, core::mem::transmute(lpbits.unwrap_or(std::ptr::null())), lpbmi, iusage, rop) } #[inline] pub unsafe fn StrokeAndFillPath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn StrokeAndFillPath(hdc : HDC) -> super::super::Foundation:: BOOL); - StrokeAndFillPath(hdc.into_param().abi()) + StrokeAndFillPath(hdc.param().abi()) } #[inline] pub unsafe fn StrokePath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn StrokePath(hdc : HDC) -> super::super::Foundation:: BOOL); - StrokePath(hdc.into_param().abi()) + StrokePath(hdc.param().abi()) } #[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 { @@ -2919,52 +2919,52 @@ pub unsafe fn SubtractRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc #[inline] pub unsafe fn TTCharToUnicode(hdc: P0, puccharcodes: &[u8], pusshortcodes: &mut [u16], ulflags: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTCharToUnicode(hdc : HDC, puccharcodes : *const u8, ulcharcodesize : u32, pusshortcodes : *mut u16, ulshortcodesize : u32, ulflags : u32) -> i32); - TTCharToUnicode(hdc.into_param().abi(), core::mem::transmute(puccharcodes.as_ptr()), puccharcodes.len().try_into().unwrap(), core::mem::transmute(pusshortcodes.as_ptr()), pusshortcodes.len().try_into().unwrap(), ulflags) + TTCharToUnicode(hdc.param().abi(), 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: P0, ulflags: u32, pulstatus: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTDeleteEmbeddedFont(hfontreference : super::super::Foundation:: HANDLE, ulflags : u32, pulstatus : *mut u32) -> i32); - TTDeleteEmbeddedFont(hfontreference.into_param().abi(), ulflags, pulstatus) + TTDeleteEmbeddedFont(hfontreference.param().abi(), ulflags, pulstatus) } #[inline] pub unsafe fn TTEmbedFont(hdc: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), ulflags, ulcharset, pulprivstatus, pulstatus, lpfnwritetostream, lpvwritestream, core::mem::transmute(puscharcodeset.as_ptr()), puscharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(std::ptr::null()))) + TTEmbedFont(hdc.param().abi(), ulflags, ulcharset, pulprivstatus, pulstatus, lpfnwritetostream, lpvwritestream, core::mem::transmute(puscharcodeset.as_ptr()), puscharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TTEmbedFontEx(hdc: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), ulflags, ulcharset, pulprivstatus, pulstatus, lpfnwritetostream, lpvwritestream, core::mem::transmute(pulcharcodeset.as_ptr()), pulcharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(std::ptr::null()))) + TTEmbedFontEx(hdc.param().abi(), ulflags, ulcharset, pulprivstatus, pulstatus, lpfnwritetostream, lpvwritestream, core::mem::transmute(pulcharcodeset.as_ptr()), pulcharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TTEmbedFontFromFileA(hdc: P0, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdc.into_param().abi(), szfontfilename.into_param().abi(), usttcindex, ulflags, ulcharset, pulprivstatus, pulstatus, lpfnwritetostream, lpvwritestream, core::mem::transmute(puscharcodeset.as_ptr()), puscharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(std::ptr::null()))) + TTEmbedFontFromFileA(hdc.param().abi(), szfontfilename.param().abi(), usttcindex, ulflags, ulcharset, pulprivstatus, pulstatus, lpfnwritetostream, lpvwritestream, core::mem::transmute(puscharcodeset.as_ptr()), puscharcodeset.len().try_into().unwrap(), uslanguage, core::mem::transmute(pttembedinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TTEnableEmbeddingForFacename(lpszfacename: P0, benable: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTEnableEmbeddingForFacename(lpszfacename : windows_core::PCSTR, benable : super::super::Foundation:: BOOL) -> i32); - TTEnableEmbeddingForFacename(lpszfacename.into_param().abi(), benable.into_param().abi()) + TTEnableEmbeddingForFacename(lpszfacename.param().abi(), benable.param().abi()) } #[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 { @@ -2974,10 +2974,10 @@ pub unsafe fn TTGetEmbeddedFontInfo(ulflags: TTEMBED_FLAGS, pulprivstatus: *mut #[inline] pub unsafe fn TTGetEmbeddingType(hdc: P0, pulembedtype: *mut EMBEDDED_FONT_PRIV_STATUS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTGetEmbeddingType(hdc : HDC, pulembedtype : *mut EMBEDDED_FONT_PRIV_STATUS) -> i32); - TTGetEmbeddingType(hdc.into_param().abi(), pulembedtype) + TTGetEmbeddingType(hdc.param().abi(), pulembedtype) } #[inline] pub unsafe fn TTGetNewFontName(phfontreference: *const super::super::Foundation::HANDLE, wzwinfamilyname: &mut [u16], szmacfamilyname: &mut [u8]) -> i32 { @@ -2987,84 +2987,84 @@ pub unsafe fn TTGetNewFontName(phfontreference: *const super::super::Foundation: #[inline] pub unsafe fn TTIsEmbeddingEnabled(hdc: P0, pbenabled: *mut super::super::Foundation::BOOL) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTIsEmbeddingEnabled(hdc : HDC, pbenabled : *mut super::super::Foundation:: BOOL) -> i32); - TTIsEmbeddingEnabled(hdc.into_param().abi(), pbenabled) + TTIsEmbeddingEnabled(hdc.param().abi(), pbenabled) } #[inline] pub unsafe fn TTIsEmbeddingEnabledForFacename(lpszfacename: P0, pbenabled: *mut super::super::Foundation::BOOL) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTIsEmbeddingEnabledForFacename(lpszfacename : windows_core::PCSTR, pbenabled : *mut super::super::Foundation:: BOOL) -> i32); - TTIsEmbeddingEnabledForFacename(lpszfacename.into_param().abi(), pbenabled) + TTIsEmbeddingEnabledForFacename(lpszfacename.param().abi(), pbenabled) } #[inline] pub unsafe 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: P0, szmacfamilyname: P1, pttloadinfo: Option<*const TTLOADINFO>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(phfontreference, ulflags, pulprivstatus, ulprivs, pulstatus, lpfnreadfromstream, lpvreadstream, szwinfamilyname.into_param().abi(), szmacfamilyname.into_param().abi(), core::mem::transmute(pttloadinfo.unwrap_or(std::ptr::null()))) + TTLoadEmbeddedFont(phfontreference, ulflags, pulprivstatus, ulprivs, pulstatus, lpfnreadfromstream, lpvreadstream, szwinfamilyname.param().abi(), szmacfamilyname.param().abi(), core::mem::transmute(pttloadinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TTRunValidationTests(hdc: P0, ptestparam: *const TTVALIDATIONTESTSPARAMS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTRunValidationTests(hdc : HDC, ptestparam : *const TTVALIDATIONTESTSPARAMS) -> i32); - TTRunValidationTests(hdc.into_param().abi(), ptestparam) + TTRunValidationTests(hdc.param().abi(), ptestparam) } #[inline] pub unsafe fn TTRunValidationTestsEx(hdc: P0, ptestparam: *const TTVALIDATIONTESTSPARAMSEX) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("t2embed.dll" "system" fn TTRunValidationTestsEx(hdc : HDC, ptestparam : *const TTVALIDATIONTESTSPARAMSEX) -> i32); - TTRunValidationTestsEx(hdc.into_param().abi(), ptestparam) + TTRunValidationTestsEx(hdc.param().abi(), ptestparam) } #[inline] pub unsafe fn TabbedTextOutA(hdc: P0, x: i32, y: i32, lpstring: &[u8], lpntabstoppositions: Option<&[i32]>, ntaborigin: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), 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) + TabbedTextOutA(hdc.param().abi(), 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: P0, x: i32, y: i32, lpstring: &[u16], lpntabstoppositions: Option<&[i32]>, ntaborigin: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), 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) + TabbedTextOutW(hdc.param().abi(), 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: P0, x: i32, y: i32, lpstring: &[u8]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + TextOutA(hdc.param().abi(), x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn TextOutW(hdc: P0, x: i32, y: i32, lpstring: &[u16]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + TextOutW(hdc.param().abi(), x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn TransparentBlt(hdcdest: P0, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: P1, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdcdest.into_param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.into_param().abi(), xoriginsrc, yoriginsrc, wsrc, hsrc, crtransparent) + TransparentBlt(hdcdest.param().abi(), xorigindest, yorigindest, wdest, hdest, hdcsrc.param().abi(), 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 { @@ -3074,59 +3074,59 @@ pub unsafe fn UnionRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: #[inline] pub unsafe fn UnrealizeObject(h: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn UnrealizeObject(h : HGDIOBJ) -> super::super::Foundation:: BOOL); - UnrealizeObject(h.into_param().abi()) + UnrealizeObject(h.param().abi()) } #[inline] pub unsafe fn UpdateColors(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn UpdateColors(hdc : HDC) -> super::super::Foundation:: BOOL); - UpdateColors(hdc.into_param().abi()) + UpdateColors(hdc.param().abi()) } #[inline] pub unsafe fn UpdateWindow(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UpdateWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - UpdateWindow(hwnd.into_param().abi()) + UpdateWindow(hwnd.param().abi()) } #[inline] pub unsafe fn ValidateRect(hwnd: P0, lprect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ValidateRect(hwnd : super::super::Foundation:: HWND, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - ValidateRect(hwnd.into_param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null()))) + ValidateRect(hwnd.param().abi(), core::mem::transmute(lprect.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ValidateRgn(hwnd: P0, hrgn: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ValidateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN) -> super::super::Foundation:: BOOL); - ValidateRgn(hwnd.into_param().abi(), hrgn.into_param().abi()) + ValidateRgn(hwnd.param().abi(), hrgn.param().abi()) } #[inline] pub unsafe fn WidenPath(hdc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn WidenPath(hdc : HDC) -> super::super::Foundation:: BOOL); - WidenPath(hdc.into_param().abi()) + WidenPath(hdc.param().abi()) } #[inline] pub unsafe fn WindowFromDC(hdc: P0) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn WindowFromDC(hdc : HDC) -> super::super::Foundation:: HWND); - WindowFromDC(hdc.into_param().abi()) + WindowFromDC(hdc.param().abi()) } #[inline] pub unsafe fn wglSwapMultipleBuffers(param0: u32, param1: *const WGLSWAP) -> u32 { 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 4079330df9..4e15790916 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs @@ -111,10 +111,10 @@ pub unsafe fn GdipAddPathLineI(path: *mut GpPath, x1: i32, y1: i32, x2: i32, y2: #[inline] pub unsafe fn GdipAddPathPath(path: *mut GpPath, addingpath: *const GpPath, connect: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPath(path : *mut GpPath, addingpath : *const GpPath, connect : super::super::Foundation:: BOOL) -> Status); - GdipAddPathPath(path, addingpath, connect.into_param().abi()) + GdipAddPathPath(path, addingpath, connect.param().abi()) } #[inline] pub unsafe fn GdipAddPathPie(path: *mut GpPath, x: f32, y: f32, width: f32, height: f32, startangle: f32, sweepangle: f32) -> Status { @@ -159,18 +159,18 @@ pub unsafe fn GdipAddPathRectanglesI(path: *mut GpPath, rects: *const Rect, coun #[inline] pub unsafe fn GdipAddPathString(path: *mut GpPath, string: P0, length: i32, family: *const GpFontFamily, style: i32, emsize: f32, layoutrect: *const RectF, format: *const GpStringFormat) -> Status where - P0: windows_core::IntoParam, + P0: 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(path, string.into_param().abi(), length, family, style, emsize, layoutrect, format) + GdipAddPathString(path, string.param().abi(), length, family, style, emsize, layoutrect, format) } #[inline] pub unsafe fn GdipAddPathStringI(path: *mut GpPath, string: P0, length: i32, family: *const GpFontFamily, style: i32, emsize: f32, layoutrect: *const Rect, format: *const GpStringFormat) -> Status where - P0: windows_core::IntoParam, + P0: 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(path, string.into_param().abi(), length, family, style, emsize, layoutrect, format) + GdipAddPathStringI(path, string.param().abi(), length, family, style, emsize, layoutrect, format) } #[inline] pub unsafe fn GdipAlloc(size: usize) -> *mut core::ffi::c_void { @@ -195,10 +195,10 @@ pub unsafe fn GdipBeginContainerI(graphics: *mut GpGraphics, dstrect: *const Rec #[inline] pub unsafe fn GdipBitmapApplyEffect(bitmap: *mut GpBitmap, effect: *mut CGpEffect, roi: *mut super::super::Foundation::RECT, useauxdata: P0, auxdata: *mut *mut core::ffi::c_void, auxdatasize: *mut i32) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapApplyEffect(bitmap : *mut GpBitmap, effect : *mut CGpEffect, roi : *mut super::super::Foundation:: RECT, useauxdata : super::super::Foundation:: BOOL, auxdata : *mut *mut core::ffi::c_void, auxdatasize : *mut i32) -> Status); - GdipBitmapApplyEffect(bitmap, effect, roi, useauxdata.into_param().abi(), auxdata, auxdatasize) + GdipBitmapApplyEffect(bitmap, effect, roi, useauxdata.param().abi(), auxdata, auxdatasize) } #[inline] pub unsafe fn GdipBitmapConvertFormat(pinputbitmap: *mut GpBitmap, format: i32, dithertype: DitherType, palettetype: PaletteType, palette: *mut ColorPalette, alphathresholdpercent: f32) -> Status { @@ -208,10 +208,10 @@ pub unsafe fn GdipBitmapConvertFormat(pinputbitmap: *mut GpBitmap, format: i32, #[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: P0, auxdata: *mut *mut core::ffi::c_void, auxdatasize: *mut i32) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(inputbitmaps, numinputs, effect, roi, outputrect, outputbitmap, useauxdata.into_param().abi(), auxdata, auxdatasize) + GdipBitmapCreateApplyEffect(inputbitmaps, numinputs, effect, roi, outputrect, outputbitmap, useauxdata.param().abi(), auxdata, 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 { @@ -356,62 +356,62 @@ pub unsafe fn GdipComment(graphics: *mut GpGraphics, sizedata: u32, data: *const #[inline] pub unsafe fn GdipConvertToEmfPlus(refgraphics: *const GpGraphics, metafile: *mut GpMetafile, conversionfailureflag: *mut i32, emftype: EmfType, description: P0, out_metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, + P0: 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(refgraphics, metafile, conversionfailureflag, emftype, description.into_param().abi(), out_metafile) + GdipConvertToEmfPlus(refgraphics, metafile, conversionfailureflag, emftype, description.param().abi(), out_metafile) } #[inline] pub unsafe fn GdipConvertToEmfPlusToFile(refgraphics: *const GpGraphics, metafile: *mut GpMetafile, conversionfailureflag: *mut i32, filename: P0, emftype: EmfType, description: P1, out_metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(refgraphics, metafile, conversionfailureflag, filename.into_param().abi(), emftype, description.into_param().abi(), out_metafile) + GdipConvertToEmfPlusToFile(refgraphics, metafile, conversionfailureflag, filename.param().abi(), emftype, description.param().abi(), out_metafile) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn GdipConvertToEmfPlusToStream(refgraphics: *const GpGraphics, metafile: *mut GpMetafile, conversionfailureflag: *mut i32, stream: P0, emftype: EmfType, description: P1, out_metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(refgraphics, metafile, conversionfailureflag, stream.into_param().abi(), emftype, description.into_param().abi(), out_metafile) + GdipConvertToEmfPlusToStream(refgraphics, metafile, conversionfailureflag, stream.param().abi(), emftype, description.param().abi(), out_metafile) } #[inline] pub unsafe fn GdipCreateAdjustableArrowCap(height: f32, width: f32, isfilled: P0, cap: *mut *mut GpAdjustableArrowCap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateAdjustableArrowCap(height : f32, width : f32, isfilled : super::super::Foundation:: BOOL, cap : *mut *mut GpAdjustableArrowCap) -> Status); - GdipCreateAdjustableArrowCap(height, width, isfilled.into_param().abi(), cap) + GdipCreateAdjustableArrowCap(height, width, isfilled.param().abi(), cap) } #[cfg(feature = "Win32_Graphics_DirectDraw")] #[inline] pub unsafe fn GdipCreateBitmapFromDirectDrawSurface(surface: P0, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromDirectDrawSurface(surface : * mut core::ffi::c_void, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromDirectDrawSurface(surface.into_param().abi(), bitmap) + GdipCreateBitmapFromDirectDrawSurface(surface.param().abi(), bitmap) } #[inline] pub unsafe fn GdipCreateBitmapFromFile(filename: P0, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromFile(filename : windows_core::PCWSTR, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromFile(filename.into_param().abi(), bitmap) + GdipCreateBitmapFromFile(filename.param().abi(), bitmap) } #[inline] pub unsafe fn GdipCreateBitmapFromFileICM(filename: P0, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromFileICM(filename : windows_core::PCWSTR, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromFileICM(filename.into_param().abi(), bitmap) + GdipCreateBitmapFromFileICM(filename.param().abi(), bitmap) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -428,29 +428,29 @@ pub unsafe fn GdipCreateBitmapFromGraphics(width: i32, height: i32, target: *mut #[inline] pub unsafe fn GdipCreateBitmapFromHBITMAP(hbm: P0, hpal: P1, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromHBITMAP(hbm : super::Gdi:: HBITMAP, hpal : super::Gdi:: HPALETTE, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromHBITMAP(hbm.into_param().abi(), hpal.into_param().abi(), bitmap) + GdipCreateBitmapFromHBITMAP(hbm.param().abi(), hpal.param().abi(), bitmap) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GdipCreateBitmapFromHICON(hicon: P0, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromHICON(hicon : super::super::UI::WindowsAndMessaging:: HICON, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromHICON(hicon.into_param().abi(), bitmap) + GdipCreateBitmapFromHICON(hicon.param().abi(), bitmap) } #[inline] pub unsafe fn GdipCreateBitmapFromResource(hinstance: P0, lpbitmapname: P1, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstance.into_param().abi(), lpbitmapname.into_param().abi(), bitmap) + GdipCreateBitmapFromResource(hinstance.param().abi(), lpbitmapname.param().abi(), bitmap) } #[inline] pub unsafe fn GdipCreateBitmapFromScan0(width: i32, height: i32, stride: i32, format: i32, scan0: Option<*const u8>, bitmap: *mut *mut GpBitmap) -> Status { @@ -461,19 +461,19 @@ pub unsafe fn GdipCreateBitmapFromScan0(width: i32, height: i32, stride: i32, fo #[inline] pub unsafe fn GdipCreateBitmapFromStream(stream: P0, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromStream(stream : * mut core::ffi::c_void, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromStream(stream.into_param().abi(), bitmap) + GdipCreateBitmapFromStream(stream.param().abi(), bitmap) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn GdipCreateBitmapFromStreamICM(stream: P0, bitmap: *mut *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateBitmapFromStreamICM(stream : * mut core::ffi::c_void, bitmap : *mut *mut GpBitmap) -> Status); - GdipCreateBitmapFromStreamICM(stream.into_param().abi(), bitmap) + GdipCreateBitmapFromStreamICM(stream.param().abi(), bitmap) } #[inline] pub unsafe fn GdipCreateCachedBitmap(bitmap: *mut GpBitmap, graphics: *mut GpGraphics, cachedbitmap: *mut *mut GpCachedBitmap) -> Status { @@ -498,72 +498,72 @@ pub unsafe fn GdipCreateFont(fontfamily: *const GpFontFamily, emsize: f32, style #[inline] pub unsafe fn GdipCreateFontFamilyFromName(name: P0, fontcollection: *mut GpFontCollection, fontfamily: *mut *mut GpFontFamily) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFontFamilyFromName(name : windows_core::PCWSTR, fontcollection : *mut GpFontCollection, fontfamily : *mut *mut GpFontFamily) -> Status); - GdipCreateFontFamilyFromName(name.into_param().abi(), fontcollection, fontfamily) + GdipCreateFontFamilyFromName(name.param().abi(), fontcollection, fontfamily) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFontFromDC(hdc: P0, font: *mut *mut GpFont) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFontFromDC(hdc : super::Gdi:: HDC, font : *mut *mut GpFont) -> Status); - GdipCreateFontFromDC(hdc.into_param().abi(), font) + GdipCreateFontFromDC(hdc.param().abi(), font) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFontFromLogfontA(hdc: P0, logfont: *const super::Gdi::LOGFONTA, font: *mut *mut GpFont) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFontFromLogfontA(hdc : super::Gdi:: HDC, logfont : *const super::Gdi:: LOGFONTA, font : *mut *mut GpFont) -> Status); - GdipCreateFontFromLogfontA(hdc.into_param().abi(), logfont, font) + GdipCreateFontFromLogfontA(hdc.param().abi(), logfont, font) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFontFromLogfontW(hdc: P0, logfont: *const super::Gdi::LOGFONTW, font: *mut *mut GpFont) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFontFromLogfontW(hdc : super::Gdi:: HDC, logfont : *const super::Gdi:: LOGFONTW, font : *mut *mut GpFont) -> Status); - GdipCreateFontFromLogfontW(hdc.into_param().abi(), logfont, font) + GdipCreateFontFromLogfontW(hdc.param().abi(), logfont, font) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFromHDC(hdc: P0, graphics: *mut *mut GpGraphics) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHDC(hdc : super::Gdi:: HDC, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHDC(hdc.into_param().abi(), graphics) + GdipCreateFromHDC(hdc.param().abi(), graphics) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateFromHDC2(hdc: P0, hdevice: P1, graphics: *mut *mut GpGraphics) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHDC2(hdc : super::Gdi:: HDC, hdevice : super::super::Foundation:: HANDLE, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHDC2(hdc.into_param().abi(), hdevice.into_param().abi(), graphics) + GdipCreateFromHDC2(hdc.param().abi(), hdevice.param().abi(), graphics) } #[inline] pub unsafe fn GdipCreateFromHWND(hwnd: P0, graphics: *mut *mut GpGraphics) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHWND(hwnd : super::super::Foundation:: HWND, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHWND(hwnd.into_param().abi(), graphics) + GdipCreateFromHWND(hwnd.param().abi(), graphics) } #[inline] pub unsafe fn GdipCreateFromHWNDICM(hwnd: P0, graphics: *mut *mut GpGraphics) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateFromHWNDICM(hwnd : super::super::Foundation:: HWND, graphics : *mut *mut GpGraphics) -> Status); - GdipCreateFromHWNDICM(hwnd.into_param().abi(), graphics) + GdipCreateFromHWNDICM(hwnd.param().abi(), graphics) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -611,18 +611,18 @@ pub unsafe fn GdipCreateLineBrushFromRectI(rect: *const Rect, color1: u32, color #[inline] pub unsafe fn GdipCreateLineBrushFromRectWithAngle(rect: *const RectF, color1: u32, color2: u32, angle: f32, isanglescalable: P0, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rect, color1, color2, angle, isanglescalable.into_param().abi(), wrapmode, linegradient) + GdipCreateLineBrushFromRectWithAngle(rect, color1, color2, angle, isanglescalable.param().abi(), wrapmode, linegradient) } #[inline] pub unsafe fn GdipCreateLineBrushFromRectWithAngleI(rect: *const Rect, color1: u32, color2: u32, angle: f32, isanglescalable: P0, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rect, color1, color2, angle, isanglescalable.into_param().abi(), wrapmode, linegradient) + GdipCreateLineBrushFromRectWithAngleI(rect, color1, color2, angle, isanglescalable.param().abi(), wrapmode, linegradient) } #[inline] pub unsafe fn GdipCreateLineBrushI(point1: *const Point, point2: *const Point, color1: u32, color2: u32, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { @@ -653,46 +653,46 @@ pub unsafe fn GdipCreateMatrix3I(rect: *const Rect, dstplg: *const Point, matrix #[inline] pub unsafe fn GdipCreateMetafileFromEmf(hemf: P0, deleteemf: P1, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromEmf(hemf : super::Gdi:: HENHMETAFILE, deleteemf : super::super::Foundation:: BOOL, metafile : *mut *mut GpMetafile) -> Status); - GdipCreateMetafileFromEmf(hemf.into_param().abi(), deleteemf.into_param().abi(), metafile) + GdipCreateMetafileFromEmf(hemf.param().abi(), deleteemf.param().abi(), metafile) } #[inline] pub unsafe fn GdipCreateMetafileFromFile(file: P0, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromFile(file : windows_core::PCWSTR, metafile : *mut *mut GpMetafile) -> Status); - GdipCreateMetafileFromFile(file.into_param().abi(), metafile) + GdipCreateMetafileFromFile(file.param().abi(), metafile) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn GdipCreateMetafileFromStream(stream: P0, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromStream(stream : * mut core::ffi::c_void, metafile : *mut *mut GpMetafile) -> Status); - GdipCreateMetafileFromStream(stream.into_param().abi(), metafile) + GdipCreateMetafileFromStream(stream.param().abi(), metafile) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateMetafileFromWmf(hwmf: P0, deletewmf: P1, wmfplaceablefileheader: *const WmfPlaceableFileHeader, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwmf.into_param().abi(), deletewmf.into_param().abi(), wmfplaceablefileheader, metafile) + GdipCreateMetafileFromWmf(hwmf.param().abi(), deletewmf.param().abi(), wmfplaceablefileheader, metafile) } #[inline] pub unsafe fn GdipCreateMetafileFromWmfFile(file: P0, wmfplaceablefileheader: *const WmfPlaceableFileHeader, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, + 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.into_param().abi(), wmfplaceablefileheader, metafile) + GdipCreateMetafileFromWmfFile(file.param().abi(), wmfplaceablefileheader, metafile) } #[inline] pub unsafe fn GdipCreatePath(brushmode: FillMode, path: *mut *mut GpPath) -> Status { @@ -748,10 +748,10 @@ pub unsafe fn GdipCreateRegion(region: *mut *mut GpRegion) -> Status { #[inline] pub unsafe fn GdipCreateRegionHrgn(hrgn: P0, region: *mut *mut GpRegion) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipCreateRegionHrgn(hrgn : super::Gdi:: HRGN, region : *mut *mut GpRegion) -> Status); - GdipCreateRegionHrgn(hrgn.into_param().abi(), region) + GdipCreateRegionHrgn(hrgn.param().abi(), region) } #[inline] pub unsafe fn GdipCreateRegionPath(path: *mut GpPath, region: *mut *mut GpRegion) -> Status { @@ -782,10 +782,10 @@ pub unsafe fn GdipCreateSolidFill(color: u32, brush: *mut *mut GpSolidFill) -> S #[inline] pub unsafe fn GdipCreateStreamOnFile(filename: P0, access: u32, stream: *mut Option) -> Status where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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 { @@ -1130,19 +1130,19 @@ pub unsafe fn GdipDrawRectanglesI(graphics: *mut GpGraphics, pen: *mut GpPen, re #[inline] pub unsafe fn GdipDrawString(graphics: *mut GpGraphics, string: P0, length: i32, font: *const GpFont, layoutrect: *const RectF, stringformat: *const GpStringFormat, brush: *const GpBrush) -> Status where - P0: windows_core::IntoParam, + P0: 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(graphics, string.into_param().abi(), length, font, layoutrect, stringformat, brush) + GdipDrawString(graphics, string.param().abi(), length, font, layoutrect, stringformat, brush) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipEmfToWmfBits(hemf: P0, pdata16: Option<&mut [u8]>, imapmode: i32, eflags: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipEmfToWmfBits(hemf : super::Gdi:: HENHMETAFILE, cbdata16 : u32, pdata16 : *mut u8, imapmode : i32, eflags : i32) -> u32); - GdipEmfToWmfBits(hemf.into_param().abi(), 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) + GdipEmfToWmfBits(hemf.param().abi(), 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 { @@ -1727,19 +1727,19 @@ pub unsafe fn GdipGetMetafileDownLevelRasterizationLimit(metafile: *const GpMeta #[inline] pub unsafe fn GdipGetMetafileHeaderFromEmf(hemf: P0, header: *mut MetafileHeader) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMetafileHeaderFromEmf(hemf : super::Gdi:: HENHMETAFILE, header : *mut MetafileHeader) -> Status); - GdipGetMetafileHeaderFromEmf(hemf.into_param().abi(), header) + GdipGetMetafileHeaderFromEmf(hemf.param().abi(), header) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipGetMetafileHeaderFromFile(filename: P0, header: *mut MetafileHeader) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMetafileHeaderFromFile(filename : windows_core::PCWSTR, header : *mut MetafileHeader) -> Status); - GdipGetMetafileHeaderFromFile(filename.into_param().abi(), header) + GdipGetMetafileHeaderFromFile(filename.param().abi(), header) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1751,19 +1751,19 @@ pub unsafe fn GdipGetMetafileHeaderFromMetafile(metafile: *mut GpMetafile, heade #[inline] pub unsafe fn GdipGetMetafileHeaderFromStream(stream: P0, header: *mut MetafileHeader) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMetafileHeaderFromStream(stream : * mut core::ffi::c_void, header : *mut MetafileHeader) -> Status); - GdipGetMetafileHeaderFromStream(stream.into_param().abi(), header) + GdipGetMetafileHeaderFromStream(stream.param().abi(), header) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipGetMetafileHeaderFromWmf(hwmf: P0, wmfplaceablefileheader: *const WmfPlaceableFileHeader, header: *mut MetafileHeader) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipGetMetafileHeaderFromWmf(hwmf : super::Gdi:: HMETAFILE, wmfplaceablefileheader : *const WmfPlaceableFileHeader, header : *mut MetafileHeader) -> Status); - GdipGetMetafileHeaderFromWmf(hwmf.into_param().abi(), wmfplaceablefileheader, header) + GdipGetMetafileHeaderFromWmf(hwmf.param().abi(), wmfplaceablefileheader, header) } #[inline] pub unsafe fn GdipGetNearestColor(graphics: *mut GpGraphics, argb: *mut u32) -> Status { @@ -2189,10 +2189,10 @@ pub unsafe fn GdipGraphicsClear(graphics: *mut GpGraphics, color: u32) -> Status #[inline] pub unsafe fn GdipGraphicsSetAbort(pgraphics: *mut GpGraphics, piabort: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipGraphicsSetAbort(pgraphics : *mut GpGraphics, piabort : * mut core::ffi::c_void) -> Status); - GdipGraphicsSetAbort(pgraphics, piabort.into_param().abi()) + GdipGraphicsSetAbort(pgraphics, piabort.param().abi()) } #[inline] pub unsafe fn GdipImageForceValidation(image: *mut GpImage) -> Status { @@ -2227,18 +2227,18 @@ pub unsafe fn GdipImageSelectActiveFrame(image: *mut GpImage, dimensionid: *cons #[inline] pub unsafe fn GdipImageSetAbort(pimage: *mut GpImage, piabort: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipImageSetAbort(pimage : *mut GpImage, piabort : * mut core::ffi::c_void) -> Status); - GdipImageSetAbort(pimage, piabort.into_param().abi()) + GdipImageSetAbort(pimage, piabort.param().abi()) } #[inline] pub unsafe fn GdipInitializePalette(palette: *mut ColorPalette, palettetype: PaletteType, optimalcolors: i32, usetransparentcolor: P0, bitmap: *mut GpBitmap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(palette, palettetype, optimalcolors, usetransparentcolor.into_param().abi(), bitmap) + GdipInitializePalette(palette, palettetype, optimalcolors, usetransparentcolor.param().abi(), bitmap) } #[inline] pub unsafe fn GdipInvertMatrix(matrix: *mut Matrix) -> Status { @@ -2353,44 +2353,44 @@ pub unsafe fn GdipIsVisibleRegionRectI(region: *mut GpRegion, x: i32, y: i32, wi #[inline] pub unsafe fn GdipLoadImageFromFile(filename: P0, image: *mut *mut GpImage) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipLoadImageFromFile(filename : windows_core::PCWSTR, image : *mut *mut GpImage) -> Status); - GdipLoadImageFromFile(filename.into_param().abi(), image) + GdipLoadImageFromFile(filename.param().abi(), image) } #[inline] pub unsafe fn GdipLoadImageFromFileICM(filename: P0, image: *mut *mut GpImage) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipLoadImageFromFileICM(filename : windows_core::PCWSTR, image : *mut *mut GpImage) -> Status); - GdipLoadImageFromFileICM(filename.into_param().abi(), image) + GdipLoadImageFromFileICM(filename.param().abi(), image) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn GdipLoadImageFromStream(stream: P0, image: *mut *mut GpImage) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipLoadImageFromStream(stream : * mut core::ffi::c_void, image : *mut *mut GpImage) -> Status); - GdipLoadImageFromStream(stream.into_param().abi(), image) + GdipLoadImageFromStream(stream.param().abi(), image) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn GdipLoadImageFromStreamICM(stream: P0, image: *mut *mut GpImage) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipLoadImageFromStreamICM(stream : * mut core::ffi::c_void, image : *mut *mut GpImage) -> Status); - GdipLoadImageFromStreamICM(stream.into_param().abi(), image) + GdipLoadImageFromStreamICM(stream.param().abi(), image) } #[inline] pub unsafe fn GdipMeasureCharacterRanges(graphics: *mut GpGraphics, string: P0, length: i32, font: *const GpFont, layoutrect: *const RectF, stringformat: *const GpStringFormat, regioncount: i32, regions: *mut *mut GpRegion) -> Status where - P0: windows_core::IntoParam, + P0: 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(graphics, string.into_param().abi(), length, font, layoutrect, stringformat, regioncount, regions) + GdipMeasureCharacterRanges(graphics, string.param().abi(), length, font, layoutrect, stringformat, regioncount, 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 { @@ -2400,10 +2400,10 @@ pub unsafe fn GdipMeasureDriverString(graphics: *mut GpGraphics, text: *const u1 #[inline] pub unsafe fn GdipMeasureString(graphics: *mut GpGraphics, string: P0, length: i32, font: *const GpFont, layoutrect: *const RectF, stringformat: *const GpStringFormat, boundingbox: *mut RectF, codepointsfitted: *mut i32, linesfilled: *mut i32) -> Status where - P0: windows_core::IntoParam, + P0: 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(graphics, string.into_param().abi(), length, font, layoutrect, stringformat, boundingbox, codepointsfitted, linesfilled) + GdipMeasureString(graphics, string.param().abi(), length, font, layoutrect, stringformat, boundingbox, codepointsfitted, linesfilled) } #[inline] pub unsafe fn GdipMultiplyLineTransform(brush: *mut GpLineGradient, matrix: *const Matrix, order: MatrixOrder) -> Status { @@ -2513,10 +2513,10 @@ pub unsafe fn GdipPlayMetafileRecord(metafile: *const GpMetafile, recordtype: Em #[inline] pub unsafe fn GdipPrivateAddFontFile(fontcollection: *mut GpFontCollection, filename: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipPrivateAddFontFile(fontcollection : *mut GpFontCollection, filename : windows_core::PCWSTR) -> Status); - GdipPrivateAddFontFile(fontcollection, filename.into_param().abi()) + GdipPrivateAddFontFile(fontcollection, filename.param().abi()) } #[inline] pub unsafe fn GdipPrivateAddMemoryFont(fontcollection: *mut GpFontCollection, memory: *const core::ffi::c_void, length: i32) -> Status { @@ -2527,74 +2527,74 @@ pub unsafe fn GdipPrivateAddMemoryFont(fontcollection: *mut GpFontCollection, me #[inline] pub unsafe fn GdipRecordMetafile(referencehdc: P0, r#type: EmfType, framerect: *const RectF, frameunit: MetafileFrameUnit, description: P1, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(referencehdc.into_param().abi(), r#type, framerect, frameunit, description.into_param().abi(), metafile) + GdipRecordMetafile(referencehdc.param().abi(), r#type, framerect, frameunit, description.param().abi(), metafile) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipRecordMetafileFileName(filename: P0, referencehdc: P1, r#type: EmfType, framerect: *const RectF, frameunit: MetafileFrameUnit, description: P2, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), referencehdc.into_param().abi(), r#type, framerect, frameunit, description.into_param().abi(), metafile) + GdipRecordMetafileFileName(filename.param().abi(), referencehdc.param().abi(), r#type, framerect, frameunit, description.param().abi(), metafile) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipRecordMetafileFileNameI(filename: P0, referencehdc: P1, r#type: EmfType, framerect: *const Rect, frameunit: MetafileFrameUnit, description: P2, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), referencehdc.into_param().abi(), r#type, framerect, frameunit, description.into_param().abi(), metafile) + GdipRecordMetafileFileNameI(filename.param().abi(), referencehdc.param().abi(), r#type, framerect, frameunit, description.param().abi(), metafile) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipRecordMetafileI(referencehdc: P0, r#type: EmfType, framerect: *const Rect, frameunit: MetafileFrameUnit, description: P1, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(referencehdc.into_param().abi(), r#type, framerect, frameunit, description.into_param().abi(), metafile) + GdipRecordMetafileI(referencehdc.param().abi(), r#type, framerect, frameunit, description.param().abi(), metafile) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] #[inline] pub unsafe fn GdipRecordMetafileStream(stream: P0, referencehdc: P1, r#type: EmfType, framerect: *const RectF, frameunit: MetafileFrameUnit, description: P2, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), referencehdc.into_param().abi(), r#type, framerect, frameunit, description.into_param().abi(), metafile) + GdipRecordMetafileStream(stream.param().abi(), referencehdc.param().abi(), r#type, framerect, frameunit, description.param().abi(), metafile) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] #[inline] pub unsafe fn GdipRecordMetafileStreamI(stream: P0, referencehdc: P1, r#type: EmfType, framerect: *const Rect, frameunit: MetafileFrameUnit, description: P2, metafile: *mut *mut GpMetafile) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), referencehdc.into_param().abi(), r#type, framerect, frameunit, description.into_param().abi(), metafile) + GdipRecordMetafileStreamI(stream.param().abi(), referencehdc.param().abi(), r#type, framerect, frameunit, description.param().abi(), metafile) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipReleaseDC(graphics: *mut GpGraphics, hdc: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipReleaseDC(graphics : *mut GpGraphics, hdc : super::Gdi:: HDC) -> Status); - GdipReleaseDC(graphics, hdc.into_param().abi()) + GdipReleaseDC(graphics, hdc.param().abi()) } #[inline] pub unsafe fn GdipRemovePropertyItem(image: *mut GpImage, propid: u32) -> Status { @@ -2704,19 +2704,19 @@ pub unsafe fn GdipSaveGraphics(graphics: *mut GpGraphics, state: *mut u32) -> St #[inline] pub unsafe fn GdipSaveImageToFile(image: *mut GpImage, filename: P0, clsidencoder: *const windows_core::GUID, encoderparams: *const EncoderParameters) -> Status where - P0: windows_core::IntoParam, + P0: 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(image, filename.into_param().abi(), clsidencoder, encoderparams) + GdipSaveImageToFile(image, filename.param().abi(), clsidencoder, encoderparams) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn GdipSaveImageToStream(image: *mut GpImage, stream: P0, clsidencoder: *const windows_core::GUID, encoderparams: *const EncoderParameters) -> Status where - P0: windows_core::IntoParam, + P0: 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(image, stream.into_param().abi(), clsidencoder, encoderparams) + GdipSaveImageToStream(image, stream.param().abi(), clsidencoder, encoderparams) } #[inline] pub unsafe fn GdipScaleLineTransform(brush: *mut GpLineGradient, sx: f32, sy: f32, order: MatrixOrder) -> Status { @@ -2751,10 +2751,10 @@ pub unsafe fn GdipScaleWorldTransform(graphics: *mut GpGraphics, sx: f32, sy: f3 #[inline] pub unsafe fn GdipSetAdjustableArrowCapFillState(cap: *mut GpAdjustableArrowCap, fillstate: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetAdjustableArrowCapFillState(cap : *mut GpAdjustableArrowCap, fillstate : super::super::Foundation:: BOOL) -> Status); - GdipSetAdjustableArrowCapFillState(cap, fillstate.into_param().abi()) + GdipSetAdjustableArrowCapFillState(cap, fillstate.param().abi()) } #[inline] pub unsafe fn GdipSetAdjustableArrowCapHeight(cap: *mut GpAdjustableArrowCap, height: f32) -> Status { @@ -2780,10 +2780,10 @@ pub unsafe fn GdipSetClipGraphics(graphics: *mut GpGraphics, srcgraphics: *mut G #[inline] pub unsafe fn GdipSetClipHrgn(graphics: *mut GpGraphics, hrgn: P0, combinemode: CombineMode) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetClipHrgn(graphics : *mut GpGraphics, hrgn : super::Gdi:: HRGN, combinemode : CombineMode) -> Status); - GdipSetClipHrgn(graphics, hrgn.into_param().abi(), combinemode) + GdipSetClipHrgn(graphics, hrgn.param().abi(), combinemode) } #[inline] pub unsafe fn GdipSetClipPath(graphics: *mut GpGraphics, path: *mut GpPath, combinemode: CombineMode) -> Status { @@ -2853,75 +2853,75 @@ pub unsafe fn GdipSetEmpty(region: *mut GpRegion) -> Status { #[inline] pub unsafe fn GdipSetImageAttributesCachedBackground(imageattr: *mut GpImageAttributes, enableflag: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesCachedBackground(imageattr : *mut GpImageAttributes, enableflag : super::super::Foundation:: BOOL) -> Status); - GdipSetImageAttributesCachedBackground(imageattr, enableflag.into_param().abi()) + GdipSetImageAttributesCachedBackground(imageattr, enableflag.param().abi()) } #[inline] pub unsafe fn GdipSetImageAttributesColorKeys(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0, colorlow: u32, colorhigh: u32) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(imageattr, r#type, enableflag.into_param().abi(), colorlow, colorhigh) + GdipSetImageAttributesColorKeys(imageattr, r#type, enableflag.param().abi(), colorlow, colorhigh) } #[inline] pub unsafe fn GdipSetImageAttributesColorMatrix(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0, colormatrix: *const ColorMatrix, graymatrix: *const ColorMatrix, flags: ColorMatrixFlags) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(imageattr, r#type, enableflag.into_param().abi(), colormatrix, graymatrix, flags) + GdipSetImageAttributesColorMatrix(imageattr, r#type, enableflag.param().abi(), colormatrix, graymatrix, flags) } #[inline] pub unsafe fn GdipSetImageAttributesGamma(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0, gamma: f32) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesGamma(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, gamma : f32) -> Status); - GdipSetImageAttributesGamma(imageattr, r#type, enableflag.into_param().abi(), gamma) + GdipSetImageAttributesGamma(imageattr, r#type, enableflag.param().abi(), gamma) } #[inline] pub unsafe fn GdipSetImageAttributesNoOp(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesNoOp(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL) -> Status); - GdipSetImageAttributesNoOp(imageattr, r#type, enableflag.into_param().abi()) + GdipSetImageAttributesNoOp(imageattr, r#type, enableflag.param().abi()) } #[inline] pub unsafe fn GdipSetImageAttributesOutputChannel(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0, channelflags: ColorChannelFlags) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesOutputChannel(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, channelflags : ColorChannelFlags) -> Status); - GdipSetImageAttributesOutputChannel(imageattr, r#type, enableflag.into_param().abi(), channelflags) + GdipSetImageAttributesOutputChannel(imageattr, r#type, enableflag.param().abi(), channelflags) } #[inline] pub unsafe fn GdipSetImageAttributesOutputChannelColorProfile(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0, colorprofilefilename: P1) -> Status where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(imageattr, r#type, enableflag.into_param().abi(), colorprofilefilename.into_param().abi()) + GdipSetImageAttributesOutputChannelColorProfile(imageattr, r#type, enableflag.param().abi(), colorprofilefilename.param().abi()) } #[inline] pub unsafe fn GdipSetImageAttributesRemapTable(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0, mapsize: u32, map: *const ColorMap) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(imageattr, r#type, enableflag.into_param().abi(), mapsize, map) + GdipSetImageAttributesRemapTable(imageattr, r#type, enableflag.param().abi(), mapsize, map) } #[inline] pub unsafe fn GdipSetImageAttributesThreshold(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: P0, threshold: f32) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesThreshold(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, threshold : f32) -> Status); - GdipSetImageAttributesThreshold(imageattr, r#type, enableflag.into_param().abi(), threshold) + GdipSetImageAttributesThreshold(imageattr, r#type, enableflag.param().abi(), threshold) } #[inline] pub unsafe fn GdipSetImageAttributesToIdentity(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType) -> Status { @@ -2931,10 +2931,10 @@ pub unsafe fn GdipSetImageAttributesToIdentity(imageattr: *mut GpImageAttributes #[inline] pub unsafe fn GdipSetImageAttributesWrapMode(imageattr: *mut GpImageAttributes, wrap: WrapMode, argb: u32, clamp: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesWrapMode(imageattr : *mut GpImageAttributes, wrap : WrapMode, argb : u32, clamp : super::super::Foundation:: BOOL) -> Status); - GdipSetImageAttributesWrapMode(imageattr, wrap, argb, clamp.into_param().abi()) + GdipSetImageAttributesWrapMode(imageattr, wrap, argb, clamp.param().abi()) } #[inline] pub unsafe fn GdipSetImagePalette(image: *mut GpImage, palette: *const ColorPalette) -> Status { @@ -2964,10 +2964,10 @@ pub unsafe fn GdipSetLineColors(brush: *mut GpLineGradient, color1: u32, color2: #[inline] pub unsafe fn GdipSetLineGammaCorrection(brush: *mut GpLineGradient, usegammacorrection: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineGammaCorrection(brush : *mut GpLineGradient, usegammacorrection : super::super::Foundation:: BOOL) -> Status); - GdipSetLineGammaCorrection(brush, usegammacorrection.into_param().abi()) + GdipSetLineGammaCorrection(brush, usegammacorrection.param().abi()) } #[inline] pub unsafe fn GdipSetLineLinearBlend(brush: *mut GpLineGradient, focus: f32, scale: f32) -> Status { @@ -3047,10 +3047,10 @@ pub unsafe fn GdipSetPathGradientFocusScales(brush: *mut GpPathGradient, xscale: #[inline] pub unsafe fn GdipSetPathGradientGammaCorrection(brush: *mut GpPathGradient, usegammacorrection: P0) -> Status where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientGammaCorrection(brush : *mut GpPathGradient, usegammacorrection : super::super::Foundation:: BOOL) -> Status); - GdipSetPathGradientGammaCorrection(brush, usegammacorrection.into_param().abi()) + GdipSetPathGradientGammaCorrection(brush, usegammacorrection.param().abi()) } #[inline] pub unsafe fn GdipSetPathGradientLinearBlend(brush: *mut GpPathGradient, focus: f32, scale: f32) -> Status { 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 f92bf3b417..5a594ae43c 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 @@ -4,26 +4,26 @@ impl IWICImageEncoder { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn WriteFrame(&self, pimage: P0, pframeencode: P1, pimageparameters: *const super::WICImageParameters) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteFrame)(windows_core::Interface::as_raw(self), pimage.into_param().abi(), pframeencode.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteFrameThumbnail)(windows_core::Interface::as_raw(self), pimage.into_param().abi(), pframeencode.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteThumbnail)(windows_core::Interface::as_raw(self), pimage.into_param().abi(), pencoder.into_param().abi(), pimageparameters).ok() + (windows_core::Interface::vtable(self).WriteThumbnail)(windows_core::Interface::as_raw(self), pimage.param().abi(), pencoder.param().abi(), pimageparameters).ok() } } #[repr(C)] @@ -47,18 +47,18 @@ windows_core::imp::interface_hierarchy!(IWICImagingFactory2, windows_core::IUnkn impl IWICImagingFactory2 { pub unsafe fn CreateDecoderFromFilename(&self, wzfilename: P0, pguidvendor: Option<*const windows_core::GUID>, dwdesiredaccess: super::super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: super::WICDecodeOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDecoderFromFilename)(windows_core::Interface::as_raw(self), wzfilename.into_param().abi(), core::mem::transmute(pguidvendor.unwrap_or(std::ptr::null())), dwdesiredaccess, metadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDecoderFromFilename)(windows_core::Interface::as_raw(self), wzfilename.param().abi(), core::mem::transmute(pguidvendor.unwrap_or(std::ptr::null())), 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: super::WICDecodeOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDecoderFromStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), pguidvendor, metadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: super::WICDecodeOptions) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -115,17 +115,17 @@ impl IWICImagingFactory2 { } pub unsafe fn CreateBitmapFromSource(&self, pibitmapsource: P0, option: super::WICBitmapCreateCacheOption) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromSource)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromSourceRect)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), x, y, width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -134,19 +134,19 @@ impl IWICImagingFactory2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateBitmapFromHBITMAP(&self, hbitmap: P0, hpalette: P1, options: super::WICBitmapAlphaChannelOption) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), hbitmap.into_param().abi(), hpalette.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), hbitmap.param().abi(), hpalette.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn CreateBitmapFromHICON(&self, hicon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), hicon.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), hicon.param().abi(), &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 { @@ -155,17 +155,17 @@ impl IWICImagingFactory2 { } pub unsafe fn CreateFastMetadataEncoderFromDecoder(&self, pidecoder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromDecoder)(windows_core::Interface::as_raw(self), pidecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromDecoder)(windows_core::Interface::as_raw(self), pidecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFastMetadataEncoderFromFrameDecode(&self, piframedecoder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromFrameDecode)(windows_core::Interface::as_raw(self), piframedecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromFrameDecode)(windows_core::Interface::as_raw(self), piframedecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateQueryWriter(&self, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -173,18 +173,18 @@ impl IWICImagingFactory2 { } pub unsafe fn CreateQueryWriterFromReader(&self, piqueryreader: P0, pguidvendor: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateQueryWriterFromReader)(windows_core::Interface::as_raw(self), piqueryreader.into_param().abi(), pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateQueryWriterFromReader)(windows_core::Interface::as_raw(self), piqueryreader.param().abi(), pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct2D")] pub unsafe fn CreateImageEncoder(&self, pd2ddevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageEncoder)(windows_core::Interface::as_raw(self), pd2ddevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageEncoder)(windows_core::Interface::as_raw(self), pd2ddevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[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 37d3388bb4..9b06ac190b 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs @@ -3,38 +3,38 @@ pub mod D2D; #[inline] pub unsafe fn WICConvertBitmapSource(dstformat: *const windows_core::GUID, pisrc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WICConvertBitmapSource(dstformat, pisrc.into_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: P0, stride: u32, offset: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WICCreateBitmapFromSection(width, height, pixelformat, hsection.into_param().abi(), stride, offset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WICCreateBitmapFromSection(width, height, pixelformat, hsection.param().abi(), 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: P0, stride: u32, offset: u32, desiredaccesslevel: WICSectionAccessLevel) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WICCreateBitmapFromSectionEx(width, height, pixelformat, hsection.into_param().abi(), stride, offset, desiredaccesslevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WICCreateBitmapFromSectionEx(width, height, pixelformat, hsection.param().abi(), stride, offset, desiredaccesslevel, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WICGetMetadataContentSize(guidcontainerformat: *const windows_core::GUID, piwriter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WICGetMetadataContentSize(guidcontainerformat, piwriter.into_param().abi(), &mut result__).map(|| result__) + WICGetMetadataContentSize(guidcontainerformat, piwriter.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WICMapGuidToShortName(guid: *const windows_core::GUID, wzname: Option<&mut [u16]>, pcchactual: *mut u32) -> windows_core::Result<()> { @@ -44,39 +44,39 @@ pub unsafe fn WICMapGuidToShortName(guid: *const windows_core::GUID, wzname: Opt #[inline] pub unsafe fn WICMapSchemaToName(guidmetadataformat: *const windows_core::GUID, pwzschema: P0, wzname: Option<&mut [u16]>, pcchactual: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(guidmetadataformat, pwzschema.into_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())), 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())), pcchactual).ok() } #[inline] pub unsafe fn WICMapShortNameToGuid(wzname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("windowscodecs.dll" "system" fn WICMapShortNameToGuid(wzname : windows_core::PCWSTR, pguid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WICMapShortNameToGuid(wzname.into_param().abi(), &mut result__).map(|| result__) + WICMapShortNameToGuid(wzname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WICMatchMetadataContent(guidcontainerformat: *const windows_core::GUID, pguidvendor: Option<*const windows_core::GUID>, pistream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WICMatchMetadataContent(guidcontainerformat, core::mem::transmute(pguidvendor.unwrap_or(std::ptr::null())), pistream.into_param().abi(), &mut result__).map(|| result__) + WICMatchMetadataContent(guidcontainerformat, core::mem::transmute(pguidvendor.unwrap_or(std::ptr::null())), pistream.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WICSerializeMetadataContent(guidcontainerformat: *const windows_core::GUID, piwriter: P0, dwpersistoptions: u32, pistream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(guidcontainerformat, piwriter.into_param().abi(), dwpersistoptions, pistream.into_param().abi()).ok() + WICSerializeMetadataContent(guidcontainerformat, piwriter.param().abi(), dwpersistoptions, pistream.param().abi()).ok() } windows_core::imp::define_interface!(IWICBitmap, IWICBitmap_Vtbl, 0x00000121_a8f2_4877_ba0a_fd2b6645fb94); windows_core::imp::interface_hierarchy!(IWICBitmap, windows_core::IUnknown, IWICBitmapSource); @@ -93,9 +93,9 @@ impl IWICBitmap { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() @@ -106,9 +106,9 @@ impl IWICBitmap { } pub unsafe fn SetPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (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), dpix, dpiy).ok() @@ -136,18 +136,18 @@ impl IWICBitmapClipper { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn Initialize(&self, pisource: P0, prc: *const WICRect) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), prc).ok() } } #[repr(C)] @@ -226,10 +226,10 @@ impl IWICBitmapCodecInfo { } pub unsafe fn MatchesMimeType(&self, wzmimetype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MatchesMimeType)(windows_core::Interface::as_raw(self), wzmimetype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MatchesMimeType)(windows_core::Interface::as_raw(self), wzmimetype.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -266,17 +266,17 @@ impl IWICBitmapDecoder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryCapability(&self, pistream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryCapability)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryCapability)(windows_core::Interface::as_raw(self), pistream.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pistream: P0, cacheoptions: WICDecodeOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), 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__ = std::mem::zeroed(); @@ -288,9 +288,9 @@ impl IWICBitmapDecoder { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyPalette)(windows_core::Interface::as_raw(self), pipalette.param().abi()).ok() } pub unsafe fn GetMetadataQueryReader(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -408,10 +408,10 @@ impl IWICBitmapDecoderInfo { } pub unsafe fn MatchesMimeType(&self, wzmimetype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MatchesMimeType)(windows_core::Interface::as_raw(self), wzmimetype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.MatchesMimeType)(windows_core::Interface::as_raw(self), wzmimetype.param().abi(), &mut result__).map(|| result__) } 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), cbsizepatterns, core::mem::transmute(ppatterns.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcpatterns.unwrap_or(std::ptr::null_mut())), pcbpatternsactual).ok() @@ -419,10 +419,10 @@ impl IWICBitmapDecoderInfo { #[cfg(feature = "Win32_System_Com")] pub unsafe fn MatchesPattern(&self, pistream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MatchesPattern)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MatchesPattern)(windows_core::Interface::as_raw(self), pistream.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateInstance(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -445,9 +445,9 @@ impl IWICBitmapEncoder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pistream: P0, cacheoption: WICBitmapEncoderCacheOption) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), 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__ = std::mem::zeroed(); @@ -462,21 +462,21 @@ impl IWICBitmapEncoder { } pub unsafe fn SetPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), pipalette.param().abi()).ok() } pub unsafe fn SetThumbnail(&self, pithumbnail: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnail)(windows_core::Interface::as_raw(self), pithumbnail.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnail)(windows_core::Interface::as_raw(self), pithumbnail.param().abi()).ok() } pub unsafe fn SetPreview(&self, pipreview: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreview)(windows_core::Interface::as_raw(self), pipreview.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreview)(windows_core::Interface::as_raw(self), pipreview.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn CreateNewFrame(&self, ppiframeencode: *mut Option, ppiencoderoptions: *mut Option) -> windows_core::Result<()> { @@ -581,10 +581,10 @@ impl IWICBitmapEncoderInfo { } pub unsafe fn MatchesMimeType(&self, wzmimetype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MatchesMimeType)(windows_core::Interface::as_raw(self), wzmimetype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.MatchesMimeType)(windows_core::Interface::as_raw(self), wzmimetype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateInstance(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -611,18 +611,18 @@ impl IWICBitmapFlipRotator { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn Initialize(&self, pisource: P0, options: WICBitmapTransformOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.into_param().abi(), options).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), options).ok() } } #[repr(C)] @@ -645,9 +645,9 @@ impl IWICBitmapFrameDecode { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() @@ -677,9 +677,9 @@ impl IWICBitmapFrameEncode { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, piencoderoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), piencoderoptions.into_param().abi()).ok() + (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), uiwidth, uiheight).ok() @@ -695,24 +695,24 @@ impl IWICBitmapFrameEncode { } pub unsafe fn SetPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPalette)(windows_core::Interface::as_raw(self), pipalette.param().abi()).ok() } pub unsafe fn SetThumbnail(&self, pithumbnail: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnail)(windows_core::Interface::as_raw(self), pithumbnail.into_param().abi()).ok() + (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), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSource)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), 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() @@ -781,18 +781,18 @@ impl IWICBitmapScaler { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn Initialize(&self, pisource: P0, uiwidth: u32, uiheight: u32, mode: WICBitmapInterpolationMode) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.into_param().abi(), uiwidth, uiheight, mode).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), uiwidth, uiheight, mode).ok() } } #[repr(C)] @@ -815,9 +815,9 @@ impl IWICBitmapSource { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (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), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() @@ -862,9 +862,9 @@ windows_core::imp::interface_hierarchy!(IWICColorContext, windows_core::IUnknown impl IWICColorContext { pub unsafe fn InitializeFromFilename(&self, wzfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromFilename)(windows_core::Interface::as_raw(self), wzfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromFilename)(windows_core::Interface::as_raw(self), wzfilename.param().abi()).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() @@ -909,20 +909,20 @@ impl IWICColorTransform { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn Initialize(&self, pibitmapsource: P0, picontextsource: P1, picontextdest: P2, pixelfmtdest: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), picontextsource.into_param().abi(), picontextdest.into_param().abi(), 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)] @@ -935,18 +935,18 @@ windows_core::imp::interface_hierarchy!(IWICComponentFactory, windows_core::IUnk impl IWICComponentFactory { pub unsafe fn CreateDecoderFromFilename(&self, wzfilename: P0, pguidvendor: Option<*const windows_core::GUID>, dwdesiredaccess: super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: WICDecodeOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDecoderFromFilename)(windows_core::Interface::as_raw(self), wzfilename.into_param().abi(), core::mem::transmute(pguidvendor.unwrap_or(std::ptr::null())), dwdesiredaccess, metadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDecoderFromFilename)(windows_core::Interface::as_raw(self), wzfilename.param().abi(), core::mem::transmute(pguidvendor.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDecoderFromStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), pguidvendor, metadataoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1003,17 +1003,17 @@ impl IWICComponentFactory { } pub unsafe fn CreateBitmapFromSource(&self, pibitmapsource: P0, option: WICBitmapCreateCacheOption) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromSource)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), option, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromSourceRect)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), x, y, width, height, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1022,19 +1022,19 @@ impl IWICComponentFactory { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateBitmapFromHBITMAP(&self, hbitmap: P0, hpalette: P1, options: WICBitmapAlphaChannelOption) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), hbitmap.into_param().abi(), hpalette.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), hbitmap.param().abi(), hpalette.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn CreateBitmapFromHICON(&self, hicon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), hicon.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), hicon.param().abi(), &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 { @@ -1043,17 +1043,17 @@ impl IWICComponentFactory { } pub unsafe fn CreateFastMetadataEncoderFromDecoder(&self, pidecoder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromDecoder)(windows_core::Interface::as_raw(self), pidecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromDecoder)(windows_core::Interface::as_raw(self), pidecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFastMetadataEncoderFromFrameDecode(&self, piframedecoder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromFrameDecode)(windows_core::Interface::as_raw(self), piframedecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFastMetadataEncoderFromFrameDecode)(windows_core::Interface::as_raw(self), piframedecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateQueryWriter(&self, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1061,26 +1061,26 @@ impl IWICComponentFactory { } pub unsafe fn CreateQueryWriterFromReader(&self, piqueryreader: P0, pguidvendor: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateQueryWriterFromReader)(windows_core::Interface::as_raw(self), piqueryreader.into_param().abi(), pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateQueryWriterFromReader)(windows_core::Interface::as_raw(self), piqueryreader.param().abi(), pguidvendor, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateMetadataReader(&self, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwoptions: u32, pistream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataReader)(windows_core::Interface::as_raw(self), guidmetadataformat, pguidvendor, dwoptions, pistream.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataReaderFromContainer)(windows_core::Interface::as_raw(self), guidcontainerformat, pguidvendor, dwoptions, pistream.into_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__ = std::mem::zeroed(); @@ -1088,24 +1088,24 @@ impl IWICComponentFactory { } pub unsafe fn CreateMetadataWriterFromReader(&self, pireader: P0, pguidvendor: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataWriterFromReader)(windows_core::Interface::as_raw(self), pireader.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateQueryReaderFromBlockReader)(windows_core::Interface::as_raw(self), piblockreader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateQueryReaderFromBlockReader)(windows_core::Interface::as_raw(self), piblockreader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateQueryWriterFromBlockWriter(&self, piblockwriter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateQueryWriterFromBlockWriter)(windows_core::Interface::as_raw(self), piblockwriter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateQueryWriterFromBlockWriter)(windows_core::Interface::as_raw(self), piblockwriter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn CreateEncoderPropertyBag(&self, ppropoptions: &[super::super::System::Com::StructuredStorage::PROPBAG2]) -> windows_core::Result { @@ -1266,9 +1266,9 @@ impl IWICDevelopRaw { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() @@ -1369,9 +1369,9 @@ impl IWICDevelopRaw { } pub unsafe fn SetDestinationColorContext(&self, pcolorcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDestinationColorContext)(windows_core::Interface::as_raw(self), pcolorcontext.into_param().abi()).ok() + (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), cbtonecurvesize, ptonecurve).ok() @@ -1395,9 +1395,9 @@ impl IWICDevelopRaw { } pub unsafe fn SetNotificationCallback(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotificationCallback)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotificationCallback)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } } #[repr(C)] @@ -1508,19 +1508,19 @@ impl IWICFormatConverter { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn Initialize(&self, pisource: P0, dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: P1, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.into_param().abi(), dstformat, dither, pipalette.into_param().abi(), alphathresholdpercent, 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__ = std::mem::zeroed(); @@ -1583,18 +1583,18 @@ windows_core::imp::interface_hierarchy!(IWICImagingFactory, windows_core::IUnkno impl IWICImagingFactory { pub unsafe fn CreateDecoderFromFilename(&self, wzfilename: P0, pguidvendor: Option<*const windows_core::GUID>, dwdesiredaccess: super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: WICDecodeOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecoderFromFilename)(windows_core::Interface::as_raw(self), wzfilename.into_param().abi(), core::mem::transmute(pguidvendor.unwrap_or(std::ptr::null())), dwdesiredaccess, 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(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDecoderFromStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), pguidvendor, 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__ = std::mem::zeroed(); @@ -1651,17 +1651,17 @@ impl IWICImagingFactory { } pub unsafe fn CreateBitmapFromSource(&self, pibitmapsource: P0, option: WICBitmapCreateCacheOption) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromSource)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromSourceRect)(windows_core::Interface::as_raw(self), pibitmapsource.into_param().abi(), x, y, width, 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__ = std::mem::zeroed(); @@ -1670,19 +1670,19 @@ impl IWICImagingFactory { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateBitmapFromHBITMAP(&self, hbitmap: P0, hpalette: P1, options: WICBitmapAlphaChannelOption) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), hbitmap.into_param().abi(), hpalette.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromHBITMAP)(windows_core::Interface::as_raw(self), hbitmap.param().abi(), hpalette.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn CreateBitmapFromHICON(&self, hicon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), hicon.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBitmapFromHICON)(windows_core::Interface::as_raw(self), hicon.param().abi(), &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 { @@ -1691,17 +1691,17 @@ impl IWICImagingFactory { } pub unsafe fn CreateFastMetadataEncoderFromDecoder(&self, pidecoder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFastMetadataEncoderFromDecoder)(windows_core::Interface::as_raw(self), pidecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFastMetadataEncoderFromDecoder)(windows_core::Interface::as_raw(self), pidecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFastMetadataEncoderFromFrameDecode(&self, piframedecoder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFastMetadataEncoderFromFrameDecode)(windows_core::Interface::as_raw(self), piframedecoder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFastMetadataEncoderFromFrameDecode)(windows_core::Interface::as_raw(self), piframedecoder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateQueryWriter(&self, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1709,10 +1709,10 @@ impl IWICImagingFactory { } pub unsafe fn CreateQueryWriterFromReader(&self, piqueryreader: P0, pguidvendor: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateQueryWriterFromReader)(windows_core::Interface::as_raw(self), piqueryreader.into_param().abi(), 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)] @@ -1910,9 +1910,9 @@ impl IWICMetadataBlockWriter { } pub unsafe fn InitializeFromBlockReader(&self, pimdblockreader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromBlockReader)(windows_core::Interface::as_raw(self), pimdblockreader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromBlockReader)(windows_core::Interface::as_raw(self), pimdblockreader.param().abi()).ok() } pub unsafe fn GetWriterByIndex(&self, nindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1920,15 +1920,15 @@ impl IWICMetadataBlockWriter { } pub unsafe fn AddWriter(&self, pimetadatawriter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWriter)(windows_core::Interface::as_raw(self), pimetadatawriter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddWriter)(windows_core::Interface::as_raw(self), pimetadatawriter.param().abi()).ok() } pub unsafe fn SetWriterByIndex(&self, nindex: u32, pimetadatawriter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriterByIndex)(windows_core::Interface::as_raw(self), nindex, pimetadatawriter.into_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), nindex).ok() @@ -2023,9 +2023,9 @@ impl IWICMetadataQueryReader { } pub unsafe fn GetMetadataByName(&self, wzname: P0, pvarvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMetadataByName)(windows_core::Interface::as_raw(self), wzname.into_param().abi(), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).GetMetadataByName)(windows_core::Interface::as_raw(self), wzname.param().abi(), core::mem::transmute(pvarvalue)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEnumerator(&self) -> windows_core::Result { @@ -2056,9 +2056,9 @@ impl IWICMetadataQueryWriter { } pub unsafe fn GetMetadataByName(&self, wzname: P0, pvarvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMetadataByName)(windows_core::Interface::as_raw(self), wzname.into_param().abi(), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).base__.GetMetadataByName)(windows_core::Interface::as_raw(self), wzname.param().abi(), core::mem::transmute(pvarvalue)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEnumerator(&self) -> windows_core::Result { @@ -2067,15 +2067,15 @@ impl IWICMetadataQueryWriter { } pub unsafe fn SetMetadataByName(&self, wzname: P0, pvarvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMetadataByName)(windows_core::Interface::as_raw(self), wzname.into_param().abi(), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetMetadataByName)(windows_core::Interface::as_raw(self), wzname.param().abi(), core::mem::transmute(pvarvalue)).ok() } pub unsafe fn RemoveMetadataByName(&self, wzname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveMetadataByName)(windows_core::Interface::as_raw(self), wzname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveMetadataByName)(windows_core::Interface::as_raw(self), wzname.param().abi()).ok() } } #[repr(C)] @@ -2182,10 +2182,10 @@ impl IWICMetadataReaderInfo { #[cfg(feature = "Win32_System_Com")] pub unsafe fn MatchesPattern(&self, guidcontainerformat: *const windows_core::GUID, pistream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MatchesPattern)(windows_core::Interface::as_raw(self), guidcontainerformat, pistream.into_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__ = std::mem::zeroed(); @@ -2323,25 +2323,25 @@ windows_core::imp::interface_hierarchy!(IWICPalette, windows_core::IUnknown); impl IWICPalette { pub unsafe fn InitializePredefined(&self, epalettetype: WICBitmapPaletteType, faddtransparentcolor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializePredefined)(windows_core::Interface::as_raw(self), epalettetype, faddtransparentcolor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializePredefined)(windows_core::Interface::as_raw(self), epalettetype, faddtransparentcolor.param().abi()).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() } pub unsafe fn InitializeFromBitmap(&self, pisurface: P0, ccount: u32, faddtransparentcolor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromBitmap)(windows_core::Interface::as_raw(self), pisurface.into_param().abi(), ccount, faddtransparentcolor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromBitmap)(windows_core::Interface::as_raw(self), pisurface.param().abi(), ccount, faddtransparentcolor.param().abi()).ok() } pub unsafe fn InitializeFromPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromPalette)(windows_core::Interface::as_raw(self), pipalette.param().abi()).ok() } pub unsafe fn GetType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2399,17 +2399,17 @@ impl IWICPersistStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Load(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Save(&self, pstm: P0, fcleardirty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.param().abi(), fcleardirty.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSizeMax(&self) -> windows_core::Result { @@ -2419,17 +2419,17 @@ impl IWICPersistStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadEx(&self, pistream: P0, pguidpreferredvendor: *const windows_core::GUID, dwpersistoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadEx)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), pguidpreferredvendor, 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveEx)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), dwpersistoptions, fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveEx)(windows_core::Interface::as_raw(self), pistream.param().abi(), dwpersistoptions, fcleardirty.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2617,18 +2617,18 @@ impl IWICPlanarFormatConverter { } pub unsafe fn CopyPalette(&self, pipalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyPalette)(windows_core::Interface::as_raw(self), pipalette.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CopyPixels)(windows_core::Interface::as_raw(self), prc, cbstride, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } pub unsafe fn Initialize(&self, ppplanes: &[Option], dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: P0, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(), dstformat, dither, pipalette.into_param().abi(), alphathresholdpercent, 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__ = std::mem::zeroed(); @@ -2700,9 +2700,9 @@ impl IWICStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -2732,15 +2732,15 @@ impl IWICStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromIStream(&self, pistream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromIStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromIStream)(windows_core::Interface::as_raw(self), pistream.param().abi()).ok() } pub unsafe fn InitializeFromFilename(&self, wzfilename: P0, dwdesiredaccess: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromFilename)(windows_core::Interface::as_raw(self), wzfilename.into_param().abi(), 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() @@ -2748,9 +2748,9 @@ impl IWICStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromIStreamRegion(&self, pistream: P0, uloffset: u64, ulmaxsize: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromIStreamRegion)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), uloffset, 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 bf892a00e5..ae6e9461a5 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs @@ -2,55 +2,55 @@ #[inline] pub unsafe fn ChoosePixelFormat(hdc: P0, ppfd: *const PIXELFORMATDESCRIPTOR) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn ChoosePixelFormat(hdc : super::Gdi:: HDC, ppfd : *const PIXELFORMATDESCRIPTOR) -> i32); - ChoosePixelFormat(hdc.into_param().abi(), ppfd) + ChoosePixelFormat(hdc.param().abi(), ppfd) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DescribePixelFormat(hdc: P0, ipixelformat: i32, nbytes: u32, ppfd: Option<*mut PIXELFORMATDESCRIPTOR>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DescribePixelFormat(hdc : super::Gdi:: HDC, ipixelformat : i32, nbytes : u32, ppfd : *mut PIXELFORMATDESCRIPTOR) -> i32); - DescribePixelFormat(hdc.into_param().abi(), ipixelformat, nbytes, core::mem::transmute(ppfd.unwrap_or(std::ptr::null_mut()))) + DescribePixelFormat(hdc.param().abi(), ipixelformat, nbytes, core::mem::transmute(ppfd.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetEnhMetaFilePixelFormat(hemf: P0, cbbuffer: u32, ppfd: Option<*mut PIXELFORMATDESCRIPTOR>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetEnhMetaFilePixelFormat(hemf : super::Gdi:: HENHMETAFILE, cbbuffer : u32, ppfd : *mut PIXELFORMATDESCRIPTOR) -> u32); - GetEnhMetaFilePixelFormat(hemf.into_param().abi(), cbbuffer, core::mem::transmute(ppfd.unwrap_or(std::ptr::null_mut()))) + GetEnhMetaFilePixelFormat(hemf.param().abi(), cbbuffer, core::mem::transmute(ppfd.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetPixelFormat(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetPixelFormat(hdc : super::Gdi:: HDC) -> i32); - GetPixelFormat(hdc.into_param().abi()) + GetPixelFormat(hdc.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetPixelFormat(hdc: P0, format: i32, ppfd: *const PIXELFORMATDESCRIPTOR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetPixelFormat(hdc : super::Gdi:: HDC, format : i32, ppfd : *const PIXELFORMATDESCRIPTOR) -> super::super::Foundation:: BOOL); - SetPixelFormat(hdc.into_param().abi(), format, ppfd).ok() + SetPixelFormat(hdc.param().abi(), format, ppfd).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SwapBuffers(param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SwapBuffers(param0 : super::Gdi:: HDC) -> super::super::Foundation:: BOOL); - SwapBuffers(param0.into_param().abi()).ok() + SwapBuffers(param0.param().abi()).ok() } #[inline] pub unsafe fn glAccum(op: u32, value: f32) { @@ -1995,48 +1995,48 @@ pub unsafe fn gluUnProject(winx: f64, winy: f64, winz: f64, modelmatrix: *const #[inline] pub unsafe fn wglCopyContext(param0: P0, param1: P1, param2: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglCopyContext(param0 : HGLRC, param1 : HGLRC, param2 : u32) -> super::super::Foundation:: BOOL); - wglCopyContext(param0.into_param().abi(), param1.into_param().abi(), param2).ok() + wglCopyContext(param0.param().abi(), param1.param().abi(), param2).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglCreateContext(param0: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglCreateContext(param0 : super::Gdi:: HDC) -> HGLRC); - let result__ = wglCreateContext(param0.into_param().abi()); + let result__ = wglCreateContext(param0.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglCreateLayerContext(param0: P0, param1: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglCreateLayerContext(param0 : super::Gdi:: HDC, param1 : i32) -> HGLRC); - let result__ = wglCreateLayerContext(param0.into_param().abi(), param1); + let result__ = wglCreateLayerContext(param0.param().abi(), param1); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn wglDeleteContext(param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglDeleteContext(param0 : HGLRC) -> super::super::Foundation:: BOOL); - wglDeleteContext(param0.into_param().abi()).ok() + wglDeleteContext(param0.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglDescribeLayerPlane(param0: P0, param1: i32, param2: i32, param3: u32, param4: *mut LAYERPLANEDESCRIPTOR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1, param2, param3, param4) + wglDescribeLayerPlane(param0.param().abi(), param1, param2, param3, param4) } #[inline] pub unsafe fn wglGetCurrentContext() -> HGLRC { @@ -2053,101 +2053,101 @@ pub unsafe fn wglGetCurrentDC() -> super::Gdi::HDC { #[inline] pub unsafe fn wglGetLayerPaletteEntries(param0: P0, param1: i32, param2: i32, param3: i32, param4: *mut super::super::Foundation::COLORREF) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1, param2, param3, param4) + wglGetLayerPaletteEntries(param0.param().abi(), param1, param2, param3, param4) } #[inline] pub unsafe fn wglGetProcAddress(param0: P0) -> super::super::Foundation::PROC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglGetProcAddress(param0 : windows_core::PCSTR) -> super::super::Foundation:: PROC); - wglGetProcAddress(param0.into_param().abi()) + wglGetProcAddress(param0.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglMakeCurrent(param0: P0, param1: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglMakeCurrent(param0 : super::Gdi:: HDC, param1 : HGLRC) -> super::super::Foundation:: BOOL); - wglMakeCurrent(param0.into_param().abi(), param1.into_param().abi()).ok() + wglMakeCurrent(param0.param().abi(), param1.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglRealizeLayerPalette(param0: P0, param1: i32, param2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglRealizeLayerPalette(param0 : super::Gdi:: HDC, param1 : i32, param2 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - wglRealizeLayerPalette(param0.into_param().abi(), param1, param2.into_param().abi()).ok() + wglRealizeLayerPalette(param0.param().abi(), param1, param2.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglSetLayerPaletteEntries(param0: P0, param1: i32, param2: i32, param3: i32, param4: *const super::super::Foundation::COLORREF) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1, param2, param3, param4) + wglSetLayerPaletteEntries(param0.param().abi(), param1, param2, param3, param4) } #[inline] pub unsafe fn wglShareLists(param0: P0, param1: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglShareLists(param0 : HGLRC, param1 : HGLRC) -> super::super::Foundation:: BOOL); - wglShareLists(param0.into_param().abi(), param1.into_param().abi()).ok() + wglShareLists(param0.param().abi(), param1.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglSwapLayerBuffers(param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglSwapLayerBuffers(param0 : super::Gdi:: HDC, param1 : u32) -> super::super::Foundation:: BOOL); - wglSwapLayerBuffers(param0.into_param().abi(), param1).ok() + wglSwapLayerBuffers(param0.param().abi(), param1).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontBitmapsA(param0: P0, param1: u32, param2: u32, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsA(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> super::super::Foundation:: BOOL); - wglUseFontBitmapsA(param0.into_param().abi(), param1, param2, param3).ok() + wglUseFontBitmapsA(param0.param().abi(), param1, param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontBitmapsW(param0: P0, param1: u32, param2: u32, param3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsW(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> super::super::Foundation:: BOOL); - wglUseFontBitmapsW(param0.into_param().abi(), param1, param2, param3).ok() + wglUseFontBitmapsW(param0.param().abi(), param1, param2, param3).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontOutlinesA(param0: P0, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1, param2, param3, param4, param5, param6, param7).ok() + wglUseFontOutlinesA(param0.param().abi(), param1, param2, param3, param4, param5, param6, param7).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontOutlinesW(param0: P0, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), param1, param2, param3, param4, param5, param6, param7).ok() + wglUseFontOutlinesW(param0.param().abi(), param1, param2, param3, param4, param5, param6, param7).ok() } pub const GLU_AUTO_LOAD_MATRIX: u32 = 100200u32; pub const GLU_BEGIN: u32 = 100100u32; 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 211a45a114..e2bf7a4249 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 @@ -2,104 +2,104 @@ #[inline] pub unsafe fn PTCloseProvider(hprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTCloseProvider(hprovider : super::super::super::Storage::Xps:: HPTPROVIDER) -> windows_core::HRESULT); - PTCloseProvider(hprovider.into_param().abi()).ok() + PTCloseProvider(hprovider.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] pub unsafe fn PTConvertDevModeToPrintTicket(hprovider: P0, cbdevmode: u32, pdevmode: *const super::super::Gdi::DEVMODEA, scope: EPrintTicketScope, pprintticket: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTConvertDevModeToPrintTicket(hprovider : super::super::super::Storage::Xps:: HPTPROVIDER, cbdevmode : u32, pdevmode : *const super::super::Gdi:: DEVMODEA, scope : EPrintTicketScope, pprintticket : * mut core::ffi::c_void) -> windows_core::HRESULT); - PTConvertDevModeToPrintTicket(hprovider.into_param().abi(), cbdevmode, pdevmode, scope, pprintticket.into_param().abi()).ok() + PTConvertDevModeToPrintTicket(hprovider.param().abi(), cbdevmode, pdevmode, scope, pprintticket.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] pub unsafe fn PTConvertPrintTicketToDevMode(hprovider: P0, pprintticket: P1, basedevmodetype: EDefaultDevmodeType, scope: EPrintTicketScope, pcbdevmode: *mut u32, ppdevmode: *mut *mut super::super::Gdi::DEVMODEA, pbstrerrormessage: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTConvertPrintTicketToDevMode(hprovider : super::super::super::Storage::Xps:: HPTPROVIDER, pprintticket : * mut core::ffi::c_void, basedevmodetype : EDefaultDevmodeType, scope : EPrintTicketScope, pcbdevmode : *mut u32, ppdevmode : *mut *mut super::super::Gdi:: DEVMODEA, pbstrerrormessage : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - PTConvertPrintTicketToDevMode(hprovider.into_param().abi(), pprintticket.into_param().abi(), basedevmodetype, scope, pcbdevmode, ppdevmode, core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() + PTConvertPrintTicketToDevMode(hprovider.param().abi(), pprintticket.param().abi(), basedevmodetype, scope, pcbdevmode, ppdevmode, core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] pub unsafe fn PTGetPrintCapabilities(hprovider: P0, pprintticket: P1, pcapabilities: P2, pbstrerrormessage: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTGetPrintCapabilities(hprovider : super::super::super::Storage::Xps:: HPTPROVIDER, pprintticket : * mut core::ffi::c_void, pcapabilities : * mut core::ffi::c_void, pbstrerrormessage : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - PTGetPrintCapabilities(hprovider.into_param().abi(), pprintticket.into_param().abi(), pcapabilities.into_param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() + PTGetPrintCapabilities(hprovider.param().abi(), pprintticket.param().abi(), pcapabilities.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] pub unsafe fn PTGetPrintDeviceCapabilities(hprovider: P0, pprintticket: P1, pdevicecapabilities: P2, pbstrerrormessage: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTGetPrintDeviceCapabilities(hprovider : super::super::super::Storage::Xps:: HPTPROVIDER, pprintticket : * mut core::ffi::c_void, pdevicecapabilities : * mut core::ffi::c_void, pbstrerrormessage : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - PTGetPrintDeviceCapabilities(hprovider.into_param().abi(), pprintticket.into_param().abi(), pdevicecapabilities.into_param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() + PTGetPrintDeviceCapabilities(hprovider.param().abi(), pprintticket.param().abi(), pdevicecapabilities.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] pub unsafe fn PTGetPrintDeviceResources(hprovider: P0, pszlocalename: P1, pprintticket: P2, pdeviceresources: P3, pbstrerrormessage: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTGetPrintDeviceResources(hprovider : super::super::super::Storage::Xps:: HPTPROVIDER, pszlocalename : windows_core::PCWSTR, pprintticket : * mut core::ffi::c_void, pdeviceresources : * mut core::ffi::c_void, pbstrerrormessage : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - PTGetPrintDeviceResources(hprovider.into_param().abi(), pszlocalename.into_param().abi(), pprintticket.into_param().abi(), pdeviceresources.into_param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() + PTGetPrintDeviceResources(hprovider.param().abi(), pszlocalename.param().abi(), pprintticket.param().abi(), pdeviceresources.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] pub unsafe fn PTMergeAndValidatePrintTicket(hprovider: P0, pbaseticket: P1, pdeltaticket: P2, scope: EPrintTicketScope, presultticket: P3, pbstrerrormessage: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTMergeAndValidatePrintTicket(hprovider : super::super::super::Storage::Xps:: HPTPROVIDER, pbaseticket : * mut core::ffi::c_void, pdeltaticket : * mut core::ffi::c_void, scope : EPrintTicketScope, presultticket : * mut core::ffi::c_void, pbstrerrormessage : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - PTMergeAndValidatePrintTicket(hprovider.into_param().abi(), pbaseticket.into_param().abi(), pdeltaticket.into_param().abi(), scope, presultticket.into_param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() + PTMergeAndValidatePrintTicket(hprovider.param().abi(), pbaseticket.param().abi(), pdeltaticket.param().abi(), scope, presultticket.param().abi(), core::mem::transmute(pbstrerrormessage.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Storage_Xps")] #[inline] pub unsafe fn PTOpenProvider(pszprintername: P0, dwversion: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTOpenProvider(pszprintername : windows_core::PCWSTR, dwversion : u32, phprovider : *mut super::super::super::Storage::Xps:: HPTPROVIDER) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PTOpenProvider(pszprintername.into_param().abi(), dwversion, &mut result__).map(|| result__) + PTOpenProvider(pszprintername.param().abi(), dwversion, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Storage_Xps")] #[inline] pub unsafe fn PTOpenProviderEx(pszprintername: P0, dwmaxversion: u32, dwprefversion: u32, phprovider: *mut super::super::super::Storage::Xps::HPTPROVIDER, pusedversion: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTOpenProviderEx(pszprintername : windows_core::PCWSTR, dwmaxversion : u32, dwprefversion : u32, phprovider : *mut super::super::super::Storage::Xps:: HPTPROVIDER, pusedversion : *mut u32) -> windows_core::HRESULT); - PTOpenProviderEx(pszprintername.into_param().abi(), dwmaxversion, dwprefversion, phprovider, pusedversion).ok() + PTOpenProviderEx(pszprintername.param().abi(), dwmaxversion, dwprefversion, phprovider, pusedversion).ok() } #[inline] pub unsafe fn PTQuerySchemaVersionSupport(pszprintername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("prntvpt.dll" "system" fn PTQuerySchemaVersionSupport(pszprintername : windows_core::PCWSTR, pmaxversion : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PTQuerySchemaVersionSupport(pszprintername.into_param().abi(), &mut result__).map(|| result__) + PTQuerySchemaVersionSupport(pszprintername.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PTReleaseMemory(pbuffer: *const core::ffi::c_void) -> windows_core::Result<()> { 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 9b86bce271..d41b7b6a18 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -3,231 +3,231 @@ pub mod PrintTicket; #[inline] pub unsafe fn AbortPrinter(hprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AbortPrinter(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AbortPrinter(hprinter.into_param().abi()) + AbortPrinter(hprinter.param().abi()) } #[inline] pub unsafe fn AddFormA(hprinter: P0, level: u32, pform: *const u8) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddFormA(hprinter : super::super::Foundation:: HANDLE, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - AddFormA(hprinter.into_param().abi(), level, pform) + AddFormA(hprinter.param().abi(), level, pform) } #[inline] pub unsafe fn AddFormW(hprinter: P0, level: u32, pform: *const u8) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddFormW(hprinter : super::super::Foundation:: HANDLE, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - AddFormW(hprinter.into_param().abi(), level, pform) + AddFormW(hprinter.param().abi(), level, pform) } #[inline] pub unsafe fn AddJobA(hprinter: P0, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddJobA(hprinter : super::super::Foundation:: HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - AddJobA(hprinter.into_param().abi(), 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()), pcbneeded) + AddJobA(hprinter.param().abi(), 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()), pcbneeded) } #[inline] pub unsafe fn AddJobW(hprinter: P0, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddJobW(hprinter : super::super::Foundation:: HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - AddJobW(hprinter.into_param().abi(), 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()), pcbneeded) + AddJobW(hprinter.param().abi(), 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()), pcbneeded) } #[inline] pub unsafe fn AddMonitorA(pname: P0, level: u32, pmonitors: Option<*const u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, core::mem::transmute(pmonitors.unwrap_or(std::ptr::null()))).ok() + AddMonitorA(pname.param().abi(), level, core::mem::transmute(pmonitors.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AddMonitorW(pname: P0, level: u32, pmonitors: Option<*const u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, core::mem::transmute(pmonitors.unwrap_or(std::ptr::null()))).ok() + AddMonitorW(pname.param().abi(), level, core::mem::transmute(pmonitors.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AddPortA(pname: P0, hwnd: P1, pmonitorname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwnd.into_param().abi(), pmonitorname.into_param().abi()).ok() + AddPortA(pname.param().abi(), hwnd.param().abi(), pmonitorname.param().abi()).ok() } #[inline] pub unsafe fn AddPortW(pname: P0, hwnd: P1, pmonitorname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwnd.into_param().abi(), pmonitorname.into_param().abi()).ok() + AddPortW(pname.param().abi(), hwnd.param().abi(), pmonitorname.param().abi()).ok() } #[inline] pub unsafe fn AddPrintDeviceObject(hprinter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn AddPrintDeviceObject(hprinter : super::super::Foundation:: HANDLE, phdeviceobject : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - AddPrintDeviceObject(hprinter.into_param().abi(), &mut result__).map(|| result__) + AddPrintDeviceObject(hprinter.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn AddPrintProcessorA(pname: P0, penvironment: P1, ppathname: P2, pprintprocessorname: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrintProcessorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, ppathname : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AddPrintProcessorA(pname.into_param().abi(), penvironment.into_param().abi(), ppathname.into_param().abi(), pprintprocessorname.into_param().abi()) + AddPrintProcessorA(pname.param().abi(), penvironment.param().abi(), ppathname.param().abi(), pprintprocessorname.param().abi()) } #[inline] pub unsafe fn AddPrintProcessorW(pname: P0, penvironment: P1, ppathname: P2, pprintprocessorname: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrintProcessorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, ppathname : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AddPrintProcessorW(pname.into_param().abi(), penvironment.into_param().abi(), ppathname.into_param().abi(), pprintprocessorname.into_param().abi()) + AddPrintProcessorW(pname.param().abi(), penvironment.param().abi(), ppathname.param().abi(), pprintprocessorname.param().abi()) } #[inline] pub unsafe fn AddPrintProvidorA(pname: P0, level: u32, pprovidorinfo: *const u8) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, pprovidorinfo) + AddPrintProvidorA(pname.param().abi(), level, pprovidorinfo) } #[inline] pub unsafe fn AddPrintProvidorW(pname: P0, level: u32, pprovidorinfo: *const u8) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, pprovidorinfo) + AddPrintProvidorW(pname.param().abi(), level, pprovidorinfo) } #[inline] pub unsafe fn AddPrinterA(pname: P0, level: u32, pprinter: *const u8) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, pprinter); + let result__ = AddPrinterA(pname.param().abi(), level, pprinter); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn AddPrinterConnection2A(hwnd: P0, pszname: P1, dwlevel: u32, pconnectioninfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszname.into_param().abi(), dwlevel, pconnectioninfo) + AddPrinterConnection2A(hwnd.param().abi(), pszname.param().abi(), dwlevel, pconnectioninfo) } #[inline] pub unsafe fn AddPrinterConnection2W(hwnd: P0, pszname: P1, dwlevel: u32, pconnectioninfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszname.into_param().abi(), dwlevel, pconnectioninfo) + AddPrinterConnection2W(hwnd.param().abi(), pszname.param().abi(), dwlevel, pconnectioninfo) } #[inline] pub unsafe fn AddPrinterConnectionA(pname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterConnectionA(pname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AddPrinterConnectionA(pname.into_param().abi()) + AddPrinterConnectionA(pname.param().abi()) } #[inline] pub unsafe fn AddPrinterConnectionW(pname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AddPrinterConnectionW(pname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AddPrinterConnectionW(pname.into_param().abi()) + AddPrinterConnectionW(pname.param().abi()) } #[inline] pub unsafe fn AddPrinterDriverA(pname: P0, level: u32, pdriverinfo: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, lpbdriverinfo, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, lpbdriverinfo, dwfilecopyflags) + AddPrinterDriverExW(pname.param().abi(), level, lpbdriverinfo, dwfilecopyflags) } #[inline] pub unsafe fn AddPrinterDriverW(pname: P0, level: u32, pdriverinfo: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, pdriverinfo).ok() + AddPrinterDriverW(pname.param().abi(), level, pdriverinfo).ok() } #[inline] pub unsafe fn AddPrinterW(pname: P0, level: u32, pprinter: *const u8) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, pprinter); + let result__ = AddPrinterW(pname.param().abi(), level, pprinter); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn AdvancedDocumentPropertiesA(hwnd: P0, hprinter: P1, pdevicename: P2, pdevmodeoutput: Option<*mut super::Gdi::DEVMODEA>, pdevmodeinput: Option<*const super::Gdi::DEVMODEA>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AdvancedDocumentPropertiesA(hwnd : super::super::Foundation:: HWND, hprinter : super::super::Foundation:: HANDLE, pdevicename : windows_core::PCSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEA, pdevmodeinput : *const super::Gdi:: DEVMODEA) -> i32); - AdvancedDocumentPropertiesA(hwnd.into_param().abi(), hprinter.into_param().abi(), pdevicename.into_param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null()))) + AdvancedDocumentPropertiesA(hwnd.param().abi(), hprinter.param().abi(), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn AdvancedDocumentPropertiesW(hwnd: P0, hprinter: P1, pdevicename: P2, pdevmodeoutput: Option<*mut super::Gdi::DEVMODEW>, pdevmodeinput: Option<*const super::Gdi::DEVMODEW>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn AdvancedDocumentPropertiesW(hwnd : super::super::Foundation:: HWND, hprinter : super::super::Foundation:: HANDLE, pdevicename : windows_core::PCWSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEW, pdevmodeinput : *const super::Gdi:: DEVMODEW) -> i32); - AdvancedDocumentPropertiesW(hwnd.into_param().abi(), hprinter.into_param().abi(), pdevicename.into_param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null()))) + AdvancedDocumentPropertiesW(hwnd.param().abi(), hprinter.param().abi(), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: Option<*const PRINTER_NOTIFY_INFO_DATA>, fdwflags: u32) -> super::super::Foundation::BOOL { @@ -237,386 +237,386 @@ pub unsafe fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, #[inline] pub unsafe fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc: P0, fdwfilterflags: u32, fdwoptions: u32, hnotify: P1, pprinternotifyoptions: *const PRINTER_NOTIFY_OPTIONS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprinterrpc.into_param().abi(), fdwfilterflags, fdwoptions, hnotify.into_param().abi(), pprinternotifyoptions) + CallRouterFindFirstPrinterChangeNotification(hprinterrpc.param().abi(), fdwfilterflags, fdwoptions, hnotify.param().abi(), pprinternotifyoptions) } #[inline] pub unsafe fn ClosePrinter(hprinter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ClosePrinter(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ClosePrinter(hprinter.into_param().abi()).ok() + ClosePrinter(hprinter.param().abi()).ok() } #[inline] pub unsafe fn CloseSpoolFileHandle(hprinter: P0, hspoolfile: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn CloseSpoolFileHandle(hprinter : super::super::Foundation:: HANDLE, hspoolfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CloseSpoolFileHandle(hprinter.into_param().abi(), hspoolfile.into_param().abi()) + CloseSpoolFileHandle(hprinter.param().abi(), hspoolfile.param().abi()) } #[inline] pub unsafe fn CommitSpoolData(hprinter: P0, hspoolfile: P1, cbcommit: u32) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn CommitSpoolData(hprinter : super::super::Foundation:: HANDLE, hspoolfile : super::super::Foundation:: HANDLE, cbcommit : u32) -> super::super::Foundation:: HANDLE); - CommitSpoolData(hprinter.into_param().abi(), hspoolfile.into_param().abi(), cbcommit) + CommitSpoolData(hprinter.param().abi(), hspoolfile.param().abi(), cbcommit) } #[inline] pub unsafe fn CommonPropertySheetUIA(hwndowner: P0, pfnpropsheetui: PFNPROPSHEETUI, lparam: P1, presult: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndowner.into_param().abi(), pfnpropsheetui, lparam.into_param().abi(), core::mem::transmute(presult.unwrap_or(std::ptr::null_mut()))) + CommonPropertySheetUIA(hwndowner.param().abi(), pfnpropsheetui, lparam.param().abi(), core::mem::transmute(presult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn CommonPropertySheetUIW(hwndowner: P0, pfnpropsheetui: PFNPROPSHEETUI, lparam: P1, presult: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndowner.into_param().abi(), pfnpropsheetui, lparam.into_param().abi(), core::mem::transmute(presult.unwrap_or(std::ptr::null_mut()))) + CommonPropertySheetUIW(hwndowner.param().abi(), pfnpropsheetui, lparam.param().abi(), core::mem::transmute(presult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ConfigurePortA(pname: P0, hwnd: P1, pportname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwnd.into_param().abi(), pportname.into_param().abi()) + ConfigurePortA(pname.param().abi(), hwnd.param().abi(), pportname.param().abi()) } #[inline] pub unsafe fn ConfigurePortW(pname: P0, hwnd: P1, pportname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwnd.into_param().abi(), pportname.into_param().abi()) + ConfigurePortW(pname.param().abi(), hwnd.param().abi(), pportname.param().abi()) } #[inline] pub unsafe fn ConnectToPrinterDlg(hwnd: P0, flags: u32) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ConnectToPrinterDlg(hwnd : super::super::Foundation:: HWND, flags : u32) -> super::super::Foundation:: HANDLE); - ConnectToPrinterDlg(hwnd.into_param().abi(), flags) + ConnectToPrinterDlg(hwnd.param().abi(), flags) } #[inline] pub unsafe fn CorePrinterDriverInstalledA(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CorePrinterDriverInstalledA(pszserver.into_param().abi(), pszenvironment.into_param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| result__) + CorePrinterDriverInstalledA(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| result__) } #[inline] pub unsafe fn CorePrinterDriverInstalledW(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CorePrinterDriverInstalledW(pszserver.into_param().abi(), pszenvironment.into_param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| result__) + CorePrinterDriverInstalledW(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| result__) } #[inline] pub unsafe fn CreatePrintAsyncNotifyChannel(pszname: P0, pnotificationtype: *const windows_core::GUID, euserfilter: PrintAsyncNotifyUserFilter, econversationstyle: PrintAsyncNotifyConversationStyle, pcallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CreatePrintAsyncNotifyChannel(pszname.into_param().abi(), pnotificationtype, euserfilter, econversationstyle, pcallback.into_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] pub unsafe fn CreatePrinterIC(hprinter: P0, pdevmode: Option<*const super::Gdi::DEVMODEW>) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn CreatePrinterIC(hprinter : super::super::Foundation:: HANDLE, pdevmode : *const super::Gdi:: DEVMODEW) -> super::super::Foundation:: HANDLE); - CreatePrinterIC(hprinter.into_param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null()))) + CreatePrinterIC(hprinter.param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DeleteFormA(hprinter: P0, pformname: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeleteFormA(hprinter : super::super::Foundation:: HANDLE, pformname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeleteFormA(hprinter.into_param().abi(), pformname.into_param().abi()) + DeleteFormA(hprinter.param().abi(), pformname.param().abi()) } #[inline] pub unsafe fn DeleteFormW(hprinter: P0, pformname: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeleteFormW(hprinter : super::super::Foundation:: HANDLE, pformname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeleteFormW(hprinter.into_param().abi(), pformname.into_param().abi()) + DeleteFormW(hprinter.param().abi(), pformname.param().abi()) } #[inline] pub unsafe fn DeleteJobNamedProperty(hprinter: P0, jobid: u32, pszname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeleteJobNamedProperty(hprinter : super::super::Foundation:: HANDLE, jobid : u32, pszname : windows_core::PCWSTR) -> u32); - DeleteJobNamedProperty(hprinter.into_param().abi(), jobid, pszname.into_param().abi()) + DeleteJobNamedProperty(hprinter.param().abi(), jobid, pszname.param().abi()) } #[inline] pub unsafe fn DeleteMonitorA(pname: P0, penvironment: P1, pmonitorname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeleteMonitorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pmonitorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeleteMonitorA(pname.into_param().abi(), penvironment.into_param().abi(), pmonitorname.into_param().abi()).ok() + DeleteMonitorA(pname.param().abi(), penvironment.param().abi(), pmonitorname.param().abi()).ok() } #[inline] pub unsafe fn DeleteMonitorW(pname: P0, penvironment: P1, pmonitorname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeleteMonitorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pmonitorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeleteMonitorW(pname.into_param().abi(), penvironment.into_param().abi(), pmonitorname.into_param().abi()).ok() + DeleteMonitorW(pname.param().abi(), penvironment.param().abi(), pmonitorname.param().abi()).ok() } #[inline] pub unsafe fn DeletePortA(pname: P0, hwnd: P1, pportname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwnd.into_param().abi(), pportname.into_param().abi()).ok() + DeletePortA(pname.param().abi(), hwnd.param().abi(), pportname.param().abi()).ok() } #[inline] pub unsafe fn DeletePortW(pname: P0, hwnd: P1, pportname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwnd.into_param().abi(), pportname.into_param().abi()).ok() + DeletePortW(pname.param().abi(), hwnd.param().abi(), pportname.param().abi()).ok() } #[inline] pub unsafe fn DeletePrintProcessorA(pname: P0, penvironment: P1, pprintprocessorname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrintProcessorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeletePrintProcessorA(pname.into_param().abi(), penvironment.into_param().abi(), pprintprocessorname.into_param().abi()) + DeletePrintProcessorA(pname.param().abi(), penvironment.param().abi(), pprintprocessorname.param().abi()) } #[inline] pub unsafe fn DeletePrintProcessorW(pname: P0, penvironment: P1, pprintprocessorname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrintProcessorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeletePrintProcessorW(pname.into_param().abi(), penvironment.into_param().abi(), pprintprocessorname.into_param().abi()) + DeletePrintProcessorW(pname.param().abi(), penvironment.param().abi(), pprintprocessorname.param().abi()) } #[inline] pub unsafe fn DeletePrintProvidorA(pname: P0, penvironment: P1, pprintprovidorname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrintProvidorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pprintprovidorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeletePrintProvidorA(pname.into_param().abi(), penvironment.into_param().abi(), pprintprovidorname.into_param().abi()) + DeletePrintProvidorA(pname.param().abi(), penvironment.param().abi(), pprintprovidorname.param().abi()) } #[inline] pub unsafe fn DeletePrintProvidorW(pname: P0, penvironment: P1, pprintprovidorname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrintProvidorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pprintprovidorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeletePrintProvidorW(pname.into_param().abi(), penvironment.into_param().abi(), pprintprovidorname.into_param().abi()) + DeletePrintProvidorW(pname.param().abi(), penvironment.param().abi(), pprintprovidorname.param().abi()) } #[inline] pub unsafe fn DeletePrinter(hprinter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinter(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeletePrinter(hprinter.into_param().abi()).ok() + DeletePrinter(hprinter.param().abi()).ok() } #[inline] pub unsafe fn DeletePrinterConnectionA(pname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterConnectionA(pname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeletePrinterConnectionA(pname.into_param().abi()) + DeletePrinterConnectionA(pname.param().abi()) } #[inline] pub unsafe fn DeletePrinterConnectionW(pname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterConnectionW(pname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeletePrinterConnectionW(pname.into_param().abi()) + DeletePrinterConnectionW(pname.param().abi()) } #[inline] pub unsafe fn DeletePrinterDataA(hprinter: P0, pvaluename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDataA(hprinter : super::super::Foundation:: HANDLE, pvaluename : windows_core::PCSTR) -> u32); - DeletePrinterDataA(hprinter.into_param().abi(), pvaluename.into_param().abi()) + DeletePrinterDataA(hprinter.param().abi(), pvaluename.param().abi()) } #[inline] pub unsafe fn DeletePrinterDataExA(hprinter: P0, pkeyname: P1, pvaluename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDataExA(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCSTR, pvaluename : windows_core::PCSTR) -> u32); - DeletePrinterDataExA(hprinter.into_param().abi(), pkeyname.into_param().abi(), pvaluename.into_param().abi()) + DeletePrinterDataExA(hprinter.param().abi(), pkeyname.param().abi(), pvaluename.param().abi()) } #[inline] pub unsafe fn DeletePrinterDataExW(hprinter: P0, pkeyname: P1, pvaluename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDataExW(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCWSTR, pvaluename : windows_core::PCWSTR) -> u32); - DeletePrinterDataExW(hprinter.into_param().abi(), pkeyname.into_param().abi(), pvaluename.into_param().abi()) + DeletePrinterDataExW(hprinter.param().abi(), pkeyname.param().abi(), pvaluename.param().abi()) } #[inline] pub unsafe fn DeletePrinterDataW(hprinter: P0, pvaluename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDataW(hprinter : super::super::Foundation:: HANDLE, pvaluename : windows_core::PCWSTR) -> u32); - DeletePrinterDataW(hprinter.into_param().abi(), pvaluename.into_param().abi()) + DeletePrinterDataW(hprinter.param().abi(), pvaluename.param().abi()) } #[inline] pub unsafe fn DeletePrinterDriverA(pname: P0, penvironment: P1, pdrivername: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pdrivername : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeletePrinterDriverA(pname.into_param().abi(), penvironment.into_param().abi(), pdrivername.into_param().abi()) + DeletePrinterDriverA(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi()) } #[inline] pub unsafe fn DeletePrinterDriverExA(pname: P0, penvironment: P1, pdrivername: P2, dwdeleteflag: u32, dwversionflag: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), penvironment.into_param().abi(), pdrivername.into_param().abi(), dwdeleteflag, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), penvironment.into_param().abi(), pdrivername.into_param().abi(), dwdeleteflag, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverPackageA(pszserver : windows_core::PCSTR, pszinfpath : windows_core::PCSTR, pszenvironment : windows_core::PCSTR) -> windows_core::HRESULT); - DeletePrinterDriverPackageA(pszserver.into_param().abi(), pszinfpath.into_param().abi(), pszenvironment.into_param().abi()).ok() + DeletePrinterDriverPackageA(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi()).ok() } #[inline] pub unsafe fn DeletePrinterDriverPackageW(pszserver: P0, pszinfpath: P1, pszenvironment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverPackageW(pszserver : windows_core::PCWSTR, pszinfpath : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR) -> windows_core::HRESULT); - DeletePrinterDriverPackageW(pszserver.into_param().abi(), pszinfpath.into_param().abi(), pszenvironment.into_param().abi()).ok() + DeletePrinterDriverPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi()).ok() } #[inline] pub unsafe fn DeletePrinterDriverW(pname: P0, penvironment: P1, pdrivername: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pdrivername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeletePrinterDriverW(pname.into_param().abi(), penvironment.into_param().abi(), pdrivername.into_param().abi()) + DeletePrinterDriverW(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi()) } #[inline] pub unsafe fn DeletePrinterIC(hprinteric: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterIC(hprinteric : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeletePrinterIC(hprinteric.into_param().abi()) + DeletePrinterIC(hprinteric.param().abi()) } #[inline] pub unsafe fn DeletePrinterKeyA(hprinter: P0, pkeyname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterKeyA(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCSTR) -> u32); - DeletePrinterKeyA(hprinter.into_param().abi(), pkeyname.into_param().abi()) + DeletePrinterKeyA(hprinter.param().abi(), pkeyname.param().abi()) } #[inline] pub unsafe fn DeletePrinterKeyW(hprinter: P0, pkeyname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DeletePrinterKeyW(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCWSTR) -> u32); - DeletePrinterKeyW(hprinter.into_param().abi(), pkeyname.into_param().abi()) + DeletePrinterKeyW(hprinter.param().abi(), pkeyname.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DevQueryPrint(hprinter: P0, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DevQueryPrint(hprinter : super::super::Foundation:: HANDLE, pdevmode : *const super::Gdi:: DEVMODEA, presid : *mut u32) -> super::super::Foundation:: BOOL); - DevQueryPrint(hprinter.into_param().abi(), pdevmode, presid) + DevQueryPrint(hprinter.param().abi(), pdevmode, presid) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -628,278 +628,278 @@ pub unsafe fn DevQueryPrintEx(pdqpinfo: *mut DEVQUERYPRINT_INFO) -> super::super #[inline] pub unsafe fn DocumentPropertiesA(hwnd: P0, hprinter: P1, pdevicename: P2, pdevmodeoutput: Option<*mut super::Gdi::DEVMODEA>, pdevmodeinput: Option<*const super::Gdi::DEVMODEA>, fmode: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DocumentPropertiesA(hwnd : super::super::Foundation:: HWND, hprinter : super::super::Foundation:: HANDLE, pdevicename : windows_core::PCSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEA, pdevmodeinput : *const super::Gdi:: DEVMODEA, fmode : u32) -> i32); - DocumentPropertiesA(hwnd.into_param().abi(), hprinter.into_param().abi(), pdevicename.into_param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null())), fmode) + DocumentPropertiesA(hwnd.param().abi(), hprinter.param().abi(), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null())), fmode) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DocumentPropertiesW(hwnd: P0, hprinter: P1, pdevicename: P2, pdevmodeoutput: Option<*mut super::Gdi::DEVMODEW>, pdevmodeinput: Option<*const super::Gdi::DEVMODEW>, fmode: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn DocumentPropertiesW(hwnd : super::super::Foundation:: HWND, hprinter : super::super::Foundation:: HANDLE, pdevicename : windows_core::PCWSTR, pdevmodeoutput : *mut super::Gdi:: DEVMODEW, pdevmodeinput : *const super::Gdi:: DEVMODEW, fmode : u32) -> i32); - DocumentPropertiesW(hwnd.into_param().abi(), hprinter.into_param().abi(), pdevicename.into_param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null())), fmode) + DocumentPropertiesW(hwnd.param().abi(), hprinter.param().abi(), pdevicename.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null())), fmode) } #[inline] pub unsafe fn EndDocPrinter(hprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EndDocPrinter(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - EndDocPrinter(hprinter.into_param().abi()) + EndDocPrinter(hprinter.param().abi()) } #[inline] pub unsafe fn EndPagePrinter(hprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EndPagePrinter(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - EndPagePrinter(hprinter.into_param().abi()) + EndPagePrinter(hprinter.param().abi()) } #[inline] pub unsafe fn EnumFormsA(hprinter: P0, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumFormsA(hprinter : super::super::Foundation:: HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumFormsA(hprinter.into_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()), pcbneeded, pcreturned) + EnumFormsA(hprinter.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()), pcbneeded, pcreturned) } #[inline] pub unsafe fn EnumFormsW(hprinter: P0, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumFormsW(hprinter : super::super::Foundation:: HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumFormsW(hprinter.into_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()), pcbneeded, pcreturned) + EnumFormsW(hprinter.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()), pcbneeded, pcreturned) } #[inline] pub unsafe fn EnumJobNamedProperties(hprinter: P0, jobid: u32, pcproperties: *mut u32, ppproperties: *mut *mut PrintNamedProperty) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumJobNamedProperties(hprinter : super::super::Foundation:: HANDLE, jobid : u32, pcproperties : *mut u32, ppproperties : *mut *mut PrintNamedProperty) -> u32); - EnumJobNamedProperties(hprinter.into_param().abi(), jobid, pcproperties, ppproperties) + EnumJobNamedProperties(hprinter.param().abi(), jobid, pcproperties, ppproperties) } #[inline] pub unsafe fn EnumJobsA(hprinter: P0, firstjob: u32, nojobs: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumJobsA(hprinter : super::super::Foundation:: HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumJobsA(hprinter.into_param().abi(), 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()), pcbneeded, pcreturned).ok() + EnumJobsA(hprinter.param().abi(), 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()), pcbneeded, pcreturned).ok() } #[inline] pub unsafe fn EnumJobsW(hprinter: P0, firstjob: u32, nojobs: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumJobsW(hprinter : super::super::Foundation:: HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumJobsW(hprinter.into_param().abi(), 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()), pcbneeded, pcreturned).ok() + EnumJobsW(hprinter.param().abi(), 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()), pcbneeded, 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 where - P0: windows_core::IntoParam, + 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.into_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()), pcbneeded, 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()), pcbneeded, pcreturned) } #[inline] pub unsafe fn EnumMonitorsW(pname: P0, level: u32, pmonitor: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_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()), pcbneeded, 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()), pcbneeded, pcreturned) } #[inline] pub unsafe fn EnumPortsA(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_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()), pcbneeded, 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()), pcbneeded, pcreturned) } #[inline] pub unsafe fn EnumPortsW(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_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()), pcbneeded, 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()), pcbneeded, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pprintprocessorname.into_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()), pcbneeded, 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()), pcbneeded, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pprintprocessorname.into_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()), pcbneeded, 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()), pcbneeded, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), pcbneeded, 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()), pcbneeded, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), pcbneeded, 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()), pcbneeded, pcreturned) } #[inline] pub unsafe fn EnumPrinterDataA(hprinter: P0, dwindex: u32, pvaluename: &mut [u8], pcbvaluename: *mut u32, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbdata: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDataA(hprinter : super::super::Foundation:: 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(hprinter.into_param().abi(), dwindex, core::mem::transmute(pvaluename.as_ptr()), pvaluename.len().try_into().unwrap(), pcbvaluename, core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))) + EnumPrinterDataA(hprinter.param().abi(), dwindex, core::mem::transmute(pvaluename.as_ptr()), pvaluename.len().try_into().unwrap(), pcbvaluename, core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn EnumPrinterDataExA(hprinter: P0, pkeyname: P1, penumvalues: Option<&mut [u8]>, pcbenumvalues: *mut u32, pnenumvalues: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDataExA(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCSTR, penumvalues : *mut u8, cbenumvalues : u32, pcbenumvalues : *mut u32, pnenumvalues : *mut u32) -> u32); - EnumPrinterDataExA(hprinter.into_param().abi(), pkeyname.into_param().abi(), core::mem::transmute(penumvalues.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), penumvalues.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbenumvalues, pnenumvalues) + EnumPrinterDataExA(hprinter.param().abi(), pkeyname.param().abi(), core::mem::transmute(penumvalues.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), penumvalues.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbenumvalues, pnenumvalues) } #[inline] pub unsafe fn EnumPrinterDataExW(hprinter: P0, pkeyname: P1, penumvalues: Option<&mut [u8]>, pcbenumvalues: *mut u32, pnenumvalues: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDataExW(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCWSTR, penumvalues : *mut u8, cbenumvalues : u32, pcbenumvalues : *mut u32, pnenumvalues : *mut u32) -> u32); - EnumPrinterDataExW(hprinter.into_param().abi(), pkeyname.into_param().abi(), core::mem::transmute(penumvalues.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), penumvalues.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbenumvalues, pnenumvalues) + EnumPrinterDataExW(hprinter.param().abi(), pkeyname.param().abi(), core::mem::transmute(penumvalues.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), penumvalues.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbenumvalues, pnenumvalues) } #[inline] pub unsafe fn EnumPrinterDataW(hprinter: P0, dwindex: u32, pvaluename: windows_core::PWSTR, cbvaluename: u32, pcbvaluename: *mut u32, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbdata: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterDataW(hprinter : super::super::Foundation:: 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(hprinter.into_param().abi(), dwindex, core::mem::transmute(pvaluename), cbvaluename, pcbvaluename, core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))) + EnumPrinterDataW(hprinter.param().abi(), dwindex, core::mem::transmute(pvaluename), cbvaluename, pcbvaluename, core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn EnumPrinterDriversA(pname: P0, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), pcbneeded, 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()), pcbneeded, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), pcbneeded, 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()), pcbneeded, pcreturned).ok() } #[inline] pub unsafe fn EnumPrinterKeyA(hprinter: P0, pkeyname: P1, psubkey: Option<&mut [u8]>, pcbsubkey: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterKeyA(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCSTR, psubkey : windows_core::PSTR, cbsubkey : u32, pcbsubkey : *mut u32) -> u32); - EnumPrinterKeyA(hprinter.into_param().abi(), pkeyname.into_param().abi(), core::mem::transmute(psubkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psubkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbsubkey) + EnumPrinterKeyA(hprinter.param().abi(), pkeyname.param().abi(), core::mem::transmute(psubkey.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psubkey.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbsubkey) } #[inline] pub unsafe fn EnumPrinterKeyW(hprinter: P0, pkeyname: P1, psubkey: windows_core::PWSTR, cbsubkey: u32, pcbsubkey: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn EnumPrinterKeyW(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCWSTR, psubkey : windows_core::PWSTR, cbsubkey : u32, pcbsubkey : *mut u32) -> u32); - EnumPrinterKeyW(hprinter.into_param().abi(), pkeyname.into_param().abi(), core::mem::transmute(psubkey), cbsubkey, pcbsubkey) + EnumPrinterKeyW(hprinter.param().abi(), pkeyname.param().abi(), core::mem::transmute(psubkey), cbsubkey, pcbsubkey) } #[inline] pub unsafe fn EnumPrintersA(flags: u32, name: P0, level: u32, pprinterenum: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(flags, name.into_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()), pcbneeded, 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()), pcbneeded, pcreturned).ok() } #[inline] pub unsafe fn EnumPrintersW(flags: u32, name: P0, level: u32, pprinterenum: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(flags, name.into_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()), pcbneeded, 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()), pcbneeded, pcreturned).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ExtDeviceMode(hwnd: P0, hinst: P1, pdevmodeoutput: Option<*mut super::Gdi::DEVMODEA>, pdevicename: P2, pport: P3, pdevmodeinput: Option<*const super::Gdi::DEVMODEA>, pprofile: P4, fmode: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(hwnd.into_param().abi(), hinst.into_param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), pdevicename.into_param().abi(), pport.into_param().abi(), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null())), pprofile.into_param().abi(), fmode) + ExtDeviceMode(hwnd.param().abi(), hinst.param().abi(), core::mem::transmute(pdevmodeoutput.unwrap_or(std::ptr::null_mut())), pdevicename.param().abi(), pport.param().abi(), core::mem::transmute(pdevmodeinput.unwrap_or(std::ptr::null())), pprofile.param().abi(), fmode) } #[inline] pub unsafe fn FindClosePrinterChangeNotification(hchange: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn FindClosePrinterChangeNotification(hchange : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindClosePrinterChangeNotification(hchange.into_param().abi()) + FindClosePrinterChangeNotification(hchange.param().abi()) } #[inline] pub unsafe fn FindFirstPrinterChangeNotification(hprinter: P0, fdwfilter: u32, fdwoptions: u32, pprinternotifyoptions: Option<*const core::ffi::c_void>) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn FindFirstPrinterChangeNotification(hprinter : super::super::Foundation:: HANDLE, fdwfilter : u32, fdwoptions : u32, pprinternotifyoptions : *const core::ffi::c_void) -> super::super::Foundation:: HANDLE); - FindFirstPrinterChangeNotification(hprinter.into_param().abi(), fdwfilter, fdwoptions, core::mem::transmute(pprinternotifyoptions.unwrap_or(std::ptr::null()))) + FindFirstPrinterChangeNotification(hprinter.param().abi(), fdwfilter, fdwoptions, core::mem::transmute(pprinternotifyoptions.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FindNextPrinterChangeNotification(hchange: P0, pdwchange: Option<*mut u32>, pvreserved: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hchange.into_param().abi(), core::mem::transmute(pdwchange.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(ppprinternotifyinfo.unwrap_or(std::ptr::null_mut()))) + FindNextPrinterChangeNotification(hchange.param().abi(), core::mem::transmute(pdwchange.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(ppprinternotifyinfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FlushPrinter(hprinter: P0, pbuf: Option<*const core::ffi::c_void>, cbbuf: u32, pcwritten: *mut u32, csleep: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn FlushPrinter(hprinter : super::super::Foundation:: HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32, csleep : u32) -> super::super::Foundation:: BOOL); - FlushPrinter(hprinter.into_param().abi(), core::mem::transmute(pbuf.unwrap_or(std::ptr::null())), cbbuf, pcwritten, csleep) + FlushPrinter(hprinter.param().abi(), core::mem::transmute(pbuf.unwrap_or(std::ptr::null())), cbbuf, pcwritten, csleep) } #[inline] pub unsafe fn FreePrintNamedPropertyArray(ppproperties: Option<&mut [*mut PrintNamedProperty]>) { @@ -919,142 +919,142 @@ pub unsafe fn FreePrinterNotifyInfo(pprinternotifyinfo: *const PRINTER_NOTIFY_IN #[inline] pub unsafe fn GdiDeleteSpoolFileHandle(spoolfilehandle: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiDeleteSpoolFileHandle(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GdiDeleteSpoolFileHandle(spoolfilehandle.into_param().abi()) + GdiDeleteSpoolFileHandle(spoolfilehandle.param().abi()) } #[inline] pub unsafe fn GdiEndDocEMF(spoolfilehandle: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiEndDocEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GdiEndDocEMF(spoolfilehandle.into_param().abi()) + GdiEndDocEMF(spoolfilehandle.param().abi()) } #[inline] pub unsafe fn GdiEndPageEMF(spoolfilehandle: P0, dwoptimization: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiEndPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE, dwoptimization : u32) -> super::super::Foundation:: BOOL); - GdiEndPageEMF(spoolfilehandle.into_param().abi(), dwoptimization) + GdiEndPageEMF(spoolfilehandle.param().abi(), dwoptimization) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdiGetDC(spoolfilehandle: P0) -> super::Gdi::HDC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiGetDC(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::Gdi:: HDC); - GdiGetDC(spoolfilehandle.into_param().abi()) + GdiGetDC(spoolfilehandle.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdiGetDevmodeForPage(spoolfilehandle: P0, dwpagenumber: u32, pcurrdm: *mut *mut super::Gdi::DEVMODEW, plastdm: *mut *mut super::Gdi::DEVMODEW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(spoolfilehandle.into_param().abi(), dwpagenumber, pcurrdm, plastdm) + GdiGetDevmodeForPage(spoolfilehandle.param().abi(), dwpagenumber, pcurrdm, plastdm) } #[inline] pub unsafe fn GdiGetPageCount(spoolfilehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiGetPageCount(spoolfilehandle : super::super::Foundation:: HANDLE) -> u32); - GdiGetPageCount(spoolfilehandle.into_param().abi()) + GdiGetPageCount(spoolfilehandle.param().abi()) } #[inline] pub unsafe fn GdiGetPageHandle(spoolfilehandle: P0, page: u32, pdwpagetype: *mut u32) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiGetPageHandle(spoolfilehandle : super::super::Foundation:: HANDLE, page : u32, pdwpagetype : *mut u32) -> super::super::Foundation:: HANDLE); - GdiGetPageHandle(spoolfilehandle.into_param().abi(), page, pdwpagetype) + GdiGetPageHandle(spoolfilehandle.param().abi(), page, pdwpagetype) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdiGetSpoolFileHandle(pwszprintername: P0, pdevmode: *mut super::Gdi::DEVMODEW, pwszdocname: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiGetSpoolFileHandle(pwszprintername : windows_core::PCWSTR, pdevmode : *mut super::Gdi:: DEVMODEW, pwszdocname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - GdiGetSpoolFileHandle(pwszprintername.into_param().abi(), pdevmode, pwszdocname.into_param().abi()) + GdiGetSpoolFileHandle(pwszprintername.param().abi(), pdevmode, pwszdocname.param().abi()) } #[inline] pub unsafe fn GdiPlayPageEMF(spoolfilehandle: P0, hemf: P1, prectdocument: *mut super::super::Foundation::RECT, prectborder: *mut super::super::Foundation::RECT, prectclip: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(spoolfilehandle.into_param().abi(), hemf.into_param().abi(), prectdocument, prectborder, prectclip) + GdiPlayPageEMF(spoolfilehandle.param().abi(), hemf.param().abi(), prectdocument, prectborder, prectclip) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdiResetDCEMF(spoolfilehandle: P0, pcurrdm: *mut super::Gdi::DEVMODEW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiResetDCEMF(spoolfilehandle : super::super::Foundation:: HANDLE, pcurrdm : *mut super::Gdi:: DEVMODEW) -> super::super::Foundation:: BOOL); - GdiResetDCEMF(spoolfilehandle.into_param().abi(), pcurrdm) + GdiResetDCEMF(spoolfilehandle.param().abi(), pcurrdm) } #[cfg(feature = "Win32_Storage_Xps")] #[inline] pub unsafe fn GdiStartDocEMF(spoolfilehandle: P0, pdocinfo: *mut super::super::Storage::Xps::DOCINFOW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(spoolfilehandle.into_param().abi(), pdocinfo) + GdiStartDocEMF(spoolfilehandle.param().abi(), pdocinfo) } #[inline] pub unsafe fn GdiStartPageEMF(spoolfilehandle: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GdiStartPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - GdiStartPageEMF(spoolfilehandle.into_param().abi()) + GdiStartPageEMF(spoolfilehandle.param().abi()) } #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszdirectory.into_param().abi(), psplclientinfo, dwlevel, core::mem::transmute(pszsourcedir), pcchsourcedirsize, core::mem::transmute(psztargetdir), pcchtargetdirsize, dwflags) + GenerateCopyFilePaths(pszprintername.param().abi(), pszdirectory.param().abi(), psplclientinfo, dwlevel, core::mem::transmute(pszsourcedir), pcchsourcedirsize, core::mem::transmute(psztargetdir), pcchtargetdirsize, dwflags) } #[inline] pub unsafe fn GetCPSUIUserData(hdlg: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("compstui.dll" "system" fn GetCPSUIUserData(hdlg : super::super::Foundation:: HWND) -> usize); - GetCPSUIUserData(hdlg.into_param().abi()) + GetCPSUIUserData(hdlg.param().abi()) } #[inline] pub unsafe fn GetCorePrinterDriversA(pszserver: P0, pszenvironment: P1, pszzcoredriverdependencies: P2, pcoreprinterdrivers: &mut [CORE_PRINTER_DRIVERA]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetCorePrinterDriversA(pszserver : windows_core::PCSTR, pszenvironment : windows_core::PCSTR, pszzcoredriverdependencies : windows_core::PCSTR, ccoreprinterdrivers : u32, pcoreprinterdrivers : *mut CORE_PRINTER_DRIVERA) -> windows_core::HRESULT); - GetCorePrinterDriversA(pszserver.into_param().abi(), pszenvironment.into_param().abi(), pszzcoredriverdependencies.into_param().abi(), pcoreprinterdrivers.len().try_into().unwrap(), core::mem::transmute(pcoreprinterdrivers.as_ptr())).ok() + GetCorePrinterDriversA(pszserver.param().abi(), pszenvironment.param().abi(), pszzcoredriverdependencies.param().abi(), pcoreprinterdrivers.len().try_into().unwrap(), core::mem::transmute(pcoreprinterdrivers.as_ptr())).ok() } #[inline] pub unsafe fn GetCorePrinterDriversW(pszserver: P0, pszenvironment: P1, pszzcoredriverdependencies: P2, pcoreprinterdrivers: &mut [CORE_PRINTER_DRIVERW]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetCorePrinterDriversW(pszserver : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR, pszzcoredriverdependencies : windows_core::PCWSTR, ccoreprinterdrivers : u32, pcoreprinterdrivers : *mut CORE_PRINTER_DRIVERW) -> windows_core::HRESULT); - GetCorePrinterDriversW(pszserver.into_param().abi(), pszenvironment.into_param().abi(), pszzcoredriverdependencies.into_param().abi(), pcoreprinterdrivers.len().try_into().unwrap(), core::mem::transmute(pcoreprinterdrivers.as_ptr())).ok() + GetCorePrinterDriversW(pszserver.param().abi(), pszenvironment.param().abi(), pszzcoredriverdependencies.param().abi(), pcoreprinterdrivers.len().try_into().unwrap(), core::mem::transmute(pcoreprinterdrivers.as_ptr())).ok() } #[inline] pub unsafe fn GetDefaultPrinterA(pszbuffer: windows_core::PSTR, pcchbuffer: *mut u32) -> super::super::Foundation::BOOL { @@ -1069,63 +1069,63 @@ pub unsafe fn GetDefaultPrinterW(pszbuffer: windows_core::PWSTR, pcchbuffer: *mu #[inline] pub unsafe fn GetFormA(hprinter: P0, pformname: P1, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetFormA(hprinter : super::super::Foundation:: HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetFormA(hprinter.into_param().abi(), pformname.into_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()), pcbneeded) + GetFormA(hprinter.param().abi(), 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()), pcbneeded) } #[inline] pub unsafe fn GetFormW(hprinter: P0, pformname: P1, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetFormW(hprinter : super::super::Foundation:: HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetFormW(hprinter.into_param().abi(), pformname.into_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()), pcbneeded) + GetFormW(hprinter.param().abi(), 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()), pcbneeded) } #[inline] pub unsafe fn GetJobA(hprinter: P0, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetJobA(hprinter : super::super::Foundation:: HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetJobA(hprinter.into_param().abi(), 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()), pcbneeded) + GetJobA(hprinter.param().abi(), 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()), pcbneeded) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetJobAttributes(pprintername: P0, pdevmode: *const super::Gdi::DEVMODEW, pattributeinfo: *mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), pdevmode, pattributeinfo) + GetJobAttributes(pprintername.param().abi(), pdevmode, pattributeinfo) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetJobAttributesEx(pprintername: P0, pdevmode: *const super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: &mut [u8], dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), pdevmode, dwlevel, core::mem::transmute(pattributeinfo.as_ptr()), pattributeinfo.len().try_into().unwrap(), 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: P0, jobid: u32, pszname: P1, pvalue: *mut PrintPropertyValue) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetJobNamedPropertyValue(hprinter : super::super::Foundation:: HANDLE, jobid : u32, pszname : windows_core::PCWSTR, pvalue : *mut PrintPropertyValue) -> u32); - GetJobNamedPropertyValue(hprinter.into_param().abi(), jobid, pszname.into_param().abi(), pvalue) + GetJobNamedPropertyValue(hprinter.param().abi(), jobid, pszname.param().abi(), pvalue) } #[inline] pub unsafe fn GetJobW(hprinter: P0, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetJobW(hprinter : super::super::Foundation:: HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetJobW(hprinter.into_param().abi(), 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()), pcbneeded) + GetJobW(hprinter.param().abi(), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrintExecutionData(pdata: *mut PRINT_EXECUTION_DATA) -> super::super::Foundation::BOOL { @@ -1135,200 +1135,200 @@ pub unsafe fn GetPrintExecutionData(pdata: *mut PRINT_EXECUTION_DATA) -> super:: #[inline] pub unsafe fn GetPrintOutputInfo(hwnd: P0, pszprinter: P1, phfile: *mut super::super::Foundation::HANDLE, ppszoutputfile: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszprinter.into_param().abi(), phfile, ppszoutputfile).ok() + GetPrintOutputInfo(hwnd.param().abi(), pszprinter.param().abi(), phfile, ppszoutputfile).ok() } #[inline] pub unsafe fn GetPrintProcessorDirectoryA(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrintProcessorDirectoryW(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterA(hprinter: P0, level: u32, pprinter: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterA(hprinter : super::super::Foundation:: HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterA(hprinter.into_param().abi(), 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()), pcbneeded).ok() + GetPrinterA(hprinter.param().abi(), 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()), pcbneeded).ok() } #[inline] pub unsafe fn GetPrinterDataA(hprinter: P0, pvaluename: P1, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDataA(hprinter : super::super::Foundation:: HANDLE, pvaluename : windows_core::PCSTR, ptype : *mut u32, pdata : *mut u8, nsize : u32, pcbneeded : *mut u32) -> u32); - GetPrinterDataA(hprinter.into_param().abi(), pvaluename.into_param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) + GetPrinterDataA(hprinter.param().abi(), pvaluename.param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDataExA(hprinter: P0, pkeyname: P1, pvaluename: P2, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDataExA(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCSTR, pvaluename : windows_core::PCSTR, ptype : *mut u32, pdata : *mut u8, nsize : u32, pcbneeded : *mut u32) -> u32); - GetPrinterDataExA(hprinter.into_param().abi(), pkeyname.into_param().abi(), pvaluename.into_param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) + GetPrinterDataExA(hprinter.param().abi(), pkeyname.param().abi(), pvaluename.param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDataExW(hprinter: P0, pkeyname: P1, pvaluename: P2, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDataExW(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCWSTR, pvaluename : windows_core::PCWSTR, ptype : *mut u32, pdata : *mut u8, nsize : u32, pcbneeded : *mut u32) -> u32); - GetPrinterDataExW(hprinter.into_param().abi(), pkeyname.into_param().abi(), pvaluename.into_param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) + GetPrinterDataExW(hprinter.param().abi(), pkeyname.param().abi(), pvaluename.param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDataW(hprinter: P0, pvaluename: P1, ptype: Option<*mut u32>, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDataW(hprinter : super::super::Foundation:: HANDLE, pvaluename : windows_core::PCWSTR, ptype : *mut u32, pdata : *mut u8, nsize : u32, pcbneeded : *mut u32) -> u32); - GetPrinterDataW(hprinter.into_param().abi(), pvaluename.into_param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) + GetPrinterDataW(hprinter.param().abi(), pvaluename.param().abi(), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDriver2A(hwnd: P0, hprinter: P1, penvironment: P2, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2A(hwnd : super::super::Foundation:: HWND, hprinter : super::super::Foundation:: HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriver2A(hwnd.into_param().abi(), hprinter.into_param().abi(), penvironment.into_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()), pcbneeded) + GetPrinterDriver2A(hwnd.param().abi(), hprinter.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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDriver2W(hwnd: P0, hprinter: P1, penvironment: P2, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2W(hwnd : super::super::Foundation:: HWND, hprinter : super::super::Foundation:: HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriver2W(hwnd.into_param().abi(), hprinter.into_param().abi(), penvironment.into_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()), pcbneeded) + GetPrinterDriver2W(hwnd.param().abi(), hprinter.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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDriverA(hprinter: P0, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverA(hprinter : super::super::Foundation:: HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriverA(hprinter.into_param().abi(), penvironment.into_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()), pcbneeded) + GetPrinterDriverA(hprinter.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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDriverDirectoryA(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDriverDirectoryW(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), penvironment.into_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()), 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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterDriverPackagePathA(pszserver: P0, pszenvironment: P1, pszlanguage: P2, pszpackageid: P3, pszdriverpackagecab: Option<&mut [u8]>, pcchrequiredsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverPackagePathA(pszserver : windows_core::PCSTR, pszenvironment : windows_core::PCSTR, pszlanguage : windows_core::PCSTR, pszpackageid : windows_core::PCSTR, pszdriverpackagecab : windows_core::PSTR, cchdriverpackagecab : u32, pcchrequiredsize : *mut u32) -> windows_core::HRESULT); - GetPrinterDriverPackagePathA(pszserver.into_param().abi(), pszenvironment.into_param().abi(), pszlanguage.into_param().abi(), pszpackageid.into_param().abi(), core::mem::transmute(pszdriverpackagecab.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdriverpackagecab.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcchrequiredsize).ok() + GetPrinterDriverPackagePathA(pszserver.param().abi(), pszenvironment.param().abi(), pszlanguage.param().abi(), pszpackageid.param().abi(), core::mem::transmute(pszdriverpackagecab.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdriverpackagecab.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcchrequiredsize).ok() } #[inline] pub unsafe fn GetPrinterDriverPackagePathW(pszserver: P0, pszenvironment: P1, pszlanguage: P2, pszpackageid: P3, pszdriverpackagecab: Option<&mut [u16]>, pcchrequiredsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverPackagePathW(pszserver : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR, pszlanguage : windows_core::PCWSTR, pszpackageid : windows_core::PCWSTR, pszdriverpackagecab : windows_core::PWSTR, cchdriverpackagecab : u32, pcchrequiredsize : *mut u32) -> windows_core::HRESULT); - GetPrinterDriverPackagePathW(pszserver.into_param().abi(), pszenvironment.into_param().abi(), pszlanguage.into_param().abi(), pszpackageid.into_param().abi(), core::mem::transmute(pszdriverpackagecab.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdriverpackagecab.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcchrequiredsize).ok() + GetPrinterDriverPackagePathW(pszserver.param().abi(), pszenvironment.param().abi(), pszlanguage.param().abi(), pszpackageid.param().abi(), core::mem::transmute(pszdriverpackagecab.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdriverpackagecab.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcchrequiredsize).ok() } #[inline] pub unsafe fn GetPrinterDriverW(hprinter: P0, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverW(hprinter : super::super::Foundation:: HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterDriverW(hprinter.into_param().abi(), penvironment.into_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()), pcbneeded) + GetPrinterDriverW(hprinter.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()), pcbneeded) } #[inline] pub unsafe fn GetPrinterW(hprinter: P0, level: u32, pprinter: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetPrinterW(hprinter : super::super::Foundation:: HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); - GetPrinterW(hprinter.into_param().abi(), 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()), pcbneeded).ok() + GetPrinterW(hprinter.param().abi(), 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()), pcbneeded).ok() } #[inline] pub unsafe fn GetSpoolFileHandle(hprinter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn GetSpoolFileHandle(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = GetSpoolFileHandle(hprinter.into_param().abi()); + let result__ = GetSpoolFileHandle(hprinter.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn ImpersonatePrinterClient(htoken: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn ImpersonatePrinterClient(htoken : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ImpersonatePrinterClient(htoken.into_param().abi()) + ImpersonatePrinterClient(htoken.param().abi()) } #[inline] pub unsafe fn InstallPrinterDriverFromPackageA(pszserver: P0, pszinfpath: P1, pszdrivername: P2, pszenvironment: P3, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), pszinfpath.into_param().abi(), pszdrivername.into_param().abi(), pszenvironment.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), pszinfpath.into_param().abi(), pszdrivername.into_param().abi(), pszenvironment.into_param().abi(), dwflags).ok() + InstallPrinterDriverFromPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszdrivername.param().abi(), pszenvironment.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1346,169 +1346,169 @@ pub unsafe fn IsValidDevmodeW(pdevmode: Option<*const super::Gdi::DEVMODEW>, dev #[inline] pub unsafe fn OpenPrinter2A(pprintername: P0, phprinter: *mut super::super::Foundation::HANDLE, pdefault: Option<*const PRINTER_DEFAULTSA>, poptions: Option<*const PRINTER_OPTIONSA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn OpenPrinter2A(pprintername : windows_core::PCSTR, phprinter : *mut super::super::Foundation:: HANDLE, pdefault : *const PRINTER_DEFAULTSA, poptions : *const PRINTER_OPTIONSA) -> super::super::Foundation:: BOOL); - OpenPrinter2A(pprintername.into_param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null())), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() + OpenPrinter2A(pprintername.param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null())), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OpenPrinter2W(pprintername: P0, phprinter: *mut super::super::Foundation::HANDLE, pdefault: Option<*const PRINTER_DEFAULTSW>, poptions: Option<*const PRINTER_OPTIONSW>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn OpenPrinter2W(pprintername : windows_core::PCWSTR, phprinter : *mut super::super::Foundation:: HANDLE, pdefault : *const PRINTER_DEFAULTSW, poptions : *const PRINTER_OPTIONSW) -> super::super::Foundation:: BOOL); - OpenPrinter2W(pprintername.into_param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null())), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() + OpenPrinter2W(pprintername.param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null())), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OpenPrinterA(pprintername: P0, phprinter: *mut super::super::Foundation::HANDLE, pdefault: Option<*const PRINTER_DEFAULTSA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn OpenPrinterA(pprintername : windows_core::PCSTR, phprinter : *mut super::super::Foundation:: HANDLE, pdefault : *const PRINTER_DEFAULTSA) -> super::super::Foundation:: BOOL); - OpenPrinterA(pprintername.into_param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))).ok() + OpenPrinterA(pprintername.param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OpenPrinterW(pprintername: P0, phprinter: *mut super::super::Foundation::HANDLE, pdefault: Option<*const PRINTER_DEFAULTSW>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn OpenPrinterW(pprintername : windows_core::PCWSTR, phprinter : *mut super::super::Foundation:: HANDLE, pdefault : *const PRINTER_DEFAULTSW) -> super::super::Foundation:: BOOL); - OpenPrinterW(pprintername.into_param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))).ok() + OpenPrinterW(pprintername.param().abi(), phprinter, core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn PartialReplyPrinterChangeNotification(hprinter: P0, pdatasrc: Option<*const PRINTER_NOTIFY_INFO_DATA>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn PartialReplyPrinterChangeNotification(hprinter : super::super::Foundation:: HANDLE, pdatasrc : *const PRINTER_NOTIFY_INFO_DATA) -> super::super::Foundation:: BOOL); - PartialReplyPrinterChangeNotification(hprinter.into_param().abi(), core::mem::transmute(pdatasrc.unwrap_or(std::ptr::null()))) + PartialReplyPrinterChangeNotification(hprinter.param().abi(), core::mem::transmute(pdatasrc.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn PlayGdiScriptOnPrinterIC(hprinteric: P0, pin: &[u8], pout: &mut [u8], ul: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprinteric.into_param().abi(), core::mem::transmute(pin.as_ptr()), pin.len().try_into().unwrap(), core::mem::transmute(pout.as_ptr()), pout.len().try_into().unwrap(), ul) + PlayGdiScriptOnPrinterIC(hprinteric.param().abi(), 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: P0, error: u32, hwnd: P1, ptext: P2, pcaption: P3, dwtype: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn PrinterMessageBoxA(hprinter : super::super::Foundation:: HANDLE, error : u32, hwnd : super::super::Foundation:: HWND, ptext : windows_core::PCSTR, pcaption : windows_core::PCSTR, dwtype : u32) -> u32); - PrinterMessageBoxA(hprinter.into_param().abi(), error, hwnd.into_param().abi(), ptext.into_param().abi(), pcaption.into_param().abi(), dwtype) + PrinterMessageBoxA(hprinter.param().abi(), error, hwnd.param().abi(), ptext.param().abi(), pcaption.param().abi(), dwtype) } #[inline] pub unsafe fn PrinterMessageBoxW(hprinter: P0, error: u32, hwnd: P1, ptext: P2, pcaption: P3, dwtype: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn PrinterMessageBoxW(hprinter : super::super::Foundation:: HANDLE, error : u32, hwnd : super::super::Foundation:: HWND, ptext : windows_core::PCWSTR, pcaption : windows_core::PCWSTR, dwtype : u32) -> u32); - PrinterMessageBoxW(hprinter.into_param().abi(), error, hwnd.into_param().abi(), ptext.into_param().abi(), pcaption.into_param().abi(), dwtype) + PrinterMessageBoxW(hprinter.param().abi(), error, hwnd.param().abi(), ptext.param().abi(), pcaption.param().abi(), dwtype) } #[inline] pub unsafe fn PrinterProperties(hwnd: P0, hprinter: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn PrinterProperties(hwnd : super::super::Foundation:: HWND, hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - PrinterProperties(hwnd.into_param().abi(), hprinter.into_param().abi()) + PrinterProperties(hwnd.param().abi(), hprinter.param().abi()) } #[inline] pub unsafe fn ProvidorFindClosePrinterChangeNotification(hprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn ProvidorFindClosePrinterChangeNotification(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ProvidorFindClosePrinterChangeNotification(hprinter.into_param().abi()) + ProvidorFindClosePrinterChangeNotification(hprinter.param().abi()) } #[inline] pub unsafe fn ProvidorFindFirstPrinterChangeNotification(hprinter: P0, fdwflags: u32, fdwoptions: u32, hnotify: P1, pprinternotifyoptions: Option<*const core::ffi::c_void>, pvreserved1: Option<*mut core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn ProvidorFindFirstPrinterChangeNotification(hprinter : super::super::Foundation:: 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(hprinter.into_param().abi(), fdwflags, fdwoptions, hnotify.into_param().abi(), core::mem::transmute(pprinternotifyoptions.unwrap_or(std::ptr::null())), core::mem::transmute(pvreserved1.unwrap_or(std::ptr::null_mut()))) + ProvidorFindFirstPrinterChangeNotification(hprinter.param().abi(), fdwflags, fdwoptions, hnotify.param().abi(), core::mem::transmute(pprinternotifyoptions.unwrap_or(std::ptr::null())), core::mem::transmute(pvreserved1.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ReadPrinter(hprinter: P0, pbuf: *mut core::ffi::c_void, cbbuf: u32, pnobytesread: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ReadPrinter(hprinter : super::super::Foundation:: HANDLE, pbuf : *mut core::ffi::c_void, cbbuf : u32, pnobytesread : *mut u32) -> super::super::Foundation:: BOOL); - ReadPrinter(hprinter.into_param().abi(), pbuf, cbbuf, pnobytesread) + ReadPrinter(hprinter.param().abi(), pbuf, cbbuf, pnobytesread) } #[inline] pub unsafe fn RegisterForPrintAsyncNotifications(pszname: P0, pnotificationtype: *const windows_core::GUID, euserfilter: PrintAsyncNotifyUserFilter, econversationstyle: PrintAsyncNotifyConversationStyle, pcallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - RegisterForPrintAsyncNotifications(pszname.into_param().abi(), pnotificationtype, euserfilter, econversationstyle, pcallback.into_param().abi(), &mut result__).map(|| result__) + RegisterForPrintAsyncNotifications(pszname.param().abi(), pnotificationtype, euserfilter, econversationstyle, pcallback.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn RemovePrintDeviceObject(hdeviceobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn RemovePrintDeviceObject(hdeviceobject : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RemovePrintDeviceObject(hdeviceobject.into_param().abi()).ok() + RemovePrintDeviceObject(hdeviceobject.param().abi()).ok() } #[inline] pub unsafe fn ReplyPrinterChangeNotification(hprinter: P0, fdwchangeflags: u32, pdwresult: Option<*mut u32>, pprinternotifyinfo: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn ReplyPrinterChangeNotification(hprinter : super::super::Foundation:: HANDLE, fdwchangeflags : u32, pdwresult : *mut u32, pprinternotifyinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReplyPrinterChangeNotification(hprinter.into_param().abi(), fdwchangeflags, core::mem::transmute(pdwresult.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprinternotifyinfo.unwrap_or(std::ptr::null()))) + ReplyPrinterChangeNotification(hprinter.param().abi(), fdwchangeflags, core::mem::transmute(pdwresult.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprinternotifyinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ReplyPrinterChangeNotificationEx(hnotify: P0, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hnotify.into_param().abi(), dwcolor, fdwflags, pdwresult, pprinternotifyinfo) + ReplyPrinterChangeNotificationEx(hnotify.param().abi(), dwcolor, fdwflags, pdwresult, pprinternotifyinfo) } #[inline] pub unsafe fn ReportJobProcessingProgress(printerhandle: P0, jobid: u32, joboperation: EPrintXPSJobOperation, jobprogress: EPrintXPSJobProgress) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ReportJobProcessingProgress(printerhandle : super::super::Foundation:: HANDLE, jobid : u32, joboperation : EPrintXPSJobOperation, jobprogress : EPrintXPSJobProgress) -> windows_core::HRESULT); - ReportJobProcessingProgress(printerhandle.into_param().abi(), jobid, joboperation, jobprogress).ok() + ReportJobProcessingProgress(printerhandle.param().abi(), jobid, joboperation, jobprogress).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ResetPrinterA(hprinter: P0, pdefault: Option<*const PRINTER_DEFAULTSA>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ResetPrinterA(hprinter : super::super::Foundation:: HANDLE, pdefault : *const PRINTER_DEFAULTSA) -> super::super::Foundation:: BOOL); - ResetPrinterA(hprinter.into_param().abi(), core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))) + ResetPrinterA(hprinter.param().abi(), core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ResetPrinterW(hprinter: P0, pdefault: Option<*const PRINTER_DEFAULTSW>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ResetPrinterW(hprinter : super::super::Foundation:: HANDLE, pdefault : *const PRINTER_DEFAULTSW) -> super::super::Foundation:: BOOL); - ResetPrinterW(hprinter.into_param().abi(), core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))) + ResetPrinterW(hprinter.param().abi(), core::mem::transmute(pdefault.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE { @@ -1548,197 +1548,197 @@ pub unsafe fn RouterFreePrinterNotifyInfo(pinfo: Option<*const PRINTER_NOTIFY_IN #[inline] pub unsafe fn ScheduleJob(hprinter: P0, jobid: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn ScheduleJob(hprinter : super::super::Foundation:: HANDLE, jobid : u32) -> super::super::Foundation:: BOOL); - ScheduleJob(hprinter.into_param().abi(), jobid) + ScheduleJob(hprinter.param().abi(), jobid) } #[inline] pub unsafe fn SetCPSUIUserData(hdlg: P0, cpsuiuserdata: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("compstui.dll" "system" fn SetCPSUIUserData(hdlg : super::super::Foundation:: HWND, cpsuiuserdata : usize) -> super::super::Foundation:: BOOL); - SetCPSUIUserData(hdlg.into_param().abi(), cpsuiuserdata) + SetCPSUIUserData(hdlg.param().abi(), cpsuiuserdata) } #[inline] pub unsafe fn SetDefaultPrinterA(pszprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetDefaultPrinterA(pszprinter : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetDefaultPrinterA(pszprinter.into_param().abi()) + SetDefaultPrinterA(pszprinter.param().abi()) } #[inline] pub unsafe fn SetDefaultPrinterW(pszprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetDefaultPrinterW(pszprinter : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetDefaultPrinterW(pszprinter.into_param().abi()) + SetDefaultPrinterW(pszprinter.param().abi()) } #[inline] pub unsafe fn SetFormA(hprinter: P0, pformname: P1, level: u32, pform: *const u8) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetFormA(hprinter : super::super::Foundation:: HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - SetFormA(hprinter.into_param().abi(), pformname.into_param().abi(), level, pform) + SetFormA(hprinter.param().abi(), pformname.param().abi(), level, pform) } #[inline] pub unsafe fn SetFormW(hprinter: P0, pformname: P1, level: u32, pform: *const u8) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetFormW(hprinter : super::super::Foundation:: HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); - SetFormW(hprinter.into_param().abi(), pformname.into_param().abi(), level, pform) + SetFormW(hprinter.param().abi(), pformname.param().abi(), level, pform) } #[inline] pub unsafe fn SetJobA(hprinter: P0, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetJobA(hprinter : super::super::Foundation:: HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetJobA(hprinter.into_param().abi(), jobid, level, core::mem::transmute(pjob.unwrap_or(std::ptr::null())), command) + SetJobA(hprinter.param().abi(), jobid, level, core::mem::transmute(pjob.unwrap_or(std::ptr::null())), command) } #[inline] pub unsafe fn SetJobNamedProperty(hprinter: P0, jobid: u32, pproperty: *const PrintNamedProperty) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetJobNamedProperty(hprinter : super::super::Foundation:: HANDLE, jobid : u32, pproperty : *const PrintNamedProperty) -> u32); - SetJobNamedProperty(hprinter.into_param().abi(), jobid, pproperty) + SetJobNamedProperty(hprinter.param().abi(), jobid, pproperty) } #[inline] pub unsafe fn SetJobW(hprinter: P0, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetJobW(hprinter : super::super::Foundation:: HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetJobW(hprinter.into_param().abi(), jobid, level, core::mem::transmute(pjob.unwrap_or(std::ptr::null())), command) + SetJobW(hprinter.param().abi(), jobid, level, core::mem::transmute(pjob.unwrap_or(std::ptr::null())), command) } #[inline] pub unsafe fn SetPortA(pname: P0, pportname: P1, dwlevel: u32, pportinfo: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pportname.into_param().abi(), dwlevel, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pportname.into_param().abi(), dwlevel, pportinfo).ok() + SetPortW(pname.param().abi(), pportname.param().abi(), dwlevel, pportinfo).ok() } #[inline] pub unsafe fn SetPrinterA(hprinter: P0, level: u32, pprinter: Option<*const u8>, command: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterA(hprinter : super::super::Foundation:: HANDLE, level : u32, pprinter : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetPrinterA(hprinter.into_param().abi(), level, core::mem::transmute(pprinter.unwrap_or(std::ptr::null())), command).ok() + SetPrinterA(hprinter.param().abi(), level, core::mem::transmute(pprinter.unwrap_or(std::ptr::null())), command).ok() } #[inline] pub unsafe fn SetPrinterDataA(hprinter: P0, pvaluename: P1, r#type: u32, pdata: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataA(hprinter : super::super::Foundation:: HANDLE, pvaluename : windows_core::PCSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataA(hprinter.into_param().abi(), pvaluename.into_param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataA(hprinter.param().abi(), pvaluename.param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) } #[inline] pub unsafe fn SetPrinterDataExA(hprinter: P0, pkeyname: P1, pvaluename: P2, r#type: u32, pdata: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataExA(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCSTR, pvaluename : windows_core::PCSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataExA(hprinter.into_param().abi(), pkeyname.into_param().abi(), pvaluename.into_param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataExA(hprinter.param().abi(), 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: P0, pkeyname: P1, pvaluename: P2, r#type: u32, pdata: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataExW(hprinter : super::super::Foundation:: HANDLE, pkeyname : windows_core::PCWSTR, pvaluename : windows_core::PCWSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataExW(hprinter.into_param().abi(), pkeyname.into_param().abi(), pvaluename.into_param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataExW(hprinter.param().abi(), 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: P0, pvaluename: P1, r#type: u32, pdata: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterDataW(hprinter : super::super::Foundation:: HANDLE, pvaluename : windows_core::PCWSTR, r#type : u32, pdata : *const u8, cbdata : u32) -> u32); - SetPrinterDataW(hprinter.into_param().abi(), pvaluename.into_param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) + SetPrinterDataW(hprinter.param().abi(), pvaluename.param().abi(), r#type, core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()) } #[inline] pub unsafe fn SetPrinterW(hprinter: P0, level: u32, pprinter: Option<*const u8>, command: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn SetPrinterW(hprinter : super::super::Foundation:: HANDLE, level : u32, pprinter : *const u8, command : u32) -> super::super::Foundation:: BOOL); - SetPrinterW(hprinter.into_param().abi(), level, core::mem::transmute(pprinter.unwrap_or(std::ptr::null())), command).ok() + SetPrinterW(hprinter.param().abi(), level, core::mem::transmute(pprinter.unwrap_or(std::ptr::null())), command).ok() } #[inline] pub unsafe fn SplIsSessionZero(hprinter: P0, jobid: u32, pissessionzero: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn SplIsSessionZero(hprinter : super::super::Foundation:: HANDLE, jobid : u32, pissessionzero : *mut super::super::Foundation:: BOOL) -> u32); - SplIsSessionZero(hprinter.into_param().abi(), jobid, pissessionzero) + SplIsSessionZero(hprinter.param().abi(), jobid, pissessionzero) } #[inline] pub unsafe fn SplPromptUIInUsersSession(hprinter: P0, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn SplPromptUIInUsersSession(hprinter : super::super::Foundation:: HANDLE, jobid : u32, puiparams : *const SHOWUIPARAMS, presponse : *mut u32) -> super::super::Foundation:: BOOL); - SplPromptUIInUsersSession(hprinter.into_param().abi(), jobid, puiparams, presponse) + SplPromptUIInUsersSession(hprinter.param().abi(), jobid, puiparams, presponse) } #[inline] pub unsafe fn SpoolerCopyFileEvent(pszprintername: P0, pszkey: P1, dwcopyfileevent: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszkey.into_param().abi(), dwcopyfileevent) + SpoolerCopyFileEvent(pszprintername.param().abi(), pszkey.param().abi(), dwcopyfileevent) } #[inline] pub unsafe fn SpoolerFindClosePrinterChangeNotification(hprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn SpoolerFindClosePrinterChangeNotification(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SpoolerFindClosePrinterChangeNotification(hprinter.into_param().abi()) + SpoolerFindClosePrinterChangeNotification(hprinter.param().abi()) } #[inline] pub unsafe fn SpoolerFindFirstPrinterChangeNotification(hprinter: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn SpoolerFindFirstPrinterChangeNotification(hprinter : super::super::Foundation:: 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(hprinter.into_param().abi(), fdwfilterflags, fdwoptions, pprinternotifyoptions, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), pnotificationconfig, core::mem::transmute(phnotify.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phevent.unwrap_or(std::ptr::null_mut()))) + SpoolerFindFirstPrinterChangeNotification(hprinter.param().abi(), fdwfilterflags, fdwoptions, pprinternotifyoptions, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), pnotificationconfig, core::mem::transmute(phnotify.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phevent.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SpoolerFindNextPrinterChangeNotification(hprinter: P0, pfdwchange: *mut u32, pprinternotifyoptions: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn SpoolerFindNextPrinterChangeNotification(hprinter : super::super::Foundation:: HANDLE, pfdwchange : *mut u32, pprinternotifyoptions : *const core::ffi::c_void, ppprinternotifyinfo : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - SpoolerFindNextPrinterChangeNotification(hprinter.into_param().abi(), pfdwchange, core::mem::transmute(pprinternotifyoptions.unwrap_or(std::ptr::null())), core::mem::transmute(ppprinternotifyinfo.unwrap_or(std::ptr::null_mut()))) + SpoolerFindNextPrinterChangeNotification(hprinter.param().abi(), pfdwchange, core::mem::transmute(pprinternotifyoptions.unwrap_or(std::ptr::null())), core::mem::transmute(ppprinternotifyinfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) { @@ -1748,98 +1748,98 @@ pub unsafe fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) { #[inline] pub unsafe fn SpoolerRefreshPrinterChangeNotification(hprinter: P0, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: Option<*mut *mut PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn SpoolerRefreshPrinterChangeNotification(hprinter : super::super::Foundation:: HANDLE, dwcolor : u32, poptions : *const PRINTER_NOTIFY_OPTIONS, ppinfo : *mut *mut PRINTER_NOTIFY_INFO) -> super::super::Foundation:: BOOL); - SpoolerRefreshPrinterChangeNotification(hprinter.into_param().abi(), dwcolor, poptions, core::mem::transmute(ppinfo.unwrap_or(std::ptr::null_mut()))) + SpoolerRefreshPrinterChangeNotification(hprinter.param().abi(), dwcolor, poptions, core::mem::transmute(ppinfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn StartDocPrinterA(hprinter: P0, level: u32, pdocinfo: *const DOC_INFO_1A) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn StartDocPrinterA(hprinter : super::super::Foundation:: HANDLE, level : u32, pdocinfo : *const DOC_INFO_1A) -> u32); - StartDocPrinterA(hprinter.into_param().abi(), level, pdocinfo) + StartDocPrinterA(hprinter.param().abi(), level, pdocinfo) } #[inline] pub unsafe fn StartDocPrinterW(hprinter: P0, level: u32, pdocinfo: *const DOC_INFO_1W) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn StartDocPrinterW(hprinter : super::super::Foundation:: HANDLE, level : u32, pdocinfo : *const DOC_INFO_1W) -> u32); - StartDocPrinterW(hprinter.into_param().abi(), level, pdocinfo) + StartDocPrinterW(hprinter.param().abi(), level, pdocinfo) } #[inline] pub unsafe fn StartPagePrinter(hprinter: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn StartPagePrinter(hprinter : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - StartPagePrinter(hprinter.into_param().abi()) + StartPagePrinter(hprinter.param().abi()) } #[inline] pub unsafe fn UnRegisterForPrintAsyncNotifications(param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn UnRegisterForPrintAsyncNotifications(param0 : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - UnRegisterForPrintAsyncNotifications(param0.into_param().abi()).ok() + UnRegisterForPrintAsyncNotifications(param0.param().abi()).ok() } #[inline] pub unsafe fn UpdatePrintDeviceObject(hprinter: P0, hdeviceobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("spoolss.dll" "system" fn UpdatePrintDeviceObject(hprinter : super::super::Foundation:: HANDLE, hdeviceobject : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - UpdatePrintDeviceObject(hprinter.into_param().abi(), hdeviceobject.into_param().abi()).ok() + UpdatePrintDeviceObject(hprinter.param().abi(), hdeviceobject.param().abi()).ok() } #[inline] pub unsafe fn UploadPrinterDriverPackageA(pszserver: P0, pszinfpath: P1, pszenvironment: P2, dwflags: u32, hwnd: P3, pszdestinfpath: windows_core::PSTR, pcchdestinfpath: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), pszinfpath.into_param().abi(), pszenvironment.into_param().abi(), dwflags, hwnd.into_param().abi(), core::mem::transmute(pszdestinfpath), pcchdestinfpath).ok() + UploadPrinterDriverPackageA(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi(), dwflags, hwnd.param().abi(), core::mem::transmute(pszdestinfpath), pcchdestinfpath).ok() } #[inline] pub unsafe fn UploadPrinterDriverPackageW(pszserver: P0, pszinfpath: P1, pszenvironment: P2, dwflags: u32, hwnd: P3, pszdestinfpath: windows_core::PWSTR, pcchdestinfpath: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), pszinfpath.into_param().abi(), pszenvironment.into_param().abi(), dwflags, hwnd.into_param().abi(), core::mem::transmute(pszdestinfpath), pcchdestinfpath).ok() + UploadPrinterDriverPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi(), dwflags, hwnd.param().abi(), core::mem::transmute(pszdestinfpath), pcchdestinfpath).ok() } #[inline] pub unsafe fn WaitForPrinterChange(hprinter: P0, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn WaitForPrinterChange(hprinter : super::super::Foundation:: HANDLE, flags : u32) -> u32); - WaitForPrinterChange(hprinter.into_param().abi(), flags) + WaitForPrinterChange(hprinter.param().abi(), flags) } #[inline] pub unsafe fn WritePrinter(hprinter: P0, pbuf: *const core::ffi::c_void, cbbuf: u32, pcwritten: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winspool.drv" "system" fn WritePrinter(hprinter : super::super::Foundation:: HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32) -> super::super::Foundation:: BOOL); - WritePrinter(hprinter.into_param().abi(), pbuf, cbbuf, pcwritten) + WritePrinter(hprinter.param().abi(), pbuf, cbbuf, pcwritten) } #[inline] pub unsafe fn XcvDataW(hxcv: P0, pszdataname: P1, pinputdata: Option<&[u8]>, poutputdata: Option<&mut [u8]>, pcboutputneeded: *mut u32, pdwstatus: Option<*mut u32>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hxcv.into_param().abi(), pszdataname.into_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()), pcboutputneeded, core::mem::transmute(pdwstatus.unwrap_or(std::ptr::null_mut()))) + XcvDataW(hxcv.param().abi(), 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()), pcboutputneeded, core::mem::transmute(pdwstatus.unwrap_or(std::ptr::null_mut()))) } windows_core::imp::define_interface!(IAsyncGetSendNotificationCookie, IAsyncGetSendNotificationCookie_Vtbl, 0); windows_core::imp::interface_hierarchy!(IAsyncGetSendNotificationCookie, windows_core::IUnknown, IPrintAsyncCookie); @@ -1852,10 +1852,10 @@ impl IAsyncGetSendNotificationCookie { } pub unsafe fn FinishAsyncCallWithData(&self, param0: P0, param1: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FinishAsyncCallWithData)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FinishAsyncCallWithData)(windows_core::Interface::as_raw(self), param0.param().abi(), param1.param().abi()).ok() } } #[repr(C)] @@ -1874,9 +1874,9 @@ impl IAsyncGetSrvReferralCookie { } pub unsafe fn FinishAsyncCallWithData(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FinishAsyncCallWithData)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FinishAsyncCallWithData)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } } #[repr(C)] @@ -1891,15 +1891,15 @@ windows_core::imp::interface_hierarchy!(IBidiAsyncNotifyChannel, windows_core::I impl IBidiAsyncNotifyChannel { pub unsafe fn SendNotification(&self, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SendNotification)(windows_core::Interface::as_raw(self), pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SendNotification)(windows_core::Interface::as_raw(self), pdata.param().abi()).ok() } pub unsafe fn CloseChannel(&self, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CloseChannel)(windows_core::Interface::as_raw(self), pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CloseChannel)(windows_core::Interface::as_raw(self), pdata.param().abi()).ok() } pub unsafe fn CreateNotificationChannel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CreateNotificationChannel)(windows_core::Interface::as_raw(self)).ok() @@ -1912,17 +1912,17 @@ impl IBidiAsyncNotifyChannel { } pub unsafe fn AsyncGetNotificationSendResponse(&self, param0: P0, param1: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncGetNotificationSendResponse)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsyncGetNotificationSendResponse)(windows_core::Interface::as_raw(self), param0.param().abi(), param1.param().abi()).ok() } pub unsafe fn AsyncCloseChannel(&self, param0: P0, param1: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncCloseChannel)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsyncCloseChannel)(windows_core::Interface::as_raw(self), param0.param().abi(), param1.param().abi()).ok() } } #[repr(C)] @@ -1939,9 +1939,9 @@ windows_core::imp::interface_hierarchy!(IBidiRequest, windows_core::IUnknown); impl IBidiRequest { pub unsafe fn SetSchema(&self, pszschema: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSchema)(windows_core::Interface::as_raw(self), pszschema.into_param().abi()).ok() + (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), dwtype, pdata, usize).ok() @@ -1972,9 +1972,9 @@ windows_core::imp::interface_hierarchy!(IBidiRequestContainer, windows_core::IUn impl IBidiRequestContainer { pub unsafe fn AddRequest(&self, prequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRequest)(windows_core::Interface::as_raw(self), prequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRequest)(windows_core::Interface::as_raw(self), prequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEnumObject(&self) -> windows_core::Result { @@ -2001,26 +2001,26 @@ windows_core::imp::interface_hierarchy!(IBidiSpl, windows_core::IUnknown); impl IBidiSpl { pub unsafe fn BindDevice(&self, pszdevicename: P0, dwaccess: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindDevice)(windows_core::Interface::as_raw(self), pszdevicename.into_param().abi(), 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() } pub unsafe fn SendRecv(&self, pszaction: P0, prequest: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SendRecv)(windows_core::Interface::as_raw(self), pszaction.into_param().abi(), prequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendRecv)(windows_core::Interface::as_raw(self), pszaction.param().abi(), prequest.param().abi()).ok() } pub unsafe fn MultiSendRecv(&self, pszaction: P0, prequestcontainer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MultiSendRecv)(windows_core::Interface::as_raw(self), pszaction.into_param().abi(), prequestcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MultiSendRecv)(windows_core::Interface::as_raw(self), pszaction.param().abi(), prequestcontainer.param().abi()).ok() } } #[repr(C)] @@ -2036,27 +2036,27 @@ windows_core::imp::interface_hierarchy!(IBidiSpl2, windows_core::IUnknown); impl IBidiSpl2 { pub unsafe fn BindDevice(&self, pszdevicename: P0, dwaccess: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindDevice)(windows_core::Interface::as_raw(self), pszdevicename.into_param().abi(), 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() } pub unsafe fn SendRecvXMLString(&self, bstrrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendRecvXMLString)(windows_core::Interface::as_raw(self), bstrrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SendRecvXMLString)(windows_core::Interface::as_raw(self), bstrrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SendRecvXMLStream(&self, psrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendRecvXMLStream)(windows_core::Interface::as_raw(self), psrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SendRecvXMLStream)(windows_core::Interface::as_raw(self), psrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2083,9 +2083,9 @@ impl IFixedDocument { } pub unsafe fn SetPrintTicket(&self, pprintticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintTicket)(windows_core::Interface::as_raw(self), pprintticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintTicket)(windows_core::Interface::as_raw(self), pprintticket.param().abi()).ok() } } #[repr(C)] @@ -2108,9 +2108,9 @@ impl IFixedDocumentSequence { } pub unsafe fn SetPrintTicket(&self, pprintticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintTicket)(windows_core::Interface::as_raw(self), pprintticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintTicket)(windows_core::Interface::as_raw(self), pprintticket.param().abi()).ok() } } #[repr(C)] @@ -2144,10 +2144,10 @@ impl IFixedPage { } pub unsafe fn GetPagePart(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPagePart)(windows_core::Interface::as_raw(self), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPagePart)(windows_core::Interface::as_raw(self), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetWriteStream(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2155,21 +2155,21 @@ impl IFixedPage { } pub unsafe fn SetPrintTicket(&self, ppprintticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintTicket)(windows_core::Interface::as_raw(self), ppprintticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintTicket)(windows_core::Interface::as_raw(self), ppprintticket.param().abi()).ok() } pub unsafe fn SetPagePart(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPagePart)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPagePart)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn DeleteResource(&self, uri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteResource)(windows_core::Interface::as_raw(self), uri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteResource)(windows_core::Interface::as_raw(self), uri.param().abi()).ok() } pub unsafe fn GetXpsPartIterator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2200,23 +2200,23 @@ impl IImgCreateErrorInfo { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetSource(&self, szsource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSource)(windows_core::Interface::as_raw(self), szsource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSource)(windows_core::Interface::as_raw(self), szsource.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetDescription(&self, szdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), szdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), szdescription.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetHelpFile(&self, szhelpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHelpFile)(windows_core::Interface::as_raw(self), szhelpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHelpFile)(windows_core::Interface::as_raw(self), szhelpfile.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetHelpContext(&self, dwhelpcontext: u32) -> windows_core::Result<()> { @@ -2404,9 +2404,9 @@ impl IPartFont { } pub unsafe fn SetFontContent(&self, pcontenttype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFontContent)(windows_core::Interface::as_raw(self), pcontenttype.into_param().abi()).ok() + (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), options).ok() @@ -2442,9 +2442,9 @@ impl IPartFont2 { } pub unsafe fn SetFontContent(&self, pcontenttype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFontContent)(windows_core::Interface::as_raw(self), pcontenttype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetFontOptions)(windows_core::Interface::as_raw(self), options).ok() @@ -2483,9 +2483,9 @@ impl IPartImage { } pub unsafe fn SetImageContent(&self, pcontenttype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImageContent)(windows_core::Interface::as_raw(self), pcontenttype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImageContent)(windows_core::Interface::as_raw(self), pcontenttype.param().abi()).ok() } } #[repr(C)] @@ -2564,9 +2564,9 @@ impl IPartThumbnail { } pub unsafe fn SetThumbnailContent(&self, pcontenttype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailContent)(windows_core::Interface::as_raw(self), pcontenttype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnailContent)(windows_core::Interface::as_raw(self), pcontenttype.param().abi()).ok() } } #[repr(C)] @@ -2614,17 +2614,17 @@ windows_core::imp::interface_hierarchy!(IPrintAsyncNotify, windows_core::IUnknow impl IPrintAsyncNotify { pub unsafe fn CreatePrintAsyncNotifyChannel(&self, param0: u32, param1: *const windows_core::GUID, param2: PrintAsyncNotifyUserFilter, param3: PrintAsyncNotifyConversationStyle, param4: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePrintAsyncNotifyChannel)(windows_core::Interface::as_raw(self), param0, param1, param2, param3, param4.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePrintAsyncNotifyRegistration)(windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_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)] @@ -2638,17 +2638,17 @@ windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyCallback, windows_core: impl IPrintAsyncNotifyCallback { pub unsafe fn OnEventNotify(&self, pchannel: P0, pdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEventNotify)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEventNotify)(windows_core::Interface::as_raw(self), pchannel.param().abi(), pdata.param().abi()).ok() } pub unsafe fn ChannelClosed(&self, pchannel: P0, pdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ChannelClosed)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChannelClosed)(windows_core::Interface::as_raw(self), pchannel.param().abi(), pdata.param().abi()).ok() } } #[repr(C)] @@ -2662,15 +2662,15 @@ windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyChannel, windows_core:: impl IPrintAsyncNotifyChannel { pub unsafe fn SendNotification(&self, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendNotification)(windows_core::Interface::as_raw(self), pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendNotification)(windows_core::Interface::as_raw(self), pdata.param().abi()).ok() } pub unsafe fn CloseChannel(&self, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseChannel)(windows_core::Interface::as_raw(self), pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseChannel)(windows_core::Interface::as_raw(self), pdata.param().abi()).ok() } } #[repr(C)] @@ -2720,15 +2720,15 @@ impl IPrintAsyncNotifyServerReferral { } pub unsafe fn AsyncGetServerReferral(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncGetServerReferral)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsyncGetServerReferral)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } pub unsafe fn SetServerReferral(&self, prmtserverreferral: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerReferral)(windows_core::Interface::as_raw(self), prmtserverreferral.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerReferral)(windows_core::Interface::as_raw(self), prmtserverreferral.param().abi()).ok() } } #[repr(C)] @@ -2749,9 +2749,9 @@ impl IPrintBidiAsyncNotifyRegistration { } pub unsafe fn AsyncGetNewChannel(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncGetNewChannel)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsyncGetNewChannel)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } } #[repr(C)] @@ -2764,9 +2764,9 @@ windows_core::imp::interface_hierarchy!(IPrintClassObjectFactory, windows_core:: impl IPrintClassObjectFactory { pub unsafe fn GetPrintClassObject(&self, pszprintername: P0, riid: *const windows_core::GUID, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPrintClassObject)(windows_core::Interface::as_raw(self), pszprintername.into_param().abi(), riid, ppnewobject).ok() + (windows_core::Interface::vtable(self).GetPrintClassObject)(windows_core::Interface::as_raw(self), pszprintername.param().abi(), riid, ppnewobject).ok() } } #[repr(C)] @@ -2780,60 +2780,60 @@ impl IPrintCoreHelper { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetOption(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), 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: P0, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.into_param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() + (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: P0, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.into_param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn WhyConstrained(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturekeyword: P0, pszoptionkeyword: P1, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), ppfoconstraints, 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), pfeaturelist, pdwnumfeatures).ok() } pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.into_param().abi(), poptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.param().abi(), poptionlist, pdwnumoptions).ok() } pub unsafe fn GetFontSubstitution(&self, psztruetypefontname: P0, ppszdevfontname: *const windows_core::PCWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), pszdevfontname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.param().abi(), pszdevfontname.param().abi()).ok() } pub unsafe fn CreateInstanceOfMSXMLObject(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, riid, ppv).ok() + (windows_core::Interface::vtable(self).CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.param().abi(), dwclscontext, riid, ppv).ok() } } #[repr(C)] @@ -2867,81 +2867,81 @@ impl IPrintCoreHelperPS { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetOption(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), 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: P0, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.into_param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() + (windows_core::Interface::vtable(self).base__.SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: P0, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.into_param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn WhyConstrained(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturekeyword: P0, pszoptionkeyword: P1, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), ppfoconstraints, 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).base__.EnumFeatures)(windows_core::Interface::as_raw(self), pfeaturelist, pdwnumfeatures).ok() } pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.into_param().abi(), poptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.param().abi(), poptionlist, pdwnumoptions).ok() } pub unsafe fn GetFontSubstitution(&self, psztruetypefontname: P0, ppszdevfontname: *const windows_core::PCWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), ppszdevfontname).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), pszdevfontname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.param().abi(), pszdevfontname.param().abi()).ok() } pub unsafe fn CreateInstanceOfMSXMLObject(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, riid, ppv).ok() + (windows_core::Interface::vtable(self).base__.CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.param().abi(), dwclscontext, riid, ppv).ok() } pub unsafe fn GetGlobalAttribute(&self, pszattribute: P0, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlobalAttribute)(windows_core::Interface::as_raw(self), pszattribute.into_param().abi(), pdwdatatype, ppbdata, pcbsize).ok() + (windows_core::Interface::vtable(self).GetGlobalAttribute)(windows_core::Interface::as_raw(self), pszattribute.param().abi(), pdwdatatype, ppbdata, pcbsize).ok() } pub unsafe fn GetFeatureAttribute(&self, pszfeaturekeyword: P0, pszattribute: P1, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFeatureAttribute)(windows_core::Interface::as_raw(self), pszfeaturekeyword.into_param().abi(), pszattribute.into_param().abi(), pdwdatatype, ppbdata, pcbsize).ok() + (windows_core::Interface::vtable(self).GetFeatureAttribute)(windows_core::Interface::as_raw(self), pszfeaturekeyword.param().abi(), pszattribute.param().abi(), pdwdatatype, ppbdata, pcbsize).ok() } pub unsafe fn GetOptionAttribute(&self, pszfeaturekeyword: P0, pszoptionkeyword: P1, pszattribute: P2, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOptionAttribute)(windows_core::Interface::as_raw(self), pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), pszattribute.into_param().abi(), pdwdatatype, ppbdata, pcbsize).ok() + (windows_core::Interface::vtable(self).GetOptionAttribute)(windows_core::Interface::as_raw(self), pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), pszattribute.param().abi(), pdwdatatype, ppbdata, pcbsize).ok() } } #[repr(C)] @@ -2957,60 +2957,60 @@ impl IPrintCoreHelperUni { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetOption(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), 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: P0, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.into_param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() + (windows_core::Interface::vtable(self).base__.SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: P0, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.into_param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn WhyConstrained(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturekeyword: P0, pszoptionkeyword: P1, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), ppfoconstraints, 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).base__.EnumFeatures)(windows_core::Interface::as_raw(self), pfeaturelist, pdwnumfeatures).ok() } pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.into_param().abi(), poptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.param().abi(), poptionlist, pdwnumoptions).ok() } pub unsafe fn GetFontSubstitution(&self, psztruetypefontname: P0, ppszdevfontname: *const windows_core::PCWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), ppszdevfontname).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), pszdevfontname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.param().abi(), pszdevfontname.param().abi()).ok() } pub unsafe fn CreateInstanceOfMSXMLObject(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, riid, ppv).ok() + (windows_core::Interface::vtable(self).base__.CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.param().abi(), dwclscontext, riid, ppv).ok() } #[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<()> { @@ -3040,60 +3040,60 @@ impl IPrintCoreHelperUni2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetOption(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), 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: P0, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.into_param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() + (windows_core::Interface::vtable(self).base__.base__.SetOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, bresolveconflicts.param().abi(), pfopairs, cpairs, pcpairswritten, pdwresult).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: P0, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.into_param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.EnumConstrainedOptions)(windows_core::Interface::as_raw(self), pdevmode, cbsize, pszfeaturekeyword.param().abi(), pconstrainedoptionlist, pdwnumoptions).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn WhyConstrained(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturekeyword: P0, pszoptionkeyword: P1, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.WhyConstrained)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), ppfoconstraints, 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).base__.base__.EnumFeatures)(windows_core::Interface::as_raw(self), pfeaturelist, pdwnumfeatures).ok() } pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.into_param().abi(), poptionlist, pdwnumoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.EnumOptions)(windows_core::Interface::as_raw(self), pszfeaturekeyword.param().abi(), poptionlist, pdwnumoptions).ok() } pub unsafe fn GetFontSubstitution(&self, psztruetypefontname: P0, ppszdevfontname: *const windows_core::PCWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), ppszdevfontname).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.into_param().abi(), pszdevfontname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFontSubstitution)(windows_core::Interface::as_raw(self), psztruetypefontname.param().abi(), pszdevfontname.param().abi()).ok() } pub unsafe fn CreateInstanceOfMSXMLObject(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, riid, ppv).ok() + (windows_core::Interface::vtable(self).base__.base__.CreateInstanceOfMSXMLObject)(windows_core::Interface::as_raw(self), rclsid, punkouter.param().abi(), dwclscontext, riid, ppv).ok() } #[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<()> { @@ -3107,9 +3107,9 @@ impl IPrintCoreHelperUni2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetNamedCommand(&self, pdevmode: Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszcommandname: P0, ppcommandbytes: *mut *mut u8, pcbcommandsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNamedCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszcommandname.into_param().abi(), ppcommandbytes, pcbcommandsize).ok() + (windows_core::Interface::vtable(self).GetNamedCommand)(windows_core::Interface::as_raw(self), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), cbsize, pszcommandname.param().abi(), ppcommandbytes, pcbcommandsize).ok() } } #[repr(C)] @@ -3125,17 +3125,17 @@ windows_core::imp::interface_hierarchy!(IPrintCoreUI2, windows_core::IUnknown, I impl IPrintCoreUI2 { pub unsafe fn DrvGetDriverSetting(&self, pci: *mut core::ffi::c_void, feature: P0, poutput: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32, pdwoptionsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrvGetDriverSetting)(windows_core::Interface::as_raw(self), pci, feature.into_param().abi(), poutput, cbsize, pcbneeded, pdwoptionsreturned).ok() + (windows_core::Interface::vtable(self).base__.DrvGetDriverSetting)(windows_core::Interface::as_raw(self), pci, feature.param().abi(), poutput, cbsize, pcbneeded, pdwoptionsreturned).ok() } pub unsafe fn DrvUpgradeRegistrySetting(&self, hprinter: P0, pfeature: P1, poption: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DrvUpgradeRegistrySetting)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), pfeature.into_param().abi(), poption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DrvUpgradeRegistrySetting)(windows_core::Interface::as_raw(self), hprinter.param().abi(), 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).base__.DrvUpdateUISetting)(windows_core::Interface::as_raw(self), pci, poptitem, dwpreviousselection, dwmode).ok() @@ -3149,52 +3149,52 @@ impl IPrintCoreUI2 { } pub unsafe fn EnumConstrainedOptions(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: P0, pmszconstrainedoptionlist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszfeaturekeyword.into_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()), pcbneeded).ok() + (windows_core::Interface::vtable(self).EnumConstrainedOptions)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, 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()), pcbneeded).ok() } pub unsafe fn WhyConstrained(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: P0, pszoptionkeyword: P1, pmszreasonlist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_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()), pcbneeded).ok() + (windows_core::Interface::vtable(self).WhyConstrained)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, 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()), pcbneeded).ok() } pub unsafe fn GetGlobalAttribute(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszattribute: P0, pdwdatatype: *mut u32, pbdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGlobalAttribute)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszattribute.into_param().abi(), 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()), pcbneeded).ok() + (windows_core::Interface::vtable(self).GetGlobalAttribute)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszattribute.param().abi(), 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()), pcbneeded).ok() } pub unsafe fn GetFeatureAttribute(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: P0, pszattribute: P1, pdwdatatype: *mut u32, pbdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFeatureAttribute)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszfeaturekeyword.into_param().abi(), pszattribute.into_param().abi(), 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()), pcbneeded).ok() + (windows_core::Interface::vtable(self).GetFeatureAttribute)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszfeaturekeyword.param().abi(), pszattribute.param().abi(), 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()), pcbneeded).ok() } pub unsafe fn GetOptionAttribute(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: P0, pszoptionkeyword: P1, pszattribute: P2, pdwdatatype: *mut u32, pbdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOptionAttribute)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), pszattribute.into_param().abi(), 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()), pcbneeded).ok() + (windows_core::Interface::vtable(self).GetOptionAttribute)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszfeaturekeyword.param().abi(), pszoptionkeyword.param().abi(), pszattribute.param().abi(), 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()), pcbneeded).ok() } pub unsafe fn EnumFeatures(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeaturelist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumFeatures)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, 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()), pcbneeded).ok() } pub unsafe fn EnumOptions(&self, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: P0, pmszoptionlist: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumOptions)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, pszfeaturekeyword.into_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()), pcbneeded).ok() + (windows_core::Interface::vtable(self).EnumOptions)(windows_core::Interface::as_raw(self), poemuiobj, dwflags, 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()), pcbneeded).ok() } pub unsafe fn QuerySimulationSupport(&self, hprinter: P0, dwlevel: u32, pcaps: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QuerySimulationSupport)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), 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()), pcbneeded).ok() + (windows_core::Interface::vtable(self).QuerySimulationSupport)(windows_core::Interface::as_raw(self), hprinter.param().abi(), 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()), pcbneeded).ok() } } #[repr(C)] @@ -3305,17 +3305,17 @@ windows_core::imp::interface_hierarchy!(IPrintOemDriverUI, windows_core::IUnknow impl IPrintOemDriverUI { pub unsafe fn DrvGetDriverSetting(&self, pci: *mut core::ffi::c_void, feature: P0, poutput: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32, pdwoptionsreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrvGetDriverSetting)(windows_core::Interface::as_raw(self), pci, feature.into_param().abi(), poutput, cbsize, pcbneeded, pdwoptionsreturned).ok() + (windows_core::Interface::vtable(self).DrvGetDriverSetting)(windows_core::Interface::as_raw(self), pci, feature.param().abi(), poutput, cbsize, pcbneeded, pdwoptionsreturned).ok() } pub unsafe fn DrvUpgradeRegistrySetting(&self, hprinter: P0, pfeature: P1, poption: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DrvUpgradeRegistrySetting)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), pfeature.into_param().abi(), poption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DrvUpgradeRegistrySetting)(windows_core::Interface::as_raw(self), hprinter.param().abi(), 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), pci, poptitem, dwpreviousselection, dwmode).ok() @@ -3340,9 +3340,9 @@ impl IPrintOemUI { } pub unsafe fn PublishDriverInterface(&self, piunknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PublishDriverInterface)(windows_core::Interface::as_raw(self), piunknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PublishDriverInterface)(windows_core::Interface::as_raw(self), piunknown.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn CommonUIProp(&self, dwmode: u32, poemcuipparam: *const OEMCUIPPARAM) -> windows_core::Result<()> { @@ -3350,15 +3350,15 @@ impl IPrintOemUI { } pub unsafe fn DocumentPropertySheets(&self, ppsuiinfo: *mut PROPSHEETUI_INFO, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DocumentPropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DocumentPropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.param().abi()).ok() } pub unsafe fn DevicePropertySheets(&self, ppsuiinfo: *const PROPSHEETUI_INFO, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DevicePropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DevicePropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.param().abi()).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<()> { @@ -3367,49 +3367,49 @@ impl IPrintOemUI { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DeviceCapabilitiesA(&self, poemuiobj: *mut OEMUIOBJ, hprinter: P0, pdevicename: P1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceCapabilitiesA)(windows_core::Interface::as_raw(self), poemuiobj, hprinter.into_param().abi(), pdevicename.into_param().abi(), wcapability, poutput, ppublicdm, poemdm, dwold, dwresult).ok() + (windows_core::Interface::vtable(self).DeviceCapabilitiesA)(windows_core::Interface::as_raw(self), poemuiobj, hprinter.param().abi(), pdevicename.param().abi(), wcapability, poutput, ppublicdm, poemdm, dwold, 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), dwlevel, pdriverupgradeinfo).ok() } pub unsafe fn PrinterEvent(&self, pprintername: P0, idriverevent: i32, dwflags: u32, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PrinterEvent)(windows_core::Interface::as_raw(self), pprintername.into_param().abi(), idriverevent, dwflags, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrinterEvent)(windows_core::Interface::as_raw(self), pprintername.param().abi(), idriverevent, dwflags, lparam.param().abi()).ok() } pub unsafe fn DriverEvent(&self, dwdriverevent: u32, dwlevel: u32, pdriverinfo: *const u8, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DriverEvent)(windows_core::Interface::as_raw(self), dwdriverevent, dwlevel, pdriverinfo, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DriverEvent)(windows_core::Interface::as_raw(self), dwdriverevent, dwlevel, pdriverinfo, lparam.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn QueryColorProfile(&self, hprinter: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryColorProfile)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), poemuiobj, ppublicdm, poemdm, ulquerymode, pvprofiledata, pcbprofiledata, pflprofiledata).ok() + (windows_core::Interface::vtable(self).QueryColorProfile)(windows_core::Interface::as_raw(self), hprinter.param().abi(), poemuiobj, ppublicdm, poemdm, ulquerymode, pvprofiledata, pcbprofiledata, pflprofiledata).ok() } pub unsafe fn FontInstallerDlgProc(&self, hwnd: P0, usmsg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FontInstallerDlgProc)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), usmsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FontInstallerDlgProc)(windows_core::Interface::as_raw(self), hwnd.param().abi(), usmsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn UpdateExternalFonts(&self, hprinter: P0, hheap: P1, pwstrcartridges: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateExternalFonts)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), hheap.into_param().abi(), pwstrcartridges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateExternalFonts)(windows_core::Interface::as_raw(self), hprinter.param().abi(), hheap.param().abi(), pwstrcartridges.param().abi()).ok() } } #[repr(C)] @@ -3452,9 +3452,9 @@ impl IPrintOemUI2 { } pub unsafe fn PublishDriverInterface(&self, piunknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PublishDriverInterface)(windows_core::Interface::as_raw(self), piunknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PublishDriverInterface)(windows_core::Interface::as_raw(self), piunknown.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn CommonUIProp(&self, dwmode: u32, poemcuipparam: *const OEMCUIPPARAM) -> windows_core::Result<()> { @@ -3462,15 +3462,15 @@ impl IPrintOemUI2 { } pub unsafe fn DocumentPropertySheets(&self, ppsuiinfo: *mut PROPSHEETUI_INFO, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DocumentPropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DocumentPropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.param().abi()).ok() } pub unsafe fn DevicePropertySheets(&self, ppsuiinfo: *const PROPSHEETUI_INFO, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DevicePropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DevicePropertySheets)(windows_core::Interface::as_raw(self), ppsuiinfo, lparam.param().abi()).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<()> { @@ -3479,56 +3479,56 @@ impl IPrintOemUI2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DeviceCapabilitiesA(&self, poemuiobj: *mut OEMUIOBJ, hprinter: P0, pdevicename: P1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeviceCapabilitiesA)(windows_core::Interface::as_raw(self), poemuiobj, hprinter.into_param().abi(), pdevicename.into_param().abi(), wcapability, poutput, ppublicdm, poemdm, dwold, dwresult).ok() + (windows_core::Interface::vtable(self).base__.DeviceCapabilitiesA)(windows_core::Interface::as_raw(self), poemuiobj, hprinter.param().abi(), pdevicename.param().abi(), wcapability, poutput, ppublicdm, poemdm, dwold, dwresult).ok() } pub unsafe fn UpgradePrinter(&self, dwlevel: u32, pdriverupgradeinfo: *const u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UpgradePrinter)(windows_core::Interface::as_raw(self), dwlevel, pdriverupgradeinfo).ok() } pub unsafe fn PrinterEvent(&self, pprintername: P0, idriverevent: i32, dwflags: u32, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PrinterEvent)(windows_core::Interface::as_raw(self), pprintername.into_param().abi(), idriverevent, dwflags, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PrinterEvent)(windows_core::Interface::as_raw(self), pprintername.param().abi(), idriverevent, dwflags, lparam.param().abi()).ok() } pub unsafe fn DriverEvent(&self, dwdriverevent: u32, dwlevel: u32, pdriverinfo: *const u8, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DriverEvent)(windows_core::Interface::as_raw(self), dwdriverevent, dwlevel, pdriverinfo, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DriverEvent)(windows_core::Interface::as_raw(self), dwdriverevent, dwlevel, pdriverinfo, lparam.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn QueryColorProfile(&self, hprinter: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryColorProfile)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), poemuiobj, ppublicdm, poemdm, ulquerymode, pvprofiledata, pcbprofiledata, pflprofiledata).ok() + (windows_core::Interface::vtable(self).base__.QueryColorProfile)(windows_core::Interface::as_raw(self), hprinter.param().abi(), poemuiobj, ppublicdm, poemdm, ulquerymode, pvprofiledata, pcbprofiledata, pflprofiledata).ok() } pub unsafe fn FontInstallerDlgProc(&self, hwnd: P0, usmsg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FontInstallerDlgProc)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), usmsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.FontInstallerDlgProc)(windows_core::Interface::as_raw(self), hwnd.param().abi(), usmsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn UpdateExternalFonts(&self, hprinter: P0, hheap: P1, pwstrcartridges: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateExternalFonts)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), hheap.into_param().abi(), pwstrcartridges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateExternalFonts)(windows_core::Interface::as_raw(self), hprinter.param().abi(), hheap.param().abi(), pwstrcartridges.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn QueryJobAttributes(&self, hprinter: P0, pdevmode: *const super::Gdi::DEVMODEA, dwlevel: u32, lpattributeinfo: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryJobAttributes)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), pdevmode, dwlevel, lpattributeinfo).ok() + (windows_core::Interface::vtable(self).QueryJobAttributes)(windows_core::Interface::as_raw(self), hprinter.param().abi(), 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), dwmode).ok() @@ -3536,10 +3536,10 @@ impl IPrintOemUI2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DocumentEvent(&self, hprinter: P0, hdc: P1, iesc: i32, cbin: u32, pvin: *mut core::ffi::c_void, cbout: u32, pvout: *mut core::ffi::c_void, piresult: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DocumentEvent)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), hdc.into_param().abi(), iesc, cbin, pvin, cbout, pvout, piresult).ok() + (windows_core::Interface::vtable(self).DocumentEvent)(windows_core::Interface::as_raw(self), hprinter.param().abi(), hdc.param().abi(), iesc, cbin, pvin, cbout, pvout, piresult).ok() } } #[repr(C)] @@ -3561,23 +3561,23 @@ impl IPrintOemUIMXDC { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AdjustImageableArea(&self, hprinter: P0, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, prclimageablearea: *mut super::super::Foundation::RECTL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdjustImageableArea)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), cbdevmode, pdevmode, cboemdm, poemdm, prclimageablearea).ok() + (windows_core::Interface::vtable(self).AdjustImageableArea)(windows_core::Interface::as_raw(self), hprinter.param().abi(), cbdevmode, pdevmode, cboemdm, poemdm, prclimageablearea).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AdjustImageCompression(&self, hprinter: P0, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pcompressionmode: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdjustImageCompression)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), cbdevmode, pdevmode, cboemdm, poemdm, pcompressionmode).ok() + (windows_core::Interface::vtable(self).AdjustImageCompression)(windows_core::Interface::as_raw(self), hprinter.param().abi(), cbdevmode, pdevmode, cboemdm, poemdm, pcompressionmode).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AdjustDPI(&self, hprinter: P0, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pdpi: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdjustDPI)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), cbdevmode, pdevmode, cboemdm, poemdm, pdpi).ok() + (windows_core::Interface::vtable(self).AdjustDPI)(windows_core::Interface::as_raw(self), hprinter.param().abi(), cbdevmode, pdevmode, cboemdm, poemdm, pdpi).ok() } } #[repr(C)] @@ -3601,11 +3601,11 @@ windows_core::imp::interface_hierarchy!(IPrintPipelineFilter, windows_core::IUnk impl IPrintPipelineFilter { pub unsafe fn InitializeFilter(&self, pinegotiation: P0, pipropertybag: P1, pipipelinecontrol: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFilter)(windows_core::Interface::as_raw(self), pinegotiation.into_param().abi(), pipropertybag.into_param().abi(), pipipelinecontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFilter)(windows_core::Interface::as_raw(self), pinegotiation.param().abi(), pipropertybag.param().abi(), pipipelinecontrol.param().abi()).ok() } pub unsafe fn ShutdownOperation(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShutdownOperation)(windows_core::Interface::as_raw(self)).ok() @@ -3627,9 +3627,9 @@ impl IPrintPipelineManagerControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RequestShutdown(&self, hrreason: windows_core::HRESULT, preason: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestShutdown)(windows_core::Interface::as_raw(self), hrreason, preason.into_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() @@ -3661,22 +3661,22 @@ windows_core::imp::interface_hierarchy!(IPrintPipelinePropertyBag, windows_core: impl IPrintPipelinePropertyBag { pub unsafe fn AddProperty(&self, pszname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddProperty)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).AddProperty)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pvar)).ok() } pub unsafe fn GetProperty(&self, pszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteProperty(&self, pszname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), pszname.into_param().abi()) + (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), pszname.param().abi()) } } #[repr(C)] @@ -3695,9 +3695,9 @@ impl IPrintPreviewDxgiPackageTarget { #[cfg(feature = "Win32_Graphics_Dxgi")] pub unsafe fn DrawPage(&self, jobpagenumber: u32, pageimage: P0, dpix: f32, dpiy: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawPage)(windows_core::Interface::as_raw(self), jobpagenumber, pageimage.into_param().abi(), dpix, 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() @@ -3771,9 +3771,9 @@ impl IPrintSchemaAsyncOperationEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Completed(&self, pticket: P0, hroperation: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), pticket.into_param().abi(), hroperation).ok() + (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), pticket.param().abi(), hroperation).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3806,19 +3806,19 @@ impl IPrintSchemaCapabilities { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeature(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeature)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeature)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PageImageableSize(&self) -> windows_core::Result { @@ -3836,18 +3836,18 @@ impl IPrintSchemaCapabilities { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSelectedOptionInPrintTicket(&self, pfeature: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSelectedOptionInPrintTicket)(windows_core::Interface::as_raw(self), pfeature.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSelectedOptionInPrintTicket)(windows_core::Interface::as_raw(self), pfeature.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetOptions(&self, pfeature: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOptions)(windows_core::Interface::as_raw(self), pfeature.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOptions)(windows_core::Interface::as_raw(self), pfeature.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3898,19 +3898,19 @@ impl IPrintSchemaCapabilities2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeature(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFeature)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFeature)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PageImageableSize(&self) -> windows_core::Result { @@ -3928,27 +3928,27 @@ impl IPrintSchemaCapabilities2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSelectedOptionInPrintTicket(&self, pfeature: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSelectedOptionInPrintTicket)(windows_core::Interface::as_raw(self), pfeature.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSelectedOptionInPrintTicket)(windows_core::Interface::as_raw(self), pfeature.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetOptions(&self, pfeature: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOptions)(windows_core::Interface::as_raw(self), pfeature.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetOptions)(windows_core::Interface::as_raw(self), pfeature.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetParameterDefinition(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParameterDefinition)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetParameterDefinition)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4046,9 +4046,9 @@ impl IPrintSchemaFeature { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSelectedOption(&self, poption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelectedOption)(windows_core::Interface::as_raw(self), poption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelectedOption)(windows_core::Interface::as_raw(self), poption.param().abi()).ok() } pub unsafe fn SelectionType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4057,11 +4057,11 @@ impl IPrintSchemaFeature { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetOption(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DisplayUI(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4119,11 +4119,11 @@ impl IPrintSchemaNUpOption { } pub unsafe fn GetPropertyValue(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyValue)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPropertyValue)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PagesPerSheet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4168,11 +4168,11 @@ impl IPrintSchemaOption { } pub unsafe fn GetPropertyValue(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyValue)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyValue)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4300,11 +4300,11 @@ impl IPrintSchemaPageMediaSizeOption { } pub unsafe fn GetPropertyValue(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyValue)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPropertyValue)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn WidthInMicrons(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4429,19 +4429,19 @@ impl IPrintSchemaTicket { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeature(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeature)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeature)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ValidateAsync(&self) -> windows_core::Result { @@ -4451,10 +4451,10 @@ impl IPrintSchemaTicket { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitAsync(&self, pprintticketcommit: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CommitAsync)(windows_core::Interface::as_raw(self), pprintticketcommit.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CommitAsync)(windows_core::Interface::as_raw(self), pprintticketcommit.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NotifyXmlChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NotifyXmlChanged)(windows_core::Interface::as_raw(self)).ok() @@ -4521,19 +4521,19 @@ impl IPrintSchemaTicket2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFeatureByKeyName)(windows_core::Interface::as_raw(self), bstrkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeature(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFeature)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFeature)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ValidateAsync(&self) -> windows_core::Result { @@ -4543,10 +4543,10 @@ impl IPrintSchemaTicket2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitAsync(&self, pprintticketcommit: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CommitAsync)(windows_core::Interface::as_raw(self), pprintticketcommit.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CommitAsync)(windows_core::Interface::as_raw(self), pprintticketcommit.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NotifyXmlChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.NotifyXmlChanged)(windows_core::Interface::as_raw(self)).ok() @@ -4566,11 +4566,11 @@ impl IPrintSchemaTicket2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetParameterInitializer(&self, bstrname: P0, bstrnamespaceuri: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParameterInitializer)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrnamespaceuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetParameterInitializer)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrnamespaceuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4587,15 +4587,15 @@ windows_core::imp::interface_hierarchy!(IPrintTicketProvider, windows_core::IUnk impl IPrintTicketProvider { pub unsafe fn GetSupportedVersions(&self, hprinter: P0, ppversions: *mut *mut i32, cversions: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSupportedVersions)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), ppversions, cversions).ok() + (windows_core::Interface::vtable(self).GetSupportedVersions)(windows_core::Interface::as_raw(self), hprinter.param().abi(), ppversions, cversions).ok() } pub unsafe fn BindPrinter(&self, hprinter: P0, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindPrinter)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), version, poptions, pdevmodeflags, cnamespaces, ppnamespaces).ok() + (windows_core::Interface::vtable(self).BindPrinter)(windows_core::Interface::as_raw(self), hprinter.param().abi(), version, poptions, pdevmodeflags, cnamespaces, 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() @@ -4603,31 +4603,31 @@ impl IPrintTicketProvider { #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn ConvertPrintTicketToDevMode(&self, pprintticket: P0, cbdevmodein: u32, pdevmodein: *mut super::Gdi::DEVMODEA, pcbdevmodeout: *mut u32, ppdevmodeout: *mut *mut super::Gdi::DEVMODEA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertPrintTicketToDevMode)(windows_core::Interface::as_raw(self), pprintticket.into_param().abi(), cbdevmodein, pdevmodein, pcbdevmodeout, ppdevmodeout).ok() + (windows_core::Interface::vtable(self).ConvertPrintTicketToDevMode)(windows_core::Interface::as_raw(self), pprintticket.param().abi(), cbdevmodein, pdevmodein, pcbdevmodeout, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertDevModeToPrintTicket)(windows_core::Interface::as_raw(self), cbdevmode, pdevmode, pprintticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertDevModeToPrintTicket)(windows_core::Interface::as_raw(self), cbdevmode, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPrintCapabilities)(windows_core::Interface::as_raw(self), pprintticket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPrintCapabilities)(windows_core::Interface::as_raw(self), pprintticket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn ValidatePrintTicket(&self, pbaseticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidatePrintTicket)(windows_core::Interface::as_raw(self), pbaseticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ValidatePrintTicket)(windows_core::Interface::as_raw(self), pbaseticket.param().abi()).ok() } } #[repr(C)] @@ -4658,15 +4658,15 @@ windows_core::imp::interface_hierarchy!(IPrintTicketProvider2, windows_core::IUn impl IPrintTicketProvider2 { pub unsafe fn GetSupportedVersions(&self, hprinter: P0, ppversions: *mut *mut i32, cversions: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetSupportedVersions)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), ppversions, cversions).ok() + (windows_core::Interface::vtable(self).base__.GetSupportedVersions)(windows_core::Interface::as_raw(self), hprinter.param().abi(), ppversions, cversions).ok() } pub unsafe fn BindPrinter(&self, hprinter: P0, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BindPrinter)(windows_core::Interface::as_raw(self), hprinter.into_param().abi(), version, poptions, pdevmodeflags, cnamespaces, ppnamespaces).ok() + (windows_core::Interface::vtable(self).base__.BindPrinter)(windows_core::Interface::as_raw(self), hprinter.param().abi(), version, poptions, pdevmodeflags, cnamespaces, ppnamespaces).ok() } pub unsafe fn QueryDeviceNamespace(&self, pdefaultnamespace: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.QueryDeviceNamespace)(windows_core::Interface::as_raw(self), core::mem::transmute(pdefaultnamespace)).ok() @@ -4674,48 +4674,48 @@ impl IPrintTicketProvider2 { #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn ConvertPrintTicketToDevMode(&self, pprintticket: P0, cbdevmodein: u32, pdevmodein: *mut super::Gdi::DEVMODEA, pcbdevmodeout: *mut u32, ppdevmodeout: *mut *mut super::Gdi::DEVMODEA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertPrintTicketToDevMode)(windows_core::Interface::as_raw(self), pprintticket.into_param().abi(), cbdevmodein, pdevmodein, pcbdevmodeout, ppdevmodeout).ok() + (windows_core::Interface::vtable(self).base__.ConvertPrintTicketToDevMode)(windows_core::Interface::as_raw(self), pprintticket.param().abi(), cbdevmodein, pdevmodein, pcbdevmodeout, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertDevModeToPrintTicket)(windows_core::Interface::as_raw(self), cbdevmode, pdevmode, pprintticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConvertDevModeToPrintTicket)(windows_core::Interface::as_raw(self), cbdevmode, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPrintCapabilities)(windows_core::Interface::as_raw(self), pprintticket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPrintCapabilities)(windows_core::Interface::as_raw(self), pprintticket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn ValidatePrintTicket(&self, pbaseticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ValidatePrintTicket)(windows_core::Interface::as_raw(self), pbaseticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ValidatePrintTicket)(windows_core::Interface::as_raw(self), pbaseticket.param().abi()).ok() } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn GetPrintDeviceCapabilities(&self, pprintticket: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPrintDeviceCapabilities)(windows_core::Interface::as_raw(self), pprintticket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPrintDeviceCapabilities)(windows_core::Interface::as_raw(self), pprintticket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn GetPrintDeviceResources(&self, pszlocalename: P0, pprintticket: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPrintDeviceResources)(windows_core::Interface::as_raw(self), pszlocalename.into_param().abi(), pprintticket.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPrintDeviceResources)(windows_core::Interface::as_raw(self), pszlocalename.param().abi(), pprintticket.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4741,9 +4741,9 @@ impl IPrintUnidiAsyncNotifyRegistration { } pub unsafe fn AsyncGetNotification(&self, param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncGetNotification)(windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsyncGetNotification)(windows_core::Interface::as_raw(self), param0.param().abi()).ok() } } #[repr(C)] @@ -4785,9 +4785,9 @@ windows_core::imp::interface_hierarchy!(IPrinterBidiSetRequestCallback, windows_ impl IPrinterBidiSetRequestCallback { pub unsafe fn Completed(&self, bstrresponse: P0, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), bstrresponse.into_param().abi(), hrstatus).ok() + (windows_core::Interface::vtable(self).Completed)(windows_core::Interface::as_raw(self), bstrresponse.param().abi(), hrstatus).ok() } } #[repr(C)] @@ -4895,16 +4895,16 @@ impl IPrinterExtensionEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnDriverEvent(&self, peventargs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDriverEvent)(windows_core::Interface::as_raw(self), peventargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDriverEvent)(windows_core::Interface::as_raw(self), peventargs.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnPrinterQueuesEnumerated(&self, pcontextcollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPrinterQueuesEnumerated)(windows_core::Interface::as_raw(self), pcontextcollection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPrinterQueuesEnumerated)(windows_core::Interface::as_raw(self), pcontextcollection.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5015,9 +5015,9 @@ windows_core::imp::interface_hierarchy!(IPrinterExtensionRequest, windows_core:: impl IPrinterExtensionRequest { pub unsafe fn Cancel(&self, hrstatus: windows_core::HRESULT, bstrlogmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), hrstatus, bstrlogmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), hrstatus, bstrlogmessage.param().abi()).ok() } pub unsafe fn Complete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Complete)(windows_core::Interface::as_raw(self)).ok() @@ -5038,72 +5038,72 @@ windows_core::imp::interface_hierarchy!(IPrinterPropertyBag, windows_core::IUnkn impl IPrinterPropertyBag { pub unsafe fn GetBool(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetBool(&self, bstrname: P0, bvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bvalue.param().abi()).ok() } pub unsafe fn GetInt32(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetInt32(&self, bstrname: P0, nvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), nvalue).ok() + (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), bstrname.param().abi(), nvalue).ok() } pub unsafe fn GetString(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetString(&self, bstrname: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrvalue.param().abi()).ok() } pub unsafe fn GetBytes(&self, bstrname: P0, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBytes)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), pcbvalue, ppvalue).ok() + (windows_core::Interface::vtable(self).GetBytes)(windows_core::Interface::as_raw(self), bstrname.param().abi(), pcbvalue, ppvalue).ok() } pub unsafe fn SetBytes(&self, bstrname: P0, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBytes)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), pvalue.len().try_into().unwrap(), core::mem::transmute(pvalue.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetBytes)(windows_core::Interface::as_raw(self), bstrname.param().abi(), pvalue.len().try_into().unwrap(), core::mem::transmute(pvalue.as_ptr())).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetReadStream(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReadStream)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReadStream)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWriteStream(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWriteStream)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWriteStream)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5143,9 +5143,9 @@ impl IPrinterQueue { } pub unsafe fn SendBidiQuery(&self, bstrbidiquery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendBidiQuery)(windows_core::Interface::as_raw(self), bstrbidiquery.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendBidiQuery)(windows_core::Interface::as_raw(self), bstrbidiquery.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetProperties(&self) -> windows_core::Result { @@ -5181,9 +5181,9 @@ impl IPrinterQueue2 { } pub unsafe fn SendBidiQuery(&self, bstrbidiquery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SendBidiQuery)(windows_core::Interface::as_raw(self), bstrbidiquery.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SendBidiQuery)(windows_core::Interface::as_raw(self), bstrbidiquery.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetProperties(&self) -> windows_core::Result { @@ -5192,11 +5192,11 @@ impl IPrinterQueue2 { } pub unsafe fn SendBidiSetRequestAsync(&self, bstrbidirequest: P0, pcallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendBidiSetRequestAsync)(windows_core::Interface::as_raw(self), bstrbidirequest.into_param().abi(), pcallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SendBidiSetRequestAsync)(windows_core::Interface::as_raw(self), bstrbidirequest.param().abi(), pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPrinterQueueView(&self, ulviewoffset: u32, ulviewsize: u32) -> windows_core::Result { @@ -5222,9 +5222,9 @@ windows_core::imp::interface_hierarchy!(IPrinterQueueEvent, windows_core::IUnkno impl IPrinterQueueEvent { pub unsafe fn OnBidiResponseReceived(&self, bstrresponse: P0, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBidiResponseReceived)(windows_core::Interface::as_raw(self), bstrresponse.into_param().abi(), hrstatus).ok() + (windows_core::Interface::vtable(self).OnBidiResponseReceived)(windows_core::Interface::as_raw(self), bstrresponse.param().abi(), hrstatus).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5258,9 +5258,9 @@ impl IPrinterQueueViewEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnChanged(&self, pcollection: P0, ulviewoffset: u32, ulviewsize: u32, ulcountjobsinprintqueue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), pcollection.into_param().abi(), ulviewoffset, ulviewsize, 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")] @@ -5319,76 +5319,76 @@ windows_core::imp::interface_hierarchy!(IPrinterScriptablePropertyBag, windows_c impl IPrinterScriptablePropertyBag { pub unsafe fn GetBool(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetBool(&self, bstrname: P0, bvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bvalue.param().abi()).ok() } pub unsafe fn GetInt32(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetInt32)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetInt32(&self, bstrname: P0, nvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), nvalue).ok() + (windows_core::Interface::vtable(self).SetInt32)(windows_core::Interface::as_raw(self), bstrname.param().abi(), nvalue).ok() } pub unsafe fn GetString(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetString(&self, bstrname: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBytes(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBytes)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBytes)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBytes(&self, bstrname: P0, parray: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBytes)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), parray.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBytes)(windows_core::Interface::as_raw(self), bstrname.param().abi(), parray.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetReadStream(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReadStream)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReadStream)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWriteStream(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWriteStream)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWriteStream)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5426,83 +5426,83 @@ windows_core::imp::interface_hierarchy!(IPrinterScriptablePropertyBag2, windows_ impl IPrinterScriptablePropertyBag2 { pub unsafe fn GetBool(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetBool)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetBool)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetBool(&self, bstrname: P0, bvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBool)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBool)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bvalue.param().abi()).ok() } pub unsafe fn GetInt32(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetInt32)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetInt32)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetInt32(&self, bstrname: P0, nvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInt32)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), nvalue).ok() + (windows_core::Interface::vtable(self).base__.SetInt32)(windows_core::Interface::as_raw(self), bstrname.param().abi(), nvalue).ok() } pub unsafe fn GetString(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetString)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetString)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetString(&self, bstrname: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBytes(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetBytes)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetBytes)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBytes(&self, bstrname: P0, parray: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBytes)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), parray.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBytes)(windows_core::Interface::as_raw(self), bstrname.param().abi(), parray.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetReadStream(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetReadStream)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetReadStream)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWriteStream(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWriteStream)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetWriteStream)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetReadStreamAsXML(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReadStreamAsXML)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReadStreamAsXML)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5525,10 +5525,10 @@ impl IPrinterScriptableSequentialStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Write(&self, parray: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), parray.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), parray.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5558,10 +5558,10 @@ impl IPrinterScriptableStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Write(&self, parray: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), parray.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), parray.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() @@ -5595,9 +5595,9 @@ impl IXpsDocument { } pub unsafe fn SetThumbnail(&self, pthumbnail: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnail)(windows_core::Interface::as_raw(self), pthumbnail.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnail)(windows_core::Interface::as_raw(self), pthumbnail.param().abi()).ok() } } #[repr(C)] @@ -5611,42 +5611,42 @@ windows_core::imp::interface_hierarchy!(IXpsDocumentConsumer, windows_core::IUnk impl IXpsDocumentConsumer { pub unsafe fn SendXpsUnknown(&self, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendXpsUnknown)(windows_core::Interface::as_raw(self), punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendXpsUnknown)(windows_core::Interface::as_raw(self), punknown.param().abi()).ok() } pub unsafe fn SendXpsDocument(&self, pixpsdocument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendXpsDocument)(windows_core::Interface::as_raw(self), pixpsdocument.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendXpsDocument)(windows_core::Interface::as_raw(self), pixpsdocument.param().abi()).ok() } pub unsafe fn SendFixedDocumentSequence(&self, pifixeddocumentsequence: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendFixedDocumentSequence)(windows_core::Interface::as_raw(self), pifixeddocumentsequence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendFixedDocumentSequence)(windows_core::Interface::as_raw(self), pifixeddocumentsequence.param().abi()).ok() } pub unsafe fn SendFixedDocument(&self, pifixeddocument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendFixedDocument)(windows_core::Interface::as_raw(self), pifixeddocument.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendFixedDocument)(windows_core::Interface::as_raw(self), pifixeddocument.param().abi()).ok() } pub unsafe fn SendFixedPage(&self, pifixedpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendFixedPage)(windows_core::Interface::as_raw(self), pifixedpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendFixedPage)(windows_core::Interface::as_raw(self), pifixedpage.param().abi()).ok() } pub unsafe fn CloseSender(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseSender)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetNewEmptyPart(&self, uri: P0, riid: *const windows_core::GUID, ppnewobject: *mut *mut core::ffi::c_void, ppwritestream: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNewEmptyPart)(windows_core::Interface::as_raw(self), uri.into_param().abi(), riid, ppnewobject, core::mem::transmute(ppwritestream)).ok() + (windows_core::Interface::vtable(self).GetNewEmptyPart)(windows_core::Interface::as_raw(self), uri.param().abi(), riid, ppnewobject, core::mem::transmute(ppwritestream)).ok() } } #[repr(C)] @@ -5703,10 +5703,10 @@ impl IXpsRasterizationFactory { #[cfg(feature = "Win32_Storage_Xps")] pub unsafe fn CreateRasterizer(&self, xpspage: P0, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.into_param().abi(), dpi, nontextrenderingmode, 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)] @@ -5723,10 +5723,10 @@ impl IXpsRasterizationFactory1 { #[cfg(feature = "Win32_Storage_Xps")] pub unsafe fn CreateRasterizer(&self, xpspage: P0, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.into_param().abi(), dpi, nontextrenderingmode, textrenderingmode, 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)] @@ -5743,10 +5743,10 @@ impl IXpsRasterizationFactory2 { #[cfg(feature = "Win32_Storage_Xps")] pub unsafe fn CreateRasterizer(&self, xpspage: P0, dpix: f32, dpiy: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT, backgroundcolor: XPSRAS_BACKGROUND_COLOR) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRasterizer)(windows_core::Interface::as_raw(self), xpspage.into_param().abi(), dpix, dpiy, nontextrenderingmode, textrenderingmode, pixelformat, 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)] @@ -5763,10 +5763,10 @@ impl IXpsRasterizer { #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn RasterizeRect(&self, x: i32, y: i32, width: i32, height: i32, notificationcallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RasterizeRect)(windows_core::Interface::as_raw(self), x, y, width, height, notificationcallback.into_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), width).ok() 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 90b16f907e..b3dfb7b72f 100644 --- a/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs @@ -1,37 +1,37 @@ #[inline] pub unsafe fn ApplyLocalManagementSyncML(syncmlrequest: P0, syncmlresult: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mdmlocalmanagement.dll" "system" fn ApplyLocalManagementSyncML(syncmlrequest : windows_core::PCWSTR, syncmlresult : *mut windows_core::PWSTR) -> windows_core::HRESULT); - ApplyLocalManagementSyncML(syncmlrequest.into_param().abi(), core::mem::transmute(syncmlresult.unwrap_or(std::ptr::null_mut()))).ok() + ApplyLocalManagementSyncML(syncmlrequest.param().abi(), core::mem::transmute(syncmlresult.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn DiscoverManagementService(pszupn: P0) -> windows_core::Result<*mut MANAGEMENT_SERVICE_INFO> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn DiscoverManagementService(pszupn : windows_core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DiscoverManagementService(pszupn.into_param().abi(), &mut result__).map(|| result__) + DiscoverManagementService(pszupn.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DiscoverManagementServiceEx(pszupn: P0, pszdiscoveryservicecandidate: P1) -> windows_core::Result<*mut MANAGEMENT_SERVICE_INFO> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn DiscoverManagementServiceEx(pszupn : windows_core::PCWSTR, pszdiscoveryservicecandidate : windows_core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DiscoverManagementServiceEx(pszupn.into_param().abi(), pszdiscoveryservicecandidate.into_param().abi(), &mut result__).map(|| result__) + DiscoverManagementServiceEx(pszupn.param().abi(), pszdiscoveryservicecandidate.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetDeviceManagementConfigInfo(providerid: P0, configstringbufferlength: *mut u32, configstring: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn GetDeviceManagementConfigInfo(providerid : windows_core::PCWSTR, configstringbufferlength : *mut u32, configstring : windows_core::PWSTR) -> windows_core::HRESULT); - GetDeviceManagementConfigInfo(providerid.into_param().abi(), configstringbufferlength, core::mem::transmute(configstring)).ok() + GetDeviceManagementConfigInfo(providerid.param().abi(), configstringbufferlength, core::mem::transmute(configstring)).ok() } #[inline] pub unsafe fn GetDeviceRegistrationInfo(deviceinformationclass: REGISTRATION_INFORMATION_CLASS, ppdeviceregistrationinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -68,20 +68,20 @@ pub unsafe fn RegisterDeviceWithLocalManagement(alreadyregistered: Option<*mut s #[inline] pub unsafe fn RegisterDeviceWithManagement(pszupn: P0, ppszmdmserviceuri: P1, ppzsaccesstoken: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagement(pszupn : windows_core::PCWSTR, ppszmdmserviceuri : windows_core::PCWSTR, ppzsaccesstoken : windows_core::PCWSTR) -> windows_core::HRESULT); - RegisterDeviceWithManagement(pszupn.into_param().abi(), ppszmdmserviceuri.into_param().abi(), ppzsaccesstoken.into_param().abi()).ok() + RegisterDeviceWithManagement(pszupn.param().abi(), ppszmdmserviceuri.param().abi(), ppzsaccesstoken.param().abi()).ok() } #[inline] pub unsafe fn RegisterDeviceWithManagementUsingAADCredentials(usertoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADCredentials(usertoken : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RegisterDeviceWithManagementUsingAADCredentials(usertoken.into_param().abi()).ok() + RegisterDeviceWithManagementUsingAADCredentials(usertoken.param().abi()).ok() } #[inline] pub unsafe fn RegisterDeviceWithManagementUsingAADDeviceCredentials() -> windows_core::Result<()> { @@ -91,27 +91,27 @@ pub unsafe fn RegisterDeviceWithManagementUsingAADDeviceCredentials() -> windows #[inline] pub unsafe fn RegisterDeviceWithManagementUsingAADDeviceCredentials2(mdmapplicationid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADDeviceCredentials2(mdmapplicationid : windows_core::PCWSTR) -> windows_core::HRESULT); - RegisterDeviceWithManagementUsingAADDeviceCredentials2(mdmapplicationid.into_param().abi()).ok() + RegisterDeviceWithManagementUsingAADDeviceCredentials2(mdmapplicationid.param().abi()).ok() } #[inline] pub unsafe fn SetDeviceManagementConfigInfo(providerid: P0, configstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn SetDeviceManagementConfigInfo(providerid : windows_core::PCWSTR, configstring : windows_core::PCWSTR) -> windows_core::HRESULT); - SetDeviceManagementConfigInfo(providerid.into_param().abi(), configstring.into_param().abi()).ok() + SetDeviceManagementConfigInfo(providerid.param().abi(), configstring.param().abi()).ok() } #[inline] pub unsafe fn SetManagedExternally(ismanagedexternally: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn SetManagedExternally(ismanagedexternally : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - SetManagedExternally(ismanagedexternally.into_param().abi()).ok() + SetManagedExternally(ismanagedexternally.param().abi()).ok() } #[inline] pub unsafe fn UnregisterDeviceWithLocalManagement() -> windows_core::Result<()> { @@ -121,10 +121,10 @@ pub unsafe fn UnregisterDeviceWithLocalManagement() -> windows_core::Result<()> #[inline] pub unsafe fn UnregisterDeviceWithManagement(enrollmentid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mdmregistration.dll" "system" fn UnregisterDeviceWithManagement(enrollmentid : windows_core::PCWSTR) -> windows_core::HRESULT); - UnregisterDeviceWithManagement(enrollmentid.into_param().abi()).ok() + UnregisterDeviceWithManagement(enrollmentid.param().abi()).ok() } pub const DEVICEREGISTRATIONTYPE_MAM: u32 = 5u32; pub const DEVICEREGISTRATIONTYPE_MDM_DEVICEWIDE_WITH_AAD: u32 = 6u32; 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 ffa559aba0..d4947d2c53 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 @@ -16,10 +16,10 @@ impl IApoAuxiliaryInputConfiguration { } pub unsafe fn IsInputFormatSupported(&self, prequestedinputformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsInputFormatSupported)(windows_core::Interface::as_raw(self), prequestedinputformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).IsInputFormatSupported)(windows_core::Interface::as_raw(self), prequestedinputformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -46,9 +46,9 @@ windows_core::imp::interface_hierarchy!(IAudioDeviceModulesClient, windows_core: impl IAudioDeviceModulesClient { pub unsafe fn SetAudioDeviceModulesManager(&self, paudiodevicemodulesmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioDeviceModulesManager)(windows_core::Interface::as_raw(self), paudiodevicemodulesmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioDeviceModulesManager)(windows_core::Interface::as_raw(self), paudiodevicemodulesmanager.param().abi()).ok() } } #[repr(C)] @@ -65,10 +65,10 @@ impl IAudioMediaType { } pub unsafe fn IsEqual(&self, piaudiotype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), piaudiotype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), piaudiotype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAudioFormat(&self) -> *mut super::WAVEFORMATEX { (windows_core::Interface::vtable(self).GetAudioFormat)(windows_core::Interface::as_raw(self)) @@ -104,19 +104,19 @@ impl IAudioProcessingObject { } pub unsafe fn IsInputFormatSupported(&self, poppositeformat: P0, prequestedinputformat: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsInputFormatSupported)(windows_core::Interface::as_raw(self), poppositeformat.into_param().abi(), prequestedinputformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).IsInputFormatSupported)(windows_core::Interface::as_raw(self), poppositeformat.param().abi(), prequestedinputformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsOutputFormatSupported(&self, poppositeformat: P0, prequestedoutputformat: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsOutputFormatSupported)(windows_core::Interface::as_raw(self), poppositeformat.into_param().abi(), prequestedoutputformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).IsOutputFormatSupported)(windows_core::Interface::as_raw(self), poppositeformat.param().abi(), prequestedoutputformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetInputChannelCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -155,9 +155,9 @@ windows_core::imp::interface_hierarchy!(IAudioProcessingObjectLoggingService, wi impl IAudioProcessingObjectLoggingService { pub unsafe fn ApoLog(&self, level: APO_LOG_LEVEL, format: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApoLog)(windows_core::Interface::as_raw(self), level, format.into_param().abi()) + (windows_core::Interface::vtable(self).ApoLog)(windows_core::Interface::as_raw(self), level, format.param().abi()) } } #[repr(C)] @@ -267,9 +267,9 @@ windows_core::imp::interface_hierarchy!(IAudioSystemEffects2, windows_core::IUnk impl IAudioSystemEffects2 { pub unsafe fn GetEffectsList(&self, ppeffectsids: *mut *mut windows_core::GUID, pceffects: *mut u32, event: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEffectsList)(windows_core::Interface::as_raw(self), ppeffectsids, pceffects, event.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetEffectsList)(windows_core::Interface::as_raw(self), ppeffectsids, pceffects, event.param().abi()).ok() } } #[repr(C)] @@ -282,15 +282,15 @@ windows_core::imp::interface_hierarchy!(IAudioSystemEffects3, windows_core::IUnk impl IAudioSystemEffects3 { pub unsafe fn GetEffectsList(&self, ppeffectsids: *mut *mut windows_core::GUID, pceffects: *mut u32, event: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEffectsList)(windows_core::Interface::as_raw(self), ppeffectsids, pceffects, event.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetEffectsList)(windows_core::Interface::as_raw(self), ppeffectsids, pceffects, event.param().abi()).ok() } pub unsafe fn GetControllableSystemEffectsList(&self, effects: *mut *mut AUDIO_SYSTEMEFFECT, numeffects: *mut u32, event: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetControllableSystemEffectsList)(windows_core::Interface::as_raw(self), effects, numeffects, event.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetControllableSystemEffectsList)(windows_core::Interface::as_raw(self), effects, numeffects, event.param().abi()).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), state).ok() 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 444a207fb8..a2382e006e 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 @@ -6,15 +6,15 @@ impl IDirectMusic { } pub unsafe fn CreateMusicBuffer(&self, pbufferdesc: *mut DMUS_BUFFERDESC, ppbuffer: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMusicBuffer)(windows_core::Interface::as_raw(self), pbufferdesc, core::mem::transmute(ppbuffer), punkouter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateMusicBuffer)(windows_core::Interface::as_raw(self), pbufferdesc, core::mem::transmute(ppbuffer), punkouter.param().abi()).ok() } pub unsafe fn CreatePort(&self, rclsidport: *const windows_core::GUID, pportparams: *mut DMUS_PORTPARAMS8, ppport: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePort)(windows_core::Interface::as_raw(self), rclsidport, pportparams, core::mem::transmute(ppport), punkouter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePort)(windows_core::Interface::as_raw(self), rclsidport, 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), dwindex, lpclockinfo).ok() @@ -27,9 +27,9 @@ impl IDirectMusic { } pub unsafe fn Activate(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn GetDefaultPort(&self, pguidport: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultPort)(windows_core::Interface::as_raw(self), pguidport).ok() @@ -37,10 +37,10 @@ impl IDirectMusic { #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn SetDirectSound(&self, pdirectsound: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), hwnd.param().abi()).ok() } } #[repr(C)] @@ -67,15 +67,15 @@ impl IDirectMusic8 { } pub unsafe fn CreateMusicBuffer(&self, pbufferdesc: *mut DMUS_BUFFERDESC, ppbuffer: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateMusicBuffer)(windows_core::Interface::as_raw(self), pbufferdesc, core::mem::transmute(ppbuffer), punkouter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CreateMusicBuffer)(windows_core::Interface::as_raw(self), pbufferdesc, core::mem::transmute(ppbuffer), punkouter.param().abi()).ok() } pub unsafe fn CreatePort(&self, rclsidport: *const windows_core::GUID, pportparams: *mut DMUS_PORTPARAMS8, ppport: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreatePort)(windows_core::Interface::as_raw(self), rclsidport, pportparams, core::mem::transmute(ppport), punkouter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CreatePort)(windows_core::Interface::as_raw(self), rclsidport, 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).base__.EnumMasterClock)(windows_core::Interface::as_raw(self), dwindex, lpclockinfo).ok() @@ -88,9 +88,9 @@ impl IDirectMusic8 { } pub unsafe fn Activate(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn GetDefaultPort(&self, pguidport: *mut windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetDefaultPort)(windows_core::Interface::as_raw(self), pguidport).ok() @@ -98,16 +98,16 @@ impl IDirectMusic8 { #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn SetDirectSound(&self, pdirectsound: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn SetExternalMasterClock(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExternalMasterClock)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExternalMasterClock)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } } #[repr(C)] @@ -184,9 +184,9 @@ impl IDirectMusicCollection { } pub unsafe fn EnumInstrument(&self, dwindex: u32, pdwpatch: *mut u32, pwszname: P0, dwnamelen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumInstrument)(windows_core::Interface::as_raw(self), dwindex, pdwpatch, pwszname.into_param().abi(), dwnamelen).ok() + (windows_core::Interface::vtable(self).EnumInstrument)(windows_core::Interface::as_raw(self), dwindex, pdwpatch, pwszname.param().abi(), dwnamelen).ok() } } #[repr(C)] @@ -235,33 +235,33 @@ windows_core::imp::interface_hierarchy!(IDirectMusicPort, windows_core::IUnknown impl IDirectMusicPort { pub unsafe fn PlayBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn SetReadNotificationHandle(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReadNotificationHandle)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReadNotificationHandle)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } pub unsafe fn Read(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn DownloadInstrument(&self, pinstrument: P0, ppdownloadedinstrument: *mut Option, pnoteranges: *mut DMUS_NOTERANGE, dwnumnoteranges: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DownloadInstrument)(windows_core::Interface::as_raw(self), pinstrument.into_param().abi(), core::mem::transmute(ppdownloadedinstrument), pnoteranges, dwnumnoteranges).ok() + (windows_core::Interface::vtable(self).DownloadInstrument)(windows_core::Interface::as_raw(self), pinstrument.param().abi(), core::mem::transmute(ppdownloadedinstrument), pnoteranges, dwnumnoteranges).ok() } pub unsafe fn UnloadInstrument(&self, pdownloadedinstrument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadInstrument)(windows_core::Interface::as_raw(self), pdownloadedinstrument.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnloadInstrument)(windows_core::Interface::as_raw(self), pdownloadedinstrument.param().abi()).ok() } pub unsafe fn GetLatencyClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -288,9 +288,9 @@ impl IDirectMusicPort { } pub unsafe fn Activate(&self, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), factive.param().abi()).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), dwchannelgroup, dwchannel, dwpriority).ok() @@ -301,10 +301,10 @@ impl IDirectMusicPort { #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn SetDirectSound(&self, pdirectsound: P0, pdirectsoundbuffer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.into_param().abi(), pdirectsoundbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), pdirectsoundbuffer.param().abi()).ok() } pub unsafe fn GetFormat(&self, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32, pdwbuffersize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), pwaveformatex, pdwwaveformatexsize, pdwbuffersize).ok() @@ -356,15 +356,15 @@ impl IDirectMusicPortDownload { } pub unsafe fn Download(&self, pidmdownload: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pidmdownload.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pidmdownload.param().abi()).ok() } pub unsafe fn Unload(&self, pidmdownload: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unload)(windows_core::Interface::as_raw(self), pidmdownload.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unload)(windows_core::Interface::as_raw(self), pidmdownload.param().abi()).ok() } } #[repr(C)] @@ -394,10 +394,10 @@ impl IDirectMusicSynth { } pub unsafe fn Unload(&self, hdownload: P0, lpfreehandle: isize, huserdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Unload)(windows_core::Interface::as_raw(self), hdownload.into_param().abi(), lpfreehandle, huserdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unload)(windows_core::Interface::as_raw(self), hdownload.param().abi(), lpfreehandle, huserdata.param().abi()).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), rt, pbbuffer, cbbuffer).ok() @@ -410,9 +410,9 @@ impl IDirectMusicSynth { } pub unsafe fn SetMasterClock(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMasterClock)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMasterClock)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn GetLatencyClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -420,15 +420,15 @@ impl IDirectMusicSynth { } pub unsafe fn Activate(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn SetSynthSink(&self, psynthsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSynthSink)(windows_core::Interface::as_raw(self), psynthsink.into_param().abi()).ok() + (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), pbuffer, dwlength, llposition).ok() @@ -484,10 +484,10 @@ impl IDirectMusicSynth8 { } pub unsafe fn Unload(&self, hdownload: P0, lpfreehandle: isize, huserdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Unload)(windows_core::Interface::as_raw(self), hdownload.into_param().abi(), lpfreehandle, huserdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Unload)(windows_core::Interface::as_raw(self), hdownload.param().abi(), lpfreehandle, huserdata.param().abi()).ok() } pub unsafe fn PlayBuffer(&self, rt: i64, pbbuffer: *mut u8, cbbuffer: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.PlayBuffer)(windows_core::Interface::as_raw(self), rt, pbbuffer, cbbuffer).ok() @@ -500,9 +500,9 @@ impl IDirectMusicSynth8 { } pub unsafe fn SetMasterClock(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMasterClock)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMasterClock)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn GetLatencyClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -510,15 +510,15 @@ impl IDirectMusicSynth8 { } pub unsafe fn Activate(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn SetSynthSink(&self, psynthsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSynthSink)(windows_core::Interface::as_raw(self), psynthsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Render)(windows_core::Interface::as_raw(self), pbuffer, dwlength, llposition).ok() @@ -565,15 +565,15 @@ windows_core::imp::interface_hierarchy!(IDirectMusicSynthSink, windows_core::IUn impl IDirectMusicSynthSink { pub unsafe fn Init(&self, psynth: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), psynth.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), psynth.param().abi()).ok() } pub unsafe fn SetMasterClock(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMasterClock)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMasterClock)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn GetLatencyClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -581,9 +581,9 @@ impl IDirectMusicSynthSink { } pub unsafe fn Activate(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), fenable.param().abi()).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), llsampletime, prftime).ok() @@ -594,10 +594,10 @@ impl IDirectMusicSynthSink { #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn SetDirectSound(&self, pdirectsound: P0, pdirectsoundbuffer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.into_param().abi(), pdirectsoundbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectSound)(windows_core::Interface::as_raw(self), pdirectsound.param().abi(), pdirectsoundbuffer.param().abi()).ok() } pub unsafe fn GetDesiredBufferSize(&self, pdwbuffersizeinsamples: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDesiredBufferSize)(windows_core::Interface::as_raw(self), pdwbuffersizeinsamples).ok() @@ -623,9 +623,9 @@ windows_core::imp::interface_hierarchy!(IDirectMusicThru, windows_core::IUnknown impl IDirectMusicThru { pub unsafe fn ThruChannel(&self, dwsourcechannelgroup: u32, dwsourcechannel: u32, dwdestinationchannelgroup: u32, dwdestinationchannel: u32, pdestinationport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ThruChannel)(windows_core::Interface::as_raw(self), dwsourcechannelgroup, dwsourcechannel, dwdestinationchannelgroup, dwdestinationchannel, pdestinationport.into_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 78ab1ed0f1..de01038776 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 @@ -1,18 +1,18 @@ #[inline] pub unsafe fn DirectSoundCaptureCreate(pcguiddevice: Option<*const windows_core::GUID>, ppdsc: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsound.dll" "system" fn DirectSoundCaptureCreate(pcguiddevice : *const windows_core::GUID, ppdsc : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundCaptureCreate(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppdsc), punkouter.into_param().abi()).ok() + DirectSoundCaptureCreate(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppdsc), punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectSoundCaptureCreate8(pcguiddevice: Option<*const windows_core::GUID>, ppdsc8: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsound.dll" "system" fn DirectSoundCaptureCreate8(pcguiddevice : *const windows_core::GUID, ppdsc8 : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundCaptureCreate8(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppdsc8), punkouter.into_param().abi()).ok() + DirectSoundCaptureCreate8(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppdsc8), punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectSoundCaptureEnumerateA(pdsenumcallback: LPDSENUMCALLBACKA, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -27,18 +27,18 @@ pub unsafe fn DirectSoundCaptureEnumerateW(pdsenumcallback: LPDSENUMCALLBACKW, p #[inline] pub unsafe fn DirectSoundCreate(pcguiddevice: Option<*const windows_core::GUID>, ppds: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsound.dll" "system" fn DirectSoundCreate(pcguiddevice : *const windows_core::GUID, ppds : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundCreate(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppds), punkouter.into_param().abi()).ok() + DirectSoundCreate(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppds), punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectSoundCreate8(pcguiddevice: Option<*const windows_core::GUID>, ppds8: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsound.dll" "system" fn DirectSoundCreate8(pcguiddevice : *const windows_core::GUID, ppds8 : *mut * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_core::HRESULT); - DirectSoundCreate8(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppds8), punkouter.into_param().abi()).ok() + DirectSoundCreate8(core::mem::transmute(pcguiddevice.unwrap_or(std::ptr::null())), core::mem::transmute(ppds8), punkouter.param().abi()).ok() } #[inline] pub unsafe fn DirectSoundEnumerateA(pdsenumcallback: LPDSENUMCALLBACKA, pcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -53,11 +53,11 @@ pub unsafe fn DirectSoundEnumerateW(pdsenumcallback: LPDSENUMCALLBACKW, pcontext #[inline] pub unsafe fn DirectSoundFullDuplexCreate(pcguidcapturedevice: Option<*const windows_core::GUID>, pcguidrenderdevice: Option<*const windows_core::GUID>, pcdscbufferdesc: *const DSCBUFFERDESC, pcdsbufferdesc: *const DSBUFFERDESC, hwnd: P0, dwlevel: u32, ppdsfd: *mut Option, ppdscbuffer8: *mut Option, ppdsbuffer8: *mut Option, punkouter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(std::ptr::null())), core::mem::transmute(pcguidrenderdevice.unwrap_or(std::ptr::null())), pcdscbufferdesc, pcdsbufferdesc, hwnd.into_param().abi(), dwlevel, core::mem::transmute(ppdsfd), core::mem::transmute(ppdscbuffer8), core::mem::transmute(ppdsbuffer8), punkouter.into_param().abi()).ok() + DirectSoundFullDuplexCreate(core::mem::transmute(pcguidcapturedevice.unwrap_or(std::ptr::null())), core::mem::transmute(pcguidrenderdevice.unwrap_or(std::ptr::null())), pcdscbufferdesc, pcdsbufferdesc, hwnd.param().abi(), 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 { @@ -70,25 +70,25 @@ windows_core::imp::interface_hierarchy!(IDirectSound, windows_core::IUnknown); impl IDirectSound { pub unsafe fn CreateSoundBuffer(&self, pcdsbufferdesc: *const DSBUFFERDESC, ppdsbuffer: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSoundBuffer)(windows_core::Interface::as_raw(self), pcdsbufferdesc, core::mem::transmute(ppdsbuffer), punkouter.into_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), pdscaps).ok() } pub unsafe fn DuplicateSoundBuffer(&self, pdsbufferoriginal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DuplicateSoundBuffer)(windows_core::Interface::as_raw(self), pdsbufferoriginal.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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: P0, dwlevel: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), dwlevel).ok() + (windows_core::Interface::vtable(self).SetCooperativeLevel)(windows_core::Interface::as_raw(self), hwnd.param().abi(), dwlevel).ok() } pub unsafe fn Compact(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Compact)(windows_core::Interface::as_raw(self)).ok() @@ -321,25 +321,25 @@ windows_core::imp::interface_hierarchy!(IDirectSound8, windows_core::IUnknown, I impl IDirectSound8 { pub unsafe fn CreateSoundBuffer(&self, pcdsbufferdesc: *const DSBUFFERDESC, ppdsbuffer: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateSoundBuffer)(windows_core::Interface::as_raw(self), pcdsbufferdesc, core::mem::transmute(ppdsbuffer), punkouter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetCaps)(windows_core::Interface::as_raw(self), pdscaps).ok() } pub unsafe fn DuplicateSoundBuffer(&self, pdsbufferoriginal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.DuplicateSoundBuffer)(windows_core::Interface::as_raw(self), pdsbufferoriginal.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, dwlevel: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), dwlevel).ok() + (windows_core::Interface::vtable(self).base__.SetCooperativeLevel)(windows_core::Interface::as_raw(self), hwnd.param().abi(), dwlevel).ok() } pub unsafe fn Compact(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Compact)(windows_core::Interface::as_raw(self)).ok() @@ -394,9 +394,9 @@ impl IDirectSoundBuffer { } pub unsafe fn Initialize(&self, pdirectsound: P0, pcdsbufferdesc: *const DSBUFFERDESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdirectsound.into_param().abi(), 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), dwoffset, dwbytes, ppvaudioptr1, pdwaudiobytes1, core::mem::transmute(ppvaudioptr2.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwaudiobytes2.unwrap_or(std::ptr::null_mut())), dwflags).ok() @@ -481,9 +481,9 @@ impl IDirectSoundBuffer8 { } pub unsafe fn Initialize(&self, pdirectsound: P0, pcdsbufferdesc: *const DSBUFFERDESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pdirectsound.into_param().abi(), pcdsbufferdesc).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Lock)(windows_core::Interface::as_raw(self), dwoffset, dwbytes, ppvaudioptr1, pdwaudiobytes1, core::mem::transmute(ppvaudioptr2.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwaudiobytes2.unwrap_or(std::ptr::null_mut())), dwflags).ok() @@ -537,9 +537,9 @@ windows_core::imp::interface_hierarchy!(IDirectSoundCapture, windows_core::IUnkn impl IDirectSoundCapture { pub unsafe fn CreateCaptureBuffer(&self, pcdscbufferdesc: *const DSCBUFFERDESC, ppdscbuffer: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateCaptureBuffer)(windows_core::Interface::as_raw(self), pcdscbufferdesc, core::mem::transmute(ppdscbuffer), punkouter.into_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__ = std::mem::zeroed(); @@ -575,9 +575,9 @@ impl IDirectSoundCaptureBuffer { } pub unsafe fn Initialize(&self, pdirectsoundcapture: P0, pcdscbufferdesc: *const DSCBUFFERDESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdirectsoundcapture.into_param().abi(), 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), dwoffset, dwbytes, ppvaudioptr1, pdwaudiobytes1, core::mem::transmute(ppvaudioptr2.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwaudiobytes2.unwrap_or(std::ptr::null_mut())), dwflags).ok() @@ -624,9 +624,9 @@ impl IDirectSoundCaptureBuffer8 { } pub unsafe fn Initialize(&self, pdirectsoundcapture: P0, pcdscbufferdesc: *const DSCBUFFERDESC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pdirectsoundcapture.into_param().abi(), pcdscbufferdesc).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Lock)(windows_core::Interface::as_raw(self), dwoffset, dwbytes, ppvaudioptr1, pdwaudiobytes1, core::mem::transmute(ppvaudioptr2.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwaudiobytes2.unwrap_or(std::ptr::null_mut())), dwflags).ok() @@ -870,9 +870,9 @@ windows_core::imp::interface_hierarchy!(IDirectSoundFullDuplex, windows_core::IU impl IDirectSoundFullDuplex { pub unsafe fn Initialize(&self, pcaptureguid: *const windows_core::GUID, prenderguid: *const windows_core::GUID, lpdscbufferdesc: *const DSCBUFFERDESC, lpdsbufferdesc: *const DSBUFFERDESC, hwnd: P0, dwlevel: u32, lplpdirectsoundcapturebuffer8: *mut Option, lplpdirectsoundbuffer8: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pcaptureguid, prenderguid, lpdscbufferdesc, lpdsbufferdesc, hwnd.into_param().abi(), 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.param().abi(), 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 c9e5b7cc2e..bce0ba47f8 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 @@ -96,15 +96,15 @@ windows_core::imp::interface_hierarchy!(IAudioEndpointVolume, windows_core::IUnk impl IAudioEndpointVolume { pub unsafe fn RegisterControlChangeNotify(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn UnregisterControlChangeNotify(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn GetChannelCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -140,9 +140,9 @@ impl IAudioEndpointVolume { } pub unsafe fn SetMute(&self, bmute: P0, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into_param().abi(), pguideventcontext).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.param().abi(), pguideventcontext).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -204,15 +204,15 @@ windows_core::imp::interface_hierarchy!(IAudioEndpointVolumeEx, windows_core::IU impl IAudioEndpointVolumeEx { pub unsafe fn RegisterControlChangeNotify(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn UnregisterControlChangeNotify(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterControlChangeNotify)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn GetChannelCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -248,9 +248,9 @@ impl IAudioEndpointVolumeEx { } pub unsafe fn SetMute(&self, bmute: P0, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMute)(windows_core::Interface::as_raw(self), bmute.into_param().abi(), pguideventcontext).ok() + (windows_core::Interface::vtable(self).base__.SetMute)(windows_core::Interface::as_raw(self), bmute.param().abi(), pguideventcontext).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -286,9 +286,9 @@ windows_core::imp::interface_hierarchy!(IAudioLfxControl, windows_core::IUnknown impl IAudioLfxControl { pub unsafe fn SetLocalEffectsState(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalEffectsState)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalEffectsState)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn GetLocalEffectsState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -333,37 +333,37 @@ windows_core::imp::interface_hierarchy!(IHardwareAudioEngineBase, windows_core:: impl IHardwareAudioEngineBase { pub unsafe fn GetAvailableOffloadConnectorCount(&self, _pwstrdeviceid: P0, _uconnectorid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAvailableOffloadConnectorCount)(windows_core::Interface::as_raw(self), _pwstrdeviceid.into_param().abi(), _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: P1, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEngineFormat)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), _brequestdeviceformat.into_param().abi(), _ppwfxformat).ok() + (windows_core::Interface::vtable(self).GetEngineFormat)(windows_core::Interface::as_raw(self), pdevice.param().abi(), _brequestdeviceformat.param().abi(), _ppwfxformat).ok() } pub unsafe fn SetEngineDeviceFormat(&self, pdevice: P0, _pwfxformat: *mut super::WAVEFORMATEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEngineDeviceFormat)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), _pwfxformat).ok() + (windows_core::Interface::vtable(self).SetEngineDeviceFormat)(windows_core::Interface::as_raw(self), pdevice.param().abi(), _pwfxformat).ok() } pub unsafe fn SetGfxState(&self, pdevice: P0, _benable: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGfxState)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), _benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGfxState)(windows_core::Interface::as_raw(self), pdevice.param().abi(), _benable.param().abi()).ok() } pub unsafe fn GetGfxState(&self, pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGfxState)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetGfxState)(windows_core::Interface::as_raw(self), pdevice.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] 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 ef60444464..a7168a3eac 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 @@ -53,9 +53,9 @@ impl IXAPO { } pub unsafe fn Process(&self, pinputprocessparameters: Option<&[XAPO_PROCESS_BUFFER_PARAMETERS]>, poutputprocessparameters: Option<&mut [XAPO_PROCESS_BUFFER_PARAMETERS]>, isenabled: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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_param().abi()) + (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.param().abi()) } pub unsafe fn CalcInputFrames(&self, outputframecount: u32) -> u32 { (windows_core::Interface::vtable(self).CalcInputFrames)(windows_core::Interface::as_raw(self), outputframecount) @@ -123,30 +123,30 @@ windows_core::imp::interface_hierarchy!(IXAudio2, windows_core::IUnknown); impl IXAudio2 { pub unsafe fn RegisterForCallbacks(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForCallbacks)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForCallbacks)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn UnregisterForCallbacks(&self, pcallback: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterForCallbacks)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()) + (windows_core::Interface::vtable(self).UnregisterForCallbacks)(windows_core::Interface::as_raw(self), pcallback.param().abi()) } pub unsafe fn CreateSourceVoice(&self, ppsourcevoice: *mut Option, psourceformat: *const super::WAVEFORMATEX, flags: u32, maxfrequencyratio: f32, pcallback: P0, psendlist: Option<*const XAUDIO2_VOICE_SENDS>, peffectchain: Option<*const XAUDIO2_EFFECT_CHAIN>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSourceVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsourcevoice), psourceformat, flags, maxfrequencyratio, pcallback.into_param().abi(), core::mem::transmute(psendlist.unwrap_or(std::ptr::null())), core::mem::transmute(peffectchain.unwrap_or(std::ptr::null()))).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(std::ptr::null())), core::mem::transmute(peffectchain.unwrap_or(std::ptr::null()))).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), inputchannels, inputsamplerate, flags, processingstage, core::mem::transmute(psendlist.unwrap_or(std::ptr::null())), core::mem::transmute(peffectchain.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn CreateMasteringVoice(&self, ppmasteringvoice: *mut Option, inputchannels: u32, inputsamplerate: u32, flags: u32, szdeviceid: P0, peffectchain: Option<*const XAUDIO2_EFFECT_CHAIN>, streamcategory: super::AUDIO_STREAM_CATEGORY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMasteringVoice)(windows_core::Interface::as_raw(self), core::mem::transmute(ppmasteringvoice), inputchannels, inputsamplerate, flags, szdeviceid.into_param().abi(), core::mem::transmute(peffectchain.unwrap_or(std::ptr::null())), 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(std::ptr::null())), streamcategory).ok() } pub unsafe fn StartEngine(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartEngine)(windows_core::Interface::as_raw(self)).ok() @@ -253,16 +253,16 @@ impl IXAudio2MasteringVoice { } pub unsafe fn SetOutputFilterParameters(&self, pdestinationvoice: P0, pparameters: *const XAUDIO2_FILTER_PARAMETERS, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), pparameters, operationset).ok() + (windows_core::Interface::vtable(self).base__.SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), pparameters, operationset).ok() } pub unsafe fn GetOutputFilterParameters(&self, pdestinationvoice: P0) -> XAUDIO2_FILTER_PARAMETERS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), &mut result__); result__ } pub unsafe fn SetVolume(&self, volume: f32, operationset: u32) -> windows_core::Result<()> { @@ -281,16 +281,16 @@ impl IXAudio2MasteringVoice { } pub unsafe fn SetOutputMatrix(&self, pdestinationvoice: P0, sourcechannels: u32, destinationchannels: u32, plevelmatrix: *const f32, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, destinationchannels, plevelmatrix, operationset).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, destinationchannels, &mut result__); + (windows_core::Interface::vtable(self).base__.GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), sourcechannels, destinationchannels, &mut result__); result__ } pub unsafe fn DestroyVoice(&self) { @@ -347,16 +347,16 @@ impl IXAudio2SourceVoice { } pub unsafe fn SetOutputFilterParameters(&self, pdestinationvoice: P0, pparameters: *const XAUDIO2_FILTER_PARAMETERS, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), pparameters, operationset).ok() + (windows_core::Interface::vtable(self).base__.SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), pparameters, operationset).ok() } pub unsafe fn GetOutputFilterParameters(&self, pdestinationvoice: P0) -> XAUDIO2_FILTER_PARAMETERS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), &mut result__); result__ } pub unsafe fn SetVolume(&self, volume: f32, operationset: u32) -> windows_core::Result<()> { @@ -375,16 +375,16 @@ impl IXAudio2SourceVoice { } pub unsafe fn SetOutputMatrix(&self, pdestinationvoice: P0, sourcechannels: u32, destinationchannels: u32, plevelmatrix: *const f32, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, destinationchannels, plevelmatrix, operationset).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, destinationchannels, &mut result__); + (windows_core::Interface::vtable(self).base__.GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), sourcechannels, destinationchannels, &mut result__); result__ } pub unsafe fn DestroyVoice(&self) { @@ -478,16 +478,16 @@ impl IXAudio2SubmixVoice { } pub unsafe fn SetOutputFilterParameters(&self, pdestinationvoice: P0, pparameters: *const XAUDIO2_FILTER_PARAMETERS, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), pparameters, operationset).ok() + (windows_core::Interface::vtable(self).base__.SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), pparameters, operationset).ok() } pub unsafe fn GetOutputFilterParameters(&self, pdestinationvoice: P0) -> XAUDIO2_FILTER_PARAMETERS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).base__.GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), &mut result__); result__ } pub unsafe fn SetVolume(&self, volume: f32, operationset: u32) -> windows_core::Result<()> { @@ -506,16 +506,16 @@ impl IXAudio2SubmixVoice { } pub unsafe fn SetOutputMatrix(&self, pdestinationvoice: P0, sourcechannels: u32, destinationchannels: u32, plevelmatrix: *const f32, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, destinationchannels, plevelmatrix, operationset).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, destinationchannels, &mut result__); + (windows_core::Interface::vtable(self).base__.GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), sourcechannels, destinationchannels, &mut result__); result__ } pub unsafe fn DestroyVoice(&self) { @@ -566,16 +566,16 @@ impl IXAudio2Voice { } pub unsafe fn SetOutputFilterParameters(&self, pdestinationvoice: P0, pparameters: *const XAUDIO2_FILTER_PARAMETERS, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), pparameters, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), &mut result__); + (windows_core::Interface::vtable(self).GetOutputFilterParameters)(windows_core::Interface::as_raw(self), pdestinationvoice.param().abi(), &mut result__); result__ } pub unsafe fn SetVolume(&self, volume: f32, operationset: u32) -> windows_core::Result<()> { @@ -594,16 +594,16 @@ impl IXAudio2Voice { } pub unsafe fn SetOutputMatrix(&self, pdestinationvoice: P0, sourcechannels: u32, destinationchannels: u32, plevelmatrix: *const f32, operationset: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, destinationchannels, plevelmatrix, 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputMatrix)(windows_core::Interface::as_raw(self), pdestinationvoice.into_param().abi(), sourcechannels, 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) { 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 a2e5b7b445..c23177a500 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs @@ -11,20 +11,20 @@ pub mod XAudio2; #[inline] pub unsafe fn ActivateAudioInterfaceAsync(deviceinterfacepath: P0, riid: *const windows_core::GUID, activationparams: Option<*const windows_core::PROPVARIANT>, completionhandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mmdevapi.dll" "system" fn ActivateAudioInterfaceAsync(deviceinterfacepath : windows_core::PCWSTR, riid : *const windows_core::GUID, activationparams : *const std::mem::MaybeUninit < windows_core::PROPVARIANT >, completionhandler : * mut core::ffi::c_void, activationoperation : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - ActivateAudioInterfaceAsync(deviceinterfacepath.into_param().abi(), riid, core::mem::transmute(activationparams.unwrap_or(std::ptr::null())), completionhandler.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + ActivateAudioInterfaceAsync(deviceinterfacepath.param().abi(), riid, core::mem::transmute(activationparams.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRegisterMessageFilter(lpmessagefilter : * mut core::ffi::c_void, lplpmessagefilter : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - CoRegisterMessageFilter(lpmessagefilter.into_param().abi(), core::mem::transmute(lplpmessagefilter.unwrap_or(std::ptr::null_mut()))).ok() + CoRegisterMessageFilter(lpmessagefilter.param().abi(), core::mem::transmute(lplpmessagefilter.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CreateCaptureAudioStateMonitor() -> windows_core::Result { @@ -41,11 +41,11 @@ pub unsafe fn CreateCaptureAudioStateMonitorForCategory(category: AUDIO_STREAM_C #[inline] pub unsafe fn CreateCaptureAudioStateMonitorForCategoryAndDeviceId(category: AUDIO_STREAM_CATEGORY, deviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateCaptureAudioStateMonitorForCategoryAndDeviceId(category, deviceid.into_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 { @@ -68,11 +68,11 @@ pub unsafe fn CreateRenderAudioStateMonitorForCategory(category: AUDIO_STREAM_CA #[inline] pub unsafe fn CreateRenderAudioStateMonitorForCategoryAndDeviceId(category: AUDIO_STREAM_CATEGORY, deviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateRenderAudioStateMonitorForCategoryAndDeviceId(category, deviceid.into_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 { @@ -83,64 +83,64 @@ pub unsafe fn CreateRenderAudioStateMonitorForCategoryAndDeviceRole(category: AU #[inline] pub unsafe fn PlaySoundA(pszsound: P0, hmod: P1, fdwsound: SND_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hmod.into_param().abi(), fdwsound) + PlaySoundA(pszsound.param().abi(), hmod.param().abi(), fdwsound) } #[inline] pub unsafe fn PlaySoundW(pszsound: P0, hmod: P1, fdwsound: SND_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hmod.into_param().abi(), fdwsound) + PlaySoundW(pszsound.param().abi(), hmod.param().abi(), fdwsound) } #[inline] pub unsafe fn acmDriverAddA(phadid: *mut HACMDRIVERID, hinstmodule: P0, lparam: P1, dwpriority: u32, fdwadd: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(phadid, hinstmodule.into_param().abi(), lparam.into_param().abi(), dwpriority, fdwadd) + acmDriverAddA(phadid, hinstmodule.param().abi(), lparam.param().abi(), dwpriority, fdwadd) } #[inline] pub unsafe fn acmDriverAddW(phadid: *mut HACMDRIVERID, hinstmodule: P0, lparam: P1, dwpriority: u32, fdwadd: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(phadid, hinstmodule.into_param().abi(), lparam.into_param().abi(), dwpriority, fdwadd) + acmDriverAddW(phadid, hinstmodule.param().abi(), lparam.param().abi(), dwpriority, fdwadd) } #[inline] pub unsafe fn acmDriverClose(had: P0, fdwclose: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmDriverClose(had : HACMDRIVER, fdwclose : u32) -> u32); - acmDriverClose(had.into_param().abi(), fdwclose) + acmDriverClose(had.param().abi(), fdwclose) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn acmDriverDetailsA(hadid: P0, padd: *mut ACMDRIVERDETAILSA, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmDriverDetailsA(hadid : HACMDRIVERID, padd : *mut ACMDRIVERDETAILSA, fdwdetails : u32) -> u32); - acmDriverDetailsA(hadid.into_param().abi(), padd, fdwdetails) + acmDriverDetailsA(hadid.param().abi(), padd, fdwdetails) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn acmDriverDetailsW(hadid: P0, padd: *mut ACMDRIVERDETAILSW, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmDriverDetailsW(hadid : HACMDRIVERID, padd : *mut ACMDRIVERDETAILSW, fdwdetails : u32) -> u32); - acmDriverDetailsW(hadid.into_param().abi(), padd, fdwdetails) + acmDriverDetailsW(hadid.param().abi(), padd, fdwdetails) } #[inline] pub unsafe fn acmDriverEnum(fncallback: ACMDRIVERENUMCB, dwinstance: usize, fdwenum: u32) -> u32 { @@ -150,44 +150,44 @@ pub unsafe fn acmDriverEnum(fncallback: ACMDRIVERENUMCB, dwinstance: usize, fdwe #[inline] pub unsafe fn acmDriverID(hao: P0, phadid: *mut HACMDRIVERID, fdwdriverid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmDriverID(hao : HACMOBJ, phadid : *mut HACMDRIVERID, fdwdriverid : u32) -> u32); - acmDriverID(hao.into_param().abi(), phadid, fdwdriverid) + acmDriverID(hao.param().abi(), phadid, fdwdriverid) } #[inline] pub unsafe fn acmDriverMessage(had: P0, umsg: u32, lparam1: P1, lparam2: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(had.into_param().abi(), umsg, lparam1.into_param().abi(), lparam2.into_param().abi()) + acmDriverMessage(had.param().abi(), umsg, lparam1.param().abi(), lparam2.param().abi()) } #[inline] pub unsafe fn acmDriverOpen(phad: *mut HACMDRIVER, hadid: P0, fdwopen: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmDriverOpen(phad : *mut HACMDRIVER, hadid : HACMDRIVERID, fdwopen : u32) -> u32); - acmDriverOpen(phad, hadid.into_param().abi(), fdwopen) + acmDriverOpen(phad, hadid.param().abi(), fdwopen) } #[inline] pub unsafe fn acmDriverPriority(hadid: P0, dwpriority: u32, fdwpriority: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmDriverPriority(hadid : HACMDRIVERID, dwpriority : u32, fdwpriority : u32) -> u32); - acmDriverPriority(hadid.into_param().abi(), dwpriority, fdwpriority) + acmDriverPriority(hadid.param().abi(), dwpriority, fdwpriority) } #[inline] pub unsafe fn acmDriverRemove(hadid: P0, fdwremove: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmDriverRemove(hadid : HACMDRIVERID, fdwremove : u32) -> u32); - acmDriverRemove(hadid.into_param().abi(), fdwremove) + acmDriverRemove(hadid.param().abi(), fdwremove) } #[inline] pub unsafe fn acmFilterChooseA(pafltrc: *mut ACMFILTERCHOOSEA) -> u32 { @@ -202,66 +202,66 @@ pub unsafe fn acmFilterChooseW(pafltrc: *mut ACMFILTERCHOOSEW) -> u32 { #[inline] pub unsafe fn acmFilterDetailsA(had: P0, pafd: *mut ACMFILTERDETAILSA, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterDetailsA(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSA, fdwdetails : u32) -> u32); - acmFilterDetailsA(had.into_param().abi(), pafd, fdwdetails) + acmFilterDetailsA(had.param().abi(), pafd, fdwdetails) } #[inline] pub unsafe fn acmFilterDetailsW(had: P0, pafd: *mut ACMFILTERDETAILSW, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterDetailsW(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSW, fdwdetails : u32) -> u32); - acmFilterDetailsW(had.into_param().abi(), pafd, fdwdetails) + acmFilterDetailsW(had.param().abi(), pafd, fdwdetails) } #[inline] pub unsafe fn acmFilterEnumA(had: P0, pafd: *mut ACMFILTERDETAILSA, fncallback: ACMFILTERENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterEnumA(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSA, fncallback : ACMFILTERENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterEnumA(had.into_param().abi(), pafd, fncallback, dwinstance, fdwenum) + acmFilterEnumA(had.param().abi(), pafd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFilterEnumW(had: P0, pafd: *mut ACMFILTERDETAILSW, fncallback: ACMFILTERENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterEnumW(had : HACMDRIVER, pafd : *mut ACMFILTERDETAILSW, fncallback : ACMFILTERENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterEnumW(had.into_param().abi(), pafd, fncallback, dwinstance, fdwenum) + acmFilterEnumW(had.param().abi(), pafd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFilterTagDetailsA(had: P0, paftd: *mut ACMFILTERTAGDETAILSA, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagDetailsA(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSA, fdwdetails : u32) -> u32); - acmFilterTagDetailsA(had.into_param().abi(), paftd, fdwdetails) + acmFilterTagDetailsA(had.param().abi(), paftd, fdwdetails) } #[inline] pub unsafe fn acmFilterTagDetailsW(had: P0, paftd: *mut ACMFILTERTAGDETAILSW, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagDetailsW(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSW, fdwdetails : u32) -> u32); - acmFilterTagDetailsW(had.into_param().abi(), paftd, fdwdetails) + acmFilterTagDetailsW(had.param().abi(), paftd, fdwdetails) } #[inline] pub unsafe fn acmFilterTagEnumA(had: P0, paftd: *mut ACMFILTERTAGDETAILSA, fncallback: ACMFILTERTAGENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagEnumA(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSA, fncallback : ACMFILTERTAGENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterTagEnumA(had.into_param().abi(), paftd, fncallback, dwinstance, fdwenum) + acmFilterTagEnumA(had.param().abi(), paftd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFilterTagEnumW(had: P0, paftd: *mut ACMFILTERTAGDETAILSW, fncallback: ACMFILTERTAGENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFilterTagEnumW(had : HACMDRIVER, paftd : *mut ACMFILTERTAGDETAILSW, fncallback : ACMFILTERTAGENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFilterTagEnumW(had.into_param().abi(), paftd, fncallback, dwinstance, fdwenum) + acmFilterTagEnumW(had.param().abi(), paftd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatChooseA(pafmtc: *mut ACMFORMATCHOOSEA) -> u32 { @@ -276,74 +276,74 @@ pub unsafe fn acmFormatChooseW(pafmtc: *mut ACMFORMATCHOOSEW) -> u32 { #[inline] pub unsafe fn acmFormatDetailsA(had: P0, pafd: *mut ACMFORMATDETAILSA, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatDetailsA(had : HACMDRIVER, pafd : *mut ACMFORMATDETAILSA, fdwdetails : u32) -> u32); - acmFormatDetailsA(had.into_param().abi(), pafd, fdwdetails) + acmFormatDetailsA(had.param().abi(), pafd, fdwdetails) } #[inline] pub unsafe fn acmFormatDetailsW(had: P0, pafd: *mut tACMFORMATDETAILSW, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatDetailsW(had : HACMDRIVER, pafd : *mut tACMFORMATDETAILSW, fdwdetails : u32) -> u32); - acmFormatDetailsW(had.into_param().abi(), pafd, fdwdetails) + acmFormatDetailsW(had.param().abi(), pafd, fdwdetails) } #[inline] pub unsafe fn acmFormatEnumA(had: P0, pafd: *mut ACMFORMATDETAILSA, fncallback: ACMFORMATENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatEnumA(had : HACMDRIVER, pafd : *mut ACMFORMATDETAILSA, fncallback : ACMFORMATENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatEnumA(had.into_param().abi(), pafd, fncallback, dwinstance, fdwenum) + acmFormatEnumA(had.param().abi(), pafd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatEnumW(had: P0, pafd: *mut tACMFORMATDETAILSW, fncallback: ACMFORMATENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatEnumW(had : HACMDRIVER, pafd : *mut tACMFORMATDETAILSW, fncallback : ACMFORMATENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatEnumW(had.into_param().abi(), pafd, fncallback, dwinstance, fdwenum) + acmFormatEnumW(had.param().abi(), pafd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatSuggest(had: P0, pwfxsrc: *mut WAVEFORMATEX, pwfxdst: *mut WAVEFORMATEX, cbwfxdst: u32, fdwsuggest: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatSuggest(had : HACMDRIVER, pwfxsrc : *mut WAVEFORMATEX, pwfxdst : *mut WAVEFORMATEX, cbwfxdst : u32, fdwsuggest : u32) -> u32); - acmFormatSuggest(had.into_param().abi(), pwfxsrc, pwfxdst, cbwfxdst, fdwsuggest) + acmFormatSuggest(had.param().abi(), pwfxsrc, pwfxdst, cbwfxdst, fdwsuggest) } #[inline] pub unsafe fn acmFormatTagDetailsA(had: P0, paftd: *mut ACMFORMATTAGDETAILSA, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagDetailsA(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSA, fdwdetails : u32) -> u32); - acmFormatTagDetailsA(had.into_param().abi(), paftd, fdwdetails) + acmFormatTagDetailsA(had.param().abi(), paftd, fdwdetails) } #[inline] pub unsafe fn acmFormatTagDetailsW(had: P0, paftd: *mut ACMFORMATTAGDETAILSW, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagDetailsW(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSW, fdwdetails : u32) -> u32); - acmFormatTagDetailsW(had.into_param().abi(), paftd, fdwdetails) + acmFormatTagDetailsW(had.param().abi(), paftd, fdwdetails) } #[inline] pub unsafe fn acmFormatTagEnumA(had: P0, paftd: *mut ACMFORMATTAGDETAILSA, fncallback: ACMFORMATTAGENUMCBA, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagEnumA(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSA, fncallback : ACMFORMATTAGENUMCBA, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatTagEnumA(had.into_param().abi(), paftd, fncallback, dwinstance, fdwenum) + acmFormatTagEnumA(had.param().abi(), paftd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmFormatTagEnumW(had: P0, paftd: *mut ACMFORMATTAGDETAILSW, fncallback: ACMFORMATTAGENUMCBW, dwinstance: usize, fdwenum: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmFormatTagEnumW(had : HACMDRIVER, paftd : *mut ACMFORMATTAGDETAILSW, fncallback : ACMFORMATTAGENUMCBW, dwinstance : usize, fdwenum : u32) -> u32); - acmFormatTagEnumW(had.into_param().abi(), paftd, fncallback, dwinstance, fdwenum) + acmFormatTagEnumW(had.param().abi(), paftd, fncallback, dwinstance, fdwenum) } #[inline] pub unsafe fn acmGetVersion() -> u32 { @@ -353,76 +353,76 @@ pub unsafe fn acmGetVersion() -> u32 { #[inline] pub unsafe fn acmMetrics(hao: P0, umetric: u32, pmetric: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmMetrics(hao : HACMOBJ, umetric : u32, pmetric : *mut core::ffi::c_void) -> u32); - acmMetrics(hao.into_param().abi(), umetric, pmetric) + acmMetrics(hao.param().abi(), umetric, pmetric) } #[inline] pub unsafe fn acmStreamClose(has: P0, fdwclose: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmStreamClose(has : HACMSTREAM, fdwclose : u32) -> u32); - acmStreamClose(has.into_param().abi(), fdwclose) + acmStreamClose(has.param().abi(), fdwclose) } #[inline] pub unsafe fn acmStreamConvert(has: P0, pash: *mut ACMSTREAMHEADER, fdwconvert: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmStreamConvert(has : HACMSTREAM, pash : *mut ACMSTREAMHEADER, fdwconvert : u32) -> u32); - acmStreamConvert(has.into_param().abi(), pash, fdwconvert) + acmStreamConvert(has.param().abi(), pash, fdwconvert) } #[inline] pub unsafe fn acmStreamMessage(has: P0, umsg: u32, lparam1: P1, lparam2: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmStreamMessage(has : HACMSTREAM, umsg : u32, lparam1 : super::super::Foundation:: LPARAM, lparam2 : super::super::Foundation:: LPARAM) -> u32); - acmStreamMessage(has.into_param().abi(), umsg, lparam1.into_param().abi(), lparam2.into_param().abi()) + acmStreamMessage(has.param().abi(), umsg, lparam1.param().abi(), lparam2.param().abi()) } #[inline] pub unsafe fn acmStreamOpen(phas: *mut HACMSTREAM, had: P0, pwfxsrc: *mut WAVEFORMATEX, pwfxdst: *mut WAVEFORMATEX, pwfltr: *mut WAVEFILTER, dwcallback: usize, dwinstance: usize, fdwopen: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(phas, had.into_param().abi(), pwfxsrc, pwfxdst, pwfltr, dwcallback, dwinstance, fdwopen) + acmStreamOpen(phas, had.param().abi(), pwfxsrc, pwfxdst, pwfltr, dwcallback, dwinstance, fdwopen) } #[inline] pub unsafe fn acmStreamPrepareHeader(has: P0, pash: *mut ACMSTREAMHEADER, fdwprepare: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmStreamPrepareHeader(has : HACMSTREAM, pash : *mut ACMSTREAMHEADER, fdwprepare : u32) -> u32); - acmStreamPrepareHeader(has.into_param().abi(), pash, fdwprepare) + acmStreamPrepareHeader(has.param().abi(), pash, fdwprepare) } #[inline] pub unsafe fn acmStreamReset(has: P0, fdwreset: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmStreamReset(has : HACMSTREAM, fdwreset : u32) -> u32); - acmStreamReset(has.into_param().abi(), fdwreset) + acmStreamReset(has.param().abi(), fdwreset) } #[inline] pub unsafe fn acmStreamSize(has: P0, cbinput: u32, pdwoutputbytes: *mut u32, fdwsize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmStreamSize(has : HACMSTREAM, cbinput : u32, pdwoutputbytes : *mut u32, fdwsize : u32) -> u32); - acmStreamSize(has.into_param().abi(), cbinput, pdwoutputbytes, fdwsize) + acmStreamSize(has.param().abi(), cbinput, pdwoutputbytes, fdwsize) } #[inline] pub unsafe fn acmStreamUnprepareHeader(has: P0, pash: *mut ACMSTREAMHEADER, fdwunprepare: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msacm32.dll" "system" fn acmStreamUnprepareHeader(has : HACMSTREAM, pash : *mut ACMSTREAMHEADER, fdwunprepare : u32) -> u32); - acmStreamUnprepareHeader(has.into_param().abi(), pash, fdwunprepare) + acmStreamUnprepareHeader(has.param().abi(), pash, fdwunprepare) } #[inline] pub unsafe fn auxGetDevCapsA(udeviceid: usize, pac: *mut AUXCAPSA, cbac: u32) -> u32 { @@ -457,36 +457,36 @@ pub unsafe fn auxSetVolume(udeviceid: u32, dwvolume: u32) -> u32 { #[inline] pub unsafe fn midiConnect(hmi: P0, hmo: P1, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiConnect(hmi : HMIDI, hmo : HMIDIOUT, preserved : *const core::ffi::c_void) -> u32); - midiConnect(hmi.into_param().abi(), hmo.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + midiConnect(hmi.param().abi(), hmo.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn midiDisconnect(hmi: P0, hmo: P1, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiDisconnect(hmi : HMIDI, hmo : HMIDIOUT, preserved : *const core::ffi::c_void) -> u32); - midiDisconnect(hmi.into_param().abi(), hmo.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + midiDisconnect(hmi.param().abi(), hmo.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn midiInAddBuffer(hmi: P0, pmh: *mut MIDIHDR, cbmh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInAddBuffer(hmi : HMIDIIN, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiInAddBuffer(hmi.into_param().abi(), pmh, cbmh) + midiInAddBuffer(hmi.param().abi(), pmh, cbmh) } #[inline] pub unsafe fn midiInClose(hmi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInClose(hmi : HMIDIIN) -> u32); - midiInClose(hmi.into_param().abi()) + midiInClose(hmi.param().abi()) } #[inline] pub unsafe fn midiInGetDevCapsA(udeviceid: usize, pmic: *mut MIDIINCAPSA, cbmic: u32) -> u32 { @@ -511,10 +511,10 @@ pub unsafe fn midiInGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { #[inline] pub unsafe fn midiInGetID(hmi: P0, pudeviceid: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInGetID(hmi : HMIDIIN, pudeviceid : *mut u32) -> u32); - midiInGetID(hmi.into_param().abi(), pudeviceid) + midiInGetID(hmi.param().abi(), pudeviceid) } #[inline] pub unsafe fn midiInGetNumDevs() -> u32 { @@ -524,10 +524,10 @@ pub unsafe fn midiInGetNumDevs() -> u32 { #[inline] pub unsafe fn midiInMessage(hmi: P0, umsg: u32, dw1: usize, dw2: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInMessage(hmi : HMIDIIN, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - midiInMessage(hmi.into_param().abi(), umsg, dw1, dw2) + midiInMessage(hmi.param().abi(), umsg, dw1, dw2) } #[inline] pub unsafe fn midiInOpen(phmi: *mut HMIDIIN, udeviceid: u32, dwcallback: usize, dwinstance: usize, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { @@ -537,66 +537,66 @@ pub unsafe fn midiInOpen(phmi: *mut HMIDIIN, udeviceid: u32, dwcallback: usize, #[inline] pub unsafe fn midiInPrepareHeader(hmi: P0, pmh: *mut MIDIHDR, cbmh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInPrepareHeader(hmi : HMIDIIN, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiInPrepareHeader(hmi.into_param().abi(), pmh, cbmh) + midiInPrepareHeader(hmi.param().abi(), pmh, cbmh) } #[inline] pub unsafe fn midiInReset(hmi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInReset(hmi : HMIDIIN) -> u32); - midiInReset(hmi.into_param().abi()) + midiInReset(hmi.param().abi()) } #[inline] pub unsafe fn midiInStart(hmi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInStart(hmi : HMIDIIN) -> u32); - midiInStart(hmi.into_param().abi()) + midiInStart(hmi.param().abi()) } #[inline] pub unsafe fn midiInStop(hmi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInStop(hmi : HMIDIIN) -> u32); - midiInStop(hmi.into_param().abi()) + midiInStop(hmi.param().abi()) } #[inline] pub unsafe fn midiInUnprepareHeader(hmi: P0, pmh: *mut MIDIHDR, cbmh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiInUnprepareHeader(hmi : HMIDIIN, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiInUnprepareHeader(hmi.into_param().abi(), pmh, cbmh) + midiInUnprepareHeader(hmi.param().abi(), pmh, cbmh) } #[inline] pub unsafe fn midiOutCacheDrumPatches(hmo: P0, upatch: u32, pwkya: &[u16; 128], fucache: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutCacheDrumPatches(hmo : HMIDIOUT, upatch : u32, pwkya : *const u16, fucache : u32) -> u32); - midiOutCacheDrumPatches(hmo.into_param().abi(), upatch, core::mem::transmute(pwkya.as_ptr()), fucache) + midiOutCacheDrumPatches(hmo.param().abi(), upatch, core::mem::transmute(pwkya.as_ptr()), fucache) } #[inline] pub unsafe fn midiOutCachePatches(hmo: P0, ubank: u32, pwpa: &[u16; 128], fucache: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutCachePatches(hmo : HMIDIOUT, ubank : u32, pwpa : *const u16, fucache : u32) -> u32); - midiOutCachePatches(hmo.into_param().abi(), ubank, core::mem::transmute(pwpa.as_ptr()), fucache) + midiOutCachePatches(hmo.param().abi(), ubank, core::mem::transmute(pwpa.as_ptr()), fucache) } #[inline] pub unsafe fn midiOutClose(hmo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutClose(hmo : HMIDIOUT) -> u32); - midiOutClose(hmo.into_param().abi()) + midiOutClose(hmo.param().abi()) } #[inline] pub unsafe fn midiOutGetDevCapsA(udeviceid: usize, pmoc: *mut MIDIOUTCAPSA, cbmoc: u32) -> u32 { @@ -621,10 +621,10 @@ pub unsafe fn midiOutGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { #[inline] pub unsafe fn midiOutGetID(hmo: P0, pudeviceid: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutGetID(hmo : HMIDIOUT, pudeviceid : *mut u32) -> u32); - midiOutGetID(hmo.into_param().abi(), pudeviceid) + midiOutGetID(hmo.param().abi(), pudeviceid) } #[inline] pub unsafe fn midiOutGetNumDevs() -> u32 { @@ -634,26 +634,26 @@ pub unsafe fn midiOutGetNumDevs() -> u32 { #[inline] pub unsafe fn midiOutGetVolume(hmo: P0, pdwvolume: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutGetVolume(hmo : HMIDIOUT, pdwvolume : *mut u32) -> u32); - midiOutGetVolume(hmo.into_param().abi(), pdwvolume) + midiOutGetVolume(hmo.param().abi(), pdwvolume) } #[inline] pub unsafe fn midiOutLongMsg(hmo: P0, pmh: *const MIDIHDR, cbmh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutLongMsg(hmo : HMIDIOUT, pmh : *const MIDIHDR, cbmh : u32) -> u32); - midiOutLongMsg(hmo.into_param().abi(), pmh, cbmh) + midiOutLongMsg(hmo.param().abi(), pmh, cbmh) } #[inline] pub unsafe fn midiOutMessage(hmo: P0, umsg: u32, dw1: usize, dw2: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutMessage(hmo : HMIDIOUT, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - midiOutMessage(hmo.into_param().abi(), umsg, dw1, dw2) + midiOutMessage(hmo.param().abi(), umsg, dw1, dw2) } #[inline] pub unsafe fn midiOutOpen(phmo: *mut HMIDIOUT, udeviceid: u32, dwcallback: usize, dwinstance: usize, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { @@ -663,50 +663,50 @@ pub unsafe fn midiOutOpen(phmo: *mut HMIDIOUT, udeviceid: u32, dwcallback: usize #[inline] pub unsafe fn midiOutPrepareHeader(hmo: P0, pmh: *mut MIDIHDR, cbmh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutPrepareHeader(hmo : HMIDIOUT, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiOutPrepareHeader(hmo.into_param().abi(), pmh, cbmh) + midiOutPrepareHeader(hmo.param().abi(), pmh, cbmh) } #[inline] pub unsafe fn midiOutReset(hmo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutReset(hmo : HMIDIOUT) -> u32); - midiOutReset(hmo.into_param().abi()) + midiOutReset(hmo.param().abi()) } #[inline] pub unsafe fn midiOutSetVolume(hmo: P0, dwvolume: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutSetVolume(hmo : HMIDIOUT, dwvolume : u32) -> u32); - midiOutSetVolume(hmo.into_param().abi(), dwvolume) + midiOutSetVolume(hmo.param().abi(), dwvolume) } #[inline] pub unsafe fn midiOutShortMsg(hmo: P0, dwmsg: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutShortMsg(hmo : HMIDIOUT, dwmsg : u32) -> u32); - midiOutShortMsg(hmo.into_param().abi(), dwmsg) + midiOutShortMsg(hmo.param().abi(), dwmsg) } #[inline] pub unsafe fn midiOutUnprepareHeader(hmo: P0, pmh: *mut MIDIHDR, cbmh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiOutUnprepareHeader(hmo : HMIDIOUT, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiOutUnprepareHeader(hmo.into_param().abi(), pmh, cbmh) + midiOutUnprepareHeader(hmo.param().abi(), pmh, cbmh) } #[inline] pub unsafe fn midiStreamClose(hms: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiStreamClose(hms : HMIDISTRM) -> u32); - midiStreamClose(hms.into_param().abi()) + midiStreamClose(hms.param().abi()) } #[inline] pub unsafe fn midiStreamOpen(phms: *mut HMIDISTRM, pudeviceid: &mut [u32], dwcallback: usize, dwinstance: usize, fdwopen: u32) -> u32 { @@ -716,74 +716,74 @@ pub unsafe fn midiStreamOpen(phms: *mut HMIDISTRM, pudeviceid: &mut [u32], dwcal #[inline] pub unsafe fn midiStreamOut(hms: P0, pmh: *mut MIDIHDR, cbmh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiStreamOut(hms : HMIDISTRM, pmh : *mut MIDIHDR, cbmh : u32) -> u32); - midiStreamOut(hms.into_param().abi(), pmh, cbmh) + midiStreamOut(hms.param().abi(), pmh, cbmh) } #[inline] pub unsafe fn midiStreamPause(hms: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiStreamPause(hms : HMIDISTRM) -> u32); - midiStreamPause(hms.into_param().abi()) + midiStreamPause(hms.param().abi()) } #[inline] pub unsafe fn midiStreamPosition(hms: P0, lpmmt: *mut super::MMTIME, cbmmt: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiStreamPosition(hms : HMIDISTRM, lpmmt : *mut super:: MMTIME, cbmmt : u32) -> u32); - midiStreamPosition(hms.into_param().abi(), lpmmt, cbmmt) + midiStreamPosition(hms.param().abi(), lpmmt, cbmmt) } #[inline] pub unsafe fn midiStreamProperty(hms: P0, lppropdata: *mut u8, dwproperty: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiStreamProperty(hms : HMIDISTRM, lppropdata : *mut u8, dwproperty : u32) -> u32); - midiStreamProperty(hms.into_param().abi(), lppropdata, dwproperty) + midiStreamProperty(hms.param().abi(), lppropdata, dwproperty) } #[inline] pub unsafe fn midiStreamRestart(hms: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiStreamRestart(hms : HMIDISTRM) -> u32); - midiStreamRestart(hms.into_param().abi()) + midiStreamRestart(hms.param().abi()) } #[inline] pub unsafe fn midiStreamStop(hms: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn midiStreamStop(hms : HMIDISTRM) -> u32); - midiStreamStop(hms.into_param().abi()) + midiStreamStop(hms.param().abi()) } #[inline] pub unsafe fn mixerClose(hmx: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerClose(hmx : HMIXER) -> u32); - mixerClose(hmx.into_param().abi()) + mixerClose(hmx.param().abi()) } #[inline] pub unsafe fn mixerGetControlDetailsA(hmxobj: P0, pmxcd: *mut MIXERCONTROLDETAILS, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerGetControlDetailsA(hmxobj : HMIXEROBJ, pmxcd : *mut MIXERCONTROLDETAILS, fdwdetails : u32) -> u32); - mixerGetControlDetailsA(hmxobj.into_param().abi(), pmxcd, fdwdetails) + mixerGetControlDetailsA(hmxobj.param().abi(), pmxcd, fdwdetails) } #[inline] pub unsafe fn mixerGetControlDetailsW(hmxobj: P0, pmxcd: *mut MIXERCONTROLDETAILS, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerGetControlDetailsW(hmxobj : HMIXEROBJ, pmxcd : *mut MIXERCONTROLDETAILS, fdwdetails : u32) -> u32); - mixerGetControlDetailsW(hmxobj.into_param().abi(), pmxcd, fdwdetails) + mixerGetControlDetailsW(hmxobj.param().abi(), pmxcd, fdwdetails) } #[inline] pub unsafe fn mixerGetDevCapsA(umxid: usize, pmxcaps: *mut MIXERCAPSA, cbmxcaps: u32) -> u32 { @@ -798,42 +798,42 @@ pub unsafe fn mixerGetDevCapsW(umxid: usize, pmxcaps: *mut MIXERCAPSW, cbmxcaps: #[inline] pub unsafe fn mixerGetID(hmxobj: P0, pumxid: *mut u32, fdwid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerGetID(hmxobj : HMIXEROBJ, pumxid : *mut u32, fdwid : u32) -> u32); - mixerGetID(hmxobj.into_param().abi(), pumxid, fdwid) + mixerGetID(hmxobj.param().abi(), pumxid, fdwid) } #[inline] pub unsafe fn mixerGetLineControlsA(hmxobj: P0, pmxlc: *mut MIXERLINECONTROLSA, fdwcontrols: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerGetLineControlsA(hmxobj : HMIXEROBJ, pmxlc : *mut MIXERLINECONTROLSA, fdwcontrols : u32) -> u32); - mixerGetLineControlsA(hmxobj.into_param().abi(), pmxlc, fdwcontrols) + mixerGetLineControlsA(hmxobj.param().abi(), pmxlc, fdwcontrols) } #[inline] pub unsafe fn mixerGetLineControlsW(hmxobj: P0, pmxlc: *mut MIXERLINECONTROLSW, fdwcontrols: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerGetLineControlsW(hmxobj : HMIXEROBJ, pmxlc : *mut MIXERLINECONTROLSW, fdwcontrols : u32) -> u32); - mixerGetLineControlsW(hmxobj.into_param().abi(), pmxlc, fdwcontrols) + mixerGetLineControlsW(hmxobj.param().abi(), pmxlc, fdwcontrols) } #[inline] pub unsafe fn mixerGetLineInfoA(hmxobj: P0, pmxl: *mut MIXERLINEA, fdwinfo: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerGetLineInfoA(hmxobj : HMIXEROBJ, pmxl : *mut MIXERLINEA, fdwinfo : u32) -> u32); - mixerGetLineInfoA(hmxobj.into_param().abi(), pmxl, fdwinfo) + mixerGetLineInfoA(hmxobj.param().abi(), pmxl, fdwinfo) } #[inline] pub unsafe fn mixerGetLineInfoW(hmxobj: P0, pmxl: *mut MIXERLINEW, fdwinfo: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerGetLineInfoW(hmxobj : HMIXEROBJ, pmxl : *mut MIXERLINEW, fdwinfo : u32) -> u32); - mixerGetLineInfoW(hmxobj.into_param().abi(), pmxl, fdwinfo) + mixerGetLineInfoW(hmxobj.param().abi(), pmxl, fdwinfo) } #[inline] pub unsafe fn mixerGetNumDevs() -> u32 { @@ -843,10 +843,10 @@ pub unsafe fn mixerGetNumDevs() -> u32 { #[inline] pub unsafe fn mixerMessage(hmx: P0, umsg: u32, dwparam1: usize, dwparam2: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerMessage(hmx : HMIXER, umsg : u32, dwparam1 : usize, dwparam2 : usize) -> u32); - mixerMessage(hmx.into_param().abi(), umsg, dwparam1, dwparam2) + mixerMessage(hmx.param().abi(), umsg, dwparam1, dwparam2) } #[inline] pub unsafe fn mixerOpen(phmx: Option<*mut HMIXER>, umxid: u32, dwcallback: usize, dwinstance: usize, fdwopen: u32) -> u32 { @@ -856,42 +856,42 @@ pub unsafe fn mixerOpen(phmx: Option<*mut HMIXER>, umxid: u32, dwcallback: usize #[inline] pub unsafe fn mixerSetControlDetails(hmxobj: P0, pmxcd: *const MIXERCONTROLDETAILS, fdwdetails: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mixerSetControlDetails(hmxobj : HMIXEROBJ, pmxcd : *const MIXERCONTROLDETAILS, fdwdetails : u32) -> u32); - mixerSetControlDetails(hmxobj.into_param().abi(), pmxcd, fdwdetails) + mixerSetControlDetails(hmxobj.param().abi(), pmxcd, fdwdetails) } #[inline] pub unsafe fn sndPlaySoundA(pszsound: P0, fusound: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn sndPlaySoundA(pszsound : windows_core::PCSTR, fusound : u32) -> super::super::Foundation:: BOOL); - sndPlaySoundA(pszsound.into_param().abi(), fusound) + sndPlaySoundA(pszsound.param().abi(), fusound) } #[inline] pub unsafe fn sndPlaySoundW(pszsound: P0, fusound: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn sndPlaySoundW(pszsound : windows_core::PCWSTR, fusound : u32) -> super::super::Foundation:: BOOL); - sndPlaySoundW(pszsound.into_param().abi(), fusound) + sndPlaySoundW(pszsound.param().abi(), fusound) } #[inline] pub unsafe fn waveInAddBuffer(hwi: P0, pwh: *mut WAVEHDR, cbwh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInAddBuffer(hwi : HWAVEIN, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveInAddBuffer(hwi.into_param().abi(), pwh, cbwh) + waveInAddBuffer(hwi.param().abi(), pwh, cbwh) } #[inline] pub unsafe fn waveInClose(hwi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInClose(hwi : HWAVEIN) -> u32); - waveInClose(hwi.into_param().abi()) + waveInClose(hwi.param().abi()) } #[inline] pub unsafe fn waveInGetDevCapsA(udeviceid: usize, pwic: *mut WAVEINCAPSA, cbwic: u32) -> u32 { @@ -916,10 +916,10 @@ pub unsafe fn waveInGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { #[inline] pub unsafe fn waveInGetID(hwi: P0, pudeviceid: *const u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInGetID(hwi : HWAVEIN, pudeviceid : *const u32) -> u32); - waveInGetID(hwi.into_param().abi(), pudeviceid) + waveInGetID(hwi.param().abi(), pudeviceid) } #[inline] pub unsafe fn waveInGetNumDevs() -> u32 { @@ -929,18 +929,18 @@ pub unsafe fn waveInGetNumDevs() -> u32 { #[inline] pub unsafe fn waveInGetPosition(hwi: P0, pmmt: *mut super::MMTIME, cbmmt: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInGetPosition(hwi : HWAVEIN, pmmt : *mut super:: MMTIME, cbmmt : u32) -> u32); - waveInGetPosition(hwi.into_param().abi(), pmmt, cbmmt) + waveInGetPosition(hwi.param().abi(), pmmt, cbmmt) } #[inline] pub unsafe fn waveInMessage(hwi: P0, umsg: u32, dw1: usize, dw2: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInMessage(hwi : HWAVEIN, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - waveInMessage(hwi.into_param().abi(), umsg, dw1, dw2) + waveInMessage(hwi.param().abi(), umsg, dw1, dw2) } #[inline] pub unsafe fn waveInOpen(phwi: Option<*mut HWAVEIN>, udeviceid: u32, pwfx: *const WAVEFORMATEX, dwcallback: usize, dwinstance: usize, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { @@ -950,58 +950,58 @@ pub unsafe fn waveInOpen(phwi: Option<*mut HWAVEIN>, udeviceid: u32, pwfx: *cons #[inline] pub unsafe fn waveInPrepareHeader(hwi: P0, pwh: *mut WAVEHDR, cbwh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInPrepareHeader(hwi : HWAVEIN, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveInPrepareHeader(hwi.into_param().abi(), pwh, cbwh) + waveInPrepareHeader(hwi.param().abi(), pwh, cbwh) } #[inline] pub unsafe fn waveInReset(hwi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInReset(hwi : HWAVEIN) -> u32); - waveInReset(hwi.into_param().abi()) + waveInReset(hwi.param().abi()) } #[inline] pub unsafe fn waveInStart(hwi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInStart(hwi : HWAVEIN) -> u32); - waveInStart(hwi.into_param().abi()) + waveInStart(hwi.param().abi()) } #[inline] pub unsafe fn waveInStop(hwi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInStop(hwi : HWAVEIN) -> u32); - waveInStop(hwi.into_param().abi()) + waveInStop(hwi.param().abi()) } #[inline] pub unsafe fn waveInUnprepareHeader(hwi: P0, pwh: *mut WAVEHDR, cbwh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveInUnprepareHeader(hwi : HWAVEIN, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveInUnprepareHeader(hwi.into_param().abi(), pwh, cbwh) + waveInUnprepareHeader(hwi.param().abi(), pwh, cbwh) } #[inline] pub unsafe fn waveOutBreakLoop(hwo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutBreakLoop(hwo : HWAVEOUT) -> u32); - waveOutBreakLoop(hwo.into_param().abi()) + waveOutBreakLoop(hwo.param().abi()) } #[inline] pub unsafe fn waveOutClose(hwo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutClose(hwo : HWAVEOUT) -> u32); - waveOutClose(hwo.into_param().abi()) + waveOutClose(hwo.param().abi()) } #[inline] pub unsafe fn waveOutGetDevCapsA(udeviceid: usize, pwoc: *mut WAVEOUTCAPSA, cbwoc: u32) -> u32 { @@ -1026,10 +1026,10 @@ pub unsafe fn waveOutGetErrorTextW(mmrerror: u32, psztext: &mut [u16]) -> u32 { #[inline] pub unsafe fn waveOutGetID(hwo: P0, pudeviceid: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutGetID(hwo : HWAVEOUT, pudeviceid : *mut u32) -> u32); - waveOutGetID(hwo.into_param().abi(), pudeviceid) + waveOutGetID(hwo.param().abi(), pudeviceid) } #[inline] pub unsafe fn waveOutGetNumDevs() -> u32 { @@ -1039,42 +1039,42 @@ pub unsafe fn waveOutGetNumDevs() -> u32 { #[inline] pub unsafe fn waveOutGetPitch(hwo: P0, pdwpitch: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutGetPitch(hwo : HWAVEOUT, pdwpitch : *mut u32) -> u32); - waveOutGetPitch(hwo.into_param().abi(), pdwpitch) + waveOutGetPitch(hwo.param().abi(), pdwpitch) } #[inline] pub unsafe fn waveOutGetPlaybackRate(hwo: P0, pdwrate: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutGetPlaybackRate(hwo : HWAVEOUT, pdwrate : *mut u32) -> u32); - waveOutGetPlaybackRate(hwo.into_param().abi(), pdwrate) + waveOutGetPlaybackRate(hwo.param().abi(), pdwrate) } #[inline] pub unsafe fn waveOutGetPosition(hwo: P0, pmmt: *mut super::MMTIME, cbmmt: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutGetPosition(hwo : HWAVEOUT, pmmt : *mut super:: MMTIME, cbmmt : u32) -> u32); - waveOutGetPosition(hwo.into_param().abi(), pmmt, cbmmt) + waveOutGetPosition(hwo.param().abi(), pmmt, cbmmt) } #[inline] pub unsafe fn waveOutGetVolume(hwo: P0, pdwvolume: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutGetVolume(hwo : HWAVEOUT, pdwvolume : *mut u32) -> u32); - waveOutGetVolume(hwo.into_param().abi(), pdwvolume) + waveOutGetVolume(hwo.param().abi(), pdwvolume) } #[inline] pub unsafe fn waveOutMessage(hwo: P0, umsg: u32, dw1: usize, dw2: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutMessage(hwo : HWAVEOUT, umsg : u32, dw1 : usize, dw2 : usize) -> u32); - waveOutMessage(hwo.into_param().abi(), umsg, dw1, dw2) + waveOutMessage(hwo.param().abi(), umsg, dw1, dw2) } #[inline] pub unsafe fn waveOutOpen(phwo: Option<*mut HWAVEOUT>, udeviceid: u32, pwfx: *const WAVEFORMATEX, dwcallback: usize, dwinstance: usize, fdwopen: MIDI_WAVE_OPEN_TYPE) -> u32 { @@ -1084,83 +1084,83 @@ pub unsafe fn waveOutOpen(phwo: Option<*mut HWAVEOUT>, udeviceid: u32, pwfx: *co #[inline] pub unsafe fn waveOutPause(hwo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutPause(hwo : HWAVEOUT) -> u32); - waveOutPause(hwo.into_param().abi()) + waveOutPause(hwo.param().abi()) } #[inline] pub unsafe fn waveOutPrepareHeader(hwo: P0, pwh: *mut WAVEHDR, cbwh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutPrepareHeader(hwo : HWAVEOUT, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveOutPrepareHeader(hwo.into_param().abi(), pwh, cbwh) + waveOutPrepareHeader(hwo.param().abi(), pwh, cbwh) } #[inline] pub unsafe fn waveOutReset(hwo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutReset(hwo : HWAVEOUT) -> u32); - waveOutReset(hwo.into_param().abi()) + waveOutReset(hwo.param().abi()) } #[inline] pub unsafe fn waveOutRestart(hwo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutRestart(hwo : HWAVEOUT) -> u32); - waveOutRestart(hwo.into_param().abi()) + waveOutRestart(hwo.param().abi()) } #[inline] pub unsafe fn waveOutSetPitch(hwo: P0, dwpitch: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutSetPitch(hwo : HWAVEOUT, dwpitch : u32) -> u32); - waveOutSetPitch(hwo.into_param().abi(), dwpitch) + waveOutSetPitch(hwo.param().abi(), dwpitch) } #[inline] pub unsafe fn waveOutSetPlaybackRate(hwo: P0, dwrate: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutSetPlaybackRate(hwo : HWAVEOUT, dwrate : u32) -> u32); - waveOutSetPlaybackRate(hwo.into_param().abi(), dwrate) + waveOutSetPlaybackRate(hwo.param().abi(), dwrate) } #[inline] pub unsafe fn waveOutSetVolume(hwo: P0, dwvolume: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutSetVolume(hwo : HWAVEOUT, dwvolume : u32) -> u32); - waveOutSetVolume(hwo.into_param().abi(), dwvolume) + waveOutSetVolume(hwo.param().abi(), dwvolume) } #[inline] pub unsafe fn waveOutUnprepareHeader(hwo: P0, pwh: *mut WAVEHDR, cbwh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutUnprepareHeader(hwo : HWAVEOUT, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveOutUnprepareHeader(hwo.into_param().abi(), pwh, cbwh) + waveOutUnprepareHeader(hwo.param().abi(), pwh, cbwh) } #[inline] pub unsafe fn waveOutWrite(hwo: P0, pwh: *mut WAVEHDR, cbwh: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn waveOutWrite(hwo : HWAVEOUT, pwh : *mut WAVEHDR, cbwh : u32) -> u32); - waveOutWrite(hwo.into_param().abi(), pwh, cbwh) + waveOutWrite(hwo.param().abi(), pwh, cbwh) } windows_core::imp::define_interface!(IAcousticEchoCancellationControl, IAcousticEchoCancellationControl_Vtbl, 0xf4ae25b5_aaa3_437d_b6b3_dbbe2d0e9549); windows_core::imp::interface_hierarchy!(IAcousticEchoCancellationControl, windows_core::IUnknown); impl IAcousticEchoCancellationControl { pub unsafe fn SetEchoCancellationRenderEndpoint(&self, endpointid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEchoCancellationRenderEndpoint)(windows_core::Interface::as_raw(self), endpointid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEchoCancellationRenderEndpoint)(windows_core::Interface::as_raw(self), endpointid.param().abi()).ok() } } #[repr(C)] @@ -1185,9 +1185,9 @@ windows_core::imp::interface_hierarchy!(IActivateAudioInterfaceCompletionHandler impl IActivateAudioInterfaceCompletionHandler { pub unsafe fn ActivateCompleted(&self, activateoperation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateCompleted)(windows_core::Interface::as_raw(self), activateoperation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ActivateCompleted)(windows_core::Interface::as_raw(self), activateoperation.param().abi()).ok() } } #[repr(C)] @@ -1203,9 +1203,9 @@ impl IAudioAmbisonicsControl { } pub unsafe fn SetHeadTracking(&self, benableheadtracking: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHeadTracking)(windows_core::Interface::as_raw(self), benableheadtracking.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHeadTracking)(windows_core::Interface::as_raw(self), benableheadtracking.param().abi()).ok() } pub unsafe fn GetHeadTracking(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1232,9 +1232,9 @@ impl IAudioAutoGainControl { } pub unsafe fn SetEnabled(&self, benable: P0, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benable.into_param().abi(), core::mem::transmute(pguideventcontext.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benable.param().abi(), core::mem::transmute(pguideventcontext.unwrap_or(std::ptr::null()))).ok() } } #[repr(C)] @@ -1348,9 +1348,9 @@ impl IAudioClient { } pub unsafe fn SetEventHandle(&self, eventhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.param().abi()).ok() } pub unsafe fn GetService(&self) -> windows_core::Result where @@ -1415,9 +1415,9 @@ impl IAudioClient2 { } pub unsafe fn SetEventHandle(&self, eventhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.param().abi()).ok() } pub unsafe fn GetService(&self) -> windows_core::Result where @@ -1435,9 +1435,9 @@ impl IAudioClient2 { } pub unsafe fn GetBufferSizeLimits(&self, pformat: *const WAVEFORMATEX, beventdriven: P0, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBufferSizeLimits)(windows_core::Interface::as_raw(self), pformat, beventdriven.into_param().abi(), phnsminbufferduration, phnsmaxbufferduration).ok() + (windows_core::Interface::vtable(self).GetBufferSizeLimits)(windows_core::Interface::as_raw(self), pformat, beventdriven.param().abi(), phnsminbufferduration, phnsmaxbufferduration).ok() } } #[repr(C)] @@ -1486,9 +1486,9 @@ impl IAudioClient3 { } pub unsafe fn SetEventHandle(&self, eventhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.param().abi()).ok() } pub unsafe fn GetService(&self) -> windows_core::Result where @@ -1506,9 +1506,9 @@ impl IAudioClient3 { } pub unsafe fn GetBufferSizeLimits(&self, pformat: *const WAVEFORMATEX, beventdriven: P0, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetBufferSizeLimits)(windows_core::Interface::as_raw(self), pformat, beventdriven.into_param().abi(), phnsminbufferduration, phnsmaxbufferduration).ok() + (windows_core::Interface::vtable(self).base__.GetBufferSizeLimits)(windows_core::Interface::as_raw(self), pformat, beventdriven.param().abi(), phnsminbufferduration, phnsmaxbufferduration).ok() } 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), pformat, pdefaultperiodinframes, pfundamentalperiodinframes, pminperiodinframes, pmaxperiodinframes).ok() @@ -1602,15 +1602,15 @@ windows_core::imp::interface_hierarchy!(IAudioEffectsManager, windows_core::IUnk impl IAudioEffectsManager { pub unsafe fn RegisterAudioEffectsChangedNotificationCallback(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterAudioEffectsChangedNotificationCallback)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterAudioEffectsChangedNotificationCallback)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn UnregisterAudioEffectsChangedNotificationCallback(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterAudioEffectsChangedNotificationCallback)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterAudioEffectsChangedNotificationCallback)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn GetAudioEffects(&self, effects: *mut *mut AUDIO_EFFECT, numeffects: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAudioEffects)(windows_core::Interface::as_raw(self), effects, numeffects).ok() @@ -1671,9 +1671,9 @@ impl IAudioLoudness { } pub unsafe fn SetEnabled(&self, benable: P0, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benable.into_param().abi(), core::mem::transmute(pguideventcontext.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benable.param().abi(), core::mem::transmute(pguideventcontext.unwrap_or(std::ptr::null()))).ok() } } #[repr(C)] @@ -1715,9 +1715,9 @@ windows_core::imp::interface_hierarchy!(IAudioMute, windows_core::IUnknown); impl IAudioMute { pub unsafe fn SetMute(&self, bmuted: P0, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmuted.into_param().abi(), core::mem::transmute(pguideventcontext.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmuted.param().abi(), core::mem::transmute(pguideventcontext.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1795,9 +1795,9 @@ impl IAudioSessionControl { } pub unsafe fn SetDisplayName(&self, value: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), value.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1805,9 +1805,9 @@ impl IAudioSessionControl { } pub unsafe fn SetIconPath(&self, value: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconPath)(windows_core::Interface::as_raw(self), value.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1818,15 +1818,15 @@ impl IAudioSessionControl { } pub unsafe fn RegisterAudioSessionNotification(&self, newnotifications: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.param().abi()).ok() } pub unsafe fn UnregisterAudioSessionNotification(&self, newnotifications: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.param().abi()).ok() } } #[repr(C)] @@ -1855,9 +1855,9 @@ impl IAudioSessionControl2 { } pub unsafe fn SetDisplayName(&self, value: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), value.into_param().abi(), eventcontext).ok() + (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), value.param().abi(), eventcontext).ok() } pub unsafe fn GetIconPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1865,9 +1865,9 @@ impl IAudioSessionControl2 { } pub unsafe fn SetIconPath(&self, value: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIconPath)(windows_core::Interface::as_raw(self), value.into_param().abi(), eventcontext).ok() + (windows_core::Interface::vtable(self).base__.SetIconPath)(windows_core::Interface::as_raw(self), value.param().abi(), eventcontext).ok() } pub unsafe fn GetGroupingParam(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1878,15 +1878,15 @@ impl IAudioSessionControl2 { } pub unsafe fn RegisterAudioSessionNotification(&self, newnotifications: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.param().abi()).ok() } pub unsafe fn UnregisterAudioSessionNotification(&self, newnotifications: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterAudioSessionNotification)(windows_core::Interface::as_raw(self), newnotifications.param().abi()).ok() } pub unsafe fn GetSessionIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1905,9 +1905,9 @@ impl IAudioSessionControl2 { } pub unsafe fn SetDuckingPreference(&self, optout: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDuckingPreference)(windows_core::Interface::as_raw(self), optout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDuckingPreference)(windows_core::Interface::as_raw(self), optout.param().abi()).ok() } } #[repr(C)] @@ -1942,21 +1942,21 @@ windows_core::imp::interface_hierarchy!(IAudioSessionEvents, windows_core::IUnkn impl IAudioSessionEvents { pub unsafe fn OnDisplayNameChanged(&self, newdisplayname: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisplayNameChanged)(windows_core::Interface::as_raw(self), newdisplayname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIconPathChanged)(windows_core::Interface::as_raw(self), newiconpath.into_param().abi(), 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: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSimpleVolumeChanged)(windows_core::Interface::as_raw(self), newvolume, newmute.into_param().abi(), eventcontext).ok() + (windows_core::Interface::vtable(self).OnSimpleVolumeChanged)(windows_core::Interface::as_raw(self), newvolume, newmute.param().abi(), 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()), changedchannel, eventcontext).ok() @@ -2017,28 +2017,28 @@ impl IAudioSessionManager2 { } pub unsafe fn RegisterSessionNotification(&self, sessionnotification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterSessionNotification)(windows_core::Interface::as_raw(self), sessionnotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterSessionNotification)(windows_core::Interface::as_raw(self), sessionnotification.param().abi()).ok() } pub unsafe fn UnregisterSessionNotification(&self, sessionnotification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterSessionNotification)(windows_core::Interface::as_raw(self), sessionnotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterSessionNotification)(windows_core::Interface::as_raw(self), sessionnotification.param().abi()).ok() } pub unsafe fn RegisterDuckNotification(&self, sessionid: P0, ducknotification: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterDuckNotification)(windows_core::Interface::as_raw(self), sessionid.into_param().abi(), ducknotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterDuckNotification)(windows_core::Interface::as_raw(self), sessionid.param().abi(), ducknotification.param().abi()).ok() } pub unsafe fn UnregisterDuckNotification(&self, ducknotification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterDuckNotification)(windows_core::Interface::as_raw(self), ducknotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterDuckNotification)(windows_core::Interface::as_raw(self), ducknotification.param().abi()).ok() } } #[repr(C)] @@ -2055,9 +2055,9 @@ windows_core::imp::interface_hierarchy!(IAudioSessionNotification, windows_core: impl IAudioSessionNotification { pub unsafe fn OnSessionCreated(&self, newsession: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSessionCreated)(windows_core::Interface::as_raw(self), newsession.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSessionCreated)(windows_core::Interface::as_raw(self), newsession.param().abi()).ok() } } #[repr(C)] @@ -2158,15 +2158,15 @@ impl IAudioSystemEffectsPropertyStore { } pub unsafe fn RegisterPropertyChangeNotification(&self, callback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterPropertyChangeNotification)(windows_core::Interface::as_raw(self), callback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterPropertyChangeNotification)(windows_core::Interface::as_raw(self), callback.param().abi()).ok() } pub unsafe fn UnregisterPropertyChangeNotification(&self, callback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterPropertyChangeNotification)(windows_core::Interface::as_raw(self), callback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterPropertyChangeNotification)(windows_core::Interface::as_raw(self), callback.param().abi()).ok() } } #[repr(C)] @@ -2222,9 +2222,9 @@ windows_core::imp::interface_hierarchy!(IAudioViewManagerService, windows_core:: impl IAudioViewManagerService { pub unsafe fn SetAudioStreamWindow(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioStreamWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioStreamWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } } #[repr(C)] @@ -2237,15 +2237,15 @@ windows_core::imp::interface_hierarchy!(IAudioVolumeDuckNotification, windows_co impl IAudioVolumeDuckNotification { pub unsafe fn OnVolumeDuckNotification(&self, sessionid: P0, countcommunicationsessions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnVolumeDuckNotification)(windows_core::Interface::as_raw(self), sessionid.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnVolumeUnduckNotification)(windows_core::Interface::as_raw(self), sessionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnVolumeUnduckNotification)(windows_core::Interface::as_raw(self), sessionid.param().abi()).ok() } } #[repr(C)] @@ -2325,9 +2325,9 @@ impl IConnector { } pub unsafe fn ConnectTo(&self, pconnectto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectTo)(windows_core::Interface::as_raw(self), pconnectto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectTo)(windows_core::Interface::as_raw(self), pconnectto.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -2445,12 +2445,12 @@ impl IDeviceTopology { } pub unsafe fn GetSignalPath(&self, pipartfrom: P0, pipartto: P1, brejectmixedpaths: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSignalPath)(windows_core::Interface::as_raw(self), pipartfrom.into_param().abi(), pipartto.into_param().abi(), brejectmixedpaths.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSignalPath)(windows_core::Interface::as_raw(self), pipartfrom.param().abi(), pipartto.param().abi(), brejectmixedpaths.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2507,9 +2507,9 @@ windows_core::imp::interface_hierarchy!(IMMDeviceActivator, windows_core::IUnkno impl IMMDeviceActivator { pub unsafe fn Activate(&self, iid: *const windows_core::GUID, pdevice: P0, pactivationparams: Option<*const windows_core::PROPVARIANT>, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), iid, pdevice.into_param().abi(), core::mem::transmute(pactivationparams.unwrap_or(std::ptr::null())), ppinterface).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), iid, pdevice.param().abi(), core::mem::transmute(pactivationparams.unwrap_or(std::ptr::null())), ppinterface).ok() } } #[repr(C)] @@ -2548,22 +2548,22 @@ impl IMMDeviceEnumerator { } pub unsafe fn GetDevice(&self, pwstrid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDevice)(windows_core::Interface::as_raw(self), pwstrid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDevice)(windows_core::Interface::as_raw(self), pwstrid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterEndpointNotificationCallback(&self, pclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterEndpointNotificationCallback)(windows_core::Interface::as_raw(self), pclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterEndpointNotificationCallback)(windows_core::Interface::as_raw(self), pclient.param().abi()).ok() } pub unsafe fn UnregisterEndpointNotificationCallback(&self, pclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterEndpointNotificationCallback)(windows_core::Interface::as_raw(self), pclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterEndpointNotificationCallback)(windows_core::Interface::as_raw(self), pclient.param().abi()).ok() } } #[repr(C)] @@ -2593,34 +2593,34 @@ windows_core::imp::interface_hierarchy!(IMMNotificationClient, windows_core::IUn impl IMMNotificationClient { pub unsafe fn OnDeviceStateChanged(&self, pwstrdeviceid: P0, dwnewstate: DEVICE_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDeviceStateChanged)(windows_core::Interface::as_raw(self), pwstrdeviceid.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDeviceAdded)(windows_core::Interface::as_raw(self), pwstrdeviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDeviceAdded)(windows_core::Interface::as_raw(self), pwstrdeviceid.param().abi()).ok() } pub unsafe fn OnDeviceRemoved(&self, pwstrdeviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDeviceRemoved)(windows_core::Interface::as_raw(self), pwstrdeviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDeviceRemoved)(windows_core::Interface::as_raw(self), pwstrdeviceid.param().abi()).ok() } pub unsafe fn OnDefaultDeviceChanged(&self, flow: EDataFlow, role: ERole, pwstrdefaultdeviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDefaultDeviceChanged)(windows_core::Interface::as_raw(self), flow, role, pwstrdefaultdeviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDefaultDeviceChanged)(windows_core::Interface::as_raw(self), flow, role, pwstrdefaultdeviceid.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn OnPropertyValueChanged(&self, pwstrdeviceid: P0, key: super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPropertyValueChanged)(windows_core::Interface::as_raw(self), pwstrdeviceid.into_param().abi(), core::mem::transmute(key)).ok() + (windows_core::Interface::vtable(self).OnPropertyValueChanged)(windows_core::Interface::as_raw(self), pwstrdeviceid.param().abi(), core::mem::transmute(key)).ok() } } #[repr(C)] @@ -2641,21 +2641,21 @@ impl IMessageFilter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn HandleInComingCall(&self, dwcalltype: u32, htaskcaller: P0, dwtickcount: u32, lpinterfaceinfo: Option<*const super::super::System::Com::INTERFACEINFO>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleInComingCall)(windows_core::Interface::as_raw(self), dwcalltype, htaskcaller.into_param().abi(), dwtickcount, core::mem::transmute(lpinterfaceinfo.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).HandleInComingCall)(windows_core::Interface::as_raw(self), dwcalltype, htaskcaller.param().abi(), dwtickcount, core::mem::transmute(lpinterfaceinfo.unwrap_or(std::ptr::null()))) } pub unsafe fn RetryRejectedCall(&self, htaskcallee: P0, dwtickcount: u32, dwrejecttype: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RetryRejectedCall)(windows_core::Interface::as_raw(self), htaskcallee.into_param().abi(), dwtickcount, dwrejecttype) + (windows_core::Interface::vtable(self).RetryRejectedCall)(windows_core::Interface::as_raw(self), htaskcallee.param().abi(), dwtickcount, dwrejecttype) } pub unsafe fn MessagePending(&self, htaskcallee: P0, dwtickcount: u32, dwpendingtype: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MessagePending)(windows_core::Interface::as_raw(self), htaskcallee.into_param().abi(), dwtickcount, dwpendingtype) + (windows_core::Interface::vtable(self).MessagePending)(windows_core::Interface::as_raw(self), htaskcallee.param().abi(), dwtickcount, dwpendingtype) } } #[repr(C)] @@ -2716,15 +2716,15 @@ impl IPart { } pub unsafe fn RegisterControlChangeCallback(&self, riid: *const windows_core::GUID, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterControlChangeCallback)(windows_core::Interface::as_raw(self), riid, pnotify.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterControlChangeCallback)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterControlChangeCallback)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } } #[repr(C)] @@ -2808,9 +2808,9 @@ impl ISimpleAudioVolume { } pub unsafe fn SetMute(&self, bmute: P0, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into_param().abi(), eventcontext).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.param().abi(), eventcontext).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2914,10 +2914,10 @@ impl ISpatialAudioClient2 { } pub unsafe fn GetMaxFrameCountForCategory(&self, category: AUDIO_STREAM_CATEGORY, offloadenabled: P0, objectformat: *const WAVEFORMATEX) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxFrameCountForCategory)(windows_core::Interface::as_raw(self), category, offloadenabled.into_param().abi(), objectformat, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxFrameCountForCategory)(windows_core::Interface::as_raw(self), category, offloadenabled.param().abi(), objectformat, &mut result__).map(|| result__) } } #[repr(C)] @@ -2963,16 +2963,16 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataCopier, windows_cor impl ISpatialAudioMetadataCopier { pub unsafe fn Open(&self, metadataitems: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), metadataitems.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), metadataitems.param().abi()).ok() } pub unsafe fn CopyMetadataForFrames(&self, copyframecount: u16, copymode: SpatialAudioMetadataCopyMode, dstmetadataitems: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyMetadataForFrames)(windows_core::Interface::as_raw(self), copyframecount, copymode, dstmetadataitems.into_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() @@ -3043,9 +3043,9 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataReader, windows_cor impl ISpatialAudioMetadataReader { pub unsafe fn Open(&self, metadataitems: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), metadataitems.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), metadataitems.param().abi()).ok() } pub unsafe fn ReadNextItem(&self, commandcount: *mut u8, frameoffset: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReadNextItem)(windows_core::Interface::as_raw(self), commandcount, frameoffset).ok() @@ -3070,9 +3070,9 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataWriter, windows_cor impl ISpatialAudioMetadataWriter { pub unsafe fn Open(&self, metadataitems: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), metadataitems.into_param().abi()).ok() + (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), frameoffset).ok() @@ -3415,9 +3415,9 @@ windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamNotify, w impl ISpatialAudioObjectRenderStreamNotify { pub unsafe fn OnAvailableDynamicObjectCountChange(&self, sender: P0, hnscompliancedeadlinetime: i64, availabledynamicobjectcountchange: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAvailableDynamicObjectCountChange)(windows_core::Interface::as_raw(self), sender.into_param().abi(), hnscompliancedeadlinetime, 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 fe17712d06..74232252c5 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs @@ -119,10 +119,10 @@ impl IMDSPDevice2 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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 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<()> { @@ -194,10 +194,10 @@ impl IMDSPDevice3 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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 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<()> { @@ -212,16 +212,16 @@ impl IMDSPDevice3 { } pub unsafe fn GetProperty(&self, pwszpropname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszpropname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszpropname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, pwszpropname: P0, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszpropname.into_param().abi(), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszpropname.param().abi(), core::mem::transmute(pvalue)).ok() } pub unsafe fn GetFormatCapability(&self, format: WMDM_FORMATCODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -232,10 +232,10 @@ impl IMDSPDevice3 { } pub unsafe fn FindStorage(&self, findscope: WMDM_FIND_SCOPE, pwszuniqueid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.into_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)] @@ -298,14 +298,14 @@ windows_core::imp::interface_hierarchy!(IMDSPDirectTransfer, windows_core::IUnkn impl IMDSPDirectTransfer { pub unsafe fn TransferToDevice(&self, pwszsourcefilepath: P0, psourceoperation: P1, fuflags: u32, pwszdestinationname: P2, psourcemetadata: P3, ptransferprogress: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TransferToDevice)(windows_core::Interface::as_raw(self), pwszsourcefilepath.into_param().abi(), psourceoperation.into_param().abi(), fuflags, pwszdestinationname.into_param().abi(), psourcemetadata.into_param().abi(), ptransferprogress.into_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)] @@ -379,26 +379,26 @@ impl IMDSPObject { } pub unsafe fn Delete(&self, fumode: u32, pprogress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.into_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), fuflags, dwoffset).ok() } pub unsafe fn Rename(&self, pwsznewname: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pwsznewname.into_param().abi(), pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pwsznewname.param().abi(), pprogress.param().abi()).ok() } pub unsafe fn Move(&self, fumode: u32, pprogress: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), fumode, pprogress.into_param().abi(), ptarget.into_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() @@ -430,26 +430,26 @@ impl IMDSPObject2 { } pub unsafe fn Delete(&self, fumode: u32, pprogress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Seek)(windows_core::Interface::as_raw(self), fuflags, dwoffset).ok() } pub unsafe fn Rename(&self, pwsznewname: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), pwsznewname.into_param().abi(), pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), pwsznewname.param().abi(), pprogress.param().abi()).ok() } pub unsafe fn Move(&self, fumode: u32, pprogress: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), fumode, pprogress.into_param().abi(), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Close)(windows_core::Interface::as_raw(self)).ok() @@ -551,10 +551,10 @@ impl IMDSPStorage { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn CreateStorage(&self, dwattributes: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>, pwszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(std::ptr::null())), pwszname.into_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(std::ptr::null())), pwszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumStorage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -618,10 +618,10 @@ impl IMDSPStorage2 { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn CreateStorage(&self, dwattributes: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>, pwszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(std::ptr::null())), pwszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(std::ptr::null())), pwszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumStorage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -632,18 +632,18 @@ impl IMDSPStorage2 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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 CreateStorage2(&self, dwattributes: u32, dwattributesex: u32, paudioformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>, pwszname: P0, qwfilesize: u64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorage2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(paudioformat.unwrap_or(std::ptr::null())), core::mem::transmute(pvideoformat.unwrap_or(std::ptr::null())), pwszname.into_param().abi(), 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(std::ptr::null())), core::mem::transmute(pvideoformat.unwrap_or(std::ptr::null())), 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<()> { @@ -702,10 +702,10 @@ impl IMDSPStorage3 { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn CreateStorage(&self, dwattributes: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>, pwszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(std::ptr::null())), pwszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(std::ptr::null())), pwszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumStorage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -716,18 +716,18 @@ impl IMDSPStorage3 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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 CreateStorage2(&self, dwattributes: u32, dwattributesex: u32, paudioformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>, pwszname: P0, qwfilesize: u64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateStorage2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(paudioformat.unwrap_or(std::ptr::null())), core::mem::transmute(pvideoformat.unwrap_or(std::ptr::null())), pwszname.into_param().abi(), qwfilesize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateStorage2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(paudioformat.unwrap_or(std::ptr::null())), core::mem::transmute(pvideoformat.unwrap_or(std::ptr::null())), 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<()> { @@ -739,15 +739,15 @@ impl IMDSPStorage3 { } pub unsafe fn GetMetadata(&self, pmetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMetadata)(windows_core::Interface::as_raw(self), pmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetMetadata)(windows_core::Interface::as_raw(self), pmetadata.param().abi()).ok() } pub unsafe fn SetMetadata(&self, pmetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.param().abi()).ok() } } #[repr(C)] @@ -787,10 +787,10 @@ impl IMDSPStorage4 { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn CreateStorage(&self, dwattributes: u32, pformat: Option<*const super::Audio::WAVEFORMATEX>, pwszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(std::ptr::null())), pwszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateStorage)(windows_core::Interface::as_raw(self), dwattributes, core::mem::transmute(pformat.unwrap_or(std::ptr::null())), pwszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumStorage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -801,18 +801,18 @@ impl IMDSPStorage4 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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 CreateStorage2(&self, dwattributes: u32, dwattributesex: u32, paudioformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>, pwszname: P0, qwfilesize: u64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateStorage2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(paudioformat.unwrap_or(std::ptr::null())), core::mem::transmute(pvideoformat.unwrap_or(std::ptr::null())), pwszname.into_param().abi(), qwfilesize, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateStorage2)(windows_core::Interface::as_raw(self), dwattributes, dwattributesex, core::mem::transmute(paudioformat.unwrap_or(std::ptr::null())), core::mem::transmute(pvideoformat.unwrap_or(std::ptr::null())), 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<()> { @@ -824,15 +824,15 @@ impl IMDSPStorage4 { } pub unsafe fn GetMetadata(&self, pmetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMetadata)(windows_core::Interface::as_raw(self), pmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetMetadata)(windows_core::Interface::as_raw(self), pmetadata.param().abi()).ok() } pub unsafe fn SetMetadata(&self, pmetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.param().abi()).ok() } pub unsafe fn SetReferences(&self, ppispstorage: Option<&[Option]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetReferences)(windows_core::Interface::as_raw(self), ppispstorage.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppispstorage.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() @@ -842,24 +842,24 @@ impl IMDSPStorage4 { } pub unsafe fn CreateStorageWithMetadata(&self, dwattributes: u32, pwszname: P0, pmetadata: P1, qwfilesize: u64) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorageWithMetadata)(windows_core::Interface::as_raw(self), dwattributes, pwszname.into_param().abi(), pmetadata.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSpecifiedMetadata)(windows_core::Interface::as_raw(self), ppwszpropnames.len().try_into().unwrap(), core::mem::transmute(ppwszpropnames.as_ptr()), pmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetSpecifiedMetadata)(windows_core::Interface::as_raw(self), ppwszpropnames.len().try_into().unwrap(), core::mem::transmute(ppwszpropnames.as_ptr()), pmetadata.param().abi()).ok() } pub unsafe fn FindStorage(&self, findscope: WMDM_FIND_SCOPE, pwszuniqueid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.into_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__ = std::mem::zeroed(); @@ -901,9 +901,9 @@ impl IMDSPStorageGlobals { } pub unsafe fn Initialize(&self, fumode: u32, pprogress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fumode, pprogress.into_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__ = std::mem::zeroed(); @@ -958,9 +958,9 @@ impl IMDServiceProvider2 { } pub unsafe fn CreateDevice(&self, pwszdevicepath: P0, pdwcount: *mut u32, pppdevicearray: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), pwszdevicepath.into_param().abi(), pdwcount, pppdevicearray).ok() + (windows_core::Interface::vtable(self).CreateDevice)(windows_core::Interface::as_raw(self), pwszdevicepath.param().abi(), pdwcount, pppdevicearray).ok() } } #[repr(C)] @@ -981,9 +981,9 @@ impl IMDServiceProvider3 { } pub unsafe fn CreateDevice(&self, pwszdevicepath: P0, pdwcount: *mut u32, pppdevicearray: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), pwszdevicepath.into_param().abi(), pdwcount, pppdevicearray).ok() + (windows_core::Interface::vtable(self).base__.CreateDevice)(windows_core::Interface::as_raw(self), pwszdevicepath.param().abi(), pdwcount, pppdevicearray).ok() } pub unsafe fn SetDeviceEnumPreference(&self, dwenumpref: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDeviceEnumPreference)(windows_core::Interface::as_raw(self), dwenumpref).ok() @@ -1058,9 +1058,9 @@ impl ISCPSecureExchange2 { } pub unsafe fn TransferContainerData2(&self, pdata: &[u8], pprogresscallback: P0, pfureadyflags: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TransferContainerData2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pprogresscallback.into_param().abi(), pfureadyflags, core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).TransferContainerData2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pprogresscallback.param().abi(), pfureadyflags, core::mem::transmute(abmac.as_ptr())).ok() } } #[repr(C)] @@ -1082,29 +1082,29 @@ impl ISCPSecureExchange3 { } pub unsafe fn TransferContainerData2(&self, pdata: &[u8], pprogresscallback: P0, pfureadyflags: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TransferContainerData2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pprogresscallback.into_param().abi(), pfureadyflags, core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.TransferContainerData2)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pprogresscallback.param().abi(), pfureadyflags, core::mem::transmute(abmac.as_ptr())).ok() } pub unsafe fn TransferContainerDataOnClearChannel(&self, pdevice: P0, pdata: &[u8], pprogresscallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TransferContainerDataOnClearChannel)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pprogresscallback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TransferContainerDataOnClearChannel)(windows_core::Interface::as_raw(self), pdevice.param().abi(), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pprogresscallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetObjectDataOnClearChannel(&self, pdevice: P0, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjectDataOnClearChannel)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdata, pdwsize).ok() + (windows_core::Interface::vtable(self).GetObjectDataOnClearChannel)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pdata, pdwsize).ok() } pub unsafe fn TransferCompleteForDevice(&self, pdevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TransferCompleteForDevice)(windows_core::Interface::as_raw(self), pdevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TransferCompleteForDevice)(windows_core::Interface::as_raw(self), pdevice.param().abi()).ok() } } #[repr(C)] @@ -1122,21 +1122,21 @@ impl ISCPSecureQuery { } pub unsafe fn ExamineData(&self, fuflags: u32, pwszextension: P0, pdata: &[u8], abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExamineData)(windows_core::Interface::as_raw(self), fuflags, pwszextension.into_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: P0, ppexchange: *mut Option, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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.into_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: P0, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.into_param().abi(), pprights, pnrightscount, core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.param().abi(), pprights, pnrightscount, core::mem::transmute(abmac.as_ptr())).ok() } } #[repr(C)] @@ -1155,26 +1155,26 @@ impl ISCPSecureQuery2 { } pub unsafe fn ExamineData(&self, fuflags: u32, pwszextension: P0, pdata: &[u8], abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExamineData)(windows_core::Interface::as_raw(self), fuflags, pwszextension.into_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).base__.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: P0, ppexchange: *mut Option, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.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.into_param().abi(), core::mem::transmute(ppexchange), core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.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: P0, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.into_param().abi(), pprights, pnrightscount, core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.GetRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.param().abi(), pprights, pnrightscount, core::mem::transmute(abmac.as_ptr())).ok() } pub unsafe fn MakeDecision2(&self, fuflags: u32, pdata: &[u8], dwappsec: u32, pbspsessionkey: &[u8], pstorageglobals: P0, pappcertapp: &[u8], pappcertsp: &[u8], pszrevocationurl: *mut windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: Option<*mut u64>, punknown: P1, ppexchange: *mut Option, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { (windows_core::Interface::vtable(self).MakeDecision2)( windows_core::Interface::as_raw(self), @@ -1184,7 +1184,7 @@ impl ISCPSecureQuery2 { dwappsec, core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), - pstorageglobals.into_param().abi(), + pstorageglobals.param().abi(), core::mem::transmute(pappcertapp.as_ptr()), pappcertapp.len().try_into().unwrap(), core::mem::transmute(pappcertsp.as_ptr()), @@ -1193,7 +1193,7 @@ impl ISCPSecureQuery2 { pdwrevocationurllen, pdwrevocationbitflag, core::mem::transmute(pqwfilesize.unwrap_or(std::ptr::null_mut())), - punknown.into_param().abi(), + punknown.param().abi(), core::mem::transmute(ppexchange), core::mem::transmute(abmac.as_ptr()), ) @@ -1213,26 +1213,26 @@ impl ISCPSecureQuery3 { } pub unsafe fn ExamineData(&self, fuflags: u32, pwszextension: P0, pdata: &[u8], abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ExamineData)(windows_core::Interface::as_raw(self), fuflags, pwszextension.into_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).base__.base__.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: P0, ppexchange: *mut Option, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.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.into_param().abi(), core::mem::transmute(ppexchange), core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.into_param().abi(), pprights, pnrightscount, core::mem::transmute(abmac.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.GetRights)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.param().abi(), pprights, pnrightscount, core::mem::transmute(abmac.as_ptr())).ok() } pub unsafe fn MakeDecision2(&self, fuflags: u32, pdata: &[u8], dwappsec: u32, pbspsessionkey: &[u8], pstorageglobals: P0, pappcertapp: &[u8], pappcertsp: &[u8], pszrevocationurl: *mut windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: Option<*mut u64>, punknown: P1, ppexchange: *mut Option, abmac: &mut [u8; 8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { (windows_core::Interface::vtable(self).base__.MakeDecision2)( windows_core::Interface::as_raw(self), @@ -1242,7 +1242,7 @@ impl ISCPSecureQuery3 { dwappsec, core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), - pstorageglobals.into_param().abi(), + pstorageglobals.param().abi(), core::mem::transmute(pappcertapp.as_ptr()), pappcertapp.len().try_into().unwrap(), core::mem::transmute(pappcertsp.as_ptr()), @@ -1251,7 +1251,7 @@ impl ISCPSecureQuery3 { pdwrevocationurllen, pdwrevocationbitflag, core::mem::transmute(pqwfilesize.unwrap_or(std::ptr::null_mut())), - punknown.into_param().abi(), + punknown.param().abi(), core::mem::transmute(ppexchange), core::mem::transmute(abmac.as_ptr()), ) @@ -1259,16 +1259,16 @@ impl ISCPSecureQuery3 { } pub unsafe fn GetRightsOnClearChannel(&self, pdata: &[u8], pbspsessionkey: &[u8], pstgglobals: P0, pprogresscallback: P1, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRightsOnClearChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.into_param().abi(), pprogresscallback.into_param().abi(), pprights, pnrightscount).ok() + (windows_core::Interface::vtable(self).GetRightsOnClearChannel)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), pstgglobals.param().abi(), pprogresscallback.param().abi(), pprights, pnrightscount).ok() } pub unsafe fn MakeDecisionOnClearChannel(&self, fuflags: u32, pdata: &[u8], dwappsec: u32, pbspsessionkey: &[u8], pstorageglobals: P0, pprogresscallback: P1, pappcertapp: &[u8], pappcertsp: &[u8], pszrevocationurl: *mut windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: Option<*mut u64>, punknown: P2, ppexchange: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { (windows_core::Interface::vtable(self).MakeDecisionOnClearChannel)( windows_core::Interface::as_raw(self), @@ -1278,8 +1278,8 @@ impl ISCPSecureQuery3 { dwappsec, core::mem::transmute(pbspsessionkey.as_ptr()), pbspsessionkey.len().try_into().unwrap(), - pstorageglobals.into_param().abi(), - pprogresscallback.into_param().abi(), + pstorageglobals.param().abi(), + pprogresscallback.param().abi(), core::mem::transmute(pappcertapp.as_ptr()), pappcertapp.len().try_into().unwrap(), core::mem::transmute(pappcertsp.as_ptr()), @@ -1288,7 +1288,7 @@ impl ISCPSecureQuery3 { pdwrevocationurllen, pdwrevocationbitflag, core::mem::transmute(pqwfilesize.unwrap_or(std::ptr::null_mut())), - punknown.into_param().abi(), + punknown.param().abi(), core::mem::transmute(ppexchange), ) .ok() @@ -1305,9 +1305,9 @@ windows_core::imp::interface_hierarchy!(ISCPSession, windows_core::IUnknown); impl ISCPSession { pub unsafe fn BeginSession(&self, pidevice: P0, pctx: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginSession)(windows_core::Interface::as_raw(self), pidevice.into_param().abi(), core::mem::transmute(pctx.as_ptr()), pctx.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).BeginSession)(windows_core::Interface::as_raw(self), pidevice.param().abi(), core::mem::transmute(pctx.as_ptr()), pctx.len().try_into().unwrap()).ok() } pub unsafe fn EndSession(&self, pctx: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), core::mem::transmute(pctx.as_ptr()), pctx.len().try_into().unwrap()).ok() @@ -1429,10 +1429,10 @@ impl IWMDMDevice2 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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 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<()> { @@ -1504,10 +1504,10 @@ impl IWMDMDevice3 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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 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<()> { @@ -1522,16 +1522,16 @@ impl IWMDMDevice3 { } pub unsafe fn GetProperty(&self, pwszpropname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszpropname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszpropname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, pwszpropname: P0, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszpropname.into_param().abi(), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszpropname.param().abi(), core::mem::transmute(pvalue)).ok() } pub unsafe fn GetFormatCapability(&self, format: WMDM_FORMATCODE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1542,10 +1542,10 @@ impl IWMDMDevice3 { } pub unsafe fn FindStorage(&self, findscope: WMDM_FIND_SCOPE, pwszuniqueid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.into_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)] @@ -1680,32 +1680,32 @@ impl IWMDMLogger { } pub unsafe fn Enable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.param().abi()).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), nmaxchars).ok() } pub unsafe fn SetLogFileName(&self, pszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), pszfilename.param().abi()).ok() } pub unsafe fn LogString(&self, dwflags: u32, pszsrcname: P0, pszlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LogString)(windows_core::Interface::as_raw(self), dwflags, pszsrcname.into_param().abi(), pszlog.into_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: P0, pszlogformat: P1, dwlog: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LogDword)(windows_core::Interface::as_raw(self), dwflags, pszsrcname.into_param().abi(), pszlogformat.into_param().abi(), 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() @@ -1735,15 +1735,15 @@ windows_core::imp::interface_hierarchy!(IWMDMMetaData, windows_core::IUnknown); impl IWMDMMetaData { pub unsafe fn AddItem(&self, r#type: WMDM_TAG_DATATYPE, pwsztagname: P0, pvalue: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), r#type, pwsztagname.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryByName)(windows_core::Interface::as_raw(self), pwsztagname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).QueryByName)(windows_core::Interface::as_raw(self), pwsztagname.param().abi(), ptype, pvalue, 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), iindex, ppwszname, ptype, ppvalue, pcblength).ok() @@ -1766,9 +1766,9 @@ windows_core::imp::interface_hierarchy!(IWMDMNotification, windows_core::IUnknow impl IWMDMNotification { pub unsafe fn WMDMMessage(&self, dwmessagetype: u32, pwszcanonicalname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WMDMMessage)(windows_core::Interface::as_raw(self), dwmessagetype, pwszcanonicalname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WMDMMessage)(windows_core::Interface::as_raw(self), dwmessagetype, pwszcanonicalname.param().abi()).ok() } } #[repr(C)] @@ -1851,9 +1851,9 @@ impl IWMDMOperation { } pub unsafe fn End(&self, phcompletioncode: *const windows_core::HRESULT, pnewobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.param().abi()).ok() } } #[repr(C)] @@ -1910,9 +1910,9 @@ impl IWMDMOperation2 { } pub unsafe fn End(&self, phcompletioncode: *const windows_core::HRESULT, pnewobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.End)(windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.End)(windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.param().abi()).ok() } #[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<()> { @@ -1969,9 +1969,9 @@ impl IWMDMOperation3 { } pub unsafe fn End(&self, phcompletioncode: *const windows_core::HRESULT, pnewobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.End)(windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.End)(windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.param().abi()).ok() } pub unsafe fn TransferObjectDataOnClearChannel(&self, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TransferObjectDataOnClearChannel)(windows_core::Interface::as_raw(self), pdata, pdwsize).ok() @@ -2159,10 +2159,10 @@ impl IWMDMStorage2 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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, pformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { @@ -2223,10 +2223,10 @@ impl IWMDMStorage3 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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, pformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { @@ -2242,9 +2242,9 @@ impl IWMDMStorage3 { } pub unsafe fn SetMetadata(&self, pmetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.param().abi()).ok() } pub unsafe fn CreateEmptyMetadataObject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2299,10 +2299,10 @@ impl IWMDMStorage4 { } pub unsafe fn GetStorage(&self, pszstoragename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetStorage)(windows_core::Interface::as_raw(self), pszstoragename.param().abi(), &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, pformat: Option<*const super::Audio::WAVEFORMATEX>, pvideoformat: Option<*const super::MediaFoundation::VIDEOINFOHEADER>) -> windows_core::Result<()> { @@ -2318,9 +2318,9 @@ impl IWMDMStorage4 { } pub unsafe fn SetMetadata(&self, pmetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMetadata)(windows_core::Interface::as_raw(self), pmetadata.param().abi()).ok() } pub unsafe fn CreateEmptyMetadataObject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2337,9 +2337,9 @@ impl IWMDMStorage4 { } pub unsafe fn GetRightsWithProgress(&self, piprogresscallback: P0, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRightsWithProgress)(windows_core::Interface::as_raw(self), piprogresscallback.into_param().abi(), pprights, pnrightscount).ok() + (windows_core::Interface::vtable(self).GetRightsWithProgress)(windows_core::Interface::as_raw(self), piprogresscallback.param().abi(), pprights, pnrightscount).ok() } pub unsafe fn GetSpecifiedMetadata(&self, ppwszpropnames: &[windows_core::PCWSTR]) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2347,10 +2347,10 @@ impl IWMDMStorage4 { } pub unsafe fn FindStorage(&self, findscope: WMDM_FIND_SCOPE, pwszuniqueid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindStorage)(windows_core::Interface::as_raw(self), findscope, pwszuniqueid.into_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__ = std::mem::zeroed(); @@ -2372,40 +2372,40 @@ windows_core::imp::interface_hierarchy!(IWMDMStorageControl, windows_core::IUnkn impl IWMDMStorageControl { pub unsafe fn Insert(&self, fumode: u32, pwszfile: P0, poperation: P1, pprogress: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), fumode, pwszfile.into_param().abi(), poperation.into_param().abi(), pprogress.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.into_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: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), fumode, pwsznewname.into_param().abi(), pprogress.into_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: P0, pprogress: P1, poperation: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), fumode, pwszfile.into_param().abi(), pprogress.into_param().abi(), poperation.into_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: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), fumode, ptargetobject.into_param().abi(), pprogress.into_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)] @@ -2422,50 +2422,50 @@ windows_core::imp::interface_hierarchy!(IWMDMStorageControl2, windows_core::IUnk impl IWMDMStorageControl2 { pub unsafe fn Insert(&self, fumode: u32, pwszfile: P0, poperation: P1, pprogress: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Insert)(windows_core::Interface::as_raw(self), fumode, pwszfile.into_param().abi(), poperation.into_param().abi(), pprogress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi()).ok() } pub unsafe fn Rename(&self, fumode: u32, pwsznewname: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), fumode, pwsznewname.into_param().abi(), pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), fumode, pwsznewname.param().abi(), pprogress.param().abi()).ok() } pub unsafe fn Read(&self, fumode: u32, pwszfile: P0, pprogress: P1, poperation: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), fumode, pwszfile.into_param().abi(), pprogress.into_param().abi(), poperation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), fumode, ptargetobject.into_param().abi(), pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), fumode, ptargetobject.param().abi(), pprogress.param().abi()).ok() } pub unsafe fn Insert2(&self, fumode: u32, pwszfilesource: P0, pwszfiledest: P1, poperation: P2, pprogress: P3, punknown: P4, ppnewobject: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert2)(windows_core::Interface::as_raw(self), fumode, pwszfilesource.into_param().abi(), pwszfiledest.into_param().abi(), poperation.into_param().abi(), pprogress.into_param().abi(), punknown.into_param().abi(), core::mem::transmute(ppnewobject.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -2478,61 +2478,61 @@ windows_core::imp::interface_hierarchy!(IWMDMStorageControl3, windows_core::IUnk impl IWMDMStorageControl3 { pub unsafe fn Insert(&self, fumode: u32, pwszfile: P0, poperation: P1, pprogress: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Insert)(windows_core::Interface::as_raw(self), fumode, pwszfile.into_param().abi(), poperation.into_param().abi(), pprogress.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi()).ok() } pub unsafe fn Rename(&self, fumode: u32, pwsznewname: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Rename)(windows_core::Interface::as_raw(self), fumode, pwsznewname.into_param().abi(), pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Rename)(windows_core::Interface::as_raw(self), fumode, pwsznewname.param().abi(), pprogress.param().abi()).ok() } pub unsafe fn Read(&self, fumode: u32, pwszfile: P0, pprogress: P1, poperation: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), fumode, pwszfile.into_param().abi(), pprogress.into_param().abi(), poperation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0, pprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Move)(windows_core::Interface::as_raw(self), fumode, ptargetobject.into_param().abi(), pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Move)(windows_core::Interface::as_raw(self), fumode, ptargetobject.param().abi(), pprogress.param().abi()).ok() } pub unsafe fn Insert2(&self, fumode: u32, pwszfilesource: P0, pwszfiledest: P1, poperation: P2, pprogress: P3, punknown: P4, ppnewobject: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Insert2)(windows_core::Interface::as_raw(self), fumode, pwszfilesource.into_param().abi(), pwszfiledest.into_param().abi(), poperation.into_param().abi(), pprogress.into_param().abi(), punknown.into_param().abi(), core::mem::transmute(ppnewobject.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.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(std::ptr::null_mut()))).ok() } pub unsafe fn Insert3(&self, fumode: u32, futype: u32, pwszfilesource: P0, pwszfiledest: P1, poperation: P2, pprogress: P3, pmetadata: P4, punknown: P5, ppnewobject: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert3)(windows_core::Interface::as_raw(self), fumode, futype, pwszfilesource.into_param().abi(), pwszfiledest.into_param().abi(), poperation.into_param().abi(), pprogress.into_param().abi(), pmetadata.into_param().abi(), punknown.into_param().abi(), core::mem::transmute(ppnewobject.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -2565,9 +2565,9 @@ impl IWMDMStorageGlobals { } pub unsafe fn Initialize(&self, fumode: u32, pprogress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fumode, pprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fumode, pprogress.param().abi()).ok() } } #[repr(C)] @@ -2621,10 +2621,10 @@ impl IWMDeviceManager2 { } pub unsafe fn GetDeviceFromCanonicalName(&self, pwszcanonicalname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeviceFromCanonicalName)(windows_core::Interface::as_raw(self), pwszcanonicalname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDeviceFromCanonicalName)(windows_core::Interface::as_raw(self), pwszcanonicalname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumDevices2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2658,10 +2658,10 @@ impl IWMDeviceManager3 { } pub unsafe fn GetDeviceFromCanonicalName(&self, pwszcanonicalname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDeviceFromCanonicalName)(windows_core::Interface::as_raw(self), pwszcanonicalname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetDeviceFromCanonicalName)(windows_core::Interface::as_raw(self), pwszcanonicalname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumDevices2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 c5aa7ef8e3..ed2fdec8d5 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 @@ -27,9 +27,9 @@ impl IATSCChannelTuneRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLocator(&self, locator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLocator)(windows_core::Interface::as_raw(self), locator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLocator)(windows_core::Interface::as_raw(self), locator.param().abi()).ok() } pub unsafe fn Channel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -72,9 +72,9 @@ impl IATSCComponentType { } pub unsafe fn SetMediaMajorType(&self, mediamajortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.param().abi()).ok() } pub unsafe fn _MediaMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -89,9 +89,9 @@ impl IATSCComponentType { } pub unsafe fn SetMediaSubType(&self, mediasubtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.param().abi()).ok() } pub unsafe fn _MediaSubType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -106,9 +106,9 @@ impl IATSCComponentType { } pub unsafe fn SetMediaFormatType(&self, mediaformattype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.param().abi()).ok() } pub unsafe fn _MediaFormatType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -345,9 +345,9 @@ impl IATSCTuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -355,9 +355,9 @@ impl IATSCTuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -369,9 +369,9 @@ impl IATSCTuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -403,9 +403,9 @@ impl IATSCTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -413,9 +413,9 @@ impl IATSCTuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -425,9 +425,9 @@ impl IATSCTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -509,10 +509,10 @@ windows_core::imp::interface_hierarchy!(IATSC_EIT, windows_core::IUnknown); impl IATSC_EIT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -583,10 +583,10 @@ windows_core::imp::interface_hierarchy!(IATSC_ETT, windows_core::IUnknown); impl IATSC_ETT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -618,10 +618,10 @@ windows_core::imp::interface_hierarchy!(IATSC_MGT, windows_core::IUnknown); impl IATSC_MGT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -691,10 +691,10 @@ windows_core::imp::interface_hierarchy!(IATSC_STT, windows_core::IUnknown); impl IATSC_STT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetProtocolVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -741,10 +741,10 @@ windows_core::imp::interface_hierarchy!(IATSC_VCT, windows_core::IUnknown); impl IATSC_VCT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -893,9 +893,9 @@ impl IAnalogAudioComponentType { } pub unsafe fn SetMediaMajorType(&self, mediamajortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.param().abi()).ok() } pub unsafe fn _MediaMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -910,9 +910,9 @@ impl IAnalogAudioComponentType { } pub unsafe fn SetMediaSubType(&self, mediasubtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.param().abi()).ok() } pub unsafe fn _MediaSubType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -927,9 +927,9 @@ impl IAnalogAudioComponentType { } pub unsafe fn SetMediaFormatType(&self, mediaformattype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.param().abi()).ok() } pub unsafe fn _MediaFormatType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1054,9 +1054,9 @@ impl IAnalogRadioTuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1064,9 +1064,9 @@ impl IAnalogRadioTuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1078,9 +1078,9 @@ impl IAnalogRadioTuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1112,9 +1112,9 @@ impl IAnalogRadioTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1122,9 +1122,9 @@ impl IAnalogRadioTuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -1134,9 +1134,9 @@ impl IAnalogRadioTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1188,9 +1188,9 @@ impl IAnalogRadioTuningSpace2 { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1198,9 +1198,9 @@ impl IAnalogRadioTuningSpace2 { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1212,9 +1212,9 @@ impl IAnalogRadioTuningSpace2 { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1246,9 +1246,9 @@ impl IAnalogRadioTuningSpace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1256,9 +1256,9 @@ impl IAnalogRadioTuningSpace2 { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -1268,9 +1268,9 @@ impl IAnalogRadioTuningSpace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1325,9 +1325,9 @@ impl IAnalogTVTuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1335,9 +1335,9 @@ impl IAnalogTVTuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1349,9 +1349,9 @@ impl IAnalogTVTuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1383,9 +1383,9 @@ impl IAnalogTVTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1393,9 +1393,9 @@ impl IAnalogTVTuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -1405,9 +1405,9 @@ impl IAnalogTVTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1508,9 +1508,9 @@ windows_core::imp::interface_hierarchy!(IAtscPsipParser, windows_core::IUnknown) impl IAtscPsipParser { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.param().abi()).ok() } pub unsafe fn GetPAT(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1534,10 +1534,10 @@ impl IAtscPsipParser { } pub unsafe fn GetVCT(&self, tableid: u8, fgetnexttable: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVCT)(windows_core::Interface::as_raw(self), tableid, fgetnexttable.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVCT)(windows_core::Interface::as_raw(self), tableid, fgetnexttable.param().abi(), &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__ = std::mem::zeroed(); @@ -1616,9 +1616,9 @@ impl IAuxInTuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1626,9 +1626,9 @@ impl IAuxInTuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1640,9 +1640,9 @@ impl IAuxInTuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1674,9 +1674,9 @@ impl IAuxInTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1684,9 +1684,9 @@ impl IAuxInTuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -1696,9 +1696,9 @@ impl IAuxInTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1723,9 +1723,9 @@ impl IAuxInTuningSpace2 { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1733,9 +1733,9 @@ impl IAuxInTuningSpace2 { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1747,9 +1747,9 @@ impl IAuxInTuningSpace2 { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1781,9 +1781,9 @@ impl IAuxInTuningSpace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1791,9 +1791,9 @@ impl IAuxInTuningSpace2 { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -1803,9 +1803,9 @@ impl IAuxInTuningSpace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1833,18 +1833,18 @@ impl IBDAComparable { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareExact(&self, compareto: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareExact)(windows_core::Interface::as_raw(self), compareto.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareExact)(windows_core::Interface::as_raw(self), compareto.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareEquivalent(&self, compareto: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEquivalent)(windows_core::Interface::as_raw(self), compareto.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1901,9 +1901,9 @@ windows_core::imp::interface_hierarchy!(IBDA_TIF_REGISTRATION, windows_core::IUn impl IBDA_TIF_REGISTRATION { pub unsafe fn RegisterTIFEx(&self, ptifinputpin: P0, ppvregistrationcontext: *mut u32, ppmpeg2datacontrol: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterTIFEx)(windows_core::Interface::as_raw(self), ptifinputpin.into_param().abi(), ppvregistrationcontext, core::mem::transmute(ppmpeg2datacontrol)).ok() + (windows_core::Interface::vtable(self).RegisterTIFEx)(windows_core::Interface::as_raw(self), ptifinputpin.param().abi(), 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), pvregistrationcontext).ok() @@ -1920,10 +1920,10 @@ windows_core::imp::interface_hierarchy!(ICAT, windows_core::IUnknown); impl ICAT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1942,9 +1942,9 @@ impl ICAT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1952,9 +1952,9 @@ impl ICAT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -2039,9 +2039,9 @@ impl IChannelIDTuneRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLocator(&self, locator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.param().abi()).ok() } pub unsafe fn ChannelID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2049,9 +2049,9 @@ impl IChannelIDTuneRequest { } pub unsafe fn SetChannelID(&self, channelid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetChannelID)(windows_core::Interface::as_raw(self), channelid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetChannelID)(windows_core::Interface::as_raw(self), channelid.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2090,9 +2090,9 @@ impl IChannelTuneRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLocator(&self, locator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.param().abi()).ok() } pub unsafe fn Channel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2123,9 +2123,9 @@ impl IComponent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetType(&self, ct: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), ct.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetType)(windows_core::Interface::as_raw(self), ct.param().abi()).ok() } pub unsafe fn DescLangID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2147,9 +2147,9 @@ impl IComponent { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -2199,9 +2199,9 @@ impl IComponentType { } pub unsafe fn SetMediaMajorType(&self, mediamajortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.param().abi()).ok() } pub unsafe fn _MediaMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2216,9 +2216,9 @@ impl IComponentType { } pub unsafe fn SetMediaSubType(&self, mediasubtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.param().abi()).ok() } pub unsafe fn _MediaSubType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2233,9 +2233,9 @@ impl IComponentType { } pub unsafe fn SetMediaFormatType(&self, mediaformattype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.param().abi()).ok() } pub unsafe fn _MediaFormatType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2312,32 +2312,32 @@ impl IComponentTypes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn put_Item(&self, index: P0, componenttype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), componenttype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index.param().abi(), componenttype.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, componenttype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), componenttype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), componenttype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -2395,24 +2395,24 @@ impl IComponents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, component: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), component.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), component.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -2422,10 +2422,10 @@ impl IComponents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn put_Item(&self, index: P0, ppcomponent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), ppcomponent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index.param().abi(), ppcomponent.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2478,24 +2478,24 @@ impl IComponentsOld { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, component: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), component.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), component.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -2533,10 +2533,10 @@ impl ICreatePropBagOnRegKey { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn Create(&self, hkey: P0, subkey: P1, uloptions: u32, samdesired: u32, iid: *const windows_core::GUID, ppbag: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hkey.into_param().abi(), subkey.into_param().abi(), uloptions, samdesired, iid, ppbag).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hkey.param().abi(), subkey.param().abi(), uloptions, samdesired, iid, ppbag).ok() } } #[repr(C)] @@ -2570,9 +2570,9 @@ impl IDTFilter { } pub unsafe fn SetBlockUnRated(&self, fblockunratedshows: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.param().abi()).ok() } pub unsafe fn BlockUnRatedDelay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2617,9 +2617,9 @@ impl IDTFilter2 { } pub unsafe fn SetBlockUnRated(&self, fblockunratedshows: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.param().abi()).ok() } pub unsafe fn BlockUnRatedDelay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2670,9 +2670,9 @@ impl IDTFilter3 { } pub unsafe fn SetBlockUnRated(&self, fblockunratedshows: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.param().abi()).ok() } pub unsafe fn BlockUnRatedDelay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2702,9 +2702,9 @@ impl IDTFilter3 { } pub unsafe fn SetRights(&self, bstrrights: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRights)(windows_core::Interface::as_raw(self), bstrrights.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRights)(windows_core::Interface::as_raw(self), bstrrights.param().abi()).ok() } } #[repr(C)] @@ -2889,9 +2889,9 @@ impl IDVBSLocator { } pub unsafe fn SetWestPosition(&self, westlongitude: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWestPosition)(windows_core::Interface::as_raw(self), westlongitude.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWestPosition)(windows_core::Interface::as_raw(self), westlongitude.param().abi()).ok() } pub unsafe fn OrbitalPosition(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3003,9 +3003,9 @@ impl IDVBSLocator2 { } pub unsafe fn SetWestPosition(&self, westlongitude: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWestPosition)(windows_core::Interface::as_raw(self), westlongitude.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWestPosition)(windows_core::Interface::as_raw(self), westlongitude.param().abi()).ok() } pub unsafe fn OrbitalPosition(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3109,9 +3109,9 @@ impl IDVBSTuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3119,9 +3119,9 @@ impl IDVBSTuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3133,9 +3133,9 @@ impl IDVBSTuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3167,9 +3167,9 @@ impl IDVBSTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3177,9 +3177,9 @@ impl IDVBSTuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -3189,9 +3189,9 @@ impl IDVBSTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -3239,9 +3239,9 @@ impl IDVBSTuningSpace { } pub unsafe fn SetInputRange(&self, inputrange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputRange)(windows_core::Interface::as_raw(self), inputrange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputRange)(windows_core::Interface::as_raw(self), inputrange.param().abi()).ok() } pub unsafe fn SpectralInversion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3374,9 +3374,9 @@ impl IDVBTLocator { } pub unsafe fn SetOtherFrequencyInUse(&self, otherfrequencyinuseval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherFrequencyInUse)(windows_core::Interface::as_raw(self), otherfrequencyinuseval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOtherFrequencyInUse)(windows_core::Interface::as_raw(self), otherfrequencyinuseval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3506,9 +3506,9 @@ impl IDVBTLocator2 { } pub unsafe fn SetOtherFrequencyInUse(&self, otherfrequencyinuseval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOtherFrequencyInUse)(windows_core::Interface::as_raw(self), otherfrequencyinuseval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOtherFrequencyInUse)(windows_core::Interface::as_raw(self), otherfrequencyinuseval.param().abi()).ok() } pub unsafe fn PhysicalLayerPipeId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3554,9 +3554,9 @@ impl IDVBTuneRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLocator(&self, locator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.param().abi()).ok() } pub unsafe fn ONID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3603,9 +3603,9 @@ impl IDVBTuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3613,9 +3613,9 @@ impl IDVBTuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3627,9 +3627,9 @@ impl IDVBTuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3661,9 +3661,9 @@ impl IDVBTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3671,9 +3671,9 @@ impl IDVBTuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -3683,9 +3683,9 @@ impl IDVBTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -3719,9 +3719,9 @@ impl IDVBTuningSpace2 { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3729,9 +3729,9 @@ impl IDVBTuningSpace2 { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3743,9 +3743,9 @@ impl IDVBTuningSpace2 { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3777,9 +3777,9 @@ impl IDVBTuningSpace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3787,9 +3787,9 @@ impl IDVBTuningSpace2 { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -3799,9 +3799,9 @@ impl IDVBTuningSpace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -3835,10 +3835,10 @@ windows_core::imp::interface_hierarchy!(IDVB_BAT, windows_core::IUnknown); impl IDVB_BAT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3883,9 +3883,9 @@ impl IDVB_BAT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3893,9 +3893,9 @@ impl IDVB_BAT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -3926,9 +3926,9 @@ windows_core::imp::interface_hierarchy!(IDVB_DIT, windows_core::IUnknown); impl IDVB_DIT { pub unsafe fn Initialize(&self, psectionlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi()).ok() } pub unsafe fn GetTransitionFlag(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3946,10 +3946,10 @@ windows_core::imp::interface_hierarchy!(IDVB_EIT, windows_core::IUnknown); impl IDVB_EIT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4012,9 +4012,9 @@ impl IDVB_EIT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4022,9 +4022,9 @@ impl IDVB_EIT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -4064,10 +4064,10 @@ windows_core::imp::interface_hierarchy!(IDVB_EIT2, windows_core::IUnknown, IDVB_ impl IDVB_EIT2 { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4130,9 +4130,9 @@ impl IDVB_EIT2 { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4140,9 +4140,9 @@ impl IDVB_EIT2 { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -4170,10 +4170,10 @@ windows_core::imp::interface_hierarchy!(IDVB_NIT, windows_core::IUnknown); impl IDVB_NIT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4219,9 +4219,9 @@ impl IDVB_NIT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4229,9 +4229,9 @@ impl IDVB_NIT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -4267,9 +4267,9 @@ windows_core::imp::interface_hierarchy!(IDVB_RST, windows_core::IUnknown); impl IDVB_RST { pub unsafe fn Initialize(&self, psectionlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi()).ok() } pub unsafe fn GetCountOfRecords(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4312,10 +4312,10 @@ windows_core::imp::interface_hierarchy!(IDVB_SDT, windows_core::IUnknown); impl IDVB_SDT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4366,9 +4366,9 @@ impl IDVB_SDT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4376,9 +4376,9 @@ impl IDVB_SDT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -4415,10 +4415,10 @@ windows_core::imp::interface_hierarchy!(IDVB_SIT, windows_core::IUnknown); impl IDVB_SIT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4460,9 +4460,9 @@ impl IDVB_SIT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self, dwtimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4470,9 +4470,9 @@ impl IDVB_SIT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -4502,9 +4502,9 @@ windows_core::imp::interface_hierarchy!(IDVB_ST, windows_core::IUnknown); impl IDVB_ST { pub unsafe fn Initialize(&self, psectionlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi()).ok() } pub unsafe fn GetDataLength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4527,9 +4527,9 @@ windows_core::imp::interface_hierarchy!(IDVB_TDT, windows_core::IUnknown); impl IDVB_TDT { pub unsafe fn Initialize(&self, psectionlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi()).ok() } pub unsafe fn GetUTCTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4547,9 +4547,9 @@ windows_core::imp::interface_hierarchy!(IDVB_TOT, windows_core::IUnknown); impl IDVB_TOT { pub unsafe fn Initialize(&self, psectionlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi()).ok() } pub unsafe fn GetUTCTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4692,9 +4692,9 @@ impl IDigitalCableTuneRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLocator(&self, locator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetLocator)(windows_core::Interface::as_raw(self), locator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetLocator)(windows_core::Interface::as_raw(self), locator.param().abi()).ok() } pub unsafe fn Channel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4746,9 +4746,9 @@ impl IDigitalCableTuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4756,9 +4756,9 @@ impl IDigitalCableTuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4770,9 +4770,9 @@ impl IDigitalCableTuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4804,9 +4804,9 @@ impl IDigitalCableTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4814,9 +4814,9 @@ impl IDigitalCableTuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -4826,9 +4826,9 @@ impl IDigitalCableTuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -5273,9 +5273,9 @@ impl IDvbExtendedEventDescriptor { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConcatenatedItemW)(windows_core::Interface::as_raw(self), pfollowingdescriptor.into_param().abi(), 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__ = std::mem::zeroed(); @@ -5283,10 +5283,10 @@ impl IDvbExtendedEventDescriptor { } pub unsafe fn GetConcatenatedTextW(&self, followingdescriptor: P0, convmode: DVB_STRCONV_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConcatenatedTextW)(windows_core::Interface::as_raw(self), followingdescriptor.into_param().abi(), convmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConcatenatedTextW)(windows_core::Interface::as_raw(self), followingdescriptor.param().abi(), convmode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRecordItemRawBytes(&self, brecordindex: u8, ppbrawitem: *mut *mut u8, pbitemlength: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRecordItemRawBytes)(windows_core::Interface::as_raw(self), brecordindex, ppbrawitem, pbitemlength).ok() @@ -5931,9 +5931,9 @@ windows_core::imp::interface_hierarchy!(IDvbSiParser, windows_core::IUnknown); impl IDvbSiParser { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.param().abi()).ok() } pub unsafe fn GetPAT(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6016,9 +6016,9 @@ windows_core::imp::interface_hierarchy!(IDvbSiParser2, windows_core::IUnknown, I impl IDvbSiParser2 { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.param().abi()).ok() } pub unsafe fn GetPAT(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6346,12 +6346,12 @@ windows_core::imp::interface_hierarchy!(IESEventFactory, windows_core::IUnknown) impl IESEventFactory { pub unsafe fn CreateESEvent(&self, pserviceprovider: P0, dweventid: u32, guideventtype: windows_core::GUID, peventdata: &[u8], bstrbaseurl: P1, pinitcontext: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateESEvent)(windows_core::Interface::as_raw(self), pserviceprovider.into_param().abi(), dweventid, core::mem::transmute(guideventtype), peventdata.len().try_into().unwrap(), core::mem::transmute(peventdata.as_ptr()), bstrbaseurl.into_param().abi(), pinitcontext.into_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()), bstrbaseurl.param().abi(), pinitcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -6364,9 +6364,9 @@ windows_core::imp::interface_hierarchy!(IESEventService, windows_core::IUnknown) impl IESEventService { pub unsafe fn FireESEvent(&self, pesevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireESEvent)(windows_core::Interface::as_raw(self), pesevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FireESEvent)(windows_core::Interface::as_raw(self), pesevent.param().abi()).ok() } } #[repr(C)] @@ -6379,33 +6379,33 @@ windows_core::imp::interface_hierarchy!(IESEventServiceConfiguration, windows_co impl IESEventServiceConfiguration { pub unsafe fn SetParent(&self, peventservice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParent)(windows_core::Interface::as_raw(self), peventservice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParent)(windows_core::Interface::as_raw(self), peventservice.param().abi()).ok() } pub unsafe fn RemoveParent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveParent)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetOwner(&self, pesevents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), pesevents.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), pesevents.param().abi()).ok() } pub unsafe fn RemoveOwner(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveOwner)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetGraph(&self, pgraph: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGraph)(windows_core::Interface::as_raw(self), pgraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGraph)(windows_core::Interface::as_raw(self), pgraph.param().abi()).ok() } pub unsafe fn RemoveGraph(&self, pgraph: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveGraph)(windows_core::Interface::as_raw(self), pgraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveGraph)(windows_core::Interface::as_raw(self), pgraph.param().abi()).ok() } } #[repr(C)] @@ -6771,9 +6771,9 @@ impl IETFilter { } pub unsafe fn SetRecordingOn(&self, frecstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecordingOn)(windows_core::Interface::as_raw(self), frecstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecordingOn)(windows_core::Interface::as_raw(self), frecstate.param().abi()).ok() } } #[repr(C)] @@ -7027,9 +7027,9 @@ impl IEvalRat { } pub unsafe fn SetBlockUnRated(&self, fblockunratedshows: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlockUnRated)(windows_core::Interface::as_raw(self), fblockunratedshows.param().abi()).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), ensystem1, enenlevel1, lbfenattr1, ensystem2, enenlevel2, lbfenattr2, pensystem, penenlevel, plbfenattr).ok() @@ -7131,10 +7131,10 @@ impl IGuideData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetServiceProperties(&self, ptunerequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceProperties)(windows_core::Interface::as_raw(self), ptunerequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceProperties)(windows_core::Interface::as_raw(self), ptunerequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetGuideProgramIDs(&self) -> windows_core::Result { @@ -7143,10 +7143,10 @@ impl IGuideData { } pub unsafe fn GetProgramProperties(&self, varprogramdescriptionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProgramProperties)(windows_core::Interface::as_raw(self), varprogramdescriptionid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProgramProperties)(windows_core::Interface::as_raw(self), varprogramdescriptionid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetScheduleEntryIDs(&self) -> windows_core::Result { @@ -7155,10 +7155,10 @@ impl IGuideData { } pub unsafe fn GetScheduleEntryProperties(&self, varscheduleentrydescriptionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScheduleEntryProperties)(windows_core::Interface::as_raw(self), varscheduleentrydescriptionid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScheduleEntryProperties)(windows_core::Interface::as_raw(self), varscheduleentrydescriptionid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7188,39 +7188,39 @@ impl IGuideDataEvent { } pub unsafe fn ProgramChanged(&self, varprogramdescriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProgramChanged)(windows_core::Interface::as_raw(self), varprogramdescriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProgramChanged)(windows_core::Interface::as_raw(self), varprogramdescriptionid.param().abi()).ok() } pub unsafe fn ServiceChanged(&self, varservicedescriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ServiceChanged)(windows_core::Interface::as_raw(self), varservicedescriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ServiceChanged)(windows_core::Interface::as_raw(self), varservicedescriptionid.param().abi()).ok() } pub unsafe fn ScheduleEntryChanged(&self, varscheduleentrydescriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScheduleEntryChanged)(windows_core::Interface::as_raw(self), varscheduleentrydescriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScheduleEntryChanged)(windows_core::Interface::as_raw(self), varscheduleentrydescriptionid.param().abi()).ok() } pub unsafe fn ProgramDeleted(&self, varprogramdescriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProgramDeleted)(windows_core::Interface::as_raw(self), varprogramdescriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProgramDeleted)(windows_core::Interface::as_raw(self), varprogramdescriptionid.param().abi()).ok() } pub unsafe fn ServiceDeleted(&self, varservicedescriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ServiceDeleted)(windows_core::Interface::as_raw(self), varservicedescriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ServiceDeleted)(windows_core::Interface::as_raw(self), varservicedescriptionid.param().abi()).ok() } pub unsafe fn ScheduleDeleted(&self, varscheduleentrydescriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScheduleDeleted)(windows_core::Interface::as_raw(self), varscheduleentrydescriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScheduleDeleted)(windows_core::Interface::as_raw(self), varscheduleentrydescriptionid.param().abi()).ok() } } #[repr(C)] @@ -7239,9 +7239,9 @@ windows_core::imp::interface_hierarchy!(IGuideDataLoader, windows_core::IUnknown impl IGuideDataLoader { pub unsafe fn Init(&self, pguidestore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pguidestore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pguidestore.param().abi()).ok() } pub unsafe fn Terminate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self)).ok() @@ -7349,9 +7349,9 @@ impl IISDBSLocator { } pub unsafe fn SetWestPosition(&self, westlongitude: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWestPosition)(windows_core::Interface::as_raw(self), westlongitude.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWestPosition)(windows_core::Interface::as_raw(self), westlongitude.param().abi()).ok() } pub unsafe fn OrbitalPosition(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7385,10 +7385,10 @@ windows_core::imp::interface_hierarchy!(IISDB_BIT, windows_core::IUnknown); impl IISDB_BIT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7459,10 +7459,10 @@ windows_core::imp::interface_hierarchy!(IISDB_CDT, windows_core::IUnknown); impl IISDB_CDT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1, bsectionnumber: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi(), 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__ = std::mem::zeroed(); @@ -7529,10 +7529,10 @@ windows_core::imp::interface_hierarchy!(IISDB_EMM, windows_core::IUnknown); impl IISDB_EMM { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7550,9 +7550,9 @@ impl IISDB_EMM { } pub unsafe fn GetIndividualEmmMessage(&self, punknown: P0, pwlength: *mut u16, ppbmessage: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIndividualEmmMessage)(windows_core::Interface::as_raw(self), punknown.into_param().abi(), pwlength, ppbmessage).ok() + (windows_core::Interface::vtable(self).GetIndividualEmmMessage)(windows_core::Interface::as_raw(self), punknown.param().abi(), pwlength, ppbmessage).ok() } pub unsafe fn GetVersionHash(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7575,10 +7575,10 @@ windows_core::imp::interface_hierarchy!(IISDB_LDT, windows_core::IUnknown); impl IISDB_LDT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7640,10 +7640,10 @@ windows_core::imp::interface_hierarchy!(IISDB_NBIT, windows_core::IUnknown); impl IISDB_NBIT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7725,10 +7725,10 @@ windows_core::imp::interface_hierarchy!(IISDB_SDT, windows_core::IUnknown, IDVB_ impl IISDB_SDT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7779,9 +7779,9 @@ impl IISDB_SDT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7789,9 +7789,9 @@ impl IISDB_SDT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -7815,10 +7815,10 @@ windows_core::imp::interface_hierarchy!(IISDB_SDTT, windows_core::IUnknown); impl IISDB_SDTT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8633,9 +8633,9 @@ windows_core::imp::interface_hierarchy!(IIsdbSiParser2, windows_core::IUnknown, impl IIsdbSiParser2 { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), punkmpeg2data.param().abi()).ok() } pub unsafe fn GetPAT(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8847,9 +8847,9 @@ impl ILanguageComponentType { } pub unsafe fn SetMediaMajorType(&self, mediamajortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.param().abi()).ok() } pub unsafe fn _MediaMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8864,9 +8864,9 @@ impl ILanguageComponentType { } pub unsafe fn SetMediaSubType(&self, mediasubtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.param().abi()).ok() } pub unsafe fn _MediaSubType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8881,9 +8881,9 @@ impl ILanguageComponentType { } pub unsafe fn SetMediaFormatType(&self, mediaformattype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.param().abi()).ok() } pub unsafe fn _MediaFormatType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9019,9 +9019,9 @@ impl IMPEG2Component { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetType(&self, ct: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetType)(windows_core::Interface::as_raw(self), ct.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetType)(windows_core::Interface::as_raw(self), ct.param().abi()).ok() } pub unsafe fn DescLangID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9043,9 +9043,9 @@ impl IMPEG2Component { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -9104,9 +9104,9 @@ impl IMPEG2ComponentType { } pub unsafe fn SetMediaMajorType(&self, mediamajortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMediaMajorType)(windows_core::Interface::as_raw(self), mediamajortype.param().abi()).ok() } pub unsafe fn _MediaMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9121,9 +9121,9 @@ impl IMPEG2ComponentType { } pub unsafe fn SetMediaSubType(&self, mediasubtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMediaSubType)(windows_core::Interface::as_raw(self), mediasubtype.param().abi()).ok() } pub unsafe fn _MediaSubType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9138,9 +9138,9 @@ impl IMPEG2ComponentType { } pub unsafe fn SetMediaFormatType(&self, mediaformattype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMediaFormatType)(windows_core::Interface::as_raw(self), mediaformattype.param().abi()).ok() } pub unsafe fn _MediaFormatType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9214,9 +9214,9 @@ impl IMPEG2TuneRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLocator(&self, locator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocator)(windows_core::Interface::as_raw(self), locator.param().abi()).ok() } pub unsafe fn TSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9251,10 +9251,10 @@ impl IMPEG2TuneRequestFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTuneRequest(&self, tuningspace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTuneRequest)(windows_core::Interface::as_raw(self), tuningspace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTuneRequest)(windows_core::Interface::as_raw(self), tuningspace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -9278,9 +9278,9 @@ windows_core::imp::interface_hierarchy!(IMPEG2_TIF_CONTROL, windows_core::IUnkno impl IMPEG2_TIF_CONTROL { pub unsafe fn RegisterTIF(&self, punktif: P0, ppvregistrationcontext: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterTIF)(windows_core::Interface::as_raw(self), punktif.into_param().abi(), ppvregistrationcontext).ok() + (windows_core::Interface::vtable(self).RegisterTIF)(windows_core::Interface::as_raw(self), punktif.param().abi(), ppvregistrationcontext).ok() } pub unsafe fn UnregisterTIF(&self, pvregistrationcontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterTIF)(windows_core::Interface::as_raw(self), pvregistrationcontext).ok() @@ -9318,12 +9318,12 @@ impl IMSEventBinder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Bind(&self, peventobject: P0, eventname: P1, eventhandler: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), peventobject.into_param().abi(), eventname.into_param().abi(), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), peventobject.param().abi(), eventname.param().abi(), eventhandler.param().abi(), &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), cancelcookie).ok() @@ -9355,9 +9355,9 @@ impl IMSVidAnalogTuner { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9382,10 +9382,10 @@ impl IMSVidAnalogTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9402,9 +9402,9 @@ impl IMSVidAnalogTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTune(&self, ptr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTune)(windows_core::Interface::as_raw(self), ptr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTune)(windows_core::Interface::as_raw(self), ptr.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TuningSpace(&self) -> windows_core::Result { @@ -9414,9 +9414,9 @@ impl IMSVidAnalogTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuningSpace(&self, plts: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTuningSpace)(windows_core::Interface::as_raw(self), plts.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTuningSpace)(windows_core::Interface::as_raw(self), plts.param().abi()).ok() } pub unsafe fn Channel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9446,9 +9446,9 @@ impl IMSVidAnalogTuner { } pub unsafe fn SetSAP(&self, fsapon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSAP)(windows_core::Interface::as_raw(self), fsapon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSAP)(windows_core::Interface::as_raw(self), fsapon.param().abi()).ok() } pub unsafe fn ChannelAvailable(&self, nchannel: i32, signalstrength: *mut i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9485,9 +9485,9 @@ impl IMSVidAnalogTuner2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9512,10 +9512,10 @@ impl IMSVidAnalogTuner2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9532,9 +9532,9 @@ impl IMSVidAnalogTuner2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTune(&self, ptr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTune)(windows_core::Interface::as_raw(self), ptr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTune)(windows_core::Interface::as_raw(self), ptr.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TuningSpace(&self) -> windows_core::Result { @@ -9544,9 +9544,9 @@ impl IMSVidAnalogTuner2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuningSpace(&self, plts: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTuningSpace)(windows_core::Interface::as_raw(self), plts.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTuningSpace)(windows_core::Interface::as_raw(self), plts.param().abi()).ok() } pub unsafe fn Channel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9576,9 +9576,9 @@ impl IMSVidAnalogTuner2 { } pub unsafe fn SetSAP(&self, fsapon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSAP)(windows_core::Interface::as_raw(self), fsapon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSAP)(windows_core::Interface::as_raw(self), fsapon.param().abi()).ok() } pub unsafe fn ChannelAvailable(&self, nchannel: i32, signalstrength: *mut i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9614,9 +9614,9 @@ impl IMSVidAnalogTunerEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn TuneChanged(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TuneChanged)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.TuneChanged)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9640,9 +9640,9 @@ impl IMSVidAudioRenderer { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9667,10 +9667,10 @@ impl IMSVidAudioRenderer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetVolume(&self, lvol: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), lvol).ok() @@ -9714,23 +9714,23 @@ impl IMSVidAudioRendererDevices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, v: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pdb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.param().abi()).ok() } pub unsafe fn Remove(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9761,9 +9761,9 @@ impl IMSVidAudioRendererEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9780,9 +9780,9 @@ impl IMSVidAudioRendererEvent2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn AVDecAudioDualMono(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AVDecAudioDualMono)(windows_core::Interface::as_raw(self)).ok() @@ -9838,9 +9838,9 @@ impl IMSVidClosedCaptioning { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9865,10 +9865,10 @@ impl IMSVidClosedCaptioning { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Enable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9876,9 +9876,9 @@ impl IMSVidClosedCaptioning { } pub unsafe fn SetEnable(&self, on: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), on.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), on.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9904,9 +9904,9 @@ impl IMSVidClosedCaptioning2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9931,10 +9931,10 @@ impl IMSVidClosedCaptioning2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Enable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9942,9 +9942,9 @@ impl IMSVidClosedCaptioning2 { } pub unsafe fn SetEnable(&self, on: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnable)(windows_core::Interface::as_raw(self), on.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnable)(windows_core::Interface::as_raw(self), on.param().abi()).ok() } pub unsafe fn Service(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9977,9 +9977,9 @@ impl IMSVidClosedCaptioning3 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10004,10 +10004,10 @@ impl IMSVidClosedCaptioning3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Enable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10015,9 +10015,9 @@ impl IMSVidClosedCaptioning3 { } pub unsafe fn SetEnable(&self, on: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnable)(windows_core::Interface::as_raw(self), on.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnable)(windows_core::Interface::as_raw(self), on.param().abi()).ok() } pub unsafe fn Service(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10054,9 +10054,9 @@ impl IMSVidCompositionSegment { } pub unsafe fn SetInit(&self, pinit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInit)(windows_core::Interface::as_raw(self), pinit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetInit)(windows_core::Interface::as_raw(self), pinit.param().abi()).ok() } pub unsafe fn EnumFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10068,9 +10068,9 @@ impl IMSVidCompositionSegment { } pub unsafe fn SetContainer(&self, pctl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContainer)(windows_core::Interface::as_raw(self), pctl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContainer)(windows_core::Interface::as_raw(self), pctl.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10107,10 +10107,10 @@ impl IMSVidCompositionSegment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Compose(&self, upstream: P0, downstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Compose)(windows_core::Interface::as_raw(self), upstream.into_param().abi(), downstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Compose)(windows_core::Interface::as_raw(self), upstream.param().abi(), downstream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Up(&self) -> windows_core::Result { @@ -10152,9 +10152,9 @@ impl IMSVidCtl { } pub unsafe fn SetAutoSize(&self, vbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoSize)(windows_core::Interface::as_raw(self), vbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoSize)(windows_core::Interface::as_raw(self), vbool.param().abi()).ok() } pub unsafe fn BackColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10169,9 +10169,9 @@ impl IMSVidCtl { } pub unsafe fn SetEnabled(&self, vbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), vbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), vbool.param().abi()).ok() } pub unsafe fn TabStop(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10179,9 +10179,9 @@ impl IMSVidCtl { } pub unsafe fn SetTabStop(&self, vbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTabStop)(windows_core::Interface::as_raw(self), vbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTabStop)(windows_core::Interface::as_raw(self), vbool.param().abi()).ok() } pub unsafe fn Window(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10203,9 +10203,9 @@ impl IMSVidCtl { } pub unsafe fn SetMaintainAspectRatio(&self, newvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), newvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), newvalue.param().abi()).ok() } pub unsafe fn ColorKey(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10217,18 +10217,18 @@ impl IMSVidCtl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_InputsAvailable(&self, categoryguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_InputsAvailable)(windows_core::Interface::as_raw(self), categoryguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_InputsAvailable)(windows_core::Interface::as_raw(self), categoryguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_OutputsAvailable(&self, categoryguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_OutputsAvailable)(windows_core::Interface::as_raw(self), categoryguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_OutputsAvailable)(windows_core::Interface::as_raw(self), categoryguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get__InputsAvailable(&self, categoryguid: *const windows_core::GUID) -> windows_core::Result { @@ -10263,9 +10263,9 @@ impl IMSVidCtl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetInputActive(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputActive)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputActive)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OutputsActive(&self) -> windows_core::Result { @@ -10275,9 +10275,9 @@ impl IMSVidCtl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetOutputsActive(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputsActive)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputsActive)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn VideoRendererActive(&self) -> windows_core::Result { @@ -10287,9 +10287,9 @@ impl IMSVidCtl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetVideoRendererActive(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVideoRendererActive)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVideoRendererActive)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioRendererActive(&self) -> windows_core::Result { @@ -10299,9 +10299,9 @@ impl IMSVidCtl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAudioRendererActive(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioRendererActive)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioRendererActive)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FeaturesActive(&self) -> windows_core::Result { @@ -10311,9 +10311,9 @@ impl IMSVidCtl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFeaturesActive(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFeaturesActive)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFeaturesActive)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10462,9 +10462,9 @@ impl IMSVidDataServices { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10489,10 +10489,10 @@ impl IMSVidDataServices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10509,9 +10509,9 @@ impl IMSVidDataServicesEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10535,9 +10535,9 @@ impl IMSVidDevice { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10562,10 +10562,10 @@ impl IMSVidDevice { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10607,9 +10607,9 @@ impl IMSVidDeviceEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, 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")] @@ -10637,9 +10637,9 @@ impl IMSVidEVR { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10664,10 +10664,10 @@ impl IMSVidEVR { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10675,9 +10675,9 @@ impl IMSVidEVR { } pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.param().abi()).ok() } pub unsafe fn _CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10692,9 +10692,9 @@ impl IMSVidEVR { } pub unsafe fn Set_CustomCompositor(&self, compositor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MixerBitmap(&self) -> windows_core::Result { @@ -10708,9 +10708,9 @@ impl IMSVidEVR { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMixerBitmap(&self, mixerpicturedisp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn Set_MixerBitmap(&self, mixerpicture: *const super::VMRALPHABITMAP) -> windows_core::Result<()> { @@ -10724,9 +10724,9 @@ impl IMSVidEVR { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMixerBitmapPositionRect(&self, rdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.param().abi()).ok() } pub unsafe fn MixerBitmapOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10738,10 +10738,10 @@ impl IMSVidEVR { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetupMixerBitmap(&self, mixerpicturedisp: P0, opacity: i32, rdest: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetupMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi(), opacity, rdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -10780,9 +10780,9 @@ impl IMSVidEVR { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetClippedSourceRect(&self, prect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.param().abi()).ok() } pub unsafe fn UsingOverlay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10790,9 +10790,9 @@ impl IMSVidEVR { } pub unsafe fn SetUsingOverlay(&self, useoverlayval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Capture(&self) -> windows_core::Result { @@ -10809,9 +10809,9 @@ impl IMSVidEVR { } pub unsafe fn SetDecimateInput(&self, pdeci: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.param().abi()).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn Presenter(&self) -> windows_core::Result { @@ -10821,15 +10821,15 @@ impl IMSVidEVR { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetPresenter(&self, pallocpresent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPresenter)(windows_core::Interface::as_raw(self), pallocpresent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPresenter)(windows_core::Interface::as_raw(self), pallocpresent.param().abi()).ok() } pub unsafe fn SetSuppressEffects(&self, bsuppress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress.param().abi()).ok() } pub unsafe fn SuppressEffects(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10860,9 +10860,9 @@ impl IMSVidEVREvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn OnUserEvent(&self, leventcode: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnUserEvent)(windows_core::Interface::as_raw(self), leventcode).ok() @@ -10890,9 +10890,9 @@ impl IMSVidEncoder { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10917,10 +10917,10 @@ impl IMSVidEncoder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn VideoEncoderInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10954,9 +10954,9 @@ impl IMSVidFeature { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10981,10 +10981,10 @@ impl IMSVidFeature { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11001,9 +11001,9 @@ impl IMSVidFeatureEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11029,23 +11029,23 @@ impl IMSVidFeatures { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, v: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pdb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.param().abi()).ok() } pub unsafe fn Remove(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11083,9 +11083,9 @@ impl IMSVidFilePlayback { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11110,10 +11110,10 @@ impl IMSVidFilePlayback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11128,9 +11128,9 @@ impl IMSVidFilePlayback { } pub unsafe fn SetEnableResetOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Run)(windows_core::Interface::as_raw(self)).ok() @@ -11143,10 +11143,10 @@ impl IMSVidFilePlayback { } pub unsafe fn get_CanStep(&self, fbackwards: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -11182,9 +11182,9 @@ impl IMSVidFilePlayback { } pub unsafe fn SetFileName(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11210,9 +11210,9 @@ impl IMSVidFilePlayback2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11237,10 +11237,10 @@ impl IMSVidFilePlayback2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11255,9 +11255,9 @@ impl IMSVidFilePlayback2 { } pub unsafe fn SetEnableResetOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Run)(windows_core::Interface::as_raw(self)).ok() @@ -11270,10 +11270,10 @@ impl IMSVidFilePlayback2 { } pub unsafe fn get_CanStep(&self, fbackwards: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -11309,15 +11309,15 @@ impl IMSVidFilePlayback2 { } pub unsafe fn SetFileName(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn Set_SourceFilter(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set_SourceFilter)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Set_SourceFilter)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn Set__SourceFilter(&self, filename: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Set__SourceFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(filename)).ok() @@ -11339,9 +11339,9 @@ impl IMSVidFilePlaybackEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOfMedia(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11365,9 +11365,9 @@ impl IMSVidGenericSink { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11392,16 +11392,16 @@ impl IMSVidGenericSink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetSinkFilter(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSinkFilter)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSinkFilter)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn SinkStreams(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11435,9 +11435,9 @@ impl IMSVidGenericSink2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11462,16 +11462,16 @@ impl IMSVidGenericSink2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetSinkFilter(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSinkFilter)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSinkFilter)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn SinkStreams(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11482,9 +11482,9 @@ impl IMSVidGenericSink2 { } pub unsafe fn AddFilter(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn ResetFilterList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetFilterList)(windows_core::Interface::as_raw(self)).ok() @@ -11514,9 +11514,9 @@ impl IMSVidGraphSegment { } pub unsafe fn SetInit(&self, pinit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInit)(windows_core::Interface::as_raw(self), pinit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInit)(windows_core::Interface::as_raw(self), pinit.param().abi()).ok() } pub unsafe fn EnumFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11528,9 +11528,9 @@ impl IMSVidGraphSegment { } pub unsafe fn SetContainer(&self, pctl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainer)(windows_core::Interface::as_raw(self), pctl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainer)(windows_core::Interface::as_raw(self), pctl.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11626,9 +11626,9 @@ impl IMSVidGraphSegmentContainer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Decompose(&self, psegment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decompose)(windows_core::Interface::as_raw(self), psegment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Decompose)(windows_core::Interface::as_raw(self), psegment.param().abi()).ok() } pub unsafe fn IsWindowless(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsWindowless)(windows_core::Interface::as_raw(self)).ok() @@ -11720,9 +11720,9 @@ impl IMSVidInputDevice { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11747,10 +11747,10 @@ impl IMSVidInputDevice { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11796,23 +11796,23 @@ impl IMSVidInputDevices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, v: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pdb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.param().abi()).ok() } pub unsafe fn Remove(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11850,9 +11850,9 @@ impl IMSVidOutputDevice { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11877,10 +11877,10 @@ impl IMSVidOutputDevice { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11897,9 +11897,9 @@ impl IMSVidOutputDeviceEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11925,23 +11925,23 @@ impl IMSVidOutputDevices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, v: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pdb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.param().abi()).ok() } pub unsafe fn Remove(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11979,9 +11979,9 @@ impl IMSVidPlayback { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12006,10 +12006,10 @@ impl IMSVidPlayback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12024,9 +12024,9 @@ impl IMSVidPlayback { } pub unsafe fn SetEnableResetOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self)).ok() @@ -12039,10 +12039,10 @@ impl IMSVidPlayback { } pub unsafe fn get_CanStep(&self, fbackwards: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.param().abi(), &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), lstep).ok() @@ -12101,9 +12101,9 @@ impl IMSVidPlaybackEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOfMedia(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndOfMedia)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndOfMedia)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12155,16 +12155,16 @@ impl IMSVidRect { } pub unsafe fn SetHWnd(&self, hwndval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), hwndval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHWnd)(windows_core::Interface::as_raw(self), hwndval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRect(&self, rectval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), rectval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRect)(windows_core::Interface::as_raw(self), rectval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12252,9 +12252,9 @@ impl IMSVidStreamBufferSink { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12279,26 +12279,26 @@ impl IMSVidStreamBufferSink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ContentRecorder(&self, pszfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ContentRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ContentRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ReferenceRecorder(&self, pszfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ReferenceRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ReferenceRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SinkName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12306,9 +12306,9 @@ impl IMSVidStreamBufferSink { } pub unsafe fn SetSinkName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSinkName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSinkName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn NameSetLock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NameSetLock)(windows_core::Interface::as_raw(self)).ok() @@ -12351,9 +12351,9 @@ impl IMSVidStreamBufferSink2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12378,26 +12378,26 @@ impl IMSVidStreamBufferSink2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ContentRecorder(&self, pszfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_ContentRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_ContentRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ReferenceRecorder(&self, pszfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_ReferenceRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_ReferenceRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SinkName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12405,9 +12405,9 @@ impl IMSVidStreamBufferSink2 { } pub unsafe fn SetSinkName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSinkName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSinkName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn NameSetLock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.NameSetLock)(windows_core::Interface::as_raw(self)).ok() @@ -12442,9 +12442,9 @@ impl IMSVidStreamBufferSink3 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12469,26 +12469,26 @@ impl IMSVidStreamBufferSink3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ContentRecorder(&self, pszfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.get_ContentRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.get_ContentRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ReferenceRecorder(&self, pszfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.get_ReferenceRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.get_ReferenceRecorder)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SinkName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12496,9 +12496,9 @@ impl IMSVidStreamBufferSink3 { } pub unsafe fn SetSinkName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSinkName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSinkName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn NameSetLock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.NameSetLock)(windows_core::Interface::as_raw(self)).ok() @@ -12532,9 +12532,9 @@ impl IMSVidStreamBufferSink3 { } pub unsafe fn SetAudioAnalysisFilter(&self, szclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioAnalysisFilter)(windows_core::Interface::as_raw(self), szclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioAnalysisFilter)(windows_core::Interface::as_raw(self), szclsid.param().abi()).ok() } pub unsafe fn AudioAnalysisFilter(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12549,9 +12549,9 @@ impl IMSVidStreamBufferSink3 { } pub unsafe fn SetVideoAnalysisFilter(&self, szclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVideoAnalysisFilter)(windows_core::Interface::as_raw(self), szclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVideoAnalysisFilter)(windows_core::Interface::as_raw(self), szclsid.param().abi()).ok() } pub unsafe fn VideoAnalysisFilter(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12566,9 +12566,9 @@ impl IMSVidStreamBufferSink3 { } pub unsafe fn SetDataAnalysisFilter(&self, szclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDataAnalysisFilter)(windows_core::Interface::as_raw(self), szclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDataAnalysisFilter)(windows_core::Interface::as_raw(self), szclsid.param().abi()).ok() } pub unsafe fn DataAnalysisFilter(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12618,9 +12618,9 @@ impl IMSVidStreamBufferSinkEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn CertificateFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CertificateFailure)(windows_core::Interface::as_raw(self)).ok() @@ -12649,9 +12649,9 @@ impl IMSVidStreamBufferSinkEvent2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn CertificateFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CertificateFailure)(windows_core::Interface::as_raw(self)).ok() @@ -12685,9 +12685,9 @@ impl IMSVidStreamBufferSinkEvent3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn CertificateFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CertificateFailure)(windows_core::Interface::as_raw(self)).ok() @@ -12723,9 +12723,9 @@ impl IMSVidStreamBufferSinkEvent4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn CertificateFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.CertificateFailure)(windows_core::Interface::as_raw(self)).ok() @@ -12771,9 +12771,9 @@ impl IMSVidStreamBufferSource { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12798,10 +12798,10 @@ impl IMSVidStreamBufferSource { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12816,9 +12816,9 @@ impl IMSVidStreamBufferSource { } pub unsafe fn SetEnableResetOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Run)(windows_core::Interface::as_raw(self)).ok() @@ -12831,10 +12831,10 @@ impl IMSVidStreamBufferSource { } pub unsafe fn get_CanStep(&self, fbackwards: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -12870,9 +12870,9 @@ impl IMSVidStreamBufferSource { } pub unsafe fn SetFileName(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn Start(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12890,9 +12890,9 @@ impl IMSVidStreamBufferSource { } pub unsafe fn SetBlockUnrated(&self, bblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlockUnrated)(windows_core::Interface::as_raw(self), bblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlockUnrated)(windows_core::Interface::as_raw(self), bblock.param().abi()).ok() } pub unsafe fn SetUnratedDelay(&self, dwdelay: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetUnratedDelay)(windows_core::Interface::as_raw(self), dwdelay).ok() @@ -12930,9 +12930,9 @@ impl IMSVidStreamBufferSource2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12957,10 +12957,10 @@ impl IMSVidStreamBufferSource2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12975,9 +12975,9 @@ impl IMSVidStreamBufferSource2 { } pub unsafe fn SetEnableResetOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Run)(windows_core::Interface::as_raw(self)).ok() @@ -12990,10 +12990,10 @@ impl IMSVidStreamBufferSource2 { } pub unsafe fn get_CanStep(&self, fbackwards: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -13029,9 +13029,9 @@ impl IMSVidStreamBufferSource2 { } pub unsafe fn SetFileName(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFileName)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFileName)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn Start(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13049,9 +13049,9 @@ impl IMSVidStreamBufferSource2 { } pub unsafe fn SetBlockUnrated(&self, bblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBlockUnrated)(windows_core::Interface::as_raw(self), bblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBlockUnrated)(windows_core::Interface::as_raw(self), bblock.param().abi()).ok() } pub unsafe fn SetUnratedDelay(&self, dwdelay: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetUnratedDelay)(windows_core::Interface::as_raw(self), dwdelay).ok() @@ -13099,9 +13099,9 @@ impl IMSVidStreamBufferSourceEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOfMedia(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } pub unsafe fn CertificateFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CertificateFailure)(windows_core::Interface::as_raw(self)).ok() @@ -13154,9 +13154,9 @@ impl IMSVidStreamBufferSourceEvent2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOfMedia(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } pub unsafe fn CertificateFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CertificateFailure)(windows_core::Interface::as_raw(self)).ok() @@ -13204,9 +13204,9 @@ impl IMSVidStreamBufferSourceEvent3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOfMedia(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } pub unsafe fn CertificateFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CertificateFailure)(windows_core::Interface::as_raw(self)).ok() @@ -13240,15 +13240,15 @@ impl IMSVidStreamBufferSourceEvent3 { } pub unsafe fn BroadcastEvent(&self, guid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BroadcastEvent)(windows_core::Interface::as_raw(self), guid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BroadcastEvent)(windows_core::Interface::as_raw(self), guid.param().abi()).ok() } pub unsafe fn BroadcastEventEx(&self, guid: P0, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), guid.into_param().abi(), param1, param2, param3, param4).ok() + (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), guid.param().abi(), 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() @@ -13279,9 +13279,9 @@ impl IMSVidStreamBufferV2SourceEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOfMedia(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } pub unsafe fn RatingsChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RatingsChanged)(windows_core::Interface::as_raw(self)).ok() @@ -13303,15 +13303,15 @@ impl IMSVidStreamBufferV2SourceEvent { } pub unsafe fn BroadcastEvent(&self, guid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BroadcastEvent)(windows_core::Interface::as_raw(self), guid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BroadcastEvent)(windows_core::Interface::as_raw(self), guid.param().abi()).ok() } pub unsafe fn BroadcastEventEx(&self, guid: P0, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), guid.into_param().abi(), param1, param2, param3, param4).ok() + (windows_core::Interface::vtable(self).BroadcastEventEx)(windows_core::Interface::as_raw(self), guid.param().abi(), 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() @@ -13347,9 +13347,9 @@ impl IMSVidTuner { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13374,10 +13374,10 @@ impl IMSVidTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13394,9 +13394,9 @@ impl IMSVidTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTune(&self, ptr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTune)(windows_core::Interface::as_raw(self), ptr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTune)(windows_core::Interface::as_raw(self), ptr.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TuningSpace(&self) -> windows_core::Result { @@ -13406,9 +13406,9 @@ impl IMSVidTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuningSpace(&self, plts: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTuningSpace)(windows_core::Interface::as_raw(self), plts.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTuningSpace)(windows_core::Interface::as_raw(self), plts.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13441,9 +13441,9 @@ impl IMSVidTunerEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn TuneChanged(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TuneChanged)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TuneChanged)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13471,9 +13471,9 @@ impl IMSVidVMR9 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13498,10 +13498,10 @@ impl IMSVidVMR9 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13509,9 +13509,9 @@ impl IMSVidVMR9 { } pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.param().abi()).ok() } pub unsafe fn _CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13526,9 +13526,9 @@ impl IMSVidVMR9 { } pub unsafe fn Set_CustomCompositor(&self, compositor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MixerBitmap(&self) -> windows_core::Result { @@ -13542,9 +13542,9 @@ impl IMSVidVMR9 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMixerBitmap(&self, mixerpicturedisp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn Set_MixerBitmap(&self, mixerpicture: *const super::VMRALPHABITMAP) -> windows_core::Result<()> { @@ -13558,9 +13558,9 @@ impl IMSVidVMR9 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMixerBitmapPositionRect(&self, rdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.param().abi()).ok() } pub unsafe fn MixerBitmapOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13572,10 +13572,10 @@ impl IMSVidVMR9 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetupMixerBitmap(&self, mixerpicturedisp: P0, opacity: i32, rdest: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetupMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi(), opacity, rdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -13614,9 +13614,9 @@ impl IMSVidVMR9 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetClippedSourceRect(&self, prect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.param().abi()).ok() } pub unsafe fn UsingOverlay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13624,9 +13624,9 @@ impl IMSVidVMR9 { } pub unsafe fn SetUsingOverlay(&self, useoverlayval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Capture(&self) -> windows_core::Result { @@ -13643,9 +13643,9 @@ impl IMSVidVMR9 { } pub unsafe fn SetDecimateInput(&self, pdeci: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.param().abi()).ok() } pub unsafe fn Allocator_ID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13653,15 +13653,15 @@ impl IMSVidVMR9 { } pub unsafe fn SetAllocator(&self, allocpresent: P0, id: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), allocpresent.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress.param().abi()).ok() } pub unsafe fn SuppressEffects(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13699,9 +13699,9 @@ impl IMSVidVRGraphSegment { } pub unsafe fn SetInit(&self, pinit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInit)(windows_core::Interface::as_raw(self), pinit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetInit)(windows_core::Interface::as_raw(self), pinit.param().abi()).ok() } pub unsafe fn EnumFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13713,9 +13713,9 @@ impl IMSVidVRGraphSegment { } pub unsafe fn SetContainer(&self, pctl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContainer)(windows_core::Interface::as_raw(self), pctl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContainer)(windows_core::Interface::as_raw(self), pctl.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13754,9 +13754,9 @@ impl IMSVidVRGraphSegment { } pub unsafe fn SetOwner(&self, window: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), window.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), window.param().abi()).ok() } pub unsafe fn Owner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13768,9 +13768,9 @@ impl IMSVidVRGraphSegment { } pub unsafe fn SetUseOverlay(&self, useoverlayval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseOverlay)(windows_core::Interface::as_raw(self), useoverlayval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseOverlay)(windows_core::Interface::as_raw(self), useoverlayval.param().abi()).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13778,9 +13778,9 @@ impl IMSVidVRGraphSegment { } pub unsafe fn SetVisible(&self, visible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible.param().abi()).ok() } pub unsafe fn ColorKey(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13819,9 +13819,9 @@ impl IMSVidVRGraphSegment { } pub unsafe fn SetMaintainAspectRatio(&self, fmaintain: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), fmaintain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMaintainAspectRatio)(windows_core::Interface::as_raw(self), fmaintain.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -13832,9 +13832,9 @@ impl IMSVidVRGraphSegment { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn RePaint(&self, hdc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RePaint)(windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RePaint)(windows_core::Interface::as_raw(self), hdc.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13882,9 +13882,9 @@ impl IMSVidVideoInputDevice { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13909,10 +13909,10 @@ impl IMSVidVideoInputDevice { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13943,9 +13943,9 @@ impl IMSVidVideoRenderer { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13970,10 +13970,10 @@ impl IMSVidVideoRenderer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13981,9 +13981,9 @@ impl IMSVidVideoRenderer { } pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.param().abi()).ok() } pub unsafe fn _CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13998,9 +13998,9 @@ impl IMSVidVideoRenderer { } pub unsafe fn Set_CustomCompositor(&self, compositor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MixerBitmap(&self) -> windows_core::Result { @@ -14014,9 +14014,9 @@ impl IMSVidVideoRenderer { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMixerBitmap(&self, mixerpicturedisp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn Set_MixerBitmap(&self, mixerpicture: *const super::VMRALPHABITMAP) -> windows_core::Result<()> { @@ -14030,9 +14030,9 @@ impl IMSVidVideoRenderer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMixerBitmapPositionRect(&self, rdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.param().abi()).ok() } pub unsafe fn MixerBitmapOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14044,10 +14044,10 @@ impl IMSVidVideoRenderer { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetupMixerBitmap(&self, mixerpicturedisp: P0, opacity: i32, rdest: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetupMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi(), opacity, rdest.into_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__ = std::mem::zeroed(); @@ -14086,9 +14086,9 @@ impl IMSVidVideoRenderer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetClippedSourceRect(&self, prect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.param().abi()).ok() } pub unsafe fn UsingOverlay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14096,9 +14096,9 @@ impl IMSVidVideoRenderer { } pub unsafe fn SetUsingOverlay(&self, useoverlayval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Capture(&self) -> windows_core::Result { @@ -14115,9 +14115,9 @@ impl IMSVidVideoRenderer { } pub unsafe fn SetDecimateInput(&self, pdeci: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14207,9 +14207,9 @@ impl IMSVidVideoRenderer2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14234,10 +14234,10 @@ impl IMSVidVideoRenderer2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14245,9 +14245,9 @@ impl IMSVidVideoRenderer2 { } pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCustomCompositorClass)(windows_core::Interface::as_raw(self), compositorclsid.param().abi()).ok() } pub unsafe fn _CustomCompositorClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14262,9 +14262,9 @@ impl IMSVidVideoRenderer2 { } pub unsafe fn Set_CustomCompositor(&self, compositor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Set_CustomCompositor)(windows_core::Interface::as_raw(self), compositor.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MixerBitmap(&self) -> windows_core::Result { @@ -14278,9 +14278,9 @@ impl IMSVidVideoRenderer2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMixerBitmap(&self, mixerpicturedisp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn Set_MixerBitmap(&self, mixerpicture: *const super::VMRALPHABITMAP) -> windows_core::Result<()> { @@ -14294,9 +14294,9 @@ impl IMSVidVideoRenderer2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMixerBitmapPositionRect(&self, rdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMixerBitmapPositionRect)(windows_core::Interface::as_raw(self), rdest.param().abi()).ok() } pub unsafe fn MixerBitmapOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14308,10 +14308,10 @@ impl IMSVidVideoRenderer2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetupMixerBitmap(&self, mixerpicturedisp: P0, opacity: i32, rdest: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetupMixerBitmap)(windows_core::Interface::as_raw(self), mixerpicturedisp.into_param().abi(), opacity, rdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -14350,9 +14350,9 @@ impl IMSVidVideoRenderer2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetClippedSourceRect(&self, prect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClippedSourceRect)(windows_core::Interface::as_raw(self), prect.param().abi()).ok() } pub unsafe fn UsingOverlay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14360,9 +14360,9 @@ impl IMSVidVideoRenderer2 { } pub unsafe fn SetUsingOverlay(&self, useoverlayval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUsingOverlay)(windows_core::Interface::as_raw(self), useoverlayval.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Capture(&self) -> windows_core::Result { @@ -14379,9 +14379,9 @@ impl IMSVidVideoRenderer2 { } pub unsafe fn SetDecimateInput(&self, pdeci: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDecimateInput)(windows_core::Interface::as_raw(self), pdeci.param().abi()).ok() } pub unsafe fn Allocator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14397,21 +14397,21 @@ impl IMSVidVideoRenderer2 { } pub unsafe fn SetAllocator(&self, allocpresent: P0, id: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), allocpresent.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._SetAllocator2)(windows_core::Interface::as_raw(self), allocpresent.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSuppressEffects)(windows_core::Interface::as_raw(self), bsuppress.param().abi()).ok() } pub unsafe fn SuppressEffects(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14448,23 +14448,23 @@ impl IMSVidVideoRendererDevices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, v: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), v.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pdb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pdb.param().abi()).ok() } pub unsafe fn Remove(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14495,9 +14495,9 @@ impl IMSVidVideoRendererEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn OverlayUnavailable(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OverlayUnavailable)(windows_core::Interface::as_raw(self)).ok() @@ -14518,9 +14518,9 @@ impl IMSVidVideoRendererEvent2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } pub unsafe fn OverlayUnavailable(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OverlayUnavailable)(windows_core::Interface::as_raw(self)).ok() @@ -14548,9 +14548,9 @@ impl IMSVidWebDVD { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14575,10 +14575,10 @@ impl IMSVidWebDVD { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14593,9 +14593,9 @@ impl IMSVidWebDVD { } pub unsafe fn SetEnableResetOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Run)(windows_core::Interface::as_raw(self)).ok() @@ -14608,10 +14608,10 @@ impl IMSVidWebDVD { } pub unsafe fn get_CanStep(&self, fbackwards: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -14658,22 +14658,22 @@ impl IMSVidWebDVD { } pub unsafe fn PlayAtTime(&self, strtime: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), strtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), strtime.param().abi()).ok() } pub unsafe fn PlayAtTimeInTitle(&self, ltitle: i32, strtime: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), ltitle, strtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), ltitle, strtime.param().abi()).ok() } pub unsafe fn PlayPeriodInTitleAutoStop(&self, ltitle: i32, strstarttime: P0, strendtime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), ltitle, strstarttime.into_param().abi(), strendtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), ltitle, strstarttime.param().abi(), strendtime.param().abi()).ok() } pub unsafe fn ReplayChapter(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self)).ok() @@ -14689,10 +14689,10 @@ impl IMSVidWebDVD { } pub unsafe fn get_AudioLanguage(&self, lstream: i32, fformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AudioLanguage)(windows_core::Interface::as_raw(self), lstream, fformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_AudioLanguage)(windows_core::Interface::as_raw(self), lstream, fformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowMenu(&self, menuid: DVDMenuIDConstants) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), menuid).ok() @@ -14789,9 +14789,9 @@ impl IMSVidWebDVD { } pub unsafe fn SetDVDDirectory(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDVDDirectory)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDVDDirectory)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn IsSubpictureStreamEnabled(&self, lstream: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14844,9 +14844,9 @@ impl IMSVidWebDVD { } pub unsafe fn SetSubpictureOn(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubpictureOn)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubpictureOn)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn DVDUniqueID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14854,31 +14854,31 @@ impl IMSVidWebDVD { } pub unsafe fn AcceptParentalLevelChange(&self, faccept: P0, strusername: P1, strpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), faccept.into_param().abi(), strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), faccept.param().abi(), strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn NotifyParentalLevelChange(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyParentalLevelChange)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyParentalLevelChange)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SelectParentalCountry(&self, lcountry: i32, strusername: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectParentalCountry)(windows_core::Interface::as_raw(self), lcountry, strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectParentalCountry)(windows_core::Interface::as_raw(self), lcountry, strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn SelectParentalLevel(&self, lparentallevel: i32, strusername: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectParentalLevel)(windows_core::Interface::as_raw(self), lparentallevel, strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectParentalLevel)(windows_core::Interface::as_raw(self), lparentallevel, strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn get_TitleParentalLevels(&self, ltitle: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15015,9 +15015,9 @@ impl IMSVidWebDVD { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDVDScreenInMouseCoordinates(&self, prect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDVDScreenInMouseCoordinates)(windows_core::Interface::as_raw(self), prect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDVDScreenInMouseCoordinates)(windows_core::Interface::as_raw(self), prect.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -15148,9 +15148,9 @@ impl IMSVidWebDVD2 { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15175,10 +15175,10 @@ impl IMSVidWebDVD2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsViewable(&self, v: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15193,9 +15193,9 @@ impl IMSVidWebDVD2 { } pub unsafe fn SetEnableResetOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnableResetOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Run(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Run)(windows_core::Interface::as_raw(self)).ok() @@ -15208,10 +15208,10 @@ impl IMSVidWebDVD2 { } pub unsafe fn get_CanStep(&self, fbackwards: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.get_CanStep)(windows_core::Interface::as_raw(self), fbackwards.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -15258,22 +15258,22 @@ impl IMSVidWebDVD2 { } pub unsafe fn PlayAtTime(&self, strtime: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlayAtTime)(windows_core::Interface::as_raw(self), strtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PlayAtTime)(windows_core::Interface::as_raw(self), strtime.param().abi()).ok() } pub unsafe fn PlayAtTimeInTitle(&self, ltitle: i32, strtime: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), ltitle, strtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), ltitle, strtime.param().abi()).ok() } pub unsafe fn PlayPeriodInTitleAutoStop(&self, ltitle: i32, strstarttime: P0, strendtime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), ltitle, strstarttime.into_param().abi(), strendtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PlayPeriodInTitleAutoStop)(windows_core::Interface::as_raw(self), ltitle, strstarttime.param().abi(), strendtime.param().abi()).ok() } pub unsafe fn ReplayChapter(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ReplayChapter)(windows_core::Interface::as_raw(self)).ok() @@ -15289,10 +15289,10 @@ impl IMSVidWebDVD2 { } pub unsafe fn get_AudioLanguage(&self, lstream: i32, fformat: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_AudioLanguage)(windows_core::Interface::as_raw(self), lstream, fformat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_AudioLanguage)(windows_core::Interface::as_raw(self), lstream, fformat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowMenu(&self, menuid: DVDMenuIDConstants) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ShowMenu)(windows_core::Interface::as_raw(self), menuid).ok() @@ -15389,9 +15389,9 @@ impl IMSVidWebDVD2 { } pub unsafe fn SetDVDDirectory(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDVDDirectory)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDVDDirectory)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn IsSubpictureStreamEnabled(&self, lstream: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15444,9 +15444,9 @@ impl IMSVidWebDVD2 { } pub unsafe fn SetSubpictureOn(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSubpictureOn)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSubpictureOn)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn DVDUniqueID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15454,31 +15454,31 @@ impl IMSVidWebDVD2 { } pub unsafe fn AcceptParentalLevelChange(&self, faccept: P0, strusername: P1, strpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), faccept.into_param().abi(), strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), faccept.param().abi(), strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn NotifyParentalLevelChange(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NotifyParentalLevelChange)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.NotifyParentalLevelChange)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SelectParentalCountry(&self, lcountry: i32, strusername: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SelectParentalCountry)(windows_core::Interface::as_raw(self), lcountry, strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SelectParentalCountry)(windows_core::Interface::as_raw(self), lcountry, strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn SelectParentalLevel(&self, lparentallevel: i32, strusername: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SelectParentalLevel)(windows_core::Interface::as_raw(self), lparentallevel, strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SelectParentalLevel)(windows_core::Interface::as_raw(self), lparentallevel, strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn get_TitleParentalLevels(&self, ltitle: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15615,9 +15615,9 @@ impl IMSVidWebDVD2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDVDScreenInMouseCoordinates(&self, prect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDVDScreenInMouseCoordinates)(windows_core::Interface::as_raw(self), prect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDVDScreenInMouseCoordinates)(windows_core::Interface::as_raw(self), prect.param().abi()).ok() } pub unsafe fn get_Bookmark(&self, ppdata: *mut *mut u8, pdatalength: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_Bookmark)(windows_core::Interface::as_raw(self), ppdata, pdatalength).ok() @@ -15641,33 +15641,33 @@ windows_core::imp::interface_hierarchy!(IMSVidWebDVDAdm, windows_core::IUnknown, impl IMSVidWebDVDAdm { pub unsafe fn ChangePassword(&self, strusername: P0, strold: P1, strnew: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangePassword)(windows_core::Interface::as_raw(self), strusername.into_param().abi(), strold.into_param().abi(), strnew.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangePassword)(windows_core::Interface::as_raw(self), strusername.param().abi(), strold.param().abi(), strnew.param().abi()).ok() } pub unsafe fn SaveParentalLevel(&self, level: i32, strusername: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveParentalLevel)(windows_core::Interface::as_raw(self), level, strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveParentalLevel)(windows_core::Interface::as_raw(self), level, strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn SaveParentalCountry(&self, country: i32, strusername: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveParentalCountry)(windows_core::Interface::as_raw(self), country, strusername.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveParentalCountry)(windows_core::Interface::as_raw(self), country, strusername.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn ConfirmPassword(&self, strusername: P0, strpassword: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConfirmPassword)(windows_core::Interface::as_raw(self), strusername.into_param().abi(), strpassword.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ConfirmPassword)(windows_core::Interface::as_raw(self), strusername.param().abi(), strpassword.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetParentalLevel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15704,9 +15704,9 @@ impl IMSVidWebDVDAdm { } pub unsafe fn SetBookmarkOnStop(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBookmarkOnStop)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBookmarkOnStop)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -15737,148 +15737,148 @@ impl IMSVidWebDVDEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOfMedia(&self, lpd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EndOfMedia)(windows_core::Interface::as_raw(self), lpd.param().abi()).ok() } pub unsafe fn DVDNotify(&self, leventcode: i32, lparam1: P0, lparam2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DVDNotify)(windows_core::Interface::as_raw(self), leventcode, lparam1.into_param().abi(), lparam2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DVDNotify)(windows_core::Interface::as_raw(self), leventcode, lparam1.param().abi(), lparam2.param().abi()).ok() } pub unsafe fn PlayForwards(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayForwards)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayForwards)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayBackwards(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayBackwards)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayBackwards)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ShowMenu(&self, menuid: DVDMenuIDConstants, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), menuid, benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowMenu)(windows_core::Interface::as_raw(self), menuid, benabled.param().abi()).ok() } pub unsafe fn Resume(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn SelectOrActivateButton(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectOrActivateButton)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectOrActivateButton)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn StillOff(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StillOff)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StillOff)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PauseOn(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PauseOn)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PauseOn)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ChangeCurrentAudioStream(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeCurrentAudioStream)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeCurrentAudioStream)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ChangeCurrentSubpictureStream(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeCurrentSubpictureStream)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeCurrentSubpictureStream)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ChangeCurrentAngle(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeCurrentAngle)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeCurrentAngle)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayAtTimeInTitle(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayAtTimeInTitle)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayAtTime(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayAtTime)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayChapterInTitle(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayChapterInTitle)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayChapter(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayChapter)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ReplayChapter(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReplayChapter)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayNextChapter(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayNextChapter)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayNextChapter)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn Stop(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ReturnFromSubmenu(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnFromSubmenu)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnFromSubmenu)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayTitle(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayTitle)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn PlayPrevChapter(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayPrevChapter)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayPrevChapter)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ChangeKaraokePresMode(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeKaraokePresMode)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeKaraokePresMode)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn ChangeVideoPresMode(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeVideoPresMode)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeVideoPresMode)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -15925,9 +15925,9 @@ impl IMSVidXDS { } pub unsafe fn SetPower(&self, power: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPower)(windows_core::Interface::as_raw(self), power.param().abi()).ok() } pub unsafe fn Power(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15952,10 +15952,10 @@ impl IMSVidXDS { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqualDevice(&self, device: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqualDevice)(windows_core::Interface::as_raw(self), device.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ChannelChangeInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15977,9 +15977,9 @@ impl IMSVidXDSEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StateChange(&self, lpd: P0, oldstate: i32, newstate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.into_param().abi(), oldstate, newstate).ok() + (windows_core::Interface::vtable(self).base__.base__.StateChange)(windows_core::Interface::as_raw(self), lpd.param().abi(), oldstate, newstate).ok() } 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), prevratingsystem, prevlevel, prevattributes, newratingsystem, newlevel, newattributes).ok() @@ -16016,10 +16016,10 @@ impl IMpeg2Data { } pub unsafe fn GetStreamOfSections(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStreamOfSections)(windows_core::Interface::as_raw(self), pid, tid, pfilter, hdatareadyevent.into_param().abi(), &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.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -16034,10 +16034,10 @@ windows_core::imp::interface_hierarchy!(IMpeg2Stream, windows_core::IUnknown); impl IMpeg2Stream { pub unsafe fn Initialize(&self, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: P0, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requesttype, pmpeg2data.into_param().abi(), pcontext, pid, tid, pfilter, hdatareadyevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requesttype, pmpeg2data.param().abi(), pcontext, pid, tid, pfilter, hdatareadyevent.param().abi()).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), pstreambuffer).ok() @@ -16086,10 +16086,10 @@ windows_core::imp::interface_hierarchy!(IPAT, windows_core::IUnknown); impl IPAT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetTransportStreamId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16117,9 +16117,9 @@ impl IPAT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16127,9 +16127,9 @@ impl IPAT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -16199,9 +16199,9 @@ windows_core::imp::interface_hierarchy!(IPBDASiParser, windows_core::IUnknown); impl IPBDASiParser { pub unsafe fn Initialize(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn GetEIT(&self, dwsize: u32, pbuffer: *const u8) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16307,10 +16307,10 @@ windows_core::imp::interface_hierarchy!(IPMT, windows_core::IUnknown); impl IPMT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetProgramNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16366,9 +16366,9 @@ impl IPMT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16376,9 +16376,9 @@ impl IPMT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -16425,11 +16425,11 @@ windows_core::imp::interface_hierarchy!(IPTFilterLicenseRenewal, windows_core::I impl IPTFilterLicenseRenewal { pub unsafe fn RenewLicenses(&self, wszfilename: P0, wszexpiredkid: P1, dwcallersid: u32, bhighpriority: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RenewLicenses)(windows_core::Interface::as_raw(self), wszfilename.into_param().abi(), wszexpiredkid.into_param().abi(), dwcallersid, bhighpriority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenewLicenses)(windows_core::Interface::as_raw(self), wszfilename.param().abi(), wszexpiredkid.param().abi(), dwcallersid, bhighpriority.param().abi()).ok() } pub unsafe fn CancelLicenseRenewal(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelLicenseRenewal)(windows_core::Interface::as_raw(self)).ok() @@ -16457,9 +16457,9 @@ impl IPersistTuneXml { } pub unsafe fn Load(&self, varvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), varvalue.param().abi()).ok() } pub unsafe fn Save(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16479,10 +16479,10 @@ windows_core::imp::interface_hierarchy!(IPersistTuneXmlUtility, windows_core::IU impl IPersistTuneXmlUtility { pub unsafe fn Deserialize(&self, varvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), varvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), varvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -16495,18 +16495,18 @@ windows_core::imp::interface_hierarchy!(IPersistTuneXmlUtility2, windows_core::I impl IPersistTuneXmlUtility2 { pub unsafe fn Deserialize(&self, varvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Deserialize)(windows_core::Interface::as_raw(self), varvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Deserialize)(windows_core::Interface::as_raw(self), varvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Serialize(&self, pitunerequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pitunerequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pitunerequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -16522,10 +16522,10 @@ windows_core::imp::interface_hierarchy!(IRegisterTuner, windows_core::IUnknown); impl IRegisterTuner { pub unsafe fn Register(&self, ptuner: P0, pgraph: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), ptuner.into_param().abi(), pgraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), ptuner.param().abi(), pgraph.param().abi()).ok() } pub unsafe fn Unregister(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unregister)(windows_core::Interface::as_raw(self)).ok() @@ -16549,9 +16549,9 @@ impl ISBE2Crossbar { } pub unsafe fn SetOutputProfile(&self, pprofile: P0, pcoutputpins: *mut u32, ppoutputpins: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi(), pcoutputpins, core::mem::transmute(ppoutputpins)).ok() + (windows_core::Interface::vtable(self).SetOutputProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi(), pcoutputpins, core::mem::transmute(ppoutputpins)).ok() } pub unsafe fn EnumStreams(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16596,9 +16596,9 @@ windows_core::imp::interface_hierarchy!(ISBE2FileScan, windows_core::IUnknown); impl ISBE2FileScan { pub unsafe fn RepairFile(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RepairFile)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RepairFile)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } } #[repr(C)] @@ -16705,10 +16705,10 @@ windows_core::imp::interface_hierarchy!(ISCTE_EAS, windows_core::IUnknown); impl ISCTE_EAS { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16748,10 +16748,10 @@ impl ISCTE_EAS { } pub unsafe fn GetNatureOfActivationText(&self, bstris0639code: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNatureOfActivationText)(windows_core::Interface::as_raw(self), bstris0639code.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNatureOfActivationText)(windows_core::Interface::as_raw(self), bstris0639code.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTimeRemaining(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16787,10 +16787,10 @@ impl ISCTE_EAS { } pub unsafe fn GetAlertText(&self, bstris0639code: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlertText)(windows_core::Interface::as_raw(self), bstris0639code.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAlertText)(windows_core::Interface::as_raw(self), bstris0639code.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRawAlertTextLen(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16885,9 +16885,9 @@ windows_core::imp::interface_hierarchy!(ISIInbandEPGEvent, windows_core::IUnknow impl ISIInbandEPGEvent { pub unsafe fn SIObjectEvent(&self, pidvb_eit: P0, dwtable_id: u32, dwservice_id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SIObjectEvent)(windows_core::Interface::as_raw(self), pidvb_eit.into_param().abi(), dwtable_id, 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)] @@ -16906,9 +16906,9 @@ impl IScanningTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuningSpace(&self, tuningspace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTuningSpace)(windows_core::Interface::as_raw(self), tuningspace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTuningSpace)(windows_core::Interface::as_raw(self), tuningspace.param().abi()).ok() } pub unsafe fn EnumTuningSpaces(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16922,16 +16922,16 @@ impl IScanningTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuneRequest(&self, tunerequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTuneRequest)(windows_core::Interface::as_raw(self), tunerequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTuneRequest)(windows_core::Interface::as_raw(self), tunerequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Validate(&self, tunerequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Validate)(windows_core::Interface::as_raw(self), tunerequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Validate)(windows_core::Interface::as_raw(self), tunerequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PreferredComponentTypes(&self) -> windows_core::Result { @@ -16941,9 +16941,9 @@ impl IScanningTuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPreferredComponentTypes(&self, componenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPreferredComponentTypes)(windows_core::Interface::as_raw(self), componenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPreferredComponentTypes)(windows_core::Interface::as_raw(self), componenttypes.param().abi()).ok() } pub unsafe fn SignalStrength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16988,9 +16988,9 @@ impl IScanningTunerEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuningSpace(&self, tuningspace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTuningSpace)(windows_core::Interface::as_raw(self), tuningspace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTuningSpace)(windows_core::Interface::as_raw(self), tuningspace.param().abi()).ok() } pub unsafe fn EnumTuningSpaces(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17004,16 +17004,16 @@ impl IScanningTunerEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuneRequest(&self, tunerequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTuneRequest)(windows_core::Interface::as_raw(self), tunerequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTuneRequest)(windows_core::Interface::as_raw(self), tunerequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Validate(&self, tunerequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Validate)(windows_core::Interface::as_raw(self), tunerequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Validate)(windows_core::Interface::as_raw(self), tunerequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PreferredComponentTypes(&self) -> windows_core::Result { @@ -17023,9 +17023,9 @@ impl IScanningTunerEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPreferredComponentTypes(&self, componenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPreferredComponentTypes)(windows_core::Interface::as_raw(self), componenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPreferredComponentTypes)(windows_core::Interface::as_raw(self), componenttypes.param().abi()).ok() } pub unsafe fn SignalStrength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17055,9 +17055,9 @@ impl IScanningTunerEx { } pub unsafe fn PerformExhaustiveScan(&self, dwlowerfreq: i32, dwhigherfreq: i32, bfinetune: P0, hevent: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PerformExhaustiveScan)(windows_core::Interface::as_raw(self), dwlowerfreq, dwhigherfreq, bfinetune.into_param().abi(), hevent).ok() + (windows_core::Interface::vtable(self).PerformExhaustiveScan)(windows_core::Interface::as_raw(self), dwlowerfreq, dwhigherfreq, bfinetune.param().abi(), hevent).ok() } pub unsafe fn TerminateCurrentScan(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17099,10 +17099,10 @@ windows_core::imp::interface_hierarchy!(ISectionList, windows_core::IUnknown); impl ISectionList { pub unsafe fn Initialize(&self, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: P0, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, timeout: u32, hdoneevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requesttype, pmpeg2data.into_param().abi(), pcontext, pid, tid, pfilter, timeout, hdoneevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requesttype, pmpeg2data.param().abi(), pcontext, pid, tid, pfilter, timeout, hdoneevent.param().abi()).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), pmplsections).ok() @@ -17172,9 +17172,9 @@ windows_core::imp::interface_hierarchy!(IStreamBufferConfigure, windows_core::IU impl IStreamBufferConfigure { pub unsafe fn SetDirectory(&self, pszdirectoryname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectory)(windows_core::Interface::as_raw(self), pszdirectoryname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectory)(windows_core::Interface::as_raw(self), pszdirectoryname.param().abi()).ok() } pub unsafe fn GetDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17209,9 +17209,9 @@ windows_core::imp::interface_hierarchy!(IStreamBufferConfigure2, windows_core::I impl IStreamBufferConfigure2 { pub unsafe fn SetDirectory(&self, pszdirectoryname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDirectory)(windows_core::Interface::as_raw(self), pszdirectoryname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDirectory)(windows_core::Interface::as_raw(self), pszdirectoryname.param().abi()).ok() } pub unsafe fn GetDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17257,9 +17257,9 @@ windows_core::imp::interface_hierarchy!(IStreamBufferConfigure3, windows_core::I impl IStreamBufferConfigure3 { pub unsafe fn SetDirectory(&self, pszdirectoryname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDirectory)(windows_core::Interface::as_raw(self), pszdirectoryname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDirectory)(windows_core::Interface::as_raw(self), pszdirectoryname.param().abi()).ok() } pub unsafe fn GetDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17293,9 +17293,9 @@ impl IStreamBufferConfigure3 { } pub unsafe fn SetStartRecConfig(&self, fstartstopscur: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStartRecConfig)(windows_core::Interface::as_raw(self), fstartstopscur.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStartRecConfig)(windows_core::Interface::as_raw(self), fstartstopscur.param().abi()).ok() } pub unsafe fn GetStartRecConfig(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17303,9 +17303,9 @@ impl IStreamBufferConfigure3 { } pub unsafe fn SetNamespace(&self, psznamespace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamespace)(windows_core::Interface::as_raw(self), psznamespace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNamespace)(windows_core::Interface::as_raw(self), psznamespace.param().abi()).ok() } pub unsafe fn GetNamespace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17342,9 +17342,9 @@ impl IStreamBufferInitialize { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn SetHKEY(&self, hkeyroot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHKEY)(windows_core::Interface::as_raw(self), hkeyroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHKEY)(windows_core::Interface::as_raw(self), hkeyroot.param().abi()).ok() } pub unsafe fn SetSIDs(&self, csids: u32, ppsid: *mut super::super::super::Foundation::PSID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetSIDs)(windows_core::Interface::as_raw(self), csids, ppsid).ok() @@ -17502,22 +17502,22 @@ windows_core::imp::interface_hierarchy!(IStreamBufferRecComp, windows_core::IUnk impl IStreamBufferRecComp { pub unsafe fn Initialize(&self, psztargetfilename: P0, pszsbrecprofileref: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psztargetfilename.into_param().abi(), pszsbrecprofileref.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psztargetfilename.param().abi(), pszsbrecprofileref.param().abi()).ok() } pub unsafe fn Append(&self, pszsbrecording: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), pszsbrecording.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), pszsbrecording.param().abi()).ok() } pub unsafe fn AppendEx(&self, pszsbrecording: P0, rtstart: i64, rtstop: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendEx)(windows_core::Interface::as_raw(self), pszsbrecording.into_param().abi(), rtstart, 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__ = std::mem::zeroed(); @@ -17565,9 +17565,9 @@ windows_core::imp::interface_hierarchy!(IStreamBufferRecordingAttribute, windows impl IStreamBufferRecordingAttribute { pub unsafe fn SetAttribute(&self, ulreserved: u32, pszattributename: P0, streambufferattributetype: STREAMBUFFER_ATTR_DATATYPE, pbattribute: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), ulreserved, pszattributename.into_param().abi(), 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__ = std::mem::zeroed(); @@ -17575,9 +17575,9 @@ impl IStreamBufferRecordingAttribute { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), pszattributename.into_param().abi(), pulreserved, pstreambufferattributetype, pbattribute, pcblength).ok() + (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), pszattributename.param().abi(), pulreserved, pstreambufferattributetype, pbattribute, 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), windex, pulreserved, core::mem::transmute(pszattributename), pcchnamelength, pstreambufferattributetype, pbattribute, pcblength).ok() @@ -17601,16 +17601,16 @@ windows_core::imp::interface_hierarchy!(IStreamBufferSink, windows_core::IUnknow impl IStreamBufferSink { pub unsafe fn LockProfile(&self, pszstreambufferfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LockProfile)(windows_core::Interface::as_raw(self), pszstreambufferfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LockProfile)(windows_core::Interface::as_raw(self), pszstreambufferfilename.param().abi()).ok() } pub unsafe fn CreateRecorder(&self, pszfilename: P0, dwrecordtype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), 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() @@ -17628,16 +17628,16 @@ windows_core::imp::interface_hierarchy!(IStreamBufferSink2, windows_core::IUnkno impl IStreamBufferSink2 { pub unsafe fn LockProfile(&self, pszstreambufferfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LockProfile)(windows_core::Interface::as_raw(self), pszstreambufferfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LockProfile)(windows_core::Interface::as_raw(self), pszstreambufferfilename.param().abi()).ok() } pub unsafe fn CreateRecorder(&self, pszfilename: P0, dwrecordtype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), dwrecordtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.IsProfileLocked)(windows_core::Interface::as_raw(self)).ok() @@ -17656,16 +17656,16 @@ windows_core::imp::interface_hierarchy!(IStreamBufferSink3, windows_core::IUnkno impl IStreamBufferSink3 { pub unsafe fn LockProfile(&self, pszstreambufferfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.LockProfile)(windows_core::Interface::as_raw(self), pszstreambufferfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.LockProfile)(windows_core::Interface::as_raw(self), pszstreambufferfilename.param().abi()).ok() } pub unsafe fn CreateRecorder(&self, pszfilename: P0, dwrecordtype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateRecorder)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), dwrecordtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.IsProfileLocked)(windows_core::Interface::as_raw(self)).ok() @@ -17687,9 +17687,9 @@ windows_core::imp::interface_hierarchy!(IStreamBufferSource, windows_core::IUnkn impl IStreamBufferSource { pub unsafe fn SetStreamSink(&self, pistreambuffersink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSink)(windows_core::Interface::as_raw(self), pistreambuffersink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamSink)(windows_core::Interface::as_raw(self), pistreambuffersink.param().abi()).ok() } } #[repr(C)] @@ -17702,10 +17702,10 @@ windows_core::imp::interface_hierarchy!(ITSDT, windows_core::IUnknown); impl ITSDT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.into_param().abi(), pmpegdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi(), pmpegdata.param().abi()).ok() } pub unsafe fn GetVersionNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17724,9 +17724,9 @@ impl ITSDT { } pub unsafe fn RegisterForNextTable(&self, hnexttableavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNextTable)(windows_core::Interface::as_raw(self), hnexttableavailable.param().abi()).ok() } pub unsafe fn GetNextTable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17734,9 +17734,9 @@ impl ITSDT { } pub unsafe fn RegisterForWhenCurrent(&self, hnexttableiscurrent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForWhenCurrent)(windows_core::Interface::as_raw(self), hnexttableiscurrent.param().abi()).ok() } pub unsafe fn ConvertNextToCurrent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ConvertNextToCurrent)(windows_core::Interface::as_raw(self)).ok() @@ -17784,9 +17784,9 @@ impl ITuneRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLocator(&self, locator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocator)(windows_core::Interface::as_raw(self), locator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocator)(windows_core::Interface::as_raw(self), locator.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -17820,55 +17820,55 @@ impl ITuneRequestInfo { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetLocatorData(&self, request: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLocatorData)(windows_core::Interface::as_raw(self), request.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetLocatorData)(windows_core::Interface::as_raw(self), request.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetComponentData(&self, currentrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetComponentData)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetComponentData)(windows_core::Interface::as_raw(self), currentrequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateComponentList(&self, currentrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateComponentList)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateComponentList)(windows_core::Interface::as_raw(self), currentrequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextProgram(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextProgram)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextProgram)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPreviousProgram(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreviousProgram)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPreviousProgram)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextLocator(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextLocator)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextLocator)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPreviousLocator(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreviousLocator)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPreviousLocator)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -17909,63 +17909,63 @@ impl ITuneRequestInfoEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetLocatorData(&self, request: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetLocatorData)(windows_core::Interface::as_raw(self), request.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetLocatorData)(windows_core::Interface::as_raw(self), request.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetComponentData(&self, currentrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetComponentData)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetComponentData)(windows_core::Interface::as_raw(self), currentrequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateComponentList(&self, currentrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateComponentList)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CreateComponentList)(windows_core::Interface::as_raw(self), currentrequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextProgram(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetNextProgram)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetNextProgram)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPreviousProgram(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPreviousProgram)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPreviousProgram)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNextLocator(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetNextLocator)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetNextLocator)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPreviousLocator(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPreviousLocator)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPreviousLocator)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateComponentListEx(&self, currentrequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateComponentListEx)(windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateComponentListEx)(windows_core::Interface::as_raw(self), currentrequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -17987,9 +17987,9 @@ impl ITuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuningSpace(&self, tuningspace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTuningSpace)(windows_core::Interface::as_raw(self), tuningspace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTuningSpace)(windows_core::Interface::as_raw(self), tuningspace.param().abi()).ok() } pub unsafe fn EnumTuningSpaces(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18003,16 +18003,16 @@ impl ITuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTuneRequest(&self, tunerequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTuneRequest)(windows_core::Interface::as_raw(self), tunerequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTuneRequest)(windows_core::Interface::as_raw(self), tunerequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Validate(&self, tunerequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), tunerequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), tunerequest.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PreferredComponentTypes(&self) -> windows_core::Result { @@ -18022,9 +18022,9 @@ impl ITuner { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPreferredComponentTypes(&self, componenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreferredComponentTypes)(windows_core::Interface::as_raw(self), componenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreferredComponentTypes)(windows_core::Interface::as_raw(self), componenttypes.param().abi()).ok() } pub unsafe fn SignalStrength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18114,9 +18114,9 @@ impl ITuningSpace { } pub unsafe fn SetUniqueName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUniqueName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUniqueName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18124,9 +18124,9 @@ impl ITuningSpace { } pub unsafe fn SetFriendlyName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18138,9 +18138,9 @@ impl ITuningSpace { } pub unsafe fn SetNetworkType(&self, networktypeguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkType)(windows_core::Interface::as_raw(self), networktypeguid.param().abi()).ok() } pub unsafe fn _NetworkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18172,9 +18172,9 @@ impl ITuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultPreferredComponentTypes)(windows_core::Interface::as_raw(self), newcomponenttypes.param().abi()).ok() } pub unsafe fn FrequencyMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18182,9 +18182,9 @@ impl ITuningSpace { } pub unsafe fn SetFrequencyMapping(&self, mapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFrequencyMapping)(windows_core::Interface::as_raw(self), mapping.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultLocator(&self) -> windows_core::Result { @@ -18194,9 +18194,9 @@ impl ITuningSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDefaultLocator(&self, locatorval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultLocator)(windows_core::Interface::as_raw(self), locatorval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -18270,26 +18270,26 @@ impl ITuningSpaceContainer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn put_Item(&self, varindex: P0, tuningspace: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), tuningspace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), tuningspace.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TuningSpacesForCLSID(&self, spaceclsid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TuningSpacesForCLSID)(windows_core::Interface::as_raw(self), spaceclsid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TuningSpacesForCLSID)(windows_core::Interface::as_raw(self), spaceclsid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _TuningSpacesForCLSID2(&self, spaceclsid: *const windows_core::GUID) -> windows_core::Result { @@ -18299,26 +18299,26 @@ impl ITuningSpaceContainer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn TuningSpacesForName(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TuningSpacesForName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TuningSpacesForName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindID(&self, tuningspace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindID)(windows_core::Interface::as_raw(self), tuningspace.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindID)(windows_core::Interface::as_raw(self), tuningspace.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, tuningspace: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), tuningspace.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), tuningspace.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumTuningSpaces(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18326,9 +18326,9 @@ impl ITuningSpaceContainer { } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } pub unsafe fn MaxCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18398,10 +18398,10 @@ impl ITuningSpaces { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumTuningSpaces(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs index f1c1c9e1ed..4a4df7f3bf 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs @@ -4,24 +4,24 @@ impl IXMLGraphBuilder { #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn BuildFromXML(&self, pgraph: P0, pxml: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BuildFromXML)(windows_core::Interface::as_raw(self), pgraph.into_param().abi(), pxml.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BuildFromXML)(windows_core::Interface::as_raw(self), pgraph.param().abi(), pxml.param().abi()).ok() } pub unsafe fn SaveToXML(&self, pgraph: P0, pbstrxml: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveToXML)(windows_core::Interface::as_raw(self), pgraph.into_param().abi(), core::mem::transmute(pbstrxml)).ok() + (windows_core::Interface::vtable(self).SaveToXML)(windows_core::Interface::as_raw(self), pgraph.param().abi(), core::mem::transmute(pbstrxml)).ok() } pub unsafe fn BuildFromXMLFile(&self, pgraph: P0, wszfilename: P1, wszbaseurl: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BuildFromXMLFile)(windows_core::Interface::as_raw(self), pgraph.into_param().abi(), wszfilename.into_param().abi(), wszbaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BuildFromXMLFile)(windows_core::Interface::as_raw(self), pgraph.param().abi(), wszfilename.param().abi(), wszbaseurl.param().abi()).ok() } } #[repr(C)] 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 2e83535b64..98b740dee0 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -111,9 +111,9 @@ impl IAMAsyncReaderTimestampScaling { } pub unsafe fn SetTimestampMode(&self, fraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTimestampMode)(windows_core::Interface::as_raw(self), fraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTimestampMode)(windows_core::Interface::as_raw(self), fraw.param().abi()).ok() } } #[repr(C)] @@ -127,9 +127,9 @@ windows_core::imp::interface_hierarchy!(IAMAudioInputMixer, windows_core::IUnkno impl IAMAudioInputMixer { pub unsafe fn SetEnable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn Enable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -137,9 +137,9 @@ impl IAMAudioInputMixer { } pub unsafe fn SetMono(&self, fmono: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMono)(windows_core::Interface::as_raw(self), fmono.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMono)(windows_core::Interface::as_raw(self), fmono.param().abi()).ok() } pub unsafe fn Mono(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -161,9 +161,9 @@ impl IAMAudioInputMixer { } pub unsafe fn SetLoudness(&self, floudness: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoudness)(windows_core::Interface::as_raw(self), floudness.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoudness)(windows_core::Interface::as_raw(self), floudness.param().abi()).ok() } pub unsafe fn Loudness(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -407,9 +407,9 @@ impl IAMCrossbar { } pub unsafe fn get_CrossbarPinInfo(&self, isinputpin: P0, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_CrossbarPinInfo)(windows_core::Interface::as_raw(self), isinputpin.into_param().abi(), pinindex, pinindexrelated, physicaltype).ok() + (windows_core::Interface::vtable(self).get_CrossbarPinInfo)(windows_core::Interface::as_raw(self), isinputpin.param().abi(), pinindex, pinindexrelated, physicaltype).ok() } } #[repr(C)] @@ -451,9 +451,9 @@ impl IAMDevMemoryAllocator { } pub unsafe fn GetDevMemoryObject(&self, ppunkinnner: *mut Option, punkouter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDevMemoryObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ppunkinnner), punkouter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetDevMemoryObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ppunkinnner), punkouter.param().abi()).ok() } } #[repr(C)] @@ -527,30 +527,30 @@ impl IAMDirectSound { #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn ReleaseDirectSoundInterface(&self, lpds: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDirectSoundInterface)(windows_core::Interface::as_raw(self), lpds.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDirectSoundInterface)(windows_core::Interface::as_raw(self), lpds.param().abi()).ok() } #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn ReleasePrimaryBufferInterface(&self, lpdsb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleasePrimaryBufferInterface)(windows_core::Interface::as_raw(self), lpdsb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleasePrimaryBufferInterface)(windows_core::Interface::as_raw(self), lpdsb.param().abi()).ok() } #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub unsafe fn ReleaseSecondaryBufferInterface(&self, lpdsb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseSecondaryBufferInterface)(windows_core::Interface::as_raw(self), lpdsb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseSecondaryBufferInterface)(windows_core::Interface::as_raw(self), lpdsb.param().abi()).ok() } pub unsafe fn SetFocusWindow(&self, param0: P0, param1: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFocusWindow)(windows_core::Interface::as_raw(self), param0.into_param().abi(), param1.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFocusWindow)(windows_core::Interface::as_raw(self), param0.param().abi(), param1.param().abi()).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), param0, param1).ok() @@ -687,9 +687,9 @@ impl IAMExtTransport { } pub unsafe fn SetTransportBasicParameters(&self, param: i32, value: i32, pszdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransportBasicParameters)(windows_core::Interface::as_raw(self), param, value, pszdata.into_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__ = std::mem::zeroed(); @@ -861,9 +861,9 @@ windows_core::imp::interface_hierarchy!(IAMFilterGraphCallback, windows_core::IU impl IAMFilterGraphCallback { pub unsafe fn UnableToRender(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnableToRender)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnableToRender)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } } #[repr(C)] @@ -889,16 +889,16 @@ impl IAMGraphBuilderCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectedFilter(&self, pmon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectedFilter)(windows_core::Interface::as_raw(self), pmon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectedFilter)(windows_core::Interface::as_raw(self), pmon.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatedFilter(&self, pfil: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatedFilter)(windows_core::Interface::as_raw(self), pfil.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatedFilter)(windows_core::Interface::as_raw(self), pfil.param().abi()).ok() } } #[repr(C)] @@ -918,15 +918,15 @@ windows_core::imp::interface_hierarchy!(IAMGraphStreams, windows_core::IUnknown) impl IAMGraphStreams { pub unsafe fn FindUpstreamInterface(&self, ppin: P0, riid: *const windows_core::GUID, ppvinterface: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindUpstreamInterface)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), riid, ppvinterface, dwflags).ok() + (windows_core::Interface::vtable(self).FindUpstreamInterface)(windows_core::Interface::as_raw(self), ppin.param().abi(), riid, ppvinterface, dwflags).ok() } pub unsafe fn SyncUsingStreamOffset(&self, busestreamoffset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncUsingStreamOffset)(windows_core::Interface::as_raw(self), busestreamoffset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SyncUsingStreamOffset)(windows_core::Interface::as_raw(self), busestreamoffset.param().abi()).ok() } pub unsafe fn SetMaxGraphLatency(&self, rtmaxgraphlatency: i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetMaxGraphLatency)(windows_core::Interface::as_raw(self), rtmaxgraphlatency).ok() @@ -989,9 +989,9 @@ impl IAMLine21Decoder { } pub unsafe fn SetRedrawAlways(&self, boption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedrawAlways)(windows_core::Interface::as_raw(self), boption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRedrawAlways)(windows_core::Interface::as_raw(self), boption.param().abi()).ok() } pub unsafe fn GetDrawBackgroundMode(&self, lpmode: *mut AM_LINE21_DRAWBGMODE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDrawBackgroundMode)(windows_core::Interface::as_raw(self), lpmode).ok() @@ -1095,9 +1095,9 @@ windows_core::imp::interface_hierarchy!(IAMMediaContent2, windows_core::IUnknown impl IAMMediaContent2 { pub unsafe fn get_MediaParameter(&self, entrynum: i32, bstrname: P0, pbstrvalue: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_MediaParameter)(windows_core::Interface::as_raw(self), entrynum, bstrname.into_param().abi(), core::mem::transmute(pbstrvalue)).ok() + (windows_core::Interface::vtable(self).get_MediaParameter)(windows_core::Interface::as_raw(self), entrynum, bstrname.param().abi(), 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), entrynum, index, core::mem::transmute(pbstrname)).ok() @@ -1126,9 +1126,9 @@ impl IAMMediaStream { } pub unsafe fn SetSameFormat(&self, pstreamthathasdesiredformat: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSameFormat)(windows_core::Interface::as_raw(self), pstreamthathasdesiredformat.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1136,41 +1136,41 @@ impl IAMMediaStream { } pub unsafe fn CreateSharedSample(&self, pexistingsample: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSharedSample)(windows_core::Interface::as_raw(self), pexistingsample.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.SendEndOfStream)(windows_core::Interface::as_raw(self), dwflags).ok() } pub unsafe fn Initialize(&self, psourceobject: P0, dwflags: u32, purposeid: *const windows_core::GUID, streamtype: STREAM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psourceobject.into_param().abi(), dwflags, purposeid, 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), state).ok() } pub unsafe fn JoinAMMultiMediaStream(&self, pammultimediastream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JoinAMMultiMediaStream)(windows_core::Interface::as_raw(self), pammultimediastream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JoinAMMultiMediaStream)(windows_core::Interface::as_raw(self), pammultimediastream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn JoinFilter(&self, pmediastreamfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JoinFilter)(windows_core::Interface::as_raw(self), pmediastreamfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JoinFilter)(windows_core::Interface::as_raw(self), pmediastreamfilter.param().abi()).ok() } pub unsafe fn JoinFilterGraph(&self, pfiltergraph: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JoinFilterGraph)(windows_core::Interface::as_raw(self), pfiltergraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JoinFilterGraph)(windows_core::Interface::as_raw(self), pfiltergraph.param().abi()).ok() } } #[repr(C)] @@ -1199,9 +1199,9 @@ impl IAMMediaTypeSample { } pub unsafe fn Update(&self, dwflags: u32, hevent: P0, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Update)(windows_core::Interface::as_raw(self), dwflags, hevent.into_param().abi(), pfnapc, dwapcdata).ok() + (windows_core::Interface::vtable(self).base__.Update)(windows_core::Interface::as_raw(self), dwflags, hevent.param().abi(), pfnapc, dwapcdata).ok() } pub unsafe fn CompletionStatus(&self, dwflags: u32, dwmilliseconds: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CompletionStatus)(windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() @@ -1227,18 +1227,18 @@ impl IAMMediaTypeSample { } pub unsafe fn SetSyncPoint(&self, bissyncpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSyncPoint)(windows_core::Interface::as_raw(self), bissyncpoint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSyncPoint)(windows_core::Interface::as_raw(self), bissyncpoint.param().abi()).ok() } pub unsafe fn IsPreroll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsPreroll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetPreroll(&self, bispreroll: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), bispreroll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), bispreroll.param().abi()).ok() } pub unsafe fn GetActualDataLength(&self) -> i32 { (windows_core::Interface::vtable(self).GetActualDataLength)(windows_core::Interface::as_raw(self)) @@ -1260,9 +1260,9 @@ impl IAMMediaTypeSample { } pub unsafe fn SetDiscontinuity(&self, bdiscontinuity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDiscontinuity)(windows_core::Interface::as_raw(self), bdiscontinuity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDiscontinuity)(windows_core::Interface::as_raw(self), bdiscontinuity.param().abi()).ok() } pub unsafe fn GetMediaTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMediaTime)(windows_core::Interface::as_raw(self), ptimestart, ptimeend).ok() @@ -1310,9 +1310,9 @@ impl IAMMediaTypeStream { } pub unsafe fn SetSameFormat(&self, pstreamthathasdesiredformat: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSameFormat)(windows_core::Interface::as_raw(self), pstreamthathasdesiredformat.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1320,10 +1320,10 @@ impl IAMMediaTypeStream { } pub unsafe fn CreateSharedSample(&self, pexistingsample: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSharedSample)(windows_core::Interface::as_raw(self), pexistingsample.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.SendEndOfStream)(windows_core::Interface::as_raw(self), dwflags).ok() @@ -1338,10 +1338,10 @@ impl IAMMediaTypeStream { } pub unsafe fn CreateSample(&self, lsamplesize: i32, pbbuffer: *const u8, dwflags: u32, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), lsamplesize, pbbuffer, dwflags, punkouter.into_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__ = std::mem::zeroed(); @@ -1404,9 +1404,9 @@ impl IAMMultiMediaStream { } pub unsafe fn Initialize(&self, streamtype: STREAM_TYPE, dwflags: AMMSF_MMS_INIT_FLAGS, pfiltergraph: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), streamtype, dwflags.0 as _, pfiltergraph.into_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__ = std::mem::zeroed(); @@ -1419,24 +1419,24 @@ impl IAMMultiMediaStream { } pub unsafe fn AddMediaStream(&self, pstreamobject: P0, purposeid: *const windows_core::GUID, dwflags: AMMSF_MS_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMediaStream)(windows_core::Interface::as_raw(self), pstreamobject.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenFile)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenMoniker)(windows_core::Interface::as_raw(self), pctx.into_param().abi(), pmoniker.into_param().abi(), 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), dwflags).ok() @@ -1476,9 +1476,9 @@ impl IAMNetShowConfig { } pub unsafe fn SetUseFixedUDPPort(&self, usefixedudpport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseFixedUDPPort)(windows_core::Interface::as_raw(self), usefixedudpport.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseFixedUDPPort)(windows_core::Interface::as_raw(self), usefixedudpport.param().abi()).ok() } pub unsafe fn FixedUDPPort(&self, pfixedudpport: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FixedUDPPort)(windows_core::Interface::as_raw(self), pfixedudpport).ok() @@ -1491,27 +1491,27 @@ impl IAMNetShowConfig { } pub unsafe fn SetUseHTTPProxy(&self, usehttpproxy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseHTTPProxy)(windows_core::Interface::as_raw(self), usehttpproxy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseHTTPProxy)(windows_core::Interface::as_raw(self), usehttpproxy.param().abi()).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), penableautoproxy).ok() } pub unsafe fn SetEnableAutoProxy(&self, enableautoproxy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableAutoProxy)(windows_core::Interface::as_raw(self), enableautoproxy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableAutoProxy)(windows_core::Interface::as_raw(self), enableautoproxy.param().abi()).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() } pub unsafe fn SetHTTPProxyHost(&self, bstrhttpproxyhost: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHTTPProxyHost)(windows_core::Interface::as_raw(self), bstrhttpproxyhost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHTTPProxyHost)(windows_core::Interface::as_raw(self), bstrhttpproxyhost.param().abi()).ok() } pub unsafe fn HTTPProxyPort(&self, phttpproxyport: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HTTPProxyPort)(windows_core::Interface::as_raw(self), phttpproxyport).ok() @@ -1524,36 +1524,36 @@ impl IAMNetShowConfig { } pub unsafe fn SetEnableMulticast(&self, enablemulticast: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableMulticast)(windows_core::Interface::as_raw(self), enablemulticast.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableMulticast)(windows_core::Interface::as_raw(self), enablemulticast.param().abi()).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), penableudp).ok() } pub unsafe fn SetEnableUDP(&self, enableudp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableUDP)(windows_core::Interface::as_raw(self), enableudp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableUDP)(windows_core::Interface::as_raw(self), enableudp.param().abi()).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), penabletcp).ok() } pub unsafe fn SetEnableTCP(&self, enabletcp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableTCP)(windows_core::Interface::as_raw(self), enabletcp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableTCP)(windows_core::Interface::as_raw(self), enabletcp.param().abi()).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), penablehttp).ok() } pub unsafe fn SetEnableHTTP(&self, enablehttp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableHTTP)(windows_core::Interface::as_raw(self), enablehttp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableHTTP)(windows_core::Interface::as_raw(self), enablehttp.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1639,9 +1639,9 @@ windows_core::imp::interface_hierarchy!(IAMNetShowPreroll, windows_core::IUnknow impl IAMNetShowPreroll { pub unsafe fn SetPreroll(&self, fpreroll: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), fpreroll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), fpreroll.param().abi()).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), pfpreroll).ok() @@ -1782,9 +1782,9 @@ impl IAMPlayList { } pub unsafe fn GetNamedEvent(&self, pwszeventname: P0, dwitemindex: u32, ppitem: *mut Option, pdwflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNamedEvent)(windows_core::Interface::as_raw(self), pwszeventname.into_param().abi(), dwitemindex, core::mem::transmute(ppitem), pdwflags).ok() + (windows_core::Interface::vtable(self).GetNamedEvent)(windows_core::Interface::as_raw(self), pwszeventname.param().abi(), dwitemindex, core::mem::transmute(ppitem), 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), pdwrepeatcount, pdwrepeatstart, pdwrepeatend).ok() @@ -1884,15 +1884,15 @@ impl IAMPluginControl { } pub unsafe fn SetDisabled(&self, clsid: *const windows_core::GUID, disabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), clsid, disabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), clsid, disabled.param().abi()).ok() } pub unsafe fn IsLegacyDisabled(&self, dllname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsLegacyDisabled)(windows_core::Interface::as_raw(self), dllname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsLegacyDisabled)(windows_core::Interface::as_raw(self), dllname.param().abi()).ok() } } #[repr(C)] @@ -1987,16 +1987,16 @@ impl IAMStats { } pub unsafe fn GetValueByName(&self, szname: P0, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), szname.into_param().abi(), lindex, lcount, dlast, daverage, dstddev, dmin, dmax).ok() + (windows_core::Interface::vtable(self).GetValueByName)(windows_core::Interface::as_raw(self), szname.param().abi(), lindex, lcount, dlast, daverage, dstddev, dmin, dmax).ok() } pub unsafe fn GetIndex(&self, szname: P0, lcreate: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), szname.into_param().abi(), lcreate, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), szname.param().abi(), 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), lindex, dvalue).ok() @@ -2058,9 +2058,9 @@ impl IAMStreamControl { } pub unsafe fn StopAt(&self, ptstop: Option<*const i64>, bsendextra: P0, dwcookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ptstop.unwrap_or(std::ptr::null())), bsendextra.into_param().abi(), dwcookie).ok() + (windows_core::Interface::vtable(self).StopAt)(windows_core::Interface::as_raw(self), core::mem::transmute(ptstop.unwrap_or(std::ptr::null())), bsendextra.param().abi(), 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), pinfo).ok() @@ -2129,15 +2129,15 @@ impl IAMTVAudio { } pub unsafe fn RegisterNotificationCallBack(&self, pnotify: P0, levents: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } } #[repr(C)] @@ -2190,9 +2190,9 @@ impl IAMTVTuner { } pub unsafe fn Logon(&self, hcurrentuser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Logon)(windows_core::Interface::as_raw(self), hcurrentuser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Logon)(windows_core::Interface::as_raw(self), hcurrentuser.param().abi()).ok() } pub unsafe fn Logout(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Logout)(windows_core::Interface::as_raw(self)).ok() @@ -2214,15 +2214,15 @@ impl IAMTVTuner { } pub unsafe fn RegisterNotificationCallBack(&self, pnotify: P0, levents: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi(), levents).ok() + (windows_core::Interface::vtable(self).base__.RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi(), levents).ok() } pub unsafe fn UnRegisterNotificationCallBack(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn AvailableTVFormats(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2399,9 +2399,9 @@ impl IAMTuner { } pub unsafe fn Logon(&self, hcurrentuser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), hcurrentuser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), hcurrentuser.param().abi()).ok() } pub unsafe fn Logout(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Logout)(windows_core::Interface::as_raw(self)).ok() @@ -2423,15 +2423,15 @@ impl IAMTuner { } pub unsafe fn RegisterNotificationCallBack(&self, pnotify: P0, levents: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } } #[repr(C)] @@ -2473,9 +2473,9 @@ impl IAMVfwCaptureDialogs { } pub unsafe fn ShowDialog(&self, idialog: i32, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), idialog, hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), idialog, hwnd.param().abi()).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), idialog, umsg, dw1, dw2).ok() @@ -2493,9 +2493,9 @@ windows_core::imp::interface_hierarchy!(IAMVfwCompressDialogs, windows_core::IUn impl IAMVfwCompressDialogs { pub unsafe fn ShowDialog(&self, idialog: i32, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), idialog, hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowDialog)(windows_core::Interface::as_raw(self), idialog, hwnd.param().abi()).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), pstate, pcbstate).ok() @@ -2545,9 +2545,9 @@ impl IAMVideoAccelerator { } pub unsafe fn GetBuffer(&self, dwtypeindex: u32, dwbufferindex: u32, breadonly: P0, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), dwtypeindex, dwbufferindex, breadonly.into_param().abi(), ppbuffer, lpstride).ok() + (windows_core::Interface::vtable(self).GetBuffer)(windows_core::Interface::as_raw(self), dwtypeindex, dwbufferindex, breadonly.param().abi(), ppbuffer, 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), dwtypeindex, dwbufferindex).ok() @@ -2560,9 +2560,9 @@ impl IAMVideoAccelerator { } pub unsafe fn DisplayFrame(&self, dwfliptoindex: u32, pmediasample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayFrame)(windows_core::Interface::as_raw(self), dwfliptoindex, pmediasample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayFrame)(windows_core::Interface::as_raw(self), dwfliptoindex, pmediasample.param().abi()).ok() } } #[repr(C)] @@ -2689,43 +2689,43 @@ windows_core::imp::interface_hierarchy!(IAMVideoControl, windows_core::IUnknown) impl IAMVideoControl { pub unsafe fn GetCaps(&self, ppin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCaps)(windows_core::Interface::as_raw(self), ppin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetMode(&self, ppin: P0, mode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMode)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMode)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMode)(windows_core::Interface::as_raw(self), ppin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetCurrentActualFrameRate(&self, ppin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentActualFrameRate)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCurrentActualFrameRate)(windows_core::Interface::as_raw(self), ppin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetMaxAvailableFrameRate(&self, ppin: P0, iindex: i32, dimensions: super::super::Foundation::SIZE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxAvailableFrameRate)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFrameRateList)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), iindex, core::mem::transmute(dimensions), listsize, framerates).ok() + (windows_core::Interface::vtable(self).GetFrameRateList)(windows_core::Interface::as_raw(self), ppin.param().abi(), iindex, core::mem::transmute(dimensions), listsize, framerates).ok() } } #[repr(C)] @@ -2780,9 +2780,9 @@ windows_core::imp::interface_hierarchy!(IAMWMBufferPass, windows_core::IUnknown) impl IAMWMBufferPass { pub unsafe fn SetNotify(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotify)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotify)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } } #[repr(C)] @@ -2796,10 +2796,10 @@ impl IAMWMBufferPassCallback { #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub unsafe fn Notify(&self, pnssbuffer3: P0, ppin: P1, prtstart: *const i64, prtend: *const i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pnssbuffer3.into_param().abi(), ppin.into_param().abi(), prtstart, 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)] @@ -2844,9 +2844,9 @@ impl IAMWstDecoder { } pub unsafe fn SetRedrawAlways(&self, boption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedrawAlways)(windows_core::Interface::as_raw(self), boption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRedrawAlways)(windows_core::Interface::as_raw(self), boption.param().abi()).ok() } pub unsafe fn GetDrawBackgroundMode(&self, lpmode: *mut AM_WST_DRAWBGMODE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDrawBackgroundMode)(windows_core::Interface::as_raw(self), lpmode).ok() @@ -2856,18 +2856,18 @@ impl IAMWstDecoder { } pub unsafe fn SetAnswerMode(&self, banswer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAnswerMode)(windows_core::Interface::as_raw(self), banswer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAnswerMode)(windows_core::Interface::as_raw(self), banswer.param().abi()).ok() } pub unsafe fn GetAnswerMode(&self, pbanswer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAnswerMode)(windows_core::Interface::as_raw(self), pbanswer).ok() } pub unsafe fn SetHoldPage(&self, bholdpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHoldPage)(windows_core::Interface::as_raw(self), bholdpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHoldPage)(windows_core::Interface::as_raw(self), bholdpage.param().abi()).ok() } pub unsafe fn GetHoldPage(&self, pbholdpage: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetHoldPage)(windows_core::Interface::as_raw(self), pbholdpage).ok() @@ -2928,25 +2928,25 @@ windows_core::imp::interface_hierarchy!(IAsyncReader, windows_core::IUnknown); impl IAsyncReader { pub unsafe fn RequestAllocator(&self, ppreferred: P0, pprops: *const ALLOCATOR_PROPERTIES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestAllocator)(windows_core::Interface::as_raw(self), ppreferred.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), psample.into_param().abi(), 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), dwtimeout, core::mem::transmute(ppsample.unwrap_or(std::ptr::null_mut())), pdwuser).ok() } pub unsafe fn SyncReadAligned(&self, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncReadAligned)(windows_core::Interface::as_raw(self), psample.into_param().abi()).ok() + (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), llposition, pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr())).ok() @@ -3018,9 +3018,9 @@ impl IAudioMediaStream { } pub unsafe fn SetSameFormat(&self, pstreamthathasdesiredformat: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSameFormat)(windows_core::Interface::as_raw(self), pstreamthathasdesiredformat.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -3028,10 +3028,10 @@ impl IAudioMediaStream { } pub unsafe fn CreateSharedSample(&self, pexistingsample: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSharedSample)(windows_core::Interface::as_raw(self), pexistingsample.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.SendEndOfStream)(windows_core::Interface::as_raw(self), dwflags).ok() @@ -3046,10 +3046,10 @@ impl IAudioMediaStream { } pub unsafe fn CreateSample(&self, paudiodata: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), paudiodata.into_param().abi(), 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)] @@ -3079,9 +3079,9 @@ impl IAudioStreamSample { } pub unsafe fn Update(&self, dwflags: u32, hevent: P0, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Update)(windows_core::Interface::as_raw(self), dwflags, hevent.into_param().abi(), pfnapc, dwapcdata).ok() + (windows_core::Interface::vtable(self).base__.Update)(windows_core::Interface::as_raw(self), dwflags, hevent.param().abi(), pfnapc, dwapcdata).ok() } pub unsafe fn CompletionStatus(&self, dwflags: u32, dwmilliseconds: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CompletionStatus)(windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() @@ -3203,26 +3203,26 @@ windows_core::imp::interface_hierarchy!(IBDA_ConditionalAccessEx, windows_core:: impl IBDA_ConditionalAccessEx { pub unsafe fn CheckEntitlementToken(&self, uldialogrequest: u32, bstrlanguage: P0, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, pbentitlementtoken: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckEntitlementToken)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into_param().abi(), 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, bstrlanguage.param().abi(), 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: P0, eventid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenBroadcastMmi)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into_param().abi(), eventid).ok() + (windows_core::Interface::vtable(self).OpenBroadcastMmi)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.param().abi(), eventid).ok() } pub unsafe fn CloseMmiDialog(&self, uldialogrequest: u32, bstrlanguage: P0, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CloseMmiDialog)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into_param().abi(), uldialognumber, reasoncode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CloseMmiDialog)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.param().abi(), uldialognumber, reasoncode, &mut result__).map(|| result__) } pub unsafe fn CreateDialogRequestNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3243,9 +3243,9 @@ windows_core::imp::interface_hierarchy!(IBDA_DRIDRMService, windows_core::IUnkno impl IBDA_DRIDRMService { pub unsafe fn SetDRM(&self, bstrnewdrm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDRM)(windows_core::Interface::as_raw(self), bstrnewdrm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDRM)(windows_core::Interface::as_raw(self), bstrnewdrm.param().abi()).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), drmuuid).ok() @@ -3305,9 +3305,9 @@ impl IBDA_DRM { } pub unsafe fn PerformDRMPairing(&self, fsync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PerformDRMPairing)(windows_core::Interface::as_raw(self), fsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PerformDRMPairing)(windows_core::Interface::as_raw(self), fsync.param().abi()).ok() } } #[repr(C)] @@ -3365,17 +3365,17 @@ impl IBDA_DiagnosticProperties { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -3624,18 +3624,18 @@ windows_core::imp::interface_hierarchy!(IBDA_DiseqCommand, windows_core::IUnknow impl IBDA_DiseqCommand { pub unsafe fn SetEnableDiseqCommands(&self, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableDiseqCommands)(windows_core::Interface::as_raw(self), benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableDiseqCommands)(windows_core::Interface::as_raw(self), benable.param().abi()).ok() } pub unsafe fn SetDiseqLNBSource(&self, ullnbsource: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDiseqLNBSource)(windows_core::Interface::as_raw(self), ullnbsource).ok() } pub unsafe fn SetDiseqUseToneBurst(&self, busetoneburst: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDiseqUseToneBurst)(windows_core::Interface::as_raw(self), busetoneburst.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDiseqUseToneBurst)(windows_core::Interface::as_raw(self), busetoneburst.param().abi()).ok() } pub unsafe fn SetDiseqRepeats(&self, ulrepeats: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDiseqRepeats)(windows_core::Interface::as_raw(self), ulrepeats).ok() @@ -3746,35 +3746,35 @@ impl IBDA_FDC { } pub unsafe fn RequestTables(&self, tableids: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestTables)(windows_core::Interface::as_raw(self), tableids.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RequestTables)(windows_core::Interface::as_raw(self), tableids.param().abi()).ok() } pub unsafe fn AddPid(&self, pidstoadd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddPid)(windows_core::Interface::as_raw(self), pidstoadd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddPid)(windows_core::Interface::as_raw(self), pidstoadd.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemovePid(&self, pidstoremove: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePid)(windows_core::Interface::as_raw(self), pidstoremove.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemovePid)(windows_core::Interface::as_raw(self), pidstoremove.param().abi()).ok() } pub unsafe fn AddTid(&self, tidstoadd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddTid)(windows_core::Interface::as_raw(self), tidstoadd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddTid)(windows_core::Interface::as_raw(self), tidstoadd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveTid(&self, tidstoremove: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveTid)(windows_core::Interface::as_raw(self), tidstoremove.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveTid)(windows_core::Interface::as_raw(self), tidstoremove.param().abi()).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), pid, maxbuffersize, actualsize, secbuffer).ok() @@ -3869,10 +3869,10 @@ impl IBDA_GuideDataDeliveryService { } pub unsafe fn GetServiceInfoFromTuneXml(&self, bstrtunexml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceInfoFromTuneXml)(windows_core::Interface::as_raw(self), bstrtunexml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceInfoFromTuneXml)(windows_core::Interface::as_raw(self), bstrtunexml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4050,19 +4050,19 @@ impl IBDA_NameValueService { } pub unsafe fn GetValue(&self, bstrname: P0, bstrlanguage: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrlanguage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrlanguage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetValue(&self, uldialogrequest: u32, bstrlanguage: P0, bstrname: P1, bstrvalue: P2, ulreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into_param().abi(), bstrname.into_param().abi(), bstrvalue.into_param().abi(), ulreserved).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.param().abi(), bstrname.param().abi(), bstrvalue.param().abi(), ulreserved).ok() } } #[repr(C)] @@ -4092,9 +4092,9 @@ impl IBDA_NetworkProvider { } pub unsafe fn RegisterDeviceFilter(&self, punkfiltercontrol: P0, ppvregisitrationcontext: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterDeviceFilter)(windows_core::Interface::as_raw(self), punkfiltercontrol.into_param().abi(), ppvregisitrationcontext).ok() + (windows_core::Interface::vtable(self).RegisterDeviceFilter)(windows_core::Interface::as_raw(self), punkfiltercontrol.param().abi(), ppvregisitrationcontext).ok() } pub unsafe fn UnRegisterDeviceFilter(&self, pvregistrationcontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnRegisterDeviceFilter)(windows_core::Interface::as_raw(self), pvregistrationcontext).ok() @@ -4196,18 +4196,18 @@ impl IBDA_SignalStatistics { } pub unsafe fn SetSignalPresent(&self, fpresent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignalPresent)(windows_core::Interface::as_raw(self), fpresent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignalPresent)(windows_core::Interface::as_raw(self), fpresent.param().abi()).ok() } pub unsafe fn SignalPresent(&self, pfpresent: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalPresent)(windows_core::Interface::as_raw(self), pfpresent).ok() } pub unsafe fn SetSignalLocked(&self, flocked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignalLocked)(windows_core::Interface::as_raw(self), flocked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignalLocked)(windows_core::Interface::as_raw(self), flocked.param().abi()).ok() } pub unsafe fn SignalLocked(&self, pflocked: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalLocked)(windows_core::Interface::as_raw(self), pflocked).ok() @@ -4400,9 +4400,9 @@ windows_core::imp::interface_hierarchy!(IBDA_WMDRMTuner, windows_core::IUnknown) impl IBDA_WMDRMTuner { pub unsafe fn PurchaseEntitlement(&self, uldialogrequest: u32, bstrlanguage: P0, pbpurchasetoken: &[u8], puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PurchaseEntitlement)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into_param().abi(), pbpurchasetoken.len().try_into().unwrap(), core::mem::transmute(pbpurchasetoken.as_ptr()), puldescramblestatus, pulcapturetokenlen, pbcapturetoken).ok() + (windows_core::Interface::vtable(self).PurchaseEntitlement)(windows_core::Interface::as_raw(self), uldialogrequest, bstrlanguage.param().abi(), pbpurchasetoken.len().try_into().unwrap(), core::mem::transmute(pbpurchasetoken.as_ptr()), puldescramblestatus, pulcapturetokenlen, 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() @@ -4459,9 +4459,9 @@ impl IBPCSatelliteTuner { } pub unsafe fn Logon(&self, hcurrentuser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Logon)(windows_core::Interface::as_raw(self), hcurrentuser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Logon)(windows_core::Interface::as_raw(self), hcurrentuser.param().abi()).ok() } pub unsafe fn Logout(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Logout)(windows_core::Interface::as_raw(self)).ok() @@ -4483,15 +4483,15 @@ impl IBPCSatelliteTuner { } pub unsafe fn RegisterNotificationCallBack(&self, pnotify: P0, levents: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi(), levents).ok() + (windows_core::Interface::vtable(self).base__.RegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi(), levents).ok() } pub unsafe fn UnRegisterNotificationCallBack(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnRegisterNotificationCallBack)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn get_DefaultSubChannelTypes(&self, pldefaultvideotype: *mut i32, pldefaultaudiotype: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_DefaultSubChannelTypes)(windows_core::Interface::as_raw(self), pldefaultvideotype, pldefaultaudiotype).ok() @@ -4536,9 +4536,9 @@ impl IBaseFilter { } pub unsafe fn SetSyncSource(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSyncSource)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSyncSource)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn GetSyncSource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4550,20 +4550,20 @@ impl IBaseFilter { } pub unsafe fn FindPin(&self, id: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindPin)(windows_core::Interface::as_raw(self), id.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindPin)(windows_core::Interface::as_raw(self), id.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryFilterInfo(&self, pinfo: *mut FILTER_INFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryFilterInfo)(windows_core::Interface::as_raw(self), pinfo).ok() } pub unsafe fn JoinFilterGraph(&self, pgraph: P0, pname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).JoinFilterGraph)(windows_core::Interface::as_raw(self), pgraph.into_param().abi(), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JoinFilterGraph)(windows_core::Interface::as_raw(self), pgraph.param().abi(), pname.param().abi()).ok() } pub unsafe fn QueryVendorInfo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5205,9 +5205,9 @@ windows_core::imp::interface_hierarchy!(ICaptureGraphBuilder, windows_core::IUnk impl ICaptureGraphBuilder { pub unsafe fn SetFiltergraph(&self, pfg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFiltergraph)(windows_core::Interface::as_raw(self), pfg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFiltergraph)(windows_core::Interface::as_raw(self), pfg.param().abi()).ok() } pub unsafe fn GetFiltergraph(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5216,46 +5216,46 @@ impl ICaptureGraphBuilder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetOutputFileName(&self, ptype: *const windows_core::GUID, lpstrfile: P0, ppf: *mut Option, ppsink: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), ptype, lpstrfile.into_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: P0, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), pf.into_param().abi(), riid, ppint).ok() + (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), pf.param().abi(), riid, ppint).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RenderStream(&self, pcategory: Option<*const windows_core::GUID>, psource: P0, pfcompressor: P1, pfrenderer: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), psource.into_param().abi(), pfcompressor.into_param().abi(), pfrenderer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenderStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), psource.param().abi(), pfcompressor.param().abi(), pfrenderer.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ControlStream(&self, pcategory: Option<*const windows_core::GUID>, pfilter: P0, pstart: *const i64, pstop: *const i64, wstartcookie: u16, wstopcookie: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), pfilter.into_param().abi(), pstart, pstop, wstartcookie, wstopcookie).ok() + (windows_core::Interface::vtable(self).ControlStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), pfilter.param().abi(), pstart, pstop, wstartcookie, wstopcookie).ok() } pub unsafe fn AllocCapFile(&self, lpstr: P0, dwlsize: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AllocCapFile)(windows_core::Interface::as_raw(self), lpstr.into_param().abi(), 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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCaptureFile)(windows_core::Interface::as_raw(self), lpwstrold.into_param().abi(), lpwstrnew.into_param().abi(), fallowescabort, pcallback.into_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)] @@ -5287,9 +5287,9 @@ windows_core::imp::interface_hierarchy!(ICaptureGraphBuilder2, windows_core::IUn impl ICaptureGraphBuilder2 { pub unsafe fn SetFiltergraph(&self, pfg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFiltergraph)(windows_core::Interface::as_raw(self), pfg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFiltergraph)(windows_core::Interface::as_raw(self), pfg.param().abi()).ok() } pub unsafe fn GetFiltergraph(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5298,54 +5298,54 @@ impl ICaptureGraphBuilder2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetOutputFileName(&self, ptype: *const windows_core::GUID, lpstrfile: P0, ppf: *mut Option, ppsink: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), ptype, lpstrfile.into_param().abi(), core::mem::transmute(ppf), core::mem::transmute(ppsink.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindInterface(&self, pcategory: Option<*const windows_core::GUID>, ptype: Option<*const windows_core::GUID>, pf: P0, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), core::mem::transmute(ptype.unwrap_or(std::ptr::null())), pf.into_param().abi(), riid, ppint).ok() + (windows_core::Interface::vtable(self).FindInterface)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), core::mem::transmute(ptype.unwrap_or(std::ptr::null())), pf.param().abi(), riid, ppint).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RenderStream(&self, pcategory: Option<*const windows_core::GUID>, ptype: *const windows_core::GUID, psource: P0, pfcompressor: P1, pfrenderer: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), ptype, psource.into_param().abi(), pfcompressor.into_param().abi(), pfrenderer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenderStream)(windows_core::Interface::as_raw(self), core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), 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: P0, pstart: Option<*const i64>, pstop: Option<*const i64>, wstartcookie: u16, wstopcookie: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlStream)(windows_core::Interface::as_raw(self), pcategory, ptype, pfilter.into_param().abi(), core::mem::transmute(pstart.unwrap_or(std::ptr::null())), core::mem::transmute(pstop.unwrap_or(std::ptr::null())), wstartcookie, 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(std::ptr::null())), core::mem::transmute(pstop.unwrap_or(std::ptr::null())), wstartcookie, wstopcookie).ok() } pub unsafe fn AllocCapFile(&self, lpstr: P0, dwlsize: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AllocCapFile)(windows_core::Interface::as_raw(self), lpstr.into_param().abi(), 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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCaptureFile)(windows_core::Interface::as_raw(self), lpwstrold.into_param().abi(), lpwstrnew.into_param().abi(), fallowescabort, pcallback.into_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: P1, num: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindPin)(windows_core::Interface::as_raw(self), psource.into_param().abi(), pindir, core::mem::transmute(pcategory.unwrap_or(std::ptr::null())), core::mem::transmute(ptype.unwrap_or(std::ptr::null())), funconnected.into_param().abi(), 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(std::ptr::null())), core::mem::transmute(ptype.unwrap_or(std::ptr::null())), funconnected.param().abi(), num, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5393,9 +5393,9 @@ impl IConfigAsfWriter { #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub unsafe fn ConfigureFilterUsingProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureFilterUsingProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConfigureFilterUsingProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub unsafe fn GetCurrentProfile(&self) -> windows_core::Result { @@ -5404,9 +5404,9 @@ impl IConfigAsfWriter { } pub unsafe fn SetIndexMode(&self, bindexfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIndexMode)(windows_core::Interface::as_raw(self), bindexfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIndexMode)(windows_core::Interface::as_raw(self), bindexfile.param().abi()).ok() } pub unsafe fn GetIndexMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5451,9 +5451,9 @@ impl IConfigAsfWriter2 { #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub unsafe fn ConfigureFilterUsingProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConfigureFilterUsingProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConfigureFilterUsingProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub unsafe fn GetCurrentProfile(&self) -> windows_core::Result { @@ -5462,9 +5462,9 @@ impl IConfigAsfWriter2 { } pub unsafe fn SetIndexMode(&self, bindexfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIndexMode)(windows_core::Interface::as_raw(self), bindexfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIndexMode)(windows_core::Interface::as_raw(self), bindexfile.param().abi()).ok() } pub unsafe fn GetIndexMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5472,10 +5472,10 @@ impl IConfigAsfWriter2 { } pub unsafe fn StreamNumFromPin(&self, ppin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StreamNumFromPin)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), &mut result__).map(|| result__) + (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), dwparam, dwparam1, dwparam2).ok() @@ -5507,9 +5507,9 @@ impl IConfigAviMux { } pub unsafe fn SetOutputCompatibilityIndex(&self, foldindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCompatibilityIndex)(windows_core::Interface::as_raw(self), foldindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCompatibilityIndex)(windows_core::Interface::as_raw(self), foldindex.param().abi()).ok() } pub unsafe fn GetOutputCompatibilityIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5571,9 +5571,9 @@ impl IDDrawExclModeVideo { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn SetDDrawObject(&self, pddrawobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDDrawObject)(windows_core::Interface::as_raw(self), pddrawobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDDrawObject)(windows_core::Interface::as_raw(self), pddrawobject.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetDDrawObject(&self, ppddrawobject: *mut Option, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { @@ -5582,9 +5582,9 @@ impl IDDrawExclModeVideo { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn SetDDrawSurface(&self, pddrawsurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDDrawSurface)(windows_core::Interface::as_raw(self), pddrawsurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDDrawSurface)(windows_core::Interface::as_raw(self), pddrawsurface.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetDDrawSurface(&self, ppddrawsurface: *mut Option, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { @@ -5598,9 +5598,9 @@ impl IDDrawExclModeVideo { } pub unsafe fn SetCallbackInterface(&self, pcallback: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCallbackInterface)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).SetCallbackInterface)(windows_core::Interface::as_raw(self), pcallback.param().abi(), dwflags).ok() } } #[repr(C)] @@ -5631,11 +5631,11 @@ windows_core::imp::interface_hierarchy!(IDDrawExclModeVideoCallback, windows_cor impl IDDrawExclModeVideoCallback { pub unsafe fn OnUpdateOverlay(&self, bbefore: P0, dwflags: u32, boldvisible: P1, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: P2, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUpdateOverlay)(windows_core::Interface::as_raw(self), bbefore.into_param().abi(), dwflags, boldvisible.into_param().abi(), prcoldsrc, prcolddest, bnewvisible.into_param().abi(), prcnewsrc, prcnewdest).ok() + (windows_core::Interface::vtable(self).OnUpdateOverlay)(windows_core::Interface::as_raw(self), bbefore.param().abi(), dwflags, boldvisible.param().abi(), prcoldsrc, prcolddest, bnewvisible.param().abi(), 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), pkey, dwcolor).ok() @@ -5700,9 +5700,9 @@ windows_core::imp::interface_hierarchy!(IDVRGB219, windows_core::IUnknown); impl IDVRGB219 { pub unsafe fn SetRGB219(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRGB219)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRGB219)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } } #[repr(C)] @@ -5813,9 +5813,9 @@ impl IDirectDrawMediaStream { } pub unsafe fn SetSameFormat(&self, pstreamthathasdesiredformat: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSameFormat)(windows_core::Interface::as_raw(self), pstreamthathasdesiredformat.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -5823,10 +5823,10 @@ impl IDirectDrawMediaStream { } pub unsafe fn CreateSharedSample(&self, pexistingsample: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSharedSample)(windows_core::Interface::as_raw(self), pexistingsample.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.SendEndOfStream)(windows_core::Interface::as_raw(self), dwflags).ok() @@ -5838,9 +5838,9 @@ impl IDirectDrawMediaStream { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn SetFormat(&self, pddsurfacedesc: *const super::super::Graphics::DirectDraw::DDSURFACEDESC, pdirectdrawpalette: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormat)(windows_core::Interface::as_raw(self), pddsurfacedesc, pdirectdrawpalette.into_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 { @@ -5850,17 +5850,17 @@ impl IDirectDrawMediaStream { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn SetDirectDraw(&self, pdirectdraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectDraw)(windows_core::Interface::as_raw(self), pdirectdraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectDraw)(windows_core::Interface::as_raw(self), pdirectdraw.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn CreateSample(&self, psurface: P0, prect: *const super::super::Foundation::RECT, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSample)(windows_core::Interface::as_raw(self), psurface.into_param().abi(), prect, 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__ = std::mem::zeroed(); @@ -5906,9 +5906,9 @@ impl IDirectDrawStreamSample { } pub unsafe fn Update(&self, dwflags: u32, hevent: P0, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Update)(windows_core::Interface::as_raw(self), dwflags, hevent.into_param().abi(), pfnapc, dwapcdata).ok() + (windows_core::Interface::vtable(self).base__.Update)(windows_core::Interface::as_raw(self), dwflags, hevent.param().abi(), pfnapc, dwapcdata).ok() } pub unsafe fn CompletionStatus(&self, dwflags: u32, dwmilliseconds: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CompletionStatus)(windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() @@ -5958,9 +5958,9 @@ impl IDirectDrawVideo { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn SetDirectDraw(&self, pdirectdraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectDraw)(windows_core::Interface::as_raw(self), pdirectdraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectDraw)(windows_core::Interface::as_raw(self), pdirectdraw.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetDirectDraw(&self) -> windows_core::Result { @@ -6045,9 +6045,9 @@ impl IDistributorNotify { } pub unsafe fn SetSyncSource(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSyncSource)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSyncSource)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn NotifyGraphChange(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NotifyGraphChange)(windows_core::Interface::as_raw(self)).ok() @@ -6074,9 +6074,9 @@ impl IDrawVideoImage { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DrawVideoImageDraw(&self, hdc: P0, lprcsrc: *const super::super::Foundation::RECT, lprcdst: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawVideoImageDraw)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), lprcsrc, lprcdst).ok() + (windows_core::Interface::vtable(self).DrawVideoImageDraw)(windows_core::Interface::as_raw(self), hdc.param().abi(), lprcsrc, lprcdst).ok() } } #[repr(C)] @@ -6185,9 +6185,9 @@ impl IDvdControl { } pub unsafe fn SubpictureStreamChange(&self, ulsubpicture: u32, bdisplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubpictureStreamChange)(windows_core::Interface::as_raw(self), ulsubpicture, bdisplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SubpictureStreamChange)(windows_core::Interface::as_raw(self), ulsubpicture, bdisplay.param().abi()).ok() } pub unsafe fn AngleChange(&self, ulangle: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AngleChange)(windows_core::Interface::as_raw(self), ulangle).ok() @@ -6206,9 +6206,9 @@ impl IDvdControl { } pub unsafe fn SetRoot(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn MouseActivate(&self, point: super::super::Foundation::POINT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MouseActivate)(windows_core::Interface::as_raw(self), core::mem::transmute(point)).ok() @@ -6334,9 +6334,9 @@ impl IDvdControl2 { } pub unsafe fn Pause(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn SelectAudioStream(&self, ulaudio: u32, dwflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6348,10 +6348,10 @@ impl IDvdControl2 { } pub unsafe fn SetSubpictureState(&self, bstate: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetSubpictureState)(windows_core::Interface::as_raw(self), bstate.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetSubpictureState)(windows_core::Interface::as_raw(self), bstate.param().abi(), 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__ = std::mem::zeroed(); @@ -6371,9 +6371,9 @@ impl IDvdControl2 { } pub unsafe fn SetDVDDirectory(&self, pszwpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDVDDirectory)(windows_core::Interface::as_raw(self), pszwpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDVDDirectory)(windows_core::Interface::as_raw(self), pszwpath.param().abi()).ok() } pub unsafe fn ActivateAtPosition(&self, point: super::super::Foundation::POINT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ActivateAtPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(point)).ok() @@ -6387,22 +6387,22 @@ impl IDvdControl2 { } pub unsafe fn AcceptParentalLevelChange(&self, baccept: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), baccept.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AcceptParentalLevelChange)(windows_core::Interface::as_raw(self), baccept.param().abi()).ok() } pub unsafe fn SetOption(&self, flag: DVD_OPTION_FLAG, fstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), flag, fstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), flag, fstate.param().abi()).ok() } pub unsafe fn SetState(&self, pstate: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetState)(windows_core::Interface::as_raw(self), pstate.into_param().abi(), 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__ = std::mem::zeroed(); @@ -6478,9 +6478,9 @@ impl IDvdGraphBuilder { } pub unsafe fn RenderDvdVideoVolume(&self, lpcwszpathname: P0, dwflags: u32, pstatus: *mut AM_DVD_RENDERSTATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderDvdVideoVolume)(windows_core::Interface::as_raw(self), lpcwszpathname.into_param().abi(), dwflags, pstatus).ok() + (windows_core::Interface::vtable(self).RenderDvdVideoVolume)(windows_core::Interface::as_raw(self), lpcwszpathname.param().abi(), dwflags, pstatus).ok() } } #[repr(C)] @@ -6704,10 +6704,10 @@ impl IDvdInfo2 { } pub unsafe fn GetDiscID(&self, pszwpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDiscID)(windows_core::Interface::as_raw(self), pszwpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDiscID)(windows_core::Interface::as_raw(self), pszwpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6848,9 +6848,9 @@ windows_core::imp::interface_hierarchy!(IESEvents, windows_core::IUnknown); impl IESEvents { pub unsafe fn OnESEventReceived(&self, guideventtype: windows_core::GUID, pesevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnESEventReceived)(windows_core::Interface::as_raw(self), core::mem::transmute(guideventtype), pesevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnESEventReceived)(windows_core::Interface::as_raw(self), core::mem::transmute(guideventtype), pesevent.param().abi()).ok() } } #[repr(C)] @@ -7060,9 +7060,9 @@ impl IFileSinkFilter { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetFileName(&self, pszfilename: P0, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetCurFile(&self, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> { @@ -7087,9 +7087,9 @@ impl IFileSinkFilter2 { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetFileName(&self, pszfilename: P0, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetCurFile(&self, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> { @@ -7115,9 +7115,9 @@ impl IFileSourceFilter { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn Load(&self, pszfilename: P0, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn GetCurFile(&self, ppszfilename: *mut windows_core::PWSTR, pmt: Option<*mut super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> { @@ -7142,34 +7142,34 @@ impl IFilterChain { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartChain(&self, pstartfilter: P0, pendfilter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartChain)(windows_core::Interface::as_raw(self), pstartfilter.into_param().abi(), pendfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartChain)(windows_core::Interface::as_raw(self), pstartfilter.param().abi(), pendfilter.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PauseChain(&self, pstartfilter: P0, pendfilter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PauseChain)(windows_core::Interface::as_raw(self), pstartfilter.into_param().abi(), pendfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PauseChain)(windows_core::Interface::as_raw(self), pstartfilter.param().abi(), pendfilter.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn StopChain(&self, pstartfilter: P0, pendfilter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StopChain)(windows_core::Interface::as_raw(self), pstartfilter.into_param().abi(), pendfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StopChain)(windows_core::Interface::as_raw(self), pstartfilter.param().abi(), pendfilter.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveChain(&self, pstartfilter: P0, pendfilter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveChain)(windows_core::Interface::as_raw(self), pstartfilter.into_param().abi(), pendfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveChain)(windows_core::Interface::as_raw(self), pstartfilter.param().abi(), pendfilter.param().abi()).ok() } } #[repr(C)] @@ -7198,17 +7198,17 @@ impl IFilterGraph { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFilter(&self, pfilter: P0, pname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), pname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn EnumFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7217,30 +7217,30 @@ impl IFilterGraph { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindFilterByName(&self, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFilterByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFilterByName)(windows_core::Interface::as_raw(self), pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn ConnectDirect(&self, ppinout: P0, ppinin: P1, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), ppinin.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.param().abi(), ppinin.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Reconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn Disconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn SetDefaultSyncSource(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDefaultSyncSource)(windows_core::Interface::as_raw(self)).ok() @@ -7276,17 +7276,17 @@ impl IFilterGraph2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFilter(&self, pfilter: P0, pname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), pname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn EnumFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7295,62 +7295,62 @@ impl IFilterGraph2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindFilterByName(&self, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindFilterByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.FindFilterByName)(windows_core::Interface::as_raw(self), pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn ConnectDirect(&self, ppinout: P0, ppinin: P1, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), ppinin.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.param().abi(), ppinin.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Reconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Reconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Reconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn Disconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Disconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Disconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn SetDefaultSyncSource(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SetDefaultSyncSource)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Connect(&self, ppinout: P0, ppinin: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), ppinin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), ppinout.param().abi(), ppinin.param().abi()).ok() } pub unsafe fn Render(&self, ppinout: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Render)(windows_core::Interface::as_raw(self), ppinout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Render)(windows_core::Interface::as_raw(self), ppinout.param().abi()).ok() } pub unsafe fn RenderFile(&self, lpcwstrfile: P0, lpcwstrplaylist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RenderFile)(windows_core::Interface::as_raw(self), lpcwstrfile.into_param().abi(), lpcwstrplaylist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RenderFile)(windows_core::Interface::as_raw(self), lpcwstrfile.param().abi(), lpcwstrplaylist.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSourceFilter(&self, lpcwstrfilename: P0, lpcwstrfiltername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddSourceFilter)(windows_core::Interface::as_raw(self), lpcwstrfilename.into_param().abi(), lpcwstrfiltername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.SetLogFile)(windows_core::Interface::as_raw(self), hfile).ok() @@ -7364,25 +7364,25 @@ impl IFilterGraph2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSourceFilterForMoniker(&self, pmoniker: P0, pctx: P1, lpcwstrfiltername: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddSourceFilterForMoniker)(windows_core::Interface::as_raw(self), pmoniker.into_param().abi(), pctx.into_param().abi(), lpcwstrfiltername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddSourceFilterForMoniker)(windows_core::Interface::as_raw(self), pmoniker.param().abi(), pctx.param().abi(), lpcwstrfiltername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn ReconnectEx(&self, ppin: P0, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReconnectEx)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).ReconnectEx)(windows_core::Interface::as_raw(self), ppin.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn RenderEx(&self, ppinout: P0, dwflags: u32, pvcontext: Option<*const u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderEx)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), dwflags, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).RenderEx)(windows_core::Interface::as_raw(self), ppinout.param().abi(), dwflags, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null()))).ok() } } #[repr(C)] @@ -7404,17 +7404,17 @@ impl IFilterGraph3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFilter(&self, pfilter: P0, pname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), pname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn EnumFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7423,62 +7423,62 @@ impl IFilterGraph3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindFilterByName(&self, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindFilterByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.FindFilterByName)(windows_core::Interface::as_raw(self), pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn ConnectDirect(&self, ppinout: P0, ppinin: P1, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), ppinin.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.param().abi(), ppinin.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Reconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Reconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Reconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn Disconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Disconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Disconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn SetDefaultSyncSource(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.SetDefaultSyncSource)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Connect(&self, ppinout: P0, ppinin: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Connect)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), ppinin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Connect)(windows_core::Interface::as_raw(self), ppinout.param().abi(), ppinin.param().abi()).ok() } pub unsafe fn Render(&self, ppinout: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Render)(windows_core::Interface::as_raw(self), ppinout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Render)(windows_core::Interface::as_raw(self), ppinout.param().abi()).ok() } pub unsafe fn RenderFile(&self, lpcwstrfile: P0, lpcwstrplaylist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RenderFile)(windows_core::Interface::as_raw(self), lpcwstrfile.into_param().abi(), lpcwstrplaylist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RenderFile)(windows_core::Interface::as_raw(self), lpcwstrfile.param().abi(), lpcwstrplaylist.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSourceFilter(&self, lpcwstrfilename: P0, lpcwstrfiltername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.AddSourceFilter)(windows_core::Interface::as_raw(self), lpcwstrfilename.into_param().abi(), lpcwstrfiltername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetLogFile)(windows_core::Interface::as_raw(self), hfile).ok() @@ -7492,34 +7492,34 @@ impl IFilterGraph3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSourceFilterForMoniker(&self, pmoniker: P0, pctx: P1, lpcwstrfiltername: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddSourceFilterForMoniker)(windows_core::Interface::as_raw(self), pmoniker.into_param().abi(), pctx.into_param().abi(), lpcwstrfiltername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AddSourceFilterForMoniker)(windows_core::Interface::as_raw(self), pmoniker.param().abi(), pctx.param().abi(), lpcwstrfiltername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn ReconnectEx(&self, ppin: P0, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReconnectEx)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.ReconnectEx)(windows_core::Interface::as_raw(self), ppin.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn RenderEx(&self, ppinout: P0, dwflags: u32, pvcontext: Option<*const u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RenderEx)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), dwflags, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.RenderEx)(windows_core::Interface::as_raw(self), ppinout.param().abi(), dwflags, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSyncSourceEx(&self, pclockformostoffiltergraph: P0, pclockforfilter: P1, pfilter: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSyncSourceEx)(windows_core::Interface::as_raw(self), pclockformostoffiltergraph.into_param().abi(), pclockforfilter.into_param().abi(), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSyncSourceEx)(windows_core::Interface::as_raw(self), pclockformostoffiltergraph.param().abi(), pclockforfilter.param().abi(), pfilter.param().abi()).ok() } } #[repr(C)] @@ -7539,10 +7539,10 @@ impl IFilterInfo { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindPin(&self, strpinid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindPin)(windows_core::Interface::as_raw(self), strpinid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindPin)(windows_core::Interface::as_raw(self), strpinid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7571,9 +7571,9 @@ impl IFilterInfo { } pub unsafe fn SetFilename(&self, strfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilename)(windows_core::Interface::as_raw(self), strfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilename)(windows_core::Interface::as_raw(self), strfilename.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7600,33 +7600,33 @@ windows_core::imp::interface_hierarchy!(IFilterMapper, windows_core::IUnknown); impl IFilterMapper { pub unsafe fn RegisterFilter(&self, clsid: windows_core::GUID, name: P0, dwmerit: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), name.into_param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterFilterInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterFilterInstance)(windows_core::Interface::as_raw(self), core::mem::transmute(clsid), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterPin(&self, filter: windows_core::GUID, name: P0, brendered: P1, boutput: P2, bzero: P3, bmany: P4, connectstofilter: windows_core::GUID, connectstopin: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterPin)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), name.into_param().abi(), brendered.into_param().abi(), boutput.into_param().abi(), bzero.into_param().abi(), bmany.into_param().abi(), core::mem::transmute(connectstofilter), connectstopin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterPin)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), name.param().abi(), brendered.param().abi(), boutput.param().abi(), bzero.param().abi(), bmany.param().abi(), core::mem::transmute(connectstofilter), connectstopin.param().abi()).ok() } pub unsafe fn RegisterPinType(&self, clsfilter: windows_core::GUID, strname: P0, clsmajortype: windows_core::GUID, clssubtype: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterPinType)(windows_core::Interface::as_raw(self), core::mem::transmute(clsfilter), strname.into_param().abi(), core::mem::transmute(clsmajortype), core::mem::transmute(clssubtype)).ok() + (windows_core::Interface::vtable(self).RegisterPinType)(windows_core::Interface::as_raw(self), core::mem::transmute(clsfilter), strname.param().abi(), core::mem::transmute(clsmajortype), core::mem::transmute(clssubtype)).ok() } pub unsafe fn UnregisterFilter(&self, filter: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnregisterFilter)(windows_core::Interface::as_raw(self), core::mem::transmute(filter)).ok() @@ -7636,17 +7636,17 @@ impl IFilterMapper { } pub unsafe fn UnregisterPin(&self, filter: windows_core::GUID, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterPin)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), name.into_param().abi()).ok() + (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: P0, clsinmaj: windows_core::GUID, clsinsub: windows_core::GUID, brender: P1, boututneeded: P2, clsoutmaj: windows_core::GUID, clsoutsub: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumMatchingFilters)(windows_core::Interface::as_raw(self), core::mem::transmute(ppenum), dwmerit, binputneeded.into_param().abi(), core::mem::transmute(clsinmaj), core::mem::transmute(clsinsub), brender.into_param().abi(), boututneeded.into_param().abi(), 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.param().abi(), core::mem::transmute(clsinmaj), core::mem::transmute(clsinsub), brender.param().abi(), boututneeded.param().abi(), core::mem::transmute(clsoutmaj), core::mem::transmute(clsoutsub)).ok() } } #[repr(C)] @@ -7666,45 +7666,45 @@ windows_core::imp::interface_hierarchy!(IFilterMapper2, windows_core::IUnknown); impl IFilterMapper2 { pub unsafe fn CreateCategory(&self, clsidcategory: *const windows_core::GUID, dwcategorymerit: u32, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateCategory)(windows_core::Interface::as_raw(self), clsidcategory, dwcategorymerit, description.into_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: P0, filter: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterFilter)(windows_core::Interface::as_raw(self), pclsidcategory, szinstance.into_param().abi(), 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: P0, ppmoniker: Option<*mut Option>, pclsidcategory: *const windows_core::GUID, szinstance: P1, prf2: *const REGFILTER2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterFilter)(windows_core::Interface::as_raw(self), clsidfilter, name.into_param().abi(), core::mem::transmute(ppmoniker.unwrap_or(std::ptr::null_mut())), pclsidcategory, szinstance.into_param().abi(), prf2).ok() + (windows_core::Interface::vtable(self).RegisterFilter)(windows_core::Interface::as_raw(self), clsidfilter, name.param().abi(), core::mem::transmute(ppmoniker.unwrap_or(std::ptr::null_mut())), pclsidcategory, szinstance.param().abi(), prf2).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumMatchingFilters(&self, ppenum: *mut Option, dwflags: u32, bexactmatch: P0, dwmerit: u32, binputneeded: P1, cinputtypes: u32, pinputtypes: Option<*const windows_core::GUID>, pmedin: Option<*const REGPINMEDIUM>, ppincategoryin: Option<*const windows_core::GUID>, brender: P2, boutputneeded: P3, coutputtypes: u32, poutputtypes: Option<*const windows_core::GUID>, pmedout: Option<*const REGPINMEDIUM>, ppincategoryout: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { (windows_core::Interface::vtable(self).EnumMatchingFilters)( windows_core::Interface::as_raw(self), core::mem::transmute(ppenum), dwflags, - bexactmatch.into_param().abi(), + bexactmatch.param().abi(), dwmerit, - binputneeded.into_param().abi(), + binputneeded.param().abi(), cinputtypes, core::mem::transmute(pinputtypes.unwrap_or(std::ptr::null())), core::mem::transmute(pmedin.unwrap_or(std::ptr::null())), core::mem::transmute(ppincategoryin.unwrap_or(std::ptr::null())), - brender.into_param().abi(), - boutputneeded.into_param().abi(), + brender.param().abi(), + boutputneeded.param().abi(), coutputtypes, core::mem::transmute(poutputtypes.unwrap_or(std::ptr::null())), core::mem::transmute(pmedout.unwrap_or(std::ptr::null())), @@ -7732,45 +7732,45 @@ windows_core::imp::interface_hierarchy!(IFilterMapper3, windows_core::IUnknown, impl IFilterMapper3 { pub unsafe fn CreateCategory(&self, clsidcategory: *const windows_core::GUID, dwcategorymerit: u32, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateCategory)(windows_core::Interface::as_raw(self), clsidcategory, dwcategorymerit, description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CreateCategory)(windows_core::Interface::as_raw(self), clsidcategory, dwcategorymerit, description.param().abi()).ok() } pub unsafe fn UnregisterFilter(&self, pclsidcategory: *const windows_core::GUID, szinstance: P0, filter: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterFilter)(windows_core::Interface::as_raw(self), pclsidcategory, szinstance.into_param().abi(), filter).ok() + (windows_core::Interface::vtable(self).base__.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: P0, ppmoniker: Option<*mut Option>, pclsidcategory: *const windows_core::GUID, szinstance: P1, prf2: *const REGFILTER2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterFilter)(windows_core::Interface::as_raw(self), clsidfilter, name.into_param().abi(), core::mem::transmute(ppmoniker.unwrap_or(std::ptr::null_mut())), pclsidcategory, szinstance.into_param().abi(), prf2).ok() + (windows_core::Interface::vtable(self).base__.RegisterFilter)(windows_core::Interface::as_raw(self), clsidfilter, name.param().abi(), core::mem::transmute(ppmoniker.unwrap_or(std::ptr::null_mut())), pclsidcategory, szinstance.param().abi(), prf2).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumMatchingFilters(&self, ppenum: *mut Option, dwflags: u32, bexactmatch: P0, dwmerit: u32, binputneeded: P1, cinputtypes: u32, pinputtypes: Option<*const windows_core::GUID>, pmedin: Option<*const REGPINMEDIUM>, ppincategoryin: Option<*const windows_core::GUID>, brender: P2, boutputneeded: P3, coutputtypes: u32, poutputtypes: Option<*const windows_core::GUID>, pmedout: Option<*const REGPINMEDIUM>, ppincategoryout: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { (windows_core::Interface::vtable(self).base__.EnumMatchingFilters)( windows_core::Interface::as_raw(self), core::mem::transmute(ppenum), dwflags, - bexactmatch.into_param().abi(), + bexactmatch.param().abi(), dwmerit, - binputneeded.into_param().abi(), + binputneeded.param().abi(), cinputtypes, core::mem::transmute(pinputtypes.unwrap_or(std::ptr::null())), core::mem::transmute(pmedin.unwrap_or(std::ptr::null())), core::mem::transmute(ppincategoryin.unwrap_or(std::ptr::null())), - brender.into_param().abi(), - boutputneeded.into_param().abi(), + brender.param().abi(), + boutputneeded.param().abi(), coutputtypes, core::mem::transmute(poutputtypes.unwrap_or(std::ptr::null())), core::mem::transmute(pmedout.unwrap_or(std::ptr::null())), @@ -7853,9 +7853,9 @@ impl IFullScreenVideo { } pub unsafe fn SetMessageDrain(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMessageDrain)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMessageDrain)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn GetMessageDrain(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7876,9 +7876,9 @@ impl IFullScreenVideo { } pub unsafe fn SetCaption(&self, strcaption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), strcaption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), strcaption.param().abi()).ok() } pub unsafe fn GetCaption(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7941,9 +7941,9 @@ impl IFullScreenVideoEx { } pub unsafe fn SetMessageDrain(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMessageDrain)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMessageDrain)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn GetMessageDrain(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7964,9 +7964,9 @@ impl IFullScreenVideoEx { } pub unsafe fn SetCaption(&self, strcaption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCaption)(windows_core::Interface::as_raw(self), strcaption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCaption)(windows_core::Interface::as_raw(self), strcaption.param().abi()).ok() } pub unsafe fn GetCaption(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7978,10 +7978,10 @@ impl IFullScreenVideoEx { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorTable(&self, hwnd: P0, haccel: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAcceleratorTable)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), haccel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAcceleratorTable)(windows_core::Interface::as_raw(self), hwnd.param().abi(), haccel.param().abi()).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<()> { @@ -8032,17 +8032,17 @@ impl IGraphBuilder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFilter(&self, pfilter: P0, pname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), pname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn EnumFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8051,62 +8051,62 @@ impl IGraphBuilder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindFilterByName(&self, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindFilterByName)(windows_core::Interface::as_raw(self), pname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindFilterByName)(windows_core::Interface::as_raw(self), pname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn ConnectDirect(&self, ppinout: P0, ppinin: P1, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), ppinin.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.ConnectDirect)(windows_core::Interface::as_raw(self), ppinout.param().abi(), ppinin.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Reconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Reconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Reconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn Disconnect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Disconnect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Disconnect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn SetDefaultSyncSource(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetDefaultSyncSource)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Connect(&self, ppinout: P0, ppinin: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), ppinin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), ppinout.param().abi(), ppinin.param().abi()).ok() } pub unsafe fn Render(&self, ppinout: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), ppinout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), ppinout.param().abi()).ok() } pub unsafe fn RenderFile(&self, lpcwstrfile: P0, lpcwstrplaylist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderFile)(windows_core::Interface::as_raw(self), lpcwstrfile.into_param().abi(), lpcwstrplaylist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenderFile)(windows_core::Interface::as_raw(self), lpcwstrfile.param().abi(), lpcwstrplaylist.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSourceFilter(&self, lpcwstrfilename: P0, lpcwstrfiltername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddSourceFilter)(windows_core::Interface::as_raw(self), lpcwstrfilename.into_param().abi(), lpcwstrfiltername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), hfile).ok() @@ -8138,26 +8138,26 @@ impl IGraphConfig { #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] pub unsafe fn Reconnect(&self, poutputpin: P0, pinputpin: P1, pmtfirstconnection: *const super::MediaFoundation::AM_MEDIA_TYPE, pusingfilter: P2, habortevent: P3, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), poutputpin.into_param().abi(), pinputpin.into_param().abi(), pmtfirstconnection, pusingfilter.into_param().abi(), habortevent.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).Reconnect)(windows_core::Interface::as_raw(self), poutputpin.param().abi(), pinputpin.param().abi(), pmtfirstconnection, pusingfilter.param().abi(), habortevent.param().abi(), dwflags).ok() } pub unsafe fn Reconfigure(&self, pcallback: P0, pvcontext: *const core::ffi::c_void, dwflags: u32, habortevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconfigure)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pvcontext, dwflags, habortevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reconfigure)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pvcontext, dwflags, habortevent.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFilterToCache(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilterToCache)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFilterToCache)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn EnumCacheFilter(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8166,9 +8166,9 @@ impl IGraphConfig { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveFilterFromCache(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFilterFromCache)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveFilterFromCache)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn GetStartTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8176,33 +8176,33 @@ impl IGraphConfig { } pub unsafe fn PushThroughData(&self, poutputpin: P0, pconnection: P1, heventabort: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PushThroughData)(windows_core::Interface::as_raw(self), poutputpin.into_param().abi(), pconnection.into_param().abi(), heventabort.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PushThroughData)(windows_core::Interface::as_raw(self), poutputpin.param().abi(), pconnection.param().abi(), heventabort.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFilterFlags(&self, pfilter: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilterFlags)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilterFlags)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFilterFlags)(windows_core::Interface::as_raw(self), pfilter.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveFilterEx(&self, pfilter: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFilterEx)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).RemoveFilterEx)(windows_core::Interface::as_raw(self), pfilter.param().abi(), flags).ok() } } #[repr(C)] @@ -8342,17 +8342,17 @@ impl IMediaControl { } pub unsafe fn RenderFile(&self, strfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderFile)(windows_core::Interface::as_raw(self), strfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenderFile)(windows_core::Interface::as_raw(self), strfilename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSourceFilter(&self, strfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddSourceFilter)(windows_core::Interface::as_raw(self), strfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddSourceFilter)(windows_core::Interface::as_raw(self), strfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FilterCollection(&self) -> windows_core::Result { @@ -8512,9 +8512,9 @@ impl IMediaFilter { } pub unsafe fn SetSyncSource(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSyncSource)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSyncSource)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn GetSyncSource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8669,17 +8669,17 @@ impl IMediaPropertyBag { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } pub unsafe fn EnumProperty(&self, iproperty: u32, pvarpropertyname: *mut windows_core::VARIANT, pvarpropertyvalue: *mut windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumProperty)(windows_core::Interface::as_raw(self), iproperty, core::mem::transmute(pvarpropertyname), core::mem::transmute(pvarpropertyvalue)).ok() @@ -8712,18 +8712,18 @@ impl IMediaSample { } pub unsafe fn SetSyncPoint(&self, bissyncpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSyncPoint)(windows_core::Interface::as_raw(self), bissyncpoint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSyncPoint)(windows_core::Interface::as_raw(self), bissyncpoint.param().abi()).ok() } pub unsafe fn IsPreroll(&self) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).IsPreroll)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPreroll(&self, bispreroll: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), bispreroll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreroll)(windows_core::Interface::as_raw(self), bispreroll.param().abi()).ok() } pub unsafe fn GetActualDataLength(&self) -> i32 { (windows_core::Interface::vtable(self).GetActualDataLength)(windows_core::Interface::as_raw(self)) @@ -8745,9 +8745,9 @@ impl IMediaSample { } pub unsafe fn SetDiscontinuity(&self, bdiscontinuity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDiscontinuity)(windows_core::Interface::as_raw(self), bdiscontinuity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDiscontinuity)(windows_core::Interface::as_raw(self), bdiscontinuity.param().abi()).ok() } pub unsafe fn GetMediaTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetMediaTime)(windows_core::Interface::as_raw(self), ptimestart, ptimeend).ok() @@ -8803,18 +8803,18 @@ impl IMediaSample2 { } pub unsafe fn SetSyncPoint(&self, bissyncpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSyncPoint)(windows_core::Interface::as_raw(self), bissyncpoint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSyncPoint)(windows_core::Interface::as_raw(self), bissyncpoint.param().abi()).ok() } pub unsafe fn IsPreroll(&self) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).base__.IsPreroll)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetPreroll(&self, bispreroll: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPreroll)(windows_core::Interface::as_raw(self), bispreroll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPreroll)(windows_core::Interface::as_raw(self), bispreroll.param().abi()).ok() } pub unsafe fn GetActualDataLength(&self) -> i32 { (windows_core::Interface::vtable(self).base__.GetActualDataLength)(windows_core::Interface::as_raw(self)) @@ -8836,9 +8836,9 @@ impl IMediaSample2 { } pub unsafe fn SetDiscontinuity(&self, bdiscontinuity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDiscontinuity)(windows_core::Interface::as_raw(self), bdiscontinuity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDiscontinuity)(windows_core::Interface::as_raw(self), bdiscontinuity.param().abi()).ok() } pub unsafe fn GetMediaTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetMediaTime)(windows_core::Interface::as_raw(self), ptimestart, ptimeend).ok() @@ -8968,9 +8968,9 @@ impl IMediaStream { } pub unsafe fn SetSameFormat(&self, pstreamthathasdesiredformat: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSameFormat)(windows_core::Interface::as_raw(self), pstreamthathasdesiredformat.into_param().abi(), 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__ = std::mem::zeroed(); @@ -8978,10 +8978,10 @@ impl IMediaStream { } pub unsafe fn CreateSharedSample(&self, pexistingsample: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedSample)(windows_core::Interface::as_raw(self), pexistingsample.into_param().abi(), 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), dwflags).ok() @@ -9023,9 +9023,9 @@ impl IMediaStreamFilter { } pub unsafe fn SetSyncSource(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSyncSource)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSyncSource)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn GetSyncSource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9037,20 +9037,20 @@ impl IMediaStreamFilter { } pub unsafe fn FindPin(&self, id: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindPin)(windows_core::Interface::as_raw(self), id.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindPin)(windows_core::Interface::as_raw(self), id.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueryFilterInfo(&self, pinfo: *mut FILTER_INFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.QueryFilterInfo)(windows_core::Interface::as_raw(self), pinfo).ok() } pub unsafe fn JoinFilterGraph(&self, pgraph: P0, pname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.JoinFilterGraph)(windows_core::Interface::as_raw(self), pgraph.into_param().abi(), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.JoinFilterGraph)(windows_core::Interface::as_raw(self), pgraph.param().abi(), pname.param().abi()).ok() } pub unsafe fn QueryVendorInfo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9058,9 +9058,9 @@ impl IMediaStreamFilter { } pub unsafe fn AddMediaStream(&self, pammediastream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMediaStream)(windows_core::Interface::as_raw(self), pammediastream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMediaStream)(windows_core::Interface::as_raw(self), pammediastream.param().abi()).ok() } pub unsafe fn GetMediaStream(&self, idpurpose: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9072,9 +9072,9 @@ impl IMediaStreamFilter { } pub unsafe fn SupportSeeking(&self, brenderer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SupportSeeking)(windows_core::Interface::as_raw(self), brenderer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SupportSeeking)(windows_core::Interface::as_raw(self), brenderer.param().abi()).ok() } pub unsafe fn ReferenceTimeToStreamTime(&self, ptime: *mut i64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReferenceTimeToStreamTime)(windows_core::Interface::as_raw(self), ptime).ok() @@ -9088,9 +9088,9 @@ impl IMediaStreamFilter { } pub unsafe fn Flush(&self, bcanceleos: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self), bcanceleos.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Flush)(windows_core::Interface::as_raw(self), bcanceleos.param().abi()).ok() } pub unsafe fn EndOfStream(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndOfStream)(windows_core::Interface::as_raw(self)).ok() @@ -9154,9 +9154,9 @@ impl IMemAllocator { } pub unsafe fn ReleaseBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } } #[repr(C)] @@ -9191,15 +9191,15 @@ impl IMemAllocatorCallbackTemp { } pub unsafe fn ReleaseBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReleaseBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReleaseBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn SetNotify(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotify)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotify)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn GetFreeCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9233,10 +9233,10 @@ impl IMemInputPin { } pub unsafe fn NotifyAllocator(&self, pallocator: P0, breadonly: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyAllocator)(windows_core::Interface::as_raw(self), pallocator.into_param().abi(), breadonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyAllocator)(windows_core::Interface::as_raw(self), pallocator.param().abi(), breadonly.param().abi()).ok() } pub unsafe fn GetAllocatorRequirements(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9244,9 +9244,9 @@ impl IMemInputPin { } pub unsafe fn Receive(&self, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Receive)(windows_core::Interface::as_raw(self), psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Receive)(windows_core::Interface::as_raw(self), psample.param().abi()).ok() } pub unsafe fn ReceiveMultiple(&self, psamples: &[Option]) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9305,18 +9305,18 @@ impl IMixerOCX { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn OnDraw(&self, hdcdraw: P0, prcdraw: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDraw)(windows_core::Interface::as_raw(self), hdcdraw.into_param().abi(), prcdraw).ok() + (windows_core::Interface::vtable(self).OnDraw)(windows_core::Interface::as_raw(self), hdcdraw.param().abi(), 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), lppttopleftsc, prcdrawcc, lprcclip).ok() } pub unsafe fn Advise(&self, pmdns: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pmdns.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pmdns.param().abi()).ok() } pub unsafe fn UnAdvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self)).ok() @@ -9392,9 +9392,9 @@ impl IMixerPinConfig { } pub unsafe fn SetStreamTransparent(&self, bstreamtransparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamTransparent)(windows_core::Interface::as_raw(self), bstreamtransparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamTransparent)(windows_core::Interface::as_raw(self), bstreamtransparent.param().abi()).ok() } pub unsafe fn GetStreamTransparent(&self, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetStreamTransparent)(windows_core::Interface::as_raw(self), pbstreamtransparent).ok() @@ -9451,9 +9451,9 @@ impl IMixerPinConfig2 { } pub unsafe fn SetStreamTransparent(&self, bstreamtransparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStreamTransparent)(windows_core::Interface::as_raw(self), bstreamtransparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStreamTransparent)(windows_core::Interface::as_raw(self), bstreamtransparent.param().abi()).ok() } pub unsafe fn GetStreamTransparent(&self, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetStreamTransparent)(windows_core::Interface::as_raw(self), pbstreamtransparent).ok() @@ -9485,23 +9485,23 @@ impl IMpeg2Demultiplexer { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn CreateOutputPin(&self, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE, pszpinname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOutputPin)(windows_core::Interface::as_raw(self), pmediatype, pszpinname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateOutputPin)(windows_core::Interface::as_raw(self), pmediatype, pszpinname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetOutputPinMediaType(&self, pszpinname: P0, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputPinMediaType)(windows_core::Interface::as_raw(self), pszpinname.into_param().abi(), pmediatype).ok() + (windows_core::Interface::vtable(self).SetOutputPinMediaType)(windows_core::Interface::as_raw(self), pszpinname.param().abi(), pmediatype).ok() } pub unsafe fn DeleteOutputPin(&self, pszpinname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteOutputPin)(windows_core::Interface::as_raw(self), pszpinname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteOutputPin)(windows_core::Interface::as_raw(self), pszpinname.param().abi()).ok() } } #[repr(C)] @@ -9671,9 +9671,9 @@ impl IOverlay { } pub unsafe fn Advise(&self, poverlaynotify: P0, dwinterests: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), poverlaynotify.into_param().abi(), 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() @@ -9754,9 +9754,9 @@ impl IOverlayNotify2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn OnDisplayChange(&self, hmonitor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisplayChange)(windows_core::Interface::as_raw(self), hmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDisplayChange)(windows_core::Interface::as_raw(self), hmonitor.param().abi()).ok() } } #[repr(C)] @@ -9784,19 +9784,19 @@ impl IPersistMediaPropertyBag { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Load(&self, ppropbag: P0, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppropbag.into_param().abi(), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppropbag.param().abi(), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Save(&self, ppropbag: P0, fcleardirty: P1, fsaveallproperties: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), ppropbag.into_param().abi(), fcleardirty.into_param().abi(), fsaveallproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), ppropbag.param().abi(), fcleardirty.param().abi(), fsaveallproperties.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9819,16 +9819,16 @@ impl IPin { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn Connect(&self, preceivepin: P0, pmt: Option<*const super::MediaFoundation::AM_MEDIA_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), preceivepin.into_param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), preceivepin.param().abi(), core::mem::transmute(pmt.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn ReceiveConnection(&self, pconnector: P0, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReceiveConnection)(windows_core::Interface::as_raw(self), pconnector.into_param().abi(), pmt).ok() + (windows_core::Interface::vtable(self).ReceiveConnection)(windows_core::Interface::as_raw(self), pconnector.param().abi(), pmt).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -9920,9 +9920,9 @@ impl IPinConnection { } pub unsafe fn NotifyEndOfStream(&self, hnotifyevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyEndOfStream)(windows_core::Interface::as_raw(self), hnotifyevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyEndOfStream)(windows_core::Interface::as_raw(self), hnotifyevent.param().abi()).ok() } pub unsafe fn IsEndPin(&self) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).IsEndPin)(windows_core::Interface::as_raw(self)) @@ -9947,9 +9947,9 @@ windows_core::imp::interface_hierarchy!(IPinFlowControl, windows_core::IUnknown) impl IPinFlowControl { pub unsafe fn Block(&self, dwblockflags: u32, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Block)(windows_core::Interface::as_raw(self), dwblockflags, hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Block)(windows_core::Interface::as_raw(self), dwblockflags, hevent.param().abi()).ok() } } #[repr(C)] @@ -10001,23 +10001,23 @@ impl IPinInfo { } pub unsafe fn Connect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } pub unsafe fn ConnectDirect(&self, ppin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectDirect)(windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectDirect)(windows_core::Interface::as_raw(self), ppin.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConnectWithType(&self, ppin: P0, pmediatype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectWithType)(windows_core::Interface::as_raw(self), ppin.into_param().abi(), pmediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectWithType)(windows_core::Interface::as_raw(self), ppin.param().abi(), pmediatype.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -10103,15 +10103,15 @@ impl IQualityControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Notify(&self, pself: P0, q: Quality) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pself.into_param().abi(), core::mem::transmute(q)).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pself.param().abi(), core::mem::transmute(q)).ok() } pub unsafe fn SetSink(&self, piqc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSink)(windows_core::Interface::as_raw(self), piqc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSink)(windows_core::Interface::as_raw(self), piqc.param().abi()).ok() } } #[repr(C)] @@ -10170,9 +10170,9 @@ windows_core::imp::interface_hierarchy!(IRegisterServiceProvider, windows_core:: impl IRegisterServiceProvider { pub unsafe fn RegisterService(&self, guidservice: *const windows_core::GUID, punkobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterService)(windows_core::Interface::as_raw(self), guidservice, punkobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterService)(windows_core::Interface::as_raw(self), guidservice, punkobject.param().abi()).ok() } } #[repr(C)] @@ -10201,55 +10201,55 @@ windows_core::imp::interface_hierarchy!(IResourceManager, windows_core::IUnknown impl IResourceManager { pub unsafe fn Register(&self, pname: P0, cresource: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), pname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterGroup)(windows_core::Interface::as_raw(self), pname.into_param().abi(), paltokens.len().try_into().unwrap(), core::mem::transmute(paltokens.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterGroup)(windows_core::Interface::as_raw(self), pname.param().abi(), paltokens.len().try_into().unwrap(), core::mem::transmute(paltokens.as_ptr()), &mut result__).map(|| result__) } pub unsafe fn RequestResource(&self, idresource: i32, pfocusobject: P0, pconsumer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestResource)(windows_core::Interface::as_raw(self), idresource, pfocusobject.into_param().abi(), pconsumer.into_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: P0, hr: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyAcquire)(windows_core::Interface::as_raw(self), idresource, pconsumer.into_param().abi(), 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: P0, bstillwant: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyRelease)(windows_core::Interface::as_raw(self), idresource, pconsumer.into_param().abi(), bstillwant.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyRelease)(windows_core::Interface::as_raw(self), idresource, pconsumer.param().abi(), bstillwant.param().abi()).ok() } pub unsafe fn CancelRequest(&self, idresource: i32, pconsumer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelRequest)(windows_core::Interface::as_raw(self), idresource, pconsumer.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), pfocusobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), pfocusobject.param().abi()).ok() } pub unsafe fn ReleaseFocus(&self, pfocusobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseFocus)(windows_core::Interface::as_raw(self), pfocusobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseFocus)(windows_core::Interface::as_raw(self), pfocusobject.param().abi()).ok() } } #[repr(C)] @@ -10269,10 +10269,10 @@ windows_core::imp::interface_hierarchy!(ISeekingPassThru, windows_core::IUnknown impl ISeekingPassThru { pub unsafe fn Init(&self, bsupportrendering: P0, ppin: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), bsupportrendering.into_param().abi(), ppin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), bsupportrendering.param().abi(), ppin.param().abi()).ok() } } #[repr(C)] @@ -10324,17 +10324,17 @@ windows_core::imp::interface_hierarchy!(IStreamBuilder, windows_core::IUnknown); impl IStreamBuilder { pub unsafe fn Render(&self, ppinout: P0, pgraph: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), pgraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), ppinout.param().abi(), pgraph.param().abi()).ok() } pub unsafe fn Backout(&self, ppinout: P0, pgraph: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Backout)(windows_core::Interface::as_raw(self), ppinout.into_param().abi(), pgraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Backout)(windows_core::Interface::as_raw(self), ppinout.param().abi(), pgraph.param().abi()).ok() } } #[repr(C)] @@ -10357,9 +10357,9 @@ impl IStreamSample { } pub unsafe fn Update(&self, dwflags: u32, hevent: P0, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), dwflags, hevent.into_param().abi(), pfnapc, dwapcdata).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), dwflags, hevent.param().abi(), 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), dwflags, dwmilliseconds).ok() @@ -10491,9 +10491,9 @@ windows_core::imp::interface_hierarchy!(IVMRFilterConfig, windows_core::IUnknown impl IVMRFilterConfig { pub unsafe fn SetImageCompositor(&self, lpvmrimgcompositor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImageCompositor)(windows_core::Interface::as_raw(self), lpvmrimgcompositor.into_param().abi()).ok() + (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), dwmaxstreams).ok() @@ -10533,9 +10533,9 @@ windows_core::imp::interface_hierarchy!(IVMRFilterConfig9, windows_core::IUnknow impl IVMRFilterConfig9 { pub unsafe fn SetImageCompositor(&self, lpvmrimgcompositor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImageCompositor)(windows_core::Interface::as_raw(self), lpvmrimgcompositor.into_param().abi()).ok() + (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), dwmaxstreams).ok() @@ -10576,33 +10576,33 @@ impl IVMRImageCompositor { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn InitCompositionTarget(&self, pd3ddevice: P0, pddsrendertarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitCompositionTarget)(windows_core::Interface::as_raw(self), pd3ddevice.into_param().abi(), pddsrendertarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitCompositionTarget)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn TermCompositionTarget(&self, pd3ddevice: P0, pddsrendertarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TermCompositionTarget)(windows_core::Interface::as_raw(self), pd3ddevice.into_param().abi(), pddsrendertarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TermCompositionTarget)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi()).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), dwstrmid, pmt, ftexture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), dwstrmid, pmt, ftexture.param().abi()).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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.into_param().abi(), pddsrendertarget.into_param().abi(), pmtrendertarget, rtstart, rtend, dwclrbkgnd, pvideostreaminfo, cstreams).ok() + (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi(), pmtrendertarget, rtstart, rtend, dwclrbkgnd, pvideostreaminfo, cstreams).ok() } } #[repr(C)] @@ -10630,30 +10630,30 @@ windows_core::imp::interface_hierarchy!(IVMRImageCompositor9, windows_core::IUnk impl IVMRImageCompositor9 { pub unsafe fn InitCompositionDevice(&self, pd3ddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitCompositionDevice)(windows_core::Interface::as_raw(self), pd3ddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitCompositionDevice)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi()).ok() } pub unsafe fn TermCompositionDevice(&self, pd3ddevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TermCompositionDevice)(windows_core::Interface::as_raw(self), pd3ddevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TermCompositionDevice)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi()).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), dwstrmid, pmt, ftexture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamMediaType)(windows_core::Interface::as_raw(self), dwstrmid, pmt, ftexture.param().abi()).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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.into_param().abi(), pddsrendertarget.into_param().abi(), pmtrendertarget, rtstart, rtend, dwclrbkgnd, pvideostreaminfo, cstreams).ok() + (windows_core::Interface::vtable(self).CompositeImage)(windows_core::Interface::as_raw(self), pd3ddevice.param().abi(), pddsrendertarget.param().abi(), pmtrendertarget, rtstart, rtend, dwclrbkgnd, pvideostreaminfo, cstreams).ok() } } #[repr(C)] @@ -10765,10 +10765,10 @@ impl IVMRImagePresenterExclModeConfig { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn SetXlcModeDDObjAndPrimarySurface(&self, lpddobj: P0, lpprimarysurf: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetXlcModeDDObjAndPrimarySurface)(windows_core::Interface::as_raw(self), lpddobj.into_param().abi(), lpprimarysurf.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetXlcModeDDObjAndPrimarySurface)(windows_core::Interface::as_raw(self), lpddobj.param().abi(), lpprimarysurf.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn GetXlcModeDDObjAndPrimarySurface(&self, lpddobj: *mut Option, lpprimarysurf: *mut Option) -> windows_core::Result<()> { @@ -10877,9 +10877,9 @@ impl IVMRMixerControl { } pub unsafe fn SetBackgroundClr(&self, clrbkg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), clrbkg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), clrbkg.param().abi()).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), lpclrbkg).ok() @@ -10932,9 +10932,9 @@ impl IVMRMixerControl9 { } pub unsafe fn SetBackgroundClr(&self, clrbkg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), clrbkg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBackgroundClr)(windows_core::Interface::as_raw(self), clrbkg.param().abi()).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), lpclrbkg).ok() @@ -11112,15 +11112,15 @@ impl IVMRSurfaceAllocator { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub unsafe fn PrepareSurface(&self, dwuserid: usize, lpsurface: P0, dwsurfaceflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareSurface)(windows_core::Interface::as_raw(self), dwuserid, lpsurface.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseNotify)(windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseNotify)(windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.param().abi()).ok() } } #[repr(C)] @@ -11154,9 +11154,9 @@ impl IVMRSurfaceAllocator9 { } pub unsafe fn AdviseNotify(&self, lpivmrsurfallocnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseNotify)(windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseNotify)(windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.param().abi()).ok() } } #[repr(C)] @@ -11190,9 +11190,9 @@ impl IVMRSurfaceAllocatorEx9 { } pub unsafe fn AdviseNotify(&self, lpivmrsurfallocnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AdviseNotify)(windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AdviseNotify)(windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.param().abi()).ok() } #[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<()> { @@ -11212,25 +11212,25 @@ windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorNotify, windows_core impl IVMRSurfaceAllocatorNotify { pub unsafe fn AdviseSurfaceAllocator(&self, dwuserid: usize, lpivrmsurfaceallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSurfaceAllocator)(windows_core::Interface::as_raw(self), dwuserid, lpivrmsurfaceallocator.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.into_param().abi(), hmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.param().abi(), hmonitor.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] pub unsafe fn ChangeDDrawDevice(&self, lpddrawdevice: P0, hmonitor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.into_param().abi(), hmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeDDrawDevice)(windows_core::Interface::as_raw(self), lpddrawdevice.param().abi(), hmonitor.param().abi()).ok() } pub unsafe fn RestoreDDrawSurfaces(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestoreDDrawSurfaces)(windows_core::Interface::as_raw(self)).ok() @@ -11240,9 +11240,9 @@ impl IVMRSurfaceAllocatorNotify { } pub unsafe fn SetBorderColor(&self, clrborder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clrborder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clrborder.param().abi()).ok() } } #[repr(C)] @@ -11266,25 +11266,25 @@ windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorNotify9, windows_cor impl IVMRSurfaceAllocatorNotify9 { pub unsafe fn AdviseSurfaceAllocator(&self, dwuserid: usize, lpivrmsurfaceallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSurfaceAllocator)(windows_core::Interface::as_raw(self), dwuserid, lpivrmsurfaceallocator.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.into_param().abi(), hmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.param().abi(), hmonitor.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] pub unsafe fn ChangeD3DDevice(&self, lpd3ddevice: P0, hmonitor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.into_param().abi(), hmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeD3DDevice)(windows_core::Interface::as_raw(self), lpd3ddevice.param().abi(), hmonitor.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn AllocateSurfaceHelper(&self, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32, lplpsurface: *mut Option) -> windows_core::Result<()> { @@ -11326,9 +11326,9 @@ impl IVMRVideoStreamControl { } pub unsafe fn SetStreamActiveState(&self, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.param().abi()).ok() } pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11354,9 +11354,9 @@ windows_core::imp::interface_hierarchy!(IVMRVideoStreamControl9, windows_core::I impl IVMRVideoStreamControl9 { pub unsafe fn SetStreamActiveState(&self, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.param().abi()).ok() } pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11396,17 +11396,17 @@ impl IVMRWindowlessControl { } pub unsafe fn SetVideoClippingWindow(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn RepaintVideo(&self, hwnd: P0, hdc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hdc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), hwnd.param().abi(), hdc.param().abi()).ok() } pub unsafe fn DisplayModeChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisplayModeChanged)(windows_core::Interface::as_raw(self)).ok() @@ -11417,9 +11417,9 @@ impl IVMRWindowlessControl { } pub unsafe fn SetBorderColor(&self, clr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.param().abi()).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11427,9 +11427,9 @@ impl IVMRWindowlessControl { } pub unsafe fn SetColorKey(&self, clr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), clr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetColorKey)(windows_core::Interface::as_raw(self), clr.param().abi()).ok() } pub unsafe fn GetColorKey(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11485,17 +11485,17 @@ impl IVMRWindowlessControl9 { } pub unsafe fn SetVideoClippingWindow(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVideoClippingWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn RepaintVideo(&self, hwnd: P0, hdc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hdc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RepaintVideo)(windows_core::Interface::as_raw(self), hwnd.param().abi(), hdc.param().abi()).ok() } pub unsafe fn DisplayModeChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisplayModeChanged)(windows_core::Interface::as_raw(self)).ok() @@ -11506,9 +11506,9 @@ impl IVMRWindowlessControl9 { } pub unsafe fn SetBorderColor(&self, clr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.param().abi()).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11734,9 +11734,9 @@ impl IVPNotify2 { } pub unsafe fn SetVPSyncMaster(&self, bvpsyncmaster: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVPSyncMaster)(windows_core::Interface::as_raw(self), bvpsyncmaster.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVPSyncMaster)(windows_core::Interface::as_raw(self), bvpsyncmaster.param().abi()).ok() } pub unsafe fn GetVPSyncMaster(&self, pbvpsyncmaster: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVPSyncMaster)(windows_core::Interface::as_raw(self), pbvpsyncmaster).ok() @@ -11847,15 +11847,15 @@ windows_core::imp::interface_hierarchy!(IVideoFrameStep, windows_core::IUnknown) impl IVideoFrameStep { pub unsafe fn Step(&self, dwframes: u32, pstepobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Step)(windows_core::Interface::as_raw(self), dwframes, pstepobject.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CanStep)(windows_core::Interface::as_raw(self), bmultiple, pstepobject.into_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() @@ -12040,9 +12040,9 @@ windows_core::imp::interface_hierarchy!(IVideoWindow, windows_core::IUnknown, su impl IVideoWindow { pub unsafe fn SetCaption(&self, strcaption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), strcaption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), strcaption.param().abi()).ok() } pub unsafe fn Caption(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12228,9 +12228,9 @@ windows_core::imp::interface_hierarchy!(IWMCodecAMVideoAccelerator, windows_core impl IWMCodecAMVideoAccelerator { pub unsafe fn SetAcceleratorInterface(&self, piamva: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAcceleratorInterface)(windows_core::Interface::as_raw(self), piamva.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAcceleratorInterface)(windows_core::Interface::as_raw(self), piamva.param().abi()).ok() } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn NegotiateConnection(&self, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> { @@ -12239,9 +12239,9 @@ impl IWMCodecAMVideoAccelerator { #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub unsafe fn SetPlayerNotify(&self, phook: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlayerNotify)(windows_core::Interface::as_raw(self), phook.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlayerNotify)(windows_core::Interface::as_raw(self), phook.param().abi()).ok() } } #[repr(C)] @@ -12263,16 +12263,16 @@ impl IWMCodecVideoAccelerator { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn NegotiateConnection(&self, piamva: P0, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NegotiateConnection)(windows_core::Interface::as_raw(self), piamva.into_param().abi(), pmediatype).ok() + (windows_core::Interface::vtable(self).NegotiateConnection)(windows_core::Interface::as_raw(self), piamva.param().abi(), pmediatype).ok() } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub unsafe fn SetPlayerNotify(&self, phook: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlayerNotify)(windows_core::Interface::as_raw(self), phook.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlayerNotify)(windows_core::Interface::as_raw(self), phook.param().abi()).ok() } } #[repr(C)] 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 64cfc72360..9a8b9a2256 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs @@ -17,10 +17,10 @@ pub unsafe fn DMOGetTypes(clsiddmo: *const windows_core::GUID, ulinputtypesreque #[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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), clsiddmo, guidcategory, dwflags, cintypes, pintypes, couttypes, 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<()> { @@ -214,9 +214,9 @@ impl IMediaObject { } pub unsafe fn ProcessInput(&self, dwinputstreamindex: u32, pbuffer: P0, dwflags: u32, rttimestamp: i64, rttimelength: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), dwinputstreamindex, pbuffer.into_param().abi(), dwflags, rttimestamp, 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), dwflags, poutputbuffers.len().try_into().unwrap(), core::mem::transmute(poutputbuffers.as_ptr()), pdwstatus).ok() 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 754a0c6660..f87217ecf4 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -1,96 +1,96 @@ #[inline] pub unsafe fn KsCreateAllocator(connectionhandle: P0, allocatorframing: *const KSALLOCATOR_FRAMING, allocatorhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(connectionhandle.into_param().abi(), allocatorframing, allocatorhandle) + KsCreateAllocator(connectionhandle.param().abi(), allocatorframing, allocatorhandle) } #[inline] pub unsafe fn KsCreateAllocator2(connectionhandle: P0, allocatorframing: *const KSALLOCATOR_FRAMING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - KsCreateAllocator2(connectionhandle.into_param().abi(), allocatorframing, &mut result__).map(|| result__) + KsCreateAllocator2(connectionhandle.param().abi(), allocatorframing, &mut result__).map(|| result__) } #[inline] pub unsafe fn KsCreateClock(connectionhandle: P0, clockcreate: *const KSCLOCK_CREATE, clockhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(connectionhandle.into_param().abi(), clockcreate, clockhandle) + KsCreateClock(connectionhandle.param().abi(), clockcreate, clockhandle) } #[inline] pub unsafe fn KsCreateClock2(connectionhandle: P0, clockcreate: *const KSCLOCK_CREATE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - KsCreateClock2(connectionhandle.into_param().abi(), clockcreate, &mut result__).map(|| result__) + KsCreateClock2(connectionhandle.param().abi(), clockcreate, &mut result__).map(|| result__) } #[inline] pub unsafe fn KsCreatePin(filterhandle: P0, connect: *const KSPIN_CONNECT, desiredaccess: u32, connectionhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filterhandle.into_param().abi(), connect, desiredaccess, connectionhandle) + KsCreatePin(filterhandle.param().abi(), connect, desiredaccess, connectionhandle) } #[inline] pub unsafe fn KsCreatePin2(filterhandle: P0, connect: *const KSPIN_CONNECT, desiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - KsCreatePin2(filterhandle.into_param().abi(), connect, desiredaccess, &mut result__).map(|| result__) + KsCreatePin2(filterhandle.param().abi(), connect, desiredaccess, &mut result__).map(|| result__) } #[inline] pub unsafe fn KsCreateTopologyNode(parenthandle: P0, nodecreate: *const KSNODE_CREATE, desiredaccess: u32, nodehandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(parenthandle.into_param().abi(), nodecreate, desiredaccess, nodehandle) + KsCreateTopologyNode(parenthandle.param().abi(), nodecreate, desiredaccess, nodehandle) } #[inline] pub unsafe fn KsCreateTopologyNode2(parenthandle: P0, nodecreate: *const KSNODE_CREATE, desiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - KsCreateTopologyNode2(parenthandle.into_param().abi(), nodecreate, desiredaccess, &mut result__).map(|| result__) + KsCreateTopologyNode2(parenthandle.param().abi(), nodecreate, desiredaccess, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Media_MediaFoundation")] #[inline] pub unsafe fn KsGetMediaType(position: i32, ammediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE, filterhandle: P0, pinfactoryid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(position, ammediatype, filterhandle.into_param().abi(), pinfactoryid).ok() + KsGetMediaType(position, ammediatype, filterhandle.param().abi(), pinfactoryid).ok() } #[inline] pub unsafe fn KsGetMediaTypeCount(filterhandle: P0, pinfactoryid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ksproxy.ax" "system" fn KsGetMediaTypeCount(filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32, mediatypecount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - KsGetMediaTypeCount(filterhandle.into_param().abi(), pinfactoryid, &mut result__).map(|| result__) + KsGetMediaTypeCount(filterhandle.param().abi(), pinfactoryid, &mut result__).map(|| result__) } #[inline] pub unsafe fn KsGetMultiplePinFactoryItems(filterhandle: P0, pinfactoryid: u32, propertyid: u32, items: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filterhandle.into_param().abi(), pinfactoryid, propertyid, items).ok() + KsGetMultiplePinFactoryItems(filterhandle.param().abi(), pinfactoryid, propertyid, items).ok() } #[inline] pub unsafe fn KsOpenDefaultDevice(category: *const windows_core::GUID, access: u32) -> windows_core::Result { @@ -106,10 +106,10 @@ pub unsafe fn KsResolveRequiredAttributes(datarange: *const KSDATAFORMAT, attrib #[inline] pub unsafe fn KsSynchronousDeviceControl(handle: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), iocontrol, core::mem::transmute(inbuffer.unwrap_or(std::ptr::null())), inlength, core::mem::transmute(outbuffer.unwrap_or(std::ptr::null_mut())), outlength, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut()))).ok() + KsSynchronousDeviceControl(handle.param().abi(), iocontrol, core::mem::transmute(inbuffer.unwrap_or(std::ptr::null())), inlength, core::mem::transmute(outbuffer.unwrap_or(std::ptr::null_mut())), outlength, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut()))).ok() } windows_core::imp::define_interface!(IKsAggregateControl, IKsAggregateControl_Vtbl, 0x7f40eac0_3947_11d2_874e_00a0c9223196); windows_core::imp::interface_hierarchy!(IKsAggregateControl, windows_core::IUnknown); @@ -174,15 +174,15 @@ impl IKsAllocatorEx { } pub unsafe fn KsSetAllocatorHandle(&self, allocatorhandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsSetAllocatorHandle)(windows_core::Interface::as_raw(self), allocatorhandle.into_param().abi()) + (windows_core::Interface::vtable(self).KsSetAllocatorHandle)(windows_core::Interface::as_raw(self), allocatorhandle.param().abi()) } pub unsafe fn KsCreateAllocatorAndGetHandle(&self, kspin: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsCreateAllocatorAndGetHandle)(windows_core::Interface::as_raw(self), kspin.into_param().abi()) + (windows_core::Interface::vtable(self).KsCreateAllocatorAndGetHandle)(windows_core::Interface::as_raw(self), kspin.param().abi()) } } #[repr(C)] @@ -273,9 +273,9 @@ impl IKsDataTypeCompletion { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn KsCompleteMediaType(&self, filterhandle: P0, pinfactoryid: u32, ammediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsCompleteMediaType)(windows_core::Interface::as_raw(self), filterhandle.into_param().abi(), pinfactoryid, ammediatype).ok() + (windows_core::Interface::vtable(self).KsCompleteMediaType)(windows_core::Interface::as_raw(self), filterhandle.param().abi(), pinfactoryid, ammediatype).ok() } } #[repr(C)] @@ -292,10 +292,10 @@ impl IKsDataTypeHandler { #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsCompleteIoOperation(&self, sample: P0, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).KsCompleteIoOperation)(windows_core::Interface::as_raw(self), sample.into_param().abi(), streamheader, iooperation, cancelled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).KsCompleteIoOperation)(windows_core::Interface::as_raw(self), sample.param().abi(), streamheader, iooperation, cancelled.param().abi()).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), dataranges).ok() @@ -303,9 +303,9 @@ impl IKsDataTypeHandler { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsPrepareIoOperation)(windows_core::Interface::as_raw(self), sample.into_param().abi(), streamheader, iooperation).ok() + (windows_core::Interface::vtable(self).KsPrepareIoOperation)(windows_core::Interface::as_raw(self), sample.param().abi(), streamheader, iooperation).ok() } pub unsafe fn KsQueryExtendedSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -356,16 +356,16 @@ windows_core::imp::interface_hierarchy!(IKsInterfaceHandler, windows_core::IUnkn impl IKsInterfaceHandler { pub unsafe fn KsSetPin(&self, kspin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsSetPin)(windows_core::Interface::as_raw(self), kspin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).KsSetPin)(windows_core::Interface::as_raw(self), kspin.param().abi()).ok() } #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsProcessMediaSamples(&self, ksdatatypehandler: P0, samplelist: *const Option, samplecount: *mut i32, iooperation: KSIOOPERATION, streamsegment: *mut *mut KSSTREAM_SEGMENT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsProcessMediaSamples)(windows_core::Interface::as_raw(self), ksdatatypehandler.into_param().abi(), core::mem::transmute(samplelist), samplecount, iooperation, streamsegment).ok() + (windows_core::Interface::vtable(self).KsProcessMediaSamples)(windows_core::Interface::as_raw(self), ksdatatypehandler.param().abi(), core::mem::transmute(samplelist), samplecount, iooperation, 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), streamsegment).ok() @@ -522,9 +522,9 @@ impl IKsPin { #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsDeliver(&self, sample: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsDeliver)(windows_core::Interface::as_raw(self), sample.into_param().abi(), 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), streamsegment).ok() @@ -536,9 +536,9 @@ impl IKsPin { #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsReceiveAllocator(&self, memallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsReceiveAllocator)(windows_core::Interface::as_raw(self), memallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).KsReceiveAllocator)(windows_core::Interface::as_raw(self), memallocator.param().abi()).ok() } pub unsafe fn KsRenegotiateAllocator(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KsRenegotiateAllocator)(windows_core::Interface::as_raw(self)).ok() @@ -602,9 +602,9 @@ impl IKsPinEx { #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsDeliver(&self, sample: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.KsDeliver)(windows_core::Interface::as_raw(self), sample.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).base__.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).base__.KsMediaSamplesCompleted)(windows_core::Interface::as_raw(self), streamsegment).ok() @@ -616,9 +616,9 @@ impl IKsPinEx { #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsReceiveAllocator(&self, memallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.KsReceiveAllocator)(windows_core::Interface::as_raw(self), memallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.KsReceiveAllocator)(windows_core::Interface::as_raw(self), memallocator.param().abi()).ok() } pub unsafe fn KsRenegotiateAllocator(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.KsRenegotiateAllocator)(windows_core::Interface::as_raw(self)).ok() @@ -635,9 +635,9 @@ impl IKsPinEx { #[cfg(feature = "Win32_Media_DirectShow")] pub unsafe fn KsNotifyError(&self, sample: P0, hr: windows_core::HRESULT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsNotifyError)(windows_core::Interface::as_raw(self), sample.into_param().abi(), hr) + (windows_core::Interface::vtable(self).KsNotifyError)(windows_core::Interface::as_raw(self), sample.param().abi(), hr) } } #[repr(C)] @@ -679,9 +679,9 @@ impl IKsPinPipe { } pub unsafe fn KsSetPipe(&self, ksallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsSetPipe)(windows_core::Interface::as_raw(self), ksallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).KsSetPipe)(windows_core::Interface::as_raw(self), ksallocator.param().abi()).ok() } pub unsafe fn KsGetPipeAllocatorFlag(&self) -> u32 { (windows_core::Interface::vtable(self).KsGetPipeAllocatorFlag)(windows_core::Interface::as_raw(self)) @@ -751,9 +751,9 @@ impl IKsQualityForwarder { } pub unsafe fn KsFlushClient(&self, pin: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KsFlushClient)(windows_core::Interface::as_raw(self), pin.into_param().abi()) + (windows_core::Interface::vtable(self).KsFlushClient)(windows_core::Interface::as_raw(self), pin.param().abi()) } } #[repr(C)] @@ -766,9 +766,9 @@ windows_core::imp::interface_hierarchy!(IKsTopology, windows_core::IUnknown); impl IKsTopology { pub unsafe fn CreateNodeInstance(&self, nodeid: u32, flags: u32, desiredaccess: u32, unkouter: P0, interfaceid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateNodeInstance)(windows_core::Interface::as_raw(self), nodeid, flags, desiredaccess, unkouter.into_param().abi(), interfaceid, interface).ok() + (windows_core::Interface::vtable(self).CreateNodeInstance)(windows_core::Interface::as_raw(self), nodeid, flags, desiredaccess, unkouter.param().abi(), interfaceid, interface).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 228dc2c10e..44e466c89d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs @@ -51,10 +51,10 @@ impl IWindowsMediaLibrarySharingDeviceProperties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetProperty(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -111,10 +111,10 @@ impl IWindowsMediaLibrarySharingDevices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDevice(&self, deviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDevice)(windows_core::Interface::as_raw(self), deviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDevice)(windows_core::Interface::as_raw(self), deviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -139,9 +139,9 @@ windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingServices, win impl IWindowsMediaLibrarySharingServices { pub unsafe fn showShareMediaCPL(&self, device: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).showShareMediaCPL)(windows_core::Interface::as_raw(self), device.into_param().abi()).ok() + (windows_core::Interface::vtable(self).showShareMediaCPL)(windows_core::Interface::as_raw(self), device.param().abi()).ok() } pub unsafe fn userHomeMediaSharingState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -149,9 +149,9 @@ impl IWindowsMediaLibrarySharingServices { } pub unsafe fn SetuserHomeMediaSharingState(&self, sharingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetuserHomeMediaSharingState)(windows_core::Interface::as_raw(self), sharingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetuserHomeMediaSharingState)(windows_core::Interface::as_raw(self), sharingenabled.param().abi()).ok() } pub unsafe fn userHomeMediaSharingLibraryName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -159,9 +159,9 @@ impl IWindowsMediaLibrarySharingServices { } pub unsafe fn SetuserHomeMediaSharingLibraryName(&self, libraryname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetuserHomeMediaSharingLibraryName)(windows_core::Interface::as_raw(self), libraryname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetuserHomeMediaSharingLibraryName)(windows_core::Interface::as_raw(self), libraryname.param().abi()).ok() } pub unsafe fn computerHomeMediaSharingAllowedState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -169,9 +169,9 @@ impl IWindowsMediaLibrarySharingServices { } pub unsafe fn SetcomputerHomeMediaSharingAllowedState(&self, sharingallowed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcomputerHomeMediaSharingAllowedState)(windows_core::Interface::as_raw(self), sharingallowed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcomputerHomeMediaSharingAllowedState)(windows_core::Interface::as_raw(self), sharingallowed.param().abi()).ok() } pub unsafe fn userInternetMediaSharingState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -179,9 +179,9 @@ impl IWindowsMediaLibrarySharingServices { } pub unsafe fn SetuserInternetMediaSharingState(&self, sharingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetuserInternetMediaSharingState)(windows_core::Interface::as_raw(self), sharingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetuserInternetMediaSharingState)(windows_core::Interface::as_raw(self), sharingenabled.param().abi()).ok() } pub unsafe fn computerInternetMediaSharingAllowedState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -189,9 +189,9 @@ impl IWindowsMediaLibrarySharingServices { } pub unsafe fn SetcomputerInternetMediaSharingAllowedState(&self, sharingallowed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcomputerInternetMediaSharingAllowedState)(windows_core::Interface::as_raw(self), sharingallowed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcomputerInternetMediaSharingAllowedState)(windows_core::Interface::as_raw(self), sharingallowed.param().abi()).ok() } pub unsafe fn internetMediaSharingSecurityGroup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -199,9 +199,9 @@ impl IWindowsMediaLibrarySharingServices { } pub unsafe fn SetinternetMediaSharingSecurityGroup(&self, securitygroup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetinternetMediaSharingSecurityGroup)(windows_core::Interface::as_raw(self), securitygroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetinternetMediaSharingSecurityGroup)(windows_core::Interface::as_raw(self), securitygroup.param().abi()).ok() } pub unsafe fn allowSharingToAllDevices(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -209,24 +209,24 @@ impl IWindowsMediaLibrarySharingServices { } pub unsafe fn SetallowSharingToAllDevices(&self, sharingenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetallowSharingToAllDevices)(windows_core::Interface::as_raw(self), sharingenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetallowSharingToAllDevices)(windows_core::Interface::as_raw(self), sharingenabled.param().abi()).ok() } pub unsafe fn setDefaultAuthorization(&self, macaddresses: P0, friendlyname: P1, authorization: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).setDefaultAuthorization)(windows_core::Interface::as_raw(self), macaddresses.into_param().abi(), friendlyname.into_param().abi(), authorization.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setDefaultAuthorization)(windows_core::Interface::as_raw(self), macaddresses.param().abi(), friendlyname.param().abi(), authorization.param().abi()).ok() } pub unsafe fn setAuthorizationState(&self, macaddress: P0, authorizationstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setAuthorizationState)(windows_core::Interface::as_raw(self), macaddress.into_param().abi(), authorizationstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAuthorizationState)(windows_core::Interface::as_raw(self), macaddress.param().abi(), authorizationstate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getAllDevices(&self) -> windows_core::Result { 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 6d4891f047..4687312c17 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -21,28 +21,28 @@ pub unsafe fn DXVA2CreateDirect3DDeviceManager9(presettoken: *mut u32, ppdevicem #[inline] pub unsafe fn DXVA2CreateVideoService(pdd: P0, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppservice).ok() + DXVA2CreateVideoService(pdd.param().abi(), riid, ppservice).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] pub unsafe fn DXVAHD_CreateDevice(pd3ddevice: P0, pcontentdesc: *const DXVAHD_CONTENT_DESC, usage: DXVAHD_DEVICE_USAGE, pplugin: PDXVAHDSW_Plugin) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - DXVAHD_CreateDevice(pd3ddevice.into_param().abi(), pcontentdesc, usage, pplugin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + DXVAHD_CreateDevice(pd3ddevice.param().abi(), pcontentdesc, usage, pplugin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFAddPeriodicCallback(callback: MFPERIODICCALLBACK, pcontext: P0, pdwkey: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(callback, pcontext.into_param().abi(), core::mem::transmute(pdwkey.unwrap_or(std::ptr::null_mut()))).ok() + MFAddPeriodicCallback(callback, pcontext.param().abi(), core::mem::transmute(pdwkey.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn MFAllocateSerialWorkQueue(dwworkqueue: u32) -> windows_core::Result { @@ -70,42 +70,42 @@ pub unsafe fn MFAverageTimePerFrameToFrameRate(unaveragetimeperframe: u64, punnu #[inline] pub unsafe fn MFBeginCreateFile(accessmode: MF_FILE_ACCESSMODE, openmode: MF_FILE_OPENMODE, fflags: MF_FILE_FLAGS, pwszfilepath: P0, pcallback: P1, pstate: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - MFBeginCreateFile(accessmode, openmode, fflags, pwszfilepath.into_param().abi(), pcallback.into_param().abi(), pstate.into_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: P0, dwtaskid: u32, pdonecallback: P1, pdonestate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwworkqueueid, wszclass.into_param().abi(), dwtaskid, pdonecallback.into_param().abi(), pdonestate.into_param().abi()).ok() + MFBeginRegisterWorkQueueWithMMCSS(dwworkqueueid, wszclass.param().abi(), dwtaskid, pdonecallback.param().abi(), pdonestate.param().abi()).ok() } #[inline] pub unsafe fn MFBeginRegisterWorkQueueWithMMCSSEx(dwworkqueueid: u32, wszclass: P0, dwtaskid: u32, lpriority: i32, pdonecallback: P1, pdonestate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwworkqueueid, wszclass.into_param().abi(), dwtaskid, lpriority, pdonecallback.into_param().abi(), pdonestate.into_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: P0, pdonestate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwworkqueueid, pdonecallback.into_param().abi(), pdonestate.into_param().abi()).ok() + MFBeginUnregisterWorkQueueWithMMCSS(dwworkqueueid, pdonecallback.param().abi(), pdonestate.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -122,10 +122,10 @@ pub unsafe fn MFCalculateImageSize(guidsubtype: *const windows_core::GUID, unwid #[inline] pub unsafe fn MFCancelCreateFile(pcancelcookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCancelCreateFile(pcancelcookie : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFCancelCreateFile(pcancelcookie.into_param().abi()).ok() + MFCancelCreateFile(pcancelcookie.param().abi()).ok() } #[inline] pub unsafe fn MFCancelWorkItem(key: u64) -> windows_core::Result<()> { @@ -135,21 +135,21 @@ pub unsafe fn MFCancelWorkItem(key: u64) -> windows_core::Result<()> { #[inline] pub unsafe fn MFCombineSamples(psample: P0, psampletoadd: P1, dwmaxmergeddurationinms: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCombineSamples(psample.into_param().abi(), psampletoadd.into_param().abi(), dwmaxmergeddurationinms, &mut result__).map(|| result__) + MFCombineSamples(psample.param().abi(), psampletoadd.param().abi(), dwmaxmergeddurationinms, &mut result__).map(|| result__) } #[inline] pub unsafe fn MFCompareFullToPartialMediaType(pmftypefull: P0, pmftypepartial: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCompareFullToPartialMediaType(pmftypefull : * mut core::ffi::c_void, pmftypepartial : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - MFCompareFullToPartialMediaType(pmftypefull.into_param().abi(), pmftypepartial.into_param().abi()) + MFCompareFullToPartialMediaType(pmftypefull.param().abi(), pmftypepartial.param().abi()) } #[inline] pub unsafe fn MFConvertColorInfoFromDXVA(ptoformat: *mut MFVIDEOFORMAT, dwfromdxva: u32) -> windows_core::Result<()> { @@ -179,50 +179,50 @@ pub unsafe fn MFCopyImage(pdest: *mut u8, ldeststride: i32, psrc: *const u8, lsr #[inline] pub unsafe fn MFCreate2DMediaBuffer(dwwidth: u32, dwheight: u32, dwfourcc: u32, fbottomup: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreate2DMediaBuffer(dwwidth, dwheight, dwfourcc, fbottomup.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreate2DMediaBuffer(dwwidth, dwheight, dwfourcc, fbottomup.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreate3GPMediaSink(pibytestream: P0, pvideomediatype: P1, paudiomediatype: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreate3GPMediaSink(pibytestream : * mut core::ffi::c_void, pvideomediatype : * mut core::ffi::c_void, paudiomediatype : * mut core::ffi::c_void, ppimediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreate3GPMediaSink(pibytestream.into_param().abi(), pvideomediatype.into_param().abi(), paudiomediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreate3GPMediaSink(pibytestream.param().abi(), pvideomediatype.param().abi(), paudiomediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAC3MediaSink(ptargetbytestream: P0, paudiomediatype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateAC3MediaSink(ptargetbytestream : * mut core::ffi::c_void, paudiomediatype : * mut core::ffi::c_void, ppmediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateAC3MediaSink(ptargetbytestream.into_param().abi(), paudiomediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateAC3MediaSink(ptargetbytestream.param().abi(), paudiomediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateADTSMediaSink(ptargetbytestream: P0, paudiomediatype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateADTSMediaSink(ptargetbytestream : * mut core::ffi::c_void, paudiomediatype : * mut core::ffi::c_void, ppmediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateADTSMediaSink(ptargetbytestream.into_param().abi(), paudiomediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateADTSMediaSink(ptargetbytestream.param().abi(), paudiomediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAMMediaTypeFromMFMediaType(pmftype: P0, guidformatblocktype: windows_core::GUID, ppamtype: *mut *mut AM_MEDIA_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateAMMediaTypeFromMFMediaType(pmftype : * mut core::ffi::c_void, guidformatblocktype : windows_core::GUID, ppamtype : *mut *mut AM_MEDIA_TYPE) -> windows_core::HRESULT); - MFCreateAMMediaTypeFromMFMediaType(pmftype.into_param().abi(), core::mem::transmute(guidformatblocktype), ppamtype).ok() + MFCreateAMMediaTypeFromMFMediaType(pmftype.param().abi(), core::mem::transmute(guidformatblocktype), ppamtype).ok() } #[inline] pub unsafe fn MFCreateASFContentInfo() -> windows_core::Result { @@ -239,30 +239,30 @@ pub unsafe fn MFCreateASFIndexer() -> windows_core::Result { #[inline] pub unsafe fn MFCreateASFIndexerByteStream(picontentbytestream: P0, cbindexstartoffset: u64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateASFIndexerByteStream(picontentbytestream.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateASFMediaSink(pibytestream : * mut core::ffi::c_void, ppimediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateASFMediaSink(pibytestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateASFMediaSink(pibytestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateASFMediaSinkActivate(pwszfilename: P0, pcontentinfo: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateASFMediaSinkActivate(pwszfilename : windows_core::PCWSTR, pcontentinfo : * mut core::ffi::c_void, ppiactivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateASFMediaSinkActivate(pwszfilename.into_param().abi(), pcontentinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateASFMediaSinkActivate(pwszfilename.param().abi(), pcontentinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateASFMultiplexer() -> windows_core::Result { @@ -279,11 +279,11 @@ pub unsafe fn MFCreateASFProfile() -> windows_core::Result { #[inline] pub unsafe fn MFCreateASFProfileFromPresentationDescriptor(pipd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateASFProfileFromPresentationDescriptor(pipd : * mut core::ffi::c_void, ppiprofile : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateASFProfileFromPresentationDescriptor(pipd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateASFProfileFromPresentationDescriptor(pipd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateASFSplitter() -> windows_core::Result { @@ -294,50 +294,50 @@ pub unsafe fn MFCreateASFSplitter() -> windows_core::Result { #[inline] pub unsafe fn MFCreateASFStreamSelector(piasfprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateASFStreamSelector(piasfprofile : * mut core::ffi::c_void, ppselector : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateASFStreamSelector(piasfprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateASFStreamSelector(piasfprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateASFStreamingMediaSink(pibytestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateASFStreamingMediaSink(pibytestream : * mut core::ffi::c_void, ppimediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateASFStreamingMediaSink(pibytestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateASFStreamingMediaSink(pibytestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateASFStreamingMediaSinkActivate(pbytestreamactivate: P0, pcontentinfo: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateASFStreamingMediaSinkActivate(pbytestreamactivate : * mut core::ffi::c_void, pcontentinfo : * mut core::ffi::c_void, ppiactivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateASFStreamingMediaSinkActivate(pbytestreamactivate.into_param().abi(), pcontentinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateASFStreamingMediaSinkActivate(pbytestreamactivate.param().abi(), pcontentinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAVIMediaSink(pibytestream: P0, pvideomediatype: P1, paudiomediatype: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mfsrcsnk.dll" "system" fn MFCreateAVIMediaSink(pibytestream : * mut core::ffi::c_void, pvideomediatype : * mut core::ffi::c_void, paudiomediatype : * mut core::ffi::c_void, ppimediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateAVIMediaSink(pibytestream.into_param().abi(), pvideomediatype.into_param().abi(), paudiomediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateAVIMediaSink(pibytestream.param().abi(), pvideomediatype.param().abi(), paudiomediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAggregateSource(psourcecollection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateAggregateSource(psourcecollection : * mut core::ffi::c_void, ppaggsource : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateAggregateSource(psourcecollection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateAggregateSource(psourcecollection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAlignedMemoryBuffer(cbmaxlength: u32, cbaligment: u32) -> windows_core::Result { @@ -348,13 +348,13 @@ pub unsafe fn MFCreateAlignedMemoryBuffer(cbmaxlength: u32, cbaligment: u32) -> #[inline] pub unsafe fn MFCreateAsyncResult(punkobject: P0, pcallback: P1, punkstate: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateAsyncResult(punkobject : * mut core::ffi::c_void, pcallback : * mut core::ffi::c_void, punkstate : * mut core::ffi::c_void, ppasyncresult : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateAsyncResult(punkobject.into_param().abi(), pcallback.into_param().abi(), punkstate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateAsyncResult(punkobject.param().abi(), pcallback.param().abi(), punkstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAttributes(ppmfattributes: *mut Option, cinitialsize: u32) -> windows_core::Result<()> { @@ -371,11 +371,11 @@ pub unsafe fn MFCreateAudioMediaType(paudioformat: *const super::Audio::WAVEFORM #[inline] pub unsafe fn MFCreateAudioRenderer(paudioattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateAudioRenderer(paudioattributes : * mut core::ffi::c_void, ppsink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateAudioRenderer(paudioattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateAudioRenderer(paudioattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateAudioRendererActivate() -> windows_core::Result { @@ -386,22 +386,22 @@ pub unsafe fn MFCreateAudioRendererActivate() -> windows_core::Result(symboliclink: P0, callback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateCameraControlMonitor(symboliclink : windows_core::PCWSTR, callback : * mut core::ffi::c_void, ppcameracontrolmonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateCameraControlMonitor(symboliclink.into_param().abi(), callback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateCameraControlMonitor(symboliclink.param().abi(), callback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateCameraOcclusionStateMonitor(symboliclink: P0, callback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateCameraOcclusionStateMonitor(symboliclink : windows_core::PCWSTR, callback : * mut core::ffi::c_void, occlusionstatemonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateCameraOcclusionStateMonitor(symboliclink.into_param().abi(), callback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateCameraOcclusionStateMonitor(symboliclink.param().abi(), callback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateCollection() -> windows_core::Result { @@ -412,12 +412,12 @@ pub unsafe fn MFCreateCollection() -> windows_core::Result { #[inline] pub unsafe fn MFCreateContentDecryptorContext(guidmediaprotectionsystemid: *const windows_core::GUID, pd3dmanager: P0, pcontentprotectiondevice: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateContentDecryptorContext(guidmediaprotectionsystemid, pd3dmanager.into_param().abi(), pcontentprotectiondevice.into_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 { @@ -435,10 +435,10 @@ pub unsafe fn MFCreateCredentialCache() -> windows_core::Result(pdevice: P0, riid: *const windows_core::GUID, ppvsyncobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppvsyncobject).ok() + MFCreateD3D12SynchronizationObject(pdevice.param().abi(), riid, ppvsyncobject).ok() } #[inline] pub unsafe fn MFCreateDXGIDeviceManager(resettoken: *mut u32, ppdevicemanager: *mut Option) -> windows_core::Result<()> { @@ -448,52 +448,52 @@ pub unsafe fn MFCreateDXGIDeviceManager(resettoken: *mut u32, ppdevicemanager: * #[inline] pub unsafe fn MFCreateDXGISurfaceBuffer(riid: *const windows_core::GUID, punksurface: P0, usubresourceindex: u32, fbottomupwhenlinear: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateDXGISurfaceBuffer(riid, punksurface.into_param().abi(), usubresourceindex, fbottomupwhenlinear.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateDXGISurfaceBuffer(riid, punksurface.param().abi(), usubresourceindex, fbottomupwhenlinear.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateDXSurfaceBuffer(riid: *const windows_core::GUID, punksurface: P0, fbottomupwhenlinear: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateDXSurfaceBuffer(riid, punksurface.into_param().abi(), fbottomupwhenlinear.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateDXSurfaceBuffer(riid, punksurface.param().abi(), fbottomupwhenlinear.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateDeviceSource(pattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateDeviceSource(pattributes : * mut core::ffi::c_void, ppsource : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateDeviceSource(pattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateDeviceSource(pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateDeviceSourceActivate(pattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateDeviceSourceActivate(pattributes : * mut core::ffi::c_void, ppactivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateDeviceSourceActivate(pattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateDeviceSourceActivate(pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn MFCreateEncryptedMediaExtensionsStoreActivate(pmphost: P0, objectstream: P1, classid: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateEncryptedMediaExtensionsStoreActivate(pmphost : * mut core::ffi::c_void, objectstream : * mut core::ffi::c_void, classid : windows_core::PCWSTR, activate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateEncryptedMediaExtensionsStoreActivate(pmphost.into_param().abi(), objectstream.into_param().abi(), classid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateEncryptedMediaExtensionsStoreActivate(pmphost.param().abi(), objectstream.param().abi(), classid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateEventQueue() -> windows_core::Result { @@ -516,107 +516,107 @@ pub unsafe fn MFCreateExtendedCameraIntrinsics() -> windows_core::Result(pibytestream: P0, pvideomediatype: P1, paudiomediatype: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateFMPEG4MediaSink(pibytestream : * mut core::ffi::c_void, pvideomediatype : * mut core::ffi::c_void, paudiomediatype : * mut core::ffi::c_void, ppimediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateFMPEG4MediaSink(pibytestream.into_param().abi(), pvideomediatype.into_param().abi(), paudiomediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateFMPEG4MediaSink(pibytestream.param().abi(), pvideomediatype.param().abi(), paudiomediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateFile(accessmode: MF_FILE_ACCESSMODE, openmode: MF_FILE_OPENMODE, fflags: MF_FILE_FLAGS, pwszfileurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateFile(accessmode, openmode, fflags, pwszfileurl.into_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] pub unsafe fn MFCreateLegacyMediaBufferOnMFMediaBuffer(psample: P0, pmfmediabuffer: P1, cboffset: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateLegacyMediaBufferOnMFMediaBuffer(psample.into_param().abi(), pmfmediabuffer.into_param().abi(), 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] pub unsafe fn MFCreateMFByteStreamOnStream(pstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMFByteStreamOnStream(pstream : * mut core::ffi::c_void, ppbytestream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMFByteStreamOnStream(pstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMFByteStreamOnStream(pstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMFByteStreamOnStreamEx(punkstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMFByteStreamOnStreamEx(punkstream : * mut core::ffi::c_void, ppbytestream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMFByteStreamOnStreamEx(punkstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMFByteStreamOnStreamEx(punkstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMFByteStreamWrapper(pstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMFByteStreamWrapper(pstream : * mut core::ffi::c_void, ppstreamwrapper : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMFByteStreamWrapper(pstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMFByteStreamWrapper(pstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMFVideoFormatFromMFMediaType(pmftype: P0, ppmfvf: *mut *mut MFVIDEOFORMAT, pcbsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMFVideoFormatFromMFMediaType(pmftype : * mut core::ffi::c_void, ppmfvf : *mut *mut MFVIDEOFORMAT, pcbsize : *mut u32) -> windows_core::HRESULT); - MFCreateMFVideoFormatFromMFMediaType(pmftype.into_param().abi(), ppmfvf, core::mem::transmute(pcbsize.unwrap_or(std::ptr::null_mut()))).ok() + MFCreateMFVideoFormatFromMFMediaType(pmftype.param().abi(), ppmfvf, core::mem::transmute(pcbsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn MFCreateMP3MediaSink(ptargetbytestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateMP3MediaSink(ptargetbytestream : * mut core::ffi::c_void, ppmediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMP3MediaSink(ptargetbytestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMP3MediaSink(ptargetbytestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMPEG4MediaSink(pibytestream: P0, pvideomediatype: P1, paudiomediatype: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateMPEG4MediaSink(pibytestream : * mut core::ffi::c_void, pvideomediatype : * mut core::ffi::c_void, paudiomediatype : * mut core::ffi::c_void, ppimediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMPEG4MediaSink(pibytestream.into_param().abi(), pvideomediatype.into_param().abi(), paudiomediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMPEG4MediaSink(pibytestream.param().abi(), pvideomediatype.param().abi(), paudiomediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMediaBufferFromMediaType(pmediatype: P0, llduration: i64, dwminlength: u32, dwminalignment: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateMediaBufferFromMediaType(pmediatype.into_param().abi(), llduration, dwminlength, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateMediaBufferWrapper(pbuffer.into_param().abi(), cboffset, 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__)) } #[inline] pub unsafe fn MFCreateMediaEvent(met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: Option<*const windows_core::PROPVARIANT>) -> windows_core::Result { @@ -627,20 +627,20 @@ pub unsafe fn MFCreateMediaEvent(met: u32, guidextendedtype: *const windows_core #[inline] pub unsafe fn MFCreateMediaExtensionActivate(szactivatableclassid: P0, pconfiguration: P1, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pconfiguration.into_param().abi(), riid, ppvobject).ok() + MFCreateMediaExtensionActivate(szactivatableclassid.param().abi(), pconfiguration.param().abi(), riid, ppvobject).ok() } #[inline] pub unsafe fn MFCreateMediaSession(pconfiguration: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateMediaSession(pconfiguration : * mut core::ffi::c_void, ppmediasession : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMediaSession(pconfiguration.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMediaSession(pconfiguration.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMediaType() -> windows_core::Result { @@ -651,11 +651,11 @@ pub unsafe fn MFCreateMediaType() -> windows_core::Result { #[inline] pub unsafe fn MFCreateMediaTypeFromProperties(punkstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMediaTypeFromProperties(punkstream : * mut core::ffi::c_void, ppmediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMediaTypeFromProperties(punkstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMediaTypeFromProperties(punkstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMediaTypeFromRepresentation(guidrepresentation: windows_core::GUID, pvrepresentation: *const core::ffi::c_void) -> windows_core::Result { @@ -672,39 +672,39 @@ pub unsafe fn MFCreateMemoryBuffer(cbmaxlength: u32) -> windows_core::Result(guidoutputsubtype: windows_core::GUID, poutputattributes: P0, poutputbytestream: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateMuxSink(guidoutputsubtype : windows_core::GUID, poutputattributes : * mut core::ffi::c_void, poutputbytestream : * mut core::ffi::c_void, ppmuxsink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMuxSink(core::mem::transmute(guidoutputsubtype), poutputattributes.into_param().abi(), poutputbytestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMuxSink(core::mem::transmute(guidoutputsubtype), poutputattributes.param().abi(), poutputbytestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMuxStreamAttributes(pattributestomux: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMuxStreamAttributes(pattributestomux : * mut core::ffi::c_void, ppmuxattribs : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMuxStreamAttributes(pattributestomux.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMuxStreamAttributes(pattributestomux.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMuxStreamMediaType(pmediatypestomux: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMuxStreamMediaType(pmediatypestomux : * mut core::ffi::c_void, ppmuxmediatype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMuxStreamMediaType(pmediatypestomux.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMuxStreamMediaType(pmediatypestomux.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateMuxStreamSample(psamplestomux: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateMuxStreamSample(psamplestomux : * mut core::ffi::c_void, ppmuxsample : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateMuxStreamSample(psamplestomux.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateMuxStreamSample(psamplestomux.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateNetSchemePlugin(riid: *const windows_core::GUID, ppvhandler: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -714,10 +714,10 @@ pub unsafe fn MFCreateNetSchemePlugin(riid: *const windows_core::GUID, ppvhandle #[inline] pub unsafe fn MFCreatePMPMediaSession(dwcreationflags: u32, pconfiguration: P0, ppmediasession: *mut Option, ppenableractivate: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwcreationflags, pconfiguration.into_param().abi(), core::mem::transmute(ppmediasession), core::mem::transmute(ppenableractivate.unwrap_or(std::ptr::null_mut()))).ok() + MFCreatePMPMediaSession(dwcreationflags, pconfiguration.param().abi(), core::mem::transmute(ppmediasession), core::mem::transmute(ppenableractivate.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn MFCreatePMPServer(dwcreationflags: u32) -> windows_core::Result { @@ -740,19 +740,19 @@ pub unsafe fn MFCreatePresentationDescriptor(apstreamdescriptors: Option<&[Optio #[inline] pub unsafe fn MFCreatePresentationDescriptorFromASFProfile(piprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreatePresentationDescriptorFromASFProfile(piprofile : * mut core::ffi::c_void, ppipd : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreatePresentationDescriptorFromASFProfile(piprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreatePresentationDescriptorFromASFProfile(piprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreatePropertiesFromMediaType(pmediatype: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppv).ok() + MFCreatePropertiesFromMediaType(pmediatype.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn MFCreateProtectedEnvironmentAccess() -> windows_core::Result { @@ -764,22 +764,22 @@ pub unsafe fn MFCreateProtectedEnvironmentAccess() -> windows_core::Result(pszprotocol: P0, pproxyconfig: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateProxyLocator(pszprotocol : windows_core::PCWSTR, pproxyconfig : * mut core::ffi::c_void, ppproxylocator : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateProxyLocator(pszprotocol.into_param().abi(), pproxyconfig.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateProxyLocator(pszprotocol.param().abi(), pproxyconfig.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateRelativePanelWatcher(videodeviceid: P0, displaymonitordeviceid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateRelativePanelWatcher(videodeviceid : windows_core::PCWSTR, displaymonitordeviceid : windows_core::PCWSTR, pprelativepanelwatcher : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateRelativePanelWatcher(videodeviceid.into_param().abi(), displaymonitordeviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateRelativePanelWatcher(videodeviceid.param().abi(), displaymonitordeviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateRemoteDesktopPlugin() -> windows_core::Result { @@ -802,39 +802,39 @@ pub unsafe fn MFCreateSampleCopierMFT() -> windows_core::Result { #[inline] pub unsafe fn MFCreateSampleGrabberSinkActivate(pimfmediatype: P0, pimfsamplegrabbersinkcallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateSampleGrabberSinkActivate(pimfmediatype : * mut core::ffi::c_void, pimfsamplegrabbersinkcallback : * mut core::ffi::c_void, ppiactivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSampleGrabberSinkActivate(pimfmediatype.into_param().abi(), pimfsamplegrabbersinkcallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSampleGrabberSinkActivate(pimfmediatype.param().abi(), pimfsamplegrabbersinkcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSensorActivityMonitor(pcallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateSensorActivityMonitor(pcallback : * mut core::ffi::c_void, ppactivitymonitor : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSensorActivityMonitor(pcallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSensorActivityMonitor(pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSensorGroup(sensorgroupsymboliclink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfsensorgroup.dll" "system" fn MFCreateSensorGroup(sensorgroupsymboliclink : windows_core::PCWSTR, ppsensorgroup : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSensorGroup(sensorgroupsymboliclink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSensorGroup(sensorgroupsymboliclink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSensorProfile(profiletype: *const windows_core::GUID, profileindex: u32, constraints: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateSensorProfile(profiletype, profileindex, constraints.into_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 { @@ -845,12 +845,12 @@ pub unsafe fn MFCreateSensorProfileCollection() -> windows_core::Result(streamid: u32, pattributes: P0, pmediatypecollection: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateSensorStream(streamid, pattributes.into_param().abi(), pmediatypecollection.into_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__)) } #[inline] pub unsafe fn MFCreateSequencerSegmentOffset(dwid: u32, hnsoffset: i64) -> windows_core::Result { @@ -861,11 +861,11 @@ pub unsafe fn MFCreateSequencerSegmentOffset(dwid: u32, hnsoffset: i64) -> windo #[inline] pub unsafe fn MFCreateSequencerSource(preserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateSequencerSource(preserved : * mut core::ffi::c_void, ppsequencersource : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSequencerSource(preserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSequencerSource(preserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSimpleTypeHandler() -> windows_core::Result { @@ -876,53 +876,53 @@ pub unsafe fn MFCreateSimpleTypeHandler() -> windows_core::Result(pmediasink: P0, pattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfreadwrite.dll" "system" fn MFCreateSinkWriterFromMediaSink(pmediasink : * mut core::ffi::c_void, pattributes : * mut core::ffi::c_void, ppsinkwriter : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSinkWriterFromMediaSink(pmediasink.into_param().abi(), pattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSinkWriterFromMediaSink(pmediasink.param().abi(), pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSinkWriterFromURL(pwszoutputurl: P0, pbytestream: P1, pattributes: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mfreadwrite.dll" "system" fn MFCreateSinkWriterFromURL(pwszoutputurl : windows_core::PCWSTR, pbytestream : * mut core::ffi::c_void, pattributes : * mut core::ffi::c_void, ppsinkwriter : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSinkWriterFromURL(pwszoutputurl.into_param().abi(), pbytestream.into_param().abi(), pattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSinkWriterFromURL(pwszoutputurl.param().abi(), pbytestream.param().abi(), pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSourceReaderFromByteStream(pbytestream: P0, pattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfreadwrite.dll" "system" fn MFCreateSourceReaderFromByteStream(pbytestream : * mut core::ffi::c_void, pattributes : * mut core::ffi::c_void, ppsourcereader : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSourceReaderFromByteStream(pbytestream.into_param().abi(), pattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSourceReaderFromByteStream(pbytestream.param().abi(), pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSourceReaderFromMediaSource(pmediasource: P0, pattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfreadwrite.dll" "system" fn MFCreateSourceReaderFromMediaSource(pmediasource : * mut core::ffi::c_void, pattributes : * mut core::ffi::c_void, ppsourcereader : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSourceReaderFromMediaSource(pmediasource.into_param().abi(), pattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSourceReaderFromMediaSource(pmediasource.param().abi(), pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSourceReaderFromURL(pwszurl: P0, pattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfreadwrite.dll" "system" fn MFCreateSourceReaderFromURL(pwszurl : windows_core::PCWSTR, pattributes : * mut core::ffi::c_void, ppsourcereader : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateSourceReaderFromURL(pwszurl.into_param().abi(), pattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateSourceReaderFromURL(pwszurl.param().abi(), pattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateSourceResolver() -> windows_core::Result { @@ -946,19 +946,19 @@ pub unsafe fn MFCreateStreamDescriptor(dwstreamidentifier: u32, apmediatypes: &[ #[inline] pub unsafe fn MFCreateStreamOnMFByteStream(pbytestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFCreateStreamOnMFByteStream(pbytestream : * mut core::ffi::c_void, ppstream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateStreamOnMFByteStream(pbytestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateStreamOnMFByteStream(pbytestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateStreamOnMFByteStreamEx(pbytestream: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppv).ok() + MFCreateStreamOnMFByteStreamEx(pbytestream.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn MFCreateSystemTimeSource() -> windows_core::Result { @@ -1011,24 +1011,24 @@ pub unsafe fn MFCreateTranscodeSinkActivate() -> windows_core::Result(psrc: P0, pwszoutputfilepath: P1, pprofile: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateTranscodeTopology(psrc : * mut core::ffi::c_void, pwszoutputfilepath : windows_core::PCWSTR, pprofile : * mut core::ffi::c_void, pptranscodetopo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateTranscodeTopology(psrc.into_param().abi(), pwszoutputfilepath.into_param().abi(), pprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateTranscodeTopology(psrc.param().abi(), pwszoutputfilepath.param().abi(), pprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateTranscodeTopologyFromByteStream(psrc: P0, poutputstream: P1, pprofile: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateTranscodeTopologyFromByteStream(psrc : * mut core::ffi::c_void, poutputstream : * mut core::ffi::c_void, pprofile : * mut core::ffi::c_void, pptranscodetopo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateTranscodeTopologyFromByteStream(psrc.into_param().abi(), poutputstream.into_param().abi(), pprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateTranscodeTopologyFromByteStream(psrc.param().abi(), poutputstream.param().abi(), pprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateTransformActivate() -> windows_core::Result { @@ -1065,27 +1065,27 @@ pub unsafe fn MFCreateVideoMediaTypeFromSubtype(pamsubtype: *const windows_core: #[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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riiddevice, riid, ppv).ok() + MFCreateVideoMixer(powner.param().abi(), riiddevice, riid, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), ppresenterowner.into_param().abi(), riidmixer, ppvvideomixer, riidpresenter, ppvvideopresenter).ok() + MFCreateVideoMixerAndPresenter(pmixerowner.param().abi(), ppresenterowner.param().abi(), riidmixer, ppvvideomixer, riidpresenter, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riiddevice, riid, ppvideopresenter).ok() + MFCreateVideoPresenter(powner.param().abi(), riiddevice, riid, ppvideopresenter).ok() } #[inline] pub unsafe fn MFCreateVideoRenderer(riidrenderer: *const windows_core::GUID, ppvideorenderer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1095,11 +1095,11 @@ pub unsafe fn MFCreateVideoRenderer(riidrenderer: *const windows_core::GUID, ppv #[inline] pub unsafe fn MFCreateVideoRendererActivate(hwndvideo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateVideoRendererActivate(hwndvideo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVideoRendererActivate(hwndvideo.param().abi(), &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<()> { @@ -1114,81 +1114,81 @@ pub unsafe fn MFCreateVideoSampleAllocatorEx(riid: *const windows_core::GUID, pp #[inline] pub unsafe fn MFCreateVideoSampleFromSurface(punksurface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("evr.dll" "system" fn MFCreateVideoSampleFromSurface(punksurface : * mut core::ffi::c_void, ppsample : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateVideoSampleFromSurface(punksurface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateVideoSampleFromSurface(punksurface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateVirtualCamera(r#type: MFVirtualCameraType, lifetime: MFVirtualCameraLifetime, access: MFVirtualCameraAccess, friendlyname: P0, sourceid: P1, categories: Option<&[windows_core::GUID]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateVirtualCamera(r#type, lifetime, access, friendlyname.into_param().abi(), sourceid.into_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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfsrcsnk.dll" "system" fn MFCreateWAVEMediaSink(ptargetbytestream : * mut core::ffi::c_void, paudiomediatype : * mut core::ffi::c_void, ppmediasink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateWAVEMediaSink(ptargetbytestream.into_param().abi(), paudiomediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateWAVEMediaSink(ptargetbytestream.param().abi(), paudiomediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFCreateWICBitmapBuffer(riid: *const windows_core::GUID, punksurface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFCreateWICBitmapBuffer(riid, punksurface.into_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] pub unsafe fn MFCreateWMAEncoderActivate(pmediatype: P0, pencodingconfigurationproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateWMAEncoderActivate(pmediatype : * mut core::ffi::c_void, pencodingconfigurationproperties : * mut core::ffi::c_void, ppactivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateWMAEncoderActivate(pmediatype.into_param().abi(), pencodingconfigurationproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateWMAEncoderActivate(pmediatype.param().abi(), pencodingconfigurationproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] #[inline] pub unsafe fn MFCreateWMVEncoderActivate(pmediatype: P0, pencodingconfigurationproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFCreateWMVEncoderActivate(pmediatype : * mut core::ffi::c_void, pencodingconfigurationproperties : * mut core::ffi::c_void, ppactivate : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFCreateWMVEncoderActivate(pmediatype.into_param().abi(), pencodingconfigurationproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFCreateWMVEncoderActivate(pmediatype.param().abi(), pencodingconfigurationproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_Audio")] #[inline] pub unsafe fn MFCreateWaveFormatExFromMFMediaType(pmftype: P0, ppwf: *mut *mut super::Audio::WAVEFORMATEX, pcbsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ppwf, core::mem::transmute(pcbsize.unwrap_or(std::ptr::null_mut())), flags).ok() + MFCreateWaveFormatExFromMFMediaType(pmftype.param().abi(), ppwf, core::mem::transmute(pcbsize.unwrap_or(std::ptr::null_mut())), flags).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn MFDeserializeAttributesFromStream(pattr: P0, dwoptions: u32, pstm: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwoptions, pstm.into_param().abi()).ok() + MFDeserializeAttributesFromStream(pattr.param().abi(), dwoptions, pstm.param().abi()).ok() } #[inline] pub unsafe fn MFDeserializePresentationDescriptor(pbdata: &[u8]) -> windows_core::Result { @@ -1199,36 +1199,36 @@ pub unsafe fn MFDeserializePresentationDescriptor(pbdata: &[u8]) -> windows_core #[inline] pub unsafe fn MFEndCreateFile(presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFEndCreateFile(presult : * mut core::ffi::c_void, ppfile : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFEndCreateFile(presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFEndCreateFile(presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFEndRegisterWorkQueueWithMMCSS(presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFEndRegisterWorkQueueWithMMCSS(presult : * mut core::ffi::c_void, pdwtaskid : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFEndRegisterWorkQueueWithMMCSS(presult.into_param().abi(), &mut result__).map(|| result__) + MFEndRegisterWorkQueueWithMMCSS(presult.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn MFEndUnregisterWorkQueueWithMMCSS(presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFEndUnregisterWorkQueueWithMMCSS(presult : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFEndUnregisterWorkQueueWithMMCSS(presult.into_param().abi()).ok() + MFEndUnregisterWorkQueueWithMMCSS(presult.param().abi()).ok() } #[inline] pub unsafe fn MFEnumDeviceSources(pattributes: P0, pppsourceactivate: *mut *mut Option, pcsourceactivate: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFEnumDeviceSources(pattributes : * mut core::ffi::c_void, pppsourceactivate : *mut *mut Option < IMFActivate >, pcsourceactivate : *mut u32) -> windows_core::HRESULT); - MFEnumDeviceSources(pattributes.into_param().abi(), pppsourceactivate, pcsourceactivate).ok() + MFEnumDeviceSources(pattributes.param().abi(), pppsourceactivate, pcsourceactivate).ok() } #[inline] pub unsafe fn MFFrameRateToAverageTimePerFrame(unnumerator: u32, undenominator: u32) -> windows_core::Result { @@ -1239,19 +1239,19 @@ pub unsafe fn MFFrameRateToAverageTimePerFrame(unnumerator: u32, undenominator: #[inline] pub unsafe fn MFGetAttributesAsBlob(pattributes: P0, pbuf: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFGetAttributesAsBlob(pattributes : * mut core::ffi::c_void, pbuf : *mut u8, cbbufsize : u32) -> windows_core::HRESULT); - MFGetAttributesAsBlob(pattributes.into_param().abi(), core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap()).ok() + MFGetAttributesAsBlob(pattributes.param().abi(), core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn MFGetAttributesAsBlobSize(pattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFGetAttributesAsBlobSize(pattributes : * mut core::ffi::c_void, pcbbufsize : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFGetAttributesAsBlobSize(pattributes.into_param().abi(), &mut result__).map(|| result__) + MFGetAttributesAsBlobSize(pattributes.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn MFGetContentProtectionSystemCLSID(guidprotectionsystemid: *const windows_core::GUID) -> windows_core::Result { @@ -1268,11 +1268,11 @@ pub unsafe fn MFGetLocalId(verifier: &[u8]) -> windows_core::Result(pmft: P0, verifier: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFGetMFTMerit(pmft : * mut core::ffi::c_void, cbverifier : u32, verifier : *const u8, merit : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFGetMFTMerit(pmft.into_param().abi(), verifier.len().try_into().unwrap(), core::mem::transmute(verifier.as_ptr()), &mut result__).map(|| result__) + MFGetMFTMerit(pmft.param().abi(), verifier.len().try_into().unwrap(), core::mem::transmute(verifier.as_ptr()), &mut result__).map(|| result__) } #[inline] pub unsafe fn MFGetPlaneSize(format: u32, dwwidth: u32, dwheight: u32) -> windows_core::Result { @@ -1289,10 +1289,10 @@ pub unsafe fn MFGetPluginControl() -> windows_core::Result { #[inline] pub unsafe fn MFGetService(punkobject: P0, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), guidservice, riid, ppvobject).ok() + MFGetService(punkobject.param().abi(), guidservice, riid, ppvobject).ok() } #[inline] pub unsafe fn MFGetStrideForBitmapInfoHeader(format: u32, dwwidth: u32) -> windows_core::Result { @@ -1332,12 +1332,12 @@ pub unsafe fn MFGetTimerPeriodicity() -> windows_core::Result { #[inline] pub unsafe fn MFGetTopoNodeCurrentType(pnode: P0, dwstreamindex: u32, foutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - MFGetTopoNodeCurrentType(pnode.into_param().abi(), dwstreamindex, foutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFGetTopoNodeCurrentType(pnode.param().abi(), dwstreamindex, foutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFGetUncompressedVideoFormat(pvideoformat: *const MFVIDEOFORMAT) -> u32 { @@ -1364,10 +1364,10 @@ pub unsafe fn MFGetWorkQueueMMCSSTaskId(dwworkqueueid: u32) -> windows_core::Res #[inline] pub unsafe fn MFHeapAlloc(nsize: usize, dwflags: u32, pszfile: P0, line: i32, eat: EAllocationType) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(nsize, dwflags, pszfile.into_param().abi(), line, eat) + MFHeapAlloc(nsize, dwflags, pszfile.param().abi(), line, eat) } #[inline] pub unsafe fn MFHeapFree(pv: *mut core::ffi::c_void) { @@ -1377,79 +1377,79 @@ pub unsafe fn MFHeapFree(pv: *mut core::ffi::c_void) { #[inline] pub unsafe fn MFInitAMMediaTypeFromMFMediaType(pmftype: P0, guidformatblocktype: windows_core::GUID, pamtype: *mut AM_MEDIA_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitAMMediaTypeFromMFMediaType(pmftype : * mut core::ffi::c_void, guidformatblocktype : windows_core::GUID, pamtype : *mut AM_MEDIA_TYPE) -> windows_core::HRESULT); - MFInitAMMediaTypeFromMFMediaType(pmftype.into_param().abi(), core::mem::transmute(guidformatblocktype), pamtype).ok() + MFInitAMMediaTypeFromMFMediaType(pmftype.param().abi(), core::mem::transmute(guidformatblocktype), pamtype).ok() } #[inline] pub unsafe fn MFInitAttributesFromBlob(pattributes: P0, pbuf: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitAttributesFromBlob(pattributes : * mut core::ffi::c_void, pbuf : *const u8, cbbufsize : u32) -> windows_core::HRESULT); - MFInitAttributesFromBlob(pattributes.into_param().abi(), core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap()).ok() + MFInitAttributesFromBlob(pattributes.param().abi(), core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn MFInitMediaTypeFromAMMediaType(pmftype: P0, pamtype: *const AM_MEDIA_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInitMediaTypeFromAMMediaType(pmftype : * mut core::ffi::c_void, pamtype : *const AM_MEDIA_TYPE) -> windows_core::HRESULT); - MFInitMediaTypeFromAMMediaType(pmftype.into_param().abi(), pamtype).ok() + MFInitMediaTypeFromAMMediaType(pmftype.param().abi(), pamtype).ok() } #[inline] pub unsafe fn MFInitMediaTypeFromMFVideoFormat(pmftype: P0, pmfvf: *const MFVIDEOFORMAT, cbbufsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pmfvf, cbbufsize).ok() + MFInitMediaTypeFromMFVideoFormat(pmftype.param().abi(), pmfvf, cbbufsize).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MFInitMediaTypeFromMPEG1VideoInfo(pmftype: P0, pmp1vi: *const MPEG1VIDEOINFO, cbbufsize: u32, psubtype: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pmp1vi, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() + MFInitMediaTypeFromMPEG1VideoInfo(pmftype.param().abi(), pmp1vi, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MFInitMediaTypeFromMPEG2VideoInfo(pmftype: P0, pmp2vi: *const MPEG2VIDEOINFO, cbbufsize: u32, psubtype: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pmp2vi, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() + MFInitMediaTypeFromMPEG2VideoInfo(pmftype.param().abi(), pmp2vi, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MFInitMediaTypeFromVideoInfoHeader(pmftype: P0, pvih: *const VIDEOINFOHEADER, cbbufsize: u32, psubtype: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pvih, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() + MFInitMediaTypeFromVideoInfoHeader(pmftype.param().abi(), pvih, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn MFInitMediaTypeFromVideoInfoHeader2(pmftype: P0, pvih2: *const VIDEOINFOHEADER2, cbbufsize: u32, psubtype: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pvih2, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() + MFInitMediaTypeFromVideoInfoHeader2(pmftype.param().abi(), pvih2, cbbufsize, core::mem::transmute(psubtype.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Media_Audio")] #[inline] pub unsafe fn MFInitMediaTypeFromWaveFormatEx(pmftype: P0, pwaveformat: *const super::Audio::WAVEFORMATEX, cbbufsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pwaveformat, cbbufsize).ok() + MFInitMediaTypeFromWaveFormatEx(pmftype.param().abi(), pwaveformat, cbbufsize).ok() } #[inline] pub unsafe fn MFInitVideoFormat(pvideoformat: *const MFVIDEOFORMAT, r#type: MFStandardVideoFormat) -> windows_core::Result<()> { @@ -1464,10 +1464,10 @@ pub unsafe fn MFInitVideoFormat_RGB(pvideoformat: *const MFVIDEOFORMAT, dwwidth: #[inline] pub unsafe fn MFInvokeCallback(pasyncresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFInvokeCallback(pasyncresult : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFInvokeCallback(pasyncresult.into_param().abi()).ok() + MFInvokeCallback(pasyncresult.param().abi()).ok() } #[inline] pub unsafe fn MFIsContentProtectionDeviceSupported(protectionsystemid: *const windows_core::GUID) -> windows_core::Result { @@ -1489,11 +1489,11 @@ pub unsafe fn MFIsVirtualCameraTypeSupported(r#type: MFVirtualCameraType) -> win #[inline] pub unsafe fn MFLoadSignedLibrary(pszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFLoadSignedLibrary(pszname : windows_core::PCWSTR, pplib : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFLoadSignedLibrary(pszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFLoadSignedLibrary(pszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFLockDXGIDeviceManager(presettoken: Option<*mut u32>, ppmanager: *mut Option) -> windows_core::Result<()> { @@ -1508,10 +1508,10 @@ pub unsafe fn MFLockPlatform() -> windows_core::Result<()> { #[inline] pub unsafe fn MFLockSharedWorkQueue(wszclass: P0, basepriority: i32, pdwtaskid: *mut u32, pid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), basepriority, pdwtaskid, pid).ok() + MFLockSharedWorkQueue(wszclass.param().abi(), basepriority, pdwtaskid, pid).ok() } #[inline] pub unsafe fn MFLockWorkQueue(dwworkqueue: u32) -> windows_core::Result<()> { @@ -1533,83 +1533,83 @@ pub unsafe fn MFMapDXGIFormatToDX9Format(dx11: super::super::Graphics::Dxgi::Com #[inline] pub unsafe fn MFPCreateMediaPlayer(pwszurl: P0, fstartplayback: P1, creationoptions: MFP_CREATION_OPTIONS, pcallback: P2, hwnd: P3, ppmediaplayer: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), fstartplayback.into_param().abi(), creationoptions, pcallback.into_param().abi(), hwnd.into_param().abi(), core::mem::transmute(ppmediaplayer.unwrap_or(std::ptr::null_mut()))).ok() + MFPCreateMediaPlayer(pwszurl.param().abi(), fstartplayback.param().abi(), creationoptions, pcallback.param().abi(), hwnd.param().abi(), core::mem::transmute(ppmediaplayer.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn MFPutWaitingWorkItem(hevent: P0, priority: i32, presult: P1, pkey: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hevent.into_param().abi(), priority, presult.into_param().abi(), core::mem::transmute(pkey.unwrap_or(std::ptr::null_mut()))).ok() + MFPutWaitingWorkItem(hevent.param().abi(), priority, presult.param().abi(), core::mem::transmute(pkey.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn MFPutWorkItem(dwqueue: u32, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwqueue, pcallback.into_param().abi(), pstate.into_param().abi()).ok() + MFPutWorkItem(dwqueue, pcallback.param().abi(), pstate.param().abi()).ok() } #[inline] pub unsafe fn MFPutWorkItem2(dwqueue: u32, priority: i32, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwqueue, priority, pcallback.into_param().abi(), pstate.into_param().abi()).ok() + MFPutWorkItem2(dwqueue, priority, pcallback.param().abi(), pstate.param().abi()).ok() } #[inline] pub unsafe fn MFPutWorkItemEx(dwqueue: u32, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFPutWorkItemEx(dwqueue : u32, presult : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFPutWorkItemEx(dwqueue, presult.into_param().abi()).ok() + MFPutWorkItemEx(dwqueue, presult.param().abi()).ok() } #[inline] pub unsafe fn MFPutWorkItemEx2(dwqueue: u32, priority: i32, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwqueue, priority, presult.into_param().abi()).ok() + MFPutWorkItemEx2(dwqueue, priority, presult.param().abi()).ok() } #[inline] pub unsafe fn MFRegisterLocalByteStreamHandler(szfileextension: P0, szmimetype: P1, pactivate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFRegisterLocalByteStreamHandler(szfileextension : windows_core::PCWSTR, szmimetype : windows_core::PCWSTR, pactivate : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFRegisterLocalByteStreamHandler(szfileextension.into_param().abi(), szmimetype.into_param().abi(), pactivate.into_param().abi()).ok() + MFRegisterLocalByteStreamHandler(szfileextension.param().abi(), szmimetype.param().abi(), pactivate.param().abi()).ok() } #[inline] pub unsafe fn MFRegisterLocalSchemeHandler(szscheme: P0, pactivate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFRegisterLocalSchemeHandler(szscheme : windows_core::PCWSTR, pactivate : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFRegisterLocalSchemeHandler(szscheme.into_param().abi(), pactivate.into_param().abi()).ok() + MFRegisterLocalSchemeHandler(szscheme.param().abi(), pactivate.param().abi()).ok() } #[inline] pub unsafe fn MFRegisterPlatformWithMMCSS(wszclass: P0, pdwtaskid: *mut u32, lpriority: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pdwtaskid, lpriority).ok() + MFRegisterPlatformWithMMCSS(wszclass.param().abi(), pdwtaskid, lpriority).ok() } #[inline] pub unsafe fn MFRemovePeriodicCallback(dwkey: u32) -> windows_core::Result<()> { @@ -1619,45 +1619,45 @@ pub unsafe fn MFRemovePeriodicCallback(dwkey: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn MFRequireProtectedEnvironment(ppresentationdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFRequireProtectedEnvironment(ppresentationdescriptor : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFRequireProtectedEnvironment(ppresentationdescriptor.into_param().abi()).ok() + MFRequireProtectedEnvironment(ppresentationdescriptor.param().abi()).ok() } #[inline] pub unsafe fn MFScheduleWorkItem(pcallback: P0, pstate: P1, timeout: i64, pkey: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pstate.into_param().abi(), timeout, core::mem::transmute(pkey.unwrap_or(std::ptr::null_mut()))).ok() + MFScheduleWorkItem(pcallback.param().abi(), pstate.param().abi(), timeout, core::mem::transmute(pkey.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn MFScheduleWorkItemEx(presult: P0, timeout: i64, pkey: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), timeout, core::mem::transmute(pkey.unwrap_or(std::ptr::null_mut()))).ok() + MFScheduleWorkItemEx(presult.param().abi(), timeout, core::mem::transmute(pkey.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn MFSerializeAttributesToStream(pattr: P0, dwoptions: u32, pstm: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwoptions, pstm.into_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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFSerializePresentationDescriptor(ppd : * mut core::ffi::c_void, pcbdata : *mut u32, ppbdata : *mut *mut u8) -> windows_core::HRESULT); - MFSerializePresentationDescriptor(ppd.into_param().abi(), pcbdata, ppbdata).ok() + MFSerializePresentationDescriptor(ppd.param().abi(), pcbdata, ppbdata).ok() } #[inline] pub unsafe fn MFShutdown() -> windows_core::Result<()> { @@ -1667,18 +1667,18 @@ pub unsafe fn MFShutdown() -> windows_core::Result<()> { #[inline] pub unsafe fn MFShutdownObject(punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mf.dll" "system" fn MFShutdownObject(punk : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFShutdownObject(punk.into_param().abi()).ok() + MFShutdownObject(punk.param().abi()).ok() } #[inline] pub unsafe fn MFSplitSample(psample: P0, poutputsamples: &mut [Option], pdwoutputsamplecount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFSplitSample(psample : * mut core::ffi::c_void, poutputsamples : *mut * mut core::ffi::c_void, dwoutputsamplemaxcount : u32, pdwoutputsamplecount : *mut u32) -> windows_core::HRESULT); - MFSplitSample(psample.into_param().abi(), core::mem::transmute(poutputsamples.as_ptr()), poutputsamples.len().try_into().unwrap(), pdwoutputsamplecount).ok() + MFSplitSample(psample.param().abi(), core::mem::transmute(poutputsamples.as_ptr()), poutputsamples.len().try_into().unwrap(), pdwoutputsamplecount).ok() } #[inline] pub unsafe fn MFStartup(version: u32, dwflags: u32) -> windows_core::Result<()> { @@ -1688,18 +1688,18 @@ pub unsafe fn MFStartup(version: u32, dwflags: u32) -> windows_core::Result<()> #[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: P0, ppclsidmft: *mut *mut windows_core::GUID, pcmfts: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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), flags, core::mem::transmute(pinputtype.unwrap_or(std::ptr::null())), core::mem::transmute(poutputtype.unwrap_or(std::ptr::null())), pattributes.into_param().abi(), ppclsidmft, pcmfts).ok() + MFTEnum(core::mem::transmute(guidcategory), flags, core::mem::transmute(pinputtype.unwrap_or(std::ptr::null())), core::mem::transmute(poutputtype.unwrap_or(std::ptr::null())), pattributes.param().abi(), ppclsidmft, 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: P0, pppmftactivate: *mut *mut Option, pnummftactivate: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFTEnum2(guidcategory : windows_core::GUID, flags : u32, pinputtype : *const MFT_REGISTER_TYPE_INFO, poutputtype : *const MFT_REGISTER_TYPE_INFO, pattributes : * mut core::ffi::c_void, pppmftactivate : *mut *mut Option < IMFActivate >, pnummftactivate : *mut u32) -> windows_core::HRESULT); - MFTEnum2(core::mem::transmute(guidcategory), flags.0 as _, core::mem::transmute(pinputtype.unwrap_or(std::ptr::null())), core::mem::transmute(poutputtype.unwrap_or(std::ptr::null())), pattributes.into_param().abi(), pppmftactivate, pnummftactivate).ok() + MFTEnum2(core::mem::transmute(guidcategory), flags.0 as _, core::mem::transmute(pinputtype.unwrap_or(std::ptr::null())), core::mem::transmute(poutputtype.unwrap_or(std::ptr::null())), pattributes.param().abi(), pppmftactivate, pnummftactivate).ok() } #[inline] pub unsafe fn MFTEnumEx(guidcategory: windows_core::GUID, flags: MFT_ENUM_FLAG, pinputtype: Option<*const MFT_REGISTER_TYPE_INFO>, poutputtype: Option<*const MFT_REGISTER_TYPE_INFO>, pppmftactivate: *mut *mut Option, pnummftactivate: *mut u32) -> windows_core::Result<()> { @@ -1714,29 +1714,29 @@ pub unsafe fn MFTGetInfo(clsidmft: windows_core::GUID, pszname: Option<*mut wind #[inline] pub unsafe fn MFTRegister(clsidmft: windows_core::GUID, guidcategory: windows_core::GUID, pszname: P0, flags: u32, pinputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>, poutputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>, pattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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.into_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] pub unsafe fn MFTRegisterLocal(pclassfactory: P0, guidcategory: *const windows_core::GUID, pszname: P1, flags: u32, pinputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>, poutputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), guidcategory, pszname.into_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() + 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: P0, flags: u32, pinputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>, poutputtypes: Option<&[MFT_REGISTER_TYPE_INFO]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(clisdmft, guidcategory, pszname.into_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() + 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<()> { @@ -1747,10 +1747,10 @@ pub unsafe fn MFTUnregister(clsidmft: windows_core::GUID) -> windows_core::Resul #[inline] pub unsafe fn MFTUnregisterLocal(pclassfactory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFTUnregisterLocal(pclassfactory : * mut core::ffi::c_void) -> windows_core::HRESULT); - MFTUnregisterLocal(pclassfactory.into_param().abi()).ok() + MFTUnregisterLocal(pclassfactory.param().abi()).ok() } #[inline] pub unsafe fn MFTUnregisterLocalByCLSID(clsidmft: windows_core::GUID) -> windows_core::Result<()> { @@ -1760,11 +1760,11 @@ pub unsafe fn MFTUnregisterLocalByCLSID(clsidmft: windows_core::GUID) -> windows #[inline] pub unsafe fn MFTranscodeGetAudioOutputAvailableTypes(guidsubtype: *const windows_core::GUID, dwmftflags: u32, pcodecconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFTranscodeGetAudioOutputAvailableTypes(guidsubtype, dwmftflags, pcodecconfig.into_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<()> { @@ -1789,11 +1789,11 @@ pub unsafe fn MFUnregisterPlatformFromMMCSS() -> windows_core::Result<()> { #[inline] pub unsafe fn MFUnwrapMediaType(pwrap: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mfplat.dll" "system" fn MFUnwrapMediaType(pwrap : * mut core::ffi::c_void, pporig : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MFUnwrapMediaType(pwrap.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MFUnwrapMediaType(pwrap.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MFValidateMediaTypeSize(formattype: windows_core::GUID, pblock: Option<&[u8]>) -> windows_core::Result<()> { @@ -1803,11 +1803,11 @@ pub unsafe fn MFValidateMediaTypeSize(formattype: windows_core::GUID, pblock: Op #[inline] pub unsafe fn MFWrapMediaType(porig: P0, majortype: *const windows_core::GUID, subtype: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MFWrapMediaType(porig.into_param().abi(), majortype, 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 { @@ -1824,19 +1824,19 @@ pub unsafe fn OPMGetVideoOutputForTarget(padapterluid: *const super::super::Foun #[inline] pub unsafe fn OPMGetVideoOutputsFromHMONITOR(hmonitor: P0, vos: OPM_VIDEO_OUTPUT_SEMANTICS, pulnumvideooutputs: *mut u32, pppopmvideooutputarray: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 Option < IOPMVideoOutput >) -> windows_core::HRESULT); - OPMGetVideoOutputsFromHMONITOR(hmonitor.into_param().abi(), vos, pulnumvideooutputs, pppopmvideooutputarray).ok() + OPMGetVideoOutputsFromHMONITOR(hmonitor.param().abi(), vos, pulnumvideooutputs, pppopmvideooutputarray).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] #[inline] pub unsafe fn OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9: P0, vos: OPM_VIDEO_OUTPUT_SEMANTICS, pulnumvideooutputs: *mut u32, pppopmvideooutputarray: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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 Option < IOPMVideoOutput >) -> windows_core::HRESULT); - OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9.into_param().abi(), vos, pulnumvideooutputs, pppopmvideooutputarray).ok() + OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9.param().abi(), vos, pulnumvideooutputs, pppopmvideooutputarray).ok() } #[inline] pub unsafe fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> windows_core::Result<()> { @@ -1871,9 +1871,9 @@ windows_core::imp::interface_hierarchy!(IAdvancedMediaCaptureInitializationSetti impl IAdvancedMediaCaptureInitializationSettings { pub unsafe fn SetDirectxDeviceManager(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectxDeviceManager)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectxDeviceManager)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[repr(C)] @@ -1914,10 +1914,10 @@ impl IClusterDetector { } pub unsafe fn Detect(&self, dwmaxnumclusters: u32, fminclusterduration: f32, fmaxclusterduration: f32, psrctoc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Detect)(windows_core::Interface::as_raw(self), dwmaxnumclusters, fminclusterduration, fmaxclusterduration, psrctoc.into_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)] @@ -1970,23 +1970,23 @@ impl ICodecAPI { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAllSettings(&self, __midl__icodecapi0000: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAllSettings)(windows_core::Interface::as_raw(self), __midl__icodecapi0000.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetAllSettings)(windows_core::Interface::as_raw(self), __midl__icodecapi0000.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAllSettings(&self, __midl__icodecapi0001: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllSettings)(windows_core::Interface::as_raw(self), __midl__icodecapi0001.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllSettings)(windows_core::Interface::as_raw(self), __midl__icodecapi0001.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAllSettingsWithNotify(&self, __midl__icodecapi0002: P0, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllSettingsWithNotify)(windows_core::Interface::as_raw(self), __midl__icodecapi0002.into_param().abi(), changedparam, changedparamcount).ok() + (windows_core::Interface::vtable(self).SetAllSettingsWithNotify)(windows_core::Interface::as_raw(self), __midl__icodecapi0002.param().abi(), changedparam, changedparamcount).ok() } } #[repr(C)] @@ -2034,16 +2034,16 @@ impl ID3D12VideoDecodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2062,9 +2062,9 @@ impl ID3D12VideoDecodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).ClearState)(windows_core::Interface::as_raw(self)) @@ -2076,38 +2076,38 @@ impl ID3D12VideoDecodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, 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), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -2121,9 +2121,9 @@ impl ID3D12VideoDecodeCommandList { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn DecodeFrame(&self, pdecoder: P0, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputarguments, pinputarguments) } #[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>) { @@ -2197,16 +2197,16 @@ impl ID3D12VideoDecodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2225,9 +2225,9 @@ impl ID3D12VideoDecodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -2239,38 +2239,38 @@ impl ID3D12VideoDecodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.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).base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -2284,9 +2284,9 @@ impl ID3D12VideoDecodeCommandList1 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn DecodeFrame(&self, pdecoder: P0, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputarguments, pinputarguments) } #[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>) { @@ -2295,9 +2295,9 @@ impl ID3D12VideoDecodeCommandList1 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn DecodeFrame1(&self, pdecoder: P0, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeFrame1)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).DecodeFrame1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputarguments, pinputarguments) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -2330,16 +2330,16 @@ impl ID3D12VideoDecodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2358,9 +2358,9 @@ impl ID3D12VideoDecodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -2372,38 +2372,38 @@ impl ID3D12VideoDecodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -2417,9 +2417,9 @@ impl ID3D12VideoDecodeCommandList2 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn DecodeFrame(&self, pdecoder: P0, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.base__.DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputarguments, pinputarguments) } #[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>) { @@ -2428,30 +2428,30 @@ impl ID3D12VideoDecodeCommandList2 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn DecodeFrame1(&self, pdecoder: P0, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DecodeFrame1)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.DecodeFrame1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputarguments, pinputarguments) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn InitializeExtensionCommand(&self, pextensioncommand: P0, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pinitializationparameters, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes) + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -2492,16 +2492,16 @@ impl ID3D12VideoDecodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2520,9 +2520,9 @@ impl ID3D12VideoDecodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -2534,38 +2534,38 @@ impl ID3D12VideoDecodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -2579,9 +2579,9 @@ impl ID3D12VideoDecodeCommandList3 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn DecodeFrame(&self, pdecoder: P0, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.base__.base__.DecodeFrame)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputarguments, pinputarguments) } #[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>) { @@ -2590,30 +2590,30 @@ impl ID3D12VideoDecodeCommandList3 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn DecodeFrame1(&self, pdecoder: P0, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DecodeFrame1)(windows_core::Interface::as_raw(self), pdecoder.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.base__.DecodeFrame1)(windows_core::Interface::as_raw(self), pdecoder.param().abi(), poutputarguments, pinputarguments) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn InitializeExtensionCommand(&self, pextensioncommand: P0, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pinitializationparameters, initializationparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Barrier(&self, pbarriergroups: &[super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP]) { @@ -2650,16 +2650,16 @@ impl ID3D12VideoDecoder { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2701,16 +2701,16 @@ impl ID3D12VideoDecoder1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2758,16 +2758,16 @@ impl ID3D12VideoDecoderHeap { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2813,16 +2813,16 @@ impl ID3D12VideoDecoderHeap1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -2932,20 +2932,20 @@ impl ID3D12VideoDevice1 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateVideoMotionEstimator(&self, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoMotionEstimator)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoMotionVectorHeap)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_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__)) } } unsafe impl Send for ID3D12VideoDevice1 {} @@ -2994,63 +2994,63 @@ impl ID3D12VideoDevice2 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateVideoMotionEstimator(&self, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateVideoMotionEstimator)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateVideoMotionVectorHeap)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateVideoMotionVectorHeap)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateVideoDecoder1(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC, pprotectedresourcesession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoDecoder1)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoDecoderHeap1)(windows_core::Interface::as_raw(self), pvideodecoderheapdesc, pprotectedresourcesession.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (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.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateVideoExtensionCommand)(windows_core::Interface::as_raw(self), pdesc, pcreationparameters, creationparametersdatasizeinbytes, pprotectedresourcesession.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes, poutputdata, outputdatasizeinbytes).ok() + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes, poutputdata, outputdatasizeinbytes).ok() } } unsafe impl Send for ID3D12VideoDevice2 {} @@ -3111,63 +3111,63 @@ impl ID3D12VideoDevice3 { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateVideoMotionEstimator(&self, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.CreateVideoMotionEstimator)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.base__.CreateVideoMotionVectorHeap)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateVideoMotionVectorHeap)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateVideoDecoder1(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC, pprotectedresourcesession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateVideoDecoder1)(windows_core::Interface::as_raw(self), pdesc, pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateVideoDecoderHeap1)(windows_core::Interface::as_raw(self), pvideodecoderheapdesc, pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateVideoProcessor1)(windows_core::Interface::as_raw(self), nodemask, poutputstreamdesc, pinputstreamdescs.len().try_into().unwrap(), core::mem::transmute(pinputstreamdescs.as_ptr()), pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateVideoExtensionCommand)(windows_core::Interface::as_raw(self), pdesc, pcreationparameters, creationparametersdatasizeinbytes, pprotectedresourcesession.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes, poutputdata, outputdatasizeinbytes).ok() + (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes, poutputdata, outputdatasizeinbytes).ok() } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoEncoder(&self, pdesc: *const D3D12_VIDEO_ENCODER_DESC) -> windows_core::Result @@ -3213,16 +3213,16 @@ impl ID3D12VideoEncodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -3241,9 +3241,9 @@ impl ID3D12VideoEncodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).ClearState)(windows_core::Interface::as_raw(self)) @@ -3255,38 +3255,38 @@ impl ID3D12VideoEncodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, 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), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -3300,9 +3300,9 @@ impl ID3D12VideoEncodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EstimateMotion(&self, pmotionestimator: P0, poutputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT, pinputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.param().abi(), poutputarguments, pinputarguments) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ResolveMotionVectorHeap(&self, poutputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT, pinputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT) { @@ -3315,9 +3315,9 @@ impl ID3D12VideoEncodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -3395,16 +3395,16 @@ impl ID3D12VideoEncodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -3423,9 +3423,9 @@ impl ID3D12VideoEncodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -3437,38 +3437,38 @@ impl ID3D12VideoEncodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.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).base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -3482,9 +3482,9 @@ impl ID3D12VideoEncodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EstimateMotion(&self, pmotionestimator: P0, poutputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT, pinputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.param().abi(), poutputarguments, pinputarguments) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ResolveMotionVectorHeap(&self, poutputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT, pinputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT) { @@ -3497,23 +3497,23 @@ impl ID3D12VideoEncodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn InitializeExtensionCommand(&self, pextensioncommand: P0, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pinitializationparameters, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes) + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -3550,16 +3550,16 @@ impl ID3D12VideoEncodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -3578,9 +3578,9 @@ impl ID3D12VideoEncodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -3592,38 +3592,38 @@ impl ID3D12VideoEncodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -3637,9 +3637,9 @@ impl ID3D12VideoEncodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EstimateMotion(&self, pmotionestimator: P0, poutputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT, pinputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.base__.EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.param().abi(), poutputarguments, pinputarguments) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ResolveMotionVectorHeap(&self, poutputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT, pinputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT) { @@ -3652,31 +3652,31 @@ impl ID3D12VideoEncodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn InitializeExtensionCommand(&self, pextensioncommand: P0, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pinitializationparameters, initializationparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn EncodeFrame(&self, pencoder: P0, pheap: P1, pinputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeFrame)(windows_core::Interface::as_raw(self), pencoder.into_param().abi(), pheap.into_param().abi(), pinputarguments, poutputarguments) + (windows_core::Interface::vtable(self).EncodeFrame)(windows_core::Interface::as_raw(self), pencoder.param().abi(), pheap.param().abi(), pinputarguments, poutputarguments) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn ResolveEncoderOutputMetadata(&self, pinputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS) { @@ -3717,16 +3717,16 @@ impl ID3D12VideoEncodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -3745,9 +3745,9 @@ impl ID3D12VideoEncodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -3759,38 +3759,38 @@ impl ID3D12VideoEncodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -3804,9 +3804,9 @@ impl ID3D12VideoEncodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EstimateMotion(&self, pmotionestimator: P0, poutputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT, pinputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.into_param().abi(), poutputarguments, pinputarguments) + (windows_core::Interface::vtable(self).base__.base__.base__.EstimateMotion)(windows_core::Interface::as_raw(self), pmotionestimator.param().abi(), poutputarguments, pinputarguments) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ResolveMotionVectorHeap(&self, poutputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT, pinputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT) { @@ -3819,31 +3819,31 @@ impl ID3D12VideoEncodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn InitializeExtensionCommand(&self, pextensioncommand: P0, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pinitializationparameters, initializationparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn EncodeFrame(&self, pencoder: P0, pheap: P1, pinputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EncodeFrame)(windows_core::Interface::as_raw(self), pencoder.into_param().abi(), pheap.into_param().abi(), pinputarguments, poutputarguments) + (windows_core::Interface::vtable(self).base__.EncodeFrame)(windows_core::Interface::as_raw(self), pencoder.param().abi(), pheap.param().abi(), pinputarguments, poutputarguments) } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn ResolveEncoderOutputMetadata(&self, pinputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS) { @@ -3884,16 +3884,16 @@ impl ID3D12VideoEncoder { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -3961,16 +3961,16 @@ impl ID3D12VideoEncoderHeap { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4034,16 +4034,16 @@ impl ID3D12VideoExtensionCommand { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4092,16 +4092,16 @@ impl ID3D12VideoMotionEstimator { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4154,16 +4154,16 @@ impl ID3D12VideoMotionVectorHeap { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4216,16 +4216,16 @@ impl ID3D12VideoProcessCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4244,9 +4244,9 @@ impl ID3D12VideoProcessCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).ClearState)(windows_core::Interface::as_raw(self)) @@ -4258,38 +4258,38 @@ impl ID3D12VideoProcessCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, 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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, 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), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -4303,9 +4303,9 @@ impl ID3D12VideoProcessCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ProcessFrames(&self, pvideoprocessor: P0, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, pinputarguments: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) + (windows_core::Interface::vtable(self).ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) } #[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>) { @@ -4379,16 +4379,16 @@ impl ID3D12VideoProcessCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4407,9 +4407,9 @@ impl ID3D12VideoProcessCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -4421,38 +4421,38 @@ impl ID3D12VideoProcessCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.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).base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -4466,9 +4466,9 @@ impl ID3D12VideoProcessCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ProcessFrames(&self, pvideoprocessor: P0, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, pinputarguments: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) + (windows_core::Interface::vtable(self).base__.ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) } #[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>) { @@ -4477,9 +4477,9 @@ impl ID3D12VideoProcessCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ProcessFrames1(&self, pvideoprocessor: P0, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, pinputarguments: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessFrames1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) + (windows_core::Interface::vtable(self).ProcessFrames1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -4512,16 +4512,16 @@ impl ID3D12VideoProcessCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4540,9 +4540,9 @@ impl ID3D12VideoProcessCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -4554,38 +4554,38 @@ impl ID3D12VideoProcessCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -4599,9 +4599,9 @@ impl ID3D12VideoProcessCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ProcessFrames(&self, pvideoprocessor: P0, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, pinputarguments: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) } #[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>) { @@ -4610,30 +4610,30 @@ impl ID3D12VideoProcessCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ProcessFrames1(&self, pvideoprocessor: P0, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, pinputarguments: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ProcessFrames1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) + (windows_core::Interface::vtable(self).base__.ProcessFrames1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn InitializeExtensionCommand(&self, pextensioncommand: P0, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pinitializationparameters, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes) + (windows_core::Interface::vtable(self).ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } } #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -4674,16 +4674,16 @@ impl ID3D12VideoProcessCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4702,9 +4702,9 @@ impl ID3D12VideoProcessCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Reset(&self, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Reset)(windows_core::Interface::as_raw(self), pallocator.param().abi()).ok() } pub unsafe fn ClearState(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.ClearState)(windows_core::Interface::as_raw(self)) @@ -4716,38 +4716,38 @@ impl ID3D12VideoProcessCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn DiscardResource(&self, presource: P0, pregion: Option<*const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.into_param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) + (windows_core::Interface::vtable(self).base__.base__.base__.DiscardResource)(windows_core::Interface::as_raw(self), presource.param().abi(), core::mem::transmute(pregion.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn BeginQuery(&self, pqueryheap: P0, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.BeginQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EndQuery)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, index) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, aligneddestinationbufferoffset: u64) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ResolveQueryData)(windows_core::Interface::as_raw(self), pqueryheap.into_param().abi(), r#type, startindex, numqueries, pdestinationbuffer.into_param().abi(), aligneddestinationbufferoffset) + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPredication)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi(), alignedbufferoffset, operation) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SetMarker)(windows_core::Interface::as_raw(self), metadata, core::mem::transmute(pdata.unwrap_or(std::ptr::null())), size) @@ -4761,9 +4761,9 @@ impl ID3D12VideoProcessCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ProcessFrames(&self, pvideoprocessor: P0, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, pinputarguments: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.base__.ProcessFrames)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) } #[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>) { @@ -4772,30 +4772,30 @@ impl ID3D12VideoProcessCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn ProcessFrames1(&self, pvideoprocessor: P0, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, pinputarguments: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ProcessFrames1)(windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) + (windows_core::Interface::vtable(self).base__.base__.ProcessFrames1)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), poutputarguments, pinputarguments.len().try_into().unwrap(), core::mem::transmute(pinputarguments.as_ptr())) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetProtectedResourceSession(&self, pprotectedresourcesession: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) + (windows_core::Interface::vtable(self).base__.SetProtectedResourceSession)(windows_core::Interface::as_raw(self), pprotectedresourcesession.param().abi()) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn InitializeExtensionCommand(&self, pextensioncommand: P0, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pinitializationparameters, initializationparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes) + (windows_core::Interface::vtable(self).base__.ExecuteExtensionCommand)(windows_core::Interface::as_raw(self), pextensioncommand.param().abi(), pexecutionparameters, executionparameterssizeinbytes) } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn Barrier(&self, pbarriergroups: &[super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP]) { @@ -4832,16 +4832,16 @@ impl ID3D12VideoProcessor { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -4903,16 +4903,16 @@ impl ID3D12VideoProcessor1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateDataInterface)(windows_core::Interface::as_raw(self), guid, pdata.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut Option) -> windows_core::Result<()> @@ -5030,9 +5030,9 @@ impl IDXVAHD_VideoProcessor { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessBltHD)(windows_core::Interface::as_raw(self), poutputsurface.into_param().abi(), 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)] @@ -5110,25 +5110,25 @@ impl IDirect3DCryptoSession9 { #[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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), dstsurfacesize, piv).ok() + (windows_core::Interface::vtable(self).EncryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), pdstsurface.param().abi(), dstsurfacesize, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.into_param().abi(), pdstsurface.into_param().abi(), srcsurfacesize, pencryptedblockinfo, pcontentkey, piv).ok() + (windows_core::Interface::vtable(self).DecryptionBlt)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), pdstsurface.param().abi(), srcsurfacesize, pencryptedblockinfo, pcontentkey, piv).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn GetSurfacePitch(&self, psrcsurface: P0, psurfacepitch: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSurfacePitch)(windows_core::Interface::as_raw(self), psrcsurface.into_param().abi(), psurfacepitch).ok() + (windows_core::Interface::vtable(self).GetSurfacePitch)(windows_core::Interface::as_raw(self), psrcsurface.param().abi(), 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), prandomnumber, randomnumbersize).ok() @@ -5192,9 +5192,9 @@ impl IDirect3DDeviceManager9 { #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn ResetDevice(&self, pdevice: P0, resettoken: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResetDevice)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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__ = std::mem::zeroed(); @@ -5202,36 +5202,36 @@ impl IDirect3DDeviceManager9 { } pub unsafe fn CloseDeviceHandle(&self, hdevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), hdevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), hdevice.param().abi()).ok() } pub unsafe fn TestDevice(&self, hdevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), hdevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), hdevice.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn LockDevice(&self, hdevice: P0, ppdevice: *mut Option, fblock: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), hdevice.into_param().abi(), core::mem::transmute(ppdevice), fblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), hdevice.param().abi(), core::mem::transmute(ppdevice), fblock.param().abi()).ok() } pub unsafe fn UnlockDevice(&self, hdevice: P0, fsavestate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), hdevice.into_param().abi(), fsavestate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), hdevice.param().abi(), fsavestate.param().abi()).ok() } pub unsafe fn GetVideoService(&self, hdevice: P0, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), hdevice.into_param().abi(), riid, ppservice).ok() + (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), hdevice.param().abi(), riid, ppservice).ok() } } #[repr(C)] @@ -5287,9 +5287,9 @@ impl IDirectXVideoDecoder { #[cfg(feature = "Win32_Graphics_Direct3D9")] pub unsafe fn BeginFrame(&self, prendertarget: P0, pvpvpdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginFrame)(windows_core::Interface::as_raw(self), prendertarget.into_param().abi(), core::mem::transmute(pvpvpdata.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).BeginFrame)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), core::mem::transmute(pvpvpdata.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn EndFrame(&self, phandlecomplete: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(phandlecomplete.unwrap_or(std::ptr::null_mut()))).ok() @@ -5399,9 +5399,9 @@ impl IDirectXVideoProcessor { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VideoProcessBlt)(windows_core::Interface::as_raw(self), prendertarget.into_param().abi(), pbltparams, core::mem::transmute(psamples.as_ptr()), psamples.len().try_into().unwrap(), core::mem::transmute(phandlecomplete.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -5555,9 +5555,9 @@ impl IEVRTrustedVideoPlugin { } pub unsafe fn DisableImageExport(&self, bdisable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisableImageExport)(windows_core::Interface::as_raw(self), bdisable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisableImageExport)(windows_core::Interface::as_raw(self), bdisable.param().abi()).ok() } } #[repr(C)] @@ -5573,9 +5573,9 @@ windows_core::imp::interface_hierarchy!(IEVRVideoStreamControl, windows_core::IU impl IEVRVideoStreamControl { pub unsafe fn SetStreamActiveState(&self, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.param().abi()).ok() } pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5596,15 +5596,15 @@ impl IFileClient { } pub unsafe fn Write(&self, pfio: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pfio.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pfio.param().abi()).ok() } pub unsafe fn Read(&self, pfio: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pfio.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pfio.param().abi()).ok() } } #[repr(C)] @@ -5619,9 +5619,9 @@ windows_core::imp::interface_hierarchy!(IFileIo, windows_core::IUnknown); impl IFileIo { pub unsafe fn Initialize(&self, eaccessmode: FILE_ACCESSMODE, eopenmode: FILE_OPENMODE, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), eaccessmode, eopenmode, pwszfilename.into_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), pqwlength).ok() @@ -5734,9 +5734,9 @@ impl IMF2DBuffer2 { } pub unsafe fn Copy2DTo(&self, pdestbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Copy2DTo)(windows_core::Interface::as_raw(self), pdestbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Copy2DTo)(windows_core::Interface::as_raw(self), pdestbuffer.param().abi()).ok() } } #[repr(C)] @@ -5750,23 +5750,23 @@ windows_core::imp::interface_hierarchy!(IMFASFContentInfo, windows_core::IUnknow impl IMFASFContentInfo { pub unsafe fn GetHeaderSize(&self, pistartofcontent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHeaderSize)(windows_core::Interface::as_raw(self), pistartofcontent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetHeaderSize)(windows_core::Interface::as_raw(self), pistartofcontent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ParseHeader(&self, piheaderbuffer: P0, cboffsetwithinheader: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseHeader)(windows_core::Interface::as_raw(self), piheaderbuffer.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateHeader)(windows_core::Interface::as_raw(self), piheader.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GenerateHeader)(windows_core::Interface::as_raw(self), piheader.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetProfile(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5774,9 +5774,9 @@ impl IMFASFContentInfo { } pub unsafe fn SetProfile(&self, piprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), piprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), piprofile.param().abi()).ok() } pub unsafe fn GeneratePresentationDescriptor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5814,16 +5814,16 @@ impl IMFASFIndexer { } pub unsafe fn Initialize(&self, picontentinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picontentinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picontentinfo.param().abi()).ok() } pub unsafe fn GetIndexPosition(&self, picontentinfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndexPosition)(windows_core::Interface::as_raw(self), picontentinfo.into_param().abi(), &mut result__).map(|| result__) + (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), cbytestreams).ok() @@ -5837,24 +5837,24 @@ impl IMFASFIndexer { } pub unsafe fn SetIndexStatus(&self, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIndexStatus)(windows_core::Interface::as_raw(self), pbindexdescriptor, cbindexdescriptor, fgenerateindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIndexStatus)(windows_core::Interface::as_raw(self), pbindexdescriptor, cbindexdescriptor, fgenerateindex.param().abi()).ok() } pub unsafe fn GetSeekPositionForValue(&self, pvarvalue: *const windows_core::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), pindexidentifier, pcboffsetwithindata, phnsapproxtime, pdwpayloadnumberofstreamwithinpacket).ok() } pub unsafe fn GenerateIndexEntries(&self, piasfpacketsample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateIndexEntries)(windows_core::Interface::as_raw(self), piasfpacketsample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GenerateIndexEntries)(windows_core::Interface::as_raw(self), piasfpacketsample.param().abi()).ok() } pub unsafe fn CommitIndex(&self, picontentinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitIndex)(windows_core::Interface::as_raw(self), picontentinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CommitIndex)(windows_core::Interface::as_raw(self), picontentinfo.param().abi()).ok() } pub unsafe fn GetIndexWriteSpace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5862,9 +5862,9 @@ impl IMFASFIndexer { } pub unsafe fn GetCompletedIndex(&self, piindexbuffer: P0, cboffsetwithinindex: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompletedIndex)(windows_core::Interface::as_raw(self), piindexbuffer.into_param().abi(), cboffsetwithinindex).ok() + (windows_core::Interface::vtable(self).GetCompletedIndex)(windows_core::Interface::as_raw(self), piindexbuffer.param().abi(), cboffsetwithinindex).ok() } } #[repr(C)] @@ -5889,9 +5889,9 @@ windows_core::imp::interface_hierarchy!(IMFASFMultiplexer, windows_core::IUnknow impl IMFASFMultiplexer { pub unsafe fn Initialize(&self, picontentinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picontentinfo.into_param().abi()).ok() + (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), dwflags).ok() @@ -5902,9 +5902,9 @@ impl IMFASFMultiplexer { } pub unsafe fn ProcessSample(&self, wstreamnumber: u16, pisample: P0, hnstimestampadjust: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessSample)(windows_core::Interface::as_raw(self), wstreamnumber, pisample.into_param().abi(), 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), pdwstatusflags, core::mem::transmute(ppipacket)).ok() @@ -5914,9 +5914,9 @@ impl IMFASFMultiplexer { } pub unsafe fn End(&self, picontentinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), picontentinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).End)(windows_core::Interface::as_raw(self), picontentinfo.param().abi()).ok() } pub unsafe fn GetStatistics(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6003,10 +6003,10 @@ impl IMFASFProfile { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -6074,18 +6074,18 @@ impl IMFASFProfile { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -6102,9 +6102,9 @@ impl IMFASFProfile { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetStreamCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6119,19 +6119,19 @@ impl IMFASFProfile { } pub unsafe fn SetStream(&self, pistream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi()).ok() + (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), wstreamnumber).ok() } pub unsafe fn CreateStream(&self, pimediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), pimediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), pimediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMutualExclusionCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6143,9 +6143,9 @@ impl IMFASFProfile { } pub unsafe fn AddMutualExclusion(&self, pimutex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMutualExclusion)(windows_core::Interface::as_raw(self), pimutex.into_param().abi()).ok() + (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), dwmutexindex).ok() @@ -6160,9 +6160,9 @@ impl IMFASFProfile { } pub unsafe fn AddStreamPrioritization(&self, pistreamprioritization: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStreamPrioritization)(windows_core::Interface::as_raw(self), pistreamprioritization.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddStreamPrioritization)(windows_core::Interface::as_raw(self), pistreamprioritization.param().abi()).ok() } pub unsafe fn RemoveStreamPrioritization(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveStreamPrioritization)(windows_core::Interface::as_raw(self)).ok() @@ -6201,9 +6201,9 @@ windows_core::imp::interface_hierarchy!(IMFASFSplitter, windows_core::IUnknown); impl IMFASFSplitter { pub unsafe fn Initialize(&self, picontentinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picontentinfo.into_param().abi()).ok() + (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), dwflags).ok() @@ -6220,9 +6220,9 @@ impl IMFASFSplitter { } pub unsafe fn ParseData(&self, pibuffer: P0, cbbufferoffset: u32, cblength: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseData)(windows_core::Interface::as_raw(self), pibuffer.into_param().abi(), cbbufferoffset, 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), pdwstatusflags, pwstreamnumber, core::mem::transmute(ppisample)).ok() @@ -6264,10 +6264,10 @@ impl IMFASFStreamConfig { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -6335,18 +6335,18 @@ impl IMFASFStreamConfig { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -6363,9 +6363,9 @@ impl IMFASFStreamConfig { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetStreamType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6383,9 +6383,9 @@ impl IMFASFStreamConfig { } pub unsafe fn SetMediaType(&self, pimediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), pimediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), pimediatype.param().abi()).ok() } pub unsafe fn GetPayloadExtensionCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6539,10 +6539,10 @@ impl IMFActivate { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -6610,18 +6610,18 @@ impl IMFActivate { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -6638,9 +6638,9 @@ impl IMFActivate { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn ActivateObject(&self) -> windows_core::Result where @@ -6671,9 +6671,9 @@ impl IMFAsyncCallback { } pub unsafe fn Invoke(&self, pasyncresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pasyncresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pasyncresult.param().abi()).ok() } } #[repr(C)] @@ -6690,9 +6690,9 @@ impl IMFAsyncCallbackLogging { } pub unsafe fn Invoke(&self, pasyncresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Invoke)(windows_core::Interface::as_raw(self), pasyncresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Invoke)(windows_core::Interface::as_raw(self), pasyncresult.param().abi()).ok() } pub unsafe fn GetObjectPointer(&self) -> *mut core::ffi::c_void { (windows_core::Interface::vtable(self).GetObjectPointer)(windows_core::Interface::as_raw(self)) @@ -6753,10 +6753,10 @@ impl IMFAttributes { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), 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__ = std::mem::zeroed(); @@ -6824,18 +6824,18 @@ impl IMFAttributes { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_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), guidkey, core::mem::transmute(pbuf.as_ptr()), pbuf.len().try_into().unwrap()).ok() } pub unsafe fn SetUnknown(&self, guidkey: *const windows_core::GUID, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_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() @@ -6852,9 +6852,9 @@ impl IMFAttributes { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } } #[repr(C)] @@ -6907,10 +6907,10 @@ impl IMFAudioMediaType { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -6978,18 +6978,18 @@ impl IMFAudioMediaType { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -7006,9 +7006,9 @@ impl IMFAudioMediaType { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7020,10 +7020,10 @@ impl IMFAudioMediaType { } pub unsafe fn IsEqual(&self, pimediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), pimediatype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), pimediatype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetRepresentation(&self, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), ppvrepresentation).ok() @@ -7056,9 +7056,9 @@ impl IMFAudioPolicy { } pub unsafe fn SetDisplayName(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetDisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7066,9 +7066,9 @@ impl IMFAudioPolicy { } pub unsafe fn SetIconPath(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconPath)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIconPath)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn GetIconPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7161,17 +7161,17 @@ impl IMFByteStream { } pub unsafe fn BeginRead(&self, pb: &mut [u8], pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginRead)(windows_core::Interface::as_raw(self), core::mem::transmute(pb.as_ptr()), pb.len().try_into().unwrap(), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginRead)(windows_core::Interface::as_raw(self), core::mem::transmute(pb.as_ptr()), pb.len().try_into().unwrap(), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndRead(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndRead)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EndRead)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Write(&self, pb: &[u8]) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7179,17 +7179,17 @@ impl IMFByteStream { } pub unsafe fn BeginWrite(&self, pb: &[u8], pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginWrite)(windows_core::Interface::as_raw(self), core::mem::transmute(pb.as_ptr()), pb.len().try_into().unwrap(), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginWrite)(windows_core::Interface::as_raw(self), core::mem::transmute(pb.as_ptr()), pb.len().try_into().unwrap(), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndWrite(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndWrite)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EndWrite)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, seekorigin: MFBYTESTREAM_SEEK_ORIGIN, llseekoffset: i64, dwseekflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7229,9 +7229,9 @@ impl IMFByteStreamBuffering { } pub unsafe fn EnableBuffering(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableBuffering)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableBuffering)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn StopBuffering(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopBuffering)(windows_core::Interface::as_raw(self)).ok() @@ -7286,25 +7286,25 @@ impl IMFByteStreamHandler { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn BeginCreateObject(&self, pbytestream: P0, pwszurl: P1, dwflags: u32, pprops: P2, ppiunknowncancelcookie: Option<*mut Option>, pcallback: P3, punkstate: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), pwszurl.into_param().abi(), dwflags, pprops.into_param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(std::ptr::null_mut())), pcallback.into_param().abi(), punkstate.into_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(std::ptr::null_mut())), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndCreateObject)(windows_core::Interface::as_raw(self), presult.into_param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).EndCreateObject)(windows_core::Interface::as_raw(self), presult.param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() } pub unsafe fn CancelObjectCreation(&self, piunknowncancelcookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.param().abi()).ok() } pub unsafe fn GetMaxNumberOfBytesRequiredForResolution(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7327,12 +7327,12 @@ windows_core::imp::interface_hierarchy!(IMFByteStreamProxyClassFactory, windows_ impl IMFByteStreamProxyClassFactory { pub unsafe fn CreateByteStreamProxy(&self, pbytestream: P0, pattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateByteStreamProxy)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), pattributes.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateByteStreamProxy)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pattributes.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7366,16 +7366,16 @@ windows_core::imp::interface_hierarchy!(IMFCameraConfigurationManager, windows_c impl IMFCameraConfigurationManager { pub unsafe fn LoadDefaults(&self, cameraattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadDefaults)(windows_core::Interface::as_raw(self), cameraattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadDefaults)(windows_core::Interface::as_raw(self), cameraattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SaveDefaults(&self, configurations: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDefaults)(windows_core::Interface::as_raw(self), configurations.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveDefaults)(windows_core::Interface::as_raw(self), configurations.param().abi()).ok() } pub unsafe fn Shutdown(&self) { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)) @@ -7429,10 +7429,10 @@ impl IMFCameraControlDefaultsCollection { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -7500,18 +7500,18 @@ impl IMFCameraControlDefaultsCollection { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -7528,9 +7528,9 @@ impl IMFCameraControlDefaultsCollection { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetControlCount(&self) -> u32 { (windows_core::Interface::vtable(self).GetControlCount)(windows_core::Interface::as_raw(self)) @@ -7646,9 +7646,9 @@ windows_core::imp::interface_hierarchy!(IMFCameraOcclusionStateReportCallback, w impl IMFCameraOcclusionStateReportCallback { pub unsafe fn OnOcclusionStateReport(&self, occlusionstatereport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOcclusionStateReport)(windows_core::Interface::as_raw(self), occlusionstatereport.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnOcclusionStateReport)(windows_core::Interface::as_raw(self), occlusionstatereport.param().abi()).ok() } } #[repr(C)] @@ -7677,12 +7677,12 @@ windows_core::imp::interface_hierarchy!(IMFCaptureEngine, windows_core::IUnknown impl IMFCaptureEngine { pub unsafe fn Initialize(&self, peventcallback: P0, pattributes: P1, paudiosource: P2, pvideosource: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), peventcallback.into_param().abi(), pattributes.into_param().abi(), paudiosource.into_param().abi(), pvideosource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), peventcallback.param().abi(), pattributes.param().abi(), paudiosource.param().abi(), pvideosource.param().abi()).ok() } pub unsafe fn StartPreview(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartPreview)(windows_core::Interface::as_raw(self)).ok() @@ -7695,10 +7695,10 @@ impl IMFCaptureEngine { } pub unsafe fn StopRecord(&self, bfinalize: P0, bflushunprocessedsamples: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StopRecord)(windows_core::Interface::as_raw(self), bfinalize.into_param().abi(), bflushunprocessedsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StopRecord)(windows_core::Interface::as_raw(self), bfinalize.param().abi(), bflushunprocessedsamples.param().abi()).ok() } pub unsafe fn TakePhoto(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TakePhoto)(windows_core::Interface::as_raw(self)).ok() @@ -7745,9 +7745,9 @@ windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnEventCallback, windows impl IMFCaptureEngineOnEventCallback { pub unsafe fn OnEvent(&self, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), pevent.param().abi()).ok() } } #[repr(C)] @@ -7760,9 +7760,9 @@ windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnSampleCallback, window impl IMFCaptureEngineOnSampleCallback { pub unsafe fn OnSample(&self, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSample)(windows_core::Interface::as_raw(self), psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSample)(windows_core::Interface::as_raw(self), psample.param().abi()).ok() } } #[repr(C)] @@ -7775,15 +7775,15 @@ windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnSampleCallback2, windo impl IMFCaptureEngineOnSampleCallback2 { pub unsafe fn OnSample(&self, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnSample)(windows_core::Interface::as_raw(self), psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnSample)(windows_core::Interface::as_raw(self), psample.param().abi()).ok() } pub unsafe fn OnSynchronizedEvent(&self, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSynchronizedEvent)(windows_core::Interface::as_raw(self), pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSynchronizedEvent)(windows_core::Interface::as_raw(self), pevent.param().abi()).ok() } } #[repr(C)] @@ -7796,9 +7796,9 @@ windows_core::imp::interface_hierarchy!(IMFCapturePhotoConfirmation, windows_cor impl IMFCapturePhotoConfirmation { pub unsafe fn SetPhotoConfirmationCallback(&self, pnotificationcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPhotoConfirmationCallback)(windows_core::Interface::as_raw(self), pnotificationcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPhotoConfirmationCallback)(windows_core::Interface::as_raw(self), pnotificationcallback.param().abi()).ok() } pub unsafe fn SetPixelFormat(&self, subtype: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetPixelFormat)(windows_core::Interface::as_raw(self), core::mem::transmute(subtype)).ok() @@ -7826,10 +7826,10 @@ impl IMFCapturePhotoSink { } pub unsafe fn AddStream(&self, dwsourcestreamindex: u32, pmediatype: P0, pattributes: P1, pdwsinkstreamindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.into_param().abi(), pattributes.into_param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.param().abi(), pattributes.param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Prepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Prepare)(windows_core::Interface::as_raw(self)).ok() @@ -7839,21 +7839,21 @@ impl IMFCapturePhotoSink { } pub unsafe fn SetOutputFileName(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn SetSampleCallback(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn SetOutputByteStream(&self, pbytestream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputByteStream)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi()).ok() } } #[repr(C)] @@ -7874,10 +7874,10 @@ impl IMFCapturePreviewSink { } pub unsafe fn AddStream(&self, dwsourcestreamindex: u32, pmediatype: P0, pattributes: P1, pdwsinkstreamindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.into_param().abi(), pattributes.into_param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.param().abi(), pattributes.param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Prepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Prepare)(windows_core::Interface::as_raw(self)).ok() @@ -7887,24 +7887,24 @@ impl IMFCapturePreviewSink { } pub unsafe fn SetRenderHandle(&self, handle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRenderHandle)(windows_core::Interface::as_raw(self), handle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRenderHandle)(windows_core::Interface::as_raw(self), handle.param().abi()).ok() } pub unsafe fn SetRenderSurface(&self, psurface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRenderSurface)(windows_core::Interface::as_raw(self), psurface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRenderSurface)(windows_core::Interface::as_raw(self), psurface.param().abi()).ok() } pub unsafe fn UpdateVideo(&self, psrc: Option<*const MFVideoNormalizedRect>, pdst: Option<*const super::super::Foundation::RECT>, pborderclr: Option<*const super::super::Foundation::COLORREF>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateVideo)(windows_core::Interface::as_raw(self), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), core::mem::transmute(pdst.unwrap_or(std::ptr::null())), core::mem::transmute(pborderclr.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn SetSampleCallback(&self, dwstreamsinkindex: u32, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), dwstreamsinkindex, pcallback.into_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__ = std::mem::zeroed(); @@ -7912,9 +7912,9 @@ impl IMFCapturePreviewSink { } pub unsafe fn SetMirrorState(&self, fmirrorstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMirrorState)(windows_core::Interface::as_raw(self), fmirrorstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMirrorState)(windows_core::Interface::as_raw(self), fmirrorstate.param().abi()).ok() } pub unsafe fn GetRotation(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7925,9 +7925,9 @@ impl IMFCapturePreviewSink { } pub unsafe fn SetCustomSink(&self, pmediasink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCustomSink)(windows_core::Interface::as_raw(self), pmediasink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCustomSink)(windows_core::Interface::as_raw(self), pmediasink.param().abi()).ok() } } #[repr(C)] @@ -7954,10 +7954,10 @@ impl IMFCaptureRecordSink { } pub unsafe fn AddStream(&self, dwsourcestreamindex: u32, pmediatype: P0, pattributes: P1, pdwsinkstreamindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.into_param().abi(), pattributes.into_param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.param().abi(), pattributes.param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Prepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Prepare)(windows_core::Interface::as_raw(self)).ok() @@ -7967,27 +7967,27 @@ impl IMFCaptureRecordSink { } pub unsafe fn SetOutputByteStream(&self, pbytestream: P0, guidcontainertype: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputByteStream)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputFileName)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn SetSampleCallback(&self, dwstreamsinkindex: u32, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), dwstreamsinkindex, pcallback.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCustomSink)(windows_core::Interface::as_raw(self), pmediasink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCustomSink)(windows_core::Interface::as_raw(self), pmediasink.param().abi()).ok() } pub unsafe fn GetRotation(&self, dwstreamindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8018,10 +8018,10 @@ impl IMFCaptureSink { } pub unsafe fn AddStream(&self, dwsourcestreamindex: u32, pmediatype: P0, pattributes: P1, pdwsinkstreamindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.into_param().abi(), pattributes.into_param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn Prepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Prepare)(windows_core::Interface::as_raw(self)).ok() @@ -8050,10 +8050,10 @@ impl IMFCaptureSink2 { } pub unsafe fn AddStream(&self, dwsourcestreamindex: u32, pmediatype: P0, pattributes: P1, pdwsinkstreamindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.into_param().abi(), pattributes.into_param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.param().abi(), pattributes.param().abi(), core::mem::transmute(pdwsinkstreamindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Prepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Prepare)(windows_core::Interface::as_raw(self)).ok() @@ -8063,10 +8063,10 @@ impl IMFCaptureSink2 { } pub unsafe fn SetOutputMediaType(&self, dwstreamindex: u32, pmediatype: P0, pencodingattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, pmediatype.into_param().abi(), pencodingattributes.into_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)] @@ -8088,15 +8088,15 @@ impl IMFCaptureSource { } pub unsafe fn AddEffect(&self, dwsourcestreamindex: u32, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEffect)(windows_core::Interface::as_raw(self), dwsourcestreamindex, punknown.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveEffect)(windows_core::Interface::as_raw(self), dwsourcestreamindex, punknown.into_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), dwsourcestreamindex).ok() @@ -8106,9 +8106,9 @@ impl IMFCaptureSource { } pub unsafe fn SetCurrentDeviceMediaType(&self, dwsourcestreamindex: u32, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCurrentDeviceMediaType)(windows_core::Interface::as_raw(self), dwsourcestreamindex, pmediatype.into_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__ = std::mem::zeroed(); @@ -8128,9 +8128,9 @@ impl IMFCaptureSource { } pub unsafe fn SetMirrorState(&self, dwstreamindex: u32, fmirrorstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMirrorState)(windows_core::Interface::as_raw(self), dwstreamindex, fmirrorstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMirrorState)(windows_core::Interface::as_raw(self), dwstreamindex, fmirrorstate.param().abi()).ok() } pub unsafe fn GetStreamIndexFromFriendlyName(&self, uifriendlyname: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8207,9 +8207,9 @@ windows_core::imp::interface_hierarchy!(IMFClockConsumer, windows_core::IUnknown impl IMFClockConsumer { pub unsafe fn SetPresentationClock(&self, ppresentationclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.param().abi()).ok() } pub unsafe fn GetPresentationClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8263,9 +8263,9 @@ impl IMFCollection { } pub unsafe fn AddElement(&self, punkelement: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddElement)(windows_core::Interface::as_raw(self), punkelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddElement)(windows_core::Interface::as_raw(self), punkelement.param().abi()).ok() } pub unsafe fn RemoveElement(&self, dwelementindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8273,9 +8273,9 @@ impl IMFCollection { } pub unsafe fn InsertElementAt(&self, dwindex: u32, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertElementAt)(windows_core::Interface::as_raw(self), dwindex, punknown.into_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() @@ -8296,10 +8296,10 @@ windows_core::imp::interface_hierarchy!(IMFContentDecryptionModule, windows_core impl IMFContentDecryptionModule { pub unsafe fn SetContentEnabler(&self, contentenabler: P0, result: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContentEnabler)(windows_core::Interface::as_raw(self), contentenabler.into_param().abi(), result.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContentEnabler)(windows_core::Interface::as_raw(self), contentenabler.param().abi(), result.param().abi()).ok() } pub unsafe fn GetSuspendNotify(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8307,16 +8307,16 @@ impl IMFContentDecryptionModule { } pub unsafe fn SetPMPHostApp(&self, pmphostapp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPMPHostApp)(windows_core::Interface::as_raw(self), pmphostapp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPMPHostApp)(windows_core::Interface::as_raw(self), pmphostapp.param().abi()).ok() } pub unsafe fn CreateSession(&self, sessiontype: MF_MEDIAKEYSESSION_TYPE, callbacks: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), sessiontype, callbacks.into_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() @@ -8346,10 +8346,10 @@ impl IMFContentDecryptionModuleAccess { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateContentDecryptionModule(&self, contentdecryptionmoduleproperties: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateContentDecryptionModule)(windows_core::Interface::as_raw(self), contentdecryptionmoduleproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateContentDecryptionModule)(windows_core::Interface::as_raw(self), contentdecryptionmoduleproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetConfiguration(&self) -> windows_core::Result { @@ -8379,18 +8379,18 @@ windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleFactory, windo impl IMFContentDecryptionModuleFactory { pub unsafe fn IsTypeSupported(&self, keysystem: P0, contenttype: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), keysystem.into_param().abi(), contenttype.into_param().abi()) + (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), keysystem.param().abi(), contenttype.param().abi()) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateContentDecryptionModuleAccess(&self, keysystem: P0, configurations: &[Option]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateContentDecryptionModuleAccess)(windows_core::Interface::as_raw(self), keysystem.into_param().abi(), core::mem::transmute(configurations.as_ptr()), configurations.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateContentDecryptionModuleAccess)(windows_core::Interface::as_raw(self), keysystem.param().abi(), core::mem::transmute(configurations.as_ptr()), configurations.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -8418,16 +8418,16 @@ impl IMFContentDecryptionModuleSession { } pub unsafe fn Load(&self, sessionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), sessionid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), sessionid.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GenerateRequest(&self, initdatatype: P0, initdata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateRequest)(windows_core::Interface::as_raw(self), initdatatype.into_param().abi(), core::mem::transmute(initdata.as_ptr()), initdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GenerateRequest)(windows_core::Interface::as_raw(self), initdatatype.param().abi(), core::mem::transmute(initdata.as_ptr()), initdata.len().try_into().unwrap()).ok() } pub unsafe fn Update(&self, response: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), core::mem::transmute(response.as_ptr()), response.len().try_into().unwrap()).ok() @@ -8456,9 +8456,9 @@ windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleSessionCallbac impl IMFContentDecryptionModuleSessionCallbacks { pub unsafe fn KeyMessage(&self, messagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, message: &[u8], destinationurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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.into_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() @@ -8542,18 +8542,18 @@ windows_core::imp::interface_hierarchy!(IMFContentProtectionManager, windows_cor impl IMFContentProtectionManager { pub unsafe fn BeginEnableContent(&self, penableractivate: P0, ptopo: P1, pcallback: P2, punkstate: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginEnableContent)(windows_core::Interface::as_raw(self), penableractivate.into_param().abi(), ptopo.into_param().abi(), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginEnableContent)(windows_core::Interface::as_raw(self), penableractivate.param().abi(), ptopo.param().abi(), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndEnableContent(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndEnableContent)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndEnableContent)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } } #[repr(C)] @@ -8567,9 +8567,9 @@ windows_core::imp::interface_hierarchy!(IMFD3D12SynchronizationObject, windows_c impl IMFD3D12SynchronizationObject { pub unsafe fn SignalEventOnFinalResourceRelease(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SignalEventOnFinalResourceRelease)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SignalEventOnFinalResourceRelease)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -8587,29 +8587,29 @@ impl IMFD3D12SynchronizationObjectCommands { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EnqueueResourceReady(&self, pproducercommandqueue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnqueueResourceReady)(windows_core::Interface::as_raw(self), pproducercommandqueue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnqueueResourceReady)(windows_core::Interface::as_raw(self), pproducercommandqueue.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EnqueueResourceReadyWait(&self, pconsumercommandqueue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnqueueResourceReadyWait)(windows_core::Interface::as_raw(self), pconsumercommandqueue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnqueueResourceReadyWait)(windows_core::Interface::as_raw(self), pconsumercommandqueue.param().abi()).ok() } pub unsafe fn SignalEventOnResourceReady(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SignalEventOnResourceReady)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SignalEventOnResourceReady)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn EnqueueResourceRelease(&self, pconsumercommandqueue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnqueueResourceRelease)(windows_core::Interface::as_raw(self), pconsumercommandqueue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnqueueResourceRelease)(windows_core::Interface::as_raw(self), pconsumercommandqueue.param().abi()).ok() } } #[repr(C)] @@ -8634,10 +8634,10 @@ windows_core::imp::interface_hierarchy!(IMFDLNASinkInit, windows_core::IUnknown) impl IMFDLNASinkInit { pub unsafe fn Initialize(&self, pbytestream: P0, fpal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), fpal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), fpal.param().abi()).ok() } } #[repr(C)] @@ -8676,9 +8676,9 @@ impl IMFDXGIBuffer { } pub unsafe fn SetUnknown(&self, guid: *const windows_core::GUID, punkdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnknown)(windows_core::Interface::as_raw(self), guid, punkdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUnknown)(windows_core::Interface::as_raw(self), guid, punkdata.param().abi()).ok() } } #[repr(C)] @@ -8694,22 +8694,22 @@ windows_core::imp::interface_hierarchy!(IMFDXGIDeviceManager, windows_core::IUnk impl IMFDXGIDeviceManager { pub unsafe fn CloseDeviceHandle(&self, hdevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), hdevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseDeviceHandle)(windows_core::Interface::as_raw(self), hdevice.param().abi()).ok() } pub unsafe fn GetVideoService(&self, hdevice: P0, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), hdevice.into_param().abi(), riid, ppservice).ok() + (windows_core::Interface::vtable(self).GetVideoService)(windows_core::Interface::as_raw(self), hdevice.param().abi(), riid, ppservice).ok() } pub unsafe fn LockDevice(&self, hdevice: P0, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), hdevice.into_param().abi(), riid, ppunkdevice, fblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LockDevice)(windows_core::Interface::as_raw(self), hdevice.param().abi(), riid, ppunkdevice, fblock.param().abi()).ok() } pub unsafe fn OpenDeviceHandle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8717,22 +8717,22 @@ impl IMFDXGIDeviceManager { } pub unsafe fn ResetDevice(&self, punkdevice: P0, resettoken: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResetDevice)(windows_core::Interface::as_raw(self), punkdevice.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), hdevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TestDevice)(windows_core::Interface::as_raw(self), hdevice.param().abi()).ok() } pub unsafe fn UnlockDevice(&self, hdevice: P0, fsavestate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), hdevice.into_param().abi(), fsavestate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnlockDevice)(windows_core::Interface::as_raw(self), hdevice.param().abi(), fsavestate.param().abi()).ok() } } #[repr(C)] @@ -8784,9 +8784,9 @@ windows_core::imp::interface_hierarchy!(IMFDeviceTransform, windows_core::IUnkno impl IMFDeviceTransform { pub unsafe fn InitializeTransform(&self, pattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeTransform)(windows_core::Interface::as_raw(self), pattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeTransform)(windows_core::Interface::as_raw(self), pattributes.param().abi()).ok() } pub unsafe fn GetInputAvailableType(&self, dwinputstreamid: u32, dwtypeindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8820,15 +8820,15 @@ impl IMFDeviceTransform { } pub unsafe fn ProcessEvent(&self, dwinputstreamid: u32, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessEvent)(windows_core::Interface::as_raw(self), dwinputstreamid, pevent.into_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: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), dwinputstreamid, psample.into_param().abi(), 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), emessage, ulparam).ok() @@ -8838,9 +8838,9 @@ impl IMFDeviceTransform { } pub unsafe fn SetInputStreamState(&self, dwstreamid: u32, pmediatype: P0, value: DeviceStreamState, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputStreamState)(windows_core::Interface::as_raw(self), dwstreamid, pmediatype.into_param().abi(), value, 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__ = std::mem::zeroed(); @@ -8848,9 +8848,9 @@ impl IMFDeviceTransform { } pub unsafe fn SetOutputStreamState(&self, dwstreamid: u32, pmediatype: P0, value: DeviceStreamState, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputStreamState)(windows_core::Interface::as_raw(self), dwstreamid, pmediatype.into_param().abi(), value, 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__ = std::mem::zeroed(); @@ -8895,9 +8895,9 @@ windows_core::imp::interface_hierarchy!(IMFDeviceTransformCallback, windows_core impl IMFDeviceTransformCallback { pub unsafe fn OnBufferSent(&self, pcallbackattributes: P0, pinid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBufferSent)(windows_core::Interface::as_raw(self), pcallbackattributes.into_param().abi(), pinid).ok() + (windows_core::Interface::vtable(self).OnBufferSent)(windows_core::Interface::as_raw(self), pcallbackattributes.param().abi(), pinid).ok() } } #[repr(C)] @@ -8994,9 +8994,9 @@ impl IMFExtendedCameraIntrinsics { } pub unsafe fn AddIntrinsicModel(&self, pintrinsicmodel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddIntrinsicModel)(windows_core::Interface::as_raw(self), pintrinsicmodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddIntrinsicModel)(windows_core::Interface::as_raw(self), pintrinsicmodel.param().abi()).ok() } } #[repr(C)] @@ -9046,11 +9046,11 @@ windows_core::imp::interface_hierarchy!(IMFExtendedDRMTypeSupport, windows_core: impl IMFExtendedDRMTypeSupport { pub unsafe fn IsTypeSupportedEx(&self, r#type: P0, keysystem: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsTypeSupportedEx)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), keysystem.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsTypeSupportedEx)(windows_core::Interface::as_raw(self), r#type.param().abi(), keysystem.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -9063,9 +9063,9 @@ windows_core::imp::interface_hierarchy!(IMFFieldOfUseMFTUnlock, windows_core::IU impl IMFFieldOfUseMFTUnlock { pub unsafe fn Unlock(&self, punkmft: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), punkmft.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unlock)(windows_core::Interface::as_raw(self), punkmft.param().abi()).ok() } } #[repr(C)] @@ -9082,10 +9082,10 @@ impl IMFFinalizableMediaSink { } pub unsafe fn AddStreamSink(&self, dwstreamsinkidentifier: u32, pmediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddStreamSink)(windows_core::Interface::as_raw(self), dwstreamsinkidentifier, pmediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.RemoveStreamSink)(windows_core::Interface::as_raw(self), dwstreamsinkidentifier).ok() @@ -9104,9 +9104,9 @@ impl IMFFinalizableMediaSink { } pub unsafe fn SetPresentationClock(&self, ppresentationclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.param().abi()).ok() } pub unsafe fn GetPresentationClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9117,16 +9117,16 @@ impl IMFFinalizableMediaSink { } pub unsafe fn BeginFinalize(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginFinalize)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginFinalize)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndFinalize(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndFinalize)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndFinalize)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } } #[repr(C)] @@ -9172,55 +9172,55 @@ windows_core::imp::interface_hierarchy!(IMFHttpDownloadRequest, windows_core::IU impl IMFHttpDownloadRequest { pub unsafe fn AddHeader(&self, szheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddHeader)(windows_core::Interface::as_raw(self), szheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddHeader)(windows_core::Interface::as_raw(self), szheader.param().abi()).ok() } pub unsafe fn BeginSendRequest(&self, pbpayload: Option<&[u8]>, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginSendRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(pbpayload.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbpayload.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginSendRequest)(windows_core::Interface::as_raw(self), core::mem::transmute(pbpayload.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbpayload.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndSendRequest(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndSendRequest)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndSendRequest)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn BeginReceiveResponse(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginReceiveResponse)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginReceiveResponse)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndReceiveResponse(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndReceiveResponse)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndReceiveResponse)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn BeginReadPayload(&self, pb: &mut [u8], pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginReadPayload)(windows_core::Interface::as_raw(self), core::mem::transmute(pb.as_ptr()), pb.len().try_into().unwrap(), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginReadPayload)(windows_core::Interface::as_raw(self), core::mem::transmute(pb.as_ptr()), pb.len().try_into().unwrap(), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndReadPayload(&self, presult: P0, pqwoffset: *mut u64, pcbread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndReadPayload)(windows_core::Interface::as_raw(self), presult.into_param().abi(), pqwoffset, pcbread).ok() + (windows_core::Interface::vtable(self).EndReadPayload)(windows_core::Interface::as_raw(self), presult.param().abi(), pqwoffset, pcbread).ok() } pub unsafe fn QueryHeader(&self, szheadername: P0, dwindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryHeader)(windows_core::Interface::as_raw(self), szheadername.into_param().abi(), 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__ = std::mem::zeroed(); @@ -9278,20 +9278,20 @@ windows_core::imp::interface_hierarchy!(IMFHttpDownloadSession, windows_core::IU impl IMFHttpDownloadSession { pub unsafe fn SetServer(&self, szservername: P0, nport: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), szservername.into_param().abi(), 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: P1, fsecure: P2, szverb: P3, szreferrer: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRequest)(windows_core::Interface::as_raw(self), szobjectname.into_param().abi(), fbypassproxycache.into_param().abi(), fsecure.into_param().abi(), szverb.into_param().abi(), szreferrer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRequest)(windows_core::Interface::as_raw(self), szobjectname.param().abi(), fbypassproxycache.param().abi(), fsecure.param().abi(), szverb.param().abi(), szreferrer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -9309,10 +9309,10 @@ windows_core::imp::interface_hierarchy!(IMFHttpDownloadSessionProvider, windows_ impl IMFHttpDownloadSessionProvider { pub unsafe fn CreateHttpDownloadSession(&self, wszscheme: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateHttpDownloadSession)(windows_core::Interface::as_raw(self), wszscheme.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateHttpDownloadSession)(windows_core::Interface::as_raw(self), wszscheme.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9325,9 +9325,9 @@ windows_core::imp::interface_hierarchy!(IMFImageSharingEngine, windows_core::IUn impl IMFImageSharingEngine { pub unsafe fn SetSource(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } pub unsafe fn GetDevice(&self, pdevice: *mut DEVICE_INFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDevice)(windows_core::Interface::as_raw(self), pdevice).ok() @@ -9348,10 +9348,10 @@ windows_core::imp::interface_hierarchy!(IMFImageSharingEngineClassFactory, windo impl IMFImageSharingEngineClassFactory { pub unsafe fn CreateInstanceFromUDN(&self, puniquedevicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceFromUDN)(windows_core::Interface::as_raw(self), puniquedevicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceFromUDN)(windows_core::Interface::as_raw(self), puniquedevicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9447,15 +9447,15 @@ impl IMFMediaEngine { } pub unsafe fn SetSourceElements(&self, psrcelements: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourceElements)(windows_core::Interface::as_raw(self), psrcelements.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourceElements)(windows_core::Interface::as_raw(self), psrcelements.param().abi()).ok() } pub unsafe fn SetSource(&self, purl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), purl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), purl.param().abi()).ok() } pub unsafe fn GetCurrentSource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9479,10 +9479,10 @@ impl IMFMediaEngine { } pub unsafe fn CanPlayType(&self, r#type: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanPlayType)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanPlayType)(windows_core::Interface::as_raw(self), r#type.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetReadyState(&self) -> u16 { (windows_core::Interface::vtable(self).GetReadyState)(windows_core::Interface::as_raw(self)) @@ -9533,18 +9533,18 @@ impl IMFMediaEngine { } pub unsafe fn SetAutoPlay(&self, autoplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoPlay)(windows_core::Interface::as_raw(self), autoplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoPlay)(windows_core::Interface::as_raw(self), autoplay.param().abi()).ok() } pub unsafe fn GetLoop(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).GetLoop)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetLoop(&self, r#loop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoop)(windows_core::Interface::as_raw(self), r#loop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoop)(windows_core::Interface::as_raw(self), r#loop.param().abi()).ok() } pub unsafe fn Play(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Play)(windows_core::Interface::as_raw(self)).ok() @@ -9557,9 +9557,9 @@ impl IMFMediaEngine { } pub unsafe fn SetMuted(&self, muted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMuted)(windows_core::Interface::as_raw(self), muted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMuted)(windows_core::Interface::as_raw(self), muted.param().abi()).ok() } pub unsafe fn GetVolume(&self) -> f64 { (windows_core::Interface::vtable(self).GetVolume)(windows_core::Interface::as_raw(self)) @@ -9584,9 +9584,9 @@ impl IMFMediaEngine { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.into_param().abi(), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.param().abi(), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn OnVideoStreamTick(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9644,9 +9644,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineAudioEndpointId, windows_c impl IMFMediaEngineAudioEndpointId { pub unsafe fn SetAudioEndpointId(&self, pszendpointid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioEndpointId)(windows_core::Interface::as_raw(self), pszendpointid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioEndpointId)(windows_core::Interface::as_raw(self), pszendpointid.param().abi()).ok() } pub unsafe fn GetAudioEndpointId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9664,10 +9664,10 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory, windows_core impl IMFMediaEngineClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pattr.into_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__ = std::mem::zeroed(); @@ -9690,12 +9690,12 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory2, windows_cor impl IMFMediaEngineClassFactory2 { pub unsafe fn CreateMediaKeys2(&self, keysystem: P0, defaultcdmstorepath: P1, inprivatecdmstorepath: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMediaKeys2)(windows_core::Interface::as_raw(self), keysystem.into_param().abi(), defaultcdmstorepath.into_param().abi(), inprivatecdmstorepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMediaKeys2)(windows_core::Interface::as_raw(self), keysystem.param().abi(), defaultcdmstorepath.param().abi(), inprivatecdmstorepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9709,10 +9709,10 @@ impl IMFMediaEngineClassFactory3 { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateMediaKeySystemAccess(&self, keysystem: P0, ppsupportedconfigurationsarray: &[Option]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMediaKeySystemAccess)(windows_core::Interface::as_raw(self), keysystem.into_param().abi(), core::mem::transmute(ppsupportedconfigurationsarray.as_ptr()), ppsupportedconfigurationsarray.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMediaKeySystemAccess)(windows_core::Interface::as_raw(self), keysystem.param().abi(), core::mem::transmute(ppsupportedconfigurationsarray.as_ptr()), ppsupportedconfigurationsarray.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -9728,9 +9728,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory4, windows_cor impl IMFMediaEngineClassFactory4 { pub unsafe fn CreateContentDecryptionModuleFactory(&self, keysystem: P0, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateContentDecryptionModuleFactory)(windows_core::Interface::as_raw(self), keysystem.into_param().abi(), riid, ppvobject).ok() + (windows_core::Interface::vtable(self).CreateContentDecryptionModuleFactory)(windows_core::Interface::as_raw(self), keysystem.param().abi(), riid, ppvobject).ok() } } #[repr(C)] @@ -9743,10 +9743,10 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactoryEx, windows_co impl IMFMediaEngineClassFactoryEx { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pattr.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -9758,26 +9758,26 @@ impl IMFMediaEngineClassFactoryEx { } pub unsafe fn CreateMediaSourceExtension(&self, dwflags: u32, pattr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMediaSourceExtension)(windows_core::Interface::as_raw(self), dwflags, pattr.into_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: P0, cdmstorepath: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMediaKeys)(windows_core::Interface::as_raw(self), keysystem.into_param().abi(), cdmstorepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMediaKeys)(windows_core::Interface::as_raw(self), keysystem.param().abi(), cdmstorepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsTypeSupported(&self, r#type: P0, keysystem: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), keysystem.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), r#type.param().abi(), keysystem.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -9796,9 +9796,9 @@ impl IMFMediaEngineEME { } pub unsafe fn SetMediaKeys(&self, keys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaKeys)(windows_core::Interface::as_raw(self), keys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaKeys)(windows_core::Interface::as_raw(self), keys.param().abi()).ok() } } #[repr(C)] @@ -9812,9 +9812,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineEMENotify, windows_core::I impl IMFMediaEngineEMENotify { pub unsafe fn Encrypted(&self, pbinitdata: Option<&[u8]>, bstrinitdatatype: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Encrypted)(windows_core::Interface::as_raw(self), core::mem::transmute(pbinitdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbinitdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), bstrinitdatatype.into_param().abi()) + (windows_core::Interface::vtable(self).Encrypted)(windows_core::Interface::as_raw(self), core::mem::transmute(pbinitdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbinitdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), bstrinitdatatype.param().abi()) } pub unsafe fn WaitingForKey(&self) { (windows_core::Interface::vtable(self).WaitingForKey)(windows_core::Interface::as_raw(self)) @@ -9838,15 +9838,15 @@ impl IMFMediaEngineEx { } pub unsafe fn SetSourceElements(&self, psrcelements: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSourceElements)(windows_core::Interface::as_raw(self), psrcelements.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSourceElements)(windows_core::Interface::as_raw(self), psrcelements.param().abi()).ok() } pub unsafe fn SetSource(&self, purl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSource)(windows_core::Interface::as_raw(self), purl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSource)(windows_core::Interface::as_raw(self), purl.param().abi()).ok() } pub unsafe fn GetCurrentSource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9870,10 +9870,10 @@ impl IMFMediaEngineEx { } pub unsafe fn CanPlayType(&self, r#type: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CanPlayType)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CanPlayType)(windows_core::Interface::as_raw(self), r#type.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetReadyState(&self) -> u16 { (windows_core::Interface::vtable(self).base__.GetReadyState)(windows_core::Interface::as_raw(self)) @@ -9924,18 +9924,18 @@ impl IMFMediaEngineEx { } pub unsafe fn SetAutoPlay(&self, autoplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAutoPlay)(windows_core::Interface::as_raw(self), autoplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAutoPlay)(windows_core::Interface::as_raw(self), autoplay.param().abi()).ok() } pub unsafe fn GetLoop(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.GetLoop)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetLoop(&self, r#loop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLoop)(windows_core::Interface::as_raw(self), r#loop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLoop)(windows_core::Interface::as_raw(self), r#loop.param().abi()).ok() } pub unsafe fn Play(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Play)(windows_core::Interface::as_raw(self)).ok() @@ -9948,9 +9948,9 @@ impl IMFMediaEngineEx { } pub unsafe fn SetMuted(&self, muted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMuted)(windows_core::Interface::as_raw(self), muted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMuted)(windows_core::Interface::as_raw(self), muted.param().abi()).ok() } pub unsafe fn GetVolume(&self) -> f64 { (windows_core::Interface::vtable(self).base__.GetVolume)(windows_core::Interface::as_raw(self)) @@ -9975,9 +9975,9 @@ impl IMFMediaEngineEx { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.into_param().abi(), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.param().abi(), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn OnVideoStreamTick(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9985,10 +9985,10 @@ impl IMFMediaEngineEx { } pub unsafe fn SetSourceFromByteStream(&self, pbytestream: P0, purl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourceFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), purl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourceFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), purl.param().abi()).ok() } pub unsafe fn GetStatistics(&self, statisticid: MF_MEDIA_ENGINE_STATISTIC) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10008,9 +10008,9 @@ impl IMFMediaEngineEx { } pub unsafe fn FrameStep(&self, forward: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FrameStep)(windows_core::Interface::as_raw(self), forward.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FrameStep)(windows_core::Interface::as_raw(self), forward.param().abi()).ok() } pub unsafe fn GetResourceCharacteristics(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10034,9 +10034,9 @@ impl IMFMediaEngineEx { } pub unsafe fn SetStreamSelection(&self, dwstreamindex: u32, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, enabled.param().abi()).ok() } pub unsafe fn ApplyStreamSelections(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ApplyStreamSelections)(windows_core::Interface::as_raw(self)).ok() @@ -10047,17 +10047,17 @@ impl IMFMediaEngineEx { } pub unsafe fn InsertVideoEffect(&self, peffect: P0, foptional: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertVideoEffect)(windows_core::Interface::as_raw(self), peffect.into_param().abi(), foptional.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InsertVideoEffect)(windows_core::Interface::as_raw(self), peffect.param().abi(), foptional.param().abi()).ok() } pub unsafe fn InsertAudioEffect(&self, peffect: P0, foptional: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAudioEffect)(windows_core::Interface::as_raw(self), peffect.into_param().abi(), foptional.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InsertAudioEffect)(windows_core::Interface::as_raw(self), peffect.param().abi(), foptional.param().abi()).ok() } pub unsafe fn RemoveAllEffects(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllEffects)(windows_core::Interface::as_raw(self)).ok() @@ -10091,9 +10091,9 @@ impl IMFMediaEngineEx { } pub unsafe fn EnableWindowlessSwapchainMode(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableWindowlessSwapchainMode)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableWindowlessSwapchainMode)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn GetVideoSwapchainHandle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10101,9 +10101,9 @@ impl IMFMediaEngineEx { } pub unsafe fn EnableHorizontalMirrorMode(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableHorizontalMirrorMode)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableHorizontalMirrorMode)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn GetAudioStreamCategory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10125,18 +10125,18 @@ impl IMFMediaEngineEx { } pub unsafe fn SetRealTimeMode(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRealTimeMode)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRealTimeMode)(windows_core::Interface::as_raw(self), fenable.param().abi()).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), seektime, seekmode).ok() } pub unsafe fn EnableTimeUpdateTimer(&self, fenabletimer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableTimeUpdateTimer)(windows_core::Interface::as_raw(self), fenabletimer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableTimeUpdateTimer)(windows_core::Interface::as_raw(self), fenabletimer.param().abi()).ok() } } #[repr(C)] @@ -10185,33 +10185,33 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineExtension, windows_core::I impl IMFMediaEngineExtension { pub unsafe fn CanPlayType(&self, audioonly: P0, mimetype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanPlayType)(windows_core::Interface::as_raw(self), audioonly.into_param().abi(), mimetype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanPlayType)(windows_core::Interface::as_raw(self), audioonly.param().abi(), mimetype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn BeginCreateObject(&self, bstrurl: P0, pbytestream: P1, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut Option, pcallback: P2, punkstate: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), pbytestream.into_param().abi(), r#type, core::mem::transmute(ppiunknowncancelcookie), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.param().abi()).ok() } pub unsafe fn EndCreateObject(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndCreateObject)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndCreateObject)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10263,9 +10263,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineProtectedContent, windows_ impl IMFMediaEngineProtectedContent { pub unsafe fn ShareResources(&self, punkdevicecontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShareResources)(windows_core::Interface::as_raw(self), punkdevicecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShareResources)(windows_core::Interface::as_raw(self), punkdevicecontext.param().abi()).ok() } pub unsafe fn GetRequiredProtections(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10273,22 +10273,22 @@ impl IMFMediaEngineProtectedContent { } pub unsafe fn SetOPMWindow(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOPMWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOPMWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi()).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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.into_param().abi(), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null())), &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(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } pub unsafe fn SetContentProtectionManager(&self, pcpm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContentProtectionManager)(windows_core::Interface::as_raw(self), pcpm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContentProtectionManager)(windows_core::Interface::as_raw(self), pcpm.param().abi()).ok() } pub unsafe fn SetApplicationCertificate(&self, pbblob: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetApplicationCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(pbblob.as_ptr()), pbblob.len().try_into().unwrap()).ok() @@ -10324,11 +10324,11 @@ impl IMFMediaEngineSrcElements { } pub unsafe fn AddElement(&self, purl: P0, ptype: P1, pmedia: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddElement)(windows_core::Interface::as_raw(self), purl.into_param().abi(), ptype.into_param().abi(), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddElement)(windows_core::Interface::as_raw(self), purl.param().abi(), ptype.param().abi(), pmedia.param().abi()).ok() } pub unsafe fn RemoveAllElements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllElements)(windows_core::Interface::as_raw(self)).ok() @@ -10364,23 +10364,23 @@ impl IMFMediaEngineSrcElementsEx { } pub unsafe fn AddElement(&self, purl: P0, ptype: P1, pmedia: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddElement)(windows_core::Interface::as_raw(self), purl.into_param().abi(), ptype.into_param().abi(), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddElement)(windows_core::Interface::as_raw(self), purl.param().abi(), ptype.param().abi(), pmedia.param().abi()).ok() } pub unsafe fn RemoveAllElements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RemoveAllElements)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddElementEx(&self, purl: P0, ptype: P1, pmedia: P2, keysystem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddElementEx)(windows_core::Interface::as_raw(self), purl.into_param().abi(), ptype.into_param().abi(), pmedia.into_param().abi(), keysystem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddElementEx)(windows_core::Interface::as_raw(self), purl.param().abi(), ptype.param().abi(), pmedia.param().abi(), keysystem.param().abi()).ok() } pub unsafe fn GetKeySystem(&self, index: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10405,11 +10405,11 @@ impl IMFMediaEngineSupportsSourceTransfer { } pub unsafe fn AttachMediaSource(&self, pbytestream: P0, pmediasource: P1, pmse: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachMediaSource)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), pmediasource.into_param().abi(), pmse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AttachMediaSource)(windows_core::Interface::as_raw(self), pbytestream.param().abi(), pmediasource.param().abi(), pmse.param().abi()).ok() } } #[repr(C)] @@ -10424,9 +10424,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaEngineTransferSource, windows_co impl IMFMediaEngineTransferSource { pub unsafe fn TransferSourceToMediaEngine(&self, destination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TransferSourceToMediaEngine)(windows_core::Interface::as_raw(self), destination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TransferSourceToMediaEngine)(windows_core::Interface::as_raw(self), destination.param().abi()).ok() } } #[repr(C)] @@ -10495,10 +10495,10 @@ impl IMFMediaEvent { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -10566,18 +10566,18 @@ impl IMFMediaEvent { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -10594,9 +10594,9 @@ impl IMFMediaEvent { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10632,17 +10632,17 @@ impl IMFMediaEventGenerator { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() @@ -10665,32 +10665,32 @@ impl IMFMediaEventQueue { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueueEvent)(windows_core::Interface::as_raw(self), pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueueEvent)(windows_core::Interface::as_raw(self), pevent.param().abi()).ok() } pub unsafe fn QueueEventParamVar(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueueEventParamUnk)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, punk.into_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() @@ -10762,16 +10762,16 @@ impl IMFMediaKeySession2 { } pub unsafe fn Load(&self, bstrsessionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), bstrsessionid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), bstrsessionid.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GenerateRequest(&self, initdatatype: P0, pbinitdata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateRequest)(windows_core::Interface::as_raw(self), initdatatype.into_param().abi(), core::mem::transmute(pbinitdata.as_ptr()), pbinitdata.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GenerateRequest)(windows_core::Interface::as_raw(self), initdatatype.param().abi(), core::mem::transmute(pbinitdata.as_ptr()), pbinitdata.len().try_into().unwrap()).ok() } pub unsafe fn Expiration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10799,9 +10799,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaKeySessionNotify, windows_core:: impl IMFMediaKeySessionNotify { pub unsafe fn KeyMessage(&self, destinationurl: P0, message: &[u8]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KeyMessage)(windows_core::Interface::as_raw(self), destinationurl.into_param().abi(), core::mem::transmute(message.as_ptr()), message.len().try_into().unwrap()) + (windows_core::Interface::vtable(self).KeyMessage)(windows_core::Interface::as_raw(self), destinationurl.param().abi(), core::mem::transmute(message.as_ptr()), message.len().try_into().unwrap()) } pub unsafe fn KeyAdded(&self) { (windows_core::Interface::vtable(self).KeyAdded)(windows_core::Interface::as_raw(self)) @@ -10822,9 +10822,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaKeySessionNotify2, windows_core: impl IMFMediaKeySessionNotify2 { pub unsafe fn KeyMessage(&self, destinationurl: P0, message: &[u8]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.KeyMessage)(windows_core::Interface::as_raw(self), destinationurl.into_param().abi(), core::mem::transmute(message.as_ptr()), message.len().try_into().unwrap()) + (windows_core::Interface::vtable(self).base__.KeyMessage)(windows_core::Interface::as_raw(self), destinationurl.param().abi(), core::mem::transmute(message.as_ptr()), message.len().try_into().unwrap()) } pub unsafe fn KeyAdded(&self) { (windows_core::Interface::vtable(self).base__.KeyAdded)(windows_core::Interface::as_raw(self)) @@ -10834,9 +10834,9 @@ impl IMFMediaKeySessionNotify2 { } pub unsafe fn KeyMessage2(&self, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: P0, pbmessage: &[u8]) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).KeyMessage2)(windows_core::Interface::as_raw(self), emessagetype, destinationurl.into_param().abi(), core::mem::transmute(pbmessage.as_ptr()), pbmessage.len().try_into().unwrap()) + (windows_core::Interface::vtable(self).KeyMessage2)(windows_core::Interface::as_raw(self), emessagetype, destinationurl.param().abi(), 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)) @@ -10854,10 +10854,10 @@ impl IMFMediaKeySystemAccess { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateMediaKeys(&self, pcdmcustomconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMediaKeys)(windows_core::Interface::as_raw(self), pcdmcustomconfig.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMediaKeys)(windows_core::Interface::as_raw(self), pcdmcustomconfig.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SupportedConfiguration(&self) -> windows_core::Result { @@ -10887,11 +10887,11 @@ windows_core::imp::interface_hierarchy!(IMFMediaKeys, windows_core::IUnknown); impl IMFMediaKeys { pub unsafe fn CreateSession(&self, mimetype: P0, initdata: Option<&[u8]>, customdata: Option<&[u8]>, notify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), mimetype.into_param().abi(), core::mem::transmute(initdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(customdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), notify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), mimetype.param().abi(), core::mem::transmute(initdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(customdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), notify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn KeySystem(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10918,11 +10918,11 @@ windows_core::imp::interface_hierarchy!(IMFMediaKeys2, windows_core::IUnknown, I impl IMFMediaKeys2 { pub unsafe fn CreateSession(&self, mimetype: P0, initdata: Option<&[u8]>, customdata: Option<&[u8]>, notify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSession)(windows_core::Interface::as_raw(self), mimetype.into_param().abi(), core::mem::transmute(initdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(customdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), notify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSession)(windows_core::Interface::as_raw(self), mimetype.param().abi(), core::mem::transmute(initdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(customdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), notify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn KeySystem(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10937,10 +10937,10 @@ impl IMFMediaKeys2 { } pub unsafe fn CreateSession2(&self, esessiontype: MF_MEDIAKEYSESSION_TYPE, pmfmediakeysessionnotify2: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession2)(windows_core::Interface::as_raw(self), esessiontype, pmfmediakeysessionnotify2.into_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() @@ -10966,26 +10966,26 @@ impl IMFMediaSession { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() } pub unsafe fn SetTopology(&self, dwsettopologyflags: u32, ptopology: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTopology)(windows_core::Interface::as_raw(self), dwsettopologyflags, ptopology.into_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() @@ -11044,15 +11044,15 @@ impl IMFMediaSharingEngine { } pub unsafe fn SetSourceElements(&self, psrcelements: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSourceElements)(windows_core::Interface::as_raw(self), psrcelements.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSourceElements)(windows_core::Interface::as_raw(self), psrcelements.param().abi()).ok() } pub unsafe fn SetSource(&self, purl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSource)(windows_core::Interface::as_raw(self), purl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSource)(windows_core::Interface::as_raw(self), purl.param().abi()).ok() } pub unsafe fn GetCurrentSource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11076,10 +11076,10 @@ impl IMFMediaSharingEngine { } pub unsafe fn CanPlayType(&self, r#type: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CanPlayType)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CanPlayType)(windows_core::Interface::as_raw(self), r#type.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetReadyState(&self) -> u16 { (windows_core::Interface::vtable(self).base__.GetReadyState)(windows_core::Interface::as_raw(self)) @@ -11130,18 +11130,18 @@ impl IMFMediaSharingEngine { } pub unsafe fn SetAutoPlay(&self, autoplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAutoPlay)(windows_core::Interface::as_raw(self), autoplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAutoPlay)(windows_core::Interface::as_raw(self), autoplay.param().abi()).ok() } pub unsafe fn GetLoop(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.GetLoop)(windows_core::Interface::as_raw(self)) } pub unsafe fn SetLoop(&self, r#loop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLoop)(windows_core::Interface::as_raw(self), r#loop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLoop)(windows_core::Interface::as_raw(self), r#loop.param().abi()).ok() } pub unsafe fn Play(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Play)(windows_core::Interface::as_raw(self)).ok() @@ -11154,9 +11154,9 @@ impl IMFMediaSharingEngine { } pub unsafe fn SetMuted(&self, muted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMuted)(windows_core::Interface::as_raw(self), muted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMuted)(windows_core::Interface::as_raw(self), muted.param().abi()).ok() } pub unsafe fn GetVolume(&self) -> f64 { (windows_core::Interface::vtable(self).base__.GetVolume)(windows_core::Interface::as_raw(self)) @@ -11181,9 +11181,9 @@ impl IMFMediaSharingEngine { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.into_param().abi(), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.TransferVideoFrame)(windows_core::Interface::as_raw(self), pdstsurf.param().abi(), core::mem::transmute(psrc.unwrap_or(std::ptr::null())), pdst, core::mem::transmute(pborderclr.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn OnVideoStreamTick(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11203,10 +11203,10 @@ windows_core::imp::interface_hierarchy!(IMFMediaSharingEngineClassFactory, windo impl IMFMediaSharingEngineClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pattr.into_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)] @@ -11223,10 +11223,10 @@ impl IMFMediaSink { } pub unsafe fn AddStreamSink(&self, dwstreamsinkidentifier: u32, pmediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddStreamSink)(windows_core::Interface::as_raw(self), dwstreamsinkidentifier, pmediatype.into_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), dwstreamsinkidentifier).ok() @@ -11245,9 +11245,9 @@ impl IMFMediaSink { } pub unsafe fn SetPresentationClock(&self, ppresentationclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.param().abi()).ok() } pub unsafe fn GetPresentationClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11291,17 +11291,17 @@ impl IMFMediaSource { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() @@ -11316,9 +11316,9 @@ impl IMFMediaSource { } pub unsafe fn Start(&self, ppresentationdescriptor: P0, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi(), 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() @@ -11349,17 +11349,17 @@ impl IMFMediaSource2 { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() @@ -11374,9 +11374,9 @@ impl IMFMediaSource2 { } pub unsafe fn Start(&self, ppresentationdescriptor: P0, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Start)(windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi(), pguidtimeformat, core::mem::transmute(pvarstartposition)).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.Stop)(windows_core::Interface::as_raw(self)).ok() @@ -11397,15 +11397,15 @@ impl IMFMediaSource2 { } pub unsafe fn SetD3DManager(&self, pmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetD3DManager)(windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetD3DManager)(windows_core::Interface::as_raw(self), pmanager.param().abi()).ok() } pub unsafe fn SetMediaType(&self, dwstreamid: u32, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), dwstreamid, pmediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaType)(windows_core::Interface::as_raw(self), dwstreamid, pmediatype.param().abi()).ok() } } #[repr(C)] @@ -11422,17 +11422,17 @@ impl IMFMediaSourceEx { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() @@ -11447,9 +11447,9 @@ impl IMFMediaSourceEx { } pub unsafe fn Start(&self, ppresentationdescriptor: P0, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Start)(windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi(), pguidtimeformat, core::mem::transmute(pvarstartposition)).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Stop)(windows_core::Interface::as_raw(self)).ok() @@ -11470,9 +11470,9 @@ impl IMFMediaSourceEx { } pub unsafe fn SetD3DManager(&self, pmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetD3DManager)(windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetD3DManager)(windows_core::Interface::as_raw(self), pmanager.param().abi()).ok() } } #[repr(C)] @@ -11502,26 +11502,26 @@ impl IMFMediaSourceExtension { } pub unsafe fn AddSourceBuffer(&self, r#type: P0, pnotify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddSourceBuffer)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), pnotify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddSourceBuffer)(windows_core::Interface::as_raw(self), r#type.param().abi(), pnotify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveSourceBuffer(&self, psourcebuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSourceBuffer)(windows_core::Interface::as_raw(self), psourcebuffer.into_param().abi()).ok() + (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), error).ok() } pub unsafe fn IsTypeSupported(&self, r#type: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), r#type.into_param().abi()) + (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), r#type.param().abi()) } pub unsafe fn GetSourceBuffer(&self, dwstreamindex: u32) -> Option { (windows_core::Interface::vtable(self).GetSourceBuffer)(windows_core::Interface::as_raw(self), dwstreamindex) @@ -11582,9 +11582,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaSourcePresentationProvider, wind impl IMFMediaSourcePresentationProvider { pub unsafe fn ForceEndOfPresentation(&self, ppresentationdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ForceEndOfPresentation)(windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ForceEndOfPresentation)(windows_core::Interface::as_raw(self), ppresentationdescriptor.param().abi()).ok() } } #[repr(C)] @@ -11597,10 +11597,10 @@ windows_core::imp::interface_hierarchy!(IMFMediaSourceTopologyProvider, windows_ impl IMFMediaSourceTopologyProvider { pub unsafe fn GetMediaSourceTopology(&self, ppresentationdescriptor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMediaSourceTopology)(windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMediaSourceTopology)(windows_core::Interface::as_raw(self), ppresentationdescriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -11617,17 +11617,17 @@ impl IMFMediaStream { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() @@ -11642,9 +11642,9 @@ impl IMFMediaStream { } pub unsafe fn RequestSample(&self, ptoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestSample)(windows_core::Interface::as_raw(self), ptoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RequestSample)(windows_core::Interface::as_raw(self), ptoken.param().abi()).ok() } } #[repr(C)] @@ -11663,17 +11663,17 @@ impl IMFMediaStream2 { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() @@ -11688,9 +11688,9 @@ impl IMFMediaStream2 { } pub unsafe fn RequestSample(&self, ptoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RequestSample)(windows_core::Interface::as_raw(self), ptoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RequestSample)(windows_core::Interface::as_raw(self), ptoken.param().abi()).ok() } pub unsafe fn SetStreamState(&self, value: MF_STREAM_STATE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetStreamState)(windows_core::Interface::as_raw(self), value).ok() @@ -11711,9 +11711,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaStreamSourceSampleRequest, windo impl IMFMediaStreamSourceSampleRequest { pub unsafe fn SetSample(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSample)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSample)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[repr(C)] @@ -11771,10 +11771,10 @@ impl IMFMediaType { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -11842,18 +11842,18 @@ impl IMFMediaType { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -11870,9 +11870,9 @@ impl IMFMediaType { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11884,10 +11884,10 @@ impl IMFMediaType { } pub unsafe fn IsEqual(&self, pimediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pimediatype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pimediatype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetRepresentation(&self, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), ppvrepresentation).ok() @@ -11910,9 +11910,9 @@ windows_core::imp::interface_hierarchy!(IMFMediaTypeHandler, windows_core::IUnkn impl IMFMediaTypeHandler { pub unsafe fn IsMediaTypeSupported(&self, pmediatype: P0, ppmediatype: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsMediaTypeSupported)(windows_core::Interface::as_raw(self), pmediatype.into_param().abi(), core::mem::transmute(ppmediatype.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).IsMediaTypeSupported)(windows_core::Interface::as_raw(self), pmediatype.param().abi(), core::mem::transmute(ppmediatype.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetMediaTypeCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11924,9 +11924,9 @@ impl IMFMediaTypeHandler { } pub unsafe fn SetCurrentMediaType(&self, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCurrentMediaType)(windows_core::Interface::as_raw(self), pmediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCurrentMediaType)(windows_core::Interface::as_raw(self), pmediatype.param().abi()).ok() } pub unsafe fn GetCurrentMediaType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11952,9 +11952,9 @@ windows_core::imp::interface_hierarchy!(IMFMetadata, windows_core::IUnknown); impl IMFMetadata { pub unsafe fn SetLanguage(&self, pwszrfc1766: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), pwszrfc1766.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), pwszrfc1766.param().abi()).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11966,22 +11966,22 @@ impl IMFMetadata { } pub unsafe fn SetProperty(&self, pwszname: P0, ppvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), core::mem::transmute(ppvvalue)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszname.param().abi(), core::mem::transmute(ppvvalue)).ok() } pub unsafe fn GetProperty(&self, pwszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteProperty(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn GetAllPropertyNames(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12004,10 +12004,10 @@ windows_core::imp::interface_hierarchy!(IMFMetadataProvider, windows_core::IUnkn impl IMFMetadataProvider { pub unsafe fn GetMFMetadata(&self, ppresentationdescriptor: P0, dwstreamidentifier: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMFMetadata)(windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi(), dwstreamidentifier, 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)] @@ -12096,27 +12096,27 @@ windows_core::imp::interface_hierarchy!(IMFNetCredential, windows_core::IUnknown impl IMFNetCredential { pub unsafe fn SetUser(&self, pbdata: &[u8], fdataisencrypted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUser)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), fdataisencrypted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUser)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), fdataisencrypted.param().abi()).ok() } pub unsafe fn SetPassword(&self, pbdata: &[u8], fdataisencrypted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), fdataisencrypted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), fdataisencrypted.param().abi()).ok() } pub unsafe fn GetUser(&self, pbdata: Option<*mut u8>, pcbdata: *mut u32, fencryptdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetUser)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.unwrap_or(std::ptr::null_mut())), pcbdata, fencryptdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetUser)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.unwrap_or(std::ptr::null_mut())), pcbdata, fencryptdata.param().abi()).ok() } pub unsafe fn GetPassword(&self, pbdata: Option<*mut u8>, pcbdata: *mut u32, fencryptdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPassword)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.unwrap_or(std::ptr::null_mut())), pcbdata, fencryptdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetPassword)(windows_core::Interface::as_raw(self), core::mem::transmute(pbdata.unwrap_or(std::ptr::null_mut())), pcbdata, fencryptdata.param().abi()).ok() } pub unsafe fn LoggedOnUser(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12137,23 +12137,23 @@ windows_core::imp::interface_hierarchy!(IMFNetCredentialCache, windows_core::IUn impl IMFNetCredentialCache { pub unsafe fn GetCredential(&self, pszurl: P0, pszrealm: P1, dwauthenticationflags: u32, ppcred: *mut Option, pdwrequirementsflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCredential)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), pszrealm.into_param().abi(), dwauthenticationflags, core::mem::transmute(ppcred), 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), pdwrequirementsflags).ok() } pub unsafe fn SetGood(&self, pcred: P0, fgood: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGood)(windows_core::Interface::as_raw(self), pcred.into_param().abi(), fgood.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGood)(windows_core::Interface::as_raw(self), pcred.param().abi(), fgood.param().abi()).ok() } pub unsafe fn SetUserOptions(&self, pcred: P0, dwoptionsflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserOptions)(windows_core::Interface::as_raw(self), pcred.into_param().abi(), dwoptionsflags).ok() + (windows_core::Interface::vtable(self).SetUserOptions)(windows_core::Interface::as_raw(self), pcred.param().abi(), dwoptionsflags).ok() } } #[repr(C)] @@ -12168,24 +12168,24 @@ windows_core::imp::interface_hierarchy!(IMFNetCredentialManager, windows_core::I impl IMFNetCredentialManager { pub unsafe fn BeginGetCredentials(&self, pparam: *const MFNetCredentialManagerGetParam, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginGetCredentials)(windows_core::Interface::as_raw(self), pparam, pcallback.into_param().abi(), pstate.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetCredentials)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndGetCredentials)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetGood(&self, pcred: P0, fgood: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGood)(windows_core::Interface::as_raw(self), pcred.into_param().abi(), fgood.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGood)(windows_core::Interface::as_raw(self), pcred.param().abi(), fgood.param().abi()).ok() } } #[repr(C)] @@ -12208,10 +12208,10 @@ impl IMFNetCrossOriginSupport { } pub unsafe fn IsSameOrigin(&self, wszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSameOrigin)(windows_core::Interface::as_raw(self), wszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSameOrigin)(windows_core::Interface::as_raw(self), wszurl.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -12226,11 +12226,11 @@ windows_core::imp::interface_hierarchy!(IMFNetProxyLocator, windows_core::IUnkno impl IMFNetProxyLocator { pub unsafe fn FindFirstProxy(&self, pszhost: P0, pszurl: P1, freserved: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindFirstProxy)(windows_core::Interface::as_raw(self), pszhost.into_param().abi(), pszurl.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FindFirstProxy)(windows_core::Interface::as_raw(self), pszhost.param().abi(), pszurl.param().abi(), freserved.param().abi()).ok() } pub unsafe fn FindNextProxy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FindNextProxy)(windows_core::Interface::as_raw(self)).ok() @@ -12260,10 +12260,10 @@ windows_core::imp::interface_hierarchy!(IMFNetProxyLocatorFactory, windows_core: impl IMFNetProxyLocatorFactory { pub unsafe fn CreateProxyLocator(&self, pszprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProxyLocator)(windows_core::Interface::as_raw(self), pszprotocol.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProxyLocator)(windows_core::Interface::as_raw(self), pszprotocol.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12276,16 +12276,16 @@ windows_core::imp::interface_hierarchy!(IMFNetResourceFilter, windows_core::IUnk impl IMFNetResourceFilter { pub unsafe fn OnRedirect(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnRedirect)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnRedirect)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnSendingRequest(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSendingRequest)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSendingRequest)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } } #[repr(C)] @@ -12321,9 +12321,9 @@ windows_core::imp::interface_hierarchy!(IMFObjectReferenceStream, windows_core:: impl IMFObjectReferenceStream { pub unsafe fn SaveReference(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveReference)(windows_core::Interface::as_raw(self), riid, punk.into_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), riid, ppv).ok() @@ -12351,10 +12351,10 @@ impl IMFOutputPolicy { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12422,18 +12422,18 @@ impl IMFOutputPolicy { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -12450,9 +12450,9 @@ impl IMFOutputPolicy { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GenerateRequiredSchemas(&self, dwattributes: u32, guidoutputsubtype: windows_core::GUID, rgguidprotectionschemassupported: *const windows_core::GUID, cprotectionschemassupported: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12490,10 +12490,10 @@ impl IMFOutputSchema { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12561,18 +12561,18 @@ impl IMFOutputSchema { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -12589,9 +12589,9 @@ impl IMFOutputSchema { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetSchemaType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12635,9 +12635,9 @@ windows_core::imp::interface_hierarchy!(IMFPMPClient, windows_core::IUnknown); impl IMFPMPClient { pub unsafe fn SetPMPHost(&self, ppmphost: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPMPHost)(windows_core::Interface::as_raw(self), ppmphost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPMPHost)(windows_core::Interface::as_raw(self), ppmphost.param().abi()).ok() } } #[repr(C)] @@ -12650,9 +12650,9 @@ windows_core::imp::interface_hierarchy!(IMFPMPClientApp, windows_core::IUnknown) impl IMFPMPClientApp { pub unsafe fn SetPMPHost(&self, ppmphost: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPMPHost)(windows_core::Interface::as_raw(self), ppmphost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPMPHost)(windows_core::Interface::as_raw(self), ppmphost.param().abi()).ok() } } #[repr(C)] @@ -12672,11 +12672,11 @@ impl IMFPMPHost { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateObjectByCLSID(&self, clsid: *const windows_core::GUID, pstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateObjectByCLSID)(windows_core::Interface::as_raw(self), clsid, pstream.into_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)] @@ -12701,12 +12701,12 @@ impl IMFPMPHostApp { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ActivateClassById(&self, id: P0, pstream: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ActivateClassById)(windows_core::Interface::as_raw(self), id.into_param().abi(), pstream.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ActivateClassById)(windows_core::Interface::as_raw(self), id.param().abi(), pstream.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12795,9 +12795,9 @@ impl IMFPMediaItem { } pub unsafe fn SetStreamSelection(&self, dwstreamindex: u32, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fenabled.param().abi()).ok() } pub unsafe fn GetStreamAttribute(&self, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12813,9 +12813,9 @@ impl IMFPMediaItem { } pub unsafe fn SetStreamSink(&self, dwstreamindex: u32, pmediasink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSink)(windows_core::Interface::as_raw(self), dwstreamindex, pmediasink.into_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 { @@ -12884,9 +12884,9 @@ impl IMFPMediaPlayer { } pub unsafe fn GetSupportedRates(&self, fforwarddirection: P0, pflslowestrate: *mut f32, pflfastestrate: *mut f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSupportedRates)(windows_core::Interface::as_raw(self), fforwarddirection.into_param().abi(), pflslowestrate, pflfastestrate).ok() + (windows_core::Interface::vtable(self).GetSupportedRates)(windows_core::Interface::as_raw(self), fforwarddirection.param().abi(), pflslowestrate, pflfastestrate).ok() } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12894,23 +12894,23 @@ impl IMFPMediaPlayer { } pub unsafe fn CreateMediaItemFromURL(&self, pwszurl: P0, fsync: P1, dwuserdata: usize, ppmediaitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMediaItemFromURL)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), fsync.into_param().abi(), dwuserdata, core::mem::transmute(ppmediaitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateMediaItemFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), fsync.param().abi(), dwuserdata, core::mem::transmute(ppmediaitem.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CreateMediaItemFromObject(&self, piunknownobj: P0, fsync: P1, dwuserdata: usize, ppmediaitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMediaItemFromObject)(windows_core::Interface::as_raw(self), piunknownobj.into_param().abi(), fsync.into_param().abi(), dwuserdata, core::mem::transmute(ppmediaitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CreateMediaItemFromObject)(windows_core::Interface::as_raw(self), piunknownobj.param().abi(), fsync.param().abi(), dwuserdata, core::mem::transmute(ppmediaitem.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetMediaItem(&self, pimfpmediaitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaItem)(windows_core::Interface::as_raw(self), pimfpmediaitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaItem)(windows_core::Interface::as_raw(self), pimfpmediaitem.param().abi()).ok() } pub unsafe fn ClearMediaItem(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearMediaItem)(windows_core::Interface::as_raw(self)).ok() @@ -12939,9 +12939,9 @@ impl IMFPMediaPlayer { } pub unsafe fn SetMute(&self, fmute: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), fmute.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), fmute.param().abi()).ok() } pub unsafe fn GetNativeVideoSize(&self, pszvideo: Option<*mut super::super::Foundation::SIZE>, pszarvideo: Option<*mut super::super::Foundation::SIZE>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNativeVideoSize)(windows_core::Interface::as_raw(self), core::mem::transmute(pszvideo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pszarvideo.unwrap_or(std::ptr::null_mut()))).ok() @@ -12972,9 +12972,9 @@ impl IMFPMediaPlayer { } pub unsafe fn SetBorderColor(&self, clr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.param().abi()).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12982,16 +12982,16 @@ impl IMFPMediaPlayer { } pub unsafe fn InsertEffect(&self, peffect: P0, foptional: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEffect)(windows_core::Interface::as_raw(self), peffect.into_param().abi(), foptional.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InsertEffect)(windows_core::Interface::as_raw(self), peffect.param().abi(), foptional.param().abi()).ok() } pub unsafe fn RemoveEffect(&self, peffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveEffect)(windows_core::Interface::as_raw(self), peffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveEffect)(windows_core::Interface::as_raw(self), peffect.param().abi()).ok() } pub unsafe fn RemoveAllEffects(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllEffects)(windows_core::Interface::as_raw(self)).ok() @@ -13061,19 +13061,19 @@ windows_core::imp::interface_hierarchy!(IMFPluginControl, windows_core::IUnknown impl IMFPluginControl { pub unsafe fn GetPreferredClsid(&self, plugintype: u32, selector: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.into_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), plugintype, index, selector, clsid).ok() } pub unsafe fn SetPreferredClsid(&self, plugintype: u32, selector: P0, clsid: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.into_param().abi(), core::mem::transmute(clsid.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.param().abi(), core::mem::transmute(clsid.unwrap_or(std::ptr::null()))).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), plugintype, clsid).ok() @@ -13084,9 +13084,9 @@ impl IMFPluginControl { } pub unsafe fn SetDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID, disabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), plugintype, clsid, disabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisabled)(windows_core::Interface::as_raw(self), plugintype, clsid, disabled.param().abi()).ok() } } #[repr(C)] @@ -13104,19 +13104,19 @@ windows_core::imp::interface_hierarchy!(IMFPluginControl2, windows_core::IUnknow impl IMFPluginControl2 { pub unsafe fn GetPreferredClsid(&self, plugintype: u32, selector: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.GetPreferredClsidByIndex)(windows_core::Interface::as_raw(self), plugintype, index, selector, clsid).ok() } pub unsafe fn SetPreferredClsid(&self, plugintype: u32, selector: P0, clsid: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.into_param().abi(), core::mem::transmute(clsid.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.SetPreferredClsid)(windows_core::Interface::as_raw(self), plugintype, selector.param().abi(), core::mem::transmute(clsid.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.IsDisabled)(windows_core::Interface::as_raw(self), plugintype, clsid).ok() @@ -13127,9 +13127,9 @@ impl IMFPluginControl2 { } pub unsafe fn SetDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID, disabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDisabled)(windows_core::Interface::as_raw(self), plugintype, clsid, disabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDisabled)(windows_core::Interface::as_raw(self), plugintype, clsid, disabled.param().abi()).ok() } 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), policy).ok() @@ -13163,9 +13163,9 @@ impl IMFPresentationClock { } pub unsafe fn SetTimeSource(&self, ptimesource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTimeSource)(windows_core::Interface::as_raw(self), ptimesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTimeSource)(windows_core::Interface::as_raw(self), ptimesource.param().abi()).ok() } pub unsafe fn GetTimeSource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13177,15 +13177,15 @@ impl IMFPresentationClock { } pub unsafe fn AddClockStateSink(&self, pstatesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddClockStateSink)(windows_core::Interface::as_raw(self), pstatesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddClockStateSink)(windows_core::Interface::as_raw(self), pstatesink.param().abi()).ok() } pub unsafe fn RemoveClockStateSink(&self, pstatesink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveClockStateSink)(windows_core::Interface::as_raw(self), pstatesink.into_param().abi()).ok() + (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), llclockstartoffset).ok() @@ -13225,10 +13225,10 @@ impl IMFPresentationDescriptor { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -13296,18 +13296,18 @@ impl IMFPresentationDescriptor { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -13324,9 +13324,9 @@ impl IMFPresentationDescriptor { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetStreamDescriptorCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13454,10 +13454,10 @@ impl IMFQualityAdvise2 { } pub unsafe fn NotifyQualityEvent(&self, pevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).NotifyQualityEvent)(windows_core::Interface::as_raw(self), pevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).NotifyQualityEvent)(windows_core::Interface::as_raw(self), pevent.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -13488,36 +13488,36 @@ windows_core::imp::interface_hierarchy!(IMFQualityManager, windows_core::IUnknow impl IMFQualityManager { pub unsafe fn NotifyTopology(&self, ptopology: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyTopology)(windows_core::Interface::as_raw(self), ptopology.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyTopology)(windows_core::Interface::as_raw(self), ptopology.param().abi()).ok() } pub unsafe fn NotifyPresentationClock(&self, pclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyPresentationClock)(windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyPresentationClock)(windows_core::Interface::as_raw(self), pclock.param().abi()).ok() } pub unsafe fn NotifyProcessInput(&self, pnode: P0, linputindex: i32, psample: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyProcessInput)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), linputindex, psample.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyProcessOutput)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), loutputindex, psample.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyQualityEvent)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyQualityEvent)(windows_core::Interface::as_raw(self), pobject.param().abi(), pevent.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -13538,9 +13538,9 @@ windows_core::imp::interface_hierarchy!(IMFRateControl, windows_core::IUnknown); impl IMFRateControl { pub unsafe fn SetRate(&self, fthin: P0, flrate: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), fthin.into_param().abi(), flrate).ok() + (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), fthin.param().abi(), 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), pfthin, pflrate).ok() @@ -13557,23 +13557,23 @@ windows_core::imp::interface_hierarchy!(IMFRateSupport, windows_core::IUnknown); impl IMFRateSupport { pub unsafe fn GetSlowestRate(&self, edirection: MFRATE_DIRECTION, fthin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSlowestRate)(windows_core::Interface::as_raw(self), edirection, fthin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSlowestRate)(windows_core::Interface::as_raw(self), edirection, fthin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetFastestRate(&self, edirection: MFRATE_DIRECTION, fthin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFastestRate)(windows_core::Interface::as_raw(self), edirection, fthin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFastestRate)(windows_core::Interface::as_raw(self), edirection, fthin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsRateSupported(&self, fthin: P0, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsRateSupported)(windows_core::Interface::as_raw(self), fthin.into_param().abi(), flrate, pflnearestsupportedrate).ok() + (windows_core::Interface::vtable(self).IsRateSupported)(windows_core::Interface::as_raw(self), fthin.param().abi(), flrate, pflnearestsupportedrate).ok() } } #[repr(C)] @@ -13588,21 +13588,21 @@ windows_core::imp::interface_hierarchy!(IMFReadWriteClassFactory, windows_core:: impl IMFReadWriteClassFactory { pub unsafe fn CreateInstanceFromURL(&self, clsid: *const windows_core::GUID, pwszurl: P0, pattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstanceFromURL)(windows_core::Interface::as_raw(self), clsid, pwszurl.into_param().abi(), pattributes.into_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: P0, pattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstanceFromObject)(windows_core::Interface::as_raw(self), clsid, punkobject.into_param().abi(), pattributes.into_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)] @@ -13616,9 +13616,9 @@ windows_core::imp::interface_hierarchy!(IMFRealTimeClient, windows_core::IUnknow impl IMFRealTimeClient { pub unsafe fn RegisterThreads(&self, dwtaskindex: u32, wszclass: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterThreads)(windows_core::Interface::as_raw(self), dwtaskindex, wszclass.into_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() @@ -13639,9 +13639,9 @@ windows_core::imp::interface_hierarchy!(IMFRealTimeClientEx, windows_core::IUnkn impl IMFRealTimeClientEx { pub unsafe fn RegisterThreadsEx(&self, pdwtaskindex: *mut u32, wszclassname: P0, lbasepriority: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterThreadsEx)(windows_core::Interface::as_raw(self), pdwtaskindex, wszclassname.into_param().abi(), lbasepriority).ok() + (windows_core::Interface::vtable(self).RegisterThreadsEx)(windows_core::Interface::as_raw(self), 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() @@ -13682,17 +13682,17 @@ impl IMFRelativePanelWatcher { } pub unsafe fn BeginGetReport(&self, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginGetReport)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginGetReport)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndGetReport(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetReport)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndGetReport)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetReport(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13711,9 +13711,9 @@ windows_core::imp::interface_hierarchy!(IMFRemoteAsyncCallback, windows_core::IU impl IMFRemoteAsyncCallback { pub unsafe fn Invoke(&self, hr: windows_core::HRESULT, premoteresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), hr, premoteresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), hr, premoteresult.param().abi()).ok() } } #[repr(C)] @@ -13726,9 +13726,9 @@ windows_core::imp::interface_hierarchy!(IMFRemoteDesktopPlugin, windows_core::IU impl IMFRemoteDesktopPlugin { pub unsafe fn UpdateTopology(&self, ptopology: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateTopology)(windows_core::Interface::as_raw(self), ptopology.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateTopology)(windows_core::Interface::as_raw(self), ptopology.param().abi()).ok() } } #[repr(C)] @@ -13765,9 +13765,9 @@ impl IMFSAMIStyle { } pub unsafe fn SetSelectedStyle(&self, pwszstyle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelectedStyle)(windows_core::Interface::as_raw(self), pwszstyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelectedStyle)(windows_core::Interface::as_raw(self), pwszstyle.param().abi()).ok() } pub unsafe fn GetSelectedStyle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13787,36 +13787,36 @@ windows_core::imp::interface_hierarchy!(IMFSSLCertificateManager, windows_core:: impl IMFSSLCertificateManager { pub unsafe fn GetClientCertificate(&self, pszurl: P0, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetClientCertificate)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), ppbdata, pcbdata).ok() + (windows_core::Interface::vtable(self).GetClientCertificate)(windows_core::Interface::as_raw(self), pszurl.param().abi(), ppbdata, pcbdata).ok() } pub unsafe fn BeginGetClientCertificate(&self, pszurl: P0, pcallback: P1, pstate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginGetClientCertificate)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginGetClientCertificate)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndGetClientCertificate(&self, presult: P0, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndGetClientCertificate)(windows_core::Interface::as_raw(self), presult.into_param().abi(), ppbdata, pcbdata).ok() + (windows_core::Interface::vtable(self).EndGetClientCertificate)(windows_core::Interface::as_raw(self), presult.param().abi(), ppbdata, pcbdata).ok() } pub unsafe fn GetCertificatePolicy(&self, pszurl: P0, pfoverrideautomaticcheck: *mut super::super::Foundation::BOOL, pfclientcertificateavailable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCertificatePolicy)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), pfoverrideautomaticcheck, pfclientcertificateavailable).ok() + (windows_core::Interface::vtable(self).GetCertificatePolicy)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pfoverrideautomaticcheck, pfclientcertificateavailable).ok() } pub unsafe fn OnServerCertificate(&self, pszurl: P0, pbdata: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnServerCertificate)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnServerCertificate)(windows_core::Interface::as_raw(self), pszurl.param().abi(), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), &mut result__).map(|| result__) } } #[repr(C)] @@ -13844,10 +13844,10 @@ impl IMFSample { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -13915,18 +13915,18 @@ impl IMFSample { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -13943,9 +13943,9 @@ impl IMFSample { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetSampleFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13982,9 +13982,9 @@ impl IMFSample { } pub unsafe fn AddBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (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), dwindex).ok() @@ -13998,9 +13998,9 @@ impl IMFSample { } pub unsafe fn CopyToBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyToBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyToBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } } #[repr(C)] @@ -14026,9 +14026,9 @@ windows_core::imp::interface_hierarchy!(IMFSampleAllocatorControl, windows_core: impl IMFSampleAllocatorControl { pub unsafe fn SetDefaultAllocator(&self, dwoutputstreamid: u32, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultAllocator)(windows_core::Interface::as_raw(self), dwoutputstreamid, pallocator.into_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), dwoutputstreamid, pdwinputstreamid, peusage).ok() @@ -14060,9 +14060,9 @@ impl IMFSampleGrabberSinkCallback { } pub unsafe fn OnSetPresentationClock(&self, ppresentationclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.into_param().abi()).ok() + (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), guidmajormediatype, dwsampleflags, llsampletime, llsampleduration, core::mem::transmute(psamplebuffer.as_ptr()), psamplebuffer.len().try_into().unwrap()).ok() @@ -14098,9 +14098,9 @@ impl IMFSampleGrabberSinkCallback2 { } pub unsafe fn OnSetPresentationClock(&self, ppresentationclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnSetPresentationClock)(windows_core::Interface::as_raw(self), ppresentationclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.OnProcessSample)(windows_core::Interface::as_raw(self), guidmajormediatype, dwsampleflags, llsampletime, llsampleduration, core::mem::transmute(psamplebuffer.as_ptr()), psamplebuffer.len().try_into().unwrap()).ok() @@ -14110,9 +14110,9 @@ impl IMFSampleGrabberSinkCallback2 { } pub unsafe fn OnProcessSampleEx(&self, guidmajormediatype: *const windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: &[u8], pattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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.into_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)] @@ -14125,17 +14125,17 @@ windows_core::imp::interface_hierarchy!(IMFSampleOutputStream, windows_core::IUn impl IMFSampleOutputStream { pub unsafe fn BeginWriteSample(&self, psample: P0, pcallback: P1, punkstate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginWriteSample)(windows_core::Interface::as_raw(self), psample.into_param().abi(), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginWriteSample)(windows_core::Interface::as_raw(self), psample.param().abi(), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndWriteSample(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndWriteSample)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndWriteSample)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -14183,17 +14183,17 @@ windows_core::imp::interface_hierarchy!(IMFSaveJob, windows_core::IUnknown); impl IMFSaveJob { pub unsafe fn BeginSave(&self, pstream: P0, pcallback: P1, pstate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginSave)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginSave)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndSave(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndSave)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndSave)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn CancelSave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelSave)(windows_core::Interface::as_raw(self)).ok() @@ -14217,24 +14217,24 @@ impl IMFSchemeHandler { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn BeginCreateObject(&self, pwszurl: P0, dwflags: u32, pprops: P1, ppiunknowncancelcookie: Option<*mut Option>, pcallback: P2, punkstate: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObject)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwflags, pprops.into_param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(std::ptr::null_mut())), pcallback.into_param().abi(), punkstate.into_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(std::ptr::null_mut())), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndCreateObject)(windows_core::Interface::as_raw(self), presult.into_param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).EndCreateObject)(windows_core::Interface::as_raw(self), presult.param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() } pub unsafe fn CancelObjectCreation(&self, piunknowncancelcookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.param().abi()).ok() } } #[repr(C)] @@ -14301,10 +14301,10 @@ impl IMFSensorActivitiesReport { } pub unsafe fn GetActivityReportByDeviceName(&self, symbolicname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActivityReportByDeviceName)(windows_core::Interface::as_raw(self), symbolicname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetActivityReportByDeviceName)(windows_core::Interface::as_raw(self), symbolicname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -14319,9 +14319,9 @@ windows_core::imp::interface_hierarchy!(IMFSensorActivitiesReportCallback, windo impl IMFSensorActivitiesReportCallback { pub unsafe fn OnActivitiesReport(&self, sensoractivitiesreport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnActivitiesReport)(windows_core::Interface::as_raw(self), sensoractivitiesreport.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnActivitiesReport)(windows_core::Interface::as_raw(self), sensoractivitiesreport.param().abi()).ok() } } #[repr(C)] @@ -14504,22 +14504,22 @@ impl IMFSensorProfile { } pub unsafe fn AddProfileFilter(&self, streamid: u32, wzfiltersetstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddProfileFilter)(windows_core::Interface::as_raw(self), streamid, wzfiltersetstring.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsMediaTypeSupported)(windows_core::Interface::as_raw(self), streamid, pmediatype.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddBlockedControl)(windows_core::Interface::as_raw(self), wzblockedcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddBlockedControl)(windows_core::Interface::as_raw(self), wzblockedcontrol.param().abi()).ok() } } #[repr(C)] @@ -14542,9 +14542,9 @@ impl IMFSensorProfileCollection { } pub unsafe fn AddProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } pub unsafe fn FindProfile(&self, profileid: *const SENSORPROFILEID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14583,10 +14583,10 @@ impl IMFSensorStream { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -14654,18 +14654,18 @@ impl IMFSensorStream { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -14682,9 +14682,9 @@ impl IMFSensorStream { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetMediaTypeCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14715,10 +14715,10 @@ impl IMFSensorTransformFactory { } pub unsafe fn InitializeFactory(&self, dwmaxtransformcount: u32, psensordevices: P0, pattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFactory)(windows_core::Interface::as_raw(self), dwmaxtransformcount, psensordevices.into_param().abi(), pattributes.into_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__ = std::mem::zeroed(); @@ -14729,10 +14729,10 @@ impl IMFSensorTransformFactory { } pub unsafe fn CreateTransform(&self, guidsensortransformid: *const windows_core::GUID, pattributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransform)(windows_core::Interface::as_raw(self), guidsensortransformid, pattributes.into_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)] @@ -14749,25 +14749,25 @@ windows_core::imp::interface_hierarchy!(IMFSequencerSource, windows_core::IUnkno impl IMFSequencerSource { pub unsafe fn AppendTopology(&self, ptopology: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AppendTopology)(windows_core::Interface::as_raw(self), ptopology.into_param().abi(), 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), dwid).ok() } pub unsafe fn GetPresentationContext(&self, ppd: P0, pid: Option<*mut u32>, pptopology: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPresentationContext)(windows_core::Interface::as_raw(self), ppd.into_param().abi(), core::mem::transmute(pid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pptopology.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetPresentationContext)(windows_core::Interface::as_raw(self), ppd.param().abi(), core::mem::transmute(pid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pptopology.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn UpdateTopology(&self, dwid: u32, ptopology: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateTopology)(windows_core::Interface::as_raw(self), dwid, ptopology.into_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), dwid, dwflags).ok() @@ -14787,10 +14787,10 @@ windows_core::imp::interface_hierarchy!(IMFSharingEngineClassFactory, windows_co impl IMFSharingEngineClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pattr.into_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)] @@ -14820,9 +14820,9 @@ windows_core::imp::interface_hierarchy!(IMFSignedLibrary, windows_core::IUnknown impl IMFSignedLibrary { pub unsafe fn GetProcedureAddress(&self, name: P0, address: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProcedureAddress)(windows_core::Interface::as_raw(self), name.into_param().abi(), address).ok() + (windows_core::Interface::vtable(self).GetProcedureAddress)(windows_core::Interface::as_raw(self), name.param().abi(), address).ok() } } #[repr(C)] @@ -14842,9 +14842,9 @@ impl IMFSimpleAudioVolume { } pub unsafe fn SetMute(&self, bmute: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.param().abi()).ok() } pub unsafe fn GetMute(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14864,26 +14864,26 @@ windows_core::imp::interface_hierarchy!(IMFSinkWriter, windows_core::IUnknown); impl IMFSinkWriter { pub unsafe fn AddStream(&self, ptargetmediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), ptargetmediatype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), ptargetmediatype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetInputMediaType(&self, dwstreamindex: u32, pinputmediatype: P0, pencodingparameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, pinputmediatype.into_param().abi(), pencodingparameters.into_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() } pub unsafe fn WriteSample(&self, dwstreamindex: u32, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSample)(windows_core::Interface::as_raw(self), dwstreamindex, psample.into_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), dwstreamindex, lltimestamp).ok() @@ -14965,16 +14965,16 @@ windows_core::imp::interface_hierarchy!(IMFSinkWriterEncoderConfig, windows_core impl IMFSinkWriterEncoderConfig { pub unsafe fn SetTargetMediaType(&self, dwstreamindex: u32, ptargetmediatype: P0, pencodingparameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, ptargetmediatype.into_param().abi(), pencodingparameters.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaceEncodingParameters)(windows_core::Interface::as_raw(self), dwstreamindex, pencodingparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlaceEncodingParameters)(windows_core::Interface::as_raw(self), dwstreamindex, pencodingparameters.param().abi()).ok() } } #[repr(C)] @@ -14988,26 +14988,26 @@ windows_core::imp::interface_hierarchy!(IMFSinkWriterEx, windows_core::IUnknown, impl IMFSinkWriterEx { pub unsafe fn AddStream(&self, ptargetmediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), ptargetmediatype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), ptargetmediatype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetInputMediaType(&self, dwstreamindex: u32, pinputmediatype: P0, pencodingparameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInputMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, pinputmediatype.into_param().abi(), pencodingparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.BeginWriting)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteSample(&self, dwstreamindex: u32, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WriteSample)(windows_core::Interface::as_raw(self), dwstreamindex, psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SendStreamTick)(windows_core::Interface::as_raw(self), dwstreamindex, lltimestamp).ok() @@ -15072,9 +15072,9 @@ impl IMFSourceBuffer { } pub unsafe fn AppendByteStream(&self, pstream: P0, pmaxlen: Option<*const u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendByteStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), core::mem::transmute(pmaxlen.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).AppendByteStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(pmaxlen.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() @@ -15164,9 +15164,9 @@ windows_core::imp::interface_hierarchy!(IMFSourceOpenMonitor, windows_core::IUnk impl IMFSourceOpenMonitor { pub unsafe fn OnSourceEvent(&self, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSourceEvent)(windows_core::Interface::as_raw(self), pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSourceEvent)(windows_core::Interface::as_raw(self), pevent.param().abi()).ok() } } #[repr(C)] @@ -15183,9 +15183,9 @@ impl IMFSourceReader { } pub unsafe fn SetStreamSelection(&self, dwstreamindex: u32, fselected: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fselected.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fselected.param().abi()).ok() } pub unsafe fn GetNativeMediaType(&self, dwstreamindex: u32, dwmediatypeindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15197,9 +15197,9 @@ impl IMFSourceReader { } pub unsafe fn SetCurrentMediaType(&self, dwstreamindex: u32, pdwreserved: Option<*const u32>, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCurrentMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), pmediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCurrentMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), pmediatype.param().abi()).ok() } pub unsafe fn SetCurrentPosition(&self, guidtimeformat: *const windows_core::GUID, varposition: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), guidtimeformat, core::mem::transmute(varposition)).ok() @@ -15237,18 +15237,18 @@ windows_core::imp::interface_hierarchy!(IMFSourceReaderCallback, windows_core::I impl IMFSourceReaderCallback { pub unsafe fn OnReadSample(&self, hrstatus: windows_core::HRESULT, dwstreamindex: u32, dwstreamflags: u32, lltimestamp: i64, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReadSample)(windows_core::Interface::as_raw(self), hrstatus, dwstreamindex, dwstreamflags, lltimestamp, psample.into_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), dwstreamindex).ok() } pub unsafe fn OnEvent(&self, dwstreamindex: u32, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), dwstreamindex, pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), dwstreamindex, pevent.param().abi()).ok() } } #[repr(C)] @@ -15263,18 +15263,18 @@ windows_core::imp::interface_hierarchy!(IMFSourceReaderCallback2, windows_core:: impl IMFSourceReaderCallback2 { pub unsafe fn OnReadSample(&self, hrstatus: windows_core::HRESULT, dwstreamindex: u32, dwstreamflags: u32, lltimestamp: i64, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnReadSample)(windows_core::Interface::as_raw(self), hrstatus, dwstreamindex, dwstreamflags, lltimestamp, psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.OnFlush)(windows_core::Interface::as_raw(self), dwstreamindex).ok() } pub unsafe fn OnEvent(&self, dwstreamindex: u32, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnEvent)(windows_core::Interface::as_raw(self), dwstreamindex, pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnEvent)(windows_core::Interface::as_raw(self), dwstreamindex, pevent.param().abi()).ok() } pub unsafe fn OnTransformChange(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnTransformChange)(windows_core::Interface::as_raw(self)).ok() @@ -15298,9 +15298,9 @@ impl IMFSourceReaderEx { } pub unsafe fn SetStreamSelection(&self, dwstreamindex: u32, fselected: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fselected.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, fselected.param().abi()).ok() } pub unsafe fn GetNativeMediaType(&self, dwstreamindex: u32, dwmediatypeindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15312,9 +15312,9 @@ impl IMFSourceReaderEx { } pub unsafe fn SetCurrentMediaType(&self, dwstreamindex: u32, pdwreserved: Option<*const u32>, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCurrentMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), pmediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCurrentMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), pmediatype.param().abi()).ok() } pub unsafe fn SetCurrentPosition(&self, guidtimeformat: *const windows_core::GUID, varposition: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetCurrentPosition)(windows_core::Interface::as_raw(self), guidtimeformat, core::mem::transmute(varposition)).ok() @@ -15334,16 +15334,16 @@ impl IMFSourceReaderEx { } pub unsafe fn SetNativeMediaType(&self, dwstreamindex: u32, pmediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetNativeMediaType)(windows_core::Interface::as_raw(self), dwstreamindex, pmediatype.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransformForStream)(windows_core::Interface::as_raw(self), dwstreamindex, ptransformoractivate.into_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), dwstreamindex).ok() @@ -15366,58 +15366,58 @@ impl IMFSourceResolver { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateObjectFromURL(&self, pwszurl: P0, dwflags: u32, pprops: P1, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateObjectFromURL)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwflags, pprops.into_param().abi(), 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(), pobjecttype, core::mem::transmute(ppobject)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateObjectFromByteStream(&self, pbytestream: P0, pwszurl: P1, dwflags: u32, pprops: P2, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateObjectFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), pwszurl.into_param().abi(), dwflags, pprops.into_param().abi(), 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(), pobjecttype, core::mem::transmute(ppobject)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn BeginCreateObjectFromURL(&self, pwszurl: P0, dwflags: u32, pprops: P1, ppiunknowncancelcookie: Option<*mut Option>, pcallback: P2, punkstate: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObjectFromURL)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwflags, pprops.into_param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(std::ptr::null_mut())), pcallback.into_param().abi(), punkstate.into_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(std::ptr::null_mut())), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndCreateObjectFromURL)(windows_core::Interface::as_raw(self), presult.into_param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).EndCreateObjectFromURL)(windows_core::Interface::as_raw(self), presult.param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn BeginCreateObjectFromByteStream(&self, pbytestream: P0, pwszurl: P1, dwflags: u32, pprops: P2, ppiunknowncancelcookie: Option<*mut Option>, pcallback: P3, punkstate: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCreateObjectFromByteStream)(windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), pwszurl.into_param().abi(), dwflags, pprops.into_param().abi(), core::mem::transmute(ppiunknowncancelcookie.unwrap_or(std::ptr::null_mut())), pcallback.into_param().abi(), punkstate.into_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(std::ptr::null_mut())), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndCreateObjectFromByteStream)(windows_core::Interface::as_raw(self), presult.into_param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() + (windows_core::Interface::vtable(self).EndCreateObjectFromByteStream)(windows_core::Interface::as_raw(self), presult.param().abi(), pobjecttype, core::mem::transmute(ppobject)).ok() } pub unsafe fn CancelObjectCreation(&self, piunknowncancelcookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CancelObjectCreation)(windows_core::Interface::as_raw(self), piunknowncancelcookie.param().abi()).ok() } } #[repr(C)] @@ -15519,10 +15519,10 @@ impl IMFSpatialAudioSample { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -15590,18 +15590,18 @@ impl IMFSpatialAudioSample { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -15618,9 +15618,9 @@ impl IMFSpatialAudioSample { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetSampleFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15657,9 +15657,9 @@ impl IMFSpatialAudioSample { } pub unsafe fn AddBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.RemoveBufferByIndex)(windows_core::Interface::as_raw(self), dwindex).ok() @@ -15673,9 +15673,9 @@ impl IMFSpatialAudioSample { } pub unsafe fn CopyToBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyToBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyToBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn GetObjectCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15683,9 +15683,9 @@ impl IMFSpatialAudioSample { } pub unsafe fn AddSpatialAudioObject(&self, paudioobjbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSpatialAudioObject)(windows_core::Interface::as_raw(self), paudioobjbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSpatialAudioObject)(windows_core::Interface::as_raw(self), paudioobjbuffer.param().abi()).ok() } pub unsafe fn GetSpatialAudioObjectByIndex(&self, dwindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15715,10 +15715,10 @@ impl IMFStreamDescriptor { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -15786,18 +15786,18 @@ impl IMFStreamDescriptor { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -15814,9 +15814,9 @@ impl IMFStreamDescriptor { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetStreamIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15842,17 +15842,17 @@ impl IMFStreamSink { } pub unsafe fn BeginGetEvent(&self, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BeginGetEvent)(windows_core::Interface::as_raw(self), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndGetEvent(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EndGetEvent)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QueueEvent(&self, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.QueueEvent)(windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, core::mem::transmute(pvvalue)).ok() @@ -15871,9 +15871,9 @@ impl IMFStreamSink { } pub unsafe fn ProcessSample(&self, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessSample)(windows_core::Interface::as_raw(self), psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProcessSample)(windows_core::Interface::as_raw(self), psample.param().abi()).ok() } pub unsafe fn PlaceMarker(&self, emarkertype: MFSTREAMSINK_MARKER_TYPE, pvarmarkervalue: *const windows_core::PROPVARIANT, pvarcontextvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PlaceMarker)(windows_core::Interface::as_raw(self), emarkertype, core::mem::transmute(pvarmarkervalue), core::mem::transmute(pvarcontextvalue)).ok() @@ -15897,9 +15897,9 @@ windows_core::imp::interface_hierarchy!(IMFStreamingSinkConfig, windows_core::IU impl IMFStreamingSinkConfig { pub unsafe fn StartStreaming(&self, fseekoffsetisbyteoffset: P0, qwseekoffset: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartStreaming)(windows_core::Interface::as_raw(self), fseekoffsetisbyteoffset.into_param().abi(), qwseekoffset).ok() + (windows_core::Interface::vtable(self).StartStreaming)(windows_core::Interface::as_raw(self), fseekoffsetisbyteoffset.param().abi(), qwseekoffset).ok() } } #[repr(C)] @@ -15928,31 +15928,31 @@ windows_core::imp::interface_hierarchy!(IMFTimecodeTranslate, windows_core::IUnk impl IMFTimecodeTranslate { pub unsafe fn BeginConvertTimecodeToHNS(&self, ppropvartimecode: *const windows_core::PROPVARIANT, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginConvertTimecodeToHNS)(windows_core::Interface::as_raw(self), core::mem::transmute(ppropvartimecode), pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginConvertTimecodeToHNS)(windows_core::Interface::as_raw(self), core::mem::transmute(ppropvartimecode), pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndConvertTimecodeToHNS(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndConvertTimecodeToHNS)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EndConvertTimecodeToHNS)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn BeginConvertHNSToTimecode(&self, hnstime: i64, pcallback: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginConvertHNSToTimecode)(windows_core::Interface::as_raw(self), hnstime, pcallback.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginConvertHNSToTimecode)(windows_core::Interface::as_raw(self), hnstime, pcallback.param().abi(), punkstate.param().abi()).ok() } pub unsafe fn EndConvertHNSToTimecode(&self, presult: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndConvertHNSToTimecode)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndConvertHNSToTimecode)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -15968,49 +15968,49 @@ windows_core::imp::interface_hierarchy!(IMFTimedText, windows_core::IUnknown); impl IMFTimedText { pub unsafe fn RegisterNotifications(&self, notify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNotifications)(windows_core::Interface::as_raw(self), notify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterNotifications)(windows_core::Interface::as_raw(self), notify.param().abi()).ok() } pub unsafe fn SelectTrack(&self, trackid: u32, selected: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectTrack)(windows_core::Interface::as_raw(self), trackid, selected.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SelectTrack)(windows_core::Interface::as_raw(self), trackid, selected.param().abi()).ok() } pub unsafe fn AddDataSource(&self, bytestream: P0, label: P1, language: P2, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddDataSource)(windows_core::Interface::as_raw(self), bytestream.into_param().abi(), label.into_param().abi(), language.into_param().abi(), kind, isdefault.into_param().abi(), &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.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AddDataSourceFromUrl(&self, url: P0, label: P1, language: P2, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddDataSourceFromUrl)(windows_core::Interface::as_raw(self), url.into_param().abi(), label.into_param().abi(), language.into_param().abi(), kind, isdefault.into_param().abi(), &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.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AddTrack(&self, label: P0, language: P1, kind: MF_TIMED_TEXT_TRACK_KIND) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddTrack)(windows_core::Interface::as_raw(self), label.into_param().abi(), language.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveTrack)(windows_core::Interface::as_raw(self), track.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveTrack)(windows_core::Interface::as_raw(self), track.param().abi()).ok() } pub unsafe fn GetCueTimeOffset(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16037,9 +16037,9 @@ impl IMFTimedText { } pub unsafe fn SetInBandEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInBandEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInBandEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn IsInBandEnabled(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsInBandEnabled)(windows_core::Interface::as_raw(self)) @@ -16171,25 +16171,25 @@ impl IMFTimedTextCueList { } pub unsafe fn GetCueByOriginalId(&self, originalid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCueByOriginalId)(windows_core::Interface::as_raw(self), originalid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCueByOriginalId)(windows_core::Interface::as_raw(self), originalid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddTextCue(&self, start: f64, duration: f64, text: P0, cue: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextCue)(windows_core::Interface::as_raw(self), start, duration, text.into_param().abi(), core::mem::transmute(cue.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).AddTextCue)(windows_core::Interface::as_raw(self), start, duration, text.param().abi(), core::mem::transmute(cue.unwrap_or(std::ptr::null_mut()))).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), start, duration, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), core::mem::transmute(cue.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn RemoveCue(&self, cue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveCue)(windows_core::Interface::as_raw(self), cue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveCue)(windows_core::Interface::as_raw(self), cue.param().abi()).ok() } } #[repr(C)] @@ -16235,9 +16235,9 @@ impl IMFTimedTextNotify { } pub unsafe fn TrackSelected(&self, trackid: u32, selected: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TrackSelected)(windows_core::Interface::as_raw(self), trackid, selected.into_param().abi()) + (windows_core::Interface::vtable(self).TrackSelected)(windows_core::Interface::as_raw(self), trackid, selected.param().abi()) } pub unsafe fn TrackReadyStateChanged(&self, trackid: u32) { (windows_core::Interface::vtable(self).TrackReadyStateChanged)(windows_core::Interface::as_raw(self), trackid) @@ -16247,9 +16247,9 @@ impl IMFTimedTextNotify { } pub unsafe fn Cue(&self, cueevent: MF_TIMED_TEXT_CUE_EVENT, currenttime: f64, cue: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Cue)(windows_core::Interface::as_raw(self), cueevent, currenttime, cue.into_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)) @@ -16468,9 +16468,9 @@ impl IMFTimedTextTrack { } pub unsafe fn SetLabel(&self, label: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), label.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), label.param().abi()).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16551,17 +16551,17 @@ windows_core::imp::interface_hierarchy!(IMFTimer, windows_core::IUnknown); impl IMFTimer { pub unsafe fn SetTimer(&self, dwflags: u32, llclocktime: i64, pcallback: P0, punkstate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetTimer)(windows_core::Interface::as_raw(self), dwflags, llclocktime, pcallback.into_param().abi(), punkstate.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelTimer)(windows_core::Interface::as_raw(self), punkkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CancelTimer)(windows_core::Interface::as_raw(self), punkkey.param().abi()).ok() } } #[repr(C)] @@ -16575,10 +16575,10 @@ windows_core::imp::interface_hierarchy!(IMFTopoLoader, windows_core::IUnknown); impl IMFTopoLoader { pub unsafe fn Load(&self, pinputtopo: P0, ppoutputtopo: *mut Option, pcurrenttopo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pinputtopo.into_param().abi(), core::mem::transmute(ppoutputtopo), pcurrenttopo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pinputtopo.param().abi(), core::mem::transmute(ppoutputtopo), pcurrenttopo.param().abi()).ok() } } #[repr(C)] @@ -16602,10 +16602,10 @@ impl IMFTopology { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -16673,18 +16673,18 @@ impl IMFTopology { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -16701,9 +16701,9 @@ impl IMFTopology { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetTopologyID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16711,15 +16711,15 @@ impl IMFTopology { } pub unsafe fn AddNode(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNode)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddNode)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } pub unsafe fn RemoveNode(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveNode)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveNode)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } pub unsafe fn GetNodeCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16734,9 +16734,9 @@ impl IMFTopology { } pub unsafe fn CloneFrom(&self, ptopology: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloneFrom)(windows_core::Interface::as_raw(self), ptopology.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloneFrom)(windows_core::Interface::as_raw(self), ptopology.param().abi()).ok() } pub unsafe fn GetNodeByID(&self, qwtoponodeid: u64) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16781,10 +16781,10 @@ impl IMFTopologyNode { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -16852,18 +16852,18 @@ impl IMFTopologyNode { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -16880,15 +16880,15 @@ impl IMFTopologyNode { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn SetObject(&self, pobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), pobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), pobject.param().abi()).ok() } pub unsafe fn GetObject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16915,9 +16915,9 @@ impl IMFTopologyNode { } pub unsafe fn ConnectOutput(&self, dwoutputindex: u32, pdownstreamnode: P0, dwinputindexondownstreamnode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectOutput)(windows_core::Interface::as_raw(self), dwoutputindex, pdownstreamnode.into_param().abi(), 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), dwoutputindex).ok() @@ -16930,9 +16930,9 @@ impl IMFTopologyNode { } pub unsafe fn SetOutputPrefType(&self, dwoutputindex: u32, ptype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputPrefType)(windows_core::Interface::as_raw(self), dwoutputindex, ptype.into_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__ = std::mem::zeroed(); @@ -16940,9 +16940,9 @@ impl IMFTopologyNode { } pub unsafe fn SetInputPrefType(&self, dwinputindex: u32, ptype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputPrefType)(windows_core::Interface::as_raw(self), dwinputindex, ptype.into_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__ = std::mem::zeroed(); @@ -16950,9 +16950,9 @@ impl IMFTopologyNode { } pub unsafe fn CloneFrom(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloneFrom)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloneFrom)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } } #[repr(C)] @@ -17004,9 +17004,9 @@ windows_core::imp::interface_hierarchy!(IMFTopologyServiceLookupClient, windows_ impl IMFTopologyServiceLookupClient { pub unsafe fn InitServicePointers(&self, plookup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitServicePointers)(windows_core::Interface::as_raw(self), plookup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitServicePointers)(windows_core::Interface::as_raw(self), plookup.param().abi()).ok() } pub unsafe fn ReleaseServicePointers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseServicePointers)(windows_core::Interface::as_raw(self)).ok() @@ -17023,10 +17023,10 @@ windows_core::imp::interface_hierarchy!(IMFTrackedSample, windows_core::IUnknown impl IMFTrackedSample { pub unsafe fn SetAllocator(&self, psampleallocator: P0, punkstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), psampleallocator.into_param().abi(), punkstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllocator)(windows_core::Interface::as_raw(self), psampleallocator.param().abi(), punkstate.param().abi()).ok() } } #[repr(C)] @@ -17039,9 +17039,9 @@ windows_core::imp::interface_hierarchy!(IMFTranscodeProfile, windows_core::IUnkn impl IMFTranscodeProfile { pub unsafe fn SetAudioAttributes(&self, pattrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioAttributes)(windows_core::Interface::as_raw(self), pattrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioAttributes)(windows_core::Interface::as_raw(self), pattrs.param().abi()).ok() } pub unsafe fn GetAudioAttributes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17049,9 +17049,9 @@ impl IMFTranscodeProfile { } pub unsafe fn SetVideoAttributes(&self, pattrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVideoAttributes)(windows_core::Interface::as_raw(self), pattrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVideoAttributes)(windows_core::Interface::as_raw(self), pattrs.param().abi()).ok() } pub unsafe fn GetVideoAttributes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17059,9 +17059,9 @@ impl IMFTranscodeProfile { } pub unsafe fn SetContainerAttributes(&self, pattrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainerAttributes)(windows_core::Interface::as_raw(self), pattrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainerAttributes)(windows_core::Interface::as_raw(self), pattrs.param().abi()).ok() } pub unsafe fn GetContainerAttributes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17083,21 +17083,21 @@ windows_core::imp::interface_hierarchy!(IMFTranscodeSinkInfoProvider, windows_co impl IMFTranscodeSinkInfoProvider { pub unsafe fn SetOutputFile(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFile)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputFile)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn SetOutputByteStream(&self, pbytestreamactivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputByteStream)(windows_core::Interface::as_raw(self), pbytestreamactivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputByteStream)(windows_core::Interface::as_raw(self), pbytestreamactivate.param().abi()).ok() } pub unsafe fn SetProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } pub unsafe fn GetSinkInfo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17159,15 +17159,15 @@ impl IMFTransform { } pub unsafe fn SetInputType(&self, dwinputstreamid: u32, ptype: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputType)(windows_core::Interface::as_raw(self), dwinputstreamid, ptype.into_param().abi(), 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: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputType)(windows_core::Interface::as_raw(self), dwoutputstreamid, ptype.into_param().abi(), 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__ = std::mem::zeroed(); @@ -17190,18 +17190,18 @@ impl IMFTransform { } pub unsafe fn ProcessEvent(&self, dwinputstreamid: u32, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessEvent)(windows_core::Interface::as_raw(self), dwinputstreamid, pevent.into_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), emessage, ulparam).ok() } pub unsafe fn ProcessInput(&self, dwinputstreamid: u32, psample: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), dwinputstreamid, psample.into_param().abi(), 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), dwflags, poutputsamples.len().try_into().unwrap(), core::mem::transmute(poutputsamples.as_ptr()), pdwstatus).ok() @@ -17275,18 +17275,18 @@ windows_core::imp::interface_hierarchy!(IMFVideoCaptureSampleAllocator, windows_ impl IMFVideoCaptureSampleAllocator { pub unsafe fn SetDirectXManager(&self, pmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDirectXManager)(windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDirectXManager)(windows_core::Interface::as_raw(self), pmanager.param().abi()).ok() } pub unsafe fn UninitializeSampleAllocator(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UninitializeSampleAllocator)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn InitializeSampleAllocator(&self, crequestedframes: u32, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeSampleAllocator)(windows_core::Interface::as_raw(self), crequestedframes, pmediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeSampleAllocator)(windows_core::Interface::as_raw(self), crequestedframes, pmediatype.param().abi()).ok() } pub unsafe fn AllocateSample(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17294,10 +17294,10 @@ impl IMFVideoCaptureSampleAllocator { } pub unsafe fn InitializeCaptureSampleAllocator(&self, cbsamplesize: u32, cbcapturemetadatasize: u32, cbalignment: u32, cminimumsamples: u32, pattributes: P0, pmediatype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeCaptureSampleAllocator)(windows_core::Interface::as_raw(self), cbsamplesize, cbcapturemetadatasize, cbalignment, cminimumsamples, pattributes.into_param().abi(), pmediatype.into_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)] @@ -17342,9 +17342,9 @@ impl IMFVideoDisplayControl { } pub unsafe fn SetVideoWindow(&self, hwndvideo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVideoWindow)(windows_core::Interface::as_raw(self), hwndvideo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVideoWindow)(windows_core::Interface::as_raw(self), hwndvideo.param().abi()).ok() } pub unsafe fn GetVideoWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17359,9 +17359,9 @@ impl IMFVideoDisplayControl { } pub unsafe fn SetBorderColor(&self, clr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBorderColor)(windows_core::Interface::as_raw(self), clr.param().abi()).ok() } pub unsafe fn GetBorderColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17376,9 +17376,9 @@ impl IMFVideoDisplayControl { } pub unsafe fn SetFullscreen(&self, ffullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.param().abi()).ok() } pub unsafe fn GetFullscreen(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17424,10 +17424,10 @@ impl IMFVideoMediaType { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -17495,18 +17495,18 @@ impl IMFVideoMediaType { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -17523,9 +17523,9 @@ impl IMFVideoMediaType { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn GetMajorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17537,10 +17537,10 @@ impl IMFVideoMediaType { } pub unsafe fn IsEqual(&self, pimediatype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), pimediatype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), pimediatype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetRepresentation(&self, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetRepresentation)(windows_core::Interface::as_raw(self), core::mem::transmute(guidrepresentation), ppvrepresentation).ok() @@ -17735,9 +17735,9 @@ impl IMFVideoProcessor { } pub unsafe fn SetBackgroundColor(&self, clrbkg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), clrbkg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), clrbkg.param().abi()).ok() } } #[repr(C)] @@ -17817,9 +17817,9 @@ impl IMFVideoProcessorControl2 { } pub unsafe fn EnableHardwareEffects(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableHardwareEffects)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableHardwareEffects)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn GetSupportedHardwareEffects(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17859,9 +17859,9 @@ impl IMFVideoProcessorControl3 { } pub unsafe fn EnableHardwareEffects(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnableHardwareEffects)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnableHardwareEffects)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn GetSupportedHardwareEffects(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17873,18 +17873,18 @@ impl IMFVideoProcessorControl3 { } pub unsafe fn EnableSphericalVideoProcessing(&self, fenable: P0, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableSphericalVideoProcessing)(windows_core::Interface::as_raw(self), fenable.into_param().abi(), eformat, eprojectionmode).ok() + (windows_core::Interface::vtable(self).EnableSphericalVideoProcessing)(windows_core::Interface::as_raw(self), fenable.param().abi(), 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), x, y, z, w, fieldofview).ok() } pub unsafe fn SetOutputDevice(&self, poutputdevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputDevice)(windows_core::Interface::as_raw(self), poutputdevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputDevice)(windows_core::Interface::as_raw(self), poutputdevice.param().abi()).ok() } } #[repr(C)] @@ -17900,10 +17900,10 @@ windows_core::imp::interface_hierarchy!(IMFVideoRenderer, windows_core::IUnknown impl IMFVideoRenderer { pub unsafe fn InitializeRenderer(&self, pvideomixer: P0, pvideopresenter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeRenderer)(windows_core::Interface::as_raw(self), pvideomixer.into_param().abi(), pvideopresenter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeRenderer)(windows_core::Interface::as_raw(self), pvideomixer.param().abi(), pvideopresenter.param().abi()).ok() } } #[repr(C)] @@ -17916,9 +17916,9 @@ windows_core::imp::interface_hierarchy!(IMFVideoRendererEffectControl, windows_c impl IMFVideoRendererEffectControl { pub unsafe fn OnAppServiceConnectionEstablished(&self, pappserviceconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAppServiceConnectionEstablished)(windows_core::Interface::as_raw(self), pappserviceconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnAppServiceConnectionEstablished)(windows_core::Interface::as_raw(self), pappserviceconnection.param().abi()).ok() } } #[repr(C)] @@ -17931,18 +17931,18 @@ windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocator, windows_core::I impl IMFVideoSampleAllocator { pub unsafe fn SetDirectXManager(&self, pmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectXManager)(windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectXManager)(windows_core::Interface::as_raw(self), pmanager.param().abi()).ok() } pub unsafe fn UninitializeSampleAllocator(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UninitializeSampleAllocator)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn InitializeSampleAllocator(&self, crequestedframes: u32, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeSampleAllocator)(windows_core::Interface::as_raw(self), crequestedframes, pmediatype.into_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__ = std::mem::zeroed(); @@ -17962,9 +17962,9 @@ windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorCallback, windows impl IMFVideoSampleAllocatorCallback { pub unsafe fn SetCallback(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pnotify.param().abi()).ok() } pub unsafe fn GetFreeSampleCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17982,18 +17982,18 @@ windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorEx, windows_core: impl IMFVideoSampleAllocatorEx { pub unsafe fn SetDirectXManager(&self, pmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDirectXManager)(windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDirectXManager)(windows_core::Interface::as_raw(self), pmanager.param().abi()).ok() } pub unsafe fn UninitializeSampleAllocator(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UninitializeSampleAllocator)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn InitializeSampleAllocator(&self, crequestedframes: u32, pmediatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeSampleAllocator)(windows_core::Interface::as_raw(self), crequestedframes, pmediatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeSampleAllocator)(windows_core::Interface::as_raw(self), crequestedframes, pmediatype.param().abi()).ok() } pub unsafe fn AllocateSample(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -18001,10 +18001,10 @@ impl IMFVideoSampleAllocatorEx { } pub unsafe fn InitializeSampleAllocatorEx(&self, cinitialsamples: u32, cmaximumsamples: u32, pattributes: P0, pmediatype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeSampleAllocatorEx)(windows_core::Interface::as_raw(self), cinitialsamples, cmaximumsamples, pattributes.into_param().abi(), pmediatype.into_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)] @@ -18032,9 +18032,9 @@ impl IMFVideoSampleAllocatorNotifyEx { } pub unsafe fn NotifyPrune(&self, __midl__imfvideosampleallocatornotifyex0000: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyPrune)(windows_core::Interface::as_raw(self), __midl__imfvideosampleallocatornotifyex0000.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyPrune)(windows_core::Interface::as_raw(self), __midl__imfvideosampleallocatornotifyex0000.param().abi()).ok() } } #[repr(C)] @@ -18058,10 +18058,10 @@ impl IMFVirtualCamera { } pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), ptheirs.into_param().abi(), matchtype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -18129,18 +18129,18 @@ impl IMFVirtualCamera { } pub unsafe fn SetString(&self, guidkey: *const windows_core::GUID, wszvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetString)(windows_core::Interface::as_raw(self), guidkey, wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUnknown)(windows_core::Interface::as_raw(self), guidkey, punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.LockStore)(windows_core::Interface::as_raw(self)).ok() @@ -18157,15 +18157,15 @@ impl IMFVirtualCamera { } pub unsafe fn CopyAllItems(&self, pdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyAllItems)(windows_core::Interface::as_raw(self), pdest.param().abi()).ok() } pub unsafe fn AddDeviceSourceInfo(&self, devicesourceinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDeviceSourceInfo)(windows_core::Interface::as_raw(self), devicesourceinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDeviceSourceInfo)(windows_core::Interface::as_raw(self), devicesourceinfo.param().abi()).ok() } #[cfg(feature = "Win32_Devices_Properties")] pub unsafe fn AddProperty(&self, pkey: *const super::super::Devices::Properties::DEVPROPKEY, r#type: super::super::Devices::Properties::DEVPROPTYPE, pbdata: &[u8]) -> windows_core::Result<()> { @@ -18173,16 +18173,16 @@ impl IMFVirtualCamera { } pub unsafe fn AddRegistryEntry(&self, entryname: P0, subkeypath: P1, dwregtype: u32, pbdata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRegistryEntry)(windows_core::Interface::as_raw(self), entryname.into_param().abi(), subkeypath.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn Stop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self)).ok() @@ -18199,17 +18199,17 @@ impl IMFVirtualCamera { } pub unsafe fn CreateSyncEvent(&self, kseventset: *const windows_core::GUID, kseventid: u32, kseventflags: u32, eventhandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSyncEvent)(windows_core::Interface::as_raw(self), kseventset, kseventid, kseventflags, eventhandle.into_param().abi(), &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.param().abi(), &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: P0, semaphoreadjustment: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSyncSemaphore)(windows_core::Interface::as_raw(self), kseventset, kseventid, kseventflags, semaphorehandle.into_param().abi(), 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.param().abi(), 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() @@ -18238,29 +18238,29 @@ windows_core::imp::interface_hierarchy!(IMFWorkQueueServices, windows_core::IUnk impl IMFWorkQueueServices { pub unsafe fn BeginRegisterTopologyWorkQueuesWithMMCSS(&self, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndRegisterTopologyWorkQueuesWithMMCSS(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn BeginUnregisterTopologyWorkQueuesWithMMCSS(&self, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginUnregisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginUnregisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndUnregisterTopologyWorkQueuesWithMMCSS(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUnregisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (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), dwtopologyworkqueueid, core::mem::transmute(pwszclass), pcchclass).ok() @@ -18271,31 +18271,31 @@ impl IMFWorkQueueServices { } pub unsafe fn BeginRegisterPlatformWorkQueueWithMMCSS(&self, dwplatformworkqueue: u32, wszclass: P0, dwtaskid: u32, pcallback: P1, pstate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), dwplatformworkqueue, wszclass.into_param().abi(), dwtaskid, pcallback.into_param().abi(), pstate.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EndRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn BeginUnregisterPlatformWorkQueueWithMMCSS(&self, dwplatformworkqueue: u32, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginUnregisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), dwplatformworkqueue, pcallback.into_param().abi(), pstate.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUnregisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (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), dwplatformworkqueueid, core::mem::transmute(pwszclass), pcchclass).ok() @@ -18326,29 +18326,29 @@ windows_core::imp::interface_hierarchy!(IMFWorkQueueServicesEx, windows_core::IU impl IMFWorkQueueServicesEx { pub unsafe fn BeginRegisterTopologyWorkQueuesWithMMCSS(&self, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BeginRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndRegisterTopologyWorkQueuesWithMMCSS(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EndRegisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), presult.param().abi()).ok() } pub unsafe fn BeginUnregisterTopologyWorkQueuesWithMMCSS(&self, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginUnregisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BeginUnregisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pstate.param().abi()).ok() } pub unsafe fn EndUnregisterTopologyWorkQueuesWithMMCSS(&self, presult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndUnregisterTopologyWorkQueuesWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetTopologyWorkQueueMMCSSClass)(windows_core::Interface::as_raw(self), dwtopologyworkqueueid, core::mem::transmute(pwszclass), pcchclass).ok() @@ -18359,31 +18359,31 @@ impl IMFWorkQueueServicesEx { } pub unsafe fn BeginRegisterPlatformWorkQueueWithMMCSS(&self, dwplatformworkqueue: u32, wszclass: P0, dwtaskid: u32, pcallback: P1, pstate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), dwplatformworkqueue, wszclass.into_param().abi(), dwtaskid, pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.EndRegisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), presult.param().abi(), &mut result__).map(|| result__) } pub unsafe fn BeginUnregisterPlatformWorkQueueWithMMCSS(&self, dwplatformworkqueue: u32, pcallback: P0, pstate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BeginUnregisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), dwplatformworkqueue, pcallback.into_param().abi(), pstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndUnregisterPlatformWorkQueueWithMMCSS)(windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetPlaftormWorkQueueMMCSSClass)(windows_core::Interface::as_raw(self), dwplatformworkqueueid, core::mem::transmute(pwszclass), pcchclass).ok() @@ -18398,11 +18398,11 @@ impl IMFWorkQueueServicesEx { } pub unsafe fn BeginRegisterPlatformWorkQueueWithMMCSSEx(&self, dwplatformworkqueue: u32, wszclass: P0, dwtaskid: u32, lpriority: i32, pcallback: P1, pstate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginRegisterPlatformWorkQueueWithMMCSSEx)(windows_core::Interface::as_raw(self), dwplatformworkqueue, wszclass.into_param().abi(), dwtaskid, lpriority, pcallback.into_param().abi(), pstate.into_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__ = std::mem::zeroed(); @@ -18449,9 +18449,9 @@ windows_core::imp::interface_hierarchy!(IPlayToControl, windows_core::IUnknown); impl IPlayToControl { pub unsafe fn Connect(&self, pfactory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pfactory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pfactory.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -18468,9 +18468,9 @@ windows_core::imp::interface_hierarchy!(IPlayToControlWithCapabilities, windows_ impl IPlayToControlWithCapabilities { pub unsafe fn Connect(&self, pfactory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), pfactory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), pfactory.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -18490,10 +18490,10 @@ windows_core::imp::interface_hierarchy!(IPlayToSourceClassFactory, windows_core: impl IPlayToSourceClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pcontrol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), dwflags, pcontrol.into_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)] @@ -18512,9 +18512,9 @@ impl IToc { } pub unsafe fn SetDescription(&self, pwszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.param().abi()).ok() } pub unsafe fn GetDescription(&self, pwdescriptionsize: *mut u16, pwszdescription: windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), pwdescriptionsize, core::mem::transmute(pwszdescription)).ok() @@ -18534,15 +18534,15 @@ impl IToc { } pub unsafe fn AddEntryList(&self, pentrylist: P0, pwentrylistindex: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntryList)(windows_core::Interface::as_raw(self), pentrylist.into_param().abi(), pwentrylistindex).ok() + (windows_core::Interface::vtable(self).AddEntryList)(windows_core::Interface::as_raw(self), pentrylist.param().abi(), pwentrylistindex).ok() } pub unsafe fn AddEntryListByIndex(&self, wentrylistindex: u16, pentrylist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntryListByIndex)(windows_core::Interface::as_raw(self), wentrylistindex, pentrylist.into_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), wentrylistindex).ok() @@ -18575,15 +18575,15 @@ impl ITocCollection { } pub unsafe fn AddEntry(&self, ptoc: P0, pdwentryindex: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), ptoc.into_param().abi(), pdwentryindex).ok() + (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), ptoc.param().abi(), pdwentryindex).ok() } pub unsafe fn AddEntryByIndex(&self, dwentryindex: u32, ptoc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex, ptoc.into_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), dwentryindex).ok() @@ -18603,9 +18603,9 @@ windows_core::imp::interface_hierarchy!(ITocEntry, windows_core::IUnknown); impl ITocEntry { pub unsafe fn SetTitle(&self, pwsztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), pwsztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), pwsztitle.param().abi()).ok() } pub unsafe fn GetTitle(&self, pwtitlesize: *mut u16, pwsztitle: windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), pwtitlesize, core::mem::transmute(pwsztitle)).ok() @@ -18653,15 +18653,15 @@ impl ITocEntryList { } pub unsafe fn AddEntry(&self, pentry: P0, pdwentryindex: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), pentry.into_param().abi(), pdwentryindex).ok() + (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), pentry.param().abi(), pdwentryindex).ok() } pub unsafe fn AddEntryByIndex(&self, dwentryindex: u32, pentry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntryByIndex)(windows_core::Interface::as_raw(self), dwentryindex, pentry.into_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), dwentryindex).ok() @@ -18681,9 +18681,9 @@ windows_core::imp::interface_hierarchy!(ITocParser, windows_core::IUnknown); impl ITocParser { pub unsafe fn Init(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (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), enumtocpostype, pdwtoccount).ok() @@ -18698,9 +18698,9 @@ impl ITocParser { } pub unsafe fn AddToc(&self, enumtocpostype: TOC_POS_TYPE, ptoc: P0, pdwtocindex: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToc)(windows_core::Interface::as_raw(self), enumtocpostype, ptoc.into_param().abi(), pdwtocindex).ok() + (windows_core::Interface::vtable(self).AddToc)(windows_core::Interface::as_raw(self), enumtocpostype, ptoc.param().abi(), 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), enumtocpostype, dwtocindex).ok() @@ -18798,15 +18798,15 @@ impl IWMCodecProps { #[cfg(feature = "Win32_Media_DxMediaObjects")] pub unsafe fn GetFormatProp(&self, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, pszname: P0, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFormatProp)(windows_core::Interface::as_raw(self), pmt, pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() + (windows_core::Interface::vtable(self).GetFormatProp)(windows_core::Interface::as_raw(self), pmt, pszname.param().abi(), ptype, pvalue, pdwsize).ok() } pub unsafe fn GetCodecProp(&self, dwformat: u32, pszname: P0, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), dwformat, pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() + (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), dwformat, pszname.param().abi(), ptype, pvalue, pdwsize).ok() } } #[repr(C)] @@ -18881,9 +18881,9 @@ impl IWMFrameInterpProps { } pub unsafe fn SetFrameInterpEnabled(&self, bfienabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFrameInterpEnabled)(windows_core::Interface::as_raw(self), bfienabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFrameInterpEnabled)(windows_core::Interface::as_raw(self), bfienabled.param().abi()).ok() } pub unsafe fn SetComplexityLevel(&self, icomplexity: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetComplexityLevel)(windows_core::Interface::as_raw(self), icomplexity).ok() @@ -18966,9 +18966,9 @@ windows_core::imp::interface_hierarchy!(IWMSampleExtensionSupport, windows_core: impl IWMSampleExtensionSupport { pub unsafe fn SetUseSampleExtensions(&self, fuseextensions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseSampleExtensions)(windows_core::Interface::as_raw(self), fuseextensions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseSampleExtensions)(windows_core::Interface::as_raw(self), fuseextensions.param().abi()).ok() } } #[repr(C)] @@ -19013,16 +19013,16 @@ impl IWMVideoDecoderReconBuffer { #[cfg(feature = "Win32_Media_DxMediaObjects")] pub unsafe fn GetReconstructedVideoFrame(&self, pbuf: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetReconstructedVideoFrame)(windows_core::Interface::as_raw(self), pbuf.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetReconstructedVideoFrame)(windows_core::Interface::as_raw(self), pbuf.param().abi()).ok() } #[cfg(feature = "Win32_Media_DxMediaObjects")] pub unsafe fn SetReconstructedVideoFrame(&self, pbuf: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReconstructedVideoFrame)(windows_core::Interface::as_raw(self), pbuf.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReconstructedVideoFrame)(windows_core::Interface::as_raw(self), pbuf.param().abi()).ok() } } #[repr(C)] 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 c862db859f..e2b271ba99 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs @@ -14,9 +14,9 @@ impl IFeed { } pub unsafe fn Rename(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Url(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24,9 +24,9 @@ impl IFeed { } pub unsafe fn SetUrl(&self, feedurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), feedurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), feedurl.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -38,9 +38,9 @@ impl IFeed { } pub unsafe fn Move(&self, newparentpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), newparentpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), newparentpath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> windows_core::Result { @@ -144,9 +144,9 @@ impl IFeed { } pub unsafe fn SetDownloadEnclosuresAutomatically(&self, downloadenclosuresautomatically: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), downloadenclosuresautomatically.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), downloadenclosuresautomatically.param().abi()).ok() } pub unsafe fn DownloadStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -158,10 +158,10 @@ impl IFeed { } pub unsafe fn Merge(&self, feedxml: P0, feedurl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), feedxml.into_param().abi(), feedurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), feedxml.param().abi(), feedurl.param().abi()).ok() } pub unsafe fn DownloadUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -265,9 +265,9 @@ impl IFeed2 { } pub unsafe fn Rename(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Url(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -275,9 +275,9 @@ impl IFeed2 { } pub unsafe fn SetUrl(&self, feedurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUrl)(windows_core::Interface::as_raw(self), feedurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUrl)(windows_core::Interface::as_raw(self), feedurl.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -289,9 +289,9 @@ impl IFeed2 { } pub unsafe fn Move(&self, newparentpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), newparentpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), newparentpath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> windows_core::Result { @@ -395,9 +395,9 @@ impl IFeed2 { } pub unsafe fn SetDownloadEnclosuresAutomatically(&self, downloadenclosuresautomatically: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), downloadenclosuresautomatically.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), downloadenclosuresautomatically.param().abi()).ok() } pub unsafe fn DownloadStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -409,10 +409,10 @@ impl IFeed2 { } pub unsafe fn Merge(&self, feedxml: P0, feedurl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), feedxml.into_param().abi(), feedurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), feedxml.param().abi(), feedurl.param().abi()).ok() } pub unsafe fn DownloadUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -457,10 +457,10 @@ impl IFeed2 { } pub unsafe fn SetCredentials(&self, username: P0, password: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), username.into_param().abi(), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), username.param().abi(), password.param().abi()).ok() } pub unsafe fn ClearCredentials(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearCredentials)(windows_core::Interface::as_raw(self)).ok() @@ -534,12 +534,12 @@ impl IFeedEnclosure { } pub unsafe fn SetFile(&self, downloadurl: P0, downloadfilepath: P1, downloadmimetype: P2, enclosurefilename: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFile)(windows_core::Interface::as_raw(self), downloadurl.into_param().abi(), downloadfilepath.into_param().abi(), downloadmimetype.into_param().abi(), enclosurefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFile)(windows_core::Interface::as_raw(self), downloadurl.param().abi(), downloadfilepath.param().abi(), downloadmimetype.param().abi(), enclosurefilename.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -574,47 +574,47 @@ impl IFeedEvents { } pub unsafe fn FeedDeleted(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FeedRenamed(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FeedUrlChanged(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FeedMoved(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedMoved)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedMoved)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FeedDownloading(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FeedDownloadCompleted(&self, path: P0, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), path.into_param().abi(), error).ok() + (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), path.param().abi(), error).ok() } pub unsafe fn FeedItemCountChanged(&self, path: P0, itemcounttype: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), path.into_param().abi(), itemcounttype).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), path.param().abi(), itemcounttype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -649,49 +649,49 @@ impl IFeedFolder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFeed(&self, feedname: P0, feedurl: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFeed)(windows_core::Interface::as_raw(self), feedname.into_param().abi(), feedurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFeed)(windows_core::Interface::as_raw(self), feedname.param().abi(), feedurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSubfolder(&self, foldername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSubfolder)(windows_core::Interface::as_raw(self), foldername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSubfolder)(windows_core::Interface::as_raw(self), foldername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExistsFeed(&self, feedname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), feedname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), feedname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeed(&self, feedname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), feedname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), feedname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExistsSubfolder(&self, foldername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExistsSubfolder)(windows_core::Interface::as_raw(self), foldername.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExistsSubfolder)(windows_core::Interface::as_raw(self), foldername.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSubfolder(&self, foldername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubfolder)(windows_core::Interface::as_raw(self), foldername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubfolder)(windows_core::Interface::as_raw(self), foldername.param().abi(), &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() @@ -702,9 +702,9 @@ impl IFeedFolder { } pub unsafe fn Rename(&self, foldername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), foldername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), foldername.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -712,9 +712,9 @@ impl IFeedFolder { } pub unsafe fn Move(&self, newparentpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), newparentpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), newparentpath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> windows_core::Result { @@ -797,99 +797,99 @@ impl IFeedFolderEvents { } pub unsafe fn FolderAdded(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderAdded)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderAdded)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FolderDeleted(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderDeleted)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderDeleted)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FolderRenamed(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderRenamed)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderRenamed)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FolderMovedFrom(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderMovedFrom)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderMovedFrom)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FolderMovedTo(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderMovedTo)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderMovedTo)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FolderItemCountChanged(&self, path: P0, itemcounttype: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderItemCountChanged)(windows_core::Interface::as_raw(self), path.into_param().abi(), itemcounttype).ok() + (windows_core::Interface::vtable(self).FolderItemCountChanged)(windows_core::Interface::as_raw(self), path.param().abi(), itemcounttype).ok() } pub unsafe fn FeedAdded(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedAdded)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedAdded)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FeedDeleted(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FeedRenamed(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FeedUrlChanged(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FeedMovedFrom(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedMovedFrom)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedMovedFrom)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FeedMovedTo(&self, path: P0, oldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedMovedTo)(windows_core::Interface::as_raw(self), path.into_param().abi(), oldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedMovedTo)(windows_core::Interface::as_raw(self), path.param().abi(), oldpath.param().abi()).ok() } pub unsafe fn FeedDownloading(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn FeedDownloadCompleted(&self, path: P0, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), path.into_param().abi(), error).ok() + (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), path.param().abi(), error).ok() } pub unsafe fn FeedItemCountChanged(&self, path: P0, itemcounttype: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), path.into_param().abi(), itemcounttype).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), path.param().abi(), itemcounttype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -962,9 +962,9 @@ impl IFeedItem { } pub unsafe fn SetIsRead(&self, isread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsRead)(windows_core::Interface::as_raw(self), isread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsRead)(windows_core::Interface::as_raw(self), isread.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1068,9 +1068,9 @@ impl IFeedItem2 { } pub unsafe fn SetIsRead(&self, isread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsRead)(windows_core::Interface::as_raw(self), isread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsRead)(windows_core::Interface::as_raw(self), isread.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1155,60 +1155,60 @@ impl IFeedsManager { } pub unsafe fn IsSubscribed(&self, feedurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), feedurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), feedurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ExistsFeed(&self, feedpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), feedpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), feedpath.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeed(&self, feedpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), feedpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), feedpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFeedByUrl(&self, feedurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFeedByUrl)(windows_core::Interface::as_raw(self), feedurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeedByUrl)(windows_core::Interface::as_raw(self), feedurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExistsFolder(&self, folderpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExistsFolder)(windows_core::Interface::as_raw(self), folderpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExistsFolder)(windows_core::Interface::as_raw(self), folderpath.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFolder(&self, folderpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), folderpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), folderpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteFeed(&self, feedpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFeed)(windows_core::Interface::as_raw(self), feedpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteFeed)(windows_core::Interface::as_raw(self), feedpath.param().abi()).ok() } pub unsafe fn DeleteFolder(&self, folderpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), folderpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), folderpath.param().abi()).ok() } pub unsafe fn BackgroundSync(&self, action: FEEDS_BACKGROUNDSYNC_ACTION) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BackgroundSync)(windows_core::Interface::as_raw(self), action).ok() @@ -1229,10 +1229,10 @@ impl IFeedsManager { } pub unsafe fn Normalize(&self, feedxmlin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), feedxmlin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), feedxmlin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ItemCountLimit(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1280,9 +1280,9 @@ impl IWMPAudioRenderConfig { } pub unsafe fn SetaudioOutputDevice(&self, bstroutputdevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetaudioOutputDevice)(windows_core::Interface::as_raw(self), bstroutputdevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetaudioOutputDevice)(windows_core::Interface::as_raw(self), bstroutputdevice.param().abi()).ok() } } #[repr(C)] @@ -1325,24 +1325,24 @@ windows_core::imp::interface_hierarchy!(IWMPCdromBurn, windows_core::IUnknown); impl IWMPCdromBurn { pub unsafe fn isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isAvailable)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), pisavailable).ok() + (windows_core::Interface::vtable(self).isAvailable)(windows_core::Interface::as_raw(self), bstritem.param().abi(), pisavailable).ok() } pub unsafe fn getItemInfo(&self, bstritem: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritem.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn label(&self, pbstrlabel: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).label)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrlabel)).ok() } pub unsafe fn Setlabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setlabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setlabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn burnFormat(&self, pwmpbf: *mut WMPBurnFormat) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).burnFormat)(windows_core::Interface::as_raw(self), pwmpbf).ok() @@ -1358,9 +1358,9 @@ impl IWMPCdromBurn { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetburnPlaylist(&self, pplaylist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetburnPlaylist)(windows_core::Interface::as_raw(self), pplaylist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetburnPlaylist)(windows_core::Interface::as_raw(self), pplaylist.param().abi()).ok() } pub unsafe fn refreshStatus(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).refreshStatus)(windows_core::Interface::as_raw(self)).ok() @@ -1422,10 +1422,10 @@ impl IWMPCdromCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByDriveSpecifier(&self, bstrdrivespecifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByDriveSpecifier)(windows_core::Interface::as_raw(self), bstrdrivespecifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByDriveSpecifier)(windows_core::Interface::as_raw(self), bstrdrivespecifier.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1477,36 +1477,36 @@ impl IWMPClosedCaption { } pub unsafe fn SetSAMIStyle(&self, bstrsamistyle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSAMIStyle)(windows_core::Interface::as_raw(self), bstrsamistyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSAMIStyle)(windows_core::Interface::as_raw(self), bstrsamistyle.param().abi()).ok() } pub unsafe fn SAMILang(&self, pbstrsamilang: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SAMILang)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsamilang)).ok() } pub unsafe fn SetSAMILang(&self, bstrsamilang: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSAMILang)(windows_core::Interface::as_raw(self), bstrsamilang.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSAMILang)(windows_core::Interface::as_raw(self), bstrsamilang.param().abi()).ok() } pub unsafe fn SAMIFileName(&self, pbstrsamifilename: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SAMIFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsamifilename)).ok() } pub unsafe fn SetSAMIFileName(&self, bstrsamifilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSAMIFileName)(windows_core::Interface::as_raw(self), bstrsamifilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSAMIFileName)(windows_core::Interface::as_raw(self), bstrsamifilename.param().abi()).ok() } pub unsafe fn captioningId(&self, pbstrcaptioningid: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).captioningId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrcaptioningid)).ok() } pub unsafe fn SetcaptioningId(&self, bstrcaptioningid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcaptioningId)(windows_core::Interface::as_raw(self), bstrcaptioningid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcaptioningId)(windows_core::Interface::as_raw(self), bstrcaptioningid.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1533,36 +1533,36 @@ impl IWMPClosedCaption2 { } pub unsafe fn SetSAMIStyle(&self, bstrsamistyle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSAMIStyle)(windows_core::Interface::as_raw(self), bstrsamistyle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSAMIStyle)(windows_core::Interface::as_raw(self), bstrsamistyle.param().abi()).ok() } pub unsafe fn SAMILang(&self, pbstrsamilang: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SAMILang)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsamilang)).ok() } pub unsafe fn SetSAMILang(&self, bstrsamilang: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSAMILang)(windows_core::Interface::as_raw(self), bstrsamilang.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSAMILang)(windows_core::Interface::as_raw(self), bstrsamilang.param().abi()).ok() } pub unsafe fn SAMIFileName(&self, pbstrsamifilename: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SAMIFileName)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsamifilename)).ok() } pub unsafe fn SetSAMIFileName(&self, bstrsamifilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSAMIFileName)(windows_core::Interface::as_raw(self), bstrsamifilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSAMIFileName)(windows_core::Interface::as_raw(self), bstrsamifilename.param().abi()).ok() } pub unsafe fn captioningId(&self, pbstrcaptioningid: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.captioningId)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrcaptioningid)).ok() } pub unsafe fn SetcaptioningId(&self, bstrcaptioningid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcaptioningId)(windows_core::Interface::as_raw(self), bstrcaptioningid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcaptioningId)(windows_core::Interface::as_raw(self), bstrcaptioningid.param().abi()).ok() } pub unsafe fn SAMILangCount(&self, plcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SAMILangCount)(windows_core::Interface::as_raw(self), plcount).ok() @@ -1656,52 +1656,52 @@ windows_core::imp::interface_hierarchy!(IWMPContentPartner, windows_core::IUnkno impl IWMPContentPartner { pub unsafe fn SetCallback(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn Notify(&self, r#type: WMPPartnerNotification, pcontext: *const windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), r#type, core::mem::transmute(pcontext)).ok() } pub unsafe fn GetItemInfo(&self, bstrinfoname: P0, pcontext: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemInfo)(windows_core::Interface::as_raw(self), bstrinfoname.into_param().abi(), core::mem::transmute(pcontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemInfo)(windows_core::Interface::as_raw(self), bstrinfoname.param().abi(), core::mem::transmute(pcontext), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetContentPartnerInfo(&self, bstrinfoname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContentPartnerInfo)(windows_core::Interface::as_raw(self), bstrinfoname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetContentPartnerInfo)(windows_core::Interface::as_raw(self), bstrinfoname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCommands(&self, location: P0, plocationcontext: *const windows_core::VARIANT, itemlocation: P1, prgitemids: &[u32], pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCommands)(windows_core::Interface::as_raw(self), location.into_param().abi(), core::mem::transmute(plocationcontext), itemlocation.into_param().abi(), prgitemids.len().try_into().unwrap(), core::mem::transmute(prgitemids.as_ptr()), pcitemids, pprgitems).ok() + (windows_core::Interface::vtable(self).GetCommands)(windows_core::Interface::as_raw(self), location.param().abi(), core::mem::transmute(plocationcontext), itemlocation.param().abi(), prgitemids.len().try_into().unwrap(), core::mem::transmute(prgitemids.as_ptr()), pcitemids, pprgitems).ok() } pub unsafe fn InvokeCommand(&self, dwcommandid: u32, location: P0, plocationcontext: *const windows_core::VARIANT, itemlocation: P1, rgitemids: &[u32]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), dwcommandid, location.into_param().abi(), core::mem::transmute(plocationcontext), itemlocation.into_param().abi(), 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, location.param().abi(), core::mem::transmute(plocationcontext), itemlocation.param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CanBuySilent)(windows_core::Interface::as_raw(self), pinfo.into_param().abi(), core::mem::transmute(pbstrtotalprice), psilentok).ok() + (windows_core::Interface::vtable(self).CanBuySilent)(windows_core::Interface::as_raw(self), pinfo.param().abi(), core::mem::transmute(pbstrtotalprice), psilentok).ok() } pub unsafe fn Buy(&self, pinfo: P0, cookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Buy)(windows_core::Interface::as_raw(self), pinfo.into_param().abi(), cookie).ok() + (windows_core::Interface::vtable(self).Buy)(windows_core::Interface::as_raw(self), pinfo.param().abi(), cookie).ok() } pub unsafe fn GetStreamingURL(&self, st: WMPStreamingType, pstreamcontext: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1709,57 +1709,57 @@ impl IWMPContentPartner { } pub unsafe fn Download(&self, pinfo: P0, cookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pinfo.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DownloadTrackComplete)(windows_core::Interface::as_raw(self), hrresult, contentid, downloadtrackparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DownloadTrackComplete)(windows_core::Interface::as_raw(self), hrresult, contentid, downloadtrackparam.param().abi()).ok() } pub unsafe fn RefreshLicense(&self, dwcookie: u32, flocal: P0, bstrurl: P1, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: P2, preasoncontext: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RefreshLicense)(windows_core::Interface::as_raw(self), dwcookie, flocal.into_param().abi(), bstrurl.into_param().abi(), r#type, contentid, bstrrefreshreason.into_param().abi(), core::mem::transmute(preasoncontext)).ok() + (windows_core::Interface::vtable(self).RefreshLicense)(windows_core::Interface::as_raw(self), dwcookie, flocal.param().abi(), bstrurl.param().abi(), r#type, contentid, bstrrefreshreason.param().abi(), core::mem::transmute(preasoncontext)).ok() } pub unsafe fn GetCatalogURL(&self, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut windows_core::BSTR, pexpirationdate: *mut windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCatalogURL)(windows_core::Interface::as_raw(self), dwcatalogversion, dwcatalogschemaversion, cataloglcid, pdwnewcatalogversion, core::mem::transmute(pbstrcatalogurl), core::mem::transmute(pexpirationdate)).ok() } pub unsafe fn GetTemplate(&self, task: WMPTaskType, location: P0, pcontext: *const windows_core::VARIANT, clicklocation: P1, pclickcontext: *const windows_core::VARIANT, bstrfilter: P2, bstrviewparams: P3, pbstrtemplateurl: *mut windows_core::BSTR, ptemplatesize: *mut WMPTemplateSize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), task, location.into_param().abi(), core::mem::transmute(pcontext), clicklocation.into_param().abi(), core::mem::transmute(pclickcontext), bstrfilter.into_param().abi(), bstrviewparams.into_param().abi(), core::mem::transmute(pbstrtemplateurl), ptemplatesize).ok() + (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), task, location.param().abi(), core::mem::transmute(pcontext), clicklocation.param().abi(), core::mem::transmute(pclickcontext), bstrfilter.param().abi(), bstrviewparams.param().abi(), core::mem::transmute(pbstrtemplateurl), ptemplatesize).ok() } pub unsafe fn UpdateDevice(&self, bstrdevicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateDevice)(windows_core::Interface::as_raw(self), bstrdevicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateDevice)(windows_core::Interface::as_raw(self), bstrdevicename.param().abi()).ok() } pub unsafe fn GetListContents(&self, location: P0, pcontext: *const windows_core::VARIANT, bstrlisttype: P1, bstrparams: P2, dwlistcookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetListContents)(windows_core::Interface::as_raw(self), location.into_param().abi(), core::mem::transmute(pcontext), bstrlisttype.into_param().abi(), bstrparams.into_param().abi(), dwlistcookie).ok() + (windows_core::Interface::vtable(self).GetListContents)(windows_core::Interface::as_raw(self), location.param().abi(), core::mem::transmute(pcontext), bstrlisttype.param().abi(), bstrparams.param().abi(), 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: P0, foktocache: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Login)(windows_core::Interface::as_raw(self), core::mem::transmute(userinfo), core::mem::transmute(pwdinfo), fusedcachedcreds.into_param().abi(), foktocache.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Login)(windows_core::Interface::as_raw(self), core::mem::transmute(userinfo), core::mem::transmute(pwdinfo), fusedcachedcreds.param().abi(), foktocache.param().abi()).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<()> { @@ -1770,31 +1770,31 @@ impl IWMPContentPartner { } pub unsafe fn SendMessage(&self, bstrmsg: P0, bstrparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), bstrmsg.into_param().abi(), bstrparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), bstrmsg.param().abi(), bstrparam.param().abi()).ok() } pub unsafe fn StationEvent(&self, bstrstationeventtype: P0, stationid: u32, playlistindex: u32, trackid: u32, trackdata: P1, dwsecondsplayed: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StationEvent)(windows_core::Interface::as_raw(self), bstrstationeventtype.into_param().abi(), stationid, playlistindex, trackid, trackdata.into_param().abi(), dwsecondsplayed).ok() + (windows_core::Interface::vtable(self).StationEvent)(windows_core::Interface::as_raw(self), bstrstationeventtype.param().abi(), stationid, playlistindex, trackid, trackdata.param().abi(), dwsecondsplayed).ok() } pub unsafe fn CompareContainerListPrices(&self, plistbase: P0, plistcompare: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareContainerListPrices)(windows_core::Interface::as_raw(self), plistbase.into_param().abi(), plistcompare.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareContainerListPrices)(windows_core::Interface::as_raw(self), plistbase.param().abi(), plistcompare.param().abi(), &mut result__).map(|| result__) } pub unsafe fn VerifyPermission(&self, bstrpermission: P0, pcontext: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VerifyPermission)(windows_core::Interface::as_raw(self), bstrpermission.into_param().abi(), core::mem::transmute(pcontext)).ok() + (windows_core::Interface::vtable(self).VerifyPermission)(windows_core::Interface::as_raw(self), bstrpermission.param().abi(), core::mem::transmute(pcontext)).ok() } } #[repr(C)] @@ -1841,27 +1841,27 @@ impl IWMPContentPartnerCallback { } pub unsafe fn DownloadTrack(&self, cookie: u32, bstrtrackurl: P0, dwservicetrackid: u32, bstrdownloadparams: P1, hrdownload: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DownloadTrack)(windows_core::Interface::as_raw(self), cookie, bstrtrackurl.into_param().abi(), dwservicetrackid, bstrdownloadparams.into_param().abi(), hrdownload).ok() + (windows_core::Interface::vtable(self).DownloadTrack)(windows_core::Interface::as_raw(self), cookie, bstrtrackurl.param().abi(), dwservicetrackid, bstrdownloadparams.param().abi(), 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), pdwversion, pdwschemaversion, plcid).ok() } pub unsafe fn UpdateDeviceComplete(&self, bstrdevicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateDeviceComplete)(windows_core::Interface::as_raw(self), bstrdevicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateDeviceComplete)(windows_core::Interface::as_raw(self), bstrdevicename.param().abi()).ok() } pub unsafe fn ChangeView(&self, bstrtype: P0, bstrid: P1, bstrfilter: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeView)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi(), bstrid.into_param().abi(), bstrfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeView)(windows_core::Interface::as_raw(self), bstrtype.param().abi(), bstrid.param().abi(), bstrfilter.param().abi()).ok() } pub unsafe fn AddListContents(&self, dwlistcookie: u32, prgitems: &[u32]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddListContents)(windows_core::Interface::as_raw(self), dwlistcookie, prgitems.len().try_into().unwrap(), core::mem::transmute(prgitems.as_ptr())).ok() @@ -1871,11 +1871,11 @@ impl IWMPContentPartnerCallback { } pub unsafe fn SendMessageComplete(&self, bstrmsg: P0, bstrparam: P1, bstrresult: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SendMessageComplete)(windows_core::Interface::as_raw(self), bstrmsg.into_param().abi(), bstrparam.into_param().abi(), bstrresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendMessageComplete)(windows_core::Interface::as_raw(self), bstrmsg.param().abi(), bstrparam.param().abi(), bstrresult.param().abi()).ok() } pub unsafe fn GetContentIDsInLibrary(&self, pccontentids: *mut u32, pprgids: *mut *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetContentIDsInLibrary)(windows_core::Interface::as_raw(self), pccontentids, pprgids).ok() @@ -1885,15 +1885,15 @@ impl IWMPContentPartnerCallback { } pub unsafe fn ShowPopup(&self, lindex: i32, bstrparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowPopup)(windows_core::Interface::as_raw(self), lindex, bstrparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowPopup)(windows_core::Interface::as_raw(self), lindex, bstrparameters.param().abi()).ok() } pub unsafe fn VerifyPermissionComplete(&self, bstrpermission: P0, pcontext: *const windows_core::VARIANT, hrpermission: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).VerifyPermissionComplete)(windows_core::Interface::as_raw(self), bstrpermission.into_param().abi(), core::mem::transmute(pcontext), hrpermission).ok() + (windows_core::Interface::vtable(self).VerifyPermissionComplete)(windows_core::Interface::as_raw(self), bstrpermission.param().abi(), core::mem::transmute(pcontext), hrpermission).ok() } } #[repr(C)] @@ -1921,9 +1921,9 @@ windows_core::imp::interface_hierarchy!(IWMPControls, windows_core::IUnknown, su impl IWMPControls { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), pisavailable).ok() + (windows_core::Interface::vtable(self).get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.param().abi(), pisavailable).ok() } pub unsafe fn play(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).play)(windows_core::Interface::as_raw(self)).ok() @@ -1963,9 +1963,9 @@ impl IWMPControls { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcurrentItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcurrentItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } pub unsafe fn currentMarker(&self, plmarker: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).currentMarker)(windows_core::Interface::as_raw(self), plmarker).ok() @@ -1976,9 +1976,9 @@ impl IWMPControls { #[cfg(feature = "Win32_System_Com")] pub unsafe fn playItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).playItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).playItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2019,9 +2019,9 @@ windows_core::imp::interface_hierarchy!(IWMPControls2, windows_core::IUnknown, s impl IWMPControls2 { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), pisavailable).ok() + (windows_core::Interface::vtable(self).base__.get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.param().abi(), pisavailable).ok() } pub unsafe fn play(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.play)(windows_core::Interface::as_raw(self)).ok() @@ -2061,9 +2061,9 @@ impl IWMPControls2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcurrentItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcurrentItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } pub unsafe fn currentMarker(&self, plmarker: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.currentMarker)(windows_core::Interface::as_raw(self), plmarker).ok() @@ -2074,9 +2074,9 @@ impl IWMPControls2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn playItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.playItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.playItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } pub unsafe fn step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -2096,9 +2096,9 @@ windows_core::imp::interface_hierarchy!(IWMPControls3, windows_core::IUnknown, s impl IWMPControls3 { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), pisavailable).ok() + (windows_core::Interface::vtable(self).base__.base__.get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.param().abi(), pisavailable).ok() } pub unsafe fn play(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.play)(windows_core::Interface::as_raw(self)).ok() @@ -2138,9 +2138,9 @@ impl IWMPControls3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetcurrentItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetcurrentItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } pub unsafe fn currentMarker(&self, plmarker: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.currentMarker)(windows_core::Interface::as_raw(self), plmarker).ok() @@ -2151,9 +2151,9 @@ impl IWMPControls3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn playItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.playItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.playItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } pub unsafe fn step(&self, lstep: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.step)(windows_core::Interface::as_raw(self), lstep).ok() @@ -2187,9 +2187,9 @@ impl IWMPControls3 { } pub unsafe fn SetcurrentPositionTimecode(&self, bstrtimecode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcurrentPositionTimecode)(windows_core::Interface::as_raw(self), bstrtimecode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcurrentPositionTimecode)(windows_core::Interface::as_raw(self), bstrtimecode.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2212,10 +2212,10 @@ windows_core::imp::interface_hierarchy!(IWMPConvert, windows_core::IUnknown); impl IWMPConvert { pub unsafe fn ConvertFile(&self, bstrinputfile: P0, bstrdestinationfolder: P1, pbstroutputfile: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertFile)(windows_core::Interface::as_raw(self), bstrinputfile.into_param().abi(), bstrdestinationfolder.into_param().abi(), core::mem::transmute(pbstroutputfile)).ok() + (windows_core::Interface::vtable(self).ConvertFile)(windows_core::Interface::as_raw(self), bstrinputfile.param().abi(), bstrdestinationfolder.param().abi(), core::mem::transmute(pbstroutputfile)).ok() } pub unsafe fn GetErrorURL(&self, pbstrurl: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetErrorURL)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrurl)).ok() @@ -2241,9 +2241,9 @@ impl IWMPCore { } pub unsafe fn SetURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn openState(&self, pwmpos: *mut WMPOpenState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).openState)(windows_core::Interface::as_raw(self), pwmpos).ok() @@ -2269,9 +2269,9 @@ impl IWMPCore { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn mediaCollection(&self) -> windows_core::Result { @@ -2288,9 +2288,9 @@ impl IWMPCore { } pub unsafe fn launchURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).launchURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).launchURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn network(&self) -> windows_core::Result { @@ -2305,9 +2305,9 @@ impl IWMPCore { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentPlaylist(&self, ppl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn cdromCollection(&self) -> windows_core::Result { @@ -2407,9 +2407,9 @@ impl IWMPCore2 { } pub unsafe fn SetURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn openState(&self, pwmpos: *mut WMPOpenState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.openState)(windows_core::Interface::as_raw(self), pwmpos).ok() @@ -2435,9 +2435,9 @@ impl IWMPCore2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn mediaCollection(&self) -> windows_core::Result { @@ -2454,9 +2454,9 @@ impl IWMPCore2 { } pub unsafe fn launchURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn network(&self) -> windows_core::Result { @@ -2471,9 +2471,9 @@ impl IWMPCore2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentPlaylist(&self, ppl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn cdromCollection(&self) -> windows_core::Result { @@ -2525,9 +2525,9 @@ impl IWMPCore3 { } pub unsafe fn SetURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn openState(&self, pwmpos: *mut WMPOpenState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.openState)(windows_core::Interface::as_raw(self), pwmpos).ok() @@ -2553,9 +2553,9 @@ impl IWMPCore3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn mediaCollection(&self) -> windows_core::Result { @@ -2572,9 +2572,9 @@ impl IWMPCore3 { } pub unsafe fn launchURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn network(&self) -> windows_core::Result { @@ -2589,9 +2589,9 @@ impl IWMPCore3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentPlaylist(&self, ppl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn cdromCollection(&self) -> windows_core::Result { @@ -2622,19 +2622,19 @@ impl IWMPCore3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn newPlaylist(&self, bstrname: P0, bstrurl: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).newPlaylist)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).newPlaylist)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn newMedia(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).newMedia)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).newMedia)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2658,9 +2658,9 @@ windows_core::imp::interface_hierarchy!(IWMPDVD, windows_core::IUnknown, super:: impl IWMPDVD { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), pisavailable).ok() + (windows_core::Interface::vtable(self).get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.param().abi(), pisavailable).ok() } pub unsafe fn domain(&self, strdomain: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).domain)(windows_core::Interface::as_raw(self), core::mem::transmute(strdomain)).ok() @@ -2709,11 +2709,11 @@ impl IWMPDownloadCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn startDownload(&self, bstrsourceurl: P0, bstrtype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).startDownload)(windows_core::Interface::as_raw(self), bstrsourceurl.into_param().abi(), bstrtype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).startDownload)(windows_core::Interface::as_raw(self), bstrsourceurl.param().abi(), bstrtype.param().abi(), &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), litem).ok() @@ -2815,9 +2815,9 @@ impl IWMPDownloadItem2 { } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2862,15 +2862,15 @@ impl IWMPEffects { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Render(&self, plevels: *mut TimedLevel, hdc: P0, prc: *mut super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), plevels, hdc.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), plevels, hdc.param().abi(), prc).ok() } pub unsafe fn MediaInfo(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaInfo)(windows_core::Interface::as_raw(self), lchannelcount, lsamplerate, bstrtitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MediaInfo)(windows_core::Interface::as_raw(self), lchannelcount, lsamplerate, bstrtitle.param().abi()).ok() } pub unsafe fn GetCapabilities(&self, pdwcapabilities: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), pdwcapabilities).ok() @@ -2892,15 +2892,15 @@ impl IWMPEffects { } pub unsafe fn DisplayPropertyPage(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } pub unsafe fn GoFullscreen(&self, ffullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GoFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GoFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.param().abi()).ok() } pub unsafe fn RenderFullScreen(&self, plevels: *mut TimedLevel) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RenderFullScreen)(windows_core::Interface::as_raw(self), plevels).ok() @@ -2930,15 +2930,15 @@ impl IWMPEffects2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Render(&self, plevels: *mut TimedLevel, hdc: P0, prc: *mut super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Render)(windows_core::Interface::as_raw(self), plevels, hdc.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).base__.Render)(windows_core::Interface::as_raw(self), plevels, hdc.param().abi(), prc).ok() } pub unsafe fn MediaInfo(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaInfo)(windows_core::Interface::as_raw(self), lchannelcount, lsamplerate, bstrtitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.MediaInfo)(windows_core::Interface::as_raw(self), lchannelcount, lsamplerate, bstrtitle.param().abi()).ok() } pub unsafe fn GetCapabilities(&self, pdwcapabilities: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetCapabilities)(windows_core::Interface::as_raw(self), pdwcapabilities).ok() @@ -2960,15 +2960,15 @@ impl IWMPEffects2 { } pub unsafe fn DisplayPropertyPage(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } pub unsafe fn GoFullscreen(&self, ffullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GoFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GoFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.param().abi()).ok() } pub unsafe fn RenderFullScreen(&self, plevels: *mut TimedLevel) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RenderFullScreen)(windows_core::Interface::as_raw(self), plevels).ok() @@ -2976,15 +2976,15 @@ impl IWMPEffects2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCore(&self, pplayer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCore)(windows_core::Interface::as_raw(self), pplayer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCore)(windows_core::Interface::as_raw(self), pplayer.param().abi()).ok() } pub unsafe fn Create(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -2992,22 +2992,22 @@ impl IWMPEffects2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NotifyNewMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyNewMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyNewMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } pub unsafe fn OnWindowMessage(&self, msg: u32, wparam: P0, lparam: P1, plresultparam: *mut super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), plresultparam).ok() + (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam.param().abi(), lparam.param().abi(), plresultparam).ok() } pub unsafe fn RenderWindowed(&self, pdata: *mut TimedLevel, frequiredrender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderWindowed)(windows_core::Interface::as_raw(self), pdata, frequiredrender.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenderWindowed)(windows_core::Interface::as_raw(self), pdata, frequiredrender.param().abi()).ok() } } #[repr(C)] @@ -3139,10 +3139,10 @@ impl IWMPEvents { } pub unsafe fn ScriptCommand(&self, sctype: P0, param: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ScriptCommand)(windows_core::Interface::as_raw(self), sctype.into_param().abi(), param.into_param().abi()) + (windows_core::Interface::vtable(self).ScriptCommand)(windows_core::Interface::as_raw(self), sctype.param().abi(), param.param().abi()) } pub unsafe fn NewStream(&self) { (windows_core::Interface::vtable(self).NewStream)(windows_core::Interface::as_raw(self)) @@ -3152,18 +3152,18 @@ impl IWMPEvents { } pub unsafe fn Buffering(&self, start: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Buffering)(windows_core::Interface::as_raw(self), start.into_param().abi()) + (windows_core::Interface::vtable(self).Buffering)(windows_core::Interface::as_raw(self), start.param().abi()) } 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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.into_param().abi()) + (windows_core::Interface::vtable(self).Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.param().abi()) } pub unsafe fn EndOfStream(&self, result: i32) { (windows_core::Interface::vtable(self).EndOfStream)(windows_core::Interface::as_raw(self), result) @@ -3183,112 +3183,112 @@ impl IWMPEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PlaylistChange(&self, playlist: P0, change: WMPPlaylistChangeEventType) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaylistChange)(windows_core::Interface::as_raw(self), playlist.into_param().abi(), 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), change) } pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaChange(&self, item: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaChange)(windows_core::Interface::as_raw(self), item.into_param().abi()) + (windows_core::Interface::vtable(self).MediaChange)(windows_core::Interface::as_raw(self), item.param().abi()) } pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CurrentItemChange(&self, pdispmedia: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } pub unsafe fn MediaCollectionChange(&self) { (windows_core::Interface::vtable(self).MediaCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstroldattribval.into_param().abi(), bstrnewattribval.into_param().abi()) + (windows_core::Interface::vtable(self).MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstroldattribval.param().abi(), bstrnewattribval.param().abi()) } pub unsafe fn PlaylistCollectionChange(&self) { (windows_core::Interface::vtable(self).PlaylistCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: P0, varfisdeleted: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi(), varfisdeleted.into_param().abi()) + (windows_core::Interface::vtable(self).PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi(), varfisdeleted.param().abi()) } pub unsafe fn ModeChange(&self, modename: P0, newvalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ModeChange)(windows_core::Interface::as_raw(self), modename.into_param().abi(), newvalue.into_param().abi()) + (windows_core::Interface::vtable(self).ModeChange)(windows_core::Interface::as_raw(self), modename.param().abi(), newvalue.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaError(&self, pmediaobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaError)(windows_core::Interface::as_raw(self), pmediaobject.into_param().abi()) + (windows_core::Interface::vtable(self).MediaError)(windows_core::Interface::as_raw(self), pmediaobject.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenPlaylistSwitch(&self, pitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.into_param().abi()) + (windows_core::Interface::vtable(self).OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.param().abi()) } pub unsafe fn DomainChange(&self, strdomain: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DomainChange)(windows_core::Interface::as_raw(self), strdomain.into_param().abi()) + (windows_core::Interface::vtable(self).DomainChange)(windows_core::Interface::as_raw(self), strdomain.param().abi()) } pub unsafe fn SwitchedToPlayerApplication(&self) { (windows_core::Interface::vtable(self).SwitchedToPlayerApplication)(windows_core::Interface::as_raw(self)) @@ -3408,10 +3408,10 @@ impl IWMPEvents2 { } pub unsafe fn ScriptCommand(&self, sctype: P0, param: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ScriptCommand)(windows_core::Interface::as_raw(self), sctype.into_param().abi(), param.into_param().abi()) + (windows_core::Interface::vtable(self).base__.ScriptCommand)(windows_core::Interface::as_raw(self), sctype.param().abi(), param.param().abi()) } pub unsafe fn NewStream(&self) { (windows_core::Interface::vtable(self).base__.NewStream)(windows_core::Interface::as_raw(self)) @@ -3421,18 +3421,18 @@ impl IWMPEvents2 { } pub unsafe fn Buffering(&self, start: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Buffering)(windows_core::Interface::as_raw(self), start.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Buffering)(windows_core::Interface::as_raw(self), start.param().abi()) } pub unsafe fn Error(&self) { (windows_core::Interface::vtable(self).base__.Error)(windows_core::Interface::as_raw(self)) } pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.param().abi()) } pub unsafe fn EndOfStream(&self, result: i32) { (windows_core::Interface::vtable(self).base__.EndOfStream)(windows_core::Interface::as_raw(self), result) @@ -3452,112 +3452,112 @@ impl IWMPEvents2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PlaylistChange(&self, playlist: P0, change: WMPPlaylistChangeEventType) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlaylistChange)(windows_core::Interface::as_raw(self), playlist.into_param().abi(), change) + (windows_core::Interface::vtable(self).base__.PlaylistChange)(windows_core::Interface::as_raw(self), playlist.param().abi(), change) } pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { (windows_core::Interface::vtable(self).base__.CurrentPlaylistChange)(windows_core::Interface::as_raw(self), change) } pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaChange(&self, item: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaChange)(windows_core::Interface::as_raw(self), item.into_param().abi()) + (windows_core::Interface::vtable(self).base__.MediaChange)(windows_core::Interface::as_raw(self), item.param().abi()) } pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CurrentItemChange(&self, pdispmedia: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } pub unsafe fn MediaCollectionChange(&self) { (windows_core::Interface::vtable(self).base__.MediaCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstroldattribval.into_param().abi(), bstrnewattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstroldattribval.param().abi(), bstrnewattribval.param().abi()) } pub unsafe fn PlaylistCollectionChange(&self) { (windows_core::Interface::vtable(self).base__.PlaylistCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: P0, varfisdeleted: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi(), varfisdeleted.into_param().abi()) + (windows_core::Interface::vtable(self).base__.PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi(), varfisdeleted.param().abi()) } pub unsafe fn ModeChange(&self, modename: P0, newvalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ModeChange)(windows_core::Interface::as_raw(self), modename.into_param().abi(), newvalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.ModeChange)(windows_core::Interface::as_raw(self), modename.param().abi(), newvalue.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaError(&self, pmediaobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaError)(windows_core::Interface::as_raw(self), pmediaobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.MediaError)(windows_core::Interface::as_raw(self), pmediaobject.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenPlaylistSwitch(&self, pitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.into_param().abi()) + (windows_core::Interface::vtable(self).base__.OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.param().abi()) } pub unsafe fn DomainChange(&self, strdomain: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DomainChange)(windows_core::Interface::as_raw(self), strdomain.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DomainChange)(windows_core::Interface::as_raw(self), strdomain.param().abi()) } pub unsafe fn SwitchedToPlayerApplication(&self) { (windows_core::Interface::vtable(self).base__.SwitchedToPlayerApplication)(windows_core::Interface::as_raw(self)) @@ -3597,41 +3597,41 @@ impl IWMPEvents2 { } pub unsafe fn DeviceConnect(&self, pdevice: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceConnect)(windows_core::Interface::as_raw(self), pdevice.into_param().abi()) + (windows_core::Interface::vtable(self).DeviceConnect)(windows_core::Interface::as_raw(self), pdevice.param().abi()) } pub unsafe fn DeviceDisconnect(&self, pdevice: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceDisconnect)(windows_core::Interface::as_raw(self), pdevice.into_param().abi()) + (windows_core::Interface::vtable(self).DeviceDisconnect)(windows_core::Interface::as_raw(self), pdevice.param().abi()) } pub unsafe fn DeviceStatusChange(&self, pdevice: P0, newstatus: WMPDeviceStatus) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceStatusChange)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceSyncStateChange)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceSyncError)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pmedia.into_param().abi()) + (windows_core::Interface::vtable(self).DeviceSyncError)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pmedia.param().abi()) } pub unsafe fn CreatePartnershipComplete(&self, pdevice: P0, hrresult: windows_core::HRESULT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hrresult) + (windows_core::Interface::vtable(self).CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hrresult) } } #[repr(C)] @@ -3664,10 +3664,10 @@ impl IWMPEvents3 { } pub unsafe fn ScriptCommand(&self, sctype: P0, param: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ScriptCommand)(windows_core::Interface::as_raw(self), sctype.into_param().abi(), param.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.ScriptCommand)(windows_core::Interface::as_raw(self), sctype.param().abi(), param.param().abi()) } pub unsafe fn NewStream(&self) { (windows_core::Interface::vtable(self).base__.base__.NewStream)(windows_core::Interface::as_raw(self)) @@ -3677,18 +3677,18 @@ impl IWMPEvents3 { } pub unsafe fn Buffering(&self, start: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Buffering)(windows_core::Interface::as_raw(self), start.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.Buffering)(windows_core::Interface::as_raw(self), start.param().abi()) } pub unsafe fn Error(&self) { (windows_core::Interface::vtable(self).base__.base__.Error)(windows_core::Interface::as_raw(self)) } pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.param().abi()) } pub unsafe fn EndOfStream(&self, result: i32) { (windows_core::Interface::vtable(self).base__.base__.EndOfStream)(windows_core::Interface::as_raw(self), result) @@ -3708,112 +3708,112 @@ impl IWMPEvents3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PlaylistChange(&self, playlist: P0, change: WMPPlaylistChangeEventType) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PlaylistChange)(windows_core::Interface::as_raw(self), playlist.into_param().abi(), change) + (windows_core::Interface::vtable(self).base__.base__.PlaylistChange)(windows_core::Interface::as_raw(self), playlist.param().abi(), change) } pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { (windows_core::Interface::vtable(self).base__.base__.CurrentPlaylistChange)(windows_core::Interface::as_raw(self), change) } pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaChange(&self, item: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MediaChange)(windows_core::Interface::as_raw(self), item.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.MediaChange)(windows_core::Interface::as_raw(self), item.param().abi()) } pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CurrentItemChange(&self, pdispmedia: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } pub unsafe fn MediaCollectionChange(&self) { (windows_core::Interface::vtable(self).base__.base__.MediaCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstroldattribval.into_param().abi(), bstrnewattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstroldattribval.param().abi(), bstrnewattribval.param().abi()) } pub unsafe fn PlaylistCollectionChange(&self) { (windows_core::Interface::vtable(self).base__.base__.PlaylistCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: P0, varfisdeleted: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi(), varfisdeleted.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi(), varfisdeleted.param().abi()) } pub unsafe fn ModeChange(&self, modename: P0, newvalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ModeChange)(windows_core::Interface::as_raw(self), modename.into_param().abi(), newvalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.ModeChange)(windows_core::Interface::as_raw(self), modename.param().abi(), newvalue.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaError(&self, pmediaobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MediaError)(windows_core::Interface::as_raw(self), pmediaobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.MediaError)(windows_core::Interface::as_raw(self), pmediaobject.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenPlaylistSwitch(&self, pitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.param().abi()) } pub unsafe fn DomainChange(&self, strdomain: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DomainChange)(windows_core::Interface::as_raw(self), strdomain.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DomainChange)(windows_core::Interface::as_raw(self), strdomain.param().abi()) } pub unsafe fn SwitchedToPlayerApplication(&self) { (windows_core::Interface::vtable(self).base__.base__.SwitchedToPlayerApplication)(windows_core::Interface::as_raw(self)) @@ -3853,87 +3853,87 @@ impl IWMPEvents3 { } pub unsafe fn DeviceConnect(&self, pdevice: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeviceConnect)(windows_core::Interface::as_raw(self), pdevice.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DeviceConnect)(windows_core::Interface::as_raw(self), pdevice.param().abi()) } pub unsafe fn DeviceDisconnect(&self, pdevice: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeviceDisconnect)(windows_core::Interface::as_raw(self), pdevice.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DeviceDisconnect)(windows_core::Interface::as_raw(self), pdevice.param().abi()) } pub unsafe fn DeviceStatusChange(&self, pdevice: P0, newstatus: WMPDeviceStatus) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeviceStatusChange)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), newstatus) + (windows_core::Interface::vtable(self).base__.DeviceStatusChange)(windows_core::Interface::as_raw(self), pdevice.param().abi(), newstatus) } pub unsafe fn DeviceSyncStateChange(&self, pdevice: P0, newstate: WMPSyncState) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeviceSyncStateChange)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), newstate) + (windows_core::Interface::vtable(self).base__.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) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeviceSyncError)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.DeviceSyncError)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pmedia.param().abi()) } pub unsafe fn CreatePartnershipComplete(&self, pdevice: P0, hrresult: windows_core::HRESULT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hrresult) + (windows_core::Interface::vtable(self).base__.CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hrresult) } pub unsafe fn CdromRipStateChange(&self, pcdromrip: P0, wmprs: WMPRipState) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromRipStateChange)(windows_core::Interface::as_raw(self), pcdromrip.into_param().abi(), 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) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromRipMediaError)(windows_core::Interface::as_raw(self), pcdromrip.into_param().abi(), pmedia.into_param().abi()) + (windows_core::Interface::vtable(self).CdromRipMediaError)(windows_core::Interface::as_raw(self), pcdromrip.param().abi(), pmedia.param().abi()) } pub unsafe fn CdromBurnStateChange(&self, pcdromburn: P0, wmpbs: WMPBurnState) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromBurnStateChange)(windows_core::Interface::as_raw(self), pcdromburn.into_param().abi(), 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) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromBurnMediaError)(windows_core::Interface::as_raw(self), pcdromburn.into_param().abi(), pmedia.into_param().abi()) + (windows_core::Interface::vtable(self).CdromBurnMediaError)(windows_core::Interface::as_raw(self), pcdromburn.param().abi(), pmedia.param().abi()) } pub unsafe fn CdromBurnError(&self, pcdromburn: P0, hrerror: windows_core::HRESULT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CdromBurnError)(windows_core::Interface::as_raw(self), pcdromburn.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LibraryConnect)(windows_core::Interface::as_raw(self), plibrary.into_param().abi()) + (windows_core::Interface::vtable(self).LibraryConnect)(windows_core::Interface::as_raw(self), plibrary.param().abi()) } pub unsafe fn LibraryDisconnect(&self, plibrary: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LibraryDisconnect)(windows_core::Interface::as_raw(self), plibrary.into_param().abi()) + (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), wmpfss) @@ -3941,23 +3941,23 @@ impl IWMPEvents3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StringCollectionChange(&self, pdispstringcollection: P0, change: WMPStringCollectionChangeEventType, lcollectionindex: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StringCollectionChange)(windows_core::Interface::as_raw(self), pdispstringcollection.into_param().abi(), change, 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) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaCollectionMediaAdded)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).MediaCollectionMediaAdded)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaCollectionMediaRemoved(&self, pdispmedia: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MediaCollectionMediaRemoved)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).MediaCollectionMediaRemoved)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } } #[repr(C)] @@ -4007,10 +4007,10 @@ impl IWMPEvents4 { } pub unsafe fn ScriptCommand(&self, sctype: P0, param: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ScriptCommand)(windows_core::Interface::as_raw(self), sctype.into_param().abi(), param.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.ScriptCommand)(windows_core::Interface::as_raw(self), sctype.param().abi(), param.param().abi()) } pub unsafe fn NewStream(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.NewStream)(windows_core::Interface::as_raw(self)) @@ -4020,18 +4020,18 @@ impl IWMPEvents4 { } pub unsafe fn Buffering(&self, start: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Buffering)(windows_core::Interface::as_raw(self), start.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.Buffering)(windows_core::Interface::as_raw(self), start.param().abi()) } pub unsafe fn Error(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.Error)(windows_core::Interface::as_raw(self)) } pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.Warning)(windows_core::Interface::as_raw(self), warningtype, param, description.param().abi()) } pub unsafe fn EndOfStream(&self, result: i32) { (windows_core::Interface::vtable(self).base__.base__.base__.EndOfStream)(windows_core::Interface::as_raw(self), result) @@ -4051,112 +4051,112 @@ impl IWMPEvents4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PlaylistChange(&self, playlist: P0, change: WMPPlaylistChangeEventType) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistChange)(windows_core::Interface::as_raw(self), playlist.into_param().abi(), change) + (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistChange)(windows_core::Interface::as_raw(self), playlist.param().abi(), change) } pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { (windows_core::Interface::vtable(self).base__.base__.base__.CurrentPlaylistChange)(windows_core::Interface::as_raw(self), change) } pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.CurrentPlaylistItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaChange(&self, item: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.MediaChange)(windows_core::Interface::as_raw(self), item.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.MediaChange)(windows_core::Interface::as_raw(self), item.param().abi()) } pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.CurrentMediaItemAvailable)(windows_core::Interface::as_raw(self), bstritemname.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CurrentItemChange(&self, pdispmedia: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.CurrentItemChange)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } pub unsafe fn MediaCollectionChange(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.MediaCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringAdded)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: P0, bstrattribval: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstrattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringRemoved)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstrattribval.param().abi()) } pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.into_param().abi(), bstroldattribval.into_param().abi(), bstrnewattribval.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringChanged)(windows_core::Interface::as_raw(self), bstrattribname.param().abi(), bstroldattribval.param().abi(), bstrnewattribval.param().abi()) } pub unsafe fn PlaylistCollectionChange(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionChange)(windows_core::Interface::as_raw(self)) } pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistAdded)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistRemoved)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi()) } pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: P0, varfisdeleted: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.into_param().abi(), varfisdeleted.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(windows_core::Interface::as_raw(self), bstrplaylistname.param().abi(), varfisdeleted.param().abi()) } pub unsafe fn ModeChange(&self, modename: P0, newvalue: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ModeChange)(windows_core::Interface::as_raw(self), modename.into_param().abi(), newvalue.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.ModeChange)(windows_core::Interface::as_raw(self), modename.param().abi(), newvalue.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaError(&self, pmediaobject: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.MediaError)(windows_core::Interface::as_raw(self), pmediaobject.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.MediaError)(windows_core::Interface::as_raw(self), pmediaobject.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenPlaylistSwitch(&self, pitem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.OpenPlaylistSwitch)(windows_core::Interface::as_raw(self), pitem.param().abi()) } pub unsafe fn DomainChange(&self, strdomain: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DomainChange)(windows_core::Interface::as_raw(self), strdomain.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.base__.DomainChange)(windows_core::Interface::as_raw(self), strdomain.param().abi()) } pub unsafe fn SwitchedToPlayerApplication(&self) { (windows_core::Interface::vtable(self).base__.base__.base__.SwitchedToPlayerApplication)(windows_core::Interface::as_raw(self)) @@ -4196,87 +4196,87 @@ impl IWMPEvents4 { } pub unsafe fn DeviceConnect(&self, pdevice: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeviceConnect)(windows_core::Interface::as_raw(self), pdevice.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DeviceConnect)(windows_core::Interface::as_raw(self), pdevice.param().abi()) } pub unsafe fn DeviceDisconnect(&self, pdevice: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeviceDisconnect)(windows_core::Interface::as_raw(self), pdevice.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DeviceDisconnect)(windows_core::Interface::as_raw(self), pdevice.param().abi()) } pub unsafe fn DeviceStatusChange(&self, pdevice: P0, newstatus: WMPDeviceStatus) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeviceStatusChange)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), newstatus) + (windows_core::Interface::vtable(self).base__.base__.DeviceStatusChange)(windows_core::Interface::as_raw(self), pdevice.param().abi(), newstatus) } pub unsafe fn DeviceSyncStateChange(&self, pdevice: P0, newstate: WMPSyncState) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeviceSyncStateChange)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), newstate) + (windows_core::Interface::vtable(self).base__.base__.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) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeviceSyncError)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.DeviceSyncError)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pmedia.param().abi()) } pub unsafe fn CreatePartnershipComplete(&self, pdevice: P0, hrresult: windows_core::HRESULT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hrresult) + (windows_core::Interface::vtable(self).base__.base__.CreatePartnershipComplete)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hrresult) } pub unsafe fn CdromRipStateChange(&self, pcdromrip: P0, wmprs: WMPRipState) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CdromRipStateChange)(windows_core::Interface::as_raw(self), pcdromrip.into_param().abi(), wmprs) + (windows_core::Interface::vtable(self).base__.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) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CdromRipMediaError)(windows_core::Interface::as_raw(self), pcdromrip.into_param().abi(), pmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CdromRipMediaError)(windows_core::Interface::as_raw(self), pcdromrip.param().abi(), pmedia.param().abi()) } pub unsafe fn CdromBurnStateChange(&self, pcdromburn: P0, wmpbs: WMPBurnState) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CdromBurnStateChange)(windows_core::Interface::as_raw(self), pcdromburn.into_param().abi(), wmpbs) + (windows_core::Interface::vtable(self).base__.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) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CdromBurnMediaError)(windows_core::Interface::as_raw(self), pcdromburn.into_param().abi(), pmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.CdromBurnMediaError)(windows_core::Interface::as_raw(self), pcdromburn.param().abi(), pmedia.param().abi()) } pub unsafe fn CdromBurnError(&self, pcdromburn: P0, hrerror: windows_core::HRESULT) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CdromBurnError)(windows_core::Interface::as_raw(self), pcdromburn.into_param().abi(), hrerror) + (windows_core::Interface::vtable(self).base__.CdromBurnError)(windows_core::Interface::as_raw(self), pcdromburn.param().abi(), hrerror) } pub unsafe fn LibraryConnect(&self, plibrary: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LibraryConnect)(windows_core::Interface::as_raw(self), plibrary.into_param().abi()) + (windows_core::Interface::vtable(self).base__.LibraryConnect)(windows_core::Interface::as_raw(self), plibrary.param().abi()) } pub unsafe fn LibraryDisconnect(&self, plibrary: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LibraryDisconnect)(windows_core::Interface::as_raw(self), plibrary.into_param().abi()) + (windows_core::Interface::vtable(self).base__.LibraryDisconnect)(windows_core::Interface::as_raw(self), plibrary.param().abi()) } pub unsafe fn FolderScanStateChange(&self, wmpfss: WMPFolderScanState) { (windows_core::Interface::vtable(self).base__.FolderScanStateChange)(windows_core::Interface::as_raw(self), wmpfss) @@ -4284,29 +4284,29 @@ impl IWMPEvents4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StringCollectionChange(&self, pdispstringcollection: P0, change: WMPStringCollectionChangeEventType, lcollectionindex: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StringCollectionChange)(windows_core::Interface::as_raw(self), pdispstringcollection.into_param().abi(), change, lcollectionindex) + (windows_core::Interface::vtable(self).base__.StringCollectionChange)(windows_core::Interface::as_raw(self), pdispstringcollection.param().abi(), change, lcollectionindex) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaCollectionMediaAdded(&self, pdispmedia: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaCollectionMediaAdded)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.MediaCollectionMediaAdded)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MediaCollectionMediaRemoved(&self, pdispmedia: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MediaCollectionMediaRemoved)(windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) + (windows_core::Interface::vtable(self).base__.MediaCollectionMediaRemoved)(windows_core::Interface::as_raw(self), pdispmedia.param().abi()) } pub unsafe fn DeviceEstimation(&self, pdevice: P0, hrresult: windows_core::HRESULT, qwestimatedusedspace: i64, qwestimatedspace: i64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceEstimation)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hrresult, qwestimatedusedspace, qwestimatedspace) + (windows_core::Interface::vtable(self).DeviceEstimation)(windows_core::Interface::as_raw(self), pdevice.param().abi(), hrresult, qwestimatedusedspace, qwestimatedspace) } } #[repr(C)] @@ -4325,9 +4325,9 @@ impl IWMPFolderMonitorServices { } pub unsafe fn add(&self, bstrfolder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).add)(windows_core::Interface::as_raw(self), bstrfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).add)(windows_core::Interface::as_raw(self), bstrfolder.param().abi()).ok() } pub unsafe fn remove(&self, lindex: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), lindex).ok() @@ -4374,16 +4374,16 @@ windows_core::imp::interface_hierarchy!(IWMPGraphCreation, windows_core::IUnknow impl IWMPGraphCreation { pub unsafe fn GraphCreationPreRender(&self, pfiltergraph: P0, preserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GraphCreationPreRender)(windows_core::Interface::as_raw(self), pfiltergraph.into_param().abi(), preserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GraphCreationPreRender)(windows_core::Interface::as_raw(self), pfiltergraph.param().abi(), preserved.param().abi()).ok() } pub unsafe fn GraphCreationPostRender(&self, pfiltergraph: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GraphCreationPostRender)(windows_core::Interface::as_raw(self), pfiltergraph.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GraphCreationPostRender)(windows_core::Interface::as_raw(self), pfiltergraph.param().abi()).ok() } pub unsafe fn GetGraphCreationFlags(&self, pdwflags: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGraphCreationFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -4412,9 +4412,9 @@ impl IWMPLibrary { } pub unsafe fn isIdentical(&self, piwmplibrary: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isIdentical)(windows_core::Interface::as_raw(self), piwmplibrary.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).isIdentical)(windows_core::Interface::as_raw(self), piwmplibrary.param().abi(), pvbool).ok() } } #[repr(C)] @@ -4444,15 +4444,15 @@ impl IWMPLibrary2 { } pub unsafe fn isIdentical(&self, piwmplibrary: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.isIdentical)(windows_core::Interface::as_raw(self), piwmplibrary.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).base__.isIdentical)(windows_core::Interface::as_raw(self), piwmplibrary.param().abi(), pvbool).ok() } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } } #[repr(C)] @@ -4506,9 +4506,9 @@ impl IWMPMedia { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_isIdentical(&self, piwmpmedia: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_isIdentical)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).get_isIdentical)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi(), pvbool).ok() } pub unsafe fn sourceURL(&self, pbstrsourceurl: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).sourceURL)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsourceurl)).ok() @@ -4518,9 +4518,9 @@ impl IWMPMedia { } pub unsafe fn Setname(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setname)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setname)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn imageSourceWidth(&self, pwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).imageSourceWidth)(windows_core::Interface::as_raw(self), pwidth).ok() @@ -4551,16 +4551,16 @@ impl IWMPMedia { } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn setItemInfo(&self, bstritemname: P0, bstrval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), bstrval.param().abi()).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), latom, core::mem::transmute(pbstrval)).ok() @@ -4568,15 +4568,15 @@ impl IWMPMedia { #[cfg(feature = "Win32_System_Com")] pub unsafe fn isMemberOf(&self, pplaylist: P0, pvarfismemberof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isMemberOf)(windows_core::Interface::as_raw(self), pplaylist.into_param().abi(), pvarfismemberof).ok() + (windows_core::Interface::vtable(self).isMemberOf)(windows_core::Interface::as_raw(self), pplaylist.param().abi(), pvarfismemberof).ok() } pub unsafe fn isReadOnlyItem(&self, bstritemname: P0, pvarfisreadonly: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isReadOnlyItem)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), pvarfisreadonly).ok() + (windows_core::Interface::vtable(self).isReadOnlyItem)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), pvarfisreadonly).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4617,9 +4617,9 @@ impl IWMPMedia2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_isIdentical(&self, piwmpmedia: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.get_isIdentical)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).base__.get_isIdentical)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi(), pvbool).ok() } pub unsafe fn sourceURL(&self, pbstrsourceurl: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.sourceURL)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsourceurl)).ok() @@ -4629,9 +4629,9 @@ impl IWMPMedia2 { } pub unsafe fn Setname(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setname)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setname)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn imageSourceWidth(&self, pwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.imageSourceWidth)(windows_core::Interface::as_raw(self), pwidth).ok() @@ -4662,16 +4662,16 @@ impl IWMPMedia2 { } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn setItemInfo(&self, bstritemname: P0, bstrval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), bstrval.param().abi()).ok() } pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.getItemInfoByAtom)(windows_core::Interface::as_raw(self), latom, core::mem::transmute(pbstrval)).ok() @@ -4679,15 +4679,15 @@ impl IWMPMedia2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn isMemberOf(&self, pplaylist: P0, pvarfismemberof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.isMemberOf)(windows_core::Interface::as_raw(self), pplaylist.into_param().abi(), pvarfismemberof).ok() + (windows_core::Interface::vtable(self).base__.isMemberOf)(windows_core::Interface::as_raw(self), pplaylist.param().abi(), pvarfismemberof).ok() } pub unsafe fn isReadOnlyItem(&self, bstritemname: P0, pvarfisreadonly: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.isReadOnlyItem)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), pvarfisreadonly).ok() + (windows_core::Interface::vtable(self).base__.isReadOnlyItem)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), pvarfisreadonly).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn error(&self) -> windows_core::Result { @@ -4713,9 +4713,9 @@ impl IWMPMedia3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_isIdentical(&self, piwmpmedia: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.get_isIdentical)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).base__.base__.get_isIdentical)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi(), pvbool).ok() } pub unsafe fn sourceURL(&self, pbstrsourceurl: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.sourceURL)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsourceurl)).ok() @@ -4725,9 +4725,9 @@ impl IWMPMedia3 { } pub unsafe fn Setname(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Setname)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Setname)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn imageSourceWidth(&self, pwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.imageSourceWidth)(windows_core::Interface::as_raw(self), pwidth).ok() @@ -4758,16 +4758,16 @@ impl IWMPMedia3 { } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).base__.base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn setItemInfo(&self, bstritemname: P0, bstrval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), bstrval.param().abi()).ok() } pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.getItemInfoByAtom)(windows_core::Interface::as_raw(self), latom, core::mem::transmute(pbstrval)).ok() @@ -4775,15 +4775,15 @@ impl IWMPMedia3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn isMemberOf(&self, pplaylist: P0, pvarfismemberof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.isMemberOf)(windows_core::Interface::as_raw(self), pplaylist.into_param().abi(), pvarfismemberof).ok() + (windows_core::Interface::vtable(self).base__.base__.isMemberOf)(windows_core::Interface::as_raw(self), pplaylist.param().abi(), pvarfismemberof).ok() } pub unsafe fn isReadOnlyItem(&self, bstritemname: P0, pvarfisreadonly: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.isReadOnlyItem)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), pvarfisreadonly).ok() + (windows_core::Interface::vtable(self).base__.base__.isReadOnlyItem)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), pvarfisreadonly).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn error(&self) -> windows_core::Result { @@ -4792,17 +4792,17 @@ impl IWMPMedia3 { } pub unsafe fn getAttributeCountByType(&self, bstrtype: P0, bstrlanguage: P1, plcount: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).getAttributeCountByType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi(), bstrlanguage.into_param().abi(), plcount).ok() + (windows_core::Interface::vtable(self).getAttributeCountByType)(windows_core::Interface::as_raw(self), bstrtype.param().abi(), bstrlanguage.param().abi(), plcount).ok() } pub unsafe fn getItemInfoByType(&self, bstrtype: P0, bstrlanguage: P1, lindex: i32, pvarvalue: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi(), bstrlanguage.into_param().abi(), lindex, core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), bstrtype.param().abi(), bstrlanguage.param().abi(), lindex, core::mem::transmute(pvarvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4821,10 +4821,10 @@ impl IWMPMediaCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn add(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).add)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).add)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getAll(&self) -> windows_core::Result { @@ -4834,81 +4834,81 @@ impl IWMPMediaCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByName(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByName)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByGenre(&self, bstrgenre: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByGenre)(windows_core::Interface::as_raw(self), bstrgenre.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByGenre)(windows_core::Interface::as_raw(self), bstrgenre.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByAuthor(&self, bstrauthor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByAuthor)(windows_core::Interface::as_raw(self), bstrauthor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByAuthor)(windows_core::Interface::as_raw(self), bstrauthor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByAlbum(&self, bstralbum: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByAlbum)(windows_core::Interface::as_raw(self), bstralbum.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByAlbum)(windows_core::Interface::as_raw(self), bstralbum.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByAttribute(&self, bstrattribute: P0, bstrvalue: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByAttribute)(windows_core::Interface::as_raw(self), bstrattribute.into_param().abi(), bstrvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByAttribute)(windows_core::Interface::as_raw(self), bstrattribute.param().abi(), bstrvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn remove(&self, pitem: P0, varfdeletefile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), varfdeletefile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfdeletefile.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getAttributeStringCollection(&self, bstrattribute: P0, bstrmediatype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getAttributeStringCollection)(windows_core::Interface::as_raw(self), bstrattribute.into_param().abi(), bstrmediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getAttributeStringCollection)(windows_core::Interface::as_raw(self), bstrattribute.param().abi(), bstrmediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getMediaAtom(&self, bstritemname: P0, platom: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getMediaAtom)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), platom).ok() + (windows_core::Interface::vtable(self).getMediaAtom)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), platom).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn setDeleted(&self, pitem: P0, varfisdeleted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), varfisdeleted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfisdeleted.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn isDeleted(&self, pitem: P0, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isDeleted)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), pvarfisdeleted).ok() + (windows_core::Interface::vtable(self).isDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), pvarfisdeleted).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4970,10 +4970,10 @@ impl IWMPMediaCollection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn add(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.add)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.add)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getAll(&self) -> windows_core::Result { @@ -4983,81 +4983,81 @@ impl IWMPMediaCollection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByName(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getByName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getByName)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByGenre(&self, bstrgenre: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getByGenre)(windows_core::Interface::as_raw(self), bstrgenre.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getByGenre)(windows_core::Interface::as_raw(self), bstrgenre.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByAuthor(&self, bstrauthor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getByAuthor)(windows_core::Interface::as_raw(self), bstrauthor.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getByAuthor)(windows_core::Interface::as_raw(self), bstrauthor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByAlbum(&self, bstralbum: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getByAlbum)(windows_core::Interface::as_raw(self), bstralbum.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getByAlbum)(windows_core::Interface::as_raw(self), bstralbum.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByAttribute(&self, bstrattribute: P0, bstrvalue: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getByAttribute)(windows_core::Interface::as_raw(self), bstrattribute.into_param().abi(), bstrvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getByAttribute)(windows_core::Interface::as_raw(self), bstrattribute.param().abi(), bstrvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn remove(&self, pitem: P0, varfdeletefile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.remove)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), varfdeletefile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.remove)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfdeletefile.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getAttributeStringCollection(&self, bstrattribute: P0, bstrmediatype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getAttributeStringCollection)(windows_core::Interface::as_raw(self), bstrattribute.into_param().abi(), bstrmediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getAttributeStringCollection)(windows_core::Interface::as_raw(self), bstrattribute.param().abi(), bstrmediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getMediaAtom(&self, bstritemname: P0, platom: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.getMediaAtom)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), platom).ok() + (windows_core::Interface::vtable(self).base__.getMediaAtom)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), platom).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn setDeleted(&self, pitem: P0, varfisdeleted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setDeleted)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), varfisdeleted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfisdeleted.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn isDeleted(&self, pitem: P0, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.isDeleted)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), pvarfisdeleted).ok() + (windows_core::Interface::vtable(self).base__.isDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), pvarfisdeleted).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn createQuery(&self) -> windows_core::Result { @@ -5067,35 +5067,35 @@ impl IWMPMediaCollection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getPlaylistByQuery(&self, pquery: P0, bstrmediatype: P1, bstrsortattribute: P2, fsortascending: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getPlaylistByQuery)(windows_core::Interface::as_raw(self), pquery.into_param().abi(), bstrmediatype.into_param().abi(), bstrsortattribute.into_param().abi(), fsortascending.into_param().abi(), &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(), bstrmediatype.param().abi(), bstrsortattribute.param().abi(), fsortascending.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getStringCollectionByQuery(&self, bstrattribute: P0, pquery: P1, bstrmediatype: P2, bstrsortattribute: P3, fsortascending: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getStringCollectionByQuery)(windows_core::Interface::as_raw(self), bstrattribute.into_param().abi(), pquery.into_param().abi(), bstrmediatype.into_param().abi(), bstrsortattribute.into_param().abi(), fsortascending.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getStringCollectionByQuery)(windows_core::Interface::as_raw(self), bstrattribute.param().abi(), pquery.param().abi(), bstrmediatype.param().abi(), bstrsortattribute.param().abi(), fsortascending.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByAttributeAndMediaType(&self, bstrattribute: P0, bstrvalue: P1, bstrmediatype: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByAttributeAndMediaType)(windows_core::Interface::as_raw(self), bstrattribute.into_param().abi(), bstrvalue.into_param().abi(), bstrmediatype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByAttributeAndMediaType)(windows_core::Interface::as_raw(self), bstrattribute.param().abi(), bstrvalue.param().abi(), bstrmediatype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5124,11 +5124,11 @@ windows_core::imp::interface_hierarchy!(IWMPMediaPluginRegistrar, windows_core:: impl IWMPMediaPluginRegistrar { pub unsafe fn WMPRegisterPlayerPlugin(&self, pwszfriendlyname: P0, pwszdescription: P1, pwszuninstallstring: P2, dwpriority: u32, guidplugintype: windows_core::GUID, clsid: windows_core::GUID, cmediatypes: u32, pmediatypes: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WMPRegisterPlayerPlugin)(windows_core::Interface::as_raw(self), pwszfriendlyname.into_param().abi(), pwszdescription.into_param().abi(), pwszuninstallstring.into_param().abi(), dwpriority, core::mem::transmute(guidplugintype), core::mem::transmute(clsid), cmediatypes, 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, 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() @@ -5235,66 +5235,66 @@ impl IWMPNetwork { } pub unsafe fn getProxySettings(&self, bstrprotocol: P0, plproxysetting: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getProxySettings)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), plproxysetting).ok() + (windows_core::Interface::vtable(self).getProxySettings)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), plproxysetting).ok() } pub unsafe fn setProxySettings(&self, bstrprotocol: P0, lproxysetting: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setProxySettings)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), lproxysetting).ok() + (windows_core::Interface::vtable(self).setProxySettings)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), lproxysetting).ok() } pub unsafe fn getProxyName(&self, bstrprotocol: P0, pbstrproxyname: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getProxyName)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), core::mem::transmute(pbstrproxyname)).ok() + (windows_core::Interface::vtable(self).getProxyName)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), core::mem::transmute(pbstrproxyname)).ok() } pub unsafe fn setProxyName(&self, bstrprotocol: P0, bstrproxyname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setProxyName)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), bstrproxyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setProxyName)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), bstrproxyname.param().abi()).ok() } pub unsafe fn getProxyPort(&self, bstrprotocol: P0, lproxyport: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getProxyPort)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), lproxyport).ok() + (windows_core::Interface::vtable(self).getProxyPort)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), lproxyport).ok() } pub unsafe fn setProxyPort(&self, bstrprotocol: P0, lproxyport: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setProxyPort)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), lproxyport).ok() + (windows_core::Interface::vtable(self).setProxyPort)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), lproxyport).ok() } pub unsafe fn getProxyExceptionList(&self, bstrprotocol: P0, pbstrexceptionlist: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getProxyExceptionList)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), core::mem::transmute(pbstrexceptionlist)).ok() + (windows_core::Interface::vtable(self).getProxyExceptionList)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), core::mem::transmute(pbstrexceptionlist)).ok() } pub unsafe fn setProxyExceptionList(&self, bstrprotocol: P0, pbstrexceptionlist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setProxyExceptionList)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), pbstrexceptionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setProxyExceptionList)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), pbstrexceptionlist.param().abi()).ok() } pub unsafe fn getProxyBypassForLocal(&self, bstrprotocol: P0, pfbypassforlocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getProxyBypassForLocal)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), pfbypassforlocal).ok() + (windows_core::Interface::vtable(self).getProxyBypassForLocal)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), pfbypassforlocal).ok() } pub unsafe fn setProxyBypassForLocal(&self, bstrprotocol: P0, fbypassforlocal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setProxyBypassForLocal)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), fbypassforlocal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setProxyBypassForLocal)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), fbypassforlocal.param().abi()).ok() } pub unsafe fn maxBandwidth(&self, lmaxbandwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).maxBandwidth)(windows_core::Interface::as_raw(self), lmaxbandwidth).ok() @@ -5359,18 +5359,18 @@ impl IWMPNodeRealEstate { } pub unsafe fn SetWindowless(&self, fwindowless: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWindowless)(windows_core::Interface::as_raw(self), fwindowless.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWindowless)(windows_core::Interface::as_raw(self), fwindowless.param().abi()).ok() } pub unsafe fn GetWindowless(&self, pfwindowless: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWindowless)(windows_core::Interface::as_raw(self), pfwindowless).ok() } pub unsafe fn SetFullScreen(&self, ffullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFullScreen)(windows_core::Interface::as_raw(self), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFullScreen)(windows_core::Interface::as_raw(self), ffullscreen.param().abi()).ok() } pub unsafe fn GetFullScreen(&self, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFullScreen)(windows_core::Interface::as_raw(self), pffullscreen).ok() @@ -5395,9 +5395,9 @@ impl IWMPNodeRealEstateHost { } pub unsafe fn OnFullScreenTransition(&self, ffullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFullScreenTransition)(windows_core::Interface::as_raw(self), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFullScreenTransition)(windows_core::Interface::as_raw(self), ffullscreen.param().abi()).ok() } } #[repr(C)] @@ -5427,10 +5427,10 @@ windows_core::imp::interface_hierarchy!(IWMPNodeWindowedHost, windows_core::IUnk impl IWMPNodeWindowedHost { pub unsafe fn OnWindowMessageFromRenderer(&self, umsg: u32, wparam: P0, lparam: P1, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnWindowMessageFromRenderer)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi(), plret, pfhandled).ok() + (windows_core::Interface::vtable(self).OnWindowMessageFromRenderer)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi(), plret, pfhandled).ok() } } #[repr(C)] @@ -5443,10 +5443,10 @@ windows_core::imp::interface_hierarchy!(IWMPNodeWindowless, windows_core::IUnkno impl IWMPNodeWindowless { pub unsafe fn OnWindowMessage(&self, umsg: u32, wparam: P0, lparam: P1, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnWindowMessage)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi(), plret, pfhandled).ok() + (windows_core::Interface::vtable(self).base__.OnWindowMessage)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi(), plret, pfhandled).ok() } 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), hdc, prcdraw).ok() @@ -5462,9 +5462,9 @@ windows_core::imp::interface_hierarchy!(IWMPNodeWindowlessHost, windows_core::IU impl IWMPNodeWindowlessHost { pub unsafe fn InvalidateRect(&self, prc: *const super::super::Foundation::RECT, ferase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), prc, ferase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), prc, ferase.param().abi()).ok() } } #[repr(C)] @@ -5486,9 +5486,9 @@ impl IWMPPlayer { } pub unsafe fn SetURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn openState(&self, pwmpos: *mut WMPOpenState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.openState)(windows_core::Interface::as_raw(self), pwmpos).ok() @@ -5514,9 +5514,9 @@ impl IWMPPlayer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn mediaCollection(&self) -> windows_core::Result { @@ -5533,9 +5533,9 @@ impl IWMPPlayer { } pub unsafe fn launchURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn network(&self) -> windows_core::Result { @@ -5550,9 +5550,9 @@ impl IWMPPlayer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentPlaylist(&self, ppl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn cdromCollection(&self) -> windows_core::Result { @@ -5580,33 +5580,33 @@ impl IWMPPlayer { } pub unsafe fn Setenabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pbfullscreen).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.param().abi()).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), pbenablecontextmenu).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.param().abi()).ok() } pub unsafe fn SetuiMode(&self, bstrmode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi()).ok() } pub unsafe fn uiMode(&self, pbstrmode: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).uiMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrmode)).ok() @@ -5639,9 +5639,9 @@ impl IWMPPlayer2 { } pub unsafe fn SetURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn openState(&self, pwmpos: *mut WMPOpenState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.openState)(windows_core::Interface::as_raw(self), pwmpos).ok() @@ -5667,9 +5667,9 @@ impl IWMPPlayer2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn mediaCollection(&self) -> windows_core::Result { @@ -5686,9 +5686,9 @@ impl IWMPPlayer2 { } pub unsafe fn launchURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn network(&self) -> windows_core::Result { @@ -5703,9 +5703,9 @@ impl IWMPPlayer2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentPlaylist(&self, ppl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn cdromCollection(&self) -> windows_core::Result { @@ -5733,33 +5733,33 @@ impl IWMPPlayer2 { } pub unsafe fn Setenabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pbfullscreen).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.param().abi()).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), pbenablecontextmenu).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.param().abi()).ok() } pub unsafe fn SetuiMode(&self, bstrmode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi()).ok() } pub unsafe fn uiMode(&self, pbstrmode: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).uiMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrmode)).ok() @@ -5769,18 +5769,18 @@ impl IWMPPlayer2 { } pub unsafe fn SetstretchToFit(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pbenabled).ok() } pub unsafe fn SetwindowlessVideo(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5814,9 +5814,9 @@ impl IWMPPlayer3 { } pub unsafe fn SetURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn openState(&self, pwmpos: *mut WMPOpenState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.openState)(windows_core::Interface::as_raw(self), pwmpos).ok() @@ -5842,9 +5842,9 @@ impl IWMPPlayer3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn mediaCollection(&self) -> windows_core::Result { @@ -5861,9 +5861,9 @@ impl IWMPPlayer3 { } pub unsafe fn launchURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn network(&self) -> windows_core::Result { @@ -5878,9 +5878,9 @@ impl IWMPPlayer3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentPlaylist(&self, ppl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn cdromCollection(&self) -> windows_core::Result { @@ -5913,33 +5913,33 @@ impl IWMPPlayer3 { } pub unsafe fn Setenabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pbfullscreen).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.param().abi()).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), pbenablecontextmenu).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.param().abi()).ok() } pub unsafe fn SetuiMode(&self, bstrmode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi()).ok() } pub unsafe fn uiMode(&self, pbstrmode: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).uiMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrmode)).ok() @@ -5949,18 +5949,18 @@ impl IWMPPlayer3 { } pub unsafe fn SetstretchToFit(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pbenabled).ok() } pub unsafe fn SetwindowlessVideo(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5994,9 +5994,9 @@ impl IWMPPlayer4 { } pub unsafe fn SetURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn openState(&self, pwmpos: *mut WMPOpenState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.openState)(windows_core::Interface::as_raw(self), pwmpos).ok() @@ -6022,9 +6022,9 @@ impl IWMPPlayer4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentMedia(&self, pmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetcurrentMedia)(windows_core::Interface::as_raw(self), pmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn mediaCollection(&self) -> windows_core::Result { @@ -6041,9 +6041,9 @@ impl IWMPPlayer4 { } pub unsafe fn launchURL(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.launchURL)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn network(&self) -> windows_core::Result { @@ -6058,9 +6058,9 @@ impl IWMPPlayer4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetcurrentPlaylist(&self, ppl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetcurrentPlaylist)(windows_core::Interface::as_raw(self), ppl.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn cdromCollection(&self) -> windows_core::Result { @@ -6091,52 +6091,52 @@ impl IWMPPlayer4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn newPlaylist(&self, bstrname: P0, bstrurl: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.newPlaylist)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.newPlaylist)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn newMedia(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.newMedia)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.newMedia)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn enabled(&self, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).enabled)(windows_core::Interface::as_raw(self), pbenabled).ok() } pub unsafe fn Setenabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pbfullscreen).ok() } pub unsafe fn SetfullScreen(&self, bfullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetfullScreen)(windows_core::Interface::as_raw(self), bfullscreen.param().abi()).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), pbenablecontextmenu).ok() } pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetenableContextMenu)(windows_core::Interface::as_raw(self), benablecontextmenu.param().abi()).ok() } pub unsafe fn SetuiMode(&self, bstrmode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetuiMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi()).ok() } pub unsafe fn uiMode(&self, pbstrmode: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).uiMode)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrmode)).ok() @@ -6146,18 +6146,18 @@ impl IWMPPlayer4 { } pub unsafe fn SetstretchToFit(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetstretchToFit)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pbenabled).ok() } pub unsafe fn SetwindowlessVideo(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetwindowlessVideo)(windows_core::Interface::as_raw(self), benabled.param().abi()).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), pvarfisremote).ok() @@ -6169,9 +6169,9 @@ impl IWMPPlayer4 { } pub unsafe fn openPlayer(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).openPlayer)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).openPlayer)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6230,23 +6230,23 @@ windows_core::imp::interface_hierarchy!(IWMPPlayerServices, windows_core::IUnkno impl IWMPPlayerServices { pub unsafe fn activateUIPlugin(&self, bstrplugin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).activateUIPlugin)(windows_core::Interface::as_raw(self), bstrplugin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).activateUIPlugin)(windows_core::Interface::as_raw(self), bstrplugin.param().abi()).ok() } pub unsafe fn setTaskPane(&self, bstrtaskpane: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setTaskPane)(windows_core::Interface::as_raw(self), bstrtaskpane.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setTaskPane)(windows_core::Interface::as_raw(self), bstrtaskpane.param().abi()).ok() } pub unsafe fn setTaskPaneURL(&self, bstrtaskpane: P0, bstrurl: P1, bstrfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).setTaskPaneURL)(windows_core::Interface::as_raw(self), bstrtaskpane.into_param().abi(), bstrurl.into_param().abi(), bstrfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setTaskPaneURL)(windows_core::Interface::as_raw(self), bstrtaskpane.param().abi(), bstrurl.param().abi(), bstrfriendlyname.param().abi()).ok() } } #[repr(C)] @@ -6261,29 +6261,29 @@ windows_core::imp::interface_hierarchy!(IWMPPlayerServices2, windows_core::IUnkn impl IWMPPlayerServices2 { pub unsafe fn activateUIPlugin(&self, bstrplugin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.activateUIPlugin)(windows_core::Interface::as_raw(self), bstrplugin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.activateUIPlugin)(windows_core::Interface::as_raw(self), bstrplugin.param().abi()).ok() } pub unsafe fn setTaskPane(&self, bstrtaskpane: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setTaskPane)(windows_core::Interface::as_raw(self), bstrtaskpane.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setTaskPane)(windows_core::Interface::as_raw(self), bstrtaskpane.param().abi()).ok() } pub unsafe fn setTaskPaneURL(&self, bstrtaskpane: P0, bstrurl: P1, bstrfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setTaskPaneURL)(windows_core::Interface::as_raw(self), bstrtaskpane.into_param().abi(), bstrurl.into_param().abi(), bstrfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setTaskPaneURL)(windows_core::Interface::as_raw(self), bstrtaskpane.param().abi(), bstrurl.param().abi(), bstrfriendlyname.param().abi()).ok() } pub unsafe fn setBackgroundProcessingPriority(&self, bstrpriority: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setBackgroundProcessingPriority)(windows_core::Interface::as_raw(self), bstrpriority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setBackgroundProcessingPriority)(windows_core::Interface::as_raw(self), bstrpriority.param().abi()).ok() } } #[repr(C)] @@ -6305,9 +6305,9 @@ impl IWMPPlaylist { } pub unsafe fn Setname(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setname)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setname)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn attributeCount(&self, plcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).attributeCount)(windows_core::Interface::as_raw(self), plcount).ok() @@ -6322,23 +6322,23 @@ impl IWMPPlaylist { } pub unsafe fn getItemInfo(&self, bstrname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn setItemInfo(&self, bstrname: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setItemInfo)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setItemInfo)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_isIdentical(&self, piwmpplaylist: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_isIdentical)(windows_core::Interface::as_raw(self), piwmpplaylist.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).get_isIdentical)(windows_core::Interface::as_raw(self), piwmpplaylist.param().abi(), pvbool).ok() } pub unsafe fn clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).clear)(windows_core::Interface::as_raw(self)).ok() @@ -6346,23 +6346,23 @@ impl IWMPPlaylist { #[cfg(feature = "Win32_System_Com")] pub unsafe fn insertItem(&self, lindex: i32, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).insertItem)(windows_core::Interface::as_raw(self), lindex, piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).insertItem)(windows_core::Interface::as_raw(self), lindex, piwmpmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn appendItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).appendItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).appendItem)(windows_core::Interface::as_raw(self), piwmpmedia.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn removeItem(&self, piwmpmedia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeItem)(windows_core::Interface::as_raw(self), piwmpmedia.into_param().abi()).ok() + (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), lindexold, lindexnew).ok() @@ -6436,10 +6436,10 @@ impl IWMPPlaylistCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn newPlaylist(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).newPlaylist)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).newPlaylist)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn getAll(&self) -> windows_core::Result { @@ -6449,40 +6449,40 @@ impl IWMPPlaylistCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn getByName(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getByName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getByName)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn remove(&self, pitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), pitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).remove)(windows_core::Interface::as_raw(self), pitem.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn setDeleted(&self, pitem: P0, varfisdeleted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), varfisdeleted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), varfisdeleted.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn isDeleted(&self, pitem: P0, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isDeleted)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), pvarfisdeleted).ok() + (windows_core::Interface::vtable(self).isDeleted)(windows_core::Interface::as_raw(self), pitem.param().abi(), pvarfisdeleted).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn importPlaylist(&self, pitem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).importPlaylist)(windows_core::Interface::as_raw(self), pitem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).importPlaylist)(windows_core::Interface::as_raw(self), pitem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6535,9 +6535,9 @@ impl IWMPPlugin { } pub unsafe fn AdviseWMPServices(&self, pwmpservices: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseWMPServices)(windows_core::Interface::as_raw(self), pwmpservices.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseWMPServices)(windows_core::Interface::as_raw(self), pwmpservices.param().abi()).ok() } pub unsafe fn UnAdviseWMPServices(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnAdviseWMPServices)(windows_core::Interface::as_raw(self)).ok() @@ -6558,9 +6558,9 @@ windows_core::imp::interface_hierarchy!(IWMPPluginEnable, windows_core::IUnknown impl IWMPPluginEnable { pub unsafe fn SetEnable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn GetEnable(&self, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetEnable)(windows_core::Interface::as_raw(self), pfenable).ok() @@ -6578,36 +6578,36 @@ impl IWMPPluginUI { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCore(&self, pcore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCore)(windows_core::Interface::as_raw(self), pcore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCore)(windows_core::Interface::as_raw(self), pcore.param().abi()).ok() } pub unsafe fn Create(&self, hwndparent: P0, phwndwindow: *mut super::super::Foundation::HWND) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), phwndwindow).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayPropertyPage)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } pub unsafe fn GetProperty(&self, pwszname: P0, pvarproperty: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), core::mem::transmute(pvarproperty)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwszname.param().abi(), core::mem::transmute(pvarproperty)).ok() } pub unsafe fn SetProperty(&self, pwszname: P0, pvarproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), core::mem::transmute(pvarproperty)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwszname.param().abi(), core::mem::transmute(pvarproperty)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, lpmsg: *mut super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()> { @@ -6639,11 +6639,11 @@ windows_core::imp::interface_hierarchy!(IWMPQuery, windows_core::IUnknown, super impl IWMPQuery { pub unsafe fn addCondition(&self, bstrattribute: P0, bstroperator: P1, bstrvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).addCondition)(windows_core::Interface::as_raw(self), bstrattribute.into_param().abi(), bstroperator.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addCondition)(windows_core::Interface::as_raw(self), bstrattribute.param().abi(), bstroperator.param().abi(), bstrvalue.param().abi()).ok() } pub unsafe fn beginNextGroup(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).beginNextGroup)(windows_core::Interface::as_raw(self)).ok() @@ -6689,9 +6689,9 @@ windows_core::imp::interface_hierarchy!(IWMPRenderConfig, windows_core::IUnknown impl IWMPRenderConfig { pub unsafe fn SetinProcOnly(&self, finproc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetinProcOnly)(windows_core::Interface::as_raw(self), finproc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetinProcOnly)(windows_core::Interface::as_raw(self), finproc.param().abi()).ok() } pub unsafe fn inProcOnly(&self, pfinproc: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).inProcOnly)(windows_core::Interface::as_raw(self), pfinproc).ok() @@ -6727,54 +6727,54 @@ windows_core::imp::interface_hierarchy!(IWMPSettings, windows_core::IUnknown, su impl IWMPSettings { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), pisavailable).ok() + (windows_core::Interface::vtable(self).get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.param().abi(), pisavailable).ok() } pub unsafe fn autoStart(&self, pfautostart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).autoStart)(windows_core::Interface::as_raw(self), pfautostart).ok() } pub unsafe fn SetautoStart(&self, fautostart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetautoStart)(windows_core::Interface::as_raw(self), fautostart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetautoStart)(windows_core::Interface::as_raw(self), fautostart.param().abi()).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() } pub unsafe fn SetbaseURL(&self, bstrbaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetbaseURL)(windows_core::Interface::as_raw(self), bstrbaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetbaseURL)(windows_core::Interface::as_raw(self), bstrbaseurl.param().abi()).ok() } pub unsafe fn defaultFrame(&self, pbstrdefaultframe: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).defaultFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrdefaultframe)).ok() } pub unsafe fn SetdefaultFrame(&self, bstrdefaultframe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetdefaultFrame)(windows_core::Interface::as_raw(self), bstrdefaultframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetdefaultFrame)(windows_core::Interface::as_raw(self), bstrdefaultframe.param().abi()).ok() } pub unsafe fn invokeURLs(&self, pfinvokeurls: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).invokeURLs)(windows_core::Interface::as_raw(self), pfinvokeurls).ok() } pub unsafe fn SetinvokeURLs(&self, finvokeurls: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetinvokeURLs)(windows_core::Interface::as_raw(self), finvokeurls.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetinvokeURLs)(windows_core::Interface::as_raw(self), finvokeurls.param().abi()).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), pfmute).ok() } pub unsafe fn Setmute(&self, fmute: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setmute)(windows_core::Interface::as_raw(self), fmute.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setmute)(windows_core::Interface::as_raw(self), fmute.param().abi()).ok() } pub unsafe fn playCount(&self, plcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).playCount)(windows_core::Interface::as_raw(self), plcount).ok() @@ -6802,25 +6802,25 @@ impl IWMPSettings { } pub unsafe fn getMode(&self, bstrmode: P0, pvarfmode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi(), pvarfmode).ok() + (windows_core::Interface::vtable(self).getMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi(), pvarfmode).ok() } pub unsafe fn setMode(&self, bstrmode: P0, varfmode: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi(), varfmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi(), varfmode.param().abi()).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), pfenableerrordialogs).ok() } pub unsafe fn SetenableErrorDialogs(&self, fenableerrordialogs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetenableErrorDialogs)(windows_core::Interface::as_raw(self), fenableerrordialogs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetenableErrorDialogs)(windows_core::Interface::as_raw(self), fenableerrordialogs.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6859,54 +6859,54 @@ windows_core::imp::interface_hierarchy!(IWMPSettings2, windows_core::IUnknown, s impl IWMPSettings2 { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.into_param().abi(), pisavailable).ok() + (windows_core::Interface::vtable(self).base__.get_isAvailable)(windows_core::Interface::as_raw(self), bstritem.param().abi(), pisavailable).ok() } pub unsafe fn autoStart(&self, pfautostart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.autoStart)(windows_core::Interface::as_raw(self), pfautostart).ok() } pub unsafe fn SetautoStart(&self, fautostart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetautoStart)(windows_core::Interface::as_raw(self), fautostart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetautoStart)(windows_core::Interface::as_raw(self), fautostart.param().abi()).ok() } pub unsafe fn baseURL(&self, pbstrbaseurl: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.baseURL)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrbaseurl)).ok() } pub unsafe fn SetbaseURL(&self, bstrbaseurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetbaseURL)(windows_core::Interface::as_raw(self), bstrbaseurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetbaseURL)(windows_core::Interface::as_raw(self), bstrbaseurl.param().abi()).ok() } pub unsafe fn defaultFrame(&self, pbstrdefaultframe: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.defaultFrame)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrdefaultframe)).ok() } pub unsafe fn SetdefaultFrame(&self, bstrdefaultframe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdefaultFrame)(windows_core::Interface::as_raw(self), bstrdefaultframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdefaultFrame)(windows_core::Interface::as_raw(self), bstrdefaultframe.param().abi()).ok() } pub unsafe fn invokeURLs(&self, pfinvokeurls: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.invokeURLs)(windows_core::Interface::as_raw(self), pfinvokeurls).ok() } pub unsafe fn SetinvokeURLs(&self, finvokeurls: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetinvokeURLs)(windows_core::Interface::as_raw(self), finvokeurls.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetinvokeURLs)(windows_core::Interface::as_raw(self), finvokeurls.param().abi()).ok() } pub unsafe fn mute(&self, pfmute: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.mute)(windows_core::Interface::as_raw(self), pfmute).ok() } pub unsafe fn Setmute(&self, fmute: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Setmute)(windows_core::Interface::as_raw(self), fmute.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Setmute)(windows_core::Interface::as_raw(self), fmute.param().abi()).ok() } pub unsafe fn playCount(&self, plcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.playCount)(windows_core::Interface::as_raw(self), plcount).ok() @@ -6934,25 +6934,25 @@ impl IWMPSettings2 { } pub unsafe fn getMode(&self, bstrmode: P0, pvarfmode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.getMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi(), pvarfmode).ok() + (windows_core::Interface::vtable(self).base__.getMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi(), pvarfmode).ok() } pub unsafe fn setMode(&self, bstrmode: P0, varfmode: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setMode)(windows_core::Interface::as_raw(self), bstrmode.into_param().abi(), varfmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setMode)(windows_core::Interface::as_raw(self), bstrmode.param().abi(), varfmode.param().abi()).ok() } pub unsafe fn enableErrorDialogs(&self, pfenableerrordialogs: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.enableErrorDialogs)(windows_core::Interface::as_raw(self), pfenableerrordialogs).ok() } pub unsafe fn SetenableErrorDialogs(&self, fenableerrordialogs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetenableErrorDialogs)(windows_core::Interface::as_raw(self), fenableerrordialogs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetenableErrorDialogs)(windows_core::Interface::as_raw(self), fenableerrordialogs.param().abi()).ok() } pub unsafe fn defaultAudioLanguage(&self, pllangid: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).defaultAudioLanguage)(windows_core::Interface::as_raw(self), pllangid).ok() @@ -6962,9 +6962,9 @@ impl IWMPSettings2 { } pub unsafe fn requestMediaAccessRights(&self, bstrdesiredaccess: P0, pvbaccepted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).requestMediaAccessRights)(windows_core::Interface::as_raw(self), bstrdesiredaccess.into_param().abi(), pvbaccepted).ok() + (windows_core::Interface::vtable(self).requestMediaAccessRights)(windows_core::Interface::as_raw(self), bstrdesiredaccess.param().abi(), pvbaccepted).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6980,9 +6980,9 @@ windows_core::imp::interface_hierarchy!(IWMPSkinManager, windows_core::IUnknown) impl IWMPSkinManager { pub unsafe fn SetVisualStyle(&self, bstrpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisualStyle)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisualStyle)(windows_core::Interface::as_raw(self), bstrpath.param().abi()).ok() } } #[repr(C)] @@ -7025,29 +7025,29 @@ impl IWMPStringCollection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn isIdentical(&self, piwmpstringcollection2: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isIdentical)(windows_core::Interface::as_raw(self), piwmpstringcollection2.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).isIdentical)(windows_core::Interface::as_raw(self), piwmpstringcollection2.param().abi(), pvbool).ok() } pub unsafe fn getItemInfo(&self, lcollectionindex: i32, bstritemname: P0, pbstrvalue: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), lcollectionindex, bstritemname.into_param().abi(), core::mem::transmute(pbstrvalue)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), lcollectionindex, bstritemname.param().abi(), core::mem::transmute(pbstrvalue)).ok() } pub unsafe fn getAttributeCountByType(&self, lcollectionindex: i32, bstrtype: P0, bstrlanguage: P1, plcount: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).getAttributeCountByType)(windows_core::Interface::as_raw(self), lcollectionindex, bstrtype.into_param().abi(), bstrlanguage.into_param().abi(), plcount).ok() + (windows_core::Interface::vtable(self).getAttributeCountByType)(windows_core::Interface::as_raw(self), lcollectionindex, bstrtype.param().abi(), bstrlanguage.param().abi(), plcount).ok() } pub unsafe fn getItemInfoByType(&self, lcollectionindex: i32, bstrtype: P0, bstrlanguage: P1, lattributeindex: i32, pvarvalue: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), lcollectionindex, bstrtype.into_param().abi(), bstrlanguage.into_param().abi(), lattributeindex, core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).getItemInfoByType)(windows_core::Interface::as_raw(self), lcollectionindex, bstrtype.param().abi(), bstrlanguage.param().abi(), lattributeindex, core::mem::transmute(pvarvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7068,32 +7068,32 @@ impl IWMPSubscriptionService { #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowPlay(&self, hwnd: P0, pmedia: P1, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).allowPlay)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pmedia.into_param().abi(), pfallowplay).ok() + (windows_core::Interface::vtable(self).allowPlay)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pmedia.param().abi(), pfallowplay).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowCDBurn(&self, hwnd: P0, pplaylist: P1, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).allowCDBurn)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pplaylist.into_param().abi(), pfallowburn).ok() + (windows_core::Interface::vtable(self).allowCDBurn)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pplaylist.param().abi(), pfallowburn).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowPDATransfer(&self, hwnd: P0, pplaylist: P1, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).allowPDATransfer)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pplaylist.into_param().abi(), pfallowtransfer).ok() + (windows_core::Interface::vtable(self).allowPDATransfer)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pplaylist.param().abi(), pfallowtransfer).ok() } pub unsafe fn startBackgroundProcessing(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).startBackgroundProcessing)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).startBackgroundProcessing)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } } #[repr(C)] @@ -7119,32 +7119,32 @@ impl IWMPSubscriptionService2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowPlay(&self, hwnd: P0, pmedia: P1, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.allowPlay)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pmedia.into_param().abi(), pfallowplay).ok() + (windows_core::Interface::vtable(self).base__.allowPlay)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pmedia.param().abi(), pfallowplay).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowCDBurn(&self, hwnd: P0, pplaylist: P1, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.allowCDBurn)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pplaylist.into_param().abi(), pfallowburn).ok() + (windows_core::Interface::vtable(self).base__.allowCDBurn)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pplaylist.param().abi(), pfallowburn).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn allowPDATransfer(&self, hwnd: P0, pplaylist: P1, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.allowPDATransfer)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pplaylist.into_param().abi(), pfallowtransfer).ok() + (windows_core::Interface::vtable(self).base__.allowPDATransfer)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pplaylist.param().abi(), pfallowtransfer).ok() } pub unsafe fn startBackgroundProcessing(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.startBackgroundProcessing)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.startBackgroundProcessing)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn stopBackgroundProcessing(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).stopBackgroundProcessing)(windows_core::Interface::as_raw(self)).ok() @@ -7154,18 +7154,18 @@ impl IWMPSubscriptionService2 { } pub unsafe fn deviceAvailable(&self, bstrdevicename: P0, pcb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).deviceAvailable)(windows_core::Interface::as_raw(self), bstrdevicename.into_param().abi(), pcb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).deviceAvailable)(windows_core::Interface::as_raw(self), bstrdevicename.param().abi(), pcb.param().abi()).ok() } pub unsafe fn prepareForSync(&self, bstrfilename: P0, bstrdevicename: P1, pcb: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).prepareForSync)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), bstrdevicename.into_param().abi(), pcb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).prepareForSync)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), bstrdevicename.param().abi(), pcb.param().abi()).ok() } } #[repr(C)] @@ -7196,9 +7196,9 @@ impl IWMPSyncDevice { } pub unsafe fn SetfriendlyName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetfriendlyName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetfriendlyName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn deviceName(&self, pbstrname: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).deviceName)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrname)).ok() @@ -7223,15 +7223,15 @@ impl IWMPSyncDevice { } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn createPartnership(&self, vbshowui: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).createPartnership)(windows_core::Interface::as_raw(self), vbshowui.into_param().abi()).ok() + (windows_core::Interface::vtable(self).createPartnership)(windows_core::Interface::as_raw(self), vbshowui.param().abi()).ok() } pub unsafe fn deletePartnership(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).deletePartnership)(windows_core::Interface::as_raw(self)).ok() @@ -7247,9 +7247,9 @@ impl IWMPSyncDevice { } pub unsafe fn isIdentical(&self, pdevice: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).isIdentical)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).isIdentical)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pvbool).ok() } } #[repr(C)] @@ -7280,9 +7280,9 @@ impl IWMPSyncDevice2 { } pub unsafe fn SetfriendlyName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetfriendlyName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetfriendlyName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn deviceName(&self, pbstrname: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.deviceName)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrname)).ok() @@ -7307,15 +7307,15 @@ impl IWMPSyncDevice2 { } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn createPartnership(&self, vbshowui: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.createPartnership)(windows_core::Interface::as_raw(self), vbshowui.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.createPartnership)(windows_core::Interface::as_raw(self), vbshowui.param().abi()).ok() } pub unsafe fn deletePartnership(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.deletePartnership)(windows_core::Interface::as_raw(self)).ok() @@ -7331,16 +7331,16 @@ impl IWMPSyncDevice2 { } pub unsafe fn isIdentical(&self, pdevice: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.isIdentical)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).base__.isIdentical)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pvbool).ok() } pub unsafe fn setItemInfo(&self, bstritemname: P0, bstrval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), bstrval.param().abi()).ok() } } #[repr(C)] @@ -7356,9 +7356,9 @@ impl IWMPSyncDevice3 { } pub unsafe fn SetfriendlyName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetfriendlyName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetfriendlyName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn deviceName(&self, pbstrname: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.deviceName)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrname)).ok() @@ -7383,15 +7383,15 @@ impl IWMPSyncDevice3 { } pub unsafe fn getItemInfo(&self, bstritemname: P0, pbstrval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), core::mem::transmute(pbstrval)).ok() + (windows_core::Interface::vtable(self).base__.base__.getItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), core::mem::transmute(pbstrval)).ok() } pub unsafe fn createPartnership(&self, vbshowui: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.createPartnership)(windows_core::Interface::as_raw(self), vbshowui.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.createPartnership)(windows_core::Interface::as_raw(self), vbshowui.param().abi()).ok() } pub unsafe fn deletePartnership(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.deletePartnership)(windows_core::Interface::as_raw(self)).ok() @@ -7407,24 +7407,24 @@ impl IWMPSyncDevice3 { } pub unsafe fn isIdentical(&self, pdevice: P0, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.isIdentical)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pvbool).ok() + (windows_core::Interface::vtable(self).base__.base__.isIdentical)(windows_core::Interface::as_raw(self), pdevice.param().abi(), pvbool).ok() } pub unsafe fn setItemInfo(&self, bstritemname: P0, bstrval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.setItemInfo)(windows_core::Interface::as_raw(self), bstritemname.param().abi(), bstrval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn estimateSyncSize(&self, pnonruleplaylist: P0, prulesplaylist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).estimateSyncSize)(windows_core::Interface::as_raw(self), pnonruleplaylist.into_param().abi(), prulesplaylist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).estimateSyncSize)(windows_core::Interface::as_raw(self), pnonruleplaylist.param().abi(), prulesplaylist.param().abi()).ok() } pub unsafe fn cancelEstimation(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).cancelEstimation)(windows_core::Interface::as_raw(self)).ok() @@ -7486,9 +7486,9 @@ impl IWMPVideoRenderConfig { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn SetpresenterActivate(&self, pactivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetpresenterActivate)(windows_core::Interface::as_raw(self), pactivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetpresenterActivate)(windows_core::Interface::as_raw(self), pactivate.param().abi()).ok() } } #[repr(C)] @@ -7504,10 +7504,10 @@ windows_core::imp::interface_hierarchy!(IWMPWindowMessageSink, windows_core::IUn impl IWMPWindowMessageSink { pub unsafe fn OnWindowMessage(&self, umsg: u32, wparam: P0, lparam: P1, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi(), plret, pfhandled).ok() + (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi(), plret, pfhandled).ok() } } #[repr(C)] @@ -7529,9 +7529,9 @@ impl IXFeed { } pub unsafe fn Rename(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn Url(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7539,9 +7539,9 @@ impl IXFeed { } pub unsafe fn SetUrl(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7553,9 +7553,9 @@ impl IXFeed { } pub unsafe fn Move(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn Parent(&self) -> windows_core::Result where @@ -7629,9 +7629,9 @@ impl IXFeed { } pub unsafe fn SetDownloadEnclosuresAutomatically(&self, bdownloadenclosuresautomatically: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), bdownloadenclosuresautomatically.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), bdownloadenclosuresautomatically.param().abi()).ok() } pub unsafe fn DownloadStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7644,10 +7644,10 @@ impl IXFeed { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Merge(&self, pstream: P0, pszurl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), pstream.param().abi(), pszurl.param().abi()).ok() } pub unsafe fn DownloadUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7777,9 +7777,9 @@ impl IXFeed2 { } pub unsafe fn Rename(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Rename)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn Url(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7787,9 +7787,9 @@ impl IXFeed2 { } pub unsafe fn SetUrl(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUrl)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUrl)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7801,9 +7801,9 @@ impl IXFeed2 { } pub unsafe fn Move(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Move)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn Parent(&self) -> windows_core::Result where @@ -7877,9 +7877,9 @@ impl IXFeed2 { } pub unsafe fn SetDownloadEnclosuresAutomatically(&self, bdownloadenclosuresautomatically: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), bdownloadenclosuresautomatically.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), bdownloadenclosuresautomatically.param().abi()).ok() } pub unsafe fn DownloadStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7892,10 +7892,10 @@ impl IXFeed2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Merge(&self, pstream: P0, pszurl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), pstream.param().abi(), pszurl.param().abi()).ok() } pub unsafe fn DownloadUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7977,10 +7977,10 @@ impl IXFeed2 { } pub unsafe fn SetCredentials(&self, pszusername: P0, pszpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), pszusername.into_param().abi(), pszpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), pszusername.param().abi(), pszpassword.param().abi()).ok() } pub unsafe fn ClearCredentials(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearCredentials)(windows_core::Interface::as_raw(self)).ok() @@ -8049,12 +8049,12 @@ impl IXFeedEnclosure { } pub unsafe fn SetFile(&self, pszdownloadurl: P0, pszdownloadfilepath: P1, pszdownloadmimetype: P2, pszenclosurefilename: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFile)(windows_core::Interface::as_raw(self), pszdownloadurl.into_param().abi(), pszdownloadfilepath.into_param().abi(), pszdownloadmimetype.into_param().abi(), pszenclosurefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFile)(windows_core::Interface::as_raw(self), pszdownloadurl.param().abi(), pszdownloadfilepath.param().abi(), pszdownloadmimetype.param().abi(), pszenclosurefilename.param().abi()).ok() } } #[repr(C)] @@ -8082,47 +8082,47 @@ impl IXFeedEvents { } pub unsafe fn FeedDeleted(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FeedRenamed(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FeedUrlChanged(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FeedMoved(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedMoved)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedMoved)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FeedDownloading(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FeedDownloadCompleted(&self, pszpath: P0, fde: FEEDS_DOWNLOAD_ERROR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), feicfflags).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), feicfflags).ok() } } #[repr(C)] @@ -8150,48 +8150,48 @@ impl IXFeedFolder { } pub unsafe fn CreateFeed(&self, pszname: P0, pszurl: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFeed)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), pszurl.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFeed)(windows_core::Interface::as_raw(self), pszname.param().abi(), pszurl.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSubfolder(&self, pszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateSubfolder)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSubfolder)(windows_core::Interface::as_raw(self), pszname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExistsFeed(&self, pszname: P0, pbfeedexists: *const super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExistsSubfolder)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), pszname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSubfolder(&self, pszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetSubfolder)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubfolder)(windows_core::Interface::as_raw(self), pszname.param().abi(), &T::IID, &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() @@ -8202,9 +8202,9 @@ impl IXFeedFolder { } pub unsafe fn Rename(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8212,9 +8212,9 @@ impl IXFeedFolder { } pub unsafe fn Move(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn Parent(&self) -> windows_core::Result where @@ -8273,99 +8273,99 @@ impl IXFeedFolderEvents { } pub unsafe fn FolderAdded(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderAdded)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderAdded)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FolderDeleted(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderDeleted)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderDeleted)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FolderRenamed(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderRenamed)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderRenamed)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FolderMovedFrom(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderMovedFrom)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderMovedFrom)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FolderMovedTo(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderMovedTo)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FolderMovedTo)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FolderItemCountChanged(&self, pszpath: P0, feicfflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FolderItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedAdded)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedAdded)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FeedDeleted(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDeleted)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FeedRenamed(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedRenamed)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FeedUrlChanged(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedUrlChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FeedMovedFrom(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedMovedFrom)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedMovedFrom)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FeedMovedTo(&self, pszpath: P0, pszoldpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedMovedTo)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pszoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedMovedTo)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pszoldpath.param().abi()).ok() } pub unsafe fn FeedDownloading(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FeedDownloading)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn FeedDownloadCompleted(&self, pszpath: P0, fde: FEEDS_DOWNLOAD_ERROR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedDownloadCompleted)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), feicfflags).ok() + (windows_core::Interface::vtable(self).FeedItemCountChanged)(windows_core::Interface::as_raw(self), pszpath.param().abi(), feicfflags).ok() } } #[repr(C)] @@ -8437,9 +8437,9 @@ impl IXFeedItem { } pub unsafe fn SetIsRead(&self, bisread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsRead)(windows_core::Interface::as_raw(self), bisread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsRead)(windows_core::Interface::as_raw(self), bisread.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8541,9 +8541,9 @@ impl IXFeedItem2 { } pub unsafe fn SetIsRead(&self, bisread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsRead)(windows_core::Interface::as_raw(self), bisread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsRead)(windows_core::Interface::as_raw(self), bisread.param().abi()).ok() } pub unsafe fn LocalId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8614,60 +8614,60 @@ impl IXFeedsManager { } pub unsafe fn IsSubscribed(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ExistsFeed(&self, pszpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), pszpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetFeed(&self, pszpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeed)(windows_core::Interface::as_raw(self), pszpath.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFeedByUrl(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetFeedByUrl)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFeedByUrl)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExistsFolder(&self, pszpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExistsFolder)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExistsFolder)(windows_core::Interface::as_raw(self), pszpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetFolder(&self, pszpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), pszpath.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteFeed(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFeed)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteFeed)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn DeleteFolder(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (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), fbsa).ok() @@ -8689,10 +8689,10 @@ impl IXFeedsManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Normalize(&self, pstreamin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), pstreamin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), pstreamin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ItemCountLimit(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 77d241706c..5590755f6d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn AVIBuildFilterA(lpszfilter: &mut [u8], fsaving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIBuildFilterA(lpszfilter : windows_core::PSTR, cbfilter : i32, fsaving : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - AVIBuildFilterA(core::mem::transmute(lpszfilter.as_ptr()), lpszfilter.len().try_into().unwrap(), fsaving.into_param().abi()).ok() + AVIBuildFilterA(core::mem::transmute(lpszfilter.as_ptr()), lpszfilter.len().try_into().unwrap(), fsaving.param().abi()).ok() } #[inline] pub unsafe fn AVIBuildFilterW(lpszfilter: &mut [u16], fsaving: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIBuildFilterW(lpszfilter : windows_core::PWSTR, cbfilter : i32, fsaving : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - AVIBuildFilterW(core::mem::transmute(lpszfilter.as_ptr()), lpszfilter.len().try_into().unwrap(), fsaving.into_param().abi()).ok() + AVIBuildFilterW(core::mem::transmute(lpszfilter.as_ptr()), lpszfilter.len().try_into().unwrap(), fsaving.param().abi()).ok() } #[inline] pub unsafe fn AVIClearClipboard() -> windows_core::Result<()> { @@ -22,34 +22,34 @@ pub unsafe fn AVIClearClipboard() -> windows_core::Result<()> { #[inline] pub unsafe fn AVIFileAddRef(pfile: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileAddRef(pfile : * mut core::ffi::c_void) -> u32); - AVIFileAddRef(pfile.into_param().abi()) + AVIFileAddRef(pfile.param().abi()) } #[inline] pub unsafe fn AVIFileCreateStreamA(pfile: P0, ppavi: *mut Option, psi: *const AVISTREAMINFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(ppavi), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(ppavi), psi).ok() + AVIFileCreateStreamW(pfile.param().abi(), core::mem::transmute(ppavi), psi).ok() } #[inline] pub unsafe fn AVIFileEndRecord(pfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileEndRecord(pfile : * mut core::ffi::c_void) -> windows_core::HRESULT); - AVIFileEndRecord(pfile.into_param().abi()).ok() + AVIFileEndRecord(pfile.param().abi()).ok() } #[inline] pub unsafe fn AVIFileExit() { @@ -59,26 +59,26 @@ pub unsafe fn AVIFileExit() { #[inline] pub unsafe fn AVIFileGetStream(pfile: P0, ppavi: *mut Option, fcctype: u32, lparam: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(ppavi), fcctype, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pfi, lsize).ok() + AVIFileInfoA(pfile.param().abi(), pfi, lsize).ok() } #[inline] pub unsafe fn AVIFileInfoW(pfile: P0, pfi: *mut AVIFILEINFOW, lsize: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pfi, lsize).ok() + AVIFileInfoW(pfile.param().abi(), pfi, lsize).ok() } #[inline] pub unsafe fn AVIFileInit() { @@ -88,42 +88,42 @@ pub unsafe fn AVIFileInit() { #[inline] pub unsafe fn AVIFileOpenA(ppfile: *mut Option, szfile: P0, umode: u32, lphandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), umode, core::mem::transmute(lphandler.unwrap_or(std::ptr::null()))).ok() + AVIFileOpenA(core::mem::transmute(ppfile), szfile.param().abi(), umode, core::mem::transmute(lphandler.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AVIFileOpenW(ppfile: *mut Option, szfile: P0, umode: u32, lphandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), umode, core::mem::transmute(lphandler.unwrap_or(std::ptr::null()))).ok() + AVIFileOpenW(core::mem::transmute(ppfile), szfile.param().abi(), umode, core::mem::transmute(lphandler.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AVIFileReadData(pfile: P0, ckid: u32, lpdata: *mut core::ffi::c_void, lpcbdata: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ckid, lpdata, lpcbdata).ok() + AVIFileReadData(pfile.param().abi(), ckid, lpdata, lpcbdata).ok() } #[inline] pub unsafe fn AVIFileRelease(pfile: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIFileRelease(pfile : * mut core::ffi::c_void) -> u32); - AVIFileRelease(pfile.into_param().abi()) + AVIFileRelease(pfile.param().abi()) } #[inline] pub unsafe fn AVIFileWriteData(pfile: P0, ckid: u32, lpdata: *const core::ffi::c_void, cbdata: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ckid, lpdata, cbdata).ok() + AVIFileWriteData(pfile.param().abi(), ckid, lpdata, cbdata).ok() } #[inline] pub unsafe fn AVIGetFromClipboard() -> windows_core::Result { @@ -134,10 +134,10 @@ pub unsafe fn AVIGetFromClipboard() -> windows_core::Result { #[inline] pub unsafe fn AVIMakeCompressedStream(ppscompressed: *mut Option, ppssource: P0, lpoptions: *const AVICOMPRESSOPTIONS, pclsidhandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), lpoptions, core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null()))).ok() + AVIMakeCompressedStream(core::mem::transmute(ppscompressed), ppssource.param().abi(), lpoptions, core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AVIMakeFileFromStreams(ppfile: *mut Option, papstreams: &[Option]) -> windows_core::Result<()> { @@ -147,36 +147,36 @@ pub unsafe fn AVIMakeFileFromStreams(ppfile: *mut Option, papstreams: #[inline] pub unsafe fn AVIMakeStreamFromClipboard(cfformat: u32, hglobal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - AVIMakeStreamFromClipboard(cfformat, hglobal.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + AVIMakeStreamFromClipboard(cfformat, hglobal.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn AVIPutFileOnClipboard(pf: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIPutFileOnClipboard(pf : * mut core::ffi::c_void) -> windows_core::HRESULT); - AVIPutFileOnClipboard(pf.into_param().abi()).ok() + AVIPutFileOnClipboard(pf.param().abi()).ok() } #[inline] pub unsafe fn AVISaveA(szfile: P0, pclsidhandler: Option<*const windows_core::GUID>, lpfncallback: AVISAVECALLBACK, nstreams: i32, pfile: P1, lpoptions: *const AVICOMPRESSOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), lpfncallback, nstreams, pfile.into_param().abi(), lpoptions).ok() + AVISaveA(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), lpfncallback, nstreams, pfile.param().abi(), lpoptions).ok() } #[inline] pub unsafe fn AVISaveOptions(hwnd: P0, uiflags: u32, nstreams: i32, ppavi: *const Option, plpoptions: *mut *mut AVICOMPRESSOPTIONS) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), uiflags, nstreams, core::mem::transmute(ppavi), plpoptions) + AVISaveOptions(hwnd.param().abi(), uiflags, nstreams, core::mem::transmute(ppavi), plpoptions) } #[inline] pub unsafe fn AVISaveOptionsFree(plpoptions: &[*const AVICOMPRESSOPTIONS]) -> windows_core::Result<()> { @@ -186,43 +186,43 @@ pub unsafe fn AVISaveOptionsFree(plpoptions: &[*const AVICOMPRESSOPTIONS]) -> wi #[inline] pub unsafe fn AVISaveVA(szfile: P0, pclsidhandler: Option<*const windows_core::GUID>, lpfncallback: AVISAVECALLBACK, nstreams: i32, ppavi: *const Option, plpoptions: *const *const AVICOMPRESSOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), lpfncallback, nstreams, core::mem::transmute(ppavi), plpoptions).ok() + AVISaveVA(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), lpfncallback, nstreams, core::mem::transmute(ppavi), plpoptions).ok() + AVISaveVW(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), 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: P1, lpoptions: *const AVICOMPRESSOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), lpfncallback, nstreams, pfile.into_param().abi(), lpoptions).ok() + AVISaveW(szfile.param().abi(), core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null())), lpfncallback, nstreams, pfile.param().abi(), lpoptions).ok() } #[inline] pub unsafe fn AVIStreamAddRef(pavi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamAddRef(pavi : * mut core::ffi::c_void) -> u32); - AVIStreamAddRef(pavi.into_param().abi()) + AVIStreamAddRef(pavi.param().abi()) } #[inline] pub unsafe fn AVIStreamBeginStreaming(pavi: P0, lstart: i32, lend: i32, lrate: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lstart, lend, 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<()> { @@ -232,200 +232,200 @@ pub unsafe fn AVIStreamCreate(ppavi: *mut Option, lparam1: i32, lpar #[inline] pub unsafe fn AVIStreamEndStreaming(pavi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamEndStreaming(pavi : * mut core::ffi::c_void) -> windows_core::HRESULT); - AVIStreamEndStreaming(pavi.into_param().abi()).ok() + AVIStreamEndStreaming(pavi.param().abi()).ok() } #[inline] pub unsafe fn AVIStreamFindSample(pavi: P0, lpos: i32, lflags: i32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpos, lflags) + AVIStreamFindSample(pavi.param().abi(), lpos, lflags) } #[inline] pub unsafe fn AVIStreamGetFrame(pg: P0, lpos: i32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpos) + AVIStreamGetFrame(pg.param().abi(), lpos) } #[inline] pub unsafe fn AVIStreamGetFrameClose(pg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamGetFrameClose(pg : * mut core::ffi::c_void) -> windows_core::HRESULT); - AVIStreamGetFrameClose(pg.into_param().abi()).ok() + AVIStreamGetFrameClose(pg.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn AVIStreamGetFrameOpen(pavi: P0, lpbiwanted: Option<*const super::super::Graphics::Gdi::BITMAPINFOHEADER>) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamGetFrameOpen(pavi : * mut core::ffi::c_void, lpbiwanted : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER) -> Option < IGetFrame >); - AVIStreamGetFrameOpen(pavi.into_param().abi(), core::mem::transmute(lpbiwanted.unwrap_or(std::ptr::null()))) + AVIStreamGetFrameOpen(pavi.param().abi(), core::mem::transmute(lpbiwanted.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AVIStreamInfoA(pavi: P0, psi: *mut AVISTREAMINFOA, lsize: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), psi, lsize).ok() + AVIStreamInfoA(pavi.param().abi(), psi, lsize).ok() } #[inline] pub unsafe fn AVIStreamInfoW(pavi: P0, psi: *mut AVISTREAMINFOW, lsize: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), psi, lsize).ok() + AVIStreamInfoW(pavi.param().abi(), psi, lsize).ok() } #[inline] pub unsafe fn AVIStreamLength(pavi: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamLength(pavi : * mut core::ffi::c_void) -> i32); - AVIStreamLength(pavi.into_param().abi()) + AVIStreamLength(pavi.param().abi()) } #[inline] pub unsafe fn AVIStreamOpenFromFileA(ppavi: *mut Option, szfile: P0, fcctype: u32, lparam: i32, mode: u32, pclsidhandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), fcctype, lparam, mode, core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null()))).ok() + AVIStreamOpenFromFileA(core::mem::transmute(ppavi), szfile.param().abi(), fcctype, lparam, mode, core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AVIStreamOpenFromFileW(ppavi: *mut Option, szfile: P0, fcctype: u32, lparam: i32, mode: u32, pclsidhandler: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), fcctype, lparam, mode, core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null()))).ok() + AVIStreamOpenFromFileW(core::mem::transmute(ppavi), szfile.param().abi(), fcctype, lparam, mode, core::mem::transmute(pclsidhandler.unwrap_or(std::ptr::null()))).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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lstart, lsamples, core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut())), cbbuffer, core::mem::transmute(plbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plsamples.unwrap_or(std::ptr::null_mut()))).ok() + AVIStreamRead(pavi.param().abi(), lstart, lsamples, core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut())), cbbuffer, core::mem::transmute(plbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plsamples.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AVIStreamReadData(pavi: P0, fcc: u32, lp: Option<*mut core::ffi::c_void>, lpcb: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), fcc, core::mem::transmute(lp.unwrap_or(std::ptr::null_mut())), lpcb).ok() + AVIStreamReadData(pavi.param().abi(), fcc, core::mem::transmute(lp.unwrap_or(std::ptr::null_mut())), lpcb).ok() } #[inline] pub unsafe fn AVIStreamReadFormat(pavi: P0, lpos: i32, lpformat: Option<*mut core::ffi::c_void>, lpcbformat: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpos, core::mem::transmute(lpformat.unwrap_or(std::ptr::null_mut())), lpcbformat).ok() + AVIStreamReadFormat(pavi.param().abi(), lpos, core::mem::transmute(lpformat.unwrap_or(std::ptr::null_mut())), lpcbformat).ok() } #[inline] pub unsafe fn AVIStreamRelease(pavi: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamRelease(pavi : * mut core::ffi::c_void) -> u32); - AVIStreamRelease(pavi.into_param().abi()) + AVIStreamRelease(pavi.param().abi()) } #[inline] pub unsafe fn AVIStreamSampleToTime(pavi: P0, lsample: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamSampleToTime(pavi : * mut core::ffi::c_void, lsample : i32) -> i32); - AVIStreamSampleToTime(pavi.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpos, lpformat, cbformat).ok() + AVIStreamSetFormat(pavi.param().abi(), lpos, lpformat, cbformat).ok() } #[inline] pub unsafe fn AVIStreamStart(pavi: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamStart(pavi : * mut core::ffi::c_void) -> i32); - AVIStreamStart(pavi.into_param().abi()) + AVIStreamStart(pavi.param().abi()) } #[inline] pub unsafe fn AVIStreamTimeToSample(pavi: P0, ltime: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn AVIStreamTimeToSample(pavi : * mut core::ffi::c_void, ltime : i32) -> i32); - AVIStreamTimeToSample(pavi.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lstart, lsamples, lpbuffer, cbbuffer, dwflags, core::mem::transmute(plsampwritten.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plbyteswritten.unwrap_or(std::ptr::null_mut()))).ok() + AVIStreamWrite(pavi.param().abi(), lstart, lsamples, lpbuffer, cbbuffer, dwflags, core::mem::transmute(plsampwritten.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plbyteswritten.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AVIStreamWriteData(pavi: P0, fcc: u32, lp: *const core::ffi::c_void, cb: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), fcc, lp, cb).ok() + AVIStreamWriteData(pavi.param().abi(), fcc, lp, cb).ok() } #[inline] pub unsafe fn CloseDriver(hdriver: P0, lparam1: P1, lparam2: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdriver.into_param().abi(), lparam1.into_param().abi(), lparam2.into_param().abi()) + CloseDriver(hdriver.param().abi(), lparam1.param().abi(), lparam2.param().abi()) } #[inline] pub unsafe fn CreateEditableStream(ppseditable: *mut Option, pssource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn CreateEditableStream(ppseditable : *mut * mut core::ffi::c_void, pssource : * mut core::ffi::c_void) -> windows_core::HRESULT); - CreateEditableStream(core::mem::transmute(ppseditable), pssource.into_param().abi()).ok() + CreateEditableStream(core::mem::transmute(ppseditable), pssource.param().abi()).ok() } #[inline] pub unsafe fn DefDriverProc(dwdriveridentifier: usize, hdrvr: P0, umsg: u32, lparam1: P1, lparam2: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(dwdriveridentifier, hdrvr.into_param().abi(), umsg, lparam1.into_param().abi(), lparam2.into_param().abi()) + DefDriverProc(dwdriveridentifier, hdrvr.param().abi(), umsg, lparam1.param().abi(), lparam2.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibBegin(hdd: isize, hdc: P0, dxdst: i32, dydst: i32, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, dxsrc: i32, dysrc: i32, wflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdd, hdc.into_param().abi(), dxdst, dydst, lpbi, dxsrc, dysrc, wflags) + DrawDibBegin(hdd, hdc.param().abi(), dxdst, dydst, lpbi, dxsrc, dysrc, wflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -442,10 +442,10 @@ pub unsafe fn DrawDibClose(hdd: isize) -> super::super::Foundation::BOOL { #[inline] pub unsafe fn DrawDibDraw(hdd: isize, hdc: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdd, hdc.into_param().abi(), xdst, ydst, dxdst, dydst, core::mem::transmute(lpbi.unwrap_or(std::ptr::null())), core::mem::transmute(lpbits.unwrap_or(std::ptr::null())), xsrc, ysrc, dxsrc, dysrc, wflags) + DrawDibDraw(hdd, hdc.param().abi(), xdst, ydst, dxdst, dydst, core::mem::transmute(lpbi.unwrap_or(std::ptr::null())), core::mem::transmute(lpbits.unwrap_or(std::ptr::null())), xsrc, ysrc, dxsrc, dysrc, wflags) } #[inline] pub unsafe fn DrawDibEnd(hdd: isize) -> super::super::Foundation::BOOL { @@ -479,20 +479,20 @@ pub unsafe fn DrawDibProfileDisplay(lpbi: *const super::super::Graphics::Gdi::BI #[inline] pub unsafe fn DrawDibRealize(hdd: isize, hdc: P0, fbackground: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msvfw32.dll" "system" fn DrawDibRealize(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, fbackground : super::super::Foundation:: BOOL) -> u32); - DrawDibRealize(hdd, hdc.into_param().abi(), fbackground.into_param().abi()) + DrawDibRealize(hdd, hdc.param().abi(), fbackground.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibSetPalette(hdd: isize, hpal: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msvfw32.dll" "system" fn DrawDibSetPalette(hdd : isize, hpal : super::super::Graphics::Gdi:: HPALETTE) -> super::super::Foundation:: BOOL); - DrawDibSetPalette(hdd, hpal.into_param().abi()) + DrawDibSetPalette(hdd, hpal.param().abi()) } #[inline] pub unsafe fn DrawDibStart(hdd: isize, rate: u32) -> super::super::Foundation::BOOL { @@ -512,94 +512,94 @@ pub unsafe fn DrawDibTime(hdd: isize, lpddtime: *mut DRAWDIBTIME) -> super::supe #[inline] pub unsafe fn DriverCallback(dwcallback: usize, dwflags: u32, hdevice: P0, dwmsg: u32, dwuser: usize, dwparam1: usize, dwparam2: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwcallback, dwflags, hdevice.into_param().abi(), dwmsg, dwuser, dwparam1, dwparam2) + DriverCallback(dwcallback, dwflags, hdevice.param().abi(), dwmsg, dwuser, dwparam1, dwparam2) } #[inline] pub unsafe fn DrvGetModuleHandle(hdriver: P0) -> super::super::Foundation::HMODULE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn DrvGetModuleHandle(hdriver : HDRVR) -> super::super::Foundation:: HMODULE); - DrvGetModuleHandle(hdriver.into_param().abi()) + DrvGetModuleHandle(hdriver.param().abi()) } #[inline] pub unsafe fn EditStreamClone(pavi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamClone(pavi : * mut core::ffi::c_void, ppresult : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - EditStreamClone(pavi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + EditStreamClone(pavi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn EditStreamCopy(pavi: P0, plstart: *mut i32, pllength: *mut i32, ppresult: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamCopy(pavi : * mut core::ffi::c_void, plstart : *mut i32, pllength : *mut i32, ppresult : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - EditStreamCopy(pavi.into_param().abi(), plstart, pllength, core::mem::transmute(ppresult)).ok() + EditStreamCopy(pavi.param().abi(), plstart, pllength, core::mem::transmute(ppresult)).ok() } #[inline] pub unsafe fn EditStreamCut(pavi: P0, plstart: *mut i32, pllength: *mut i32, ppresult: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamCut(pavi : * mut core::ffi::c_void, plstart : *mut i32, pllength : *mut i32, ppresult : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - EditStreamCut(pavi.into_param().abi(), plstart, pllength, core::mem::transmute(ppresult)).ok() + EditStreamCut(pavi.param().abi(), plstart, pllength, core::mem::transmute(ppresult)).ok() } #[inline] pub unsafe fn EditStreamPaste(pavi: P0, plpos: *mut i32, pllength: *mut i32, pstream: P1, lstart: i32, lend: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), plpos, pllength, pstream.into_param().abi(), lstart, lend).ok() + EditStreamPaste(pavi.param().abi(), plpos, pllength, pstream.param().abi(), lstart, lend).ok() } #[inline] pub unsafe fn EditStreamSetInfoA(pavi: P0, lpinfo: *const AVISTREAMINFOA, cbinfo: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpinfo, cbinfo).ok() + EditStreamSetInfoA(pavi.param().abi(), lpinfo, cbinfo).ok() } #[inline] pub unsafe fn EditStreamSetInfoW(pavi: P0, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpinfo, cbinfo).ok() + EditStreamSetInfoW(pavi.param().abi(), lpinfo, cbinfo).ok() } #[inline] pub unsafe fn EditStreamSetNameA(pavi: P0, lpszname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamSetNameA(pavi : * mut core::ffi::c_void, lpszname : windows_core::PCSTR) -> windows_core::HRESULT); - EditStreamSetNameA(pavi.into_param().abi(), lpszname.into_param().abi()).ok() + EditStreamSetNameA(pavi.param().abi(), lpszname.param().abi()).ok() } #[inline] pub unsafe fn EditStreamSetNameW(pavi: P0, lpszname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("avifil32.dll" "system" fn EditStreamSetNameW(pavi : * mut core::ffi::c_void, lpszname : windows_core::PCWSTR) -> windows_core::HRESULT); - EditStreamSetNameW(pavi.into_param().abi(), lpszname.into_param().abi()).ok() + EditStreamSetNameW(pavi.param().abi(), lpszname.param().abi()).ok() } #[inline] pub unsafe fn GetDriverModuleHandle(hdriver: P0) -> super::super::Foundation::HMODULE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn GetDriverModuleHandle(hdriver : HDRVR) -> super::super::Foundation:: HMODULE); - GetDriverModuleHandle(hdriver.into_param().abi()) + GetDriverModuleHandle(hdriver.param().abi()) } #[cfg(feature = "Win32_UI_Controls_Dialogs")] #[inline] @@ -628,29 +628,29 @@ pub unsafe fn GetSaveFileNamePreviewW(lpofn: *mut super::super::UI::Controls::Di #[inline] pub unsafe fn ICClose(hic: P0) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msvfw32.dll" "system" fn ICClose(hic : HIC) -> super::super::Foundation:: LRESULT); - ICClose(hic.into_param().abi()) + ICClose(hic.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICCompress(hic: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hic.into_param().abi(), dwflags, lpbioutput, lpdata, lpbiinput, lpbits, core::mem::transmute(lpckid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwflags.unwrap_or(std::ptr::null_mut())), lframenum, dwframesize, dwquality, core::mem::transmute(lpbiprev.unwrap_or(std::ptr::null())), core::mem::transmute(lpprev.unwrap_or(std::ptr::null()))) + ICCompress(hic.param().abi(), dwflags, lpbioutput, lpdata, lpbiinput, lpbits, core::mem::transmute(lpckid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwflags.unwrap_or(std::ptr::null_mut())), lframenum, dwframesize, dwquality, core::mem::transmute(lpbiprev.unwrap_or(std::ptr::null())), core::mem::transmute(lpprev.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICCompressorChoose(hwnd: P0, uiflags: u32, pvin: Option<*const core::ffi::c_void>, lpdata: Option<*const core::ffi::c_void>, pc: *mut COMPVARS, lpsztitle: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hwnd.into_param().abi(), uiflags, core::mem::transmute(pvin.unwrap_or(std::ptr::null())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), pc, lpsztitle.into_param().abi()) + ICCompressorChoose(hwnd.param().abi(), uiflags, core::mem::transmute(pvin.unwrap_or(std::ptr::null())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), pc, lpsztitle.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -662,65 +662,65 @@ pub unsafe fn ICCompressorFree(pc: *const COMPVARS) { #[inline] pub unsafe fn ICDecompress(hic: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hic.into_param().abi(), dwflags, lpbiformat, lpdata, lpbi, lpbits) + ICDecompress(hic.param().abi(), dwflags, lpbiformat, lpdata, lpbi, lpbits) } #[inline] pub unsafe fn ICDraw(hic: P0, dwflags: u32, lpformat: *const core::ffi::c_void, lpdata: Option<*const core::ffi::c_void>, cbdata: u32, ltime: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hic.into_param().abi(), dwflags, lpformat, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata, ltime) + ICDraw(hic.param().abi(), dwflags, lpformat, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata, ltime) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICDrawBegin(hic: P0, dwflags: u32, hpal: P1, hwnd: P2, hdc: P3, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hic.into_param().abi(), dwflags, hpal.into_param().abi(), hwnd.into_param().abi(), hdc.into_param().abi(), xdst, ydst, dxdst, dydst, lpbi, xsrc, ysrc, dxsrc, dysrc, dwrate, dwscale) + ICDrawBegin(hic.param().abi(), dwflags, hpal.param().abi(), hwnd.param().abi(), hdc.param().abi(), xdst, ydst, dxdst, dydst, lpbi, xsrc, ysrc, dxsrc, dysrc, dwrate, dwscale) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICGetDisplayFormat(hic: P0, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbiout: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER, bitdepth: i32, dx: i32, dy: i32) -> HIC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hic.into_param().abi(), lpbiin, lpbiout, bitdepth, dx, dy) + ICGetDisplayFormat(hic.param().abi(), lpbiin, lpbiout, bitdepth, dx, dy) } #[inline] pub unsafe fn ICGetInfo(hic: P0, picinfo: *mut ICINFO, cb: u32) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msvfw32.dll" "system" fn ICGetInfo(hic : HIC, picinfo : *mut ICINFO, cb : u32) -> super::super::Foundation:: LRESULT); - ICGetInfo(hic.into_param().abi(), picinfo, cb) + ICGetInfo(hic.param().abi(), picinfo, cb) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICImageCompress(hic: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hic.into_param().abi(), uiflags, lpbiin, lpbits, core::mem::transmute(lpbiout.unwrap_or(std::ptr::null())), lquality, core::mem::transmute(plsize.unwrap_or(std::ptr::null_mut()))) + ICImageCompress(hic.param().abi(), uiflags, lpbiin, lpbits, core::mem::transmute(lpbiout.unwrap_or(std::ptr::null())), lquality, core::mem::transmute(plsize.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ICImageDecompress(hic: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hic.into_param().abi(), uiflags, lpbiin, lpbits, core::mem::transmute(lpbiout.unwrap_or(std::ptr::null()))) + ICImageDecompress(hic.param().abi(), uiflags, lpbiin, lpbits, core::mem::transmute(lpbiout.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ICInfo(fcctype: u32, fcchandler: u32, lpicinfo: *mut ICINFO) -> super::super::Foundation::BOOL { @@ -730,11 +730,11 @@ pub unsafe fn ICInfo(fcctype: u32, fcchandler: u32, lpicinfo: *mut ICINFO) -> su #[inline] pub unsafe fn ICInstall(fcctype: u32, fcchandler: u32, lparam: P0, szdesc: P1, wflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(fcctype, fcchandler, lparam.into_param().abi(), szdesc.into_param().abi(), wflags) + ICInstall(fcctype, fcchandler, lparam.param().abi(), szdesc.param().abi(), wflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -760,10 +760,10 @@ pub unsafe fn ICRemove(fcctype: u32, fcchandler: u32, wflags: u32) -> super::sup #[inline] pub unsafe fn ICSendMessage(hic: P0, msg: u32, dw1: usize, dw2: usize) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msvfw32.dll" "system" fn ICSendMessage(hic : HIC, msg : u32, dw1 : usize, dw2 : usize) -> super::super::Foundation:: LRESULT); - ICSendMessage(hic.into_param().abi(), msg, dw1, dw2) + ICSendMessage(hic.param().abi(), msg, dw1, dw2) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -786,22 +786,22 @@ pub unsafe fn ICSeqCompressFrameStart(pc: *const COMPVARS, lpbiin: *const super: #[inline] pub unsafe fn MCIWndCreateA(hwndparent: P0, hinstance: P1, dwstyle: u32, szfile: P2) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwndparent.into_param().abi(), hinstance.into_param().abi(), dwstyle, szfile.into_param().abi()) + MCIWndCreateA(hwndparent.param().abi(), hinstance.param().abi(), dwstyle, szfile.param().abi()) } #[inline] pub unsafe fn MCIWndCreateW(hwndparent: P0, hinstance: P1, dwstyle: u32, szfile: P2) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwndparent.into_param().abi(), hinstance.into_param().abi(), dwstyle, szfile.into_param().abi()) + MCIWndCreateW(hwndparent.param().abi(), hinstance.param().abi(), dwstyle, szfile.param().abi()) } #[inline] pub unsafe fn MCIWndRegisterClass() -> super::super::Foundation::BOOL { @@ -811,22 +811,22 @@ pub unsafe fn MCIWndRegisterClass() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn OpenDriver(szdrivername: P0, szsectionname: P1, lparam2: P2) -> HDRVR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szsectionname.into_param().abi(), lparam2.into_param().abi()) + OpenDriver(szdrivername.param().abi(), szsectionname.param().abi(), lparam2.param().abi()) } #[inline] pub unsafe fn SendDriverMessage(hdriver: P0, message: u32, lparam1: P1, lparam2: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdriver.into_param().abi(), message, lparam1.into_param().abi(), lparam2.into_param().abi()) + SendDriverMessage(hdriver.param().abi(), message, lparam1.param().abi(), lparam2.param().abi()) } #[inline] pub unsafe fn VideoForWindowsVersion() -> u32 { @@ -836,20 +836,20 @@ pub unsafe fn VideoForWindowsVersion() -> u32 { #[inline] pub unsafe fn capCreateCaptureWindowA(lpszwindowname: P0, dwstyle: u32, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: P1, nid: i32) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.into_param().abi(), nid) + capCreateCaptureWindowA(lpszwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.param().abi(), nid) } #[inline] pub unsafe fn capCreateCaptureWindowW(lpszwindowname: P0, dwstyle: u32, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: P1, nid: i32) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.into_param().abi(), nid) + capCreateCaptureWindowW(lpszwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.param().abi(), nid) } #[inline] pub unsafe fn capGetDriverDescriptionA(wdriverindex: u32, lpszname: &mut [u8], lpszver: &mut [u8]) -> super::super::Foundation::BOOL { @@ -899,11 +899,11 @@ pub unsafe fn joyReleaseCapture(ujoyid: u32) -> u32 { #[inline] pub unsafe fn joySetCapture(hwnd: P0, ujoyid: u32, uperiod: u32, fchanged: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn joySetCapture(hwnd : super::super::Foundation:: HWND, ujoyid : u32, uperiod : u32, fchanged : super::super::Foundation:: BOOL) -> u32); - joySetCapture(hwnd.into_param().abi(), ujoyid, uperiod, fchanged.into_param().abi()) + joySetCapture(hwnd.param().abi(), ujoyid, uperiod, fchanged.param().abi()) } #[inline] pub unsafe fn joySetThreshold(ujoyid: u32, uthreshold: u32) -> u32 { @@ -913,10 +913,10 @@ pub unsafe fn joySetThreshold(ujoyid: u32, uthreshold: u32) -> u32 { #[inline] pub unsafe fn mciDriverNotify(hwndcallback: P0, wdeviceid: u32, ustatus: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciDriverNotify(hwndcallback : super::super::Foundation:: HANDLE, wdeviceid : u32, ustatus : u32) -> super::super::Foundation:: BOOL); - mciDriverNotify(hwndcallback.into_param().abi(), wdeviceid, ustatus) + mciDriverNotify(hwndcallback.param().abi(), wdeviceid, ustatus) } #[inline] pub unsafe fn mciDriverYield(wdeviceid: u32) -> u32 { @@ -936,34 +936,34 @@ pub unsafe fn mciGetCreatorTask(mciid: u32) -> super::HTASK { #[inline] pub unsafe fn mciGetDeviceIDA(pszdevice: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciGetDeviceIDA(pszdevice : windows_core::PCSTR) -> u32); - mciGetDeviceIDA(pszdevice.into_param().abi()) + mciGetDeviceIDA(pszdevice.param().abi()) } #[inline] pub unsafe fn mciGetDeviceIDFromElementIDA(dwelementid: u32, lpstrtype: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciGetDeviceIDFromElementIDA(dwelementid : u32, lpstrtype : windows_core::PCSTR) -> u32); - mciGetDeviceIDFromElementIDA(dwelementid, lpstrtype.into_param().abi()) + mciGetDeviceIDFromElementIDA(dwelementid, lpstrtype.param().abi()) } #[inline] pub unsafe fn mciGetDeviceIDFromElementIDW(dwelementid: u32, lpstrtype: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciGetDeviceIDFromElementIDW(dwelementid : u32, lpstrtype : windows_core::PCWSTR) -> u32); - mciGetDeviceIDFromElementIDW(dwelementid, lpstrtype.into_param().abi()) + mciGetDeviceIDFromElementIDW(dwelementid, lpstrtype.param().abi()) } #[inline] pub unsafe fn mciGetDeviceIDW(pszdevice: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciGetDeviceIDW(pszdevice : windows_core::PCWSTR) -> u32); - mciGetDeviceIDW(pszdevice.into_param().abi()) + mciGetDeviceIDW(pszdevice.param().abi()) } #[inline] pub unsafe fn mciGetDriverData(wdeviceid: u32) -> usize { @@ -988,11 +988,11 @@ pub unsafe fn mciGetYieldProc(mciid: u32, pdwyielddata: *const u32) -> YIELDPROC #[inline] pub unsafe fn mciLoadCommandResource(hinstance: P0, lpresname: P1, wtype: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstance.into_param().abi(), lpresname.into_param().abi(), wtype) + mciLoadCommandResource(hinstance.param().abi(), lpresname.param().abi(), wtype) } #[inline] pub unsafe fn mciSendCommandA(mciid: u32, umsg: u32, dwparam1: usize, dwparam2: usize) -> u32 { @@ -1007,20 +1007,20 @@ pub unsafe fn mciSendCommandW(mciid: u32, umsg: u32, dwparam1: usize, dwparam2: #[inline] pub unsafe fn mciSendStringA(lpstrcommand: P0, lpstrreturnstring: Option<&mut [u8]>, hwndcallback: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciSendStringA(lpstrcommand : windows_core::PCSTR, lpstrreturnstring : windows_core::PSTR, ureturnlength : u32, hwndcallback : super::super::Foundation:: HWND) -> u32); - mciSendStringA(lpstrcommand.into_param().abi(), core::mem::transmute(lpstrreturnstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstrreturnstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), hwndcallback.into_param().abi()) + mciSendStringA(lpstrcommand.param().abi(), core::mem::transmute(lpstrreturnstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstrreturnstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), hwndcallback.param().abi()) } #[inline] pub unsafe fn mciSendStringW(lpstrcommand: P0, lpstrreturnstring: Option<&mut [u16]>, hwndcallback: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mciSendStringW(lpstrcommand : windows_core::PCWSTR, lpstrreturnstring : windows_core::PWSTR, ureturnlength : u32, hwndcallback : super::super::Foundation:: HWND) -> u32); - mciSendStringW(lpstrcommand.into_param().abi(), core::mem::transmute(lpstrreturnstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstrreturnstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), hwndcallback.into_param().abi()) + mciSendStringW(lpstrcommand.param().abi(), core::mem::transmute(lpstrreturnstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstrreturnstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), hwndcallback.param().abi()) } #[inline] pub unsafe fn mciSetDriverData(wdeviceid: u32, dwdata: usize) -> super::super::Foundation::BOOL { @@ -1035,11 +1035,11 @@ pub unsafe fn mciSetYieldProc(mciid: u32, fpyieldproc: YIELDPROC, dwyielddata: u #[inline] pub unsafe fn mmDrvInstall(hdriver: P0, wszdrventry: P1, drvmessage: DRIVERMSGPROC, wflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmDrvInstall(hdriver : HDRVR, wszdrventry : windows_core::PCWSTR, drvmessage : DRIVERMSGPROC, wflags : u32) -> u32); - mmDrvInstall(hdriver.into_param().abi(), wszdrventry.into_param().abi(), drvmessage, wflags) + mmDrvInstall(hdriver.param().abi(), wszdrventry.param().abi(), drvmessage, wflags) } #[inline] pub unsafe fn mmGetCurrentTask() -> u32 { @@ -1069,58 +1069,58 @@ pub unsafe fn mmTaskYield() { #[inline] pub unsafe fn mmioAdvance(hmmio: P0, pmmioinfo: Option<*const MMIOINFO>, fuadvance: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioAdvance(hmmio : HMMIO, pmmioinfo : *const MMIOINFO, fuadvance : u32) -> u32); - mmioAdvance(hmmio.into_param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(std::ptr::null())), fuadvance) + mmioAdvance(hmmio.param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(std::ptr::null())), fuadvance) } #[inline] pub unsafe fn mmioAscend(hmmio: P0, pmmcki: *const MMCKINFO, fuascend: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioAscend(hmmio : HMMIO, pmmcki : *const MMCKINFO, fuascend : u32) -> u32); - mmioAscend(hmmio.into_param().abi(), pmmcki, fuascend) + mmioAscend(hmmio.param().abi(), pmmcki, fuascend) } #[inline] pub unsafe fn mmioClose(hmmio: P0, fuclose: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioClose(hmmio : HMMIO, fuclose : u32) -> u32); - mmioClose(hmmio.into_param().abi(), fuclose) + mmioClose(hmmio.param().abi(), fuclose) } #[inline] pub unsafe fn mmioCreateChunk(hmmio: P0, pmmcki: *const MMCKINFO, fucreate: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioCreateChunk(hmmio : HMMIO, pmmcki : *const MMCKINFO, fucreate : u32) -> u32); - mmioCreateChunk(hmmio.into_param().abi(), pmmcki, fucreate) + mmioCreateChunk(hmmio.param().abi(), pmmcki, fucreate) } #[inline] pub unsafe fn mmioDescend(hmmio: P0, pmmcki: *mut MMCKINFO, pmmckiparent: Option<*const MMCKINFO>, fudescend: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioDescend(hmmio : HMMIO, pmmcki : *mut MMCKINFO, pmmckiparent : *const MMCKINFO, fudescend : u32) -> u32); - mmioDescend(hmmio.into_param().abi(), pmmcki, core::mem::transmute(pmmckiparent.unwrap_or(std::ptr::null())), fudescend) + mmioDescend(hmmio.param().abi(), pmmcki, core::mem::transmute(pmmckiparent.unwrap_or(std::ptr::null())), fudescend) } #[inline] pub unsafe fn mmioFlush(hmmio: P0, fuflush: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioFlush(hmmio : HMMIO, fuflush : u32) -> u32); - mmioFlush(hmmio.into_param().abi(), fuflush) + mmioFlush(hmmio.param().abi(), fuflush) } #[inline] pub unsafe fn mmioGetInfo(hmmio: P0, pmmioinfo: *mut MMIOINFO, fuinfo: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioGetInfo(hmmio : HMMIO, pmmioinfo : *mut MMIOINFO, fuinfo : u32) -> u32); - mmioGetInfo(hmmio.into_param().abi(), pmmioinfo, fuinfo) + mmioGetInfo(hmmio.param().abi(), pmmioinfo, fuinfo) } #[inline] pub unsafe fn mmioInstallIOProcA(fccioproc: u32, pioproc: LPMMIOPROC, dwflags: u32) -> LPMMIOPROC { @@ -1145,95 +1145,95 @@ pub unsafe fn mmioOpenW(pszfilename: Option<&mut [u16; 128]>, pmmioinfo: Option< #[inline] pub unsafe fn mmioRead(hmmio: P0, pch: &mut [u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioRead(hmmio : HMMIO, pch : *mut i8, cch : i32) -> i32); - mmioRead(hmmio.into_param().abi(), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()) + mmioRead(hmmio.param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), psznewfilename.into_param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(std::ptr::null())), fdwrename) + mmioRenameA(pszfilename.param().abi(), psznewfilename.param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(std::ptr::null())), fdwrename) } #[inline] pub unsafe fn mmioRenameW(pszfilename: P0, psznewfilename: P1, pmmioinfo: Option<*const MMIOINFO>, fdwrename: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), psznewfilename.into_param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(std::ptr::null())), fdwrename) + mmioRenameW(pszfilename.param().abi(), psznewfilename.param().abi(), core::mem::transmute(pmmioinfo.unwrap_or(std::ptr::null())), fdwrename) } #[inline] pub unsafe fn mmioSeek(hmmio: P0, loffset: i32, iorigin: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioSeek(hmmio : HMMIO, loffset : i32, iorigin : i32) -> i32); - mmioSeek(hmmio.into_param().abi(), loffset, iorigin) + mmioSeek(hmmio.param().abi(), loffset, iorigin) } #[inline] pub unsafe fn mmioSendMessage(hmmio: P0, umsg: u32, lparam1: P1, lparam2: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hmmio.into_param().abi(), umsg, lparam1.into_param().abi(), lparam2.into_param().abi()) + mmioSendMessage(hmmio.param().abi(), umsg, lparam1.param().abi(), lparam2.param().abi()) } #[inline] pub unsafe fn mmioSetBuffer(hmmio: P0, pchbuffer: Option<&mut [u8]>, fubuffer: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioSetBuffer(hmmio : HMMIO, pchbuffer : windows_core::PSTR, cchbuffer : i32, fubuffer : u32) -> u32); - mmioSetBuffer(hmmio.into_param().abi(), 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) + mmioSetBuffer(hmmio.param().abi(), 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: P0, pmmioinfo: *const MMIOINFO, fuinfo: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioSetInfo(hmmio : HMMIO, pmmioinfo : *const MMIOINFO, fuinfo : u32) -> u32); - mmioSetInfo(hmmio.into_param().abi(), pmmioinfo, fuinfo) + mmioSetInfo(hmmio.param().abi(), pmmioinfo, fuinfo) } #[inline] pub unsafe fn mmioStringToFOURCCA(sz: P0, uflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioStringToFOURCCA(sz : windows_core::PCSTR, uflags : u32) -> u32); - mmioStringToFOURCCA(sz.into_param().abi(), uflags) + mmioStringToFOURCCA(sz.param().abi(), uflags) } #[inline] pub unsafe fn mmioStringToFOURCCW(sz: P0, uflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioStringToFOURCCW(sz : windows_core::PCWSTR, uflags : u32) -> u32); - mmioStringToFOURCCW(sz.into_param().abi(), uflags) + mmioStringToFOURCCW(sz.param().abi(), uflags) } #[inline] pub unsafe fn mmioWrite(hmmio: P0, pch: &[u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winmm.dll" "system" fn mmioWrite(hmmio : HMMIO, pch : windows_core::PCSTR, cch : i32) -> i32); - mmioWrite(hmmio.into_param().abi(), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()) + mmioWrite(hmmio.param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), appname.into_param().abi(), flags, filehandle) + sndOpenSound(eventname.param().abi(), appname.param().abi(), flags, filehandle) } windows_core::imp::define_interface!(IAVIEditStream, IAVIEditStream_Vtbl, 0x00020024_0000_0000_c000_000000000046); windows_core::imp::interface_hierarchy!(IAVIEditStream, windows_core::IUnknown); @@ -1246,9 +1246,9 @@ impl IAVIEditStream { } pub unsafe fn Paste(&self, plpos: *mut i32, pllength: *mut i32, pstream: P0, lstart: i32, lend: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self), plpos, pllength, pstream.into_param().abi(), lstart, lend).ok() + (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self), plpos, pllength, pstream.param().abi(), lstart, lend).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1321,24 +1321,24 @@ impl IAVIPersistFile { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Load(&self, pszfilename: P0, dwmode: super::super::System::Com::STGM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), dwmode).ok() + (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), dwmode).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Save(&self, pszfilename: P0, fremember: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), fremember.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), fremember.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveCompleted(&self, pszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveCompleted)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SaveCompleted)(windows_core::Interface::as_raw(self), pszfilename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCurFile(&self) -> windows_core::Result { @@ -1360,10 +1360,10 @@ windows_core::imp::interface_hierarchy!(IAVIStream, windows_core::IUnknown); impl IAVIStream { pub unsafe fn Create(&self, lparam1: P0, lparam2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), lparam1.into_param().abi(), lparam2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), lparam1.param().abi(), lparam2.param().abi()).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), psi, lsize).ok() 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 1e57abe283..80ad813666 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs @@ -3,20 +3,20 @@ windows_core::imp::interface_hierarchy!(IPhotoAcquire, windows_core::IUnknown); impl IPhotoAcquire { pub unsafe fn CreatePhotoSource(&self, pszdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePhotoSource)(windows_core::Interface::as_raw(self), pszdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePhotoSource)(windows_core::Interface::as_raw(self), pszdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Acquire(&self, pphotoacquiresource: P0, fshowprogress: P1, hwndparent: P2, pszapplicationname: P3, pphotoacquireprogresscb: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).Acquire)(windows_core::Interface::as_raw(self), pphotoacquiresource.into_param().abi(), fshowprogress.into_param().abi(), hwndparent.into_param().abi(), pszapplicationname.into_param().abi(), pphotoacquireprogresscb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Acquire)(windows_core::Interface::as_raw(self), pphotoacquiresource.param().abi(), fshowprogress.param().abi(), hwndparent.param().abi(), pszapplicationname.param().abi(), pphotoacquireprogresscb.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumResults(&self) -> windows_core::Result { @@ -39,21 +39,21 @@ windows_core::imp::interface_hierarchy!(IPhotoAcquireDeviceSelectionDialog, wind impl IPhotoAcquireDeviceSelectionDialog { pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn SetSubmitButtonText(&self, pszsubmitbuttontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubmitButtonText)(windows_core::Interface::as_raw(self), pszsubmitbuttontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubmitButtonText)(windows_core::Interface::as_raw(self), pszsubmitbuttontext.param().abi()).ok() } pub unsafe fn DoModal(&self, hwndparent: P0, dwdeviceflags: u32, pbstrdeviceid: Option<*mut windows_core::BSTR>, pndevicetype: Option<*mut DEVICE_SELECTION_DEVICE_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwdeviceflags, core::mem::transmute(pbstrdeviceid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pndevicetype.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwdeviceflags, core::mem::transmute(pbstrdeviceid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pndevicetype.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -135,25 +135,25 @@ windows_core::imp::interface_hierarchy!(IPhotoAcquireOptionsDialog, windows_core impl IPhotoAcquireOptionsDialog { pub unsafe fn Initialize(&self, pszregistryroot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszregistryroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszregistryroot.param().abi()).ok() } pub unsafe fn Create(&self, hwndparent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), &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: P0, ppnreturncode: Option<*mut isize>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(ppnreturncode.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DoModal)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(ppnreturncode.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SaveData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveData)(windows_core::Interface::as_raw(self)).ok() @@ -173,29 +173,29 @@ windows_core::imp::interface_hierarchy!(IPhotoAcquirePlugin, windows_core::IUnkn impl IPhotoAcquirePlugin { pub unsafe fn Initialize(&self, pphotoacquiresource: P0, pphotoacquireprogresscb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pphotoacquiresource.into_param().abi(), pphotoacquireprogresscb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pphotoacquiresource.param().abi(), pphotoacquireprogresscb.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn ProcessItem(&self, dwacquirestage: u32, pphotoacquireitem: P0, poriginalitemstream: P1, pszfinalfilename: P2, ppropertystore: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessItem)(windows_core::Interface::as_raw(self), dwacquirestage, pphotoacquireitem.into_param().abi(), poriginalitemstream.into_param().abi(), pszfinalfilename.into_param().abi(), ppropertystore.into_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), hr).ok() } pub unsafe fn DisplayConfigureDialog(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayConfigureDialog)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayConfigureDialog)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } } #[repr(C)] @@ -218,72 +218,72 @@ impl IPhotoAcquireProgressCB { } pub unsafe fn StartEnumeration(&self, pphotoacquiresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartEnumeration)(windows_core::Interface::as_raw(self), pphotoacquiresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartEnumeration)(windows_core::Interface::as_raw(self), pphotoacquiresource.param().abi()).ok() } pub unsafe fn FoundItem(&self, pphotoacquireitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FoundItem)(windows_core::Interface::as_raw(self), pphotoacquireitem.into_param().abi()).ok() + (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), hr).ok() } pub unsafe fn StartTransfer(&self, pphotoacquiresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartTransfer)(windows_core::Interface::as_raw(self), pphotoacquiresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartTransfer)(windows_core::Interface::as_raw(self), pphotoacquiresource.param().abi()).ok() } pub unsafe fn StartItemTransfer(&self, nitemindex: u32, pphotoacquireitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartItemTransfer)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DirectoryCreated)(windows_core::Interface::as_raw(self), pszdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DirectoryCreated)(windows_core::Interface::as_raw(self), pszdirectory.param().abi()).ok() } pub unsafe fn UpdateTransferPercent(&self, foverall: P0, npercent: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateTransferPercent)(windows_core::Interface::as_raw(self), foverall.into_param().abi(), npercent).ok() + (windows_core::Interface::vtable(self).UpdateTransferPercent)(windows_core::Interface::as_raw(self), foverall.param().abi(), npercent).ok() } pub unsafe fn EndItemTransfer(&self, nitemindex: u32, pphotoacquireitem: P0, hr: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndItemTransfer)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.into_param().abi(), 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), hr).ok() } pub unsafe fn StartDelete(&self, pphotoacquiresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartDelete)(windows_core::Interface::as_raw(self), pphotoacquiresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartDelete)(windows_core::Interface::as_raw(self), pphotoacquiresource.param().abi()).ok() } pub unsafe fn StartItemDelete(&self, nitemindex: u32, pphotoacquireitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartItemDelete)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.into_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), npercent).ok() } pub unsafe fn EndItemDelete(&self, nitemindex: u32, pphotoacquireitem: P0, hr: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndItemDelete)(windows_core::Interface::as_raw(self), nitemindex, pphotoacquireitem.into_param().abi(), 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), hr).ok() @@ -297,16 +297,16 @@ impl IPhotoAcquireProgressCB { } pub unsafe fn ErrorAdvise(&self, hr: windows_core::HRESULT, pszerrormessage: P0, nmessagetype: ERROR_ADVISE_MESSAGE_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ErrorAdvise)(windows_core::Interface::as_raw(self), hr, pszerrormessage.into_param().abi(), 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__) } pub unsafe fn GetUserInput(&self, riidtype: *const windows_core::GUID, punknown: P0, ppropvarresult: *mut windows_core::PROPVARIANT, ppropvardefault: Option<*const windows_core::PROPVARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetUserInput)(windows_core::Interface::as_raw(self), riidtype, punknown.into_param().abi(), core::mem::transmute(ppropvarresult), core::mem::transmute(ppropvardefault.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).ok() } } #[repr(C)] @@ -337,33 +337,33 @@ windows_core::imp::interface_hierarchy!(IPhotoAcquireSettings, windows_core::IUn impl IPhotoAcquireSettings { pub unsafe fn InitializeFromRegistry(&self, pszregistrykey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromRegistry)(windows_core::Interface::as_raw(self), pszregistrykey.into_param().abi()).ok() + (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), dwphotoacquireflags).ok() } pub unsafe fn SetOutputFilenameTemplate(&self, psztemplate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFilenameTemplate)(windows_core::Interface::as_raw(self), psztemplate.into_param().abi()).ok() + (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), dwwidth).ok() } pub unsafe fn SetSequenceZeroPadding(&self, fzeropad: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSequenceZeroPadding)(windows_core::Interface::as_raw(self), fzeropad.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSequenceZeroPadding)(windows_core::Interface::as_raw(self), fzeropad.param().abi()).ok() } pub unsafe fn SetGroupTag(&self, pszgrouptag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroupTag)(windows_core::Interface::as_raw(self), pszgrouptag.into_param().abi()).ok() + (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), pftacquisitiontime).ok() @@ -423,10 +423,10 @@ impl IPhotoAcquireSource { } pub unsafe fn InitializeItemList(&self, fforceenumeration: P0, pphotoacquireprogresscb: P1, pnitemcount: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeItemList)(windows_core::Interface::as_raw(self), fforceenumeration.into_param().abi(), pphotoacquireprogresscb.into_param().abi(), core::mem::transmute(pnitemcount.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).InitializeItemList)(windows_core::Interface::as_raw(self), fforceenumeration.param().abi(), pphotoacquireprogresscb.param().abi(), core::mem::transmute(pnitemcount.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetItemCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -468,9 +468,9 @@ windows_core::imp::interface_hierarchy!(IPhotoProgressActionCB, windows_core::IU impl IPhotoProgressActionCB { pub unsafe fn DoAction(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoAction)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DoAction)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } } #[repr(C)] @@ -483,9 +483,9 @@ windows_core::imp::interface_hierarchy!(IPhotoProgressDialog, windows_core::IUnk impl IPhotoProgressDialog { pub unsafe fn Create(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } pub unsafe fn GetWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -496,33 +496,33 @@ impl IPhotoProgressDialog { } pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowCheckbox)(windows_core::Interface::as_raw(self), ncheckboxid, fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowCheckbox)(windows_core::Interface::as_raw(self), ncheckboxid, fshow.param().abi()).ok() } pub unsafe fn SetCheckboxText(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckboxText)(windows_core::Interface::as_raw(self), ncheckboxid, pszcheckboxtext.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckboxCheck)(windows_core::Interface::as_raw(self), ncheckboxid, fchecked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCheckboxCheck)(windows_core::Interface::as_raw(self), ncheckboxid, fchecked.param().abi()).ok() } pub unsafe fn SetCheckboxTooltip(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtooltiptext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckboxTooltip)(windows_core::Interface::as_raw(self), ncheckboxid, pszcheckboxtooltiptext.into_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__ = std::mem::zeroed(); @@ -530,44 +530,44 @@ impl IPhotoProgressDialog { } pub unsafe fn SetCaption(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetImage(&self, nimagetype: PROGRESS_DIALOG_IMAGE_TYPE, hicon: P0, hbitmap: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), nimagetype, hicon.into_param().abi(), hbitmap.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), nimagetype, hicon.param().abi(), hbitmap.param().abi()).ok() } pub unsafe fn SetPercentComplete(&self, npercent: i32) -> windows_core::Result<()> { (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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProgressText)(windows_core::Interface::as_raw(self), pszprogresstext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProgressText)(windows_core::Interface::as_raw(self), pszprogresstext.param().abi()).ok() } pub unsafe fn SetActionLinkCallback(&self, pphotoprogressactioncb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActionLinkCallback)(windows_core::Interface::as_raw(self), pphotoprogressactioncb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActionLinkCallback)(windows_core::Interface::as_raw(self), pphotoprogressactioncb.param().abi()).ok() } pub unsafe fn SetActionLinkText(&self, pszcaption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActionLinkText)(windows_core::Interface::as_raw(self), pszcaption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActionLinkText)(windows_core::Interface::as_raw(self), pszcaption.param().abi()).ok() } pub unsafe fn ShowActionLink(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowActionLink)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowActionLink)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn IsCancelled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -575,9 +575,9 @@ impl IPhotoProgressDialog { } pub unsafe fn GetUserInput(&self, riidtype: *const windows_core::GUID, punknown: P0, ppropvarresult: *mut windows_core::PROPVARIANT, ppropvardefault: Option<*const windows_core::PROPVARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetUserInput)(windows_core::Interface::as_raw(self), riidtype, punknown.into_param().abi(), core::mem::transmute(ppropvarresult), core::mem::transmute(ppropvardefault.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).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 c6ade5abff..0a1c8aebcd 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -57,9 +57,9 @@ impl ISpAudio { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -154,16 +154,16 @@ windows_core::imp::interface_hierarchy!(ISpCFGInterpreter, windows_core::IUnknow impl ISpCFGInterpreter { pub unsafe fn InitGrammar(&self, pszgrammarname: P0, pvgrammardata: *const *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitGrammar)(windows_core::Interface::as_raw(self), pszgrammarname.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Interpret)(windows_core::Interface::as_raw(self), pphrase.into_param().abi(), ulfirstelement, ulcountofelements, psite.into_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)] @@ -183,10 +183,10 @@ impl ISpCFGInterpreterSite { } pub unsafe fn GetResourceValue(&self, pszresourcename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceValue)(windows_core::Interface::as_raw(self), pszresourcename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetResourceValue)(windows_core::Interface::as_raw(self), pszresourcename.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -201,21 +201,21 @@ windows_core::imp::interface_hierarchy!(ISpContainerLexicon, windows_core::IUnkn impl ISpContainerLexicon { pub unsafe fn GetPronunciations(&self, pszword: P0, langid: u16, dwflags: u32, pwordpronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetPronunciations)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), langid, dwflags, pwordpronunciationlist).ok() + (windows_core::Interface::vtable(self).base__.GetPronunciations)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, dwflags, pwordpronunciationlist).ok() } pub unsafe fn AddPronunciation(&self, pszword: P0, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: Option<*const u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPronunciation)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.AddPronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn RemovePronunciation(&self, pszword: P0, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: Option<*const u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemovePronunciation)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.RemovePronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn GetGeneration(&self, pdwgeneration: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetGeneration)(windows_core::Interface::as_raw(self), pdwgeneration).ok() @@ -228,9 +228,9 @@ impl ISpContainerLexicon { } pub unsafe fn AddLexicon(&self, paddlexicon: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddLexicon)(windows_core::Interface::as_raw(self), paddlexicon.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).AddLexicon)(windows_core::Interface::as_raw(self), paddlexicon.param().abi(), dwflags).ok() } } #[repr(C)] @@ -243,67 +243,67 @@ windows_core::imp::interface_hierarchy!(ISpDataKey, windows_core::IUnknown); impl ISpDataKey { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), cbdata, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pcbdata, pdata).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pcbdata, pdata).ok() } pub unsafe fn SetStringValue(&self, pszvaluename: P0, pszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pszvalue.param().abi()).ok() } pub unsafe fn GetStringValue(&self, pszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetDWORD(&self, pszvaluename: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pdwvalue).ok() + (windows_core::Interface::vtable(self).GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pdwvalue).ok() } pub unsafe fn OpenKey(&self, pszsubkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateKey(&self, pszsubkey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteKey(&self, pszsubkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi()).ok() } pub unsafe fn DeleteValue(&self, pszvaluename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi()).ok() } pub unsafe fn EnumKeys(&self, index: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -351,19 +351,19 @@ windows_core::imp::interface_hierarchy!(ISpEnginePronunciation, windows_core::IU impl ISpEnginePronunciation { pub unsafe fn Normalize(&self, pszword: P0, pszleftcontext: P1, pszrightcontext: P2, langid: u16, pnormalizationlist: *mut SPNORMALIZATIONLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), pszleftcontext.into_param().abi(), pszrightcontext.into_param().abi(), langid, pnormalizationlist).ok() + (windows_core::Interface::vtable(self).Normalize)(windows_core::Interface::as_raw(self), pszword.param().abi(), pszleftcontext.param().abi(), pszrightcontext.param().abi(), langid, pnormalizationlist).ok() } pub unsafe fn GetPronunciations(&self, pszword: P0, pszleftcontext: P1, pszrightcontext: P2, langid: u16, penginepronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), pszleftcontext.into_param().abi(), pszrightcontext.into_param().abi(), langid, penginepronunciationlist).ok() + (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.param().abi(), pszleftcontext.param().abi(), pszrightcontext.param().abi(), langid, penginepronunciationlist).ok() } } #[repr(C)] @@ -377,10 +377,10 @@ windows_core::imp::interface_hierarchy!(ISpErrorLog, windows_core::IUnknown); impl ISpErrorLog { pub unsafe fn AddError(&self, llinenumber: i32, hr: windows_core::HRESULT, pszdescription: P0, pszhelpfile: P1, dwhelpcontext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddError)(windows_core::Interface::as_raw(self), llinenumber, hr, pszdescription.into_param().abi(), pszhelpfile.into_param().abi(), 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)] @@ -409,32 +409,32 @@ windows_core::imp::interface_hierarchy!(ISpEventSource, windows_core::IUnknown, impl ISpEventSource { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.param().abi()).ok() } pub unsafe fn SetNotifyWindowMessage(&self, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackFunction(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackInterface(&self, pspcallback: P0, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyWin32Event(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetNotifyWin32Event)(windows_core::Interface::as_raw(self)).ok() @@ -467,32 +467,32 @@ windows_core::imp::interface_hierarchy!(ISpEventSource2, windows_core::IUnknown, impl ISpEventSource2 { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.param().abi()).ok() } pub unsafe fn SetNotifyWindowMessage(&self, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackFunction(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackInterface(&self, pspcallback: P0, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyWin32Event(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SetNotifyWin32Event)(windows_core::Interface::as_raw(self)).ok() @@ -529,47 +529,47 @@ impl ISpGramCompBackend { } pub unsafe fn GetRule(&self, pszrulename: P0, dwruleid: u32, dwattributes: u32, fcreateifnotexist: P1, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetRule)(windows_core::Interface::as_raw(self), pszrulename.into_param().abi(), dwruleid, dwattributes, fcreateifnotexist.into_param().abi(), phinitialstate).ok() + (windows_core::Interface::vtable(self).base__.GetRule)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), dwruleid, dwattributes, fcreateifnotexist.param().abi(), phinitialstate).ok() } pub unsafe fn ClearRule(&self, hstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearRule)(windows_core::Interface::as_raw(self), hstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ClearRule)(windows_core::Interface::as_raw(self), hstate.param().abi()).ok() } pub unsafe fn CreateNewState(&self, hstate: P0, phstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateNewState)(windows_core::Interface::as_raw(self), hstate.into_param().abi(), phstate).ok() + (windows_core::Interface::vtable(self).base__.CreateNewState)(windows_core::Interface::as_raw(self), hstate.param().abi(), phstate).ok() } pub unsafe fn AddWordTransition(&self, hfromstate: P0, htostate: P1, psz: P2, pszseparators: P3, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddWordTransition)(windows_core::Interface::as_raw(self), hfromstate.into_param().abi(), htostate.into_param().abi(), psz.into_param().abi(), pszseparators.into_param().abi(), ewordtype, weight, ppropinfo).ok() + (windows_core::Interface::vtable(self).base__.AddWordTransition)(windows_core::Interface::as_raw(self), hfromstate.param().abi(), htostate.param().abi(), psz.param().abi(), pszseparators.param().abi(), ewordtype, weight, ppropinfo).ok() } pub unsafe fn AddRuleTransition(&self, hfromstate: P0, htostate: P1, hrule: P2, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddRuleTransition)(windows_core::Interface::as_raw(self), hfromstate.into_param().abi(), htostate.into_param().abi(), hrule.into_param().abi(), weight, ppropinfo).ok() + (windows_core::Interface::vtable(self).base__.AddRuleTransition)(windows_core::Interface::as_raw(self), hfromstate.param().abi(), htostate.param().abi(), hrule.param().abi(), weight, ppropinfo).ok() } pub unsafe fn AddResource(&self, hrulestate: P0, pszresourcename: P1, pszresourcevalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddResource)(windows_core::Interface::as_raw(self), hrulestate.into_param().abi(), pszresourcename.into_param().abi(), pszresourcevalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddResource)(windows_core::Interface::as_raw(self), hrulestate.param().abi(), pszresourcename.param().abi(), pszresourcevalue.param().abi()).ok() } pub unsafe fn Commit(&self, dwreserved: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Commit)(windows_core::Interface::as_raw(self), dwreserved).ok() @@ -577,10 +577,10 @@ impl ISpGramCompBackend { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSaveObjects(&self, pstream: P0, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSaveObjects)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), perrorlog.into_param().abi()).ok() + (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), pbinarydata).ok() @@ -603,47 +603,47 @@ impl ISpGrammarBuilder { } pub unsafe fn GetRule(&self, pszrulename: P0, dwruleid: u32, dwattributes: u32, fcreateifnotexist: P1, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), pszrulename.into_param().abi(), dwruleid, dwattributes, fcreateifnotexist.into_param().abi(), phinitialstate).ok() + (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), dwruleid, dwattributes, fcreateifnotexist.param().abi(), phinitialstate).ok() } pub unsafe fn ClearRule(&self, hstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearRule)(windows_core::Interface::as_raw(self), hstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ClearRule)(windows_core::Interface::as_raw(self), hstate.param().abi()).ok() } pub unsafe fn CreateNewState(&self, hstate: P0, phstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateNewState)(windows_core::Interface::as_raw(self), hstate.into_param().abi(), phstate).ok() + (windows_core::Interface::vtable(self).CreateNewState)(windows_core::Interface::as_raw(self), hstate.param().abi(), phstate).ok() } pub unsafe fn AddWordTransition(&self, hfromstate: P0, htostate: P1, psz: P2, pszseparators: P3, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), hfromstate.into_param().abi(), htostate.into_param().abi(), psz.into_param().abi(), pszseparators.into_param().abi(), ewordtype, weight, ppropinfo).ok() + (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), hfromstate.param().abi(), htostate.param().abi(), psz.param().abi(), pszseparators.param().abi(), ewordtype, weight, ppropinfo).ok() } pub unsafe fn AddRuleTransition(&self, hfromstate: P0, htostate: P1, hrule: P2, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), hfromstate.into_param().abi(), htostate.into_param().abi(), hrule.into_param().abi(), weight, ppropinfo).ok() + (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), hfromstate.param().abi(), htostate.param().abi(), hrule.param().abi(), weight, ppropinfo).ok() } pub unsafe fn AddResource(&self, hrulestate: P0, pszresourcename: P1, pszresourcevalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), hrulestate.into_param().abi(), pszresourcename.into_param().abi(), pszresourcevalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), hrulestate.param().abi(), 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), dwreserved).ok() @@ -666,11 +666,11 @@ windows_core::imp::interface_hierarchy!(ISpGrammarBuilder2, windows_core::IUnkno impl ISpGrammarBuilder2 { pub unsafe fn AddTextSubset(&self, hfromstate: P0, htostate: P1, psz: P2, ematchmode: SPMATCHINGMODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextSubset)(windows_core::Interface::as_raw(self), hfromstate.into_param().abi(), htostate.into_param().abi(), psz.into_param().abi(), ematchmode).ok() + (windows_core::Interface::vtable(self).AddTextSubset)(windows_core::Interface::as_raw(self), hfromstate.param().abi(), htostate.param().abi(), 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), phoneticalphabet).ok() @@ -688,13 +688,13 @@ impl ISpGrammarCompiler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompileStream(&self, psource: P0, pdest: P1, pheader: P2, preserved: P3, perrorlog: P4, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CompileStream)(windows_core::Interface::as_raw(self), psource.into_param().abi(), pdest.into_param().abi(), pheader.into_param().abi(), preserved.into_param().abi(), perrorlog.into_param().abi(), 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)] @@ -710,15 +710,15 @@ windows_core::imp::interface_hierarchy!(ISpITNProcessor, windows_core::IUnknown) impl ISpITNProcessor { pub unsafe fn LoadITNGrammar(&self, pszclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadITNGrammar)(windows_core::Interface::as_raw(self), pszclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadITNGrammar)(windows_core::Interface::as_raw(self), pszclsid.param().abi()).ok() } pub unsafe fn ITNPhrase(&self, pphrase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ITNPhrase)(windows_core::Interface::as_raw(self), pphrase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ITNPhrase)(windows_core::Interface::as_raw(self), pphrase.param().abi()).ok() } } #[repr(C)] @@ -732,21 +732,21 @@ windows_core::imp::interface_hierarchy!(ISpLexicon, windows_core::IUnknown); impl ISpLexicon { pub unsafe fn GetPronunciations(&self, pszword: P0, langid: u16, dwflags: u32, pwordpronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), langid, dwflags, pwordpronunciationlist).ok() + (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, dwflags, pwordpronunciationlist).ok() } pub unsafe fn AddPronunciation(&self, pszword: P0, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: Option<*const u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn RemovePronunciation(&self, pszword: P0, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: Option<*const u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), pszword.param().abi(), langid, epartofspeech, core::mem::transmute(pszpronunciation.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn GetGeneration(&self, pdwgeneration: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGeneration)(windows_core::Interface::as_raw(self), pdwgeneration).ok() @@ -793,9 +793,9 @@ impl ISpMMSysAudio { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -892,10 +892,10 @@ windows_core::imp::define_interface!(ISpNotifyCallback, ISpNotifyCallback_Vtbl); impl ISpNotifyCallback { pub unsafe fn NotifyCallback(&self, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyCallback)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyCallback)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -919,32 +919,32 @@ windows_core::imp::interface_hierarchy!(ISpNotifySource, windows_core::IUnknown) impl ISpNotifySource { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.param().abi()).ok() } pub unsafe fn SetNotifyWindowMessage(&self, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackFunction(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackInterface(&self, pspcallback: P0, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyWin32Event(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetNotifyWin32Event)(windows_core::Interface::as_raw(self)).ok() @@ -975,33 +975,33 @@ impl ISpNotifyTranslator { } pub unsafe fn InitWindowMessage(&self, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitWindowMessage)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitWindowMessage)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn InitCallback(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitCallback)(windows_core::Interface::as_raw(self), pfncallback, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitCallback)(windows_core::Interface::as_raw(self), pfncallback, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn InitSpNotifyCallback(&self, pspcallback: P0, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitSpNotifyCallback)(windows_core::Interface::as_raw(self), pspcallback.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitSpNotifyCallback)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn InitWin32Event(&self, hevent: P0, fclosehandleonrelease: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitWin32Event)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), fclosehandleonrelease.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitWin32Event)(windows_core::Interface::as_raw(self), hevent.param().abi(), fclosehandleonrelease.param().abi()).ok() } pub unsafe fn Wait(&self, dwmilliseconds: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Wait)(windows_core::Interface::as_raw(self), dwmilliseconds).ok() @@ -1025,67 +1025,67 @@ windows_core::imp::interface_hierarchy!(ISpObjectToken, windows_core::IUnknown, impl ISpObjectToken { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), cbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pcbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pcbdata, pdata).ok() } pub unsafe fn SetStringValue(&self, pszvaluename: P0, pszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pszvalue.param().abi()).ok() } pub unsafe fn GetStringValue(&self, pszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetDWORD(&self, pszvaluename: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), dwvalue).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pdwvalue).ok() + (windows_core::Interface::vtable(self).base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pdwvalue).ok() } pub unsafe fn OpenKey(&self, pszsubkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateKey(&self, pszsubkey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteKey(&self, pszsubkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi()).ok() } pub unsafe fn DeleteValue(&self, pszvaluename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi()).ok() } pub unsafe fn EnumKeys(&self, index: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1097,11 +1097,11 @@ impl ISpObjectToken { } pub unsafe fn SetId(&self, pszcategoryid: P0, psztokenid: P1, fcreateifnotexist: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), pszcategoryid.into_param().abi(), psztokenid.into_param().abi(), fcreateifnotexist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), pszcategoryid.param().abi(), psztokenid.param().abi(), fcreateifnotexist.param().abi()).ok() } pub unsafe fn GetId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1113,49 +1113,49 @@ impl ISpObjectToken { } pub unsafe fn CreateInstance(&self, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), dwclscontext, riid, ppvobject).ok() + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), dwclscontext, riid, ppvobject).ok() } pub unsafe fn GetStorageFileName(&self, clsidcaller: *const windows_core::GUID, pszvaluename: P0, pszfilenamespecifier: P1, nfolder: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszvaluename.into_param().abi(), pszfilenamespecifier.into_param().abi(), 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: P0, fdeletefile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszkeyname.into_param().abi(), fdeletefile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszkeyname.param().abi(), fdeletefile.param().abi()).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(std::ptr::null()))).ok() } pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: P1, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.into_param().abi(), pvextradata, cbextradata, punkobject.into_param().abi(), pfsupported).ok() + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), pvextradata, cbextradata, punkobject.param().abi(), pfsupported).ok() } pub unsafe fn DisplayUI(&self, hwndparent: P0, psztitle: P1, psztypeofui: P2, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), psztitle.into_param().abi(), psztypeofui.into_param().abi(), pvextradata, cbextradata, punkobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), psztitle.param().abi(), psztypeofui.param().abi(), pvextradata, cbextradata, punkobject.param().abi()).ok() } pub unsafe fn MatchesAttributes(&self, pszattributes: P0, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MatchesAttributes)(windows_core::Interface::as_raw(self), pszattributes.into_param().abi(), pfmatches).ok() + (windows_core::Interface::vtable(self).MatchesAttributes)(windows_core::Interface::as_raw(self), pszattributes.param().abi(), pfmatches).ok() } } #[repr(C)] @@ -1177,67 +1177,67 @@ windows_core::imp::interface_hierarchy!(ISpObjectTokenCategory, windows_core::IU impl ISpObjectTokenCategory { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), cbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pcbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pcbdata, pdata).ok() } pub unsafe fn SetStringValue(&self, pszvaluename: P0, pszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pszvalue.param().abi()).ok() } pub unsafe fn GetStringValue(&self, pszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetDWORD(&self, pszvaluename: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), dwvalue).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pdwvalue).ok() + (windows_core::Interface::vtable(self).base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pdwvalue).ok() } pub unsafe fn OpenKey(&self, pszsubkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateKey(&self, pszsubkey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteKey(&self, pszsubkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi()).ok() } pub unsafe fn DeleteValue(&self, pszvaluename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi()).ok() } pub unsafe fn EnumKeys(&self, index: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1249,10 +1249,10 @@ impl ISpObjectTokenCategory { } pub unsafe fn SetId(&self, pszcategoryid: P0, fcreateifnotexist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), pszcategoryid.into_param().abi(), fcreateifnotexist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), pszcategoryid.param().abi(), fcreateifnotexist.param().abi()).ok() } pub unsafe fn GetId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1264,17 +1264,17 @@ impl ISpObjectTokenCategory { } pub unsafe fn EnumTokens(&self, pzsreqattribs: P0, pszoptattribs: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumTokens)(windows_core::Interface::as_raw(self), pzsreqattribs.into_param().abi(), pszoptattribs.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumTokens)(windows_core::Interface::as_raw(self), pzsreqattribs.param().abi(), pszoptattribs.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultTokenId(&self, psztokenid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultTokenId)(windows_core::Interface::as_raw(self), psztokenid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultTokenId)(windows_core::Interface::as_raw(self), psztokenid.param().abi()).ok() } pub unsafe fn GetDefaultTokenId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1316,33 +1316,33 @@ impl ISpObjectTokenEnumBuilder { } pub unsafe fn SetAttribs(&self, pszreqattribs: P0, pszoptattribs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttribs)(windows_core::Interface::as_raw(self), pszreqattribs.into_param().abi(), pszoptattribs.into_param().abi()).ok() + (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), ctokens, core::mem::transmute(ptoken)).ok() } pub unsafe fn AddTokensFromDataKey(&self, pdatakey: P0, pszsubkey: P1, pszcategoryid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTokensFromDataKey)(windows_core::Interface::as_raw(self), pdatakey.into_param().abi(), pszsubkey.into_param().abi(), pszcategoryid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTokensFromDataKey)(windows_core::Interface::as_raw(self), pdatakey.param().abi(), pszsubkey.param().abi(), pszcategoryid.param().abi()).ok() } pub unsafe fn AddTokensFromTokenEnum(&self, ptokenenum: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTokensFromTokenEnum)(windows_core::Interface::as_raw(self), ptokenenum.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTokensFromTokenEnum)(windows_core::Interface::as_raw(self), ptokenenum.param().abi()).ok() } pub unsafe fn Sort(&self, psztokenidtolistfirst: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Sort)(windows_core::Interface::as_raw(self), psztokenidtolistfirst.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Sort)(windows_core::Interface::as_raw(self), psztokenidtolistfirst.param().abi()).ok() } } #[repr(C)] @@ -1359,67 +1359,67 @@ windows_core::imp::interface_hierarchy!(ISpObjectTokenInit, windows_core::IUnkno impl ISpObjectTokenInit { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), cbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pcbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pcbdata, pdata).ok() } pub unsafe fn SetStringValue(&self, pszvaluename: P0, pszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pszvalue.param().abi()).ok() } pub unsafe fn GetStringValue(&self, pszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetDWORD(&self, pszvaluename: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), dwvalue).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pdwvalue).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pdwvalue).ok() } pub unsafe fn OpenKey(&self, pszsubkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateKey(&self, pszsubkey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteKey(&self, pszsubkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi()).ok() } pub unsafe fn DeleteValue(&self, pszvaluename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi()).ok() } pub unsafe fn EnumKeys(&self, index: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1431,11 +1431,11 @@ impl ISpObjectTokenInit { } pub unsafe fn SetId(&self, pszcategoryid: P0, psztokenid: P1, fcreateifnotexist: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), pszcategoryid.into_param().abi(), psztokenid.into_param().abi(), fcreateifnotexist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), pszcategoryid.param().abi(), psztokenid.param().abi(), fcreateifnotexist.param().abi()).ok() } pub unsafe fn GetId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1447,57 +1447,57 @@ impl ISpObjectTokenInit { } pub unsafe fn CreateInstance(&self, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), dwclscontext, riid, ppvobject).ok() + (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), dwclscontext, riid, ppvobject).ok() } pub unsafe fn GetStorageFileName(&self, clsidcaller: *const windows_core::GUID, pszvaluename: P0, pszfilenamespecifier: P1, nfolder: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszvaluename.into_param().abi(), pszfilenamespecifier.into_param().abi(), nfolder, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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: P0, fdeletefile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszkeyname.into_param().abi(), fdeletefile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveStorageFileName)(windows_core::Interface::as_raw(self), clsidcaller, pszkeyname.param().abi(), fdeletefile.param().abi()).ok() } pub unsafe fn Remove(&self, pclsidcaller: Option<*const windows_core::GUID>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Remove)(windows_core::Interface::as_raw(self), core::mem::transmute(pclsidcaller.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: P1, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.into_param().abi(), pvextradata, cbextradata, punkobject.into_param().abi(), pfsupported).ok() + (windows_core::Interface::vtable(self).base__.IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), pvextradata, cbextradata, punkobject.param().abi(), pfsupported).ok() } pub unsafe fn DisplayUI(&self, hwndparent: P0, psztitle: P1, psztypeofui: P2, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), psztitle.into_param().abi(), psztypeofui.into_param().abi(), pvextradata, cbextradata, punkobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), psztitle.param().abi(), psztypeofui.param().abi(), pvextradata, cbextradata, punkobject.param().abi()).ok() } pub unsafe fn MatchesAttributes(&self, pszattributes: P0, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MatchesAttributes)(windows_core::Interface::as_raw(self), pszattributes.into_param().abi(), pfmatches).ok() + (windows_core::Interface::vtable(self).base__.MatchesAttributes)(windows_core::Interface::as_raw(self), pszattributes.param().abi(), pfmatches).ok() } pub unsafe fn InitFromDataKey(&self, pszcategoryid: P0, psztokenid: P1, pdatakey: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitFromDataKey)(windows_core::Interface::as_raw(self), pszcategoryid.into_param().abi(), psztokenid.into_param().abi(), pdatakey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitFromDataKey)(windows_core::Interface::as_raw(self), pszcategoryid.param().abi(), psztokenid.param().abi(), pdatakey.param().abi()).ok() } } #[repr(C)] @@ -1510,9 +1510,9 @@ windows_core::imp::interface_hierarchy!(ISpObjectWithToken, windows_core::IUnkno impl ISpObjectWithToken { pub unsafe fn SetObjectToken(&self, ptoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObjectToken)(windows_core::Interface::as_raw(self), ptoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObjectToken)(windows_core::Interface::as_raw(self), ptoken.param().abi()).ok() } pub unsafe fn GetObjectToken(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1530,9 +1530,9 @@ windows_core::imp::interface_hierarchy!(ISpPhoneConverter, windows_core::IUnknow impl ISpPhoneConverter { pub unsafe fn SetObjectToken(&self, ptoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetObjectToken)(windows_core::Interface::as_raw(self), ptoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetObjectToken)(windows_core::Interface::as_raw(self), ptoken.param().abi()).ok() } pub unsafe fn GetObjectToken(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1540,10 +1540,10 @@ impl ISpPhoneConverter { } pub unsafe fn PhoneToId(&self, pszphone: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PhoneToId)(windows_core::Interface::as_raw(self), pszphone.into_param().abi(), &mut result__).map(|| result__) + (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), pid, core::mem::transmute(pszphone)).ok() @@ -1573,10 +1573,10 @@ impl ISpPhoneticAlphabetConverter { } pub unsafe fn GetMaxConvertLength(&self, csrclength: u32, bsapi2ups: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxConvertLength)(windows_core::Interface::as_raw(self), csrclength, bsapi2ups.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxConvertLength)(windows_core::Interface::as_raw(self), csrclength, bsapi2ups.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1597,9 +1597,9 @@ impl ISpPhoneticAlphabetSelection { } pub unsafe fn SetAlphabetToUPS(&self, fforceups: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlphabetToUPS)(windows_core::Interface::as_raw(self), fforceups.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlphabetToUPS)(windows_core::Interface::as_raw(self), fforceups.param().abi()).ok() } } #[repr(C)] @@ -1621,9 +1621,9 @@ impl ISpPhrase { } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: P0, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into_param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() @@ -1650,9 +1650,9 @@ impl ISpPhrase2 { } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: P0, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into_param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() @@ -1692,9 +1692,9 @@ impl ISpPhraseAlt { } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: P0, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into_param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() @@ -1725,9 +1725,9 @@ impl ISpPhraseBuilder { } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: P0, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into_param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() @@ -1743,17 +1743,17 @@ impl ISpPhraseBuilder { } pub unsafe fn AddRules(&self, hparent: P0, prule: *const SPPHRASERULE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddRules)(windows_core::Interface::as_raw(self), hparent.into_param().abi(), prule, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddRules)(windows_core::Interface::as_raw(self), hparent.param().abi(), prule, &mut result__).map(|| result__) } pub unsafe fn AddProperties(&self, hparent: P0, pproperty: *const SPPHRASEPROPERTY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddProperties)(windows_core::Interface::as_raw(self), hparent.into_param().abi(), pproperty, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddProperties)(windows_core::Interface::as_raw(self), hparent.param().abi(), 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), creplacements, preplacements).ok() @@ -1790,29 +1790,29 @@ windows_core::imp::interface_hierarchy!(ISpProperties, windows_core::IUnknown); impl ISpProperties { pub unsafe fn SetPropertyNum(&self, pname: P0, lvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyNum)(windows_core::Interface::as_raw(self), pname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyNum)(windows_core::Interface::as_raw(self), pname.into_param().abi(), plvalue).ok() + (windows_core::Interface::vtable(self).GetPropertyNum)(windows_core::Interface::as_raw(self), pname.param().abi(), plvalue).ok() } pub unsafe fn SetPropertyString(&self, pname: P0, pvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyString)(windows_core::Interface::as_raw(self), pname.into_param().abi(), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropertyString)(windows_core::Interface::as_raw(self), pname.param().abi(), pvalue.param().abi()).ok() } pub unsafe fn GetPropertyString(&self, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyString)(windows_core::Interface::as_raw(self), pname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPropertyString)(windows_core::Interface::as_raw(self), pname.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1828,32 +1828,32 @@ windows_core::imp::interface_hierarchy!(ISpRecoContext, windows_core::IUnknown, impl ISpRecoContext { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.param().abi()).ok() } pub unsafe fn SetNotifyWindowMessage(&self, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackFunction(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackInterface(&self, pspcallback: P0, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyWin32Event(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SetNotifyWin32Event)(windows_core::Interface::as_raw(self)).ok() @@ -1904,15 +1904,15 @@ impl ISpRecoContext { } pub unsafe fn Bookmark(&self, options: SPBOOKMARKOPTIONS, ullstreamposition: u64, lparamevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), options, ullstreamposition, lparamevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), options, ullstreamposition, lparamevent.param().abi()).ok() } pub unsafe fn SetAdaptationData(&self, padaptationdata: P0, cch: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), padaptationdata.into_param().abi(), 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), dwreserved).ok() @@ -1922,10 +1922,10 @@ impl ISpRecoContext { } pub unsafe fn SetVoice(&self, pvoice: P0, fallowformatchanges: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVoice)(windows_core::Interface::as_raw(self), pvoice.into_param().abi(), fallowformatchanges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVoice)(windows_core::Interface::as_raw(self), pvoice.param().abi(), fallowformatchanges.param().abi()).ok() } pub unsafe fn GetVoice(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1983,10 +1983,10 @@ impl ISpRecoContext2 { } pub unsafe fn SetAdaptationData2(&self, padaptationdata: P0, cch: u32, ptopicname: P1, eadaptationsettings: u32, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdaptationData2)(windows_core::Interface::as_raw(self), padaptationdata.into_param().abi(), cch, ptopicname.into_param().abi(), eadaptationsettings, 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)] @@ -2004,47 +2004,47 @@ impl ISpRecoGrammar { } pub unsafe fn GetRule(&self, pszrulename: P0, dwruleid: u32, dwattributes: u32, fcreateifnotexist: P1, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetRule)(windows_core::Interface::as_raw(self), pszrulename.into_param().abi(), dwruleid, dwattributes, fcreateifnotexist.into_param().abi(), phinitialstate).ok() + (windows_core::Interface::vtable(self).base__.GetRule)(windows_core::Interface::as_raw(self), pszrulename.param().abi(), dwruleid, dwattributes, fcreateifnotexist.param().abi(), phinitialstate).ok() } pub unsafe fn ClearRule(&self, hstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearRule)(windows_core::Interface::as_raw(self), hstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ClearRule)(windows_core::Interface::as_raw(self), hstate.param().abi()).ok() } pub unsafe fn CreateNewState(&self, hstate: P0, phstate: *mut SPSTATEHANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateNewState)(windows_core::Interface::as_raw(self), hstate.into_param().abi(), phstate).ok() + (windows_core::Interface::vtable(self).base__.CreateNewState)(windows_core::Interface::as_raw(self), hstate.param().abi(), phstate).ok() } pub unsafe fn AddWordTransition(&self, hfromstate: P0, htostate: P1, psz: P2, pszseparators: P3, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddWordTransition)(windows_core::Interface::as_raw(self), hfromstate.into_param().abi(), htostate.into_param().abi(), psz.into_param().abi(), pszseparators.into_param().abi(), ewordtype, weight, ppropinfo).ok() + (windows_core::Interface::vtable(self).base__.AddWordTransition)(windows_core::Interface::as_raw(self), hfromstate.param().abi(), htostate.param().abi(), psz.param().abi(), pszseparators.param().abi(), ewordtype, weight, ppropinfo).ok() } pub unsafe fn AddRuleTransition(&self, hfromstate: P0, htostate: P1, hrule: P2, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddRuleTransition)(windows_core::Interface::as_raw(self), hfromstate.into_param().abi(), htostate.into_param().abi(), hrule.into_param().abi(), weight, ppropinfo).ok() + (windows_core::Interface::vtable(self).base__.AddRuleTransition)(windows_core::Interface::as_raw(self), hfromstate.param().abi(), htostate.param().abi(), hrule.param().abi(), weight, ppropinfo).ok() } pub unsafe fn AddResource(&self, hrulestate: P0, pszresourcename: P1, pszresourcevalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddResource)(windows_core::Interface::as_raw(self), hrulestate.into_param().abi(), pszresourcename.into_param().abi(), pszresourcevalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddResource)(windows_core::Interface::as_raw(self), hrulestate.param().abi(), pszresourcename.param().abi(), pszresourcevalue.param().abi()).ok() } pub unsafe fn Commit(&self, dwreserved: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Commit)(windows_core::Interface::as_raw(self), dwreserved).ok() @@ -2058,47 +2058,47 @@ impl ISpRecoGrammar { } pub unsafe fn LoadCmdFromFile(&self, pszfilename: P0, options: SPLOADOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromFile)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), 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: P0, options: SPLOADOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromObject)(windows_core::Interface::as_raw(self), rcid, pszgrammarname.into_param().abi(), 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: P0, pszresourcename: P1, pszresourcetype: P2, wlanguage: u16, options: SPLOADOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromResource)(windows_core::Interface::as_raw(self), hmodule.into_param().abi(), pszresourcename.into_param().abi(), pszresourcetype.into_param().abi(), wlanguage, options).ok() + (windows_core::Interface::vtable(self).LoadCmdFromResource)(windows_core::Interface::as_raw(self), hmodule.param().abi(), 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), pgrammar, options).ok() } pub unsafe fn LoadCmdFromProprietaryGrammar(&self, rguidparam: *const windows_core::GUID, pszstringparam: P0, pvdataprarm: *const core::ffi::c_void, cbdatasize: u32, options: SPLOADOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromProprietaryGrammar)(windows_core::Interface::as_raw(self), rguidparam, pszstringparam.into_param().abi(), pvdataprarm, cbdatasize, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleState)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), preserved, newstate).ok() + (windows_core::Interface::vtable(self).SetRuleState)(windows_core::Interface::as_raw(self), pszname.param().abi(), 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), ulruleid, newstate).ok() } pub unsafe fn LoadDictation(&self, psztopicname: P0, options: SPLOADOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadDictation)(windows_core::Interface::as_raw(self), psztopicname.into_param().abi(), 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() @@ -2114,9 +2114,9 @@ impl ISpRecoGrammar { } pub unsafe fn IsPronounceable(&self, pszword: P0, pwordpronounceable: *mut SPWORDPRONOUNCEABLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), pszword.into_param().abi(), pwordpronounceable).ok() + (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), pszword.param().abi(), pwordpronounceable).ok() } pub unsafe fn SetGrammarState(&self, egrammarstate: SPGRAMMARSTATE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetGrammarState)(windows_core::Interface::as_raw(self), egrammarstate).ok() @@ -2124,9 +2124,9 @@ impl ISpRecoGrammar { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveCmd(&self, pstream: P0, ppszcomemerrortext: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveCmd)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), core::mem::transmute(ppszcomemerrortext.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SaveCmd)(windows_core::Interface::as_raw(self), pstream.param().abi(), core::mem::transmute(ppszcomemerrortext.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetGrammarState(&self, pegrammarstate: *mut SPGRAMMARSTATE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetGrammarState)(windows_core::Interface::as_raw(self), pegrammarstate).ok() @@ -2165,30 +2165,30 @@ impl ISpRecoGrammar2 { } pub unsafe fn LoadCmdFromFile2(&self, pszfilename: P0, options: SPLOADOPTIONS, pszsharinguri: P1, pszbaseuri: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromFile2)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), options, pszsharinguri.into_param().abi(), pszbaseuri.into_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: P0, pszbaseuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadCmdFromMemory2)(windows_core::Interface::as_raw(self), pgrammar, options, pszsharinguri.into_param().abi(), pszbaseuri.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRulePriority)(windows_core::Interface::as_raw(self), pszrulename.into_param().abi(), ulruleid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleWeight)(windows_core::Interface::as_raw(self), pszrulename.into_param().abi(), ulruleid, 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), flweight).ok() @@ -2196,16 +2196,16 @@ impl ISpRecoGrammar2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetGrammarLoader(&self, ploader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGrammarLoader)(windows_core::Interface::as_raw(self), ploader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGrammarLoader)(windows_core::Interface::as_raw(self), ploader.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_Urlmon")] pub unsafe fn SetSMLSecurityManager(&self, psmlsecuritymanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSMLSecurityManager)(windows_core::Interface::as_raw(self), psmlsecuritymanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSMLSecurityManager)(windows_core::Interface::as_raw(self), psmlsecuritymanager.param().abi()).ok() } } #[repr(C)] @@ -2239,9 +2239,9 @@ impl ISpRecoResult { } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: P0, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into_param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() @@ -2302,9 +2302,9 @@ impl ISpRecoResult2 { } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: P0, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into_param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() @@ -2336,23 +2336,23 @@ impl ISpRecoResult2 { } pub unsafe fn CommitAlternate(&self, pphrasealt: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CommitAlternate)(windows_core::Interface::as_raw(self), pphrasealt.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CommitAlternate)(windows_core::Interface::as_raw(self), pphrasealt.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CommitText(&self, ulstartelement: u32, celements: u32, pszcorrecteddata: P0, ecommitflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitText)(windows_core::Interface::as_raw(self), ulstartelement, celements, pszcorrecteddata.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), pszfeedback.into_param().abi(), fsuccessful.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), pszfeedback.param().abi(), fsuccessful.param().abi()).ok() } } #[repr(C)] @@ -2367,35 +2367,35 @@ windows_core::imp::interface_hierarchy!(ISpRecognizer, windows_core::IUnknown, I impl ISpRecognizer { pub unsafe fn SetPropertyNum(&self, pname: P0, lvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPropertyNum)(windows_core::Interface::as_raw(self), pname.into_param().abi(), lvalue).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetPropertyNum)(windows_core::Interface::as_raw(self), pname.into_param().abi(), plvalue).ok() + (windows_core::Interface::vtable(self).base__.GetPropertyNum)(windows_core::Interface::as_raw(self), pname.param().abi(), plvalue).ok() } pub unsafe fn SetPropertyString(&self, pname: P0, pvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPropertyString)(windows_core::Interface::as_raw(self), pname.into_param().abi(), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPropertyString)(windows_core::Interface::as_raw(self), pname.param().abi(), pvalue.param().abi()).ok() } pub unsafe fn GetPropertyString(&self, pname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyString)(windows_core::Interface::as_raw(self), pname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetPropertyString)(windows_core::Interface::as_raw(self), pname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetRecognizer(&self, precognizer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecognizer)(windows_core::Interface::as_raw(self), precognizer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecognizer)(windows_core::Interface::as_raw(self), precognizer.param().abi()).ok() } pub unsafe fn GetRecognizer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2403,10 +2403,10 @@ impl ISpRecognizer { } pub unsafe fn SetInput(&self, punkinput: P0, fallowformatchanges: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), punkinput.into_param().abi(), fallowformatchanges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInput)(windows_core::Interface::as_raw(self), punkinput.param().abi(), fallowformatchanges.param().abi()).ok() } pub unsafe fn GetInputObjectToken(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2427,9 +2427,9 @@ impl ISpRecognizer { } pub unsafe fn SetRecoProfile(&self, ptoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecoProfile)(windows_core::Interface::as_raw(self), ptoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecoProfile)(windows_core::Interface::as_raw(self), ptoken.param().abi()).ok() } pub unsafe fn IsSharedInstance(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsSharedInstance)(windows_core::Interface::as_raw(self)).ok() @@ -2449,23 +2449,23 @@ impl ISpRecognizer { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.into_param().abi(), pvextradata, cbextradata, pfsupported).ok() + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), pvextradata, cbextradata, pfsupported).ok() } pub unsafe fn DisplayUI(&self, hwndparent: P0, psztitle: P1, psztypeofui: P2, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), psztitle.into_param().abi(), psztypeofui.into_param().abi(), pvextradata, cbextradata).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), psztitle.param().abi(), psztypeofui.param().abi(), pvextradata, cbextradata).ok() } pub unsafe fn EmulateRecognition(&self, pphrase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), pphrase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), pphrase.param().abi()).ok() } } #[repr(C)] @@ -2499,16 +2499,16 @@ windows_core::imp::interface_hierarchy!(ISpRecognizer2, windows_core::IUnknown); impl ISpRecognizer2 { pub unsafe fn EmulateRecognitionEx(&self, pphrase: P0, dwcompareflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmulateRecognitionEx)(windows_core::Interface::as_raw(self), pphrase.into_param().abi(), 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: P0, fadaptfromtrainingdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTrainingState)(windows_core::Interface::as_raw(self), fdoingtraining.into_param().abi(), fadaptfromtrainingdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTrainingState)(windows_core::Interface::as_raw(self), fdoingtraining.param().abi(), fadaptfromtrainingdata.param().abi()).ok() } pub unsafe fn ResetAcousticModelAdaptation(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetAcousticModelAdaptation)(windows_core::Interface::as_raw(self)).ok() @@ -2526,67 +2526,67 @@ windows_core::imp::interface_hierarchy!(ISpRegDataKey, windows_core::IUnknown, I impl ISpRegDataKey { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), cbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pcbdata, pdata).ok() + (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pcbdata, pdata).ok() } pub unsafe fn SetStringValue(&self, pszvaluename: P0, pszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pszvalue.param().abi()).ok() } pub unsafe fn GetStringValue(&self, pszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetStringValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetDWORD(&self, pszvaluename: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), dwvalue).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi(), pdwvalue).ok() + (windows_core::Interface::vtable(self).base__.GetDWORD)(windows_core::Interface::as_raw(self), pszvaluename.param().abi(), pdwvalue).ok() } pub unsafe fn OpenKey(&self, pszsubkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenKey)(windows_core::Interface::as_raw(self), pszsubkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateKey(&self, pszsubkey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteKey(&self, pszsubkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), pszsubkey.param().abi()).ok() } pub unsafe fn DeleteValue(&self, pszvaluename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteValue)(windows_core::Interface::as_raw(self), pszvaluename.param().abi()).ok() } pub unsafe fn EnumKeys(&self, index: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2599,10 +2599,10 @@ impl ISpRegDataKey { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn SetKey(&self, hkey: P0, freadonly: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), hkey.into_param().abi(), freadonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), hkey.param().abi(), freadonly.param().abi()).ok() } } #[repr(C)] @@ -2629,15 +2629,15 @@ impl ISpResourceManager { } pub unsafe fn SetObject(&self, guidserviceid: *const windows_core::GUID, punkobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), guidserviceid, punkobject.into_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: P0, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), guidserviceid, objectclsid, objectiid, freleasewhenlastexternalrefreleased.into_param().abi(), ppobject).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), guidserviceid, objectclsid, objectiid, freleasewhenlastexternalrefreleased.param().abi(), ppobject).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2674,9 +2674,9 @@ impl ISpSRAlternates2 { } pub unsafe fn CommitText(&self, paltrequest: *const SPPHRASEALTREQUEST, pcsznewtext: P0, commitflags: SPCOMMITFLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitText)(windows_core::Interface::as_raw(self), paltrequest, pcsznewtext.into_param().abi(), commitflags).ok() + (windows_core::Interface::vtable(self).CommitText)(windows_core::Interface::as_raw(self), paltrequest, pcsznewtext.param().abi(), commitflags).ok() } } #[repr(C)] @@ -2689,9 +2689,9 @@ windows_core::imp::interface_hierarchy!(ISpSREngine, windows_core::IUnknown); impl ISpSREngine { pub unsafe fn SetSite(&self, psite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSite)(windows_core::Interface::as_raw(self), psite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSite)(windows_core::Interface::as_raw(self), psite.param().abi()).ok() } #[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<()> { @@ -2700,54 +2700,54 @@ impl ISpSREngine { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn RecognizeStream(&self, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: P0, hdataavailable: P1, hexit: P2, fnewaudiostream: P3, frealtimeaudio: P4, paudioobjecttoken: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).RecognizeStream)(windows_core::Interface::as_raw(self), rguidfmtid, pwaveformatex, hrequestsync.into_param().abi(), hdataavailable.into_param().abi(), hexit.into_param().abi(), fnewaudiostream.into_param().abi(), frealtimeaudio.into_param().abi(), paudioobjecttoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RecognizeStream)(windows_core::Interface::as_raw(self), rguidfmtid, pwaveformatex, hrequestsync.param().abi(), hdataavailable.param().abi(), hexit.param().abi(), fnewaudiostream.param().abi(), frealtimeaudio.param().abi(), paudioobjecttoken.param().abi()).ok() } pub unsafe fn SetRecoProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecoProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (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: P0, ppvenginegrammarcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreateGrammar)(windows_core::Interface::as_raw(self), pvenginerecocontext, hsapigrammar.into_param().abi(), ppvenginegrammarcontext).ok() + (windows_core::Interface::vtable(self).OnCreateGrammar)(windows_core::Interface::as_raw(self), pvenginerecocontext, hsapigrammar.param().abi(), 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), pvenginegrammar).ok() } pub unsafe fn LoadProprietaryGrammar(&self, pvenginegrammar: *const core::ffi::c_void, rguidparam: *const windows_core::GUID, pszstringparam: P0, pvdataparam: *const core::ffi::c_void, uldatasize: u32, options: SPLOADOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadProprietaryGrammar)(windows_core::Interface::as_raw(self), pvenginegrammar, rguidparam, pszstringparam.into_param().abi(), pvdataparam, uldatasize, 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), pvenginegrammar).ok() } pub unsafe fn SetProprietaryRuleState(&self, pvenginegrammar: *const core::ffi::c_void, pszname: P0, preserved: *const core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetProprietaryRuleState)(windows_core::Interface::as_raw(self), pvenginegrammar, pszname.into_param().abi(), preserved, 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), pvenginegrammar, dwruleid, newstate).ok() } pub unsafe fn LoadSLM(&self, pvenginegrammar: *const core::ffi::c_void, psztopicname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadSLM)(windows_core::Interface::as_raw(self), pvenginegrammar, psztopicname.into_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), pvenginegrammar).ok() @@ -2763,16 +2763,16 @@ impl ISpSREngine { } pub unsafe fn IsPronounceable(&self, pvenginegrammar: *const core::ffi::c_void, pszword: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), pvenginegrammar, pszword.into_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: P0, ppvenginecontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreateRecoContext)(windows_core::Interface::as_raw(self), hsapirecocontext.into_param().abi(), ppvenginecontext).ok() + (windows_core::Interface::vtable(self).OnCreateRecoContext)(windows_core::Interface::as_raw(self), hsapirecocontext.param().abi(), 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), pvenginecontext).ok() @@ -2785,30 +2785,30 @@ impl ISpSREngine { } pub unsafe fn SetPropertyNum(&self, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: P0, lvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyNum)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyNum)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_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: P0, pvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyString)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_param().abi(), pvalue.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyString)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_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), pvenginegrammar, egrammarstate).ok() @@ -2870,9 +2870,9 @@ windows_core::imp::interface_hierarchy!(ISpSREngine2, windows_core::IUnknown, IS impl ISpSREngine2 { pub unsafe fn SetSite(&self, psite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSite)(windows_core::Interface::as_raw(self), psite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSite)(windows_core::Interface::as_raw(self), psite.param().abi()).ok() } #[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<()> { @@ -2881,54 +2881,54 @@ impl ISpSREngine2 { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn RecognizeStream(&self, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: P0, hdataavailable: P1, hexit: P2, fnewaudiostream: P3, frealtimeaudio: P4, paudioobjecttoken: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RecognizeStream)(windows_core::Interface::as_raw(self), rguidfmtid, pwaveformatex, hrequestsync.into_param().abi(), hdataavailable.into_param().abi(), hexit.into_param().abi(), fnewaudiostream.into_param().abi(), frealtimeaudio.into_param().abi(), paudioobjecttoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RecognizeStream)(windows_core::Interface::as_raw(self), rguidfmtid, pwaveformatex, hrequestsync.param().abi(), hdataavailable.param().abi(), hexit.param().abi(), fnewaudiostream.param().abi(), frealtimeaudio.param().abi(), paudioobjecttoken.param().abi()).ok() } pub unsafe fn SetRecoProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRecoProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRecoProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } pub unsafe fn OnCreateGrammar(&self, pvenginerecocontext: *const core::ffi::c_void, hsapigrammar: P0, ppvenginegrammarcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnCreateGrammar)(windows_core::Interface::as_raw(self), pvenginerecocontext, hsapigrammar.into_param().abi(), ppvenginegrammarcontext).ok() + (windows_core::Interface::vtable(self).base__.OnCreateGrammar)(windows_core::Interface::as_raw(self), pvenginerecocontext, hsapigrammar.param().abi(), ppvenginegrammarcontext).ok() } pub unsafe fn OnDeleteGrammar(&self, pvenginegrammar: *const core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.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: P0, pvdataparam: *const core::ffi::c_void, uldatasize: u32, options: SPLOADOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LoadProprietaryGrammar)(windows_core::Interface::as_raw(self), pvenginegrammar, rguidparam, pszstringparam.into_param().abi(), pvdataparam, uldatasize, options).ok() + (windows_core::Interface::vtable(self).base__.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).base__.UnloadProprietaryGrammar)(windows_core::Interface::as_raw(self), pvenginegrammar).ok() } pub unsafe fn SetProprietaryRuleState(&self, pvenginegrammar: *const core::ffi::c_void, pszname: P0, preserved: *const core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SetProprietaryRuleState)(windows_core::Interface::as_raw(self), pvenginegrammar, pszname.into_param().abi(), preserved, newstate, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.SetProprietaryRuleIdState)(windows_core::Interface::as_raw(self), pvenginegrammar, dwruleid, newstate).ok() } pub unsafe fn LoadSLM(&self, pvenginegrammar: *const core::ffi::c_void, psztopicname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LoadSLM)(windows_core::Interface::as_raw(self), pvenginegrammar, psztopicname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.UnloadSLM)(windows_core::Interface::as_raw(self), pvenginegrammar).ok() @@ -2944,16 +2944,16 @@ impl ISpSREngine2 { } pub unsafe fn IsPronounceable(&self, pvenginegrammar: *const core::ffi::c_void, pszword: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsPronounceable)(windows_core::Interface::as_raw(self), pvenginegrammar, pszword.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsPronounceable)(windows_core::Interface::as_raw(self), pvenginegrammar, pszword.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnCreateRecoContext(&self, hsapirecocontext: P0, ppvenginecontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnCreateRecoContext)(windows_core::Interface::as_raw(self), hsapirecocontext.into_param().abi(), ppvenginecontext).ok() + (windows_core::Interface::vtable(self).base__.OnCreateRecoContext)(windows_core::Interface::as_raw(self), hsapirecocontext.param().abi(), ppvenginecontext).ok() } pub unsafe fn OnDeleteRecoContext(&self, pvenginecontext: *const core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnDeleteRecoContext)(windows_core::Interface::as_raw(self), pvenginecontext).ok() @@ -2966,30 +2966,30 @@ impl ISpSREngine2 { } pub unsafe fn SetPropertyNum(&self, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: P0, lvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPropertyNum)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_param().abi(), lvalue).ok() + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyNum)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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: P0, pvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPropertyString)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_param().abi(), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyString)(windows_core::Interface::as_raw(self), esrc, pvsrcobj, pname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.SetGrammarState)(windows_core::Interface::as_raw(self), pvenginegrammar, egrammarstate).ok() @@ -3011,44 +3011,44 @@ impl ISpSREngine2 { } pub unsafe fn SetAdaptationData2(&self, pvenginecontext: *const core::ffi::c_void, padaptationdata: &[u16], ptopicname: P0, esettings: SPADAPTATIONSETTINGS, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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.into_param().abi(), esettings, 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: P0, fisprefixrequired: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGrammarPrefix)(windows_core::Interface::as_raw(self), pvenginegrammar, pszprefix.into_param().abi(), fisprefixrequired.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGrammarPrefix)(windows_core::Interface::as_raw(self), pvenginegrammar, pszprefix.param().abi(), fisprefixrequired.param().abi()).ok() } pub unsafe fn SetRulePriority(&self, hrule: P0, pvclientrulecontext: *const core::ffi::c_void, nrulepriority: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRulePriority)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), pvclientrulecontext, nrulepriority).ok() + (windows_core::Interface::vtable(self).SetRulePriority)(windows_core::Interface::as_raw(self), hrule.param().abi(), pvclientrulecontext, nrulepriority).ok() } pub unsafe fn EmulateRecognition(&self, pphrase: P0, dwcompareflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), pphrase.into_param().abi(), 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), pvenginegrammar, flweight).ok() } pub unsafe fn SetRuleWeight(&self, hrule: P0, pvclientrulecontext: *const core::ffi::c_void, flweight: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleWeight)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), pvclientrulecontext, flweight).ok() + (windows_core::Interface::vtable(self).SetRuleWeight)(windows_core::Interface::as_raw(self), hrule.param().abi(), pvclientrulecontext, flweight).ok() } pub unsafe fn SetTrainingState(&self, fdoingtraining: P0, fadaptfromtrainingdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTrainingState)(windows_core::Interface::as_raw(self), fdoingtraining.into_param().abi(), fadaptfromtrainingdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTrainingState)(windows_core::Interface::as_raw(self), fdoingtraining.param().abi(), fadaptfromtrainingdata.param().abi()).ok() } pub unsafe fn ResetAcousticModelAdaptation(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetAcousticModelAdaptation)(windows_core::Interface::as_raw(self)).ok() @@ -3098,9 +3098,9 @@ impl ISpSREngineSite { } pub unsafe fn AddEvent(&self, pevent: *const SPEVENT, hsapirecocontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEvent)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddEvent)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext.param().abi()).ok() } pub unsafe fn Synchronize(&self, ullprocessedthrupos: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), ullprocessedthrupos).ok() @@ -3110,60 +3110,60 @@ impl ISpSREngineSite { } pub unsafe fn SetWordClientContext(&self, hword: P0, pvclientcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWordClientContext)(windows_core::Interface::as_raw(self), hword.into_param().abi(), pvclientcontext).ok() + (windows_core::Interface::vtable(self).SetWordClientContext)(windows_core::Interface::as_raw(self), hword.param().abi(), 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), pruleentry, options).ok() } pub unsafe fn SetRuleClientContext(&self, hrule: P0, pvclientcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleClientContext)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), pvclientcontext).ok() + (windows_core::Interface::vtable(self).SetRuleClientContext)(windows_core::Interface::as_raw(self), hrule.param().abi(), pvclientcontext).ok() } pub unsafe fn GetStateInfo(&self, hstate: P0, pstateinfo: *mut SPSTATEINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetStateInfo)(windows_core::Interface::as_raw(self), hstate.into_param().abi(), pstateinfo).ok() + (windows_core::Interface::vtable(self).GetStateInfo)(windows_core::Interface::as_raw(self), hstate.param().abi(), pstateinfo).ok() } pub unsafe fn GetResource(&self, hrule: P0, pszresourcename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), pszresourcename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), hrule.param().abi(), pszresourcename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTransitionProperty(&self, id: P0) -> windows_core::Result<*mut SPTRANSITIONPROPERTY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTransitionProperty)(windows_core::Interface::as_raw(self), id.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTransitionProperty)(windows_core::Interface::as_raw(self), id.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsAlternate(&self, hrule: P0, haltrule: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsAlternate)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), haltrule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsAlternate)(windows_core::Interface::as_raw(self), hrule.param().abi(), haltrule.param().abi()).ok() } pub unsafe fn GetMaxAlternates(&self, hrule: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxAlternates)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxAlternates)(windows_core::Interface::as_raw(self), hrule.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetContextMaxAlternates(&self, hcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContextMaxAlternates)(windows_core::Interface::as_raw(self), hcontext.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContextMaxAlternates)(windows_core::Interface::as_raw(self), hcontext.param().abi(), &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), ullcurrentrecopos).ok() @@ -3214,9 +3214,9 @@ impl ISpSREngineSite2 { } pub unsafe fn AddEvent(&self, pevent: *const SPEVENT, hsapirecocontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddEvent)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddEvent)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext.param().abi()).ok() } pub unsafe fn Synchronize(&self, ullprocessedthrupos: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Synchronize)(windows_core::Interface::as_raw(self), ullprocessedthrupos).ok() @@ -3226,69 +3226,69 @@ impl ISpSREngineSite2 { } pub unsafe fn SetWordClientContext(&self, hword: P0, pvclientcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWordClientContext)(windows_core::Interface::as_raw(self), hword.into_param().abi(), pvclientcontext).ok() + (windows_core::Interface::vtable(self).base__.SetWordClientContext)(windows_core::Interface::as_raw(self), hword.param().abi(), pvclientcontext).ok() } pub unsafe fn GetRuleInfo(&self, pruleentry: *mut SPRULEENTRY, options: SPRULEINFOOPT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetRuleInfo)(windows_core::Interface::as_raw(self), pruleentry, options).ok() } pub unsafe fn SetRuleClientContext(&self, hrule: P0, pvclientcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRuleClientContext)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), pvclientcontext).ok() + (windows_core::Interface::vtable(self).base__.SetRuleClientContext)(windows_core::Interface::as_raw(self), hrule.param().abi(), pvclientcontext).ok() } pub unsafe fn GetStateInfo(&self, hstate: P0, pstateinfo: *mut SPSTATEINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetStateInfo)(windows_core::Interface::as_raw(self), hstate.into_param().abi(), pstateinfo).ok() + (windows_core::Interface::vtable(self).base__.GetStateInfo)(windows_core::Interface::as_raw(self), hstate.param().abi(), pstateinfo).ok() } pub unsafe fn GetResource(&self, hrule: P0, pszresourcename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetResource)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), pszresourcename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetResource)(windows_core::Interface::as_raw(self), hrule.param().abi(), pszresourcename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTransitionProperty(&self, id: P0) -> windows_core::Result<*mut SPTRANSITIONPROPERTY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetTransitionProperty)(windows_core::Interface::as_raw(self), id.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetTransitionProperty)(windows_core::Interface::as_raw(self), id.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsAlternate(&self, hrule: P0, haltrule: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IsAlternate)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), haltrule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.IsAlternate)(windows_core::Interface::as_raw(self), hrule.param().abi(), haltrule.param().abi()).ok() } pub unsafe fn GetMaxAlternates(&self, hrule: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetMaxAlternates)(windows_core::Interface::as_raw(self), hrule.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetMaxAlternates)(windows_core::Interface::as_raw(self), hrule.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetContextMaxAlternates(&self, hcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetContextMaxAlternates)(windows_core::Interface::as_raw(self), hcontext.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetContextMaxAlternates)(windows_core::Interface::as_raw(self), hcontext.param().abi(), &mut result__).map(|| result__) } pub unsafe fn UpdateRecoPos(&self, ullcurrentrecopos: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UpdateRecoPos)(windows_core::Interface::as_raw(self), ullcurrentrecopos).ok() } pub unsafe fn AddEventEx(&self, pevent: *const SPEVENTEX, hsapirecocontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEventEx)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddEventEx)(windows_core::Interface::as_raw(self), pevent, hsapirecocontext.param().abi()).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), ullcurrentrecopos, ullcurrentrecotime).ok() @@ -3329,17 +3329,17 @@ windows_core::imp::interface_hierarchy!(ISpShortcut, windows_core::IUnknown); impl ISpShortcut { pub unsafe fn AddShortcut(&self, pszdisplay: P0, langid: u16, pszspoken: P1, shtype: SPSHORTCUTTYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddShortcut)(windows_core::Interface::as_raw(self), pszdisplay.into_param().abi(), langid, pszspoken.into_param().abi(), 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: P1, shtype: SPSHORTCUTTYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveShortcut)(windows_core::Interface::as_raw(self), pszdisplay.into_param().abi(), langid, pszspoken.into_param().abi(), 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), langid, pshortcutpairlist).ok() @@ -3398,9 +3398,9 @@ impl ISpStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -3435,9 +3435,9 @@ impl ISpStream { #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] pub unsafe fn SetBaseStream(&self, pstream: P0, rguidformat: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBaseStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), rguidformat, pwaveformatex).ok() + (windows_core::Interface::vtable(self).SetBaseStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), rguidformat, pwaveformatex).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBaseStream(&self) -> windows_core::Result { @@ -3447,9 +3447,9 @@ impl ISpStream { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn BindToFile(&self, pszfilename: P0, emode: SPFILEMODE, pformatid: Option<*const windows_core::GUID>, pwaveformatex: Option<*const super::Audio::WAVEFORMATEX>, ulleventinterest: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindToFile)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), emode, core::mem::transmute(pformatid.unwrap_or(std::ptr::null())), core::mem::transmute(pwaveformatex.unwrap_or(std::ptr::null())), ulleventinterest).ok() + (windows_core::Interface::vtable(self).BindToFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), emode, core::mem::transmute(pformatid.unwrap_or(std::ptr::null())), core::mem::transmute(pwaveformatex.unwrap_or(std::ptr::null())), ulleventinterest).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -3498,9 +3498,9 @@ impl ISpStreamFormat { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -3567,9 +3567,9 @@ impl ISpStreamFormatConverter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -3604,11 +3604,11 @@ impl ISpStreamFormatConverter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBaseStream(&self, pstream: P0, fsetformattobasestreamformat: P1, fwritetobasestream: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBaseStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), fsetformattobasestreamformat.into_param().abi(), fwritetobasestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBaseStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), fsetformattobasestreamformat.param().abi(), fwritetobasestream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBaseStream(&self) -> windows_core::Result { @@ -3657,9 +3657,9 @@ impl ISpTTSEngine { #[cfg(feature = "Win32_Media_Audio")] pub unsafe fn Speak(&self, dwspeakflags: u32, rguidformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, ptextfraglist: *const SPVTEXTFRAG, poutputsite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), dwspeakflags, rguidformatid, pwaveformatex, ptextfraglist, poutputsite.into_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<()> { @@ -3741,25 +3741,25 @@ impl ISpTaskManager { } pub unsafe fn QueueTask(&self, ptask: P0, pvtaskdata: *const core::ffi::c_void, hcompevent: P1, pdwgroupid: *mut u32, ptaskid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueueTask)(windows_core::Interface::as_raw(self), ptask.into_param().abi(), pvtaskdata, hcompevent.into_param().abi(), pdwgroupid, ptaskid).ok() + (windows_core::Interface::vtable(self).QueueTask)(windows_core::Interface::as_raw(self), ptask.param().abi(), pvtaskdata, hcompevent.param().abi(), pdwgroupid, ptaskid).ok() } pub unsafe fn CreateReoccurringTask(&self, ptask: P0, pvtaskdata: *const core::ffi::c_void, hcompevent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReoccurringTask)(windows_core::Interface::as_raw(self), ptask.into_param().abi(), pvtaskdata, hcompevent.into_param().abi(), &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.param().abi(), &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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateThreadControl)(windows_core::Interface::as_raw(self), ptask.into_param().abi(), pvtaskdata, 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), dwtaskid, ulwaitperiod).ok() @@ -3791,9 +3791,9 @@ impl ISpThreadControl { } pub unsafe fn WaitForThreadDone(&self, fforcestop: P0, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WaitForThreadDone)(windows_core::Interface::as_raw(self), fforcestop.into_param().abi(), phrthreadresult, mstimeout).ok() + (windows_core::Interface::vtable(self).WaitForThreadDone)(windows_core::Interface::as_raw(self), fforcestop.param().abi(), phrthreadresult, mstimeout).ok() } pub unsafe fn TerminateThread(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TerminateThread)(windows_core::Interface::as_raw(self)).ok() @@ -3834,25 +3834,25 @@ windows_core::imp::define_interface!(ISpThreadTask, ISpThreadTask_Vtbl); impl ISpThreadTask { pub unsafe fn InitThread(&self, pvtaskdata: *mut core::ffi::c_void, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitThread)(windows_core::Interface::as_raw(self), pvtaskdata, hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitThread)(windows_core::Interface::as_raw(self), pvtaskdata, hwnd.param().abi()).ok() } pub unsafe fn ThreadProc(&self, pvtaskdata: *mut core::ffi::c_void, hexitthreadevent: P0, hnotifyevent: P1, hwndworker: P2, pfcontinueprocessing: *const i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ThreadProc)(windows_core::Interface::as_raw(self), pvtaskdata, hexitthreadevent.into_param().abi(), hnotifyevent.into_param().abi(), hwndworker.into_param().abi(), pfcontinueprocessing).ok() + (windows_core::Interface::vtable(self).ThreadProc)(windows_core::Interface::as_raw(self), pvtaskdata, hexitthreadevent.param().abi(), hnotifyevent.param().abi(), hwndworker.param().abi(), pfcontinueprocessing).ok() } pub unsafe fn WindowMessage(&self, pvtaskdata: *mut core::ffi::c_void, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WindowMessage)(windows_core::Interface::as_raw(self), pvtaskdata, hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).WindowMessage)(windows_core::Interface::as_raw(self), pvtaskdata, hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } } #[repr(C)] @@ -3866,21 +3866,21 @@ windows_core::imp::interface_hierarchy!(ISpTokenUI, windows_core::IUnknown); impl ISpTokenUI { pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.into_param().abi(), pvextradata, cbextradata, punkobject.into_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: P0, psztitle: P1, psztypeofui: P2, pvextradata: *const core::ffi::c_void, cbextradata: u32, ptoken: P3, punkobject: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), psztitle.into_param().abi(), psztypeofui.into_param().abi(), pvextradata, cbextradata, ptoken.into_param().abi(), punkobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), psztitle.param().abi(), psztypeofui.param().abi(), pvextradata, cbextradata, ptoken.param().abi(), punkobject.param().abi()).ok() } } #[repr(C)] @@ -3898,9 +3898,9 @@ impl ISpTranscript { } pub unsafe fn AppendTranscript(&self, psztranscript: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendTranscript)(windows_core::Interface::as_raw(self), psztranscript.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendTranscript)(windows_core::Interface::as_raw(self), psztranscript.param().abi()).ok() } } #[repr(C)] @@ -3914,32 +3914,32 @@ windows_core::imp::interface_hierarchy!(ISpVoice, windows_core::IUnknown, ISpNot impl ISpVoice { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifySink)(windows_core::Interface::as_raw(self), pnotifysink.param().abi()).ok() } pub unsafe fn SetNotifyWindowMessage(&self, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyWindowMessage)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackFunction(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackFunction)(windows_core::Interface::as_raw(self), pfncallback, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyCallbackInterface(&self, pspcallback: P0, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyCallbackInterface)(windows_core::Interface::as_raw(self), pspcallback.param().abi(), wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn SetNotifyWin32Event(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SetNotifyWin32Event)(windows_core::Interface::as_raw(self)).ok() @@ -3961,10 +3961,10 @@ impl ISpVoice { } pub unsafe fn SetOutput(&self, punkoutput: P0, fallowformatchanges: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), punkoutput.into_param().abi(), fallowformatchanges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), punkoutput.param().abi(), fallowformatchanges.param().abi()).ok() } pub unsafe fn GetOutputObjectToken(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3983,9 +3983,9 @@ impl ISpVoice { } pub unsafe fn SetVoice(&self, ptoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVoice)(windows_core::Interface::as_raw(self), ptoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVoice)(windows_core::Interface::as_raw(self), ptoken.param().abi()).ok() } pub unsafe fn GetVoice(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3993,25 +3993,25 @@ impl ISpVoice { } pub unsafe fn Speak(&self, pwcs: P0, dwflags: u32, pulstreamnumber: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), pwcs.into_param().abi(), dwflags, core::mem::transmute(pulstreamnumber.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), pwcs.param().abi(), dwflags, core::mem::transmute(pulstreamnumber.unwrap_or(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SpeakStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), dwflags, core::mem::transmute(pulstreamnumber.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SpeakStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwflags, core::mem::transmute(pulstreamnumber.unwrap_or(std::ptr::null_mut()))).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), pstatus, ppszlastbookmark).ok() } pub unsafe fn Skip(&self, pitemtype: P0, lnumitems: i32, pulnumskipped: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), pitemtype.into_param().abi(), lnumitems, pulnumskipped).ok() + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), pitemtype.param().abi(), lnumitems, pulnumskipped).ok() } pub unsafe fn SetPriority(&self, epriority: SPVPRIORITY) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetPriority)(windows_core::Interface::as_raw(self), epriority).ok() @@ -4051,17 +4051,17 @@ impl ISpVoice { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.into_param().abi(), pvextradata, cbextradata, pfsupported).ok() + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), psztypeofui.param().abi(), pvextradata, cbextradata, pfsupported).ok() } pub unsafe fn DisplayUI(&self, hwndparent: P0, psztitle: P1, psztypeofui: P2, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), psztitle.into_param().abi(), psztypeofui.into_param().abi(), pvextradata, cbextradata).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), psztitle.param().abi(), psztypeofui.param().abi(), pvextradata, cbextradata).ok() } } #[repr(C)] @@ -4112,9 +4112,9 @@ impl ISpXMLRecoResult { } pub unsafe fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: P0, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.into_param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__.GetText)(windows_core::Interface::as_raw(self), ulstart, ulcount, fusetextreplacements.param().abi(), ppszcomemtext, core::mem::transmute(pbdisplayattributes.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Discard)(windows_core::Interface::as_raw(self), dwvaluetypes).ok() @@ -4171,26 +4171,26 @@ impl ISpeechAudio { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Format(&self, audioformat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.param().abi()).ok() } pub unsafe fn Read(&self, buffer: *mut windows_core::VARIANT, numberofbytes: i32, bytesread: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), numberofbytes, bytesread).ok() } pub unsafe fn Write(&self, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, position: P0, origin: SpeechStreamSeekPositionType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.into_param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Status(&self) -> windows_core::Result { @@ -4310,9 +4310,9 @@ impl ISpeechAudioFormat { } pub unsafe fn SetGuid(&self, guid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGuid)(windows_core::Interface::as_raw(self), guid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGuid)(windows_core::Interface::as_raw(self), guid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWaveFormatEx(&self) -> windows_core::Result { @@ -4322,9 +4322,9 @@ impl ISpeechAudioFormat { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWaveFormatEx(&self, speechwaveformatex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWaveFormatEx)(windows_core::Interface::as_raw(self), speechwaveformatex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWaveFormatEx)(windows_core::Interface::as_raw(self), speechwaveformatex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4395,26 +4395,26 @@ impl ISpeechBaseStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Format(&self, audioformat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Format)(windows_core::Interface::as_raw(self), audioformat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Format)(windows_core::Interface::as_raw(self), audioformat.param().abi()).ok() } pub unsafe fn Read(&self, buffer: *mut windows_core::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), numberofbytes, bytesread).ok() } pub unsafe fn Write(&self, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), buffer.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), buffer.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, position: P0, origin: SpeechStreamSeekPositionType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), position.into_param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), position.param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4447,26 +4447,26 @@ impl ISpeechCustomStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Format(&self, audioformat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.param().abi()).ok() } pub unsafe fn Read(&self, buffer: *mut windows_core::VARIANT, numberofbytes: i32, bytesread: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), numberofbytes, bytesread).ok() } pub unsafe fn Write(&self, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, position: P0, origin: SpeechStreamSeekPositionType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.into_param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BaseStream(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4474,9 +4474,9 @@ impl ISpeechCustomStream { } pub unsafe fn putref_BaseStream(&self, punkstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_BaseStream)(windows_core::Interface::as_raw(self), punkstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_BaseStream)(windows_core::Interface::as_raw(self), punkstream.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4494,72 +4494,72 @@ windows_core::imp::interface_hierarchy!(ISpeechDataKey, windows_core::IUnknown, impl ISpeechDataKey { pub unsafe fn SetBinaryValue(&self, valuename: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBinaryValue)(windows_core::Interface::as_raw(self), valuename.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBinaryValue)(windows_core::Interface::as_raw(self), valuename.param().abi(), value.param().abi()).ok() } pub unsafe fn GetBinaryValue(&self, valuename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBinaryValue)(windows_core::Interface::as_raw(self), valuename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBinaryValue)(windows_core::Interface::as_raw(self), valuename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetStringValue(&self, valuename: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), valuename.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), valuename.param().abi(), value.param().abi()).ok() } pub unsafe fn GetStringValue(&self, valuename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), valuename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), valuename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetLongValue(&self, valuename: P0, value: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLongValue)(windows_core::Interface::as_raw(self), valuename.into_param().abi(), value).ok() + (windows_core::Interface::vtable(self).SetLongValue)(windows_core::Interface::as_raw(self), valuename.param().abi(), value).ok() } pub unsafe fn GetLongValue(&self, valuename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLongValue)(windows_core::Interface::as_raw(self), valuename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLongValue)(windows_core::Interface::as_raw(self), valuename.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenKey(&self, subkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenKey)(windows_core::Interface::as_raw(self), subkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenKey)(windows_core::Interface::as_raw(self), subkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateKey(&self, subkeyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateKey)(windows_core::Interface::as_raw(self), subkeyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateKey)(windows_core::Interface::as_raw(self), subkeyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteKey(&self, subkeyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), subkeyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), subkeyname.param().abi()).ok() } pub unsafe fn DeleteValue(&self, valuename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteValue)(windows_core::Interface::as_raw(self), valuename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteValue)(windows_core::Interface::as_raw(self), valuename.param().abi()).ok() } pub unsafe fn EnumKeys(&self, index: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4607,33 +4607,33 @@ impl ISpeechFileStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Format(&self, audioformat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.param().abi()).ok() } pub unsafe fn Read(&self, buffer: *mut windows_core::VARIANT, numberofbytes: i32, bytesread: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), numberofbytes, bytesread).ok() } pub unsafe fn Write(&self, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, position: P0, origin: SpeechStreamSeekPositionType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.into_param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Open(&self, filename: P0, filemode: SpeechStreamFileMode, doevents: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filemode, doevents.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), filename.param().abi(), filemode, doevents.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -4674,10 +4674,10 @@ impl ISpeechGrammarRule { } pub unsafe fn AddResource(&self, resourcename: P0, resourcevalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), resourcename.into_param().abi(), resourcevalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), resourcename.param().abi(), resourcevalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddState(&self) -> windows_core::Result { @@ -4722,29 +4722,29 @@ impl ISpeechGrammarRuleState { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddWordTransition(&self, deststate: P0, words: P1, separators: P2, r#type: SpeechGrammarWordType, propertyname: P3, propertyid: i32, propertyvalue: *const windows_core::VARIANT, weight: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), deststate.into_param().abi(), words.into_param().abi(), separators.into_param().abi(), r#type, propertyname.into_param().abi(), propertyid, core::mem::transmute(propertyvalue), weight).ok() + (windows_core::Interface::vtable(self).AddWordTransition)(windows_core::Interface::as_raw(self), deststate.param().abi(), words.param().abi(), separators.param().abi(), r#type, propertyname.param().abi(), propertyid, core::mem::transmute(propertyvalue), weight).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRuleTransition(&self, destinationstate: P0, rule: P1, propertyname: P2, propertyid: i32, propertyvalue: *const windows_core::VARIANT, weight: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), destinationstate.into_param().abi(), rule.into_param().abi(), propertyname.into_param().abi(), propertyid, core::mem::transmute(propertyvalue), weight).ok() + (windows_core::Interface::vtable(self).AddRuleTransition)(windows_core::Interface::as_raw(self), destinationstate.param().abi(), rule.param().abi(), propertyname.param().abi(), propertyid, core::mem::transmute(propertyvalue), weight).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSpecialTransition(&self, destinationstate: P0, r#type: SpeechSpecialTransitionType, propertyname: P1, propertyid: i32, propertyvalue: *const windows_core::VARIANT, weight: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSpecialTransition)(windows_core::Interface::as_raw(self), destinationstate.into_param().abi(), r#type, propertyname.into_param().abi(), propertyid, core::mem::transmute(propertyvalue), weight).ok() + (windows_core::Interface::vtable(self).AddSpecialTransition)(windows_core::Interface::as_raw(self), destinationstate.param().abi(), r#type, propertyname.param().abi(), propertyid, core::mem::transmute(propertyvalue), weight).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4876,10 +4876,10 @@ impl ISpeechGrammarRules { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindRule(&self, rulenameorid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindRule)(windows_core::Interface::as_raw(self), rulenameorid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindRule)(windows_core::Interface::as_raw(self), rulenameorid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, index: i32) -> windows_core::Result { @@ -4897,10 +4897,10 @@ impl ISpeechGrammarRules { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, rulename: P0, attributes: SpeechRuleAttributes, ruleid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), rulename.into_param().abi(), attributes, ruleid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), rulename.param().abi(), 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() @@ -4947,37 +4947,37 @@ impl ISpeechLexicon { } pub unsafe fn AddPronunciation(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), bstrword.into_param().abi(), langid, partofspeech, bstrpronunciation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPronunciation)(windows_core::Interface::as_raw(self), bstrword.param().abi(), langid, partofspeech, bstrpronunciation.param().abi()).ok() } pub unsafe fn AddPronunciationByPhoneIds(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPronunciationByPhoneIds)(windows_core::Interface::as_raw(self), bstrword.into_param().abi(), langid, partofspeech, core::mem::transmute(phoneids)).ok() + (windows_core::Interface::vtable(self).AddPronunciationByPhoneIds)(windows_core::Interface::as_raw(self), bstrword.param().abi(), langid, partofspeech, core::mem::transmute(phoneids)).ok() } pub unsafe fn RemovePronunciation(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), bstrword.into_param().abi(), langid, partofspeech, bstrpronunciation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemovePronunciation)(windows_core::Interface::as_raw(self), bstrword.param().abi(), langid, partofspeech, bstrpronunciation.param().abi()).ok() } pub unsafe fn RemovePronunciationByPhoneIds(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePronunciationByPhoneIds)(windows_core::Interface::as_raw(self), bstrword.into_param().abi(), langid, partofspeech, core::mem::transmute(phoneids)).ok() + (windows_core::Interface::vtable(self).RemovePronunciationByPhoneIds)(windows_core::Interface::as_raw(self), bstrword.param().abi(), langid, partofspeech, core::mem::transmute(phoneids)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPronunciations(&self, bstrword: P0, langid: i32, typeflags: SpeechLexiconType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), bstrword.into_param().abi(), langid, typeflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPronunciations)(windows_core::Interface::as_raw(self), bstrword.param().abi(), langid, typeflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetGenerationChange(&self, generationid: *mut i32, ppwords: *mut Option) -> windows_core::Result<()> { @@ -5155,26 +5155,26 @@ impl ISpeechMMSysAudio { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Format(&self, audioformat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.param().abi()).ok() } pub unsafe fn Read(&self, buffer: *mut windows_core::VARIANT, numberofbytes: i32, bytesread: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), numberofbytes, bytesread).ok() } pub unsafe fn Write(&self, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), buffer.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), buffer.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, position: P0, origin: SpeechStreamSeekPositionType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Seek)(windows_core::Interface::as_raw(self), position.into_param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.Seek)(windows_core::Interface::as_raw(self), position.param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Status(&self) -> windows_core::Result { @@ -5255,32 +5255,32 @@ impl ISpeechMemoryStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Format(&self, audioformat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_Format)(windows_core::Interface::as_raw(self), audioformat.param().abi()).ok() } pub unsafe fn Read(&self, buffer: *mut windows_core::VARIANT, numberofbytes: i32, bytesread: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer), numberofbytes, bytesread).ok() } pub unsafe fn Write(&self, buffer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), buffer.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Seek(&self, position: P0, origin: SpeechStreamSeekPositionType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.into_param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), position.param().abi(), origin, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn GetData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5320,71 +5320,71 @@ impl ISpeechObjectToken { } pub unsafe fn SetId(&self, id: P0, categoryid: P1, createifnotexist: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.into_param().abi(), categoryid.into_param().abi(), createifnotexist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.param().abi(), categoryid.param().abi(), createifnotexist.param().abi()).ok() } pub unsafe fn GetAttribute(&self, attributename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), attributename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), attributename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInstance(&self, punkouter: P0, clscontext: SpeechTokenContext) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), objectstorageclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), objectstorageclsid.param().abi()).ok() } pub unsafe fn GetStorageFileName(&self, objectstorageclsid: P0, keyname: P1, filename: P2, folder: SpeechTokenShellFolder) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStorageFileName)(windows_core::Interface::as_raw(self), objectstorageclsid.into_param().abi(), keyname.into_param().abi(), filename.into_param().abi(), folder, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStorageFileName)(windows_core::Interface::as_raw(self), objectstorageclsid.param().abi(), keyname.param().abi(), filename.param().abi(), folder, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveStorageFileName(&self, objectstorageclsid: P0, keyname: P1, deletefile: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), objectstorageclsid.into_param().abi(), keyname.into_param().abi(), deletefile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveStorageFileName)(windows_core::Interface::as_raw(self), objectstorageclsid.param().abi(), keyname.param().abi(), deletefile.param().abi()).ok() } pub unsafe fn IsUISupported(&self, typeofui: P0, extradata: *const windows_core::VARIANT, object: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), typeofui.into_param().abi(), core::mem::transmute(extradata), object.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), typeofui.param().abi(), core::mem::transmute(extradata), object.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisplayUI(&self, hwnd: i32, title: P0, typeofui: P1, extradata: *const windows_core::VARIANT, object: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwnd, title.into_param().abi(), typeofui.into_param().abi(), core::mem::transmute(extradata), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwnd, title.param().abi(), typeofui.param().abi(), core::mem::transmute(extradata), object.param().abi()).ok() } pub unsafe fn MatchesAttributes(&self, attributes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MatchesAttributes)(windows_core::Interface::as_raw(self), attributes.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MatchesAttributes)(windows_core::Interface::as_raw(self), attributes.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5423,9 +5423,9 @@ impl ISpeechObjectTokenCategory { } pub unsafe fn SetDefault(&self, tokenid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), tokenid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), tokenid.param().abi()).ok() } pub unsafe fn Default(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5433,10 +5433,10 @@ impl ISpeechObjectTokenCategory { } pub unsafe fn SetId(&self, id: P0, createifnotexist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.into_param().abi(), createifnotexist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.param().abi(), createifnotexist.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDataKey(&self, location: SpeechDataKeyLocation) -> windows_core::Result { @@ -5446,11 +5446,11 @@ impl ISpeechObjectTokenCategory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateTokens(&self, requiredattributes: P0, optionalattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateTokens)(windows_core::Interface::as_raw(self), requiredattributes.into_param().abi(), optionalattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateTokens)(windows_core::Interface::as_raw(self), requiredattributes.param().abi(), optionalattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5516,17 +5516,17 @@ impl ISpeechPhoneConverter { } pub unsafe fn PhoneToId(&self, phonemes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PhoneToId)(windows_core::Interface::as_raw(self), phonemes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PhoneToId)(windows_core::Interface::as_raw(self), phonemes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IdToPhone(&self, idarray: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IdToPhone)(windows_core::Interface::as_raw(self), idarray.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).IdToPhone)(windows_core::Interface::as_raw(self), idarray.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5789,17 +5789,17 @@ impl ISpeechPhraseInfo { } pub unsafe fn GetText(&self, startelement: i32, elements: i32, usereplacements: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), startelement, elements, usereplacements.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), startelement, elements, usereplacements.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDisplayAttributes(&self, startelement: i32, elements: i32, usereplacements: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayAttributes)(windows_core::Interface::as_raw(self), startelement, elements, usereplacements.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDisplayAttributes)(windows_core::Interface::as_raw(self), startelement, elements, usereplacements.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6128,9 +6128,9 @@ impl ISpeechRecoContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Voice(&self, voice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Voice)(windows_core::Interface::as_raw(self), voice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Voice)(windows_core::Interface::as_raw(self), voice.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Voice(&self) -> windows_core::Result { @@ -6139,9 +6139,9 @@ impl ISpeechRecoContext { } pub unsafe fn SetAllowVoiceFormatMatchingOnNextSet(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowVoiceFormatMatchingOnNextSet)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowVoiceFormatMatchingOnNextSet)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowVoiceFormatMatchingOnNextSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6185,9 +6185,9 @@ impl ISpeechRecoContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_RetainedAudioFormat(&self, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_RetainedAudioFormat)(windows_core::Interface::as_raw(self), format.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_RetainedAudioFormat)(windows_core::Interface::as_raw(self), format.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RetainedAudioFormat(&self) -> windows_core::Result { @@ -6203,10 +6203,10 @@ impl ISpeechRecoContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGrammar(&self, grammarid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGrammar)(windows_core::Interface::as_raw(self), grammarid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGrammar)(windows_core::Interface::as_raw(self), grammarid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateResultFromMemory(&self, resultblock: *const windows_core::VARIANT) -> windows_core::Result { @@ -6215,16 +6215,16 @@ impl ISpeechRecoContext { } pub unsafe fn Bookmark(&self, options: SpeechBookmarkOptions, streampos: P0, bookmarkid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), options, streampos.into_param().abi(), bookmarkid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), options, streampos.param().abi(), bookmarkid.param().abi()).ok() } pub unsafe fn SetAdaptationData(&self, adaptationstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), adaptationstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAdaptationData)(windows_core::Interface::as_raw(self), adaptationstring.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6310,52 +6310,52 @@ impl ISpeechRecoGrammar { } pub unsafe fn CmdLoadFromFile(&self, filename: P0, loadoption: SpeechLoadOption) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CmdLoadFromFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), loadoption).ok() + (windows_core::Interface::vtable(self).CmdLoadFromFile)(windows_core::Interface::as_raw(self), filename.param().abi(), loadoption).ok() } pub unsafe fn CmdLoadFromObject(&self, classid: P0, grammarname: P1, loadoption: SpeechLoadOption) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CmdLoadFromObject)(windows_core::Interface::as_raw(self), classid.into_param().abi(), grammarname.into_param().abi(), loadoption).ok() + (windows_core::Interface::vtable(self).CmdLoadFromObject)(windows_core::Interface::as_raw(self), classid.param().abi(), grammarname.param().abi(), loadoption).ok() } pub unsafe fn CmdLoadFromResource(&self, hmodule: i32, resourcename: P0, resourcetype: P1, languageid: i32, loadoption: SpeechLoadOption) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CmdLoadFromResource)(windows_core::Interface::as_raw(self), hmodule, resourcename.into_param().abi(), resourcetype.into_param().abi(), languageid, loadoption).ok() + (windows_core::Interface::vtable(self).CmdLoadFromResource)(windows_core::Interface::as_raw(self), hmodule, resourcename.param().abi(), resourcetype.param().abi(), languageid, loadoption).ok() } pub unsafe fn CmdLoadFromMemory(&self, grammardata: P0, loadoption: SpeechLoadOption) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CmdLoadFromMemory)(windows_core::Interface::as_raw(self), grammardata.into_param().abi(), loadoption).ok() + (windows_core::Interface::vtable(self).CmdLoadFromMemory)(windows_core::Interface::as_raw(self), grammardata.param().abi(), loadoption).ok() } pub unsafe fn CmdLoadFromProprietaryGrammar(&self, proprietaryguid: P0, proprietarystring: P1, proprietarydata: P2, loadoption: SpeechLoadOption) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CmdLoadFromProprietaryGrammar)(windows_core::Interface::as_raw(self), proprietaryguid.into_param().abi(), proprietarystring.into_param().abi(), proprietarydata.into_param().abi(), loadoption).ok() + (windows_core::Interface::vtable(self).CmdLoadFromProprietaryGrammar)(windows_core::Interface::as_raw(self), proprietaryguid.param().abi(), proprietarystring.param().abi(), proprietarydata.param().abi(), loadoption).ok() } pub unsafe fn CmdSetRuleState(&self, name: P0, state: SpeechRuleState) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CmdSetRuleState)(windows_core::Interface::as_raw(self), name.into_param().abi(), state).ok() + (windows_core::Interface::vtable(self).CmdSetRuleState)(windows_core::Interface::as_raw(self), name.param().abi(), state).ok() } pub unsafe fn CmdSetRuleIdState(&self, ruleid: i32, state: SpeechRuleState) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CmdSetRuleIdState)(windows_core::Interface::as_raw(self), ruleid, state).ok() } pub unsafe fn DictationLoad(&self, topicname: P0, loadoption: SpeechLoadOption) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DictationLoad)(windows_core::Interface::as_raw(self), topicname.into_param().abi(), loadoption).ok() + (windows_core::Interface::vtable(self).DictationLoad)(windows_core::Interface::as_raw(self), topicname.param().abi(), loadoption).ok() } pub unsafe fn DictationUnload(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DictationUnload)(windows_core::Interface::as_raw(self)).ok() @@ -6366,24 +6366,24 @@ impl ISpeechRecoGrammar { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWordSequenceData(&self, text: P0, textlength: i32, info: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), text.into_param().abi(), textlength, info.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWordSequenceData)(windows_core::Interface::as_raw(self), text.param().abi(), textlength, info.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTextSelection(&self, info: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextSelection)(windows_core::Interface::as_raw(self), info.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextSelection)(windows_core::Interface::as_raw(self), info.param().abi()).ok() } pub unsafe fn IsPronounceable(&self, word: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), word.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPronounceable)(windows_core::Interface::as_raw(self), word.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6441,9 +6441,9 @@ impl ISpeechRecoResult { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioFormat(&self, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AudioFormat)(windows_core::Interface::as_raw(self), format.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AudioFormat)(windows_core::Interface::as_raw(self), format.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioFormat(&self) -> windows_core::Result { @@ -6532,9 +6532,9 @@ impl ISpeechRecoResult2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioFormat(&self, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_AudioFormat)(windows_core::Interface::as_raw(self), format.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_AudioFormat)(windows_core::Interface::as_raw(self), format.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioFormat(&self) -> windows_core::Result { @@ -6569,10 +6569,10 @@ impl ISpeechRecoResult2 { } pub unsafe fn SetTextFeedback(&self, feedback: P0, wassuccessful: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), feedback.into_param().abi(), wassuccessful.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), feedback.param().abi(), wassuccessful.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6600,9 +6600,9 @@ impl ISpeechRecoResultDispatch { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioFormat(&self, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AudioFormat)(windows_core::Interface::as_raw(self), format.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AudioFormat)(windows_core::Interface::as_raw(self), format.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioFormat(&self) -> windows_core::Result { @@ -6644,10 +6644,10 @@ impl ISpeechRecoResultDispatch { } pub unsafe fn SetTextFeedback(&self, feedback: P0, wassuccessful: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), feedback.into_param().abi(), wassuccessful.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextFeedback)(windows_core::Interface::as_raw(self), feedback.param().abi(), wassuccessful.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6730,9 +6730,9 @@ impl ISpeechRecognizer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Recognizer(&self, recognizer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Recognizer)(windows_core::Interface::as_raw(self), recognizer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Recognizer)(windows_core::Interface::as_raw(self), recognizer.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Recognizer(&self) -> windows_core::Result { @@ -6741,9 +6741,9 @@ impl ISpeechRecognizer { } pub unsafe fn SetAllowAudioInputFormatChangesOnNextSet(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowAudioInputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowAudioInputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowAudioInputFormatChangesOnNextSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6752,9 +6752,9 @@ impl ISpeechRecognizer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioInput(&self, audioinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AudioInput)(windows_core::Interface::as_raw(self), audioinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AudioInput)(windows_core::Interface::as_raw(self), audioinput.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioInput(&self) -> windows_core::Result { @@ -6764,9 +6764,9 @@ impl ISpeechRecognizer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioInputStream(&self, audioinputstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AudioInputStream)(windows_core::Interface::as_raw(self), audioinputstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AudioInputStream)(windows_core::Interface::as_raw(self), audioinputstream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioInputStream(&self) -> windows_core::Result { @@ -6792,9 +6792,9 @@ impl ISpeechRecognizer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Profile(&self, profile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Profile)(windows_core::Interface::as_raw(self), profile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Profile)(windows_core::Interface::as_raw(self), profile.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Profile(&self) -> windows_core::Result { @@ -6803,9 +6803,9 @@ impl ISpeechRecognizer { } pub unsafe fn EmulateRecognition(&self, textelements: P0, elementdisplayattributes: *const windows_core::VARIANT, languageid: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), textelements.into_param().abi(), core::mem::transmute(elementdisplayattributes), languageid).ok() + (windows_core::Interface::vtable(self).EmulateRecognition)(windows_core::Interface::as_raw(self), textelements.param().abi(), core::mem::transmute(elementdisplayattributes), languageid).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRecoContext(&self) -> windows_core::Result { @@ -6819,71 +6819,71 @@ impl ISpeechRecognizer { } pub unsafe fn SetPropertyNumber(&self, name: P0, value: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPropertyNumber)(windows_core::Interface::as_raw(self), name.into_param().abi(), value, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPropertyNumber)(windows_core::Interface::as_raw(self), name.param().abi(), value, &mut result__).map(|| result__) } pub unsafe fn GetPropertyNumber(&self, name: P0, value: *mut i32, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyNumber)(windows_core::Interface::as_raw(self), name.into_param().abi(), value, supported).ok() + (windows_core::Interface::vtable(self).GetPropertyNumber)(windows_core::Interface::as_raw(self), name.param().abi(), value, supported).ok() } pub unsafe fn SetPropertyString(&self, name: P0, value: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPropertyString)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPropertyString)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPropertyString(&self, name: P0, value: *mut windows_core::BSTR, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyString)(windows_core::Interface::as_raw(self), name.into_param().abi(), core::mem::transmute(value), supported).ok() + (windows_core::Interface::vtable(self).GetPropertyString)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(value), supported).ok() } pub unsafe fn IsUISupported(&self, typeofui: P0, extradata: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), typeofui.into_param().abi(), core::mem::transmute(extradata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), typeofui.param().abi(), core::mem::transmute(extradata), &mut result__).map(|| result__) } pub unsafe fn DisplayUI(&self, hwndparent: i32, title: P0, typeofui: P1, extradata: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, title.into_param().abi(), typeofui.into_param().abi(), core::mem::transmute(extradata)).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, title.param().abi(), typeofui.param().abi(), core::mem::transmute(extradata)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRecognizers(&self, requiredattributes: P0, optionalattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRecognizers)(windows_core::Interface::as_raw(self), requiredattributes.into_param().abi(), optionalattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRecognizers)(windows_core::Interface::as_raw(self), requiredattributes.param().abi(), optionalattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAudioInputs(&self, requiredattributes: P0, optionalattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAudioInputs)(windows_core::Interface::as_raw(self), requiredattributes.into_param().abi(), optionalattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAudioInputs)(windows_core::Interface::as_raw(self), requiredattributes.param().abi(), optionalattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetProfiles(&self, requiredattributes: P0, optionalattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProfiles)(windows_core::Interface::as_raw(self), requiredattributes.into_param().abi(), optionalattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProfiles)(windows_core::Interface::as_raw(self), requiredattributes.param().abi(), optionalattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7013,22 +7013,22 @@ windows_core::imp::interface_hierarchy!(ISpeechResourceLoader, windows_core::IUn impl ISpeechResourceLoader { pub unsafe fn LoadResource(&self, bstrresourceuri: P0, falwaysreload: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadResource)(windows_core::Interface::as_raw(self), bstrresourceuri.into_param().abi(), falwaysreload.into_param().abi(), core::mem::transmute(pstream), core::mem::transmute(pbstrmimetype.unwrap_or(std::ptr::null_mut())), pfmodified, core::mem::transmute(pbstrredirecturl.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).LoadResource)(windows_core::Interface::as_raw(self), bstrresourceuri.param().abi(), falwaysreload.param().abi(), core::mem::transmute(pstream), core::mem::transmute(pbstrmimetype.unwrap_or(std::ptr::null_mut())), pfmodified, core::mem::transmute(pbstrredirecturl.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetLocalCopy(&self, bstrresourceuri: P0, pbstrlocalpath: *mut windows_core::BSTR, pbstrmimetype: Option<*mut windows_core::BSTR>, pbstrredirecturl: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLocalCopy)(windows_core::Interface::as_raw(self), bstrresourceuri.into_param().abi(), core::mem::transmute(pbstrlocalpath), core::mem::transmute(pbstrmimetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbstrredirecturl.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetLocalCopy)(windows_core::Interface::as_raw(self), bstrresourceuri.param().abi(), core::mem::transmute(pbstrlocalpath), core::mem::transmute(pbstrmimetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbstrredirecturl.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReleaseLocalCopy(&self, pbstrlocalpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseLocalCopy)(windows_core::Interface::as_raw(self), pbstrlocalpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseLocalCopy)(windows_core::Interface::as_raw(self), pbstrlocalpath.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7106,9 +7106,9 @@ impl ISpeechVoice { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Voice(&self, voice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Voice)(windows_core::Interface::as_raw(self), voice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Voice)(windows_core::Interface::as_raw(self), voice.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioOutput(&self) -> windows_core::Result { @@ -7118,9 +7118,9 @@ impl ISpeechVoice { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioOutput(&self, audiooutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AudioOutput)(windows_core::Interface::as_raw(self), audiooutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AudioOutput)(windows_core::Interface::as_raw(self), audiooutput.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioOutputStream(&self) -> windows_core::Result { @@ -7130,9 +7130,9 @@ impl ISpeechVoice { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioOutputStream(&self, audiooutputstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AudioOutputStream)(windows_core::Interface::as_raw(self), audiooutputstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AudioOutputStream)(windows_core::Interface::as_raw(self), audiooutputstream.param().abi()).ok() } pub unsafe fn Rate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7150,9 +7150,9 @@ impl ISpeechVoice { } pub unsafe fn SetAllowAudioOutputFormatChangesOnNextSet(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowAudioOutputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowAudioOutputFormatChangesOnNextSet)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowAudioOutputFormatChangesOnNextSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7188,18 +7188,18 @@ impl ISpeechVoice { } pub unsafe fn Speak(&self, text: P0, flags: SpeechVoiceSpeakFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), text.into_param().abi(), flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Speak)(windows_core::Interface::as_raw(self), text.param().abi(), flags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SpeakStream(&self, stream: P0, flags: SpeechVoiceSpeakFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SpeakStream)(windows_core::Interface::as_raw(self), stream.into_param().abi(), 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() @@ -7209,28 +7209,28 @@ impl ISpeechVoice { } pub unsafe fn Skip(&self, r#type: P0, numitems: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), numitems, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Skip)(windows_core::Interface::as_raw(self), r#type.param().abi(), numitems, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetVoices(&self, requiredattributes: P0, optionalattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVoices)(windows_core::Interface::as_raw(self), requiredattributes.into_param().abi(), optionalattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVoices)(windows_core::Interface::as_raw(self), requiredattributes.param().abi(), optionalattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAudioOutputs(&self, requiredattributes: P0, optionalattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAudioOutputs)(windows_core::Interface::as_raw(self), requiredattributes.into_param().abi(), optionalattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAudioOutputs)(windows_core::Interface::as_raw(self), requiredattributes.param().abi(), optionalattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn WaitUntilDone(&self, mstimeout: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7242,17 +7242,17 @@ impl ISpeechVoice { } pub unsafe fn IsUISupported(&self, typeofui: P0, extradata: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), typeofui.into_param().abi(), core::mem::transmute(extradata), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUISupported)(windows_core::Interface::as_raw(self), typeofui.param().abi(), core::mem::transmute(extradata), &mut result__).map(|| result__) } pub unsafe fn DisplayUI(&self, hwndparent: i32, title: P0, typeofui: P1, extradata: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, title.into_param().abi(), typeofui.into_param().abi(), core::mem::transmute(extradata)).ok() + (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, title.param().abi(), typeofui.param().abi(), core::mem::transmute(extradata)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7448,9 +7448,9 @@ impl ISpeechWaveFormatEx { } pub unsafe fn SetExtraData(&self, extradata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtraData)(windows_core::Interface::as_raw(self), extradata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtraData)(windows_core::Interface::as_raw(self), extradata.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7491,9 +7491,9 @@ impl ISpeechXMLRecoResult { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AudioFormat(&self, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_AudioFormat)(windows_core::Interface::as_raw(self), format.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_AudioFormat)(windows_core::Interface::as_raw(self), format.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AudioFormat(&self) -> windows_core::Result { 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 b0a7b34d4c..cdb0e62dde 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn WMCreateBackupRestorer(pcallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wmvcore.dll" "system" fn WMCreateBackupRestorer(pcallback : * mut core::ffi::c_void, ppbackup : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WMCreateBackupRestorer(pcallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WMCreateBackupRestorer(pcallback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WMCreateEditor() -> windows_core::Result { @@ -28,29 +28,29 @@ pub unsafe fn WMCreateProfileManager() -> windows_core::Result(punkcert: P0, dwrights: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WMCreateReader(punkcert.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WMCreateSyncReader(punkcert.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wmvcore.dll" "system" fn WMCreateWriter(punkcert : * mut core::ffi::c_void, ppwriter : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WMCreateWriter(punkcert.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WMCreateWriter(punkcert.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WMCreateWriterFileSink() -> windows_core::Result { @@ -73,10 +73,10 @@ pub unsafe fn WMCreateWriterPushSink() -> windows_core::Result(pwszfilename: P0, pfisprotected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wmvcore.dll" "system" fn WMIsContentProtected(pwszfilename : windows_core::PCWSTR, pfisprotected : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - WMIsContentProtected(pwszfilename.into_param().abi(), pfisprotected).ok() + WMIsContentProtected(pwszfilename.param().abi(), pfisprotected).ok() } windows_core::imp::define_interface!(INSNetSourceCreator, INSNetSourceCreator_Vtbl, 0x0c0e4080_9081_11d2_beec_0060082f2054); windows_core::imp::interface_hierarchy!(INSNetSourceCreator, windows_core::IUnknown); @@ -86,19 +86,19 @@ impl INSNetSourceCreator { } pub unsafe fn CreateNetSource(&self, pszstreamname: P0, pmonitor: P1, pdata: *const u8, pusercontext: P2, pcallback: P3, qwcontext: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateNetSource)(windows_core::Interface::as_raw(self), pszstreamname.into_param().abi(), pmonitor.into_param().abi(), pdata, pusercontext.into_param().abi(), pcallback.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNetSourceProperties)(windows_core::Interface::as_raw(self), pszstreamname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNetSourceProperties)(windows_core::Interface::as_raw(self), pszstreamname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNetSourceSharedNamespace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -106,10 +106,10 @@ impl INSNetSourceCreator { } pub unsafe fn GetNetSourceAdminInterface(&self, pszstreamname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNetSourceAdminInterface)(windows_core::Interface::as_raw(self), pszstreamname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNetSourceAdminInterface)(windows_core::Interface::as_raw(self), pszstreamname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNumProtocolsSupported(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -337,10 +337,10 @@ impl IWMAddressAccess2 { } pub unsafe fn AddAccessEntryEx(&self, aetype: WM_AETYPE, bstraddress: P0, bstrmask: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAccessEntryEx)(windows_core::Interface::as_raw(self), aetype, bstraddress.into_param().abi(), bstrmask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAccessEntryEx)(windows_core::Interface::as_raw(self), aetype, bstraddress.param().abi(), bstrmask.param().abi()).ok() } } #[repr(C)] @@ -384,21 +384,21 @@ impl IWMBackupRestoreProps { } pub unsafe fn GetPropByName(&self, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropByName)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).GetPropByName)(windows_core::Interface::as_raw(self), pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetProp(&self, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProp)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveProp)(windows_core::Interface::as_raw(self), pcwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveProp)(windows_core::Interface::as_raw(self), pcwszname.param().abi()).ok() } pub unsafe fn RemoveAllProps(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllProps)(windows_core::Interface::as_raw(self)).ok() @@ -560,27 +560,27 @@ impl IWMCodecInfo3 { } pub unsafe fn GetCodecFormatProp(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecFormatProp)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, dwformatindex, pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() + (windows_core::Interface::vtable(self).GetCodecFormatProp)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, dwformatindex, pszname.param().abi(), ptype, pvalue, pdwsize).ok() } pub unsafe fn GetCodecProp(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() + (windows_core::Interface::vtable(self).GetCodecProp)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.param().abi(), ptype, pvalue, pdwsize).ok() } pub unsafe fn SetCodecEnumerationSetting(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCodecEnumerationSetting)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.into_param().abi(), 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: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCodecEnumerationSetting)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() + (windows_core::Interface::vtable(self).GetCodecEnumerationSetting)(windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.param().abi(), ptype, pvalue, pdwsize).ok() } } #[repr(C)] @@ -596,10 +596,10 @@ windows_core::imp::interface_hierarchy!(IWMCredentialCallback, windows_core::IUn impl IWMCredentialCallback { pub unsafe fn AcquireCredentials(&self, pwszrealm: P0, pwszsite: P1, pwszuser: &mut [u16], pwszpassword: &mut [u16], hrstatus: windows_core::HRESULT, pdwflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireCredentials)(windows_core::Interface::as_raw(self), pwszrealm.into_param().abi(), pwszsite.into_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, 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, pdwflags).ok() } } #[repr(C)] @@ -612,9 +612,9 @@ windows_core::imp::interface_hierarchy!(IWMDRMEditor, windows_core::IUnknown); impl IWMDRMEditor { pub unsafe fn GetDRMProperty(&self, pwstrname: P0, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), pdwtype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.param().abi(), pdwtype, pvalue, pcblength).ok() } } #[repr(C)] @@ -661,15 +661,15 @@ impl IWMDRMReader { } pub unsafe fn SetDRMProperty(&self, pwstrname: P0, dwtype: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), pdwtype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.param().abi(), pdwtype, pvalue, pcblength).ok() } } #[repr(C)] @@ -707,21 +707,21 @@ impl IWMDRMReader2 { } pub unsafe fn SetDRMProperty(&self, pwstrname: P0, dwtype: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), dwtype, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), pdwtype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.param().abi(), pdwtype, pvalue, pcblength).ok() } pub unsafe fn SetEvaluateOutputLevelLicenses(&self, fevaluate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEvaluateOutputLevelLicenses)(windows_core::Interface::as_raw(self), fevaluate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEvaluateOutputLevelLicenses)(windows_core::Interface::as_raw(self), fevaluate.param().abi()).ok() } pub unsafe fn GetPlayOutputLevels(&self, pplayopl: *mut DRM_PLAY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPlayOutputLevels)(windows_core::Interface::as_raw(self), pplayopl, pcblength, pdwminappcompliancelevel).ok() @@ -764,21 +764,21 @@ impl IWMDRMReader3 { } pub unsafe fn SetDRMProperty(&self, pwstrname: P0, dwtype: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), dwtype, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), pdwtype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDRMProperty)(windows_core::Interface::as_raw(self), pwstrname.param().abi(), pdwtype, pvalue, pcblength).ok() } pub unsafe fn SetEvaluateOutputLevelLicenses(&self, fevaluate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEvaluateOutputLevelLicenses)(windows_core::Interface::as_raw(self), fevaluate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEvaluateOutputLevelLicenses)(windows_core::Interface::as_raw(self), fevaluate.param().abi()).ok() } pub unsafe fn GetPlayOutputLevels(&self, pplayopl: *mut DRM_PLAY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetPlayOutputLevels)(windows_core::Interface::as_raw(self), pplayopl, pcblength, pdwminappcompliancelevel).ok() @@ -816,10 +816,10 @@ windows_core::imp::interface_hierarchy!(IWMDRMTranscryptor, windows_core::IUnkno impl IWMDRMTranscryptor { pub unsafe fn Initialize(&self, bstrfilename: P0, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut Option, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), pblicenserequestmsg, cblicenserequestmsg, core::mem::transmute(pplicenseresponsemsg), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), 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), hnstime).ok() @@ -844,10 +844,10 @@ windows_core::imp::interface_hierarchy!(IWMDRMTranscryptor2, windows_core::IUnkn impl IWMDRMTranscryptor2 { pub unsafe fn Initialize(&self, bstrfilename: P0, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut Option, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), pblicenserequestmsg, cblicenserequestmsg, core::mem::transmute(pplicenseresponsemsg), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), 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).base__.Seek)(windows_core::Interface::as_raw(self), hnstime).ok() @@ -860,15 +860,15 @@ impl IWMDRMTranscryptor2 { } pub unsafe fn SeekEx(&self, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SeekEx)(windows_core::Interface::as_raw(self), cnsstarttime, cnsduration, flrate, fincludefileheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SeekEx)(windows_core::Interface::as_raw(self), cnsstarttime, cnsduration, flrate, fincludefileheader.param().abi()).ok() } pub unsafe fn ZeroAdjustTimestamps(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ZeroAdjustTimestamps)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ZeroAdjustTimestamps)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn GetSeekStartTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -901,9 +901,9 @@ impl IWMDRMWriter { } pub unsafe fn SetDRMAttribute(&self, wstreamnum: u16, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDRMAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.into_param().abi(), 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)] @@ -928,15 +928,15 @@ impl IWMDRMWriter2 { } pub unsafe fn SetDRMAttribute(&self, wstreamnum: u16, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDRMAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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() } pub unsafe fn SetWMDRMNetEncryption(&self, fsamplesencrypted: P0, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWMDRMNetEncryption)(windows_core::Interface::as_raw(self), fsamplesencrypted.into_param().abi(), pbkeyid, cbkeyid).ok() + (windows_core::Interface::vtable(self).SetWMDRMNetEncryption)(windows_core::Interface::as_raw(self), fsamplesencrypted.param().abi(), pbkeyid, cbkeyid).ok() } } #[repr(C)] @@ -958,15 +958,15 @@ impl IWMDRMWriter3 { } pub unsafe fn SetDRMAttribute(&self, wstreamnum: u16, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDRMAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.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() } pub unsafe fn SetWMDRMNetEncryption(&self, fsamplesencrypted: P0, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWMDRMNetEncryption)(windows_core::Interface::as_raw(self), fsamplesencrypted.into_param().abi(), pbkeyid, cbkeyid).ok() + (windows_core::Interface::vtable(self).base__.SetWMDRMNetEncryption)(windows_core::Interface::as_raw(self), fsamplesencrypted.param().abi(), pbkeyid, cbkeyid).ok() } 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), pimportinitstruct).ok() @@ -1039,15 +1039,15 @@ impl IWMHeaderInfo { } pub unsafe fn GetAttributeByName(&self, pwstreamnum: *mut u16, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), pwstreamnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), pwstreamnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetAttribute(&self, wstreamnum: u16, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1058,9 +1058,9 @@ impl IWMHeaderInfo { } pub unsafe fn AddMarker(&self, pwszmarkername: P0, cnsmarkertime: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMarker)(windows_core::Interface::as_raw(self), pwszmarkername.into_param().abi(), 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), windex).ok() @@ -1074,10 +1074,10 @@ impl IWMHeaderInfo { } pub unsafe fn AddScript(&self, pwsztype: P0, pwszcommand: P1, cnsscripttime: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScript)(windows_core::Interface::as_raw(self), pwsztype.into_param().abi(), pwszcommand.into_param().abi(), 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), windex).ok() @@ -1111,15 +1111,15 @@ impl IWMHeaderInfo2 { } pub unsafe fn GetAttributeByName(&self, pwstreamnum: *mut u16, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAttributeByName)(windows_core::Interface::as_raw(self), pwstreamnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.GetAttributeByName)(windows_core::Interface::as_raw(self), pwstreamnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetAttribute(&self, wstreamnum: u16, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1130,9 +1130,9 @@ impl IWMHeaderInfo2 { } pub unsafe fn AddMarker(&self, pwszmarkername: P0, cnsmarkertime: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMarker)(windows_core::Interface::as_raw(self), pwszmarkername.into_param().abi(), cnsmarkertime).ok() + (windows_core::Interface::vtable(self).base__.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).base__.RemoveMarker)(windows_core::Interface::as_raw(self), windex).ok() @@ -1146,10 +1146,10 @@ impl IWMHeaderInfo2 { } pub unsafe fn AddScript(&self, pwsztype: P0, pwszcommand: P1, cnsscripttime: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddScript)(windows_core::Interface::as_raw(self), pwsztype.into_param().abi(), pwszcommand.into_param().abi(), cnsscripttime).ok() + (windows_core::Interface::vtable(self).base__.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).base__.RemoveScript)(windows_core::Interface::as_raw(self), windex).ok() @@ -1180,15 +1180,15 @@ impl IWMHeaderInfo3 { } pub unsafe fn GetAttributeByName(&self, pwstreamnum: *mut u16, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetAttributeByName)(windows_core::Interface::as_raw(self), pwstreamnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.base__.GetAttributeByName)(windows_core::Interface::as_raw(self), pwstreamnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetAttribute(&self, wstreamnum: u16, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -1199,9 +1199,9 @@ impl IWMHeaderInfo3 { } pub unsafe fn AddMarker(&self, pwszmarkername: P0, cnsmarkertime: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddMarker)(windows_core::Interface::as_raw(self), pwszmarkername.into_param().abi(), cnsmarkertime).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.RemoveMarker)(windows_core::Interface::as_raw(self), windex).ok() @@ -1215,10 +1215,10 @@ impl IWMHeaderInfo3 { } pub unsafe fn AddScript(&self, pwsztype: P0, pwszcommand: P1, cnsscripttime: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddScript)(windows_core::Interface::as_raw(self), pwsztype.into_param().abi(), pwszcommand.into_param().abi(), cnsscripttime).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.RemoveScript)(windows_core::Interface::as_raw(self), windex).ok() @@ -1236,9 +1236,9 @@ impl IWMHeaderInfo3 { } pub unsafe fn GetAttributeIndices(&self, wstreamnum: u16, pwszname: P0, pwlangindex: *const u16, pwindices: *mut u16, pwcount: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeIndices)(windows_core::Interface::as_raw(self), wstreamnum, pwszname.into_param().abi(), pwlangindex, pwindices, pwcount).ok() + (windows_core::Interface::vtable(self).GetAttributeIndices)(windows_core::Interface::as_raw(self), wstreamnum, pwszname.param().abi(), pwlangindex, pwindices, 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), wstreamnum, windex, core::mem::transmute(pwszname), pwnamelen, ptype, pwlangindex, pvalue, pdwdatalength).ok() @@ -1248,19 +1248,19 @@ impl IWMHeaderInfo3 { } pub unsafe fn AddAttribute(&self, wstreamnum: u16, pszname: P0, pwindex: *mut u16, r#type: WMT_ATTR_DATATYPE, wlangindex: u16, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAttribute)(windows_core::Interface::as_raw(self), wstreamnum, pszname.into_param().abi(), pwindex, r#type, 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(), 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), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCodecInfo)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), pwszdescription.into_param().abi(), 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)] @@ -1279,9 +1279,9 @@ windows_core::imp::interface_hierarchy!(IWMIStreamProps, windows_core::IUnknown) impl IWMIStreamProps { pub unsafe fn GetProperty(&self, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pszname.param().abi(), ptype, pvalue, pdwsize).ok() } } #[repr(C)] @@ -1311,10 +1311,10 @@ windows_core::imp::interface_hierarchy!(IWMIndexer, windows_core::IUnknown); impl IWMIndexer { pub unsafe fn StartIndexing(&self, pwszurl: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartIndexing)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pcallback.into_param().abi(), 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() @@ -1331,10 +1331,10 @@ windows_core::imp::interface_hierarchy!(IWMIndexer2, windows_core::IUnknown, IWM impl IWMIndexer2 { pub unsafe fn StartIndexing(&self, pwszurl: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartIndexing)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -1386,10 +1386,10 @@ impl IWMLanguageList { } pub unsafe fn AddLanguageByRFC1766String(&self, pwszlanguagestring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddLanguageByRFC1766String)(windows_core::Interface::as_raw(self), pwszlanguagestring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddLanguageByRFC1766String)(windows_core::Interface::as_raw(self), pwszlanguagestring.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1404,9 +1404,9 @@ windows_core::imp::interface_hierarchy!(IWMLicenseBackup, windows_core::IUnknown impl IWMLicenseBackup { pub unsafe fn BackupLicenses(&self, dwflags: u32, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BackupLicenses)(windows_core::Interface::as_raw(self), dwflags, pcallback.into_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() @@ -1423,9 +1423,9 @@ windows_core::imp::interface_hierarchy!(IWMLicenseRestore, windows_core::IUnknow impl IWMLicenseRestore { pub unsafe fn RestoreLicenses(&self, dwflags: u32, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreLicenses)(windows_core::Interface::as_raw(self), dwflags, pcallback.into_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() @@ -1479,9 +1479,9 @@ windows_core::imp::interface_hierarchy!(IWMMetadataEditor, windows_core::IUnknow impl IWMMetadataEditor { pub unsafe fn Open(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -1502,9 +1502,9 @@ windows_core::imp::interface_hierarchy!(IWMMetadataEditor2, windows_core::IUnkno impl IWMMetadataEditor2 { pub unsafe fn Open(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Close)(windows_core::Interface::as_raw(self)).ok() @@ -1514,9 +1514,9 @@ impl IWMMetadataEditor2 { } pub unsafe fn OpenEx(&self, pwszfilename: P0, dwdesiredaccess: u32, dwsharemode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenEx)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi(), dwdesiredaccess, dwsharemode).ok() + (windows_core::Interface::vtable(self).OpenEx)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), dwdesiredaccess, dwsharemode).ok() } } #[repr(C)] @@ -1574,9 +1574,9 @@ impl IWMMutualExclusion2 { } pub unsafe fn SetName(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn GetRecordCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1593,9 +1593,9 @@ impl IWMMutualExclusion2 { } pub unsafe fn SetRecordName(&self, wrecordnumber: u16, pwszrecordname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecordName)(windows_core::Interface::as_raw(self), wrecordnumber, pwszrecordname.into_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), wrecordnumber, pwstreamnumarray, pcstreams).ok() @@ -1725,18 +1725,18 @@ impl IWMProfile { } pub unsafe fn SetName(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn GetDescription(&self, pwszdescription: windows_core::PWSTR, pcchdescription: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszdescription), pcchdescription).ok() } pub unsafe fn SetDescription(&self, pwszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.param().abi()).ok() } pub unsafe fn GetStreamCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1752,24 +1752,24 @@ impl IWMProfile { } pub unsafe fn RemoveStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (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), wstreamnum).ok() } pub unsafe fn AddStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), pconfig.param().abi()).ok() } pub unsafe fn ReconfigStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReconfigStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReconfigStream)(windows_core::Interface::as_raw(self), pconfig.param().abi()).ok() } pub unsafe fn CreateNewStream(&self, guidstreamtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1785,15 +1785,15 @@ impl IWMProfile { } pub unsafe fn RemoveMutualExclusion(&self, pme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveMutualExclusion)(windows_core::Interface::as_raw(self), pme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveMutualExclusion)(windows_core::Interface::as_raw(self), pme.param().abi()).ok() } pub unsafe fn AddMutualExclusion(&self, pme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMutualExclusion)(windows_core::Interface::as_raw(self), pme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMutualExclusion)(windows_core::Interface::as_raw(self), pme.param().abi()).ok() } pub unsafe fn CreateNewMutualExclusion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1834,18 +1834,18 @@ impl IWMProfile2 { } pub unsafe fn SetName(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn GetDescription(&self, pwszdescription: windows_core::PWSTR, pcchdescription: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszdescription), pcchdescription).ok() } pub unsafe fn SetDescription(&self, pwszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.param().abi()).ok() } pub unsafe fn GetStreamCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1861,24 +1861,24 @@ impl IWMProfile2 { } pub unsafe fn RemoveStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.RemoveStreamByNumber)(windows_core::Interface::as_raw(self), wstreamnum).ok() } pub unsafe fn AddStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddStream)(windows_core::Interface::as_raw(self), pconfig.param().abi()).ok() } pub unsafe fn ReconfigStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReconfigStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReconfigStream)(windows_core::Interface::as_raw(self), pconfig.param().abi()).ok() } pub unsafe fn CreateNewStream(&self, guidstreamtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1894,15 +1894,15 @@ impl IWMProfile2 { } pub unsafe fn RemoveMutualExclusion(&self, pme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveMutualExclusion)(windows_core::Interface::as_raw(self), pme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveMutualExclusion)(windows_core::Interface::as_raw(self), pme.param().abi()).ok() } pub unsafe fn AddMutualExclusion(&self, pme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMutualExclusion)(windows_core::Interface::as_raw(self), pme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddMutualExclusion)(windows_core::Interface::as_raw(self), pme.param().abi()).ok() } pub unsafe fn CreateNewMutualExclusion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1930,18 +1930,18 @@ impl IWMProfile3 { } pub unsafe fn SetName(&self, pwszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn GetDescription(&self, pwszdescription: windows_core::PWSTR, pcchdescription: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetDescription)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszdescription), pcchdescription).ok() } pub unsafe fn SetDescription(&self, pwszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), pwszdescription.param().abi()).ok() } pub unsafe fn GetStreamCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1957,24 +1957,24 @@ impl IWMProfile3 { } pub unsafe fn RemoveStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.RemoveStreamByNumber)(windows_core::Interface::as_raw(self), wstreamnum).ok() } pub unsafe fn AddStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddStream)(windows_core::Interface::as_raw(self), pconfig.param().abi()).ok() } pub unsafe fn ReconfigStream(&self, pconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ReconfigStream)(windows_core::Interface::as_raw(self), pconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ReconfigStream)(windows_core::Interface::as_raw(self), pconfig.param().abi()).ok() } pub unsafe fn CreateNewStream(&self, guidstreamtype: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1990,15 +1990,15 @@ impl IWMProfile3 { } pub unsafe fn RemoveMutualExclusion(&self, pme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveMutualExclusion)(windows_core::Interface::as_raw(self), pme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveMutualExclusion)(windows_core::Interface::as_raw(self), pme.param().abi()).ok() } pub unsafe fn AddMutualExclusion(&self, pme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddMutualExclusion)(windows_core::Interface::as_raw(self), pme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddMutualExclusion)(windows_core::Interface::as_raw(self), pme.param().abi()).ok() } pub unsafe fn CreateNewMutualExclusion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2025,15 +2025,15 @@ impl IWMProfile3 { } pub unsafe fn RemoveBandwidthSharing(&self, pbs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBandwidthSharing)(windows_core::Interface::as_raw(self), pbs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBandwidthSharing)(windows_core::Interface::as_raw(self), pbs.param().abi()).ok() } pub unsafe fn AddBandwidthSharing(&self, pbs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddBandwidthSharing)(windows_core::Interface::as_raw(self), pbs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddBandwidthSharing)(windows_core::Interface::as_raw(self), pbs.param().abi()).ok() } pub unsafe fn CreateNewBandwidthSharing(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2045,9 +2045,9 @@ impl IWMProfile3 { } pub unsafe fn SetStreamPrioritization(&self, psp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamPrioritization)(windows_core::Interface::as_raw(self), psp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamPrioritization)(windows_core::Interface::as_raw(self), psp.param().abi()).ok() } pub unsafe fn RemoveStreamPrioritization(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveStreamPrioritization)(windows_core::Interface::as_raw(self)).ok() @@ -2090,17 +2090,17 @@ impl IWMProfileManager { } pub unsafe fn LoadProfileByData(&self, pwszprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadProfileByData)(windows_core::Interface::as_raw(self), pwszprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadProfileByData)(windows_core::Interface::as_raw(self), pwszprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SaveProfile(&self, piwmprofile: P0, pwszprofile: P1, pdwlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveProfile)(windows_core::Interface::as_raw(self), piwmprofile.into_param().abi(), pwszprofile.into_param().abi(), pdwlength).ok() + (windows_core::Interface::vtable(self).SaveProfile)(windows_core::Interface::as_raw(self), piwmprofile.param().abi(), pwszprofile.param().abi(), pdwlength).ok() } pub unsafe fn GetSystemProfileCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2134,17 +2134,17 @@ impl IWMProfileManager2 { } pub unsafe fn LoadProfileByData(&self, pwszprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.LoadProfileByData)(windows_core::Interface::as_raw(self), pwszprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.LoadProfileByData)(windows_core::Interface::as_raw(self), pwszprofile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SaveProfile(&self, piwmprofile: P0, pwszprofile: P1, pdwlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveProfile)(windows_core::Interface::as_raw(self), piwmprofile.into_param().abi(), pwszprofile.into_param().abi(), pdwlength).ok() + (windows_core::Interface::vtable(self).base__.SaveProfile)(windows_core::Interface::as_raw(self), piwmprofile.param().abi(), pwszprofile.param().abi(), pdwlength).ok() } pub unsafe fn GetSystemProfileCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2191,24 +2191,24 @@ impl IWMPropertyVault { } pub unsafe fn GetPropertyByName(&self, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyByName)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() + (windows_core::Interface::vtable(self).GetPropertyByName)(windows_core::Interface::as_raw(self), pszname.param().abi(), ptype, pvalue, pdwsize).ok() } pub unsafe fn SetProperty(&self, pszname: P0, ptype: WMT_ATTR_DATATYPE, pvalue: *const u8, dwsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), ptype, pvalue, 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), dwindex, core::mem::transmute(pszname), pdwnamelen, ptype, pvalue, pdwsize).ok() } pub unsafe fn CopyPropertiesFrom(&self, piwmpropertyvault: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyPropertiesFrom)(windows_core::Interface::as_raw(self), piwmpropertyvault.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyPropertiesFrom)(windows_core::Interface::as_raw(self), piwmpropertyvault.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -2229,9 +2229,9 @@ windows_core::imp::interface_hierarchy!(IWMProximityDetection, windows_core::IUn impl IWMProximityDetection { pub unsafe fn StartDetection(&self, pbregistrationmsg: &[u8], pblocaladdress: &[u8], dwextraportsallowed: u32, ppregistrationresponsemsg: *mut Option, pcallback: P0, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(), dwextraportsallowed, core::mem::transmute(ppregistrationresponsemsg), pcallback.into_param().abi(), 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)] @@ -2244,10 +2244,10 @@ windows_core::imp::interface_hierarchy!(IWMReader, windows_core::IUnknown); impl IWMReader { pub unsafe fn Open(&self, pwszurl: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pcallback.into_param().abi(), 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() @@ -2262,9 +2262,9 @@ impl IWMReader { } pub unsafe fn SetOutputProps(&self, dwoutputnum: u32, poutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.into_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__ = std::mem::zeroed(); @@ -2323,9 +2323,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderAdvanced, windows_core::IUnknow impl IWMReaderAdvanced { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.param().abi()).ok() } pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2336,9 +2336,9 @@ impl IWMReaderAdvanced { } pub unsafe fn SetManualStreamSelection(&self, fselection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.param().abi()).ok() } pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2353,9 +2353,9 @@ impl IWMReaderAdvanced { } pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.param().abi()).ok() } pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2363,9 +2363,9 @@ impl IWMReaderAdvanced { } pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.param().abi()).ok() } pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2373,9 +2373,9 @@ impl IWMReaderAdvanced { } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2383,9 +2383,9 @@ impl IWMReaderAdvanced { } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2438,9 +2438,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderAdvanced2, windows_core::IUnkno impl IWMReaderAdvanced2 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.param().abi()).ok() } pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2451,9 +2451,9 @@ impl IWMReaderAdvanced2 { } pub unsafe fn SetManualStreamSelection(&self, fselection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.param().abi()).ok() } pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2468,9 +2468,9 @@ impl IWMReaderAdvanced2 { } pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.param().abi()).ok() } pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2478,9 +2478,9 @@ impl IWMReaderAdvanced2 { } pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.param().abi()).ok() } pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2488,9 +2488,9 @@ impl IWMReaderAdvanced2 { } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2498,9 +2498,9 @@ impl IWMReaderAdvanced2 { } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2542,9 +2542,9 @@ impl IWMReaderAdvanced2 { } pub unsafe fn SaveFileAs(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn GetProtocolName(&self, pwszprotocol: windows_core::PWSTR, pcchprotocol: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszprotocol), pcchprotocol).ok() @@ -2554,24 +2554,24 @@ impl IWMReaderAdvanced2 { } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), 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), cnsstart, cnsduration, frate).ok() } pub unsafe fn SetLogClientID(&self, flogclientid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.param().abi()).ok() } pub unsafe fn GetLogClientID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2583,10 +2583,10 @@ impl IWMReaderAdvanced2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), pvcontext).ok() } } #[repr(C)] @@ -2616,9 +2616,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderAdvanced3, windows_core::IUnkno impl IWMReaderAdvanced3 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.param().abi()).ok() } pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2629,9 +2629,9 @@ impl IWMReaderAdvanced3 { } pub unsafe fn SetManualStreamSelection(&self, fselection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.param().abi()).ok() } pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2646,9 +2646,9 @@ impl IWMReaderAdvanced3 { } pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.param().abi()).ok() } pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2656,9 +2656,9 @@ impl IWMReaderAdvanced3 { } pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.param().abi()).ok() } pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2666,9 +2666,9 @@ impl IWMReaderAdvanced3 { } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2676,9 +2676,9 @@ impl IWMReaderAdvanced3 { } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2720,9 +2720,9 @@ impl IWMReaderAdvanced3 { } pub unsafe fn SaveFileAs(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn GetProtocolName(&self, pwszprotocol: windows_core::PWSTR, pcchprotocol: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszprotocol), pcchprotocol).ok() @@ -2732,24 +2732,24 @@ impl IWMReaderAdvanced3 { } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Preroll)(windows_core::Interface::as_raw(self), cnsstart, cnsduration, frate).ok() } pub unsafe fn SetLogClientID(&self, flogclientid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.param().abi()).ok() } pub unsafe fn GetLogClientID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2761,10 +2761,10 @@ impl IWMReaderAdvanced3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn StopNetStreaming(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopNetStreaming)(windows_core::Interface::as_raw(self)).ok() @@ -2784,9 +2784,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderAdvanced4, windows_core::IUnkno impl IWMReaderAdvanced4 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.param().abi()).ok() } pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2797,9 +2797,9 @@ impl IWMReaderAdvanced4 { } pub unsafe fn SetManualStreamSelection(&self, fselection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.param().abi()).ok() } pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2814,9 +2814,9 @@ impl IWMReaderAdvanced4 { } pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.param().abi()).ok() } pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2824,9 +2824,9 @@ impl IWMReaderAdvanced4 { } pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.param().abi()).ok() } pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2834,9 +2834,9 @@ impl IWMReaderAdvanced4 { } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2844,9 +2844,9 @@ impl IWMReaderAdvanced4 { } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2888,9 +2888,9 @@ impl IWMReaderAdvanced4 { } pub unsafe fn SaveFileAs(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn GetProtocolName(&self, pwszprotocol: windows_core::PWSTR, pcchprotocol: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszprotocol), pcchprotocol).ok() @@ -2900,24 +2900,24 @@ impl IWMReaderAdvanced4 { } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.Preroll)(windows_core::Interface::as_raw(self), cnsstart, cnsduration, frate).ok() } pub unsafe fn SetLogClientID(&self, flogclientid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.param().abi()).ok() } pub unsafe fn GetLogClientID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2929,10 +2929,10 @@ impl IWMReaderAdvanced4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).base__.base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn StopNetStreaming(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StopNetStreaming)(windows_core::Interface::as_raw(self)).ok() @@ -2957,11 +2957,11 @@ impl IWMReaderAdvanced4 { } pub unsafe fn AddLogParam(&self, wsznamespace: P0, wszname: P1, wszvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddLogParam)(windows_core::Interface::as_raw(self), wsznamespace.into_param().abi(), wszname.into_param().abi(), wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddLogParam)(windows_core::Interface::as_raw(self), wsznamespace.param().abi(), wszname.param().abi(), wszvalue.param().abi()).ok() } pub unsafe fn SendLogParams(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendLogParams)(windows_core::Interface::as_raw(self)).ok() @@ -2995,9 +2995,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderAdvanced5, windows_core::IUnkno impl IWMReaderAdvanced5 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.param().abi()).ok() } pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3008,9 +3008,9 @@ impl IWMReaderAdvanced5 { } pub unsafe fn SetManualStreamSelection(&self, fselection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.param().abi()).ok() } pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3025,9 +3025,9 @@ impl IWMReaderAdvanced5 { } pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.param().abi()).ok() } pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3035,9 +3035,9 @@ impl IWMReaderAdvanced5 { } pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.param().abi()).ok() } pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3045,9 +3045,9 @@ impl IWMReaderAdvanced5 { } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3055,9 +3055,9 @@ impl IWMReaderAdvanced5 { } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3099,9 +3099,9 @@ impl IWMReaderAdvanced5 { } pub unsafe fn SaveFileAs(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn GetProtocolName(&self, pwszprotocol: windows_core::PWSTR, pcchprotocol: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.GetProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszprotocol), pcchprotocol).ok() @@ -3111,24 +3111,24 @@ impl IWMReaderAdvanced5 { } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.Preroll)(windows_core::Interface::as_raw(self), cnsstart, cnsduration, frate).ok() } pub unsafe fn SetLogClientID(&self, flogclientid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.param().abi()).ok() } pub unsafe fn GetLogClientID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3140,10 +3140,10 @@ impl IWMReaderAdvanced5 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn StopNetStreaming(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.StopNetStreaming)(windows_core::Interface::as_raw(self)).ok() @@ -3168,11 +3168,11 @@ impl IWMReaderAdvanced5 { } pub unsafe fn AddLogParam(&self, wsznamespace: P0, wszname: P1, wszvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddLogParam)(windows_core::Interface::as_raw(self), wsznamespace.into_param().abi(), wszname.into_param().abi(), wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddLogParam)(windows_core::Interface::as_raw(self), wsznamespace.param().abi(), wszname.param().abi(), wszvalue.param().abi()).ok() } pub unsafe fn SendLogParams(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SendLogParams)(windows_core::Interface::as_raw(self)).ok() @@ -3189,9 +3189,9 @@ impl IWMReaderAdvanced5 { } pub unsafe fn SetPlayerHook(&self, dwoutputnum: u32, phook: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlayerHook)(windows_core::Interface::as_raw(self), dwoutputnum, phook.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlayerHook)(windows_core::Interface::as_raw(self), dwoutputnum, phook.param().abi()).ok() } } #[repr(C)] @@ -3204,9 +3204,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderAdvanced6, windows_core::IUnkno impl IWMReaderAdvanced6 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.param().abi()).ok() } pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3217,9 +3217,9 @@ impl IWMReaderAdvanced6 { } pub unsafe fn SetManualStreamSelection(&self, fselection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.param().abi()).ok() } pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3234,9 +3234,9 @@ impl IWMReaderAdvanced6 { } pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.param().abi()).ok() } pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3244,9 +3244,9 @@ impl IWMReaderAdvanced6 { } pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.param().abi()).ok() } pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3254,9 +3254,9 @@ impl IWMReaderAdvanced6 { } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3264,9 +3264,9 @@ impl IWMReaderAdvanced6 { } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3308,9 +3308,9 @@ impl IWMReaderAdvanced6 { } pub unsafe fn SaveFileAs(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SaveFileAs)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn GetProtocolName(&self, pwszprotocol: windows_core::PWSTR, pcchprotocol: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetProtocolName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszprotocol), pcchprotocol).ok() @@ -3320,24 +3320,24 @@ impl IWMReaderAdvanced6 { } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.Preroll)(windows_core::Interface::as_raw(self), cnsstart, cnsduration, frate).ok() } pub unsafe fn SetLogClientID(&self, flogclientid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.param().abi()).ok() } pub unsafe fn GetLogClientID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3349,10 +3349,10 @@ impl IWMReaderAdvanced6 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0, pcallback: P1, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn StopNetStreaming(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.StopNetStreaming)(windows_core::Interface::as_raw(self)).ok() @@ -3377,11 +3377,11 @@ impl IWMReaderAdvanced6 { } pub unsafe fn AddLogParam(&self, wsznamespace: P0, wszname: P1, wszvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddLogParam)(windows_core::Interface::as_raw(self), wsznamespace.into_param().abi(), wszname.into_param().abi(), wszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddLogParam)(windows_core::Interface::as_raw(self), wsznamespace.param().abi(), wszname.param().abi(), wszvalue.param().abi()).ok() } pub unsafe fn SendLogParams(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SendLogParams)(windows_core::Interface::as_raw(self)).ok() @@ -3398,9 +3398,9 @@ impl IWMReaderAdvanced6 { } pub unsafe fn SetPlayerHook(&self, dwoutputnum: u32, phook: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPlayerHook)(windows_core::Interface::as_raw(self), dwoutputnum, phook.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPlayerHook)(windows_core::Interface::as_raw(self), dwoutputnum, phook.param().abi()).ok() } 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(), dwcertificatetype, dwflags, pbinitializationvector, pcbinitializationvector).ok() @@ -3435,9 +3435,9 @@ impl IWMReaderCallback { } pub unsafe fn OnSample(&self, dwoutputnum: u32, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: P0, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSample)(windows_core::Interface::as_raw(self), dwoutputnum, cnssampletime, cnssampleduration, dwflags, psample.into_param().abi(), 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)] @@ -3450,9 +3450,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderCallbackAdvanced, windows_core: impl IWMReaderCallbackAdvanced { pub unsafe fn OnStreamSample(&self, wstreamnum: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: P0, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, cnssampleduration, dwflags, psample.into_param().abi(), 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), cnscurrenttime, pvcontext).ok() @@ -3498,69 +3498,69 @@ impl IWMReaderNetworkConfig { } pub unsafe fn GetProxySettings(&self, pwszprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetProxySettings(&self, pwszprotocol: P0, proxysetting: WMT_PROXY_SETTINGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), core::mem::transmute(pwszhostname), pcchhostname).ok() + (windows_core::Interface::vtable(self).GetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), core::mem::transmute(pwszhostname), pcchhostname).ok() } pub unsafe fn SetProxyHostName(&self, pwszprotocol: P0, pwszhostname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), pwszhostname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), pwszhostname.param().abi()).ok() } pub unsafe fn GetProxyPort(&self, pwszprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetProxyPort(&self, pwszprotocol: P0, dwport: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), core::mem::transmute(pwszexceptionlist), pcchexceptionlist).ok() + (windows_core::Interface::vtable(self).GetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), core::mem::transmute(pwszexceptionlist), pcchexceptionlist).ok() } pub unsafe fn SetProxyExceptionList(&self, pwszprotocol: P0, pwszexceptionlist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), pwszexceptionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), pwszexceptionlist.param().abi()).ok() } pub unsafe fn GetProxyBypassForLocal(&self, pwszprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetProxyBypassForLocal(&self, pwszprotocol: P0, fbypassforlocal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), fbypassforlocal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), fbypassforlocal.param().abi()).ok() } pub unsafe fn GetForceRerunAutoProxyDetection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3568,9 +3568,9 @@ impl IWMReaderNetworkConfig { } pub unsafe fn SetForceRerunAutoProxyDetection(&self, fforcererundetection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetForceRerunAutoProxyDetection)(windows_core::Interface::as_raw(self), fforcererundetection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetForceRerunAutoProxyDetection)(windows_core::Interface::as_raw(self), fforcererundetection.param().abi()).ok() } pub unsafe fn GetEnableMulticast(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3578,9 +3578,9 @@ impl IWMReaderNetworkConfig { } pub unsafe fn SetEnableMulticast(&self, fenablemulticast: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableMulticast)(windows_core::Interface::as_raw(self), fenablemulticast.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableMulticast)(windows_core::Interface::as_raw(self), fenablemulticast.param().abi()).ok() } pub unsafe fn GetEnableHTTP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3588,9 +3588,9 @@ impl IWMReaderNetworkConfig { } pub unsafe fn SetEnableHTTP(&self, fenablehttp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableHTTP)(windows_core::Interface::as_raw(self), fenablehttp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableHTTP)(windows_core::Interface::as_raw(self), fenablehttp.param().abi()).ok() } pub unsafe fn GetEnableUDP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3598,9 +3598,9 @@ impl IWMReaderNetworkConfig { } pub unsafe fn SetEnableUDP(&self, fenableudp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableUDP)(windows_core::Interface::as_raw(self), fenableudp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableUDP)(windows_core::Interface::as_raw(self), fenableudp.param().abi()).ok() } pub unsafe fn GetEnableTCP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3608,9 +3608,9 @@ impl IWMReaderNetworkConfig { } pub unsafe fn SetEnableTCP(&self, fenabletcp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableTCP)(windows_core::Interface::as_raw(self), fenabletcp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableTCP)(windows_core::Interface::as_raw(self), fenabletcp.param().abi()).ok() } pub unsafe fn ResetProtocolRollover(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetProtocolRollover)(windows_core::Interface::as_raw(self)).ok() @@ -3631,9 +3631,9 @@ impl IWMReaderNetworkConfig { } pub unsafe fn AddLoggingUrl(&self, pwszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddLoggingUrl)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi()).ok() + (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), dwindex, core::mem::transmute(pwszurl), pcchurl).ok() @@ -3701,69 +3701,69 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn GetProxySettings(&self, pwszprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetProxySettings(&self, pwszprotocol: P0, proxysetting: WMT_PROXY_SETTINGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProxySettings)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), proxysetting).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), core::mem::transmute(pwszhostname), pcchhostname).ok() + (windows_core::Interface::vtable(self).base__.GetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), core::mem::transmute(pwszhostname), pcchhostname).ok() } pub unsafe fn SetProxyHostName(&self, pwszprotocol: P0, pwszhostname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), pwszhostname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProxyHostName)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), pwszhostname.param().abi()).ok() } pub unsafe fn GetProxyPort(&self, pwszprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetProxyPort(&self, pwszprotocol: P0, dwport: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProxyPort)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), dwport).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), core::mem::transmute(pwszexceptionlist), pcchexceptionlist).ok() + (windows_core::Interface::vtable(self).base__.GetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), core::mem::transmute(pwszexceptionlist), pcchexceptionlist).ok() } pub unsafe fn SetProxyExceptionList(&self, pwszprotocol: P0, pwszexceptionlist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), pwszexceptionlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), pwszexceptionlist.param().abi()).ok() } pub unsafe fn GetProxyBypassForLocal(&self, pwszprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetProxyBypassForLocal(&self, pwszprotocol: P0, fbypassforlocal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.into_param().abi(), fbypassforlocal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), fbypassforlocal.param().abi()).ok() } pub unsafe fn GetForceRerunAutoProxyDetection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3771,9 +3771,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetForceRerunAutoProxyDetection(&self, fforcererundetection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetForceRerunAutoProxyDetection)(windows_core::Interface::as_raw(self), fforcererundetection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetForceRerunAutoProxyDetection)(windows_core::Interface::as_raw(self), fforcererundetection.param().abi()).ok() } pub unsafe fn GetEnableMulticast(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3781,9 +3781,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableMulticast(&self, fenablemulticast: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableMulticast)(windows_core::Interface::as_raw(self), fenablemulticast.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableMulticast)(windows_core::Interface::as_raw(self), fenablemulticast.param().abi()).ok() } pub unsafe fn GetEnableHTTP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3791,9 +3791,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableHTTP(&self, fenablehttp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableHTTP)(windows_core::Interface::as_raw(self), fenablehttp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableHTTP)(windows_core::Interface::as_raw(self), fenablehttp.param().abi()).ok() } pub unsafe fn GetEnableUDP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3801,9 +3801,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableUDP(&self, fenableudp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableUDP)(windows_core::Interface::as_raw(self), fenableudp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableUDP)(windows_core::Interface::as_raw(self), fenableudp.param().abi()).ok() } pub unsafe fn GetEnableTCP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3811,9 +3811,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableTCP(&self, fenabletcp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableTCP)(windows_core::Interface::as_raw(self), fenabletcp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableTCP)(windows_core::Interface::as_raw(self), fenabletcp.param().abi()).ok() } pub unsafe fn ResetProtocolRollover(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ResetProtocolRollover)(windows_core::Interface::as_raw(self)).ok() @@ -3834,9 +3834,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn AddLoggingUrl(&self, pwszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddLoggingUrl)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetLoggingUrl)(windows_core::Interface::as_raw(self), dwindex, core::mem::transmute(pwszurl), pcchurl).ok() @@ -3854,9 +3854,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableContentCaching(&self, fenablecontentcaching: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableContentCaching)(windows_core::Interface::as_raw(self), fenablecontentcaching.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableContentCaching)(windows_core::Interface::as_raw(self), fenablecontentcaching.param().abi()).ok() } pub unsafe fn GetEnableFastCache(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3864,9 +3864,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableFastCache(&self, fenablefastcache: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableFastCache)(windows_core::Interface::as_raw(self), fenablefastcache.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableFastCache)(windows_core::Interface::as_raw(self), fenablefastcache.param().abi()).ok() } pub unsafe fn GetAcceleratedStreamingDuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3888,9 +3888,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableResends(&self, fenableresends: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableResends)(windows_core::Interface::as_raw(self), fenableresends.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableResends)(windows_core::Interface::as_raw(self), fenableresends.param().abi()).ok() } pub unsafe fn GetEnableThinning(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3898,9 +3898,9 @@ impl IWMReaderNetworkConfig2 { } pub unsafe fn SetEnableThinning(&self, fenablethinning: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableThinning)(windows_core::Interface::as_raw(self), fenablethinning.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableThinning)(windows_core::Interface::as_raw(self), fenablethinning.param().abi()).ok() } pub unsafe fn GetMaxNetPacketSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3929,9 +3929,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderPlaylistBurn, windows_core::IUn impl IWMReaderPlaylistBurn { pub unsafe fn InitPlaylistBurn(&self, cfiles: u32, ppwszfilenames: *const windows_core::PCWSTR, pcallback: P0, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitPlaylistBurn)(windows_core::Interface::as_raw(self), cfiles, ppwszfilenames, pcallback.into_param().abi(), 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__ = std::mem::zeroed(); @@ -3995,9 +3995,9 @@ windows_core::imp::interface_hierarchy!(IWMReaderTypeNegotiation, windows_core:: impl IWMReaderTypeNegotiation { pub unsafe fn TryOutputProps(&self, dwoutputnum: u32, poutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TryOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TryOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.param().abi()).ok() } } #[repr(C)] @@ -4010,15 +4010,15 @@ windows_core::imp::interface_hierarchy!(IWMRegisterCallback, windows_core::IUnkn impl IWMRegisterCallback { pub unsafe fn Advise(&self, pcallback: P0, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pvcontext).ok() } } #[repr(C)] @@ -4051,23 +4051,23 @@ impl IWMRegisteredDevice { } pub unsafe fn GetAttributeByName(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttributeByName)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetAttributeByName(&self, bstrname: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttributeByName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttributeByName)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrvalue.param().abi()).ok() } pub unsafe fn Approve(&self, fapprove: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Approve)(windows_core::Interface::as_raw(self), fapprove.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Approve)(windows_core::Interface::as_raw(self), fapprove.param().abi()).ok() } pub unsafe fn IsValid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4133,12 +4133,12 @@ windows_core::imp::interface_hierarchy!(IWMSInternalAdminNetSource, windows_core impl IWMSInternalAdminNetSource { pub unsafe fn Initialize(&self, psharednamespace: P0, pnamespacenode: P1, pnetsourcecreator: P2, fembeddedinserver: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psharednamespace.into_param().abi(), pnamespacenode.into_param().abi(), pnetsourcecreator.into_param().abi(), fembeddedinserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psharednamespace.param().abi(), pnamespacenode.param().abi(), pnetsourcecreator.param().abi(), fembeddedinserver.param().abi()).ok() } pub unsafe fn GetNetSourceCreator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4146,25 +4146,25 @@ impl IWMSInternalAdminNetSource { } pub unsafe fn SetCredentials(&self, bstrrealm: P0, bstrname: P1, bstrpassword: P2, fpersist: P3, fconfirmedgood: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrname.into_param().abi(), bstrpassword.into_param().abi(), fpersist.into_param().abi(), fconfirmedgood.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrname.param().abi(), bstrpassword.param().abi(), fpersist.param().abi(), fconfirmedgood.param().abi()).ok() } pub unsafe fn GetCredentials(&self, bstrrealm: P0, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCredentials)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() + (windows_core::Interface::vtable(self).GetCredentials)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() } pub unsafe fn DeleteCredentials(&self, bstrrealm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteCredentials)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteCredentials)(windows_core::Interface::as_raw(self), bstrrealm.param().abi()).ok() } pub unsafe fn GetCredentialFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4175,10 +4175,10 @@ impl IWMSInternalAdminNetSource { } pub unsafe fn FindProxyForURL(&self, bstrprotocol: P0, bstrhost: P1, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindProxyForURL)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), bstrhost.into_param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pdwproxycontext).ok() + (windows_core::Interface::vtable(self).FindProxyForURL)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), bstrhost.param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pdwproxycontext).ok() } pub unsafe fn RegisterProxyFailure(&self, hrparam: windows_core::HRESULT, dwproxycontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RegisterProxyFailure)(windows_core::Interface::as_raw(self), hrparam, dwproxycontext).ok() @@ -4211,39 +4211,39 @@ windows_core::imp::interface_hierarchy!(IWMSInternalAdminNetSource2, windows_cor impl IWMSInternalAdminNetSource2 { pub unsafe fn SetCredentialsEx(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, bstrname: P3, bstrpassword: P4, fpersist: P5, fconfirmedgood: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi(), bstrname.into_param().abi(), bstrpassword.into_param().abi(), fpersist.into_param().abi(), fconfirmedgood.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi(), bstrname.param().abi(), bstrpassword.param().abi(), fpersist.param().abi(), fconfirmedgood.param().abi()).ok() } pub unsafe fn GetCredentialsEx(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi(), pdwurlpolicy, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() + (windows_core::Interface::vtable(self).GetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi(), pdwurlpolicy, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() } pub unsafe fn DeleteCredentialsEx(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi()).ok() } pub unsafe fn FindProxyForURLEx(&self, bstrprotocol: P0, bstrhost: P1, bstrurl: P2, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindProxyForURLEx)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), bstrhost.into_param().abi(), bstrurl.into_param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pdwproxycontext).ok() + (windows_core::Interface::vtable(self).FindProxyForURLEx)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), bstrhost.param().abi(), bstrurl.param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pdwproxycontext).ok() } } #[repr(C)] @@ -4259,39 +4259,39 @@ windows_core::imp::interface_hierarchy!(IWMSInternalAdminNetSource3, windows_cor impl IWMSInternalAdminNetSource3 { pub unsafe fn SetCredentialsEx(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, bstrname: P3, bstrpassword: P4, fpersist: P5, fconfirmedgood: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi(), bstrname.into_param().abi(), bstrpassword.into_param().abi(), fpersist.into_param().abi(), fconfirmedgood.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi(), bstrname.param().abi(), bstrpassword.param().abi(), fpersist.param().abi(), fconfirmedgood.param().abi()).ok() } pub unsafe fn GetCredentialsEx(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi(), pdwurlpolicy, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() + (windows_core::Interface::vtable(self).base__.GetCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi(), pdwurlpolicy, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() } pub unsafe fn DeleteCredentialsEx(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteCredentialsEx)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi()).ok() } pub unsafe fn FindProxyForURLEx(&self, bstrprotocol: P0, bstrhost: P1, bstrurl: P2, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindProxyForURLEx)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), bstrhost.into_param().abi(), bstrurl.into_param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pdwproxycontext).ok() + (windows_core::Interface::vtable(self).base__.FindProxyForURLEx)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), bstrhost.param().abi(), bstrurl.param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pdwproxycontext).ok() } pub unsafe fn GetNetSourceCreator2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4299,11 +4299,11 @@ impl IWMSInternalAdminNetSource3 { } pub unsafe fn FindProxyForURLEx2(&self, bstrprotocol: P0, bstrhost: P1, bstrurl: P2, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindProxyForURLEx2)(windows_core::Interface::as_raw(self), bstrprotocol.into_param().abi(), bstrhost.into_param().abi(), bstrurl.into_param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pqwproxycontext).ok() + (windows_core::Interface::vtable(self).FindProxyForURLEx2)(windows_core::Interface::as_raw(self), bstrprotocol.param().abi(), bstrhost.param().abi(), bstrurl.param().abi(), pfproxyenabled, core::mem::transmute(pbstrproxyserver), pdwproxyport, pqwproxycontext).ok() } pub unsafe fn RegisterProxyFailure2(&self, hrparam: windows_core::HRESULT, qwproxycontext: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RegisterProxyFailure2)(windows_core::Interface::as_raw(self), hrparam, qwproxycontext).ok() @@ -4317,25 +4317,25 @@ impl IWMSInternalAdminNetSource3 { } pub unsafe fn SetCredentialsEx2(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, bstrname: P3, bstrpassword: P4, fpersist: P5, fconfirmedgood: P6, fcleartextauthentication: P7) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentialsEx2)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi(), bstrname.into_param().abi(), bstrpassword.into_param().abi(), fpersist.into_param().abi(), fconfirmedgood.into_param().abi(), fcleartextauthentication.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentialsEx2)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi(), bstrname.param().abi(), bstrpassword.param().abi(), fpersist.param().abi(), fconfirmedgood.param().abi(), fcleartextauthentication.param().abi()).ok() } pub unsafe fn GetCredentialsEx2(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, fcleartextauthentication: P3, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCredentialsEx2)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi(), bstrurl.into_param().abi(), fproxy.into_param().abi(), fcleartextauthentication.into_param().abi(), pdwurlpolicy, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() + (windows_core::Interface::vtable(self).GetCredentialsEx2)(windows_core::Interface::as_raw(self), bstrrealm.param().abi(), bstrurl.param().abi(), fproxy.param().abi(), fcleartextauthentication.param().abi(), pdwurlpolicy, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood).ok() } } #[repr(C)] @@ -4366,18 +4366,18 @@ impl IWMSecureChannel { } pub unsafe fn WMSC_AddCertificate(&self, pcert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WMSC_AddCertificate)(windows_core::Interface::as_raw(self), pcert.into_param().abi()).ok() + (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), pbcertsig, cbcertsig).ok() } pub unsafe fn WMSC_Connect(&self, potherside: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WMSC_Connect)(windows_core::Interface::as_raw(self), potherside.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WMSC_Connect)(windows_core::Interface::as_raw(self), potherside.param().abi()).ok() } pub unsafe fn WMSC_IsConnected(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4451,18 +4451,18 @@ impl IWMStreamConfig { } pub unsafe fn SetStreamName(&self, pwszstreamname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStreamName)(windows_core::Interface::as_raw(self), pwszstreamname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStreamName)(windows_core::Interface::as_raw(self), pwszstreamname.param().abi()).ok() } pub unsafe fn GetConnectionName(&self, pwszinputname: windows_core::PWSTR, pcchinputname: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetConnectionName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszinputname), pcchinputname).ok() } pub unsafe fn SetConnectionName(&self, pwszinputname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConnectionName)(windows_core::Interface::as_raw(self), pwszinputname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConnectionName)(windows_core::Interface::as_raw(self), pwszinputname.param().abi()).ok() } pub unsafe fn GetBitrate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4513,18 +4513,18 @@ impl IWMStreamConfig2 { } pub unsafe fn SetStreamName(&self, pwszstreamname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStreamName)(windows_core::Interface::as_raw(self), pwszstreamname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStreamName)(windows_core::Interface::as_raw(self), pwszstreamname.param().abi()).ok() } pub unsafe fn GetConnectionName(&self, pwszinputname: windows_core::PWSTR, pcchinputname: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetConnectionName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszinputname), pcchinputname).ok() } pub unsafe fn SetConnectionName(&self, pwszinputname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetConnectionName)(windows_core::Interface::as_raw(self), pwszinputname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetConnectionName)(windows_core::Interface::as_raw(self), pwszinputname.param().abi()).ok() } pub unsafe fn GetBitrate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4590,18 +4590,18 @@ impl IWMStreamConfig3 { } pub unsafe fn SetStreamName(&self, pwszstreamname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetStreamName)(windows_core::Interface::as_raw(self), pwszstreamname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetStreamName)(windows_core::Interface::as_raw(self), pwszstreamname.param().abi()).ok() } pub unsafe fn GetConnectionName(&self, pwszinputname: windows_core::PWSTR, pcchinputname: *mut u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetConnectionName)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszinputname), pcchinputname).ok() } pub unsafe fn SetConnectionName(&self, pwszinputname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetConnectionName)(windows_core::Interface::as_raw(self), pwszinputname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetConnectionName)(windows_core::Interface::as_raw(self), pwszinputname.param().abi()).ok() } pub unsafe fn GetBitrate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4642,9 +4642,9 @@ impl IWMStreamConfig3 { } pub unsafe fn SetLanguage(&self, pwszlanguagestring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), pwszlanguagestring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), pwszlanguagestring.param().abi()).ok() } } #[repr(C)] @@ -4694,9 +4694,9 @@ windows_core::imp::interface_hierarchy!(IWMSyncReader, windows_core::IUnknown); impl IWMSyncReader { pub unsafe fn Open(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -4719,9 +4719,9 @@ impl IWMSyncReader { } pub unsafe fn SetReadStreamSamples(&self, wstreamnum: u16, fcompressed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, fcompressed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, fcompressed.param().abi()).ok() } pub unsafe fn GetReadStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4729,15 +4729,15 @@ impl IWMSyncReader { } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4749,9 +4749,9 @@ impl IWMSyncReader { } pub unsafe fn SetOutputProps(&self, dwoutputnum: u32, poutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.into_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__ = std::mem::zeroed(); @@ -4780,9 +4780,9 @@ impl IWMSyncReader { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } } #[repr(C)] @@ -4818,9 +4818,9 @@ windows_core::imp::interface_hierarchy!(IWMSyncReader2, windows_core::IUnknown, impl IWMSyncReader2 { pub unsafe fn Open(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Close)(windows_core::Interface::as_raw(self)).ok() @@ -4843,9 +4843,9 @@ impl IWMSyncReader2 { } pub unsafe fn SetReadStreamSamples(&self, wstreamnum: u16, fcompressed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, fcompressed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, fcompressed.param().abi()).ok() } pub unsafe fn GetReadStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4853,15 +4853,15 @@ impl IWMSyncReader2 { } pub unsafe fn GetOutputSetting(&self, dwoutputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.GetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetOutputSetting(&self, dwoutputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputSetting)(windows_core::Interface::as_raw(self), dwoutputnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -4873,9 +4873,9 @@ impl IWMSyncReader2 { } pub unsafe fn SetOutputProps(&self, dwoutputnum: u32, poutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOutputProps)(windows_core::Interface::as_raw(self), dwoutputnum, poutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -4904,9 +4904,9 @@ impl IWMSyncReader2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenStream(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OpenStream)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } 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), wstreamnum, pstart, pend).ok() @@ -4917,9 +4917,9 @@ impl IWMSyncReader2 { } pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, pallocator.into_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__ = std::mem::zeroed(); @@ -4927,9 +4927,9 @@ impl IWMSyncReader2 { } pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, pallocator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, pallocator.into_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__ = std::mem::zeroed(); @@ -5007,15 +5007,15 @@ impl IWMWriter { } pub unsafe fn SetProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } pub unsafe fn SetOutputFilename(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFilename)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputFilename)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn GetInputCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5027,9 +5027,9 @@ impl IWMWriter { } pub unsafe fn SetInputProps(&self, dwinputnum: u32, pinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputProps)(windows_core::Interface::as_raw(self), dwinputnum, pinput.into_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__ = std::mem::zeroed(); @@ -5051,9 +5051,9 @@ impl IWMWriter { } pub unsafe fn WriteSample(&self, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSample)(windows_core::Interface::as_raw(self), dwinputnum, cnssampletime, dwflags, psample.into_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() @@ -5089,27 +5089,27 @@ impl IWMWriterAdvanced { } pub unsafe fn AddSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn RemoveSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn WriteStreamSample(&self, wstreamnum: u16, cnssampletime: u64, mssamplesendtime: u32, cnssampleduration: u64, dwflags: u32, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, mssamplesendtime, cnssampleduration, dwflags, psample.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5158,27 +5158,27 @@ impl IWMWriterAdvanced2 { } pub unsafe fn AddSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn RemoveSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn WriteStreamSample(&self, wstreamnum: u16, cnssampletime: u64, mssamplesendtime: u32, cnssampleduration: u64, dwflags: u32, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WriteStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, mssamplesendtime, cnssampleduration, dwflags, psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.WriteStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, mssamplesendtime, cnssampleduration, dwflags, psample.param().abi()).ok() } pub unsafe fn SetLiveSource(&self, fislivesource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5200,15 +5200,15 @@ impl IWMWriterAdvanced2 { } pub unsafe fn GetInputSetting(&self, dwinputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).GetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetInputSetting(&self, dwinputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.into_param().abi(), 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)] @@ -5230,27 +5230,27 @@ impl IWMWriterAdvanced3 { } pub unsafe fn AddSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn RemoveSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn WriteStreamSample(&self, wstreamnum: u16, cnssampletime: u64, mssamplesendtime: u32, cnssampleduration: u64, dwflags: u32, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.WriteStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, mssamplesendtime, cnssampleduration, dwflags, psample.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.WriteStreamSample)(windows_core::Interface::as_raw(self), wstreamnum, cnssampletime, mssamplesendtime, cnssampleduration, dwflags, psample.param().abi()).ok() } pub unsafe fn SetLiveSource(&self, fislivesource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5272,15 +5272,15 @@ impl IWMWriterAdvanced3 { } pub unsafe fn GetInputSetting(&self, dwinputnum: u32, pszname: P0, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.into_param().abi(), ptype, pvalue, pcblength).ok() + (windows_core::Interface::vtable(self).base__.GetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.param().abi(), ptype, pvalue, pcblength).ok() } pub unsafe fn SetInputSetting(&self, dwinputnum: u32, pszname: P0, r#type: WMT_ATTR_DATATYPE, pvalue: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInputSetting)(windows_core::Interface::as_raw(self), dwinputnum, pszname.into_param().abi(), r#type, core::mem::transmute(pvalue.as_ptr()), pvalue.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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() } 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), wstreamnum, pstats).ok() @@ -5300,9 +5300,9 @@ windows_core::imp::interface_hierarchy!(IWMWriterFileSink, windows_core::IUnknow impl IWMWriterFileSink { pub unsafe fn OnHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5314,18 +5314,18 @@ impl IWMWriterFileSink { } pub unsafe fn OnDataUnit(&self, pdataunit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.param().abi()).ok() } pub unsafe fn OnEndWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnEndWriting)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Open(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } } #[repr(C)] @@ -5338,9 +5338,9 @@ windows_core::imp::interface_hierarchy!(IWMWriterFileSink2, windows_core::IUnkno impl IWMWriterFileSink2 { pub unsafe fn OnHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5352,18 +5352,18 @@ impl IWMWriterFileSink2 { } pub unsafe fn OnDataUnit(&self, pdataunit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.param().abi()).ok() } pub unsafe fn OnEndWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.OnEndWriting)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Open(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn Start(&self, cnsstarttime: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), cnsstarttime).ok() @@ -5407,9 +5407,9 @@ windows_core::imp::interface_hierarchy!(IWMWriterFileSink3, windows_core::IUnkno impl IWMWriterFileSink3 { pub unsafe fn OnHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5421,18 +5421,18 @@ impl IWMWriterFileSink3 { } pub unsafe fn OnDataUnit(&self, pdataunit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.param().abi()).ok() } pub unsafe fn OnEndWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.OnEndWriting)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Open(&self, pwszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Open)(windows_core::Interface::as_raw(self), pwszfilename.param().abi()).ok() } pub unsafe fn Start(&self, cnsstarttime: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Start)(windows_core::Interface::as_raw(self), cnsstarttime).ok() @@ -5461,9 +5461,9 @@ impl IWMWriterFileSink3 { } pub unsafe fn SetAutoIndexing(&self, fdoautoindexing: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoIndexing)(windows_core::Interface::as_raw(self), fdoautoindexing.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoIndexing)(windows_core::Interface::as_raw(self), fdoautoindexing.param().abi()).ok() } pub unsafe fn GetAutoIndexing(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5471,9 +5471,9 @@ impl IWMWriterFileSink3 { } pub unsafe fn SetControlStream(&self, wstreamnumber: u16, fshouldcontrolstartandstop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetControlStream)(windows_core::Interface::as_raw(self), wstreamnumber, fshouldcontrolstartandstop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetControlStream)(windows_core::Interface::as_raw(self), wstreamnumber, fshouldcontrolstartandstop.param().abi()).ok() } pub unsafe fn GetMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5484,10 +5484,10 @@ impl IWMWriterFileSink3 { } pub unsafe fn SetUnbufferedIO(&self, funbufferedio: P0, frestrictmemusage: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnbufferedIO)(windows_core::Interface::as_raw(self), funbufferedio.into_param().abi(), frestrictmemusage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUnbufferedIO)(windows_core::Interface::as_raw(self), funbufferedio.param().abi(), frestrictmemusage.param().abi()).ok() } pub unsafe fn GetUnbufferedIO(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5514,9 +5514,9 @@ windows_core::imp::interface_hierarchy!(IWMWriterNetworkSink, windows_core::IUnk impl IWMWriterNetworkSink { pub unsafe fn OnHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5528,9 +5528,9 @@ impl IWMWriterNetworkSink { } pub unsafe fn OnDataUnit(&self, pdataunit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.param().abi()).ok() } pub unsafe fn OnEndWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnEndWriting)(windows_core::Interface::as_raw(self)).ok() @@ -5579,15 +5579,15 @@ windows_core::imp::interface_hierarchy!(IWMWriterPostView, windows_core::IUnknow impl IWMWriterPostView { pub unsafe fn SetPostViewCallback(&self, pcallback: P0, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostViewCallback)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pvcontext).ok() + (windows_core::Interface::vtable(self).SetPostViewCallback)(windows_core::Interface::as_raw(self), pcallback.param().abi(), pvcontext).ok() } pub unsafe fn SetReceivePostViewSamples(&self, wstreamnum: u16, freceivepostviewsamples: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReceivePostViewSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivepostviewsamples.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReceivePostViewSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivepostviewsamples.param().abi()).ok() } pub unsafe fn GetReceivePostViewSamples(&self, wstreamnum: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5599,9 +5599,9 @@ impl IWMWriterPostView { } pub unsafe fn SetPostViewProps(&self, wstreamnumber: u16, poutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostViewProps)(windows_core::Interface::as_raw(self), wstreamnumber, poutput.into_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__ = std::mem::zeroed(); @@ -5613,9 +5613,9 @@ impl IWMWriterPostView { } pub unsafe fn SetAllocateForPostView(&self, wstreamnumber: u16, fallocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllocateForPostView)(windows_core::Interface::as_raw(self), wstreamnumber, fallocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllocateForPostView)(windows_core::Interface::as_raw(self), wstreamnumber, fallocate.param().abi()).ok() } pub unsafe fn GetAllocateForPostView(&self, wstreamnumber: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5643,9 +5643,9 @@ impl IWMWriterPostViewCallback { } pub unsafe fn OnPostViewSample(&self, wstreamnumber: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: P0, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPostViewSample)(windows_core::Interface::as_raw(self), wstreamnumber, cnssampletime, cnssampleduration, dwflags, psample.into_param().abi(), 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), wstreamnum, cbbuffer, core::mem::transmute(ppbuffer), pvcontext).ok() @@ -5672,9 +5672,9 @@ impl IWMWriterPreprocess { } pub unsafe fn PreprocessSample(&self, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreprocessSample)(windows_core::Interface::as_raw(self), dwinputnum, cnssampletime, dwflags, psample.into_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), dwinputnum, dwflags).ok() @@ -5694,9 +5694,9 @@ windows_core::imp::interface_hierarchy!(IWMWriterPushSink, windows_core::IUnknow impl IWMWriterPushSink { pub unsafe fn OnHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5708,20 +5708,20 @@ impl IWMWriterPushSink { } pub unsafe fn OnDataUnit(&self, pdataunit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.param().abi()).ok() } pub unsafe fn OnEndWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnEndWriting)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Connect(&self, pwszurl: P0, pwsztemplateurl: P1, fautodestroy: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pwsztemplateurl.into_param().abi(), fautodestroy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pwsztemplateurl.param().abi(), fautodestroy.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -5742,9 +5742,9 @@ windows_core::imp::interface_hierarchy!(IWMWriterSink, windows_core::IUnknown); impl IWMWriterSink { pub unsafe fn OnHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5756,9 +5756,9 @@ impl IWMWriterSink { } pub unsafe fn OnDataUnit(&self, pdataunit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDataUnit)(windows_core::Interface::as_raw(self), pdataunit.param().abi()).ok() } pub unsafe fn OnEndWriting(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnEndWriting)(windows_core::Interface::as_raw(self)).ok() diff --git a/crates/libs/windows/src/Windows/Win32/Media/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/mod.rs index 2eebf032c8..25ac092b83 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/mod.rs @@ -68,17 +68,17 @@ impl IReferenceClock { } pub unsafe fn AdviseTime(&self, basetime: i64, streamtime: i64, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseTime)(windows_core::Interface::as_raw(self), basetime, streamtime, hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdviseTime)(windows_core::Interface::as_raw(self), basetime, streamtime, hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AdvisePeriodic(&self, starttime: i64, periodtime: i64, hsemaphore: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AdvisePeriodic)(windows_core::Interface::as_raw(self), starttime, periodtime, hsemaphore.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdvisePeriodic)(windows_core::Interface::as_raw(self), starttime, periodtime, hsemaphore.param().abi(), &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), dwadvisecookie).ok() @@ -101,17 +101,17 @@ impl IReferenceClock2 { } pub unsafe fn AdviseTime(&self, basetime: i64, streamtime: i64, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AdviseTime)(windows_core::Interface::as_raw(self), basetime, streamtime, hevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.AdviseTime)(windows_core::Interface::as_raw(self), basetime, streamtime, hevent.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AdvisePeriodic(&self, starttime: i64, periodtime: i64, hsemaphore: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AdvisePeriodic)(windows_core::Interface::as_raw(self), starttime, periodtime, hsemaphore.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.AdvisePeriodic)(windows_core::Interface::as_raw(self), starttime, periodtime, hsemaphore.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwadvisecookie: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Unadvise)(windows_core::Interface::as_raw(self), dwadvisecookie).ok() 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 26fc429f01..a30dd06acd 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs @@ -1,19 +1,19 @@ #[inline] pub unsafe fn DhcpAddFilterV4(serveripaddress: P0, addfilterinfo: *const DHCP_FILTER_ADD_INFO, forceflag: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), addfilterinfo, forceflag.into_param().abi()) + DhcpAddFilterV4(serveripaddress.param().abi(), addfilterinfo, forceflag.param().abi()) } #[inline] pub unsafe fn DhcpAddSecurityGroup(pserver: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddSecurityGroup(pserver : windows_core::PCWSTR) -> u32); - DhcpAddSecurityGroup(pserver.into_param().abi()) + DhcpAddSecurityGroup(pserver.param().abi()) } #[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 { @@ -23,51 +23,51 @@ pub unsafe fn DhcpAddServer(flags: u32, idinfo: *mut core::ffi::c_void, newserve #[inline] pub unsafe fn DhcpAddSubnetElement(serveripaddress: P0, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, addelementinfo) + DhcpAddSubnetElement(serveripaddress.param().abi(), subnetaddress, addelementinfo) } #[inline] pub unsafe fn DhcpAddSubnetElementV4(serveripaddress: P0, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA_V4) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, addelementinfo) + DhcpAddSubnetElementV4(serveripaddress.param().abi(), subnetaddress, addelementinfo) } #[inline] pub unsafe fn DhcpAddSubnetElementV5(serveripaddress: P0, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA_V5) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddSubnetElementV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, addelementinfo : *mut DHCP_SUBNET_ELEMENT_DATA_V6) -> u32); - DhcpAddSubnetElementV6(serveripaddress.into_param().abi(), core::mem::transmute(subnetaddress), addelementinfo) + DhcpAddSubnetElementV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), addelementinfo) } #[inline] pub unsafe fn DhcpAuditLogGetParams(serveripaddress: P0, flags: u32, auditlogdir: *mut windows_core::PWSTR, diskcheckinterval: *mut u32, maxlogfilessize: *mut u32, minspaceondisk: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, auditlogdir, diskcheckinterval, maxlogfilessize, minspaceondisk) + DhcpAuditLogGetParams(serveripaddress.param().abi(), flags, auditlogdir, diskcheckinterval, maxlogfilessize, minspaceondisk) } #[inline] pub unsafe fn DhcpAuditLogSetParams(serveripaddress: P0, flags: u32, auditlogdir: P1, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), flags, auditlogdir.into_param().abi(), diskcheckinterval, maxlogfilessize, minspaceondisk) + DhcpAuditLogSetParams(serveripaddress.param().abi(), flags, auditlogdir.param().abi(), diskcheckinterval, maxlogfilessize, minspaceondisk) } #[inline] pub unsafe fn DhcpCApiCleanup() { @@ -82,94 +82,94 @@ pub unsafe fn DhcpCApiInitialize(version: *mut u32) -> u32 { #[inline] pub unsafe fn DhcpCreateClass(serveripaddress: P0, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), reservedmustbezero, classinfo) + DhcpCreateClass(serveripaddress.param().abi(), reservedmustbezero, classinfo) } #[inline] pub unsafe fn DhcpCreateClassV6(serveripaddress: P0, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), reservedmustbezero, classinfo) + DhcpCreateClassV6(serveripaddress.param().abi(), reservedmustbezero, classinfo) } #[inline] pub unsafe fn DhcpCreateClientInfo(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO) -> u32); - DhcpCreateClientInfo(serveripaddress.into_param().abi(), clientinfo) + DhcpCreateClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpCreateClientInfoV4(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V4) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpCreateClientInfoV4(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpCreateClientInfoVQ(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpCreateClientInfoVQ(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpCreateOption(serveripaddress: P0, optionid: u32, optioninfo: *const DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), optionid, optioninfo) + DhcpCreateOption(serveripaddress.param().abi(), optionid, optioninfo) } #[inline] pub unsafe fn DhcpCreateOptionV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: *mut DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), optioninfo) + DhcpCreateOptionV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), optioninfo) } #[inline] pub unsafe fn DhcpCreateOptionV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: *mut DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), optioninfo) + DhcpCreateOptionV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), optioninfo) } #[inline] pub unsafe fn DhcpCreateSubnet(serveripaddress: P0, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpCreateSubnetV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, subnetinfo : *mut DHCP_SUBNET_INFO_V6) -> u32); - DhcpCreateSubnetV6(serveripaddress.into_param().abi(), core::mem::transmute(subnetaddress), subnetinfo) + DhcpCreateSubnetV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), subnetinfo) } #[inline] pub unsafe fn DhcpCreateSubnetVQ(serveripaddress: P0, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, 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 { @@ -179,44 +179,44 @@ pub unsafe fn DhcpDeRegisterParamChange(flags: u32, reserved: *mut core::ffi::c_ #[inline] pub unsafe fn DhcpDeleteClass(serveripaddress: P0, reservedmustbezero: u32, classname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteClass(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classname : windows_core::PCWSTR) -> u32); - DhcpDeleteClass(serveripaddress.into_param().abi(), reservedmustbezero, classname.into_param().abi()) + DhcpDeleteClass(serveripaddress.param().abi(), reservedmustbezero, classname.param().abi()) } #[inline] pub unsafe fn DhcpDeleteClassV6(serveripaddress: P0, reservedmustbezero: u32, classname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteClassV6(serveripaddress : windows_core::PCWSTR, reservedmustbezero : u32, classname : windows_core::PCWSTR) -> u32); - DhcpDeleteClassV6(serveripaddress.into_param().abi(), reservedmustbezero, classname.into_param().abi()) + DhcpDeleteClassV6(serveripaddress.param().abi(), reservedmustbezero, classname.param().abi()) } #[inline] pub unsafe fn DhcpDeleteClientInfo(serveripaddress: P0, clientinfo: *const DHCP_SEARCH_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_SEARCH_INFO) -> u32); - DhcpDeleteClientInfo(serveripaddress.into_param().abi(), clientinfo) + DhcpDeleteClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpDeleteClientInfoV6(serveripaddress: P0, clientinfo: *const DHCP_SEARCH_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpDeleteClientInfoV6(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpDeleteFilterV4(serveripaddress: P0, deletefilterinfo: *const DHCP_ADDR_PATTERN) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteFilterV4(serveripaddress : windows_core::PCWSTR, deletefilterinfo : *const DHCP_ADDR_PATTERN) -> u32); - DhcpDeleteFilterV4(serveripaddress.into_param().abi(), 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 { @@ -226,27 +226,27 @@ pub unsafe fn DhcpDeleteServer(flags: u32, idinfo: *mut core::ffi::c_void, newse #[inline] pub unsafe fn DhcpDeleteSubnet(serveripaddress: P0, subnetaddress: u32, forceflag: DHCP_FORCE_FLAG) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, forceflag) + DhcpDeleteSubnet(serveripaddress.param().abi(), subnetaddress, forceflag) } #[inline] pub unsafe fn DhcpDeleteSubnetV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, forceflag: DHCP_FORCE_FLAG) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(subnetaddress), forceflag) + DhcpDeleteSubnetV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), forceflag) } #[inline] pub unsafe fn DhcpDeleteSuperScopeV4(serveripaddress: P0, superscopename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpDeleteSuperScopeV4(serveripaddress : windows_core::PCWSTR, superscopename : windows_core::PCWSTR) -> u32); - DhcpDeleteSuperScopeV4(serveripaddress.into_param().abi(), superscopename.into_param().abi()) + DhcpDeleteSuperScopeV4(serveripaddress.param().abi(), superscopename.param().abi()) } #[inline] pub unsafe fn DhcpDsCleanup() { @@ -261,82 +261,82 @@ pub unsafe fn DhcpDsInit() -> u32 { #[inline] pub unsafe fn DhcpEnumClasses(serveripaddress: P0, reservedmustbezero: u32, resumehandle: *mut u32, preferredmaximum: u32, classinfoarray: *mut *mut DHCP_CLASS_INFO_ARRAY, nread: *mut u32, ntotal: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), reservedmustbezero, resumehandle, preferredmaximum, classinfoarray, nread, ntotal) + DhcpEnumClasses(serveripaddress.param().abi(), reservedmustbezero, resumehandle, preferredmaximum, classinfoarray, nread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), reservedmustbezero, resumehandle, preferredmaximum, classinfoarray, nread, ntotal) + DhcpEnumClassesV6(serveripaddress.param().abi(), reservedmustbezero, resumehandle, preferredmaximum, classinfoarray, nread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), resumehandle, preferredmaximum, listtype, enumfilterinfo, elementsread, elementstotal) + DhcpEnumFilterV4(serveripaddress.param().abi(), resumehandle, preferredmaximum, listtype, enumfilterinfo, elementsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), scopeinfo, resumehandle, preferredmaximum, optionvalues, optionsread, optionstotal) + DhcpEnumOptionValues(serveripaddress.param().abi(), scopeinfo, resumehandle, preferredmaximum, optionvalues, optionsread, optionstotal) } #[inline] pub unsafe fn DhcpEnumOptionValuesV5(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, resumehandle, preferredmaximum, optionvalues, optionsread, optionstotal) + DhcpEnumOptionValuesV5(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), scopeinfo, resumehandle, preferredmaximum, optionvalues, optionsread, optionstotal) } #[inline] pub unsafe fn DhcpEnumOptionValuesV6(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, resumehandle, preferredmaximum, optionvalues, optionsread, optionstotal) + DhcpEnumOptionValuesV6(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), scopeinfo, resumehandle, preferredmaximum, optionvalues, optionsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), resumehandle, preferredmaximum, options, optionsread, optionstotal) + DhcpEnumOptions(serveripaddress.param().abi(), resumehandle, preferredmaximum, options, optionsread, optionstotal) } #[inline] pub unsafe fn DhcpEnumOptionsV5(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, classname.into_param().abi(), vendorname.into_param().abi(), resumehandle, preferredmaximum, options, optionsread, optionstotal) + DhcpEnumOptionsV5(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), resumehandle, preferredmaximum, options, optionsread, optionstotal) } #[inline] pub unsafe fn DhcpEnumOptionsV6(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, classname.into_param().abi(), vendorname.into_param().abi(), resumehandle, preferredmaximum, options, optionsread, optionstotal) + DhcpEnumOptionsV6(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), resumehandle, preferredmaximum, options, optionsread, 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 { @@ -346,338 +346,338 @@ pub unsafe fn DhcpEnumServers(flags: u32, idinfo: *mut core::ffi::c_void, server #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpEnumSubnetClients(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpEnumSubnetClientsFilterStatusInfo(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpEnumSubnetClientsV4(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpEnumSubnetClientsV5(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(subnetaddress), resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpEnumSubnetClientsV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpEnumSubnetClientsVQ(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, elementstotal) + DhcpEnumSubnetElements(serveripaddress.param().abi(), subnetaddress, enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, elementstotal) + DhcpEnumSubnetElementsV4(serveripaddress.param().abi(), subnetaddress, enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, elementstotal) + DhcpEnumSubnetElementsV5(serveripaddress.param().abi(), subnetaddress, enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(subnetaddress), enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, elementstotal) + DhcpEnumSubnetElementsV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), enumelementtype, resumehandle, preferredmaximum, enumelementinfo, elementsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), resumehandle, preferredmaximum, enuminfo, elementsread, elementstotal) + DhcpEnumSubnets(serveripaddress.param().abi(), resumehandle, preferredmaximum, enuminfo, elementsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), resumehandle, preferredmaximum, enuminfo, elementsread, elementstotal) + DhcpEnumSubnetsV6(serveripaddress.param().abi(), resumehandle, preferredmaximum, enuminfo, elementsread, elementstotal) } #[inline] pub unsafe fn DhcpGetAllOptionValues(serveripaddress: P0, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, scopeinfo, values) + DhcpGetAllOptionValues(serveripaddress.param().abi(), flags, scopeinfo, values) } #[inline] pub unsafe fn DhcpGetAllOptionValuesV6(serveripaddress: P0, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, scopeinfo, values) + DhcpGetAllOptionValuesV6(serveripaddress.param().abi(), flags, scopeinfo, values) } #[inline] pub unsafe fn DhcpGetAllOptions(serveripaddress: P0, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, optionstruct) + DhcpGetAllOptions(serveripaddress.param().abi(), flags, optionstruct) } #[inline] pub unsafe fn DhcpGetAllOptionsV6(serveripaddress: P0, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, optionstruct) + DhcpGetAllOptionsV6(serveripaddress.param().abi(), flags, optionstruct) } #[inline] pub unsafe fn DhcpGetClassInfo(serveripaddress: P0, reservedmustbezero: u32, partialclassinfo: *mut DHCP_CLASS_INFO, filledclassinfo: *mut *mut DHCP_CLASS_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), reservedmustbezero, partialclassinfo, filledclassinfo) + DhcpGetClassInfo(serveripaddress.param().abi(), reservedmustbezero, partialclassinfo, filledclassinfo) } #[inline] pub unsafe fn DhcpGetClientInfo(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), searchinfo, clientinfo) + DhcpGetClientInfo(serveripaddress.param().abi(), searchinfo, clientinfo) } #[inline] pub unsafe fn DhcpGetClientInfoV4(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_V4) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), searchinfo, clientinfo) + DhcpGetClientInfoV4(serveripaddress.param().abi(), searchinfo, clientinfo) } #[inline] pub unsafe fn DhcpGetClientInfoV6(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO_V6, clientinfo: *mut *mut DHCP_CLIENT_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), searchinfo, clientinfo) + DhcpGetClientInfoV6(serveripaddress.param().abi(), searchinfo, clientinfo) } #[inline] pub unsafe fn DhcpGetClientInfoVQ(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), searchinfo, clientinfo) + DhcpGetClientInfoVQ(serveripaddress.param().abi(), searchinfo, clientinfo) } #[inline] pub unsafe fn DhcpGetClientOptions(serveripaddress: P0, clientipaddress: u32, clientsubnetmask: u32, clientoptions: *mut *mut DHCP_OPTION_LIST) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientipaddress, clientsubnetmask, clientoptions) + DhcpGetClientOptions(serveripaddress.param().abi(), clientipaddress, clientsubnetmask, clientoptions) } #[inline] pub unsafe fn DhcpGetFilterV4(serveripaddress: P0, globalfilterinfo: *mut DHCP_FILTER_GLOBAL_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetFilterV4(serveripaddress : windows_core::PCWSTR, globalfilterinfo : *mut DHCP_FILTER_GLOBAL_INFO) -> u32); - DhcpGetFilterV4(serveripaddress.into_param().abi(), globalfilterinfo) + DhcpGetFilterV4(serveripaddress.param().abi(), globalfilterinfo) } #[inline] pub unsafe fn DhcpGetMibInfo(serveripaddress: P0, mibinfo: *mut *mut DHCP_MIB_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetMibInfo(serveripaddress : windows_core::PCWSTR, mibinfo : *mut *mut DHCP_MIB_INFO) -> u32); - DhcpGetMibInfo(serveripaddress.into_param().abi(), mibinfo) + DhcpGetMibInfo(serveripaddress.param().abi(), mibinfo) } #[inline] pub unsafe fn DhcpGetMibInfoV5(serveripaddress: P0, mibinfo: *mut *mut DHCP_MIB_INFO_V5) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetMibInfoV5(serveripaddress : windows_core::PCWSTR, mibinfo : *mut *mut DHCP_MIB_INFO_V5) -> u32); - DhcpGetMibInfoV5(serveripaddress.into_param().abi(), mibinfo) + DhcpGetMibInfoV5(serveripaddress.param().abi(), mibinfo) } #[inline] pub unsafe fn DhcpGetMibInfoV6(serveripaddress: P0, mibinfo: *mut *mut DHCP_MIB_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetMibInfoV6(serveripaddress : windows_core::PCWSTR, mibinfo : *mut *mut DHCP_MIB_INFO_V6) -> u32); - DhcpGetMibInfoV6(serveripaddress.into_param().abi(), mibinfo) + DhcpGetMibInfoV6(serveripaddress.param().abi(), mibinfo) } #[inline] pub unsafe fn DhcpGetOptionInfo(serveripaddress: P0, optionid: u32, optioninfo: *mut *mut DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), optionid, optioninfo) + DhcpGetOptionInfo(serveripaddress.param().abi(), optionid, optioninfo) } #[inline] pub unsafe fn DhcpGetOptionInfoV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: *mut *mut DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), optioninfo) + DhcpGetOptionInfoV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), optioninfo) } #[inline] pub unsafe fn DhcpGetOptionInfoV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: *mut *mut DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), optioninfo) + DhcpGetOptionInfoV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), optioninfo) } #[inline] pub unsafe fn DhcpGetOptionValue(serveripaddress: P0, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), optionid, scopeinfo, optionvalue) + DhcpGetOptionValue(serveripaddress.param().abi(), optionid, scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpGetOptionValueV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalue) + DhcpGetOptionValueV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpGetOptionValueV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalue) + DhcpGetOptionValueV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpGetOriginalSubnetMask(sadaptername: P0, dwsubnetmask: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpcsvc.dll" "system" fn DhcpGetOriginalSubnetMask(sadaptername : windows_core::PCWSTR, dwsubnetmask : *mut u32) -> u32); - DhcpGetOriginalSubnetMask(sadaptername.into_param().abi(), dwsubnetmask) + DhcpGetOriginalSubnetMask(sadaptername.param().abi(), dwsubnetmask) } #[inline] pub unsafe fn DhcpGetServerBindingInfo(serveripaddress: P0, flags: u32, bindelementsinfo: *mut *mut DHCP_BIND_ELEMENT_ARRAY) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, bindelementsinfo) + DhcpGetServerBindingInfo(serveripaddress.param().abi(), flags, bindelementsinfo) } #[inline] pub unsafe fn DhcpGetServerBindingInfoV6(serveripaddress: P0, flags: u32, bindelementsinfo: *mut *mut DHCPV6_BIND_ELEMENT_ARRAY) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, bindelementsinfo) + DhcpGetServerBindingInfoV6(serveripaddress.param().abi(), flags, bindelementsinfo) } #[inline] pub unsafe fn DhcpGetServerSpecificStrings(serveripaddress: P0, serverspecificstrings: *mut *mut DHCP_SERVER_SPECIFIC_STRINGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetServerSpecificStrings(serveripaddress : windows_core::PCWSTR, serverspecificstrings : *mut *mut DHCP_SERVER_SPECIFIC_STRINGS) -> u32); - DhcpGetServerSpecificStrings(serveripaddress.into_param().abi(), serverspecificstrings) + DhcpGetServerSpecificStrings(serveripaddress.param().abi(), serverspecificstrings) } #[inline] pub unsafe fn DhcpGetSubnetDelayOffer(serveripaddress: P0, subnetaddress: u32, timedelayinmilliseconds: *mut u16) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetSubnetDelayOffer(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, timedelayinmilliseconds : *mut u16) -> u32); - DhcpGetSubnetDelayOffer(serveripaddress.into_param().abi(), subnetaddress, timedelayinmilliseconds) + DhcpGetSubnetDelayOffer(serveripaddress.param().abi(), subnetaddress, timedelayinmilliseconds) } #[inline] pub unsafe fn DhcpGetSubnetInfo(serveripaddress: P0, subnetaddress: u32, subnetinfo: *mut *mut DHCP_SUBNET_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, subnetinfo) + DhcpGetSubnetInfo(serveripaddress.param().abi(), subnetaddress, subnetinfo) } #[inline] pub unsafe fn DhcpGetSubnetInfoV6(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut *mut DHCP_SUBNET_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetSubnetInfoV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, subnetinfo : *mut *mut DHCP_SUBNET_INFO_V6) -> u32); - DhcpGetSubnetInfoV6(serveripaddress.into_param().abi(), core::mem::transmute(subnetaddress), subnetinfo) + DhcpGetSubnetInfoV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), subnetinfo) } #[inline] pub unsafe fn DhcpGetSubnetInfoVQ(serveripaddress: P0, subnetaddress: u32, subnetinfo: *mut *mut DHCP_SUBNET_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, subnetinfo) + DhcpGetSubnetInfoVQ(serveripaddress.param().abi(), subnetaddress, subnetinfo) } #[inline] pub unsafe fn DhcpGetSuperScopeInfoV4(serveripaddress: P0, superscopetable: *mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetSuperScopeInfoV4(serveripaddress : windows_core::PCWSTR, superscopetable : *mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32); - DhcpGetSuperScopeInfoV4(serveripaddress.into_param().abi(), superscopetable) + DhcpGetSuperScopeInfoV4(serveripaddress.param().abi(), superscopetable) } #[inline] pub unsafe fn DhcpGetThreadOptions(pflags: *mut u32, reserved: *mut core::ffi::c_void) -> u32 { @@ -687,18 +687,18 @@ pub unsafe fn DhcpGetThreadOptions(pflags: *mut u32, reserved: *mut core::ffi::c #[inline] pub unsafe fn DhcpGetVersion(serveripaddress: P0, majorversion: *mut u32, minorversion: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpGetVersion(serveripaddress : windows_core::PCWSTR, majorversion : *mut u32, minorversion : *mut u32) -> u32); - DhcpGetVersion(serveripaddress.into_param().abi(), majorversion, minorversion) + DhcpGetVersion(serveripaddress.param().abi(), majorversion, minorversion) } #[inline] pub unsafe fn DhcpHlprAddV4PolicyCondition(policy: *mut DHCP_POLICY, parentexpr: u32, r#type: DHCP_POL_ATTR_TYPE, optionid: u32, suboptionid: u32, vendorname: P0, operator: DHCP_POL_COMPARATOR, value: &[u8], conditionindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(policy, parentexpr, r#type, optionid, suboptionid, vendorname.into_param().abi(), operator, core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap(), conditionindex) + DhcpHlprAddV4PolicyCondition(policy, parentexpr, r#type, optionid, suboptionid, vendorname.param().abi(), operator, core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap(), conditionindex) } #[inline] pub unsafe fn DhcpHlprAddV4PolicyExpr(policy: *mut DHCP_POLICY, parentexpr: u32, operator: DHCP_POL_LOGIC_OPER, exprindex: *mut u32) -> u32 { @@ -713,24 +713,24 @@ pub unsafe fn DhcpHlprAddV4PolicyRange(policy: *mut DHCP_POLICY, range: *const D #[inline] pub unsafe fn DhcpHlprCreateV4Policy(policyname: P0, fglobalpolicy: P1, subnet: u32, processingorder: u32, rootoperator: DHCP_POL_LOGIC_OPER, description: P2, enabled: P3, policy: *mut *mut DHCP_POLICY) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), fglobalpolicy.into_param().abi(), subnet, processingorder, rootoperator, description.into_param().abi(), enabled.into_param().abi(), policy) + DhcpHlprCreateV4Policy(policyname.param().abi(), fglobalpolicy.param().abi(), subnet, processingorder, rootoperator, description.param().abi(), enabled.param().abi(), policy) } #[inline] pub unsafe fn DhcpHlprCreateV4PolicyEx(policyname: P0, fglobalpolicy: P1, subnet: u32, processingorder: u32, rootoperator: DHCP_POL_LOGIC_OPER, description: P2, enabled: P3, policy: *mut *mut DHCP_POLICY_EX) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), fglobalpolicy.into_param().abi(), subnet, processingorder, rootoperator, description.into_param().abi(), enabled.into_param().abi(), policy) + DhcpHlprCreateV4PolicyEx(policyname.param().abi(), fglobalpolicy.param().abi(), subnet, processingorder, rootoperator, description.param().abi(), enabled.param().abi(), policy) } #[inline] pub unsafe fn DhcpHlprFindV4DhcpProperty(propertyarray: *const DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY { @@ -795,26 +795,26 @@ pub unsafe fn DhcpHlprResetV4PolicyExpr(policy: *mut DHCP_POLICY) -> u32 { #[inline] pub unsafe fn DhcpModifyClass(serveripaddress: P0, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), reservedmustbezero, classinfo) + DhcpModifyClass(serveripaddress.param().abi(), reservedmustbezero, classinfo) } #[inline] pub unsafe fn DhcpModifyClassV6(serveripaddress: P0, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), reservedmustbezero, classinfo) + DhcpModifyClassV6(serveripaddress.param().abi(), reservedmustbezero, classinfo) } #[inline] pub unsafe fn DhcpRegisterParamChange(flags: u32, reserved: Option<*const core::ffi::c_void>, adaptername: P0, classid: *mut DHCPCAPI_CLASSID, params: DHCPCAPI_PARAMS_ARRAY, handle: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: 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(flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), adaptername.into_param().abi(), classid, core::mem::transmute(params), handle) + DhcpRegisterParamChange(flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), adaptername.param().abi(), classid, core::mem::transmute(params), handle) } #[inline] pub unsafe fn DhcpRemoveDNSRegistrations() -> u32 { @@ -824,99 +824,99 @@ pub unsafe fn DhcpRemoveDNSRegistrations() -> u32 { #[inline] pub unsafe fn DhcpRemoveOption(serveripaddress: P0, optionid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpRemoveOption(serveripaddress : windows_core::PCWSTR, optionid : u32) -> u32); - DhcpRemoveOption(serveripaddress.into_param().abi(), optionid) + DhcpRemoveOption(serveripaddress.param().abi(), optionid) } #[inline] pub unsafe fn DhcpRemoveOptionV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_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: P1, vendorname: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), optionid, scopeinfo) + DhcpRemoveOptionValue(serveripaddress.param().abi(), optionid, scopeinfo) } #[inline] pub unsafe fn DhcpRemoveOptionValueV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo) + DhcpRemoveOptionValueV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), scopeinfo) } #[inline] pub unsafe fn DhcpRemoveOptionValueV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo) + DhcpRemoveOptionValueV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), scopeinfo) } #[inline] pub unsafe fn DhcpRemoveSubnetElement(serveripaddress: P0, subnetaddress: u32, removeelementinfo: *const DHCP_SUBNET_ELEMENT_DATA, forceflag: DHCP_FORCE_FLAG) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, removeelementinfo, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, removeelementinfo, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, removeelementinfo, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(subnetaddress), removeelementinfo, forceflag) + DhcpRemoveSubnetElementV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), removeelementinfo, forceflag) } #[inline] pub unsafe fn DhcpRequestParams(flags: u32, reserved: *mut core::ffi::c_void, adaptername: P0, classid: *mut DHCPCAPI_CLASSID, sendparams: DHCPCAPI_PARAMS_ARRAY, recdparams: DHCPCAPI_PARAMS_ARRAY, buffer: *mut u8, psize: *mut u32, requestidstr: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(flags, reserved, adaptername.into_param().abi(), classid, core::mem::transmute(sendparams), core::mem::transmute(recdparams), buffer, psize, requestidstr.into_param().abi()) + DhcpRequestParams(flags, reserved, adaptername.param().abi(), classid, core::mem::transmute(sendparams), core::mem::transmute(recdparams), buffer, psize, requestidstr.param().abi()) } #[inline] pub unsafe fn DhcpRpcFreeMemory(bufferpointer: *mut core::ffi::c_void) { @@ -926,10 +926,10 @@ pub unsafe fn DhcpRpcFreeMemory(bufferpointer: *mut core::ffi::c_void) { #[inline] pub unsafe fn DhcpScanDatabase(serveripaddress: P0, subnetaddress: u32, fixflag: u32, scanlist: *mut *mut DHCP_SCAN_LIST) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, fixflag, scanlist) + DhcpScanDatabase(serveripaddress.param().abi(), subnetaddress, fixflag, scanlist) } #[inline] pub unsafe fn DhcpServerAuditlogParamsFree(configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ) { @@ -939,310 +939,310 @@ pub unsafe fn DhcpServerAuditlogParamsFree(configinfo: *mut DHCP_SERVER_CONFIG_I #[inline] pub unsafe fn DhcpServerBackupDatabase(serveripaddress: P0, path: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerBackupDatabase(serveripaddress : windows_core::PCWSTR, path : windows_core::PCWSTR) -> u32); - DhcpServerBackupDatabase(serveripaddress.into_param().abi(), path.into_param().abi()) + DhcpServerBackupDatabase(serveripaddress.param().abi(), path.param().abi()) } #[inline] pub unsafe fn DhcpServerGetConfig(serveripaddress: P0, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerGetConfig(serveripaddress : windows_core::PCWSTR, configinfo : *mut *mut DHCP_SERVER_CONFIG_INFO) -> u32); - DhcpServerGetConfig(serveripaddress.into_param().abi(), configinfo) + DhcpServerGetConfig(serveripaddress.param().abi(), configinfo) } #[inline] pub unsafe fn DhcpServerGetConfigV4(serveripaddress: P0, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerGetConfigV4(serveripaddress : windows_core::PCWSTR, configinfo : *mut *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32); - DhcpServerGetConfigV4(serveripaddress.into_param().abi(), configinfo) + DhcpServerGetConfigV4(serveripaddress.param().abi(), configinfo) } #[inline] pub unsafe fn DhcpServerGetConfigV6(serveripaddress: P0, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerGetConfigV6(serveripaddress : windows_core::PCWSTR, scopeinfo : *mut DHCP_OPTION_SCOPE_INFO6, configinfo : *mut *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32); - DhcpServerGetConfigV6(serveripaddress.into_param().abi(), scopeinfo, configinfo) + DhcpServerGetConfigV6(serveripaddress.param().abi(), scopeinfo, configinfo) } #[inline] pub unsafe fn DhcpServerGetConfigVQ(serveripaddress: P0, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerGetConfigVQ(serveripaddress : windows_core::PCWSTR, configinfo : *mut *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32); - DhcpServerGetConfigVQ(serveripaddress.into_param().abi(), configinfo) + DhcpServerGetConfigVQ(serveripaddress.param().abi(), configinfo) } #[inline] pub unsafe fn DhcpServerQueryAttribute(serveripaddr: P0, dwreserved: u32, dhcpattribid: u32, pdhcpattrib: *mut *mut DHCP_ATTRIB) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwreserved, dhcpattribid, pdhcpattrib) + DhcpServerQueryAttribute(serveripaddr.param().abi(), dwreserved, dhcpattribid, pdhcpattrib) } #[inline] pub unsafe fn DhcpServerQueryAttributes(serveripaddr: P0, dwreserved: u32, dwattribcount: u32, pdhcpattribs: *mut u32, pdhcpattribarr: *mut *mut DHCP_ATTRIB_ARRAY) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwreserved, dwattribcount, pdhcpattribs, pdhcpattribarr) + DhcpServerQueryAttributes(serveripaddr.param().abi(), dwreserved, dwattribcount, pdhcpattribs, pdhcpattribarr) } #[inline] pub unsafe fn DhcpServerQueryDnsRegCredentials(serveripaddress: P0, uname: &mut [u16], domain: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerQueryDnsRegCredentials(serveripaddress : windows_core::PCWSTR, unamesize : u32, uname : windows_core::PWSTR, domainsize : u32, domain : windows_core::PWSTR) -> u32); - DhcpServerQueryDnsRegCredentials(serveripaddress.into_param().abi(), uname.len().try_into().unwrap(), core::mem::transmute(uname.as_ptr()), domain.len().try_into().unwrap(), core::mem::transmute(domain.as_ptr())) + DhcpServerQueryDnsRegCredentials(serveripaddress.param().abi(), uname.len().try_into().unwrap(), core::mem::transmute(uname.as_ptr()), domain.len().try_into().unwrap(), core::mem::transmute(domain.as_ptr())) } #[inline] pub unsafe fn DhcpServerRedoAuthorization(serveripaddr: P0, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerRedoAuthorization(serveripaddr : windows_core::PCWSTR, dwreserved : u32) -> u32); - DhcpServerRedoAuthorization(serveripaddr.into_param().abi(), dwreserved) + DhcpServerRedoAuthorization(serveripaddr.param().abi(), dwreserved) } #[inline] pub unsafe fn DhcpServerRestoreDatabase(serveripaddress: P0, path: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerRestoreDatabase(serveripaddress : windows_core::PCWSTR, path : windows_core::PCWSTR) -> u32); - DhcpServerRestoreDatabase(serveripaddress.into_param().abi(), path.into_param().abi()) + DhcpServerRestoreDatabase(serveripaddress.param().abi(), path.param().abi()) } #[inline] pub unsafe fn DhcpServerSetConfig(serveripaddress: P0, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), fieldstoset, configinfo) + DhcpServerSetConfig(serveripaddress.param().abi(), fieldstoset, configinfo) } #[inline] pub unsafe fn DhcpServerSetConfigV4(serveripaddress: P0, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), fieldstoset, configinfo) + DhcpServerSetConfigV4(serveripaddress.param().abi(), fieldstoset, configinfo) } #[inline] pub unsafe fn DhcpServerSetConfigV6(serveripaddress: P0, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), scopeinfo, fieldstoset, configinfo) + DhcpServerSetConfigV6(serveripaddress.param().abi(), scopeinfo, fieldstoset, configinfo) } #[inline] pub unsafe fn DhcpServerSetConfigVQ(serveripaddress: P0, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), fieldstoset, configinfo) + DhcpServerSetConfigVQ(serveripaddress.param().abi(), fieldstoset, configinfo) } #[inline] pub unsafe fn DhcpServerSetDnsRegCredentials(serveripaddress: P0, uname: P1, domain: P2, passwd: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerSetDnsRegCredentials(serveripaddress : windows_core::PCWSTR, uname : windows_core::PCWSTR, domain : windows_core::PCWSTR, passwd : windows_core::PCWSTR) -> u32); - DhcpServerSetDnsRegCredentials(serveripaddress.into_param().abi(), uname.into_param().abi(), domain.into_param().abi(), passwd.into_param().abi()) + DhcpServerSetDnsRegCredentials(serveripaddress.param().abi(), uname.param().abi(), domain.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn DhcpServerSetDnsRegCredentialsV5(serveripaddress: P0, uname: P1, domain: P2, passwd: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpServerSetDnsRegCredentialsV5(serveripaddress : windows_core::PCWSTR, uname : windows_core::PCWSTR, domain : windows_core::PCWSTR, passwd : windows_core::PCWSTR) -> u32); - DhcpServerSetDnsRegCredentialsV5(serveripaddress.into_param().abi(), uname.into_param().abi(), domain.into_param().abi(), passwd.into_param().abi()) + DhcpServerSetDnsRegCredentialsV5(serveripaddress.param().abi(), uname.param().abi(), domain.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn DhcpSetClientInfo(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetClientInfo(serveripaddress : windows_core::PCWSTR, clientinfo : *const DHCP_CLIENT_INFO) -> u32); - DhcpSetClientInfo(serveripaddress.into_param().abi(), clientinfo) + DhcpSetClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetClientInfoV4(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V4) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpSetClientInfoV4(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetClientInfoV6(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpSetClientInfoV6(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetClientInfoVQ(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpSetClientInfoVQ(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpSetFilterV4(serveripaddress: P0, globalfilterinfo: *const DHCP_FILTER_GLOBAL_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), globalfilterinfo) + DhcpSetFilterV4(serveripaddress.param().abi(), globalfilterinfo) } #[inline] pub unsafe fn DhcpSetOptionInfo(serveripaddress: P0, optionid: u32, optioninfo: *const DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), optionid, optioninfo) + DhcpSetOptionInfo(serveripaddress.param().abi(), optionid, optioninfo) } #[inline] pub unsafe fn DhcpSetOptionInfoV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: *mut DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), optioninfo) + DhcpSetOptionInfoV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), optioninfo) } #[inline] pub unsafe fn DhcpSetOptionInfoV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: *mut DHCP_OPTION) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), optioninfo) + DhcpSetOptionInfoV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), optioninfo) } #[inline] pub unsafe fn DhcpSetOptionValue(serveripaddress: P0, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalue: *const DHCP_OPTION_DATA) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), optionid, scopeinfo, optionvalue) + DhcpSetOptionValue(serveripaddress.param().abi(), optionid, scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpSetOptionValueV5(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalue) + DhcpSetOptionValueV5(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpSetOptionValueV6(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut DHCP_OPTION_DATA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalue) + DhcpSetOptionValueV6(serveripaddress.param().abi(), flags, optionid, classname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpSetOptionValues(serveripaddress: P0, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalues: *const DHCP_OPTION_VALUE_ARRAY) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), scopeinfo, optionvalues) + DhcpSetOptionValues(serveripaddress.param().abi(), scopeinfo, optionvalues) } #[inline] pub unsafe fn DhcpSetOptionValuesV5(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, classname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalues) + DhcpSetOptionValuesV5(serveripaddress.param().abi(), flags, classname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalues) } #[inline] pub unsafe fn DhcpSetServerBindingInfo(serveripaddress: P0, flags: u32, bindelementinfo: *mut DHCP_BIND_ELEMENT_ARRAY) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, bindelementinfo) + DhcpSetServerBindingInfo(serveripaddress.param().abi(), flags, bindelementinfo) } #[inline] pub unsafe fn DhcpSetServerBindingInfoV6(serveripaddress: P0, flags: u32, bindelementinfo: *mut DHCPV6_BIND_ELEMENT_ARRAY) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, bindelementinfo) + DhcpSetServerBindingInfoV6(serveripaddress.param().abi(), flags, bindelementinfo) } #[inline] pub unsafe fn DhcpSetSubnetDelayOffer(serveripaddress: P0, subnetaddress: u32, timedelayinmilliseconds: u16) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSubnetDelayOffer(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, timedelayinmilliseconds : u16) -> u32); - DhcpSetSubnetDelayOffer(serveripaddress.into_param().abi(), subnetaddress, timedelayinmilliseconds) + DhcpSetSubnetDelayOffer(serveripaddress.param().abi(), subnetaddress, timedelayinmilliseconds) } #[inline] pub unsafe fn DhcpSetSubnetInfo(serveripaddress: P0, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSubnetInfoV6(serveripaddress : windows_core::PCWSTR, subnetaddress : DHCP_IPV6_ADDRESS, subnetinfo : *mut DHCP_SUBNET_INFO_V6) -> u32); - DhcpSetSubnetInfoV6(serveripaddress.into_param().abi(), core::mem::transmute(subnetaddress), subnetinfo) + DhcpSetSubnetInfoV6(serveripaddress.param().abi(), core::mem::transmute(subnetaddress), subnetinfo) } #[inline] pub unsafe fn DhcpSetSubnetInfoVQ(serveripaddress: P0, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO_VQ) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, subnetinfo) + DhcpSetSubnetInfoVQ(serveripaddress.param().abi(), subnetaddress, subnetinfo) } #[inline] pub unsafe fn DhcpSetSuperScopeV4(serveripaddress: P0, subnetaddress: u32, superscopename: P1, changeexisting: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), subnetaddress, superscopename.into_param().abi(), changeexisting.into_param().abi()) + DhcpSetSuperScopeV4(serveripaddress.param().abi(), subnetaddress, superscopename.param().abi(), changeexisting.param().abi()) } #[inline] pub unsafe fn DhcpSetThreadOptions(flags: u32, reserved: *mut core::ffi::c_void) -> u32 { @@ -1252,393 +1252,393 @@ pub unsafe fn DhcpSetThreadOptions(flags: u32, reserved: *mut core::ffi::c_void) #[inline] pub unsafe fn DhcpUndoRequestParams(flags: u32, reserved: Option<*const core::ffi::c_void>, adaptername: P0, requestidstr: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpcsvc.dll" "system" fn DhcpUndoRequestParams(flags : u32, reserved : *const core::ffi::c_void, adaptername : windows_core::PCWSTR, requestidstr : windows_core::PCWSTR) -> u32); - DhcpUndoRequestParams(flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), adaptername.into_param().abi(), requestidstr.into_param().abi()) + DhcpUndoRequestParams(flags, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), adaptername.param().abi(), requestidstr.param().abi()) } #[inline] pub unsafe fn DhcpV4AddPolicyRange(serveripaddress: P0, subnetaddress: u32, policyname: P1, range: *const DHCP_IP_RANGE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), subnetaddress, policyname.into_param().abi(), range) + DhcpV4AddPolicyRange(serveripaddress.param().abi(), subnetaddress, policyname.param().abi(), range) } #[inline] pub unsafe fn DhcpV4CreateClientInfo(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_PB) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpV4CreateClientInfo(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpV4CreateClientInfoEx(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_EX) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), clientinfo) + DhcpV4CreateClientInfoEx(serveripaddress.param().abi(), clientinfo) } #[inline] pub unsafe fn DhcpV4CreatePolicy(serveripaddress: P0, ppolicy: *const DHCP_POLICY) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4CreatePolicy(serveripaddress : windows_core::PCWSTR, ppolicy : *const DHCP_POLICY) -> u32); - DhcpV4CreatePolicy(serveripaddress.into_param().abi(), ppolicy) + DhcpV4CreatePolicy(serveripaddress.param().abi(), ppolicy) } #[inline] pub unsafe fn DhcpV4CreatePolicyEx(serveripaddress: P0, policyex: *const DHCP_POLICY_EX) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4CreatePolicyEx(serveripaddress : windows_core::PCWSTR, policyex : *const DHCP_POLICY_EX) -> u32); - DhcpV4CreatePolicyEx(serveripaddress.into_param().abi(), policyex) + DhcpV4CreatePolicyEx(serveripaddress.param().abi(), policyex) } #[inline] pub unsafe fn DhcpV4DeletePolicy(serveripaddress: P0, fglobalpolicy: P1, subnetaddress: u32, policyname: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), fglobalpolicy.into_param().abi(), subnetaddress, policyname.into_param().abi()) + DhcpV4DeletePolicy(serveripaddress.param().abi(), fglobalpolicy.param().abi(), subnetaddress, policyname.param().abi()) } #[inline] pub unsafe fn DhcpV4EnumPolicies(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, fglobalpolicy: P1, subnetaddress: u32, enuminfo: *mut *mut DHCP_POLICY_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), resumehandle, preferredmaximum, fglobalpolicy.into_param().abi(), subnetaddress, enuminfo, elementsread, elementstotal) + DhcpV4EnumPolicies(serveripaddress.param().abi(), resumehandle, preferredmaximum, fglobalpolicy.param().abi(), subnetaddress, enuminfo, elementsread, elementstotal) } #[inline] pub unsafe fn DhcpV4EnumPoliciesEx(serveripaddress: P0, resumehandle: *mut u32, preferredmaximum: u32, globalpolicy: P1, subnetaddress: u32, enuminfo: *mut *mut DHCP_POLICY_EX_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), resumehandle, preferredmaximum, globalpolicy.into_param().abi(), subnetaddress, enuminfo, elementsread, elementstotal) + DhcpV4EnumPoliciesEx(serveripaddress.param().abi(), resumehandle, preferredmaximum, globalpolicy.param().abi(), subnetaddress, enuminfo, elementsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpV4EnumSubnetClients(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, clientstotal) + DhcpV4EnumSubnetClientsEx(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, clientinfo, clientsread, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), subnetaddress, resumehandle, preferredmaximum, enumelementinfo, elementsread, elementstotal) + DhcpV4EnumSubnetReservations(serveripaddress.param().abi(), subnetaddress, resumehandle, preferredmaximum, enumelementinfo, elementsread, elementstotal) } #[inline] pub unsafe fn DhcpV4FailoverAddScopeToRelationship(serveripaddress: P0, prelationship: *const DHCP_FAILOVER_RELATIONSHIP) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverAddScopeToRelationship(serveripaddress : windows_core::PCWSTR, prelationship : *const DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverAddScopeToRelationship(serveripaddress.into_param().abi(), prelationship) + DhcpV4FailoverAddScopeToRelationship(serveripaddress.param().abi(), prelationship) } #[inline] pub unsafe fn DhcpV4FailoverCreateRelationship(serveripaddress: P0, prelationship: *const DHCP_FAILOVER_RELATIONSHIP) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverCreateRelationship(serveripaddress : windows_core::PCWSTR, prelationship : *const DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverCreateRelationship(serveripaddress.into_param().abi(), prelationship) + DhcpV4FailoverCreateRelationship(serveripaddress.param().abi(), prelationship) } #[inline] pub unsafe fn DhcpV4FailoverDeleteRelationship(serveripaddress: P0, prelationshipname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverDeleteRelationship(serveripaddress : windows_core::PCWSTR, prelationshipname : windows_core::PCWSTR) -> u32); - DhcpV4FailoverDeleteRelationship(serveripaddress.into_param().abi(), prelationshipname.into_param().abi()) + DhcpV4FailoverDeleteRelationship(serveripaddress.param().abi(), prelationshipname.param().abi()) } #[inline] pub unsafe fn DhcpV4FailoverDeleteScopeFromRelationship(serveripaddress: P0, prelationship: *const DHCP_FAILOVER_RELATIONSHIP) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverDeleteScopeFromRelationship(serveripaddress : windows_core::PCWSTR, prelationship : *const DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverDeleteScopeFromRelationship(serveripaddress.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), resumehandle, preferredmaximum, prelationship, relationshipread, relationshiptotal) + DhcpV4FailoverEnumRelationship(serveripaddress.param().abi(), resumehandle, preferredmaximum, prelationship, relationshipread, relationshiptotal) } #[inline] pub unsafe fn DhcpV4FailoverGetAddressStatus(serveripaddress: P0, subnetaddress: u32, pstatus: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverGetAddressStatus(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, pstatus : *mut u32) -> u32); - DhcpV4FailoverGetAddressStatus(serveripaddress.into_param().abi(), subnetaddress, pstatus) + DhcpV4FailoverGetAddressStatus(serveripaddress.param().abi(), subnetaddress, pstatus) } #[inline] pub unsafe fn DhcpV4FailoverGetClientInfo(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCPV4_FAILOVER_CLIENT_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), searchinfo, clientinfo) + DhcpV4FailoverGetClientInfo(serveripaddress.param().abi(), searchinfo, clientinfo) } #[inline] pub unsafe fn DhcpV4FailoverGetRelationship(serveripaddress: P0, prelationshipname: P1, prelationship: *mut *mut DHCP_FAILOVER_RELATIONSHIP) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverGetRelationship(serveripaddress : windows_core::PCWSTR, prelationshipname : windows_core::PCWSTR, prelationship : *mut *mut DHCP_FAILOVER_RELATIONSHIP) -> u32); - DhcpV4FailoverGetRelationship(serveripaddress.into_param().abi(), prelationshipname.into_param().abi(), prelationship) + DhcpV4FailoverGetRelationship(serveripaddress.param().abi(), prelationshipname.param().abi(), prelationship) } #[inline] pub unsafe fn DhcpV4FailoverGetScopeRelationship(serveripaddress: P0, scopeid: u32, prelationship: *mut *mut DHCP_FAILOVER_RELATIONSHIP) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), scopeid, prelationship) + DhcpV4FailoverGetScopeRelationship(serveripaddress.param().abi(), scopeid, prelationship) } #[inline] pub unsafe fn DhcpV4FailoverGetScopeStatistics(serveripaddress: P0, scopeid: u32, pstats: *mut *mut DHCP_FAILOVER_STATISTICS) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), scopeid, pstats) + DhcpV4FailoverGetScopeStatistics(serveripaddress.param().abi(), scopeid, pstats) } #[inline] pub unsafe fn DhcpV4FailoverGetSystemTime(serveripaddress: P0, ptime: *mut u32, pmaxalloweddeltatime: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverGetSystemTime(serveripaddress : windows_core::PCWSTR, ptime : *mut u32, pmaxalloweddeltatime : *mut u32) -> u32); - DhcpV4FailoverGetSystemTime(serveripaddress.into_param().abi(), ptime, pmaxalloweddeltatime) + DhcpV4FailoverGetSystemTime(serveripaddress.param().abi(), ptime, pmaxalloweddeltatime) } #[inline] pub unsafe fn DhcpV4FailoverSetRelationship(serveripaddress: P0, flags: u32, prelationship: *const DHCP_FAILOVER_RELATIONSHIP) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, prelationship) + DhcpV4FailoverSetRelationship(serveripaddress.param().abi(), flags, prelationship) } #[inline] pub unsafe fn DhcpV4FailoverTriggerAddrAllocation(serveripaddress: P0, pfailrelname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4FailoverTriggerAddrAllocation(serveripaddress : windows_core::PCWSTR, pfailrelname : windows_core::PCWSTR) -> u32); - DhcpV4FailoverTriggerAddrAllocation(serveripaddress.into_param().abi(), pfailrelname.into_param().abi()) + DhcpV4FailoverTriggerAddrAllocation(serveripaddress.param().abi(), pfailrelname.param().abi()) } #[inline] pub unsafe fn DhcpV4GetAllOptionValues(serveripaddress: P0, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, values: *mut *mut DHCP_ALL_OPTION_VALUES_PB) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, scopeinfo, values) + DhcpV4GetAllOptionValues(serveripaddress.param().abi(), flags, scopeinfo, values) } #[inline] pub unsafe fn DhcpV4GetClientInfo(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_PB) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), searchinfo, clientinfo) + DhcpV4GetClientInfo(serveripaddress.param().abi(), searchinfo, clientinfo) } #[inline] pub unsafe fn DhcpV4GetClientInfoEx(serveripaddress: P0, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO_EX) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), searchinfo, clientinfo) + DhcpV4GetClientInfoEx(serveripaddress.param().abi(), searchinfo, clientinfo) } #[inline] pub unsafe fn DhcpV4GetFreeIPAddress(serveripaddress: P0, scopeid: u32, startip: u32, endip: u32, numfreeaddrreq: u32, ipaddrlist: *mut *mut DHCP_IP_ARRAY) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), scopeid, startip, endip, numfreeaddrreq, ipaddrlist) + DhcpV4GetFreeIPAddress(serveripaddress.param().abi(), scopeid, startip, endip, numfreeaddrreq, ipaddrlist) } #[inline] pub unsafe fn DhcpV4GetOptionValue(serveripaddress: P0, flags: u32, optionid: u32, policyname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, policyname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalue) + DhcpV4GetOptionValue(serveripaddress.param().abi(), flags, optionid, policyname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpV4GetPolicy(serveripaddress: P0, fglobalpolicy: P1, subnetaddress: u32, policyname: P2, policy: *mut *mut DHCP_POLICY) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), fglobalpolicy.into_param().abi(), subnetaddress, policyname.into_param().abi(), policy) + DhcpV4GetPolicy(serveripaddress.param().abi(), fglobalpolicy.param().abi(), subnetaddress, policyname.param().abi(), policy) } #[inline] pub unsafe fn DhcpV4GetPolicyEx(serveripaddress: P0, globalpolicy: P1, subnetaddress: u32, policyname: P2, policy: *mut *mut DHCP_POLICY_EX) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), globalpolicy.into_param().abi(), subnetaddress, policyname.into_param().abi(), policy) + DhcpV4GetPolicyEx(serveripaddress.param().abi(), globalpolicy.param().abi(), subnetaddress, policyname.param().abi(), policy) } #[inline] pub unsafe fn DhcpV4QueryPolicyEnforcement(serveripaddress: P0, fglobalpolicy: P1, subnetaddress: u32, enabled: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), fglobalpolicy.into_param().abi(), subnetaddress, enabled) + DhcpV4QueryPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.param().abi(), subnetaddress, enabled) } #[inline] pub unsafe fn DhcpV4RemoveOptionValue(serveripaddress: P0, flags: u32, optionid: u32, policyname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, policyname.into_param().abi(), vendorname.into_param().abi(), scopeinfo) + DhcpV4RemoveOptionValue(serveripaddress.param().abi(), flags, optionid, policyname.param().abi(), vendorname.param().abi(), scopeinfo) } #[inline] pub unsafe fn DhcpV4RemovePolicyRange(serveripaddress: P0, subnetaddress: u32, policyname: P1, range: *const DHCP_IP_RANGE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), subnetaddress, policyname.into_param().abi(), range) + DhcpV4RemovePolicyRange(serveripaddress.param().abi(), subnetaddress, policyname.param().abi(), range) } #[inline] pub unsafe fn DhcpV4SetOptionValue(serveripaddress: P0, flags: u32, optionid: u32, policyname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, optionid, policyname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalue) + DhcpV4SetOptionValue(serveripaddress.param().abi(), flags, optionid, policyname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalue) } #[inline] pub unsafe fn DhcpV4SetOptionValues(serveripaddress: P0, flags: u32, policyname: P1, vendorname: P2, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), flags, policyname.into_param().abi(), vendorname.into_param().abi(), scopeinfo, optionvalues) + DhcpV4SetOptionValues(serveripaddress.param().abi(), flags, policyname.param().abi(), vendorname.param().abi(), scopeinfo, optionvalues) } #[inline] pub unsafe fn DhcpV4SetPolicy(serveripaddress: P0, fieldsmodified: u32, fglobalpolicy: P1, subnetaddress: u32, policyname: P2, policy: *const DHCP_POLICY) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), fieldsmodified, fglobalpolicy.into_param().abi(), subnetaddress, policyname.into_param().abi(), policy) + DhcpV4SetPolicy(serveripaddress.param().abi(), fieldsmodified, fglobalpolicy.param().abi(), subnetaddress, policyname.param().abi(), policy) } #[inline] pub unsafe fn DhcpV4SetPolicyEnforcement(serveripaddress: P0, fglobalpolicy: P1, subnetaddress: u32, enable: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), fglobalpolicy.into_param().abi(), subnetaddress, enable.into_param().abi()) + DhcpV4SetPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.param().abi(), subnetaddress, enable.param().abi()) } #[inline] pub unsafe fn DhcpV4SetPolicyEx(serveripaddress: P0, fieldsmodified: u32, globalpolicy: P1, subnetaddress: u32, policyname: P2, policy: *const DHCP_POLICY_EX) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), fieldsmodified, globalpolicy.into_param().abi(), subnetaddress, policyname.into_param().abi(), policy) + DhcpV4SetPolicyEx(serveripaddress.param().abi(), fieldsmodified, globalpolicy.param().abi(), subnetaddress, policyname.param().abi(), policy) } #[inline] pub unsafe fn DhcpV6CreateClientInfo(serveripaddress: P0, clientinfo: *const DHCP_CLIENT_INFO_V6) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(scopeid), core::mem::transmute(startip), core::mem::transmute(endip), numfreeaddrreq, ipaddrlist) + DhcpV6GetFreeIPAddress(serveripaddress.param().abi(), core::mem::transmute(scopeid), core::mem::transmute(startip), core::mem::transmute(endip), numfreeaddrreq, ipaddrlist) } #[inline] pub unsafe fn DhcpV6GetStatelessStatistics(serveripaddress: P0, statelessstats: *mut *mut DHCPV6_STATELESS_STATS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6GetStatelessStatistics(serveripaddress : windows_core::PCWSTR, statelessstats : *mut *mut DHCPV6_STATELESS_STATS) -> u32); - DhcpV6GetStatelessStatistics(serveripaddress.into_param().abi(), statelessstats) + DhcpV6GetStatelessStatistics(serveripaddress.param().abi(), statelessstats) } #[inline] pub unsafe fn DhcpV6GetStatelessStoreParams(serveripaddress: P0, fserverlevel: P1, subnetaddress: DHCP_IPV6_ADDRESS, params: *mut *mut DHCPV6_STATELESS_PARAMS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6GetStatelessStoreParams(serveripaddress : windows_core::PCWSTR, fserverlevel : super::super::Foundation:: BOOL, subnetaddress : DHCP_IPV6_ADDRESS, params : *mut *mut DHCPV6_STATELESS_PARAMS) -> u32); - DhcpV6GetStatelessStoreParams(serveripaddress.into_param().abi(), fserverlevel.into_param().abi(), core::mem::transmute(subnetaddress), params) + DhcpV6GetStatelessStoreParams(serveripaddress.param().abi(), fserverlevel.param().abi(), core::mem::transmute(subnetaddress), params) } #[inline] pub unsafe fn DhcpV6SetStatelessStoreParams(serveripaddress: P0, fserverlevel: P1, subnetaddress: DHCP_IPV6_ADDRESS, fieldmodified: u32, params: *const DHCPV6_STATELESS_PARAMS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), fserverlevel.into_param().abi(), core::mem::transmute(subnetaddress), fieldmodified, params) + DhcpV6SetStatelessStoreParams(serveripaddress.param().abi(), fserverlevel.param().abi(), core::mem::transmute(subnetaddress), fieldmodified, params) } #[inline] pub unsafe fn Dhcpv6CApiCleanup() { @@ -1653,35 +1653,35 @@ pub unsafe fn Dhcpv6CApiInitialize(version: *mut u32) { #[inline] pub unsafe fn Dhcpv6ReleasePrefix(adaptername: P0, classid: *mut DHCPV6CAPI_CLASSID, leaseinfo: *mut DHCPV6PrefixLeaseInformation) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpcsvc6.dll" "system" fn Dhcpv6ReleasePrefix(adaptername : windows_core::PCWSTR, classid : *mut DHCPV6CAPI_CLASSID, leaseinfo : *mut DHCPV6PrefixLeaseInformation) -> u32); - Dhcpv6ReleasePrefix(adaptername.into_param().abi(), classid, leaseinfo) + Dhcpv6ReleasePrefix(adaptername.param().abi(), classid, leaseinfo) } #[inline] pub unsafe fn Dhcpv6RenewPrefix(adaptername: P0, pclassid: *mut DHCPV6CAPI_CLASSID, prefixleaseinfo: *mut DHCPV6PrefixLeaseInformation, pdwtimetowait: *mut u32, bvalidateprefix: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pclassid, prefixleaseinfo, pdwtimetowait, bvalidateprefix) + Dhcpv6RenewPrefix(adaptername.param().abi(), pclassid, prefixleaseinfo, pdwtimetowait, bvalidateprefix) } #[inline] pub unsafe fn Dhcpv6RequestParams(forcenewinform: P0, reserved: *mut core::ffi::c_void, adaptername: P1, classid: *mut DHCPV6CAPI_CLASSID, recdparams: DHCPV6CAPI_PARAMS_ARRAY, buffer: *mut u8, psize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dhcpcsvc6.dll" "system" fn Dhcpv6RequestParams(forcenewinform : super::super::Foundation:: BOOL, reserved : *mut core::ffi::c_void, adaptername : windows_core::PCWSTR, classid : *mut DHCPV6CAPI_CLASSID, recdparams : DHCPV6CAPI_PARAMS_ARRAY, buffer : *mut u8, psize : *mut u32) -> u32); - Dhcpv6RequestParams(forcenewinform.into_param().abi(), reserved, adaptername.into_param().abi(), classid, core::mem::transmute(recdparams), buffer, psize) + Dhcpv6RequestParams(forcenewinform.param().abi(), reserved, adaptername.param().abi(), classid, core::mem::transmute(recdparams), buffer, psize) } #[inline] pub unsafe fn Dhcpv6RequestPrefix(adaptername: P0, pclassid: *mut DHCPV6CAPI_CLASSID, prefixleaseinfo: *mut DHCPV6PrefixLeaseInformation, pdwtimetowait: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dhcpcsvc6.dll" "system" fn Dhcpv6RequestPrefix(adaptername : windows_core::PCWSTR, pclassid : *mut DHCPV6CAPI_CLASSID, prefixleaseinfo : *mut DHCPV6PrefixLeaseInformation, pdwtimetowait : *mut u32) -> u32); - Dhcpv6RequestPrefix(adaptername.into_param().abi(), pclassid, prefixleaseinfo, pdwtimetowait) + Dhcpv6RequestPrefix(adaptername.param().abi(), pclassid, prefixleaseinfo, pdwtimetowait) } pub const ADDRESS_TYPE_IANA: u32 = 0u32; pub const ADDRESS_TYPE_IATA: u32 = 1u32; 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 84d511eb55..aeeac7368b 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs @@ -26,10 +26,10 @@ pub unsafe fn DnsConnectionDeletePolicyEntries(policyentrytag: DNS_CONNECTION_PO #[inline] pub unsafe fn DnsConnectionDeleteProxyInfo(pwszconnectionname: P0, r#type: DNS_CONNECTION_PROXY_TYPE) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type) + DnsConnectionDeleteProxyInfo(pwszconnectionname.param().abi(), r#type) } #[inline] pub unsafe fn DnsConnectionFreeNameList(pnamelist: *mut DNS_CONNECTION_NAME_LIST) { @@ -59,35 +59,35 @@ pub unsafe fn DnsConnectionGetNameList(pnamelist: *mut DNS_CONNECTION_NAME_LIST) #[inline] pub unsafe fn DnsConnectionGetProxyInfo(pwszconnectionname: P0, r#type: DNS_CONNECTION_PROXY_TYPE, pproxyinfo: *mut DNS_CONNECTION_PROXY_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, pproxyinfo) + DnsConnectionGetProxyInfo(pwszconnectionname.param().abi(), r#type, pproxyinfo) } #[inline] pub unsafe fn DnsConnectionGetProxyInfoForHostUrl(pwszhosturl: P0, pselectioncontext: Option<&[u8]>, dwexplicitinterfaceindex: u32, pproxyinfoex: *mut DNS_CONNECTION_PROXY_INFO_EX) -> u32 where - P0: windows_core::IntoParam, + 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.into_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, 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, pproxyinfoex) } #[inline] pub unsafe fn DnsConnectionGetProxyInfoForHostUrlEx(pwszhosturl: P0, pselectioncontext: Option<&[u8]>, dwexplicitinterfaceindex: u32, pwszconnectionname: P1, pproxyinfoex: *mut DNS_CONNECTION_PROXY_INFO_EX) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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.into_param().abi(), 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(), pproxyinfoex) } #[inline] pub unsafe fn DnsConnectionGetProxyList(pwszconnectionname: P0, pproxylist: *mut DNS_CONNECTION_PROXY_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsConnectionGetProxyList(pwszconnectionname : windows_core::PCWSTR, pproxylist : *mut DNS_CONNECTION_PROXY_LIST) -> u32); - DnsConnectionGetProxyList(pwszconnectionname.into_param().abi(), pproxylist) + DnsConnectionGetProxyList(pwszconnectionname.param().abi(), pproxylist) } #[inline] pub unsafe fn DnsConnectionSetPolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG, ppolicyentrylist: *const DNS_CONNECTION_POLICY_ENTRY_LIST) -> u32 { @@ -97,10 +97,10 @@ pub unsafe fn DnsConnectionSetPolicyEntries(policyentrytag: DNS_CONNECTION_POLIC #[inline] pub unsafe fn DnsConnectionSetProxyInfo(pwszconnectionname: P0, r#type: DNS_CONNECTION_PROXY_TYPE, pproxyinfo: *const DNS_CONNECTION_PROXY_INFO) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, pproxyinfo) + DnsConnectionSetProxyInfo(pwszconnectionname.param().abi(), r#type, pproxyinfo) } #[inline] pub unsafe fn DnsConnectionUpdateIfIndexTable(pconnectionifindexentries: *const DNS_CONNECTION_IFINDEX_LIST) -> u32 { @@ -130,10 +130,10 @@ pub unsafe fn DnsFreeCustomServers(pcservers: *mut u32, ppservers: *mut *mut DNS #[inline] pub unsafe fn DnsFreeProxyName(proxyname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsFreeProxyName(proxyname : windows_core::PCWSTR)); - DnsFreeProxyName(proxyname.into_param().abi()) + DnsFreeProxyName(proxyname.param().abi()) } #[inline] pub unsafe fn DnsGetApplicationSettings(pcservers: *mut u32, ppdefaultservers: *mut *mut DNS_CUSTOM_SERVER, psettings: Option<*mut DNS_APPLICATION_SETTINGS>) -> u32 { @@ -143,60 +143,60 @@ pub unsafe fn DnsGetApplicationSettings(pcservers: *mut u32, ppdefaultservers: * #[inline] pub unsafe fn DnsGetProxyInformation(hostname: P0, proxyinformation: *mut DNS_PROXY_INFORMATION, defaultproxyinformation: Option<*mut DNS_PROXY_INFORMATION>, completionroutine: DNS_PROXY_COMPLETION_ROUTINE, completioncontext: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsGetProxyInformation(hostname : windows_core::PCWSTR, proxyinformation : *mut DNS_PROXY_INFORMATION, defaultproxyinformation : *mut DNS_PROXY_INFORMATION, completionroutine : DNS_PROXY_COMPLETION_ROUTINE, completioncontext : *const core::ffi::c_void) -> u32); - DnsGetProxyInformation(hostname.into_param().abi(), proxyinformation, core::mem::transmute(defaultproxyinformation.unwrap_or(std::ptr::null_mut())), completionroutine, core::mem::transmute(completioncontext.unwrap_or(std::ptr::null()))) + DnsGetProxyInformation(hostname.param().abi(), proxyinformation, core::mem::transmute(defaultproxyinformation.unwrap_or(std::ptr::null_mut())), completionroutine, core::mem::transmute(completioncontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DnsModifyRecordsInSet_A(paddrecords: Option<*const DNS_RECORDA>, pdeleterecords: Option<*const DNS_RECORDA>, options: u32, hcredentials: P0, pextralist: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), core::mem::transmute(pdeleterecords.unwrap_or(std::ptr::null())), options, hcredentials.into_param().abi(), core::mem::transmute(pextralist.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsModifyRecordsInSet_A(core::mem::transmute(paddrecords.unwrap_or(std::ptr::null())), core::mem::transmute(pdeleterecords.unwrap_or(std::ptr::null())), options, hcredentials.param().abi(), core::mem::transmute(pextralist.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DnsModifyRecordsInSet_UTF8(paddrecords: Option<*const DNS_RECORDA>, pdeleterecords: Option<*const DNS_RECORDA>, options: u32, hcredentials: P0, pextralist: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), core::mem::transmute(pdeleterecords.unwrap_or(std::ptr::null())), options, hcredentials.into_param().abi(), core::mem::transmute(pextralist.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsModifyRecordsInSet_UTF8(core::mem::transmute(paddrecords.unwrap_or(std::ptr::null())), core::mem::transmute(pdeleterecords.unwrap_or(std::ptr::null())), options, hcredentials.param().abi(), core::mem::transmute(pextralist.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DnsModifyRecordsInSet_W(paddrecords: Option<*const DNS_RECORDA>, pdeleterecords: Option<*const DNS_RECORDA>, options: u32, hcredentials: P0, pextralist: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), core::mem::transmute(pdeleterecords.unwrap_or(std::ptr::null())), options, hcredentials.into_param().abi(), core::mem::transmute(pextralist.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsModifyRecordsInSet_W(core::mem::transmute(paddrecords.unwrap_or(std::ptr::null())), core::mem::transmute(pdeleterecords.unwrap_or(std::ptr::null())), options, hcredentials.param().abi(), core::mem::transmute(pextralist.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DnsNameCompare_A(pname1: P0, pname2: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsNameCompare_A(pname1 : windows_core::PCSTR, pname2 : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DnsNameCompare_A(pname1.into_param().abi(), pname2.into_param().abi()) + DnsNameCompare_A(pname1.param().abi(), pname2.param().abi()) } #[inline] pub unsafe fn DnsNameCompare_W(pname1: P0, pname2: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsNameCompare_W(pname1 : windows_core::PCWSTR, pname2 : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DnsNameCompare_W(pname1.into_param().abi(), pname2.into_param().abi()) + DnsNameCompare_W(pname1.param().abi(), pname2.param().abi()) } #[inline] pub unsafe fn DnsQueryConfig(config: DNS_CONFIG_TYPE, flag: u32, pwsadaptername: P0, preserved: Option<*const core::ffi::c_void>, pbuffer: Option<*mut core::ffi::c_void>, pbuflen: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(config, flag, pwsadaptername.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), pbuflen) + DnsQueryConfig(config, flag, pwsadaptername.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), pbuflen) } #[inline] pub unsafe fn DnsQueryEx(pqueryrequest: *const DNS_QUERY_REQUEST, pqueryresults: *mut DNS_QUERY_RESULT, pcancelhandle: Option<*mut DNS_QUERY_CANCEL>) -> i32 { @@ -216,26 +216,26 @@ pub unsafe fn DnsQueryRawResultFree(queryresults: Option<*const DNS_QUERY_RAW_RE #[inline] pub unsafe fn DnsQuery_A(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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut())), ppqueryresults, core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsQuery_A(pszname.param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut())), ppqueryresults, core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut())), ppqueryresults, core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsQuery_UTF8(pszname.param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut())), ppqueryresults, core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut())), ppqueryresults, core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsQuery_W(pszname.param().abi(), wtype, options, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut())), ppqueryresults, core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DnsRecordCompare(precord1: *const DNS_RECORDA, precord2: *const DNS_RECORDA) -> super::super::Foundation::BOOL { @@ -265,34 +265,34 @@ pub unsafe fn DnsRecordSetDetach(precordlist: *mut DNS_RECORDA) -> *mut DNS_RECO #[inline] pub unsafe fn DnsReleaseContextHandle(hcontext: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dnsapi.dll" "system" fn DnsReleaseContextHandle(hcontext : super::super::Foundation:: HANDLE)); - DnsReleaseContextHandle(hcontext.into_param().abi()) + DnsReleaseContextHandle(hcontext.param().abi()) } #[inline] pub unsafe fn DnsReplaceRecordSetA(preplaceset: *const DNS_RECORDA, options: u32, hcontext: P0, pextrainfo: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(preplaceset, options, hcontext.into_param().abi(), core::mem::transmute(pextrainfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsReplaceRecordSetA(preplaceset, options, hcontext.param().abi(), core::mem::transmute(pextrainfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DnsReplaceRecordSetUTF8(preplaceset: *const DNS_RECORDA, options: u32, hcontext: P0, pextrainfo: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(preplaceset, options, hcontext.into_param().abi(), core::mem::transmute(pextrainfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsReplaceRecordSetUTF8(preplaceset, options, hcontext.param().abi(), core::mem::transmute(pextrainfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DnsReplaceRecordSetW(preplaceset: *const DNS_RECORDA, options: u32, hcontext: P0, pextrainfo: Option<*mut core::ffi::c_void>, preserved: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(preplaceset, options, hcontext.into_param().abi(), core::mem::transmute(pextrainfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) + DnsReplaceRecordSetW(preplaceset, options, hcontext.param().abi(), core::mem::transmute(pextrainfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DnsServiceBrowse(prequest: *const DNS_SERVICE_BROWSE_REQUEST, pcancel: *mut DNS_SERVICE_CANCEL) -> i32 { @@ -307,11 +307,11 @@ pub unsafe fn DnsServiceBrowseCancel(pcancelhandle: *const DNS_SERVICE_CANCEL) - #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), phostname.into_param().abi(), core::mem::transmute(pip4.unwrap_or(std::ptr::null())), core::mem::transmute(pip6.unwrap_or(std::ptr::null())), wport, wpriority, wweight, dwpropertiescount, keys, values) + DnsServiceConstructInstance(pservicename.param().abi(), phostname.param().abi(), core::mem::transmute(pip4.unwrap_or(std::ptr::null())), core::mem::transmute(pip6.unwrap_or(std::ptr::null())), wport, wpriority, wweight, dwpropertiescount, keys, values) } #[inline] pub unsafe fn DnsServiceCopyInstance(porig: *const DNS_SERVICE_INSTANCE) -> *mut DNS_SERVICE_INSTANCE { @@ -366,44 +366,44 @@ pub unsafe fn DnsStopMulticastQuery(phandle: *mut MDNS_QUERY_HANDLE) -> i32 { #[inline] pub unsafe fn DnsValidateName_A(pszname: P0, format: DNS_NAME_FORMAT) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), format) + DnsValidateName_A(pszname.param().abi(), format) } #[inline] pub unsafe fn DnsValidateName_UTF8(pszname: P0, format: DNS_NAME_FORMAT) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), format) + DnsValidateName_UTF8(pszname.param().abi(), format) } #[inline] pub unsafe fn DnsValidateName_W(pszname: P0, format: DNS_NAME_FORMAT) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), format) + DnsValidateName_W(pszname.param().abi(), format) } #[inline] pub unsafe fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P0, wtype: u16, xid: u16, frecursiondesired: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(pdnsbuffer, pdwbuffersize, pszname.into_param().abi(), wtype, xid, frecursiondesired.into_param().abi()) + DnsWriteQuestionToBuffer_UTF8(pdnsbuffer, pdwbuffersize, pszname.param().abi(), wtype, xid, frecursiondesired.param().abi()) } #[inline] pub unsafe fn DnsWriteQuestionToBuffer_W(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P0, wtype: u16, xid: u16, frecursiondesired: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(pdnsbuffer, pdwbuffersize, pszname.into_param().abi(), wtype, xid, frecursiondesired.into_param().abi()) + DnsWriteQuestionToBuffer_W(pdnsbuffer, pdwbuffersize, pszname.param().abi(), wtype, xid, frecursiondesired.param().abi()) } 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 f35794c44f..ef7609be33 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -12,18 +12,18 @@ pub unsafe fn CancelIPChangeNotify(notifyoverlapped: *const super::super::System #[inline] pub unsafe fn CancelIfTimestampConfigChange(notificationhandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn CancelIfTimestampConfigChange(notificationhandle : HIFTIMESTAMPCHANGE)); - CancelIfTimestampConfigChange(notificationhandle.into_param().abi()) + CancelIfTimestampConfigChange(notificationhandle.param().abi()) } #[inline] pub unsafe fn CancelMibChangeNotify2(notificationhandle: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn CancelMibChangeNotify2(notificationhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - CancelMibChangeNotify2(notificationhandle.into_param().abi()) + CancelMibChangeNotify2(notificationhandle.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] @@ -45,10 +45,10 @@ pub unsafe fn ConvertCompartmentIdToGuid(compartmentid: u32, compartmentguid: *m #[inline] pub unsafe fn ConvertInterfaceAliasToLuid(interfacealias: P0, interfaceluid: *mut super::Ndis::NET_LUID_LH) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceAliasToLuid(interfacealias : windows_core::PCWSTR, interfaceluid : *mut super::Ndis:: NET_LUID_LH) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceAliasToLuid(interfacealias.into_param().abi(), interfaceluid) + ConvertInterfaceAliasToLuid(interfacealias.param().abi(), interfaceluid) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] @@ -96,19 +96,19 @@ pub unsafe fn ConvertInterfaceLuidToNameW(interfaceluid: *const super::Ndis::NET #[inline] pub unsafe fn ConvertInterfaceNameToLuidA(interfacename: P0, interfaceluid: *mut super::Ndis::NET_LUID_LH) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceNameToLuidA(interfacename : windows_core::PCSTR, interfaceluid : *mut super::Ndis:: NET_LUID_LH) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceNameToLuidA(interfacename.into_param().abi(), interfaceluid) + ConvertInterfaceNameToLuidA(interfacename.param().abi(), interfaceluid) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn ConvertInterfaceNameToLuidW(interfacename: P0, interfaceluid: *mut super::Ndis::NET_LUID_LH) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn ConvertInterfaceNameToLuidW(interfacename : windows_core::PCWSTR, interfaceluid : *mut super::Ndis:: NET_LUID_LH) -> super::super::Foundation:: WIN32_ERROR); - ConvertInterfaceNameToLuidW(interfacename.into_param().abi(), interfaceluid) + ConvertInterfaceNameToLuidW(interfacename.param().abi(), interfaceluid) } #[inline] pub unsafe fn ConvertIpv4MaskToLength(mask: u32, masklength: *mut u8) -> super::super::Foundation::WIN32_ERROR { @@ -278,10 +278,10 @@ pub unsafe fn FreeMibTable(memory: *const core::ffi::c_void) { #[inline] pub unsafe fn GetAdapterIndex(adaptername: P0, ifindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetAdapterIndex(adaptername : windows_core::PCWSTR, ifindex : *mut u32) -> u32); - GetAdapterIndex(adaptername.into_param().abi(), ifindex) + GetAdapterIndex(adaptername.param().abi(), ifindex) } #[inline] pub unsafe fn GetAdapterOrderMap() -> *mut IP_ADAPTER_ORDER_MAP { @@ -357,18 +357,18 @@ 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: P0, ulaf: u32, tableclass: TCP_TABLE_CLASS, reserved: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), pdwsize, border.into_param().abi(), ulaf, tableclass, reserved) + GetExtendedTcpTable(core::mem::transmute(ptcptable.unwrap_or(std::ptr::null_mut())), pdwsize, border.param().abi(), ulaf, tableclass, reserved) } #[inline] pub unsafe fn GetExtendedUdpTable(pudptable: Option<*mut core::ffi::c_void>, pdwsize: *mut u32, border: P0, ulaf: u32, tableclass: UDP_TABLE_CLASS, reserved: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), pdwsize, border.into_param().abi(), ulaf, tableclass, reserved) + GetExtendedUdpTable(core::mem::transmute(pudptable.unwrap_or(std::ptr::null_mut())), pdwsize, border.param().abi(), ulaf, tableclass, reserved) } #[inline] pub unsafe fn GetFriendlyIfIndex(ifindex: u32) -> u32 { @@ -410,10 +410,10 @@ pub unsafe fn GetIfStackTable(table: *mut *mut MIB_IFSTACK_TABLE) -> super::supe #[inline] pub unsafe fn GetIfTable(piftable: Option<*mut MIB_IFTABLE>, pdwsize: *mut u32, border: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetIfTable(piftable : *mut MIB_IFTABLE, pdwsize : *mut u32, border : super::super::Foundation:: BOOL) -> u32); - GetIfTable(core::mem::transmute(piftable.unwrap_or(std::ptr::null_mut())), pdwsize, border.into_param().abi()) + GetIfTable(core::mem::transmute(piftable.unwrap_or(std::ptr::null_mut())), pdwsize, border.param().abi()) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] @@ -469,10 +469,10 @@ pub unsafe fn GetInvertedIfStackTable(table: *mut *mut MIB_INVERTEDIFSTACK_TABLE #[inline] pub unsafe fn GetIpAddrTable(pipaddrtable: Option<*mut MIB_IPADDRTABLE>, pdwsize: *mut u32, border: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetIpAddrTable(pipaddrtable : *mut MIB_IPADDRTABLE, pdwsize : *mut u32, border : super::super::Foundation:: BOOL) -> u32); - GetIpAddrTable(core::mem::transmute(pipaddrtable.unwrap_or(std::ptr::null_mut())), pdwsize, border.into_param().abi()) + GetIpAddrTable(core::mem::transmute(pipaddrtable.unwrap_or(std::ptr::null_mut())), pdwsize, border.param().abi()) } #[inline] pub unsafe fn GetIpErrorString(errorcode: u32, buffer: windows_core::PWSTR, size: *mut u32) -> u32 { @@ -489,10 +489,10 @@ pub unsafe fn GetIpForwardEntry2(row: *mut MIB_IPFORWARD_ROW2) -> super::super:: #[inline] pub unsafe fn GetIpForwardTable(pipforwardtable: Option<*mut MIB_IPFORWARDTABLE>, pdwsize: *mut u32, border: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetIpForwardTable(pipforwardtable : *mut MIB_IPFORWARDTABLE, pdwsize : *mut u32, border : super::super::Foundation:: BOOL) -> u32); - GetIpForwardTable(core::mem::transmute(pipforwardtable.unwrap_or(std::ptr::null_mut())), pdwsize, border.into_param().abi()) + GetIpForwardTable(core::mem::transmute(pipforwardtable.unwrap_or(std::ptr::null_mut())), pdwsize, border.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -521,10 +521,10 @@ pub unsafe fn GetIpNetEntry2(row: *mut MIB_IPNET_ROW2) -> super::super::Foundati #[inline] pub unsafe fn GetIpNetTable(ipnettable: Option<*mut MIB_IPNETTABLE>, sizepointer: *mut u32, order: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetIpNetTable(ipnettable : *mut MIB_IPNETTABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); - GetIpNetTable(core::mem::transmute(ipnettable.unwrap_or(std::ptr::null_mut())), sizepointer, order.into_param().abi()) + GetIpNetTable(core::mem::transmute(ipnettable.unwrap_or(std::ptr::null_mut())), sizepointer, order.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -563,10 +563,10 @@ pub unsafe fn GetIpStatisticsEx(statistics: *mut MIB_IPSTATS_LH, family: u32) -> #[inline] pub unsafe fn GetJobCompartmentId(jobhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetJobCompartmentId(jobhandle : super::super::Foundation:: HANDLE) -> u32); - GetJobCompartmentId(jobhandle.into_param().abi()) + GetJobCompartmentId(jobhandle.param().abi()) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -686,19 +686,19 @@ pub unsafe fn GetSessionCompartmentId(sessionid: u32) -> super::super::Foundatio #[inline] pub unsafe fn GetTcp6Table(tcptable: *mut MIB_TCP6TABLE, sizepointer: *mut u32, order: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetTcp6Table(tcptable : *mut MIB_TCP6TABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); - GetTcp6Table(tcptable, sizepointer, order.into_param().abi()) + GetTcp6Table(tcptable, sizepointer, order.param().abi()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetTcp6Table2(tcptable: *mut MIB_TCP6TABLE2, sizepointer: *mut u32, order: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetTcp6Table2(tcptable : *mut MIB_TCP6TABLE2, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); - GetTcp6Table2(tcptable, sizepointer, order.into_param().abi()) + GetTcp6Table2(tcptable, sizepointer, order.param().abi()) } #[inline] pub unsafe fn GetTcpStatistics(statistics: *mut MIB_TCPSTATS_LH) -> u32 { @@ -718,18 +718,18 @@ pub unsafe fn GetTcpStatisticsEx2(statistics: *mut MIB_TCPSTATS2, family: u32) - #[inline] pub unsafe fn GetTcpTable(tcptable: Option<*mut MIB_TCPTABLE>, sizepointer: *mut u32, order: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetTcpTable(tcptable : *mut MIB_TCPTABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); - GetTcpTable(core::mem::transmute(tcptable.unwrap_or(std::ptr::null_mut())), sizepointer, order.into_param().abi()) + GetTcpTable(core::mem::transmute(tcptable.unwrap_or(std::ptr::null_mut())), sizepointer, order.param().abi()) } #[inline] pub unsafe fn GetTcpTable2(tcptable: Option<*mut MIB_TCPTABLE2>, sizepointer: *mut u32, order: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetTcpTable2(tcptable : *mut MIB_TCPTABLE2, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); - GetTcpTable2(core::mem::transmute(tcptable.unwrap_or(std::ptr::null_mut())), sizepointer, order.into_param().abi()) + GetTcpTable2(core::mem::transmute(tcptable.unwrap_or(std::ptr::null_mut())), sizepointer, order.param().abi()) } #[inline] pub unsafe fn GetTeredoPort(port: *mut u16) -> super::super::Foundation::WIN32_ERROR { @@ -740,10 +740,10 @@ pub unsafe fn GetTeredoPort(port: *mut u16) -> super::super::Foundation::WIN32_E #[inline] pub unsafe fn GetUdp6Table(udp6table: Option<*mut MIB_UDP6TABLE>, sizepointer: *mut u32, order: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetUdp6Table(udp6table : *mut MIB_UDP6TABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); - GetUdp6Table(core::mem::transmute(udp6table.unwrap_or(std::ptr::null_mut())), sizepointer, order.into_param().abi()) + GetUdp6Table(core::mem::transmute(udp6table.unwrap_or(std::ptr::null_mut())), sizepointer, order.param().abi()) } #[inline] pub unsafe fn GetUdpStatistics(stats: *mut MIB_UDPSTATS) -> u32 { @@ -763,10 +763,10 @@ pub unsafe fn GetUdpStatisticsEx2(statistics: *mut MIB_UDPSTATS2, family: u32) - #[inline] pub unsafe fn GetUdpTable(udptable: Option<*mut MIB_UDPTABLE>, sizepointer: *mut u32, order: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn GetUdpTable(udptable : *mut MIB_UDPTABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); - GetUdpTable(core::mem::transmute(udptable.unwrap_or(std::ptr::null_mut())), sizepointer, order.into_param().abi()) + GetUdpTable(core::mem::transmute(udptable.unwrap_or(std::ptr::null_mut())), sizepointer, order.param().abi()) } #[inline] pub unsafe fn GetUniDirectionalAdapterInfo(pipifinfo: Option<*mut IP_UNIDIRECTIONAL_ADAPTER_ADDRESS>, dwoutbuflen: *mut u32) -> u32 { @@ -800,19 +800,19 @@ pub unsafe fn Icmp6ParseReplies(replybuffer: *mut core::ffi::c_void, replysize: #[inline] pub unsafe fn Icmp6SendEcho2(icmphandle: P0, event: P1, apcroutine: super::super::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(icmphandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), sourceaddress, destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) + Icmp6SendEcho2(icmphandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), sourceaddress, destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) } #[inline] pub unsafe fn IcmpCloseHandle(icmphandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn IcmpCloseHandle(icmphandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - IcmpCloseHandle(icmphandle.into_param().abi()).ok() + IcmpCloseHandle(icmphandle.param().abi()).ok() } #[inline] pub unsafe fn IcmpCreateFile() -> windows_core::Result { @@ -828,30 +828,30 @@ pub unsafe fn IcmpParseReplies(replybuffer: *mut core::ffi::c_void, replysize: u #[inline] pub unsafe fn IcmpSendEcho(icmphandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(icmphandle.into_param().abi(), destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) + IcmpSendEcho(icmphandle.param().abi(), destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn IcmpSendEcho2(icmphandle: P0, event: P1, apcroutine: super::super::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(icmphandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) + IcmpSendEcho2(icmphandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn IcmpSendEcho2Ex(icmphandle: P0, event: P1, apcroutine: super::super::System::IO::PIO_APC_ROUTINE, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(icmphandle.into_param().abi(), event.into_param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), sourceaddress, destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) + IcmpSendEcho2Ex(icmphandle.param().abi(), event.param().abi(), apcroutine, core::mem::transmute(apccontext.unwrap_or(std::ptr::null())), sourceaddress, destinationaddress, requestdata, requestsize, core::mem::transmute(requestoptions.unwrap_or(std::ptr::null())), replybuffer, replysize, timeout) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -894,11 +894,11 @@ pub unsafe fn LookupPersistentUdpPortReservation(startport: u16, numberofports: #[inline] pub unsafe fn NhpAllocateAndGetInterfaceInfoFromStack(pptable: *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount: *mut u32, border: P0, hheap: P1, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(pptable, pdwcount, border.into_param().abi(), hheap.into_param().abi(), dwflags) + NhpAllocateAndGetInterfaceInfoFromStack(pptable, pdwcount, border.param().abi(), hheap.param().abi(), dwflags) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -915,19 +915,19 @@ pub unsafe fn NotifyIfTimestampConfigChange(callercontext: Option<*const core::f #[inline] pub unsafe fn NotifyIpInterfaceChange(family: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PIPINTERFACE_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, initialnotification: P0, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyIpInterfaceChange(family, callback, core::mem::transmute(callercontext.unwrap_or(std::ptr::null())), initialnotification.into_param().abi(), notificationhandle) + NotifyIpInterfaceChange(family, callback, core::mem::transmute(callercontext.unwrap_or(std::ptr::null())), initialnotification.param().abi(), 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: P0, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn NotifyNetworkConnectivityHintChange(callback : PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyNetworkConnectivityHintChange(callback, core::mem::transmute(callercontext.unwrap_or(std::ptr::null())), initialnotification.into_param().abi(), notificationhandle) + NotifyNetworkConnectivityHintChange(callback, core::mem::transmute(callercontext.unwrap_or(std::ptr::null())), initialnotification.param().abi(), notificationhandle) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -939,10 +939,10 @@ pub unsafe fn NotifyRouteChange(handle: *mut super::super::Foundation::HANDLE, o #[inline] pub unsafe fn NotifyRouteChange2(addressfamily: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PIPFORWARD_CHANGE_CALLBACK, callercontext: *const core::ffi::c_void, initialnotification: P0, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyRouteChange2(addressfamily, callback, callercontext, initialnotification.into_param().abi(), notificationhandle) + NotifyRouteChange2(addressfamily, callback, callercontext, initialnotification.param().abi(), notificationhandle) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -953,28 +953,28 @@ pub unsafe fn NotifyStableUnicastIpAddressTable(family: super::super::Networking #[inline] pub unsafe fn NotifyTeredoPortChange(callback: PTEREDO_PORT_CHANGE_CALLBACK, callercontext: *const core::ffi::c_void, initialnotification: P0, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn NotifyTeredoPortChange(callback : PTEREDO_PORT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyTeredoPortChange(callback, callercontext, initialnotification.into_param().abi(), notificationhandle) + NotifyTeredoPortChange(callback, callercontext, initialnotification.param().abi(), 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: P0, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyUnicastIpAddressChange(family, callback, core::mem::transmute(callercontext.unwrap_or(std::ptr::null())), initialnotification.into_param().abi(), notificationhandle) + NotifyUnicastIpAddressChange(family, callback, core::mem::transmute(callercontext.unwrap_or(std::ptr::null())), initialnotification.param().abi(), notificationhandle) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn ParseNetworkString(networkstring: P0, types: u32, addressinfo: Option<*mut NET_ADDRESS_INFO>, portnumber: Option<*mut u16>, prefixlength: Option<*mut u8>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), types, core::mem::transmute(addressinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(portnumber.unwrap_or(std::ptr::null_mut())), core::mem::transmute(prefixlength.unwrap_or(std::ptr::null_mut()))) + ParseNetworkString(networkstring.param().abi(), types, core::mem::transmute(addressinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(portnumber.unwrap_or(std::ptr::null_mut())), core::mem::transmute(prefixlength.unwrap_or(std::ptr::null_mut()))) } #[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 { @@ -999,11 +999,11 @@ pub unsafe fn PfBindInterfaceToIndex(pinterface: *mut core::ffi::c_void, dwindex #[inline] pub unsafe fn PfCreateInterface(dwname: u32, inaction: PFFORWARD_ACTION, outaction: PFFORWARD_ACTION, buselog: P0, bmustbeunique: P1, ppinterface: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(dwname, inaction, outaction, buselog.into_param().abi(), bmustbeunique.into_param().abi(), ppinterface) + PfCreateInterface(dwname, inaction, outaction, buselog.param().abi(), bmustbeunique.param().abi(), ppinterface) } #[inline] pub unsafe fn PfDeleteInterface(pinterface: *mut core::ffi::c_void) -> u32 { @@ -1018,18 +1018,18 @@ pub unsafe fn PfDeleteLog() -> u32 { #[inline] pub unsafe fn PfGetInterfaceStatistics(pinterface: *mut core::ffi::c_void, ppfstats: *mut PF_INTERFACE_STATS, pdwbuffersize: *mut u32, fresetcounters: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn PfGetInterfaceStatistics(pinterface : *mut core::ffi::c_void, ppfstats : *mut PF_INTERFACE_STATS, pdwbuffersize : *mut u32, fresetcounters : super::super::Foundation:: BOOL) -> u32); - PfGetInterfaceStatistics(pinterface, ppfstats, pdwbuffersize, fresetcounters.into_param().abi()) + PfGetInterfaceStatistics(pinterface, ppfstats, pdwbuffersize, fresetcounters.param().abi()) } #[inline] pub unsafe fn PfMakeLog(hevent: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn PfMakeLog(hevent : super::super::Foundation:: HANDLE) -> u32); - PfMakeLog(hevent.into_param().abi()) + PfMakeLog(hevent.param().abi()) } #[inline] pub unsafe fn PfRebindFilters(pinterface: *mut core::ffi::c_void, platebindinfo: *mut PF_LATEBIND_INFO) -> u32 { @@ -1166,18 +1166,18 @@ pub unsafe fn SetIpTTL(nttl: u32) -> u32 { #[inline] pub unsafe fn SetJobCompartmentId(jobhandle: P0, compartmentid: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn SetJobCompartmentId(jobhandle : super::super::Foundation:: HANDLE, compartmentid : u32) -> super::super::Foundation:: WIN32_ERROR); - SetJobCompartmentId(jobhandle.into_param().abi(), compartmentid) + SetJobCompartmentId(jobhandle.param().abi(), compartmentid) } #[inline] pub unsafe fn SetNetworkInformation(networkguid: *const windows_core::GUID, compartmentid: u32, networkname: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn SetNetworkInformation(networkguid : *const windows_core::GUID, compartmentid : u32, networkname : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - SetNetworkInformation(networkguid, compartmentid, networkname.into_param().abi()) + SetNetworkInformation(networkguid, compartmentid, networkname.param().abi()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -1215,10 +1215,10 @@ pub unsafe fn UnenableRouter(poverlapped: *const super::super::System::IO::OVERL #[inline] pub unsafe fn UnregisterInterfaceTimestampConfigChange(notificationhandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn UnregisterInterfaceTimestampConfigChange(notificationhandle : HIFTIMESTAMPCHANGE)); - UnregisterInterfaceTimestampConfigChange(notificationhandle.into_param().abi()) + UnregisterInterfaceTimestampConfigChange(notificationhandle.param().abi()) } #[inline] pub unsafe fn if_indextoname(interfaceindex: u32, interfacename: &mut [u8; 256]) -> windows_core::PSTR { @@ -1228,10 +1228,10 @@ pub unsafe fn if_indextoname(interfaceindex: u32, interfacename: &mut [u8; 256]) #[inline] pub unsafe fn if_nametoindex(interfacename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iphlpapi.dll" "system" fn if_nametoindex(interfacename : windows_core::PCSTR) -> u32); - if_nametoindex(interfacename.into_param().abi()) + if_nametoindex(interfacename.param().abi()) } pub const ANY_SIZE: u32 = 1u32; pub const BEST_IF: u32 = 20u32; 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 230e0cf209..8115503f13 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs @@ -22,10 +22,10 @@ impl IMbnConnection { } pub unsafe fn Connect(&self, connectionmode: MBN_CONNECTION_MODE, strprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), connectionmode, strprofile.into_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__ = std::mem::zeroed(); @@ -64,10 +64,10 @@ impl IMbnConnectionContext { } pub unsafe fn SetProvisionedContext(&self, provisionedcontexts: MBN_CONTEXT, providerid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetProvisionedContext)(windows_core::Interface::as_raw(self), core::mem::transmute(provisionedcontexts), providerid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetProvisionedContext)(windows_core::Interface::as_raw(self), core::mem::transmute(provisionedcontexts), providerid.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -84,15 +84,15 @@ windows_core::imp::interface_hierarchy!(IMbnConnectionContextEvents, windows_cor impl IMbnConnectionContextEvents { pub unsafe fn OnProvisionedContextListChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProvisionedContextListChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnProvisionedContextListChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnSetProvisionedContextComplete(&self, newinterface: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetProvisionedContextComplete)(windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() + (windows_core::Interface::vtable(self).OnSetProvisionedContextComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -106,27 +106,27 @@ windows_core::imp::interface_hierarchy!(IMbnConnectionEvents, windows_core::IUnk impl IMbnConnectionEvents { pub unsafe fn OnConnectComplete(&self, newconnection: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectComplete)(windows_core::Interface::as_raw(self), newconnection.into_param().abi(), requestid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisconnectComplete)(windows_core::Interface::as_raw(self), newconnection.into_param().abi(), requestid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectStateChange)(windows_core::Interface::as_raw(self), newconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConnectStateChange)(windows_core::Interface::as_raw(self), newconnection.param().abi()).ok() } pub unsafe fn OnVoiceCallStateChange(&self, newconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnVoiceCallStateChange)(windows_core::Interface::as_raw(self), newconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnVoiceCallStateChange)(windows_core::Interface::as_raw(self), newconnection.param().abi()).ok() } } #[repr(C)] @@ -142,10 +142,10 @@ windows_core::imp::interface_hierarchy!(IMbnConnectionManager, windows_core::IUn impl IMbnConnectionManager { pub unsafe fn GetConnection(&self, connectionid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConnection)(windows_core::Interface::as_raw(self), connectionid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConnection)(windows_core::Interface::as_raw(self), connectionid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetConnections(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -167,15 +167,15 @@ windows_core::imp::interface_hierarchy!(IMbnConnectionManagerEvents, windows_cor impl IMbnConnectionManagerEvents { pub unsafe fn OnConnectionArrival(&self, newconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectionArrival)(windows_core::Interface::as_raw(self), newconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConnectionArrival)(windows_core::Interface::as_raw(self), newconnection.param().abi()).ok() } pub unsafe fn OnConnectionRemoval(&self, oldconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectionRemoval)(windows_core::Interface::as_raw(self), oldconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConnectionRemoval)(windows_core::Interface::as_raw(self), oldconnection.param().abi()).ok() } } #[repr(C)] @@ -193,9 +193,9 @@ impl IMbnConnectionProfile { } pub unsafe fn UpdateProfile(&self, strprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateProfile)(windows_core::Interface::as_raw(self), strprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateProfile)(windows_core::Interface::as_raw(self), strprofile.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -213,9 +213,9 @@ windows_core::imp::interface_hierarchy!(IMbnConnectionProfileEvents, windows_cor impl IMbnConnectionProfileEvents { pub unsafe fn OnProfileUpdate(&self, newprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProfileUpdate)(windows_core::Interface::as_raw(self), newprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnProfileUpdate)(windows_core::Interface::as_raw(self), newprofile.param().abi()).ok() } } #[repr(C)] @@ -229,24 +229,24 @@ impl IMbnConnectionProfileManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetConnectionProfiles(&self, mbninterface: P0) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConnectionProfiles)(windows_core::Interface::as_raw(self), mbninterface.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetConnectionProfiles)(windows_core::Interface::as_raw(self), mbninterface.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetConnectionProfile(&self, mbninterface: P0, profilename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConnectionProfile)(windows_core::Interface::as_raw(self), mbninterface.into_param().abi(), profilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConnectionProfile)(windows_core::Interface::as_raw(self), mbninterface.param().abi(), profilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateConnectionProfile(&self, xmlprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateConnectionProfile)(windows_core::Interface::as_raw(self), xmlprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateConnectionProfile)(windows_core::Interface::as_raw(self), xmlprofile.param().abi()).ok() } } #[repr(C)] @@ -264,15 +264,15 @@ windows_core::imp::interface_hierarchy!(IMbnConnectionProfileManagerEvents, wind impl IMbnConnectionProfileManagerEvents { pub unsafe fn OnConnectionProfileArrival(&self, newconnectionprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectionProfileArrival)(windows_core::Interface::as_raw(self), newconnectionprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConnectionProfileArrival)(windows_core::Interface::as_raw(self), newconnectionprofile.param().abi()).ok() } pub unsafe fn OnConnectionProfileRemoval(&self, oldconnectionprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectionProfileRemoval)(windows_core::Interface::as_raw(self), oldconnectionprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConnectionProfileRemoval)(windows_core::Interface::as_raw(self), oldconnectionprofile.param().abi()).ok() } } #[repr(C)] @@ -366,9 +366,9 @@ windows_core::imp::interface_hierarchy!(IMbnDeviceServiceStateEvents, windows_co impl IMbnDeviceServiceStateEvents { pub unsafe fn OnSessionsStateChange(&self, interfaceid: P0, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSessionsStateChange)(windows_core::Interface::as_raw(self), interfaceid.into_param().abi(), statechange).ok() + (windows_core::Interface::vtable(self).OnSessionsStateChange)(windows_core::Interface::as_raw(self), interfaceid.param().abi(), statechange).ok() } } #[repr(C)] @@ -386,10 +386,10 @@ impl IMbnDeviceServicesContext { } pub unsafe fn GetDeviceService(&self, deviceserviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeviceService)(windows_core::Interface::as_raw(self), deviceserviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDeviceService)(windows_core::Interface::as_raw(self), deviceserviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MaxCommandSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -417,73 +417,73 @@ impl IMbnDeviceServicesEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnQuerySupportedCommandsComplete(&self, deviceservice: P0, commandidlist: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnQuerySupportedCommandsComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), commandidlist, status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOpenCommandSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCloseCommandSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetCommandComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), responseid, deviceservicedata, status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnQueryCommandComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), responseid, deviceservicedata, status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEventNotification)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), eventid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnOpenDataSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCloseDataSessionComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnWriteDataComplete)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), status, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReadData)(windows_core::Interface::as_raw(self), deviceservice.into_param().abi(), 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: P0, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInterfaceStateChange)(windows_core::Interface::as_raw(self), interfaceid.into_param().abi(), statechange).ok() + (windows_core::Interface::vtable(self).OnInterfaceStateChange)(windows_core::Interface::as_raw(self), interfaceid.param().abi(), statechange).ok() } } #[repr(C)] @@ -521,10 +521,10 @@ windows_core::imp::interface_hierarchy!(IMbnDeviceServicesManager, windows_core: impl IMbnDeviceServicesManager { pub unsafe fn GetDeviceServicesContext(&self, networkinterfaceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDeviceServicesContext)(windows_core::Interface::as_raw(self), networkinterfaceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDeviceServicesContext)(windows_core::Interface::as_raw(self), networkinterfaceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -611,51 +611,51 @@ windows_core::imp::interface_hierarchy!(IMbnInterfaceEvents, windows_core::IUnkn impl IMbnInterfaceEvents { pub unsafe fn OnInterfaceCapabilityAvailable(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInterfaceCapabilityAvailable)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInterfaceCapabilityAvailable)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnSubscriberInformationChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSubscriberInformationChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSubscriberInformationChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnReadyStateChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReadyStateChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnReadyStateChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnEmergencyModeChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEmergencyModeChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEmergencyModeChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnHomeProviderAvailable(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnHomeProviderAvailable)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnHomeProviderAvailable)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnPreferredProvidersChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPreferredProvidersChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPreferredProvidersChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnSetPreferredProvidersComplete(&self, newinterface: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetPreferredProvidersComplete)(windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnScanNetworkComplete)(windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() + (windows_core::Interface::vtable(self).OnScanNetworkComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -675,10 +675,10 @@ windows_core::imp::interface_hierarchy!(IMbnInterfaceManager, windows_core::IUnk impl IMbnInterfaceManager { pub unsafe fn GetInterface(&self, interfaceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInterface)(windows_core::Interface::as_raw(self), interfaceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInterface)(windows_core::Interface::as_raw(self), interfaceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetInterfaces(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -700,15 +700,15 @@ windows_core::imp::interface_hierarchy!(IMbnInterfaceManagerEvents, windows_core impl IMbnInterfaceManagerEvents { pub unsafe fn OnInterfaceArrival(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInterfaceArrival)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInterfaceArrival)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnInterfaceRemoval(&self, oldinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInterfaceRemoval)(windows_core::Interface::as_raw(self), oldinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInterfaceRemoval)(windows_core::Interface::as_raw(self), oldinterface.param().abi()).ok() } } #[repr(C)] @@ -772,33 +772,33 @@ windows_core::imp::interface_hierarchy!(IMbnMultiCarrierEvents, windows_core::IU impl IMbnMultiCarrierEvents { pub unsafe fn OnSetHomeProviderComplete(&self, mbninterface: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetHomeProviderComplete)(windows_core::Interface::as_raw(self), mbninterface.into_param().abi(), requestid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCurrentCellularClassChange)(windows_core::Interface::as_raw(self), mbninterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCurrentCellularClassChange)(windows_core::Interface::as_raw(self), mbninterface.param().abi()).ok() } pub unsafe fn OnPreferredProvidersChange(&self, mbninterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPreferredProvidersChange)(windows_core::Interface::as_raw(self), mbninterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPreferredProvidersChange)(windows_core::Interface::as_raw(self), mbninterface.param().abi()).ok() } pub unsafe fn OnScanNetworkComplete(&self, mbninterface: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnScanNetworkComplete)(windows_core::Interface::as_raw(self), mbninterface.into_param().abi(), requestid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInterfaceCapabilityChange)(windows_core::Interface::as_raw(self), mbninterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInterfaceCapabilityChange)(windows_core::Interface::as_raw(self), mbninterface.param().abi()).ok() } } #[repr(C)] @@ -835,40 +835,40 @@ impl IMbnPin { } pub unsafe fn Enable(&self, pin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), pin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), pin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Disable(&self, pin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Disable)(windows_core::Interface::as_raw(self), pin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Disable)(windows_core::Interface::as_raw(self), pin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Enter(&self, pin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Enter)(windows_core::Interface::as_raw(self), pin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Enter)(windows_core::Interface::as_raw(self), pin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Change(&self, pin: P0, newpin: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Change)(windows_core::Interface::as_raw(self), pin.into_param().abi(), newpin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Change)(windows_core::Interface::as_raw(self), pin.param().abi(), newpin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unblock(&self, puk: P0, newpin: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Unblock)(windows_core::Interface::as_raw(self), puk.into_param().abi(), newpin.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Unblock)(windows_core::Interface::as_raw(self), puk.param().abi(), newpin.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPinManager(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -895,33 +895,33 @@ windows_core::imp::interface_hierarchy!(IMbnPinEvents, windows_core::IUnknown); impl IMbnPinEvents { pub unsafe fn OnEnableComplete(&self, pin: P0, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEnableComplete)(windows_core::Interface::as_raw(self), pin.into_param().abi(), pininfo, requestid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisableComplete)(windows_core::Interface::as_raw(self), pin.into_param().abi(), pininfo, requestid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEnterComplete)(windows_core::Interface::as_raw(self), pin.into_param().abi(), pininfo, requestid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChangeComplete)(windows_core::Interface::as_raw(self), pin.into_param().abi(), pininfo, requestid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUnblockComplete)(windows_core::Interface::as_raw(self), pin.into_param().abi(), pininfo, requestid, status).ok() + (windows_core::Interface::vtable(self).OnUnblockComplete)(windows_core::Interface::as_raw(self), pin.param().abi(), pininfo, requestid, status).ok() } } #[repr(C)] @@ -965,15 +965,15 @@ windows_core::imp::interface_hierarchy!(IMbnPinManagerEvents, windows_core::IUnk impl IMbnPinManagerEvents { pub unsafe fn OnPinListAvailable(&self, pinmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPinListAvailable)(windows_core::Interface::as_raw(self), pinmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPinListAvailable)(windows_core::Interface::as_raw(self), pinmanager.param().abi()).ok() } pub unsafe fn OnGetPinStateComplete(&self, pinmanager: P0, pininfo: MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnGetPinStateComplete)(windows_core::Interface::as_raw(self), pinmanager.into_param().abi(), core::mem::transmute(pininfo), requestid, 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)] @@ -1010,15 +1010,15 @@ windows_core::imp::interface_hierarchy!(IMbnRadioEvents, windows_core::IUnknown) impl IMbnRadioEvents { pub unsafe fn OnRadioStateChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRadioStateChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRadioStateChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnSetSoftwareRadioStateComplete(&self, newinterface: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetSoftwareRadioStateComplete)(windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() + (windows_core::Interface::vtable(self).OnSetSoftwareRadioStateComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -1068,10 +1068,10 @@ impl IMbnRegistration { } pub unsafe fn SetRegisterMode(&self, registermode: MBN_REGISTER_MODE, providerid: P0, dataclass: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetRegisterMode)(windows_core::Interface::as_raw(self), registermode, providerid.into_param().abi(), 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)] @@ -1093,27 +1093,27 @@ windows_core::imp::interface_hierarchy!(IMbnRegistrationEvents, windows_core::IU impl IMbnRegistrationEvents { pub unsafe fn OnRegisterModeAvailable(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRegisterModeAvailable)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRegisterModeAvailable)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnRegisterStateChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRegisterStateChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRegisterStateChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnPacketServiceStateChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPacketServiceStateChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPacketServiceStateChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } pub unsafe fn OnSetRegisterModeComplete(&self, newinterface: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetRegisterModeComplete)(windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() + (windows_core::Interface::vtable(self).OnSetRegisterModeComplete)(windows_core::Interface::as_raw(self), newinterface.param().abi(), requestid, status).ok() } } #[repr(C)] @@ -1147,9 +1147,9 @@ impl IMbnServiceActivationEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnActivationComplete(&self, serviceactivation: P0, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32, status: windows_core::HRESULT, networkerror: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnActivationComplete)(windows_core::Interface::as_raw(self), serviceactivation.into_param().abi(), vendorspecificdata, requestid, status, networkerror).ok() + (windows_core::Interface::vtable(self).OnActivationComplete)(windows_core::Interface::as_raw(self), serviceactivation.param().abi(), vendorspecificdata, requestid, status, networkerror).ok() } } #[repr(C)] @@ -1183,9 +1183,9 @@ windows_core::imp::interface_hierarchy!(IMbnSignalEvents, windows_core::IUnknown impl IMbnSignalEvents { pub unsafe fn OnSignalStateChange(&self, newinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSignalStateChange)(windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSignalStateChange)(windows_core::Interface::as_raw(self), newinterface.param().abi()).ok() } } #[repr(C)] @@ -1202,25 +1202,25 @@ impl IMbnSms { } pub unsafe fn SetSmsConfiguration(&self, smsconfiguration: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetSmsConfiguration)(windows_core::Interface::as_raw(self), smsconfiguration.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetSmsConfiguration)(windows_core::Interface::as_raw(self), smsconfiguration.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SmsSendPdu(&self, pdudata: P0, size: u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SmsSendPdu)(windows_core::Interface::as_raw(self), pdudata.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SmsSendCdma)(windows_core::Interface::as_raw(self), address.into_param().abi(), encoding, language, sizeincharacters, 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 { @@ -1267,9 +1267,9 @@ impl IMbnSmsConfiguration { } pub unsafe fn SetServiceCenterAddress(&self, scaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceCenterAddress)(windows_core::Interface::as_raw(self), scaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceCenterAddress)(windows_core::Interface::as_raw(self), scaddress.param().abi()).ok() } pub unsafe fn MaxMessageIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1302,48 +1302,48 @@ windows_core::imp::interface_hierarchy!(IMbnSmsEvents, windows_core::IUnknown); impl IMbnSmsEvents { pub unsafe fn OnSmsConfigurationChange(&self, sms: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsConfigurationChange)(windows_core::Interface::as_raw(self), sms.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSmsConfigurationChange)(windows_core::Interface::as_raw(self), sms.param().abi()).ok() } pub unsafe fn OnSetSmsConfigurationComplete(&self, sms: P0, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetSmsConfigurationComplete)(windows_core::Interface::as_raw(self), sms.into_param().abi(), requestid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsSendComplete)(windows_core::Interface::as_raw(self), sms.into_param().abi(), requestid, 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: P1, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsReadComplete)(windows_core::Interface::as_raw(self), sms.into_param().abi(), smsformat, readmsgs, moremsgs.into_param().abi(), requestid, status).ok() + (windows_core::Interface::vtable(self).OnSmsReadComplete)(windows_core::Interface::as_raw(self), sms.param().abi(), smsformat, readmsgs, moremsgs.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsNewClass0Message)(windows_core::Interface::as_raw(self), sms.into_param().abi(), smsformat, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsDeleteComplete)(windows_core::Interface::as_raw(self), sms.into_param().abi(), requestid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSmsStatusChange)(windows_core::Interface::as_raw(self), sms.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSmsStatusChange)(windows_core::Interface::as_raw(self), sms.param().abi()).ok() } } #[repr(C)] @@ -1480,16 +1480,16 @@ impl IMbnVendorSpecificEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnEventNotification(&self, vendoroperation: P0, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEventNotification)(windows_core::Interface::as_raw(self), vendoroperation.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetVendorSpecificComplete)(windows_core::Interface::as_raw(self), vendoroperation.into_param().abi(), vendorspecificdata, requestid).ok() + (windows_core::Interface::vtable(self).OnSetVendorSpecificComplete)(windows_core::Interface::as_raw(self), vendoroperation.param().abi(), vendorspecificdata, requestid).ok() } } #[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 120d11ccb4..6b7b1ea660 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs @@ -11,10 +11,10 @@ pub unsafe fn McastApiStartup(version: *mut u32) -> u32 { #[inline] pub unsafe fn McastEnumerateScopes(addrfamily: u16, requery: P0, pscopelist: *mut MCAST_SCOPE_ENTRY, pscopelen: *mut u32, pscopecount: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(addrfamily, requery.into_param().abi(), pscopelist, pscopelen, pscopecount) + McastEnumerateScopes(addrfamily, requery.param().abi(), pscopelist, pscopelen, pscopecount) } #[inline] pub unsafe fn McastGenUID(prequestid: *mut MCAST_CLIENT_UID) -> u32 { 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 27e64d331e..7d2be60293 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn GetNetScheduleAccountInformation(pwszservername: P0, wszaccount: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mstask.dll" "system" fn GetNetScheduleAccountInformation(pwszservername : windows_core::PCWSTR, ccaccount : u32, wszaccount : windows_core::PWSTR) -> windows_core::HRESULT); - GetNetScheduleAccountInformation(pwszservername.into_param().abi(), wszaccount.len().try_into().unwrap(), core::mem::transmute(wszaccount.as_ptr())).ok() + GetNetScheduleAccountInformation(pwszservername.param().abi(), wszaccount.len().try_into().unwrap(), core::mem::transmute(wszaccount.as_ptr())).ok() } #[inline] pub unsafe fn I_NetLogonControl2(servername: P0, functioncode: u32, querylevel: u32, data: *const u8, buffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), functioncode, querylevel, data, buffer) + I_NetLogonControl2(servername.param().abi(), functioncode, querylevel, data, buffer) } #[inline] pub unsafe fn LogErrorA(dwmessageid: u32, plpwssubstrings: &[windows_core::PCSTR], dwerrorcode: u32) { @@ -47,94 +47,94 @@ pub unsafe fn MprSetupProtocolFree(lpbuffer: *mut core::ffi::c_void) -> u32 { #[inline] pub unsafe fn NetAccessAdd(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetAccessAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetAccessDel(servername: P0, resource: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAccessDel(servername : windows_core::PCWSTR, resource : windows_core::PCWSTR) -> u32); - NetAccessDel(servername.into_param().abi(), resource.into_param().abi()) + NetAccessDel(servername.param().abi(), resource.param().abi()) } #[inline] pub unsafe fn NetAccessEnum(servername: P0, basepath: P1, recursive: u32, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), basepath.into_param().abi(), recursive, level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetAccessEnum(servername.param().abi(), basepath.param().abi(), recursive, level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetAccessGetInfo(servername: P0, resource: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), resource.into_param().abi(), level, bufptr) + NetAccessGetInfo(servername.param().abi(), resource.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetAccessGetUserPerms(servername: P0, ugname: P1, resource: P2, perms: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAccessGetUserPerms(servername : windows_core::PCWSTR, ugname : windows_core::PCWSTR, resource : windows_core::PCWSTR, perms : *mut u32) -> u32); - NetAccessGetUserPerms(servername.into_param().abi(), ugname.into_param().abi(), resource.into_param().abi(), perms) + NetAccessGetUserPerms(servername.param().abi(), ugname.param().abi(), resource.param().abi(), perms) } #[inline] pub unsafe fn NetAccessSetInfo(servername: P0, resource: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), resource.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetAccessSetInfo(servername.param().abi(), resource.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetAddAlternateComputerName(server: P0, alternatename: P1, domainaccount: P2, domainaccountpassword: P3, reserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), alternatename.into_param().abi(), domainaccount.into_param().abi(), domainaccountpassword.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), accountname.into_param().abi(), password.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), buffer, buffersize) + NetAlertRaise(alerttype.param().abi(), buffer, buffersize) } #[inline] pub unsafe fn NetAlertRaiseEx(alerttype: P0, variableinfo: *const core::ffi::c_void, variableinfosize: u32, servicename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), variableinfo, variableinfosize, servicename.into_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 { @@ -159,58 +159,58 @@ pub unsafe fn NetApiBufferSize(buffer: *const core::ffi::c_void, bytecount: *mut #[inline] pub unsafe fn NetAuditClear(server: P0, backupfile: P1, service: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetAuditClear(server : windows_core::PCWSTR, backupfile : windows_core::PCWSTR, service : windows_core::PCWSTR) -> u32); - NetAuditClear(server.into_param().abi(), backupfile.into_param().abi(), service.into_param().abi()) + NetAuditClear(server.param().abi(), backupfile.param().abi(), service.param().abi()) } #[inline] pub unsafe fn NetAuditRead(server: P0, service: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), service.into_param().abi(), auditloghandle, offset, reserved1, reserved2, offsetflag, bufptr, prefmaxlen, bytesread, totalavailable) + NetAuditRead(server.param().abi(), service.param().abi(), auditloghandle, offset, reserved1, reserved2, offsetflag, bufptr, prefmaxlen, bytesread, totalavailable) } #[inline] pub unsafe fn NetAuditWrite(r#type: u32, buf: *mut u8, numbytes: u32, service: P0, reserved: *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: 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(r#type, buf, numbytes, service.into_param().abi(), reserved) + NetAuditWrite(r#type, buf, numbytes, service.param().abi(), reserved) } #[inline] pub unsafe fn NetConfigGet(server: P0, component: P1, parameter: P2, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetConfigGet(server : windows_core::PCWSTR, component : windows_core::PCWSTR, parameter : windows_core::PCWSTR, bufptr : *mut *mut u8) -> u32); - NetConfigGet(server.into_param().abi(), component.into_param().abi(), parameter.into_param().abi(), bufptr) + NetConfigGet(server.param().abi(), component.param().abi(), parameter.param().abi(), bufptr) } #[inline] pub unsafe fn NetConfigGetAll(server: P0, component: P1, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetConfigGetAll(server : windows_core::PCWSTR, component : windows_core::PCWSTR, bufptr : *mut *mut u8) -> u32); - NetConfigGetAll(server.into_param().abi(), component.into_param().abi(), bufptr) + NetConfigGetAll(server.param().abi(), component.param().abi(), bufptr) } #[inline] pub unsafe fn NetConfigSet(server: P0, reserved1: P1, component: P2, level: u32, reserved2: u32, buf: *mut u8, reserved3: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), reserved1.into_param().abi(), component.into_param().abi(), level, reserved2, buf, reserved3) + NetConfigSet(server.param().abi(), reserved1.param().abi(), component.param().abi(), level, reserved2, 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 { @@ -220,44 +220,44 @@ pub unsafe fn NetCreateProvisioningPackage(pprovisioningparams: *const NETSETUP_ #[inline] pub unsafe fn NetEnumerateComputerNames(server: P0, nametype: NET_COMPUTER_NAME_TYPE, reserved: u32, entrycount: *mut u32, computernames: *mut *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), nametype, reserved, entrycount, computernames) + NetEnumerateComputerNames(server.param().abi(), nametype, reserved, entrycount, computernames) } #[inline] pub unsafe fn NetEnumerateServiceAccounts(servername: P0, flags: u32, accountscount: *mut u32, accounts: *mut *mut *mut u16) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, accountscount, accounts) + NetEnumerateServiceAccounts(servername.param().abi(), flags, accountscount, accounts) } #[inline] pub unsafe fn NetErrorLogClear(uncservername: P0, backupfile: P1, reserved: Option<*const u8>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetErrorLogClear(uncservername : windows_core::PCWSTR, backupfile : windows_core::PCWSTR, reserved : *const u8) -> u32); - NetErrorLogClear(uncservername.into_param().abi(), backupfile.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) + NetErrorLogClear(uncservername.param().abi(), backupfile.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NetErrorLogRead(uncservername: P0, reserved1: P1, errorloghandle: *const HLOG, offset: u32, reserved2: Option<*const u32>, reserved3: u32, offsetflag: u32, bufptr: *mut *mut u8, prefmaxsize: u32, bytesread: *mut u32, totalavailable: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), reserved1.into_param().abi(), errorloghandle, offset, core::mem::transmute(reserved2.unwrap_or(std::ptr::null())), reserved3, offsetflag, bufptr, prefmaxsize, bytesread, totalavailable) + NetErrorLogRead(uncservername.param().abi(), reserved1.param().abi(), errorloghandle, offset, core::mem::transmute(reserved2.unwrap_or(std::ptr::null())), reserved3, offsetflag, bufptr, prefmaxsize, bytesread, totalavailable) } #[inline] pub unsafe fn NetErrorLogWrite(reserved1: Option<*const u8>, code: u32, component: P0, buffer: *const u8, numbytes: u32, msgbuf: *const u8, strcount: u32, reserved2: Option<*const u8>) -> u32 where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), code, component.into_param().abi(), buffer, numbytes, msgbuf, strcount, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) + NetErrorLogWrite(core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), code, component.param().abi(), buffer, numbytes, msgbuf, strcount, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -269,695 +269,695 @@ pub unsafe fn NetFreeAadJoinInformation(pjoininfo: Option<*const DSREG_JOIN_INFO #[inline] pub unsafe fn NetGetAadJoinInformation(pcsztenantid: P0) -> windows_core::Result<*mut DSREG_JOIN_INFO> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGetAadJoinInformation(pcsztenantid : windows_core::PCWSTR, ppjoininfo : *mut *mut DSREG_JOIN_INFO) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - NetGetAadJoinInformation(pcsztenantid.into_param().abi(), &mut result__).map(|| result__) + NetGetAadJoinInformation(pcsztenantid.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn NetGetAnyDCName(servername: P0, domainname: P1, buffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGetAnyDCName(servername : windows_core::PCWSTR, domainname : windows_core::PCWSTR, buffer : *mut *mut u8) -> u32); - NetGetAnyDCName(servername.into_param().abi(), domainname.into_param().abi(), buffer) + NetGetAnyDCName(servername.param().abi(), domainname.param().abi(), buffer) } #[inline] pub unsafe fn NetGetDCName(servername: P0, domainname: P1, buffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGetDCName(servername : windows_core::PCWSTR, domainname : windows_core::PCWSTR, buffer : *mut *mut u8) -> u32); - NetGetDCName(servername.into_param().abi(), domainname.into_param().abi(), buffer) + NetGetDCName(servername.param().abi(), domainname.param().abi(), buffer) } #[inline] pub unsafe fn NetGetDisplayInformationIndex(servername: P0, level: u32, prefix: P1, index: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), level, prefix.into_param().abi(), index) + NetGetDisplayInformationIndex(servername.param().abi(), level, prefix.param().abi(), index) } #[inline] pub unsafe fn NetGetJoinInformation(lpserver: P0, lpnamebuffer: *mut windows_core::PWSTR, buffertype: *mut NETSETUP_JOIN_STATUS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGetJoinInformation(lpserver : windows_core::PCWSTR, lpnamebuffer : *mut windows_core::PWSTR, buffertype : *mut NETSETUP_JOIN_STATUS) -> u32); - NetGetJoinInformation(lpserver.into_param().abi(), lpnamebuffer, buffertype) + NetGetJoinInformation(lpserver.param().abi(), lpnamebuffer, buffertype) } #[inline] pub unsafe fn NetGetJoinableOUs(lpserver: P0, lpdomain: P1, lpaccount: P2, lppassword: P3, oucount: *mut u32, ous: *mut *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGetJoinableOUs(lpserver : windows_core::PCWSTR, lpdomain : windows_core::PCWSTR, lpaccount : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, oucount : *mut u32, ous : *mut *mut windows_core::PWSTR) -> u32); - NetGetJoinableOUs(lpserver.into_param().abi(), lpdomain.into_param().abi(), lpaccount.into_param().abi(), lppassword.into_param().abi(), oucount, ous) + NetGetJoinableOUs(lpserver.param().abi(), lpdomain.param().abi(), lpaccount.param().abi(), lppassword.param().abi(), oucount, ous) } #[inline] pub unsafe fn NetGroupAdd(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetGroupAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetGroupAddUser(servername: P0, groupname: P1, username: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupAddUser(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, username : windows_core::PCWSTR) -> u32); - NetGroupAddUser(servername.into_param().abi(), groupname.into_param().abi(), username.into_param().abi()) + NetGroupAddUser(servername.param().abi(), groupname.param().abi(), username.param().abi()) } #[inline] pub unsafe fn NetGroupDel(servername: P0, groupname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupDel(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR) -> u32); - NetGroupDel(servername.into_param().abi(), groupname.into_param().abi()) + NetGroupDel(servername.param().abi(), groupname.param().abi()) } #[inline] pub unsafe fn NetGroupDelUser(servername: P0, groupname: P1, username: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetGroupDelUser(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, username : windows_core::PCWSTR) -> u32); - NetGroupDelUser(servername.into_param().abi(), groupname.into_param().abi(), username.into_param().abi()) + NetGroupDelUser(servername.param().abi(), groupname.param().abi(), username.param().abi()) } #[inline] pub unsafe fn NetGroupEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut usize>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetGroupEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetGroupGetInfo(servername: P0, groupname: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, bufptr) + NetGroupGetInfo(servername.param().abi(), groupname.param().abi(), level, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) + NetGroupGetUsers(servername.param().abi(), groupname.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetGroupSetInfo(servername: P0, groupname: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetGroupSetInfo(servername.param().abi(), groupname.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetGroupSetUsers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, buf, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetIsServiceAccount(servername : windows_core::PCWSTR, accountname : windows_core::PCWSTR, isservice : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: NTSTATUS); - NetIsServiceAccount(servername.into_param().abi(), accountname.into_param().abi(), isservice) + NetIsServiceAccount(servername.param().abi(), accountname.param().abi(), isservice) } #[inline] pub unsafe fn NetJoinDomain(lpserver: P0, lpdomain: P1, lpmachineaccountou: P2, lpaccount: P3, lppassword: P4, fjoinoptions: NET_JOIN_DOMAIN_JOIN_OPTIONS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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.into_param().abi(), lpdomain.into_param().abi(), lpmachineaccountou.into_param().abi(), lpaccount.into_param().abi(), lppassword.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetLocalGroupAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetLocalGroupAddMember(servername: P0, groupname: P1, membersid: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupAddMember(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, membersid : super::super::Foundation:: PSID) -> u32); - NetLocalGroupAddMember(servername.into_param().abi(), groupname.into_param().abi(), membersid.into_param().abi()) + NetLocalGroupAddMember(servername.param().abi(), groupname.param().abi(), membersid.param().abi()) } #[inline] pub unsafe fn NetLocalGroupAddMembers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, buf, totalentries) + NetLocalGroupAddMembers(servername.param().abi(), groupname.param().abi(), level, buf, totalentries) } #[inline] pub unsafe fn NetLocalGroupDel(servername: P0, groupname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupDel(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR) -> u32); - NetLocalGroupDel(servername.into_param().abi(), groupname.into_param().abi()) + NetLocalGroupDel(servername.param().abi(), groupname.param().abi()) } #[inline] pub unsafe fn NetLocalGroupDelMember(servername: P0, groupname: P1, membersid: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetLocalGroupDelMember(servername : windows_core::PCWSTR, groupname : windows_core::PCWSTR, membersid : super::super::Foundation:: PSID) -> u32); - NetLocalGroupDelMember(servername.into_param().abi(), groupname.into_param().abi(), membersid.into_param().abi()) + NetLocalGroupDelMember(servername.param().abi(), groupname.param().abi(), membersid.param().abi()) } #[inline] pub unsafe fn NetLocalGroupDelMembers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, buf, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) + NetLocalGroupEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetLocalGroupGetInfo(servername: P0, groupname: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, bufptr) + NetLocalGroupGetInfo(servername.param().abi(), groupname.param().abi(), level, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), localgroupname.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) + NetLocalGroupGetMembers(servername.param().abi(), localgroupname.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetLocalGroupSetInfo(servername: P0, groupname: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetLocalGroupSetInfo(servername.param().abi(), groupname.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetLocalGroupSetMembers(servername: P0, groupname: P1, level: u32, buf: *const u8, totalentries: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), groupname.into_param().abi(), level, buf, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), msgname.into_param().abi(), fromname.into_param().abi(), buf, buflen) + NetMessageBufferSend(servername.param().abi(), msgname.param().abi(), fromname.param().abi(), buf, buflen) } #[inline] pub unsafe fn NetMessageNameAdd(servername: P0, msgname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetMessageNameAdd(servername : windows_core::PCWSTR, msgname : windows_core::PCWSTR) -> u32); - NetMessageNameAdd(servername.into_param().abi(), msgname.into_param().abi()) + NetMessageNameAdd(servername.param().abi(), msgname.param().abi()) } #[inline] pub unsafe fn NetMessageNameDel(servername: P0, msgname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetMessageNameDel(servername : windows_core::PCWSTR, msgname : windows_core::PCWSTR) -> u32); - NetMessageNameDel(servername.into_param().abi(), msgname.into_param().abi()) + NetMessageNameDel(servername.param().abi(), msgname.param().abi()) } #[inline] pub unsafe fn NetMessageNameEnum(servername: P0, level: u32, bufptr: *const *const u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle) + NetMessageNameEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle) } #[inline] pub unsafe fn NetMessageNameGetInfo(servername: P0, msgname: P1, level: u32, bufptr: *const *const u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), msgname.into_param().abi(), level, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), lpmachinename.into_param().abi(), lpmachineaccountou.into_param().abi(), lpdcname.into_param().abi(), dwoptions, core::mem::transmute(pprovisionbindata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwprovisionbindatasize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprovisiontextdata.unwrap_or(std::ptr::null_mut()))) + NetProvisionComputerAccount(lpdomain.param().abi(), lpmachinename.param().abi(), lpmachineaccountou.param().abi(), lpdcname.param().abi(), dwoptions, core::mem::transmute(pprovisionbindata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwprovisionbindatasize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprovisiontextdata.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, index, entriesrequested, preferredmaximumlength, returnedentrycount, sortedbuffer) + NetQueryDisplayInformation(servername.param().abi(), level, index, entriesrequested, preferredmaximumlength, returnedentrycount, sortedbuffer) } #[inline] pub unsafe fn NetQueryServiceAccount(servername: P0, accountname: P1, infolevel: u32, buffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), accountname.into_param().abi(), infolevel, buffer) + NetQueryServiceAccount(servername.param().abi(), accountname.param().abi(), infolevel, buffer) } #[inline] pub unsafe fn NetRemoteComputerSupports(uncservername: P0, optionswanted: NET_REMOTE_COMPUTER_SUPPORTS_OPTIONS, optionssupported: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), optionswanted, optionssupported) + NetRemoteComputerSupports(uncservername.param().abi(), optionswanted, optionssupported) } #[inline] pub unsafe fn NetRemoteTOD(uncservername: P0, bufferptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetRemoteTOD(uncservername : windows_core::PCWSTR, bufferptr : *mut *mut u8) -> u32); - NetRemoteTOD(uncservername.into_param().abi(), bufferptr) + NetRemoteTOD(uncservername.param().abi(), bufferptr) } #[inline] pub unsafe fn NetRemoveAlternateComputerName(server: P0, alternatename: P1, domainaccount: P2, domainaccountpassword: P3, reserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), alternatename.into_param().abi(), domainaccount.into_param().abi(), domainaccountpassword.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), accountname.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), lpnewmachinename.into_param().abi(), lpaccount.into_param().abi(), lppassword.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, parm_err) + NetReplExportDirAdd(servername.param().abi(), level, buf, parm_err) } #[inline] pub unsafe fn NetReplExportDirDel(servername: P0, dirname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplExportDirDel(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR) -> u32); - NetReplExportDirDel(servername.into_param().abi(), dirname.into_param().abi()) + NetReplExportDirDel(servername.param().abi(), dirname.param().abi()) } #[inline] pub unsafe fn NetReplExportDirEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resumehandle: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, resumehandle) + NetReplExportDirEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, resumehandle) } #[inline] pub unsafe fn NetReplExportDirGetInfo(servername: P0, dirname: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), dirname.into_param().abi(), level, bufptr) + NetReplExportDirGetInfo(servername.param().abi(), dirname.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetReplExportDirLock(servername: P0, dirname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplExportDirLock(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR) -> u32); - NetReplExportDirLock(servername.into_param().abi(), dirname.into_param().abi()) + NetReplExportDirLock(servername.param().abi(), dirname.param().abi()) } #[inline] pub unsafe fn NetReplExportDirSetInfo(servername: P0, dirname: P1, level: u32, buf: *const u8, parm_err: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), dirname.into_param().abi(), level, buf, parm_err) + NetReplExportDirSetInfo(servername.param().abi(), dirname.param().abi(), level, buf, parm_err) } #[inline] pub unsafe fn NetReplExportDirUnlock(servername: P0, dirname: P1, unlockforce: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), dirname.into_param().abi(), unlockforce) + NetReplExportDirUnlock(servername.param().abi(), dirname.param().abi(), unlockforce) } #[inline] pub unsafe fn NetReplGetInfo(servername: P0, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr) + NetReplGetInfo(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetReplImportDirAdd(servername: P0, level: u32, buf: *const u8, parm_err: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, parm_err) + NetReplImportDirAdd(servername.param().abi(), level, buf, parm_err) } #[inline] pub unsafe fn NetReplImportDirDel(servername: P0, dirname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplImportDirDel(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR) -> u32); - NetReplImportDirDel(servername.into_param().abi(), dirname.into_param().abi()) + NetReplImportDirDel(servername.param().abi(), dirname.param().abi()) } #[inline] pub unsafe fn NetReplImportDirEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resumehandle: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, resumehandle) + NetReplImportDirEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, resumehandle) } #[inline] pub unsafe fn NetReplImportDirGetInfo(servername: P0, dirname: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), dirname.into_param().abi(), level, bufptr) + NetReplImportDirGetInfo(servername.param().abi(), dirname.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetReplImportDirLock(servername: P0, dirname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetReplImportDirLock(servername : windows_core::PCWSTR, dirname : windows_core::PCWSTR) -> u32); - NetReplImportDirLock(servername.into_param().abi(), dirname.into_param().abi()) + NetReplImportDirLock(servername.param().abi(), dirname.param().abi()) } #[inline] pub unsafe fn NetReplImportDirUnlock(servername: P0, dirname: P1, unlockforce: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), dirname.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, parm_err) + NetReplSetInfo(servername.param().abi(), level, buf, parm_err) } #[inline] pub unsafe fn NetRequestOfflineDomainJoin(pprovisionbindata: &[u8], dwoptions: NET_REQUEST_PROVISION_OPTIONS, lpwindowspath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: 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(), dwoptions, lpwindowspath.into_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: P0, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: 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(), dwprovisionoptions, lpwindowspath.into_param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + NetRequestProvisioningPackageInstall(core::mem::transmute(ppackagebindata.as_ptr()), ppackagebindata.len().try_into().unwrap(), dwprovisionoptions, lpwindowspath.param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn NetScheduleJobAdd(servername: P0, buffer: *mut u8, jobid: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetScheduleJobAdd(servername : windows_core::PCWSTR, buffer : *mut u8, jobid : *mut u32) -> u32); - NetScheduleJobAdd(servername.into_param().abi(), buffer, jobid) + NetScheduleJobAdd(servername.param().abi(), buffer, jobid) } #[inline] pub unsafe fn NetScheduleJobDel(servername: P0, minjobid: u32, maxjobid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetScheduleJobDel(servername : windows_core::PCWSTR, minjobid : u32, maxjobid : u32) -> u32); - NetScheduleJobDel(servername.into_param().abi(), minjobid, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pointertobuffer, prefferedmaximumlength, entriesread, totalentries, resumehandle) + NetScheduleJobEnum(servername.param().abi(), pointertobuffer, prefferedmaximumlength, entriesread, totalentries, resumehandle) } #[inline] pub unsafe fn NetScheduleJobGetInfo(servername: P0, jobid: u32, pointertobuffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), jobid, pointertobuffer) + NetScheduleJobGetInfo(servername.param().abi(), jobid, pointertobuffer) } #[inline] pub unsafe fn NetServerComputerNameAdd(servername: P0, emulateddomainname: P1, emulatedservername: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerComputerNameAdd(servername : windows_core::PCWSTR, emulateddomainname : windows_core::PCWSTR, emulatedservername : windows_core::PCWSTR) -> u32); - NetServerComputerNameAdd(servername.into_param().abi(), emulateddomainname.into_param().abi(), emulatedservername.into_param().abi()) + NetServerComputerNameAdd(servername.param().abi(), emulateddomainname.param().abi(), emulatedservername.param().abi()) } #[inline] pub unsafe fn NetServerComputerNameDel(servername: P0, emulatedservername: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerComputerNameDel(servername : windows_core::PCWSTR, emulatedservername : windows_core::PCWSTR) -> u32); - NetServerComputerNameDel(servername.into_param().abi(), emulatedservername.into_param().abi()) + NetServerComputerNameDel(servername.param().abi(), emulatedservername.param().abi()) } #[inline] pub unsafe fn NetServerDiskEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetServerDiskEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[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: P1, resume_handle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, servertype, domain.into_param().abi(), core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetServerEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, servertype, domain.param().abi(), core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetServerGetInfo(servername: P0, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr) + NetServerGetInfo(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetServerSetInfo(servername: P0, level: u32, buf: *const u8, parmerror: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parmerror.unwrap_or(std::ptr::null_mut()))) + NetServerSetInfo(servername.param().abi(), level, buf, core::mem::transmute(parmerror.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetServerTransportAdd(servername: P0, level: u32, bufptr: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerTransportAdd(servername : windows_core::PCWSTR, level : u32, bufptr : *const u8) -> u32); - NetServerTransportAdd(servername.into_param().abi(), level, bufptr) + NetServerTransportAdd(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetServerTransportAddEx(servername: P0, level: u32, bufptr: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerTransportAddEx(servername : windows_core::PCWSTR, level : u32, bufptr : *const u8) -> u32); - NetServerTransportAddEx(servername.into_param().abi(), level, bufptr) + NetServerTransportAddEx(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetServerTransportDel(servername: P0, level: u32, bufptr: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerTransportDel(servername : windows_core::PCWSTR, level : u32, bufptr : *const u8) -> u32); - NetServerTransportDel(servername.into_param().abi(), level, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetServerTransportEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetServiceControl(servername: P0, service: P1, opcode: u32, arg: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), service.into_param().abi(), opcode, arg, bufptr) + NetServiceControl(servername.param().abi(), service.param().abi(), opcode, arg, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetServiceEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetServiceGetInfo(servername: P0, service: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), service.into_param().abi(), level, bufptr) + NetServiceGetInfo(servername.param().abi(), service.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetServiceInstall(servername: P0, service: P1, argv: &[windows_core::PCWSTR], bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServiceInstall(servername : windows_core::PCWSTR, service : windows_core::PCWSTR, argc : u32, argv : *const windows_core::PCWSTR, bufptr : *mut *mut u8) -> u32); - NetServiceInstall(servername.into_param().abi(), service.into_param().abi(), argv.len().try_into().unwrap(), core::mem::transmute(argv.as_ptr()), bufptr) + NetServiceInstall(servername.param().abi(), service.param().abi(), argv.len().try_into().unwrap(), core::mem::transmute(argv.as_ptr()), bufptr) } #[inline] pub unsafe fn NetSetPrimaryComputerName(server: P0, primaryname: P1, domainaccount: P2, domainaccountpassword: P3, reserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), primaryname.into_param().abi(), domainaccount.into_param().abi(), domainaccountpassword.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpaccount.into_param().abi(), lppassword.into_param().abi(), 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 { @@ -967,144 +967,144 @@ pub unsafe fn NetUseAdd(servername: Option<*const i8>, levelflags: u32, buf: *co #[inline] pub unsafe fn NetUseDel(uncservername: P0, usename: P1, forcelevelflags: FORCE_LEVEL_FLAGS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), usename.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), levelflags, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut())), preferedmaximumsize, core::mem::transmute(entriesread.unwrap_or(std::ptr::null_mut())), totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) + NetUseEnum(uncservername.param().abi(), levelflags, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut())), preferedmaximumsize, core::mem::transmute(entriesread.unwrap_or(std::ptr::null_mut())), totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetUseGetInfo(uncservername: P0, usename: P1, levelflags: u32, bufptr: Option<*mut *mut u8>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), usename.into_param().abi(), levelflags, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut()))) + NetUseGetInfo(uncservername.param().abi(), usename.param().abi(), levelflags, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetUserAdd(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetUserAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetUserChangePassword(domainname: P0, username: P1, oldpassword: P2, newpassword: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserChangePassword(domainname : windows_core::PCWSTR, username : windows_core::PCWSTR, oldpassword : windows_core::PCWSTR, newpassword : windows_core::PCWSTR) -> u32); - NetUserChangePassword(domainname.into_param().abi(), username.into_param().abi(), oldpassword.into_param().abi(), newpassword.into_param().abi()) + NetUserChangePassword(domainname.param().abi(), username.param().abi(), oldpassword.param().abi(), newpassword.param().abi()) } #[inline] pub unsafe fn NetUserDel(servername: P0, username: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetUserDel(servername : windows_core::PCWSTR, username : windows_core::PCWSTR) -> u32); - NetUserDel(servername.into_param().abi(), username.into_param().abi()) + NetUserDel(servername.param().abi(), username.param().abi()) } #[inline] pub unsafe fn NetUserEnum(servername: P0, level: u32, filter: NET_USER_ENUM_FILTER_FLAGS, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, filter, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetUserEnum(servername.param().abi(), level, filter, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetUserGetGroups(servername: P0, username: P1, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), username.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries) + NetUserGetGroups(servername.param().abi(), username.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries) } #[inline] pub unsafe fn NetUserGetInfo(servername: P0, username: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), username.into_param().abi(), level, bufptr) + NetUserGetInfo(servername.param().abi(), username.param().abi(), level, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), username.into_param().abi(), level, flags, bufptr, prefmaxlen, entriesread, totalentries) + NetUserGetLocalGroups(servername.param().abi(), username.param().abi(), level, flags, bufptr, prefmaxlen, entriesread, totalentries) } #[inline] pub unsafe fn NetUserModalsGet(servername: P0, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr) + NetUserModalsGet(servername.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetUserModalsSet(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetUserModalsSet(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetUserSetGroups(servername: P0, username: P1, level: u32, buf: *const u8, num_entries: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), username.into_param().abi(), level, buf, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), username.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetUserSetInfo(servername.param().abi(), username.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetValidateName(lpserver: P0, lpname: P1, lpaccount: P2, lppassword: P3, nametype: NETSETUP_NAME_TYPE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), lpname.into_param().abi(), lpaccount.into_param().abi(), lppassword.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), qualifier, validationtype, inputarg, outputarg) + NetValidatePasswordPolicy(servername.param().abi(), qualifier, validationtype, inputarg, outputarg) } #[inline] pub unsafe fn NetValidatePasswordPolicyFree(outputarg: *mut *mut core::ffi::c_void) -> u32 { @@ -1114,18 +1114,18 @@ pub unsafe fn NetValidatePasswordPolicyFree(outputarg: *mut *mut core::ffi::c_vo #[inline] pub unsafe fn NetWkstaGetInfo(servername: P0, level: u32, bufptr: Option<*mut *mut u8>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut()))) + NetWkstaGetInfo(servername.param().abi(), level, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetWkstaSetInfo(servername: P0, level: u32, buffer: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buffer, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetWkstaSetInfo(servername.param().abi(), level, buffer, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetWkstaTransportAdd(servername: Option<*const i8>, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 { @@ -1135,11 +1135,11 @@ pub unsafe fn NetWkstaTransportAdd(servername: Option<*const i8>, level: u32, bu #[inline] pub unsafe fn NetWkstaTransportDel(servername: P0, transportname: P1, ucond: FORCE_LEVEL_FLAGS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), transportname.into_param().abi(), 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 { @@ -1149,36 +1149,36 @@ pub unsafe fn NetWkstaTransportEnum(servername: Option<*const i8>, level: u32, b #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut())), prefmaxlen, core::mem::transmute(entriesread.unwrap_or(std::ptr::null_mut())), totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) + NetWkstaUserEnum(servername.param().abi(), level, core::mem::transmute(bufptr.unwrap_or(std::ptr::null_mut())), prefmaxlen, core::mem::transmute(entriesread.unwrap_or(std::ptr::null_mut())), totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetWkstaUserGetInfo(reserved: P0, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr) + NetWkstaUserGetInfo(reserved.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetWkstaUserSetInfo(reserved: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetWkstaUserSetInfo(reserved.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RouterAssert(pszfailedassertion: P0, pszfilename: P1, dwlinenumber: u32, pszmessage: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszfilename.into_param().abi(), dwlinenumber, pszmessage.into_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 { @@ -1193,128 +1193,128 @@ pub unsafe fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: *mut w #[inline] pub unsafe fn RouterLogDeregisterA(hloghandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn RouterLogDeregisterA(hloghandle : super::super::Foundation:: HANDLE)); - RouterLogDeregisterA(hloghandle.into_param().abi()) + RouterLogDeregisterA(hloghandle.param().abi()) } #[inline] pub unsafe fn RouterLogDeregisterW(hloghandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn RouterLogDeregisterW(hloghandle : super::super::Foundation:: HANDLE)); - RouterLogDeregisterW(hloghandle.into_param().abi()) + RouterLogDeregisterW(hloghandle.param().abi()) } #[inline] pub unsafe fn RouterLogEventA(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCSTR]>, dwerrorcode: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hloghandle.into_param().abi(), 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) + RouterLogEventA(hloghandle.param().abi(), 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: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCSTR]>, dwdatabytes: u32, lpdatabytes: *mut u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hloghandle.into_param().abi(), 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, lpdatabytes) + RouterLogEventDataA(hloghandle.param().abi(), 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, lpdatabytes) } #[inline] pub unsafe fn RouterLogEventDataW(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCWSTR]>, dwdatabytes: u32, lpdatabytes: *mut u8) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hloghandle.into_param().abi(), 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, lpdatabytes) + RouterLogEventDataW(hloghandle.param().abi(), 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, lpdatabytes) } #[inline] pub unsafe fn RouterLogEventExA(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hloghandle.into_param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into_param().abi()) + RouterLogEventExA(hloghandle.param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi()) } #[inline] pub unsafe fn RouterLogEventExW(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hloghandle.into_param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into_param().abi()) + RouterLogEventExW(hloghandle.param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi()) } #[inline] pub unsafe fn RouterLogEventStringA(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[windows_core::PCSTR], dwerrorcode: u32, dwerrorindex: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hloghandle.into_param().abi(), dweventtype, dwmessageid, plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) + RouterLogEventStringA(hloghandle.param().abi(), dweventtype, dwmessageid, plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) } #[inline] pub unsafe fn RouterLogEventStringW(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[windows_core::PCWSTR], dwerrorcode: u32, dwerrorindex: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hloghandle.into_param().abi(), dweventtype, dwmessageid, plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) + RouterLogEventStringW(hloghandle.param().abi(), dweventtype, dwmessageid, plpszsubstringarray.len().try_into().unwrap(), core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) } #[inline] pub unsafe fn RouterLogEventValistExA(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1, arglist: *mut i8) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hloghandle.into_param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into_param().abi(), arglist) + RouterLogEventValistExA(hloghandle.param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi(), arglist) } #[inline] pub unsafe fn RouterLogEventValistExW(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1, arglist: *mut i8) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hloghandle.into_param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into_param().abi(), arglist) + RouterLogEventValistExW(hloghandle.param().abi(), dweventtype, dwerrorcode, dwmessageid, ptszformat.param().abi(), arglist) } #[inline] pub unsafe fn RouterLogEventW(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: Option<&[windows_core::PCWSTR]>, dwerrorcode: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hloghandle.into_param().abi(), 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) + RouterLogEventW(hloghandle.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn RouterLogRegisterA(lpszsource : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - RouterLogRegisterA(lpszsource.into_param().abi()) + RouterLogRegisterA(lpszsource.param().abi()) } #[inline] pub unsafe fn RouterLogRegisterW(lpszsource: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn RouterLogRegisterW(lpszsource : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - RouterLogRegisterW(lpszsource.into_param().abi()) + RouterLogRegisterW(lpszsource.param().abi()) } #[inline] pub unsafe fn SetNetScheduleAccountInformation(pwszservername: P0, pwszaccount: P1, pwszpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mstask.dll" "system" fn SetNetScheduleAccountInformation(pwszservername : windows_core::PCWSTR, pwszaccount : windows_core::PCWSTR, pwszpassword : windows_core::PCWSTR) -> windows_core::HRESULT); - SetNetScheduleAccountInformation(pwszservername.into_param().abi(), pwszaccount.into_param().abi(), pwszpassword.into_param().abi()).ok() + SetNetScheduleAccountInformation(pwszservername.param().abi(), pwszaccount.param().abi(), pwszpassword.param().abi()).ok() } #[inline] pub unsafe fn TraceDeregisterA(dwtraceid: u32) -> u32 { @@ -1339,20 +1339,20 @@ pub unsafe fn TraceDeregisterW(dwtraceid: u32) -> u32 { #[inline] pub unsafe fn TraceDumpExA(dwtraceid: u32, dwflags: u32, lpbbytes: *mut u8, dwbytecount: u32, dwgroupsize: u32, baddressprefix: P0, lpszprefix: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwtraceid, dwflags, lpbbytes, dwbytecount, dwgroupsize, baddressprefix.into_param().abi(), lpszprefix.into_param().abi()) + TraceDumpExA(dwtraceid, dwflags, lpbbytes, dwbytecount, dwgroupsize, baddressprefix.param().abi(), lpszprefix.param().abi()) } #[inline] pub unsafe fn TraceDumpExW(dwtraceid: u32, dwflags: u32, lpbbytes: *mut u8, dwbytecount: u32, dwgroupsize: u32, baddressprefix: P0, lpszprefix: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwtraceid, dwflags, lpbbytes, dwbytecount, dwgroupsize, baddressprefix.into_param().abi(), lpszprefix.into_param().abi()) + TraceDumpExW(dwtraceid, dwflags, lpbbytes, dwbytecount, dwgroupsize, baddressprefix.param().abi(), lpszprefix.param().abi()) } #[inline] pub unsafe fn TraceGetConsoleA(dwtraceid: u32, lphconsole: *mut super::super::Foundation::HANDLE) -> u32 { @@ -1367,82 +1367,82 @@ pub unsafe fn TraceGetConsoleW(dwtraceid: u32, lphconsole: *mut super::super::Fo #[inline] pub unsafe fn TracePrintfA(dwtraceid: u32, lpszformat: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfA(dwtraceid : u32, lpszformat : windows_core::PCSTR) -> u32); - TracePrintfA(dwtraceid, lpszformat.into_param().abi()) + TracePrintfA(dwtraceid, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePrintfExA(dwtraceid: u32, dwflags: u32, lpszformat: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfExA(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCSTR) -> u32); - TracePrintfExA(dwtraceid, dwflags, lpszformat.into_param().abi()) + TracePrintfExA(dwtraceid, dwflags, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePrintfExW(dwtraceid: u32, dwflags: u32, lpszformat: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfExW(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCWSTR) -> u32); - TracePrintfExW(dwtraceid, dwflags, lpszformat.into_param().abi()) + TracePrintfExW(dwtraceid, dwflags, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePrintfW(dwtraceid: u32, lpszformat: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "cdecl" fn TracePrintfW(dwtraceid : u32, lpszformat : windows_core::PCWSTR) -> u32); - TracePrintfW(dwtraceid, lpszformat.into_param().abi()) + TracePrintfW(dwtraceid, lpszformat.param().abi()) } #[inline] pub unsafe fn TracePutsExA(dwtraceid: u32, dwflags: u32, lpszstring: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TracePutsExA(dwtraceid : u32, dwflags : u32, lpszstring : windows_core::PCSTR) -> u32); - TracePutsExA(dwtraceid, dwflags, lpszstring.into_param().abi()) + TracePutsExA(dwtraceid, dwflags, lpszstring.param().abi()) } #[inline] pub unsafe fn TracePutsExW(dwtraceid: u32, dwflags: u32, lpszstring: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TracePutsExW(dwtraceid : u32, dwflags : u32, lpszstring : windows_core::PCWSTR) -> u32); - TracePutsExW(dwtraceid, dwflags, lpszstring.into_param().abi()) + TracePutsExW(dwtraceid, dwflags, lpszstring.param().abi()) } #[inline] pub unsafe fn TraceRegisterExA(lpszcallername: P0, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceRegisterExA(lpszcallername : windows_core::PCSTR, dwflags : u32) -> u32); - TraceRegisterExA(lpszcallername.into_param().abi(), dwflags) + TraceRegisterExA(lpszcallername.param().abi(), dwflags) } #[inline] pub unsafe fn TraceRegisterExW(lpszcallername: P0, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceRegisterExW(lpszcallername : windows_core::PCWSTR, dwflags : u32) -> u32); - TraceRegisterExW(lpszcallername.into_param().abi(), dwflags) + TraceRegisterExW(lpszcallername.param().abi(), dwflags) } #[inline] pub unsafe fn TraceVprintfExA(dwtraceid: u32, dwflags: u32, lpszformat: P0, arglist: *mut i8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceVprintfExA(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCSTR, arglist : *mut i8) -> u32); - TraceVprintfExA(dwtraceid, dwflags, lpszformat.into_param().abi(), arglist) + TraceVprintfExA(dwtraceid, dwflags, lpszformat.param().abi(), arglist) } #[inline] pub unsafe fn TraceVprintfExW(dwtraceid: u32, dwflags: u32, lpszformat: P0, arglist: *mut i8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtutils.dll" "system" fn TraceVprintfExW(dwtraceid : u32, dwflags : u32, lpszformat : windows_core::PCWSTR, arglist : *mut i8) -> u32); - TraceVprintfExW(dwtraceid, dwflags, lpszformat.into_param().abi(), arglist) + TraceVprintfExW(dwtraceid, dwflags, lpszformat.param().abi(), arglist) } windows_core::imp::define_interface!(IEnumNetCfgBindingInterface, IEnumNetCfgBindingInterface_Vtbl, 0xc0e8ae90_306e_11d1_aacf_00805fc1270e); windows_core::imp::interface_hierarchy!(IEnumNetCfgBindingInterface, windows_core::IUnknown); @@ -1536,9 +1536,9 @@ impl INetCfg { } pub unsafe fn FindComponent(&self, pszwinfid: P0, pcomponent: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindComponent)(windows_core::Interface::as_raw(self), pszwinfid.into_param().abi(), core::mem::transmute(pcomponent.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindComponent)(windows_core::Interface::as_raw(self), pszwinfid.param().abi(), core::mem::transmute(pcomponent.unwrap_or(std::ptr::null_mut()))).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), pguidclass, riid, core::mem::transmute(ppvobject.unwrap_or(std::ptr::null_mut()))).ok() @@ -1580,24 +1580,24 @@ windows_core::imp::interface_hierarchy!(INetCfgBindingPath, windows_core::IUnkno impl INetCfgBindingPath { pub unsafe fn IsSamePathAs(&self, ppath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsSamePathAs)(windows_core::Interface::as_raw(self), ppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsSamePathAs)(windows_core::Interface::as_raw(self), ppath.param().abi()).ok() } pub unsafe fn IsSubPathOf(&self, ppath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsSubPathOf)(windows_core::Interface::as_raw(self), ppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsSubPathOf)(windows_core::Interface::as_raw(self), ppath.param().abi()).ok() } pub unsafe fn IsEnabled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsEnabled)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Enable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn GetPathToken(&self, ppszwpathtoken: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPathToken)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszwpathtoken.unwrap_or(std::ptr::null_mut()))).ok() @@ -1630,9 +1630,9 @@ windows_core::imp::interface_hierarchy!(INetCfgClass, windows_core::IUnknown); impl INetCfgClass { pub unsafe fn FindComponent(&self, pszwinfid: P0, ppnccitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindComponent)(windows_core::Interface::as_raw(self), pszwinfid.into_param().abi(), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindComponent)(windows_core::Interface::as_raw(self), pszwinfid.param().abi(), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn EnumComponents(&self, ppenumcomponent: Option<*mut Option>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumComponents)(windows_core::Interface::as_raw(self), core::mem::transmute(ppenumcomponent.unwrap_or(std::ptr::null_mut()))).ok() @@ -1649,23 +1649,23 @@ windows_core::imp::interface_hierarchy!(INetCfgClassSetup, windows_core::IUnknow impl INetCfgClassSetup { pub unsafe fn SelectAndInstall(&self, hwndparent: P0, pobotoken: Option<*const OBO_TOKEN>, ppnccitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectAndInstall)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SelectAndInstall)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Install(&self, pszwinfid: P0, pobotoken: Option<*const OBO_TOKEN>, dwsetupflags: u32, dwupgradefrombuildno: u32, pszwanswerfile: P1, pszwanswersections: P2, ppnccitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self), pszwinfid.into_param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), dwsetupflags, dwupgradefrombuildno, pszwanswerfile.into_param().abi(), pszwanswersections.into_param().abi(), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self), pszwinfid.param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), dwsetupflags, dwupgradefrombuildno, pszwanswerfile.param().abi(), pszwanswersections.param().abi(), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn DeInstall(&self, pcomponent: P0, pobotoken: Option<*const OBO_TOKEN>, pmszwrefs: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeInstall)(windows_core::Interface::as_raw(self), pcomponent.into_param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(pmszwrefs.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DeInstall)(windows_core::Interface::as_raw(self), pcomponent.param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(pmszwrefs.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -1680,29 +1680,29 @@ windows_core::imp::interface_hierarchy!(INetCfgClassSetup2, windows_core::IUnkno impl INetCfgClassSetup2 { pub unsafe fn SelectAndInstall(&self, hwndparent: P0, pobotoken: Option<*const OBO_TOKEN>, ppnccitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SelectAndInstall)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.SelectAndInstall)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Install(&self, pszwinfid: P0, pobotoken: Option<*const OBO_TOKEN>, dwsetupflags: u32, dwupgradefrombuildno: u32, pszwanswerfile: P1, pszwanswersections: P2, ppnccitem: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Install)(windows_core::Interface::as_raw(self), pszwinfid.into_param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), dwsetupflags, dwupgradefrombuildno, pszwanswerfile.into_param().abi(), pszwanswersections.into_param().abi(), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.Install)(windows_core::Interface::as_raw(self), pszwinfid.param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), dwsetupflags, dwupgradefrombuildno, pszwanswerfile.param().abi(), pszwanswersections.param().abi(), core::mem::transmute(ppnccitem.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn DeInstall(&self, pcomponent: P0, pobotoken: Option<*const OBO_TOKEN>, pmszwrefs: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeInstall)(windows_core::Interface::as_raw(self), pcomponent.into_param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(pmszwrefs.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.DeInstall)(windows_core::Interface::as_raw(self), pcomponent.param().abi(), core::mem::transmute(pobotoken.unwrap_or(std::ptr::null())), core::mem::transmute(pmszwrefs.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn UpdateNonEnumeratedComponent(&self, picomp: P0, dwsetupflags: u32, dwupgradefrombuildno: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateNonEnumeratedComponent)(windows_core::Interface::as_raw(self), picomp.into_param().abi(), dwsetupflags, dwupgradefrombuildno).ok() + (windows_core::Interface::vtable(self).UpdateNonEnumeratedComponent)(windows_core::Interface::as_raw(self), picomp.param().abi(), dwsetupflags, dwupgradefrombuildno).ok() } } #[repr(C)] @@ -1718,9 +1718,9 @@ impl INetCfgComponent { } pub unsafe fn SetDisplayName(&self, pszwdisplayname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszwdisplayname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszwdisplayname.param().abi()).ok() } pub unsafe fn GetHelpText(&self, pszwhelptext: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetHelpText)(windows_core::Interface::as_raw(self), core::mem::transmute(pszwhelptext.unwrap_or(std::ptr::null_mut()))).ok() @@ -1754,10 +1754,10 @@ impl INetCfgComponent { } pub unsafe fn RaisePropertyUi(&self, hwndparent: P0, dwflags: u32, punkcontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RaisePropertyUi)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags, punkcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RaisePropertyUi)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwflags, punkcontext.param().abi()).ok() } } #[repr(C)] @@ -1784,50 +1784,50 @@ windows_core::imp::interface_hierarchy!(INetCfgComponentBindings, windows_core:: impl INetCfgComponentBindings { pub unsafe fn BindTo(&self, pnccitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindTo)(windows_core::Interface::as_raw(self), pnccitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BindTo)(windows_core::Interface::as_raw(self), pnccitem.param().abi()).ok() } pub unsafe fn UnbindFrom(&self, pnccitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnbindFrom)(windows_core::Interface::as_raw(self), pnccitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnbindFrom)(windows_core::Interface::as_raw(self), pnccitem.param().abi()).ok() } pub unsafe fn SupportsBindingInterface(&self, dwflags: u32, pszwinterfacename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SupportsBindingInterface)(windows_core::Interface::as_raw(self), dwflags, pszwinterfacename.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsBoundTo)(windows_core::Interface::as_raw(self), pnccitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsBoundTo)(windows_core::Interface::as_raw(self), pnccitem.param().abi()).ok() } pub unsafe fn IsBindableTo(&self, pnccitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsBindableTo)(windows_core::Interface::as_raw(self), pnccitem.into_param().abi()).ok() + (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), dwflags, core::mem::transmute(ppienum.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn MoveBefore(&self, pncbitemsrc: P0, pncbitemdest: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveBefore)(windows_core::Interface::as_raw(self), pncbitemsrc.into_param().abi(), pncbitemdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveBefore)(windows_core::Interface::as_raw(self), pncbitemsrc.param().abi(), pncbitemdest.param().abi()).ok() } pub unsafe fn MoveAfter(&self, pncbitemsrc: P0, pncbitemdest: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveAfter)(windows_core::Interface::as_raw(self), pncbitemsrc.into_param().abi(), pncbitemdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveAfter)(windows_core::Interface::as_raw(self), pncbitemsrc.param().abi(), pncbitemdest.param().abi()).ok() } } #[repr(C)] @@ -1847,20 +1847,20 @@ windows_core::imp::interface_hierarchy!(INetCfgComponentControl, windows_core::I impl INetCfgComponentControl { pub unsafe fn Initialize(&self, picomp: P0, pinetcfg: P1, finstalling: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picomp.into_param().abi(), pinetcfg.into_param().abi(), finstalling.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picomp.param().abi(), pinetcfg.param().abi(), finstalling.param().abi()).ok() } pub unsafe fn ApplyRegistryChanges(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ApplyRegistryChanges)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ApplyPnpChanges(&self, picallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyPnpChanges)(windows_core::Interface::as_raw(self), picallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyPnpChanges)(windows_core::Interface::as_raw(self), picallback.param().abi()).ok() } pub unsafe fn CancelChanges(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelChanges)(windows_core::Interface::as_raw(self)).ok() @@ -1879,15 +1879,15 @@ windows_core::imp::interface_hierarchy!(INetCfgComponentNotifyBinding, windows_c impl INetCfgComponentNotifyBinding { pub unsafe fn QueryBindingPath(&self, dwchangeflag: u32, pipath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.param().abi()).ok() } } #[repr(C)] @@ -1905,21 +1905,21 @@ impl INetCfgComponentNotifyGlobal { } pub unsafe fn SysQueryBindingPath(&self, dwchangeflag: u32, pipath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SysQueryBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SysNotifyBindingPath)(windows_core::Interface::as_raw(self), dwchangeflag, pipath.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SysNotifyComponent)(windows_core::Interface::as_raw(self), dwchangeflag, picomp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SysNotifyComponent)(windows_core::Interface::as_raw(self), dwchangeflag, picomp.param().abi()).ok() } } #[repr(C)] @@ -1935,27 +1935,27 @@ windows_core::imp::interface_hierarchy!(INetCfgComponentPropertyUi, windows_core impl INetCfgComponentPropertyUi { pub unsafe fn QueryPropertyUi(&self, punkreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryPropertyUi)(windows_core::Interface::as_raw(self), punkreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueryPropertyUi)(windows_core::Interface::as_raw(self), punkreserved.param().abi()).ok() } pub unsafe fn SetContext(&self, punkreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), punkreserved.into_param().abi()).ok() + (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: P0, pszstartpage: Option<*const windows_core::PCWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MergePropPages)(windows_core::Interface::as_raw(self), pdwdefpages, pahpspprivate, pcpages, hwndparent.into_param().abi(), core::mem::transmute(pszstartpage.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).MergePropPages)(windows_core::Interface::as_raw(self), pdwdefpages, pahpspprivate, pcpages, hwndparent.param().abi(), core::mem::transmute(pszstartpage.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ValidateProperties(&self, hwndsheet: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidateProperties)(windows_core::Interface::as_raw(self), hwndsheet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ValidateProperties)(windows_core::Interface::as_raw(self), hwndsheet.param().abi()).ok() } pub unsafe fn ApplyProperties(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self)).ok() @@ -1985,10 +1985,10 @@ impl INetCfgComponentSetup { } pub unsafe fn ReadAnswerFile(&self, pszwanswerfile: P0, pszwanswersections: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadAnswerFile)(windows_core::Interface::as_raw(self), pszwanswerfile.into_param().abi(), pszwanswersections.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReadAnswerFile)(windows_core::Interface::as_raw(self), pszwanswerfile.param().abi(), pszwanswersections.param().abi()).ok() } pub unsafe fn Removing(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Removing)(windows_core::Interface::as_raw(self)).ok() @@ -2007,17 +2007,17 @@ windows_core::imp::interface_hierarchy!(INetCfgComponentSysPrep, windows_core::I impl INetCfgComponentSysPrep { pub unsafe fn SaveAdapterParameters(&self, pncsp: P0, pszwanswersections: P1, padapterinstanceguid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveAdapterParameters)(windows_core::Interface::as_raw(self), pncsp.into_param().abi(), pszwanswersections.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreAdapterParameters)(windows_core::Interface::as_raw(self), pszwanswerfile.into_param().abi(), pszwanswersection.into_param().abi(), padapterinstanceguid).ok() + (windows_core::Interface::vtable(self).RestoreAdapterParameters)(windows_core::Interface::as_raw(self), pszwanswerfile.param().abi(), pszwanswersection.param().abi(), padapterinstanceguid).ok() } } #[repr(C)] @@ -2031,21 +2031,21 @@ windows_core::imp::interface_hierarchy!(INetCfgComponentUpperEdge, windows_core: impl INetCfgComponentUpperEdge { pub unsafe fn GetInterfaceIdsForAdapter(&self, padapter: P0, pdwnuminterfaces: *mut u32, ppguidinterfaceids: Option<*mut *mut windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetInterfaceIdsForAdapter)(windows_core::Interface::as_raw(self), padapter.into_param().abi(), pdwnuminterfaces, core::mem::transmute(ppguidinterfaceids.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetInterfaceIdsForAdapter)(windows_core::Interface::as_raw(self), padapter.param().abi(), pdwnuminterfaces, core::mem::transmute(ppguidinterfaceids.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddInterfacesToAdapter(&self, padapter: P0, dwnuminterfaces: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddInterfacesToAdapter)(windows_core::Interface::as_raw(self), padapter.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveInterfacesFromAdapter)(windows_core::Interface::as_raw(self), padapter.into_param().abi(), pguidinterfaceids.len().try_into().unwrap(), core::mem::transmute(pguidinterfaceids.as_ptr())).ok() + (windows_core::Interface::vtable(self).RemoveInterfacesFromAdapter)(windows_core::Interface::as_raw(self), padapter.param().abi(), pguidinterfaceids.len().try_into().unwrap(), core::mem::transmute(pguidinterfaceids.as_ptr())).ok() } } #[repr(C)] @@ -2060,9 +2060,9 @@ windows_core::imp::interface_hierarchy!(INetCfgLock, windows_core::IUnknown); impl INetCfgLock { pub unsafe fn AcquireWriteLock(&self, cmstimeout: u32, pszwclientdescription: P0, ppszwclientdescription: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireWriteLock)(windows_core::Interface::as_raw(self), cmstimeout, pszwclientdescription.into_param().abi(), core::mem::transmute(ppszwclientdescription.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).AcquireWriteLock)(windows_core::Interface::as_raw(self), cmstimeout, pszwclientdescription.param().abi(), core::mem::transmute(ppszwclientdescription.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReleaseWriteLock(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseWriteLock)(windows_core::Interface::as_raw(self)).ok() @@ -2083,10 +2083,10 @@ windows_core::imp::interface_hierarchy!(INetCfgPnpReconfigCallback, windows_core impl INetCfgPnpReconfigCallback { pub unsafe fn SendPnpReconfig(&self, layer: NCPNP_RECONFIG_LAYER, pszwupper: P0, pszwlower: P1, pvdata: *const core::ffi::c_void, dwsizeofdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SendPnpReconfig)(windows_core::Interface::as_raw(self), layer, pszwupper.into_param().abi(), pszwlower.into_param().abi(), pvdata, 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)] @@ -2099,34 +2099,34 @@ windows_core::imp::interface_hierarchy!(INetCfgSysPrep, windows_core::IUnknown); impl INetCfgSysPrep { pub unsafe fn HrSetupSetFirstDword(&self, pwszsection: P0, pwszkey: P1, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HrSetupSetFirstDword)(windows_core::Interface::as_raw(self), pwszsection.into_param().abi(), pwszkey.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).HrSetupSetFirstString)(windows_core::Interface::as_raw(self), pwszsection.into_param().abi(), pwszkey.into_param().abi(), pwszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HrSetupSetFirstString)(windows_core::Interface::as_raw(self), pwszsection.param().abi(), pwszkey.param().abi(), pwszvalue.param().abi()).ok() } pub unsafe fn HrSetupSetFirstStringAsBool(&self, pwszsection: P0, pwszkey: P1, fvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).HrSetupSetFirstStringAsBool)(windows_core::Interface::as_raw(self), pwszsection.into_param().abi(), pwszkey.into_param().abi(), fvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HrSetupSetFirstStringAsBool)(windows_core::Interface::as_raw(self), pwszsection.param().abi(), pwszkey.param().abi(), fvalue.param().abi()).ok() } pub unsafe fn HrSetupSetFirstMultiSzField(&self, pwszsection: P0, pwszkey: P1, pmszvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).HrSetupSetFirstMultiSzField)(windows_core::Interface::as_raw(self), pwszsection.into_param().abi(), pwszkey.into_param().abi(), pmszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HrSetupSetFirstMultiSzField)(windows_core::Interface::as_raw(self), pwszsection.param().abi(), pwszkey.param().abi(), pmszvalue.param().abi()).ok() } } #[repr(C)] @@ -2167,19 +2167,19 @@ windows_core::imp::interface_hierarchy!(IProvisioningDomain, windows_core::IUnkn impl IProvisioningDomain { pub unsafe fn Add(&self, pszwpathtofolder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pszwpathtofolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pszwpathtofolder.param().abi()).ok() } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn Query(&self, pszwdomain: P0, pszwlanguage: P1, pszwxpathquery: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pszwdomain.into_param().abi(), pszwlanguage.into_param().abi(), pszwxpathquery.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pszwdomain.param().abi(), pszwlanguage.param().abi(), pszwxpathquery.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2196,11 +2196,11 @@ windows_core::imp::interface_hierarchy!(IProvisioningProfileWireless, windows_co impl IProvisioningProfileWireless { pub unsafe fn CreateProfile(&self, bstrxmlwirelessconfigprofile: P0, bstrxmlconnectionconfigprofile: P1, padapterinstanceguid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProfile)(windows_core::Interface::as_raw(self), bstrxmlwirelessconfigprofile.into_param().abi(), bstrxmlconnectionconfigprofile.into_param().abi(), padapterinstanceguid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateProfile)(windows_core::Interface::as_raw(self), bstrxmlwirelessconfigprofile.param().abi(), bstrxmlconnectionconfigprofile.param().abi(), 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 ae4223369e..f69c4e48a5 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs @@ -1,52 +1,52 @@ #[inline] pub unsafe fn MatchEnumTag(hmodule: P0, pwcarg: P1, dwnumarg: u32, penumtable: *const TOKEN_VALUE, pdwvalue: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmodule.into_param().abi(), pwcarg.into_param().abi(), dwnumarg, penumtable, pdwvalue) + MatchEnumTag(hmodule.param().abi(), pwcarg.param().abi(), dwnumarg, penumtable, pdwvalue) } #[inline] pub unsafe fn MatchToken(pwszusertoken: P0, pwszcmdtoken: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netsh.dll" "system" fn MatchToken(pwszusertoken : windows_core::PCWSTR, pwszcmdtoken : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - MatchToken(pwszusertoken.into_param().abi(), pwszcmdtoken.into_param().abi()) + MatchToken(pwszusertoken.param().abi(), pwszcmdtoken.param().abi()) } #[inline] pub unsafe fn PreprocessCommand(hmodule: P0, ppwcarguments: &mut [windows_core::PWSTR], dwcurrentindex: u32, ptttags: Option<&mut [TAG_TYPE]>, dwminargs: u32, dwmaxargs: u32, pdwtagtype: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmodule.into_param().abi(), 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(std::ptr::null_mut()))) + PreprocessCommand(hmodule.param().abi(), 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(std::ptr::null_mut()))) } #[inline] pub unsafe fn PrintError(hmodule: P0, dwerrid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netsh.dll" "cdecl" fn PrintError(hmodule : super::super::Foundation:: HANDLE, dwerrid : u32) -> u32); - PrintError(hmodule.into_param().abi(), dwerrid) + PrintError(hmodule.param().abi(), dwerrid) } #[inline] pub unsafe fn PrintMessage(pwszformat: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netsh.dll" "cdecl" fn PrintMessage(pwszformat : windows_core::PCWSTR) -> u32); - PrintMessage(pwszformat.into_param().abi()) + PrintMessage(pwszformat.param().abi()) } #[inline] pub unsafe fn PrintMessageFromModule(hmodule: P0, dwmsgid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netsh.dll" "cdecl" fn PrintMessageFromModule(hmodule : super::super::Foundation:: HANDLE, dwmsgid : u32) -> u32); - PrintMessageFromModule(hmodule.into_param().abi(), dwmsgid) + PrintMessageFromModule(hmodule.param().abi(), dwmsgid) } #[inline] pub unsafe fn RegisterContext(pchildcontext: *const NS_CONTEXT_ATTRIBUTES) -> u32 { 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 a9ede534f1..0ec8abf1f0 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs @@ -16,31 +16,31 @@ pub unsafe fn NdfCreateConnectivityIncident(handle: *mut *mut core::ffi::c_void) #[inline] pub unsafe fn NdfCreateDNSIncident(hostname: P0, querytype: u16, handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), querytype, handle).ok() + NdfCreateDNSIncident(hostname.param().abi(), querytype, handle).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn NdfCreateGroupingIncident(cloudname: P0, groupname: P1, identity: P2, invitation: P3, addresses: Option<*const super::super::Networking::WinSock::SOCKET_ADDRESS_LIST>, appid: P4, handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreateGroupingIncident(cloudname : windows_core::PCWSTR, groupname : windows_core::PCWSTR, identity : windows_core::PCWSTR, invitation : windows_core::PCWSTR, addresses : *const super::super::Networking::WinSock:: SOCKET_ADDRESS_LIST, appid : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreateGroupingIncident(cloudname.into_param().abi(), groupname.into_param().abi(), identity.into_param().abi(), invitation.into_param().abi(), core::mem::transmute(addresses.unwrap_or(std::ptr::null())), appid.into_param().abi(), handle).ok() + NdfCreateGroupingIncident(cloudname.param().abi(), groupname.param().abi(), identity.param().abi(), invitation.param().abi(), core::mem::transmute(addresses.unwrap_or(std::ptr::null())), appid.param().abi(), handle).ok() } #[inline] pub unsafe fn NdfCreateIncident(helperclassname: P0, attributes: &[HELPER_ATTRIBUTE], handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreateIncident(helperclassname : windows_core::PCWSTR, celt : u32, attributes : *const HELPER_ATTRIBUTE, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreateIncident(helperclassname.into_param().abi(), attributes.len().try_into().unwrap(), core::mem::transmute(attributes.as_ptr()), handle).ok() + NdfCreateIncident(helperclassname.param().abi(), attributes.len().try_into().unwrap(), core::mem::transmute(attributes.as_ptr()), handle).ok() } #[inline] pub unsafe fn NdfCreateNetConnectionIncident(handle: *mut *mut core::ffi::c_void, id: windows_core::GUID) -> windows_core::Result<()> { @@ -50,50 +50,50 @@ pub unsafe fn NdfCreateNetConnectionIncident(handle: *mut *mut core::ffi::c_void #[inline] pub unsafe fn NdfCreatePnrpIncident(cloudname: P0, peername: P1, diagnosepublish: P2, appid: P3, handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreatePnrpIncident(cloudname : windows_core::PCWSTR, peername : windows_core::PCWSTR, diagnosepublish : super::super::Foundation:: BOOL, appid : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreatePnrpIncident(cloudname.into_param().abi(), peername.into_param().abi(), diagnosepublish.into_param().abi(), appid.into_param().abi(), handle).ok() + NdfCreatePnrpIncident(cloudname.param().abi(), peername.param().abi(), diagnosepublish.param().abi(), appid.param().abi(), handle).ok() } #[inline] pub unsafe fn NdfCreateSharingIncident(uncpath: P0, handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreateSharingIncident(uncpath : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreateSharingIncident(uncpath.into_param().abi(), handle).ok() + NdfCreateSharingIncident(uncpath.param().abi(), handle).ok() } #[inline] pub unsafe fn NdfCreateWebIncident(url: P0, handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreateWebIncident(url : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreateWebIncident(url.into_param().abi(), handle).ok() + NdfCreateWebIncident(url.param().abi(), handle).ok() } #[inline] pub unsafe fn NdfCreateWebIncidentEx(url: P0, usewinhttp: P1, modulename: P2, handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfCreateWebIncidentEx(url : windows_core::PCWSTR, usewinhttp : super::super::Foundation:: BOOL, modulename : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - NdfCreateWebIncidentEx(url.into_param().abi(), usewinhttp.into_param().abi(), modulename.into_param().abi(), handle).ok() + NdfCreateWebIncidentEx(url.param().abi(), usewinhttp.param().abi(), modulename.param().abi(), handle).ok() } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security"))] #[inline] pub unsafe fn NdfCreateWinSockIncident(sock: P0, host: P1, port: u16, appid: P2, userid: Option<*const super::super::Security::SID>, handle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(sock.into_param().abi(), host.into_param().abi(), port, appid.into_param().abi(), core::mem::transmute(userid.unwrap_or(std::ptr::null())), handle).ok() + NdfCreateWinSockIncident(sock.param().abi(), host.param().abi(), port, appid.param().abi(), core::mem::transmute(userid.unwrap_or(std::ptr::null())), 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<()> { @@ -103,10 +103,10 @@ pub unsafe fn NdfDiagnoseIncident(handle: *const core::ffi::c_void, rootcausecou #[inline] pub unsafe fn NdfExecuteDiagnosis(handle: *const core::ffi::c_void, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ndfapi.dll" "system" fn NdfExecuteDiagnosis(handle : *const core::ffi::c_void, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - NdfExecuteDiagnosis(handle, hwnd.into_param().abi()).ok() + NdfExecuteDiagnosis(handle, hwnd.param().abi()).ok() } #[inline] pub unsafe fn NdfGetTraceFile(handle: *const core::ffi::c_void) -> windows_core::Result { @@ -146,15 +146,15 @@ impl INetDiagHelper { } pub unsafe fn LowHealth(&self, pwszinstancedescription: P0, ppwszdescription: *mut windows_core::PWSTR, pdeferredtime: *mut i32, pstatus: *mut DIAGNOSIS_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LowHealth)(windows_core::Interface::as_raw(self), pwszinstancedescription.into_param().abi(), ppwszdescription, pdeferredtime, pstatus).ok() + (windows_core::Interface::vtable(self).LowHealth)(windows_core::Interface::as_raw(self), pwszinstancedescription.param().abi(), ppwszdescription, pdeferredtime, pstatus).ok() } pub unsafe fn HighUtilization(&self, pwszinstancedescription: P0, ppwszdescription: *mut windows_core::PWSTR, pdeferredtime: *mut i32, pstatus: *mut DIAGNOSIS_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HighUtilization)(windows_core::Interface::as_raw(self), pwszinstancedescription.into_param().abi(), ppwszdescription, pdeferredtime, pstatus).ok() + (windows_core::Interface::vtable(self).HighUtilization)(windows_core::Interface::as_raw(self), pwszinstancedescription.param().abi(), ppwszdescription, pdeferredtime, pstatus).ok() } pub unsafe fn GetLowerHypotheses(&self, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLowerHypotheses)(windows_core::Interface::as_raw(self), pcelt, pprghypotheses).ok() @@ -228,9 +228,9 @@ impl INetDiagHelperEx { } pub unsafe fn SetUtilities(&self, putilities: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUtilities)(windows_core::Interface::as_raw(self), putilities.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUtilities)(windows_core::Interface::as_raw(self), putilities.param().abi()).ok() } pub unsafe fn ReproduceFailure(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReproduceFailure)(windows_core::Interface::as_raw(self)).ok() 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 e28e90e7e5..7a263a56b9 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs @@ -54,16 +54,16 @@ impl ISdoCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, bstrname: P0, ppitem: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(ppitem)).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(ppitem)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Remove(&self, pitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), pitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), pitem.param().abi()).ok() } pub unsafe fn RemoveAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self)).ok() @@ -73,10 +73,10 @@ impl ISdoCollection { } pub unsafe fn IsNameUnique(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsNameUnique)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsNameUnique)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, name: *const windows_core::VARIANT) -> windows_core::Result { @@ -135,10 +135,10 @@ impl ISdoDictionaryOld { } pub unsafe fn GetAttributeID(&self, bstrattributename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttributeID)(windows_core::Interface::as_raw(self), bstrattributename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAttributeID)(windows_core::Interface::as_raw(self), bstrattributename.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -162,9 +162,9 @@ windows_core::imp::interface_hierarchy!(ISdoMachine, windows_core::IUnknown, sup impl ISdoMachine { pub unsafe fn Attach(&self, bstrcomputername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), bstrcomputername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), bstrcomputername.param().abi()).ok() } pub unsafe fn GetDictionarySDO(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -172,17 +172,17 @@ impl ISdoMachine { } pub unsafe fn GetServiceSDO(&self, edatastore: IASDATASTORE, bstrservicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceSDO)(windows_core::Interface::as_raw(self), edatastore, bstrservicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceSDO)(windows_core::Interface::as_raw(self), edatastore, bstrservicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetUserSDO(&self, edatastore: IASDATASTORE, bstrusername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserSDO)(windows_core::Interface::as_raw(self), edatastore, bstrusername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUserSDO)(windows_core::Interface::as_raw(self), edatastore, bstrusername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOSType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -227,9 +227,9 @@ windows_core::imp::interface_hierarchy!(ISdoMachine2, windows_core::IUnknown, su impl ISdoMachine2 { pub unsafe fn Attach(&self, bstrcomputername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Attach)(windows_core::Interface::as_raw(self), bstrcomputername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Attach)(windows_core::Interface::as_raw(self), bstrcomputername.param().abi()).ok() } pub unsafe fn GetDictionarySDO(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -237,17 +237,17 @@ impl ISdoMachine2 { } pub unsafe fn GetServiceSDO(&self, edatastore: IASDATASTORE, bstrservicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetServiceSDO)(windows_core::Interface::as_raw(self), edatastore, bstrservicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetServiceSDO)(windows_core::Interface::as_raw(self), edatastore, bstrservicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetUserSDO(&self, edatastore: IASDATASTORE, bstrusername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetUserSDO)(windows_core::Interface::as_raw(self), edatastore, bstrusername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetUserSDO)(windows_core::Interface::as_raw(self), edatastore, bstrusername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOSType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -271,27 +271,27 @@ impl ISdoMachine2 { } pub unsafe fn GetTemplatesSDO(&self, bstrservicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTemplatesSDO)(windows_core::Interface::as_raw(self), bstrservicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTemplatesSDO)(windows_core::Interface::as_raw(self), bstrservicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnableTemplates(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableTemplates)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SyncConfigAgainstTemplates(&self, bstrservicename: P0, ppconfigroot: *mut Option, pptemplatesroot: *mut Option, bforcedsync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncConfigAgainstTemplates)(windows_core::Interface::as_raw(self), bstrservicename.into_param().abi(), core::mem::transmute(ppconfigroot), core::mem::transmute(pptemplatesroot), bforcedsync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SyncConfigAgainstTemplates)(windows_core::Interface::as_raw(self), bstrservicename.param().abi(), core::mem::transmute(ppconfigroot), core::mem::transmute(pptemplatesroot), bforcedsync.param().abi()).ok() } pub unsafe fn ImportRemoteTemplates(&self, plocaltemplatesroot: P0, bstrremotemachinename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportRemoteTemplates)(windows_core::Interface::as_raw(self), plocaltemplatesroot.into_param().abi(), bstrremotemachinename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImportRemoteTemplates)(windows_core::Interface::as_raw(self), plocaltemplatesroot.param().abi(), bstrremotemachinename.param().abi()).ok() } pub unsafe fn Reload(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self)).ok() @@ -369,25 +369,25 @@ impl ITemplateSdo { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddToCollection(&self, bstrname: P0, pcollection: P1, ppitem: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToCollection)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), pcollection.into_param().abi(), core::mem::transmute(ppitem)).ok() + (windows_core::Interface::vtable(self).AddToCollection)(windows_core::Interface::as_raw(self), bstrname.param().abi(), pcollection.param().abi(), core::mem::transmute(ppitem)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddToSdo(&self, bstrname: P0, psdotarget: P1, ppitem: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToSdo)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), psdotarget.into_param().abi(), core::mem::transmute(ppitem)).ok() + (windows_core::Interface::vtable(self).AddToSdo)(windows_core::Interface::as_raw(self), bstrname.param().abi(), psdotarget.param().abi(), core::mem::transmute(ppitem)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddToSdoAsProperty(&self, psdotarget: P0, id: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToSdoAsProperty)(windows_core::Interface::as_raw(self), psdotarget.into_param().abi(), 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 9db19e3d52..d174bed28e 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs @@ -25,11 +25,11 @@ pub unsafe fn DrtCreateDerivedKeySecurityProvider(prootcert: *const super::super #[inline] pub unsafe fn DrtCreateDnsBootstrapResolver(port: u16, pwszaddress: P0) -> windows_core::Result<*mut DRT_BOOTSTRAP_PROVIDER> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - DrtCreateDnsBootstrapResolver(port, pwszaddress.into_param().abi(), &mut result__).map(|| result__) + DrtCreateDnsBootstrapResolver(port, pwszaddress.param().abi(), &mut result__).map(|| 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<()> { @@ -45,14 +45,14 @@ pub unsafe fn DrtCreateNullSecurityProvider() -> windows_core::Result<*mut DRT_S #[inline] pub unsafe fn DrtCreatePnrpBootstrapResolver(fpublish: P0, pwzpeername: P1, pwzcloudname: P2, pwzpublishingidentity: P3) -> windows_core::Result<*mut DRT_BOOTSTRAP_PROVIDER> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("drtprov.dll" "system" fn DrtCreatePnrpBootstrapResolver(fpublish : super::super::Foundation:: BOOL, pwzpeername : windows_core::PCWSTR, pwzcloudname : windows_core::PCWSTR, pwzpublishingidentity : windows_core::PCWSTR, ppresolver : *mut *mut DRT_BOOTSTRAP_PROVIDER) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DrtCreatePnrpBootstrapResolver(fpublish.into_param().abi(), pwzpeername.into_param().abi(), pwzcloudname.into_param().abi(), pwzpublishingidentity.into_param().abi(), &mut result__).map(|| result__) + DrtCreatePnrpBootstrapResolver(fpublish.param().abi(), pwzpeername.param().abi(), pwzcloudname.param().abi(), pwzpublishingidentity.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DrtDeleteDerivedKeySecurityProvider(psecurityprovider: *const DRT_SECURITY_PROVIDER) { @@ -133,10 +133,10 @@ pub unsafe fn DrtGetSearchResultSize(hsearchcontext: *const core::ffi::c_void) - #[inline] pub unsafe fn DrtOpen(psettings: *const DRT_SETTINGS, hevent: P0, pvcontext: Option<*const core::ffi::c_void>, phdrt: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(psettings, hevent.into_param().abi(), core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), phdrt).ok() + DrtOpen(psettings, hevent.param().abi(), core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), 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<()> { @@ -146,10 +146,10 @@ pub unsafe fn DrtRegisterKey(hdrt: *const core::ffi::c_void, pregistration: *con #[inline] pub unsafe fn DrtStartSearch(hdrt: *const core::ffi::c_void, pkey: *const DRT_DATA, pinfo: Option<*const DRT_SEARCH_INFO>, timeout: u32, hevent: P0, pvcontext: Option<*const core::ffi::c_void>, hsearchcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdrt, pkey, core::mem::transmute(pinfo.unwrap_or(std::ptr::null())), timeout, hevent.into_param().abi(), core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), hsearchcontext).ok() + DrtStartSearch(hdrt, pkey, core::mem::transmute(pinfo.unwrap_or(std::ptr::null())), timeout, hevent.param().abi(), core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), hsearchcontext).ok() } #[inline] pub unsafe fn DrtUnregisterKey(hkeyregistration: *const core::ffi::c_void) { @@ -164,52 +164,52 @@ pub unsafe fn DrtUpdateKey(hkeyregistration: *const core::ffi::c_void, pappdata: #[inline] pub unsafe fn PeerCollabAddContact(pwzcontactdata: P0, ppcontact: Option<*mut *mut PEER_CONTACT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabAddContact(pwzcontactdata : windows_core::PCWSTR, ppcontact : *mut *mut PEER_CONTACT) -> windows_core::HRESULT); - PeerCollabAddContact(pwzcontactdata.into_param().abi(), core::mem::transmute(ppcontact.unwrap_or(std::ptr::null_mut()))).ok() + PeerCollabAddContact(pwzcontactdata.param().abi(), core::mem::transmute(ppcontact.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerCollabAsyncInviteContact(pccontact: Option<*const PEER_CONTACT>, pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, hevent: P0, phinvitation: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), pcendpoint, pcinvitation, hevent.into_param().abi(), core::mem::transmute(phinvitation.unwrap_or(std::ptr::null_mut()))).ok() + PeerCollabAsyncInviteContact(core::mem::transmute(pccontact.unwrap_or(std::ptr::null())), pcendpoint, pcinvitation, hevent.param().abi(), core::mem::transmute(phinvitation.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerCollabAsyncInviteEndpoint(pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, hevent: P0, phinvitation: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(pcendpoint, pcinvitation, hevent.into_param().abi(), core::mem::transmute(phinvitation.unwrap_or(std::ptr::null_mut()))).ok() + PeerCollabAsyncInviteEndpoint(pcendpoint, pcinvitation, hevent.param().abi(), core::mem::transmute(phinvitation.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn PeerCollabCancelInvitation(hinvitation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabCancelInvitation(hinvitation : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - PeerCollabCancelInvitation(hinvitation.into_param().abi()).ok() + PeerCollabCancelInvitation(hinvitation.param().abi()).ok() } #[inline] pub unsafe fn PeerCollabCloseHandle(hinvitation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabCloseHandle(hinvitation : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - PeerCollabCloseHandle(hinvitation.into_param().abi()).ok() + PeerCollabCloseHandle(hinvitation.param().abi()).ok() } #[inline] pub unsafe fn PeerCollabDeleteContact(pwzpeername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabDeleteContact(pwzpeername : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerCollabDeleteContact(pwzpeername.into_param().abi()).ok() + PeerCollabDeleteContact(pwzpeername.param().abi()).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -257,11 +257,11 @@ pub unsafe fn PeerCollabEnumPeopleNearMe(phpeerenum: *mut *mut core::ffi::c_void #[inline] pub unsafe fn PeerCollabExportContact(pwzpeername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabExportContact(pwzpeername : windows_core::PCWSTR, ppwzcontactdata : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerCollabExportContact(pwzpeername.into_param().abi(), &mut result__).map(|| result__) + PeerCollabExportContact(pwzpeername.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -279,11 +279,11 @@ pub unsafe fn PeerCollabGetApplicationRegistrationInfo(papplicationid: *const wi #[inline] pub unsafe fn PeerCollabGetContact(pwzpeername: P0) -> windows_core::Result<*mut PEER_CONTACT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabGetContact(pwzpeername : windows_core::PCWSTR, ppcontact : *mut *mut PEER_CONTACT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerCollabGetContact(pwzpeername.into_param().abi(), &mut result__).map(|| result__) + PeerCollabGetContact(pwzpeername.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerCollabGetEndpointName() -> windows_core::Result { @@ -301,11 +301,11 @@ pub unsafe fn PeerCollabGetEventData(hpeerevent: *const core::ffi::c_void) -> wi #[inline] pub unsafe fn PeerCollabGetInvitationResponse(hinvitation: P0) -> windows_core::Result<*mut PEER_INVITATION_RESPONSE> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PeerCollabGetInvitationResponse(hinvitation.into_param().abi(), &mut result__).map(|| result__) + PeerCollabGetInvitationResponse(hinvitation.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -337,11 +337,11 @@ pub unsafe fn PeerCollabInviteEndpoint(pcendpoint: *const PEER_ENDPOINT, pcinvit #[inline] pub unsafe fn PeerCollabParseContact(pwzcontactdata: P0) -> windows_core::Result<*mut PEER_CONTACT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabParseContact(pwzcontactdata : windows_core::PCWSTR, ppcontact : *mut *mut PEER_CONTACT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerCollabParseContact(pwzcontactdata.into_param().abi(), &mut result__).map(|| result__) + PeerCollabParseContact(pwzcontactdata.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -364,18 +364,18 @@ pub unsafe fn PeerCollabRegisterApplication(pcapplication: *const PEER_APPLICATI #[inline] pub unsafe fn PeerCollabRegisterEvent(hevent: P0, peventregistrations: &[PEER_COLLAB_EVENT_REGISTRATION], phpeerevent: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hevent.into_param().abi(), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), phpeerevent).ok() + PeerCollabRegisterEvent(hevent.param().abi(), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), phpeerevent).ok() } #[inline] pub unsafe fn PeerCollabSetEndpointName(pwzendpointname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabSetEndpointName(pwzendpointname : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerCollabSetEndpointName(pwzendpointname.into_param().abi()).ok() + PeerCollabSetEndpointName(pwzendpointname.param().abi()).ok() } #[inline] pub unsafe fn PeerCollabSetObject(pcobject: *const PEER_OBJECT) -> windows_core::Result<()> { @@ -395,10 +395,10 @@ pub unsafe fn PeerCollabShutdown() -> windows_core::Result<()> { #[inline] pub unsafe fn PeerCollabSignin(hwndparent: P0, dwsigninoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCollabSignin(hwndparent : super::super::Foundation:: HWND, dwsigninoptions : u32) -> windows_core::HRESULT); - PeerCollabSignin(hwndparent.into_param().abi(), dwsigninoptions).ok() + PeerCollabSignin(hwndparent.param().abi(), dwsigninoptions).ok() } #[inline] pub unsafe fn PeerCollabSignout(dwsigninoptions: u32) -> windows_core::Result<()> { @@ -440,12 +440,12 @@ pub unsafe fn PeerCollabUpdateContact(pcontact: *const PEER_CONTACT) -> windows_ #[inline] pub unsafe fn PeerCreatePeerName(pwzidentity: P0, pwzclassifier: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerCreatePeerName(pwzidentity : windows_core::PCWSTR, pwzclassifier : windows_core::PCWSTR, ppwzpeername : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerCreatePeerName(pwzidentity.into_param().abi(), pwzclassifier.into_param().abi(), &mut result__).map(|| result__) + PeerCreatePeerName(pwzidentity.param().abi(), pwzclassifier.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -486,10 +486,10 @@ pub unsafe fn PeerDistClientCompleteContentInformation(hpeerdist: isize, hconten #[inline] pub unsafe fn PeerDistClientFlushContent(hpeerdist: isize, pcontenttag: *const PEERDIST_CONTENT_TAG, hcompletionport: P0, ulcompletionkey: usize, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hpeerdist, pcontenttag, hcompletionport.into_param().abi(), ulcompletionkey, lpoverlapped) + PeerDistClientFlushContent(hpeerdist, pcontenttag, hcompletionport.param().abi(), ulcompletionkey, 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 { @@ -499,10 +499,10 @@ pub unsafe fn PeerDistClientGetInformationByHandle(hpeerdist: isize, hcontenthan #[inline] pub unsafe fn PeerDistClientOpenContent(hpeerdist: isize, pcontenttag: *const PEERDIST_CONTENT_TAG, hcompletionport: P0, ulcompletionkey: usize, phcontenthandle: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hpeerdist, pcontenttag, hcompletionport.into_param().abi(), ulcompletionkey, phcontenthandle) + PeerDistClientOpenContent(hpeerdist, pcontenttag, hcompletionport.param().abi(), ulcompletionkey, phcontenthandle) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -514,10 +514,10 @@ pub unsafe fn PeerDistClientStreamRead(hpeerdist: isize, hcontenthandle: isize, #[inline] pub unsafe fn PeerDistGetOverlappedResult(lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lpoverlapped, lpnumberofbytestransferred, bwait.into_param().abi()) + PeerDistGetOverlappedResult(lpoverlapped, lpnumberofbytestransferred, bwait.param().abi()) } #[inline] pub unsafe fn PeerDistGetStatus(hpeerdist: isize, ppeerdiststatus: *mut PEERDIST_STATUS) -> u32 { @@ -533,19 +533,19 @@ pub unsafe fn PeerDistGetStatusEx(hpeerdist: isize, ppeerdiststatus: *mut PEERDI #[inline] pub unsafe fn PeerDistRegisterForStatusChangeNotification(hpeerdist: isize, hcompletionport: P0, ulcompletionkey: usize, lpoverlapped: *const super::super::System::IO::OVERLAPPED, ppeerdiststatus: *mut PEERDIST_STATUS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hpeerdist, hcompletionport.into_param().abi(), ulcompletionkey, lpoverlapped, ppeerdiststatus) + PeerDistRegisterForStatusChangeNotification(hpeerdist, hcompletionport.param().abi(), ulcompletionkey, lpoverlapped, ppeerdiststatus) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn PeerDistRegisterForStatusChangeNotificationEx(hpeerdist: isize, hcompletionport: P0, ulcompletionkey: usize, lpoverlapped: *const super::super::System::IO::OVERLAPPED, ppeerdiststatus: *mut PEERDIST_STATUS_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hpeerdist, hcompletionport.into_param().abi(), ulcompletionkey, lpoverlapped, ppeerdiststatus) + PeerDistRegisterForStatusChangeNotificationEx(hpeerdist, hcompletionport.param().abi(), ulcompletionkey, lpoverlapped, ppeerdiststatus) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -566,18 +566,18 @@ pub unsafe fn PeerDistServerCloseStreamHandle(hpeerdist: isize, hstream: isize) #[inline] pub unsafe fn PeerDistServerOpenContentInformation(hpeerdist: isize, pcontentidentifier: &[u8], ullcontentoffset: u64, cbcontentlength: u64, hcompletionport: P0, ulcompletionkey: usize, phcontentinfo: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), ullcontentoffset, cbcontentlength, hcompletionport.into_param().abi(), ulcompletionkey, phcontentinfo) + PeerDistServerOpenContentInformation(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), ullcontentoffset, cbcontentlength, hcompletionport.param().abi(), ulcompletionkey, phcontentinfo) } #[inline] pub unsafe fn PeerDistServerOpenContentInformationEx(hpeerdist: isize, pcontentidentifier: &[u8], ullcontentoffset: u64, cbcontentlength: u64, pretrievaloptions: *const PEERDIST_RETRIEVAL_OPTIONS, hcompletionport: P0, ulcompletionkey: usize, phcontentinfo: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), ullcontentoffset, cbcontentlength, pretrievaloptions, hcompletionport.into_param().abi(), ulcompletionkey, phcontentinfo) + PeerDistServerOpenContentInformationEx(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), ullcontentoffset, cbcontentlength, pretrievaloptions, hcompletionport.param().abi(), ulcompletionkey, phcontentinfo) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -594,10 +594,10 @@ pub unsafe fn PeerDistServerPublishCompleteStream(hpeerdist: isize, hstream: isi #[inline] pub unsafe fn PeerDistServerPublishStream(hpeerdist: isize, pcontentidentifier: &[u8], cbcontentlength: u64, ppublishoptions: Option<*const PEERDIST_PUBLICATION_OPTIONS>, hcompletionport: P0, ulcompletionkey: usize, phstream: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), cbcontentlength, core::mem::transmute(ppublishoptions.unwrap_or(std::ptr::null())), hcompletionport.into_param().abi(), ulcompletionkey, phstream) + PeerDistServerPublishStream(hpeerdist, pcontentidentifier.len().try_into().unwrap(), core::mem::transmute(pcontentidentifier.as_ptr()), cbcontentlength, core::mem::transmute(ppublishoptions.unwrap_or(std::ptr::null())), hcompletionport.param().abi(), ulcompletionkey, phstream) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -633,10 +633,10 @@ pub unsafe fn PeerEndEnumeration(hpeerenum: *const core::ffi::c_void) -> windows #[inline] pub unsafe fn PeerEnumGroups(pwzidentity: P0, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerEnumGroups(pwzidentity : windows_core::PCWSTR, phpeerenum : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerEnumGroups(pwzidentity.into_param().abi(), phpeerenum).ok() + PeerEnumGroups(pwzidentity.param().abi(), phpeerenum).ok() } #[inline] pub unsafe fn PeerEnumIdentities(phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -679,37 +679,37 @@ pub unsafe fn PeerGraphCloseDirectConnection(hgraph: *const core::ffi::c_void, u #[inline] pub unsafe fn PeerGraphConnect(hgraph: *const core::ffi::c_void, pwzpeerid: P0, paddress: *const PEER_ADDRESS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PeerGraphConnect(hgraph, pwzpeerid.into_param().abi(), paddress, &mut result__).map(|| result__) + PeerGraphConnect(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerGraphCreate(pgraphproperties: *const PEER_GRAPH_PROPERTIES, pwzdatabasename: P0, psecurityinterface: Option<*const PEER_SECURITY_INTERFACE>, phgraph: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pgraphproperties, pwzdatabasename.into_param().abi(), core::mem::transmute(psecurityinterface.unwrap_or(std::ptr::null())), phgraph).ok() + PeerGraphCreate(pgraphproperties, pwzdatabasename.param().abi(), core::mem::transmute(psecurityinterface.unwrap_or(std::ptr::null())), phgraph).ok() } #[inline] pub unsafe fn PeerGraphDelete(pwzgraphid: P0, pwzpeerid: P1, pwzdatabasename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphDelete(pwzgraphid : windows_core::PCWSTR, pwzpeerid : windows_core::PCWSTR, pwzdatabasename : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerGraphDelete(pwzgraphid.into_param().abi(), pwzpeerid.into_param().abi(), pwzdatabasename.into_param().abi()).ok() + PeerGraphDelete(pwzgraphid.param().abi(), pwzpeerid.param().abi(), pwzdatabasename.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphDeleteRecord(hgraph: *const core::ffi::c_void, precordid: *const windows_core::GUID, flocal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hgraph, precordid, flocal.into_param().abi()).ok() + PeerGraphDeleteRecord(hgraph, precordid, flocal.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphEndEnumeration(hpeerenum: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -724,26 +724,26 @@ pub unsafe fn PeerGraphEnumConnections(hgraph: *const core::ffi::c_void, dwflags #[inline] pub unsafe fn PeerGraphEnumNodes(hgraph: *const core::ffi::c_void, pwzpeerid: P0, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgraph, pwzpeerid.into_param().abi(), phpeerenum).ok() + PeerGraphEnumNodes(hgraph, pwzpeerid.param().abi(), phpeerenum).ok() } #[inline] pub unsafe fn PeerGraphEnumRecords(hgraph: *const core::ffi::c_void, precordtype: Option<*const windows_core::GUID>, pwzpeerid: P0, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgraph, core::mem::transmute(precordtype.unwrap_or(std::ptr::null())), pwzpeerid.into_param().abi(), phpeerenum).ok() + PeerGraphEnumRecords(hgraph, core::mem::transmute(precordtype.unwrap_or(std::ptr::null())), pwzpeerid.param().abi(), phpeerenum).ok() } #[inline] pub unsafe fn PeerGraphExportDatabase(hgraph: *const core::ffi::c_void, pwzfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgraph, pwzfilepath.into_param().abi()).ok() + PeerGraphExportDatabase(hgraph, pwzfilepath.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphFreeData(pvdata: *const core::ffi::c_void) { @@ -795,10 +795,10 @@ pub unsafe fn PeerGraphGetStatus(hgraph: *const core::ffi::c_void) -> windows_co #[inline] pub unsafe fn PeerGraphImportDatabase(hgraph: *const core::ffi::c_void, pwzfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgraph, pwzfilepath.into_param().abi()).ok() + PeerGraphImportDatabase(hgraph, pwzfilepath.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphListen(hgraph: *const core::ffi::c_void, dwscope: u32, dwscopeid: u32, wport: u16) -> windows_core::Result<()> { @@ -808,22 +808,22 @@ pub unsafe fn PeerGraphListen(hgraph: *const core::ffi::c_void, dwscope: u32, dw #[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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphOpen(pwzgraphid : windows_core::PCWSTR, pwzpeerid : windows_core::PCWSTR, pwzdatabasename : windows_core::PCWSTR, psecurityinterface : *const PEER_SECURITY_INTERFACE, crecordtypesyncprecedence : u32, precordtypesyncprecedence : *const windows_core::GUID, phgraph : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGraphOpen(pwzgraphid.into_param().abi(), pwzpeerid.into_param().abi(), pwzdatabasename.into_param().abi(), core::mem::transmute(psecurityinterface.unwrap_or(std::ptr::null())), precordtypesyncprecedence.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(precordtypesyncprecedence.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), phgraph).ok() + PeerGraphOpen(pwzgraphid.param().abi(), pwzpeerid.param().abi(), pwzdatabasename.param().abi(), core::mem::transmute(psecurityinterface.unwrap_or(std::ptr::null())), precordtypesyncprecedence.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(precordtypesyncprecedence.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), phgraph).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerGraphOpenDirectConnection(hgraph: *const core::ffi::c_void, pwzpeerid: P0, paddress: *const PEER_ADDRESS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PeerGraphOpenDirectConnection(hgraph, pwzpeerid.into_param().abi(), paddress, &mut result__).map(|| result__) + PeerGraphOpenDirectConnection(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerGraphPeerTimeToUniversalTime(hgraph: *const core::ffi::c_void, pftpeertime: *const super::super::Foundation::FILETIME) -> windows_core::Result { @@ -834,18 +834,18 @@ pub unsafe fn PeerGraphPeerTimeToUniversalTime(hgraph: *const core::ffi::c_void, #[inline] pub unsafe fn PeerGraphRegisterEvent(hgraph: *const core::ffi::c_void, hevent: P0, peventregistrations: &[PEER_GRAPH_EVENT_REGISTRATION], phpeerevent: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hgraph, hevent.into_param().abi(), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), phpeerevent).ok() + PeerGraphRegisterEvent(hgraph, hevent.param().abi(), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), phpeerevent).ok() } #[inline] pub unsafe fn PeerGraphSearchRecords(hgraph: *const core::ffi::c_void, pwzcriteria: P0, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgraph, pwzcriteria.into_param().abi(), phpeerenum).ok() + PeerGraphSearchRecords(hgraph, pwzcriteria.param().abi(), 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<()> { @@ -855,18 +855,18 @@ pub unsafe fn PeerGraphSendData(hgraph: *const core::ffi::c_void, ullconnectioni #[inline] pub unsafe fn PeerGraphSetNodeAttributes(hgraph: *const core::ffi::c_void, pwzattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgraph, pwzattributes.into_param().abi()).ok() + PeerGraphSetNodeAttributes(hgraph, pwzattributes.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphSetPresence(hgraph: *const core::ffi::c_void, fpresent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSetPresence(hgraph : *const core::ffi::c_void, fpresent : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - PeerGraphSetPresence(hgraph, fpresent.into_param().abi()).ok() + PeerGraphSetPresence(hgraph, fpresent.param().abi()).ok() } #[inline] pub unsafe fn PeerGraphSetProperties(hgraph: *const core::ffi::c_void, pgraphproperties: *const PEER_GRAPH_PROPERTIES) -> windows_core::Result<()> { @@ -940,11 +940,11 @@ pub unsafe fn PeerGroupCreate(pproperties: *const PEER_GROUP_PROPERTIES, phgroup #[inline] pub unsafe fn PeerGroupCreateInvitation(hgroup: *const core::ffi::c_void, pwzidentityinfo: P0, pftexpiration: Option<*const super::super::Foundation::FILETIME>, proles: Option<&[windows_core::GUID]>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PeerGroupCreateInvitation(hgroup, pwzidentityinfo.into_param().abi(), core::mem::transmute(pftexpiration.unwrap_or(std::ptr::null())), 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(|| result__) + PeerGroupCreateInvitation(hgroup, pwzidentityinfo.param().abi(), core::mem::transmute(pftexpiration.unwrap_or(std::ptr::null())), 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(|| result__) } #[inline] pub unsafe fn PeerGroupCreatePasswordInvitation(hgroup: *const core::ffi::c_void) -> windows_core::Result { @@ -955,11 +955,11 @@ pub unsafe fn PeerGroupCreatePasswordInvitation(hgroup: *const core::ffi::c_void #[inline] pub unsafe fn PeerGroupDelete(pwzidentity: P0, pwzgrouppeername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupDelete(pwzidentity : windows_core::PCWSTR, pwzgrouppeername : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerGroupDelete(pwzidentity.into_param().abi(), pwzgrouppeername.into_param().abi()).ok() + PeerGroupDelete(pwzidentity.param().abi(), pwzgrouppeername.param().abi()).ok() } #[inline] pub unsafe fn PeerGroupDeleteRecord(hgroup: *const core::ffi::c_void, precordid: *const windows_core::GUID) -> windows_core::Result<()> { @@ -974,10 +974,10 @@ pub unsafe fn PeerGroupEnumConnections(hgroup: *const core::ffi::c_void, dwflags #[inline] pub unsafe fn PeerGroupEnumMembers(hgroup: *const core::ffi::c_void, dwflags: u32, pwzidentity: P0, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgroup, dwflags, pwzidentity.into_param().abi(), phpeerenum).ok() + PeerGroupEnumMembers(hgroup, dwflags, pwzidentity.param().abi(), 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<()> { @@ -987,19 +987,19 @@ pub unsafe fn PeerGroupEnumRecords(hgroup: *const core::ffi::c_void, precordtype #[inline] pub unsafe fn PeerGroupExportConfig(hgroup: *const core::ffi::c_void, pwzpassword: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PeerGroupExportConfig(hgroup, pwzpassword.into_param().abi(), &mut result__).map(|| result__) + PeerGroupExportConfig(hgroup, pwzpassword.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerGroupExportDatabase(hgroup: *const core::ffi::c_void, pwzfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgroup, pwzfilepath.into_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> { @@ -1028,80 +1028,80 @@ pub unsafe fn PeerGroupGetStatus(hgroup: *const core::ffi::c_void) -> windows_co #[inline] pub unsafe fn PeerGroupImportConfig(pwzxml: P0, pwzpassword: P1, foverwrite: P2, ppwzidentity: *mut windows_core::PWSTR, ppwzgroup: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupImportConfig(pwzxml : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, foverwrite : super::super::Foundation:: BOOL, ppwzidentity : *mut windows_core::PWSTR, ppwzgroup : *mut windows_core::PWSTR) -> windows_core::HRESULT); - PeerGroupImportConfig(pwzxml.into_param().abi(), pwzpassword.into_param().abi(), foverwrite.into_param().abi(), ppwzidentity, ppwzgroup).ok() + PeerGroupImportConfig(pwzxml.param().abi(), pwzpassword.param().abi(), foverwrite.param().abi(), ppwzidentity, ppwzgroup).ok() } #[inline] pub unsafe fn PeerGroupImportDatabase(hgroup: *const core::ffi::c_void, pwzfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgroup, pwzfilepath.into_param().abi()).ok() + PeerGroupImportDatabase(hgroup, pwzfilepath.param().abi()).ok() } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn PeerGroupIssueCredentials(hgroup: *const core::ffi::c_void, pwzsubjectidentity: P0, pcredentialinfo: Option<*const PEER_CREDENTIAL_INFO>, dwflags: u32, ppwzinvitation: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgroup, pwzsubjectidentity.into_param().abi(), core::mem::transmute(pcredentialinfo.unwrap_or(std::ptr::null())), dwflags, core::mem::transmute(ppwzinvitation.unwrap_or(std::ptr::null_mut()))).ok() + PeerGroupIssueCredentials(hgroup, pwzsubjectidentity.param().abi(), core::mem::transmute(pcredentialinfo.unwrap_or(std::ptr::null())), dwflags, core::mem::transmute(ppwzinvitation.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn PeerGroupJoin(pwzidentity: P0, pwzinvitation: P1, pwzcloud: P2, phgroup: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupJoin(pwzidentity : windows_core::PCWSTR, pwzinvitation : windows_core::PCWSTR, pwzcloud : windows_core::PCWSTR, phgroup : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupJoin(pwzidentity.into_param().abi(), pwzinvitation.into_param().abi(), pwzcloud.into_param().abi(), phgroup).ok() + PeerGroupJoin(pwzidentity.param().abi(), pwzinvitation.param().abi(), pwzcloud.param().abi(), phgroup).ok() } #[inline] pub unsafe fn PeerGroupOpen(pwzidentity: P0, pwzgrouppeername: P1, pwzcloud: P2, phgroup: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupOpen(pwzidentity : windows_core::PCWSTR, pwzgrouppeername : windows_core::PCWSTR, pwzcloud : windows_core::PCWSTR, phgroup : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupOpen(pwzidentity.into_param().abi(), pwzgrouppeername.into_param().abi(), pwzcloud.into_param().abi(), phgroup).ok() + PeerGroupOpen(pwzidentity.param().abi(), pwzgrouppeername.param().abi(), pwzcloud.param().abi(), phgroup).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerGroupOpenDirectConnection(hgroup: *const core::ffi::c_void, pwzidentity: P0, paddress: *const PEER_ADDRESS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PeerGroupOpenDirectConnection(hgroup, pwzidentity.into_param().abi(), paddress, &mut result__).map(|| result__) + PeerGroupOpenDirectConnection(hgroup, pwzidentity.param().abi(), paddress, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn PeerGroupParseInvitation(pwzinvitation: P0) -> windows_core::Result<*mut PEER_INVITATION_INFO> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupParseInvitation(pwzinvitation : windows_core::PCWSTR, ppinvitationinfo : *mut *mut PEER_INVITATION_INFO) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerGroupParseInvitation(pwzinvitation.into_param().abi(), &mut result__).map(|| result__) + PeerGroupParseInvitation(pwzinvitation.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerGroupPasswordJoin(pwzidentity: P0, pwzinvitation: P1, pwzpassword: P2, pwzcloud: P3, phgroup: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerGroupPasswordJoin(pwzidentity : windows_core::PCWSTR, pwzinvitation : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, pwzcloud : windows_core::PCWSTR, phgroup : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerGroupPasswordJoin(pwzidentity.into_param().abi(), pwzinvitation.into_param().abi(), pwzpassword.into_param().abi(), pwzcloud.into_param().abi(), phgroup).ok() + PeerGroupPasswordJoin(pwzidentity.param().abi(), pwzinvitation.param().abi(), pwzpassword.param().abi(), pwzcloud.param().abi(), phgroup).ok() } #[inline] pub unsafe fn PeerGroupPeerTimeToUniversalTime(hgroup: *const core::ffi::c_void, pftpeertime: *const super::super::Foundation::FILETIME) -> windows_core::Result { @@ -1112,10 +1112,10 @@ pub unsafe fn PeerGroupPeerTimeToUniversalTime(hgroup: *const core::ffi::c_void, #[inline] pub unsafe fn PeerGroupRegisterEvent(hgroup: *const core::ffi::c_void, hevent: P0, peventregistrations: &[PEER_GROUP_EVENT_REGISTRATION], phpeerevent: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hgroup, hevent.into_param().abi(), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), phpeerevent).ok() + PeerGroupRegisterEvent(hgroup, hevent.param().abi(), peventregistrations.len().try_into().unwrap(), core::mem::transmute(peventregistrations.as_ptr()), phpeerevent).ok() } #[inline] pub unsafe fn PeerGroupResumePasswordAuthentication(hgroup: *const core::ffi::c_void, hpeereventhandle: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -1125,10 +1125,10 @@ pub unsafe fn PeerGroupResumePasswordAuthentication(hgroup: *const core::ffi::c_ #[inline] pub unsafe fn PeerGroupSearchRecords(hgroup: *const core::ffi::c_void, pwzcriteria: P0, phpeerenum: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hgroup, pwzcriteria.into_param().abi(), phpeerenum).ok() + PeerGroupSearchRecords(hgroup, pwzcriteria.param().abi(), 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<()> { @@ -1170,48 +1170,48 @@ pub unsafe fn PeerGroupUpdateRecord(hgroup: *const core::ffi::c_void, precord: * #[inline] pub unsafe fn PeerHostNameToPeerName(pwzhostname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerHostNameToPeerName(pwzhostname : windows_core::PCWSTR, ppwzpeername : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerHostNameToPeerName(pwzhostname.into_param().abi(), &mut result__).map(|| result__) + PeerHostNameToPeerName(pwzhostname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerIdentityCreate(pwzclassifier: P0, pwzfriendlyname: P1, hcryptprov: usize) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentityCreate(pwzclassifier : windows_core::PCWSTR, pwzfriendlyname : windows_core::PCWSTR, hcryptprov : usize, ppwzidentity : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerIdentityCreate(pwzclassifier.into_param().abi(), pwzfriendlyname.into_param().abi(), hcryptprov, &mut result__).map(|| result__) + PeerIdentityCreate(pwzclassifier.param().abi(), pwzfriendlyname.param().abi(), hcryptprov, &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerIdentityDelete(pwzidentity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentityDelete(pwzidentity : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerIdentityDelete(pwzidentity.into_param().abi()).ok() + PeerIdentityDelete(pwzidentity.param().abi()).ok() } #[inline] pub unsafe fn PeerIdentityExport(pwzidentity: P0, pwzpassword: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentityExport(pwzidentity : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, ppwzexportxml : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerIdentityExport(pwzidentity.into_param().abi(), pwzpassword.into_param().abi(), &mut result__).map(|| result__) + PeerIdentityExport(pwzidentity.param().abi(), pwzpassword.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerIdentityGetCryptKey(pwzidentity: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentityGetCryptKey(pwzidentity : windows_core::PCWSTR, phcryptprov : *mut usize) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerIdentityGetCryptKey(pwzidentity.into_param().abi(), &mut result__).map(|| result__) + PeerIdentityGetCryptKey(pwzidentity.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerIdentityGetDefault() -> windows_core::Result { @@ -1222,48 +1222,48 @@ pub unsafe fn PeerIdentityGetDefault() -> windows_core::Result(pwzidentity: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentityGetFriendlyName(pwzidentity : windows_core::PCWSTR, ppwzfriendlyname : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerIdentityGetFriendlyName(pwzidentity.into_param().abi(), &mut result__).map(|| result__) + PeerIdentityGetFriendlyName(pwzidentity.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerIdentityGetXML(pwzidentity: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentityGetXML(pwzidentity : windows_core::PCWSTR, ppwzidentityxml : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerIdentityGetXML(pwzidentity.into_param().abi(), &mut result__).map(|| result__) + PeerIdentityGetXML(pwzidentity.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerIdentityImport(pwzimportxml: P0, pwzpassword: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentityImport(pwzimportxml : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, ppwzidentity : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerIdentityImport(pwzimportxml.into_param().abi(), pwzpassword.into_param().abi(), &mut result__).map(|| result__) + PeerIdentityImport(pwzimportxml.param().abi(), pwzpassword.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerIdentitySetFriendlyName(pwzidentity: P0, pwzfriendlyname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerIdentitySetFriendlyName(pwzidentity : windows_core::PCWSTR, pwzfriendlyname : windows_core::PCWSTR) -> windows_core::HRESULT); - PeerIdentitySetFriendlyName(pwzidentity.into_param().abi(), pwzfriendlyname.into_param().abi()).ok() + PeerIdentitySetFriendlyName(pwzidentity.param().abi(), pwzfriendlyname.param().abi()).ok() } #[inline] pub unsafe fn PeerNameToPeerHostName(pwzpeername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerNameToPeerHostName(pwzpeername : windows_core::PCWSTR, ppwzhostname : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PeerNameToPeerHostName(pwzpeername.into_param().abi(), &mut result__).map(|| result__) + PeerNameToPeerHostName(pwzpeername.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PeerPnrpEndResolve(hresolve: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -1286,20 +1286,20 @@ pub unsafe fn PeerPnrpGetEndpoint(hresolve: *const core::ffi::c_void) -> windows #[inline] pub unsafe fn PeerPnrpRegister(pcwzpeername: P0, pregistrationinfo: Option<*const PEER_PNRP_REGISTRATION_INFO>, phregistration: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerPnrpRegister(pcwzpeername : windows_core::PCWSTR, pregistrationinfo : *const PEER_PNRP_REGISTRATION_INFO, phregistration : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - PeerPnrpRegister(pcwzpeername.into_param().abi(), core::mem::transmute(pregistrationinfo.unwrap_or(std::ptr::null())), phregistration).ok() + PeerPnrpRegister(pcwzpeername.param().abi(), core::mem::transmute(pregistrationinfo.unwrap_or(std::ptr::null())), phregistration).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn PeerPnrpResolve(pcwzpeername: P0, pcwzcloudname: P1, pcendpoints: *mut u32, ppendpoints: *mut *mut PEER_PNRP_ENDPOINT_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("p2p.dll" "system" fn PeerPnrpResolve(pcwzpeername : windows_core::PCWSTR, pcwzcloudname : windows_core::PCWSTR, pcendpoints : *mut u32, ppendpoints : *mut *mut PEER_PNRP_ENDPOINT_INFO) -> windows_core::HRESULT); - PeerPnrpResolve(pcwzpeername.into_param().abi(), pcwzcloudname.into_param().abi(), pcendpoints, ppendpoints).ok() + PeerPnrpResolve(pcwzpeername.param().abi(), pcwzcloudname.param().abi(), pcendpoints, ppendpoints).ok() } #[inline] pub unsafe fn PeerPnrpShutdown() -> windows_core::Result<()> { @@ -1309,12 +1309,12 @@ pub unsafe fn PeerPnrpShutdown() -> windows_core::Result<()> { #[inline] pub unsafe fn PeerPnrpStartResolve(pcwzpeername: P0, pcwzcloudname: P1, cmaxendpoints: u32, hevent: P2, phresolve: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pcwzcloudname.into_param().abi(), cmaxendpoints, hevent.into_param().abi(), phresolve).ok() + PeerPnrpStartResolve(pcwzpeername.param().abi(), pcwzcloudname.param().abi(), cmaxendpoints, hevent.param().abi(), phresolve).ok() } #[inline] pub unsafe fn PeerPnrpStartup(wversionrequested: u16) -> windows_core::Result<()> { 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 107bb02701..161d7b2bea 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -2,28 +2,28 @@ #[inline] pub unsafe fn QOSAddSocketToFlow(qoshandle: P0, socket: P1, destaddr: Option<*const super::super::Networking::WinSock::SOCKADDR>, traffictype: QOS_TRAFFIC_TYPE, flags: u32, flowid: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(qoshandle.into_param().abi(), socket.into_param().abi(), core::mem::transmute(destaddr.unwrap_or(std::ptr::null())), traffictype, flags, flowid) + QOSAddSocketToFlow(qoshandle.param().abi(), socket.param().abi(), core::mem::transmute(destaddr.unwrap_or(std::ptr::null())), traffictype, flags, flowid) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSCancel(qoshandle: P0, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(qoshandle.into_param().abi(), overlapped) + QOSCancel(qoshandle.param().abi(), overlapped) } #[inline] pub unsafe fn QOSCloseHandle(qoshandle: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("qwave.dll" "system" fn QOSCloseHandle(qoshandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - QOSCloseHandle(qoshandle.into_param().abi()) + QOSCloseHandle(qoshandle.param().abi()) } #[inline] pub unsafe fn QOSCreateHandle(version: *const QOS_VERSION, qoshandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { @@ -33,235 +33,235 @@ pub unsafe fn QOSCreateHandle(version: *const QOS_VERSION, qoshandle: *mut super #[inline] pub unsafe fn QOSEnumerateFlows(qoshandle: P0, size: *mut u32, buffer: *mut core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(qoshandle.into_param().abi(), size, buffer) + QOSEnumerateFlows(qoshandle.param().abi(), size, buffer) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSNotifyFlow(qoshandle: P0, flowid: u32, operation: QOS_NOTIFY_FLOW, size: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, flags: u32, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(qoshandle.into_param().abi(), flowid, operation, core::mem::transmute(size.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) + QOSNotifyFlow(qoshandle.param().abi(), flowid, operation, core::mem::transmute(size.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSQueryFlow(qoshandle: P0, flowid: u32, operation: QOS_QUERY_FLOW, size: *mut u32, buffer: *mut core::ffi::c_void, flags: u32, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(qoshandle.into_param().abi(), flowid, operation, size, buffer, flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) + QOSQueryFlow(qoshandle.param().abi(), flowid, operation, size, buffer, flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn QOSRemoveSocketFromFlow(qoshandle: P0, socket: P1, flowid: u32, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(qoshandle.into_param().abi(), socket.into_param().abi(), flowid, flags) + QOSRemoveSocketFromFlow(qoshandle.param().abi(), socket.param().abi(), flowid, flags) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn QOSSetFlow(qoshandle: P0, flowid: u32, operation: QOS_SET_FLOW, size: u32, buffer: *const core::ffi::c_void, flags: u32, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(qoshandle.into_param().abi(), flowid, operation, size, buffer, flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) + QOSSetFlow(qoshandle.param().abi(), flowid, operation, size, buffer, flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn QOSStartTrackingClient(qoshandle: P0, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(qoshandle.into_param().abi(), destaddr, flags) + QOSStartTrackingClient(qoshandle.param().abi(), destaddr, flags) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn QOSStopTrackingClient(qoshandle: P0, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(qoshandle.into_param().abi(), destaddr, flags) + QOSStopTrackingClient(qoshandle.param().abi(), destaddr, flags) } #[inline] pub unsafe fn TcAddFilter(flowhandle: P0, pgenericfilter: *const TC_GEN_FILTER, pfilterhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(flowhandle.into_param().abi(), pgenericfilter, pfilterhandle) + TcAddFilter(flowhandle.param().abi(), pgenericfilter, pfilterhandle) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn TcAddFlow(ifchandle: P0, clflowctx: P1, flags: u32, pgenericflow: *const TC_GEN_FLOW, pflowhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(ifchandle.into_param().abi(), clflowctx.into_param().abi(), flags, pgenericflow, pflowhandle) + TcAddFlow(ifchandle.param().abi(), clflowctx.param().abi(), flags, pgenericflow, pflowhandle) } #[inline] pub unsafe fn TcCloseInterface(ifchandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcCloseInterface(ifchandle : super::super::Foundation:: HANDLE) -> u32); - TcCloseInterface(ifchandle.into_param().abi()) + TcCloseInterface(ifchandle.param().abi()) } #[inline] pub unsafe fn TcDeleteFilter(filterhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcDeleteFilter(filterhandle : super::super::Foundation:: HANDLE) -> u32); - TcDeleteFilter(filterhandle.into_param().abi()) + TcDeleteFilter(filterhandle.param().abi()) } #[inline] pub unsafe fn TcDeleteFlow(flowhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcDeleteFlow(flowhandle : super::super::Foundation:: HANDLE) -> u32); - TcDeleteFlow(flowhandle.into_param().abi()) + TcDeleteFlow(flowhandle.param().abi()) } #[inline] pub unsafe fn TcDeregisterClient(clienthandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcDeregisterClient(clienthandle : super::super::Foundation:: HANDLE) -> u32); - TcDeregisterClient(clienthandle.into_param().abi()) + TcDeregisterClient(clienthandle.param().abi()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn TcEnumerateFlows(ifchandle: P0, penumhandle: *mut super::super::Foundation::HANDLE, pflowcount: *mut u32, pbufsize: *mut u32, buffer: *mut ENUMERATION_BUFFER) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ifchandle.into_param().abi(), penumhandle, pflowcount, pbufsize, buffer) + TcEnumerateFlows(ifchandle.param().abi(), penumhandle, pflowcount, pbufsize, buffer) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn TcEnumerateInterfaces(clienthandle: P0, pbuffersize: *mut u32, interfacebuffer: *mut TC_IFC_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcEnumerateInterfaces(clienthandle : super::super::Foundation:: HANDLE, pbuffersize : *mut u32, interfacebuffer : *mut TC_IFC_DESCRIPTOR) -> u32); - TcEnumerateInterfaces(clienthandle.into_param().abi(), pbuffersize, interfacebuffer) + TcEnumerateInterfaces(clienthandle.param().abi(), pbuffersize, interfacebuffer) } #[inline] pub unsafe fn TcGetFlowNameA(flowhandle: P0, pflowname: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcGetFlowNameA(flowhandle : super::super::Foundation:: HANDLE, strsize : u32, pflowname : windows_core::PSTR) -> u32); - TcGetFlowNameA(flowhandle.into_param().abi(), pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) + TcGetFlowNameA(flowhandle.param().abi(), pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) } #[inline] pub unsafe fn TcGetFlowNameW(flowhandle: P0, pflowname: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcGetFlowNameW(flowhandle : super::super::Foundation:: HANDLE, strsize : u32, pflowname : windows_core::PWSTR) -> u32); - TcGetFlowNameW(flowhandle.into_param().abi(), pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) + TcGetFlowNameW(flowhandle.param().abi(), pflowname.len().try_into().unwrap(), core::mem::transmute(pflowname.as_ptr())) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn TcModifyFlow(flowhandle: P0, pgenericflow: *const TC_GEN_FLOW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcModifyFlow(flowhandle : super::super::Foundation:: HANDLE, pgenericflow : *const TC_GEN_FLOW) -> u32); - TcModifyFlow(flowhandle.into_param().abi(), pgenericflow) + TcModifyFlow(flowhandle.param().abi(), pgenericflow) } #[inline] pub unsafe fn TcOpenInterfaceA(pinterfacename: P0, clienthandle: P1, clifcctx: P2, pifchandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), clienthandle.into_param().abi(), clifcctx.into_param().abi(), pifchandle) + TcOpenInterfaceA(pinterfacename.param().abi(), clienthandle.param().abi(), clifcctx.param().abi(), pifchandle) } #[inline] pub unsafe fn TcOpenInterfaceW(pinterfacename: P0, clienthandle: P1, clifcctx: P2, pifchandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), clienthandle.into_param().abi(), clifcctx.into_param().abi(), pifchandle) + TcOpenInterfaceW(pinterfacename.param().abi(), clienthandle.param().abi(), clifcctx.param().abi(), pifchandle) } #[inline] pub unsafe fn TcQueryFlowA(pflowname: P0, pguidparam: *const windows_core::GUID, pbuffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pguidparam, pbuffersize, buffer) + TcQueryFlowA(pflowname.param().abi(), pguidparam, pbuffersize, buffer) } #[inline] pub unsafe fn TcQueryFlowW(pflowname: P0, pguidparam: *const windows_core::GUID, pbuffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pguidparam, pbuffersize, buffer) + TcQueryFlowW(pflowname.param().abi(), pguidparam, pbuffersize, buffer) } #[inline] pub unsafe fn TcQueryInterface(ifchandle: P0, pguidparam: *const windows_core::GUID, notifychange: P1, pbuffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("traffic.dll" "system" fn TcQueryInterface(ifchandle : super::super::Foundation:: HANDLE, pguidparam : *const windows_core::GUID, notifychange : super::super::Foundation:: BOOLEAN, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); - TcQueryInterface(ifchandle.into_param().abi(), pguidparam, notifychange.into_param().abi(), pbuffersize, buffer) + TcQueryInterface(ifchandle.param().abi(), pguidparam, notifychange.param().abi(), pbuffersize, buffer) } #[inline] pub unsafe fn TcRegisterClient(tciversion: u32, clregctx: P0, clienthandlerlist: *const TCI_CLIENT_FUNC_LIST, pclienthandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tciversion, clregctx.into_param().abi(), clienthandlerlist, pclienthandle) + TcRegisterClient(tciversion, clregctx.param().abi(), clienthandlerlist, pclienthandle) } #[inline] pub unsafe fn TcSetFlowA(pflowname: P0, pguidparam: *const windows_core::GUID, buffersize: u32, buffer: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pguidparam, buffersize, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pguidparam, buffersize, buffer) + TcSetFlowW(pflowname.param().abi(), pguidparam, buffersize, buffer) } #[inline] pub unsafe fn TcSetInterface(ifchandle: P0, pguidparam: *const windows_core::GUID, buffersize: u32, buffer: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ifchandle.into_param().abi(), pguidparam, buffersize, buffer) + TcSetInterface(ifchandle.param().abi(), pguidparam, buffersize, buffer) } pub const ABLE_TO_RECV_RSVP: u32 = 50002u32; pub const ADM_CTRL_FAILED: u32 = 3u32; 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 e7799437e2..816130edf5 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs @@ -1,26 +1,26 @@ #[inline] pub unsafe fn MgmAddGroupMembershipEntry(hprotocol: P0, dwsourceaddr: u32, dwsourcemask: u32, dwgroupaddr: u32, dwgroupmask: u32, dwifindex: u32, dwifnexthopipaddr: u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprotocol.into_param().abi(), dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) + MgmAddGroupMembershipEntry(hprotocol.param().abi(), dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) } #[inline] pub unsafe fn MgmDeRegisterMProtocol(hprotocol: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn MgmDeRegisterMProtocol(hprotocol : super::super::Foundation:: HANDLE) -> u32); - MgmDeRegisterMProtocol(hprotocol.into_param().abi()) + MgmDeRegisterMProtocol(hprotocol.param().abi()) } #[inline] pub unsafe fn MgmDeleteGroupMembershipEntry(hprotocol: P0, dwsourceaddr: u32, dwsourcemask: u32, dwgroupaddr: u32, dwgroupmask: u32, dwifindex: u32, dwifnexthopipaddr: u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprotocol.into_param().abi(), dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) + MgmDeleteGroupMembershipEntry(hprotocol.param().abi(), dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) } #[inline] pub unsafe fn MgmGetFirstMfe(pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32) -> u32 { @@ -64,26 +64,26 @@ pub unsafe fn MgmGetProtocolOnInterface(dwifindex: u32, dwifnexthopaddr: u32, pd #[inline] pub unsafe fn MgmGroupEnumerationEnd(henum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn MgmGroupEnumerationEnd(henum : super::super::Foundation:: HANDLE) -> u32); - MgmGroupEnumerationEnd(henum.into_param().abi()) + MgmGroupEnumerationEnd(henum.param().abi()) } #[inline] pub unsafe fn MgmGroupEnumerationGetNext(henum: P0, pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn MgmGroupEnumerationGetNext(henum : super::super::Foundation:: HANDLE, pdwbuffersize : *mut u32, pbbuffer : *mut u8, pdwnumentries : *mut u32) -> u32); - MgmGroupEnumerationGetNext(henum.into_param().abi(), pdwbuffersize, pbbuffer, pdwnumentries) + MgmGroupEnumerationGetNext(henum.param().abi(), pdwbuffersize, pbbuffer, pdwnumentries) } #[inline] pub unsafe fn MgmGroupEnumerationStart(hprotocol: P0, metenumtype: MGM_ENUM_TYPES, phenumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprotocol.into_param().abi(), metenumtype, phenumhandle) + MgmGroupEnumerationStart(hprotocol.param().abi(), metenumtype, phenumhandle) } #[inline] pub unsafe fn MgmRegisterMProtocol(prpiinfo: *mut ROUTING_PROTOCOL_CONFIG, dwprotocolid: u32, dwcomponentid: u32, phprotocol: *mut super::super::Foundation::HANDLE) -> u32 { @@ -93,18 +93,18 @@ pub unsafe fn MgmRegisterMProtocol(prpiinfo: *mut ROUTING_PROTOCOL_CONFIG, dwpro #[inline] pub unsafe fn MgmReleaseInterfaceOwnership(hprotocol: P0, dwifindex: u32, dwifnexthopaddr: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn MgmReleaseInterfaceOwnership(hprotocol : super::super::Foundation:: HANDLE, dwifindex : u32, dwifnexthopaddr : u32) -> u32); - MgmReleaseInterfaceOwnership(hprotocol.into_param().abi(), dwifindex, dwifnexthopaddr) + MgmReleaseInterfaceOwnership(hprotocol.param().abi(), dwifindex, dwifnexthopaddr) } #[inline] pub unsafe fn MgmTakeInterfaceOwnership(hprotocol: P0, dwifindex: u32, dwifnexthopaddr: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn MgmTakeInterfaceOwnership(hprotocol : super::super::Foundation:: HANDLE, dwifindex : u32, dwifnexthopaddr : u32) -> u32); - MgmTakeInterfaceOwnership(hprotocol.into_param().abi(), dwifindex, dwifnexthopaddr) + MgmTakeInterfaceOwnership(hprotocol.param().abi(), dwifindex, dwifnexthopaddr) } #[inline] pub unsafe fn MprAdminBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { @@ -114,10 +114,10 @@ pub unsafe fn MprAdminBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { #[inline] pub unsafe fn MprAdminConnectionClearStats(hrasserver: isize, hrasconnection: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionClearStats(hrasserver : isize, hrasconnection : super::super::Foundation:: HANDLE) -> u32); - MprAdminConnectionClearStats(hrasserver, hrasconnection.into_param().abi()) + MprAdminConnectionClearStats(hrasserver, hrasconnection.param().abi()) } #[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 { @@ -132,36 +132,36 @@ pub unsafe fn MprAdminConnectionEnumEx(hrasserver: isize, pobjectheader: *const #[inline] pub unsafe fn MprAdminConnectionGetInfo(hrasserver: isize, dwlevel: u32, hrasconnection: P0, lplpbbuffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionGetInfo(hrasserver : isize, dwlevel : u32, hrasconnection : super::super::Foundation:: HANDLE, lplpbbuffer : *mut *mut u8) -> u32); - MprAdminConnectionGetInfo(hrasserver, dwlevel, hrasconnection.into_param().abi(), lplpbbuffer) + MprAdminConnectionGetInfo(hrasserver, dwlevel, hrasconnection.param().abi(), lplpbbuffer) } #[inline] pub unsafe fn MprAdminConnectionGetInfoEx(hrasserver: isize, hrasconnection: P0, prasconnection: *mut RAS_CONNECTION_EX) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionGetInfoEx(hrasserver : isize, hrasconnection : super::super::Foundation:: HANDLE, prasconnection : *mut RAS_CONNECTION_EX) -> u32); - MprAdminConnectionGetInfoEx(hrasserver, hrasconnection.into_param().abi(), prasconnection) + MprAdminConnectionGetInfoEx(hrasserver, hrasconnection.param().abi(), prasconnection) } #[inline] pub unsafe fn MprAdminConnectionRemoveQuarantine(hrasserver: P0, hrasconnection: P1, fisipaddress: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hrasserver.into_param().abi(), hrasconnection.into_param().abi(), fisipaddress.into_param().abi()) + MprAdminConnectionRemoveQuarantine(hrasserver.param().abi(), hrasconnection.param().abi(), fisipaddress.param().abi()) } #[inline] pub unsafe fn MprAdminDeregisterConnectionNotification(hmprserver: isize, heventnotification: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminDeregisterConnectionNotification(hmprserver : isize, heventnotification : super::super::Foundation:: HANDLE) -> u32); - MprAdminDeregisterConnectionNotification(hmprserver, heventnotification.into_param().abi()) + MprAdminDeregisterConnectionNotification(hmprserver, heventnotification.param().abi()) } #[inline] pub unsafe fn MprAdminDeviceEnum(hmprserver: isize, dwlevel: u32, lplpbbuffer: *mut *mut u8, lpdwtotalentries: *mut u32) -> u32 { @@ -171,12 +171,12 @@ pub unsafe fn MprAdminDeviceEnum(hmprserver: isize, dwlevel: u32, lplpbbuffer: * #[inline] pub unsafe fn MprAdminEstablishDomainRasServer(pszdomain: P0, pszmachine: P1, benable: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminEstablishDomainRasServer(pszdomain : windows_core::PCWSTR, pszmachine : windows_core::PCWSTR, benable : super::super::Foundation:: BOOL) -> u32); - MprAdminEstablishDomainRasServer(pszdomain.into_param().abi(), pszmachine.into_param().abi(), benable.into_param().abi()) + MprAdminEstablishDomainRasServer(pszdomain.param().abi(), pszmachine.param().abi(), benable.param().abi()) } #[inline] pub unsafe fn MprAdminGetErrorString(dwerror: u32, lplpwserrorstring: *mut windows_core::PWSTR) -> u32 { @@ -186,21 +186,21 @@ pub unsafe fn MprAdminGetErrorString(dwerror: u32, lplpwserrorstring: *mut windo #[inline] pub unsafe fn MprAdminGetPDCServer(lpszdomain: P0, lpszserver: P1, lpszpdcserver: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminGetPDCServer(lpszdomain : windows_core::PCWSTR, lpszserver : windows_core::PCWSTR, lpszpdcserver : windows_core::PWSTR) -> u32); - MprAdminGetPDCServer(lpszdomain.into_param().abi(), lpszserver.into_param().abi(), core::mem::transmute(lpszpdcserver)) + MprAdminGetPDCServer(lpszdomain.param().abi(), lpszserver.param().abi(), core::mem::transmute(lpszpdcserver)) } #[inline] pub unsafe fn MprAdminInterfaceConnect(hmprserver: isize, hinterface: P0, hevent: P1, fsynchronous: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hmprserver, hinterface.into_param().abi(), hevent.into_param().abi(), fsynchronous.into_param().abi()) + MprAdminInterfaceConnect(hmprserver, hinterface.param().abi(), hevent.param().abi(), fsynchronous.param().abi()) } #[inline] pub unsafe fn MprAdminInterfaceCreate(hmprserver: isize, dwlevel: u32, lpbbuffer: *const u8, phinterface: *mut super::super::Foundation::HANDLE) -> u32 { @@ -210,34 +210,34 @@ pub unsafe fn MprAdminInterfaceCreate(hmprserver: isize, dwlevel: u32, lpbbuffer #[inline] pub unsafe fn MprAdminInterfaceDelete(hmprserver: isize, hinterface: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceDelete(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceDelete(hmprserver, hinterface.into_param().abi()) + MprAdminInterfaceDelete(hmprserver, hinterface.param().abi()) } #[inline] pub unsafe fn MprAdminInterfaceDeviceGetInfo(hmprserver: isize, hinterface: P0, dwindex: u32, dwlevel: u32, lplpbuffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmprserver, hinterface.into_param().abi(), dwindex, dwlevel, lplpbuffer) + MprAdminInterfaceDeviceGetInfo(hmprserver, hinterface.param().abi(), dwindex, dwlevel, lplpbuffer) } #[inline] pub unsafe fn MprAdminInterfaceDeviceSetInfo(hmprserver: isize, hinterface: P0, dwindex: u32, dwlevel: u32, lpbbuffer: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceDeviceSetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwindex : u32, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminInterfaceDeviceSetInfo(hmprserver, hinterface.into_param().abi(), dwindex, dwlevel, lpbbuffer) + MprAdminInterfaceDeviceSetInfo(hmprserver, hinterface.param().abi(), dwindex, dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprAdminInterfaceDisconnect(hmprserver: isize, hinterface: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceDisconnect(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceDisconnect(hmprserver, hinterface.into_param().abi()) + MprAdminInterfaceDisconnect(hmprserver, hinterface.param().abi()) } #[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 { @@ -247,164 +247,164 @@ pub unsafe fn MprAdminInterfaceEnum(hmprserver: isize, dwlevel: u32, lplpbbuffer #[inline] pub unsafe fn MprAdminInterfaceGetCredentials(lpwsserver: P0, lpwsinterfacename: P1, lpwsusername: windows_core::PWSTR, lpwspassword: windows_core::PWSTR, lpwsdomainname: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetCredentials(lpwsserver : windows_core::PCWSTR, lpwsinterfacename : windows_core::PCWSTR, lpwsusername : windows_core::PWSTR, lpwspassword : windows_core::PWSTR, lpwsdomainname : windows_core::PWSTR) -> u32); - MprAdminInterfaceGetCredentials(lpwsserver.into_param().abi(), lpwsinterfacename.into_param().abi(), core::mem::transmute(lpwsusername), core::mem::transmute(lpwspassword), core::mem::transmute(lpwsdomainname)) + MprAdminInterfaceGetCredentials(lpwsserver.param().abi(), lpwsinterfacename.param().abi(), core::mem::transmute(lpwsusername), core::mem::transmute(lpwspassword), core::mem::transmute(lpwsdomainname)) } #[inline] pub unsafe fn MprAdminInterfaceGetCredentialsEx(hmprserver: isize, hinterface: P0, dwlevel: u32, lplpbbuffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetCredentialsEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbbuffer : *mut *mut u8) -> u32); - MprAdminInterfaceGetCredentialsEx(hmprserver, hinterface.into_param().abi(), dwlevel, lplpbbuffer) + MprAdminInterfaceGetCredentialsEx(hmprserver, hinterface.param().abi(), dwlevel, lplpbbuffer) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprAdminInterfaceGetCustomInfoEx(hmprserver: isize, hinterface: P0, pcustominfo: *mut MPR_IF_CUSTOMINFOEX2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetCustomInfoEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, pcustominfo : *mut MPR_IF_CUSTOMINFOEX2) -> u32); - MprAdminInterfaceGetCustomInfoEx(hmprserver, hinterface.into_param().abi(), pcustominfo) + MprAdminInterfaceGetCustomInfoEx(hmprserver, hinterface.param().abi(), pcustominfo) } #[inline] pub unsafe fn MprAdminInterfaceGetHandle(hmprserver: isize, lpwsinterfacename: P0, phinterface: *mut super::super::Foundation::HANDLE, fincludeclientinterfaces: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmprserver, lpwsinterfacename.into_param().abi(), phinterface, fincludeclientinterfaces.into_param().abi()) + MprAdminInterfaceGetHandle(hmprserver, lpwsinterfacename.param().abi(), phinterface, fincludeclientinterfaces.param().abi()) } #[inline] pub unsafe fn MprAdminInterfaceGetInfo(hmprserver: isize, hinterface: P0, dwlevel: u32, lplpbbuffer: *const *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbbuffer : *const *const u8) -> u32); - MprAdminInterfaceGetInfo(hmprserver, hinterface.into_param().abi(), dwlevel, lplpbbuffer) + MprAdminInterfaceGetInfo(hmprserver, hinterface.param().abi(), dwlevel, lplpbbuffer) } #[inline] pub unsafe fn MprAdminInterfaceQueryUpdateResult(hmprserver: isize, hinterface: P0, dwprotocolid: u32, lpdwupdateresult: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceQueryUpdateResult(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwprotocolid : u32, lpdwupdateresult : *mut u32) -> u32); - MprAdminInterfaceQueryUpdateResult(hmprserver, hinterface.into_param().abi(), dwprotocolid, lpdwupdateresult) + MprAdminInterfaceQueryUpdateResult(hmprserver, hinterface.param().abi(), dwprotocolid, lpdwupdateresult) } #[inline] pub unsafe fn MprAdminInterfaceSetCredentials(lpwsserver: P0, lpwsinterfacename: P1, lpwsusername: P2, lpwsdomainname: P3, lpwspassword: P4) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceSetCredentials(lpwsserver : windows_core::PCWSTR, lpwsinterfacename : windows_core::PCWSTR, lpwsusername : windows_core::PCWSTR, lpwsdomainname : windows_core::PCWSTR, lpwspassword : windows_core::PCWSTR) -> u32); - MprAdminInterfaceSetCredentials(lpwsserver.into_param().abi(), lpwsinterfacename.into_param().abi(), lpwsusername.into_param().abi(), lpwsdomainname.into_param().abi(), lpwspassword.into_param().abi()) + MprAdminInterfaceSetCredentials(lpwsserver.param().abi(), lpwsinterfacename.param().abi(), lpwsusername.param().abi(), lpwsdomainname.param().abi(), lpwspassword.param().abi()) } #[inline] pub unsafe fn MprAdminInterfaceSetCredentialsEx(hmprserver: isize, hinterface: P0, dwlevel: u32, lpbbuffer: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceSetCredentialsEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminInterfaceSetCredentialsEx(hmprserver, hinterface.into_param().abi(), dwlevel, lpbbuffer) + MprAdminInterfaceSetCredentialsEx(hmprserver, hinterface.param().abi(), dwlevel, lpbbuffer) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprAdminInterfaceSetCustomInfoEx(hmprserver: isize, hinterface: P0, pcustominfo: *const MPR_IF_CUSTOMINFOEX2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceSetCustomInfoEx(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, pcustominfo : *const MPR_IF_CUSTOMINFOEX2) -> u32); - MprAdminInterfaceSetCustomInfoEx(hmprserver, hinterface.into_param().abi(), pcustominfo) + MprAdminInterfaceSetCustomInfoEx(hmprserver, hinterface.param().abi(), pcustominfo) } #[inline] pub unsafe fn MprAdminInterfaceSetInfo(hmprserver: isize, hinterface: P0, dwlevel: u32, lpbbuffer: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceSetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwlevel : u32, lpbbuffer : *const u8) -> u32); - MprAdminInterfaceSetInfo(hmprserver, hinterface.into_param().abi(), dwlevel, lpbbuffer) + MprAdminInterfaceSetInfo(hmprserver, hinterface.param().abi(), dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprAdminInterfaceTransportAdd(hmprserver: isize, hinterface: P0, dwtransportid: u32, pinterfaceinfo: *const u8, dwinterfaceinfosize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceTransportAdd(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwtransportid : u32, pinterfaceinfo : *const u8, dwinterfaceinfosize : u32) -> u32); - MprAdminInterfaceTransportAdd(hmprserver, hinterface.into_param().abi(), dwtransportid, pinterfaceinfo, dwinterfaceinfosize) + MprAdminInterfaceTransportAdd(hmprserver, hinterface.param().abi(), dwtransportid, pinterfaceinfo, dwinterfaceinfosize) } #[inline] pub unsafe fn MprAdminInterfaceTransportGetInfo(hmprserver: isize, hinterface: P0, dwtransportid: u32, ppinterfaceinfo: *mut *mut u8, lpdwinterfaceinfosize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmprserver, hinterface.into_param().abi(), dwtransportid, ppinterfaceinfo, core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(std::ptr::null_mut()))) + MprAdminInterfaceTransportGetInfo(hmprserver, hinterface.param().abi(), dwtransportid, ppinterfaceinfo, core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MprAdminInterfaceTransportRemove(hmprserver: isize, hinterface: P0, dwtransportid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceTransportRemove(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwtransportid : u32) -> u32); - MprAdminInterfaceTransportRemove(hmprserver, hinterface.into_param().abi(), dwtransportid) + MprAdminInterfaceTransportRemove(hmprserver, hinterface.param().abi(), dwtransportid) } #[inline] pub unsafe fn MprAdminInterfaceTransportSetInfo(hmprserver: isize, hinterface: P0, dwtransportid: u32, pinterfaceinfo: *const u8, dwinterfaceinfosize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceTransportSetInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwtransportid : u32, pinterfaceinfo : *const u8, dwinterfaceinfosize : u32) -> u32); - MprAdminInterfaceTransportSetInfo(hmprserver, hinterface.into_param().abi(), dwtransportid, pinterfaceinfo, dwinterfaceinfosize) + MprAdminInterfaceTransportSetInfo(hmprserver, hinterface.param().abi(), dwtransportid, pinterfaceinfo, dwinterfaceinfosize) } #[inline] pub unsafe fn MprAdminInterfaceUpdatePhonebookInfo(hmprserver: isize, hinterface: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceUpdatePhonebookInfo(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceUpdatePhonebookInfo(hmprserver, hinterface.into_param().abi()) + MprAdminInterfaceUpdatePhonebookInfo(hmprserver, hinterface.param().abi()) } #[inline] pub unsafe fn MprAdminInterfaceUpdateRoutes(hmprserver: isize, hinterface: P0, dwprotocolid: u32, hevent: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceUpdateRoutes(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, dwprotocolid : u32, hevent : super::super::Foundation:: HANDLE) -> u32); - MprAdminInterfaceUpdateRoutes(hmprserver, hinterface.into_param().abi(), dwprotocolid, hevent.into_param().abi()) + MprAdminInterfaceUpdateRoutes(hmprserver, hinterface.param().abi(), dwprotocolid, hevent.param().abi()) } #[inline] pub unsafe fn MprAdminIsDomainRasServer(pszdomain: P0, pszmachine: P1, pbisrasserver: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminIsDomainRasServer(pszdomain : windows_core::PCWSTR, pszmachine : windows_core::PCWSTR, pbisrasserver : *mut super::super::Foundation:: BOOL) -> u32); - MprAdminIsDomainRasServer(pszdomain.into_param().abi(), pszmachine.into_param().abi(), pbisrasserver) + MprAdminIsDomainRasServer(pszdomain.param().abi(), pszmachine.param().abi(), pbisrasserver) } #[inline] pub unsafe fn MprAdminIsServiceInitialized(lpwsservername: P0, fisserviceinitialized: *const super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), fisserviceinitialized) + MprAdminIsServiceInitialized(lpwsservername.param().abi(), fisserviceinitialized) } #[inline] pub unsafe fn MprAdminIsServiceRunning(lpwsservername: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminIsServiceRunning(lpwsservername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - MprAdminIsServiceRunning(lpwsservername.into_param().abi()) + MprAdminIsServiceRunning(lpwsservername.param().abi()) } #[inline] pub unsafe fn MprAdminMIBBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { @@ -444,10 +444,10 @@ pub unsafe fn MprAdminMIBEntrySet(hmibserver: isize, dwprotocolid: u32, dwroutin #[inline] pub unsafe fn MprAdminMIBServerConnect(lpwsservername: P0, phmibserver: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminMIBServerConnect(lpwsservername : windows_core::PCWSTR, phmibserver : *mut isize) -> u32); - MprAdminMIBServerConnect(lpwsservername.into_param().abi(), phmibserver) + MprAdminMIBServerConnect(lpwsservername.param().abi(), phmibserver) } #[inline] pub unsafe fn MprAdminMIBServerDisconnect(hmibserver: isize) { @@ -457,67 +457,67 @@ pub unsafe fn MprAdminMIBServerDisconnect(hmibserver: isize) { #[inline] pub unsafe fn MprAdminPortClearStats(hrasserver: isize, hport: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortClearStats(hrasserver : isize, hport : super::super::Foundation:: HANDLE) -> u32); - MprAdminPortClearStats(hrasserver, hport.into_param().abi()) + MprAdminPortClearStats(hrasserver, hport.param().abi()) } #[inline] pub unsafe fn MprAdminPortDisconnect(hrasserver: isize, hport: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortDisconnect(hrasserver : isize, hport : super::super::Foundation:: HANDLE) -> u32); - MprAdminPortDisconnect(hrasserver, hport.into_param().abi()) + MprAdminPortDisconnect(hrasserver, hport.param().abi()) } #[inline] pub unsafe fn MprAdminPortEnum(hrasserver: isize, dwlevel: u32, hrasconnection: P0, lplpbbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*const u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrasserver, dwlevel, hrasconnection.into_param().abi(), lplpbbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null()))) + MprAdminPortEnum(hrasserver, dwlevel, hrasconnection.param().abi(), lplpbbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn MprAdminPortGetInfo(hrasserver: isize, dwlevel: u32, hport: P0, lplpbbuffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortGetInfo(hrasserver : isize, dwlevel : u32, hport : super::super::Foundation:: HANDLE, lplpbbuffer : *mut *mut u8) -> u32); - MprAdminPortGetInfo(hrasserver, dwlevel, hport.into_param().abi(), lplpbbuffer) + MprAdminPortGetInfo(hrasserver, dwlevel, hport.param().abi(), lplpbbuffer) } #[inline] pub unsafe fn MprAdminPortReset(hrasserver: isize, hport: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminPortReset(hrasserver : isize, hport : super::super::Foundation:: HANDLE) -> u32); - MprAdminPortReset(hrasserver, hport.into_param().abi()) + MprAdminPortReset(hrasserver, hport.param().abi()) } #[inline] pub unsafe fn MprAdminRegisterConnectionNotification(hmprserver: isize, heventnotification: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminRegisterConnectionNotification(hmprserver : isize, heventnotification : super::super::Foundation:: HANDLE) -> u32); - MprAdminRegisterConnectionNotification(hmprserver, heventnotification.into_param().abi()) + MprAdminRegisterConnectionNotification(hmprserver, heventnotification.param().abi()) } #[inline] pub unsafe fn MprAdminSendUserMessage(hmprserver: isize, hconnection: P0, lpwszmessage: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminSendUserMessage(hmprserver : isize, hconnection : super::super::Foundation:: HANDLE, lpwszmessage : windows_core::PCWSTR) -> u32); - MprAdminSendUserMessage(hmprserver, hconnection.into_param().abi(), lpwszmessage.into_param().abi()) + MprAdminSendUserMessage(hmprserver, hconnection.param().abi(), lpwszmessage.param().abi()) } #[inline] pub unsafe fn MprAdminServerConnect(lpwsservername: P0, phmprserver: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminServerConnect(lpwsservername : windows_core::PCWSTR, phmprserver : *mut isize) -> u32); - MprAdminServerConnect(lpwsservername.into_param().abi(), phmprserver) + MprAdminServerConnect(lpwsservername.param().abi(), phmprserver) } #[inline] pub unsafe fn MprAdminServerDisconnect(hmprserver: isize) { @@ -559,11 +559,11 @@ pub unsafe fn MprAdminServerSetInfoEx(hmprserver: isize, pserverinfo: *const MPR #[inline] pub unsafe fn MprAdminTransportCreate(hmprserver: isize, dwtransportid: u32, lpwstransportname: P0, pglobalinfo: *const u8, dwglobalinfosize: u32, pclientinterfaceinfo: Option<*const u8>, dwclientinterfaceinfosize: u32, lpwsdllpath: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmprserver, dwtransportid, lpwstransportname.into_param().abi(), pglobalinfo, dwglobalinfosize, core::mem::transmute(pclientinterfaceinfo.unwrap_or(std::ptr::null())), dwclientinterfaceinfosize, lpwsdllpath.into_param().abi()) + MprAdminTransportCreate(hmprserver, dwtransportid, lpwstransportname.param().abi(), pglobalinfo, dwglobalinfosize, core::mem::transmute(pclientinterfaceinfo.unwrap_or(std::ptr::null())), dwclientinterfaceinfosize, 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 { @@ -578,28 +578,28 @@ pub unsafe fn MprAdminTransportSetInfo(hmprserver: isize, dwtransportid: u32, pg #[inline] pub unsafe fn MprAdminUpdateConnection(hrasserver: isize, hrasconnection: P0, prasupdateconnection: *const RAS_UPDATE_CONNECTION) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprAdminUpdateConnection(hrasserver : isize, hrasconnection : super::super::Foundation:: HANDLE, prasupdateconnection : *const RAS_UPDATE_CONNECTION) -> u32); - MprAdminUpdateConnection(hrasserver, hrasconnection.into_param().abi(), prasupdateconnection) + MprAdminUpdateConnection(hrasserver, hrasconnection.param().abi(), prasupdateconnection) } #[inline] pub unsafe fn MprAdminUserGetInfo(lpszserver: P0, lpszuser: P1, dwlevel: u32, lpbbuffer: *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszuser.into_param().abi(), dwlevel, lpbbuffer) + MprAdminUserGetInfo(lpszserver.param().abi(), lpszuser.param().abi(), dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprAdminUserSetInfo(lpszserver: P0, lpszuser: P1, dwlevel: u32, lpbbuffer: *const u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszuser.into_param().abi(), dwlevel, lpbbuffer) + MprAdminUserSetInfo(lpszserver.param().abi(), lpszuser.param().abi(), dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprConfigBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { @@ -609,208 +609,208 @@ pub unsafe fn MprConfigBufferFree(pbuffer: *const core::ffi::c_void) -> u32 { #[inline] pub unsafe fn MprConfigFilterGetInfo(hmprconfig: P0, dwlevel: u32, dwtransportid: u32, lpbuffer: *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigFilterGetInfo(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, dwtransportid : u32, lpbuffer : *mut u8) -> u32); - MprConfigFilterGetInfo(hmprconfig.into_param().abi(), dwlevel, dwtransportid, lpbuffer) + MprConfigFilterGetInfo(hmprconfig.param().abi(), dwlevel, dwtransportid, lpbuffer) } #[inline] pub unsafe fn MprConfigFilterSetInfo(hmprconfig: P0, dwlevel: u32, dwtransportid: u32, lpbuffer: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigFilterSetInfo(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, dwtransportid : u32, lpbuffer : *const u8) -> u32); - MprConfigFilterSetInfo(hmprconfig.into_param().abi(), dwlevel, dwtransportid, lpbuffer) + MprConfigFilterSetInfo(hmprconfig.param().abi(), dwlevel, dwtransportid, lpbuffer) } #[inline] pub unsafe fn MprConfigGetFriendlyName(hmprconfig: P0, pszguidname: P1, pszbuffer: windows_core::PWSTR, dwbuffersize: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmprconfig.into_param().abi(), pszguidname.into_param().abi(), core::mem::transmute(pszbuffer), dwbuffersize) + MprConfigGetFriendlyName(hmprconfig.param().abi(), pszguidname.param().abi(), core::mem::transmute(pszbuffer), dwbuffersize) } #[inline] pub unsafe fn MprConfigGetGuidName(hmprconfig: P0, pszfriendlyname: P1, pszbuffer: windows_core::PWSTR, dwbuffersize: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmprconfig.into_param().abi(), pszfriendlyname.into_param().abi(), core::mem::transmute(pszbuffer), dwbuffersize) + MprConfigGetGuidName(hmprconfig.param().abi(), pszfriendlyname.param().abi(), core::mem::transmute(pszbuffer), dwbuffersize) } #[inline] pub unsafe fn MprConfigInterfaceCreate(hmprconfig: P0, dwlevel: u32, lpbbuffer: *const u8, phrouterinterface: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmprconfig.into_param().abi(), dwlevel, lpbbuffer, phrouterinterface) + MprConfigInterfaceCreate(hmprconfig.param().abi(), dwlevel, lpbbuffer, phrouterinterface) } #[inline] pub unsafe fn MprConfigInterfaceDelete(hmprconfig: P0, hrouterinterface: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigInterfaceDelete(hmprconfig : super::super::Foundation:: HANDLE, hrouterinterface : super::super::Foundation:: HANDLE) -> u32); - MprConfigInterfaceDelete(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi()) + MprConfigInterfaceDelete(hmprconfig.param().abi(), hrouterinterface.param().abi()) } #[inline] pub unsafe fn MprConfigInterfaceEnum(hmprconfig: P0, dwlevel: u32, lplpbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmprconfig.into_param().abi(), dwlevel, lplpbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null_mut()))) + MprConfigInterfaceEnum(hmprconfig.param().abi(), dwlevel, lplpbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprConfigInterfaceGetCustomInfoEx(hmprconfig: P0, hrouterinterface: P1, pcustominfo: *mut MPR_IF_CUSTOMINFOEX2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), pcustominfo) + MprConfigInterfaceGetCustomInfoEx(hmprconfig.param().abi(), hrouterinterface.param().abi(), pcustominfo) } #[inline] pub unsafe fn MprConfigInterfaceGetHandle(hmprconfig: P0, lpwsinterfacename: P1, phrouterinterface: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmprconfig.into_param().abi(), lpwsinterfacename.into_param().abi(), phrouterinterface) + MprConfigInterfaceGetHandle(hmprconfig.param().abi(), lpwsinterfacename.param().abi(), phrouterinterface) } #[inline] pub unsafe fn MprConfigInterfaceGetInfo(hmprconfig: P0, hrouterinterface: P1, dwlevel: u32, lplpbuffer: *mut *mut u8, lpdwbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), dwlevel, lplpbuffer, lpdwbuffersize) + MprConfigInterfaceGetInfo(hmprconfig.param().abi(), hrouterinterface.param().abi(), dwlevel, lplpbuffer, lpdwbuffersize) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn MprConfigInterfaceSetCustomInfoEx(hmprconfig: P0, hrouterinterface: P1, pcustominfo: *const MPR_IF_CUSTOMINFOEX2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), pcustominfo) + MprConfigInterfaceSetCustomInfoEx(hmprconfig.param().abi(), hrouterinterface.param().abi(), pcustominfo) } #[inline] pub unsafe fn MprConfigInterfaceSetInfo(hmprconfig: P0, hrouterinterface: P1, dwlevel: u32, lpbbuffer: *const u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), dwlevel, lpbbuffer) + MprConfigInterfaceSetInfo(hmprconfig.param().abi(), hrouterinterface.param().abi(), dwlevel, lpbbuffer) } #[inline] pub unsafe fn MprConfigInterfaceTransportAdd(hmprconfig: P0, hrouterinterface: P1, dwtransportid: u32, lpwstransportname: P2, pinterfaceinfo: &[u8], phrouteriftransport: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), dwtransportid, lpwstransportname.into_param().abi(), core::mem::transmute(pinterfaceinfo.as_ptr()), pinterfaceinfo.len().try_into().unwrap(), phrouteriftransport) + MprConfigInterfaceTransportAdd(hmprconfig.param().abi(), hrouterinterface.param().abi(), dwtransportid, lpwstransportname.param().abi(), core::mem::transmute(pinterfaceinfo.as_ptr()), pinterfaceinfo.len().try_into().unwrap(), phrouteriftransport) } #[inline] pub unsafe fn MprConfigInterfaceTransportEnum(hmprconfig: P0, hrouterinterface: P1, dwlevel: u32, lplpbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), dwlevel, lplpbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null_mut()))) + MprConfigInterfaceTransportEnum(hmprconfig.param().abi(), hrouterinterface.param().abi(), dwlevel, lplpbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MprConfigInterfaceTransportGetHandle(hmprconfig: P0, hrouterinterface: P1, dwtransportid: u32, phrouteriftransport: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), dwtransportid, phrouteriftransport) + MprConfigInterfaceTransportGetHandle(hmprconfig.param().abi(), hrouterinterface.param().abi(), dwtransportid, phrouteriftransport) } #[inline] pub unsafe fn MprConfigInterfaceTransportGetInfo(hmprconfig: P0, hrouterinterface: P1, hrouteriftransport: P2, ppinterfaceinfo: Option<*mut *mut u8>, lpdwinterfaceinfosize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), hrouteriftransport.into_param().abi(), core::mem::transmute(ppinterfaceinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(std::ptr::null_mut()))) + MprConfigInterfaceTransportGetInfo(hmprconfig.param().abi(), hrouterinterface.param().abi(), hrouteriftransport.param().abi(), core::mem::transmute(ppinterfaceinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwinterfaceinfosize.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MprConfigInterfaceTransportRemove(hmprconfig: P0, hrouterinterface: P1, hrouteriftransport: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), hrouteriftransport.into_param().abi()) + MprConfigInterfaceTransportRemove(hmprconfig.param().abi(), hrouterinterface.param().abi(), hrouteriftransport.param().abi()) } #[inline] pub unsafe fn MprConfigInterfaceTransportSetInfo(hmprconfig: P0, hrouterinterface: P1, hrouteriftransport: P2, pinterfaceinfo: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hmprconfig.into_param().abi(), hrouterinterface.into_param().abi(), hrouteriftransport.into_param().abi(), 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.param().abi(), hrouterinterface.param().abi(), hrouteriftransport.param().abi(), 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: P0, lpwspath: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerBackup(hmprconfig : super::super::Foundation:: HANDLE, lpwspath : windows_core::PCWSTR) -> u32); - MprConfigServerBackup(hmprconfig.into_param().abi(), lpwspath.into_param().abi()) + MprConfigServerBackup(hmprconfig.param().abi(), lpwspath.param().abi()) } #[inline] pub unsafe fn MprConfigServerConnect(lpwsservername: P0, phmprconfig: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerConnect(lpwsservername : windows_core::PCWSTR, phmprconfig : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigServerConnect(lpwsservername.into_param().abi(), phmprconfig) + MprConfigServerConnect(lpwsservername.param().abi(), phmprconfig) } #[inline] pub unsafe fn MprConfigServerDisconnect(hmprconfig: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerDisconnect(hmprconfig : super::super::Foundation:: HANDLE)); - MprConfigServerDisconnect(hmprconfig.into_param().abi()) + MprConfigServerDisconnect(hmprconfig.param().abi()) } #[inline] pub unsafe fn MprConfigServerGetInfo(hmprconfig: P0, dwlevel: u32, lplpbbuffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerGetInfo(hmprconfig : super::super::Foundation:: HANDLE, dwlevel : u32, lplpbbuffer : *mut *mut u8) -> u32); - MprConfigServerGetInfo(hmprconfig.into_param().abi(), dwlevel, lplpbbuffer) + MprConfigServerGetInfo(hmprconfig.param().abi(), dwlevel, lplpbbuffer) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn MprConfigServerGetInfoEx(hmprconfig: P0, pserverinfo: *mut MPR_SERVER_EX1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerGetInfoEx(hmprconfig : super::super::Foundation:: HANDLE, pserverinfo : *mut MPR_SERVER_EX1) -> u32); - MprConfigServerGetInfoEx(hmprconfig.into_param().abi(), pserverinfo) + MprConfigServerGetInfoEx(hmprconfig.param().abi(), pserverinfo) } #[inline] pub unsafe fn MprConfigServerInstall(dwlevel: u32, pbuffer: *const core::ffi::c_void) -> u32 { @@ -820,19 +820,19 @@ pub unsafe fn MprConfigServerInstall(dwlevel: u32, pbuffer: *const core::ffi::c_ #[inline] pub unsafe fn MprConfigServerRefresh(hmprconfig: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerRefresh(hmprconfig : super::super::Foundation:: HANDLE) -> u32); - MprConfigServerRefresh(hmprconfig.into_param().abi()) + MprConfigServerRefresh(hmprconfig.param().abi()) } #[inline] pub unsafe fn MprConfigServerRestore(hmprconfig: P0, lpwspath: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerRestore(hmprconfig : super::super::Foundation:: HANDLE, lpwspath : windows_core::PCWSTR) -> u32); - MprConfigServerRestore(hmprconfig.into_param().abi(), lpwspath.into_param().abi()) + MprConfigServerRestore(hmprconfig.param().abi(), lpwspath.param().abi()) } #[inline] pub unsafe fn MprConfigServerSetInfo(hmprserver: isize, dwlevel: u32, lpbbuffer: *const u8) -> u32 { @@ -843,64 +843,64 @@ pub unsafe fn MprConfigServerSetInfo(hmprserver: isize, dwlevel: u32, lpbbuffer: #[inline] pub unsafe fn MprConfigServerSetInfoEx(hmprconfig: P0, psetserverconfig: *const MPR_SERVER_SET_CONFIG_EX1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigServerSetInfoEx(hmprconfig : super::super::Foundation:: HANDLE, psetserverconfig : *const MPR_SERVER_SET_CONFIG_EX1) -> u32); - MprConfigServerSetInfoEx(hmprconfig.into_param().abi(), psetserverconfig) + MprConfigServerSetInfoEx(hmprconfig.param().abi(), psetserverconfig) } #[inline] pub unsafe fn MprConfigTransportCreate(hmprconfig: P0, dwtransportid: u32, lpwstransportname: P1, pglobalinfo: &[u8], pclientinterfaceinfo: Option<&[u8]>, lpwsdllpath: P2, phroutertransport: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hmprconfig.into_param().abi(), dwtransportid, lpwstransportname.into_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.into_param().abi(), phroutertransport) + MprConfigTransportCreate(hmprconfig.param().abi(), 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(), phroutertransport) } #[inline] pub unsafe fn MprConfigTransportDelete(hmprconfig: P0, hroutertransport: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportDelete(hmprconfig : super::super::Foundation:: HANDLE, hroutertransport : super::super::Foundation:: HANDLE) -> u32); - MprConfigTransportDelete(hmprconfig.into_param().abi(), hroutertransport.into_param().abi()) + MprConfigTransportDelete(hmprconfig.param().abi(), hroutertransport.param().abi()) } #[inline] pub unsafe fn MprConfigTransportEnum(hmprconfig: P0, dwlevel: u32, lplpbuffer: *mut *mut u8, dwprefmaxlen: u32, lpdwentriesread: *mut u32, lpdwtotalentries: *mut u32, lpdwresumehandle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmprconfig.into_param().abi(), dwlevel, lplpbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null_mut()))) + MprConfigTransportEnum(hmprconfig.param().abi(), dwlevel, lplpbuffer, dwprefmaxlen, lpdwentriesread, lpdwtotalentries, core::mem::transmute(lpdwresumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MprConfigTransportGetHandle(hmprconfig: P0, dwtransportid: u32, phroutertransport: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mprapi.dll" "system" fn MprConfigTransportGetHandle(hmprconfig : super::super::Foundation:: HANDLE, dwtransportid : u32, phroutertransport : *mut super::super::Foundation:: HANDLE) -> u32); - MprConfigTransportGetHandle(hmprconfig.into_param().abi(), dwtransportid, phroutertransport) + MprConfigTransportGetHandle(hmprconfig.param().abi(), dwtransportid, phroutertransport) } #[inline] pub unsafe fn MprConfigTransportGetInfo(hmprconfig: P0, hroutertransport: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmprconfig.into_param().abi(), hroutertransport.into_param().abi(), core::mem::transmute(ppglobalinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwglobalinfosize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppclientinterfaceinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwclientinterfaceinfosize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplpwsdllpath.unwrap_or(std::ptr::null_mut()))) + MprConfigTransportGetInfo(hmprconfig.param().abi(), hroutertransport.param().abi(), core::mem::transmute(ppglobalinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwglobalinfosize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppclientinterfaceinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdwclientinterfaceinfosize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplpwsdllpath.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MprConfigTransportSetInfo(hmprconfig: P0, hroutertransport: P1, pglobalinfo: Option<&[u8]>, pclientinterfaceinfo: Option<&[u8]>, lpwsdllpath: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hmprconfig.into_param().abi(), hroutertransport.into_param().abi(), 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.into_param().abi()) + MprConfigTransportSetInfo(hmprconfig.param().abi(), hroutertransport.param().abi(), 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 { @@ -950,164 +950,164 @@ pub unsafe fn MprInfoRemoveAll(lpheader: *const core::ffi::c_void, lplpnewheader #[inline] pub unsafe fn RasClearConnectionStatistics(hrasconn: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasClearConnectionStatistics(hrasconn : HRASCONN) -> u32); - RasClearConnectionStatistics(hrasconn.into_param().abi()) + RasClearConnectionStatistics(hrasconn.param().abi()) } #[inline] pub unsafe fn RasClearLinkStatistics(hrasconn: P0, dwsubentry: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasClearLinkStatistics(hrasconn : HRASCONN, dwsubentry : u32) -> u32); - RasClearLinkStatistics(hrasconn.into_param().abi(), dwsubentry) + RasClearLinkStatistics(hrasconn.param().abi(), dwsubentry) } #[inline] pub unsafe fn RasConnectionNotificationA(param0: P0, param1: P1, param2: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasConnectionNotificationA(param0 : HRASCONN, param1 : super::super::Foundation:: HANDLE, param2 : u32) -> u32); - RasConnectionNotificationA(param0.into_param().abi(), param1.into_param().abi(), param2) + RasConnectionNotificationA(param0.param().abi(), param1.param().abi(), param2) } #[inline] pub unsafe fn RasConnectionNotificationW(param0: P0, param1: P1, param2: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasConnectionNotificationW(param0 : HRASCONN, param1 : super::super::Foundation:: HANDLE, param2 : u32) -> u32); - RasConnectionNotificationW(param0.into_param().abi(), param1.into_param().abi(), param2) + RasConnectionNotificationW(param0.param().abi(), param1.param().abi(), param2) } #[inline] pub unsafe fn RasCreatePhonebookEntryA(param0: P0, param1: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasCreatePhonebookEntryA(param0 : super::super::Foundation:: HWND, param1 : windows_core::PCSTR) -> u32); - RasCreatePhonebookEntryA(param0.into_param().abi(), param1.into_param().abi()) + RasCreatePhonebookEntryA(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn RasCreatePhonebookEntryW(param0: P0, param1: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasCreatePhonebookEntryW(param0 : super::super::Foundation:: HWND, param1 : windows_core::PCWSTR) -> u32); - RasCreatePhonebookEntryW(param0.into_param().abi(), param1.into_param().abi()) + RasCreatePhonebookEntryW(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn RasDeleteEntryA(param0: P0, param1: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasDeleteEntryA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR) -> u32); - RasDeleteEntryA(param0.into_param().abi(), param1.into_param().abi()) + RasDeleteEntryA(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn RasDeleteEntryW(param0: P0, param1: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasDeleteEntryW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR) -> u32); - RasDeleteEntryW(param0.into_param().abi(), param1.into_param().abi()) + RasDeleteEntryW(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn RasDeleteSubEntryA(pszphonebook: P0, pszentry: P1, dwsubentryid: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszentry.into_param().abi(), dwsubentryid) + RasDeleteSubEntryA(pszphonebook.param().abi(), pszentry.param().abi(), dwsubentryid) } #[inline] pub unsafe fn RasDeleteSubEntryW(pszphonebook: P0, pszentry: P1, dwsubentryid: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszentry.into_param().abi(), dwsubentryid) + RasDeleteSubEntryW(pszphonebook.param().abi(), pszentry.param().abi(), dwsubentryid) } #[inline] pub unsafe fn RasDialA(param0: Option<*const RASDIALEXTENSIONS>, param1: P0, param2: *const RASDIALPARAMSA, param3: u32, param4: Option<*const core::ffi::c_void>, param5: *mut HRASCONN) -> u32 where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), param1.into_param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) + RasDialA(core::mem::transmute(param0.unwrap_or(std::ptr::null())), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) } #[inline] pub unsafe fn RasDialDlgA(lpszphonebook: P0, lpszentry: P1, lpszphonenumber: P2, lpinfo: *mut RASDIALDLG) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rasdlg.dll" "system" fn RasDialDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpszphonenumber : windows_core::PCSTR, lpinfo : *mut RASDIALDLG) -> super::super::Foundation:: BOOL); - RasDialDlgA(lpszphonebook.into_param().abi(), lpszentry.into_param().abi(), lpszphonenumber.into_param().abi(), lpinfo) + RasDialDlgA(lpszphonebook.param().abi(), lpszentry.param().abi(), lpszphonenumber.param().abi(), lpinfo) } #[inline] pub unsafe fn RasDialDlgW(lpszphonebook: P0, lpszentry: P1, lpszphonenumber: P2, lpinfo: *mut RASDIALDLG) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rasdlg.dll" "system" fn RasDialDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpszphonenumber : windows_core::PCWSTR, lpinfo : *mut RASDIALDLG) -> super::super::Foundation:: BOOL); - RasDialDlgW(lpszphonebook.into_param().abi(), lpszentry.into_param().abi(), lpszphonenumber.into_param().abi(), lpinfo) + RasDialDlgW(lpszphonebook.param().abi(), lpszentry.param().abi(), lpszphonenumber.param().abi(), lpinfo) } #[inline] pub unsafe fn RasDialW(param0: Option<*const RASDIALEXTENSIONS>, param1: P0, param2: *const RASDIALPARAMSW, param3: u32, param4: Option<*const core::ffi::c_void>, param5: *mut HRASCONN) -> u32 where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), param1.into_param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) + RasDialW(core::mem::transmute(param0.unwrap_or(std::ptr::null())), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) } #[inline] pub unsafe fn RasEditPhonebookEntryA(param0: P0, param1: P1, param2: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(param0.into_param().abi(), param1.into_param().abi(), param2.into_param().abi()) + RasEditPhonebookEntryA(param0.param().abi(), param1.param().abi(), param2.param().abi()) } #[inline] pub unsafe fn RasEditPhonebookEntryW(param0: P0, param1: P1, param2: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(param0.into_param().abi(), param1.into_param().abi(), param2.into_param().abi()) + RasEditPhonebookEntryW(param0.param().abi(), param1.param().abi(), param2.param().abi()) } #[inline] pub unsafe fn RasEntryDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASENTRYDLGA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasdlg.dll" "system" fn RasEntryDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpinfo : *mut RASENTRYDLGA) -> super::super::Foundation:: BOOL); - RasEntryDlgA(lpszphonebook.into_param().abi(), lpszentry.into_param().abi(), lpinfo) + RasEntryDlgA(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo) } #[inline] pub unsafe fn RasEntryDlgW(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASENTRYDLGW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasdlg.dll" "system" fn RasEntryDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpinfo : *mut RASENTRYDLGW) -> super::super::Foundation:: BOOL); - RasEntryDlgW(lpszphonebook.into_param().abi(), lpszentry.into_param().abi(), lpinfo) + RasEntryDlgW(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo) } #[inline] pub unsafe fn RasEnumAutodialAddressesA(lpprasautodialaddresses: Option<*mut windows_core::PSTR>, lpdwcbrasautodialaddresses: *mut u32, lpdwcrasautodialaddresses: *mut u32) -> u32 { @@ -1142,20 +1142,20 @@ pub unsafe fn RasEnumDevicesW(param0: Option<*mut RASDEVINFOW>, param1: *mut u32 #[inline] pub unsafe fn RasEnumEntriesA(param0: P0, param1: P1, param2: Option<*mut RASENTRYNAMEA>, param3: *mut u32, param4: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasEnumEntriesA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : *mut RASENTRYNAMEA, param3 : *mut u32, param4 : *mut u32) -> u32); - RasEnumEntriesA(param0.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) + RasEnumEntriesA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) } #[inline] pub unsafe fn RasEnumEntriesW(param0: P0, param1: P1, param2: Option<*mut RASENTRYNAMEW>, param3: *mut u32, param4: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasEnumEntriesW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : *mut RASENTRYNAMEW, param3 : *mut u32, param4 : *mut u32) -> u32); - RasEnumEntriesW(param0.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) + RasEnumEntriesW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) } #[inline] pub unsafe fn RasFreeEapUserIdentityA(praseapuseridentity: *const RASEAPUSERIDENTITYA) { @@ -1170,18 +1170,18 @@ pub unsafe fn RasFreeEapUserIdentityW(praseapuseridentity: *const RASEAPUSERIDEN #[inline] pub unsafe fn RasGetAutodialAddressA(param0: P0, param1: Option<*const u32>, param2: Option<*mut RASAUTODIALENTRYA>, param3: *mut u32, param4: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialAddressA(param0 : windows_core::PCSTR, param1 : *const u32, param2 : *mut RASAUTODIALENTRYA, param3 : *mut u32, param4 : *mut u32) -> u32); - RasGetAutodialAddressA(param0.into_param().abi(), core::mem::transmute(param1.unwrap_or(std::ptr::null())), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) + RasGetAutodialAddressA(param0.param().abi(), core::mem::transmute(param1.unwrap_or(std::ptr::null())), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) } #[inline] pub unsafe fn RasGetAutodialAddressW(param0: P0, param1: Option<*const u32>, param2: Option<*mut RASAUTODIALENTRYW>, param3: *mut u32, param4: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialAddressW(param0 : windows_core::PCWSTR, param1 : *const u32, param2 : *mut RASAUTODIALENTRYW, param3 : *mut u32, param4 : *mut u32) -> u32); - RasGetAutodialAddressW(param0.into_param().abi(), core::mem::transmute(param1.unwrap_or(std::ptr::null())), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) + RasGetAutodialAddressW(param0.param().abi(), core::mem::transmute(param1.unwrap_or(std::ptr::null())), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, param4) } #[inline] pub unsafe fn RasGetAutodialEnableA(param0: u32, param1: *mut super::super::Foundation::BOOL) -> u32 { @@ -1207,27 +1207,27 @@ pub unsafe fn RasGetAutodialParamW(param0: u32, param1: *mut core::ffi::c_void, #[inline] pub unsafe fn RasGetConnectStatusA(param0: P0, param1: *mut RASCONNSTATUSA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetConnectStatusA(param0 : HRASCONN, param1 : *mut RASCONNSTATUSA) -> u32); - RasGetConnectStatusA(param0.into_param().abi(), param1) + RasGetConnectStatusA(param0.param().abi(), param1) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasGetConnectStatusW(param0: P0, param1: *mut RASCONNSTATUSW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetConnectStatusW(param0 : HRASCONN, param1 : *mut RASCONNSTATUSW) -> u32); - RasGetConnectStatusW(param0.into_param().abi(), param1) + RasGetConnectStatusW(param0.param().abi(), param1) } #[inline] pub unsafe fn RasGetConnectionStatistics(hrasconn: P0, lpstatistics: *mut RAS_STATS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetConnectionStatistics(hrasconn : HRASCONN, lpstatistics : *mut RAS_STATS) -> u32); - RasGetConnectionStatistics(hrasconn.into_param().abi(), lpstatistics) + RasGetConnectionStatistics(hrasconn.param().abi(), lpstatistics) } #[inline] pub unsafe fn RasGetCountryInfoA(param0: Option<*mut RASCTRYINFO>, param1: *mut u32) -> u32 { @@ -1242,114 +1242,114 @@ pub unsafe fn RasGetCountryInfoW(param0: Option<*mut RASCTRYINFO>, param1: *mut #[inline] pub unsafe fn RasGetCredentialsA(param0: P0, param1: P1, param2: *mut RASCREDENTIALSA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetCredentialsA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : *mut RASCREDENTIALSA) -> u32); - RasGetCredentialsA(param0.into_param().abi(), param1.into_param().abi(), param2) + RasGetCredentialsA(param0.param().abi(), param1.param().abi(), param2) } #[inline] pub unsafe fn RasGetCredentialsW(param0: P0, param1: P1, param2: *mut RASCREDENTIALSW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetCredentialsW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : *mut RASCREDENTIALSW) -> u32); - RasGetCredentialsW(param0.into_param().abi(), param1.into_param().abi(), param2) + RasGetCredentialsW(param0.param().abi(), param1.param().abi(), param2) } #[inline] pub unsafe fn RasGetCustomAuthDataA(pszphonebook: P0, pszentry: P1, pbcustomauthdata: Option<*mut u8>, pdwsizeofcustomauthdata: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetCustomAuthDataA(pszphonebook : windows_core::PCSTR, pszentry : windows_core::PCSTR, pbcustomauthdata : *mut u8, pdwsizeofcustomauthdata : *mut u32) -> u32); - RasGetCustomAuthDataA(pszphonebook.into_param().abi(), pszentry.into_param().abi(), core::mem::transmute(pbcustomauthdata.unwrap_or(std::ptr::null_mut())), pdwsizeofcustomauthdata) + RasGetCustomAuthDataA(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbcustomauthdata.unwrap_or(std::ptr::null_mut())), pdwsizeofcustomauthdata) } #[inline] pub unsafe fn RasGetCustomAuthDataW(pszphonebook: P0, pszentry: P1, pbcustomauthdata: Option<*mut u8>, pdwsizeofcustomauthdata: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetCustomAuthDataW(pszphonebook : windows_core::PCWSTR, pszentry : windows_core::PCWSTR, pbcustomauthdata : *mut u8, pdwsizeofcustomauthdata : *mut u32) -> u32); - RasGetCustomAuthDataW(pszphonebook.into_param().abi(), pszentry.into_param().abi(), core::mem::transmute(pbcustomauthdata.unwrap_or(std::ptr::null_mut())), pdwsizeofcustomauthdata) + RasGetCustomAuthDataW(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbcustomauthdata.unwrap_or(std::ptr::null_mut())), pdwsizeofcustomauthdata) } #[inline] pub unsafe fn RasGetEapUserDataA(htoken: P0, pszphonebook: P1, pszentry: P2, pbeapdata: Option<*mut u8>, pdwsizeofeapdata: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEapUserDataA(htoken : super::super::Foundation:: HANDLE, pszphonebook : windows_core::PCSTR, pszentry : windows_core::PCSTR, pbeapdata : *mut u8, pdwsizeofeapdata : *mut u32) -> u32); - RasGetEapUserDataA(htoken.into_param().abi(), pszphonebook.into_param().abi(), pszentry.into_param().abi(), core::mem::transmute(pbeapdata.unwrap_or(std::ptr::null_mut())), pdwsizeofeapdata) + RasGetEapUserDataA(htoken.param().abi(), pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbeapdata.unwrap_or(std::ptr::null_mut())), pdwsizeofeapdata) } #[inline] pub unsafe fn RasGetEapUserDataW(htoken: P0, pszphonebook: P1, pszentry: P2, pbeapdata: Option<*mut u8>, pdwsizeofeapdata: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEapUserDataW(htoken : super::super::Foundation:: HANDLE, pszphonebook : windows_core::PCWSTR, pszentry : windows_core::PCWSTR, pbeapdata : *mut u8, pdwsizeofeapdata : *mut u32) -> u32); - RasGetEapUserDataW(htoken.into_param().abi(), pszphonebook.into_param().abi(), pszentry.into_param().abi(), core::mem::transmute(pbeapdata.unwrap_or(std::ptr::null_mut())), pdwsizeofeapdata) + RasGetEapUserDataW(htoken.param().abi(), pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbeapdata.unwrap_or(std::ptr::null_mut())), pdwsizeofeapdata) } #[inline] pub unsafe fn RasGetEapUserIdentityA(pszphonebook: P0, pszentry: P1, dwflags: u32, hwnd: P2, ppraseapuseridentity: *mut *mut RASEAPUSERIDENTITYA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszentry.into_param().abi(), dwflags, hwnd.into_param().abi(), ppraseapuseridentity) + RasGetEapUserIdentityA(pszphonebook.param().abi(), pszentry.param().abi(), dwflags, hwnd.param().abi(), ppraseapuseridentity) } #[inline] pub unsafe fn RasGetEapUserIdentityW(pszphonebook: P0, pszentry: P1, dwflags: u32, hwnd: P2, ppraseapuseridentity: *mut *mut RASEAPUSERIDENTITYW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszentry.into_param().abi(), dwflags, hwnd.into_param().abi(), ppraseapuseridentity) + RasGetEapUserIdentityW(pszphonebook.param().abi(), pszentry.param().abi(), dwflags, hwnd.param().abi(), ppraseapuseridentity) } #[inline] pub unsafe fn RasGetEntryDialParamsA(param0: P0, param1: *mut RASDIALPARAMSA, param2: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryDialParamsA(param0 : windows_core::PCSTR, param1 : *mut RASDIALPARAMSA, param2 : *mut super::super::Foundation:: BOOL) -> u32); - RasGetEntryDialParamsA(param0.into_param().abi(), param1, param2) + RasGetEntryDialParamsA(param0.param().abi(), param1, param2) } #[inline] pub unsafe fn RasGetEntryDialParamsW(param0: P0, param1: *mut RASDIALPARAMSW, param2: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryDialParamsW(param0 : windows_core::PCWSTR, param1 : *mut RASDIALPARAMSW, param2 : *mut super::super::Foundation:: BOOL) -> u32); - RasGetEntryDialParamsW(param0.into_param().abi(), param1, param2) + RasGetEntryDialParamsW(param0.param().abi(), param1, param2) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasGetEntryPropertiesA(param0: P0, param1: P1, param2: Option<*mut RASENTRYA>, param3: *mut u32, param4: Option<*mut u8>, param5: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryPropertiesA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : *mut RASENTRYA, param3 : *mut u32, param4 : *mut u8, param5 : *mut u32) -> u32); - RasGetEntryPropertiesA(param0.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut()))) + RasGetEntryPropertiesA(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasGetEntryPropertiesW(param0: P0, param1: P1, param2: Option<*mut RASENTRYW>, param3: *mut u32, param4: Option<*mut u8>, param5: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryPropertiesW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : *mut RASENTRYW, param3 : *mut u32, param4 : *mut u8, param5 : *mut u32) -> u32); - RasGetEntryPropertiesW(param0.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut()))) + RasGetEntryPropertiesW(param0.param().abi(), param1.param().abi(), core::mem::transmute(param2.unwrap_or(std::ptr::null_mut())), param3, core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RasGetErrorStringA(resourceid: u32, lpszstring: &mut [u8]) -> u32 { @@ -1364,10 +1364,10 @@ pub unsafe fn RasGetErrorStringW(resourceid: u32, lpszstring: &mut [u16]) -> u32 #[inline] pub unsafe fn RasGetLinkStatistics(hrasconn: P0, dwsubentry: u32, lpstatistics: *mut RAS_STATS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetLinkStatistics(hrasconn : HRASCONN, dwsubentry : u32, lpstatistics : *mut RAS_STATS) -> u32); - RasGetLinkStatistics(hrasconn.into_param().abi(), dwsubentry, lpstatistics) + RasGetLinkStatistics(hrasconn.param().abi(), dwsubentry, lpstatistics) } #[inline] pub unsafe fn RasGetPCscf(lpszpcscf: windows_core::PWSTR) -> u32 { @@ -1377,156 +1377,156 @@ pub unsafe fn RasGetPCscf(lpszpcscf: windows_core::PWSTR) -> u32 { #[inline] pub unsafe fn RasGetProjectionInfoA(param0: P0, param1: RASPROJECTION, param2: *mut core::ffi::c_void, param3: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetProjectionInfoA(param0 : HRASCONN, param1 : RASPROJECTION, param2 : *mut core::ffi::c_void, param3 : *mut u32) -> u32); - RasGetProjectionInfoA(param0.into_param().abi(), param1, param2, param3) + RasGetProjectionInfoA(param0.param().abi(), param1, param2, param3) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasGetProjectionInfoEx(hrasconn: P0, prasprojection: Option<*mut RAS_PROJECTION_INFO>, lpdwsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetProjectionInfoEx(hrasconn : HRASCONN, prasprojection : *mut RAS_PROJECTION_INFO, lpdwsize : *mut u32) -> u32); - RasGetProjectionInfoEx(hrasconn.into_param().abi(), core::mem::transmute(prasprojection.unwrap_or(std::ptr::null_mut())), lpdwsize) + RasGetProjectionInfoEx(hrasconn.param().abi(), core::mem::transmute(prasprojection.unwrap_or(std::ptr::null_mut())), lpdwsize) } #[inline] pub unsafe fn RasGetProjectionInfoW(param0: P0, param1: RASPROJECTION, param2: *mut core::ffi::c_void, param3: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetProjectionInfoW(param0 : HRASCONN, param1 : RASPROJECTION, param2 : *mut core::ffi::c_void, param3 : *mut u32) -> u32); - RasGetProjectionInfoW(param0.into_param().abi(), param1, param2, param3) + RasGetProjectionInfoW(param0.param().abi(), param1, param2, param3) } #[inline] pub unsafe fn RasGetSubEntryHandleA(param0: P0, param1: u32, param2: *mut HRASCONN) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetSubEntryHandleA(param0 : HRASCONN, param1 : u32, param2 : *mut HRASCONN) -> u32); - RasGetSubEntryHandleA(param0.into_param().abi(), param1, param2) + RasGetSubEntryHandleA(param0.param().abi(), param1, param2) } #[inline] pub unsafe fn RasGetSubEntryHandleW(param0: P0, param1: u32, param2: *mut HRASCONN) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasGetSubEntryHandleW(param0 : HRASCONN, param1 : u32, param2 : *mut HRASCONN) -> u32); - RasGetSubEntryHandleW(param0.into_param().abi(), param1, param2) + RasGetSubEntryHandleW(param0.param().abi(), param1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), param1.into_param().abi(), param2, core::mem::transmute(param3.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param6.unwrap_or(std::ptr::null_mut()))) + RasGetSubEntryPropertiesA(param0.param().abi(), param1.param().abi(), param2, core::mem::transmute(param3.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param6.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), param1.into_param().abi(), param2, core::mem::transmute(param3.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param6.unwrap_or(std::ptr::null_mut()))) + RasGetSubEntryPropertiesW(param0.param().abi(), param1.param().abi(), param2, core::mem::transmute(param3.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param4.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param5.unwrap_or(std::ptr::null_mut())), core::mem::transmute(param6.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RasHangUpA(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasHangUpA(param0 : HRASCONN) -> u32); - RasHangUpA(param0.into_param().abi()) + RasHangUpA(param0.param().abi()) } #[inline] pub unsafe fn RasHangUpW(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasHangUpW(param0 : HRASCONN) -> u32); - RasHangUpW(param0.into_param().abi()) + RasHangUpW(param0.param().abi()) } #[inline] pub unsafe fn RasInvokeEapUI(param0: P0, param1: u32, param2: *const RASDIALEXTENSIONS, param3: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasInvokeEapUI(param0 : HRASCONN, param1 : u32, param2 : *const RASDIALEXTENSIONS, param3 : super::super::Foundation:: HWND) -> u32); - RasInvokeEapUI(param0.into_param().abi(), param1, param2, param3.into_param().abi()) + RasInvokeEapUI(param0.param().abi(), param1, param2, param3.param().abi()) } #[inline] pub unsafe fn RasPhonebookDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASPBDLGA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasdlg.dll" "system" fn RasPhonebookDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpinfo : *mut RASPBDLGA) -> super::super::Foundation:: BOOL); - RasPhonebookDlgA(lpszphonebook.into_param().abi(), lpszentry.into_param().abi(), lpinfo) + RasPhonebookDlgA(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo) } #[inline] pub unsafe fn RasPhonebookDlgW(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASPBDLGW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasdlg.dll" "system" fn RasPhonebookDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpinfo : *mut RASPBDLGW) -> super::super::Foundation:: BOOL); - RasPhonebookDlgW(lpszphonebook.into_param().abi(), lpszentry.into_param().abi(), lpinfo) + RasPhonebookDlgW(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo) } #[inline] pub unsafe fn RasRenameEntryA(param0: P0, param1: P1, param2: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasRenameEntryA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : windows_core::PCSTR) -> u32); - RasRenameEntryA(param0.into_param().abi(), param1.into_param().abi(), param2.into_param().abi()) + RasRenameEntryA(param0.param().abi(), param1.param().abi(), param2.param().abi()) } #[inline] pub unsafe fn RasRenameEntryW(param0: P0, param1: P1, param2: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasRenameEntryW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : windows_core::PCWSTR) -> u32); - RasRenameEntryW(param0.into_param().abi(), param1.into_param().abi(), param2.into_param().abi()) + RasRenameEntryW(param0.param().abi(), param1.param().abi(), param2.param().abi()) } #[inline] pub unsafe fn RasSetAutodialAddressA(param0: P0, param1: u32, param2: Option<*const RASAUTODIALENTRYA>, param3: u32, param4: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), param1, core::mem::transmute(param2.unwrap_or(std::ptr::null())), param3, param4) + RasSetAutodialAddressA(param0.param().abi(), param1, core::mem::transmute(param2.unwrap_or(std::ptr::null())), param3, param4) } #[inline] pub unsafe fn RasSetAutodialAddressW(param0: P0, param1: u32, param2: Option<*const RASAUTODIALENTRYW>, param3: u32, param4: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), param1, core::mem::transmute(param2.unwrap_or(std::ptr::null())), param3, param4) + RasSetAutodialAddressW(param0.param().abi(), param1, core::mem::transmute(param2.unwrap_or(std::ptr::null())), param3, param4) } #[inline] pub unsafe fn RasSetAutodialEnableA(param0: u32, param1: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableA(param0 : u32, param1 : super::super::Foundation:: BOOL) -> u32); - RasSetAutodialEnableA(param0, param1.into_param().abi()) + RasSetAutodialEnableA(param0, param1.param().abi()) } #[inline] pub unsafe fn RasSetAutodialEnableW(param0: u32, param1: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableW(param0 : u32, param1 : super::super::Foundation:: BOOL) -> u32); - RasSetAutodialEnableW(param0, param1.into_param().abi()) + RasSetAutodialEnableW(param0, param1.param().abi()) } #[inline] pub unsafe fn RasSetAutodialParamA(param0: u32, param1: *const core::ffi::c_void, param2: u32) -> u32 { @@ -1541,143 +1541,143 @@ pub unsafe fn RasSetAutodialParamW(param0: u32, param1: *const core::ffi::c_void #[inline] pub unsafe fn RasSetCredentialsA(param0: P0, param1: P1, param2: *const RASCREDENTIALSA, param3: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), param2, param3.into_param().abi()) + RasSetCredentialsA(param0.param().abi(), param1.param().abi(), param2, param3.param().abi()) } #[inline] pub unsafe fn RasSetCredentialsW(param0: P0, param1: P1, param2: *const RASCREDENTIALSW, param3: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), param2, param3.into_param().abi()) + RasSetCredentialsW(param0.param().abi(), param1.param().abi(), param2, param3.param().abi()) } #[inline] pub unsafe fn RasSetCustomAuthDataA(pszphonebook: P0, pszentry: P1, pbcustomauthdata: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetCustomAuthDataA(pszphonebook : windows_core::PCSTR, pszentry : windows_core::PCSTR, pbcustomauthdata : *const u8, dwsizeofcustomauthdata : u32) -> u32); - RasSetCustomAuthDataA(pszphonebook.into_param().abi(), pszentry.into_param().abi(), core::mem::transmute(pbcustomauthdata.as_ptr()), pbcustomauthdata.len().try_into().unwrap()) + RasSetCustomAuthDataA(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbcustomauthdata.as_ptr()), pbcustomauthdata.len().try_into().unwrap()) } #[inline] pub unsafe fn RasSetCustomAuthDataW(pszphonebook: P0, pszentry: P1, pbcustomauthdata: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasSetCustomAuthDataW(pszphonebook : windows_core::PCWSTR, pszentry : windows_core::PCWSTR, pbcustomauthdata : *const u8, dwsizeofcustomauthdata : u32) -> u32); - RasSetCustomAuthDataW(pszphonebook.into_param().abi(), pszentry.into_param().abi(), core::mem::transmute(pbcustomauthdata.as_ptr()), pbcustomauthdata.len().try_into().unwrap()) + RasSetCustomAuthDataW(pszphonebook.param().abi(), pszentry.param().abi(), core::mem::transmute(pbcustomauthdata.as_ptr()), pbcustomauthdata.len().try_into().unwrap()) } #[inline] pub unsafe fn RasSetEapUserDataA(htoken: P0, pszphonebook: P1, pszentry: P2, pbeapdata: *const u8, dwsizeofeapdata: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(htoken.into_param().abi(), pszphonebook.into_param().abi(), pszentry.into_param().abi(), pbeapdata, dwsizeofeapdata) + RasSetEapUserDataA(htoken.param().abi(), pszphonebook.param().abi(), pszentry.param().abi(), pbeapdata, dwsizeofeapdata) } #[inline] pub unsafe fn RasSetEapUserDataW(htoken: P0, pszphonebook: P1, pszentry: P2, pbeapdata: *const u8, dwsizeofeapdata: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(htoken.into_param().abi(), pszphonebook.into_param().abi(), pszentry.into_param().abi(), pbeapdata, dwsizeofeapdata) + RasSetEapUserDataW(htoken.param().abi(), pszphonebook.param().abi(), pszentry.param().abi(), pbeapdata, dwsizeofeapdata) } #[inline] pub unsafe fn RasSetEntryDialParamsA(param0: P0, param1: *const RASDIALPARAMSA, param2: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), param1, param2.into_param().abi()) + RasSetEntryDialParamsA(param0.param().abi(), param1, param2.param().abi()) } #[inline] pub unsafe fn RasSetEntryDialParamsW(param0: P0, param1: *const RASDIALPARAMSW, param2: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), param1, param2.into_param().abi()) + RasSetEntryDialParamsW(param0.param().abi(), param1, param2.param().abi()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasSetEntryPropertiesA(param0: P0, param1: P1, param2: *const RASENTRYA, param3: u32, param4: Option<*const u8>, param5: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), param1.into_param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) + RasSetEntryPropertiesA(param0.param().abi(), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasSetEntryPropertiesW(param0: P0, param1: P1, param2: *const RASENTRYW, param3: u32, param4: Option<*const u8>, param5: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), param1.into_param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) + RasSetEntryPropertiesW(param0.param().abi(), param1.param().abi(), param2, param3, core::mem::transmute(param4.unwrap_or(std::ptr::null())), param5) } #[inline] pub unsafe fn RasSetSubEntryPropertiesA(param0: P0, param1: P1, param2: u32, param3: *const RASSUBENTRYA, param4: u32, param5: Option<*const u8>, param6: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), param1.into_param().abi(), param2, param3, param4, core::mem::transmute(param5.unwrap_or(std::ptr::null())), param6) + RasSetSubEntryPropertiesA(param0.param().abi(), param1.param().abi(), param2, param3, param4, core::mem::transmute(param5.unwrap_or(std::ptr::null())), param6) } #[inline] pub unsafe fn RasSetSubEntryPropertiesW(param0: P0, param1: P1, param2: u32, param3: *const RASSUBENTRYW, param4: u32, param5: Option<*const u8>, param6: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), param1.into_param().abi(), param2, param3, param4, core::mem::transmute(param5.unwrap_or(std::ptr::null())), param6) + RasSetSubEntryPropertiesW(param0.param().abi(), param1.param().abi(), param2, param3, param4, core::mem::transmute(param5.unwrap_or(std::ptr::null())), param6) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn RasUpdateConnection(hrasconn: P0, lprasupdateconn: *const RASUPDATECONN) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasUpdateConnection(hrasconn : HRASCONN, lprasupdateconn : *const RASUPDATECONN) -> u32); - RasUpdateConnection(hrasconn.into_param().abi(), lprasupdateconn) + RasUpdateConnection(hrasconn.param().abi(), lprasupdateconn) } #[inline] pub unsafe fn RasValidateEntryNameA(param0: P0, param1: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasValidateEntryNameA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR) -> u32); - RasValidateEntryNameA(param0.into_param().abi(), param1.into_param().abi()) + RasValidateEntryNameA(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn RasValidateEntryNameW(param0: P0, param1: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rasapi32.dll" "system" fn RasValidateEntryNameW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR) -> u32); - RasValidateEntryNameW(param0.into_param().abi(), param1.into_param().abi()) + RasValidateEntryNameW(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn RtmAddNextHop(rtmreghandle: isize, nexthopinfo: *mut RTM_NEXTHOP_INFO, nexthophandle: *mut isize, changeflags: *mut u32) -> u32 { @@ -1692,10 +1692,10 @@ pub unsafe fn RtmAddRouteToDest(rtmreghandle: isize, routehandle: *mut isize, de #[inline] pub unsafe fn RtmBlockMethods(rtmreghandle: isize, targethandle: P0, targettype: u8, blockingflag: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn RtmBlockMethods(rtmreghandle : isize, targethandle : super::super::Foundation:: HANDLE, targettype : u8, blockingflag : u32) -> u32); - RtmBlockMethods(rtmreghandle, targethandle.into_param().abi(), targettype, blockingflag) + RtmBlockMethods(rtmreghandle, targethandle.param().abi(), targettype, blockingflag) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -1897,37 +1897,37 @@ pub unsafe fn RtmIsMarkedForChangeNotification(rtmreghandle: isize, notifyhandle #[inline] pub unsafe fn RtmLockDestination(rtmreghandle: isize, desthandle: isize, exclusive: P0, lockdest: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn RtmLockDestination(rtmreghandle : isize, desthandle : isize, exclusive : super::super::Foundation:: BOOL, lockdest : super::super::Foundation:: BOOL) -> u32); - RtmLockDestination(rtmreghandle, desthandle, exclusive.into_param().abi(), lockdest.into_param().abi()) + RtmLockDestination(rtmreghandle, desthandle, exclusive.param().abi(), lockdest.param().abi()) } #[inline] pub unsafe fn RtmLockNextHop(rtmreghandle: isize, nexthophandle: isize, exclusive: P0, locknexthop: P1, nexthoppointer: *mut *mut RTM_NEXTHOP_INFO) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(rtmreghandle, nexthophandle, exclusive.into_param().abi(), locknexthop.into_param().abi(), nexthoppointer) + RtmLockNextHop(rtmreghandle, nexthophandle, exclusive.param().abi(), locknexthop.param().abi(), nexthoppointer) } #[inline] pub unsafe fn RtmLockRoute(rtmreghandle: isize, routehandle: isize, exclusive: P0, lockroute: P1, routepointer: *mut *mut RTM_ROUTE_INFO) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(rtmreghandle, routehandle, exclusive.into_param().abi(), lockroute.into_param().abi(), routepointer) + RtmLockRoute(rtmreghandle, routehandle, exclusive.param().abi(), lockroute.param().abi(), routepointer) } #[inline] pub unsafe fn RtmMarkDestForChangeNotification(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, markdest: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtm.dll" "system" fn RtmMarkDestForChangeNotification(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, markdest : super::super::Foundation:: BOOL) -> u32); - RtmMarkDestForChangeNotification(rtmreghandle, notifyhandle, desthandle, markdest.into_param().abi()) + RtmMarkDestForChangeNotification(rtmreghandle, notifyhandle, desthandle, markdest.param().abi()) } #[inline] pub unsafe fn RtmReferenceHandles(rtmreghandle: isize, numhandles: u32, rtmhandles: *mut super::super::Foundation::HANDLE) -> u32 { @@ -1937,10 +1937,10 @@ pub unsafe fn RtmReferenceHandles(rtmreghandle: isize, numhandles: u32, rtmhandl #[inline] pub unsafe fn RtmRegisterEntity(rtmentityinfo: *mut RTM_ENTITY_INFO, exportmethods: *mut RTM_ENTITY_EXPORT_METHODS, eventcallback: RTM_EVENT_CALLBACK, reserveopaquepointer: P0, rtmregprofile: *mut RTM_REGN_PROFILE, rtmreghandle: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rtmentityinfo, exportmethods, eventcallback, reserveopaquepointer.into_param().abi(), rtmregprofile, rtmreghandle) + RtmRegisterEntity(rtmentityinfo, exportmethods, eventcallback, reserveopaquepointer.param().abi(), rtmregprofile, rtmreghandle) } #[inline] pub unsafe fn RtmRegisterForChangeNotification(rtmreghandle: isize, targetviews: u32, notifyflags: u32, notifycontext: *mut core::ffi::c_void, notifyhandle: *mut isize) -> u32 { 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 2d05b7c0df..7caab42677 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs @@ -36,10 +36,10 @@ pub unsafe fn SnmpCreatePdu(session: isize, pdu_type: SNMP_PDU_TYPE, request_id: #[inline] pub unsafe fn SnmpCreateSession(hwnd: P0, wmsg: u32, fcallback: SNMPAPI_CALLBACK, lpclientdata: *mut core::ffi::c_void) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), wmsg, fcallback, lpclientdata) + SnmpCreateSession(hwnd.param().abi(), wmsg, fcallback, lpclientdata) } #[inline] pub unsafe fn SnmpCreateVbl(session: isize, name: *mut smiOID, value: *mut smiVALUE) -> isize { @@ -179,11 +179,11 @@ pub unsafe fn SnmpMgrOidToStr(oid: *mut AsnObjectIdentifier, string: Option<*mut #[inline] pub unsafe fn SnmpMgrOpen(lpagentaddress: P0, lpagentcommunity: P1, ntimeout: i32, nretries: i32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpagentcommunity.into_param().abi(), ntimeout, 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 { @@ -193,10 +193,10 @@ pub unsafe fn SnmpMgrRequest(session: *mut core::ffi::c_void, requesttype: u8, v #[inline] pub unsafe fn SnmpMgrStrToOid(string: P0, oid: *mut AsnObjectIdentifier) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrStrToOid(string : windows_core::PCSTR, oid : *mut AsnObjectIdentifier) -> super::super::Foundation:: BOOL); - SnmpMgrStrToOid(string.into_param().abi(), oid) + SnmpMgrStrToOid(string.param().abi(), oid) } #[inline] pub unsafe fn SnmpMgrTrapListen(phtrapavailable: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -221,10 +221,10 @@ pub unsafe fn SnmpOidToStr(srcoid: *const smiOID, string: &mut [u8]) -> u32 { #[inline] pub unsafe fn SnmpOpen(hwnd: P0, wmsg: u32) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsnmp32.dll" "system" fn SnmpOpen(hwnd : super::super::Foundation:: HWND, wmsg : u32) -> isize); - SnmpOpen(hwnd.into_param().abi(), wmsg) + SnmpOpen(hwnd.param().abi(), wmsg) } #[inline] pub unsafe fn SnmpRecvMsg(session: isize, srcentity: *mut isize, dstentity: *mut isize, context: *mut isize, pdu: *mut isize) -> u32 { @@ -294,18 +294,18 @@ pub unsafe fn SnmpStrToContext(session: isize, string: *mut smiOCTETS) -> isize #[inline] pub unsafe fn SnmpStrToEntity(session: isize, string: P0) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsnmp32.dll" "system" fn SnmpStrToEntity(session : isize, string : windows_core::PCSTR) -> isize); - SnmpStrToEntity(session, string.into_param().abi()) + SnmpStrToEntity(session, string.param().abi()) } #[inline] pub unsafe fn SnmpStrToOid(string: P0, dstoid: *mut smiOID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsnmp32.dll" "system" fn SnmpStrToOid(string : windows_core::PCSTR, dstoid : *mut smiOID) -> u32); - SnmpStrToOid(string.into_param().abi(), dstoid) + SnmpStrToOid(string.param().abi(), dstoid) } #[inline] pub unsafe fn SnmpSvcGetUptime() -> u32 { @@ -335,10 +335,10 @@ pub unsafe fn SnmpUtilAsnAnyFree(pany: *mut AsnAny) { #[inline] pub unsafe fn SnmpUtilDbgPrint(nloglevel: SNMP_LOG, szformat: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("snmpapi.dll" "cdecl" fn SnmpUtilDbgPrint(nloglevel : SNMP_LOG, szformat : windows_core::PCSTR)); - SnmpUtilDbgPrint(nloglevel, szformat.into_param().abi()) + SnmpUtilDbgPrint(nloglevel, szformat.param().abi()) } #[inline] pub unsafe fn SnmpUtilIdsToA(ids: *mut u32, idlength: u32) -> 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 1dc3dea2f8..77ed9f787f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs @@ -11,71 +11,71 @@ pub unsafe fn MultinetGetConnectionPerformanceW(lpnetresource: *const NETRESOURC #[inline] pub unsafe fn NPAddConnection(lpnetresource: *const NETRESOURCEW, lppassword: P0, lpusername: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPAddConnection(lpnetresource : *const NETRESOURCEW, lppassword : windows_core::PCWSTR, lpusername : windows_core::PCWSTR) -> u32); - NPAddConnection(lpnetresource, lppassword.into_param().abi(), lpusername.into_param().abi()) + NPAddConnection(lpnetresource, lppassword.param().abi(), lpusername.param().abi()) } #[inline] pub unsafe fn NPAddConnection3(hwndowner: P0, lpnetresource: *const NETRESOURCEW, lppassword: P1, lpusername: P2, dwflags: NET_USE_CONNECT_FLAGS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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_USE_CONNECT_FLAGS) -> u32); - NPAddConnection3(hwndowner.into_param().abi(), lpnetresource, lppassword.into_param().abi(), lpusername.into_param().abi(), dwflags) + NPAddConnection3(hwndowner.param().abi(), lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn NPAddConnection4(hwndowner: P0, lpnetresource: *const NETRESOURCEW, lpauthbuffer: Option<*const core::ffi::c_void>, cbauthbuffer: u32, dwflags: u32, lpuseoptions: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndowner.into_param().abi(), lpnetresource, core::mem::transmute(lpauthbuffer.unwrap_or(std::ptr::null())), 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())) + NPAddConnection4(hwndowner.param().abi(), lpnetresource, core::mem::transmute(lpauthbuffer.unwrap_or(std::ptr::null())), 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: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPCancelConnection(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL) -> u32); - NPCancelConnection(lpname.into_param().abi(), fforce.into_param().abi()) + NPCancelConnection(lpname.param().abi(), fforce.param().abi()) } #[inline] pub unsafe fn NPCancelConnection2(lpname: P0, fforce: P1, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), fforce.into_param().abi(), dwflags) + NPCancelConnection2(lpname.param().abi(), fforce.param().abi(), dwflags) } #[inline] pub unsafe fn NPCloseEnum(henum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPCloseEnum(henum : super::super::Foundation:: HANDLE) -> u32); - NPCloseEnum(henum.into_param().abi()) + NPCloseEnum(henum.param().abi()) } #[inline] pub unsafe fn NPEnumResource(henum: P0, lpccount: *mut u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henum.into_param().abi(), lpccount, lpbuffer, lpbuffersize) + NPEnumResource(henum.param().abi(), lpccount, lpbuffer, lpbuffersize) } #[inline] pub unsafe fn NPFormatNetworkName(lpremotename: P0, lpformattedname: windows_core::PWSTR, lpnlength: *mut u32, dwflags: NETWORK_NAME_FORMAT_FLAGS, dwavecharperline: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(lpformattedname), lpnlength, dwflags, dwavecharperline) + NPFormatNetworkName(lpremotename.param().abi(), core::mem::transmute(lpformattedname), lpnlength, dwflags, dwavecharperline) } #[inline] pub unsafe fn NPGetCaps(ndex: u32) -> u32 { @@ -85,34 +85,34 @@ pub unsafe fn NPGetCaps(ndex: u32) -> u32 { #[inline] pub unsafe fn NPGetConnection(lplocalname: P0, lpremotename: windows_core::PWSTR, lpnbufferlen: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPGetConnection(lplocalname : windows_core::PCWSTR, lpremotename : windows_core::PWSTR, lpnbufferlen : *mut u32) -> u32); - NPGetConnection(lplocalname.into_param().abi(), core::mem::transmute(lpremotename), lpnbufferlen) + NPGetConnection(lplocalname.param().abi(), core::mem::transmute(lpremotename), lpnbufferlen) } #[inline] pub unsafe fn NPGetConnection3(lplocalname: P0, dwlevel: u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwlevel, lpbuffer, lpbuffersize) + NPGetConnection3(lplocalname.param().abi(), dwlevel, lpbuffer, lpbuffersize) } #[inline] pub unsafe fn NPGetConnectionPerformance(lpremotename: P0, lpnetconnectinfo: *mut NETCONNECTINFOSTRUCT) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntlanman.dll" "system" fn NPGetConnectionPerformance(lpremotename : windows_core::PCWSTR, lpnetconnectinfo : *mut NETCONNECTINFOSTRUCT) -> u32); - NPGetConnectionPerformance(lpremotename.into_param().abi(), lpnetconnectinfo) + NPGetConnectionPerformance(lpremotename.param().abi(), lpnetconnectinfo) } #[inline] pub unsafe fn NPGetPersistentUseOptionsForConnection(lpremotepath: P0, lpreaduseoptions: Option<&[u8]>, lpwriteuseoptions: *mut u8, lpsizewriteuseoptions: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntlanman.dll" "system" fn NPGetPersistentUseOptionsForConnection(lpremotepath : windows_core::PCWSTR, lpreaduseoptions : *const u8, cbreaduseoptions : u32, lpwriteuseoptions : *mut u8, lpsizewriteuseoptions : *mut u32) -> u32); - NPGetPersistentUseOptionsForConnection(lpremotepath.into_param().abi(), core::mem::transmute(lpreaduseoptions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreaduseoptions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpwriteuseoptions, lpsizewriteuseoptions) + NPGetPersistentUseOptionsForConnection(lpremotepath.param().abi(), core::mem::transmute(lpreaduseoptions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreaduseoptions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpwriteuseoptions, lpsizewriteuseoptions) } #[inline] pub unsafe fn NPGetResourceInformation(lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32, lplpsystem: *mut windows_core::PWSTR) -> u32 { @@ -127,18 +127,18 @@ pub unsafe fn NPGetResourceParent(lpnetresource: *const NETRESOURCEW, lpbuffer: #[inline] pub unsafe fn NPGetUniversalName(lplocalpath: P0, dwinfolevel: UNC_INFO_LEVEL, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwinfolevel, lpbuffer, lpbuffersize) + NPGetUniversalName(lplocalpath.param().abi(), dwinfolevel, lpbuffer, lpbuffersize) } #[inline] pub unsafe fn NPGetUser(lpname: P0, lpusername: windows_core::PWSTR, lpnbufferlen: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn NPGetUser(lpname : windows_core::PCWSTR, lpusername : windows_core::PWSTR, lpnbufferlen : *mut u32) -> u32); - NPGetUser(lpname.into_param().abi(), core::mem::transmute(lpusername), lpnbufferlen) + NPGetUser(lpname.param().abi(), core::mem::transmute(lpusername), lpnbufferlen) } #[inline] pub unsafe fn NPOpenEnum(dwscope: u32, dwtype: u32, dwusage: u32, lpnetresource: Option<*const NETRESOURCEW>, lphenum: *mut super::super::Foundation::HANDLE) -> u32 { @@ -148,128 +148,128 @@ pub unsafe fn NPOpenEnum(dwscope: u32, dwtype: u32, dwusage: u32, lpnetresource: #[inline] pub unsafe fn WNetAddConnection2A(lpnetresource: *const NETRESOURCEA, lppassword: P0, lpusername: P1, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection2A(lpnetresource : *const NETRESOURCEA, lppassword : windows_core::PCSTR, lpusername : windows_core::PCSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection2A(lpnetresource, lppassword.into_param().abi(), lpusername.into_param().abi(), dwflags) + WNetAddConnection2A(lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection2W(lpnetresource: *const NETRESOURCEW, lppassword: P0, lpusername: P1, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnection2W(lpnetresource : *const NETRESOURCEW, lppassword : windows_core::PCWSTR, lpusername : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection2W(lpnetresource, lppassword.into_param().abi(), lpusername.into_param().abi(), dwflags) + WNetAddConnection2W(lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection3A(hwndowner: P0, lpnetresource: *const NETRESOURCEA, lppassword: P1, lpusername: P2, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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 : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection3A(hwndowner.into_param().abi(), lpnetresource, lppassword.into_param().abi(), lpusername.into_param().abi(), dwflags) + WNetAddConnection3A(hwndowner.param().abi(), lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection3W(hwndowner: P0, lpnetresource: *const NETRESOURCEW, lppassword: P1, lpusername: P2, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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 : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection3W(hwndowner.into_param().abi(), lpnetresource, lppassword.into_param().abi(), lpusername.into_param().abi(), dwflags) + WNetAddConnection3W(hwndowner.param().abi(), lpnetresource, lppassword.param().abi(), lpusername.param().abi(), dwflags) } #[inline] pub unsafe fn WNetAddConnection4A(hwndowner: P0, lpnetresource: *const NETRESOURCEA, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, dwflags: u32, lpuseoptions: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : u32, lpuseoptions : *const u8, cbuseoptions : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection4A(hwndowner.into_param().abi(), lpnetresource, pauthbuffer, cbauthbuffer, dwflags, core::mem::transmute(lpuseoptions.as_ptr()), lpuseoptions.len().try_into().unwrap()) + WNetAddConnection4A(hwndowner.param().abi(), lpnetresource, pauthbuffer, cbauthbuffer, dwflags, core::mem::transmute(lpuseoptions.as_ptr()), lpuseoptions.len().try_into().unwrap()) } #[inline] pub unsafe fn WNetAddConnection4W(hwndowner: P0, lpnetresource: *const NETRESOURCEW, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, dwflags: u32, lpuseoptions: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : u32, lpuseoptions : *const u8, cbuseoptions : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnection4W(hwndowner.into_param().abi(), lpnetresource, pauthbuffer, cbauthbuffer, dwflags, core::mem::transmute(lpuseoptions.as_ptr()), lpuseoptions.len().try_into().unwrap()) + WNetAddConnection4W(hwndowner.param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnectionA(lpremotename : windows_core::PCSTR, lppassword : windows_core::PCSTR, lplocalname : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnectionA(lpremotename.into_param().abi(), lppassword.into_param().abi(), lplocalname.into_param().abi()) + WNetAddConnectionA(lpremotename.param().abi(), lppassword.param().abi(), lplocalname.param().abi()) } #[inline] pub unsafe fn WNetAddConnectionW(lpremotename: P0, lppassword: P1, lplocalname: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetAddConnectionW(lpremotename : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, lplocalname : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - WNetAddConnectionW(lpremotename.into_param().abi(), lppassword.into_param().abi(), lplocalname.into_param().abi()) + WNetAddConnectionW(lpremotename.param().abi(), lppassword.param().abi(), lplocalname.param().abi()) } #[inline] pub unsafe fn WNetCancelConnection2A(lpname: P0, dwflags: u32, fforce: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2A(lpname : windows_core::PCSTR, dwflags : u32, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - WNetCancelConnection2A(lpname.into_param().abi(), dwflags, fforce.into_param().abi()) + WNetCancelConnection2A(lpname.param().abi(), dwflags, fforce.param().abi()) } #[inline] pub unsafe fn WNetCancelConnection2W(lpname: P0, dwflags: u32, fforce: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2W(lpname : windows_core::PCWSTR, dwflags : u32, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - WNetCancelConnection2W(lpname.into_param().abi(), dwflags, fforce.into_param().abi()) + WNetCancelConnection2W(lpname.param().abi(), dwflags, fforce.param().abi()) } #[inline] pub unsafe fn WNetCancelConnectionA(lpname: P0, fforce: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetCancelConnectionA(lpname : windows_core::PCSTR, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - WNetCancelConnectionA(lpname.into_param().abi(), fforce.into_param().abi()) + WNetCancelConnectionA(lpname.param().abi(), fforce.param().abi()) } #[inline] pub unsafe fn WNetCancelConnectionW(lpname: P0, fforce: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetCancelConnectionW(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - WNetCancelConnectionW(lpname.into_param().abi(), fforce.into_param().abi()) + WNetCancelConnectionW(lpname.param().abi(), fforce.param().abi()) } #[inline] pub unsafe fn WNetCloseEnum(henum: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetCloseEnum(henum : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - WNetCloseEnum(henum.into_param().abi()) + WNetCloseEnum(henum.param().abi()) } #[inline] pub unsafe fn WNetConnectionDialog(hwnd: P0, dwtype: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetConnectionDialog(hwnd : super::super::Foundation:: HWND, dwtype : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetConnectionDialog(hwnd.into_param().abi(), dwtype) + WNetConnectionDialog(hwnd.param().abi(), dwtype) } #[inline] pub unsafe fn WNetConnectionDialog1A(lpconndlgstruct: *mut CONNECTDLGSTRUCTA) -> super::super::Foundation::WIN32_ERROR { @@ -284,10 +284,10 @@ pub unsafe fn WNetConnectionDialog1W(lpconndlgstruct: *mut CONNECTDLGSTRUCTW) -> #[inline] pub unsafe fn WNetDisconnectDialog(hwnd: P0, dwtype: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetDisconnectDialog(hwnd : super::super::Foundation:: HWND, dwtype : u32) -> super::super::Foundation:: WIN32_ERROR); - WNetDisconnectDialog(hwnd.into_param().abi(), dwtype) + WNetDisconnectDialog(hwnd.param().abi(), dwtype) } #[inline] pub unsafe fn WNetDisconnectDialog1A(lpconndlgstruct: *const DISCDLGSTRUCTA) -> super::super::Foundation::WIN32_ERROR { @@ -302,34 +302,34 @@ pub unsafe fn WNetDisconnectDialog1W(lpconndlgstruct: *const DISCDLGSTRUCTW) -> #[inline] pub unsafe fn WNetEnumResourceA(henum: P0, lpccount: *mut u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henum.into_param().abi(), lpccount, lpbuffer, lpbuffersize) + WNetEnumResourceA(henum.param().abi(), lpccount, lpbuffer, lpbuffersize) } #[inline] pub unsafe fn WNetEnumResourceW(henum: P0, lpccount: *mut u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henum.into_param().abi(), lpccount, lpbuffer, lpbuffersize) + WNetEnumResourceW(henum.param().abi(), lpccount, lpbuffer, lpbuffersize) } #[inline] pub unsafe fn WNetGetConnectionA(lplocalname: P0, lpremotename: windows_core::PSTR, lpnlength: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetConnectionA(lplocalname : windows_core::PCSTR, lpremotename : windows_core::PSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetConnectionA(lplocalname.into_param().abi(), core::mem::transmute(lpremotename), lpnlength) + WNetGetConnectionA(lplocalname.param().abi(), core::mem::transmute(lpremotename), lpnlength) } #[inline] pub unsafe fn WNetGetConnectionW(lplocalname: P0, lpremotename: windows_core::PWSTR, lpnlength: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetConnectionW(lplocalname : windows_core::PCWSTR, lpremotename : windows_core::PWSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetConnectionW(lplocalname.into_param().abi(), core::mem::transmute(lpremotename), lpnlength) + WNetGetConnectionW(lplocalname.param().abi(), core::mem::transmute(lpremotename), lpnlength) } #[inline] pub unsafe fn WNetGetLastErrorA(lperror: *mut u32, lperrorbuf: &mut [u8], lpnamebuf: &mut [u8]) -> super::super::Foundation::WIN32_ERROR { @@ -344,18 +344,18 @@ pub unsafe fn WNetGetLastErrorW(lperror: *mut u32, lperrorbuf: &mut [u16], lpnam #[inline] pub unsafe fn WNetGetNetworkInformationA(lpprovider: P0, lpnetinfostruct: *mut NETINFOSTRUCT) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetNetworkInformationA(lpprovider : windows_core::PCSTR, lpnetinfostruct : *mut NETINFOSTRUCT) -> super::super::Foundation:: WIN32_ERROR); - WNetGetNetworkInformationA(lpprovider.into_param().abi(), lpnetinfostruct) + WNetGetNetworkInformationA(lpprovider.param().abi(), lpnetinfostruct) } #[inline] pub unsafe fn WNetGetNetworkInformationW(lpprovider: P0, lpnetinfostruct: *mut NETINFOSTRUCT) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetNetworkInformationW(lpprovider : windows_core::PCWSTR, lpnetinfostruct : *mut NETINFOSTRUCT) -> super::super::Foundation:: WIN32_ERROR); - WNetGetNetworkInformationW(lpprovider.into_param().abi(), lpnetinfostruct) + WNetGetNetworkInformationW(lpprovider.param().abi(), lpnetinfostruct) } #[inline] pub unsafe fn WNetGetProviderNameA(dwnettype: u32, lpprovidername: windows_core::PSTR, lpbuffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR { @@ -390,34 +390,34 @@ pub unsafe fn WNetGetResourceParentW(lpnetresource: *const NETRESOURCEW, lpbuffe #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwinfolevel, lpbuffer, lpbuffersize) + WNetGetUniversalNameA(lplocalpath.param().abi(), dwinfolevel, lpbuffer, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwinfolevel, lpbuffer, lpbuffersize) + WNetGetUniversalNameW(lplocalpath.param().abi(), dwinfolevel, lpbuffer, lpbuffersize) } #[inline] pub unsafe fn WNetGetUserA(lpname: P0, lpusername: windows_core::PSTR, lpnlength: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetUserA(lpname : windows_core::PCSTR, lpusername : windows_core::PSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetUserA(lpname.into_param().abi(), core::mem::transmute(lpusername), lpnlength) + WNetGetUserA(lpname.param().abi(), core::mem::transmute(lpusername), lpnlength) } #[inline] pub unsafe fn WNetGetUserW(lpname: P0, lpusername: windows_core::PWSTR, lpnlength: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetGetUserW(lpname : windows_core::PCWSTR, lpusername : windows_core::PWSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetGetUserW(lpname.into_param().abi(), core::mem::transmute(lpusername), lpnlength) + WNetGetUserW(lpname.param().abi(), core::mem::transmute(lpusername), lpnlength) } #[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 { @@ -432,56 +432,56 @@ pub unsafe fn WNetOpenEnumW(dwscope: NET_RESOURCE_SCOPE, dwtype: NET_RESOURCE_TY #[inline] pub unsafe fn WNetSetLastErrorA(err: u32, lperror: P0, lpproviders: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetSetLastErrorA(err : u32, lperror : windows_core::PCSTR, lpproviders : windows_core::PCSTR)); - WNetSetLastErrorA(err, lperror.into_param().abi(), lpproviders.into_param().abi()) + WNetSetLastErrorA(err, lperror.param().abi(), lpproviders.param().abi()) } #[inline] pub unsafe fn WNetSetLastErrorW(err: u32, lperror: P0, lpproviders: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetSetLastErrorW(err : u32, lperror : windows_core::PCWSTR, lpproviders : windows_core::PCWSTR)); - WNetSetLastErrorW(err, lperror.into_param().abi(), lpproviders.into_param().abi()) + WNetSetLastErrorW(err, lperror.param().abi(), lpproviders.param().abi()) } #[inline] pub unsafe fn WNetUseConnection4A(hwndowner: P0, lpnetresource: *const NETRESOURCEA, pauthbuffer: Option<*const core::ffi::c_void>, cbauthbuffer: u32, dwflags: u32, lpuseoptions: Option<&[u8]>, lpaccessname: windows_core::PSTR, lpbuffersize: Option<*mut u32>, lpresult: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndowner.into_param().abi(), lpnetresource, core::mem::transmute(pauthbuffer.unwrap_or(std::ptr::null())), 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), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) + WNetUseConnection4A(hwndowner.param().abi(), lpnetresource, core::mem::transmute(pauthbuffer.unwrap_or(std::ptr::null())), 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), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WNetUseConnection4W(hwndowner: P0, lpnetresource: *const NETRESOURCEW, pauthbuffer: Option<*const core::ffi::c_void>, cbauthbuffer: u32, dwflags: u32, lpuseoptions: Option<&[u8]>, lpaccessname: windows_core::PWSTR, lpbuffersize: Option<*mut u32>, lpresult: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mpr.dll" "system" fn WNetUseConnection4W(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : u32, lpuseoptions : *const u8, cbuseoptions : u32, lpaccessname : windows_core::PWSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetUseConnection4W(hwndowner.into_param().abi(), lpnetresource, core::mem::transmute(pauthbuffer.unwrap_or(std::ptr::null())), 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), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) + WNetUseConnection4W(hwndowner.param().abi(), lpnetresource, core::mem::transmute(pauthbuffer.unwrap_or(std::ptr::null())), 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), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WNetUseConnectionA(hwndowner: P0, lpnetresource: *const NETRESOURCEA, lppassword: P1, lpuserid: P2, dwflags: NET_USE_CONNECT_FLAGS, lpaccessname: windows_core::PSTR, lpbuffersize: Option<*mut u32>, lpresult: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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_USE_CONNECT_FLAGS, lpaccessname : windows_core::PSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetUseConnectionA(hwndowner.into_param().abi(), lpnetresource, lppassword.into_param().abi(), lpuserid.into_param().abi(), dwflags, core::mem::transmute(lpaccessname), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) + WNetUseConnectionA(hwndowner.param().abi(), lpnetresource, lppassword.param().abi(), lpuserid.param().abi(), dwflags, core::mem::transmute(lpaccessname), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WNetUseConnectionW(hwndowner: P0, lpnetresource: *const NETRESOURCEW, lppassword: P1, lpuserid: P2, dwflags: NET_USE_CONNECT_FLAGS, lpaccessname: windows_core::PWSTR, lpbuffersize: Option<*mut u32>, lpresult: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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_USE_CONNECT_FLAGS, lpaccessname : windows_core::PWSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - WNetUseConnectionW(hwndowner.into_param().abi(), lpnetresource, lppassword.into_param().abi(), lpuserid.into_param().abi(), dwflags, core::mem::transmute(lpaccessname), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) + WNetUseConnectionW(hwndowner.param().abi(), lpnetresource, lppassword.param().abi(), lpuserid.param().abi(), dwflags, core::mem::transmute(lpaccessname), core::mem::transmute(lpbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpresult.unwrap_or(std::ptr::null_mut()))) } 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 cb6dfa83d7..8fe9e82c12 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs @@ -1,77 +1,77 @@ #[inline] pub unsafe fn DavAddConnection(connectionhandle: *mut super::super::Foundation::HANDLE, remotename: P0, username: P1, password: P2, clientcert: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DavAddConnection(connectionhandle : *mut super::super::Foundation:: HANDLE, remotename : windows_core::PCWSTR, username : windows_core::PCWSTR, password : windows_core::PCWSTR, clientcert : *const u8, certsize : u32) -> u32); - DavAddConnection(connectionhandle, remotename.into_param().abi(), username.into_param().abi(), password.into_param().abi(), core::mem::transmute(clientcert.as_ptr()), clientcert.len().try_into().unwrap()) + DavAddConnection(connectionhandle, remotename.param().abi(), username.param().abi(), password.param().abi(), core::mem::transmute(clientcert.as_ptr()), clientcert.len().try_into().unwrap()) } #[inline] pub unsafe fn DavCancelConnectionsToServer(lpname: P0, fforce: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn DavCancelConnectionsToServer(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL) -> u32); - DavCancelConnectionsToServer(lpname.into_param().abi(), fforce.into_param().abi()) + DavCancelConnectionsToServer(lpname.param().abi(), fforce.param().abi()) } #[inline] pub unsafe fn DavDeleteConnection(connectionhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DavDeleteConnection(connectionhandle : super::super::Foundation:: HANDLE) -> u32); - DavDeleteConnection(connectionhandle.into_param().abi()) + DavDeleteConnection(connectionhandle.param().abi()) } #[inline] pub unsafe fn DavFlushFile(hfile: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DavFlushFile(hfile : super::super::Foundation:: HANDLE) -> u32); - DavFlushFile(hfile.into_param().abi()) + DavFlushFile(hfile.param().abi()) } #[inline] pub unsafe fn DavGetExtendedError(hfile: P0, exterror: *mut u32, exterrorstring: windows_core::PWSTR, cchsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), exterror, core::mem::transmute(exterrorstring), cchsize) + DavGetExtendedError(hfile.param().abi(), exterror, core::mem::transmute(exterrorstring), cchsize) } #[inline] pub unsafe fn DavGetHTTPFromUNCPath(uncpath: P0, url: windows_core::PWSTR, lpsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DavGetHTTPFromUNCPath(uncpath : windows_core::PCWSTR, url : windows_core::PWSTR, lpsize : *mut u32) -> u32); - DavGetHTTPFromUNCPath(uncpath.into_param().abi(), core::mem::transmute(url), lpsize) + DavGetHTTPFromUNCPath(uncpath.param().abi(), core::mem::transmute(url), lpsize) } #[inline] pub unsafe fn DavGetTheLockOwnerOfTheFile(filename: P0, lockownername: windows_core::PWSTR, lockownernamelengthinbytes: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn DavGetTheLockOwnerOfTheFile(filename : windows_core::PCWSTR, lockownername : windows_core::PWSTR, lockownernamelengthinbytes : *mut u32) -> u32); - DavGetTheLockOwnerOfTheFile(filename.into_param().abi(), core::mem::transmute(lockownername), lockownernamelengthinbytes) + DavGetTheLockOwnerOfTheFile(filename.param().abi(), core::mem::transmute(lockownername), lockownernamelengthinbytes) } #[inline] pub unsafe fn DavGetUNCFromHTTPPath(url: P0, uncpath: windows_core::PWSTR, lpsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DavGetUNCFromHTTPPath(url : windows_core::PCWSTR, uncpath : windows_core::PWSTR, lpsize : *mut u32) -> u32); - DavGetUNCFromHTTPPath(url.into_param().abi(), core::mem::transmute(uncpath), lpsize) + DavGetUNCFromHTTPPath(url.param().abi(), core::mem::transmute(uncpath), lpsize) } #[inline] pub unsafe fn DavInvalidateCache(urlname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("davclnt.dll" "system" fn DavInvalidateCache(urlname : windows_core::PCWSTR) -> u32); - DavInvalidateCache(urlname.into_param().abi()) + DavInvalidateCache(urlname.param().abi()) } #[inline] pub unsafe fn DavRegisterAuthCallback(callback: PFNDAVAUTHCALLBACK, version: u32) -> u32 { 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 35925227f5..f03f711c8c 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -1,26 +1,26 @@ #[inline] pub unsafe fn WFDCancelOpenSession(hsessionhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WFDCancelOpenSession(hsessionhandle : super::super::Foundation:: HANDLE) -> u32); - WFDCancelOpenSession(hsessionhandle.into_param().abi()) + WFDCancelOpenSession(hsessionhandle.param().abi()) } #[inline] pub unsafe fn WFDCloseHandle(hclienthandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WFDCloseHandle(hclienthandle : super::super::Foundation:: HANDLE) -> u32); - WFDCloseHandle(hclienthandle.into_param().abi()) + WFDCloseHandle(hclienthandle.param().abi()) } #[inline] pub unsafe fn WFDCloseSession(hsessionhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WFDCloseSession(hsessionhandle : super::super::Foundation:: HANDLE) -> u32); - WFDCloseSession(hsessionhandle.into_param().abi()) + WFDCloseSession(hsessionhandle.param().abi()) } #[inline] pub unsafe fn WFDOpenHandle(dwclientversion: u32, pdwnegotiatedversion: *mut u32, phclienthandle: *mut super::super::Foundation::HANDLE) -> u32 { @@ -30,18 +30,18 @@ pub unsafe fn WFDOpenHandle(dwclientversion: u32, pdwnegotiatedversion: *mut u32 #[inline] pub unsafe fn WFDOpenLegacySession(hclienthandle: P0, plegacymacaddress: *const *const u8, phsessionhandle: *mut super::super::Foundation::HANDLE, pguidsessioninterface: *mut windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), plegacymacaddress, phsessionhandle, pguidsessioninterface) + WFDOpenLegacySession(hclienthandle.param().abi(), plegacymacaddress, phsessionhandle, pguidsessioninterface) } #[inline] pub unsafe fn WFDStartOpenSession(hclienthandle: P0, pdeviceaddress: *const *const u8, pvcontext: Option<*const core::ffi::c_void>, pfncallback: WFD_OPEN_SESSION_COMPLETE_CALLBACK, phsessionhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pdeviceaddress, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), pfncallback, phsessionhandle) + WFDStartOpenSession(hclienthandle.param().abi(), pdeviceaddress, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), pfncallback, phsessionhandle) } #[inline] pub unsafe fn WFDUpdateDeviceVisibility(pdeviceaddress: *const *const u8) -> u32 { @@ -56,70 +56,70 @@ pub unsafe fn WlanAllocateMemory(dwmemorysize: u32) -> *mut core::ffi::c_void { #[inline] pub unsafe fn WlanCloseHandle(hclienthandle: P0, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanCloseHandle(hclienthandle : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void) -> u32); - WlanCloseHandle(hclienthandle.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanCloseHandle(hclienthandle.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn WlanConnect(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, pconnectionparameters: *const WLAN_CONNECTION_PARAMETERS, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, pconnectionparameters, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanConnect(hclienthandle.param().abi(), pinterfaceguid, pconnectionparameters, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_NetworkManagement_Ndis")] #[inline] pub unsafe fn WlanConnect2(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, pconnectionparameters: *const WLAN_CONNECTION_PARAMETERS_V2, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, pconnectionparameters, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanConnect2(hclienthandle.param().abi(), pinterfaceguid, pconnectionparameters, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanDeleteProfile(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanDeleteProfile(hclienthandle.param().abi(), pinterfaceguid, strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanDeviceServiceCommand(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, pdeviceserviceguid, dwopcode, dwinbuffersize, core::mem::transmute(pinbuffer.unwrap_or(std::ptr::null())), dwoutbuffersize, core::mem::transmute(poutbuffer.unwrap_or(std::ptr::null_mut())), pdwbytesreturned) + WlanDeviceServiceCommand(hclienthandle.param().abi(), pinterfaceguid, pdeviceserviceguid, dwopcode, dwinbuffersize, core::mem::transmute(pinbuffer.unwrap_or(std::ptr::null())), dwoutbuffersize, core::mem::transmute(poutbuffer.unwrap_or(std::ptr::null_mut())), pdwbytesreturned) } #[inline] pub unsafe fn WlanDisconnect(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanDisconnect(hclienthandle.param().abi(), pinterfaceguid, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanEnumInterfaces(hclienthandle: P0, preserved: Option<*const core::ffi::c_void>, ppinterfacelist: *mut *mut WLAN_INTERFACE_INFO_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppinterfacelist) + WlanEnumInterfaces(hclienthandle.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppinterfacelist) } #[inline] pub unsafe fn WlanExtractPsdIEDataList(hclienthandle: P0, prawiedata: &[u8], strformat: P1, preserved: Option<*const core::ffi::c_void>, pppsdiedatalist: *mut *mut WLAN_RAW_DATA_LIST) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), prawiedata.len().try_into().unwrap(), core::mem::transmute(prawiedata.as_ptr()), strformat.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pppsdiedatalist) + WlanExtractPsdIEDataList(hclienthandle.param().abi(), prawiedata.len().try_into().unwrap(), core::mem::transmute(prawiedata.as_ptr()), strformat.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pppsdiedatalist) } #[inline] pub unsafe fn WlanFreeMemory(pmemory: *const core::ffi::c_void) { @@ -129,183 +129,183 @@ pub unsafe fn WlanFreeMemory(pmemory: *const core::ffi::c_void) { #[inline] pub unsafe fn WlanGetAvailableNetworkList(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, dwflags: u32, preserved: Option<*const core::ffi::c_void>, ppavailablenetworklist: *mut *mut WLAN_AVAILABLE_NETWORK_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, dwflags, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppavailablenetworklist) + WlanGetAvailableNetworkList(hclienthandle.param().abi(), pinterfaceguid, dwflags, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppavailablenetworklist) } #[inline] pub unsafe fn WlanGetAvailableNetworkList2(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, dwflags: u32, preserved: Option<*const core::ffi::c_void>, ppavailablenetworklist: *mut *mut WLAN_AVAILABLE_NETWORK_LIST_V2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, dwflags, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppavailablenetworklist) + WlanGetAvailableNetworkList2(hclienthandle.param().abi(), pinterfaceguid, dwflags, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppavailablenetworklist) } #[inline] pub unsafe fn WlanGetFilterList(hclienthandle: P0, wlanfilterlisttype: WLAN_FILTER_LIST_TYPE, preserved: Option<*const core::ffi::c_void>, ppnetworklist: *mut *mut DOT11_NETWORK_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), wlanfilterlisttype, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppnetworklist) + WlanGetFilterList(hclienthandle.param().abi(), wlanfilterlisttype, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppnetworklist) } #[inline] pub unsafe fn WlanGetInterfaceCapability(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, preserved: Option<*const core::ffi::c_void>, ppcapability: *mut *mut WLAN_INTERFACE_CAPABILITY) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppcapability) + WlanGetInterfaceCapability(hclienthandle.param().abi(), pinterfaceguid, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppcapability) } #[inline] pub unsafe fn WlanGetNetworkBssList(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, pdot11ssid: Option<*const DOT11_SSID>, dot11bsstype: DOT11_BSS_TYPE, bsecurityenabled: P1, preserved: Option<*const core::ffi::c_void>, ppwlanbsslist: *mut *mut WLAN_BSS_LIST) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, core::mem::transmute(pdot11ssid.unwrap_or(std::ptr::null())), dot11bsstype, bsecurityenabled.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppwlanbsslist) + WlanGetNetworkBssList(hclienthandle.param().abi(), pinterfaceguid, core::mem::transmute(pdot11ssid.unwrap_or(std::ptr::null())), dot11bsstype, bsecurityenabled.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppwlanbsslist) } #[inline] pub unsafe fn WlanGetProfile(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, preserved: Option<*const core::ffi::c_void>, pstrprofilexml: *mut windows_core::PWSTR, pdwflags: Option<*mut u32>, pdwgrantedaccess: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pstrprofilexml, core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) + WlanGetProfile(hclienthandle.param().abi(), pinterfaceguid, strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pstrprofilexml, core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WlanGetProfileCustomUserData(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, preserved: Option<*const core::ffi::c_void>, pdwdatasize: *mut u32, ppdata: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata) + WlanGetProfileCustomUserData(hclienthandle.param().abi(), pinterfaceguid, strprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata) } #[inline] pub unsafe fn WlanGetProfileList(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, preserved: Option<*const core::ffi::c_void>, ppprofilelist: *mut *mut WLAN_PROFILE_INFO_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppprofilelist) + WlanGetProfileList(hclienthandle.param().abi(), pinterfaceguid, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), ppprofilelist) } #[inline] pub unsafe fn WlanGetSecuritySettings(hclienthandle: P0, securableobject: WLAN_SECURABLE_OBJECT, pvaluetype: Option<*mut WLAN_OPCODE_VALUE_TYPE>, pstrcurrentsddl: *mut windows_core::PWSTR, pdwgrantedaccess: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), securableobject, core::mem::transmute(pvaluetype.unwrap_or(std::ptr::null_mut())), pstrcurrentsddl, pdwgrantedaccess) + WlanGetSecuritySettings(hclienthandle.param().abi(), securableobject, core::mem::transmute(pvaluetype.unwrap_or(std::ptr::null_mut())), pstrcurrentsddl, pdwgrantedaccess) } #[inline] pub unsafe fn WlanGetSupportedDeviceServices(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, ppdevsvcguidlist: *mut *mut WLAN_DEVICE_SERVICE_GUID_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, ppdevsvcguidlist) + WlanGetSupportedDeviceServices(hclienthandle.param().abi(), pinterfaceguid, ppdevsvcguidlist) } #[inline] pub unsafe fn WlanHostedNetworkForceStart(hclienthandle: P0, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkForceStart(hclienthandle.param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkForceStop(hclienthandle: P0, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkForceStop(hclienthandle.param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkInitSettings(hclienthandle: P0, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkInitSettings(hclienthandle.param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkQueryProperty(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), opcode, pdwdatasize, ppvdata, pwlanopcodevaluetype, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkQueryProperty(hclienthandle.param().abi(), opcode, pdwdatasize, ppvdata, pwlanopcodevaluetype, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkQuerySecondaryKey(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pdwkeylength, ppuckeydata, pbispassphrase, pbpersistent, core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkQuerySecondaryKey(hclienthandle.param().abi(), pdwkeylength, ppuckeydata, pbispassphrase, pbpersistent, core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkQueryStatus(hclienthandle: P0, ppwlanhostednetworkstatus: *mut *mut WLAN_HOSTED_NETWORK_STATUS, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), ppwlanhostednetworkstatus, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkQueryStatus(hclienthandle.param().abi(), ppwlanhostednetworkstatus, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkRefreshSecuritySettings(hclienthandle: P0, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkRefreshSecuritySettings(hclienthandle.param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkSetProperty(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), opcode, dwdatasize, pvdata, core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkSetProperty(hclienthandle.param().abi(), opcode, dwdatasize, pvdata, core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkSetSecondaryKey(hclienthandle: P0, puckeydata: &[u8], bispassphrase: P1, bpersistent: P2, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hclienthandle.into_param().abi(), puckeydata.len().try_into().unwrap(), core::mem::transmute(puckeydata.as_ptr()), bispassphrase.into_param().abi(), bpersistent.into_param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkSetSecondaryKey(hclienthandle.param().abi(), puckeydata.len().try_into().unwrap(), core::mem::transmute(puckeydata.as_ptr()), bispassphrase.param().abi(), bpersistent.param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkStartUsing(hclienthandle: P0, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkStartUsing(hclienthandle.param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanHostedNetworkStopUsing(hclienthandle: P0, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + WlanHostedNetworkStopUsing(hclienthandle.param().abi(), core::mem::transmute(pfailreason.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanIhvControl(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, r#type, dwinbuffersize, pinbuffer, dwoutbuffersize, core::mem::transmute(poutbuffer.unwrap_or(std::ptr::null_mut())), pdwbytesreturned) + WlanIhvControl(hclienthandle.param().abi(), pinterfaceguid, r#type, dwinbuffersize, pinbuffer, dwoutbuffersize, core::mem::transmute(poutbuffer.unwrap_or(std::ptr::null_mut())), 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 { @@ -315,18 +315,18 @@ pub unsafe fn WlanOpenHandle(dwclientversion: u32, preserved: Option<*const core #[inline] pub unsafe fn WlanQueryAutoConfigParameter(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), opcode, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata, core::mem::transmute(pwlanopcodevaluetype.unwrap_or(std::ptr::null_mut()))) + WlanQueryAutoConfigParameter(hclienthandle.param().abi(), opcode, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata, core::mem::transmute(pwlanopcodevaluetype.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WlanQueryInterface(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, opcode, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata, core::mem::transmute(pwlanopcodevaluetype.unwrap_or(std::ptr::null_mut()))) + WlanQueryInterface(hclienthandle.param().abi(), pinterfaceguid, opcode, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata, core::mem::transmute(pwlanopcodevaluetype.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WlanReasonCodeToString(dwreasoncode: u32, pstringbuffer: &[u16], preserved: Option<*const core::ffi::c_void>) -> u32 { @@ -336,165 +336,165 @@ pub unsafe fn WlanReasonCodeToString(dwreasoncode: u32, pstringbuffer: &[u16], p #[inline] pub unsafe fn WlanRegisterDeviceServiceNotification(hclienthandle: P0, pdevsvcguidlist: Option<*const WLAN_DEVICE_SERVICE_GUID_LIST>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterDeviceServiceNotification(hclienthandle : super::super::Foundation:: HANDLE, pdevsvcguidlist : *const WLAN_DEVICE_SERVICE_GUID_LIST) -> u32); - WlanRegisterDeviceServiceNotification(hclienthandle.into_param().abi(), core::mem::transmute(pdevsvcguidlist.unwrap_or(std::ptr::null()))) + WlanRegisterDeviceServiceNotification(hclienthandle.param().abi(), core::mem::transmute(pdevsvcguidlist.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanRegisterNotification(hclienthandle: P0, dwnotifsource: WLAN_NOTIFICATION_SOURCES, bignoreduplicate: P1, funccallback: WLAN_NOTIFICATION_CALLBACK, pcallbackcontext: Option<*const core::ffi::c_void>, preserved: Option<*const core::ffi::c_void>, pdwprevnotifsource: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hclienthandle.into_param().abi(), dwnotifsource, bignoreduplicate.into_param().abi(), funccallback, core::mem::transmute(pcallbackcontext.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), core::mem::transmute(pdwprevnotifsource.unwrap_or(std::ptr::null_mut()))) + WlanRegisterNotification(hclienthandle.param().abi(), dwnotifsource, bignoreduplicate.param().abi(), funccallback, core::mem::transmute(pcallbackcontext.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), core::mem::transmute(pdwprevnotifsource.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WlanRegisterVirtualStationNotification(hclienthandle: P0, bregister: P1, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hclienthandle.into_param().abi(), bregister.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanRegisterVirtualStationNotification(hclienthandle.param().abi(), bregister.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanRenameProfile(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, stroldprofilename: P1, strnewprofilename: P2, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hclienthandle.into_param().abi(), pinterfaceguid, stroldprofilename.into_param().abi(), strnewprofilename.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanRenameProfile(hclienthandle.param().abi(), pinterfaceguid, stroldprofilename.param().abi(), strnewprofilename.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSaveTemporaryProfile(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, stralluserprofilesecurity: P2, dwflags: u32, boverwrite: P3, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_param().abi(), stralluserprofilesecurity.into_param().abi(), dwflags, boverwrite.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSaveTemporaryProfile(hclienthandle.param().abi(), pinterfaceguid, strprofilename.param().abi(), stralluserprofilesecurity.param().abi(), dwflags, boverwrite.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanScan(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, pdot11ssid: Option<*const DOT11_SSID>, piedata: Option<*const WLAN_RAW_DATA>, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, core::mem::transmute(pdot11ssid.unwrap_or(std::ptr::null())), core::mem::transmute(piedata.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanScan(hclienthandle.param().abi(), pinterfaceguid, core::mem::transmute(pdot11ssid.unwrap_or(std::ptr::null())), core::mem::transmute(piedata.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetAutoConfigParameter(hclienthandle: P0, opcode: WLAN_AUTOCONF_OPCODE, dwdatasize: u32, pdata: *const core::ffi::c_void, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), opcode, dwdatasize, pdata, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetAutoConfigParameter(hclienthandle.param().abi(), opcode, dwdatasize, pdata, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetFilterList(hclienthandle: P0, wlanfilterlisttype: WLAN_FILTER_LIST_TYPE, pnetworklist: Option<*const DOT11_NETWORK_LIST>, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), wlanfilterlisttype, core::mem::transmute(pnetworklist.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetFilterList(hclienthandle.param().abi(), wlanfilterlisttype, core::mem::transmute(pnetworklist.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetInterface(hclienthandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, opcode, dwdatasize, pdata, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetInterface(hclienthandle.param().abi(), pinterfaceguid, opcode, dwdatasize, pdata, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetProfile(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, dwflags: u32, strprofilexml: P1, stralluserprofilesecurity: P2, boverwrite: P3, preserved: Option<*const core::ffi::c_void>, pdwreasoncode: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hclienthandle.into_param().abi(), pinterfaceguid, dwflags, strprofilexml.into_param().abi(), stralluserprofilesecurity.into_param().abi(), boverwrite.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwreasoncode) + WlanSetProfile(hclienthandle.param().abi(), pinterfaceguid, dwflags, strprofilexml.param().abi(), stralluserprofilesecurity.param().abi(), boverwrite.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwreasoncode) } #[inline] pub unsafe fn WlanSetProfileCustomUserData(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, pdata: &[u8], preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_param().abi(), pdata.len().try_into().unwrap(), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetProfileCustomUserData(hclienthandle.param().abi(), pinterfaceguid, strprofilename.param().abi(), pdata.len().try_into().unwrap(), core::mem::transmute(pdata.as_ptr()), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security_ExtensibleAuthenticationProtocol")] #[inline] pub unsafe fn WlanSetProfileEapUserData(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, eaptype: super::super::Security::ExtensibleAuthenticationProtocol::EAP_METHOD_TYPE, dwflags: WLAN_SET_EAPHOST_FLAGS, pbeapuserdata: Option<&[u8]>, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_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(std::ptr::null()))) + WlanSetProfileEapUserData(hclienthandle.param().abi(), 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(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetProfileEapXmlUserData(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, dwflags: WLAN_SET_EAPHOST_FLAGS, streapxmluserdata: P2, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_param().abi(), dwflags, streapxmluserdata.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetProfileEapXmlUserData(hclienthandle.param().abi(), pinterfaceguid, strprofilename.param().abi(), dwflags, streapxmluserdata.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetProfileList(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilenames: &[windows_core::PCWSTR], preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilenames.len().try_into().unwrap(), core::mem::transmute(strprofilenames.as_ptr()), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetProfileList(hclienthandle.param().abi(), pinterfaceguid, strprofilenames.len().try_into().unwrap(), core::mem::transmute(strprofilenames.as_ptr()), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetProfilePosition(hclienthandle: P0, pinterfaceguid: *const windows_core::GUID, strprofilename: P1, dwposition: u32, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), pinterfaceguid, strprofilename.into_param().abi(), dwposition, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetProfilePosition(hclienthandle.param().abi(), pinterfaceguid, strprofilename.param().abi(), dwposition, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetPsdIEDataList(hclienthandle: P0, strformat: P1, ppsdiedatalist: Option<*const WLAN_RAW_DATA_LIST>, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hclienthandle.into_param().abi(), strformat.into_param().abi(), core::mem::transmute(ppsdiedatalist.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WlanSetPsdIEDataList(hclienthandle.param().abi(), strformat.param().abi(), core::mem::transmute(ppsdiedatalist.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WlanSetSecuritySettings(hclienthandle: P0, securableobject: WLAN_SECURABLE_OBJECT, strmodifiedsddl: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hclienthandle.into_param().abi(), securableobject, strmodifiedsddl.into_param().abi()) + WlanSetSecuritySettings(hclienthandle.param().abi(), securableobject, strmodifiedsddl.param().abi()) } #[inline] pub unsafe fn WlanUIEditProfile(dwclientversion: u32, wstrprofilename: P0, pinterfaceguid: *const windows_core::GUID, hwnd: P1, wlstartpage: WL_DISPLAY_PAGES, preserved: Option<*const core::ffi::c_void>, pwlanreasoncode: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(dwclientversion, wstrprofilename.into_param().abi(), pinterfaceguid, hwnd.into_param().abi(), wlstartpage, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), core::mem::transmute(pwlanreasoncode.unwrap_or(std::ptr::null_mut()))) + WlanUIEditProfile(dwclientversion, wstrprofilename.param().abi(), pinterfaceguid, hwnd.param().abi(), wlstartpage, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), core::mem::transmute(pwlanreasoncode.unwrap_or(std::ptr::null_mut()))) } windows_core::imp::define_interface!(IDot11AdHocInterface, IDot11AdHocInterface_Vtbl, 0x8f10cc2b_cf0d_42a0_acbe_e2de7007384d); windows_core::imp::interface_hierarchy!(IDot11AdHocInterface, windows_core::IUnknown); @@ -561,21 +561,21 @@ windows_core::imp::interface_hierarchy!(IDot11AdHocManager, windows_core::IUnkno impl IDot11AdHocManager { pub unsafe fn CreateNetwork(&self, name: P0, password: P1, geographicalid: i32, pinterface: P2, psecurity: P3, pcontextguid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNetwork)(windows_core::Interface::as_raw(self), name.into_param().abi(), password.into_param().abi(), geographicalid, pinterface.into_param().abi(), psecurity.into_param().abi(), 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: P1, fmakesavedprofileuserspecific: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitCreatedNetwork)(windows_core::Interface::as_raw(self), piadhoc.into_param().abi(), fsaveprofile.into_param().abi(), fmakesavedprofileuserspecific.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CommitCreatedNetwork)(windows_core::Interface::as_raw(self), piadhoc.param().abi(), fsaveprofile.param().abi(), fmakesavedprofileuserspecific.param().abi()).ok() } pub unsafe fn GetIEnumDot11AdHocNetworks(&self, pcontextguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -604,18 +604,18 @@ windows_core::imp::interface_hierarchy!(IDot11AdHocManagerNotificationSink, wind impl IDot11AdHocManagerNotificationSink { pub unsafe fn OnNetworkAdd(&self, piadhocnetwork: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNetworkAdd)(windows_core::Interface::as_raw(self), piadhocnetwork.into_param().abi()).ok() + (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), signature).ok() } pub unsafe fn OnInterfaceAdd(&self, piadhocinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInterfaceAdd)(windows_core::Interface::as_raw(self), piadhocinterface.into_param().abi()).ok() + (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), signature).ok() @@ -668,11 +668,11 @@ impl IDot11AdHocNetwork { } pub unsafe fn Connect(&self, passphrase: P0, geographicalid: i32, fsaveprofile: P1, fmakesavedprofileuserspecific: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), passphrase.into_param().abi(), geographicalid, fsaveprofile.into_param().abi(), fmakesavedprofileuserspecific.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), passphrase.param().abi(), geographicalid, fsaveprofile.param().abi(), fmakesavedprofileuserspecific.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(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 162fcce48c..32435da75f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs @@ -22,9 +22,9 @@ impl IWCNDevice { } pub unsafe fn Connect(&self, pnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() + (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), attributetype, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), pdwbufferused).ok() @@ -41,9 +41,9 @@ impl IWCNDevice { } pub unsafe fn SetNetworkProfile(&self, pszprofilexml: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkProfile)(windows_core::Interface::as_raw(self), pszprofilexml.into_param().abi()).ok() + (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), pvendorextspec, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr()), pdwbufferused).ok() 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 1b1cbdd59b..4efcfbf0ad 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs @@ -6,21 +6,21 @@ pub unsafe fn FreeInterfaceContextTable(interfacecontexttable: *const NET_INTERF #[inline] pub unsafe fn GetInterfaceContextTableForHostName(hostname: P0, proxyname: P1, flags: u32, connectionprofilefilterrawdata: Option<&[u8]>) -> windows_core::Result<*mut NET_INTERFACE_CONTEXT_TABLE> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetInterfaceContextTableForHostName(hostname.into_param().abi(), proxyname.into_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(|| 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(|| result__) } #[inline] pub unsafe fn OnDemandGetRoutingHint(destinationhostname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ondemandconnroutehelper.dll" "system" fn OnDemandGetRoutingHint(destinationhostname : windows_core::PCWSTR, interfaceindex : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - OnDemandGetRoutingHint(destinationhostname.into_param().abi(), &mut result__).map(|| result__) + OnDemandGetRoutingHint(destinationhostname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn OnDemandRegisterNotification(callback: ONDEMAND_NOTIFICATION_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result { @@ -31,10 +31,10 @@ pub unsafe fn OnDemandRegisterNotification(callback: ONDEMAND_NOTIFICATION_CALLB #[inline] pub unsafe fn OnDemandUnRegisterNotification(registrationhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ondemandconnroutehelper.dll" "system" fn OnDemandUnRegisterNotification(registrationhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - OnDemandUnRegisterNotification(registrationhandle.into_param().abi()).ok() + OnDemandUnRegisterNotification(registrationhandle.param().abi()).ok() } #[inline] pub unsafe fn WcmFreeMemory(pmemory: *mut core::ffi::c_void) { @@ -49,26 +49,26 @@ pub unsafe fn WcmGetProfileList(preserved: Option<*const core::ffi::c_void>, ppp #[inline] pub unsafe fn WcmQueryProperty(pinterface: Option<*const windows_core::GUID>, strprofilename: P0, property: WCM_PROPERTY, preserved: Option<*const core::ffi::c_void>, pdwdatasize: *mut u32, ppdata: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), strprofilename.into_param().abi(), property, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata) + WcmQueryProperty(core::mem::transmute(pinterface.unwrap_or(std::ptr::null())), strprofilename.param().abi(), property, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), pdwdatasize, ppdata) } #[inline] pub unsafe fn WcmSetProfileList(pprofilelist: *const WCM_PROFILE_INFO_LIST, dwposition: u32, fignoreunknownprofiles: P0, preserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(pprofilelist, dwposition, fignoreunknownprofiles.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) + WcmSetProfileList(pprofilelist, dwposition, fignoreunknownprofiles.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WcmSetProperty(pinterface: Option<*const windows_core::GUID>, strprofilename: P0, property: WCM_PROPERTY, preserved: Option<*const core::ffi::c_void>, pbdata: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), strprofilename.into_param().abi(), property, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), 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(std::ptr::null())), strprofilename.param().abi(), property, core::mem::transmute(preserved.unwrap_or(std::ptr::null())), 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()))) } pub const NET_INTERFACE_FLAG_CONNECT_IF_NEEDED: u32 = 1u32; pub const NET_INTERFACE_FLAG_NONE: u32 = 0u32; 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 52c0437130..9b4b1452e9 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs @@ -2,181 +2,181 @@ #[inline] pub unsafe fn FwpmCalloutAdd0(enginehandle: P0, callout: *const FWPM_CALLOUT0, sd: P1, id: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), callout, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmCalloutAdd0(enginehandle.param().abi(), callout, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FwpmCalloutCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_CALLOUT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmCalloutCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmCalloutDeleteById0(enginehandle: P0, id: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u32) -> u32); - FwpmCalloutDeleteById0(enginehandle.into_param().abi(), id) + FwpmCalloutDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn FwpmCalloutDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmCalloutDeleteByKey0(enginehandle.into_param().abi(), key) + FwpmCalloutDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmCalloutDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmCalloutDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmCalloutDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[inline] pub unsafe fn FwpmCalloutEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_CALLOUT0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmCalloutEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn FwpmCalloutGetById0(enginehandle: P0, id: u32, callout: *mut *mut FWPM_CALLOUT0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u32, callout : *mut *mut FWPM_CALLOUT0) -> u32); - FwpmCalloutGetById0(enginehandle.into_param().abi(), id, callout) + FwpmCalloutGetById0(enginehandle.param().abi(), id, callout) } #[inline] pub unsafe fn FwpmCalloutGetByKey0(enginehandle: P0, key: *const windows_core::GUID, callout: *mut *mut FWPM_CALLOUT0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, callout) + FwpmCalloutGetByKey0(enginehandle.param().abi(), key, callout) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmCalloutGetSecurityInfoByKey0(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmCalloutGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmCalloutSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmCalloutSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmCalloutSubscribeChanges0(enginehandle: P0, subscription: *const FWPM_CALLOUT_SUBSCRIPTION0, callback: FWPM_CALLOUT_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) + FwpmCalloutSubscribeChanges0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) } #[inline] pub unsafe fn FwpmCalloutSubscriptionsGet0(enginehandle: P0, entries: *mut *mut *mut FWPM_CALLOUT_SUBSCRIPTION0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + FwpmCalloutSubscriptionsGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn FwpmCalloutUnsubscribeChanges0(enginehandle: P0, changehandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmCalloutUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmCalloutUnsubscribeChanges0(enginehandle.into_param().abi(), changehandle.into_param().abi()) + FwpmCalloutUnsubscribeChanges0(enginehandle.param().abi(), changehandle.param().abi()) } #[inline] pub unsafe fn FwpmConnectionCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_CONNECTION_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmConnectionCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmConnectionDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmConnectionDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmConnectionDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[inline] pub unsafe fn FwpmConnectionEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_CONNECTION0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmConnectionEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn FwpmConnectionGetById0(enginehandle: P0, id: u64, connection: *mut *mut FWPM_CONNECTION0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, connection : *mut *mut FWPM_CONNECTION0) -> u32); - FwpmConnectionGetById0(enginehandle.into_param().abi(), id, connection) + FwpmConnectionGetById0(enginehandle.param().abi(), id, connection) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmConnectionGetSecurityInfo0(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmConnectionGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmConnectionSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmConnectionSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmConnectionSubscribe0(enginehandle: P0, subscription: *const FWPM_CONNECTION_SUBSCRIPTION0, callback: FWPM_CONNECTION_CALLBACK0, context: Option<*const core::ffi::c_void>, eventshandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) + FwpmConnectionSubscribe0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) } #[inline] pub unsafe fn FwpmConnectionUnsubscribe0(enginehandle: P0, eventshandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmConnectionUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, eventshandle : super::super::Foundation:: HANDLE) -> u32); - FwpmConnectionUnsubscribe0(enginehandle.into_param().abi(), eventshandle.into_param().abi()) + FwpmConnectionUnsubscribe0(enginehandle.param().abi(), eventshandle.param().abi()) } #[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 { @@ -186,180 +186,180 @@ pub unsafe fn FwpmDynamicKeywordSubscribe0(flags: u32, callback: FWPM_DYNAMIC_KE #[inline] pub unsafe fn FwpmDynamicKeywordUnsubscribe0(subscriptionhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmDynamicKeywordUnsubscribe0(subscriptionhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmDynamicKeywordUnsubscribe0(subscriptionhandle.into_param().abi()) + FwpmDynamicKeywordUnsubscribe0(subscriptionhandle.param().abi()) } #[inline] pub unsafe fn FwpmEngineClose0(enginehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineClose0(enginehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmEngineClose0(enginehandle.into_param().abi()) + FwpmEngineClose0(enginehandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineGetOption0(enginehandle: P0, option: FWPM_ENGINE_OPTION, value: *mut *mut FWP_VALUE0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineGetOption0(enginehandle : super::super::Foundation:: HANDLE, option : FWPM_ENGINE_OPTION, value : *mut *mut FWP_VALUE0) -> u32); - FwpmEngineGetOption0(enginehandle.into_param().abi(), option, value) + FwpmEngineGetOption0(enginehandle.param().abi(), option, value) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmEngineGetSecurityInfo0(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmEngineGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Rpc"))] #[inline] pub unsafe fn FwpmEngineOpen0(servername: P0, authnservice: u32, authidentity: Option<*const super::super::System::Rpc::SEC_WINNT_AUTH_IDENTITY_W>, session: Option<*const FWPM_SESSION0>, enginehandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), authnservice, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), core::mem::transmute(session.unwrap_or(std::ptr::null())), enginehandle) + FwpmEngineOpen0(servername.param().abi(), authnservice, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), core::mem::transmute(session.unwrap_or(std::ptr::null())), enginehandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineSetOption0(enginehandle: P0, option: FWPM_ENGINE_OPTION, newvalue: *const FWP_VALUE0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmEngineSetOption0(enginehandle : super::super::Foundation:: HANDLE, option : FWPM_ENGINE_OPTION, newvalue : *const FWP_VALUE0) -> u32); - FwpmEngineSetOption0(enginehandle.into_param().abi(), option, newvalue) + FwpmEngineSetOption0(enginehandle.param().abi(), option, newvalue) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmEngineSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmEngineSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterAdd0(enginehandle: P0, filter: *const FWPM_FILTER0, sd: P1, id: Option<*mut u64>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), filter, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmFilterAdd0(enginehandle.param().abi(), filter, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_FILTER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmFilterCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmFilterDeleteById0(enginehandle: P0, id: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - FwpmFilterDeleteById0(enginehandle.into_param().abi(), id) + FwpmFilterDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn FwpmFilterDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmFilterDeleteByKey0(enginehandle.into_param().abi(), key) + FwpmFilterDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmFilterDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmFilterDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmFilterDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_FILTER0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmFilterEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetById0(enginehandle: P0, id: u64, filter: *mut *mut FWPM_FILTER0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, filter : *mut *mut FWPM_FILTER0) -> u32); - FwpmFilterGetById0(enginehandle.into_param().abi(), id, filter) + FwpmFilterGetById0(enginehandle.param().abi(), id, filter) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetByKey0(enginehandle: P0, key: *const windows_core::GUID, filter: *mut *mut FWPM_FILTER0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, filter) + FwpmFilterGetByKey0(enginehandle.param().abi(), key, filter) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmFilterGetSecurityInfoByKey0(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmFilterGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmFilterSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSubscribeChanges0(enginehandle: P0, subscription: *const FWPM_FILTER_SUBSCRIPTION0, callback: FWPM_FILTER_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) + FwpmFilterSubscribeChanges0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmFilterSubscriptionsGet0(enginehandle: P0, entries: *mut *mut *mut FWPM_FILTER_SUBSCRIPTION0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + FwpmFilterSubscriptionsGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn FwpmFilterUnsubscribeChanges0(enginehandle: P0, changehandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmFilterUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmFilterUnsubscribeChanges0(enginehandle.into_param().abi(), changehandle.into_param().abi()) + FwpmFilterUnsubscribeChanges0(enginehandle.param().abi(), changehandle.param().abi()) } #[inline] pub unsafe fn FwpmFreeMemory0(p: *mut *mut core::ffi::c_void) { @@ -369,1264 +369,1264 @@ pub unsafe fn FwpmFreeMemory0(p: *mut *mut core::ffi::c_void) { #[inline] pub unsafe fn FwpmGetAppIdFromFileName0(filename: P0, appid: *mut *mut FWP_BYTE_BLOB) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmGetAppIdFromFileName0(filename : windows_core::PCWSTR, appid : *mut *mut FWP_BYTE_BLOB) -> u32); - FwpmGetAppIdFromFileName0(filename.into_param().abi(), appid) + FwpmGetAppIdFromFileName0(filename.param().abi(), appid) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmIPsecTunnelAdd0(enginehandle: P0, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT0>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT0, filterconditions: &[FWPM_FILTER_CONDITION0], sd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), sd.into_param().abi()) + FwpmIPsecTunnelAdd0(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), sd.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmIPsecTunnelAdd1(enginehandle: P0, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT1>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT1, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.into_param().abi()) + FwpmIPsecTunnelAdd1(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmIPsecTunnelAdd2(enginehandle: P0, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT2>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT2, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.into_param().abi()) + FwpmIPsecTunnelAdd2(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmIPsecTunnelAdd3(enginehandle: P0, flags: u32, mainmodepolicy: Option<*const FWPM_PROVIDER_CONTEXT3>, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT3, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: Option<*const windows_core::GUID>, sd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.into_param().abi()) + FwpmIPsecTunnelAdd3(enginehandle.param().abi(), flags, core::mem::transmute(mainmodepolicy.unwrap_or(std::ptr::null())), tunnelpolicy, filterconditions.len().try_into().unwrap(), core::mem::transmute(filterconditions.as_ptr()), core::mem::transmute(keymodkey.unwrap_or(std::ptr::null())), sd.param().abi()) } #[inline] pub unsafe fn FwpmIPsecTunnelDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmIPsecTunnelDeleteByKey0(enginehandle.into_param().abi(), key) + FwpmIPsecTunnelDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmLayerCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_LAYER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmLayerCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmLayerDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmLayerDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmLayerDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[inline] pub unsafe fn FwpmLayerEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_LAYER0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmLayerEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn FwpmLayerGetById0(enginehandle: P0, id: u16, layer: *mut *mut FWPM_LAYER0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u16, layer : *mut *mut FWPM_LAYER0) -> u32); - FwpmLayerGetById0(enginehandle.into_param().abi(), id, layer) + FwpmLayerGetById0(enginehandle.param().abi(), id, layer) } #[inline] pub unsafe fn FwpmLayerGetByKey0(enginehandle: P0, key: *const windows_core::GUID, layer: *mut *mut FWPM_LAYER0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, layer) + FwpmLayerGetByKey0(enginehandle.param().abi(), key, layer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmLayerGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmLayerGetSecurityInfoByKey0(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmLayerGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmLayerSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmLayerSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_NET_EVENT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmNetEventCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmNetEventDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmNetEventDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT1, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum2(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT2, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum2(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum3(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT3, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum3(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum4(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT4, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum4(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventEnum5(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT5, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmNetEventEnum5(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) + FwpmNetEventSubscribe0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe1(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) + FwpmNetEventSubscribe1(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe2(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) + FwpmNetEventSubscribe2(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe3(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) + FwpmNetEventSubscribe3(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscribe4(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) + FwpmNetEventSubscribe4(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventSubscriptionsGet0(enginehandle: P0, entries: *mut *mut *mut FWPM_NET_EVENT_SUBSCRIPTION0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + FwpmNetEventSubscriptionsGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn FwpmNetEventUnsubscribe0(enginehandle: P0, eventshandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, eventshandle : super::super::Foundation:: HANDLE) -> u32); - FwpmNetEventUnsubscribe0(enginehandle.into_param().abi(), eventshandle.into_param().abi()) + FwpmNetEventUnsubscribe0(enginehandle.param().abi(), eventshandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmNetEventsGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmNetEventsGetSecurityInfo0(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmNetEventsGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmNetEventsSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmNetEventsSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderAdd0(enginehandle: P0, provider: *const FWPM_PROVIDER0, sd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), provider, sd.into_param().abi()) + FwpmProviderAdd0(enginehandle.param().abi(), provider, sd.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd0(enginehandle: P0, providercontext: *const FWPM_PROVIDER_CONTEXT0, sd: P1, id: Option<*mut u64>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd0(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd1(enginehandle: P0, providercontext: *const FWPM_PROVIDER_CONTEXT1, sd: P1, id: Option<*mut u64>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd1(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd2(enginehandle: P0, providercontext: *const FWPM_PROVIDER_CONTEXT2, sd: P1, id: Option<*mut u64>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd2(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextAdd3(enginehandle: P0, providercontext: *const FWPM_PROVIDER_CONTEXT3, sd: P1, id: Option<*mut u64>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), providercontext, sd.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) + FwpmProviderContextAdd3(enginehandle.param().abi(), providercontext, sd.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FwpmProviderContextCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmProviderContextCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmProviderContextDeleteById0(enginehandle: P0, id: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - FwpmProviderContextDeleteById0(enginehandle.into_param().abi(), id) + FwpmProviderContextDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn FwpmProviderContextDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmProviderContextDeleteByKey0(enginehandle.into_param().abi(), key) + FwpmProviderContextDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmProviderContextDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderContextDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmProviderContextDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT1, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum2(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT2, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum2(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextEnum3(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT3, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderContextEnum3(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById0(enginehandle: P0, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32); - FwpmProviderContextGetById0(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById0(enginehandle.param().abi(), id, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById1(enginehandle: P0, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById1(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT1) -> u32); - FwpmProviderContextGetById1(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById1(enginehandle.param().abi(), id, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById2(enginehandle: P0, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById2(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32); - FwpmProviderContextGetById2(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById2(enginehandle.param().abi(), id, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetById3(enginehandle: P0, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById3(enginehandle : super::super::Foundation:: HANDLE, id : u64, providercontext : *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32); - FwpmProviderContextGetById3(enginehandle.into_param().abi(), id, providercontext) + FwpmProviderContextGetById3(enginehandle.param().abi(), id, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey0(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey0(enginehandle.param().abi(), key, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey1(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey1(enginehandle.param().abi(), key, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey2(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey2(enginehandle.param().abi(), key, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetByKey3(enginehandle: P0, key: *const windows_core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, providercontext) + FwpmProviderContextGetByKey3(enginehandle.param().abi(), key, providercontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmProviderContextGetSecurityInfoByKey0(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmProviderContextGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderContextSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmProviderContextSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmProviderContextSubscribeChanges0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) + FwpmProviderContextSubscribeChanges0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) } #[inline] pub unsafe fn FwpmProviderContextSubscriptionsGet0(enginehandle: P0, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT_SUBSCRIPTION0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + FwpmProviderContextSubscriptionsGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn FwpmProviderContextUnsubscribeChanges0(enginehandle: P0, changehandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderContextUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderContextUnsubscribeChanges0(enginehandle.into_param().abi(), changehandle.into_param().abi()) + FwpmProviderContextUnsubscribeChanges0(enginehandle.param().abi(), changehandle.param().abi()) } #[inline] pub unsafe fn FwpmProviderCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_PROVIDER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmProviderCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmProviderDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmProviderDeleteByKey0(enginehandle.into_param().abi(), key) + FwpmProviderDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmProviderDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmProviderDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[inline] pub unsafe fn FwpmProviderEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmProviderEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn FwpmProviderGetByKey0(enginehandle: P0, key: *const windows_core::GUID, provider: *mut *mut FWPM_PROVIDER0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, provider) + FwpmProviderGetByKey0(enginehandle.param().abi(), key, provider) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmProviderGetSecurityInfoByKey0(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmProviderGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmProviderSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmProviderSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmProviderSubscribeChanges0(enginehandle: P0, subscription: *const FWPM_PROVIDER_SUBSCRIPTION0, callback: FWPM_PROVIDER_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) + FwpmProviderSubscribeChanges0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) } #[inline] pub unsafe fn FwpmProviderSubscriptionsGet0(enginehandle: P0, entries: *mut *mut *mut FWPM_PROVIDER_SUBSCRIPTION0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + FwpmProviderSubscriptionsGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn FwpmProviderUnsubscribeChanges0(enginehandle: P0, changehandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmProviderUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmProviderUnsubscribeChanges0(enginehandle.into_param().abi(), changehandle.into_param().abi()) + FwpmProviderUnsubscribeChanges0(enginehandle.param().abi(), changehandle.param().abi()) } #[inline] pub unsafe fn FwpmSessionCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_SESSION_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmSessionCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmSessionDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSessionDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmSessionDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmSessionDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSessionEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_SESSION0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmSessionEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerAdd0(enginehandle: P0, sublayer: *const FWPM_SUBLAYER0, sd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), sublayer, sd.into_param().abi()) + FwpmSubLayerAdd0(enginehandle.param().abi(), sublayer, sd.param().abi()) } #[inline] pub unsafe fn FwpmSubLayerCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const FWPM_SUBLAYER_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + FwpmSubLayerCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn FwpmSubLayerDeleteByKey0(enginehandle: P0, key: *const windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDeleteByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID) -> u32); - FwpmSubLayerDeleteByKey0(enginehandle.into_param().abi(), key) + FwpmSubLayerDeleteByKey0(enginehandle.param().abi(), key) } #[inline] pub unsafe fn FwpmSubLayerDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmSubLayerDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + FwpmSubLayerDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[inline] pub unsafe fn FwpmSubLayerEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut FWPM_SUBLAYER0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + FwpmSubLayerEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn FwpmSubLayerGetByKey0(enginehandle: P0, key: *const windows_core::GUID, sublayer: *mut *mut FWPM_SUBLAYER0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), key, sublayer) + FwpmSubLayerGetByKey0(enginehandle.param().abi(), key, sublayer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle: P0, key: Option<*const windows_core::GUID>, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle : super::super::Foundation:: HANDLE, key : *const windows_core::GUID, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmSubLayerGetSecurityInfoByKey0(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmSubLayerGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmSubLayerSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmSubLayerSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn FwpmSubLayerSubscribeChanges0(enginehandle: P0, subscription: *const FWPM_SUBLAYER_SUBSCRIPTION0, callback: FWPM_SUBLAYER_CHANGE_CALLBACK0, context: Option<*const core::ffi::c_void>, changehandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) + FwpmSubLayerSubscribeChanges0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), changehandle) } #[inline] pub unsafe fn FwpmSubLayerSubscriptionsGet0(enginehandle: P0, entries: *mut *mut *mut FWPM_SUBLAYER_SUBSCRIPTION0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + FwpmSubLayerSubscriptionsGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn FwpmSubLayerUnsubscribeChanges0(enginehandle: P0, changehandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSubLayerUnsubscribeChanges0(enginehandle : super::super::Foundation:: HANDLE, changehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmSubLayerUnsubscribeChanges0(enginehandle.into_param().abi(), changehandle.into_param().abi()) + FwpmSubLayerUnsubscribeChanges0(enginehandle.param().abi(), changehandle.param().abi()) } #[inline] pub unsafe fn FwpmSystemPortsGet0(enginehandle: P0, sysports: *mut *mut FWPM_SYSTEM_PORTS0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSystemPortsGet0(enginehandle : super::super::Foundation:: HANDLE, sysports : *mut *mut FWPM_SYSTEM_PORTS0) -> u32); - FwpmSystemPortsGet0(enginehandle.into_param().abi(), sysports) + FwpmSystemPortsGet0(enginehandle.param().abi(), sysports) } #[inline] pub unsafe fn FwpmSystemPortsSubscribe0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null())), callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), sysportshandle) + FwpmSystemPortsSubscribe0(enginehandle.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null())), callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), sysportshandle) } #[inline] pub unsafe fn FwpmSystemPortsUnsubscribe0(enginehandle: P0, sysportshandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmSystemPortsUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, sysportshandle : super::super::Foundation:: HANDLE) -> u32); - FwpmSystemPortsUnsubscribe0(enginehandle.into_param().abi(), sysportshandle.into_param().abi()) + FwpmSystemPortsUnsubscribe0(enginehandle.param().abi(), sysportshandle.param().abi()) } #[inline] pub unsafe fn FwpmTransactionAbort0(enginehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionAbort0(enginehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmTransactionAbort0(enginehandle.into_param().abi()) + FwpmTransactionAbort0(enginehandle.param().abi()) } #[inline] pub unsafe fn FwpmTransactionBegin0(enginehandle: P0, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionBegin0(enginehandle : super::super::Foundation:: HANDLE, flags : u32) -> u32); - FwpmTransactionBegin0(enginehandle.into_param().abi(), flags) + FwpmTransactionBegin0(enginehandle.param().abi(), flags) } #[inline] pub unsafe fn FwpmTransactionCommit0(enginehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmTransactionCommit0(enginehandle : super::super::Foundation:: HANDLE) -> u32); - FwpmTransactionCommit0(enginehandle.into_param().abi()) + FwpmTransactionCommit0(enginehandle.param().abi()) } #[inline] pub unsafe fn FwpmvSwitchEventSubscribe0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), subscriptionhandle) + FwpmvSwitchEventSubscribe0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), subscriptionhandle) } #[inline] pub unsafe fn FwpmvSwitchEventUnsubscribe0(enginehandle: P0, subscriptionhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, subscriptionhandle : super::super::Foundation:: HANDLE) -> u32); - FwpmvSwitchEventUnsubscribe0(enginehandle.into_param().abi(), subscriptionhandle.into_param().abi()) + FwpmvSwitchEventUnsubscribe0(enginehandle.param().abi(), subscriptionhandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - FwpmvSwitchEventsGetSecurityInfo0(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + FwpmvSwitchEventsGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FwpmvSwitchEventsSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + FwpmvSwitchEventsSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IPsecDospGetSecurityInfo0(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + IPsecDospGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[inline] pub unsafe fn IPsecDospGetStatistics0(enginehandle: P0, idpstatistics: *mut IPSEC_DOSP_STATISTICS0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospGetStatistics0(enginehandle : super::super::Foundation:: HANDLE, idpstatistics : *mut IPSEC_DOSP_STATISTICS0) -> u32); - IPsecDospGetStatistics0(enginehandle.into_param().abi(), idpstatistics) + IPsecDospGetStatistics0(enginehandle.param().abi(), idpstatistics) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecDospSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + IPsecDospSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn IPsecDospStateCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const IPSEC_DOSP_STATE_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IPsecDospStateCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn IPsecDospStateDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecDospStateDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IPsecDospStateDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IPsecDospStateDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[inline] pub unsafe fn IPsecDospStateEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_DOSP_STATE0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentries) + IPsecDospStateEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentries) } #[inline] pub unsafe fn IPsecGetStatistics0(enginehandle: P0, ipsecstatistics: *mut IPSEC_STATISTICS0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics0(enginehandle : super::super::Foundation:: HANDLE, ipsecstatistics : *mut IPSEC_STATISTICS0) -> u32); - IPsecGetStatistics0(enginehandle.into_param().abi(), ipsecstatistics) + IPsecGetStatistics0(enginehandle.param().abi(), ipsecstatistics) } #[inline] pub unsafe fn IPsecGetStatistics1(enginehandle: P0, ipsecstatistics: *mut IPSEC_STATISTICS1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics1(enginehandle : super::super::Foundation:: HANDLE, ipsecstatistics : *mut IPSEC_STATISTICS1) -> u32); - IPsecGetStatistics1(enginehandle.into_param().abi(), ipsecstatistics) + IPsecGetStatistics1(enginehandle.param().abi(), ipsecstatistics) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecKeyManagerAddAndRegister0(enginehandle: P0, keymanager: *const IPSEC_KEY_MANAGER0, keymanagercallbacks: *const IPSEC_KEY_MANAGER_CALLBACKS0, keymgmthandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), keymanager, keymanagercallbacks, keymgmthandle) + IPsecKeyManagerAddAndRegister0(enginehandle.param().abi(), keymanager, keymanagercallbacks, keymgmthandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecKeyManagerGetSecurityInfoByKey0(enginehandle: P0, reserved: Option<*const core::ffi::c_void>, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IPsecKeyManagerGetSecurityInfoByKey0(enginehandle.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + IPsecKeyManagerGetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null())), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecKeyManagerSetSecurityInfoByKey0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + IPsecKeyManagerSetSecurityInfoByKey0(enginehandle.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null())), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn IPsecKeyManagerUnregisterAndDelete0(enginehandle: P0, keymgmthandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecKeyManagerUnregisterAndDelete0(enginehandle : super::super::Foundation:: HANDLE, keymgmthandle : super::super::Foundation:: HANDLE) -> u32); - IPsecKeyManagerUnregisterAndDelete0(enginehandle.into_param().abi(), keymgmthandle.into_param().abi()) + IPsecKeyManagerUnregisterAndDelete0(enginehandle.param().abi(), keymgmthandle.param().abi()) } #[inline] pub unsafe fn IPsecKeyManagersGet0(enginehandle: P0, entries: *mut *mut *mut IPSEC_KEY_MANAGER0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + IPsecKeyManagersGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn IPsecSaContextAddInbound0(enginehandle: P0, id: u64, inboundbundle: *const IPSEC_SA_BUNDLE0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound0(enginehandle : super::super::Foundation:: HANDLE, id : u64, inboundbundle : *const IPSEC_SA_BUNDLE0) -> u32); - IPsecSaContextAddInbound0(enginehandle.into_param().abi(), id, inboundbundle) + IPsecSaContextAddInbound0(enginehandle.param().abi(), id, inboundbundle) } #[inline] pub unsafe fn IPsecSaContextAddInbound1(enginehandle: P0, id: u64, inboundbundle: *const IPSEC_SA_BUNDLE1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound1(enginehandle : super::super::Foundation:: HANDLE, id : u64, inboundbundle : *const IPSEC_SA_BUNDLE1) -> u32); - IPsecSaContextAddInbound1(enginehandle.into_param().abi(), id, inboundbundle) + IPsecSaContextAddInbound1(enginehandle.param().abi(), id, inboundbundle) } #[inline] pub unsafe fn IPsecSaContextAddOutbound0(enginehandle: P0, id: u64, outboundbundle: *const IPSEC_SA_BUNDLE0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound0(enginehandle : super::super::Foundation:: HANDLE, id : u64, outboundbundle : *const IPSEC_SA_BUNDLE0) -> u32); - IPsecSaContextAddOutbound0(enginehandle.into_param().abi(), id, outboundbundle) + IPsecSaContextAddOutbound0(enginehandle.param().abi(), id, outboundbundle) } #[inline] pub unsafe fn IPsecSaContextAddOutbound1(enginehandle: P0, id: u64, outboundbundle: *const IPSEC_SA_BUNDLE1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound1(enginehandle : super::super::Foundation:: HANDLE, id : u64, outboundbundle : *const IPSEC_SA_BUNDLE1) -> u32); - IPsecSaContextAddOutbound1(enginehandle.into_param().abi(), id, outboundbundle) + IPsecSaContextAddOutbound1(enginehandle.param().abi(), id, outboundbundle) } #[inline] pub unsafe fn IPsecSaContextCreate0(enginehandle: P0, outboundtraffic: *const IPSEC_TRAFFIC0, inboundfilterid: Option<*mut u64>, id: *mut u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), outboundtraffic, core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) + IPsecSaContextCreate0(enginehandle.param().abi(), outboundtraffic, core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) } #[inline] pub unsafe fn IPsecSaContextCreate1(enginehandle: P0, outboundtraffic: *const IPSEC_TRAFFIC1, virtualiftunnelinfo: Option<*const IPSEC_VIRTUAL_IF_TUNNEL_INFO0>, inboundfilterid: Option<*mut u64>, id: *mut u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), outboundtraffic, core::mem::transmute(virtualiftunnelinfo.unwrap_or(std::ptr::null())), core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) + IPsecSaContextCreate1(enginehandle.param().abi(), outboundtraffic, core::mem::transmute(virtualiftunnelinfo.unwrap_or(std::ptr::null())), core::mem::transmute(inboundfilterid.unwrap_or(std::ptr::null_mut())), id) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const IPSEC_SA_CONTEXT_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IPsecSaContextCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[inline] pub unsafe fn IPsecSaContextDeleteById0(enginehandle: P0, id: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - IPsecSaContextDeleteById0(enginehandle.into_param().abi(), id) + IPsecSaContextDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn IPsecSaContextDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IPsecSaContextDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IPsecSaContextDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_CONTEXT0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaContextEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_CONTEXT1, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaContextEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn IPsecSaContextExpire0(enginehandle: P0, id: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextExpire0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - IPsecSaContextExpire0(enginehandle.into_param().abi(), id) + IPsecSaContextExpire0(enginehandle.param().abi(), id) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextGetById0(enginehandle: P0, id: u64, sacontext: *mut *mut IPSEC_SA_CONTEXT0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, sacontext : *mut *mut IPSEC_SA_CONTEXT0) -> u32); - IPsecSaContextGetById0(enginehandle.into_param().abi(), id, sacontext) + IPsecSaContextGetById0(enginehandle.param().abi(), id, sacontext) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextGetById1(enginehandle: P0, id: u64, sacontext: *mut *mut IPSEC_SA_CONTEXT1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById1(enginehandle : super::super::Foundation:: HANDLE, id : u64, sacontext : *mut *mut IPSEC_SA_CONTEXT1) -> u32); - IPsecSaContextGetById1(enginehandle.into_param().abi(), id, sacontext) + IPsecSaContextGetById1(enginehandle.param().abi(), id, sacontext) } #[inline] pub unsafe fn IPsecSaContextGetSpi0(enginehandle: P0, id: u64, getspi: *const IPSEC_GETSPI0, inboundspi: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi0(enginehandle : super::super::Foundation:: HANDLE, id : u64, getspi : *const IPSEC_GETSPI0, inboundspi : *mut u32) -> u32); - IPsecSaContextGetSpi0(enginehandle.into_param().abi(), id, getspi, inboundspi) + IPsecSaContextGetSpi0(enginehandle.param().abi(), id, getspi, inboundspi) } #[inline] pub unsafe fn IPsecSaContextGetSpi1(enginehandle: P0, id: u64, getspi: *const IPSEC_GETSPI1, inboundspi: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi1(enginehandle : super::super::Foundation:: HANDLE, id : u64, getspi : *const IPSEC_GETSPI1, inboundspi : *mut u32) -> u32); - IPsecSaContextGetSpi1(enginehandle.into_param().abi(), id, getspi, inboundspi) + IPsecSaContextGetSpi1(enginehandle.param().abi(), id, getspi, inboundspi) } #[inline] pub unsafe fn IPsecSaContextSetSpi0(enginehandle: P0, id: u64, getspi: *const IPSEC_GETSPI1, inboundspi: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextSetSpi0(enginehandle : super::super::Foundation:: HANDLE, id : u64, getspi : *const IPSEC_GETSPI1, inboundspi : u32) -> u32); - IPsecSaContextSetSpi0(enginehandle.into_param().abi(), id, getspi, inboundspi) + IPsecSaContextSetSpi0(enginehandle.param().abi(), id, getspi, inboundspi) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextSubscribe0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) + IPsecSaContextSubscribe0(enginehandle.param().abi(), subscription, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), eventshandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextSubscriptionsGet0(enginehandle: P0, entries: *mut *mut *mut IPSEC_SA_CONTEXT_SUBSCRIPTION0, numentries: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), entries, numentries) + IPsecSaContextSubscriptionsGet0(enginehandle.param().abi(), entries, numentries) } #[inline] pub unsafe fn IPsecSaContextUnsubscribe0(enginehandle: P0, eventshandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextUnsubscribe0(enginehandle : super::super::Foundation:: HANDLE, eventshandle : super::super::Foundation:: HANDLE) -> u32); - IPsecSaContextUnsubscribe0(enginehandle.into_param().abi(), eventshandle.into_param().abi()) + IPsecSaContextUnsubscribe0(enginehandle.param().abi(), eventshandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaContextUpdate0(enginehandle: P0, flags: u64, newvalues: *const IPSEC_SA_CONTEXT1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaContextUpdate0(enginehandle : super::super::Foundation:: HANDLE, flags : u64, newvalues : *const IPSEC_SA_CONTEXT1) -> u32); - IPsecSaContextUpdate0(enginehandle.into_param().abi(), flags, newvalues) + IPsecSaContextUpdate0(enginehandle.param().abi(), flags, newvalues) } #[inline] pub unsafe fn IPsecSaCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const IPSEC_SA_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IPsecSaCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDbGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IPsecSaDbGetSecurityInfo0(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + IPsecSaDbGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaDbSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + IPsecSaDbSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn IPsecSaDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IPsecSaDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IPsecSaDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IPsecSaDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_DETAILS0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IPsecSaEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IPSEC_SA_DETAILS1, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IPsecSaEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn IkeextGetStatistics0(enginehandle: P0, ikeextstatistics: *mut IKEEXT_STATISTICS0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics0(enginehandle : super::super::Foundation:: HANDLE, ikeextstatistics : *mut IKEEXT_STATISTICS0) -> u32); - IkeextGetStatistics0(enginehandle.into_param().abi(), ikeextstatistics) + IkeextGetStatistics0(enginehandle.param().abi(), ikeextstatistics) } #[inline] pub unsafe fn IkeextGetStatistics1(enginehandle: P0, ikeextstatistics: *mut IKEEXT_STATISTICS1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics1(enginehandle : super::super::Foundation:: HANDLE, ikeextstatistics : *mut IKEEXT_STATISTICS1) -> u32); - IkeextGetStatistics1(enginehandle.into_param().abi(), ikeextstatistics) + IkeextGetStatistics1(enginehandle.param().abi(), ikeextstatistics) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaCreateEnumHandle0(enginehandle: P0, enumtemplate: Option<*const IKEEXT_SA_ENUM_TEMPLATE0>, enumhandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) + IkeextSaCreateEnumHandle0(enginehandle.param().abi(), core::mem::transmute(enumtemplate.unwrap_or(std::ptr::null())), enumhandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbGetSecurityInfo0(enginehandle: P0, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDbGetSecurityInfo0(enginehandle : super::super::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::Foundation:: PSID, sidgroup : *mut super::super::Foundation:: PSID, dacl : *mut *mut super::super::Security:: ACL, sacl : *mut *mut super::super::Security:: ACL, securitydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR) -> u32); - IkeextSaDbGetSecurityInfo0(enginehandle.into_param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) + IkeextSaDbGetSecurityInfo0(enginehandle.param().abi(), securityinfo, sidowner, sidgroup, dacl, sacl, securitydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IkeextSaDbSetSecurityInfo0(enginehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) + IkeextSaDbSetSecurityInfo0(enginehandle.param().abi(), securityinfo, core::mem::transmute(sidowner.unwrap_or(std::ptr::null())), core::mem::transmute(sidgroup.unwrap_or(std::ptr::null())), core::mem::transmute(dacl.unwrap_or(std::ptr::null())), core::mem::transmute(sacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn IkeextSaDeleteById0(enginehandle: P0, id: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDeleteById0(enginehandle : super::super::Foundation:: HANDLE, id : u64) -> u32); - IkeextSaDeleteById0(enginehandle.into_param().abi(), id) + IkeextSaDeleteById0(enginehandle.param().abi(), id) } #[inline] pub unsafe fn IkeextSaDestroyEnumHandle0(enginehandle: P0, enumhandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaDestroyEnumHandle0(enginehandle : super::super::Foundation:: HANDLE, enumhandle : super::super::Foundation:: HANDLE) -> u32); - IkeextSaDestroyEnumHandle0(enginehandle.into_param().abi(), enumhandle.into_param().abi()) + IkeextSaDestroyEnumHandle0(enginehandle.param().abi(), enumhandle.param().abi()) } #[inline] pub unsafe fn IkeextSaEnum0(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IKEEXT_SA_DETAILS0, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IkeextSaEnum0(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn IkeextSaEnum1(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IKEEXT_SA_DETAILS1, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IkeextSaEnum1(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn IkeextSaEnum2(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: *mut *mut *mut IKEEXT_SA_DETAILS2, numentriesreturned: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(enginehandle.into_param().abi(), enumhandle.into_param().abi(), numentriesrequested, entries, numentriesreturned) + IkeextSaEnum2(enginehandle.param().abi(), enumhandle.param().abi(), numentriesrequested, entries, numentriesreturned) } #[inline] pub unsafe fn IkeextSaGetById0(enginehandle: P0, id: u64, sa: *mut *mut IKEEXT_SA_DETAILS0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn IkeextSaGetById0(enginehandle : super::super::Foundation:: HANDLE, id : u64, sa : *mut *mut IKEEXT_SA_DETAILS0) -> u32); - IkeextSaGetById0(enginehandle.into_param().abi(), id, sa) + IkeextSaGetById0(enginehandle.param().abi(), id, sa) } #[inline] pub unsafe fn IkeextSaGetById1(enginehandle: P0, id: u64, salookupcontext: Option<*const windows_core::GUID>, sa: *mut *mut IKEEXT_SA_DETAILS1) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), sa) + IkeextSaGetById1(enginehandle.param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), sa) } #[inline] pub unsafe fn IkeextSaGetById2(enginehandle: P0, id: u64, salookupcontext: Option<*const windows_core::GUID>, sa: *mut *mut IKEEXT_SA_DETAILS2) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enginehandle.into_param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), sa) + IkeextSaGetById2(enginehandle.param().abi(), id, core::mem::transmute(salookupcontext.unwrap_or(std::ptr::null())), sa) } pub const DlBroadcast: DL_ADDRESS_TYPE = DL_ADDRESS_TYPE(2i32); pub const DlMulticast: DL_ADDRESS_TYPE = DL_ADDRESS_TYPE(1i32); 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 5607b5234f..cf06b19e57 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs @@ -6,18 +6,18 @@ pub unsafe fn NcFreeNetconProperties(pprops: *mut NETCON_PROPERTIES) { #[inline] pub unsafe fn NcIsValidConnectionName(pszwname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netshell.dll" "system" fn NcIsValidConnectionName(pszwname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - NcIsValidConnectionName(pszwname.into_param().abi()) + NcIsValidConnectionName(pszwname.param().abi()) } #[inline] pub unsafe fn NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername: P0, netisoerror: *mut NETISO_ERROR_TYPE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername : windows_core::PCWSTR, netisoerror : *mut NETISO_ERROR_TYPE) -> u32); - NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername.into_param().abi(), netisoerror) + NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername.param().abi(), netisoerror) } #[cfg(feature = "Win32_Security")] #[inline] @@ -47,19 +47,19 @@ pub unsafe fn NetworkIsolationGetAppContainerConfig(pdwnumpublicappcs: *mut u32, #[inline] pub unsafe fn NetworkIsolationGetEnterpriseIdAsync(wszservername: P0, dwflags: u32, context: Option<*const core::ffi::c_void>, callback: PNETISO_EDP_ID_CALLBACK_FN, hoperation: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, core::mem::transmute(context.unwrap_or(std::ptr::null())), callback, hoperation) + NetworkIsolationGetEnterpriseIdAsync(wszservername.param().abi(), dwflags, core::mem::transmute(context.unwrap_or(std::ptr::null())), callback, hoperation) } #[inline] pub unsafe fn NetworkIsolationGetEnterpriseIdClose(hoperation: P0, bwaitforoperation: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("firewallapi.dll" "system" fn NetworkIsolationGetEnterpriseIdClose(hoperation : super::super::Foundation:: HANDLE, bwaitforoperation : super::super::Foundation:: BOOL) -> u32); - NetworkIsolationGetEnterpriseIdClose(hoperation.into_param().abi(), bwaitforoperation.into_param().abi()) + NetworkIsolationGetEnterpriseIdClose(hoperation.param().abi(), bwaitforoperation.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -76,22 +76,22 @@ pub unsafe fn NetworkIsolationSetAppContainerConfig(appcontainersids: &[super::s #[inline] pub unsafe fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid: P0, packagefullname: P1, packagefolder: P2, displayname: P3, bbinariesfullycomputed: P4, binaries: &[windows_core::PCWSTR]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid : super::super::Foundation:: 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(applicationcontainersid.into_param().abi(), packagefullname.into_param().abi(), packagefolder.into_param().abi(), displayname.into_param().abi(), bbinariesfullycomputed.into_param().abi(), core::mem::transmute(binaries.as_ptr()), binaries.len().try_into().unwrap()).ok() + NetworkIsolationSetupAppContainerBinaries(applicationcontainersid.param().abi(), packagefullname.param().abi(), packagefolder.param().abi(), displayname.param().abi(), bbinariesfullycomputed.param().abi(), core::mem::transmute(binaries.as_ptr()), binaries.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn NetworkIsolationUnregisterForAppContainerChanges(registrationobject: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationUnregisterForAppContainerChanges(registrationobject : super::super::Foundation:: HANDLE) -> u32); - NetworkIsolationUnregisterForAppContainerChanges(registrationobject.into_param().abi()) + NetworkIsolationUnregisterForAppContainerChanges(registrationobject.param().abi()) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IDynamicPortMapping, IDynamicPortMapping_Vtbl, 0x4fc80282_23b6_4378_9a27_cd8f17c9400c); @@ -141,21 +141,21 @@ impl IDynamicPortMapping { } pub unsafe fn EditInternalClient(&self, bstrinternalclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EditInternalClient)(windows_core::Interface::as_raw(self), bstrinternalclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EditInternalClient)(windows_core::Interface::as_raw(self), bstrinternalclient.param().abi()).ok() } pub unsafe fn Enable(&self, vb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), vb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), vb.param().abi()).ok() } pub unsafe fn EditDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EditDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EditDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn EditInternalPort(&self, linternalport: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EditInternalPort)(windows_core::Interface::as_raw(self), linternalport).ok() @@ -193,11 +193,11 @@ impl IDynamicPortMappingCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, bstrremotehost: P0, lexternalport: i32, bstrprotocol: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), bstrremotehost.into_param().abi(), lexternalport, bstrprotocol.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), bstrremotehost.param().abi(), lexternalport, bstrprotocol.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -205,22 +205,22 @@ impl IDynamicPortMappingCollection { } pub unsafe fn Remove(&self, bstrremotehost: P0, lexternalport: i32, bstrprotocol: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstrremotehost.into_param().abi(), lexternalport, bstrprotocol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstrremotehost.param().abi(), lexternalport, bstrprotocol.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, bstrremotehost: P0, lexternalport: i32, bstrprotocol: P1, linternalport: i32, bstrinternalclient: P2, benabled: P3, bstrdescription: P4, lleaseduration: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrremotehost.into_param().abi(), lexternalport, bstrprotocol.into_param().abi(), linternalport, bstrinternalclient.into_param().abi(), benabled.into_param().abi(), bstrdescription.into_param().abi(), lleaseduration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrremotehost.param().abi(), lexternalport, bstrprotocol.param().abi(), linternalport, bstrinternalclient.param().abi(), benabled.param().abi(), bstrdescription.param().abi(), lleaseduration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -372,15 +372,15 @@ windows_core::imp::interface_hierarchy!(INATEventManager, windows_core::IUnknown impl INATEventManager { pub unsafe fn SetExternalIPAddressCallback(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExternalIPAddressCallback)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExternalIPAddressCallback)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn SetNumberOfEntriesCallback(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNumberOfEntriesCallback)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNumberOfEntriesCallback)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -395,9 +395,9 @@ windows_core::imp::interface_hierarchy!(INATExternalIPAddressCallback, windows_c impl INATExternalIPAddressCallback { pub unsafe fn NewExternalIPAddress(&self, bstrnewexternalipaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NewExternalIPAddress)(windows_core::Interface::as_raw(self), bstrnewexternalipaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NewExternalIPAddress)(windows_core::Interface::as_raw(self), bstrnewexternalipaddress.param().abi()).ok() } } #[repr(C)] @@ -431,10 +431,10 @@ impl INetConnection { } pub unsafe fn Duplicate(&self, pszwduplicatename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Duplicate)(windows_core::Interface::as_raw(self), pszwduplicatename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Duplicate)(windows_core::Interface::as_raw(self), pszwduplicatename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetProperties(&self) -> windows_core::Result<*mut NETCON_PROPERTIES> { let mut result__ = std::mem::zeroed(); @@ -446,9 +446,9 @@ impl INetConnection { } pub unsafe fn Rename(&self, pszwnewname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pszwnewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), pszwnewname.param().abi()).ok() } } #[repr(C)] @@ -467,21 +467,21 @@ windows_core::imp::interface_hierarchy!(INetConnectionConnectUi, windows_core::I impl INetConnectionConnectUi { pub unsafe fn SetConnection(&self, pcon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConnection)(windows_core::Interface::as_raw(self), pcon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConnection)(windows_core::Interface::as_raw(self), pcon.param().abi()).ok() } pub unsafe fn Connect(&self, hwndparent: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwflags).ok() } pub unsafe fn Disconnect(&self, hwndparent: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwflags).ok() } } #[repr(C)] @@ -558,9 +558,9 @@ impl INetFwAuthorizedApplication { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn ProcessImageFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -568,9 +568,9 @@ impl INetFwAuthorizedApplication { } pub unsafe fn SetProcessImageFileName(&self, imagefilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProcessImageFileName)(windows_core::Interface::as_raw(self), imagefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProcessImageFileName)(windows_core::Interface::as_raw(self), imagefilename.param().abi()).ok() } pub unsafe fn IpVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -592,9 +592,9 @@ impl INetFwAuthorizedApplication { } pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -602,9 +602,9 @@ impl INetFwAuthorizedApplication { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -637,23 +637,23 @@ impl INetFwAuthorizedApplications { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, app: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), app.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), app.param().abi()).ok() } pub unsafe fn Remove(&self, imagefilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), imagefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), imagefilename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, imagefilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), imagefilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), imagefilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -688,9 +688,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowOutboundDestinationUnreachable(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowOutboundDestinationUnreachable)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundDestinationUnreachable)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowRedirect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -698,9 +698,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowRedirect(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowRedirect)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowRedirect)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowInboundEchoRequest(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -708,9 +708,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowInboundEchoRequest(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowInboundEchoRequest)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowInboundEchoRequest)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowOutboundTimeExceeded(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -718,9 +718,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowOutboundTimeExceeded(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowOutboundTimeExceeded)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundTimeExceeded)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowOutboundParameterProblem(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -728,9 +728,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowOutboundParameterProblem(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowOutboundParameterProblem)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundParameterProblem)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowOutboundSourceQuench(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -738,9 +738,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowOutboundSourceQuench(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowOutboundSourceQuench)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundSourceQuench)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowInboundRouterRequest(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -748,9 +748,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowInboundRouterRequest(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowInboundRouterRequest)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowInboundRouterRequest)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowInboundTimestampRequest(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -758,9 +758,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowInboundTimestampRequest(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowInboundTimestampRequest)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowInboundTimestampRequest)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowInboundMaskRequest(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -768,9 +768,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowInboundMaskRequest(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowInboundMaskRequest)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowInboundMaskRequest)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } pub unsafe fn AllowOutboundPacketTooBig(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -778,9 +778,9 @@ impl INetFwIcmpSettings { } pub unsafe fn SetAllowOutboundPacketTooBig(&self, allow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowOutboundPacketTooBig)(windows_core::Interface::as_raw(self), allow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowOutboundPacketTooBig)(windows_core::Interface::as_raw(self), allow.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -828,16 +828,16 @@ impl INetFwMgr { } pub unsafe fn IsPortAllowed(&self, imagefilename: P0, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: P1, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut windows_core::VARIANT, restricted: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsPortAllowed)(windows_core::Interface::as_raw(self), imagefilename.into_param().abi(), ipversion, portnumber, localaddress.into_param().abi(), ipprotocol, core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() + (windows_core::Interface::vtable(self).IsPortAllowed)(windows_core::Interface::as_raw(self), imagefilename.param().abi(), ipversion, portnumber, localaddress.param().abi(), ipprotocol, core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() } pub unsafe fn IsIcmpTypeAllowed(&self, ipversion: NET_FW_IP_VERSION, localaddress: P0, r#type: u8, allowed: *mut windows_core::VARIANT, restricted: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsIcmpTypeAllowed)(windows_core::Interface::as_raw(self), ipversion, localaddress.into_param().abi(), r#type, core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() + (windows_core::Interface::vtable(self).IsIcmpTypeAllowed)(windows_core::Interface::as_raw(self), ipversion, localaddress.param().abi(), r#type, core::mem::transmute(allowed), core::mem::transmute(restricted)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -865,9 +865,9 @@ impl INetFwOpenPort { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn IpVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -903,9 +903,9 @@ impl INetFwOpenPort { } pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -913,9 +913,9 @@ impl INetFwOpenPort { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn BuiltIn(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -955,9 +955,9 @@ impl INetFwOpenPorts { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, port: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), port.into_param().abi()).ok() + (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), portnumber, ipprotocol).ok() @@ -1034,9 +1034,9 @@ impl INetFwPolicy2 { } pub unsafe fn put_FirewallEnabled(&self, profiletype: NET_FW_PROFILE_TYPE2, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_FirewallEnabled)(windows_core::Interface::as_raw(self), profiletype, enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_FirewallEnabled)(windows_core::Interface::as_raw(self), profiletype, enabled.param().abi()).ok() } pub unsafe fn get_ExcludedInterfaces(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1044,9 +1044,9 @@ impl INetFwPolicy2 { } pub unsafe fn put_ExcludedInterfaces(&self, profiletype: NET_FW_PROFILE_TYPE2, interfaces: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_ExcludedInterfaces)(windows_core::Interface::as_raw(self), profiletype, interfaces.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_ExcludedInterfaces)(windows_core::Interface::as_raw(self), profiletype, interfaces.param().abi()).ok() } pub unsafe fn get_BlockAllInboundTraffic(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1054,9 +1054,9 @@ impl INetFwPolicy2 { } pub unsafe fn put_BlockAllInboundTraffic(&self, profiletype: NET_FW_PROFILE_TYPE2, block: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_BlockAllInboundTraffic)(windows_core::Interface::as_raw(self), profiletype, block.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_BlockAllInboundTraffic)(windows_core::Interface::as_raw(self), profiletype, block.param().abi()).ok() } pub unsafe fn get_NotificationsDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1064,9 +1064,9 @@ impl INetFwPolicy2 { } pub unsafe fn put_NotificationsDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2, disabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_NotificationsDisabled)(windows_core::Interface::as_raw(self), profiletype, disabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_NotificationsDisabled)(windows_core::Interface::as_raw(self), profiletype, disabled.param().abi()).ok() } pub unsafe fn get_UnicastResponsesToMulticastBroadcastDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1074,9 +1074,9 @@ impl INetFwPolicy2 { } pub unsafe fn put_UnicastResponsesToMulticastBroadcastDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2, disabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_UnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), profiletype, disabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_UnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), profiletype, disabled.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Rules(&self) -> windows_core::Result { @@ -1090,17 +1090,17 @@ impl INetFwPolicy2 { } pub unsafe fn EnableRuleGroup(&self, profiletypesbitmask: i32, group: P0, enable: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableRuleGroup)(windows_core::Interface::as_raw(self), profiletypesbitmask, group.into_param().abi(), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableRuleGroup)(windows_core::Interface::as_raw(self), profiletypesbitmask, group.param().abi(), enable.param().abi()).ok() } pub unsafe fn IsRuleGroupEnabled(&self, profiletypesbitmask: i32, group: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsRuleGroupEnabled)(windows_core::Interface::as_raw(self), profiletypesbitmask, group.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsRuleGroupEnabled)(windows_core::Interface::as_raw(self), profiletypesbitmask, group.param().abi(), &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() @@ -1121,10 +1121,10 @@ impl INetFwPolicy2 { } pub unsafe fn get_IsRuleGroupCurrentlyEnabled(&self, group: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IsRuleGroupCurrentlyEnabled)(windows_core::Interface::as_raw(self), group.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IsRuleGroupCurrentlyEnabled)(windows_core::Interface::as_raw(self), group.param().abi(), &mut result__).map(|| result__) } pub unsafe fn LocalPolicyModifyState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1176,9 +1176,9 @@ impl INetFwProduct { } pub unsafe fn SetRuleCategories(&self, rulecategories: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleCategories)(windows_core::Interface::as_raw(self), rulecategories.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRuleCategories)(windows_core::Interface::as_raw(self), rulecategories.param().abi()).ok() } pub unsafe fn DisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1186,9 +1186,9 @@ impl INetFwProduct { } pub unsafe fn SetDisplayName(&self, displayname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), displayname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), displayname.param().abi()).ok() } pub unsafe fn PathToSignedProductExe(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1218,10 +1218,10 @@ impl INetFwProducts { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Register(&self, product: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), product.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), product.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, index: i32) -> windows_core::Result { @@ -1264,9 +1264,9 @@ impl INetFwProfile { } pub unsafe fn SetFirewallEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFirewallEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFirewallEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn ExceptionsNotAllowed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1274,9 +1274,9 @@ impl INetFwProfile { } pub unsafe fn SetExceptionsNotAllowed(&self, notallowed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionsNotAllowed)(windows_core::Interface::as_raw(self), notallowed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExceptionsNotAllowed)(windows_core::Interface::as_raw(self), notallowed.param().abi()).ok() } pub unsafe fn NotificationsDisabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1284,9 +1284,9 @@ impl INetFwProfile { } pub unsafe fn SetNotificationsDisabled(&self, disabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotificationsDisabled)(windows_core::Interface::as_raw(self), disabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotificationsDisabled)(windows_core::Interface::as_raw(self), disabled.param().abi()).ok() } pub unsafe fn UnicastResponsesToMulticastBroadcastDisabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1294,9 +1294,9 @@ impl INetFwProfile { } pub unsafe fn SetUnicastResponsesToMulticastBroadcastDisabled(&self, disabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), disabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUnicastResponsesToMulticastBroadcastDisabled)(windows_core::Interface::as_raw(self), disabled.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoteAdminSettings(&self) -> windows_core::Result { @@ -1384,9 +1384,9 @@ impl INetFwRemoteAdminSettings { } pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1394,9 +1394,9 @@ impl INetFwRemoteAdminSettings { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1424,9 +1424,9 @@ impl INetFwRule { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1434,9 +1434,9 @@ impl INetFwRule { } pub unsafe fn SetDescription(&self, desc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), desc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), desc.param().abi()).ok() } pub unsafe fn ApplicationName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1444,9 +1444,9 @@ impl INetFwRule { } pub unsafe fn SetApplicationName(&self, imagefilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationName)(windows_core::Interface::as_raw(self), imagefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationName)(windows_core::Interface::as_raw(self), imagefilename.param().abi()).ok() } pub unsafe fn ServiceName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1454,9 +1454,9 @@ impl INetFwRule { } pub unsafe fn SetServiceName(&self, servicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceName)(windows_core::Interface::as_raw(self), servicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceName)(windows_core::Interface::as_raw(self), servicename.param().abi()).ok() } pub unsafe fn Protocol(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1471,9 +1471,9 @@ impl INetFwRule { } pub unsafe fn SetLocalPorts(&self, portnumbers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalPorts)(windows_core::Interface::as_raw(self), portnumbers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalPorts)(windows_core::Interface::as_raw(self), portnumbers.param().abi()).ok() } pub unsafe fn RemotePorts(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1481,9 +1481,9 @@ impl INetFwRule { } pub unsafe fn SetRemotePorts(&self, portnumbers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemotePorts)(windows_core::Interface::as_raw(self), portnumbers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemotePorts)(windows_core::Interface::as_raw(self), portnumbers.param().abi()).ok() } pub unsafe fn LocalAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1491,9 +1491,9 @@ impl INetFwRule { } pub unsafe fn SetLocalAddresses(&self, localaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalAddresses)(windows_core::Interface::as_raw(self), localaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalAddresses)(windows_core::Interface::as_raw(self), localaddrs.param().abi()).ok() } pub unsafe fn RemoteAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1501,9 +1501,9 @@ impl INetFwRule { } pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.param().abi()).ok() } pub unsafe fn IcmpTypesAndCodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1511,9 +1511,9 @@ impl INetFwRule { } pub unsafe fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIcmpTypesAndCodes)(windows_core::Interface::as_raw(self), icmptypesandcodes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIcmpTypesAndCodes)(windows_core::Interface::as_raw(self), icmptypesandcodes.param().abi()).ok() } pub unsafe fn Direction(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1528,9 +1528,9 @@ impl INetFwRule { } pub unsafe fn SetInterfaces(&self, interfaces: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInterfaces)(windows_core::Interface::as_raw(self), interfaces.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInterfaces)(windows_core::Interface::as_raw(self), interfaces.param().abi()).ok() } pub unsafe fn InterfaceTypes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1538,9 +1538,9 @@ impl INetFwRule { } pub unsafe fn SetInterfaceTypes(&self, interfacetypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInterfaceTypes)(windows_core::Interface::as_raw(self), interfacetypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInterfaceTypes)(windows_core::Interface::as_raw(self), interfacetypes.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1548,9 +1548,9 @@ impl INetFwRule { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Grouping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1558,9 +1558,9 @@ impl INetFwRule { } pub unsafe fn SetGrouping(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGrouping)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGrouping)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } pub unsafe fn Profiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1575,9 +1575,9 @@ impl INetFwRule { } pub unsafe fn SetEdgeTraversal(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEdgeTraversal)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEdgeTraversal)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Action(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1640,9 +1640,9 @@ impl INetFwRule2 { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1650,9 +1650,9 @@ impl INetFwRule2 { } pub unsafe fn SetDescription(&self, desc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), desc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), desc.param().abi()).ok() } pub unsafe fn ApplicationName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1660,9 +1660,9 @@ impl INetFwRule2 { } pub unsafe fn SetApplicationName(&self, imagefilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationName)(windows_core::Interface::as_raw(self), imagefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationName)(windows_core::Interface::as_raw(self), imagefilename.param().abi()).ok() } pub unsafe fn ServiceName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1670,9 +1670,9 @@ impl INetFwRule2 { } pub unsafe fn SetServiceName(&self, servicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetServiceName)(windows_core::Interface::as_raw(self), servicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetServiceName)(windows_core::Interface::as_raw(self), servicename.param().abi()).ok() } pub unsafe fn Protocol(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1687,9 +1687,9 @@ impl INetFwRule2 { } pub unsafe fn SetLocalPorts(&self, portnumbers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocalPorts)(windows_core::Interface::as_raw(self), portnumbers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocalPorts)(windows_core::Interface::as_raw(self), portnumbers.param().abi()).ok() } pub unsafe fn RemotePorts(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1697,9 +1697,9 @@ impl INetFwRule2 { } pub unsafe fn SetRemotePorts(&self, portnumbers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRemotePorts)(windows_core::Interface::as_raw(self), portnumbers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRemotePorts)(windows_core::Interface::as_raw(self), portnumbers.param().abi()).ok() } pub unsafe fn LocalAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1707,9 +1707,9 @@ impl INetFwRule2 { } pub unsafe fn SetLocalAddresses(&self, localaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocalAddresses)(windows_core::Interface::as_raw(self), localaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocalAddresses)(windows_core::Interface::as_raw(self), localaddrs.param().abi()).ok() } pub unsafe fn RemoteAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1717,9 +1717,9 @@ impl INetFwRule2 { } pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.param().abi()).ok() } pub unsafe fn IcmpTypesAndCodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1727,9 +1727,9 @@ impl INetFwRule2 { } pub unsafe fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIcmpTypesAndCodes)(windows_core::Interface::as_raw(self), icmptypesandcodes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIcmpTypesAndCodes)(windows_core::Interface::as_raw(self), icmptypesandcodes.param().abi()).ok() } pub unsafe fn Direction(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1744,9 +1744,9 @@ impl INetFwRule2 { } pub unsafe fn SetInterfaces(&self, interfaces: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInterfaces)(windows_core::Interface::as_raw(self), interfaces.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetInterfaces)(windows_core::Interface::as_raw(self), interfaces.param().abi()).ok() } pub unsafe fn InterfaceTypes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1754,9 +1754,9 @@ impl INetFwRule2 { } pub unsafe fn SetInterfaceTypes(&self, interfacetypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInterfaceTypes)(windows_core::Interface::as_raw(self), interfacetypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetInterfaceTypes)(windows_core::Interface::as_raw(self), interfacetypes.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1764,9 +1764,9 @@ impl INetFwRule2 { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Grouping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1774,9 +1774,9 @@ impl INetFwRule2 { } pub unsafe fn SetGrouping(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetGrouping)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetGrouping)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } pub unsafe fn Profiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1791,9 +1791,9 @@ impl INetFwRule2 { } pub unsafe fn SetEdgeTraversal(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEdgeTraversal)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEdgeTraversal)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Action(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1829,9 +1829,9 @@ impl INetFwRule3 { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1839,9 +1839,9 @@ impl INetFwRule3 { } pub unsafe fn SetDescription(&self, desc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), desc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), desc.param().abi()).ok() } pub unsafe fn ApplicationName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1849,9 +1849,9 @@ impl INetFwRule3 { } pub unsafe fn SetApplicationName(&self, imagefilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetApplicationName)(windows_core::Interface::as_raw(self), imagefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetApplicationName)(windows_core::Interface::as_raw(self), imagefilename.param().abi()).ok() } pub unsafe fn ServiceName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1859,9 +1859,9 @@ impl INetFwRule3 { } pub unsafe fn SetServiceName(&self, servicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetServiceName)(windows_core::Interface::as_raw(self), servicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetServiceName)(windows_core::Interface::as_raw(self), servicename.param().abi()).ok() } pub unsafe fn Protocol(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1876,9 +1876,9 @@ impl INetFwRule3 { } pub unsafe fn SetLocalPorts(&self, portnumbers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLocalPorts)(windows_core::Interface::as_raw(self), portnumbers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLocalPorts)(windows_core::Interface::as_raw(self), portnumbers.param().abi()).ok() } pub unsafe fn RemotePorts(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1886,9 +1886,9 @@ impl INetFwRule3 { } pub unsafe fn SetRemotePorts(&self, portnumbers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRemotePorts)(windows_core::Interface::as_raw(self), portnumbers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRemotePorts)(windows_core::Interface::as_raw(self), portnumbers.param().abi()).ok() } pub unsafe fn LocalAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1896,9 +1896,9 @@ impl INetFwRule3 { } pub unsafe fn SetLocalAddresses(&self, localaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLocalAddresses)(windows_core::Interface::as_raw(self), localaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLocalAddresses)(windows_core::Interface::as_raw(self), localaddrs.param().abi()).ok() } pub unsafe fn RemoteAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1906,9 +1906,9 @@ impl INetFwRule3 { } pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.param().abi()).ok() } pub unsafe fn IcmpTypesAndCodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1916,9 +1916,9 @@ impl INetFwRule3 { } pub unsafe fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetIcmpTypesAndCodes)(windows_core::Interface::as_raw(self), icmptypesandcodes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetIcmpTypesAndCodes)(windows_core::Interface::as_raw(self), icmptypesandcodes.param().abi()).ok() } pub unsafe fn Direction(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1933,9 +1933,9 @@ impl INetFwRule3 { } pub unsafe fn SetInterfaces(&self, interfaces: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetInterfaces)(windows_core::Interface::as_raw(self), interfaces.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetInterfaces)(windows_core::Interface::as_raw(self), interfaces.param().abi()).ok() } pub unsafe fn InterfaceTypes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1943,9 +1943,9 @@ impl INetFwRule3 { } pub unsafe fn SetInterfaceTypes(&self, interfacetypes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetInterfaceTypes)(windows_core::Interface::as_raw(self), interfacetypes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetInterfaceTypes)(windows_core::Interface::as_raw(self), interfacetypes.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1953,9 +1953,9 @@ impl INetFwRule3 { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Grouping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1963,9 +1963,9 @@ impl INetFwRule3 { } pub unsafe fn SetGrouping(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetGrouping)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetGrouping)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } pub unsafe fn Profiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1980,9 +1980,9 @@ impl INetFwRule3 { } pub unsafe fn SetEdgeTraversal(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEdgeTraversal)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEdgeTraversal)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Action(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2004,9 +2004,9 @@ impl INetFwRule3 { } pub unsafe fn SetLocalAppPackageId(&self, wszpackageid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalAppPackageId)(windows_core::Interface::as_raw(self), wszpackageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalAppPackageId)(windows_core::Interface::as_raw(self), wszpackageid.param().abi()).ok() } pub unsafe fn LocalUserOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2014,9 +2014,9 @@ impl INetFwRule3 { } pub unsafe fn SetLocalUserOwner(&self, wszuserowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalUserOwner)(windows_core::Interface::as_raw(self), wszuserowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalUserOwner)(windows_core::Interface::as_raw(self), wszuserowner.param().abi()).ok() } pub unsafe fn LocalUserAuthorizedList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2024,9 +2024,9 @@ impl INetFwRule3 { } pub unsafe fn SetLocalUserAuthorizedList(&self, wszuserauthlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalUserAuthorizedList)(windows_core::Interface::as_raw(self), wszuserauthlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalUserAuthorizedList)(windows_core::Interface::as_raw(self), wszuserauthlist.param().abi()).ok() } pub unsafe fn RemoteUserAuthorizedList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2034,9 +2034,9 @@ impl INetFwRule3 { } pub unsafe fn SetRemoteUserAuthorizedList(&self, wszuserauthlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteUserAuthorizedList)(windows_core::Interface::as_raw(self), wszuserauthlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteUserAuthorizedList)(windows_core::Interface::as_raw(self), wszuserauthlist.param().abi()).ok() } pub unsafe fn RemoteMachineAuthorizedList(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2044,9 +2044,9 @@ impl INetFwRule3 { } pub unsafe fn SetRemoteMachineAuthorizedList(&self, wszuserauthlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteMachineAuthorizedList)(windows_core::Interface::as_raw(self), wszuserauthlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteMachineAuthorizedList)(windows_core::Interface::as_raw(self), wszuserauthlist.param().abi()).ok() } pub unsafe fn SecureFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2086,23 +2086,23 @@ impl INetFwRules { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, rule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), rule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), rule.param().abi()).ok() } pub unsafe fn Remove(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2163,9 +2163,9 @@ impl INetFwService { } pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteAddresses)(windows_core::Interface::as_raw(self), remoteaddrs.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2173,9 +2173,9 @@ impl INetFwService { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GloballyOpenPorts(&self) -> windows_core::Result { @@ -2211,20 +2211,20 @@ windows_core::imp::interface_hierarchy!(INetFwServiceRestriction, windows_core:: impl INetFwServiceRestriction { pub unsafe fn RestrictService(&self, servicename: P0, appname: P1, restrictservice: P2, servicesidrestricted: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RestrictService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), appname.into_param().abi(), restrictservice.into_param().abi(), servicesidrestricted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RestrictService)(windows_core::Interface::as_raw(self), servicename.param().abi(), appname.param().abi(), restrictservice.param().abi(), servicesidrestricted.param().abi()).ok() } pub unsafe fn ServiceRestricted(&self, servicename: P0, appname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ServiceRestricted)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), appname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ServiceRestricted)(windows_core::Interface::as_raw(self), servicename.param().abi(), appname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Rules(&self) -> windows_core::Result { @@ -2312,18 +2312,18 @@ impl INetSharingConfiguration { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPortMapping(&self, bstrname: P0, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: P1, etargettype: ICS_TARGETTYPE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddPortMapping)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), ucipprotocol, usexternalport, usinternalport, dwoptions, bstrtargetnameoripaddress.into_param().abi(), etargettype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddPortMapping)(windows_core::Interface::as_raw(self), bstrname.param().abi(), ucipprotocol, usexternalport, usinternalport, dwoptions, bstrtargetnameoripaddress.param().abi(), etargettype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemovePortMapping(&self, pmapping: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePortMapping)(windows_core::Interface::as_raw(self), pmapping.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemovePortMapping)(windows_core::Interface::as_raw(self), pmapping.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2395,10 +2395,10 @@ impl INetSharingManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_INetSharingConfigurationForINetConnection(&self, pnetconnection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_INetSharingConfigurationForINetConnection)(windows_core::Interface::as_raw(self), pnetconnection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_INetSharingConfigurationForINetConnection)(windows_core::Interface::as_raw(self), pnetconnection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumEveryConnection(&self) -> windows_core::Result { @@ -2408,10 +2408,10 @@ impl INetSharingManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_NetConnectionProps(&self, pnetconnection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_NetConnectionProps)(windows_core::Interface::as_raw(self), pnetconnection.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_NetConnectionProps)(windows_core::Interface::as_raw(self), pnetconnection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2627,21 +2627,21 @@ impl IStaticPortMapping { } pub unsafe fn EditInternalClient(&self, bstrinternalclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EditInternalClient)(windows_core::Interface::as_raw(self), bstrinternalclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EditInternalClient)(windows_core::Interface::as_raw(self), bstrinternalclient.param().abi()).ok() } pub unsafe fn Enable(&self, vb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), vb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), vb.param().abi()).ok() } pub unsafe fn EditDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EditDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EditDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn EditInternalPort(&self, linternalport: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EditInternalPort)(windows_core::Interface::as_raw(self), linternalport).ok() @@ -2676,10 +2676,10 @@ impl IStaticPortMappingCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, lexternalport: i32, bstrprotocol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lexternalport, bstrprotocol.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), lexternalport, bstrprotocol.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2687,20 +2687,20 @@ impl IStaticPortMappingCollection { } pub unsafe fn Remove(&self, lexternalport: i32, bstrprotocol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lexternalport, bstrprotocol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), lexternalport, bstrprotocol.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, lexternalport: i32, bstrprotocol: P0, linternalport: i32, bstrinternalclient: P1, benabled: P2, bstrdescription: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lexternalport, bstrprotocol.into_param().abi(), linternalport, bstrinternalclient.into_param().abi(), benabled.into_param().abi(), bstrdescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lexternalport, bstrprotocol.param().abi(), linternalport, bstrinternalclient.param().abi(), benabled.param().abi(), bstrdescription.param().abi(), &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 b8e661e239..45e007015e 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs @@ -7,10 +7,10 @@ pub unsafe fn WnvOpen() -> super::super::Foundation::HANDLE { #[inline] pub unsafe fn WnvRequestNotification(wnvhandle: P0, notificationparam: *mut WNV_NOTIFICATION_PARAM, overlapped: *mut super::super::System::IO::OVERLAPPED, bytestransferred: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(wnvhandle.into_param().abi(), notificationparam, overlapped, bytestransferred) + WnvRequestNotification(wnvhandle.param().abi(), notificationparam, overlapped, 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 8d03dcda24..5e82eaaef3 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -2,11 +2,11 @@ #[inline] pub unsafe fn ADsBuildEnumerator(padscontainer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsBuildEnumerator(padscontainer : * mut core::ffi::c_void, ppenumvariant : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - ADsBuildEnumerator(padscontainer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + ADsBuildEnumerator(padscontainer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn ADsBuildVarArrayInt(lpdwobjecttypes: *mut u32, dwobjecttypes: u32, pvar: *mut windows_core::VARIANT) -> windows_core::Result<()> { @@ -21,10 +21,10 @@ pub unsafe fn ADsBuildVarArrayStr(lpppathnames: &[windows_core::PCWSTR], pvar: * #[inline] pub unsafe fn ADsDecodeBinaryData(szsrcdata: P0, ppbdestdata: *mut *mut u8, pdwdestlen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsDecodeBinaryData(szsrcdata : windows_core::PCWSTR, ppbdestdata : *mut *mut u8, pdwdestlen : *mut u32) -> windows_core::HRESULT); - ADsDecodeBinaryData(szsrcdata.into_param().abi(), ppbdestdata, pdwdestlen).ok() + ADsDecodeBinaryData(szsrcdata.param().abi(), ppbdestdata, pdwdestlen).ok() } #[inline] pub unsafe fn ADsEncodeBinaryData(pbsrcdata: *mut u8, dwsrclen: u32, ppszdestdata: *mut windows_core::PWSTR) -> windows_core::Result<()> { @@ -35,19 +35,19 @@ pub unsafe fn ADsEncodeBinaryData(pbsrcdata: *mut u8, dwsrclen: u32, ppszdestdat #[inline] pub unsafe fn ADsEnumerateNext(penumvariant: P0, celements: u32, pvar: *mut windows_core::VARIANT, pcelementsfetched: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsEnumerateNext(penumvariant : * mut core::ffi::c_void, celements : u32, pvar : *mut std::mem::MaybeUninit < windows_core::VARIANT >, pcelementsfetched : *mut u32) -> windows_core::HRESULT); - ADsEnumerateNext(penumvariant.into_param().abi(), celements, core::mem::transmute(pvar), pcelementsfetched).ok() + ADsEnumerateNext(penumvariant.param().abi(), celements, core::mem::transmute(pvar), pcelementsfetched).ok() } #[cfg(feature = "Win32_System_Ole")] #[inline] pub unsafe fn ADsFreeEnumerator(penumvariant: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsFreeEnumerator(penumvariant : * mut core::ffi::c_void) -> windows_core::HRESULT); - ADsFreeEnumerator(penumvariant.into_param().abi()).ok() + ADsFreeEnumerator(penumvariant.param().abi()).ok() } #[inline] pub unsafe fn ADsGetLastError(lperror: *mut u32, lperrorbuf: &mut [u16], lpnamebuf: &mut [u16]) -> windows_core::Result<()> { @@ -57,90 +57,90 @@ pub unsafe fn ADsGetLastError(lperror: *mut u32, lperrorbuf: &mut [u16], lpnameb #[inline] pub unsafe fn ADsGetObject(lpszpathname: P0, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppobject).ok() + ADsGetObject(lpszpathname.param().abi(), riid, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszusername.into_param().abi(), lpszpassword.into_param().abi(), dwreserved, riid, ppobject).ok() + ADsOpenObject(lpszpathname.param().abi(), lpszusername.param().abi(), lpszpassword.param().abi(), dwreserved, riid, ppobject).ok() } #[inline] pub unsafe fn ADsPropCheckIfWritable(pwzattr: P0, pwritableattrs: *const ADS_ATTR_INFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), pwritableattrs) + ADsPropCheckIfWritable(pwzattr.param().abi(), pwritableattrs) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ADsPropCreateNotifyObj(pappthddataobj: P0, pwzadsobjname: P1, phnotifyobj: *mut super::super::Foundation::HWND) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dsprop.dll" "system" fn ADsPropCreateNotifyObj(pappthddataobj : * mut core::ffi::c_void, pwzadsobjname : windows_core::PCWSTR, phnotifyobj : *mut super::super::Foundation:: HWND) -> windows_core::HRESULT); - ADsPropCreateNotifyObj(pappthddataobj.into_param().abi(), pwzadsobjname.into_param().abi(), phnotifyobj).ok() + ADsPropCreateNotifyObj(pappthddataobj.param().abi(), pwzadsobjname.param().abi(), phnotifyobj).ok() } #[inline] pub unsafe fn ADsPropGetInitInfo(hnotifyobj: P0, pinitparams: *mut ADSPROPINITPARAMS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsprop.dll" "system" fn ADsPropGetInitInfo(hnotifyobj : super::super::Foundation:: HWND, pinitparams : *mut ADSPROPINITPARAMS) -> super::super::Foundation:: BOOL); - ADsPropGetInitInfo(hnotifyobj.into_param().abi(), pinitparams) + ADsPropGetInitInfo(hnotifyobj.param().abi(), pinitparams) } #[inline] pub unsafe fn ADsPropSendErrorMessage(hnotifyobj: P0, perror: *mut ADSPROPERROR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsprop.dll" "system" fn ADsPropSendErrorMessage(hnotifyobj : super::super::Foundation:: HWND, perror : *mut ADSPROPERROR) -> super::super::Foundation:: BOOL); - ADsPropSendErrorMessage(hnotifyobj.into_param().abi(), perror) + ADsPropSendErrorMessage(hnotifyobj.param().abi(), perror) } #[inline] pub unsafe fn ADsPropSetHwnd(hnotifyobj: P0, hpage: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dsprop.dll" "system" fn ADsPropSetHwnd(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ADsPropSetHwnd(hnotifyobj.into_param().abi(), hpage.into_param().abi()) + ADsPropSetHwnd(hnotifyobj.param().abi(), hpage.param().abi()) } #[inline] pub unsafe fn ADsPropSetHwndWithTitle(hnotifyobj: P0, hpage: P1, ptztitle: *const i8) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hnotifyobj.into_param().abi(), hpage.into_param().abi(), ptztitle) + ADsPropSetHwndWithTitle(hnotifyobj.param().abi(), hpage.param().abi(), ptztitle) } #[inline] pub unsafe fn ADsPropShowErrorDialog(hnotifyobj: P0, hpage: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dsprop.dll" "system" fn ADsPropShowErrorDialog(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ADsPropShowErrorDialog(hnotifyobj.into_param().abi(), hpage.into_param().abi()) + ADsPropShowErrorDialog(hnotifyobj.param().abi(), hpage.param().abi()) } #[inline] pub unsafe fn ADsSetLastError(dwerr: u32, pszerror: P0, pszprovider: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ADsSetLastError(dwerr : u32, pszerror : windows_core::PCWSTR, pszprovider : windows_core::PCWSTR)); - ADsSetLastError(dwerr, pszerror.into_param().abi(), pszprovider.into_param().abi()) + ADsSetLastError(dwerr, pszerror.param().abi(), pszprovider.param().abi()) } #[inline] pub unsafe fn AdsFreeAdsValues(padsvalues: *mut ADSVALUE, dwnumvalues: u32) { @@ -160,206 +160,206 @@ pub unsafe fn AllocADsMem(cb: u32) -> *mut core::ffi::c_void { #[inline] pub unsafe fn AllocADsStr(pstr: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn AllocADsStr(pstr : windows_core::PCWSTR) -> windows_core::PWSTR); - AllocADsStr(pstr.into_param().abi()) + AllocADsStr(pstr.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn BinarySDToSecurityDescriptor(psecuritydescriptor: P0, pvarsec: *mut windows_core::VARIANT, pszservername: P1, username: P2, password: P3, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn BinarySDToSecurityDescriptor(psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, pvarsec : *mut std::mem::MaybeUninit < windows_core::VARIANT >, pszservername : windows_core::PCWSTR, username : windows_core::PCWSTR, password : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - BinarySDToSecurityDescriptor(psecuritydescriptor.into_param().abi(), core::mem::transmute(pvarsec), pszservername.into_param().abi(), username.into_param().abi(), password.into_param().abi(), dwflags).ok() + BinarySDToSecurityDescriptor(psecuritydescriptor.param().abi(), core::mem::transmute(pvarsec), pszservername.param().abi(), username.param().abi(), password.param().abi(), dwflags).ok() } #[inline] pub unsafe fn DsAddSidHistoryA(hds: P0, flags: u32, srcdomain: P1, srcprincipal: P2, srcdomaincontroller: P3, srcdomaincreds: Option<*const core::ffi::c_void>, dstdomain: P4, dstprincipal: P5) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(hds.into_param().abi(), flags, srcdomain.into_param().abi(), srcprincipal.into_param().abi(), srcdomaincontroller.into_param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(std::ptr::null())), dstdomain.into_param().abi(), dstprincipal.into_param().abi()) + DsAddSidHistoryA(hds.param().abi(), flags, srcdomain.param().abi(), srcprincipal.param().abi(), srcdomaincontroller.param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(std::ptr::null())), dstdomain.param().abi(), dstprincipal.param().abi()) } #[inline] pub unsafe fn DsAddSidHistoryW(hds: P0, flags: u32, srcdomain: P1, srcprincipal: P2, srcdomaincontroller: P3, srcdomaincreds: Option<*const core::ffi::c_void>, dstdomain: P4, dstprincipal: P5) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(hds.into_param().abi(), flags, srcdomain.into_param().abi(), srcprincipal.into_param().abi(), srcdomaincontroller.into_param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(std::ptr::null())), dstdomain.into_param().abi(), dstprincipal.into_param().abi()) + DsAddSidHistoryW(hds.param().abi(), flags, srcdomain.param().abi(), srcprincipal.param().abi(), srcdomaincontroller.param().abi(), core::mem::transmute(srcdomaincreds.unwrap_or(std::ptr::null())), dstdomain.param().abi(), dstprincipal.param().abi()) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsAddressToSiteNamesA(computername: P0, socketaddresses: &[super::WinSock::SOCKET_ADDRESS], sitenames: *mut *mut windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsAddressToSiteNamesA(computername : windows_core::PCSTR, entrycount : u32, socketaddresses : *const super::WinSock:: SOCKET_ADDRESS, sitenames : *mut *mut windows_core::PSTR) -> u32); - DsAddressToSiteNamesA(computername.into_param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames) + DsAddressToSiteNamesA(computername.param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsAddressToSiteNamesExA(computername: P0, socketaddresses: &[super::WinSock::SOCKET_ADDRESS], sitenames: *mut *mut windows_core::PSTR, subnetnames: *mut *mut windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsAddressToSiteNamesExA(computername : windows_core::PCSTR, entrycount : u32, socketaddresses : *const super::WinSock:: SOCKET_ADDRESS, sitenames : *mut *mut windows_core::PSTR, subnetnames : *mut *mut windows_core::PSTR) -> u32); - DsAddressToSiteNamesExA(computername.into_param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames, subnetnames) + DsAddressToSiteNamesExA(computername.param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames, subnetnames) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsAddressToSiteNamesExW(computername: P0, socketaddresses: &[super::WinSock::SOCKET_ADDRESS], sitenames: *mut *mut windows_core::PWSTR, subnetnames: *mut *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsAddressToSiteNamesExW(computername : windows_core::PCWSTR, entrycount : u32, socketaddresses : *const super::WinSock:: SOCKET_ADDRESS, sitenames : *mut *mut windows_core::PWSTR, subnetnames : *mut *mut windows_core::PWSTR) -> u32); - DsAddressToSiteNamesExW(computername.into_param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames, subnetnames) + DsAddressToSiteNamesExW(computername.param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames, subnetnames) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsAddressToSiteNamesW(computername: P0, socketaddresses: &[super::WinSock::SOCKET_ADDRESS], sitenames: *mut *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsAddressToSiteNamesW(computername : windows_core::PCWSTR, entrycount : u32, socketaddresses : *const super::WinSock:: SOCKET_ADDRESS, sitenames : *mut *mut windows_core::PWSTR) -> u32); - DsAddressToSiteNamesW(computername.into_param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames) + DsAddressToSiteNamesW(computername.param().abi(), socketaddresses.len().try_into().unwrap(), core::mem::transmute(socketaddresses.as_ptr()), sitenames) } #[inline] pub unsafe fn DsBindA(domaincontrollername: P0, dnsdomainname: P1, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindA(domaincontrollername : windows_core::PCSTR, dnsdomainname : windows_core::PCSTR, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindA(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), phds) + DsBindA(domaincontrollername.param().abi(), dnsdomainname.param().abi(), phds) } #[inline] pub unsafe fn DsBindByInstanceA(servername: P0, annotation: P1, instanceguid: Option<*const windows_core::GUID>, dnsdomainname: P2, authidentity: Option<*const core::ffi::c_void>, serviceprincipalname: P3, bindflags: u32, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindByInstanceA(servername : windows_core::PCSTR, annotation : windows_core::PCSTR, instanceguid : *const windows_core::GUID, dnsdomainname : windows_core::PCSTR, authidentity : *const core::ffi::c_void, serviceprincipalname : windows_core::PCSTR, bindflags : u32, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindByInstanceA(servername.into_param().abi(), annotation.into_param().abi(), core::mem::transmute(instanceguid.unwrap_or(std::ptr::null())), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.into_param().abi(), bindflags, phds) + DsBindByInstanceA(servername.param().abi(), annotation.param().abi(), core::mem::transmute(instanceguid.unwrap_or(std::ptr::null())), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.param().abi(), bindflags, phds) } #[inline] pub unsafe fn DsBindByInstanceW(servername: P0, annotation: P1, instanceguid: Option<*const windows_core::GUID>, dnsdomainname: P2, authidentity: Option<*const core::ffi::c_void>, serviceprincipalname: P3, bindflags: u32, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindByInstanceW(servername : windows_core::PCWSTR, annotation : windows_core::PCWSTR, instanceguid : *const windows_core::GUID, dnsdomainname : windows_core::PCWSTR, authidentity : *const core::ffi::c_void, serviceprincipalname : windows_core::PCWSTR, bindflags : u32, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindByInstanceW(servername.into_param().abi(), annotation.into_param().abi(), core::mem::transmute(instanceguid.unwrap_or(std::ptr::null())), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.into_param().abi(), bindflags, phds) + DsBindByInstanceW(servername.param().abi(), annotation.param().abi(), core::mem::transmute(instanceguid.unwrap_or(std::ptr::null())), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.param().abi(), bindflags, phds) } #[inline] pub unsafe fn DsBindToISTGA(sitename: P0, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindToISTGA(sitename : windows_core::PCSTR, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindToISTGA(sitename.into_param().abi(), phds) + DsBindToISTGA(sitename.param().abi(), phds) } #[inline] pub unsafe fn DsBindToISTGW(sitename: P0, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindToISTGW(sitename : windows_core::PCWSTR, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindToISTGW(sitename.into_param().abi(), phds) + DsBindToISTGW(sitename.param().abi(), phds) } #[inline] pub unsafe fn DsBindW(domaincontrollername: P0, dnsdomainname: P1, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindW(domaincontrollername : windows_core::PCWSTR, dnsdomainname : windows_core::PCWSTR, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindW(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), phds) + DsBindW(domaincontrollername.param().abi(), dnsdomainname.param().abi(), phds) } #[inline] pub unsafe fn DsBindWithCredA(domaincontrollername: P0, dnsdomainname: P1, authidentity: Option<*const core::ffi::c_void>, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindWithCredA(domaincontrollername : windows_core::PCSTR, dnsdomainname : windows_core::PCSTR, authidentity : *const core::ffi::c_void, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindWithCredA(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), phds) + DsBindWithCredA(domaincontrollername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), phds) } #[inline] pub unsafe fn DsBindWithCredW(domaincontrollername: P0, dnsdomainname: P1, authidentity: Option<*const core::ffi::c_void>, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindWithCredW(domaincontrollername : windows_core::PCWSTR, dnsdomainname : windows_core::PCWSTR, authidentity : *const core::ffi::c_void, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindWithCredW(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), phds) + DsBindWithCredW(domaincontrollername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), phds) } #[inline] pub unsafe fn DsBindWithSpnA(domaincontrollername: P0, dnsdomainname: P1, authidentity: Option<*const core::ffi::c_void>, serviceprincipalname: P2, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindWithSpnA(domaincontrollername : windows_core::PCSTR, dnsdomainname : windows_core::PCSTR, authidentity : *const core::ffi::c_void, serviceprincipalname : windows_core::PCSTR, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindWithSpnA(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.into_param().abi(), phds) + DsBindWithSpnA(domaincontrollername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.param().abi(), phds) } #[inline] pub unsafe fn DsBindWithSpnExA(domaincontrollername: P0, dnsdomainname: P1, authidentity: Option<*const core::ffi::c_void>, serviceprincipalname: P2, bindflags: u32, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindWithSpnExA(domaincontrollername : windows_core::PCSTR, dnsdomainname : windows_core::PCSTR, authidentity : *const core::ffi::c_void, serviceprincipalname : windows_core::PCSTR, bindflags : u32, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindWithSpnExA(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.into_param().abi(), bindflags, phds) + DsBindWithSpnExA(domaincontrollername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.param().abi(), bindflags, phds) } #[inline] pub unsafe fn DsBindWithSpnExW(domaincontrollername: P0, dnsdomainname: P1, authidentity: Option<*const core::ffi::c_void>, serviceprincipalname: P2, bindflags: u32, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindWithSpnExW(domaincontrollername : windows_core::PCWSTR, dnsdomainname : windows_core::PCWSTR, authidentity : *const core::ffi::c_void, serviceprincipalname : windows_core::PCWSTR, bindflags : u32, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindWithSpnExW(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.into_param().abi(), bindflags, phds) + DsBindWithSpnExW(domaincontrollername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.param().abi(), bindflags, phds) } #[inline] pub unsafe fn DsBindWithSpnW(domaincontrollername: P0, dnsdomainname: P1, authidentity: Option<*const core::ffi::c_void>, serviceprincipalname: P2, phds: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindWithSpnW(domaincontrollername : windows_core::PCWSTR, dnsdomainname : windows_core::PCWSTR, authidentity : *const core::ffi::c_void, serviceprincipalname : windows_core::PCWSTR, phds : *mut super::super::Foundation:: HANDLE) -> u32); - DsBindWithSpnW(domaincontrollername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.into_param().abi(), phds) + DsBindWithSpnW(domaincontrollername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), serviceprincipalname.param().abi(), phds) } #[inline] pub unsafe fn DsBindingSetTimeout(hds: P0, ctimeoutsecs: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsBindingSetTimeout(hds : super::super::Foundation:: HANDLE, ctimeoutsecs : u32) -> u32); - DsBindingSetTimeout(hds.into_param().abi(), ctimeoutsecs) + DsBindingSetTimeout(hds.param().abi(), ctimeoutsecs) } #[cfg(feature = "Win32_UI_Shell")] #[inline] @@ -376,36 +376,36 @@ pub unsafe fn DsBrowseForContainerW(pinfo: *mut DSBROWSEINFOW) -> i32 { #[inline] pub unsafe fn DsClientMakeSpnForTargetServerA(serviceclass: P0, servicename: P1, pcspnlength: *mut u32, pszspn: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsClientMakeSpnForTargetServerA(serviceclass : windows_core::PCSTR, servicename : windows_core::PCSTR, pcspnlength : *mut u32, pszspn : windows_core::PSTR) -> u32); - DsClientMakeSpnForTargetServerA(serviceclass.into_param().abi(), servicename.into_param().abi(), pcspnlength, core::mem::transmute(pszspn)) + DsClientMakeSpnForTargetServerA(serviceclass.param().abi(), servicename.param().abi(), pcspnlength, core::mem::transmute(pszspn)) } #[inline] pub unsafe fn DsClientMakeSpnForTargetServerW(serviceclass: P0, servicename: P1, pcspnlength: *mut u32, pszspn: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsClientMakeSpnForTargetServerW(serviceclass : windows_core::PCWSTR, servicename : windows_core::PCWSTR, pcspnlength : *mut u32, pszspn : windows_core::PWSTR) -> u32); - DsClientMakeSpnForTargetServerW(serviceclass.into_param().abi(), servicename.into_param().abi(), pcspnlength, core::mem::transmute(pszspn)) + DsClientMakeSpnForTargetServerW(serviceclass.param().abi(), servicename.param().abi(), pcspnlength, core::mem::transmute(pszspn)) } #[inline] pub unsafe fn DsCrackNamesA(hds: P0, flags: DS_NAME_FLAGS, formatoffered: DS_NAME_FORMAT, formatdesired: DS_NAME_FORMAT, rpnames: &[windows_core::PCSTR], ppresult: *mut *mut DS_NAME_RESULTA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hds.into_param().abi(), flags, formatoffered, formatdesired, rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), ppresult) + DsCrackNamesA(hds.param().abi(), flags, formatoffered, formatdesired, rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), ppresult) } #[inline] pub unsafe fn DsCrackNamesW(hds: P0, flags: DS_NAME_FLAGS, formatoffered: DS_NAME_FORMAT, formatdesired: DS_NAME_FORMAT, rpnames: &[windows_core::PCWSTR], ppresult: *mut *mut DS_NAME_RESULTW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hds.into_param().abi(), flags, formatoffered, formatdesired, rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), ppresult) + DsCrackNamesW(hds.param().abi(), flags, formatoffered, formatdesired, rpnames.len().try_into().unwrap(), core::mem::transmute(rpnames.as_ptr()), ppresult) } #[inline] pub unsafe fn DsCrackSpn2A(pszspn: &[u8], pcserviceclass: Option<*mut u32>, serviceclass: windows_core::PSTR, pcservicename: Option<*mut u32>, servicename: windows_core::PSTR, pcinstancename: Option<*mut u32>, instancename: windows_core::PSTR, pinstanceport: Option<*mut u16>) -> u32 { @@ -420,34 +420,34 @@ pub unsafe fn DsCrackSpn2W(pszspn: &[u16], pcserviceclass: Option<*mut u32>, ser #[inline] pub unsafe fn DsCrackSpn3W(pszspn: P0, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), cspn, pchostname, core::mem::transmute(hostname), pcinstancename, core::mem::transmute(instancename), pportnumber, pcdomainname, core::mem::transmute(domainname), pcrealmname, core::mem::transmute(realmname)) + DsCrackSpn3W(pszspn.param().abi(), cspn, pchostname, core::mem::transmute(hostname), pcinstancename, core::mem::transmute(instancename), pportnumber, pcdomainname, core::mem::transmute(domainname), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), cspn, pchostname, core::mem::transmute(hostname), pcinstancename, core::mem::transmute(instancename), pcportname, core::mem::transmute(portname), pcdomainname, core::mem::transmute(domainname), pcrealmname, core::mem::transmute(realmname)) + DsCrackSpn4W(pszspn.param().abi(), cspn, pchostname, core::mem::transmute(hostname), pcinstancename, core::mem::transmute(instancename), pcportname, core::mem::transmute(portname), pcdomainname, core::mem::transmute(domainname), pcrealmname, core::mem::transmute(realmname)) } #[inline] pub unsafe fn DsCrackSpnA(pszspn: P0, pcserviceclass: Option<*mut u32>, serviceclass: windows_core::PSTR, pcservicename: Option<*mut u32>, servicename: windows_core::PSTR, pcinstancename: Option<*mut u32>, instancename: windows_core::PSTR, pinstanceport: Option<*mut u16>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsCrackSpnA(pszspn : windows_core::PCSTR, pcserviceclass : *mut u32, serviceclass : windows_core::PSTR, pcservicename : *mut u32, servicename : windows_core::PSTR, pcinstancename : *mut u32, instancename : windows_core::PSTR, pinstanceport : *mut u16) -> u32); - DsCrackSpnA(pszspn.into_param().abi(), core::mem::transmute(pcserviceclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(serviceclass), core::mem::transmute(pcservicename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(servicename), core::mem::transmute(pcinstancename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(instancename), core::mem::transmute(pinstanceport.unwrap_or(std::ptr::null_mut()))) + DsCrackSpnA(pszspn.param().abi(), core::mem::transmute(pcserviceclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(serviceclass), core::mem::transmute(pcservicename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(servicename), core::mem::transmute(pcinstancename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(instancename), core::mem::transmute(pinstanceport.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DsCrackSpnW(pszspn: P0, pcserviceclass: Option<*mut u32>, serviceclass: windows_core::PWSTR, pcservicename: Option<*mut u32>, servicename: windows_core::PWSTR, pcinstancename: Option<*mut u32>, instancename: windows_core::PWSTR, pinstanceport: Option<*mut u16>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsparse.dll" "system" fn DsCrackSpnW(pszspn : windows_core::PCWSTR, pcserviceclass : *mut u32, serviceclass : windows_core::PWSTR, pcservicename : *mut u32, servicename : windows_core::PWSTR, pcinstancename : *mut u32, instancename : windows_core::PWSTR, pinstanceport : *mut u16) -> u32); - DsCrackSpnW(pszspn.into_param().abi(), core::mem::transmute(pcserviceclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(serviceclass), core::mem::transmute(pcservicename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(servicename), core::mem::transmute(pcinstancename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(instancename), core::mem::transmute(pinstanceport.unwrap_or(std::ptr::null_mut()))) + DsCrackSpnW(pszspn.param().abi(), core::mem::transmute(pcserviceclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(serviceclass), core::mem::transmute(pcservicename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(servicename), core::mem::transmute(pcinstancename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(instancename), core::mem::transmute(pinstanceport.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DsCrackUnquotedMangledRdnA(pszrdn: &[u8], pguid: Option<*mut windows_core::GUID>, pedsmanglefor: Option<*mut DS_MANGLE_FOR>) -> super::super::Foundation::BOOL { @@ -462,38 +462,38 @@ pub unsafe fn DsCrackUnquotedMangledRdnW(pszrdn: &[u16], pguid: Option<*mut wind #[inline] pub unsafe fn DsDeregisterDnsHostRecordsA(servername: P0, dnsdomainname: P1, domainguid: Option<*const windows_core::GUID>, dsaguid: Option<*const windows_core::GUID>, dnshostname: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsDeregisterDnsHostRecordsA(servername : windows_core::PCSTR, dnsdomainname : windows_core::PCSTR, domainguid : *const windows_core::GUID, dsaguid : *const windows_core::GUID, dnshostname : windows_core::PCSTR) -> u32); - DsDeregisterDnsHostRecordsA(servername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), core::mem::transmute(dsaguid.unwrap_or(std::ptr::null())), dnshostname.into_param().abi()) + DsDeregisterDnsHostRecordsA(servername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), core::mem::transmute(dsaguid.unwrap_or(std::ptr::null())), dnshostname.param().abi()) } #[inline] pub unsafe fn DsDeregisterDnsHostRecordsW(servername: P0, dnsdomainname: P1, domainguid: Option<*const windows_core::GUID>, dsaguid: Option<*const windows_core::GUID>, dnshostname: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsDeregisterDnsHostRecordsW(servername : windows_core::PCWSTR, dnsdomainname : windows_core::PCWSTR, domainguid : *const windows_core::GUID, dsaguid : *const windows_core::GUID, dnshostname : windows_core::PCWSTR) -> u32); - DsDeregisterDnsHostRecordsW(servername.into_param().abi(), dnsdomainname.into_param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), core::mem::transmute(dsaguid.unwrap_or(std::ptr::null())), dnshostname.into_param().abi()) + DsDeregisterDnsHostRecordsW(servername.param().abi(), dnsdomainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), core::mem::transmute(dsaguid.unwrap_or(std::ptr::null())), dnshostname.param().abi()) } #[inline] pub unsafe fn DsEnumerateDomainTrustsA(servername: P0, flags: u32, domains: *mut *mut DS_DOMAIN_TRUSTSA, domaincount: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, domains, domaincount) + DsEnumerateDomainTrustsA(servername.param().abi(), flags, domains, domaincount) } #[inline] pub unsafe fn DsEnumerateDomainTrustsW(servername: P0, flags: u32, domains: *mut *mut DS_DOMAIN_TRUSTSW, domaincount: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, domains, domaincount) + DsEnumerateDomainTrustsW(servername.param().abi(), flags, domains, domaincount) } #[inline] pub unsafe fn DsFreeDomainControllerInfoA(infolevel: u32, pinfo: &[u8]) { @@ -543,129 +543,129 @@ pub unsafe fn DsFreeSpnArrayW(rpszspn: &mut [windows_core::PWSTR]) { #[inline] pub unsafe fn DsGetDcCloseW(getdccontexthandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetDcCloseW(getdccontexthandle : super::super::Foundation:: HANDLE)); - DsGetDcCloseW(getdccontexthandle.into_param().abi()) + DsGetDcCloseW(getdccontexthandle.param().abi()) } #[inline] pub unsafe fn DsGetDcNameA(computername: P0, domainname: P1, domainguid: Option<*const windows_core::GUID>, sitename: P2, flags: u32, domaincontrollerinfo: *mut *mut DOMAIN_CONTROLLER_INFOA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), domainname.into_param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), sitename.into_param().abi(), flags, domaincontrollerinfo) + DsGetDcNameA(computername.param().abi(), domainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), sitename.param().abi(), flags, domaincontrollerinfo) } #[inline] pub unsafe fn DsGetDcNameW(computername: P0, domainname: P1, domainguid: Option<*const windows_core::GUID>, sitename: P2, flags: u32, domaincontrollerinfo: *mut *mut DOMAIN_CONTROLLER_INFOW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), domainname.into_param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), sitename.into_param().abi(), flags, domaincontrollerinfo) + DsGetDcNameW(computername.param().abi(), domainname.param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), sitename.param().abi(), flags, domaincontrollerinfo) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsGetDcNextA(getdccontexthandle: P0, sockaddresscount: Option<*mut u32>, sockaddresses: Option<*mut *mut super::WinSock::SOCKET_ADDRESS>, dnshostname: Option<*mut windows_core::PSTR>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(getdccontexthandle.into_param().abi(), core::mem::transmute(sockaddresscount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(sockaddresses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(dnshostname.unwrap_or(std::ptr::null_mut()))) + DsGetDcNextA(getdccontexthandle.param().abi(), core::mem::transmute(sockaddresscount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(sockaddresses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(dnshostname.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn DsGetDcNextW(getdccontexthandle: P0, sockaddresscount: Option<*mut u32>, sockaddresses: Option<*mut *mut super::WinSock::SOCKET_ADDRESS>, dnshostname: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(getdccontexthandle.into_param().abi(), core::mem::transmute(sockaddresscount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(sockaddresses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(dnshostname.unwrap_or(std::ptr::null_mut()))) + DsGetDcNextW(getdccontexthandle.param().abi(), core::mem::transmute(sockaddresscount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(sockaddresses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(dnshostname.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DsGetDcOpenA(dnsname: P0, optionflags: u32, sitename: P1, domainguid: Option<*const windows_core::GUID>, dnsforestname: P2, dcflags: u32, retgetdccontext: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), optionflags, sitename.into_param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), dnsforestname.into_param().abi(), dcflags, retgetdccontext) + DsGetDcOpenA(dnsname.param().abi(), optionflags, sitename.param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), dnsforestname.param().abi(), dcflags, retgetdccontext) } #[inline] pub unsafe fn DsGetDcOpenW(dnsname: P0, optionflags: u32, sitename: P1, domainguid: Option<*const windows_core::GUID>, dnsforestname: P2, dcflags: u32, retgetdccontext: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), optionflags, sitename.into_param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), dnsforestname.into_param().abi(), dcflags, retgetdccontext) + DsGetDcOpenW(dnsname.param().abi(), optionflags, sitename.param().abi(), core::mem::transmute(domainguid.unwrap_or(std::ptr::null())), dnsforestname.param().abi(), dcflags, retgetdccontext) } #[inline] pub unsafe fn DsGetDcSiteCoverageA(servername: P0, entrycount: *mut u32, sitenames: *mut *mut windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetDcSiteCoverageA(servername : windows_core::PCSTR, entrycount : *mut u32, sitenames : *mut *mut windows_core::PSTR) -> u32); - DsGetDcSiteCoverageA(servername.into_param().abi(), entrycount, sitenames) + DsGetDcSiteCoverageA(servername.param().abi(), entrycount, sitenames) } #[inline] pub unsafe fn DsGetDcSiteCoverageW(servername: P0, entrycount: *mut u32, sitenames: *mut *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetDcSiteCoverageW(servername : windows_core::PCWSTR, entrycount : *mut u32, sitenames : *mut *mut windows_core::PWSTR) -> u32); - DsGetDcSiteCoverageW(servername.into_param().abi(), entrycount, sitenames) + DsGetDcSiteCoverageW(servername.param().abi(), entrycount, sitenames) } #[inline] pub unsafe fn DsGetDomainControllerInfoA(hds: P0, domainname: P1, infolevel: u32, pcout: *mut u32, ppinfo: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), domainname.into_param().abi(), infolevel, pcout, ppinfo) + DsGetDomainControllerInfoA(hds.param().abi(), domainname.param().abi(), infolevel, pcout, ppinfo) } #[inline] pub unsafe fn DsGetDomainControllerInfoW(hds: P0, domainname: P1, infolevel: u32, pcout: *mut u32, ppinfo: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), domainname.into_param().abi(), infolevel, pcout, ppinfo) + DsGetDomainControllerInfoW(hds.param().abi(), domainname.param().abi(), infolevel, pcout, ppinfo) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn DsGetForestTrustInformationW(servername: P0, trusteddomainname: P1, flags: u32, foresttrustinfo: *mut *mut super::super::Security::Authentication::Identity::LSA_FOREST_TRUST_INFORMATION) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), trusteddomainname.into_param().abi(), flags, foresttrustinfo) + DsGetForestTrustInformationW(servername.param().abi(), trusteddomainname.param().abi(), flags, foresttrustinfo) } #[inline] pub unsafe fn DsGetFriendlyClassName(pszobjectclass: P0, pszbuffer: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dsuiext.dll" "system" fn DsGetFriendlyClassName(pszobjectclass : windows_core::PCWSTR, pszbuffer : windows_core::PWSTR, cchbuffer : u32) -> windows_core::HRESULT); - DsGetFriendlyClassName(pszobjectclass.into_param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap()).ok() + DsGetFriendlyClassName(pszobjectclass.param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn DsGetIcon(dwflags: u32, pszobjectclass: P0, cximage: i32, cyimage: i32) -> super::super::UI::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, + P0: 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(dwflags, pszobjectclass.into_param().abi(), cximage, 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 { @@ -675,72 +675,72 @@ pub unsafe fn DsGetRdnW(ppdn: *mut windows_core::PWSTR, pcdn: *mut u32, ppkey: * #[inline] pub unsafe fn DsGetSiteNameA(computername: P0, sitename: *mut windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetSiteNameA(computername : windows_core::PCSTR, sitename : *mut windows_core::PSTR) -> u32); - DsGetSiteNameA(computername.into_param().abi(), sitename) + DsGetSiteNameA(computername.param().abi(), sitename) } #[inline] pub unsafe fn DsGetSiteNameW(computername: P0, sitename: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsGetSiteNameW(computername : windows_core::PCWSTR, sitename : *mut windows_core::PWSTR) -> u32); - DsGetSiteNameW(computername.into_param().abi(), sitename) + DsGetSiteNameW(computername.param().abi(), sitename) } #[inline] pub unsafe fn DsGetSpnA(servicetype: DS_SPN_NAME_TYPE, serviceclass: P0, servicename: P1, instanceport: u16, cinstancenames: u16, pinstancenames: Option<*const windows_core::PCSTR>, pinstanceports: Option<*const u16>, pcspn: *mut u32, prpszspn: *mut *mut windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(servicetype, serviceclass.into_param().abi(), servicename.into_param().abi(), instanceport, cinstancenames, core::mem::transmute(pinstancenames.unwrap_or(std::ptr::null())), core::mem::transmute(pinstanceports.unwrap_or(std::ptr::null())), pcspn, prpszspn) + DsGetSpnA(servicetype, serviceclass.param().abi(), servicename.param().abi(), instanceport, cinstancenames, core::mem::transmute(pinstancenames.unwrap_or(std::ptr::null())), core::mem::transmute(pinstanceports.unwrap_or(std::ptr::null())), pcspn, prpszspn) } #[inline] pub unsafe fn DsGetSpnW(servicetype: DS_SPN_NAME_TYPE, serviceclass: P0, servicename: P1, instanceport: u16, cinstancenames: u16, pinstancenames: Option<*const windows_core::PCWSTR>, pinstanceports: Option<*const u16>, pcspn: *mut u32, prpszspn: *mut *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(servicetype, serviceclass.into_param().abi(), servicename.into_param().abi(), instanceport, cinstancenames, core::mem::transmute(pinstancenames.unwrap_or(std::ptr::null())), core::mem::transmute(pinstanceports.unwrap_or(std::ptr::null())), pcspn, prpszspn) + DsGetSpnW(servicetype, serviceclass.param().abi(), servicename.param().abi(), instanceport, cinstancenames, core::mem::transmute(pinstancenames.unwrap_or(std::ptr::null())), core::mem::transmute(pinstanceports.unwrap_or(std::ptr::null())), pcspn, prpszspn) } #[inline] pub unsafe fn DsInheritSecurityIdentityA(hds: P0, flags: u32, srcprincipal: P1, dstprincipal: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hds.into_param().abi(), flags, srcprincipal.into_param().abi(), dstprincipal.into_param().abi()) + DsInheritSecurityIdentityA(hds.param().abi(), flags, srcprincipal.param().abi(), dstprincipal.param().abi()) } #[inline] pub unsafe fn DsInheritSecurityIdentityW(hds: P0, flags: u32, srcprincipal: P1, dstprincipal: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hds.into_param().abi(), flags, srcprincipal.into_param().abi(), dstprincipal.into_param().abi()) + DsInheritSecurityIdentityW(hds.param().abi(), flags, srcprincipal.param().abi(), dstprincipal.param().abi()) } #[inline] pub unsafe fn DsIsMangledDnA(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), edsmanglefor) + DsIsMangledDnA(pszdn.param().abi(), edsmanglefor) } #[inline] pub unsafe fn DsIsMangledDnW(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), edsmanglefor) + DsIsMangledDnW(pszdn.param().abi(), edsmanglefor) } #[inline] pub unsafe fn DsIsMangledRdnValueA(pszrdn: &[u8], edsmanglefordesired: DS_MANGLE_FOR) -> super::super::Foundation::BOOL { @@ -755,193 +755,193 @@ pub unsafe fn DsIsMangledRdnValueW(pszrdn: &[u16], edsmanglefordesired: DS_MANGL #[inline] pub unsafe fn DsListDomainsInSiteA(hds: P0, site: P1, ppdomains: *mut *mut DS_NAME_RESULTA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), site.into_param().abi(), ppdomains) + DsListDomainsInSiteA(hds.param().abi(), site.param().abi(), ppdomains) } #[inline] pub unsafe fn DsListDomainsInSiteW(hds: P0, site: P1, ppdomains: *mut *mut DS_NAME_RESULTW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), site.into_param().abi(), ppdomains) + DsListDomainsInSiteW(hds.param().abi(), site.param().abi(), ppdomains) } #[inline] pub unsafe fn DsListInfoForServerA(hds: P0, server: P1, ppinfo: *mut *mut DS_NAME_RESULTA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), server.into_param().abi(), ppinfo) + DsListInfoForServerA(hds.param().abi(), server.param().abi(), ppinfo) } #[inline] pub unsafe fn DsListInfoForServerW(hds: P0, server: P1, ppinfo: *mut *mut DS_NAME_RESULTW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), server.into_param().abi(), ppinfo) + DsListInfoForServerW(hds.param().abi(), server.param().abi(), ppinfo) } #[inline] pub unsafe fn DsListRolesA(hds: P0, pproles: *mut *mut DS_NAME_RESULTA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListRolesA(hds : super::super::Foundation:: HANDLE, pproles : *mut *mut DS_NAME_RESULTA) -> u32); - DsListRolesA(hds.into_param().abi(), pproles) + DsListRolesA(hds.param().abi(), pproles) } #[inline] pub unsafe fn DsListRolesW(hds: P0, pproles: *mut *mut DS_NAME_RESULTW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListRolesW(hds : super::super::Foundation:: HANDLE, pproles : *mut *mut DS_NAME_RESULTW) -> u32); - DsListRolesW(hds.into_param().abi(), pproles) + DsListRolesW(hds.param().abi(), pproles) } #[inline] pub unsafe fn DsListServersForDomainInSiteA(hds: P0, domain: P1, site: P2, ppservers: *mut *mut DS_NAME_RESULTA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hds.into_param().abi(), domain.into_param().abi(), site.into_param().abi(), ppservers) + DsListServersForDomainInSiteA(hds.param().abi(), domain.param().abi(), site.param().abi(), ppservers) } #[inline] pub unsafe fn DsListServersForDomainInSiteW(hds: P0, domain: P1, site: P2, ppservers: *mut *mut DS_NAME_RESULTW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hds.into_param().abi(), domain.into_param().abi(), site.into_param().abi(), ppservers) + DsListServersForDomainInSiteW(hds.param().abi(), domain.param().abi(), site.param().abi(), ppservers) } #[inline] pub unsafe fn DsListServersInSiteA(hds: P0, site: P1, ppservers: *mut *mut DS_NAME_RESULTA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), site.into_param().abi(), ppservers) + DsListServersInSiteA(hds.param().abi(), site.param().abi(), ppservers) } #[inline] pub unsafe fn DsListServersInSiteW(hds: P0, site: P1, ppservers: *mut *mut DS_NAME_RESULTW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), site.into_param().abi(), ppservers) + DsListServersInSiteW(hds.param().abi(), site.param().abi(), ppservers) } #[inline] pub unsafe fn DsListSitesA(hds: P0, ppsites: *mut *mut DS_NAME_RESULTA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListSitesA(hds : super::super::Foundation:: HANDLE, ppsites : *mut *mut DS_NAME_RESULTA) -> u32); - DsListSitesA(hds.into_param().abi(), ppsites) + DsListSitesA(hds.param().abi(), ppsites) } #[inline] pub unsafe fn DsListSitesW(hds: P0, ppsites: *mut *mut DS_NAME_RESULTW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsListSitesW(hds : super::super::Foundation:: HANDLE, ppsites : *mut *mut DS_NAME_RESULTW) -> u32); - DsListSitesW(hds.into_param().abi(), ppsites) + DsListSitesW(hds.param().abi(), ppsites) } #[inline] pub unsafe fn DsMakePasswordCredentialsA(user: P0, domain: P1, password: P2, pauthidentity: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsMakePasswordCredentialsA(user : windows_core::PCSTR, domain : windows_core::PCSTR, password : windows_core::PCSTR, pauthidentity : *mut *mut core::ffi::c_void) -> u32); - DsMakePasswordCredentialsA(user.into_param().abi(), domain.into_param().abi(), password.into_param().abi(), pauthidentity) + DsMakePasswordCredentialsA(user.param().abi(), domain.param().abi(), password.param().abi(), pauthidentity) } #[inline] pub unsafe fn DsMakePasswordCredentialsW(user: P0, domain: P1, password: P2, pauthidentity: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsMakePasswordCredentialsW(user : windows_core::PCWSTR, domain : windows_core::PCWSTR, password : windows_core::PCWSTR, pauthidentity : *mut *mut core::ffi::c_void) -> u32); - DsMakePasswordCredentialsW(user.into_param().abi(), domain.into_param().abi(), password.into_param().abi(), pauthidentity) + DsMakePasswordCredentialsW(user.param().abi(), domain.param().abi(), password.param().abi(), pauthidentity) } #[inline] pub unsafe fn DsMakeSpnA(serviceclass: P0, servicename: P1, instancename: P2, instanceport: u16, referrer: P3, pcspnlength: *mut u32, pszspn: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), servicename.into_param().abi(), instancename.into_param().abi(), instanceport, referrer.into_param().abi(), pcspnlength, core::mem::transmute(pszspn)) + DsMakeSpnA(serviceclass.param().abi(), servicename.param().abi(), instancename.param().abi(), instanceport, referrer.param().abi(), pcspnlength, core::mem::transmute(pszspn)) } #[inline] pub unsafe fn DsMakeSpnW(serviceclass: P0, servicename: P1, instancename: P2, instanceport: u16, referrer: P3, pcspnlength: *mut u32, pszspn: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), servicename.into_param().abi(), instancename.into_param().abi(), instanceport, referrer.into_param().abi(), pcspnlength, core::mem::transmute(pszspn)) + DsMakeSpnW(serviceclass.param().abi(), servicename.param().abi(), instancename.param().abi(), instanceport, referrer.param().abi(), pcspnlength, core::mem::transmute(pszspn)) } #[inline] pub unsafe fn DsMapSchemaGuidsA(hds: P0, rguids: &[windows_core::GUID], ppguidmap: *mut *mut DS_SCHEMA_GUID_MAPA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hds.into_param().abi(), rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), ppguidmap) + DsMapSchemaGuidsA(hds.param().abi(), rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), ppguidmap) } #[inline] pub unsafe fn DsMapSchemaGuidsW(hds: P0, rguids: &[windows_core::GUID], ppguidmap: *mut *mut DS_SCHEMA_GUID_MAPW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hds.into_param().abi(), rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), ppguidmap) + DsMapSchemaGuidsW(hds.param().abi(), rguids.len().try_into().unwrap(), core::mem::transmute(rguids.as_ptr()), ppguidmap) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] pub unsafe fn DsMergeForestTrustInformationW(domainname: P0, newforesttrustinfo: *const super::super::Security::Authentication::Identity::LSA_FOREST_TRUST_INFORMATION, oldforesttrustinfo: Option<*const super::super::Security::Authentication::Identity::LSA_FOREST_TRUST_INFORMATION>, mergedforesttrustinfo: *mut *mut super::super::Security::Authentication::Identity::LSA_FOREST_TRUST_INFORMATION) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), newforesttrustinfo, core::mem::transmute(oldforesttrustinfo.unwrap_or(std::ptr::null())), mergedforesttrustinfo) + DsMergeForestTrustInformationW(domainname.param().abi(), newforesttrustinfo, core::mem::transmute(oldforesttrustinfo.unwrap_or(std::ptr::null())), mergedforesttrustinfo) } #[inline] pub unsafe fn DsQuerySitesByCostA(hds: P0, pszfromsite: P1, rgsztosites: &[windows_core::PCSTR], dwflags: u32, prgsiteinfo: *mut *mut DS_SITE_COST_INFO) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), pszfromsite.into_param().abi(), core::mem::transmute(rgsztosites.as_ptr()), rgsztosites.len().try_into().unwrap(), dwflags, prgsiteinfo) + DsQuerySitesByCostA(hds.param().abi(), pszfromsite.param().abi(), core::mem::transmute(rgsztosites.as_ptr()), rgsztosites.len().try_into().unwrap(), dwflags, prgsiteinfo) } #[inline] pub unsafe fn DsQuerySitesByCostW(hds: P0, pwszfromsite: P1, rgwsztosites: &[windows_core::PCWSTR], dwflags: u32, prgsiteinfo: *mut *mut DS_SITE_COST_INFO) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), pwszfromsite.into_param().abi(), core::mem::transmute(rgwsztosites.as_ptr()), rgwsztosites.len().try_into().unwrap(), dwflags, prgsiteinfo) + DsQuerySitesByCostW(hds.param().abi(), pwszfromsite.param().abi(), core::mem::transmute(rgwsztosites.as_ptr()), rgwsztosites.len().try_into().unwrap(), dwflags, prgsiteinfo) } #[inline] pub unsafe fn DsQuerySitesFree(rgsiteinfo: *const DS_SITE_COST_INFO) { @@ -961,94 +961,94 @@ pub unsafe fn DsQuoteRdnValueW(psunquotedrdnvalue: &[u16], pcquotedrdnvaluelengt #[inline] pub unsafe fn DsRemoveDsDomainA(hds: P0, domaindn: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsDomainA(hds : super::super::Foundation:: HANDLE, domaindn : windows_core::PCSTR) -> u32); - DsRemoveDsDomainA(hds.into_param().abi(), domaindn.into_param().abi()) + DsRemoveDsDomainA(hds.param().abi(), domaindn.param().abi()) } #[inline] pub unsafe fn DsRemoveDsDomainW(hds: P0, domaindn: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsDomainW(hds : super::super::Foundation:: HANDLE, domaindn : windows_core::PCWSTR) -> u32); - DsRemoveDsDomainW(hds.into_param().abi(), domaindn.into_param().abi()) + DsRemoveDsDomainW(hds.param().abi(), domaindn.param().abi()) } #[inline] pub unsafe fn DsRemoveDsServerA(hds: P0, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut super::super::Foundation::BOOL>, fcommit: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hds.into_param().abi(), serverdn.into_param().abi(), domaindn.into_param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(std::ptr::null_mut())), fcommit.into_param().abi()) + DsRemoveDsServerA(hds.param().abi(), serverdn.param().abi(), domaindn.param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(std::ptr::null_mut())), fcommit.param().abi()) } #[inline] pub unsafe fn DsRemoveDsServerW(hds: P0, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut super::super::Foundation::BOOL>, fcommit: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hds.into_param().abi(), serverdn.into_param().abi(), domaindn.into_param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(std::ptr::null_mut())), fcommit.into_param().abi()) + DsRemoveDsServerW(hds.param().abi(), serverdn.param().abi(), domaindn.param().abi(), core::mem::transmute(flastdcindomain.unwrap_or(std::ptr::null_mut())), fcommit.param().abi()) } #[inline] pub unsafe fn DsReplicaAddA(hds: P0, namecontext: P1, sourcedsadn: P2, transportdn: P3, sourcedsaaddress: P4, pschedule: Option<*const SCHEDULE>, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), sourcedsadn.into_param().abi(), transportdn.into_param().abi(), sourcedsaaddress.into_param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), options) + DsReplicaAddA(hds.param().abi(), namecontext.param().abi(), sourcedsadn.param().abi(), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), options) } #[inline] pub unsafe fn DsReplicaAddW(hds: P0, namecontext: P1, sourcedsadn: P2, transportdn: P3, sourcedsaaddress: P4, pschedule: Option<*const SCHEDULE>, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), sourcedsadn.into_param().abi(), transportdn.into_param().abi(), sourcedsaaddress.into_param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), options) + DsReplicaAddW(hds.param().abi(), namecontext.param().abi(), sourcedsadn.param().abi(), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), options) } #[inline] pub unsafe fn DsReplicaConsistencyCheck(hds: P0, taskid: DS_KCC_TASKID, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdsapi.dll" "system" fn DsReplicaConsistencyCheck(hds : super::super::Foundation:: HANDLE, taskid : DS_KCC_TASKID, dwflags : u32) -> u32); - DsReplicaConsistencyCheck(hds.into_param().abi(), taskid, dwflags) + DsReplicaConsistencyCheck(hds.param().abi(), taskid, dwflags) } #[inline] pub unsafe fn DsReplicaDelA(hds: P0, namecontext: P1, dsasrc: P2, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), dsasrc.into_param().abi(), options) + DsReplicaDelA(hds.param().abi(), namecontext.param().abi(), dsasrc.param().abi(), options) } #[inline] pub unsafe fn DsReplicaDelW(hds: P0, namecontext: P1, dsasrc: P2, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), dsasrc.into_param().abi(), options) + DsReplicaDelW(hds.param().abi(), namecontext.param().abi(), dsasrc.param().abi(), options) } #[inline] pub unsafe fn DsReplicaFreeInfo(infotype: DS_REPL_INFO_TYPE, pinfo: *const core::ffi::c_void) { @@ -1058,118 +1058,118 @@ pub unsafe fn DsReplicaFreeInfo(infotype: DS_REPL_INFO_TYPE, pinfo: *const core: #[inline] pub unsafe fn DsReplicaGetInfo2W(hds: P0, infotype: DS_REPL_INFO_TYPE, pszobject: P1, puuidforsourcedsaobjguid: Option<*const windows_core::GUID>, pszattributename: P2, pszvalue: P3, dwflags: u32, dwenumerationcontext: u32, ppinfo: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hds.into_param().abi(), infotype, pszobject.into_param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(std::ptr::null())), pszattributename.into_param().abi(), pszvalue.into_param().abi(), dwflags, dwenumerationcontext, ppinfo) + DsReplicaGetInfo2W(hds.param().abi(), infotype, pszobject.param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(std::ptr::null())), pszattributename.param().abi(), pszvalue.param().abi(), dwflags, dwenumerationcontext, ppinfo) } #[inline] pub unsafe fn DsReplicaGetInfoW(hds: P0, infotype: DS_REPL_INFO_TYPE, pszobject: P1, puuidforsourcedsaobjguid: Option<*const windows_core::GUID>, ppinfo: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hds.into_param().abi(), infotype, pszobject.into_param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(std::ptr::null())), ppinfo) + DsReplicaGetInfoW(hds.param().abi(), infotype, pszobject.param().abi(), core::mem::transmute(puuidforsourcedsaobjguid.unwrap_or(std::ptr::null())), ppinfo) } #[inline] pub unsafe fn DsReplicaModifyA(hds: P0, namecontext: P1, puuidsourcedsa: Option<*const windows_core::GUID>, transportdn: P2, sourcedsaaddress: P3, pschedule: Option<*const SCHEDULE>, replicaflags: u32, modifyfields: u32, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hds.into_param().abi(), namecontext.into_param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(std::ptr::null())), transportdn.into_param().abi(), sourcedsaaddress.into_param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), replicaflags, modifyfields, options) + DsReplicaModifyA(hds.param().abi(), namecontext.param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(std::ptr::null())), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), replicaflags, modifyfields, options) } #[inline] pub unsafe fn DsReplicaModifyW(hds: P0, namecontext: P1, puuidsourcedsa: Option<*const windows_core::GUID>, transportdn: P2, sourcedsaaddress: P3, pschedule: Option<*const SCHEDULE>, replicaflags: u32, modifyfields: u32, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hds.into_param().abi(), namecontext.into_param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(std::ptr::null())), transportdn.into_param().abi(), sourcedsaaddress.into_param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), replicaflags, modifyfields, options) + DsReplicaModifyW(hds.param().abi(), namecontext.param().abi(), core::mem::transmute(puuidsourcedsa.unwrap_or(std::ptr::null())), transportdn.param().abi(), sourcedsaaddress.param().abi(), core::mem::transmute(pschedule.unwrap_or(std::ptr::null())), replicaflags, modifyfields, options) } #[inline] pub unsafe fn DsReplicaSyncA(hds: P0, namecontext: P1, puuiddsasrc: *const windows_core::GUID, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), puuiddsasrc, options) + DsReplicaSyncA(hds.param().abi(), namecontext.param().abi(), puuiddsasrc, options) } #[inline] pub unsafe fn DsReplicaSyncAllA(hds: P0, psznamecontext: P1, ulflags: u32, pfncallback: isize, pcallbackdata: Option<*const core::ffi::c_void>, perrors: Option<*mut *mut *mut DS_REPSYNCALL_ERRINFOA>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), psznamecontext.into_param().abi(), ulflags, pfncallback, core::mem::transmute(pcallbackdata.unwrap_or(std::ptr::null())), core::mem::transmute(perrors.unwrap_or(std::ptr::null_mut()))) + DsReplicaSyncAllA(hds.param().abi(), psznamecontext.param().abi(), ulflags, pfncallback, core::mem::transmute(pcallbackdata.unwrap_or(std::ptr::null())), core::mem::transmute(perrors.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DsReplicaSyncAllW(hds: P0, psznamecontext: P1, ulflags: u32, pfncallback: isize, pcallbackdata: Option<*const core::ffi::c_void>, perrors: Option<*mut *mut *mut DS_REPSYNCALL_ERRINFOW>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), psznamecontext.into_param().abi(), ulflags, pfncallback, core::mem::transmute(pcallbackdata.unwrap_or(std::ptr::null())), core::mem::transmute(perrors.unwrap_or(std::ptr::null_mut()))) + DsReplicaSyncAllW(hds.param().abi(), psznamecontext.param().abi(), ulflags, pfncallback, core::mem::transmute(pcallbackdata.unwrap_or(std::ptr::null())), core::mem::transmute(perrors.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DsReplicaSyncW(hds: P0, namecontext: P1, puuiddsasrc: *const windows_core::GUID, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), puuiddsasrc, options) + DsReplicaSyncW(hds.param().abi(), namecontext.param().abi(), puuiddsasrc, options) } #[inline] pub unsafe fn DsReplicaUpdateRefsA(hds: P0, namecontext: P1, dsadest: P2, puuiddsadest: *const windows_core::GUID, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), dsadest.into_param().abi(), puuiddsadest, options) + DsReplicaUpdateRefsA(hds.param().abi(), namecontext.param().abi(), dsadest.param().abi(), puuiddsadest, options) } #[inline] pub unsafe fn DsReplicaUpdateRefsW(hds: P0, namecontext: P1, dsadest: P2, puuiddsadest: *const windows_core::GUID, options: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), dsadest.into_param().abi(), puuiddsadest, options) + DsReplicaUpdateRefsW(hds.param().abi(), namecontext.param().abi(), dsadest.param().abi(), puuiddsadest, options) } #[inline] pub unsafe fn DsReplicaVerifyObjectsA(hds: P0, namecontext: P1, puuiddsasrc: *const windows_core::GUID, uloptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), puuiddsasrc, uloptions) + DsReplicaVerifyObjectsA(hds.param().abi(), namecontext.param().abi(), puuiddsasrc, uloptions) } #[inline] pub unsafe fn DsReplicaVerifyObjectsW(hds: P0, namecontext: P1, puuiddsasrc: *const windows_core::GUID, uloptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hds.into_param().abi(), namecontext.into_param().abi(), puuiddsasrc, uloptions) + DsReplicaVerifyObjectsW(hds.param().abi(), namecontext.param().abi(), puuiddsasrc, uloptions) } #[inline] pub unsafe fn DsRoleFreeMemory(buffer: *mut core::ffi::c_void) { @@ -1179,28 +1179,28 @@ pub unsafe fn DsRoleFreeMemory(buffer: *mut core::ffi::c_void) { #[inline] pub unsafe fn DsRoleGetPrimaryDomainInformation(lpserver: P0, infolevel: DSROLE_PRIMARY_DOMAIN_INFO_LEVEL, buffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), infolevel, buffer) + DsRoleGetPrimaryDomainInformation(lpserver.param().abi(), infolevel, buffer) } #[inline] pub unsafe fn DsServerRegisterSpnA(operation: DS_SPN_WRITE_OP, serviceclass: P0, userobjectdn: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(operation, serviceclass.into_param().abi(), userobjectdn.into_param().abi()) + DsServerRegisterSpnA(operation, serviceclass.param().abi(), userobjectdn.param().abi()) } #[inline] pub unsafe fn DsServerRegisterSpnW(operation: DS_SPN_WRITE_OP, serviceclass: P0, userobjectdn: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(operation, serviceclass.into_param().abi(), userobjectdn.into_param().abi()) + DsServerRegisterSpnW(operation, serviceclass.param().abi(), userobjectdn.param().abi()) } #[inline] pub unsafe fn DsUnBindA(phds: *const super::super::Foundation::HANDLE) -> u32 { @@ -1225,36 +1225,36 @@ pub unsafe fn DsUnquoteRdnValueW(psquotedrdnvalue: &[u16], pcunquotedrdnvaluelen #[inline] pub unsafe fn DsValidateSubnetNameA(subnetname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsValidateSubnetNameA(subnetname : windows_core::PCSTR) -> u32); - DsValidateSubnetNameA(subnetname.into_param().abi()) + DsValidateSubnetNameA(subnetname.param().abi()) } #[inline] pub unsafe fn DsValidateSubnetNameW(subnetname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn DsValidateSubnetNameW(subnetname : windows_core::PCWSTR) -> u32); - DsValidateSubnetNameW(subnetname.into_param().abi()) + DsValidateSubnetNameW(subnetname.param().abi()) } #[inline] pub unsafe fn DsWriteAccountSpnA(hds: P0, operation: DS_SPN_WRITE_OP, pszaccount: P1, rpszspn: &[windows_core::PCSTR]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hds.into_param().abi(), operation, pszaccount.into_param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) + DsWriteAccountSpnA(hds.param().abi(), operation, pszaccount.param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) } #[inline] pub unsafe fn DsWriteAccountSpnW(hds: P0, operation: DS_SPN_WRITE_OP, pszaccount: P1, rpszspn: &[windows_core::PCWSTR]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hds.into_param().abi(), operation, pszaccount.into_param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) + DsWriteAccountSpnW(hds.param().abi(), 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 { @@ -1264,10 +1264,10 @@ pub unsafe fn FreeADsMem(pmem: *mut core::ffi::c_void) -> super::super::Foundati #[inline] pub unsafe fn FreeADsStr(pstr: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn FreeADsStr(pstr : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FreeADsStr(pstr.into_param().abi()) + FreeADsStr(pstr.param().abi()) } #[inline] pub unsafe fn PropVariantToAdsType(pvariant: *mut windows_core::VARIANT, dwnumvariant: u32, ppadsvalues: *mut *mut ADSVALUE, pdwnumvalues: *mut u32) -> windows_core::Result<()> { @@ -1282,22 +1282,22 @@ pub unsafe fn ReallocADsMem(poldmem: *mut core::ffi::c_void, cbold: u32, cbnew: #[inline] pub unsafe fn ReallocADsStr(ppstr: *mut windows_core::PWSTR, pstr: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn ReallocADsStr(ppstr : *mut windows_core::PWSTR, pstr : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ReallocADsStr(ppstr, pstr.into_param().abi()) + ReallocADsStr(ppstr, pstr.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SecurityDescriptorToBinarySD(vvarsecdes: P0, ppsecuritydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR, pdwsdlength: *mut u32, pszservername: P1, username: P2, password: P3, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("activeds.dll" "system" fn SecurityDescriptorToBinarySD(vvarsecdes : std::mem::MaybeUninit < windows_core::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(vvarsecdes.into_param().abi(), ppsecuritydescriptor, pdwsdlength, pszservername.into_param().abi(), username.into_param().abi(), password.into_param().abi(), dwflags).ok() + SecurityDescriptorToBinarySD(vvarsecdes.param().abi(), ppsecuritydescriptor, pdwsdlength, pszservername.param().abi(), username.param().abi(), password.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IADs, IADs_Vtbl, 0xfd8256d0_fd15_11ce_abc4_02608c9e7553); @@ -1337,37 +1337,37 @@ impl IADs { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1436,10 +1436,10 @@ impl IADsADSystemInfo { } pub unsafe fn GetDCSiteName(&self, szserver: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDCSiteName)(windows_core::Interface::as_raw(self), szserver.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDCSiteName)(windows_core::Interface::as_raw(self), szserver.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RefreshSchemaCache(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RefreshSchemaCache)(windows_core::Interface::as_raw(self)).ok() @@ -1507,9 +1507,9 @@ impl IADsAccessControlEntry { } pub unsafe fn SetObjectType(&self, bstrobjecttype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObjectType)(windows_core::Interface::as_raw(self), bstrobjecttype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObjectType)(windows_core::Interface::as_raw(self), bstrobjecttype.param().abi()).ok() } pub unsafe fn InheritedObjectType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1517,9 +1517,9 @@ impl IADsAccessControlEntry { } pub unsafe fn SetInheritedObjectType(&self, bstrinheritedobjecttype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInheritedObjectType)(windows_core::Interface::as_raw(self), bstrinheritedobjecttype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInheritedObjectType)(windows_core::Interface::as_raw(self), bstrinheritedobjecttype.param().abi()).ok() } pub unsafe fn Trustee(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1527,9 +1527,9 @@ impl IADsAccessControlEntry { } pub unsafe fn SetTrustee(&self, bstrtrustee: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1574,16 +1574,16 @@ impl IADsAccessControlList { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddAce(&self, paccesscontrolentry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAce)(windows_core::Interface::as_raw(self), paccesscontrolentry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAce)(windows_core::Interface::as_raw(self), paccesscontrolentry.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveAce(&self, paccesscontrolentry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveAce)(windows_core::Interface::as_raw(self), paccesscontrolentry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveAce)(windows_core::Interface::as_raw(self), paccesscontrolentry.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyAccessList(&self) -> windows_core::Result { @@ -1629,9 +1629,9 @@ impl IADsAcl { } pub unsafe fn SetProtectedAttrName(&self, bstrprotectedattrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProtectedAttrName)(windows_core::Interface::as_raw(self), bstrprotectedattrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProtectedAttrName)(windows_core::Interface::as_raw(self), bstrprotectedattrname.param().abi()).ok() } pub unsafe fn SubjectName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1639,9 +1639,9 @@ impl IADsAcl { } pub unsafe fn SetSubjectName(&self, bstrsubjectname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubjectName)(windows_core::Interface::as_raw(self), bstrsubjectname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubjectName)(windows_core::Interface::as_raw(self), bstrsubjectname.param().abi()).ok() } pub unsafe fn Privileges(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1676,9 +1676,9 @@ windows_core::imp::interface_hierarchy!(IADsAggregatee, windows_core::IUnknown); impl IADsAggregatee { pub unsafe fn ConnectAsAggregatee(&self, pouterunknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectAsAggregatee)(windows_core::Interface::as_raw(self), pouterunknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectAsAggregatee)(windows_core::Interface::as_raw(self), pouterunknown.param().abi()).ok() } pub unsafe fn DisconnectAsAggregatee(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisconnectAsAggregatee)(windows_core::Interface::as_raw(self)).ok() @@ -1703,9 +1703,9 @@ windows_core::imp::interface_hierarchy!(IADsAggregator, windows_core::IUnknown); impl IADsAggregator { pub unsafe fn ConnectAsAggregator(&self, paggregatee: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectAsAggregator)(windows_core::Interface::as_raw(self), paggregatee.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectAsAggregator)(windows_core::Interface::as_raw(self), paggregatee.param().abi()).ok() } pub unsafe fn DisconnectAsAggregator(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisconnectAsAggregator)(windows_core::Interface::as_raw(self)).ok() @@ -1736,9 +1736,9 @@ impl IADsBackLink { } pub unsafe fn SetObjectName(&self, bstrobjectname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObjectName)(windows_core::Interface::as_raw(self), bstrobjectname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObjectName)(windows_core::Interface::as_raw(self), bstrobjectname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1762,9 +1762,9 @@ impl IADsCaseIgnoreList { } pub unsafe fn SetCaseIgnoreList(&self, vcaseignorelist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaseIgnoreList)(windows_core::Interface::as_raw(self), vcaseignorelist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaseIgnoreList)(windows_core::Interface::as_raw(self), vcaseignorelist.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1812,37 +1812,37 @@ impl IADsClass { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn PrimaryInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1854,9 +1854,9 @@ impl IADsClass { } pub unsafe fn SetCLSID(&self, bstrclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCLSID)(windows_core::Interface::as_raw(self), bstrclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCLSID)(windows_core::Interface::as_raw(self), bstrclsid.param().abi()).ok() } pub unsafe fn OID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1864,9 +1864,9 @@ impl IADsClass { } pub unsafe fn SetOID(&self, bstroid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOID)(windows_core::Interface::as_raw(self), bstroid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOID)(windows_core::Interface::as_raw(self), bstroid.param().abi()).ok() } pub unsafe fn Abstract(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1874,9 +1874,9 @@ impl IADsClass { } pub unsafe fn SetAbstract(&self, fabstract: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAbstract)(windows_core::Interface::as_raw(self), fabstract.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAbstract)(windows_core::Interface::as_raw(self), fabstract.param().abi()).ok() } pub unsafe fn Auxiliary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1884,9 +1884,9 @@ impl IADsClass { } pub unsafe fn SetAuxiliary(&self, fauxiliary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuxiliary)(windows_core::Interface::as_raw(self), fauxiliary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuxiliary)(windows_core::Interface::as_raw(self), fauxiliary.param().abi()).ok() } pub unsafe fn MandatoryProperties(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1894,9 +1894,9 @@ impl IADsClass { } pub unsafe fn SetMandatoryProperties(&self, vmandatoryproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMandatoryProperties)(windows_core::Interface::as_raw(self), vmandatoryproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMandatoryProperties)(windows_core::Interface::as_raw(self), vmandatoryproperties.param().abi()).ok() } pub unsafe fn OptionalProperties(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1904,9 +1904,9 @@ impl IADsClass { } pub unsafe fn SetOptionalProperties(&self, voptionalproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOptionalProperties)(windows_core::Interface::as_raw(self), voptionalproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOptionalProperties)(windows_core::Interface::as_raw(self), voptionalproperties.param().abi()).ok() } pub unsafe fn NamingProperties(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1914,9 +1914,9 @@ impl IADsClass { } pub unsafe fn SetNamingProperties(&self, vnamingproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamingProperties)(windows_core::Interface::as_raw(self), vnamingproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNamingProperties)(windows_core::Interface::as_raw(self), vnamingproperties.param().abi()).ok() } pub unsafe fn DerivedFrom(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1924,9 +1924,9 @@ impl IADsClass { } pub unsafe fn SetDerivedFrom(&self, vderivedfrom: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDerivedFrom)(windows_core::Interface::as_raw(self), vderivedfrom.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDerivedFrom)(windows_core::Interface::as_raw(self), vderivedfrom.param().abi()).ok() } pub unsafe fn AuxDerivedFrom(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1934,9 +1934,9 @@ impl IADsClass { } pub unsafe fn SetAuxDerivedFrom(&self, vauxderivedfrom: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuxDerivedFrom)(windows_core::Interface::as_raw(self), vauxderivedfrom.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuxDerivedFrom)(windows_core::Interface::as_raw(self), vauxderivedfrom.param().abi()).ok() } pub unsafe fn PossibleSuperiors(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1944,9 +1944,9 @@ impl IADsClass { } pub unsafe fn SetPossibleSuperiors(&self, vpossiblesuperiors: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPossibleSuperiors)(windows_core::Interface::as_raw(self), vpossiblesuperiors.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPossibleSuperiors)(windows_core::Interface::as_raw(self), vpossiblesuperiors.param().abi()).ok() } pub unsafe fn Containment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1954,9 +1954,9 @@ impl IADsClass { } pub unsafe fn SetContainment(&self, vcontainment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainment)(windows_core::Interface::as_raw(self), vcontainment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainment)(windows_core::Interface::as_raw(self), vcontainment.param().abi()).ok() } pub unsafe fn Container(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1964,9 +1964,9 @@ impl IADsClass { } pub unsafe fn SetContainer(&self, fcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainer)(windows_core::Interface::as_raw(self), fcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainer)(windows_core::Interface::as_raw(self), fcontainer.param().abi()).ok() } pub unsafe fn HelpFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1974,9 +1974,9 @@ impl IADsClass { } pub unsafe fn SetHelpFileName(&self, bstrhelpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHelpFileName)(windows_core::Interface::as_raw(self), bstrhelpfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHelpFileName)(windows_core::Interface::as_raw(self), bstrhelpfilename.param().abi()).ok() } pub unsafe fn HelpFileContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2041,23 +2041,23 @@ impl IADsCollection { } pub unsafe fn Add(&self, bstrname: P0, vitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vitem.param().abi()).ok() } pub unsafe fn Remove(&self, bstritemtoberemoved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstritemtoberemoved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstritemtoberemoved.param().abi()).ok() } pub unsafe fn GetObject(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2107,37 +2107,37 @@ impl IADsComputer { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn ComputerID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2153,9 +2153,9 @@ impl IADsComputer { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn Location(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2163,9 +2163,9 @@ impl IADsComputer { } pub unsafe fn SetLocation(&self, bstrlocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocation)(windows_core::Interface::as_raw(self), bstrlocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocation)(windows_core::Interface::as_raw(self), bstrlocation.param().abi()).ok() } pub unsafe fn PrimaryUser(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2173,9 +2173,9 @@ impl IADsComputer { } pub unsafe fn SetPrimaryUser(&self, bstrprimaryuser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrimaryUser)(windows_core::Interface::as_raw(self), bstrprimaryuser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrimaryUser)(windows_core::Interface::as_raw(self), bstrprimaryuser.param().abi()).ok() } pub unsafe fn Owner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2183,9 +2183,9 @@ impl IADsComputer { } pub unsafe fn SetOwner(&self, bstrowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), bstrowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), bstrowner.param().abi()).ok() } pub unsafe fn Division(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2193,9 +2193,9 @@ impl IADsComputer { } pub unsafe fn SetDivision(&self, bstrdivision: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDivision)(windows_core::Interface::as_raw(self), bstrdivision.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDivision)(windows_core::Interface::as_raw(self), bstrdivision.param().abi()).ok() } pub unsafe fn Department(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2203,9 +2203,9 @@ impl IADsComputer { } pub unsafe fn SetDepartment(&self, bstrdepartment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDepartment)(windows_core::Interface::as_raw(self), bstrdepartment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDepartment)(windows_core::Interface::as_raw(self), bstrdepartment.param().abi()).ok() } pub unsafe fn Role(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2213,9 +2213,9 @@ impl IADsComputer { } pub unsafe fn SetRole(&self, bstrrole: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRole)(windows_core::Interface::as_raw(self), bstrrole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRole)(windows_core::Interface::as_raw(self), bstrrole.param().abi()).ok() } pub unsafe fn OperatingSystem(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2223,9 +2223,9 @@ impl IADsComputer { } pub unsafe fn SetOperatingSystem(&self, bstroperatingsystem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOperatingSystem)(windows_core::Interface::as_raw(self), bstroperatingsystem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOperatingSystem)(windows_core::Interface::as_raw(self), bstroperatingsystem.param().abi()).ok() } pub unsafe fn OperatingSystemVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2233,9 +2233,9 @@ impl IADsComputer { } pub unsafe fn SetOperatingSystemVersion(&self, bstroperatingsystemversion: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOperatingSystemVersion)(windows_core::Interface::as_raw(self), bstroperatingsystemversion.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOperatingSystemVersion)(windows_core::Interface::as_raw(self), bstroperatingsystemversion.param().abi()).ok() } pub unsafe fn Model(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2243,9 +2243,9 @@ impl IADsComputer { } pub unsafe fn SetModel(&self, bstrmodel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModel)(windows_core::Interface::as_raw(self), bstrmodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetModel)(windows_core::Interface::as_raw(self), bstrmodel.param().abi()).ok() } pub unsafe fn Processor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2253,9 +2253,9 @@ impl IADsComputer { } pub unsafe fn SetProcessor(&self, bstrprocessor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProcessor)(windows_core::Interface::as_raw(self), bstrprocessor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProcessor)(windows_core::Interface::as_raw(self), bstrprocessor.param().abi()).ok() } pub unsafe fn ProcessorCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2263,9 +2263,9 @@ impl IADsComputer { } pub unsafe fn SetProcessorCount(&self, bstrprocessorcount: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProcessorCount)(windows_core::Interface::as_raw(self), bstrprocessorcount.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProcessorCount)(windows_core::Interface::as_raw(self), bstrprocessorcount.param().abi()).ok() } pub unsafe fn MemorySize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2273,9 +2273,9 @@ impl IADsComputer { } pub unsafe fn SetMemorySize(&self, bstrmemorysize: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMemorySize)(windows_core::Interface::as_raw(self), bstrmemorysize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMemorySize)(windows_core::Interface::as_raw(self), bstrmemorysize.param().abi()).ok() } pub unsafe fn StorageCapacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2283,9 +2283,9 @@ impl IADsComputer { } pub unsafe fn SetStorageCapacity(&self, bstrstoragecapacity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStorageCapacity)(windows_core::Interface::as_raw(self), bstrstoragecapacity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStorageCapacity)(windows_core::Interface::as_raw(self), bstrstoragecapacity.param().abi()).ok() } pub unsafe fn NetAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2293,9 +2293,9 @@ impl IADsComputer { } pub unsafe fn SetNetAddresses(&self, vnetaddresses: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetAddresses)(windows_core::Interface::as_raw(self), vnetaddresses.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetAddresses)(windows_core::Interface::as_raw(self), vnetaddresses.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2373,37 +2373,37 @@ impl IADsComputerOperations { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Status(&self) -> windows_core::Result { @@ -2412,9 +2412,9 @@ impl IADsComputerOperations { } pub unsafe fn Shutdown(&self, breboot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), breboot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), breboot.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2447,9 +2447,9 @@ impl IADsContainer { } pub unsafe fn SetFilter(&self, var: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), var.param().abi()).ok() } pub unsafe fn Hints(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2457,52 +2457,52 @@ impl IADsContainer { } pub unsafe fn SetHints(&self, vhints: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHints)(windows_core::Interface::as_raw(self), vhints.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHints)(windows_core::Interface::as_raw(self), vhints.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetObject(&self, classname: P0, relativename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), classname.into_param().abi(), relativename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), classname.param().abi(), relativename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Create(&self, classname: P0, relativename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), classname.into_param().abi(), relativename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), classname.param().abi(), relativename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, bstrclassname: P0, bstrrelativename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), bstrclassname.into_param().abi(), bstrrelativename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), bstrclassname.param().abi(), bstrrelativename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyHere(&self, sourcename: P0, newname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyHere)(windows_core::Interface::as_raw(self), sourcename.into_param().abi(), newname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CopyHere)(windows_core::Interface::as_raw(self), sourcename.param().abi(), newname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MoveHere(&self, sourcename: P0, newname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveHere)(windows_core::Interface::as_raw(self), sourcename.into_param().abi(), newname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MoveHere)(windows_core::Interface::as_raw(self), sourcename.param().abi(), newname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2545,9 +2545,9 @@ impl IADsDNWithBinary { } pub unsafe fn SetBinaryValue(&self, vbinaryvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBinaryValue)(windows_core::Interface::as_raw(self), vbinaryvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBinaryValue)(windows_core::Interface::as_raw(self), vbinaryvalue.param().abi()).ok() } pub unsafe fn DNString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2555,9 +2555,9 @@ impl IADsDNWithBinary { } pub unsafe fn SetDNString(&self, bstrdnstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDNString)(windows_core::Interface::as_raw(self), bstrdnstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDNString)(windows_core::Interface::as_raw(self), bstrdnstring.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2581,9 +2581,9 @@ impl IADsDNWithString { } pub unsafe fn SetStringValue(&self, bstrstringvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), bstrstringvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), bstrstringvalue.param().abi()).ok() } pub unsafe fn DNString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2591,9 +2591,9 @@ impl IADsDNWithString { } pub unsafe fn SetDNString(&self, bstrdnstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDNString)(windows_core::Interface::as_raw(self), bstrdnstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDNString)(windows_core::Interface::as_raw(self), bstrdnstring.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2659,37 +2659,37 @@ impl IADsDomain { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn IsWorkgroup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2793,9 +2793,9 @@ impl IADsEmail { } pub unsafe fn SetAddress(&self, bstraddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAddress)(windows_core::Interface::as_raw(self), bstraddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAddress)(windows_core::Interface::as_raw(self), bstraddress.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2812,11 +2812,11 @@ windows_core::imp::interface_hierarchy!(IADsExtension, windows_core::IUnknown); impl IADsExtension { pub unsafe fn Operate(&self, dwcode: u32, vardata1: P0, vardata2: P1, vardata3: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Operate)(windows_core::Interface::as_raw(self), dwcode, vardata1.into_param().abi(), vardata2.into_param().abi(), vardata3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Operate)(windows_core::Interface::as_raw(self), dwcode, vardata1.param().abi(), vardata2.param().abi(), vardata3.param().abi()).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__ = std::mem::zeroed(); @@ -2849,9 +2849,9 @@ impl IADsFaxNumber { } pub unsafe fn SetTelephoneNumber(&self, bstrtelephonenumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), bstrtelephonenumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), bstrtelephonenumber.param().abi()).ok() } pub unsafe fn Parameters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2859,9 +2859,9 @@ impl IADsFaxNumber { } pub unsafe fn SetParameters(&self, vparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), vparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), vparameters.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2911,37 +2911,37 @@ impl IADsFileService { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn HostComputer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2949,9 +2949,9 @@ impl IADsFileService { } pub unsafe fn SetHostComputer(&self, bstrhostcomputer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHostComputer)(windows_core::Interface::as_raw(self), bstrhostcomputer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHostComputer)(windows_core::Interface::as_raw(self), bstrhostcomputer.param().abi()).ok() } pub unsafe fn DisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2959,9 +2959,9 @@ impl IADsFileService { } pub unsafe fn SetDisplayName(&self, bstrdisplayname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), bstrdisplayname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), bstrdisplayname.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2969,9 +2969,9 @@ impl IADsFileService { } pub unsafe fn SetVersion(&self, bstrversion: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), bstrversion.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), bstrversion.param().abi()).ok() } pub unsafe fn ServiceType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2993,9 +2993,9 @@ impl IADsFileService { } pub unsafe fn SetPath(&self, bstrpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPath)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPath)(windows_core::Interface::as_raw(self), bstrpath.param().abi()).ok() } pub unsafe fn StartupParameters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3003,9 +3003,9 @@ impl IADsFileService { } pub unsafe fn SetStartupParameters(&self, bstrstartupparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartupParameters)(windows_core::Interface::as_raw(self), bstrstartupparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartupParameters)(windows_core::Interface::as_raw(self), bstrstartupparameters.param().abi()).ok() } pub unsafe fn ErrorControl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3020,9 +3020,9 @@ impl IADsFileService { } pub unsafe fn SetLoadOrderGroup(&self, bstrloadordergroup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLoadOrderGroup)(windows_core::Interface::as_raw(self), bstrloadordergroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLoadOrderGroup)(windows_core::Interface::as_raw(self), bstrloadordergroup.param().abi()).ok() } pub unsafe fn ServiceAccountName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3030,9 +3030,9 @@ impl IADsFileService { } pub unsafe fn SetServiceAccountName(&self, bstrserviceaccountname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetServiceAccountName)(windows_core::Interface::as_raw(self), bstrserviceaccountname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetServiceAccountName)(windows_core::Interface::as_raw(self), bstrserviceaccountname.param().abi()).ok() } pub unsafe fn ServiceAccountPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3040,9 +3040,9 @@ impl IADsFileService { } pub unsafe fn SetServiceAccountPath(&self, bstrserviceaccountpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetServiceAccountPath)(windows_core::Interface::as_raw(self), bstrserviceaccountpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetServiceAccountPath)(windows_core::Interface::as_raw(self), bstrserviceaccountpath.param().abi()).ok() } pub unsafe fn Dependencies(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3050,9 +3050,9 @@ impl IADsFileService { } pub unsafe fn SetDependencies(&self, vdependencies: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDependencies)(windows_core::Interface::as_raw(self), vdependencies.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDependencies)(windows_core::Interface::as_raw(self), vdependencies.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3060,9 +3060,9 @@ impl IADsFileService { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn MaxUserCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3119,37 +3119,37 @@ impl IADsFileServiceOperations { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3169,9 +3169,9 @@ impl IADsFileServiceOperations { } pub unsafe fn SetPassword(&self, bstrnewpassword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPassword)(windows_core::Interface::as_raw(self), bstrnewpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPassword)(windows_core::Interface::as_raw(self), bstrnewpassword.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Sessions(&self) -> windows_core::Result { @@ -3235,37 +3235,37 @@ impl IADsFileShare { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn CurrentUserCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3277,9 +3277,9 @@ impl IADsFileShare { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn HostComputer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3287,9 +3287,9 @@ impl IADsFileShare { } pub unsafe fn SetHostComputer(&self, bstrhostcomputer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHostComputer)(windows_core::Interface::as_raw(self), bstrhostcomputer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHostComputer)(windows_core::Interface::as_raw(self), bstrhostcomputer.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3297,9 +3297,9 @@ impl IADsFileShare { } pub unsafe fn SetPath(&self, bstrpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bstrpath.param().abi()).ok() } pub unsafe fn MaxUserCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3361,37 +3361,37 @@ impl IADsGroup { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3399,9 +3399,9 @@ impl IADsGroup { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Members(&self) -> windows_core::Result { @@ -3410,22 +3410,22 @@ impl IADsGroup { } pub unsafe fn IsMember(&self, bstrmember: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsMember)(windows_core::Interface::as_raw(self), bstrmember.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsMember)(windows_core::Interface::as_raw(self), bstrmember.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Add(&self, bstrnewitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrnewitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstrnewitem.param().abi()).ok() } pub unsafe fn Remove(&self, bstritemtoberemoved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstritemtoberemoved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstritemtoberemoved.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3454,9 +3454,9 @@ impl IADsHold { } pub unsafe fn SetObjectName(&self, bstrobjectname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObjectName)(windows_core::Interface::as_raw(self), bstrobjectname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObjectName)(windows_core::Interface::as_raw(self), bstrobjectname.param().abi()).ok() } pub unsafe fn Amount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3543,37 +3543,37 @@ impl IADsLocality { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3581,9 +3581,9 @@ impl IADsLocality { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn LocalityName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3591,9 +3591,9 @@ impl IADsLocality { } pub unsafe fn SetLocalityName(&self, bstrlocalityname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalityName)(windows_core::Interface::as_raw(self), bstrlocalityname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalityName)(windows_core::Interface::as_raw(self), bstrlocalityname.param().abi()).ok() } pub unsafe fn PostalAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3601,9 +3601,9 @@ impl IADsLocality { } pub unsafe fn SetPostalAddress(&self, bstrpostaladdress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), bstrpostaladdress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), bstrpostaladdress.param().abi()).ok() } pub unsafe fn SeeAlso(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3611,9 +3611,9 @@ impl IADsLocality { } pub unsafe fn SetSeeAlso(&self, vseealso: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3649,9 +3649,9 @@ impl IADsMembers { } pub unsafe fn SetFilter(&self, pvfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), pvfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), pvfilter.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3674,24 +3674,24 @@ impl IADsNameTranslate { } pub unsafe fn Init(&self, lnsettype: i32, bstradspath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), lnsettype, bstradspath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), lnsettype, bstradspath.param().abi()).ok() } pub unsafe fn InitEx(&self, lnsettype: i32, bstradspath: P0, bstruserid: P1, bstrdomain: P2, bstrpassword: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InitEx)(windows_core::Interface::as_raw(self), lnsettype, bstradspath.into_param().abi(), bstruserid.into_param().abi(), bstrdomain.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitEx)(windows_core::Interface::as_raw(self), lnsettype, bstradspath.param().abi(), bstruserid.param().abi(), bstrdomain.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn Set(&self, lnsettype: i32, bstradspath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), lnsettype, bstradspath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), lnsettype, bstradspath.param().abi()).ok() } pub unsafe fn Get(&self, lnformattype: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3699,9 +3699,9 @@ impl IADsNameTranslate { } pub unsafe fn SetEx(&self, lnformattype: i32, pvar: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEx)(windows_core::Interface::as_raw(self), lnformattype, pvar.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEx)(windows_core::Interface::as_raw(self), lnformattype, pvar.param().abi()).ok() } pub unsafe fn GetEx(&self, lnformattype: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3758,37 +3758,37 @@ impl IADsNamespaces { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn DefaultContainer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3796,9 +3796,9 @@ impl IADsNamespaces { } pub unsafe fn SetDefaultContainer(&self, bstrdefaultcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultContainer)(windows_core::Interface::as_raw(self), bstrdefaultcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultContainer)(windows_core::Interface::as_raw(self), bstrdefaultcontainer.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3827,9 +3827,9 @@ impl IADsNetAddress { } pub unsafe fn SetAddress(&self, vaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAddress)(windows_core::Interface::as_raw(self), vaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAddress)(windows_core::Interface::as_raw(self), vaddress.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3879,37 +3879,37 @@ impl IADsO { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3917,9 +3917,9 @@ impl IADsO { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn LocalityName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3927,9 +3927,9 @@ impl IADsO { } pub unsafe fn SetLocalityName(&self, bstrlocalityname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalityName)(windows_core::Interface::as_raw(self), bstrlocalityname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalityName)(windows_core::Interface::as_raw(self), bstrlocalityname.param().abi()).ok() } pub unsafe fn PostalAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3937,9 +3937,9 @@ impl IADsO { } pub unsafe fn SetPostalAddress(&self, bstrpostaladdress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), bstrpostaladdress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), bstrpostaladdress.param().abi()).ok() } pub unsafe fn TelephoneNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3947,9 +3947,9 @@ impl IADsO { } pub unsafe fn SetTelephoneNumber(&self, bstrtelephonenumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), bstrtelephonenumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), bstrtelephonenumber.param().abi()).ok() } pub unsafe fn FaxNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3957,9 +3957,9 @@ impl IADsO { } pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.param().abi()).ok() } pub unsafe fn SeeAlso(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3967,9 +3967,9 @@ impl IADsO { } pub unsafe fn SetSeeAlso(&self, vseealso: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4027,37 +4027,37 @@ impl IADsOU { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4065,9 +4065,9 @@ impl IADsOU { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn LocalityName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4075,9 +4075,9 @@ impl IADsOU { } pub unsafe fn SetLocalityName(&self, bstrlocalityname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalityName)(windows_core::Interface::as_raw(self), bstrlocalityname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalityName)(windows_core::Interface::as_raw(self), bstrlocalityname.param().abi()).ok() } pub unsafe fn PostalAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4085,9 +4085,9 @@ impl IADsOU { } pub unsafe fn SetPostalAddress(&self, bstrpostaladdress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), bstrpostaladdress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), bstrpostaladdress.param().abi()).ok() } pub unsafe fn TelephoneNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4095,9 +4095,9 @@ impl IADsOU { } pub unsafe fn SetTelephoneNumber(&self, bstrtelephonenumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), bstrtelephonenumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), bstrtelephonenumber.param().abi()).ok() } pub unsafe fn FaxNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4105,9 +4105,9 @@ impl IADsOU { } pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), bstrfaxnumber.param().abi()).ok() } pub unsafe fn SeeAlso(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4115,9 +4115,9 @@ impl IADsOU { } pub unsafe fn SetSeeAlso(&self, vseealso: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.param().abi()).ok() } pub unsafe fn BusinessCategory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4125,9 +4125,9 @@ impl IADsOU { } pub unsafe fn SetBusinessCategory(&self, bstrbusinesscategory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBusinessCategory)(windows_core::Interface::as_raw(self), bstrbusinesscategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBusinessCategory)(windows_core::Interface::as_raw(self), bstrbusinesscategory.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4161,9 +4161,9 @@ impl IADsObjectOptions { } pub unsafe fn SetOption(&self, lnoption: i32, vvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), lnoption, vvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), lnoption, vvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4185,9 +4185,9 @@ impl IADsOctetList { } pub unsafe fn SetOctetList(&self, voctetlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOctetList)(windows_core::Interface::as_raw(self), voctetlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOctetList)(windows_core::Interface::as_raw(self), voctetlist.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4206,12 +4206,12 @@ impl IADsOpenDSObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenDSObject(&self, lpszdnname: P0, lpszusername: P1, lpszpassword: P2, lnreserved: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenDSObject)(windows_core::Interface::as_raw(self), lpszdnname.into_param().abi(), lpszusername.into_param().abi(), lpszpassword.into_param().abi(), lnreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenDSObject)(windows_core::Interface::as_raw(self), lpszdnname.param().abi(), lpszusername.param().abi(), lpszpassword.param().abi(), lnreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4242,9 +4242,9 @@ impl IADsPath { } pub unsafe fn SetVolumeName(&self, bstrvolumename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVolumeName)(windows_core::Interface::as_raw(self), bstrvolumename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVolumeName)(windows_core::Interface::as_raw(self), bstrvolumename.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4252,9 +4252,9 @@ impl IADsPath { } pub unsafe fn SetPath(&self, bstrpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bstrpath.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4276,9 +4276,9 @@ windows_core::imp::interface_hierarchy!(IADsPathname, windows_core::IUnknown, su impl IADsPathname { pub unsafe fn Set(&self, bstradspath: P0, lnsettype: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), bstradspath.into_param().abi(), lnsettype).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), bstradspath.param().abi(), lnsettype).ok() } pub unsafe fn SetDisplayType(&self, lndisplaytype: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDisplayType)(windows_core::Interface::as_raw(self), lndisplaytype).ok() @@ -4297,9 +4297,9 @@ impl IADsPathname { } pub unsafe fn AddLeafElement(&self, bstrleafelement: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddLeafElement)(windows_core::Interface::as_raw(self), bstrleafelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddLeafElement)(windows_core::Interface::as_raw(self), bstrleafelement.param().abi()).ok() } pub unsafe fn RemoveLeafElement(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveLeafElement)(windows_core::Interface::as_raw(self)).ok() @@ -4311,10 +4311,10 @@ impl IADsPathname { } pub unsafe fn GetEscapedElement(&self, lnreserved: i32, bstrinstr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEscapedElement)(windows_core::Interface::as_raw(self), lnreserved, bstrinstr.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEscapedElement)(windows_core::Interface::as_raw(self), lnreserved, bstrinstr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EscapedMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4355,9 +4355,9 @@ impl IADsPostalAddress { } pub unsafe fn SetPostalAddress(&self, vpostaladdress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), vpostaladdress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostalAddress)(windows_core::Interface::as_raw(self), vpostaladdress.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4405,37 +4405,37 @@ impl IADsPrintJob { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn HostPrintQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4467,9 +4467,9 @@ impl IADsPrintJob { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4498,9 +4498,9 @@ impl IADsPrintJob { } pub unsafe fn SetNotify(&self, bstrnotify: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotify)(windows_core::Interface::as_raw(self), bstrnotify.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotify)(windows_core::Interface::as_raw(self), bstrnotify.param().abi()).ok() } pub unsafe fn NotifyPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4508,9 +4508,9 @@ impl IADsPrintJob { } pub unsafe fn SetNotifyPath(&self, bstrnotifypath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifyPath)(windows_core::Interface::as_raw(self), bstrnotifypath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotifyPath)(windows_core::Interface::as_raw(self), bstrnotifypath.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4574,37 +4574,37 @@ impl IADsPrintJobOperations { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4682,37 +4682,37 @@ impl IADsPrintQueue { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn PrinterPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4720,9 +4720,9 @@ impl IADsPrintQueue { } pub unsafe fn SetPrinterPath(&self, bstrprinterpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrinterPath)(windows_core::Interface::as_raw(self), bstrprinterpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrinterPath)(windows_core::Interface::as_raw(self), bstrprinterpath.param().abi()).ok() } pub unsafe fn Model(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4730,9 +4730,9 @@ impl IADsPrintQueue { } pub unsafe fn SetModel(&self, bstrmodel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModel)(windows_core::Interface::as_raw(self), bstrmodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetModel)(windows_core::Interface::as_raw(self), bstrmodel.param().abi()).ok() } pub unsafe fn Datatype(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4740,9 +4740,9 @@ impl IADsPrintQueue { } pub unsafe fn SetDatatype(&self, bstrdatatype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDatatype)(windows_core::Interface::as_raw(self), bstrdatatype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDatatype)(windows_core::Interface::as_raw(self), bstrdatatype.param().abi()).ok() } pub unsafe fn PrintProcessor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4750,9 +4750,9 @@ impl IADsPrintQueue { } pub unsafe fn SetPrintProcessor(&self, bstrprintprocessor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintProcessor)(windows_core::Interface::as_raw(self), bstrprintprocessor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintProcessor)(windows_core::Interface::as_raw(self), bstrprintprocessor.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4760,9 +4760,9 @@ impl IADsPrintQueue { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn Location(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4770,9 +4770,9 @@ impl IADsPrintQueue { } pub unsafe fn SetLocation(&self, bstrlocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocation)(windows_core::Interface::as_raw(self), bstrlocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocation)(windows_core::Interface::as_raw(self), bstrlocation.param().abi()).ok() } pub unsafe fn StartTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4808,9 +4808,9 @@ impl IADsPrintQueue { } pub unsafe fn SetBannerPage(&self, bstrbannerpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBannerPage)(windows_core::Interface::as_raw(self), bstrbannerpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBannerPage)(windows_core::Interface::as_raw(self), bstrbannerpage.param().abi()).ok() } pub unsafe fn PrintDevices(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4818,9 +4818,9 @@ impl IADsPrintQueue { } pub unsafe fn SetPrintDevices(&self, vprintdevices: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintDevices)(windows_core::Interface::as_raw(self), vprintdevices.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintDevices)(windows_core::Interface::as_raw(self), vprintdevices.param().abi()).ok() } pub unsafe fn NetAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4828,9 +4828,9 @@ impl IADsPrintQueue { } pub unsafe fn SetNetAddresses(&self, vnetaddresses: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetAddresses)(windows_core::Interface::as_raw(self), vnetaddresses.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetAddresses)(windows_core::Interface::as_raw(self), vnetaddresses.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4902,37 +4902,37 @@ impl IADsPrintQueueOperations { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5004,37 +5004,37 @@ impl IADsProperty { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn OID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5042,9 +5042,9 @@ impl IADsProperty { } pub unsafe fn SetOID(&self, bstroid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOID)(windows_core::Interface::as_raw(self), bstroid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOID)(windows_core::Interface::as_raw(self), bstroid.param().abi()).ok() } pub unsafe fn Syntax(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5052,9 +5052,9 @@ impl IADsProperty { } pub unsafe fn SetSyntax(&self, bstrsyntax: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSyntax)(windows_core::Interface::as_raw(self), bstrsyntax.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSyntax)(windows_core::Interface::as_raw(self), bstrsyntax.param().abi()).ok() } pub unsafe fn MaxRange(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5076,9 +5076,9 @@ impl IADsProperty { } pub unsafe fn SetMultiValued(&self, fmultivalued: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultiValued)(windows_core::Interface::as_raw(self), fmultivalued.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMultiValued)(windows_core::Interface::as_raw(self), fmultivalued.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Qualifiers(&self) -> windows_core::Result { @@ -5120,9 +5120,9 @@ impl IADsPropertyEntry { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn ADsType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5144,9 +5144,9 @@ impl IADsPropertyEntry { } pub unsafe fn SetValues(&self, vvalues: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), vvalues.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValues)(windows_core::Interface::as_raw(self), vvalues.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5184,29 +5184,29 @@ impl IADsPropertyList { } pub unsafe fn Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyItem(&self, bstrname: P0, lnadstype: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), lnadstype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), lnadstype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutPropertyItem(&self, vardata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutPropertyItem)(windows_core::Interface::as_raw(self), vardata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PutPropertyItem)(windows_core::Interface::as_raw(self), vardata.param().abi()).ok() } pub unsafe fn ResetPropertyItem(&self, varentry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResetPropertyItem)(windows_core::Interface::as_raw(self), varentry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ResetPropertyItem)(windows_core::Interface::as_raw(self), varentry.param().abi()).ok() } pub unsafe fn PurgePropertyList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PurgePropertyList)(windows_core::Interface::as_raw(self)).ok() @@ -5248,9 +5248,9 @@ impl IADsPropertyValue { } pub unsafe fn SetDNString(&self, bstrdnstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDNString)(windows_core::Interface::as_raw(self), bstrdnstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDNString)(windows_core::Interface::as_raw(self), bstrdnstring.param().abi()).ok() } pub unsafe fn CaseExactString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5258,9 +5258,9 @@ impl IADsPropertyValue { } pub unsafe fn SetCaseExactString(&self, bstrcaseexactstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaseExactString)(windows_core::Interface::as_raw(self), bstrcaseexactstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaseExactString)(windows_core::Interface::as_raw(self), bstrcaseexactstring.param().abi()).ok() } pub unsafe fn CaseIgnoreString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5268,9 +5268,9 @@ impl IADsPropertyValue { } pub unsafe fn SetCaseIgnoreString(&self, bstrcaseignorestring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaseIgnoreString)(windows_core::Interface::as_raw(self), bstrcaseignorestring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaseIgnoreString)(windows_core::Interface::as_raw(self), bstrcaseignorestring.param().abi()).ok() } pub unsafe fn PrintableString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5278,9 +5278,9 @@ impl IADsPropertyValue { } pub unsafe fn SetPrintableString(&self, bstrprintablestring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintableString)(windows_core::Interface::as_raw(self), bstrprintablestring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintableString)(windows_core::Interface::as_raw(self), bstrprintablestring.param().abi()).ok() } pub unsafe fn NumericString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5288,9 +5288,9 @@ impl IADsPropertyValue { } pub unsafe fn SetNumericString(&self, bstrnumericstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNumericString)(windows_core::Interface::as_raw(self), bstrnumericstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNumericString)(windows_core::Interface::as_raw(self), bstrnumericstring.param().abi()).ok() } pub unsafe fn Boolean(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5312,9 +5312,9 @@ impl IADsPropertyValue { } pub unsafe fn SetOctetString(&self, voctetstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOctetString)(windows_core::Interface::as_raw(self), voctetstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOctetString)(windows_core::Interface::as_raw(self), voctetstring.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SecurityDescriptor(&self) -> windows_core::Result { @@ -5324,9 +5324,9 @@ impl IADsPropertyValue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor(&self, psecuritydescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), psecuritydescriptor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), psecuritydescriptor.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LargeInteger(&self) -> windows_core::Result { @@ -5336,9 +5336,9 @@ impl IADsPropertyValue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetLargeInteger(&self, plargeinteger: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLargeInteger)(windows_core::Interface::as_raw(self), plargeinteger.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLargeInteger)(windows_core::Interface::as_raw(self), plargeinteger.param().abi()).ok() } pub unsafe fn UTCTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5401,9 +5401,9 @@ impl IADsPropertyValue2 { } pub unsafe fn PutObjectProperty(&self, lnadstype: i32, vprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutObjectProperty)(windows_core::Interface::as_raw(self), lnadstype, vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PutObjectProperty)(windows_core::Interface::as_raw(self), lnadstype, vprop.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5425,9 +5425,9 @@ impl IADsReplicaPointer { } pub unsafe fn SetServerName(&self, bstrservername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerName)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerName)(windows_core::Interface::as_raw(self), bstrservername.param().abi()).ok() } pub unsafe fn ReplicaType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5456,9 +5456,9 @@ impl IADsReplicaPointer { } pub unsafe fn SetReplicaAddressHints(&self, vreplicaaddresshints: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReplicaAddressHints)(windows_core::Interface::as_raw(self), vreplicaaddresshints.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReplicaAddressHints)(windows_core::Interface::as_raw(self), vreplicaaddresshints.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5514,37 +5514,37 @@ impl IADsResource { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn User(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5598,9 +5598,9 @@ impl IADsSecurityDescriptor { } pub unsafe fn SetOwner(&self, bstrowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), bstrowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), bstrowner.param().abi()).ok() } pub unsafe fn OwnerDefaulted(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5608,9 +5608,9 @@ impl IADsSecurityDescriptor { } pub unsafe fn SetOwnerDefaulted(&self, fownerdefaulted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwnerDefaulted)(windows_core::Interface::as_raw(self), fownerdefaulted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwnerDefaulted)(windows_core::Interface::as_raw(self), fownerdefaulted.param().abi()).ok() } pub unsafe fn Group(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5618,9 +5618,9 @@ impl IADsSecurityDescriptor { } pub unsafe fn SetGroup(&self, bstrgroup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroup)(windows_core::Interface::as_raw(self), bstrgroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGroup)(windows_core::Interface::as_raw(self), bstrgroup.param().abi()).ok() } pub unsafe fn GroupDefaulted(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5628,9 +5628,9 @@ impl IADsSecurityDescriptor { } pub unsafe fn SetGroupDefaulted(&self, fgroupdefaulted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroupDefaulted)(windows_core::Interface::as_raw(self), fgroupdefaulted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGroupDefaulted)(windows_core::Interface::as_raw(self), fgroupdefaulted.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DiscretionaryAcl(&self) -> windows_core::Result { @@ -5640,9 +5640,9 @@ impl IADsSecurityDescriptor { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDiscretionaryAcl(&self, pdiscretionaryacl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDiscretionaryAcl)(windows_core::Interface::as_raw(self), pdiscretionaryacl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDiscretionaryAcl)(windows_core::Interface::as_raw(self), pdiscretionaryacl.param().abi()).ok() } pub unsafe fn DaclDefaulted(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5650,9 +5650,9 @@ impl IADsSecurityDescriptor { } pub unsafe fn SetDaclDefaulted(&self, fdacldefaulted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDaclDefaulted)(windows_core::Interface::as_raw(self), fdacldefaulted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDaclDefaulted)(windows_core::Interface::as_raw(self), fdacldefaulted.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SystemAcl(&self) -> windows_core::Result { @@ -5662,9 +5662,9 @@ impl IADsSecurityDescriptor { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSystemAcl(&self, psystemacl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSystemAcl)(windows_core::Interface::as_raw(self), psystemacl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSystemAcl)(windows_core::Interface::as_raw(self), psystemacl.param().abi()).ok() } pub unsafe fn SaclDefaulted(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5672,9 +5672,9 @@ impl IADsSecurityDescriptor { } pub unsafe fn SetSaclDefaulted(&self, fsacldefaulted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSaclDefaulted)(windows_core::Interface::as_raw(self), fsacldefaulted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSaclDefaulted)(windows_core::Interface::as_raw(self), fsacldefaulted.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopySecurityDescriptor(&self) -> windows_core::Result { @@ -5731,24 +5731,24 @@ windows_core::imp::interface_hierarchy!(IADsSecurityUtility, windows_core::IUnkn impl IADsSecurityUtility { pub unsafe fn GetSecurityDescriptor(&self, varpath: P0, lpathformat: i32, lformat: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), varpath.into_param().abi(), lpathformat, lformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSecurityDescriptor)(windows_core::Interface::as_raw(self), varpath.param().abi(), lpathformat, lformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSecurityDescriptor(&self, varpath: P0, lpathformat: i32, vardata: P1, ldataformat: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), varpath.into_param().abi(), lpathformat, vardata.into_param().abi(), ldataformat).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), varpath.param().abi(), lpathformat, vardata.param().abi(), ldataformat).ok() } pub unsafe fn ConvertSecurityDescriptor(&self, varsd: P0, ldataformat: i32, loutformat: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConvertSecurityDescriptor)(windows_core::Interface::as_raw(self), varsd.into_param().abi(), ldataformat, loutformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConvertSecurityDescriptor)(windows_core::Interface::as_raw(self), varsd.param().abi(), ldataformat, loutformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SecurityMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5806,37 +5806,37 @@ impl IADsService { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn HostComputer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5844,9 +5844,9 @@ impl IADsService { } pub unsafe fn SetHostComputer(&self, bstrhostcomputer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHostComputer)(windows_core::Interface::as_raw(self), bstrhostcomputer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHostComputer)(windows_core::Interface::as_raw(self), bstrhostcomputer.param().abi()).ok() } pub unsafe fn DisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5854,9 +5854,9 @@ impl IADsService { } pub unsafe fn SetDisplayName(&self, bstrdisplayname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), bstrdisplayname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), bstrdisplayname.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5864,9 +5864,9 @@ impl IADsService { } pub unsafe fn SetVersion(&self, bstrversion: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), bstrversion.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), bstrversion.param().abi()).ok() } pub unsafe fn ServiceType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5888,9 +5888,9 @@ impl IADsService { } pub unsafe fn SetPath(&self, bstrpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bstrpath.param().abi()).ok() } pub unsafe fn StartupParameters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5898,9 +5898,9 @@ impl IADsService { } pub unsafe fn SetStartupParameters(&self, bstrstartupparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStartupParameters)(windows_core::Interface::as_raw(self), bstrstartupparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStartupParameters)(windows_core::Interface::as_raw(self), bstrstartupparameters.param().abi()).ok() } pub unsafe fn ErrorControl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5915,9 +5915,9 @@ impl IADsService { } pub unsafe fn SetLoadOrderGroup(&self, bstrloadordergroup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoadOrderGroup)(windows_core::Interface::as_raw(self), bstrloadordergroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoadOrderGroup)(windows_core::Interface::as_raw(self), bstrloadordergroup.param().abi()).ok() } pub unsafe fn ServiceAccountName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5925,9 +5925,9 @@ impl IADsService { } pub unsafe fn SetServiceAccountName(&self, bstrserviceaccountname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceAccountName)(windows_core::Interface::as_raw(self), bstrserviceaccountname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceAccountName)(windows_core::Interface::as_raw(self), bstrserviceaccountname.param().abi()).ok() } pub unsafe fn ServiceAccountPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5935,9 +5935,9 @@ impl IADsService { } pub unsafe fn SetServiceAccountPath(&self, bstrserviceaccountpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceAccountPath)(windows_core::Interface::as_raw(self), bstrserviceaccountpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceAccountPath)(windows_core::Interface::as_raw(self), bstrserviceaccountpath.param().abi()).ok() } pub unsafe fn Dependencies(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5945,9 +5945,9 @@ impl IADsService { } pub unsafe fn SetDependencies(&self, vdependencies: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDependencies)(windows_core::Interface::as_raw(self), vdependencies.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDependencies)(windows_core::Interface::as_raw(self), vdependencies.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6017,37 +6017,37 @@ impl IADsServiceOperations { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6067,9 +6067,9 @@ impl IADsServiceOperations { } pub unsafe fn SetPassword(&self, bstrnewpassword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), bstrnewpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), bstrnewpassword.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6121,37 +6121,37 @@ impl IADsSession { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn User(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6227,37 +6227,37 @@ impl IADsSyntax { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn OleAutoDataType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6316,9 +6316,9 @@ impl IADsTypedName { } pub unsafe fn SetObjectName(&self, bstrobjectname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObjectName)(windows_core::Interface::as_raw(self), bstrobjectname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObjectName)(windows_core::Interface::as_raw(self), bstrobjectname.param().abi()).ok() } pub unsafe fn Level(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6384,37 +6384,37 @@ impl IADsUser { } pub unsafe fn Get(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetEx(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetEx)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutEx(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.into_param().abi(), vprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutEx)(windows_core::Interface::as_raw(self), lncontrolcode, bstrname.param().abi(), vprop.param().abi()).ok() } pub unsafe fn GetInfoEx(&self, vproperties: P0, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).base__.GetInfoEx)(windows_core::Interface::as_raw(self), vproperties.param().abi(), lnreserved).ok() } pub unsafe fn BadLoginAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6446,9 +6446,9 @@ impl IADsUser { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn Division(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6456,9 +6456,9 @@ impl IADsUser { } pub unsafe fn SetDivision(&self, bstrdivision: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDivision)(windows_core::Interface::as_raw(self), bstrdivision.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDivision)(windows_core::Interface::as_raw(self), bstrdivision.param().abi()).ok() } pub unsafe fn Department(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6466,9 +6466,9 @@ impl IADsUser { } pub unsafe fn SetDepartment(&self, bstrdepartment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDepartment)(windows_core::Interface::as_raw(self), bstrdepartment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDepartment)(windows_core::Interface::as_raw(self), bstrdepartment.param().abi()).ok() } pub unsafe fn EmployeeID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6476,9 +6476,9 @@ impl IADsUser { } pub unsafe fn SetEmployeeID(&self, bstremployeeid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEmployeeID)(windows_core::Interface::as_raw(self), bstremployeeid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEmployeeID)(windows_core::Interface::as_raw(self), bstremployeeid.param().abi()).ok() } pub unsafe fn FullName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6486,9 +6486,9 @@ impl IADsUser { } pub unsafe fn SetFullName(&self, bstrfullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFullName)(windows_core::Interface::as_raw(self), bstrfullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFullName)(windows_core::Interface::as_raw(self), bstrfullname.param().abi()).ok() } pub unsafe fn FirstName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6496,9 +6496,9 @@ impl IADsUser { } pub unsafe fn SetFirstName(&self, bstrfirstname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFirstName)(windows_core::Interface::as_raw(self), bstrfirstname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFirstName)(windows_core::Interface::as_raw(self), bstrfirstname.param().abi()).ok() } pub unsafe fn LastName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6506,9 +6506,9 @@ impl IADsUser { } pub unsafe fn SetLastName(&self, bstrlastname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLastName)(windows_core::Interface::as_raw(self), bstrlastname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLastName)(windows_core::Interface::as_raw(self), bstrlastname.param().abi()).ok() } pub unsafe fn OtherName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6516,9 +6516,9 @@ impl IADsUser { } pub unsafe fn SetOtherName(&self, bstrothername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherName)(windows_core::Interface::as_raw(self), bstrothername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOtherName)(windows_core::Interface::as_raw(self), bstrothername.param().abi()).ok() } pub unsafe fn NamePrefix(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6526,9 +6526,9 @@ impl IADsUser { } pub unsafe fn SetNamePrefix(&self, bstrnameprefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamePrefix)(windows_core::Interface::as_raw(self), bstrnameprefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNamePrefix)(windows_core::Interface::as_raw(self), bstrnameprefix.param().abi()).ok() } pub unsafe fn NameSuffix(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6536,9 +6536,9 @@ impl IADsUser { } pub unsafe fn SetNameSuffix(&self, bstrnamesuffix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNameSuffix)(windows_core::Interface::as_raw(self), bstrnamesuffix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNameSuffix)(windows_core::Interface::as_raw(self), bstrnamesuffix.param().abi()).ok() } pub unsafe fn Title(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6546,9 +6546,9 @@ impl IADsUser { } pub unsafe fn SetTitle(&self, bstrtitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), bstrtitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), bstrtitle.param().abi()).ok() } pub unsafe fn Manager(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6556,9 +6556,9 @@ impl IADsUser { } pub unsafe fn SetManager(&self, bstrmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetManager)(windows_core::Interface::as_raw(self), bstrmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetManager)(windows_core::Interface::as_raw(self), bstrmanager.param().abi()).ok() } pub unsafe fn TelephoneHome(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6566,9 +6566,9 @@ impl IADsUser { } pub unsafe fn SetTelephoneHome(&self, vtelephonehome: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTelephoneHome)(windows_core::Interface::as_raw(self), vtelephonehome.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTelephoneHome)(windows_core::Interface::as_raw(self), vtelephonehome.param().abi()).ok() } pub unsafe fn TelephoneMobile(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6576,9 +6576,9 @@ impl IADsUser { } pub unsafe fn SetTelephoneMobile(&self, vtelephonemobile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTelephoneMobile)(windows_core::Interface::as_raw(self), vtelephonemobile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTelephoneMobile)(windows_core::Interface::as_raw(self), vtelephonemobile.param().abi()).ok() } pub unsafe fn TelephoneNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6586,9 +6586,9 @@ impl IADsUser { } pub unsafe fn SetTelephoneNumber(&self, vtelephonenumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), vtelephonenumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTelephoneNumber)(windows_core::Interface::as_raw(self), vtelephonenumber.param().abi()).ok() } pub unsafe fn TelephonePager(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6596,9 +6596,9 @@ impl IADsUser { } pub unsafe fn SetTelephonePager(&self, vtelephonepager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTelephonePager)(windows_core::Interface::as_raw(self), vtelephonepager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTelephonePager)(windows_core::Interface::as_raw(self), vtelephonepager.param().abi()).ok() } pub unsafe fn FaxNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6606,9 +6606,9 @@ impl IADsUser { } pub unsafe fn SetFaxNumber(&self, vfaxnumber: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), vfaxnumber.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFaxNumber)(windows_core::Interface::as_raw(self), vfaxnumber.param().abi()).ok() } pub unsafe fn OfficeLocations(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6616,9 +6616,9 @@ impl IADsUser { } pub unsafe fn SetOfficeLocations(&self, vofficelocations: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOfficeLocations)(windows_core::Interface::as_raw(self), vofficelocations.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOfficeLocations)(windows_core::Interface::as_raw(self), vofficelocations.param().abi()).ok() } pub unsafe fn PostalAddresses(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6626,9 +6626,9 @@ impl IADsUser { } pub unsafe fn SetPostalAddresses(&self, vpostaladdresses: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostalAddresses)(windows_core::Interface::as_raw(self), vpostaladdresses.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostalAddresses)(windows_core::Interface::as_raw(self), vpostaladdresses.param().abi()).ok() } pub unsafe fn PostalCodes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6636,9 +6636,9 @@ impl IADsUser { } pub unsafe fn SetPostalCodes(&self, vpostalcodes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostalCodes)(windows_core::Interface::as_raw(self), vpostalcodes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostalCodes)(windows_core::Interface::as_raw(self), vpostalcodes.param().abi()).ok() } pub unsafe fn SeeAlso(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6646,9 +6646,9 @@ impl IADsUser { } pub unsafe fn SetSeeAlso(&self, vseealso: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSeeAlso)(windows_core::Interface::as_raw(self), vseealso.param().abi()).ok() } pub unsafe fn AccountDisabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6656,9 +6656,9 @@ impl IADsUser { } pub unsafe fn SetAccountDisabled(&self, faccountdisabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccountDisabled)(windows_core::Interface::as_raw(self), faccountdisabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccountDisabled)(windows_core::Interface::as_raw(self), faccountdisabled.param().abi()).ok() } pub unsafe fn AccountExpirationDate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6687,9 +6687,9 @@ impl IADsUser { } pub unsafe fn SetIsAccountLocked(&self, fisaccountlocked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsAccountLocked)(windows_core::Interface::as_raw(self), fisaccountlocked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsAccountLocked)(windows_core::Interface::as_raw(self), fisaccountlocked.param().abi()).ok() } pub unsafe fn LoginHours(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6697,9 +6697,9 @@ impl IADsUser { } pub unsafe fn SetLoginHours(&self, vloginhours: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoginHours)(windows_core::Interface::as_raw(self), vloginhours.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoginHours)(windows_core::Interface::as_raw(self), vloginhours.param().abi()).ok() } pub unsafe fn LoginWorkstations(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6707,9 +6707,9 @@ impl IADsUser { } pub unsafe fn SetLoginWorkstations(&self, vloginworkstations: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoginWorkstations)(windows_core::Interface::as_raw(self), vloginworkstations.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoginWorkstations)(windows_core::Interface::as_raw(self), vloginworkstations.param().abi()).ok() } pub unsafe fn MaxLogins(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6745,9 +6745,9 @@ impl IADsUser { } pub unsafe fn SetPasswordRequired(&self, fpasswordrequired: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPasswordRequired)(windows_core::Interface::as_raw(self), fpasswordrequired.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPasswordRequired)(windows_core::Interface::as_raw(self), fpasswordrequired.param().abi()).ok() } pub unsafe fn RequireUniquePassword(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6755,9 +6755,9 @@ impl IADsUser { } pub unsafe fn SetRequireUniquePassword(&self, frequireuniquepassword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequireUniquePassword)(windows_core::Interface::as_raw(self), frequireuniquepassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequireUniquePassword)(windows_core::Interface::as_raw(self), frequireuniquepassword.param().abi()).ok() } pub unsafe fn EmailAddress(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6765,9 +6765,9 @@ impl IADsUser { } pub unsafe fn SetEmailAddress(&self, bstremailaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEmailAddress)(windows_core::Interface::as_raw(self), bstremailaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEmailAddress)(windows_core::Interface::as_raw(self), bstremailaddress.param().abi()).ok() } pub unsafe fn HomeDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6775,9 +6775,9 @@ impl IADsUser { } pub unsafe fn SetHomeDirectory(&self, bstrhomedirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHomeDirectory)(windows_core::Interface::as_raw(self), bstrhomedirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHomeDirectory)(windows_core::Interface::as_raw(self), bstrhomedirectory.param().abi()).ok() } pub unsafe fn Languages(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6785,9 +6785,9 @@ impl IADsUser { } pub unsafe fn SetLanguages(&self, vlanguages: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLanguages)(windows_core::Interface::as_raw(self), vlanguages.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLanguages)(windows_core::Interface::as_raw(self), vlanguages.param().abi()).ok() } pub unsafe fn Profile(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6795,9 +6795,9 @@ impl IADsUser { } pub unsafe fn SetProfile(&self, bstrprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), bstrprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProfile)(windows_core::Interface::as_raw(self), bstrprofile.param().abi()).ok() } pub unsafe fn LoginScript(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6805,9 +6805,9 @@ impl IADsUser { } pub unsafe fn SetLoginScript(&self, bstrloginscript: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoginScript)(windows_core::Interface::as_raw(self), bstrloginscript.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoginScript)(windows_core::Interface::as_raw(self), bstrloginscript.param().abi()).ok() } pub unsafe fn Picture(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6815,9 +6815,9 @@ impl IADsUser { } pub unsafe fn SetPicture(&self, vpicture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPicture)(windows_core::Interface::as_raw(self), vpicture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPicture)(windows_core::Interface::as_raw(self), vpicture.param().abi()).ok() } pub unsafe fn HomePage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6825,9 +6825,9 @@ impl IADsUser { } pub unsafe fn SetHomePage(&self, bstrhomepage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHomePage)(windows_core::Interface::as_raw(self), bstrhomepage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHomePage)(windows_core::Interface::as_raw(self), bstrhomepage.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Groups(&self) -> windows_core::Result { @@ -6836,16 +6836,16 @@ impl IADsUser { } pub unsafe fn SetPassword(&self, newpassword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), newpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), newpassword.param().abi()).ok() } pub unsafe fn ChangePassword(&self, bstroldpassword: P0, bstrnewpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangePassword)(windows_core::Interface::as_raw(self), bstroldpassword.into_param().abi(), bstrnewpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangePassword)(windows_core::Interface::as_raw(self), bstroldpassword.param().abi(), bstrnewpassword.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6985,9 +6985,9 @@ impl ICommonQuery { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn OpenQueryWindow(&self, hwndparent: P0, pquerywnd: *mut OPENQUERYWINDOW, ppdataobject: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenQueryWindow)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), pquerywnd, core::mem::transmute(ppdataobject)).ok() + (windows_core::Interface::vtable(self).OpenQueryWindow)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), pquerywnd, core::mem::transmute(ppdataobject)).ok() } } #[repr(C)] @@ -7015,16 +7015,16 @@ impl IDirectoryObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDSObject(&self, pszrdnname: P0, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDSObject)(windows_core::Interface::as_raw(self), pszrdnname.into_param().abi(), pattributeentries, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteDSObject)(windows_core::Interface::as_raw(self), pszrdnname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteDSObject)(windows_core::Interface::as_raw(self), pszrdnname.param().abi()).ok() } } #[repr(C)] @@ -7047,42 +7047,42 @@ impl IDirectorySchemaMgmt { } pub unsafe fn CreateAttributeDefinition(&self, pszattributename: P0, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttributeDefinition)(windows_core::Interface::as_raw(self), pszattributename.into_param().abi()).ok() + (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), ppszclassnames, dwnumclasses, ppclassdefinition, pdwnumclasses).ok() } pub unsafe fn WriteClassDefinition(&self, pszclassname: P0, pclassdefinition: *const ADS_CLASS_DEF) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteClassDefinition)(windows_core::Interface::as_raw(self), pszclassname.param().abi()).ok() } } #[repr(C)] @@ -7105,56 +7105,56 @@ impl IDirectorySearch { } pub unsafe fn ExecuteSearch(&self, pszsearchfilter: P0, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecuteSearch)(windows_core::Interface::as_raw(self), pszsearchfilter.into_param().abi(), pattributenames, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AbandonSearch)(windows_core::Interface::as_raw(self), phsearchresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AbandonSearch)(windows_core::Interface::as_raw(self), phsearchresult.param().abi()).ok() } pub unsafe fn GetFirstRow(&self, hsearchresult: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFirstRow)(windows_core::Interface::as_raw(self), hsearchresult.into_param().abi()) + (windows_core::Interface::vtable(self).GetFirstRow)(windows_core::Interface::as_raw(self), hsearchresult.param().abi()) } pub unsafe fn GetNextRow(&self, hsearchresult: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNextRow)(windows_core::Interface::as_raw(self), hsearchresult.into_param().abi()) + (windows_core::Interface::vtable(self).GetNextRow)(windows_core::Interface::as_raw(self), hsearchresult.param().abi()) } pub unsafe fn GetPreviousRow(&self, hsearchresult: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPreviousRow)(windows_core::Interface::as_raw(self), hsearchresult.into_param().abi()) + (windows_core::Interface::vtable(self).GetPreviousRow)(windows_core::Interface::as_raw(self), hsearchresult.param().abi()) } pub unsafe fn GetNextColumnName(&self, hsearchhandle: P0, ppszcolumnname: *mut windows_core::PWSTR) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNextColumnName)(windows_core::Interface::as_raw(self), hsearchhandle.into_param().abi(), ppszcolumnname) + (windows_core::Interface::vtable(self).GetNextColumnName)(windows_core::Interface::as_raw(self), hsearchhandle.param().abi(), ppszcolumnname) } pub unsafe fn GetColumn(&self, hsearchresult: P0, szcolumnname: P1, psearchcolumn: *mut ADS_SEARCH_COLUMN) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), hsearchresult.into_param().abi(), szcolumnname.into_param().abi(), psearchcolumn).ok() + (windows_core::Interface::vtable(self).GetColumn)(windows_core::Interface::as_raw(self), hsearchresult.param().abi(), szcolumnname.param().abi(), 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), psearchcolumn).ok() } pub unsafe fn CloseSearchHandle(&self, hsearchresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseSearchHandle)(windows_core::Interface::as_raw(self), hsearchresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseSearchHandle)(windows_core::Interface::as_raw(self), hsearchresult.param().abi()).ok() } } #[repr(C)] @@ -7177,19 +7177,19 @@ impl IDsAdminCreateObj { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, padscontainerobj: P0, padscopysource: P1, lpszclassname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), padscontainerobj.into_param().abi(), padscopysource.into_param().abi(), lpszclassname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), padscontainerobj.param().abi(), padscopysource.param().abi(), lpszclassname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateModal(&self, hwndparent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateModal)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateModal)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7209,9 +7209,9 @@ windows_core::imp::interface_hierarchy!(IDsAdminNewObj, windows_core::IUnknown); impl IDsAdminNewObj { pub unsafe fn SetButtons(&self, ncurrindex: u32, bvalid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetButtons)(windows_core::Interface::as_raw(self), ncurrindex, bvalid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetButtons)(windows_core::Interface::as_raw(self), ncurrindex, bvalid.param().abi()).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), pntotal, pnstartindex).ok() @@ -7229,38 +7229,38 @@ impl IDsAdminNewObjExt { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn Initialize(&self, padscontainerobj: P0, padscopysource: P1, lpszclassname: P2, pdsadminnewobj: P3, pdispinfo: *mut DSA_NEWOBJ_DISPINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), padscontainerobj.into_param().abi(), padscopysource.into_param().abi(), lpszclassname.into_param().abi(), pdsadminnewobj.into_param().abi(), pdispinfo).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), padscontainerobj.param().abi(), padscopysource.param().abi(), lpszclassname.param().abi(), pdsadminnewobj.param().abi(), pdispinfo).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPages(&self, lpfnaddpage: super::super::UI::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), lpfnaddpage, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), lpfnaddpage, lparam.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetObject(&self, padsobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), padsobj.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObject)(windows_core::Interface::as_raw(self), padsobj.param().abi()).ok() } pub unsafe fn WriteData(&self, hwnd: P0, ucontext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ucontext).ok() + (windows_core::Interface::vtable(self).WriteData)(windows_core::Interface::as_raw(self), hwnd.param().abi(), ucontext).ok() } pub unsafe fn OnError(&self, hwnd: P0, hr: windows_core::HRESULT, ucontext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hr, ucontext).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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() @@ -7290,9 +7290,9 @@ windows_core::imp::interface_hierarchy!(IDsAdminNewObjPrimarySite, windows_core: impl IDsAdminNewObjPrimarySite { pub unsafe fn CreateNew(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateNew)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateNew)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() @@ -7310,17 +7310,17 @@ impl IDsAdminNotifyHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pextrainfo: P0, pueventflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pextrainfo.into_param().abi(), pueventflags).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pextrainfo.param().abi(), pueventflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Begin(&self, uevent: u32, parg1: P0, parg2: P1, puflags: *mut u32, pbstr: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), uevent, parg1.into_param().abi(), parg2.into_param().abi(), 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(), 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), nitem, uflags).ok() @@ -7348,9 +7348,9 @@ windows_core::imp::interface_hierarchy!(IDsBrowseDomainTree, windows_core::IUnkn impl IDsBrowseDomainTree { pub unsafe fn BrowseTo(&self, hwndparent: P0, ppsztargetpath: *mut windows_core::PWSTR, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BrowseTo)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), ppsztargetpath, dwflags).ok() + (windows_core::Interface::vtable(self).BrowseTo)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), 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), ppdomaintree, dwflags).ok() @@ -7363,11 +7363,11 @@ impl IDsBrowseDomainTree { } pub unsafe fn SetComputer(&self, pszcomputername: P0, pszusername: P1, pszpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetComputer)(windows_core::Interface::as_raw(self), pszcomputername.into_param().abi(), pszusername.into_param().abi(), pszpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetComputer)(windows_core::Interface::as_raw(self), pszcomputername.param().abi(), pszusername.param().abi(), pszpassword.param().abi()).ok() } } #[repr(C)] @@ -7384,72 +7384,72 @@ windows_core::imp::interface_hierarchy!(IDsDisplaySpecifier, windows_core::IUnkn impl IDsDisplaySpecifier { pub unsafe fn SetServer(&self, pszserver: P0, pszusername: P1, pszpassword: P2, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), pszserver.into_param().abi(), pszusername.into_param().abi(), pszpassword.into_param().abi(), 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), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDisplaySpecifier)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), riid, ppv).ok() + (windows_core::Interface::vtable(self).GetDisplaySpecifier)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), riid, ppv).ok() } pub unsafe fn GetIconLocation(&self, pszobjectclass: P0, dwflags: u32, pszbuffer: &mut [u16], presid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIconLocation)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), dwflags, core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), 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(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), dwflags, cxicon, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFriendlyClassName)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetFriendlyClassName)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap()).ok() } pub unsafe fn GetFriendlyAttributeName(&self, pszobjectclass: P0, pszattributename: P1, pszbuffer: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFriendlyAttributeName)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), pszattributename.into_param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetFriendlyAttributeName)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), pszattributename.param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap()).ok() } pub unsafe fn IsClassContainer(&self, pszobjectclass: P0, pszadspath: P1, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsClassContainer)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), pszadspath.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetClassCreationInfo)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), ppdscci).ok() + (windows_core::Interface::vtable(self).GetClassCreationInfo)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), ppdscci).ok() } pub unsafe fn EnumClassAttributes(&self, pszobjectclass: P0, pcbenum: LPDSENUMATTRIBUTES, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumClassAttributes)(windows_core::Interface::as_raw(self), pszobjectclass.into_param().abi(), pcbenum, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnumClassAttributes)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), pcbenum, lparam.param().abi()).ok() } pub unsafe fn GetAttributeADsType(&self, pszattributename: P0) -> ADSTYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAttributeADsType)(windows_core::Interface::as_raw(self), pszattributename.into_param().abi()) + (windows_core::Interface::vtable(self).GetAttributeADsType)(windows_core::Interface::as_raw(self), pszattributename.param().abi()) } } #[repr(C)] @@ -7479,10 +7479,10 @@ impl IDsObjectPicker { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InvokeDialog(&self, hwndparent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InvokeDialog)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InvokeDialog)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7503,17 +7503,17 @@ impl IDsObjectPickerCredentials { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InvokeDialog(&self, hwndparent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InvokeDialog)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.InvokeDialog)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCredentials(&self, szusername: P0, szpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), szusername.into_param().abi(), szpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), szusername.param().abi(), szpassword.param().abi()).ok() } } #[repr(C)] @@ -7534,46 +7534,46 @@ impl IPersistQuery { } pub unsafe fn WriteString(&self, psection: P0, pvaluename: P1, pvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteString)(windows_core::Interface::as_raw(self), psection.into_param().abi(), pvaluename.into_param().abi(), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteString)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), pvalue.param().abi()).ok() } pub unsafe fn ReadString(&self, psection: P0, pvaluename: P1, pbuffer: windows_core::PWSTR, cchbuffer: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadString)(windows_core::Interface::as_raw(self), psection.into_param().abi(), pvaluename.into_param().abi(), core::mem::transmute(pbuffer), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteInt)(windows_core::Interface::as_raw(self), psection.into_param().abi(), pvaluename.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadInt)(windows_core::Interface::as_raw(self), psection.into_param().abi(), pvaluename.into_param().abi(), pvalue).ok() + (windows_core::Interface::vtable(self).ReadInt)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), pvalue).ok() } pub unsafe fn WriteStruct(&self, psection: P0, pvaluename: P1, pstruct: *mut core::ffi::c_void, cbstruct: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStruct)(windows_core::Interface::as_raw(self), psection.into_param().abi(), pvaluename.into_param().abi(), pstruct, cbstruct).ok() + (windows_core::Interface::vtable(self).WriteStruct)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadStruct)(windows_core::Interface::as_raw(self), psection.into_param().abi(), pvaluename.into_param().abi(), pstruct, cbstruct).ok() + (windows_core::Interface::vtable(self).ReadStruct)(windows_core::Interface::as_raw(self), psection.param().abi(), pvaluename.param().abi(), pstruct, cbstruct).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -7635,10 +7635,10 @@ windows_core::imp::interface_hierarchy!(IPrivateUnknown, windows_core::IUnknown) impl IPrivateUnknown { pub unsafe fn ADSIInitializeObject(&self, lpszusername: P0, lpszpassword: P1, lnreserved: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ADSIInitializeObject)(windows_core::Interface::as_raw(self), lpszusername.into_param().abi(), lpszpassword.into_param().abi(), lnreserved).ok() + (windows_core::Interface::vtable(self).ADSIInitializeObject)(windows_core::Interface::as_raw(self), lpszusername.param().abi(), lpszpassword.param().abi(), lnreserved).ok() } pub unsafe fn ADSIReleaseObject(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ADSIReleaseObject)(windows_core::Interface::as_raw(self)).ok() @@ -7656,23 +7656,23 @@ impl IQueryForm { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn Initialize(&self, hkform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hkform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hkform.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn AddForms(&self, paddformsproc: LPCQADDFORMSPROC, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddForms)(windows_core::Interface::as_raw(self), paddformsproc, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddForms)(windows_core::Interface::as_raw(self), paddformsproc, lparam.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn AddPages(&self, paddpagesproc: LPCQADDPAGESPROC, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), paddpagesproc, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), paddpagesproc, lparam.param().abi()).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 b7e8b8245f..27a965b041 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs @@ -3,28 +3,28 @@ windows_core::imp::interface_hierarchy!(AsyncIBackgroundCopyCallback, windows_co impl AsyncIBackgroundCopyCallback { pub unsafe fn Begin_JobTransferred(&self, pjob: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_JobTransferred)(windows_core::Interface::as_raw(self), pjob.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_JobTransferred)(windows_core::Interface::as_raw(self), pjob.param().abi()).ok() } pub unsafe fn Finish_JobTransferred(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_JobTransferred)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Begin_JobError(&self, pjob: P0, perror: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_JobError)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), perror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_JobError)(windows_core::Interface::as_raw(self), pjob.param().abi(), perror.param().abi()).ok() } pub unsafe fn Finish_JobError(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_JobError)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Begin_JobModification(&self, pjob: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_JobModification)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), 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() @@ -79,10 +79,10 @@ impl IBITSExtensionSetupFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetObject(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -99,22 +99,22 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback, windows_core::I impl IBackgroundCopyCallback { pub unsafe fn JobTransferred(&self, pjob: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JobTransferred)(windows_core::Interface::as_raw(self), pjob.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JobTransferred)(windows_core::Interface::as_raw(self), pjob.param().abi()).ok() } pub unsafe fn JobError(&self, pjob: P0, perror: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).JobError)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), perror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JobError)(windows_core::Interface::as_raw(self), pjob.param().abi(), perror.param().abi()).ok() } pub unsafe fn JobModification(&self, pjob: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JobModification)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).JobModification)(windows_core::Interface::as_raw(self), pjob.param().abi(), dwreserved).ok() } } #[repr(C)] @@ -129,24 +129,24 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback1, windows_core:: impl IBackgroundCopyCallback1 { pub unsafe fn OnStatus(&self, pgroup: P0, pjob: P1, dwfileindex: u32, dwstatus: u32, dwnumofretries: u32, dwwin32result: u32, dwtransportresult: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStatus)(windows_core::Interface::as_raw(self), pgroup.into_param().abi(), pjob.into_param().abi(), dwfileindex, dwstatus, dwnumofretries, dwwin32result, 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: P0, pjob: P1, dwfileindex: u32, dwprogressvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), progresstype, pgroup.into_param().abi(), pjob.into_param().abi(), dwfileindex, 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: P0, pjob: P1, dwfileindex: u32, dwprogressvalue: u32, pbyte: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgressEx)(windows_core::Interface::as_raw(self), progresstype, pgroup.into_param().abi(), pjob.into_param().abi(), dwfileindex, 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)] @@ -161,29 +161,29 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback2, windows_core:: impl IBackgroundCopyCallback2 { pub unsafe fn JobTransferred(&self, pjob: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.JobTransferred)(windows_core::Interface::as_raw(self), pjob.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.JobTransferred)(windows_core::Interface::as_raw(self), pjob.param().abi()).ok() } pub unsafe fn JobError(&self, pjob: P0, perror: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.JobError)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), perror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.JobError)(windows_core::Interface::as_raw(self), pjob.param().abi(), perror.param().abi()).ok() } pub unsafe fn JobModification(&self, pjob: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.JobModification)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).base__.JobModification)(windows_core::Interface::as_raw(self), pjob.param().abi(), dwreserved).ok() } pub unsafe fn FileTransferred(&self, pjob: P0, pfile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FileTransferred)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), pfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FileTransferred)(windows_core::Interface::as_raw(self), pjob.param().abi(), pfile.param().abi()).ok() } } #[repr(C)] @@ -196,36 +196,36 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback3, windows_core:: impl IBackgroundCopyCallback3 { pub unsafe fn JobTransferred(&self, pjob: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.JobTransferred)(windows_core::Interface::as_raw(self), pjob.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.JobTransferred)(windows_core::Interface::as_raw(self), pjob.param().abi()).ok() } pub unsafe fn JobError(&self, pjob: P0, perror: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.JobError)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), perror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.JobError)(windows_core::Interface::as_raw(self), pjob.param().abi(), perror.param().abi()).ok() } pub unsafe fn JobModification(&self, pjob: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.JobModification)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).base__.base__.JobModification)(windows_core::Interface::as_raw(self), pjob.param().abi(), dwreserved).ok() } pub unsafe fn FileTransferred(&self, pjob: P0, pfile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FileTransferred)(windows_core::Interface::as_raw(self), pjob.into_param().abi(), pfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.FileTransferred)(windows_core::Interface::as_raw(self), pjob.param().abi(), pfile.param().abi()).ok() } pub unsafe fn FileRangesTransferred(&self, job: P0, file: P1, ranges: &[BG_FILE_RANGE]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FileRangesTransferred)(windows_core::Interface::as_raw(self), job.into_param().abi(), file.into_param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())).ok() + (windows_core::Interface::vtable(self).FileRangesTransferred)(windows_core::Interface::as_raw(self), job.param().abi(), file.param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())).ok() } } #[repr(C)] @@ -306,9 +306,9 @@ impl IBackgroundCopyFile2 { } pub unsafe fn SetRemoteName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRemoteName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRemoteName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } } #[repr(C)] @@ -336,9 +336,9 @@ impl IBackgroundCopyFile3 { } pub unsafe fn SetRemoteName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetTemporaryName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -346,9 +346,9 @@ impl IBackgroundCopyFile3 { } pub unsafe fn SetValidationState(&self, state: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValidationState)(windows_core::Interface::as_raw(self), state.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValidationState)(windows_core::Interface::as_raw(self), state.param().abi()).ok() } pub unsafe fn GetValidationState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -386,9 +386,9 @@ impl IBackgroundCopyFile4 { } pub unsafe fn SetRemoteName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetTemporaryName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -396,9 +396,9 @@ impl IBackgroundCopyFile4 { } pub unsafe fn SetValidationState(&self, state: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValidationState)(windows_core::Interface::as_raw(self), state.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValidationState)(windows_core::Interface::as_raw(self), state.param().abi()).ok() } pub unsafe fn GetValidationState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -436,9 +436,9 @@ impl IBackgroundCopyFile5 { } pub unsafe fn SetRemoteName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetTemporaryName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -446,9 +446,9 @@ impl IBackgroundCopyFile5 { } pub unsafe fn SetValidationState(&self, state: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetValidationState)(windows_core::Interface::as_raw(self), state.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetValidationState)(windows_core::Interface::as_raw(self), state.param().abi()).ok() } pub unsafe fn GetValidationState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -494,9 +494,9 @@ impl IBackgroundCopyFile6 { } pub unsafe fn SetRemoteName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetRemoteName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetTemporaryName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -504,9 +504,9 @@ impl IBackgroundCopyFile6 { } pub unsafe fn SetValidationState(&self, state: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetValidationState)(windows_core::Interface::as_raw(self), state.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetValidationState)(windows_core::Interface::as_raw(self), state.param().abi()).ok() } pub unsafe fn GetValidationState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -598,9 +598,9 @@ impl IBackgroundCopyGroup { } pub unsafe fn SetNotificationPointer(&self, iid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotificationPointer)(windows_core::Interface::as_raw(self), iid, punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotificationPointer)(windows_core::Interface::as_raw(self), iid, punk.param().abi()).ok() } } #[repr(C)] @@ -630,10 +630,10 @@ impl IBackgroundCopyJob { } pub unsafe fn AddFile(&self, remoteurl: P0, localname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFile)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFile)(windows_core::Interface::as_raw(self), remoteurl.param().abi(), localname.param().abi()).ok() } pub unsafe fn EnumFiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -679,9 +679,9 @@ impl IBackgroundCopyJob { } pub unsafe fn SetDisplayName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -689,9 +689,9 @@ impl IBackgroundCopyJob { } pub unsafe fn SetDescription(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -713,9 +713,9 @@ impl IBackgroundCopyJob { } pub unsafe fn SetNotifyInterface(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifyInterface)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotifyInterface)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetNotifyInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -741,10 +741,10 @@ impl IBackgroundCopyJob { } pub unsafe fn SetProxySettings(&self, proxyusage: BG_JOB_PROXY_USAGE, proxylist: P0, proxybypasslist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxySettings)(windows_core::Interface::as_raw(self), proxyusage, proxylist.into_param().abi(), proxybypasslist.into_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), pproxyusage, pproxylist, pproxybypasslist).ok() @@ -841,10 +841,10 @@ impl IBackgroundCopyJob2 { } pub unsafe fn AddFile(&self, remoteurl: P0, localname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.param().abi(), localname.param().abi()).ok() } pub unsafe fn EnumFiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -890,9 +890,9 @@ impl IBackgroundCopyJob2 { } pub unsafe fn SetDisplayName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -900,9 +900,9 @@ impl IBackgroundCopyJob2 { } pub unsafe fn SetDescription(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -924,9 +924,9 @@ impl IBackgroundCopyJob2 { } pub unsafe fn SetNotifyInterface(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetNotifyInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -952,10 +952,10 @@ impl IBackgroundCopyJob2 { } pub unsafe fn SetProxySettings(&self, proxyusage: BG_JOB_PROXY_USAGE, proxylist: P0, proxybypasslist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProxySettings)(windows_core::Interface::as_raw(self), proxyusage, proxylist.into_param().abi(), proxybypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetProxySettings)(windows_core::Interface::as_raw(self), pproxyusage, pproxylist, pproxybypasslist).ok() @@ -965,10 +965,10 @@ impl IBackgroundCopyJob2 { } pub unsafe fn SetNotifyCmdLine(&self, program: P0, parameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.into_param().abi(), parameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.param().abi(), parameters.param().abi()).ok() } pub unsafe fn GetNotifyCmdLine(&self, pprogram: *mut windows_core::PWSTR, pparameters: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetNotifyCmdLine)(windows_core::Interface::as_raw(self), pprogram, pparameters).ok() @@ -981,9 +981,9 @@ impl IBackgroundCopyJob2 { } pub unsafe fn SetReplyFileName(&self, replyfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.param().abi()).ok() } pub unsafe fn GetReplyFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1016,10 +1016,10 @@ impl IBackgroundCopyJob3 { } pub unsafe fn AddFile(&self, remoteurl: P0, localname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.param().abi(), localname.param().abi()).ok() } pub unsafe fn EnumFiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1065,9 +1065,9 @@ impl IBackgroundCopyJob3 { } pub unsafe fn SetDisplayName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1075,9 +1075,9 @@ impl IBackgroundCopyJob3 { } pub unsafe fn SetDescription(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1099,9 +1099,9 @@ impl IBackgroundCopyJob3 { } pub unsafe fn SetNotifyInterface(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetNotifyInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1127,10 +1127,10 @@ impl IBackgroundCopyJob3 { } pub unsafe fn SetProxySettings(&self, proxyusage: BG_JOB_PROXY_USAGE, proxylist: P0, proxybypasslist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetProxySettings)(windows_core::Interface::as_raw(self), proxyusage, proxylist.into_param().abi(), proxybypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetProxySettings)(windows_core::Interface::as_raw(self), pproxyusage, pproxylist, pproxybypasslist).ok() @@ -1140,10 +1140,10 @@ impl IBackgroundCopyJob3 { } pub unsafe fn SetNotifyCmdLine(&self, program: P0, parameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.into_param().abi(), parameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.param().abi(), parameters.param().abi()).ok() } pub unsafe fn GetNotifyCmdLine(&self, pprogram: *mut windows_core::PWSTR, pparameters: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetNotifyCmdLine)(windows_core::Interface::as_raw(self), pprogram, pparameters).ok() @@ -1156,9 +1156,9 @@ impl IBackgroundCopyJob3 { } pub unsafe fn SetReplyFileName(&self, replyfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.param().abi()).ok() } pub unsafe fn GetReplyFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1172,17 +1172,17 @@ impl IBackgroundCopyJob3 { } pub unsafe fn ReplaceRemotePrefix(&self, oldprefix: P0, newprefix: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReplaceRemotePrefix)(windows_core::Interface::as_raw(self), oldprefix.into_param().abi(), newprefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReplaceRemotePrefix)(windows_core::Interface::as_raw(self), oldprefix.param().abi(), newprefix.param().abi()).ok() } pub unsafe fn AddFileWithRanges(&self, remoteurl: P0, localname: P1, ranges: &[BG_FILE_RANGE]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFileWithRanges)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())).ok() + (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), flags).ok() @@ -1208,10 +1208,10 @@ impl IBackgroundCopyJob4 { } pub unsafe fn AddFile(&self, remoteurl: P0, localname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.param().abi(), localname.param().abi()).ok() } pub unsafe fn EnumFiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1257,9 +1257,9 @@ impl IBackgroundCopyJob4 { } pub unsafe fn SetDisplayName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1267,9 +1267,9 @@ impl IBackgroundCopyJob4 { } pub unsafe fn SetDescription(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1291,9 +1291,9 @@ impl IBackgroundCopyJob4 { } pub unsafe fn SetNotifyInterface(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetNotifyInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1319,10 +1319,10 @@ impl IBackgroundCopyJob4 { } pub unsafe fn SetProxySettings(&self, proxyusage: BG_JOB_PROXY_USAGE, proxylist: P0, proxybypasslist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetProxySettings)(windows_core::Interface::as_raw(self), proxyusage, proxylist.into_param().abi(), proxybypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.GetProxySettings)(windows_core::Interface::as_raw(self), pproxyusage, pproxylist, pproxybypasslist).ok() @@ -1332,10 +1332,10 @@ impl IBackgroundCopyJob4 { } pub unsafe fn SetNotifyCmdLine(&self, program: P0, parameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.into_param().abi(), parameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.param().abi(), parameters.param().abi()).ok() } pub unsafe fn GetNotifyCmdLine(&self, pprogram: *mut windows_core::PWSTR, pparameters: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetNotifyCmdLine)(windows_core::Interface::as_raw(self), pprogram, pparameters).ok() @@ -1348,9 +1348,9 @@ impl IBackgroundCopyJob4 { } pub unsafe fn SetReplyFileName(&self, replyfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.param().abi()).ok() } pub unsafe fn GetReplyFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1364,17 +1364,17 @@ impl IBackgroundCopyJob4 { } pub unsafe fn ReplaceRemotePrefix(&self, oldprefix: P0, newprefix: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReplaceRemotePrefix)(windows_core::Interface::as_raw(self), oldprefix.into_param().abi(), newprefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReplaceRemotePrefix)(windows_core::Interface::as_raw(self), oldprefix.param().abi(), newprefix.param().abi()).ok() } pub unsafe fn AddFileWithRanges(&self, remoteurl: P0, localname: P1, ranges: &[BG_FILE_RANGE]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFileWithRanges)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetFileACLFlags)(windows_core::Interface::as_raw(self), flags).ok() @@ -1424,10 +1424,10 @@ impl IBackgroundCopyJob5 { } pub unsafe fn AddFile(&self, remoteurl: P0, localname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddFile)(windows_core::Interface::as_raw(self), remoteurl.param().abi(), localname.param().abi()).ok() } pub unsafe fn EnumFiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1473,9 +1473,9 @@ impl IBackgroundCopyJob5 { } pub unsafe fn SetDisplayName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1483,9 +1483,9 @@ impl IBackgroundCopyJob5 { } pub unsafe fn SetDescription(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1507,9 +1507,9 @@ impl IBackgroundCopyJob5 { } pub unsafe fn SetNotifyInterface(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetNotifyInterface)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn GetNotifyInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1535,10 +1535,10 @@ impl IBackgroundCopyJob5 { } pub unsafe fn SetProxySettings(&self, proxyusage: BG_JOB_PROXY_USAGE, proxylist: P0, proxybypasslist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetProxySettings)(windows_core::Interface::as_raw(self), proxyusage, proxylist.into_param().abi(), proxybypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.GetProxySettings)(windows_core::Interface::as_raw(self), pproxyusage, pproxylist, pproxybypasslist).ok() @@ -1548,10 +1548,10 @@ impl IBackgroundCopyJob5 { } pub unsafe fn SetNotifyCmdLine(&self, program: P0, parameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.into_param().abi(), parameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetNotifyCmdLine)(windows_core::Interface::as_raw(self), program.param().abi(), parameters.param().abi()).ok() } pub unsafe fn GetNotifyCmdLine(&self, pprogram: *mut windows_core::PWSTR, pparameters: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.GetNotifyCmdLine)(windows_core::Interface::as_raw(self), pprogram, pparameters).ok() @@ -1564,9 +1564,9 @@ impl IBackgroundCopyJob5 { } pub unsafe fn SetReplyFileName(&self, replyfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetReplyFileName)(windows_core::Interface::as_raw(self), replyfilename.param().abi()).ok() } pub unsafe fn GetReplyFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1580,17 +1580,17 @@ impl IBackgroundCopyJob5 { } pub unsafe fn ReplaceRemotePrefix(&self, oldprefix: P0, newprefix: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ReplaceRemotePrefix)(windows_core::Interface::as_raw(self), oldprefix.into_param().abi(), newprefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ReplaceRemotePrefix)(windows_core::Interface::as_raw(self), oldprefix.param().abi(), newprefix.param().abi()).ok() } pub unsafe fn AddFileWithRanges(&self, remoteurl: P0, localname: P1, ranges: &[BG_FILE_RANGE]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFileWithRanges)(windows_core::Interface::as_raw(self), remoteurl.into_param().abi(), localname.into_param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetFileACLFlags)(windows_core::Interface::as_raw(self), flags).ok() @@ -1640,16 +1640,16 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions, windows_c impl IBackgroundCopyJobHttpOptions { pub unsafe fn SetClientCertificateByID(&self, storelocation: BG_CERT_STORE_LOCATION, storename: P0, pcerthashblob: &[u8; 20]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificateByID)(windows_core::Interface::as_raw(self), storelocation, storename.into_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: P0, subjectname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificateByName)(windows_core::Interface::as_raw(self), storelocation, storename.into_param().abi(), subjectname.into_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() @@ -1659,9 +1659,9 @@ impl IBackgroundCopyJobHttpOptions { } pub unsafe fn SetCustomHeaders(&self, requestheaders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCustomHeaders)(windows_core::Interface::as_raw(self), requestheaders.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCustomHeaders)(windows_core::Interface::as_raw(self), requestheaders.param().abi()).ok() } pub unsafe fn GetCustomHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1692,16 +1692,16 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions2, windows_ impl IBackgroundCopyJobHttpOptions2 { pub unsafe fn SetClientCertificateByID(&self, storelocation: BG_CERT_STORE_LOCATION, storename: P0, pcerthashblob: &[u8; 20]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClientCertificateByID)(windows_core::Interface::as_raw(self), storelocation, storename.into_param().abi(), core::mem::transmute(pcerthashblob.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.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: P0, subjectname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClientCertificateByName)(windows_core::Interface::as_raw(self), storelocation, storename.into_param().abi(), subjectname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.RemoveClientCertificate)(windows_core::Interface::as_raw(self)).ok() @@ -1711,9 +1711,9 @@ impl IBackgroundCopyJobHttpOptions2 { } pub unsafe fn SetCustomHeaders(&self, requestheaders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCustomHeaders)(windows_core::Interface::as_raw(self), requestheaders.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCustomHeaders)(windows_core::Interface::as_raw(self), requestheaders.param().abi()).ok() } pub unsafe fn GetCustomHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1728,9 +1728,9 @@ impl IBackgroundCopyJobHttpOptions2 { } pub unsafe fn SetHttpMethod(&self, method: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHttpMethod)(windows_core::Interface::as_raw(self), method.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHttpMethod)(windows_core::Interface::as_raw(self), method.param().abi()).ok() } pub unsafe fn GetHttpMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1748,16 +1748,16 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions3, windows_ impl IBackgroundCopyJobHttpOptions3 { pub unsafe fn SetClientCertificateByID(&self, storelocation: BG_CERT_STORE_LOCATION, storename: P0, pcerthashblob: &[u8; 20]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetClientCertificateByID)(windows_core::Interface::as_raw(self), storelocation, storename.into_param().abi(), core::mem::transmute(pcerthashblob.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0, subjectname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetClientCertificateByName)(windows_core::Interface::as_raw(self), storelocation, storename.into_param().abi(), subjectname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.RemoveClientCertificate)(windows_core::Interface::as_raw(self)).ok() @@ -1767,9 +1767,9 @@ impl IBackgroundCopyJobHttpOptions3 { } pub unsafe fn SetCustomHeaders(&self, requestheaders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCustomHeaders)(windows_core::Interface::as_raw(self), requestheaders.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCustomHeaders)(windows_core::Interface::as_raw(self), requestheaders.param().abi()).ok() } pub unsafe fn GetCustomHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1784,9 +1784,9 @@ impl IBackgroundCopyJobHttpOptions3 { } pub unsafe fn SetHttpMethod(&self, method: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHttpMethod)(windows_core::Interface::as_raw(self), method.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHttpMethod)(windows_core::Interface::as_raw(self), method.param().abi()).ok() } pub unsafe fn GetHttpMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1794,9 +1794,9 @@ impl IBackgroundCopyJobHttpOptions3 { } pub unsafe fn SetServerCertificateValidationInterface(&self, certvalidationcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerCertificateValidationInterface)(windows_core::Interface::as_raw(self), certvalidationcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerCertificateValidationInterface)(windows_core::Interface::as_raw(self), certvalidationcallback.param().abi()).ok() } pub unsafe fn MakeCustomHeadersWriteOnly(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MakeCustomHeadersWriteOnly)(windows_core::Interface::as_raw(self)).ok() @@ -1813,9 +1813,9 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyManager, windows_core::IU impl IBackgroundCopyManager { pub unsafe fn CreateJob(&self, displayname: P0, r#type: BG_JOB_TYPE, pjobid: *mut windows_core::GUID, ppjob: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateJob)(windows_core::Interface::as_raw(self), displayname.into_param().abi(), r#type, pjobid, core::mem::transmute(ppjob)).ok() + (windows_core::Interface::vtable(self).CreateJob)(windows_core::Interface::as_raw(self), displayname.param().abi(), r#type, pjobid, core::mem::transmute(ppjob)).ok() } pub unsafe fn GetJob(&self, jobid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1866,10 +1866,10 @@ windows_core::imp::interface_hierarchy!(IBackgroundCopyServerCertificateValidati impl IBackgroundCopyServerCertificateValidationCallback { pub unsafe fn ValidateServerCertificate(&self, job: P0, file: P1, certdata: &[u8], certencodingtype: u32, certstoredata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidateServerCertificate)(windows_core::Interface::as_raw(self), job.into_param().abi(), file.into_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() + (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)] @@ -1940,9 +1940,9 @@ impl IBitsPeerCacheAdministration { } pub unsafe fn DeleteUrl(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteUrl)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteUrl)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn EnumPeers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 d6a3b9088e..c5335ce14b 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -1,295 +1,295 @@ #[inline] pub unsafe fn AddClusterGroupDependency(hdependentgroup: P0, hprovidergroup: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam
, + P0: windows_core::Param
, + P1: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupDependency(hdependentgroup : HGROUP, hprovidergroup : HGROUP) -> u32); - AddClusterGroupDependency(hdependentgroup.into_param().abi(), hprovidergroup.into_param().abi()) + AddClusterGroupDependency(hdependentgroup.param().abi(), hprovidergroup.param().abi()) } #[inline] pub unsafe fn AddClusterGroupDependencyEx(hdependentgroup: P0, hprovidergroup: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam
, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param
, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupDependencyEx(hdependentgroup : HGROUP, hprovidergroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterGroupDependencyEx(hdependentgroup.into_param().abi(), hprovidergroup.into_param().abi(), lpszreason.into_param().abi()) + AddClusterGroupDependencyEx(hdependentgroup.param().abi(), hprovidergroup.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterGroupSetDependency(hdependentgroupset: P0, hprovidergroupset: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupSetDependency(hdependentgroupset : HGROUPSET, hprovidergroupset : HGROUPSET) -> u32); - AddClusterGroupSetDependency(hdependentgroupset.into_param().abi(), hprovidergroupset.into_param().abi()) + AddClusterGroupSetDependency(hdependentgroupset.param().abi(), hprovidergroupset.param().abi()) } #[inline] pub unsafe fn AddClusterGroupSetDependencyEx(hdependentgroupset: P0, hprovidergroupset: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupSetDependencyEx(hdependentgroupset : HGROUPSET, hprovidergroupset : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterGroupSetDependencyEx(hdependentgroupset.into_param().abi(), hprovidergroupset.into_param().abi(), lpszreason.into_param().abi()) + AddClusterGroupSetDependencyEx(hdependentgroupset.param().abi(), hprovidergroupset.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterGroupToGroupSetDependency(hdependentgroup: P0, hprovidergroupset: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupToGroupSetDependency(hdependentgroup : HGROUP, hprovidergroupset : HGROUPSET) -> u32); - AddClusterGroupToGroupSetDependency(hdependentgroup.into_param().abi(), hprovidergroupset.into_param().abi()) + AddClusterGroupToGroupSetDependency(hdependentgroup.param().abi(), hprovidergroupset.param().abi()) } #[inline] pub unsafe fn AddClusterGroupToGroupSetDependencyEx(hdependentgroup: P0, hprovidergroupset: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterGroupToGroupSetDependencyEx(hdependentgroup : HGROUP, hprovidergroupset : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterGroupToGroupSetDependencyEx(hdependentgroup.into_param().abi(), hprovidergroupset.into_param().abi(), lpszreason.into_param().abi()) + AddClusterGroupToGroupSetDependencyEx(hdependentgroup.param().abi(), hprovidergroupset.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterNode(hcluster: P0, lpsznodename: P1, pfnprogresscallback: PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg: Option<*const core::ffi::c_void>) -> HNODE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpsznodename.into_param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) + AddClusterNode(hcluster.param().abi(), lpsznodename.param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AddClusterNodeEx(hcluster: P0, lpsznodename: P1, dwflags: u32, pfnprogresscallback: PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg: Option<*const core::ffi::c_void>) -> HNODE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpsznodename.into_param().abi(), dwflags, pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) + AddClusterNodeEx(hcluster.param().abi(), lpsznodename.param().abi(), dwflags, pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AddClusterResourceDependency(hresource: P0, hdependson: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceDependency(hresource : HRESOURCE, hdependson : HRESOURCE) -> u32); - AddClusterResourceDependency(hresource.into_param().abi(), hdependson.into_param().abi()) + AddClusterResourceDependency(hresource.param().abi(), hdependson.param().abi()) } #[inline] pub unsafe fn AddClusterResourceDependencyEx(hresource: P0, hdependson: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceDependencyEx(hresource : HRESOURCE, hdependson : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterResourceDependencyEx(hresource.into_param().abi(), hdependson.into_param().abi(), lpszreason.into_param().abi()) + AddClusterResourceDependencyEx(hresource.param().abi(), hdependson.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterResourceNode(hresource: P0, hnode: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceNode(hresource : HRESOURCE, hnode : HNODE) -> u32); - AddClusterResourceNode(hresource.into_param().abi(), hnode.into_param().abi()) + AddClusterResourceNode(hresource.param().abi(), hnode.param().abi()) } #[inline] pub unsafe fn AddClusterResourceNodeEx(hresource: P0, hnode: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddClusterResourceNodeEx(hresource : HRESOURCE, hnode : HNODE, lpszreason : windows_core::PCWSTR) -> u32); - AddClusterResourceNodeEx(hresource.into_param().abi(), hnode.into_param().abi(), lpszreason.into_param().abi()) + AddClusterResourceNodeEx(hresource.param().abi(), hnode.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn AddClusterStorageNode(hcluster: P0, lpsznodename: P1, pfnprogresscallback: PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg: Option<*const core::ffi::c_void>, lpszclusterstoragenodedescription: P2, lpszclusterstoragenodelocation: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hcluster.into_param().abi(), lpsznodename.into_param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null())), lpszclusterstoragenodedescription.into_param().abi(), lpszclusterstoragenodelocation.into_param().abi()) + AddClusterStorageNode(hcluster.param().abi(), lpsznodename.param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null())), lpszclusterstoragenodedescription.param().abi(), lpszclusterstoragenodelocation.param().abi()) } #[inline] pub unsafe fn AddCrossClusterGroupSetDependency(hdependentgroupset: P0, lpremoteclustername: P1, lpremotegroupsetname: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddCrossClusterGroupSetDependency(hdependentgroupset : HGROUPSET, lpremoteclustername : windows_core::PCWSTR, lpremotegroupsetname : windows_core::PCWSTR) -> u32); - AddCrossClusterGroupSetDependency(hdependentgroupset.into_param().abi(), lpremoteclustername.into_param().abi(), lpremotegroupsetname.into_param().abi()) + AddCrossClusterGroupSetDependency(hdependentgroupset.param().abi(), lpremoteclustername.param().abi(), lpremotegroupsetname.param().abi()) } #[inline] pub unsafe fn AddResourceToClusterSharedVolumes(hresource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn AddResourceToClusterSharedVolumes(hresource : HRESOURCE) -> u32); - AddResourceToClusterSharedVolumes(hresource.into_param().abi()) + AddResourceToClusterSharedVolumes(hresource.param().abi()) } #[inline] pub unsafe fn BackupClusterDatabase(hcluster: P0, lpszpathname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn BackupClusterDatabase(hcluster : HCLUSTER, lpszpathname : windows_core::PCWSTR) -> u32); - BackupClusterDatabase(hcluster.into_param().abi(), lpszpathname.into_param().abi()) + BackupClusterDatabase(hcluster.param().abi(), lpszpathname.param().abi()) } #[inline] pub unsafe fn CanResourceBeDependent(hresource: P0, hresourcedependent: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CanResourceBeDependent(hresource : HRESOURCE, hresourcedependent : HRESOURCE) -> super::super::Foundation:: BOOL); - CanResourceBeDependent(hresource.into_param().abi(), hresourcedependent.into_param().abi()) + CanResourceBeDependent(hresource.param().abi(), hresourcedependent.param().abi()) } #[inline] pub unsafe fn CancelClusterGroupOperation(hgroup: P0, dwcancelflags_reserved: u32) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn CancelClusterGroupOperation(hgroup : HGROUP, dwcancelflags_reserved : u32) -> u32); - CancelClusterGroupOperation(hgroup.into_param().abi(), dwcancelflags_reserved) + CancelClusterGroupOperation(hgroup.param().abi(), dwcancelflags_reserved) } #[inline] pub unsafe fn ChangeClusterResourceGroup(hresource: P0, hgroup: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ChangeClusterResourceGroup(hresource : HRESOURCE, hgroup : HGROUP) -> u32); - ChangeClusterResourceGroup(hresource.into_param().abi(), hgroup.into_param().abi()) + ChangeClusterResourceGroup(hresource.param().abi(), hgroup.param().abi()) } #[inline] pub unsafe fn ChangeClusterResourceGroupEx(hresource: P0, hgroup: P1, flags: u64) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ChangeClusterResourceGroupEx(hresource : HRESOURCE, hgroup : HGROUP, flags : u64) -> u32); - ChangeClusterResourceGroupEx(hresource.into_param().abi(), hgroup.into_param().abi(), flags) + ChangeClusterResourceGroupEx(hresource.param().abi(), hgroup.param().abi(), flags) } #[inline] pub unsafe fn ChangeClusterResourceGroupEx2(hresource: P0, hgroup: P1, flags: u64, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param
, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ChangeClusterResourceGroupEx2(hresource : HRESOURCE, hgroup : HGROUP, flags : u64, lpszreason : windows_core::PCWSTR) -> u32); - ChangeClusterResourceGroupEx2(hresource.into_param().abi(), hgroup.into_param().abi(), flags, lpszreason.into_param().abi()) + ChangeClusterResourceGroupEx2(hresource.param().abi(), hgroup.param().abi(), flags, lpszreason.param().abi()) } #[inline] pub unsafe fn CloseCluster(hcluster: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CloseCluster(hcluster : HCLUSTER) -> super::super::Foundation:: BOOL); - CloseCluster(hcluster.into_param().abi()) + CloseCluster(hcluster.param().abi()) } #[inline] pub unsafe fn CloseClusterCryptProvider(hcluscryptprovider: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn CloseClusterCryptProvider(hcluscryptprovider : HCLUSCRYPTPROVIDER) -> u32); - CloseClusterCryptProvider(hcluscryptprovider.into_param().abi()) + CloseClusterCryptProvider(hcluscryptprovider.param().abi()) } #[inline] pub unsafe fn CloseClusterGroup(hgroup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroup(hgroup : HGROUP) -> super::super::Foundation:: BOOL); - CloseClusterGroup(hgroup.into_param().abi()).ok() + CloseClusterGroup(hgroup.param().abi()).ok() } #[inline] pub unsafe fn CloseClusterGroupSet(hgroupset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroupSet(hgroupset : HGROUPSET) -> super::super::Foundation:: BOOL); - CloseClusterGroupSet(hgroupset.into_param().abi()).ok() + CloseClusterGroupSet(hgroupset.param().abi()).ok() } #[inline] pub unsafe fn CloseClusterNetInterface(hnetinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetInterface(hnetinterface : HNETINTERFACE) -> super::super::Foundation:: BOOL); - CloseClusterNetInterface(hnetinterface.into_param().abi()).ok() + CloseClusterNetInterface(hnetinterface.param().abi()).ok() } #[inline] pub unsafe fn CloseClusterNetwork(hnetwork: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetwork(hnetwork : HNETWORK) -> super::super::Foundation:: BOOL); - CloseClusterNetwork(hnetwork.into_param().abi()).ok() + CloseClusterNetwork(hnetwork.param().abi()).ok() } #[inline] pub unsafe fn CloseClusterNode(hnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNode(hnode : HNODE) -> super::super::Foundation:: BOOL); - CloseClusterNode(hnode.into_param().abi()).ok() + CloseClusterNode(hnode.param().abi()).ok() } #[inline] pub unsafe fn CloseClusterNotifyPort(hchange: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CloseClusterNotifyPort(hchange : HCHANGE) -> super::super::Foundation:: BOOL); - CloseClusterNotifyPort(hchange.into_param().abi()) + CloseClusterNotifyPort(hchange.param().abi()) } #[inline] pub unsafe fn CloseClusterResource(hresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CloseClusterResource(hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - CloseClusterResource(hresource.into_param().abi()).ok() + CloseClusterResource(hresource.param().abi()).ok() } #[inline] pub unsafe fn ClusAddClusterHealthFault(hcluster: P0, failure: *const CLUSTER_HEALTH_FAULT, param2: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusAddClusterHealthFault(hcluster : HCLUSTER, failure : *const CLUSTER_HEALTH_FAULT, param2 : u32) -> u32); - ClusAddClusterHealthFault(hcluster.into_param().abi(), failure, param2) + ClusAddClusterHealthFault(hcluster.param().abi(), failure, param2) } #[inline] pub unsafe fn ClusGetClusterHealthFaults(hcluster: P0, objects: *mut CLUSTER_HEALTH_FAULT_ARRAY, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusGetClusterHealthFaults(hcluster : HCLUSTER, objects : *mut CLUSTER_HEALTH_FAULT_ARRAY, flags : u32) -> u32); - ClusGetClusterHealthFaults(hcluster.into_param().abi(), objects, flags) + ClusGetClusterHealthFaults(hcluster.param().abi(), objects, flags) } #[inline] pub unsafe fn ClusRemoveClusterHealthFault(hcluster: P0, id: P1, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusRemoveClusterHealthFault(hcluster : HCLUSTER, id : windows_core::PCWSTR, flags : u32) -> u32); - ClusRemoveClusterHealthFault(hcluster.into_param().abi(), id.into_param().abi(), flags) + ClusRemoveClusterHealthFault(hcluster.param().abi(), id.param().abi(), flags) } #[inline] pub unsafe fn ClusWorkerCheckTerminate(lpworker: *mut CLUS_WORKER) -> super::super::Foundation::BOOL { @@ -309,18 +309,18 @@ pub unsafe fn ClusWorkerTerminate(lpworker: *const CLUS_WORKER) { #[inline] pub unsafe fn ClusWorkerTerminateEx(clusworker: *mut CLUS_WORKER, timeoutinmilliseconds: u32, waitonly: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusWorkerTerminateEx(clusworker : *mut CLUS_WORKER, timeoutinmilliseconds : u32, waitonly : super::super::Foundation:: BOOL) -> u32); - ClusWorkerTerminateEx(clusworker, timeoutinmilliseconds, waitonly.into_param().abi()) + ClusWorkerTerminateEx(clusworker, timeoutinmilliseconds, waitonly.param().abi()) } #[inline] pub unsafe fn ClusWorkersTerminate(clusworkers: &mut [*mut CLUS_WORKER], timeoutinmilliseconds: u32, waitonly: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(), timeoutinmilliseconds, waitonly.into_param().abi()) + ClusWorkersTerminate(core::mem::transmute(clusworkers.as_ptr()), clusworkers.len().try_into().unwrap(), timeoutinmilliseconds, waitonly.param().abi()) } #[inline] pub unsafe fn ClusapiSetReasonHandler(lphandler: *const CLUSAPI_REASON_HANDLER) -> *mut CLUSAPI_REASON_HANDLER { @@ -330,1069 +330,1069 @@ pub unsafe fn ClusapiSetReasonHandler(lphandler: *const CLUSAPI_REASON_HANDLER) #[inline] pub unsafe fn ClusterAddGroupToAffinityRule(hcluster: P0, rulename: P1, hgroup: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ClusterAddGroupToAffinityRule(hcluster : HCLUSTER, rulename : windows_core::PCWSTR, hgroup : HGROUP) -> u32); - ClusterAddGroupToAffinityRule(hcluster.into_param().abi(), rulename.into_param().abi(), hgroup.into_param().abi()) + ClusterAddGroupToAffinityRule(hcluster.param().abi(), rulename.param().abi(), hgroup.param().abi()) } #[inline] pub unsafe fn ClusterAddGroupToGroupSet(hgroupset: P0, hgroup: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ClusterAddGroupToGroupSet(hgroupset : HGROUPSET, hgroup : HGROUP) -> u32); - ClusterAddGroupToGroupSet(hgroupset.into_param().abi(), hgroup.into_param().abi()) + ClusterAddGroupToGroupSet(hgroupset.param().abi(), hgroup.param().abi()) } #[inline] pub unsafe fn ClusterAddGroupToGroupSetWithDomains(hgroupset: P0, hgroup: P1, faultdomain: u32, updatedomain: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ClusterAddGroupToGroupSetWithDomains(hgroupset : HGROUPSET, hgroup : HGROUP, faultdomain : u32, updatedomain : u32) -> u32); - ClusterAddGroupToGroupSetWithDomains(hgroupset.into_param().abi(), hgroup.into_param().abi(), faultdomain, updatedomain) + ClusterAddGroupToGroupSetWithDomains(hgroupset.param().abi(), hgroup.param().abi(), faultdomain, updatedomain) } #[inline] pub unsafe fn ClusterAddGroupToGroupSetWithDomainsEx(hgroupset: P0, hgroup: P1, faultdomain: u32, updatedomain: u32, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param
, + P2: 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(hgroupset.into_param().abi(), hgroup.into_param().abi(), faultdomain, updatedomain, lpszreason.into_param().abi()) + ClusterAddGroupToGroupSetWithDomainsEx(hgroupset.param().abi(), hgroup.param().abi(), faultdomain, updatedomain, lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterAffinityRuleControl(hcluster: P0, affinityrulename: P1, hhostnode: P2, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hcluster.into_param().abi(), affinityrulename.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterAffinityRuleControl(hcluster.param().abi(), affinityrulename.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterClearBackupStateForSharedVolume(lpszvolumepathname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusterClearBackupStateForSharedVolume(lpszvolumepathname : windows_core::PCWSTR) -> u32); - ClusterClearBackupStateForSharedVolume(lpszvolumepathname.into_param().abi()) + ClusterClearBackupStateForSharedVolume(lpszvolumepathname.param().abi()) } #[inline] pub unsafe fn ClusterCloseEnum(henum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterCloseEnum(henum : HCLUSENUM) -> u32); - ClusterCloseEnum(henum.into_param().abi()) + ClusterCloseEnum(henum.param().abi()) } #[inline] pub unsafe fn ClusterCloseEnumEx(hclusterenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterCloseEnumEx(hclusterenum : HCLUSENUMEX) -> u32); - ClusterCloseEnumEx(hclusterenum.into_param().abi()) + ClusterCloseEnumEx(hclusterenum.param().abi()) } #[inline] pub unsafe fn ClusterControl(hcluster: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hcluster.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterControl(hcluster.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterControlEx(hcluster: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hcluster.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterControlEx(hcluster.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterCreateAffinityRule(hcluster: P0, rulename: P1, ruletype: CLUS_AFFINITY_RULE_TYPE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), rulename.into_param().abi(), ruletype) + ClusterCreateAffinityRule(hcluster.param().abi(), rulename.param().abi(), ruletype) } #[inline] pub unsafe fn ClusterDecrypt(hcluscryptprovider: P0, pcryptinput: *const u8, cbcryptinput: u32, ppcryptoutput: *mut *mut u8, pcbcryptoutput: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusterDecrypt(hcluscryptprovider : HCLUSCRYPTPROVIDER, pcryptinput : *const u8, cbcryptinput : u32, ppcryptoutput : *mut *mut u8, pcbcryptoutput : *mut u32) -> u32); - ClusterDecrypt(hcluscryptprovider.into_param().abi(), pcryptinput, cbcryptinput, ppcryptoutput, pcbcryptoutput) + ClusterDecrypt(hcluscryptprovider.param().abi(), pcryptinput, cbcryptinput, ppcryptoutput, pcbcryptoutput) } #[inline] pub unsafe fn ClusterEncrypt(hcluscryptprovider: P0, pdata: &[u8], ppdata: *mut *mut u8, pcbdata: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusterEncrypt(hcluscryptprovider : HCLUSCRYPTPROVIDER, pdata : *const u8, cbdata : u32, ppdata : *mut *mut u8, pcbdata : *mut u32) -> u32); - ClusterEncrypt(hcluscryptprovider.into_param().abi(), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), ppdata, pcbdata) + ClusterEncrypt(hcluscryptprovider.param().abi(), core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), ppdata, pcbdata) } #[inline] pub unsafe fn ClusterEnum(henum: P0, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterEnum(henum : HCLUSENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterEnum(henum.into_param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) + ClusterEnum(henum.param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) } #[inline] pub unsafe fn ClusterEnumEx(hclusterenum: P0, dwindex: u32, pitem: *mut CLUSTER_ENUM_ITEM, cbitem: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterEnumEx(hclusterenum : HCLUSENUMEX, dwindex : u32, pitem : *mut CLUSTER_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterEnumEx(hclusterenum.into_param().abi(), dwindex, pitem, cbitem) + ClusterEnumEx(hclusterenum.param().abi(), dwindex, pitem, cbitem) } #[inline] pub unsafe fn ClusterGetEnumCount(henum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGetEnumCount(henum : HCLUSENUM) -> u32); - ClusterGetEnumCount(henum.into_param().abi()) + ClusterGetEnumCount(henum.param().abi()) } #[inline] pub unsafe fn ClusterGetEnumCountEx(hclusterenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGetEnumCountEx(hclusterenum : HCLUSENUMEX) -> u32); - ClusterGetEnumCountEx(hclusterenum.into_param().abi()) + ClusterGetEnumCountEx(hclusterenum.param().abi()) } #[inline] pub unsafe fn ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint: P0, lpszvolumename: windows_core::PWSTR, cchbufferlength: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(lpszvolumename), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(lpszvolumepathname), cchbufferlength).ok() + ClusterGetVolumePathName(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname), cchbufferlength).ok() } #[inline] pub unsafe fn ClusterGroupCloseEnum(hgroupenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupCloseEnum(hgroupenum : HGROUPENUM) -> u32); - ClusterGroupCloseEnum(hgroupenum.into_param().abi()) + ClusterGroupCloseEnum(hgroupenum.param().abi()) } #[inline] pub unsafe fn ClusterGroupCloseEnumEx(hgroupenumex: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupCloseEnumEx(hgroupenumex : HGROUPENUMEX) -> u32); - ClusterGroupCloseEnumEx(hgroupenumex.into_param().abi()) + ClusterGroupCloseEnumEx(hgroupenumex.param().abi()) } #[inline] pub unsafe fn ClusterGroupControl(hgroup: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { 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(hgroup.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterGroupControl(hgroup.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterGroupControlEx(hgroup: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: 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(hgroup.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterGroupControlEx(hgroup.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterGroupEnum(hgroupenum: P0, dwindex: u32, lpdwtype: *mut u32, lpszresourcename: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupEnum(hgroupenum : HGROUPENUM, dwindex : u32, lpdwtype : *mut u32, lpszresourcename : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterGroupEnum(hgroupenum.into_param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszresourcename), lpcchname) + ClusterGroupEnum(hgroupenum.param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszresourcename), lpcchname) } #[inline] pub unsafe fn ClusterGroupEnumEx(hgroupenumex: P0, dwindex: u32, pitem: *mut CLUSTER_GROUP_ENUM_ITEM, cbitem: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupEnumEx(hgroupenumex : HGROUPENUMEX, dwindex : u32, pitem : *mut CLUSTER_GROUP_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterGroupEnumEx(hgroupenumex.into_param().abi(), dwindex, pitem, cbitem) + ClusterGroupEnumEx(hgroupenumex.param().abi(), dwindex, pitem, cbitem) } #[inline] pub unsafe fn ClusterGroupGetEnumCount(hgroupenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupGetEnumCount(hgroupenum : HGROUPENUM) -> u32); - ClusterGroupGetEnumCount(hgroupenum.into_param().abi()) + ClusterGroupGetEnumCount(hgroupenum.param().abi()) } #[inline] pub unsafe fn ClusterGroupGetEnumCountEx(hgroupenumex: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupGetEnumCountEx(hgroupenumex : HGROUPENUMEX) -> u32); - ClusterGroupGetEnumCountEx(hgroupenumex.into_param().abi()) + ClusterGroupGetEnumCountEx(hgroupenumex.param().abi()) } #[inline] pub unsafe fn ClusterGroupOpenEnum(hgroup: P0, dwtype: u32) -> HGROUPENUM where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupOpenEnum(hgroup : HGROUP, dwtype : u32) -> HGROUPENUM); - ClusterGroupOpenEnum(hgroup.into_param().abi(), dwtype) + ClusterGroupOpenEnum(hgroup.param().abi(), dwtype) } #[inline] pub unsafe fn ClusterGroupOpenEnumEx(hcluster: P0, lpszproperties: P1, cbproperties: u32, lpszroproperties: P2, cbroproperties: u32, dwflags: u32) -> HGROUPENUMEX where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hcluster.into_param().abi(), lpszproperties.into_param().abi(), cbproperties, lpszroproperties.into_param().abi(), cbroproperties, dwflags) + ClusterGroupOpenEnumEx(hcluster.param().abi(), lpszproperties.param().abi(), cbproperties, lpszroproperties.param().abi(), cbroproperties, dwflags) } #[inline] pub unsafe fn ClusterGroupSetCloseEnum(hgroupsetenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetCloseEnum(hgroupsetenum : HGROUPSETENUM) -> u32); - ClusterGroupSetCloseEnum(hgroupsetenum.into_param().abi()) + ClusterGroupSetCloseEnum(hgroupsetenum.param().abi()) } #[inline] pub unsafe fn ClusterGroupSetControl(hgroupset: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hgroupset.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterGroupSetControl(hgroupset.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterGroupSetControlEx(hgroupset: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hgroupset.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterGroupSetControlEx(hgroupset.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterGroupSetEnum(hgroupsetenum: P0, dwindex: u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetEnum(hgroupsetenum : HGROUPSETENUM, dwindex : u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterGroupSetEnum(hgroupsetenum.into_param().abi(), dwindex, core::mem::transmute(lpszname), lpcchname) + ClusterGroupSetEnum(hgroupsetenum.param().abi(), dwindex, core::mem::transmute(lpszname), lpcchname) } #[inline] pub unsafe fn ClusterGroupSetGetEnumCount(hgroupsetenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetGetEnumCount(hgroupsetenum : HGROUPSETENUM) -> u32); - ClusterGroupSetGetEnumCount(hgroupsetenum.into_param().abi()) + ClusterGroupSetGetEnumCount(hgroupsetenum.param().abi()) } #[inline] pub unsafe fn ClusterGroupSetOpenEnum(hcluster: P0) -> HGROUPSETENUM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterGroupSetOpenEnum(hcluster : HCLUSTER) -> HGROUPSETENUM); - ClusterGroupSetOpenEnum(hcluster.into_param().abi()) + ClusterGroupSetOpenEnum(hcluster.param().abi()) } #[inline] pub unsafe fn ClusterIsPathOnSharedVolume(lpszpathname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusterIsPathOnSharedVolume(lpszpathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ClusterIsPathOnSharedVolume(lpszpathname.into_param().abi()) + ClusterIsPathOnSharedVolume(lpszpathname.param().abi()) } #[inline] pub unsafe fn ClusterNetInterfaceCloseEnum(hnetinterfaceenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceCloseEnum(hnetinterfaceenum : HNETINTERFACEENUM) -> u32); - ClusterNetInterfaceCloseEnum(hnetinterfaceenum.into_param().abi()) + ClusterNetInterfaceCloseEnum(hnetinterfaceenum.param().abi()) } #[inline] pub unsafe fn ClusterNetInterfaceControl(hnetinterface: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hnetinterface.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterNetInterfaceControl(hnetinterface.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterNetInterfaceControlEx(hnetinterface: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hnetinterface.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterNetInterfaceControlEx(hnetinterface.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterNetInterfaceEnum(hnetinterfaceenum: P0, dwindex: u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceEnum(hnetinterfaceenum : HNETINTERFACEENUM, dwindex : u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterNetInterfaceEnum(hnetinterfaceenum.into_param().abi(), dwindex, core::mem::transmute(lpszname), lpcchname) + ClusterNetInterfaceEnum(hnetinterfaceenum.param().abi(), dwindex, core::mem::transmute(lpszname), lpcchname) } #[inline] pub unsafe fn ClusterNetInterfaceOpenEnum(hcluster: P0, lpsznodename: P1, lpsznetworkname: P2) -> HNETINTERFACEENUM where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetInterfaceOpenEnum(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR, lpsznetworkname : windows_core::PCWSTR) -> HNETINTERFACEENUM); - ClusterNetInterfaceOpenEnum(hcluster.into_param().abi(), lpsznodename.into_param().abi(), lpsznetworkname.into_param().abi()) + ClusterNetInterfaceOpenEnum(hcluster.param().abi(), lpsznodename.param().abi(), lpsznetworkname.param().abi()) } #[inline] pub unsafe fn ClusterNetworkCloseEnum(hnetworkenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkCloseEnum(hnetworkenum : HNETWORKENUM) -> u32); - ClusterNetworkCloseEnum(hnetworkenum.into_param().abi()) + ClusterNetworkCloseEnum(hnetworkenum.param().abi()) } #[inline] pub unsafe fn ClusterNetworkControl(hnetwork: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hnetwork.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterNetworkControl(hnetwork.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterNetworkControlEx(hnetwork: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hnetwork.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterNetworkControlEx(hnetwork.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterNetworkEnum(hnetworkenum: P0, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkEnum(hnetworkenum : HNETWORKENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterNetworkEnum(hnetworkenum.into_param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) + ClusterNetworkEnum(hnetworkenum.param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) } #[inline] pub unsafe fn ClusterNetworkGetEnumCount(hnetworkenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkGetEnumCount(hnetworkenum : HNETWORKENUM) -> u32); - ClusterNetworkGetEnumCount(hnetworkenum.into_param().abi()) + ClusterNetworkGetEnumCount(hnetworkenum.param().abi()) } #[inline] pub unsafe fn ClusterNetworkOpenEnum(hnetwork: P0, dwtype: u32) -> HNETWORKENUM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNetworkOpenEnum(hnetwork : HNETWORK, dwtype : u32) -> HNETWORKENUM); - ClusterNetworkOpenEnum(hnetwork.into_param().abi(), dwtype) + ClusterNetworkOpenEnum(hnetwork.param().abi(), dwtype) } #[inline] pub unsafe fn ClusterNodeCloseEnum(hnodeenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeCloseEnum(hnodeenum : HNODEENUM) -> u32); - ClusterNodeCloseEnum(hnodeenum.into_param().abi()) + ClusterNodeCloseEnum(hnodeenum.param().abi()) } #[inline] pub unsafe fn ClusterNodeCloseEnumEx(hnodeenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeCloseEnumEx(hnodeenum : HNODEENUMEX) -> u32); - ClusterNodeCloseEnumEx(hnodeenum.into_param().abi()) + ClusterNodeCloseEnumEx(hnodeenum.param().abi()) } #[inline] pub unsafe fn ClusterNodeControl(hnode: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hnode.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterNodeControl(hnode.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterNodeControlEx(hnode: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hnode.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterNodeControlEx(hnode.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterNodeEnum(hnodeenum: P0, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeEnum(hnodeenum : HNODEENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterNodeEnum(hnodeenum.into_param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) + ClusterNodeEnum(hnodeenum.param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) } #[inline] pub unsafe fn ClusterNodeEnumEx(hnodeenum: P0, dwindex: u32, pitem: *mut CLUSTER_ENUM_ITEM, cbitem: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeEnumEx(hnodeenum : HNODEENUMEX, dwindex : u32, pitem : *mut CLUSTER_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterNodeEnumEx(hnodeenum.into_param().abi(), dwindex, pitem, cbitem) + ClusterNodeEnumEx(hnodeenum.param().abi(), dwindex, pitem, cbitem) } #[inline] pub unsafe fn ClusterNodeGetEnumCount(hnodeenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeGetEnumCount(hnodeenum : HNODEENUM) -> u32); - ClusterNodeGetEnumCount(hnodeenum.into_param().abi()) + ClusterNodeGetEnumCount(hnodeenum.param().abi()) } #[inline] pub unsafe fn ClusterNodeGetEnumCountEx(hnodeenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeGetEnumCountEx(hnodeenum : HNODEENUMEX) -> u32); - ClusterNodeGetEnumCountEx(hnodeenum.into_param().abi()) + ClusterNodeGetEnumCountEx(hnodeenum.param().abi()) } #[inline] pub unsafe fn ClusterNodeOpenEnum(hnode: P0, dwtype: u32) -> HNODEENUM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeOpenEnum(hnode : HNODE, dwtype : u32) -> HNODEENUM); - ClusterNodeOpenEnum(hnode.into_param().abi(), dwtype) + ClusterNodeOpenEnum(hnode.param().abi(), dwtype) } #[inline] pub unsafe fn ClusterNodeOpenEnumEx(hnode: P0, dwtype: u32, poptions: Option<*const core::ffi::c_void>) -> HNODEENUMEX where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeOpenEnumEx(hnode : HNODE, dwtype : u32, poptions : *const core::ffi::c_void) -> HNODEENUMEX); - ClusterNodeOpenEnumEx(hnode.into_param().abi(), dwtype, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))) + ClusterNodeOpenEnumEx(hnode.param().abi(), dwtype, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ClusterNodeReplacement(hcluster: P0, lpsznodenamecurrent: P1, lpsznodenamenew: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterNodeReplacement(hcluster : HCLUSTER, lpsznodenamecurrent : windows_core::PCWSTR, lpsznodenamenew : windows_core::PCWSTR) -> u32); - ClusterNodeReplacement(hcluster.into_param().abi(), lpsznodenamecurrent.into_param().abi(), lpsznodenamenew.into_param().abi()) + ClusterNodeReplacement(hcluster.param().abi(), lpsznodenamecurrent.param().abi(), lpsznodenamenew.param().abi()) } #[inline] pub unsafe fn ClusterOpenEnum(hcluster: P0, dwtype: u32) -> HCLUSENUM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterOpenEnum(hcluster : HCLUSTER, dwtype : u32) -> HCLUSENUM); - ClusterOpenEnum(hcluster.into_param().abi(), dwtype) + ClusterOpenEnum(hcluster.param().abi(), dwtype) } #[inline] pub unsafe fn ClusterOpenEnumEx(hcluster: P0, dwtype: u32, poptions: Option<*const core::ffi::c_void>) -> HCLUSENUMEX where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterOpenEnumEx(hcluster : HCLUSTER, dwtype : u32, poptions : *const core::ffi::c_void) -> HCLUSENUMEX); - ClusterOpenEnumEx(hcluster.into_param().abi(), dwtype, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))) + ClusterOpenEnumEx(hcluster.param().abi(), dwtype, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ClusterPrepareSharedVolumeForBackup(lpszfilename: P0, lpszvolumepathname: windows_core::PWSTR, lpcchvolumepathname: *mut u32, lpszvolumename: windows_core::PWSTR, lpcchvolumename: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ClusterPrepareSharedVolumeForBackup(lpszfilename : windows_core::PCWSTR, lpszvolumepathname : windows_core::PWSTR, lpcchvolumepathname : *mut u32, lpszvolumename : windows_core::PWSTR, lpcchvolumename : *mut u32) -> u32); - ClusterPrepareSharedVolumeForBackup(lpszfilename.into_param().abi(), core::mem::transmute(lpszvolumepathname), lpcchvolumepathname, core::mem::transmute(lpszvolumename), lpcchvolumename) + ClusterPrepareSharedVolumeForBackup(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname), lpcchvolumepathname, core::mem::transmute(lpszvolumename), lpcchvolumename) } #[inline] pub unsafe fn ClusterRegBatchAddCommand(hregbatch: P0, dwcommand: CLUSTER_REG_COMMAND, wzname: P1, dwoptions: u32, lpdata: Option<*const core::ffi::c_void>, cbdata: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hregbatch.into_param().abi(), dwcommand, wzname.into_param().abi(), dwoptions, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata) + ClusterRegBatchAddCommand(hregbatch.param().abi(), dwcommand, wzname.param().abi(), dwoptions, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata) } #[inline] pub unsafe fn ClusterRegBatchCloseNotification(hbatchnotification: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegBatchCloseNotification(hbatchnotification : HREGBATCHNOTIFICATION) -> i32); - ClusterRegBatchCloseNotification(hbatchnotification.into_param().abi()) + ClusterRegBatchCloseNotification(hbatchnotification.param().abi()) } #[inline] pub unsafe fn ClusterRegBatchReadCommand(hbatchnotification: P0, pbatchcommand: *mut CLUSTER_BATCH_COMMAND) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegBatchReadCommand(hbatchnotification : HREGBATCHNOTIFICATION, pbatchcommand : *mut CLUSTER_BATCH_COMMAND) -> i32); - ClusterRegBatchReadCommand(hbatchnotification.into_param().abi(), pbatchcommand) + ClusterRegBatchReadCommand(hbatchnotification.param().abi(), pbatchcommand) } #[inline] pub unsafe fn ClusterRegCloseBatch(hregbatch: P0, bcommit: P1, failedcommandnumber: Option<*mut i32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatch(hregbatch : HREGBATCH, bcommit : super::super::Foundation:: BOOL, failedcommandnumber : *mut i32) -> i32); - ClusterRegCloseBatch(hregbatch.into_param().abi(), bcommit.into_param().abi(), core::mem::transmute(failedcommandnumber.unwrap_or(std::ptr::null_mut()))) + ClusterRegCloseBatch(hregbatch.param().abi(), bcommit.param().abi(), core::mem::transmute(failedcommandnumber.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterRegCloseBatchEx(hregbatch: P0, flags: u32, failedcommandnumber: Option<*mut i32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatchEx(hregbatch : HREGBATCH, flags : u32, failedcommandnumber : *mut i32) -> i32); - ClusterRegCloseBatchEx(hregbatch.into_param().abi(), flags, core::mem::transmute(failedcommandnumber.unwrap_or(std::ptr::null_mut()))) + ClusterRegCloseBatchEx(hregbatch.param().abi(), flags, core::mem::transmute(failedcommandnumber.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterRegCloseBatchNotifyPort(hbatchnotifyport: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatchNotifyPort(hbatchnotifyport : HREGBATCHPORT) -> i32); - ClusterRegCloseBatchNotifyPort(hbatchnotifyport.into_param().abi()) + ClusterRegCloseBatchNotifyPort(hbatchnotifyport.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegCloseKey(hkey: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseKey(hkey : super::super::System::Registry:: HKEY) -> i32); - ClusterRegCloseKey(hkey.into_param().abi()) + ClusterRegCloseKey(hkey.param().abi()) } #[inline] pub unsafe fn ClusterRegCloseReadBatch(hregreadbatch: P0, phregreadbatchreply: *mut HREGREADBATCHREPLY) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseReadBatch(hregreadbatch : HREGREADBATCH, phregreadbatchreply : *mut HREGREADBATCHREPLY) -> i32); - ClusterRegCloseReadBatch(hregreadbatch.into_param().abi(), phregreadbatchreply) + ClusterRegCloseReadBatch(hregreadbatch.param().abi(), phregreadbatchreply) } #[inline] pub unsafe fn ClusterRegCloseReadBatchEx(hregreadbatch: P0, flags: u32, phregreadbatchreply: *mut HREGREADBATCHREPLY) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseReadBatchEx(hregreadbatch : HREGREADBATCH, flags : u32, phregreadbatchreply : *mut HREGREADBATCHREPLY) -> i32); - ClusterRegCloseReadBatchEx(hregreadbatch.into_param().abi(), flags, phregreadbatchreply) + ClusterRegCloseReadBatchEx(hregreadbatch.param().abi(), flags, phregreadbatchreply) } #[inline] pub unsafe fn ClusterRegCloseReadBatchReply(hregreadbatchreply: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseReadBatchReply(hregreadbatchreply : HREGREADBATCHREPLY) -> i32); - ClusterRegCloseReadBatchReply(hregreadbatchreply.into_param().abi()) + ClusterRegCloseReadBatchReply(hregreadbatchreply.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegCreateBatch(hkey: P0, phregbatch: *mut HREGBATCH) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCreateBatch(hkey : super::super::System::Registry:: HKEY, phregbatch : *mut HREGBATCH) -> i32); - ClusterRegCreateBatch(hkey.into_param().abi(), phregbatch) + ClusterRegCreateBatch(hkey.param().abi(), phregbatch) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegCreateBatchNotifyPort(hkey: P0, phbatchnotifyport: *mut HREGBATCHPORT) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCreateBatchNotifyPort(hkey : super::super::System::Registry:: HKEY, phbatchnotifyport : *mut HREGBATCHPORT) -> i32); - ClusterRegCreateBatchNotifyPort(hkey.into_param().abi(), phbatchnotifyport) + ClusterRegCreateBatchNotifyPort(hkey.param().abi(), phbatchnotifyport) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ClusterRegCreateKey(hkey: P0, lpszsubkey: P1, dwoptions: u32, samdesired: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, phkresult: *mut super::super::System::Registry::HKEY, lpdwdisposition: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpszsubkey.into_param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut()))) + ClusterRegCreateKey(hkey.param().abi(), lpszsubkey.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ClusterRegCreateKeyEx(hkey: P0, lpsubkey: P1, dwoptions: u32, samdesired: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, phkresult: *mut super::super::System::Registry::HKEY, lpdwdisposition: Option<*mut u32>, lpszreason: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterRegCreateKeyEx(hkey.param().abi(), lpsubkey.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegCreateReadBatch(hkey: P0, phregreadbatch: *mut HREGREADBATCH) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegCreateReadBatch(hkey : super::super::System::Registry:: HKEY, phregreadbatch : *mut HREGREADBATCH) -> i32); - ClusterRegCreateReadBatch(hkey.into_param().abi(), phregreadbatch) + ClusterRegCreateReadBatch(hkey.param().abi(), phregreadbatch) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegDeleteKey(hkey: P0, lpszsubkey: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegDeleteKey(hkey : super::super::System::Registry:: HKEY, lpszsubkey : windows_core::PCWSTR) -> i32); - ClusterRegDeleteKey(hkey.into_param().abi(), lpszsubkey.into_param().abi()) + ClusterRegDeleteKey(hkey.param().abi(), lpszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegDeleteKeyEx(hkey: P0, lpsubkey: P1, lpszreason: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpszreason.into_param().abi()) + ClusterRegDeleteKeyEx(hkey.param().abi(), lpsubkey.param().abi(), lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegDeleteValue(hkey: P0, lpszvaluename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegDeleteValue(hkey : super::super::System::Registry:: HKEY, lpszvaluename : windows_core::PCWSTR) -> u32); - ClusterRegDeleteValue(hkey.into_param().abi(), lpszvaluename.into_param().abi()) + ClusterRegDeleteValue(hkey.param().abi(), lpszvaluename.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegDeleteValueEx(hkey: P0, lpszvaluename: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpszvaluename.into_param().abi(), lpszreason.into_param().abi()) + ClusterRegDeleteValueEx(hkey.param().abi(), lpszvaluename.param().abi(), lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegEnumKey(hkey: P0, dwindex: u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(lpszname), lpcchname, core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) + ClusterRegEnumKey(hkey.param().abi(), dwindex, core::mem::transmute(lpszname), lpcchname, core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegEnumValue(hkey: P0, dwindex: u32, lpszvaluename: windows_core::PWSTR, lpcchvaluename: *mut u32, lpdwtype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(lpszvaluename), lpcchvaluename, core::mem::transmute(lpdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + ClusterRegEnumValue(hkey.param().abi(), dwindex, core::mem::transmute(lpszvaluename), lpcchvaluename, core::mem::transmute(lpdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterRegGetBatchNotification(hbatchnotify: P0, phbatchnotification: *mut HREGBATCHNOTIFICATION) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegGetBatchNotification(hbatchnotify : HREGBATCHPORT, phbatchnotification : *mut HREGBATCHNOTIFICATION) -> i32); - ClusterRegGetBatchNotification(hbatchnotify.into_param().abi(), phbatchnotification) + ClusterRegGetBatchNotification(hbatchnotify.param().abi(), phbatchnotification) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ClusterRegGetKeySecurity(hkey: P0, requestedinformation: u32, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), requestedinformation, psecuritydescriptor, lpcbsecuritydescriptor) + ClusterRegGetKeySecurity(hkey.param().abi(), requestedinformation, psecuritydescriptor, lpcbsecuritydescriptor) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegOpenKey(hkey: P0, lpszsubkey: P1, samdesired: u32, phkresult: *mut super::super::System::Registry::HKEY) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpszsubkey.into_param().abi(), samdesired, phkresult) + ClusterRegOpenKey(hkey.param().abi(), lpszsubkey.param().abi(), samdesired, phkresult) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegQueryInfoKey(hkey: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), lpcsubkeys, lpcchmaxsubkeylen, lpcvalues, lpcchmaxvaluenamelen, lpcbmaxvaluelen, lpcbsecuritydescriptor, lpftlastwritetime) + ClusterRegQueryInfoKey(hkey.param().abi(), lpcsubkeys, lpcchmaxsubkeylen, lpcvalues, lpcchmaxvaluenamelen, lpcbmaxvaluelen, lpcbsecuritydescriptor, lpftlastwritetime) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegQueryValue(hkey: P0, lpszvaluename: P1, lpdwvaluetype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpszvaluename.into_param().abi(), core::mem::transmute(lpdwvaluetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + ClusterRegQueryValue(hkey.param().abi(), lpszvaluename.param().abi(), core::mem::transmute(lpdwvaluetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterRegReadBatchAddCommand(hregreadbatch: P0, wzsubkeyname: P1, wzvaluename: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegReadBatchAddCommand(hregreadbatch : HREGREADBATCH, wzsubkeyname : windows_core::PCWSTR, wzvaluename : windows_core::PCWSTR) -> i32); - ClusterRegReadBatchAddCommand(hregreadbatch.into_param().abi(), wzsubkeyname.into_param().abi(), wzvaluename.into_param().abi()) + ClusterRegReadBatchAddCommand(hregreadbatch.param().abi(), wzsubkeyname.param().abi(), wzvaluename.param().abi()) } #[inline] pub unsafe fn ClusterRegReadBatchReplyNextCommand(hregreadbatchreply: P0, pbatchcommand: *mut CLUSTER_READ_BATCH_COMMAND) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegReadBatchReplyNextCommand(hregreadbatchreply : HREGREADBATCHREPLY, pbatchcommand : *mut CLUSTER_READ_BATCH_COMMAND) -> i32); - ClusterRegReadBatchReplyNextCommand(hregreadbatchreply.into_param().abi(), pbatchcommand) + ClusterRegReadBatchReplyNextCommand(hregreadbatchreply.param().abi(), pbatchcommand) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ClusterRegSetKeySecurity(hkey: P0, securityinformation: u32, psecuritydescriptor: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegSetKeySecurity(hkey : super::super::System::Registry:: HKEY, securityinformation : u32, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> i32); - ClusterRegSetKeySecurity(hkey.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()) + ClusterRegSetKeySecurity(hkey.param().abi(), securityinformation, psecuritydescriptor.param().abi()) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ClusterRegSetKeySecurityEx(hkey: P0, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P1, lpszreason: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi(), lpszreason.into_param().abi()) + ClusterRegSetKeySecurityEx(hkey.param().abi(), securityinformation, psecuritydescriptor.param().abi(), lpszreason.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegSetValue(hkey: P0, lpszvaluename: P1, dwtype: u32, lpdata: *const u8, cbdata: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpszvaluename.into_param().abi(), dwtype, lpdata, cbdata) + ClusterRegSetValue(hkey.param().abi(), lpszvaluename.param().abi(), dwtype, lpdata, cbdata) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ClusterRegSetValueEx(hkey: P0, lpszvaluename: P1, dwtype: u32, lpdata: *const u8, cbdata: u32, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpszvaluename.into_param().abi(), dwtype, lpdata, cbdata, lpszreason.into_param().abi()) + ClusterRegSetValueEx(hkey.param().abi(), lpszvaluename.param().abi(), dwtype, lpdata, cbdata, lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterRegSyncDatabase(hcluster: P0, flags: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRegSyncDatabase(hcluster : HCLUSTER, flags : u32) -> i32); - ClusterRegSyncDatabase(hcluster.into_param().abi(), flags) + ClusterRegSyncDatabase(hcluster.param().abi(), flags) } #[inline] pub unsafe fn ClusterRemoveAffinityRule(hcluster: P0, rulename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveAffinityRule(hcluster : HCLUSTER, rulename : windows_core::PCWSTR) -> u32); - ClusterRemoveAffinityRule(hcluster.into_param().abi(), rulename.into_param().abi()) + ClusterRemoveAffinityRule(hcluster.param().abi(), rulename.param().abi()) } #[inline] pub unsafe fn ClusterRemoveGroupFromAffinityRule(hcluster: P0, rulename: P1, hgroup: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveGroupFromAffinityRule(hcluster : HCLUSTER, rulename : windows_core::PCWSTR, hgroup : HGROUP) -> u32); - ClusterRemoveGroupFromAffinityRule(hcluster.into_param().abi(), rulename.into_param().abi(), hgroup.into_param().abi()) + ClusterRemoveGroupFromAffinityRule(hcluster.param().abi(), rulename.param().abi(), hgroup.param().abi()) } #[inline] pub unsafe fn ClusterRemoveGroupFromGroupSet(hgroup: P0) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveGroupFromGroupSet(hgroup : HGROUP) -> u32); - ClusterRemoveGroupFromGroupSet(hgroup.into_param().abi()) + ClusterRemoveGroupFromGroupSet(hgroup.param().abi()) } #[inline] pub unsafe fn ClusterRemoveGroupFromGroupSetEx(hgroup: P0, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterRemoveGroupFromGroupSetEx(hgroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - ClusterRemoveGroupFromGroupSetEx(hgroup.into_param().abi(), lpszreason.into_param().abi()) + ClusterRemoveGroupFromGroupSetEx(hgroup.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceCloseEnum(hresenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceCloseEnum(hresenum : HRESENUM) -> u32); - ClusterResourceCloseEnum(hresenum.into_param().abi()) + ClusterResourceCloseEnum(hresenum.param().abi()) } #[inline] pub unsafe fn ClusterResourceCloseEnumEx(hresourceenumex: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceCloseEnumEx(hresourceenumex : HRESENUMEX) -> u32); - ClusterResourceCloseEnumEx(hresourceenumex.into_param().abi()) + ClusterResourceCloseEnumEx(hresourceenumex.param().abi()) } #[inline] pub unsafe fn ClusterResourceControl(hresource: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hresource.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterResourceControl(hresource.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterResourceControlAsUser(hresource: P0, hhostnode: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hresource.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterResourceControlAsUser(hresource.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterResourceControlAsUserEx(hresource: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hresource.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterResourceControlAsUserEx(hresource.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceControlEx(hresource: P0, hhostnode: P1, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hresource.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterResourceControlEx(hresource.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceEnum(hresenum: P0, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceEnum(hresenum : HRESENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterResourceEnum(hresenum.into_param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) + ClusterResourceEnum(hresenum.param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) } #[inline] pub unsafe fn ClusterResourceEnumEx(hresourceenumex: P0, dwindex: u32, pitem: *mut CLUSTER_RESOURCE_ENUM_ITEM, cbitem: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceEnumEx(hresourceenumex : HRESENUMEX, dwindex : u32, pitem : *mut CLUSTER_RESOURCE_ENUM_ITEM, cbitem : *mut u32) -> u32); - ClusterResourceEnumEx(hresourceenumex.into_param().abi(), dwindex, pitem, cbitem) + ClusterResourceEnumEx(hresourceenumex.param().abi(), dwindex, pitem, cbitem) } #[inline] pub unsafe fn ClusterResourceGetEnumCount(hresenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceGetEnumCount(hresenum : HRESENUM) -> u32); - ClusterResourceGetEnumCount(hresenum.into_param().abi()) + ClusterResourceGetEnumCount(hresenum.param().abi()) } #[inline] pub unsafe fn ClusterResourceGetEnumCountEx(hresourceenumex: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceGetEnumCountEx(hresourceenumex : HRESENUMEX) -> u32); - ClusterResourceGetEnumCountEx(hresourceenumex.into_param().abi()) + ClusterResourceGetEnumCountEx(hresourceenumex.param().abi()) } #[inline] pub unsafe fn ClusterResourceOpenEnum(hresource: P0, dwtype: u32) -> HRESENUM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceOpenEnum(hresource : HRESOURCE, dwtype : u32) -> HRESENUM); - ClusterResourceOpenEnum(hresource.into_param().abi(), dwtype) + ClusterResourceOpenEnum(hresource.param().abi(), dwtype) } #[inline] pub unsafe fn ClusterResourceOpenEnumEx(hcluster: P0, lpszproperties: P1, cbproperties: u32, lpszroproperties: P2, cbroproperties: u32, dwflags: u32) -> HRESENUMEX where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hcluster.into_param().abi(), lpszproperties.into_param().abi(), cbproperties, lpszroproperties.into_param().abi(), cbroproperties, dwflags) + ClusterResourceOpenEnumEx(hcluster.param().abi(), lpszproperties.param().abi(), cbproperties, lpszroproperties.param().abi(), cbroproperties, dwflags) } #[inline] pub unsafe fn ClusterResourceTypeCloseEnum(hrestypeenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeCloseEnum(hrestypeenum : HRESTYPEENUM) -> u32); - ClusterResourceTypeCloseEnum(hrestypeenum.into_param().abi()) + ClusterResourceTypeCloseEnum(hrestypeenum.param().abi()) } #[inline] pub unsafe fn ClusterResourceTypeControl(hcluster: P0, lpszresourcetypename: P1, hhostnode: P2, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterResourceTypeControl(hcluster.param().abi(), lpszresourcetypename.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterResourceTypeControlAsUser(hcluster: P0, lpszresourcetypename: P1, hhostnode: P2, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) + ClusterResourceTypeControlAsUser(hcluster.param().abi(), lpszresourcetypename.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ClusterResourceTypeControlAsUserEx(hcluster: P0, lpszresourcetypename: P1, hhostnode: P2, 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: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterResourceTypeControlAsUserEx(hcluster.param().abi(), lpszresourcetypename.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceTypeControlEx(hcluster: P0, lpszresourcetypename: P1, hhostnode: P2, 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: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi(), hhostnode.into_param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.into_param().abi()) + ClusterResourceTypeControlEx(hcluster.param().abi(), lpszresourcetypename.param().abi(), hhostnode.param().abi(), dwcontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), lpszreason.param().abi()) } #[inline] pub unsafe fn ClusterResourceTypeEnum(hrestypeenum: P0, dwindex: u32, lpdwtype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeEnum(hrestypeenum : HRESTYPEENUM, dwindex : u32, lpdwtype : *mut u32, lpszname : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - ClusterResourceTypeEnum(hrestypeenum.into_param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) + ClusterResourceTypeEnum(hrestypeenum.param().abi(), dwindex, lpdwtype, core::mem::transmute(lpszname), lpcchname) } #[inline] pub unsafe fn ClusterResourceTypeGetEnumCount(hrestypeenum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeGetEnumCount(hrestypeenum : HRESTYPEENUM) -> u32); - ClusterResourceTypeGetEnumCount(hrestypeenum.into_param().abi()) + ClusterResourceTypeGetEnumCount(hrestypeenum.param().abi()) } #[inline] pub unsafe fn ClusterResourceTypeOpenEnum(hcluster: P0, lpszresourcetypename: P1, dwtype: u32) -> HRESTYPEENUM where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterResourceTypeOpenEnum(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR, dwtype : u32) -> HRESTYPEENUM); - ClusterResourceTypeOpenEnum(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi(), dwtype) + ClusterResourceTypeOpenEnum(hcluster.param().abi(), lpszresourcetypename.param().abi(), dwtype) } #[inline] pub unsafe fn ClusterSetAccountAccess(hcluster: P0, szaccountsid: P1, dwaccess: u32, dwcontroltype: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ClusterSetAccountAccess(hcluster : HCLUSTER, szaccountsid : windows_core::PCWSTR, dwaccess : u32, dwcontroltype : u32) -> u32); - ClusterSetAccountAccess(hcluster.into_param().abi(), szaccountsid.into_param().abi(), dwaccess, dwcontroltype) + ClusterSetAccountAccess(hcluster.param().abi(), szaccountsid.param().abi(), dwaccess, dwcontroltype) } #[inline] pub unsafe fn ClusterSharedVolumeSetSnapshotState(guidsnapshotset: windows_core::GUID, lpszvolumename: P0, state: CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE) -> u32 where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), state) + ClusterSharedVolumeSetSnapshotState(core::mem::transmute(guidsnapshotset), lpszvolumename.param().abi(), state) } #[inline] pub unsafe fn ClusterUpgradeFunctionalLevel(hcluster: P0, perform: P1, pfnprogresscallback: PCLUSTER_UPGRADE_PROGRESS_CALLBACK, pvcallbackarg: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hcluster.into_param().abi(), perform.into_param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) + ClusterUpgradeFunctionalLevel(hcluster.param().abi(), perform.param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateCluster(pconfig: *const CREATE_CLUSTER_CONFIG, pfnprogresscallback: PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg: Option<*const core::ffi::c_void>) -> HCLUSTER { @@ -1402,212 +1402,212 @@ pub unsafe fn CreateCluster(pconfig: *const CREATE_CLUSTER_CONFIG, pfnprogressca #[inline] pub unsafe fn CreateClusterAvailabilitySet(hcluster: P0, lpavailabilitysetname: P1, pavailabilitysetconfig: *const CLUSTER_AVAILABILITY_SET_CONFIG) -> HGROUPSET where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpavailabilitysetname.into_param().abi(), pavailabilitysetconfig) + CreateClusterAvailabilitySet(hcluster.param().abi(), lpavailabilitysetname.param().abi(), pavailabilitysetconfig) } #[inline] pub unsafe fn CreateClusterGroup(hcluster: P0, lpszgroupname: P1) -> HGROUP where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterGroup(hcluster : HCLUSTER, lpszgroupname : windows_core::PCWSTR) -> HGROUP); - CreateClusterGroup(hcluster.into_param().abi(), lpszgroupname.into_param().abi()) + CreateClusterGroup(hcluster.param().abi(), lpszgroupname.param().abi()) } #[inline] pub unsafe fn CreateClusterGroupEx(hcluster: P0, lpszgroupname: P1, pgroupinfo: Option<*const CLUSTER_CREATE_GROUP_INFO>) -> HGROUP where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpszgroupname.into_param().abi(), core::mem::transmute(pgroupinfo.unwrap_or(std::ptr::null()))) + CreateClusterGroupEx(hcluster.param().abi(), lpszgroupname.param().abi(), core::mem::transmute(pgroupinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateClusterGroupSet(hcluster: P0, groupsetname: P1) -> HGROUPSET where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterGroupSet(hcluster : HCLUSTER, groupsetname : windows_core::PCWSTR) -> HGROUPSET); - CreateClusterGroupSet(hcluster.into_param().abi(), groupsetname.into_param().abi()) + CreateClusterGroupSet(hcluster.param().abi(), groupsetname.param().abi()) } #[inline] pub unsafe fn CreateClusterNameAccount(hcluster: P0, pconfig: *const CREATE_CLUSTER_NAME_ACCOUNT, pfnprogresscallback: PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcluster.into_param().abi(), pconfig, pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) + CreateClusterNameAccount(hcluster.param().abi(), pconfig, pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateClusterNotifyPort(hchange: P0, hcluster: P1, dwfilter: u32, dwnotifykey: usize) -> HCHANGE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterNotifyPort(hchange : HCHANGE, hcluster : HCLUSTER, dwfilter : u32, dwnotifykey : usize) -> HCHANGE); - CreateClusterNotifyPort(hchange.into_param().abi(), hcluster.into_param().abi(), dwfilter, dwnotifykey) + CreateClusterNotifyPort(hchange.param().abi(), hcluster.param().abi(), dwfilter, dwnotifykey) } #[inline] pub unsafe fn CreateClusterNotifyPortV2(hchange: P0, hcluster: P1, filters: *const NOTIFY_FILTER_AND_TYPE, dwfiltercount: u32, dwnotifykey: usize) -> HCHANGE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn CreateClusterNotifyPortV2(hchange : HCHANGE, hcluster : HCLUSTER, filters : *const NOTIFY_FILTER_AND_TYPE, dwfiltercount : u32, dwnotifykey : usize) -> HCHANGE); - CreateClusterNotifyPortV2(hchange.into_param().abi(), hcluster.into_param().abi(), filters, dwfiltercount, dwnotifykey) + CreateClusterNotifyPortV2(hchange.param().abi(), hcluster.param().abi(), filters, dwfiltercount, dwnotifykey) } #[inline] pub unsafe fn CreateClusterResource(hgroup: P0, lpszresourcename: P1, lpszresourcetype: P2, dwflags: u32) -> HRESOURCE where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + 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(hgroup.into_param().abi(), lpszresourcename.into_param().abi(), lpszresourcetype.into_param().abi(), dwflags) + CreateClusterResource(hgroup.param().abi(), lpszresourcename.param().abi(), lpszresourcetype.param().abi(), dwflags) } #[inline] pub unsafe fn CreateClusterResourceEx(hgroup: P0, lpszresourcename: P1, lpszresourcetype: P2, dwflags: u32, lpszreason: P3) -> HRESOURCE where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hgroup.into_param().abi(), lpszresourcename.into_param().abi(), lpszresourcetype.into_param().abi(), dwflags, lpszreason.into_param().abi()) + CreateClusterResourceEx(hgroup.param().abi(), lpszresourcename.param().abi(), lpszresourcetype.param().abi(), dwflags, lpszreason.param().abi()) } #[inline] pub unsafe fn CreateClusterResourceType(hcluster: P0, lpszresourcetypename: P1, lpszdisplayname: P2, lpszresourcetypedll: P3, dwlooksalivepollinterval: u32, dwisalivepollinterval: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi(), lpszdisplayname.into_param().abi(), lpszresourcetypedll.into_param().abi(), dwlooksalivepollinterval, dwisalivepollinterval) + CreateClusterResourceType(hcluster.param().abi(), lpszresourcetypename.param().abi(), lpszdisplayname.param().abi(), lpszresourcetypedll.param().abi(), dwlooksalivepollinterval, dwisalivepollinterval) } #[inline] pub unsafe fn CreateClusterResourceTypeEx(hcluster: P0, lpszresourcetypename: P1, lpszdisplayname: P2, lpszresourcetypedll: P3, dwlooksalivepollinterval: u32, dwisalivepollinterval: u32, lpszreason: P4) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi(), lpszdisplayname.into_param().abi(), lpszresourcetypedll.into_param().abi(), dwlooksalivepollinterval, dwisalivepollinterval, lpszreason.into_param().abi()) + CreateClusterResourceTypeEx(hcluster.param().abi(), lpszresourcetypename.param().abi(), lpszdisplayname.param().abi(), lpszresourcetypedll.param().abi(), dwlooksalivepollinterval, dwisalivepollinterval, lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterGroup(hgroup: P0) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroup(hgroup : HGROUP) -> u32); - DeleteClusterGroup(hgroup.into_param().abi()) + DeleteClusterGroup(hgroup.param().abi()) } #[inline] pub unsafe fn DeleteClusterGroupEx(hgroup: P0, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroupEx(hgroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterGroupEx(hgroup.into_param().abi(), lpszreason.into_param().abi()) + DeleteClusterGroupEx(hgroup.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterGroupSet(hgroupset: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroupSet(hgroupset : HGROUPSET) -> u32); - DeleteClusterGroupSet(hgroupset.into_param().abi()) + DeleteClusterGroupSet(hgroupset.param().abi()) } #[inline] pub unsafe fn DeleteClusterGroupSetEx(hgroupset: P0, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterGroupSetEx(hgroupset : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterGroupSetEx(hgroupset.into_param().abi(), lpszreason.into_param().abi()) + DeleteClusterGroupSetEx(hgroupset.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterResource(hresource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResource(hresource : HRESOURCE) -> u32); - DeleteClusterResource(hresource.into_param().abi()) + DeleteClusterResource(hresource.param().abi()) } #[inline] pub unsafe fn DeleteClusterResourceEx(hresource: P0, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResourceEx(hresource : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterResourceEx(hresource.into_param().abi(), lpszreason.into_param().abi()) + DeleteClusterResourceEx(hresource.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn DeleteClusterResourceType(hcluster: P0, lpszresourcetypename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResourceType(hcluster : HCLUSTER, lpszresourcetypename : windows_core::PCWSTR) -> u32); - DeleteClusterResourceType(hcluster.into_param().abi(), lpszresourcetypename.into_param().abi()) + DeleteClusterResourceType(hcluster.param().abi(), lpszresourcetypename.param().abi()) } #[inline] pub unsafe fn DeleteClusterResourceTypeEx(hcluster: P0, lpsztypename: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DeleteClusterResourceTypeEx(hcluster : HCLUSTER, lpsztypename : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - DeleteClusterResourceTypeEx(hcluster.into_param().abi(), lpsztypename.into_param().abi(), lpszreason.into_param().abi()) + DeleteClusterResourceTypeEx(hcluster.param().abi(), lpsztypename.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn DestroyCluster(hcluster: P0, pfnprogresscallback: PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg: Option<*const core::ffi::c_void>, fdeletevirtualcomputerobjects: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hcluster.into_param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null())), fdeletevirtualcomputerobjects.into_param().abi()) + DestroyCluster(hcluster.param().abi(), pfnprogresscallback, core::mem::transmute(pvcallbackarg.unwrap_or(std::ptr::null())), fdeletevirtualcomputerobjects.param().abi()) } #[inline] pub unsafe fn DestroyClusterGroup(hgroup: P0) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn DestroyClusterGroup(hgroup : HGROUP) -> u32); - DestroyClusterGroup(hgroup.into_param().abi()) + DestroyClusterGroup(hgroup.param().abi()) } #[inline] pub unsafe fn DestroyClusterGroupEx(hgroup: P0, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DestroyClusterGroupEx(hgroup : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - DestroyClusterGroupEx(hgroup.into_param().abi(), lpszreason.into_param().abi()) + DestroyClusterGroupEx(hgroup.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn DetermineCNOResTypeFromCluster(hcluster: P0, pcnorestype: *mut CLUSTER_MGMT_POINT_RESTYPE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DetermineCNOResTypeFromCluster(hcluster : HCLUSTER, pcnorestype : *mut CLUSTER_MGMT_POINT_RESTYPE) -> u32); - DetermineCNOResTypeFromCluster(hcluster.into_param().abi(), pcnorestype) + DetermineCNOResTypeFromCluster(hcluster.param().abi(), pcnorestype) } #[inline] pub unsafe fn DetermineCNOResTypeFromNodelist(cnodes: u32, ppsznodenames: *const windows_core::PCWSTR, pcnorestype: *mut CLUSTER_MGMT_POINT_RESTYPE) -> u32 { @@ -1617,10 +1617,10 @@ pub unsafe fn DetermineCNOResTypeFromNodelist(cnodes: u32, ppsznodenames: *const #[inline] pub unsafe fn DetermineClusterCloudTypeFromCluster(hcluster: P0, pcloudtype: *mut CLUSTER_CLOUD_TYPE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn DetermineClusterCloudTypeFromCluster(hcluster : HCLUSTER, pcloudtype : *mut CLUSTER_CLOUD_TYPE) -> u32); - DetermineClusterCloudTypeFromCluster(hcluster.into_param().abi(), pcloudtype) + DetermineClusterCloudTypeFromCluster(hcluster.param().abi(), pcloudtype) } #[inline] pub unsafe fn DetermineClusterCloudTypeFromNodelist(cnodes: u32, ppsznodenames: *const windows_core::PCWSTR, pcloudtype: *mut CLUSTER_CLOUD_TYPE) -> u32 { @@ -1630,44 +1630,44 @@ pub unsafe fn DetermineClusterCloudTypeFromNodelist(cnodes: u32, ppsznodenames: #[inline] pub unsafe fn EvictClusterNode(hnode: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn EvictClusterNode(hnode : HNODE) -> u32); - EvictClusterNode(hnode.into_param().abi()) + EvictClusterNode(hnode.param().abi()) } #[inline] pub unsafe fn EvictClusterNodeEx(hnode: P0, dwtimeout: u32, phrcleanupstatus: *mut windows_core::HRESULT) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn EvictClusterNodeEx(hnode : HNODE, dwtimeout : u32, phrcleanupstatus : *mut windows_core::HRESULT) -> u32); - EvictClusterNodeEx(hnode.into_param().abi(), dwtimeout, phrcleanupstatus) + EvictClusterNodeEx(hnode.param().abi(), dwtimeout, phrcleanupstatus) } #[inline] pub unsafe fn EvictClusterNodeEx2(hnode: P0, dwtimeout: u32, phrcleanupstatus: *mut windows_core::HRESULT, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hnode.into_param().abi(), dwtimeout, phrcleanupstatus, lpszreason.into_param().abi()) + EvictClusterNodeEx2(hnode.param().abi(), dwtimeout, phrcleanupstatus, lpszreason.param().abi()) } #[inline] pub unsafe fn FailClusterResource(hresource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn FailClusterResource(hresource : HRESOURCE) -> u32); - FailClusterResource(hresource.into_param().abi()) + FailClusterResource(hresource.param().abi()) } #[inline] pub unsafe fn FailClusterResourceEx(hresource: P0, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn FailClusterResourceEx(hresource : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - FailClusterResourceEx(hresource.into_param().abi(), lpszreason.into_param().abi()) + FailClusterResourceEx(hresource.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn FreeClusterCrypt(pcryptinfo: *const core::ffi::c_void) -> u32 { @@ -1687,175 +1687,175 @@ pub unsafe fn FreeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_ #[inline] pub unsafe fn GetClusterFromGroup(hgroup: P0) -> HCLUSTER where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromGroup(hgroup : HGROUP) -> HCLUSTER); - GetClusterFromGroup(hgroup.into_param().abi()) + GetClusterFromGroup(hgroup.param().abi()) } #[inline] pub unsafe fn GetClusterFromNetInterface(hnetinterface: P0) -> HCLUSTER where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromNetInterface(hnetinterface : HNETINTERFACE) -> HCLUSTER); - GetClusterFromNetInterface(hnetinterface.into_param().abi()) + GetClusterFromNetInterface(hnetinterface.param().abi()) } #[inline] pub unsafe fn GetClusterFromNetwork(hnetwork: P0) -> HCLUSTER where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromNetwork(hnetwork : HNETWORK) -> HCLUSTER); - GetClusterFromNetwork(hnetwork.into_param().abi()) + GetClusterFromNetwork(hnetwork.param().abi()) } #[inline] pub unsafe fn GetClusterFromNode(hnode: P0) -> HCLUSTER where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromNode(hnode : HNODE) -> HCLUSTER); - GetClusterFromNode(hnode.into_param().abi()) + GetClusterFromNode(hnode.param().abi()) } #[inline] pub unsafe fn GetClusterFromResource(hresource: P0) -> HCLUSTER where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterFromResource(hresource : HRESOURCE) -> HCLUSTER); - GetClusterFromResource(hresource.into_param().abi()) + GetClusterFromResource(hresource.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterGroupKey(hgroup: P0, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn GetClusterGroupKey(hgroup : HGROUP, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterGroupKey(hgroup.into_param().abi(), samdesired); + let result__ = GetClusterGroupKey(hgroup.param().abi(), samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterGroupState(hgroup: P0, lpsznodename: windows_core::PWSTR, lpcchnodename: Option<*mut u32>) -> CLUSTER_GROUP_STATE where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn GetClusterGroupState(hgroup : HGROUP, lpsznodename : windows_core::PWSTR, lpcchnodename : *mut u32) -> CLUSTER_GROUP_STATE); - GetClusterGroupState(hgroup.into_param().abi(), core::mem::transmute(lpsznodename), core::mem::transmute(lpcchnodename.unwrap_or(std::ptr::null_mut()))) + GetClusterGroupState(hgroup.param().abi(), core::mem::transmute(lpsznodename), core::mem::transmute(lpcchnodename.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetClusterInformation(hcluster: P0, lpszclustername: windows_core::PWSTR, lpcchclustername: *mut u32, lpclusterinfo: Option<*mut CLUSTERVERSIONINFO>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterInformation(hcluster : HCLUSTER, lpszclustername : windows_core::PWSTR, lpcchclustername : *mut u32, lpclusterinfo : *mut CLUSTERVERSIONINFO) -> u32); - GetClusterInformation(hcluster.into_param().abi(), core::mem::transmute(lpszclustername), lpcchclustername, core::mem::transmute(lpclusterinfo.unwrap_or(std::ptr::null_mut()))) + GetClusterInformation(hcluster.param().abi(), core::mem::transmute(lpszclustername), lpcchclustername, core::mem::transmute(lpclusterinfo.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterKey(hcluster: P0, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterKey(hcluster : HCLUSTER, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterKey(hcluster.into_param().abi(), samdesired); + let result__ = GetClusterKey(hcluster.param().abi(), samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterNetInterface(hcluster: P0, lpsznodename: P1, lpsznetworkname: P2, lpszinterfacename: windows_core::PWSTR, lpcchinterfacename: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hcluster.into_param().abi(), lpsznodename.into_param().abi(), lpsznetworkname.into_param().abi(), core::mem::transmute(lpszinterfacename), lpcchinterfacename) + GetClusterNetInterface(hcluster.param().abi(), lpsznodename.param().abi(), lpsznetworkname.param().abi(), core::mem::transmute(lpszinterfacename), lpcchinterfacename) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterNetInterfaceKey(hnetinterface: P0, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetInterfaceKey(hnetinterface : HNETINTERFACE, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterNetInterfaceKey(hnetinterface.into_param().abi(), samdesired); + let result__ = GetClusterNetInterfaceKey(hnetinterface.param().abi(), samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterNetInterfaceState(hnetinterface: P0) -> CLUSTER_NETINTERFACE_STATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetInterfaceState(hnetinterface : HNETINTERFACE) -> CLUSTER_NETINTERFACE_STATE); - GetClusterNetInterfaceState(hnetinterface.into_param().abi()) + GetClusterNetInterfaceState(hnetinterface.param().abi()) } #[inline] pub unsafe fn GetClusterNetworkId(hnetwork: P0, lpsznetworkid: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetworkId(hnetwork : HNETWORK, lpsznetworkid : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - GetClusterNetworkId(hnetwork.into_param().abi(), core::mem::transmute(lpsznetworkid), lpcchname) + GetClusterNetworkId(hnetwork.param().abi(), core::mem::transmute(lpsznetworkid), lpcchname) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterNetworkKey(hnetwork: P0, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetworkKey(hnetwork : HNETWORK, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterNetworkKey(hnetwork.into_param().abi(), samdesired); + let result__ = GetClusterNetworkKey(hnetwork.param().abi(), samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterNetworkState(hnetwork: P0) -> CLUSTER_NETWORK_STATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNetworkState(hnetwork : HNETWORK) -> CLUSTER_NETWORK_STATE); - GetClusterNetworkState(hnetwork.into_param().abi()) + GetClusterNetworkState(hnetwork.param().abi()) } #[inline] pub unsafe fn GetClusterNodeId(hnode: P0, lpsznodeid: windows_core::PWSTR, lpcchname: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNodeId(hnode : HNODE, lpsznodeid : windows_core::PWSTR, lpcchname : *mut u32) -> u32); - GetClusterNodeId(hnode.into_param().abi(), core::mem::transmute(lpsznodeid), lpcchname) + GetClusterNodeId(hnode.param().abi(), core::mem::transmute(lpsznodeid), lpcchname) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterNodeKey(hnode: P0, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNodeKey(hnode : HNODE, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterNodeKey(hnode.into_param().abi(), samdesired); + let result__ = GetClusterNodeKey(hnode.param().abi(), samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterNodeState(hnode: P0) -> CLUSTER_NODE_STATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterNodeState(hnode : HNODE) -> CLUSTER_NODE_STATE); - GetClusterNodeState(hnode.into_param().abi()) + GetClusterNodeState(hnode.param().abi()) } #[inline] pub unsafe fn GetClusterNotify(hchange: P0, lpdwnotifykey: *mut usize, lpdwfiltertype: *mut u32, lpszname: windows_core::PWSTR, lpcchname: *mut u32, dwmilliseconds: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hchange.into_param().abi(), lpdwnotifykey, lpdwfiltertype, core::mem::transmute(lpszname), lpcchname, dwmilliseconds) + GetClusterNotify(hchange.param().abi(), lpdwnotifykey, lpdwfiltertype, core::mem::transmute(lpszname), lpcchname, dwmilliseconds) } #[inline] pub unsafe fn GetClusterNotifyV2(hchange: P0, lpdwnotifykey: *mut usize, pfilterandtype: Option<*mut NOTIFY_FILTER_AND_TYPE>, buffer: Option<*mut u8>, lpbbuffersize: Option<*mut u32>, lpszobjectid: windows_core::PWSTR, lpcchobjectid: Option<*mut u32>, lpszparentid: windows_core::PWSTR, lpcchparentid: Option<*mut u32>, lpszname: windows_core::PWSTR, lpcchname: Option<*mut u32>, lpsztype: windows_core::PWSTR, lpcchtype: Option<*mut u32>, dwmilliseconds: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - hchange.into_param().abi(), + hchange.param().abi(), lpdwnotifykey, core::mem::transmute(pfilterandtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), @@ -1874,79 +1874,79 @@ where #[inline] pub unsafe fn GetClusterQuorumResource(hcluster: P0, lpszresourcename: windows_core::PWSTR, lpcchresourcename: *mut u32, lpszdevicename: windows_core::PWSTR, lpcchdevicename: *mut u32, lpdwmaxquorumlogsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcluster.into_param().abi(), core::mem::transmute(lpszresourcename), lpcchresourcename, core::mem::transmute(lpszdevicename), lpcchdevicename, lpdwmaxquorumlogsize) + GetClusterQuorumResource(hcluster.param().abi(), core::mem::transmute(lpszresourcename), lpcchresourcename, core::mem::transmute(lpszdevicename), lpcchdevicename, lpdwmaxquorumlogsize) } #[inline] pub unsafe fn GetClusterResourceDependencyExpression(hresource: P0, lpszdependencyexpression: windows_core::PWSTR, lpcchdependencyexpression: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceDependencyExpression(hresource : HRESOURCE, lpszdependencyexpression : windows_core::PWSTR, lpcchdependencyexpression : *mut u32) -> u32); - GetClusterResourceDependencyExpression(hresource.into_param().abi(), core::mem::transmute(lpszdependencyexpression), lpcchdependencyexpression) + GetClusterResourceDependencyExpression(hresource.param().abi(), core::mem::transmute(lpszdependencyexpression), lpcchdependencyexpression) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterResourceKey(hresource: P0, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceKey(hresource : HRESOURCE, samdesired : u32) -> super::super::System::Registry:: HKEY); - let result__ = GetClusterResourceKey(hresource.into_param().abi(), samdesired); + let result__ = GetClusterResourceKey(hresource.param().abi(), samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetClusterResourceNetworkName(hresource: P0, lpbuffer: windows_core::PWSTR, nsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceNetworkName(hresource : HRESOURCE, lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); - GetClusterResourceNetworkName(hresource.into_param().abi(), core::mem::transmute(lpbuffer), nsize).ok() + GetClusterResourceNetworkName(hresource.param().abi(), core::mem::transmute(lpbuffer), nsize).ok() } #[inline] pub unsafe fn GetClusterResourceState(hresource: P0, lpsznodename: windows_core::PWSTR, lpcchnodename: Option<*mut u32>, lpszgroupname: windows_core::PWSTR, lpcchgroupname: Option<*mut u32>) -> CLUSTER_RESOURCE_STATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hresource.into_param().abi(), core::mem::transmute(lpsznodename), core::mem::transmute(lpcchnodename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpszgroupname), core::mem::transmute(lpcchgroupname.unwrap_or(std::ptr::null_mut()))) + GetClusterResourceState(hresource.param().abi(), core::mem::transmute(lpsznodename), core::mem::transmute(lpcchnodename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpszgroupname), core::mem::transmute(lpcchgroupname.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetClusterResourceTypeKey(hcluster: P0, lpsztypename: P1, samdesired: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpsztypename.into_param().abi(), samdesired); + let result__ = GetClusterResourceTypeKey(hcluster.param().abi(), lpsztypename.param().abi(), samdesired); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetNodeCloudTypeDW(ppsznodename: P0, nodecloudtype: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetNodeCloudTypeDW(ppsznodename : windows_core::PCWSTR, nodecloudtype : *mut u32) -> u32); - GetNodeCloudTypeDW(ppsznodename.into_param().abi(), nodecloudtype) + GetNodeCloudTypeDW(ppsznodename.param().abi(), nodecloudtype) } #[inline] pub unsafe fn GetNodeClusterState(lpsznodename: P0, pdwclusterstate: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetNodeClusterState(lpsznodename : windows_core::PCWSTR, pdwclusterstate : *mut u32) -> u32); - GetNodeClusterState(lpsznodename.into_param().abi(), pdwclusterstate) + GetNodeClusterState(lpsznodename.param().abi(), pdwclusterstate) } #[inline] pub unsafe fn GetNotifyEventHandle(hchange: P0, lphtargetevent: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn GetNotifyEventHandle(hchange : HCHANGE, lphtargetevent : *mut super::super::Foundation:: HANDLE) -> u32); - GetNotifyEventHandle(hchange.into_param().abi(), lphtargetevent) + GetNotifyEventHandle(hchange.param().abi(), lphtargetevent) } #[inline] pub unsafe fn InitializeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32 { @@ -1961,310 +1961,310 @@ pub unsafe fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: *mut CL #[inline] pub unsafe fn IsFileOnClusterSharedVolume(lpszpathname: P0, pbfileisonsharedvolume: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn IsFileOnClusterSharedVolume(lpszpathname : windows_core::PCWSTR, pbfileisonsharedvolume : *mut super::super::Foundation:: BOOL) -> u32); - IsFileOnClusterSharedVolume(lpszpathname.into_param().abi(), pbfileisonsharedvolume) + IsFileOnClusterSharedVolume(lpszpathname.param().abi(), pbfileisonsharedvolume) } #[inline] pub unsafe fn MoveClusterGroup(hgroup: P0, hdestinationnode: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn MoveClusterGroup(hgroup : HGROUP, hdestinationnode : HNODE) -> u32); - MoveClusterGroup(hgroup.into_param().abi(), hdestinationnode.into_param().abi()) + MoveClusterGroup(hgroup.param().abi(), hdestinationnode.param().abi()) } #[inline] pub unsafe fn MoveClusterGroupEx(hgroup: P0, hdestinationnode: P1, dwmoveflags: u32, lpinbuffer: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn MoveClusterGroupEx(hgroup : HGROUP, hdestinationnode : HNODE, dwmoveflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - MoveClusterGroupEx(hgroup.into_param().abi(), hdestinationnode.into_param().abi(), 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.param().abi(), hdestinationnode.param().abi(), 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: P0, hdestinationnode: P1, dwmoveflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: 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(hgroup.into_param().abi(), hdestinationnode.into_param().abi(), 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.into_param().abi()) + MoveClusterGroupEx2(hgroup.param().abi(), hdestinationnode.param().abi(), 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: P0) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterGroup(hgroup : HGROUP) -> u32); - OfflineClusterGroup(hgroup.into_param().abi()) + OfflineClusterGroup(hgroup.param().abi()) } #[inline] pub unsafe fn OfflineClusterGroupEx(hgroup: P0, dwofflineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterGroupEx(hgroup : HGROUP, dwofflineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OfflineClusterGroupEx(hgroup.into_param().abi(), 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.param().abi(), 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: P0, dwofflineflags: u32, lpinbuffer: Option<*const u8>, cbinbuffersize: u32, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: 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(hgroup.into_param().abi(), dwofflineflags, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, lpszreason.into_param().abi()) + OfflineClusterGroupEx2(hgroup.param().abi(), dwofflineflags, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), cbinbuffersize, lpszreason.param().abi()) } #[inline] pub unsafe fn OfflineClusterResource(hresource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterResource(hresource : HRESOURCE) -> u32); - OfflineClusterResource(hresource.into_param().abi()) + OfflineClusterResource(hresource.param().abi()) } #[inline] pub unsafe fn OfflineClusterResourceEx(hresource: P0, dwofflineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OfflineClusterResourceEx(hresource : HRESOURCE, dwofflineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OfflineClusterResourceEx(hresource.into_param().abi(), 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.param().abi(), 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: P0, dwofflineflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hresource.into_param().abi(), 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.into_param().abi()) + OfflineClusterResourceEx2(hresource.param().abi(), 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: P0, hdestinationnode: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterGroup(hgroup : HGROUP, hdestinationnode : HNODE) -> u32); - OnlineClusterGroup(hgroup.into_param().abi(), hdestinationnode.into_param().abi()) + OnlineClusterGroup(hgroup.param().abi(), hdestinationnode.param().abi()) } #[inline] pub unsafe fn OnlineClusterGroupEx(hgroup: P0, hdestinationnode: P1, dwonlineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterGroupEx(hgroup : HGROUP, hdestinationnode : HNODE, dwonlineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OnlineClusterGroupEx(hgroup.into_param().abi(), hdestinationnode.into_param().abi(), 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.param().abi(), hdestinationnode.param().abi(), 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: P0, hdestinationnode: P1, dwonlineflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: 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(hgroup.into_param().abi(), hdestinationnode.into_param().abi(), 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.into_param().abi()) + OnlineClusterGroupEx2(hgroup.param().abi(), hdestinationnode.param().abi(), 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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterResource(hresource : HRESOURCE) -> u32); - OnlineClusterResource(hresource.into_param().abi()) + OnlineClusterResource(hresource.param().abi()) } #[inline] pub unsafe fn OnlineClusterResourceEx(hresource: P0, dwonlineflags: u32, lpinbuffer: Option<&[u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OnlineClusterResourceEx(hresource : HRESOURCE, dwonlineflags : u32, lpinbuffer : *const u8, cbinbuffersize : u32) -> u32); - OnlineClusterResourceEx(hresource.into_param().abi(), 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.param().abi(), 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: P0, dwonlineflags: u32, lpinbuffer: Option<&[u8]>, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hresource.into_param().abi(), 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.into_param().abi()) + OnlineClusterResourceEx2(hresource.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenCluster(lpszclustername : windows_core::PCWSTR) -> HCLUSTER); - OpenCluster(lpszclustername.into_param().abi()) + OpenCluster(lpszclustername.param().abi()) } #[inline] pub unsafe fn OpenClusterCryptProvider(lpszresource: P0, lpszprovider: *const i8, dwtype: u32, dwflags: u32) -> HCLUSCRYPTPROVIDER where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpszprovider, dwtype, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszkeyname.into_param().abi(), lpszprovider, dwtype, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterEx(lpszclustername : windows_core::PCWSTR, desiredaccess : u32, grantedaccess : *mut u32) -> HCLUSTER); - OpenClusterEx(lpszclustername.into_param().abi(), desiredaccess, core::mem::transmute(grantedaccess.unwrap_or(std::ptr::null_mut()))) + OpenClusterEx(lpszclustername.param().abi(), desiredaccess, core::mem::transmute(grantedaccess.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OpenClusterGroup(hcluster: P0, lpszgroupname: P1) -> HGROUP where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterGroup(hcluster : HCLUSTER, lpszgroupname : windows_core::PCWSTR) -> HGROUP); - OpenClusterGroup(hcluster.into_param().abi(), lpszgroupname.into_param().abi()) + OpenClusterGroup(hcluster.param().abi(), lpszgroupname.param().abi()) } #[inline] pub unsafe fn OpenClusterGroupEx(hcluster: P0, lpszgroupname: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HGROUP where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpszgroupname.into_param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) + OpenClusterGroupEx(hcluster.param().abi(), lpszgroupname.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OpenClusterGroupSet(hcluster: P0, lpszgroupsetname: P1) -> HGROUPSET where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterGroupSet(hcluster : HCLUSTER, lpszgroupsetname : windows_core::PCWSTR) -> HGROUPSET); - OpenClusterGroupSet(hcluster.into_param().abi(), lpszgroupsetname.into_param().abi()) + OpenClusterGroupSet(hcluster.param().abi(), lpszgroupsetname.param().abi()) } #[inline] pub unsafe fn OpenClusterNetInterface(hcluster: P0, lpszinterfacename: P1) -> HNETINTERFACE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNetInterface(hcluster : HCLUSTER, lpszinterfacename : windows_core::PCWSTR) -> HNETINTERFACE); - OpenClusterNetInterface(hcluster.into_param().abi(), lpszinterfacename.into_param().abi()) + OpenClusterNetInterface(hcluster.param().abi(), lpszinterfacename.param().abi()) } #[inline] pub unsafe fn OpenClusterNetInterfaceEx(hcluster: P0, lpszinterfacename: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HNETINTERFACE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpszinterfacename.into_param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) + OpenClusterNetInterfaceEx(hcluster.param().abi(), lpszinterfacename.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OpenClusterNetwork(hcluster: P0, lpsznetworkname: P1) -> HNETWORK where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNetwork(hcluster : HCLUSTER, lpsznetworkname : windows_core::PCWSTR) -> HNETWORK); - OpenClusterNetwork(hcluster.into_param().abi(), lpsznetworkname.into_param().abi()) + OpenClusterNetwork(hcluster.param().abi(), lpsznetworkname.param().abi()) } #[inline] pub unsafe fn OpenClusterNetworkEx(hcluster: P0, lpsznetworkname: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HNETWORK where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpsznetworkname.into_param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) + OpenClusterNetworkEx(hcluster.param().abi(), lpsznetworkname.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OpenClusterNode(hcluster: P0, lpsznodename: P1) -> HNODE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNode(hcluster : HCLUSTER, lpsznodename : windows_core::PCWSTR) -> HNODE); - OpenClusterNode(hcluster.into_param().abi(), lpsznodename.into_param().abi()) + OpenClusterNode(hcluster.param().abi(), lpsznodename.param().abi()) } #[inline] pub unsafe fn OpenClusterNodeById(hcluster: P0, nodeid: u32) -> HNODE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterNodeById(hcluster : HCLUSTER, nodeid : u32) -> HNODE); - OpenClusterNodeById(hcluster.into_param().abi(), nodeid) + OpenClusterNodeById(hcluster.param().abi(), nodeid) } #[inline] pub unsafe fn OpenClusterNodeEx(hcluster: P0, lpsznodename: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HNODE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpsznodename.into_param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) + OpenClusterNodeEx(hcluster.param().abi(), lpsznodename.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn OpenClusterResource(hcluster: P0, lpszresourcename: P1) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn OpenClusterResource(hcluster : HCLUSTER, lpszresourcename : windows_core::PCWSTR) -> HRESOURCE); - OpenClusterResource(hcluster.into_param().abi(), lpszresourcename.into_param().abi()) + OpenClusterResource(hcluster.param().abi(), lpszresourcename.param().abi()) } #[inline] pub unsafe fn OpenClusterResourceEx(hcluster: P0, lpszresourcename: P1, dwdesiredaccess: u32, lpdwgrantedaccess: Option<*mut u32>) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcluster.into_param().abi(), lpszresourcename.into_param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) + OpenClusterResourceEx(hcluster.param().abi(), lpszresourcename.param().abi(), dwdesiredaccess, core::mem::transmute(lpdwgrantedaccess.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn PauseClusterNode(hnode: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn PauseClusterNode(hnode : HNODE) -> u32); - PauseClusterNode(hnode.into_param().abi()) + PauseClusterNode(hnode.param().abi()) } #[inline] pub unsafe fn PauseClusterNodeEx(hnode: P0, bdrainnode: P1, dwpauseflags: u32, hnodedraintarget: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn PauseClusterNodeEx(hnode : HNODE, bdrainnode : super::super::Foundation:: BOOL, dwpauseflags : u32, hnodedraintarget : HNODE) -> u32); - PauseClusterNodeEx(hnode.into_param().abi(), bdrainnode.into_param().abi(), dwpauseflags, hnodedraintarget.into_param().abi()) + PauseClusterNodeEx(hnode.param().abi(), bdrainnode.param().abi(), dwpauseflags, hnodedraintarget.param().abi()) } #[inline] pub unsafe fn PauseClusterNodeEx2(hnode: P0, bdrainnode: P1, dwpauseflags: u32, hnodedraintarget: P2, lpszreason: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hnode.into_param().abi(), bdrainnode.into_param().abi(), dwpauseflags, hnodedraintarget.into_param().abi(), lpszreason.into_param().abi()) + PauseClusterNodeEx2(hnode.param().abi(), bdrainnode.param().abi(), dwpauseflags, hnodedraintarget.param().abi(), 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 { @@ -2274,11 +2274,11 @@ pub unsafe fn QueryAppInstanceVersion(appinstanceid: *const windows_core::GUID, #[inline] pub unsafe fn RegisterAppInstance(processhandle: P0, appinstanceid: *const windows_core::GUID, childreninheritappinstance: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(processhandle.into_param().abi(), appinstanceid, childreninheritappinstance.into_param().abi()) + RegisterAppInstance(processhandle.param().abi(), appinstanceid, childreninheritappinstance.param().abi()) } #[inline] pub unsafe fn RegisterAppInstanceVersion(appinstanceid: *const windows_core::GUID, instanceversionhigh: u64, instanceversionlow: u64) -> u32 { @@ -2288,186 +2288,186 @@ pub unsafe fn RegisterAppInstanceVersion(appinstanceid: *const windows_core::GUI #[inline] pub unsafe fn RegisterClusterNotify(hchange: P0, dwfiltertype: u32, hobject: P1, dwnotifykey: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RegisterClusterNotify(hchange : HCHANGE, dwfiltertype : u32, hobject : super::super::Foundation:: HANDLE, dwnotifykey : usize) -> u32); - RegisterClusterNotify(hchange.into_param().abi(), dwfiltertype, hobject.into_param().abi(), dwnotifykey) + RegisterClusterNotify(hchange.param().abi(), dwfiltertype, hobject.param().abi(), dwnotifykey) } #[inline] pub unsafe fn RegisterClusterNotifyV2(hchange: P0, filter: NOTIFY_FILTER_AND_TYPE, hobject: P1, dwnotifykey: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RegisterClusterNotifyV2(hchange : HCHANGE, filter : NOTIFY_FILTER_AND_TYPE, hobject : super::super::Foundation:: HANDLE, dwnotifykey : usize) -> u32); - RegisterClusterNotifyV2(hchange.into_param().abi(), core::mem::transmute(filter), hobject.into_param().abi(), dwnotifykey) + RegisterClusterNotifyV2(hchange.param().abi(), core::mem::transmute(filter), hobject.param().abi(), dwnotifykey) } #[inline] pub unsafe fn RegisterClusterResourceTypeNotifyV2(hchange: P0, hcluster: P1, flags: i64, restypename: P2, dwnotifykey: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hchange.into_param().abi(), hcluster.into_param().abi(), flags, restypename.into_param().abi(), dwnotifykey) + RegisterClusterResourceTypeNotifyV2(hchange.param().abi(), hcluster.param().abi(), flags, restypename.param().abi(), dwnotifykey) } #[inline] pub unsafe fn RemoveClusterGroupDependency(hgroup: P0, hdependson: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam
, + P0: windows_core::Param
, + P1: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupDependency(hgroup : HGROUP, hdependson : HGROUP) -> u32); - RemoveClusterGroupDependency(hgroup.into_param().abi(), hdependson.into_param().abi()) + RemoveClusterGroupDependency(hgroup.param().abi(), hdependson.param().abi()) } #[inline] pub unsafe fn RemoveClusterGroupDependencyEx(hgroup: P0, hdependson: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam
, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param
, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupDependencyEx(hgroup : HGROUP, hdependson : HGROUP, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterGroupDependencyEx(hgroup.into_param().abi(), hdependson.into_param().abi(), lpszreason.into_param().abi()) + RemoveClusterGroupDependencyEx(hgroup.param().abi(), hdependson.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterGroupSetDependency(hgroupset: P0, hdependson: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupSetDependency(hgroupset : HGROUPSET, hdependson : HGROUPSET) -> u32); - RemoveClusterGroupSetDependency(hgroupset.into_param().abi(), hdependson.into_param().abi()) + RemoveClusterGroupSetDependency(hgroupset.param().abi(), hdependson.param().abi()) } #[inline] pub unsafe fn RemoveClusterGroupSetDependencyEx(hgroupset: P0, hdependson: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupSetDependencyEx(hgroupset : HGROUPSET, hdependson : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterGroupSetDependencyEx(hgroupset.into_param().abi(), hdependson.into_param().abi(), lpszreason.into_param().abi()) + RemoveClusterGroupSetDependencyEx(hgroupset.param().abi(), hdependson.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterGroupToGroupSetDependency(hgroup: P0, hdependson: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupToGroupSetDependency(hgroup : HGROUP, hdependson : HGROUPSET) -> u32); - RemoveClusterGroupToGroupSetDependency(hgroup.into_param().abi(), hdependson.into_param().abi()) + RemoveClusterGroupToGroupSetDependency(hgroup.param().abi(), hdependson.param().abi()) } #[inline] pub unsafe fn RemoveClusterGroupToGroupSetDependencyEx(hgroup: P0, hdependson: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterGroupToGroupSetDependencyEx(hgroup : HGROUP, hdependson : HGROUPSET, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterGroupToGroupSetDependencyEx(hgroup.into_param().abi(), hdependson.into_param().abi(), lpszreason.into_param().abi()) + RemoveClusterGroupToGroupSetDependencyEx(hgroup.param().abi(), hdependson.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterNameAccount(hcluster: P0, bdeletecomputerobjects: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterNameAccount(hcluster : HCLUSTER, bdeletecomputerobjects : super::super::Foundation:: BOOL) -> u32); - RemoveClusterNameAccount(hcluster.into_param().abi(), bdeletecomputerobjects.into_param().abi()) + RemoveClusterNameAccount(hcluster.param().abi(), bdeletecomputerobjects.param().abi()) } #[inline] pub unsafe fn RemoveClusterResourceDependency(hresource: P0, hdependson: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceDependency(hresource : HRESOURCE, hdependson : HRESOURCE) -> u32); - RemoveClusterResourceDependency(hresource.into_param().abi(), hdependson.into_param().abi()) + RemoveClusterResourceDependency(hresource.param().abi(), hdependson.param().abi()) } #[inline] pub unsafe fn RemoveClusterResourceDependencyEx(hresource: P0, hdependson: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceDependencyEx(hresource : HRESOURCE, hdependson : HRESOURCE, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterResourceDependencyEx(hresource.into_param().abi(), hdependson.into_param().abi(), lpszreason.into_param().abi()) + RemoveClusterResourceDependencyEx(hresource.param().abi(), hdependson.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterResourceNode(hresource: P0, hnode: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceNode(hresource : HRESOURCE, hnode : HNODE) -> u32); - RemoveClusterResourceNode(hresource.into_param().abi(), hnode.into_param().abi()) + RemoveClusterResourceNode(hresource.param().abi(), hnode.param().abi()) } #[inline] pub unsafe fn RemoveClusterResourceNodeEx(hresource: P0, hnode: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterResourceNodeEx(hresource : HRESOURCE, hnode : HNODE, lpszreason : windows_core::PCWSTR) -> u32); - RemoveClusterResourceNodeEx(hresource.into_param().abi(), hnode.into_param().abi(), lpszreason.into_param().abi()) + RemoveClusterResourceNodeEx(hresource.param().abi(), hnode.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn RemoveClusterStorageNode(hcluster: P0, lpszclusterstorageenclosurename: P1, dwtimeout: u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveClusterStorageNode(hcluster : HCLUSTER, lpszclusterstorageenclosurename : windows_core::PCWSTR, dwtimeout : u32, dwflags : u32) -> u32); - RemoveClusterStorageNode(hcluster.into_param().abi(), lpszclusterstorageenclosurename.into_param().abi(), dwtimeout, dwflags) + RemoveClusterStorageNode(hcluster.param().abi(), lpszclusterstorageenclosurename.param().abi(), dwtimeout, dwflags) } #[inline] pub unsafe fn RemoveCrossClusterGroupSetDependency(hdependentgroupset: P0, lpremoteclustername: P1, lpremotegroupsetname: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveCrossClusterGroupSetDependency(hdependentgroupset : HGROUPSET, lpremoteclustername : windows_core::PCWSTR, lpremotegroupsetname : windows_core::PCWSTR) -> u32); - RemoveCrossClusterGroupSetDependency(hdependentgroupset.into_param().abi(), lpremoteclustername.into_param().abi(), lpremotegroupsetname.into_param().abi()) + RemoveCrossClusterGroupSetDependency(hdependentgroupset.param().abi(), lpremoteclustername.param().abi(), lpremotegroupsetname.param().abi()) } #[inline] pub unsafe fn RemoveResourceFromClusterSharedVolumes(hresource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RemoveResourceFromClusterSharedVolumes(hresource : HRESOURCE) -> u32); - RemoveResourceFromClusterSharedVolumes(hresource.into_param().abi()) + RemoveResourceFromClusterSharedVolumes(hresource.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilAddUnknownProperties(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut core::ffi::c_void, pcboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, poutpropertylist, pcboutpropertylistsize, pcbbytesreturned, pcbrequired) + ResUtilAddUnknownProperties(hkeyclusterkey.param().abi(), ppropertytable, poutpropertylist, pcboutpropertylistsize, pcbbytesreturned, pcbrequired) } #[inline] pub unsafe fn ResUtilCreateDirectoryTree(pszpath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilCreateDirectoryTree(pszpath : windows_core::PCWSTR) -> u32); - ResUtilCreateDirectoryTree(pszpath.into_param().abi()) + ResUtilCreateDirectoryTree(pszpath.param().abi()) } #[inline] pub unsafe fn ResUtilDupGroup(group: P0, copy: *mut HGROUP) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("resutils.dll" "system" fn ResUtilDupGroup(group : HGROUP, copy : *mut HGROUP) -> u32); - ResUtilDupGroup(group.into_param().abi(), copy) + ResUtilDupGroup(group.param().abi(), copy) } #[inline] pub unsafe fn ResUtilDupParameterBlock(poutparams: *mut u8, pinparams: *const u8, ppropertytable: *const RESUTIL_PROPERTY_ITEM) -> u32 { @@ -2477,45 +2477,45 @@ pub unsafe fn ResUtilDupParameterBlock(poutparams: *mut u8, pinparams: *const u8 #[inline] pub unsafe fn ResUtilDupResource(group: P0, copy: *mut HRESOURCE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilDupResource(group : HRESOURCE, copy : *mut HRESOURCE) -> u32); - ResUtilDupResource(group.into_param().abi(), copy) + ResUtilDupResource(group.param().abi(), copy) } #[inline] pub unsafe fn ResUtilDupString(pszinstring: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilDupString(pszinstring : windows_core::PCWSTR) -> windows_core::PWSTR); - ResUtilDupString(pszinstring.into_param().abi()) + ResUtilDupString(pszinstring.param().abi()) } #[inline] pub unsafe fn ResUtilEnumGroups(hcluster: P0, hself: P1, prescallback: LPGROUP_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param
, { windows_targets::link!("resutils.dll" "system" fn ResUtilEnumGroups(hcluster : HCLUSTER, hself : HGROUP, prescallback : LPGROUP_CALLBACK_EX, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilEnumGroups(hcluster.into_param().abi(), hself.into_param().abi(), prescallback, pparameter) + ResUtilEnumGroups(hcluster.param().abi(), hself.param().abi(), prescallback, pparameter) } #[inline] pub unsafe fn ResUtilEnumGroupsEx(hcluster: P0, hself: P1, grouptype: CLUSGROUP_TYPE, prescallback: LPGROUP_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam
, + P0: windows_core::Param, + P1: windows_core::Param
, { 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(hcluster.into_param().abi(), hself.into_param().abi(), grouptype, prescallback, pparameter) + ResUtilEnumGroupsEx(hcluster.param().abi(), hself.param().abi(), grouptype, prescallback, pparameter) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilEnumPrivateProperties(hkeyclusterkey: P0, pszoutproperties: windows_core::PWSTR, cboutpropertiessize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), core::mem::transmute(pszoutproperties), cboutpropertiessize, pcbbytesreturned, pcbrequired) + ResUtilEnumPrivateProperties(hkeyclusterkey.param().abi(), core::mem::transmute(pszoutproperties), cboutpropertiessize, pcbbytesreturned, pcbrequired) } #[inline] pub unsafe fn ResUtilEnumProperties(ppropertytable: *const RESUTIL_PROPERTY_ITEM, pszoutproperties: windows_core::PWSTR, cboutpropertiessize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 { @@ -2525,120 +2525,120 @@ pub unsafe fn ResUtilEnumProperties(ppropertytable: *const RESUTIL_PROPERTY_ITEM #[inline] pub unsafe fn ResUtilEnumResources(hself: P0, lpszrestypename: P1, prescallback: LPRESOURCE_CALLBACK, pparameter: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hself.into_param().abi(), lpszrestypename.into_param().abi(), prescallback, pparameter) + ResUtilEnumResources(hself.param().abi(), lpszrestypename.param().abi(), prescallback, pparameter) } #[inline] pub unsafe fn ResUtilEnumResourcesEx(hcluster: P0, hself: P1, lpszrestypename: P2, prescallback: LPRESOURCE_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hcluster.into_param().abi(), hself.into_param().abi(), lpszrestypename.into_param().abi(), prescallback, pparameter) + ResUtilEnumResourcesEx(hcluster.param().abi(), hself.param().abi(), lpszrestypename.param().abi(), prescallback, pparameter) } #[inline] pub unsafe fn ResUtilEnumResourcesEx2(hcluster: P0, hself: P1, lpszrestypename: P2, prescallback: LPRESOURCE_CALLBACK_EX, pparameter: *mut core::ffi::c_void, dwdesiredaccess: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hcluster.into_param().abi(), hself.into_param().abi(), lpszrestypename.into_param().abi(), prescallback, pparameter, dwdesiredaccess) + ResUtilEnumResourcesEx2(hcluster.param().abi(), hself.param().abi(), lpszrestypename.param().abi(), prescallback, pparameter, dwdesiredaccess) } #[inline] pub unsafe fn ResUtilExpandEnvironmentStrings(pszsrc: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilExpandEnvironmentStrings(pszsrc : windows_core::PCWSTR) -> windows_core::PWSTR); - ResUtilExpandEnvironmentStrings(pszsrc.into_param().abi()) + ResUtilExpandEnvironmentStrings(pszsrc.param().abi()) } #[inline] pub unsafe fn ResUtilFindBinaryProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, pbpropertyvalue: Option<*mut *mut u8>, pcbpropertyvaluesize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), core::mem::transmute(pbpropertyvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbpropertyvaluesize.unwrap_or(std::ptr::null_mut()))) + ResUtilFindBinaryProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pbpropertyvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbpropertyvaluesize.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ResUtilFindDependentDiskResourceDriveLetter(hcluster: P0, hresource: P1, pszdriveletter: windows_core::PWSTR, pcchdriveletter: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilFindDependentDiskResourceDriveLetter(hcluster : HCLUSTER, hresource : HRESOURCE, pszdriveletter : windows_core::PWSTR, pcchdriveletter : *mut u32) -> u32); - ResUtilFindDependentDiskResourceDriveLetter(hcluster.into_param().abi(), hresource.into_param().abi(), core::mem::transmute(pszdriveletter), pcchdriveletter) + ResUtilFindDependentDiskResourceDriveLetter(hcluster.param().abi(), hresource.param().abi(), core::mem::transmute(pszdriveletter), pcchdriveletter) } #[inline] pub unsafe fn ResUtilFindDwordProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, pdwpropertyvalue: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), pdwpropertyvalue) + ResUtilFindDwordProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), pdwpropertyvalue) } #[inline] pub unsafe fn ResUtilFindExpandSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, pszpropertyvalue: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(std::ptr::null_mut()))) + ResUtilFindExpandSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ResUtilFindExpandedSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, pszpropertyvalue: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(std::ptr::null_mut()))) + ResUtilFindExpandedSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ResUtilFindFileTimeProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, pftpropertyvalue: *mut super::super::Foundation::FILETIME) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), pftpropertyvalue) + ResUtilFindFileTimeProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), pftpropertyvalue) } #[inline] pub unsafe fn ResUtilFindLongProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, plpropertyvalue: *mut i32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), plpropertyvalue) + ResUtilFindLongProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), plpropertyvalue) } #[inline] pub unsafe fn ResUtilFindMultiSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, pszpropertyvalue: *mut windows_core::PWSTR, pcbpropertyvaluesize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), pszpropertyvalue, pcbpropertyvaluesize) + ResUtilFindMultiSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), pszpropertyvalue, pcbpropertyvaluesize) } #[inline] pub unsafe fn ResUtilFindSzProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, pszpropertyvalue: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(std::ptr::null_mut()))) + ResUtilFindSzProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), core::mem::transmute(pszpropertyvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ResUtilFindULargeIntegerProperty(ppropertylist: *const core::ffi::c_void, cbpropertylistsize: u32, pszpropertyname: P0, plpropertyvalue: *mut u64) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppropertylist, cbpropertylistsize, pszpropertyname.into_param().abi(), plpropertyvalue) + ResUtilFindULargeIntegerProperty(ppropertylist, cbpropertylistsize, pszpropertyname.param().abi(), plpropertyvalue) } #[inline] pub unsafe fn ResUtilFreeEnvironment(lpenvironment: *mut core::ffi::c_void) -> u32 { @@ -2654,10 +2654,10 @@ pub unsafe fn ResUtilFreeParameterBlock(poutparams: *mut u8, pinparams: *const u #[inline] pub unsafe fn ResUtilGetAllProperties(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut core::ffi::c_void, cboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, poutpropertylist, cboutpropertylistsize, pcbbytesreturned, pcbrequired) + ResUtilGetAllProperties(hkeyclusterkey.param().abi(), ppropertytable, poutpropertylist, cboutpropertylistsize, pcbbytesreturned, 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 { @@ -2668,59 +2668,59 @@ pub unsafe fn ResUtilGetBinaryProperty(ppboutvalue: *mut *mut u8, pcboutvaluesiz #[inline] pub unsafe fn ResUtilGetBinaryValue(hkeyclusterkey: P0, pszvaluename: P1, ppboutvalue: *mut *mut u8, pcboutvaluesize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), ppboutvalue, pcboutvaluesize) + ResUtilGetBinaryValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), ppboutvalue, pcboutvaluesize) } #[inline] pub unsafe fn ResUtilGetClusterGroupType(hgroup: P0, grouptype: *mut CLUSGROUP_TYPE) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetClusterGroupType(hgroup : HGROUP, grouptype : *mut CLUSGROUP_TYPE) -> u32); - ResUtilGetClusterGroupType(hgroup.into_param().abi(), grouptype) + ResUtilGetClusterGroupType(hgroup.param().abi(), grouptype) } #[inline] pub unsafe fn ResUtilGetClusterId(hcluster: P0, guid: *mut windows_core::GUID) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetClusterId(hcluster : HCLUSTER, guid : *mut windows_core::GUID) -> u32); - ResUtilGetClusterId(hcluster.into_param().abi(), guid) + ResUtilGetClusterId(hcluster.param().abi(), guid) } #[inline] pub unsafe fn ResUtilGetClusterRoleState(hcluster: P0, eclusterrole: CLUSTER_ROLE) -> CLUSTER_ROLE_STATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetClusterRoleState(hcluster : HCLUSTER, eclusterrole : CLUSTER_ROLE) -> CLUSTER_ROLE_STATE); - ResUtilGetClusterRoleState(hcluster.into_param().abi(), eclusterrole) + ResUtilGetClusterRoleState(hcluster.param().abi(), eclusterrole) } #[inline] pub unsafe fn ResUtilGetCoreClusterResources(hcluster: P0, phclusternameresource: *mut HRESOURCE, phclusteripaddressresource: *mut HRESOURCE, phclusterquorumresource: *mut HRESOURCE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetCoreClusterResources(hcluster : HCLUSTER, phclusternameresource : *mut HRESOURCE, phclusteripaddressresource : *mut HRESOURCE, phclusterquorumresource : *mut HRESOURCE) -> u32); - ResUtilGetCoreClusterResources(hcluster.into_param().abi(), phclusternameresource, phclusteripaddressresource, phclusterquorumresource) + ResUtilGetCoreClusterResources(hcluster.param().abi(), phclusternameresource, phclusteripaddressresource, phclusterquorumresource) } #[inline] pub unsafe fn ResUtilGetCoreClusterResourcesEx(hclusterin: P0, phclusternameresourceout: Option<*mut HRESOURCE>, phclusterquorumresourceout: Option<*mut HRESOURCE>, dwdesiredaccess: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetCoreClusterResourcesEx(hclusterin : HCLUSTER, phclusternameresourceout : *mut HRESOURCE, phclusterquorumresourceout : *mut HRESOURCE, dwdesiredaccess : u32) -> u32); - ResUtilGetCoreClusterResourcesEx(hclusterin.into_param().abi(), core::mem::transmute(phclusternameresourceout.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phclusterquorumresourceout.unwrap_or(std::ptr::null_mut())), dwdesiredaccess) + ResUtilGetCoreClusterResourcesEx(hclusterin.param().abi(), core::mem::transmute(phclusternameresourceout.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phclusterquorumresourceout.unwrap_or(std::ptr::null_mut())), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetCoreGroup(hcluster: P0) -> HGROUP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetCoreGroup(hcluster : HCLUSTER) -> HGROUP); - ResUtilGetCoreGroup(hcluster.into_param().abi()) + ResUtilGetCoreGroup(hcluster.param().abi()) } #[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 { @@ -2731,19 +2731,19 @@ pub unsafe fn ResUtilGetDwordProperty(pdwoutvalue: *mut u32, pvaluestruct: *cons #[inline] pub unsafe fn ResUtilGetDwordValue(hkeyclusterkey: P0, pszvaluename: P1, pdwoutvalue: *mut u32, dwdefaultvalue: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), pdwoutvalue, dwdefaultvalue) + ResUtilGetDwordValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), pdwoutvalue, dwdefaultvalue) } #[inline] pub unsafe fn ResUtilGetEnvironmentWithNetName(hresource: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetEnvironmentWithNetName(hresource : HRESOURCE) -> *mut core::ffi::c_void); - ResUtilGetEnvironmentWithNetName(hresource.into_param().abi()) + ResUtilGetEnvironmentWithNetName(hresource.param().abi()) } #[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 { @@ -2758,47 +2758,47 @@ pub unsafe fn ResUtilGetLongProperty(ploutvalue: *mut i32, pvaluestruct: *const #[inline] pub unsafe fn ResUtilGetMultiSzProperty(ppszoutvalue: *mut windows_core::PWSTR, pcboutvaluesize: *mut u32, pvaluestruct: *const CLUSPROP_SZ, pszoldvalue: P0, cboldvaluesize: u32, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppszoutvalue, pcboutvaluesize, pvaluestruct, pszoldvalue.into_param().abi(), cboldvaluesize, pppropertylist, pcbpropertylistsize) + ResUtilGetMultiSzProperty(ppszoutvalue, pcboutvaluesize, pvaluestruct, pszoldvalue.param().abi(), cboldvaluesize, pppropertylist, pcbpropertylistsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetPrivateProperties(hkeyclusterkey: P0, poutpropertylist: *mut core::ffi::c_void, cboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), poutpropertylist, cboutpropertylistsize, pcbbytesreturned, pcbrequired) + ResUtilGetPrivateProperties(hkeyclusterkey.param().abi(), poutpropertylist, cboutpropertylistsize, pcbbytesreturned, pcbrequired) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetProperties(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut core::ffi::c_void, cboutpropertylistsize: u32, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, poutpropertylist, cboutpropertylistsize, pcbbytesreturned, pcbrequired) + ResUtilGetProperties(hkeyclusterkey.param().abi(), ppropertytable, poutpropertylist, cboutpropertylistsize, pcbbytesreturned, pcbrequired) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetPropertiesToParameterBlock(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutparams: *mut u8, bcheckforrequiredproperties: P1, psznameofpropinerror: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, poutparams, bcheckforrequiredproperties.into_param().abi(), psznameofpropinerror) + ResUtilGetPropertiesToParameterBlock(hkeyclusterkey.param().abi(), ppropertytable, poutparams, bcheckforrequiredproperties.param().abi(), psznameofpropinerror) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetProperty(hkeyclusterkey: P0, ppropertytableitem: *const RESUTIL_PROPERTY_ITEM, poutpropertyitem: *mut *mut core::ffi::c_void, pcboutpropertyitemsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytableitem, poutpropertyitem, pcboutpropertyitemsize) + ResUtilGetProperty(hkeyclusterkey.param().abi(), ppropertytableitem, poutpropertyitem, 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 { @@ -2809,157 +2809,157 @@ pub unsafe fn ResUtilGetPropertyFormats(ppropertytable: *const RESUTIL_PROPERTY_ #[inline] pub unsafe fn ResUtilGetPropertySize(hkeyclusterkey: P0, ppropertytableitem: *const RESUTIL_PROPERTY_ITEM, pcboutpropertylistsize: *mut u32, pnpropertycount: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytableitem, pcboutpropertylistsize, pnpropertycount) + ResUtilGetPropertySize(hkeyclusterkey.param().abi(), ppropertytableitem, pcboutpropertylistsize, pnpropertycount) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetQwordValue(hkeyclusterkey: P0, pszvaluename: P1, pqwoutvalue: *mut u64, qwdefaultvalue: u64) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), pqwoutvalue, qwdefaultvalue) + ResUtilGetQwordValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), pqwoutvalue, qwdefaultvalue) } #[inline] pub unsafe fn ResUtilGetResourceDependency(hself: P0, lpszresourcetype: P1) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependency(hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR) -> HRESOURCE); - ResUtilGetResourceDependency(hself.into_param().abi(), lpszresourcetype.into_param().abi()) + ResUtilGetResourceDependency(hself.param().abi(), lpszresourcetype.param().abi()) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByClass(hcluster: P0, hself: P1, prci: *mut CLUS_RESOURCE_CLASS_INFO, brecurse: P2) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hcluster.into_param().abi(), hself.into_param().abi(), prci, brecurse.into_param().abi()) + ResUtilGetResourceDependencyByClass(hcluster.param().abi(), hself.param().abi(), prci, brecurse.param().abi()) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByClassEx(hcluster: P0, hself: P1, prci: *mut CLUS_RESOURCE_CLASS_INFO, brecurse: P2, dwdesiredaccess: u32) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hcluster.into_param().abi(), hself.into_param().abi(), prci, brecurse.into_param().abi(), dwdesiredaccess) + ResUtilGetResourceDependencyByClassEx(hcluster.param().abi(), hself.param().abi(), prci, brecurse.param().abi(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByName(hcluster: P0, hself: P1, lpszresourcetype: P2, brecurse: P3) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hcluster.into_param().abi(), hself.into_param().abi(), lpszresourcetype.into_param().abi(), brecurse.into_param().abi()) + ResUtilGetResourceDependencyByName(hcluster.param().abi(), hself.param().abi(), lpszresourcetype.param().abi(), brecurse.param().abi()) } #[inline] pub unsafe fn ResUtilGetResourceDependencyByNameEx(hcluster: P0, hself: P1, lpszresourcetype: P2, brecurse: P3, dwdesiredaccess: u32) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hcluster.into_param().abi(), hself.into_param().abi(), lpszresourcetype.into_param().abi(), brecurse.into_param().abi(), dwdesiredaccess) + ResUtilGetResourceDependencyByNameEx(hcluster.param().abi(), hself.param().abi(), lpszresourcetype.param().abi(), brecurse.param().abi(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetResourceDependencyEx(hself: P0, lpszresourcetype: P1, dwdesiredaccess: u32) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hself.into_param().abi(), lpszresourcetype.into_param().abi(), dwdesiredaccess) + ResUtilGetResourceDependencyEx(hself.param().abi(), lpszresourcetype.param().abi(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetResourceDependentIPAddressProps(hresource: P0, pszaddress: windows_core::PWSTR, pcchaddress: *mut u32, pszsubnetmask: windows_core::PWSTR, pcchsubnetmask: *mut u32, psznetwork: windows_core::PWSTR, pcchnetwork: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hresource.into_param().abi(), core::mem::transmute(pszaddress), pcchaddress, core::mem::transmute(pszsubnetmask), pcchsubnetmask, core::mem::transmute(psznetwork), pcchnetwork) + ResUtilGetResourceDependentIPAddressProps(hresource.param().abi(), core::mem::transmute(pszaddress), pcchaddress, core::mem::transmute(pszsubnetmask), pcchsubnetmask, core::mem::transmute(psznetwork), pcchnetwork) } #[inline] pub unsafe fn ResUtilGetResourceName(hresource: P0, pszresourcename: windows_core::PWSTR, pcchresourcenameinout: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceName(hresource : HRESOURCE, pszresourcename : windows_core::PWSTR, pcchresourcenameinout : *mut u32) -> u32); - ResUtilGetResourceName(hresource.into_param().abi(), core::mem::transmute(pszresourcename), pcchresourcenameinout) + ResUtilGetResourceName(hresource.param().abi(), core::mem::transmute(pszresourcename), pcchresourcenameinout) } #[inline] pub unsafe fn ResUtilGetResourceNameDependency(lpszresourcename: P0, lpszresourcetype: P1) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceNameDependency(lpszresourcename : windows_core::PCWSTR, lpszresourcetype : windows_core::PCWSTR) -> HRESOURCE); - ResUtilGetResourceNameDependency(lpszresourcename.into_param().abi(), lpszresourcetype.into_param().abi()) + ResUtilGetResourceNameDependency(lpszresourcename.param().abi(), lpszresourcetype.param().abi()) } #[inline] pub unsafe fn ResUtilGetResourceNameDependencyEx(lpszresourcename: P0, lpszresourcetype: P1, dwdesiredaccess: u32) -> HRESOURCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszresourcetype.into_param().abi(), dwdesiredaccess) + ResUtilGetResourceNameDependencyEx(lpszresourcename.param().abi(), lpszresourcetype.param().abi(), dwdesiredaccess) } #[inline] pub unsafe fn ResUtilGetSzProperty(ppszoutvalue: *mut windows_core::PWSTR, pvaluestruct: *const CLUSPROP_SZ, pszoldvalue: P0, pppropertylist: *mut *mut u8, pcbpropertylistsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(ppszoutvalue, pvaluestruct, pszoldvalue.into_param().abi(), pppropertylist, pcbpropertylistsize) + ResUtilGetSzProperty(ppszoutvalue, pvaluestruct, pszoldvalue.param().abi(), pppropertylist, pcbpropertylistsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetSzValue(hkeyclusterkey: P0, pszvaluename: P1) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi()) + ResUtilGetSzValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi()) } #[inline] pub unsafe fn ResUtilGroupsEqual(hself: P0, hgroup: P1, pequal: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam
, + P0: windows_core::Param
, + P1: windows_core::Param
, { windows_targets::link!("resutils.dll" "system" fn ResUtilGroupsEqual(hself : HGROUP, hgroup : HGROUP, pequal : *mut super::super::Foundation:: BOOL) -> u32); - ResUtilGroupsEqual(hself.into_param().abi(), hgroup.into_param().abi(), pequal) + ResUtilGroupsEqual(hself.param().abi(), hgroup.param().abi(), pequal) } #[inline] pub unsafe fn ResUtilIsPathValid(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilIsPathValid(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ResUtilIsPathValid(pszpath.into_param().abi()) + ResUtilIsPathValid(pszpath.param().abi()) } #[inline] pub unsafe fn ResUtilIsResourceClassEqual(prci: *mut CLUS_RESOURCE_CLASS_INFO, hresource: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilIsResourceClassEqual(prci : *mut CLUS_RESOURCE_CLASS_INFO, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - ResUtilIsResourceClassEqual(prci, hresource.into_param().abi()) + ResUtilIsResourceClassEqual(prci, hresource.param().abi()) } #[inline] pub unsafe fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL { @@ -2969,10 +2969,10 @@ pub unsafe fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, righ #[inline] pub unsafe fn ResUtilNodeEnum(hcluster: P0, pnodecallback: LPNODE_CALLBACK, pparameter: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilNodeEnum(hcluster : HCLUSTER, pnodecallback : LPNODE_CALLBACK, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilNodeEnum(hcluster.into_param().abi(), pnodecallback, pparameter) + ResUtilNodeEnum(hcluster.param().abi(), pnodecallback, pparameter) } #[inline] pub unsafe fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL { @@ -2987,230 +2987,230 @@ pub unsafe fn ResUtilPropertyListFromParameterBlock(ppropertytable: *const RESUT #[inline] pub unsafe fn ResUtilRemoveResourceServiceEnvironment(pszservicename: P0, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pfnlogevent, hresourcehandle) + ResUtilRemoveResourceServiceEnvironment(pszservicename.param().abi(), pfnlogevent, hresourcehandle) } #[inline] pub unsafe fn ResUtilResourceDepEnum(hself: P0, enumtype: u32, prescallback: LPRESOURCE_CALLBACK_EX, pparameter: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilResourceDepEnum(hself : HRESOURCE, enumtype : u32, prescallback : LPRESOURCE_CALLBACK_EX, pparameter : *mut core::ffi::c_void) -> u32); - ResUtilResourceDepEnum(hself.into_param().abi(), enumtype, prescallback, pparameter) + ResUtilResourceDepEnum(hself.param().abi(), enumtype, prescallback, pparameter) } #[inline] pub unsafe fn ResUtilResourceTypesEqual(lpszresourcetypename: P0, hresource: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilResourceTypesEqual(lpszresourcetypename : windows_core::PCWSTR, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - ResUtilResourceTypesEqual(lpszresourcetypename.into_param().abi(), hresource.into_param().abi()) + ResUtilResourceTypesEqual(lpszresourcetypename.param().abi(), hresource.param().abi()) } #[inline] pub unsafe fn ResUtilResourcesEqual(hself: P0, hresource: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilResourcesEqual(hself : HRESOURCE, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); - ResUtilResourcesEqual(hself.into_param().abi(), hresource.into_param().abi()) + ResUtilResourcesEqual(hself.param().abi(), hresource.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetBinaryValue(hkeyclusterkey: P0, pszvaluename: P1, pbnewvalue: &[u8], ppboutvalue: Option<*mut *mut u8>, pcboutvaluesize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), core::mem::transmute(pbnewvalue.as_ptr()), pbnewvalue.len().try_into().unwrap(), core::mem::transmute(ppboutvalue.unwrap_or(std::ptr::null_mut())), pcboutvaluesize) + ResUtilSetBinaryValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), core::mem::transmute(pbnewvalue.as_ptr()), pbnewvalue.len().try_into().unwrap(), core::mem::transmute(ppboutvalue.unwrap_or(std::ptr::null_mut())), pcboutvaluesize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetDwordValue(hkeyclusterkey: P0, pszvaluename: P1, dwnewvalue: u32, pdwoutvalue: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), dwnewvalue, pdwoutvalue) + ResUtilSetDwordValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), dwnewvalue, pdwoutvalue) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetExpandSzValue(hkeyclusterkey: P0, pszvaluename: P1, psznewvalue: P2, ppszoutstring: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), psznewvalue.into_param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(std::ptr::null_mut()))) + ResUtilSetExpandSzValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), psznewvalue.param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetMultiSzValue(hkeyclusterkey: P0, pszvaluename: P1, psznewvalue: P2, cbnewvaluesize: u32, ppszoutvalue: Option<*mut windows_core::PWSTR>, pcboutvaluesize: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), psznewvalue.into_param().abi(), cbnewvaluesize, core::mem::transmute(ppszoutvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcboutvaluesize.unwrap_or(std::ptr::null_mut()))) + ResUtilSetMultiSzValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), psznewvalue.param().abi(), cbnewvaluesize, core::mem::transmute(ppszoutvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcboutvaluesize.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPrivatePropertyList(hkeyclusterkey: P0, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetPrivatePropertyList(hkeyclusterkey : super::super::System::Registry:: HKEY, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32) -> u32); - ResUtilSetPrivatePropertyList(hkeyclusterkey.into_param().abi(), pinpropertylist, cbinpropertylistsize) + ResUtilSetPrivatePropertyList(hkeyclusterkey.param().abi(), pinpropertylist, cbinpropertylistsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyParameterBlock(hkeyclusterkey: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, reserved, pinparams, pinpropertylist, cbinpropertylistsize, poutparams) + ResUtilSetPropertyParameterBlock(hkeyclusterkey.param().abi(), ppropertytable, reserved, pinparams, pinpropertylist, cbinpropertylistsize, poutparams) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyParameterBlockEx(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: *mut core::ffi::c_void, pinparams: *const u8, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, bforcewrite: P1, poutparams: *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, reserved, pinparams, pinpropertylist, cbinpropertylistsize, bforcewrite.into_param().abi(), poutparams) + ResUtilSetPropertyParameterBlockEx(hkeyclusterkey.param().abi(), ppropertytable, reserved, pinparams, pinpropertylist, cbinpropertylistsize, bforcewrite.param().abi(), poutparams) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyTable(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: Option<*const core::ffi::c_void>, ballowunknownproperties: P1, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, poutparams: Option<*mut u8>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), ballowunknownproperties.into_param().abi(), pinpropertylist, cbinpropertylistsize, core::mem::transmute(poutparams.unwrap_or(std::ptr::null_mut()))) + ResUtilSetPropertyTable(hkeyclusterkey.param().abi(), ppropertytable, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), ballowunknownproperties.param().abi(), pinpropertylist, cbinpropertylistsize, core::mem::transmute(poutparams.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyTableEx(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: *mut core::ffi::c_void, ballowunknownproperties: P1, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, bforcewrite: P2, poutparams: *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, reserved, ballowunknownproperties.into_param().abi(), pinpropertylist, cbinpropertylistsize, bforcewrite.into_param().abi(), poutparams) + ResUtilSetPropertyTableEx(hkeyclusterkey.param().abi(), ppropertytable, reserved, ballowunknownproperties.param().abi(), pinpropertylist, cbinpropertylistsize, bforcewrite.param().abi(), poutparams) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetQwordValue(hkeyclusterkey: P0, pszvaluename: P1, qwnewvalue: u64, pqwoutvalue: Option<*mut u64>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), qwnewvalue, core::mem::transmute(pqwoutvalue.unwrap_or(std::ptr::null_mut()))) + ResUtilSetQwordValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), qwnewvalue, core::mem::transmute(pqwoutvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ResUtilSetResourceServiceEnvironment(pszservicename: P0, hresource: P1, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hresource.into_param().abi(), pfnlogevent, hresourcehandle) + ResUtilSetResourceServiceEnvironment(pszservicename.param().abi(), hresource.param().abi(), pfnlogevent, hresourcehandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ResUtilSetResourceServiceStartParameters(pszservicename: P0, schscmhandle: P1, phservice: *mut super::super::Security::SC_HANDLE, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetResourceServiceStartParameters(pszservicename : windows_core::PCWSTR, schscmhandle : super::super::Security:: SC_HANDLE, phservice : *mut super::super::Security:: SC_HANDLE, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); - ResUtilSetResourceServiceStartParameters(pszservicename.into_param().abi(), schscmhandle.into_param().abi(), phservice, pfnlogevent, hresourcehandle) + ResUtilSetResourceServiceStartParameters(pszservicename.param().abi(), schscmhandle.param().abi(), phservice, pfnlogevent, hresourcehandle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ResUtilSetResourceServiceStartParametersEx(pszservicename: P0, schscmhandle: P1, phservice: *mut super::super::Security::SC_HANDLE, dwdesiredaccess: u32, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilSetResourceServiceStartParametersEx(pszservicename : windows_core::PCWSTR, schscmhandle : super::super::Security:: SC_HANDLE, phservice : *mut super::super::Security:: SC_HANDLE, dwdesiredaccess : u32, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); - ResUtilSetResourceServiceStartParametersEx(pszservicename.into_param().abi(), schscmhandle.into_param().abi(), phservice, dwdesiredaccess, pfnlogevent, hresourcehandle) + ResUtilSetResourceServiceStartParametersEx(pszservicename.param().abi(), schscmhandle.param().abi(), phservice, dwdesiredaccess, pfnlogevent, hresourcehandle) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetSzValue(hkeyclusterkey: P0, pszvaluename: P1, psznewvalue: P2, ppszoutstring: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), pszvaluename.into_param().abi(), psznewvalue.into_param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(std::ptr::null_mut()))) + ResUtilSetSzValue(hkeyclusterkey.param().abi(), pszvaluename.param().abi(), psznewvalue.param().abi(), core::mem::transmute(ppszoutstring.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetUnknownProperties(hkeyclusterkey: P0, ppropertytable: *const RESUTIL_PROPERTY_ITEM, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyclusterkey.into_param().abi(), ppropertytable, pinpropertylist, cbinpropertylistsize) + ResUtilSetUnknownProperties(hkeyclusterkey.param().abi(), ppropertytable, pinpropertylist, cbinpropertylistsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetValueEx(hkeyclusterkey: P0, valuename: P1, valuetype: u32, valuedata: &[u8], flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkeyclusterkey.into_param().abi(), valuename.into_param().abi(), valuetype, core::mem::transmute(valuedata.as_ptr()), valuedata.len().try_into().unwrap(), flags) + ResUtilSetValueEx(hkeyclusterkey.param().abi(), valuename.param().abi(), valuetype, core::mem::transmute(valuedata.as_ptr()), valuedata.len().try_into().unwrap(), flags) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ResUtilStartResourceService(pszservicename: P0, phservicehandle: *mut super::super::Security::SC_HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilStartResourceService(pszservicename : windows_core::PCWSTR, phservicehandle : *mut super::super::Security:: SC_HANDLE) -> u32); - ResUtilStartResourceService(pszservicename.into_param().abi(), phservicehandle) + ResUtilStartResourceService(pszservicename.param().abi(), phservicehandle) } #[inline] pub unsafe fn ResUtilStopResourceService(pszservicename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilStopResourceService(pszservicename : windows_core::PCWSTR) -> u32); - ResUtilStopResourceService(pszservicename.into_param().abi()) + ResUtilStopResourceService(pszservicename.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ResUtilStopService(hservicehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilStopService(hservicehandle : super::super::Security:: SC_HANDLE) -> u32); - ResUtilStopService(hservicehandle.into_param().abi()) + ResUtilStopService(hservicehandle.param().abi()) } #[inline] pub unsafe fn ResUtilTerminateServiceProcessFromResDll(dwservicepid: u32, boffline: P0, pdwresourcestate: *mut u32, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwservicepid, boffline.into_param().abi(), pdwresourcestate, pfnlogevent, hresourcehandle) + ResUtilTerminateServiceProcessFromResDll(dwservicepid, boffline.param().abi(), pdwresourcestate, pfnlogevent, hresourcehandle) } #[inline] pub unsafe fn ResUtilVerifyPrivatePropertyList(pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32) -> u32 { @@ -3220,27 +3220,27 @@ pub unsafe fn ResUtilVerifyPrivatePropertyList(pinpropertylist: *const core::ffi #[inline] pub unsafe fn ResUtilVerifyPropertyTable(ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: Option<*const core::ffi::c_void>, ballowunknownproperties: P0, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, poutparams: Option<*mut u8>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ppropertytable, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), ballowunknownproperties.into_param().abi(), pinpropertylist, cbinpropertylistsize, core::mem::transmute(poutparams.unwrap_or(std::ptr::null_mut()))) + ResUtilVerifyPropertyTable(ppropertytable, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), ballowunknownproperties.param().abi(), pinpropertylist, cbinpropertylistsize, core::mem::transmute(poutparams.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ResUtilVerifyResourceService(pszservicename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyResourceService(pszservicename : windows_core::PCWSTR) -> u32); - ResUtilVerifyResourceService(pszservicename.into_param().abi()) + ResUtilVerifyResourceService(pszservicename.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ResUtilVerifyService(hservicehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyService(hservicehandle : super::super::Security:: SC_HANDLE) -> u32); - ResUtilVerifyService(hservicehandle.into_param().abi()) + ResUtilVerifyService(hservicehandle.param().abi()) } #[inline] pub unsafe fn ResUtilVerifyShutdownSafe(flags: u32, reason: u32, presult: *mut u32) -> u32 { @@ -3251,12 +3251,12 @@ pub unsafe fn ResUtilVerifyShutdownSafe(flags: u32, reason: u32, presult: *mut u #[inline] pub unsafe fn ResUtilsDeleteKeyTree(key: P0, keyname: P1, treatnokeyaserror: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(key.into_param().abi(), keyname.into_param().abi(), treatnokeyaserror.into_param().abi()) + ResUtilsDeleteKeyTree(key.param().abi(), keyname.param().abi(), treatnokeyaserror.param().abi()) } #[inline] pub unsafe fn ResetAllAppInstanceVersions() -> u32 { @@ -3266,238 +3266,238 @@ pub unsafe fn ResetAllAppInstanceVersions() -> u32 { #[inline] pub unsafe fn RestartClusterResource(hresource: P0, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RestartClusterResource(hresource : HRESOURCE, dwflags : u32) -> u32); - RestartClusterResource(hresource.into_param().abi(), dwflags) + RestartClusterResource(hresource.param().abi(), dwflags) } #[inline] pub unsafe fn RestartClusterResourceEx(hresource: P0, dwflags: u32, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RestartClusterResourceEx(hresource : HRESOURCE, dwflags : u32, lpszreason : windows_core::PCWSTR) -> u32); - RestartClusterResourceEx(hresource.into_param().abi(), dwflags, lpszreason.into_param().abi()) + RestartClusterResourceEx(hresource.param().abi(), dwflags, lpszreason.param().abi()) } #[inline] pub unsafe fn RestoreClusterDatabase(lpszpathname: P0, bforce: P1, lpszquorumdriveletter: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn RestoreClusterDatabase(lpszpathname : windows_core::PCWSTR, bforce : super::super::Foundation:: BOOL, lpszquorumdriveletter : windows_core::PCWSTR) -> u32); - RestoreClusterDatabase(lpszpathname.into_param().abi(), bforce.into_param().abi(), lpszquorumdriveletter.into_param().abi()) + RestoreClusterDatabase(lpszpathname.param().abi(), bforce.param().abi(), lpszquorumdriveletter.param().abi()) } #[inline] pub unsafe fn ResumeClusterNode(hnode: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ResumeClusterNode(hnode : HNODE) -> u32); - ResumeClusterNode(hnode.into_param().abi()) + ResumeClusterNode(hnode.param().abi()) } #[inline] pub unsafe fn ResumeClusterNodeEx(hnode: P0, eresumefailbacktype: CLUSTER_NODE_RESUME_FAILBACK_TYPE, dwresumeflagsreserved: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn ResumeClusterNodeEx(hnode : HNODE, eresumefailbacktype : CLUSTER_NODE_RESUME_FAILBACK_TYPE, dwresumeflagsreserved : u32) -> u32); - ResumeClusterNodeEx(hnode.into_param().abi(), eresumefailbacktype, dwresumeflagsreserved) + ResumeClusterNodeEx(hnode.param().abi(), eresumefailbacktype, dwresumeflagsreserved) } #[inline] pub unsafe fn ResumeClusterNodeEx2(hnode: P0, eresumefailbacktype: CLUSTER_NODE_RESUME_FAILBACK_TYPE, dwresumeflagsreserved: u32, lpszreason: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hnode.into_param().abi(), eresumefailbacktype, dwresumeflagsreserved, lpszreason.into_param().abi()) + ResumeClusterNodeEx2(hnode.param().abi(), eresumefailbacktype, dwresumeflagsreserved, lpszreason.param().abi()) } #[inline] pub unsafe fn SetAppInstanceCsvFlags(processhandle: P0, mask: u32, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntlanman.dll" "system" fn SetAppInstanceCsvFlags(processhandle : super::super::Foundation:: HANDLE, mask : u32, flags : u32) -> u32); - SetAppInstanceCsvFlags(processhandle.into_param().abi(), mask, flags) + SetAppInstanceCsvFlags(processhandle.param().abi(), mask, flags) } #[inline] pub unsafe fn SetClusterGroupName(hgroup: P0, lpszgroupname: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupName(hgroup : HGROUP, lpszgroupname : windows_core::PCWSTR) -> u32); - SetClusterGroupName(hgroup.into_param().abi(), lpszgroupname.into_param().abi()) + SetClusterGroupName(hgroup.param().abi(), lpszgroupname.param().abi()) } #[inline] pub unsafe fn SetClusterGroupNameEx(hgroup: P0, lpszgroupname: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupNameEx(hgroup : HGROUP, lpszgroupname : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterGroupNameEx(hgroup.into_param().abi(), lpszgroupname.into_param().abi(), lpszreason.into_param().abi()) + SetClusterGroupNameEx(hgroup.param().abi(), lpszgroupname.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterGroupNodeList(hgroup: P0, nodelist: Option<&[HNODE]>) -> u32 where - P0: windows_core::IntoParam
, + P0: windows_core::Param
, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupNodeList(hgroup : HGROUP, nodecount : u32, nodelist : *const HNODE) -> u32); - SetClusterGroupNodeList(hgroup.into_param().abi(), 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.param().abi(), 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: P0, nodelist: &[HNODE], lpszreason: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupNodeListEx(hgroup : HGROUP, nodecount : u32, nodelist : *const HNODE, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterGroupNodeListEx(hgroup.into_param().abi(), nodelist.len().try_into().unwrap(), core::mem::transmute(nodelist.as_ptr()), lpszreason.into_param().abi()) + SetClusterGroupNodeListEx(hgroup.param().abi(), nodelist.len().try_into().unwrap(), core::mem::transmute(nodelist.as_ptr()), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterGroupSetDependencyExpression(hgroupset: P0, lpszdependencyexprssion: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupSetDependencyExpression(hgroupset : HGROUPSET, lpszdependencyexprssion : windows_core::PCWSTR) -> u32); - SetClusterGroupSetDependencyExpression(hgroupset.into_param().abi(), lpszdependencyexprssion.into_param().abi()) + SetClusterGroupSetDependencyExpression(hgroupset.param().abi(), lpszdependencyexprssion.param().abi()) } #[inline] pub unsafe fn SetClusterGroupSetDependencyExpressionEx(hgroupset: P0, lpszdependencyexpression: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterGroupSetDependencyExpressionEx(hgroupset : HGROUPSET, lpszdependencyexpression : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterGroupSetDependencyExpressionEx(hgroupset.into_param().abi(), lpszdependencyexpression.into_param().abi(), lpszreason.into_param().abi()) + SetClusterGroupSetDependencyExpressionEx(hgroupset.param().abi(), lpszdependencyexpression.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterName(hcluster: P0, lpsznewclustername: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterName(hcluster : HCLUSTER, lpsznewclustername : windows_core::PCWSTR) -> u32); - SetClusterName(hcluster.into_param().abi(), lpsznewclustername.into_param().abi()) + SetClusterName(hcluster.param().abi(), lpsznewclustername.param().abi()) } #[inline] pub unsafe fn SetClusterNameEx(hcluster: P0, lpsznewclustername: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterNameEx(hcluster : HCLUSTER, lpsznewclustername : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterNameEx(hcluster.into_param().abi(), lpsznewclustername.into_param().abi(), lpszreason.into_param().abi()) + SetClusterNameEx(hcluster.param().abi(), lpsznewclustername.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterNetworkName(hnetwork: P0, lpszname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterNetworkName(hnetwork : HNETWORK, lpszname : windows_core::PCWSTR) -> u32); - SetClusterNetworkName(hnetwork.into_param().abi(), lpszname.into_param().abi()) + SetClusterNetworkName(hnetwork.param().abi(), lpszname.param().abi()) } #[inline] pub unsafe fn SetClusterNetworkNameEx(hnetwork: P0, lpszname: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterNetworkNameEx(hnetwork : HNETWORK, lpszname : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterNetworkNameEx(hnetwork.into_param().abi(), lpszname.into_param().abi(), lpszreason.into_param().abi()) + SetClusterNetworkNameEx(hnetwork.param().abi(), lpszname.param().abi(), lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterNetworkPriorityOrder(hcluster: P0, networklist: &[HNETWORK]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterNetworkPriorityOrder(hcluster : HCLUSTER, networkcount : u32, networklist : *const HNETWORK) -> u32); - SetClusterNetworkPriorityOrder(hcluster.into_param().abi(), networklist.len().try_into().unwrap(), core::mem::transmute(networklist.as_ptr())) + SetClusterNetworkPriorityOrder(hcluster.param().abi(), networklist.len().try_into().unwrap(), core::mem::transmute(networklist.as_ptr())) } #[inline] pub unsafe fn SetClusterQuorumResource(hresource: P0, lpszdevicename: P1, dwmaxquologsize: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterQuorumResource(hresource : HRESOURCE, lpszdevicename : windows_core::PCWSTR, dwmaxquologsize : u32) -> u32); - SetClusterQuorumResource(hresource.into_param().abi(), lpszdevicename.into_param().abi(), dwmaxquologsize) + SetClusterQuorumResource(hresource.param().abi(), lpszdevicename.param().abi(), dwmaxquologsize) } #[inline] pub unsafe fn SetClusterQuorumResourceEx(hresource: P0, lpszdevicename: P1, dwmaxquorumlogsize: u32, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hresource.into_param().abi(), lpszdevicename.into_param().abi(), dwmaxquorumlogsize, lpszreason.into_param().abi()) + SetClusterQuorumResourceEx(hresource.param().abi(), lpszdevicename.param().abi(), dwmaxquorumlogsize, lpszreason.param().abi()) } #[inline] pub unsafe fn SetClusterResourceDependencyExpression(hresource: P0, lpszdependencyexpression: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterResourceDependencyExpression(hresource : HRESOURCE, lpszdependencyexpression : windows_core::PCWSTR) -> u32); - SetClusterResourceDependencyExpression(hresource.into_param().abi(), lpszdependencyexpression.into_param().abi()) + SetClusterResourceDependencyExpression(hresource.param().abi(), lpszdependencyexpression.param().abi()) } #[inline] pub unsafe fn SetClusterResourceName(hresource: P0, lpszresourcename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterResourceName(hresource : HRESOURCE, lpszresourcename : windows_core::PCWSTR) -> u32); - SetClusterResourceName(hresource.into_param().abi(), lpszresourcename.into_param().abi()) + SetClusterResourceName(hresource.param().abi(), lpszresourcename.param().abi()) } #[inline] pub unsafe fn SetClusterResourceNameEx(hresource: P0, lpszresourcename: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetClusterResourceNameEx(hresource : HRESOURCE, lpszresourcename : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetClusterResourceNameEx(hresource.into_param().abi(), lpszresourcename.into_param().abi(), lpszreason.into_param().abi()) + SetClusterResourceNameEx(hresource.param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpsznewpassword.into_param().abi(), dwflags, core::mem::transmute(lpreturnstatusbuffer.unwrap_or(std::ptr::null_mut())), lpcbreturnstatusbuffersize) + SetClusterServiceAccountPassword(lpszclustername.param().abi(), lpsznewpassword.param().abi(), dwflags, core::mem::transmute(lpreturnstatusbuffer.unwrap_or(std::ptr::null_mut())), lpcbreturnstatusbuffersize) } #[inline] pub unsafe fn SetGroupDependencyExpression(hgroup: P0, lpszdependencyexpression: P1) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetGroupDependencyExpression(hgroup : HGROUP, lpszdependencyexpression : windows_core::PCWSTR) -> u32); - SetGroupDependencyExpression(hgroup.into_param().abi(), lpszdependencyexpression.into_param().abi()) + SetGroupDependencyExpression(hgroup.param().abi(), lpszdependencyexpression.param().abi()) } #[inline] pub unsafe fn SetGroupDependencyExpressionEx(hgroup: P0, lpszdependencyexpression: P1, lpszreason: P2) -> u32 where - P0: windows_core::IntoParam
, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param
, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("clusapi.dll" "system" fn SetGroupDependencyExpressionEx(hgroup : HGROUP, lpszdependencyexpression : windows_core::PCWSTR, lpszreason : windows_core::PCWSTR) -> u32); - SetGroupDependencyExpressionEx(hgroup.into_param().abi(), lpszdependencyexpression.into_param().abi(), lpszreason.into_param().abi()) + SetGroupDependencyExpressionEx(hgroup.param().abi(), lpszdependencyexpression.param().abi(), lpszreason.param().abi()) } windows_core::imp::define_interface!(IGetClusterDataInfo, IGetClusterDataInfo_Vtbl, 0x97dede51_fc6b_11cf_b5f5_00a0c90ab505); windows_core::imp::interface_hierarchy!(IGetClusterDataInfo, windows_core::IUnknown); @@ -3649,18 +3649,18 @@ impl ISClusApplication { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ClusterNames(&self, bstrdomainname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ClusterNames)(windows_core::Interface::as_raw(self), bstrdomainname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ClusterNames)(windows_core::Interface::as_raw(self), bstrdomainname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenCluster(&self, bstrclustername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenCluster)(windows_core::Interface::as_raw(self), bstrclustername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenCluster)(windows_core::Interface::as_raw(self), bstrclustername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3699,22 +3699,22 @@ impl ISClusCryptoKeys { } pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddItem(&self, bstrcryptokey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), bstrcryptokey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), bstrcryptokey.param().abi()).ok() } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3785,10 +3785,10 @@ impl ISClusDisks { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3894,10 +3894,10 @@ impl ISClusNetInterfaces { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3948,9 +3948,9 @@ impl ISClusNetwork { } pub unsafe fn SetName(&self, bstrnetworkname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrnetworkname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrnetworkname.param().abi()).ok() } pub unsafe fn NetworkID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4025,10 +4025,10 @@ impl ISClusNetworkNetInterfaces { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4063,10 +4063,10 @@ impl ISClusNetworks { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4208,10 +4208,10 @@ impl ISClusNodeNetInterfaces { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4246,10 +4246,10 @@ impl ISClusNodes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4393,10 +4393,10 @@ impl ISClusPartitions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4430,25 +4430,25 @@ impl ISClusProperties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrname: P0, varvalue: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), varvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), varvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UseDefaultValue(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UseDefaultValue)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UseDefaultValue)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } pub unsafe fn SaveChanges(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4522,9 +4522,9 @@ impl ISClusProperty { } pub unsafe fn SetValue(&self, varvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), varvalue.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4595,9 +4595,9 @@ impl ISClusPropertyValue { } pub unsafe fn SetValue(&self, varvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), varvalue.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4660,23 +4660,23 @@ impl ISClusPropertyValueData { } pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateItem(&self, varvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), varvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), varvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4706,25 +4706,25 @@ impl ISClusPropertyValues { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrname: P0, varvalue: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), varvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), varvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4779,22 +4779,22 @@ impl ISClusRegistryKeys { } pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddItem(&self, bstrregistrykey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), bstrregistrykey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), bstrregistrykey.param().abi()).ok() } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4828,38 +4828,38 @@ impl ISClusResDependencies { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrresourcename: P0, bstrresourcetype: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.into_param().abi(), bstrresourcetype.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.param().abi(), bstrresourcetype.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddItem(&self, presource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), presource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), presource.param().abi()).ok() } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4904,38 +4904,38 @@ impl ISClusResDependents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrresourcename: P0, bstrresourcetype: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.into_param().abi(), bstrresourcetype.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.param().abi(), bstrresourcetype.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddItem(&self, presource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), presource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), presource.param().abi()).ok() } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4996,9 +4996,9 @@ impl ISClusResGroup { } pub unsafe fn SetName(&self, bstrgroupname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi()).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5024,26 +5024,26 @@ impl ISClusResGroup { } pub unsafe fn Online(&self, vartimeout: P0, varnode: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Online)(windows_core::Interface::as_raw(self), vartimeout.into_param().abi(), varnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Online)(windows_core::Interface::as_raw(self), vartimeout.param().abi(), varnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Move(&self, vartimeout: P0, varnode: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), vartimeout.into_param().abi(), varnode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), vartimeout.param().abi(), varnode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Offline(&self, vartimeout: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Offline)(windows_core::Interface::as_raw(self), vartimeout.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Offline)(windows_core::Interface::as_raw(self), vartimeout.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Cluster(&self) -> windows_core::Result { @@ -5116,23 +5116,23 @@ impl ISClusResGroupPreferredOwnerNodes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertItem(&self, pnode: P0, nposition: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), pnode.into_param().abi(), nposition).ok() + (windows_core::Interface::vtable(self).InsertItem)(windows_core::Interface::as_raw(self), pnode.param().abi(), nposition).ok() } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } pub unsafe fn Modified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5144,9 +5144,9 @@ impl ISClusResGroupPreferredOwnerNodes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddItem(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5192,25 +5192,25 @@ impl ISClusResGroupResources { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrresourcename: P0, bstrresourcetype: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.into_param().abi(), bstrresourcetype.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.param().abi(), bstrresourcetype.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5250,24 +5250,24 @@ impl ISClusResGroups { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrresourcegroupname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcegroupname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcegroupname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5307,23 +5307,23 @@ impl ISClusResPossibleOwnerNodes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddItem(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } pub unsafe fn RemoveItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } pub unsafe fn Modified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5461,10 +5461,10 @@ impl ISClusResTypePossibleOwnerNodes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5499,25 +5499,25 @@ impl ISClusResTypeResources { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrresourcename: P0, bstrgroupname: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.into_param().abi(), bstrgroupname.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.param().abi(), bstrgroupname.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5557,26 +5557,26 @@ impl ISClusResTypes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrresourcetypename: P0, bstrdisplayname: P1, bstrresourcetypedll: P2, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcetypename.into_param().abi(), bstrdisplayname.into_param().abi(), bstrresourcetypedll.into_param().abi(), dwlooksalivepollinterval, dwisalivepollinterval, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcetypename.param().abi(), bstrdisplayname.param().abi(), bstrresourcetypedll.param().abi(), dwlooksalivepollinterval, dwisalivepollinterval, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5632,9 +5632,9 @@ impl ISClusResource { } pub unsafe fn SetName(&self, bstrresourcename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrresourcename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrresourcename.param().abi()).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5646,9 +5646,9 @@ impl ISClusResource { } pub unsafe fn BecomeQuorumResource(&self, bstrdevicepath: P0, lmaxlogsize: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BecomeQuorumResource)(windows_core::Interface::as_raw(self), bstrdevicepath.into_param().abi(), lmaxlogsize).ok() + (windows_core::Interface::vtable(self).BecomeQuorumResource)(windows_core::Interface::as_raw(self), bstrdevicepath.param().abi(), lmaxlogsize).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -5667,31 +5667,31 @@ impl ISClusResource { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ChangeResourceGroup(&self, presourcegroup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeResourceGroup)(windows_core::Interface::as_raw(self), presourcegroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeResourceGroup)(windows_core::Interface::as_raw(self), presourcegroup.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddResourceNode(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddResourceNode)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddResourceNode)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveResourceNode(&self, pnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveResourceNode)(windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveResourceNode)(windows_core::Interface::as_raw(self), pnode.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CanResourceBeDependent(&self, presource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanResourceBeDependent)(windows_core::Interface::as_raw(self), presource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CanResourceBeDependent)(windows_core::Interface::as_raw(self), presource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PossibleOwnerNodes(&self) -> windows_core::Result { @@ -5757,9 +5757,9 @@ impl ISClusResource { } pub unsafe fn SetMaintenanceMode(&self, bmaintenancemode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMaintenanceMode)(windows_core::Interface::as_raw(self), bmaintenancemode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMaintenanceMode)(windows_core::Interface::as_raw(self), bmaintenancemode.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5873,26 +5873,26 @@ impl ISClusResources { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateItem(&self, bstrresourcename: P0, bstrresourcetype: P1, bstrgroupname: P2, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.into_param().abi(), bstrresourcetype.into_param().abi(), bstrgroupname.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), bstrresourcename.param().abi(), bstrresourcetype.param().abi(), bstrgroupname.param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteItem(&self, varindex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), varindex.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6038,9 +6038,9 @@ impl ISCluster { } pub unsafe fn Open(&self, bstrclustername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), bstrclustername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), bstrclustername.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6048,9 +6048,9 @@ impl ISCluster { } pub unsafe fn SetName(&self, bstrclustername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrclustername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrclustername.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Version(&self) -> windows_core::Result { @@ -6060,9 +6060,9 @@ impl ISCluster { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetQuorumResource(&self, pclusterresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuorumResource)(windows_core::Interface::as_raw(self), pclusterresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuorumResource)(windows_core::Interface::as_raw(self), pclusterresource.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QuorumResource(&self) -> windows_core::Result { @@ -6082,9 +6082,9 @@ impl ISCluster { } pub unsafe fn SetQuorumPath(&self, ppath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuorumPath)(windows_core::Interface::as_raw(self), ppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuorumPath)(windows_core::Interface::as_raw(self), ppath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Nodes(&self) -> windows_core::Result { @@ -6201,10 +6201,10 @@ impl ISClusterNames { } pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DomainName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6240,10 +6240,10 @@ impl ISDomainNames { } pub unsafe fn get_Item(&self, varindex: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), varindex.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6260,10 +6260,10 @@ windows_core::imp::interface_hierarchy!(IWCContextMenuCallback, windows_core::IU impl IWCContextMenuCallback { pub unsafe fn AddExtensionMenuItem(&self, lpszname: P0, lpszstatusbartext: P1, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExtensionMenuItem)(windows_core::Interface::as_raw(self), lpszname.into_param().abi(), lpszstatusbartext.into_param().abi(), ncommandid, nsubmenucommandid, uflags).ok() + (windows_core::Interface::vtable(self).AddExtensionMenuItem)(windows_core::Interface::as_raw(self), lpszname.param().abi(), lpszstatusbartext.param().abi(), ncommandid, nsubmenucommandid, uflags).ok() } } #[repr(C)] @@ -6291,9 +6291,9 @@ impl IWCWizard97Callback { } pub unsafe fn EnableNext(&self, hpage: *const i32, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), hpage, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), hpage, benable.param().abi()).ok() } } #[repr(C)] @@ -6310,9 +6310,9 @@ impl IWCWizardCallback { } pub unsafe fn EnableNext(&self, hpage: *const i32, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), hpage, benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableNext)(windows_core::Interface::as_raw(self), hpage, benable.param().abi()).ok() } } #[repr(C)] @@ -6326,10 +6326,10 @@ windows_core::imp::interface_hierarchy!(IWEExtendContextMenu, windows_core::IUnk impl IWEExtendContextMenu { pub unsafe fn AddContextMenuItems(&self, pidata: P0, picallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddContextMenuItems)(windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddContextMenuItems)(windows_core::Interface::as_raw(self), pidata.param().abi(), picallback.param().abi()).ok() } } #[repr(C)] @@ -6342,10 +6342,10 @@ windows_core::imp::interface_hierarchy!(IWEExtendPropertySheet, windows_core::IU impl IWEExtendPropertySheet { pub unsafe fn CreatePropertySheetPages(&self, pidata: P0, picallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePropertySheetPages)(windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePropertySheetPages)(windows_core::Interface::as_raw(self), pidata.param().abi(), picallback.param().abi()).ok() } } #[repr(C)] @@ -6358,10 +6358,10 @@ windows_core::imp::interface_hierarchy!(IWEExtendWizard, windows_core::IUnknown) impl IWEExtendWizard { pub unsafe fn CreateWizardPages(&self, pidata: P0, picallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateWizardPages)(windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateWizardPages)(windows_core::Interface::as_raw(self), pidata.param().abi(), picallback.param().abi()).ok() } } #[repr(C)] @@ -6374,10 +6374,10 @@ windows_core::imp::interface_hierarchy!(IWEExtendWizard97, windows_core::IUnknow impl IWEExtendWizard97 { pub unsafe fn CreateWizard97Pages(&self, pidata: P0, picallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateWizard97Pages)(windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateWizard97Pages)(windows_core::Interface::as_raw(self), pidata.param().abi(), picallback.param().abi()).ok() } } #[repr(C)] @@ -6390,9 +6390,9 @@ windows_core::imp::interface_hierarchy!(IWEInvokeCommand, windows_core::IUnknown impl IWEInvokeCommand { pub unsafe fn InvokeCommand(&self, ncommandid: u32, pidata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), ncommandid, pidata.into_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 9e1d4f9e19..29006e20b5 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs @@ -2,45 +2,45 @@ #[inline] pub unsafe fn HttpAddFragmentToCache(requestqueuehandle: P0, urlprefix: P1, datachunk: *const HTTP_DATA_CHUNK, cachepolicy: *const HTTP_CACHE_POLICY, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpAddFragmentToCache(requestqueuehandle.into_param().abi(), urlprefix.into_param().abi(), datachunk, cachepolicy, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpAddFragmentToCache(requestqueuehandle.param().abi(), urlprefix.param().abi(), datachunk, cachepolicy, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpAddUrl(requestqueuehandle: P0, fullyqualifiedurl: P1, reserved: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(requestqueuehandle.into_param().abi(), fullyqualifiedurl.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) + HttpAddUrl(requestqueuehandle.param().abi(), fullyqualifiedurl.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpAddUrlToUrlGroup(urlgroupid: u64, pfullyqualifiedurl: P0, urlcontext: u64, reserved: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpAddUrlToUrlGroup(urlgroupid : u64, pfullyqualifiedurl : windows_core::PCWSTR, urlcontext : u64, reserved : u32) -> u32); - HttpAddUrlToUrlGroup(urlgroupid, pfullyqualifiedurl.into_param().abi(), urlcontext, reserved) + HttpAddUrlToUrlGroup(urlgroupid, pfullyqualifiedurl.param().abi(), urlcontext, reserved) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpCancelHttpRequest(requestqueuehandle: P0, requestid: u64, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpCancelHttpRequest(requestqueuehandle : super::super::Foundation:: HANDLE, requestid : u64, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpCancelHttpRequest(requestqueuehandle.into_param().abi(), requestid, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpCancelHttpRequest(requestqueuehandle.param().abi(), requestid, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpCloseRequestQueue(requestqueuehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpCloseRequestQueue(requestqueuehandle : super::super::Foundation:: HANDLE) -> u32); - HttpCloseRequestQueue(requestqueuehandle.into_param().abi()) + HttpCloseRequestQueue(requestqueuehandle.param().abi()) } #[inline] pub unsafe fn HttpCloseServerSession(serversessionid: u64) -> u32 { @@ -61,10 +61,10 @@ pub unsafe fn HttpCreateHttpHandle(requestqueuehandle: *mut super::super::Founda #[inline] pub unsafe fn HttpCreateRequestQueue(version: HTTPAPI_VERSION, name: P0, securityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, flags: u32, requestqueuehandle: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpCreateRequestQueue(version : HTTPAPI_VERSION, name : windows_core::PCWSTR, securityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, flags : u32, requestqueuehandle : *mut super::super::Foundation:: HANDLE) -> u32); - HttpCreateRequestQueue(core::mem::transmute(version), name.into_param().abi(), core::mem::transmute(securityattributes.unwrap_or(std::ptr::null())), flags, requestqueuehandle) + HttpCreateRequestQueue(core::mem::transmute(version), name.param().abi(), core::mem::transmute(securityattributes.unwrap_or(std::ptr::null())), flags, requestqueuehandle) } #[inline] pub unsafe fn HttpCreateServerSession(version: HTTPAPI_VERSION, serversessionid: *mut u64, reserved: u32) -> u32 { @@ -79,49 +79,49 @@ pub unsafe fn HttpCreateUrlGroup(serversessionid: u64, purlgroupid: *mut u64, re #[inline] pub unsafe fn HttpDeclarePush(requestqueuehandle: P0, requestid: u64, verb: HTTP_VERB, path: P1, query: P2, headers: Option<*const HTTP_REQUEST_HEADERS>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(requestqueuehandle.into_param().abi(), requestid, verb, path.into_param().abi(), query.into_param().abi(), core::mem::transmute(headers.unwrap_or(std::ptr::null()))) + HttpDeclarePush(requestqueuehandle.param().abi(), requestid, verb, path.param().abi(), query.param().abi(), core::mem::transmute(headers.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpDelegateRequestEx(requestqueuehandle: P0, delegatequeuehandle: P1, requestid: u64, delegateurlgroupid: u64, propertyinfosetsize: u32, propertyinfoset: *const HTTP_DELEGATE_REQUEST_PROPERTY_INFO) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(requestqueuehandle.into_param().abi(), delegatequeuehandle.into_param().abi(), requestid, delegateurlgroupid, propertyinfosetsize, propertyinfoset) + HttpDelegateRequestEx(requestqueuehandle.param().abi(), delegatequeuehandle.param().abi(), requestid, delegateurlgroupid, propertyinfosetsize, propertyinfoset) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpDeleteServiceConfiguration(servicehandle: P0, configid: HTTP_SERVICE_CONFIG_ID, pconfiginformation: *const core::ffi::c_void, configinformationlength: u32, poverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(servicehandle.into_param().abi(), configid, pconfiginformation, configinformationlength, core::mem::transmute(poverlapped.unwrap_or(std::ptr::null()))) + HttpDeleteServiceConfiguration(servicehandle.param().abi(), configid, pconfiginformation, configinformationlength, core::mem::transmute(poverlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpFindUrlGroupId(fullyqualifiedurl: P0, requestqueuehandle: P1, urlgroupid: *mut u64) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), requestqueuehandle.into_param().abi(), urlgroupid) + HttpFindUrlGroupId(fullyqualifiedurl.param().abi(), requestqueuehandle.param().abi(), urlgroupid) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpFlushResponseCache(requestqueuehandle: P0, urlprefix: P1, flags: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpFlushResponseCache(requestqueuehandle : super::super::Foundation:: HANDLE, urlprefix : windows_core::PCWSTR, flags : u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpFlushResponseCache(requestqueuehandle.into_param().abi(), urlprefix.into_param().abi(), flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpFlushResponseCache(requestqueuehandle.param().abi(), urlprefix.param().abi(), flags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpGetExtension(version: HTTPAPI_VERSION, extension: u32, buffer: *mut core::ffi::c_void, buffersize: u32) -> u32 { @@ -141,18 +141,18 @@ pub unsafe fn HttpIsFeatureSupported(featureid: HTTP_FEATURE_ID) -> super::super #[inline] pub unsafe fn HttpPrepareUrl(reserved: Option<*const core::ffi::c_void>, flags: u32, url: P0, preparedurl: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpPrepareUrl(reserved : *const core::ffi::c_void, flags : u32, url : windows_core::PCWSTR, preparedurl : *mut windows_core::PWSTR) -> u32); - HttpPrepareUrl(core::mem::transmute(reserved.unwrap_or(std::ptr::null())), flags, url.into_param().abi(), preparedurl) + HttpPrepareUrl(core::mem::transmute(reserved.unwrap_or(std::ptr::null())), flags, url.param().abi(), preparedurl) } #[inline] pub unsafe fn HttpQueryRequestQueueProperty(requestqueuehandle: P0, property: HTTP_SERVER_PROPERTY, propertyinformation: Option<*mut core::ffi::c_void>, propertyinformationlength: u32, reserved1: u32, returnlength: Option<*mut u32>, reserved2: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(requestqueuehandle.into_param().abi(), property, core::mem::transmute(propertyinformation.unwrap_or(std::ptr::null_mut())), propertyinformationlength, reserved1, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) + HttpQueryRequestQueueProperty(requestqueuehandle.param().abi(), property, core::mem::transmute(propertyinformation.unwrap_or(std::ptr::null_mut())), propertyinformationlength, reserved1, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) } #[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 { @@ -163,10 +163,10 @@ pub unsafe fn HttpQueryServerSessionProperty(serversessionid: u64, property: HTT #[inline] pub unsafe fn HttpQueryServiceConfiguration(servicehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(servicehandle.into_param().abi(), configid, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), inputlength, core::mem::transmute(poutput.unwrap_or(std::ptr::null_mut())), outputlength, core::mem::transmute(preturnlength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poverlapped.unwrap_or(std::ptr::null()))) + HttpQueryServiceConfiguration(servicehandle.param().abi(), configid, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), inputlength, core::mem::transmute(poutput.unwrap_or(std::ptr::null_mut())), outputlength, core::mem::transmute(preturnlength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poverlapped.unwrap_or(std::ptr::null()))) } #[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 { @@ -177,74 +177,74 @@ pub unsafe fn HttpQueryUrlGroupProperty(urlgroupid: u64, property: HTTP_SERVER_P #[inline] pub unsafe fn HttpReadFragmentFromCache(requestqueuehandle: P0, urlprefix: P1, byterange: Option<*const HTTP_BYTE_RANGE>, buffer: *mut core::ffi::c_void, bufferlength: u32, bytesread: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpReadFragmentFromCache(requestqueuehandle.into_param().abi(), urlprefix.into_param().abi(), core::mem::transmute(byterange.unwrap_or(std::ptr::null())), buffer, bufferlength, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpReadFragmentFromCache(requestqueuehandle.param().abi(), urlprefix.param().abi(), core::mem::transmute(byterange.unwrap_or(std::ptr::null())), buffer, bufferlength, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpReceiveClientCertificate(requestqueuehandle: P0, connectionid: u64, flags: u32, sslclientcertinfo: *mut HTTP_SSL_CLIENT_CERT_INFO, sslclientcertinfosize: u32, bytesreceived: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpReceiveClientCertificate(requestqueuehandle.into_param().abi(), connectionid, flags, sslclientcertinfo, sslclientcertinfosize, core::mem::transmute(bytesreceived.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpReceiveClientCertificate(requestqueuehandle.param().abi(), connectionid, flags, sslclientcertinfo, sslclientcertinfosize, core::mem::transmute(bytesreceived.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_System_IO"))] #[inline] pub unsafe fn HttpReceiveHttpRequest(requestqueuehandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(requestqueuehandle.into_param().abi(), requestid, flags, requestbuffer, requestbufferlength, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) + HttpReceiveHttpRequest(requestqueuehandle.param().abi(), requestid, flags, requestbuffer, requestbufferlength, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpReceiveRequestEntityBody(requestqueuehandle: P0, requestid: u64, flags: u32, entitybuffer: *mut core::ffi::c_void, entitybufferlength: u32, bytesreturned: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpReceiveRequestEntityBody(requestqueuehandle.into_param().abi(), requestid, flags, entitybuffer, entitybufferlength, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpReceiveRequestEntityBody(requestqueuehandle.param().abi(), requestid, flags, entitybuffer, entitybufferlength, core::mem::transmute(bytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpRemoveUrl(requestqueuehandle: P0, fullyqualifiedurl: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpRemoveUrl(requestqueuehandle : super::super::Foundation:: HANDLE, fullyqualifiedurl : windows_core::PCWSTR) -> u32); - HttpRemoveUrl(requestqueuehandle.into_param().abi(), fullyqualifiedurl.into_param().abi()) + HttpRemoveUrl(requestqueuehandle.param().abi(), fullyqualifiedurl.param().abi()) } #[inline] pub unsafe fn HttpRemoveUrlFromUrlGroup(urlgroupid: u64, pfullyqualifiedurl: P0, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpRemoveUrlFromUrlGroup(urlgroupid : u64, pfullyqualifiedurl : windows_core::PCWSTR, flags : u32) -> u32); - HttpRemoveUrlFromUrlGroup(urlgroupid, pfullyqualifiedurl.into_param().abi(), flags) + HttpRemoveUrlFromUrlGroup(urlgroupid, pfullyqualifiedurl.param().abi(), flags) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpSendHttpResponse(requestqueuehandle: P0, 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: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, logdata: Option<*const HTTP_LOG_DATA>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : *const super::super::System::IO:: OVERLAPPED, logdata : *const HTTP_LOG_DATA) -> u32); - HttpSendHttpResponse(requestqueuehandle.into_param().abi(), requestid, flags, httpresponse, core::mem::transmute(cachepolicy.unwrap_or(std::ptr::null())), core::mem::transmute(bytessent.unwrap_or(std::ptr::null_mut())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), core::mem::transmute(logdata.unwrap_or(std::ptr::null()))) + HttpSendHttpResponse(requestqueuehandle.param().abi(), requestid, flags, httpresponse, core::mem::transmute(cachepolicy.unwrap_or(std::ptr::null())), core::mem::transmute(bytessent.unwrap_or(std::ptr::null_mut())), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), core::mem::transmute(logdata.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpSendResponseEntityBody(requestqueuehandle: P0, requestid: u64, flags: u32, entitychunks: Option<&[HTTP_DATA_CHUNK]>, bytessent: Option<*mut u32>, reserved1: Option<*const core::ffi::c_void>, reserved2: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, logdata: Option<*const HTTP_LOG_DATA>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : *const super::super::System::IO:: OVERLAPPED, logdata : *const HTTP_LOG_DATA) -> u32); HttpSendResponseEntityBody( - requestqueuehandle.into_param().abi(), + requestqueuehandle.param().abi(), requestid, flags, entitychunks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -260,18 +260,18 @@ where #[inline] pub unsafe fn HttpSetRequestProperty(requestqueuehandle: P0, id: u64, propertyid: HTTP_REQUEST_PROPERTY, input: Option<*const core::ffi::c_void>, inputpropertysize: u32, overlapped: *const super::super::System::IO::OVERLAPPED) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(requestqueuehandle.into_param().abi(), id, propertyid, core::mem::transmute(input.unwrap_or(std::ptr::null())), inputpropertysize, overlapped) + HttpSetRequestProperty(requestqueuehandle.param().abi(), id, propertyid, core::mem::transmute(input.unwrap_or(std::ptr::null())), inputpropertysize, overlapped) } #[inline] pub unsafe fn HttpSetRequestQueueProperty(requestqueuehandle: P0, property: HTTP_SERVER_PROPERTY, propertyinformation: *const core::ffi::c_void, propertyinformationlength: u32, reserved1: u32, reserved2: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(requestqueuehandle.into_param().abi(), property, propertyinformation, propertyinformationlength, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) + HttpSetRequestQueueProperty(requestqueuehandle.param().abi(), property, propertyinformation, propertyinformationlength, reserved1, core::mem::transmute(reserved2.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpSetServerSessionProperty(serversessionid: u64, property: HTTP_SERVER_PROPERTY, propertyinformation: *const core::ffi::c_void, propertyinformationlength: u32) -> u32 { @@ -282,10 +282,10 @@ pub unsafe fn HttpSetServerSessionProperty(serversessionid: u64, property: HTTP_ #[inline] pub unsafe fn HttpSetServiceConfiguration(servicehandle: P0, configid: HTTP_SERVICE_CONFIG_ID, pconfiginformation: *const core::ffi::c_void, configinformationlength: u32, poverlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(servicehandle.into_param().abi(), configid, pconfiginformation, configinformationlength, core::mem::transmute(poverlapped.unwrap_or(std::ptr::null()))) + HttpSetServiceConfiguration(servicehandle.param().abi(), configid, pconfiginformation, configinformationlength, core::mem::transmute(poverlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HttpSetUrlGroupProperty(urlgroupid: u64, property: HTTP_SERVER_PROPERTY, propertyinformation: *const core::ffi::c_void, propertyinformationlength: u32) -> u32 { @@ -295,10 +295,10 @@ pub unsafe fn HttpSetUrlGroupProperty(urlgroupid: u64, property: HTTP_SERVER_PRO #[inline] pub unsafe fn HttpShutdownRequestQueue(requestqueuehandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpShutdownRequestQueue(requestqueuehandle : super::super::Foundation:: HANDLE) -> u32); - HttpShutdownRequestQueue(requestqueuehandle.into_param().abi()) + HttpShutdownRequestQueue(requestqueuehandle.param().abi()) } #[inline] pub unsafe fn HttpTerminate(flags: HTTP_INITIALIZE, preserved: Option<*mut core::ffi::c_void>) -> u32 { @@ -309,37 +309,37 @@ pub unsafe fn HttpTerminate(flags: HTTP_INITIALIZE, preserved: Option<*mut core: #[inline] pub unsafe fn HttpUpdateServiceConfiguration(handle: P0, configid: HTTP_SERVICE_CONFIG_ID, configinfo: *const core::ffi::c_void, configinfolength: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), configid, configinfo, configinfolength, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpUpdateServiceConfiguration(handle.param().abi(), configid, configinfo, configinfolength, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpWaitForDemandStart(requestqueuehandle: P0, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpWaitForDemandStart(requestqueuehandle : super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpWaitForDemandStart(requestqueuehandle.into_param().abi(), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpWaitForDemandStart(requestqueuehandle.param().abi(), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpWaitForDisconnect(requestqueuehandle: P0, connectionid: u64, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpWaitForDisconnect(requestqueuehandle : super::super::Foundation:: HANDLE, connectionid : u64, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpWaitForDisconnect(requestqueuehandle.into_param().abi(), connectionid, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpWaitForDisconnect(requestqueuehandle.param().abi(), connectionid, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn HttpWaitForDisconnectEx(requestqueuehandle: P0, connectionid: u64, reserved: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("httpapi.dll" "system" fn HttpWaitForDisconnectEx(requestqueuehandle : super::super::Foundation:: HANDLE, connectionid : u64, reserved : u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); - HttpWaitForDisconnectEx(requestqueuehandle.into_param().abi(), connectionid, reserved, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + HttpWaitForDisconnectEx(requestqueuehandle.param().abi(), connectionid, reserved, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } 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 11d55b658e..b20395cb2e 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs @@ -61,10 +61,10 @@ pub unsafe fn ber_init(pberval: *mut LDAP_BERVAL) -> *mut BerElement { #[inline] pub unsafe fn ber_next_element(pberelement: *mut BerElement, plen: *mut u32, opaque: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ber_next_element(pberelement : *mut BerElement, plen : *mut u32, opaque : windows_core::PCSTR) -> u32); - ber_next_element(pberelement, plen, opaque.into_param().abi()) + ber_next_element(pberelement, plen, opaque.param().abi()) } #[inline] pub unsafe fn ber_peek_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32 { @@ -74,18 +74,18 @@ pub unsafe fn ber_peek_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32 #[inline] pub unsafe fn ber_printf(pberelement: *mut BerElement, fmt: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ber_printf(pberelement : *mut BerElement, fmt : windows_core::PCSTR) -> i32); - ber_printf(pberelement, fmt.into_param().abi()) + ber_printf(pberelement, fmt.param().abi()) } #[inline] pub unsafe fn ber_scanf(pberelement: *mut BerElement, fmt: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ber_scanf(pberelement : *mut BerElement, fmt : windows_core::PCSTR) -> u32); - ber_scanf(pberelement, fmt.into_param().abi()) + ber_scanf(pberelement, fmt.param().abi()) } #[inline] pub unsafe fn ber_skip_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32 { @@ -95,26 +95,26 @@ pub unsafe fn ber_skip_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32 #[inline] pub unsafe fn cldap_open(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn cldap_open(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - cldap_open(hostname.into_param().abi(), portnumber) + cldap_open(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn cldap_openA(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn cldap_openA(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - cldap_openA(hostname.into_param().abi(), portnumber) + cldap_openA(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn cldap_openW(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn cldap_openW(hostname : windows_core::PCWSTR, portnumber : u32) -> *mut LDAP); - cldap_openW(hostname.into_param().abi(), portnumber) + cldap_openW(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_abandon(ld: *mut LDAP, msgid: u32) -> u32 { @@ -124,176 +124,176 @@ pub unsafe fn ldap_abandon(ld: *mut LDAP, msgid: u32) -> u32 { #[inline] pub unsafe fn ldap_add(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA) -> u32); - ldap_add(ld, dn.into_param().abi(), attrs) + ldap_add(ld, dn.param().abi(), attrs) } #[inline] pub unsafe fn ldap_addA(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_addA(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA) -> u32); - ldap_addA(ld, dn.into_param().abi(), attrs) + ldap_addA(ld, dn.param().abi(), attrs) } #[inline] pub unsafe fn ldap_addW(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_addW(ld : *mut LDAP, dn : windows_core::PCWSTR, attrs : *mut *mut LDAPModW) -> u32); - ldap_addW(ld, dn.into_param().abi(), attrs) + ldap_addW(ld, dn.param().abi(), attrs) } #[inline] pub unsafe fn ldap_add_ext(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_ext(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_add_ext(ld, dn.into_param().abi(), attrs, servercontrols, clientcontrols, messagenumber) + ldap_add_ext(ld, dn.param().abi(), attrs, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_add_extA(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_extA(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_add_extA(ld, dn.into_param().abi(), attrs, servercontrols, clientcontrols, messagenumber) + ldap_add_extA(ld, dn.param().abi(), attrs, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_add_extW(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_extW(ld : *mut LDAP, dn : windows_core::PCWSTR, attrs : *mut *mut LDAPModW, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, messagenumber : *mut u32) -> u32); - ldap_add_extW(ld, dn.into_param().abi(), attrs, servercontrols, clientcontrols, messagenumber) + ldap_add_extW(ld, dn.param().abi(), attrs, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_add_ext_s(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_ext_s(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_add_ext_s(ld, dn.into_param().abi(), attrs, servercontrols, clientcontrols) + ldap_add_ext_s(ld, dn.param().abi(), attrs, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_add_ext_sA(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_ext_sA(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_add_ext_sA(ld, dn.into_param().abi(), attrs, servercontrols, clientcontrols) + ldap_add_ext_sA(ld, dn.param().abi(), attrs, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_add_ext_sW(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_ext_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, attrs : *mut *mut LDAPModW, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32); - ldap_add_ext_sW(ld, dn.into_param().abi(), attrs, servercontrols, clientcontrols) + ldap_add_ext_sW(ld, dn.param().abi(), attrs, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_add_s(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_s(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA) -> u32); - ldap_add_s(ld, dn.into_param().abi(), attrs) + ldap_add_s(ld, dn.param().abi(), attrs) } #[inline] pub unsafe fn ldap_add_sA(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_sA(ld : *mut LDAP, dn : windows_core::PCSTR, attrs : *mut *mut LDAPModA) -> u32); - ldap_add_sA(ld, dn.into_param().abi(), attrs) + ldap_add_sA(ld, dn.param().abi(), attrs) } #[inline] pub unsafe fn ldap_add_sW(ld: *mut LDAP, dn: P0, attrs: *mut *mut LDAPModW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_add_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, attrs : *mut *mut LDAPModW) -> u32); - ldap_add_sW(ld, dn.into_param().abi(), attrs) + ldap_add_sW(ld, dn.param().abi(), attrs) } #[inline] pub unsafe fn ldap_bind(ld: *mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, dn.into_param().abi(), cred.into_param().abi(), method) + ldap_bind(ld, dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bindA(ld: *mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, dn.into_param().abi(), cred.into_param().abi(), method) + ldap_bindA(ld, dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bindW(ld: *mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, dn.into_param().abi(), cred.into_param().abi(), method) + ldap_bindW(ld, dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bind_s(ld: *mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, dn.into_param().abi(), cred.into_param().abi(), method) + ldap_bind_s(ld, dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bind_sA(ld: *mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, dn.into_param().abi(), cred.into_param().abi(), method) + ldap_bind_sA(ld, dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_bind_sW(ld: *mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, dn.into_param().abi(), cred.into_param().abi(), method) + ldap_bind_sW(ld, dn.param().abi(), cred.param().abi(), method) } #[inline] pub unsafe fn ldap_check_filterA(ld: *mut LDAP, searchfilter: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_check_filterA(ld : *mut LDAP, searchfilter : windows_core::PCSTR) -> u32); - ldap_check_filterA(ld, searchfilter.into_param().abi()) + ldap_check_filterA(ld, searchfilter.param().abi()) } #[inline] pub unsafe fn ldap_check_filterW(ld: *mut LDAP, searchfilter: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_check_filterW(ld : *mut LDAP, searchfilter : windows_core::PCWSTR) -> u32); - ldap_check_filterW(ld, searchfilter.into_param().abi()) + ldap_check_filterW(ld, searchfilter.param().abi()) } #[inline] pub unsafe fn ldap_cleanup(hinstance: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_cleanup(hinstance : super::super::Foundation:: HANDLE) -> u32); - ldap_cleanup(hinstance.into_param().abi()) + ldap_cleanup(hinstance.param().abi()) } #[inline] pub unsafe fn ldap_close_extended_op(ld: *mut LDAP, messagenumber: u32) -> u32 { @@ -303,122 +303,122 @@ pub unsafe fn ldap_close_extended_op(ld: *mut LDAP, messagenumber: u32) -> u32 { #[inline] pub unsafe fn ldap_compare(ld: *mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR) -> u32); - ldap_compare(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi()) + ldap_compare(ld, dn.param().abi(), attr.param().abi(), value.param().abi()) } #[inline] pub unsafe fn ldap_compareA(ld: *mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compareA(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR) -> u32); - ldap_compareA(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi()) + ldap_compareA(ld, dn.param().abi(), attr.param().abi(), value.param().abi()) } #[inline] pub unsafe fn ldap_compareW(ld: *mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compareW(ld : *mut LDAP, dn : windows_core::PCWSTR, attr : windows_core::PCWSTR, value : windows_core::PCWSTR) -> u32); - ldap_compareW(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi()) + ldap_compareW(ld, dn.param().abi(), attr.param().abi(), value.param().abi()) } #[inline] pub unsafe fn ldap_compare_ext(ld: *mut LDAP, dn: P0, attr: P1, value: P2, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_ext(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR, data : *mut LDAP_BERVAL, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_compare_ext(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi(), data, servercontrols, clientcontrols, messagenumber) + ldap_compare_ext(ld, dn.param().abi(), attr.param().abi(), value.param().abi(), data, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_compare_extA(ld: *mut LDAP, dn: P0, attr: P1, value: P2, data: Option<*const LDAP_BERVAL>, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_extA(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR, data : *const LDAP_BERVAL, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_compare_extA(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols, messagenumber) + ldap_compare_extA(ld, dn.param().abi(), attr.param().abi(), value.param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_compare_extW(ld: *mut LDAP, dn: P0, attr: P1, value: P2, data: Option<*const LDAP_BERVAL>, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_extW(ld : *mut LDAP, dn : windows_core::PCWSTR, attr : windows_core::PCWSTR, value : windows_core::PCWSTR, data : *const LDAP_BERVAL, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, messagenumber : *mut u32) -> u32); - ldap_compare_extW(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols, messagenumber) + ldap_compare_extW(ld, dn.param().abi(), attr.param().abi(), value.param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_compare_ext_s(ld: *mut LDAP, dn: P0, attr: P1, value: P2, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_ext_s(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR, data : *mut LDAP_BERVAL, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_compare_ext_s(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi(), data, servercontrols, clientcontrols) + ldap_compare_ext_s(ld, dn.param().abi(), attr.param().abi(), value.param().abi(), data, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_compare_ext_sA(ld: *mut LDAP, dn: P0, attr: P1, value: P2, data: Option<*const LDAP_BERVAL>, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_ext_sA(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR, data : *const LDAP_BERVAL, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_compare_ext_sA(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols) + ldap_compare_ext_sA(ld, dn.param().abi(), attr.param().abi(), value.param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_compare_ext_sW(ld: *mut LDAP, dn: P0, attr: P1, value: P2, data: Option<*const LDAP_BERVAL>, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_ext_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, attr : windows_core::PCWSTR, value : windows_core::PCWSTR, data : *const LDAP_BERVAL, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32); - ldap_compare_ext_sW(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols) + ldap_compare_ext_sW(ld, dn.param().abi(), attr.param().abi(), value.param().abi(), core::mem::transmute(data.unwrap_or(std::ptr::null())), servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_compare_s(ld: *mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_s(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR) -> u32); - ldap_compare_s(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi()) + ldap_compare_s(ld, dn.param().abi(), attr.param().abi(), value.param().abi()) } #[inline] pub unsafe fn ldap_compare_sA(ld: *mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_sA(ld : *mut LDAP, dn : windows_core::PCSTR, attr : windows_core::PCSTR, value : windows_core::PCSTR) -> u32); - ldap_compare_sA(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi()) + ldap_compare_sA(ld, dn.param().abi(), attr.param().abi(), value.param().abi()) } #[inline] pub unsafe fn ldap_compare_sW(ld: *mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_compare_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, attr : windows_core::PCWSTR, value : windows_core::PCWSTR) -> u32); - ldap_compare_sW(ld, dn.into_param().abi(), attr.into_param().abi(), value.into_param().abi()) + ldap_compare_sW(ld, dn.param().abi(), attr.param().abi(), value.param().abi()) } #[inline] pub unsafe fn ldap_conn_from_msg(primaryconn: *mut LDAP, res: *mut LDAPMessage) -> *mut LDAP { @@ -533,138 +533,138 @@ pub unsafe fn ldap_create_vlv_controlW(externalhandle: *mut LDAP, vlvinfo: *mut #[inline] pub unsafe fn ldap_delete(ld: *mut LDAP, dn: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete(ld : *mut LDAP, dn : windows_core::PCSTR) -> u32); - ldap_delete(ld, dn.into_param().abi()) + ldap_delete(ld, dn.param().abi()) } #[inline] pub unsafe fn ldap_deleteA(ld: *mut LDAP, dn: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_deleteA(ld : *mut LDAP, dn : windows_core::PCSTR) -> u32); - ldap_deleteA(ld, dn.into_param().abi()) + ldap_deleteA(ld, dn.param().abi()) } #[inline] pub unsafe fn ldap_deleteW(ld: *mut LDAP, dn: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_deleteW(ld : *mut LDAP, dn : windows_core::PCWSTR) -> u32); - ldap_deleteW(ld, dn.into_param().abi()) + ldap_deleteW(ld, dn.param().abi()) } #[inline] pub unsafe fn ldap_delete_ext(ld: *mut LDAP, dn: P0, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_ext(ld : *mut LDAP, dn : windows_core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_delete_ext(ld, dn.into_param().abi(), servercontrols, clientcontrols, messagenumber) + ldap_delete_ext(ld, dn.param().abi(), servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_delete_extA(ld: *mut LDAP, dn: P0, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_extA(ld : *mut LDAP, dn : windows_core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_delete_extA(ld, dn.into_param().abi(), servercontrols, clientcontrols, messagenumber) + ldap_delete_extA(ld, dn.param().abi(), servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_delete_extW(ld: *mut LDAP, dn: P0, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_extW(ld : *mut LDAP, dn : windows_core::PCWSTR, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, messagenumber : *mut u32) -> u32); - ldap_delete_extW(ld, dn.into_param().abi(), servercontrols, clientcontrols, messagenumber) + ldap_delete_extW(ld, dn.param().abi(), servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_delete_ext_s(ld: *mut LDAP, dn: P0, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_ext_s(ld : *mut LDAP, dn : windows_core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_delete_ext_s(ld, dn.into_param().abi(), servercontrols, clientcontrols) + ldap_delete_ext_s(ld, dn.param().abi(), servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_delete_ext_sA(ld: *mut LDAP, dn: P0, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_ext_sA(ld : *mut LDAP, dn : windows_core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_delete_ext_sA(ld, dn.into_param().abi(), servercontrols, clientcontrols) + ldap_delete_ext_sA(ld, dn.param().abi(), servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_delete_ext_sW(ld: *mut LDAP, dn: P0, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_ext_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32); - ldap_delete_ext_sW(ld, dn.into_param().abi(), servercontrols, clientcontrols) + ldap_delete_ext_sW(ld, dn.param().abi(), servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_delete_s(ld: *mut LDAP, dn: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_s(ld : *mut LDAP, dn : windows_core::PCSTR) -> u32); - ldap_delete_s(ld, dn.into_param().abi()) + ldap_delete_s(ld, dn.param().abi()) } #[inline] pub unsafe fn ldap_delete_sA(ld: *mut LDAP, dn: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_sA(ld : *mut LDAP, dn : windows_core::PCSTR) -> u32); - ldap_delete_sA(ld, dn.into_param().abi()) + ldap_delete_sA(ld, dn.param().abi()) } #[inline] pub unsafe fn ldap_delete_sW(ld: *mut LDAP, dn: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_sW(ld : *mut LDAP, dn : windows_core::PCWSTR) -> u32); - ldap_delete_sW(ld, dn.into_param().abi()) + ldap_delete_sW(ld, dn.param().abi()) } #[inline] pub unsafe fn ldap_dn2ufn(dn: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_dn2ufn(dn : windows_core::PCSTR) -> windows_core::PSTR); - ldap_dn2ufn(dn.into_param().abi()) + ldap_dn2ufn(dn.param().abi()) } #[inline] pub unsafe fn ldap_dn2ufnA(dn: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_dn2ufnA(dn : windows_core::PCSTR) -> windows_core::PSTR); - ldap_dn2ufnA(dn.into_param().abi()) + ldap_dn2ufnA(dn.param().abi()) } #[inline] pub unsafe fn ldap_dn2ufnW(dn: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_dn2ufnW(dn : windows_core::PCWSTR) -> windows_core::PWSTR); - ldap_dn2ufnW(dn.into_param().abi()) + ldap_dn2ufnW(dn.param().abi()) } #[inline] pub unsafe fn ldap_encode_sort_controlA(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, control: *mut LDAPControlA, criticality: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, control : *mut LDAPControlA, criticality : super::super::Foundation:: BOOLEAN) -> u32); - ldap_encode_sort_controlA(externalhandle, sortkeys, control, criticality.into_param().abi()) + ldap_encode_sort_controlA(externalhandle, sortkeys, control, criticality.param().abi()) } #[inline] pub unsafe fn ldap_encode_sort_controlW(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyW, control: *mut LDAPControlW, criticality: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, control : *mut LDAPControlW, criticality : super::super::Foundation:: BOOLEAN) -> u32); - ldap_encode_sort_controlW(externalhandle, sortkeys, control, criticality.into_param().abi()) + ldap_encode_sort_controlW(externalhandle, sortkeys, control, criticality.param().abi()) } #[inline] pub unsafe fn ldap_err2string(err: u32) -> windows_core::PSTR { @@ -699,66 +699,66 @@ pub unsafe fn ldap_escape_filter_elementW(sourcefilterelement: &[u8], destfilter #[inline] pub unsafe fn ldap_explode_dn(dn: P0, notypes: u32) -> *mut windows_core::PSTR where - P0: windows_core::IntoParam, + 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.into_param().abi(), notypes) + ldap_explode_dn(dn.param().abi(), notypes) } #[inline] pub unsafe fn ldap_explode_dnA(dn: P0, notypes: u32) -> *mut windows_core::PSTR where - P0: windows_core::IntoParam, + 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.into_param().abi(), notypes) + ldap_explode_dnA(dn.param().abi(), notypes) } #[inline] pub unsafe fn ldap_explode_dnW(dn: P0, notypes: u32) -> *mut windows_core::PWSTR where - P0: windows_core::IntoParam, + 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.into_param().abi(), notypes) + ldap_explode_dnW(dn.param().abi(), notypes) } #[inline] pub unsafe fn ldap_extended_operation(ld: *mut LDAP, oid: P0, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_extended_operation(ld : *mut LDAP, oid : windows_core::PCSTR, data : *mut LDAP_BERVAL, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_extended_operation(ld, oid.into_param().abi(), data, servercontrols, clientcontrols, messagenumber) + ldap_extended_operation(ld, oid.param().abi(), data, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_extended_operationA(ld: *mut LDAP, oid: P0, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_extended_operationA(ld : *mut LDAP, oid : windows_core::PCSTR, data : *mut LDAP_BERVAL, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_extended_operationA(ld, oid.into_param().abi(), data, servercontrols, clientcontrols, messagenumber) + ldap_extended_operationA(ld, oid.param().abi(), data, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_extended_operationW(ld: *mut LDAP, oid: P0, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_extended_operationW(ld : *mut LDAP, oid : windows_core::PCWSTR, data : *mut LDAP_BERVAL, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, messagenumber : *mut u32) -> u32); - ldap_extended_operationW(ld, oid.into_param().abi(), data, servercontrols, clientcontrols, messagenumber) + ldap_extended_operationW(ld, oid.param().abi(), data, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_extended_operation_sA(externalhandle: *mut LDAP, oid: P0, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, returnedoid: *mut windows_core::PSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_extended_operation_sA(externalhandle : *mut LDAP, oid : windows_core::PCSTR, data : *mut LDAP_BERVAL, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, returnedoid : *mut windows_core::PSTR, returneddata : *mut *mut LDAP_BERVAL) -> u32); - ldap_extended_operation_sA(externalhandle, oid.into_param().abi(), data, servercontrols, clientcontrols, returnedoid, returneddata) + ldap_extended_operation_sA(externalhandle, oid.param().abi(), data, servercontrols, clientcontrols, returnedoid, returneddata) } #[inline] pub unsafe fn ldap_extended_operation_sW(externalhandle: *mut LDAP, oid: P0, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, returnedoid: *mut windows_core::PWSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_extended_operation_sW(externalhandle : *mut LDAP, oid : windows_core::PCWSTR, data : *mut LDAP_BERVAL, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, returnedoid : *mut windows_core::PWSTR, returneddata : *mut *mut LDAP_BERVAL) -> u32); - ldap_extended_operation_sW(externalhandle, oid.into_param().abi(), data, servercontrols, clientcontrols, returnedoid, returneddata) + ldap_extended_operation_sW(externalhandle, oid.param().abi(), data, servercontrols, clientcontrols, returnedoid, returneddata) } #[inline] pub unsafe fn ldap_first_attribute(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut *mut BerElement) -> windows_core::PSTR { @@ -818,18 +818,18 @@ 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: P0, pagesize: u32, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(externalhandle, searchhandle.into_param().abi(), pagesize, messagenumber) + ldap_get_next_page(externalhandle, searchhandle.param().abi(), pagesize, messagenumber) } #[inline] pub unsafe fn ldap_get_next_page_s(externalhandle: *mut LDAP, searchhandle: P0, timeout: *mut LDAP_TIMEVAL, pagesize: u32, totalcount: *mut u32, results: *mut *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(externalhandle, searchhandle.into_param().abi(), timeout, pagesize, totalcount, results) + ldap_get_next_page_s(externalhandle, searchhandle.param().abi(), timeout, pagesize, totalcount, results) } #[inline] pub unsafe fn ldap_get_option(ld: *mut LDAP, option: i32, outvalue: *mut core::ffi::c_void) -> u32 { @@ -844,310 +844,310 @@ pub unsafe fn ldap_get_optionW(ld: *mut LDAP, option: i32, outvalue: *mut core:: #[inline] pub unsafe fn ldap_get_paged_count(externalhandle: *mut LDAP, searchblock: P0, totalcount: *mut u32, results: *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(externalhandle, searchblock.into_param().abi(), totalcount, results) + ldap_get_paged_count(externalhandle, searchblock.param().abi(), totalcount, results) } #[inline] pub unsafe fn ldap_get_values(ld: *mut LDAP, entry: *mut LDAPMessage, attr: P0) -> *mut windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_values(ld : *mut LDAP, entry : *mut LDAPMessage, attr : windows_core::PCSTR) -> *mut windows_core::PSTR); - ldap_get_values(ld, entry, attr.into_param().abi()) + ldap_get_values(ld, entry, attr.param().abi()) } #[inline] pub unsafe fn ldap_get_valuesA(ld: *mut LDAP, entry: *mut LDAPMessage, attr: P0) -> *mut windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_valuesA(ld : *mut LDAP, entry : *mut LDAPMessage, attr : windows_core::PCSTR) -> *mut windows_core::PSTR); - ldap_get_valuesA(ld, entry, attr.into_param().abi()) + ldap_get_valuesA(ld, entry, attr.param().abi()) } #[inline] pub unsafe fn ldap_get_valuesW(ld: *mut LDAP, entry: *mut LDAPMessage, attr: P0) -> *mut windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_valuesW(ld : *mut LDAP, entry : *mut LDAPMessage, attr : windows_core::PCWSTR) -> *mut windows_core::PWSTR); - ldap_get_valuesW(ld, entry, attr.into_param().abi()) + ldap_get_valuesW(ld, entry, attr.param().abi()) } #[inline] pub unsafe fn ldap_get_values_len(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_values_len(externalhandle : *mut LDAP, message : *mut LDAPMessage, attr : windows_core::PCSTR) -> *mut *mut LDAP_BERVAL); - ldap_get_values_len(externalhandle, message, attr.into_param().abi()) + ldap_get_values_len(externalhandle, message, attr.param().abi()) } #[inline] pub unsafe fn ldap_get_values_lenA(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_values_lenA(externalhandle : *mut LDAP, message : *mut LDAPMessage, attr : windows_core::PCSTR) -> *mut *mut LDAP_BERVAL); - ldap_get_values_lenA(externalhandle, message, attr.into_param().abi()) + ldap_get_values_lenA(externalhandle, message, attr.param().abi()) } #[inline] pub unsafe fn ldap_get_values_lenW(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_get_values_lenW(externalhandle : *mut LDAP, message : *mut LDAPMessage, attr : windows_core::PCWSTR) -> *mut *mut LDAP_BERVAL); - ldap_get_values_lenW(externalhandle, message, attr.into_param().abi()) + ldap_get_values_lenW(externalhandle, message, attr.param().abi()) } #[inline] pub unsafe fn ldap_init(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_init(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_init(hostname.into_param().abi(), portnumber) + ldap_init(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_initA(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_initA(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_initA(hostname.into_param().abi(), portnumber) + ldap_initA(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_initW(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_initW(hostname : windows_core::PCWSTR, portnumber : u32) -> *mut LDAP); - ldap_initW(hostname.into_param().abi(), portnumber) + ldap_initW(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_memfree(block: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_memfree(block : windows_core::PCSTR)); - ldap_memfree(block.into_param().abi()) + ldap_memfree(block.param().abi()) } #[inline] pub unsafe fn ldap_memfreeA(block: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_memfreeA(block : windows_core::PCSTR)); - ldap_memfreeA(block.into_param().abi()) + ldap_memfreeA(block.param().abi()) } #[inline] pub unsafe fn ldap_memfreeW(block: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_memfreeW(block : windows_core::PCWSTR)); - ldap_memfreeW(block.into_param().abi()) + ldap_memfreeW(block.param().abi()) } #[inline] pub unsafe fn ldap_modify(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA) -> u32); - ldap_modify(ld, dn.into_param().abi(), mods) + ldap_modify(ld, dn.param().abi(), mods) } #[inline] pub unsafe fn ldap_modifyA(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modifyA(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA) -> u32); - ldap_modifyA(ld, dn.into_param().abi(), mods) + ldap_modifyA(ld, dn.param().abi(), mods) } #[inline] pub unsafe fn ldap_modifyW(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modifyW(ld : *mut LDAP, dn : windows_core::PCWSTR, mods : *mut *mut LDAPModW) -> u32); - ldap_modifyW(ld, dn.into_param().abi(), mods) + ldap_modifyW(ld, dn.param().abi(), mods) } #[inline] pub unsafe fn ldap_modify_ext(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_ext(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_modify_ext(ld, dn.into_param().abi(), mods, servercontrols, clientcontrols, messagenumber) + ldap_modify_ext(ld, dn.param().abi(), mods, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_modify_extA(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_extA(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32); - ldap_modify_extA(ld, dn.into_param().abi(), mods, servercontrols, clientcontrols, messagenumber) + ldap_modify_extA(ld, dn.param().abi(), mods, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_modify_extW(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_extW(ld : *mut LDAP, dn : windows_core::PCWSTR, mods : *mut *mut LDAPModW, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, messagenumber : *mut u32) -> u32); - ldap_modify_extW(ld, dn.into_param().abi(), mods, servercontrols, clientcontrols, messagenumber) + ldap_modify_extW(ld, dn.param().abi(), mods, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_modify_ext_s(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_ext_s(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_modify_ext_s(ld, dn.into_param().abi(), mods, servercontrols, clientcontrols) + ldap_modify_ext_s(ld, dn.param().abi(), mods, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_modify_ext_sA(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_ext_sA(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); - ldap_modify_ext_sA(ld, dn.into_param().abi(), mods, servercontrols, clientcontrols) + ldap_modify_ext_sA(ld, dn.param().abi(), mods, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_modify_ext_sW(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_ext_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, mods : *mut *mut LDAPModW, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32); - ldap_modify_ext_sW(ld, dn.into_param().abi(), mods, servercontrols, clientcontrols) + ldap_modify_ext_sW(ld, dn.param().abi(), mods, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_modify_s(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_s(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA) -> u32); - ldap_modify_s(ld, dn.into_param().abi(), mods) + ldap_modify_s(ld, dn.param().abi(), mods) } #[inline] pub unsafe fn ldap_modify_sA(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_sA(ld : *mut LDAP, dn : windows_core::PCSTR, mods : *mut *mut LDAPModA) -> u32); - ldap_modify_sA(ld, dn.into_param().abi(), mods) + ldap_modify_sA(ld, dn.param().abi(), mods) } #[inline] pub unsafe fn ldap_modify_sW(ld: *mut LDAP, dn: P0, mods: *mut *mut LDAPModW) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modify_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, mods : *mut *mut LDAPModW) -> u32); - ldap_modify_sW(ld, dn.into_param().abi(), mods) + ldap_modify_sW(ld, dn.param().abi(), mods) } #[inline] pub unsafe fn ldap_modrdn(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR) -> u32); - ldap_modrdn(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi()) + ldap_modrdn(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi()) } #[inline] pub unsafe fn ldap_modrdn2(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi(), deleteoldrdn) + ldap_modrdn2(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2A(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi(), deleteoldrdn) + ldap_modrdn2A(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2W(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi(), deleteoldrdn) + ldap_modrdn2W(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2_s(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi(), deleteoldrdn) + ldap_modrdn2_s(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2_sA(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi(), deleteoldrdn) + ldap_modrdn2_sA(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdn2_sW(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi(), deleteoldrdn) + ldap_modrdn2_sW(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi(), deleteoldrdn) } #[inline] pub unsafe fn ldap_modrdnA(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdnA(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR) -> u32); - ldap_modrdnA(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi()) + ldap_modrdnA(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi()) } #[inline] pub unsafe fn ldap_modrdnW(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdnW(externalhandle : *mut LDAP, distinguishedname : windows_core::PCWSTR, newdistinguishedname : windows_core::PCWSTR) -> u32); - ldap_modrdnW(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi()) + ldap_modrdnW(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi()) } #[inline] pub unsafe fn ldap_modrdn_s(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn_s(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR) -> u32); - ldap_modrdn_s(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi()) + ldap_modrdn_s(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi()) } #[inline] pub unsafe fn ldap_modrdn_sA(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn_sA(externalhandle : *mut LDAP, distinguishedname : windows_core::PCSTR, newdistinguishedname : windows_core::PCSTR) -> u32); - ldap_modrdn_sA(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi()) + ldap_modrdn_sA(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi()) } #[inline] pub unsafe fn ldap_modrdn_sW(externalhandle: *mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_modrdn_sW(externalhandle : *mut LDAP, distinguishedname : windows_core::PCWSTR, newdistinguishedname : windows_core::PCWSTR) -> u32); - ldap_modrdn_sW(externalhandle, distinguishedname.into_param().abi(), newdistinguishedname.into_param().abi()) + ldap_modrdn_sW(externalhandle, distinguishedname.param().abi(), newdistinguishedname.param().abi()) } #[inline] pub unsafe fn ldap_msgfree(res: *mut LDAPMessage) -> u32 { @@ -1182,42 +1182,42 @@ pub unsafe fn ldap_next_reference(ld: *mut LDAP, entry: *mut LDAPMessage) -> *mu #[inline] pub unsafe fn ldap_open(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_open(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_open(hostname.into_param().abi(), portnumber) + ldap_open(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_openA(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_openA(hostname : windows_core::PCSTR, portnumber : u32) -> *mut LDAP); - ldap_openA(hostname.into_param().abi(), portnumber) + ldap_openA(hostname.param().abi(), portnumber) } #[inline] pub unsafe fn ldap_openW(hostname: P0, portnumber: u32) -> *mut LDAP where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_openW(hostname : windows_core::PCWSTR, portnumber : u32) -> *mut LDAP); - ldap_openW(hostname.into_param().abi(), 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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_extended_resultA(connection, resultmessage, core::mem::transmute(resultoid.unwrap_or(std::ptr::null_mut())), resultdata, freeit.into_param().abi()) + ldap_parse_extended_resultA(connection, resultmessage, core::mem::transmute(resultoid.unwrap_or(std::ptr::null_mut())), resultdata, freeit.param().abi()) } #[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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_extended_resultW(connection, resultmessage, core::mem::transmute(resultoid.unwrap_or(std::ptr::null_mut())), resultdata, freeit.into_param().abi()) + ldap_parse_extended_resultW(connection, resultmessage, core::mem::transmute(resultoid.unwrap_or(std::ptr::null_mut())), resultdata, freeit.param().abi()) } #[inline] pub unsafe fn ldap_parse_page_control(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32 { @@ -1252,26 +1252,26 @@ 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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_result(connection, resultmessage, returncode, core::mem::transmute(matcheddns.unwrap_or(std::ptr::null_mut())), core::mem::transmute(errormessage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(referrals.unwrap_or(std::ptr::null_mut())), servercontrols, freeit.into_param().abi()) + ldap_parse_result(connection, resultmessage, returncode, core::mem::transmute(matcheddns.unwrap_or(std::ptr::null_mut())), core::mem::transmute(errormessage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(referrals.unwrap_or(std::ptr::null_mut())), servercontrols, freeit.param().abi()) } #[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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_resultA(connection, resultmessage, returncode, core::mem::transmute(matcheddns.unwrap_or(std::ptr::null_mut())), core::mem::transmute(errormessage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(referrals.unwrap_or(std::ptr::null_mut())), servercontrols, freeit.into_param().abi()) + ldap_parse_resultA(connection, resultmessage, returncode, core::mem::transmute(matcheddns.unwrap_or(std::ptr::null_mut())), core::mem::transmute(errormessage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(referrals.unwrap_or(std::ptr::null_mut())), servercontrols, freeit.param().abi()) } #[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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_resultW(connection, resultmessage, returncode, core::mem::transmute(matcheddns.unwrap_or(std::ptr::null_mut())), core::mem::transmute(errormessage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(referrals.unwrap_or(std::ptr::null_mut())), servercontrols, freeit.into_param().abi()) + ldap_parse_resultW(connection, resultmessage, returncode, core::mem::transmute(matcheddns.unwrap_or(std::ptr::null_mut())), core::mem::transmute(errormessage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(referrals.unwrap_or(std::ptr::null_mut())), servercontrols, freeit.param().abi()) } #[inline] pub unsafe fn ldap_parse_sort_control(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, result: *mut u32, attribute: *mut windows_core::PSTR) -> u32 { @@ -1301,70 +1301,70 @@ pub unsafe fn ldap_parse_vlv_controlW(externalhandle: *mut LDAP, control: *mut * #[inline] pub unsafe fn ldap_perror(ld: *mut LDAP, msg: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_perror(ld : *mut LDAP, msg : windows_core::PCSTR)); - ldap_perror(ld, msg.into_param().abi()) + ldap_perror(ld, msg.param().abi()) } #[inline] pub unsafe fn ldap_rename_ext(ld: *mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(ld, dn.into_param().abi(), newrdn.into_param().abi(), newparent.into_param().abi(), deleteoldrdn, servercontrols, clientcontrols, messagenumber) + ldap_rename_ext(ld, dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_rename_extA(ld: *mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(ld, dn.into_param().abi(), newrdn.into_param().abi(), newparent.into_param().abi(), deleteoldrdn, servercontrols, clientcontrols, messagenumber) + ldap_rename_extA(ld, dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_rename_extW(ld: *mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(ld, dn.into_param().abi(), newrdn.into_param().abi(), newparent.into_param().abi(), deleteoldrdn, servercontrols, clientcontrols, messagenumber) + ldap_rename_extW(ld, dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, servercontrols, clientcontrols, messagenumber) } #[inline] pub unsafe fn ldap_rename_ext_s(ld: *mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(ld, dn.into_param().abi(), newrdn.into_param().abi(), newparent.into_param().abi(), deleteoldrdn, servercontrols, clientcontrols) + ldap_rename_ext_s(ld, dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_rename_ext_sA(ld: *mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(ld, dn.into_param().abi(), newrdn.into_param().abi(), newparent.into_param().abi(), deleteoldrdn, servercontrols, clientcontrols) + ldap_rename_ext_sA(ld, dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_rename_ext_sW(ld: *mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(ld, dn.into_param().abi(), newrdn.into_param().abi(), newparent.into_param().abi(), deleteoldrdn, servercontrols, clientcontrols) + ldap_rename_ext_sW(ld, dn.param().abi(), newrdn.param().abi(), newparent.param().abi(), deleteoldrdn, servercontrols, clientcontrols) } #[inline] pub unsafe fn ldap_result(ld: *mut LDAP, msgid: u32, all: u32, timeout: Option<*const LDAP_TIMEVAL>, res: *mut *mut LDAPMessage) -> u32 { @@ -1379,208 +1379,208 @@ pub unsafe fn ldap_result2error(ld: *mut LDAP, res: *mut LDAPMessage, freeit: u3 #[inline] pub unsafe fn ldap_sasl_bindA(externalhandle: *mut LDAP, distname: P0, authmechanism: P1, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, messagenumber: *mut i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distname.into_param().abi(), authmechanism.into_param().abi(), cred, serverctrls, clientctrls, messagenumber) + ldap_sasl_bindA(externalhandle, distname.param().abi(), authmechanism.param().abi(), cred, serverctrls, clientctrls, messagenumber) } #[inline] pub unsafe fn ldap_sasl_bindW(externalhandle: *mut LDAP, distname: P0, authmechanism: P1, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, messagenumber: *mut i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distname.into_param().abi(), authmechanism.into_param().abi(), cred, serverctrls, clientctrls, messagenumber) + ldap_sasl_bindW(externalhandle, distname.param().abi(), authmechanism.param().abi(), cred, serverctrls, clientctrls, messagenumber) } #[inline] pub unsafe fn ldap_sasl_bind_sA(externalhandle: *mut LDAP, distname: P0, authmechanism: P1, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, serverdata: *mut *mut LDAP_BERVAL) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distname.into_param().abi(), authmechanism.into_param().abi(), cred, serverctrls, clientctrls, serverdata) + ldap_sasl_bind_sA(externalhandle, distname.param().abi(), authmechanism.param().abi(), cred, serverctrls, clientctrls, serverdata) } #[inline] pub unsafe fn ldap_sasl_bind_sW(externalhandle: *mut LDAP, distname: P0, authmechanism: P1, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, serverdata: *mut *mut LDAP_BERVAL) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distname.into_param().abi(), authmechanism.into_param().abi(), cred, serverctrls, clientctrls, serverdata) + ldap_sasl_bind_sW(externalhandle, distname.param().abi(), authmechanism.param().abi(), cred, serverctrls, clientctrls, serverdata) } #[inline] pub unsafe fn ldap_search(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly) + ldap_search(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly) } #[inline] pub unsafe fn ldap_searchA(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly) + ldap_searchA(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly) } #[inline] pub unsafe fn ldap_searchW(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const u16, attrsonly: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly) + ldap_searchW(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly) } #[inline] pub unsafe fn ldap_search_abandon_page(externalhandle: *mut LDAP, searchblock: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_search_abandon_page(externalhandle : *mut LDAP, searchblock : PLDAPSearch) -> u32); - ldap_search_abandon_page(externalhandle, searchblock.into_param().abi()) + ldap_search_abandon_page(externalhandle, searchblock.param().abi()) } #[inline] pub unsafe fn ldap_search_ext(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32, servercontrols: Option<*const *const LDAPControlA>, clientcontrols: Option<*const *const LDAPControlA>, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timelimit, sizelimit, messagenumber) + ldap_search_ext(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timelimit, sizelimit, messagenumber) } #[inline] pub unsafe fn ldap_search_extA(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32, servercontrols: Option<*const *const LDAPControlA>, clientcontrols: Option<*const *const LDAPControlA>, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timelimit, sizelimit, messagenumber) + ldap_search_extA(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timelimit, sizelimit, messagenumber) } #[inline] pub unsafe fn ldap_search_extW(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const u16, attrsonly: u32, servercontrols: Option<*const *const LDAPControlW>, clientcontrols: Option<*const *const LDAPControlW>, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timelimit, sizelimit, messagenumber) + ldap_search_extW(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timelimit, sizelimit, messagenumber) } #[inline] pub unsafe fn ldap_search_ext_s(ld: *mut LDAP, base: P0, scope: u32, filter: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timeout, sizelimit, res) + ldap_search_ext_s(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timeout, sizelimit, res) } #[inline] pub unsafe fn ldap_search_ext_sA(ld: *mut LDAP, base: P0, scope: u32, filter: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timeout, sizelimit, res) + ldap_search_ext_sA(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timeout, sizelimit, res) } #[inline] pub unsafe fn ldap_search_ext_sW(ld: *mut LDAP, base: P0, scope: u32, filter: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timeout, sizelimit, res) + ldap_search_ext_sW(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, core::mem::transmute(servercontrols.unwrap_or(std::ptr::null())), core::mem::transmute(clientcontrols.unwrap_or(std::ptr::null())), timeout, sizelimit, res) } #[inline] pub unsafe fn ldap_search_init_page(externalhandle: *mut LDAP, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: *mut *mut i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> PLDAPSearch where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), scopeofsearch, searchfilter.into_param().abi(), attributelist, attributesonly, servercontrols, clientcontrols, pagetimelimit, totalsizelimit, sortkeys) + ldap_search_init_page(externalhandle, distinguishedname.param().abi(), scopeofsearch, searchfilter.param().abi(), attributelist, attributesonly, servercontrols, clientcontrols, pagetimelimit, totalsizelimit, sortkeys) } #[inline] pub unsafe fn ldap_search_init_pageA(externalhandle: *mut LDAP, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: *const *const i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> PLDAPSearch where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), scopeofsearch, searchfilter.into_param().abi(), attributelist, attributesonly, servercontrols, clientcontrols, pagetimelimit, totalsizelimit, sortkeys) + ldap_search_init_pageA(externalhandle, distinguishedname.param().abi(), scopeofsearch, searchfilter.param().abi(), attributelist, attributesonly, servercontrols, clientcontrols, pagetimelimit, totalsizelimit, sortkeys) } #[inline] pub unsafe fn ldap_search_init_pageW(externalhandle: *mut LDAP, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: *const *const u16, attributesonly: u32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyW) -> PLDAPSearch where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(externalhandle, distinguishedname.into_param().abi(), scopeofsearch, searchfilter.into_param().abi(), attributelist, attributesonly, servercontrols, clientcontrols, pagetimelimit, totalsizelimit, sortkeys) + ldap_search_init_pageW(externalhandle, distinguishedname.param().abi(), scopeofsearch, searchfilter.param().abi(), attributelist, attributesonly, servercontrols, clientcontrols, pagetimelimit, totalsizelimit, sortkeys) } #[inline] pub unsafe fn ldap_search_s(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, res) + ldap_search_s(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, res) } #[inline] pub unsafe fn ldap_search_sA(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, res) + ldap_search_sA(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, res) } #[inline] pub unsafe fn ldap_search_sW(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const u16, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, res) + ldap_search_sW(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, res) } #[inline] pub unsafe fn ldap_search_st(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, timeout, res) + ldap_search_st(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, timeout, res) } #[inline] pub unsafe fn ldap_search_stA(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, timeout, res) + ldap_search_stA(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, timeout, res) } #[inline] pub unsafe fn ldap_search_stW(ld: *mut LDAP, base: P0, scope: u32, filter: P1, attrs: *const *const u16, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(ld, base.into_param().abi(), scope, filter.into_param().abi(), attrs, attrsonly, timeout, res) + ldap_search_stW(ld, base.param().abi(), scope, filter.param().abi(), attrs, attrsonly, timeout, res) } #[inline] pub unsafe fn ldap_set_dbg_flags(newflags: u32) -> u32 { @@ -1605,80 +1605,80 @@ pub unsafe fn ldap_set_optionW(ld: *mut LDAP, option: i32, invalue: *const core: #[inline] pub unsafe fn ldap_simple_bind(ld: *mut LDAP, dn: P0, passwd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_simple_bind(ld : *mut LDAP, dn : windows_core::PCSTR, passwd : windows_core::PCSTR) -> u32); - ldap_simple_bind(ld, dn.into_param().abi(), passwd.into_param().abi()) + ldap_simple_bind(ld, dn.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn ldap_simple_bindA(ld: *mut LDAP, dn: P0, passwd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_simple_bindA(ld : *mut LDAP, dn : windows_core::PCSTR, passwd : windows_core::PCSTR) -> u32); - ldap_simple_bindA(ld, dn.into_param().abi(), passwd.into_param().abi()) + ldap_simple_bindA(ld, dn.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn ldap_simple_bindW(ld: *mut LDAP, dn: P0, passwd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_simple_bindW(ld : *mut LDAP, dn : windows_core::PCWSTR, passwd : windows_core::PCWSTR) -> u32); - ldap_simple_bindW(ld, dn.into_param().abi(), passwd.into_param().abi()) + ldap_simple_bindW(ld, dn.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn ldap_simple_bind_s(ld: *mut LDAP, dn: P0, passwd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_simple_bind_s(ld : *mut LDAP, dn : windows_core::PCSTR, passwd : windows_core::PCSTR) -> u32); - ldap_simple_bind_s(ld, dn.into_param().abi(), passwd.into_param().abi()) + ldap_simple_bind_s(ld, dn.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn ldap_simple_bind_sA(ld: *mut LDAP, dn: P0, passwd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_simple_bind_sA(ld : *mut LDAP, dn : windows_core::PCSTR, passwd : windows_core::PCSTR) -> u32); - ldap_simple_bind_sA(ld, dn.into_param().abi(), passwd.into_param().abi()) + ldap_simple_bind_sA(ld, dn.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn ldap_simple_bind_sW(ld: *mut LDAP, dn: P0, passwd: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_simple_bind_sW(ld : *mut LDAP, dn : windows_core::PCWSTR, passwd : windows_core::PCWSTR) -> u32); - ldap_simple_bind_sW(ld, dn.into_param().abi(), passwd.into_param().abi()) + ldap_simple_bind_sW(ld, dn.param().abi(), passwd.param().abi()) } #[inline] pub unsafe fn ldap_sslinit(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP where - P0: windows_core::IntoParam, + 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.into_param().abi(), portnumber, secure) + ldap_sslinit(hostname.param().abi(), portnumber, secure) } #[inline] pub unsafe fn ldap_sslinitA(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP where - P0: windows_core::IntoParam, + 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.into_param().abi(), portnumber, secure) + ldap_sslinitA(hostname.param().abi(), portnumber, secure) } #[inline] pub unsafe fn ldap_sslinitW(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP where - P0: windows_core::IntoParam, + 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.into_param().abi(), portnumber, 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 { @@ -1703,26 +1703,26 @@ pub unsafe fn ldap_stop_tls_s(externalhandle: *mut LDAP) -> super::super::Founda #[inline] pub unsafe fn ldap_ufn2dn(ufn: P0, pdn: *mut windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_ufn2dn(ufn : windows_core::PCSTR, pdn : *mut windows_core::PSTR) -> u32); - ldap_ufn2dn(ufn.into_param().abi(), pdn) + ldap_ufn2dn(ufn.param().abi(), pdn) } #[inline] pub unsafe fn ldap_ufn2dnA(ufn: P0, pdn: *mut windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_ufn2dnA(ufn : windows_core::PCSTR, pdn : *mut windows_core::PSTR) -> u32); - ldap_ufn2dnA(ufn.into_param().abi(), pdn) + ldap_ufn2dnA(ufn.param().abi(), pdn) } #[inline] pub unsafe fn ldap_ufn2dnW(ufn: P0, pdn: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldap32.dll" "cdecl" fn ldap_ufn2dnW(ufn : windows_core::PCWSTR, pdn : *mut windows_core::PWSTR) -> u32); - ldap_ufn2dnW(ufn.into_param().abi(), pdn) + ldap_ufn2dnW(ufn.param().abi(), pdn) } #[inline] pub unsafe fn ldap_unbind(ld: *mut LDAP) -> 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 206e2130d3..4a34451584 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs @@ -102,9 +102,9 @@ impl INetwork { } pub unsafe fn SetName(&self, sznetworknewname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), sznetworknewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), sznetworknewname.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -112,9 +112,9 @@ impl INetwork { } pub unsafe fn SetDescription(&self, szdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), szdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), szdescription.param().abi()).ok() } pub unsafe fn GetNetworkId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -185,9 +185,9 @@ impl INetwork2 { } pub unsafe fn SetName(&self, sznetworknewname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), sznetworknewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), sznetworknewname.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -195,9 +195,9 @@ impl INetwork2 { } pub unsafe fn SetDescription(&self, szdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), szdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), szdescription.param().abi()).ok() } pub unsafe fn GetNetworkId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -402,9 +402,9 @@ impl INetworkCostManager { } pub unsafe fn SetDestinationAddresses(&self, pdestipaddrlist: &[NLM_SOCKADDR], bappend: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDestinationAddresses)(windows_core::Interface::as_raw(self), pdestipaddrlist.len().try_into().unwrap(), core::mem::transmute(pdestipaddrlist.as_ptr()), bappend.into_param().abi()).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.param().abi()).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 02854f2637..f735a031cb 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs @@ -20,9 +20,9 @@ windows_core::imp::interface_hierarchy!(IRdcComparator, windows_core::IUnknown); impl IRdcComparator { pub unsafe fn Process(&self, endofinput: P0, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), endofinput.into_param().abi(), endofoutput, inputbuffer, outputbuffer, rdc_errorcode).ok() + (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), endofinput.param().abi(), endofoutput, inputbuffer, outputbuffer, rdc_errorcode).ok() } } #[repr(C)] @@ -93,9 +93,9 @@ impl IRdcGenerator { } pub unsafe fn Process(&self, endofinput: P0, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffers: &mut [*mut RdcBufferPointer], rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), endofinput.into_param().abi(), endofoutput, inputbuffer, outputbuffers.len().try_into().unwrap(), core::mem::transmute(outputbuffers.as_ptr()), rdc_errorcode).ok() + (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), endofinput.param().abi(), endofoutput, inputbuffer, outputbuffers.len().try_into().unwrap(), core::mem::transmute(outputbuffers.as_ptr()), rdc_errorcode).ok() } } #[repr(C)] @@ -177,17 +177,17 @@ impl IRdcLibrary { } pub unsafe fn CreateComparator(&self, iseedsignaturesfile: P0, comparatorbuffersize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateComparator)(windows_core::Interface::as_raw(self), iseedsignaturesfile.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSignatureReader)(windows_core::Interface::as_raw(self), ifilereader.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSignatureReader)(windows_core::Interface::as_raw(self), ifilereader.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRDCVersion(&self, currentversion: *mut u32, minimumcompatibleappversion: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRDCVersion)(windows_core::Interface::as_raw(self), currentversion, minimumcompatibleappversion).ok() @@ -243,26 +243,26 @@ windows_core::imp::interface_hierarchy!(ISimilarity, windows_core::IUnknown); impl ISimilarity { pub unsafe fn CreateTable(&self, path: P0, truncate: P1, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.into_param().abi(), truncate.into_param().abi(), securitydescriptor, recordsize, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.param().abi(), securitydescriptor, recordsize, &mut result__).map(|| result__) } pub unsafe fn CreateTableIndirect(&self, mapping: P0, fileidfile: P1, truncate: P2, recordsize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), mapping.into_param().abi(), fileidfile.into_param().abi(), truncate.into_param().abi(), recordsize, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), mapping.param().abi(), fileidfile.param().abi(), truncate.param().abi(), recordsize, &mut result__).map(|| result__) } pub unsafe fn CloseTable(&self, isvalid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.param().abi()).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), similarityfileid, similaritydata).ok() @@ -273,10 +273,10 @@ impl ISimilarity { } pub unsafe fn CopyAndSwap(&self, newsimilaritytables: P0, reportprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyAndSwap)(windows_core::Interface::as_raw(self), newsimilaritytables.into_param().abi(), reportprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyAndSwap)(windows_core::Interface::as_raw(self), newsimilaritytables.param().abi(), reportprogress.param().abi()).ok() } pub unsafe fn GetRecordCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -299,25 +299,25 @@ windows_core::imp::interface_hierarchy!(ISimilarityFileIdTable, windows_core::IU impl ISimilarityFileIdTable { pub unsafe fn CreateTable(&self, path: P0, truncate: P1, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.into_param().abi(), truncate.into_param().abi(), securitydescriptor, recordsize, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.param().abi(), securitydescriptor, recordsize, &mut result__).map(|| result__) } pub unsafe fn CreateTableIndirect(&self, fileidfile: P0, truncate: P1, recordsize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), fileidfile.into_param().abi(), truncate.into_param().abi(), recordsize, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), fileidfile.param().abi(), truncate.param().abi(), recordsize, &mut result__).map(|| result__) } pub unsafe fn CloseTable(&self, isvalid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.param().abi()).ok() } pub unsafe fn Append(&self, similarityfileid: *const SimilarityFileId) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -380,10 +380,10 @@ impl ISimilarityTraitsMappedView { } pub unsafe fn Get(&self, index: u64, dirty: P0, numelements: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), index, dirty.into_param().abi(), numelements, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), index, dirty.param().abi(), 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), mappedpagebegin, mappedpageend) @@ -444,25 +444,25 @@ windows_core::imp::interface_hierarchy!(ISimilarityTraitsTable, windows_core::IU impl ISimilarityTraitsTable { pub unsafe fn CreateTable(&self, path: P0, truncate: P1, securitydescriptor: *const u8) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.into_param().abi(), truncate.into_param().abi(), securitydescriptor, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTable)(windows_core::Interface::as_raw(self), path.param().abi(), truncate.param().abi(), securitydescriptor, &mut result__).map(|| result__) } pub unsafe fn CreateTableIndirect(&self, mapping: P0, truncate: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), mapping.into_param().abi(), truncate.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateTableIndirect)(windows_core::Interface::as_raw(self), mapping.param().abi(), truncate.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CloseTable(&self, isvalid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseTable)(windows_core::Interface::as_raw(self), isvalid.param().abi()).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), data, fileindex).ok() 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 d3b366c085..e78dea801b 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs @@ -1,19 +1,19 @@ #[inline] pub unsafe fn WebSocketAbortHandle(hwebsocket: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("websocket.dll" "system" fn WebSocketAbortHandle(hwebsocket : WEB_SOCKET_HANDLE)); - WebSocketAbortHandle(hwebsocket.into_param().abi()) + WebSocketAbortHandle(hwebsocket.param().abi()) } #[inline] pub unsafe fn WebSocketBeginClientHandshake(hwebsocket: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - hwebsocket.into_param().abi(), + hwebsocket.param().abi(), 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())), @@ -28,19 +28,19 @@ where #[inline] pub unsafe fn WebSocketBeginServerHandshake(hwebsocket: P0, pszsubprotocolselected: P1, pszextensionselected: Option<&[windows_core::PCSTR]>, prequestheaders: &[WEB_SOCKET_HTTP_HEADER], presponseheaders: *mut *mut WEB_SOCKET_HTTP_HEADER, pulresponseheadercount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwebsocket.into_param().abi(), pszsubprotocolselected.into_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(), presponseheaders, pulresponseheadercount).ok() + WebSocketBeginServerHandshake(hwebsocket.param().abi(), 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(), presponseheaders, pulresponseheadercount).ok() } #[inline] pub unsafe fn WebSocketCompleteAction(hwebsocket: P0, pvactioncontext: *const core::ffi::c_void, ulbytestransferred: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("websocket.dll" "system" fn WebSocketCompleteAction(hwebsocket : WEB_SOCKET_HANDLE, pvactioncontext : *const core::ffi::c_void, ulbytestransferred : u32)); - WebSocketCompleteAction(hwebsocket.into_param().abi(), pvactioncontext, ulbytestransferred) + WebSocketCompleteAction(hwebsocket.param().abi(), pvactioncontext, ulbytestransferred) } #[inline] pub unsafe fn WebSocketCreateClientHandle(pproperties: &[WEB_SOCKET_PROPERTY]) -> windows_core::Result { @@ -57,34 +57,34 @@ pub unsafe fn WebSocketCreateServerHandle(pproperties: &[WEB_SOCKET_PROPERTY]) - #[inline] pub unsafe fn WebSocketDeleteHandle(hwebsocket: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("websocket.dll" "system" fn WebSocketDeleteHandle(hwebsocket : WEB_SOCKET_HANDLE)); - WebSocketDeleteHandle(hwebsocket.into_param().abi()) + WebSocketDeleteHandle(hwebsocket.param().abi()) } #[inline] pub unsafe fn WebSocketEndClientHandshake(hwebsocket: P0, presponseheaders: &[WEB_SOCKET_HTTP_HEADER], pulselectedextensions: Option<*mut u32>, pulselectedextensioncount: Option<*mut u32>, pulselectedsubprotocol: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwebsocket.into_param().abi(), core::mem::transmute(presponseheaders.as_ptr()), presponseheaders.len().try_into().unwrap(), core::mem::transmute(pulselectedextensions.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pulselectedextensioncount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pulselectedsubprotocol.unwrap_or(std::ptr::null_mut()))).ok() + WebSocketEndClientHandshake(hwebsocket.param().abi(), core::mem::transmute(presponseheaders.as_ptr()), presponseheaders.len().try_into().unwrap(), core::mem::transmute(pulselectedextensions.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pulselectedextensioncount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pulselectedsubprotocol.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WebSocketEndServerHandshake(hwebsocket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("websocket.dll" "system" fn WebSocketEndServerHandshake(hwebsocket : WEB_SOCKET_HANDLE) -> windows_core::HRESULT); - WebSocketEndServerHandshake(hwebsocket.into_param().abi()).ok() + WebSocketEndServerHandshake(hwebsocket.param().abi()).ok() } #[inline] pub unsafe fn WebSocketGetAction(hwebsocket: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwebsocket.into_param().abi(), eactionqueue, pdatabuffers, puldatabuffercount, paction, pbuffertype, core::mem::transmute(pvapplicationcontext.unwrap_or(std::ptr::null_mut())), pvactioncontext).ok() + WebSocketGetAction(hwebsocket.param().abi(), eactionqueue, pdatabuffers, puldatabuffercount, paction, pbuffertype, core::mem::transmute(pvapplicationcontext.unwrap_or(std::ptr::null_mut())), pvactioncontext).ok() } #[inline] pub unsafe fn WebSocketGetGlobalProperty(etype: WEB_SOCKET_PROPERTY_TYPE, pvvalue: *mut core::ffi::c_void, ulsize: *mut u32) -> windows_core::Result<()> { @@ -94,18 +94,18 @@ pub unsafe fn WebSocketGetGlobalProperty(etype: WEB_SOCKET_PROPERTY_TYPE, pvvalu #[inline] pub unsafe fn WebSocketReceive(hwebsocket: P0, pbuffer: Option<*const WEB_SOCKET_BUFFER>, pvcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwebsocket.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(pvcontext.unwrap_or(std::ptr::null()))).ok() + WebSocketReceive(hwebsocket.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(pvcontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WebSocketSend(hwebsocket: P0, buffertype: WEB_SOCKET_BUFFER_TYPE, pbuffer: Option<*const WEB_SOCKET_BUFFER>, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwebsocket.into_param().abi(), buffertype, core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + WebSocketSend(hwebsocket.param().abi(), buffertype, core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } pub const WEB_SOCKET_ABORTED_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = WEB_SOCKET_CLOSE_STATUS(1006i32); pub const WEB_SOCKET_ALLOCATED_BUFFER_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = WEB_SOCKET_PROPERTY_TYPE(3i32); 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 2a3046cf7d..fe3a84697a 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs @@ -21,10 +21,10 @@ pub unsafe fn WinHttpCloseHandle(hinternet: *mut core::ffi::c_void) -> windows_c #[inline] pub unsafe fn WinHttpConnect(hsession: *mut core::ffi::c_void, pswzservername: P0, nserverport: u16, dwreserved: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(hsession, pswzservername.into_param().abi(), nserverport, dwreserved) + WinHttpConnect(hsession, pswzservername.param().abi(), nserverport, dwreserved) } #[inline] pub unsafe fn WinHttpCrackUrl(pwszurl: &[u16], dwflags: u32, lpurlcomponents: *mut URL_COMPONENTS) -> windows_core::Result<()> { @@ -84,26 +84,26 @@ pub unsafe fn WinHttpGetIEProxyConfigForCurrentUser(pproxyconfig: *mut WINHTTP_C #[inline] pub unsafe fn WinHttpGetProxyForUrl(hsession: *mut core::ffi::c_void, lpcwszurl: P0, pautoproxyoptions: *mut WINHTTP_AUTOPROXY_OPTIONS, pproxyinfo: *mut WINHTTP_PROXY_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxyForUrl(hsession : *mut core::ffi::c_void, lpcwszurl : windows_core::PCWSTR, pautoproxyoptions : *mut WINHTTP_AUTOPROXY_OPTIONS, pproxyinfo : *mut WINHTTP_PROXY_INFO) -> super::super::Foundation:: BOOL); - WinHttpGetProxyForUrl(hsession, lpcwszurl.into_param().abi(), pautoproxyoptions, pproxyinfo).ok() + WinHttpGetProxyForUrl(hsession, lpcwszurl.param().abi(), pautoproxyoptions, pproxyinfo).ok() } #[inline] pub unsafe fn WinHttpGetProxyForUrlEx(hresolver: *const core::ffi::c_void, pcwszurl: P0, pautoproxyoptions: *const WINHTTP_AUTOPROXY_OPTIONS, pcontext: usize) -> u32 where - P0: windows_core::IntoParam, + P0: 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(hresolver, pcwszurl.into_param().abi(), pautoproxyoptions, pcontext) + WinHttpGetProxyForUrlEx(hresolver, pcwszurl.param().abi(), pautoproxyoptions, pcontext) } #[inline] pub unsafe fn WinHttpGetProxyForUrlEx2(hresolver: *const core::ffi::c_void, pcwszurl: P0, pautoproxyoptions: *const WINHTTP_AUTOPROXY_OPTIONS, pinterfaceselectioncontext: Option<&[u8]>, pcontext: usize) -> u32 where - P0: windows_core::IntoParam, + P0: 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(hresolver, pcwszurl.into_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())), pcontext) + 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())), pcontext) } #[inline] pub unsafe fn WinHttpGetProxyResult(hresolver: *const core::ffi::c_void, pproxyresult: *mut WINHTTP_PROXY_RESULT) -> u32 { @@ -133,23 +133,23 @@ pub unsafe fn WinHttpGetProxySettingsVersion(hsession: *const core::ffi::c_void, #[inline] pub unsafe fn WinHttpOpen(pszagentw: P0, dwaccesstype: WINHTTP_ACCESS_TYPE, pszproxyw: P1, pszproxybypassw: P2, dwflags: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwaccesstype, pszproxyw.into_param().abi(), pszproxybypassw.into_param().abi(), 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: P0, pwszobjectname: P1, pwszversion: P2, pwszreferrer: P3, ppwszaccepttypes: *const windows_core::PCWSTR, dwflags: WINHTTP_OPEN_REQUEST_FLAGS) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hconnect, pwszverb.into_param().abi(), pwszobjectname.into_param().abi(), pwszversion.into_param().abi(), pwszreferrer.into_param().abi(), ppwszaccepttypes, dwflags) + WinHttpOpenRequest(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<()> { @@ -169,10 +169,10 @@ pub unsafe fn WinHttpQueryDataAvailable(hrequest: *mut core::ffi::c_void, lpdwnu #[inline] pub unsafe fn WinHttpQueryHeaders(hrequest: *mut core::ffi::c_void, dwinfolevel: u32, pwszname: P0, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32, lpdwindex: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hrequest, dwinfolevel, pwszname.into_param().abi(), core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut())), lpdwbufferlength, lpdwindex).ok() + WinHttpQueryHeaders(hrequest, dwinfolevel, pwszname.param().abi(), core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut())), lpdwbufferlength, 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 { @@ -197,12 +197,12 @@ pub unsafe fn WinHttpReadDataEx(hrequest: *mut core::ffi::c_void, lpbuffer: *mut #[inline] pub unsafe fn WinHttpReadProxySettings(hsession: *const core::ffi::c_void, pcwszconnectionname: P0, ffallbacktodefaultsettings: P1, fsetautodiscoverfordefaultsettings: P2, pdwsettingsversion: *mut u32, pfdefaultsettingsarereturned: *mut super::super::Foundation::BOOL, pwinhttpproxysettings: *mut WINHTTP_PROXY_SETTINGS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hsession, pcwszconnectionname.into_param().abi(), ffallbacktodefaultsettings.into_param().abi(), fsetautodiscoverfordefaultsettings.into_param().abi(), pdwsettingsversion, pfdefaultsettingsarereturned, pwinhttpproxysettings) + WinHttpReadProxySettings(hsession, pcwszconnectionname.param().abi(), ffallbacktodefaultsettings.param().abi(), fsetautodiscoverfordefaultsettings.param().abi(), pdwsettingsversion, pfdefaultsettingsarereturned, pwinhttpproxysettings) } #[inline] pub unsafe fn WinHttpReceiveResponse(hrequest: *mut core::ffi::c_void, lpreserved: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -227,11 +227,11 @@ pub unsafe fn WinHttpSendRequest(hrequest: *mut core::ffi::c_void, lpszheaders: #[inline] pub unsafe fn WinHttpSetCredentials(hrequest: *mut core::ffi::c_void, authtargets: u32, authscheme: u32, pwszusername: P0, pwszpassword: P1, pauthparams: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hrequest, authtargets, authscheme, pwszusername.into_param().abi(), pwszpassword.into_param().abi(), pauthparams).ok() + WinHttpSetCredentials(hrequest, authtargets, authscheme, pwszusername.param().abi(), pwszpassword.param().abi(), pauthparams).ok() } #[inline] pub unsafe fn WinHttpSetDefaultProxyConfiguration(pproxyinfo: *mut WINHTTP_PROXY_INFO) -> windows_core::Result<()> { @@ -246,10 +246,10 @@ pub unsafe fn WinHttpSetOption(hinternet: Option<*const core::ffi::c_void>, dwop #[inline] pub unsafe fn WinHttpSetProxySettingsPerUser(fproxysettingsperuser: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpSetProxySettingsPerUser(fproxysettingsperuser : super::super::Foundation:: BOOL) -> u32); - WinHttpSetProxySettingsPerUser(fproxysettingsperuser.into_param().abi()) + WinHttpSetProxySettingsPerUser(fproxysettingsperuser.param().abi()) } #[inline] pub unsafe fn WinHttpSetStatusCallback(hinternet: *mut core::ffi::c_void, lpfninternetcallback: WINHTTP_STATUS_CALLBACK, dwnotificationflags: u32, dwreserved: usize) -> WINHTTP_STATUS_CALLBACK { @@ -269,10 +269,10 @@ pub unsafe fn WinHttpTimeFromSystemTime(pst: *const super::super::Foundation::SY #[inline] pub unsafe fn WinHttpTimeToSystemTime(pwsztime: P0, pst: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhttp.dll" "system" fn WinHttpTimeToSystemTime(pwsztime : windows_core::PCWSTR, pst : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); - WinHttpTimeToSystemTime(pwsztime.into_param().abi(), pst).ok() + WinHttpTimeToSystemTime(pwsztime.param().abi(), pst).ok() } #[inline] pub unsafe fn WinHttpUnregisterProxyChangeNotification(hregistration: *const core::ffi::c_void) -> u32 { @@ -317,10 +317,10 @@ pub unsafe fn WinHttpWriteData(hrequest: *mut core::ffi::c_void, lpbuffer: Optio #[inline] pub unsafe fn WinHttpWriteProxySettings(hsession: *const core::ffi::c_void, fforceupdate: P0, pwinhttpproxysettings: *const WINHTTP_PROXY_SETTINGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hsession, fforceupdate.into_param().abi(), pwinhttpproxysettings) + WinHttpWriteProxySettings(hsession, fforceupdate.param().abi(), pwinhttpproxysettings) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IWinHttpRequest, IWinHttpRequest_Vtbl, 0x016fe2ec_b2c8_45f8_b23b_39e53a75396b); @@ -330,39 +330,39 @@ windows_core::imp::interface_hierarchy!(IWinHttpRequest, windows_core::IUnknown, impl IWinHttpRequest { pub unsafe fn SetProxy(&self, proxysetting: i32, proxyserver: P0, bypasslist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), proxysetting, proxyserver.into_param().abi(), bypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), proxysetting, proxyserver.param().abi(), bypasslist.param().abi()).ok() } pub unsafe fn SetCredentials(&self, username: P0, password: P1, flags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), username.into_param().abi(), password.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), username.param().abi(), password.param().abi(), flags).ok() } pub unsafe fn Open(&self, method: P0, url: P1, r#async: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), method.into_param().abi(), url.into_param().abi(), r#async.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), method.param().abi(), url.param().abi(), r#async.param().abi()).ok() } pub unsafe fn SetRequestHeader(&self, header: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestHeader)(windows_core::Interface::as_raw(self), header.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestHeader)(windows_core::Interface::as_raw(self), header.param().abi(), value.param().abi()).ok() } pub unsafe fn GetResponseHeader(&self, header: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResponseHeader)(windows_core::Interface::as_raw(self), header.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetResponseHeader)(windows_core::Interface::as_raw(self), header.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAllResponseHeaders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -370,9 +370,9 @@ impl IWinHttpRequest { } pub unsafe fn Send(&self, body: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), body.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), body.param().abi()).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -400,16 +400,16 @@ impl IWinHttpRequest { } pub unsafe fn put_Option(&self, option: WinHttpRequestOption, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Option)(windows_core::Interface::as_raw(self), option, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Option)(windows_core::Interface::as_raw(self), option, value.param().abi()).ok() } pub unsafe fn WaitForResponse(&self, timeout: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).WaitForResponse)(windows_core::Interface::as_raw(self), timeout.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WaitForResponse)(windows_core::Interface::as_raw(self), timeout.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() @@ -419,9 +419,9 @@ impl IWinHttpRequest { } pub unsafe fn SetClientCertificate(&self, clientcertificate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificate)(windows_core::Interface::as_raw(self), clientcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientCertificate)(windows_core::Interface::as_raw(self), clientcertificate.param().abi()).ok() } pub unsafe fn SetAutoLogonPolicy(&self, autologonpolicy: WinHttpRequestAutoLogonPolicy) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAutoLogonPolicy)(windows_core::Interface::as_raw(self), autologonpolicy).ok() @@ -456,9 +456,9 @@ windows_core::imp::interface_hierarchy!(IWinHttpRequestEvents, windows_core::IUn impl IWinHttpRequestEvents { pub unsafe fn OnResponseStart(&self, status: i32, contenttype: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResponseStart)(windows_core::Interface::as_raw(self), status, contenttype.into_param().abi()) + (windows_core::Interface::vtable(self).OnResponseStart)(windows_core::Interface::as_raw(self), status, contenttype.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnResponseDataAvailable(&self, data: *const *const super::super::System::Com::SAFEARRAY) { @@ -469,9 +469,9 @@ impl IWinHttpRequestEvents { } pub unsafe fn OnError(&self, errornumber: i32, errordescription: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), errornumber, errordescription.into_param().abi()) + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), errornumber, errordescription.param().abi()) } } #[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 bbb71ca5ac..2e6aa37fc7 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn AppCacheCheckManifest(pwszmasterurl: P0, pwszmanifesturl: P1, pbmanifestdata: &[u8], pbmanifestresponseheaders: &[u8], pestate: *mut APP_CACHE_STATE, phnewappcache: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn AppCacheCheckManifest(pwszmasterurl : windows_core::PCWSTR, pwszmanifesturl : windows_core::PCWSTR, pbmanifestdata : *const u8, dwmanifestdatasize : u32, pbmanifestresponseheaders : *const u8, dwmanifestresponseheaderssize : u32, pestate : *mut APP_CACHE_STATE, phnewappcache : *mut *mut core::ffi::c_void) -> u32); - AppCacheCheckManifest(pwszmasterurl.into_param().abi(), pwszmanifesturl.into_param().abi(), core::mem::transmute(pbmanifestdata.as_ptr()), pbmanifestdata.len().try_into().unwrap(), core::mem::transmute(pbmanifestresponseheaders.as_ptr()), pbmanifestresponseheaders.len().try_into().unwrap(), pestate, phnewappcache) + AppCacheCheckManifest(pwszmasterurl.param().abi(), pwszmanifesturl.param().abi(), core::mem::transmute(pbmanifestdata.as_ptr()), pbmanifestdata.len().try_into().unwrap(), core::mem::transmute(pbmanifestresponseheaders.as_ptr()), pbmanifestresponseheaders.len().try_into().unwrap(), pestate, phnewappcache) } #[inline] pub unsafe fn AppCacheCloseHandle(happcache: *const core::ffi::c_void) { @@ -15,27 +15,27 @@ pub unsafe fn AppCacheCloseHandle(happcache: *const core::ffi::c_void) { #[inline] pub unsafe fn AppCacheCreateAndCommitFile(happcache: *const core::ffi::c_void, pwszsourcefilepath: P0, pwszurl: P1, pbresponseheaders: &[u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(happcache, pwszsourcefilepath.into_param().abi(), pwszurl.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn AppCacheDeleteGroup(pwszmanifesturl : windows_core::PCWSTR) -> u32); - AppCacheDeleteGroup(pwszmanifesturl.into_param().abi()) + AppCacheDeleteGroup(pwszmanifesturl.param().abi()) } #[inline] pub unsafe fn AppCacheDeleteIEGroup(pwszmanifesturl: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn AppCacheDeleteIEGroup(pwszmanifesturl : windows_core::PCWSTR) -> u32); - AppCacheDeleteIEGroup(pwszmanifesturl.into_param().abi()) + AppCacheDeleteIEGroup(pwszmanifesturl.param().abi()) } #[inline] pub unsafe fn AppCacheDuplicateHandle(happcache: *const core::ffi::c_void, phduplicatedappcache: *mut *mut core::ffi::c_void) -> u32 { @@ -75,10 +75,10 @@ pub unsafe fn AppCacheGetDownloadList(happcache: *const core::ffi::c_void, pdown #[inline] pub unsafe fn AppCacheGetFallbackUrl(happcache: *const core::ffi::c_void, pwszurl: P0, ppwszfallbackurl: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: 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(happcache, pwszurl.into_param().abi(), ppwszfallbackurl) + AppCacheGetFallbackUrl(happcache, pwszurl.param().abi(), ppwszfallbackurl) } #[inline] pub unsafe fn AppCacheGetGroupList(pappcachegrouplist: *mut APP_CACHE_GROUP_LIST) -> u32 { @@ -103,98 +103,98 @@ pub unsafe fn AppCacheGetManifestUrl(happcache: *const core::ffi::c_void, ppwszm #[inline] pub unsafe fn AppCacheLookup(pwszurl: P0, dwflags: u32, phappcache: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, phappcache) + AppCacheLookup(pwszurl.param().abi(), dwflags, 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: P2, lpszoriginalurl: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpszlocalfilename.into_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.into_param().abi(), lpszoriginalurl.into_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 where - P0: windows_core::IntoParam, + 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.into_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())) + 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: P2, lpszoriginalurl: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpszlocalfilename.into_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.into_param().abi(), lpszoriginalurl.into_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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn CreateMD5SSOHash(pszchallengeinfo : windows_core::PCWSTR, pwszrealm : windows_core::PCWSTR, pwsztarget : windows_core::PCWSTR, pbhexhash : *mut u8) -> super::super::Foundation:: BOOL); - CreateMD5SSOHash(pszchallengeinfo.into_param().abi(), pwszrealm.into_param().abi(), pwsztarget.into_param().abi(), pbhexhash) + CreateMD5SSOHash(pszchallengeinfo.param().abi(), pwszrealm.param().abi(), pwsztarget.param().abi(), pbhexhash) } #[inline] pub unsafe fn CreateUrlCacheContainerA(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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpcacheprefix.into_param().abi(), lpszcachepath.into_param().abi(), kbcachelimit, dwcontainertype, dwoptions, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(cbbuffer.unwrap_or(std::ptr::null()))).ok() + CreateUrlCacheContainerA(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), kbcachelimit, dwcontainertype, dwoptions, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(cbbuffer.unwrap_or(std::ptr::null()))).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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpcacheprefix.into_param().abi(), lpszcachepath.into_param().abi(), kbcachelimit, dwcontainertype, dwoptions, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(cbbuffer.unwrap_or(std::ptr::null()))).ok() + CreateUrlCacheContainerW(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), kbcachelimit, dwcontainertype, dwoptions, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null())), core::mem::transmute(cbbuffer.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CreateUrlCacheEntryA(lpszurlname: P0, dwexpectedfilesize: u32, lpszfileextension: P1, lpszfilename: &mut [u8; 260], dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwexpectedfilesize, lpszfileextension.into_param().abi(), core::mem::transmute(lpszfilename.as_ptr()), 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: P1, lpszfilename: &mut [u16; 260], dwreserved: u32, fpreserveincomingfilename: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), dwexpectedfilesize, lpszfileextension.into_param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved, fpreserveincomingfilename.into_param().abi()) + CreateUrlCacheEntryExW(lpszurlname.param().abi(), dwexpectedfilesize, lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved, fpreserveincomingfilename.param().abi()) } #[inline] pub unsafe fn CreateUrlCacheEntryW(lpszurlname: P0, dwexpectedfilesize: u32, lpszfileextension: P1, lpszfilename: &mut [u16; 260], dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwexpectedfilesize, lpszfileextension.into_param().abi(), core::mem::transmute(lpszfilename.as_ptr()), 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 { @@ -204,52 +204,52 @@ pub unsafe fn CreateUrlCacheGroup(dwflags: u32, lpreserved: Option<*const core:: #[inline] pub unsafe fn DeleteIE3Cache(hwnd: P0, hinst: P1, lpszcmd: P2, ncmdshow: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinst.into_param().abi(), lpszcmd.into_param().abi(), ncmdshow) + DeleteIE3Cache(hwnd.param().abi(), hinst.param().abi(), lpszcmd.param().abi(), ncmdshow) } #[inline] pub unsafe fn DeleteUrlCacheContainerA(name: P0, dwoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerA(name : windows_core::PCSTR, dwoptions : u32) -> super::super::Foundation:: BOOL); - DeleteUrlCacheContainerA(name.into_param().abi(), dwoptions).ok() + DeleteUrlCacheContainerA(name.param().abi(), dwoptions).ok() } #[inline] pub unsafe fn DeleteUrlCacheContainerW(name: P0, dwoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerW(name : windows_core::PCWSTR, dwoptions : u32) -> super::super::Foundation:: BOOL); - DeleteUrlCacheContainerW(name.into_param().abi(), dwoptions).ok() + DeleteUrlCacheContainerW(name.param().abi(), dwoptions).ok() } #[inline] pub unsafe fn DeleteUrlCacheEntry(lpszurlname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntry(lpszurlname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeleteUrlCacheEntry(lpszurlname.into_param().abi()).ok() + DeleteUrlCacheEntry(lpszurlname.param().abi()).ok() } #[inline] pub unsafe fn DeleteUrlCacheEntryA(lpszurlname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntryA(lpszurlname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeleteUrlCacheEntryA(lpszurlname.into_param().abi()).ok() + DeleteUrlCacheEntryA(lpszurlname.param().abi()).ok() } #[inline] pub unsafe fn DeleteUrlCacheEntryW(lpszurlname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntryW(lpszurlname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeleteUrlCacheEntryW(lpszurlname.into_param().abi()).ok() + DeleteUrlCacheEntryW(lpszurlname.param().abi()).ok() } #[inline] pub unsafe fn DeleteUrlCacheGroup(groupid: i64, dwflags: u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -274,28 +274,28 @@ pub unsafe fn DoConnectoidsExist() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn ExportCookieFileA(szfilename: P0, fappend: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn ExportCookieFileA(szfilename : windows_core::PCSTR, fappend : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ExportCookieFileA(szfilename.into_param().abi(), fappend.into_param().abi()) + ExportCookieFileA(szfilename.param().abi(), fappend.param().abi()) } #[inline] pub unsafe fn ExportCookieFileW(szfilename: P0, fappend: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn ExportCookieFileW(szfilename : windows_core::PCWSTR, fappend : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ExportCookieFileW(szfilename.into_param().abi(), fappend.into_param().abi()) + ExportCookieFileW(szfilename.param().abi(), fappend.param().abi()) } #[inline] pub unsafe fn FindCloseUrlCache(henumhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FindCloseUrlCache(henumhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindCloseUrlCache(henumhandle.into_param().abi()).ok() + FindCloseUrlCache(henumhandle.param().abi()).ok() } #[inline] pub unsafe fn FindFirstUrlCacheContainerA(pdwmodified: *mut u32, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo: *mut u32, dwoptions: u32) -> super::super::Foundation::HANDLE { @@ -310,37 +310,37 @@ pub unsafe fn FindFirstUrlCacheContainerW(pdwmodified: *mut u32, lpcontainerinfo #[inline] pub unsafe fn FindFirstUrlCacheEntryA(lpszurlsearchpattern: P0, lpfirstcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FindFirstUrlCacheEntryA(lpszurlsearchpattern : windows_core::PCSTR, lpfirstcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstUrlCacheEntryA(lpszurlsearchpattern.into_param().abi(), core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo); + let result__ = FindFirstUrlCacheEntryA(lpszurlsearchpattern.param().abi(), core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstUrlCacheEntryExA(lpszurlsearchpattern: P0, dwflags: u32, dwfilter: u32, groupid: i64, lpfirstcacheentryinfo: 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))); + let result__ = FindFirstUrlCacheEntryExA(lpszurlsearchpattern.param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstUrlCacheEntryExW(lpszurlsearchpattern: P0, dwflags: u32, dwfilter: u32, groupid: i64, lpfirstcacheentryinfo: 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))); + let result__ = FindFirstUrlCacheEntryExW(lpszurlsearchpattern.param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstUrlCacheEntryW(lpszurlsearchpattern: P0, lpfirstcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FindFirstUrlCacheEntryW(lpszurlsearchpattern : windows_core::PCWSTR, lpfirstcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstUrlCacheEntryW(lpszurlsearchpattern.into_param().abi(), core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo); + let result__ = FindFirstUrlCacheEntryW(lpszurlsearchpattern.param().abi(), core::mem::transmute(lpfirstcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -352,150 +352,150 @@ pub unsafe fn FindFirstUrlCacheGroup(dwflags: u32, dwfilter: u32, lpsearchcondit #[inline] pub unsafe fn FindNextUrlCacheContainerA(henumhandle: P0, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henumhandle.into_param().abi(), lpcontainerinfo, lpcbcontainerinfo) + FindNextUrlCacheContainerA(henumhandle.param().abi(), lpcontainerinfo, lpcbcontainerinfo) } #[inline] pub unsafe fn FindNextUrlCacheContainerW(henumhandle: P0, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henumhandle.into_param().abi(), lpcontainerinfo, lpcbcontainerinfo) + FindNextUrlCacheContainerW(henumhandle.param().abi(), lpcontainerinfo, lpcbcontainerinfo) } #[inline] pub unsafe fn FindNextUrlCacheEntryA(henumhandle: P0, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henumhandle.into_param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo).ok() + FindNextUrlCacheEntryA(henumhandle.param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo).ok() } #[inline] pub unsafe fn FindNextUrlCacheEntryExA(henumhandle: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henumhandle.into_param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + FindNextUrlCacheEntryExA(henumhandle.param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn FindNextUrlCacheEntryExW(henumhandle: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henumhandle.into_param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + FindNextUrlCacheEntryExW(henumhandle.param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, core::mem::transmute(lpgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpcbgroupattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn FindNextUrlCacheEntryW(henumhandle: P0, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(henumhandle.into_param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo).ok() + FindNextUrlCacheEntryW(henumhandle.param().abi(), core::mem::transmute(lpnextcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo).ok() } #[inline] pub unsafe fn FindNextUrlCacheGroup(hfind: P0, lpgroupid: *mut i64, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfind.into_param().abi(), lpgroupid, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + FindNextUrlCacheGroup(hfind.param().abi(), lpgroupid, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn FindP3PPolicySymbol(pszsymbol: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn FindP3PPolicySymbol(pszsymbol : windows_core::PCSTR) -> i32); - FindP3PPolicySymbol(pszsymbol.into_param().abi()) + FindP3PPolicySymbol(pszsymbol.param().abi()) } #[inline] pub unsafe fn FreeUrlCacheSpaceA(lpszcachepath: P0, dwsize: u32, dwfilter: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwsize, dwfilter).ok() + FreeUrlCacheSpaceA(lpszcachepath.param().abi(), dwsize, dwfilter).ok() } #[inline] pub unsafe fn FreeUrlCacheSpaceW(lpszcachepath: P0, dwsize: u32, dwfilter: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwsize, dwfilter).ok() + FreeUrlCacheSpaceW(lpszcachepath.param().abi(), dwsize, dwfilter).ok() } #[inline] pub unsafe fn FtpCommandA(hconnect: *const core::ffi::c_void, fexpectresponse: P0, dwflags: FTP_FLAGS, lpszcommand: P1, dwcontext: usize, phftpcommand: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, fexpectresponse.into_param().abi(), dwflags, lpszcommand.into_param().abi(), dwcontext, core::mem::transmute(phftpcommand.unwrap_or(std::ptr::null_mut()))).ok() + FtpCommandA(hconnect, fexpectresponse.param().abi(), dwflags, lpszcommand.param().abi(), dwcontext, core::mem::transmute(phftpcommand.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn FtpCommandW(hconnect: *const core::ffi::c_void, fexpectresponse: P0, dwflags: FTP_FLAGS, lpszcommand: P1, dwcontext: usize, phftpcommand: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, fexpectresponse.into_param().abi(), dwflags, lpszcommand.into_param().abi(), dwcontext, core::mem::transmute(phftpcommand.unwrap_or(std::ptr::null_mut()))).ok() + FtpCommandW(hconnect, fexpectresponse.param().abi(), dwflags, lpszcommand.param().abi(), dwcontext, core::mem::transmute(phftpcommand.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn FtpCreateDirectoryA(hconnect: *const core::ffi::c_void, lpszdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszdirectory.into_param().abi()).ok() + FtpCreateDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpCreateDirectoryW(hconnect: *const core::ffi::c_void, lpszdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszdirectory.into_param().abi()).ok() + FtpCreateDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpDeleteFileA(hconnect: *const core::ffi::c_void, lpszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszfilename.into_param().abi()).ok() + FtpDeleteFileA(hconnect, lpszfilename.param().abi()).ok() } #[inline] pub unsafe fn FtpDeleteFileW(hconnect: *const core::ffi::c_void, lpszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszfilename.into_param().abi()).ok() + FtpDeleteFileW(hconnect, lpszfilename.param().abi()).ok() } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn FtpFindFirstFileA(hconnect: *const core::ffi::c_void, lpszsearchfile: P0, lpfindfiledata: Option<*mut super::super::Storage::FileSystem::WIN32_FIND_DATAA>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszsearchfile.into_param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) + FtpFindFirstFileA(hconnect, lpszsearchfile.param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn FtpFindFirstFileW(hconnect: *const core::ffi::c_void, lpszsearchfile: P0, lpfindfiledata: Option<*mut super::super::Storage::FileSystem::WIN32_FIND_DATAW>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszsearchfile.into_param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) + FtpFindFirstFileW(hconnect, lpszsearchfile.param().abi(), core::mem::transmute(lpfindfiledata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) } #[inline] pub unsafe fn FtpGetCurrentDirectoryA(hconnect: *const core::ffi::c_void, lpszcurrentdirectory: windows_core::PSTR, lpdwcurrentdirectory: *mut u32) -> windows_core::Result<()> { @@ -510,22 +510,22 @@ pub unsafe fn FtpGetCurrentDirectoryW(hconnect: *const core::ffi::c_void, lpszcu #[inline] pub unsafe fn FtpGetFileA(hconnect: *const core::ffi::c_void, lpszremotefile: P0, lpsznewfile: P1, ffailifexists: P2, dwflagsandattributes: u32, dwflags: u32, dwcontext: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hconnect, lpszremotefile.into_param().abi(), lpsznewfile.into_param().abi(), ffailifexists.into_param().abi(), dwflagsandattributes, dwflags, dwcontext).ok() + FtpGetFileA(hconnect, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.param().abi(), dwflagsandattributes, dwflags, dwcontext).ok() } #[inline] pub unsafe fn FtpGetFileEx(hftpsession: *const core::ffi::c_void, lpszremotefile: P0, lpsznewfile: P1, ffailifexists: P2, dwflagsandattributes: u32, dwflags: u32, dwcontext: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hftpsession, lpszremotefile.into_param().abi(), lpsznewfile.into_param().abi(), ffailifexists.into_param().abi(), dwflagsandattributes, dwflags, dwcontext) + FtpGetFileEx(hftpsession, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.param().abi(), dwflagsandattributes, dwflags, dwcontext) } #[inline] pub unsafe fn FtpGetFileSize(hfile: *const core::ffi::c_void, lpdwfilesizehigh: Option<*mut u32>) -> u32 { @@ -535,113 +535,113 @@ pub unsafe fn FtpGetFileSize(hfile: *const core::ffi::c_void, lpdwfilesizehigh: #[inline] pub unsafe fn FtpGetFileW(hconnect: *const core::ffi::c_void, lpszremotefile: P0, lpsznewfile: P1, ffailifexists: P2, dwflagsandattributes: u32, dwflags: u32, dwcontext: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hconnect, lpszremotefile.into_param().abi(), lpsznewfile.into_param().abi(), ffailifexists.into_param().abi(), dwflagsandattributes, dwflags, dwcontext).ok() + FtpGetFileW(hconnect, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.param().abi(), dwflagsandattributes, dwflags, dwcontext).ok() } #[inline] pub unsafe fn FtpOpenFileA(hconnect: *const core::ffi::c_void, lpszfilename: P0, dwaccess: u32, dwflags: FTP_FLAGS, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszfilename.into_param().abi(), dwaccess, dwflags, dwcontext) + FtpOpenFileA(hconnect, lpszfilename.param().abi(), dwaccess, dwflags, dwcontext) } #[inline] pub unsafe fn FtpOpenFileW(hconnect: *const core::ffi::c_void, lpszfilename: P0, dwaccess: u32, dwflags: FTP_FLAGS, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszfilename.into_param().abi(), dwaccess, dwflags, dwcontext) + FtpOpenFileW(hconnect, lpszfilename.param().abi(), dwaccess, dwflags, dwcontext) } #[inline] pub unsafe fn FtpPutFileA(hconnect: *const core::ffi::c_void, lpszlocalfile: P0, lpsznewremotefile: P1, dwflags: FTP_FLAGS, dwcontext: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocalfile.into_param().abi(), lpsznewremotefile.into_param().abi(), dwflags, dwcontext).ok() + FtpPutFileA(hconnect, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, dwcontext).ok() } #[inline] pub unsafe fn FtpPutFileEx(hftpsession: *const core::ffi::c_void, lpszlocalfile: P0, lpsznewremotefile: P1, dwflags: u32, dwcontext: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hftpsession, lpszlocalfile.into_param().abi(), lpsznewremotefile.into_param().abi(), dwflags, dwcontext) + FtpPutFileEx(hftpsession, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, dwcontext) } #[inline] pub unsafe fn FtpPutFileW(hconnect: *const core::ffi::c_void, lpszlocalfile: P0, lpsznewremotefile: P1, dwflags: FTP_FLAGS, dwcontext: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocalfile.into_param().abi(), lpsznewremotefile.into_param().abi(), dwflags, dwcontext).ok() + FtpPutFileW(hconnect, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, dwcontext).ok() } #[inline] pub unsafe fn FtpRemoveDirectoryA(hconnect: *const core::ffi::c_void, lpszdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszdirectory.into_param().abi()).ok() + FtpRemoveDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpRemoveDirectoryW(hconnect: *const core::ffi::c_void, lpszdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszdirectory.into_param().abi()).ok() + FtpRemoveDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpRenameFileA(hconnect: *const core::ffi::c_void, lpszexisting: P0, lpsznew: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszexisting.into_param().abi(), lpsznew.into_param().abi()).ok() + FtpRenameFileA(hconnect, lpszexisting.param().abi(), lpsznew.param().abi()).ok() } #[inline] pub unsafe fn FtpRenameFileW(hconnect: *const core::ffi::c_void, lpszexisting: P0, lpsznew: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszexisting.into_param().abi(), lpsznew.into_param().abi()).ok() + FtpRenameFileW(hconnect, lpszexisting.param().abi(), lpsznew.param().abi()).ok() } #[inline] pub unsafe fn FtpSetCurrentDirectoryA(hconnect: *const core::ffi::c_void, lpszdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszdirectory.into_param().abi()).ok() + FtpSetCurrentDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } #[inline] pub unsafe fn FtpSetCurrentDirectoryW(hconnect: *const core::ffi::c_void, lpszdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hconnect, lpszdirectory.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GetDiskInfoA(pszpath : windows_core::PCSTR, pdwclustersize : *mut u32, pdlavail : *mut u64, pdltotal : *mut u64) -> super::super::Foundation:: BOOL); - GetDiskInfoA(pszpath.into_param().abi(), core::mem::transmute(pdwclustersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdlavail.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdltotal.unwrap_or(std::ptr::null_mut()))) + GetDiskInfoA(pszpath.param().abi(), core::mem::transmute(pdwclustersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdlavail.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdltotal.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetUrlCacheConfigInfoA(lpcacheconfiginfo: *mut INTERNET_CACHE_CONFIG_INFOA, lpcbcacheconfiginfo: Option<*const u32>, dwfieldcontrol: CACHE_CONFIG) -> windows_core::Result<()> { @@ -656,44 +656,44 @@ pub unsafe fn GetUrlCacheConfigInfoW(lpcacheconfiginfo: *mut INTERNET_CACHE_CONF #[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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryBinaryBlob(pwszurlname : windows_core::PCWSTR, 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); - GetUrlCacheEntryBinaryBlob(pwszurlname.into_param().abi(), dwtype, pftexpiretime, pftaccesstime, pftmodifiedtime, ppbblob, pcbblob) + GetUrlCacheEntryBinaryBlob(pwszurlname.param().abi(), dwtype, pftexpiretime, pftaccesstime, pftmodifiedtime, ppbblob, pcbblob) } #[inline] pub unsafe fn GetUrlCacheEntryInfoA(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); - GetUrlCacheEntryInfoA(lpszurlname.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut()))).ok() + GetUrlCacheEntryInfoA(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetUrlCacheEntryInfoExA(lpszurl: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: Option<*mut u32>, lpszredirecturl: P1, lpcbredirecturl: Option<*const u32>, lpreserved: Option<*const core::ffi::c_void>, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpszredirecturl.into_param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), dwflags).ok() + GetUrlCacheEntryInfoExA(lpszurl.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpszredirecturl.param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), dwflags).ok() } #[inline] pub unsafe fn GetUrlCacheEntryInfoExW(lpszurl: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: Option<*mut u32>, lpszredirecturl: P1, lpcbredirecturl: Option<*const u32>, lpreserved: Option<*const core::ffi::c_void>, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpszredirecturl.into_param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), dwflags).ok() + GetUrlCacheEntryInfoExW(lpszurl.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpszredirecturl.param().abi(), core::mem::transmute(lpcbredirecturl.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), dwflags).ok() } #[inline] pub unsafe fn GetUrlCacheEntryInfoW(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); - GetUrlCacheEntryInfoW(lpszurlname.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut()))).ok() + GetUrlCacheEntryInfoW(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbcacheentryinfo.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetUrlCacheGroupAttributeA(gid: i64, dwflags: u32, dwattributes: u32, lpgroupinfo: *mut INTERNET_CACHE_GROUP_INFOA, lpcbgroupinfo: *mut u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -713,92 +713,92 @@ pub unsafe fn GetUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> super::sup #[inline] pub unsafe fn GopherCreateLocatorA(lpszhost: P0, nserverport: u16, lpszdisplaystring: P1, lpszselectorstring: P2, dwgophertype: u32, lpszlocator: windows_core::PSTR, lpdwbufferlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), nserverport, lpszdisplaystring.into_param().abi(), lpszselectorstring.into_param().abi(), dwgophertype, core::mem::transmute(lpszlocator), lpdwbufferlength).ok() + GopherCreateLocatorA(lpszhost.param().abi(), nserverport, lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), dwgophertype, core::mem::transmute(lpszlocator), lpdwbufferlength).ok() } #[inline] pub unsafe fn GopherCreateLocatorW(lpszhost: P0, nserverport: u16, lpszdisplaystring: P1, lpszselectorstring: P2, dwgophertype: u32, lpszlocator: windows_core::PWSTR, lpdwbufferlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), nserverport, lpszdisplaystring.into_param().abi(), lpszselectorstring.into_param().abi(), dwgophertype, core::mem::transmute(lpszlocator), lpdwbufferlength).ok() + GopherCreateLocatorW(lpszhost.param().abi(), nserverport, lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), dwgophertype, core::mem::transmute(lpszlocator), lpdwbufferlength).ok() } #[inline] pub unsafe fn GopherFindFirstFileA(hconnect: *const core::ffi::c_void, lpszlocator: P0, lpszsearchstring: P1, lpfinddata: Option<*mut GOPHER_FIND_DATAA>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocator.into_param().abi(), lpszsearchstring.into_param().abi(), core::mem::transmute(lpfinddata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) + GopherFindFirstFileA(hconnect, lpszlocator.param().abi(), lpszsearchstring.param().abi(), core::mem::transmute(lpfinddata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) } #[inline] pub unsafe fn GopherFindFirstFileW(hconnect: *const core::ffi::c_void, lpszlocator: P0, lpszsearchstring: P1, lpfinddata: Option<*mut GOPHER_FIND_DATAW>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocator.into_param().abi(), lpszsearchstring.into_param().abi(), core::mem::transmute(lpfinddata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) + GopherFindFirstFileW(hconnect, lpszlocator.param().abi(), lpszsearchstring.param().abi(), core::mem::transmute(lpfinddata.unwrap_or(std::ptr::null_mut())), dwflags, dwcontext) } #[inline] pub unsafe fn GopherGetAttributeA(hconnect: *const core::ffi::c_void, lpszlocator: P0, lpszattributename: P1, lpbuffer: &mut [u8], lpdwcharactersreturned: *mut u32, lpfnenumerator: GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocator.into_param().abi(), lpszattributename.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpdwcharactersreturned, lpfnenumerator, dwcontext).ok() + GopherGetAttributeA(hconnect, lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpdwcharactersreturned, lpfnenumerator, dwcontext).ok() } #[inline] pub unsafe fn GopherGetAttributeW(hconnect: *const core::ffi::c_void, lpszlocator: P0, lpszattributename: P1, lpbuffer: &mut [u8], lpdwcharactersreturned: *mut u32, lpfnenumerator: GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocator.into_param().abi(), lpszattributename.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpdwcharactersreturned, lpfnenumerator, dwcontext).ok() + GopherGetAttributeW(hconnect, lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpdwcharactersreturned, lpfnenumerator, dwcontext).ok() } #[inline] pub unsafe fn GopherGetLocatorTypeA(lpszlocator: P0, lpdwgophertype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherGetLocatorTypeA(lpszlocator : windows_core::PCSTR, lpdwgophertype : *mut u32) -> super::super::Foundation:: BOOL); - GopherGetLocatorTypeA(lpszlocator.into_param().abi(), lpdwgophertype).ok() + GopherGetLocatorTypeA(lpszlocator.param().abi(), lpdwgophertype).ok() } #[inline] pub unsafe fn GopherGetLocatorTypeW(lpszlocator: P0, lpdwgophertype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn GopherGetLocatorTypeW(lpszlocator : windows_core::PCWSTR, lpdwgophertype : *mut u32) -> super::super::Foundation:: BOOL); - GopherGetLocatorTypeW(lpszlocator.into_param().abi(), lpdwgophertype).ok() + GopherGetLocatorTypeW(lpszlocator.param().abi(), lpdwgophertype).ok() } #[inline] pub unsafe fn GopherOpenFileA(hconnect: *const core::ffi::c_void, lpszlocator: P0, lpszview: P1, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocator.into_param().abi(), lpszview.into_param().abi(), dwflags, dwcontext) + GopherOpenFileA(hconnect, lpszlocator.param().abi(), lpszview.param().abi(), dwflags, dwcontext) } #[inline] pub unsafe fn GopherOpenFileW(hconnect: *const core::ffi::c_void, lpszlocator: P0, lpszview: P1, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hconnect, lpszlocator.into_param().abi(), lpszview.into_param().abi(), dwflags, dwcontext) + GopherOpenFileW(hconnect, lpszlocator.param().abi(), lpszview.param().abi(), dwflags, dwcontext) } #[inline] pub unsafe fn HttpAddRequestHeadersA(hrequest: *const core::ffi::c_void, lpszheaders: &[u8], dwmodifiers: HTTP_ADDREQ_FLAG) -> windows_core::Result<()> { @@ -813,22 +813,22 @@ pub unsafe fn HttpAddRequestHeadersW(hrequest: *const core::ffi::c_void, lpszhea #[inline] pub unsafe fn HttpCheckDavComplianceA(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut super::super::Foundation::BOOL, hwnd: P2, lpvreserved: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpszcompliancetoken.into_param().abi(), lpffound, hwnd.into_param().abi(), lpvreserved) + HttpCheckDavComplianceA(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), lpffound, hwnd.param().abi(), lpvreserved) } #[inline] pub unsafe fn HttpCheckDavComplianceW(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut super::super::Foundation::BOOL, hwnd: P2, lpvreserved: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpszcompliancetoken.into_param().abi(), lpffound, hwnd.into_param().abi(), lpvreserved) + HttpCheckDavComplianceW(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), lpffound, hwnd.param().abi(), lpvreserved) } #[inline] pub unsafe fn HttpCloseDependencyHandle(hdependencyhandle: *const core::ffi::c_void) { @@ -853,10 +853,10 @@ pub unsafe fn HttpEndRequestW(hrequest: *const core::ffi::c_void, lpbuffersout: #[inline] pub unsafe fn HttpGetServerCredentials(pwszurl: P0, ppwszusername: *mut windows_core::PWSTR, ppwszpassword: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn HttpGetServerCredentials(pwszurl : windows_core::PCWSTR, ppwszusername : *mut windows_core::PWSTR, ppwszpassword : *mut windows_core::PWSTR) -> u32); - HttpGetServerCredentials(pwszurl.into_param().abi(), ppwszusername, ppwszpassword) + HttpGetServerCredentials(pwszurl.param().abi(), ppwszusername, ppwszpassword) } #[inline] pub unsafe fn HttpIndicatePageLoadComplete(hdependencyhandle: *const core::ffi::c_void) -> u32 { @@ -866,48 +866,48 @@ pub unsafe fn HttpIndicatePageLoadComplete(hdependencyhandle: *const core::ffi:: #[inline] pub unsafe fn HttpIsHostHstsEnabled(pcwszurl: P0, pfishsts: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn HttpIsHostHstsEnabled(pcwszurl : windows_core::PCWSTR, pfishsts : *mut super::super::Foundation:: BOOL) -> u32); - HttpIsHostHstsEnabled(pcwszurl.into_param().abi(), pfishsts) + HttpIsHostHstsEnabled(pcwszurl.param().abi(), pfishsts) } #[inline] pub unsafe fn HttpOpenDependencyHandle(hrequesthandle: *const core::ffi::c_void, fbackground: P0, phdependencyhandle: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrequesthandle, fbackground.into_param().abi(), phdependencyhandle) + HttpOpenDependencyHandle(hrequesthandle, fbackground.param().abi(), phdependencyhandle) } #[inline] pub unsafe fn HttpOpenRequestA(hconnect: *const core::ffi::c_void, lpszverb: P0, lpszobjectname: P1, lpszversion: P2, lpszreferrer: P3, lplpszaccepttypes: Option<*const windows_core::PCSTR>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hconnect, lpszverb.into_param().abi(), lpszobjectname.into_param().abi(), lpszversion.into_param().abi(), lpszreferrer.into_param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(std::ptr::null())), dwflags, dwcontext) + HttpOpenRequestA(hconnect, lpszverb.param().abi(), lpszobjectname.param().abi(), lpszversion.param().abi(), lpszreferrer.param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(std::ptr::null())), dwflags, dwcontext) } #[inline] pub unsafe fn HttpOpenRequestW(hconnect: *const core::ffi::c_void, lpszverb: P0, lpszobjectname: P1, lpszversion: P2, lpszreferrer: P3, lplpszaccepttypes: Option<*const windows_core::PCWSTR>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hconnect, lpszverb.into_param().abi(), lpszobjectname.into_param().abi(), lpszversion.into_param().abi(), lpszreferrer.into_param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(std::ptr::null())), dwflags, dwcontext) + HttpOpenRequestW(hconnect, lpszverb.param().abi(), lpszobjectname.param().abi(), lpszversion.param().abi(), lpszreferrer.param().abi(), core::mem::transmute(lplpszaccepttypes.unwrap_or(std::ptr::null())), dwflags, dwcontext) } #[inline] pub unsafe fn HttpPushClose(hwait: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn HttpPushClose(hwait : HTTP_PUSH_WAIT_HANDLE)); - HttpPushClose(hwait.into_param().abi()) + HttpPushClose(hwait.param().abi()) } #[inline] pub unsafe fn HttpPushEnable(hrequest: *const core::ffi::c_void, ptransportsetting: *const HTTP_PUSH_TRANSPORT_SETTING, phwait: *mut HTTP_PUSH_WAIT_HANDLE) -> u32 { @@ -917,10 +917,10 @@ pub unsafe fn HttpPushEnable(hrequest: *const core::ffi::c_void, ptransportsetti #[inline] pub unsafe fn HttpPushWait(hwait: P0, etype: HTTP_PUSH_WAIT_TYPE, pnotificationstatus: Option<*mut HTTP_PUSH_NOTIFICATION_STATUS>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwait.into_param().abi(), etype, core::mem::transmute(pnotificationstatus.unwrap_or(std::ptr::null_mut()))) + HttpPushWait(hwait.param().abi(), etype, core::mem::transmute(pnotificationstatus.unwrap_or(std::ptr::null_mut()))) } #[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<()> { @@ -985,18 +985,18 @@ pub unsafe fn HttpWebSocketShutdown(hwebsocket: *const core::ffi::c_void, usstat #[inline] pub unsafe fn ImportCookieFileA(szfilename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn ImportCookieFileA(szfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ImportCookieFileA(szfilename.into_param().abi()) + ImportCookieFileA(szfilename.param().abi()) } #[inline] pub unsafe fn ImportCookieFileW(szfilename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn ImportCookieFileW(szfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ImportCookieFileW(szfilename.into_param().abi()) + ImportCookieFileW(szfilename.param().abi()) } #[inline] pub unsafe fn IncrementUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> super::super::Foundation::BOOL { @@ -1006,10 +1006,10 @@ pub unsafe fn IncrementUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> supe #[inline] pub unsafe fn InternalInternetGetCookie(lpszurl: P0, lpszcookiedata: windows_core::PSTR, lpdwdatasize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternalInternetGetCookie(lpszurl : windows_core::PCSTR, lpszcookiedata : windows_core::PSTR, lpdwdatasize : *mut u32) -> u32); - InternalInternetGetCookie(lpszurl.into_param().abi(), core::mem::transmute(lpszcookiedata), lpdwdatasize) + InternalInternetGetCookie(lpszurl.param().abi(), core::mem::transmute(lpszcookiedata), lpdwdatasize) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1031,10 +1031,10 @@ pub unsafe fn InternetAttemptConnect(dwreserved: u32) -> u32 { #[inline] pub unsafe fn InternetAutodial(dwflags: INTERNET_AUTODIAL, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetAutodial(dwflags : INTERNET_AUTODIAL, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InternetAutodial(dwflags, hwndparent.into_param().abi()).ok() + InternetAutodial(dwflags, hwndparent.param().abi()).ok() } #[inline] pub unsafe fn InternetAutodialHangup(dwreserved: u32) -> windows_core::Result<()> { @@ -1044,34 +1044,34 @@ pub unsafe fn InternetAutodialHangup(dwreserved: u32) -> windows_core::Result<() #[inline] pub unsafe fn InternetCanonicalizeUrlA(lpszurl: P0, lpszbuffer: windows_core::PSTR, lpdwbufferlength: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() + InternetCanonicalizeUrlA(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() } #[inline] pub unsafe fn InternetCanonicalizeUrlW(lpszurl: P0, lpszbuffer: windows_core::PWSTR, lpdwbufferlength: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() + InternetCanonicalizeUrlW(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() } #[inline] pub unsafe fn InternetCheckConnectionA(lpszurl: P0, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwreserved).ok() + InternetCheckConnectionA(lpszurl.param().abi(), dwflags, dwreserved).ok() } #[inline] pub unsafe fn InternetCheckConnectionW(lpszurl: P0, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwreserved).ok() + InternetCheckConnectionW(lpszurl.param().abi(), dwflags, dwreserved).ok() } #[inline] pub unsafe fn InternetClearAllPerSiteCookieDecisions() -> super::super::Foundation::BOOL { @@ -1086,82 +1086,82 @@ pub unsafe fn InternetCloseHandle(hinternet: *const core::ffi::c_void) -> window #[inline] pub unsafe fn InternetCombineUrlA(lpszbaseurl: P0, lpszrelativeurl: P1, lpszbuffer: windows_core::PSTR, lpdwbufferlength: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszrelativeurl.into_param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() + InternetCombineUrlA(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() } #[inline] pub unsafe fn InternetCombineUrlW(lpszbaseurl: P0, lpszrelativeurl: P1, lpszbuffer: windows_core::PWSTR, lpdwbufferlength: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszrelativeurl.into_param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() + InternetCombineUrlW(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength, dwflags).ok() } #[inline] pub unsafe fn InternetConfirmZoneCrossing(hwnd: P0, szurlprev: P1, szurlnew: P2, bpost: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hwnd.into_param().abi(), szurlprev.into_param().abi(), szurlnew.into_param().abi(), bpost.into_param().abi()) + InternetConfirmZoneCrossing(hwnd.param().abi(), szurlprev.param().abi(), szurlnew.param().abi(), bpost.param().abi()) } #[inline] pub unsafe fn InternetConfirmZoneCrossingA(hwnd: P0, szurlprev: P1, szurlnew: P2, bpost: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hwnd.into_param().abi(), szurlprev.into_param().abi(), szurlnew.into_param().abi(), bpost.into_param().abi()) + InternetConfirmZoneCrossingA(hwnd.param().abi(), szurlprev.param().abi(), szurlnew.param().abi(), bpost.param().abi()) } #[inline] pub unsafe fn InternetConfirmZoneCrossingW(hwnd: P0, szurlprev: P1, szurlnew: P2, bpost: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hwnd.into_param().abi(), szurlprev.into_param().abi(), szurlnew.into_param().abi(), bpost.into_param().abi()) + InternetConfirmZoneCrossingW(hwnd.param().abi(), szurlprev.param().abi(), szurlnew.param().abi(), bpost.param().abi()) } #[inline] pub unsafe fn InternetConnectA(hinternet: *const core::ffi::c_void, lpszservername: P0, nserverport: u16, lpszusername: P1, lpszpassword: P2, dwservice: u32, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hinternet, lpszservername.into_param().abi(), nserverport, lpszusername.into_param().abi(), lpszpassword.into_param().abi(), dwservice, dwflags, dwcontext) + InternetConnectA(hinternet, lpszservername.param().abi(), nserverport, lpszusername.param().abi(), lpszpassword.param().abi(), dwservice, dwflags, dwcontext) } #[inline] pub unsafe fn InternetConnectW(hinternet: *const core::ffi::c_void, lpszservername: P0, nserverport: u16, lpszusername: P1, lpszpassword: P2, dwservice: u32, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hinternet, lpszservername.into_param().abi(), nserverport, lpszusername.into_param().abi(), lpszpassword.into_param().abi(), dwservice, dwflags, dwcontext) + InternetConnectW(hinternet, lpszservername.param().abi(), nserverport, lpszusername.param().abi(), lpszpassword.param().abi(), dwservice, dwflags, dwcontext) } #[inline] pub unsafe fn InternetConvertUrlFromWireToWideChar(pcszurl: &[u8], pcwszbaseurl: P0, dwcodepagehost: u32, dwcodepagepath: u32, fencodepathextra: P1, dwcodepageextra: u32, ppwszconvertedurl: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwcodepagehost, dwcodepagepath, fencodepathextra.into_param().abi(), dwcodepageextra, ppwszconvertedurl) + InternetConvertUrlFromWireToWideChar(core::mem::transmute(pcszurl.as_ptr()), pcszurl.len().try_into().unwrap(), pcwszbaseurl.param().abi(), dwcodepagehost, dwcodepagepath, fencodepathextra.param().abi(), dwcodepageextra, ppwszconvertedurl) } #[cfg(feature = "Win32_Networking_WinHttp")] #[inline] @@ -1188,29 +1188,29 @@ pub unsafe fn InternetCreateUrlW(lpurlcomponents: *const URL_COMPONENTSW, dwflag #[inline] pub unsafe fn InternetDial(hwndparent: P0, lpszconnectoid: P1, dwflags: u32, lpdwconnection: *mut u32, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), lpszconnectoid.into_param().abi(), dwflags, lpdwconnection, dwreserved) + InternetDial(hwndparent.param().abi(), lpszconnectoid.param().abi(), dwflags, lpdwconnection, dwreserved) } #[inline] pub unsafe fn InternetDialA(hwndparent: P0, lpszconnectoid: P1, dwflags: u32, lpdwconnection: *mut usize, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), lpszconnectoid.into_param().abi(), dwflags, lpdwconnection, dwreserved) + InternetDialA(hwndparent.param().abi(), lpszconnectoid.param().abi(), dwflags, lpdwconnection, dwreserved) } #[inline] pub unsafe fn InternetDialW(hwndparent: P0, lpszconnectoid: P1, dwflags: u32, lpdwconnection: *mut usize, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndparent.into_param().abi(), lpszconnectoid.into_param().abi(), dwflags, lpdwconnection, dwreserved) + InternetDialW(hwndparent.param().abi(), lpszconnectoid.param().abi(), dwflags, lpdwconnection, dwreserved) } #[inline] pub unsafe fn InternetEnumPerSiteCookieDecisionA(pszsitename: windows_core::PSTR, pcsitenamesize: *mut u32, pdwdecision: *mut u32, dwindex: u32) -> super::super::Foundation::BOOL { @@ -1225,10 +1225,10 @@ pub unsafe fn InternetEnumPerSiteCookieDecisionW(pszsitename: windows_core::PWST #[inline] pub unsafe fn InternetErrorDlg(hwnd: P0, hrequest: Option<*mut core::ffi::c_void>, dwerror: u32, dwflags: u32, lppvdata: Option<*mut *mut core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(hrequest.unwrap_or(std::ptr::null_mut())), dwerror, dwflags, core::mem::transmute(lppvdata.unwrap_or(std::ptr::null_mut()))) + InternetErrorDlg(hwnd.param().abi(), core::mem::transmute(hrequest.unwrap_or(std::ptr::null_mut())), dwerror, dwflags, core::mem::transmute(lppvdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn InternetFindNextFileA(hfind: *const core::ffi::c_void, lpvfinddata: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1243,10 +1243,10 @@ pub unsafe fn InternetFindNextFileW(hfind: *const core::ffi::c_void, lpvfinddata #[inline] pub unsafe fn InternetFortezzaCommand(dwcommand: u32, hwnd: P0, dwreserved: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetFortezzaCommand(dwcommand : u32, hwnd : super::super::Foundation:: HWND, dwreserved : usize) -> super::super::Foundation:: BOOL); - InternetFortezzaCommand(dwcommand, hwnd.into_param().abi(), dwreserved) + InternetFortezzaCommand(dwcommand, hwnd.param().abi(), dwreserved) } #[inline] pub unsafe fn InternetFreeCookies(pcookies: Option<*mut INTERNET_COOKIE2>, dwcookiecount: u32) { @@ -1281,49 +1281,49 @@ pub unsafe fn InternetGetConnectedStateExW(lpdwflags: Option<*mut INTERNET_CONNE #[inline] pub unsafe fn InternetGetCookieA(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: windows_core::PSTR, lpdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetCookieA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - InternetGetCookieA(lpszurl.into_param().abi(), lpszcookiename.into_param().abi(), core::mem::transmute(lpszcookiedata), lpdwsize).ok() + InternetGetCookieA(lpszurl.param().abi(), lpszcookiename.param().abi(), core::mem::transmute(lpszcookiedata), lpdwsize).ok() } #[inline] pub unsafe fn InternetGetCookieEx2(pcwszurl: P0, pcwszcookiename: P1, dwflags: u32, ppcookies: *mut *mut INTERNET_COOKIE2, pdwcookiecount: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pcwszcookiename.into_param().abi(), dwflags, ppcookies, pdwcookiecount) + InternetGetCookieEx2(pcwszurl.param().abi(), pcwszcookiename.param().abi(), dwflags, ppcookies, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszcookiename.into_param().abi(), lpszcookiedata.into_param().abi(), lpdwsize, dwflags, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + InternetGetCookieExA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), lpdwsize, dwflags, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszcookiename.into_param().abi(), lpszcookiedata.into_param().abi(), lpdwsize, dwflags, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + InternetGetCookieExW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), lpdwsize, dwflags, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn InternetGetCookieW(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: windows_core::PWSTR, lpdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetCookieW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PWSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); - InternetGetCookieW(lpszurl.into_param().abi(), lpszcookiename.into_param().abi(), core::mem::transmute(lpszcookiedata), lpdwsize).ok() + InternetGetCookieW(lpszurl.param().abi(), lpszcookiename.param().abi(), core::mem::transmute(lpszcookiedata), lpdwsize).ok() } #[inline] pub unsafe fn InternetGetLastResponseInfoA(lpdwerror: *mut u32, lpszbuffer: windows_core::PSTR, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { @@ -1338,80 +1338,80 @@ pub unsafe fn InternetGetLastResponseInfoW(lpdwerror: *mut u32, lpszbuffer: wind #[inline] pub unsafe fn InternetGetPerSiteCookieDecisionA(pchhostname: P0, presult: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetPerSiteCookieDecisionA(pchhostname : windows_core::PCSTR, presult : *mut u32) -> super::super::Foundation:: BOOL); - InternetGetPerSiteCookieDecisionA(pchhostname.into_param().abi(), presult) + InternetGetPerSiteCookieDecisionA(pchhostname.param().abi(), presult) } #[inline] pub unsafe fn InternetGetPerSiteCookieDecisionW(pchhostname: P0, presult: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetPerSiteCookieDecisionW(pchhostname : windows_core::PCWSTR, presult : *mut u32) -> super::super::Foundation:: BOOL); - InternetGetPerSiteCookieDecisionW(pchhostname.into_param().abi(), presult) + InternetGetPerSiteCookieDecisionW(pchhostname.param().abi(), presult) } #[inline] pub unsafe fn InternetGetProxyForUrl(hinternet: *const core::ffi::c_void, pcwszurl: P0, pproxyinfolist: *mut WININET_PROXY_INFO_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: 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(hinternet, pcwszurl.into_param().abi(), pproxyinfolist) + InternetGetProxyForUrl(hinternet, pcwszurl.param().abi(), pproxyinfolist) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn InternetGetSecurityInfoByURL(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURL(lpszurl : windows_core::PCSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> super::super::Foundation:: BOOL); - InternetGetSecurityInfoByURL(lpszurl.into_param().abi(), ppcertchain, pdwsecureflags) + InternetGetSecurityInfoByURL(lpszurl.param().abi(), ppcertchain, pdwsecureflags) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn InternetGetSecurityInfoByURLA(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURLA(lpszurl : windows_core::PCSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> super::super::Foundation:: BOOL); - InternetGetSecurityInfoByURLA(lpszurl.into_param().abi(), ppcertchain, pdwsecureflags) + InternetGetSecurityInfoByURLA(lpszurl.param().abi(), ppcertchain, pdwsecureflags) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn InternetGetSecurityInfoByURLW(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURLW(lpszurl : windows_core::PCWSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> super::super::Foundation:: BOOL); - InternetGetSecurityInfoByURLW(lpszurl.into_param().abi(), ppcertchain, pdwsecureflags) + InternetGetSecurityInfoByURLW(lpszurl.param().abi(), ppcertchain, pdwsecureflags) } #[inline] pub unsafe fn InternetGoOnline(lpszurl: P0, hwndparent: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndparent.into_param().abi(), dwflags).ok() + InternetGoOnline(lpszurl.param().abi(), hwndparent.param().abi(), dwflags).ok() } #[inline] pub unsafe fn InternetGoOnlineA(lpszurl: P0, hwndparent: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndparent.into_param().abi(), dwflags).ok() + InternetGoOnlineA(lpszurl.param().abi(), hwndparent.param().abi(), dwflags).ok() } #[inline] pub unsafe fn InternetGoOnlineW(lpszurl: P0, hwndparent: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndparent.into_param().abi(), dwflags).ok() + InternetGoOnlineW(lpszurl.param().abi(), hwndparent.param().abi(), dwflags).ok() } #[inline] pub unsafe fn InternetHangUp(dwconnection: usize, dwreserved: u32) -> u32 { @@ -1431,38 +1431,38 @@ pub unsafe fn InternetLockRequestFile(hinternet: *const core::ffi::c_void, lphlo #[inline] pub unsafe fn InternetOpenA(lpszagent: P0, dwaccesstype: u32, lpszproxy: P1, lpszproxybypass: P2, dwflags: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwaccesstype, lpszproxy.into_param().abi(), lpszproxybypass.into_param().abi(), 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: P0, lpszheaders: Option<&[u8]>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(hinternet, lpszurl.into_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, dwcontext) + 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, dwcontext) } #[inline] pub unsafe fn InternetOpenUrlW(hinternet: *const core::ffi::c_void, lpszurl: P0, lpszheaders: Option<&[u16]>, dwflags: u32, dwcontext: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(hinternet, lpszurl.into_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, dwcontext) + 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, dwcontext) } #[inline] pub unsafe fn InternetOpenW(lpszagent: P0, dwaccesstype: u32, lpszproxy: P1, lpszproxybypass: P2, dwflags: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwaccesstype, lpszproxy.into_param().abi(), lpszproxybypass.into_param().abi(), 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: usize) -> windows_core::Result<()> { @@ -1512,75 +1512,75 @@ pub unsafe fn InternetSecurityProtocolToStringW(dwprotocol: u32, lpstr: windows_ #[inline] pub unsafe fn InternetSetCookieA(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetCookieA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - InternetSetCookieA(lpszurl.into_param().abi(), lpszcookiename.into_param().abi(), lpszcookiedata.into_param().abi()).ok() + InternetSetCookieA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi()).ok() } #[inline] pub unsafe fn InternetSetCookieEx2(pcwszurl: P0, pcookie: *const INTERNET_COOKIE2, pcwszp3ppolicy: P1, dwflags: u32, pdwcookiestate: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), pcookie, pcwszp3ppolicy.into_param().abi(), dwflags, pdwcookiestate) + InternetSetCookieEx2(pcwszurl.param().abi(), pcookie, pcwszp3ppolicy.param().abi(), dwflags, pdwcookiestate) } #[inline] pub unsafe fn InternetSetCookieExA(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, dwflags: u32, dwreserved: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszcookiename.into_param().abi(), lpszcookiedata.into_param().abi(), dwflags, dwreserved) + InternetSetCookieExA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), dwflags, dwreserved) } #[inline] pub unsafe fn InternetSetCookieExW(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, dwflags: u32, dwreserved: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszcookiename.into_param().abi(), lpszcookiedata.into_param().abi(), dwflags, dwreserved) + InternetSetCookieExW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), dwflags, dwreserved) } #[inline] pub unsafe fn InternetSetCookieW(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetCookieW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - InternetSetCookieW(lpszurl.into_param().abi(), lpszcookiename.into_param().abi(), lpszcookiedata.into_param().abi()).ok() + InternetSetCookieW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi()).ok() } #[inline] pub unsafe fn InternetSetDialState(lpszconnectoid: P0, dwstate: u32, dwreserved: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwstate, dwreserved) + InternetSetDialState(lpszconnectoid.param().abi(), dwstate, dwreserved) } #[inline] pub unsafe fn InternetSetDialStateA(lpszconnectoid: P0, dwstate: u32, dwreserved: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwstate, dwreserved) + InternetSetDialStateA(lpszconnectoid.param().abi(), dwstate, dwreserved) } #[inline] pub unsafe fn InternetSetDialStateW(lpszconnectoid: P0, dwstate: u32, dwreserved: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwstate, dwreserved) + InternetSetDialStateW(lpszconnectoid.param().abi(), dwstate, dwreserved) } #[inline] pub unsafe fn InternetSetFilePointer(hfile: *const core::ffi::c_void, ldistancetomove: i32, lpdistancetomovehigh: Option<*mut i32>, dwmovemethod: u32, dwcontext: usize) -> u32 { @@ -1610,18 +1610,18 @@ pub unsafe fn InternetSetOptionW(hinternet: Option<*const core::ffi::c_void>, dw #[inline] pub unsafe fn InternetSetPerSiteCookieDecisionA(pchhostname: P0, dwdecision: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionA(pchhostname : windows_core::PCSTR, dwdecision : u32) -> super::super::Foundation:: BOOL); - InternetSetPerSiteCookieDecisionA(pchhostname.into_param().abi(), dwdecision) + InternetSetPerSiteCookieDecisionA(pchhostname.param().abi(), dwdecision) } #[inline] pub unsafe fn InternetSetPerSiteCookieDecisionW(pchhostname: P0, dwdecision: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionW(pchhostname : windows_core::PCWSTR, dwdecision : u32) -> super::super::Foundation:: BOOL); - InternetSetPerSiteCookieDecisionW(pchhostname.into_param().abi(), dwdecision) + InternetSetPerSiteCookieDecisionW(pchhostname.param().abi(), dwdecision) } #[inline] pub unsafe fn InternetSetStatusCallback(hinternet: *const core::ffi::c_void, lpfninternetcallback: LPINTERNET_STATUS_CALLBACK) -> LPINTERNET_STATUS_CALLBACK { @@ -1641,29 +1641,29 @@ pub unsafe fn InternetSetStatusCallbackW(hinternet: *const core::ffi::c_void, lp #[inline] pub unsafe fn InternetShowSecurityInfoByURL(lpszurl: P0, hwndparent: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndparent.into_param().abi()) + InternetShowSecurityInfoByURL(lpszurl.param().abi(), hwndparent.param().abi()) } #[inline] pub unsafe fn InternetShowSecurityInfoByURLA(lpszurl: P0, hwndparent: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndparent.into_param().abi()) + InternetShowSecurityInfoByURLA(lpszurl.param().abi(), hwndparent.param().abi()) } #[inline] pub unsafe fn InternetShowSecurityInfoByURLW(lpszurl: P0, hwndparent: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hwndparent.into_param().abi()) + InternetShowSecurityInfoByURLW(lpszurl.param().abi(), hwndparent.param().abi()) } #[inline] pub unsafe fn InternetTimeFromSystemTime(pst: *const super::super::Foundation::SYSTEMTIME, dwrfc: u32, lpsztime: &mut [u8]) -> windows_core::Result<()> { @@ -1683,34 +1683,34 @@ pub unsafe fn InternetTimeFromSystemTimeW(pst: *const super::super::Foundation:: #[inline] pub unsafe fn InternetTimeToSystemTime(lpsztime: P0, pst: *mut super::super::Foundation::SYSTEMTIME, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTime(lpsztime : windows_core::PCSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetTimeToSystemTime(lpsztime.into_param().abi(), pst, dwreserved).ok() + InternetTimeToSystemTime(lpsztime.param().abi(), pst, dwreserved).ok() } #[inline] pub unsafe fn InternetTimeToSystemTimeA(lpsztime: P0, pst: *mut super::super::Foundation::SYSTEMTIME, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTimeA(lpsztime : windows_core::PCSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetTimeToSystemTimeA(lpsztime.into_param().abi(), pst, dwreserved).ok() + InternetTimeToSystemTimeA(lpsztime.param().abi(), pst, dwreserved).ok() } #[inline] pub unsafe fn InternetTimeToSystemTimeW(lpsztime: P0, pst: *mut super::super::Foundation::SYSTEMTIME, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTimeW(lpsztime : windows_core::PCWSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> super::super::Foundation:: BOOL); - InternetTimeToSystemTimeW(lpsztime.into_param().abi(), pst, dwreserved).ok() + InternetTimeToSystemTimeW(lpsztime.param().abi(), pst, dwreserved).ok() } #[inline] pub unsafe fn InternetUnlockRequestFile(hlockrequestinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn InternetUnlockRequestFile(hlockrequestinfo : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - InternetUnlockRequestFile(hlockrequestinfo.into_param().abi()).ok() + InternetUnlockRequestFile(hlockrequestinfo.param().abi()).ok() } #[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<()> { @@ -1730,20 +1730,20 @@ pub unsafe fn InternetWriteFileExW(hfile: *const core::ffi::c_void, lpbuffersin: #[inline] pub unsafe fn IsDomainLegalCookieDomainA(pchdomain: P0, pchfulldomain: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn IsDomainLegalCookieDomainA(pchdomain : windows_core::PCSTR, pchfulldomain : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - IsDomainLegalCookieDomainA(pchdomain.into_param().abi(), pchfulldomain.into_param().abi()) + IsDomainLegalCookieDomainA(pchdomain.param().abi(), pchfulldomain.param().abi()) } #[inline] pub unsafe fn IsDomainLegalCookieDomainW(pchdomain: P0, pchfulldomain: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn IsDomainLegalCookieDomainW(pchdomain : windows_core::PCWSTR, pchfulldomain : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - IsDomainLegalCookieDomainW(pchdomain.into_param().abi(), pchfulldomain.into_param().abi()) + IsDomainLegalCookieDomainW(pchdomain.param().abi(), pchfulldomain.param().abi()) } #[inline] pub unsafe fn IsHostInProxyBypassList(tscheme: INTERNET_SCHEME, lpszhost: &[u8]) -> super::super::Foundation::BOOL { @@ -1758,18 +1758,18 @@ pub unsafe fn IsProfilesEnabled() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsUrlCacheEntryExpiredA(lpszurlname: P0, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, pftlastmodified) + IsUrlCacheEntryExpiredA(lpszurlname.param().abi(), dwflags, pftlastmodified) } #[inline] pub unsafe fn IsUrlCacheEntryExpiredW(lpszurlname: P0, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, pftlastmodified) + IsUrlCacheEntryExpiredW(lpszurlname.param().abi(), dwflags, pftlastmodified) } #[inline] pub unsafe fn LoadUrlCacheContent() -> super::super::Foundation::BOOL { @@ -1784,10 +1784,10 @@ pub unsafe fn ParseX509EncodedCertificateForListBoxEntry(lpcert: &[u8], lpszlist #[inline] pub unsafe fn PerformOperationOverUrlCacheA(pszurlsearchpattern: P0, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: Option<*const core::ffi::c_void>, pdwreserved2: Option<*const u32>, preserved3: Option<*const core::ffi::c_void>, op: CACHE_OPERATOR, poperatordata: *mut core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(preserved1.unwrap_or(std::ptr::null())), core::mem::transmute(pdwreserved2.unwrap_or(std::ptr::null())), core::mem::transmute(preserved3.unwrap_or(std::ptr::null())), op, poperatordata) + PerformOperationOverUrlCacheA(pszurlsearchpattern.param().abi(), dwflags, dwfilter, groupid, core::mem::transmute(preserved1.unwrap_or(std::ptr::null())), core::mem::transmute(pdwreserved2.unwrap_or(std::ptr::null())), core::mem::transmute(preserved3.unwrap_or(std::ptr::null())), op, poperatordata) } #[inline] pub unsafe fn PrivacyGetZonePreferenceW(dwzone: u32, dwtype: u32, pdwtemplate: Option<*mut u32>, pszbuffer: windows_core::PWSTR, pdwbufferlength: Option<*mut u32>) -> u32 { @@ -1797,10 +1797,10 @@ pub unsafe fn PrivacyGetZonePreferenceW(dwzone: u32, dwtype: u32, pdwtemplate: O #[inline] pub unsafe fn PrivacySetZonePreferenceW(dwzone: u32, dwtype: u32, dwtemplate: u32, pszpreference: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn PrivacySetZonePreferenceW(dwzone : u32, dwtype : u32, dwtemplate : u32, pszpreference : windows_core::PCWSTR) -> u32); - PrivacySetZonePreferenceW(dwzone, dwtype, dwtemplate, pszpreference.into_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 { @@ -1810,26 +1810,26 @@ pub unsafe fn ReadGuidsForConnectedNetworks(pcnetworks: Option<*mut u32>, pppwsz #[inline] pub unsafe fn ReadUrlCacheEntryStream(hurlcachestream: P0, dwlocation: u32, lpbuffer: *mut core::ffi::c_void, lpdwlen: *mut u32, reserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hurlcachestream.into_param().abi(), dwlocation, lpbuffer, lpdwlen, reserved).ok() + ReadUrlCacheEntryStream(hurlcachestream.param().abi(), dwlocation, lpbuffer, lpdwlen, reserved).ok() } #[inline] pub unsafe fn ReadUrlCacheEntryStreamEx(hurlcachestream: P0, qwlocation: u64, lpbuffer: *mut core::ffi::c_void, lpdwlen: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hurlcachestream.into_param().abi(), qwlocation, lpbuffer, lpdwlen) + ReadUrlCacheEntryStreamEx(hurlcachestream.param().abi(), qwlocation, lpbuffer, lpdwlen) } #[inline] pub unsafe fn RegisterUrlCacheNotification(hwnd: P0, umsg: u32, gid: i64, dwopsfilter: u32, dwreserved: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), umsg, gid, dwopsfilter, dwreserved) + RegisterUrlCacheNotification(hwnd.param().abi(), umsg, gid, dwopsfilter, dwreserved) } #[inline] pub unsafe fn ResumeSuspendedDownload(hrequest: *const core::ffi::c_void, dwresultcode: u32) -> windows_core::Result<()> { @@ -1839,48 +1839,48 @@ pub unsafe fn ResumeSuspendedDownload(hrequest: *const core::ffi::c_void, dwresu #[inline] pub unsafe fn RetrieveUrlCacheEntryFileA(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryFileA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - RetrieveUrlCacheEntryFileA(lpszurlname.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, dwreserved).ok() + RetrieveUrlCacheEntryFileA(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, dwreserved).ok() } #[inline] pub unsafe fn RetrieveUrlCacheEntryFileW(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryFileW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); - RetrieveUrlCacheEntryFileW(lpszurlname.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, dwreserved).ok() + RetrieveUrlCacheEntryFileW(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, dwreserved).ok() } #[inline] pub unsafe fn RetrieveUrlCacheEntryStreamA(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32, frandomread: P1, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryStreamA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, frandomread : super::super::Foundation:: BOOL, dwreserved : u32) -> super::super::Foundation:: HANDLE); - let result__ = RetrieveUrlCacheEntryStreamA(lpszurlname.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, frandomread.into_param().abi(), dwreserved); + let result__ = RetrieveUrlCacheEntryStreamA(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, frandomread.param().abi(), dwreserved); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RetrieveUrlCacheEntryStreamW(lpszurlname: P0, lpcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32, frandomread: P1, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryStreamW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, frandomread : super::super::Foundation:: BOOL, dwreserved : u32) -> super::super::Foundation:: HANDLE); - let result__ = RetrieveUrlCacheEntryStreamW(lpszurlname.into_param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, frandomread.into_param().abi(), dwreserved); + let result__ = RetrieveUrlCacheEntryStreamW(lpszurlname.param().abi(), core::mem::transmute(lpcacheentryinfo.unwrap_or(std::ptr::null_mut())), lpcbcacheentryinfo, frandomread.param().abi(), dwreserved); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RunOnceUrlCache(hwnd: P0, hinst: P1, lpszcmd: P2, ncmdshow: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinst.into_param().abi(), lpszcmd.into_param().abi(), ncmdshow) + RunOnceUrlCache(hwnd.param().abi(), hinst.param().abi(), lpszcmd.param().abi(), ncmdshow) } #[inline] pub unsafe fn SetUrlCacheConfigInfoA(lpcacheconfiginfo: *const INTERNET_CACHE_CONFIG_INFOA, dwfieldcontrol: u32) -> super::super::Foundation::BOOL { @@ -1895,42 +1895,42 @@ pub unsafe fn SetUrlCacheConfigInfoW(lpcacheconfiginfo: *const INTERNET_CACHE_CO #[inline] pub unsafe fn SetUrlCacheEntryGroup(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: u32, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(std::ptr::null())), cbgroupattributes, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) + SetUrlCacheEntryGroup(lpszurlname.param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(std::ptr::null())), cbgroupattributes, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetUrlCacheEntryGroupA(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: u32, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(std::ptr::null())), cbgroupattributes, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) + SetUrlCacheEntryGroupA(lpszurlname.param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(std::ptr::null())), cbgroupattributes, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetUrlCacheEntryGroupW(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: u32, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(std::ptr::null())), cbgroupattributes, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) + SetUrlCacheEntryGroupW(lpszurlname.param().abi(), dwflags, groupid, core::mem::transmute(pbgroupattributes.unwrap_or(std::ptr::null())), cbgroupattributes, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetUrlCacheEntryInfoA(lpszurlname: P0, lpcacheentryinfo: *const INTERNET_CACHE_ENTRY_INFOA, dwfieldcontrol: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpcacheentryinfo, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpcacheentryinfo, dwfieldcontrol).ok() + SetUrlCacheEntryInfoW(lpszurlname.param().abi(), lpcacheentryinfo, dwfieldcontrol).ok() } #[inline] pub unsafe fn SetUrlCacheGroupAttributeA(gid: i64, dwflags: u32, dwattributes: u32, lpgroupinfo: *const INTERNET_CACHE_GROUP_INFOA, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -1950,67 +1950,67 @@ pub unsafe fn SetUrlCacheHeaderData(nidx: u32, dwdata: u32) -> super::super::Fou #[inline] pub unsafe fn ShowClientAuthCerts(hwndparent: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn ShowClientAuthCerts(hwndparent : super::super::Foundation:: HWND) -> u32); - ShowClientAuthCerts(hwndparent.into_param().abi()) + ShowClientAuthCerts(hwndparent.param().abi()) } #[cfg(all(feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))] #[inline] pub unsafe fn ShowSecurityInfo(hwndparent: P0, psecurityinfo: *const INTERNET_SECURITY_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn ShowSecurityInfo(hwndparent : super::super::Foundation:: HWND, psecurityinfo : *const INTERNET_SECURITY_INFO) -> u32); - ShowSecurityInfo(hwndparent.into_param().abi(), psecurityinfo) + ShowSecurityInfo(hwndparent.param().abi(), psecurityinfo) } #[inline] pub unsafe fn ShowX509EncodedCertificate(hwndparent: P0, lpcert: &[u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn ShowX509EncodedCertificate(hwndparent : super::super::Foundation:: HWND, lpcert : *const u8, cbcert : u32) -> u32); - ShowX509EncodedCertificate(hwndparent.into_param().abi(), core::mem::transmute(lpcert.as_ptr()), lpcert.len().try_into().unwrap()) + ShowX509EncodedCertificate(hwndparent.param().abi(), core::mem::transmute(lpcert.as_ptr()), lpcert.len().try_into().unwrap()) } #[inline] pub unsafe fn UnlockUrlCacheEntryFile(lpszurlname: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFile(lpszurlname : windows_core::PCSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); - UnlockUrlCacheEntryFile(lpszurlname.into_param().abi(), dwreserved).ok() + UnlockUrlCacheEntryFile(lpszurlname.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn UnlockUrlCacheEntryFileA(lpszurlname: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFileA(lpszurlname : windows_core::PCSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); - UnlockUrlCacheEntryFileA(lpszurlname.into_param().abi(), dwreserved).ok() + UnlockUrlCacheEntryFileA(lpszurlname.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn UnlockUrlCacheEntryFileW(lpszurlname: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFileW(lpszurlname : windows_core::PCWSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); - UnlockUrlCacheEntryFileW(lpszurlname.into_param().abi(), dwreserved).ok() + UnlockUrlCacheEntryFileW(lpszurlname.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn UnlockUrlCacheEntryStream(hurlcachestream: P0, reserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryStream(hurlcachestream : super::super::Foundation:: HANDLE, reserved : u32) -> super::super::Foundation:: BOOL); - UnlockUrlCacheEntryStream(hurlcachestream.into_param().abi(), reserved).ok() + UnlockUrlCacheEntryStream(hurlcachestream.param().abi(), reserved).ok() } #[inline] pub unsafe fn UpdateUrlCacheContentPath(sznewpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UpdateUrlCacheContentPath(sznewpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - UpdateUrlCacheContentPath(sznewpath.into_param().abi()) + UpdateUrlCacheContentPath(sznewpath.param().abi()) } #[inline] pub unsafe fn UrlCacheCheckEntriesExist(rgpwszurls: *const windows_core::PCWSTR, centries: u32, rgfexist: *mut super::super::Foundation::BOOL) -> u32 { @@ -2025,36 +2025,36 @@ pub unsafe fn UrlCacheCloseEntryHandle(hentryfile: *const core::ffi::c_void) { #[inline] pub unsafe fn UrlCacheContainerSetEntryMaximumAge(pwszprefix: P0, dwentrymaxage: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheContainerSetEntryMaximumAge(pwszprefix : windows_core::PCWSTR, dwentrymaxage : u32) -> u32); - UrlCacheContainerSetEntryMaximumAge(pwszprefix.into_param().abi(), dwentrymaxage) + UrlCacheContainerSetEntryMaximumAge(pwszprefix.param().abi(), dwentrymaxage) } #[inline] pub unsafe fn UrlCacheCreateContainer(pwszname: P0, pwszprefix: P1, pwszdirectory: P2, ulllimit: u64, dwoptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), pwszprefix.into_param().abi(), pwszdirectory.into_param().abi(), ulllimit, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwfilter, groupid, pcacheentryinfo, phfind) + UrlCacheFindFirstEntry(pwszprefix.param().abi(), dwflags, dwfilter, groupid, pcacheentryinfo, phfind) } #[inline] pub unsafe fn UrlCacheFindNextEntry(hfind: P0, pcacheentryinfo: *mut URLCACHE_ENTRY_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheFindNextEntry(hfind : super::super::Foundation:: HANDLE, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO) -> u32); - UrlCacheFindNextEntry(hfind.into_param().abi(), pcacheentryinfo) + UrlCacheFindNextEntry(hfind.param().abi(), pcacheentryinfo) } #[inline] pub unsafe fn UrlCacheFreeEntryInfo(pcacheentryinfo: *mut URLCACHE_ENTRY_INFO) { @@ -2074,10 +2074,10 @@ pub unsafe fn UrlCacheGetContentPaths(pppwszdirectories: *mut *mut windows_core: #[inline] pub unsafe fn UrlCacheGetEntryInfo(happcache: Option<*const core::ffi::c_void>, pcwszurl: P0, pcacheentryinfo: Option<*mut URLCACHE_ENTRY_INFO>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheGetEntryInfo(happcache : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO) -> u32); - UrlCacheGetEntryInfo(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.into_param().abi(), core::mem::transmute(pcacheentryinfo.unwrap_or(std::ptr::null_mut()))) + UrlCacheGetEntryInfo(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.param().abi(), core::mem::transmute(pcacheentryinfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: *mut u64, pulllimit: *mut u64) -> u32 { @@ -2102,19 +2102,19 @@ pub unsafe fn UrlCacheReloadSettings() -> u32 { #[inline] pub unsafe fn UrlCacheRetrieveEntryFile(happcache: Option<*const core::ffi::c_void>, pcwszurl: P0, pcacheentryinfo: *mut URLCACHE_ENTRY_INFO, phentryfile: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheRetrieveEntryFile(happcache : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO, phentryfile : *mut *mut core::ffi::c_void) -> u32); - UrlCacheRetrieveEntryFile(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.into_param().abi(), pcacheentryinfo, phentryfile) + UrlCacheRetrieveEntryFile(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.param().abi(), pcacheentryinfo, phentryfile) } #[inline] pub unsafe fn UrlCacheRetrieveEntryStream(happcache: Option<*const core::ffi::c_void>, pcwszurl: P0, frandomread: P1, pcacheentryinfo: *mut URLCACHE_ENTRY_INFO, phentrystream: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheRetrieveEntryStream(happcache : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, frandomread : super::super::Foundation:: BOOL, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO, phentrystream : *mut *mut core::ffi::c_void) -> u32); - UrlCacheRetrieveEntryStream(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.into_param().abi(), frandomread.into_param().abi(), pcacheentryinfo, phentrystream) + UrlCacheRetrieveEntryStream(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.param().abi(), frandomread.param().abi(), pcacheentryinfo, phentrystream) } #[inline] pub unsafe fn UrlCacheServer() -> u32 { @@ -2129,19 +2129,19 @@ pub unsafe fn UrlCacheSetGlobalLimit(limittype: URL_CACHE_LIMIT_TYPE, ulllimit: #[inline] pub unsafe fn UrlCacheUpdateEntryExtraData(happcache: Option<*const core::ffi::c_void>, pcwszurl: P0, pbextradata: &[u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wininet.dll" "system" fn UrlCacheUpdateEntryExtraData(happcache : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, pbextradata : *const u8, cbextradata : u32) -> u32); - UrlCacheUpdateEntryExtraData(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.into_param().abi(), core::mem::transmute(pbextradata.as_ptr()), pbextradata.len().try_into().unwrap()) + UrlCacheUpdateEntryExtraData(core::mem::transmute(happcache.unwrap_or(std::ptr::null())), pcwszurl.param().abi(), core::mem::transmute(pbextradata.as_ptr()), pbextradata.len().try_into().unwrap()) } windows_core::imp::define_interface!(IDialBranding, IDialBranding_Vtbl, 0x8aecafa9_4306_43cc_8c5a_765f2979cc16); windows_core::imp::interface_hierarchy!(IDialBranding, windows_core::IUnknown); impl IDialBranding { pub unsafe fn Initialize(&self, pwzconnectoid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pwzconnectoid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pwzconnectoid.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmap(&self, dwindex: u32) -> windows_core::Result { @@ -2163,24 +2163,24 @@ windows_core::imp::interface_hierarchy!(IDialEngine, windows_core::IUnknown); impl IDialEngine { pub unsafe fn Initialize(&self, pwzconnectoid: P0, pides: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pwzconnectoid.into_param().abi(), pides.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pwzconnectoid.param().abi(), pides.param().abi()).ok() } pub unsafe fn GetProperty(&self, pwzproperty: P0, pwzvalue: P1, dwbufsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pwzproperty.into_param().abi(), pwzvalue.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwzproperty.into_param().abi(), pwzvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), pwzproperty.param().abi(), pwzvalue.param().abi()).ok() } pub unsafe fn Dial(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Dial)(windows_core::Interface::as_raw(self)).ok() @@ -2225,9 +2225,9 @@ windows_core::imp::interface_hierarchy!(IProofOfPossessionCookieInfoManager, win impl IProofOfPossessionCookieInfoManager { pub unsafe fn GetCookieInfoForUri(&self, uri: P0, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCookieInfoForUri)(windows_core::Interface::as_raw(self), uri.into_param().abi(), cookieinfocount, cookieinfo).ok() + (windows_core::Interface::vtable(self).GetCookieInfoForUri)(windows_core::Interface::as_raw(self), uri.param().abi(), cookieinfocount, cookieinfo).ok() } } #[repr(C)] @@ -2240,10 +2240,10 @@ windows_core::imp::interface_hierarchy!(IProofOfPossessionCookieInfoManager2, wi impl IProofOfPossessionCookieInfoManager2 { pub unsafe fn GetCookieInfoWithUriForAccount(&self, webaccount: P0, uri: P1, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCookieInfoWithUriForAccount)(windows_core::Interface::as_raw(self), webaccount.into_param().abi(), uri.into_param().abi(), cookieinfocount, cookieinfo).ok() + (windows_core::Interface::vtable(self).GetCookieInfoWithUriForAccount)(windows_core::Interface::as_raw(self), webaccount.param().abi(), uri.param().abi(), cookieinfocount, cookieinfo).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 486c4fd7c2..062ce051c1 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs @@ -2,11 +2,11 @@ #[inline] pub unsafe fn AcceptEx(slistensocket: P0, sacceptsocket: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(slistensocket.into_param().abi(), sacceptsocket.into_param().abi(), lpoutputbuffer, dwreceivedatalength, dwlocaladdresslength, dwremoteaddresslength, lpdwbytesreceived, lpoverlapped) + AcceptEx(slistensocket.param().abi(), sacceptsocket.param().abi(), lpoutputbuffer, dwreceivedatalength, dwlocaladdresslength, dwremoteaddresslength, lpdwbytesreceived, lpoverlapped) } #[inline] pub unsafe fn EnumProtocolsA(lpiprotocols: Option<*const i32>, lpprotocolbuffer: *mut core::ffi::c_void, lpdwbufferlength: *mut u32) -> i32 { @@ -42,11 +42,11 @@ pub unsafe fn GetAcceptExSockaddrs(lpoutputbuffer: *const core::ffi::c_void, dwr #[inline] pub unsafe fn GetAddrInfoExA(pname: P0, pservicename: P1, dwnamespace: u32, lpnspid: Option<*const windows_core::GUID>, hints: Option<*const ADDRINFOEXA>, ppresult: *mut *mut ADDRINFOEXA, timeout: Option<*const TIMEVAL>, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: Option<*mut super::super::Foundation::HANDLE>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn GetAddrInfoExA(pname : windows_core::PCSTR, pservicename : windows_core::PCSTR, dwnamespace : u32, lpnspid : *const windows_core::GUID, hints : *const ADDRINFOEXA, ppresult : *mut *mut ADDRINFOEXA, timeout : *const TIMEVAL, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle : *mut super::super::Foundation:: HANDLE) -> i32); - GetAddrInfoExA(pname.into_param().abi(), pservicename.into_param().abi(), dwnamespace, core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), core::mem::transmute(hints.unwrap_or(std::ptr::null())), ppresult, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), lpcompletionroutine, core::mem::transmute(lpnamehandle.unwrap_or(std::ptr::null_mut()))) + GetAddrInfoExA(pname.param().abi(), pservicename.param().abi(), dwnamespace, core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), core::mem::transmute(hints.unwrap_or(std::ptr::null())), ppresult, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), lpcompletionroutine, core::mem::transmute(lpnamehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetAddrInfoExCancel(lphandle: *const super::super::Foundation::HANDLE) -> i32 { @@ -63,36 +63,36 @@ pub unsafe fn GetAddrInfoExOverlappedResult(lpoverlapped: *const super::super::S #[inline] pub unsafe fn GetAddrInfoExW(pname: P0, pservicename: P1, dwnamespace: u32, lpnspid: Option<*const windows_core::GUID>, hints: Option<*const ADDRINFOEXW>, ppresult: *mut *mut ADDRINFOEXW, timeout: Option<*const TIMEVAL>, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lphandle: Option<*mut super::super::Foundation::HANDLE>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pservicename.into_param().abi(), dwnamespace, core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), core::mem::transmute(hints.unwrap_or(std::ptr::null())), ppresult, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), lpcompletionroutine, core::mem::transmute(lphandle.unwrap_or(std::ptr::null_mut()))) + GetAddrInfoExW(pname.param().abi(), pservicename.param().abi(), dwnamespace, core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), core::mem::transmute(hints.unwrap_or(std::ptr::null())), ppresult, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), lpcompletionroutine, core::mem::transmute(lphandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetAddrInfoW(pnodename: P0, pservicename: P1, phints: Option<*const ADDRINFOW>, ppresult: *mut *mut ADDRINFOW) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn GetAddrInfoW(pnodename : windows_core::PCWSTR, pservicename : windows_core::PCWSTR, phints : *const ADDRINFOW, ppresult : *mut *mut ADDRINFOW) -> i32); - GetAddrInfoW(pnodename.into_param().abi(), pservicename.into_param().abi(), core::mem::transmute(phints.unwrap_or(std::ptr::null())), ppresult) + GetAddrInfoW(pnodename.param().abi(), pservicename.param().abi(), core::mem::transmute(phints.unwrap_or(std::ptr::null())), ppresult) } #[inline] pub unsafe fn GetAddressByNameA(dwnamespace: u32, lpservicetype: *const windows_core::GUID, lpservicename: P0, lpiprotocols: Option<*const i32>, dwresolution: u32, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>, lpcsaddrbuffer: *mut core::ffi::c_void, lpdwbufferlength: *mut u32, lpaliasbuffer: windows_core::PSTR, lpdwaliasbufferlength: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwnamespace, lpservicetype, lpservicename.into_param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(std::ptr::null())), dwresolution, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null())), lpcsaddrbuffer, lpdwbufferlength, core::mem::transmute(lpaliasbuffer), lpdwaliasbufferlength) + GetAddressByNameA(dwnamespace, lpservicetype, lpservicename.param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(std::ptr::null())), dwresolution, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null())), lpcsaddrbuffer, lpdwbufferlength, core::mem::transmute(lpaliasbuffer), lpdwaliasbufferlength) } #[inline] pub unsafe fn GetAddressByNameW(dwnamespace: u32, lpservicetype: *const windows_core::GUID, lpservicename: P0, lpiprotocols: Option<*const i32>, dwresolution: u32, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>, lpcsaddrbuffer: *mut core::ffi::c_void, lpdwbufferlength: *mut u32, lpaliasbuffer: windows_core::PWSTR, lpdwaliasbufferlength: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwnamespace, lpservicetype, lpservicename.into_param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(std::ptr::null())), dwresolution, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null())), lpcsaddrbuffer, lpdwbufferlength, core::mem::transmute(lpaliasbuffer), lpdwaliasbufferlength) + GetAddressByNameW(dwnamespace, lpservicetype, lpservicename.param().abi(), core::mem::transmute(lpiprotocols.unwrap_or(std::ptr::null())), dwresolution, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null())), lpcsaddrbuffer, lpdwbufferlength, core::mem::transmute(lpaliasbuffer), lpdwaliasbufferlength) } #[inline] pub unsafe fn GetHostNameW(name: &mut [u16]) -> i32 { @@ -112,42 +112,42 @@ pub unsafe fn GetNameByTypeW(lpservicetype: *const windows_core::GUID, lpservice #[inline] pub unsafe fn GetNameInfoW(psockaddr: *const SOCKADDR, sockaddrlength: P0, pnodebuffer: Option<&mut [u16]>, pservicebuffer: Option<&mut [u16]>, flags: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(psockaddr, sockaddrlength.into_param().abi(), 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) + GetNameInfoW(psockaddr, sockaddrlength.param().abi(), 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: P0, dwproperties: u32, lpbuffer: *mut core::ffi::c_void, lpdwbuffersize: *mut u32, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwnamespace, lpguid, lpservicename.into_param().abi(), dwproperties, lpbuffer, lpdwbuffersize, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null()))) + GetServiceA(dwnamespace, lpguid, lpservicename.param().abi(), dwproperties, lpbuffer, lpdwbuffersize, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn GetServiceW(dwnamespace: u32, lpguid: *const windows_core::GUID, lpservicename: P0, dwproperties: u32, lpbuffer: *mut core::ffi::c_void, lpdwbuffersize: *mut u32, lpserviceasyncinfo: Option<*const SERVICE_ASYNC_INFO>) -> i32 where - P0: windows_core::IntoParam, + P0: 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(dwnamespace, lpguid, lpservicename.into_param().abi(), dwproperties, lpbuffer, lpdwbuffersize, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null()))) + GetServiceW(dwnamespace, lpguid, lpservicename.param().abi(), dwproperties, lpbuffer, lpdwbuffersize, core::mem::transmute(lpserviceasyncinfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn GetTypeByNameA(lpservicename: P0, lpservicetype: *mut windows_core::GUID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mswsock.dll" "system" fn GetTypeByNameA(lpservicename : windows_core::PCSTR, lpservicetype : *mut windows_core::GUID) -> i32); - GetTypeByNameA(lpservicename.into_param().abi(), lpservicetype) + GetTypeByNameA(lpservicename.param().abi(), lpservicetype) } #[inline] pub unsafe fn GetTypeByNameW(lpservicename: P0, lpservicetype: *mut windows_core::GUID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mswsock.dll" "system" fn GetTypeByNameW(lpservicename : windows_core::PCWSTR, lpservicetype : *mut windows_core::GUID) -> i32); - GetTypeByNameW(lpservicename.into_param().abi(), lpservicetype) + GetTypeByNameW(lpservicename.param().abi(), lpservicetype) } #[inline] pub unsafe fn InetNtopW(family: i32, paddr: *const core::ffi::c_void, pstringbuf: &mut [u16]) -> windows_core::PCWSTR { @@ -157,20 +157,20 @@ pub unsafe fn InetNtopW(family: i32, paddr: *const core::ffi::c_void, pstringbuf #[inline] pub unsafe fn InetPtonW(family: i32, pszaddrstring: P0, paddrbuf: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: 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(family, pszaddrstring.into_param().abi(), paddrbuf) + InetPtonW(family, pszaddrstring.param().abi(), paddrbuf) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ProcessSocketNotifications(completionport: P0, registrationinfos: Option<&mut [SOCK_NOTIFY_REGISTRATION]>, timeoutms: u32, completionportentries: Option<&mut [super::super::System::IO::OVERLAPPED_ENTRY]>, receivedentrycount: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - completionport.into_param().abi(), + completionport.param().abi(), 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, @@ -192,18 +192,18 @@ pub unsafe fn RtlEthernetAddressToStringW(addr: *const DL_EUI48, s: &mut [u16; 1 #[inline] pub unsafe fn RtlEthernetStringToAddressA(s: P0, terminator: *mut windows_core::PCSTR, addr: *mut DL_EUI48) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlEthernetStringToAddressA(s : windows_core::PCSTR, terminator : *mut windows_core::PCSTR, addr : *mut DL_EUI48) -> i32); - RtlEthernetStringToAddressA(s.into_param().abi(), terminator, addr) + RtlEthernetStringToAddressA(s.param().abi(), terminator, addr) } #[inline] pub unsafe fn RtlEthernetStringToAddressW(s: P0, terminator: *mut windows_core::PCWSTR, addr: *mut DL_EUI48) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlEthernetStringToAddressW(s : windows_core::PCWSTR, terminator : *mut windows_core::PCWSTR, addr : *mut DL_EUI48) -> i32); - RtlEthernetStringToAddressW(s.into_param().abi(), terminator, addr) + RtlEthernetStringToAddressW(s.param().abi(), terminator, addr) } #[inline] pub unsafe fn RtlIpv4AddressToStringA(addr: *const IN_ADDR, s: &mut [u8; 16]) -> windows_core::PSTR { @@ -228,38 +228,38 @@ pub unsafe fn RtlIpv4AddressToStringW(addr: *const IN_ADDR, s: &mut [u16; 16]) - #[inline] pub unsafe fn RtlIpv4StringToAddressA(s: P0, strict: P1, terminator: *mut windows_core::PCSTR, addr: *mut IN_ADDR) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressA(s : windows_core::PCSTR, strict : super::super::Foundation:: BOOLEAN, terminator : *mut windows_core::PCSTR, addr : *mut IN_ADDR) -> i32); - RtlIpv4StringToAddressA(s.into_param().abi(), strict.into_param().abi(), terminator, addr) + RtlIpv4StringToAddressA(s.param().abi(), strict.param().abi(), terminator, addr) } #[inline] pub unsafe fn RtlIpv4StringToAddressExA(addressstring: P0, strict: P1, address: *mut IN_ADDR, port: *mut u16) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExA(addressstring : windows_core::PCSTR, strict : super::super::Foundation:: BOOLEAN, address : *mut IN_ADDR, port : *mut u16) -> i32); - RtlIpv4StringToAddressExA(addressstring.into_param().abi(), strict.into_param().abi(), address, port) + RtlIpv4StringToAddressExA(addressstring.param().abi(), strict.param().abi(), address, port) } #[inline] pub unsafe fn RtlIpv4StringToAddressExW(addressstring: P0, strict: P1, address: *mut IN_ADDR, port: *mut u16) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExW(addressstring : windows_core::PCWSTR, strict : super::super::Foundation:: BOOLEAN, address : *mut IN_ADDR, port : *mut u16) -> i32); - RtlIpv4StringToAddressExW(addressstring.into_param().abi(), strict.into_param().abi(), address, port) + RtlIpv4StringToAddressExW(addressstring.param().abi(), strict.param().abi(), address, port) } #[inline] pub unsafe fn RtlIpv4StringToAddressW(s: P0, strict: P1, terminator: *mut windows_core::PCWSTR, addr: *mut IN_ADDR) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressW(s : windows_core::PCWSTR, strict : super::super::Foundation:: BOOLEAN, terminator : *mut windows_core::PCWSTR, addr : *mut IN_ADDR) -> i32); - RtlIpv4StringToAddressW(s.into_param().abi(), strict.into_param().abi(), terminator, addr) + RtlIpv4StringToAddressW(s.param().abi(), strict.param().abi(), terminator, addr) } #[inline] pub unsafe fn RtlIpv6AddressToStringA(addr: *const IN6_ADDR, s: &mut [u8; 46]) -> windows_core::PSTR { @@ -284,80 +284,54 @@ pub unsafe fn RtlIpv6AddressToStringW(addr: *const IN6_ADDR, s: &mut [u16; 46]) #[inline] pub unsafe fn RtlIpv6StringToAddressA(s: P0, terminator: *mut windows_core::PCSTR, addr: *mut IN6_ADDR) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6StringToAddressA(s : windows_core::PCSTR, terminator : *mut windows_core::PCSTR, addr : *mut IN6_ADDR) -> i32); - RtlIpv6StringToAddressA(s.into_param().abi(), terminator, addr) + RtlIpv6StringToAddressA(s.param().abi(), terminator, addr) } #[inline] pub unsafe fn RtlIpv6StringToAddressExA(addressstring: P0, address: *mut IN6_ADDR, scopeid: *mut u32, port: *mut u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6StringToAddressExA(addressstring : windows_core::PCSTR, address : *mut IN6_ADDR, scopeid : *mut u32, port : *mut u16) -> i32); - RtlIpv6StringToAddressExA(addressstring.into_param().abi(), address, scopeid, port) + RtlIpv6StringToAddressExA(addressstring.param().abi(), address, scopeid, port) } #[inline] pub unsafe fn RtlIpv6StringToAddressExW(addressstring: P0, address: *mut IN6_ADDR, scopeid: *mut u32, port: *mut u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6StringToAddressExW(addressstring : windows_core::PCWSTR, address : *mut IN6_ADDR, scopeid : *mut u32, port : *mut u16) -> i32); - RtlIpv6StringToAddressExW(addressstring.into_param().abi(), address, scopeid, port) + RtlIpv6StringToAddressExW(addressstring.param().abi(), address, scopeid, port) } #[inline] pub unsafe fn RtlIpv6StringToAddressW(s: P0, terminator: *mut windows_core::PCWSTR, addr: *mut IN6_ADDR) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlIpv6StringToAddressW(s : windows_core::PCWSTR, terminator : *mut windows_core::PCWSTR, addr : *mut IN6_ADDR) -> i32); - RtlIpv6StringToAddressW(s.into_param().abi(), terminator, addr) + RtlIpv6StringToAddressW(s.param().abi(), terminator, addr) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_IO"))] #[inline] pub unsafe fn SetAddrInfoExA(pname: P0, pservicename: P1, paddresses: Option<*const SOCKET_ADDRESS>, dwaddresscount: u32, lpblob: Option<*const super::super::System::Com::BLOB>, dwflags: u32, dwnamespace: u32, lpnspid: Option<*const windows_core::GUID>, timeout: Option<*const TIMEVAL>, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: Option<*mut super::super::Foundation::HANDLE>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn SetAddrInfoExA(pname : windows_core::PCSTR, pservicename : windows_core::PCSTR, paddresses : *const SOCKET_ADDRESS, dwaddresscount : u32, lpblob : *const super::super::System::Com:: BLOB, dwflags : u32, dwnamespace : u32, lpnspid : *const windows_core::GUID, timeout : *const TIMEVAL, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle : *mut super::super::Foundation:: HANDLE) -> i32); - SetAddrInfoExA( - pname.into_param().abi(), - pservicename.into_param().abi(), - core::mem::transmute(paddresses.unwrap_or(std::ptr::null())), - dwaddresscount, - core::mem::transmute(lpblob.unwrap_or(std::ptr::null())), - dwflags, - dwnamespace, - core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), - core::mem::transmute(timeout.unwrap_or(std::ptr::null())), - core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), - lpcompletionroutine, - core::mem::transmute(lpnamehandle.unwrap_or(std::ptr::null_mut())), - ) + SetAddrInfoExA(pname.param().abi(), pservicename.param().abi(), core::mem::transmute(paddresses.unwrap_or(std::ptr::null())), dwaddresscount, core::mem::transmute(lpblob.unwrap_or(std::ptr::null())), dwflags, dwnamespace, core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), lpcompletionroutine, core::mem::transmute(lpnamehandle.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_IO"))] #[inline] pub unsafe fn SetAddrInfoExW(pname: P0, pservicename: P1, paddresses: Option<*const SOCKET_ADDRESS>, dwaddresscount: u32, lpblob: Option<*const super::super::System::Com::BLOB>, dwflags: u32, dwnamespace: u32, lpnspid: Option<*const windows_core::GUID>, timeout: Option<*const TIMEVAL>, lpoverlapped: Option<*const super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: Option<*mut super::super::Foundation::HANDLE>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn SetAddrInfoExW(pname : windows_core::PCWSTR, pservicename : windows_core::PCWSTR, paddresses : *const SOCKET_ADDRESS, dwaddresscount : u32, lpblob : *const super::super::System::Com:: BLOB, dwflags : u32, dwnamespace : u32, lpnspid : *const windows_core::GUID, timeout : *const TIMEVAL, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpcompletionroutine : LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle : *mut super::super::Foundation:: HANDLE) -> i32); - SetAddrInfoExW( - pname.into_param().abi(), - pservicename.into_param().abi(), - core::mem::transmute(paddresses.unwrap_or(std::ptr::null())), - dwaddresscount, - core::mem::transmute(lpblob.unwrap_or(std::ptr::null())), - dwflags, - dwnamespace, - core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), - core::mem::transmute(timeout.unwrap_or(std::ptr::null())), - core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), - lpcompletionroutine, - core::mem::transmute(lpnamehandle.unwrap_or(std::ptr::null_mut())), - ) + SetAddrInfoExW(pname.param().abi(), pservicename.param().abi(), core::mem::transmute(paddresses.unwrap_or(std::ptr::null())), dwaddresscount, core::mem::transmute(lpblob.unwrap_or(std::ptr::null())), dwflags, dwnamespace, core::mem::transmute(lpnspid.unwrap_or(std::ptr::null())), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null())), lpcompletionroutine, core::mem::transmute(lpnamehandle.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -374,37 +348,37 @@ pub unsafe fn SetServiceW(dwnamespace: u32, dwoperation: SET_SERVICE_OPERATION, #[inline] pub unsafe fn SetSocketMediaStreamingMode(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("windows.networking.dll" "system" fn SetSocketMediaStreamingMode(value : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - SetSocketMediaStreamingMode(value.into_param().abi()).ok() + SetSocketMediaStreamingMode(value.param().abi()).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn TransmitFile(hsocket: P0, hfile: P1, nnumberofbytestowrite: u32, nnumberofbytespersend: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lptransmitbuffers: Option<*const TRANSMIT_FILE_BUFFERS>, dwreserved: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hsocket.into_param().abi(), hfile.into_param().abi(), nnumberofbytestowrite, nnumberofbytespersend, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptransmitbuffers.unwrap_or(std::ptr::null())), dwreserved) + TransmitFile(hsocket.param().abi(), hfile.param().abi(), nnumberofbytestowrite, nnumberofbytespersend, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptransmitbuffers.unwrap_or(std::ptr::null())), dwreserved) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WPUCompleteOverlappedRequest(s: P0, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, dwerror: u32, cbtransferred: u32, lperrno: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), lpoverlapped, dwerror, cbtransferred, lperrno) + WPUCompleteOverlappedRequest(s.param().abi(), lpoverlapped, dwerror, cbtransferred, lperrno) } #[inline] pub unsafe fn WSAAccept(s: P0, addr: Option<*mut SOCKADDR>, addrlen: Option<*mut i32>, lpfncondition: LPCONDITIONPROC, dwcallbackdata: usize) -> SOCKET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAAccept(s : SOCKET, addr : *mut SOCKADDR, addrlen : *mut i32, lpfncondition : LPCONDITIONPROC, dwcallbackdata : usize) -> SOCKET); - WSAAccept(s.into_param().abi(), core::mem::transmute(addr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(addrlen.unwrap_or(std::ptr::null_mut())), lpfncondition, dwcallbackdata) + WSAAccept(s.param().abi(), core::mem::transmute(addr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(addrlen.unwrap_or(std::ptr::null_mut())), lpfncondition, dwcallbackdata) } #[inline] pub unsafe fn WSAAddressToStringA(lpsaaddress: *const SOCKADDR, dwaddresslength: u32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOA>, lpszaddressstring: windows_core::PSTR, lpdwaddressstringlength: *mut u32) -> i32 { @@ -425,78 +399,78 @@ pub unsafe fn WSAAdvertiseProvider(puuidproviderid: *const windows_core::GUID, p #[inline] pub unsafe fn WSAAsyncGetHostByAddr(hwnd: P0, wmsg: u32, addr: &[u8], r#type: i32, buf: &mut [u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), 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()); + let result__ = WSAAsyncGetHostByAddr(hwnd.param().abi(), 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(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncGetHostByName(hwnd: P0, wmsg: u32, name: P1, buf: &mut [u8]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hwnd.into_param().abi(), wmsg, name.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetHostByName(hwnd.param().abi(), wmsg, name.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncGetProtoByName(hwnd: P0, wmsg: u32, name: P1, buf: &mut [u8]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hwnd.into_param().abi(), wmsg, name.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetProtoByName(hwnd.param().abi(), wmsg, name.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncGetProtoByNumber(hwnd: P0, wmsg: u32, number: i32, buf: &mut [u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), wmsg, number, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetProtoByNumber(hwnd.param().abi(), wmsg, number, core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncGetServByName(hwnd: P0, wmsg: u32, name: P1, proto: P2, buf: &mut [u8]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), wmsg, name.into_param().abi(), proto.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetServByName(hwnd.param().abi(), wmsg, name.param().abi(), proto.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncGetServByPort(hwnd: P0, wmsg: u32, port: i32, proto: P1, buf: &mut [u8]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hwnd.into_param().abi(), wmsg, port, proto.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); + let result__ = WSAAsyncGetServByPort(hwnd.param().abi(), wmsg, port, proto.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WSAAsyncSelect(s: P0, hwnd: P1, wmsg: u32, levent: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAAsyncSelect(s : SOCKET, hwnd : super::super::Foundation:: HWND, wmsg : u32, levent : i32) -> i32); - WSAAsyncSelect(s.into_param().abi(), hwnd.into_param().abi(), wmsg, levent) + WSAAsyncSelect(s.param().abi(), hwnd.param().abi(), wmsg, levent) } #[inline] pub unsafe fn WSACancelAsyncRequest(hasynctaskhandle: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSACancelAsyncRequest(hasynctaskhandle : super::super::Foundation:: HANDLE) -> i32); - WSACancelAsyncRequest(hasynctaskhandle.into_param().abi()) + WSACancelAsyncRequest(hasynctaskhandle.param().abi()) } #[inline] pub unsafe fn WSACancelBlockingCall() -> i32 { @@ -511,71 +485,49 @@ pub unsafe fn WSACleanup() -> i32 { #[inline] pub unsafe fn WSACloseEvent(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSACloseEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WSACloseEvent(hevent.into_param().abi()).ok() + WSACloseEvent(hevent.param().abi()).ok() } #[inline] pub unsafe fn WSAConnect(s: P0, name: *const SOCKADDR, namelen: i32, lpcallerdata: Option<*const WSABUF>, lpcalleedata: Option<*mut WSABUF>, lpsqos: Option<*const QOS>, lpgqos: Option<*const QOS>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), name, namelen, core::mem::transmute(lpcallerdata.unwrap_or(std::ptr::null())), core::mem::transmute(lpcalleedata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpsqos.unwrap_or(std::ptr::null())), core::mem::transmute(lpgqos.unwrap_or(std::ptr::null()))) + WSAConnect(s.param().abi(), name, namelen, core::mem::transmute(lpcallerdata.unwrap_or(std::ptr::null())), core::mem::transmute(lpcalleedata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpsqos.unwrap_or(std::ptr::null())), core::mem::transmute(lpgqos.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSAConnectByList(s: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), socketaddress, core::mem::transmute(localaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(localaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + WSAConnectByList(s.param().abi(), socketaddress, core::mem::transmute(localaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(localaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSAConnectByNameA(s: P0, nodename: P1, servicename: P2, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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( - s.into_param().abi(), - nodename.into_param().abi(), - servicename.into_param().abi(), - core::mem::transmute(localaddresslength.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(localaddress.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(remoteaddresslength.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(remoteaddress.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(timeout.unwrap_or(std::ptr::null())), - core::mem::transmute(reserved.unwrap_or(std::ptr::null())), - ) - .ok() + WSAConnectByNameA(s.param().abi(), nodename.param().abi(), servicename.param().abi(), core::mem::transmute(localaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(localaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSAConnectByNameW(s: P0, nodename: P1, servicename: P2, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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( - s.into_param().abi(), - nodename.into_param().abi(), - servicename.into_param().abi(), - core::mem::transmute(localaddresslength.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(localaddress.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(remoteaddresslength.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(remoteaddress.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(timeout.unwrap_or(std::ptr::null())), - core::mem::transmute(reserved.unwrap_or(std::ptr::null())), - ) - .ok() + WSAConnectByNameW(s.param().abi(), nodename.param().abi(), servicename.param().abi(), core::mem::transmute(localaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(localaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddresslength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(remoteaddress.unwrap_or(std::ptr::null_mut())), core::mem::transmute(timeout.unwrap_or(std::ptr::null())), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WSACreateEvent() -> windows_core::Result { @@ -587,26 +539,26 @@ pub unsafe fn WSACreateEvent() -> windows_core::Result(socket: P0, peeraddr: *const SOCKADDR, peeraddrlen: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, completionroutine: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(socket.into_param().abi(), peeraddr, peeraddrlen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) + WSADeleteSocketPeerTargetName(socket.param().abi(), peeraddr, peeraddrlen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) } #[inline] pub unsafe fn WSADuplicateSocketA(s: P0, dwprocessid: u32, lpprotocolinfo: *mut WSAPROTOCOL_INFOA) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSADuplicateSocketA(s : SOCKET, dwprocessid : u32, lpprotocolinfo : *mut WSAPROTOCOL_INFOA) -> i32); - WSADuplicateSocketA(s.into_param().abi(), dwprocessid, lpprotocolinfo) + WSADuplicateSocketA(s.param().abi(), dwprocessid, lpprotocolinfo) } #[inline] pub unsafe fn WSADuplicateSocketW(s: P0, dwprocessid: u32, lpprotocolinfo: *mut WSAPROTOCOL_INFOW) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSADuplicateSocketW(s : SOCKET, dwprocessid : u32, lpprotocolinfo : *mut WSAPROTOCOL_INFOW) -> i32); - WSADuplicateSocketW(s.into_param().abi(), dwprocessid, lpprotocolinfo) + WSADuplicateSocketW(s.param().abi(), dwprocessid, lpprotocolinfo) } #[inline] pub unsafe fn WSAEnumNameSpaceProvidersA(lpdwbufferlength: *mut u32, lpnspbuffer: *mut WSANAMESPACE_INFOA) -> i32 { @@ -633,11 +585,11 @@ pub unsafe fn WSAEnumNameSpaceProvidersW(lpdwbufferlength: *mut u32, lpnspbuffer #[inline] pub unsafe fn WSAEnumNetworkEvents(s: P0, heventobject: P1, lpnetworkevents: *mut WSANETWORKEVENTS) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAEnumNetworkEvents(s : SOCKET, heventobject : super::super::Foundation:: HANDLE, lpnetworkevents : *mut WSANETWORKEVENTS) -> i32); - WSAEnumNetworkEvents(s.into_param().abi(), heventobject.into_param().abi(), lpnetworkevents) + WSAEnumNetworkEvents(s.param().abi(), heventobject.param().abi(), lpnetworkevents) } #[inline] pub unsafe fn WSAEnumProtocolsA(lpiprotocols: Option<*const i32>, lpprotocolbuffer: Option<*mut WSAPROTOCOL_INFOA>, lpdwbufferlength: *mut u32) -> i32 { @@ -652,11 +604,11 @@ pub unsafe fn WSAEnumProtocolsW(lpiprotocols: Option<*const i32>, lpprotocolbuff #[inline] pub unsafe fn WSAEventSelect(s: P0, heventobject: P1, lnetworkevents: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAEventSelect(s : SOCKET, heventobject : super::super::Foundation:: HANDLE, lnetworkevents : i32) -> i32); - WSAEventSelect(s.into_param().abi(), heventobject.into_param().abi(), lnetworkevents) + WSAEventSelect(s.param().abi(), heventobject.param().abi(), lnetworkevents) } #[inline] pub unsafe fn WSAGetLastError() -> WSA_ERROR { @@ -667,19 +619,19 @@ pub unsafe fn WSAGetLastError() -> WSA_ERROR { #[inline] pub unsafe fn WSAGetOverlappedResult(s: P0, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcbtransfer: *mut u32, fwait: P1, lpdwflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(s.into_param().abi(), lpoverlapped, lpcbtransfer, fwait.into_param().abi(), lpdwflags).ok() + WSAGetOverlappedResult(s.param().abi(), lpoverlapped, lpcbtransfer, fwait.param().abi(), lpdwflags).ok() } #[inline] pub unsafe fn WSAGetQOSByName(s: P0, lpqosname: *const WSABUF, lpqos: *mut QOS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAGetQOSByName(s : SOCKET, lpqosname : *const WSABUF, lpqos : *mut QOS) -> super::super::Foundation:: BOOL); - WSAGetQOSByName(s.into_param().abi(), lpqosname, lpqos).ok() + WSAGetQOSByName(s.param().abi(), lpqosname, lpqos).ok() } #[inline] pub unsafe fn WSAGetServiceClassInfoA(lpproviderid: *const windows_core::GUID, lpserviceclassid: *const windows_core::GUID, lpdwbufsize: *mut u32, lpserviceclassinfo: *mut WSASERVICECLASSINFOA) -> i32 { @@ -704,26 +656,26 @@ pub unsafe fn WSAGetServiceClassNameByClassIdW(lpserviceclassid: *const windows_ #[inline] pub unsafe fn WSAHtonl(s: P0, hostlong: u32, lpnetlong: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAHtonl(s : SOCKET, hostlong : u32, lpnetlong : *mut u32) -> i32); - WSAHtonl(s.into_param().abi(), hostlong, lpnetlong) + WSAHtonl(s.param().abi(), hostlong, lpnetlong) } #[inline] pub unsafe fn WSAHtons(s: P0, hostshort: u16, lpnetshort: *mut u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAHtons(s : SOCKET, hostshort : u16, lpnetshort : *mut u16) -> i32); - WSAHtons(s.into_param().abi(), hostshort, lpnetshort) + WSAHtons(s.param().abi(), hostshort, lpnetshort) } #[inline] pub unsafe fn WSAImpersonateSocketPeer(socket: P0, peeraddr: Option<*const SOCKADDR>, peeraddrlen: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fwpuclnt.dll" "system" fn WSAImpersonateSocketPeer(socket : SOCKET, peeraddr : *const SOCKADDR, peeraddrlen : u32) -> i32); - WSAImpersonateSocketPeer(socket.into_param().abi(), core::mem::transmute(peeraddr.unwrap_or(std::ptr::null())), peeraddrlen) + WSAImpersonateSocketPeer(socket.param().abi(), core::mem::transmute(peeraddr.unwrap_or(std::ptr::null())), peeraddrlen) } #[inline] pub unsafe fn WSAInstallServiceClassA(lpserviceclassinfo: *const WSASERVICECLASSINFOA) -> i32 { @@ -739,10 +691,10 @@ pub unsafe fn WSAInstallServiceClassW(lpserviceclassinfo: *const WSASERVICECLASS #[inline] pub unsafe fn WSAIoctl(s: P0, 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: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), dwiocontrolcode, core::mem::transmute(lpvinbuffer.unwrap_or(std::ptr::null())), cbinbuffer, core::mem::transmute(lpvoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffer, lpcbbytesreturned, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) + WSAIoctl(s.param().abi(), dwiocontrolcode, core::mem::transmute(lpvinbuffer.unwrap_or(std::ptr::null())), cbinbuffer, core::mem::transmute(lpvoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffer, lpcbbytesreturned, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) } #[inline] pub unsafe fn WSAIsBlocking() -> windows_core::Result<()> { @@ -752,10 +704,10 @@ pub unsafe fn WSAIsBlocking() -> windows_core::Result<()> { #[inline] pub unsafe fn WSAJoinLeaf(s: P0, name: *const SOCKADDR, namelen: i32, lpcallerdata: Option<*const WSABUF>, lpcalleedata: Option<*mut WSABUF>, lpsqos: Option<*const QOS>, lpgqos: Option<*const QOS>, dwflags: u32) -> SOCKET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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); - WSAJoinLeaf(s.into_param().abi(), name, namelen, core::mem::transmute(lpcallerdata.unwrap_or(std::ptr::null())), core::mem::transmute(lpcalleedata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpsqos.unwrap_or(std::ptr::null())), core::mem::transmute(lpgqos.unwrap_or(std::ptr::null())), dwflags) + WSAJoinLeaf(s.param().abi(), name, namelen, core::mem::transmute(lpcallerdata.unwrap_or(std::ptr::null())), core::mem::transmute(lpcalleedata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpsqos.unwrap_or(std::ptr::null())), core::mem::transmute(lpgqos.unwrap_or(std::ptr::null())), dwflags) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -772,53 +724,53 @@ pub unsafe fn WSALookupServiceBeginW(lpqsrestrictions: *const WSAQUERYSETW, dwco #[inline] pub unsafe fn WSALookupServiceEnd(hlookup: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceEnd(hlookup : super::super::Foundation:: HANDLE) -> i32); - WSALookupServiceEnd(hlookup.into_param().abi()) + WSALookupServiceEnd(hlookup.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSALookupServiceNextA(hlookup: P0, dwcontrolflags: u32, lpdwbufferlength: *mut u32, lpqsresults: *mut WSAQUERYSETA) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceNextA(hlookup : super::super::Foundation:: HANDLE, dwcontrolflags : u32, lpdwbufferlength : *mut u32, lpqsresults : *mut WSAQUERYSETA) -> i32); - WSALookupServiceNextA(hlookup.into_param().abi(), dwcontrolflags, lpdwbufferlength, lpqsresults) + WSALookupServiceNextA(hlookup.param().abi(), dwcontrolflags, lpdwbufferlength, lpqsresults) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSALookupServiceNextW(hlookup: P0, dwcontrolflags: u32, lpdwbufferlength: *mut u32, lpqsresults: Option<*mut WSAQUERYSETW>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSALookupServiceNextW(hlookup : super::super::Foundation:: HANDLE, dwcontrolflags : u32, lpdwbufferlength : *mut u32, lpqsresults : *mut WSAQUERYSETW) -> i32); - WSALookupServiceNextW(hlookup.into_param().abi(), dwcontrolflags, lpdwbufferlength, core::mem::transmute(lpqsresults.unwrap_or(std::ptr::null_mut()))) + WSALookupServiceNextW(hlookup.param().abi(), dwcontrolflags, lpdwbufferlength, core::mem::transmute(lpqsresults.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSANSPIoctl(hlookup: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlookup.into_param().abi(), dwcontrolcode, core::mem::transmute(lpvinbuffer.unwrap_or(std::ptr::null())), cbinbuffer, core::mem::transmute(lpvoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffer, lpcbbytesreturned, core::mem::transmute(lpcompletion.unwrap_or(std::ptr::null()))) + WSANSPIoctl(hlookup.param().abi(), dwcontrolcode, core::mem::transmute(lpvinbuffer.unwrap_or(std::ptr::null())), cbinbuffer, core::mem::transmute(lpvoutbuffer.unwrap_or(std::ptr::null_mut())), cboutbuffer, lpcbbytesreturned, core::mem::transmute(lpcompletion.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WSANtohl(s: P0, netlong: u32, lphostlong: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSANtohl(s : SOCKET, netlong : u32, lphostlong : *mut u32) -> i32); - WSANtohl(s.into_param().abi(), netlong, lphostlong) + WSANtohl(s.param().abi(), netlong, lphostlong) } #[inline] pub unsafe fn WSANtohs(s: P0, netshort: u16, lphostshort: *mut u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSANtohs(s : SOCKET, netshort : u16, lphostshort : *mut u16) -> i32); - WSANtohs(s.into_param().abi(), netshort, lphostshort) + WSANtohs(s.param().abi(), netshort, lphostshort) } #[inline] pub unsafe fn WSAPoll(fdarray: *mut WSAPOLLFD, fds: u32, timeout: i32) -> i32 { @@ -828,10 +780,10 @@ pub unsafe fn WSAPoll(fdarray: *mut WSAPOLLFD, fds: u32, timeout: i32) -> i32 { #[inline] pub unsafe fn WSAProviderCompleteAsyncCall(hasynccall: P0, iretcode: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAProviderCompleteAsyncCall(hasynccall : super::super::Foundation:: HANDLE, iretcode : i32) -> i32); - WSAProviderCompleteAsyncCall(hasynccall.into_param().abi(), iretcode) + WSAProviderCompleteAsyncCall(hasynccall.param().abi(), iretcode) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -843,44 +795,44 @@ pub unsafe fn WSAProviderConfigChange(lpnotificationhandle: *mut super::super::F #[inline] pub unsafe fn WSAQuerySocketSecurity(socket: P0, 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: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(socket.into_param().abi(), core::mem::transmute(securityquerytemplate.unwrap_or(std::ptr::null())), securityquerytemplatelen, core::mem::transmute(securityqueryinfo.unwrap_or(std::ptr::null_mut())), securityqueryinfolen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) + WSAQuerySocketSecurity(socket.param().abi(), core::mem::transmute(securityquerytemplate.unwrap_or(std::ptr::null())), securityquerytemplatelen, core::mem::transmute(securityqueryinfo.unwrap_or(std::ptr::null_mut())), securityqueryinfolen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSARecv(s: P0, lpbuffers: &[WSABUF], lpnumberofbytesrecvd: Option<*mut u32>, lpflags: *mut u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(std::ptr::null_mut())), lpflags, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) + WSARecv(s.param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(std::ptr::null_mut())), lpflags, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) } #[inline] pub unsafe fn WSARecvDisconnect(s: P0, lpinbounddisconnectdata: Option<*const WSABUF>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSARecvDisconnect(s : SOCKET, lpinbounddisconnectdata : *const WSABUF) -> i32); - WSARecvDisconnect(s.into_param().abi(), core::mem::transmute(lpinbounddisconnectdata.unwrap_or(std::ptr::null()))) + WSARecvDisconnect(s.param().abi(), core::mem::transmute(lpinbounddisconnectdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn WSARecvEx(s: P0, buf: &mut [u8], flags: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mswsock.dll" "system" fn WSARecvEx(s : SOCKET, buf : windows_core::PSTR, len : i32, flags : *mut i32) -> i32); - WSARecvEx(s.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) + WSARecvEx(s.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSARecvFrom(s: P0, 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: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(std::ptr::null_mut())), lpflags, core::mem::transmute(lpfrom.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpfromlen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) + WSARecvFrom(s.param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytesrecvd.unwrap_or(std::ptr::null_mut())), lpflags, core::mem::transmute(lpfrom.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpfromlen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) } #[inline] pub unsafe fn WSARemoveServiceClass(lpserviceclassid: *const windows_core::GUID) -> i32 { @@ -890,10 +842,10 @@ pub unsafe fn WSARemoveServiceClass(lpserviceclassid: *const windows_core::GUID) #[inline] pub unsafe fn WSAResetEvent(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSAResetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WSAResetEvent(hevent.into_param().abi()).ok() + WSAResetEvent(hevent.param().abi()).ok() } #[inline] pub unsafe fn WSARevertImpersonation() -> i32 { @@ -904,36 +856,36 @@ pub unsafe fn WSARevertImpersonation() -> i32 { #[inline] pub unsafe fn WSASend(s: P0, lpbuffers: &[WSABUF], lpnumberofbytessent: Option<*mut u32>, dwflags: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(std::ptr::null_mut())), dwflags, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) + WSASend(s.param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(std::ptr::null_mut())), dwflags, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) } #[inline] pub unsafe fn WSASendDisconnect(s: P0, lpoutbounddisconnectdata: Option<*const WSABUF>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSASendDisconnect(s : SOCKET, lpoutbounddisconnectdata : *const WSABUF) -> i32); - WSASendDisconnect(s.into_param().abi(), core::mem::transmute(lpoutbounddisconnectdata.unwrap_or(std::ptr::null()))) + WSASendDisconnect(s.param().abi(), core::mem::transmute(lpoutbounddisconnectdata.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSASendMsg(handle: P0, lpmsg: *const WSAMSG, dwflags: u32, lpnumberofbytessent: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), lpmsg, dwflags, core::mem::transmute(lpnumberofbytessent.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) + WSASendMsg(handle.param().abi(), lpmsg, dwflags, core::mem::transmute(lpnumberofbytessent.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSASendTo(s: P0, lpbuffers: &[WSABUF], lpnumberofbytessent: Option<*mut u32>, dwflags: u32, lpto: Option<*const SOCKADDR>, itolen: i32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(std::ptr::null_mut())), dwflags, core::mem::transmute(lpto.unwrap_or(std::ptr::null())), itolen, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) + WSASendTo(s.param().abi(), core::mem::transmute(lpbuffers.as_ptr()), lpbuffers.len().try_into().unwrap(), core::mem::transmute(lpnumberofbytessent.unwrap_or(std::ptr::null_mut())), dwflags, core::mem::transmute(lpto.unwrap_or(std::ptr::null())), itolen, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine) } #[inline] pub unsafe fn WSASetBlockingHook(lpblockfunc: super::super::Foundation::FARPROC) -> super::super::Foundation::FARPROC { @@ -943,10 +895,10 @@ pub unsafe fn WSASetBlockingHook(lpblockfunc: super::super::Foundation::FARPROC) #[inline] pub unsafe fn WSASetEvent(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSASetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WSASetEvent(hevent.into_param().abi()).ok() + WSASetEvent(hevent.param().abi()).ok() } #[inline] pub unsafe fn WSASetLastError(ierror: i32) { @@ -969,19 +921,19 @@ pub unsafe fn WSASetServiceW(lpqsreginfo: *const WSAQUERYSETW, essoperation: WSA #[inline] pub unsafe fn WSASetSocketPeerTargetName(socket: P0, peertargetname: *const SOCKET_PEER_TARGET_NAME, peertargetnamelen: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, completionroutine: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(socket.into_param().abi(), peertargetname, peertargetnamelen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) + WSASetSocketPeerTargetName(socket.param().abi(), peertargetname, peertargetnamelen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSASetSocketSecurity(socket: P0, securitysettings: Option<*const SOCKET_SECURITY_SETTINGS>, securitysettingslen: u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, completionroutine: LPWSAOVERLAPPED_COMPLETION_ROUTINE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(socket.into_param().abi(), core::mem::transmute(securitysettings.unwrap_or(std::ptr::null())), securitysettingslen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) + WSASetSocketSecurity(socket.param().abi(), core::mem::transmute(securitysettings.unwrap_or(std::ptr::null())), securitysettingslen, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), completionroutine) } #[inline] pub unsafe fn WSASocketA(af: i32, r#type: i32, protocol: i32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOA>, g: u32, dwflags: u32) -> SOCKET { @@ -1001,18 +953,18 @@ pub unsafe fn WSAStartup(wversionrequested: u16, lpwsadata: *mut WSADATA) -> i32 #[inline] pub unsafe fn WSAStringToAddressA(addressstring: P0, addressfamily: i32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOA>, lpaddress: *mut SOCKADDR, lpaddresslength: *mut i32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), addressfamily, core::mem::transmute(lpprotocolinfo.unwrap_or(std::ptr::null())), lpaddress, lpaddresslength) + WSAStringToAddressA(addressstring.param().abi(), addressfamily, core::mem::transmute(lpprotocolinfo.unwrap_or(std::ptr::null())), lpaddress, lpaddresslength) } #[inline] pub unsafe fn WSAStringToAddressW(addressstring: P0, addressfamily: i32, lpprotocolinfo: Option<*const WSAPROTOCOL_INFOW>, lpaddress: *mut SOCKADDR, lpaddresslength: *mut i32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), addressfamily, core::mem::transmute(lpprotocolinfo.unwrap_or(std::ptr::null())), lpaddress, lpaddresslength) + WSAStringToAddressW(addressstring.param().abi(), addressfamily, core::mem::transmute(lpprotocolinfo.unwrap_or(std::ptr::null())), lpaddress, lpaddresslength) } #[inline] pub unsafe fn WSAUnadvertiseProvider(puuidproviderid: *const windows_core::GUID) -> i32 { @@ -1027,11 +979,11 @@ pub unsafe fn WSAUnhookBlockingHook() -> i32 { #[inline] pub unsafe fn WSAWaitForMultipleEvents(lphevents: &[super::super::Foundation::HANDLE], fwaitall: P0, dwtimeout: u32, falertable: P1) -> super::super::Foundation::WAIT_EVENT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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_param().abi(), dwtimeout, falertable.into_param().abi()) + WSAWaitForMultipleEvents(lphevents.len().try_into().unwrap(), core::mem::transmute(lphevents.as_ptr()), fwaitall.param().abi(), dwtimeout, falertable.param().abi()) } #[inline] pub unsafe fn WSCDeinstallProvider(lpproviderid: *const windows_core::GUID, lperrno: *mut i32) -> i32 { @@ -1047,19 +999,19 @@ pub unsafe fn WSCDeinstallProvider32(lpproviderid: *const windows_core::GUID, lp #[inline] pub unsafe fn WSCEnableNSProvider(lpproviderid: *const windows_core::GUID, fenable: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider(lpproviderid : *const windows_core::GUID, fenable : super::super::Foundation:: BOOL) -> i32); - WSCEnableNSProvider(lpproviderid, fenable.into_param().abi()) + WSCEnableNSProvider(lpproviderid, fenable.param().abi()) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCEnableNSProvider32(lpproviderid: *const windows_core::GUID, fenable: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider32(lpproviderid : *const windows_core::GUID, fenable : super::super::Foundation:: BOOL) -> i32); - WSCEnableNSProvider32(lpproviderid, fenable.into_param().abi()) + WSCEnableNSProvider32(lpproviderid, fenable.param().abi()) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] @@ -1115,70 +1067,70 @@ pub unsafe fn WSCGetProviderPath32(lpproviderid: *const windows_core::GUID, lpsz #[inline] pub unsafe fn WSCInstallNameSpace(lpszidentifier: P0, lpszpathname: P1, dwnamespace: u32, dwversion: u32, lpproviderid: *const windows_core::GUID) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszpathname.into_param().abi(), dwnamespace, dwversion, lpproviderid) + WSCInstallNameSpace(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCInstallNameSpace32(lpszidentifier: P0, lpszpathname: P1, dwnamespace: u32, dwversion: u32, lpproviderid: *const windows_core::GUID) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszpathname.into_param().abi(), dwnamespace, dwversion, lpproviderid) + WSCInstallNameSpace32(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSCInstallNameSpaceEx(lpszidentifier: P0, lpszpathname: P1, dwnamespace: u32, dwversion: u32, lpproviderid: *const windows_core::GUID, lpproviderspecific: *const super::super::System::Com::BLOB) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszpathname.into_param().abi(), dwnamespace, dwversion, lpproviderid, lpproviderspecific) + WSCInstallNameSpaceEx(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid, lpproviderspecific) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WSCInstallNameSpaceEx32(lpszidentifier: P0, lpszpathname: P1, dwnamespace: u32, dwversion: u32, lpproviderid: *const windows_core::GUID, lpproviderspecific: *const super::super::System::Com::BLOB) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszpathname.into_param().abi(), dwnamespace, dwversion, lpproviderid, lpproviderspecific) + WSCInstallNameSpaceEx32(lpszidentifier.param().abi(), lpszpathname.param().abi(), dwnamespace, dwversion, lpproviderid, lpproviderspecific) } #[inline] pub unsafe fn WSCInstallProvider(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: P0, lpprotocolinfolist: &[WSAPROTOCOL_INFOW], lperrno: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(lpproviderid, lpszproviderdllpath.into_param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) + WSCInstallProvider(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCInstallProvider64_32(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: P0, lpprotocolinfolist: &[WSAPROTOCOL_INFOW], lperrno: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(lpproviderid, lpszproviderdllpath.into_param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) + WSCInstallProvider64_32(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCInstallProviderAndChains64_32(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: P0, lpszproviderdllpath32: P1, lpszlspname: P2, dwserviceflags: u32, lpprotocolinfolist: &mut [WSAPROTOCOL_INFOW], lpdwcatalogentryid: Option<*mut u32>, lperrno: *mut i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(lpproviderid, lpszproviderdllpath.into_param().abi(), lpszproviderdllpath32.into_param().abi(), lpszlspname.into_param().abi(), dwserviceflags, core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), core::mem::transmute(lpdwcatalogentryid.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut())), lperrno) } #[inline] pub unsafe fn WSCSetApplicationCategory(path: &[u16], extra: Option<&[u16]>, permittedlspcategories: u32, pprevpermlspcat: Option<*mut u32>, lperrno: *mut i32) -> i32 { @@ -1210,19 +1162,19 @@ pub unsafe fn WSCUnInstallNameSpace32(lpproviderid: *const windows_core::GUID) - #[inline] pub unsafe fn WSCUpdateProvider(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: P0, lpprotocolinfolist: &[WSAPROTOCOL_INFOW], lperrno: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(lpproviderid, lpszproviderdllpath.into_param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) + WSCUpdateProvider(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCUpdateProvider32(lpproviderid: *const windows_core::GUID, lpszproviderdllpath: P0, lpprotocolinfolist: &[WSAPROTOCOL_INFOW], lperrno: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(lpproviderid, lpszproviderdllpath.into_param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) + WSCUpdateProvider32(lpproviderid, lpszproviderdllpath.param().abi(), core::mem::transmute(lpprotocolinfolist.as_ptr()), lpprotocolinfolist.len().try_into().unwrap(), lperrno) } #[inline] pub unsafe fn WSCWriteNameSpaceOrder(lpproviderid: *mut windows_core::GUID, dwnumberofentries: u32) -> i32 { @@ -1249,42 +1201,42 @@ pub unsafe fn WSCWriteProviderOrder32(lpwdcatalogentryid: *mut u32, dwnumberofen #[inline] pub unsafe fn __WSAFDIsSet(fd: P0, param1: *mut FD_SET) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn __WSAFDIsSet(fd : SOCKET, param1 : *mut FD_SET) -> i32); - __WSAFDIsSet(fd.into_param().abi(), param1) + __WSAFDIsSet(fd.param().abi(), param1) } #[inline] pub unsafe fn accept(s: P0, addr: Option<*mut SOCKADDR>, addrlen: Option<*mut i32>) -> SOCKET where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn accept(s : SOCKET, addr : *mut SOCKADDR, addrlen : *mut i32) -> SOCKET); - accept(s.into_param().abi(), core::mem::transmute(addr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(addrlen.unwrap_or(std::ptr::null_mut()))) + accept(s.param().abi(), core::mem::transmute(addr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(addrlen.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn bind(s: P0, name: *const SOCKADDR, namelen: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn bind(s : SOCKET, name : *const SOCKADDR, namelen : i32) -> i32); - bind(s.into_param().abi(), name, namelen) + bind(s.param().abi(), name, namelen) } #[inline] pub unsafe fn closesocket(s: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn closesocket(s : SOCKET) -> i32); - closesocket(s.into_param().abi()) + closesocket(s.param().abi()) } #[inline] pub unsafe fn connect(s: P0, name: *const SOCKADDR, namelen: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn connect(s : SOCKET, name : *const SOCKADDR, namelen : i32) -> i32); - connect(s.into_param().abi(), name, namelen) + connect(s.param().abi(), name, namelen) } #[inline] pub unsafe fn freeaddrinfo(paddrinfo: Option<*const ADDRINFOA>) { @@ -1294,11 +1246,11 @@ pub unsafe fn freeaddrinfo(paddrinfo: Option<*const ADDRINFOA>) { #[inline] pub unsafe fn getaddrinfo(pnodename: P0, pservicename: P1, phints: Option<*const ADDRINFOA>, ppresult: *mut *mut ADDRINFOA) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getaddrinfo(pnodename : windows_core::PCSTR, pservicename : windows_core::PCSTR, phints : *const ADDRINFOA, ppresult : *mut *mut ADDRINFOA) -> i32); - getaddrinfo(pnodename.into_param().abi(), pservicename.into_param().abi(), core::mem::transmute(phints.unwrap_or(std::ptr::null())), ppresult) + getaddrinfo(pnodename.param().abi(), pservicename.param().abi(), core::mem::transmute(phints.unwrap_or(std::ptr::null())), ppresult) } #[inline] pub unsafe fn gethostbyaddr(addr: &[u8], r#type: i32) -> *mut HOSTENT { @@ -1308,10 +1260,10 @@ pub unsafe fn gethostbyaddr(addr: &[u8], r#type: i32) -> *mut HOSTENT { #[inline] pub unsafe fn gethostbyname(name: P0) -> *mut HOSTENT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn gethostbyname(name : windows_core::PCSTR) -> *mut HOSTENT); - gethostbyname(name.into_param().abi()) + gethostbyname(name.param().abi()) } #[inline] pub unsafe fn gethostname(name: &mut [u8]) -> i32 { @@ -1321,26 +1273,26 @@ pub unsafe fn gethostname(name: &mut [u8]) -> i32 { #[inline] pub unsafe fn getnameinfo(psockaddr: *const SOCKADDR, sockaddrlength: P0, pnodebuffer: Option<&mut [u8]>, pservicebuffer: Option<&mut [u8]>, flags: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(psockaddr, sockaddrlength.into_param().abi(), 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) + getnameinfo(psockaddr, sockaddrlength.param().abi(), 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: P0, name: *mut SOCKADDR, namelen: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getpeername(s : SOCKET, name : *mut SOCKADDR, namelen : *mut i32) -> i32); - getpeername(s.into_param().abi(), name, namelen) + getpeername(s.param().abi(), name, namelen) } #[inline] pub unsafe fn getprotobyname(name: P0) -> *mut PROTOENT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getprotobyname(name : windows_core::PCSTR) -> *mut PROTOENT); - getprotobyname(name.into_param().abi()) + getprotobyname(name.param().abi()) } #[inline] pub unsafe fn getprotobynumber(number: i32) -> *mut PROTOENT { @@ -1350,35 +1302,35 @@ pub unsafe fn getprotobynumber(number: i32) -> *mut PROTOENT { #[inline] pub unsafe fn getservbyname(name: P0, proto: P1) -> *mut SERVENT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getservbyname(name : windows_core::PCSTR, proto : windows_core::PCSTR) -> *mut SERVENT); - getservbyname(name.into_param().abi(), proto.into_param().abi()) + getservbyname(name.param().abi(), proto.param().abi()) } #[inline] pub unsafe fn getservbyport(port: i32, proto: P0) -> *mut SERVENT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getservbyport(port : i32, proto : windows_core::PCSTR) -> *mut SERVENT); - getservbyport(port, proto.into_param().abi()) + getservbyport(port, proto.param().abi()) } #[inline] pub unsafe fn getsockname(s: P0, name: *mut SOCKADDR, namelen: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getsockname(s : SOCKET, name : *mut SOCKADDR, namelen : *mut i32) -> i32); - getsockname(s.into_param().abi(), name, namelen) + getsockname(s.param().abi(), name, namelen) } #[inline] pub unsafe fn getsockopt(s: P0, level: i32, optname: i32, optval: windows_core::PSTR, optlen: *mut i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn getsockopt(s : SOCKET, level : i32, optname : i32, optval : windows_core::PSTR, optlen : *mut i32) -> i32); - getsockopt(s.into_param().abi(), level, optname, core::mem::transmute(optval), optlen) + getsockopt(s.param().abi(), level, optname, core::mem::transmute(optval), optlen) } #[inline] pub unsafe fn htonl(hostlong: u32) -> u32 { @@ -1393,10 +1345,10 @@ pub unsafe fn htons(hostshort: u16) -> u16 { #[inline] pub unsafe fn inet_addr(cp: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn inet_addr(cp : windows_core::PCSTR) -> u32); - inet_addr(cp.into_param().abi()) + inet_addr(cp.param().abi()) } #[inline] pub unsafe fn inet_ntoa(r#in: IN_ADDR) -> windows_core::PSTR { @@ -1411,26 +1363,26 @@ pub unsafe fn inet_ntop(family: i32, paddr: *const core::ffi::c_void, pstringbuf #[inline] pub unsafe fn inet_pton(family: i32, pszaddrstring: P0, paddrbuf: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: 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(family, pszaddrstring.into_param().abi(), paddrbuf) + inet_pton(family, pszaddrstring.param().abi(), paddrbuf) } #[inline] pub unsafe fn ioctlsocket(s: P0, cmd: i32, argp: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn ioctlsocket(s : SOCKET, cmd : i32, argp : *mut u32) -> i32); - ioctlsocket(s.into_param().abi(), cmd, argp) + ioctlsocket(s.param().abi(), cmd, argp) } #[inline] pub unsafe fn listen(s: P0, backlog: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn listen(s : SOCKET, backlog : i32) -> i32); - listen(s.into_param().abi(), backlog) + listen(s.param().abi(), backlog) } #[inline] pub unsafe fn ntohl(netlong: u32) -> u32 { @@ -1445,18 +1397,18 @@ pub unsafe fn ntohs(netshort: u16) -> u16 { #[inline] pub unsafe fn recv(s: P0, buf: &mut [u8], flags: SEND_RECV_FLAGS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn recv(s : SOCKET, buf : windows_core::PSTR, len : i32, flags : SEND_RECV_FLAGS) -> i32); - recv(s.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) + recv(s.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) } #[inline] pub unsafe fn recvfrom(s: P0, buf: &mut [u8], flags: i32, from: Option<*mut SOCKADDR>, fromlen: Option<*mut i32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags, core::mem::transmute(from.unwrap_or(std::ptr::null_mut())), core::mem::transmute(fromlen.unwrap_or(std::ptr::null_mut()))) + recvfrom(s.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags, core::mem::transmute(from.unwrap_or(std::ptr::null_mut())), core::mem::transmute(fromlen.unwrap_or(std::ptr::null_mut()))) } #[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 { @@ -1466,34 +1418,34 @@ pub unsafe fn select(nfds: i32, readfds: Option<*mut FD_SET>, writefds: Option<* #[inline] pub unsafe fn send(s: P0, buf: &[u8], flags: SEND_RECV_FLAGS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn send(s : SOCKET, buf : windows_core::PCSTR, len : i32, flags : SEND_RECV_FLAGS) -> i32); - send(s.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) + send(s.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags) } #[inline] pub unsafe fn sendto(s: P0, buf: &[u8], flags: i32, to: *const SOCKADDR, tolen: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(s.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags, to, tolen) + sendto(s.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), flags, to, tolen) } #[inline] pub unsafe fn setsockopt(s: P0, level: i32, optname: i32, optval: Option<&[u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn setsockopt(s : SOCKET, level : i32, optname : i32, optval : windows_core::PCSTR, optlen : i32) -> i32); - setsockopt(s.into_param().abi(), 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())) + setsockopt(s.param().abi(), 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: P0, how: WINSOCK_SHUTDOWN_HOW) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ws2_32.dll" "system" fn shutdown(s : SOCKET, how : WINSOCK_SHUTDOWN_HOW) -> i32); - shutdown(s.into_param().abi(), how) + shutdown(s.param().abi(), how) } #[inline] pub unsafe fn socket(af: i32, r#type: WINSOCK_SOCKET_TYPE, protocol: i32) -> SOCKET { 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 615a2d57d0..949e67a2df 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -1,21 +1,21 @@ #[inline] pub unsafe fn WebAuthNAuthenticatorGetAssertion(hwnd: P0, pwszrpid: P1, pwebauthnclientdata: *const WEBAUTHN_CLIENT_DATA, pwebauthngetassertionoptions: Option<*const WEBAUTHN_AUTHENTICATOR_GET_ASSERTION_OPTIONS>) -> windows_core::Result<*mut WEBAUTHN_ASSERTION> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WebAuthNAuthenticatorGetAssertion(hwnd.into_param().abi(), pwszrpid.into_param().abi(), pwebauthnclientdata, core::mem::transmute(pwebauthngetassertionoptions.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + WebAuthNAuthenticatorGetAssertion(hwnd.param().abi(), pwszrpid.param().abi(), pwebauthnclientdata, core::mem::transmute(pwebauthngetassertionoptions.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn WebAuthNAuthenticatorMakeCredential(hwnd: P0, 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> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WebAuthNAuthenticatorMakeCredential(hwnd.into_param().abi(), prpinformation, puserinformation, ppubkeycredparams, pwebauthnclientdata, core::mem::transmute(pwebauthnmakecredentialoptions.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + WebAuthNAuthenticatorMakeCredential(hwnd.param().abi(), prpinformation, puserinformation, ppubkeycredparams, pwebauthnclientdata, core::mem::transmute(pwebauthnmakecredentialoptions.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn WebAuthNCancelCurrentOperation(pcancellationid: *const windows_core::GUID) -> windows_core::Result<()> { @@ -341,10 +341,10 @@ pub unsafe fn WsFillReader(reader: *const WS_XML_READER, minsize: u32, asynccont #[inline] pub unsafe fn WsFindAttribute(reader: *const WS_XML_READER, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, required: P0, attributeindex: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reader, localname, ns, required.into_param().abi(), attributeindex, core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() + WsFindAttribute(reader, localname, ns, required.param().abi(), attributeindex, core::mem::transmute(error.unwrap_or(std::ptr::null()))).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<()> { @@ -495,10 +495,10 @@ pub unsafe fn WsGetMissingMetadataDocumentAddress(metadata: *const WS_METADATA, #[inline] pub unsafe fn WsGetNamespaceFromPrefix(reader: *const WS_XML_READER, prefix: *const WS_XML_STRING, required: P0, ns: *mut *mut WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reader, prefix, required.into_param().abi(), ns, core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() + WsGetNamespaceFromPrefix(reader, prefix, required.param().abi(), ns, core::mem::transmute(error.unwrap_or(std::ptr::null()))).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<()> { @@ -518,10 +518,10 @@ pub unsafe fn WsGetPolicyProperty(policy: *const WS_POLICY, id: WS_POLICY_PROPER #[inline] pub unsafe fn WsGetPrefixFromNamespace(writer: *const WS_XML_WRITER, ns: *const WS_XML_STRING, required: P0, prefix: *mut *mut WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(writer, ns, required.into_param().abi(), prefix, core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() + WsGetPrefixFromNamespace(writer, ns, required.param().abi(), prefix, core::mem::transmute(error.unwrap_or(std::ptr::null()))).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<()> { @@ -586,10 +586,10 @@ pub unsafe fn WsMarkHeaderAsUnderstood(message: *const WS_MESSAGE, headerpositio #[inline] pub unsafe fn WsMatchPolicyAlternative(policy: *const WS_POLICY, alternativeindex: u32, policyconstraints: *const WS_POLICY_CONSTRAINTS, matchrequired: P0, heap: *const WS_HEAP, error: Option<*const WS_ERROR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policy, alternativeindex, policyconstraints, matchrequired.into_param().abi(), heap, core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() + WsMatchPolicyAlternative(policy, alternativeindex, policyconstraints, matchrequired.param().abi(), heap, core::mem::transmute(error.unwrap_or(std::ptr::null()))).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<()> { @@ -1034,10 +1034,10 @@ pub unsafe fn WsWriteQualifiedName(writer: *const WS_XML_WRITER, prefix: Option< #[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: P0, error: Option<*const WS_ERROR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(writer, core::mem::transmute(prefix.unwrap_or(std::ptr::null())), localname, ns, singlequote.into_param().abi(), core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() + WsWriteStartAttribute(writer, core::mem::transmute(prefix.unwrap_or(std::ptr::null())), localname, ns, singlequote.param().abi(), core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WsWriteStartCData(writer: *const WS_XML_WRITER, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { @@ -1077,10 +1077,10 @@ pub unsafe fn WsWriteXmlBufferToBytes(writer: *const WS_XML_WRITER, xmlbuffer: * #[inline] pub unsafe fn WsWriteXmlnsAttribute(writer: *const WS_XML_WRITER, prefix: Option<*const WS_XML_STRING>, ns: *const WS_XML_STRING, singlequote: P0, error: Option<*const WS_ERROR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(writer, core::mem::transmute(prefix.unwrap_or(std::ptr::null())), ns, singlequote.into_param().abi(), core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() + WsWriteXmlnsAttribute(writer, core::mem::transmute(prefix.unwrap_or(std::ptr::null())), ns, singlequote.param().abi(), core::mem::transmute(error.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WsXmlStringEquals(string1: *const WS_XML_STRING, string2: *const WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { @@ -1092,16 +1092,16 @@ windows_core::imp::interface_hierarchy!(IContentPrefetcherTaskTrigger, windows_c impl IContentPrefetcherTaskTrigger { pub unsafe fn TriggerContentPrefetcherTask(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TriggerContentPrefetcherTask)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TriggerContentPrefetcherTask)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn IsRegisteredForContentPrefetch(&self, packagefullname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsRegisteredForContentPrefetch)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsRegisteredForContentPrefetch)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] 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 fd80dffaa5..70c5f37e81 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs @@ -1,19 +1,19 @@ #[inline] pub unsafe fn SaferCloseLevel(hlevelhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SaferCloseLevel(hlevelhandle : super:: SAFER_LEVEL_HANDLE) -> super::super::Foundation:: BOOL); - SaferCloseLevel(hlevelhandle.into_param().abi()).ok() + SaferCloseLevel(hlevelhandle.param().abi()).ok() } #[inline] pub unsafe fn SaferComputeTokenFromLevel(levelhandle: P0, inaccesstoken: P1, outaccesstoken: *mut super::super::Foundation::HANDLE, dwflags: SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS, lpreserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(levelhandle.into_param().abi(), inaccesstoken.into_param().abi(), outaccesstoken, dwflags, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null_mut()))).ok() + SaferComputeTokenFromLevel(levelhandle.param().abi(), inaccesstoken.param().abi(), outaccesstoken, dwflags, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null_mut()))).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<()> { @@ -23,10 +23,10 @@ pub unsafe fn SaferCreateLevel(dwscopeid: u32, dwlevelid: u32, openflags: u32, p #[inline] pub unsafe fn SaferGetLevelInformation(levelhandle: P0, dwinfotype: SAFER_OBJECT_INFO_CLASS, lpquerybuffer: Option<*mut core::ffi::c_void>, dwinbuffersize: u32, lpdwoutbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(levelhandle.into_param().abi(), dwinfotype, core::mem::transmute(lpquerybuffer.unwrap_or(std::ptr::null_mut())), dwinbuffersize, lpdwoutbuffersize).ok() + SaferGetLevelInformation(levelhandle.param().abi(), dwinfotype, core::mem::transmute(lpquerybuffer.unwrap_or(std::ptr::null_mut())), dwinbuffersize, 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<()> { @@ -42,19 +42,19 @@ pub unsafe fn SaferIdentifyLevel(pcodeproperties: Option<&[SAFER_CODE_PROPERTIES #[inline] pub unsafe fn SaferRecordEventLogEntry(hlevel: P0, sztargetpath: P1, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hlevel.into_param().abi(), sztargetpath.into_param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + SaferRecordEventLogEntry(hlevel.param().abi(), sztargetpath.param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SaferSetLevelInformation(levelhandle: P0, dwinfotype: SAFER_OBJECT_INFO_CLASS, lpquerybuffer: *const core::ffi::c_void, dwinbuffersize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(levelhandle.into_param().abi(), dwinfotype, lpquerybuffer, dwinbuffersize).ok() + SaferSetLevelInformation(levelhandle.param().abi(), 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<()> { @@ -64,11 +64,11 @@ pub unsafe fn SaferSetPolicyInformation(dwscopeid: u32, saferpolicyinfoclass: SA #[inline] pub unsafe fn SaferiIsExecutableFileType(szfullpathname: P0, bfromshellexecute: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_core::PCWSTR, bfromshellexecute : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOL); - SaferiIsExecutableFileType(szfullpathname.into_param().abi(), bfromshellexecute.into_param().abi()) + SaferiIsExecutableFileType(szfullpathname.param().abi(), bfromshellexecute.param().abi()) } pub const SAFER_CRITERIA_APPX_PACKAGE: u32 = 32u32; pub const SAFER_CRITERIA_AUTHENTICODE: u32 = 8u32; 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 8ead1e39de..b20af5b801 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 @@ -3,9 +3,9 @@ windows_core::imp::interface_hierarchy!(AsyncIAssociatedIdentityProvider, window impl AsyncIAssociatedIdentityProvider { pub unsafe fn Begin_AssociateIdentity(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_AssociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_AssociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Finish_AssociateIdentity(&self) -> windows_core::Result { @@ -14,20 +14,20 @@ impl AsyncIAssociatedIdentityProvider { } pub unsafe fn Begin_DisassociateIdentity(&self, hwndparent: P0, lpszuniqueid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_DisassociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lpszuniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_DisassociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), 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() } pub unsafe fn Begin_ChangeCredential(&self, hwndparent: P0, lpszuniqueid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_ChangeCredential)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lpszuniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_ChangeCredential)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), 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() @@ -71,9 +71,9 @@ impl AsyncIConnectedIdentityProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Begin_GetUrl(&self, identifier: IDENTITY_URL, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_GetUrl)(windows_core::Interface::as_raw(self), identifier, context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_GetUrl)(windows_core::Interface::as_raw(self), identifier, context.param().abi()).ok() } pub unsafe fn Finish_GetUrl(&self, postdata: *mut windows_core::VARIANT, url: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_GetUrl)(windows_core::Interface::as_raw(self), core::mem::transmute(postdata), url).ok() @@ -108,9 +108,9 @@ windows_core::imp::interface_hierarchy!(AsyncIIdentityAdvise, windows_core::IUnk impl AsyncIIdentityAdvise { pub unsafe fn Begin_IdentityUpdated(&self, dwidentityupdateevents: u32, lpszuniqueid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_IdentityUpdated)(windows_core::Interface::as_raw(self), dwidentityupdateevents, lpszuniqueid.into_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() @@ -168,9 +168,9 @@ impl AsyncIIdentityProvider { } pub unsafe fn Begin_Create(&self, lpszusername: P0, pkeywordstoadd: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_Create)(windows_core::Interface::as_raw(self), lpszusername.into_param().abi(), core::mem::transmute(pkeywordstoadd)).ok() + (windows_core::Interface::vtable(self).Begin_Create)(windows_core::Interface::as_raw(self), lpszusername.param().abi(), core::mem::transmute(pkeywordstoadd)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Finish_Create(&self) -> windows_core::Result { @@ -180,27 +180,27 @@ impl AsyncIIdentityProvider { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Begin_Import(&self, ppropertystore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_Import)(windows_core::Interface::as_raw(self), ppropertystore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_Import)(windows_core::Interface::as_raw(self), ppropertystore.param().abi()).ok() } pub unsafe fn Finish_Import(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_Import)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Begin_Delete(&self, lpszuniqueid: P0, pkeywordstodelete: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_Delete)(windows_core::Interface::as_raw(self), lpszuniqueid.into_param().abi(), core::mem::transmute(pkeywordstodelete)).ok() + (windows_core::Interface::vtable(self).Begin_Delete)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), core::mem::transmute(pkeywordstodelete)).ok() } pub unsafe fn Finish_Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_Delete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Begin_FindByUniqueID(&self, lpszuniqueid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_FindByUniqueID)(windows_core::Interface::as_raw(self), lpszuniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_FindByUniqueID)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Finish_FindByUniqueID(&self) -> windows_core::Result { @@ -217,9 +217,9 @@ impl AsyncIIdentityProvider { } pub unsafe fn Begin_Advise(&self, pidentityadvise: P0, dwidentityupdateevents: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_Advise)(windows_core::Interface::as_raw(self), pidentityadvise.into_param().abi(), 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__ = std::mem::zeroed(); @@ -288,18 +288,18 @@ impl AsyncIIdentityStore { } pub unsafe fn Begin_AddToCache(&self, lpszuniqueid: P0, providerguid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_AddToCache)(windows_core::Interface::as_raw(self), lpszuniqueid.into_param().abi(), 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() } pub unsafe fn Begin_ConvertToSid(&self, lpszuniqueid: P0, providerguid: *const windows_core::GUID, cbsid: u16, psid: Option<*mut u8>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_ConvertToSid)(windows_core::Interface::as_raw(self), lpszuniqueid.into_param().abi(), providerguid, cbsid, core::mem::transmute(psid.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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(std::ptr::null_mut())), pcbrequiredsid).ok() @@ -347,19 +347,19 @@ windows_core::imp::interface_hierarchy!(AsyncIIdentityStoreEx, windows_core::IUn impl AsyncIIdentityStoreEx { pub unsafe fn Begin_CreateConnectedIdentity(&self, localname: P0, connectedname: P1, providerguid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_CreateConnectedIdentity)(windows_core::Interface::as_raw(self), localname.into_param().abi(), connectedname.into_param().abi(), 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() } pub unsafe fn Begin_DeleteConnectedIdentity(&self, connectedname: P0, providerguid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_DeleteConnectedIdentity)(windows_core::Interface::as_raw(self), connectedname.into_param().abi(), 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() @@ -379,24 +379,24 @@ impl IAssociatedIdentityProvider { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn AssociateIdentity(&self, hwndparent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AssociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DisassociateIdentity(&self, hwndparent: P0, lpszuniqueid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DisassociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lpszuniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisassociateIdentity)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), lpszuniqueid.param().abi()).ok() } pub unsafe fn ChangeCredential(&self, hwndparent: P0, lpszuniqueid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeCredential)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lpszuniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeCredential)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), lpszuniqueid.param().abi()).ok() } } #[repr(C)] @@ -425,9 +425,9 @@ impl IConnectedIdentityProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetUrl(&self, identifier: IDENTITY_URL, context: P0, postdata: *mut windows_core::VARIANT, url: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetUrl)(windows_core::Interface::as_raw(self), identifier, context.into_param().abi(), core::mem::transmute(postdata), url).ok() + (windows_core::Interface::vtable(self).GetUrl)(windows_core::Interface::as_raw(self), identifier, context.param().abi(), core::mem::transmute(postdata), url).ok() } pub unsafe fn GetAccountState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -451,9 +451,9 @@ windows_core::imp::interface_hierarchy!(IIdentityAdvise, windows_core::IUnknown) impl IIdentityAdvise { pub unsafe fn IdentityUpdated(&self, dwidentityupdateevents: IdentityUpdateEvent, lpszuniqueid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IdentityUpdated)(windows_core::Interface::as_raw(self), dwidentityupdateevents.0 as _, lpszuniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IdentityUpdated)(windows_core::Interface::as_raw(self), dwidentityupdateevents.0 as _, lpszuniqueid.param().abi()).ok() } } #[repr(C)] @@ -492,30 +492,30 @@ impl IIdentityProvider { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Create(&self, lpszusername: P0, pppropertystore: *mut Option, pkeywordstoadd: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), lpszusername.into_param().abi(), core::mem::transmute(pppropertystore), core::mem::transmute(pkeywordstoadd)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), lpszusername.param().abi(), core::mem::transmute(pppropertystore), core::mem::transmute(pkeywordstoadd)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Import(&self, ppropertystore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), ppropertystore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), ppropertystore.param().abi()).ok() } pub unsafe fn Delete(&self, lpszuniqueid: P0, pkeywordstodelete: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), lpszuniqueid.into_param().abi(), core::mem::transmute(pkeywordstodelete)).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), core::mem::transmute(pkeywordstodelete)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn FindByUniqueID(&self, lpszuniqueid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindByUniqueID)(windows_core::Interface::as_raw(self), lpszuniqueid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindByUniqueID)(windows_core::Interface::as_raw(self), lpszuniqueid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetProviderPropertyStore(&self) -> windows_core::Result { @@ -524,10 +524,10 @@ impl IIdentityProvider { } pub unsafe fn Advise(&self, pidentityadvise: P0, dwidentityupdateevents: IdentityUpdateEvent) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pidentityadvise.into_param().abi(), dwidentityupdateevents.0 as _, &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -572,15 +572,15 @@ impl IIdentityStore { } pub unsafe fn AddToCache(&self, lpszuniqueid: P0, providerguid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToCache)(windows_core::Interface::as_raw(self), lpszuniqueid.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertToSid)(windows_core::Interface::as_raw(self), lpszuniqueid.into_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())), 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())), pcbrequiredsid).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn EnumerateIdentities(&self, eidentitytype: IDENTITY_TYPE, pfilterkey: Option<*const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY>, pfilterpropvarvalue: Option<*const windows_core::PROPVARIANT>) -> windows_core::Result { @@ -609,16 +609,16 @@ windows_core::imp::interface_hierarchy!(IIdentityStoreEx, windows_core::IUnknown impl IIdentityStoreEx { pub unsafe fn CreateConnectedIdentity(&self, localname: P0, connectedname: P1, providerguid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateConnectedIdentity)(windows_core::Interface::as_raw(self), localname.into_param().abi(), connectedname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteConnectedIdentity)(windows_core::Interface::as_raw(self), connectedname.into_param().abi(), 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 cea577abd3..d5f0c021a6 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 @@ -10,57 +10,57 @@ pub unsafe fn AcceptSecurityContext(phcredential: Option<*const super::super::Cr #[inline] pub unsafe fn AcquireCredentialsHandleA(pszprincipal: P0, pszpackage: P1, fcredentialuse: SECPKG_CRED, pvlogonid: Option<*const core::ffi::c_void>, pauthdata: Option<*const core::ffi::c_void>, pgetkeyfn: SEC_GET_KEY_FN, pvgetkeyargument: Option<*const core::ffi::c_void>, phcredential: *mut super::super::Credentials::SecHandle, ptsexpiry: Option<*mut i64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszpackage.into_param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(std::ptr::null())), core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() + AcquireCredentialsHandleA(pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(std::ptr::null())), core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn AcquireCredentialsHandleW(pszprincipal: P0, pszpackage: P1, fcredentialuse: SECPKG_CRED, pvlogonid: Option<*const core::ffi::c_void>, pauthdata: Option<*const core::ffi::c_void>, pgetkeyfn: SEC_GET_KEY_FN, pvgetkeyargument: Option<*const core::ffi::c_void>, phcredential: *mut super::super::Credentials::SecHandle, ptsexpiry: Option<*mut i64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszpackage.into_param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(std::ptr::null())), core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() + AcquireCredentialsHandleW(pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pvlogonid.unwrap_or(std::ptr::null())), core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), phcredential, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn AddCredentialsA(hcredentials: *const super::super::Credentials::SecHandle, pszprincipal: P0, pszpackage: P1, fcredentialuse: u32, pauthdata: Option<*const core::ffi::c_void>, pgetkeyfn: SEC_GET_KEY_FN, pvgetkeyargument: Option<*const core::ffi::c_void>, ptsexpiry: Option<*mut i64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcredentials, pszprincipal.into_param().abi(), pszpackage.into_param().abi(), fcredentialuse, core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() + AddCredentialsA(hcredentials, pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn AddCredentialsW(hcredentials: *const super::super::Credentials::SecHandle, pszprincipal: P0, pszpackage: P1, fcredentialuse: u32, pauthdata: Option<*const core::ffi::c_void>, pgetkeyfn: SEC_GET_KEY_FN, pvgetkeyargument: Option<*const core::ffi::c_void>, ptsexpiry: Option<*mut i64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcredentials, pszprincipal.into_param().abi(), pszpackage.into_param().abi(), fcredentialuse, core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() + AddCredentialsW(hcredentials, pszprincipal.param().abi(), pszpackage.param().abi(), fcredentialuse, core::mem::transmute(pauthdata.unwrap_or(std::ptr::null())), pgetkeyfn, core::mem::transmute(pvgetkeyargument.unwrap_or(std::ptr::null())), core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AddSecurityPackageA(pszpackagename: P0, poptions: Option<*const SECURITY_PACKAGE_OPTIONS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn AddSecurityPackageA(pszpackagename : windows_core::PCSTR, poptions : *const SECURITY_PACKAGE_OPTIONS) -> windows_core::HRESULT); - AddSecurityPackageA(pszpackagename.into_param().abi(), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() + AddSecurityPackageA(pszpackagename.param().abi(), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AddSecurityPackageW(pszpackagename: P0, poptions: Option<*const SECURITY_PACKAGE_OPTIONS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn AddSecurityPackageW(pszpackagename : windows_core::PCWSTR, poptions : *const SECURITY_PACKAGE_OPTIONS) -> windows_core::HRESULT); - AddSecurityPackageW(pszpackagename.into_param().abi(), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() + AddSecurityPackageW(pszpackagename.param().abi(), core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -71,18 +71,18 @@ pub unsafe fn ApplyControlToken(phcontext: *const super::super::Credentials::Sec #[inline] pub unsafe fn AuditComputeEffectivePolicyBySid(psid: P0, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyBySid(psid : super::super::super::Foundation:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); - AuditComputeEffectivePolicyBySid(psid.into_param().abi(), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), ppauditpolicy) + AuditComputeEffectivePolicyBySid(psid.param().abi(), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), ppauditpolicy) } #[inline] pub unsafe fn AuditComputeEffectivePolicyByToken(htokenhandle: P0, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> super::super::super::Foundation:: BOOLEAN); - AuditComputeEffectivePolicyByToken(htokenhandle.into_param().abi(), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), ppauditpolicy) + AuditComputeEffectivePolicyByToken(htokenhandle.param().abi(), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), ppauditpolicy) } #[inline] pub unsafe fn AuditEnumerateCategories(ppauditcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> super::super::super::Foundation::BOOLEAN { @@ -97,10 +97,10 @@ pub unsafe fn AuditEnumeratePerUserPolicy(ppauditsidarray: *mut *mut POLICY_AUDI #[inline] pub unsafe fn AuditEnumerateSubCategories(pauditcategoryguid: Option<*const windows_core::GUID>, bretrieveallsubcategories: P0, ppauditsubcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateSubCategories(pauditcategoryguid : *const windows_core::GUID, bretrieveallsubcategories : super::super::super::Foundation:: BOOLEAN, ppauditsubcategoriesarray : *mut *mut windows_core::GUID, pdwcountreturned : *mut u32) -> super::super::super::Foundation:: BOOLEAN); - AuditEnumerateSubCategories(core::mem::transmute(pauditcategoryguid.unwrap_or(std::ptr::null())), bretrieveallsubcategories.into_param().abi(), ppauditsubcategoriesarray, pdwcountreturned) + AuditEnumerateSubCategories(core::mem::transmute(pauditcategoryguid.unwrap_or(std::ptr::null())), bretrieveallsubcategories.param().abi(), ppauditsubcategoriesarray, pdwcountreturned) } #[inline] pub unsafe fn AuditFree(buffer: *const core::ffi::c_void) { @@ -140,26 +140,26 @@ pub unsafe fn AuditLookupSubCategoryNameW(pauditsubcategoryguid: *const windows_ #[inline] pub unsafe fn AuditQueryGlobalSaclA(objecttypename: P0, acl: *mut *mut super::super::ACL) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclA(objecttypename : windows_core::PCSTR, acl : *mut *mut super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); - AuditQueryGlobalSaclA(objecttypename.into_param().abi(), acl) + AuditQueryGlobalSaclA(objecttypename.param().abi(), acl) } #[inline] pub unsafe fn AuditQueryGlobalSaclW(objecttypename: P0, acl: *mut *mut super::super::ACL) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclW(objecttypename : windows_core::PCWSTR, acl : *mut *mut super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); - AuditQueryGlobalSaclW(objecttypename.into_param().abi(), acl) + AuditQueryGlobalSaclW(objecttypename.param().abi(), acl) } #[inline] pub unsafe fn AuditQueryPerUserPolicy(psid: P0, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditQueryPerUserPolicy(psid : super::super::super::Foundation:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); - AuditQueryPerUserPolicy(psid.into_param().abi(), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), ppauditpolicy) + AuditQueryPerUserPolicy(psid.param().abi(), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), ppauditpolicy) } #[inline] pub unsafe fn AuditQuerySecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR) -> super::super::super::Foundation::BOOLEAN { @@ -174,34 +174,34 @@ pub unsafe fn AuditQuerySystemPolicy(psubcategoryguids: &[windows_core::GUID], p #[inline] pub unsafe fn AuditSetGlobalSaclA(objecttypename: P0, acl: Option<*const super::super::ACL>) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclA(objecttypename : windows_core::PCSTR, acl : *const super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); - AuditSetGlobalSaclA(objecttypename.into_param().abi(), core::mem::transmute(acl.unwrap_or(std::ptr::null()))) + AuditSetGlobalSaclA(objecttypename.param().abi(), core::mem::transmute(acl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AuditSetGlobalSaclW(objecttypename: P0, acl: Option<*const super::super::ACL>) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclW(objecttypename : windows_core::PCWSTR, acl : *const super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); - AuditSetGlobalSaclW(objecttypename.into_param().abi(), core::mem::transmute(acl.unwrap_or(std::ptr::null()))) + AuditSetGlobalSaclW(objecttypename.param().abi(), core::mem::transmute(acl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn AuditSetPerUserPolicy(psid: P0, pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditSetPerUserPolicy(psid : super::super::super::Foundation:: PSID, pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> super::super::super::Foundation:: BOOLEAN); - AuditSetPerUserPolicy(psid.into_param().abi(), core::mem::transmute(pauditpolicy.as_ptr()), pauditpolicy.len().try_into().unwrap()) + AuditSetPerUserPolicy(psid.param().abi(), core::mem::transmute(pauditpolicy.as_ptr()), pauditpolicy.len().try_into().unwrap()) } #[inline] pub unsafe fn AuditSetSecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P0) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AuditSetSecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super:: PSECURITY_DESCRIPTOR) -> super::super::super::Foundation:: BOOLEAN); - AuditSetSecurity(securityinformation, psecuritydescriptor.into_param().abi()) + AuditSetSecurity(securityinformation, psecuritydescriptor.param().abi()) } #[inline] pub unsafe fn AuditSetSystemPolicy(pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> super::super::super::Foundation::BOOLEAN { @@ -211,18 +211,18 @@ 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: P0, dwreserved: u32, poutput: *mut SecBufferDesc) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordA(pszpackagename : *const i8, pszdomainname : *const i8, pszaccountname : *const i8, pszoldpassword : *const i8, psznewpassword : *const i8, bimpersonating : super::super::super::Foundation:: BOOLEAN, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); - ChangeAccountPasswordA(pszpackagename, pszdomainname, pszaccountname, pszoldpassword, psznewpassword, bimpersonating.into_param().abi(), dwreserved, poutput).ok() + ChangeAccountPasswordA(pszpackagename, pszdomainname, pszaccountname, pszoldpassword, psznewpassword, bimpersonating.param().abi(), dwreserved, poutput).ok() } #[inline] pub unsafe fn ChangeAccountPasswordW(pszpackagename: *const u16, pszdomainname: *const u16, pszaccountname: *const u16, pszoldpassword: *const u16, psznewpassword: *const u16, bimpersonating: P0, dwreserved: u32, poutput: *mut SecBufferDesc) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordW(pszpackagename : *const u16, pszdomainname : *const u16, pszaccountname : *const u16, pszoldpassword : *const u16, psznewpassword : *const u16, bimpersonating : super::super::super::Foundation:: BOOLEAN, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); - ChangeAccountPasswordW(pszpackagename, pszdomainname, pszaccountname, pszoldpassword, psznewpassword, bimpersonating.into_param().abi(), dwreserved, poutput).ok() + ChangeAccountPasswordW(pszpackagename, pszdomainname, pszaccountname, pszoldpassword, psznewpassword, bimpersonating.param().abi(), dwreserved, poutput).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -257,18 +257,18 @@ pub unsafe fn DeleteSecurityContext(phcontext: *const super::super::Credentials: #[inline] pub unsafe fn DeleteSecurityPackageA(pszpackagename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn DeleteSecurityPackageA(pszpackagename : windows_core::PCSTR) -> windows_core::HRESULT); - DeleteSecurityPackageA(pszpackagename.into_param().abi()).ok() + DeleteSecurityPackageA(pszpackagename.param().abi()).ok() } #[inline] pub unsafe fn DeleteSecurityPackageW(pszpackagename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn DeleteSecurityPackageW(pszpackagename : windows_core::PCWSTR) -> windows_core::HRESULT); - DeleteSecurityPackageW(pszpackagename.into_param().abi()).ok() + DeleteSecurityPackageW(pszpackagename.param().abi()).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -333,21 +333,21 @@ pub unsafe fn ImpersonateSecurityContext(phcontext: *const super::super::Credent #[inline] pub unsafe fn ImportSecurityContextA(pszpackage: P0, ppackedcontext: *const SecBuffer, token: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - ImportSecurityContextA(pszpackage.into_param().abi(), ppackedcontext, token, &mut result__).map(|| result__) + ImportSecurityContextA(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn ImportSecurityContextW(pszpackage: P0, ppackedcontext: *const SecBuffer, token: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - ImportSecurityContextW(pszpackage.into_param().abi(), ppackedcontext, token, &mut result__).map(|| result__) + ImportSecurityContextW(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -402,27 +402,27 @@ pub unsafe fn InitializeSecurityContextW(phcredential: Option<*const super::supe #[inline] pub unsafe fn LsaAddAccountRights(policyhandle: P0, accountsid: P1, userrights: &[LSA_UNICODE_STRING]) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaAddAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super::super::Foundation:: PSID, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); - LsaAddAccountRights(policyhandle.into_param().abi(), accountsid.into_param().abi(), core::mem::transmute(userrights.as_ptr()), userrights.len().try_into().unwrap()) + LsaAddAccountRights(policyhandle.param().abi(), accountsid.param().abi(), core::mem::transmute(userrights.as_ptr()), userrights.len().try_into().unwrap()) } #[inline] pub unsafe fn LsaCallAuthenticationPackage(lsahandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lsahandle.into_param().abi(), authenticationpackage, protocolsubmitbuffer, submitbufferlength, core::mem::transmute(protocolreturnbuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnbufferlength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(protocolstatus.unwrap_or(std::ptr::null_mut()))) + LsaCallAuthenticationPackage(lsahandle.param().abi(), authenticationpackage, protocolsubmitbuffer, submitbufferlength, core::mem::transmute(protocolreturnbuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnbufferlength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(protocolstatus.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn LsaClose(objecthandle: P0) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaClose(objecthandle : LSA_HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaClose(objecthandle.into_param().abi()) + LsaClose(objecthandle.param().abi()) } #[inline] pub unsafe fn LsaConnectUntrusted(lsahandle: *mut super::super::super::Foundation::HANDLE) -> super::super::super::Foundation::NTSTATUS { @@ -432,44 +432,44 @@ pub unsafe fn LsaConnectUntrusted(lsahandle: *mut super::super::super::Foundatio #[inline] pub unsafe fn LsaCreateTrustedDomainEx(policyhandle: P0, trusteddomaininformation: *const TRUSTED_DOMAIN_INFORMATION_EX, authenticationinformation: *const TRUSTED_DOMAIN_AUTH_INFORMATION, desiredaccess: u32, trusteddomainhandle: *mut LSA_HANDLE) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), trusteddomaininformation, authenticationinformation, desiredaccess, trusteddomainhandle) + LsaCreateTrustedDomainEx(policyhandle.param().abi(), trusteddomaininformation, authenticationinformation, desiredaccess, trusteddomainhandle) } #[inline] pub unsafe fn LsaDeleteTrustedDomain(policyhandle: P0, trusteddomainsid: P1) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaDeleteTrustedDomain(policyhandle : LSA_HANDLE, trusteddomainsid : super::super::super::Foundation:: PSID) -> super::super::super::Foundation:: NTSTATUS); - LsaDeleteTrustedDomain(policyhandle.into_param().abi(), trusteddomainsid.into_param().abi()) + LsaDeleteTrustedDomain(policyhandle.param().abi(), trusteddomainsid.param().abi()) } #[inline] pub unsafe fn LsaDeregisterLogonProcess(lsahandle: P0) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn LsaDeregisterLogonProcess(lsahandle : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: NTSTATUS); - LsaDeregisterLogonProcess(lsahandle.into_param().abi()) + LsaDeregisterLogonProcess(lsahandle.param().abi()) } #[inline] pub unsafe fn LsaEnumerateAccountRights(policyhandle: P0, accountsid: P1, userrights: *mut *mut LSA_UNICODE_STRING, countofrights: *mut u32) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaEnumerateAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super::super::Foundation:: PSID, userrights : *mut *mut LSA_UNICODE_STRING, countofrights : *mut u32) -> super::super::super::Foundation:: NTSTATUS); - LsaEnumerateAccountRights(policyhandle.into_param().abi(), accountsid.into_param().abi(), userrights, countofrights) + LsaEnumerateAccountRights(policyhandle.param().abi(), accountsid.param().abi(), userrights, countofrights) } #[inline] pub unsafe fn LsaEnumerateAccountsWithUserRight(policyhandle: P0, userright: Option<*const LSA_UNICODE_STRING>, buffer: *mut *mut core::ffi::c_void, countreturned: *mut u32) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), core::mem::transmute(userright.unwrap_or(std::ptr::null())), buffer, countreturned) + LsaEnumerateAccountsWithUserRight(policyhandle.param().abi(), core::mem::transmute(userright.unwrap_or(std::ptr::null())), buffer, countreturned) } #[inline] pub unsafe fn LsaEnumerateLogonSessions(logonsessioncount: *mut u32, logonsessionlist: *mut *mut super::super::super::Foundation::LUID) -> super::super::super::Foundation::NTSTATUS { @@ -479,18 +479,18 @@ pub unsafe fn LsaEnumerateLogonSessions(logonsessioncount: *mut u32, logonsessio #[inline] pub unsafe fn LsaEnumerateTrustedDomains(policyhandle: P0, enumerationcontext: *mut u32, buffer: *mut *mut core::ffi::c_void, preferedmaximumlength: u32, countreturned: *mut u32) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), enumerationcontext, buffer, preferedmaximumlength, countreturned) + LsaEnumerateTrustedDomains(policyhandle.param().abi(), enumerationcontext, buffer, preferedmaximumlength, countreturned) } #[inline] pub unsafe fn LsaEnumerateTrustedDomainsEx(policyhandle: P0, enumerationcontext: *mut u32, buffer: *mut *mut core::ffi::c_void, preferedmaximumlength: u32, countreturned: *mut u32) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), enumerationcontext, buffer, preferedmaximumlength, countreturned) + LsaEnumerateTrustedDomainsEx(policyhandle.param().abi(), enumerationcontext, buffer, preferedmaximumlength, countreturned) } #[inline] pub unsafe fn LsaFreeMemory(buffer: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::NTSTATUS { @@ -515,58 +515,58 @@ pub unsafe fn LsaGetLogonSessionData(logonid: *const super::super::super::Founda #[inline] pub unsafe fn LsaLogonUser(lsahandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lsahandle.into_param().abi(), originname, logontype, authenticationpackage, authenticationinformation, authenticationinformationlength, core::mem::transmute(localgroups.unwrap_or(std::ptr::null())), sourcecontext, profilebuffer, profilebufferlength, logonid, token, quotas, substatus) + LsaLogonUser(lsahandle.param().abi(), originname, logontype, authenticationpackage, authenticationinformation, authenticationinformationlength, core::mem::transmute(localgroups.unwrap_or(std::ptr::null())), sourcecontext, profilebuffer, profilebufferlength, logonid, token, quotas, substatus) } #[inline] pub unsafe fn LsaLookupAuthenticationPackage(lsahandle: P0, packagename: *const LSA_STRING, authenticationpackage: *mut u32) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lsahandle.into_param().abi(), packagename, authenticationpackage) + LsaLookupAuthenticationPackage(lsahandle.param().abi(), packagename, authenticationpackage) } #[inline] pub unsafe fn LsaLookupNames(policyhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), count, names, referenceddomains, sids) + LsaLookupNames(policyhandle.param().abi(), count, names, referenceddomains, sids) } #[inline] pub unsafe fn LsaLookupNames2(policyhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), flags, count, names, referenceddomains, sids) + LsaLookupNames2(policyhandle.param().abi(), flags, count, names, referenceddomains, sids) } #[inline] pub unsafe fn LsaLookupSids(policyhandle: P0, count: u32, sids: *const super::super::super::Foundation::PSID, referenceddomains: *mut *mut LSA_REFERENCED_DOMAIN_LIST, names: *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaLookupSids(policyhandle : LSA_HANDLE, count : u32, sids : *const super::super::super::Foundation:: PSID, referenceddomains : *mut *mut LSA_REFERENCED_DOMAIN_LIST, names : *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation:: NTSTATUS); - LsaLookupSids(policyhandle.into_param().abi(), count, sids, referenceddomains, names) + LsaLookupSids(policyhandle.param().abi(), count, sids, referenceddomains, names) } #[inline] pub unsafe fn LsaLookupSids2(policyhandle: P0, lookupoptions: u32, count: u32, sids: *const super::super::super::Foundation::PSID, referenceddomains: *mut *mut LSA_REFERENCED_DOMAIN_LIST, names: *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaLookupSids2(policyhandle : LSA_HANDLE, lookupoptions : u32, count : u32, sids : *const super::super::super::Foundation:: PSID, referenceddomains : *mut *mut LSA_REFERENCED_DOMAIN_LIST, names : *mut *mut LSA_TRANSLATED_NAME) -> super::super::super::Foundation:: NTSTATUS); - LsaLookupSids2(policyhandle.into_param().abi(), lookupoptions, count, sids, referenceddomains, names) + LsaLookupSids2(policyhandle.param().abi(), lookupoptions, count, sids, referenceddomains, names) } #[inline] pub unsafe fn LsaNtStatusToWinError(status: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaNtStatusToWinError(status : super::super::super::Foundation:: NTSTATUS) -> u32); - LsaNtStatusToWinError(status.into_param().abi()) + LsaNtStatusToWinError(status.param().abi()) } #[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 { @@ -576,10 +576,10 @@ pub unsafe fn LsaOpenPolicy(systemname: Option<*const LSA_UNICODE_STRING>, objec #[inline] pub unsafe fn LsaOpenTrustedDomainByName(policyhandle: P0, trusteddomainname: *const LSA_UNICODE_STRING, desiredaccess: u32, trusteddomainhandle: *mut LSA_HANDLE) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), trusteddomainname, desiredaccess, trusteddomainhandle) + LsaOpenTrustedDomainByName(policyhandle.param().abi(), trusteddomainname, desiredaccess, trusteddomainhandle) } #[inline] pub unsafe fn LsaQueryCAPs(capids: Option<&[super::super::super::Foundation::PSID]>, caps: *mut *mut CENTRAL_ACCESS_POLICY, capcount: *mut u32) -> super::super::super::Foundation::NTSTATUS { @@ -589,51 +589,51 @@ pub unsafe fn LsaQueryCAPs(capids: Option<&[super::super::super::Foundation::PSI #[inline] pub unsafe fn LsaQueryDomainInformationPolicy(policyhandle: P0, informationclass: POLICY_DOMAIN_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), informationclass, buffer) + LsaQueryDomainInformationPolicy(policyhandle.param().abi(), informationclass, buffer) } #[inline] pub unsafe fn LsaQueryForestTrustInformation(policyhandle: P0, trusteddomainname: *const LSA_UNICODE_STRING, foresttrustinfo: *mut *mut LSA_FOREST_TRUST_INFORMATION) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), trusteddomainname, foresttrustinfo) + LsaQueryForestTrustInformation(policyhandle.param().abi(), trusteddomainname, foresttrustinfo) } #[inline] pub unsafe fn LsaQueryForestTrustInformation2(policyhandle: P0, trusteddomainname: *const LSA_UNICODE_STRING, highestrecordtype: LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo: *mut *mut LSA_FOREST_TRUST_INFORMATION2) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), trusteddomainname, highestrecordtype, foresttrustinfo) + LsaQueryForestTrustInformation2(policyhandle.param().abi(), trusteddomainname, highestrecordtype, foresttrustinfo) } #[inline] pub unsafe fn LsaQueryInformationPolicy(policyhandle: P0, informationclass: POLICY_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), informationclass, buffer) + LsaQueryInformationPolicy(policyhandle.param().abi(), informationclass, buffer) } #[inline] pub unsafe fn LsaQueryTrustedDomainInfo(policyhandle: P0, trusteddomainsid: P1, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaQueryTrustedDomainInfo(policyhandle : LSA_HANDLE, trusteddomainsid : super::super::super::Foundation:: PSID, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaQueryTrustedDomainInfo(policyhandle.into_param().abi(), trusteddomainsid.into_param().abi(), informationclass, buffer) + LsaQueryTrustedDomainInfo(policyhandle.param().abi(), trusteddomainsid.param().abi(), informationclass, buffer) } #[inline] pub unsafe fn LsaQueryTrustedDomainInfoByName(policyhandle: P0, trusteddomainname: *const LSA_UNICODE_STRING, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), trusteddomainname, informationclass, buffer) + LsaQueryTrustedDomainInfoByName(policyhandle.param().abi(), trusteddomainname, informationclass, 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 { @@ -643,28 +643,28 @@ pub unsafe fn LsaRegisterLogonProcess(logonprocessname: *const LSA_STRING, lsaha #[inline] pub unsafe fn LsaRegisterPolicyChangeNotification(informationclass: POLICY_NOTIFICATION_INFORMATION_CLASS, notificationeventhandle: P0) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(informationclass, notificationeventhandle.into_param().abi()) + LsaRegisterPolicyChangeNotification(informationclass, notificationeventhandle.param().abi()) } #[inline] pub unsafe fn LsaRemoveAccountRights(policyhandle: P0, accountsid: P1, allrights: P2, userrights: Option<&[LSA_UNICODE_STRING]>) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaRemoveAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super::super::Foundation:: PSID, allrights : super::super::super::Foundation:: BOOLEAN, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); - LsaRemoveAccountRights(policyhandle.into_param().abi(), accountsid.into_param().abi(), allrights.into_param().abi(), 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.param().abi(), accountsid.param().abi(), allrights.param().abi(), 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: P0, keyname: *const LSA_UNICODE_STRING, privatedata: *mut *mut LSA_UNICODE_STRING) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), keyname, privatedata) + LsaRetrievePrivateData(policyhandle.param().abi(), keyname, privatedata) } #[inline] pub unsafe fn LsaSetCAPs(capdns: Option<&[LSA_UNICODE_STRING]>, flags: u32) -> super::super::super::Foundation::NTSTATUS { @@ -674,69 +674,69 @@ pub unsafe fn LsaSetCAPs(capdns: Option<&[LSA_UNICODE_STRING]>, flags: u32) -> s #[inline] pub unsafe fn LsaSetDomainInformationPolicy(policyhandle: P0, informationclass: POLICY_DOMAIN_INFORMATION_CLASS, buffer: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null()))) + LsaSetDomainInformationPolicy(policyhandle.param().abi(), informationclass, core::mem::transmute(buffer.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn LsaSetForestTrustInformation(policyhandle: P0, trusteddomainname: *const LSA_UNICODE_STRING, foresttrustinfo: *const LSA_FOREST_TRUST_INFORMATION, checkonly: P1, collisioninfo: *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION, checkonly : super::super::super::Foundation:: BOOLEAN, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); - LsaSetForestTrustInformation(policyhandle.into_param().abi(), trusteddomainname, foresttrustinfo, checkonly.into_param().abi(), collisioninfo) + LsaSetForestTrustInformation(policyhandle.param().abi(), trusteddomainname, foresttrustinfo, checkonly.param().abi(), collisioninfo) } #[inline] pub unsafe fn LsaSetForestTrustInformation2(policyhandle: P0, trusteddomainname: *const LSA_UNICODE_STRING, highestrecordtype: LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo: *const LSA_FOREST_TRUST_INFORMATION2, checkonly: P1, collisioninfo: *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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 : super::super::super::Foundation:: BOOLEAN, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); - LsaSetForestTrustInformation2(policyhandle.into_param().abi(), trusteddomainname, highestrecordtype, foresttrustinfo, checkonly.into_param().abi(), collisioninfo) + LsaSetForestTrustInformation2(policyhandle.param().abi(), trusteddomainname, highestrecordtype, foresttrustinfo, checkonly.param().abi(), collisioninfo) } #[inline] pub unsafe fn LsaSetInformationPolicy(policyhandle: P0, informationclass: POLICY_INFORMATION_CLASS, buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), informationclass, buffer) + LsaSetInformationPolicy(policyhandle.param().abi(), informationclass, buffer) } #[inline] pub unsafe fn LsaSetTrustedDomainInfoByName(policyhandle: P0, trusteddomainname: *const LSA_UNICODE_STRING, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), trusteddomainname, informationclass, buffer) + LsaSetTrustedDomainInfoByName(policyhandle.param().abi(), trusteddomainname, informationclass, buffer) } #[inline] pub unsafe fn LsaSetTrustedDomainInformation(policyhandle: P0, trusteddomainsid: P1, informationclass: TRUSTED_INFORMATION_CLASS, buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LsaSetTrustedDomainInformation(policyhandle : LSA_HANDLE, trusteddomainsid : super::super::super::Foundation:: PSID, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); - LsaSetTrustedDomainInformation(policyhandle.into_param().abi(), trusteddomainsid.into_param().abi(), informationclass, buffer) + LsaSetTrustedDomainInformation(policyhandle.param().abi(), trusteddomainsid.param().abi(), informationclass, buffer) } #[inline] pub unsafe fn LsaStorePrivateData(policyhandle: P0, keyname: *const LSA_UNICODE_STRING, privatedata: Option<*const LSA_UNICODE_STRING>) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(policyhandle.into_param().abi(), keyname, core::mem::transmute(privatedata.unwrap_or(std::ptr::null()))) + LsaStorePrivateData(policyhandle.param().abi(), keyname, core::mem::transmute(privatedata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn LsaUnregisterPolicyChangeNotification(informationclass: POLICY_NOTIFICATION_INFORMATION_CLASS, notificationeventhandle: P0) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(informationclass, notificationeventhandle.into_param().abi()) + LsaUnregisterPolicyChangeNotification(informationclass, notificationeventhandle.param().abi()) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -801,20 +801,20 @@ pub unsafe fn QuerySecurityContextToken(phcontext: *const super::super::Credenti #[inline] pub unsafe fn QuerySecurityPackageInfoA(pszpackagename: P0) -> windows_core::Result<*mut SecPkgInfoA> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn QuerySecurityPackageInfoA(pszpackagename : windows_core::PCSTR, pppackageinfo : *mut *mut SecPkgInfoA) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - QuerySecurityPackageInfoA(pszpackagename.into_param().abi(), &mut result__).map(|| result__) + QuerySecurityPackageInfoA(pszpackagename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn QuerySecurityPackageInfoW(pszpackagename: P0) -> windows_core::Result<*mut SecPkgInfoW> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn QuerySecurityPackageInfoW(pszpackagename : windows_core::PCWSTR, pppackageinfo : *mut *mut SecPkgInfoW) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - QuerySecurityPackageInfoW(pszpackagename.into_param().abi(), &mut result__).map(|| result__) + QuerySecurityPackageInfoW(pszpackagename.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -840,20 +840,20 @@ pub unsafe fn RtlGenRandom(randombuffer: *mut core::ffi::c_void, randombufferlen #[inline] pub unsafe fn SLAcquireGenuineTicket(ppticketblob: *mut *mut core::ffi::c_void, pcbticketblob: *mut u32, pwsztemplateid: P0, pwszserverurl: P1, pwszclienttoken: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("slcext.dll" "system" fn SLAcquireGenuineTicket(ppticketblob : *mut *mut core::ffi::c_void, pcbticketblob : *mut u32, pwsztemplateid : windows_core::PCWSTR, pwszserverurl : windows_core::PCWSTR, pwszclienttoken : windows_core::PCWSTR) -> windows_core::HRESULT); - SLAcquireGenuineTicket(ppticketblob, pcbticketblob, pwsztemplateid.into_param().abi(), pwszserverurl.into_param().abi(), pwszclienttoken.into_param().abi()).ok() + SLAcquireGenuineTicket(ppticketblob, pcbticketblob, pwsztemplateid.param().abi(), pwszserverurl.param().abi(), pwszclienttoken.param().abi()).ok() } #[inline] pub unsafe fn SLActivateProduct(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID, cbappspecificdata: u32, pvappspecificdata: Option<*const core::ffi::c_void>, pactivationinfo: Option<*const SL_ACTIVATION_INFO_HEADER>, pwszproxyserver: P0, wproxyport: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, pproductskuid, cbappspecificdata, core::mem::transmute(pvappspecificdata.unwrap_or(std::ptr::null())), core::mem::transmute(pactivationinfo.unwrap_or(std::ptr::null())), pwszproxyserver.into_param().abi(), wproxyport).ok() + SLActivateProduct(hslc, pproductskuid, cbappspecificdata, core::mem::transmute(pvappspecificdata.unwrap_or(std::ptr::null())), core::mem::transmute(pactivationinfo.unwrap_or(std::ptr::null())), pwszproxyserver.param().abi(), wproxyport).ok() } #[inline] pub unsafe fn SLClose(hslc: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -863,36 +863,36 @@ pub unsafe fn SLClose(hslc: *const core::ffi::c_void) -> windows_core::Result<() #[inline] pub unsafe fn SLConsumeRight(hslc: *const core::ffi::c_void, pappid: *const windows_core::GUID, pproductskuid: Option<*const windows_core::GUID>, pwszrightname: P0, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, pappid, core::mem::transmute(pproductskuid.unwrap_or(std::ptr::null())), pwszrightname.into_param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + SLConsumeRight(hslc, pappid, core::mem::transmute(pproductskuid.unwrap_or(std::ptr::null())), pwszrightname.param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SLDepositOfflineConfirmationId(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID, pwszinstallationid: P0, pwszconfirmationid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hslc, pproductskuid, pwszinstallationid.into_param().abi(), pwszconfirmationid.into_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: P0, pwszconfirmationid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hslc, core::mem::transmute(pproductskuid.unwrap_or(std::ptr::null())), core::mem::transmute(pactivationinfo.unwrap_or(std::ptr::null())), pwszinstallationid.into_param().abi(), pwszconfirmationid.into_param().abi()).ok() + SLDepositOfflineConfirmationIdEx(hslc, core::mem::transmute(pproductskuid.unwrap_or(std::ptr::null())), core::mem::transmute(pactivationinfo.unwrap_or(std::ptr::null())), pwszinstallationid.param().abi(), pwszconfirmationid.param().abi()).ok() } #[inline] pub unsafe fn SLFireEvent(hslc: *const core::ffi::c_void, pwszeventid: P0, papplicationid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, pwszeventid.into_param().abi(), 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 { @@ -909,18 +909,18 @@ pub unsafe fn SLGenerateOfflineInstallationIdEx(hslc: *const core::ffi::c_void, #[inline] pub unsafe fn SLGetApplicationInformation(hslc: *const core::ffi::c_void, papplicationid: *const windows_core::GUID, pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, papplicationid, pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetApplicationInformation(hslc, papplicationid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() } #[inline] pub unsafe fn SLGetGenuineInformation(pqueryid: *const windows_core::GUID, pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pqueryid, pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetGenuineInformation(pqueryid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, 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<()> { @@ -941,70 +941,70 @@ pub unsafe fn SLGetLicenseFileId(hslc: *const core::ffi::c_void, pblicenseblob: #[inline] pub unsafe fn SLGetLicenseInformation(hslc: *const core::ffi::c_void, psllicenseid: *const windows_core::GUID, pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, psllicenseid, pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetLicenseInformation(hslc, psllicenseid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, 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: P0, pnstatuscount: *mut u32, pplicensingstatus: *mut *mut SL_LICENSING_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, core::mem::transmute(pappid.unwrap_or(std::ptr::null())), core::mem::transmute(pproductskuid.unwrap_or(std::ptr::null())), pwszrightname.into_param().abi(), pnstatuscount, pplicensingstatus).ok() + SLGetLicensingStatusInformation(hslc, core::mem::transmute(pappid.unwrap_or(std::ptr::null())), core::mem::transmute(pproductskuid.unwrap_or(std::ptr::null())), pwszrightname.param().abi(), pnstatuscount, pplicensingstatus).ok() } #[inline] pub unsafe fn SLGetPKeyId(hslc: *const core::ffi::c_void, pwszpkeyalgorithm: P0, pwszpkeystring: P1, pbpkeyspecificdata: Option<&[u8]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - SLGetPKeyId(hslc, pwszpkeyalgorithm.into_param().abi(), pwszpkeystring.into_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(|| 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(|| result__) } #[inline] pub unsafe fn SLGetPKeyInformation(hslc: *const core::ffi::c_void, ppkeyid: *const windows_core::GUID, pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, ppkeyid, pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetPKeyInformation(hslc, ppkeyid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() } #[inline] pub unsafe fn SLGetPolicyInformation(hslc: *const core::ffi::c_void, pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetPolicyInformation(hslc, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() } #[inline] pub unsafe fn SLGetPolicyInformationDWORD(hslc: *const core::ffi::c_void, pwszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SLGetPolicyInformationDWORD(hslc, pwszvaluename.into_param().abi(), &mut result__).map(|| result__) + SLGetPolicyInformationDWORD(hslc, pwszvaluename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SLGetProductSkuInformation(hslc: *const core::ffi::c_void, pproductskuid: *const windows_core::GUID, pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, pproductskuid, pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetProductSkuInformation(hslc, pproductskuid, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() } #[inline] pub unsafe fn SLGetReferralInformation(hslc: *const core::ffi::c_void, ereferraltype: SLREFERRALTYPE, pskuorappid: *const windows_core::GUID, pwszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SLGetReferralInformation(hslc, ereferraltype, pskuorappid, pwszvaluename.into_param().abi(), &mut result__).map(|| result__) + SLGetReferralInformation(hslc, ereferraltype, pskuorappid, pwszvaluename.param().abi(), &mut result__).map(|| 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<()> { @@ -1014,38 +1014,38 @@ pub unsafe fn SLGetSLIDList(hslc: *const core::ffi::c_void, equeryidtype: SLIDTY #[inline] pub unsafe fn SLGetServerStatus(pwszserverurl: P0, pwszacquisitiontype: P1, pwszproxyserver: P2, wproxyport: u16) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("slcext.dll" "system" fn SLGetServerStatus(pwszserverurl : windows_core::PCWSTR, pwszacquisitiontype : windows_core::PCWSTR, pwszproxyserver : windows_core::PCWSTR, wproxyport : u16, phrstatus : *mut windows_core::HRESULT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SLGetServerStatus(pwszserverurl.into_param().abi(), pwszacquisitiontype.into_param().abi(), pwszproxyserver.into_param().abi(), wproxyport, &mut result__).map(|| result__) + SLGetServerStatus(pwszserverurl.param().abi(), pwszacquisitiontype.param().abi(), pwszproxyserver.param().abi(), wproxyport, &mut result__).map(|| result__) } #[inline] pub unsafe fn SLGetServiceInformation(hslc: *const core::ffi::c_void, pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hslc, pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetServiceInformation(hslc, pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() } #[inline] pub unsafe fn SLGetWindowsInformation(pwszvaluename: P0, pedatatype: Option<*mut SLDATATYPE>, pcbvalue: *mut u32, ppbvalue: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetWindowsInformation(pwszvaluename : windows_core::PCWSTR, pedatatype : *mut SLDATATYPE, pcbvalue : *mut u32, ppbvalue : *mut *mut u8) -> windows_core::HRESULT); - SLGetWindowsInformation(pwszvaluename.into_param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() + SLGetWindowsInformation(pwszvaluename.param().abi(), core::mem::transmute(pedatatype.unwrap_or(std::ptr::null_mut())), pcbvalue, ppbvalue).ok() } #[inline] pub unsafe fn SLGetWindowsInformationDWORD(pwszvaluename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("slc.dll" "system" fn SLGetWindowsInformationDWORD(pwszvaluename : windows_core::PCWSTR, pdwvalue : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SLGetWindowsInformationDWORD(pwszvaluename.into_param().abi(), &mut result__).map(|| result__) + SLGetWindowsInformationDWORD(pwszvaluename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SLInstallLicense(hslc: *const core::ffi::c_void, pblicenseblob: &[u8]) -> windows_core::Result { @@ -1056,12 +1056,12 @@ pub unsafe fn SLInstallLicense(hslc: *const core::ffi::c_void, pblicenseblob: &[ #[inline] pub unsafe fn SLInstallProofOfPurchase(hslc: *const core::ffi::c_void, pwszpkeyalgorithm: P0, pwszpkeystring: P1, pbpkeyspecificdata: Option<&[u8]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - SLInstallProofOfPurchase(hslc, pwszpkeyalgorithm.into_param().abi(), pwszpkeystring.into_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(|| 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(|| 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<()> { @@ -1076,19 +1076,19 @@ pub unsafe fn SLOpen(phslc: *mut *mut core::ffi::c_void) -> windows_core::Result #[inline] pub unsafe fn SLQueryLicenseValueFromApp(valuename: P0, valuetype: Option<*mut u32>, databuffer: Option<*mut core::ffi::c_void>, datasize: u32, resultdatasize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(valuetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(databuffer.unwrap_or(std::ptr::null_mut())), datasize, resultdatasize).ok() + SLQueryLicenseValueFromApp(valuename.param().abi(), core::mem::transmute(valuetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(databuffer.unwrap_or(std::ptr::null_mut())), datasize, resultdatasize).ok() } #[inline] pub unsafe fn SLRegisterEvent(hslc: Option<*const core::ffi::c_void>, pwszeventid: P0, papplicationid: *const windows_core::GUID, hevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(std::ptr::null())), pwszeventid.into_param().abi(), papplicationid, hevent.into_param().abi()).ok() + SLRegisterEvent(core::mem::transmute(hslc.unwrap_or(std::ptr::null())), pwszeventid.param().abi(), papplicationid, hevent.param().abi()).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<()> { @@ -1098,10 +1098,10 @@ pub unsafe fn SLSetCurrentProductKey(hslc: *const core::ffi::c_void, pproductsku #[inline] pub unsafe fn SLSetGenuineInformation(pqueryid: *const windows_core::GUID, pwszvaluename: P0, edatatype: SLDATATYPE, pbvalue: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pqueryid, pwszvaluename.into_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() + 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<()> { @@ -1116,11 +1116,11 @@ pub unsafe fn SLUninstallProofOfPurchase(hslc: *const core::ffi::c_void, ppkeyid #[inline] pub unsafe fn SLUnregisterEvent(hslc: Option<*const core::ffi::c_void>, pwszeventid: P0, papplicationid: *const windows_core::GUID, hevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(std::ptr::null())), pwszeventid.into_param().abi(), papplicationid, hevent.into_param().abi()).ok() + SLUnregisterEvent(core::mem::transmute(hslc.unwrap_or(std::ptr::null())), pwszeventid.param().abi(), papplicationid, hevent.param().abi()).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -1147,20 +1147,20 @@ pub unsafe fn SaslGetContextOption(contexthandle: *const super::super::Credentia #[inline] pub unsafe fn SaslGetProfilePackageA(profilename: P0) -> windows_core::Result<*mut SecPkgInfoA> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SaslGetProfilePackageA(profilename : windows_core::PCSTR, packageinfo : *mut *mut SecPkgInfoA) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SaslGetProfilePackageA(profilename.into_param().abi(), &mut result__).map(|| result__) + SaslGetProfilePackageA(profilename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SaslGetProfilePackageW(profilename: P0) -> windows_core::Result<*mut SecPkgInfoW> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SaslGetProfilePackageW(profilename : windows_core::PCWSTR, packageinfo : *mut *mut SecPkgInfoW) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SaslGetProfilePackageW(profilename.into_param().abi(), &mut result__).map(|| result__) + SaslGetProfilePackageW(profilename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SaslIdentifyPackageA(pinput: *const SecBufferDesc) -> windows_core::Result<*mut SecPkgInfoA> { @@ -1178,19 +1178,19 @@ pub unsafe fn SaslIdentifyPackageW(pinput: *const SecBufferDesc) -> windows_core #[inline] pub unsafe fn SaslInitializeSecurityContextA(phcredential: Option<*const super::super::Credentials::SecHandle>, phcontext: Option<*const super::super::Credentials::SecHandle>, psztargetname: P0, fcontextreq: ISC_REQ_FLAGS, reserved1: u32, targetdatarep: u32, pinput: Option<*const SecBufferDesc>, reserved2: u32, phnewcontext: Option<*mut super::super::Credentials::SecHandle>, poutput: Option<*mut SecBufferDesc>, pfcontextattr: *mut u32, ptsexpiry: Option<*mut i64>) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SaslInitializeSecurityContextA(phcredential : *const super::super::Credentials:: SecHandle, phcontext : *const super::super::Credentials:: SecHandle, psztargetname : windows_core::PCSTR, fcontextreq : ISC_REQ_FLAGS, reserved1 : u32, targetdatarep : u32, pinput : *const SecBufferDesc, reserved2 : u32, phnewcontext : *mut super::super::Credentials:: SecHandle, poutput : *mut SecBufferDesc, pfcontextattr : *mut u32, ptsexpiry : *mut i64) -> windows_core::HRESULT); - SaslInitializeSecurityContextA(core::mem::transmute(phcredential.unwrap_or(std::ptr::null())), core::mem::transmute(phcontext.unwrap_or(std::ptr::null())), psztargetname.into_param().abi(), fcontextreq, reserved1, targetdatarep, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(phnewcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poutput.unwrap_or(std::ptr::null_mut())), pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))) + SaslInitializeSecurityContextA(core::mem::transmute(phcredential.unwrap_or(std::ptr::null())), core::mem::transmute(phcontext.unwrap_or(std::ptr::null())), psztargetname.param().abi(), fcontextreq, reserved1, targetdatarep, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(phnewcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poutput.unwrap_or(std::ptr::null_mut())), pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] pub unsafe fn SaslInitializeSecurityContextW(phcredential: Option<*const super::super::Credentials::SecHandle>, phcontext: Option<*const super::super::Credentials::SecHandle>, psztargetname: P0, fcontextreq: ISC_REQ_FLAGS, reserved1: u32, targetdatarep: u32, pinput: Option<*const SecBufferDesc>, reserved2: u32, phnewcontext: Option<*mut super::super::Credentials::SecHandle>, poutput: Option<*mut SecBufferDesc>, pfcontextattr: *mut u32, ptsexpiry: Option<*mut i64>) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SaslInitializeSecurityContextW(phcredential : *const super::super::Credentials:: SecHandle, phcontext : *const super::super::Credentials:: SecHandle, psztargetname : windows_core::PCWSTR, fcontextreq : ISC_REQ_FLAGS, reserved1 : u32, targetdatarep : u32, pinput : *const SecBufferDesc, reserved2 : u32, phnewcontext : *mut super::super::Credentials:: SecHandle, poutput : *mut SecBufferDesc, pfcontextattr : *mut u32, ptsexpiry : *mut i64) -> windows_core::HRESULT); - SaslInitializeSecurityContextW(core::mem::transmute(phcredential.unwrap_or(std::ptr::null())), core::mem::transmute(phcontext.unwrap_or(std::ptr::null())), psztargetname.into_param().abi(), fcontextreq, reserved1, targetdatarep, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(phnewcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poutput.unwrap_or(std::ptr::null_mut())), pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))) + SaslInitializeSecurityContextW(core::mem::transmute(phcredential.unwrap_or(std::ptr::null())), core::mem::transmute(phcontext.unwrap_or(std::ptr::null())), psztargetname.param().abi(), fcontextreq, reserved1, targetdatarep, core::mem::transmute(pinput.unwrap_or(std::ptr::null())), reserved2, core::mem::transmute(phnewcontext.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poutput.unwrap_or(std::ptr::null_mut())), pfcontextattr, core::mem::transmute(ptsexpiry.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -1201,10 +1201,10 @@ pub unsafe fn SaslSetContextOption(contexthandle: *const super::super::Credentia #[inline] pub unsafe fn SendSAS(asuser: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sas.dll" "system" fn SendSAS(asuser : super::super::super::Foundation:: BOOL)); - SendSAS(asuser.into_param().abi()) + SendSAS(asuser.param().abi()) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -1246,18 +1246,18 @@ pub unsafe fn SslDeserializeCertificateStore(serializedcertificatestore: super:: #[inline] pub unsafe fn SslEmptyCacheA(psztargetname: P0, dwflags: u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags) + SslEmptyCacheA(psztargetname.param().abi(), dwflags) } #[inline] pub unsafe fn SslEmptyCacheW(psztargetname: P0, dwflags: u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags) + SslEmptyCacheW(psztargetname.param().abi(), dwflags) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -1313,12 +1313,12 @@ pub unsafe fn SspiEncodeAuthIdentityAsStrings(pauthidentity: *const core::ffi::c #[inline] pub unsafe fn SspiEncodeStringsAsAuthIdentity(pszusername: P0, pszdomainname: P1, pszpackedcredentialsstring: P2, ppauthidentity: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SspiEncodeStringsAsAuthIdentity(pszusername : windows_core::PCWSTR, pszdomainname : windows_core::PCWSTR, pszpackedcredentialsstring : windows_core::PCWSTR, ppauthidentity : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - SspiEncodeStringsAsAuthIdentity(pszusername.into_param().abi(), pszdomainname.into_param().abi(), pszpackedcredentialsstring.into_param().abi(), ppauthidentity).ok() + SspiEncodeStringsAsAuthIdentity(pszusername.param().abi(), pszdomainname.param().abi(), pszpackedcredentialsstring.param().abi(), ppauthidentity).ok() } #[inline] pub unsafe fn SspiEncryptAuthIdentity(authdata: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1333,10 +1333,10 @@ pub unsafe fn SspiEncryptAuthIdentityEx(options: u32, authdata: *mut core::ffi:: #[inline] pub unsafe fn SspiExcludePackage(authidentity: Option<*const core::ffi::c_void>, pszpackagename: P0, ppnewauthidentity: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SspiExcludePackage(authidentity : *const core::ffi::c_void, pszpackagename : windows_core::PCWSTR, ppnewauthidentity : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - SspiExcludePackage(core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), pszpackagename.into_param().abi(), ppnewauthidentity).ok() + SspiExcludePackage(core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), pszpackagename.param().abi(), ppnewauthidentity).ok() } #[inline] pub unsafe fn SspiFreeAuthIdentity(authdata: Option<*const core::ffi::c_void>) { @@ -1346,11 +1346,11 @@ pub unsafe fn SspiFreeAuthIdentity(authdata: Option<*const core::ffi::c_void>) { #[inline] pub unsafe fn SspiGetTargetHostName(psztargetname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("secur32.dll" "system" fn SspiGetTargetHostName(psztargetname : windows_core::PCWSTR, pszhostname : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SspiGetTargetHostName(psztargetname.into_param().abi(), &mut result__).map(|| result__) + SspiGetTargetHostName(psztargetname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SspiIsAuthIdentityEncrypted(encryptedauthdata: *const core::ffi::c_void) -> super::super::super::Foundation::BOOLEAN { @@ -1375,36 +1375,36 @@ pub unsafe fn SspiMarshalAuthIdentity(authidentity: *const core::ffi::c_void, au #[inline] pub unsafe fn SspiPrepareForCredRead(authidentity: *const core::ffi::c_void, psztargetname: P0, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut windows_core::PCWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(authidentity, psztargetname.into_param().abi(), pcredmancredentialtype, ppszcredmantargetname).ok() + SspiPrepareForCredRead(authidentity, psztargetname.param().abi(), pcredmancredentialtype, ppszcredmantargetname).ok() } #[inline] pub unsafe fn SspiPrepareForCredWrite(authidentity: *const core::ffi::c_void, psztargetname: P0, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut windows_core::PCWSTR, ppszcredmanusername: *mut windows_core::PCWSTR, ppcredentialblob: *mut *mut u8, pcredentialblobsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(authidentity, psztargetname.into_param().abi(), pcredmancredentialtype, ppszcredmantargetname, ppszcredmanusername, ppcredentialblob, pcredentialblobsize).ok() + SspiPrepareForCredWrite(authidentity, psztargetname.param().abi(), pcredmancredentialtype, ppszcredmantargetname, ppszcredmanusername, ppcredentialblob, pcredentialblobsize).ok() } #[inline] pub unsafe fn SspiPromptForCredentialsA(psztargetname: P0, puiinfo: Option<*const core::ffi::c_void>, dwautherror: u32, pszpackage: P1, pinputauthidentity: Option<*const core::ffi::c_void>, ppauthidentity: *mut *mut core::ffi::c_void, pfsave: Option<*mut i32>, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), dwautherror, pszpackage.into_param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(std::ptr::null())), ppauthidentity, core::mem::transmute(pfsave.unwrap_or(std::ptr::null_mut())), dwflags) + SspiPromptForCredentialsA(psztargetname.param().abi(), core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), dwautherror, pszpackage.param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(std::ptr::null())), ppauthidentity, core::mem::transmute(pfsave.unwrap_or(std::ptr::null_mut())), dwflags) } #[inline] pub unsafe fn SspiPromptForCredentialsW(psztargetname: P0, puiinfo: Option<*const core::ffi::c_void>, dwautherror: u32, pszpackage: P1, pinputauthidentity: Option<*const core::ffi::c_void>, ppauthidentity: *mut *mut core::ffi::c_void, pfsave: Option<*mut i32>, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), dwautherror, pszpackage.into_param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(std::ptr::null())), ppauthidentity, core::mem::transmute(pfsave.unwrap_or(std::ptr::null_mut())), dwflags) + SspiPromptForCredentialsW(psztargetname.param().abi(), core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), dwautherror, pszpackage.param().abi(), core::mem::transmute(pinputauthidentity.unwrap_or(std::ptr::null())), ppauthidentity, core::mem::transmute(pfsave.unwrap_or(std::ptr::null_mut())), dwflags) } #[inline] pub unsafe fn SspiSetChannelBindingFlags(pbindings: *mut SecPkgContext_Bindings, flags: u32) -> windows_core::Result<()> { @@ -1434,18 +1434,18 @@ pub unsafe fn TokenBindingDeleteAllBindings() -> windows_core::Result<()> { #[inline] pub unsafe fn TokenBindingDeleteBinding(targeturl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingDeleteBinding(targeturl : windows_core::PCWSTR) -> windows_core::HRESULT); - TokenBindingDeleteBinding(targeturl.into_param().abi()).ok() + TokenBindingDeleteBinding(targeturl.param().abi()).ok() } #[inline] pub unsafe fn TokenBindingGenerateBinding(keytype: TOKENBINDING_KEY_PARAMETERS_TYPE, targeturl: P0, 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: Option<*mut *mut TOKENBINDING_RESULT_DATA>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(keytype, targeturl.into_param().abi(), bindingtype, tlsekm, tlsekmsize, extensionformat, extensiondata, tokenbinding, tokenbindingsize, core::mem::transmute(resultdata.unwrap_or(std::ptr::null_mut()))).ok() + TokenBindingGenerateBinding(keytype, targeturl.param().abi(), bindingtype, tlsekm, tlsekmsize, extensionformat, extensiondata, tokenbinding, tokenbindingsize, core::mem::transmute(resultdata.unwrap_or(std::ptr::null_mut()))).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> { @@ -1456,11 +1456,11 @@ pub unsafe fn TokenBindingGenerateID(keytype: TOKENBINDING_KEY_PARAMETERS_TYPE, #[inline] pub unsafe fn TokenBindingGenerateIDForUri(keytype: TOKENBINDING_KEY_PARAMETERS_TYPE, targeturi: P0) -> windows_core::Result<*mut TOKENBINDING_RESULT_DATA> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - TokenBindingGenerateIDForUri(keytype, targeturi.into_param().abi(), &mut result__).map(|| result__) + TokenBindingGenerateIDForUri(keytype, targeturi.param().abi(), &mut result__).map(|| 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<()> { @@ -1493,18 +1493,18 @@ pub unsafe fn TokenBindingVerifyMessage(tokenbindingmessage: *const core::ffi::c #[inline] pub unsafe fn TranslateNameA(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: windows_core::PSTR, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + 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) -> super::super::super::Foundation:: BOOLEAN); - TranslateNameA(lpaccountname.into_param().abi(), accountnameformat, desirednameformat, core::mem::transmute(lptranslatedname), nsize) + TranslateNameA(lpaccountname.param().abi(), accountnameformat, desirednameformat, core::mem::transmute(lptranslatedname), nsize) } #[inline] pub unsafe fn TranslateNameW(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: windows_core::PWSTR, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + 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) -> super::super::super::Foundation:: BOOLEAN); - TranslateNameW(lpaccountname.into_param().abi(), accountnameformat, desirednameformat, core::mem::transmute(lptranslatedname), nsize) + TranslateNameW(lpaccountname.param().abi(), accountnameformat, desirednameformat, core::mem::transmute(lptranslatedname), nsize) } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -1518,9 +1518,9 @@ windows_core::imp::interface_hierarchy!(ICcgDomainAuthCredentials, windows_core: impl ICcgDomainAuthCredentials { pub unsafe fn GetPasswordCredentials(&self, plugininput: P0, domainname: *mut windows_core::PWSTR, username: *mut windows_core::PWSTR, password: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPasswordCredentials)(windows_core::Interface::as_raw(self), plugininput.into_param().abi(), domainname, username, password).ok() + (windows_core::Interface::vtable(self).GetPasswordCredentials)(windows_core::Interface::as_raw(self), plugininput.param().abi(), domainname, username, password).ok() } } #[repr(C)] 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 1d97e489c1..ee3d708b59 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 @@ -2,40 +2,40 @@ #[inline] pub unsafe fn CreateSecurityPage(psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("aclui.dll" "system" fn CreateSecurityPage(psi : * mut core::ffi::c_void) -> super::super::super::UI::Controls:: HPROPSHEETPAGE); - let result__ = CreateSecurityPage(psi.into_param().abi()); + let result__ = CreateSecurityPage(psi.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EditSecurity(hwndowner: P0, psi: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndowner.into_param().abi(), psi.into_param().abi()).ok() + EditSecurity(hwndowner.param().abi(), psi.param().abi()).ok() } #[inline] pub unsafe fn EditSecurityAdvanced(hwndowner: P0, psi: P1, usipage: SI_PAGE_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndowner.into_param().abi(), psi.into_param().abi(), usipage).ok() + EditSecurityAdvanced(hwndowner.param().abi(), psi.param().abi(), usipage).ok() } windows_core::imp::define_interface!(IEffectivePermission, IEffectivePermission_Vtbl, 0x3853dc76_9f35_407c_88a1_d19344365fbc); windows_core::imp::interface_hierarchy!(IEffectivePermission, windows_core::IUnknown); impl IEffectivePermission { pub unsafe fn GetEffectivePermission(&self, pguidobjecttype: *const windows_core::GUID, pusersid: P0, pszservername: P1, psd: P2, ppobjecttypelist: *mut *mut super::super::OBJECT_TYPE_LIST, pcobjecttypelistlength: *mut u32, ppgrantedaccesslist: *mut *mut u32, pcgrantedaccesslistlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEffectivePermission)(windows_core::Interface::as_raw(self), pguidobjecttype, pusersid.into_param().abi(), pszservername.into_param().abi(), psd.into_param().abi(), ppobjecttypelist, pcobjecttypelistlength, ppgrantedaccesslist, pcgrantedaccesslistlength).ok() + (windows_core::Interface::vtable(self).GetEffectivePermission)(windows_core::Interface::as_raw(self), pguidobjecttype, pusersid.param().abi(), pszservername.param().abi(), psd.param().abi(), ppobjecttypelist, pcobjecttypelistlength, ppgrantedaccesslist, pcgrantedaccesslistlength).ok() } } #[repr(C)] @@ -64,15 +64,15 @@ impl IEffectivePermission2 { peffpermresultlists: *mut EFFPERM_RESULT_LIST, ) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { (windows_core::Interface::vtable(self).ComputeEffectivePermissionWithSecondarySecurity)( windows_core::Interface::as_raw(self), - psid.into_param().abi(), - pdevicesid.into_param().abi(), - pszservername.into_param().abi(), + psid.param().abi(), + pdevicesid.param().abi(), + pszservername.param().abi(), psecurityobjects, dwsecurityobjectcount, core::mem::transmute(pusergroups.unwrap_or(std::ptr::null())), @@ -101,15 +101,15 @@ impl ISecurityInformation { } pub unsafe fn GetSecurity(&self, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), requestedinformation, ppsecuritydescriptor, fdefault.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), requestedinformation, ppsecuritydescriptor, fdefault.param().abi()).ok() } pub unsafe fn SetSecurity(&self, securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), securityinformation, psecuritydescriptor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), securityinformation, psecuritydescriptor.param().abi()).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), pguidobjecttype, dwflags, ppaccess, pcaccesses, pidefaultaccess).ok() @@ -123,9 +123,9 @@ impl ISecurityInformation { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn PropertySheetPageCallback(&self, hwnd: P0, umsg: super::super::super::UI::Controls::PSPCB_MESSAGE, upage: SI_PAGE_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PropertySheetPageCallback)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), umsg, upage).ok() + (windows_core::Interface::vtable(self).PropertySheetPageCallback)(windows_core::Interface::as_raw(self), hwnd.param().abi(), umsg, upage).ok() } } #[repr(C)] @@ -172,9 +172,9 @@ impl ISecurityInformation3 { } pub unsafe fn OpenElevatedEditor(&self, hwnd: P0, upage: SI_PAGE_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenElevatedEditor)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), upage).ok() + (windows_core::Interface::vtable(self).OpenElevatedEditor)(windows_core::Interface::as_raw(self), hwnd.param().abi(), upage).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 0b3d3fa38b..095dfa5acd 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs @@ -3,29 +3,29 @@ pub mod UI; #[inline] pub unsafe fn AuthzAccessCheck(flags: AUTHZ_ACCESS_CHECK_FLAGS, hauthzclientcontext: P0, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: P1, psecuritydescriptor: P2, optionalsecuritydescriptorarray: Option<&[super::PSECURITY_DESCRIPTOR]>, preply: *mut AUTHZ_ACCESS_REPLY, phaccesscheckresults: Option<*mut AUTHZ_ACCESS_CHECK_RESULTS_HANDLE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(flags, hauthzclientcontext.into_param().abi(), prequest, hauditevent.into_param().abi(), psecuritydescriptor.into_param().abi(), 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, core::mem::transmute(phaccesscheckresults.unwrap_or(std::ptr::null_mut()))).ok() + AuthzAccessCheck(flags, hauthzclientcontext.param().abi(), prequest, hauditevent.param().abi(), psecuritydescriptor.param().abi(), 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, core::mem::transmute(phaccesscheckresults.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AuthzAddSidsToContext(hauthzclientcontext: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hauthzclientcontext.into_param().abi(), core::mem::transmute(sids.unwrap_or(std::ptr::null())), sidcount, core::mem::transmute(restrictedsids.unwrap_or(std::ptr::null())), restrictedsidcount, phnewauthzclientcontext).ok() + AuthzAddSidsToContext(hauthzclientcontext.param().abi(), core::mem::transmute(sids.unwrap_or(std::ptr::null())), sidcount, core::mem::transmute(restrictedsids.unwrap_or(std::ptr::null())), restrictedsidcount, phnewauthzclientcontext).ok() } #[inline] pub unsafe fn AuthzCachedAccessCheck(flags: u32, haccesscheckresults: P0, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: P1, preply: *mut AUTHZ_ACCESS_REPLY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(flags, haccesscheckresults.into_param().abi(), prequest, hauditevent.into_param().abi(), preply).ok() + AuthzCachedAccessCheck(flags, haccesscheckresults.param().abi(), prequest, hauditevent.param().abi(), preply).ok() } #[inline] pub unsafe fn AuthzEnumerateSecurityEventSources(dwflags: u32, buffer: *mut AUTHZ_SOURCE_SCHEMA_REGISTRATION, pdwcount: *mut u32, pdwlength: *mut u32) -> windows_core::Result<()> { @@ -35,19 +35,19 @@ pub unsafe fn AuthzEnumerateSecurityEventSources(dwflags: u32, buffer: *mut AUTH #[inline] pub unsafe fn AuthzEvaluateSacl(authzclientcontext: P0, prequest: *const AUTHZ_ACCESS_REQUEST, sacl: *const super::ACL, grantedaccess: u32, accessgranted: P1, pbgenerateaudit: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(authzclientcontext.into_param().abi(), prequest, sacl, grantedaccess, accessgranted.into_param().abi(), pbgenerateaudit) + AuthzEvaluateSacl(authzclientcontext.param().abi(), prequest, sacl, grantedaccess, accessgranted.param().abi(), pbgenerateaudit) } #[inline] pub unsafe fn AuthzFreeAuditEvent(hauditevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzFreeAuditEvent(hauditevent : AUTHZ_AUDIT_EVENT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzFreeAuditEvent(hauditevent.into_param().abi()).ok() + AuthzFreeAuditEvent(hauditevent.param().abi()).ok() } #[inline] pub unsafe fn AuthzFreeCentralAccessPolicyCache() -> windows_core::Result<()> { @@ -57,94 +57,94 @@ pub unsafe fn AuthzFreeCentralAccessPolicyCache() -> windows_core::Result<()> { #[inline] pub unsafe fn AuthzFreeContext(hauthzclientcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzFreeContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); - AuthzFreeContext(hauthzclientcontext.into_param().abi()).ok() + AuthzFreeContext(hauthzclientcontext.param().abi()).ok() } #[inline] pub unsafe fn AuthzFreeHandle(haccesscheckresults: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzFreeHandle(haccesscheckresults : AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> super::super::Foundation:: BOOL); - AuthzFreeHandle(haccesscheckresults.into_param().abi()).ok() + AuthzFreeHandle(haccesscheckresults.param().abi()).ok() } #[inline] pub unsafe fn AuthzFreeResourceManager(hauthzresourcemanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzFreeResourceManager(hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); - AuthzFreeResourceManager(hauthzresourcemanager.into_param().abi()).ok() + AuthzFreeResourceManager(hauthzresourcemanager.param().abi()).ok() } #[inline] pub unsafe fn AuthzGetInformationFromContext(hauthzclientcontext: P0, infoclass: AUTHZ_CONTEXT_INFORMATION_CLASS, buffersize: u32, psizerequired: *mut u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hauthzclientcontext.into_param().abi(), infoclass, buffersize, psizerequired, buffer).ok() + AuthzGetInformationFromContext(hauthzclientcontext.param().abi(), infoclass, buffersize, psizerequired, buffer).ok() } #[inline] pub unsafe fn AuthzInitializeCompoundContext(usercontext: P0, devicecontext: P1, phcompoundcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(usercontext.into_param().abi(), devicecontext.into_param().abi(), phcompoundcontext).ok() + AuthzInitializeCompoundContext(usercontext.param().abi(), devicecontext.param().abi(), phcompoundcontext).ok() } #[inline] pub unsafe fn AuthzInitializeContextFromAuthzContext(flags: u32, hauthzclientcontext: P0, pexpirationtime: Option<*const i64>, identifier: super::super::Foundation::LUID, dynamicgroupargs: *const core::ffi::c_void, phnewauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(flags, hauthzclientcontext.into_param().abi(), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(identifier), dynamicgroupargs, phnewauthzclientcontext).ok() + AuthzInitializeContextFromAuthzContext(flags, hauthzclientcontext.param().abi(), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(identifier), dynamicgroupargs, phnewauthzclientcontext).ok() } #[inline] pub unsafe fn AuthzInitializeContextFromSid(flags: u32, usersid: P0, hauthzresourcemanager: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromSid(flags : u32, usersid : super::super::Foundation:: 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(flags, usersid.into_param().abi(), hauthzresourcemanager.into_param().abi(), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(std::ptr::null())), phauthzclientcontext).ok() + AuthzInitializeContextFromSid(flags, usersid.param().abi(), hauthzresourcemanager.param().abi(), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(std::ptr::null())), phauthzclientcontext).ok() } #[inline] pub unsafe fn AuthzInitializeContextFromToken(flags: u32, tokenhandle: P0, hauthzresourcemanager: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(flags, tokenhandle.into_param().abi(), hauthzresourcemanager.into_param().abi(), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(std::ptr::null())), phauthzclientcontext).ok() + AuthzInitializeContextFromToken(flags, tokenhandle.param().abi(), hauthzresourcemanager.param().abi(), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(identifier), core::mem::transmute(dynamicgroupargs.unwrap_or(std::ptr::null())), phauthzclientcontext).ok() } #[inline] pub unsafe fn AuthzInitializeObjectAccessAuditEvent(flags: AUTHZ_INITIALIZE_OBJECT_ACCESS_AUDIT_EVENT_FLAGS, hauditeventtype: P0, szoperationtype: P1, szobjecttype: P2, szobjectname: P3, szadditionalinfo: P4, phauditevent: *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(flags, hauditeventtype.into_param().abi(), szoperationtype.into_param().abi(), szobjecttype.into_param().abi(), szobjectname.into_param().abi(), szadditionalinfo.into_param().abi(), phauditevent, dwadditionalparametercount).ok() + AuthzInitializeObjectAccessAuditEvent(flags, hauditeventtype.param().abi(), szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), phauditevent, dwadditionalparametercount).ok() } #[inline] pub unsafe fn AuthzInitializeObjectAccessAuditEvent2(flags: u32, hauditeventtype: P0, szoperationtype: P1, szobjecttype: P2, szobjectname: P3, szadditionalinfo: P4, szadditionalinfo2: P5, phauditevent: *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(flags, hauditeventtype.into_param().abi(), szoperationtype.into_param().abi(), szobjecttype.into_param().abi(), szobjectname.into_param().abi(), szadditionalinfo.into_param().abi(), szadditionalinfo2.into_param().abi(), phauditevent, dwadditionalparametercount).ok() + AuthzInitializeObjectAccessAuditEvent2(flags, hauditeventtype.param().abi(), szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), szadditionalinfo2.param().abi(), phauditevent, dwadditionalparametercount).ok() } #[inline] pub unsafe fn AuthzInitializeRemoteResourceManager(prpcinitinfo: *const AUTHZ_RPC_INIT_INFO_CLIENT, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { @@ -154,10 +154,10 @@ pub unsafe fn AuthzInitializeRemoteResourceManager(prpcinitinfo: *const AUTHZ_RP #[inline] pub unsafe fn AuthzInitializeResourceManager(flags: u32, pfndynamicaccesscheck: PFN_AUTHZ_DYNAMIC_ACCESS_CHECK, pfncomputedynamicgroups: PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS, pfnfreedynamicgroups: PFN_AUTHZ_FREE_DYNAMIC_GROUPS, szresourcemanagername: P0, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(flags, pfndynamicaccesscheck, pfncomputedynamicgroups, pfnfreedynamicgroups, szresourcemanagername.into_param().abi(), phauthzresourcemanager).ok() + AuthzInitializeResourceManager(flags, pfndynamicaccesscheck, pfncomputedynamicgroups, pfnfreedynamicgroups, szresourcemanagername.param().abi(), phauthzresourcemanager).ok() } #[inline] pub unsafe fn AuthzInitializeResourceManagerEx(flags: AUTHZ_RESOURCE_MANAGER_FLAGS, pauthzinitinfo: Option<*const AUTHZ_INIT_INFO>, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { @@ -172,36 +172,36 @@ pub unsafe fn AuthzInstallSecurityEventSource(dwflags: u32, pregistration: *cons #[inline] pub unsafe fn AuthzModifyClaims(hauthzclientcontext: P0, claimclass: AUTHZ_CONTEXT_INFORMATION_CLASS, pclaimoperations: *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pclaims: Option<*const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hauthzclientcontext.into_param().abi(), claimclass, pclaimoperations, core::mem::transmute(pclaims.unwrap_or(std::ptr::null()))).ok() + AuthzModifyClaims(hauthzclientcontext.param().abi(), claimclass, pclaimoperations, core::mem::transmute(pclaims.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AuthzModifySecurityAttributes(hauthzclientcontext: P0, poperations: *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pattributes: Option<*const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hauthzclientcontext.into_param().abi(), poperations, core::mem::transmute(pattributes.unwrap_or(std::ptr::null()))).ok() + AuthzModifySecurityAttributes(hauthzclientcontext.param().abi(), poperations, core::mem::transmute(pattributes.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AuthzModifySids(hauthzclientcontext: P0, sidclass: AUTHZ_CONTEXT_INFORMATION_CLASS, psidoperations: *const AUTHZ_SID_OPERATION, psids: Option<*const super::TOKEN_GROUPS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hauthzclientcontext.into_param().abi(), sidclass, psidoperations, core::mem::transmute(psids.unwrap_or(std::ptr::null()))).ok() + AuthzModifySids(hauthzclientcontext.param().abi(), sidclass, psidoperations, core::mem::transmute(psids.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn AuthzOpenObjectAudit(flags: u32, hauthzclientcontext: P0, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: P1, psecuritydescriptor: P2, optionalsecuritydescriptorarray: Option<&[super::PSECURITY_DESCRIPTOR]>, preply: *const AUTHZ_ACCESS_REPLY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(flags, hauthzclientcontext.into_param().abi(), prequest, hauditevent.into_param().abi(), psecuritydescriptor.into_param().abi(), 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() + AuthzOpenObjectAudit(flags, hauthzclientcontext.param().abi(), prequest, hauditevent.param().abi(), psecuritydescriptor.param().abi(), 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] @@ -212,53 +212,53 @@ pub unsafe fn AuthzRegisterCapChangeNotification(phcapchangesubscription: *mut A #[inline] pub unsafe fn AuthzRegisterSecurityEventSource(dwflags: u32, szeventsourcename: P0, pheventprovider: *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, szeventsourcename.into_param().abi(), pheventprovider).ok() + AuthzRegisterSecurityEventSource(dwflags, szeventsourcename.param().abi(), pheventprovider).ok() } #[inline] pub unsafe fn AuthzReportSecurityEvent(dwflags: u32, heventprovider: P0, dwauditid: u32, pusersid: P1, dwcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("authz.dll" "cdecl" fn AuthzReportSecurityEvent(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super::super::Foundation:: PSID, dwcount : u32) -> super::super::Foundation:: BOOL); - AuthzReportSecurityEvent(dwflags, heventprovider.into_param().abi(), dwauditid, pusersid.into_param().abi(), dwcount).ok() + AuthzReportSecurityEvent(dwflags, heventprovider.param().abi(), dwauditid, pusersid.param().abi(), dwcount).ok() } #[inline] pub unsafe fn AuthzReportSecurityEventFromParams(dwflags: u32, heventprovider: P0, dwauditid: u32, pusersid: P1, pparams: *const AUDIT_PARAMS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzReportSecurityEventFromParams(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super::super::Foundation:: PSID, pparams : *const AUDIT_PARAMS) -> super::super::Foundation:: BOOL); - AuthzReportSecurityEventFromParams(dwflags, heventprovider.into_param().abi(), dwauditid, pusersid.into_param().abi(), pparams).ok() + AuthzReportSecurityEventFromParams(dwflags, heventprovider.param().abi(), dwauditid, pusersid.param().abi(), pparams).ok() } #[inline] pub unsafe fn AuthzSetAppContainerInformation(hauthzclientcontext: P0, pappcontainersid: P1, pcapabilitysids: Option<&[super::SID_AND_ATTRIBUTES]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzSetAppContainerInformation(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, pappcontainersid : super::super::Foundation:: PSID, capabilitycount : u32, pcapabilitysids : *const super:: SID_AND_ATTRIBUTES) -> super::super::Foundation:: BOOL); - AuthzSetAppContainerInformation(hauthzclientcontext.into_param().abi(), pappcontainersid.into_param().abi(), 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.param().abi(), pappcontainersid.param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzUninstallSecurityEventSource(dwflags : u32, szeventsourcename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AuthzUninstallSecurityEventSource(dwflags, szeventsourcename.into_param().abi()).ok() + AuthzUninstallSecurityEventSource(dwflags, szeventsourcename.param().abi()).ok() } #[inline] pub unsafe fn AuthzUnregisterCapChangeNotification(hcapchangesubscription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("authz.dll" "system" fn AuthzUnregisterCapChangeNotification(hcapchangesubscription : AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE) -> super::super::Foundation:: BOOL); - AuthzUnregisterCapChangeNotification(hcapchangesubscription.into_param().abi()).ok() + AuthzUnregisterCapChangeNotification(hcapchangesubscription.param().abi()).ok() } #[inline] pub unsafe fn AuthzUnregisterSecurityEventSource(dwflags: u32, pheventprovider: *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> windows_core::Result<()> { @@ -268,34 +268,34 @@ pub unsafe fn AuthzUnregisterSecurityEventSource(dwflags: u32, pheventprovider: #[inline] pub unsafe fn BuildExplicitAccessWithNameA(pexplicitaccess: *mut EXPLICIT_ACCESS_A, ptrusteename: P0, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: super::ACE_FLAGS) where - P0: windows_core::IntoParam, + P0: 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(pexplicitaccess, ptrusteename.into_param().abi(), accesspermissions, accessmode, inheritance) + BuildExplicitAccessWithNameA(pexplicitaccess, ptrusteename.param().abi(), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildExplicitAccessWithNameW(pexplicitaccess: *mut EXPLICIT_ACCESS_W, ptrusteename: P0, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: super::ACE_FLAGS) where - P0: windows_core::IntoParam, + P0: 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(pexplicitaccess, ptrusteename.into_param().abi(), accesspermissions, accessmode, inheritance) + BuildExplicitAccessWithNameW(pexplicitaccess, ptrusteename.param().abi(), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildImpersonateExplicitAccessWithNameA(pexplicitaccess: *mut EXPLICIT_ACCESS_A, ptrusteename: P0, ptrustee: Option<*const TRUSTEE_A>, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: u32) where - P0: windows_core::IntoParam, + P0: 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(pexplicitaccess, ptrusteename.into_param().abi(), core::mem::transmute(ptrustee.unwrap_or(std::ptr::null())), accesspermissions, accessmode, inheritance) + BuildImpersonateExplicitAccessWithNameA(pexplicitaccess, ptrusteename.param().abi(), core::mem::transmute(ptrustee.unwrap_or(std::ptr::null())), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildImpersonateExplicitAccessWithNameW(pexplicitaccess: *mut EXPLICIT_ACCESS_W, ptrusteename: P0, ptrustee: Option<*const TRUSTEE_W>, accesspermissions: u32, accessmode: ACCESS_MODE, inheritance: u32) where - P0: windows_core::IntoParam, + P0: 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(pexplicitaccess, ptrusteename.into_param().abi(), core::mem::transmute(ptrustee.unwrap_or(std::ptr::null())), accesspermissions, accessmode, inheritance) + BuildImpersonateExplicitAccessWithNameW(pexplicitaccess, ptrusteename.param().abi(), core::mem::transmute(ptrustee.unwrap_or(std::ptr::null())), accesspermissions, accessmode, inheritance) } #[inline] pub unsafe fn BuildImpersonateTrusteeA(ptrustee: *mut TRUSTEE_A, pimpersonatetrustee: Option<*const TRUSTEE_A>) { @@ -310,7 +310,7 @@ pub unsafe fn BuildImpersonateTrusteeW(ptrustee: *mut TRUSTEE_W, pimpersonatetru #[inline] pub unsafe fn BuildSecurityDescriptorA(powner: Option<*const TRUSTEE_A>, pgroup: Option<*const TRUSTEE_A>, plistofaccessentries: Option<&[EXPLICIT_ACCESS_A]>, plistofauditentries: Option<&[EXPLICIT_ACCESS_A]>, poldsd: P0, psizenewsd: *mut u32, pnewsd: *mut super::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildSecurityDescriptorA(powner : *const TRUSTEE_A, pgroup : *const TRUSTEE_A, ccountofaccessentries : u32, plistofaccessentries : *const EXPLICIT_ACCESS_A, ccountofauditentries : u32, plistofauditentries : *const EXPLICIT_ACCESS_A, poldsd : super:: PSECURITY_DESCRIPTOR, psizenewsd : *mut u32, pnewsd : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); BuildSecurityDescriptorA( @@ -320,7 +320,7 @@ where core::mem::transmute(plistofaccessentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), plistofauditentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plistofauditentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - poldsd.into_param().abi(), + poldsd.param().abi(), psizenewsd, pnewsd, ) @@ -328,7 +328,7 @@ where #[inline] pub unsafe fn BuildSecurityDescriptorW(powner: Option<*const TRUSTEE_W>, pgroup: Option<*const TRUSTEE_W>, plistofaccessentries: Option<&[EXPLICIT_ACCESS_W]>, plistofauditentries: Option<&[EXPLICIT_ACCESS_W]>, poldsd: P0, psizenewsd: *mut u32, pnewsd: *mut super::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildSecurityDescriptorW(powner : *const TRUSTEE_W, pgroup : *const TRUSTEE_W, ccountofaccessentries : u32, plistofaccessentries : *const EXPLICIT_ACCESS_W, ccountofauditentries : u32, plistofauditentries : *const EXPLICIT_ACCESS_W, poldsd : super:: PSECURITY_DESCRIPTOR, psizenewsd : *mut u32, pnewsd : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); BuildSecurityDescriptorW( @@ -338,7 +338,7 @@ where core::mem::transmute(plistofaccessentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), plistofauditentries.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(plistofauditentries.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - poldsd.into_param().abi(), + poldsd.param().abi(), psizenewsd, pnewsd, ) @@ -346,134 +346,134 @@ where #[inline] pub unsafe fn BuildTrusteeWithNameA(ptrustee: *mut TRUSTEE_A, pname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithNameA(ptrustee : *mut TRUSTEE_A, pname : windows_core::PCSTR)); - BuildTrusteeWithNameA(ptrustee, pname.into_param().abi()) + BuildTrusteeWithNameA(ptrustee, pname.param().abi()) } #[inline] pub unsafe fn BuildTrusteeWithNameW(ptrustee: *mut TRUSTEE_W, pname: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithNameW(ptrustee : *mut TRUSTEE_W, pname : windows_core::PCWSTR)); - BuildTrusteeWithNameW(ptrustee, pname.into_param().abi()) + BuildTrusteeWithNameW(ptrustee, pname.param().abi()) } #[inline] pub unsafe fn BuildTrusteeWithObjectsAndNameA(ptrustee: *mut TRUSTEE_A, pobjname: Option<*const OBJECTS_AND_NAME_A>, objecttype: SE_OBJECT_TYPE, objecttypename: P0, inheritedobjecttypename: P1, name: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithObjectsAndNameA(ptrustee : *mut TRUSTEE_A, pobjname : *const OBJECTS_AND_NAME_A, objecttype : SE_OBJECT_TYPE, objecttypename : windows_core::PCSTR, inheritedobjecttypename : windows_core::PCSTR, name : windows_core::PCSTR)); - BuildTrusteeWithObjectsAndNameA(ptrustee, core::mem::transmute(pobjname.unwrap_or(std::ptr::null())), objecttype, objecttypename.into_param().abi(), inheritedobjecttypename.into_param().abi(), name.into_param().abi()) + BuildTrusteeWithObjectsAndNameA(ptrustee, core::mem::transmute(pobjname.unwrap_or(std::ptr::null())), objecttype, objecttypename.param().abi(), inheritedobjecttypename.param().abi(), name.param().abi()) } #[inline] pub unsafe fn BuildTrusteeWithObjectsAndNameW(ptrustee: *mut TRUSTEE_W, pobjname: Option<*const OBJECTS_AND_NAME_W>, objecttype: SE_OBJECT_TYPE, objecttypename: P0, inheritedobjecttypename: P1, name: P2) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithObjectsAndNameW(ptrustee : *mut TRUSTEE_W, pobjname : *const OBJECTS_AND_NAME_W, objecttype : SE_OBJECT_TYPE, objecttypename : windows_core::PCWSTR, inheritedobjecttypename : windows_core::PCWSTR, name : windows_core::PCWSTR)); - BuildTrusteeWithObjectsAndNameW(ptrustee, core::mem::transmute(pobjname.unwrap_or(std::ptr::null())), objecttype, objecttypename.into_param().abi(), inheritedobjecttypename.into_param().abi(), name.into_param().abi()) + BuildTrusteeWithObjectsAndNameW(ptrustee, core::mem::transmute(pobjname.unwrap_or(std::ptr::null())), objecttype, objecttypename.param().abi(), inheritedobjecttypename.param().abi(), name.param().abi()) } #[inline] pub unsafe fn BuildTrusteeWithObjectsAndSidA(ptrustee: *mut TRUSTEE_A, pobjsid: Option<*const OBJECTS_AND_SID>, pobjectguid: Option<*const windows_core::GUID>, pinheritedobjectguid: Option<*const windows_core::GUID>, psid: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithObjectsAndSidA(ptrustee : *mut TRUSTEE_A, pobjsid : *const OBJECTS_AND_SID, pobjectguid : *const windows_core::GUID, pinheritedobjectguid : *const windows_core::GUID, psid : super::super::Foundation:: PSID)); - BuildTrusteeWithObjectsAndSidA(ptrustee, core::mem::transmute(pobjsid.unwrap_or(std::ptr::null())), core::mem::transmute(pobjectguid.unwrap_or(std::ptr::null())), core::mem::transmute(pinheritedobjectguid.unwrap_or(std::ptr::null())), psid.into_param().abi()) + BuildTrusteeWithObjectsAndSidA(ptrustee, core::mem::transmute(pobjsid.unwrap_or(std::ptr::null())), core::mem::transmute(pobjectguid.unwrap_or(std::ptr::null())), core::mem::transmute(pinheritedobjectguid.unwrap_or(std::ptr::null())), psid.param().abi()) } #[inline] pub unsafe fn BuildTrusteeWithObjectsAndSidW(ptrustee: *mut TRUSTEE_W, pobjsid: Option<*const OBJECTS_AND_SID>, pobjectguid: Option<*const windows_core::GUID>, pinheritedobjectguid: Option<*const windows_core::GUID>, psid: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithObjectsAndSidW(ptrustee : *mut TRUSTEE_W, pobjsid : *const OBJECTS_AND_SID, pobjectguid : *const windows_core::GUID, pinheritedobjectguid : *const windows_core::GUID, psid : super::super::Foundation:: PSID)); - BuildTrusteeWithObjectsAndSidW(ptrustee, core::mem::transmute(pobjsid.unwrap_or(std::ptr::null())), core::mem::transmute(pobjectguid.unwrap_or(std::ptr::null())), core::mem::transmute(pinheritedobjectguid.unwrap_or(std::ptr::null())), psid.into_param().abi()) + BuildTrusteeWithObjectsAndSidW(ptrustee, core::mem::transmute(pobjsid.unwrap_or(std::ptr::null())), core::mem::transmute(pobjectguid.unwrap_or(std::ptr::null())), core::mem::transmute(pinheritedobjectguid.unwrap_or(std::ptr::null())), psid.param().abi()) } #[inline] pub unsafe fn BuildTrusteeWithSidA(ptrustee: *mut TRUSTEE_A, psid: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithSidA(ptrustee : *mut TRUSTEE_A, psid : super::super::Foundation:: PSID)); - BuildTrusteeWithSidA(ptrustee, psid.into_param().abi()) + BuildTrusteeWithSidA(ptrustee, psid.param().abi()) } #[inline] pub unsafe fn BuildTrusteeWithSidW(ptrustee: *mut TRUSTEE_W, psid: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn BuildTrusteeWithSidW(ptrustee : *mut TRUSTEE_W, psid : super::super::Foundation:: PSID)); - BuildTrusteeWithSidW(ptrustee, psid.into_param().abi()) + BuildTrusteeWithSidW(ptrustee, psid.param().abi()) } #[inline] pub unsafe fn ConvertSecurityDescriptorToStringSecurityDescriptorA(securitydescriptor: P0, requestedstringsdrevision: u32, securityinformation: super::OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor: *mut windows_core::PSTR, stringsecuritydescriptorlen: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(securitydescriptor.into_param().abi(), requestedstringsdrevision, securityinformation, stringsecuritydescriptor, core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(std::ptr::null_mut()))).ok() + ConvertSecurityDescriptorToStringSecurityDescriptorA(securitydescriptor.param().abi(), requestedstringsdrevision, securityinformation, stringsecuritydescriptor, core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor: P0, requestedstringsdrevision: u32, securityinformation: super::OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor: *mut windows_core::PWSTR, stringsecuritydescriptorlen: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(securitydescriptor.into_param().abi(), requestedstringsdrevision, securityinformation, stringsecuritydescriptor, core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(std::ptr::null_mut()))).ok() + ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor.param().abi(), requestedstringsdrevision, securityinformation, stringsecuritydescriptor, core::mem::transmute(stringsecuritydescriptorlen.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ConvertSidToStringSidA(sid: P0, stringsid: *mut windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidA(sid : super::super::Foundation:: PSID, stringsid : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); - ConvertSidToStringSidA(sid.into_param().abi(), stringsid).ok() + ConvertSidToStringSidA(sid.param().abi(), stringsid).ok() } #[inline] pub unsafe fn ConvertSidToStringSidW(sid: P0, stringsid: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidW(sid : super::super::Foundation:: PSID, stringsid : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); - ConvertSidToStringSidW(sid.into_param().abi(), stringsid).ok() + ConvertSidToStringSidW(sid.param().abi(), stringsid).ok() } #[inline] pub unsafe fn ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor: P0, stringsdrevision: u32, securitydescriptor: *mut super::PSECURITY_DESCRIPTOR, securitydescriptorsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), stringsdrevision, securitydescriptor, core::mem::transmute(securitydescriptorsize.unwrap_or(std::ptr::null_mut()))).ok() + ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor.param().abi(), stringsdrevision, securitydescriptor, core::mem::transmute(securitydescriptorsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor: P0, stringsdrevision: u32, securitydescriptor: *mut super::PSECURITY_DESCRIPTOR, securitydescriptorsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), stringsdrevision, securitydescriptor, core::mem::transmute(securitydescriptorsize.unwrap_or(std::ptr::null_mut()))).ok() + ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor.param().abi(), stringsdrevision, securitydescriptor, core::mem::transmute(securitydescriptorsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ConvertStringSidToSidA(stringsid: P0, sid: *mut super::super::Foundation::PSID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ConvertStringSidToSidA(stringsid : windows_core::PCSTR, sid : *mut super::super::Foundation:: PSID) -> super::super::Foundation:: BOOL); - ConvertStringSidToSidA(stringsid.into_param().abi(), sid).ok() + ConvertStringSidToSidA(stringsid.param().abi(), sid).ok() } #[inline] pub unsafe fn ConvertStringSidToSidW(stringsid: P0, sid: *mut super::super::Foundation::PSID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ConvertStringSidToSidW(stringsid : windows_core::PCWSTR, sid : *mut super::super::Foundation:: PSID) -> super::super::Foundation:: BOOL); - ConvertStringSidToSidW(stringsid.into_param().abi(), sid).ok() + ConvertStringSidToSidW(stringsid.param().abi(), sid).ok() } #[inline] pub unsafe fn FreeInheritedFromArray(pinheritarray: &[INHERITED_FROMW], pfnarray: Option<*const FN_OBJECT_MGR_FUNCTS>) -> super::super::Foundation::WIN32_ERROR { @@ -513,20 +513,20 @@ pub unsafe fn GetExplicitEntriesFromAclW(pacl: *const super::ACL, pccountofexpli #[inline] pub unsafe fn GetInheritanceSourceA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, container: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), objecttype, securityinfo, container.into_param().abi(), 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(std::ptr::null())), pgenericmapping, pinheritarray) + GetInheritanceSourceA(pobjectname.param().abi(), objecttype, securityinfo, container.param().abi(), 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(std::ptr::null())), pgenericmapping, pinheritarray) } #[inline] pub unsafe fn GetInheritanceSourceW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, container: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), objecttype, securityinfo, container.into_param().abi(), 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(std::ptr::null())), pgenericmapping, pinheritarray) + GetInheritanceSourceW(pobjectname.param().abi(), objecttype, securityinfo, container.param().abi(), 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(std::ptr::null())), pgenericmapping, pinheritarray) } #[inline] pub unsafe fn GetMultipleTrusteeA(ptrustee: Option<*const TRUSTEE_A>) -> *mut TRUSTEE_A { @@ -551,26 +551,26 @@ pub unsafe fn GetMultipleTrusteeW(ptrustee: Option<*const TRUSTEE_W>) -> *mut TR #[inline] pub unsafe fn GetNamedSecurityInfoA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, ppsidowner: Option<*mut super::super::Foundation::PSID>, ppsidgroup: Option<*mut super::super::Foundation::PSID>, ppdacl: Option<*mut *mut super::ACL>, ppsacl: Option<*mut *mut super::ACL>, ppsecuritydescriptor: *mut super::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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::super::Foundation:: PSID, ppsidgroup : *mut super::super::Foundation:: PSID, ppdacl : *mut *mut super:: ACL, ppsacl : *mut *mut super:: ACL, ppsecuritydescriptor : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - GetNamedSecurityInfoA(pobjectname.into_param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsidgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsacl.unwrap_or(std::ptr::null_mut())), ppsecuritydescriptor) + GetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsidgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsacl.unwrap_or(std::ptr::null_mut())), ppsecuritydescriptor) } #[inline] pub unsafe fn GetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, ppsidowner: Option<*mut super::super::Foundation::PSID>, ppsidgroup: Option<*mut super::super::Foundation::PSID>, ppdacl: Option<*mut *mut super::ACL>, ppsacl: Option<*mut *mut super::ACL>, ppsecuritydescriptor: *mut super::PSECURITY_DESCRIPTOR) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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::super::Foundation:: PSID, ppsidgroup : *mut super::super::Foundation:: PSID, ppdacl : *mut *mut super:: ACL, ppsacl : *mut *mut super:: ACL, ppsecuritydescriptor : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - GetNamedSecurityInfoW(pobjectname.into_param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsidgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsacl.unwrap_or(std::ptr::null_mut())), ppsecuritydescriptor) + GetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsidgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsacl.unwrap_or(std::ptr::null_mut())), ppsecuritydescriptor) } #[inline] pub unsafe fn GetSecurityInfo(handle: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, ppsidowner: Option<*mut super::super::Foundation::PSID>, ppsidgroup: Option<*mut super::super::Foundation::PSID>, ppdacl: Option<*mut *mut super::ACL>, ppsacl: Option<*mut *mut super::ACL>, ppsecuritydescriptor: Option<*mut super::PSECURITY_DESCRIPTOR>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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::super::Foundation:: PSID, ppsidgroup : *mut super::super::Foundation:: PSID, ppdacl : *mut *mut super:: ACL, ppsacl : *mut *mut super:: ACL, ppsecuritydescriptor : *mut super:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: WIN32_ERROR); - GetSecurityInfo(handle.into_param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsidgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsecuritydescriptor.unwrap_or(std::ptr::null_mut()))) + GetSecurityInfo(handle.param().abi(), objecttype, securityinfo, core::mem::transmute(ppsidowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsidgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppdacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsacl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppsecuritydescriptor.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetTrusteeFormA(ptrustee: *const TRUSTEE_A) -> TRUSTEE_FORM { @@ -605,18 +605,18 @@ 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: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), core::mem::transmute(ppgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pccountofaccessentries.unwrap_or(std::ptr::null_mut())), pplistofaccessentries, core::mem::transmute(pccountofauditentries.unwrap_or(std::ptr::null_mut())), pplistofauditentries, psd.into_param().abi()) + LookupSecurityDescriptorPartsA(core::mem::transmute(ppowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pccountofaccessentries.unwrap_or(std::ptr::null_mut())), pplistofaccessentries, core::mem::transmute(pccountofauditentries.unwrap_or(std::ptr::null_mut())), pplistofauditentries, psd.param().abi()) } #[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: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), core::mem::transmute(ppgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pccountofaccessentries.unwrap_or(std::ptr::null_mut())), pplistofaccessentries, core::mem::transmute(pccountofauditentries.unwrap_or(std::ptr::null_mut())), pplistofauditentries, psd.into_param().abi()) + LookupSecurityDescriptorPartsW(core::mem::transmute(ppowner.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppgroup.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pccountofaccessentries.unwrap_or(std::ptr::null_mut())), pplistofaccessentries, core::mem::transmute(pccountofauditentries.unwrap_or(std::ptr::null_mut())), pplistofauditentries, psd.param().abi()) } #[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 { @@ -631,74 +631,74 @@ pub unsafe fn SetEntriesInAclW(plistofexplicitentries: Option<&[EXPLICIT_ACCESS_ #[inline] pub unsafe fn SetNamedSecurityInfoA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, psidowner: P1, psidgroup: P2, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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::super::Foundation:: PSID, psidgroup : super::super::Foundation:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL) -> super::super::Foundation:: WIN32_ERROR); - SetNamedSecurityInfoA(pobjectname.into_param().abi(), objecttype, securityinfo, psidowner.into_param().abi(), psidgroup.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null()))) + SetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, psidowner.param().abi(), psidgroup.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, psidowner: P1, psidgroup: P2, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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::super::Foundation:: PSID, psidgroup : super::super::Foundation:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL) -> super::super::Foundation:: WIN32_ERROR); - SetNamedSecurityInfoW(pobjectname.into_param().abi(), objecttype, securityinfo, psidowner.into_param().abi(), psidgroup.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null()))) + SetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, psidowner.param().abi(), psidgroup.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetSecurityInfo(handle: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, psidowner: P1, psidgroup: P2, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetSecurityInfo(handle : super::super::Foundation:: HANDLE, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, psidowner : super::super::Foundation:: PSID, psidgroup : super::super::Foundation:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL) -> super::super::Foundation:: WIN32_ERROR); - SetSecurityInfo(handle.into_param().abi(), objecttype, securityinfo, psidowner.into_param().abi(), psidgroup.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null()))) + SetSecurityInfo(handle.param().abi(), objecttype, securityinfo, psidowner.param().abi(), psidgroup.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TreeResetNamedSecurityInfoA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: P1, pgroup: P2, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, keepexplicit: P3, fnprogress: FN_PROGRESS, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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::super::Foundation:: PSID, pgroup : super::super::Foundation:: 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.into_param().abi(), objecttype, securityinfo, powner.into_param().abi(), pgroup.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), keepexplicit.into_param().abi(), fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) + TreeResetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, powner.param().abi(), pgroup.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), keepexplicit.param().abi(), fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TreeResetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: P1, pgroup: P2, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, keepexplicit: P3, fnprogress: FN_PROGRESS, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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::super::Foundation:: PSID, pgroup : super::super::Foundation:: 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.into_param().abi(), objecttype, securityinfo, powner.into_param().abi(), pgroup.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), keepexplicit.into_param().abi(), fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) + TreeResetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, powner.param().abi(), pgroup.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), keepexplicit.param().abi(), fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TreeSetNamedSecurityInfoA(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: P1, pgroup: P2, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, dwaction: TREE_SEC_INFO, fnprogress: FN_PROGRESS, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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::super::Foundation:: PSID, pgroup : super::super::Foundation:: 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.into_param().abi(), objecttype, securityinfo, powner.into_param().abi(), pgroup.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), dwaction, fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) + TreeSetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, powner.param().abi(), pgroup.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), dwaction, fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TreeSetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: super::OBJECT_SECURITY_INFORMATION, powner: P1, pgroup: P2, pdacl: Option<*const super::ACL>, psacl: Option<*const super::ACL>, dwaction: TREE_SEC_INFO, fnprogress: FN_PROGRESS, progressinvokesetting: PROG_INVOKE_SETTING, args: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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::super::Foundation:: PSID, pgroup : super::super::Foundation:: 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.into_param().abi(), objecttype, securityinfo, powner.into_param().abi(), pgroup.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), dwaction, fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) + TreeSetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, powner.param().abi(), pgroup.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), dwaction, fnprogress, progressinvokesetting, core::mem::transmute(args.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IAzApplication, IAzApplication_Vtbl, 0x987bc7c7_b813_4d27_bede_6ba5ae867e95); @@ -712,9 +712,9 @@ impl IAzApplication { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -722,9 +722,9 @@ impl IAzApplication { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -732,9 +732,9 @@ impl IAzApplication { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn AuthzInterfaceClsid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -742,9 +742,9 @@ impl IAzApplication { } pub unsafe fn SetAuthzInterfaceClsid(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthzInterfaceClsid)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthzInterfaceClsid)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -752,9 +752,9 @@ impl IAzApplication { } pub unsafe fn SetVersion(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn GenerateAudits(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -762,9 +762,9 @@ impl IAzApplication { } pub unsafe fn SetGenerateAudits(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn ApplyStoreSacl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -772,9 +772,9 @@ impl IAzApplication { } pub unsafe fn SetApplyStoreSacl(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -782,17 +782,17 @@ impl IAzApplication { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -804,31 +804,31 @@ impl IAzApplication { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Scopes(&self) -> windows_core::Result { @@ -838,27 +838,27 @@ impl IAzApplication { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Operations(&self) -> windows_core::Result { @@ -868,27 +868,27 @@ impl IAzApplication { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Tasks(&self) -> windows_core::Result { @@ -898,27 +898,27 @@ impl IAzApplication { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -928,27 +928,27 @@ impl IAzApplication { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Roles(&self) -> windows_core::Result { @@ -958,65 +958,65 @@ impl IAzApplication { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromToken(&self, ulltokenhandle: u64, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), ulltokenhandle, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), ulltokenhandle, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromName(&self, clientname: P0, domainname: P1, varreserved: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContextFromName)(windows_core::Interface::as_raw(self), clientname.into_param().abi(), domainname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContextFromName)(windows_core::Interface::as_raw(self), clientname.param().abi(), domainname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DelegatedPolicyUsers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1024,26 +1024,26 @@ impl IAzApplication { } pub unsafe fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromStringSid(&self, sidstring: P0, loptions: i32, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), sidstring.into_param().abi(), loptions, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), sidstring.param().abi(), loptions, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PolicyAdministratorsName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1055,31 +1055,31 @@ impl IAzApplication { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1087,17 +1087,17 @@ impl IAzApplication { } pub unsafe fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1232,9 +1232,9 @@ impl IAzApplication2 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1242,9 +1242,9 @@ impl IAzApplication2 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1252,9 +1252,9 @@ impl IAzApplication2 { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn AuthzInterfaceClsid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1262,9 +1262,9 @@ impl IAzApplication2 { } pub unsafe fn SetAuthzInterfaceClsid(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAuthzInterfaceClsid)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAuthzInterfaceClsid)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1272,9 +1272,9 @@ impl IAzApplication2 { } pub unsafe fn SetVersion(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn GenerateAudits(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1282,9 +1282,9 @@ impl IAzApplication2 { } pub unsafe fn SetGenerateAudits(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn ApplyStoreSacl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1292,9 +1292,9 @@ impl IAzApplication2 { } pub unsafe fn SetApplyStoreSacl(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1302,17 +1302,17 @@ impl IAzApplication2 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1324,31 +1324,31 @@ impl IAzApplication2 { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Scopes(&self) -> windows_core::Result { @@ -1358,27 +1358,27 @@ impl IAzApplication2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Operations(&self) -> windows_core::Result { @@ -1388,27 +1388,27 @@ impl IAzApplication2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Tasks(&self) -> windows_core::Result { @@ -1418,27 +1418,27 @@ impl IAzApplication2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -1448,27 +1448,27 @@ impl IAzApplication2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Roles(&self) -> windows_core::Result { @@ -1478,65 +1478,65 @@ impl IAzApplication2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromToken(&self, ulltokenhandle: u64, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), ulltokenhandle, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), ulltokenhandle, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromName(&self, clientname: P0, domainname: P1, varreserved: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InitializeClientContextFromName)(windows_core::Interface::as_raw(self), clientname.into_param().abi(), domainname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.InitializeClientContextFromName)(windows_core::Interface::as_raw(self), clientname.param().abi(), domainname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DelegatedPolicyUsers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1544,26 +1544,26 @@ impl IAzApplication2 { } pub unsafe fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromStringSid(&self, sidstring: P0, loptions: i32, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), sidstring.into_param().abi(), loptions, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), sidstring.param().abi(), loptions, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PolicyAdministratorsName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1575,31 +1575,31 @@ impl IAzApplication2 { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1607,34 +1607,34 @@ impl IAzApplication2 { } pub unsafe fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromToken2(&self, ultokenhandlelowpart: u32, ultokenhandlehighpart: u32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContextFromToken2)(windows_core::Interface::as_raw(self), ultokenhandlelowpart, ultokenhandlehighpart, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContextFromToken2)(windows_core::Interface::as_raw(self), ultokenhandlelowpart, ultokenhandlehighpart, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContext2(&self, identifyingstring: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InitializeClientContext2)(windows_core::Interface::as_raw(self), identifyingstring.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InitializeClientContext2)(windows_core::Interface::as_raw(self), identifyingstring.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1662,9 +1662,9 @@ impl IAzApplication3 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1672,9 +1672,9 @@ impl IAzApplication3 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1682,9 +1682,9 @@ impl IAzApplication3 { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn AuthzInterfaceClsid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1692,9 +1692,9 @@ impl IAzApplication3 { } pub unsafe fn SetAuthzInterfaceClsid(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAuthzInterfaceClsid)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAuthzInterfaceClsid)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1702,9 +1702,9 @@ impl IAzApplication3 { } pub unsafe fn SetVersion(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetVersion)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetVersion)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn GenerateAudits(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1712,9 +1712,9 @@ impl IAzApplication3 { } pub unsafe fn SetGenerateAudits(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn ApplyStoreSacl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1722,9 +1722,9 @@ impl IAzApplication3 { } pub unsafe fn SetApplyStoreSacl(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1732,17 +1732,17 @@ impl IAzApplication3 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1754,31 +1754,31 @@ impl IAzApplication3 { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Scopes(&self) -> windows_core::Result { @@ -1788,27 +1788,27 @@ impl IAzApplication3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteScope(&self, bstrscopename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteScope)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteScope)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Operations(&self) -> windows_core::Result { @@ -1818,27 +1818,27 @@ impl IAzApplication3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteOperation(&self, bstroperationname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstroperationname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstroperationname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Tasks(&self) -> windows_core::Result { @@ -1848,27 +1848,27 @@ impl IAzApplication3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -1878,27 +1878,27 @@ impl IAzApplication3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Roles(&self) -> windows_core::Result { @@ -1908,65 +1908,65 @@ impl IAzApplication3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromToken(&self, ulltokenhandle: u64, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), ulltokenhandle, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.InitializeClientContextFromToken)(windows_core::Interface::as_raw(self), ulltokenhandle, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromName(&self, clientname: P0, domainname: P1, varreserved: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.InitializeClientContextFromName)(windows_core::Interface::as_raw(self), clientname.into_param().abi(), domainname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.InitializeClientContextFromName)(windows_core::Interface::as_raw(self), clientname.param().abi(), domainname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DelegatedPolicyUsers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1974,26 +1974,26 @@ impl IAzApplication3 { } pub unsafe fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromStringSid(&self, sidstring: P0, loptions: i32, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), sidstring.into_param().abi(), loptions, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.InitializeClientContextFromStringSid)(windows_core::Interface::as_raw(self), sidstring.param().abi(), loptions, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PolicyAdministratorsName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2005,31 +2005,31 @@ impl IAzApplication3 { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2037,63 +2037,63 @@ impl IAzApplication3 { } pub unsafe fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContextFromToken2(&self, ultokenhandlelowpart: u32, ultokenhandlehighpart: u32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InitializeClientContextFromToken2)(windows_core::Interface::as_raw(self), ultokenhandlelowpart, ultokenhandlehighpart, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.InitializeClientContextFromToken2)(windows_core::Interface::as_raw(self), ultokenhandlelowpart, ultokenhandlehighpart, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeClientContext2(&self, identifyingstring: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InitializeClientContext2)(windows_core::Interface::as_raw(self), identifyingstring.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.InitializeClientContext2)(windows_core::Interface::as_raw(self), identifyingstring.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ScopeExists(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ScopeExists)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ScopeExists)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenScope2(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenScope2)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenScope2)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateScope2(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateScope2)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateScope2)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteScope2(&self, bstrscopename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteScope2)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteScope2)(windows_core::Interface::as_raw(self), bstrscopename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleDefinitions(&self) -> windows_core::Result { @@ -2103,24 +2103,24 @@ impl IAzApplication3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRoleDefinition(&self, bstrroledefinitionname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRoleDefinition(&self, bstrroledefinitionname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinitionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleAssignments(&self) -> windows_core::Result { @@ -2130,24 +2130,24 @@ impl IAzApplication3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRoleAssignment(&self, bstrroleassignmentname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRoleAssignment(&self, bstrroleassignmentname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRoleAssignment(&self, bstrroleassignmentname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.param().abi()).ok() } pub unsafe fn BizRulesEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2155,9 +2155,9 @@ impl IAzApplication3 { } pub unsafe fn SetBizRulesEnabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBizRulesEnabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBizRulesEnabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2215,9 +2215,9 @@ impl IAzApplicationGroup { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2232,9 +2232,9 @@ impl IAzApplicationGroup { } pub unsafe fn SetLdapQuery(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLdapQuery)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLdapQuery)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn AppMembers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2258,65 +2258,65 @@ impl IAzApplicationGroup { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn AddAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddAppNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteAppNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2324,65 +2324,65 @@ impl IAzApplicationGroup { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn AddMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddNonMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteNonMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn MembersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2442,9 +2442,9 @@ impl IAzApplicationGroup2 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2459,9 +2459,9 @@ impl IAzApplicationGroup2 { } pub unsafe fn SetLdapQuery(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLdapQuery)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLdapQuery)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn AppMembers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2485,65 +2485,65 @@ impl IAzApplicationGroup2 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn AddAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddAppNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteAppNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteAppNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteNonMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteNonMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteNonMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2551,65 +2551,65 @@ impl IAzApplicationGroup2 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn AddMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddNonMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteNonMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteNonMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn MembersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2625,9 +2625,9 @@ impl IAzApplicationGroup2 { } pub unsafe fn SetBizRule(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2635,9 +2635,9 @@ impl IAzApplicationGroup2 { } pub unsafe fn SetBizRuleLanguage(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleImportedPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2645,18 +2645,18 @@ impl IAzApplicationGroup2 { } pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleAssignments(&self, bstrscopename: P0, brecursive: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), brecursive.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), brecursive.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2740,9 +2740,9 @@ impl IAzAuthorizationStore { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2750,9 +2750,9 @@ impl IAzAuthorizationStore { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn DomainTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2781,9 +2781,9 @@ impl IAzAuthorizationStore { } pub unsafe fn SetGenerateAudits(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2791,31 +2791,31 @@ impl IAzAuthorizationStore { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: AZ_PROP_CONSTANTS, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2827,50 +2827,50 @@ impl IAzAuthorizationStore { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Initialize(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lflags, bstrpolicyurl.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lflags, bstrpolicyurl.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn UpdateCache(&self, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateCache)(windows_core::Interface::as_raw(self), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateCache)(windows_core::Interface::as_raw(self), varreserved.param().abi()).ok() } pub unsafe fn Delete(&self, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Applications(&self) -> windows_core::Result { @@ -2880,27 +2880,27 @@ impl IAzAuthorizationStore { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -2910,33 +2910,33 @@ impl IAzAuthorizationStore { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2944,17 +2944,17 @@ impl IAzAuthorizationStore { } pub unsafe fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn TargetMachine(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2966,9 +2966,9 @@ impl IAzAuthorizationStore { } pub unsafe fn SetApplyStoreSacl(&self, bapplystoresacl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bapplystoresacl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bapplystoresacl.param().abi()).ok() } pub unsafe fn PolicyAdministratorsName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2980,31 +2980,31 @@ impl IAzAuthorizationStore { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3012,23 +3012,23 @@ impl IAzAuthorizationStore { } pub unsafe fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn CloseApplication(&self, bstrapplicationname: P0, lflag: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), lflag).ok() + (windows_core::Interface::vtable(self).CloseApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), lflag).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3117,9 +3117,9 @@ impl IAzAuthorizationStore2 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3127,9 +3127,9 @@ impl IAzAuthorizationStore2 { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn DomainTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3158,9 +3158,9 @@ impl IAzAuthorizationStore2 { } pub unsafe fn SetGenerateAudits(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3168,31 +3168,31 @@ impl IAzAuthorizationStore2 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: AZ_PROP_CONSTANTS, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3204,50 +3204,50 @@ impl IAzAuthorizationStore2 { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Initialize(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), lflags, bstrpolicyurl.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), lflags, bstrpolicyurl.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn UpdateCache(&self, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateCache)(windows_core::Interface::as_raw(self), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateCache)(windows_core::Interface::as_raw(self), varreserved.param().abi()).ok() } pub unsafe fn Delete(&self, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Applications(&self) -> windows_core::Result { @@ -3257,27 +3257,27 @@ impl IAzAuthorizationStore2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -3287,33 +3287,33 @@ impl IAzAuthorizationStore2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3321,17 +3321,17 @@ impl IAzAuthorizationStore2 { } pub unsafe fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn TargetMachine(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3343,9 +3343,9 @@ impl IAzAuthorizationStore2 { } pub unsafe fn SetApplyStoreSacl(&self, bapplystoresacl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bapplystoresacl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bapplystoresacl.param().abi()).ok() } pub unsafe fn PolicyAdministratorsName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3357,31 +3357,31 @@ impl IAzAuthorizationStore2 { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3389,41 +3389,41 @@ impl IAzAuthorizationStore2 { } pub unsafe fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn CloseApplication(&self, bstrapplicationname: P0, lflag: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CloseApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), lflag).ok() + (windows_core::Interface::vtable(self).base__.CloseApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), lflag).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplication2(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplication2(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3451,9 +3451,9 @@ impl IAzAuthorizationStore3 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3461,9 +3461,9 @@ impl IAzAuthorizationStore3 { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn DomainTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3492,9 +3492,9 @@ impl IAzAuthorizationStore3 { } pub unsafe fn SetGenerateAudits(&self, bprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3502,31 +3502,31 @@ impl IAzAuthorizationStore3 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: AZ_PROP_CONSTANTS, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3538,50 +3538,50 @@ impl IAzAuthorizationStore3 { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Initialize(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), lflags, bstrpolicyurl.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), lflags, bstrpolicyurl.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn UpdateCache(&self, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.UpdateCache)(windows_core::Interface::as_raw(self), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.UpdateCache)(windows_core::Interface::as_raw(self), varreserved.param().abi()).ok() } pub unsafe fn Delete(&self, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Applications(&self) -> windows_core::Result { @@ -3591,27 +3591,27 @@ impl IAzAuthorizationStore3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplication(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -3621,33 +3621,33 @@ impl IAzAuthorizationStore3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3655,17 +3655,17 @@ impl IAzAuthorizationStore3 { } pub unsafe fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn TargetMachine(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3677,9 +3677,9 @@ impl IAzAuthorizationStore3 { } pub unsafe fn SetApplyStoreSacl(&self, bapplystoresacl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bapplystoresacl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bapplystoresacl.param().abi()).ok() } pub unsafe fn PolicyAdministratorsName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3691,31 +3691,31 @@ impl IAzAuthorizationStore3 { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DelegatedPolicyUsersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3723,41 +3723,41 @@ impl IAzAuthorizationStore3 { } pub unsafe fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(windows_core::Interface::as_raw(self), bstrdelegatedpolicyuser.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn CloseApplication(&self, bstrapplicationname: P0, lflag: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CloseApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), lflag).ok() + (windows_core::Interface::vtable(self).base__.base__.CloseApplication)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), lflag).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplication2(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplication2(&self, bstrapplicationname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateApplication2)(windows_core::Interface::as_raw(self), bstrapplicationname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsUpdateNeeded(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3796,15 +3796,15 @@ windows_core::imp::interface_hierarchy!(IAzBizRuleContext, windows_core::IUnknow impl IAzBizRuleContext { pub unsafe fn SetBusinessRuleResult(&self, bresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBusinessRuleResult)(windows_core::Interface::as_raw(self), bresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBusinessRuleResult)(windows_core::Interface::as_raw(self), bresult.param().abi()).ok() } pub unsafe fn SetBusinessRuleString(&self, bstrbusinessrulestring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBusinessRuleString)(windows_core::Interface::as_raw(self), bstrbusinessrulestring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBusinessRuleString)(windows_core::Interface::as_raw(self), bstrbusinessrulestring.param().abi()).ok() } pub unsafe fn BusinessRuleString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3812,10 +3812,10 @@ impl IAzBizRuleContext { } pub unsafe fn GetParameter(&self, bstrparametername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParameter)(windows_core::Interface::as_raw(self), bstrparametername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetParameter)(windows_core::Interface::as_raw(self), bstrparametername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3835,30 +3835,30 @@ windows_core::imp::interface_hierarchy!(IAzBizRuleInterfaces, windows_core::IUnk impl IAzBizRuleInterfaces { pub unsafe fn AddInterface(&self, bstrinterfacename: P0, linterfaceflag: i32, varinterface: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddInterface)(windows_core::Interface::as_raw(self), bstrinterfacename.into_param().abi(), linterfaceflag, varinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddInterface)(windows_core::Interface::as_raw(self), bstrinterfacename.param().abi(), linterfaceflag, varinterface.param().abi()).ok() } pub unsafe fn AddInterfaces(&self, varinterfacenames: P0, varinterfaceflags: P1, varinterfaces: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddInterfaces)(windows_core::Interface::as_raw(self), varinterfacenames.into_param().abi(), varinterfaceflags.into_param().abi(), varinterfaces.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddInterfaces)(windows_core::Interface::as_raw(self), varinterfacenames.param().abi(), varinterfaceflags.param().abi(), varinterfaces.param().abi()).ok() } pub unsafe fn GetInterfaceValue(&self, bstrinterfacename: P0, linterfaceflag: *mut i32, varinterface: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetInterfaceValue)(windows_core::Interface::as_raw(self), bstrinterfacename.into_param().abi(), linterfaceflag, core::mem::transmute(varinterface)).ok() + (windows_core::Interface::vtable(self).GetInterfaceValue)(windows_core::Interface::as_raw(self), bstrinterfacename.param().abi(), linterfaceflag, core::mem::transmute(varinterface)).ok() } pub unsafe fn Remove(&self, bstrinterfacename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstrinterfacename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), bstrinterfacename.param().abi()).ok() } pub unsafe fn RemoveAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self)).ok() @@ -3887,30 +3887,30 @@ windows_core::imp::interface_hierarchy!(IAzBizRuleParameters, windows_core::IUnk impl IAzBizRuleParameters { pub unsafe fn AddParameter(&self, bstrparametername: P0, varparametervalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddParameter)(windows_core::Interface::as_raw(self), bstrparametername.into_param().abi(), varparametervalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddParameter)(windows_core::Interface::as_raw(self), bstrparametername.param().abi(), varparametervalue.param().abi()).ok() } pub unsafe fn AddParameters(&self, varparameternames: P0, varparametervalues: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddParameters)(windows_core::Interface::as_raw(self), varparameternames.into_param().abi(), varparametervalues.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddParameters)(windows_core::Interface::as_raw(self), varparameternames.param().abi(), varparametervalues.param().abi()).ok() } pub unsafe fn GetParameterValue(&self, bstrparametername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParameterValue)(windows_core::Interface::as_raw(self), bstrparametername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetParameterValue)(windows_core::Interface::as_raw(self), bstrparametername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, varparametername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), varparametername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), varparametername.param().abi()).ok() } pub unsafe fn RemoveAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAll)(windows_core::Interface::as_raw(self)).ok() @@ -3939,17 +3939,17 @@ windows_core::imp::interface_hierarchy!(IAzClientContext, windows_core::IUnknown impl IAzClientContext { pub unsafe fn AccessCheck(&self, bstrobjectname: P0, varscopenames: P1, varoperations: P2, varparameternames: P3, varparametervalues: P4, varinterfacenames: P5, varinterfaceflags: P6, varinterfaces: P7) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AccessCheck)(windows_core::Interface::as_raw(self), bstrobjectname.into_param().abi(), varscopenames.into_param().abi(), varoperations.into_param().abi(), varparameternames.into_param().abi(), varparametervalues.into_param().abi(), varinterfacenames.into_param().abi(), varinterfaceflags.into_param().abi(), varinterfaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AccessCheck)(windows_core::Interface::as_raw(self), bstrobjectname.param().abi(), varscopenames.param().abi(), varoperations.param().abi(), varparameternames.param().abi(), varparametervalues.param().abi(), varinterfacenames.param().abi(), varinterfaceflags.param().abi(), varinterfaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBusinessRuleString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3985,17 +3985,17 @@ impl IAzClientContext { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRoles(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRoles)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRoles)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RoleForAccessCheck(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4003,9 +4003,9 @@ impl IAzClientContext { } pub unsafe fn SetRoleForAccessCheck(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRoleForAccessCheck)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRoleForAccessCheck)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4034,17 +4034,17 @@ windows_core::imp::interface_hierarchy!(IAzClientContext2, windows_core::IUnknow impl IAzClientContext2 { pub unsafe fn AccessCheck(&self, bstrobjectname: P0, varscopenames: P1, varoperations: P2, varparameternames: P3, varparametervalues: P4, varinterfacenames: P5, varinterfaceflags: P6, varinterfaces: P7) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AccessCheck)(windows_core::Interface::as_raw(self), bstrobjectname.into_param().abi(), varscopenames.into_param().abi(), varoperations.into_param().abi(), varparameternames.into_param().abi(), varparametervalues.into_param().abi(), varinterfacenames.into_param().abi(), varinterfaceflags.into_param().abi(), varinterfaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AccessCheck)(windows_core::Interface::as_raw(self), bstrobjectname.param().abi(), varscopenames.param().abi(), varoperations.param().abi(), varparameternames.param().abi(), varparametervalues.param().abi(), varinterfacenames.param().abi(), varinterfaceflags.param().abi(), varinterfaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBusinessRuleString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4080,17 +4080,17 @@ impl IAzClientContext2 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRoles(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRoles)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetRoles)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RoleForAccessCheck(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4098,37 +4098,37 @@ impl IAzClientContext2 { } pub unsafe fn SetRoleForAccessCheck(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRoleForAccessCheck)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRoleForAccessCheck)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn GetAssignedScopesPage(&self, loptions: i32, pagesize: i32, pvarcursor: *mut windows_core::VARIANT, pvarscopenames: *mut windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetAssignedScopesPage)(windows_core::Interface::as_raw(self), loptions, pagesize, core::mem::transmute(pvarcursor), core::mem::transmute(pvarscopenames)).ok() } pub unsafe fn AddRoles(&self, varroles: P0, bstrscopename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRoles)(windows_core::Interface::as_raw(self), varroles.into_param().abi(), bstrscopename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRoles)(windows_core::Interface::as_raw(self), varroles.param().abi(), bstrscopename.param().abi()).ok() } pub unsafe fn AddApplicationGroups(&self, varapplicationgroups: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddApplicationGroups)(windows_core::Interface::as_raw(self), varapplicationgroups.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddApplicationGroups)(windows_core::Interface::as_raw(self), varapplicationgroups.param().abi()).ok() } pub unsafe fn AddStringSids(&self, varstringsids: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStringSids)(windows_core::Interface::as_raw(self), varstringsids.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddStringSids)(windows_core::Interface::as_raw(self), varstringsids.param().abi()).ok() } pub unsafe fn SetLDAPQueryDN(&self, bstrldapquerydn: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLDAPQueryDN)(windows_core::Interface::as_raw(self), bstrldapquerydn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLDAPQueryDN)(windows_core::Interface::as_raw(self), bstrldapquerydn.param().abi()).ok() } pub unsafe fn LDAPQueryDN(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4154,17 +4154,17 @@ windows_core::imp::interface_hierarchy!(IAzClientContext3, windows_core::IUnknow impl IAzClientContext3 { pub unsafe fn AccessCheck(&self, bstrobjectname: P0, varscopenames: P1, varoperations: P2, varparameternames: P3, varparametervalues: P4, varinterfacenames: P5, varinterfaceflags: P6, varinterfaces: P7) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.AccessCheck)(windows_core::Interface::as_raw(self), bstrobjectname.into_param().abi(), varscopenames.into_param().abi(), varoperations.into_param().abi(), varparameternames.into_param().abi(), varparametervalues.into_param().abi(), varinterfacenames.into_param().abi(), varinterfaceflags.into_param().abi(), varinterfaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.AccessCheck)(windows_core::Interface::as_raw(self), bstrobjectname.param().abi(), varscopenames.param().abi(), varoperations.param().abi(), varparameternames.param().abi(), varparametervalues.param().abi(), varinterfacenames.param().abi(), varinterfaceflags.param().abi(), varinterfaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBusinessRuleString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4200,17 +4200,17 @@ impl IAzClientContext3 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRoles(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetRoles)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetRoles)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RoleForAccessCheck(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4218,37 +4218,37 @@ impl IAzClientContext3 { } pub unsafe fn SetRoleForAccessCheck(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRoleForAccessCheck)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRoleForAccessCheck)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn GetAssignedScopesPage(&self, loptions: i32, pagesize: i32, pvarcursor: *mut windows_core::VARIANT, pvarscopenames: *mut windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetAssignedScopesPage)(windows_core::Interface::as_raw(self), loptions, pagesize, core::mem::transmute(pvarcursor), core::mem::transmute(pvarscopenames)).ok() } pub unsafe fn AddRoles(&self, varroles: P0, bstrscopename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddRoles)(windows_core::Interface::as_raw(self), varroles.into_param().abi(), bstrscopename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddRoles)(windows_core::Interface::as_raw(self), varroles.param().abi(), bstrscopename.param().abi()).ok() } pub unsafe fn AddApplicationGroups(&self, varapplicationgroups: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddApplicationGroups)(windows_core::Interface::as_raw(self), varapplicationgroups.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddApplicationGroups)(windows_core::Interface::as_raw(self), varapplicationgroups.param().abi()).ok() } pub unsafe fn AddStringSids(&self, varstringsids: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddStringSids)(windows_core::Interface::as_raw(self), varstringsids.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddStringSids)(windows_core::Interface::as_raw(self), varstringsids.param().abi()).ok() } pub unsafe fn SetLDAPQueryDN(&self, bstrldapquerydn: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLDAPQueryDN)(windows_core::Interface::as_raw(self), bstrldapquerydn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLDAPQueryDN)(windows_core::Interface::as_raw(self), bstrldapquerydn.param().abi()).ok() } pub unsafe fn LDAPQueryDN(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4256,35 +4256,35 @@ impl IAzClientContext3 { } pub unsafe fn AccessCheck2(&self, bstrobjectname: P0, bstrscopename: P1, loperation: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AccessCheck2)(windows_core::Interface::as_raw(self), bstrobjectname.into_param().abi(), bstrscopename.into_param().abi(), loperation, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AccessCheck2)(windows_core::Interface::as_raw(self), bstrobjectname.param().abi(), bstrscopename.param().abi(), loperation, &mut result__).map(|| result__) } pub unsafe fn IsInRoleAssignment(&self, bstrscopename: P0, bstrrolename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsInRoleAssignment)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), bstrrolename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsInRoleAssignment)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), bstrrolename.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetOperations(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOperations)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOperations)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTasks(&self, bstrscopename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTasks)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTasks)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BizRuleParameters(&self) -> windows_core::Result { @@ -4298,10 +4298,10 @@ impl IAzClientContext3 { } pub unsafe fn GetGroups(&self, bstrscopename: P0, uloptions: AZ_PROP_CONSTANTS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGroups)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), uloptions.0 as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetGroups)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), uloptions.0 as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Sids(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4341,15 +4341,15 @@ windows_core::imp::interface_hierarchy!(IAzNameResolver, windows_core::IUnknown, impl IAzNameResolver { pub unsafe fn NameFromSid(&self, bstrsid: P0, psidtype: *mut i32, pbstrname: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NameFromSid)(windows_core::Interface::as_raw(self), bstrsid.into_param().abi(), psidtype, core::mem::transmute(pbstrname)).ok() + (windows_core::Interface::vtable(self).NameFromSid)(windows_core::Interface::as_raw(self), bstrsid.param().abi(), psidtype, core::mem::transmute(pbstrname)).ok() } pub unsafe fn NamesFromSids(&self, vsids: P0, pvsidtypes: *mut windows_core::VARIANT, pvnames: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NamesFromSids)(windows_core::Interface::as_raw(self), vsids.into_param().abi(), core::mem::transmute(pvsidtypes), core::mem::transmute(pvnames)).ok() + (windows_core::Interface::vtable(self).NamesFromSids)(windows_core::Interface::as_raw(self), vsids.param().abi(), core::mem::transmute(pvsidtypes), core::mem::transmute(pvnames)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4367,10 +4367,10 @@ windows_core::imp::interface_hierarchy!(IAzObjectPicker, windows_core::IUnknown, impl IAzObjectPicker { pub unsafe fn GetPrincipals(&self, hparentwnd: P0, bstrtitle: P1, pvsidtypes: *mut windows_core::VARIANT, pvnames: *mut windows_core::VARIANT, pvsids: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPrincipals)(windows_core::Interface::as_raw(self), hparentwnd.into_param().abi(), bstrtitle.into_param().abi(), core::mem::transmute(pvsidtypes), core::mem::transmute(pvnames), core::mem::transmute(pvsids)).ok() + (windows_core::Interface::vtable(self).GetPrincipals)(windows_core::Interface::as_raw(self), hparentwnd.param().abi(), bstrtitle.param().abi(), core::mem::transmute(pvsidtypes), core::mem::transmute(pvnames), core::mem::transmute(pvsids)).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4396,9 +4396,9 @@ impl IAzOperation { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4406,9 +4406,9 @@ impl IAzOperation { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4416,9 +4416,9 @@ impl IAzOperation { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn OperationID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4433,23 +4433,23 @@ impl IAzOperation { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4481,9 +4481,9 @@ impl IAzOperation2 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4491,9 +4491,9 @@ impl IAzOperation2 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4501,9 +4501,9 @@ impl IAzOperation2 { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn OperationID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4518,32 +4518,32 @@ impl IAzOperation2 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleAssignments(&self, bstrscopename: P0, brecursive: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), brecursive.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), brecursive.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4624,9 +4624,9 @@ impl IAzRole { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4634,9 +4634,9 @@ impl IAzRole { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4644,65 +4644,65 @@ impl IAzRole { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn AddAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddTask(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTask)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTask)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteTask(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddOperation(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddOperation)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddOperation)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteOperation(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteOperation)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteOperation)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4710,17 +4710,17 @@ impl IAzRole { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AppMembers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4740,37 +4740,37 @@ impl IAzRole { } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn AddMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn MembersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4821,9 +4821,9 @@ impl IAzRoleAssignment { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4831,9 +4831,9 @@ impl IAzRoleAssignment { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4841,65 +4841,65 @@ impl IAzRoleAssignment { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn AddAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteAppMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteAppMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddTask(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddTask)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddTask)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteTask(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddOperation(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddOperation)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddOperation)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteOperation(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMember(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteMember)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4907,17 +4907,17 @@ impl IAzRoleAssignment { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AppMembers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4937,37 +4937,37 @@ impl IAzRoleAssignment { } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn AddMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteMemberName(&self, bstrprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteMemberName)(windows_core::Interface::as_raw(self), bstrprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn MembersName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4975,15 +4975,15 @@ impl IAzRoleAssignment { } pub unsafe fn AddRoleDefinition(&self, bstrroledefinition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.param().abi()).ok() } pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleDefinitions(&self) -> windows_core::Result { @@ -5050,9 +5050,9 @@ impl IAzRoleDefinition { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5060,9 +5060,9 @@ impl IAzRoleDefinition { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5070,9 +5070,9 @@ impl IAzRoleDefinition { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn BizRule(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5080,9 +5080,9 @@ impl IAzRoleDefinition { } pub unsafe fn SetBizRule(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5090,9 +5090,9 @@ impl IAzRoleDefinition { } pub unsafe fn SetBizRuleLanguage(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleImportedPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5100,9 +5100,9 @@ impl IAzRoleDefinition { } pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn IsRoleDefinition(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5110,9 +5110,9 @@ impl IAzRoleDefinition { } pub unsafe fn SetIsRoleDefinition(&self, fprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsRoleDefinition)(windows_core::Interface::as_raw(self), fprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsRoleDefinition)(windows_core::Interface::as_raw(self), fprop.param().abi()).ok() } pub unsafe fn Operations(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5124,31 +5124,31 @@ impl IAzRoleDefinition { } pub unsafe fn AddOperation(&self, bstrop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddOperation)(windows_core::Interface::as_raw(self), bstrop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddOperation)(windows_core::Interface::as_raw(self), bstrop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteOperation(&self, bstrop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstrop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstrop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddTask(&self, bstrtask: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddTask)(windows_core::Interface::as_raw(self), bstrtask.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddTask)(windows_core::Interface::as_raw(self), bstrtask.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteTask(&self, bstrtask: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtask.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtask.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5156,58 +5156,58 @@ impl IAzRoleDefinition { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleAssignments(&self, bstrscopename: P0, brecursive: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), brecursive.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), brecursive.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddRoleDefinition(&self, bstrroledefinition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.param().abi()).ok() } pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinition.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleDefinitions(&self) -> windows_core::Result { @@ -5296,9 +5296,9 @@ impl IAzScope { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5306,9 +5306,9 @@ impl IAzScope { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5316,9 +5316,9 @@ impl IAzScope { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5326,31 +5326,31 @@ impl IAzScope { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5362,31 +5362,31 @@ impl IAzScope { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -5396,27 +5396,27 @@ impl IAzScope { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Roles(&self) -> windows_core::Result { @@ -5426,27 +5426,27 @@ impl IAzScope { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Tasks(&self) -> windows_core::Result { @@ -5456,33 +5456,33 @@ impl IAzScope { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn CanBeDelegated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5502,31 +5502,31 @@ impl IAzScope { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5611,9 +5611,9 @@ impl IAzScope2 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5621,9 +5621,9 @@ impl IAzScope2 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5631,9 +5631,9 @@ impl IAzScope2 { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5641,31 +5641,31 @@ impl IAzScope2 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn PolicyAdministrators(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5677,31 +5677,31 @@ impl IAzScope2 { } pub unsafe fn AddPolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministrator(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyAdministrator)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReader(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyReader)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplicationGroups(&self) -> windows_core::Result { @@ -5711,27 +5711,27 @@ impl IAzScope2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteApplicationGroup(&self, bstrgroupname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteApplicationGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Roles(&self) -> windows_core::Result { @@ -5741,27 +5741,27 @@ impl IAzScope2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRole(&self, bstrrolename: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteRole)(windows_core::Interface::as_raw(self), bstrrolename.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Tasks(&self) -> windows_core::Result { @@ -5771,33 +5771,33 @@ impl IAzScope2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OpenTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteTask(&self, bstrtaskname: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtaskname.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } pub unsafe fn CanBeDelegated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5817,31 +5817,31 @@ impl IAzScope2 { } pub unsafe fn AddPolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyAdministratorName(&self, bstradmin: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(windows_core::Interface::as_raw(self), bstradmin.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePolicyReaderName(&self, bstrreader: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePolicyReaderName)(windows_core::Interface::as_raw(self), bstrreader.param().abi(), varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleDefinitions(&self) -> windows_core::Result { @@ -5851,24 +5851,24 @@ impl IAzScope2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRoleDefinition(&self, bstrroledefinitionname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRoleDefinition(&self, bstrroledefinitionname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinitionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRoleDefinition)(windows_core::Interface::as_raw(self), bstrroledefinitionname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleAssignments(&self) -> windows_core::Result { @@ -5878,24 +5878,24 @@ impl IAzScope2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRoleAssignment(&self, bstrroleassignmentname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenRoleAssignment(&self, bstrroleassignmentname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteRoleAssignment(&self, bstrroleassignmentname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRoleAssignment)(windows_core::Interface::as_raw(self), bstrroleassignmentname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5968,9 +5968,9 @@ impl IAzTask { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5978,9 +5978,9 @@ impl IAzTask { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5988,9 +5988,9 @@ impl IAzTask { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn BizRule(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5998,9 +5998,9 @@ impl IAzTask { } pub unsafe fn SetBizRule(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6008,9 +6008,9 @@ impl IAzTask { } pub unsafe fn SetBizRuleLanguage(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleImportedPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6018,9 +6018,9 @@ impl IAzTask { } pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn IsRoleDefinition(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6028,9 +6028,9 @@ impl IAzTask { } pub unsafe fn SetIsRoleDefinition(&self, fprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsRoleDefinition)(windows_core::Interface::as_raw(self), fprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsRoleDefinition)(windows_core::Interface::as_raw(self), fprop.param().abi()).ok() } pub unsafe fn Operations(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6042,31 +6042,31 @@ impl IAzTask { } pub unsafe fn AddOperation(&self, bstrop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddOperation)(windows_core::Interface::as_raw(self), bstrop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddOperation)(windows_core::Interface::as_raw(self), bstrop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteOperation(&self, bstrop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteOperation)(windows_core::Interface::as_raw(self), bstrop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteOperation)(windows_core::Interface::as_raw(self), bstrop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddTask(&self, bstrtask: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTask)(windows_core::Interface::as_raw(self), bstrtask.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTask)(windows_core::Interface::as_raw(self), bstrtask.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteTask(&self, bstrtask: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrtask.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), bstrtask.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6074,37 +6074,37 @@ impl IAzTask { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6150,9 +6150,9 @@ impl IAzTask2 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6160,9 +6160,9 @@ impl IAzTask2 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn ApplicationData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6170,9 +6170,9 @@ impl IAzTask2 { } pub unsafe fn SetApplicationData(&self, bstrapplicationdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetApplicationData)(windows_core::Interface::as_raw(self), bstrapplicationdata.param().abi()).ok() } pub unsafe fn BizRule(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6180,9 +6180,9 @@ impl IAzTask2 { } pub unsafe fn SetBizRule(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBizRule)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6190,9 +6190,9 @@ impl IAzTask2 { } pub unsafe fn SetBizRuleLanguage(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBizRuleLanguage)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn BizRuleImportedPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6200,9 +6200,9 @@ impl IAzTask2 { } pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), bstrprop.param().abi()).ok() } pub unsafe fn IsRoleDefinition(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6210,9 +6210,9 @@ impl IAzTask2 { } pub unsafe fn SetIsRoleDefinition(&self, fprop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsRoleDefinition)(windows_core::Interface::as_raw(self), fprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsRoleDefinition)(windows_core::Interface::as_raw(self), fprop.param().abi()).ok() } pub unsafe fn Operations(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6224,31 +6224,31 @@ impl IAzTask2 { } pub unsafe fn AddOperation(&self, bstrop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddOperation)(windows_core::Interface::as_raw(self), bstrop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddOperation)(windows_core::Interface::as_raw(self), bstrop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteOperation(&self, bstrop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstrop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteOperation)(windows_core::Interface::as_raw(self), bstrop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddTask(&self, bstrtask: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddTask)(windows_core::Interface::as_raw(self), bstrtask.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddTask)(windows_core::Interface::as_raw(self), bstrtask.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeleteTask(&self, bstrtask: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtask.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteTask)(windows_core::Interface::as_raw(self), bstrtask.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Writable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6256,46 +6256,46 @@ impl IAzTask2 { } pub unsafe fn GetProperty(&self, lpropid: i32, varreserved: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), lpropid, varreserved.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperty)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn AddPropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn DeletePropertyItem(&self, lpropid: i32, varprop: P0, varreserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.into_param().abi(), varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeletePropertyItem)(windows_core::Interface::as_raw(self), lpropid, varprop.param().abi(), varreserved.param().abi()).ok() } pub unsafe fn Submit(&self, lflags: i32, varreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), lflags, varreserved.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RoleAssignments(&self, bstrscopename: P0, brecursive: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.into_param().abi(), brecursive.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RoleAssignments)(windows_core::Interface::as_raw(self), bstrscopename.param().abi(), brecursive.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] 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 dd3531924e..aefc980da2 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs @@ -6,9 +6,9 @@ impl ISceSvcAttachmentData { } pub unsafe fn Initialize(&self, lpservicename: *mut i8, lptemplatename: *mut i8, lpscesvcpersistinfo: P0, pscesvchandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lpservicename, lptemplatename, lpscesvcpersistinfo.into_param().abi(), pscesvchandle).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lpservicename, lptemplatename, lpscesvcpersistinfo.param().abi(), pscesvchandle).ok() } pub unsafe fn FreeBuffer(&self, pvdata: *mut core::ffi::c_void) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FreeBuffer)(windows_core::Interface::as_raw(self), pvdata).ok() 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 1ecfb29b8a..c538b76623 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs @@ -1,50 +1,50 @@ #[inline] pub unsafe fn CredDeleteA(targetname: P0, r#type: CRED_TYPE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, flags).ok() + CredDeleteA(targetname.param().abi(), r#type, flags).ok() } #[inline] pub unsafe fn CredDeleteW(targetname: P0, r#type: CRED_TYPE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, flags).ok() + CredDeleteW(targetname.param().abi(), r#type, flags).ok() } #[inline] pub unsafe fn CredEnumerateA(filter: P0, flags: CRED_ENUMERATE_FLAGS, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredEnumerateA(filter : windows_core::PCSTR, flags : CRED_ENUMERATE_FLAGS, count : *mut u32, credential : *mut *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); - CredEnumerateA(filter.into_param().abi(), flags, count, credential).ok() + CredEnumerateA(filter.param().abi(), flags, count, credential).ok() } #[inline] pub unsafe fn CredEnumerateW(filter: P0, flags: CRED_ENUMERATE_FLAGS, count: *mut u32, credential: *mut *mut *mut CREDENTIALW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredEnumerateW(filter : windows_core::PCWSTR, flags : CRED_ENUMERATE_FLAGS, count : *mut u32, credential : *mut *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); - CredEnumerateW(filter.into_param().abi(), flags, count, credential).ok() + CredEnumerateW(filter.param().abi(), flags, count, credential).ok() } #[inline] pub unsafe fn CredFindBestCredentialA(targetname: P0, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, flags, credential).ok() + CredFindBestCredentialA(targetname.param().abi(), r#type, flags, credential).ok() } #[inline] pub unsafe fn CredFindBestCredentialW(targetname: P0, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, flags, credential).ok() + CredFindBestCredentialW(targetname.param().abi(), r#type, flags, credential).ok() } #[inline] pub unsafe fn CredFree(buffer: *const core::ffi::c_void) { @@ -59,50 +59,50 @@ pub unsafe fn CredGetSessionTypes(maximumpersist: &mut [u32]) -> windows_core::R #[inline] pub unsafe fn CredGetTargetInfoA(targetname: P0, flags: u32, targetinfo: *mut *mut CREDENTIAL_TARGET_INFORMATIONA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, targetinfo).ok() + CredGetTargetInfoA(targetname.param().abi(), flags, targetinfo).ok() } #[inline] pub unsafe fn CredGetTargetInfoW(targetname: P0, flags: u32, targetinfo: *mut *mut CREDENTIAL_TARGET_INFORMATIONW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, targetinfo).ok() + CredGetTargetInfoW(targetname.param().abi(), flags, targetinfo).ok() } #[inline] pub unsafe fn CredIsMarshaledCredentialA(marshaledcredential: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredIsMarshaledCredentialA(marshaledcredential : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CredIsMarshaledCredentialA(marshaledcredential.into_param().abi()) + CredIsMarshaledCredentialA(marshaledcredential.param().abi()) } #[inline] pub unsafe fn CredIsMarshaledCredentialW(marshaledcredential: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredIsMarshaledCredentialW(marshaledcredential : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - CredIsMarshaledCredentialW(marshaledcredential.into_param().abi()) + CredIsMarshaledCredentialW(marshaledcredential.param().abi()) } #[inline] pub unsafe fn CredIsProtectedA(pszprotectedcredentials: P0, pprotectiontype: *mut CRED_PROTECTION_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredIsProtectedA(pszprotectedcredentials : windows_core::PCSTR, pprotectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); - CredIsProtectedA(pszprotectedcredentials.into_param().abi(), pprotectiontype).ok() + CredIsProtectedA(pszprotectedcredentials.param().abi(), pprotectiontype).ok() } #[inline] pub unsafe fn CredIsProtectedW(pszprotectedcredentials: P0, pprotectiontype: *mut CRED_PROTECTION_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredIsProtectedW(pszprotectedcredentials : windows_core::PCWSTR, pprotectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); - CredIsProtectedW(pszprotectedcredentials.into_param().abi(), pprotectiontype).ok() + CredIsProtectedW(pszprotectedcredentials.param().abi(), pprotectiontype).ok() } #[inline] pub unsafe fn CredMarshalCredentialA(credtype: CRED_MARSHAL_TYPE, credential: *const core::ffi::c_void, marshaledcredential: *mut windows_core::PSTR) -> windows_core::Result<()> { @@ -117,44 +117,44 @@ pub unsafe fn CredMarshalCredentialW(credtype: CRED_MARSHAL_TYPE, credential: *c #[inline] pub unsafe fn CredPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pszusername: P0, pszpassword: P1, ppackedcredentials: Option<*mut u8>, pcbpackedcredentials: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, pszusername.into_param().abi(), pszpassword.into_param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(std::ptr::null_mut())), pcbpackedcredentials).ok() + CredPackAuthenticationBufferA(dwflags, pszusername.param().abi(), pszpassword.param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(std::ptr::null_mut())), pcbpackedcredentials).ok() } #[inline] pub unsafe fn CredPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pszusername: P0, pszpassword: P1, ppackedcredentials: Option<*mut u8>, pcbpackedcredentials: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, pszusername.into_param().abi(), pszpassword.into_param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(std::ptr::null_mut())), pcbpackedcredentials).ok() + CredPackAuthenticationBufferW(dwflags, pszusername.param().abi(), pszpassword.param().abi(), core::mem::transmute(ppackedcredentials.unwrap_or(std::ptr::null_mut())), pcbpackedcredentials).ok() } #[inline] pub unsafe fn CredProtectA(fasself: P0, pszcredentials: &[u8], pszprotectedcredentials: windows_core::PSTR, pcchmaxchars: *mut u32, protectiontype: Option<*mut CRED_PROTECTION_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredProtectA(fasself : super::super::Foundation:: BOOL, pszcredentials : windows_core::PCSTR, cchcredentials : u32, pszprotectedcredentials : windows_core::PSTR, pcchmaxchars : *mut u32, protectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); - CredProtectA(fasself.into_param().abi(), core::mem::transmute(pszcredentials.as_ptr()), pszcredentials.len().try_into().unwrap(), core::mem::transmute(pszprotectedcredentials), pcchmaxchars, core::mem::transmute(protectiontype.unwrap_or(std::ptr::null_mut()))).ok() + CredProtectA(fasself.param().abi(), core::mem::transmute(pszcredentials.as_ptr()), pszcredentials.len().try_into().unwrap(), core::mem::transmute(pszprotectedcredentials), pcchmaxchars, core::mem::transmute(protectiontype.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CredProtectW(fasself: P0, pszcredentials: &[u16], pszprotectedcredentials: windows_core::PWSTR, pcchmaxchars: *mut u32, protectiontype: Option<*mut CRED_PROTECTION_TYPE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredProtectW(fasself : super::super::Foundation:: BOOL, pszcredentials : windows_core::PCWSTR, cchcredentials : u32, pszprotectedcredentials : windows_core::PWSTR, pcchmaxchars : *mut u32, protectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); - CredProtectW(fasself.into_param().abi(), core::mem::transmute(pszcredentials.as_ptr()), pszcredentials.len().try_into().unwrap(), core::mem::transmute(pszprotectedcredentials), pcchmaxchars, core::mem::transmute(protectiontype.unwrap_or(std::ptr::null_mut()))).ok() + CredProtectW(fasself.param().abi(), core::mem::transmute(pszcredentials.as_ptr()), pszcredentials.len().try_into().unwrap(), core::mem::transmute(pszprotectedcredentials), pcchmaxchars, core::mem::transmute(protectiontype.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CredReadA(targetname: P0, r#type: CRED_TYPE, flags: u32, credential: *mut *mut CREDENTIALA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, flags, credential).ok() + CredReadA(targetname.param().abi(), r#type, flags, 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<()> { @@ -169,96 +169,96 @@ pub unsafe fn CredReadDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_IN #[inline] pub unsafe fn CredReadW(targetname: P0, r#type: CRED_TYPE, flags: u32, credential: *mut *mut CREDENTIALW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), r#type, flags, credential).ok() + CredReadW(targetname.param().abi(), r#type, flags, credential).ok() } #[inline] pub unsafe fn CredRenameA(oldtargetname: P0, newtargetname: P1, r#type: CRED_TYPE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), newtargetname.into_param().abi(), r#type, flags).ok() + CredRenameA(oldtargetname.param().abi(), newtargetname.param().abi(), r#type, flags).ok() } #[inline] pub unsafe fn CredRenameW(oldtargetname: P0, newtargetname: P1, r#type: CRED_TYPE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), newtargetname.into_param().abi(), r#type, flags).ok() + CredRenameW(oldtargetname.param().abi(), newtargetname.param().abi(), r#type, flags).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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), dwflags) + CredUICmdLinePromptForCredentialsA(psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), dwflags) + CredUICmdLinePromptForCredentialsW(psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), dwflags) } #[inline] pub unsafe fn CredUIConfirmCredentialsA(psztargetname: P0, bconfirm: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIConfirmCredentialsA(psztargetname : windows_core::PCSTR, bconfirm : super::super::Foundation:: BOOL) -> u32); - CredUIConfirmCredentialsA(psztargetname.into_param().abi(), bconfirm.into_param().abi()) + CredUIConfirmCredentialsA(psztargetname.param().abi(), bconfirm.param().abi()) } #[inline] pub unsafe fn CredUIConfirmCredentialsW(psztargetname: P0, bconfirm: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIConfirmCredentialsW(psztargetname : windows_core::PCWSTR, bconfirm : super::super::Foundation:: BOOL) -> u32); - CredUIConfirmCredentialsW(psztargetname.into_param().abi(), bconfirm.into_param().abi()) + CredUIConfirmCredentialsW(psztargetname.param().abi(), bconfirm.param().abi()) } #[inline] pub unsafe fn CredUIParseUserNameA(username: P0, user: &mut [u8], domain: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIParseUserNameA(username : windows_core::PCSTR, user : windows_core::PSTR, userbuffersize : u32, domain : windows_core::PSTR, domainbuffersize : u32) -> u32); - CredUIParseUserNameA(username.into_param().abi(), core::mem::transmute(user.as_ptr()), user.len().try_into().unwrap(), core::mem::transmute(domain.as_ptr()), domain.len().try_into().unwrap()) + CredUIParseUserNameA(username.param().abi(), core::mem::transmute(user.as_ptr()), user.len().try_into().unwrap(), core::mem::transmute(domain.as_ptr()), domain.len().try_into().unwrap()) } #[inline] pub unsafe fn CredUIParseUserNameW(username: P0, user: &mut [u16], domain: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIParseUserNameW(username : windows_core::PCWSTR, user : windows_core::PWSTR, userbuffersize : u32, domain : windows_core::PWSTR, domainbuffersize : u32) -> u32); - CredUIParseUserNameW(username.into_param().abi(), core::mem::transmute(user.as_ptr()), user.len().try_into().unwrap(), core::mem::transmute(domain.as_ptr()), domain.len().try_into().unwrap()) + CredUIParseUserNameW(username.param().abi(), core::mem::transmute(user.as_ptr()), user.len().try_into().unwrap(), core::mem::transmute(domain.as_ptr()), domain.len().try_into().unwrap()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CredUIPromptForCredentialsA(puiinfo: Option<*const CREDUI_INFOA>, psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, pszusername: &mut [u8], pszpassword: &mut [u8], save: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: 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) -> u32); - CredUIPromptForCredentialsA(core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), psztargetname.into_param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), dwflags) + CredUIPromptForCredentialsA(core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CredUIPromptForCredentialsW(puiinfo: Option<*const CREDUI_INFOW>, psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, pszusername: &mut [u16], pszpassword: &mut [u16], save: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: 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) -> u32); - CredUIPromptForCredentialsW(core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), psztargetname.into_param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), dwflags) + CredUIPromptForCredentialsW(core::mem::transmute(puiinfo.unwrap_or(std::ptr::null())), psztargetname.param().abi(), core::mem::transmute(pcontext.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), dwflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -275,21 +275,21 @@ pub unsafe fn CredUIPromptForWindowsCredentialsW(puiinfo: Option<*const CREDUI_I #[inline] pub unsafe fn CredUIReadSSOCredW(pszrealm: P0, ppszusername: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIReadSSOCredW(pszrealm : windows_core::PCWSTR, ppszusername : *mut windows_core::PWSTR) -> u32); - CredUIReadSSOCredW(pszrealm.into_param().abi(), ppszusername) + CredUIReadSSOCredW(pszrealm.param().abi(), ppszusername) } #[inline] pub unsafe fn CredUIStoreSSOCredW(pszrealm: P0, pszusername: P1, pszpassword: P2, bpersist: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("credui.dll" "system" fn CredUIStoreSSOCredW(pszrealm : windows_core::PCWSTR, pszusername : windows_core::PCWSTR, pszpassword : windows_core::PCWSTR, bpersist : super::super::Foundation:: BOOL) -> u32); - CredUIStoreSSOCredW(pszrealm.into_param().abi(), pszusername.into_param().abi(), pszpassword.into_param().abi(), bpersist.into_param().abi()) + CredUIStoreSSOCredW(pszrealm.param().abi(), pszusername.param().abi(), pszpassword.param().abi(), bpersist.param().abi()) } #[inline] pub unsafe 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: Option<*mut u32>, pszpassword: windows_core::PSTR, pcchmaxpassword: *mut u32) -> windows_core::Result<()> { @@ -304,34 +304,34 @@ pub unsafe fn CredUnPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pauthbuf #[inline] pub unsafe fn CredUnmarshalCredentialA(marshaledcredential: P0, credtype: *mut CRED_MARSHAL_TYPE, credential: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredUnmarshalCredentialA(marshaledcredential : windows_core::PCSTR, credtype : *mut CRED_MARSHAL_TYPE, credential : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CredUnmarshalCredentialA(marshaledcredential.into_param().abi(), credtype, credential).ok() + CredUnmarshalCredentialA(marshaledcredential.param().abi(), credtype, credential).ok() } #[inline] pub unsafe fn CredUnmarshalCredentialW(marshaledcredential: P0, credtype: *mut CRED_MARSHAL_TYPE, credential: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredUnmarshalCredentialW(marshaledcredential : windows_core::PCWSTR, credtype : *mut CRED_MARSHAL_TYPE, credential : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CredUnmarshalCredentialW(marshaledcredential.into_param().abi(), credtype, credential).ok() + CredUnmarshalCredentialW(marshaledcredential.param().abi(), credtype, credential).ok() } #[inline] pub unsafe fn CredUnprotectA(fasself: P0, pszprotectedcredentials: &[u8], pszcredentials: windows_core::PSTR, pcchmaxchars: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredUnprotectA(fasself : super::super::Foundation:: BOOL, pszprotectedcredentials : windows_core::PCSTR, cchprotectedcredentials : u32, pszcredentials : windows_core::PSTR, pcchmaxchars : *mut u32) -> super::super::Foundation:: BOOL); - CredUnprotectA(fasself.into_param().abi(), core::mem::transmute(pszprotectedcredentials.as_ptr()), pszprotectedcredentials.len().try_into().unwrap(), core::mem::transmute(pszcredentials), pcchmaxchars).ok() + CredUnprotectA(fasself.param().abi(), core::mem::transmute(pszprotectedcredentials.as_ptr()), pszprotectedcredentials.len().try_into().unwrap(), core::mem::transmute(pszcredentials), pcchmaxchars).ok() } #[inline] pub unsafe fn CredUnprotectW(fasself: P0, pszprotectedcredentials: &[u16], pszcredentials: windows_core::PWSTR, pcchmaxchars: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CredUnprotectW(fasself : super::super::Foundation:: BOOL, pszprotectedcredentials : windows_core::PCWSTR, cchprotectedcredentials : u32, pszcredentials : windows_core::PWSTR, pcchmaxchars : *mut u32) -> super::super::Foundation:: BOOL); - CredUnprotectW(fasself.into_param().abi(), core::mem::transmute(pszprotectedcredentials.as_ptr()), pszprotectedcredentials.len().try_into().unwrap(), core::mem::transmute(pszcredentials), pcchmaxchars).ok() + CredUnprotectW(fasself.param().abi(), core::mem::transmute(pszprotectedcredentials.as_ptr()), pszprotectedcredentials.len().try_into().unwrap(), core::mem::transmute(pszcredentials), pcchmaxchars).ok() } #[inline] pub unsafe fn CredWriteA(credential: *const CREDENTIALA, flags: u32) -> windows_core::Result<()> { @@ -382,10 +382,10 @@ pub unsafe fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanagerop #[inline] pub unsafe fn KeyCredentialManagerShowUIOperation(hwndowner: P0, keycredentialmanageroperationtype: KeyCredentialManagerOperationType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("keycredmgr.dll" "system" fn KeyCredentialManagerShowUIOperation(hwndowner : super::super::Foundation:: HWND, keycredentialmanageroperationtype : KeyCredentialManagerOperationType) -> windows_core::HRESULT); - KeyCredentialManagerShowUIOperation(hwndowner.into_param().abi(), keycredentialmanageroperationtype).ok() + KeyCredentialManagerShowUIOperation(hwndowner.param().abi(), keycredentialmanageroperationtype).ok() } #[inline] pub unsafe fn SCardAccessStartedEvent() -> windows_core::Result { @@ -396,20 +396,20 @@ pub unsafe fn SCardAccessStartedEvent() -> windows_core::Result(hcontext: usize, szreadername: P0, szgroupname: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardAddReaderToGroupA(hcontext : usize, szreadername : windows_core::PCSTR, szgroupname : windows_core::PCSTR) -> i32); - SCardAddReaderToGroupA(hcontext, szreadername.into_param().abi(), szgroupname.into_param().abi()) + SCardAddReaderToGroupA(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardAddReaderToGroupW(hcontext: usize, szreadername: P0, szgroupname: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardAddReaderToGroupW(hcontext : usize, szreadername : windows_core::PCWSTR, szgroupname : windows_core::PCWSTR) -> i32); - SCardAddReaderToGroupW(hcontext, szreadername.into_param().abi(), szgroupname.into_param().abi()) + SCardAddReaderToGroupW(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardAudit(hcontext: usize, dwevent: u32) -> i32 { @@ -429,18 +429,18 @@ pub unsafe fn SCardCancel(hcontext: usize) -> i32 { #[inline] pub unsafe fn SCardConnectA(hcontext: usize, szreader: P0, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szreader.into_param().abi(), dwsharemode, dwpreferredprotocols, phcard, pdwactiveprotocol) + SCardConnectA(hcontext, szreader.param().abi(), dwsharemode, dwpreferredprotocols, phcard, pdwactiveprotocol) } #[inline] pub unsafe fn SCardConnectW(hcontext: usize, szreader: P0, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szreader.into_param().abi(), dwsharemode, dwpreferredprotocols, phcard, pdwactiveprotocol) + SCardConnectW(hcontext, szreader.param().abi(), dwsharemode, dwpreferredprotocols, phcard, 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 { @@ -470,50 +470,50 @@ pub unsafe fn SCardEstablishContext(dwscope: SCARD_SCOPE, pvreserved1: Option<*c #[inline] pub unsafe fn SCardForgetCardTypeA(hcontext: usize, szcardname: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetCardTypeA(hcontext : usize, szcardname : windows_core::PCSTR) -> i32); - SCardForgetCardTypeA(hcontext, szcardname.into_param().abi()) + SCardForgetCardTypeA(hcontext, szcardname.param().abi()) } #[inline] pub unsafe fn SCardForgetCardTypeW(hcontext: usize, szcardname: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetCardTypeW(hcontext : usize, szcardname : windows_core::PCWSTR) -> i32); - SCardForgetCardTypeW(hcontext, szcardname.into_param().abi()) + SCardForgetCardTypeW(hcontext, szcardname.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderA(hcontext: usize, szreadername: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderA(hcontext : usize, szreadername : windows_core::PCSTR) -> i32); - SCardForgetReaderA(hcontext, szreadername.into_param().abi()) + SCardForgetReaderA(hcontext, szreadername.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderGroupA(hcontext: usize, szgroupname: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderGroupA(hcontext : usize, szgroupname : windows_core::PCSTR) -> i32); - SCardForgetReaderGroupA(hcontext, szgroupname.into_param().abi()) + SCardForgetReaderGroupA(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderGroupW(hcontext: usize, szgroupname: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderGroupW(hcontext : usize, szgroupname : windows_core::PCWSTR) -> i32); - SCardForgetReaderGroupW(hcontext, szgroupname.into_param().abi()) + SCardForgetReaderGroupW(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardForgetReaderW(hcontext: usize, szreadername: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardForgetReaderW(hcontext : usize, szreadername : windows_core::PCWSTR) -> i32); - SCardForgetReaderW(hcontext, szreadername.into_param().abi()) + SCardForgetReaderW(hcontext, szreadername.param().abi()) } #[inline] pub unsafe fn SCardFreeMemory(hcontext: usize, pvmem: *const core::ffi::c_void) -> i32 { @@ -528,82 +528,82 @@ pub unsafe fn SCardGetAttrib(hcard: usize, dwattrid: u32, pbattr: Option<*mut u8 #[inline] pub unsafe fn SCardGetCardTypeProviderNameA(hcontext: usize, szcardname: P0, dwproviderid: u32, szprovider: windows_core::PSTR, pcchprovider: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szcardname.into_param().abi(), dwproviderid, core::mem::transmute(szprovider), pcchprovider) + SCardGetCardTypeProviderNameA(hcontext, szcardname.param().abi(), dwproviderid, core::mem::transmute(szprovider), pcchprovider) } #[inline] pub unsafe fn SCardGetCardTypeProviderNameW(hcontext: usize, szcardname: P0, dwproviderid: u32, szprovider: windows_core::PWSTR, pcchprovider: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szcardname.into_param().abi(), dwproviderid, core::mem::transmute(szprovider), pcchprovider) + SCardGetCardTypeProviderNameW(hcontext, szcardname.param().abi(), dwproviderid, core::mem::transmute(szprovider), pcchprovider) } #[inline] pub unsafe fn SCardGetDeviceTypeIdA(hcontext: usize, szreadername: P0, pdwdevicetypeid: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetDeviceTypeIdA(hcontext : usize, szreadername : windows_core::PCSTR, pdwdevicetypeid : *mut u32) -> i32); - SCardGetDeviceTypeIdA(hcontext, szreadername.into_param().abi(), pdwdevicetypeid) + SCardGetDeviceTypeIdA(hcontext, szreadername.param().abi(), pdwdevicetypeid) } #[inline] pub unsafe fn SCardGetDeviceTypeIdW(hcontext: usize, szreadername: P0, pdwdevicetypeid: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetDeviceTypeIdW(hcontext : usize, szreadername : windows_core::PCWSTR, pdwdevicetypeid : *mut u32) -> i32); - SCardGetDeviceTypeIdW(hcontext, szreadername.into_param().abi(), pdwdevicetypeid) + SCardGetDeviceTypeIdW(hcontext, szreadername.param().abi(), pdwdevicetypeid) } #[inline] pub unsafe fn SCardGetProviderIdA(hcontext: usize, szcard: P0, pguidproviderid: *mut windows_core::GUID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetProviderIdA(hcontext : usize, szcard : windows_core::PCSTR, pguidproviderid : *mut windows_core::GUID) -> i32); - SCardGetProviderIdA(hcontext, szcard.into_param().abi(), pguidproviderid) + SCardGetProviderIdA(hcontext, szcard.param().abi(), pguidproviderid) } #[inline] pub unsafe fn SCardGetProviderIdW(hcontext: usize, szcard: P0, pguidproviderid: *mut windows_core::GUID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardGetProviderIdW(hcontext : usize, szcard : windows_core::PCWSTR, pguidproviderid : *mut windows_core::GUID) -> i32); - SCardGetProviderIdW(hcontext, szcard.into_param().abi(), pguidproviderid) + SCardGetProviderIdW(hcontext, szcard.param().abi(), pguidproviderid) } #[inline] pub unsafe fn SCardGetReaderDeviceInstanceIdA(hcontext: usize, szreadername: P0, szdeviceinstanceid: windows_core::PSTR, pcchdeviceinstanceid: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szreadername.into_param().abi(), core::mem::transmute(szdeviceinstanceid), pcchdeviceinstanceid) + SCardGetReaderDeviceInstanceIdA(hcontext, szreadername.param().abi(), core::mem::transmute(szdeviceinstanceid), pcchdeviceinstanceid) } #[inline] pub unsafe fn SCardGetReaderDeviceInstanceIdW(hcontext: usize, szreadername: P0, szdeviceinstanceid: windows_core::PWSTR, pcchdeviceinstanceid: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szreadername.into_param().abi(), core::mem::transmute(szdeviceinstanceid), pcchdeviceinstanceid) + SCardGetReaderDeviceInstanceIdW(hcontext, szreadername.param().abi(), core::mem::transmute(szdeviceinstanceid), pcchdeviceinstanceid) } #[inline] pub unsafe fn SCardGetReaderIconA(hcontext: usize, szreadername: P0, pbicon: *mut u8, pcbicon: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szreadername.into_param().abi(), pbicon, pcbicon) + SCardGetReaderIconA(hcontext, szreadername.param().abi(), pbicon, pcbicon) } #[inline] pub unsafe fn SCardGetReaderIconW(hcontext: usize, szreadername: P0, pbicon: *mut u8, pcbicon: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szreadername.into_param().abi(), pbicon, pcbicon) + SCardGetReaderIconW(hcontext, szreadername.param().abi(), pbicon, pcbicon) } #[inline] pub unsafe fn SCardGetStatusChangeA(hcontext: usize, dwtimeout: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32 { @@ -623,52 +623,52 @@ pub unsafe fn SCardGetTransmitCount(hcard: usize, pctransmitcount: *mut u32) -> #[inline] pub unsafe fn SCardIntroduceCardTypeA(hcontext: usize, szcardname: P0, pguidprimaryprovider: Option<*const windows_core::GUID>, rgguidinterfaces: Option<*const windows_core::GUID>, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szcardname.into_param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(std::ptr::null())), core::mem::transmute(rgguidinterfaces.unwrap_or(std::ptr::null())), dwinterfacecount, pbatr, pbatrmask, cbatrlen) + SCardIntroduceCardTypeA(hcontext, szcardname.param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(std::ptr::null())), core::mem::transmute(rgguidinterfaces.unwrap_or(std::ptr::null())), dwinterfacecount, pbatr, pbatrmask, cbatrlen) } #[inline] pub unsafe fn SCardIntroduceCardTypeW(hcontext: usize, szcardname: P0, pguidprimaryprovider: Option<*const windows_core::GUID>, rgguidinterfaces: Option<*const windows_core::GUID>, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szcardname.into_param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(std::ptr::null())), core::mem::transmute(rgguidinterfaces.unwrap_or(std::ptr::null())), dwinterfacecount, pbatr, pbatrmask, cbatrlen) + SCardIntroduceCardTypeW(hcontext, szcardname.param().abi(), core::mem::transmute(pguidprimaryprovider.unwrap_or(std::ptr::null())), core::mem::transmute(rgguidinterfaces.unwrap_or(std::ptr::null())), dwinterfacecount, pbatr, pbatrmask, cbatrlen) } #[inline] pub unsafe fn SCardIntroduceReaderA(hcontext: usize, szreadername: P0, szdevicename: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderA(hcontext : usize, szreadername : windows_core::PCSTR, szdevicename : windows_core::PCSTR) -> i32); - SCardIntroduceReaderA(hcontext, szreadername.into_param().abi(), szdevicename.into_param().abi()) + SCardIntroduceReaderA(hcontext, szreadername.param().abi(), szdevicename.param().abi()) } #[inline] pub unsafe fn SCardIntroduceReaderGroupA(hcontext: usize, szgroupname: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderGroupA(hcontext : usize, szgroupname : windows_core::PCSTR) -> i32); - SCardIntroduceReaderGroupA(hcontext, szgroupname.into_param().abi()) + SCardIntroduceReaderGroupA(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardIntroduceReaderGroupW(hcontext: usize, szgroupname: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderGroupW(hcontext : usize, szgroupname : windows_core::PCWSTR) -> i32); - SCardIntroduceReaderGroupW(hcontext, szgroupname.into_param().abi()) + SCardIntroduceReaderGroupW(hcontext, szgroupname.param().abi()) } #[inline] pub unsafe fn SCardIntroduceReaderW(hcontext: usize, szreadername: P0, szdevicename: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardIntroduceReaderW(hcontext : usize, szreadername : windows_core::PCWSTR, szdevicename : windows_core::PCWSTR) -> i32); - SCardIntroduceReaderW(hcontext, szreadername.into_param().abi(), szdevicename.into_param().abi()) + SCardIntroduceReaderW(hcontext, szreadername.param().abi(), szdevicename.param().abi()) } #[inline] pub unsafe fn SCardIsValidContext(hcontext: usize) -> i32 { @@ -688,18 +688,18 @@ pub unsafe fn SCardListCardsW(hcontext: usize, pbatr: Option<*const u8>, rgquidi #[inline] pub unsafe fn SCardListInterfacesA(hcontext: usize, szcard: P0, pguidinterfaces: *mut windows_core::GUID, pcguidinterfaces: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szcard.into_param().abi(), pguidinterfaces, pcguidinterfaces) + SCardListInterfacesA(hcontext, szcard.param().abi(), pguidinterfaces, pcguidinterfaces) } #[inline] pub unsafe fn SCardListInterfacesW(hcontext: usize, szcard: P0, pguidinterfaces: *mut windows_core::GUID, pcguidinterfaces: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szcard.into_param().abi(), pguidinterfaces, pcguidinterfaces) + SCardListInterfacesW(hcontext, szcard.param().abi(), pguidinterfaces, pcguidinterfaces) } #[inline] pub unsafe fn SCardListReaderGroupsA(hcontext: usize, mszgroups: windows_core::PSTR, pcchgroups: *mut u32) -> i32 { @@ -714,42 +714,42 @@ pub unsafe fn SCardListReaderGroupsW(hcontext: usize, mszgroups: windows_core::P #[inline] pub unsafe fn SCardListReadersA(hcontext: usize, mszgroups: P0, mszreaders: windows_core::PSTR, pcchreaders: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, mszgroups.into_param().abi(), core::mem::transmute(mszreaders), pcchreaders) + SCardListReadersA(hcontext, mszgroups.param().abi(), core::mem::transmute(mszreaders), pcchreaders) } #[inline] pub unsafe fn SCardListReadersW(hcontext: usize, mszgroups: P0, mszreaders: windows_core::PWSTR, pcchreaders: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, mszgroups.into_param().abi(), core::mem::transmute(mszreaders), pcchreaders) + SCardListReadersW(hcontext, mszgroups.param().abi(), core::mem::transmute(mszreaders), pcchreaders) } #[inline] pub unsafe fn SCardListReadersWithDeviceInstanceIdA(hcontext: usize, szdeviceinstanceid: P0, mszreaders: windows_core::PSTR, pcchreaders: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szdeviceinstanceid.into_param().abi(), core::mem::transmute(mszreaders), pcchreaders) + SCardListReadersWithDeviceInstanceIdA(hcontext, szdeviceinstanceid.param().abi(), core::mem::transmute(mszreaders), pcchreaders) } #[inline] pub unsafe fn SCardListReadersWithDeviceInstanceIdW(hcontext: usize, szdeviceinstanceid: P0, mszreaders: windows_core::PWSTR, pcchreaders: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, szdeviceinstanceid.into_param().abi(), core::mem::transmute(mszreaders), pcchreaders) + SCardListReadersWithDeviceInstanceIdW(hcontext, szdeviceinstanceid.param().abi(), core::mem::transmute(mszreaders), pcchreaders) } #[inline] pub unsafe fn SCardLocateCardsA(hcontext: usize, mszcards: P0, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, mszcards.into_param().abi(), rgreaderstates, creaders) + SCardLocateCardsA(hcontext, mszcards.param().abi(), rgreaderstates, creaders) } #[inline] pub unsafe fn SCardLocateCardsByATRA(hcontext: usize, rgatrmasks: *const SCARD_ATRMASK, catrs: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32 { @@ -764,26 +764,26 @@ pub unsafe fn SCardLocateCardsByATRW(hcontext: usize, rgatrmasks: *const SCARD_A #[inline] pub unsafe fn SCardLocateCardsW(hcontext: usize, mszcards: P0, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, mszcards.into_param().abi(), rgreaderstates, creaders) + SCardLocateCardsW(hcontext, mszcards.param().abi(), rgreaderstates, creaders) } #[inline] pub unsafe fn SCardReadCacheA(hcontext: usize, cardidentifier: *const windows_core::GUID, freshnesscounter: u32, lookupname: P0, data: *mut u8, datalen: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, cardidentifier, freshnesscounter, lookupname.into_param().abi(), data, datalen) + SCardReadCacheA(hcontext, cardidentifier, freshnesscounter, lookupname.param().abi(), data, datalen) } #[inline] pub unsafe fn SCardReadCacheW(hcontext: usize, cardidentifier: *const windows_core::GUID, freshnesscounter: u32, lookupname: P0, data: *mut u8, datalen: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, cardidentifier, freshnesscounter, lookupname.into_param().abi(), data, datalen) + SCardReadCacheW(hcontext, cardidentifier, freshnesscounter, lookupname.param().abi(), data, datalen) } #[inline] pub unsafe fn SCardReconnect(hcard: usize, dwsharemode: u32, dwpreferredprotocols: u32, dwinitialization: u32, pdwactiveprotocol: Option<*mut u32>) -> i32 { @@ -803,20 +803,20 @@ pub unsafe fn SCardReleaseStartedEvent() { #[inline] pub unsafe fn SCardRemoveReaderFromGroupA(hcontext: usize, szreadername: P0, szgroupname: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardRemoveReaderFromGroupA(hcontext : usize, szreadername : windows_core::PCSTR, szgroupname : windows_core::PCSTR) -> i32); - SCardRemoveReaderFromGroupA(hcontext, szreadername.into_param().abi(), szgroupname.into_param().abi()) + SCardRemoveReaderFromGroupA(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardRemoveReaderFromGroupW(hcontext: usize, szreadername: P0, szgroupname: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("winscard.dll" "system" fn SCardRemoveReaderFromGroupW(hcontext : usize, szreadername : windows_core::PCWSTR, szgroupname : windows_core::PCWSTR) -> i32); - SCardRemoveReaderFromGroupW(hcontext, szreadername.into_param().abi(), szgroupname.into_param().abi()) + SCardRemoveReaderFromGroupW(hcontext, szreadername.param().abi(), szgroupname.param().abi()) } #[inline] pub unsafe fn SCardSetAttrib(hcard: usize, dwattrid: u32, pbattr: &[u8]) -> i32 { @@ -826,20 +826,20 @@ pub unsafe fn SCardSetAttrib(hcard: usize, dwattrid: u32, pbattr: &[u8]) -> i32 #[inline] pub unsafe fn SCardSetCardTypeProviderNameA(hcontext: usize, szcardname: P0, dwproviderid: u32, szprovider: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcontext, szcardname.into_param().abi(), dwproviderid, szprovider.into_param().abi()) + SCardSetCardTypeProviderNameA(hcontext, szcardname.param().abi(), dwproviderid, szprovider.param().abi()) } #[inline] pub unsafe fn SCardSetCardTypeProviderNameW(hcontext: usize, szcardname: P0, dwproviderid: u32, szprovider: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcontext, szcardname.into_param().abi(), dwproviderid, szprovider.into_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 { @@ -876,18 +876,18 @@ pub unsafe fn SCardUIDlgSelectCardW(param0: *mut OPENCARDNAME_EXW) -> i32 { #[inline] pub unsafe fn SCardWriteCacheA(hcontext: usize, cardidentifier: *const windows_core::GUID, freshnesscounter: u32, lookupname: P0, data: &[u8]) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, cardidentifier, freshnesscounter, lookupname.into_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: P0, data: &[u8]) -> i32 where - P0: windows_core::IntoParam, + P0: 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(hcontext, cardidentifier, freshnesscounter, lookupname.into_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()) } pub const BinaryBlobCredential: CRED_MARSHAL_TYPE = CRED_MARSHAL_TYPE(3i32); pub const BinaryBlobForSystem: CRED_MARSHAL_TYPE = CRED_MARSHAL_TYPE(5i32); 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 c816f350a3..1c52a0f208 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 @@ -6,35 +6,35 @@ pub unsafe fn CryptCATAdminAcquireContext(phcatadmin: *mut isize, pgsubsystem: O #[inline] pub unsafe fn CryptCATAdminAcquireContext2(phcatadmin: *mut isize, pgsubsystem: Option<*const windows_core::GUID>, pwszhashalgorithm: P0, pstronghashpolicy: Option<*const super::CERT_STRONG_SIGN_PARA>, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminAcquireContext2(phcatadmin : *mut isize, pgsubsystem : *const windows_core::GUID, pwszhashalgorithm : windows_core::PCWSTR, pstronghashpolicy : *const super:: CERT_STRONG_SIGN_PARA, dwflags : u32) -> super::super::super::Foundation:: BOOL); - CryptCATAdminAcquireContext2(phcatadmin, core::mem::transmute(pgsubsystem.unwrap_or(std::ptr::null())), pwszhashalgorithm.into_param().abi(), core::mem::transmute(pstronghashpolicy.unwrap_or(std::ptr::null())), dwflags).ok() + CryptCATAdminAcquireContext2(phcatadmin, core::mem::transmute(pgsubsystem.unwrap_or(std::ptr::null())), pwszhashalgorithm.param().abi(), core::mem::transmute(pstronghashpolicy.unwrap_or(std::ptr::null())), dwflags).ok() } #[inline] pub unsafe fn CryptCATAdminAddCatalog(hcatadmin: isize, pwszcatalogfile: P0, pwszselectbasename: P1, dwflags: u32) -> isize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcatadmin, pwszcatalogfile.into_param().abi(), pwszselectbasename.into_param().abi(), dwflags) + CryptCATAdminAddCatalog(hcatadmin, pwszcatalogfile.param().abi(), pwszselectbasename.param().abi(), dwflags) } #[inline] pub unsafe fn CryptCATAdminCalcHashFromFileHandle(hfile: P0, pcbhash: *mut u32, pbhash: Option<*mut u8>, dwflags: u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), pcbhash, core::mem::transmute(pbhash.unwrap_or(std::ptr::null_mut())), dwflags) + CryptCATAdminCalcHashFromFileHandle(hfile.param().abi(), pcbhash, core::mem::transmute(pbhash.unwrap_or(std::ptr::null_mut())), dwflags) } #[inline] pub unsafe fn CryptCATAdminCalcHashFromFileHandle2(hcatadmin: isize, hfile: P0, pcbhash: *mut u32, pbhash: Option<*mut u8>, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcatadmin, hfile.into_param().abi(), pcbhash, core::mem::transmute(pbhash.unwrap_or(std::ptr::null_mut())), dwflags).ok() + CryptCATAdminCalcHashFromFileHandle2(hcatadmin, hfile.param().abi(), pcbhash, core::mem::transmute(pbhash.unwrap_or(std::ptr::null_mut())), dwflags).ok() } #[inline] pub unsafe fn CryptCATAdminEnumCatalogFromHash(hcatadmin: isize, pbhash: &[u8], dwflags: u32, phprevcatinfo: Option<*mut isize>) -> isize { @@ -44,10 +44,10 @@ pub unsafe fn CryptCATAdminEnumCatalogFromHash(hcatadmin: isize, pbhash: &[u8], #[inline] pub unsafe fn CryptCATAdminPauseServiceForBackup(dwflags: u32, fresume: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminPauseServiceForBackup(dwflags : u32, fresume : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - CryptCATAdminPauseServiceForBackup(dwflags, fresume.into_param().abi()) + CryptCATAdminPauseServiceForBackup(dwflags, fresume.param().abi()) } #[inline] pub unsafe fn CryptCATAdminReleaseCatalogContext(hcatadmin: isize, hcatinfo: isize, dwflags: u32) -> super::super::super::Foundation::BOOL { @@ -62,28 +62,28 @@ pub unsafe fn CryptCATAdminReleaseContext(hcatadmin: isize, dwflags: u32) -> sup #[inline] pub unsafe fn CryptCATAdminRemoveCatalog(hcatadmin: isize, pwszcatalogfile: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hcatadmin, pwszcatalogfile.into_param().abi(), dwflags).ok() + CryptCATAdminRemoveCatalog(hcatadmin, pwszcatalogfile.param().abi(), dwflags).ok() } #[inline] pub unsafe fn CryptCATAdminResolveCatalogPath(hcatadmin: isize, pwszcatalogfile: P0, pscatinfo: *mut CATALOG_INFO, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hcatadmin, pwszcatalogfile.into_param().abi(), pscatinfo, dwflags).ok() + CryptCATAdminResolveCatalogPath(hcatadmin, pwszcatalogfile.param().abi(), pscatinfo, dwflags).ok() } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATAllocSortedMemberInfo(hcatalog: P0, pwszreferencetag: P1) -> *mut CRYPTCATMEMBER where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcatalog.into_param().abi(), pwszreferencetag.into_param().abi()) + CryptCATAllocSortedMemberInfo(hcatalog.param().abi(), pwszreferencetag.param().abi()) } #[inline] pub unsafe fn CryptCATCDFClose(pcdf: *mut CRYPTCATCDF) -> super::super::super::Foundation::BOOL { @@ -110,10 +110,10 @@ pub unsafe fn CryptCATCDFEnumMembers(pcdf: *mut CRYPTCATCDF, pprevmember: *mut C #[inline] pub unsafe fn CryptCATCDFOpen(pwszfilepath: P0, pfnparseerror: PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATCDF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFOpen(pwszfilepath : windows_core::PCWSTR, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK) -> *mut CRYPTCATCDF); - CryptCATCDFOpen(pwszfilepath.into_param().abi(), pfnparseerror) + CryptCATCDFOpen(pwszfilepath.param().abi(), pfnparseerror) } #[inline] pub unsafe fn CryptCATCatalogInfoFromContext(hcatinfo: isize, pscatinfo: *mut CATALOG_INFO, dwflags: u32) -> windows_core::Result<()> { @@ -123,74 +123,74 @@ pub unsafe fn CryptCATCatalogInfoFromContext(hcatinfo: isize, pscatinfo: *mut CA #[inline] pub unsafe fn CryptCATClose(hcatalog: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATClose(hcatalog : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - CryptCATClose(hcatalog.into_param().abi()) + CryptCATClose(hcatalog.param().abi()) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATEnumerateAttr(hcatalog: P0, pcatmember: *mut CRYPTCATMEMBER, pprevattr: *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATEnumerateAttr(hcatalog : super::super::super::Foundation:: HANDLE, pcatmember : *mut CRYPTCATMEMBER, pprevattr : *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE); - CryptCATEnumerateAttr(hcatalog.into_param().abi(), pcatmember, pprevattr) + CryptCATEnumerateAttr(hcatalog.param().abi(), pcatmember, pprevattr) } #[inline] pub unsafe fn CryptCATEnumerateCatAttr(hcatalog: P0, pprevattr: *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATEnumerateCatAttr(hcatalog : super::super::super::Foundation:: HANDLE, pprevattr : *mut CRYPTCATATTRIBUTE) -> *mut CRYPTCATATTRIBUTE); - CryptCATEnumerateCatAttr(hcatalog.into_param().abi(), pprevattr) + CryptCATEnumerateCatAttr(hcatalog.param().abi(), pprevattr) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATEnumerateMember(hcatalog: P0, pprevmember: *mut CRYPTCATMEMBER) -> *mut CRYPTCATMEMBER where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATEnumerateMember(hcatalog : super::super::super::Foundation:: HANDLE, pprevmember : *mut CRYPTCATMEMBER) -> *mut CRYPTCATMEMBER); - CryptCATEnumerateMember(hcatalog.into_param().abi(), pprevmember) + CryptCATEnumerateMember(hcatalog.param().abi(), pprevmember) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATFreeSortedMemberInfo(hcatalog: P0, pcatmember: *mut CRYPTCATMEMBER) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATFreeSortedMemberInfo(hcatalog : super::super::super::Foundation:: HANDLE, pcatmember : *mut CRYPTCATMEMBER)); - CryptCATFreeSortedMemberInfo(hcatalog.into_param().abi(), pcatmember) + CryptCATFreeSortedMemberInfo(hcatalog.param().abi(), pcatmember) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATGetAttrInfo(hcatalog: P0, pcatmember: *mut CRYPTCATMEMBER, pwszreferencetag: P1) -> *mut CRYPTCATATTRIBUTE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcatalog.into_param().abi(), pcatmember, pwszreferencetag.into_param().abi()) + CryptCATGetAttrInfo(hcatalog.param().abi(), pcatmember, pwszreferencetag.param().abi()) } #[inline] pub unsafe fn CryptCATGetCatAttrInfo(hcatalog: P0, pwszreferencetag: P1) -> *mut CRYPTCATATTRIBUTE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcatalog.into_param().abi(), pwszreferencetag.into_param().abi()) + CryptCATGetCatAttrInfo(hcatalog.param().abi(), pwszreferencetag.param().abi()) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATGetMemberInfo(hcatalog: P0, pwszreferencetag: P1) -> *mut CRYPTCATMEMBER where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcatalog.into_param().abi(), pwszreferencetag.into_param().abi()) + CryptCATGetMemberInfo(hcatalog.param().abi(), pwszreferencetag.param().abi()) } #[inline] pub unsafe fn CryptCATHandleFromStore(pcatstore: *mut CRYPTCATSTORE) -> super::super::super::Foundation::HANDLE { @@ -200,65 +200,65 @@ pub unsafe fn CryptCATHandleFromStore(pcatstore: *mut CRYPTCATSTORE) -> super::s #[inline] pub unsafe fn CryptCATOpen(pwszfilename: P0, fdwopenflags: CRYPTCAT_OPEN_FLAGS, hprov: usize, dwpublicversion: CRYPTCAT_VERSION, dwencodingtype: u32) -> super::super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + 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.into_param().abi(), fdwopenflags, hprov, dwpublicversion, dwencodingtype) + CryptCATOpen(pwszfilename.param().abi(), fdwopenflags, hprov, dwpublicversion, dwencodingtype) } #[inline] pub unsafe fn CryptCATPersistStore(hcatalog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATPersistStore(hcatalog : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - CryptCATPersistStore(hcatalog.into_param().abi()).ok() + CryptCATPersistStore(hcatalog.param().abi()).ok() } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATPutAttrInfo(hcatalog: P0, pcatmember: *mut CRYPTCATMEMBER, pwszreferencetag: P1, dwattrtypeandaction: u32, cbdata: u32, pbdata: *mut u8) -> *mut CRYPTCATATTRIBUTE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcatalog.into_param().abi(), pcatmember, pwszreferencetag.into_param().abi(), dwattrtypeandaction, cbdata, pbdata) + CryptCATPutAttrInfo(hcatalog.param().abi(), pcatmember, pwszreferencetag.param().abi(), dwattrtypeandaction, cbdata, pbdata) } #[inline] pub unsafe fn CryptCATPutCatAttrInfo(hcatalog: P0, pwszreferencetag: P1, dwattrtypeandaction: u32, cbdata: u32, pbdata: *mut u8) -> *mut CRYPTCATATTRIBUTE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hcatalog.into_param().abi(), pwszreferencetag.into_param().abi(), dwattrtypeandaction, cbdata, pbdata) + CryptCATPutCatAttrInfo(hcatalog.param().abi(), pwszreferencetag.param().abi(), dwattrtypeandaction, cbdata, pbdata) } #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATPutMemberInfo(hcatalog: P0, pwszfilename: P1, pwszreferencetag: P2, pgsubjecttype: *mut windows_core::GUID, dwcertversion: u32, cbsipindirectdata: u32, pbsipindirectdata: *mut u8) -> *mut CRYPTCATMEMBER where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hcatalog.into_param().abi(), pwszfilename.into_param().abi(), pwszreferencetag.into_param().abi(), pgsubjecttype, dwcertversion, cbsipindirectdata, pbsipindirectdata) + CryptCATPutMemberInfo(hcatalog.param().abi(), pwszfilename.param().abi(), pwszreferencetag.param().abi(), pgsubjecttype, dwcertversion, cbsipindirectdata, pbsipindirectdata) } #[inline] pub unsafe fn CryptCATStoreFromHandle(hcatalog: P0) -> *mut CRYPTCATSTORE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn CryptCATStoreFromHandle(hcatalog : super::super::super::Foundation:: HANDLE) -> *mut CRYPTCATSTORE); - CryptCATStoreFromHandle(hcatalog.into_param().abi()) + CryptCATStoreFromHandle(hcatalog.param().abi()) } #[inline] pub unsafe fn IsCatalogFile(hfile: P0, pwszfilename: P1) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hfile.into_param().abi(), pwszfilename.into_param().abi()) + IsCatalogFile(hfile.param().abi(), pwszfilename.param().abi()) } pub const CRYPTCAT_ADDCATALOG_HARDLINK: u32 = 1u32; pub const CRYPTCAT_ADDCATALOG_NONE: u32 = 0u32; 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 9321a46684..181759b47f 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 @@ -31,18 +31,18 @@ pub unsafe fn CertSrvBackupGetDynamicFileListW(hbc: *const core::ffi::c_void, pp #[inline] pub unsafe fn CertSrvBackupOpenFileW(hbc: *mut core::ffi::c_void, pwszattachmentname: P0, cbreadhintsize: u32, plifilesize: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hbc, pwszattachmentname.into_param().abi(), cbreadhintsize, plifilesize).ok() + CertSrvBackupOpenFileW(hbc, pwszattachmentname.param().abi(), cbreadhintsize, plifilesize).ok() } #[inline] pub unsafe fn CertSrvBackupPrepareW(pwszservername: P0, grbitjet: u32, dwbackupflags: CSBACKUP_TYPE, phbc: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), grbitjet, dwbackupflags, phbc).ok() + CertSrvBackupPrepareW(pwszservername.param().abi(), grbitjet, dwbackupflags, 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<()> { @@ -57,10 +57,10 @@ pub unsafe fn CertSrvBackupTruncateLogs(hbc: *mut core::ffi::c_void) -> windows_ #[inline] pub unsafe fn CertSrvIsServerOnlineW(pwszservername: P0, pfserveronline: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("certadm.dll" "system" fn CertSrvIsServerOnlineW(pwszservername : windows_core::PCWSTR, pfserveronline : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); - CertSrvIsServerOnlineW(pwszservername.into_param().abi(), pfserveronline).ok() + CertSrvIsServerOnlineW(pwszservername.param().abi(), pfserveronline).ok() } #[inline] pub unsafe fn CertSrvRestoreEnd(hbc: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -75,10 +75,10 @@ pub unsafe fn CertSrvRestoreGetDatabaseLocationsW(hbc: *const core::ffi::c_void, #[inline] pub unsafe fn CertSrvRestorePrepareW(pwszservername: P0, dwrestoreflags: u32, phbc: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwrestoreflags, phbc).ok() + CertSrvRestorePrepareW(pwszservername.param().abi(), dwrestoreflags, phbc).ok() } #[inline] pub unsafe fn CertSrvRestoreRegisterComplete(hbc: *mut core::ffi::c_void, hrrestorestate: windows_core::HRESULT) -> windows_core::Result<()> { @@ -88,30 +88,30 @@ pub unsafe fn CertSrvRestoreRegisterComplete(hbc: *mut core::ffi::c_void, hrrest #[inline] pub unsafe fn CertSrvRestoreRegisterThroughFile(hbc: *mut core::ffi::c_void, pwszcheckpointfilepath: P0, pwszlogpath: P1, rgrstmap: *mut CSEDB_RSTMAPW, crstmap: i32, pwszbackuplogpath: P2, genlow: u32, genhigh: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hbc, pwszcheckpointfilepath.into_param().abi(), pwszlogpath.into_param().abi(), rgrstmap, crstmap, pwszbackuplogpath.into_param().abi(), genlow, genhigh).ok() + CertSrvRestoreRegisterThroughFile(hbc, pwszcheckpointfilepath.param().abi(), pwszlogpath.param().abi(), rgrstmap, crstmap, pwszbackuplogpath.param().abi(), genlow, genhigh).ok() } #[inline] pub unsafe fn CertSrvRestoreRegisterW(hbc: *mut core::ffi::c_void, pwszcheckpointfilepath: P0, pwszlogpath: P1, rgrstmap: *mut CSEDB_RSTMAPW, crstmap: i32, pwszbackuplogpath: P2, genlow: u32, genhigh: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hbc, pwszcheckpointfilepath.into_param().abi(), pwszlogpath.into_param().abi(), rgrstmap, crstmap, pwszbackuplogpath.into_param().abi(), genlow, genhigh).ok() + CertSrvRestoreRegisterW(hbc, pwszcheckpointfilepath.param().abi(), pwszlogpath.param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwcontrolflags, pcbout, ppbout).ok() + CertSrvServerControlW(pwszservername.param().abi(), dwcontrolflags, pcbout, ppbout).ok() } #[inline] pub unsafe fn PstAcquirePrivateKey(pcert: *const super::CERT_CONTEXT) -> super::super::super::Foundation::NTSTATUS { @@ -127,10 +127,10 @@ pub unsafe fn PstGetCertificateChain(pcert: *const super::CERT_CONTEXT, ptrusted #[inline] pub unsafe fn PstGetCertificates(ptargetname: *const super::super::super::Foundation::UNICODE_STRING, rgpcriteria: Option<&[super::CERT_SELECT_CRITERIA]>, bisclient: P0, pdwcertchaincontextcount: *mut u32, ppcertchaincontexts: *mut *mut *mut super::CERT_CHAIN_CONTEXT) -> super::super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(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_param().abi(), pdwcertchaincontextcount, 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.param().abi(), pdwcertchaincontextcount, ppcertchaincontexts) } #[cfg(feature = "Win32_Security_Authentication_Identity")] #[inline] @@ -158,10 +158,10 @@ pub unsafe fn PstMapCertificate(pcert: *const super::CERT_CONTEXT, ptokeninforma #[inline] pub unsafe fn PstValidate(ptargetname: Option<*const super::super::super::Foundation::UNICODE_STRING>, bisclient: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), bisclient.into_param().abi(), core::mem::transmute(prequestedissuancepolicy.unwrap_or(std::ptr::null())), core::mem::transmute(phadditionalcertstore.unwrap_or(std::ptr::null())), pcert, core::mem::transmute(pprovguid.unwrap_or(std::ptr::null_mut()))) + PstValidate(core::mem::transmute(ptargetname.unwrap_or(std::ptr::null())), bisclient.param().abi(), core::mem::transmute(prequestedissuancepolicy.unwrap_or(std::ptr::null())), core::mem::transmute(phadditionalcertstore.unwrap_or(std::ptr::null())), pcert, core::mem::transmute(pprovguid.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IAlternativeName, IAlternativeName_Vtbl, 0x728ab313_217d_11da_b2a4_000e7bbb2b09); @@ -171,24 +171,24 @@ windows_core::imp::interface_hierarchy!(IAlternativeName, windows_core::IUnknown impl IAlternativeName { pub unsafe fn InitializeFromString(&self, r#type: AlternativeNameType, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromString)(windows_core::Interface::as_raw(self), r#type, strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromString)(windows_core::Interface::as_raw(self), r#type, strvalue.param().abi()).ok() } pub unsafe fn InitializeFromRawData(&self, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromRawData)(windows_core::Interface::as_raw(self), r#type, encoding, strrawdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromRawData)(windows_core::Interface::as_raw(self), r#type, encoding, strrawdata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromOtherName(&self, pobjectid: P0, encoding: EncodingType, strrawdata: P1, tobewrapped: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromOtherName)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strrawdata.into_param().abi(), tobewrapped.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromOtherName)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strrawdata.param().abi(), tobewrapped.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -248,9 +248,9 @@ impl IAlternativeNames { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -284,10 +284,10 @@ windows_core::imp::interface_hierarchy!(IBinaryConverter, windows_core::IUnknown impl IBinaryConverter { pub unsafe fn StringToString(&self, strencodedin: P0, encodingin: EncodingType, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StringToString)(windows_core::Interface::as_raw(self), strencodedin.into_param().abi(), encodingin, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).StringToString)(windows_core::Interface::as_raw(self), strencodedin.param().abi(), encodingin, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VariantByteArrayToString(&self, pvarbytearray: *const windows_core::VARIANT, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -295,10 +295,10 @@ impl IBinaryConverter { } pub unsafe fn StringToVariantByteArray(&self, strencoded: P0, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StringToVariantByteArray)(windows_core::Interface::as_raw(self), strencoded.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).StringToVariantByteArray)(windows_core::Interface::as_raw(self), strencoded.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -317,10 +317,10 @@ windows_core::imp::interface_hierarchy!(IBinaryConverter2, windows_core::IUnknow impl IBinaryConverter2 { pub unsafe fn StringToString(&self, strencodedin: P0, encodingin: EncodingType, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StringToString)(windows_core::Interface::as_raw(self), strencodedin.into_param().abi(), encodingin, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.StringToString)(windows_core::Interface::as_raw(self), strencodedin.param().abi(), encodingin, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VariantByteArrayToString(&self, pvarbytearray: *const windows_core::VARIANT, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -328,10 +328,10 @@ impl IBinaryConverter2 { } pub unsafe fn StringToVariantByteArray(&self, strencoded: P0, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StringToVariantByteArray)(windows_core::Interface::as_raw(self), strencoded.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.StringToVariantByteArray)(windows_core::Interface::as_raw(self), strencoded.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn StringArrayToVariantArray(&self, pvarstringarray: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -357,38 +357,38 @@ windows_core::imp::interface_hierarchy!(ICEnroll, windows_core::IUnknown, super: impl ICEnroll { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), wszpkcs10filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), wszpkcs10filename.param().abi()).ok() } pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.param().abi()).ok() } pub unsafe fn createPKCS10(&self, dnname: P0, usage: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createPKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createPKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn acceptPKCS7(&self, pkcs7: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.into_param().abi()).ok() + (windows_core::Interface::vtable(self).acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.param().abi()).ok() } pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -400,9 +400,9 @@ impl ICEnroll { } pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.into_param().abi()).ok() + (windows_core::Interface::vtable(self).freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.param().abi()).ok() } pub unsafe fn MyStoreName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -410,9 +410,9 @@ impl ICEnroll { } pub unsafe fn SetMyStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn MyStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -420,9 +420,9 @@ impl ICEnroll { } pub unsafe fn SetMyStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn MyStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -437,9 +437,9 @@ impl ICEnroll { } pub unsafe fn SetCAStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn CAStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -447,9 +447,9 @@ impl ICEnroll { } pub unsafe fn SetCAStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn CAStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -464,9 +464,9 @@ impl ICEnroll { } pub unsafe fn SetRootStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RootStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -474,9 +474,9 @@ impl ICEnroll { } pub unsafe fn SetRootStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RootStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -491,9 +491,9 @@ impl ICEnroll { } pub unsafe fn SetRequestStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RequestStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -501,9 +501,9 @@ impl ICEnroll { } pub unsafe fn SetRequestStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RequestStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -518,9 +518,9 @@ impl ICEnroll { } pub unsafe fn SetContainerName(&self, bstrcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.param().abi()).ok() } pub unsafe fn ProviderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -528,9 +528,9 @@ impl ICEnroll { } pub unsafe fn SetProviderName(&self, bstrprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.param().abi()).ok() } pub unsafe fn ProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -559,9 +559,9 @@ impl ICEnroll { } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.param().abi()).ok() } pub unsafe fn GenKeyFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -576,9 +576,9 @@ impl ICEnroll { } pub unsafe fn SetDeleteRequestCert(&self, fdelete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.param().abi()).ok() } pub unsafe fn WriteCertToCSP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -586,9 +586,9 @@ impl ICEnroll { } pub unsafe fn SetWriteCertToCSP(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn SPCFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -596,9 +596,9 @@ impl ICEnroll { } pub unsafe fn SetSPCFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn PVKFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -606,9 +606,9 @@ impl ICEnroll { } pub unsafe fn SetPVKFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -616,9 +616,9 @@ impl ICEnroll { } pub unsafe fn SetHashAlgorithm(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -690,38 +690,38 @@ windows_core::imp::interface_hierarchy!(ICEnroll2, windows_core::IUnknown, super impl ICEnroll2 { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), wszpkcs10filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), wszpkcs10filename.param().abi()).ok() } pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.param().abi()).ok() } pub unsafe fn createPKCS10(&self, dnname: P0, usage: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.createPKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.createPKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn acceptPKCS7(&self, pkcs7: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.param().abi()).ok() } pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -733,9 +733,9 @@ impl ICEnroll2 { } pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.param().abi()).ok() } pub unsafe fn MyStoreName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -743,9 +743,9 @@ impl ICEnroll2 { } pub unsafe fn SetMyStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn MyStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -753,9 +753,9 @@ impl ICEnroll2 { } pub unsafe fn SetMyStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn MyStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -770,9 +770,9 @@ impl ICEnroll2 { } pub unsafe fn SetCAStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn CAStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -780,9 +780,9 @@ impl ICEnroll2 { } pub unsafe fn SetCAStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn CAStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -797,9 +797,9 @@ impl ICEnroll2 { } pub unsafe fn SetRootStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RootStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -807,9 +807,9 @@ impl ICEnroll2 { } pub unsafe fn SetRootStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RootStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -824,9 +824,9 @@ impl ICEnroll2 { } pub unsafe fn SetRequestStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RequestStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -834,9 +834,9 @@ impl ICEnroll2 { } pub unsafe fn SetRequestStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RequestStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -851,9 +851,9 @@ impl ICEnroll2 { } pub unsafe fn SetContainerName(&self, bstrcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.param().abi()).ok() } pub unsafe fn ProviderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -861,9 +861,9 @@ impl ICEnroll2 { } pub unsafe fn SetProviderName(&self, bstrprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.param().abi()).ok() } pub unsafe fn ProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -892,9 +892,9 @@ impl ICEnroll2 { } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.param().abi()).ok() } pub unsafe fn GenKeyFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -909,9 +909,9 @@ impl ICEnroll2 { } pub unsafe fn SetDeleteRequestCert(&self, fdelete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.param().abi()).ok() } pub unsafe fn WriteCertToCSP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -919,9 +919,9 @@ impl ICEnroll2 { } pub unsafe fn SetWriteCertToCSP(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn SPCFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -929,9 +929,9 @@ impl ICEnroll2 { } pub unsafe fn SetSPCFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn PVKFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -939,9 +939,9 @@ impl ICEnroll2 { } pub unsafe fn SetPVKFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -949,22 +949,22 @@ impl ICEnroll2 { } pub unsafe fn SetHashAlgorithm(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn addCertTypeToRequest(&self, certtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addCertTypeToRequest)(windows_core::Interface::as_raw(self), certtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addCertTypeToRequest)(windows_core::Interface::as_raw(self), certtype.param().abi()).ok() } pub unsafe fn addNameValuePairToSignature(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addNameValuePairToSignature)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addNameValuePairToSignature)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn WriteCertToUserDS(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -972,9 +972,9 @@ impl ICEnroll2 { } pub unsafe fn SetWriteCertToUserDS(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn EnableT61DNEncoding(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -982,9 +982,9 @@ impl ICEnroll2 { } pub unsafe fn SetEnableT61DNEncoding(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1006,38 +1006,38 @@ windows_core::imp::interface_hierarchy!(ICEnroll3, windows_core::IUnknown, super impl ICEnroll3 { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), wszpkcs10filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), wszpkcs10filename.param().abi()).ok() } pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.param().abi()).ok() } pub unsafe fn createPKCS10(&self, dnname: P0, usage: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.createPKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.createPKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn acceptPKCS7(&self, pkcs7: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.param().abi()).ok() } pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1049,9 +1049,9 @@ impl ICEnroll3 { } pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.param().abi()).ok() } pub unsafe fn MyStoreName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1059,9 +1059,9 @@ impl ICEnroll3 { } pub unsafe fn SetMyStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn MyStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1069,9 +1069,9 @@ impl ICEnroll3 { } pub unsafe fn SetMyStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn MyStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1086,9 +1086,9 @@ impl ICEnroll3 { } pub unsafe fn SetCAStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn CAStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1096,9 +1096,9 @@ impl ICEnroll3 { } pub unsafe fn SetCAStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn CAStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1113,9 +1113,9 @@ impl ICEnroll3 { } pub unsafe fn SetRootStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RootStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1123,9 +1123,9 @@ impl ICEnroll3 { } pub unsafe fn SetRootStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RootStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1140,9 +1140,9 @@ impl ICEnroll3 { } pub unsafe fn SetRequestStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RequestStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1150,9 +1150,9 @@ impl ICEnroll3 { } pub unsafe fn SetRequestStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RequestStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1167,9 +1167,9 @@ impl ICEnroll3 { } pub unsafe fn SetContainerName(&self, bstrcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.param().abi()).ok() } pub unsafe fn ProviderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1177,9 +1177,9 @@ impl ICEnroll3 { } pub unsafe fn SetProviderName(&self, bstrprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.param().abi()).ok() } pub unsafe fn ProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1208,9 +1208,9 @@ impl ICEnroll3 { } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.param().abi()).ok() } pub unsafe fn GenKeyFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1225,9 +1225,9 @@ impl ICEnroll3 { } pub unsafe fn SetDeleteRequestCert(&self, fdelete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.param().abi()).ok() } pub unsafe fn WriteCertToCSP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1235,9 +1235,9 @@ impl ICEnroll3 { } pub unsafe fn SetWriteCertToCSP(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn SPCFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1245,9 +1245,9 @@ impl ICEnroll3 { } pub unsafe fn SetSPCFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn PVKFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1255,9 +1255,9 @@ impl ICEnroll3 { } pub unsafe fn SetPVKFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1265,22 +1265,22 @@ impl ICEnroll3 { } pub unsafe fn SetHashAlgorithm(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn addCertTypeToRequest(&self, certtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.addCertTypeToRequest)(windows_core::Interface::as_raw(self), certtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.addCertTypeToRequest)(windows_core::Interface::as_raw(self), certtype.param().abi()).ok() } pub unsafe fn addNameValuePairToSignature(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.addNameValuePairToSignature)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.addNameValuePairToSignature)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn WriteCertToUserDS(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1288,9 +1288,9 @@ impl ICEnroll3 { } pub unsafe fn SetWriteCertToUserDS(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn EnableT61DNEncoding(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1298,15 +1298,15 @@ impl ICEnroll3 { } pub unsafe fn SetEnableT61DNEncoding(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn InstallPKCS7(&self, pkcs7: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallPKCS7)(windows_core::Interface::as_raw(self), pkcs7.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallPKCS7)(windows_core::Interface::as_raw(self), pkcs7.param().abi()).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1317,11 +1317,11 @@ impl ICEnroll3 { } pub unsafe fn GetKeyLen(&self, fmin: P0, fexchange: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKeyLen)(windows_core::Interface::as_raw(self), fmin.into_param().abi(), fexchange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetKeyLen)(windows_core::Interface::as_raw(self), fmin.param().abi(), fexchange.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EnumAlgs(&self, dwindex: i32, algclass: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1333,9 +1333,9 @@ impl ICEnroll3 { } pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.param().abi()).ok() } pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1350,9 +1350,9 @@ impl ICEnroll3 { } pub unsafe fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.param().abi()).ok() } pub unsafe fn LimitExchangeKeyToEncipherment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1360,9 +1360,9 @@ impl ICEnroll3 { } pub unsafe fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.param().abi()).ok() } pub unsafe fn EnableSMIMECapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1396,38 +1396,38 @@ windows_core::imp::interface_hierarchy!(ICEnroll4, windows_core::IUnknown, super impl ICEnroll4 { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), wszpkcs10filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.createFilePKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), wszpkcs10filename.param().abi()).ok() } pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.acceptFilePKCS7)(windows_core::Interface::as_raw(self), wszpkcs7filename.param().abi()).ok() } pub unsafe fn createPKCS10(&self, dnname: P0, usage: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.createPKCS10)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.createPKCS10)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn acceptPKCS7(&self, pkcs7: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.acceptPKCS7)(windows_core::Interface::as_raw(self), pkcs7.param().abi()).ok() } pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.getCertFromPKCS7)(windows_core::Interface::as_raw(self), wszpkcs7.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1439,9 +1439,9 @@ impl ICEnroll4 { } pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.freeRequestInfo)(windows_core::Interface::as_raw(self), pkcs7orpkcs10.param().abi()).ok() } pub unsafe fn MyStoreName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1449,9 +1449,9 @@ impl ICEnroll4 { } pub unsafe fn SetMyStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetMyStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn MyStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1459,9 +1459,9 @@ impl ICEnroll4 { } pub unsafe fn SetMyStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetMyStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn MyStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1476,9 +1476,9 @@ impl ICEnroll4 { } pub unsafe fn SetCAStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetCAStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn CAStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1486,9 +1486,9 @@ impl ICEnroll4 { } pub unsafe fn SetCAStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetCAStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn CAStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1503,9 +1503,9 @@ impl ICEnroll4 { } pub unsafe fn SetRootStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetRootStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RootStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1513,9 +1513,9 @@ impl ICEnroll4 { } pub unsafe fn SetRootStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetRootStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RootStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1530,9 +1530,9 @@ impl ICEnroll4 { } pub unsafe fn SetRequestStoreName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetRequestStoreName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn RequestStoreType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1540,9 +1540,9 @@ impl ICEnroll4 { } pub unsafe fn SetRequestStoreType(&self, bstrtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetRequestStoreType)(windows_core::Interface::as_raw(self), bstrtype.param().abi()).ok() } pub unsafe fn RequestStoreFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1557,9 +1557,9 @@ impl ICEnroll4 { } pub unsafe fn SetContainerName(&self, bstrcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetContainerName)(windows_core::Interface::as_raw(self), bstrcontainer.param().abi()).ok() } pub unsafe fn ProviderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1567,9 +1567,9 @@ impl ICEnroll4 { } pub unsafe fn SetProviderName(&self, bstrprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetProviderName)(windows_core::Interface::as_raw(self), bstrprovider.param().abi()).ok() } pub unsafe fn ProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1598,9 +1598,9 @@ impl ICEnroll4 { } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.param().abi()).ok() } pub unsafe fn GenKeyFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1615,9 +1615,9 @@ impl ICEnroll4 { } pub unsafe fn SetDeleteRequestCert(&self, fdelete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.param().abi()).ok() } pub unsafe fn WriteCertToCSP(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1625,9 +1625,9 @@ impl ICEnroll4 { } pub unsafe fn SetWriteCertToCSP(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn SPCFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1635,9 +1635,9 @@ impl ICEnroll4 { } pub unsafe fn SetSPCFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSPCFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn PVKFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1645,9 +1645,9 @@ impl ICEnroll4 { } pub unsafe fn SetPVKFileName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPVKFileName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1655,22 +1655,22 @@ impl ICEnroll4 { } pub unsafe fn SetHashAlgorithm(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn addCertTypeToRequest(&self, certtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.addCertTypeToRequest)(windows_core::Interface::as_raw(self), certtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.addCertTypeToRequest)(windows_core::Interface::as_raw(self), certtype.param().abi()).ok() } pub unsafe fn addNameValuePairToSignature(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.addNameValuePairToSignature)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.addNameValuePairToSignature)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn WriteCertToUserDS(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1678,9 +1678,9 @@ impl ICEnroll4 { } pub unsafe fn SetWriteCertToUserDS(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn EnableT61DNEncoding(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1688,15 +1688,15 @@ impl ICEnroll4 { } pub unsafe fn SetEnableT61DNEncoding(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn InstallPKCS7(&self, pkcs7: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstallPKCS7)(windows_core::Interface::as_raw(self), pkcs7.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstallPKCS7)(windows_core::Interface::as_raw(self), pkcs7.param().abi()).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self)).ok() @@ -1707,11 +1707,11 @@ impl ICEnroll4 { } pub unsafe fn GetKeyLen(&self, fmin: P0, fexchange: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetKeyLen)(windows_core::Interface::as_raw(self), fmin.into_param().abi(), fexchange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetKeyLen)(windows_core::Interface::as_raw(self), fmin.param().abi(), fexchange.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EnumAlgs(&self, dwindex: i32, algclass: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1723,9 +1723,9 @@ impl ICEnroll4 { } pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.param().abi()).ok() } pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1740,9 +1740,9 @@ impl ICEnroll4 { } pub unsafe fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.param().abi()).ok() } pub unsafe fn LimitExchangeKeyToEncipherment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1750,9 +1750,9 @@ impl ICEnroll4 { } pub unsafe fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.param().abi()).ok() } pub unsafe fn EnableSMIMECapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1760,9 +1760,9 @@ impl ICEnroll4 { } pub unsafe fn SetPrivateKeyArchiveCertificate(&self, bstrcert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrivateKeyArchiveCertificate)(windows_core::Interface::as_raw(self), bstrcert.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrivateKeyArchiveCertificate)(windows_core::Interface::as_raw(self), bstrcert.param().abi()).ok() } pub unsafe fn PrivateKeyArchiveCertificate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1770,9 +1770,9 @@ impl ICEnroll4 { } pub unsafe fn SetThumbPrint(&self, bstrthumbprint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbPrint)(windows_core::Interface::as_raw(self), bstrthumbprint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbPrint)(windows_core::Interface::as_raw(self), bstrthumbprint.param().abi()).ok() } pub unsafe fn ThumbPrint(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1780,38 +1780,38 @@ impl ICEnroll4 { } pub unsafe fn binaryToString(&self, flags: i32, strbinary: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).binaryToString)(windows_core::Interface::as_raw(self), flags, strbinary.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).binaryToString)(windows_core::Interface::as_raw(self), flags, strbinary.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn stringToBinary(&self, flags: i32, strencoded: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).stringToBinary)(windows_core::Interface::as_raw(self), flags, strencoded.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).stringToBinary)(windows_core::Interface::as_raw(self), flags, strencoded.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn addExtensionToRequest(&self, flags: i32, strname: P0, strvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addExtensionToRequest)(windows_core::Interface::as_raw(self), flags, strname.into_param().abi(), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addExtensionToRequest)(windows_core::Interface::as_raw(self), flags, strname.param().abi(), strvalue.param().abi()).ok() } pub unsafe fn addAttributeToRequest(&self, flags: i32, strname: P0, strvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addAttributeToRequest)(windows_core::Interface::as_raw(self), flags, strname.into_param().abi(), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addAttributeToRequest)(windows_core::Interface::as_raw(self), flags, strname.param().abi(), strvalue.param().abi()).ok() } pub unsafe fn addNameValuePairToRequest(&self, flags: i32, strname: P0, strvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addNameValuePairToRequest)(windows_core::Interface::as_raw(self), flags, strname.into_param().abi(), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addNameValuePairToRequest)(windows_core::Interface::as_raw(self), flags, strname.param().abi(), strvalue.param().abi()).ok() } pub unsafe fn resetExtensions(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).resetExtensions)(windows_core::Interface::as_raw(self)).ok() @@ -1821,67 +1821,67 @@ impl ICEnroll4 { } pub unsafe fn createRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: P0, usage: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createRequest)(windows_core::Interface::as_raw(self), flags, strdnname.into_param().abi(), usage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createRequest)(windows_core::Interface::as_raw(self), flags, strdnname.param().abi(), usage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn createFileRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: P0, strusage: P1, strrequestfilename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).createFileRequest)(windows_core::Interface::as_raw(self), flags, strdnname.into_param().abi(), strusage.into_param().abi(), strrequestfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).createFileRequest)(windows_core::Interface::as_raw(self), flags, strdnname.param().abi(), strusage.param().abi(), strrequestfilename.param().abi()).ok() } pub unsafe fn acceptResponse(&self, strresponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).acceptResponse)(windows_core::Interface::as_raw(self), strresponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).acceptResponse)(windows_core::Interface::as_raw(self), strresponse.param().abi()).ok() } pub unsafe fn acceptFileResponse(&self, strresponsefilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).acceptFileResponse)(windows_core::Interface::as_raw(self), strresponsefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).acceptFileResponse)(windows_core::Interface::as_raw(self), strresponsefilename.param().abi()).ok() } pub unsafe fn getCertFromResponse(&self, strresponse: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getCertFromResponse)(windows_core::Interface::as_raw(self), strresponse.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getCertFromResponse)(windows_core::Interface::as_raw(self), strresponse.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn getCertFromFileResponse(&self, strresponsefilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getCertFromFileResponse)(windows_core::Interface::as_raw(self), strresponsefilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getCertFromFileResponse)(windows_core::Interface::as_raw(self), strresponsefilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn createPFX(&self, strpassword: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).createPFX)(windows_core::Interface::as_raw(self), strpassword.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).createPFX)(windows_core::Interface::as_raw(self), strpassword.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn createFilePFX(&self, strpassword: P0, strpfxfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).createFilePFX)(windows_core::Interface::as_raw(self), strpassword.into_param().abi(), strpfxfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).createFilePFX)(windows_core::Interface::as_raw(self), strpassword.param().abi(), strpfxfilename.param().abi()).ok() } pub unsafe fn setPendingRequestInfo(&self, lrequestid: i32, strcadns: P0, strcaname: P1, strfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).setPendingRequestInfo)(windows_core::Interface::as_raw(self), lrequestid, strcadns.into_param().abi(), strcaname.into_param().abi(), strfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setPendingRequestInfo)(windows_core::Interface::as_raw(self), lrequestid, strcadns.param().abi(), strcaname.param().abi(), strfriendlyname.param().abi()).ok() } pub unsafe fn enumPendingRequest(&self, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1889,9 +1889,9 @@ impl ICEnroll4 { } pub unsafe fn removePendingRequest(&self, strthumbprint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removePendingRequest)(windows_core::Interface::as_raw(self), strthumbprint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removePendingRequest)(windows_core::Interface::as_raw(self), strthumbprint.param().abi()).ok() } pub unsafe fn GetKeyLenEx(&self, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1899,30 +1899,30 @@ impl ICEnroll4 { } pub unsafe fn InstallPKCS7Ex(&self, pkcs7: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstallPKCS7Ex)(windows_core::Interface::as_raw(self), pkcs7.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InstallPKCS7Ex)(windows_core::Interface::as_raw(self), pkcs7.param().abi(), &mut result__).map(|| result__) } pub unsafe fn addCertTypeToRequestEx(&self, ltype: ADDED_CERT_TYPE, bstroidorname: P0, lmajorversion: i32, fminorversion: P1, lminorversion: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addCertTypeToRequestEx)(windows_core::Interface::as_raw(self), ltype, bstroidorname.into_param().abi(), lmajorversion, fminorversion.into_param().abi(), lminorversion).ok() + (windows_core::Interface::vtable(self).addCertTypeToRequestEx)(windows_core::Interface::as_raw(self), ltype, bstroidorname.param().abi(), lmajorversion, fminorversion.param().abi(), lminorversion).ok() } pub unsafe fn getProviderType(&self, strprovname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getProviderType)(windows_core::Interface::as_raw(self), strprovname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).getProviderType)(windows_core::Interface::as_raw(self), strprovname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetSignerCertificate(&self, bstrcert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), bstrcert.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), bstrcert.param().abi()).ok() } pub unsafe fn SetClientId(&self, lclientid: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetClientId)(windows_core::Interface::as_raw(self), lclientid).ok() @@ -1933,18 +1933,18 @@ impl ICEnroll4 { } pub unsafe fn addBlobPropertyToCertificate(&self, lpropertyid: i32, lreserved: i32, bstrproperty: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addBlobPropertyToCertificate)(windows_core::Interface::as_raw(self), lpropertyid, lreserved, bstrproperty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addBlobPropertyToCertificate)(windows_core::Interface::as_raw(self), lpropertyid, lreserved, bstrproperty.param().abi()).ok() } pub unsafe fn resetBlobProperties(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).resetBlobProperties)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetIncludeSubjectKeyID(&self, finclude: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIncludeSubjectKeyID)(windows_core::Interface::as_raw(self), finclude.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIncludeSubjectKeyID)(windows_core::Interface::as_raw(self), finclude.param().abi()).ok() } pub unsafe fn IncludeSubjectKeyID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1997,11 +1997,11 @@ windows_core::imp::interface_hierarchy!(ICertAdmin, windows_core::IUnknown, supe impl ICertAdmin { pub unsafe fn IsValidCertificate(&self, strconfig: P0, strserialnumber: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsValidCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strserialnumber.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsValidCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strserialnumber.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetRevocationReason(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2009,58 +2009,58 @@ impl ICertAdmin { } pub unsafe fn RevokeCertificate(&self, strconfig: P0, strserialnumber: P1, reason: i32, date: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RevokeCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strserialnumber.into_param().abi(), reason, date).ok() + (windows_core::Interface::vtable(self).RevokeCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strserialnumber.param().abi(), reason, date).ok() } pub unsafe fn SetRequestAttributes(&self, strconfig: P0, requestid: i32, strattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestAttributes)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, strattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestAttributes)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, strattributes.param().abi()).ok() } pub unsafe fn SetCertificateExtension(&self, strconfig: P0, requestid: i32, strextensionname: P1, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, strextensionname.into_param().abi(), r#type, flags, core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, strextensionname.param().abi(), r#type, flags, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn DenyRequest(&self, strconfig: P0, requestid: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DenyRequest)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid).ok() + (windows_core::Interface::vtable(self).DenyRequest)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid).ok() } pub unsafe fn ResubmitRequest(&self, strconfig: P0, requestid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ResubmitRequest)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ResubmitRequest)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, &mut result__).map(|| result__) } pub unsafe fn PublishCRL(&self, strconfig: P0, date: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PublishCRL)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), date).ok() + (windows_core::Interface::vtable(self).PublishCRL)(windows_core::Interface::as_raw(self), strconfig.param().abi(), date).ok() } pub unsafe fn GetCRL(&self, strconfig: P0, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCRL)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCRL)(windows_core::Interface::as_raw(self), strconfig.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ImportCertificate(&self, strconfig: P0, strcertificate: P1, flags: CERT_IMPORT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strcertificate.into_param().abi(), flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ImportCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strcertificate.param().abi(), flags, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2086,11 +2086,11 @@ windows_core::imp::interface_hierarchy!(ICertAdmin2, windows_core::IUnknown, sup impl ICertAdmin2 { pub unsafe fn IsValidCertificate(&self, strconfig: P0, strserialnumber: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsValidCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strserialnumber.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsValidCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strserialnumber.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetRevocationReason(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2098,137 +2098,137 @@ impl ICertAdmin2 { } pub unsafe fn RevokeCertificate(&self, strconfig: P0, strserialnumber: P1, reason: i32, date: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RevokeCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strserialnumber.into_param().abi(), reason, date).ok() + (windows_core::Interface::vtable(self).base__.RevokeCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strserialnumber.param().abi(), reason, date).ok() } pub unsafe fn SetRequestAttributes(&self, strconfig: P0, requestid: i32, strattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequestAttributes)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, strattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequestAttributes)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, strattributes.param().abi()).ok() } pub unsafe fn SetCertificateExtension(&self, strconfig: P0, requestid: i32, strextensionname: P1, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCertificateExtension)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, strextensionname.into_param().abi(), r#type, flags, core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).base__.SetCertificateExtension)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, strextensionname.param().abi(), r#type, flags, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn DenyRequest(&self, strconfig: P0, requestid: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DenyRequest)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid).ok() + (windows_core::Interface::vtable(self).base__.DenyRequest)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid).ok() } pub unsafe fn ResubmitRequest(&self, strconfig: P0, requestid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ResubmitRequest)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.ResubmitRequest)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, &mut result__).map(|| result__) } pub unsafe fn PublishCRL(&self, strconfig: P0, date: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PublishCRL)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), date).ok() + (windows_core::Interface::vtable(self).base__.PublishCRL)(windows_core::Interface::as_raw(self), strconfig.param().abi(), date).ok() } pub unsafe fn GetCRL(&self, strconfig: P0, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCRL)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCRL)(windows_core::Interface::as_raw(self), strconfig.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ImportCertificate(&self, strconfig: P0, strcertificate: P1, flags: CERT_IMPORT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ImportCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strcertificate.into_param().abi(), flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.ImportCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strcertificate.param().abi(), flags, &mut result__).map(|| result__) } pub unsafe fn PublishCRLs(&self, strconfig: P0, date: f64, crlflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PublishCRLs)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), date, crlflags).ok() + (windows_core::Interface::vtable(self).PublishCRLs)(windows_core::Interface::as_raw(self), strconfig.param().abi(), date, crlflags).ok() } pub unsafe fn GetCAProperty(&self, strconfig: P0, propid: i32, propindex: i32, proptype: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, propindex, proptype, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, propindex, proptype, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCAProperty(&self, strconfig: P0, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCAProperty)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, propindex, proptype, core::mem::transmute(pvarpropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetCAProperty)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, propindex, proptype, core::mem::transmute(pvarpropertyvalue)).ok() } pub unsafe fn GetCAPropertyFlags(&self, strconfig: P0, propid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, &mut result__).map(|| result__) } pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: P0, propid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetArchivedKey(&self, strconfig: P0, requestid: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetArchivedKey)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetArchivedKey)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetConfigEntry(&self, strconfig: P0, strnodepath: P1, strentryname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConfigEntry)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strnodepath.into_param().abi(), strentryname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetConfigEntry)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strnodepath.param().abi(), strentryname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetConfigEntry(&self, strconfig: P0, strnodepath: P1, strentryname: P2, pvarentry: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConfigEntry)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strnodepath.into_param().abi(), strentryname.into_param().abi(), core::mem::transmute(pvarentry)).ok() + (windows_core::Interface::vtable(self).SetConfigEntry)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strnodepath.param().abi(), strentryname.param().abi(), core::mem::transmute(pvarentry)).ok() } pub unsafe fn ImportKey(&self, strconfig: P0, requestid: i32, strcerthash: P1, flags: CERT_IMPORT_FLAGS, strkey: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportKey)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, strcerthash.into_param().abi(), flags, strkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImportKey)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, strcerthash.param().abi(), flags, strkey.param().abi()).ok() } pub unsafe fn GetMyRoles(&self, strconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMyRoles)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMyRoles)(windows_core::Interface::as_raw(self), strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DeleteRow(&self, strconfig: P0, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DeleteRow)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), flags, date, table, rowid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DeleteRow)(windows_core::Interface::as_raw(self), strconfig.param().abi(), flags, date, table, rowid, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2263,10 +2263,10 @@ impl ICertConfig { } pub unsafe fn GetField(&self, strfieldname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetField)(windows_core::Interface::as_raw(self), strfieldname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetField)(windows_core::Interface::as_raw(self), strfieldname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetConfig(&self, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2298,10 +2298,10 @@ impl ICertConfig2 { } pub unsafe fn GetField(&self, strfieldname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetField)(windows_core::Interface::as_raw(self), strfieldname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetField)(windows_core::Interface::as_raw(self), strfieldname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetConfig(&self, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2309,9 +2309,9 @@ impl ICertConfig2 { } pub unsafe fn SetSharedFolder(&self, strsharedfolder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSharedFolder)(windows_core::Interface::as_raw(self), strsharedfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSharedFolder)(windows_core::Interface::as_raw(self), strsharedfolder.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2328,9 +2328,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeAltName, windows_core::IUnkno impl ICertEncodeAltName { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetNameCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2349,9 +2349,9 @@ impl ICertEncodeAltName { } pub unsafe fn SetNameEntry(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), nameindex, namechoice, strname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), nameindex, namechoice, strname.param().abi()).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2378,9 +2378,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeAltName2, windows_core::IUnkn impl ICertEncodeAltName2 { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetNameCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2399,9 +2399,9 @@ impl ICertEncodeAltName2 { } pub unsafe fn SetNameEntry(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNameEntry)(windows_core::Interface::as_raw(self), nameindex, namechoice, strname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNameEntry)(windows_core::Interface::as_raw(self), nameindex, namechoice, strname.param().abi()).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2409,9 +2409,9 @@ impl ICertEncodeAltName2 { } pub unsafe fn DecodeBlob(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2423,9 +2423,9 @@ impl ICertEncodeAltName2 { } pub unsafe fn SetNameEntryBlob(&self, nameindex: i32, namechoice: i32, strname: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNameEntryBlob)(windows_core::Interface::as_raw(self), nameindex, namechoice, strname.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).SetNameEntryBlob)(windows_core::Interface::as_raw(self), nameindex, namechoice, strname.param().abi(), encoding).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2445,9 +2445,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeBitString, windows_core::IUnk impl ICertEncodeBitString { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetBitCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2459,10 +2459,10 @@ impl ICertEncodeBitString { } pub unsafe fn Encode(&self, bitcount: i32, strbitstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), bitcount, strbitstring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), bitcount, strbitstring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2482,9 +2482,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeBitString2, windows_core::IUn impl ICertEncodeBitString2 { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetBitCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2496,23 +2496,23 @@ impl ICertEncodeBitString2 { } pub unsafe fn Encode(&self, bitcount: i32, strbitstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Encode)(windows_core::Interface::as_raw(self), bitcount, strbitstring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Encode)(windows_core::Interface::as_raw(self), bitcount, strbitstring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DecodeBlob(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn EncodeBlob(&self, bitcount: i32, strbitstring: P0, encodingin: EncodingType, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), bitcount, strbitstring.into_param().abi(), encodingin, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EncodeBlob)(windows_core::Interface::as_raw(self), bitcount, strbitstring.param().abi(), encodingin, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetBitStringBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2535,9 +2535,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeCRLDistInfo, windows_core::IU impl ICertEncodeCRLDistInfo { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetDistPointCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2563,9 +2563,9 @@ impl ICertEncodeCRLDistInfo { } pub unsafe fn SetNameEntry(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), distpointindex, nameindex, namechoice, strname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNameEntry)(windows_core::Interface::as_raw(self), distpointindex, nameindex, namechoice, strname.param().abi()).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2594,9 +2594,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeCRLDistInfo2, windows_core::I impl ICertEncodeCRLDistInfo2 { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetDistPointCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2622,9 +2622,9 @@ impl ICertEncodeCRLDistInfo2 { } pub unsafe fn SetNameEntry(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNameEntry)(windows_core::Interface::as_raw(self), distpointindex, nameindex, namechoice, strname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNameEntry)(windows_core::Interface::as_raw(self), distpointindex, nameindex, namechoice, strname.param().abi()).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2632,9 +2632,9 @@ impl ICertEncodeCRLDistInfo2 { } pub unsafe fn DecodeBlob(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2656,9 +2656,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeDateArray, windows_core::IUnk impl ICertEncodeDateArray { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2698,9 +2698,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeDateArray2, windows_core::IUn impl ICertEncodeDateArray2 { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2722,9 +2722,9 @@ impl ICertEncodeDateArray2 { } pub unsafe fn DecodeBlob(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2746,9 +2746,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeLongArray, windows_core::IUnk impl ICertEncodeLongArray { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2788,9 +2788,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeLongArray2, windows_core::IUn impl ICertEncodeLongArray2 { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2812,9 +2812,9 @@ impl ICertEncodeLongArray2 { } pub unsafe fn DecodeBlob(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2836,9 +2836,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeStringArray, windows_core::IU impl ICertEncodeStringArray { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetStringType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2857,9 +2857,9 @@ impl ICertEncodeStringArray { } pub unsafe fn SetValue(&self, index: i32, str: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), index, str.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), index, str.param().abi()).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2886,9 +2886,9 @@ windows_core::imp::interface_hierarchy!(ICertEncodeStringArray2, windows_core::I impl ICertEncodeStringArray2 { pub unsafe fn Decode(&self, strbinary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Decode)(windows_core::Interface::as_raw(self), strbinary.param().abi()).ok() } pub unsafe fn GetStringType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2907,9 +2907,9 @@ impl ICertEncodeStringArray2 { } pub unsafe fn SetValue(&self, index: i32, str: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValue)(windows_core::Interface::as_raw(self), index, str.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValue)(windows_core::Interface::as_raw(self), index, str.param().abi()).ok() } pub unsafe fn Encode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2917,9 +2917,9 @@ impl ICertEncodeStringArray2 { } pub unsafe fn DecodeBlob(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).DecodeBlob)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2941,10 +2941,10 @@ windows_core::imp::interface_hierarchy!(ICertExit, windows_core::IUnknown, super impl ICertExit { pub unsafe fn Initialize(&self, strconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strconfig.param().abi(), &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), exitevent, context).ok() @@ -2970,10 +2970,10 @@ windows_core::imp::interface_hierarchy!(ICertExit2, windows_core::IUnknown, supe impl ICertExit2 { pub unsafe fn Initialize(&self, strconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Notify(&self, exitevent: i32, context: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), exitevent, context).ok() @@ -3022,27 +3022,27 @@ windows_core::imp::interface_hierarchy!(ICertManageModule, windows_core::IUnknow impl ICertManageModule { pub unsafe fn GetProperty(&self, strconfig: P0, strstoragelocation: P1, strpropertyname: P2, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strstoragelocation.into_param().abi(), strpropertyname.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strstoragelocation.param().abi(), strpropertyname.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, strconfig: P0, strstoragelocation: P1, strpropertyname: P2, flags: i32, pvarproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strstoragelocation.into_param().abi(), strpropertyname.into_param().abi(), flags, core::mem::transmute(pvarproperty)).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strstoragelocation.param().abi(), strpropertyname.param().abi(), flags, core::mem::transmute(pvarproperty)).ok() } pub unsafe fn Configure(&self, strconfig: P0, strstoragelocation: P1, flags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strstoragelocation.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strstoragelocation.param().abi(), flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3061,16 +3061,16 @@ windows_core::imp::interface_hierarchy!(ICertPolicy, windows_core::IUnknown, sup impl ICertPolicy { pub unsafe fn Initialize(&self, strconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strconfig.param().abi()).ok() } pub unsafe fn VerifyRequest(&self, strconfig: P0, context: i32, bnewrequest: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VerifyRequest)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), context, bnewrequest, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VerifyRequest)(windows_core::Interface::as_raw(self), strconfig.param().abi(), context, bnewrequest, flags, &mut result__).map(|| result__) } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3097,16 +3097,16 @@ windows_core::imp::interface_hierarchy!(ICertPolicy2, windows_core::IUnknown, su impl ICertPolicy2 { pub unsafe fn Initialize(&self, strconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), strconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), strconfig.param().abi()).ok() } pub unsafe fn VerifyRequest(&self, strconfig: P0, context: i32, bnewrequest: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VerifyRequest)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), context, bnewrequest, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.VerifyRequest)(windows_core::Interface::as_raw(self), strconfig.param().abi(), context, bnewrequest, flags, &mut result__).map(|| result__) } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3152,9 +3152,9 @@ impl ICertProperties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -3164,10 +3164,10 @@ impl ICertProperties { } pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3196,16 +3196,16 @@ windows_core::imp::interface_hierarchy!(ICertProperty, windows_core::IUnknown, s impl ICertProperty { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3220,17 +3220,17 @@ impl ICertProperty { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3253,16 +3253,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyArchived, windows_core::IUn impl ICertPropertyArchived { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3277,23 +3277,23 @@ impl ICertPropertyArchived { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, archivedvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), archivedvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), archivedvalue.param().abi()).ok() } pub unsafe fn Archived(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3315,16 +3315,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyArchivedKeyHash, windows_co impl ICertPropertyArchivedKeyHash { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3339,23 +3339,23 @@ impl ICertPropertyArchivedKeyHash { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, encoding: EncodingType, strarchivedkeyhashvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strarchivedkeyhashvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strarchivedkeyhashvalue.param().abi()).ok() } pub unsafe fn get_ArchivedKeyHash(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3377,16 +3377,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyAutoEnroll, windows_core::I impl ICertPropertyAutoEnroll { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3401,23 +3401,23 @@ impl ICertPropertyAutoEnroll { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strtemplatename.param().abi()).ok() } pub unsafe fn TemplateName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3439,16 +3439,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyBackedUp, windows_core::IUn impl ICertPropertyBackedUp { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3463,29 +3463,29 @@ impl ICertPropertyBackedUp { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeFromCurrentTime(&self, backedupvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromCurrentTime)(windows_core::Interface::as_raw(self), backedupvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromCurrentTime)(windows_core::Interface::as_raw(self), backedupvalue.param().abi()).ok() } pub unsafe fn Initialize(&self, backedupvalue: P0, date: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), backedupvalue.into_param().abi(), date).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), backedupvalue.param().abi(), date).ok() } pub unsafe fn BackedUpValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3513,16 +3513,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyDescription, windows_core:: impl ICertPropertyDescription { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3537,23 +3537,23 @@ impl ICertPropertyDescription { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, strdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strdescription.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3575,16 +3575,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyEnrollment, windows_core::I impl ICertPropertyEnrollment { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3599,25 +3599,25 @@ impl ICertPropertyEnrollment { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, requestid: i32, strcadnsname: P0, strcaname: P1, strfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requestid, strcadnsname.into_param().abi(), strcaname.into_param().abi(), strfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), requestid, strcadnsname.param().abi(), strcaname.param().abi(), strfriendlyname.param().abi()).ok() } pub unsafe fn RequestId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3654,16 +3654,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyEnrollmentPolicyServer, win impl ICertPropertyEnrollmentPolicyServer { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3678,26 +3678,26 @@ impl ICertPropertyEnrollmentPolicyServer { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: P0, strurl: P1, strid: P2, strenrollmentserverurl: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), propertyflags, authflags, enrollmentserverauthflags, urlflags, strrequestid.into_param().abi(), strurl.into_param().abi(), strid.into_param().abi(), strenrollmentserverurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), propertyflags, authflags, enrollmentserverauthflags, urlflags, strrequestid.param().abi(), strurl.param().abi(), strid.param().abi(), strenrollmentserverurl.param().abi()).ok() } pub unsafe fn GetPolicyServerUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3754,16 +3754,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyFriendlyName, windows_core: impl ICertPropertyFriendlyName { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3778,23 +3778,23 @@ impl ICertPropertyFriendlyName { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, strfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strfriendlyname.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3816,16 +3816,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyKeyProvInfo, windows_core:: impl ICertPropertyKeyProvInfo { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3840,24 +3840,24 @@ impl ICertPropertyKeyProvInfo { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PrivateKey(&self) -> windows_core::Result { @@ -3886,16 +3886,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyRenewal, windows_core::IUnk impl ICertPropertyRenewal { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3910,30 +3910,30 @@ impl ICertPropertyRenewal { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, encoding: EncodingType, strrenewalvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strrenewalvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strrenewalvalue.param().abi()).ok() } pub unsafe fn InitializeFromCertificateHash(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromCertificateHash)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificateHash)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn get_Renewal(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3956,16 +3956,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertyRequestOriginator, windows_ impl ICertPropertyRequestOriginator { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3980,23 +3980,23 @@ impl ICertPropertyRequestOriginator { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, strrequestoriginator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strrequestoriginator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strrequestoriginator.param().abi()).ok() } pub unsafe fn InitializeFromLocalRequestOriginator(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeFromLocalRequestOriginator)(windows_core::Interface::as_raw(self)).ok() @@ -4022,16 +4022,16 @@ windows_core::imp::interface_hierarchy!(ICertPropertySHA1Hash, windows_core::IUn impl ICertPropertySHA1Hash { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4046,23 +4046,23 @@ impl ICertPropertySHA1Hash { } pub unsafe fn RemoveFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFromCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn SetValueOnCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetValueOnCertificate)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), encoding, strcertificate.param().abi()).ok() } pub unsafe fn Initialize(&self, encoding: EncodingType, strrenewalvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strrenewalvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strrenewalvalue.param().abi()).ok() } pub unsafe fn get_SHA1Hash(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4084,19 +4084,19 @@ windows_core::imp::interface_hierarchy!(ICertRequest, windows_core::IUnknown, su impl ICertRequest { pub unsafe fn Submit(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), flags, strrequest.into_param().abi(), strattributes.into_param().abi(), strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), flags, strrequest.param().abi(), strattributes.param().abi(), strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RetrievePending(&self, requestid: i32, strconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RetrievePending)(windows_core::Interface::as_raw(self), requestid, strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RetrievePending)(windows_core::Interface::as_raw(self), requestid, strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetLastStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4112,10 +4112,10 @@ impl ICertRequest { } pub unsafe fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: P0, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCACertificate)(windows_core::Interface::as_raw(self), fexchangecertificate, strconfig.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCACertificate)(windows_core::Interface::as_raw(self), fexchangecertificate, strconfig.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificate(&self, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4142,19 +4142,19 @@ windows_core::imp::interface_hierarchy!(ICertRequest2, windows_core::IUnknown, s impl ICertRequest2 { pub unsafe fn Submit(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), flags, strrequest.into_param().abi(), strattributes.into_param().abi(), strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Submit)(windows_core::Interface::as_raw(self), flags, strrequest.param().abi(), strattributes.param().abi(), strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RetrievePending(&self, requestid: i32, strconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RetrievePending)(windows_core::Interface::as_raw(self), requestid, strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RetrievePending)(windows_core::Interface::as_raw(self), requestid, strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetLastStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4170,10 +4170,10 @@ impl ICertRequest2 { } pub unsafe fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: P0, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCACertificate)(windows_core::Interface::as_raw(self), fexchangecertificate, strconfig.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCACertificate)(windows_core::Interface::as_raw(self), fexchangecertificate, strconfig.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificate(&self, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4181,11 +4181,11 @@ impl ICertRequest2 { } pub unsafe fn GetIssuedCertificate(&self, strconfig: P0, requestid: i32, strserialnumber: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIssuedCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, strserialnumber.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIssuedCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, strserialnumber.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4193,24 +4193,24 @@ impl ICertRequest2 { } pub unsafe fn GetCAProperty(&self, strconfig: P0, propid: i32, propindex: i32, proptype: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, propindex, proptype, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, propindex, proptype, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCAPropertyFlags(&self, strconfig: P0, propid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCAPropertyFlags)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, &mut result__).map(|| result__) } pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: P0, propid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } 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__ = std::mem::zeroed(); @@ -4236,19 +4236,19 @@ windows_core::imp::interface_hierarchy!(ICertRequest3, windows_core::IUnknown, s impl ICertRequest3 { pub unsafe fn Submit(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Submit)(windows_core::Interface::as_raw(self), flags, strrequest.into_param().abi(), strattributes.into_param().abi(), strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.Submit)(windows_core::Interface::as_raw(self), flags, strrequest.param().abi(), strattributes.param().abi(), strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RetrievePending(&self, requestid: i32, strconfig: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.RetrievePending)(windows_core::Interface::as_raw(self), requestid, strconfig.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.RetrievePending)(windows_core::Interface::as_raw(self), requestid, strconfig.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetLastStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4264,10 +4264,10 @@ impl ICertRequest3 { } pub unsafe fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: P0, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetCACertificate)(windows_core::Interface::as_raw(self), fexchangecertificate, strconfig.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetCACertificate)(windows_core::Interface::as_raw(self), fexchangecertificate, strconfig.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificate(&self, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4275,11 +4275,11 @@ impl ICertRequest3 { } pub unsafe fn GetIssuedCertificate(&self, strconfig: P0, requestid: i32, strserialnumber: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetIssuedCertificate)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), requestid, strserialnumber.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetIssuedCertificate)(windows_core::Interface::as_raw(self), strconfig.param().abi(), requestid, strserialnumber.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4287,24 +4287,24 @@ impl ICertRequest3 { } pub unsafe fn GetCAProperty(&self, strconfig: P0, propid: i32, propindex: i32, proptype: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCAProperty)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, propindex, proptype, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCAProperty)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, propindex, proptype, flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCAPropertyFlags(&self, strconfig: P0, propid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCAPropertyFlags)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetCAPropertyFlags)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, &mut result__).map(|| result__) } pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: P0, propid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), propid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCAPropertyDisplayName)(windows_core::Interface::as_raw(self), strconfig.param().abi(), propid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } 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__ = std::mem::zeroed(); @@ -4312,10 +4312,10 @@ impl ICertRequest3 { } pub unsafe fn SetCredential(&self, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), hwnd, authtype, strcredential.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), hwnd, authtype, strcredential.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn GetRequestIdString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4323,12 +4323,12 @@ impl ICertRequest3 { } pub unsafe fn GetIssuedCertificate2(&self, strconfig: P0, strrequestid: P1, strserialnumber: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIssuedCertificate2)(windows_core::Interface::as_raw(self), strconfig.into_param().abi(), strrequestid.into_param().abi(), strserialnumber.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIssuedCertificate2)(windows_core::Interface::as_raw(self), strconfig.param().abi(), strrequestid.param().abi(), strserialnumber.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetRefreshPolicy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4349,23 +4349,23 @@ windows_core::imp::interface_hierarchy!(ICertRequestD, windows_core::IUnknown); impl ICertRequestD { pub unsafe fn Request(&self, dwflags: u32, pwszauthority: P0, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: P1, pctbrequest: *const CERTTRANSBLOB, pctbcertchain: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), dwflags, pwszauthority.into_param().abi(), pdwrequestid, pdwdisposition, pwszattributes.into_param().abi(), pctbrequest, pctbcertchain, pctbencodedcert, pctbdispositionmessage).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), dwflags, pwszauthority.param().abi(), pdwrequestid, pdwdisposition, pwszattributes.param().abi(), pctbrequest, pctbcertchain, pctbencodedcert, pctbdispositionmessage).ok() } pub unsafe fn GetCACert(&self, fchain: u32, pwszauthority: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCACert)(windows_core::Interface::as_raw(self), fchain, pwszauthority.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Ping)(windows_core::Interface::as_raw(self), pwszauthority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Ping)(windows_core::Interface::as_raw(self), pwszauthority.param().abi()).ok() } } #[repr(C)] @@ -4380,50 +4380,50 @@ windows_core::imp::interface_hierarchy!(ICertRequestD2, windows_core::IUnknown, impl ICertRequestD2 { pub unsafe fn Request(&self, dwflags: u32, pwszauthority: P0, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: P1, pctbrequest: *const CERTTRANSBLOB, pctbcertchain: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Request)(windows_core::Interface::as_raw(self), dwflags, pwszauthority.into_param().abi(), pdwrequestid, pdwdisposition, pwszattributes.into_param().abi(), pctbrequest, pctbcertchain, pctbencodedcert, pctbdispositionmessage).ok() + (windows_core::Interface::vtable(self).base__.Request)(windows_core::Interface::as_raw(self), dwflags, pwszauthority.param().abi(), pdwrequestid, pdwdisposition, pwszattributes.param().abi(), pctbrequest, pctbcertchain, pctbencodedcert, pctbdispositionmessage).ok() } pub unsafe fn GetCACert(&self, fchain: u32, pwszauthority: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCACert)(windows_core::Interface::as_raw(self), fchain, pwszauthority.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Ping)(windows_core::Interface::as_raw(self), pwszauthority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Ping)(windows_core::Interface::as_raw(self), pwszauthority.param().abi()).ok() } pub unsafe fn Request2(&self, pwszauthority: P0, dwflags: u32, pwszserialnumber: P1, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: P2, pctbrequest: *const CERTTRANSBLOB, pctbfullresponse: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Request2)(windows_core::Interface::as_raw(self), pwszauthority.into_param().abi(), dwflags, pwszserialnumber.into_param().abi(), pdwrequestid, pdwdisposition, pwszattributes.into_param().abi(), pctbrequest, pctbfullresponse, pctbencodedcert, pctbdispositionmessage).ok() + (windows_core::Interface::vtable(self).Request2)(windows_core::Interface::as_raw(self), pwszauthority.param().abi(), dwflags, pwszserialnumber.param().abi(), pdwrequestid, pdwdisposition, pwszattributes.param().abi(), pctbrequest, pctbfullresponse, pctbencodedcert, pctbdispositionmessage).ok() } pub unsafe fn GetCAProperty(&self, pwszauthority: P0, propid: i32, propindex: i32, proptype: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAProperty)(windows_core::Interface::as_raw(self), pwszauthority.into_param().abi(), propid, propindex, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCAPropertyInfo)(windows_core::Interface::as_raw(self), pwszauthority.into_param().abi(), pcproperty, pctbpropinfo).ok() + (windows_core::Interface::vtable(self).GetCAPropertyInfo)(windows_core::Interface::as_raw(self), pwszauthority.param().abi(), pcproperty, pctbpropinfo).ok() } pub unsafe fn Ping2(&self, pwszauthority: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Ping2)(windows_core::Interface::as_raw(self), pwszauthority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Ping2)(windows_core::Interface::as_raw(self), pwszauthority.param().abi()).ok() } } #[repr(C)] @@ -4445,31 +4445,31 @@ impl ICertServerExit { } pub unsafe fn GetRequestProperty(&self, strpropertyname: P0, propertytype: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRequestAttribute(&self, strattributename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRequestAttribute)(windows_core::Interface::as_raw(self), strattributename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRequestAttribute)(windows_core::Interface::as_raw(self), strattributename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificateProperty(&self, strpropertyname: P0, propertytype: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificateExtension(&self, strextensionname: P0, r#type: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), strextensionname.into_param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), strextensionname.param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificateExtensionFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4524,37 +4524,37 @@ impl ICertServerPolicy { } pub unsafe fn GetRequestProperty(&self, strpropertyname: P0, propertytype: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRequestProperty)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRequestAttribute(&self, strattributename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRequestAttribute)(windows_core::Interface::as_raw(self), strattributename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRequestAttribute)(windows_core::Interface::as_raw(self), strattributename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificateProperty(&self, strpropertyname: P0, propertytype: CERT_PROPERTY_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCertificateProperty)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), propertytype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCertificateProperty(&self, strpropertyname: P0, propertytype: i32, pvarpropertyvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCertificateProperty)(windows_core::Interface::as_raw(self), strpropertyname.into_param().abi(), propertytype, core::mem::transmute(pvarpropertyvalue)).ok() + (windows_core::Interface::vtable(self).SetCertificateProperty)(windows_core::Interface::as_raw(self), strpropertyname.param().abi(), propertytype, core::mem::transmute(pvarpropertyvalue)).ok() } pub unsafe fn GetCertificateExtension(&self, strextensionname: P0, r#type: CERT_PROPERTY_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), strextensionname.into_param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCertificateExtension)(windows_core::Interface::as_raw(self), strextensionname.param().abi(), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificateExtensionFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4562,9 +4562,9 @@ impl ICertServerPolicy { } pub unsafe fn SetCertificateExtension(&self, strextensionname: P0, r#type: i32, extflags: i32, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), strextensionname.into_param().abi(), r#type, extflags, core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).SetCertificateExtension)(windows_core::Interface::as_raw(self), strextensionname.param().abi(), r#type, extflags, core::mem::transmute(pvarvalue)).ok() } pub unsafe fn EnumerateExtensionsSetup(&self, flags: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumerateExtensionsSetup)(windows_core::Interface::as_raw(self), flags).ok() @@ -4614,9 +4614,9 @@ windows_core::imp::interface_hierarchy!(ICertView, windows_core::IUnknown, super impl ICertView { pub unsafe fn OpenConnection(&self, strconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenConnection)(windows_core::Interface::as_raw(self), strconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenConnection)(windows_core::Interface::as_raw(self), strconfig.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumCertViewColumn(&self, fresultcolumn: CVRC_COLUMN) -> windows_core::Result { @@ -4628,9 +4628,9 @@ impl ICertView { } pub unsafe fn GetColumnIndex(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: P0, pcolumnindex: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColumnIndex)(windows_core::Interface::as_raw(self), fresultcolumn, strcolumnname.into_param().abi(), pcolumnindex).ok() + (windows_core::Interface::vtable(self).GetColumnIndex)(windows_core::Interface::as_raw(self), fresultcolumn, strcolumnname.param().abi(), pcolumnindex).ok() } pub unsafe fn SetResultColumnCount(&self, cresultcolumn: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetResultColumnCount)(windows_core::Interface::as_raw(self), cresultcolumn).ok() @@ -4674,9 +4674,9 @@ windows_core::imp::interface_hierarchy!(ICertView2, windows_core::IUnknown, supe impl ICertView2 { pub unsafe fn OpenConnection(&self, strconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OpenConnection)(windows_core::Interface::as_raw(self), strconfig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OpenConnection)(windows_core::Interface::as_raw(self), strconfig.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumCertViewColumn(&self, fresultcolumn: CVRC_COLUMN) -> windows_core::Result { @@ -4688,9 +4688,9 @@ impl ICertView2 { } pub unsafe fn GetColumnIndex(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: P0, pcolumnindex: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetColumnIndex)(windows_core::Interface::as_raw(self), fresultcolumn, strcolumnname.into_param().abi(), pcolumnindex).ok() + (windows_core::Interface::vtable(self).base__.GetColumnIndex)(windows_core::Interface::as_raw(self), fresultcolumn, strcolumnname.param().abi(), pcolumnindex).ok() } pub unsafe fn SetResultColumnCount(&self, cresultcolumn: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetResultColumnCount)(windows_core::Interface::as_raw(self), cresultcolumn).ok() @@ -4724,9 +4724,9 @@ windows_core::imp::interface_hierarchy!(ICertificateAttestationChallenge, window impl ICertificateAttestationChallenge { pub unsafe fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strpendingfullcmcresponsewithchallenge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, strpendingfullcmcresponsewithchallenge.param().abi()).ok() } pub unsafe fn DecryptChallenge(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4753,9 +4753,9 @@ windows_core::imp::interface_hierarchy!(ICertificateAttestationChallenge2, windo impl ICertificateAttestationChallenge2 { pub unsafe fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), encoding, strpendingfullcmcresponsewithchallenge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), encoding, strpendingfullcmcresponsewithchallenge.param().abi()).ok() } pub unsafe fn DecryptChallenge(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4767,15 +4767,15 @@ impl ICertificateAttestationChallenge2 { } pub unsafe fn SetKeyContainerName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeyContainerName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeyContainerName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn put_KeyBlob(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_KeyBlob)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_KeyBlob)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4807,9 +4807,9 @@ impl ICertificatePolicies { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -4844,9 +4844,9 @@ impl ICertificatePolicy { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -4898,9 +4898,9 @@ impl ICertificationAuthorities { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -4914,10 +4914,10 @@ impl ICertificationAuthorities { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByName(&self, strname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4968,16 +4968,16 @@ impl ICryptAttribute { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromObjectId(&self, pobjectid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromObjectId)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromObjectId)(windows_core::Interface::as_raw(self), pobjectid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromValues(&self, pattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromValues)(windows_core::Interface::as_raw(self), pattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromValues)(windows_core::Interface::as_raw(self), pattributes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -5033,9 +5033,9 @@ impl ICryptAttributes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -5046,17 +5046,17 @@ impl ICryptAttributes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_IndexByObjectId(&self, pobjectid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IndexByObjectId)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IndexByObjectId)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5172,9 +5172,9 @@ impl ICspAlgorithms { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -5185,18 +5185,18 @@ impl ICspAlgorithms { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByName(&self, strname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_IndexByObjectId(&self, pobjectid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IndexByObjectId)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IndexByObjectId)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5232,17 +5232,17 @@ windows_core::imp::interface_hierarchy!(ICspInformation, windows_core::IUnknown, impl ICspInformation { pub unsafe fn InitializeFromName(&self, strname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromName)(windows_core::Interface::as_raw(self), strname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromName)(windows_core::Interface::as_raw(self), strname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromType(&self, r#type: X509ProviderType, palgorithm: P0, machinecontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromType)(windows_core::Interface::as_raw(self), r#type, palgorithm.into_param().abi(), machinecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromType)(windows_core::Interface::as_raw(self), r#type, palgorithm.param().abi(), machinecontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspAlgorithms(&self) -> windows_core::Result { @@ -5295,10 +5295,10 @@ impl ICspInformation { } pub unsafe fn GetDefaultSecurityDescriptor(&self, machinecontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultSecurityDescriptor)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDefaultSecurityDescriptor)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LegacyCsp(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5307,10 +5307,10 @@ impl ICspInformation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCspStatusFromOperations(&self, palgorithm: P0, operations: AlgorithmOperationFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCspStatusFromOperations)(windows_core::Interface::as_raw(self), palgorithm.into_param().abi(), 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")] @@ -5366,9 +5366,9 @@ impl ICspInformations { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -5382,42 +5382,42 @@ impl ICspInformations { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByName(&self, strname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCspStatusFromProviderName(&self, strprovidername: P0, legacykeyspec: X509KeySpec) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCspStatusFromProviderName)(windows_core::Interface::as_raw(self), strprovidername.into_param().abi(), legacykeyspec, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCspStatusFromProviderName)(windows_core::Interface::as_raw(self), strprovidername.param().abi(), legacykeyspec, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCspStatusesFromOperations(&self, operations: AlgorithmOperationFlags, pcspinformation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCspStatusesFromOperations)(windows_core::Interface::as_raw(self), operations, pcspinformation.into_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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEncryptionCspAlgorithms(&self, pcspinformation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEncryptionCspAlgorithms)(windows_core::Interface::as_raw(self), pcspinformation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEncryptionCspAlgorithms)(windows_core::Interface::as_raw(self), pcspinformation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetHashAlgorithms(&self, pcspinformation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHashAlgorithms)(windows_core::Interface::as_raw(self), pcspinformation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetHashAlgorithms)(windows_core::Interface::as_raw(self), pcspinformation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5467,10 +5467,10 @@ impl ICspStatus { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pcsp: P0, palgorithm: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pcsp.into_param().abi(), palgorithm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pcsp.param().abi(), palgorithm.param().abi()).ok() } pub unsafe fn Ordinal(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5545,9 +5545,9 @@ impl ICspStatuses { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -5558,11 +5558,11 @@ impl ICspStatuses { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByName(&self, strcspname: P0, stralgorithmname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strcspname.into_param().abi(), stralgorithmname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), strcspname.param().abi(), stralgorithmname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByOrdinal(&self, ordinal: i32) -> windows_core::Result { @@ -5572,19 +5572,19 @@ impl ICspStatuses { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByOperations(&self, strcspname: P0, stralgorithmname: P1, operations: AlgorithmOperationFlags) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByOperations)(windows_core::Interface::as_raw(self), strcspname.into_param().abi(), stralgorithmname.into_param().abi(), operations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByOperations)(windows_core::Interface::as_raw(self), strcspname.param().abi(), stralgorithmname.param().abi(), operations, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByProvider(&self, pcspstatus: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByProvider)(windows_core::Interface::as_raw(self), pcspstatus.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByProvider)(windows_core::Interface::as_raw(self), pcspstatus.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5625,24 +5625,24 @@ windows_core::imp::interface_hierarchy!(IEnroll, windows_core::IUnknown); impl IEnroll { pub unsafe fn createFilePKCS10WStr(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).createFilePKCS10WStr)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), wszpkcs10filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).createFilePKCS10WStr)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), wszpkcs10filename.param().abi()).ok() } pub unsafe fn acceptFilePKCS7WStr(&self, wszpkcs7filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).acceptFilePKCS7WStr)(windows_core::Interface::as_raw(self), wszpkcs7filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).acceptFilePKCS7WStr)(windows_core::Interface::as_raw(self), wszpkcs7filename.param().abi()).ok() } pub unsafe fn createPKCS10WStr(&self, dnname: P0, usage: P1, ppkcs10blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).createPKCS10WStr)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), ppkcs10blob).ok() + (windows_core::Interface::vtable(self).createPKCS10WStr)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), ppkcs10blob).ok() } pub unsafe fn acceptPKCS7Blob(&self, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).acceptPKCS7Blob)(windows_core::Interface::as_raw(self), pblobpkcs7).ok() @@ -5673,18 +5673,18 @@ impl IEnroll { } pub unsafe fn SetMyStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMyStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMyStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn MyStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetMyStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn MyStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MyStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -5697,18 +5697,18 @@ impl IEnroll { } pub unsafe fn SetCAStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCAStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCAStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn CAStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetCAStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn CAStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CAStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -5721,18 +5721,18 @@ impl IEnroll { } pub unsafe fn SetRootStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRootStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRootStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn RootStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetRootStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn RootStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RootStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -5745,18 +5745,18 @@ impl IEnroll { } pub unsafe fn SetRequestStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn RequestStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetRequestStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn RequestStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequestStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -5769,18 +5769,18 @@ impl IEnroll { } pub unsafe fn SetContainerNameWStr(&self, szwcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainerNameWStr)(windows_core::Interface::as_raw(self), szwcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainerNameWStr)(windows_core::Interface::as_raw(self), szwcontainer.param().abi()).ok() } pub unsafe fn ProviderNameWStr(&self, szwprovider: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider).ok() } pub unsafe fn SetProviderNameWStr(&self, szwprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider.param().abi()).ok() } pub unsafe fn ProviderType(&self, pdwtype: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ProviderType)(windows_core::Interface::as_raw(self), pdwtype).ok() @@ -5805,9 +5805,9 @@ impl IEnroll { } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.param().abi()).ok() } pub unsafe fn GenKeyFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GenKeyFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -5820,63 +5820,63 @@ impl IEnroll { } pub unsafe fn SetDeleteRequestCert(&self, fdelete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.param().abi()).ok() } pub unsafe fn WriteCertToUserDS(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetWriteCertToUserDS(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn EnableT61DNEncoding(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetEnableT61DNEncoding(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn WriteCertToCSP(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteCertToCSP)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetWriteCertToCSP(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn SPCFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SPCFileNameWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetSPCFileNameWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSPCFileNameWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSPCFileNameWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn PVKFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PVKFileNameWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetPVKFileNameWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPVKFileNameWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPVKFileNameWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn HashAlgorithmWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetHashAlgorithmWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn RenewalCertificate(&self, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RenewalCertificate)(windows_core::Interface::as_raw(self), ppcertcontext).ok() @@ -5886,16 +5886,16 @@ impl IEnroll { } pub unsafe fn AddCertTypeToRequestWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCertTypeToRequestWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddCertTypeToRequestWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn AddNameValuePairToSignatureWStr(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNameValuePairToSignatureWStr)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddNameValuePairToSignatureWStr)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn AddExtensionsToRequest(&self, pcertextensions: *mut super::CERT_EXTENSIONS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddExtensionsToRequest)(windows_core::Interface::as_raw(self), pcertextensions).ok() @@ -5986,24 +5986,24 @@ windows_core::imp::interface_hierarchy!(IEnroll2, windows_core::IUnknown, IEnrol impl IEnroll2 { pub unsafe fn createFilePKCS10WStr(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.createFilePKCS10WStr)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), wszpkcs10filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.createFilePKCS10WStr)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), wszpkcs10filename.param().abi()).ok() } pub unsafe fn acceptFilePKCS7WStr(&self, wszpkcs7filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.acceptFilePKCS7WStr)(windows_core::Interface::as_raw(self), wszpkcs7filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.acceptFilePKCS7WStr)(windows_core::Interface::as_raw(self), wszpkcs7filename.param().abi()).ok() } pub unsafe fn createPKCS10WStr(&self, dnname: P0, usage: P1, ppkcs10blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.createPKCS10WStr)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), ppkcs10blob).ok() + (windows_core::Interface::vtable(self).base__.createPKCS10WStr)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), ppkcs10blob).ok() } pub unsafe fn acceptPKCS7Blob(&self, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.acceptPKCS7Blob)(windows_core::Interface::as_raw(self), pblobpkcs7).ok() @@ -6034,18 +6034,18 @@ impl IEnroll2 { } pub unsafe fn SetMyStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMyStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMyStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn MyStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.MyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetMyStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn MyStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.MyStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6058,18 +6058,18 @@ impl IEnroll2 { } pub unsafe fn SetCAStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCAStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCAStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn CAStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetCAStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn CAStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CAStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6082,18 +6082,18 @@ impl IEnroll2 { } pub unsafe fn SetRootStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRootStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRootStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn RootStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetRootStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn RootStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RootStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6106,18 +6106,18 @@ impl IEnroll2 { } pub unsafe fn SetRequestStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequestStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequestStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn RequestStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetRequestStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn RequestStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RequestStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6130,18 +6130,18 @@ impl IEnroll2 { } pub unsafe fn SetContainerNameWStr(&self, szwcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContainerNameWStr)(windows_core::Interface::as_raw(self), szwcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContainerNameWStr)(windows_core::Interface::as_raw(self), szwcontainer.param().abi()).ok() } pub unsafe fn ProviderNameWStr(&self, szwprovider: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider).ok() } pub unsafe fn SetProviderNameWStr(&self, szwprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider.param().abi()).ok() } pub unsafe fn ProviderType(&self, pdwtype: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ProviderType)(windows_core::Interface::as_raw(self), pdwtype).ok() @@ -6166,9 +6166,9 @@ impl IEnroll2 { } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.param().abi()).ok() } pub unsafe fn GenKeyFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GenKeyFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6181,63 +6181,63 @@ impl IEnroll2 { } pub unsafe fn SetDeleteRequestCert(&self, fdelete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.param().abi()).ok() } pub unsafe fn WriteCertToUserDS(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.WriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetWriteCertToUserDS(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn EnableT61DNEncoding(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetEnableT61DNEncoding(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn WriteCertToCSP(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.WriteCertToCSP)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetWriteCertToCSP(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn SPCFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SPCFileNameWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetSPCFileNameWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSPCFileNameWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSPCFileNameWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn PVKFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.PVKFileNameWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetPVKFileNameWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPVKFileNameWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPVKFileNameWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn HashAlgorithmWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.HashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetHashAlgorithmWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn RenewalCertificate(&self, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RenewalCertificate)(windows_core::Interface::as_raw(self), ppcertcontext).ok() @@ -6247,16 +6247,16 @@ impl IEnroll2 { } pub unsafe fn AddCertTypeToRequestWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddCertTypeToRequestWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddCertTypeToRequestWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn AddNameValuePairToSignatureWStr(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddNameValuePairToSignatureWStr)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddNameValuePairToSignatureWStr)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn AddExtensionsToRequest(&self, pcertextensions: *mut super::CERT_EXTENSIONS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.AddExtensionsToRequest)(windows_core::Interface::as_raw(self), pcertextensions).ok() @@ -6278,10 +6278,10 @@ impl IEnroll2 { } pub unsafe fn GetKeyLen(&self, fmin: P0, fexchange: P1, pdwkeysize: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetKeyLen)(windows_core::Interface::as_raw(self), fmin.into_param().abi(), fexchange.into_param().abi(), pdwkeysize).ok() + (windows_core::Interface::vtable(self).GetKeyLen)(windows_core::Interface::as_raw(self), fmin.param().abi(), fexchange.param().abi(), 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), dwindex, algclass, pdwalgid).ok() @@ -6291,9 +6291,9 @@ impl IEnroll2 { } pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.param().abi()).ok() } pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew).ok() @@ -6306,42 +6306,42 @@ impl IEnroll2 { } pub unsafe fn SetHStoreMy(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHStoreMy)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHStoreMy)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetHStoreCA(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHStoreCA)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHStoreCA)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetHStoreROOT(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHStoreROOT)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHStoreROOT)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetHStoreRequest(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHStoreRequest)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHStoreRequest)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.param().abi()).ok() } pub unsafe fn LimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment).ok() } pub unsafe fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.param().abi()).ok() } pub unsafe fn EnableSMIMECapabilities(&self, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities).ok() @@ -6374,24 +6374,24 @@ windows_core::imp::interface_hierarchy!(IEnroll4, windows_core::IUnknown, IEnrol impl IEnroll4 { pub unsafe fn createFilePKCS10WStr(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.createFilePKCS10WStr)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), wszpkcs10filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.createFilePKCS10WStr)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), wszpkcs10filename.param().abi()).ok() } pub unsafe fn acceptFilePKCS7WStr(&self, wszpkcs7filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.acceptFilePKCS7WStr)(windows_core::Interface::as_raw(self), wszpkcs7filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.acceptFilePKCS7WStr)(windows_core::Interface::as_raw(self), wszpkcs7filename.param().abi()).ok() } pub unsafe fn createPKCS10WStr(&self, dnname: P0, usage: P1, ppkcs10blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.createPKCS10WStr)(windows_core::Interface::as_raw(self), dnname.into_param().abi(), usage.into_param().abi(), ppkcs10blob).ok() + (windows_core::Interface::vtable(self).base__.base__.createPKCS10WStr)(windows_core::Interface::as_raw(self), dnname.param().abi(), usage.param().abi(), ppkcs10blob).ok() } pub unsafe fn acceptPKCS7Blob(&self, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.acceptPKCS7Blob)(windows_core::Interface::as_raw(self), pblobpkcs7).ok() @@ -6422,18 +6422,18 @@ impl IEnroll4 { } pub unsafe fn SetMyStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMyStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMyStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn MyStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.MyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetMyStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMyStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn MyStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.MyStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6446,18 +6446,18 @@ impl IEnroll4 { } pub unsafe fn SetCAStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCAStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCAStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn CAStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetCAStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCAStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn CAStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CAStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6470,18 +6470,18 @@ impl IEnroll4 { } pub unsafe fn SetRootStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRootStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRootStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn RootStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetRootStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRootStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn RootStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RootStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6494,18 +6494,18 @@ impl IEnroll4 { } pub unsafe fn SetRequestStoreNameWStr(&self, szwname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreNameWStr)(windows_core::Interface::as_raw(self), szwname.param().abi()).ok() } pub unsafe fn RequestStoreTypeWStr(&self, szwtype: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype).ok() } pub unsafe fn SetRequestStoreTypeWStr(&self, szwtype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRequestStoreTypeWStr)(windows_core::Interface::as_raw(self), szwtype.param().abi()).ok() } pub unsafe fn RequestStoreFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RequestStoreFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6518,18 +6518,18 @@ impl IEnroll4 { } pub unsafe fn SetContainerNameWStr(&self, szwcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetContainerNameWStr)(windows_core::Interface::as_raw(self), szwcontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetContainerNameWStr)(windows_core::Interface::as_raw(self), szwcontainer.param().abi()).ok() } pub unsafe fn ProviderNameWStr(&self, szwprovider: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider).ok() } pub unsafe fn SetProviderNameWStr(&self, szwprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetProviderNameWStr)(windows_core::Interface::as_raw(self), szwprovider.param().abi()).ok() } pub unsafe fn ProviderType(&self, pdwtype: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ProviderType)(windows_core::Interface::as_raw(self), pdwtype).ok() @@ -6554,9 +6554,9 @@ impl IEnroll4 { } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys.param().abi()).ok() } pub unsafe fn GenKeyFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GenKeyFlags)(windows_core::Interface::as_raw(self), pdwflags).ok() @@ -6569,63 +6569,63 @@ impl IEnroll4 { } pub unsafe fn SetDeleteRequestCert(&self, fdelete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.param().abi()).ok() } pub unsafe fn WriteCertToUserDS(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.WriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetWriteCertToUserDS(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn EnableT61DNEncoding(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.EnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetEnableT61DNEncoding(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn WriteCertToCSP(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.WriteCertToCSP)(windows_core::Interface::as_raw(self), fbool).ok() } pub unsafe fn SetWriteCertToCSP(&self, fbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetWriteCertToCSP)(windows_core::Interface::as_raw(self), fbool.param().abi()).ok() } pub unsafe fn SPCFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SPCFileNameWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetSPCFileNameWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSPCFileNameWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSPCFileNameWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn PVKFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.PVKFileNameWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetPVKFileNameWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPVKFileNameWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPVKFileNameWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn HashAlgorithmWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.HashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw).ok() } pub unsafe fn SetHashAlgorithmWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithmWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn RenewalCertificate(&self, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RenewalCertificate)(windows_core::Interface::as_raw(self), ppcertcontext).ok() @@ -6635,16 +6635,16 @@ impl IEnroll4 { } pub unsafe fn AddCertTypeToRequestWStr(&self, szw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddCertTypeToRequestWStr)(windows_core::Interface::as_raw(self), szw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddCertTypeToRequestWStr)(windows_core::Interface::as_raw(self), szw.param().abi()).ok() } pub unsafe fn AddNameValuePairToSignatureWStr(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddNameValuePairToSignatureWStr)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddNameValuePairToSignatureWStr)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn AddExtensionsToRequest(&self, pcertextensions: *mut super::CERT_EXTENSIONS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.AddExtensionsToRequest)(windows_core::Interface::as_raw(self), pcertextensions).ok() @@ -6666,10 +6666,10 @@ impl IEnroll4 { } pub unsafe fn GetKeyLen(&self, fmin: P0, fexchange: P1, pdwkeysize: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetKeyLen)(windows_core::Interface::as_raw(self), fmin.into_param().abi(), fexchange.into_param().abi(), pdwkeysize).ok() + (windows_core::Interface::vtable(self).base__.GetKeyLen)(windows_core::Interface::as_raw(self), fmin.param().abi(), fexchange.param().abi(), pdwkeysize).ok() } pub unsafe fn EnumAlgs(&self, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EnumAlgs)(windows_core::Interface::as_raw(self), dwindex, algclass, pdwalgid).ok() @@ -6679,9 +6679,9 @@ impl IEnroll4 { } pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.param().abi()).ok() } pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew).ok() @@ -6694,42 +6694,42 @@ impl IEnroll4 { } pub unsafe fn SetHStoreMy(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHStoreMy)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHStoreMy)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetHStoreCA(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHStoreCA)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHStoreCA)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetHStoreROOT(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHStoreROOT)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHStoreROOT)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetHStoreRequest(&self, hstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHStoreRequest)(windows_core::Interface::as_raw(self), hstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHStoreRequest)(windows_core::Interface::as_raw(self), hstore.param().abi()).ok() } pub unsafe fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.param().abi()).ok() } pub unsafe fn LimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.LimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment).ok() } pub unsafe fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.param().abi()).ok() } pub unsafe fn EnableSMIMECapabilities(&self, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities).ok() @@ -6751,28 +6751,28 @@ impl IEnroll4 { } pub unsafe fn stringToBinaryBlob(&self, flags: i32, pwszstring: P0, pblobbinary: *mut super::CRYPT_INTEGER_BLOB, pdwskip: *mut i32, pdwflags: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).stringToBinaryBlob)(windows_core::Interface::as_raw(self), flags, pwszstring.into_param().abi(), pblobbinary, pdwskip, pdwflags).ok() + (windows_core::Interface::vtable(self).stringToBinaryBlob)(windows_core::Interface::as_raw(self), flags, pwszstring.param().abi(), pblobbinary, pdwskip, pdwflags).ok() } pub unsafe fn addExtensionToRequestWStr(&self, flags: i32, pwszname: P0, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addExtensionToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.into_param().abi(), pblobvalue).ok() + (windows_core::Interface::vtable(self).addExtensionToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.param().abi(), pblobvalue).ok() } pub unsafe fn addAttributeToRequestWStr(&self, flags: i32, pwszname: P0, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addAttributeToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.into_param().abi(), pblobvalue).ok() + (windows_core::Interface::vtable(self).addAttributeToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.param().abi(), pblobvalue).ok() } pub unsafe fn addNameValuePairToRequestWStr(&self, flags: i32, pwszname: P0, pwszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).addNameValuePairToRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszname.into_param().abi(), pwszvalue.into_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() @@ -6782,57 +6782,57 @@ impl IEnroll4 { } pub unsafe fn createRequestWStr(&self, flags: CERT_CREATE_REQUEST_FLAGS, pwszdnname: P0, pwszusage: P1, pblobrequest: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).createRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszdnname.into_param().abi(), pwszusage.into_param().abi(), pblobrequest).ok() + (windows_core::Interface::vtable(self).createRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszdnname.param().abi(), pwszusage.param().abi(), pblobrequest).ok() } pub unsafe fn createFileRequestWStr(&self, flags: CERT_CREATE_REQUEST_FLAGS, pwszdnname: P0, pwszusage: P1, pwszrequestfilename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).createFileRequestWStr)(windows_core::Interface::as_raw(self), flags, pwszdnname.into_param().abi(), pwszusage.into_param().abi(), pwszrequestfilename.into_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), pblobresponse).ok() } pub unsafe fn acceptFileResponseWStr(&self, pwszresponsefilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).acceptFileResponseWStr)(windows_core::Interface::as_raw(self), pwszresponsefilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).acceptFileResponseWStr)(windows_core::Interface::as_raw(self), pwszresponsefilename.param().abi()).ok() } pub unsafe fn getCertContextFromResponseBlob(&self, pblobresponse: *mut super::CRYPT_INTEGER_BLOB, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).getCertContextFromResponseBlob)(windows_core::Interface::as_raw(self), pblobresponse, ppcertcontext).ok() } pub unsafe fn getCertContextFromFileResponseWStr(&self, pwszresponsefilename: P0, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getCertContextFromFileResponseWStr)(windows_core::Interface::as_raw(self), pwszresponsefilename.into_param().abi(), ppcertcontext).ok() + (windows_core::Interface::vtable(self).getCertContextFromFileResponseWStr)(windows_core::Interface::as_raw(self), pwszresponsefilename.param().abi(), ppcertcontext).ok() } pub unsafe fn createPFXWStr(&self, pwszpassword: P0, pblobpfx: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).createPFXWStr)(windows_core::Interface::as_raw(self), pwszpassword.into_param().abi(), pblobpfx).ok() + (windows_core::Interface::vtable(self).createPFXWStr)(windows_core::Interface::as_raw(self), pwszpassword.param().abi(), pblobpfx).ok() } pub unsafe fn createFilePFXWStr(&self, pwszpassword: P0, pwszpfxfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).createFilePFXWStr)(windows_core::Interface::as_raw(self), pwszpassword.into_param().abi(), pwszpfxfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).createFilePFXWStr)(windows_core::Interface::as_raw(self), pwszpassword.param().abi(), pwszpfxfilename.param().abi()).ok() } pub unsafe fn setPendingRequestInfoWStr(&self, lrequestid: i32, pwszcadns: P0, pwszcaname: P1, pwszfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).setPendingRequestInfoWStr)(windows_core::Interface::as_raw(self), lrequestid, pwszcadns.into_param().abi(), pwszcaname.into_param().abi(), pwszfriendlyname.into_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), lindex, ldesiredproperty, ppproperty).ok() @@ -6848,16 +6848,16 @@ impl IEnroll4 { } pub unsafe fn AddCertTypeToRequestWStrEx(&self, ltype: ADDED_CERT_TYPE, pwszoidorname: P0, lmajorversion: i32, fminorversion: P1, lminorversion: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCertTypeToRequestWStrEx)(windows_core::Interface::as_raw(self), ltype, pwszoidorname.into_param().abi(), lmajorversion, fminorversion.into_param().abi(), lminorversion).ok() + (windows_core::Interface::vtable(self).AddCertTypeToRequestWStrEx)(windows_core::Interface::as_raw(self), ltype, pwszoidorname.param().abi(), lmajorversion, fminorversion.param().abi(), lminorversion).ok() } pub unsafe fn getProviderTypeWStr(&self, pwszprovname: P0, plprovtype: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).getProviderTypeWStr)(windows_core::Interface::as_raw(self), pwszprovname.into_param().abi(), plprovtype).ok() + (windows_core::Interface::vtable(self).getProviderTypeWStr)(windows_core::Interface::as_raw(self), pwszprovname.param().abi(), 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), lpropertyid, lreserved, pblobproperty).ok() @@ -6873,9 +6873,9 @@ impl IEnroll4 { } pub unsafe fn SetIncludeSubjectKeyID(&self, finclude: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIncludeSubjectKeyID)(windows_core::Interface::as_raw(self), finclude.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIncludeSubjectKeyID)(windows_core::Interface::as_raw(self), finclude.param().abi()).ok() } pub unsafe fn IncludeSubjectKeyID(&self, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IncludeSubjectKeyID)(windows_core::Interface::as_raw(self), pfinclude).ok() @@ -7135,26 +7135,26 @@ impl INDESPolicy { } pub unsafe fn GenerateChallenge(&self, pwsztemplate: P0, pwszparams: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateChallenge)(windows_core::Interface::as_raw(self), pwsztemplate.into_param().abi(), pwszparams.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GenerateChallenge)(windows_core::Interface::as_raw(self), pwsztemplate.param().abi(), pwszparams.param().abi(), &mut result__).map(|| result__) } pub unsafe fn VerifyRequest(&self, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: P0, pwsztransactionid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VerifyRequest)(windows_core::Interface::as_raw(self), pctbrequest, pctbsigningcertencoded, pwsztemplate.into_param().abi(), pwsztransactionid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VerifyRequest)(windows_core::Interface::as_raw(self), pctbrequest, pctbsigningcertencoded, pwsztemplate.param().abi(), pwsztransactionid.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Notify(&self, pwszchallenge: P0, pwsztransactionid: P1, disposition: X509SCEPDisposition, lasthresult: i32, pctbissuedcertencoded: *mut CERTTRANSBLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pwszchallenge.into_param().abi(), pwsztransactionid.into_param().abi(), disposition, lasthresult, pctbissuedcertencoded).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), pwszchallenge.param().abi(), pwsztransactionid.param().abi(), disposition, lasthresult, pctbissuedcertencoded).ok() } } #[repr(C)] @@ -7184,59 +7184,59 @@ impl IOCSPAdmin { } pub unsafe fn GetConfiguration(&self, bstrservername: P0, bforce: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConfiguration)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), bforce.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetConfiguration)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), bforce.param().abi()).ok() } pub unsafe fn SetConfiguration(&self, bstrservername: P0, bforce: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), bforce.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), bforce.param().abi()).ok() } pub unsafe fn GetMyRoles(&self, bstrservername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMyRoles)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMyRoles)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Ping(&self, bstrservername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Ping)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Ping)(windows_core::Interface::as_raw(self), bstrservername.param().abi()).ok() } pub unsafe fn SetSecurity(&self, bstrservername: P0, bstrval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), bstrval.param().abi()).ok() } pub unsafe fn GetSecurity(&self, bstrservername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSecurity)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSigningCertificates(&self, bstrservername: P0, pcacertvar: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSigningCertificates)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), core::mem::transmute(pcacertvar), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSigningCertificates)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), core::mem::transmute(pcacertvar), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetHashAlgorithms(&self, bstrservername: P0, bstrcaid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHashAlgorithms)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), bstrcaid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetHashAlgorithms)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), bstrcaid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -7280,9 +7280,9 @@ impl IOCSPCAConfiguration { } pub unsafe fn SetHashAlgorithm(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SigningFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7297,9 +7297,9 @@ impl IOCSPCAConfiguration { } pub unsafe fn SetSigningCertificate(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSigningCertificate)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSigningCertificate)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ReminderDuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7326,9 +7326,9 @@ impl IOCSPCAConfiguration { } pub unsafe fn SetProviderCLSID(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderCLSID)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderCLSID)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ProviderProperties(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7336,9 +7336,9 @@ impl IOCSPCAConfiguration { } pub unsafe fn SetProviderProperties(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderProperties)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderProperties)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Modified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7350,9 +7350,9 @@ impl IOCSPCAConfiguration { } pub unsafe fn SetLocalRevocationInformation(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalRevocationInformation)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalRevocationInformation)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SigningCertificateTemplate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7360,9 +7360,9 @@ impl IOCSPCAConfiguration { } pub unsafe fn SetSigningCertificateTemplate(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSigningCertificateTemplate)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSigningCertificateTemplate)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn CAConfig(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7370,9 +7370,9 @@ impl IOCSPCAConfiguration { } pub unsafe fn SetCAConfig(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCAConfig)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCAConfig)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7424,25 +7424,25 @@ impl IOCSPCAConfigurationCollection { } pub unsafe fn get_ItemByName(&self, bstridentifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), bstridentifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), bstridentifier.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateCAConfiguration(&self, bstridentifier: P0, varcacert: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCAConfiguration)(windows_core::Interface::as_raw(self), bstridentifier.into_param().abi(), varcacert.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCAConfiguration)(windows_core::Interface::as_raw(self), bstridentifier.param().abi(), varcacert.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteCAConfiguration(&self, bstridentifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteCAConfiguration)(windows_core::Interface::as_raw(self), bstridentifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteCAConfiguration)(windows_core::Interface::as_raw(self), bstridentifier.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7475,9 +7475,9 @@ impl IOCSPProperty { } pub unsafe fn SetValue(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Modified(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7513,24 +7513,24 @@ impl IOCSPPropertyCollection { } pub unsafe fn get_ItemByName(&self, bstrpropname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateProperty(&self, bstrpropname: P0, pvarpropvalue: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProperty)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), core::mem::transmute(pvarpropvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProperty)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), core::mem::transmute(pvarpropvalue), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteProperty(&self, bstrpropname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), bstrpropname.param().abi()).ok() } pub unsafe fn InitializeFromProperties(&self, pvarproperties: *const windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeFromProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarproperties)).ok() @@ -7567,15 +7567,15 @@ impl IObjectId { } pub unsafe fn InitializeFromValue(&self, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromValue)(windows_core::Interface::as_raw(self), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromValue)(windows_core::Interface::as_raw(self), strvalue.param().abi()).ok() } pub unsafe fn InitializeFromAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromAlgorithmName)(windows_core::Interface::as_raw(self), groupid, keyflags, algflags, stralgorithmname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromAlgorithmName)(windows_core::Interface::as_raw(self), groupid, keyflags, algflags, stralgorithmname.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7587,9 +7587,9 @@ impl IObjectId { } pub unsafe fn SetFriendlyName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7635,9 +7635,9 @@ impl IObjectIds { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -7648,9 +7648,9 @@ impl IObjectIds { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7682,9 +7682,9 @@ windows_core::imp::interface_hierarchy!(IPolicyQualifier, windows_core::IUnknown impl IPolicyQualifier { pub unsafe fn InitializeEncode(&self, strqualifier: P0, r#type: PolicyQualifierType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), strqualifier.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), strqualifier.param().abi(), r#type).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -7739,9 +7739,9 @@ impl IPolicyQualifiers { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -7775,10 +7775,10 @@ windows_core::imp::interface_hierarchy!(ISignerCertificate, windows_core::IUnkno impl ISignerCertificate { pub unsafe fn Initialize(&self, machinecontext: P0, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi(), verifytype, encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), machinecontext.param().abi(), verifytype, encoding, strcertificate.param().abi()).ok() } pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7795,9 +7795,9 @@ impl ISignerCertificate { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7812,15 +7812,15 @@ impl ISignerCertificate { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetPin(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPin)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPin)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -7872,9 +7872,9 @@ impl ISignerCertificates { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -7885,10 +7885,10 @@ impl ISignerCertificates { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Find(&self, psignercert: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Find)(windows_core::Interface::as_raw(self), psignercert.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Find)(windows_core::Interface::as_raw(self), psignercert.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7934,9 +7934,9 @@ impl ISmimeCapabilities { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -7947,15 +7947,15 @@ impl ISmimeCapabilities { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFromCsp(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFromCsp)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFromCsp)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AddAvailableSmimeCapabilities(&self, machinecontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAvailableSmimeCapabilities)(windows_core::Interface::as_raw(self), machinecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAvailableSmimeCapabilities)(windows_core::Interface::as_raw(self), machinecontext.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7989,9 +7989,9 @@ impl ISmimeCapability { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, bitcount: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), bitcount).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), bitcount).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8025,15 +8025,15 @@ windows_core::imp::interface_hierarchy!(IX500DistinguishedName, windows_core::IU impl IX500DistinguishedName { pub unsafe fn Decode(&self, strencodedname: P0, encoding: EncodingType, nameflags: X500NameFlags) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strencodedname.into_param().abi(), encoding, nameflags).ok() + (windows_core::Interface::vtable(self).Decode)(windows_core::Interface::as_raw(self), strencodedname.param().abi(), encoding, nameflags).ok() } pub unsafe fn Encode(&self, strname: P0, nameflags: X500NameFlags) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), strname.into_param().abi(), nameflags).ok() + (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self), strname.param().abi(), nameflags).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8062,10 +8062,10 @@ impl IX509Attribute { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8100,10 +8100,10 @@ impl IX509AttributeArchiveKey { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8117,17 +8117,17 @@ impl IX509AttributeArchiveKey { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, pkey: P0, encoding: EncodingType, strcaxcert: P1, palgorithm: P2, encryptionstrength: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pkey.into_param().abi(), encoding, strcaxcert.into_param().abi(), palgorithm.into_param().abi(), encryptionstrength).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pkey.param().abi(), encoding, strcaxcert.param().abi(), palgorithm.param().abi(), encryptionstrength).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn get_EncryptedKeyBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8168,10 +8168,10 @@ impl IX509AttributeArchiveKeyHash { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8184,15 +8184,15 @@ impl IX509AttributeArchiveKeyHash { } pub unsafe fn InitializeEncodeFromEncryptedKeyBlob(&self, encoding: EncodingType, strencryptedkeyblob: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncodeFromEncryptedKeyBlob)(windows_core::Interface::as_raw(self), encoding, strencryptedkeyblob.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncodeFromEncryptedKeyBlob)(windows_core::Interface::as_raw(self), encoding, strencryptedkeyblob.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn get_EncryptedKeyHashBlob(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8216,10 +8216,10 @@ impl IX509AttributeClientId { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8232,17 +8232,17 @@ impl IX509AttributeClientId { } pub unsafe fn InitializeEncode(&self, clientid: RequestClientInfoClientId, strmachinednsname: P0, strusersamname: P1, strprocessname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), clientid, strmachinednsname.into_param().abi(), strusersamname.into_param().abi(), strprocessname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), clientid, strmachinednsname.param().abi(), strusersamname.param().abi(), strprocessname.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8281,10 +8281,10 @@ impl IX509AttributeCspProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8297,16 +8297,16 @@ impl IX509AttributeCspProvider { } pub unsafe fn InitializeEncode(&self, keyspec: X509KeySpec, strprovidername: P0, encoding: EncodingType, strsignature: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), keyspec, strprovidername.into_param().abi(), encoding, strsignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), keyspec, strprovidername.param().abi(), encoding, strsignature.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn KeySpec(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8340,10 +8340,10 @@ impl IX509AttributeExtensions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8357,15 +8357,15 @@ impl IX509AttributeExtensions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, pextensions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pextensions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pextensions.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn X509Extensions(&self) -> windows_core::Result { @@ -8396,10 +8396,10 @@ impl IX509AttributeOSVersion { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8412,15 +8412,15 @@ impl IX509AttributeOSVersion { } pub unsafe fn InitializeEncode(&self, strosversion: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), strosversion.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), strosversion.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn OSVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8444,10 +8444,10 @@ impl IX509AttributeRenewalCertificate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -8460,15 +8460,15 @@ impl IX509AttributeRenewalCertificate { } pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strcert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, strcert.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, strcert.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8505,9 +8505,9 @@ impl IX509Attributes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -8567,9 +8567,9 @@ impl IX509CertificateRequest { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8584,9 +8584,9 @@ impl IX509CertificateRequest { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8594,9 +8594,9 @@ impl IX509CertificateRequest { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8604,9 +8604,9 @@ impl IX509CertificateRequest { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8623,9 +8623,9 @@ impl IX509CertificateRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -8635,9 +8635,9 @@ impl IX509CertificateRequest { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8645,9 +8645,9 @@ impl IX509CertificateRequest { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8733,9 +8733,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8750,9 +8750,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8760,9 +8760,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8770,9 +8770,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8789,9 +8789,9 @@ impl IX509CertificateRequestCertificate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -8801,9 +8801,9 @@ impl IX509CertificateRequestCertificate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8811,9 +8811,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8821,37 +8821,37 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.param().abi(), encoding, inheritoptions).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -8895,9 +8895,9 @@ impl IX509CertificateRequestCertificate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSubject(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatuses(&self) -> windows_core::Result { @@ -8910,9 +8910,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn SetSmimeCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -8925,9 +8925,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn SetKeyContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CryptAttributes(&self) -> windows_core::Result { @@ -8965,9 +8965,9 @@ impl IX509CertificateRequestCertificate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CheckPublicKeySignature(&self, ppublickey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckPublicKeySignature)(windows_core::Interface::as_raw(self), ppublickey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CheckPublicKeySignature)(windows_core::Interface::as_raw(self), ppublickey.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Issuer(&self) -> windows_core::Result { @@ -8977,9 +8977,9 @@ impl IX509CertificateRequestCertificate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetIssuer(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIssuer)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIssuer)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn NotBefore(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9001,9 +9001,9 @@ impl IX509CertificateRequestCertificate { } pub unsafe fn put_SerialNumber(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_SerialNumber)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_SerialNumber)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignerCertificate(&self) -> windows_core::Result { @@ -9013,9 +9013,9 @@ impl IX509CertificateRequestCertificate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9083,9 +9083,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9100,9 +9100,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9110,9 +9110,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9120,9 +9120,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9139,9 +9139,9 @@ impl IX509CertificateRequestCertificate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -9151,9 +9151,9 @@ impl IX509CertificateRequestCertificate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9161,9 +9161,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9171,37 +9171,37 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.param().abi(), encoding, inheritoptions).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -9245,9 +9245,9 @@ impl IX509CertificateRequestCertificate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSubject(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatuses(&self) -> windows_core::Result { @@ -9260,9 +9260,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn SetSmimeCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -9275,9 +9275,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn SetKeyContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CryptAttributes(&self) -> windows_core::Result { @@ -9315,9 +9315,9 @@ impl IX509CertificateRequestCertificate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CheckPublicKeySignature(&self, ppublickey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CheckPublicKeySignature)(windows_core::Interface::as_raw(self), ppublickey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CheckPublicKeySignature)(windows_core::Interface::as_raw(self), ppublickey.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Issuer(&self) -> windows_core::Result { @@ -9327,9 +9327,9 @@ impl IX509CertificateRequestCertificate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetIssuer(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIssuer)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIssuer)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn NotBefore(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9351,9 +9351,9 @@ impl IX509CertificateRequestCertificate2 { } pub unsafe fn put_SerialNumber(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_SerialNumber)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_SerialNumber)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignerCertificate(&self) -> windows_core::Result { @@ -9363,26 +9363,26 @@ impl IX509CertificateRequestCertificate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: P0, ptemplate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKeyTemplate(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_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() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PolicyServer(&self) -> windows_core::Result { @@ -9450,9 +9450,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9467,9 +9467,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9477,9 +9477,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9487,9 +9487,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9506,9 +9506,9 @@ impl IX509CertificateRequestCmc { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -9518,9 +9518,9 @@ impl IX509CertificateRequestCmc { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9528,9 +9528,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9538,29 +9538,29 @@ impl IX509CertificateRequestCmc { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: P0, strcertificate: P1, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.into_param().abi(), strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.param().abi(), strcertificate.param().abi(), encoding, inheritoptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromInnerRequest(&self, pinnerrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn RequesterName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9568,9 +9568,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn SetRequesterName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequesterName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequesterName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignerCertificate(&self) -> windows_core::Result { @@ -9580,17 +9580,17 @@ impl IX509CertificateRequestCmc { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromInnerRequestTemplateName(&self, pinnerrequest: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromInnerRequestTemplateName)(windows_core::Interface::as_raw(self), pinnerrequest.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromInnerRequestTemplateName)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TemplateObjectId(&self) -> windows_core::Result { @@ -9639,9 +9639,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn put_SenderNonce(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_SenderNonce)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_SenderNonce)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -9654,9 +9654,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn SetArchivePrivateKey(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArchivePrivateKey)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArchivePrivateKey)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9664,9 +9664,9 @@ impl IX509CertificateRequestCmc { } pub unsafe fn put_KeyArchivalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptionAlgorithm(&self) -> windows_core::Result { @@ -9676,9 +9676,9 @@ impl IX509CertificateRequestCmc { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetEncryptionAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn EncryptionStrength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9792,9 +9792,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9809,9 +9809,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9819,9 +9819,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9829,9 +9829,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9848,9 +9848,9 @@ impl IX509CertificateRequestCmc2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -9860,9 +9860,9 @@ impl IX509CertificateRequestCmc2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9870,9 +9870,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9880,29 +9880,29 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: P0, strcertificate: P1, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.into_param().abi(), strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.param().abi(), strcertificate.param().abi(), encoding, inheritoptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromInnerRequest(&self, pinnerrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn RequesterName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9910,9 +9910,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn SetRequesterName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRequesterName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRequesterName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignerCertificate(&self) -> windows_core::Result { @@ -9922,17 +9922,17 @@ impl IX509CertificateRequestCmc2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromInnerRequestTemplateName(&self, pinnerrequest: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromInnerRequestTemplateName)(windows_core::Interface::as_raw(self), pinnerrequest.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromInnerRequestTemplateName)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TemplateObjectId(&self) -> windows_core::Result { @@ -9981,9 +9981,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn put_SenderNonce(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_SenderNonce)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_SenderNonce)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -9996,9 +9996,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn SetArchivePrivateKey(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetArchivePrivateKey)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetArchivePrivateKey)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10006,9 +10006,9 @@ impl IX509CertificateRequestCmc2 { } pub unsafe fn put_KeyArchivalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_KeyArchivalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptionAlgorithm(&self) -> windows_core::Result { @@ -10018,9 +10018,9 @@ impl IX509CertificateRequestCmc2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetEncryptionAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn EncryptionStrength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10041,19 +10041,19 @@ impl IX509CertificateRequestCmc2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: P0, ptemplate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromInnerRequestTemplate(&self, pinnerrequest: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromInnerRequestTemplate)(windows_core::Interface::as_raw(self), pinnerrequest.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromInnerRequestTemplate)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PolicyServer(&self) -> windows_core::Result { @@ -10071,10 +10071,10 @@ impl IX509CertificateRequestCmc2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CheckCertificateSignature(&self, psignercertificate: P0, validatecertificatechain: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), psignercertificate.into_param().abi(), validatecertificatechain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), psignercertificate.param().abi(), validatecertificatechain.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10137,9 +10137,9 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10154,9 +10154,9 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10164,9 +10164,9 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10174,9 +10174,9 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10193,9 +10193,9 @@ impl IX509CertificateRequestPkcs10 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -10205,9 +10205,9 @@ impl IX509CertificateRequestPkcs10 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10215,9 +10215,9 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10225,37 +10225,37 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.param().abi(), encoding, inheritoptions).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -10299,9 +10299,9 @@ impl IX509CertificateRequestPkcs10 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSubject(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatuses(&self) -> windows_core::Result { @@ -10314,9 +10314,9 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn SetSmimeCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -10329,9 +10329,9 @@ impl IX509CertificateRequestPkcs10 { } pub unsafe fn SetKeyContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CryptAttributes(&self) -> windows_core::Result { @@ -10476,9 +10476,9 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10493,9 +10493,9 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10503,9 +10503,9 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10513,9 +10513,9 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10532,9 +10532,9 @@ impl IX509CertificateRequestPkcs10V2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -10544,9 +10544,9 @@ impl IX509CertificateRequestPkcs10V2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10554,9 +10554,9 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10564,37 +10564,37 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.param().abi(), encoding, inheritoptions).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -10638,9 +10638,9 @@ impl IX509CertificateRequestPkcs10V2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSubject(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatuses(&self) -> windows_core::Result { @@ -10653,9 +10653,9 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn SetSmimeCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -10668,9 +10668,9 @@ impl IX509CertificateRequestPkcs10V2 { } pub unsafe fn SetKeyContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CryptAttributes(&self) -> windows_core::Result { @@ -10708,28 +10708,28 @@ impl IX509CertificateRequestPkcs10V2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: P0, ptemplate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKeyTemplate(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_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() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKeyTemplate(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromPublicKeyTemplate)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_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() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PolicyServer(&self) -> windows_core::Result { @@ -10801,9 +10801,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10818,9 +10818,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10828,9 +10828,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10838,9 +10838,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10857,9 +10857,9 @@ impl IX509CertificateRequestPkcs10V3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -10869,9 +10869,9 @@ impl IX509CertificateRequestPkcs10V3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10879,9 +10879,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10889,37 +10889,37 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.param().abi(), encoding, inheritoptions).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -10963,9 +10963,9 @@ impl IX509CertificateRequestPkcs10V3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSubject(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatuses(&self) -> windows_core::Result { @@ -10978,9 +10978,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetSmimeCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -10993,9 +10993,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetKeyContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CryptAttributes(&self) -> windows_core::Result { @@ -11033,28 +11033,28 @@ impl IX509CertificateRequestPkcs10V3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: P0, ptemplate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKeyTemplate(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKeyTemplate(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromPublicKeyTemplate)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromPublicKeyTemplate)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PolicyServer(&self) -> windows_core::Result { @@ -11072,9 +11072,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetAttestPrivateKey(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttestPrivateKey)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttestPrivateKey)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11082,9 +11082,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn put_AttestationEncryptionCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptionAlgorithm(&self) -> windows_core::Result { @@ -11094,9 +11094,9 @@ impl IX509CertificateRequestPkcs10V3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetEncryptionAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn EncryptionStrength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11111,9 +11111,9 @@ impl IX509CertificateRequestPkcs10V3 { } pub unsafe fn SetChallengePassword(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetChallengePassword)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetChallengePassword)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameValuePairs(&self) -> windows_core::Result { @@ -11180,9 +11180,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11197,9 +11197,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11207,9 +11207,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11217,9 +11217,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11236,9 +11236,9 @@ impl IX509CertificateRequestPkcs10V4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -11248,9 +11248,9 @@ impl IX509CertificateRequestPkcs10V4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11258,9 +11258,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11268,37 +11268,37 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromPrivateKey)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromPublicKey)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, strcertificate.param().abi(), encoding, inheritoptions).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.CheckSignature)(windows_core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -11342,9 +11342,9 @@ impl IX509CertificateRequestPkcs10V4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSubject(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSubject)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatuses(&self) -> windows_core::Result { @@ -11357,9 +11357,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetSmimeCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetSmimeCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -11372,9 +11372,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetKeyContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetKeyContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CryptAttributes(&self) -> windows_core::Result { @@ -11412,28 +11412,28 @@ impl IX509CertificateRequestPkcs10V4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: P0, ptemplate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPrivateKeyTemplate(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromPrivateKeyTemplate)(windows_core::Interface::as_raw(self), context, pprivatekey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromPublicKeyTemplate(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, ppolicyserver: P1, ptemplate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeFromPublicKeyTemplate)(windows_core::Interface::as_raw(self), context, ppublickey.into_param().abi(), ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.InitializeFromPublicKeyTemplate)(windows_core::Interface::as_raw(self), context, ppublickey.param().abi(), ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PolicyServer(&self) -> windows_core::Result { @@ -11451,9 +11451,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetAttestPrivateKey(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAttestPrivateKey)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAttestPrivateKey)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11461,9 +11461,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn put_AttestationEncryptionCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_AttestationEncryptionCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptionAlgorithm(&self) -> windows_core::Result { @@ -11473,9 +11473,9 @@ impl IX509CertificateRequestPkcs10V4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetEncryptionAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEncryptionAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn EncryptionStrength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11490,9 +11490,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetChallengePassword(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetChallengePassword)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetChallengePassword)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameValuePairs(&self) -> windows_core::Result { @@ -11512,9 +11512,9 @@ impl IX509CertificateRequestPkcs10V4 { } pub unsafe fn SetAttestPrivateKeyPreferred(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttestPrivateKeyPreferred)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttestPrivateKeyPreferred)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11560,9 +11560,9 @@ impl IX509CertificateRequestPkcs7 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11577,9 +11577,9 @@ impl IX509CertificateRequestPkcs7 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11587,9 +11587,9 @@ impl IX509CertificateRequestPkcs7 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11597,9 +11597,9 @@ impl IX509CertificateRequestPkcs7 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11616,9 +11616,9 @@ impl IX509CertificateRequestPkcs7 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -11628,9 +11628,9 @@ impl IX509CertificateRequestPkcs7 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11638,9 +11638,9 @@ impl IX509CertificateRequestPkcs7 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11648,29 +11648,29 @@ impl IX509CertificateRequestPkcs7 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: P0, strcertificate: P1, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.into_param().abi(), strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.param().abi(), strcertificate.param().abi(), encoding, inheritoptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromInnerRequest(&self, pinnerrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn RequesterName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11678,9 +11678,9 @@ impl IX509CertificateRequestPkcs7 { } pub unsafe fn SetRequesterName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequesterName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequesterName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignerCertificate(&self) -> windows_core::Result { @@ -11690,9 +11690,9 @@ impl IX509CertificateRequestPkcs7 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11751,9 +11751,9 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11768,9 +11768,9 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SuppressDefaults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11778,9 +11778,9 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn SetSuppressDefaults(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11788,9 +11788,9 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ClientId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11807,9 +11807,9 @@ impl IX509CertificateRequestPkcs7V2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { @@ -11819,9 +11819,9 @@ impl IX509CertificateRequestPkcs7V2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11829,9 +11829,9 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_RawData(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11839,29 +11839,29 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: P0, strcertificate: P1, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.into_param().abi(), strcertificate.into_param().abi(), encoding, inheritoptions).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromCertificate)(windows_core::Interface::as_raw(self), context, renewalrequest.param().abi(), strcertificate.param().abi(), encoding, inheritoptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromInnerRequest(&self, pinnerrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromInnerRequest)(windows_core::Interface::as_raw(self), pinnerrequest.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn RequesterName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11869,9 +11869,9 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn SetRequesterName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRequesterName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRequesterName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignerCertificate(&self) -> windows_core::Result { @@ -11881,17 +11881,17 @@ impl IX509CertificateRequestPkcs7V2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: P0, ptemplate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.into_param().abi(), ptemplate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.param().abi(), ptemplate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PolicyServer(&self) -> windows_core::Result { @@ -11905,9 +11905,9 @@ impl IX509CertificateRequestPkcs7V2 { } pub unsafe fn CheckCertificateSignature(&self, validatecertificatechain: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), validatecertificatechain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CheckCertificateSignature)(windows_core::Interface::as_raw(self), validatecertificatechain.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11939,9 +11939,9 @@ impl IX509CertificateRevocationList { } pub unsafe fn InitializeDecode(&self, strencodeddata: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), strencodeddata.param().abi(), encoding).ok() } pub unsafe fn Encode(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Encode)(windows_core::Interface::as_raw(self)).ok() @@ -11952,9 +11952,9 @@ impl IX509CertificateRevocationList { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CheckPublicKeySignature(&self, ppublickey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CheckPublicKeySignature)(windows_core::Interface::as_raw(self), ppublickey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CheckPublicKeySignature)(windows_core::Interface::as_raw(self), ppublickey.param().abi()).ok() } pub unsafe fn CheckSignature(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckSignature)(windows_core::Interface::as_raw(self)).ok() @@ -11967,9 +11967,9 @@ impl IX509CertificateRevocationList { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetIssuer(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIssuer)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIssuer)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn ThisUpdate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12008,9 +12008,9 @@ impl IX509CertificateRevocationList { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn get_CRLNumber(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12018,9 +12018,9 @@ impl IX509CertificateRevocationList { } pub unsafe fn put_CRLNumber(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_CRLNumber)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_CRLNumber)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn CAVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12045,9 +12045,9 @@ impl IX509CertificateRevocationList { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12055,9 +12055,9 @@ impl IX509CertificateRevocationList { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SignatureInformation(&self) -> windows_core::Result { @@ -12168,9 +12168,9 @@ impl IX509CertificateRevocationListEntries { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -12180,17 +12180,17 @@ impl IX509CertificateRevocationListEntries { } pub unsafe fn get_IndexBySerialNumber(&self, encoding: EncodingType, serialnumber: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IndexBySerialNumber)(windows_core::Interface::as_raw(self), encoding, serialnumber.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IndexBySerialNumber)(windows_core::Interface::as_raw(self), encoding, serialnumber.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12223,9 +12223,9 @@ windows_core::imp::interface_hierarchy!(IX509CertificateRevocationListEntry, win impl IX509CertificateRevocationListEntry { pub unsafe fn Initialize(&self, encoding: EncodingType, serialnumber: P0, revocationdate: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, serialnumber.into_param().abi(), revocationdate).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), encoding, serialnumber.param().abi(), revocationdate).ok() } pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12297,15 +12297,15 @@ impl IX509CertificateTemplateWritable { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn Commit(&self, commitflags: CommitTemplateFlags, strservercontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), commitflags, strservercontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), commitflags, strservercontext.param().abi()).ok() } pub unsafe fn get_Property(&self, property: EnrollmentTemplateProperty) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12313,9 +12313,9 @@ impl IX509CertificateTemplateWritable { } pub unsafe fn put_Property(&self, property: EnrollmentTemplateProperty, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), property, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), property, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Template(&self) -> windows_core::Result { @@ -12361,9 +12361,9 @@ impl IX509CertificateTemplates { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -12374,18 +12374,18 @@ impl IX509CertificateTemplates { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByName(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByName)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ItemByOid(&self, poid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ItemByOid)(windows_core::Interface::as_raw(self), poid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ItemByOid)(windows_core::Interface::as_raw(self), poid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -12425,9 +12425,9 @@ impl IX509EndorsementKey { } pub unsafe fn SetProviderName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12439,29 +12439,29 @@ impl IX509EndorsementKey { } pub unsafe fn AddCertificate(&self, encoding: EncodingType, strcertificate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCertificate)(windows_core::Interface::as_raw(self), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddCertificate)(windows_core::Interface::as_raw(self), encoding, strcertificate.param().abi()).ok() } pub unsafe fn RemoveCertificate(&self, encoding: EncodingType, strcertificate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveCertificate)(windows_core::Interface::as_raw(self), encoding, strcertificate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveCertificate)(windows_core::Interface::as_raw(self), encoding, strcertificate.param().abi()).ok() } pub unsafe fn GetCertificateByIndex(&self, manufactureronly: P0, dwindex: i32, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateByIndex)(windows_core::Interface::as_raw(self), manufactureronly.into_param().abi(), dwindex, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCertificateByIndex)(windows_core::Interface::as_raw(self), manufactureronly.param().abi(), dwindex, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCertificateCount(&self, manufactureronly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCertificateCount)(windows_core::Interface::as_raw(self), manufactureronly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCertificateCount)(windows_core::Interface::as_raw(self), manufactureronly.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExportPublicKey(&self) -> windows_core::Result { @@ -12505,16 +12505,16 @@ impl IX509Enrollment { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromRequest(&self, prequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromRequest)(windows_core::Interface::as_raw(self), prequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromRequest)(windows_core::Interface::as_raw(self), prequest.param().abi()).ok() } pub unsafe fn CreateRequest(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12525,17 +12525,17 @@ impl IX509Enrollment { } pub unsafe fn InstallResponse(&self, restrictions: InstallResponseRestrictionFlags, strresponse: P0, encoding: EncodingType, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallResponse)(windows_core::Interface::as_raw(self), restrictions, strresponse.into_param().abi(), encoding, strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallResponse)(windows_core::Interface::as_raw(self), restrictions, strresponse.param().abi(), encoding, strpassword.param().abi()).ok() } pub unsafe fn CreatePFX(&self, strpassword: P0, exportoptions: PFXExportOptions, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePFX)(windows_core::Interface::as_raw(self), strpassword.into_param().abi(), exportoptions, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePFX)(windows_core::Interface::as_raw(self), strpassword.param().abi(), exportoptions, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Request(&self) -> windows_core::Result { @@ -12548,9 +12548,9 @@ impl IX509Enrollment { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12587,9 +12587,9 @@ impl IX509Enrollment { } pub unsafe fn SetCertificateFriendlyName(&self, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), strvalue.param().abi()).ok() } pub unsafe fn CertificateDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12597,9 +12597,9 @@ impl IX509Enrollment { } pub unsafe fn SetCertificateDescription(&self, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCertificateDescription)(windows_core::Interface::as_raw(self), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCertificateDescription)(windows_core::Interface::as_raw(self), strvalue.param().abi()).ok() } pub unsafe fn RequestId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12661,16 +12661,16 @@ impl IX509Enrollment2 { } pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromTemplateName)(windows_core::Interface::as_raw(self), context, strtemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromRequest(&self, prequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromRequest)(windows_core::Interface::as_raw(self), prequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromRequest)(windows_core::Interface::as_raw(self), prequest.param().abi()).ok() } pub unsafe fn CreateRequest(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12681,17 +12681,17 @@ impl IX509Enrollment2 { } pub unsafe fn InstallResponse(&self, restrictions: InstallResponseRestrictionFlags, strresponse: P0, encoding: EncodingType, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstallResponse)(windows_core::Interface::as_raw(self), restrictions, strresponse.into_param().abi(), encoding, strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstallResponse)(windows_core::Interface::as_raw(self), restrictions, strresponse.param().abi(), encoding, strpassword.param().abi()).ok() } pub unsafe fn CreatePFX(&self, strpassword: P0, exportoptions: PFXExportOptions, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePFX)(windows_core::Interface::as_raw(self), strpassword.into_param().abi(), exportoptions, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePFX)(windows_core::Interface::as_raw(self), strpassword.param().abi(), exportoptions, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Request(&self) -> windows_core::Result { @@ -12704,9 +12704,9 @@ impl IX509Enrollment2 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12743,9 +12743,9 @@ impl IX509Enrollment2 { } pub unsafe fn SetCertificateFriendlyName(&self, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), strvalue.param().abi()).ok() } pub unsafe fn CertificateDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12753,9 +12753,9 @@ impl IX509Enrollment2 { } pub unsafe fn SetCertificateDescription(&self, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCertificateDescription)(windows_core::Interface::as_raw(self), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCertificateDescription)(windows_core::Interface::as_raw(self), strvalue.param().abi()).ok() } pub unsafe fn RequestId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12768,19 +12768,19 @@ impl IX509Enrollment2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: P0, ptemplate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromTemplate)(windows_core::Interface::as_raw(self), context, ppolicyserver.into_param().abi(), ptemplate.into_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: P0, encoding: EncodingType, strpassword: P1, strenrollmentpolicyserverurl: P2, strenrollmentpolicyserverid: P3, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallResponse2)(windows_core::Interface::as_raw(self), restrictions, strresponse.into_param().abi(), encoding, strpassword.into_param().abi(), strenrollmentpolicyserverurl.into_param().abi(), strenrollmentpolicyserverid.into_param().abi(), enrollmentpolicyserverflags, authflags).ok() + (windows_core::Interface::vtable(self).InstallResponse2)(windows_core::Interface::as_raw(self), restrictions, strresponse.param().abi(), encoding, strpassword.param().abi(), strenrollmentpolicyserverurl.param().abi(), strenrollmentpolicyserverid.param().abi(), enrollmentpolicyserverflags, authflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PolicyServer(&self) -> windows_core::Result { @@ -12824,28 +12824,28 @@ windows_core::imp::interface_hierarchy!(IX509EnrollmentHelper, windows_core::IUn impl IX509EnrollmentHelper { pub unsafe fn AddPolicyServer(&self, strenrollmentpolicyserveruri: P0, strenrollmentpolicyid: P1, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: P2, strpassword: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPolicyServer)(windows_core::Interface::as_raw(self), strenrollmentpolicyserveruri.into_param().abi(), strenrollmentpolicyid.into_param().abi(), enrollmentpolicyserverflags, authflags, strcredential.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPolicyServer)(windows_core::Interface::as_raw(self), strenrollmentpolicyserveruri.param().abi(), strenrollmentpolicyid.param().abi(), enrollmentpolicyserverflags, authflags, strcredential.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn AddEnrollmentServer(&self, strenrollmentserveruri: P0, authflags: X509EnrollmentAuthFlags, strcredential: P1, strpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEnrollmentServer)(windows_core::Interface::as_raw(self), strenrollmentserveruri.into_param().abi(), authflags, strcredential.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddEnrollmentServer)(windows_core::Interface::as_raw(self), strenrollmentserveruri.param().abi(), authflags, strcredential.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn Enroll(&self, strenrollmentpolicyserveruri: P0, strtemplatename: P1, encoding: EncodingType, enrollflags: WebEnrollmentFlags) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Enroll)(windows_core::Interface::as_raw(self), strenrollmentpolicyserveruri.into_param().abi(), strtemplatename.into_param().abi(), encoding, enrollflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Enroll)(windows_core::Interface::as_raw(self), strenrollmentpolicyserveruri.param().abi(), strtemplatename.param().abi(), encoding, enrollflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), context).ok() @@ -12868,11 +12868,11 @@ windows_core::imp::interface_hierarchy!(IX509EnrollmentPolicyServer, windows_cor impl IX509EnrollmentPolicyServer { pub unsafe fn Initialize(&self, bstrpolicyserverurl: P0, bstrpolicyserverid: P1, authflags: X509EnrollmentAuthFlags, fisuntrusted: P2, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrpolicyserverurl.into_param().abi(), bstrpolicyserverid.into_param().abi(), authflags, fisuntrusted.into_param().abi(), context).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrpolicyserverurl.param().abi(), bstrpolicyserverid.param().abi(), authflags, fisuntrusted.param().abi(), context).ok() } pub unsafe fn LoadPolicy(&self, option: X509EnrollmentPolicyLoadOption) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LoadPolicy)(windows_core::Interface::as_raw(self), option).ok() @@ -12885,10 +12885,10 @@ impl IX509EnrollmentPolicyServer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCAsForTemplate(&self, ptemplate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCAsForTemplate)(windows_core::Interface::as_raw(self), ptemplate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCAsForTemplate)(windows_core::Interface::as_raw(self), ptemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCAs(&self) -> windows_core::Result { @@ -12949,10 +12949,10 @@ impl IX509EnrollmentPolicyServer { } pub unsafe fn SetCredential(&self, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: P0, strpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), hwndparent, flag, strcredential.into_param().abi(), strpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredential)(windows_core::Interface::as_raw(self), hwndparent, flag, strcredential.param().abi(), strpassword.param().abi()).ok() } pub unsafe fn QueryChanges(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12960,9 +12960,9 @@ impl IX509EnrollmentPolicyServer { } pub unsafe fn InitializeImport(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeImport)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeImport)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn Export(&self, exportflags: X509EnrollmentPolicyExportFlags) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13025,9 +13025,9 @@ windows_core::imp::interface_hierarchy!(IX509EnrollmentStatus, windows_core::IUn impl IX509EnrollmentStatus { pub unsafe fn AppendText(&self, strtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendText)(windows_core::Interface::as_raw(self), strtext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendText)(windows_core::Interface::as_raw(self), strtext.param().abi()).ok() } pub unsafe fn Text(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13035,9 +13035,9 @@ impl IX509EnrollmentStatus { } pub unsafe fn SetText(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Selected(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13097,10 +13097,10 @@ windows_core::imp::interface_hierarchy!(IX509EnrollmentWebClassFactory, windows_ impl IX509EnrollmentWebClassFactory { pub unsafe fn CreateObject(&self, strprogid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), strprogid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), strprogid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -13118,10 +13118,10 @@ impl IX509Extension { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13138,9 +13138,9 @@ impl IX509Extension { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13168,10 +13168,10 @@ impl IX509ExtensionAlternativeNames { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13188,22 +13188,22 @@ impl IX509ExtensionAlternativeNames { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AlternativeNames(&self) -> windows_core::Result { @@ -13234,10 +13234,10 @@ impl IX509ExtensionAuthorityKeyIdentifier { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13254,21 +13254,21 @@ impl IX509ExtensionAuthorityKeyIdentifier { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, strkeyidentifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, strkeyidentifier.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn get_AuthorityKeyIdentifier(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13292,10 +13292,10 @@ impl IX509ExtensionBasicConstraints { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13312,21 +13312,21 @@ impl IX509ExtensionBasicConstraints { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InitializeEncode(&self, isca: P0, pathlenconstraint: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), isca.into_param().abi(), pathlenconstraint).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), isca.param().abi(), pathlenconstraint).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn IsCA(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13355,10 +13355,10 @@ impl IX509ExtensionCertificatePolicies { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13375,22 +13375,22 @@ impl IX509ExtensionCertificatePolicies { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Policies(&self) -> windows_core::Result { @@ -13421,10 +13421,10 @@ impl IX509ExtensionEnhancedKeyUsage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13441,22 +13441,22 @@ impl IX509ExtensionEnhancedKeyUsage { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnhancedKeyUsage(&self) -> windows_core::Result { @@ -13487,10 +13487,10 @@ impl IX509ExtensionKeyUsage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13507,18 +13507,18 @@ impl IX509ExtensionKeyUsage { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InitializeEncode(&self, usageflags: X509KeyUsageFlags) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), usageflags).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn KeyUsage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13542,10 +13542,10 @@ impl IX509ExtensionMSApplicationPolicies { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13562,22 +13562,22 @@ impl IX509ExtensionMSApplicationPolicies { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Policies(&self) -> windows_core::Result { @@ -13608,10 +13608,10 @@ impl IX509ExtensionSmimeCapabilities { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13628,22 +13628,22 @@ impl IX509ExtensionSmimeCapabilities { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SmimeCapabilities(&self) -> windows_core::Result { @@ -13674,10 +13674,10 @@ impl IX509ExtensionSubjectKeyIdentifier { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13694,21 +13694,21 @@ impl IX509ExtensionSubjectKeyIdentifier { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, strkeyidentifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), encoding, strkeyidentifier.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn get_SubjectKeyIdentifier(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13732,10 +13732,10 @@ impl IX509ExtensionTemplate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13752,22 +13752,22 @@ impl IX509ExtensionTemplate { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeEncode(&self, ptemplateoid: P0, majorversion: i32, minorversion: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), ptemplateoid.into_param().abi(), majorversion, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TemplateOid(&self) -> windows_core::Result { @@ -13808,10 +13808,10 @@ impl IX509ExtensionTemplateName { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), encoding, strencodeddata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ObjectId(&self) -> windows_core::Result { @@ -13828,21 +13828,21 @@ impl IX509ExtensionTemplateName { } pub unsafe fn SetCritical(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCritical)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InitializeEncode(&self, strtemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), strtemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeEncode)(windows_core::Interface::as_raw(self), strtemplatename.param().abi()).ok() } pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDecode)(windows_core::Interface::as_raw(self), encoding, strencodeddata.param().abi()).ok() } pub unsafe fn TemplateName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13879,9 +13879,9 @@ impl IX509Extensions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -13892,17 +13892,17 @@ impl IX509Extensions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_IndexByObjectId(&self, pobjectid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_IndexByObjectId)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_IndexByObjectId)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13939,10 +13939,10 @@ impl IX509MachineEnrollmentFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateObject(&self, strprogid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), strprogid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), strprogid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -13962,10 +13962,10 @@ windows_core::imp::interface_hierarchy!(IX509NameValuePair, windows_core::IUnkno impl IX509NameValuePair { pub unsafe fn Initialize(&self, strname: P0, strvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strname.into_param().abi(), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strname.param().abi(), strvalue.param().abi()).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14006,9 +14006,9 @@ impl IX509NameValuePairs { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -14056,9 +14056,9 @@ impl IX509PolicyServerListManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (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), index).ok() @@ -14103,9 +14103,9 @@ impl IX509PolicyServerUrl { } pub unsafe fn SetUrl(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUrl)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn Default(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14113,9 +14113,9 @@ impl IX509PolicyServerUrl { } pub unsafe fn SetDefault(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Flags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14144,9 +14144,9 @@ impl IX509PolicyServerUrl { } pub unsafe fn SetStringProperty(&self, propertyid: PolicyServerUrlPropertyID, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringProperty)(windows_core::Interface::as_raw(self), propertyid, pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStringProperty)(windows_core::Interface::as_raw(self), propertyid, pvalue.param().abi()).ok() } pub unsafe fn UpdateRegistry(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateRegistry)(windows_core::Interface::as_raw(self), context).ok() @@ -14198,17 +14198,17 @@ impl IX509PrivateKey { } pub unsafe fn Import(&self, strexporttype: P0, strencodedkey: P1, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), strexporttype.into_param().abi(), strencodedkey.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), strexporttype.param().abi(), strencodedkey.param().abi(), encoding).ok() } pub unsafe fn Export(&self, strexporttype: P0, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), strexporttype.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), strexporttype.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExportPublicKey(&self) -> windows_core::Result { @@ -14221,9 +14221,9 @@ impl IX509PrivateKey { } pub unsafe fn SetContainerName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainerName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainerName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ContainerNamePrefix(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14231,9 +14231,9 @@ impl IX509PrivateKey { } pub unsafe fn SetContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ReaderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14241,9 +14241,9 @@ impl IX509PrivateKey { } pub unsafe fn SetReaderName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReaderName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReaderName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspInformations(&self) -> windows_core::Result { @@ -14253,9 +14253,9 @@ impl IX509PrivateKey { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatus(&self) -> windows_core::Result { @@ -14265,9 +14265,9 @@ impl IX509PrivateKey { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspStatus(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCspStatus)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCspStatus)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn ProviderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14275,9 +14275,9 @@ impl IX509PrivateKey { } pub unsafe fn SetProviderName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14292,9 +14292,9 @@ impl IX509PrivateKey { } pub unsafe fn SetLegacyCsp(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLegacyCsp)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLegacyCsp)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Algorithm(&self) -> windows_core::Result { @@ -14304,9 +14304,9 @@ impl IX509PrivateKey { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn KeySpec(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14349,9 +14349,9 @@ impl IX509PrivateKey { } pub unsafe fn SetMachineContext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMachineContext)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMachineContext)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SecurityDescriptor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14359,9 +14359,9 @@ impl IX509PrivateKey { } pub unsafe fn SetSecurityDescriptor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14369,9 +14369,9 @@ impl IX509PrivateKey { } pub unsafe fn put_Certificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Certificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Certificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn UniqueContainerName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14391,9 +14391,9 @@ impl IX509PrivateKey { } pub unsafe fn SetExisting(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Silent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14401,9 +14401,9 @@ impl IX509PrivateKey { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14418,15 +14418,15 @@ impl IX509PrivateKey { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetPin(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPin)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPin)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14434,9 +14434,9 @@ impl IX509PrivateKey { } pub unsafe fn SetFriendlyName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14444,9 +14444,9 @@ impl IX509PrivateKey { } pub unsafe fn SetDescription(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14556,17 +14556,17 @@ impl IX509PrivateKey2 { } pub unsafe fn Import(&self, strexporttype: P0, strencodedkey: P1, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Import)(windows_core::Interface::as_raw(self), strexporttype.into_param().abi(), strencodedkey.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.Import)(windows_core::Interface::as_raw(self), strexporttype.param().abi(), strencodedkey.param().abi(), encoding).ok() } pub unsafe fn Export(&self, strexporttype: P0, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Export)(windows_core::Interface::as_raw(self), strexporttype.into_param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Export)(windows_core::Interface::as_raw(self), strexporttype.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExportPublicKey(&self) -> windows_core::Result { @@ -14579,9 +14579,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetContainerName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContainerName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContainerName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ContainerNamePrefix(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14589,9 +14589,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetContainerNamePrefix(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContainerNamePrefix)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContainerNamePrefix)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ReaderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14599,9 +14599,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetReaderName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReaderName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReaderName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspInformations(&self) -> windows_core::Result { @@ -14611,9 +14611,9 @@ impl IX509PrivateKey2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspInformations(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCspInformations)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CspStatus(&self) -> windows_core::Result { @@ -14623,9 +14623,9 @@ impl IX509PrivateKey2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetCspStatus(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCspStatus)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCspStatus)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn ProviderName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14633,9 +14633,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetProviderName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProviderName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProviderName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14650,9 +14650,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetLegacyCsp(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLegacyCsp)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLegacyCsp)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Algorithm(&self) -> windows_core::Result { @@ -14662,9 +14662,9 @@ impl IX509PrivateKey2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn KeySpec(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14707,9 +14707,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetMachineContext(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMachineContext)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMachineContext)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SecurityDescriptor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14717,9 +14717,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetSecurityDescriptor(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSecurityDescriptor)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSecurityDescriptor)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14727,9 +14727,9 @@ impl IX509PrivateKey2 { } pub unsafe fn put_Certificate(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_Certificate)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_Certificate)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn UniqueContainerName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14749,9 +14749,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetExisting(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExisting)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExisting)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Silent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14759,9 +14759,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14776,15 +14776,15 @@ impl IX509PrivateKey2 { } pub unsafe fn SetUIContextMessage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUIContextMessage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetPin(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPin)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPin)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14792,9 +14792,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetFriendlyName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14802,9 +14802,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetDescription(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn HardwareKeyUsage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14819,9 +14819,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetAlternateStorageLocation(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlternateStorageLocation)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlternateStorageLocation)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn AlgorithmName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14829,9 +14829,9 @@ impl IX509PrivateKey2 { } pub unsafe fn SetAlgorithmName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlgorithmName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlgorithmName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn get_AlgorithmParameters(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14839,9 +14839,9 @@ impl IX509PrivateKey2 { } pub unsafe fn put_AlgorithmParameters(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_AlgorithmParameters)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_AlgorithmParameters)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn ParametersExportType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14875,17 +14875,17 @@ impl IX509PublicKey { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pobjectid: P0, strencodedkey: P1, strencodedparameters: P2, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi(), strencodedkey.into_param().abi(), strencodedparameters.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pobjectid.param().abi(), strencodedkey.param().abi(), strencodedparameters.param().abi(), encoding).ok() } pub unsafe fn InitializeFromEncodedPublicKeyInfo(&self, strencodedpublickeyinfo: P0, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromEncodedPublicKeyInfo)(windows_core::Interface::as_raw(self), strencodedpublickeyinfo.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).InitializeFromEncodedPublicKeyInfo)(windows_core::Interface::as_raw(self), strencodedpublickeyinfo.param().abi(), encoding).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Algorithm(&self) -> windows_core::Result { @@ -14936,11 +14936,11 @@ impl IX509SCEPEnrollment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, prequest: P0, strthumbprint: P1, thumprintencoding: EncodingType, strservercertificates: P2, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), prequest.into_param().abi(), strthumbprint.into_param().abi(), thumprintencoding, strservercertificates.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), prequest.param().abi(), strthumbprint.param().abi(), thumprintencoding, strservercertificates.param().abi(), encoding).ok() } pub unsafe fn InitializeForPending(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeForPending)(windows_core::Interface::as_raw(self), context).ok() @@ -14955,24 +14955,24 @@ impl IX509SCEPEnrollment { } pub unsafe fn CreateRetrieveCertificateMessage(&self, context: X509CertificateEnrollmentContext, strissuer: P0, issuerencoding: EncodingType, strserialnumber: P1, serialnumberencoding: EncodingType, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRetrieveCertificateMessage)(windows_core::Interface::as_raw(self), context, strissuer.into_param().abi(), issuerencoding, strserialnumber.into_param().abi(), serialnumberencoding, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRetrieveCertificateMessage)(windows_core::Interface::as_raw(self), context, strissuer.param().abi(), issuerencoding, strserialnumber.param().abi(), serialnumberencoding, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProcessResponseMessage(&self, strresponse: P0, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProcessResponseMessage)(windows_core::Interface::as_raw(self), strresponse.into_param().abi(), encoding, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProcessResponseMessage)(windows_core::Interface::as_raw(self), strresponse.param().abi(), encoding, &mut result__).map(|| result__) } pub unsafe fn SetServerCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FailInfo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14986,9 +14986,9 @@ impl IX509SCEPEnrollment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OldCertificate(&self) -> windows_core::Result { @@ -14998,9 +14998,9 @@ impl IX509SCEPEnrollment { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetOldCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOldCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOldCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn get_TransactionId(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15008,9 +15008,9 @@ impl IX509SCEPEnrollment { } pub unsafe fn put_TransactionId(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_TransactionId)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_TransactionId)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Request(&self) -> windows_core::Result { @@ -15023,9 +15023,9 @@ impl IX509SCEPEnrollment { } pub unsafe fn SetCertificateFriendlyName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Status(&self) -> windows_core::Result { @@ -15042,9 +15042,9 @@ impl IX509SCEPEnrollment { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn DeleteRequest(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteRequest)(windows_core::Interface::as_raw(self)).ok() @@ -15107,11 +15107,11 @@ impl IX509SCEPEnrollment2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, prequest: P0, strthumbprint: P1, thumprintencoding: EncodingType, strservercertificates: P2, encoding: EncodingType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), prequest.into_param().abi(), strthumbprint.into_param().abi(), thumprintencoding, strservercertificates.into_param().abi(), encoding).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), prequest.param().abi(), strthumbprint.param().abi(), thumprintencoding, strservercertificates.param().abi(), encoding).ok() } pub unsafe fn InitializeForPending(&self, context: X509CertificateEnrollmentContext) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.InitializeForPending)(windows_core::Interface::as_raw(self), context).ok() @@ -15126,24 +15126,24 @@ impl IX509SCEPEnrollment2 { } pub unsafe fn CreateRetrieveCertificateMessage(&self, context: X509CertificateEnrollmentContext, strissuer: P0, issuerencoding: EncodingType, strserialnumber: P1, serialnumberencoding: EncodingType, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRetrieveCertificateMessage)(windows_core::Interface::as_raw(self), context, strissuer.into_param().abi(), issuerencoding, strserialnumber.into_param().abi(), serialnumberencoding, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRetrieveCertificateMessage)(windows_core::Interface::as_raw(self), context, strissuer.param().abi(), issuerencoding, strserialnumber.param().abi(), serialnumberencoding, encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProcessResponseMessage(&self, strresponse: P0, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ProcessResponseMessage)(windows_core::Interface::as_raw(self), strresponse.into_param().abi(), encoding, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.ProcessResponseMessage)(windows_core::Interface::as_raw(self), strresponse.param().abi(), encoding, &mut result__).map(|| result__) } pub unsafe fn SetServerCapabilities(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetServerCapabilities)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetServerCapabilities)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FailInfo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15157,9 +15157,9 @@ impl IX509SCEPEnrollment2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignerCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSignerCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OldCertificate(&self) -> windows_core::Result { @@ -15169,9 +15169,9 @@ impl IX509SCEPEnrollment2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetOldCertificate(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOldCertificate)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOldCertificate)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn get_TransactionId(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15179,9 +15179,9 @@ impl IX509SCEPEnrollment2 { } pub unsafe fn put_TransactionId(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_TransactionId)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_TransactionId)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Request(&self) -> windows_core::Result { @@ -15194,9 +15194,9 @@ impl IX509SCEPEnrollment2 { } pub unsafe fn SetCertificateFriendlyName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCertificateFriendlyName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Status(&self) -> windows_core::Result { @@ -15213,9 +15213,9 @@ impl IX509SCEPEnrollment2 { } pub unsafe fn SetSilent(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSilent)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn DeleteRequest(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DeleteRequest)(windows_core::Interface::as_raw(self)).ok() @@ -15226,10 +15226,10 @@ impl IX509SCEPEnrollment2 { } pub unsafe fn ProcessResponseMessage2(&self, flags: X509SCEPProcessMessageFlags, strresponse: P0, encoding: EncodingType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProcessResponseMessage2)(windows_core::Interface::as_raw(self), flags, strresponse.into_param().abi(), encoding, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ProcessResponseMessage2)(windows_core::Interface::as_raw(self), flags, strresponse.param().abi(), encoding, &mut result__).map(|| result__) } pub unsafe fn ResultMessageText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15245,9 +15245,9 @@ impl IX509SCEPEnrollment2 { } pub unsafe fn SetActivityId(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActivityId)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActivityId)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -15270,20 +15270,20 @@ impl IX509SCEPEnrollmentHelper { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, strserverurl: P0, strrequestheaders: P1, prequest: P2, strcacertificatethumbprint: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strserverurl.into_param().abi(), strrequestheaders.into_param().abi(), prequest.into_param().abi(), strcacertificatethumbprint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), strserverurl.param().abi(), strrequestheaders.param().abi(), prequest.param().abi(), strcacertificatethumbprint.param().abi()).ok() } pub unsafe fn InitializeForPending(&self, strserverurl: P0, strrequestheaders: P1, context: X509CertificateEnrollmentContext, strtransactionid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeForPending)(windows_core::Interface::as_raw(self), strserverurl.into_param().abi(), strrequestheaders.into_param().abi(), context, strtransactionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeForPending)(windows_core::Interface::as_raw(self), strserverurl.param().abi(), strrequestheaders.param().abi(), context, strtransactionid.param().abi()).ok() } pub unsafe fn Enroll(&self, processflags: X509SCEPProcessMessageFlags) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15334,9 +15334,9 @@ impl IX509SignatureInformation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHashAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PublicKeyAlgorithm(&self) -> windows_core::Result { @@ -15346,9 +15346,9 @@ impl IX509SignatureInformation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPublicKeyAlgorithm(&self, pvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPublicKeyAlgorithm)(windows_core::Interface::as_raw(self), pvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPublicKeyAlgorithm)(windows_core::Interface::as_raw(self), pvalue.param().abi()).ok() } pub unsafe fn get_Parameters(&self, encoding: EncodingType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15356,9 +15356,9 @@ impl IX509SignatureInformation { } pub unsafe fn put_Parameters(&self, encoding: EncodingType, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Parameters)(windows_core::Interface::as_raw(self), encoding, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Parameters)(windows_core::Interface::as_raw(self), encoding, value.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15366,9 +15366,9 @@ impl IX509SignatureInformation { } pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn AlternateSignatureAlgorithmSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15380,18 +15380,18 @@ impl IX509SignatureInformation { } pub unsafe fn SetNullSigned(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNullSigned)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNullSigned)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSignatureAlgorithm(&self, pkcs7signature: P0, signaturekey: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSignatureAlgorithm)(windows_core::Interface::as_raw(self), pkcs7signature.into_param().abi(), signaturekey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSignatureAlgorithm)(windows_core::Interface::as_raw(self), pkcs7signature.param().abi(), signaturekey.param().abi(), &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 433904cedc..9612ec5d65 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 @@ -53,20 +53,20 @@ pub unsafe fn CryptSIPRemoveSignedDataMsg(psubjectinfo: *mut SIP_SUBJECTINFO, dw #[inline] pub unsafe fn CryptSIPRetrieveSubjectGuid(filename: P0, hfilein: P1, pgsubject: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hfilein.into_param().abi(), pgsubject).ok() + CryptSIPRetrieveSubjectGuid(filename.param().abi(), hfilein.param().abi(), pgsubject).ok() } #[inline] pub unsafe fn CryptSIPRetrieveSubjectGuidForCatalogFile(filename: P0, hfilein: P1, pgsubject: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hfilein.into_param().abi(), pgsubject).ok() + CryptSIPRetrieveSubjectGuidForCatalogFile(filename.param().abi(), hfilein.param().abi(), 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 bee279e3d2..9f3590fcb2 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 @@ -11,13 +11,13 @@ pub unsafe fn CryptUIDlgCertMgr(pcryptuicertmgr: *const CRYPTUI_CERT_MGR_STRUCT) #[inline] pub unsafe fn CryptUIDlgSelectCertificateFromStore(hcertstore: P0, hwnd: P1, pwsztitle: P2, pwszdisplaystring: P3, dwdontusecolumn: u32, dwflags: u32, pvreserved: *const core::ffi::c_void) -> *mut super::CERT_CONTEXT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hcertstore.into_param().abi(), hwnd.into_param().abi(), pwsztitle.into_param().abi(), pwszdisplaystring.into_param().abi(), dwdontusecolumn, dwflags, pvreserved) + CryptUIDlgSelectCertificateFromStore(hcertstore.param().abi(), hwnd.param().abi(), 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] @@ -34,29 +34,29 @@ pub unsafe fn CryptUIDlgViewCertificateW(pcertviewinfo: *const CRYPTUI_VIEWCERTI #[inline] pub unsafe fn CryptUIDlgViewContext(dwcontexttype: u32, pvcontext: *const core::ffi::c_void, hwnd: P0, pwsztitle: P1, dwflags: u32, pvreserved: *const core::ffi::c_void) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwcontexttype, pvcontext, hwnd.into_param().abi(), pwsztitle.into_param().abi(), dwflags, pvreserved) + CryptUIDlgViewContext(dwcontexttype, pvcontext, hwnd.param().abi(), pwsztitle.param().abi(), dwflags, pvreserved) } #[inline] pub unsafe fn CryptUIWizDigitalSign(dwflags: u32, hwndparent: P0, pwszwizardtitle: P1, pdigitalsigninfo: *const CRYPTUI_WIZ_DIGITAL_SIGN_INFO, ppsigncontext: Option<*mut *mut CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT>) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, hwndparent.into_param().abi(), pwszwizardtitle.into_param().abi(), pdigitalsigninfo, core::mem::transmute(ppsigncontext.unwrap_or(std::ptr::null_mut()))) + CryptUIWizDigitalSign(dwflags, hwndparent.param().abi(), pwszwizardtitle.param().abi(), pdigitalsigninfo, core::mem::transmute(ppsigncontext.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn CryptUIWizExport(dwflags: CRYPTUI_WIZ_FLAGS, hwndparent: P0, pwszwizardtitle: P1, pexportinfo: *const CRYPTUI_WIZ_EXPORT_INFO, pvoid: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, hwndparent.into_param().abi(), pwszwizardtitle.into_param().abi(), pexportinfo, core::mem::transmute(pvoid.unwrap_or(std::ptr::null()))).ok() + CryptUIWizExport(dwflags, hwndparent.param().abi(), pwszwizardtitle.param().abi(), pexportinfo, core::mem::transmute(pvoid.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CryptUIWizFreeDigitalSignContext(psigncontext: *const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> super::super::super::Foundation::BOOL { @@ -66,12 +66,12 @@ pub unsafe fn CryptUIWizFreeDigitalSignContext(psigncontext: *const CRYPTUI_WIZ_ #[inline] pub unsafe fn CryptUIWizImport(dwflags: CRYPTUI_WIZ_FLAGS, hwndparent: P0, pwszwizardtitle: P1, pimportsrc: Option<*const CRYPTUI_WIZ_IMPORT_SRC_INFO>, hdestcertstore: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(dwflags, hwndparent.into_param().abi(), pwszwizardtitle.into_param().abi(), core::mem::transmute(pimportsrc.unwrap_or(std::ptr::null())), hdestcertstore.into_param().abi()).ok() + CryptUIWizImport(dwflags, hwndparent.param().abi(), pwszwizardtitle.param().abi(), core::mem::transmute(pimportsrc.unwrap_or(std::ptr::null())), hdestcertstore.param().abi()).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 9bc25b07d9..8fc5b9fa76 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -9,11 +9,11 @@ pub mod UI; #[inline] pub unsafe fn BCryptAddContextFunction(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pszfunction: P1, dwposition: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pszfunction.into_param().abi(), dwposition) + BCryptAddContextFunction(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), dwposition) } #[inline] pub unsafe fn BCryptCloseAlgorithmProvider(halgorithm: BCRYPT_ALG_HANDLE, dwflags: u32) -> super::super::Foundation::NTSTATUS { @@ -23,27 +23,27 @@ pub unsafe fn BCryptCloseAlgorithmProvider(halgorithm: BCRYPT_ALG_HANDLE, dwflag #[inline] pub unsafe fn BCryptConfigureContext(dwtable: BCRYPT_TABLE, pszcontext: P0, pconfig: *const CRYPT_CONTEXT_CONFIG) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(dwtable, pszcontext.into_param().abi(), pconfig) + BCryptConfigureContext(dwtable, pszcontext.param().abi(), pconfig) } #[inline] pub unsafe fn BCryptConfigureContextFunction(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pszfunction: P1, pconfig: *const CRYPT_CONTEXT_FUNCTION_CONFIG) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pszfunction.into_param().abi(), pconfig) + BCryptConfigureContextFunction(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pconfig) } #[inline] pub unsafe fn BCryptCreateContext(dwtable: BCRYPT_TABLE, pszcontext: P0, pconfig: Option<*const CRYPT_CONTEXT_CONFIG>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(dwtable, pszcontext.into_param().abi(), core::mem::transmute(pconfig.unwrap_or(std::ptr::null()))) + BCryptCreateContext(dwtable, pszcontext.param().abi(), core::mem::transmute(pconfig.unwrap_or(std::ptr::null()))) } #[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 { @@ -74,36 +74,36 @@ pub unsafe fn BCryptDecrypt(hkey: BCRYPT_KEY_HANDLE, pbinput: Option<&[u8]>, ppa #[inline] pub unsafe fn BCryptDeleteContext(dwtable: BCRYPT_TABLE, pszcontext: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptDeleteContext(dwtable : BCRYPT_TABLE, pszcontext : windows_core::PCWSTR) -> super::super::Foundation:: NTSTATUS); - BCryptDeleteContext(dwtable, pszcontext.into_param().abi()) + BCryptDeleteContext(dwtable, pszcontext.param().abi()) } #[inline] pub unsafe fn BCryptDeriveKey(hsharedsecret: P0, pwszkdf: P1, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hsharedsecret.into_param().abi(), pwszkdf.into_param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags) + BCryptDeriveKey(hsharedsecret.param().abi(), pwszkdf.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags) } #[inline] pub unsafe fn BCryptDeriveKeyCapi(hhash: P0, htargetalg: P1, pbderivedkey: &mut [u8], dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hhash.into_param().abi(), htargetalg.into_param().abi(), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), dwflags) + BCryptDeriveKeyCapi(hhash.param().abi(), htargetalg.param().abi(), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptDeriveKeyPBKDF2(hprf: P0, pbpassword: Option<&[u8]>, pbsalt: Option<&[u8]>, citerations: u64, pbderivedkey: &mut [u8], dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprf.into_param().abi(), 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) + BCryptDeriveKeyPBKDF2(hprf.param().abi(), 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 { @@ -123,18 +123,18 @@ pub unsafe fn BCryptDestroySecret(hsecret: BCRYPT_SECRET_HANDLE) -> super::super #[inline] pub unsafe fn BCryptDuplicateHash(hhash: P0, phnewhash: *mut BCRYPT_HASH_HANDLE, pbhashobject: Option<&mut [u8]>, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hhash.into_param().abi(), 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) + BCryptDuplicateHash(hhash.param().abi(), 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: P0, phnewkey: *mut BCRYPT_KEY_HANDLE, pbkeyobject: Option<&mut [u8]>, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), 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) + BCryptDuplicateKey(hkey.param().abi(), 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 { @@ -160,19 +160,19 @@ pub unsafe fn BCryptEnumAlgorithms(dwalgoperations: BCRYPT_OPERATION, palgcount: #[inline] pub unsafe fn BCryptEnumContextFunctionProviders(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pszfunction: P1, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_FUNCTION_PROVIDERS>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pszfunction.into_param().abi(), pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) + BCryptEnumContextFunctionProviders(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BCryptEnumContextFunctions(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_FUNCTIONS>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) + BCryptEnumContextFunctions(dwtable, pszcontext.param().abi(), dwinterface, pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BCryptEnumContexts(dwtable: BCRYPT_TABLE, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXTS>) -> super::super::Foundation::NTSTATUS { @@ -182,10 +182,10 @@ pub unsafe fn BCryptEnumContexts(dwtable: BCRYPT_TABLE, pcbbuffer: *mut u32, ppb #[inline] pub unsafe fn BCryptEnumProviders(pszalgid: P0, pimplcount: *mut u32, ppimpllist: *mut *mut BCRYPT_PROVIDER_NAME, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), pimplcount, ppimpllist, dwflags) + BCryptEnumProviders(pszalgid.param().abi(), pimplcount, ppimpllist, dwflags) } #[inline] pub unsafe fn BCryptEnumRegisteredProviders(pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_PROVIDERS>) -> super::super::Foundation::NTSTATUS { @@ -195,12 +195,12 @@ pub unsafe fn BCryptEnumRegisteredProviders(pcbbuffer: *mut u32, ppbuffer: Optio #[inline] pub unsafe fn BCryptExportKey(hkey: P0, hexportkey: P1, pszblobtype: P2, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), hexportkey.into_param().abi(), pszblobtype.into_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()), pcbresult, dwflags) + BCryptExportKey(hkey.param().abi(), hexportkey.param().abi(), 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()), pcbresult, dwflags) } #[inline] pub unsafe fn BCryptFinalizeKeyPair(hkey: BCRYPT_KEY_HANDLE, dwflags: u32) -> super::super::Foundation::NTSTATUS { @@ -220,10 +220,10 @@ pub unsafe fn BCryptFreeBuffer(pvbuffer: *const core::ffi::c_void) { #[inline] pub unsafe fn BCryptGenRandom(halgorithm: P0, pbbuffer: &mut [u8], dwflags: BCRYPTGENRANDOM_FLAGS) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(halgorithm.into_param().abi(), core::mem::transmute(pbbuffer.as_ptr()), pbbuffer.len().try_into().unwrap(), dwflags) + BCryptGenRandom(halgorithm.param().abi(), 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 { @@ -243,11 +243,11 @@ pub unsafe fn BCryptGetFipsAlgorithmMode(pfenabled: *mut u8) -> super::super::Fo #[inline] pub unsafe fn BCryptGetProperty(hobject: P0, pszproperty: P1, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hobject.into_param().abi(), pszproperty.into_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()), pcbresult, dwflags) + BCryptGetProperty(hobject.param().abi(), 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()), pcbresult, dwflags) } #[inline] pub unsafe fn BCryptHash(halgorithm: BCRYPT_ALG_HANDLE, pbsecret: Option<&[u8]>, pbinput: &[u8], pboutput: &mut [u8]) -> super::super::Foundation::NTSTATUS { @@ -262,39 +262,39 @@ pub unsafe fn BCryptHashData(hhash: BCRYPT_HASH_HANDLE, pbinput: &[u8], dwflags: #[inline] pub unsafe fn BCryptImportKey(halgorithm: P0, himportkey: P1, pszblobtype: P2, phkey: *mut BCRYPT_KEY_HANDLE, pbkeyobject: Option<&mut [u8]>, pbinput: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(halgorithm.into_param().abi(), himportkey.into_param().abi(), pszblobtype.into_param().abi(), 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) + BCryptImportKey(halgorithm.param().abi(), himportkey.param().abi(), pszblobtype.param().abi(), 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: P0, himportkey: P1, pszblobtype: P2, phkey: *mut BCRYPT_KEY_HANDLE, pbinput: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(halgorithm.into_param().abi(), himportkey.into_param().abi(), pszblobtype.into_param().abi(), phkey, core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) + BCryptImportKeyPair(halgorithm.param().abi(), himportkey.param().abi(), pszblobtype.param().abi(), phkey, core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptKeyDerivation(hkey: P0, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: &mut [u8], pcbresult: *mut u32, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), pcbresult, dwflags) + BCryptKeyDerivation(hkey.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), pcbresult, dwflags) } #[inline] pub unsafe fn BCryptOpenAlgorithmProvider(phalgorithm: *mut BCRYPT_ALG_HANDLE, pszalgid: P0, pszimplementation: P1, dwflags: BCRYPT_OPEN_ALGORITHM_PROVIDER_FLAGS) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(phalgorithm, pszalgid.into_param().abi(), pszimplementation.into_param().abi(), dwflags) + BCryptOpenAlgorithmProvider(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 { @@ -304,37 +304,37 @@ pub unsafe fn BCryptProcessMultiOperations(hobject: BCRYPT_HANDLE, operationtype #[inline] pub unsafe fn BCryptQueryContextConfiguration(dwtable: BCRYPT_TABLE, pszcontext: P0, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_CONFIG>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(dwtable, pszcontext.into_param().abi(), pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) + BCryptQueryContextConfiguration(dwtable, pszcontext.param().abi(), pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BCryptQueryContextFunctionConfiguration(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pszfunction: P1, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_CONTEXT_FUNCTION_CONFIG>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pszfunction.into_param().abi(), pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) + BCryptQueryContextFunctionConfiguration(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BCryptQueryContextFunctionProperty(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pszfunction: P1, pszproperty: P2, pcbvalue: *mut u32, ppbvalue: Option<*mut *mut u8>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pszfunction.into_param().abi(), pszproperty.into_param().abi(), pcbvalue, core::mem::transmute(ppbvalue.unwrap_or(std::ptr::null_mut()))) + BCryptQueryContextFunctionProperty(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pszproperty.param().abi(), pcbvalue, core::mem::transmute(ppbvalue.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwmode, dwinterface, pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) + BCryptQueryProviderRegistration(pszprovider.param().abi(), dwmode, dwinterface, pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BCryptRegisterConfigChangeNotify(phevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::NTSTATUS { @@ -344,168 +344,168 @@ pub unsafe fn BCryptRegisterConfigChangeNotify(phevent: *mut super::super::Found #[inline] pub unsafe fn BCryptRemoveContextFunction(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pszfunction: P1) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pszfunction.into_param().abi()) + BCryptRemoveContextFunction(dwtable, pszcontext.param().abi(), dwinterface, pszfunction.param().abi()) } #[inline] pub unsafe fn BCryptResolveProviders(pszcontext: P0, dwinterface: u32, pszfunction: P1, pszprovider: P2, dwmode: BCRYPT_QUERY_PROVIDER_MODE, dwflags: BCRYPT_RESOLVE_PROVIDERS_FLAGS, pcbbuffer: *mut u32, ppbuffer: Option<*mut *mut CRYPT_PROVIDER_REFS>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwinterface, pszfunction.into_param().abi(), pszprovider.into_param().abi(), dwmode, dwflags, pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) + BCryptResolveProviders(pszcontext.param().abi(), dwinterface, pszfunction.param().abi(), pszprovider.param().abi(), dwmode, dwflags, pcbbuffer, core::mem::transmute(ppbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BCryptSecretAgreement(hprivkey: P0, hpubkey: P1, phagreedsecret: *mut BCRYPT_SECRET_HANDLE, dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprivkey.into_param().abi(), hpubkey.into_param().abi(), phagreedsecret, dwflags) + BCryptSecretAgreement(hprivkey.param().abi(), hpubkey.param().abi(), phagreedsecret, dwflags) } #[inline] pub unsafe fn BCryptSetContextFunctionProperty(dwtable: BCRYPT_TABLE, pszcontext: P0, dwinterface: BCRYPT_INTERFACE, pszfunction: P1, pszproperty: P2, pbvalue: Option<&[u8]>) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwtable, pszcontext.into_param().abi(), dwinterface, pszfunction.into_param().abi(), pszproperty.into_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: P0, pbinput: &[u8], dwflags: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(hobject, pszproperty.into_param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) + BCryptSetProperty(hobject, pszproperty.param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn BCryptSignHash(hkey: P0, ppaddinginfo: Option<*const core::ffi::c_void>, pbinput: &[u8], pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: BCRYPT_FLAGS) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags) + BCryptSignHash(hkey.param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags) } #[inline] pub unsafe fn BCryptUnregisterConfigChangeNotify(hevent: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("bcrypt.dll" "system" fn BCryptUnregisterConfigChangeNotify(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: NTSTATUS); - BCryptUnregisterConfigChangeNotify(hevent.into_param().abi()) + BCryptUnregisterConfigChangeNotify(hevent.param().abi()) } #[inline] pub unsafe fn BCryptVerifySignature(hkey: P0, ppaddinginfo: Option<*const core::ffi::c_void>, pbhash: &[u8], pbsignature: &[u8], dwflags: BCRYPT_FLAGS) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), dwflags) + BCryptVerifySignature(hkey.param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), 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: P0, pcrlcontext: *const CRL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), pcrlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddCRLContextToStore(hcertstore.param().abi(), pcrlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddCRLLinkToStore(hcertstore: P0, pcrlcontext: *const CRL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), pcrlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddCRLLinkToStore(hcertstore.param().abi(), pcrlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddCTLContextToStore(hcertstore: P0, pctlcontext: *const CTL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), pctlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddCTLContextToStore(hcertstore.param().abi(), pctlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddCTLLinkToStore(hcertstore: P0, pctlcontext: *const CTL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), pctlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddCTLLinkToStore(hcertstore.param().abi(), pctlcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddCertificateContextToStore(hcertstore: P0, pcertcontext: *const CERT_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), pcertcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddCertificateContextToStore(hcertstore.param().abi(), pcertcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddCertificateLinkToStore(hcertstore: P0, pcertcontext: *const CERT_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), pcertcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddCertificateLinkToStore(hcertstore.param().abi(), pcertcontext, dwadddisposition, core::mem::transmute(ppstorecontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddEncodedCRLToStore(hcertstore: P0, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcrlencoded: &[u8], dwadddisposition: u32, ppcrlcontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwcertencodingtype, core::mem::transmute(pbcrlencoded.as_ptr()), pbcrlencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppcrlcontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddEncodedCRLToStore(hcertstore.param().abi(), dwcertencodingtype, core::mem::transmute(pbcrlencoded.as_ptr()), pbcrlencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppcrlcontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddEncodedCTLToStore(hcertstore: P0, dwmsgandcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbctlencoded: &[u8], dwadddisposition: u32, ppctlcontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwmsgandcertencodingtype, core::mem::transmute(pbctlencoded.as_ptr()), pbctlencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppctlcontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddEncodedCTLToStore(hcertstore.param().abi(), dwmsgandcertencodingtype, core::mem::transmute(pbctlencoded.as_ptr()), pbctlencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppctlcontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddEncodedCertificateToStore(hcertstore: P0, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcertencoded: &[u8], dwadddisposition: u32, ppcertcontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwcertencodingtype, core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppcertcontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddEncodedCertificateToStore(hcertstore.param().abi(), dwcertencodingtype, core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap(), dwadddisposition, core::mem::transmute(ppcertcontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddEncodedCertificateToSystemStoreA(szcertstorename: P0, pbcertencoded: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToSystemStoreA(szcertstorename : windows_core::PCSTR, pbcertencoded : *const u8, cbcertencoded : u32) -> super::super::Foundation:: BOOL); - CertAddEncodedCertificateToSystemStoreA(szcertstorename.into_param().abi(), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()).ok() + CertAddEncodedCertificateToSystemStoreA(szcertstorename.param().abi(), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn CertAddEncodedCertificateToSystemStoreW(szcertstorename: P0, pbcertencoded: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToSystemStoreW(szcertstorename : windows_core::PCWSTR, pbcertencoded : *const u8, cbcertencoded : u32) -> super::super::Foundation:: BOOL); - CertAddEncodedCertificateToSystemStoreW(szcertstorename.into_param().abi(), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()).ok() + CertAddEncodedCertificateToSystemStoreW(szcertstorename.param().abi(), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn CertAddEnhancedKeyUsageIdentifier(pcertcontext: *const CERT_CONTEXT, pszusageidentifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertAddEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CertAddEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.into_param().abi()).ok() + CertAddEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.param().abi()).ok() } #[inline] pub unsafe fn CertAddRefServerOcspResponse(hserverocspresponse: Option<*const core::ffi::c_void>) { @@ -520,19 +520,19 @@ pub unsafe fn CertAddRefServerOcspResponseContext(pserverocspresponsecontext: Op #[inline] pub unsafe fn CertAddSerializedElementToStore(hcertstore: P0, pbelement: &[u8], dwadddisposition: u32, dwflags: u32, dwcontexttypeflags: u32, pdwcontexttype: Option<*mut u32>, ppvcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), core::mem::transmute(pbelement.as_ptr()), pbelement.len().try_into().unwrap(), dwadddisposition, dwflags, dwcontexttypeflags, core::mem::transmute(pdwcontexttype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppvcontext.unwrap_or(std::ptr::null_mut()))).ok() + CertAddSerializedElementToStore(hcertstore.param().abi(), core::mem::transmute(pbelement.as_ptr()), pbelement.len().try_into().unwrap(), dwadddisposition, dwflags, dwcontexttypeflags, core::mem::transmute(pdwcontexttype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppvcontext.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertAddStoreToCollection(hcollectionstore: P0, hsiblingstore: P1, dwupdateflags: u32, dwpriority: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertAddStoreToCollection(hcollectionstore : HCERTSTORE, hsiblingstore : HCERTSTORE, dwupdateflags : u32, dwpriority : u32) -> super::super::Foundation:: BOOL); - CertAddStoreToCollection(hcollectionstore.into_param().abi(), hsiblingstore.into_param().abi(), dwupdateflags, dwpriority) + CertAddStoreToCollection(hcollectionstore.param().abi(), hsiblingstore.param().abi(), dwupdateflags, dwpriority) } #[inline] pub unsafe fn CertAlgIdToOID(dwalgid: u32) -> windows_core::PCSTR { @@ -547,10 +547,10 @@ pub unsafe fn CertCloseServerOcspResponse(hserverocspresponse: Option<*const cor #[inline] pub unsafe fn CertCloseStore(hcertstore: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertCloseStore(hcertstore : HCERTSTORE, dwflags : u32) -> super::super::Foundation:: BOOL); - CertCloseStore(hcertstore.into_param().abi(), dwflags).ok() + CertCloseStore(hcertstore.param().abi(), dwflags).ok() } #[inline] pub unsafe fn CertCompareCertificate(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid1: *const CERT_INFO, pcertid2: *const CERT_INFO) -> super::super::Foundation::BOOL { @@ -575,10 +575,10 @@ pub unsafe fn CertComparePublicKeyInfo(dwcertencodingtype: CERT_QUERY_ENCODING_T #[inline] pub unsafe fn CertControlStore(hcertstore: P0, dwflags: CERT_CONTROL_STORE_FLAGS, dwctrltype: u32, pvctrlpara: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwflags, dwctrltype, core::mem::transmute(pvctrlpara.unwrap_or(std::ptr::null()))).ok() + CertControlStore(hcertstore.param().abi(), dwflags, dwctrltype, core::mem::transmute(pvctrlpara.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CertCreateCRLContext(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcrlencoded: &[u8]) -> *mut CRL_CONTEXT { @@ -613,10 +613,10 @@ pub unsafe fn CertCreateContext(dwcontexttype: u32, dwencodingtype: u32, pbencod #[inline] pub unsafe fn CertCreateSelfSignCertificate(hcryptprovorncryptkey: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprovorncryptkey.into_param().abi(), psubjectissuerblob, dwflags, core::mem::transmute(pkeyprovinfo.unwrap_or(std::ptr::null())), core::mem::transmute(psignaturealgorithm.unwrap_or(std::ptr::null())), core::mem::transmute(pstarttime.unwrap_or(std::ptr::null())), core::mem::transmute(pendtime.unwrap_or(std::ptr::null())), core::mem::transmute(pextensions.unwrap_or(std::ptr::null()))) + CertCreateSelfSignCertificate(hcryptprovorncryptkey.param().abi(), psubjectissuerblob, dwflags, core::mem::transmute(pkeyprovinfo.unwrap_or(std::ptr::null())), core::mem::transmute(psignaturealgorithm.unwrap_or(std::ptr::null())), core::mem::transmute(pstarttime.unwrap_or(std::ptr::null())), core::mem::transmute(pendtime.unwrap_or(std::ptr::null())), core::mem::transmute(pextensions.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CertDeleteCRLFromStore(pcrlcontext: *const CRL_CONTEXT) -> windows_core::Result<()> { @@ -656,10 +656,10 @@ pub unsafe fn CertDuplicateCertificateContext(pcertcontext: Option<*const CERT_C #[inline] pub unsafe fn CertDuplicateStore(hcertstore: P0) -> HCERTSTORE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertDuplicateStore(hcertstore : HCERTSTORE) -> HCERTSTORE); - CertDuplicateStore(hcertstore.into_param().abi()) + CertDuplicateStore(hcertstore.param().abi()) } #[inline] pub unsafe fn CertEnumCRLContextProperties(pcrlcontext: *const CRL_CONTEXT, dwpropid: u32) -> u32 { @@ -669,10 +669,10 @@ pub unsafe fn CertEnumCRLContextProperties(pcrlcontext: *const CRL_CONTEXT, dwpr #[inline] pub unsafe fn CertEnumCRLsInStore(hcertstore: P0, pprevcrlcontext: Option<*const CRL_CONTEXT>) -> *mut CRL_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertEnumCRLsInStore(hcertstore : HCERTSTORE, pprevcrlcontext : *const CRL_CONTEXT) -> *mut CRL_CONTEXT); - CertEnumCRLsInStore(hcertstore.into_param().abi(), core::mem::transmute(pprevcrlcontext.unwrap_or(std::ptr::null()))) + CertEnumCRLsInStore(hcertstore.param().abi(), core::mem::transmute(pprevcrlcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CertEnumCTLContextProperties(pctlcontext: *const CTL_CONTEXT, dwpropid: u32) -> u32 { @@ -682,10 +682,10 @@ pub unsafe fn CertEnumCTLContextProperties(pctlcontext: *const CTL_CONTEXT, dwpr #[inline] pub unsafe fn CertEnumCTLsInStore(hcertstore: P0, pprevctlcontext: Option<*const CTL_CONTEXT>) -> *mut CTL_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertEnumCTLsInStore(hcertstore : HCERTSTORE, pprevctlcontext : *const CTL_CONTEXT) -> *mut CTL_CONTEXT); - CertEnumCTLsInStore(hcertstore.into_param().abi(), core::mem::transmute(pprevctlcontext.unwrap_or(std::ptr::null()))) + CertEnumCTLsInStore(hcertstore.param().abi(), core::mem::transmute(pprevctlcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CertEnumCertificateContextProperties(pcertcontext: *const CERT_CONTEXT, dwpropid: u32) -> u32 { @@ -695,10 +695,10 @@ pub unsafe fn CertEnumCertificateContextProperties(pcertcontext: *const CERT_CON #[inline] pub unsafe fn CertEnumCertificatesInStore(hcertstore: P0, pprevcertcontext: Option<*const CERT_CONTEXT>) -> *mut CERT_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertEnumCertificatesInStore(hcertstore : HCERTSTORE, pprevcertcontext : *const CERT_CONTEXT) -> *mut CERT_CONTEXT); - CertEnumCertificatesInStore(hcertstore.into_param().abi(), core::mem::transmute(pprevcertcontext.unwrap_or(std::ptr::null()))) + CertEnumCertificatesInStore(hcertstore.param().abi(), core::mem::transmute(pprevcertcontext.unwrap_or(std::ptr::null()))) } #[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<()> { @@ -723,26 +723,26 @@ pub unsafe fn CertEnumSystemStoreLocation(dwflags: u32, pvarg: Option<*mut core: #[inline] pub unsafe fn CertFindAttribute(pszobjid: P0, rgattr: &[CRYPT_ATTRIBUTE]) -> *mut CRYPT_ATTRIBUTE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertFindAttribute(pszobjid : windows_core::PCSTR, cattr : u32, rgattr : *const CRYPT_ATTRIBUTE) -> *mut CRYPT_ATTRIBUTE); - CertFindAttribute(pszobjid.into_param().abi(), rgattr.len().try_into().unwrap(), core::mem::transmute(rgattr.as_ptr())) + CertFindAttribute(pszobjid.param().abi(), rgattr.len().try_into().unwrap(), core::mem::transmute(rgattr.as_ptr())) } #[inline] pub unsafe fn CertFindCRLInStore(hcertstore: P0, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwfindflags: u32, dwfindtype: u32, pvfindpara: Option<*const core::ffi::c_void>, pprevcrlcontext: Option<*const CRL_CONTEXT>) -> *mut CRL_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevcrlcontext.unwrap_or(std::ptr::null()))) + CertFindCRLInStore(hcertstore.param().abi(), dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevcrlcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CertFindCTLInStore(hcertstore: P0, dwmsgandcertencodingtype: u32, dwfindflags: u32, dwfindtype: CERT_FIND_TYPE, pvfindpara: Option<*const core::ffi::c_void>, pprevctlcontext: Option<*const CTL_CONTEXT>) -> *mut CTL_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwmsgandcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevctlcontext.unwrap_or(std::ptr::null()))) + CertFindCTLInStore(hcertstore.param().abi(), dwmsgandcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevctlcontext.unwrap_or(std::ptr::null()))) } #[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 { @@ -752,34 +752,34 @@ pub unsafe fn CertFindCertificateInCRL(pcert: *const CERT_CONTEXT, pcrlcontext: #[inline] pub unsafe fn CertFindCertificateInStore(hcertstore: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevcertcontext.unwrap_or(std::ptr::null()))) + CertFindCertificateInStore(hcertstore.param().abi(), dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevcertcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CertFindChainInStore(hcertstore: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevchaincontext.unwrap_or(std::ptr::null()))) + CertFindChainInStore(hcertstore.param().abi(), dwcertencodingtype, dwfindflags, dwfindtype, core::mem::transmute(pvfindpara.unwrap_or(std::ptr::null())), core::mem::transmute(pprevchaincontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CertFindExtension(pszobjid: P0, rgextensions: &[CERT_EXTENSION]) -> *mut CERT_EXTENSION where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertFindExtension(pszobjid : windows_core::PCSTR, cextensions : u32, rgextensions : *const CERT_EXTENSION) -> *mut CERT_EXTENSION); - CertFindExtension(pszobjid.into_param().abi(), rgextensions.len().try_into().unwrap(), core::mem::transmute(rgextensions.as_ptr())) + CertFindExtension(pszobjid.param().abi(), rgextensions.len().try_into().unwrap(), core::mem::transmute(rgextensions.as_ptr())) } #[inline] pub unsafe fn CertFindRDNAttr(pszobjid: P0, pname: *const CERT_NAME_INFO) -> *mut CERT_RDN_ATTR where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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 { @@ -809,10 +809,10 @@ pub unsafe fn CertFreeCertificateChain(pchaincontext: *const CERT_CHAIN_CONTEXT) #[inline] pub unsafe fn CertFreeCertificateChainEngine(hchainengine: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertFreeCertificateChainEngine(hchainengine : HCERTCHAINENGINE)); - CertFreeCertificateChainEngine(hchainengine.into_param().abi()) + CertFreeCertificateChainEngine(hchainengine.param().abi()) } #[inline] pub unsafe fn CertFreeCertificateChainList(prgpselection: *const *const CERT_CHAIN_CONTEXT) { @@ -837,10 +837,10 @@ pub unsafe fn CertGetCRLContextProperty(pcrlcontext: *const CRL_CONTEXT, dwpropi #[inline] pub unsafe fn CertGetCRLFromStore(hcertstore: P0, pissuercontext: Option<*const CERT_CONTEXT>, pprevcrlcontext: Option<*const CRL_CONTEXT>, pdwflags: *mut u32) -> *mut CRL_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), core::mem::transmute(pissuercontext.unwrap_or(std::ptr::null())), core::mem::transmute(pprevcrlcontext.unwrap_or(std::ptr::null())), pdwflags) + CertGetCRLFromStore(hcertstore.param().abi(), core::mem::transmute(pissuercontext.unwrap_or(std::ptr::null())), core::mem::transmute(pprevcrlcontext.unwrap_or(std::ptr::null())), 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<()> { @@ -850,11 +850,11 @@ pub unsafe fn CertGetCTLContextProperty(pctlcontext: *const CTL_CONTEXT, dwpropi #[inline] pub unsafe fn CertGetCertificateChain(hchainengine: P0, pcertcontext: *const CERT_CONTEXT, ptime: Option<*const super::super::Foundation::FILETIME>, hadditionalstore: P1, pchainpara: *const CERT_CHAIN_PARA, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, ppchaincontext: *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hchainengine.into_param().abi(), pcertcontext, core::mem::transmute(ptime.unwrap_or(std::ptr::null())), hadditionalstore.into_param().abi(), pchainpara, dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), ppchaincontext).ok() + CertGetCertificateChain(hchainengine.param().abi(), pcertcontext, core::mem::transmute(ptime.unwrap_or(std::ptr::null())), hadditionalstore.param().abi(), pchainpara, dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), 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<()> { @@ -874,10 +874,10 @@ pub unsafe fn CertGetIntendedKeyUsage(dwcertencodingtype: CERT_QUERY_ENCODING_TY #[inline] pub unsafe fn CertGetIssuerCertificateFromStore(hcertstore: P0, psubjectcontext: *const CERT_CONTEXT, pprevissuercontext: Option<*const CERT_CONTEXT>, pdwflags: *mut u32) -> *mut CERT_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), psubjectcontext, core::mem::transmute(pprevissuercontext.unwrap_or(std::ptr::null())), pdwflags) + CertGetIssuerCertificateFromStore(hcertstore.param().abi(), psubjectcontext, core::mem::transmute(pprevissuercontext.unwrap_or(std::ptr::null())), 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 { @@ -902,18 +902,18 @@ pub unsafe fn CertGetServerOcspResponseContext(hserverocspresponse: *const core: #[inline] pub unsafe fn CertGetStoreProperty(hcertstore: P0, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwpropid, core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), pcbdata).ok() + CertGetStoreProperty(hcertstore.param().abi(), dwpropid, core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), pcbdata).ok() } #[inline] pub unsafe fn CertGetSubjectCertificateFromStore(hcertstore: P0, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid: *const CERT_INFO) -> *mut CERT_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertGetSubjectCertificateFromStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid : *const CERT_INFO) -> *mut CERT_CONTEXT); - CertGetSubjectCertificateFromStore(hcertstore.into_param().abi(), dwcertencodingtype, pcertid) + CertGetSubjectCertificateFromStore(hcertstore.param().abi(), 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<()> { @@ -928,10 +928,10 @@ pub unsafe fn CertIsRDNAttrsInCertificateName(dwcertencodingtype: CERT_QUERY_ENC #[inline] pub unsafe fn CertIsStrongHashToSign(pstrongsignpara: *const CERT_STRONG_SIGN_PARA, pwszcnghashalgid: P0, psigningcert: Option<*const CERT_CONTEXT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pstrongsignpara, pwszcnghashalgid.into_param().abi(), core::mem::transmute(psigningcert.unwrap_or(std::ptr::null()))).ok() + CertIsStrongHashToSign(pstrongsignpara, pwszcnghashalgid.param().abi(), core::mem::transmute(psigningcert.unwrap_or(std::ptr::null()))).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 { @@ -941,11 +941,11 @@ pub unsafe fn CertIsValidCRLForCertificate(pcert: *const CERT_CONTEXT, pcrl: *co #[inline] pub unsafe fn CertIsWeakHash(dwhashusetype: u32, pwszcnghashalgid: P0, dwchainflags: u32, psignerchaincontext: Option<*const CERT_CHAIN_CONTEXT>, ptimestamp: Option<*const super::super::Foundation::FILETIME>, pwszfilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwhashusetype, pwszcnghashalgid.into_param().abi(), dwchainflags, core::mem::transmute(psignerchaincontext.unwrap_or(std::ptr::null())), core::mem::transmute(ptimestamp.unwrap_or(std::ptr::null())), pwszfilename.into_param().abi()) + CertIsWeakHash(dwhashusetype, pwszcnghashalgid.param().abi(), dwchainflags, core::mem::transmute(psignerchaincontext.unwrap_or(std::ptr::null())), core::mem::transmute(ptimestamp.unwrap_or(std::ptr::null())), 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 { @@ -960,10 +960,10 @@ pub unsafe fn CertNameToStrW(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pname #[inline] pub unsafe fn CertOIDToAlgId(pszobjid: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertOIDToAlgId(pszobjid : windows_core::PCSTR) -> u32); - CertOIDToAlgId(pszobjid.into_param().abi()) + CertOIDToAlgId(pszobjid.param().abi()) } #[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 { @@ -973,31 +973,31 @@ pub unsafe fn CertOpenServerOcspResponse(pchaincontext: *const CERT_CHAIN_CONTEX #[inline] pub unsafe fn CertOpenStore(lpszstoreprovider: P0, dwencodingtype: CERT_QUERY_ENCODING_TYPE, hcryptprov: P1, dwflags: CERT_OPEN_STORE_FLAGS, pvpara: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwencodingtype, hcryptprov.into_param().abi(), dwflags, core::mem::transmute(pvpara.unwrap_or(std::ptr::null()))); + let result__ = CertOpenStore(lpszstoreprovider.param().abi(), dwencodingtype, hcryptprov.param().abi(), dwflags, core::mem::transmute(pvpara.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CertOpenSystemStoreA(hprov: P0, szsubsystemprotocol: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertOpenSystemStoreA(hprov : HCRYPTPROV_LEGACY, szsubsystemprotocol : windows_core::PCSTR) -> HCERTSTORE); - let result__ = CertOpenSystemStoreA(hprov.into_param().abi(), szsubsystemprotocol.into_param().abi()); + let result__ = CertOpenSystemStoreA(hprov.param().abi(), szsubsystemprotocol.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CertOpenSystemStoreW(hprov: P0, szsubsystemprotocol: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertOpenSystemStoreW(hprov : HCRYPTPROV_LEGACY, szsubsystemprotocol : windows_core::PCWSTR) -> HCERTSTORE); - let result__ = CertOpenSystemStoreW(hprov.into_param().abi(), szsubsystemprotocol.into_param().abi()); + let result__ = CertOpenSystemStoreW(hprov.param().abi(), szsubsystemprotocol.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1013,10 +1013,10 @@ pub unsafe fn CertRDNValueToStrW(dwvaluetype: u32, pvalue: *const CRYPT_INTEGER_ #[inline] pub unsafe fn CertRegisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P0, pstoreinfo: *const CERT_PHYSICAL_STORE_INFO, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(pvsystemstore, dwflags, pwszstorename.into_param().abi(), pstoreinfo, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) + CertRegisterPhysicalStore(pvsystemstore, dwflags, pwszstorename.param().abi(), pstoreinfo, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))) } #[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 { @@ -1026,51 +1026,51 @@ pub unsafe fn CertRegisterSystemStore(pvsystemstore: *const core::ffi::c_void, d #[inline] pub unsafe fn CertRemoveEnhancedKeyUsageIdentifier(pcertcontext: *const CERT_CONTEXT, pszusageidentifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertRemoveEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - CertRemoveEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.into_param().abi()).ok() + CertRemoveEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.param().abi()).ok() } #[inline] pub unsafe fn CertRemoveStoreFromCollection(hcollectionstore: P0, hsiblingstore: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertRemoveStoreFromCollection(hcollectionstore : HCERTSTORE, hsiblingstore : HCERTSTORE)); - CertRemoveStoreFromCollection(hcollectionstore.into_param().abi(), hsiblingstore.into_param().abi()) + CertRemoveStoreFromCollection(hcollectionstore.param().abi(), hsiblingstore.param().abi()) } #[inline] pub unsafe fn CertResyncCertificateChainEngine(hchainengine: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CertResyncCertificateChainEngine(hchainengine : HCERTCHAINENGINE) -> super::super::Foundation:: BOOL); - CertResyncCertificateChainEngine(hchainengine.into_param().abi()).ok() + CertResyncCertificateChainEngine(hchainengine.param().abi()).ok() } #[inline] pub unsafe fn CertRetrieveLogoOrBiometricInfo(pcertcontext: *const CERT_CONTEXT, lpszlogoorbiometrictype: P0, dwretrievalflags: u32, dwtimeout: u32, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, ppbdata: *mut *mut u8, pcbdata: *mut u32, ppwszmimetype: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pcertcontext, lpszlogoorbiometrictype.into_param().abi(), dwretrievalflags, dwtimeout, dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), ppbdata, pcbdata, core::mem::transmute(ppwszmimetype.unwrap_or(std::ptr::null_mut()))).ok() + CertRetrieveLogoOrBiometricInfo(pcertcontext, lpszlogoorbiometrictype.param().abi(), dwretrievalflags, dwtimeout, dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), ppbdata, pcbdata, core::mem::transmute(ppwszmimetype.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertSaveStore(hcertstore: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwencodingtype, dwsaveas, dwsaveto, pvsavetopara, dwflags).ok() + CertSaveStore(hcertstore.param().abi(), dwencodingtype, dwsaveas, dwsaveto, 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: P0, pcselection: *mut u32, pprgpselection: *mut *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), dwflags, core::mem::transmute(pchainparameters.unwrap_or(std::ptr::null())), 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.into_param().abi(), pcselection, pprgpselection).ok() + CertSelectCertificateChains(core::mem::transmute(pselectioncontext.unwrap_or(std::ptr::null())), dwflags, core::mem::transmute(pchainparameters.unwrap_or(std::ptr::null())), 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.param().abi(), pcselection, pprgpselection).ok() } #[inline] pub unsafe fn CertSerializeCRLStoreElement(pcrlcontext: *const CRL_CONTEXT, dwflags: u32, pbelement: Option<*mut u8>, pcbelement: *mut u32) -> windows_core::Result<()> { @@ -1115,34 +1115,34 @@ pub unsafe fn CertSetEnhancedKeyUsage(pcertcontext: *const CERT_CONTEXT, pusage: #[inline] pub unsafe fn CertSetStoreProperty(hcertstore: P0, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcertstore.into_param().abi(), dwpropid, dwflags, core::mem::transmute(pvdata.unwrap_or(std::ptr::null()))) + CertSetStoreProperty(hcertstore.param().abi(), dwpropid, dwflags, core::mem::transmute(pvdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CertStrToNameA(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P0, 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<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, pszx500.into_param().abi(), dwstrtype, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), pcbencoded, core::mem::transmute(ppszerror.unwrap_or(std::ptr::null_mut()))).ok() + CertStrToNameA(dwcertencodingtype, pszx500.param().abi(), dwstrtype, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), pcbencoded, core::mem::transmute(ppszerror.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertStrToNameW(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P0, 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<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, pszx500.into_param().abi(), dwstrtype, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), pcbencoded, core::mem::transmute(ppszerror.unwrap_or(std::ptr::null_mut()))).ok() + CertStrToNameW(dwcertencodingtype, pszx500.param().abi(), dwstrtype, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), pcbencoded, core::mem::transmute(ppszerror.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CertUnregisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(pvsystemstore, dwflags, pwszstorename.into_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 { @@ -1167,10 +1167,10 @@ pub unsafe fn CertVerifyCTLUsage(dwencodingtype: u32, dwsubjecttype: u32, pvsubj #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pchaincontext, ppolicypara, ppolicystatus) + CertVerifyCertificateChainPolicy(pszpolicyoid.param().abi(), pchaincontext, ppolicypara, 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<()> { @@ -1205,20 +1205,20 @@ pub unsafe fn CryptAcquireCertificatePrivateKey(pcert: *const CERT_CONTEXT, dwfl #[inline] pub unsafe fn CryptAcquireContextA(phprov: *mut usize, szcontainer: P0, szprovider: P1, dwprovtype: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(phprov, szcontainer.into_param().abi(), szprovider.into_param().abi(), dwprovtype, dwflags).ok() + CryptAcquireContextA(phprov, szcontainer.param().abi(), szprovider.param().abi(), dwprovtype, dwflags).ok() } #[inline] pub unsafe fn CryptAcquireContextW(phprov: *mut usize, szcontainer: P0, szprovider: P1, dwprovtype: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(phprov, szcontainer.into_param().abi(), szprovider.into_param().abi(), dwprovtype, dwflags).ok() + CryptAcquireContextW(phprov, szcontainer.param().abi(), szprovider.param().abi(), dwprovtype, dwflags).ok() } #[inline] pub unsafe fn CryptBinaryToStringA(pbbinary: &[u8], dwflags: CRYPT_STRING, pszstring: windows_core::PSTR, pcchstring: *mut u32) -> super::super::Foundation::BOOL { @@ -1233,10 +1233,10 @@ pub unsafe fn CryptBinaryToStringW(pbbinary: &[u8], dwflags: CRYPT_STRING, pszst #[inline] pub unsafe fn CryptCloseAsyncHandle(hasync: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptCloseAsyncHandle(hasync : HCRYPTASYNC) -> super::super::Foundation:: BOOL); - CryptCloseAsyncHandle(hasync.into_param().abi()) + CryptCloseAsyncHandle(hasync.param().abi()) } #[inline] pub unsafe fn CryptContextAddRef(hprov: usize, pdwreserved: Option<*const u32>, dwflags: u32) -> windows_core::Result<()> { @@ -1256,10 +1256,10 @@ pub unsafe fn CryptCreateHash(hprov: usize, algid: ALG_ID, hkey: usize, dwflags: #[inline] pub unsafe fn CryptCreateKeyIdentifierFromCSP(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpubkeyoid: P0, ppubkeystruc: *const PUBLICKEYSTRUC, cbpubkeystruc: u32, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pbhash: Option<*mut u8>, pcbhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, pszpubkeyoid.into_param().abi(), ppubkeystruc, cbpubkeystruc, dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbhash.unwrap_or(std::ptr::null_mut())), pcbhash).ok() + CryptCreateKeyIdentifierFromCSP(dwcertencodingtype, pszpubkeyoid.param().abi(), ppubkeystruc, cbpubkeystruc, dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pbhash.unwrap_or(std::ptr::null_mut())), 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<()> { @@ -1284,26 +1284,26 @@ pub unsafe fn CryptDecodeMessage(dwmsgtypeflags: u32, pdecryptpara: Option<*cons #[inline] pub unsafe fn CryptDecodeObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P0, pbencoded: &[u8], dwflags: u32, pvstructinfo: Option<*mut core::ffi::c_void>, pcbstructinfo: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, lpszstructtype.into_param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), dwflags, core::mem::transmute(pvstructinfo.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut())), pcbstructinfo).ok() } #[inline] pub unsafe fn CryptDecodeObjectEx(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P0, pbencoded: &[u8], dwflags: u32, pdecodepara: Option<*const CRYPT_DECODE_PARA>, pvstructinfo: Option<*mut core::ffi::c_void>, pcbstructinfo: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, lpszstructtype.into_param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), dwflags, core::mem::transmute(pdecodepara.unwrap_or(std::ptr::null())), core::mem::transmute(pvstructinfo.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null())), core::mem::transmute(pvstructinfo.unwrap_or(std::ptr::null_mut())), pcbstructinfo).ok() } #[inline] pub unsafe fn CryptDecrypt(hkey: usize, hhash: usize, r#final: P0, dwflags: u32, pbdata: *mut u8, pdwdatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey, hhash, r#final.into_param().abi(), dwflags, pbdata, pdwdatalen).ok() + CryptDecrypt(hkey, hhash, r#final.param().abi(), dwflags, pbdata, 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<()> { @@ -1343,26 +1343,26 @@ pub unsafe fn CryptDuplicateKey(hkey: usize, pdwreserved: Option<*const u32>, dw #[inline] pub unsafe fn CryptEncodeObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P0, pvstructinfo: *const core::ffi::c_void, pbencoded: Option<*mut u8>, pcbencoded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, lpszstructtype.into_param().abi(), pvstructinfo, core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), pcbencoded).ok() + CryptEncodeObject(dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), pcbencoded).ok() } #[inline] pub unsafe fn CryptEncodeObjectEx(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P0, 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<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, lpszstructtype.into_param().abi(), pvstructinfo, dwflags, core::mem::transmute(pencodepara.unwrap_or(std::ptr::null())), core::mem::transmute(pvencoded.unwrap_or(std::ptr::null_mut())), pcbencoded).ok() + CryptEncodeObjectEx(dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, dwflags, core::mem::transmute(pencodepara.unwrap_or(std::ptr::null())), core::mem::transmute(pvencoded.unwrap_or(std::ptr::null_mut())), pcbencoded).ok() } #[inline] pub unsafe fn CryptEncrypt(hkey: usize, hhash: usize, r#final: P0, dwflags: u32, pbdata: Option<&mut [u8]>, pdwdatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey, hhash, r#final.into_param().abi(), dwflags, core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdwdatalen, pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + CryptEncrypt(hkey, hhash, r#final.param().abi(), dwflags, core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), 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<()> { @@ -1372,19 +1372,19 @@ pub unsafe fn CryptEncryptMessage(pencryptpara: *const CRYPT_ENCRYPT_MESSAGE_PAR #[inline] pub unsafe fn CryptEnumKeyIdentifierProperties(pkeyidentifier: Option<*const CRYPT_INTEGER_BLOB>, dwpropid: u32, dwflags: u32, pwszcomputername: P0, pvreserved: Option<*const core::ffi::c_void>, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CRYPT_ENUM_KEYID_PROP) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), dwpropid, dwflags, pwszcomputername.into_param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pvarg.unwrap_or(std::ptr::null_mut())), pfnenum).ok() + CryptEnumKeyIdentifierProperties(core::mem::transmute(pkeyidentifier.unwrap_or(std::ptr::null())), dwpropid, dwflags, pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pvarg.unwrap_or(std::ptr::null_mut())), pfnenum).ok() } #[inline] pub unsafe fn CryptEnumOIDFunction(dwencodingtype: u32, pszfuncname: P0, pszoid: P1, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenumoidfunc: PFN_CRYPT_ENUM_OID_FUNC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwencodingtype, pszfuncname.into_param().abi(), pszoid.into_param().abi(), dwflags, core::mem::transmute(pvarg.unwrap_or(std::ptr::null_mut())), pfnenumoidfunc).ok() + CryptEnumOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), dwflags, core::mem::transmute(pvarg.unwrap_or(std::ptr::null_mut())), 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 { @@ -1419,36 +1419,36 @@ pub unsafe fn CryptExportKey(hkey: usize, hexpkey: usize, dwblobtype: u32, dwfla #[inline] pub unsafe fn CryptExportPKCS8(hcryptprov: usize, dwkeyspec: u32, pszprivatekeyobjid: P0, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pbprivatekeyblob: Option<*mut u8>, pcbprivatekeyblob: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hcryptprov, dwkeyspec, pszprivatekeyobjid.into_param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbprivatekeyblob.unwrap_or(std::ptr::null_mut())), pcbprivatekeyblob).ok() + CryptExportPKCS8(hcryptprov, dwkeyspec, pszprivatekeyobjid.param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbprivatekeyblob.unwrap_or(std::ptr::null_mut())), pcbprivatekeyblob).ok() } #[inline] pub unsafe fn CryptExportPublicKeyInfo(hcryptprovorncryptkey: P0, dwkeyspec: u32, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprovorncryptkey.into_param().abi(), dwkeyspec, dwcertencodingtype, core::mem::transmute(pinfo.unwrap_or(std::ptr::null_mut())), pcbinfo).ok() + CryptExportPublicKeyInfo(hcryptprovorncryptkey.param().abi(), dwkeyspec, dwcertencodingtype, core::mem::transmute(pinfo.unwrap_or(std::ptr::null_mut())), pcbinfo).ok() } #[inline] pub unsafe fn CryptExportPublicKeyInfoEx(hcryptprovorncryptkey: P0, dwkeyspec: u32, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid: P1, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcryptprovorncryptkey.into_param().abi(), dwkeyspec, dwcertencodingtype, pszpublickeyobjid.into_param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pinfo.unwrap_or(std::ptr::null_mut())), pcbinfo).ok() + CryptExportPublicKeyInfoEx(hcryptprovorncryptkey.param().abi(), dwkeyspec, dwcertencodingtype, pszpublickeyobjid.param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pinfo.unwrap_or(std::ptr::null_mut())), pcbinfo).ok() } #[inline] pub unsafe fn CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey: P0, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid: P1, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hbcryptkey.into_param().abi(), dwcertencodingtype, pszpublickeyobjid.into_param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pinfo.unwrap_or(std::ptr::null_mut())), pcbinfo) + CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey.param().abi(), dwcertencodingtype, pszpublickeyobjid.param().abi(), dwflags, core::mem::transmute(pvauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pinfo.unwrap_or(std::ptr::null_mut())), pcbinfo) } #[inline] pub unsafe fn CryptFindCertificateKeyProvInfo(pcert: *const CERT_CONTEXT, dwflags: CRYPT_FIND_FLAGS, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -1458,10 +1458,10 @@ pub unsafe fn CryptFindCertificateKeyProvInfo(pcert: *const CERT_CONTEXT, dwflag #[inline] pub unsafe fn CryptFindLocalizedName(pwszcryptname: P0) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptFindLocalizedName(pwszcryptname : windows_core::PCWSTR) -> windows_core::PCWSTR); - CryptFindLocalizedName(pwszcryptname.into_param().abi()) + CryptFindLocalizedName(pwszcryptname.param().abi()) } #[inline] pub unsafe fn CryptFindOIDInfo(dwkeytype: u32, pvkey: *const core::ffi::c_void, dwgroupid: u32) -> *mut CRYPT_OID_INFO { @@ -1471,10 +1471,10 @@ pub unsafe fn CryptFindOIDInfo(dwkeytype: u32, pvkey: *const core::ffi::c_void, #[inline] pub unsafe fn CryptFormatObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwformattype: u32, dwformatstrtype: u32, pformatstruct: Option<*const core::ffi::c_void>, lpszstructtype: P0, pbencoded: &[u8], pbformat: Option<*mut core::ffi::c_void>, pcbformat: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwcertencodingtype, dwformattype, dwformatstrtype, core::mem::transmute(pformatstruct.unwrap_or(std::ptr::null())), lpszstructtype.into_param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbformat.unwrap_or(std::ptr::null_mut())), pcbformat).ok() + CryptFormatObject(dwcertencodingtype, dwformattype, dwformatstrtype, core::mem::transmute(pformatstruct.unwrap_or(std::ptr::null())), lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbformat.unwrap_or(std::ptr::null_mut())), pcbformat).ok() } #[inline] pub unsafe fn CryptFreeOIDFunctionAddress(hfuncaddr: *const core::ffi::c_void, dwflags: u32) -> super::super::Foundation::BOOL { @@ -1494,11 +1494,11 @@ pub unsafe fn CryptGenRandom(hprov: usize, pbbuffer: &mut [u8]) -> windows_core: #[inline] pub unsafe fn CryptGetAsyncParam(hasync: P0, pszparamoid: P1, ppvparam: Option<*mut *mut core::ffi::c_void>, ppfnfree: Option<*mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hasync.into_param().abi(), pszparamoid.into_param().abi(), core::mem::transmute(ppvparam.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppfnfree.unwrap_or(std::ptr::null_mut()))) + CryptGetAsyncParam(hasync.param().abi(), pszparamoid.param().abi(), core::mem::transmute(ppvparam.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppfnfree.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn CryptGetDefaultOIDDllList(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pwszdlllist: windows_core::PWSTR, pcchdlllist: *mut u32) -> windows_core::Result<()> { @@ -1508,10 +1508,10 @@ pub unsafe fn CryptGetDefaultOIDDllList(hfuncset: *const core::ffi::c_void, dwen #[inline] pub unsafe fn CryptGetDefaultOIDFunctionAddress(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pwszdll: P0, dwflags: u32, ppvfuncaddr: *mut *mut core::ffi::c_void, phfuncaddr: *mut *mut core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(hfuncset, dwencodingtype, pwszdll.into_param().abi(), dwflags, ppvfuncaddr, phfuncaddr) + CryptGetDefaultOIDFunctionAddress(hfuncset, dwencodingtype, pwszdll.param().abi(), dwflags, ppvfuncaddr, phfuncaddr) } #[inline] pub unsafe fn CryptGetDefaultProviderA(dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32, pszprovname: windows_core::PSTR, pcbprovname: *mut u32) -> windows_core::Result<()> { @@ -1531,10 +1531,10 @@ pub unsafe fn CryptGetHashParam(hhash: usize, dwparam: u32, pbdata: Option<*mut #[inline] pub unsafe fn CryptGetKeyIdentifierProperty(pkeyidentifier: *const CRYPT_INTEGER_BLOB, dwpropid: u32, dwflags: u32, pwszcomputername: P0, pvreserved: Option<*const core::ffi::c_void>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pkeyidentifier, dwpropid, dwflags, pwszcomputername.into_param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), pcbdata).ok() + CryptGetKeyIdentifierProperty(pkeyidentifier, dwpropid, dwflags, pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), 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<()> { @@ -1544,10 +1544,10 @@ pub unsafe fn CryptGetKeyParam(hkey: usize, dwparam: CRYPT_KEY_PARAM_ID, pbdata: #[inline] pub unsafe fn CryptGetMessageCertificates(dwmsgandcertencodingtype: u32, hcryptprov: P0, dwflags: u32, pbsignedblob: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptGetMessageCertificates(dwmsgandcertencodingtype : u32, hcryptprov : HCRYPTPROV_LEGACY, dwflags : u32, pbsignedblob : *const u8, cbsignedblob : u32) -> HCERTSTORE); - let result__ = CryptGetMessageCertificates(dwmsgandcertencodingtype, hcryptprov.into_param().abi(), dwflags, core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap()); + let result__ = CryptGetMessageCertificates(dwmsgandcertencodingtype, hcryptprov.param().abi(), dwflags, core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1558,28 +1558,28 @@ pub unsafe fn CryptGetMessageSignerCount(dwmsgencodingtype: u32, pbsignedblob: & #[inline] pub unsafe fn CryptGetOIDFunctionAddress(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pszoid: P0, dwflags: u32, ppvfuncaddr: *mut *mut core::ffi::c_void, phfuncaddr: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hfuncset, dwencodingtype, pszoid.into_param().abi(), dwflags, ppvfuncaddr, phfuncaddr).ok() + CryptGetOIDFunctionAddress(hfuncset, dwencodingtype, pszoid.param().abi(), dwflags, ppvfuncaddr, phfuncaddr).ok() } #[inline] pub unsafe fn CryptGetOIDFunctionValue(dwencodingtype: u32, pszfuncname: P0, pszoid: P1, pwszvaluename: P2, pdwvaluetype: Option<*mut u32>, pbvaluedata: Option<*mut u8>, pcbvaluedata: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwencodingtype, pszfuncname.into_param().abi(), pszoid.into_param().abi(), pwszvaluename.into_param().abi(), core::mem::transmute(pdwvaluetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbvaluedata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbvaluedata.unwrap_or(std::ptr::null_mut()))).ok() + CryptGetOIDFunctionValue(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), pwszvaluename.param().abi(), core::mem::transmute(pdwvaluetype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbvaluedata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbvaluedata.unwrap_or(std::ptr::null_mut()))).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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pvpara, dwflags, core::mem::transmute(purlarray.unwrap_or(std::ptr::null_mut())), pcburlarray, core::mem::transmute(purlinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcburlinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + CryptGetObjectUrl(pszurloid.param().abi(), pvpara, dwflags, core::mem::transmute(purlarray.unwrap_or(std::ptr::null_mut())), pcburlarray, core::mem::transmute(purlinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcburlinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CryptGetProvParam(hprov: usize, dwparam: u32, pbdata: Option<*mut u8>, pdwdatalen: *mut u32, dwflags: u32) -> windows_core::Result<()> { @@ -1594,18 +1594,18 @@ pub unsafe fn CryptGetUserKey(hprov: usize, dwkeyspec: u32, phuserkey: *mut usiz #[inline] pub unsafe fn CryptHashCertificate(hcryptprov: P0, algid: ALG_ID, dwflags: u32, pbencoded: &[u8], pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprov.into_param().abi(), algid, dwflags, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), pcbcomputedhash).ok() + CryptHashCertificate(hcryptprov.param().abi(), algid, dwflags, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), pcbcomputedhash).ok() + CryptHashCertificate2(pwszcnghashalgid.param().abi(), dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut())), pcbcomputedhash).ok() } #[inline] pub unsafe fn CryptHashData(hhash: usize, pbdata: &[u8], dwflags: u32) -> windows_core::Result<()> { @@ -1615,18 +1615,18 @@ pub unsafe fn CryptHashData(hhash: usize, pbdata: &[u8], dwflags: u32) -> window #[inline] pub unsafe fn CryptHashMessage(phashpara: *const CRYPT_HASH_MESSAGE_PARA, fdetachedhash: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(phashpara, fdetachedhash.into_param().abi(), ctobehashed, rgpbtobehashed, rgcbtobehashed, core::mem::transmute(pbhashedblob.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbhashedblob.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbcomputedhash.unwrap_or(std::ptr::null_mut()))).ok() + CryptHashMessage(phashpara, fdetachedhash.param().abi(), ctobehashed, rgpbtobehashed, rgcbtobehashed, core::mem::transmute(pbhashedblob.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbhashedblob.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbcomputedhash.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CryptHashPublicKeyInfo(hcryptprov: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprov.into_param().abi(), algid, dwflags, dwcertencodingtype, pinfo, core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), pcbcomputedhash).ok() + CryptHashPublicKeyInfo(hcryptprov.param().abi(), algid, dwflags, dwcertencodingtype, pinfo, core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), pcbcomputedhash).ok() } #[inline] pub unsafe fn CryptHashSessionKey(hhash: usize, hkey: usize, dwflags: u32) -> windows_core::Result<()> { @@ -1636,10 +1636,10 @@ pub unsafe fn CryptHashSessionKey(hhash: usize, hkey: usize, dwflags: u32) -> wi #[inline] pub unsafe fn CryptHashToBeSigned(hcryptprov: P0, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencoded: &[u8], pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprov.into_param().abi(), dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), pcbcomputedhash).ok() + CryptHashToBeSigned(hcryptprov.param().abi(), dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), core::mem::transmute(pbcomputedhash.unwrap_or(std::ptr::null_mut())), pcbcomputedhash).ok() } #[inline] pub unsafe fn CryptImportKey(hprov: usize, pbdata: &[u8], hpubkey: usize, dwflags: CRYPT_KEY_FLAGS, phkey: *mut usize) -> windows_core::Result<()> { @@ -1669,10 +1669,10 @@ pub unsafe fn CryptImportPublicKeyInfoEx2(dwcertencodingtype: CERT_QUERY_ENCODIN #[inline] pub unsafe fn CryptInitOIDFunctionSet(pszfuncname: P0, dwflags: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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 { @@ -1687,11 +1687,11 @@ pub unsafe fn CryptInstallDefaultContext(hcryptprov: usize, dwdefaulttype: CRYPT #[inline] pub unsafe fn CryptInstallOIDFunctionAddress(hmodule: P0, dwencodingtype: u32, pszfuncname: P1, rgfuncentry: &[CRYPT_OID_FUNC_ENTRY], dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmodule.into_param().abi(), dwencodingtype, pszfuncname.into_param().abi(), rgfuncentry.len().try_into().unwrap(), core::mem::transmute(rgfuncentry.as_ptr()), dwflags) + CryptInstallOIDFunctionAddress(hmodule.param().abi(), 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 { @@ -1711,10 +1711,10 @@ pub unsafe fn CryptMemRealloc(pv: Option<*const core::ffi::c_void>, cbsize: u32) #[inline] pub unsafe fn CryptMsgCalculateEncodedLength(dwmsgencodingtype: u32, dwflags: u32, dwmsgtype: u32, pvmsgencodeinfo: *const core::ffi::c_void, pszinnercontentobjid: P0, cbdata: u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(dwmsgencodingtype, dwflags, dwmsgtype, pvmsgencodeinfo, pszinnercontentobjid.into_param().abi(), 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<()> { @@ -1759,18 +1759,18 @@ pub unsafe fn CryptMsgGetParam(hcryptmsg: *const core::ffi::c_void, dwparamtype: #[inline] pub unsafe fn CryptMsgOpenToDecode(dwmsgencodingtype: u32, dwflags: u32, dwmsgtype: u32, hcryptprov: P0, precipientinfo: Option<*const CERT_INFO>, pstreaminfo: Option<*const CMSG_STREAM_INFO>) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwmsgencodingtype, dwflags, dwmsgtype, hcryptprov.into_param().abi(), core::mem::transmute(precipientinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pstreaminfo.unwrap_or(std::ptr::null()))) + CryptMsgOpenToDecode(dwmsgencodingtype, dwflags, dwmsgtype, hcryptprov.param().abi(), core::mem::transmute(precipientinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pstreaminfo.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CryptMsgOpenToEncode(dwmsgencodingtype: u32, dwflags: u32, dwmsgtype: CRYPT_MSG_TYPE, pvmsgencodeinfo: *const core::ffi::c_void, pszinnercontentobjid: P0, pstreaminfo: Option<*const CMSG_STREAM_INFO>) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(dwmsgencodingtype, dwflags, dwmsgtype, pvmsgencodeinfo, pszinnercontentobjid.into_param().abi(), core::mem::transmute(pstreaminfo.unwrap_or(std::ptr::null()))) + CryptMsgOpenToEncode(dwmsgencodingtype, dwflags, dwmsgtype, pvmsgencodeinfo, pszinnercontentobjid.param().abi(), core::mem::transmute(pstreaminfo.unwrap_or(std::ptr::null()))) } #[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<()> { @@ -1780,34 +1780,34 @@ pub unsafe fn CryptMsgSignCTL(dwmsgencodingtype: u32, pbctlcontent: &[u8], psign #[inline] pub unsafe fn CryptMsgUpdate(hcryptmsg: *const core::ffi::c_void, pbdata: Option<&[u8]>, ffinal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(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_param().abi()).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.param().abi()).ok() } #[inline] pub unsafe fn CryptMsgVerifyCountersignatureEncoded(hcryptprov: P0, dwencodingtype: u32, pbsignerinfo: &[u8], pbsignerinfocountersignature: &[u8], pcicountersigner: *const CERT_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprov.into_param().abi(), 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() + CryptMsgVerifyCountersignatureEncoded(hcryptprov.param().abi(), 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: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprov.into_param().abi(), 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(std::ptr::null_mut()))).ok() + CryptMsgVerifyCountersignatureEncodedEx(hcryptprov.param().abi(), 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(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CryptProtectData(pdatain: *const CRYPT_INTEGER_BLOB, szdatadescr: P0, 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<()> where - P0: windows_core::IntoParam, + P0: 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(pdatain, szdatadescr.into_param().abi(), core::mem::transmute(poptionalentropy.unwrap_or(std::ptr::null())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(ppromptstruct.unwrap_or(std::ptr::null())), dwflags, pdataout).ok() + CryptProtectData(pdatain, szdatadescr.param().abi(), core::mem::transmute(poptionalentropy.unwrap_or(std::ptr::null())), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(ppromptstruct.unwrap_or(std::ptr::null())), dwflags, pdataout).ok() } #[inline] pub unsafe fn CryptProtectMemory(pdatain: *mut core::ffi::c_void, cbdatain: u32, dwflags: u32) -> windows_core::Result<()> { @@ -1835,22 +1835,22 @@ pub unsafe fn CryptQueryObject(dwobjecttype: CERT_QUERY_OBJECT_TYPE, pvobject: * #[inline] pub unsafe fn CryptRegisterDefaultOIDFunction(dwencodingtype: u32, pszfuncname: P0, dwindex: u32, pwszdll: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwencodingtype, pszfuncname.into_param().abi(), dwindex, pwszdll.into_param().abi()) + CryptRegisterDefaultOIDFunction(dwencodingtype, pszfuncname.param().abi(), dwindex, pwszdll.param().abi()) } #[inline] pub unsafe fn CryptRegisterOIDFunction(dwencodingtype: u32, pszfuncname: P0, pszoid: P1, pwszdll: P2, pszoverridefuncname: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(dwencodingtype, pszfuncname.into_param().abi(), pszoid.into_param().abi(), pwszdll.into_param().abi(), pszoverridefuncname.into_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 { @@ -1865,40 +1865,40 @@ pub unsafe fn CryptReleaseContext(hprov: usize, dwflags: u32) -> windows_core::R #[inline] pub unsafe fn CryptRetrieveObjectByUrlA(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: P2, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszobjectoid.into_param().abi(), dwretrievalflags, dwtimeout, ppvobject, hasyncretrieve.into_param().abi(), core::mem::transmute(pcredentials.unwrap_or(std::ptr::null())), core::mem::transmute(pvverify.unwrap_or(std::ptr::null())), core::mem::transmute(pauxinfo.unwrap_or(std::ptr::null_mut()))) + CryptRetrieveObjectByUrlA(pszurl.param().abi(), pszobjectoid.param().abi(), dwretrievalflags, dwtimeout, ppvobject, hasyncretrieve.param().abi(), core::mem::transmute(pcredentials.unwrap_or(std::ptr::null())), core::mem::transmute(pvverify.unwrap_or(std::ptr::null())), core::mem::transmute(pauxinfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn CryptRetrieveObjectByUrlW(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: P2, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszobjectoid.into_param().abi(), dwretrievalflags, dwtimeout, ppvobject, hasyncretrieve.into_param().abi(), core::mem::transmute(pcredentials.unwrap_or(std::ptr::null())), core::mem::transmute(pvverify.unwrap_or(std::ptr::null())), core::mem::transmute(pauxinfo.unwrap_or(std::ptr::null_mut()))) + CryptRetrieveObjectByUrlW(pszurl.param().abi(), pszobjectoid.param().abi(), dwretrievalflags, dwtimeout, ppvobject, hasyncretrieve.param().abi(), core::mem::transmute(pcredentials.unwrap_or(std::ptr::null())), core::mem::transmute(pvverify.unwrap_or(std::ptr::null())), core::mem::transmute(pauxinfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn CryptRetrieveTimeStamp(wszurl: P0, dwretrievalflags: u32, dwtimeout: u32, pszhashid: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwretrievalflags, dwtimeout, pszhashid.into_param().abi(), core::mem::transmute(ppara.unwrap_or(std::ptr::null())), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), pptscontext, pptssigner, core::mem::transmute(phstore.unwrap_or(std::ptr::null_mut()))).ok() + CryptRetrieveTimeStamp(wszurl.param().abi(), dwretrievalflags, dwtimeout, pszhashid.param().abi(), core::mem::transmute(ppara.unwrap_or(std::ptr::null())), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), pptscontext, pptssigner, core::mem::transmute(phstore.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CryptSetAsyncParam(hasync: P0, pszparamoid: P1, pvparam: Option<*const core::ffi::c_void>, pfnfree: PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hasync.into_param().abi(), pszparamoid.into_param().abi(), core::mem::transmute(pvparam.unwrap_or(std::ptr::null())), pfnfree) + CryptSetAsyncParam(hasync.param().abi(), pszparamoid.param().abi(), core::mem::transmute(pvparam.unwrap_or(std::ptr::null())), pfnfree) } #[inline] pub unsafe fn CryptSetHashParam(hhash: usize, dwparam: CRYPT_SET_HASH_PARAM, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { @@ -1908,10 +1908,10 @@ pub unsafe fn CryptSetHashParam(hhash: usize, dwparam: CRYPT_SET_HASH_PARAM, pbd #[inline] pub unsafe fn CryptSetKeyIdentifierProperty(pkeyidentifier: *const CRYPT_INTEGER_BLOB, dwpropid: u32, dwflags: u32, pwszcomputername: P0, pvreserved: Option<*const core::ffi::c_void>, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pkeyidentifier, dwpropid, dwflags, pwszcomputername.into_param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null()))).ok() + CryptSetKeyIdentifierProperty(pkeyidentifier, dwpropid, dwflags, pwszcomputername.param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CryptSetKeyParam(hkey: usize, dwparam: CRYPT_KEY_PARAM_ID, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { @@ -1922,12 +1922,12 @@ pub unsafe fn CryptSetKeyParam(hkey: usize, dwparam: CRYPT_KEY_PARAM_ID, pbdata: #[inline] pub unsafe fn CryptSetOIDFunctionValue(dwencodingtype: u32, pszfuncname: P0, pszoid: P1, pwszvaluename: P2, dwvaluetype: super::super::System::Registry::REG_VALUE_TYPE, pbvaluedata: Option<&[u8]>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwencodingtype, pszfuncname.into_param().abi(), pszoid.into_param().abi(), pwszvaluename.into_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())) + 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<()> { @@ -1937,43 +1937,43 @@ pub unsafe fn CryptSetProvParam(hprov: usize, dwparam: CRYPT_SET_PROV_PARAM_ID, #[inline] pub unsafe fn CryptSetProviderA(pszprovname: P0, dwprovtype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderA(pszprovname : windows_core::PCSTR, dwprovtype : u32) -> super::super::Foundation:: BOOL); - CryptSetProviderA(pszprovname.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), dwflags).ok() + CryptSetProviderExA(pszprovname.param().abi(), dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), dwflags).ok() } #[inline] pub unsafe fn CryptSetProviderExW(pszprovname: P0, dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), dwflags).ok() + CryptSetProviderExW(pszprovname.param().abi(), dwprovtype, core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), dwflags).ok() } #[inline] pub unsafe fn CryptSetProviderW(pszprovname: P0, dwprovtype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderW(pszprovname : windows_core::PCWSTR, dwprovtype : u32) -> super::super::Foundation:: BOOL); - CryptSetProviderW(pszprovname.into_param().abi(), dwprovtype).ok() + CryptSetProviderW(pszprovname.param().abi(), dwprovtype).ok() } #[inline] pub unsafe fn CryptSignAndEncodeCertificate(hcryptprovorncryptkey: P0, dwkeyspec: CERT_KEY_SPEC, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, lpszstructtype: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hcryptprovorncryptkey.into_param().abi(), dwkeyspec, dwcertencodingtype, lpszstructtype.into_param().abi(), pvstructinfo, psignaturealgorithm, core::mem::transmute(pvhashauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), pcbencoded).ok() + CryptSignAndEncodeCertificate(hcryptprovorncryptkey.param().abi(), dwkeyspec, dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, psignaturealgorithm, core::mem::transmute(pvhashauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbencoded.unwrap_or(std::ptr::null_mut())), 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<()> { @@ -1983,34 +1983,34 @@ pub unsafe fn CryptSignAndEncryptMessage(psignpara: *const CRYPT_SIGN_MESSAGE_PA #[inline] pub unsafe fn CryptSignCertificate(hcryptprovorncryptkey: P0, dwkeyspec: u32, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprovorncryptkey.into_param().abi(), dwkeyspec, dwcertencodingtype, core::mem::transmute(pbencodedtobesigned.as_ptr()), pbencodedtobesigned.len().try_into().unwrap(), psignaturealgorithm, core::mem::transmute(pvhashauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbsignature.unwrap_or(std::ptr::null_mut())), pcbsignature).ok() + CryptSignCertificate(hcryptprovorncryptkey.param().abi(), dwkeyspec, dwcertencodingtype, core::mem::transmute(pbencodedtobesigned.as_ptr()), pbencodedtobesigned.len().try_into().unwrap(), psignaturealgorithm, core::mem::transmute(pvhashauxinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbsignature.unwrap_or(std::ptr::null_mut())), pcbsignature).ok() } #[inline] pub unsafe fn CryptSignHashA(hhash: usize, dwkeyspec: u32, szdescription: P0, dwflags: u32, pbsignature: Option<*mut u8>, pdwsiglen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hhash, dwkeyspec, szdescription.into_param().abi(), dwflags, core::mem::transmute(pbsignature.unwrap_or(std::ptr::null_mut())), pdwsiglen).ok() + CryptSignHashA(hhash, dwkeyspec, szdescription.param().abi(), dwflags, core::mem::transmute(pbsignature.unwrap_or(std::ptr::null_mut())), pdwsiglen).ok() } #[inline] pub unsafe fn CryptSignHashW(hhash: usize, dwkeyspec: u32, szdescription: P0, dwflags: u32, pbsignature: Option<*mut u8>, pdwsiglen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hhash, dwkeyspec, szdescription.into_param().abi(), dwflags, core::mem::transmute(pbsignature.unwrap_or(std::ptr::null_mut())), pdwsiglen).ok() + CryptSignHashW(hhash, dwkeyspec, szdescription.param().abi(), dwflags, core::mem::transmute(pbsignature.unwrap_or(std::ptr::null_mut())), pdwsiglen).ok() } #[inline] pub unsafe fn CryptSignMessage(psignpara: *const CRYPT_SIGN_MESSAGE_PARA, fdetachedsignature: P0, ctobesigned: u32, rgpbtobesigned: Option<*const *const u8>, rgcbtobesigned: *const u32, pbsignedblob: Option<*mut u8>, pcbsignedblob: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(psignpara, fdetachedsignature.into_param().abi(), ctobesigned, core::mem::transmute(rgpbtobesigned.unwrap_or(std::ptr::null())), rgcbtobesigned, core::mem::transmute(pbsignedblob.unwrap_or(std::ptr::null_mut())), pcbsignedblob).ok() + CryptSignMessage(psignpara, fdetachedsignature.param().abi(), ctobesigned, core::mem::transmute(rgpbtobesigned.unwrap_or(std::ptr::null())), rgcbtobesigned, core::mem::transmute(pbsignedblob.unwrap_or(std::ptr::null_mut())), 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<()> { @@ -2050,20 +2050,20 @@ pub unsafe fn CryptUnprotectMemory(pdatain: *mut core::ffi::c_void, cbdatain: u3 #[inline] pub unsafe fn CryptUnregisterDefaultOIDFunction(dwencodingtype: u32, pszfuncname: P0, pwszdll: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwencodingtype, pszfuncname.into_param().abi(), pwszdll.into_param().abi()) + CryptUnregisterDefaultOIDFunction(dwencodingtype, pszfuncname.param().abi(), pwszdll.param().abi()) } #[inline] pub unsafe fn CryptUnregisterOIDFunction(dwencodingtype: u32, pszfuncname: P0, pszoid: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwencodingtype, pszfuncname.into_param().abi(), pszoid.into_param().abi()) + CryptUnregisterOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi()) } #[inline] pub unsafe fn CryptUnregisterOIDInfo(pinfo: *const CRYPT_OID_INFO) -> super::super::Foundation::BOOL { @@ -2073,27 +2073,27 @@ pub unsafe fn CryptUnregisterOIDInfo(pinfo: *const CRYPT_OID_INFO) -> super::sup #[inline] pub unsafe fn CryptUpdateProtectedState(poldsid: P0, pwszoldpassword: P1, dwflags: u32, pdwsuccesscount: Option<*mut u32>, pdwfailurecount: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptUpdateProtectedState(poldsid : super::super::Foundation:: PSID, pwszoldpassword : windows_core::PCWSTR, dwflags : u32, pdwsuccesscount : *mut u32, pdwfailurecount : *mut u32) -> super::super::Foundation:: BOOL); - CryptUpdateProtectedState(poldsid.into_param().abi(), pwszoldpassword.into_param().abi(), dwflags, core::mem::transmute(pdwsuccesscount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwfailurecount.unwrap_or(std::ptr::null_mut()))).ok() + CryptUpdateProtectedState(poldsid.param().abi(), pwszoldpassword.param().abi(), dwflags, core::mem::transmute(pdwsuccesscount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwfailurecount.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CryptVerifyCertificateSignature(hcryptprov: P0, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencoded: &[u8], ppublickey: *const CERT_PUBLIC_KEY_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprov.into_param().abi(), dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), ppublickey).ok() + CryptVerifyCertificateSignature(hcryptprov.param().abi(), dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), ppublickey).ok() } #[inline] pub unsafe fn CryptVerifyCertificateSignatureEx(hcryptprov: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcryptprov.into_param().abi(), dwcertencodingtype, dwsubjecttype, pvsubject, dwissuertype, core::mem::transmute(pvissuer.unwrap_or(std::ptr::null())), dwflags, core::mem::transmute(pvextra.unwrap_or(std::ptr::null_mut()))).ok() + CryptVerifyCertificateSignatureEx(hcryptprov.param().abi(), dwcertencodingtype, dwsubjecttype, pvsubject, dwissuertype, core::mem::transmute(pvissuer.unwrap_or(std::ptr::null())), dwflags, core::mem::transmute(pvextra.unwrap_or(std::ptr::null_mut()))).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<()> { @@ -2123,26 +2123,26 @@ pub unsafe fn CryptVerifyMessageSignatureWithKey(pverifypara: *const CRYPT_KEY_V #[inline] pub unsafe fn CryptVerifySignatureA(hhash: usize, pbsignature: &[u8], hpubkey: usize, szdescription: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hhash, core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), hpubkey, szdescription.into_param().abi(), 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: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hhash, core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), hpubkey, szdescription.into_param().abi(), 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: P0, pptscontext: *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner: *mut *mut CERT_CONTEXT, phstore: Option<*mut HCERTSTORE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("crypt32.dll" "system" fn CryptVerifyTimeStampSignature(pbtscontentinfo : *const u8, cbtscontentinfo : u32, pbdata : *const u8, cbdata : u32, hadditionalstore : HCERTSTORE, pptscontext : *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner : *mut *mut CERT_CONTEXT, phstore : *mut HCERTSTORE) -> super::super::Foundation:: BOOL); - CryptVerifyTimeStampSignature(core::mem::transmute(pbtscontentinfo.as_ptr()), pbtscontentinfo.len().try_into().unwrap(), 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()), hadditionalstore.into_param().abi(), pptscontext, pptssigner, core::mem::transmute(phstore.unwrap_or(std::ptr::null_mut()))).ok() + CryptVerifyTimeStampSignature(core::mem::transmute(pbtscontentinfo.as_ptr()), pbtscontentinfo.len().try_into().unwrap(), 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()), hadditionalstore.param().abi(), pptscontext, pptssigner, core::mem::transmute(phstore.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] 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> { @@ -2158,12 +2158,12 @@ pub unsafe fn CryptXmlClose(hcryptxml: *const core::ffi::c_void) -> windows_core #[inline] pub unsafe fn CryptXmlCreateReference(hcryptxml: *const core::ffi::c_void, dwflags: u32, wszid: P0, wszuri: P1, wsztype: P2, pdigestmethod: *const CRYPT_XML_ALGORITHM, rgtransform: Option<&[CRYPT_XML_ALGORITHM]>, phreference: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hcryptxml, dwflags, wszid.into_param().abi(), wszuri.into_param().abi(), wsztype.into_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())), 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())), phreference).ok() } #[inline] pub unsafe fn CryptXmlDigestReference(hreference: *const core::ffi::c_void, dwflags: u32, pdataproviderin: *const CRYPT_XML_DATA_PROVIDER) -> windows_core::Result<()> { @@ -2235,10 +2235,10 @@ pub unsafe fn CryptXmlOpenToDecode(pconfig: Option<*const CRYPT_XML_TRANSFORM_CH #[inline] pub unsafe fn CryptXmlOpenToEncode(pconfig: Option<*const CRYPT_XML_TRANSFORM_CHAIN_CONFIG>, dwflags: CRYPT_XML_FLAGS, wszid: P0, rgproperty: Option<&[CRYPT_XML_PROPERTY]>, pencoded: Option<*const CRYPT_XML_BLOB>, phsignature: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), dwflags, wszid.into_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(std::ptr::null())), phsignature).ok() + CryptXmlOpenToEncode(core::mem::transmute(pconfig.unwrap_or(std::ptr::null())), 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(std::ptr::null())), phsignature).ok() } #[inline] pub unsafe fn CryptXmlSetHMACSecret(hsignature: *const core::ffi::c_void, pbsecret: &[u8]) -> windows_core::Result<()> { @@ -2248,42 +2248,42 @@ pub unsafe fn CryptXmlSetHMACSecret(hsignature: *const core::ffi::c_void, pbsecr #[inline] pub unsafe fn CryptXmlSign(hsignature: *const core::ffi::c_void, hkey: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hsignature, hkey.into_param().abi(), dwkeyspec, dwflags, dwkeyinfospec, core::mem::transmute(pvkeyinfospec.unwrap_or(std::ptr::null())), psignaturemethod, pcanonicalization).ok() + CryptXmlSign(hsignature, hkey.param().abi(), dwkeyspec, dwflags, dwkeyinfospec, core::mem::transmute(pvkeyinfospec.unwrap_or(std::ptr::null())), psignaturemethod, pcanonicalization).ok() } #[inline] pub unsafe fn CryptXmlVerifySignature(hsignature: *const core::ffi::c_void, hkey: P0, dwflags: CRYPT_XML_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hsignature, hkey.into_param().abi(), dwflags).ok() + CryptXmlVerifySignature(hsignature, hkey.param().abi(), dwflags).ok() } #[inline] pub unsafe fn Decrypt(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, foaep: P0, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcrypto, foaep.into_param().abi(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), pcboutdata, ppoutdata).ok() + Decrypt(hcrypto, foaep.param().abi(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), pcboutdata, ppoutdata).ok() } #[inline] pub unsafe fn Encrypt(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, foaep: P0, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcrypto, foaep.into_param().abi(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), pcboutdata, ppoutdata).ok() + Encrypt(hcrypto, foaep.param().abi(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), pcboutdata, ppoutdata).ok() } #[inline] pub unsafe fn FindCertsByIssuer(pcertchains: Option<*mut CERT_CHAIN>, pcbcertchains: *mut u32, pccertchains: *mut u32, pbencodedissuername: Option<&[u8]>, pwszpurpose: P0, dwkeyspec: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null_mut())), pcbcertchains, 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.into_param().abi(), dwkeyspec).ok() + FindCertsByIssuer(core::mem::transmute(pcertchains.unwrap_or(std::ptr::null_mut())), pcbcertchains, 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 { @@ -2293,10 +2293,10 @@ pub unsafe fn FreeToken(pallocmemory: *const GENERIC_XML_TOKEN) -> super::super: #[inline] pub unsafe fn GenerateDerivedKey(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, plabel: &[u8], pnonce: &[u8], derivedkeylength: u32, offset: u32, algid: P0, pcbkey: *mut u32, ppkey: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(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.into_param().abi(), pcbkey, 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(), pcbkey, ppkey).ok() } #[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<()> { @@ -2333,10 +2333,10 @@ pub unsafe fn HashFinal(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, pindata: #[inline] pub unsafe fn ImportInformationCard(filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("infocardapi.dll" "system" fn ImportInformationCard(filename : windows_core::PCWSTR) -> windows_core::HRESULT); - ImportInformationCard(filename.into_param().abi()).ok() + ImportInformationCard(filename.param().abi()).ok() } #[inline] pub unsafe fn ManageCardSpace() -> windows_core::Result<()> { @@ -2346,88 +2346,88 @@ pub unsafe fn ManageCardSpace() -> windows_core::Result<()> { #[inline] pub unsafe fn NCryptCloseProtectionDescriptor(hdescriptor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptCloseProtectionDescriptor(hdescriptor : super:: NCRYPT_DESCRIPTOR_HANDLE) -> windows_core::HRESULT); - NCryptCloseProtectionDescriptor(hdescriptor.into_param().abi()).ok() + NCryptCloseProtectionDescriptor(hdescriptor.param().abi()).ok() } #[inline] pub unsafe fn NCryptCreateClaim(hsubjectkey: P0, hauthoritykey: P1, dwclaimtype: u32, pparameterlist: Option<*const BCryptBufferDesc>, pbclaimblob: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hsubjectkey.into_param().abi(), hauthoritykey.into_param().abi(), dwclaimtype, core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() + NCryptCreateClaim(hsubjectkey.param().abi(), hauthoritykey.param().abi(), dwclaimtype, core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptCreatePersistedKey(hprovider: P0, phkey: *mut NCRYPT_KEY_HANDLE, pszalgid: P1, pszkeyname: P2, dwlegacykeyspec: CERT_KEY_SPEC, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprovider.into_param().abi(), phkey, pszalgid.into_param().abi(), pszkeyname.into_param().abi(), dwlegacykeyspec, dwflags).ok() + NCryptCreatePersistedKey(hprovider.param().abi(), phkey, pszalgid.param().abi(), pszkeyname.param().abi(), dwlegacykeyspec, dwflags).ok() } #[inline] pub unsafe fn NCryptCreateProtectionDescriptor(pwszdescriptorstring: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - NCryptCreateProtectionDescriptor(pwszdescriptorstring.into_param().abi(), dwflags, &mut result__).map(|| result__) + NCryptCreateProtectionDescriptor(pwszdescriptorstring.param().abi(), dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn NCryptDecrypt(hkey: P0, pbinput: Option<&[u8]>, ppaddinginfo: Option<*const core::ffi::c_void>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), 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(std::ptr::null())), 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()), pcbresult, dwflags).ok() + NCryptDecrypt(hkey.param().abi(), 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(std::ptr::null())), 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()), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptDeleteKey(hkey: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptDeleteKey(hkey : NCRYPT_KEY_HANDLE, dwflags : u32) -> windows_core::HRESULT); - NCryptDeleteKey(hkey.into_param().abi(), dwflags).ok() + NCryptDeleteKey(hkey.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptDeriveKey(hsharedsecret: P0, pwszkdf: P1, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hsharedsecret.into_param().abi(), pwszkdf.into_param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() + NCryptDeriveKey(hsharedsecret.param().abi(), pwszkdf.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptEncrypt(hkey: P0, pbinput: Option<&[u8]>, ppaddinginfo: Option<*const core::ffi::c_void>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), 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(std::ptr::null())), 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()), pcbresult, dwflags).ok() + NCryptEncrypt(hkey.param().abi(), 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(std::ptr::null())), 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()), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptEnumAlgorithms(hprovider: P0, dwalgoperations: NCRYPT_OPERATION, pdwalgcount: *mut u32, ppalglist: *mut *mut NCryptAlgorithmName, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprovider.into_param().abi(), dwalgoperations, pdwalgcount, ppalglist, dwflags).ok() + NCryptEnumAlgorithms(hprovider.param().abi(), dwalgoperations, pdwalgcount, ppalglist, dwflags).ok() } #[inline] pub unsafe fn NCryptEnumKeys(hprovider: P0, pszscope: P1, ppkeyname: *mut *mut NCryptKeyName, ppenumstate: *mut *mut core::ffi::c_void, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprovider.into_param().abi(), pszscope.into_param().abi(), ppkeyname, ppenumstate, dwflags).ok() + NCryptEnumKeys(hprovider.param().abi(), pszscope.param().abi(), ppkeyname, ppenumstate, dwflags).ok() } #[inline] pub unsafe fn NCryptEnumStorageProviders(pdwprovidercount: *mut u32, ppproviderlist: *mut *mut NCryptProviderName, dwflags: u32) -> windows_core::Result<()> { @@ -2437,20 +2437,20 @@ pub unsafe fn NCryptEnumStorageProviders(pdwprovidercount: *mut u32, ppproviderl #[inline] pub unsafe fn NCryptExportKey(hkey: P0, hexportkey: P1, pszblobtype: P2, pparameterlist: Option<*const BCryptBufferDesc>, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), hexportkey.into_param().abi(), pszblobtype.into_param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() + NCryptExportKey(hkey.param().abi(), hexportkey.param().abi(), pszblobtype.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptFinalizeKey(hkey: P0, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptFinalizeKey(hkey : NCRYPT_KEY_HANDLE, dwflags : NCRYPT_FLAGS) -> windows_core::HRESULT); - NCryptFinalizeKey(hkey.into_param().abi(), dwflags).ok() + NCryptFinalizeKey(hkey.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptFreeBuffer(pvinput: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -2460,184 +2460,184 @@ pub unsafe fn NCryptFreeBuffer(pvinput: *mut core::ffi::c_void) -> windows_core: #[inline] pub unsafe fn NCryptFreeObject(hobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptFreeObject(hobject : NCRYPT_HANDLE) -> windows_core::HRESULT); - NCryptFreeObject(hobject.into_param().abi()).ok() + NCryptFreeObject(hobject.param().abi()).ok() } #[inline] pub unsafe fn NCryptGetProperty(hobject: P0, pszproperty: P1, pboutput: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: super::OBJECT_SECURITY_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hobject.into_param().abi(), pszproperty.into_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()), pcbresult, dwflags).ok() + NCryptGetProperty(hobject.param().abi(), 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()), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptGetProtectionDescriptorInfo(hdescriptor: P0, pmempara: Option<*const NCRYPT_ALLOC_PARA>, dwinfotype: u32, ppvinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdescriptor.into_param().abi(), core::mem::transmute(pmempara.unwrap_or(std::ptr::null())), dwinfotype, ppvinfo).ok() + NCryptGetProtectionDescriptorInfo(hdescriptor.param().abi(), core::mem::transmute(pmempara.unwrap_or(std::ptr::null())), dwinfotype, ppvinfo).ok() } #[inline] pub unsafe fn NCryptImportKey(hprovider: P0, himportkey: P1, pszblobtype: P2, pparameterlist: Option<*const BCryptBufferDesc>, phkey: *mut NCRYPT_KEY_HANDLE, pbdata: &[u8], dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprovider.into_param().abi(), himportkey.into_param().abi(), pszblobtype.into_param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), phkey, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), dwflags).ok() + NCryptImportKey(hprovider.param().abi(), himportkey.param().abi(), pszblobtype.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), phkey, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn NCryptIsAlgSupported(hprovider: P0, pszalgid: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprovider.into_param().abi(), pszalgid.into_param().abi(), dwflags).ok() + NCryptIsAlgSupported(hprovider.param().abi(), pszalgid.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptIsKeyHandle(hkey: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptIsKeyHandle(hkey : NCRYPT_KEY_HANDLE) -> super::super::Foundation:: BOOL); - NCryptIsKeyHandle(hkey.into_param().abi()) + NCryptIsKeyHandle(hkey.param().abi()) } #[inline] pub unsafe fn NCryptKeyDerivation(hkey: P0, pparameterlist: Option<*const BCryptBufferDesc>, pbderivedkey: &mut [u8], pcbresult: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), pcbresult, dwflags).ok() + NCryptKeyDerivation(hkey.param().abi(), core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), core::mem::transmute(pbderivedkey.as_ptr()), pbderivedkey.len().try_into().unwrap(), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptNotifyChangeKey(hprovider: P0, phevent: *mut super::super::Foundation::HANDLE, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprovider.into_param().abi(), phevent, dwflags).ok() + NCryptNotifyChangeKey(hprovider.param().abi(), phevent, dwflags).ok() } #[inline] pub unsafe fn NCryptOpenKey(hprovider: P0, phkey: *mut NCRYPT_KEY_HANDLE, pszkeyname: P1, dwlegacykeyspec: CERT_KEY_SPEC, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprovider.into_param().abi(), phkey, pszkeyname.into_param().abi(), dwlegacykeyspec, dwflags).ok() + NCryptOpenKey(hprovider.param().abi(), phkey, pszkeyname.param().abi(), dwlegacykeyspec, dwflags).ok() } #[inline] pub unsafe fn NCryptOpenStorageProvider(phprovider: *mut NCRYPT_PROV_HANDLE, pszprovidername: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(phprovider, pszprovidername.into_param().abi(), dwflags).ok() + NCryptOpenStorageProvider(phprovider, pszprovidername.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptProtectSecret(hdescriptor: P0, dwflags: u32, pbdata: &[u8], pmempara: Option<*const NCRYPT_ALLOC_PARA>, hwnd: P1, ppbprotectedblob: *mut *mut u8, pcbprotectedblob: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdescriptor.into_param().abi(), dwflags, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(std::ptr::null())), hwnd.into_param().abi(), ppbprotectedblob, pcbprotectedblob).ok() + NCryptProtectSecret(hdescriptor.param().abi(), dwflags, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(std::ptr::null())), hwnd.param().abi(), ppbprotectedblob, pcbprotectedblob).ok() } #[inline] pub unsafe fn NCryptQueryProtectionDescriptorName(pwszname: P0, pwszdescriptorstring: windows_core::PWSTR, pcdescriptorstring: *mut usize, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pwszdescriptorstring), pcdescriptorstring, dwflags).ok() + NCryptQueryProtectionDescriptorName(pwszname.param().abi(), core::mem::transmute(pwszdescriptorstring), pcdescriptorstring, dwflags).ok() } #[inline] pub unsafe fn NCryptRegisterProtectionDescriptorName(pwszname: P0, pwszdescriptorstring: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwszdescriptorstring.into_param().abi(), dwflags).ok() + NCryptRegisterProtectionDescriptorName(pwszname.param().abi(), pwszdescriptorstring.param().abi(), dwflags).ok() } #[inline] pub unsafe fn NCryptSecretAgreement(hprivkey: P0, hpubkey: P1, phagreedsecret: *mut NCRYPT_SECRET_HANDLE, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprivkey.into_param().abi(), hpubkey.into_param().abi(), phagreedsecret, dwflags).ok() + NCryptSecretAgreement(hprivkey.param().abi(), hpubkey.param().abi(), phagreedsecret, dwflags).ok() } #[inline] pub unsafe fn NCryptSetProperty(hobject: P0, pszproperty: P1, pbinput: &[u8], dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hobject.into_param().abi(), pszproperty.into_param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags).ok() + NCryptSetProperty(hobject.param().abi(), pszproperty.param().abi(), core::mem::transmute(pbinput.as_ptr()), pbinput.len().try_into().unwrap(), dwflags).ok() } #[inline] pub unsafe fn NCryptSignHash(hkey: P0, ppaddinginfo: Option<*const core::ffi::c_void>, pbhashvalue: &[u8], pbsignature: Option<&mut [u8]>, pcbresult: *mut u32, dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() + NCryptSignHash(hkey.param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), 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()), pcbresult, dwflags).ok() } #[inline] pub unsafe fn NCryptStreamClose(hstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamClose(hstream : super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); - NCryptStreamClose(hstream.into_param().abi()).ok() + NCryptStreamClose(hstream.param().abi()).ok() } #[inline] pub unsafe fn NCryptStreamOpenToProtect(hdescriptor: P0, dwflags: u32, hwnd: P1, pstreaminfo: *const NCRYPT_PROTECT_STREAM_INFO) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - NCryptStreamOpenToProtect(hdescriptor.into_param().abi(), dwflags, hwnd.into_param().abi(), pstreaminfo, &mut result__).map(|| result__) + NCryptStreamOpenToProtect(hdescriptor.param().abi(), dwflags, hwnd.param().abi(), pstreaminfo, &mut result__).map(|| result__) } #[inline] pub unsafe fn NCryptStreamOpenToUnprotect(pstreaminfo: *const NCRYPT_PROTECT_STREAM_INFO, dwflags: u32, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - NCryptStreamOpenToUnprotect(pstreaminfo, dwflags, hwnd.into_param().abi(), &mut result__).map(|| result__) + NCryptStreamOpenToUnprotect(pstreaminfo, dwflags, hwnd.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn NCryptStreamOpenToUnprotectEx(pstreaminfo: *const NCRYPT_PROTECT_STREAM_INFO_EX, dwflags: u32, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - NCryptStreamOpenToUnprotectEx(pstreaminfo, dwflags, hwnd.into_param().abi(), &mut result__).map(|| result__) + NCryptStreamOpenToUnprotectEx(pstreaminfo, dwflags, hwnd.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn NCryptStreamUpdate(hstream: P0, pbdata: &[u8], ffinal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hstream.into_param().abi(), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), ffinal.into_param().abi()).ok() + NCryptStreamUpdate(hstream.param().abi(), core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), ffinal.param().abi()).ok() } #[inline] pub unsafe fn NCryptTranslateHandle(phprovider: Option<*mut NCRYPT_PROV_HANDLE>, phkey: *mut NCRYPT_KEY_HANDLE, hlegacyprov: usize, hlegacykey: usize, dwlegacykeyspec: CERT_KEY_SPEC, dwflags: u32) -> windows_core::Result<()> { @@ -2647,53 +2647,53 @@ pub unsafe fn NCryptTranslateHandle(phprovider: Option<*mut NCRYPT_PROV_HANDLE>, #[inline] pub unsafe fn NCryptUnprotectSecret(phdescriptor: Option<*mut super::NCRYPT_DESCRIPTOR_HANDLE>, dwflags: NCRYPT_FLAGS, pbprotectedblob: &[u8], pmempara: Option<*const NCRYPT_ALLOC_PARA>, hwnd: P0, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), dwflags, core::mem::transmute(pbprotectedblob.as_ptr()), pbprotectedblob.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(std::ptr::null())), hwnd.into_param().abi(), ppbdata, pcbdata).ok() + NCryptUnprotectSecret(core::mem::transmute(phdescriptor.unwrap_or(std::ptr::null_mut())), dwflags, core::mem::transmute(pbprotectedblob.as_ptr()), pbprotectedblob.len().try_into().unwrap(), core::mem::transmute(pmempara.unwrap_or(std::ptr::null())), hwnd.param().abi(), ppbdata, pcbdata).ok() } #[inline] pub unsafe fn NCryptVerifyClaim(hsubjectkey: P0, hauthoritykey: P1, dwclaimtype: u32, pparameterlist: Option<*const BCryptBufferDesc>, pbclaimblob: &[u8], poutput: *mut BCryptBufferDesc, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hsubjectkey.into_param().abi(), hauthoritykey.into_param().abi(), dwclaimtype, core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), core::mem::transmute(pbclaimblob.as_ptr()), pbclaimblob.len().try_into().unwrap(), poutput, dwflags).ok() + NCryptVerifyClaim(hsubjectkey.param().abi(), hauthoritykey.param().abi(), dwclaimtype, core::mem::transmute(pparameterlist.unwrap_or(std::ptr::null())), core::mem::transmute(pbclaimblob.as_ptr()), pbclaimblob.len().try_into().unwrap(), poutput, dwflags).ok() } #[inline] pub unsafe fn NCryptVerifySignature(hkey: P0, ppaddinginfo: Option<*const core::ffi::c_void>, pbhashvalue: &[u8], pbsignature: &[u8], dwflags: NCRYPT_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), dwflags).ok() + NCryptVerifySignature(hkey.param().abi(), core::mem::transmute(ppaddinginfo.unwrap_or(std::ptr::null())), 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: P0, ppfx: *mut CRYPT_INTEGER_BLOB, szpassword: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hstore.into_param().abi(), ppfx, szpassword.into_param().abi(), dwflags).ok() + PFXExportCertStore(hstore.param().abi(), ppfx, szpassword.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PFXExportCertStoreEx(hstore: P0, ppfx: *mut CRYPT_INTEGER_BLOB, szpassword: P1, pvpara: *const core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hstore.into_param().abi(), ppfx, szpassword.into_param().abi(), pvpara, dwflags).ok() + PFXExportCertStoreEx(hstore.param().abi(), ppfx, szpassword.param().abi(), pvpara, dwflags).ok() } #[inline] pub unsafe fn PFXImportCertStore(ppfx: *const CRYPT_INTEGER_BLOB, szpassword: P0, dwflags: CRYPT_KEY_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(ppfx, szpassword.into_param().abi(), dwflags); + let result__ = PFXImportCertStore(ppfx, szpassword.param().abi(), dwflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2704,10 +2704,10 @@ pub unsafe fn PFXIsPFXBlob(ppfx: *const CRYPT_INTEGER_BLOB) -> super::super::Fou #[inline] pub unsafe fn PFXVerifyPassword(ppfx: *const CRYPT_INTEGER_BLOB, szpassword: P0, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(ppfx, szpassword.into_param().abi(), dwflags) + PFXVerifyPassword(ppfx, szpassword.param().abi(), dwflags) } #[inline] pub unsafe fn ProcessPrng(pbdata: &mut [u8]) -> super::super::Foundation::BOOL { @@ -2722,10 +2722,10 @@ pub unsafe fn SignError() -> windows_core::Result<()> { #[inline] pub unsafe fn SignHash(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, phash: &[u8], hashalgoid: P0, pcbsig: *mut u32, ppsig: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hcrypto, phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.into_param().abi(), pcbsig, ppsig).ok() + SignHash(hcrypto, phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.param().abi(), pcbsig, ppsig).ok() } #[inline] pub unsafe fn SignerFreeSignerContext(psignercontext: *const SIGNER_CONTEXT) -> windows_core::Result<()> { @@ -2735,34 +2735,34 @@ pub unsafe fn SignerFreeSignerContext(psignercontext: *const SIGNER_CONTEXT) -> #[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: P0, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(std::ptr::null())), pwszhttptimestamp.into_param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null()))).ok() + SignerSign(psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(std::ptr::null())), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null()))).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: P0, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>) -> windows_core::Result<*mut SIGNER_CONTEXT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SignerSignEx(dwflags, psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(std::ptr::null())), pwszhttptimestamp.into_param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + SignerSignEx(dwflags, psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(std::ptr::null())), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null())), &mut result__).map(|| 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: SIGNER_TIMESTAMP_FLAGS, psztimestampalgorithmoid: P0, pwszhttptimestamp: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(dwflags, psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(std::ptr::null())), dwtimestampflags, psztimestampalgorithmoid.into_param().abi(), pwszhttptimestamp.into_param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null())), ppsignercontext, core::mem::transmute(pcryptopolicy.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))).ok() + SignerSignEx2(dwflags, psubjectinfo, psignercert, psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(std::ptr::null())), dwtimestampflags, psztimestampalgorithmoid.param().abi(), pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null())), ppsignercontext, core::mem::transmute(pcryptopolicy.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SignerSignEx3(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: SIGNER_TIMESTAMP_FLAGS, psztimestampalgorithmoid: P0, pwszhttptimestamp: P1, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>, ppsignercontext: *mut *mut SIGNER_CONTEXT, pcryptopolicy: Option<*const CERT_STRONG_SIGN_PARA>, pdigestsigninfo: Option<*const SIGNER_DIGEST_SIGN_INFO>, preserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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( @@ -2772,8 +2772,8 @@ where psignatureinfo, core::mem::transmute(pproviderinfo.unwrap_or(std::ptr::null())), dwtimestampflags, - psztimestampalgorithmoid.into_param().abi(), - pwszhttptimestamp.into_param().abi(), + psztimestampalgorithmoid.param().abi(), + pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null())), ppsignercontext, @@ -2786,37 +2786,37 @@ where #[inline] pub unsafe fn SignerTimeStamp(psubjectinfo: *const SIGNER_SUBJECT_INFO, pwszhttptimestamp: P0, psrequest: Option<*const CRYPT_ATTRIBUTES>, psipdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(psubjectinfo, pwszhttptimestamp.into_param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null()))).ok() + SignerTimeStamp(psubjectinfo, pwszhttptimestamp.param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SignerTimeStampEx(dwflags: u32, psubjectinfo: *const SIGNER_SUBJECT_INFO, pwszhttptimestamp: P0, psrequest: *const CRYPT_ATTRIBUTES, psipdata: *const core::ffi::c_void) -> windows_core::Result<*mut SIGNER_CONTEXT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SignerTimeStampEx(dwflags, psubjectinfo, pwszhttptimestamp.into_param().abi(), psrequest, psipdata, &mut result__).map(|| result__) + SignerTimeStampEx(dwflags, psubjectinfo, pwszhttptimestamp.param().abi(), psrequest, psipdata, &mut result__).map(|| result__) } #[inline] pub unsafe fn SignerTimeStampEx2(dwflags: SIGNER_TIMESTAMP_FLAGS, psubjectinfo: *const SIGNER_SUBJECT_INFO, pwszhttptimestamp: P0, dwalgid: ALG_ID, psrequest: *const CRYPT_ATTRIBUTES, psipdata: *const core::ffi::c_void) -> windows_core::Result<*mut SIGNER_CONTEXT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SignerTimeStampEx2(dwflags, psubjectinfo, pwszhttptimestamp.into_param().abi(), dwalgid, psrequest, psipdata, &mut result__).map(|| result__) + SignerTimeStampEx2(dwflags, psubjectinfo, pwszhttptimestamp.param().abi(), dwalgid, psrequest, psipdata, &mut result__).map(|| result__) } #[inline] pub unsafe fn SignerTimeStampEx3(dwflags: SIGNER_TIMESTAMP_FLAGS, dwindex: u32, psubjectinfo: *const SIGNER_SUBJECT_INFO, pwszhttptimestamp: P0, pszalgorithmoid: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, dwindex, psubjectinfo, pwszhttptimestamp.into_param().abi(), pszalgorithmoid.into_param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null())), ppsignercontext, core::mem::transmute(pcryptopolicy.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))).ok() + SignerTimeStampEx3(dwflags, dwindex, psubjectinfo, pwszhttptimestamp.param().abi(), pszalgorithmoid.param().abi(), core::mem::transmute(psrequest.unwrap_or(std::ptr::null())), core::mem::transmute(psipdata.unwrap_or(std::ptr::null())), ppsignercontext, core::mem::transmute(pcryptopolicy.unwrap_or(std::ptr::null())), core::mem::transmute(preserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SystemPrng(pbrandomdata: &mut [u8]) -> super::super::Foundation::BOOL { @@ -2836,11 +2836,11 @@ pub unsafe fn TransformFinalBlock(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, #[inline] pub unsafe fn VerifyHash(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, phash: &[u8], hashalgoid: P0, psig: &[u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VerifyHash(hcrypto, phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.into_param().abi(), psig.len().try_into().unwrap(), core::mem::transmute(psig.as_ptr()), &mut result__).map(|| 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(|| result__) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(ICertSrvSetup, ICertSrvSetup_Vtbl, 0xb760a1bb_4784_44c0_8f12_555f0780ff25); @@ -2858,10 +2858,10 @@ impl ICertSrvSetup { } pub unsafe fn InitializeDefaults(&self, bserver: P0, bclient: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDefaults)(windows_core::Interface::as_raw(self), bserver.into_param().abi(), bclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDefaults)(windows_core::Interface::as_raw(self), bserver.param().abi(), bclient.param().abi()).ok() } pub unsafe fn GetCASetupProperty(&self, propertyid: CASetupProperty) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2884,24 +2884,24 @@ impl ICertSrvSetup { } pub unsafe fn GetKeyLengthList(&self, bstrprovidername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKeyLengthList)(windows_core::Interface::as_raw(self), bstrprovidername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetKeyLengthList)(windows_core::Interface::as_raw(self), bstrprovidername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetHashAlgorithmList(&self, bstrprovidername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHashAlgorithmList)(windows_core::Interface::as_raw(self), bstrprovidername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetHashAlgorithmList)(windows_core::Interface::as_raw(self), bstrprovidername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPrivateKeyContainerList(&self, bstrprovidername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPrivateKeyContainerList)(windows_core::Interface::as_raw(self), bstrprovidername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPrivateKeyContainerList)(windows_core::Interface::as_raw(self), bstrprovidername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExistingCACertificates(&self) -> windows_core::Result { @@ -2911,51 +2911,51 @@ impl ICertSrvSetup { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CAImportPFX(&self, bstrfilename: P0, bstrpasswd: P1, boverwriteexistingkey: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CAImportPFX)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), bstrpasswd.into_param().abi(), boverwriteexistingkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CAImportPFX)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), bstrpasswd.param().abi(), boverwriteexistingkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCADistinguishedName(&self, bstrcadn: P0, bignoreunicode: P1, boverwriteexistingkey: P2, boverwriteexistingcainds: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCADistinguishedName)(windows_core::Interface::as_raw(self), bstrcadn.into_param().abi(), bignoreunicode.into_param().abi(), boverwriteexistingkey.into_param().abi(), boverwriteexistingcainds.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCADistinguishedName)(windows_core::Interface::as_raw(self), bstrcadn.param().abi(), bignoreunicode.param().abi(), boverwriteexistingkey.param().abi(), boverwriteexistingcainds.param().abi()).ok() } pub unsafe fn SetDatabaseInformation(&self, bstrdbdirectory: P0, bstrlogdirectory: P1, bstrsharedfolder: P2, bforceoverwrite: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDatabaseInformation)(windows_core::Interface::as_raw(self), bstrdbdirectory.into_param().abi(), bstrlogdirectory.into_param().abi(), bstrsharedfolder.into_param().abi(), bforceoverwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDatabaseInformation)(windows_core::Interface::as_raw(self), bstrdbdirectory.param().abi(), bstrlogdirectory.param().abi(), bstrsharedfolder.param().abi(), bforceoverwrite.param().abi()).ok() } pub unsafe fn SetParentCAInformation(&self, bstrcaconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParentCAInformation)(windows_core::Interface::as_raw(self), bstrcaconfiguration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParentCAInformation)(windows_core::Interface::as_raw(self), bstrcaconfiguration.param().abi()).ok() } pub unsafe fn SetWebCAInformation(&self, bstrcaconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWebCAInformation)(windows_core::Interface::as_raw(self), bstrcaconfiguration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWebCAInformation)(windows_core::Interface::as_raw(self), bstrcaconfiguration.param().abi()).ok() } pub unsafe fn Install(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn PreUnInstall(&self, bclientonly: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreUnInstall)(windows_core::Interface::as_raw(self), bclientonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PreUnInstall)(windows_core::Interface::as_raw(self), bclientonly.param().abi()).ok() } pub unsafe fn PostUnInstall(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PostUnInstall)(windows_core::Interface::as_raw(self)).ok() @@ -3004,9 +3004,9 @@ impl ICertSrvSetupKeyInformation { } pub unsafe fn SetProviderName(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderName)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn Length(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3021,9 +3021,9 @@ impl ICertSrvSetupKeyInformation { } pub unsafe fn SetExisting(&self, bval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), bval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExisting)(windows_core::Interface::as_raw(self), bval.param().abi()).ok() } pub unsafe fn ContainerName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3031,9 +3031,9 @@ impl ICertSrvSetupKeyInformation { } pub unsafe fn SetContainerName(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainerName)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainerName)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn HashAlgorithm(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3041,9 +3041,9 @@ impl ICertSrvSetupKeyInformation { } pub unsafe fn SetHashAlgorithm(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHashAlgorithm)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn ExistingCACertificate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3051,9 +3051,9 @@ impl ICertSrvSetupKeyInformation { } pub unsafe fn SetExistingCACertificate(&self, varval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExistingCACertificate)(windows_core::Interface::as_raw(self), varval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExistingCACertificate)(windows_core::Interface::as_raw(self), varval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3094,9 +3094,9 @@ impl ICertSrvSetupKeyInformationCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pikeyinformation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pikeyinformation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pikeyinformation.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3171,10 +3171,10 @@ impl ICertificateEnrollmentServerSetup { } pub unsafe fn SetApplicationPoolCredentials(&self, bstrusername: P0, bstrpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationPoolCredentials)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationPoolCredentials)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn Install(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Install)(windows_core::Interface::as_raw(self)).ok() @@ -3221,10 +3221,10 @@ impl IMSCEPSetup { } pub unsafe fn SetAccountInformation(&self, bstrusername: P0, bstrpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccountInformation)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccountInformation)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn IsMSCEPStoreEmpty(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3232,18 +3232,18 @@ impl IMSCEPSetup { } pub unsafe fn GetProviderNameList(&self, bexchange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProviderNameList)(windows_core::Interface::as_raw(self), bexchange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProviderNameList)(windows_core::Interface::as_raw(self), bexchange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetKeyLengthList(&self, bexchange: P0, bstrprovidername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKeyLengthList)(windows_core::Interface::as_raw(self), bexchange.into_param().abi(), bstrprovidername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetKeyLengthList)(windows_core::Interface::as_raw(self), bexchange.param().abi(), bstrprovidername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(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 1186368dcb..6c7d5d3a9b 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCancelDiagnosticRecordOperation(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::HRESULT); - DdqCancelDiagnosticRecordOperation(hsession.into_param().abi()).ok() + DdqCancelDiagnosticRecordOperation(hsession.param().abi()).ok() } #[inline] pub unsafe fn DdqCloseSession(hsession: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCloseSession(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::HRESULT); - DdqCloseSession(hsession.into_param().abi()).ok() + DdqCloseSession(hsession.param().abi()).ok() } #[inline] pub unsafe fn DdqCreateSession(accesslevel: DdqAccessLevel) -> windows_core::Result { @@ -23,52 +23,52 @@ pub unsafe fn DdqCreateSession(accesslevel: DdqAccessLevel) -> windows_core::Res #[inline] pub unsafe fn DdqExtractDiagnosticReport(hsession: P0, reportstoretype: u32, reportkey: P1, destinationpath: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqExtractDiagnosticReport(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, reportkey : windows_core::PCWSTR, destinationpath : windows_core::PCWSTR) -> windows_core::HRESULT); - DdqExtractDiagnosticReport(hsession.into_param().abi(), reportstoretype, reportkey.into_param().abi(), destinationpath.into_param().abi()).ok() + DdqExtractDiagnosticReport(hsession.param().abi(), reportstoretype, reportkey.param().abi(), destinationpath.param().abi()).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordLocaleTags(htagdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordLocaleTags(htagdescription : super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordLocaleTags(htagdescription.into_param().abi()).ok() + DdqFreeDiagnosticRecordLocaleTags(htagdescription.param().abi()).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordPage(hrecord: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordPage(hrecord : super:: HDIAGNOSTIC_RECORD) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordPage(hrecord.into_param().abi()).ok() + DdqFreeDiagnosticRecordPage(hrecord.param().abi()).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordProducerCategories(hcategorydescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordProducerCategories(hcategorydescription : super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordProducerCategories(hcategorydescription.into_param().abi()).ok() + DdqFreeDiagnosticRecordProducerCategories(hcategorydescription.param().abi()).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticRecordProducers(hproducerdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordProducers(hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); - DdqFreeDiagnosticRecordProducers(hproducerdescription.into_param().abi()).ok() + DdqFreeDiagnosticRecordProducers(hproducerdescription.param().abi()).ok() } #[inline] pub unsafe fn DdqFreeDiagnosticReport(hreport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticReport(hreport : super:: HDIAGNOSTIC_REPORT) -> windows_core::HRESULT); - DdqFreeDiagnosticReport(hreport.into_param().abi()).ok() + DdqFreeDiagnosticReport(hreport.param().abi()).ok() } #[inline] pub unsafe fn DdqGetDiagnosticDataAccessLevelAllowed() -> windows_core::Result { @@ -79,224 +79,224 @@ pub unsafe fn DdqGetDiagnosticDataAccessLevelAllowed() -> windows_core::Result(hrecord: P0, index: u32, record: *mut DIAGNOSTIC_DATA_RECORD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordAtIndex(hrecord : super:: HDIAGNOSTIC_RECORD, index : u32, record : *mut DIAGNOSTIC_DATA_RECORD) -> windows_core::HRESULT); - DdqGetDiagnosticRecordAtIndex(hrecord.into_param().abi(), index, record).ok() + DdqGetDiagnosticRecordAtIndex(hrecord.param().abi(), index, record).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordBinaryDistribution(hsession: P0, producernames: &[windows_core::PCWSTR], topnbinaries: u32, binarystats: *mut *mut DIAGNOSTIC_DATA_EVENT_BINARY_STATS, statcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordBinaryDistribution(hsession : super:: 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(hsession.into_param().abi(), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), topnbinaries, binarystats, statcount).ok() + DdqGetDiagnosticRecordBinaryDistribution(hsession.param().abi(), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), topnbinaries, binarystats, statcount).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription: P0, index: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription : super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, index : u32, categorydescription : *mut DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription.into_param().abi(), index, &mut result__).map(|| result__) + DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription.param().abi(), index, &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordCategoryCount(hcategorydescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryCount(hcategorydescription : super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, categorydescriptioncount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordCategoryCount(hcategorydescription.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticRecordCategoryCount(hcategorydescription.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordCount(hrecord: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCount(hrecord : super:: HDIAGNOSTIC_RECORD, recordcount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordCount(hrecord.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticRecordCount(hrecord.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription: P0, index: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription : super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, index : u32, tagdescription : *mut DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription.into_param().abi(), index, &mut result__).map(|| result__) + DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription.param().abi(), index, &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordLocaleTagCount(htagdescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagCount(htagdescription : super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, tagdescriptioncount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTagCount(htagdescription.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticRecordLocaleTagCount(htagdescription.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordLocaleTags(hsession: P0, locale: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTags(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, locale : windows_core::PCWSTR, htagdescription : *mut super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTags(hsession.into_param().abi(), locale.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticRecordLocaleTags(hsession.param().abi(), locale.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordPage(hsession: P0, searchcriteria: *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, offset: u32, pagerecordcount: u32, baserowid: i64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordPage(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, offset : u32, pagerecordcount : u32, baserowid : i64, hrecord : *mut super:: HDIAGNOSTIC_RECORD) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordPage(hsession.into_param().abi(), searchcriteria, offset, pagerecordcount, baserowid, &mut result__).map(|| result__) + DdqGetDiagnosticRecordPage(hsession.param().abi(), searchcriteria, offset, pagerecordcount, baserowid, &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordPayload(hsession: P0, rowid: i64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordPayload(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, rowid : i64, payload : *mut windows_core::PCWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordPayload(hsession.into_param().abi(), rowid, &mut result__).map(|| result__) + DdqGetDiagnosticRecordPayload(hsession.param().abi(), rowid, &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription: P0, index: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, index : u32, producerdescription : *mut DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription.into_param().abi(), index, &mut result__).map(|| result__) + DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription.param().abi(), index, &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducerCategories(hsession: P0, producername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCategories(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, producername : windows_core::PCWSTR, hcategorydescription : *mut super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordProducerCategories(hsession.into_param().abi(), producername.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticRecordProducerCategories(hsession.param().abi(), producername.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducerCount(hproducerdescription: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCount(hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, producerdescriptioncount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordProducerCount(hproducerdescription.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticRecordProducerCount(hproducerdescription.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordProducers(hsession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducers(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, hproducerdescription : *mut super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticRecordProducers(hsession.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticRecordProducers(hsession.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticRecordStats(hsession: P0, searchcriteria: *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, recordcount: *mut u32, minrowid: *mut i64, maxrowid: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordStats(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, recordcount : *mut u32, minrowid : *mut i64, maxrowid : *mut i64) -> windows_core::HRESULT); - DdqGetDiagnosticRecordStats(hsession.into_param().abi(), searchcriteria, recordcount, minrowid, maxrowid).ok() + DdqGetDiagnosticRecordStats(hsession.param().abi(), searchcriteria, recordcount, minrowid, maxrowid).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordSummary(hsession: P0, producernames: &[windows_core::PCWSTR], generalstats: *mut DIAGNOSTIC_DATA_GENERAL_STATS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordSummary(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, producernames : *const windows_core::PCWSTR, producernamecount : u32, generalstats : *mut DIAGNOSTIC_DATA_GENERAL_STATS) -> windows_core::HRESULT); - DdqGetDiagnosticRecordSummary(hsession.into_param().abi(), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), generalstats).ok() + DdqGetDiagnosticRecordSummary(hsession.param().abi(), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), generalstats).ok() } #[inline] pub unsafe fn DdqGetDiagnosticRecordTagDistribution(hsession: P0, producernames: &[windows_core::PCWSTR], tagstats: *mut *mut DIAGNOSTIC_DATA_EVENT_TAG_STATS, statcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordTagDistribution(hsession : super:: 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(hsession.into_param().abi(), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), tagstats, statcount).ok() + DdqGetDiagnosticRecordTagDistribution(hsession.param().abi(), core::mem::transmute(producernames.as_ptr()), producernames.len().try_into().unwrap(), tagstats, statcount).ok() } #[inline] pub unsafe fn DdqGetDiagnosticReport(hsession: P0, reportstoretype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReport(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, hreport : *mut super:: HDIAGNOSTIC_REPORT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticReport(hsession.into_param().abi(), reportstoretype, &mut result__).map(|| result__) + DdqGetDiagnosticReport(hsession.param().abi(), reportstoretype, &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticReportAtIndex(hreport: P0, index: u32, report: *mut DIAGNOSTIC_REPORT_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportAtIndex(hreport : super:: HDIAGNOSTIC_REPORT, index : u32, report : *mut DIAGNOSTIC_REPORT_DATA) -> windows_core::HRESULT); - DdqGetDiagnosticReportAtIndex(hreport.into_param().abi(), index, report).ok() + DdqGetDiagnosticReportAtIndex(hreport.param().abi(), index, report).ok() } #[inline] pub unsafe fn DdqGetDiagnosticReportCount(hreport: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportCount(hreport : super:: HDIAGNOSTIC_REPORT, reportcount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticReportCount(hreport.into_param().abi(), &mut result__).map(|| result__) + DdqGetDiagnosticReportCount(hreport.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetDiagnosticReportStoreReportCount(hsession: P0, reportstoretype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportStoreReportCount(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, reportcount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetDiagnosticReportStoreReportCount(hsession.into_param().abi(), reportstoretype, &mut result__).map(|| result__) + DdqGetDiagnosticReportStoreReportCount(hsession.param().abi(), reportstoretype, &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetSessionAccessLevel(hsession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetSessionAccessLevel(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, accesslevel : *mut DdqAccessLevel) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetSessionAccessLevel(hsession.into_param().abi(), &mut result__).map(|| result__) + DdqGetSessionAccessLevel(hsession.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqGetTranscriptConfiguration(hsession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetTranscriptConfiguration(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, currentconfig : *mut DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DdqGetTranscriptConfiguration(hsession.into_param().abi(), &mut result__).map(|| result__) + DdqGetTranscriptConfiguration(hsession.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqIsDiagnosticRecordSampledIn(hsession: P0, providergroup: *const windows_core::GUID, providerid: Option<*const windows_core::GUID>, providername: P1, eventid: Option<*const u32>, eventname: P2, eventversion: Option<*const u32>, eventkeywords: Option<*const u64>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqIsDiagnosticRecordSampledIn(hsession : super:: 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__ = std::mem::zeroed(); - DdqIsDiagnosticRecordSampledIn(hsession.into_param().abi(), providergroup, core::mem::transmute(providerid.unwrap_or(std::ptr::null())), providername.into_param().abi(), core::mem::transmute(eventid.unwrap_or(std::ptr::null())), eventname.into_param().abi(), core::mem::transmute(eventversion.unwrap_or(std::ptr::null())), core::mem::transmute(eventkeywords.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + DdqIsDiagnosticRecordSampledIn(hsession.param().abi(), providergroup, core::mem::transmute(providerid.unwrap_or(std::ptr::null())), providername.param().abi(), core::mem::transmute(eventid.unwrap_or(std::ptr::null())), eventname.param().abi(), core::mem::transmute(eventversion.unwrap_or(std::ptr::null())), core::mem::transmute(eventkeywords.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn DdqSetTranscriptConfiguration(hsession: P0, desiredconfig: *const DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqSetTranscriptConfiguration(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, desiredconfig : *const DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> windows_core::HRESULT); - DdqSetTranscriptConfiguration(hsession.into_param().abi(), desiredconfig).ok() + DdqSetTranscriptConfiguration(hsession.param().abi(), 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 a80ab2ba6d..53fed1be70 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/DirectoryServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/DirectoryServices/mod.rs @@ -2,49 +2,49 @@ #[inline] pub unsafe fn DSCreateISecurityInfoObject(pwszobjectpath: P0, pwszobjectclass: P1, dwflags: u32, ppsi: *mut Option, pfnreadsd: PFNREADOBJECTSECURITY, pfnwritesd: PFNWRITEOBJECTSECURITY, lpcontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pwszobjectclass.into_param().abi(), dwflags, core::mem::transmute(ppsi), pfnreadsd, pfnwritesd, lpcontext.into_param().abi()).ok() + DSCreateISecurityInfoObject(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), dwflags, core::mem::transmute(ppsi), pfnreadsd, pfnwritesd, lpcontext.param().abi()).ok() } #[cfg(feature = "Win32_Security_Authorization_UI")] #[inline] pub unsafe fn DSCreateISecurityInfoObjectEx(pwszobjectpath: P0, pwszobjectclass: P1, pwszserver: P2, pwszusername: P3, pwszpassword: P4, dwflags: u32, ppsi: *mut Option, pfnreadsd: PFNREADOBJECTSECURITY, pfnwritesd: PFNWRITEOBJECTSECURITY, lpcontext: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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.into_param().abi(), pwszobjectclass.into_param().abi(), pwszserver.into_param().abi(), pwszusername.into_param().abi(), pwszpassword.into_param().abi(), dwflags, core::mem::transmute(ppsi), pfnreadsd, pfnwritesd, lpcontext.into_param().abi()).ok() + DSCreateISecurityInfoObjectEx(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), pwszserver.param().abi(), pwszusername.param().abi(), pwszpassword.param().abi(), dwflags, core::mem::transmute(ppsi), pfnreadsd, pfnwritesd, lpcontext.param().abi()).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn DSCreateSecurityPage(pwszobjectpath: P0, pwszobjectclass: P1, dwflags: u32, phpage: *mut super::super::UI::Controls::HPROPSHEETPAGE, pfnreadsd: PFNREADOBJECTSECURITY, pfnwritesd: PFNWRITEOBJECTSECURITY, lpcontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pwszobjectclass.into_param().abi(), dwflags, phpage, pfnreadsd, pfnwritesd, lpcontext.into_param().abi()).ok() + DSCreateSecurityPage(pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), dwflags, phpage, pfnreadsd, pfnwritesd, lpcontext.param().abi()).ok() } #[inline] pub unsafe fn DSEditSecurity(hwndowner: P0, pwszobjectpath: P1, pwszobjectclass: P2, dwflags: u32, pwszcaption: P3, pfnreadsd: PFNREADOBJECTSECURITY, pfnwritesd: PFNWRITEOBJECTSECURITY, lpcontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwndowner.into_param().abi(), pwszobjectpath.into_param().abi(), pwszobjectclass.into_param().abi(), dwflags, pwszcaption.into_param().abi(), pfnreadsd, pfnwritesd, lpcontext.into_param().abi()).ok() + DSEditSecurity(hwndowner.param().abi(), pwszobjectpath.param().abi(), pwszobjectclass.param().abi(), dwflags, pwszcaption.param().abi(), pfnreadsd, pfnwritesd, lpcontext.param().abi()).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 6ced4b8691..498539b9ee 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn ProtectFileToEnterpriseIdentity(fileorfolderpath: P0, identity: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("efswrt.dll" "system" fn ProtectFileToEnterpriseIdentity(fileorfolderpath : windows_core::PCWSTR, identity : windows_core::PCWSTR) -> windows_core::HRESULT); - ProtectFileToEnterpriseIdentity(fileorfolderpath.into_param().abi(), identity.into_param().abi()).ok() + ProtectFileToEnterpriseIdentity(fileorfolderpath.param().abi(), identity.param().abi()).ok() } #[inline] pub unsafe fn SrpCloseThreadNetworkContext(threadnetworkcontext: *mut HTHREAD_NETWORK_CONTEXT) -> windows_core::Result<()> { @@ -15,11 +15,11 @@ pub unsafe fn SrpCloseThreadNetworkContext(threadnetworkcontext: *mut HTHREAD_NE #[inline] pub unsafe fn SrpCreateThreadNetworkContext(enterpriseid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("srpapi.dll" "system" fn SrpCreateThreadNetworkContext(enterpriseid : windows_core::PCWSTR, threadnetworkcontext : *mut HTHREAD_NETWORK_CONTEXT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SrpCreateThreadNetworkContext(enterpriseid.into_param().abi(), &mut result__).map(|| result__) + SrpCreateThreadNetworkContext(enterpriseid.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SrpDisablePermissiveModeFileEncryption() -> windows_core::Result<()> { @@ -36,27 +36,27 @@ pub unsafe fn SrpDoesPolicyAllowAppExecution(packageid: *const super::super::Sto #[inline] pub unsafe fn SrpEnablePermissiveModeFileEncryption(enterpriseid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("srpapi.dll" "system" fn SrpEnablePermissiveModeFileEncryption(enterpriseid : windows_core::PCWSTR) -> windows_core::HRESULT); - SrpEnablePermissiveModeFileEncryption(enterpriseid.into_param().abi()).ok() + SrpEnablePermissiveModeFileEncryption(enterpriseid.param().abi()).ok() } #[inline] pub unsafe fn SrpGetEnterpriseIds(tokenhandle: P0, numberofbytes: Option<*mut u32>, enterpriseids: Option<*mut windows_core::PCWSTR>, enterpriseidcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tokenhandle.into_param().abi(), core::mem::transmute(numberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(enterpriseids.unwrap_or(std::ptr::null_mut())), enterpriseidcount).ok() + SrpGetEnterpriseIds(tokenhandle.param().abi(), core::mem::transmute(numberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(enterpriseids.unwrap_or(std::ptr::null_mut())), enterpriseidcount).ok() } #[inline] pub unsafe fn SrpGetEnterprisePolicy(tokenhandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("srpapi.dll" "system" fn SrpGetEnterprisePolicy(tokenhandle : super::super::Foundation:: HANDLE, policyflags : *mut ENTERPRISE_DATA_POLICIES) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SrpGetEnterprisePolicy(tokenhandle.into_param().abi(), &mut result__).map(|| result__) + SrpGetEnterprisePolicy(tokenhandle.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SrpHostingInitialize(version: SRPHOSTING_VERSION, r#type: SRPHOSTING_TYPE, pvdata: *const core::ffi::c_void, cbdata: u32) -> windows_core::Result<()> { @@ -71,46 +71,46 @@ pub unsafe fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE) { #[inline] pub unsafe fn SrpIsTokenService(tokenhandle: P0, istokenservice: *mut u8) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("srpapi.dll" "system" fn SrpIsTokenService(tokenhandle : super::super::Foundation:: HANDLE, istokenservice : *mut u8) -> super::super::Foundation:: NTSTATUS); - SrpIsTokenService(tokenhandle.into_param().abi(), istokenservice) + SrpIsTokenService(tokenhandle.param().abi(), istokenservice) } #[inline] pub unsafe fn SrpSetTokenEnterpriseId(tokenhandle: P0, enterpriseid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(tokenhandle.into_param().abi(), enterpriseid.into_param().abi()).ok() + SrpSetTokenEnterpriseId(tokenhandle.param().abi(), enterpriseid.param().abi()).ok() } #[inline] pub unsafe fn UnprotectFile(fileorfolderpath: P0, options: Option<*const FILE_UNPROTECT_OPTIONS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("efswrt.dll" "system" fn UnprotectFile(fileorfolderpath : windows_core::PCWSTR, options : *const FILE_UNPROTECT_OPTIONS) -> windows_core::HRESULT); - UnprotectFile(fileorfolderpath.into_param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null()))).ok() + UnprotectFile(fileorfolderpath.param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null()))).ok() } windows_core::imp::define_interface!(IProtectionPolicyManagerInterop, IProtectionPolicyManagerInterop_Vtbl, 0x4652651d_c1fe_4ba1_9f0a_c0f56596f721); windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop, windows_core::IUnknown, windows_core::IInspectable); impl IProtectionPolicyManagerInterop { pub unsafe fn RequestAccessForWindowAsync(&self, appwindow: P0, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), 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.param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -124,47 +124,47 @@ windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop2, window impl IProtectionPolicyManagerInterop2 { pub unsafe fn RequestAccessForAppWithWindowAsync(&self, appwindow: P0, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), 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.param().abi(), 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: P0, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessWithAuditingInfoForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.into_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.param().abi(), 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: P0, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: P1, messagefromapp: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessWithMessageForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.into_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.param().abi(), 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: P0, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithAuditingInfoForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.into_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.param().abi(), 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: P0, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P1, messagefromapp: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithMessageForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.into_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.param().abi(), 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)] @@ -181,61 +181,61 @@ windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop3, window impl IProtectionPolicyManagerInterop3 { pub unsafe fn RequestAccessWithBehaviorForWindowAsync(&self, appwindow: P0, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: P1, messagefromapp: &windows_core::HSTRING, behavior: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessWithBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(targetidentity), auditinfounk.into_param().abi(), core::mem::transmute_copy(messagefromapp), 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.param().abi(), 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: P0, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P1, messagefromapp: &windows_core::HSTRING, behavior: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessForAppWithBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.into_param().abi(), core::mem::transmute_copy(messagefromapp), 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.param().abi(), 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: P0, sourceitemlistunk: P1, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForAppForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), sourceitemlistunk.into_param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.into_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.param().abi(), 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: P0, sourceitemlistunk: P1, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: P2, messagefromapp: &windows_core::HSTRING, behavior: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), sourceitemlistunk.into_param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfounk.into_param().abi(), core::mem::transmute_copy(messagefromapp), 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.param().abi(), 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: P0, sourceitemlistunk: P1, processid: u32, auditinfounk: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForProcessForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), sourceitemlistunk.into_param().abi(), processid, auditinfounk.into_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.param().abi(), 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: P0, sourceitemlistunk: P1, processid: u32, auditinfounk: P2, messagefromapp: &windows_core::HSTRING, behavior: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), sourceitemlistunk.into_param().abi(), processid, auditinfounk.into_param().abi(), core::mem::transmute_copy(messagefromapp), 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.param().abi(), 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 080ad0082e..9054d268c6 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn EapHostPeerBeginSession(dwflags: u32, eaptype: EAP_METHOD_TYPE, pattributearray: *const EAP_ATTRIBUTES, htokenimpersonateuser: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwflags, core::mem::transmute(eaptype), pattributearray, htokenimpersonateuser.into_param().abi(), dwsizeofconnectiondata, pconnectiondata, dwsizeofuserdata, puserdata, dwmaxsendpacketsize, pconnectionid, func, pcontextdata, psessionid, ppeaperror) + EapHostPeerBeginSession(dwflags, core::mem::transmute(eaptype), pattributearray, htokenimpersonateuser.param().abi(), dwsizeofconnectiondata, pconnectiondata, dwsizeofuserdata, puserdata, dwmaxsendpacketsize, pconnectionid, func, pcontextdata, psessionid, ppeaperror) } #[inline] pub unsafe fn EapHostPeerClearConnection(pconnectionid: *mut windows_core::GUID, ppeaperror: *mut *mut EAP_ERROR) -> u32 { @@ -21,19 +21,19 @@ pub unsafe fn EapHostPeerConfigBlob2Xml(dwflags: u32, eapmethodtype: EAP_METHOD_ #[inline] pub unsafe fn EapHostPeerConfigXml2Blob(dwflags: u32, pconfigdoc: P0, pdwsizeofconfigout: *mut u32, ppconfigout: *mut *mut u8, peapmethodtype: *mut EAP_METHOD_TYPE, ppeaperror: *mut *mut EAP_ERROR) -> u32 where - P0: windows_core::IntoParam, + P0: 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(dwflags, pconfigdoc.into_param().abi(), pdwsizeofconfigout, ppconfigout, peapmethodtype, ppeaperror) + EapHostPeerConfigXml2Blob(dwflags, pconfigdoc.param().abi(), pdwsizeofconfigout, ppconfigout, peapmethodtype, ppeaperror) } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] #[inline] pub unsafe fn EapHostPeerCredentialsXml2Blob(dwflags: u32, pcredentialsdoc: P0, pconfigin: &[u8], pdwsizeofcredentialsout: *mut u32, ppcredentialsout: *mut *mut u8, peapmethodtype: *mut EAP_METHOD_TYPE, ppeaperror: *mut *mut EAP_ERROR) -> u32 where - P0: windows_core::IntoParam, + P0: 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(dwflags, pcredentialsdoc.into_param().abi(), pconfigin.len().try_into().unwrap(), core::mem::transmute(pconfigin.as_ptr()), pdwsizeofcredentialsout, ppcredentialsout, peapmethodtype, ppeaperror) + EapHostPeerCredentialsXml2Blob(dwflags, pcredentialsdoc.param().abi(), pconfigin.len().try_into().unwrap(), core::mem::transmute(pconfigin.as_ptr()), pdwsizeofcredentialsout, ppcredentialsout, peapmethodtype, ppeaperror) } #[inline] pub unsafe fn EapHostPeerEndSession(sessionhandle: u32, ppeaperror: *mut *mut EAP_ERROR) -> u32 { @@ -73,26 +73,26 @@ pub unsafe fn EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedc #[inline] pub unsafe fn EapHostPeerGetEncryptedPassword(dwsizeofpassword: u32, szpassword: P0, ppszencpassword: *mut windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetEncryptedPassword(dwsizeofpassword : u32, szpassword : windows_core::PCWSTR, ppszencpassword : *mut windows_core::PWSTR) -> u32); - EapHostPeerGetEncryptedPassword(dwsizeofpassword, szpassword.into_param().abi(), ppszencpassword) + EapHostPeerGetEncryptedPassword(dwsizeofpassword, szpassword.param().abi(), ppszencpassword) } #[inline] pub unsafe fn EapHostPeerGetIdentity(dwversion: u32, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, pconnectiondata: &[u8], puserdata: Option<&[u8]>, htokenimpersonateuser: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(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())), htokenimpersonateuser.into_param().abi(), pfinvokeui, pdwsizeofuserdataout, ppuserdataout, ppwszidentity, ppeaperror, ppvreserved) + EapHostPeerGetIdentity(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())), htokenimpersonateuser.param().abi(), pfinvokeui, pdwsizeofuserdataout, ppuserdataout, ppwszidentity, ppeaperror, ppvreserved) } #[inline] pub unsafe fn EapHostPeerGetMethodProperties(dwversion: u32, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, huserimpersonationtoken: P0, pbeapconndata: &[u8], pbuserdata: &[u8], pmethodpropertyarray: *mut EAP_METHOD_PROPERTY_ARRAY, ppeaperror: *mut *mut EAP_ERROR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwversion, dwflags, core::mem::transmute(eapmethodtype), huserimpersonationtoken.into_param().abi(), pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), pbuserdata.len().try_into().unwrap(), core::mem::transmute(pbuserdata.as_ptr()), pmethodpropertyarray, ppeaperror) + EapHostPeerGetMethodProperties(dwversion, dwflags, core::mem::transmute(eapmethodtype), huserimpersonationtoken.param().abi(), pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), pbuserdata.len().try_into().unwrap(), core::mem::transmute(pbuserdata.as_ptr()), pmethodpropertyarray, ppeaperror) } #[inline] pub unsafe fn EapHostPeerGetMethods(peapmethodinfoarray: *mut EAP_METHOD_INFO_ARRAY, ppeaperror: *mut *mut EAP_ERROR) -> u32 { @@ -127,26 +127,26 @@ pub unsafe fn EapHostPeerInitialize() -> u32 { #[inline] pub unsafe fn EapHostPeerInvokeConfigUI(hwndparent: P0, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, pconfigin: Option<&[u8]>, pdwsizeofconfigout: *mut u32, ppconfigout: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndparent.into_param().abi(), 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())), pdwsizeofconfigout, ppconfigout, ppeaperror) + EapHostPeerInvokeConfigUI(hwndparent.param().abi(), 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())), pdwsizeofconfigout, ppconfigout, ppeaperror) } #[inline] pub unsafe fn EapHostPeerInvokeIdentityUI(dwversion: u32, eapmethodtype: EAP_METHOD_TYPE, dwflags: u32, hwndparent: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwversion, core::mem::transmute(eapmethodtype), dwflags, hwndparent.into_param().abi(), 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())), pdwsizeofuserdataout, ppuserdataout, ppwszidentity, ppeaperror, ppvreserved) + EapHostPeerInvokeIdentityUI(dwversion, core::mem::transmute(eapmethodtype), dwflags, hwndparent.param().abi(), 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())), pdwsizeofuserdataout, ppuserdataout, ppwszidentity, ppeaperror, ppvreserved) } #[inline] pub unsafe fn EapHostPeerInvokeInteractiveUI(hwndparent: P0, puicontextdata: Option<&[u8]>, pdwsizeofdatafrominteractiveui: *mut u32, ppdatafrominteractiveui: *mut *mut u8, ppeaperror: *mut *mut EAP_ERROR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndparent.into_param().abi(), 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())), pdwsizeofdatafrominteractiveui, ppdatafrominteractiveui, ppeaperror) + EapHostPeerInvokeInteractiveUI(hwndparent.param().abi(), 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())), pdwsizeofdatafrominteractiveui, ppdatafrominteractiveui, ppeaperror) } #[inline] pub unsafe fn EapHostPeerProcessReceivedPacket(sessionhandle: u32, cbreceivepacket: u32, preceivepacket: *const u8, peapoutput: *mut EapHostPeerResponseAction, ppeaperror: *mut *mut EAP_ERROR) -> u32 { @@ -156,10 +156,10 @@ pub unsafe fn EapHostPeerProcessReceivedPacket(sessionhandle: u32, cbreceivepack #[inline] pub unsafe fn EapHostPeerQueryCredentialInputFields(huserimpersonationtoken: P0, eapmethodtype: EAP_METHOD_TYPE, dwflags: u32, pbeapconndata: &[u8], peapconfiginputfieldarray: *mut EAP_CONFIG_INPUT_FIELD_ARRAY, ppeaperror: *mut *mut EAP_ERROR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(huserimpersonationtoken.into_param().abi(), core::mem::transmute(eapmethodtype), dwflags, pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), peapconfiginputfieldarray, ppeaperror) + EapHostPeerQueryCredentialInputFields(huserimpersonationtoken.param().abi(), core::mem::transmute(eapmethodtype), dwflags, pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), peapconfiginputfieldarray, 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 { @@ -174,10 +174,10 @@ pub unsafe fn EapHostPeerQueryUIBlobFromInteractiveUIInputFields(dwversion: u32, #[inline] pub unsafe fn EapHostPeerQueryUserBlobFromCredentialInputFields(huserimpersonationtoken: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(huserimpersonationtoken.into_param().abi(), core::mem::transmute(eapmethodtype), dwflags, pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), peapconfiginputfieldarray, pdwuserblobsize, ppbuserblob, ppeaperror) + EapHostPeerQueryUserBlobFromCredentialInputFields(huserimpersonationtoken.param().abi(), core::mem::transmute(eapmethodtype), dwflags, pbeapconndata.len().try_into().unwrap(), core::mem::transmute(pbeapconndata.as_ptr()), peapconfiginputfieldarray, pdwuserblobsize, ppbuserblob, ppeaperror) } #[inline] pub unsafe fn EapHostPeerSetResponseAttributes(sessionhandle: u32, pattribs: *const EAP_ATTRIBUTES, peapoutput: *mut EapHostPeerResponseAction, ppeaperror: *mut *mut EAP_ERROR) -> u32 { @@ -199,19 +199,19 @@ windows_core::imp::interface_hierarchy!(IAccountingProviderConfig, windows_core: impl IAccountingProviderConfig { pub unsafe fn Initialize(&self, pszmachinename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachinename.into_param().abi(), &mut result__).map(|| result__) + (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), uconnectionparam).ok() } pub unsafe fn Configure(&self, uconnectionparam: usize, hwnd: P0, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), uconnectionparam, hwnd.into_param().abi(), dwflags, ureserved1, ureserved2).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), uconnectionparam, hwnd.param().abi(), 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), uconnectionparam, ureserved1, ureserved2).ok() @@ -234,19 +234,19 @@ windows_core::imp::interface_hierarchy!(IAuthenticationProviderConfig, windows_c impl IAuthenticationProviderConfig { pub unsafe fn Initialize(&self, pszmachinename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachinename.into_param().abi(), &mut result__).map(|| result__) + (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), uconnectionparam).ok() } pub unsafe fn Configure(&self, uconnectionparam: usize, hwnd: P0, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), uconnectionparam, hwnd.into_param().abi(), dwflags, ureserved1, ureserved2).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), uconnectionparam, hwnd.param().abi(), 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), uconnectionparam, ureserved1, ureserved2).ok() @@ -269,31 +269,31 @@ windows_core::imp::interface_hierarchy!(IEAPProviderConfig, windows_core::IUnkno impl IEAPProviderConfig { pub unsafe fn Initialize(&self, pszmachinename: P0, dweaptypeid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachinename.into_param().abi(), 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), dweaptypeid, uconnectionparam).ok() } pub unsafe fn ServerInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: P0, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.into_param().abi(), ureserved1, ureserved2).ok() + (windows_core::Interface::vtable(self).ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.param().abi(), ureserved1, ureserved2).ok() } pub unsafe fn RouterInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: P0, dwflags: u32, pconnectiondatain: &[u8], ppconnectiondataout: *mut *mut u8, pdwsizeofconnectiondataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.into_param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), ppconnectiondataout, pdwsizeofconnectiondataout).ok() + (windows_core::Interface::vtable(self).RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), ppconnectiondataout, pdwsizeofconnectiondataout).ok() } pub unsafe fn RouterInvokeCredentialsUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: P0, dwflags: u32, pconnectiondatain: &[u8], puserdatain: &[u8], ppuserdataout: *mut *mut u8, pdwsizeofuserdataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.into_param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), ppuserdataout, pdwsizeofuserdataout).ok() + (windows_core::Interface::vtable(self).RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), ppuserdataout, pdwsizeofuserdataout).ok() } } #[repr(C)] @@ -310,37 +310,37 @@ windows_core::imp::interface_hierarchy!(IEAPProviderConfig2, windows_core::IUnkn impl IEAPProviderConfig2 { pub unsafe fn Initialize(&self, pszmachinename: P0, dweaptypeid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pszmachinename.into_param().abi(), dweaptypeid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.Uninitialize)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam).ok() } pub unsafe fn ServerInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: P0, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.into_param().abi(), ureserved1, ureserved2).ok() + (windows_core::Interface::vtable(self).base__.ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.param().abi(), ureserved1, ureserved2).ok() } pub unsafe fn RouterInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: P0, dwflags: u32, pconnectiondatain: &[u8], ppconnectiondataout: *mut *mut u8, pdwsizeofconnectiondataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.into_param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), ppconnectiondataout, pdwsizeofconnectiondataout).ok() + (windows_core::Interface::vtable(self).base__.RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), ppconnectiondataout, pdwsizeofconnectiondataout).ok() } pub unsafe fn RouterInvokeCredentialsUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: P0, dwflags: u32, pconnectiondatain: &[u8], puserdatain: &[u8], ppuserdataout: *mut *mut u8, pdwsizeofuserdataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.into_param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), ppuserdataout, pdwsizeofuserdataout).ok() + (windows_core::Interface::vtable(self).base__.RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), ppuserdataout, pdwsizeofuserdataout).ok() } pub unsafe fn ServerInvokeConfigUI2(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: P0, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ServerInvokeConfigUI2)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.into_param().abi(), pconfigdatain, dwsizeofconfigdatain, ppconfigdataout, pdwsizeofconfigdataout).ok() + (windows_core::Interface::vtable(self).ServerInvokeConfigUI2)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.param().abi(), pconfigdatain, dwsizeofconfigdatain, ppconfigdataout, 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), dweaptypeid, ppconfigdataout, pdwsizeofconfigdataout).ok() @@ -357,46 +357,46 @@ windows_core::imp::interface_hierarchy!(IEAPProviderConfig3, windows_core::IUnkn impl IEAPProviderConfig3 { pub unsafe fn Initialize(&self, pszmachinename: P0, dweaptypeid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), pszmachinename.into_param().abi(), dweaptypeid, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.Uninitialize)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam).ok() } pub unsafe fn ServerInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: P0, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.into_param().abi(), ureserved1, ureserved2).ok() + (windows_core::Interface::vtable(self).base__.base__.ServerInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.param().abi(), ureserved1, ureserved2).ok() } pub unsafe fn RouterInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: P0, dwflags: u32, pconnectiondatain: &[u8], ppconnectiondataout: *mut *mut u8, pdwsizeofconnectiondataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.into_param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), ppconnectiondataout, pdwsizeofconnectiondataout).ok() + (windows_core::Interface::vtable(self).base__.base__.RouterInvokeConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), ppconnectiondataout, pdwsizeofconnectiondataout).ok() } pub unsafe fn RouterInvokeCredentialsUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwndparent: P0, dwflags: u32, pconnectiondatain: &[u8], puserdatain: &[u8], ppuserdataout: *mut *mut u8, pdwsizeofuserdataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.into_param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), ppuserdataout, pdwsizeofuserdataout).ok() + (windows_core::Interface::vtable(self).base__.base__.RouterInvokeCredentialsUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwndparent.param().abi(), dwflags, core::mem::transmute(pconnectiondatain.as_ptr()), pconnectiondatain.len().try_into().unwrap(), core::mem::transmute(puserdatain.as_ptr()), puserdatain.len().try_into().unwrap(), ppuserdataout, pdwsizeofuserdataout).ok() } pub unsafe fn ServerInvokeConfigUI2(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: P0, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ServerInvokeConfigUI2)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.into_param().abi(), pconfigdatain, dwsizeofconfigdatain, ppconfigdataout, pdwsizeofconfigdataout).ok() + (windows_core::Interface::vtable(self).base__.ServerInvokeConfigUI2)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.param().abi(), pconfigdatain, dwsizeofconfigdatain, ppconfigdataout, pdwsizeofconfigdataout).ok() } pub unsafe fn GetGlobalConfig(&self, dweaptypeid: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetGlobalConfig)(windows_core::Interface::as_raw(self), dweaptypeid, ppconfigdataout, pdwsizeofconfigdataout).ok() } pub unsafe fn ServerInvokeCertificateConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: P0, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32, ureserved: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ServerInvokeCertificateConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.into_param().abi(), pconfigdatain, dwsizeofconfigdatain, ppconfigdataout, pdwsizeofconfigdataout, ureserved).ok() + (windows_core::Interface::vtable(self).ServerInvokeCertificateConfigUI)(windows_core::Interface::as_raw(self), dweaptypeid, uconnectionparam, hwnd.param().abi(), pconfigdatain, dwsizeofconfigdatain, ppconfigdataout, pdwsizeofconfigdataout, ureserved).ok() } } #[repr(C)] @@ -409,19 +409,19 @@ windows_core::imp::interface_hierarchy!(IRouterProtocolConfig, windows_core::IUn impl IRouterProtocolConfig { pub unsafe fn AddProtocol(&self, pszmachinename: P0, dwtransportid: u32, dwprotocolid: u32, hwnd: P1, dwflags: u32, prouter: P2, ureserved1: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddProtocol)(windows_core::Interface::as_raw(self), pszmachinename.into_param().abi(), dwtransportid, dwprotocolid, hwnd.into_param().abi(), dwflags, prouter.into_param().abi(), ureserved1).ok() + (windows_core::Interface::vtable(self).AddProtocol)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), dwtransportid, dwprotocolid, hwnd.param().abi(), dwflags, prouter.param().abi(), ureserved1).ok() } pub unsafe fn RemoveProtocol(&self, pszmachinename: P0, dwtransportid: u32, dwprotocolid: u32, hwnd: P1, dwflags: u32, prouter: P2, ureserved1: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveProtocol)(windows_core::Interface::as_raw(self), pszmachinename.into_param().abi(), dwtransportid, dwprotocolid, hwnd.into_param().abi(), dwflags, prouter.into_param().abi(), ureserved1).ok() + (windows_core::Interface::vtable(self).RemoveProtocol)(windows_core::Interface::as_raw(self), pszmachinename.param().abi(), dwtransportid, dwprotocolid, hwnd.param().abi(), 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 8bcea0592c..3abdefd4c2 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs @@ -1,58 +1,58 @@ #[inline] pub unsafe fn CreateAppContainerProfile(pszappcontainername: P0, pszdisplayname: P1, pszdescription: P2, pcapabilities: Option<&[super::SID_AND_ATTRIBUTES]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn CreateAppContainerProfile(pszappcontainername : windows_core::PCWSTR, pszdisplayname : windows_core::PCWSTR, pszdescription : windows_core::PCWSTR, pcapabilities : *const super:: SID_AND_ATTRIBUTES, dwcapabilitycount : u32, ppsidappcontainersid : *mut super::super::Foundation:: PSID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateAppContainerProfile(pszappcontainername.into_param().abi(), pszdisplayname.into_param().abi(), pszdescription.into_param().abi(), core::mem::transmute(pcapabilities.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcapabilities.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| result__) + CreateAppContainerProfile(pszappcontainername.param().abi(), pszdisplayname.param().abi(), pszdescription.param().abi(), core::mem::transmute(pcapabilities.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcapabilities.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| result__) } #[inline] pub unsafe fn DeleteAppContainerProfile(pszappcontainername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn DeleteAppContainerProfile(pszappcontainername : windows_core::PCWSTR) -> windows_core::HRESULT); - DeleteAppContainerProfile(pszappcontainername.into_param().abi()).ok() + DeleteAppContainerProfile(pszappcontainername.param().abi()).ok() } #[inline] pub unsafe fn DeriveAppContainerSidFromAppContainerName(pszappcontainername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn DeriveAppContainerSidFromAppContainerName(pszappcontainername : windows_core::PCWSTR, ppsidappcontainersid : *mut super::super::Foundation:: PSID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DeriveAppContainerSidFromAppContainerName(pszappcontainername.into_param().abi(), &mut result__).map(|| result__) + DeriveAppContainerSidFromAppContainerName(pszappcontainername.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid: P0, pszrestrictedappcontainername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid : super::super::Foundation:: PSID, pszrestrictedappcontainername : windows_core::PCWSTR, ppsidrestrictedappcontainersid : *mut super::super::Foundation:: PSID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid.into_param().abi(), pszrestrictedappcontainername.into_param().abi(), &mut result__).map(|| result__) + DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid.param().abi(), pszrestrictedappcontainername.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetAppContainerFolderPath(pszappcontainersid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GetAppContainerFolderPath(pszappcontainersid : windows_core::PCWSTR, ppszpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetAppContainerFolderPath(pszappcontainersid.into_param().abi(), &mut result__).map(|| result__) + GetAppContainerFolderPath(pszappcontainersid.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetAppContainerNamedObjectPath(token: P0, appcontainersid: P1, objectpath: Option<&mut [u16]>, returnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetAppContainerNamedObjectPath(token : super::super::Foundation:: HANDLE, appcontainersid : super::super::Foundation:: PSID, objectpathlength : u32, objectpath : windows_core::PWSTR, returnlength : *mut u32) -> super::super::Foundation:: BOOL); - GetAppContainerNamedObjectPath(token.into_param().abi(), appcontainersid.into_param().abi(), objectpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(objectpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnlength).ok() + GetAppContainerNamedObjectPath(token.param().abi(), appcontainersid.param().abi(), objectpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(objectpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnlength).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -90,10 +90,10 @@ windows_core::imp::interface_hierarchy!(IIsolatedAppLauncher, windows_core::IUnk impl IIsolatedAppLauncher { pub unsafe fn Launch(&self, appusermodelid: P0, arguments: P1, telemetryparameters: *const IsolatedAppLauncherTelemetryParameters) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Launch)(windows_core::Interface::as_raw(self), appusermodelid.into_param().abi(), arguments.into_param().abi(), telemetryparameters).ok() + (windows_core::Interface::vtable(self).Launch)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), arguments.param().abi(), telemetryparameters).ok() } } #[repr(C)] @@ -106,19 +106,19 @@ windows_core::imp::interface_hierarchy!(IIsolatedProcessLauncher, windows_core:: impl IIsolatedProcessLauncher { pub unsafe fn LaunchProcess(&self, process: P0, arguments: P1, workingdirectory: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchProcess)(windows_core::Interface::as_raw(self), process.into_param().abi(), arguments.into_param().abi(), workingdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LaunchProcess)(windows_core::Interface::as_raw(self), process.param().abi(), arguments.param().abi(), workingdirectory.param().abi()).ok() } pub unsafe fn ShareDirectory(&self, hostpath: P0, containerpath: P1, readonly: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ShareDirectory)(windows_core::Interface::as_raw(self), hostpath.into_param().abi(), containerpath.into_param().abi(), readonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShareDirectory)(windows_core::Interface::as_raw(self), hostpath.param().abi(), containerpath.param().abi(), readonly.param().abi()).ok() } pub unsafe fn GetContainerGuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -146,19 +146,19 @@ windows_core::imp::interface_hierarchy!(IIsolatedProcessLauncher2, windows_core: impl IIsolatedProcessLauncher2 { pub unsafe fn LaunchProcess(&self, process: P0, arguments: P1, workingdirectory: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LaunchProcess)(windows_core::Interface::as_raw(self), process.into_param().abi(), arguments.into_param().abi(), workingdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LaunchProcess)(windows_core::Interface::as_raw(self), process.param().abi(), arguments.param().abi(), workingdirectory.param().abi()).ok() } pub unsafe fn ShareDirectory(&self, hostpath: P0, containerpath: P1, readonly: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShareDirectory)(windows_core::Interface::as_raw(self), hostpath.into_param().abi(), containerpath.into_param().abi(), readonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ShareDirectory)(windows_core::Interface::as_raw(self), hostpath.param().abi(), containerpath.param().abi(), readonly.param().abi()).ok() } pub unsafe fn GetContainerGuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -173,11 +173,11 @@ impl IIsolatedProcessLauncher2 { } pub unsafe fn LaunchProcess2(&self, process: P0, arguments: P1, workingdirectory: P2, correlationguid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchProcess2)(windows_core::Interface::as_raw(self), process.into_param().abi(), arguments.into_param().abi(), workingdirectory.into_param().abi(), 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 7321ebceca..5c9535eb94 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs @@ -1,19 +1,19 @@ #[inline] pub unsafe fn RegisterLicenseKeyWithExpiration(licensekey: P0, validityindays: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("licenseprotection.dll" "system" fn RegisterLicenseKeyWithExpiration(licensekey : windows_core::PCWSTR, validityindays : u32, status : *mut LicenseProtectionStatus) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - RegisterLicenseKeyWithExpiration(licensekey.into_param().abi(), validityindays, &mut result__).map(|| result__) + RegisterLicenseKeyWithExpiration(licensekey.param().abi(), validityindays, &mut result__).map(|| 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("licenseprotection.dll" "system" fn ValidateLicenseKeyProtection(licensekey : windows_core::PCWSTR, notvalidbefore : *mut super::super::Foundation:: FILETIME, notvalidafter : *mut super::super::Foundation:: FILETIME, status : *mut LicenseProtectionStatus) -> windows_core::HRESULT); - ValidateLicenseKeyProtection(licensekey.into_param().abi(), notvalidbefore, notvalidafter, status).ok() + ValidateLicenseKeyProtection(licensekey.param().abi(), notvalidbefore, notvalidafter, status).ok() } pub const LicenseKeyAlreadyExists: LicenseProtectionStatus = LicenseProtectionStatus(4i32); pub const LicenseKeyCorrupted: LicenseProtectionStatus = LicenseProtectionStatus(3i32); 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 d059884256..2d0e76f7c6 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs @@ -3,36 +3,19 @@ windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager, windows_cor impl ITpmVirtualSmartCardManager { pub unsafe fn CreateVirtualSmartCard(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], fgenerate: P1, pstatuscallback: P2, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVirtualSmartCard)( - windows_core::Interface::as_raw(self), - pszfriendlyname.into_param().abi(), - badminalgid, - core::mem::transmute(pbadminkey.as_ptr()), - pbadminkey.len().try_into().unwrap(), - core::mem::transmute(pbadminkcv.as_ptr()), - pbadminkcv.len().try_into().unwrap(), - core::mem::transmute(pbpuk.as_ptr()), - pbpuk.len().try_into().unwrap(), - core::mem::transmute(pbpin.as_ptr()), - pbpin.len().try_into().unwrap(), - fgenerate.into_param().abi(), - pstatuscallback.into_param().abi(), - ppszinstanceid, - pfneedreboot, - ) - .ok() + (windows_core::Interface::vtable(self).CreateVirtualSmartCard)(windows_core::Interface::as_raw(self), pszfriendlyname.param().abi(), badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), core::mem::transmute(pbadminkcv.as_ptr()), pbadminkcv.len().try_into().unwrap(), core::mem::transmute(pbpuk.as_ptr()), pbpuk.len().try_into().unwrap(), core::mem::transmute(pbpin.as_ptr()), pbpin.len().try_into().unwrap(), fgenerate.param().abi(), pstatuscallback.param().abi(), ppszinstanceid, pfneedreboot).ok() } pub unsafe fn DestroyVirtualSmartCard(&self, pszinstanceid: P0, pstatuscallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DestroyVirtualSmartCard)(windows_core::Interface::as_raw(self), pszinstanceid.into_param().abi(), pstatuscallback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DestroyVirtualSmartCard)(windows_core::Interface::as_raw(self), pszinstanceid.param().abi(), pstatuscallback.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -46,46 +29,29 @@ windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager2, windows_co impl ITpmVirtualSmartCardManager2 { pub unsafe fn CreateVirtualSmartCard(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], fgenerate: P1, pstatuscallback: P2, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateVirtualSmartCard)( - windows_core::Interface::as_raw(self), - pszfriendlyname.into_param().abi(), - badminalgid, - core::mem::transmute(pbadminkey.as_ptr()), - pbadminkey.len().try_into().unwrap(), - core::mem::transmute(pbadminkcv.as_ptr()), - pbadminkcv.len().try_into().unwrap(), - core::mem::transmute(pbpuk.as_ptr()), - pbpuk.len().try_into().unwrap(), - core::mem::transmute(pbpin.as_ptr()), - pbpin.len().try_into().unwrap(), - fgenerate.into_param().abi(), - pstatuscallback.into_param().abi(), - ppszinstanceid, - pfneedreboot, - ) - .ok() + (windows_core::Interface::vtable(self).base__.CreateVirtualSmartCard)(windows_core::Interface::as_raw(self), pszfriendlyname.param().abi(), badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), core::mem::transmute(pbadminkcv.as_ptr()), pbadminkcv.len().try_into().unwrap(), core::mem::transmute(pbpuk.as_ptr()), pbpuk.len().try_into().unwrap(), core::mem::transmute(pbpin.as_ptr()), pbpin.len().try_into().unwrap(), fgenerate.param().abi(), pstatuscallback.param().abi(), ppszinstanceid, pfneedreboot).ok() } pub unsafe fn DestroyVirtualSmartCard(&self, pszinstanceid: P0, pstatuscallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.DestroyVirtualSmartCard)(windows_core::Interface::as_raw(self), pszinstanceid.into_param().abi(), pstatuscallback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.DestroyVirtualSmartCard)(windows_core::Interface::as_raw(self), pszinstanceid.param().abi(), pstatuscallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateVirtualSmartCardWithPinPolicy(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], pbpinpolicy: &[u8], fgenerate: P1, pstatuscallback: P2, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { (windows_core::Interface::vtable(self).CreateVirtualSmartCardWithPinPolicy)( windows_core::Interface::as_raw(self), - pszfriendlyname.into_param().abi(), + pszfriendlyname.param().abi(), badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), @@ -97,8 +63,8 @@ impl ITpmVirtualSmartCardManager2 { pbpin.len().try_into().unwrap(), core::mem::transmute(pbpinpolicy.as_ptr()), pbpinpolicy.len().try_into().unwrap(), - fgenerate.into_param().abi(), - pstatuscallback.into_param().abi(), + fgenerate.param().abi(), + pstatuscallback.param().abi(), ppszinstanceid, pfneedreboot, ) @@ -115,46 +81,29 @@ windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager3, windows_co impl ITpmVirtualSmartCardManager3 { pub unsafe fn CreateVirtualSmartCard(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], fgenerate: P1, pstatuscallback: P2, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CreateVirtualSmartCard)( - windows_core::Interface::as_raw(self), - pszfriendlyname.into_param().abi(), - badminalgid, - core::mem::transmute(pbadminkey.as_ptr()), - pbadminkey.len().try_into().unwrap(), - core::mem::transmute(pbadminkcv.as_ptr()), - pbadminkcv.len().try_into().unwrap(), - core::mem::transmute(pbpuk.as_ptr()), - pbpuk.len().try_into().unwrap(), - core::mem::transmute(pbpin.as_ptr()), - pbpin.len().try_into().unwrap(), - fgenerate.into_param().abi(), - pstatuscallback.into_param().abi(), - ppszinstanceid, - pfneedreboot, - ) - .ok() + (windows_core::Interface::vtable(self).base__.base__.CreateVirtualSmartCard)(windows_core::Interface::as_raw(self), pszfriendlyname.param().abi(), badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), core::mem::transmute(pbadminkcv.as_ptr()), pbadminkcv.len().try_into().unwrap(), core::mem::transmute(pbpuk.as_ptr()), pbpuk.len().try_into().unwrap(), core::mem::transmute(pbpin.as_ptr()), pbpin.len().try_into().unwrap(), fgenerate.param().abi(), pstatuscallback.param().abi(), ppszinstanceid, pfneedreboot).ok() } pub unsafe fn DestroyVirtualSmartCard(&self, pszinstanceid: P0, pstatuscallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.DestroyVirtualSmartCard)(windows_core::Interface::as_raw(self), pszinstanceid.into_param().abi(), pstatuscallback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.DestroyVirtualSmartCard)(windows_core::Interface::as_raw(self), pszinstanceid.param().abi(), pstatuscallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CreateVirtualSmartCardWithPinPolicy(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], pbpinpolicy: &[u8], fgenerate: P1, pstatuscallback: P2, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { (windows_core::Interface::vtable(self).base__.CreateVirtualSmartCardWithPinPolicy)( windows_core::Interface::as_raw(self), - pszfriendlyname.into_param().abi(), + pszfriendlyname.param().abi(), badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), @@ -166,8 +115,8 @@ impl ITpmVirtualSmartCardManager3 { pbpin.len().try_into().unwrap(), core::mem::transmute(pbpinpolicy.as_ptr()), pbpinpolicy.len().try_into().unwrap(), - fgenerate.into_param().abi(), - pstatuscallback.into_param().abi(), + fgenerate.param().abi(), + pstatuscallback.param().abi(), ppszinstanceid, pfneedreboot, ) @@ -175,14 +124,14 @@ impl ITpmVirtualSmartCardManager3 { } pub unsafe fn CreateVirtualSmartCardWithAttestation(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], pbpinpolicy: &[u8], attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: P1, pstatuscallback: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(self).CreateVirtualSmartCardWithAttestation)( windows_core::Interface::as_raw(self), - pszfriendlyname.into_param().abi(), + pszfriendlyname.param().abi(), badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), @@ -195,8 +144,8 @@ impl ITpmVirtualSmartCardManager3 { core::mem::transmute(pbpinpolicy.as_ptr()), pbpinpolicy.len().try_into().unwrap(), attestationtype, - fgenerate.into_param().abi(), - pstatuscallback.into_param().abi(), + fgenerate.param().abi(), + pstatuscallback.param().abi(), &mut result__, ) .map(|| result__) 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 001e367bfb..e49aed47e1 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn OpenPersonalTrustDBDialog(hwndparent: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn OpenPersonalTrustDBDialog(hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - OpenPersonalTrustDBDialog(hwndparent.into_param().abi()) + OpenPersonalTrustDBDialog(hwndparent.param().abi()) } #[inline] pub unsafe fn OpenPersonalTrustDBDialogEx(hwndparent: P0, dwflags: u32, pvreserved: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndparent.into_param().abi(), dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null_mut()))) + OpenPersonalTrustDBDialogEx(hwndparent.param().abi(), dwflags, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null_mut()))) } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] #[inline] @@ -42,36 +42,36 @@ pub unsafe fn WTHelperGetProvPrivateDataFromChain(pprovdata: *mut CRYPT_PROVIDER #[inline] pub unsafe fn WTHelperGetProvSignerFromChain(pprovdata: *mut CRYPT_PROVIDER_DATA, idxsigner: u32, fcountersigner: P0, idxcountersigner: u32) -> *mut CRYPT_PROVIDER_SGNR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(pprovdata, idxsigner, fcountersigner.into_param().abi(), idxcountersigner) + WTHelperGetProvSignerFromChain(pprovdata, idxsigner, fcountersigner.param().abi(), idxcountersigner) } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] #[inline] pub unsafe fn WTHelperProvDataFromStateData(hstatedata: P0) -> *mut CRYPT_PROVIDER_DATA where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn WTHelperProvDataFromStateData(hstatedata : super::super::Foundation:: HANDLE) -> *mut CRYPT_PROVIDER_DATA); - WTHelperProvDataFromStateData(hstatedata.into_param().abi()) + WTHelperProvDataFromStateData(hstatedata.param().abi()) } #[inline] pub unsafe fn WinVerifyTrust(hwnd: P0, pgactionid: *mut windows_core::GUID, pwvtdata: *mut core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), pgactionid, pwvtdata) + WinVerifyTrust(hwnd.param().abi(), pgactionid, pwvtdata) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn WinVerifyTrustEx(hwnd: P0, pgactionid: *mut windows_core::GUID, pwintrustdata: *mut WINTRUST_DATA) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn WinVerifyTrustEx(hwnd : super::super::Foundation:: HWND, pgactionid : *mut windows_core::GUID, pwintrustdata : *mut WINTRUST_DATA) -> i32); - WinVerifyTrustEx(hwnd.into_param().abi(), pgactionid, pwintrustdata) + WinVerifyTrustEx(hwnd.param().abi(), pgactionid, pwintrustdata) } #[inline] pub unsafe fn WintrustAddActionID(pgactionid: *const windows_core::GUID, fdwflags: u32, psprovinfo: *const CRYPT_REGISTER_ACTIONID) -> windows_core::Result<()> { @@ -81,18 +81,18 @@ pub unsafe fn WintrustAddActionID(pgactionid: *const windows_core::GUID, fdwflag #[inline] pub unsafe fn WintrustAddDefaultForUsage(pszusageoid: P0, psdefusage: *const CRYPT_PROVIDER_REGDEFUSAGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), psdefusage).ok() + WintrustAddDefaultForUsage(pszusageoid.param().abi(), psdefusage).ok() } #[inline] pub unsafe fn WintrustGetDefaultForUsage(dwaction: WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION, pszusageoid: P0, psusage: *mut CRYPT_PROVIDER_DEFUSAGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwaction, pszusageoid.into_param().abi(), psusage).ok() + WintrustGetDefaultForUsage(dwaction, pszusageoid.param().abi(), psusage).ok() } #[inline] pub unsafe fn WintrustGetRegPolicyFlags(pdwpolicyflags: *mut WINTRUST_POLICY_FLAGS) { @@ -113,10 +113,10 @@ pub unsafe fn WintrustRemoveActionID(pgactionid: *const windows_core::GUID) -> s #[inline] pub unsafe fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wintrust.dll" "system" fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes : super::super::Foundation:: BOOL)); - WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes.into_param().abi()) + WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes.param().abi()) } #[inline] pub unsafe fn WintrustSetRegPolicyFlags(dwpolicyflags: WINTRUST_POLICY_FLAGS) -> super::super::Foundation::BOOL { diff --git a/crates/libs/windows/src/Windows/Win32/Security/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/mod.rs index 5d31e359aa..4ddfd13ebe 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/mod.rs @@ -33,218 +33,183 @@ pub mod WinWlx; #[inline] pub unsafe fn AccessCheck(psecuritydescriptor: P0, clienttoken: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(psecuritydescriptor.into_param().abi(), clienttoken.into_param().abi(), desiredaccess, genericmapping, core::mem::transmute(privilegeset.unwrap_or(std::ptr::null_mut())), privilegesetlength, grantedaccess, accessstatus).ok() + AccessCheck(psecuritydescriptor.param().abi(), clienttoken.param().abi(), desiredaccess, genericmapping, core::mem::transmute(privilegeset.unwrap_or(std::ptr::null_mut())), privilegesetlength, grantedaccess, accessstatus).ok() } #[inline] pub unsafe fn AccessCheckAndAuditAlarmA(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P1, objectname: P2, securitydescriptor: P3, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: P4, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename.into_param().abi(), objectname.into_param().abi(), securitydescriptor.into_param().abi(), desiredaccess, genericmapping, objectcreation.into_param().abi(), grantedaccess, accessstatus, pfgenerateonclose).ok() + AccessCheckAndAuditAlarmA(subsystemname.param().abi(), core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), desiredaccess, genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, pfgenerateonclose).ok() } #[inline] pub unsafe fn AccessCheckAndAuditAlarmW(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P1, objectname: P2, securitydescriptor: P3, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: P4, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename.into_param().abi(), objectname.into_param().abi(), securitydescriptor.into_param().abi(), desiredaccess, genericmapping, objectcreation.into_param().abi(), grantedaccess, accessstatus, pfgenerateonclose) + AccessCheckAndAuditAlarmW(subsystemname.param().abi(), core::mem::transmute(handleid.unwrap_or(std::ptr::null())), objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), desiredaccess, genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, pfgenerateonclose) } #[inline] pub unsafe fn AccessCheckByType(psecuritydescriptor: P0, principalselfsid: P1, clienttoken: P2, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AccessCheckByType(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : super::Foundation:: 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(psecuritydescriptor.into_param().abi(), principalselfsid.into_param().abi(), clienttoken.into_param().abi(), 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()), genericmapping, core::mem::transmute(privilegeset.unwrap_or(std::ptr::null_mut())), privilegesetlength, grantedaccess, accessstatus).ok() + AccessCheckByType(psecuritydescriptor.param().abi(), principalselfsid.param().abi(), clienttoken.param().abi(), 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()), genericmapping, core::mem::transmute(privilegeset.unwrap_or(std::ptr::null_mut())), privilegesetlength, grantedaccess, accessstatus).ok() } #[inline] pub unsafe fn AccessCheckByTypeAndAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P1, objectname: P2, securitydescriptor: P3, principalselfsid: P4, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, objectcreation: P5, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { 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 : super::Foundation:: 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.into_param().abi(), - handleid, - objecttypename.into_param().abi(), - objectname.into_param().abi(), - securitydescriptor.into_param().abi(), - principalselfsid.into_param().abi(), - 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()), - genericmapping, - objectcreation.into_param().abi(), - grantedaccess, - accessstatus, - pfgenerateonclose, - ) - .ok() + AccessCheckByTypeAndAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), principalselfsid.param().abi(), 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()), genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, pfgenerateonclose).ok() } #[inline] pub unsafe fn AccessCheckByTypeAndAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P1, objectname: P2, securitydescriptor: P3, principalselfsid: P4, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, objectcreation: P5, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { 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 : super::Foundation:: 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.into_param().abi(), - handleid, - objecttypename.into_param().abi(), - objectname.into_param().abi(), - securitydescriptor.into_param().abi(), - principalselfsid.into_param().abi(), - 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()), - genericmapping, - objectcreation.into_param().abi(), - grantedaccess, - accessstatus, - pfgenerateonclose, - ) + AccessCheckByTypeAndAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), principalselfsid.param().abi(), 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()), genericmapping, objectcreation.param().abi(), grantedaccess, accessstatus, pfgenerateonclose) } #[inline] pub unsafe fn AccessCheckByTypeResultList(psecuritydescriptor: P0, principalselfsid: P1, clienttoken: P2, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultList(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : super::Foundation:: 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(psecuritydescriptor.into_param().abi(), principalselfsid.into_param().abi(), clienttoken.into_param().abi(), desiredaccess, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, core::mem::transmute(privilegeset.unwrap_or(std::ptr::null_mut())), privilegesetlength, grantedaccesslist, accessstatuslist).ok() + AccessCheckByTypeResultList(psecuritydescriptor.param().abi(), principalselfsid.param().abi(), clienttoken.param().abi(), desiredaccess, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, core::mem::transmute(privilegeset.unwrap_or(std::ptr::null_mut())), privilegesetlength, grantedaccesslist, accessstatuslist).ok() } #[inline] pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P1, objectname: P2, securitydescriptor: P3, principalselfsid: P4, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: P5, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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 : super::Foundation:: 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.into_param().abi(), handleid, objecttypename.into_param().abi(), objectname.into_param().abi(), securitydescriptor.into_param().abi(), principalselfsid.into_param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.into_param().abi(), grantedaccess, accessstatuslist, pfgenerateonclose).ok() + AccessCheckByTypeResultListAndAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), principalselfsid.param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.param().abi(), grantedaccess, accessstatuslist, pfgenerateonclose).ok() } #[inline] pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: P1, objecttypename: P2, objectname: P3, securitydescriptor: P4, principalselfsid: P5, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: P6, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: 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 : super::Foundation:: 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.into_param().abi(), handleid, clienttoken.into_param().abi(), objecttypename.into_param().abi(), objectname.into_param().abi(), securitydescriptor.into_param().abi(), principalselfsid.into_param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.into_param().abi(), grantedaccess, accessstatuslist, pfgenerateonclose).ok() + AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname.param().abi(), handleid, clienttoken.param().abi(), objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), principalselfsid.param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.param().abi(), grantedaccess, accessstatuslist, pfgenerateonclose).ok() } #[inline] pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: P1, objecttypename: P2, objectname: P3, securitydescriptor: P4, principalselfsid: P5, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: P6, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { 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 : super::Foundation:: 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.into_param().abi(), handleid, clienttoken.into_param().abi(), objecttypename.into_param().abi(), objectname.into_param().abi(), securitydescriptor.into_param().abi(), principalselfsid.into_param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.into_param().abi(), grantedaccesslist, accessstatuslist, pfgenerateonclose) + AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname.param().abi(), handleid, clienttoken.param().abi(), objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), principalselfsid.param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.param().abi(), grantedaccesslist, accessstatuslist, pfgenerateonclose) } #[inline] pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P1, objectname: P2, securitydescriptor: P3, principalselfsid: P4, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: P5, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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 : super::Foundation:: 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.into_param().abi(), handleid, objecttypename.into_param().abi(), objectname.into_param().abi(), securitydescriptor.into_param().abi(), principalselfsid.into_param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.into_param().abi(), grantedaccesslist, accessstatuslist, pfgenerateonclose) + AccessCheckByTypeResultListAndAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor.param().abi(), principalselfsid.param().abi(), desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.unwrap_or(std::ptr::null_mut())), objecttypelistlength, genericmapping, objectcreation.param().abi(), grantedaccesslist, accessstatuslist, pfgenerateonclose) } #[inline] pub unsafe fn AddAccessAllowedAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, accessmask: u32, psid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddAccessAllowedAce(pacl, dwacerevision, accessmask, psid.into_param().abi()).ok() + AddAccessAllowedAce(pacl, dwacerevision, accessmask, psid.param().abi()).ok() } #[inline] pub unsafe fn AddAccessAllowedAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddAccessAllowedAceEx(pacl, dwacerevision, aceflags, accessmask, psid.into_param().abi()).ok() + AddAccessAllowedAceEx(pacl, dwacerevision, aceflags, accessmask, psid.param().abi()).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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddAccessAllowedObjectAce(pacl, dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(std::ptr::null())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(std::ptr::null())), psid.into_param().abi()).ok() + AddAccessAllowedObjectAce(pacl, dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(std::ptr::null())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(std::ptr::null())), psid.param().abi()).ok() } #[inline] pub unsafe fn AddAccessDeniedAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, accessmask: u32, psid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddAccessDeniedAce(pacl, dwacerevision, accessmask, psid.into_param().abi()).ok() + AddAccessDeniedAce(pacl, dwacerevision, accessmask, psid.param().abi()).ok() } #[inline] pub unsafe fn AddAccessDeniedAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddAccessDeniedAceEx(pacl, dwacerevision, aceflags, accessmask, psid.into_param().abi()).ok() + AddAccessDeniedAceEx(pacl, dwacerevision, aceflags, accessmask, psid.param().abi()).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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddAccessDeniedObjectAce(pacl, dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(std::ptr::null())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(std::ptr::null())), psid.into_param().abi()).ok() + AddAccessDeniedObjectAce(pacl, dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(std::ptr::null())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(std::ptr::null())), psid.param().abi()).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<()> { @@ -254,83 +219,83 @@ pub unsafe fn AddAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, dwstartingacei #[inline] pub unsafe fn AddAuditAccessAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, dwaccessmask: u32, psid: P0, bauditsuccess: P1, bauditfailure: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, dwaccessmask : u32, psid : super::Foundation:: PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AddAuditAccessAce(pacl, dwacerevision, dwaccessmask, psid.into_param().abi(), bauditsuccess.into_param().abi(), bauditfailure.into_param().abi()).ok() + AddAuditAccessAce(pacl, dwacerevision, dwaccessmask, psid.param().abi(), bauditsuccess.param().abi(), bauditfailure.param().abi()).ok() } #[inline] pub unsafe fn AddAuditAccessAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, dwaccessmask: u32, psid: P0, bauditsuccess: P1, bauditfailure: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, dwaccessmask : u32, psid : super::Foundation:: PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AddAuditAccessAceEx(pacl, dwacerevision, aceflags, dwaccessmask, psid.into_param().abi(), bauditsuccess.into_param().abi(), bauditfailure.into_param().abi()).ok() + AddAuditAccessAceEx(pacl, dwacerevision, aceflags, dwaccessmask, psid.param().abi(), bauditsuccess.param().abi(), bauditfailure.param().abi()).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: P0, bauditsuccess: P1, bauditfailure: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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 : super::Foundation:: PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - AddAuditAccessObjectAce(pacl, dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(std::ptr::null())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(std::ptr::null())), psid.into_param().abi(), bauditsuccess.into_param().abi(), bauditfailure.into_param().abi()).ok() + AddAuditAccessObjectAce(pacl, dwacerevision, aceflags, accessmask, core::mem::transmute(objecttypeguid.unwrap_or(std::ptr::null())), core::mem::transmute(inheritedobjecttypeguid.unwrap_or(std::ptr::null())), psid.param().abi(), bauditsuccess.param().abi(), bauditfailure.param().abi()).ok() } #[inline] pub unsafe fn AddConditionalAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, acetype: u8, accessmask: u32, psid: P0, conditionstr: P1, returnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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 : super::Foundation:: PSID, conditionstr : windows_core::PCWSTR, returnlength : *mut u32) -> super::Foundation:: BOOL); - AddConditionalAce(pacl, dwacerevision, aceflags, acetype, accessmask, psid.into_param().abi(), conditionstr.into_param().abi(), returnlength).ok() + AddConditionalAce(pacl, dwacerevision, aceflags, acetype, accessmask, psid.param().abi(), conditionstr.param().abi(), returnlength).ok() } #[inline] pub unsafe fn AddMandatoryAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, mandatorypolicy: u32, plabelsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddMandatoryAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, mandatorypolicy : u32, plabelsid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddMandatoryAce(pacl, dwacerevision, aceflags, mandatorypolicy, plabelsid.into_param().abi()).ok() + AddMandatoryAce(pacl, dwacerevision, aceflags, mandatorypolicy, plabelsid.param().abi()).ok() } #[inline] pub unsafe fn AddResourceAttributeAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: P0, pattributeinfo: *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddResourceAttributeAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : super::Foundation:: PSID, pattributeinfo : *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength : *mut u32) -> super::Foundation:: BOOL); - AddResourceAttributeAce(pacl, dwacerevision, aceflags, accessmask, psid.into_param().abi(), pattributeinfo, preturnlength).ok() + AddResourceAttributeAce(pacl, dwacerevision, aceflags, accessmask, psid.param().abi(), pattributeinfo, preturnlength).ok() } #[inline] pub unsafe fn AddScopedPolicyIDAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddScopedPolicyIDAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - AddScopedPolicyIDAce(pacl, dwacerevision, aceflags, accessmask, psid.into_param().abi()).ok() + AddScopedPolicyIDAce(pacl, dwacerevision, aceflags, accessmask, psid.param().abi()).ok() } #[inline] pub unsafe fn AdjustTokenGroups(tokenhandle: P0, resettodefault: P1, newstate: Option<*const TOKEN_GROUPS>, bufferlength: u32, previousstate: Option<*mut TOKEN_GROUPS>, returnlength: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(tokenhandle.into_param().abi(), resettodefault.into_param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))).ok() + AdjustTokenGroups(tokenhandle.param().abi(), resettodefault.param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AdjustTokenPrivileges(tokenhandle: P0, disableallprivileges: P1, newstate: Option<*const TOKEN_PRIVILEGES>, bufferlength: u32, previousstate: Option<*mut TOKEN_PRIVILEGES>, returnlength: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(tokenhandle.into_param().abi(), disableallprivileges.into_param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))).ok() + AdjustTokenPrivileges(tokenhandle.param().abi(), disableallprivileges.param().abi(), core::mem::transmute(newstate.unwrap_or(std::ptr::null())), bufferlength, core::mem::transmute(previousstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))).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 super::Foundation::PSID) -> windows_core::Result<()> { @@ -355,89 +320,89 @@ pub unsafe fn AreAnyAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> s #[inline] pub unsafe fn CheckTokenCapability(tokenhandle: P0, capabilitysidtocheck: P1, hascapability: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CheckTokenCapability(tokenhandle : super::Foundation:: HANDLE, capabilitysidtocheck : super::Foundation:: PSID, hascapability : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - CheckTokenCapability(tokenhandle.into_param().abi(), capabilitysidtocheck.into_param().abi(), hascapability).ok() + CheckTokenCapability(tokenhandle.param().abi(), capabilitysidtocheck.param().abi(), hascapability).ok() } #[inline] pub unsafe fn CheckTokenMembership(tokenhandle: P0, sidtocheck: P1, ismember: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CheckTokenMembership(tokenhandle : super::Foundation:: HANDLE, sidtocheck : super::Foundation:: PSID, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - CheckTokenMembership(tokenhandle.into_param().abi(), sidtocheck.into_param().abi(), ismember).ok() + CheckTokenMembership(tokenhandle.param().abi(), sidtocheck.param().abi(), ismember).ok() } #[inline] pub unsafe fn CheckTokenMembershipEx(tokenhandle: P0, sidtocheck: P1, flags: u32, ismember: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CheckTokenMembershipEx(tokenhandle : super::Foundation:: HANDLE, sidtocheck : super::Foundation:: PSID, flags : u32, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - CheckTokenMembershipEx(tokenhandle.into_param().abi(), sidtocheck.into_param().abi(), flags, ismember).ok() + CheckTokenMembershipEx(tokenhandle.param().abi(), sidtocheck.param().abi(), flags, ismember).ok() } #[inline] pub unsafe fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor: P0, currentsecuritydescriptor: P1, newsecuritydescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, isdirectoryobject: P2, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : super::Foundation:: BOOLEAN, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); - ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor.into_param().abi(), currentsecuritydescriptor.into_param().abi(), newsecuritydescriptor, core::mem::transmute(objecttype.unwrap_or(std::ptr::null())), isdirectoryobject.into_param().abi(), genericmapping).ok() + ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor.param().abi(), currentsecuritydescriptor.param().abi(), newsecuritydescriptor, core::mem::transmute(objecttype.unwrap_or(std::ptr::null())), isdirectoryobject.param().abi(), genericmapping).ok() } #[inline] pub unsafe fn CopySid(ndestinationsidlength: u32, pdestinationsid: super::Foundation::PSID, psourcesid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CopySid(ndestinationsidlength : u32, pdestinationsid : super::Foundation:: PSID, psourcesid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - CopySid(ndestinationsidlength, pdestinationsid, psourcesid.into_param().abi()).ok() + CopySid(ndestinationsidlength, pdestinationsid, psourcesid.param().abi()).ok() } #[inline] pub unsafe fn CreatePrivateObjectSecurity(parentdescriptor: P0, creatordescriptor: P1, newdescriptor: *mut PSECURITY_DESCRIPTOR, isdirectoryobject: P2, token: P3, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(parentdescriptor.into_param().abi(), creatordescriptor.into_param().abi(), newdescriptor, isdirectoryobject.into_param().abi(), token.into_param().abi(), genericmapping).ok() + CreatePrivateObjectSecurity(parentdescriptor.param().abi(), creatordescriptor.param().abi(), newdescriptor, isdirectoryobject.param().abi(), token.param().abi(), genericmapping).ok() } #[inline] pub unsafe fn CreatePrivateObjectSecurityEx(parentdescriptor: P0, creatordescriptor: P1, newdescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, iscontainerobject: P2, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: P3, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(parentdescriptor.into_param().abi(), creatordescriptor.into_param().abi(), newdescriptor, core::mem::transmute(objecttype.unwrap_or(std::ptr::null())), iscontainerobject.into_param().abi(), autoinheritflags, token.into_param().abi(), genericmapping).ok() + CreatePrivateObjectSecurityEx(parentdescriptor.param().abi(), creatordescriptor.param().abi(), newdescriptor, core::mem::transmute(objecttype.unwrap_or(std::ptr::null())), iscontainerobject.param().abi(), autoinheritflags, token.param().abi(), genericmapping).ok() } #[inline] pub unsafe fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor: P0, creatordescriptor: P1, newdescriptor: *mut PSECURITY_DESCRIPTOR, objecttypes: Option<&[*const windows_core::GUID]>, iscontainerobject: P2, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: P3, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(parentdescriptor.into_param().abi(), creatordescriptor.into_param().abi(), 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_param().abi(), autoinheritflags, token.into_param().abi(), genericmapping).ok() + CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor.param().abi(), creatordescriptor.param().abi(), 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.param().abi(), autoinheritflags, token.param().abi(), genericmapping).ok() } #[inline] pub unsafe fn CreateRestrictedToken(existingtokenhandle: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - existingtokenhandle.into_param().abi(), + existingtokenhandle.param().abi(), 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())), @@ -452,10 +417,10 @@ where #[inline] pub unsafe fn CreateWellKnownSid(wellknownsidtype: WELL_KNOWN_SID_TYPE, domainsid: P0, psid: super::Foundation::PSID, cbsid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateWellKnownSid(wellknownsidtype : WELL_KNOWN_SID_TYPE, domainsid : super::Foundation:: PSID, psid : super::Foundation:: PSID, cbsid : *mut u32) -> super::Foundation:: BOOL); - CreateWellKnownSid(wellknownsidtype, domainsid.into_param().abi(), psid, cbsid).ok() + CreateWellKnownSid(wellknownsidtype, domainsid.param().abi(), psid, cbsid).ok() } #[inline] pub unsafe fn DeleteAce(pacl: *mut ACL, dwaceindex: u32) -> windows_core::Result<()> { @@ -465,10 +430,10 @@ pub unsafe fn DeleteAce(pacl: *mut ACL, dwaceindex: u32) -> windows_core::Result #[inline] pub unsafe fn DeriveCapabilitySidsFromName(capname: P0, capabilitygroupsids: *mut *mut super::Foundation::PSID, capabilitygroupsidcount: *mut u32, capabilitysids: *mut *mut super::Foundation::PSID, capabilitysidcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-security-base-l1-2-2.dll" "system" fn DeriveCapabilitySidsFromName(capname : windows_core::PCWSTR, capabilitygroupsids : *mut *mut super::Foundation:: PSID, capabilitygroupsidcount : *mut u32, capabilitysids : *mut *mut super::Foundation:: PSID, capabilitysidcount : *mut u32) -> super::Foundation:: BOOL); - DeriveCapabilitySidsFromName(capname.into_param().abi(), capabilitygroupsids, capabilitygroupsidcount, capabilitysids, capabilitysidcount).ok() + DeriveCapabilitySidsFromName(capname.param().abi(), capabilitygroupsids, capabilitygroupsidcount, capabilitysids, capabilitysidcount).ok() } #[inline] pub unsafe fn DestroyPrivateObjectSecurity(objectdescriptor: *const PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { @@ -478,45 +443,45 @@ pub unsafe fn DestroyPrivateObjectSecurity(objectdescriptor: *const PSECURITY_DE #[inline] pub unsafe fn DuplicateToken(existingtokenhandle: P0, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle: *mut super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(existingtokenhandle.into_param().abi(), impersonationlevel, duplicatetokenhandle).ok() + DuplicateToken(existingtokenhandle.param().abi(), impersonationlevel, duplicatetokenhandle).ok() } #[inline] pub unsafe fn DuplicateTokenEx(hexistingtoken: P0, dwdesiredaccess: TOKEN_ACCESS_MASK, lptokenattributes: Option<*const SECURITY_ATTRIBUTES>, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, tokentype: TOKEN_TYPE, phnewtoken: *mut super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hexistingtoken.into_param().abi(), dwdesiredaccess, core::mem::transmute(lptokenattributes.unwrap_or(std::ptr::null())), impersonationlevel, tokentype, phnewtoken).ok() + DuplicateTokenEx(hexistingtoken.param().abi(), dwdesiredaccess, core::mem::transmute(lptokenattributes.unwrap_or(std::ptr::null())), impersonationlevel, tokentype, phnewtoken).ok() } #[inline] pub unsafe fn EqualDomainSid(psid1: P0, psid2: P1, pfequal: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EqualDomainSid(psid1 : super::Foundation:: PSID, psid2 : super::Foundation:: PSID, pfequal : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - EqualDomainSid(psid1.into_param().abi(), psid2.into_param().abi(), pfequal).ok() + EqualDomainSid(psid1.param().abi(), psid2.param().abi(), pfequal).ok() } #[inline] pub unsafe fn EqualPrefixSid(psid1: P0, psid2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EqualPrefixSid(psid1 : super::Foundation:: PSID, psid2 : super::Foundation:: PSID) -> super::Foundation:: BOOL); - EqualPrefixSid(psid1.into_param().abi(), psid2.into_param().abi()).ok() + EqualPrefixSid(psid1.param().abi(), psid2.param().abi()).ok() } #[inline] pub unsafe fn EqualSid(psid1: P0, psid2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EqualSid(psid1 : super::Foundation:: PSID, psid2 : super::Foundation:: PSID) -> super::Foundation:: BOOL); - EqualSid(psid1.into_param().abi(), psid2.into_param().abi()).ok() + EqualSid(psid1.param().abi(), psid2.param().abi()).ok() } #[inline] pub unsafe fn FindFirstFreeAce(pacl: *const ACL, pace: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -526,10 +491,10 @@ pub unsafe fn FindFirstFreeAce(pacl: *const ACL, pace: *mut *mut core::ffi::c_vo #[inline] pub unsafe fn FreeSid(psid: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn FreeSid(psid : super::Foundation:: PSID) -> *mut core::ffi::c_void); - FreeSid(psid.into_param().abi()) + FreeSid(psid.param().abi()) } #[inline] pub unsafe fn GetAce(pacl: *const ACL, dwaceindex: u32, pace: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -549,34 +514,34 @@ pub unsafe fn GetAppContainerAce(acl: *const ACL, startingaceindex: u32, appcont #[inline] pub unsafe fn GetCachedSigningLevel(file: P0, flags: *mut u32, signinglevel: *mut u32, thumbprint: Option<*mut u8>, thumbprintsize: Option<*mut u32>, thumbprintalgorithm: Option<*mut u32>) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(file.into_param().abi(), flags, signinglevel, core::mem::transmute(thumbprint.unwrap_or(std::ptr::null_mut())), core::mem::transmute(thumbprintsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(thumbprintalgorithm.unwrap_or(std::ptr::null_mut()))) + GetCachedSigningLevel(file.param().abi(), flags, signinglevel, core::mem::transmute(thumbprint.unwrap_or(std::ptr::null_mut())), core::mem::transmute(thumbprintsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(thumbprintalgorithm.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetFileSecurityA(lpfilename: P0, requestedinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() + GetFileSecurityA(lpfilename.param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() } #[inline] pub unsafe fn GetFileSecurityW(lpfilename: P0, requestedinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded) + GetFileSecurityW(lpfilename.param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded) } #[inline] pub unsafe fn GetKernelObjectSecurity(handle: P0, requestedinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(handle.into_param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() + GetKernelObjectSecurity(handle.param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() } #[inline] pub unsafe fn GetLengthSid(psid: super::Foundation::PSID) -> u32 { @@ -586,74 +551,74 @@ pub unsafe fn GetLengthSid(psid: super::Foundation::PSID) -> u32 { #[inline] pub unsafe fn GetPrivateObjectSecurity(objectdescriptor: P0, securityinformation: OBJECT_SECURITY_INFORMATION, resultantdescriptor: PSECURITY_DESCRIPTOR, descriptorlength: u32, returnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(objectdescriptor.into_param().abi(), securityinformation, resultantdescriptor, descriptorlength, returnlength).ok() + GetPrivateObjectSecurity(objectdescriptor.param().abi(), securityinformation, resultantdescriptor, descriptorlength, returnlength).ok() } #[inline] pub unsafe fn GetSecurityDescriptorControl(psecuritydescriptor: P0, pcontrol: *mut u16, lpdwrevision: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, pcontrol : *mut u16, lpdwrevision : *mut u32) -> super::Foundation:: BOOL); - GetSecurityDescriptorControl(psecuritydescriptor.into_param().abi(), pcontrol, lpdwrevision).ok() + GetSecurityDescriptorControl(psecuritydescriptor.param().abi(), pcontrol, lpdwrevision).ok() } #[inline] pub unsafe fn GetSecurityDescriptorDacl(psecuritydescriptor: P0, lpbdaclpresent: *mut super::Foundation::BOOL, pdacl: *mut *mut ACL, lpbdacldefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(psecuritydescriptor.into_param().abi(), lpbdaclpresent, pdacl, lpbdacldefaulted).ok() + GetSecurityDescriptorDacl(psecuritydescriptor.param().abi(), lpbdaclpresent, pdacl, lpbdacldefaulted).ok() } #[inline] pub unsafe fn GetSecurityDescriptorGroup(psecuritydescriptor: P0, pgroup: *mut super::Foundation::PSID, lpbgroupdefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorGroup(psecuritydescriptor : PSECURITY_DESCRIPTOR, pgroup : *mut super::Foundation:: PSID, lpbgroupdefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - GetSecurityDescriptorGroup(psecuritydescriptor.into_param().abi(), pgroup, lpbgroupdefaulted).ok() + GetSecurityDescriptorGroup(psecuritydescriptor.param().abi(), pgroup, lpbgroupdefaulted).ok() } #[inline] pub unsafe fn GetSecurityDescriptorLength(psecuritydescriptor: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorLength(psecuritydescriptor : PSECURITY_DESCRIPTOR) -> u32); - GetSecurityDescriptorLength(psecuritydescriptor.into_param().abi()) + GetSecurityDescriptorLength(psecuritydescriptor.param().abi()) } #[inline] pub unsafe fn GetSecurityDescriptorOwner(psecuritydescriptor: P0, powner: *mut super::Foundation::PSID, lpbownerdefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorOwner(psecuritydescriptor : PSECURITY_DESCRIPTOR, powner : *mut super::Foundation:: PSID, lpbownerdefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); - GetSecurityDescriptorOwner(psecuritydescriptor.into_param().abi(), powner, lpbownerdefaulted).ok() + GetSecurityDescriptorOwner(psecuritydescriptor.param().abi(), powner, lpbownerdefaulted).ok() } #[inline] pub unsafe fn GetSecurityDescriptorRMControl(securitydescriptor: P0, rmcontrol: *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorRMControl(securitydescriptor : PSECURITY_DESCRIPTOR, rmcontrol : *mut u8) -> u32); - GetSecurityDescriptorRMControl(securitydescriptor.into_param().abi(), rmcontrol) + GetSecurityDescriptorRMControl(securitydescriptor.param().abi(), rmcontrol) } #[inline] pub unsafe fn GetSecurityDescriptorSacl(psecuritydescriptor: P0, lpbsaclpresent: *mut super::Foundation::BOOL, psacl: *mut *mut ACL, lpbsacldefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(psecuritydescriptor.into_param().abi(), lpbsaclpresent, psacl, lpbsacldefaulted).ok() + GetSecurityDescriptorSacl(psecuritydescriptor.param().abi(), lpbsaclpresent, psacl, lpbsacldefaulted).ok() } #[inline] pub unsafe fn GetSidIdentifierAuthority(psid: P0) -> *mut SID_IDENTIFIER_AUTHORITY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSidIdentifierAuthority(psid : super::Foundation:: PSID) -> *mut SID_IDENTIFIER_AUTHORITY); - GetSidIdentifierAuthority(psid.into_param().abi()) + GetSidIdentifierAuthority(psid.param().abi()) } #[inline] pub unsafe fn GetSidLengthRequired(nsubauthoritycount: u8) -> u32 { @@ -663,58 +628,58 @@ pub unsafe fn GetSidLengthRequired(nsubauthoritycount: u8) -> u32 { #[inline] pub unsafe fn GetSidSubAuthority(psid: P0, nsubauthority: u32) -> *mut u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSidSubAuthority(psid : super::Foundation:: PSID, nsubauthority : u32) -> *mut u32); - GetSidSubAuthority(psid.into_param().abi(), nsubauthority) + GetSidSubAuthority(psid.param().abi(), nsubauthority) } #[inline] pub unsafe fn GetSidSubAuthorityCount(psid: P0) -> *mut u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetSidSubAuthorityCount(psid : super::Foundation:: PSID) -> *mut u8); - GetSidSubAuthorityCount(psid.into_param().abi()) + GetSidSubAuthorityCount(psid.param().abi()) } #[inline] pub unsafe fn GetTokenInformation(tokenhandle: P0, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: Option<*mut core::ffi::c_void>, tokeninformationlength: u32, returnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tokenhandle.into_param().abi(), tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(std::ptr::null_mut())), tokeninformationlength, returnlength).ok() + GetTokenInformation(tokenhandle.param().abi(), tokeninformationclass, core::mem::transmute(tokeninformation.unwrap_or(std::ptr::null_mut())), tokeninformationlength, returnlength).ok() } #[inline] pub unsafe fn GetUserObjectSecurity(hobj: P0, psirequested: *const u32, psid: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hobj.into_param().abi(), psirequested, psid, nlength, lpnlengthneeded).ok() + GetUserObjectSecurity(hobj.param().abi(), psirequested, psid, nlength, lpnlengthneeded).ok() } #[inline] pub unsafe fn GetWindowsAccountDomainSid(psid: P0, pdomainsid: super::Foundation::PSID, cbdomainsid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetWindowsAccountDomainSid(psid : super::Foundation:: PSID, pdomainsid : super::Foundation:: PSID, cbdomainsid : *mut u32) -> super::Foundation:: BOOL); - GetWindowsAccountDomainSid(psid.into_param().abi(), pdomainsid, cbdomainsid).ok() + GetWindowsAccountDomainSid(psid.param().abi(), pdomainsid, cbdomainsid).ok() } #[inline] pub unsafe fn ImpersonateAnonymousToken(threadhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ImpersonateAnonymousToken(threadhandle : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - ImpersonateAnonymousToken(threadhandle.into_param().abi()).ok() + ImpersonateAnonymousToken(threadhandle.param().abi()).ok() } #[inline] pub unsafe fn ImpersonateLoggedOnUser(htoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ImpersonateLoggedOnUser(htoken : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - ImpersonateLoggedOnUser(htoken.into_param().abi()).ok() + ImpersonateLoggedOnUser(htoken.param().abi()).ok() } #[inline] pub unsafe fn ImpersonateSelf(impersonationlevel: SECURITY_IMPERSONATION_LEVEL) -> windows_core::Result<()> { @@ -739,10 +704,10 @@ pub unsafe fn InitializeSid(sid: super::Foundation::PSID, pidentifierauthority: #[inline] pub unsafe fn IsTokenRestricted(tokenhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn IsTokenRestricted(tokenhandle : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); - IsTokenRestricted(tokenhandle.into_param().abi()).ok() + IsTokenRestricted(tokenhandle.param().abi()).ok() } #[inline] pub unsafe fn IsValidAcl(pacl: *const ACL) -> super::Foundation::BOOL { @@ -752,170 +717,170 @@ pub unsafe fn IsValidAcl(pacl: *const ACL) -> super::Foundation::BOOL { #[inline] pub unsafe fn IsValidSecurityDescriptor(psecuritydescriptor: P0) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn IsValidSecurityDescriptor(psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - IsValidSecurityDescriptor(psecuritydescriptor.into_param().abi()) + IsValidSecurityDescriptor(psecuritydescriptor.param().abi()) } #[inline] pub unsafe fn IsValidSid(psid: P0) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn IsValidSid(psid : super::Foundation:: PSID) -> super::Foundation:: BOOL); - IsValidSid(psid.into_param().abi()) + IsValidSid(psid.param().abi()) } #[inline] pub unsafe fn IsWellKnownSid(psid: P0, wellknownsidtype: WELL_KNOWN_SID_TYPE) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn IsWellKnownSid(psid : super::Foundation:: PSID, wellknownsidtype : WELL_KNOWN_SID_TYPE) -> super::Foundation:: BOOL); - IsWellKnownSid(psid.into_param().abi(), wellknownsidtype) + IsWellKnownSid(psid.param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszdomain.into_param().abi(), lpszpassword.into_param().abi(), dwlogontype, dwlogonprovider, phtoken).ok() + LogonUserA(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, 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 super::Foundation::PSID>, ppprofilebuffer: Option<*mut *mut core::ffi::c_void>, pdwprofilelength: Option<*mut u32>, pquotalimits: Option<*mut QUOTA_LIMITS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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 super::Foundation:: PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> super::Foundation:: BOOL); - LogonUserExA(lpszusername.into_param().abi(), lpszdomain.into_param().abi(), lpszpassword.into_param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pplogonsid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppprofilebuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwprofilelength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pquotalimits.unwrap_or(std::ptr::null_mut()))).ok() + LogonUserExA(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pplogonsid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppprofilebuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwprofilelength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pquotalimits.unwrap_or(std::ptr::null_mut()))).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 super::Foundation::PSID>, ppprofilebuffer: Option<*mut *mut core::ffi::c_void>, pdwprofilelength: Option<*mut u32>, pquotalimits: Option<*mut QUOTA_LIMITS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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 super::Foundation:: PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> super::Foundation:: BOOL); - LogonUserExW(lpszusername.into_param().abi(), lpszdomain.into_param().abi(), lpszpassword.into_param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pplogonsid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppprofilebuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwprofilelength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pquotalimits.unwrap_or(std::ptr::null_mut()))).ok() + LogonUserExW(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, core::mem::transmute(phtoken.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pplogonsid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppprofilebuffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwprofilelength.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pquotalimits.unwrap_or(std::ptr::null_mut()))).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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszdomain.into_param().abi(), lpszpassword.into_param().abi(), dwlogontype, dwlogonprovider, phtoken).ok() + LogonUserW(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, phtoken).ok() } #[inline] pub unsafe fn LookupAccountNameA(lpsystemname: P0, lpaccountname: P1, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: windows_core::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupAccountNameA(lpsystemname : windows_core::PCSTR, lpaccountname : windows_core::PCSTR, sid : super::Foundation:: PSID, cbsid : *mut u32, referenceddomainname : windows_core::PSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); - LookupAccountNameA(lpsystemname.into_param().abi(), lpaccountname.into_param().abi(), sid, cbsid, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() + LookupAccountNameA(lpsystemname.param().abi(), lpaccountname.param().abi(), sid, cbsid, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() } #[inline] pub unsafe fn LookupAccountNameW(lpsystemname: P0, lpaccountname: P1, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: windows_core::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupAccountNameW(lpsystemname : windows_core::PCWSTR, lpaccountname : windows_core::PCWSTR, sid : super::Foundation:: PSID, cbsid : *mut u32, referenceddomainname : windows_core::PWSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); - LookupAccountNameW(lpsystemname.into_param().abi(), lpaccountname.into_param().abi(), sid, cbsid, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() + LookupAccountNameW(lpsystemname.param().abi(), lpaccountname.param().abi(), sid, cbsid, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() } #[inline] pub unsafe fn LookupAccountSidA(lpsystemname: P0, sid: P1, name: windows_core::PSTR, cchname: *mut u32, referenceddomainname: windows_core::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidA(lpsystemname : windows_core::PCSTR, sid : super::Foundation:: 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.into_param().abi(), sid.into_param().abi(), core::mem::transmute(name), cchname, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() + LookupAccountSidA(lpsystemname.param().abi(), sid.param().abi(), core::mem::transmute(name), cchname, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() } #[inline] pub unsafe fn LookupAccountSidW(lpsystemname: P0, sid: P1, name: windows_core::PWSTR, cchname: *mut u32, referenceddomainname: windows_core::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidW(lpsystemname : windows_core::PCWSTR, sid : super::Foundation:: 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.into_param().abi(), sid.into_param().abi(), core::mem::transmute(name), cchname, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() + LookupAccountSidW(lpsystemname.param().abi(), sid.param().abi(), core::mem::transmute(name), cchname, core::mem::transmute(referenceddomainname), cchreferenceddomainname, peuse).ok() } #[inline] pub unsafe fn LookupPrivilegeDisplayNameA(lpsystemname: P0, lpname: P1, lpdisplayname: windows_core::PSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeDisplayNameA(lpsystemname : windows_core::PCSTR, lpname : windows_core::PCSTR, lpdisplayname : windows_core::PSTR, cchdisplayname : *mut u32, lplanguageid : *mut u32) -> super::Foundation:: BOOL); - LookupPrivilegeDisplayNameA(lpsystemname.into_param().abi(), lpname.into_param().abi(), core::mem::transmute(lpdisplayname), cchdisplayname, lplanguageid).ok() + LookupPrivilegeDisplayNameA(lpsystemname.param().abi(), lpname.param().abi(), core::mem::transmute(lpdisplayname), cchdisplayname, lplanguageid).ok() } #[inline] pub unsafe fn LookupPrivilegeDisplayNameW(lpsystemname: P0, lpname: P1, lpdisplayname: windows_core::PWSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeDisplayNameW(lpsystemname : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpdisplayname : windows_core::PWSTR, cchdisplayname : *mut u32, lplanguageid : *mut u32) -> super::Foundation:: BOOL); - LookupPrivilegeDisplayNameW(lpsystemname.into_param().abi(), lpname.into_param().abi(), core::mem::transmute(lpdisplayname), cchdisplayname, lplanguageid).ok() + LookupPrivilegeDisplayNameW(lpsystemname.param().abi(), lpname.param().abi(), core::mem::transmute(lpdisplayname), cchdisplayname, lplanguageid).ok() } #[inline] pub unsafe fn LookupPrivilegeNameA(lpsystemname: P0, lpluid: *const super::Foundation::LUID, lpname: windows_core::PSTR, cchname: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpluid, core::mem::transmute(lpname), cchname).ok() + LookupPrivilegeNameA(lpsystemname.param().abi(), lpluid, core::mem::transmute(lpname), cchname).ok() } #[inline] pub unsafe fn LookupPrivilegeNameW(lpsystemname: P0, lpluid: *const super::Foundation::LUID, lpname: windows_core::PWSTR, cchname: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpluid, core::mem::transmute(lpname), cchname).ok() + LookupPrivilegeNameW(lpsystemname.param().abi(), lpluid, core::mem::transmute(lpname), cchname).ok() } #[inline] pub unsafe fn LookupPrivilegeValueA(lpsystemname: P0, lpname: P1, lpluid: *mut super::Foundation::LUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeValueA(lpsystemname : windows_core::PCSTR, lpname : windows_core::PCSTR, lpluid : *mut super::Foundation:: LUID) -> super::Foundation:: BOOL); - LookupPrivilegeValueA(lpsystemname.into_param().abi(), lpname.into_param().abi(), lpluid).ok() + LookupPrivilegeValueA(lpsystemname.param().abi(), lpname.param().abi(), lpluid).ok() } #[inline] pub unsafe fn LookupPrivilegeValueW(lpsystemname: P0, lpname: P1, lpluid: *mut super::Foundation::LUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeValueW(lpsystemname : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpluid : *mut super::Foundation:: LUID) -> super::Foundation:: BOOL); - LookupPrivilegeValueW(lpsystemname.into_param().abi(), lpname.into_param().abi(), lpluid).ok() + LookupPrivilegeValueW(lpsystemname.param().abi(), lpname.param().abi(), lpluid).ok() } #[inline] pub unsafe fn MakeAbsoluteSD(pselfrelativesecuritydescriptor: P0, pabsolutesecuritydescriptor: PSECURITY_DESCRIPTOR, lpdwabsolutesecuritydescriptorsize: *mut u32, pdacl: Option<*mut ACL>, lpdwdaclsize: *mut u32, psacl: Option<*mut ACL>, lpdwsaclsize: *mut u32, powner: super::Foundation::PSID, lpdwownersize: *mut u32, pprimarygroup: super::Foundation::PSID, lpdwprimarygroupsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 : super::Foundation:: PSID, lpdwownersize : *mut u32, pprimarygroup : super::Foundation:: PSID, lpdwprimarygroupsize : *mut u32) -> super::Foundation:: BOOL); - MakeAbsoluteSD(pselfrelativesecuritydescriptor.into_param().abi(), pabsolutesecuritydescriptor, lpdwabsolutesecuritydescriptorsize, core::mem::transmute(pdacl.unwrap_or(std::ptr::null_mut())), lpdwdaclsize, core::mem::transmute(psacl.unwrap_or(std::ptr::null_mut())), lpdwsaclsize, powner, lpdwownersize, pprimarygroup, lpdwprimarygroupsize).ok() + MakeAbsoluteSD(pselfrelativesecuritydescriptor.param().abi(), pabsolutesecuritydescriptor, lpdwabsolutesecuritydescriptorsize, core::mem::transmute(pdacl.unwrap_or(std::ptr::null_mut())), lpdwdaclsize, core::mem::transmute(psacl.unwrap_or(std::ptr::null_mut())), lpdwsaclsize, powner, lpdwownersize, pprimarygroup, lpdwprimarygroupsize).ok() } #[inline] pub unsafe fn MakeSelfRelativeSD(pabsolutesecuritydescriptor: P0, pselfrelativesecuritydescriptor: PSECURITY_DESCRIPTOR, lpdwbufferlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn MakeSelfRelativeSD(pabsolutesecuritydescriptor : PSECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor : PSECURITY_DESCRIPTOR, lpdwbufferlength : *mut u32) -> super::Foundation:: BOOL); - MakeSelfRelativeSD(pabsolutesecuritydescriptor.into_param().abi(), pselfrelativesecuritydescriptor, lpdwbufferlength).ok() + MakeSelfRelativeSD(pabsolutesecuritydescriptor.param().abi(), pselfrelativesecuritydescriptor, lpdwbufferlength).ok() } #[inline] pub unsafe fn MapGenericMask(accessmask: *mut u32, genericmapping: *const GENERIC_MAPPING) { @@ -925,116 +890,116 @@ pub unsafe fn MapGenericMask(accessmask: *mut u32, genericmapping: *const GENERI #[inline] pub unsafe fn ObjectCloseAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), handleid, generateonclose.into_param().abi()).ok() + ObjectCloseAuditAlarmA(subsystemname.param().abi(), handleid, generateonclose.param().abi()).ok() } #[inline] pub unsafe fn ObjectCloseAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: P1) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), handleid, generateonclose.into_param().abi()) + ObjectCloseAuditAlarmW(subsystemname.param().abi(), handleid, generateonclose.param().abi()) } #[inline] pub unsafe fn ObjectDeleteAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), handleid, generateonclose.into_param().abi()).ok() + ObjectDeleteAuditAlarmA(subsystemname.param().abi(), handleid, generateonclose.param().abi()).ok() } #[inline] pub unsafe fn ObjectDeleteAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: P1) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), handleid, generateonclose.into_param().abi()) + ObjectDeleteAuditAlarmW(subsystemname.param().abi(), handleid, generateonclose.param().abi()) } #[inline] pub unsafe fn ObjectOpenAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P1, objectname: P2, psecuritydescriptor: P3, clienttoken: P4, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: P5, accessgranted: P6, generateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: 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.into_param().abi(), handleid, objecttypename.into_param().abi(), objectname.into_param().abi(), psecuritydescriptor.into_param().abi(), clienttoken.into_param().abi(), desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null())), objectcreation.into_param().abi(), accessgranted.into_param().abi(), generateonclose).ok() + ObjectOpenAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), psecuritydescriptor.param().abi(), clienttoken.param().abi(), desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null())), objectcreation.param().abi(), accessgranted.param().abi(), generateonclose).ok() } #[inline] pub unsafe fn ObjectOpenAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P1, objectname: P2, psecuritydescriptor: P3, clienttoken: P4, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: P5, accessgranted: P6, generateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: 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.into_param().abi(), handleid, objecttypename.into_param().abi(), objectname.into_param().abi(), psecuritydescriptor.into_param().abi(), clienttoken.into_param().abi(), desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null())), objectcreation.into_param().abi(), accessgranted.into_param().abi(), generateonclose) + ObjectOpenAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), psecuritydescriptor.param().abi(), clienttoken.param().abi(), desiredaccess, grantedaccess, core::mem::transmute(privileges.unwrap_or(std::ptr::null())), objectcreation.param().abi(), accessgranted.param().abi(), generateonclose) } #[inline] pub unsafe fn ObjectPrivilegeAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: P1, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), handleid, clienttoken.into_param().abi(), desiredaccess, privileges, accessgranted.into_param().abi()).ok() + ObjectPrivilegeAuditAlarmA(subsystemname.param().abi(), handleid, clienttoken.param().abi(), desiredaccess, privileges, accessgranted.param().abi()).ok() } #[inline] pub unsafe fn ObjectPrivilegeAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: P1, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: P2) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), handleid, clienttoken.into_param().abi(), desiredaccess, privileges, accessgranted.into_param().abi()) + ObjectPrivilegeAuditAlarmW(subsystemname.param().abi(), handleid, clienttoken.param().abi(), desiredaccess, privileges, accessgranted.param().abi()) } #[inline] pub unsafe fn PrivilegeCheck(clienttoken: P0, requiredprivileges: *mut PRIVILEGE_SET, pfresult: *mut super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(clienttoken.into_param().abi(), requiredprivileges, pfresult).ok() + PrivilegeCheck(clienttoken.param().abi(), requiredprivileges, pfresult).ok() } #[inline] pub unsafe fn PrivilegedServiceAuditAlarmA(subsystemname: P0, servicename: P1, clienttoken: P2, privileges: *const PRIVILEGE_SET, accessgranted: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), servicename.into_param().abi(), clienttoken.into_param().abi(), privileges, accessgranted.into_param().abi()).ok() + PrivilegedServiceAuditAlarmA(subsystemname.param().abi(), servicename.param().abi(), clienttoken.param().abi(), privileges, accessgranted.param().abi()).ok() } #[inline] pub unsafe fn PrivilegedServiceAuditAlarmW(subsystemname: P0, servicename: P1, clienttoken: P2, privileges: *const PRIVILEGE_SET, accessgranted: P3) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), servicename.into_param().abi(), clienttoken.into_param().abi(), privileges, accessgranted.into_param().abi()) + PrivilegedServiceAuditAlarmW(subsystemname.param().abi(), servicename.param().abi(), clienttoken.param().abi(), privileges, accessgranted.param().abi()) } #[inline] pub unsafe fn QuerySecurityAccessMask(securityinformation: OBJECT_SECURITY_INFORMATION) -> u32 { @@ -1051,19 +1016,19 @@ pub unsafe fn RevertToSelf() -> windows_core::Result<()> { #[inline] pub unsafe fn RtlConvertSidToUnicodeString(unicodestring: *mut super::Foundation::UNICODE_STRING, sid: P0, allocatedestinationstring: P1) -> super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlConvertSidToUnicodeString(unicodestring : *mut super::Foundation:: UNICODE_STRING, sid : super::Foundation:: PSID, allocatedestinationstring : super::Foundation:: BOOLEAN) -> super::Foundation:: NTSTATUS); - RtlConvertSidToUnicodeString(unicodestring, sid.into_param().abi(), allocatedestinationstring.into_param().abi()) + RtlConvertSidToUnicodeString(unicodestring, sid.param().abi(), allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: Option<*mut PSECURITY_DESCRIPTOR>, newsecuritydescriptorlength: Option<*mut u32>, checkonly: P0) -> super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : super::Foundation:: BOOLEAN) -> super::Foundation:: BOOLEAN); - RtlNormalizeSecurityDescriptor(securitydescriptor, securitydescriptorlength, core::mem::transmute(newsecuritydescriptor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(std::ptr::null_mut())), checkonly.into_param().abi()) + RtlNormalizeSecurityDescriptor(securitydescriptor, securitydescriptorlength, core::mem::transmute(newsecuritydescriptor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(std::ptr::null_mut())), checkonly.param().abi()) } #[inline] pub unsafe fn SetAclInformation(pacl: *mut ACL, paclinformation: *const core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> windows_core::Result<()> { @@ -1073,55 +1038,55 @@ pub unsafe fn SetAclInformation(pacl: *mut ACL, paclinformation: *const core::ff #[inline] pub unsafe fn SetCachedSigningLevel(sourcefiles: &[super::Foundation::HANDLE], flags: u32, targetfile: P0) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(), flags, targetfile.into_param().abi()) + SetCachedSigningLevel(core::mem::transmute(sourcefiles.as_ptr()), sourcefiles.len().try_into().unwrap(), flags, targetfile.param().abi()) } #[inline] pub unsafe fn SetFileSecurityA(lpfilename: P0, securityinformation: OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()).ok() + SetFileSecurityA(lpfilename.param().abi(), securityinformation, psecuritydescriptor.param().abi()).ok() } #[inline] pub unsafe fn SetFileSecurityW(lpfilename: P0, securityinformation: OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P1) -> super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()) + SetFileSecurityW(lpfilename.param().abi(), securityinformation, psecuritydescriptor.param().abi()) } #[inline] pub unsafe fn SetKernelObjectSecurity(handle: P0, securityinformation: OBJECT_SECURITY_INFORMATION, securitydescriptor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetKernelObjectSecurity(handle : super::Foundation:: HANDLE, securityinformation : OBJECT_SECURITY_INFORMATION, securitydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - SetKernelObjectSecurity(handle.into_param().abi(), securityinformation, securitydescriptor.into_param().abi()).ok() + SetKernelObjectSecurity(handle.param().abi(), securityinformation, securitydescriptor.param().abi()).ok() } #[inline] pub unsafe fn SetPrivateObjectSecurity(securityinformation: OBJECT_SECURITY_INFORMATION, modificationdescriptor: P0, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, genericmapping: *const GENERIC_MAPPING, token: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(securityinformation, modificationdescriptor.into_param().abi(), objectssecuritydescriptor, genericmapping, token.into_param().abi()).ok() + SetPrivateObjectSecurity(securityinformation, modificationdescriptor.param().abi(), objectssecuritydescriptor, genericmapping, token.param().abi()).ok() } #[inline] pub unsafe fn SetPrivateObjectSecurityEx(securityinformation: OBJECT_SECURITY_INFORMATION, modificationdescriptor: P0, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, genericmapping: *const GENERIC_MAPPING, token: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(securityinformation, modificationdescriptor.into_param().abi(), objectssecuritydescriptor, autoinheritflags, genericmapping, token.into_param().abi()).ok() + SetPrivateObjectSecurityEx(securityinformation, modificationdescriptor.param().abi(), objectssecuritydescriptor, autoinheritflags, genericmapping, token.param().abi()).ok() } #[inline] pub unsafe fn SetSecurityAccessMask(securityinformation: OBJECT_SECURITY_INFORMATION) -> u32 { @@ -1133,37 +1098,37 @@ pub unsafe fn SetSecurityAccessMask(securityinformation: OBJECT_SECURITY_INFORMA #[inline] pub unsafe fn SetSecurityDescriptorControl(psecuritydescriptor: P0, controlbitsofinterest: SECURITY_DESCRIPTOR_CONTROL, controlbitstoset: SECURITY_DESCRIPTOR_CONTROL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, controlbitsofinterest : SECURITY_DESCRIPTOR_CONTROL, controlbitstoset : SECURITY_DESCRIPTOR_CONTROL) -> super::Foundation:: BOOL); - SetSecurityDescriptorControl(psecuritydescriptor.into_param().abi(), controlbitsofinterest, controlbitstoset).ok() + SetSecurityDescriptorControl(psecuritydescriptor.param().abi(), controlbitsofinterest, controlbitstoset).ok() } #[inline] pub unsafe fn SetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, bdaclpresent: P0, pdacl: Option<*const ACL>, bdacldefaulted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorDacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, bdaclpresent : super::Foundation:: BOOL, pdacl : *const ACL, bdacldefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - SetSecurityDescriptorDacl(psecuritydescriptor, bdaclpresent.into_param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), bdacldefaulted.into_param().abi()).ok() + SetSecurityDescriptorDacl(psecuritydescriptor, bdaclpresent.param().abi(), core::mem::transmute(pdacl.unwrap_or(std::ptr::null())), bdacldefaulted.param().abi()).ok() } #[inline] pub unsafe fn SetSecurityDescriptorGroup(psecuritydescriptor: PSECURITY_DESCRIPTOR, pgroup: P0, bgroupdefaulted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorGroup(psecuritydescriptor : PSECURITY_DESCRIPTOR, pgroup : super::Foundation:: PSID, bgroupdefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - SetSecurityDescriptorGroup(psecuritydescriptor, pgroup.into_param().abi(), bgroupdefaulted.into_param().abi()).ok() + SetSecurityDescriptorGroup(psecuritydescriptor, pgroup.param().abi(), bgroupdefaulted.param().abi()).ok() } #[inline] pub unsafe fn SetSecurityDescriptorOwner(psecuritydescriptor: PSECURITY_DESCRIPTOR, powner: P0, bownerdefaulted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorOwner(psecuritydescriptor : PSECURITY_DESCRIPTOR, powner : super::Foundation:: PSID, bownerdefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - SetSecurityDescriptorOwner(psecuritydescriptor, powner.into_param().abi(), bownerdefaulted.into_param().abi()).ok() + SetSecurityDescriptorOwner(psecuritydescriptor, powner.param().abi(), bownerdefaulted.param().abi()).ok() } #[inline] pub unsafe fn SetSecurityDescriptorRMControl(securitydescriptor: PSECURITY_DESCRIPTOR, rmcontrol: Option<*const u8>) -> u32 { @@ -1173,28 +1138,28 @@ pub unsafe fn SetSecurityDescriptorRMControl(securitydescriptor: PSECURITY_DESCR #[inline] pub unsafe fn SetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, bsaclpresent: P0, psacl: Option<*const ACL>, bsacldefaulted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorSacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, bsaclpresent : super::Foundation:: BOOL, psacl : *const ACL, bsacldefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); - SetSecurityDescriptorSacl(psecuritydescriptor, bsaclpresent.into_param().abi(), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), bsacldefaulted.into_param().abi()).ok() + SetSecurityDescriptorSacl(psecuritydescriptor, bsaclpresent.param().abi(), core::mem::transmute(psacl.unwrap_or(std::ptr::null())), bsacldefaulted.param().abi()).ok() } #[inline] pub unsafe fn SetTokenInformation(tokenhandle: P0, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *const core::ffi::c_void, tokeninformationlength: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(tokenhandle.into_param().abi(), tokeninformationclass, tokeninformation, tokeninformationlength).ok() + SetTokenInformation(tokenhandle.param().abi(), tokeninformationclass, tokeninformation, tokeninformationlength).ok() } #[inline] pub unsafe fn SetUserObjectSecurity(hobj: P0, psirequested: *const OBJECT_SECURITY_INFORMATION, psid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetUserObjectSecurity(hobj : super::Foundation:: HANDLE, psirequested : *const OBJECT_SECURITY_INFORMATION, psid : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); - SetUserObjectSecurity(hobj.into_param().abi(), psirequested, psid.into_param().abi()).ok() + SetUserObjectSecurity(hobj.param().abi(), psirequested, psid.param().abi()).ok() } pub const ACE_INHERITED_OBJECT_TYPE_PRESENT: SYSTEM_AUDIT_OBJECT_ACE_FLAGS = SYSTEM_AUDIT_OBJECT_ACE_FLAGS(2u32); pub const ACE_OBJECT_TYPE_PRESENT: SYSTEM_AUDIT_OBJECT_ACE_FLAGS = SYSTEM_AUDIT_OBJECT_ACE_FLAGS(1u32); 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 f40e14fbf0..7392dd488a 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs @@ -1,12 +1,12 @@ #[inline] pub unsafe fn FCIAddFile(hfci: *const core::ffi::c_void, pszsourcefile: P0, pszfilename: P1, fexecute: P2, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS, pfnfcigoi: PFNFCIGETOPENINFO, typecompress: u16) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hfci, pszsourcefile.into_param().abi(), pszfilename.into_param().abi(), fexecute.into_param().abi(), pfnfcignc, pfnfcis, pfnfcigoi, typecompress) + FCIAddFile(hfci, pszsourcefile.param().abi(), pszfilename.param().abi(), fexecute.param().abi(), 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 { @@ -21,10 +21,10 @@ pub unsafe fn FCIDestroy(hfci: *const core::ffi::c_void) -> super::super::Founda #[inline] pub unsafe fn FCIFlushCabinet(hfci: *const core::ffi::c_void, fgetnextcab: P0, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfci, fgetnextcab.into_param().abi(), pfnfcignc, pfnfcis) + FCIFlushCabinet(hfci, fgetnextcab.param().abi(), pfnfcignc, pfnfcis) } #[inline] pub unsafe fn FCIFlushFolder(hfci: *const core::ffi::c_void, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> super::super::Foundation::BOOL { @@ -34,11 +34,11 @@ pub unsafe fn FCIFlushFolder(hfci: *const core::ffi::c_void, pfnfcignc: PFNFCIGE #[inline] pub unsafe fn FDICopy(hfdi: *const core::ffi::c_void, pszcabinet: P0, pszcabpath: P1, flags: i32, pfnfdin: PFNFDINOTIFY, pfnfdid: PFNFDIDECRYPT, pvuser: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hfdi, pszcabinet.into_param().abi(), pszcabpath.into_param().abi(), flags, pfnfdin, pfnfdid, core::mem::transmute(pvuser.unwrap_or(std::ptr::null()))) + FDICopy(hfdi, pszcabinet.param().abi(), pszcabpath.param().abi(), flags, pfnfdin, pfnfdid, core::mem::transmute(pvuser.unwrap_or(std::ptr::null()))) } #[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 { @@ -58,10 +58,10 @@ pub unsafe fn FDIIsCabinet(hfdi: *const core::ffi::c_void, hf: isize, pfdici: Op #[inline] pub unsafe fn FDITruncateCabinet(hfdi: *const core::ffi::c_void, pszcabinetname: P0, ifoldertodelete: u16) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(hfdi, pszcabinetname.into_param().abi(), 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 f8c194b5ba..432fd17f79 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs @@ -1,55 +1,55 @@ #[inline] pub unsafe fn CfCloseHandle(filehandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfCloseHandle(filehandle : super::super::Foundation:: HANDLE)); - CfCloseHandle(filehandle.into_param().abi()) + CfCloseHandle(filehandle.param().abi()) } #[cfg(feature = "Win32_System_CorrelationVector")] #[inline] pub unsafe fn CfConnectSyncRoot(syncrootpath: P0, callbacktable: *const CF_CALLBACK_REGISTRATION, callbackcontext: Option<*const core::ffi::c_void>, connectflags: CF_CONNECT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CfConnectSyncRoot(syncrootpath.into_param().abi(), callbacktable, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), connectflags, &mut result__).map(|| result__) + CfConnectSyncRoot(syncrootpath.param().abi(), callbacktable, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null())), connectflags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfConvertToPlaceholder(filehandle: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), core::mem::transmute(fileidentity.unwrap_or(std::ptr::null())), fileidentitylength, convertflags, core::mem::transmute(convertusn.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() + CfConvertToPlaceholder(filehandle.param().abi(), core::mem::transmute(fileidentity.unwrap_or(std::ptr::null())), fileidentitylength, convertflags, core::mem::transmute(convertusn.unwrap_or(std::ptr::null_mut())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn CfCreatePlaceholders(basedirectorypath: P0, placeholderarray: &mut [CF_PLACEHOLDER_CREATE_INFO], createflags: CF_CREATE_FLAGS, entriesprocessed: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(placeholderarray.as_ptr()), placeholderarray.len().try_into().unwrap(), createflags, core::mem::transmute(entriesprocessed.unwrap_or(std::ptr::null_mut()))).ok() + CfCreatePlaceholders(basedirectorypath.param().abi(), core::mem::transmute(placeholderarray.as_ptr()), placeholderarray.len().try_into().unwrap(), createflags, core::mem::transmute(entriesprocessed.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfDehydratePlaceholder(filehandle: P0, startingoffset: i64, length: i64, dehydrateflags: CF_DEHYDRATE_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), startingoffset, length, dehydrateflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() + CfDehydratePlaceholder(filehandle.param().abi(), startingoffset, length, dehydrateflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CfDisconnectSyncRoot(connectionkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfDisconnectSyncRoot(connectionkey : CF_CONNECTION_KEY) -> windows_core::HRESULT); - CfDisconnectSyncRoot(connectionkey.into_param().abi()).ok() + CfDisconnectSyncRoot(connectionkey.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_System_CorrelationVector"))] #[inline] @@ -61,34 +61,34 @@ pub unsafe fn CfExecute(opinfo: *const CF_OPERATION_INFO, opparams: *mut CF_OPER #[inline] pub unsafe fn CfGetCorrelationVector(filehandle: P0, correlationvector: *mut super::super::System::CorrelationVector::CORRELATION_VECTOR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), correlationvector).ok() + CfGetCorrelationVector(filehandle.param().abi(), correlationvector).ok() } #[inline] pub unsafe fn CfGetPlaceholderInfo(filehandle: P0, infoclass: CF_PLACEHOLDER_INFO_CLASS, infobuffer: *mut core::ffi::c_void, infobufferlength: u32, returnedlength: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), infoclass, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).ok() + CfGetPlaceholderInfo(filehandle.param().abi(), infoclass, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CfGetPlaceholderRangeInfo(filehandle: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), infoclass, startingoffset, length, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).ok() + CfGetPlaceholderRangeInfo(filehandle.param().abi(), infoclass, startingoffset, length, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CfGetPlaceholderRangeInfoForHydration(connectionkey: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(connectionkey.into_param().abi(), transferkey, fileid, infoclass, startingoffset, rangelength, infobuffer, infobuffersize, core::mem::transmute(infobufferwritten.unwrap_or(std::ptr::null_mut()))).ok() + CfGetPlaceholderRangeInfoForHydration(connectionkey.param().abi(), transferkey, fileid, infoclass, startingoffset, rangelength, infobuffer, infobuffersize, core::mem::transmute(infobufferwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CfGetPlaceholderStateFromAttributeTag(fileattributes: u32, reparsetag: u32) -> CF_PLACEHOLDER_STATE { @@ -116,171 +116,171 @@ pub unsafe fn CfGetPlatformInfo() -> windows_core::Result { #[inline] pub unsafe fn CfGetSyncRootInfoByHandle(filehandle: P0, infoclass: CF_SYNC_ROOT_INFO_CLASS, infobuffer: *mut core::ffi::c_void, infobufferlength: u32, returnedlength: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), infoclass, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).ok() + CfGetSyncRootInfoByHandle(filehandle.param().abi(), infoclass, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), infoclass, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).ok() + CfGetSyncRootInfoByPath(filepath.param().abi(), infoclass, infobuffer, infobufferlength, core::mem::transmute(returnedlength.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CfGetTransferKey(filehandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfGetTransferKey(filehandle : super::super::Foundation:: HANDLE, transferkey : *mut i64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CfGetTransferKey(filehandle.into_param().abi(), &mut result__).map(|| result__) + CfGetTransferKey(filehandle.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CfGetWin32HandleFromProtectedHandle(protectedhandle: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfGetWin32HandleFromProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - CfGetWin32HandleFromProtectedHandle(protectedhandle.into_param().abi()) + CfGetWin32HandleFromProtectedHandle(protectedhandle.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfHydratePlaceholder(filehandle: P0, startingoffset: i64, length: i64, hydrateflags: CF_HYDRATE_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), startingoffset, length, hydrateflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() + CfHydratePlaceholder(filehandle.param().abi(), startingoffset, length, hydrateflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CfOpenFileWithOplock(filepath: P0, flags: CF_OPEN_FILE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CfOpenFileWithOplock(filepath.into_param().abi(), flags, &mut result__).map(|| result__) + CfOpenFileWithOplock(filepath.param().abi(), flags, &mut result__).map(|| result__) } #[inline] pub unsafe fn CfQuerySyncProviderStatus(connectionkey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfQuerySyncProviderStatus(connectionkey : CF_CONNECTION_KEY, providerstatus : *mut CF_SYNC_PROVIDER_STATUS) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CfQuerySyncProviderStatus(connectionkey.into_param().abi(), &mut result__).map(|| result__) + CfQuerySyncProviderStatus(connectionkey.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CfReferenceProtectedHandle(protectedhandle: P0) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfReferenceProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); - CfReferenceProtectedHandle(protectedhandle.into_param().abi()) + CfReferenceProtectedHandle(protectedhandle.param().abi()) } #[inline] pub unsafe fn CfRegisterSyncRoot(syncrootpath: P0, registration: *const CF_SYNC_REGISTRATION, policies: *const CF_SYNC_POLICIES, registerflags: CF_REGISTER_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), registration, policies, registerflags).ok() + CfRegisterSyncRoot(syncrootpath.param().abi(), registration, policies, registerflags).ok() } #[inline] pub unsafe fn CfReleaseProtectedHandle(protectedhandle: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfReleaseProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE)); - CfReleaseProtectedHandle(protectedhandle.into_param().abi()) + CfReleaseProtectedHandle(protectedhandle.param().abi()) } #[inline] pub unsafe fn CfReleaseTransferKey(filehandle: P0, transferkey: *const i64) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfReleaseTransferKey(filehandle : super::super::Foundation:: HANDLE, transferkey : *const i64)); - CfReleaseTransferKey(filehandle.into_param().abi(), transferkey) + CfReleaseTransferKey(filehandle.param().abi(), transferkey) } #[inline] pub unsafe fn CfReportProviderProgress(connectionkey: P0, transferkey: i64, providerprogresstotal: i64, providerprogresscompleted: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfReportProviderProgress(connectionkey : CF_CONNECTION_KEY, transferkey : i64, providerprogresstotal : i64, providerprogresscompleted : i64) -> windows_core::HRESULT); - CfReportProviderProgress(connectionkey.into_param().abi(), transferkey, providerprogresstotal, providerprogresscompleted).ok() + CfReportProviderProgress(connectionkey.param().abi(), transferkey, providerprogresstotal, providerprogresscompleted).ok() } #[inline] pub unsafe fn CfReportProviderProgress2(connectionkey: P0, transferkey: i64, requestkey: i64, providerprogresstotal: i64, providerprogresscompleted: i64, targetsessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(connectionkey.into_param().abi(), transferkey, requestkey, providerprogresstotal, providerprogresscompleted, targetsessionid).ok() + CfReportProviderProgress2(connectionkey.param().abi(), transferkey, requestkey, providerprogresstotal, providerprogresscompleted, targetsessionid).ok() } #[inline] pub unsafe fn CfReportSyncStatus(syncrootpath: P0, syncstatus: Option<*const CF_SYNC_STATUS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfReportSyncStatus(syncrootpath : windows_core::PCWSTR, syncstatus : *const CF_SYNC_STATUS) -> windows_core::HRESULT); - CfReportSyncStatus(syncrootpath.into_param().abi(), core::mem::transmute(syncstatus.unwrap_or(std::ptr::null()))).ok() + CfReportSyncStatus(syncrootpath.param().abi(), core::mem::transmute(syncstatus.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfRevertPlaceholder(filehandle: P0, revertflags: CF_REVERT_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), revertflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() + CfRevertPlaceholder(filehandle.param().abi(), revertflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_CorrelationVector")] #[inline] pub unsafe fn CfSetCorrelationVector(filehandle: P0, correlationvector: *const super::super::System::CorrelationVector::CORRELATION_VECTOR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), correlationvector).ok() + CfSetCorrelationVector(filehandle.param().abi(), correlationvector).ok() } #[inline] pub unsafe fn CfSetInSyncState(filehandle: P0, insyncstate: CF_IN_SYNC_STATE, insyncflags: CF_SET_IN_SYNC_FLAGS, insyncusn: Option<*mut i64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), insyncstate, insyncflags, core::mem::transmute(insyncusn.unwrap_or(std::ptr::null_mut()))).ok() + CfSetInSyncState(filehandle.param().abi(), insyncstate, insyncflags, core::mem::transmute(insyncusn.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CfSetPinState(filehandle: P0, pinstate: CF_PIN_STATE, pinflags: CF_SET_PIN_FLAGS, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), pinstate, pinflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() + CfSetPinState(filehandle.param().abi(), pinstate, pinflags, core::mem::transmute(overlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CfUnregisterSyncRoot(syncrootpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfUnregisterSyncRoot(syncrootpath : windows_core::PCWSTR) -> windows_core::HRESULT); - CfUnregisterSyncRoot(syncrootpath.into_param().abi()).ok() + CfUnregisterSyncRoot(syncrootpath.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] pub unsafe fn CfUpdatePlaceholder(filehandle: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - filehandle.into_param().abi(), + filehandle.param().abi(), core::mem::transmute(fsmetadata.unwrap_or(std::ptr::null())), core::mem::transmute(fileidentity.unwrap_or(std::ptr::null())), fileidentitylength, @@ -295,10 +295,10 @@ where #[inline] pub unsafe fn CfUpdateSyncProviderStatus(connectionkey: P0, providerstatus: CF_SYNC_PROVIDER_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cldapi.dll" "system" fn CfUpdateSyncProviderStatus(connectionkey : CF_CONNECTION_KEY, providerstatus : CF_SYNC_PROVIDER_STATUS) -> windows_core::HRESULT); - CfUpdateSyncProviderStatus(connectionkey.into_param().abi(), providerstatus).ok() + CfUpdateSyncProviderStatus(connectionkey.param().abi(), providerstatus).ok() } pub const CF_CALLBACK_CANCEL_FLAG_IO_ABORTED: CF_CALLBACK_CANCEL_FLAGS = CF_CALLBACK_CANCEL_FLAGS(2i32); pub const CF_CALLBACK_CANCEL_FLAG_IO_TIMEOUT: CF_CALLBACK_CANCEL_FLAGS = CF_CALLBACK_CANCEL_FLAGS(1i32); 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 86b33a0ffb..483dc29363 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn CloseCompressor(compressorhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cabinet.dll" "system" fn CloseCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - CloseCompressor(compressorhandle.into_param().abi()).ok() + CloseCompressor(compressorhandle.param().abi()).ok() } #[inline] pub unsafe fn CloseDecompressor(decompressorhandle: isize) -> windows_core::Result<()> { @@ -14,10 +14,10 @@ pub unsafe fn CloseDecompressor(decompressorhandle: isize) -> windows_core::Resu #[inline] pub unsafe fn Compress(compressorhandle: P0, uncompresseddata: Option<*const core::ffi::c_void>, uncompresseddatasize: usize, compressedbuffer: Option<*mut core::ffi::c_void>, compressedbuffersize: usize, compresseddatasize: *mut usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(compressorhandle.into_param().abi(), core::mem::transmute(uncompresseddata.unwrap_or(std::ptr::null())), uncompresseddatasize, core::mem::transmute(compressedbuffer.unwrap_or(std::ptr::null_mut())), compressedbuffersize, compresseddatasize).ok() + Compress(compressorhandle.param().abi(), core::mem::transmute(uncompresseddata.unwrap_or(std::ptr::null())), uncompresseddatasize, core::mem::transmute(compressedbuffer.unwrap_or(std::ptr::null_mut())), compressedbuffersize, compresseddatasize).ok() } #[inline] pub unsafe fn CreateCompressor(algorithm: COMPRESS_ALGORITHM, allocationroutines: Option<*const COMPRESS_ALLOCATION_ROUTINES>, compressorhandle: *mut COMPRESSOR_HANDLE) -> windows_core::Result<()> { @@ -37,10 +37,10 @@ pub unsafe fn Decompress(decompressorhandle: isize, compresseddata: Option<*cons #[inline] pub unsafe fn QueryCompressorInformation(compressorhandle: P0, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *mut core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(compressorhandle.into_param().abi(), compressinformationclass, compressinformation, compressinformationsize).ok() + QueryCompressorInformation(compressorhandle.param().abi(), compressinformationclass, compressinformation, compressinformationsize).ok() } #[inline] pub unsafe fn QueryDecompressorInformation(decompressorhandle: isize, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *mut core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { @@ -50,10 +50,10 @@ pub unsafe fn QueryDecompressorInformation(decompressorhandle: isize, compressin #[inline] pub unsafe fn ResetCompressor(compressorhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cabinet.dll" "system" fn ResetCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); - ResetCompressor(compressorhandle.into_param().abi()).ok() + ResetCompressor(compressorhandle.param().abi()).ok() } #[inline] pub unsafe fn ResetDecompressor(decompressorhandle: isize) -> windows_core::Result<()> { @@ -63,10 +63,10 @@ pub unsafe fn ResetDecompressor(decompressorhandle: isize) -> windows_core::Resu #[inline] pub unsafe fn SetCompressorInformation(compressorhandle: P0, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *const core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(compressorhandle.into_param().abi(), compressinformationclass, compressinformation, compressinformationsize).ok() + SetCompressorInformation(compressorhandle.param().abi(), compressinformationclass, compressinformation, compressinformationsize).ok() } #[inline] pub unsafe fn SetDecompressorInformation(decompressorhandle: isize, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *const core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { 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 e8b936bbcb..b89269d379 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs @@ -3,9 +3,9 @@ windows_core::imp::interface_hierarchy!(IDedupBackupSupport, windows_core::IUnkn impl IDedupBackupSupport { pub unsafe fn RestoreFiles(&self, numberoffiles: u32, filefullpaths: *const windows_core::BSTR, store: P0, flags: u32, fileresults: *mut windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreFiles)(windows_core::Interface::as_raw(self), numberoffiles, core::mem::transmute(filefullpaths), store.into_param().abi(), flags, fileresults).ok() + (windows_core::Interface::vtable(self).RestoreFiles)(windows_core::Interface::as_raw(self), numberoffiles, core::mem::transmute(filefullpaths), store.param().abi(), flags, fileresults).ok() } } #[repr(C)] @@ -24,9 +24,9 @@ impl IDedupChunkLibrary { } pub unsafe fn SetParameter(&self, dwparamtype: u32, vparamvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), dwparamtype, vparamvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), dwparamtype, vparamvalue.param().abi()).ok() } pub unsafe fn StartChunking(&self, iiditeratorinterfaceid: windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -58,10 +58,10 @@ impl IDedupDataPort { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertChunksWithStream(&self, pchunkmetadata: &[DedupChunk], databytecount: u32, pchunkdatastream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::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()), databytecount, pchunkdatastream.into_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__ = std::mem::zeroed(); @@ -70,10 +70,10 @@ impl IDedupDataPort { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitStreamsWithStream(&self, pstreams: &[DedupStream], entrycount: u32, pentriesstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::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()), entrycount, pentriesstream.into_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__ = std::mem::zeroed(); @@ -127,17 +127,17 @@ impl IDedupDataPortManager { } pub unsafe fn GetVolumeStatus(&self, options: u32, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVolumeStatus)(windows_core::Interface::as_raw(self), options, path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVolumeStatus)(windows_core::Interface::as_raw(self), options, path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetVolumeDataPort(&self, options: u32, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVolumeDataPort)(windows_core::Interface::as_raw(self), options, path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVolumeDataPort)(windows_core::Interface::as_raw(self), options, path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -176,18 +176,18 @@ windows_core::imp::interface_hierarchy!(IDedupReadFileCallback, windows_core::IU impl IDedupReadFileCallback { pub unsafe fn ReadBackupFile(&self, filefullpath: P0, fileoffset: i64, filebuffer: &mut [u8], returnedsize: *mut u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadBackupFile)(windows_core::Interface::as_raw(self), filefullpath.into_param().abi(), fileoffset, filebuffer.len().try_into().unwrap(), core::mem::transmute(filebuffer.as_ptr()), returnedsize, flags).ok() + (windows_core::Interface::vtable(self).ReadBackupFile)(windows_core::Interface::as_raw(self), filefullpath.param().abi(), fileoffset, filebuffer.len().try_into().unwrap(), core::mem::transmute(filebuffer.as_ptr()), 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()), readplanentries, readplan).ok() } pub unsafe fn PreviewContainerRead(&self, filefullpath: P0, readoffsets: &[DDP_FILE_EXTENT]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreviewContainerRead)(windows_core::Interface::as_raw(self), filefullpath.into_param().abi(), readoffsets.len().try_into().unwrap(), core::mem::transmute(readoffsets.as_ptr())).ok() + (windows_core::Interface::vtable(self).PreviewContainerRead)(windows_core::Interface::as_raw(self), filefullpath.param().abi(), readoffsets.len().try_into().unwrap(), core::mem::transmute(readoffsets.as_ptr())).ok() } } #[repr(C)] 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 24c835c99b..be59045f1d 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DistributedFileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DistributedFileSystem/mod.rs @@ -1,215 +1,215 @@ #[inline] pub unsafe fn NetDfsAdd(dfsentrypath: P0, servername: P1, sharename: P2, comment: P3, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), servername.into_param().abi(), sharename.into_param().abi(), comment.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), rootshare.into_param().abi(), ftdfsname.into_param().abi(), comment.into_param().abi(), 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: P2, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), ptargetpath.into_param().abi(), majorversion, pcomment.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), rootshare.into_param().abi(), comment.into_param().abi(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, prefmaxlen, buffer, entriesread, resumehandle) + NetDfsEnum(dfsname.param().abi(), level, prefmaxlen, buffer, entriesread, resumehandle) } #[inline] pub unsafe fn NetDfsGetClientInfo(dfsentrypath: P0, servername: P1, sharename: P2, level: u32, buffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), servername.into_param().abi(), sharename.into_param().abi(), level, buffer) + NetDfsGetClientInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, buffer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NetDfsGetFtContainerSecurity(domainname: P0, securityinformation: u32, ppsecuritydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), securityinformation, ppsecuritydescriptor, lpcbsecuritydescriptor) + NetDfsGetFtContainerSecurity(domainname.param().abi(), securityinformation, ppsecuritydescriptor, lpcbsecuritydescriptor) } #[inline] pub unsafe fn NetDfsGetInfo(dfsentrypath: P0, servername: P1, sharename: P2, level: u32, buffer: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), servername.into_param().abi(), sharename.into_param().abi(), level, buffer) + NetDfsGetInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, buffer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NetDfsGetSecurity(dfsentrypath: P0, securityinformation: u32, ppsecuritydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), securityinformation, ppsecuritydescriptor, lpcbsecuritydescriptor) + NetDfsGetSecurity(dfsentrypath.param().abi(), securityinformation, ppsecuritydescriptor, lpcbsecuritydescriptor) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NetDfsGetStdContainerSecurity(machinename: P0, securityinformation: u32, ppsecuritydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), securityinformation, ppsecuritydescriptor, lpcbsecuritydescriptor) + NetDfsGetStdContainerSecurity(machinename.param().abi(), securityinformation, ppsecuritydescriptor, lpcbsecuritydescriptor) } #[inline] pub unsafe fn NetDfsGetSupportedNamespaceVersion(origin: DFS_NAMESPACE_VERSION_ORIGIN, pname: P0, ppversioninfo: *mut *mut DFS_SUPPORTED_NAMESPACE_VERSION_INFO) -> u32 where - P0: windows_core::IntoParam, + P0: 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(origin, pname.into_param().abi(), ppversioninfo) + NetDfsGetSupportedNamespaceVersion(origin, pname.param().abi(), ppversioninfo) } #[inline] pub unsafe fn NetDfsMove(olddfsentrypath: P0, newdfsentrypath: P1, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), newdfsentrypath.into_param().abi(), flags) + NetDfsMove(olddfsentrypath.param().abi(), newdfsentrypath.param().abi(), flags) } #[inline] pub unsafe fn NetDfsRemove(dfsentrypath: P0, servername: P1, sharename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsRemove(dfsentrypath : windows_core::PCWSTR, servername : windows_core::PCWSTR, sharename : windows_core::PCWSTR) -> u32); - NetDfsRemove(dfsentrypath.into_param().abi(), servername.into_param().abi(), sharename.into_param().abi()) + NetDfsRemove(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi()) } #[inline] pub unsafe fn NetDfsRemoveFtRoot(servername: P0, rootshare: P1, ftdfsname: P2, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsRemoveFtRoot(servername : windows_core::PCWSTR, rootshare : windows_core::PCWSTR, ftdfsname : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsRemoveFtRoot(servername.into_param().abi(), rootshare.into_param().abi(), ftdfsname.into_param().abi(), flags) + NetDfsRemoveFtRoot(servername.param().abi(), rootshare.param().abi(), ftdfsname.param().abi(), flags) } #[inline] pub unsafe fn NetDfsRemoveFtRootForced(domainname: P0, servername: P1, rootshare: P2, ftdfsname: P3, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsRemoveFtRootForced(domainname : windows_core::PCWSTR, servername : windows_core::PCWSTR, rootshare : windows_core::PCWSTR, ftdfsname : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsRemoveFtRootForced(domainname.into_param().abi(), servername.into_param().abi(), rootshare.into_param().abi(), ftdfsname.into_param().abi(), flags) + NetDfsRemoveFtRootForced(domainname.param().abi(), servername.param().abi(), rootshare.param().abi(), ftdfsname.param().abi(), flags) } #[inline] pub unsafe fn NetDfsRemoveRootTarget(pdfspath: P0, ptargetpath: P1, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), ptargetpath.into_param().abi(), flags) + NetDfsRemoveRootTarget(pdfspath.param().abi(), ptargetpath.param().abi(), flags) } #[inline] pub unsafe fn NetDfsRemoveStdRoot(servername: P0, rootshare: P1, flags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetDfsRemoveStdRoot(servername : windows_core::PCWSTR, rootshare : windows_core::PCWSTR, flags : u32) -> u32); - NetDfsRemoveStdRoot(servername.into_param().abi(), rootshare.into_param().abi(), flags) + NetDfsRemoveStdRoot(servername.param().abi(), rootshare.param().abi(), flags) } #[inline] pub unsafe fn NetDfsSetClientInfo(dfsentrypath: P0, servername: P1, sharename: P2, level: u32, buffer: *const u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), servername.into_param().abi(), sharename.into_param().abi(), level, buffer) + NetDfsSetClientInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, buffer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NetDfsSetFtContainerSecurity(domainname: P0, securityinformation: u32, psecuritydescriptor: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()) + NetDfsSetFtContainerSecurity(domainname.param().abi(), securityinformation, psecuritydescriptor.param().abi()) } #[inline] pub unsafe fn NetDfsSetInfo(dfsentrypath: P0, servername: P1, sharename: P2, level: u32, buffer: *const u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), servername.into_param().abi(), sharename.into_param().abi(), level, buffer) + NetDfsSetInfo(dfsentrypath.param().abi(), servername.param().abi(), sharename.param().abi(), level, buffer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NetDfsSetSecurity(dfsentrypath: P0, securityinformation: u32, psecuritydescriptor: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()) + NetDfsSetSecurity(dfsentrypath.param().abi(), securityinformation, psecuritydescriptor.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NetDfsSetStdContainerSecurity(machinename: P0, securityinformation: u32, psecuritydescriptor: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()) + NetDfsSetStdContainerSecurity(machinename.param().abi(), securityinformation, psecuritydescriptor.param().abi()) } 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 ab023c642b..82e8bf9a73 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs @@ -188,10 +188,10 @@ impl IEnumEnhancedStorageACT { } pub unsafe fn GetMatchingACT(&self, szvolume: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMatchingACT)(windows_core::Interface::as_raw(self), szvolume.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMatchingACT)(windows_core::Interface::as_raw(self), szvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] 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 1afda63048..b8ab90a337 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs @@ -2,67 +2,67 @@ #[inline] pub unsafe fn FhServiceBlockBackup(pipe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceBlockBackup(pipe : super::super::System::WindowsProgramming:: FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceBlockBackup(pipe.into_param().abi()).ok() + FhServiceBlockBackup(pipe.param().abi()).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FhServiceClosePipe(pipe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceClosePipe(pipe : super::super::System::WindowsProgramming:: FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceClosePipe(pipe.into_param().abi()).ok() + FhServiceClosePipe(pipe.param().abi()).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FhServiceOpenPipe(startserviceifstopped: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceOpenPipe(startserviceifstopped : super::super::Foundation:: BOOL, pipe : *mut super::super::System::WindowsProgramming:: FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - FhServiceOpenPipe(startserviceifstopped.into_param().abi(), &mut result__).map(|| result__) + FhServiceOpenPipe(startserviceifstopped.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FhServiceReloadConfiguration(pipe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceReloadConfiguration(pipe : super::super::System::WindowsProgramming:: FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceReloadConfiguration(pipe.into_param().abi()).ok() + FhServiceReloadConfiguration(pipe.param().abi()).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FhServiceStartBackup(pipe: P0, lowpriorityio: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStartBackup(pipe : super::super::System::WindowsProgramming:: FH_SERVICE_PIPE_HANDLE, lowpriorityio : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - FhServiceStartBackup(pipe.into_param().abi(), lowpriorityio.into_param().abi()).ok() + FhServiceStartBackup(pipe.param().abi(), lowpriorityio.param().abi()).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FhServiceStopBackup(pipe: P0, stoptracking: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStopBackup(pipe : super::super::System::WindowsProgramming:: FH_SERVICE_PIPE_HANDLE, stoptracking : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - FhServiceStopBackup(pipe.into_param().abi(), stoptracking.into_param().abi()).ok() + FhServiceStopBackup(pipe.param().abi(), stoptracking.param().abi()).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FhServiceUnblockBackup(pipe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceUnblockBackup(pipe : super::super::System::WindowsProgramming:: FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); - FhServiceUnblockBackup(pipe.into_param().abi()).ok() + FhServiceUnblockBackup(pipe.param().abi()).ok() } windows_core::imp::define_interface!(IFhConfigMgr, IFhConfigMgr_Vtbl, 0x6a5fea5b_bf8f_4ee5_b8c3_44d8a0d7331c); windows_core::imp::interface_hierarchy!(IFhConfigMgr, windows_core::IUnknown); @@ -72,26 +72,26 @@ impl IFhConfigMgr { } pub unsafe fn CreateDefaultConfiguration(&self, overwriteifexists: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDefaultConfiguration)(windows_core::Interface::as_raw(self), overwriteifexists.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDefaultConfiguration)(windows_core::Interface::as_raw(self), overwriteifexists.param().abi()).ok() } pub unsafe fn SaveConfiguration(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveConfiguration)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddRemoveExcludeRule(&self, add: P0, category: FH_PROTECTED_ITEM_CATEGORY, item: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRemoveExcludeRule)(windows_core::Interface::as_raw(self), add.into_param().abi(), category, item.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRemoveExcludeRule)(windows_core::Interface::as_raw(self), add.param().abi(), category, item.param().abi()).ok() } pub unsafe fn GetIncludeExcludeRules(&self, include: P0, category: FH_PROTECTED_ITEM_CATEGORY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIncludeExcludeRules)(windows_core::Interface::as_raw(self), include.into_param().abi(), category, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIncludeExcludeRules)(windows_core::Interface::as_raw(self), include.param().abi(), 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__ = std::mem::zeroed(); @@ -113,23 +113,23 @@ impl IFhConfigMgr { } pub unsafe fn ValidateTarget(&self, targeturl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ValidateTarget)(windows_core::Interface::as_raw(self), targeturl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ValidateTarget)(windows_core::Interface::as_raw(self), targeturl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ProvisionAndSetNewTarget(&self, targeturl: P0, targetname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProvisionAndSetNewTarget)(windows_core::Interface::as_raw(self), targeturl.into_param().abi(), targetname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProvisionAndSetNewTarget)(windows_core::Interface::as_raw(self), targeturl.param().abi(), targetname.param().abi()).ok() } pub unsafe fn ChangeDefaultTargetRecommendation(&self, recommend: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeDefaultTargetRecommendation)(windows_core::Interface::as_raw(self), recommend.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeDefaultTargetRecommendation)(windows_core::Interface::as_raw(self), recommend.param().abi()).ok() } pub unsafe fn QueryProtectionStatus(&self, protectionstate: *mut u32, protecteduntiltime: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryProtectionStatus)(windows_core::Interface::as_raw(self), protectionstate, core::mem::transmute(protecteduntiltime)).ok() @@ -158,16 +158,16 @@ windows_core::imp::interface_hierarchy!(IFhReassociation, windows_core::IUnknown impl IFhReassociation { pub unsafe fn ValidateTarget(&self, targeturl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ValidateTarget)(windows_core::Interface::as_raw(self), targeturl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ValidateTarget)(windows_core::Interface::as_raw(self), targeturl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ScanTargetForConfigurations(&self, targeturl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScanTargetForConfigurations)(windows_core::Interface::as_raw(self), targeturl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScanTargetForConfigurations)(windows_core::Interface::as_raw(self), targeturl.param().abi()).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), index, core::mem::transmute(username), core::mem::transmute(pcname), backuptime).ok() @@ -177,9 +177,9 @@ impl IFhReassociation { } pub unsafe fn PerformReassociation(&self, overwriteifexists: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PerformReassociation)(windows_core::Interface::as_raw(self), overwriteifexists.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PerformReassociation)(windows_core::Interface::as_raw(self), overwriteifexists.param().abi()).ok() } } #[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 7351e4bc31..124d54b205 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs @@ -17,12 +17,12 @@ windows_core::imp::interface_hierarchy!(IFsrmAccessDeniedRemediationClient, wind impl IFsrmAccessDeniedRemediationClient { pub unsafe fn Show(&self, parentwnd: usize, accesspath: P0, errortype: AdrClientErrorType, flags: i32, windowtitle: P1, windowmessage: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), parentwnd, accesspath.into_param().abi(), errortype, flags, windowtitle.into_param().abi(), windowmessage.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), parentwnd, accesspath.param().abi(), errortype, flags, windowtitle.param().abi(), windowmessage.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -96,9 +96,9 @@ impl IFsrmActionCommand { } pub unsafe fn SetExecutablePath(&self, executablepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExecutablePath)(windows_core::Interface::as_raw(self), executablepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExecutablePath)(windows_core::Interface::as_raw(self), executablepath.param().abi()).ok() } pub unsafe fn Arguments(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -106,9 +106,9 @@ impl IFsrmActionCommand { } pub unsafe fn SetArguments(&self, arguments: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), arguments.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), arguments.param().abi()).ok() } pub unsafe fn Account(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -123,9 +123,9 @@ impl IFsrmActionCommand { } pub unsafe fn SetWorkingDirectory(&self, workingdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.param().abi()).ok() } pub unsafe fn MonitorCommand(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -133,9 +133,9 @@ impl IFsrmActionCommand { } pub unsafe fn SetMonitorCommand(&self, monitorcommand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMonitorCommand)(windows_core::Interface::as_raw(self), monitorcommand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMonitorCommand)(windows_core::Interface::as_raw(self), monitorcommand.param().abi()).ok() } pub unsafe fn KillTimeOut(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -150,9 +150,9 @@ impl IFsrmActionCommand { } pub unsafe fn SetLogResult(&self, logresults: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogResult)(windows_core::Interface::as_raw(self), logresults.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogResult)(windows_core::Interface::as_raw(self), logresults.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -204,9 +204,9 @@ impl IFsrmActionEmail { } pub unsafe fn SetMailFrom(&self, mailfrom: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailFrom)(windows_core::Interface::as_raw(self), mailfrom.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailFrom)(windows_core::Interface::as_raw(self), mailfrom.param().abi()).ok() } pub unsafe fn MailReplyTo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -214,9 +214,9 @@ impl IFsrmActionEmail { } pub unsafe fn SetMailReplyTo(&self, mailreplyto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailReplyTo)(windows_core::Interface::as_raw(self), mailreplyto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailReplyTo)(windows_core::Interface::as_raw(self), mailreplyto.param().abi()).ok() } pub unsafe fn MailTo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -224,9 +224,9 @@ impl IFsrmActionEmail { } pub unsafe fn SetMailTo(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } pub unsafe fn MailCc(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -234,9 +234,9 @@ impl IFsrmActionEmail { } pub unsafe fn SetMailCc(&self, mailcc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailCc)(windows_core::Interface::as_raw(self), mailcc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailCc)(windows_core::Interface::as_raw(self), mailcc.param().abi()).ok() } pub unsafe fn MailBcc(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -244,9 +244,9 @@ impl IFsrmActionEmail { } pub unsafe fn SetMailBcc(&self, mailbcc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailBcc)(windows_core::Interface::as_raw(self), mailbcc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailBcc)(windows_core::Interface::as_raw(self), mailbcc.param().abi()).ok() } pub unsafe fn MailSubject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -254,9 +254,9 @@ impl IFsrmActionEmail { } pub unsafe fn SetMailSubject(&self, mailsubject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailSubject)(windows_core::Interface::as_raw(self), mailsubject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailSubject)(windows_core::Interface::as_raw(self), mailsubject.param().abi()).ok() } pub unsafe fn MessageText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -264,9 +264,9 @@ impl IFsrmActionEmail { } pub unsafe fn SetMessageText(&self, messagetext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMessageText)(windows_core::Interface::as_raw(self), messagetext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMessageText)(windows_core::Interface::as_raw(self), messagetext.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -318,9 +318,9 @@ impl IFsrmActionEmail2 { } pub unsafe fn SetMailFrom(&self, mailfrom: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMailFrom)(windows_core::Interface::as_raw(self), mailfrom.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMailFrom)(windows_core::Interface::as_raw(self), mailfrom.param().abi()).ok() } pub unsafe fn MailReplyTo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -328,9 +328,9 @@ impl IFsrmActionEmail2 { } pub unsafe fn SetMailReplyTo(&self, mailreplyto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMailReplyTo)(windows_core::Interface::as_raw(self), mailreplyto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMailReplyTo)(windows_core::Interface::as_raw(self), mailreplyto.param().abi()).ok() } pub unsafe fn MailTo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -338,9 +338,9 @@ impl IFsrmActionEmail2 { } pub unsafe fn SetMailTo(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMailTo)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMailTo)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } pub unsafe fn MailCc(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -348,9 +348,9 @@ impl IFsrmActionEmail2 { } pub unsafe fn SetMailCc(&self, mailcc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMailCc)(windows_core::Interface::as_raw(self), mailcc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMailCc)(windows_core::Interface::as_raw(self), mailcc.param().abi()).ok() } pub unsafe fn MailBcc(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -358,9 +358,9 @@ impl IFsrmActionEmail2 { } pub unsafe fn SetMailBcc(&self, mailbcc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMailBcc)(windows_core::Interface::as_raw(self), mailbcc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMailBcc)(windows_core::Interface::as_raw(self), mailbcc.param().abi()).ok() } pub unsafe fn MailSubject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -368,9 +368,9 @@ impl IFsrmActionEmail2 { } pub unsafe fn SetMailSubject(&self, mailsubject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMailSubject)(windows_core::Interface::as_raw(self), mailsubject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMailSubject)(windows_core::Interface::as_raw(self), mailsubject.param().abi()).ok() } pub unsafe fn MessageText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -378,9 +378,9 @@ impl IFsrmActionEmail2 { } pub unsafe fn SetMessageText(&self, messagetext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMessageText)(windows_core::Interface::as_raw(self), messagetext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMessageText)(windows_core::Interface::as_raw(self), messagetext.param().abi()).ok() } pub unsafe fn AttachmentFileListSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -434,9 +434,9 @@ impl IFsrmActionEventLog { } pub unsafe fn SetMessageText(&self, messagetext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMessageText)(windows_core::Interface::as_raw(self), messagetext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMessageText)(windows_core::Interface::as_raw(self), messagetext.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -487,9 +487,9 @@ impl IFsrmActionReport { } pub unsafe fn SetMailTo(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -523,9 +523,9 @@ impl IFsrmAutoApplyQuota { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -539,9 +539,9 @@ impl IFsrmAutoApplyQuota { } pub unsafe fn SetQuotaLimit(&self, quotalimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.param().abi()).ok() } pub unsafe fn QuotaFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -596,9 +596,9 @@ impl IFsrmAutoApplyQuota { } pub unsafe fn ApplyTemplate(&self, quotatemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ApplyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ApplyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExcludeFolders(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -660,9 +660,9 @@ impl IFsrmClassificationManager { } pub unsafe fn SetClassificationReportMailTo(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClassificationReportMailTo)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClassificationReportMailTo)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } pub unsafe fn ClassificationReportEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -670,9 +670,9 @@ impl IFsrmClassificationManager { } pub unsafe fn SetClassificationReportEnabled(&self, reportenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClassificationReportEnabled)(windows_core::Interface::as_raw(self), reportenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClassificationReportEnabled)(windows_core::Interface::as_raw(self), reportenabled.param().abi()).ok() } pub unsafe fn ClassificationLastReportPathWithoutExtension(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -699,10 +699,10 @@ impl IFsrmClassificationManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPropertyDefinition(&self, propertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyDefinition)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyDefinition)(windows_core::Interface::as_raw(self), propertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumRules(&self, ruletype: FsrmRuleType, options: FsrmEnumOptions) -> windows_core::Result { @@ -717,10 +717,10 @@ impl IFsrmClassificationManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRule(&self, rulename: P0, ruletype: FsrmRuleType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), rulename.into_param().abi(), ruletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRule)(windows_core::Interface::as_raw(self), rulename.param().abi(), ruletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumModuleDefinitions(&self, moduletype: FsrmPipelineModuleType, options: FsrmEnumOptions) -> windows_core::Result { @@ -735,16 +735,16 @@ impl IFsrmClassificationManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetModuleDefinition(&self, modulename: P0, moduletype: FsrmPipelineModuleType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModuleDefinition)(windows_core::Interface::as_raw(self), modulename.into_param().abi(), moduletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetModuleDefinition)(windows_core::Interface::as_raw(self), modulename.param().abi(), moduletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RunClassification(&self, context: FsrmReportGenerationContext, reserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunClassification)(windows_core::Interface::as_raw(self), context, reserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RunClassification)(windows_core::Interface::as_raw(self), context, reserved.param().abi()).ok() } pub unsafe fn WaitForClassificationCompletion(&self, waitseconds: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -756,34 +756,34 @@ impl IFsrmClassificationManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumFileProperties(&self, filepath: P0, options: FsrmGetFilePropertyOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileProperties)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileProperties)(windows_core::Interface::as_raw(self), filepath.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileProperty(&self, filepath: P0, propertyname: P1, options: FsrmGetFilePropertyOptions) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileProperty)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), propertyname.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileProperty)(windows_core::Interface::as_raw(self), filepath.param().abi(), propertyname.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFileProperty(&self, filepath: P0, propertyname: P1, propertyvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileProperty)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), propertyname.into_param().abi(), propertyvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileProperty)(windows_core::Interface::as_raw(self), filepath.param().abi(), propertyname.param().abi(), propertyvalue.param().abi()).ok() } pub unsafe fn ClearFileProperty(&self, filepath: P0, property: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearFileProperty)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), property.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ClearFileProperty)(windows_core::Interface::as_raw(self), filepath.param().abi(), property.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -885,9 +885,9 @@ impl IFsrmClassificationManager2 { } pub unsafe fn SetClassificationReportMailTo(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClassificationReportMailTo)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClassificationReportMailTo)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } pub unsafe fn ClassificationReportEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -895,9 +895,9 @@ impl IFsrmClassificationManager2 { } pub unsafe fn SetClassificationReportEnabled(&self, reportenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClassificationReportEnabled)(windows_core::Interface::as_raw(self), reportenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClassificationReportEnabled)(windows_core::Interface::as_raw(self), reportenabled.param().abi()).ok() } pub unsafe fn ClassificationLastReportPathWithoutExtension(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -924,10 +924,10 @@ impl IFsrmClassificationManager2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPropertyDefinition(&self, propertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyDefinition)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPropertyDefinition)(windows_core::Interface::as_raw(self), propertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumRules(&self, ruletype: FsrmRuleType, options: FsrmEnumOptions) -> windows_core::Result { @@ -942,10 +942,10 @@ impl IFsrmClassificationManager2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRule(&self, rulename: P0, ruletype: FsrmRuleType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRule)(windows_core::Interface::as_raw(self), rulename.into_param().abi(), ruletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetRule)(windows_core::Interface::as_raw(self), rulename.param().abi(), ruletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumModuleDefinitions(&self, moduletype: FsrmPipelineModuleType, options: FsrmEnumOptions) -> windows_core::Result { @@ -960,16 +960,16 @@ impl IFsrmClassificationManager2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetModuleDefinition(&self, modulename: P0, moduletype: FsrmPipelineModuleType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetModuleDefinition)(windows_core::Interface::as_raw(self), modulename.into_param().abi(), moduletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetModuleDefinition)(windows_core::Interface::as_raw(self), modulename.param().abi(), moduletype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RunClassification(&self, context: FsrmReportGenerationContext, reserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RunClassification)(windows_core::Interface::as_raw(self), context, reserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RunClassification)(windows_core::Interface::as_raw(self), context, reserved.param().abi()).ok() } pub unsafe fn WaitForClassificationCompletion(&self, waitseconds: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -981,34 +981,34 @@ impl IFsrmClassificationManager2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumFileProperties(&self, filepath: P0, options: FsrmGetFilePropertyOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumFileProperties)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EnumFileProperties)(windows_core::Interface::as_raw(self), filepath.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileProperty(&self, filepath: P0, propertyname: P1, options: FsrmGetFilePropertyOptions) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFileProperty)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), propertyname.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFileProperty)(windows_core::Interface::as_raw(self), filepath.param().abi(), propertyname.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFileProperty(&self, filepath: P0, propertyname: P1, propertyvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileProperty)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), propertyname.into_param().abi(), propertyvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileProperty)(windows_core::Interface::as_raw(self), filepath.param().abi(), propertyname.param().abi(), propertyvalue.param().abi()).ok() } pub unsafe fn ClearFileProperty(&self, filepath: P0, property: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearFileProperty)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), property.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ClearFileProperty)(windows_core::Interface::as_raw(self), filepath.param().abi(), property.param().abi()).ok() } #[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<()> { @@ -1040,9 +1040,9 @@ impl IFsrmClassificationRule { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -1056,9 +1056,9 @@ impl IFsrmClassificationRule { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn RuleType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1070,9 +1070,9 @@ impl IFsrmClassificationRule { } pub unsafe fn SetModuleDefinitionName(&self, moduledefinitionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetModuleDefinitionName)(windows_core::Interface::as_raw(self), moduledefinitionname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetModuleDefinitionName)(windows_core::Interface::as_raw(self), moduledefinitionname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NamespaceRoots(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -1116,9 +1116,9 @@ impl IFsrmClassificationRule { } pub unsafe fn SetPropertyAffected(&self, property: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyAffected)(windows_core::Interface::as_raw(self), property.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropertyAffected)(windows_core::Interface::as_raw(self), property.param().abi()).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1126,9 +1126,9 @@ impl IFsrmClassificationRule { } pub unsafe fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1158,9 +1158,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -1174,9 +1174,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetModuleClsid(&self, moduleclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetModuleClsid)(windows_core::Interface::as_raw(self), moduleclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetModuleClsid)(windows_core::Interface::as_raw(self), moduleclsid.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1184,9 +1184,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Company(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1194,9 +1194,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetCompany(&self, company: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCompany)(windows_core::Interface::as_raw(self), company.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCompany)(windows_core::Interface::as_raw(self), company.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1204,9 +1204,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetVersion(&self, version: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), version.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), version.param().abi()).ok() } pub unsafe fn ModuleType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1218,9 +1218,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn NeedsFileContent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1228,9 +1228,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetNeedsFileContent(&self, needsfilecontent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNeedsFileContent)(windows_core::Interface::as_raw(self), needsfilecontent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNeedsFileContent)(windows_core::Interface::as_raw(self), needsfilecontent.param().abi()).ok() } pub unsafe fn Account(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1281,9 +1281,9 @@ impl IFsrmClassifierModuleDefinition { } pub unsafe fn SetNeedsExplicitValue(&self, needsexplicitvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNeedsExplicitValue)(windows_core::Interface::as_raw(self), needsexplicitvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNeedsExplicitValue)(windows_core::Interface::as_raw(self), needsexplicitvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1318,10 +1318,10 @@ impl IFsrmClassifierModuleImplementation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnLoad(&self, moduledefinition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OnLoad)(windows_core::Interface::as_raw(self), moduledefinition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OnLoad)(windows_core::Interface::as_raw(self), moduledefinition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnUnload(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnUnload)(windows_core::Interface::as_raw(self)).ok() @@ -1333,30 +1333,30 @@ impl IFsrmClassifierModuleImplementation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn UseRulesAndDefinitions(&self, rules: P0, propertydefinitions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UseRulesAndDefinitions)(windows_core::Interface::as_raw(self), rules.into_param().abi(), propertydefinitions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UseRulesAndDefinitions)(windows_core::Interface::as_raw(self), rules.param().abi(), propertydefinitions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnBeginFile(&self, propertybag: P0, arrayruleids: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeginFile)(windows_core::Interface::as_raw(self), propertybag.into_param().abi(), 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: P0, value: P1, applyvalue: *mut super::super::Foundation::VARIANT_BOOL, idrule: windows_core::GUID, idpropdef: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DoesPropertyValueApply)(windows_core::Interface::as_raw(self), property.into_param().abi(), value.into_param().abi(), applyvalue, core::mem::transmute(idrule), core::mem::transmute(idpropdef)).ok() + (windows_core::Interface::vtable(self).DoesPropertyValueApply)(windows_core::Interface::as_raw(self), property.param().abi(), value.param().abi(), applyvalue, core::mem::transmute(idrule), core::mem::transmute(idpropdef)).ok() } pub unsafe fn GetPropertyValueToApply(&self, property: P0, value: *mut windows_core::BSTR, idrule: windows_core::GUID, idpropdef: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyValueToApply)(windows_core::Interface::as_raw(self), property.into_param().abi(), core::mem::transmute(value), core::mem::transmute(idrule), core::mem::transmute(idpropdef)).ok() + (windows_core::Interface::vtable(self).GetPropertyValueToApply)(windows_core::Interface::as_raw(self), property.param().abi(), core::mem::transmute(value), core::mem::transmute(idrule), core::mem::transmute(idpropdef)).ok() } pub unsafe fn OnEndFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnEndFile)(windows_core::Interface::as_raw(self)).ok() @@ -1460,9 +1460,9 @@ impl IFsrmCommittableCollection { } pub unsafe fn Add(&self, item: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), item.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), item.param().abi()).ok() } pub unsafe fn Remove(&self, index: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Remove)(windows_core::Interface::as_raw(self), index).ok() @@ -1528,51 +1528,51 @@ windows_core::imp::interface_hierarchy!(IFsrmExportImport, windows_core::IUnknow impl IFsrmExportImport { pub unsafe fn ExportFileGroups(&self, filepath: P0, filegroupnamessafearray: *const windows_core::VARIANT, remotehost: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExportFileGroups)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(filegroupnamessafearray), remotehost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExportFileGroups)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(filegroupnamessafearray), remotehost.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportFileGroups(&self, filepath: P0, filegroupnamessafearray: *const windows_core::VARIANT, remotehost: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportFileGroups)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(filegroupnamessafearray), remotehost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ImportFileGroups)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(filegroupnamessafearray), remotehost.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExportFileScreenTemplates(&self, filepath: P0, templatenamessafearray: *const windows_core::VARIANT, remotehost: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExportFileScreenTemplates)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(templatenamessafearray), remotehost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExportFileScreenTemplates)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(templatenamessafearray), remotehost.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportFileScreenTemplates(&self, filepath: P0, templatenamessafearray: *const windows_core::VARIANT, remotehost: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportFileScreenTemplates)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(templatenamessafearray), remotehost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ImportFileScreenTemplates)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(templatenamessafearray), remotehost.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExportQuotaTemplates(&self, filepath: P0, templatenamessafearray: *const windows_core::VARIANT, remotehost: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExportQuotaTemplates)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(templatenamessafearray), remotehost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExportQuotaTemplates)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(templatenamessafearray), remotehost.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportQuotaTemplates(&self, filepath: P0, templatenamessafearray: *const windows_core::VARIANT, remotehost: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportQuotaTemplates)(windows_core::Interface::as_raw(self), filepath.into_param().abi(), core::mem::transmute(templatenamessafearray), remotehost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ImportQuotaTemplates)(windows_core::Interface::as_raw(self), filepath.param().abi(), core::mem::transmute(templatenamessafearray), remotehost.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1635,9 +1635,9 @@ impl IFsrmFileConditionProperty { } pub unsafe fn SetPropertyName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropertyName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn PropertyId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1666,9 +1666,9 @@ impl IFsrmFileConditionProperty { } pub unsafe fn SetValue(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1702,9 +1702,9 @@ impl IFsrmFileGroup { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -1718,9 +1718,9 @@ impl IFsrmFileGroup { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Members(&self) -> windows_core::Result { @@ -1730,9 +1730,9 @@ impl IFsrmFileGroup { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMembers(&self, members: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMembers)(windows_core::Interface::as_raw(self), members.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMembers)(windows_core::Interface::as_raw(self), members.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NonMembers(&self) -> windows_core::Result { @@ -1742,9 +1742,9 @@ impl IFsrmFileGroup { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetNonMembers(&self, nonmembers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNonMembers)(windows_core::Interface::as_raw(self), nonmembers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNonMembers)(windows_core::Interface::as_raw(self), nonmembers.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1786,9 +1786,9 @@ impl IFsrmFileGroupImported { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -1802,9 +1802,9 @@ impl IFsrmFileGroupImported { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Members(&self) -> windows_core::Result { @@ -1814,9 +1814,9 @@ impl IFsrmFileGroupImported { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMembers(&self, members: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMembers)(windows_core::Interface::as_raw(self), members.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMembers)(windows_core::Interface::as_raw(self), members.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NonMembers(&self) -> windows_core::Result { @@ -1826,9 +1826,9 @@ impl IFsrmFileGroupImported { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetNonMembers(&self, nonmembers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNonMembers)(windows_core::Interface::as_raw(self), nonmembers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNonMembers)(windows_core::Interface::as_raw(self), nonmembers.param().abi()).ok() } pub unsafe fn OverwriteOnCommit(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1836,9 +1836,9 @@ impl IFsrmFileGroupImported { } pub unsafe fn SetOverwriteOnCommit(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1862,10 +1862,10 @@ impl IFsrmFileGroupManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileGroup(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileGroup)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileGroup)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumFileGroups(&self, options: FsrmEnumOptions) -> windows_core::Result { @@ -1879,10 +1879,10 @@ impl IFsrmFileGroupManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportFileGroups(&self, serializedfilegroups: P0, filegroupnamesarray: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportFileGroups)(windows_core::Interface::as_raw(self), serializedfilegroups.into_param().abi(), core::mem::transmute(filegroupnamesarray), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ImportFileGroups)(windows_core::Interface::as_raw(self), serializedfilegroups.param().abi(), core::mem::transmute(filegroupnamesarray), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1923,9 +1923,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -1939,9 +1939,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NamespaceRoots(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -1958,9 +1958,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn OperationType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1975,9 +1975,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetExpirationDirectory(&self, expirationdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpirationDirectory)(windows_core::Interface::as_raw(self), expirationdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpirationDirectory)(windows_core::Interface::as_raw(self), expirationdirectory.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CustomAction(&self) -> windows_core::Result { @@ -2002,9 +2002,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetReportEnabled(&self, reportenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReportEnabled)(windows_core::Interface::as_raw(self), reportenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReportEnabled)(windows_core::Interface::as_raw(self), reportenabled.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Formats(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2021,9 +2021,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetMailTo(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } pub unsafe fn DaysSinceFileCreated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2064,9 +2064,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetTask(&self, taskname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), taskname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), taskname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parameters(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2099,9 +2099,9 @@ impl IFsrmFileManagementJob { } pub unsafe fn SetFileNamePattern(&self, filenamepattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileNamePattern)(windows_core::Interface::as_raw(self), filenamepattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileNamePattern)(windows_core::Interface::as_raw(self), filenamepattern.param().abi()).ok() } pub unsafe fn Run(&self, context: FsrmReportGenerationContext) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), context).ok() @@ -2135,10 +2135,10 @@ impl IFsrmFileManagementJob { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePropertyCondition(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyCondition)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyCondition)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateCustomAction(&self) -> windows_core::Result { @@ -2268,10 +2268,10 @@ impl IFsrmFileManagementJobManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileManagementJob(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileManagementJob)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileManagementJob)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2315,9 +2315,9 @@ impl IFsrmFileScreen { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2333,9 +2333,9 @@ impl IFsrmFileScreen { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBlockedFileGroups(&self, blocklist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.param().abi()).ok() } pub unsafe fn FileScreenFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2376,9 +2376,9 @@ impl IFsrmFileScreen { } pub unsafe fn ApplyTemplate(&self, filescreentemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyTemplate)(windows_core::Interface::as_raw(self), filescreentemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyTemplate)(windows_core::Interface::as_raw(self), filescreentemplatename.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2408,9 +2408,9 @@ impl IFsrmFileScreenBase { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2426,9 +2426,9 @@ impl IFsrmFileScreenBase { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBlockedFileGroups(&self, blocklist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.param().abi()).ok() } pub unsafe fn FileScreenFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2487,9 +2487,9 @@ impl IFsrmFileScreenException { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2509,9 +2509,9 @@ impl IFsrmFileScreenException { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAllowedFileGroups(&self, allowlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowedFileGroups)(windows_core::Interface::as_raw(self), allowlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowedFileGroups)(windows_core::Interface::as_raw(self), allowlist.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2547,50 +2547,50 @@ impl IFsrmFileScreenManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFileScreen(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFileScreen)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFileScreen)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileScreen(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileScreen)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileScreen)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumFileScreens(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileScreens)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileScreens)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFileScreenException(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFileScreenException)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFileScreenException)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileScreenException(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileScreenException)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileScreenException)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumFileScreenExceptions(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumFileScreenExceptions)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumFileScreenExceptions)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFileScreenCollection(&self) -> windows_core::Result { @@ -2655,9 +2655,9 @@ impl IFsrmFileScreenTemplate { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2673,9 +2673,9 @@ impl IFsrmFileScreenTemplate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBlockedFileGroups(&self, blocklist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.param().abi()).ok() } pub unsafe fn FileScreenFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2700,15 +2700,15 @@ impl IFsrmFileScreenTemplate { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CopyTemplate(&self, filescreentemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTemplate)(windows_core::Interface::as_raw(self), filescreentemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyTemplate)(windows_core::Interface::as_raw(self), filescreentemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> windows_core::Result { @@ -2744,9 +2744,9 @@ impl IFsrmFileScreenTemplateImported { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2762,9 +2762,9 @@ impl IFsrmFileScreenTemplateImported { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBlockedFileGroups(&self, blocklist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetBlockedFileGroups)(windows_core::Interface::as_raw(self), blocklist.param().abi()).ok() } pub unsafe fn FileScreenFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2789,15 +2789,15 @@ impl IFsrmFileScreenTemplateImported { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CopyTemplate(&self, filescreentemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTemplate)(windows_core::Interface::as_raw(self), filescreentemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyTemplate)(windows_core::Interface::as_raw(self), filescreentemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> windows_core::Result { @@ -2810,9 +2810,9 @@ impl IFsrmFileScreenTemplateImported { } pub unsafe fn SetOverwriteOnCommit(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2836,10 +2836,10 @@ impl IFsrmFileScreenTemplateManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTemplate(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumTemplates(&self, options: FsrmEnumOptions) -> windows_core::Result { @@ -2853,10 +2853,10 @@ impl IFsrmFileScreenTemplateManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportTemplates(&self, serializedfilescreentemplates: P0, filescreentemplatenamesarray: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportTemplates)(windows_core::Interface::as_raw(self), serializedfilescreentemplates.into_param().abi(), core::mem::transmute(filescreentemplatenamesarray), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ImportTemplates)(windows_core::Interface::as_raw(self), serializedfilescreentemplates.param().abi(), core::mem::transmute(filescreentemplatenamesarray), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2916,9 +2916,9 @@ impl IFsrmMutableCollection { } pub unsafe fn Add(&self, item: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), item.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), item.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), index).ok() @@ -2960,9 +2960,9 @@ impl IFsrmObject { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2990,10 +2990,10 @@ impl IFsrmPathMapper { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSharePathsForLocalPath(&self, localpath: P0) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSharePathsForLocalPath)(windows_core::Interface::as_raw(self), localpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSharePathsForLocalPath)(windows_core::Interface::as_raw(self), localpath.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3031,10 +3031,10 @@ impl IFsrmPipelineModuleConnector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Bind(&self, moduledefinition: P0, moduleimplementation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), moduledefinition.into_param().abi(), moduleimplementation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), moduledefinition.param().abi(), moduleimplementation.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3069,9 +3069,9 @@ impl IFsrmPipelineModuleDefinition { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3085,9 +3085,9 @@ impl IFsrmPipelineModuleDefinition { } pub unsafe fn SetModuleClsid(&self, moduleclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModuleClsid)(windows_core::Interface::as_raw(self), moduleclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetModuleClsid)(windows_core::Interface::as_raw(self), moduleclsid.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3095,9 +3095,9 @@ impl IFsrmPipelineModuleDefinition { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Company(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3105,9 +3105,9 @@ impl IFsrmPipelineModuleDefinition { } pub unsafe fn SetCompany(&self, company: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompany)(windows_core::Interface::as_raw(self), company.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCompany)(windows_core::Interface::as_raw(self), company.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3115,9 +3115,9 @@ impl IFsrmPipelineModuleDefinition { } pub unsafe fn SetVersion(&self, version: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), version.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), version.param().abi()).ok() } pub unsafe fn ModuleType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3129,9 +3129,9 @@ impl IFsrmPipelineModuleDefinition { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn NeedsFileContent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3139,9 +3139,9 @@ impl IFsrmPipelineModuleDefinition { } pub unsafe fn SetNeedsFileContent(&self, needsfilecontent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNeedsFileContent)(windows_core::Interface::as_raw(self), needsfilecontent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNeedsFileContent)(windows_core::Interface::as_raw(self), needsfilecontent.param().abi()).ok() } pub unsafe fn Account(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3214,10 +3214,10 @@ impl IFsrmPipelineModuleImplementation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnLoad(&self, moduledefinition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnLoad)(windows_core::Interface::as_raw(self), moduledefinition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OnLoad)(windows_core::Interface::as_raw(self), moduledefinition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnUnload(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnUnload)(windows_core::Interface::as_raw(self)).ok() @@ -3348,23 +3348,23 @@ impl IFsrmPropertyBag { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileProperty(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileProperty)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFileProperty(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileProperty)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn AddMessage(&self, message: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), message.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddMessage)(windows_core::Interface::as_raw(self), message.param().abi()).ok() } pub unsafe fn GetFileStreamInterface(&self, accessmode: FsrmFileStreamingMode, interfacetype: FsrmFileStreamingInterfaceType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3485,23 +3485,23 @@ impl IFsrmPropertyBag2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFileProperty(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFileProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFileProperty)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFileProperty(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileProperty)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn AddMessage(&self, message: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddMessage)(windows_core::Interface::as_raw(self), message.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddMessage)(windows_core::Interface::as_raw(self), message.param().abi()).ok() } pub unsafe fn GetFileStreamInterface(&self, accessmode: FsrmFileStreamingMode, interfacetype: FsrmFileStreamingInterfaceType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3539,9 +3539,9 @@ impl IFsrmPropertyCondition { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3556,9 +3556,9 @@ impl IFsrmPropertyCondition { } pub unsafe fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3592,9 +3592,9 @@ impl IFsrmPropertyDefinition { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3608,9 +3608,9 @@ impl IFsrmPropertyDefinition { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3696,9 +3696,9 @@ impl IFsrmPropertyDefinition2 { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3712,9 +3712,9 @@ impl IFsrmPropertyDefinition2 { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Type(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3760,9 +3760,9 @@ impl IFsrmPropertyDefinition2 { } pub unsafe fn SetDisplayName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn AppliesTo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3835,9 +3835,9 @@ impl IFsrmQuota { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3851,9 +3851,9 @@ impl IFsrmQuota { } pub unsafe fn SetQuotaLimit(&self, quotalimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.param().abi()).ok() } pub unsafe fn QuotaFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3908,9 +3908,9 @@ impl IFsrmQuota { } pub unsafe fn ApplyTemplate(&self, quotatemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ApplyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ApplyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.param().abi()).ok() } pub unsafe fn QuotaUsed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3957,9 +3957,9 @@ impl IFsrmQuotaBase { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3973,9 +3973,9 @@ impl IFsrmQuotaBase { } pub unsafe fn SetQuotaLimit(&self, quotalimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.param().abi()).ok() } pub unsafe fn QuotaFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4052,73 +4052,73 @@ impl IFsrmQuotaManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAutoApplyQuota(&self, quotatemplatename: P0, path: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAutoApplyQuota)(windows_core::Interface::as_raw(self), quotatemplatename.into_param().abi(), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAutoApplyQuota)(windows_core::Interface::as_raw(self), quotatemplatename.param().abi(), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAutoApplyQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAutoApplyQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAutoApplyQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRestrictiveQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRestrictiveQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRestrictiveQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumQuotas(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumQuotas)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumQuotas)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumAutoApplyQuotas(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumAutoApplyQuotas)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumAutoApplyQuotas)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumEffectiveQuotas(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumEffectiveQuotas)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumEffectiveQuotas)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Scan(&self, strpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), strpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), strpath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateQuotaCollection(&self) -> windows_core::Result { @@ -4195,73 +4195,73 @@ impl IFsrmQuotaManagerEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAutoApplyQuota(&self, quotatemplatename: P0, path: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateAutoApplyQuota)(windows_core::Interface::as_raw(self), quotatemplatename.into_param().abi(), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateAutoApplyQuota)(windows_core::Interface::as_raw(self), quotatemplatename.param().abi(), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAutoApplyQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetAutoApplyQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetAutoApplyQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRestrictiveQuota(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRestrictiveQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetRestrictiveQuota)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumQuotas(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumQuotas)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EnumQuotas)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumAutoApplyQuotas(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumAutoApplyQuotas)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EnumAutoApplyQuotas)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumEffectiveQuotas(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumEffectiveQuotas)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EnumEffectiveQuotas)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Scan(&self, strpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Scan)(windows_core::Interface::as_raw(self), strpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Scan)(windows_core::Interface::as_raw(self), strpath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateQuotaCollection(&self) -> windows_core::Result { @@ -4270,10 +4270,10 @@ impl IFsrmQuotaManagerEx { } pub unsafe fn IsAffectedByQuota(&self, path: P0, options: FsrmEnumOptions) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsAffectedByQuota)(windows_core::Interface::as_raw(self), path.into_param().abi(), options, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsAffectedByQuota)(windows_core::Interface::as_raw(self), path.param().abi(), options, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4298,9 +4298,9 @@ impl IFsrmQuotaObject { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -4314,9 +4314,9 @@ impl IFsrmQuotaObject { } pub unsafe fn SetQuotaLimit(&self, quotalimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.param().abi()).ok() } pub unsafe fn QuotaFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4371,9 +4371,9 @@ impl IFsrmQuotaObject { } pub unsafe fn ApplyTemplate(&self, quotatemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4403,9 +4403,9 @@ impl IFsrmQuotaTemplate { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -4419,9 +4419,9 @@ impl IFsrmQuotaTemplate { } pub unsafe fn SetQuotaLimit(&self, quotalimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.param().abi()).ok() } pub unsafe fn QuotaFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4460,15 +4460,15 @@ impl IFsrmQuotaTemplate { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CopyTemplate(&self, quotatemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> windows_core::Result { @@ -4504,9 +4504,9 @@ impl IFsrmQuotaTemplateImported { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -4520,9 +4520,9 @@ impl IFsrmQuotaTemplateImported { } pub unsafe fn SetQuotaLimit(&self, quotalimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetQuotaLimit)(windows_core::Interface::as_raw(self), quotalimit.param().abi()).ok() } pub unsafe fn QuotaFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4561,15 +4561,15 @@ impl IFsrmQuotaTemplateImported { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn CopyTemplate(&self, quotatemplatename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyTemplate)(windows_core::Interface::as_raw(self), quotatemplatename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> windows_core::Result { @@ -4582,9 +4582,9 @@ impl IFsrmQuotaTemplateImported { } pub unsafe fn SetOverwriteOnCommit(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOverwriteOnCommit)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4608,10 +4608,10 @@ impl IFsrmQuotaTemplateManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTemplate(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTemplate)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumTemplates(&self, options: FsrmEnumOptions) -> windows_core::Result { @@ -4625,10 +4625,10 @@ impl IFsrmQuotaTemplateManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportTemplates(&self, serializedquotatemplates: P0, quotatemplatenamesarray: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ImportTemplates)(windows_core::Interface::as_raw(self), serializedquotatemplates.into_param().abi(), core::mem::transmute(quotatemplatenamesarray), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ImportTemplates)(windows_core::Interface::as_raw(self), serializedquotatemplates.param().abi(), core::mem::transmute(quotatemplatenamesarray), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4669,9 +4669,9 @@ impl IFsrmReport { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4679,9 +4679,9 @@ impl IFsrmReport { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn LastGeneratedFileNamePrefix(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4693,9 +4693,9 @@ impl IFsrmReport { } pub unsafe fn SetFilter(&self, filter: FsrmReportFilter, filtervalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), filter, filtervalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), filter, filtervalue.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -4731,9 +4731,9 @@ impl IFsrmReportJob { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -4747,9 +4747,9 @@ impl IFsrmReportJob { } pub unsafe fn SetTask(&self, taskname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), taskname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), taskname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NamespaceRoots(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -4775,9 +4775,9 @@ impl IFsrmReportJob { } pub unsafe fn SetMailTo(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailTo)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } pub unsafe fn RunningStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4875,10 +4875,10 @@ impl IFsrmReportManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetReportJob(&self, taskname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReportJob)(windows_core::Interface::as_raw(self), taskname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReportJob)(windows_core::Interface::as_raw(self), taskname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetOutputDirectory(&self, context: FsrmReportGenerationContext) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4886,9 +4886,9 @@ impl IFsrmReportManager { } pub unsafe fn SetOutputDirectory(&self, context: FsrmReportGenerationContext, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputDirectory)(windows_core::Interface::as_raw(self), context, path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputDirectory)(windows_core::Interface::as_raw(self), context, path.param().abi()).ok() } pub unsafe fn IsFilterValidForReportType(&self, reporttype: FsrmReportType, filter: FsrmReportFilter) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4900,9 +4900,9 @@ impl IFsrmReportManager { } pub unsafe fn SetDefaultFilter(&self, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultFilter)(windows_core::Interface::as_raw(self), reporttype, filter, filtervalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultFilter)(windows_core::Interface::as_raw(self), reporttype, filter, filtervalue.param().abi()).ok() } pub unsafe fn GetReportSizeLimit(&self, limit: FsrmReportLimit) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4910,9 +4910,9 @@ impl IFsrmReportManager { } pub unsafe fn SetReportSizeLimit(&self, limit: FsrmReportLimit, limitvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReportSizeLimit)(windows_core::Interface::as_raw(self), limit, limitvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReportSizeLimit)(windows_core::Interface::as_raw(self), limit, limitvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4950,23 +4950,23 @@ impl IFsrmReportScheduler { } pub unsafe fn CreateScheduleTask(&self, taskname: P0, namespacessafearray: *const windows_core::VARIANT, serializedtask: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateScheduleTask)(windows_core::Interface::as_raw(self), taskname.into_param().abi(), core::mem::transmute(namespacessafearray), serializedtask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateScheduleTask)(windows_core::Interface::as_raw(self), taskname.param().abi(), core::mem::transmute(namespacessafearray), serializedtask.param().abi()).ok() } pub unsafe fn ModifyScheduleTask(&self, taskname: P0, namespacessafearray: *const windows_core::VARIANT, serializedtask: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifyScheduleTask)(windows_core::Interface::as_raw(self), taskname.into_param().abi(), core::mem::transmute(namespacessafearray), serializedtask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ModifyScheduleTask)(windows_core::Interface::as_raw(self), taskname.param().abi(), core::mem::transmute(namespacessafearray), serializedtask.param().abi()).ok() } pub unsafe fn DeleteScheduleTask(&self, taskname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteScheduleTask)(windows_core::Interface::as_raw(self), taskname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteScheduleTask)(windows_core::Interface::as_raw(self), taskname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4994,9 +4994,9 @@ impl IFsrmRule { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -5010,9 +5010,9 @@ impl IFsrmRule { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn RuleType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5024,9 +5024,9 @@ impl IFsrmRule { } pub unsafe fn SetModuleDefinitionName(&self, moduledefinitionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModuleDefinitionName)(windows_core::Interface::as_raw(self), moduledefinitionname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetModuleDefinitionName)(windows_core::Interface::as_raw(self), moduledefinitionname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NamespaceRoots(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -5099,9 +5099,9 @@ impl IFsrmSetting { } pub unsafe fn SetSmtpServer(&self, smtpserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSmtpServer)(windows_core::Interface::as_raw(self), smtpserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSmtpServer)(windows_core::Interface::as_raw(self), smtpserver.param().abi()).ok() } pub unsafe fn MailFrom(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5109,9 +5109,9 @@ impl IFsrmSetting { } pub unsafe fn SetMailFrom(&self, mailfrom: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMailFrom)(windows_core::Interface::as_raw(self), mailfrom.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMailFrom)(windows_core::Interface::as_raw(self), mailfrom.param().abi()).ok() } pub unsafe fn AdminEmail(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5119,9 +5119,9 @@ impl IFsrmSetting { } pub unsafe fn SetAdminEmail(&self, adminemail: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdminEmail)(windows_core::Interface::as_raw(self), adminemail.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAdminEmail)(windows_core::Interface::as_raw(self), adminemail.param().abi()).ok() } pub unsafe fn DisableCommandLine(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5129,9 +5129,9 @@ impl IFsrmSetting { } pub unsafe fn SetDisableCommandLine(&self, disablecommandline: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisableCommandLine)(windows_core::Interface::as_raw(self), disablecommandline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisableCommandLine)(windows_core::Interface::as_raw(self), disablecommandline.param().abi()).ok() } pub unsafe fn EnableScreeningAudit(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5139,15 +5139,15 @@ impl IFsrmSetting { } pub unsafe fn SetEnableScreeningAudit(&self, enablescreeningaudit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableScreeningAudit)(windows_core::Interface::as_raw(self), enablescreeningaudit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableScreeningAudit)(windows_core::Interface::as_raw(self), enablescreeningaudit.param().abi()).ok() } pub unsafe fn EmailTest(&self, mailto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmailTest)(windows_core::Interface::as_raw(self), mailto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EmailTest)(windows_core::Interface::as_raw(self), mailto.param().abi()).ok() } pub unsafe fn SetActionRunLimitInterval(&self, actiontype: FsrmActionType, delaytimeminutes: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetActionRunLimitInterval)(windows_core::Interface::as_raw(self), actiontype, delaytimeminutes).ok() @@ -5191,9 +5191,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -5207,9 +5207,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetModuleClsid(&self, moduleclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetModuleClsid)(windows_core::Interface::as_raw(self), moduleclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetModuleClsid)(windows_core::Interface::as_raw(self), moduleclsid.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5217,9 +5217,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Company(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5227,9 +5227,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetCompany(&self, company: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCompany)(windows_core::Interface::as_raw(self), company.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCompany)(windows_core::Interface::as_raw(self), company.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5237,9 +5237,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetVersion(&self, version: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), version.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVersion)(windows_core::Interface::as_raw(self), version.param().abi()).ok() } pub unsafe fn ModuleType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5251,9 +5251,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn NeedsFileContent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5261,9 +5261,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetNeedsFileContent(&self, needsfilecontent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNeedsFileContent)(windows_core::Interface::as_raw(self), needsfilecontent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNeedsFileContent)(windows_core::Interface::as_raw(self), needsfilecontent.param().abi()).ok() } pub unsafe fn Account(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5310,9 +5310,9 @@ impl IFsrmStorageModuleDefinition { } pub unsafe fn SetUpdatesFileContent(&self, updatesfilecontent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUpdatesFileContent)(windows_core::Interface::as_raw(self), updatesfilecontent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUpdatesFileContent)(windows_core::Interface::as_raw(self), updatesfilecontent.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5335,10 +5335,10 @@ impl IFsrmStorageModuleImplementation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnLoad(&self, moduledefinition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OnLoad)(windows_core::Interface::as_raw(self), moduledefinition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OnLoad)(windows_core::Interface::as_raw(self), moduledefinition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnUnload(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnUnload)(windows_core::Interface::as_raw(self)).ok() @@ -5346,23 +5346,23 @@ impl IFsrmStorageModuleImplementation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn UseDefinitions(&self, propertydefinitions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UseDefinitions)(windows_core::Interface::as_raw(self), propertydefinitions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UseDefinitions)(windows_core::Interface::as_raw(self), propertydefinitions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadProperties(&self, propertybag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadProperties)(windows_core::Interface::as_raw(self), propertybag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadProperties)(windows_core::Interface::as_raw(self), propertybag.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveProperties(&self, propertybag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveProperties)(windows_core::Interface::as_raw(self), propertybag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveProperties)(windows_core::Interface::as_raw(self), propertybag.param().abi()).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 bf20aae997..6e5fb4b25a 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -1,28 +1,28 @@ #[inline] pub unsafe fn AddLogContainer(hlog: P0, pcbcontainer: Option<*const u64>, pwszcontainerpath: P1, preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hlog.into_param().abi(), core::mem::transmute(pcbcontainer.unwrap_or(std::ptr::null())), pwszcontainerpath.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() + AddLogContainer(hlog.param().abi(), core::mem::transmute(pcbcontainer.unwrap_or(std::ptr::null())), pwszcontainerpath.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AddLogContainerSet(hlog: P0, pcbcontainer: Option<*const u64>, rgwszcontainerpath: &[windows_core::PCWSTR], preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(pcbcontainer.unwrap_or(std::ptr::null())), core::mem::transmute(rgwszcontainerpath.as_ptr()), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() + AddLogContainerSet(hlog.param().abi(), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(pcbcontainer.unwrap_or(std::ptr::null())), core::mem::transmute(rgwszcontainerpath.as_ptr()), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn AddUsersToEncryptedFile(lpfilename: P0, pencryptioncertificates: *const ENCRYPTION_CERTIFICATE_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AddUsersToEncryptedFile(lpfilename : windows_core::PCWSTR, pencryptioncertificates : *const ENCRYPTION_CERTIFICATE_LIST) -> u32); - AddUsersToEncryptedFile(lpfilename.into_param().abi(), pencryptioncertificates) + AddUsersToEncryptedFile(lpfilename.param().abi(), pencryptioncertificates) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -48,110 +48,110 @@ pub unsafe fn AreFileApisANSI() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn AreShortNamesEnabled(handle: P0, enabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AreShortNamesEnabled(handle : super::super::Foundation:: HANDLE, enabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - AreShortNamesEnabled(handle.into_param().abi(), enabled) + AreShortNamesEnabled(handle.param().abi(), enabled) } #[inline] pub unsafe fn BackupRead(hfile: P0, lpbuffer: &mut [u8], lpnumberofbytesread: *mut u32, babort: P1, bprocesssecurity: P2, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hfile.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofbytesread, babort.into_param().abi(), bprocesssecurity.into_param().abi(), lpcontext).ok() + BackupRead(hfile.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofbytesread, babort.param().abi(), bprocesssecurity.param().abi(), lpcontext).ok() } #[inline] pub unsafe fn BackupSeek(hfile: P0, dwlowbytestoseek: u32, dwhighbytestoseek: u32, lpdwlowbyteseeked: *mut u32, lpdwhighbyteseeked: *mut u32, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), dwlowbytestoseek, dwhighbytestoseek, lpdwlowbyteseeked, lpdwhighbyteseeked, lpcontext).ok() + BackupSeek(hfile.param().abi(), dwlowbytestoseek, dwhighbytestoseek, lpdwlowbyteseeked, lpdwhighbyteseeked, lpcontext).ok() } #[inline] pub unsafe fn BackupWrite(hfile: P0, lpbuffer: &[u8], lpnumberofbyteswritten: *mut u32, babort: P1, bprocesssecurity: P2, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hfile.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofbyteswritten, babort.into_param().abi(), bprocesssecurity.into_param().abi(), lpcontext).ok() + BackupWrite(hfile.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofbyteswritten, babort.param().abi(), bprocesssecurity.param().abi(), lpcontext).ok() } #[inline] pub unsafe fn BuildIoRingCancelRequest(ioring: P0, file: IORING_HANDLE_REF, optocancel: usize, userdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), core::mem::transmute(file), optocancel, userdata).ok() + BuildIoRingCancelRequest(ioring.param().abi(), core::mem::transmute(file), optocancel, userdata).ok() } #[inline] pub unsafe fn BuildIoRingFlushFile(ioring: P0, fileref: IORING_HANDLE_REF, flushmode: FILE_FLUSH_MODE, userdata: usize, sqeflags: IORING_SQE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), core::mem::transmute(fileref), flushmode, userdata, sqeflags).ok() + BuildIoRingFlushFile(ioring.param().abi(), core::mem::transmute(fileref), flushmode, userdata, sqeflags).ok() } #[inline] pub unsafe fn BuildIoRingReadFile(ioring: P0, fileref: IORING_HANDLE_REF, dataref: IORING_BUFFER_REF, numberofbytestoread: u32, fileoffset: u64, userdata: usize, sqeflags: IORING_SQE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), core::mem::transmute(fileref), core::mem::transmute(dataref), numberofbytestoread, fileoffset, userdata, sqeflags).ok() + BuildIoRingReadFile(ioring.param().abi(), core::mem::transmute(fileref), core::mem::transmute(dataref), numberofbytestoread, fileoffset, userdata, sqeflags).ok() } #[inline] pub unsafe fn BuildIoRingRegisterBuffers(ioring: P0, buffers: &[IORING_BUFFER_INFO], userdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), buffers.len().try_into().unwrap(), core::mem::transmute(buffers.as_ptr()), userdata).ok() + BuildIoRingRegisterBuffers(ioring.param().abi(), buffers.len().try_into().unwrap(), core::mem::transmute(buffers.as_ptr()), userdata).ok() } #[inline] pub unsafe fn BuildIoRingRegisterFileHandles(ioring: P0, handles: &[super::super::Foundation::HANDLE], userdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), handles.len().try_into().unwrap(), core::mem::transmute(handles.as_ptr()), userdata).ok() + BuildIoRingRegisterFileHandles(ioring.param().abi(), handles.len().try_into().unwrap(), core::mem::transmute(handles.as_ptr()), userdata).ok() } #[inline] pub unsafe fn BuildIoRingWriteFile(ioring: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), core::mem::transmute(fileref), core::mem::transmute(bufferref), numberofbytestowrite, fileoffset, writeflags, userdata, sqeflags).ok() + BuildIoRingWriteFile(ioring.param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CheckNameLegalDOS8Dot3A(lpname : windows_core::PCSTR, lpoemname : windows_core::PSTR, oemnamesize : u32, pbnamecontainsspaces : *mut super::super::Foundation:: BOOL, pbnamelegal : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CheckNameLegalDOS8Dot3A(lpname.into_param().abi(), core::mem::transmute(lpoemname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoemname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbnamecontainsspaces.unwrap_or(std::ptr::null_mut())), pbnamelegal).ok() + CheckNameLegalDOS8Dot3A(lpname.param().abi(), core::mem::transmute(lpoemname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoemname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbnamecontainsspaces.unwrap_or(std::ptr::null_mut())), pbnamelegal).ok() } #[inline] pub unsafe fn CheckNameLegalDOS8Dot3W(lpname: P0, lpoemname: Option<&mut [u8]>, pbnamecontainsspaces: Option<*mut super::super::Foundation::BOOL>, pbnamelegal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CheckNameLegalDOS8Dot3W(lpname : windows_core::PCWSTR, lpoemname : windows_core::PSTR, oemnamesize : u32, pbnamecontainsspaces : *mut super::super::Foundation:: BOOL, pbnamelegal : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CheckNameLegalDOS8Dot3W(lpname.into_param().abi(), core::mem::transmute(lpoemname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoemname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbnamecontainsspaces.unwrap_or(std::ptr::null_mut())), pbnamelegal).ok() + CheckNameLegalDOS8Dot3W(lpname.param().abi(), core::mem::transmute(lpoemname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoemname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbnamecontainsspaces.unwrap_or(std::ptr::null_mut())), pbnamelegal).ok() } #[inline] pub unsafe fn CloseAndResetLogFile(hlog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn CloseAndResetLogFile(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CloseAndResetLogFile(hlog.into_param().abi()).ok() + CloseAndResetLogFile(hlog.param().abi()).ok() } #[inline] pub unsafe fn CloseEncryptedFileRaw(pvcontext: *const core::ffi::c_void) { @@ -161,42 +161,42 @@ pub unsafe fn CloseEncryptedFileRaw(pvcontext: *const core::ffi::c_void) { #[inline] pub unsafe fn CloseIoRing(ioring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn CloseIoRing(ioring : HIORING) -> windows_core::HRESULT); - CloseIoRing(ioring.into_param().abi()).ok() + CloseIoRing(ioring.param().abi()).ok() } #[inline] pub unsafe fn CommitComplete(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn CommitComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - CommitComplete(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + CommitComplete(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn CommitEnlistment(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn CommitEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - CommitEnlistment(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + CommitEnlistment(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn CommitTransaction(transactionhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn CommitTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CommitTransaction(transactionhandle.into_param().abi()).ok() + CommitTransaction(transactionhandle.param().abi()).ok() } #[inline] pub unsafe fn CommitTransactionAsync(transactionhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn CommitTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CommitTransactionAsync(transactionhandle.into_param().abi()).ok() + CommitTransactionAsync(transactionhandle.param().abi()).ok() } #[inline] pub unsafe fn CompareFileTime(lpfiletime1: *const super::super::Foundation::FILETIME, lpfiletime2: *const super::super::Foundation::FILETIME) -> i32 { @@ -206,79 +206,79 @@ pub unsafe fn CompareFileTime(lpfiletime1: *const super::super::Foundation::FILE #[inline] pub unsafe fn CopyFile2(pwszexistingfilename: P0, pwsznewfilename: P1, pextendedparameters: Option<*const COPYFILE2_EXTENDED_PARAMETERS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CopyFile2(pwszexistingfilename : windows_core::PCWSTR, pwsznewfilename : windows_core::PCWSTR, pextendedparameters : *const COPYFILE2_EXTENDED_PARAMETERS) -> windows_core::HRESULT); - CopyFile2(pwszexistingfilename.into_param().abi(), pwsznewfilename.into_param().abi(), core::mem::transmute(pextendedparameters.unwrap_or(std::ptr::null()))).ok() + CopyFile2(pwszexistingfilename.param().abi(), pwsznewfilename.param().abi(), core::mem::transmute(pextendedparameters.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CopyFileA(lpexistingfilename: P0, lpnewfilename: P1, bfailifexists: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CopyFileA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, bfailifexists : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CopyFileA(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi(), bfailifexists.into_param().abi()).ok() + CopyFileA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), bfailifexists.param().abi()).ok() } #[inline] pub unsafe fn CopyFileExA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*mut super::super::Foundation::BOOL>, dwcopyflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 : u32) -> super::super::Foundation:: BOOL); - CopyFileExA(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null_mut())), dwcopyflags).ok() + CopyFileExA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null_mut())), dwcopyflags).ok() } #[inline] pub unsafe fn CopyFileExW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*mut super::super::Foundation::BOOL>, dwcopyflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 : u32) -> super::super::Foundation:: BOOL); - CopyFileExW(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null_mut())), dwcopyflags).ok() + CopyFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null_mut())), dwcopyflags).ok() } #[inline] pub unsafe fn CopyFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1, bfailifexists: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CopyFileFromAppW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, bfailifexists : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CopyFileFromAppW(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi(), bfailifexists.into_param().abi()) + CopyFileFromAppW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), bfailifexists.param().abi()) } #[inline] pub unsafe fn CopyFileTransactedA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*const super::super::Foundation::BOOL>, dwcopyflags: u32, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null())), dwcopyflags, htransaction.into_param().abi()).ok() + CopyFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null())), dwcopyflags, htransaction.param().abi()).ok() } #[inline] pub unsafe fn CopyFileTransactedW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*const super::super::Foundation::BOOL>, dwcopyflags: u32, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null())), dwcopyflags, htransaction.into_param().abi()).ok() + CopyFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), core::mem::transmute(pbcancel.unwrap_or(std::ptr::null())), dwcopyflags, htransaction.param().abi()).ok() } #[inline] pub unsafe fn CopyFileW(lpexistingfilename: P0, lpnewfilename: P1, bfailifexists: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CopyFileW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, bfailifexists : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CopyFileW(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi(), bfailifexists.into_param().abi()).ok() + CopyFileW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), bfailifexists.param().abi()).ok() } #[inline] pub unsafe fn CopyLZFile(hfsource: i32, hfdest: i32) -> i32 { @@ -289,198 +289,198 @@ pub unsafe fn CopyLZFile(hfsource: i32, hfdest: i32) -> i32 { #[inline] pub unsafe fn CreateDirectoryA(lppathname: P0, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryA(lppathname : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - CreateDirectoryA(lppathname.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() + CreateDirectoryA(lppathname.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateDirectoryExA(lptemplatedirectory: P0, lpnewdirectory: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryExA(lptemplatedirectory : windows_core::PCSTR, lpnewdirectory : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - CreateDirectoryExA(lptemplatedirectory.into_param().abi(), lpnewdirectory.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() + CreateDirectoryExA(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateDirectoryExW(lptemplatedirectory: P0, lpnewdirectory: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryExW(lptemplatedirectory : windows_core::PCWSTR, lpnewdirectory : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - CreateDirectoryExW(lptemplatedirectory.into_param().abi(), lpnewdirectory.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() + CreateDirectoryExW(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateDirectoryFromAppW(lppathname: P0, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CreateDirectoryFromAppW(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - CreateDirectoryFromAppW(lppathname.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) + CreateDirectoryFromAppW(lppathname.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateDirectoryTransactedA(lptemplatedirectory: P0, lpnewdirectory: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpnewdirectory.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.into_param().abi()).ok() + CreateDirectoryTransactedA(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateDirectoryTransactedW(lptemplatedirectory: P0, lpnewdirectory: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpnewdirectory.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.into_param().abi()).ok() + CreateDirectoryTransactedW(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateDirectoryW(lppathname: P0, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryW(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - CreateDirectoryW(lppathname.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() + CreateDirectoryW(lppathname.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateEnlistment(lpenlistmentattributes: *mut super::super::Security::SECURITY_ATTRIBUTES, resourcemanagerhandle: P0, transactionhandle: P1, notificationmask: u32, createoptions: u32, enlistmentkey: *mut core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(lpenlistmentattributes, resourcemanagerhandle.into_param().abi(), transactionhandle.into_param().abi(), notificationmask, createoptions, enlistmentkey); + let result__ = CreateEnlistment(lpenlistmentattributes, resourcemanagerhandle.param().abi(), transactionhandle.param().abi(), notificationmask, createoptions, enlistmentkey); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFile2(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, dwcreationdisposition: FILE_CREATION_DISPOSITION, pcreateexparams: Option<*const CREATEFILE2_EXTENDED_PARAMETERS>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwdesiredaccess, dwsharemode, dwcreationdisposition, core::mem::transmute(pcreateexparams.unwrap_or(std::ptr::null()))); + let result__ = CreateFile2(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, dwcreationdisposition, core::mem::transmute(pcreateexparams.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFile2FromAppW(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: u32, dwcreationdisposition: u32, pcreateexparams: Option<*const CREATEFILE2_EXTENDED_PARAMETERS>) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwdesiredaccess, dwsharemode, dwcreationdisposition, core::mem::transmute(pcreateexparams.unwrap_or(std::ptr::null()))) + CreateFile2FromAppW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, dwcreationdisposition, core::mem::transmute(pcreateexparams.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileA(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwcreationdisposition: FILE_CREATION_DISPOSITION, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES, htemplatefile: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.into_param().abi()); + let result__ = CreateFileA(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileFromAppW(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwcreationdisposition: u32, dwflagsandattributes: u32, htemplatefile: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.into_param().abi()) + CreateFileFromAppW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileTransactedA(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwcreationdisposition: FILE_CREATION_DISPOSITION, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES, htemplatefile: P1, htransaction: P2, pusminiversion: Option<*const TXFS_MINIVERSION>, lpextendedparameter: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.into_param().abi(), htransaction.into_param().abi(), core::mem::transmute(pusminiversion.unwrap_or(std::ptr::null())), core::mem::transmute(lpextendedparameter.unwrap_or(std::ptr::null()))); + let result__ = CreateFileTransactedA(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.param().abi(), htransaction.param().abi(), core::mem::transmute(pusminiversion.unwrap_or(std::ptr::null())), core::mem::transmute(lpextendedparameter.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileTransactedW(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwcreationdisposition: FILE_CREATION_DISPOSITION, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES, htemplatefile: P1, htransaction: P2, pusminiversion: Option<*const TXFS_MINIVERSION>, lpextendedparameter: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.into_param().abi(), htransaction.into_param().abi(), core::mem::transmute(pusminiversion.unwrap_or(std::ptr::null())), core::mem::transmute(lpextendedparameter.unwrap_or(std::ptr::null()))); + let result__ = CreateFileTransactedW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.param().abi(), htransaction.param().abi(), core::mem::transmute(pusminiversion.unwrap_or(std::ptr::null())), core::mem::transmute(lpextendedparameter.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileW(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwcreationdisposition: FILE_CREATION_DISPOSITION, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES, htemplatefile: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.into_param().abi()); + let result__ = CreateFileW(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwcreationdisposition, dwflagsandattributes, htemplatefile.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateHardLinkA(lpfilename: P0, lpexistingfilename: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkA(lpfilename : windows_core::PCSTR, lpexistingfilename : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - CreateHardLinkA(lpfilename.into_param().abi(), lpexistingfilename.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() + CreateHardLinkA(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateHardLinkTransactedA(lpfilename: P0, lpexistingfilename: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpexistingfilename.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.into_param().abi()).ok() + CreateHardLinkTransactedA(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateHardLinkTransactedW(lpfilename: P0, lpexistingfilename: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpexistingfilename.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.into_param().abi()).ok() + CreateHardLinkTransactedW(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), htransaction.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateHardLinkW(lpfilename: P0, lpexistingfilename: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkW(lpfilename : windows_core::PCWSTR, lpexistingfilename : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); - CreateHardLinkW(lpfilename.into_param().abi(), lpexistingfilename.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() + CreateHardLinkW(lpfilename.param().abi(), lpexistingfilename.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CreateIoRing(ioringversion: IORING_VERSION, flags: IORING_CREATE_FLAGS, submissionqueuesize: u32, completionqueuesize: u32) -> windows_core::Result { @@ -492,197 +492,197 @@ pub unsafe fn CreateIoRing(ioringversion: IORING_VERSION, flags: IORING_CREATE_F #[inline] pub unsafe fn CreateLogContainerScanContext(hlog: P0, cfromcontainer: u32, ccontainers: u32, escanmode: u8, pcxscan: *mut CLS_SCAN_CONTEXT, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), cfromcontainer, ccontainers, escanmode, pcxscan, poverlapped).ok() + CreateLogContainerScanContext(hlog.param().abi(), cfromcontainer, ccontainers, escanmode, pcxscan, poverlapped).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateLogFile(pszlogfilename: P0, fdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, psalogfile: *mut super::super::Security::SECURITY_ATTRIBUTES, fcreatedisposition: FILE_CREATION_DISPOSITION, fflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), fdesiredaccess, dwsharemode, psalogfile, fcreatedisposition, fflagsandattributes); + let result__ = CreateLogFile(pszlogfilename.param().abi(), fdesiredaccess, dwsharemode, psalogfile, fcreatedisposition, fflagsandattributes); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateLogMarshallingArea(hlog: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), pfnallocbuffer, pfnfreebuffer, pvblockalloccontext, cbmarshallingbuffer, cmaxwritebuffers, cmaxreadbuffers, ppvmarshal).ok() + CreateLogMarshallingArea(hlog.param().abi(), pfnallocbuffer, pfnfreebuffer, pvblockalloccontext, cbmarshallingbuffer, cmaxwritebuffers, cmaxreadbuffers, ppvmarshal).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateResourceManager(lpresourcemanagerattributes: *mut super::super::Security::SECURITY_ATTRIBUTES, resourcemanagerid: *mut windows_core::GUID, createoptions: u32, tmhandle: P0, description: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lpresourcemanagerattributes, resourcemanagerid, createoptions, tmhandle.into_param().abi(), description.into_param().abi()); + let result__ = CreateResourceManager(lpresourcemanagerattributes, resourcemanagerid, createoptions, tmhandle.param().abi(), description.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateSymbolicLinkA(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkA(lpsymlinkfilename : windows_core::PCSTR, lptargetfilename : windows_core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> super::super::Foundation:: BOOLEAN); - CreateSymbolicLinkA(lpsymlinkfilename.into_param().abi(), lptargetfilename.into_param().abi(), dwflags) + CreateSymbolicLinkA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags) } #[inline] pub unsafe fn CreateSymbolicLinkTransactedA(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: P2) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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) -> super::super::Foundation:: BOOLEAN); - CreateSymbolicLinkTransactedA(lpsymlinkfilename.into_param().abi(), lptargetfilename.into_param().abi(), dwflags, htransaction.into_param().abi()) + CreateSymbolicLinkTransactedA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags, htransaction.param().abi()) } #[inline] pub unsafe fn CreateSymbolicLinkTransactedW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: P2) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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) -> super::super::Foundation:: BOOLEAN); - CreateSymbolicLinkTransactedW(lpsymlinkfilename.into_param().abi(), lptargetfilename.into_param().abi(), dwflags, htransaction.into_param().abi()) + CreateSymbolicLinkTransactedW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags, htransaction.param().abi()) } #[inline] pub unsafe fn CreateSymbolicLinkW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkW(lpsymlinkfilename : windows_core::PCWSTR, lptargetfilename : windows_core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> super::super::Foundation:: BOOLEAN); - CreateSymbolicLinkW(lpsymlinkfilename.into_param().abi(), lptargetfilename.into_param().abi(), dwflags) + CreateSymbolicLinkW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), dwflags) } #[inline] pub unsafe fn CreateTapePartition(hdevice: P0, dwpartitionmethod: CREATE_TAPE_PARTITION_METHOD, dwcount: u32, dwsize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateTapePartition(hdevice : super::super::Foundation:: HANDLE, dwpartitionmethod : CREATE_TAPE_PARTITION_METHOD, dwcount : u32, dwsize : u32) -> u32); - CreateTapePartition(hdevice.into_param().abi(), dwpartitionmethod, dwcount, dwsize) + CreateTapePartition(hdevice.param().abi(), dwpartitionmethod, dwcount, dwsize) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateTransaction(lptransactionattributes: *mut super::super::Security::SECURITY_ATTRIBUTES, uow: *mut windows_core::GUID, createoptions: u32, isolationlevel: u32, isolationflags: u32, timeout: u32, description: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(lptransactionattributes, uow, createoptions, isolationlevel, isolationflags, timeout, description.into_param().abi()); + let result__ = CreateTransaction(lptransactionattributes, uow, createoptions, isolationlevel, isolationflags, timeout, description.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateTransactionManager(lptransactionattributes: *mut super::super::Security::SECURITY_ATTRIBUTES, logfilename: P0, createoptions: u32, commitstrength: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(lptransactionattributes, logfilename.into_param().abi(), createoptions, commitstrength); + let result__ = CreateTransactionManager(lptransactionattributes, logfilename.param().abi(), createoptions, commitstrength); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DecryptFileA(lpfilename: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn DecryptFileA(lpfilename : windows_core::PCSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); - DecryptFileA(lpfilename.into_param().abi(), dwreserved).ok() + DecryptFileA(lpfilename.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn DecryptFileW(lpfilename: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn DecryptFileW(lpfilename : windows_core::PCWSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); - DecryptFileW(lpfilename.into_param().abi(), dwreserved).ok() + DecryptFileW(lpfilename.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn DefineDosDeviceA(dwflags: DEFINE_DOS_DEVICE_FLAGS, lpdevicename: P0, lptargetpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, lpdevicename.into_param().abi(), lptargetpath.into_param().abi()).ok() + DefineDosDeviceA(dwflags, lpdevicename.param().abi(), lptargetpath.param().abi()).ok() } #[inline] pub unsafe fn DefineDosDeviceW(dwflags: DEFINE_DOS_DEVICE_FLAGS, lpdevicename: P0, lptargetpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, lpdevicename.into_param().abi(), lptargetpath.into_param().abi()).ok() + DefineDosDeviceW(dwflags, lpdevicename.param().abi(), lptargetpath.param().abi()).ok() } #[inline] pub unsafe fn DeleteFileA(lpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteFileA(lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeleteFileA(lpfilename.into_param().abi()).ok() + DeleteFileA(lpfilename.param().abi()).ok() } #[inline] pub unsafe fn DeleteFileFromAppW(lpfilename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn DeleteFileFromAppW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeleteFileFromAppW(lpfilename.into_param().abi()) + DeleteFileFromAppW(lpfilename.param().abi()) } #[inline] pub unsafe fn DeleteFileTransactedA(lpfilename: P0, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), htransaction.into_param().abi()).ok() + DeleteFileTransactedA(lpfilename.param().abi(), htransaction.param().abi()).ok() } #[inline] pub unsafe fn DeleteFileTransactedW(lpfilename: P0, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), htransaction.into_param().abi()).ok() + DeleteFileTransactedW(lpfilename.param().abi(), htransaction.param().abi()).ok() } #[inline] pub unsafe fn DeleteFileW(lpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteFileW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeleteFileW(lpfilename.into_param().abi()).ok() + DeleteFileW(lpfilename.param().abi()).ok() } #[inline] pub unsafe fn DeleteLogByHandle(hlog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn DeleteLogByHandle(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteLogByHandle(hlog.into_param().abi()).ok() + DeleteLogByHandle(hlog.param().abi()).ok() } #[inline] pub unsafe fn DeleteLogFile(pszlogfilename: P0, pvreserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn DeleteLogFile(pszlogfilename : windows_core::PCWSTR, pvreserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - DeleteLogFile(pszlogfilename.into_param().abi(), pvreserved).ok() + DeleteLogFile(pszlogfilename.param().abi(), pvreserved).ok() } #[inline] pub unsafe fn DeleteLogMarshallingArea(pvmarshal: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -692,86 +692,86 @@ pub unsafe fn DeleteLogMarshallingArea(pvmarshal: *mut core::ffi::c_void) -> win #[inline] pub unsafe fn DeleteVolumeMountPointA(lpszvolumemountpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeleteVolumeMountPointA(lpszvolumemountpoint.into_param().abi()).ok() + DeleteVolumeMountPointA(lpszvolumemountpoint.param().abi()).ok() } #[inline] pub unsafe fn DeleteVolumeMountPointW(lpszvolumemountpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeleteVolumeMountPointW(lpszvolumemountpoint.into_param().abi()).ok() + DeleteVolumeMountPointW(lpszvolumemountpoint.param().abi()).ok() } #[inline] pub unsafe fn DeregisterManageableLogClient(hlog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn DeregisterManageableLogClient(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeregisterManageableLogClient(hlog.into_param().abi()).ok() + DeregisterManageableLogClient(hlog.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DuplicateEncryptionInfoFile(srcfilename: P0, dstfilename: P1, dwcreationdistribution: u32, dwattributes: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), dstfilename.into_param().abi(), dwcreationdistribution, dwattributes, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) + DuplicateEncryptionInfoFile(srcfilename.param().abi(), dstfilename.param().abi(), dwcreationdistribution, dwattributes, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn EncryptFileA(lpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EncryptFileA(lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - EncryptFileA(lpfilename.into_param().abi()).ok() + EncryptFileA(lpfilename.param().abi()).ok() } #[inline] pub unsafe fn EncryptFileW(lpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EncryptFileW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - EncryptFileW(lpfilename.into_param().abi()).ok() + EncryptFileW(lpfilename.param().abi()).ok() } #[inline] pub unsafe fn EncryptionDisable(dirpath: P0, disable: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EncryptionDisable(dirpath : windows_core::PCWSTR, disable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - EncryptionDisable(dirpath.into_param().abi(), disable.into_param().abi()).ok() + EncryptionDisable(dirpath.param().abi(), disable.param().abi()).ok() } #[inline] pub unsafe fn EraseTape(hdevice: P0, dwerasetype: ERASE_TAPE_TYPE, bimmediate: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EraseTape(hdevice : super::super::Foundation:: HANDLE, dwerasetype : ERASE_TAPE_TYPE, bimmediate : super::super::Foundation:: BOOL) -> u32); - EraseTape(hdevice.into_param().abi(), dwerasetype, bimmediate.into_param().abi()) + EraseTape(hdevice.param().abi(), dwerasetype, bimmediate.param().abi()) } #[inline] pub unsafe fn FileEncryptionStatusA(lpfilename: P0, lpstatus: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn FileEncryptionStatusA(lpfilename : windows_core::PCSTR, lpstatus : *mut u32) -> super::super::Foundation:: BOOL); - FileEncryptionStatusA(lpfilename.into_param().abi(), lpstatus).ok() + FileEncryptionStatusA(lpfilename.param().abi(), lpstatus).ok() } #[inline] pub unsafe fn FileEncryptionStatusW(lpfilename: P0, lpstatus: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn FileEncryptionStatusW(lpfilename : windows_core::PCWSTR, lpstatus : *mut u32) -> super::super::Foundation:: BOOL); - FileEncryptionStatusW(lpfilename.into_param().abi(), lpstatus).ok() + FileEncryptionStatusW(lpfilename.param().abi(), lpstatus).ok() } #[inline] pub unsafe fn FileTimeToLocalFileTime(lpfiletime: *const super::super::Foundation::FILETIME, lplocalfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { @@ -781,139 +781,139 @@ pub unsafe fn FileTimeToLocalFileTime(lpfiletime: *const super::super::Foundatio #[inline] pub unsafe fn FindClose(hfindfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindClose(hfindfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindClose(hfindfile.into_param().abi()).ok() + FindClose(hfindfile.param().abi()).ok() } #[inline] pub unsafe fn FindCloseChangeNotification(hchangehandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindCloseChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindCloseChangeNotification(hchangehandle.into_param().abi()).ok() + FindCloseChangeNotification(hchangehandle.param().abi()).ok() } #[inline] pub unsafe fn FindFirstChangeNotificationA(lppathname: P0, bwatchsubtree: P1, dwnotifyfilter: FILE_NOTIFY_CHANGE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), bwatchsubtree.into_param().abi(), dwnotifyfilter); + let result__ = FindFirstChangeNotificationA(lppathname.param().abi(), bwatchsubtree.param().abi(), dwnotifyfilter); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstChangeNotificationW(lppathname: P0, bwatchsubtree: P1, dwnotifyfilter: FILE_NOTIFY_CHANGE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), bwatchsubtree.into_param().abi(), dwnotifyfilter); + let result__ = FindFirstChangeNotificationW(lppathname.param().abi(), bwatchsubtree.param().abi(), dwnotifyfilter); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileA(lpfilename: P0, lpfindfiledata: *mut WIN32_FIND_DATAA) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileA(lpfilename : windows_core::PCSTR, lpfindfiledata : *mut WIN32_FIND_DATAA) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileA(lpfilename.into_param().abi(), lpfindfiledata); + let result__ = FindFirstFileA(lpfilename.param().abi(), lpfindfiledata); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileExA(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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags); + let result__ = FindFirstFileExA(lpfilename.param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileExFromAppW(lpfilename: P0, finfolevelid: FINDEX_INFO_LEVELS, lpfindfiledata: *mut core::ffi::c_void, fsearchop: FINDEX_SEARCH_OPS, lpsearchfilter: Option<*const core::ffi::c_void>, dwadditionalflags: u32) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + 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.into_param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags) + FindFirstFileExFromAppW(lpfilename.param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags); + let result__ = FindFirstFileExW(lpfilename.param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileNameTransactedW(lpfilename: P0, dwflags: u32, stringlength: *mut u32, linkname: windows_core::PWSTR, htransaction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, stringlength, core::mem::transmute(linkname), htransaction.into_param().abi()); + let result__ = FindFirstFileNameTransactedW(lpfilename.param().abi(), dwflags, stringlength, core::mem::transmute(linkname), htransaction.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileNameW(lpfilename: P0, dwflags: u32, stringlength: *mut u32, linkname: windows_core::PWSTR) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, stringlength, core::mem::transmute(linkname)); + let result__ = FindFirstFileNameW(lpfilename.param().abi(), dwflags, stringlength, core::mem::transmute(linkname)); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileTransactedA(lpfilename: P0, finfolevelid: FINDEX_INFO_LEVELS, lpfindfiledata: *mut core::ffi::c_void, fsearchop: FINDEX_SEARCH_OPS, lpsearchfilter: Option<*const core::ffi::c_void>, dwadditionalflags: u32, htransaction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags, htransaction.into_param().abi()); + let result__ = FindFirstFileTransactedA(lpfilename.param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags, htransaction.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileTransactedW(lpfilename: P0, finfolevelid: FINDEX_INFO_LEVELS, lpfindfiledata: *mut core::ffi::c_void, fsearchop: FINDEX_SEARCH_OPS, lpsearchfilter: Option<*const core::ffi::c_void>, dwadditionalflags: u32, htransaction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags, htransaction.into_param().abi()); + let result__ = FindFirstFileTransactedW(lpfilename.param().abi(), finfolevelid, lpfindfiledata, fsearchop, core::mem::transmute(lpsearchfilter.unwrap_or(std::ptr::null())), dwadditionalflags, htransaction.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstFileW(lpfilename: P0, lpfindfiledata: *mut WIN32_FIND_DATAW) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstFileW(lpfilename : windows_core::PCWSTR, lpfindfiledata : *mut WIN32_FIND_DATAW) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstFileW(lpfilename.into_param().abi(), lpfindfiledata); + let result__ = FindFirstFileW(lpfilename.param().abi(), lpfindfiledata); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstStreamTransactedW(lpfilename: P0, infolevel: STREAM_INFO_LEVELS, lpfindstreamdata: *mut core::ffi::c_void, dwflags: u32, htransaction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), infolevel, lpfindstreamdata, dwflags, htransaction.into_param().abi()); + let result__ = FindFirstStreamTransactedW(lpfilename.param().abi(), infolevel, lpfindstreamdata, dwflags, htransaction.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstStreamW(lpfilename: P0, infolevel: STREAM_INFO_LEVELS, lpfindstreamdata: *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), infolevel, lpfindstreamdata, dwflags); + let result__ = FindFirstStreamW(lpfilename.param().abi(), infolevel, lpfindstreamdata, dwflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -925,19 +925,19 @@ pub unsafe fn FindFirstVolumeA(lpszvolumename: &mut [u8]) -> windows_core::Resul #[inline] pub unsafe fn FindFirstVolumeMountPointA(lpszrootpathname: P0, lpszvolumemountpoint: &mut [u8]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstVolumeMountPointA(lpszrootpathname : windows_core::PCSTR, lpszvolumemountpoint : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstVolumeMountPointA(lpszrootpathname.into_param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()); + let result__ = FindFirstVolumeMountPointA(lpszrootpathname.param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFirstVolumeMountPointW(lpszrootpathname: P0, lpszvolumemountpoint: &mut [u16]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindFirstVolumeMountPointW(lpszrootpathname : windows_core::PCWSTR, lpszvolumemountpoint : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: HANDLE); - let result__ = FindFirstVolumeMountPointW(lpszrootpathname.into_param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()); + let result__ = FindFirstVolumeMountPointW(lpszrootpathname.param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -949,98 +949,98 @@ pub unsafe fn FindFirstVolumeW(lpszvolumename: &mut [u16]) -> windows_core::Resu #[inline] pub unsafe fn FindNextChangeNotification(hchangehandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindNextChangeNotification(hchangehandle.into_param().abi()).ok() + FindNextChangeNotification(hchangehandle.param().abi()).ok() } #[inline] pub unsafe fn FindNextFileA(hfindfile: P0, lpfindfiledata: *mut WIN32_FIND_DATAA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextFileA(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAA) -> super::super::Foundation:: BOOL); - FindNextFileA(hfindfile.into_param().abi(), lpfindfiledata).ok() + FindNextFileA(hfindfile.param().abi(), lpfindfiledata).ok() } #[inline] pub unsafe fn FindNextFileNameW(hfindstream: P0, stringlength: *mut u32, linkname: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfindstream.into_param().abi(), stringlength, core::mem::transmute(linkname)).ok() + FindNextFileNameW(hfindstream.param().abi(), stringlength, core::mem::transmute(linkname)).ok() } #[inline] pub unsafe fn FindNextFileW(hfindfile: P0, lpfindfiledata: *mut WIN32_FIND_DATAW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextFileW(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAW) -> super::super::Foundation:: BOOL); - FindNextFileW(hfindfile.into_param().abi(), lpfindfiledata).ok() + FindNextFileW(hfindfile.param().abi(), lpfindfiledata).ok() } #[inline] pub unsafe fn FindNextStreamW(hfindstream: P0, lpfindstreamdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextStreamW(hfindstream : super::super::Foundation:: HANDLE, lpfindstreamdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - FindNextStreamW(hfindstream.into_param().abi(), lpfindstreamdata).ok() + FindNextStreamW(hfindstream.param().abi(), lpfindstreamdata).ok() } #[inline] pub unsafe fn FindNextVolumeA(hfindvolume: P0, lpszvolumename: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeA(hfindvolume : super::super::Foundation:: HANDLE, lpszvolumename : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - FindNextVolumeA(hfindvolume.into_param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() + FindNextVolumeA(hfindvolume.param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn FindNextVolumeMountPointA(hfindvolumemountpoint: P0, lpszvolumemountpoint: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointA(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - FindNextVolumeMountPointA(hfindvolumemountpoint.into_param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() + FindNextVolumeMountPointA(hfindvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn FindNextVolumeMountPointW(hfindvolumemountpoint: P0, lpszvolumemountpoint: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointW(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - FindNextVolumeMountPointW(hfindvolumemountpoint.into_param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() + FindNextVolumeMountPointW(hfindvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn FindNextVolumeW(hfindvolume: P0, lpszvolumename: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeW(hfindvolume : super::super::Foundation:: HANDLE, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - FindNextVolumeW(hfindvolume.into_param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() + FindNextVolumeW(hfindvolume.param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn FindVolumeClose(hfindvolume: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindVolumeClose(hfindvolume : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindVolumeClose(hfindvolume.into_param().abi()).ok() + FindVolumeClose(hfindvolume.param().abi()).ok() } #[inline] pub unsafe fn FindVolumeMountPointClose(hfindvolumemountpoint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindVolumeMountPointClose(hfindvolumemountpoint : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FindVolumeMountPointClose(hfindvolumemountpoint.into_param().abi()).ok() + FindVolumeMountPointClose(hfindvolumemountpoint.param().abi()).ok() } #[inline] pub unsafe fn FlushFileBuffers(hfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FlushFileBuffers(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FlushFileBuffers(hfile.into_param().abi()).ok() + FlushFileBuffers(hfile.param().abi()).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -1073,425 +1073,425 @@ pub unsafe fn FreeReservedLog(pvmarshal: *mut core::ffi::c_void, creservedrecord #[inline] pub unsafe fn GetBinaryTypeA(lpapplicationname: P0, lpbinarytype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetBinaryTypeA(lpapplicationname : windows_core::PCSTR, lpbinarytype : *mut u32) -> super::super::Foundation:: BOOL); - GetBinaryTypeA(lpapplicationname.into_param().abi(), lpbinarytype).ok() + GetBinaryTypeA(lpapplicationname.param().abi(), lpbinarytype).ok() } #[inline] pub unsafe fn GetBinaryTypeW(lpapplicationname: P0, lpbinarytype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetBinaryTypeW(lpapplicationname : windows_core::PCWSTR, lpbinarytype : *mut u32) -> super::super::Foundation:: BOOL); - GetBinaryTypeW(lpapplicationname.into_param().abi(), lpbinarytype).ok() + GetBinaryTypeW(lpapplicationname.param().abi(), lpbinarytype).ok() } #[inline] pub unsafe fn GetCompressedFileSizeA(lpfilename: P0, lpfilesizehigh: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCompressedFileSizeA(lpfilename : windows_core::PCSTR, lpfilesizehigh : *mut u32) -> u32); - GetCompressedFileSizeA(lpfilename.into_param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut()))) + GetCompressedFileSizeA(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetCompressedFileSizeTransactedA(lpfilename: P0, lpfilesizehigh: Option<*mut u32>, htransaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut())), htransaction.into_param().abi()) + GetCompressedFileSizeTransactedA(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut())), htransaction.param().abi()) } #[inline] pub unsafe fn GetCompressedFileSizeTransactedW(lpfilename: P0, lpfilesizehigh: Option<*mut u32>, htransaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut())), htransaction.into_param().abi()) + GetCompressedFileSizeTransactedW(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut())), htransaction.param().abi()) } #[inline] pub unsafe fn GetCompressedFileSizeW(lpfilename: P0, lpfilesizehigh: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetCompressedFileSizeW(lpfilename : windows_core::PCWSTR, lpfilesizehigh : *mut u32) -> u32); - GetCompressedFileSizeW(lpfilename.into_param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut()))) + GetCompressedFileSizeW(lpfilename.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetCurrentClockTransactionManager(transactionmanagerhandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn GetCurrentClockTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - GetCurrentClockTransactionManager(transactionmanagerhandle.into_param().abi(), tmvirtualclock).ok() + GetCurrentClockTransactionManager(transactionmanagerhandle.param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceA(lprootpathname : windows_core::PCSTR, lpsectorspercluster : *mut u32, lpbytespersector : *mut u32, lpnumberoffreeclusters : *mut u32, lptotalnumberofclusters : *mut u32) -> super::super::Foundation:: BOOL); - GetDiskFreeSpaceA(lprootpathname.into_param().abi(), core::mem::transmute(lpsectorspercluster.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpbytespersector.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnumberoffreeclusters.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofclusters.unwrap_or(std::ptr::null_mut()))).ok() + GetDiskFreeSpaceA(lprootpathname.param().abi(), core::mem::transmute(lpsectorspercluster.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpbytespersector.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnumberoffreeclusters.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofclusters.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetDiskFreeSpaceExA(lpdirectoryname: P0, lpfreebytesavailabletocaller: Option<*mut u64>, lptotalnumberofbytes: Option<*mut u64>, lptotalnumberoffreebytes: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceExA(lpdirectoryname : windows_core::PCSTR, lpfreebytesavailabletocaller : *mut u64, lptotalnumberofbytes : *mut u64, lptotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); - GetDiskFreeSpaceExA(lpdirectoryname.into_param().abi(), core::mem::transmute(lpfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))).ok() + GetDiskFreeSpaceExA(lpdirectoryname.param().abi(), core::mem::transmute(lpfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetDiskFreeSpaceExW(lpdirectoryname: P0, lpfreebytesavailabletocaller: Option<*mut u64>, lptotalnumberofbytes: Option<*mut u64>, lptotalnumberoffreebytes: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceExW(lpdirectoryname : windows_core::PCWSTR, lpfreebytesavailabletocaller : *mut u64, lptotalnumberofbytes : *mut u64, lptotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); - GetDiskFreeSpaceExW(lpdirectoryname.into_param().abi(), core::mem::transmute(lpfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))).ok() + GetDiskFreeSpaceExW(lpdirectoryname.param().abi(), core::mem::transmute(lpfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetDiskFreeSpaceW(lprootpathname: P0, lpsectorspercluster: Option<*mut u32>, lpbytespersector: Option<*mut u32>, lpnumberoffreeclusters: Option<*mut u32>, lptotalnumberofclusters: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceW(lprootpathname : windows_core::PCWSTR, lpsectorspercluster : *mut u32, lpbytespersector : *mut u32, lpnumberoffreeclusters : *mut u32, lptotalnumberofclusters : *mut u32) -> super::super::Foundation:: BOOL); - GetDiskFreeSpaceW(lprootpathname.into_param().abi(), core::mem::transmute(lpsectorspercluster.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpbytespersector.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnumberoffreeclusters.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofclusters.unwrap_or(std::ptr::null_mut()))).ok() + GetDiskFreeSpaceW(lprootpathname.param().abi(), core::mem::transmute(lpsectorspercluster.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpbytespersector.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnumberoffreeclusters.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalnumberofclusters.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetDiskSpaceInformationA(rootpath: P0, diskspaceinfo: *mut DISK_SPACE_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDiskSpaceInformationA(rootpath : windows_core::PCSTR, diskspaceinfo : *mut DISK_SPACE_INFORMATION) -> windows_core::HRESULT); - GetDiskSpaceInformationA(rootpath.into_param().abi(), diskspaceinfo).ok() + GetDiskSpaceInformationA(rootpath.param().abi(), diskspaceinfo).ok() } #[inline] pub unsafe fn GetDiskSpaceInformationW(rootpath: P0, diskspaceinfo: *mut DISK_SPACE_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDiskSpaceInformationW(rootpath : windows_core::PCWSTR, diskspaceinfo : *mut DISK_SPACE_INFORMATION) -> windows_core::HRESULT); - GetDiskSpaceInformationW(rootpath.into_param().abi(), diskspaceinfo).ok() + GetDiskSpaceInformationW(rootpath.param().abi(), diskspaceinfo).ok() } #[inline] pub unsafe fn GetDriveTypeA(lprootpathname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDriveTypeA(lprootpathname : windows_core::PCSTR) -> u32); - GetDriveTypeA(lprootpathname.into_param().abi()) + GetDriveTypeA(lprootpathname.param().abi()) } #[inline] pub unsafe fn GetDriveTypeW(lprootpathname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDriveTypeW(lprootpathname : windows_core::PCWSTR) -> u32); - GetDriveTypeW(lprootpathname.into_param().abi()) + GetDriveTypeW(lprootpathname.param().abi()) } #[inline] pub unsafe fn GetEncryptedFileMetadata(lpfilename: P0, pcbmetadata: *mut u32, ppbmetadata: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetEncryptedFileMetadata(lpfilename : windows_core::PCWSTR, pcbmetadata : *mut u32, ppbmetadata : *mut *mut u8) -> u32); - GetEncryptedFileMetadata(lpfilename.into_param().abi(), pcbmetadata, ppbmetadata) + GetEncryptedFileMetadata(lpfilename.param().abi(), pcbmetadata, ppbmetadata) } #[inline] pub unsafe fn GetEnlistmentId(enlistmenthandle: P0, enlistmentid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn GetEnlistmentId(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - GetEnlistmentId(enlistmenthandle.into_param().abi(), enlistmentid).ok() + GetEnlistmentId(enlistmenthandle.param().abi(), enlistmentid).ok() } #[inline] pub unsafe fn GetEnlistmentRecoveryInformation(enlistmenthandle: P0, buffersize: u32, buffer: *mut core::ffi::c_void, bufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), buffersize, buffer, bufferused).ok() + GetEnlistmentRecoveryInformation(enlistmenthandle.param().abi(), buffersize, buffer, bufferused).ok() } #[inline] pub unsafe fn GetExpandedNameA(lpszsource: P0, lpszbuffer: &mut [u8; 260]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetExpandedNameA(lpszsource : windows_core::PCSTR, lpszbuffer : windows_core::PSTR) -> i32); - GetExpandedNameA(lpszsource.into_param().abi(), core::mem::transmute(lpszbuffer.as_ptr())) + GetExpandedNameA(lpszsource.param().abi(), core::mem::transmute(lpszbuffer.as_ptr())) } #[inline] pub unsafe fn GetExpandedNameW(lpszsource: P0, lpszbuffer: &mut [u16; 260]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetExpandedNameW(lpszsource : windows_core::PCWSTR, lpszbuffer : windows_core::PWSTR) -> i32); - GetExpandedNameW(lpszsource.into_param().abi(), core::mem::transmute(lpszbuffer.as_ptr())) + GetExpandedNameW(lpszsource.param().abi(), core::mem::transmute(lpszbuffer.as_ptr())) } #[inline] pub unsafe fn GetFileAttributesA(lpfilename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesA(lpfilename : windows_core::PCSTR) -> u32); - GetFileAttributesA(lpfilename.into_param().abi()) + GetFileAttributesA(lpfilename.param().abi()) } #[inline] pub unsafe fn GetFileAttributesExA(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), finfolevelid, lpfileinformation).ok() + GetFileAttributesExA(lpfilename.param().abi(), finfolevelid, lpfileinformation).ok() } #[inline] pub unsafe fn GetFileAttributesExFromAppW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), finfolevelid, lpfileinformation) + GetFileAttributesExFromAppW(lpfilename.param().abi(), finfolevelid, lpfileinformation) } #[inline] pub unsafe fn GetFileAttributesExW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), finfolevelid, lpfileinformation).ok() + GetFileAttributesExW(lpfilename.param().abi(), finfolevelid, lpfileinformation).ok() } #[inline] pub unsafe fn GetFileAttributesTransactedA(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), finfolevelid, lpfileinformation, htransaction.into_param().abi()).ok() + GetFileAttributesTransactedA(lpfilename.param().abi(), finfolevelid, lpfileinformation, htransaction.param().abi()).ok() } #[inline] pub unsafe fn GetFileAttributesTransactedW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), finfolevelid, lpfileinformation, htransaction.into_param().abi()).ok() + GetFileAttributesTransactedW(lpfilename.param().abi(), finfolevelid, lpfileinformation, htransaction.param().abi()).ok() } #[inline] pub unsafe fn GetFileAttributesW(lpfilename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesW(lpfilename : windows_core::PCWSTR) -> u32); - GetFileAttributesW(lpfilename.into_param().abi()) + GetFileAttributesW(lpfilename.param().abi()) } #[inline] pub unsafe fn GetFileBandwidthReservation(hfile: P0, lpperiodmilliseconds: *mut u32, lpbytesperperiod: *mut u32, pdiscardable: *mut super::super::Foundation::BOOL, lptransfersize: *mut u32, lpnumoutstandingrequests: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), lpperiodmilliseconds, lpbytesperperiod, pdiscardable, lptransfersize, lpnumoutstandingrequests).ok() + GetFileBandwidthReservation(hfile.param().abi(), lpperiodmilliseconds, lpbytesperperiod, pdiscardable, lptransfersize, lpnumoutstandingrequests).ok() } #[inline] pub unsafe fn GetFileInformationByHandle(hfile: P0, lpfileinformation: *mut BY_HANDLE_FILE_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandle(hfile : super::super::Foundation:: HANDLE, lpfileinformation : *mut BY_HANDLE_FILE_INFORMATION) -> super::super::Foundation:: BOOL); - GetFileInformationByHandle(hfile.into_param().abi(), lpfileinformation).ok() + GetFileInformationByHandle(hfile.param().abi(), lpfileinformation).ok() } #[inline] pub unsafe fn GetFileInformationByHandleEx(hfile: P0, fileinformationclass: FILE_INFO_BY_HANDLE_CLASS, lpfileinformation: *mut core::ffi::c_void, dwbuffersize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), fileinformationclass, lpfileinformation, dwbuffersize).ok() + GetFileInformationByHandleEx(hfile.param().abi(), fileinformationclass, lpfileinformation, dwbuffersize).ok() } #[inline] pub unsafe fn GetFileSize(hfile: P0, lpfilesizehigh: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileSize(hfile : super::super::Foundation:: HANDLE, lpfilesizehigh : *mut u32) -> u32); - GetFileSize(hfile.into_param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut()))) + GetFileSize(hfile.param().abi(), core::mem::transmute(lpfilesizehigh.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetFileSizeEx(hfile: P0, lpfilesize: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileSizeEx(hfile : super::super::Foundation:: HANDLE, lpfilesize : *mut i64) -> super::super::Foundation:: BOOL); - GetFileSizeEx(hfile.into_param().abi(), lpfilesize).ok() + GetFileSizeEx(hfile.param().abi(), lpfilesize).ok() } #[inline] pub unsafe fn GetFileTime(hfile: P0, lpcreationtime: Option<*mut super::super::Foundation::FILETIME>, lplastaccesstime: Option<*mut super::super::Foundation::FILETIME>, lplastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), core::mem::transmute(lpcreationtime.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplastaccesstime.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplastwritetime.unwrap_or(std::ptr::null_mut()))).ok() + GetFileTime(hfile.param().abi(), core::mem::transmute(lpcreationtime.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplastaccesstime.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplastwritetime.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetFileType(hfile: P0) -> FILE_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFileType(hfile : super::super::Foundation:: HANDLE) -> FILE_TYPE); - GetFileType(hfile.into_param().abi()) + GetFileType(hfile.param().abi()) } #[inline] pub unsafe fn GetFileVersionInfoA(lptstrfilename: P0, dwhandle: u32, dwlen: u32, lpdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwhandle, dwlen, lpdata).ok() + GetFileVersionInfoA(lptstrfilename.param().abi(), dwhandle, dwlen, lpdata).ok() } #[inline] pub unsafe fn GetFileVersionInfoExA(dwflags: GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename: P0, dwhandle: u32, dwlen: u32, lpdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, lpwstrfilename.into_param().abi(), dwhandle, dwlen, lpdata).ok() + GetFileVersionInfoExA(dwflags, lpwstrfilename.param().abi(), dwhandle, dwlen, lpdata).ok() } #[inline] pub unsafe fn GetFileVersionInfoExW(dwflags: GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename: P0, dwhandle: u32, dwlen: u32, lpdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, lpwstrfilename.into_param().abi(), dwhandle, dwlen, lpdata).ok() + GetFileVersionInfoExW(dwflags, lpwstrfilename.param().abi(), dwhandle, dwlen, lpdata).ok() } #[inline] pub unsafe fn GetFileVersionInfoSizeA(lptstrfilename: P0, lpdwhandle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoSizeA(lptstrfilename : windows_core::PCSTR, lpdwhandle : *mut u32) -> u32); - GetFileVersionInfoSizeA(lptstrfilename.into_param().abi(), core::mem::transmute(lpdwhandle.unwrap_or(std::ptr::null_mut()))) + GetFileVersionInfoSizeA(lptstrfilename.param().abi(), core::mem::transmute(lpdwhandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetFileVersionInfoSizeExA(dwflags: GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename: P0, lpdwhandle: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(dwflags, lpwstrfilename.into_param().abi(), lpdwhandle) + GetFileVersionInfoSizeExA(dwflags, lpwstrfilename.param().abi(), lpdwhandle) } #[inline] pub unsafe fn GetFileVersionInfoSizeExW(dwflags: GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename: P0, lpdwhandle: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(dwflags, lpwstrfilename.into_param().abi(), lpdwhandle) + GetFileVersionInfoSizeExW(dwflags, lpwstrfilename.param().abi(), lpdwhandle) } #[inline] pub unsafe fn GetFileVersionInfoSizeW(lptstrfilename: P0, lpdwhandle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("version.dll" "system" fn GetFileVersionInfoSizeW(lptstrfilename : windows_core::PCWSTR, lpdwhandle : *mut u32) -> u32); - GetFileVersionInfoSizeW(lptstrfilename.into_param().abi(), core::mem::transmute(lpdwhandle.unwrap_or(std::ptr::null_mut()))) + GetFileVersionInfoSizeW(lptstrfilename.param().abi(), core::mem::transmute(lpdwhandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetFileVersionInfoW(lptstrfilename: P0, dwhandle: u32, dwlen: u32, lpdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwhandle, dwlen, lpdata).ok() + GetFileVersionInfoW(lptstrfilename.param().abi(), dwhandle, dwlen, lpdata).ok() } #[inline] pub unsafe fn GetFinalPathNameByHandleA(hfile: P0, lpszfilepath: &mut [u8], dwflags: GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFinalPathNameByHandleA(hfile : super::super::Foundation:: HANDLE, lpszfilepath : windows_core::PSTR, cchfilepath : u32, dwflags : GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32); - GetFinalPathNameByHandleA(hfile.into_param().abi(), core::mem::transmute(lpszfilepath.as_ptr()), lpszfilepath.len().try_into().unwrap(), dwflags) + GetFinalPathNameByHandleA(hfile.param().abi(), core::mem::transmute(lpszfilepath.as_ptr()), lpszfilepath.len().try_into().unwrap(), dwflags) } #[inline] pub unsafe fn GetFinalPathNameByHandleW(hfile: P0, lpszfilepath: &mut [u16], dwflags: GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFinalPathNameByHandleW(hfile : super::super::Foundation:: HANDLE, lpszfilepath : windows_core::PWSTR, cchfilepath : u32, dwflags : GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32); - GetFinalPathNameByHandleW(hfile.into_param().abi(), core::mem::transmute(lpszfilepath.as_ptr()), lpszfilepath.len().try_into().unwrap(), dwflags) + GetFinalPathNameByHandleW(hfile.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFullPathNameA(lpfilename : windows_core::PCSTR, nbufferlength : u32, lpbuffer : windows_core::PSTR, lpfilepart : *mut windows_core::PSTR) -> u32); - GetFullPathNameA(lpfilename.into_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(std::ptr::null_mut()))) + GetFullPathNameA(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(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetFullPathNameTransactedA(lpfilename: P0, lpbuffer: Option<&mut [u8]>, lpfilepart: Option<*mut windows_core::PSTR>, htransaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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(std::ptr::null_mut())), htransaction.into_param().abi()) + 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(std::ptr::null_mut())), htransaction.param().abi()) } #[inline] pub unsafe fn GetFullPathNameTransactedW(lpfilename: P0, lpbuffer: Option<&mut [u16]>, lpfilepart: Option<*mut windows_core::PWSTR>, htransaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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(std::ptr::null_mut())), htransaction.into_param().abi()) + 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(std::ptr::null_mut())), htransaction.param().abi()) } #[inline] pub unsafe fn GetFullPathNameW(lpfilename: P0, lpbuffer: Option<&mut [u16]>, lpfilepart: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetFullPathNameW(lpfilename : windows_core::PCWSTR, nbufferlength : u32, lpbuffer : windows_core::PWSTR, lpfilepart : *mut windows_core::PWSTR) -> u32); - GetFullPathNameW(lpfilename.into_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(std::ptr::null_mut()))) + GetFullPathNameW(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(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetIoRingInfo(ioring: P0, info: *mut IORING_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), info).ok() + GetIoRingInfo(ioring.param().abi(), info).ok() } #[inline] pub unsafe fn GetLogContainerName(hlog: P0, cidlogicalcontainer: u32, pwstrcontainername: P1, clencontainername: u32, pcactuallencontainername: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hlog.into_param().abi(), cidlogicalcontainer, pwstrcontainername.into_param().abi(), clencontainername, pcactuallencontainername).ok() + GetLogContainerName(hlog.param().abi(), cidlogicalcontainer, pwstrcontainername.param().abi(), clencontainername, pcactuallencontainername).ok() } #[inline] pub unsafe fn GetLogFileInformation(hlog: P0, pinfobuffer: *mut CLS_INFORMATION, cbbuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), pinfobuffer, cbbuffer).ok() + GetLogFileInformation(hlog.param().abi(), pinfobuffer, cbbuffer).ok() } #[inline] pub unsafe fn GetLogIoStatistics(hlog: P0, pvstatsbuffer: *mut core::ffi::c_void, cbstatsbuffer: u32, estatsclass: CLFS_IOSTATS_CLASS, pcbstatswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), pvstatsbuffer, cbstatsbuffer, estatsclass, pcbstatswritten).ok() + GetLogIoStatistics(hlog.param().abi(), pvstatsbuffer, cbstatsbuffer, estatsclass, 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 { @@ -1516,36 +1516,36 @@ pub unsafe fn GetLogicalDrives() -> u32 { #[inline] pub unsafe fn GetLongPathNameA(lpszshortpath: P0, lpszlongpath: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetLongPathNameA(lpszshortpath : windows_core::PCSTR, lpszlongpath : windows_core::PSTR, cchbuffer : u32) -> u32); - GetLongPathNameA(lpszshortpath.into_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())) + GetLongPathNameA(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())) } #[inline] pub unsafe fn GetLongPathNameTransactedA(lpszshortpath: P0, lpszlongpath: Option<&mut [u8]>, htransaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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.into_param().abi()) + 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.param().abi()) } #[inline] pub unsafe fn GetLongPathNameTransactedW(lpszshortpath: P0, lpszlongpath: Option<&mut [u16]>, htransaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_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.into_param().abi()) + 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.param().abi()) } #[inline] pub unsafe fn GetLongPathNameW(lpszshortpath: P0, lpszlongpath: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetLongPathNameW(lpszshortpath : windows_core::PCWSTR, lpszlongpath : windows_core::PWSTR, cchbuffer : u32) -> u32); - GetLongPathNameW(lpszshortpath.into_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())) + GetLongPathNameW(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())) } #[inline] pub unsafe fn GetNextLogArchiveExtent(pvarchivecontext: *mut core::ffi::c_void, rgadextent: *mut CLS_ARCHIVE_DESCRIPTOR, cdescriptors: u32, pcdescriptorsreturned: *mut u32) -> windows_core::Result<()> { @@ -1555,77 +1555,77 @@ pub unsafe fn GetNextLogArchiveExtent(pvarchivecontext: *mut core::ffi::c_void, #[inline] pub unsafe fn GetNotificationResourceManager(resourcemanagerhandle: P0, transactionnotification: *mut TRANSACTION_NOTIFICATION, notificationlength: u32, dwmilliseconds: u32, returnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), transactionnotification, notificationlength, dwmilliseconds, returnlength).ok() + GetNotificationResourceManager(resourcemanagerhandle.param().abi(), transactionnotification, notificationlength, dwmilliseconds, returnlength).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn GetNotificationResourceManagerAsync(resourcemanagerhandle: P0, transactionnotification: *mut TRANSACTION_NOTIFICATION, transactionnotificationlength: u32, returnlength: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), transactionnotification, transactionnotificationlength, returnlength, lpoverlapped).ok() + GetNotificationResourceManagerAsync(resourcemanagerhandle.param().abi(), transactionnotification, transactionnotificationlength, returnlength, lpoverlapped).ok() } #[inline] pub unsafe fn GetShortPathNameA(lpszlongpath: P0, lpszshortpath: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetShortPathNameA(lpszlongpath : windows_core::PCSTR, lpszshortpath : windows_core::PSTR, cchbuffer : u32) -> u32); - GetShortPathNameA(lpszlongpath.into_param().abi(), core::mem::transmute(lpszshortpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszshortpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetShortPathNameA(lpszlongpath.param().abi(), core::mem::transmute(lpszshortpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszshortpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetShortPathNameW(lpszlongpath: P0, lpszshortpath: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetShortPathNameW(lpszlongpath : windows_core::PCWSTR, lpszshortpath : windows_core::PWSTR, cchbuffer : u32) -> u32); - GetShortPathNameW(lpszlongpath.into_param().abi(), core::mem::transmute(lpszshortpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszshortpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetShortPathNameW(lpszlongpath.param().abi(), core::mem::transmute(lpszshortpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszshortpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetTapeParameters(hdevice: P0, dwoperation: GET_TAPE_DRIVE_PARAMETERS_OPERATION, lpdwsize: *mut u32, lptapeinformation: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), dwoperation, lpdwsize, lptapeinformation) + GetTapeParameters(hdevice.param().abi(), dwoperation, lpdwsize, lptapeinformation) } #[inline] pub unsafe fn GetTapePosition(hdevice: P0, dwpositiontype: TAPE_POSITION_TYPE, lpdwpartition: *mut u32, lpdwoffsetlow: *mut u32, lpdwoffsethigh: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), dwpositiontype, lpdwpartition, lpdwoffsetlow, lpdwoffsethigh) + GetTapePosition(hdevice.param().abi(), dwpositiontype, lpdwpartition, lpdwoffsetlow, lpdwoffsethigh) } #[inline] pub unsafe fn GetTapeStatus(hdevice: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetTapeStatus(hdevice : super::super::Foundation:: HANDLE) -> u32); - GetTapeStatus(hdevice.into_param().abi()) + GetTapeStatus(hdevice.param().abi()) } #[inline] pub unsafe fn GetTempFileNameA(lppathname: P0, lpprefixstring: P1, uunique: u32, lptempfilename: &mut [u8; 260]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpprefixstring.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpprefixstring.into_param().abi(), 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 { @@ -1650,35 +1650,35 @@ pub unsafe fn GetTempPathW(lpbuffer: Option<&mut [u16]>) -> u32 { #[inline] pub unsafe fn GetTransactionId(transactionhandle: P0, transactionid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn GetTransactionId(transactionhandle : super::super::Foundation:: HANDLE, transactionid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - GetTransactionId(transactionhandle.into_param().abi(), transactionid).ok() + GetTransactionId(transactionhandle.param().abi(), transactionid).ok() } #[inline] pub unsafe fn GetTransactionInformation(transactionhandle: P0, outcome: *mut u32, isolationlevel: *mut u32, isolationflags: *mut u32, timeout: *mut u32, description: Option<&mut [u16]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(transactionhandle.into_param().abi(), outcome, isolationlevel, isolationflags, 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.param().abi(), outcome, isolationlevel, isolationflags, 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: P0, transactionmanagerid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn GetTransactionManagerId(transactionmanagerhandle : super::super::Foundation:: HANDLE, transactionmanagerid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - GetTransactionManagerId(transactionmanagerhandle.into_param().abi(), transactionmanagerid).ok() + GetTransactionManagerId(transactionmanagerhandle.param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationA(lprootpathname : windows_core::PCSTR, lpvolumenamebuffer : windows_core::PSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PSTR, nfilesystemnamesize : u32) -> super::super::Foundation:: BOOL); GetVolumeInformationA( - lprootpathname.into_param().abi(), + lprootpathname.param().abi(), 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(std::ptr::null_mut())), @@ -1692,11 +1692,11 @@ where #[inline] pub unsafe fn GetVolumeInformationByHandleW(hfile: P0, lpvolumenamebuffer: Option<&mut [u16]>, lpvolumeserialnumber: Option<*mut u32>, lpmaximumcomponentlength: Option<*mut u32>, lpfilesystemflags: Option<*mut u32>, lpfilesystemnamebuffer: Option<&mut [u16]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - hfile.into_param().abi(), + hfile.param().abi(), 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(std::ptr::null_mut())), @@ -1710,11 +1710,11 @@ where #[inline] pub unsafe fn GetVolumeInformationW(lprootpathname: P0, lpvolumenamebuffer: Option<&mut [u16]>, lpvolumeserialnumber: Option<*mut u32>, lpmaximumcomponentlength: Option<*mut u32>, lpfilesystemflags: Option<*mut u32>, lpfilesystemnamebuffer: Option<&mut [u16]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationW(lprootpathname : windows_core::PCWSTR, 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); GetVolumeInformationW( - lprootpathname.into_param().abi(), + lprootpathname.param().abi(), 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(std::ptr::null_mut())), @@ -1728,74 +1728,74 @@ where #[inline] pub unsafe fn GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint: P0, lpszvolumename: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR, lpszvolumename : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint.into_param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() + GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint: P0, lpszvolumename: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint.into_param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() + GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetVolumePathNameA(lpszfilename: P0, lpszvolumepathname: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNameA(lpszfilename : windows_core::PCSTR, lpszvolumepathname : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - GetVolumePathNameA(lpszfilename.into_param().abi(), core::mem::transmute(lpszvolumepathname.as_ptr()), lpszvolumepathname.len().try_into().unwrap()).ok() + GetVolumePathNameA(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname.as_ptr()), lpszvolumepathname.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetVolumePathNameW(lpszfilename: P0, lpszvolumepathname: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNameW(lpszfilename : windows_core::PCWSTR, lpszvolumepathname : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); - GetVolumePathNameW(lpszfilename.into_param().abi(), core::mem::transmute(lpszvolumepathname.as_ptr()), lpszvolumepathname.len().try_into().unwrap()).ok() + GetVolumePathNameW(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname.as_ptr()), lpszvolumepathname.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetVolumePathNamesForVolumeNameA(lpszvolumename: P0, lpszvolumepathnames: Option<&mut [u8]>, lpcchreturnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNamesForVolumeNameA(lpszvolumename : windows_core::PCSTR, lpszvolumepathnames : windows_core::PSTR, cchbufferlength : u32, lpcchreturnlength : *mut u32) -> super::super::Foundation:: BOOL); - GetVolumePathNamesForVolumeNameA(lpszvolumename.into_param().abi(), core::mem::transmute(lpszvolumepathnames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszvolumepathnames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcchreturnlength).ok() + GetVolumePathNamesForVolumeNameA(lpszvolumename.param().abi(), core::mem::transmute(lpszvolumepathnames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszvolumepathnames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcchreturnlength).ok() } #[inline] pub unsafe fn GetVolumePathNamesForVolumeNameW(lpszvolumename: P0, lpszvolumepathnames: Option<&mut [u16]>, lpcchreturnlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNamesForVolumeNameW(lpszvolumename : windows_core::PCWSTR, lpszvolumepathnames : windows_core::PWSTR, cchbufferlength : u32, lpcchreturnlength : *mut u32) -> super::super::Foundation:: BOOL); - GetVolumePathNamesForVolumeNameW(lpszvolumename.into_param().abi(), core::mem::transmute(lpszvolumepathnames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszvolumepathnames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcchreturnlength).ok() + GetVolumePathNamesForVolumeNameW(lpszvolumename.param().abi(), core::mem::transmute(lpszvolumepathnames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszvolumepathnames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcchreturnlength).ok() } #[inline] pub unsafe fn HandleLogFull(hlog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn HandleLogFull(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HandleLogFull(hlog.into_param().abi()).ok() + HandleLogFull(hlog.param().abi()).ok() } #[inline] pub unsafe fn InstallLogPolicy(hlog: P0, ppolicy: *mut CLFS_MGMT_POLICY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn InstallLogPolicy(hlog : super::super::Foundation:: HANDLE, ppolicy : *mut CLFS_MGMT_POLICY) -> super::super::Foundation:: BOOL); - InstallLogPolicy(hlog.into_param().abi(), ppolicy).ok() + InstallLogPolicy(hlog.param().abi(), ppolicy).ok() } #[inline] pub unsafe fn IsIoRingOpSupported(ioring: P0, op: IORING_OP_CODE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), op) + IsIoRingOpSupported(ioring.param().abi(), op) } #[inline] pub unsafe fn LZClose(hfile: i32) { @@ -1820,18 +1820,18 @@ pub unsafe fn LZInit(hfsource: i32) -> i32 { #[inline] pub unsafe fn LZOpenFileA(lpfilename: P0, lpreopenbuf: *mut OFSTRUCT, wstyle: LZOPENFILE_STYLE) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpreopenbuf, wstyle) + LZOpenFileA(lpfilename.param().abi(), lpreopenbuf, wstyle) } #[inline] pub unsafe fn LZOpenFileW(lpfilename: P0, lpreopenbuf: *mut OFSTRUCT, wstyle: LZOPENFILE_STYLE) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpreopenbuf, wstyle) + LZOpenFileW(lpfilename.param().abi(), lpreopenbuf, wstyle) } #[inline] pub unsafe fn LZRead(hfile: i32, lpbuffer: &mut [u8]) -> i32 { @@ -1856,27 +1856,27 @@ pub unsafe fn LocalFileTimeToFileTime(lplocalfiletime: *const super::super::Foun #[inline] pub unsafe fn LockFile(hfile: P0, dwfileoffsetlow: u32, dwfileoffsethigh: u32, nnumberofbytestolocklow: u32, nnumberofbytestolockhigh: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestolocklow, nnumberofbytestolockhigh).ok() + LockFile(hfile.param().abi(), dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestolocklow, nnumberofbytestolockhigh).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn LockFileEx(hfile: P0, dwflags: LOCK_FILE_FLAGS, dwreserved: u32, nnumberofbytestolocklow: u32, nnumberofbytestolockhigh: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), dwflags, dwreserved, nnumberofbytestolocklow, nnumberofbytestolockhigh, lpoverlapped).ok() + LockFileEx(hfile.param().abi(), dwflags, dwreserved, nnumberofbytestolocklow, nnumberofbytestolockhigh, lpoverlapped).ok() } #[inline] pub unsafe fn LogTailAdvanceFailure(hlog: P0, dwreason: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn LogTailAdvanceFailure(hlog : super::super::Foundation:: HANDLE, dwreason : u32) -> super::super::Foundation:: BOOL); - LogTailAdvanceFailure(hlog.into_param().abi(), dwreason).ok() + LogTailAdvanceFailure(hlog.param().abi(), dwreason).ok() } #[inline] pub unsafe fn LsnBlockOffset(plsn: *const CLS_LSN) -> u32 { @@ -1931,251 +1931,251 @@ pub unsafe fn LsnRecordSequence(plsn: *const CLS_LSN) -> u32 { #[inline] pub unsafe fn MoveFileA(lpexistingfilename: P0, lpnewfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - MoveFileA(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi()).ok() + MoveFileA(lpexistingfilename.param().abi(), lpnewfilename.param().abi()).ok() } #[inline] pub unsafe fn MoveFileExA(lpexistingfilename: P0, lpnewfilename: P1, dwflags: MOVE_FILE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpnewfilename.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpnewfilename.into_param().abi(), dwflags).ok() + MoveFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn MoveFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn MoveFileFromAppW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - MoveFileFromAppW(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi()) + MoveFileFromAppW(lpexistingfilename.param().abi(), lpnewfilename.param().abi()) } #[inline] pub unsafe fn MoveFileTransactedA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, dwflags: MOVE_FILE_FLAGS, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), dwflags, htransaction.into_param().abi()).ok() + MoveFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), dwflags, htransaction.param().abi()).ok() } #[inline] pub unsafe fn MoveFileTransactedW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, dwflags: MOVE_FILE_FLAGS, htransaction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), dwflags, htransaction.into_param().abi()).ok() + MoveFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), dwflags, htransaction.param().abi()).ok() } #[inline] pub unsafe fn MoveFileW(lpexistingfilename: P0, lpnewfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn MoveFileW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - MoveFileW(lpexistingfilename.into_param().abi(), lpnewfilename.into_param().abi()).ok() + MoveFileW(lpexistingfilename.param().abi(), lpnewfilename.param().abi()).ok() } #[inline] pub unsafe fn MoveFileWithProgressA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, dwflags: MOVE_FILE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), dwflags).ok() + MoveFileWithProgressA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), dwflags).ok() } #[inline] pub unsafe fn MoveFileWithProgressW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: LPPROGRESS_ROUTINE, lpdata: Option<*const core::ffi::c_void>, dwflags: MOVE_FILE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpnewfilename.into_param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), dwflags).ok() + MoveFileWithProgressW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), qualifier.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetConnectionEnum(servername.param().abi(), qualifier.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetFileClose(servername: P0, fileid: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetFileClose(servername : windows_core::PCWSTR, fileid : u32) -> u32); - NetFileClose(servername.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), basepath.into_param().abi(), username.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetFileEnum(servername.param().abi(), basepath.param().abi(), username.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetFileGetInfo(servername: P0, fileid: u32, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), fileid, level, bufptr) + NetFileGetInfo(servername.param().abi(), fileid, level, bufptr) } #[inline] pub unsafe fn NetServerAliasAdd(servername: P0, level: u32, buf: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerAliasAdd(servername : windows_core::PCWSTR, level : u32, buf : *const u8) -> u32); - NetServerAliasAdd(servername.into_param().abi(), level, buf) + NetServerAliasAdd(servername.param().abi(), level, buf) } #[inline] pub unsafe fn NetServerAliasDel(servername: P0, level: u32, buf: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetServerAliasDel(servername : windows_core::PCWSTR, level : u32, buf : *const u8) -> u32); - NetServerAliasDel(servername.into_param().abi(), level, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) + NetServerAliasEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resumehandle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetSessionDel(servername: P0, uncclientname: P1, username: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetSessionDel(servername : windows_core::PCWSTR, uncclientname : windows_core::PCWSTR, username : windows_core::PCWSTR) -> u32); - NetSessionDel(servername.into_param().abi(), uncclientname.into_param().abi(), username.into_param().abi()) + NetSessionDel(servername.param().abi(), uncclientname.param().abi(), username.param().abi()) } #[inline] pub unsafe fn NetSessionEnum(servername: P0, uncclientname: P1, username: P2, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), uncclientname.into_param().abi(), username.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetSessionEnum(servername.param().abi(), uncclientname.param().abi(), username.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetSessionGetInfo(servername: P0, uncclientname: P1, username: P2, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), uncclientname.into_param().abi(), username.into_param().abi(), level, bufptr) + NetSessionGetInfo(servername.param().abi(), uncclientname.param().abi(), username.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetShareAdd(servername: P0, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetShareAdd(servername.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetShareCheck(servername: P0, device: P1, r#type: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareCheck(servername : windows_core::PCWSTR, device : windows_core::PCWSTR, r#type : *mut u32) -> u32); - NetShareCheck(servername.into_param().abi(), device.into_param().abi(), r#type) + NetShareCheck(servername.param().abi(), device.param().abi(), r#type) } #[inline] pub unsafe fn NetShareDel(servername: P0, netname: P1, reserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareDel(servername : windows_core::PCWSTR, netname : windows_core::PCWSTR, reserved : u32) -> u32); - NetShareDel(servername.into_param().abi(), netname.into_param().abi(), reserved) + NetShareDel(servername.param().abi(), netname.param().abi(), reserved) } #[inline] pub unsafe fn NetShareDelEx(servername: P0, level: u32, buf: *const u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareDelEx(servername : windows_core::PCWSTR, level : u32, buf : *const u8) -> u32); - NetShareDelEx(servername.into_param().abi(), level, buf) + NetShareDelEx(servername.param().abi(), level, buf) } #[inline] pub unsafe fn NetShareDelSticky(servername: P0, netname: P1, reserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("netapi32.dll" "system" fn NetShareDelSticky(servername : windows_core::PCWSTR, netname : windows_core::PCWSTR, reserved : u32) -> u32); - NetShareDelSticky(servername.into_param().abi(), netname.into_param().abi(), reserved) + NetShareDelSticky(servername.param().abi(), netname.param().abi(), reserved) } #[inline] pub unsafe fn NetShareEnum(servername: P0, level: u32, bufptr: *mut *mut u8, prefmaxlen: u32, entriesread: *mut u32, totalentries: *mut u32, resume_handle: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetShareEnum(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) + NetShareEnumSticky(servername.param().abi(), level, bufptr, prefmaxlen, entriesread, totalentries, core::mem::transmute(resume_handle.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetShareGetInfo(servername: P0, netname: P1, level: u32, bufptr: *mut *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), netname.into_param().abi(), level, bufptr) + NetShareGetInfo(servername.param().abi(), netname.param().abi(), level, bufptr) } #[inline] pub unsafe fn NetShareSetInfo(servername: P0, netname: P1, level: u32, buf: *const u8, parm_err: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), netname.into_param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) + NetShareSetInfo(servername.param().abi(), netname.param().abi(), level, buf, core::mem::transmute(parm_err.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn NetStatisticsGet(servername: *const i8, service: *const i8, level: u32, options: u32, buffer: *mut *mut u8) -> u32 { @@ -2185,53 +2185,53 @@ pub unsafe fn NetStatisticsGet(servername: *const i8, service: *const i8, level: #[inline] pub unsafe fn OpenEncryptedFileRawA(lpfilename: P0, ulflags: u32, pvcontext: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, pvcontext) + OpenEncryptedFileRawA(lpfilename.param().abi(), ulflags, pvcontext) } #[inline] pub unsafe fn OpenEncryptedFileRawW(lpfilename: P0, ulflags: u32, pvcontext: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, pvcontext) + OpenEncryptedFileRawW(lpfilename.param().abi(), ulflags, pvcontext) } #[inline] pub unsafe fn OpenEnlistment(dwdesiredaccess: u32, resourcemanagerhandle: P0, enlistmentid: *mut windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwdesiredaccess, resourcemanagerhandle.into_param().abi(), enlistmentid); + let result__ = OpenEnlistment(dwdesiredaccess, resourcemanagerhandle.param().abi(), enlistmentid); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenFile(lpfilename: P0, lpreopenbuff: *mut OFSTRUCT, ustyle: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenFile(lpfilename : windows_core::PCSTR, lpreopenbuff : *mut OFSTRUCT, ustyle : u32) -> i32); - OpenFile(lpfilename.into_param().abi(), lpreopenbuff, ustyle) + OpenFile(lpfilename.param().abi(), lpreopenbuff, ustyle) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenFileById(hvolumehint: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hvolumehint.into_param().abi(), lpfileid, dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwflagsandattributes); + let result__ = OpenFileById(hvolumehint.param().abi(), lpfileid, dwdesiredaccess, dwsharemode, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), dwflagsandattributes); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenResourceManager(dwdesiredaccess: u32, tmhandle: P0, resourcemanagerid: *mut windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwdesiredaccess, tmhandle.into_param().abi(), resourcemanagerid); + let result__ = OpenResourceManager(dwdesiredaccess, tmhandle.param().abi(), resourcemanagerid); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2243,10 +2243,10 @@ pub unsafe fn OpenTransaction(dwdesiredaccess: u32, transactionid: *mut windows_ #[inline] pub unsafe fn OpenTransactionManager(logfilename: P0, desiredaccess: u32, openoptions: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), desiredaccess, openoptions); + let result__ = OpenTransactionManager(logfilename.param().abi(), desiredaccess, openoptions); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -2258,76 +2258,76 @@ pub unsafe fn OpenTransactionManagerById(transactionmanagerid: *const windows_co #[inline] pub unsafe fn PopIoRingCompletion(ioring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn PopIoRingCompletion(ioring : HIORING, cqe : *mut IORING_CQE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PopIoRingCompletion(ioring.into_param().abi(), &mut result__).map(|| result__) + PopIoRingCompletion(ioring.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PrePrepareComplete(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn PrePrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrePrepareComplete(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + PrePrepareComplete(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn PrePrepareEnlistment(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn PrePrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrePrepareEnlistment(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + PrePrepareEnlistment(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn PrepareComplete(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn PrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrepareComplete(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + PrepareComplete(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn PrepareEnlistment(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn PrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - PrepareEnlistment(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + PrepareEnlistment(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn PrepareLogArchive(hlog: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), core::mem::transmute(pszbaselogfilename.as_ptr()), pszbaselogfilename.len().try_into().unwrap(), core::mem::transmute(plsnlow.unwrap_or(std::ptr::null())), core::mem::transmute(plsnhigh.unwrap_or(std::ptr::null())), core::mem::transmute(pcactuallength.unwrap_or(std::ptr::null_mut())), poffbaselogfiledata, pcbbaselogfilelength, plsnbase, plsnlast, plsncurrentarchivetail, ppvarchivecontext).ok() + PrepareLogArchive(hlog.param().abi(), core::mem::transmute(pszbaselogfilename.as_ptr()), pszbaselogfilename.len().try_into().unwrap(), core::mem::transmute(plsnlow.unwrap_or(std::ptr::null())), core::mem::transmute(plsnhigh.unwrap_or(std::ptr::null())), core::mem::transmute(pcactuallength.unwrap_or(std::ptr::null_mut())), poffbaselogfiledata, pcbbaselogfilelength, plsnbase, plsnlast, plsncurrentarchivetail, ppvarchivecontext).ok() } #[inline] pub unsafe fn PrepareTape(hdevice: P0, dwoperation: PREPARE_TAPE_OPERATION, bimmediate: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PrepareTape(hdevice : super::super::Foundation:: HANDLE, dwoperation : PREPARE_TAPE_OPERATION, bimmediate : super::super::Foundation:: BOOL) -> u32); - PrepareTape(hdevice.into_param().abi(), dwoperation, bimmediate.into_param().abi()) + PrepareTape(hdevice.param().abi(), dwoperation, bimmediate.param().abi()) } #[inline] pub unsafe fn QueryDosDeviceA(lpdevicename: P0, lptargetpath: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryDosDeviceA(lpdevicename : windows_core::PCSTR, lptargetpath : windows_core::PSTR, ucchmax : u32) -> u32); - QueryDosDeviceA(lpdevicename.into_param().abi(), core::mem::transmute(lptargetpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptargetpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + QueryDosDeviceA(lpdevicename.param().abi(), core::mem::transmute(lptargetpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptargetpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn QueryDosDeviceW(lpdevicename: P0, lptargetpath: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryDosDeviceW(lpdevicename : windows_core::PCWSTR, lptargetpath : windows_core::PWSTR, ucchmax : u32) -> u32); - QueryDosDeviceW(lpdevicename.into_param().abi(), core::mem::transmute(lptargetpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptargetpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + QueryDosDeviceW(lpdevicename.param().abi(), core::mem::transmute(lptargetpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lptargetpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn QueryIoRingCapabilities() -> windows_core::Result { @@ -2338,57 +2338,57 @@ pub unsafe fn QueryIoRingCapabilities() -> windows_core::Result(hlog: P0, epolicytype: CLFS_MGMT_POLICY_TYPE, ppolicybuffer: *mut CLFS_MGMT_POLICY, pcbpolicybuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), epolicytype, ppolicybuffer, pcbpolicybuffer).ok() + QueryLogPolicy(hlog.param().abi(), epolicytype, ppolicybuffer, pcbpolicybuffer).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryRecoveryAgentsOnEncryptedFile(lpfilename: P0, precoveryagents: *mut *mut ENCRYPTION_CERTIFICATE_HASH_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryRecoveryAgentsOnEncryptedFile(lpfilename : windows_core::PCWSTR, precoveryagents : *mut *mut ENCRYPTION_CERTIFICATE_HASH_LIST) -> u32); - QueryRecoveryAgentsOnEncryptedFile(lpfilename.into_param().abi(), precoveryagents) + QueryRecoveryAgentsOnEncryptedFile(lpfilename.param().abi(), precoveryagents) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryUsersOnEncryptedFile(lpfilename: P0, pusers: *mut *mut ENCRYPTION_CERTIFICATE_HASH_LIST) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryUsersOnEncryptedFile(lpfilename : windows_core::PCWSTR, pusers : *mut *mut ENCRYPTION_CERTIFICATE_HASH_LIST) -> u32); - QueryUsersOnEncryptedFile(lpfilename.into_param().abi(), pusers) + QueryUsersOnEncryptedFile(lpfilename.param().abi(), pusers) } #[inline] pub unsafe fn ReOpenFile(horiginalfile: P0, dwdesiredaccess: u32, dwsharemode: FILE_SHARE_MODE, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(horiginalfile.into_param().abi(), dwdesiredaccess, dwsharemode, dwflagsandattributes); + let result__ = ReOpenFile(horiginalfile.param().abi(), dwdesiredaccess, dwsharemode, dwflagsandattributes); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadDirectoryChangesExW(hdirectory: P0, lpbuffer: *mut core::ffi::c_void, nbufferlength: u32, bwatchsubtree: P1, dwnotifyfilter: FILE_NOTIFY_CHANGE, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE, readdirectorynotifyinformationclass: READ_DIRECTORY_NOTIFY_INFORMATION_CLASS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdirectory.into_param().abi(), lpbuffer, nbufferlength, bwatchsubtree.into_param().abi(), dwnotifyfilter, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine, readdirectorynotifyinformationclass).ok() + ReadDirectoryChangesExW(hdirectory.param().abi(), lpbuffer, nbufferlength, bwatchsubtree.param().abi(), dwnotifyfilter, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine, readdirectorynotifyinformationclass).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadDirectoryChangesW(hdirectory: P0, lpbuffer: *mut core::ffi::c_void, nbufferlength: u32, bwatchsubtree: P1, dwnotifyfilter: FILE_NOTIFY_CHANGE, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdirectory.into_param().abi(), lpbuffer, nbufferlength, bwatchsubtree.into_param().abi(), dwnotifyfilter, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine).ok() + ReadDirectoryChangesW(hdirectory.param().abi(), lpbuffer, nbufferlength, bwatchsubtree.param().abi(), dwnotifyfilter, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), lpcompletionroutine).ok() } #[inline] pub unsafe fn ReadEncryptedFileRaw(pfexportcallback: PFE_EXPORT_FUNC, pvcallbackcontext: Option<*const core::ffi::c_void>, pvcontext: *const core::ffi::c_void) -> u32 { @@ -2399,28 +2399,28 @@ pub unsafe fn ReadEncryptedFileRaw(pfexportcallback: PFE_EXPORT_FUNC, pvcallback #[inline] pub unsafe fn ReadFile(hfile: P0, lpbuffer: Option<&mut [u8]>, lpnumberofbytesread: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() + ReadFile(hfile.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFileEx(hfile: P0, lpbuffer: Option<&mut [u8]>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), 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()), lpoverlapped, lpcompletionroutine).ok() + ReadFileEx(hfile.param().abi(), 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()), lpoverlapped, lpcompletionroutine).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFileScatter(hfile: P0, asegmentarray: *const FILE_SEGMENT_ELEMENT, nnumberofbytestoread: u32, lpreserved: Option<*const u32>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), asegmentarray, nnumberofbytestoread, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), lpoverlapped).ok() + ReadFileScatter(hfile.param().abi(), asegmentarray, nnumberofbytestoread, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), 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<()> { @@ -2431,10 +2431,10 @@ pub unsafe fn ReadLogArchiveMetadata(pvarchivecontext: *mut core::ffi::c_void, c #[inline] pub unsafe fn ReadLogNotification(hlog: P0, pnotification: *mut CLFS_MGMT_NOTIFICATION, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), pnotification, lpoverlapped).ok() + ReadLogNotification(hlog.param().abi(), pnotification, lpoverlapped).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -2457,10 +2457,10 @@ pub unsafe fn ReadNextLogRecord(pvreadcontext: *mut core::ffi::c_void, ppvbuffer #[inline] pub unsafe fn ReadOnlyEnlistment(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn ReadOnlyEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - ReadOnlyEnlistment(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + ReadOnlyEnlistment(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -2471,159 +2471,159 @@ pub unsafe fn ReadPreviousLogRestartArea(pvreadcontext: *mut core::ffi::c_void, #[inline] pub unsafe fn RecoverEnlistment(enlistmenthandle: P0, enlistmentkey: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RecoverEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentkey : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RecoverEnlistment(enlistmenthandle.into_param().abi(), enlistmentkey).ok() + RecoverEnlistment(enlistmenthandle.param().abi(), enlistmentkey).ok() } #[inline] pub unsafe fn RecoverResourceManager(resourcemanagerhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RecoverResourceManager(resourcemanagerhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RecoverResourceManager(resourcemanagerhandle.into_param().abi()).ok() + RecoverResourceManager(resourcemanagerhandle.param().abi()).ok() } #[inline] pub unsafe fn RecoverTransactionManager(transactionmanagerhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RecoverTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RecoverTransactionManager(transactionmanagerhandle.into_param().abi()).ok() + RecoverTransactionManager(transactionmanagerhandle.param().abi()).ok() } #[inline] pub unsafe fn RegisterForLogWriteNotification(hlog: P0, cbthreshold: u32, fenable: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hlog.into_param().abi(), cbthreshold, fenable.into_param().abi()).ok() + RegisterForLogWriteNotification(hlog.param().abi(), cbthreshold, fenable.param().abi()).ok() } #[inline] pub unsafe fn RegisterManageableLogClient(hlog: P0, pcallbacks: *mut LOG_MANAGEMENT_CALLBACKS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn RegisterManageableLogClient(hlog : super::super::Foundation:: HANDLE, pcallbacks : *mut LOG_MANAGEMENT_CALLBACKS) -> super::super::Foundation:: BOOL); - RegisterManageableLogClient(hlog.into_param().abi(), pcallbacks).ok() + RegisterManageableLogClient(hlog.param().abi(), pcallbacks).ok() } #[inline] pub unsafe fn RemoveDirectoryA(lppathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryA(lppathname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - RemoveDirectoryA(lppathname.into_param().abi()).ok() + RemoveDirectoryA(lppathname.param().abi()).ok() } #[inline] pub unsafe fn RemoveDirectoryFromAppW(lppathname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn RemoveDirectoryFromAppW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - RemoveDirectoryFromAppW(lppathname.into_param().abi()) + RemoveDirectoryFromAppW(lppathname.param().abi()) } #[inline] pub unsafe fn RemoveDirectoryTransactedA(lppathname: P0, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), htransaction.into_param().abi()).ok() + RemoveDirectoryTransactedA(lppathname.param().abi(), htransaction.param().abi()).ok() } #[inline] pub unsafe fn RemoveDirectoryTransactedW(lppathname: P0, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), htransaction.into_param().abi()).ok() + RemoveDirectoryTransactedW(lppathname.param().abi(), htransaction.param().abi()).ok() } #[inline] pub unsafe fn RemoveDirectoryW(lppathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - RemoveDirectoryW(lppathname.into_param().abi()).ok() + RemoveDirectoryW(lppathname.param().abi()).ok() } #[inline] pub unsafe fn RemoveLogContainer(hlog: P0, pwszcontainerpath: P1, fforce: P2, preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hlog.into_param().abi(), pwszcontainerpath.into_param().abi(), fforce.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() + RemoveLogContainer(hlog.param().abi(), pwszcontainerpath.param().abi(), fforce.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RemoveLogContainerSet(hlog: P0, rgwszcontainerpath: &[windows_core::PCWSTR], fforce: P1, preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hlog.into_param().abi(), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.into_param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() + RemoveLogContainerSet(hlog.param().abi(), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.param().abi(), core::mem::transmute(preserved.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RemoveLogPolicy(hlog: P0, epolicytype: CLFS_MGMT_POLICY_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn RemoveLogPolicy(hlog : super::super::Foundation:: HANDLE, epolicytype : CLFS_MGMT_POLICY_TYPE) -> super::super::Foundation:: BOOL); - RemoveLogPolicy(hlog.into_param().abi(), epolicytype).ok() + RemoveLogPolicy(hlog.param().abi(), epolicytype).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RemoveUsersFromEncryptedFile(lpfilename: P0, phashes: *const ENCRYPTION_CERTIFICATE_HASH_LIST) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), phashes) + RemoveUsersFromEncryptedFile(lpfilename.param().abi(), phashes) } #[inline] pub unsafe fn RenameTransactionManager(logfilename: P0, existingtransactionmanagerguid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RenameTransactionManager(logfilename : windows_core::PCWSTR, existingtransactionmanagerguid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); - RenameTransactionManager(logfilename.into_param().abi(), existingtransactionmanagerguid).ok() + RenameTransactionManager(logfilename.param().abi(), existingtransactionmanagerguid).ok() } #[inline] pub unsafe fn ReplaceFileA(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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpreplacementfilename.into_param().abi(), lpbackupfilename.into_param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + ReplaceFileA(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpreplacementfilename.into_param().abi(), lpbackupfilename.into_param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) + ReplaceFileFromAppW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))) } #[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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpreplacementfilename.into_param().abi(), lpbackupfilename.into_param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + ReplaceFileW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, core::mem::transmute(lpexclude.unwrap_or(std::ptr::null())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -2640,42 +2640,42 @@ pub unsafe fn ReserveAndAppendLogAligned(pvmarshal: *mut core::ffi::c_void, rgwr #[inline] pub unsafe fn RollbackComplete(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RollbackComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - RollbackComplete(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + RollbackComplete(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn RollbackEnlistment(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RollbackEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - RollbackEnlistment(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + RollbackEnlistment(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn RollbackTransaction(transactionhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RollbackTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RollbackTransaction(transactionhandle.into_param().abi()).ok() + RollbackTransaction(transactionhandle.param().abi()).ok() } #[inline] pub unsafe fn RollbackTransactionAsync(transactionhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RollbackTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RollbackTransactionAsync(transactionhandle.into_param().abi()).ok() + RollbackTransactionAsync(transactionhandle.param().abi()).ok() } #[inline] pub unsafe fn RollforwardTransactionManager(transactionmanagerhandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn RollforwardTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - RollforwardTransactionManager(transactionmanagerhandle.into_param().abi(), tmvirtualclock).ok() + RollforwardTransactionManager(transactionmanagerhandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn ScanLogContainers(pcxscan: *mut CLS_SCAN_CONTEXT, escanmode: u8, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -2685,56 +2685,56 @@ pub unsafe fn ScanLogContainers(pcxscan: *mut CLS_SCAN_CONTEXT, escanmode: u8, p #[inline] pub unsafe fn SearchPathA(lppath: P0, lpfilename: P1, lpextension: P2, lpbuffer: Option<&mut [u8]>, lpfilepart: Option<*mut windows_core::PSTR>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SearchPathA(lppath : windows_core::PCSTR, lpfilename : windows_core::PCSTR, lpextension : windows_core::PCSTR, nbufferlength : u32, lpbuffer : windows_core::PSTR, lpfilepart : *mut windows_core::PSTR) -> u32); - SearchPathA(lppath.into_param().abi(), lpfilename.into_param().abi(), lpextension.into_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(std::ptr::null_mut()))) + SearchPathA(lppath.param().abi(), lpfilename.param().abi(), lpextension.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(std::ptr::null_mut()))) } #[inline] pub unsafe fn SearchPathW(lppath: P0, lpfilename: P1, lpextension: P2, lpbuffer: Option<&mut [u16]>, lpfilepart: Option<*mut windows_core::PWSTR>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SearchPathW(lppath : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR, lpextension : windows_core::PCWSTR, nbufferlength : u32, lpbuffer : windows_core::PWSTR, lpfilepart : *mut windows_core::PWSTR) -> u32); - SearchPathW(lppath.into_param().abi(), lpfilename.into_param().abi(), lpextension.into_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(std::ptr::null_mut()))) + SearchPathW(lppath.param().abi(), lpfilename.param().abi(), lpextension.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(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SetEncryptedFileMetadata(lpfilename: P0, pboldmetadata: Option<*const u8>, pbnewmetadata: *const u8, pownerhash: *const ENCRYPTION_CERTIFICATE_HASH, dwoperation: u32, pcertificatesadded: Option<*const ENCRYPTION_CERTIFICATE_HASH_LIST>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pboldmetadata.unwrap_or(std::ptr::null())), pbnewmetadata, pownerhash, dwoperation, core::mem::transmute(pcertificatesadded.unwrap_or(std::ptr::null()))) + SetEncryptedFileMetadata(lpfilename.param().abi(), core::mem::transmute(pboldmetadata.unwrap_or(std::ptr::null())), pbnewmetadata, pownerhash, dwoperation, core::mem::transmute(pcertificatesadded.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetEndOfFile(hfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetEndOfFile(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetEndOfFile(hfile.into_param().abi()).ok() + SetEndOfFile(hfile.param().abi()).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn SetEndOfLog(hlog: P0, plsnend: *mut CLS_LSN, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), plsnend, lpoverlapped).ok() + SetEndOfLog(hlog.param().abi(), plsnend, lpoverlapped).ok() } #[inline] pub unsafe fn SetEnlistmentRecoveryInformation(enlistmenthandle: P0, buffersize: u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enlistmenthandle.into_param().abi(), buffersize, buffer).ok() + SetEnlistmentRecoveryInformation(enlistmenthandle.param().abi(), buffersize, buffer).ok() } #[inline] pub unsafe fn SetFileApisToANSI() { @@ -2749,169 +2749,169 @@ pub unsafe fn SetFileApisToOEM() { #[inline] pub unsafe fn SetFileAttributesA(lpfilename: P0, dwfileattributes: FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwfileattributes).ok() + SetFileAttributesA(lpfilename.param().abi(), dwfileattributes).ok() } #[inline] pub unsafe fn SetFileAttributesFromAppW(lpfilename: P0, dwfileattributes: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwfileattributes) + SetFileAttributesFromAppW(lpfilename.param().abi(), dwfileattributes) } #[inline] pub unsafe fn SetFileAttributesTransactedA(lpfilename: P0, dwfileattributes: u32, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwfileattributes, htransaction.into_param().abi()).ok() + SetFileAttributesTransactedA(lpfilename.param().abi(), dwfileattributes, htransaction.param().abi()).ok() } #[inline] pub unsafe fn SetFileAttributesTransactedW(lpfilename: P0, dwfileattributes: u32, htransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwfileattributes, htransaction.into_param().abi()).ok() + SetFileAttributesTransactedW(lpfilename.param().abi(), dwfileattributes, htransaction.param().abi()).ok() } #[inline] pub unsafe fn SetFileAttributesW(lpfilename: P0, dwfileattributes: FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwfileattributes).ok() + SetFileAttributesW(lpfilename.param().abi(), dwfileattributes).ok() } #[inline] pub unsafe fn SetFileBandwidthReservation(hfile: P0, nperiodmilliseconds: u32, nbytesperperiod: u32, bdiscardable: P1, lptransfersize: *mut u32, lpnumoutstandingrequests: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hfile.into_param().abi(), nperiodmilliseconds, nbytesperperiod, bdiscardable.into_param().abi(), lptransfersize, lpnumoutstandingrequests).ok() + SetFileBandwidthReservation(hfile.param().abi(), nperiodmilliseconds, nbytesperperiod, bdiscardable.param().abi(), lptransfersize, lpnumoutstandingrequests).ok() } #[inline] pub unsafe fn SetFileCompletionNotificationModes(filehandle: P0, flags: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileCompletionNotificationModes(filehandle : super::super::Foundation:: HANDLE, flags : u8) -> super::super::Foundation:: BOOL); - SetFileCompletionNotificationModes(filehandle.into_param().abi(), flags).ok() + SetFileCompletionNotificationModes(filehandle.param().abi(), flags).ok() } #[inline] pub unsafe fn SetFileInformationByHandle(hfile: P0, fileinformationclass: FILE_INFO_BY_HANDLE_CLASS, lpfileinformation: *const core::ffi::c_void, dwbuffersize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), fileinformationclass, lpfileinformation, dwbuffersize).ok() + SetFileInformationByHandle(hfile.param().abi(), fileinformationclass, lpfileinformation, dwbuffersize).ok() } #[inline] pub unsafe fn SetFileIoOverlappedRange(filehandle: P0, overlappedrangestart: *const u8, length: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileIoOverlappedRange(filehandle : super::super::Foundation:: HANDLE, overlappedrangestart : *const u8, length : u32) -> super::super::Foundation:: BOOL); - SetFileIoOverlappedRange(filehandle.into_param().abi(), overlappedrangestart, length).ok() + SetFileIoOverlappedRange(filehandle.param().abi(), overlappedrangestart, length).ok() } #[inline] pub unsafe fn SetFilePointer(hfile: P0, ldistancetomove: i32, lpdistancetomovehigh: Option<*mut i32>, dwmovemethod: SET_FILE_POINTER_MOVE_METHOD) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), ldistancetomove, core::mem::transmute(lpdistancetomovehigh.unwrap_or(std::ptr::null_mut())), dwmovemethod) + SetFilePointer(hfile.param().abi(), ldistancetomove, core::mem::transmute(lpdistancetomovehigh.unwrap_or(std::ptr::null_mut())), dwmovemethod) } #[inline] pub unsafe fn SetFilePointerEx(hfile: P0, lidistancetomove: i64, lpnewfilepointer: Option<*mut i64>, dwmovemethod: SET_FILE_POINTER_MOVE_METHOD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), lidistancetomove, core::mem::transmute(lpnewfilepointer.unwrap_or(std::ptr::null_mut())), dwmovemethod).ok() + SetFilePointerEx(hfile.param().abi(), lidistancetomove, core::mem::transmute(lpnewfilepointer.unwrap_or(std::ptr::null_mut())), dwmovemethod).ok() } #[inline] pub unsafe fn SetFileShortNameA(hfile: P0, lpshortname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hfile.into_param().abi(), lpshortname.into_param().abi()).ok() + SetFileShortNameA(hfile.param().abi(), lpshortname.param().abi()).ok() } #[inline] pub unsafe fn SetFileShortNameW(hfile: P0, lpshortname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hfile.into_param().abi(), lpshortname.into_param().abi()).ok() + SetFileShortNameW(hfile.param().abi(), lpshortname.param().abi()).ok() } #[inline] pub unsafe fn SetFileTime(hfile: P0, lpcreationtime: Option<*const super::super::Foundation::FILETIME>, lplastaccesstime: Option<*const super::super::Foundation::FILETIME>, lplastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), core::mem::transmute(lpcreationtime.unwrap_or(std::ptr::null())), core::mem::transmute(lplastaccesstime.unwrap_or(std::ptr::null())), core::mem::transmute(lplastwritetime.unwrap_or(std::ptr::null()))).ok() + SetFileTime(hfile.param().abi(), core::mem::transmute(lpcreationtime.unwrap_or(std::ptr::null())), core::mem::transmute(lplastaccesstime.unwrap_or(std::ptr::null())), core::mem::transmute(lplastwritetime.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SetFileValidData(hfile: P0, validdatalength: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetFileValidData(hfile : super::super::Foundation:: HANDLE, validdatalength : i64) -> super::super::Foundation:: BOOL); - SetFileValidData(hfile.into_param().abi(), validdatalength).ok() + SetFileValidData(hfile.param().abi(), validdatalength).ok() } #[inline] pub unsafe fn SetIoRingCompletionEvent(ioring: P0, hevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(ioring.into_param().abi(), hevent.into_param().abi()).ok() + SetIoRingCompletionEvent(ioring.param().abi(), hevent.param().abi()).ok() } #[inline] pub unsafe fn SetLogArchiveMode(hlog: P0, emode: CLFS_LOG_ARCHIVE_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn SetLogArchiveMode(hlog : super::super::Foundation:: HANDLE, emode : CLFS_LOG_ARCHIVE_MODE) -> super::super::Foundation:: BOOL); - SetLogArchiveMode(hlog.into_param().abi(), emode).ok() + SetLogArchiveMode(hlog.param().abi(), emode).ok() } #[inline] pub unsafe fn SetLogArchiveTail(hlog: P0, plsnarchivetail: *mut CLS_LSN, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hlog.into_param().abi(), plsnarchivetail, preserved).ok() + SetLogArchiveTail(hlog.param().abi(), plsnarchivetail, preserved).ok() } #[inline] pub unsafe fn SetLogFileSizeWithPolicy(hlog: P0, pdesiredsize: *const u64, presultingsize: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn SetLogFileSizeWithPolicy(hlog : super::super::Foundation:: HANDLE, pdesiredsize : *const u64, presultingsize : *mut u64) -> super::super::Foundation:: BOOL); - SetLogFileSizeWithPolicy(hlog.into_param().abi(), pdesiredsize, presultingsize).ok() + SetLogFileSizeWithPolicy(hlog.param().abi(), pdesiredsize, presultingsize).ok() } #[inline] pub unsafe fn SetResourceManagerCompletionPort(resourcemanagerhandle: P0, iocompletionporthandle: P1, completionkey: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(resourcemanagerhandle.into_param().abi(), iocompletionporthandle.into_param().abi(), completionkey).ok() + SetResourceManagerCompletionPort(resourcemanagerhandle.param().abi(), iocompletionporthandle.param().abi(), completionkey).ok() } #[inline] pub unsafe fn SetSearchPathMode(flags: u32) -> windows_core::Result<()> { @@ -2921,28 +2921,28 @@ pub unsafe fn SetSearchPathMode(flags: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn SetTapeParameters(hdevice: P0, dwoperation: TAPE_INFORMATION_TYPE, lptapeinformation: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), dwoperation, lptapeinformation) + SetTapeParameters(hdevice.param().abi(), dwoperation, lptapeinformation) } #[inline] pub unsafe fn SetTapePosition(hdevice: P0, dwpositionmethod: TAPE_POSITION_METHOD, dwpartition: u32, dwoffsetlow: u32, dwoffsethigh: u32, bimmediate: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdevice.into_param().abi(), dwpositionmethod, dwpartition, dwoffsetlow, dwoffsethigh, bimmediate.into_param().abi()) + SetTapePosition(hdevice.param().abi(), dwpositionmethod, dwpartition, dwoffsetlow, dwoffsethigh, bimmediate.param().abi()) } #[inline] pub unsafe fn SetTransactionInformation(transactionhandle: P0, isolationlevel: u32, isolationflags: u32, timeout: u32, description: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(transactionhandle.into_param().abi(), isolationlevel, isolationflags, timeout, description.into_param().abi()).ok() + SetTransactionInformation(transactionhandle.param().abi(), isolationlevel, isolationflags, timeout, description.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] @@ -2959,54 +2959,54 @@ pub unsafe fn SetUserFileEncryptionKeyEx(pencryptioncertificate: Option<*const E #[inline] pub unsafe fn SetVolumeLabelA(lprootpathname: P0, lpvolumename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetVolumeLabelA(lprootpathname : windows_core::PCSTR, lpvolumename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetVolumeLabelA(lprootpathname.into_param().abi(), lpvolumename.into_param().abi()).ok() + SetVolumeLabelA(lprootpathname.param().abi(), lpvolumename.param().abi()).ok() } #[inline] pub unsafe fn SetVolumeLabelW(lprootpathname: P0, lpvolumename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetVolumeLabelW(lprootpathname : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetVolumeLabelW(lprootpathname.into_param().abi(), lpvolumename.into_param().abi()).ok() + SetVolumeLabelW(lprootpathname.param().abi(), lpvolumename.param().abi()).ok() } #[inline] pub unsafe fn SetVolumeMountPointA(lpszvolumemountpoint: P0, lpszvolumename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR, lpszvolumename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetVolumeMountPointA(lpszvolumemountpoint.into_param().abi(), lpszvolumename.into_param().abi()).ok() + SetVolumeMountPointA(lpszvolumemountpoint.param().abi(), lpszvolumename.param().abi()).ok() } #[inline] pub unsafe fn SetVolumeMountPointW(lpszvolumemountpoint: P0, lpszvolumename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetVolumeMountPointW(lpszvolumemountpoint.into_param().abi(), lpszvolumename.into_param().abi()).ok() + SetVolumeMountPointW(lpszvolumemountpoint.param().abi(), lpszvolumename.param().abi()).ok() } #[inline] pub unsafe fn SinglePhaseReject(enlistmenthandle: P0, tmvirtualclock: *mut i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ktmw32.dll" "system" fn SinglePhaseReject(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); - SinglePhaseReject(enlistmenthandle.into_param().abi(), tmvirtualclock).ok() + SinglePhaseReject(enlistmenthandle.param().abi(), tmvirtualclock).ok() } #[inline] pub unsafe fn SubmitIoRing(ioring: P0, waitoperations: u32, milliseconds: u32, submittedentries: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ioring.into_param().abi(), waitoperations, milliseconds, core::mem::transmute(submittedentries.unwrap_or(std::ptr::null_mut()))).ok() + SubmitIoRing(ioring.param().abi(), waitoperations, milliseconds, core::mem::transmute(submittedentries.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn TerminateLogArchive(pvarchivecontext: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -3034,18 +3034,18 @@ pub unsafe fn TxfGetThreadMiniVersionForCreate() -> u16 { #[inline] pub unsafe fn TxfLogCreateFileReadContext(logpath: P0, beginninglsn: CLS_LSN, endinglsn: CLS_LSN, txffileid: *const TXF_ID, txflogcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), txffileid, txflogcontext).ok() + TxfLogCreateFileReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), txffileid, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), beginningvirtualclock, endingvirtualclock, recordtypemask, txflogcontext) + TxfLogCreateRangeReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), beginningvirtualclock, endingvirtualclock, recordtypemask, txflogcontext) } #[inline] pub unsafe fn TxfLogDestroyReadContext(txflogcontext: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -3070,10 +3070,10 @@ pub unsafe fn TxfLogRecordGetGenericType(recordbuffer: *const core::ffi::c_void, #[inline] pub unsafe fn TxfReadMetadataInfo(filehandle: P0, txffileid: *mut TXF_ID, lastlsn: *mut CLS_LSN, transactionstate: *mut u32, lockingtransaction: *mut windows_core::GUID) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), txffileid, lastlsn, transactionstate, lockingtransaction) + TxfReadMetadataInfo(filehandle.param().abi(), txffileid, lastlsn, transactionstate, lockingtransaction) } #[inline] pub unsafe fn TxfSetThreadMiniVersionForCreate(miniversion: u16) { @@ -3083,72 +3083,72 @@ pub unsafe fn TxfSetThreadMiniVersionForCreate(miniversion: u16) { #[inline] pub unsafe fn UnlockFile(hfile: P0, dwfileoffsetlow: u32, dwfileoffsethigh: u32, nnumberofbytestounlocklow: u32, nnumberofbytestounlockhigh: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestounlocklow, nnumberofbytestounlockhigh).ok() + UnlockFile(hfile.param().abi(), dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestounlocklow, nnumberofbytestounlockhigh).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn UnlockFileEx(hfile: P0, dwreserved: u32, nnumberofbytestounlocklow: u32, nnumberofbytestounlockhigh: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), dwreserved, nnumberofbytestounlocklow, nnumberofbytestounlockhigh, lpoverlapped).ok() + UnlockFileEx(hfile.param().abi(), dwreserved, nnumberofbytestounlocklow, nnumberofbytestounlockhigh, lpoverlapped).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ValidateLog(pszlogfilename: P0, psalogfile: *mut super::super::Security::SECURITY_ATTRIBUTES, pinfobuffer: *mut CLS_INFORMATION, pcbbuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("clfsw32.dll" "system" fn ValidateLog(pszlogfilename : windows_core::PCWSTR, psalogfile : *mut super::super::Security:: SECURITY_ATTRIBUTES, pinfobuffer : *mut CLS_INFORMATION, pcbbuffer : *mut u32) -> super::super::Foundation:: BOOL); - ValidateLog(pszlogfilename.into_param().abi(), psalogfile, pinfobuffer, pcbbuffer).ok() + ValidateLog(pszlogfilename.param().abi(), psalogfile, pinfobuffer, pcbbuffer).ok() } #[inline] pub unsafe fn VerFindFileA(uflags: VER_FIND_FILE_FLAGS, szfilename: P0, szwindir: P1, szappdir: P2, szcurdir: windows_core::PSTR, pucurdirlen: *mut u32, szdestdir: windows_core::PSTR, pudestdirlen: *mut u32) -> VER_FIND_FILE_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(uflags, szfilename.into_param().abi(), szwindir.into_param().abi(), szappdir.into_param().abi(), core::mem::transmute(szcurdir), pucurdirlen, core::mem::transmute(szdestdir), pudestdirlen) + VerFindFileA(uflags, szfilename.param().abi(), szwindir.param().abi(), szappdir.param().abi(), core::mem::transmute(szcurdir), pucurdirlen, core::mem::transmute(szdestdir), pudestdirlen) } #[inline] pub unsafe fn VerFindFileW(uflags: VER_FIND_FILE_FLAGS, szfilename: P0, szwindir: P1, szappdir: P2, szcurdir: windows_core::PWSTR, pucurdirlen: *mut u32, szdestdir: windows_core::PWSTR, pudestdirlen: *mut u32) -> VER_FIND_FILE_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(uflags, szfilename.into_param().abi(), szwindir.into_param().abi(), szappdir.into_param().abi(), core::mem::transmute(szcurdir), pucurdirlen, core::mem::transmute(szdestdir), pudestdirlen) + VerFindFileW(uflags, szfilename.param().abi(), szwindir.param().abi(), szappdir.param().abi(), core::mem::transmute(szcurdir), pucurdirlen, core::mem::transmute(szdestdir), pudestdirlen) } #[inline] pub unsafe fn VerInstallFileA(uflags: VER_INSTALL_FILE_FLAGS, szsrcfilename: P0, szdestfilename: P1, szsrcdir: P2, szdestdir: P3, szcurdir: P4, sztmpfile: windows_core::PSTR, putmpfilelen: *mut u32) -> VER_INSTALL_FILE_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(uflags, szsrcfilename.into_param().abi(), szdestfilename.into_param().abi(), szsrcdir.into_param().abi(), szdestdir.into_param().abi(), szcurdir.into_param().abi(), core::mem::transmute(sztmpfile), putmpfilelen) + VerInstallFileA(uflags, szsrcfilename.param().abi(), szdestfilename.param().abi(), szsrcdir.param().abi(), szdestdir.param().abi(), szcurdir.param().abi(), core::mem::transmute(sztmpfile), putmpfilelen) } #[inline] pub unsafe fn VerInstallFileW(uflags: VER_INSTALL_FILE_FLAGS, szsrcfilename: P0, szdestfilename: P1, szsrcdir: P2, szdestdir: P3, szcurdir: P4, sztmpfile: windows_core::PWSTR, putmpfilelen: *mut u32) -> VER_INSTALL_FILE_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(uflags, szsrcfilename.into_param().abi(), szdestfilename.into_param().abi(), szsrcdir.into_param().abi(), szdestdir.into_param().abi(), szcurdir.into_param().abi(), core::mem::transmute(sztmpfile), putmpfilelen) + VerInstallFileW(uflags, szsrcfilename.param().abi(), szdestfilename.param().abi(), szsrcdir.param().abi(), szdestdir.param().abi(), szcurdir.param().abi(), core::mem::transmute(sztmpfile), putmpfilelen) } #[inline] pub unsafe fn VerLanguageNameA(wlang: u32, szlang: &mut [u8]) -> u32 { @@ -3163,110 +3163,110 @@ pub unsafe fn VerLanguageNameW(wlang: u32, szlang: &mut [u16]) -> u32 { #[inline] pub unsafe fn VerQueryValueA(pblock: *const core::ffi::c_void, lpsubblock: P0, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(pblock, lpsubblock.into_param().abi(), lplpbuffer, pulen) + VerQueryValueA(pblock, lpsubblock.param().abi(), lplpbuffer, pulen) } #[inline] pub unsafe fn VerQueryValueW(pblock: *const core::ffi::c_void, lpsubblock: P0, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(pblock, lpsubblock.into_param().abi(), lplpbuffer, pulen) + VerQueryValueW(pblock, lpsubblock.param().abi(), lplpbuffer, pulen) } #[inline] pub unsafe fn WofEnumEntries(volumename: P0, provider: u32, enumproc: WofEnumEntryProc, userdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), provider, enumproc, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))).ok() + WofEnumEntries(volumename.param().abi(), provider, enumproc, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WofFileEnumFiles(volumename: P0, algorithm: u32, enumproc: WofEnumFilesProc, userdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), algorithm, enumproc, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))).ok() + WofFileEnumFiles(volumename.param().abi(), algorithm, enumproc, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WofGetDriverVersion(fileorvolumehandle: P0, provider: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofGetDriverVersion(fileorvolumehandle : super::super::Foundation:: HANDLE, provider : u32, wofversion : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WofGetDriverVersion(fileorvolumehandle.into_param().abi(), provider, &mut result__).map(|| result__) + WofGetDriverVersion(fileorvolumehandle.param().abi(), provider, &mut result__).map(|| 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofIsExternalFile(filepath : windows_core::PCWSTR, isexternalfile : *mut super::super::Foundation:: BOOL, provider : *mut u32, externalfileinfo : *mut core::ffi::c_void, bufferlength : *mut u32) -> windows_core::HRESULT); - WofIsExternalFile(filepath.into_param().abi(), core::mem::transmute(isexternalfile.unwrap_or(std::ptr::null_mut())), core::mem::transmute(provider.unwrap_or(std::ptr::null_mut())), core::mem::transmute(externalfileinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(bufferlength.unwrap_or(std::ptr::null_mut()))).ok() + WofIsExternalFile(filepath.param().abi(), core::mem::transmute(isexternalfile.unwrap_or(std::ptr::null_mut())), core::mem::transmute(provider.unwrap_or(std::ptr::null_mut())), core::mem::transmute(externalfileinfo.unwrap_or(std::ptr::null_mut())), core::mem::transmute(bufferlength.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WofSetFileDataLocation(filehandle: P0, provider: u32, externalfileinfo: *const core::ffi::c_void, length: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), provider, externalfileinfo, length).ok() + WofSetFileDataLocation(filehandle.param().abi(), provider, externalfileinfo, length).ok() } #[inline] pub unsafe fn WofShouldCompressBinaries(volume: P0, algorithm: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofShouldCompressBinaries(volume : windows_core::PCWSTR, algorithm : *mut u32) -> super::super::Foundation:: BOOL); - WofShouldCompressBinaries(volume.into_param().abi(), algorithm) + WofShouldCompressBinaries(volume.param().abi(), algorithm) } #[inline] pub unsafe fn WofWimAddEntry(volumename: P0, wimpath: P1, wimtype: u32, wimindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WofWimAddEntry(volumename.into_param().abi(), wimpath.into_param().abi(), wimtype, wimindex, &mut result__).map(|| result__) + WofWimAddEntry(volumename.param().abi(), wimpath.param().abi(), wimtype, wimindex, &mut result__).map(|| result__) } #[inline] pub unsafe fn WofWimEnumFiles(volumename: P0, datasourceid: i64, enumproc: WofEnumFilesProc, userdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), datasourceid, enumproc, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))).ok() + WofWimEnumFiles(volumename.param().abi(), datasourceid, enumproc, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WofWimRemoveEntry(volumename: P0, datasourceid: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofWimRemoveEntry(volumename : windows_core::PCWSTR, datasourceid : i64) -> windows_core::HRESULT); - WofWimRemoveEntry(volumename.into_param().abi(), datasourceid).ok() + WofWimRemoveEntry(volumename.param().abi(), datasourceid).ok() } #[inline] pub unsafe fn WofWimSuspendEntry(volumename: P0, datasourceid: i64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wofutil.dll" "system" fn WofWimSuspendEntry(volumename : windows_core::PCWSTR, datasourceid : i64) -> windows_core::HRESULT); - WofWimSuspendEntry(volumename.into_param().abi(), datasourceid).ok() + WofWimSuspendEntry(volumename.param().abi(), datasourceid).ok() } #[inline] pub unsafe fn WofWimUpdateEntry(volumename: P0, datasourceid: i64, newwimpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), datasourceid, newwimpath.into_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<()> { @@ -3276,10 +3276,10 @@ pub unsafe fn Wow64DisableWow64FsRedirection(oldvalue: *mut *mut core::ffi::c_vo #[inline] pub unsafe fn Wow64EnableWow64FsRedirection(wow64fsenableredirection: P0) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Wow64EnableWow64FsRedirection(wow64fsenableredirection : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); - Wow64EnableWow64FsRedirection(wow64fsenableredirection.into_param().abi()) + Wow64EnableWow64FsRedirection(wow64fsenableredirection.param().abi()) } #[inline] pub unsafe fn Wow64RevertWow64FsRedirection(olvalue: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -3295,28 +3295,28 @@ pub unsafe fn WriteEncryptedFileRaw(pfimportcallback: PFE_IMPORT_FUNC, pvcallbac #[inline] pub unsafe fn WriteFile(hfile: P0, lpbuffer: Option<&[u8]>, lpnumberofbyteswritten: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() + WriteFile(hfile.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFileEx(hfile: P0, lpbuffer: Option<&[u8]>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), 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()), lpoverlapped, lpcompletionroutine).ok() + WriteFileEx(hfile.param().abi(), 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()), lpoverlapped, lpcompletionroutine).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFileGather(hfile: P0, asegmentarray: *const FILE_SEGMENT_ELEMENT, nnumberofbytestowrite: u32, lpreserved: Option<*const u32>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfile.into_param().abi(), asegmentarray, nnumberofbytestowrite, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), lpoverlapped).ok() + WriteFileGather(hfile.param().abi(), asegmentarray, nnumberofbytestowrite, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), lpoverlapped).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -3327,11 +3327,11 @@ pub unsafe fn WriteLogRestartArea(pvmarshal: *mut core::ffi::c_void, pvrestartbu #[inline] pub unsafe fn WriteTapemark(hdevice: P0, dwtapemarktype: TAPEMARK_TYPE, dwtapemarkcount: u32, bimmediate: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdevice.into_param().abi(), dwtapemarktype, dwtapemarkcount, bimmediate.into_param().abi()) + WriteTapemark(hdevice.param().abi(), dwtapemarktype, dwtapemarkcount, bimmediate.param().abi()) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IDiskQuotaControl, IDiskQuotaControl_Vtbl, 0x7988b572_ec89_11cf_9c00_00aa00a14f56); @@ -3351,10 +3351,10 @@ impl IDiskQuotaControl { } pub unsafe fn Initialize(&self, pszpath: P0, breadwrite: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), breadwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszpath.param().abi(), breadwrite.param().abi()).ok() } pub unsafe fn SetQuotaState(&self, dwstate: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetQuotaState)(windows_core::Interface::as_raw(self), dwstate).ok() @@ -3376,9 +3376,9 @@ impl IDiskQuotaControl { } pub unsafe fn GetDefaultQuotaThresholdText(&self, psztext: P0, cchtext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDefaultQuotaThresholdText)(windows_core::Interface::as_raw(self), psztext.into_param().abi(), 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), lllimit).ok() @@ -3388,43 +3388,43 @@ impl IDiskQuotaControl { } pub unsafe fn GetDefaultQuotaLimitText(&self, psztext: P0, cchtext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDefaultQuotaLimitText)(windows_core::Interface::as_raw(self), psztext.into_param().abi(), cchtext).ok() + (windows_core::Interface::vtable(self).GetDefaultQuotaLimitText)(windows_core::Interface::as_raw(self), psztext.param().abi(), cchtext).ok() } pub unsafe fn AddUserSid(&self, pusersid: P0, fnameresolution: DISKQUOTA_USERNAME_RESOLVE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddUserSid)(windows_core::Interface::as_raw(self), pusersid.into_param().abi(), fnameresolution, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddUserSid)(windows_core::Interface::as_raw(self), pusersid.param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddUserName)(windows_core::Interface::as_raw(self), pszlogonname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteUser)(windows_core::Interface::as_raw(self), puser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteUser)(windows_core::Interface::as_raw(self), puser.param().abi()).ok() } pub unsafe fn FindUserSid(&self, pusersid: P0, fnameresolution: DISKQUOTA_USERNAME_RESOLVE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindUserSid)(windows_core::Interface::as_raw(self), pusersid.into_param().abi(), fnameresolution, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindUserSid)(windows_core::Interface::as_raw(self), pusersid.param().abi(), fnameresolution, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindUserName(&self, pszlogonname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindUserName)(windows_core::Interface::as_raw(self), pszlogonname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindUserName)(windows_core::Interface::as_raw(self), pszlogonname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEnumUsers(&self, rgpusersids: *mut super::super::Foundation::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), rgpusersids, cpsids, fnameresolution, core::mem::transmute(ppenum)).ok() @@ -3438,9 +3438,9 @@ impl IDiskQuotaControl { } pub unsafe fn GiveUserNameResolutionPriority(&self, puser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GiveUserNameResolutionPriority)(windows_core::Interface::as_raw(self), puser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GiveUserNameResolutionPriority)(windows_core::Interface::as_raw(self), puser.param().abi()).ok() } pub unsafe fn ShutdownNameResolution(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShutdownNameResolution)(windows_core::Interface::as_raw(self)).ok() @@ -3477,9 +3477,9 @@ windows_core::imp::interface_hierarchy!(IDiskQuotaEvents, windows_core::IUnknown impl IDiskQuotaEvents { pub unsafe fn OnUserNameChanged(&self, puser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUserNameChanged)(windows_core::Interface::as_raw(self), puser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnUserNameChanged)(windows_core::Interface::as_raw(self), puser.param().abi()).ok() } } #[repr(C)] @@ -3495,11 +3495,11 @@ impl IDiskQuotaUser { } pub unsafe fn GetName(&self, pszaccountcontainer: P0, cchaccountcontainer: u32, pszlogonname: P1, cchlogonname: u32, pszdisplayname: P2, cchdisplayname: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), pszaccountcontainer.into_param().abi(), cchaccountcontainer, pszlogonname.into_param().abi(), cchlogonname, pszdisplayname.into_param().abi(), 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), pdwlength).ok() @@ -3512,42 +3512,42 @@ impl IDiskQuotaUser { } pub unsafe fn GetQuotaThresholdText(&self, psztext: P0, cchtext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetQuotaThresholdText)(windows_core::Interface::as_raw(self), psztext.into_param().abi(), 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), plllimit).ok() } pub unsafe fn GetQuotaLimitText(&self, psztext: P0, cchtext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetQuotaLimitText)(windows_core::Interface::as_raw(self), psztext.into_param().abi(), 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), pllused).ok() } pub unsafe fn GetQuotaUsedText(&self, psztext: P0, cchtext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetQuotaUsedText)(windows_core::Interface::as_raw(self), psztext.into_param().abi(), 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), pbquotainfo, cbquotainfo).ok() } pub unsafe fn SetQuotaThreshold(&self, llthreshold: i64, fwritethrough: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuotaThreshold)(windows_core::Interface::as_raw(self), llthreshold, fwritethrough.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuotaThreshold)(windows_core::Interface::as_raw(self), llthreshold, fwritethrough.param().abi()).ok() } pub unsafe fn SetQuotaLimit(&self, lllimit: i64, fwritethrough: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuotaLimit)(windows_core::Interface::as_raw(self), lllimit, fwritethrough.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuotaLimit)(windows_core::Interface::as_raw(self), lllimit, fwritethrough.param().abi()).ok() } pub unsafe fn Invalidate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Invalidate)(windows_core::Interface::as_raw(self)).ok() @@ -3580,15 +3580,15 @@ windows_core::imp::interface_hierarchy!(IDiskQuotaUserBatch, windows_core::IUnkn impl IDiskQuotaUserBatch { pub unsafe fn Add(&self, puser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), puser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), puser.param().abi()).ok() } pub unsafe fn Remove(&self, puser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), puser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), puser.param().abi()).ok() } pub unsafe fn RemoveAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAll)(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 bd05495a4b..e855c1ab75 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn CloseIMsgSession(lpmsgsess: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn CloseIMsgSession(lpmsgsess : LPMSGSESS)); - CloseIMsgSession(lpmsgsess.into_param().abi()) + CloseIMsgSession(lpmsgsess.param().abi()) } #[cfg(feature = "Win32_System_AddressBook")] #[inline] @@ -21,21 +21,21 @@ pub unsafe fn MapStorageSCode(stgscode: i32) -> i32 { #[inline] pub unsafe fn OpenIMsgOnIStg(lpmsgsess: P0, lpallocatebuffer: super::super::System::AddressBook::LPALLOCATEBUFFER, lpallocatemore: super::super::System::AddressBook::LPALLOCATEMORE, lpfreebuffer: super::super::System::AddressBook::LPFREEBUFFER, lpmalloc: P1, lpmapisup: *mut core::ffi::c_void, lpstg: P2, lpfmsgcallrelease: *mut MSGCALLRELEASE, ulcallerdata: u32, ulflags: u32, lppmsg: *mut Option) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(lpmsgsess.into_param().abi(), lpallocatebuffer, lpallocatemore, lpfreebuffer, lpmalloc.into_param().abi(), lpmapisup, lpstg.into_param().abi(), lpfmsgcallrelease, ulcallerdata, ulflags, core::mem::transmute(lppmsg)) + OpenIMsgOnIStg(lpmsgsess.param().abi(), lpallocatebuffer, lpallocatemore, lpfreebuffer, lpmalloc.param().abi(), lpmapisup, lpstg.param().abi(), lpfmsgcallrelease, ulcallerdata, ulflags, core::mem::transmute(lppmsg)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OpenIMsgSession(lpmalloc: P0, ulflags: u32, lppmsgsess: *mut LPMSGSESS) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, lppmsgsess) + OpenIMsgSession(lpmalloc.param().abi(), ulflags, lppmsgsess) } #[cfg(feature = "Win32_System_AddressBook")] #[inline] @@ -52,10 +52,10 @@ impl DDiscFormat2DataEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, object: P0, progress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.into_param().abi(), progress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), progress.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -76,9 +76,9 @@ impl DDiscFormat2EraseEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, object: P0, elapsedseconds: i32, estimatedtotalseconds: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.into_param().abi(), elapsedseconds, 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")] @@ -99,10 +99,10 @@ impl DDiscFormat2RawCDEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, object: P0, progress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.into_param().abi(), progress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), progress.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -123,10 +123,10 @@ impl DDiscFormat2TrackAtOnceEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, object: P0, progress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.into_param().abi(), progress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), progress.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -147,18 +147,18 @@ impl DDiscMaster2Events { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NotifyDeviceAdded(&self, object: P0, uniqueid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyDeviceAdded)(windows_core::Interface::as_raw(self), object.into_param().abi(), uniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyDeviceAdded)(windows_core::Interface::as_raw(self), object.param().abi(), uniqueid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NotifyDeviceRemoved(&self, object: P0, uniqueid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyDeviceRemoved)(windows_core::Interface::as_raw(self), object.into_param().abi(), uniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyDeviceRemoved)(windows_core::Interface::as_raw(self), object.param().abi(), uniqueid.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -183,10 +183,10 @@ impl DFileSystemImageEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, object: P0, currentfile: P1, copiedsectors: i32, totalsectors: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.into_param().abi(), currentfile.into_param().abi(), copiedsectors, totalsectors).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), currentfile.param().abi(), copiedsectors, totalsectors).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -207,10 +207,10 @@ impl DFileSystemImageImportEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateImport(&self, object: P0, filesystem: FsiFileSystems, currentitem: P1, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateImport)(windows_core::Interface::as_raw(self), object.into_param().abi(), filesystem, currentitem.into_param().abi(), importeddirectoryitems, totaldirectoryitems, importedfileitems, totalfileitems).ok() + (windows_core::Interface::vtable(self).UpdateImport)(windows_core::Interface::as_raw(self), object.param().abi(), filesystem, currentitem.param().abi(), importeddirectoryitems, totaldirectoryitems, importedfileitems, totalfileitems).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -231,10 +231,10 @@ impl DWriteEngine2Events { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, object: P0, progress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.into_param().abi(), progress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), object.param().abi(), progress.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -306,9 +306,9 @@ impl IBootOptions { } pub unsafe fn SetManufacturer(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetManufacturer)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetManufacturer)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn PlatformId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -331,9 +331,9 @@ impl IBootOptions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssignBootImage(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssignBootImage)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AssignBootImage)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -382,18 +382,18 @@ impl IDiscFormat2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsRecorderSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsCurrentMediaSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn MediaPhysicallyBlank(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -437,18 +437,18 @@ impl IDiscFormat2Data { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsRecorderSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsCurrentMediaSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn MediaPhysicallyBlank(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -466,9 +466,9 @@ impl IDiscFormat2Data { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRecorder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Recorder(&self) -> windows_core::Result { @@ -477,9 +477,9 @@ impl IDiscFormat2Data { } pub unsafe fn SetBufferUnderrunFreeDisabled(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn BufferUnderrunFreeDisabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -487,9 +487,9 @@ impl IDiscFormat2Data { } pub unsafe fn SetPostgapAlreadyInImage(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostgapAlreadyInImage)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostgapAlreadyInImage)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn PostgapAlreadyInImage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -525,9 +525,9 @@ impl IDiscFormat2Data { } pub unsafe fn SetForceMediaToBeClosed(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetForceMediaToBeClosed)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetForceMediaToBeClosed)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ForceMediaToBeClosed(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -535,9 +535,9 @@ impl IDiscFormat2Data { } pub unsafe fn SetDisableConsumerDvdCompatibilityMode(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisableConsumerDvdCompatibilityMode)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisableConsumerDvdCompatibilityMode)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn DisableConsumerDvdCompatibilityMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -549,9 +549,9 @@ impl IDiscFormat2Data { } pub unsafe fn SetClientName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ClientName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -585,9 +585,9 @@ impl IDiscFormat2Data { } pub unsafe fn SetForceOverwrite(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetForceOverwrite)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetForceOverwrite)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ForceOverwrite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -601,18 +601,18 @@ impl IDiscFormat2Data { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Write(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn CancelWrite(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelWrite)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetWriteSpeed(&self, requestedsectorspersecond: i32, rotationtypeispurecav: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -739,18 +739,18 @@ impl IDiscFormat2Erase { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsRecorderSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsCurrentMediaSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn MediaPhysicallyBlank(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -768,9 +768,9 @@ impl IDiscFormat2Erase { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRecorder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Recorder(&self) -> windows_core::Result { @@ -779,9 +779,9 @@ impl IDiscFormat2Erase { } pub unsafe fn SetFullErase(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFullErase)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFullErase)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FullErase(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -793,9 +793,9 @@ impl IDiscFormat2Erase { } pub unsafe fn SetClientName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ClientName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -833,18 +833,18 @@ impl IDiscFormat2RawCD { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsRecorderSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsCurrentMediaSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn MediaPhysicallyBlank(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -865,16 +865,16 @@ impl IDiscFormat2RawCD { #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteMedia(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteMedia)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteMedia)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteMedia2(&self, data: P0, streamleadinsectors: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteMedia2)(windows_core::Interface::as_raw(self), data.into_param().abi(), 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() @@ -884,16 +884,16 @@ impl IDiscFormat2RawCD { } pub unsafe fn SetWriteSpeed(&self, requestedsectorspersecond: i32, rotationtypeispurecav: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRecorder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Recorder(&self) -> windows_core::Result { @@ -902,9 +902,9 @@ impl IDiscFormat2RawCD { } pub unsafe fn SetBufferUnderrunFreeDisabled(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn BufferUnderrunFreeDisabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -936,9 +936,9 @@ impl IDiscFormat2RawCD { } pub unsafe fn SetClientName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ClientName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1085,18 +1085,18 @@ impl IDiscFormat2TrackAtOnce { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsRecorderSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsRecorderSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsCurrentMediaSupported(&self, recorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsCurrentMediaSupported)(windows_core::Interface::as_raw(self), recorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn MediaPhysicallyBlank(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1117,9 +1117,9 @@ impl IDiscFormat2TrackAtOnce { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddAudioTrack(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAudioTrack)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAudioTrack)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn CancelAddTrack(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelAddTrack)(windows_core::Interface::as_raw(self)).ok() @@ -1129,16 +1129,16 @@ impl IDiscFormat2TrackAtOnce { } pub unsafe fn SetWriteSpeed(&self, requestedsectorspersecond: i32, rotationtypeispurecav: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWriteSpeed)(windows_core::Interface::as_raw(self), requestedsectorspersecond, rotationtypeispurecav.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRecorder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Recorder(&self) -> windows_core::Result { @@ -1147,9 +1147,9 @@ impl IDiscFormat2TrackAtOnce { } pub unsafe fn SetBufferUnderrunFreeDisabled(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBufferUnderrunFreeDisabled)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn BufferUnderrunFreeDisabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1173,9 +1173,9 @@ impl IDiscFormat2TrackAtOnce { } pub unsafe fn SetDoNotFinalizeMedia(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDoNotFinalizeMedia)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDoNotFinalizeMedia)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn DoNotFinalizeMedia(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1192,9 +1192,9 @@ impl IDiscFormat2TrackAtOnce { } pub unsafe fn SetClientName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ClientName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1362,19 +1362,19 @@ impl IDiscMaster { } pub unsafe fn SetActiveDiscRecorder(&self, precorder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveDiscRecorder)(windows_core::Interface::as_raw(self), precorder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActiveDiscRecorder)(windows_core::Interface::as_raw(self), precorder.param().abi()).ok() } pub unsafe fn ClearFormatContent(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearFormatContent)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ProgressAdvise(&self, pevents: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProgressAdvise)(windows_core::Interface::as_raw(self), pevents.into_param().abi(), &mut result__).map(|| result__) + (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), vcookie).ok() @@ -1515,9 +1515,9 @@ impl IDiscRecorder { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SetRecorderProperties(&self, ppropstg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecorderProperties)(windows_core::Interface::as_raw(self), ppropstg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecorderProperties)(windows_core::Interface::as_raw(self), ppropstg.param().abi()).ok() } pub unsafe fn GetRecorderState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1581,10 +1581,10 @@ impl IDiscRecorder2 { } pub unsafe fn AcquireExclusiveAccess(&self, force: P0, __midl__idiscrecorder20000: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireExclusiveAccess)(windows_core::Interface::as_raw(self), force.into_param().abi(), __midl__idiscrecorder20000.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AcquireExclusiveAccess)(windows_core::Interface::as_raw(self), force.param().abi(), __midl__idiscrecorder20000.param().abi()).ok() } pub unsafe fn ReleaseExclusiveAccess(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseExclusiveAccess)(windows_core::Interface::as_raw(self)).ok() @@ -1597,9 +1597,9 @@ impl IDiscRecorder2 { } pub unsafe fn InitializeDiscRecorder(&self, recorderuniqueid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeDiscRecorder)(windows_core::Interface::as_raw(self), recorderuniqueid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeDiscRecorder)(windows_core::Interface::as_raw(self), recorderuniqueid.param().abi()).ok() } pub unsafe fn ActiveDiscRecorder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1740,9 +1740,9 @@ impl IDiscRecorder2Ex { } pub unsafe fn GetFeaturePage(&self, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: P0, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFeaturePage)(windows_core::Interface::as_raw(self), requestedfeature, currentfeatureonly.into_param().abi(), featuredata, bytesize).ok() + (windows_core::Interface::vtable(self).GetFeaturePage)(windows_core::Interface::as_raw(self), requestedfeature, currentfeatureonly.param().abi(), featuredata, 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), requestedmodepage, requesttype, modepagedata, bytesize).ok() @@ -1752,15 +1752,15 @@ impl IDiscRecorder2Ex { } pub unsafe fn GetSupportedFeaturePages(&self, currentfeatureonly: P0, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSupportedFeaturePages)(windows_core::Interface::as_raw(self), currentfeatureonly.into_param().abi(), featuredata, bytesize).ok() + (windows_core::Interface::vtable(self).GetSupportedFeaturePages)(windows_core::Interface::as_raw(self), currentfeatureonly.param().abi(), featuredata, bytesize).ok() } pub unsafe fn GetSupportedProfiles(&self, currentonly: P0, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSupportedProfiles)(windows_core::Interface::as_raw(self), currentonly.into_param().abi(), profiletypes, validprofiles).ok() + (windows_core::Interface::vtable(self).GetSupportedProfiles)(windows_core::Interface::as_raw(self), currentonly.param().abi(), profiletypes, 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), requesttype, modepagetypes, validpages).ok() @@ -1936,9 +1936,9 @@ impl IFileSystemImage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMaxMediaBlocksFromDevice(&self, discrecorder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMaxMediaBlocksFromDevice)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMaxMediaBlocksFromDevice)(windows_core::Interface::as_raw(self), discrecorder.param().abi()).ok() } pub unsafe fn UsedBlocks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1950,9 +1950,9 @@ impl IFileSystemImage { } pub unsafe fn SetVolumeName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVolumeName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVolumeName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ImportedVolumeName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1966,9 +1966,9 @@ impl IFileSystemImage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBootImageOptions(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBootImageOptions)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBootImageOptions)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1984,9 +1984,9 @@ impl IFileSystemImage { } pub unsafe fn SetWorkingDirectory(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ChangePoint(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1998,9 +1998,9 @@ impl IFileSystemImage { } pub unsafe fn SetStrictFileSystemCompliance(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn UseRestrictedCharacterSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2008,9 +2008,9 @@ impl IFileSystemImage { } pub unsafe fn SetUseRestrictedCharacterSet(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemsToCreate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2038,9 +2038,9 @@ impl IFileSystemImage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ChooseImageDefaults(&self, discrecorder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChooseImageDefaults)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi()).ok() + (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), value).ok() @@ -2064,10 +2064,10 @@ impl IFileSystemImage { } pub unsafe fn Exists(&self, fullpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Exists)(windows_core::Interface::as_raw(self), fullpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Exists)(windows_core::Interface::as_raw(self), fullpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CalculateDiscIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2076,10 +2076,10 @@ impl IFileSystemImage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IdentifyFileSystemsOnDisc(&self, discrecorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IdentifyFileSystemsOnDisc)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IdentifyFileSystemsOnDisc)(windows_core::Interface::as_raw(self), discrecorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetDefaultFileSystemForImport(&self, filesystems: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2101,18 +2101,18 @@ impl IFileSystemImage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDirectoryItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirectoryItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDirectoryItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFileItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFileItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFileItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VolumeNameUDF(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2132,9 +2132,9 @@ impl IFileSystemImage { } pub unsafe fn SetStageFiles(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStageFiles)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStageFiles)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MultisessionInterfaces(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2268,9 +2268,9 @@ impl IFileSystemImage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMaxMediaBlocksFromDevice(&self, discrecorder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMaxMediaBlocksFromDevice)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMaxMediaBlocksFromDevice)(windows_core::Interface::as_raw(self), discrecorder.param().abi()).ok() } pub unsafe fn UsedBlocks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2282,9 +2282,9 @@ impl IFileSystemImage2 { } pub unsafe fn SetVolumeName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVolumeName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVolumeName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ImportedVolumeName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2298,9 +2298,9 @@ impl IFileSystemImage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBootImageOptions(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBootImageOptions)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBootImageOptions)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2316,9 +2316,9 @@ impl IFileSystemImage2 { } pub unsafe fn SetWorkingDirectory(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ChangePoint(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2330,9 +2330,9 @@ impl IFileSystemImage2 { } pub unsafe fn SetStrictFileSystemCompliance(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn UseRestrictedCharacterSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2340,9 +2340,9 @@ impl IFileSystemImage2 { } pub unsafe fn SetUseRestrictedCharacterSet(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemsToCreate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2370,9 +2370,9 @@ impl IFileSystemImage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ChooseImageDefaults(&self, discrecorder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ChooseImageDefaults)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.ChooseImageDefaultsForMediaType)(windows_core::Interface::as_raw(self), value).ok() @@ -2396,10 +2396,10 @@ impl IFileSystemImage2 { } pub unsafe fn Exists(&self, fullpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Exists)(windows_core::Interface::as_raw(self), fullpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Exists)(windows_core::Interface::as_raw(self), fullpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CalculateDiscIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2408,10 +2408,10 @@ impl IFileSystemImage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IdentifyFileSystemsOnDisc(&self, discrecorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IdentifyFileSystemsOnDisc)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IdentifyFileSystemsOnDisc)(windows_core::Interface::as_raw(self), discrecorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetDefaultFileSystemForImport(&self, filesystems: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2433,18 +2433,18 @@ impl IFileSystemImage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDirectoryItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDirectoryItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDirectoryItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFileItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFileItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFileItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VolumeNameUDF(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2464,9 +2464,9 @@ impl IFileSystemImage2 { } pub unsafe fn SetStageFiles(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStageFiles)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStageFiles)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MultisessionInterfaces(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2528,9 +2528,9 @@ impl IFileSystemImage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMaxMediaBlocksFromDevice(&self, discrecorder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetMaxMediaBlocksFromDevice)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetMaxMediaBlocksFromDevice)(windows_core::Interface::as_raw(self), discrecorder.param().abi()).ok() } pub unsafe fn UsedBlocks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2542,9 +2542,9 @@ impl IFileSystemImage3 { } pub unsafe fn SetVolumeName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetVolumeName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetVolumeName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ImportedVolumeName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2558,9 +2558,9 @@ impl IFileSystemImage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBootImageOptions(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetBootImageOptions)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetBootImageOptions)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2576,9 +2576,9 @@ impl IFileSystemImage3 { } pub unsafe fn SetWorkingDirectory(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ChangePoint(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2590,9 +2590,9 @@ impl IFileSystemImage3 { } pub unsafe fn SetStrictFileSystemCompliance(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetStrictFileSystemCompliance)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn UseRestrictedCharacterSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2600,9 +2600,9 @@ impl IFileSystemImage3 { } pub unsafe fn SetUseRestrictedCharacterSet(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUseRestrictedCharacterSet)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemsToCreate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2630,9 +2630,9 @@ impl IFileSystemImage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ChooseImageDefaults(&self, discrecorder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ChooseImageDefaults)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.ChooseImageDefaultsForMediaType)(windows_core::Interface::as_raw(self), value).ok() @@ -2656,10 +2656,10 @@ impl IFileSystemImage3 { } pub unsafe fn Exists(&self, fullpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Exists)(windows_core::Interface::as_raw(self), fullpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.Exists)(windows_core::Interface::as_raw(self), fullpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CalculateDiscIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2668,10 +2668,10 @@ impl IFileSystemImage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IdentifyFileSystemsOnDisc(&self, discrecorder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IdentifyFileSystemsOnDisc)(windows_core::Interface::as_raw(self), discrecorder.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IdentifyFileSystemsOnDisc)(windows_core::Interface::as_raw(self), discrecorder.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetDefaultFileSystemForImport(&self, filesystems: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2693,18 +2693,18 @@ impl IFileSystemImage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDirectoryItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateDirectoryItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateDirectoryItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFileItem(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateFileItem)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateFileItem)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VolumeNameUDF(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2724,9 +2724,9 @@ impl IFileSystemImage3 { } pub unsafe fn SetStageFiles(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetStageFiles)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetStageFiles)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MultisessionInterfaces(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2752,9 +2752,9 @@ impl IFileSystemImage3 { } pub unsafe fn SetCreateRedundantUdfMetadataFiles(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCreateRedundantUdfMetadataFiles)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCreateRedundantUdfMetadataFiles)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ProbeSpecificFileSystem(&self, filesystemtoprobe: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2898,9 +2898,9 @@ impl IFsiDirectoryItem { } pub unsafe fn SetIsHidden(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2918,10 +2918,10 @@ impl IFsiDirectoryItem { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2933,43 +2933,43 @@ impl IFsiDirectoryItem { } pub unsafe fn AddDirectory(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDirectory)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDirectory)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFile(&self, path: P0, filedata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFile)(windows_core::Interface::as_raw(self), path.into_param().abi(), filedata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFile)(windows_core::Interface::as_raw(self), path.param().abi(), filedata.param().abi()).ok() } pub unsafe fn AddTree(&self, sourcedirectory: P0, includebasedirectory: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTree)(windows_core::Interface::as_raw(self), sourcedirectory.into_param().abi(), includebasedirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTree)(windows_core::Interface::as_raw(self), sourcedirectory.param().abi(), includebasedirectory.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, item: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), item.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), item.param().abi()).ok() } pub unsafe fn Remove(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn RemoveTree(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveTree)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveTree)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3040,9 +3040,9 @@ impl IFsiDirectoryItem2 { } pub unsafe fn SetIsHidden(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3060,10 +3060,10 @@ impl IFsiDirectoryItem2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_Item)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_Item)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3075,50 +3075,50 @@ impl IFsiDirectoryItem2 { } pub unsafe fn AddDirectory(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDirectory)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddDirectory)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddFile(&self, path: P0, filedata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFile)(windows_core::Interface::as_raw(self), path.into_param().abi(), filedata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddFile)(windows_core::Interface::as_raw(self), path.param().abi(), filedata.param().abi()).ok() } pub unsafe fn AddTree(&self, sourcedirectory: P0, includebasedirectory: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddTree)(windows_core::Interface::as_raw(self), sourcedirectory.into_param().abi(), includebasedirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddTree)(windows_core::Interface::as_raw(self), sourcedirectory.param().abi(), includebasedirectory.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, item: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), item.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), item.param().abi()).ok() } pub unsafe fn Remove(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Remove)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Remove)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn RemoveTree(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveTree)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveTree)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AddTreeWithNamedStreams(&self, sourcedirectory: P0, includebasedirectory: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTreeWithNamedStreams)(windows_core::Interface::as_raw(self), sourcedirectory.into_param().abi(), includebasedirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTreeWithNamedStreams)(windows_core::Interface::as_raw(self), sourcedirectory.param().abi(), includebasedirectory.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3168,9 +3168,9 @@ impl IFsiFileItem { } pub unsafe fn SetIsHidden(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3200,9 +3200,9 @@ impl IFsiFileItem { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetData(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3262,9 +3262,9 @@ impl IFsiFileItem2 { } pub unsafe fn SetIsHidden(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3294,9 +3294,9 @@ impl IFsiFileItem2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetData(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FsiNamedStreams(&self) -> windows_core::Result { @@ -3310,16 +3310,16 @@ impl IFsiFileItem2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddStream(&self, name: P0, streamdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), name.into_param().abi(), streamdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddStream)(windows_core::Interface::as_raw(self), name.param().abi(), streamdata.param().abi()).ok() } pub unsafe fn RemoveStream(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveStream)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn IsRealTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3327,9 +3327,9 @@ impl IFsiFileItem2 { } pub unsafe fn SetIsRealTime(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsRealTime)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsRealTime)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3390,9 +3390,9 @@ impl IFsiItem { } pub unsafe fn SetIsHidden(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3477,16 +3477,16 @@ impl IIsoImageManager { } pub unsafe fn SetPath(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetStream(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStream)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStream)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } pub unsafe fn Validate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self)).ok() @@ -3526,9 +3526,9 @@ impl IJolietDiscMaster { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn AddData(&self, pstorage: P0, lfileoverwrite: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddData)(windows_core::Interface::as_raw(self), pstorage.into_param().abi(), 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 { @@ -3538,9 +3538,9 @@ impl IJolietDiscMaster { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SetJolietProperties(&self, ppropstg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetJolietProperties)(windows_core::Interface::as_raw(self), ppropstg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetJolietProperties)(windows_core::Interface::as_raw(self), ppropstg.param().abi()).ok() } } #[repr(C)] @@ -3574,9 +3574,9 @@ impl IMultisession { } pub unsafe fn SetInUse(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInUse)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInUse)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InUse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3612,9 +3612,9 @@ impl IMultisessionRandomWrite { } pub unsafe fn SetInUse(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInUse)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetInUse)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InUse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3658,9 +3658,9 @@ impl IMultisessionSequential { } pub unsafe fn SetInUse(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetInUse)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetInUse)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InUse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3714,9 +3714,9 @@ impl IMultisessionSequential2 { } pub unsafe fn SetInUse(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetInUse)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetInUse)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn InUse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3818,10 +3818,10 @@ impl IProgressItems { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ProgressItemFromDescription(&self, description: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProgressItemFromDescription)(windows_core::Interface::as_raw(self), description.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProgressItemFromDescription)(windows_core::Interface::as_raw(self), description.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumProgressItems(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3865,24 +3865,24 @@ impl IRawCDImageCreator { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddTrack(&self, datatype: IMAPI_CD_SECTOR_TYPE, data: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddTrack)(windows_core::Interface::as_raw(self), datatype, data.into_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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSpecialPregap)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSpecialPregap)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddSubcodeRWGenerator(&self, subcode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSubcodeRWGenerator)(windows_core::Interface::as_raw(self), subcode.into_param().abi()).ok() + (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), value).ok() @@ -3904,9 +3904,9 @@ impl IRawCDImageCreator { } pub unsafe fn SetDisableGaplessAudio(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisableGaplessAudio)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisableGaplessAudio)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn DisableGaplessAudio(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3914,9 +3914,9 @@ impl IRawCDImageCreator { } pub unsafe fn SetMediaCatalogNumber(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMediaCatalogNumber)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMediaCatalogNumber)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn MediaCatalogNumber(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4018,9 +4018,9 @@ impl IRawCDImageTrackInfo { } pub unsafe fn SetISRC(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetISRC)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetISRC)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn DigitalAudioCopySetting(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4035,9 +4035,9 @@ impl IRawCDImageTrackInfo { } pub unsafe fn SetAudioHasPreemphasis(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAudioHasPreemphasis)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAudioHasPreemphasis)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TrackIndexes(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -4142,9 +4142,9 @@ impl IStreamConcatenate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -4174,10 +4174,10 @@ impl IStreamConcatenate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, stream1: P0, stream2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), stream1.into_param().abi(), stream2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), stream1.param().abi(), stream2.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize2(&self, streams: &[Option]) -> windows_core::Result<()> { @@ -4186,9 +4186,9 @@ impl IStreamConcatenate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Append(&self, stream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), stream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), stream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Append2(&self, streams: &[Option]) -> windows_core::Result<()> { @@ -4241,9 +4241,9 @@ impl IStreamInterleave { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -4309,9 +4309,9 @@ impl IStreamPseudoRandomBased { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -4370,18 +4370,18 @@ impl IWriteEngine2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteSection(&self, data: P0, startingblockaddress: i32, numberofblocks: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSection)(windows_core::Interface::as_raw(self), data.into_param().abi(), startingblockaddress, 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() } pub unsafe fn SetRecorder(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecorder)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Recorder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4389,9 +4389,9 @@ impl IWriteEngine2 { } pub unsafe fn SetUseStreamingWrite12(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseStreamingWrite12)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseStreamingWrite12)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn UseStreamingWrite12(&self) -> windows_core::Result { let mut result__ = std::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 ff661e512b..1a75875559 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs @@ -2,38 +2,38 @@ #[inline] pub unsafe fn BindIFilterFromStorage(pstg: P0, punkouter: P1, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("query.dll" "system" fn BindIFilterFromStorage(pstg : * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void, ppiunk : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - BindIFilterFromStorage(pstg.into_param().abi(), punkouter.into_param().abi(), ppiunk).ok() + BindIFilterFromStorage(pstg.param().abi(), punkouter.param().abi(), ppiunk).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn BindIFilterFromStream(pstm: P0, punkouter: P1, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("query.dll" "system" fn BindIFilterFromStream(pstm : * mut core::ffi::c_void, punkouter : * mut core::ffi::c_void, ppiunk : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - BindIFilterFromStream(pstm.into_param().abi(), punkouter.into_param().abi(), ppiunk).ok() + BindIFilterFromStream(pstm.param().abi(), punkouter.param().abi(), ppiunk).ok() } #[inline] pub unsafe fn LoadIFilter(pwcspath: P0, punkouter: P1, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("query.dll" "system" fn LoadIFilter(pwcspath : windows_core::PCWSTR, punkouter : * mut core::ffi::c_void, ppiunk : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - LoadIFilter(pwcspath.into_param().abi(), punkouter.into_param().abi(), ppiunk).ok() + LoadIFilter(pwcspath.param().abi(), punkouter.param().abi(), ppiunk).ok() } #[inline] pub unsafe fn LoadIFilterEx(pwcspath: P0, dwflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, riid, ppiunk).ok() + LoadIFilterEx(pwcspath.param().abi(), dwflags, riid, ppiunk).ok() } windows_core::imp::define_interface!(IFilter, IFilter_Vtbl, 0x89bcb740_6119_101a_bcb7_00dd010655af); windows_core::imp::interface_hierarchy!(IFilter, windows_core::IUnknown); @@ -76,16 +76,16 @@ windows_core::imp::interface_hierarchy!(IPhraseSink, windows_core::IUnknown); impl IPhraseSink { pub unsafe fn PutSmallPhrase(&self, pwcnoun: P0, cwcnoun: u32, pwcmodifier: P1, cwcmodifier: u32, ulattachmenttype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutSmallPhrase)(windows_core::Interface::as_raw(self), pwcnoun.into_param().abi(), cwcnoun, pwcmodifier.into_param().abi(), cwcmodifier, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutPhrase)(windows_core::Interface::as_raw(self), pwcphrase.into_param().abi(), 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 575953180d..6eecfd8109 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs @@ -1,68 +1,68 @@ #[inline] pub unsafe fn FilterAttach(lpfiltername: P0, lpvolumename: P1, lpinstancename: P2, dwcreatedinstancenamelength: u32, lpcreatedinstancename: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterAttach(lpfiltername : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR, lpinstancename : windows_core::PCWSTR, dwcreatedinstancenamelength : u32, lpcreatedinstancename : windows_core::PWSTR) -> windows_core::HRESULT); - FilterAttach(lpfiltername.into_param().abi(), lpvolumename.into_param().abi(), lpinstancename.into_param().abi(), dwcreatedinstancenamelength, core::mem::transmute(lpcreatedinstancename)).ok() + FilterAttach(lpfiltername.param().abi(), lpvolumename.param().abi(), lpinstancename.param().abi(), dwcreatedinstancenamelength, core::mem::transmute(lpcreatedinstancename)).ok() } #[inline] pub unsafe fn FilterAttachAtAltitude(lpfiltername: P0, lpvolumename: P1, lpaltitude: P2, lpinstancename: P3, dwcreatedinstancenamelength: u32, lpcreatedinstancename: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterAttachAtAltitude(lpfiltername : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR, lpaltitude : windows_core::PCWSTR, lpinstancename : windows_core::PCWSTR, dwcreatedinstancenamelength : u32, lpcreatedinstancename : windows_core::PWSTR) -> windows_core::HRESULT); - FilterAttachAtAltitude(lpfiltername.into_param().abi(), lpvolumename.into_param().abi(), lpaltitude.into_param().abi(), lpinstancename.into_param().abi(), dwcreatedinstancenamelength, core::mem::transmute(lpcreatedinstancename)).ok() + FilterAttachAtAltitude(lpfiltername.param().abi(), lpvolumename.param().abi(), lpaltitude.param().abi(), lpinstancename.param().abi(), dwcreatedinstancenamelength, core::mem::transmute(lpcreatedinstancename)).ok() } #[inline] pub unsafe fn FilterClose(hfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterClose(hfilter : HFILTER) -> windows_core::HRESULT); - FilterClose(hfilter.into_param().abi()).ok() + FilterClose(hfilter.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn FilterConnectCommunicationPort(lpportname: P0, dwoptions: u32, lpcontext: Option<*const core::ffi::c_void>, wsizeofcontext: u16, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - FilterConnectCommunicationPort(lpportname.into_param().abi(), dwoptions, core::mem::transmute(lpcontext.unwrap_or(std::ptr::null())), wsizeofcontext, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + FilterConnectCommunicationPort(lpportname.param().abi(), dwoptions, core::mem::transmute(lpcontext.unwrap_or(std::ptr::null())), wsizeofcontext, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn FilterCreate(lpfiltername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterCreate(lpfiltername : windows_core::PCWSTR, hfilter : *mut HFILTER) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - FilterCreate(lpfiltername.into_param().abi(), &mut result__).map(|| result__) + FilterCreate(lpfiltername.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn FilterDetach(lpfiltername: P0, lpvolumename: P1, lpinstancename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterDetach(lpfiltername : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR, lpinstancename : windows_core::PCWSTR) -> windows_core::HRESULT); - FilterDetach(lpfiltername.into_param().abi(), lpvolumename.into_param().abi(), lpinstancename.into_param().abi()).ok() + FilterDetach(lpfiltername.param().abi(), lpvolumename.param().abi(), lpinstancename.param().abi()).ok() } #[inline] pub unsafe fn FilterFindClose(hfilterfind: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterFindClose(hfilterfind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterFindClose(hfilterfind.into_param().abi()).ok() + FilterFindClose(hfilterfind.param().abi()).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<()> { @@ -72,126 +72,126 @@ pub unsafe fn FilterFindFirst(dwinformationclass: FILTER_INFORMATION_CLASS, lpbu #[inline] pub unsafe fn FilterFindNext(hfilterfind: P0, dwinformationclass: FILTER_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfilterfind.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() + FilterFindNext(hfilterfind.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() } #[inline] pub unsafe fn FilterGetDosName(lpvolumename: P0, lpdosname: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterGetDosName(lpvolumename : windows_core::PCWSTR, lpdosname : windows_core::PWSTR, dwdosnamebuffersize : u32) -> windows_core::HRESULT); - FilterGetDosName(lpvolumename.into_param().abi(), core::mem::transmute(lpdosname.as_ptr()), lpdosname.len().try_into().unwrap()).ok() + FilterGetDosName(lpvolumename.param().abi(), core::mem::transmute(lpdosname.as_ptr()), lpdosname.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn FilterGetInformation(hfilter: P0, dwinformationclass: FILTER_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfilter.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() + FilterGetInformation(hfilter.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FilterGetMessage(hport: P0, lpmessagebuffer: *mut FILTER_MESSAGE_HEADER, dwmessagebuffersize: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hport.into_param().abi(), lpmessagebuffer, dwmessagebuffersize, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() + FilterGetMessage(hport.param().abi(), lpmessagebuffer, dwmessagebuffersize, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn FilterInstanceClose(hinstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceClose(hinstance : HFILTER_INSTANCE) -> windows_core::HRESULT); - FilterInstanceClose(hinstance.into_param().abi()).ok() + FilterInstanceClose(hinstance.param().abi()).ok() } #[inline] pub unsafe fn FilterInstanceCreate(lpfiltername: P0, lpvolumename: P1, lpinstancename: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceCreate(lpfiltername : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR, lpinstancename : windows_core::PCWSTR, hinstance : *mut HFILTER_INSTANCE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - FilterInstanceCreate(lpfiltername.into_param().abi(), lpvolumename.into_param().abi(), lpinstancename.into_param().abi(), &mut result__).map(|| result__) + FilterInstanceCreate(lpfiltername.param().abi(), lpvolumename.param().abi(), lpinstancename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn FilterInstanceFindClose(hfilterinstancefind: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterInstanceFindClose(hfilterinstancefind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterInstanceFindClose(hfilterinstancefind.into_param().abi()).ok() + FilterInstanceFindClose(hfilterinstancefind.param().abi()).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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned, lpfilterinstancefind).ok() + FilterInstanceFindFirst(lpfiltername.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned, lpfilterinstancefind).ok() } #[inline] pub unsafe fn FilterInstanceFindNext(hfilterinstancefind: P0, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfilterinstancefind.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() + FilterInstanceFindNext(hfilterinstancefind.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() } #[inline] pub unsafe fn FilterInstanceGetInformation(hinstance: P0, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hinstance.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() + FilterInstanceGetInformation(hinstance.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() } #[inline] pub unsafe fn FilterLoad(lpfiltername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterLoad(lpfiltername : windows_core::PCWSTR) -> windows_core::HRESULT); - FilterLoad(lpfiltername.into_param().abi()).ok() + FilterLoad(lpfiltername.param().abi()).ok() } #[inline] pub unsafe fn FilterReplyMessage(hport: P0, lpreplybuffer: *const FILTER_REPLY_HEADER, dwreplybuffersize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterReplyMessage(hport : super::super::Foundation:: HANDLE, lpreplybuffer : *const FILTER_REPLY_HEADER, dwreplybuffersize : u32) -> windows_core::HRESULT); - FilterReplyMessage(hport.into_param().abi(), lpreplybuffer, dwreplybuffersize).ok() + FilterReplyMessage(hport.param().abi(), lpreplybuffer, dwreplybuffersize).ok() } #[inline] pub unsafe fn FilterSendMessage(hport: P0, lpinbuffer: *const core::ffi::c_void, dwinbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, dwoutbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hport.into_param().abi(), lpinbuffer, dwinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), dwoutbuffersize, lpbytesreturned).ok() + FilterSendMessage(hport.param().abi(), lpinbuffer, dwinbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), dwoutbuffersize, lpbytesreturned).ok() } #[inline] pub unsafe fn FilterUnload(lpfiltername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterUnload(lpfiltername : windows_core::PCWSTR) -> windows_core::HRESULT); - FilterUnload(lpfiltername.into_param().abi()).ok() + FilterUnload(lpfiltername.param().abi()).ok() } #[inline] pub unsafe fn FilterVolumeFindClose(hvolumefind: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeFindClose(hvolumefind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterVolumeFindClose(hvolumefind.into_param().abi()).ok() + FilterVolumeFindClose(hvolumefind.param().abi()).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<()> { @@ -201,34 +201,34 @@ pub unsafe fn FilterVolumeFindFirst(dwinformationclass: FILTER_VOLUME_INFORMATIO #[inline] pub unsafe fn FilterVolumeFindNext(hvolumefind: P0, dwinformationclass: FILTER_VOLUME_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hvolumefind.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() + FilterVolumeFindNext(hvolumefind.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() } #[inline] pub unsafe fn FilterVolumeInstanceFindClose(hvolumeinstancefind: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("fltlib.dll" "system" fn FilterVolumeInstanceFindClose(hvolumeinstancefind : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - FilterVolumeInstanceFindClose(hvolumeinstancefind.into_param().abi()).ok() + FilterVolumeInstanceFindClose(hvolumeinstancefind.param().abi()).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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned, lpvolumeinstancefind).ok() + FilterVolumeInstanceFindFirst(lpvolumename.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned, lpvolumeinstancefind).ok() } #[inline] pub unsafe fn FilterVolumeInstanceFindNext(hvolumeinstancefind: P0, dwinformationclass: INSTANCE_INFORMATION_CLASS, lpbuffer: *mut core::ffi::c_void, dwbuffersize: u32, lpbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hvolumeinstancefind.into_param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() + FilterVolumeInstanceFindNext(hvolumeinstancefind.param().abi(), dwinformationclass, lpbuffer, dwbuffersize, lpbytesreturned).ok() } pub const FILTER_NAME_MAX_CHARS: u32 = 255u32; pub const FLTFL_AGGREGATE_INFO_IS_LEGACYFILTER: u32 = 2u32; 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 7305683e9a..22f050e258 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn AddISNSServerA(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddISNSServerA(address : windows_core::PCSTR) -> u32); - AddISNSServerA(address.into_param().abi()) + AddISNSServerA(address.param().abi()) } #[inline] pub unsafe fn AddISNSServerW(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddISNSServerW(address : windows_core::PCWSTR) -> u32); - AddISNSServerW(address.into_param().abi()) + AddISNSServerW(address.param().abi()) } #[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 { @@ -27,70 +27,70 @@ pub unsafe fn AddIScsiConnectionW(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, #[inline] pub unsafe fn AddIScsiSendTargetPortalA(initiatorinstance: P0, initiatorportnumber: u32, loginoptions: *mut ISCSI_LOGIN_OPTIONS, securityflags: u64, portal: *mut ISCSI_TARGET_PORTALA) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, loginoptions, securityflags, portal) + AddIScsiSendTargetPortalA(initiatorinstance.param().abi(), initiatorportnumber, loginoptions, securityflags, portal) } #[inline] pub unsafe fn AddIScsiSendTargetPortalW(initiatorinstance: P0, initiatorportnumber: u32, loginoptions: *mut ISCSI_LOGIN_OPTIONS, securityflags: u64, portal: *mut ISCSI_TARGET_PORTALW) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, loginoptions, securityflags, portal) + AddIScsiSendTargetPortalW(initiatorinstance.param().abi(), initiatorportnumber, loginoptions, securityflags, portal) } #[inline] pub unsafe fn AddIScsiStaticTargetA(targetname: P0, targetalias: P1, targetflags: u32, persist: P2, mappings: *mut ISCSI_TARGET_MAPPINGA, loginoptions: *mut ISCSI_LOGIN_OPTIONS, portalgroup: *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetA(targetname : windows_core::PCSTR, targetalias : windows_core::PCSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32); - AddIScsiStaticTargetA(targetname.into_param().abi(), targetalias.into_param().abi(), targetflags, persist.into_param().abi(), mappings, loginoptions, portalgroup) + AddIScsiStaticTargetA(targetname.param().abi(), targetalias.param().abi(), targetflags, persist.param().abi(), mappings, loginoptions, portalgroup) } #[inline] pub unsafe fn AddIScsiStaticTargetW(targetname: P0, targetalias: P1, targetflags: u32, persist: P2, mappings: *mut ISCSI_TARGET_MAPPINGW, loginoptions: *mut ISCSI_LOGIN_OPTIONS, portalgroup: *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetW(targetname : windows_core::PCWSTR, targetalias : windows_core::PCWSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32); - AddIScsiStaticTargetW(targetname.into_param().abi(), targetalias.into_param().abi(), targetflags, persist.into_param().abi(), mappings, loginoptions, portalgroup) + AddIScsiStaticTargetW(targetname.param().abi(), targetalias.param().abi(), targetflags, persist.param().abi(), mappings, loginoptions, portalgroup) } #[inline] pub unsafe fn AddPersistentIScsiDeviceA(devicepath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddPersistentIScsiDeviceA(devicepath : windows_core::PCSTR) -> u32); - AddPersistentIScsiDeviceA(devicepath.into_param().abi()) + AddPersistentIScsiDeviceA(devicepath.param().abi()) } #[inline] pub unsafe fn AddPersistentIScsiDeviceW(devicepath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddPersistentIScsiDeviceW(devicepath : windows_core::PCWSTR) -> u32); - AddPersistentIScsiDeviceW(devicepath.into_param().abi()) + AddPersistentIScsiDeviceW(devicepath.param().abi()) } #[inline] pub unsafe fn AddRadiusServerA(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddRadiusServerA(address : windows_core::PCSTR) -> u32); - AddRadiusServerA(address.into_param().abi()) + AddRadiusServerA(address.param().abi()) } #[inline] pub unsafe fn AddRadiusServerW(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn AddRadiusServerW(address : windows_core::PCWSTR) -> u32); - AddRadiusServerW(address.into_param().abi()) + AddRadiusServerW(address.param().abi()) } #[inline] pub unsafe fn ClearPersistentIScsiDevices() -> u32 { @@ -112,18 +112,18 @@ pub unsafe fn GetDevicesForIScsiSessionW(uniquesessionid: *mut ISCSI_UNIQUE_SESS #[inline] pub unsafe fn GetIScsiIKEInfoA(initiatorname: P0, initiatorportnumber: u32, reserved: *mut u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, reserved, authinfo) + GetIScsiIKEInfoA(initiatorname.param().abi(), initiatorportnumber, reserved, authinfo) } #[inline] pub unsafe fn GetIScsiIKEInfoW(initiatorname: P0, initiatorportnumber: u32, reserved: *mut u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, reserved, authinfo) + GetIScsiIKEInfoW(initiatorname.param().abi(), initiatorportnumber, reserved, authinfo) } #[inline] pub unsafe fn GetIScsiInitiatorNodeNameA(initiatornodename: windows_core::PSTR) -> u32 { @@ -153,20 +153,20 @@ pub unsafe fn GetIScsiSessionListW(buffersize: *mut u32, sessioncount: *mut u32, #[inline] pub unsafe fn GetIScsiTargetInformationA(targetname: P0, discoverymechanism: P1, infoclass: TARGET_INFORMATION_CLASS, buffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), discoverymechanism.into_param().abi(), infoclass, buffersize, buffer) + GetIScsiTargetInformationA(targetname.param().abi(), discoverymechanism.param().abi(), infoclass, buffersize, buffer) } #[inline] pub unsafe fn GetIScsiTargetInformationW(targetname: P0, discoverymechanism: P1, infoclass: TARGET_INFORMATION_CLASS, buffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), discoverymechanism.into_param().abi(), infoclass, buffersize, buffer) + GetIScsiTargetInformationW(targetname.param().abi(), discoverymechanism.param().abi(), infoclass, buffersize, buffer) } #[inline] pub unsafe fn GetIScsiVersionInformation(versioninfo: *mut ISCSI_VERSION_INFO) -> u32 { @@ -176,24 +176,24 @@ pub unsafe fn GetIScsiVersionInformation(versioninfo: *mut ISCSI_VERSION_INFO) - #[inline] pub unsafe fn LoginIScsiTargetA(targetname: P0, isinformationalsession: P1, initiatorinstance: P2, initiatorportnumber: u32, targetportal: *mut ISCSI_TARGET_PORTALA, securityflags: u64, mappings: *mut ISCSI_TARGET_MAPPINGA, loginoptions: *mut ISCSI_LOGIN_OPTIONS, key: Option<&[u8]>, ispersistent: P3, uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetA(targetname : windows_core::PCSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, 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 : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); - LoginIScsiTargetA(targetname.into_param().abi(), isinformationalsession.into_param().abi(), initiatorinstance.into_param().abi(), initiatorportnumber, targetportal, securityflags, mappings, 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.into_param().abi(), uniquesessionid, uniqueconnectionid) + LoginIScsiTargetA(targetname.param().abi(), isinformationalsession.param().abi(), initiatorinstance.param().abi(), initiatorportnumber, targetportal, securityflags, mappings, 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.param().abi(), uniquesessionid, uniqueconnectionid) } #[inline] pub unsafe fn LoginIScsiTargetW(targetname: P0, isinformationalsession: P1, 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: P3, uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetW(targetname : windows_core::PCWSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, 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 : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); - LoginIScsiTargetW(targetname.into_param().abi(), isinformationalsession.into_param().abi(), initiatorinstance.into_param().abi(), initiatorportnumber, targetportal, securityflags, mappings, 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.into_param().abi(), uniquesessionid, uniqueconnectionid) + LoginIScsiTargetW(targetname.param().abi(), isinformationalsession.param().abi(), initiatorinstance.param().abi(), initiatorportnumber, targetportal, securityflags, mappings, 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.param().abi(), uniquesessionid, uniqueconnectionid) } #[inline] pub unsafe fn LogoutIScsiTarget(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 { @@ -203,50 +203,50 @@ pub unsafe fn LogoutIScsiTarget(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID) - #[inline] pub unsafe fn RefreshISNSServerA(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RefreshISNSServerA(address : windows_core::PCSTR) -> u32); - RefreshISNSServerA(address.into_param().abi()) + RefreshISNSServerA(address.param().abi()) } #[inline] pub unsafe fn RefreshISNSServerW(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RefreshISNSServerW(address : windows_core::PCWSTR) -> u32); - RefreshISNSServerW(address.into_param().abi()) + RefreshISNSServerW(address.param().abi()) } #[inline] pub unsafe fn RefreshIScsiSendTargetPortalA(initiatorinstance: P0, initiatorportnumber: u32, portal: *mut ISCSI_TARGET_PORTALA) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, portal) + RefreshIScsiSendTargetPortalA(initiatorinstance.param().abi(), initiatorportnumber, portal) } #[inline] pub unsafe fn RefreshIScsiSendTargetPortalW(initiatorinstance: P0, initiatorportnumber: u32, portal: *mut ISCSI_TARGET_PORTALW) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, portal) + RefreshIScsiSendTargetPortalW(initiatorinstance.param().abi(), initiatorportnumber, portal) } #[inline] pub unsafe fn RemoveISNSServerA(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveISNSServerA(address : windows_core::PCSTR) -> u32); - RemoveISNSServerA(address.into_param().abi()) + RemoveISNSServerA(address.param().abi()) } #[inline] pub unsafe fn RemoveISNSServerW(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveISNSServerW(address : windows_core::PCWSTR) -> u32); - RemoveISNSServerW(address.into_param().abi()) + RemoveISNSServerW(address.param().abi()) } #[inline] pub unsafe fn RemoveIScsiConnection(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, connectionid: *mut ISCSI_UNIQUE_SESSION_ID) -> u32 { @@ -256,84 +256,84 @@ pub unsafe fn RemoveIScsiConnection(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_I #[inline] pub unsafe fn RemoveIScsiPersistentTargetA(initiatorinstance: P0, initiatorportnumber: u32, targetname: P1, portal: *mut ISCSI_TARGET_PORTALA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), initiatorportnumber, targetname.into_param().abi(), portal) + RemoveIScsiPersistentTargetA(initiatorinstance.param().abi(), initiatorportnumber, targetname.param().abi(), portal) } #[inline] pub unsafe fn RemoveIScsiPersistentTargetW(initiatorinstance: P0, initiatorportnumber: u32, targetname: P1, portal: *mut ISCSI_TARGET_PORTALW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), initiatorportnumber, targetname.into_param().abi(), portal) + RemoveIScsiPersistentTargetW(initiatorinstance.param().abi(), initiatorportnumber, targetname.param().abi(), portal) } #[inline] pub unsafe fn RemoveIScsiSendTargetPortalA(initiatorinstance: P0, initiatorportnumber: u32, portal: *mut ISCSI_TARGET_PORTALA) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, portal) + RemoveIScsiSendTargetPortalA(initiatorinstance.param().abi(), initiatorportnumber, portal) } #[inline] pub unsafe fn RemoveIScsiSendTargetPortalW(initiatorinstance: P0, initiatorportnumber: u32, portal: *mut ISCSI_TARGET_PORTALW) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), initiatorportnumber, portal) + RemoveIScsiSendTargetPortalW(initiatorinstance.param().abi(), initiatorportnumber, portal) } #[inline] pub unsafe fn RemoveIScsiStaticTargetA(targetname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiStaticTargetA(targetname : windows_core::PCSTR) -> u32); - RemoveIScsiStaticTargetA(targetname.into_param().abi()) + RemoveIScsiStaticTargetA(targetname.param().abi()) } #[inline] pub unsafe fn RemoveIScsiStaticTargetW(targetname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiStaticTargetW(targetname : windows_core::PCWSTR) -> u32); - RemoveIScsiStaticTargetW(targetname.into_param().abi()) + RemoveIScsiStaticTargetW(targetname.param().abi()) } #[inline] pub unsafe fn RemovePersistentIScsiDeviceA(devicepath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemovePersistentIScsiDeviceA(devicepath : windows_core::PCSTR) -> u32); - RemovePersistentIScsiDeviceA(devicepath.into_param().abi()) + RemovePersistentIScsiDeviceA(devicepath.param().abi()) } #[inline] pub unsafe fn RemovePersistentIScsiDeviceW(devicepath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemovePersistentIScsiDeviceW(devicepath : windows_core::PCWSTR) -> u32); - RemovePersistentIScsiDeviceW(devicepath.into_param().abi()) + RemovePersistentIScsiDeviceW(devicepath.param().abi()) } #[inline] pub unsafe fn RemoveRadiusServerA(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveRadiusServerA(address : windows_core::PCSTR) -> u32); - RemoveRadiusServerA(address.into_param().abi()) + RemoveRadiusServerA(address.param().abi()) } #[inline] pub unsafe fn RemoveRadiusServerW(address: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn RemoveRadiusServerW(address : windows_core::PCWSTR) -> u32); - RemoveRadiusServerW(address.into_param().abi()) + RemoveRadiusServerW(address.param().abi()) } #[inline] pub unsafe fn ReportActiveIScsiTargetMappingsA(buffersize: *mut u32, mappingcount: *mut u32, mappings: *mut ISCSI_TARGET_MAPPINGA) -> u32 { @@ -398,36 +398,36 @@ pub unsafe fn ReportIScsiSendTargetPortalsW(portalcount: *mut u32, portalinfo: * #[inline] pub unsafe fn ReportIScsiTargetPortalsA(initiatorname: P0, targetname: P1, targetportaltag: *mut u16, elementcount: *mut u32, portals: *mut ISCSI_TARGET_PORTALA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetPortalsA(initiatorname : windows_core::PCSTR, targetname : windows_core::PCSTR, targetportaltag : *mut u16, elementcount : *mut u32, portals : *mut ISCSI_TARGET_PORTALA) -> u32); - ReportIScsiTargetPortalsA(initiatorname.into_param().abi(), targetname.into_param().abi(), targetportaltag, elementcount, portals) + ReportIScsiTargetPortalsA(initiatorname.param().abi(), targetname.param().abi(), targetportaltag, elementcount, portals) } #[inline] pub unsafe fn ReportIScsiTargetPortalsW(initiatorname: P0, targetname: P1, targetportaltag: *mut u16, elementcount: *mut u32, portals: *mut ISCSI_TARGET_PORTALW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetPortalsW(initiatorname : windows_core::PCWSTR, targetname : windows_core::PCWSTR, targetportaltag : *mut u16, elementcount : *mut u32, portals : *mut ISCSI_TARGET_PORTALW) -> u32); - ReportIScsiTargetPortalsW(initiatorname.into_param().abi(), targetname.into_param().abi(), targetportaltag, elementcount, portals) + ReportIScsiTargetPortalsW(initiatorname.param().abi(), targetname.param().abi(), targetportaltag, elementcount, portals) } #[inline] pub unsafe fn ReportIScsiTargetsA(forceupdate: P0, buffersize: *mut u32, buffer: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsA(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : windows_core::PSTR) -> u32); - ReportIScsiTargetsA(forceupdate.into_param().abi(), buffersize, core::mem::transmute(buffer)) + ReportIScsiTargetsA(forceupdate.param().abi(), buffersize, core::mem::transmute(buffer)) } #[inline] pub unsafe fn ReportIScsiTargetsW(forceupdate: P0, buffersize: *mut u32, buffer: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsW(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : windows_core::PWSTR) -> u32); - ReportIScsiTargetsW(forceupdate.into_param().abi(), buffersize, core::mem::transmute(buffer)) + ReportIScsiTargetsW(forceupdate.param().abi(), buffersize, core::mem::transmute(buffer)) } #[inline] pub unsafe fn ReportPersistentIScsiDevicesA(buffersizeinchar: *mut u32, buffer: windows_core::PSTR) -> u32 { @@ -467,28 +467,28 @@ pub unsafe fn SendScsiReportLuns(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, #[inline] pub unsafe fn SetIScsiGroupPresharedKey(keylength: u32, key: *mut u8, persist: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiGroupPresharedKey(keylength : u32, key : *mut u8, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiGroupPresharedKey(keylength, key, persist.into_param().abi()) + SetIScsiGroupPresharedKey(keylength, key, persist.param().abi()) } #[inline] pub unsafe fn SetIScsiIKEInfoA(initiatorname: P0, initiatorportnumber: u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION, persist: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiIKEInfoA(initiatorname.into_param().abi(), initiatorportnumber, authinfo, persist.into_param().abi()) + SetIScsiIKEInfoA(initiatorname.param().abi(), initiatorportnumber, authinfo, persist.param().abi()) } #[inline] pub unsafe fn SetIScsiIKEInfoW(initiatorname: P0, initiatorportnumber: u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION, persist: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiIKEInfoW(initiatorname.into_param().abi(), initiatorportnumber, authinfo, persist.into_param().abi()) + SetIScsiIKEInfoW(initiatorname.param().abi(), initiatorportnumber, authinfo, persist.param().abi()) } #[inline] pub unsafe fn SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength: u32, sharedsecret: *mut u8) -> u32 { @@ -498,18 +498,18 @@ pub unsafe fn SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength: u32, shareds #[inline] pub unsafe fn SetIScsiInitiatorNodeNameA(initiatornodename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorNodeNameA(initiatornodename : windows_core::PCSTR) -> u32); - SetIScsiInitiatorNodeNameA(initiatornodename.into_param().abi()) + SetIScsiInitiatorNodeNameA(initiatornodename.param().abi()) } #[inline] pub unsafe fn SetIScsiInitiatorNodeNameW(initiatornodename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorNodeNameW(initiatornodename : windows_core::PCWSTR) -> u32); - SetIScsiInitiatorNodeNameW(initiatornodename.into_param().abi()) + SetIScsiInitiatorNodeNameW(initiatornodename.param().abi()) } #[inline] pub unsafe fn SetIScsiInitiatorRADIUSSharedSecret(sharedsecretlength: u32, sharedsecret: *mut u8) -> u32 { @@ -519,24 +519,24 @@ pub unsafe fn SetIScsiInitiatorRADIUSSharedSecret(sharedsecretlength: u32, share #[inline] pub unsafe fn SetIScsiTunnelModeOuterAddressA(initiatorname: P0, initiatorportnumber: u32, destinationaddress: P1, outermodeaddress: P2, persist: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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 : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiTunnelModeOuterAddressA(initiatorname.into_param().abi(), initiatorportnumber, destinationaddress.into_param().abi(), outermodeaddress.into_param().abi(), persist.into_param().abi()) + SetIScsiTunnelModeOuterAddressA(initiatorname.param().abi(), initiatorportnumber, destinationaddress.param().abi(), outermodeaddress.param().abi(), persist.param().abi()) } #[inline] pub unsafe fn SetIScsiTunnelModeOuterAddressW(initiatorname: P0, initiatorportnumber: u32, destinationaddress: P1, outermodeaddress: P2, persist: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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 : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiTunnelModeOuterAddressW(initiatorname.into_param().abi(), initiatorportnumber, destinationaddress.into_param().abi(), outermodeaddress.into_param().abi(), persist.into_param().abi()) + SetIScsiTunnelModeOuterAddressW(initiatorname.param().abi(), initiatorportnumber, destinationaddress.param().abi(), outermodeaddress.param().abi(), persist.param().abi()) } #[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 4751b2df55..bf19c2bd87 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs @@ -2,57 +2,57 @@ #[inline] pub unsafe fn JetAddColumnA(sesid: P0, tableid: P1, szcolumnname: *const i8, pcolumndef: *const JET_COLUMNDEF, pvdefault: Option<*const core::ffi::c_void>, cbdefault: u32, pcolumnid: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetAddColumnA(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), szcolumnname, pcolumndef, core::mem::transmute(pvdefault.unwrap_or(std::ptr::null())), cbdefault, core::mem::transmute(pcolumnid.unwrap_or(std::ptr::null_mut()))) + JetAddColumnA(sesid.param().abi(), tableid.param().abi(), szcolumnname, pcolumndef, core::mem::transmute(pvdefault.unwrap_or(std::ptr::null())), cbdefault, core::mem::transmute(pcolumnid.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetAddColumnW(sesid: P0, tableid: P1, szcolumnname: *const u16, pcolumndef: *const JET_COLUMNDEF, pvdefault: Option<*const core::ffi::c_void>, cbdefault: u32, pcolumnid: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetAddColumnW(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), szcolumnname, pcolumndef, core::mem::transmute(pvdefault.unwrap_or(std::ptr::null())), cbdefault, core::mem::transmute(pcolumnid.unwrap_or(std::ptr::null_mut()))) + JetAddColumnW(sesid.param().abi(), tableid.param().abi(), szcolumnname, pcolumndef, core::mem::transmute(pvdefault.unwrap_or(std::ptr::null())), cbdefault, core::mem::transmute(pcolumnid.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetAttachDatabase2A(sesid: P0, szfilename: *const i8, cpgdatabasesizemax: u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetAttachDatabase2A(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const i8, cpgdatabasesizemax : u32, grbit : u32) -> i32); - JetAttachDatabase2A(sesid.into_param().abi(), szfilename, cpgdatabasesizemax, grbit) + JetAttachDatabase2A(sesid.param().abi(), szfilename, cpgdatabasesizemax, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetAttachDatabase2W(sesid: P0, szfilename: *const u16, cpgdatabasesizemax: u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetAttachDatabase2W(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const u16, cpgdatabasesizemax : u32, grbit : u32) -> i32); - JetAttachDatabase2W(sesid.into_param().abi(), szfilename, cpgdatabasesizemax, grbit) + JetAttachDatabase2W(sesid.param().abi(), szfilename, cpgdatabasesizemax, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetAttachDatabaseA(sesid: P0, szfilename: *const i8, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetAttachDatabaseA(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const i8, grbit : u32) -> i32); - JetAttachDatabaseA(sesid.into_param().abi(), szfilename, grbit) + JetAttachDatabaseA(sesid.param().abi(), szfilename, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetAttachDatabaseW(sesid: P0, szfilename: *const u16, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetAttachDatabaseW(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const u16, grbit : u32) -> i32); - JetAttachDatabaseW(sesid.into_param().abi(), szfilename, grbit) + JetAttachDatabaseW(sesid.param().abi(), szfilename, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -64,19 +64,19 @@ pub unsafe fn JetBackupA(szbackuppath: *const i8, grbit: u32, pfnstatus: JET_PFN #[inline] pub unsafe fn JetBackupInstanceA(instance: P0, szbackuppath: *const i8, grbit: u32, pfnstatus: JET_PFNSTATUS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBackupInstanceA(instance : super::StructuredStorage:: JET_INSTANCE, szbackuppath : *const i8, grbit : u32, pfnstatus : JET_PFNSTATUS) -> i32); - JetBackupInstanceA(instance.into_param().abi(), szbackuppath, grbit, pfnstatus) + JetBackupInstanceA(instance.param().abi(), szbackuppath, grbit, pfnstatus) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetBackupInstanceW(instance: P0, szbackuppath: *const u16, grbit: u32, pfnstatus: JET_PFNSTATUS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBackupInstanceW(instance : super::StructuredStorage:: JET_INSTANCE, szbackuppath : *const u16, grbit : u32, pfnstatus : JET_PFNSTATUS) -> i32); - JetBackupInstanceW(instance.into_param().abi(), szbackuppath, grbit, pfnstatus) + JetBackupInstanceW(instance.param().abi(), szbackuppath, grbit, pfnstatus) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -93,139 +93,139 @@ pub unsafe fn JetBeginExternalBackup(grbit: u32) -> i32 { #[inline] pub unsafe fn JetBeginExternalBackupInstance(instance: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBeginExternalBackupInstance(instance : super::StructuredStorage:: JET_INSTANCE, grbit : u32) -> i32); - JetBeginExternalBackupInstance(instance.into_param().abi(), grbit) + JetBeginExternalBackupInstance(instance.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetBeginSessionA(instance: P0, psesid: *mut super::StructuredStorage::JET_SESID, szusername: Option<*const i8>, szpassword: Option<*const i8>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBeginSessionA(instance : super::StructuredStorage:: JET_INSTANCE, psesid : *mut super::StructuredStorage:: JET_SESID, szusername : *const i8, szpassword : *const i8) -> i32); - JetBeginSessionA(instance.into_param().abi(), psesid, core::mem::transmute(szusername.unwrap_or(std::ptr::null())), core::mem::transmute(szpassword.unwrap_or(std::ptr::null()))) + JetBeginSessionA(instance.param().abi(), psesid, core::mem::transmute(szusername.unwrap_or(std::ptr::null())), core::mem::transmute(szpassword.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetBeginSessionW(instance: P0, psesid: *mut super::StructuredStorage::JET_SESID, szusername: Option<*const u16>, szpassword: Option<*const u16>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBeginSessionW(instance : super::StructuredStorage:: JET_INSTANCE, psesid : *mut super::StructuredStorage:: JET_SESID, szusername : *const u16, szpassword : *const u16) -> i32); - JetBeginSessionW(instance.into_param().abi(), psesid, core::mem::transmute(szusername.unwrap_or(std::ptr::null())), core::mem::transmute(szpassword.unwrap_or(std::ptr::null()))) + JetBeginSessionW(instance.param().abi(), psesid, core::mem::transmute(szusername.unwrap_or(std::ptr::null())), core::mem::transmute(szpassword.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetBeginTransaction(sesid: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBeginTransaction(sesid : super::StructuredStorage:: JET_SESID) -> i32); - JetBeginTransaction(sesid.into_param().abi()) + JetBeginTransaction(sesid.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetBeginTransaction2(sesid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBeginTransaction2(sesid : super::StructuredStorage:: JET_SESID, grbit : u32) -> i32); - JetBeginTransaction2(sesid.into_param().abi(), grbit) + JetBeginTransaction2(sesid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetBeginTransaction3(sesid: P0, trxid: i64, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetBeginTransaction3(sesid : super::StructuredStorage:: JET_SESID, trxid : i64, grbit : u32) -> i32); - JetBeginTransaction3(sesid.into_param().abi(), trxid, grbit) + JetBeginTransaction3(sesid.param().abi(), trxid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCloseDatabase(sesid: P0, dbid: u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCloseDatabase(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, grbit : u32) -> i32); - JetCloseDatabase(sesid.into_param().abi(), dbid, grbit) + JetCloseDatabase(sesid.param().abi(), dbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCloseFile(hffile: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCloseFile(hffile : super::StructuredStorage:: JET_HANDLE) -> i32); - JetCloseFile(hffile.into_param().abi()) + JetCloseFile(hffile.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCloseFileInstance(instance: P0, hffile: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCloseFileInstance(instance : super::StructuredStorage:: JET_INSTANCE, hffile : super::StructuredStorage:: JET_HANDLE) -> i32); - JetCloseFileInstance(instance.into_param().abi(), hffile.into_param().abi()) + JetCloseFileInstance(instance.param().abi(), hffile.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCloseTable(sesid: P0, tableid: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCloseTable(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID) -> i32); - JetCloseTable(sesid.into_param().abi(), tableid.into_param().abi()) + JetCloseTable(sesid.param().abi(), tableid.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCommitTransaction(sesid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCommitTransaction(sesid : super::StructuredStorage:: JET_SESID, grbit : u32) -> i32); - JetCommitTransaction(sesid.into_param().abi(), grbit) + JetCommitTransaction(sesid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCommitTransaction2(sesid: P0, grbit: u32, cmsecdurablecommit: u32, pcommitid: Option<*mut JET_COMMIT_ID>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCommitTransaction2(sesid : super::StructuredStorage:: JET_SESID, grbit : u32, cmsecdurablecommit : u32, pcommitid : *mut JET_COMMIT_ID) -> i32); - JetCommitTransaction2(sesid.into_param().abi(), grbit, cmsecdurablecommit, core::mem::transmute(pcommitid.unwrap_or(std::ptr::null_mut()))) + JetCommitTransaction2(sesid.param().abi(), grbit, cmsecdurablecommit, core::mem::transmute(pcommitid.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCompactA(sesid: P0, szdatabasesrc: *const i8, szdatabasedest: *const i8, pfnstatus: JET_PFNSTATUS, pconvert: Option<*const JET_CONVERT_A>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCompactA(sesid : super::StructuredStorage:: JET_SESID, szdatabasesrc : *const i8, szdatabasedest : *const i8, pfnstatus : JET_PFNSTATUS, pconvert : *const JET_CONVERT_A, grbit : u32) -> i32); - JetCompactA(sesid.into_param().abi(), szdatabasesrc, szdatabasedest, pfnstatus, core::mem::transmute(pconvert.unwrap_or(std::ptr::null())), grbit) + JetCompactA(sesid.param().abi(), szdatabasesrc, szdatabasedest, pfnstatus, core::mem::transmute(pconvert.unwrap_or(std::ptr::null())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCompactW(sesid: P0, szdatabasesrc: *const u16, szdatabasedest: *const u16, pfnstatus: JET_PFNSTATUS, pconvert: Option<*const JET_CONVERT_W>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCompactW(sesid : super::StructuredStorage:: JET_SESID, szdatabasesrc : *const u16, szdatabasedest : *const u16, pfnstatus : JET_PFNSTATUS, pconvert : *const JET_CONVERT_W, grbit : u32) -> i32); - JetCompactW(sesid.into_param().abi(), szdatabasesrc, szdatabasedest, pfnstatus, core::mem::transmute(pconvert.unwrap_or(std::ptr::null())), grbit) + JetCompactW(sesid.param().abi(), szdatabasesrc, szdatabasedest, pfnstatus, core::mem::transmute(pconvert.unwrap_or(std::ptr::null())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetComputeStats(sesid: P0, tableid: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetComputeStats(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID) -> i32); - JetComputeStats(sesid.into_param().abi(), tableid.into_param().abi()) + JetComputeStats(sesid.param().abi(), tableid.param().abi()) } #[inline] pub unsafe fn JetConfigureProcessForCrashDump(grbit: u32) -> i32 { @@ -236,118 +236,118 @@ pub unsafe fn JetConfigureProcessForCrashDump(grbit: u32) -> i32 { #[inline] pub unsafe fn JetCreateDatabase2A(sesid: P0, szfilename: *const i8, cpgdatabasesizemax: u32, pdbid: *mut u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateDatabase2A(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const i8, cpgdatabasesizemax : u32, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabase2A(sesid.into_param().abi(), szfilename, cpgdatabasesizemax, pdbid, grbit) + JetCreateDatabase2A(sesid.param().abi(), szfilename, cpgdatabasesizemax, pdbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateDatabase2W(sesid: P0, szfilename: *const u16, cpgdatabasesizemax: u32, pdbid: *mut u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateDatabase2W(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const u16, cpgdatabasesizemax : u32, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabase2W(sesid.into_param().abi(), szfilename, cpgdatabasesizemax, pdbid, grbit) + JetCreateDatabase2W(sesid.param().abi(), szfilename, cpgdatabasesizemax, pdbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateDatabaseA(sesid: P0, szfilename: *const i8, szconnect: Option<*const i8>, pdbid: *mut u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateDatabaseA(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const i8, szconnect : *const i8, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabaseA(sesid.into_param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) + JetCreateDatabaseA(sesid.param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateDatabaseW(sesid: P0, szfilename: *const u16, szconnect: Option<*const u16>, pdbid: *mut u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateDatabaseW(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const u16, szconnect : *const u16, pdbid : *mut u32, grbit : u32) -> i32); - JetCreateDatabaseW(sesid.into_param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) + JetCreateDatabaseW(sesid.param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex2A(sesid: P0, tableid: P1, pindexcreate: &[JET_INDEXCREATE_A]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndex2A(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE_A, cindexcreate : u32) -> i32); - JetCreateIndex2A(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex2A(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex2W(sesid: P0, tableid: P1, pindexcreate: &[JET_INDEXCREATE_W]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndex2W(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE_W, cindexcreate : u32) -> i32); - JetCreateIndex2W(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex2W(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex3A(sesid: P0, tableid: P1, pindexcreate: &[JET_INDEXCREATE2_A]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndex3A(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE2_A, cindexcreate : u32) -> i32); - JetCreateIndex3A(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex3A(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex3W(sesid: P0, tableid: P1, pindexcreate: &[JET_INDEXCREATE2_W]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndex3W(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE2_W, cindexcreate : u32) -> i32); - JetCreateIndex3W(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex3W(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex4A(sesid: P0, tableid: P1, pindexcreate: &[JET_INDEXCREATE3_A]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndex4A(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE3_A, cindexcreate : u32) -> i32); - JetCreateIndex4A(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex4A(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndex4W(sesid: P0, tableid: P1, pindexcreate: &[JET_INDEXCREATE3_W]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndex4W(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pindexcreate : *const JET_INDEXCREATE3_W, cindexcreate : u32) -> i32); - JetCreateIndex4W(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) + JetCreateIndex4W(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pindexcreate.as_ptr()), pindexcreate.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndexA(sesid: P0, tableid: P1, szindexname: *const i8, grbit: u32, szkey: &[u8], ldensity: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndexA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, grbit : u32, szkey : windows_core::PCSTR, cbkey : u32, ldensity : u32) -> i32); - JetCreateIndexA(sesid.into_param().abi(), tableid.into_param().abi(), szindexname, grbit, core::mem::transmute(szkey.as_ptr()), szkey.len().try_into().unwrap(), ldensity) + JetCreateIndexA(sesid.param().abi(), tableid.param().abi(), szindexname, grbit, core::mem::transmute(szkey.as_ptr()), szkey.len().try_into().unwrap(), ldensity) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateIndexW(sesid: P0, tableid: P1, szindexname: *const u16, grbit: u32, szkey: P2, cbkey: u32, ldensity: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateIndexW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, grbit : u32, szkey : windows_core::PCWSTR, cbkey : u32, ldensity : u32) -> i32); - JetCreateIndexW(sesid.into_param().abi(), tableid.into_param().abi(), szindexname, grbit, szkey.into_param().abi(), cbkey, ldensity) + JetCreateIndexW(sesid.param().abi(), tableid.param().abi(), szindexname, grbit, szkey.param().abi(), cbkey, ldensity) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -377,288 +377,288 @@ pub unsafe fn JetCreateInstanceW(pinstance: *mut super::StructuredStorage::JET_I #[inline] pub unsafe fn JetCreateTableA(sesid: P0, dbid: u32, sztablename: *const i8, lpages: u32, ldensity: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const i8, lpages : u32, ldensity : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID) -> i32); - JetCreateTableA(sesid.into_param().abi(), dbid, sztablename, lpages, ldensity, ptableid) + JetCreateTableA(sesid.param().abi(), dbid, sztablename, lpages, ldensity, ptableid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex2A(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE2_A) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex2A(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE2_A) -> i32); - JetCreateTableColumnIndex2A(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndex2A(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex2W(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE2_W) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex2W(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE2_W) -> i32); - JetCreateTableColumnIndex2W(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndex2W(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex3A(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE3_A) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex3A(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE3_A) -> i32); - JetCreateTableColumnIndex3A(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndex3A(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex3W(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE3_W) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex3W(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE3_W) -> i32); - JetCreateTableColumnIndex3W(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndex3W(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex4A(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE4_A) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex4A(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE4_A) -> i32); - JetCreateTableColumnIndex4A(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndex4A(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndex4W(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE4_W) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndex4W(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE4_W) -> i32); - JetCreateTableColumnIndex4W(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndex4W(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndexA(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE_A) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndexA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE_A) -> i32); - JetCreateTableColumnIndexA(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndexA(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableColumnIndexW(sesid: P0, dbid: u32, ptablecreate: *mut JET_TABLECREATE_W) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableColumnIndexW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, ptablecreate : *mut JET_TABLECREATE_W) -> i32); - JetCreateTableColumnIndexW(sesid.into_param().abi(), dbid, ptablecreate) + JetCreateTableColumnIndexW(sesid.param().abi(), dbid, ptablecreate) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetCreateTableW(sesid: P0, dbid: u32, sztablename: *const u16, lpages: u32, ldensity: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetCreateTableW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const u16, lpages : u32, ldensity : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID) -> i32); - JetCreateTableW(sesid.into_param().abi(), dbid, sztablename, lpages, ldensity, ptableid) + JetCreateTableW(sesid.param().abi(), dbid, sztablename, lpages, ldensity, ptableid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment2A(sesid: P0, dbid: u32, sztablename: Option<*const i8>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, callback: JET_CALLBACK, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDefragment2A(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const i8, pcpasses : *mut u32, pcseconds : *mut u32, callback : JET_CALLBACK, grbit : u32) -> i32); - JetDefragment2A(sesid.into_param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, grbit) + JetDefragment2A(sesid.param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment2W(sesid: P0, dbid: u32, sztablename: Option<*const u16>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, callback: JET_CALLBACK, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDefragment2W(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const u16, pcpasses : *mut u32, pcseconds : *mut u32, callback : JET_CALLBACK, grbit : u32) -> i32); - JetDefragment2W(sesid.into_param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, grbit) + JetDefragment2W(sesid.param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment3A(sesid: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDefragment3A(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), szdatabasename, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, pvcontext, grbit) + JetDefragment3A(sesid.param().abi(), szdatabasename, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, pvcontext, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragment3W(sesid: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDefragment3W(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), szdatabasename, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, pvcontext, grbit) + JetDefragment3W(sesid.param().abi(), szdatabasename, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), callback, pvcontext, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragmentA(sesid: P0, dbid: u32, sztablename: Option<*const i8>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDefragmentA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const i8, pcpasses : *mut u32, pcseconds : *mut u32, grbit : u32) -> i32); - JetDefragmentA(sesid.into_param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), grbit) + JetDefragmentA(sesid.param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDefragmentW(sesid: P0, dbid: u32, sztablename: Option<*const u16>, pcpasses: Option<*mut u32>, pcseconds: Option<*mut u32>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDefragmentW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const u16, pcpasses : *mut u32, pcseconds : *mut u32, grbit : u32) -> i32); - JetDefragmentW(sesid.into_param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), grbit) + JetDefragmentW(sesid.param().abi(), dbid, core::mem::transmute(sztablename.unwrap_or(std::ptr::null())), core::mem::transmute(pcpasses.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcseconds.unwrap_or(std::ptr::null_mut())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDelete(sesid: P0, tableid: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDelete(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID) -> i32); - JetDelete(sesid.into_param().abi(), tableid.into_param().abi()) + JetDelete(sesid.param().abi(), tableid.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumn2A(sesid: P0, tableid: P1, szcolumnname: *const i8, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteColumn2A(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const i8, grbit : u32) -> i32); - JetDeleteColumn2A(sesid.into_param().abi(), tableid.into_param().abi(), szcolumnname, grbit) + JetDeleteColumn2A(sesid.param().abi(), tableid.param().abi(), szcolumnname, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumn2W(sesid: P0, tableid: P1, szcolumnname: *const u16, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteColumn2W(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const u16, grbit : u32) -> i32); - JetDeleteColumn2W(sesid.into_param().abi(), tableid.into_param().abi(), szcolumnname, grbit) + JetDeleteColumn2W(sesid.param().abi(), tableid.param().abi(), szcolumnname, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumnA(sesid: P0, tableid: P1, szcolumnname: *const i8) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteColumnA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const i8) -> i32); - JetDeleteColumnA(sesid.into_param().abi(), tableid.into_param().abi(), szcolumnname) + JetDeleteColumnA(sesid.param().abi(), tableid.param().abi(), szcolumnname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteColumnW(sesid: P0, tableid: P1, szcolumnname: *const u16) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteColumnW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const u16) -> i32); - JetDeleteColumnW(sesid.into_param().abi(), tableid.into_param().abi(), szcolumnname) + JetDeleteColumnW(sesid.param().abi(), tableid.param().abi(), szcolumnname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteIndexA(sesid: P0, tableid: P1, szindexname: *const i8) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteIndexA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8) -> i32); - JetDeleteIndexA(sesid.into_param().abi(), tableid.into_param().abi(), szindexname) + JetDeleteIndexA(sesid.param().abi(), tableid.param().abi(), szindexname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteIndexW(sesid: P0, tableid: P1, szindexname: *const u16) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteIndexW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16) -> i32); - JetDeleteIndexW(sesid.into_param().abi(), tableid.into_param().abi(), szindexname) + JetDeleteIndexW(sesid.param().abi(), tableid.param().abi(), szindexname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteTableA(sesid: P0, dbid: u32, sztablename: *const i8) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteTableA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const i8) -> i32); - JetDeleteTableA(sesid.into_param().abi(), dbid, sztablename) + JetDeleteTableA(sesid.param().abi(), dbid, sztablename) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDeleteTableW(sesid: P0, dbid: u32, sztablename: *const u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDeleteTableW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const u16) -> i32); - JetDeleteTableW(sesid.into_param().abi(), dbid, sztablename) + JetDeleteTableW(sesid.param().abi(), dbid, sztablename) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDetachDatabase2A(sesid: P0, szfilename: Option<*const i8>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDetachDatabase2A(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const i8, grbit : u32) -> i32); - JetDetachDatabase2A(sesid.into_param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null())), grbit) + JetDetachDatabase2A(sesid.param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDetachDatabase2W(sesid: P0, szfilename: Option<*const u16>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDetachDatabase2W(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const u16, grbit : u32) -> i32); - JetDetachDatabase2W(sesid.into_param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null())), grbit) + JetDetachDatabase2W(sesid.param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDetachDatabaseA(sesid: P0, szfilename: Option<*const i8>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDetachDatabaseA(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const i8) -> i32); - JetDetachDatabaseA(sesid.into_param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null()))) + JetDetachDatabaseA(sesid.param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDetachDatabaseW(sesid: P0, szfilename: Option<*const u16>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDetachDatabaseW(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const u16) -> i32); - JetDetachDatabaseW(sesid.into_param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null()))) + JetDetachDatabaseW(sesid.param().abi(), core::mem::transmute(szfilename.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDupCursor(sesid: P0, tableid: P1, ptableid: *mut super::StructuredStorage::JET_TABLEID, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDupCursor(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, ptableid : *mut super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetDupCursor(sesid.into_param().abi(), tableid.into_param().abi(), ptableid, grbit) + JetDupCursor(sesid.param().abi(), tableid.param().abi(), ptableid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetDupSession(sesid: P0, psesid: *mut super::StructuredStorage::JET_SESID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetDupSession(sesid : super::StructuredStorage:: JET_SESID, psesid : *mut super::StructuredStorage:: JET_SESID) -> i32); - JetDupSession(sesid.into_param().abi(), psesid) + JetDupSession(sesid.param().abi(), psesid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -681,48 +681,48 @@ pub unsafe fn JetEndExternalBackup() -> i32 { #[inline] pub unsafe fn JetEndExternalBackupInstance(instance: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetEndExternalBackupInstance(instance : super::StructuredStorage:: JET_INSTANCE) -> i32); - JetEndExternalBackupInstance(instance.into_param().abi()) + JetEndExternalBackupInstance(instance.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetEndExternalBackupInstance2(instance: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetEndExternalBackupInstance2(instance : super::StructuredStorage:: JET_INSTANCE, grbit : u32) -> i32); - JetEndExternalBackupInstance2(instance.into_param().abi(), grbit) + JetEndExternalBackupInstance2(instance.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetEndSession(sesid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetEndSession(sesid : super::StructuredStorage:: JET_SESID, grbit : u32) -> i32); - JetEndSession(sesid.into_param().abi(), grbit) + JetEndSession(sesid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetEnumerateColumns(sesid: P0, tableid: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetEnumerateColumns(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), 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())), pcenumcolumn, prgenumcolumn, pfnrealloc, core::mem::transmute(pvrealloccontext.unwrap_or(std::ptr::null())), cbdatamost, grbit) + JetEnumerateColumns(sesid.param().abi(), tableid.param().abi(), 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())), pcenumcolumn, prgenumcolumn, pfnrealloc, core::mem::transmute(pvrealloccontext.unwrap_or(std::ptr::null())), cbdatamost, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetEscrowUpdate(sesid: P0, tableid: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetEscrowUpdate(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), columnid, pv, cbmax, core::mem::transmute(pvold.unwrap_or(std::ptr::null_mut())), cboldmax, core::mem::transmute(pcboldactual.unwrap_or(std::ptr::null_mut())), grbit) + JetEscrowUpdate(sesid.param().abi(), tableid.param().abi(), columnid, pv, cbmax, core::mem::transmute(pvold.unwrap_or(std::ptr::null_mut())), cboldmax, core::mem::transmute(pcboldactual.unwrap_or(std::ptr::null_mut())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -751,10 +751,10 @@ pub unsafe fn JetExternalRestoreW(szcheckpointfilepath: *const u16, szlogpath: * #[inline] pub unsafe fn JetFreeBuffer(pbbuf: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetFreeBuffer(pbbuf : windows_core::PCSTR) -> i32); - JetFreeBuffer(pbbuf.into_param().abi()) + JetFreeBuffer(pbbuf.param().abi()) } #[inline] pub unsafe fn JetGetAttachInfoA(szzdatabases: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 { @@ -765,19 +765,19 @@ pub unsafe fn JetGetAttachInfoA(szzdatabases: Option<&mut [u8]>, pcbactual: Opti #[inline] pub unsafe fn JetGetAttachInfoInstanceA(instance: P0, szzdatabases: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetAttachInfoInstanceA(instance : super::StructuredStorage:: JET_INSTANCE, szzdatabases : *mut i8, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetAttachInfoInstanceA(instance.into_param().abi(), 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(std::ptr::null_mut()))) + JetGetAttachInfoInstanceA(instance.param().abi(), 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(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetAttachInfoInstanceW(instance: P0, szzdatabases: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetAttachInfoInstanceW(instance : super::StructuredStorage:: JET_INSTANCE, szzdatabases : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetAttachInfoInstanceW(instance.into_param().abi(), core::mem::transmute(szzdatabases.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) + JetGetAttachInfoInstanceW(instance.param().abi(), core::mem::transmute(szzdatabases.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn JetGetAttachInfoW(wszzdatabases: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { @@ -788,59 +788,59 @@ pub unsafe fn JetGetAttachInfoW(wszzdatabases: Option<*mut u16>, cbmax: u32, pcb #[inline] pub unsafe fn JetGetBookmark(sesid: P0, tableid: P1, pvbookmark: Option<*mut core::ffi::c_void>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetBookmark(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *mut core::ffi::c_void, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetBookmark(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pvbookmark.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) + JetGetBookmark(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pvbookmark.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetColumnInfoA(sesid: P0, dbid: u32, sztablename: *const i8, pcolumnnameorid: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetColumnInfoA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const i8, pcolumnnameorid : *const i8, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetColumnInfoA(sesid.into_param().abi(), dbid, sztablename, core::mem::transmute(pcolumnnameorid.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) + JetGetColumnInfoA(sesid.param().abi(), dbid, sztablename, core::mem::transmute(pcolumnnameorid.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetColumnInfoW(sesid: P0, dbid: u32, sztablename: *const u16, pwcolumnnameorid: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetColumnInfoW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const u16, pwcolumnnameorid : *const u16, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetColumnInfoW(sesid.into_param().abi(), dbid, sztablename, core::mem::transmute(pwcolumnnameorid.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) + JetGetColumnInfoW(sesid.param().abi(), dbid, sztablename, core::mem::transmute(pwcolumnnameorid.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetCurrentIndexA(sesid: P0, tableid: P1, szindexname: &mut [u8]) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetCurrentIndexA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *mut i8, cbindexname : u32) -> i32); - JetGetCurrentIndexA(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.as_ptr()), szindexname.len().try_into().unwrap()) + JetGetCurrentIndexA(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.as_ptr()), szindexname.len().try_into().unwrap()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetCurrentIndexW(sesid: P0, tableid: P1, szindexname: *mut u16, cbindexname: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetCurrentIndexW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *mut u16, cbindexname : u32) -> i32); - JetGetCurrentIndexW(sesid.into_param().abi(), tableid.into_param().abi(), szindexname, cbindexname) + JetGetCurrentIndexW(sesid.param().abi(), tableid.param().abi(), szindexname, cbindexname) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetCursorInfo(sesid: P0, tableid: P1, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetCursorInfo(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetCursorInfo(sesid.into_param().abi(), tableid.into_param().abi(), pvresult, cbmax, infolevel) + JetGetCursorInfo(sesid.param().abi(), tableid.param().abi(), pvresult, cbmax, infolevel) } #[inline] pub unsafe fn JetGetDatabaseFileInfoA(szdatabasename: *const i8, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 { @@ -856,19 +856,19 @@ pub unsafe fn JetGetDatabaseFileInfoW(szdatabasename: *const u16, pvresult: *mut #[inline] pub unsafe fn JetGetDatabaseInfoA(sesid: P0, dbid: u32, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetDatabaseInfoA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetDatabaseInfoA(sesid.into_param().abi(), dbid, pvresult, cbmax, infolevel) + JetGetDatabaseInfoA(sesid.param().abi(), dbid, pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetDatabaseInfoW(sesid: P0, dbid: u32, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetDatabaseInfoW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetDatabaseInfoW(sesid.into_param().abi(), dbid, pvresult, cbmax, infolevel) + JetGetDatabaseInfoW(sesid.param().abi(), dbid, 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 { @@ -879,19 +879,19 @@ pub unsafe fn JetGetErrorInfoW(pvcontext: Option<*const core::ffi::c_void>, pvre #[inline] pub unsafe fn JetGetIndexInfoA(sesid: P0, dbid: u32, sztablename: *const i8, szindexname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetIndexInfoA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const i8, szindexname : *const i8, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetIndexInfoA(sesid.into_param().abi(), dbid, sztablename, core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) + JetGetIndexInfoA(sesid.param().abi(), dbid, sztablename, core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetIndexInfoW(sesid: P0, dbid: u32, sztablename: *const u16, szindexname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetIndexInfoW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const u16, szindexname : *const u16, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetIndexInfoW(sesid.into_param().abi(), dbid, sztablename, core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) + JetGetIndexInfoW(sesid.param().abi(), dbid, sztablename, core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -909,30 +909,30 @@ pub unsafe fn JetGetInstanceInfoW(pcinstanceinfo: *mut u32, painstanceinfo: *mut #[inline] pub unsafe fn JetGetInstanceMiscInfo(instance: P0, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetInstanceMiscInfo(instance : super::StructuredStorage:: JET_INSTANCE, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetInstanceMiscInfo(instance.into_param().abi(), pvresult, cbmax, infolevel) + JetGetInstanceMiscInfo(instance.param().abi(), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetLS(sesid: P0, tableid: P1, pls: *mut JET_LS, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetLS(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pls : *mut JET_LS, grbit : u32) -> i32); - JetGetLS(sesid.into_param().abi(), tableid.into_param().abi(), pls, grbit) + JetGetLS(sesid.param().abi(), tableid.param().abi(), pls, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetLock(sesid: P0, tableid: P1, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetLock(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetGetLock(sesid.into_param().abi(), tableid.into_param().abi(), grbit) + JetGetLock(sesid.param().abi(), tableid.param().abi(), grbit) } #[inline] pub unsafe fn JetGetLogInfoA(szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 { @@ -943,37 +943,37 @@ pub unsafe fn JetGetLogInfoA(szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut #[inline] pub unsafe fn JetGetLogInfoInstance2A(instance: P0, szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>, ploginfo: Option<*mut JET_LOGINFO_A>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstance2A(instance : super::StructuredStorage:: JET_INSTANCE, szzlogs : *mut i8, cbmax : u32, pcbactual : *mut u32, ploginfo : *mut JET_LOGINFO_A) -> i32); - JetGetLogInfoInstance2A(instance.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(ploginfo.unwrap_or(std::ptr::null_mut()))) + JetGetLogInfoInstance2A(instance.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(ploginfo.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetLogInfoInstance2W(instance: P0, wszzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>, ploginfo: Option<*mut JET_LOGINFO_W>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstance2W(instance : super::StructuredStorage:: JET_INSTANCE, wszzlogs : *mut u16, cbmax : u32, pcbactual : *mut u32, ploginfo : *mut JET_LOGINFO_W) -> i32); - JetGetLogInfoInstance2W(instance.into_param().abi(), core::mem::transmute(wszzlogs.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ploginfo.unwrap_or(std::ptr::null_mut()))) + JetGetLogInfoInstance2W(instance.param().abi(), core::mem::transmute(wszzlogs.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ploginfo.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetLogInfoInstanceA(instance: P0, szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstanceA(instance : super::StructuredStorage:: JET_INSTANCE, szzlogs : *mut i8, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetLogInfoInstanceA(instance.into_param().abi(), 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(std::ptr::null_mut()))) + JetGetLogInfoInstanceA(instance.param().abi(), 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(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetLogInfoInstanceW(instance: P0, wszzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetLogInfoInstanceW(instance : super::StructuredStorage:: JET_INSTANCE, wszzlogs : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetLogInfoInstanceW(instance.into_param().abi(), core::mem::transmute(wszzlogs.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) + JetGetLogInfoInstanceW(instance.param().abi(), core::mem::transmute(wszzlogs.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn JetGetLogInfoW(szzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 { @@ -984,148 +984,148 @@ pub unsafe fn JetGetLogInfoW(szzlogs: Option<*mut u16>, cbmax: u32, pcbactual: O #[inline] pub unsafe fn JetGetObjectInfoA(sesid: P0, dbid: u32, objtyp: u32, szcontainername: Option<*const i8>, szobjectname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetObjectInfoA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, objtyp : u32, szcontainername : *const i8, szobjectname : *const i8, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetObjectInfoA(sesid.into_param().abi(), dbid, objtyp, core::mem::transmute(szcontainername.unwrap_or(std::ptr::null())), core::mem::transmute(szobjectname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) + JetGetObjectInfoA(sesid.param().abi(), dbid, objtyp, core::mem::transmute(szcontainername.unwrap_or(std::ptr::null())), core::mem::transmute(szobjectname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetObjectInfoW(sesid: P0, dbid: u32, objtyp: u32, szcontainername: Option<*const u16>, szobjectname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetObjectInfoW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, objtyp : u32, szcontainername : *const u16, szobjectname : *const u16, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetObjectInfoW(sesid.into_param().abi(), dbid, objtyp, core::mem::transmute(szcontainername.unwrap_or(std::ptr::null())), core::mem::transmute(szobjectname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) + JetGetObjectInfoW(sesid.param().abi(), dbid, objtyp, core::mem::transmute(szcontainername.unwrap_or(std::ptr::null())), core::mem::transmute(szobjectname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetRecordPosition(sesid: P0, tableid: P1, precpos: *mut JET_RECPOS, cbrecpos: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetRecordPosition(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precpos : *mut JET_RECPOS, cbrecpos : u32) -> i32); - JetGetRecordPosition(sesid.into_param().abi(), tableid.into_param().abi(), precpos, cbrecpos) + JetGetRecordPosition(sesid.param().abi(), tableid.param().abi(), precpos, cbrecpos) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetRecordSize(sesid: P0, tableid: P1, precsize: *mut JET_RECSIZE, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetRecordSize(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precsize : *mut JET_RECSIZE, grbit : u32) -> i32); - JetGetRecordSize(sesid.into_param().abi(), tableid.into_param().abi(), precsize, grbit) + JetGetRecordSize(sesid.param().abi(), tableid.param().abi(), precsize, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetRecordSize2(sesid: P0, tableid: P1, precsize: *mut JET_RECSIZE2, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetRecordSize2(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precsize : *mut JET_RECSIZE2, grbit : u32) -> i32); - JetGetRecordSize2(sesid.into_param().abi(), tableid.into_param().abi(), precsize, grbit) + JetGetRecordSize2(sesid.param().abi(), tableid.param().abi(), precsize, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetSecondaryIndexBookmark(sesid: P0, tableid: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetSecondaryIndexBookmark(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pvsecondarykey.unwrap_or(std::ptr::null_mut())), cbsecondarykeymax, core::mem::transmute(pcbsecondarykeyactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvprimarybookmark.unwrap_or(std::ptr::null_mut())), cbprimarybookmarkmax, core::mem::transmute(pcbprimarybookmarkactual.unwrap_or(std::ptr::null_mut())), grbit) + JetGetSecondaryIndexBookmark(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pvsecondarykey.unwrap_or(std::ptr::null_mut())), cbsecondarykeymax, core::mem::transmute(pcbsecondarykeyactual.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvprimarybookmark.unwrap_or(std::ptr::null_mut())), cbprimarybookmarkmax, core::mem::transmute(pcbprimarybookmarkactual.unwrap_or(std::ptr::null_mut())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetSessionParameter(sesid: P0, sesparamid: u32, pvparam: &mut [u8], pcbparamactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetSessionParameter(sesid : super::StructuredStorage:: JET_SESID, sesparamid : u32, pvparam : *mut core::ffi::c_void, cbparammax : u32, pcbparamactual : *mut u32) -> i32); - JetGetSessionParameter(sesid.into_param().abi(), sesparamid, core::mem::transmute(pvparam.as_ptr()), pvparam.len().try_into().unwrap(), core::mem::transmute(pcbparamactual.unwrap_or(std::ptr::null_mut()))) + JetGetSessionParameter(sesid.param().abi(), sesparamid, core::mem::transmute(pvparam.as_ptr()), pvparam.len().try_into().unwrap(), core::mem::transmute(pcbparamactual.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetSystemParameterA(instance: P0, sesid: P1, paramid: u32, plparam: Option<*mut super::StructuredStorage::JET_API_PTR>, szparam: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetSystemParameterA(instance : super::StructuredStorage:: JET_INSTANCE, sesid : super::StructuredStorage:: JET_SESID, paramid : u32, plparam : *mut super::StructuredStorage:: JET_API_PTR, szparam : *mut i8, cbmax : u32) -> i32); - JetGetSystemParameterA(instance.into_param().abi(), sesid.into_param().abi(), paramid, core::mem::transmute(plparam.unwrap_or(std::ptr::null_mut())), 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.param().abi(), sesid.param().abi(), paramid, core::mem::transmute(plparam.unwrap_or(std::ptr::null_mut())), 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: P0, sesid: P1, paramid: u32, plparam: Option<*mut super::StructuredStorage::JET_API_PTR>, szparam: Option<*mut u16>, cbmax: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetSystemParameterW(instance : super::StructuredStorage:: JET_INSTANCE, sesid : super::StructuredStorage:: JET_SESID, paramid : u32, plparam : *mut super::StructuredStorage:: JET_API_PTR, szparam : *mut u16, cbmax : u32) -> i32); - JetGetSystemParameterW(instance.into_param().abi(), sesid.into_param().abi(), paramid, core::mem::transmute(plparam.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szparam.unwrap_or(std::ptr::null_mut())), cbmax) + JetGetSystemParameterW(instance.param().abi(), sesid.param().abi(), paramid, core::mem::transmute(plparam.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szparam.unwrap_or(std::ptr::null_mut())), cbmax) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableColumnInfoA(sesid: P0, tableid: P1, szcolumnname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTableColumnInfoA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const i8, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableColumnInfoA(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szcolumnname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) + JetGetTableColumnInfoA(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szcolumnname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableColumnInfoW(sesid: P0, tableid: P1, szcolumnname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTableColumnInfoW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szcolumnname : *const u16, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableColumnInfoW(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szcolumnname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) + JetGetTableColumnInfoW(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szcolumnname.unwrap_or(std::ptr::null())), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableIndexInfoA(sesid: P0, tableid: P1, szindexname: Option<*const i8>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTableIndexInfoA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetTableIndexInfoA(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) + JetGetTableIndexInfoA(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableIndexInfoW(sesid: P0, tableid: P1, szindexname: Option<*const u16>, pvresult: *mut core::ffi::c_void, cbresult: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTableIndexInfoW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, pvresult : *mut core::ffi::c_void, cbresult : u32, infolevel : u32) -> i32); - JetGetTableIndexInfoW(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) + JetGetTableIndexInfoW(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), pvresult, cbresult, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableInfoA(sesid: P0, tableid: P1, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTableInfoA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableInfoA(sesid.into_param().abi(), tableid.into_param().abi(), pvresult, cbmax, infolevel) + JetGetTableInfoA(sesid.param().abi(), tableid.param().abi(), pvresult, cbmax, infolevel) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTableInfoW(sesid: P0, tableid: P1, pvresult: *mut core::ffi::c_void, cbmax: u32, infolevel: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTableInfoW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvresult : *mut core::ffi::c_void, cbmax : u32, infolevel : u32) -> i32); - JetGetTableInfoW(sesid.into_param().abi(), tableid.into_param().abi(), pvresult, cbmax, infolevel) + JetGetTableInfoW(sesid.param().abi(), tableid.param().abi(), pvresult, cbmax, infolevel) } #[inline] pub unsafe fn JetGetThreadStats(pvresult: *mut core::ffi::c_void, cbmax: u32) -> i32 { @@ -1136,86 +1136,86 @@ pub unsafe fn JetGetThreadStats(pvresult: *mut core::ffi::c_void, cbmax: u32) -> #[inline] pub unsafe fn JetGetTruncateLogInfoInstanceA(instance: P0, szzlogs: Option<&mut [u8]>, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTruncateLogInfoInstanceA(instance : super::StructuredStorage:: JET_INSTANCE, szzlogs : *mut i8, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetTruncateLogInfoInstanceA(instance.into_param().abi(), 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(std::ptr::null_mut()))) + JetGetTruncateLogInfoInstanceA(instance.param().abi(), 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(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetTruncateLogInfoInstanceW(instance: P0, wszzlogs: Option<*mut u16>, cbmax: u32, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetTruncateLogInfoInstanceW(instance : super::StructuredStorage:: JET_INSTANCE, wszzlogs : *mut u16, cbmax : u32, pcbactual : *mut u32) -> i32); - JetGetTruncateLogInfoInstanceW(instance.into_param().abi(), core::mem::transmute(wszzlogs.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) + JetGetTruncateLogInfoInstanceW(instance.param().abi(), core::mem::transmute(wszzlogs.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGetVersion(sesid: P0, pwversion: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGetVersion(sesid : super::StructuredStorage:: JET_SESID, pwversion : *mut u32) -> i32); - JetGetVersion(sesid.into_param().abi(), pwversion) + JetGetVersion(sesid.param().abi(), pwversion) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGotoBookmark(sesid: P0, tableid: P1, pvbookmark: *const core::ffi::c_void, cbbookmark: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGotoBookmark(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *const core::ffi::c_void, cbbookmark : u32) -> i32); - JetGotoBookmark(sesid.into_param().abi(), tableid.into_param().abi(), pvbookmark, cbbookmark) + JetGotoBookmark(sesid.param().abi(), tableid.param().abi(), pvbookmark, cbbookmark) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGotoPosition(sesid: P0, tableid: P1, precpos: *const JET_RECPOS) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGotoPosition(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, precpos : *const JET_RECPOS) -> i32); - JetGotoPosition(sesid.into_param().abi(), tableid.into_param().abi(), precpos) + JetGotoPosition(sesid.param().abi(), tableid.param().abi(), precpos) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGotoSecondaryIndexBookmark(sesid: P0, tableid: P1, pvsecondarykey: *const core::ffi::c_void, cbsecondarykey: u32, pvprimarybookmark: Option<*const core::ffi::c_void>, cbprimarybookmark: u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGotoSecondaryIndexBookmark(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), pvsecondarykey, cbsecondarykey, core::mem::transmute(pvprimarybookmark.unwrap_or(std::ptr::null())), cbprimarybookmark, grbit) + JetGotoSecondaryIndexBookmark(sesid.param().abi(), tableid.param().abi(), pvsecondarykey, cbsecondarykey, core::mem::transmute(pvprimarybookmark.unwrap_or(std::ptr::null())), cbprimarybookmark, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetGrowDatabase(sesid: P0, dbid: u32, cpg: u32, pcpgreal: *const u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetGrowDatabase(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, cpg : u32, pcpgreal : *const u32) -> i32); - JetGrowDatabase(sesid.into_param().abi(), dbid, cpg, pcpgreal) + JetGrowDatabase(sesid.param().abi(), dbid, cpg, pcpgreal) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetIdle(sesid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetIdle(sesid : super::StructuredStorage:: JET_SESID, grbit : u32) -> i32); - JetIdle(sesid.into_param().abi(), grbit) + JetIdle(sesid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetIndexRecordCount(sesid: P0, tableid: P1, pcrec: *mut u32, crecmax: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetIndexRecordCount(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pcrec : *mut u32, crecmax : u32) -> i32); - JetIndexRecordCount(sesid.into_param().abi(), tableid.into_param().abi(), pcrec, crecmax) + JetIndexRecordCount(sesid.param().abi(), tableid.param().abi(), pcrec, crecmax) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -1245,82 +1245,82 @@ pub unsafe fn JetInit3W(pinstance: Option<*mut super::StructuredStorage::JET_INS #[inline] pub unsafe fn JetIntersectIndexes(sesid: P0, rgindexrange: &[JET_INDEXRANGE], precordlist: *mut JET_RECORDLIST, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetIntersectIndexes(sesid : super::StructuredStorage:: JET_SESID, rgindexrange : *const JET_INDEXRANGE, cindexrange : u32, precordlist : *mut JET_RECORDLIST, grbit : u32) -> i32); - JetIntersectIndexes(sesid.into_param().abi(), core::mem::transmute(rgindexrange.as_ptr()), rgindexrange.len().try_into().unwrap(), precordlist, grbit) + JetIntersectIndexes(sesid.param().abi(), core::mem::transmute(rgindexrange.as_ptr()), rgindexrange.len().try_into().unwrap(), precordlist, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetMakeKey(sesid: P0, tableid: P1, pvdata: Option<*const core::ffi::c_void>, cbdata: u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetMakeKey(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvdata : *const core::ffi::c_void, cbdata : u32, grbit : u32) -> i32); - JetMakeKey(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, grbit) + JetMakeKey(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetMove(sesid: P0, tableid: P1, crow: i32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetMove(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, crow : i32, grbit : u32) -> i32); - JetMove(sesid.into_param().abi(), tableid.into_param().abi(), crow, grbit) + JetMove(sesid.param().abi(), tableid.param().abi(), crow, grbit) } #[inline] pub unsafe fn JetOSSnapshotAbort(snapid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotAbort(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotAbort(snapid.into_param().abi(), grbit) + JetOSSnapshotAbort(snapid.param().abi(), grbit) } #[inline] pub unsafe fn JetOSSnapshotEnd(snapid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotEnd(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotEnd(snapid.into_param().abi(), grbit) + JetOSSnapshotEnd(snapid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotFreezeA(snapid: P0, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_A, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(snapid.into_param().abi(), pcinstanceinfo, painstanceinfo, grbit) + JetOSSnapshotFreezeA(snapid.param().abi(), pcinstanceinfo, painstanceinfo, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotFreezeW(snapid: P0, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_W, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(snapid.into_param().abi(), pcinstanceinfo, painstanceinfo, grbit) + JetOSSnapshotFreezeW(snapid.param().abi(), pcinstanceinfo, painstanceinfo, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotGetFreezeInfoA(snapid: P0, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_A, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(snapid.into_param().abi(), pcinstanceinfo, painstanceinfo, grbit) + JetOSSnapshotGetFreezeInfoA(snapid.param().abi(), pcinstanceinfo, painstanceinfo, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotGetFreezeInfoW(snapid: P0, pcinstanceinfo: *mut u32, painstanceinfo: *mut *mut JET_INSTANCE_INFO_W, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(snapid.into_param().abi(), pcinstanceinfo, painstanceinfo, grbit) + JetOSSnapshotGetFreezeInfoW(snapid.param().abi(), pcinstanceinfo, painstanceinfo, grbit) } #[inline] pub unsafe fn JetOSSnapshotPrepare(psnapid: *mut JET_OSSNAPID, grbit: u32) -> i32 { @@ -1331,55 +1331,55 @@ pub unsafe fn JetOSSnapshotPrepare(psnapid: *mut JET_OSSNAPID, grbit: u32) -> i3 #[inline] pub unsafe fn JetOSSnapshotPrepareInstance(snapid: P0, instance: P1, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotPrepareInstance(snapid : JET_OSSNAPID, instance : super::StructuredStorage:: JET_INSTANCE, grbit : u32) -> i32); - JetOSSnapshotPrepareInstance(snapid.into_param().abi(), instance.into_param().abi(), grbit) + JetOSSnapshotPrepareInstance(snapid.param().abi(), instance.param().abi(), grbit) } #[inline] pub unsafe fn JetOSSnapshotThaw(snapid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotThaw(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotThaw(snapid.into_param().abi(), grbit) + JetOSSnapshotThaw(snapid.param().abi(), grbit) } #[inline] pub unsafe fn JetOSSnapshotTruncateLog(snapid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotTruncateLog(snapid : JET_OSSNAPID, grbit : u32) -> i32); - JetOSSnapshotTruncateLog(snapid.into_param().abi(), grbit) + JetOSSnapshotTruncateLog(snapid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOSSnapshotTruncateLogInstance(snapid: P0, instance: P1, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOSSnapshotTruncateLogInstance(snapid : JET_OSSNAPID, instance : super::StructuredStorage:: JET_INSTANCE, grbit : u32) -> i32); - JetOSSnapshotTruncateLogInstance(snapid.into_param().abi(), instance.into_param().abi(), grbit) + JetOSSnapshotTruncateLogInstance(snapid.param().abi(), instance.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenDatabaseA(sesid: P0, szfilename: *const i8, szconnect: Option<*const i8>, pdbid: *mut u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenDatabaseA(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const i8, szconnect : *const i8, pdbid : *mut u32, grbit : u32) -> i32); - JetOpenDatabaseA(sesid.into_param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) + JetOpenDatabaseA(sesid.param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenDatabaseW(sesid: P0, szfilename: *const u16, szconnect: Option<*const u16>, pdbid: *mut u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenDatabaseW(sesid : super::StructuredStorage:: JET_SESID, szfilename : *const u16, szconnect : *const u16, pdbid : *mut u32, grbit : u32) -> i32); - JetOpenDatabaseW(sesid.into_param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) + JetOpenDatabaseW(sesid.param().abi(), szfilename, core::mem::transmute(szconnect.unwrap_or(std::ptr::null())), pdbid, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -1391,19 +1391,19 @@ pub unsafe fn JetOpenFileA(szfilename: *const i8, phffile: *mut super::Structure #[inline] pub unsafe fn JetOpenFileInstanceA(instance: P0, szfilename: *const i8, phffile: *mut super::StructuredStorage::JET_HANDLE, pulfilesizelow: *mut u32, pulfilesizehigh: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenFileInstanceA(instance : super::StructuredStorage:: JET_INSTANCE, szfilename : *const i8, phffile : *mut super::StructuredStorage:: JET_HANDLE, pulfilesizelow : *mut u32, pulfilesizehigh : *mut u32) -> i32); - JetOpenFileInstanceA(instance.into_param().abi(), szfilename, phffile, pulfilesizelow, pulfilesizehigh) + JetOpenFileInstanceA(instance.param().abi(), szfilename, phffile, pulfilesizelow, pulfilesizehigh) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenFileInstanceW(instance: P0, szfilename: *const u16, phffile: *mut super::StructuredStorage::JET_HANDLE, pulfilesizelow: *mut u32, pulfilesizehigh: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenFileInstanceW(instance : super::StructuredStorage:: JET_INSTANCE, szfilename : *const u16, phffile : *mut super::StructuredStorage:: JET_HANDLE, pulfilesizelow : *mut u32, pulfilesizehigh : *mut u32) -> i32); - JetOpenFileInstanceW(instance.into_param().abi(), szfilename, phffile, pulfilesizelow, pulfilesizehigh) + JetOpenFileInstanceW(instance.param().abi(), szfilename, phffile, pulfilesizelow, pulfilesizehigh) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -1415,189 +1415,189 @@ pub unsafe fn JetOpenFileW(szfilename: *const u16, phffile: *mut super::Structur #[inline] pub unsafe fn JetOpenTableA(sesid: P0, dbid: u32, sztablename: *const i8, pvparameters: Option<*const core::ffi::c_void>, cbparameters: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenTableA(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), dbid, sztablename, core::mem::transmute(pvparameters.unwrap_or(std::ptr::null())), cbparameters, grbit, ptableid) + JetOpenTableA(sesid.param().abi(), dbid, sztablename, core::mem::transmute(pvparameters.unwrap_or(std::ptr::null())), cbparameters, grbit, ptableid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTableW(sesid: P0, dbid: u32, sztablename: *const u16, pvparameters: Option<*const core::ffi::c_void>, cbparameters: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenTableW(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), dbid, sztablename, core::mem::transmute(pvparameters.unwrap_or(std::ptr::null())), cbparameters, grbit, ptableid) + JetOpenTableW(sesid.param().abi(), dbid, sztablename, core::mem::transmute(pvparameters.unwrap_or(std::ptr::null())), cbparameters, grbit, ptableid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTempTable(sesid: P0, prgcolumndef: *const JET_COLUMNDEF, ccolumn: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID, prgcolumnid: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenTempTable(sesid : super::StructuredStorage:: JET_SESID, prgcolumndef : *const JET_COLUMNDEF, ccolumn : u32, grbit : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID, prgcolumnid : *mut u32) -> i32); - JetOpenTempTable(sesid.into_param().abi(), prgcolumndef, ccolumn, grbit, ptableid, prgcolumnid) + JetOpenTempTable(sesid.param().abi(), prgcolumndef, ccolumn, grbit, ptableid, prgcolumnid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTempTable2(sesid: P0, prgcolumndef: *const JET_COLUMNDEF, ccolumn: u32, lcid: u32, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID, prgcolumnid: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenTempTable2(sesid : super::StructuredStorage:: JET_SESID, prgcolumndef : *const JET_COLUMNDEF, ccolumn : u32, lcid : u32, grbit : u32, ptableid : *mut super::StructuredStorage:: JET_TABLEID, prgcolumnid : *mut u32) -> i32); - JetOpenTempTable2(sesid.into_param().abi(), prgcolumndef, ccolumn, lcid, grbit, ptableid, prgcolumnid) + JetOpenTempTable2(sesid.param().abi(), prgcolumndef, ccolumn, lcid, grbit, ptableid, prgcolumnid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTempTable3(sesid: P0, prgcolumndef: *const JET_COLUMNDEF, ccolumn: u32, pidxunicode: Option<*const JET_UNICODEINDEX>, grbit: u32, ptableid: *mut super::StructuredStorage::JET_TABLEID, prgcolumnid: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenTempTable3(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), prgcolumndef, ccolumn, core::mem::transmute(pidxunicode.unwrap_or(std::ptr::null())), grbit, ptableid, prgcolumnid) + JetOpenTempTable3(sesid.param().abi(), prgcolumndef, ccolumn, core::mem::transmute(pidxunicode.unwrap_or(std::ptr::null())), grbit, ptableid, prgcolumnid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTemporaryTable(sesid: P0, popentemporarytable: *const JET_OPENTEMPORARYTABLE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenTemporaryTable(sesid : super::StructuredStorage:: JET_SESID, popentemporarytable : *const JET_OPENTEMPORARYTABLE) -> i32); - JetOpenTemporaryTable(sesid.into_param().abi(), popentemporarytable) + JetOpenTemporaryTable(sesid.param().abi(), popentemporarytable) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetOpenTemporaryTable2(sesid: P0, popentemporarytable: *const JET_OPENTEMPORARYTABLE2) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetOpenTemporaryTable2(sesid : super::StructuredStorage:: JET_SESID, popentemporarytable : *const JET_OPENTEMPORARYTABLE2) -> i32); - JetOpenTemporaryTable2(sesid.into_param().abi(), popentemporarytable) + JetOpenTemporaryTable2(sesid.param().abi(), popentemporarytable) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetPrepareUpdate(sesid: P0, tableid: P1, prep: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetPrepareUpdate(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, prep : u32) -> i32); - JetPrepareUpdate(sesid.into_param().abi(), tableid.into_param().abi(), prep) + JetPrepareUpdate(sesid.param().abi(), tableid.param().abi(), prep) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetPrereadIndexRanges(sesid: P0, tableid: P1, rgindexranges: &[JET_INDEX_RANGE], pcrangespreread: Option<*mut u32>, rgcolumnidpreread: &[u32], grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetPrereadIndexRanges(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(rgindexranges.as_ptr()), rgindexranges.len().try_into().unwrap(), core::mem::transmute(pcrangespreread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(rgcolumnidpreread.as_ptr()), rgcolumnidpreread.len().try_into().unwrap(), grbit) + JetPrereadIndexRanges(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(rgindexranges.as_ptr()), rgindexranges.len().try_into().unwrap(), core::mem::transmute(pcrangespreread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(rgcolumnidpreread.as_ptr()), rgcolumnidpreread.len().try_into().unwrap(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetPrereadKeys(sesid: P0, tableid: P1, rgpvkeys: *const *const core::ffi::c_void, rgcbkeys: *const u32, ckeys: i32, pckeyspreread: Option<*mut i32>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetPrereadKeys(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), rgpvkeys, rgcbkeys, ckeys, core::mem::transmute(pckeyspreread.unwrap_or(std::ptr::null_mut())), grbit) + JetPrereadKeys(sesid.param().abi(), tableid.param().abi(), rgpvkeys, rgcbkeys, ckeys, core::mem::transmute(pckeyspreread.unwrap_or(std::ptr::null_mut())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetReadFile(hffile: P0, pv: *mut core::ffi::c_void, cb: u32, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hffile.into_param().abi(), pv, cb, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) + JetReadFile(hffile.param().abi(), pv, cb, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetReadFileInstance(instance: P0, hffile: P1, pv: *mut core::ffi::c_void, cb: u32, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetReadFileInstance(instance : super::StructuredStorage:: JET_INSTANCE, hffile : super::StructuredStorage:: JET_HANDLE, pv : *mut core::ffi::c_void, cb : u32, pcbactual : *mut u32) -> i32); - JetReadFileInstance(instance.into_param().abi(), hffile.into_param().abi(), pv, cb, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) + JetReadFileInstance(instance.param().abi(), hffile.param().abi(), pv, cb, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRegisterCallback(sesid: P0, tableid: P1, cbtyp: u32, pcallback: JET_CALLBACK, pvcontext: Option<*const core::ffi::c_void>, phcallbackid: *const super::StructuredStorage::JET_HANDLE) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRegisterCallback(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), cbtyp, pcallback, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), phcallbackid) + JetRegisterCallback(sesid.param().abi(), tableid.param().abi(), cbtyp, pcallback, core::mem::transmute(pvcontext.unwrap_or(std::ptr::null())), phcallbackid) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRenameColumnA(sesid: P0, tableid: P1, szname: *const i8, sznamenew: *const i8, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRenameColumnA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szname : *const i8, sznamenew : *const i8, grbit : u32) -> i32); - JetRenameColumnA(sesid.into_param().abi(), tableid.into_param().abi(), szname, sznamenew, grbit) + JetRenameColumnA(sesid.param().abi(), tableid.param().abi(), szname, sznamenew, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRenameColumnW(sesid: P0, tableid: P1, szname: *const u16, sznamenew: *const u16, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRenameColumnW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szname : *const u16, sznamenew : *const u16, grbit : u32) -> i32); - JetRenameColumnW(sesid.into_param().abi(), tableid.into_param().abi(), szname, sznamenew, grbit) + JetRenameColumnW(sesid.param().abi(), tableid.param().abi(), szname, sznamenew, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRenameTableA(sesid: P0, dbid: u32, szname: *const i8, sznamenew: *const i8) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRenameTableA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, szname : *const i8, sznamenew : *const i8) -> i32); - JetRenameTableA(sesid.into_param().abi(), dbid, szname, sznamenew) + JetRenameTableA(sesid.param().abi(), dbid, szname, sznamenew) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRenameTableW(sesid: P0, dbid: u32, szname: *const u16, sznamenew: *const u16) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRenameTableW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, szname : *const u16, sznamenew : *const u16) -> i32); - JetRenameTableW(sesid.into_param().abi(), dbid, szname, sznamenew) + JetRenameTableW(sesid.param().abi(), dbid, szname, sznamenew) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetResetSessionContext(sesid: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetResetSessionContext(sesid : super::StructuredStorage:: JET_SESID) -> i32); - JetResetSessionContext(sesid.into_param().abi()) + JetResetSessionContext(sesid.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetResetTableSequential(sesid: P0, tableid: P1, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetResetTableSequential(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetResetTableSequential(sesid.into_param().abi(), tableid.into_param().abi(), grbit) + JetResetTableSequential(sesid.param().abi(), tableid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetResizeDatabase(sesid: P0, dbid: u32, cpgtarget: u32, pcpgactual: *mut u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetResizeDatabase(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, cpgtarget : u32, pcpgactual : *mut u32, grbit : u32) -> i32); - JetResizeDatabase(sesid.into_param().abi(), dbid, cpgtarget, pcpgactual, grbit) + JetResizeDatabase(sesid.param().abi(), dbid, cpgtarget, pcpgactual, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -1621,19 +1621,19 @@ pub unsafe fn JetRestoreA(szsource: *const i8, pfn: JET_PFNSTATUS) -> i32 { #[inline] pub unsafe fn JetRestoreInstanceA(instance: P0, sz: *const i8, szdest: Option<*const i8>, pfn: JET_PFNSTATUS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRestoreInstanceA(instance : super::StructuredStorage:: JET_INSTANCE, sz : *const i8, szdest : *const i8, pfn : JET_PFNSTATUS) -> i32); - JetRestoreInstanceA(instance.into_param().abi(), sz, core::mem::transmute(szdest.unwrap_or(std::ptr::null())), pfn) + JetRestoreInstanceA(instance.param().abi(), sz, core::mem::transmute(szdest.unwrap_or(std::ptr::null())), pfn) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRestoreInstanceW(instance: P0, sz: *const u16, szdest: Option<*const u16>, pfn: JET_PFNSTATUS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRestoreInstanceW(instance : super::StructuredStorage:: JET_INSTANCE, sz : *const u16, szdest : *const u16, pfn : JET_PFNSTATUS) -> i32); - JetRestoreInstanceW(instance.into_param().abi(), sz, core::mem::transmute(szdest.unwrap_or(std::ptr::null())), pfn) + JetRestoreInstanceW(instance.param().abi(), sz, core::mem::transmute(szdest.unwrap_or(std::ptr::null())), pfn) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] @@ -1645,266 +1645,266 @@ pub unsafe fn JetRestoreW(szsource: *const u16, pfn: JET_PFNSTATUS) -> i32 { #[inline] pub unsafe fn JetRetrieveColumn(sesid: P0, tableid: P1, columnid: u32, pvdata: Option<*mut core::ffi::c_void>, cbdata: u32, pcbactual: Option<*mut u32>, grbit: u32, pretinfo: Option<*mut JET_RETINFO>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRetrieveColumn(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), columnid, core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), cbdata, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), grbit, core::mem::transmute(pretinfo.unwrap_or(std::ptr::null_mut()))) + JetRetrieveColumn(sesid.param().abi(), tableid.param().abi(), columnid, core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), cbdata, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), grbit, core::mem::transmute(pretinfo.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRetrieveColumns(sesid: P0, tableid: P1, pretrievecolumn: Option<&mut [JET_RETRIEVECOLUMN]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRetrieveColumns(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pretrievecolumn : *mut JET_RETRIEVECOLUMN, cretrievecolumn : u32) -> i32); - JetRetrieveColumns(sesid.into_param().abi(), tableid.into_param().abi(), 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.param().abi(), tableid.param().abi(), 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: P0, tableid: P1, pvkey: Option<*mut core::ffi::c_void>, cbmax: u32, pcbactual: Option<*mut u32>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRetrieveKey(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvkey : *mut core::ffi::c_void, cbmax : u32, pcbactual : *mut u32, grbit : u32) -> i32); - JetRetrieveKey(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pvkey.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), grbit) + JetRetrieveKey(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pvkey.unwrap_or(std::ptr::null_mut())), cbmax, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetRollback(sesid: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetRollback(sesid : super::StructuredStorage:: JET_SESID, grbit : u32) -> i32); - JetRollback(sesid.into_param().abi(), grbit) + JetRollback(sesid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSeek(sesid: P0, tableid: P1, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSeek(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetSeek(sesid.into_param().abi(), tableid.into_param().abi(), grbit) + JetSeek(sesid.param().abi(), tableid.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetColumn(sesid: P0, tableid: P1, columnid: u32, pvdata: Option<*const core::ffi::c_void>, cbdata: u32, grbit: u32, psetinfo: Option<*const JET_SETINFO>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetColumn(sesid : super::StructuredStorage:: 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(sesid.into_param().abi(), tableid.into_param().abi(), columnid, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, grbit, core::mem::transmute(psetinfo.unwrap_or(std::ptr::null()))) + JetSetColumn(sesid.param().abi(), tableid.param().abi(), columnid, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, grbit, core::mem::transmute(psetinfo.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetColumnDefaultValueA(sesid: P0, dbid: u32, sztablename: *const i8, szcolumnname: *const i8, pvdata: *const core::ffi::c_void, cbdata: u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetColumnDefaultValueA(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const i8, szcolumnname : *const i8, pvdata : *const core::ffi::c_void, cbdata : u32, grbit : u32) -> i32); - JetSetColumnDefaultValueA(sesid.into_param().abi(), dbid, sztablename, szcolumnname, pvdata, cbdata, grbit) + JetSetColumnDefaultValueA(sesid.param().abi(), dbid, sztablename, szcolumnname, pvdata, cbdata, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetColumnDefaultValueW(sesid: P0, dbid: u32, sztablename: *const u16, szcolumnname: *const u16, pvdata: *const core::ffi::c_void, cbdata: u32, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetColumnDefaultValueW(sesid : super::StructuredStorage:: JET_SESID, dbid : u32, sztablename : *const u16, szcolumnname : *const u16, pvdata : *const core::ffi::c_void, cbdata : u32, grbit : u32) -> i32); - JetSetColumnDefaultValueW(sesid.into_param().abi(), dbid, sztablename, szcolumnname, pvdata, cbdata, grbit) + JetSetColumnDefaultValueW(sesid.param().abi(), dbid, sztablename, szcolumnname, pvdata, cbdata, grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetColumns(sesid: P0, tableid: P1, psetcolumn: Option<&[JET_SETCOLUMN]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetColumns(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, psetcolumn : *const JET_SETCOLUMN, csetcolumn : u32) -> i32); - JetSetColumns(sesid.into_param().abi(), tableid.into_param().abi(), 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.param().abi(), tableid.param().abi(), 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: P0, tableid: P1, szindexname: Option<*const i8>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex2A(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, grbit : u32) -> i32); - JetSetCurrentIndex2A(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit) + JetSetCurrentIndex2A(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex2W(sesid: P0, tableid: P1, szindexname: Option<*const u16>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex2W(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, grbit : u32) -> i32); - JetSetCurrentIndex2W(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit) + JetSetCurrentIndex2W(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex3A(sesid: P0, tableid: P1, szindexname: Option<*const i8>, grbit: u32, itagsequence: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex3A(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex3A(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit, itagsequence) + JetSetCurrentIndex3A(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex3W(sesid: P0, tableid: P1, szindexname: Option<*const u16>, grbit: u32, itagsequence: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex3W(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex3W(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit, itagsequence) + JetSetCurrentIndex3W(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex4A(sesid: P0, tableid: P1, szindexname: Option<*const i8>, pindexid: Option<*const JET_INDEXID>, grbit: u32, itagsequence: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex4A(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8, pindexid : *const JET_INDEXID, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex4A(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), grbit, itagsequence) + JetSetCurrentIndex4A(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndex4W(sesid: P0, tableid: P1, szindexname: Option<*const u16>, pindexid: Option<*const JET_INDEXID>, grbit: u32, itagsequence: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndex4W(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16, pindexid : *const JET_INDEXID, grbit : u32, itagsequence : u32) -> i32); - JetSetCurrentIndex4W(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), grbit, itagsequence) + JetSetCurrentIndex4W(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), grbit, itagsequence) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndexA(sesid: P0, tableid: P1, szindexname: Option<*const i8>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndexA(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const i8) -> i32); - JetSetCurrentIndexA(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null()))) + JetSetCurrentIndexA(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCurrentIndexW(sesid: P0, tableid: P1, szindexname: Option<*const u16>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCurrentIndexW(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, szindexname : *const u16) -> i32); - JetSetCurrentIndexW(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null()))) + JetSetCurrentIndexW(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(szindexname.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetCursorFilter(sesid: P0, tableid: P1, rgcolumnfilters: &[JET_INDEX_COLUMN], grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetCursorFilter(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, rgcolumnfilters : *const JET_INDEX_COLUMN, ccolumnfilters : u32, grbit : u32) -> i32); - JetSetCursorFilter(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(rgcolumnfilters.as_ptr()), rgcolumnfilters.len().try_into().unwrap(), grbit) + JetSetCursorFilter(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(rgcolumnfilters.as_ptr()), rgcolumnfilters.len().try_into().unwrap(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetDatabaseSizeA(sesid: P0, szdatabasename: *const i8, cpg: u32, pcpgreal: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetDatabaseSizeA(sesid : super::StructuredStorage:: JET_SESID, szdatabasename : *const i8, cpg : u32, pcpgreal : *mut u32) -> i32); - JetSetDatabaseSizeA(sesid.into_param().abi(), szdatabasename, cpg, pcpgreal) + JetSetDatabaseSizeA(sesid.param().abi(), szdatabasename, cpg, pcpgreal) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetDatabaseSizeW(sesid: P0, szdatabasename: *const u16, cpg: u32, pcpgreal: *mut u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetDatabaseSizeW(sesid : super::StructuredStorage:: JET_SESID, szdatabasename : *const u16, cpg : u32, pcpgreal : *mut u32) -> i32); - JetSetDatabaseSizeW(sesid.into_param().abi(), szdatabasename, cpg, pcpgreal) + JetSetDatabaseSizeW(sesid.param().abi(), szdatabasename, cpg, pcpgreal) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetIndexRange(sesid: P0, tableidsrc: P1, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetIndexRange(sesid : super::StructuredStorage:: JET_SESID, tableidsrc : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetSetIndexRange(sesid.into_param().abi(), tableidsrc.into_param().abi(), grbit) + JetSetIndexRange(sesid.param().abi(), tableidsrc.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetLS(sesid: P0, tableid: P1, ls: P2, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetLS(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, ls : JET_LS, grbit : u32) -> i32); - JetSetLS(sesid.into_param().abi(), tableid.into_param().abi(), ls.into_param().abi(), grbit) + JetSetLS(sesid.param().abi(), tableid.param().abi(), ls.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetSessionContext(sesid: P0, ulcontext: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetSessionContext(sesid : super::StructuredStorage:: JET_SESID, ulcontext : super::StructuredStorage:: JET_API_PTR) -> i32); - JetSetSessionContext(sesid.into_param().abi(), ulcontext.into_param().abi()) + JetSetSessionContext(sesid.param().abi(), ulcontext.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetSessionParameter(sesid: P0, sesparamid: u32, pvparam: Option<*const core::ffi::c_void>, cbparam: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetSessionParameter(sesid : super::StructuredStorage:: JET_SESID, sesparamid : u32, pvparam : *const core::ffi::c_void, cbparam : u32) -> i32); - JetSetSessionParameter(sesid.into_param().abi(), sesparamid, core::mem::transmute(pvparam.unwrap_or(std::ptr::null())), cbparam) + JetSetSessionParameter(sesid.param().abi(), sesparamid, core::mem::transmute(pvparam.unwrap_or(std::ptr::null())), cbparam) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetSystemParameterA(pinstance: Option<*mut super::StructuredStorage::JET_INSTANCE>, sesid: P0, paramid: u32, lparam: P1, szparam: Option<*const i8>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetSystemParameterA(pinstance : *mut super::StructuredStorage:: JET_INSTANCE, sesid : super::StructuredStorage:: JET_SESID, paramid : u32, lparam : super::StructuredStorage:: JET_API_PTR, szparam : *const i8) -> i32); - JetSetSystemParameterA(core::mem::transmute(pinstance.unwrap_or(std::ptr::null_mut())), sesid.into_param().abi(), paramid, lparam.into_param().abi(), core::mem::transmute(szparam.unwrap_or(std::ptr::null()))) + JetSetSystemParameterA(core::mem::transmute(pinstance.unwrap_or(std::ptr::null_mut())), sesid.param().abi(), paramid, lparam.param().abi(), core::mem::transmute(szparam.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetSystemParameterW(pinstance: Option<*mut super::StructuredStorage::JET_INSTANCE>, sesid: P0, paramid: u32, lparam: P1, szparam: Option<*const u16>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetSystemParameterW(pinstance : *mut super::StructuredStorage:: JET_INSTANCE, sesid : super::StructuredStorage:: JET_SESID, paramid : u32, lparam : super::StructuredStorage:: JET_API_PTR, szparam : *const u16) -> i32); - JetSetSystemParameterW(core::mem::transmute(pinstance.unwrap_or(std::ptr::null_mut())), sesid.into_param().abi(), paramid, lparam.into_param().abi(), core::mem::transmute(szparam.unwrap_or(std::ptr::null()))) + JetSetSystemParameterW(core::mem::transmute(pinstance.unwrap_or(std::ptr::null_mut())), sesid.param().abi(), paramid, lparam.param().abi(), core::mem::transmute(szparam.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetSetTableSequential(sesid: P0, tableid: P1, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetSetTableSequential(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, grbit : u32) -> i32); - JetSetTableSequential(sesid.into_param().abi(), tableid.into_param().abi(), grbit) + JetSetTableSequential(sesid.param().abi(), tableid.param().abi(), grbit) } #[inline] pub unsafe fn JetStopBackup() -> i32 { @@ -1915,10 +1915,10 @@ pub unsafe fn JetStopBackup() -> i32 { #[inline] pub unsafe fn JetStopBackupInstance(instance: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetStopBackupInstance(instance : super::StructuredStorage:: JET_INSTANCE) -> i32); - JetStopBackupInstance(instance.into_param().abi()) + JetStopBackupInstance(instance.param().abi()) } #[inline] pub unsafe fn JetStopService() -> i32 { @@ -1929,37 +1929,37 @@ pub unsafe fn JetStopService() -> i32 { #[inline] pub unsafe fn JetStopServiceInstance(instance: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetStopServiceInstance(instance : super::StructuredStorage:: JET_INSTANCE) -> i32); - JetStopServiceInstance(instance.into_param().abi()) + JetStopServiceInstance(instance.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetStopServiceInstance2(instance: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetStopServiceInstance2(instance : super::StructuredStorage:: JET_INSTANCE, grbit : u32) -> i32); - JetStopServiceInstance2(instance.into_param().abi(), grbit) + JetStopServiceInstance2(instance.param().abi(), grbit) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetTerm(instance: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetTerm(instance : super::StructuredStorage:: JET_INSTANCE) -> i32); - JetTerm(instance.into_param().abi()) + JetTerm(instance.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetTerm2(instance: P0, grbit: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetTerm2(instance : super::StructuredStorage:: JET_INSTANCE, grbit : u32) -> i32); - JetTerm2(instance.into_param().abi(), grbit) + JetTerm2(instance.param().abi(), grbit) } #[inline] pub unsafe fn JetTruncateLog() -> i32 { @@ -1970,41 +1970,41 @@ pub unsafe fn JetTruncateLog() -> i32 { #[inline] pub unsafe fn JetTruncateLogInstance(instance: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetTruncateLogInstance(instance : super::StructuredStorage:: JET_INSTANCE) -> i32); - JetTruncateLogInstance(instance.into_param().abi()) + JetTruncateLogInstance(instance.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetUnregisterCallback(sesid: P0, tableid: P1, cbtyp: u32, hcallbackid: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetUnregisterCallback(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, cbtyp : u32, hcallbackid : super::StructuredStorage:: JET_HANDLE) -> i32); - JetUnregisterCallback(sesid.into_param().abi(), tableid.into_param().abi(), cbtyp, hcallbackid.into_param().abi()) + JetUnregisterCallback(sesid.param().abi(), tableid.param().abi(), cbtyp, hcallbackid.param().abi()) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetUpdate(sesid: P0, tableid: P1, pvbookmark: Option<*mut core::ffi::c_void>, cbbookmark: u32, pcbactual: Option<*mut u32>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetUpdate(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *mut core::ffi::c_void, cbbookmark : u32, pcbactual : *mut u32) -> i32); - JetUpdate(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pvbookmark.unwrap_or(std::ptr::null_mut())), cbbookmark, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) + JetUpdate(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pvbookmark.unwrap_or(std::ptr::null_mut())), cbbookmark, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] pub unsafe fn JetUpdate2(sesid: P0, tableid: P1, pvbookmark: Option<*mut core::ffi::c_void>, cbbookmark: u32, pcbactual: Option<*mut u32>, grbit: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("esent.dll" "system" fn JetUpdate2(sesid : super::StructuredStorage:: JET_SESID, tableid : super::StructuredStorage:: JET_TABLEID, pvbookmark : *mut core::ffi::c_void, cbbookmark : u32, pcbactual : *mut u32, grbit : u32) -> i32); - JetUpdate2(sesid.into_param().abi(), tableid.into_param().abi(), core::mem::transmute(pvbookmark.unwrap_or(std::ptr::null_mut())), cbbookmark, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), grbit) + JetUpdate2(sesid.param().abi(), tableid.param().abi(), core::mem::transmute(pvbookmark.unwrap_or(std::ptr::null_mut())), cbbookmark, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null_mut())), grbit) } pub const JET_BASE_NAME_LENGTH: u32 = 3u32; pub const JET_ColInfoGrbitMinimalInfo: u32 = 1073741824u32; 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 e806273f02..99bee44399 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn OfflineFilesEnable(benable: P0, pbrebootrequired: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("cscapi.dll" "system" fn OfflineFilesEnable(benable : super::super::Foundation:: BOOL, pbrebootrequired : *mut super::super::Foundation:: BOOL) -> u32); - OfflineFilesEnable(benable.into_param().abi(), pbrebootrequired) + OfflineFilesEnable(benable.param().abi(), pbrebootrequired) } #[inline] pub unsafe fn OfflineFilesQueryStatus(pbactive: Option<*mut super::super::Foundation::BOOL>, pbenabled: Option<*mut super::super::Foundation::BOOL>) -> u32 { @@ -76,83 +76,83 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesCache, windows_core::IUnkno impl IOfflineFilesCache { pub unsafe fn Synchronize(&self, hwndparent: P0, rgpszpaths: &[windows_core::PCWSTR], basync: P1, dwsynccontrol: u32, pisyncconflicthandler: P2, piprogress: P3, psyncid: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), basync.into_param().abi(), dwsynccontrol, pisyncconflicthandler.into_param().abi(), piprogress.into_param().abi(), core::mem::transmute(psyncid.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), basync.param().abi(), dwsynccontrol, pisyncconflicthandler.param().abi(), piprogress.param().abi(), core::mem::transmute(psyncid.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DeleteItems(&self, rgpszpaths: &[windows_core::PCWSTR], dwflags: u32, basync: P0, piprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(), dwflags, basync.into_param().abi(), piprogress.into_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.param().abi(), piprogress.param().abi()).ok() } pub unsafe fn DeleteItemsForUser(&self, pszuser: P0, rgpszpaths: &[windows_core::PCWSTR], dwflags: u32, basync: P1, piprogress: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItemsForUser)(windows_core::Interface::as_raw(self), pszuser.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), dwflags, basync.into_param().abi(), piprogress.into_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.param().abi(), piprogress.param().abi()).ok() } pub unsafe fn Pin(&self, hwndparent: P0, rgpszpaths: &[windows_core::PCWSTR], bdeep: P1, basync: P2, dwpincontrolflags: u32, piprogress: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Pin)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into_param().abi(), basync.into_param().abi(), dwpincontrolflags, piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Pin)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.param().abi(), basync.param().abi(), dwpincontrolflags, piprogress.param().abi()).ok() } pub unsafe fn Unpin(&self, hwndparent: P0, rgpszpaths: &[windows_core::PCWSTR], bdeep: P1, basync: P2, dwpincontrolflags: u32, piprogress: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Unpin)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into_param().abi(), basync.into_param().abi(), dwpincontrolflags, piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unpin)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.param().abi(), basync.param().abi(), 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), pbencrypted, pbpartial).ok() } pub unsafe fn Encrypt(&self, hwndparent: P0, bencrypt: P1, dwencryptioncontrolflags: u32, basync: P2, piprogress: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Encrypt)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), bencrypt.into_param().abi(), dwencryptioncontrolflags, basync.into_param().abi(), piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Encrypt)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), bencrypt.param().abi(), dwencryptioncontrolflags, basync.param().abi(), piprogress.param().abi()).ok() } pub unsafe fn FindItem(&self, pszpath: P0, dwqueryflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItem)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemEx)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pincludefilefilter.into_param().abi(), pincludedirfilter.into_param().abi(), pexcludefilefilter.into_param().abi(), pexcludedirfilter.into_param().abi(), 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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameItem)(windows_core::Interface::as_raw(self), pszpathoriginal.into_param().abi(), pszpathnew.into_param().abi(), breplaceifexists.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenameItem)(windows_core::Interface::as_raw(self), pszpathoriginal.param().abi(), pszpathnew.param().abi(), breplaceifexists.param().abi()).ok() } pub unsafe fn GetLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -166,17 +166,17 @@ impl IOfflineFilesCache { } pub unsafe fn ProcessAdminPinPolicy(&self, ppinprogress: P0, punpinprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessAdminPinPolicy)(windows_core::Interface::as_raw(self), ppinprogress.into_param().abi(), punpinprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProcessAdminPinPolicy)(windows_core::Interface::as_raw(self), ppinprogress.param().abi(), punpinprogress.param().abi()).ok() } pub unsafe fn GetSettingObject(&self, pszsettingname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSettingObject)(windows_core::Interface::as_raw(self), pszsettingname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSettingObject)(windows_core::Interface::as_raw(self), pszsettingname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumSettingObjects(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -184,9 +184,9 @@ impl IOfflineFilesCache { } pub unsafe fn IsPathCacheable(&self, pszpath: P0, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsPathCacheable)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pbcacheable, psharecachingmode).ok() + (windows_core::Interface::vtable(self).IsPathCacheable)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pbcacheable, psharecachingmode).ok() } } #[repr(C)] @@ -215,83 +215,83 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesCache2, windows_core::IUnkn impl IOfflineFilesCache2 { pub unsafe fn Synchronize(&self, hwndparent: P0, rgpszpaths: &[windows_core::PCWSTR], basync: P1, dwsynccontrol: u32, pisyncconflicthandler: P2, piprogress: P3, psyncid: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Synchronize)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), basync.into_param().abi(), dwsynccontrol, pisyncconflicthandler.into_param().abi(), piprogress.into_param().abi(), core::mem::transmute(psyncid.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.Synchronize)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), basync.param().abi(), dwsynccontrol, pisyncconflicthandler.param().abi(), piprogress.param().abi(), core::mem::transmute(psyncid.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DeleteItems(&self, rgpszpaths: &[windows_core::PCWSTR], dwflags: u32, basync: P0, piprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteItems)(windows_core::Interface::as_raw(self), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), dwflags, basync.into_param().abi(), piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteItems)(windows_core::Interface::as_raw(self), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), dwflags, basync.param().abi(), piprogress.param().abi()).ok() } pub unsafe fn DeleteItemsForUser(&self, pszuser: P0, rgpszpaths: &[windows_core::PCWSTR], dwflags: u32, basync: P1, piprogress: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteItemsForUser)(windows_core::Interface::as_raw(self), pszuser.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), dwflags, basync.into_param().abi(), piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteItemsForUser)(windows_core::Interface::as_raw(self), pszuser.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), dwflags, basync.param().abi(), piprogress.param().abi()).ok() } pub unsafe fn Pin(&self, hwndparent: P0, rgpszpaths: &[windows_core::PCWSTR], bdeep: P1, basync: P2, dwpincontrolflags: u32, piprogress: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Pin)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into_param().abi(), basync.into_param().abi(), dwpincontrolflags, piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Pin)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.param().abi(), basync.param().abi(), dwpincontrolflags, piprogress.param().abi()).ok() } pub unsafe fn Unpin(&self, hwndparent: P0, rgpszpaths: &[windows_core::PCWSTR], bdeep: P1, basync: P2, dwpincontrolflags: u32, piprogress: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Unpin)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into_param().abi(), basync.into_param().abi(), dwpincontrolflags, piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Unpin)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.param().abi(), basync.param().abi(), 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).base__.GetEncryptionStatus)(windows_core::Interface::as_raw(self), pbencrypted, pbpartial).ok() } pub unsafe fn Encrypt(&self, hwndparent: P0, bencrypt: P1, dwencryptioncontrolflags: u32, basync: P2, piprogress: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Encrypt)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), bencrypt.into_param().abi(), dwencryptioncontrolflags, basync.into_param().abi(), piprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Encrypt)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), bencrypt.param().abi(), dwencryptioncontrolflags, basync.param().abi(), piprogress.param().abi()).ok() } pub unsafe fn FindItem(&self, pszpath: P0, dwqueryflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindItem)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), dwqueryflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindItemEx)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pincludefilefilter.into_param().abi(), pincludedirfilter.into_param().abi(), pexcludefilefilter.into_param().abi(), pexcludedirfilter.into_param().abi(), dwqueryflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RenameItem)(windows_core::Interface::as_raw(self), pszpathoriginal.into_param().abi(), pszpathnew.into_param().abi(), breplaceifexists.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RenameItem)(windows_core::Interface::as_raw(self), pszpathoriginal.param().abi(), pszpathnew.param().abi(), breplaceifexists.param().abi()).ok() } pub unsafe fn GetLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -305,17 +305,17 @@ impl IOfflineFilesCache2 { } pub unsafe fn ProcessAdminPinPolicy(&self, ppinprogress: P0, punpinprogress: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ProcessAdminPinPolicy)(windows_core::Interface::as_raw(self), ppinprogress.into_param().abi(), punpinprogress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ProcessAdminPinPolicy)(windows_core::Interface::as_raw(self), ppinprogress.param().abi(), punpinprogress.param().abi()).ok() } pub unsafe fn GetSettingObject(&self, pszsettingname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSettingObject)(windows_core::Interface::as_raw(self), pszsettingname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSettingObject)(windows_core::Interface::as_raw(self), pszsettingname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumSettingObjects(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -323,17 +323,17 @@ impl IOfflineFilesCache2 { } pub unsafe fn IsPathCacheable(&self, pszpath: P0, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IsPathCacheable)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pbcacheable, psharecachingmode).ok() + (windows_core::Interface::vtable(self).base__.IsPathCacheable)(windows_core::Interface::as_raw(self), pszpath.param().abi(), pbcacheable, psharecachingmode).ok() } pub unsafe fn RenameItemEx(&self, pszpathoriginal: P0, pszpathnew: P1, breplaceifexists: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameItemEx)(windows_core::Interface::as_raw(self), pszpathoriginal.into_param().abi(), pszpathnew.into_param().abi(), breplaceifexists.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenameItemEx)(windows_core::Interface::as_raw(self), pszpathoriginal.param().abi(), pszpathnew.param().abi(), breplaceifexists.param().abi()).ok() } } #[repr(C)] @@ -386,23 +386,23 @@ impl IOfflineFilesConnectionInfo { } pub unsafe fn SetConnectState(&self, hwndparent: P0, dwflags: u32, connectstate: OFFLINEFILES_CONNECT_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConnectState)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags, connectstate).ok() + (windows_core::Interface::vtable(self).SetConnectState)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwflags, connectstate).ok() } pub unsafe fn TransitionOnline(&self, hwndparent: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TransitionOnline)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).TransitionOnline)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwflags).ok() } pub unsafe fn TransitionOffline(&self, hwndparent: P0, dwflags: u32, bforceopenfilesclosed: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TransitionOffline)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags, bforceopenfilesclosed.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TransitionOffline)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwflags, bforceopenfilesclosed.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -485,10 +485,10 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesEvents, windows_core::IUnkn impl IOfflineFilesEvents { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.param().abi(), psznewpath.param().abi()).ok() } pub unsafe fn CacheIsFull(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CacheIsFull)(windows_core::Interface::as_raw(self)).ok() @@ -498,45 +498,45 @@ impl IOfflineFilesEvents { } pub unsafe fn Enabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn EncryptionChanged(&self, bwasencrypted: P0, bwaspartial: P1, bisencrypted: P2, bispartial: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.into_param().abi(), bwaspartial.into_param().abi(), bisencrypted.into_param().abi(), bispartial.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.param().abi(), bwaspartial.param().abi(), bisencrypted.param().abi(), bispartial.param().abi()).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), rsyncid).ok() } pub unsafe fn SyncFileResult(&self, rsyncid: *const windows_core::GUID, pszfile: P0, hrresult: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncFileResult)(windows_core::Interface::as_raw(self), rsyncid, pszfile.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncConflictRecAdded)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncConflictRecUpdated)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SyncConflictRecRemoved)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, 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), rsyncid, hrresult).ok() @@ -549,66 +549,66 @@ impl IOfflineFilesEvents { } pub unsafe fn ItemDisconnected(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemDisconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemReconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemNotAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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: P1, bmodifiedattributes: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemModified)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype, bmodifieddata.into_param().abi(), bmodifiedattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ItemModified)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype, bmodifieddata.param().abi(), bmodifiedattributes.param().abi()).ok() } pub unsafe fn ItemAddedToCache(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemAddedToCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemDeletedFromCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemRenamed)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi(), 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() @@ -651,10 +651,10 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesEvents2, windows_core::IUnk impl IOfflineFilesEvents2 { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.param().abi(), psznewpath.param().abi()).ok() } pub unsafe fn CacheIsFull(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CacheIsFull)(windows_core::Interface::as_raw(self)).ok() @@ -664,45 +664,45 @@ impl IOfflineFilesEvents2 { } pub unsafe fn Enabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn EncryptionChanged(&self, bwasencrypted: P0, bwaspartial: P1, bisencrypted: P2, bispartial: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.into_param().abi(), bwaspartial.into_param().abi(), bisencrypted.into_param().abi(), bispartial.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.param().abi(), bwaspartial.param().abi(), bisencrypted.param().abi(), bispartial.param().abi()).ok() } pub unsafe fn SyncBegin(&self, rsyncid: *const windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SyncBegin)(windows_core::Interface::as_raw(self), rsyncid).ok() } pub unsafe fn SyncFileResult(&self, rsyncid: *const windows_core::GUID, pszfile: P0, hrresult: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SyncFileResult)(windows_core::Interface::as_raw(self), rsyncid, pszfile.into_param().abi(), hrresult).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SyncConflictRecAdded)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SyncConflictRecUpdated)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SyncConflictRecRemoved)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SyncEnd)(windows_core::Interface::as_raw(self), rsyncid, hrresult).ok() @@ -715,66 +715,66 @@ impl IOfflineFilesEvents2 { } pub unsafe fn ItemDisconnected(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemDisconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemReconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemNotAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemModified(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: P1, bmodifiedattributes: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemModified)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype, bmodifieddata.into_param().abi(), bmodifiedattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ItemModified)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype, bmodifieddata.param().abi(), bmodifiedattributes.param().abi()).ok() } pub unsafe fn ItemAddedToCache(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemAddedToCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemDeletedFromCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ItemRenamed)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.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).base__.DataLost)(windows_core::Interface::as_raw(self)).ok() @@ -828,10 +828,10 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesEvents3, windows_core::IUnk impl IOfflineFilesEvents3 { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.param().abi(), psznewpath.param().abi()).ok() } pub unsafe fn CacheIsFull(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CacheIsFull)(windows_core::Interface::as_raw(self)).ok() @@ -841,45 +841,45 @@ impl IOfflineFilesEvents3 { } pub unsafe fn Enabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Enabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Enabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn EncryptionChanged(&self, bwasencrypted: P0, bwaspartial: P1, bisencrypted: P2, bispartial: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.into_param().abi(), bwaspartial.into_param().abi(), bisencrypted.into_param().abi(), bispartial.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.param().abi(), bwaspartial.param().abi(), bisencrypted.param().abi(), bispartial.param().abi()).ok() } pub unsafe fn SyncBegin(&self, rsyncid: *const windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SyncBegin)(windows_core::Interface::as_raw(self), rsyncid).ok() } pub unsafe fn SyncFileResult(&self, rsyncid: *const windows_core::GUID, pszfile: P0, hrresult: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SyncFileResult)(windows_core::Interface::as_raw(self), rsyncid, pszfile.into_param().abi(), hrresult).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SyncConflictRecAdded)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SyncConflictRecUpdated)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SyncConflictRecRemoved)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SyncEnd)(windows_core::Interface::as_raw(self), rsyncid, hrresult).ok() @@ -892,66 +892,66 @@ impl IOfflineFilesEvents3 { } pub unsafe fn ItemDisconnected(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemDisconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemReconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemNotAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemModified(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: P1, bmodifiedattributes: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemModified)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype, bmodifieddata.into_param().abi(), bmodifiedattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ItemModified)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype, bmodifieddata.param().abi(), bmodifiedattributes.param().abi()).ok() } pub unsafe fn ItemAddedToCache(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemAddedToCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemDeletedFromCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ItemRenamed)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.DataLost)(windows_core::Interface::as_raw(self)).ok() @@ -988,24 +988,24 @@ impl IOfflineFilesEvents3 { } pub unsafe fn TransparentCacheItemNotify(&self, pszpath: P0, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: P1, bmodifiedattributes: P2, pzsoldpath: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).TransparentCacheItemNotify)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), eventtype, itemtype, bmodifieddata.into_param().abi(), bmodifiedattributes.into_param().abi(), pzsoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TransparentCacheItemNotify)(windows_core::Interface::as_raw(self), pszpath.param().abi(), eventtype, itemtype, bmodifieddata.param().abi(), bmodifiedattributes.param().abi(), pzsoldpath.param().abi()).ok() } pub unsafe fn PrefetchFileBegin(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrefetchFileBegin)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrefetchFileBegin)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn PrefetchFileEnd(&self, pszpath: P0, hrresult: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrefetchFileEnd)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), hrresult).ok() + (windows_core::Interface::vtable(self).PrefetchFileEnd)(windows_core::Interface::as_raw(self), pszpath.param().abi(), hrresult).ok() } } #[repr(C)] @@ -1020,10 +1020,10 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesEvents4, windows_core::IUnk impl IOfflineFilesEvents4 { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CacheMoved)(windows_core::Interface::as_raw(self), pszoldpath.param().abi(), psznewpath.param().abi()).ok() } pub unsafe fn CacheIsFull(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.CacheIsFull)(windows_core::Interface::as_raw(self)).ok() @@ -1033,45 +1033,45 @@ impl IOfflineFilesEvents4 { } pub unsafe fn Enabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Enabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Enabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn EncryptionChanged(&self, bwasencrypted: P0, bwaspartial: P1, bisencrypted: P2, bispartial: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.into_param().abi(), bwaspartial.into_param().abi(), bisencrypted.into_param().abi(), bispartial.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.EncryptionChanged)(windows_core::Interface::as_raw(self), bwasencrypted.param().abi(), bwaspartial.param().abi(), bisencrypted.param().abi(), bispartial.param().abi()).ok() } pub unsafe fn SyncBegin(&self, rsyncid: *const windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.SyncBegin)(windows_core::Interface::as_raw(self), rsyncid).ok() } pub unsafe fn SyncFileResult(&self, rsyncid: *const windows_core::GUID, pszfile: P0, hrresult: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SyncFileResult)(windows_core::Interface::as_raw(self), rsyncid, pszfile.into_param().abi(), hrresult).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SyncConflictRecAdded)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SyncConflictRecUpdated)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SyncConflictRecRemoved)(windows_core::Interface::as_raw(self), pszconflictpath.into_param().abi(), pftconflictdatetime, conflictsyncstate).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.SyncEnd)(windows_core::Interface::as_raw(self), rsyncid, hrresult).ok() @@ -1084,66 +1084,66 @@ impl IOfflineFilesEvents4 { } pub unsafe fn ItemDisconnected(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemDisconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemReconnected)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemNotAvailableOffline)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ItemNotPinned)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype).ok() } pub unsafe fn ItemModified(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: P1, bmodifiedattributes: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemModified)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype, bmodifieddata.into_param().abi(), bmodifiedattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ItemModified)(windows_core::Interface::as_raw(self), pszpath.param().abi(), itemtype, bmodifieddata.param().abi(), bmodifiedattributes.param().abi()).ok() } pub unsafe fn ItemAddedToCache(&self, pszpath: P0, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemAddedToCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemDeletedFromCache)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ItemRenamed)(windows_core::Interface::as_raw(self), pszoldpath.into_param().abi(), psznewpath.into_param().abi(), itemtype).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.DataLost)(windows_core::Interface::as_raw(self)).ok() @@ -1180,24 +1180,24 @@ impl IOfflineFilesEvents4 { } pub unsafe fn TransparentCacheItemNotify(&self, pszpath: P0, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: P1, bmodifiedattributes: P2, pzsoldpath: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TransparentCacheItemNotify)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), eventtype, itemtype, bmodifieddata.into_param().abi(), bmodifiedattributes.into_param().abi(), pzsoldpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.TransparentCacheItemNotify)(windows_core::Interface::as_raw(self), pszpath.param().abi(), eventtype, itemtype, bmodifieddata.param().abi(), bmodifiedattributes.param().abi(), pzsoldpath.param().abi()).ok() } pub unsafe fn PrefetchFileBegin(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PrefetchFileBegin)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PrefetchFileBegin)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn PrefetchFileEnd(&self, pszpath: P0, hrresult: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PrefetchFileEnd)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), hrresult).ok() + (windows_core::Interface::vtable(self).base__.PrefetchFileEnd)(windows_core::Interface::as_raw(self), pszpath.param().abi(), hrresult).ok() } pub unsafe fn PrefetchCloseHandleBegin(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PrefetchCloseHandleBegin)(windows_core::Interface::as_raw(self)).ok() @@ -1345,13 +1345,13 @@ impl IOfflineFilesItemContainer { } pub unsafe fn EnumItemsEx(&self, pincludefilefilter: P0, pincludedirfilter: P1, pexcludefilefilter: P2, pexcludedirfilter: P3, dwenumflags: u32, dwqueryflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumItemsEx)(windows_core::Interface::as_raw(self), pincludefilefilter.into_param().abi(), pincludedirfilter.into_param().abi(), pexcludefilefilter.into_param().abi(), pexcludedirfilter.into_param().abi(), dwenumflags, 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)] @@ -1601,17 +1601,17 @@ impl IOfflineFilesSimpleProgress { } pub unsafe fn ItemBegin(&self, pszfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ItemBegin)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ItemBegin)(windows_core::Interface::as_raw(self), pszfile.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ItemResult(&self, pszfile: P0, hrresult: windows_core::HRESULT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ItemResult)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), 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)] @@ -1625,9 +1625,9 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesSuspend, windows_core::IUnk impl IOfflineFilesSuspend { pub unsafe fn SuspendRoot(&self, bsuspend: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SuspendRoot)(windows_core::Interface::as_raw(self), bsuspend.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SuspendRoot)(windows_core::Interface::as_raw(self), bsuspend.param().abi()).ok() } } #[repr(C)] @@ -1652,9 +1652,9 @@ windows_core::imp::interface_hierarchy!(IOfflineFilesSyncConflictHandler, window impl IOfflineFilesSyncConflictHandler { pub unsafe fn ResolveConflict(&self, pszpath: P0, fstateknown: u32, state: OFFLINEFILES_SYNC_STATE, fchangedetails: u32, pconflictresolution: *mut OFFLINEFILES_SYNC_CONFLICT_RESOLVE, ppsznewname: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveConflict)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), fstateknown, state, fchangedetails, pconflictresolution, ppsznewname).ok() + (windows_core::Interface::vtable(self).ResolveConflict)(windows_core::Interface::as_raw(self), pszpath.param().abi(), fstateknown, state, fchangedetails, pconflictresolution, ppsznewname).ok() } } #[repr(C)] @@ -1750,18 +1750,18 @@ impl IOfflineFilesSyncProgress { } pub unsafe fn SyncItemBegin(&self, pszfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SyncItemBegin)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SyncItemBegin)(windows_core::Interface::as_raw(self), pszfile.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SyncItemResult(&self, pszfile: P0, hrresult: windows_core::HRESULT, perrorinfo: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SyncItemResult)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), hrresult, perrorinfo.into_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/Packaging/Appx/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/mod.rs index 55e992a943..65ab75aebc 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 @@ -1,92 +1,92 @@ #[inline] pub unsafe fn ActivatePackageVirtualizationContext(context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ActivatePackageVirtualizationContext(context : PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE, cookie : *mut usize) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - ActivatePackageVirtualizationContext(context.into_param().abi(), &mut result__).map(|| result__) + ActivatePackageVirtualizationContext(context.param().abi(), &mut result__).map(|| 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), rank, options, packagedependencycontext, core::mem::transmute(packagefullname.unwrap_or(std::ptr::null_mut()))).ok() + AddPackageDependency(packagedependencyid.param().abi(), rank, options, packagedependencycontext, core::mem::transmute(packagefullname.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AppPolicyGetClrCompat(processtoken: P0, policy: *mut AppPolicyClrCompat) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetClrCompat(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyClrCompat) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetClrCompat(processtoken.into_param().abi(), policy) + AppPolicyGetClrCompat(processtoken.param().abi(), policy) } #[inline] pub unsafe fn AppPolicyGetCreateFileAccess(processtoken: P0, policy: *mut AppPolicyCreateFileAccess) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetCreateFileAccess(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyCreateFileAccess) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetCreateFileAccess(processtoken.into_param().abi(), policy) + AppPolicyGetCreateFileAccess(processtoken.param().abi(), policy) } #[inline] pub unsafe fn AppPolicyGetLifecycleManagement(processtoken: P0, policy: *mut AppPolicyLifecycleManagement) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetLifecycleManagement(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyLifecycleManagement) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetLifecycleManagement(processtoken.into_param().abi(), policy) + AppPolicyGetLifecycleManagement(processtoken.param().abi(), policy) } #[inline] pub unsafe fn AppPolicyGetMediaFoundationCodecLoading(processtoken: P0, policy: *mut AppPolicyMediaFoundationCodecLoading) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetMediaFoundationCodecLoading(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyMediaFoundationCodecLoading) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetMediaFoundationCodecLoading(processtoken.into_param().abi(), policy) + AppPolicyGetMediaFoundationCodecLoading(processtoken.param().abi(), policy) } #[inline] pub unsafe fn AppPolicyGetProcessTerminationMethod(processtoken: P0, policy: *mut AppPolicyProcessTerminationMethod) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetProcessTerminationMethod(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyProcessTerminationMethod) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetProcessTerminationMethod(processtoken.into_param().abi(), policy) + AppPolicyGetProcessTerminationMethod(processtoken.param().abi(), policy) } #[inline] pub unsafe fn AppPolicyGetShowDeveloperDiagnostic(processtoken: P0, policy: *mut AppPolicyShowDeveloperDiagnostic) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetShowDeveloperDiagnostic(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyShowDeveloperDiagnostic) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetShowDeveloperDiagnostic(processtoken.into_param().abi(), policy) + AppPolicyGetShowDeveloperDiagnostic(processtoken.param().abi(), policy) } #[inline] pub unsafe fn AppPolicyGetThreadInitializationType(processtoken: P0, policy: *mut AppPolicyThreadInitializationType) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetThreadInitializationType(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyThreadInitializationType) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetThreadInitializationType(processtoken.into_param().abi(), policy) + AppPolicyGetThreadInitializationType(processtoken.param().abi(), policy) } #[inline] pub unsafe fn AppPolicyGetWindowingModel(processtoken: P0, policy: *mut AppPolicyWindowingModel) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AppPolicyGetWindowingModel(processtoken : super::super::super::Foundation:: HANDLE, policy : *mut AppPolicyWindowingModel) -> super::super::super::Foundation:: WIN32_ERROR); - AppPolicyGetWindowingModel(processtoken.into_param().abi(), policy) + AppPolicyGetWindowingModel(processtoken.param().abi(), policy) } #[inline] pub unsafe fn CheckIsMSIXPackage(packagefullname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CheckIsMSIXPackage(packagefullname : windows_core::PCWSTR, ismsixpackage : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CheckIsMSIXPackage(packagefullname.into_param().abi(), &mut result__).map(|| result__) + CheckIsMSIXPackage(packagefullname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn ClosePackageInfo(packageinforeference: *const _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation::WIN32_ERROR { @@ -96,11 +96,11 @@ pub unsafe fn ClosePackageInfo(packageinforeference: *const _PACKAGE_INFO_REFERE #[inline] pub unsafe fn CreatePackageVirtualizationContext(packagefamilyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreatePackageVirtualizationContext(packagefamilyname : windows_core::PCWSTR, context : *mut PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreatePackageVirtualizationContext(packagefamilyname.into_param().abi(), &mut result__).map(|| result__) + CreatePackageVirtualizationContext(packagefamilyname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn DeactivatePackageVirtualizationContext(cookie: usize) { @@ -110,52 +110,52 @@ pub unsafe fn DeactivatePackageVirtualizationContext(cookie: usize) { #[inline] pub unsafe fn DeletePackageDependency(packagedependencyid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernelbase.dll" "system" fn DeletePackageDependency(packagedependencyid : windows_core::PCWSTR) -> windows_core::HRESULT); - DeletePackageDependency(packagedependencyid.into_param().abi()).ok() + DeletePackageDependency(packagedependencyid.param().abi()).ok() } #[inline] pub unsafe fn DuplicatePackageVirtualizationContext(sourcecontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - DuplicatePackageVirtualizationContext(sourcecontext.into_param().abi(), &mut result__).map(|| result__) + DuplicatePackageVirtualizationContext(sourcecontext.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn FindPackagesByPackageFamily(packagefamilyname: P0, packagefilters: u32, count: *mut u32, packagefullnames: Option<*mut windows_core::PWSTR>, bufferlength: *mut u32, buffer: windows_core::PWSTR, packageproperties: Option<*mut u32>) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), packagefilters, count, core::mem::transmute(packagefullnames.unwrap_or(std::ptr::null_mut())), bufferlength, core::mem::transmute(buffer), core::mem::transmute(packageproperties.unwrap_or(std::ptr::null_mut()))) + FindPackagesByPackageFamily(packagefamilyname.param().abi(), packagefilters, count, core::mem::transmute(packagefullnames.unwrap_or(std::ptr::null_mut())), bufferlength, core::mem::transmute(buffer), core::mem::transmute(packageproperties.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn FormatApplicationUserModelId(packagefamilyname: P0, packagerelativeapplicationid: P1, applicationusermodelidlength: *mut u32, applicationusermodelid: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FormatApplicationUserModelId(packagefamilyname : windows_core::PCWSTR, packagerelativeapplicationid : windows_core::PCWSTR, applicationusermodelidlength : *mut u32, applicationusermodelid : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - FormatApplicationUserModelId(packagefamilyname.into_param().abi(), packagerelativeapplicationid.into_param().abi(), applicationusermodelidlength, core::mem::transmute(applicationusermodelid)) + FormatApplicationUserModelId(packagefamilyname.param().abi(), packagerelativeapplicationid.param().abi(), applicationusermodelidlength, core::mem::transmute(applicationusermodelid)) } #[inline] pub unsafe fn GetApplicationUserModelId(hprocess: P0, applicationusermodelidlength: *mut u32, applicationusermodelid: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), applicationusermodelidlength, core::mem::transmute(applicationusermodelid)) + GetApplicationUserModelId(hprocess.param().abi(), applicationusermodelidlength, core::mem::transmute(applicationusermodelid)) } #[inline] pub unsafe fn GetApplicationUserModelIdFromToken(token: P0, applicationusermodelidlength: *mut u32, applicationusermodelid: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(token.into_param().abi(), applicationusermodelidlength, core::mem::transmute(applicationusermodelid)) + GetApplicationUserModelIdFromToken(token.param().abi(), applicationusermodelidlength, core::mem::transmute(applicationusermodelid)) } #[inline] pub unsafe fn GetCurrentApplicationUserModelId(applicationusermodelidlength: *mut u32, applicationusermodelid: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR { @@ -210,11 +210,11 @@ pub unsafe fn GetCurrentPackageVirtualizationContext() -> PACKAGE_VIRTUALIZATION #[inline] pub unsafe fn GetIdForPackageDependencyContext(packagedependencycontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernelbase.dll" "system" fn GetIdForPackageDependencyContext(packagedependencycontext : PACKAGEDEPENDENCY_CONTEXT, packagedependencyid : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetIdForPackageDependencyContext(packagedependencycontext.into_param().abi(), &mut result__).map(|| result__) + GetIdForPackageDependencyContext(packagedependencycontext.param().abi(), &mut result__).map(|| 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 { @@ -224,34 +224,34 @@ pub unsafe fn GetPackageApplicationIds(packageinforeference: *const _PACKAGE_INF #[inline] pub unsafe fn GetPackageFamilyName(hprocess: P0, packagefamilynamelength: *mut u32, packagefamilyname: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname)) + GetPackageFamilyName(hprocess.param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname)) } #[inline] pub unsafe fn GetPackageFamilyNameFromToken(token: P0, packagefamilynamelength: *mut u32, packagefamilyname: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(token.into_param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname)) + GetPackageFamilyNameFromToken(token.param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname)) } #[inline] pub unsafe fn GetPackageFullName(hprocess: P0, packagefullnamelength: *mut u32, packagefullname: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), packagefullnamelength, core::mem::transmute(packagefullname)) + GetPackageFullName(hprocess.param().abi(), packagefullnamelength, core::mem::transmute(packagefullname)) } #[inline] pub unsafe fn GetPackageFullNameFromToken(token: P0, packagefullnamelength: *mut u32, packagefullname: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(token.into_param().abi(), packagefullnamelength, core::mem::transmute(packagefullname)) + GetPackageFullNameFromToken(token.param().abi(), packagefullnamelength, core::mem::transmute(packagefullname)) } #[inline] pub unsafe fn GetPackageGraphRevisionId() -> u32 { @@ -261,10 +261,10 @@ pub unsafe fn GetPackageGraphRevisionId() -> u32 { #[inline] pub unsafe fn GetPackageId(hprocess: P0, bufferlength: *mut u32, buffer: Option<*mut u8>) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), bufferlength, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut()))) + GetPackageId(hprocess.param().abi(), bufferlength, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut()))) } #[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 { @@ -284,92 +284,92 @@ pub unsafe fn GetPackagePath(packageid: *const PACKAGE_ID, reserved: u32, pathle #[inline] pub unsafe fn GetPackagePathByFullName(packagefullname: P0, pathlength: *mut u32, path: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPackagePathByFullName(packagefullname : windows_core::PCWSTR, pathlength : *mut u32, path : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackagePathByFullName(packagefullname.into_param().abi(), pathlength, core::mem::transmute(path)) + GetPackagePathByFullName(packagefullname.param().abi(), pathlength, core::mem::transmute(path)) } #[inline] pub unsafe fn GetPackagePathByFullName2(packagefullname: P0, packagepathtype: PackagePathType, pathlength: *mut u32, path: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), packagepathtype, pathlength, core::mem::transmute(path)) + GetPackagePathByFullName2(packagefullname.param().abi(), packagepathtype, pathlength, core::mem::transmute(path)) } #[inline] pub unsafe fn GetPackagesByPackageFamily(packagefamilyname: P0, count: *mut u32, packagefullnames: Option<*mut windows_core::PWSTR>, bufferlength: *mut u32, buffer: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPackagesByPackageFamily(packagefamilyname : windows_core::PCWSTR, count : *mut u32, packagefullnames : *mut windows_core::PWSTR, bufferlength : *mut u32, buffer : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetPackagesByPackageFamily(packagefamilyname.into_param().abi(), count, core::mem::transmute(packagefullnames.unwrap_or(std::ptr::null_mut())), bufferlength, core::mem::transmute(buffer)) + GetPackagesByPackageFamily(packagefamilyname.param().abi(), count, core::mem::transmute(packagefullnames.unwrap_or(std::ptr::null_mut())), bufferlength, core::mem::transmute(buffer)) } #[inline] pub unsafe fn GetProcessesInVirtualizationContext(packagefamilyname: P0, count: *mut u32, processes: *mut *mut super::super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessesInVirtualizationContext(packagefamilyname : windows_core::PCWSTR, count : *mut u32, processes : *mut *mut super::super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - GetProcessesInVirtualizationContext(packagefamilyname.into_param().abi(), count, processes).ok() + GetProcessesInVirtualizationContext(packagefamilyname.param().abi(), count, processes).ok() } #[inline] pub unsafe fn GetResolvedPackageFullNameForPackageDependency(packagedependencyid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernelbase.dll" "system" fn GetResolvedPackageFullNameForPackageDependency(packagedependencyid : windows_core::PCWSTR, packagefullname : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetResolvedPackageFullNameForPackageDependency(packagedependencyid.into_param().abi(), &mut result__).map(|| result__) + GetResolvedPackageFullNameForPackageDependency(packagedependencyid.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetStagedPackageOrigin(packagefullname: P0, origin: *mut PackageOrigin) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn GetStagedPackageOrigin(packagefullname : windows_core::PCWSTR, origin : *mut PackageOrigin) -> super::super::super::Foundation:: WIN32_ERROR); - GetStagedPackageOrigin(packagefullname.into_param().abi(), origin) + GetStagedPackageOrigin(packagefullname.param().abi(), origin) } #[inline] pub unsafe fn GetStagedPackagePathByFullName(packagefullname: P0, pathlength: *mut u32, path: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetStagedPackagePathByFullName(packagefullname : windows_core::PCWSTR, pathlength : *mut u32, path : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - GetStagedPackagePathByFullName(packagefullname.into_param().abi(), pathlength, core::mem::transmute(path)) + GetStagedPackagePathByFullName(packagefullname.param().abi(), pathlength, core::mem::transmute(path)) } #[inline] pub unsafe fn GetStagedPackagePathByFullName2(packagefullname: P0, packagepathtype: PackagePathType, pathlength: *mut u32, path: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), packagepathtype, pathlength, core::mem::transmute(path)) + GetStagedPackagePathByFullName2(packagefullname.param().abi(), packagepathtype, pathlength, core::mem::transmute(path)) } #[inline] pub unsafe fn OpenPackageInfoByFullName(packagefullname: P0, reserved: u32, packageinforeference: *mut *mut _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OpenPackageInfoByFullName(packagefullname : windows_core::PCWSTR, reserved : u32, packageinforeference : *mut *mut _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation:: WIN32_ERROR); - OpenPackageInfoByFullName(packagefullname.into_param().abi(), reserved, packageinforeference) + OpenPackageInfoByFullName(packagefullname.param().abi(), reserved, packageinforeference) } #[inline] pub unsafe fn OpenPackageInfoByFullNameForUser(usersid: P0, packagefullname: P1, reserved: u32, packageinforeference: *mut *mut _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn OpenPackageInfoByFullNameForUser(usersid : super::super::super::Foundation:: PSID, packagefullname : windows_core::PCWSTR, reserved : u32, packageinforeference : *mut *mut _PACKAGE_INFO_REFERENCE) -> super::super::super::Foundation:: WIN32_ERROR); - OpenPackageInfoByFullNameForUser(usersid.into_param().abi(), packagefullname.into_param().abi(), reserved, packageinforeference) + OpenPackageInfoByFullNameForUser(usersid.param().abi(), packagefullname.param().abi(), reserved, packageinforeference) } #[inline] pub unsafe fn PackageFamilyNameFromFullName(packagefullname: P0, packagefamilynamelength: *mut u32, packagefamilyname: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PackageFamilyNameFromFullName(packagefullname : windows_core::PCWSTR, packagefamilynamelength : *mut u32, packagefamilyname : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - PackageFamilyNameFromFullName(packagefullname.into_param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname)) + PackageFamilyNameFromFullName(packagefullname.param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname)) } #[inline] pub unsafe fn PackageFamilyNameFromId(packageid: *const PACKAGE_ID, packagefamilynamelength: *mut u32, packagefamilyname: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR { @@ -384,77 +384,77 @@ pub unsafe fn PackageFullNameFromId(packageid: *const PACKAGE_ID, packagefullnam #[inline] pub unsafe fn PackageIdFromFullName(packagefullname: P0, flags: u32, bufferlength: *mut u32, buffer: Option<*mut u8>) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags, bufferlength, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut()))) + PackageIdFromFullName(packagefullname.param().abi(), flags, bufferlength, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn PackageNameAndPublisherIdFromFamilyName(packagefamilyname: P0, packagenamelength: *mut u32, packagename: windows_core::PWSTR, packagepublisheridlength: *mut u32, packagepublisherid: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PackageNameAndPublisherIdFromFamilyName(packagefamilyname : windows_core::PCWSTR, packagenamelength : *mut u32, packagename : windows_core::PWSTR, packagepublisheridlength : *mut u32, packagepublisherid : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - PackageNameAndPublisherIdFromFamilyName(packagefamilyname.into_param().abi(), packagenamelength, core::mem::transmute(packagename), packagepublisheridlength, core::mem::transmute(packagepublisherid)) + PackageNameAndPublisherIdFromFamilyName(packagefamilyname.param().abi(), packagenamelength, core::mem::transmute(packagename), packagepublisheridlength, core::mem::transmute(packagepublisherid)) } #[inline] pub unsafe fn ParseApplicationUserModelId(applicationusermodelid: P0, packagefamilynamelength: *mut u32, packagefamilyname: windows_core::PWSTR, packagerelativeapplicationidlength: *mut u32, packagerelativeapplicationid: windows_core::PWSTR) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ParseApplicationUserModelId(applicationusermodelid : windows_core::PCWSTR, packagefamilynamelength : *mut u32, packagefamilyname : windows_core::PWSTR, packagerelativeapplicationidlength : *mut u32, packagerelativeapplicationid : windows_core::PWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - ParseApplicationUserModelId(applicationusermodelid.into_param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname), packagerelativeapplicationidlength, core::mem::transmute(packagerelativeapplicationid)) + ParseApplicationUserModelId(applicationusermodelid.param().abi(), packagefamilynamelength, core::mem::transmute(packagefamilyname), packagerelativeapplicationidlength, core::mem::transmute(packagerelativeapplicationid)) } #[inline] pub unsafe fn ReleasePackageVirtualizationContext(context: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReleasePackageVirtualizationContext(context : PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE)); - ReleasePackageVirtualizationContext(context.into_param().abi()) + ReleasePackageVirtualizationContext(context.param().abi()) } #[inline] pub unsafe fn RemovePackageDependency(packagedependencycontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernelbase.dll" "system" fn RemovePackageDependency(packagedependencycontext : PACKAGEDEPENDENCY_CONTEXT) -> windows_core::HRESULT); - RemovePackageDependency(packagedependencycontext.into_param().abi()).ok() + RemovePackageDependency(packagedependencycontext.param().abi()).ok() } #[inline] pub unsafe fn TryCreatePackageDependency(user: P0, packagefamilyname: P1, minversion: PACKAGE_VERSION, packagedependencyprocessorarchitectures: PackageDependencyProcessorArchitectures, lifetimekind: PackageDependencyLifetimeKind, lifetimeartifact: P2, options: CreatePackageDependencyOptions) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernelbase.dll" "system" fn TryCreatePackageDependency(user : super::super::super::Foundation:: 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__ = std::mem::zeroed(); - TryCreatePackageDependency(user.into_param().abi(), packagefamilyname.into_param().abi(), core::mem::transmute(minversion), packagedependencyprocessorarchitectures, lifetimekind, lifetimeartifact.into_param().abi(), options, &mut result__).map(|| result__) + TryCreatePackageDependency(user.param().abi(), packagefamilyname.param().abi(), core::mem::transmute(minversion), packagedependencyprocessorarchitectures, lifetimekind, lifetimeartifact.param().abi(), options, &mut result__).map(|| result__) } #[inline] pub unsafe fn VerifyApplicationUserModelId(applicationusermodelid: P0) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn VerifyApplicationUserModelId(applicationusermodelid : windows_core::PCWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - VerifyApplicationUserModelId(applicationusermodelid.into_param().abi()) + VerifyApplicationUserModelId(applicationusermodelid.param().abi()) } #[inline] pub unsafe fn VerifyPackageFamilyName(packagefamilyname: P0) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn VerifyPackageFamilyName(packagefamilyname : windows_core::PCWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - VerifyPackageFamilyName(packagefamilyname.into_param().abi()) + VerifyPackageFamilyName(packagefamilyname.param().abi()) } #[inline] pub unsafe fn VerifyPackageFullName(packagefullname: P0) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn VerifyPackageFullName(packagefullname : windows_core::PCWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - VerifyPackageFullName(packagefullname.into_param().abi()) + VerifyPackageFullName(packagefullname.param().abi()) } #[inline] pub unsafe fn VerifyPackageId(packageid: *const PACKAGE_ID) -> super::super::super::Foundation::WIN32_ERROR { @@ -464,10 +464,10 @@ pub unsafe fn VerifyPackageId(packageid: *const PACKAGE_ID) -> super::super::sup #[inline] pub unsafe fn VerifyPackageRelativeApplicationId(packagerelativeapplicationid: P0) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-appmodel-runtime-l1-1-1.dll" "system" fn VerifyPackageRelativeApplicationId(packagerelativeapplicationid : windows_core::PCWSTR) -> super::super::super::Foundation:: WIN32_ERROR); - VerifyPackageRelativeApplicationId(packagerelativeapplicationid.into_param().abi()) + VerifyPackageRelativeApplicationId(packagerelativeapplicationid.param().abi()) } windows_core::imp::define_interface!(IAppxAppInstallerReader, IAppxAppInstallerReader_Vtbl, 0xf35bc38c_1d2f_43db_a1f4_586430d1fed2); windows_core::imp::interface_hierarchy!(IAppxAppInstallerReader, windows_core::IUnknown); @@ -549,10 +549,10 @@ impl IAppxBlockMapFile { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ValidateFileHash(&self, filestream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ValidateFileHash)(windows_core::Interface::as_raw(self), filestream.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ValidateFileHash)(windows_core::Interface::as_raw(self), filestream.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -595,10 +595,10 @@ windows_core::imp::interface_hierarchy!(IAppxBlockMapReader, windows_core::IUnkn impl IAppxBlockMapReader { pub unsafe fn GetFile(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFile)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -635,26 +635,26 @@ impl IAppxBundleFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateBundleWriter(&self, outputstream: P0, bundleversion: u64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBundleWriter)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBundleReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBundleReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateBundleManifestReader(&self, inputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBundleManifestReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBundleManifestReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -679,11 +679,11 @@ impl IAppxBundleFactory2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateBundleReader2(&self, inputstream: P0, expecteddigest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBundleReader2)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), expecteddigest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBundleReader2)(windows_core::Interface::as_raw(self), inputstream.param().abi(), expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -911,10 +911,10 @@ impl IAppxBundleReader { } pub unsafe fn GetPayloadPackage(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPayloadPackage)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPayloadPackage)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -932,10 +932,10 @@ impl IAppxBundleWriter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadPackage(&self, filename: P0, packagestream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadPackage)(windows_core::Interface::as_raw(self), filename.into_param().abi(), packagestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPayloadPackage)(windows_core::Interface::as_raw(self), filename.param().abi(), packagestream.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -956,10 +956,10 @@ impl IAppxBundleWriter2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddExternalPackageReference(&self, filename: P0, inputstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.param().abi(), inputstream.param().abi()).ok() } } #[repr(C)] @@ -976,16 +976,16 @@ impl IAppxBundleWriter3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPackageReference(&self, filename: P0, inputstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPackageReference)(windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPackageReference)(windows_core::Interface::as_raw(self), filename.param().abi(), inputstream.param().abi()).ok() } pub unsafe fn Close(&self, hashmethodstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), hashmethodstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), hashmethodstring.param().abi()).ok() } } #[repr(C)] @@ -1003,29 +1003,29 @@ impl IAppxBundleWriter4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadPackage(&self, filename: P0, packagestream: P1, isdefaultapplicablepackage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadPackage)(windows_core::Interface::as_raw(self), filename.into_param().abi(), packagestream.into_param().abi(), isdefaultapplicablepackage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPayloadPackage)(windows_core::Interface::as_raw(self), filename.param().abi(), packagestream.param().abi(), isdefaultapplicablepackage.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPackageReference(&self, filename: P0, inputstream: P1, isdefaultapplicablepackage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPackageReference)(windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi(), isdefaultapplicablepackage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPackageReference)(windows_core::Interface::as_raw(self), filename.param().abi(), inputstream.param().abi(), isdefaultapplicablepackage.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddExternalPackageReference(&self, filename: P0, inputstream: P1, isdefaultapplicablepackage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi(), isdefaultapplicablepackage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.param().abi(), inputstream.param().abi(), isdefaultapplicablepackage.param().abi()).ok() } } #[repr(C)] @@ -1108,15 +1108,15 @@ windows_core::imp::interface_hierarchy!(IAppxContentGroupMapWriter, windows_core impl IAppxContentGroupMapWriter { pub unsafe fn AddAutomaticGroup(&self, groupname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomaticGroup)(windows_core::Interface::as_raw(self), groupname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAutomaticGroup)(windows_core::Interface::as_raw(self), groupname.param().abi()).ok() } pub unsafe fn AddAutomaticFile(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomaticFile)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAutomaticFile)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -1171,10 +1171,10 @@ impl IAppxEncryptedBundleWriter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadPackageEncrypted(&self, filename: P0, packagestream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadPackageEncrypted)(windows_core::Interface::as_raw(self), filename.into_param().abi(), packagestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPayloadPackageEncrypted)(windows_core::Interface::as_raw(self), filename.param().abi(), packagestream.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -1195,10 +1195,10 @@ impl IAppxEncryptedBundleWriter2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddExternalPackageReference(&self, filename: P0, inputstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.param().abi(), inputstream.param().abi()).ok() } } #[repr(C)] @@ -1215,20 +1215,20 @@ impl IAppxEncryptedBundleWriter3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadPackageEncrypted(&self, filename: P0, packagestream: P1, isdefaultapplicablepackage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadPackageEncrypted)(windows_core::Interface::as_raw(self), filename.into_param().abi(), packagestream.into_param().abi(), isdefaultapplicablepackage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPayloadPackageEncrypted)(windows_core::Interface::as_raw(self), filename.param().abi(), packagestream.param().abi(), isdefaultapplicablepackage.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddExternalPackageReference(&self, filename: P0, inputstream: P1, isdefaultapplicablepackage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi(), isdefaultapplicablepackage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddExternalPackageReference)(windows_core::Interface::as_raw(self), filename.param().abi(), inputstream.param().abi(), isdefaultapplicablepackage.param().abi()).ok() } } #[repr(C)] @@ -1249,10 +1249,10 @@ impl IAppxEncryptedPackageWriter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadFileEncrypted(&self, filename: P0, compressionoption: APPX_COMPRESSION_OPTION, inputstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadFileEncrypted)(windows_core::Interface::as_raw(self), filename.into_param().abi(), compressionoption, inputstream.into_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() @@ -1289,67 +1289,67 @@ impl IAppxEncryptionFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptPackage(&self, inputstream: P0, outputstream: P1, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), outputstream.into_param().abi(), settings, keyinfo, exemptedfiles).ok() + (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptPackage)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), outputstream.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), manifeststream.into_param().abi(), settings, keyinfo, 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(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), outputstream.into_param().abi(), settings, keyinfo, exemptedfiles).ok() + (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DecryptBundle)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), outputstream.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleWriter)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), bundleversion, settings, keyinfo, 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, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), 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)] @@ -1394,12 +1394,12 @@ impl IAppxEncryptionFactory2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedPackageWriter(&self, outputstream: P0, manifeststream: P1, contentgroupmapstream: P2, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), manifeststream.into_param().abi(), contentgroupmapstream.into_param().abi(), settings, keyinfo, 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(), settings, keyinfo, exemptedfiles, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1416,36 +1416,36 @@ impl IAppxEncryptionFactory3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptPackage(&self, inputstream: P0, outputstream: P1, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), outputstream.into_param().abi(), settings, keyinfo, exemptedfiles).ok() + (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageWriter)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), manifeststream.into_param().abi(), contentgroupmapstream.into_param().abi(), settings, keyinfo, 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(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), outputstream.into_param().abi(), settings, keyinfo, exemptedfiles).ok() + (windows_core::Interface::vtable(self).EncryptBundle)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleWriter)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), bundleversion, settings, keyinfo, 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, settings, keyinfo, exemptedfiles, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1474,10 +1474,10 @@ impl IAppxEncryptionFactory4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncryptPackage(&self, inputstream: P0, outputstream: P1, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, memorylimit: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), outputstream.into_param().abi(), settings, keyinfo, exemptedfiles, memorylimit).ok() + (windows_core::Interface::vtable(self).EncryptPackage)(windows_core::Interface::as_raw(self), inputstream.param().abi(), outputstream.param().abi(), settings, keyinfo, exemptedfiles, memorylimit).ok() } } #[repr(C)] @@ -1494,20 +1494,20 @@ impl IAppxEncryptionFactory5 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateEncryptedPackageReader2(&self, inputstream: P0, keyinfo: *const APPX_KEY_INFO, expecteddigest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedPackageReader2)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), keyinfo, expecteddigest.into_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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEncryptedBundleReader2)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), keyinfo, expecteddigest.into_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)] @@ -1528,43 +1528,43 @@ impl IAppxFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePackageWriter(&self, outputstream: P0, settings: *const APPX_PACKAGE_SETTINGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriter)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), settings, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageWriter)(windows_core::Interface::as_raw(self), outputstream.param().abi(), settings, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePackageReader(&self, inputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateManifestReader(&self, inputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateManifestReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateManifestReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateBlockMapReader(&self, inputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBlockMapReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBlockMapReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateValidatedBlockMapReader(&self, blockmapstream: P0, signaturefilename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateValidatedBlockMapReader)(windows_core::Interface::as_raw(self), blockmapstream.into_param().abi(), signaturefilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateValidatedBlockMapReader)(windows_core::Interface::as_raw(self), blockmapstream.param().abi(), signaturefilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1597,26 +1597,26 @@ impl IAppxFactory2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateContentGroupMapReader(&self, inputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateContentGroupMapReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateContentGroupMapReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSourceContentGroupMapReader(&self, inputstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSourceContentGroupMapReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSourceContentGroupMapReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateContentGroupMapWriter(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateContentGroupMapWriter)(windows_core::Interface::as_raw(self), stream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateContentGroupMapWriter)(windows_core::Interface::as_raw(self), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1641,29 +1641,29 @@ impl IAppxFactory3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePackageReader2(&self, inputstream: P0, expecteddigest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageReader2)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), expecteddigest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageReader2)(windows_core::Interface::as_raw(self), inputstream.param().abi(), expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateManifestReader2(&self, inputstream: P0, expecteddigest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateManifestReader2)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), expecteddigest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateManifestReader2)(windows_core::Interface::as_raw(self), inputstream.param().abi(), expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAppInstallerReader(&self, inputstream: P0, expecteddigest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAppInstallerReader)(windows_core::Interface::as_raw(self), inputstream.into_param().abi(), expecteddigest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAppInstallerReader)(windows_core::Interface::as_raw(self), inputstream.param().abi(), expecteddigest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1747,10 +1747,10 @@ windows_core::imp::interface_hierarchy!(IAppxManifestApplication, windows_core:: impl IAppxManifestApplication { pub unsafe fn GetStringValue(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAppUserModelId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2187,10 +2187,10 @@ impl IAppxManifestPackageId { } pub unsafe fn ComparePublisher(&self, other: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ComparePublisher)(windows_core::Interface::as_raw(self), other.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ComparePublisher)(windows_core::Interface::as_raw(self), other.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPackageFullName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2238,10 +2238,10 @@ impl IAppxManifestPackageId2 { } pub unsafe fn ComparePublisher(&self, other: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ComparePublisher)(windows_core::Interface::as_raw(self), other.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.ComparePublisher)(windows_core::Interface::as_raw(self), other.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPackageFullName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2266,17 +2266,17 @@ windows_core::imp::interface_hierarchy!(IAppxManifestProperties, windows_core::I impl IAppxManifestProperties { pub unsafe fn GetBoolValue(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBoolValue)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBoolValue)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetStringValue(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStringValue)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -2360,10 +2360,10 @@ impl IAppxManifestReader { } pub unsafe fn GetPrerequisite(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPrerequisite)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPrerequisite)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetApplications(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2420,10 +2420,10 @@ impl IAppxManifestReader2 { } pub unsafe fn GetPrerequisite(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPrerequisite)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetPrerequisite)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetApplications(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2473,10 +2473,10 @@ impl IAppxManifestReader3 { } pub unsafe fn GetPrerequisite(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetPrerequisite)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetPrerequisite)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetApplications(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2535,10 +2535,10 @@ impl IAppxManifestReader4 { } pub unsafe fn GetPrerequisite(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetPrerequisite)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.GetPrerequisite)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetApplications(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2694,53 +2694,53 @@ windows_core::imp::interface_hierarchy!(IAppxPackageEditor, windows_core::IUnkno impl IAppxPackageEditor { pub unsafe fn SetWorkingDirectory(&self, workingdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDeltaPackage(&self, updatedpackagestream: P0, baselinepackagestream: P1, deltapackagestream: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDeltaPackage)(windows_core::Interface::as_raw(self), updatedpackagestream.into_param().abi(), baselinepackagestream.into_param().abi(), deltapackagestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDeltaPackage)(windows_core::Interface::as_raw(self), updatedpackagestream.param().abi(), baselinepackagestream.param().abi(), deltapackagestream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDeltaPackageUsingBaselineBlockMap(&self, updatedpackagestream: P0, baselineblockmapstream: P1, baselinepackagefullname: P2, deltapackagestream: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDeltaPackageUsingBaselineBlockMap)(windows_core::Interface::as_raw(self), updatedpackagestream.into_param().abi(), baselineblockmapstream.into_param().abi(), baselinepackagefullname.into_param().abi(), deltapackagestream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateDeltaPackageUsingBaselineBlockMap)(windows_core::Interface::as_raw(self), updatedpackagestream.param().abi(), baselineblockmapstream.param().abi(), baselinepackagefullname.param().abi(), deltapackagestream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdatePackage(&self, baselinepackagestream: P0, deltapackagestream: P1, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdatePackage)(windows_core::Interface::as_raw(self), baselinepackagestream.into_param().abi(), deltapackagestream.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateEncryptedPackage)(windows_core::Interface::as_raw(self), baselineencryptedpackagestream.into_param().abi(), deltapackagestream.into_param().abi(), updateoption, settings, keyinfo).ok() + (windows_core::Interface::vtable(self).UpdateEncryptedPackage)(windows_core::Interface::as_raw(self), baselineencryptedpackagestream.param().abi(), deltapackagestream.param().abi(), updateoption, settings, keyinfo).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdatePackageManifest(&self, packagestream: P0, updatedmanifeststream: P1, ispackageencrypted: P2, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdatePackageManifest)(windows_core::Interface::as_raw(self), packagestream.into_param().abi(), updatedmanifeststream.into_param().abi(), ispackageencrypted.into_param().abi(), options).ok() + (windows_core::Interface::vtable(self).UpdatePackageManifest)(windows_core::Interface::as_raw(self), packagestream.param().abi(), updatedmanifeststream.param().abi(), ispackageencrypted.param().abi(), options).ok() } } #[repr(C)] @@ -2781,10 +2781,10 @@ impl IAppxPackageReader { } pub unsafe fn GetPayloadFile(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPayloadFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPayloadFile)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPayloadFiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2810,18 +2810,18 @@ impl IAppxPackageWriter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPayloadFile(&self, filename: P0, contenttype: P1, compressionoption: APPX_COMPRESSION_OPTION, inputstream: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPayloadFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), contenttype.into_param().abi(), compressionoption, inputstream.into_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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), manifest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), manifest.param().abi()).ok() } } #[repr(C)] @@ -2842,10 +2842,10 @@ impl IAppxPackageWriter2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Close(&self, manifest: P0, contentgroupmap: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), manifest.into_param().abi(), contentgroupmap.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), manifest.param().abi(), contentgroupmap.param().abi()).ok() } } #[repr(C)] @@ -2877,17 +2877,17 @@ windows_core::imp::interface_hierarchy!(IAppxPackagingDiagnosticEventSink, windo impl IAppxPackagingDiagnosticEventSink { pub unsafe fn ReportContextChange(&self, changetype: APPX_PACKAGING_CONTEXT_CHANGE_TYPE, contextid: i32, contextname: P0, contextmessage: P1, detailsmessage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportContextChange)(windows_core::Interface::as_raw(self), changetype, contextid, contextname.into_param().abi(), contextmessage.into_param().abi(), detailsmessage.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errormessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errormessage.param().abi()).ok() } } #[repr(C)] @@ -2901,9 +2901,9 @@ windows_core::imp::interface_hierarchy!(IAppxPackagingDiagnosticEventSinkManager impl IAppxPackagingDiagnosticEventSinkManager { pub unsafe fn SetSinkForProcess(&self, sink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSinkForProcess)(windows_core::Interface::as_raw(self), sink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSinkForProcess)(windows_core::Interface::as_raw(self), sink.param().abi()).ok() } } #[repr(C)] 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 3d73c95fb7..51c19c7548 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 @@ -182,9 +182,9 @@ impl IOpcDigitalSignatureManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignatureOriginPartName(&self, signatureoriginpartname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignatureOriginPartName)(windows_core::Interface::as_raw(self), signatureoriginpartname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignatureOriginPartName)(windows_core::Interface::as_raw(self), signatureoriginpartname.param().abi()).ok() } pub unsafe fn GetSignatureEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -193,9 +193,9 @@ impl IOpcDigitalSignatureManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveSignature(&self, signaturepartname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSignature)(windows_core::Interface::as_raw(self), signaturepartname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveSignature)(windows_core::Interface::as_raw(self), signaturepartname.param().abi()).ok() } pub unsafe fn CreateSigningOptions(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -204,26 +204,26 @@ impl IOpcDigitalSignatureManager { #[cfg(feature = "Win32_Security_Cryptography")] pub unsafe fn Validate(&self, signature: P0, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), signature.into_param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Sign)(windows_core::Interface::as_raw(self), certificate, signingoptions.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReplaceSignatureXml)(windows_core::Interface::as_raw(self), signaturepartname.into_param().abi(), core::mem::transmute(newsignaturexml.as_ptr()), newsignaturexml.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReplaceSignatureXml)(windows_core::Interface::as_raw(self), signaturepartname.param().abi(), core::mem::transmute(newsignaturexml.as_ptr()), newsignaturexml.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -267,18 +267,18 @@ impl IOpcFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePartUri(&self, pwzuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePartUri)(windows_core::Interface::as_raw(self), pwzuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePartUri)(windows_core::Interface::as_raw(self), pwzuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com"))] pub unsafe fn CreateStreamOnFile(&self, filename: P0, iomode: OPC_STREAM_IO_MODE, securityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, dwflagsandattributes: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStreamOnFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), iomode, securityattributes, 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__ = std::mem::zeroed(); @@ -287,25 +287,25 @@ impl IOpcFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReadPackageFromStream(&self, stream: P0, flags: OPC_READ_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReadPackageFromStream)(windows_core::Interface::as_raw(self), stream.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WritePackageToStream)(windows_core::Interface::as_raw(self), package.into_param().abi(), flags, stream.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDigitalSignatureManager)(windows_core::Interface::as_raw(self), package.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDigitalSignatureManager)(windows_core::Interface::as_raw(self), package.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -427,34 +427,34 @@ impl IOpcPartSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPart(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPart)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPart)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePart(&self, name: P0, contenttype: P1, compressionoptions: OPC_COMPRESSION_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePart)(windows_core::Interface::as_raw(self), name.into_param().abi(), contenttype.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePart)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePart)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PartExists(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PartExists)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PartExists)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -608,10 +608,10 @@ impl IOpcPartUri { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, puri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqual)(windows_core::Interface::as_raw(self), puri.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqual)(windows_core::Interface::as_raw(self), puri.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRelationshipsPartUri(&self) -> windows_core::Result { @@ -621,26 +621,26 @@ impl IOpcPartUri { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRelativeUri(&self, targetparturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRelativeUri)(windows_core::Interface::as_raw(self), targetparturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetRelativeUri)(windows_core::Interface::as_raw(self), targetparturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CombinePartUri(&self, relativeuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CombinePartUri)(windows_core::Interface::as_raw(self), relativeuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CombinePartUri)(windows_core::Interface::as_raw(self), relativeuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ComparePartUri(&self, parturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ComparePartUri)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ComparePartUri)(windows_core::Interface::as_raw(self), parturi.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSourceUri(&self) -> windows_core::Result { @@ -786,16 +786,16 @@ windows_core::imp::interface_hierarchy!(IOpcRelationshipSelectorSet, windows_cor impl IOpcRelationshipSelectorSet { pub unsafe fn Create(&self, selector: OPC_RELATIONSHIP_SELECTOR, selectioncriterion: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), selector, selectioncriterion.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), relationshipselector.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), relationshipselector.param().abi()).ok() } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -814,33 +814,33 @@ windows_core::imp::interface_hierarchy!(IOpcRelationshipSet, windows_core::IUnkn impl IOpcRelationshipSet { pub unsafe fn GetRelationship(&self, relationshipidentifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRelationship(&self, relationshipidentifier: P0, relationshiptype: P1, targeturi: P2, targetmode: OPC_URI_TARGET_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.into_param().abi(), relationshiptype.into_param().abi(), targeturi.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.param().abi()).ok() } pub unsafe fn RelationshipExists(&self, relationshipidentifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RelationshipExists)(windows_core::Interface::as_raw(self), relationshipidentifier.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RelationshipExists)(windows_core::Interface::as_raw(self), relationshipidentifier.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -848,10 +848,10 @@ impl IOpcRelationshipSet { } pub unsafe fn GetEnumeratorForType(&self, relationshiptype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEnumeratorForType)(windows_core::Interface::as_raw(self), relationshiptype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEnumeratorForType)(windows_core::Interface::as_raw(self), relationshiptype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRelationshipsContentStream(&self) -> windows_core::Result { @@ -925,9 +925,9 @@ impl IOpcSignatureCustomObjectSet { } pub unsafe fn Delete(&self, customobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), customobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), customobject.param().abi()).ok() } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1011,17 +1011,17 @@ impl IOpcSignaturePartReferenceSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Create(&self, parturi: P0, digestmethod: P1, transformmethod: OPC_CANONICALIZATION_METHOD) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), digestmethod.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), partreference.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), partreference.param().abi()).ok() } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1113,19 +1113,19 @@ impl IOpcSignatureReferenceSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Create(&self, referenceuri: P0, referenceid: P1, r#type: P2, digestmethod: P3, transformmethod: OPC_CANONICALIZATION_METHOD) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), referenceuri.into_param().abi(), referenceid.into_param().abi(), r#type.into_param().abi(), digestmethod.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), reference.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), reference.param().abi()).ok() } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1217,12 +1217,12 @@ impl IOpcSignatureRelationshipReferenceSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Create(&self, sourceuri: P0, digestmethod: P1, relationshipsigningoption: OPC_RELATIONSHIPS_SIGNING_OPTION, selectorset: P2, transformmethod: OPC_CANONICALIZATION_METHOD) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), sourceuri.into_param().abi(), digestmethod.into_param().abi(), relationshipsigningoption, selectorset.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1230,9 +1230,9 @@ impl IOpcSignatureRelationshipReferenceSet { } pub unsafe fn Delete(&self, relationshipreference: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), relationshipreference.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), relationshipreference.param().abi()).ok() } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1259,9 +1259,9 @@ impl IOpcSigningOptions { } pub unsafe fn SetSignatureId(&self, signatureid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignatureId)(windows_core::Interface::as_raw(self), signatureid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignatureId)(windows_core::Interface::as_raw(self), signatureid.param().abi()).ok() } pub unsafe fn GetSignatureMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1269,9 +1269,9 @@ impl IOpcSigningOptions { } pub unsafe fn SetSignatureMethod(&self, signaturemethod: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignatureMethod)(windows_core::Interface::as_raw(self), signaturemethod.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignatureMethod)(windows_core::Interface::as_raw(self), signaturemethod.param().abi()).ok() } pub unsafe fn GetDefaultDigestMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1279,9 +1279,9 @@ impl IOpcSigningOptions { } pub unsafe fn SetDefaultDigestMethod(&self, digestmethod: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultDigestMethod)(windows_core::Interface::as_raw(self), digestmethod.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultDigestMethod)(windows_core::Interface::as_raw(self), digestmethod.param().abi()).ok() } pub unsafe fn GetCertificateEmbeddingOption(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1325,9 +1325,9 @@ impl IOpcSigningOptions { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignaturePartName(&self, signaturepartname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignaturePartName)(windows_core::Interface::as_raw(self), signaturepartname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignaturePartName)(windows_core::Interface::as_raw(self), signaturepartname.param().abi()).ok() } } #[repr(C)] @@ -1483,10 +1483,10 @@ impl IOpcUri { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, puri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), puri.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), puri.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRelationshipsPartUri(&self) -> windows_core::Result { @@ -1496,18 +1496,18 @@ impl IOpcUri { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRelativeUri(&self, targetparturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRelativeUri)(windows_core::Interface::as_raw(self), targetparturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRelativeUri)(windows_core::Interface::as_raw(self), targetparturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CombinePartUri(&self, relativeuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CombinePartUri)(windows_core::Interface::as_raw(self), relativeuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CombinePartUri)(windows_core::Interface::as_raw(self), relativeuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] 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 774ed12115..7fa6ad19f7 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs @@ -1,79 +1,79 @@ #[inline] pub unsafe fn PrjAllocateAlignedBuffer(namespacevirtualizationcontext: P0, size: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjAllocateAlignedBuffer(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, size : usize) -> *mut core::ffi::c_void); - PrjAllocateAlignedBuffer(namespacevirtualizationcontext.into_param().abi(), size) + PrjAllocateAlignedBuffer(namespacevirtualizationcontext.param().abi(), size) } #[inline] pub unsafe fn PrjClearNegativePathCache(namespacevirtualizationcontext: P0, totalentrynumber: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjClearNegativePathCache(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, totalentrynumber : *mut u32) -> windows_core::HRESULT); - PrjClearNegativePathCache(namespacevirtualizationcontext.into_param().abi(), core::mem::transmute(totalentrynumber.unwrap_or(std::ptr::null_mut()))).ok() + PrjClearNegativePathCache(namespacevirtualizationcontext.param().abi(), core::mem::transmute(totalentrynumber.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn PrjCompleteCommand(namespacevirtualizationcontext: P0, commandid: i32, completionresult: windows_core::HRESULT, extendedparameters: Option<*const PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(namespacevirtualizationcontext.into_param().abi(), commandid, completionresult, core::mem::transmute(extendedparameters.unwrap_or(std::ptr::null()))).ok() + PrjCompleteCommand(namespacevirtualizationcontext.param().abi(), commandid, completionresult, core::mem::transmute(extendedparameters.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn PrjDeleteFile(namespacevirtualizationcontext: P0, destinationfilename: P1, updateflags: PRJ_UPDATE_TYPES, failurereason: Option<*mut PRJ_UPDATE_FAILURE_CAUSES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(namespacevirtualizationcontext.into_param().abi(), destinationfilename.into_param().abi(), updateflags, core::mem::transmute(failurereason.unwrap_or(std::ptr::null_mut()))).ok() + PrjDeleteFile(namespacevirtualizationcontext.param().abi(), destinationfilename.param().abi(), updateflags, core::mem::transmute(failurereason.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn PrjDoesNameContainWildCards(filename: P0) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjDoesNameContainWildCards(filename : windows_core::PCWSTR) -> super::super::Foundation:: BOOLEAN); - PrjDoesNameContainWildCards(filename.into_param().abi()) + PrjDoesNameContainWildCards(filename.param().abi()) } #[inline] pub unsafe fn PrjFileNameCompare(filename1: P0, filename2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjFileNameCompare(filename1 : windows_core::PCWSTR, filename2 : windows_core::PCWSTR) -> i32); - PrjFileNameCompare(filename1.into_param().abi(), filename2.into_param().abi()) + PrjFileNameCompare(filename1.param().abi(), filename2.param().abi()) } #[inline] pub unsafe fn PrjFileNameMatch(filenametocheck: P0, pattern: P1) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjFileNameMatch(filenametocheck : windows_core::PCWSTR, pattern : windows_core::PCWSTR) -> super::super::Foundation:: BOOLEAN); - PrjFileNameMatch(filenametocheck.into_param().abi(), pattern.into_param().abi()) + PrjFileNameMatch(filenametocheck.param().abi(), pattern.param().abi()) } #[inline] pub unsafe fn PrjFillDirEntryBuffer(filename: P0, filebasicinfo: Option<*const PRJ_FILE_BASIC_INFO>, direntrybufferhandle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(std::ptr::null())), direntrybufferhandle.into_param().abi()).ok() + PrjFillDirEntryBuffer(filename.param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(std::ptr::null())), direntrybufferhandle.param().abi()).ok() } #[inline] pub unsafe fn PrjFillDirEntryBuffer2(direntrybufferhandle: P0, filename: P1, filebasicinfo: Option<*const PRJ_FILE_BASIC_INFO>, extendedinfo: Option<*const PRJ_EXTENDED_INFO>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(direntrybufferhandle.into_param().abi(), filename.into_param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(std::ptr::null())), core::mem::transmute(extendedinfo.unwrap_or(std::ptr::null()))).ok() + PrjFillDirEntryBuffer2(direntrybufferhandle.param().abi(), filename.param().abi(), core::mem::transmute(filebasicinfo.unwrap_or(std::ptr::null())), core::mem::transmute(extendedinfo.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn PrjFreeAlignedBuffer(buffer: *const core::ffi::c_void) { @@ -83,80 +83,80 @@ pub unsafe fn PrjFreeAlignedBuffer(buffer: *const core::ffi::c_void) { #[inline] pub unsafe fn PrjGetOnDiskFileState(destinationfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjGetOnDiskFileState(destinationfilename : windows_core::PCWSTR, filestate : *mut PRJ_FILE_STATE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PrjGetOnDiskFileState(destinationfilename.into_param().abi(), &mut result__).map(|| result__) + PrjGetOnDiskFileState(destinationfilename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PrjGetVirtualizationInstanceInfo(namespacevirtualizationcontext: P0, virtualizationinstanceinfo: *mut PRJ_VIRTUALIZATION_INSTANCE_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjGetVirtualizationInstanceInfo(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, virtualizationinstanceinfo : *mut PRJ_VIRTUALIZATION_INSTANCE_INFO) -> windows_core::HRESULT); - PrjGetVirtualizationInstanceInfo(namespacevirtualizationcontext.into_param().abi(), virtualizationinstanceinfo).ok() + PrjGetVirtualizationInstanceInfo(namespacevirtualizationcontext.param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), targetpathname.into_param().abi(), core::mem::transmute(versioninfo.unwrap_or(std::ptr::null())), virtualizationinstanceid).ok() + PrjMarkDirectoryAsPlaceholder(rootpathname.param().abi(), targetpathname.param().abi(), core::mem::transmute(versioninfo.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PrjStartVirtualizing(virtualizationrootpath.into_param().abi(), callbacks, core::mem::transmute(instancecontext.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + PrjStartVirtualizing(virtualizationrootpath.param().abi(), callbacks, core::mem::transmute(instancecontext.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn PrjStopVirtualizing(namespacevirtualizationcontext: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("projectedfslib.dll" "system" fn PrjStopVirtualizing(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT)); - PrjStopVirtualizing(namespacevirtualizationcontext.into_param().abi()) + PrjStopVirtualizing(namespacevirtualizationcontext.param().abi()) } #[inline] pub unsafe fn PrjUpdateFileIfNeeded(namespacevirtualizationcontext: P0, destinationfilename: P1, placeholderinfo: *const PRJ_PLACEHOLDER_INFO, placeholderinfosize: u32, updateflags: PRJ_UPDATE_TYPES, failurereason: Option<*mut PRJ_UPDATE_FAILURE_CAUSES>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(namespacevirtualizationcontext.into_param().abi(), destinationfilename.into_param().abi(), placeholderinfo, placeholderinfosize, updateflags, core::mem::transmute(failurereason.unwrap_or(std::ptr::null_mut()))).ok() + PrjUpdateFileIfNeeded(namespacevirtualizationcontext.param().abi(), destinationfilename.param().abi(), placeholderinfo, placeholderinfosize, updateflags, core::mem::transmute(failurereason.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn PrjWriteFileData(namespacevirtualizationcontext: P0, datastreamid: *const windows_core::GUID, buffer: *const core::ffi::c_void, byteoffset: u64, length: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(namespacevirtualizationcontext.into_param().abi(), datastreamid, buffer, byteoffset, length).ok() + PrjWriteFileData(namespacevirtualizationcontext.param().abi(), datastreamid, buffer, byteoffset, length).ok() } #[inline] pub unsafe fn PrjWritePlaceholderInfo(namespacevirtualizationcontext: P0, destinationfilename: P1, placeholderinfo: *const PRJ_PLACEHOLDER_INFO, placeholderinfosize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(namespacevirtualizationcontext.into_param().abi(), destinationfilename.into_param().abi(), placeholderinfo, placeholderinfosize).ok() + PrjWritePlaceholderInfo(namespacevirtualizationcontext.param().abi(), destinationfilename.param().abi(), placeholderinfo, placeholderinfosize).ok() } #[inline] pub unsafe fn PrjWritePlaceholderInfo2(namespacevirtualizationcontext: P0, destinationfilename: P1, placeholderinfo: *const PRJ_PLACEHOLDER_INFO, placeholderinfosize: u32, extendedinfo: Option<*const PRJ_EXTENDED_INFO>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(namespacevirtualizationcontext.into_param().abi(), destinationfilename.into_param().abi(), placeholderinfo, placeholderinfosize, core::mem::transmute(extendedinfo.unwrap_or(std::ptr::null()))).ok() + PrjWritePlaceholderInfo2(namespacevirtualizationcontext.param().abi(), destinationfilename.param().abi(), placeholderinfo, placeholderinfosize, core::mem::transmute(extendedinfo.unwrap_or(std::ptr::null()))).ok() } pub const PRJ_CB_DATA_FLAG_ENUM_RESTART_SCAN: PRJ_CALLBACK_DATA_FLAGS = PRJ_CALLBACK_DATA_FLAGS(1i32); pub const PRJ_CB_DATA_FLAG_ENUM_RETURN_SINGLE_ENTRY: PRJ_CALLBACK_DATA_FLAGS = PRJ_CALLBACK_DATA_FLAGS(2i32); 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 641b0bb3f2..7dae2de3ee 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs @@ -1,114 +1,114 @@ #[inline] pub unsafe fn AddVirtualDiskParent(virtualdiskhandle: P0, parentpath: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(virtualdiskhandle.into_param().abi(), parentpath.into_param().abi()) + AddVirtualDiskParent(virtualdiskhandle.param().abi(), parentpath.param().abi()) } #[inline] pub unsafe fn ApplySnapshotVhdSet(virtualdiskhandle: P0, parameters: *const APPLY_SNAPSHOT_VHDSET_PARAMETERS, flags: APPLY_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), parameters, flags) + ApplySnapshotVhdSet(virtualdiskhandle.param().abi(), parameters, flags) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn AttachVirtualDisk(virtualdiskhandle: P0, securitydescriptor: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), securitydescriptor.into_param().abi(), flags, providerspecificflags, core::mem::transmute(parameters.unwrap_or(std::ptr::null())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + AttachVirtualDisk(virtualdiskhandle.param().abi(), securitydescriptor.param().abi(), flags, providerspecificflags, core::mem::transmute(parameters.unwrap_or(std::ptr::null())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn BreakMirrorVirtualDisk(virtualdiskhandle: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("virtdisk.dll" "system" fn BreakMirrorVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - BreakMirrorVirtualDisk(virtualdiskhandle.into_param().abi()) + BreakMirrorVirtualDisk(virtualdiskhandle.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CompactVirtualDisk(virtualdiskhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), flags, core::mem::transmute(parameters.unwrap_or(std::ptr::null())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + CompactVirtualDisk(virtualdiskhandle.param().abi(), flags, core::mem::transmute(parameters.unwrap_or(std::ptr::null())), core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CompleteForkVirtualDisk(virtualdiskhandle: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("virtdisk.dll" "system" fn CompleteForkVirtualDisk(virtualdiskhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - CompleteForkVirtualDisk(virtualdiskhandle.into_param().abi()) + CompleteForkVirtualDisk(virtualdiskhandle.param().abi()) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn CreateVirtualDisk(virtualstoragetype: *const VIRTUAL_STORAGE_TYPE, path: P0, virtualdiskaccessmask: VIRTUAL_DISK_ACCESS_MASK, securitydescriptor: P1, flags: CREATE_VIRTUAL_DISK_FLAG, providerspecificflags: u32, parameters: *const CREATE_VIRTUAL_DISK_PARAMETERS, overlapped: Option<*const super::super::System::IO::OVERLAPPED>, handle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(virtualstoragetype, path.into_param().abi(), virtualdiskaccessmask, securitydescriptor.into_param().abi(), flags, providerspecificflags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), handle) + CreateVirtualDisk(virtualstoragetype, path.param().abi(), virtualdiskaccessmask, securitydescriptor.param().abi(), flags, providerspecificflags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null())), handle) } #[inline] pub unsafe fn DeleteSnapshotVhdSet(virtualdiskhandle: P0, parameters: *const DELETE_SNAPSHOT_VHDSET_PARAMETERS, flags: DELETE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), parameters, flags) + DeleteSnapshotVhdSet(virtualdiskhandle.param().abi(), parameters, flags) } #[inline] pub unsafe fn DeleteVirtualDiskMetadata(virtualdiskhandle: P0, item: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("virtdisk.dll" "system" fn DeleteVirtualDiskMetadata(virtualdiskhandle : super::super::Foundation:: HANDLE, item : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - DeleteVirtualDiskMetadata(virtualdiskhandle.into_param().abi(), item) + DeleteVirtualDiskMetadata(virtualdiskhandle.param().abi(), item) } #[inline] pub unsafe fn DetachVirtualDisk(virtualdiskhandle: P0, flags: DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), flags, providerspecificflags) + DetachVirtualDisk(virtualdiskhandle.param().abi(), flags, providerspecificflags) } #[inline] pub unsafe fn EnumerateVirtualDiskMetadata(virtualdiskhandle: P0, numberofitems: *mut u32, items: *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), numberofitems, items) + EnumerateVirtualDiskMetadata(virtualdiskhandle.param().abi(), numberofitems, items) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ExpandVirtualDisk(virtualdiskhandle: P0, flags: EXPAND_VIRTUAL_DISK_FLAG, parameters: *const EXPAND_VIRTUAL_DISK_PARAMETERS, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), flags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + ExpandVirtualDisk(virtualdiskhandle.param().abi(), flags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ForkVirtualDisk(virtualdiskhandle: P0, flags: FORK_VIRTUAL_DISK_FLAG, parameters: *const FORK_VIRTUAL_DISK_PARAMETERS, overlapped: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), flags, parameters, overlapped) + ForkVirtualDisk(virtualdiskhandle.param().abi(), flags, parameters, overlapped) } #[inline] pub unsafe fn GetAllAttachedVirtualDiskPhysicalPaths(pathsbuffersizeinbytes: *mut u32, pathsbuffer: windows_core::PWSTR) -> super::super::Foundation::WIN32_ERROR { @@ -118,127 +118,127 @@ pub unsafe fn GetAllAttachedVirtualDiskPhysicalPaths(pathsbuffersizeinbytes: *mu #[inline] pub unsafe fn GetStorageDependencyInformation(objecthandle: P0, flags: GET_STORAGE_DEPENDENCY_FLAG, storagedependencyinfosize: u32, storagedependencyinfo: *mut STORAGE_DEPENDENCY_INFO, sizeused: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(objecthandle.into_param().abi(), flags, storagedependencyinfosize, storagedependencyinfo, core::mem::transmute(sizeused.unwrap_or(std::ptr::null_mut()))) + GetStorageDependencyInformation(objecthandle.param().abi(), flags, storagedependencyinfosize, storagedependencyinfo, core::mem::transmute(sizeused.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetVirtualDiskInformation(virtualdiskhandle: P0, virtualdiskinfosize: *mut u32, virtualdiskinfo: *mut GET_VIRTUAL_DISK_INFO, sizeused: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), virtualdiskinfosize, virtualdiskinfo, core::mem::transmute(sizeused.unwrap_or(std::ptr::null_mut()))) + GetVirtualDiskInformation(virtualdiskhandle.param().abi(), virtualdiskinfosize, virtualdiskinfo, core::mem::transmute(sizeused.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetVirtualDiskMetadata(virtualdiskhandle: P0, item: *const windows_core::GUID, metadatasize: *mut u32, metadata: *mut core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), item, metadatasize, metadata) + GetVirtualDiskMetadata(virtualdiskhandle.param().abi(), item, metadatasize, metadata) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn GetVirtualDiskOperationProgress(virtualdiskhandle: P0, overlapped: *const super::super::System::IO::OVERLAPPED, progress: *mut VIRTUAL_DISK_PROGRESS) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), overlapped, progress) + GetVirtualDiskOperationProgress(virtualdiskhandle.param().abi(), overlapped, progress) } #[inline] pub unsafe fn GetVirtualDiskPhysicalPath(virtualdiskhandle: P0, diskpathsizeinbytes: *mut u32, diskpath: windows_core::PWSTR) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), diskpathsizeinbytes, core::mem::transmute(diskpath)) + GetVirtualDiskPhysicalPath(virtualdiskhandle.param().abi(), diskpathsizeinbytes, core::mem::transmute(diskpath)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn MergeVirtualDisk(virtualdiskhandle: P0, flags: MERGE_VIRTUAL_DISK_FLAG, parameters: *const MERGE_VIRTUAL_DISK_PARAMETERS, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), flags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + MergeVirtualDisk(virtualdiskhandle.param().abi(), flags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn MirrorVirtualDisk(virtualdiskhandle: P0, flags: MIRROR_VIRTUAL_DISK_FLAG, parameters: *const MIRROR_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), flags, parameters, overlapped) + MirrorVirtualDisk(virtualdiskhandle.param().abi(), flags, parameters, overlapped) } #[inline] pub unsafe fn ModifyVhdSet(virtualdiskhandle: P0, parameters: *const MODIFY_VHDSET_PARAMETERS, flags: MODIFY_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), parameters, flags) + ModifyVhdSet(virtualdiskhandle.param().abi(), parameters, flags) } #[inline] pub unsafe fn OpenVirtualDisk(virtualstoragetype: *const VIRTUAL_STORAGE_TYPE, path: P0, 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 where - P0: windows_core::IntoParam, + P0: 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(virtualstoragetype, path.into_param().abi(), virtualdiskaccessmask, flags, core::mem::transmute(parameters.unwrap_or(std::ptr::null())), handle) + OpenVirtualDisk(virtualstoragetype, path.param().abi(), virtualdiskaccessmask, flags, core::mem::transmute(parameters.unwrap_or(std::ptr::null())), handle) } #[inline] pub unsafe fn QueryChangesVirtualDisk(virtualdiskhandle: P0, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(virtualdiskhandle.into_param().abi(), changetrackingid.into_param().abi(), byteoffset, bytelength, flags, ranges, rangecount, processedlength) + QueryChangesVirtualDisk(virtualdiskhandle.param().abi(), changetrackingid.param().abi(), byteoffset, bytelength, flags, ranges, rangecount, processedlength) } #[inline] pub unsafe fn RawSCSIVirtualDisk(virtualdiskhandle: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), parameters, flags, response) + RawSCSIVirtualDisk(virtualdiskhandle.param().abi(), parameters, flags, response) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ResizeVirtualDisk(virtualdiskhandle: P0, flags: RESIZE_VIRTUAL_DISK_FLAG, parameters: *const RESIZE_VIRTUAL_DISK_PARAMETERS, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), flags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) + ResizeVirtualDisk(virtualdiskhandle.param().abi(), flags, parameters, core::mem::transmute(overlapped.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetVirtualDiskInformation(virtualdiskhandle: P0, virtualdiskinfo: *const SET_VIRTUAL_DISK_INFO) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), virtualdiskinfo) + SetVirtualDiskInformation(virtualdiskhandle.param().abi(), virtualdiskinfo) } #[inline] pub unsafe fn SetVirtualDiskMetadata(virtualdiskhandle: P0, item: *const windows_core::GUID, metadatasize: u32, metadata: *const core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), item, metadatasize, metadata) + SetVirtualDiskMetadata(virtualdiskhandle.param().abi(), item, metadatasize, metadata) } #[inline] pub unsafe fn TakeSnapshotVhdSet(virtualdiskhandle: P0, parameters: *const TAKE_SNAPSHOT_VHDSET_PARAMETERS, flags: TAKE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(virtualdiskhandle.into_param().abi(), parameters, flags) + TakeSnapshotVhdSet(virtualdiskhandle.param().abi(), parameters, flags) } pub const APPLY_SNAPSHOT_VHDSET_FLAG_NONE: APPLY_SNAPSHOT_VHDSET_FLAG = APPLY_SNAPSHOT_VHDSET_FLAG(0i32); pub const APPLY_SNAPSHOT_VHDSET_FLAG_WRITEABLE: APPLY_SNAPSHOT_VHDSET_FLAG = APPLY_SNAPSHOT_VHDSET_FLAG(1i32); 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 dc0230776e..9b7545c852 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs @@ -28,11 +28,11 @@ windows_core::imp::interface_hierarchy!(IVdsAdmin, windows_core::IUnknown); impl IVdsAdmin { pub unsafe fn RegisterProvider(&self, providerid: windows_core::GUID, providerclsid: windows_core::GUID, pwszname: P0, r#type: VDS_PROVIDER_TYPE, pwszmachinename: P1, pwszversion: P2, guidversionid: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterProvider)(windows_core::Interface::as_raw(self), core::mem::transmute(providerid), core::mem::transmute(providerclsid), pwszname.into_param().abi(), r#type, pwszmachinename.into_param().abi(), pwszversion.into_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() @@ -59,10 +59,10 @@ impl IVdsAdvancedDisk { } pub unsafe fn DeletePartition(&self, ulloffset: u64, bforce: P0, bforceprotected: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePartition)(windows_core::Interface::as_raw(self), ulloffset, bforce.into_param().abi(), bforceprotected.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePartition)(windows_core::Interface::as_raw(self), ulloffset, bforce.param().abi(), bforceprotected.param().abi()).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), ulloffset, para).ok() @@ -78,22 +78,22 @@ impl IVdsAdvancedDisk { } pub unsafe fn FormatPartition(&self, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: P0, dwunitallocationsize: u32, bforce: P1, bquickformat: P2, benablecompression: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatPartition)(windows_core::Interface::as_raw(self), ulloffset, r#type, pwszlabel.into_param().abi(), dwunitallocationsize, bforce.into_param().abi(), bquickformat.into_param().abi(), benablecompression.into_param().abi(), &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.param().abi(), bquickformat.param().abi(), benablecompression.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Clean(&self, bforce: P0, bforceoem: P1, bfullclean: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Clean)(windows_core::Interface::as_raw(self), bforce.into_param().abi(), bforceoem.into_param().abi(), bfullclean.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Clean)(windows_core::Interface::as_raw(self), bforce.param().abi(), bforceoem.param().abi(), bfullclean.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -115,9 +115,9 @@ windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk2, windows_core::IUnknow impl IVdsAdvancedDisk2 { pub unsafe fn ChangePartitionType(&self, ulloffset: u64, bforce: P0, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangePartitionType)(windows_core::Interface::as_raw(self), ulloffset, bforce.into_param().abi(), para).ok() + (windows_core::Interface::vtable(self).ChangePartitionType)(windows_core::Interface::as_raw(self), ulloffset, bforce.param().abi(), para).ok() } } #[repr(C)] @@ -314,9 +314,9 @@ windows_core::imp::interface_hierarchy!(IVdsDisk2, windows_core::IUnknown); impl IVdsDisk2 { pub unsafe fn SetSANMode(&self, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSANMode)(windows_core::Interface::as_raw(self), benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSANMode)(windows_core::Interface::as_raw(self), benable.param().abi()).ok() } } #[repr(C)] @@ -371,14 +371,14 @@ impl IVdsDiskPartitionMF { } pub unsafe fn FormatPartitionEx(&self, ulloffset: u64, pwszfilesystemtypename: P0, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: P1, bforce: P2, bquickformat: P3, benablecompression: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatPartitionEx)(windows_core::Interface::as_raw(self), ulloffset, pwszfilesystemtypename.into_param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.into_param().abi(), bforce.into_param().abi(), bquickformat.into_param().abi(), benablecompression.into_param().abi(), &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.param().abi(), bquickformat.param().abi(), benablecompression.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -394,11 +394,11 @@ windows_core::imp::interface_hierarchy!(IVdsDiskPartitionMF2, windows_core::IUnk impl IVdsDiskPartitionMF2 { pub unsafe fn FormatPartitionEx2(&self, ulloffset: u64, pwszfilesystemtypename: P0, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: P1, options: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatPartitionEx2)(windows_core::Interface::as_raw(self), ulloffset, pwszfilesystemtypename.into_param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.into_param().abi(), 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)] @@ -493,10 +493,10 @@ windows_core::imp::interface_hierarchy!(IVdsHwProviderPrivate, windows_core::IUn impl IVdsHwProviderPrivate { pub unsafe fn QueryIfCreatedLun(&self, pwszdevicepath: P0, pvdsluninformation: *const VDS_LUN_INFORMATION) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryIfCreatedLun)(windows_core::Interface::as_raw(self), pwszdevicepath.into_param().abi(), 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)] @@ -525,10 +525,10 @@ impl IVdsHwProviderStoragePools { } pub unsafe fn CreateLunInStoragePool(&self, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, storagepoolid: windows_core::GUID, pwszunmaskinglist: P0, phints2: *const VDS_HINTS2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLunInStoragePool)(windows_core::Interface::as_raw(self), r#type, ullsizeinbytes, core::mem::transmute(storagepoolid), pwszunmaskinglist.into_param().abi(), 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__ = std::mem::zeroed(); @@ -580,11 +580,11 @@ 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: P0, bdatadigest: P1, authtype: VDS_ISCSI_AUTH_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (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_param().abi(), bdatadigest.into_param().abi(), 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.param().abi(), bdatadigest.param().abi(), 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__ = std::mem::zeroed(); @@ -745,21 +745,21 @@ impl IVdsIscsiTarget { } pub unsafe fn SetFriendlyName(&self, pwszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwszfriendlyname.param().abi()).ok() } pub unsafe fn SetSharedSecret(&self, ptargetsharedsecret: *const VDS_ISCSI_SHARED_SECRET, pwszinitiatorname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSharedSecret)(windows_core::Interface::as_raw(self), ptargetsharedsecret, pwszinitiatorname.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RememberInitiatorSharedSecret)(windows_core::Interface::as_raw(self), pwszinitiatorname.into_param().abi(), 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), pppwszinitiatorlist, plnumberofinitiators).ok() @@ -822,9 +822,9 @@ impl IVdsLun { } pub unsafe fn SetMask(&self, pwszunmaskinglist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMask)(windows_core::Interface::as_raw(self), pwszunmaskinglist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMask)(windows_core::Interface::as_raw(self), pwszunmaskinglist.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -947,9 +947,9 @@ windows_core::imp::interface_hierarchy!(IVdsLunNaming, windows_core::IUnknown); impl IVdsLunNaming { pub unsafe fn SetFriendlyName(&self, pwszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwszfriendlyname.param().abi()).ok() } } #[repr(C)] @@ -1025,10 +1025,10 @@ impl IVdsOpenVDisk { #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn Attach(&self, pstringsecuritydescriptor: P0, flags: super::Vhd::ATTACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32, timeoutinms: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pstringsecuritydescriptor.into_param().abi(), flags, providerspecificflags, 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<()> { @@ -1106,16 +1106,16 @@ impl IVdsPack { } pub unsafe fn AddDisk(&self, diskid: windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(diskid), partitionstyle, bashotspare.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(diskid), partitionstyle, bashotspare.param().abi()).ok() } pub unsafe fn MigrateDisks(&self, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: P0, bqueryonly: P1, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MigrateDisks)(windows_core::Interface::as_raw(self), pdiskarray, lnumberofdisks, core::mem::transmute(targetpack), bforce.into_param().abi(), bqueryonly.into_param().abi(), presults, pbrebootneeded).ok() + (windows_core::Interface::vtable(self).MigrateDisks)(windows_core::Interface::as_raw(self), pdiskarray, lnumberofdisks, core::mem::transmute(targetpack), bforce.param().abi(), bqueryonly.param().abi(), presults, pbrebootneeded).ok() } pub unsafe fn ReplaceDisk(&self, olddiskid: windows_core::GUID, newdiskid: windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1177,16 +1177,16 @@ impl IVdsProviderPrivate { } pub unsafe fn OnLoad(&self, pwszmachinename: P0, pcallbackobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLoad)(windows_core::Interface::as_raw(self), pwszmachinename.into_param().abi(), pcallbackobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnLoad)(windows_core::Interface::as_raw(self), pwszmachinename.param().abi(), pcallbackobject.param().abi()).ok() } pub unsafe fn OnUnload(&self, bforceunload: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUnload)(windows_core::Interface::as_raw(self), bforceunload.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnUnload)(windows_core::Interface::as_raw(self), bforceunload.param().abi()).ok() } } #[repr(C)] @@ -1271,10 +1271,10 @@ impl IVdsService { } pub unsafe fn Advise(&self, psink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psink.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -1328,9 +1328,9 @@ windows_core::imp::interface_hierarchy!(IVdsServiceInitialization, windows_core: impl IVdsServiceInitialization { pub unsafe fn Initialize(&self, pwszmachinename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pwszmachinename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pwszmachinename.param().abi()).ok() } } #[repr(C)] @@ -1381,10 +1381,10 @@ windows_core::imp::interface_hierarchy!(IVdsServiceLoader, windows_core::IUnknow impl IVdsServiceLoader { pub unsafe fn LoadService(&self, pwszmachinename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadService)(windows_core::Interface::as_raw(self), pwszmachinename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadService)(windows_core::Interface::as_raw(self), pwszmachinename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1414,10 +1414,10 @@ windows_core::imp::interface_hierarchy!(IVdsServiceSw, windows_core::IUnknown); impl IVdsServiceSw { pub unsafe fn GetDiskObject(&self, pwszdeviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDiskObject)(windows_core::Interface::as_raw(self), pwszdeviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDiskObject)(windows_core::Interface::as_raw(self), pwszdeviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1434,9 +1434,9 @@ impl IVdsServiceUninstallDisk { } pub unsafe fn UninstallDisks(&self, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: P0, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UninstallDisks)(windows_core::Interface::as_raw(self), pdiskidarray, ulcount, bforce.into_param().abi(), pbreboot, presults).ok() + (windows_core::Interface::vtable(self).UninstallDisks)(windows_core::Interface::as_raw(self), pdiskidarray, ulcount, bforce.param().abi(), pbreboot, presults).ok() } } #[repr(C)] @@ -1514,10 +1514,10 @@ impl IVdsSubSystem { } pub unsafe fn CreateLun(&self, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: &[windows_core::GUID], pwszunmaskinglist: P0, phints: *const VDS_HINTS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (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.into_param().abi(), 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() @@ -1558,10 +1558,10 @@ impl IVdsSubSystem2 { } pub unsafe fn CreateLun2(&self, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: &[windows_core::GUID], pwszunmaskinglist: P0, phints2: *const VDS_HINTS2) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (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.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1585,9 +1585,9 @@ impl IVdsSubSystemImportTarget { } pub unsafe fn SetImportTarget(&self, pwsziscsiname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImportTarget)(windows_core::Interface::as_raw(self), pwsziscsiname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImportTarget)(windows_core::Interface::as_raw(self), pwsziscsiname.param().abi()).ok() } } #[repr(C)] @@ -1622,11 +1622,11 @@ impl IVdsSubSystemIscsi { } pub unsafe fn CreateTarget(&self, pwsziscsiname: P0, pwszfriendlyname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTarget)(windows_core::Interface::as_raw(self), pwsziscsiname.into_param().abi(), pwszfriendlyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), pipseckey).ok() @@ -1645,9 +1645,9 @@ windows_core::imp::interface_hierarchy!(IVdsSubSystemNaming, windows_core::IUnkn impl IVdsSubSystemNaming { pub unsafe fn SetFriendlyName(&self, pwszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwszfriendlyname.param().abi()).ok() } } #[repr(C)] @@ -1718,31 +1718,31 @@ impl IVdsVdProvider { #[cfg(feature = "Win32_Storage_Vhd")] pub unsafe fn CreateVDisk(&self, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: P0, pstringsecuritydescriptor: P1, flags: super::Vhd::CREATE_VIRTUAL_DISK_FLAG, providerspecificflags: u32, reserved: u32, pcreatediskparameters: *const VDS_CREATE_VDISK_PARAMETERS, ppasync: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVDisk)(windows_core::Interface::as_raw(self), virtualdevicetype, ppath.into_param().abi(), pstringsecuritydescriptor.into_param().abi(), flags, providerspecificflags, reserved, 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: P0, ppvdisk: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddVDisk)(windows_core::Interface::as_raw(self), virtualdevicetype, ppath.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDiskFromVDisk)(windows_core::Interface::as_raw(self), pvdisk.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDiskFromVDisk)(windows_core::Interface::as_raw(self), pvdisk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetVDiskFromDisk(&self, pdisk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVDiskFromDisk)(windows_core::Interface::as_raw(self), pdisk.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVDiskFromDisk)(windows_core::Interface::as_raw(self), pdisk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1796,15 +1796,15 @@ impl IVdsVolume { } pub unsafe fn Delete(&self, bforce: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), bforce.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), bforce.param().abi()).ok() } pub unsafe fn SetFlags(&self, ulflags: u32, brevertonclose: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), ulflags, brevertonclose.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFlags)(windows_core::Interface::as_raw(self), ulflags, brevertonclose.param().abi()).ok() } pub unsafe fn ClearFlags(&self, ulflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearFlags)(windows_core::Interface::as_raw(self), ulflags).ok() @@ -1845,19 +1845,19 @@ impl IVdsVolumeMF { } pub unsafe fn Format(&self, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: P0, dwunitallocationsize: u32, bforce: P1, bquickformat: P2, benablecompression: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), r#type, pwszlabel.into_param().abi(), dwunitallocationsize, bforce.into_param().abi(), bquickformat.into_param().abi(), benablecompression.into_param().abi(), &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.param().abi(), bquickformat.param().abi(), benablecompression.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAccessPath(&self, pwszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAccessPath)(windows_core::Interface::as_raw(self), pwszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAccessPath)(windows_core::Interface::as_raw(self), pwszpath.param().abi()).ok() } pub unsafe fn QueryAccessPaths(&self, pwszpatharray: *mut *mut windows_core::PWSTR, plnumberofaccesspaths: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).QueryAccessPaths)(windows_core::Interface::as_raw(self), pwszpatharray, plnumberofaccesspaths).ok() @@ -1867,20 +1867,20 @@ impl IVdsVolumeMF { } pub unsafe fn DeleteAccessPath(&self, pwszpath: P0, bforce: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAccessPath)(windows_core::Interface::as_raw(self), pwszpath.into_param().abi(), bforce.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAccessPath)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), bforce.param().abi()).ok() } pub unsafe fn Mount(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Mount)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Dismount(&self, bforce: P0, bpermanent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Dismount)(windows_core::Interface::as_raw(self), bforce.into_param().abi(), bpermanent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Dismount)(windows_core::Interface::as_raw(self), bforce.param().abi(), bpermanent.param().abi()).ok() } pub unsafe fn SetFileSystemFlags(&self, ulflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetFileSystemFlags)(windows_core::Interface::as_raw(self), ulflags).ok() @@ -1915,14 +1915,14 @@ impl IVdsVolumeMF2 { } pub unsafe fn FormatEx(&self, pwszfilesystemtypename: P0, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: P1, bforce: P2, bquickformat: P3, benablecompression: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatEx)(windows_core::Interface::as_raw(self), pwszfilesystemtypename.into_param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.into_param().abi(), bforce.into_param().abi(), bquickformat.into_param().abi(), benablecompression.into_param().abi(), &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.param().abi(), bquickformat.param().abi(), benablecompression.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1940,11 +1940,11 @@ impl IVdsVolumeMF3 { } pub unsafe fn FormatEx2(&self, pwszfilesystemtypename: P0, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: P1, options: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FormatEx2)(windows_core::Interface::as_raw(self), pwszfilesystemtypename.into_param().abi(), usfilesystemrevision, uldesiredunitallocationsize, pwszlabel.into_param().abi(), 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() 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 4ac3540dda..482f8fd912 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs @@ -108,21 +108,21 @@ impl IVssComponent { } pub unsafe fn SetBackupMetadata(&self, wszdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackupMetadata)(windows_core::Interface::as_raw(self), wszdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBackupMetadata)(windows_core::Interface::as_raw(self), wszdata.param().abi()).ok() } pub unsafe fn GetBackupMetadata(&self, pbstrdata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBackupMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrdata)).ok() } pub unsafe fn AddPartialFile(&self, wszpath: P0, wszfilename: P1, wszranges: P2, wszmetadata: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPartialFile)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilename.into_param().abi(), wszranges.into_param().abi(), wszmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPartialFile)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilename.param().abi(), wszranges.param().abi(), wszmetadata.param().abi()).ok() } pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPartialFileCount)(windows_core::Interface::as_raw(self), pcpartialfiles).ok() @@ -145,14 +145,14 @@ impl IVssComponent { } pub unsafe fn AddDirectedTarget(&self, wszsourcepath: P0, wszsourcefilename: P1, wszsourcerangelist: P2, wszdestinationpath: P3, wszdestinationfilename: P4, wszdestinationrangelist: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDirectedTarget)(windows_core::Interface::as_raw(self), wszsourcepath.into_param().abi(), wszsourcefilename.into_param().abi(), wszsourcerangelist.into_param().abi(), wszdestinationpath.into_param().abi(), wszdestinationfilename.into_param().abi(), wszdestinationrangelist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDirectedTarget)(windows_core::Interface::as_raw(self), wszsourcepath.param().abi(), wszsourcefilename.param().abi(), wszsourcerangelist.param().abi(), wszdestinationpath.param().abi(), wszdestinationfilename.param().abi(), wszdestinationrangelist.param().abi()).ok() } pub unsafe fn GetDirectedTargetCount(&self, pcdirectedtarget: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDirectedTargetCount)(windows_core::Interface::as_raw(self), pcdirectedtarget).ok() @@ -162,9 +162,9 @@ impl IVssComponent { } pub unsafe fn SetRestoreMetadata(&self, wszrestoremetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRestoreMetadata)(windows_core::Interface::as_raw(self), wszrestoremetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRestoreMetadata)(windows_core::Interface::as_raw(self), wszrestoremetadata.param().abi()).ok() } pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetRestoreMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrrestoremetadata)).ok() @@ -177,27 +177,27 @@ impl IVssComponent { } pub unsafe fn SetPreRestoreFailureMsg(&self, wszprerestorefailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszprerestorefailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszprerestorefailuremsg.param().abi()).ok() } pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrprerestorefailuremsg)).ok() } pub unsafe fn SetPostRestoreFailureMsg(&self, wszpostrestorefailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszpostrestorefailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszpostrestorefailuremsg.param().abi()).ok() } pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrpostrestorefailuremsg)).ok() } pub unsafe fn SetBackupStamp(&self, wszbackupstamp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackupStamp)(windows_core::Interface::as_raw(self), wszbackupstamp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBackupStamp)(windows_core::Interface::as_raw(self), wszbackupstamp.param().abi()).ok() } pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetBackupStamp)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrbackupstamp)).ok() @@ -222,20 +222,20 @@ impl IVssComponent { } pub unsafe fn AddDifferencedFilesByLastModifyTime(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, ftlastmodifytime: super::super::Foundation::FILETIME) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDifferencedFilesByLastModifyTime)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive.into_param().abi(), core::mem::transmute(ftlastmodifytime)).ok() + (windows_core::Interface::vtable(self).AddDifferencedFilesByLastModifyTime)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive.param().abi(), core::mem::transmute(ftlastmodifytime)).ok() } pub unsafe fn AddDifferencedFilesByLastModifyLSN(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDifferencedFilesByLastModifyLSN)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive.into_param().abi(), bstrlsnstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDifferencedFilesByLastModifyLSN)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive.param().abi(), bstrlsnstring.param().abi()).ok() } pub unsafe fn GetDifferencedFilesCount(&self, pcdifferencedfiles: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDifferencedFilesCount)(windows_core::Interface::as_raw(self), pcdifferencedfiles).ok() @@ -310,21 +310,21 @@ impl IVssComponentEx { } pub unsafe fn SetBackupMetadata(&self, wszdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBackupMetadata)(windows_core::Interface::as_raw(self), wszdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBackupMetadata)(windows_core::Interface::as_raw(self), wszdata.param().abi()).ok() } pub unsafe fn GetBackupMetadata(&self, pbstrdata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetBackupMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrdata)).ok() } pub unsafe fn AddPartialFile(&self, wszpath: P0, wszfilename: P1, wszranges: P2, wszmetadata: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPartialFile)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilename.into_param().abi(), wszranges.into_param().abi(), wszmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPartialFile)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilename.param().abi(), wszranges.param().abi(), wszmetadata.param().abi()).ok() } pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetPartialFileCount)(windows_core::Interface::as_raw(self), pcpartialfiles).ok() @@ -347,14 +347,14 @@ impl IVssComponentEx { } pub unsafe fn AddDirectedTarget(&self, wszsourcepath: P0, wszsourcefilename: P1, wszsourcerangelist: P2, wszdestinationpath: P3, wszdestinationfilename: P4, wszdestinationrangelist: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDirectedTarget)(windows_core::Interface::as_raw(self), wszsourcepath.into_param().abi(), wszsourcefilename.into_param().abi(), wszsourcerangelist.into_param().abi(), wszdestinationpath.into_param().abi(), wszdestinationfilename.into_param().abi(), wszdestinationrangelist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddDirectedTarget)(windows_core::Interface::as_raw(self), wszsourcepath.param().abi(), wszsourcefilename.param().abi(), wszsourcerangelist.param().abi(), wszdestinationpath.param().abi(), wszdestinationfilename.param().abi(), wszdestinationrangelist.param().abi()).ok() } pub unsafe fn GetDirectedTargetCount(&self, pcdirectedtarget: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetDirectedTargetCount)(windows_core::Interface::as_raw(self), pcdirectedtarget).ok() @@ -364,9 +364,9 @@ impl IVssComponentEx { } pub unsafe fn SetRestoreMetadata(&self, wszrestoremetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRestoreMetadata)(windows_core::Interface::as_raw(self), wszrestoremetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRestoreMetadata)(windows_core::Interface::as_raw(self), wszrestoremetadata.param().abi()).ok() } pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetRestoreMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrrestoremetadata)).ok() @@ -379,27 +379,27 @@ impl IVssComponentEx { } pub unsafe fn SetPreRestoreFailureMsg(&self, wszprerestorefailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszprerestorefailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszprerestorefailuremsg.param().abi()).ok() } pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrprerestorefailuremsg)).ok() } pub unsafe fn SetPostRestoreFailureMsg(&self, wszpostrestorefailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszpostrestorefailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszpostrestorefailuremsg.param().abi()).ok() } pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrpostrestorefailuremsg)).ok() } pub unsafe fn SetBackupStamp(&self, wszbackupstamp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBackupStamp)(windows_core::Interface::as_raw(self), wszbackupstamp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBackupStamp)(windows_core::Interface::as_raw(self), wszbackupstamp.param().abi()).ok() } pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetBackupStamp)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrbackupstamp)).ok() @@ -424,20 +424,20 @@ impl IVssComponentEx { } pub unsafe fn AddDifferencedFilesByLastModifyTime(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, ftlastmodifytime: super::super::Foundation::FILETIME) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDifferencedFilesByLastModifyTime)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive.into_param().abi(), core::mem::transmute(ftlastmodifytime)).ok() + (windows_core::Interface::vtable(self).base__.AddDifferencedFilesByLastModifyTime)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive.param().abi(), core::mem::transmute(ftlastmodifytime)).ok() } pub unsafe fn AddDifferencedFilesByLastModifyLSN(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDifferencedFilesByLastModifyLSN)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive.into_param().abi(), bstrlsnstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddDifferencedFilesByLastModifyLSN)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive.param().abi(), bstrlsnstring.param().abi()).ok() } pub unsafe fn GetDifferencedFilesCount(&self, pcdifferencedfiles: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetDifferencedFilesCount)(windows_core::Interface::as_raw(self), pcdifferencedfiles).ok() @@ -447,15 +447,15 @@ impl IVssComponentEx { } pub unsafe fn SetPrepareForBackupFailureMsg(&self, wszfailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrepareForBackupFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrepareForBackupFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.param().abi()).ok() } pub unsafe fn SetPostSnapshotFailureMsg(&self, wszfailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPostSnapshotFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPostSnapshotFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.param().abi()).ok() } pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -512,21 +512,21 @@ impl IVssComponentEx2 { } pub unsafe fn SetBackupMetadata(&self, wszdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetBackupMetadata)(windows_core::Interface::as_raw(self), wszdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetBackupMetadata)(windows_core::Interface::as_raw(self), wszdata.param().abi()).ok() } pub unsafe fn GetBackupMetadata(&self, pbstrdata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetBackupMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrdata)).ok() } pub unsafe fn AddPartialFile(&self, wszpath: P0, wszfilename: P1, wszranges: P2, wszmetadata: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPartialFile)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilename.into_param().abi(), wszranges.into_param().abi(), wszmetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPartialFile)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilename.param().abi(), wszranges.param().abi(), wszmetadata.param().abi()).ok() } pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetPartialFileCount)(windows_core::Interface::as_raw(self), pcpartialfiles).ok() @@ -549,14 +549,14 @@ impl IVssComponentEx2 { } pub unsafe fn AddDirectedTarget(&self, wszsourcepath: P0, wszsourcefilename: P1, wszsourcerangelist: P2, wszdestinationpath: P3, wszdestinationfilename: P4, wszdestinationrangelist: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDirectedTarget)(windows_core::Interface::as_raw(self), wszsourcepath.into_param().abi(), wszsourcefilename.into_param().abi(), wszsourcerangelist.into_param().abi(), wszdestinationpath.into_param().abi(), wszdestinationfilename.into_param().abi(), wszdestinationrangelist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDirectedTarget)(windows_core::Interface::as_raw(self), wszsourcepath.param().abi(), wszsourcefilename.param().abi(), wszsourcerangelist.param().abi(), wszdestinationpath.param().abi(), wszdestinationfilename.param().abi(), wszdestinationrangelist.param().abi()).ok() } pub unsafe fn GetDirectedTargetCount(&self, pcdirectedtarget: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetDirectedTargetCount)(windows_core::Interface::as_raw(self), pcdirectedtarget).ok() @@ -566,9 +566,9 @@ impl IVssComponentEx2 { } pub unsafe fn SetRestoreMetadata(&self, wszrestoremetadata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRestoreMetadata)(windows_core::Interface::as_raw(self), wszrestoremetadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRestoreMetadata)(windows_core::Interface::as_raw(self), wszrestoremetadata.param().abi()).ok() } pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetRestoreMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrrestoremetadata)).ok() @@ -581,27 +581,27 @@ impl IVssComponentEx2 { } pub unsafe fn SetPreRestoreFailureMsg(&self, wszprerestorefailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszprerestorefailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszprerestorefailuremsg.param().abi()).ok() } pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetPreRestoreFailureMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrprerestorefailuremsg)).ok() } pub unsafe fn SetPostRestoreFailureMsg(&self, wszpostrestorefailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszpostrestorefailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), wszpostrestorefailuremsg.param().abi()).ok() } pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetPostRestoreFailureMsg)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrpostrestorefailuremsg)).ok() } pub unsafe fn SetBackupStamp(&self, wszbackupstamp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetBackupStamp)(windows_core::Interface::as_raw(self), wszbackupstamp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetBackupStamp)(windows_core::Interface::as_raw(self), wszbackupstamp.param().abi()).ok() } pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetBackupStamp)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrbackupstamp)).ok() @@ -626,20 +626,20 @@ impl IVssComponentEx2 { } pub unsafe fn AddDifferencedFilesByLastModifyTime(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, ftlastmodifytime: super::super::Foundation::FILETIME) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDifferencedFilesByLastModifyTime)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive.into_param().abi(), core::mem::transmute(ftlastmodifytime)).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDifferencedFilesByLastModifyTime)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive.param().abi(), core::mem::transmute(ftlastmodifytime)).ok() } pub unsafe fn AddDifferencedFilesByLastModifyLSN(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDifferencedFilesByLastModifyLSN)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive.into_param().abi(), bstrlsnstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDifferencedFilesByLastModifyLSN)(windows_core::Interface::as_raw(self), wszpath.param().abi(), wszfilespec.param().abi(), brecursive.param().abi(), bstrlsnstring.param().abi()).ok() } pub unsafe fn GetDifferencedFilesCount(&self, pcdifferencedfiles: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetDifferencedFilesCount)(windows_core::Interface::as_raw(self), pcdifferencedfiles).ok() @@ -649,15 +649,15 @@ impl IVssComponentEx2 { } pub unsafe fn SetPrepareForBackupFailureMsg(&self, wszfailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPrepareForBackupFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPrepareForBackupFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.param().abi()).ok() } pub unsafe fn SetPostSnapshotFailureMsg(&self, wszfailuremsg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPostSnapshotFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPostSnapshotFailureMsg)(windows_core::Interface::as_raw(self), wszfailuremsg.param().abi()).ok() } pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -680,9 +680,9 @@ impl IVssComponentEx2 { } pub unsafe fn SetFailure(&self, hr: windows_core::HRESULT, hrapplication: windows_core::HRESULT, wszapplicationmessage: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFailure)(windows_core::Interface::as_raw(self), hr, hrapplication, wszapplicationmessage.into_param().abi(), 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), phr, phrapplication, core::mem::transmute(pbstrapplicationmessage), pdwreserved).ok() @@ -699,44 +699,44 @@ windows_core::imp::interface_hierarchy!(IVssCreateExpressWriterMetadata, windows impl IVssCreateExpressWriterMetadata { pub unsafe fn AddExcludeFiles(&self, wszpath: P0, wszfilespec: P1, brecursive: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExcludeFiles)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), 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: P0, wszcomponentname: P1, wszcaption: P2, pbicon: *const u8, cbicon: u32, brestoremetadata: u8, bnotifyonbackupcomplete: u8, bselectable: u8, bselectableforrestore: u8, dwcomponentflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddComponent)(windows_core::Interface::as_raw(self), ct, wszlogicalpath.into_param().abi(), wszcomponentname.into_param().abi(), wszcaption.into_param().abi(), pbicon, cbicon, brestoremetadata, bnotifyonbackupcomplete, bselectable, bselectableforrestore, 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: P4, dwbackuptypemask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilesToFileGroup)(windows_core::Interface::as_raw(self), wszlogicalpath.into_param().abi(), wszgroupname.into_param().abi(), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive, wszalternatelocation.into_param().abi(), 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: P0, wszuserprocedure: P1, writerrestore: VSS_WRITERRESTORE_ENUM, brebootrequired: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRestoreMethod)(windows_core::Interface::as_raw(self), method, wszservice.into_param().abi(), wszuserprocedure.into_param().abi(), writerrestore, 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: P2, wszoncomponentname: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddComponentDependency)(windows_core::Interface::as_raw(self), wszforlogicalpath.into_param().abi(), wszforcomponentname.into_param().abi(), core::mem::transmute(onwriterid), wszonlogicalpath.into_param().abi(), wszoncomponentname.into_param().abi()).ok() + (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), dwschemamask).ok() @@ -761,78 +761,78 @@ windows_core::imp::define_interface!(IVssCreateWriterMetadata, IVssCreateWriterM impl IVssCreateWriterMetadata { pub unsafe fn AddIncludeFiles(&self, wszpath: P0, wszfilespec: P1, brecursive: u8, wszalternatelocation: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddIncludeFiles)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive, wszalternatelocation.into_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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExcludeFiles)(windows_core::Interface::as_raw(self), wszpath.into_param().abi(), wszfilespec.into_param().abi(), 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: P0, wszcomponentname: P1, wszcaption: P2, pbicon: *const u8, cbicon: u32, brestoremetadata: u8, bnotifyonbackupcomplete: u8, bselectable: u8, bselectableforrestore: u8, dwcomponentflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddComponent)(windows_core::Interface::as_raw(self), ct, wszlogicalpath.into_param().abi(), wszcomponentname.into_param().abi(), wszcaption.into_param().abi(), pbicon, cbicon, brestoremetadata, bnotifyonbackupcomplete, bselectable, bselectableforrestore, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDatabaseFiles)(windows_core::Interface::as_raw(self), wszlogicalpath.into_param().abi(), wszdatabasename.into_param().abi(), wszpath.into_param().abi(), wszfilespec.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDatabaseLogFiles)(windows_core::Interface::as_raw(self), wszlogicalpath.into_param().abi(), wszdatabasename.into_param().abi(), wszpath.into_param().abi(), wszfilespec.into_param().abi(), 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: P4, dwbackuptypemask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilesToFileGroup)(windows_core::Interface::as_raw(self), wszlogicalpath.into_param().abi(), wszgroupname.into_param().abi(), wszpath.into_param().abi(), wszfilespec.into_param().abi(), brecursive, wszalternatelocation.into_param().abi(), 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: P0, wszuserprocedure: P1, writerrestore: VSS_WRITERRESTORE_ENUM, brebootrequired: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRestoreMethod)(windows_core::Interface::as_raw(self), method, wszservice.into_param().abi(), wszuserprocedure.into_param().abi(), writerrestore, 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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAlternateLocationMapping)(windows_core::Interface::as_raw(self), wszsourcepath.into_param().abi(), wszsourcefilespec.into_param().abi(), brecursive, wszdestination.into_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: P2, wszoncomponentname: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddComponentDependency)(windows_core::Interface::as_raw(self), wszforlogicalpath.into_param().abi(), wszforcomponentname.into_param().abi(), core::mem::transmute(onwriterid), wszonlogicalpath.into_param().abi(), wszoncomponentname.into_param().abi()).ok() + (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), dwschemamask).ok() @@ -927,9 +927,9 @@ impl IVssDifferentialSoftwareSnapshotMgmt2 { } pub unsafe fn ChangeDiffAreaMaximumSizeEx(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeDiffAreaMaximumSizeEx)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace, bvolatile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangeDiffAreaMaximumSizeEx)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace, bvolatile.param().abi()).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), pwszvolumename, pwszdiffareavolumename, pwsznewdiffareavolumename).ok() @@ -977,9 +977,9 @@ impl IVssDifferentialSoftwareSnapshotMgmt3 { } pub unsafe fn ChangeDiffAreaMaximumSizeEx(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ChangeDiffAreaMaximumSizeEx)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace, bvolatile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ChangeDiffAreaMaximumSizeEx)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace, bvolatile.param().abi()).ok() } pub unsafe fn MigrateDiffAreas(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, pwsznewdiffareavolumename: *const u16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.MigrateDiffAreas)(windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, pwsznewdiffareavolumename).ok() @@ -1069,16 +1069,16 @@ windows_core::imp::interface_hierarchy!(IVssExpressWriter, windows_core::IUnknow impl IVssExpressWriter { pub unsafe fn CreateMetadata(&self, writerid: windows_core::GUID, writername: P0, usagetype: VSS_USAGE_TYPE, versionmajor: u32, versionminor: u32, reserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadata)(windows_core::Interface::as_raw(self), core::mem::transmute(writerid), writername.into_param().abi(), usagetype, versionmajor, versionminor, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadMetadata)(windows_core::Interface::as_raw(self), metadata.into_param().abi(), 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() @@ -1110,9 +1110,9 @@ impl IVssFileShareSnapshotProvider { } pub unsafe fn DeleteSnapshots(&self, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: P0, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), esourceobjecttype, bforcedelete.into_param().abi(), pldeletedsnapshots, pnondeletedsnapshotid).ok() + (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), esourceobjecttype, bforcedelete.param().abi(), pldeletedsnapshots, 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), pwszsharepath, lnewcontext, core::mem::transmute(providerid)).ok() @@ -1126,9 +1126,9 @@ impl IVssFileShareSnapshotProvider { } pub unsafe fn SetSnapshotProperty(&self, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), esnapshotpropertyid, vproperty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), esnapshotpropertyid, vproperty.param().abi()).ok() } } #[repr(C)] @@ -1302,15 +1302,15 @@ windows_core::imp::interface_hierarchy!(IVssProviderNotifications, windows_core: impl IVssProviderNotifications { pub unsafe fn OnLoad(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLoad)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnLoad)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn OnUnload(&self, bforceunload: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUnload)(windows_core::Interface::as_raw(self), bforceunload.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnUnload)(windows_core::Interface::as_raw(self), bforceunload.param().abi()).ok() } } #[repr(C)] @@ -1370,9 +1370,9 @@ impl IVssSoftwareSnapshotProvider { } pub unsafe fn DeleteSnapshots(&self, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: P0, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), esourceobjecttype, bforcedelete.into_param().abi(), pldeletedsnapshots, pnondeletedsnapshotid).ok() + (windows_core::Interface::vtable(self).DeleteSnapshots)(windows_core::Interface::as_raw(self), core::mem::transmute(sourceobjectid), esourceobjecttype, bforcedelete.param().abi(), pldeletedsnapshots, 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), pwszvolumename, lnewcontext).ok() @@ -1386,9 +1386,9 @@ impl IVssSoftwareSnapshotProvider { } pub unsafe fn SetSnapshotProperty(&self, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), esnapshotpropertyid, vproperty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSnapshotProperty)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotid), esnapshotpropertyid, vproperty.param().abi()).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() 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 cf0ca05f42..319e6aea67 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 @@ -2,26 +2,26 @@ #[inline] pub unsafe fn StartXpsPrintJob(printername: P0, jobname: P1, outputfilename: P2, progressevent: P3, completionevent: P4, printablepageson: &[u8], xpsprintjob: *mut Option, documentstream: *mut Option, printticketstream: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), jobname.into_param().abi(), outputfilename.into_param().abi(), progressevent.into_param().abi(), completionevent.into_param().abi(), 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.param().abi(), completionevent.param().abi(), 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: P3, completionevent: P4, xpsprintjob: *mut Option, printcontentreceiver: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), jobname.into_param().abi(), outputfilename.into_param().abi(), progressevent.into_param().abi(), completionevent.into_param().abi(), core::mem::transmute(xpsprintjob), core::mem::transmute(printcontentreceiver)).ok() + StartXpsPrintJob1(printername.param().abi(), jobname.param().abi(), outputfilename.param().abi(), progressevent.param().abi(), completionevent.param().abi(), core::mem::transmute(xpsprintjob), core::mem::transmute(printcontentreceiver)).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IPrintDocumentPackageStatusEvent, IPrintDocumentPackageStatusEvent_Vtbl, 0xed90c8ad_5c34_4d05_a1ec_0e8a9b3ad7af); @@ -90,13 +90,13 @@ impl IPrintDocumentPackageTargetFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDocumentPackageTargetForPrintJob(&self, printername: P0, jobname: P1, joboutputstream: P2, jobprintticketstream: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDocumentPackageTargetForPrintJob)(windows_core::Interface::as_raw(self), printername.into_param().abi(), jobname.into_param().abi(), joboutputstream.into_param().abi(), jobprintticketstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDocumentPackageTargetForPrintJob)(windows_core::Interface::as_raw(self), printername.param().abi(), jobname.param().abi(), joboutputstream.param().abi(), jobprintticketstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] 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 6a840a3a63..934bdfe20b 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs @@ -4,112 +4,112 @@ pub mod Printing; #[inline] pub unsafe fn AbortDoc(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn AbortDoc(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - AbortDoc(hdc.into_param().abi()) + AbortDoc(hdc.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DeviceCapabilitiesA(pdevice: P0, pport: P1, fwcapability: PRINTER_DEVICE_CAPABILITIES, poutput: windows_core::PSTR, pdevmode: Option<*const super::super::Graphics::Gdi::DEVMODEA>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pport.into_param().abi(), fwcapability, core::mem::transmute(poutput), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null()))) + DeviceCapabilitiesA(pdevice.param().abi(), pport.param().abi(), fwcapability, core::mem::transmute(poutput), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DeviceCapabilitiesW(pdevice: P0, pport: P1, fwcapability: PRINTER_DEVICE_CAPABILITIES, poutput: windows_core::PWSTR, pdevmode: Option<*const super::super::Graphics::Gdi::DEVMODEW>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pport.into_param().abi(), fwcapability, core::mem::transmute(poutput), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null()))) + DeviceCapabilitiesW(pdevice.param().abi(), pport.param().abi(), fwcapability, core::mem::transmute(poutput), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EndDoc(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EndDoc(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - EndDoc(hdc.into_param().abi()) + EndDoc(hdc.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EndPage(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EndPage(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - EndPage(hdc.into_param().abi()) + EndPage(hdc.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn Escape(hdc: P0, iescape: i32, pvin: Option<&[u8]>, pvout: Option<*mut core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), 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(std::ptr::null_mut()))) + Escape(hdc.param().abi(), 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(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ExtEscape(hdc: P0, iescape: i32, lpindata: Option<&[u8]>, lpoutdata: Option<&mut [u8]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), 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.param().abi(), 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: P0, hdcblt: P1, nflags: PRINT_WINDOW_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hdcblt.into_param().abi(), nflags) + PrintWindow(hwnd.param().abi(), hdcblt.param().abi(), nflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetAbortProc(hdc: P0, proc: ABORTPROC) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetAbortProc(hdc : super::super::Graphics::Gdi:: HDC, proc : ABORTPROC) -> i32); - SetAbortProc(hdc.into_param().abi(), proc) + SetAbortProc(hdc.param().abi(), proc) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn StartDocA(hdc: P0, lpdi: *const DOCINFOA) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn StartDocA(hdc : super::super::Graphics::Gdi:: HDC, lpdi : *const DOCINFOA) -> i32); - StartDocA(hdc.into_param().abi(), lpdi) + StartDocA(hdc.param().abi(), lpdi) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn StartDocW(hdc: P0, lpdi: *const DOCINFOW) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn StartDocW(hdc : super::super::Graphics::Gdi:: HDC, lpdi : *const DOCINFOW) -> i32); - StartDocW(hdc.into_param().abi(), lpdi) + StartDocW(hdc.param().abi(), lpdi) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn StartPage(hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn StartPage(hdc : super::super::Graphics::Gdi:: HDC) -> i32); - StartPage(hdc.into_param().abi()) + StartPage(hdc.param().abi()) } windows_core::imp::define_interface!(IXpsDocumentPackageTarget, IXpsDocumentPackageTarget_Vtbl, 0x3b0b6d38_53ad_41da_b212_d37637a6714e); windows_core::imp::interface_hierarchy!(IXpsDocumentPackageTarget, windows_core::IUnknown); @@ -117,11 +117,11 @@ impl IXpsDocumentPackageTarget { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetXpsOMPackageWriter(&self, documentsequencepartname: P0, discardcontrolpartname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetXpsOMPackageWriter)(windows_core::Interface::as_raw(self), documentsequencepartname.into_param().abi(), discardcontrolpartname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetXpsOMPackageWriter)(windows_core::Interface::as_raw(self), documentsequencepartname.param().abi(), discardcontrolpartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetXpsOMFactory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -148,13 +148,13 @@ impl IXpsDocumentPackageTarget3D { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetXpsOMPackageWriter3D(&self, documentsequencepartname: P0, discardcontrolpartname: P1, modelpartname: P2, modeldata: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetXpsOMPackageWriter3D)(windows_core::Interface::as_raw(self), documentsequencepartname.into_param().abi(), discardcontrolpartname.into_param().abi(), modelpartname.into_param().abi(), modeldata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetXpsOMPackageWriter3D)(windows_core::Interface::as_raw(self), documentsequencepartname.param().abi(), discardcontrolpartname.param().abi(), modelpartname.param().abi(), modeldata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetXpsOMFactory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -216,9 +216,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetTransformLocal(&self, matrixtransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -226,9 +226,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetClipGeometry(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -240,9 +240,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetClipGeometryLocal(&self, clipgeometry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.param().abi()).ok() } pub unsafe fn GetClipGeometryLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -250,9 +250,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetClipGeometryLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -271,9 +271,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetOpacityMaskBrushLocal(&self, opacitymaskbrush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.param().abi()).ok() } pub unsafe fn GetOpacityMaskBrushLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -281,9 +281,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetOpacityMaskBrushLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -291,9 +291,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -301,9 +301,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetIsHyperlinkTarget(&self, ishyperlink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetHyperlinkNavigateUri(&self) -> windows_core::Result { @@ -313,9 +313,9 @@ impl IXpsOMCanvas { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHyperlinkNavigateUri(&self, hyperlinkuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.param().abi()).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -323,9 +323,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetLanguage(&self, language: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.param().abi()).ok() } pub unsafe fn GetVisuals(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -337,9 +337,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetUseAliasedEdgeMode(&self, usealiasededgemode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseAliasedEdgeMode)(windows_core::Interface::as_raw(self), usealiasededgemode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseAliasedEdgeMode)(windows_core::Interface::as_raw(self), usealiasededgemode.param().abi()).ok() } pub unsafe fn GetAccessibilityShortDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -347,9 +347,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetAccessibilityShortDescription(&self, shortdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccessibilityShortDescription)(windows_core::Interface::as_raw(self), shortdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccessibilityShortDescription)(windows_core::Interface::as_raw(self), shortdescription.param().abi()).ok() } pub unsafe fn GetAccessibilityLongDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -357,9 +357,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetAccessibilityLongDescription(&self, longdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccessibilityLongDescription)(windows_core::Interface::as_raw(self), longdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccessibilityLongDescription)(windows_core::Interface::as_raw(self), longdescription.param().abi()).ok() } pub unsafe fn GetDictionary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -371,9 +371,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetDictionaryLocal(&self, resourcedictionary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDictionaryLocal)(windows_core::Interface::as_raw(self), resourcedictionary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDictionaryLocal)(windows_core::Interface::as_raw(self), resourcedictionary.param().abi()).ok() } pub unsafe fn GetDictionaryResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -381,9 +381,9 @@ impl IXpsOMCanvas { } pub unsafe fn SetDictionaryResource(&self, remotedictionaryresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDictionaryResource)(windows_core::Interface::as_raw(self), remotedictionaryresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDictionaryResource)(windows_core::Interface::as_raw(self), remotedictionaryresource.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -418,9 +418,9 @@ impl IXpsOMColorProfileResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStream(&self) -> windows_core::Result { @@ -430,10 +430,10 @@ impl IXpsOMColorProfileResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetContent(&self, sourcestream: P0, partname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), partname.param().abi()).ok() } } #[repr(C)] @@ -461,32 +461,32 @@ impl IXpsOMColorProfileResourceCollection { } pub unsafe fn InsertAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetByPartName(&self, partname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -514,9 +514,9 @@ impl IXpsOMCoreProperties { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -528,9 +528,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetCategory(&self, category: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCategory)(windows_core::Interface::as_raw(self), category.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCategory)(windows_core::Interface::as_raw(self), category.param().abi()).ok() } pub unsafe fn GetContentStatus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -538,9 +538,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetContentStatus(&self, contentstatus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContentStatus)(windows_core::Interface::as_raw(self), contentstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContentStatus)(windows_core::Interface::as_raw(self), contentstatus.param().abi()).ok() } pub unsafe fn GetContentType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -548,9 +548,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetContentType(&self, contenttype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContentType)(windows_core::Interface::as_raw(self), contenttype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContentType)(windows_core::Interface::as_raw(self), contenttype.param().abi()).ok() } pub unsafe fn GetCreated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -565,9 +565,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetCreator(&self, creator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCreator)(windows_core::Interface::as_raw(self), creator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCreator)(windows_core::Interface::as_raw(self), creator.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -575,9 +575,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn GetIdentifier(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -585,9 +585,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetIdentifier(&self, identifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIdentifier)(windows_core::Interface::as_raw(self), identifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIdentifier)(windows_core::Interface::as_raw(self), identifier.param().abi()).ok() } pub unsafe fn GetKeywords(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -595,9 +595,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetKeywords(&self, keywords: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeywords)(windows_core::Interface::as_raw(self), keywords.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeywords)(windows_core::Interface::as_raw(self), keywords.param().abi()).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -605,9 +605,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetLanguage(&self, language: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), language.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), language.param().abi()).ok() } pub unsafe fn GetLastModifiedBy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -615,9 +615,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetLastModifiedBy(&self, lastmodifiedby: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLastModifiedBy)(windows_core::Interface::as_raw(self), lastmodifiedby.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLastModifiedBy)(windows_core::Interface::as_raw(self), lastmodifiedby.param().abi()).ok() } pub unsafe fn GetLastPrinted(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -639,9 +639,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetRevision(&self, revision: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRevision)(windows_core::Interface::as_raw(self), revision.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRevision)(windows_core::Interface::as_raw(self), revision.param().abi()).ok() } pub unsafe fn GetSubject(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -649,9 +649,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetSubject(&self, subject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), subject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), subject.param().abi()).ok() } pub unsafe fn GetTitle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -659,9 +659,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetTitle(&self, title: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), title.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), title.param().abi()).ok() } pub unsafe fn GetVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -669,9 +669,9 @@ impl IXpsOMCoreProperties { } pub unsafe fn SetVersion(&self, version: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), version.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), version.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -767,42 +767,42 @@ impl IXpsOMDictionary { } pub unsafe fn GetByKey(&self, key: P0, beforeentry: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetByKey)(windows_core::Interface::as_raw(self), key.into_param().abi(), beforeentry.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetByKey)(windows_core::Interface::as_raw(self), key.param().abi(), beforeentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetIndex(&self, entry: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), entry.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIndex)(windows_core::Interface::as_raw(self), entry.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Append(&self, key: P0, entry: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), key.into_param().abi(), entry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), key.param().abi(), entry.param().abi()).ok() } pub unsafe fn InsertAt(&self, index: u32, key: P0, entry: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, key.into_param().abi(), entry.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, key: P0, entry: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, key.into_param().abi(), entry.into_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__ = std::mem::zeroed(); @@ -834,9 +834,9 @@ impl IXpsOMDocument { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -852,9 +852,9 @@ impl IXpsOMDocument { } pub unsafe fn SetPrintTicketResource(&self, printticketresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintTicketResource)(windows_core::Interface::as_raw(self), printticketresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintTicketResource)(windows_core::Interface::as_raw(self), printticketresource.param().abi()).ok() } pub unsafe fn GetDocumentStructureResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -862,9 +862,9 @@ impl IXpsOMDocument { } pub unsafe fn SetDocumentStructureResource(&self, documentstructureresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentStructureResource)(windows_core::Interface::as_raw(self), documentstructureresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentStructureResource)(windows_core::Interface::as_raw(self), documentstructureresource.param().abi()).ok() } pub unsafe fn GetSignatureBlockResources(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -900,24 +900,24 @@ impl IXpsOMDocumentCollection { } pub unsafe fn InsertAt(&self, index: u32, document: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, document.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, document: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, document.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), document.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), document.param().abi()).ok() } } #[repr(C)] @@ -941,9 +941,9 @@ impl IXpsOMDocumentSequence { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -959,9 +959,9 @@ impl IXpsOMDocumentSequence { } pub unsafe fn SetPrintTicketResource(&self, printticketresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintTicketResource)(windows_core::Interface::as_raw(self), printticketresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintTicketResource)(windows_core::Interface::as_raw(self), printticketresource.param().abi()).ok() } } #[repr(C)] @@ -983,9 +983,9 @@ impl IXpsOMDocumentStructureResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -999,10 +999,10 @@ impl IXpsOMDocumentStructureResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetContent(&self, sourcestream: P0, partname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), partname.param().abi()).ok() } } #[repr(C)] @@ -1029,9 +1029,9 @@ impl IXpsOMFontResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStream(&self) -> windows_core::Result { @@ -1041,10 +1041,10 @@ impl IXpsOMFontResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetContent(&self, sourcestream: P0, embeddingoption: XPS_FONT_EMBEDDING, partname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), embeddingoption, partname.into_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__ = std::mem::zeroed(); @@ -1077,21 +1077,21 @@ impl IXpsOMFontResourceCollection { } pub unsafe fn SetAt(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, value.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, value.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (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), index).ok() @@ -1099,10 +1099,10 @@ impl IXpsOMFontResourceCollection { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetByPartName(&self, partname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1151,9 +1151,9 @@ impl IXpsOMGeometry { } pub unsafe fn SetTransformLocal(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1161,9 +1161,9 @@ impl IXpsOMGeometry { } pub unsafe fn SetTransformLookup(&self, lookup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), lookup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), lookup.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1215,9 +1215,9 @@ impl IXpsOMGeometryFigure { } pub unsafe fn SetIsClosed(&self, isclosed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsClosed)(windows_core::Interface::as_raw(self), isclosed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsClosed)(windows_core::Interface::as_raw(self), isclosed.param().abi()).ok() } pub unsafe fn GetIsFilled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1225,9 +1225,9 @@ impl IXpsOMGeometryFigure { } pub unsafe fn SetIsFilled(&self, isfilled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsFilled)(windows_core::Interface::as_raw(self), isfilled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsFilled)(windows_core::Interface::as_raw(self), isfilled.param().abi()).ok() } pub unsafe fn GetSegmentCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1278,24 +1278,24 @@ impl IXpsOMGeometryFigureCollection { } pub unsafe fn InsertAt(&self, index: u32, geometryfigure: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, geometryfigure.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, geometryfigure: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, geometryfigure.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), geometryfigure.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), geometryfigure.param().abi()).ok() } } #[repr(C)] @@ -1329,9 +1329,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetTransformLocal(&self, matrixtransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1339,9 +1339,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetClipGeometry(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1353,9 +1353,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetClipGeometryLocal(&self, clipgeometry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.param().abi()).ok() } pub unsafe fn GetClipGeometryLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1363,9 +1363,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetClipGeometryLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1384,9 +1384,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetOpacityMaskBrushLocal(&self, opacitymaskbrush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.param().abi()).ok() } pub unsafe fn GetOpacityMaskBrushLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1394,9 +1394,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetOpacityMaskBrushLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1404,9 +1404,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1414,9 +1414,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetIsHyperlinkTarget(&self, ishyperlink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetHyperlinkNavigateUri(&self) -> windows_core::Result { @@ -1426,9 +1426,9 @@ impl IXpsOMGlyphs { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHyperlinkNavigateUri(&self, hyperlinkuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.param().abi()).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1436,9 +1436,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetLanguage(&self, language: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.param().abi()).ok() } pub unsafe fn GetUnicodeString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1504,9 +1504,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetFontResource(&self, fontresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFontResource)(windows_core::Interface::as_raw(self), fontresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFontResource)(windows_core::Interface::as_raw(self), fontresource.param().abi()).ok() } pub unsafe fn GetFontFaceIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1525,9 +1525,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetFillBrushLocal(&self, fillbrush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFillBrushLocal)(windows_core::Interface::as_raw(self), fillbrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFillBrushLocal)(windows_core::Interface::as_raw(self), fillbrush.param().abi()).ok() } pub unsafe fn GetFillBrushLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1535,9 +1535,9 @@ impl IXpsOMGlyphs { } pub unsafe fn SetFillBrushLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFillBrushLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFillBrushLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetGlyphsEditor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1591,9 +1591,9 @@ impl IXpsOMGlyphsEditor { } pub unsafe fn SetUnicodeString(&self, unicodestring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnicodeString)(windows_core::Interface::as_raw(self), unicodestring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUnicodeString)(windows_core::Interface::as_raw(self), unicodestring.param().abi()).ok() } pub unsafe fn GetGlyphIndexCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1638,9 +1638,9 @@ impl IXpsOMGlyphsEditor { } pub unsafe fn SetIsSideways(&self, issideways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsSideways)(windows_core::Interface::as_raw(self), issideways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsSideways)(windows_core::Interface::as_raw(self), issideways.param().abi()).ok() } pub unsafe fn GetDeviceFontName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1648,9 +1648,9 @@ impl IXpsOMGlyphsEditor { } pub unsafe fn SetDeviceFontName(&self, devicefontname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeviceFontName)(windows_core::Interface::as_raw(self), devicefontname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDeviceFontName)(windows_core::Interface::as_raw(self), devicefontname.param().abi()).ok() } } #[repr(C)] @@ -1707,9 +1707,9 @@ impl IXpsOMGradientBrush { } pub unsafe fn SetTransformLocal(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1717,9 +1717,9 @@ impl IXpsOMGradientBrush { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetSpreadMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1770,9 +1770,9 @@ impl IXpsOMGradientStop { } pub unsafe fn SetColor(&self, color: *const XPS_COLOR, colorprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color, colorprofile.into_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__ = std::mem::zeroed(); @@ -1802,24 +1802,24 @@ impl IXpsOMGradientStopCollection { } pub unsafe fn InsertAt(&self, index: u32, stop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, stop.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, stop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, stop.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), stop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), stop.param().abi()).ok() } } #[repr(C)] @@ -1860,9 +1860,9 @@ impl IXpsOMImageBrush { } pub unsafe fn SetTransformLocal(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1870,9 +1870,9 @@ impl IXpsOMImageBrush { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetViewbox(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1901,9 +1901,9 @@ impl IXpsOMImageBrush { } pub unsafe fn SetImageResource(&self, imageresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImageResource)(windows_core::Interface::as_raw(self), imageresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImageResource)(windows_core::Interface::as_raw(self), imageresource.param().abi()).ok() } pub unsafe fn GetColorProfileResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1911,9 +1911,9 @@ impl IXpsOMImageBrush { } pub unsafe fn SetColorProfileResource(&self, colorprofileresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColorProfileResource)(windows_core::Interface::as_raw(self), colorprofileresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetColorProfileResource)(windows_core::Interface::as_raw(self), colorprofileresource.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1940,9 +1940,9 @@ impl IXpsOMImageResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStream(&self) -> windows_core::Result { @@ -1952,10 +1952,10 @@ impl IXpsOMImageResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetContent(&self, sourcestream: P0, imagetype: XPS_IMAGE_TYPE, partname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), imagetype, partname.into_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__ = std::mem::zeroed(); @@ -1988,32 +1988,32 @@ impl IXpsOMImageResourceCollection { } pub unsafe fn InsertAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetByPartName(&self, partname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2062,9 +2062,9 @@ impl IXpsOMLinearGradientBrush { } pub unsafe fn SetTransformLocal(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2072,9 +2072,9 @@ impl IXpsOMLinearGradientBrush { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetSpreadMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2175,66 +2175,66 @@ impl IXpsOMObjectFactory { } pub unsafe fn CreatePackageFromFile(&self, filename: P0, reuseobjects: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageFromFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageFromFile)(windows_core::Interface::as_raw(self), filename.param().abi(), reuseobjects.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePackageFromStream(&self, stream: P0, reuseobjects: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageFromStream)(windows_core::Interface::as_raw(self), stream.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageFromStream)(windows_core::Interface::as_raw(self), stream.param().abi(), reuseobjects.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 CreateStoryFragmentsResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStoryFragmentsResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStoryFragmentsResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateDocumentStructureResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDocumentStructureResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDocumentStructureResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateSignatureBlockResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSignatureBlockResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSignatureBlockResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateRemoteDictionaryResource(&self, dictionary: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRemoteDictionaryResource)(windows_core::Interface::as_raw(self), dictionary.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRemoteDictionaryResource)(windows_core::Interface::as_raw(self), dictionary.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 CreateRemoteDictionaryResourceFromStream(&self, dictionarymarkupstream: P0, dictionaryparturi: P1, resources: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRemoteDictionaryResourceFromStream)(windows_core::Interface::as_raw(self), dictionarymarkupstream.into_param().abi(), dictionaryparturi.into_param().abi(), resources.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRemoteDictionaryResourceFromStream)(windows_core::Interface::as_raw(self), dictionarymarkupstream.param().abi(), dictionaryparturi.param().abi(), resources.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePartResources(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2243,18 +2243,18 @@ impl IXpsOMObjectFactory { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateDocumentSequence(&self, parturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDocumentSequence)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDocumentSequence)(windows_core::Interface::as_raw(self), 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 CreateDocument(&self, parturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDocument)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDocument)(windows_core::Interface::as_raw(self), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePageReference(&self, advisorypagedimensions: *const XPS_SIZE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2263,22 +2263,22 @@ impl IXpsOMObjectFactory { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePage(&self, pagedimensions: *const XPS_SIZE, language: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePage)(windows_core::Interface::as_raw(self), pagedimensions, language.into_param().abi(), parturi.into_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: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePageFromStream)(windows_core::Interface::as_raw(self), pagemarkupstream.into_param().abi(), parturi.into_param().abi(), resources.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePageFromStream)(windows_core::Interface::as_raw(self), pagemarkupstream.param().abi(), parturi.param().abi(), resources.param().abi(), reuseobjects.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCanvas(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2286,10 +2286,10 @@ impl IXpsOMObjectFactory { } pub unsafe fn CreateGlyphs(&self, fontresource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGlyphs)(windows_core::Interface::as_raw(self), fontresource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGlyphs)(windows_core::Interface::as_raw(self), fontresource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2309,26 +2309,26 @@ impl IXpsOMObjectFactory { } pub unsafe fn CreateSolidColorBrush(&self, color: *const XPS_COLOR, colorprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSolidColorBrush)(windows_core::Interface::as_raw(self), color, colorprofile.into_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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateColorProfileResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateColorProfileResource)(windows_core::Interface::as_raw(self), acquiredstream.param().abi(), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateImageBrush(&self, image: P0, viewbox: *const XPS_RECT, viewport: *const XPS_RECT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), viewbox, 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__ = std::mem::zeroed(); @@ -2337,61 +2337,61 @@ impl IXpsOMObjectFactory { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateImageResource(&self, acquiredstream: P0, contenttype: XPS_IMAGE_TYPE, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), contenttype, parturi.into_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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePrintTicketResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePrintTicketResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateFontResource(&self, acquiredstream: P0, fontembedding: XPS_FONT_EMBEDDING, parturi: P1, isobfsourcestream: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFontResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), fontembedding, parturi.into_param().abi(), isobfsourcestream.into_param().abi(), &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.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateGradientStop(&self, color: *const XPS_COLOR, colorprofile: P0, offset: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGradientStop)(windows_core::Interface::as_raw(self), color, colorprofile.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.into_param().abi(), gradstop2.into_param().abi(), startpoint, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.into_param().abi(), gradstop2.into_param().abi(), centerpoint, gradientorigin, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCoreProperties)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCoreProperties)(windows_core::Interface::as_raw(self), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDictionary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2404,46 +2404,46 @@ impl IXpsOMObjectFactory { #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePackageWriterOnFile(&self, filename: P0, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: P1, interleaving: XPS_INTERLEAVING, documentsequencepartname: P2, coreproperties: P3, packagethumbnail: P4, documentsequenceprintticket: P5, discardcontrolpartname: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into_param().abi(), interleaving, documentsequencepartname.into_param().abi(), coreproperties.into_param().abi(), packagethumbnail.into_param().abi(), documentsequenceprintticket.into_param().abi(), discardcontrolpartname.into_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.param().abi(), 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: P1, interleaving: XPS_INTERLEAVING, documentsequencepartname: P2, coreproperties: P3, packagethumbnail: P4, documentsequenceprintticket: P5, discardcontrolpartname: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnStream)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), optimizemarkupsize.into_param().abi(), interleaving, documentsequencepartname.into_param().abi(), coreproperties.into_param().abi(), packagethumbnail.into_param().abi(), documentsequenceprintticket.into_param().abi(), discardcontrolpartname.into_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.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePartUri)(windows_core::Interface::as_raw(self), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePartUri)(windows_core::Interface::as_raw(self), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateReadOnlyStreamOnFile(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReadOnlyStreamOnFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateReadOnlyStreamOnFile)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2553,66 +2553,66 @@ impl IXpsOMObjectFactory1 { } pub unsafe fn CreatePackageFromFile(&self, filename: P0, reuseobjects: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePackageFromFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePackageFromFile)(windows_core::Interface::as_raw(self), filename.param().abi(), reuseobjects.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePackageFromStream(&self, stream: P0, reuseobjects: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePackageFromStream)(windows_core::Interface::as_raw(self), stream.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePackageFromStream)(windows_core::Interface::as_raw(self), stream.param().abi(), reuseobjects.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 CreateStoryFragmentsResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateStoryFragmentsResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateStoryFragmentsResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateDocumentStructureResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDocumentStructureResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDocumentStructureResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateSignatureBlockResource(&self, acquiredstream: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSignatureBlockResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSignatureBlockResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateRemoteDictionaryResource(&self, dictionary: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRemoteDictionaryResource)(windows_core::Interface::as_raw(self), dictionary.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRemoteDictionaryResource)(windows_core::Interface::as_raw(self), dictionary.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 CreateRemoteDictionaryResourceFromStream(&self, dictionarymarkupstream: P0, dictionaryparturi: P1, resources: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRemoteDictionaryResourceFromStream)(windows_core::Interface::as_raw(self), dictionarymarkupstream.into_param().abi(), dictionaryparturi.into_param().abi(), resources.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateRemoteDictionaryResourceFromStream)(windows_core::Interface::as_raw(self), dictionarymarkupstream.param().abi(), dictionaryparturi.param().abi(), resources.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePartResources(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2621,18 +2621,18 @@ impl IXpsOMObjectFactory1 { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateDocumentSequence(&self, parturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDocumentSequence)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDocumentSequence)(windows_core::Interface::as_raw(self), 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 CreateDocument(&self, parturi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDocument)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDocument)(windows_core::Interface::as_raw(self), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePageReference(&self, advisorypagedimensions: *const XPS_SIZE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2641,22 +2641,22 @@ impl IXpsOMObjectFactory1 { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePage(&self, pagedimensions: *const XPS_SIZE, language: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePage)(windows_core::Interface::as_raw(self), pagedimensions, language.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePageFromStream)(windows_core::Interface::as_raw(self), pagemarkupstream.into_param().abi(), parturi.into_param().abi(), resources.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePageFromStream)(windows_core::Interface::as_raw(self), pagemarkupstream.param().abi(), parturi.param().abi(), resources.param().abi(), reuseobjects.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateCanvas(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2664,10 +2664,10 @@ impl IXpsOMObjectFactory1 { } pub unsafe fn CreateGlyphs(&self, fontresource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateGlyphs)(windows_core::Interface::as_raw(self), fontresource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateGlyphs)(windows_core::Interface::as_raw(self), fontresource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2687,26 +2687,26 @@ impl IXpsOMObjectFactory1 { } pub unsafe fn CreateSolidColorBrush(&self, color: *const XPS_COLOR, colorprofile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSolidColorBrush)(windows_core::Interface::as_raw(self), color, colorprofile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateColorProfileResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateColorProfileResource)(windows_core::Interface::as_raw(self), acquiredstream.param().abi(), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateImageBrush(&self, image: P0, viewbox: *const XPS_RECT, viewport: *const XPS_RECT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateImageBrush)(windows_core::Interface::as_raw(self), image.into_param().abi(), viewbox, viewport, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -2715,61 +2715,61 @@ impl IXpsOMObjectFactory1 { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateImageResource(&self, acquiredstream: P0, contenttype: XPS_IMAGE_TYPE, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateImageResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), contenttype, parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePrintTicketResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePrintTicketResource)(windows_core::Interface::as_raw(self), acquiredstream.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 CreateFontResource(&self, acquiredstream: P0, fontembedding: XPS_FONT_EMBEDDING, parturi: P1, isobfsourcestream: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateFontResource)(windows_core::Interface::as_raw(self), acquiredstream.into_param().abi(), fontembedding, parturi.into_param().abi(), isobfsourcestream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateFontResource)(windows_core::Interface::as_raw(self), acquiredstream.param().abi(), fontembedding, parturi.param().abi(), isobfsourcestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateGradientStop(&self, color: *const XPS_COLOR, colorprofile: P0, offset: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateGradientStop)(windows_core::Interface::as_raw(self), color, colorprofile.into_param().abi(), offset, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateLinearGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.into_param().abi(), gradstop2.into_param().abi(), startpoint, endpoint, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateRadialGradientBrush)(windows_core::Interface::as_raw(self), gradstop1.into_param().abi(), gradstop2.into_param().abi(), centerpoint, gradientorigin, radiisizes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateCoreProperties)(windows_core::Interface::as_raw(self), parturi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateCoreProperties)(windows_core::Interface::as_raw(self), parturi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDictionary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2782,101 +2782,101 @@ impl IXpsOMObjectFactory1 { #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePackageWriterOnFile(&self, filename: P0, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: P1, interleaving: XPS_INTERLEAVING, documentsequencepartname: P2, coreproperties: P3, packagethumbnail: P4, documentsequenceprintticket: P5, discardcontrolpartname: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePackageWriterOnFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into_param().abi(), interleaving, documentsequencepartname.into_param().abi(), coreproperties.into_param().abi(), packagethumbnail.into_param().abi(), documentsequenceprintticket.into_param().abi(), discardcontrolpartname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePackageWriterOnFile)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.param().abi(), 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: P1, interleaving: XPS_INTERLEAVING, documentsequencepartname: P2, coreproperties: P3, packagethumbnail: P4, documentsequenceprintticket: P5, discardcontrolpartname: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePackageWriterOnStream)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), optimizemarkupsize.into_param().abi(), interleaving, documentsequencepartname.into_param().abi(), coreproperties.into_param().abi(), packagethumbnail.into_param().abi(), documentsequenceprintticket.into_param().abi(), discardcontrolpartname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePackageWriterOnStream)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePartUri)(windows_core::Interface::as_raw(self), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePartUri)(windows_core::Interface::as_raw(self), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateReadOnlyStreamOnFile(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateReadOnlyStreamOnFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateReadOnlyStreamOnFile)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDocumentTypeFromFile(&self, filename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDocumentTypeFromFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDocumentTypeFromFile)(windows_core::Interface::as_raw(self), filename.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDocumentTypeFromStream(&self, xpsdocumentstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDocumentTypeFromStream)(windows_core::Interface::as_raw(self), xpsdocumentstream.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDocumentTypeFromStream)(windows_core::Interface::as_raw(self), xpsdocumentstream.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ConvertHDPhotoToJpegXR(&self, imageresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertHDPhotoToJpegXR)(windows_core::Interface::as_raw(self), imageresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertHDPhotoToJpegXR)(windows_core::Interface::as_raw(self), imageresource.param().abi()).ok() } pub unsafe fn ConvertJpegXRToHDPhoto(&self, imageresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertJpegXRToHDPhoto)(windows_core::Interface::as_raw(self), imageresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConvertJpegXRToHDPhoto)(windows_core::Interface::as_raw(self), imageresource.param().abi()).ok() } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreatePackageWriterOnFile1(&self, filename: P0, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: P1, interleaving: XPS_INTERLEAVING, documentsequencepartname: P2, coreproperties: P3, packagethumbnail: P4, documentsequenceprintticket: P5, discardcontrolpartname: P6, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnFile1)(windows_core::Interface::as_raw(self), filename.into_param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into_param().abi(), interleaving, documentsequencepartname.into_param().abi(), coreproperties.into_param().abi(), packagethumbnail.into_param().abi(), documentsequenceprintticket.into_param().abi(), discardcontrolpartname.into_param().abi(), 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.param().abi(), 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: P1, interleaving: XPS_INTERLEAVING, documentsequencepartname: P2, coreproperties: P3, packagethumbnail: P4, documentsequenceprintticket: P5, discardcontrolpartname: P6, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageWriterOnStream1)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), optimizemarkupsize.into_param().abi(), interleaving, documentsequencepartname.into_param().abi(), coreproperties.into_param().abi(), packagethumbnail.into_param().abi(), documentsequenceprintticket.into_param().abi(), discardcontrolpartname.into_param().abi(), 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.param().abi(), 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__ = std::mem::zeroed(); @@ -2885,49 +2885,49 @@ impl IXpsOMObjectFactory1 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePackageFromStream1(&self, stream: P0, reuseobjects: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageFromStream1)(windows_core::Interface::as_raw(self), stream.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageFromStream1)(windows_core::Interface::as_raw(self), stream.param().abi(), reuseobjects.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePackageFromFile1(&self, filename: P0, reuseobjects: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePackageFromFile1)(windows_core::Interface::as_raw(self), filename.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePackageFromFile1)(windows_core::Interface::as_raw(self), filename.param().abi(), reuseobjects.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 CreatePage1(&self, pagedimensions: *const XPS_SIZE, language: P0, parturi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePage1)(windows_core::Interface::as_raw(self), pagedimensions, language.into_param().abi(), parturi.into_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: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePageFromStream1)(windows_core::Interface::as_raw(self), pagemarkupstream.into_param().abi(), parturi.into_param().abi(), resources.into_param().abi(), reuseobjects.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePageFromStream1)(windows_core::Interface::as_raw(self), pagemarkupstream.param().abi(), parturi.param().abi(), resources.param().abi(), reuseobjects.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 CreateRemoteDictionaryResourceFromStream1(&self, dictionarymarkupstream: P0, parturi: P1, resources: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRemoteDictionaryResourceFromStream1)(windows_core::Interface::as_raw(self), dictionarymarkupstream.into_param().abi(), parturi.into_param().abi(), resources.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRemoteDictionaryResourceFromStream1)(windows_core::Interface::as_raw(self), dictionarymarkupstream.param().abi(), parturi.param().abi(), resources.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2976,9 +2976,9 @@ impl IXpsOMPackage { } pub unsafe fn SetDocumentSequence(&self, documentsequence: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentSequence)(windows_core::Interface::as_raw(self), documentsequence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentSequence)(windows_core::Interface::as_raw(self), documentsequence.param().abi()).ok() } pub unsafe fn GetCoreProperties(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2986,9 +2986,9 @@ impl IXpsOMPackage { } pub unsafe fn SetCoreProperties(&self, coreproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCoreProperties)(windows_core::Interface::as_raw(self), coreproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCoreProperties)(windows_core::Interface::as_raw(self), coreproperties.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetDiscardControlPartName(&self) -> windows_core::Result { @@ -2998,9 +2998,9 @@ impl IXpsOMPackage { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetDiscardControlPartName(&self, discardcontrolparturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDiscardControlPartName)(windows_core::Interface::as_raw(self), discardcontrolparturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDiscardControlPartName)(windows_core::Interface::as_raw(self), discardcontrolparturi.param().abi()).ok() } pub unsafe fn GetThumbnailResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3008,25 +3008,25 @@ impl IXpsOMPackage { } pub unsafe fn SetThumbnailResource(&self, imageresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailResource)(windows_core::Interface::as_raw(self), imageresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnailResource)(windows_core::Interface::as_raw(self), imageresource.param().abi()).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn WriteToFile(&self, filename: P0, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteToFile)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteToStream(&self, stream: P0, optimizemarkupsize: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToStream)(windows_core::Interface::as_raw(self), stream.into_param().abi(), optimizemarkupsize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteToStream)(windows_core::Interface::as_raw(self), stream.param().abi(), optimizemarkupsize.param().abi()).ok() } } #[repr(C)] @@ -3064,9 +3064,9 @@ impl IXpsOMPackage1 { } pub unsafe fn SetDocumentSequence(&self, documentsequence: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDocumentSequence)(windows_core::Interface::as_raw(self), documentsequence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDocumentSequence)(windows_core::Interface::as_raw(self), documentsequence.param().abi()).ok() } pub unsafe fn GetCoreProperties(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3074,9 +3074,9 @@ impl IXpsOMPackage1 { } pub unsafe fn SetCoreProperties(&self, coreproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCoreProperties)(windows_core::Interface::as_raw(self), coreproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCoreProperties)(windows_core::Interface::as_raw(self), coreproperties.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetDiscardControlPartName(&self) -> windows_core::Result { @@ -3086,9 +3086,9 @@ impl IXpsOMPackage1 { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetDiscardControlPartName(&self, discardcontrolparturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDiscardControlPartName)(windows_core::Interface::as_raw(self), discardcontrolparturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDiscardControlPartName)(windows_core::Interface::as_raw(self), discardcontrolparturi.param().abi()).ok() } pub unsafe fn GetThumbnailResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3096,25 +3096,25 @@ impl IXpsOMPackage1 { } pub unsafe fn SetThumbnailResource(&self, imageresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetThumbnailResource)(windows_core::Interface::as_raw(self), imageresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetThumbnailResource)(windows_core::Interface::as_raw(self), imageresource.param().abi()).ok() } #[cfg(feature = "Win32_Security")] pub unsafe fn WriteToFile(&self, filename: P0, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WriteToFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.WriteToFile)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteToStream(&self, stream: P0, optimizemarkupsize: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WriteToStream)(windows_core::Interface::as_raw(self), stream.into_param().abi(), optimizemarkupsize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.WriteToStream)(windows_core::Interface::as_raw(self), stream.param().abi(), optimizemarkupsize.param().abi()).ok() } pub unsafe fn GetDocumentType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3123,18 +3123,18 @@ impl IXpsOMPackage1 { #[cfg(feature = "Win32_Security")] pub unsafe fn WriteToFile1(&self, filename: P0, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: P1, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToFile1)(windows_core::Interface::as_raw(self), filename.into_param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.into_param().abi(), documenttype).ok() + (windows_core::Interface::vtable(self).WriteToFile1)(windows_core::Interface::as_raw(self), filename.param().abi(), securityattributes, flagsandattributes, optimizemarkupsize.param().abi(), documenttype).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn WriteToStream1(&self, outputstream: P0, optimizemarkupsize: P1, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteToStream1)(windows_core::Interface::as_raw(self), outputstream.into_param().abi(), optimizemarkupsize.into_param().abi(), documenttype).ok() + (windows_core::Interface::vtable(self).WriteToStream1)(windows_core::Interface::as_raw(self), outputstream.param().abi(), optimizemarkupsize.param().abi(), documenttype).ok() } } #[repr(C)] @@ -3156,12 +3156,12 @@ impl IXpsOMPackageTarget { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn CreateXpsOMPackageWriter(&self, documentsequencepartname: P0, documentsequenceprintticket: P1, discardcontrolpartname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateXpsOMPackageWriter)(windows_core::Interface::as_raw(self), documentsequencepartname.into_param().abi(), documentsequenceprintticket.into_param().abi(), discardcontrolpartname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateXpsOMPackageWriter)(windows_core::Interface::as_raw(self), documentsequencepartname.param().abi(), documentsequenceprintticket.param().abi(), discardcontrolpartname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3178,29 +3178,29 @@ impl IXpsOMPackageWriter { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn StartNewDocument(&self, documentpartname: P0, documentprintticket: P1, documentstructure: P2, signatureblockresources: P3, restrictedfonts: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).StartNewDocument)(windows_core::Interface::as_raw(self), documentpartname.into_param().abi(), documentprintticket.into_param().abi(), documentstructure.into_param().abi(), signatureblockresources.into_param().abi(), restrictedfonts.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartNewDocument)(windows_core::Interface::as_raw(self), documentpartname.param().abi(), documentprintticket.param().abi(), documentstructure.param().abi(), signatureblockresources.param().abi(), restrictedfonts.param().abi()).ok() } pub unsafe fn AddPage(&self, page: P0, advisorypagedimensions: *const XPS_SIZE, discardableresourceparts: P1, storyfragments: P2, pageprintticket: P3, pagethumbnail: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), page.into_param().abi(), advisorypagedimensions, discardableresourceparts.into_param().abi(), storyfragments.into_param().abi(), pageprintticket.into_param().abi(), pagethumbnail.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), resource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), resource.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -3228,29 +3228,29 @@ impl IXpsOMPackageWriter3D { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn StartNewDocument(&self, documentpartname: P0, documentprintticket: P1, documentstructure: P2, signatureblockresources: P3, restrictedfonts: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartNewDocument)(windows_core::Interface::as_raw(self), documentpartname.into_param().abi(), documentprintticket.into_param().abi(), documentstructure.into_param().abi(), signatureblockresources.into_param().abi(), restrictedfonts.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StartNewDocument)(windows_core::Interface::as_raw(self), documentpartname.param().abi(), documentprintticket.param().abi(), documentstructure.param().abi(), signatureblockresources.param().abi(), restrictedfonts.param().abi()).ok() } pub unsafe fn AddPage(&self, page: P0, advisorypagedimensions: *const XPS_SIZE, discardableresourceparts: P1, storyfragments: P2, pageprintticket: P3, pagethumbnail: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPage)(windows_core::Interface::as_raw(self), page.into_param().abi(), advisorypagedimensions, discardableresourceparts.into_param().abi(), storyfragments.into_param().abi(), pageprintticket.into_param().abi(), pagethumbnail.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddResource)(windows_core::Interface::as_raw(self), resource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddResource)(windows_core::Interface::as_raw(self), resource.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Close)(windows_core::Interface::as_raw(self)).ok() @@ -3262,18 +3262,18 @@ impl IXpsOMPackageWriter3D { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn AddModelTexture(&self, texturepartname: P0, texturedata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddModelTexture)(windows_core::Interface::as_raw(self), texturepartname.into_param().abi(), texturedata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddModelTexture)(windows_core::Interface::as_raw(self), texturepartname.param().abi(), texturedata.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetModelPrintTicket(&self, printticketpartname: P0, printticketdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModelPrintTicket)(windows_core::Interface::as_raw(self), printticketpartname.into_param().abi(), printticketdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetModelPrintTicket)(windows_core::Interface::as_raw(self), printticketpartname.param().abi(), printticketdata.param().abi()).ok() } } #[repr(C)] @@ -3299,9 +3299,9 @@ impl IXpsOMPage { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3338,9 +3338,9 @@ impl IXpsOMPage { } pub unsafe fn SetLanguage(&self, language: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), language.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), language.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3348,9 +3348,9 @@ impl IXpsOMPage { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3358,9 +3358,9 @@ impl IXpsOMPage { } pub unsafe fn SetIsHyperlinkTarget(&self, ishyperlinktarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlinktarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlinktarget.param().abi()).ok() } pub unsafe fn GetDictionary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3372,9 +3372,9 @@ impl IXpsOMPage { } pub unsafe fn SetDictionaryLocal(&self, resourcedictionary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDictionaryLocal)(windows_core::Interface::as_raw(self), resourcedictionary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDictionaryLocal)(windows_core::Interface::as_raw(self), resourcedictionary.param().abi()).ok() } pub unsafe fn GetDictionaryResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3382,17 +3382,17 @@ impl IXpsOMPage { } pub unsafe fn SetDictionaryResource(&self, remotedictionaryresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDictionaryResource)(windows_core::Interface::as_raw(self), remotedictionaryresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDictionaryResource)(windows_core::Interface::as_raw(self), remotedictionaryresource.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Write(&self, stream: P0, optimizemarkupsize: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), stream.into_param().abi(), optimizemarkupsize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), stream.param().abi(), optimizemarkupsize.param().abi()).ok() } pub unsafe fn GenerateUnusedLookupKey(&self, r#type: XPS_OBJECT_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3443,9 +3443,9 @@ impl IXpsOMPage1 { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3482,9 +3482,9 @@ impl IXpsOMPage1 { } pub unsafe fn SetLanguage(&self, language: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3492,9 +3492,9 @@ impl IXpsOMPage1 { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3502,9 +3502,9 @@ impl IXpsOMPage1 { } pub unsafe fn SetIsHyperlinkTarget(&self, ishyperlinktarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlinktarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlinktarget.param().abi()).ok() } pub unsafe fn GetDictionary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3516,9 +3516,9 @@ impl IXpsOMPage1 { } pub unsafe fn SetDictionaryLocal(&self, resourcedictionary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDictionaryLocal)(windows_core::Interface::as_raw(self), resourcedictionary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDictionaryLocal)(windows_core::Interface::as_raw(self), resourcedictionary.param().abi()).ok() } pub unsafe fn GetDictionaryResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3526,17 +3526,17 @@ impl IXpsOMPage1 { } pub unsafe fn SetDictionaryResource(&self, remotedictionaryresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDictionaryResource)(windows_core::Interface::as_raw(self), remotedictionaryresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDictionaryResource)(windows_core::Interface::as_raw(self), remotedictionaryresource.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Write(&self, stream: P0, optimizemarkupsize: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), stream.into_param().abi(), optimizemarkupsize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), stream.param().abi(), optimizemarkupsize.param().abi()).ok() } pub unsafe fn GenerateUnusedLookupKey(&self, r#type: XPS_OBJECT_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3553,10 +3553,10 @@ impl IXpsOMPage1 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Write1(&self, stream: P0, optimizemarkupsize: P1, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.into_param().abi(), optimizemarkupsize.into_param().abi(), documenttype).ok() + (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.param().abi(), optimizemarkupsize.param().abi(), documenttype).ok() } } #[repr(C)] @@ -3581,9 +3581,9 @@ impl IXpsOMPageReference { } pub unsafe fn SetPage(&self, page: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPage)(windows_core::Interface::as_raw(self), page.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPage)(windows_core::Interface::as_raw(self), page.param().abi()).ok() } pub unsafe fn DiscardPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DiscardPage)(windows_core::Interface::as_raw(self)).ok() @@ -3605,9 +3605,9 @@ impl IXpsOMPageReference { } pub unsafe fn SetStoryFragmentsResource(&self, storyfragmentsresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStoryFragmentsResource)(windows_core::Interface::as_raw(self), storyfragmentsresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStoryFragmentsResource)(windows_core::Interface::as_raw(self), storyfragmentsresource.param().abi()).ok() } pub unsafe fn GetPrintTicketResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3615,9 +3615,9 @@ impl IXpsOMPageReference { } pub unsafe fn SetPrintTicketResource(&self, printticketresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrintTicketResource)(windows_core::Interface::as_raw(self), printticketresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrintTicketResource)(windows_core::Interface::as_raw(self), printticketresource.param().abi()).ok() } pub unsafe fn GetThumbnailResource(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3625,9 +3625,9 @@ impl IXpsOMPageReference { } pub unsafe fn SetThumbnailResource(&self, imageresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailResource)(windows_core::Interface::as_raw(self), imageresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnailResource)(windows_core::Interface::as_raw(self), imageresource.param().abi()).ok() } pub unsafe fn CollectLinkTargets(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3680,24 +3680,24 @@ impl IXpsOMPageReferenceCollection { } pub unsafe fn InsertAt(&self, index: u32, pagereference: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, pagereference.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, pagereference: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, pagereference.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), pagereference.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), pagereference.param().abi()).ok() } } #[repr(C)] @@ -3721,9 +3721,9 @@ impl IXpsOMPart { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } } #[repr(C)] @@ -3781,9 +3781,9 @@ impl IXpsOMPartUriCollection { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn InsertAt(&self, index: u32, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, parturi.into_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), index).ok() @@ -3791,16 +3791,16 @@ impl IXpsOMPartUriCollection { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetAt(&self, index: u32, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, parturi.into_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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } } #[repr(C)] @@ -3846,9 +3846,9 @@ impl IXpsOMPath { } pub unsafe fn SetTransformLocal(&self, matrixtransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3856,9 +3856,9 @@ impl IXpsOMPath { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetClipGeometry(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3870,9 +3870,9 @@ impl IXpsOMPath { } pub unsafe fn SetClipGeometryLocal(&self, clipgeometry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.param().abi()).ok() } pub unsafe fn GetClipGeometryLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3880,9 +3880,9 @@ impl IXpsOMPath { } pub unsafe fn SetClipGeometryLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3901,9 +3901,9 @@ impl IXpsOMPath { } pub unsafe fn SetOpacityMaskBrushLocal(&self, opacitymaskbrush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.param().abi()).ok() } pub unsafe fn GetOpacityMaskBrushLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3911,9 +3911,9 @@ impl IXpsOMPath { } pub unsafe fn SetOpacityMaskBrushLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3921,9 +3921,9 @@ impl IXpsOMPath { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3931,9 +3931,9 @@ impl IXpsOMPath { } pub unsafe fn SetIsHyperlinkTarget(&self, ishyperlink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetHyperlinkNavigateUri(&self) -> windows_core::Result { @@ -3943,9 +3943,9 @@ impl IXpsOMPath { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHyperlinkNavigateUri(&self, hyperlinkuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.param().abi()).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3953,9 +3953,9 @@ impl IXpsOMPath { } pub unsafe fn SetLanguage(&self, language: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLanguage)(windows_core::Interface::as_raw(self), language.param().abi()).ok() } pub unsafe fn GetGeometry(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3967,9 +3967,9 @@ impl IXpsOMPath { } pub unsafe fn SetGeometryLocal(&self, geometry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGeometryLocal)(windows_core::Interface::as_raw(self), geometry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGeometryLocal)(windows_core::Interface::as_raw(self), geometry.param().abi()).ok() } pub unsafe fn GetGeometryLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3977,9 +3977,9 @@ impl IXpsOMPath { } pub unsafe fn SetGeometryLookup(&self, lookup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGeometryLookup)(windows_core::Interface::as_raw(self), lookup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGeometryLookup)(windows_core::Interface::as_raw(self), lookup.param().abi()).ok() } pub unsafe fn GetAccessibilityShortDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3987,9 +3987,9 @@ impl IXpsOMPath { } pub unsafe fn SetAccessibilityShortDescription(&self, shortdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccessibilityShortDescription)(windows_core::Interface::as_raw(self), shortdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccessibilityShortDescription)(windows_core::Interface::as_raw(self), shortdescription.param().abi()).ok() } pub unsafe fn GetAccessibilityLongDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3997,9 +3997,9 @@ impl IXpsOMPath { } pub unsafe fn SetAccessibilityLongDescription(&self, longdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccessibilityLongDescription)(windows_core::Interface::as_raw(self), longdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccessibilityLongDescription)(windows_core::Interface::as_raw(self), longdescription.param().abi()).ok() } pub unsafe fn GetSnapsToPixels(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4007,9 +4007,9 @@ impl IXpsOMPath { } pub unsafe fn SetSnapsToPixels(&self, snapstopixels: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSnapsToPixels)(windows_core::Interface::as_raw(self), snapstopixels.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSnapsToPixels)(windows_core::Interface::as_raw(self), snapstopixels.param().abi()).ok() } pub unsafe fn GetStrokeBrush(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4021,9 +4021,9 @@ impl IXpsOMPath { } pub unsafe fn SetStrokeBrushLocal(&self, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrokeBrushLocal)(windows_core::Interface::as_raw(self), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStrokeBrushLocal)(windows_core::Interface::as_raw(self), brush.param().abi()).ok() } pub unsafe fn GetStrokeBrushLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4031,9 +4031,9 @@ impl IXpsOMPath { } pub unsafe fn SetStrokeBrushLookup(&self, lookup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrokeBrushLookup)(windows_core::Interface::as_raw(self), lookup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStrokeBrushLookup)(windows_core::Interface::as_raw(self), lookup.param().abi()).ok() } pub unsafe fn GetStrokeDashes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4098,9 +4098,9 @@ impl IXpsOMPath { } pub unsafe fn SetFillBrushLocal(&self, brush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFillBrushLocal)(windows_core::Interface::as_raw(self), brush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFillBrushLocal)(windows_core::Interface::as_raw(self), brush.param().abi()).ok() } pub unsafe fn GetFillBrushLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4108,9 +4108,9 @@ impl IXpsOMPath { } pub unsafe fn SetFillBrushLookup(&self, lookup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFillBrushLookup)(windows_core::Interface::as_raw(self), lookup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFillBrushLookup)(windows_core::Interface::as_raw(self), lookup.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4169,9 +4169,9 @@ impl IXpsOMPrintTicketResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStream(&self) -> windows_core::Result { @@ -4181,10 +4181,10 @@ impl IXpsOMPrintTicketResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetContent(&self, sourcestream: P0, partname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), partname.param().abi()).ok() } } #[repr(C)] @@ -4231,9 +4231,9 @@ impl IXpsOMRadialGradientBrush { } pub unsafe fn SetTransformLocal(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4241,9 +4241,9 @@ impl IXpsOMRadialGradientBrush { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetSpreadMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4307,9 +4307,9 @@ impl IXpsOMRemoteDictionaryResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetDictionary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4317,9 +4317,9 @@ impl IXpsOMRemoteDictionaryResource { } pub unsafe fn SetDictionary(&self, dictionary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDictionary)(windows_core::Interface::as_raw(self), dictionary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDictionary)(windows_core::Interface::as_raw(self), dictionary.param().abi()).ok() } } #[repr(C)] @@ -4339,9 +4339,9 @@ impl IXpsOMRemoteDictionaryResource1 { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetDictionary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4349,9 +4349,9 @@ impl IXpsOMRemoteDictionaryResource1 { } pub unsafe fn SetDictionary(&self, dictionary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDictionary)(windows_core::Interface::as_raw(self), dictionary.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDictionary)(windows_core::Interface::as_raw(self), dictionary.param().abi()).ok() } pub unsafe fn GetDocumentType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4360,9 +4360,9 @@ impl IXpsOMRemoteDictionaryResource1 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Write1(&self, stream: P0, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.into_param().abi(), documenttype).ok() + (windows_core::Interface::vtable(self).Write1)(windows_core::Interface::as_raw(self), stream.param().abi(), documenttype).ok() } } #[repr(C)] @@ -4387,32 +4387,32 @@ impl IXpsOMRemoteDictionaryResourceCollection { } pub unsafe fn InsertAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetByPartName(&self, partname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4440,9 +4440,9 @@ impl IXpsOMResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } } #[repr(C)] @@ -4478,9 +4478,9 @@ impl IXpsOMSignatureBlockResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4494,10 +4494,10 @@ impl IXpsOMSignatureBlockResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetContent(&self, sourcestream: P0, partname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), partname.param().abi()).ok() } } #[repr(C)] @@ -4526,32 +4526,32 @@ impl IXpsOMSignatureBlockResourceCollection { } pub unsafe fn InsertAt(&self, index: u32, signatureblockresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, signatureblockresource.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, signatureblockresource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, signatureblockresource.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), signatureblockresource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), signatureblockresource.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetByPartName(&self, partname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetByPartName)(windows_core::Interface::as_raw(self), partname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4592,9 +4592,9 @@ impl IXpsOMSolidColorBrush { } pub unsafe fn SetColor(&self, color: *const XPS_COLOR, colorprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), color, colorprofile.into_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__ = std::mem::zeroed(); @@ -4619,9 +4619,9 @@ impl IXpsOMStoryFragmentsResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetPartName(&self, parturi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPartName)(windows_core::Interface::as_raw(self), parturi.param().abi()).ok() } pub unsafe fn GetOwner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4635,10 +4635,10 @@ impl IXpsOMStoryFragmentsResource { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetContent(&self, sourcestream: P0, partname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContent)(windows_core::Interface::as_raw(self), sourcestream.param().abi(), partname.param().abi()).ok() } } #[repr(C)] @@ -4660,11 +4660,11 @@ impl IXpsOMThumbnailGenerator { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GenerateThumbnail(&self, page: P0, thumbnailtype: XPS_IMAGE_TYPE, thumbnailsize: XPS_THUMBNAIL_SIZE, imageresourcepartname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateThumbnail)(windows_core::Interface::as_raw(self), page.into_param().abi(), thumbnailtype, thumbnailsize, imageresourcepartname.into_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)] @@ -4703,9 +4703,9 @@ impl IXpsOMTileBrush { } pub unsafe fn SetTransformLocal(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4713,9 +4713,9 @@ impl IXpsOMTileBrush { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetViewbox(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4775,9 +4775,9 @@ impl IXpsOMVisual { } pub unsafe fn SetTransformLocal(&self, matrixtransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLocal)(windows_core::Interface::as_raw(self), matrixtransform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4785,9 +4785,9 @@ impl IXpsOMVisual { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetClipGeometry(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4799,9 +4799,9 @@ impl IXpsOMVisual { } pub unsafe fn SetClipGeometryLocal(&self, clipgeometry: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClipGeometryLocal)(windows_core::Interface::as_raw(self), clipgeometry.param().abi()).ok() } pub unsafe fn GetClipGeometryLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4809,9 +4809,9 @@ impl IXpsOMVisual { } pub unsafe fn SetClipGeometryLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClipGeometryLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetOpacity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4830,9 +4830,9 @@ impl IXpsOMVisual { } pub unsafe fn SetOpacityMaskBrushLocal(&self, opacitymaskbrush: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOpacityMaskBrushLocal)(windows_core::Interface::as_raw(self), opacitymaskbrush.param().abi()).ok() } pub unsafe fn GetOpacityMaskBrushLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4840,9 +4840,9 @@ impl IXpsOMVisual { } pub unsafe fn SetOpacityMaskBrushLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOpacityMaskBrushLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4850,9 +4850,9 @@ impl IXpsOMVisual { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4860,9 +4860,9 @@ impl IXpsOMVisual { } pub unsafe fn SetIsHyperlinkTarget(&self, ishyperlink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), ishyperlink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetHyperlinkNavigateUri(&self) -> windows_core::Result { @@ -4872,9 +4872,9 @@ impl IXpsOMVisual { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHyperlinkNavigateUri(&self, hyperlinkuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHyperlinkNavigateUri)(windows_core::Interface::as_raw(self), hyperlinkuri.param().abi()).ok() } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4882,9 +4882,9 @@ impl IXpsOMVisual { } pub unsafe fn SetLanguage(&self, language: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), language.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLanguage)(windows_core::Interface::as_raw(self), language.param().abi()).ok() } } #[repr(C)] @@ -4950,9 +4950,9 @@ impl IXpsOMVisualBrush { } pub unsafe fn SetTransformLocal(&self, transform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLocal)(windows_core::Interface::as_raw(self), transform.param().abi()).ok() } pub unsafe fn GetTransformLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4960,9 +4960,9 @@ impl IXpsOMVisualBrush { } pub unsafe fn SetTransformLookup(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTransformLookup)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn GetViewbox(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4995,9 +4995,9 @@ impl IXpsOMVisualBrush { } pub unsafe fn SetVisualLocal(&self, visual: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisualLocal)(windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisualLocal)(windows_core::Interface::as_raw(self), visual.param().abi()).ok() } pub unsafe fn GetVisualLookup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5005,9 +5005,9 @@ impl IXpsOMVisualBrush { } pub unsafe fn SetVisualLookup(&self, lookup: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisualLookup)(windows_core::Interface::as_raw(self), lookup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisualLookup)(windows_core::Interface::as_raw(self), lookup.param().abi()).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5037,24 +5037,24 @@ impl IXpsOMVisualCollection { } pub unsafe fn InsertAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), index, object.into_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), index).ok() } pub unsafe fn SetAt(&self, index: u32, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), index, object.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), object.param().abi()).ok() } } #[repr(C)] @@ -5179,10 +5179,10 @@ impl IXpsSignatureBlock { } pub unsafe fn CreateRequest(&self, requestid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRequest)(windows_core::Interface::as_raw(self), requestid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRequest)(windows_core::Interface::as_raw(self), requestid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -5249,24 +5249,24 @@ windows_core::imp::interface_hierarchy!(IXpsSignatureManager, windows_core::IUnk impl IXpsSignatureManager { pub unsafe fn LoadPackageFile(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadPackageFile)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadPackageFile)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadPackageStream(&self, stream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadPackageStream)(windows_core::Interface::as_raw(self), stream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadPackageStream)(windows_core::Interface::as_raw(self), stream.param().abi()).ok() } #[cfg(feature = "Win32_Security_Cryptography")] pub unsafe fn Sign(&self, signoptions: P0, x509certificate: *const super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Sign)(windows_core::Interface::as_raw(self), signoptions.into_param().abi(), 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 { @@ -5276,9 +5276,9 @@ impl IXpsSignatureManager { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetSignatureOriginPartName(&self, signatureoriginpartname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignatureOriginPartName)(windows_core::Interface::as_raw(self), signatureoriginpartname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignatureOriginPartName)(windows_core::Interface::as_raw(self), signatureoriginpartname.param().abi()).ok() } pub unsafe fn GetSignatures(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5287,10 +5287,10 @@ impl IXpsSignatureManager { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn AddSignatureBlock(&self, partname: P0, fixeddocumentindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddSignatureBlock)(windows_core::Interface::as_raw(self), partname.into_param().abi(), 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__ = std::mem::zeroed(); @@ -5303,16 +5303,16 @@ impl IXpsSignatureManager { #[cfg(feature = "Win32_Security")] pub unsafe fn SavePackageToFile(&self, filename: P0, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SavePackageToFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), securityattributes, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SavePackageToStream)(windows_core::Interface::as_raw(self), stream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SavePackageToStream)(windows_core::Interface::as_raw(self), stream.param().abi()).ok() } } #[repr(C)] @@ -5360,9 +5360,9 @@ impl IXpsSignatureRequest { } pub unsafe fn SetIntent(&self, intent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIntent)(windows_core::Interface::as_raw(self), intent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIntent)(windows_core::Interface::as_raw(self), intent.param().abi()).ok() } pub unsafe fn GetRequestedSigner(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5370,9 +5370,9 @@ impl IXpsSignatureRequest { } pub unsafe fn SetRequestedSigner(&self, signername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestedSigner)(windows_core::Interface::as_raw(self), signername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestedSigner)(windows_core::Interface::as_raw(self), signername.param().abi()).ok() } pub unsafe fn GetRequestSignByDate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5380,9 +5380,9 @@ impl IXpsSignatureRequest { } pub unsafe fn SetRequestSignByDate(&self, datestring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRequestSignByDate)(windows_core::Interface::as_raw(self), datestring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRequestSignByDate)(windows_core::Interface::as_raw(self), datestring.param().abi()).ok() } pub unsafe fn GetSigningLocale(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5390,9 +5390,9 @@ impl IXpsSignatureRequest { } pub unsafe fn SetSigningLocale(&self, place: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSigningLocale)(windows_core::Interface::as_raw(self), place.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSigningLocale)(windows_core::Interface::as_raw(self), place.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetSpotLocation(&self, pageindex: *mut i32, pagepartname: *mut Option, x: *mut f32, y: *mut f32) -> windows_core::Result<()> { @@ -5460,9 +5460,9 @@ impl IXpsSigningOptions { } pub unsafe fn SetSignatureId(&self, signatureid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignatureId)(windows_core::Interface::as_raw(self), signatureid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignatureId)(windows_core::Interface::as_raw(self), signatureid.param().abi()).ok() } pub unsafe fn GetSignatureMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5470,9 +5470,9 @@ impl IXpsSigningOptions { } pub unsafe fn SetSignatureMethod(&self, signaturemethod: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignatureMethod)(windows_core::Interface::as_raw(self), signaturemethod.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignatureMethod)(windows_core::Interface::as_raw(self), signaturemethod.param().abi()).ok() } pub unsafe fn GetDigestMethod(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5480,9 +5480,9 @@ impl IXpsSigningOptions { } pub unsafe fn SetDigestMethod(&self, digestmethod: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDigestMethod)(windows_core::Interface::as_raw(self), digestmethod.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDigestMethod)(windows_core::Interface::as_raw(self), digestmethod.param().abi()).ok() } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn GetSignaturePartName(&self) -> windows_core::Result { @@ -5492,9 +5492,9 @@ impl IXpsSigningOptions { #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub unsafe fn SetSignaturePartName(&self, signaturepartname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignaturePartName)(windows_core::Interface::as_raw(self), signaturepartname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignaturePartName)(windows_core::Interface::as_raw(self), signaturepartname.param().abi()).ok() } pub unsafe fn GetPolicy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 0dacd06629..e6d2c2188f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs @@ -2,11 +2,11 @@ #[inline] pub unsafe fn BuildDisplayTable(lpallocatebuffer: LPALLOCATEBUFFER, lpallocatemore: LPALLOCATEMORE, lpfreebuffer: LPFREEBUFFER, lpmalloc: P0, hinstance: P1, cpages: u32, lppage: *mut DTPAGE, ulflags: u32, lpptable: *mut Option, lpptbldata: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(lpallocatebuffer, lpallocatemore, lpfreebuffer, lpmalloc.into_param().abi(), hinstance.into_param().abi(), cpages, lppage, ulflags, core::mem::transmute(lpptable), core::mem::transmute(lpptbldata)).ok() + BuildDisplayTable(lpallocatebuffer, lpallocatemore, lpfreebuffer, lpmalloc.param().abi(), hinstance.param().abi(), cpages, 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) { @@ -36,10 +36,10 @@ pub unsafe fn DeregisterIdleRoutine(ftg: *mut core::ffi::c_void) { #[inline] pub unsafe fn EnableIdleRoutine(ftg: *mut core::ffi::c_void, fenable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn EnableIdleRoutine(ftg : *mut core::ffi::c_void, fenable : super::super::Foundation:: BOOL)); - EnableIdleRoutine(ftg, fenable.into_param().abi()) + EnableIdleRoutine(ftg, fenable.param().abi()) } #[inline] pub unsafe fn FEqualNames(lpname1: *mut MAPINAMEID, lpname2: *mut MAPINAMEID) -> super::super::Foundation::BOOL { @@ -61,10 +61,10 @@ pub unsafe fn FPropContainsProp(lpspropvaluedst: *mut SPropValue, lpspropvaluesr #[inline] pub unsafe fn FPropExists(lpmapiprop: P0, ulproptag: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulproptag) + FPropExists(lpmapiprop.param().abi(), ulproptag) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -111,18 +111,18 @@ pub unsafe fn FtgRegisterIdleRoutine(lpfnidle: PFNIDLE, lpvidleparam: *mut core: #[inline] pub unsafe fn HrAddColumns(lptbl: P0, lpproptagcolumnsnew: *mut SPropTagArray, lpallocatebuffer: LPALLOCATEBUFFER, lpfreebuffer: LPFREEBUFFER) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpproptagcolumnsnew, lpallocatebuffer, lpfreebuffer).ok() + HrAddColumns(lptbl.param().abi(), lpproptagcolumnsnew, lpallocatebuffer, lpfreebuffer).ok() } #[inline] pub unsafe fn HrAddColumnsEx(lptbl: P0, lpproptagcolumnsnew: *mut SPropTagArray, lpallocatebuffer: LPALLOCATEBUFFER, lpfreebuffer: LPFREEBUFFER, lpfnfiltercolumns: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpproptagcolumnsnew, lpallocatebuffer, lpfreebuffer, lpfnfiltercolumns).ok() + HrAddColumnsEx(lptbl.param().abi(), lpproptagcolumnsnew, lpallocatebuffer, lpfreebuffer, lpfnfiltercolumns).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -139,46 +139,46 @@ pub unsafe fn HrDispatchNotifications(ulflags: u32) -> windows_core::Result<()> #[inline] pub unsafe fn HrGetOneProp(lpmapiprop: P0, ulproptag: u32, lppprop: *mut *mut SPropValue) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulproptag, lppprop).ok() + HrGetOneProp(lpmapiprop.param().abi(), ulproptag, lppprop).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn HrIStorageFromStream(lpunkin: P0, lpinterface: *mut windows_core::GUID, ulflags: u32, lppstorageout: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpinterface, ulflags, core::mem::transmute(lppstorageout)).ok() + HrIStorageFromStream(lpunkin.param().abi(), lpinterface, ulflags, core::mem::transmute(lppstorageout)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HrQueryAllRows(lptable: P0, lpproptags: *mut SPropTagArray, lprestriction: *mut SRestriction, lpsortorderset: *mut SSortOrderSet, crowsmax: i32, lpprows: *mut *mut SRowSet) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpproptags, lprestriction, lpsortorderset, crowsmax, lpprows).ok() + HrQueryAllRows(lptable.param().abi(), lpproptags, lprestriction, lpsortorderset, crowsmax, lpprows).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HrSetOneProp(lpmapiprop: P0, lpprop: *mut SPropValue) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn HrSetOneProp(lpmapiprop : * mut core::ffi::c_void, lpprop : *mut SPropValue) -> windows_core::HRESULT); - HrSetOneProp(lpmapiprop.into_param().abi(), lpprop).ok() + HrSetOneProp(lpmapiprop.param().abi(), lpprop).ok() } #[inline] pub unsafe fn HrThisThreadAdviseSink(lpadvisesink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn HrThisThreadAdviseSink(lpadvisesink : * mut core::ffi::c_void, lppadvisesink : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - HrThisThreadAdviseSink(lpadvisesink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HrThisThreadAdviseSink(lpadvisesink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -230,10 +230,10 @@ pub unsafe fn PropCopyMore(lpspropvaluedest: *mut SPropValue, lpspropvaluesrc: * #[inline] pub unsafe fn RTFSync(lpmessage: P0, ulflags: u32, lpfmessageupdated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ulflags, lpfmessageupdated).ok() + RTFSync(lpmessage.param().abi(), ulflags, lpfmessageupdated).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -278,10 +278,10 @@ pub unsafe fn ScInitMapiUtil(ulflags: u32) -> i32 { #[inline] pub unsafe fn ScLocalPathFromUNC(lpszunc: P0, lpszlocal: &[u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn ScLocalPathFromUNC(lpszunc : windows_core::PCSTR, lpszlocal : windows_core::PCSTR, cchlocal : u32) -> i32); - ScLocalPathFromUNC(lpszunc.into_param().abi(), core::mem::transmute(lpszlocal.as_ptr()), lpszlocal.len().try_into().unwrap()) + ScLocalPathFromUNC(lpszunc.param().abi(), core::mem::transmute(lpszlocal.as_ptr()), lpszlocal.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -298,10 +298,10 @@ pub unsafe fn ScRelocProps(cvalues: i32, lpproparray: *mut SPropValue, lpvbaseol #[inline] pub unsafe fn ScUNCFromLocalPath(lpszlocal: P0, lpszunc: &[u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mapi32.dll" "system" fn ScUNCFromLocalPath(lpszlocal : windows_core::PCSTR, lpszunc : windows_core::PCSTR, cchunc : u32) -> i32); - ScUNCFromLocalPath(lpszlocal.into_param().abi(), core::mem::transmute(lpszunc.as_ptr()), lpszunc.len().try_into().unwrap()) + ScUNCFromLocalPath(lpszlocal.param().abi(), core::mem::transmute(lpszunc.as_ptr()), lpszunc.len().try_into().unwrap()) } #[inline] pub unsafe fn SzFindCh(lpsz: *mut i8, ch: u16) -> *mut i8 { @@ -343,11 +343,11 @@ pub unsafe fn UlRelease(lpunk: *mut core::ffi::c_void) -> u32 { #[inline] pub unsafe fn WrapCompressedRTFStream(lpcompressedrtfstream: P0, ulflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WrapCompressedRTFStream(lpcompressedrtfstream.into_param().abi(), 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<()> { @@ -382,15 +382,15 @@ impl IABContainer { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -423,9 +423,9 @@ impl IABContainer { } pub unsafe fn CopyEntries(&self, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), lpentries, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), lpentries, uluiparam, 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), lpentries, ulflags).ok() @@ -475,15 +475,15 @@ impl IAddrBook { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -499,9 +499,9 @@ impl IAddrBook { } pub unsafe fn Advise(&self, cbentryid: u32, lpentryid: *mut ENTRYID, uleventmask: u32, lpadvisesink: P0, lpulconnection: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, uleventmask, lpadvisesink.into_param().abi(), lpulconnection).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, uleventmask, lpadvisesink.param().abi(), lpulconnection).ok() } pub unsafe fn Unadvise(&self, ulconnection: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), ulconnection).ok() @@ -627,15 +627,15 @@ impl IAttach { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -676,15 +676,15 @@ impl IDistList { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -717,9 +717,9 @@ impl IDistList { } pub unsafe fn CopyEntries(&self, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), lpentries, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).CopyEntries)(windows_core::Interface::as_raw(self), lpentries, uluiparam, 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), lpentries, ulflags).ok() @@ -785,15 +785,15 @@ impl IMAPIContainer { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -885,15 +885,15 @@ impl IMAPIFolder { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -925,15 +925,15 @@ impl IMAPIFolder { } pub unsafe fn CopyMessages(&self, lpmsglist: *const SBinaryArray, lpinterface: Option<*const windows_core::GUID>, lpdestfolder: *const core::ffi::c_void, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyMessages)(windows_core::Interface::as_raw(self), lpmsglist, core::mem::transmute(lpinterface.unwrap_or(std::ptr::null())), lpdestfolder, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).CopyMessages)(windows_core::Interface::as_raw(self), lpmsglist, core::mem::transmute(lpinterface.unwrap_or(std::ptr::null())), lpdestfolder, uluiparam, lpprogress.param().abi(), ulflags).ok() } pub unsafe fn DeleteMessages(&self, lpmsglist: *const SBinaryArray, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMessages)(windows_core::Interface::as_raw(self), lpmsglist, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).DeleteMessages)(windows_core::Interface::as_raw(self), lpmsglist, uluiparam, 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__ = std::mem::zeroed(); @@ -941,21 +941,21 @@ impl IMAPIFolder { } 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: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyFolder)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, core::mem::transmute(lpinterface.unwrap_or(std::ptr::null())), lpdestfolder, lpsznewfoldername, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).CopyFolder)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, core::mem::transmute(lpinterface.unwrap_or(std::ptr::null())), lpdestfolder, lpsznewfoldername, uluiparam, lpprogress.param().abi(), ulflags).ok() } pub unsafe fn DeleteFolder(&self, cbentryid: u32, lpentryid: *const ENTRYID, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), cbentryid, lpentryid, uluiparam, lpprogress.param().abi(), ulflags).ok() } pub unsafe fn SetReadFlags(&self, lpmsglist: *const SBinaryArray, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReadFlags)(windows_core::Interface::as_raw(self), lpmsglist, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).SetReadFlags)(windows_core::Interface::as_raw(self), lpmsglist, uluiparam, lpprogress.param().abi(), ulflags).ok() } pub unsafe fn GetMessageStatus(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -970,9 +970,9 @@ impl IMAPIFolder { } pub unsafe fn EmptyFolder(&self, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmptyFolder)(windows_core::Interface::as_raw(self), uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).EmptyFolder)(windows_core::Interface::as_raw(self), uluiparam, lpprogress.param().abi(), ulflags).ok() } } #[repr(C)] @@ -1046,15 +1046,15 @@ impl IMAPIProp { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -1112,15 +1112,15 @@ impl IMAPIStatus { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -1157,9 +1157,9 @@ impl IMAPITable { } pub unsafe fn Advise(&self, uleventmask: u32, lpadvisesink: P0, lpulconnection: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), uleventmask, lpadvisesink.into_param().abi(), lpulconnection).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), uleventmask, lpadvisesink.param().abi(), lpulconnection).ok() } pub unsafe fn Unadvise(&self, ulconnection: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), ulconnection).ok() @@ -1296,15 +1296,15 @@ impl IMailUser { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -1345,15 +1345,15 @@ impl IMessage { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -1374,9 +1374,9 @@ impl IMessage { } pub unsafe fn DeleteAttach(&self, ulattachmentnum: u32, uluiparam: usize, lpprogress: P0, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAttach)(windows_core::Interface::as_raw(self), ulattachmentnum, uluiparam, lpprogress.into_param().abi(), ulflags).ok() + (windows_core::Interface::vtable(self).DeleteAttach)(windows_core::Interface::as_raw(self), ulattachmentnum, uluiparam, lpprogress.param().abi(), ulflags).ok() } pub unsafe fn GetRecipientTable(&self, ulflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1436,15 +1436,15 @@ impl IMsgStore { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -1454,10 +1454,10 @@ impl IMsgStore { } pub unsafe fn Advise(&self, cbentryid: u32, lpentryid: Option<*const ENTRYID>, uleventmask: u32, lpadvisesink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), cbentryid, core::mem::transmute(lpentryid.unwrap_or(std::ptr::null())), uleventmask, lpadvisesink.into_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(std::ptr::null())), 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), ulconnection).ok() @@ -1491,9 +1491,9 @@ impl IMsgStore { } pub unsafe fn SetLockState(&self, lpmessage: P0, ullockstate: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLockState)(windows_core::Interface::as_raw(self), lpmessage.into_param().abi(), 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), ulflags, cbentryid, lpentryid).ok() @@ -1551,15 +1551,15 @@ impl IProfSect { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -1600,15 +1600,15 @@ impl IPropData { } pub unsafe fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), ciidexclude, rgiidexclude, lpexcludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() } pub unsafe fn CopyProps(&self, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: P0, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.into_param().abi(), lpinterface, lpdestobj, ulflags, lppproblems).ok() + (windows_core::Interface::vtable(self).base__.CopyProps)(windows_core::Interface::as_raw(self), lpincludeprops, uluiparam, lpprogress.param().abi(), lpinterface, lpdestobj, ulflags, 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).base__.GetNamesFromIDs)(windows_core::Interface::as_raw(self), lppproptags, lppropsetguid, ulflags, lpcpropnames, lppppropnames).ok() @@ -1778,69 +1778,69 @@ impl IWABObject { } pub unsafe fn Backup(&self, lpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), lpfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), lpfilename.param().abi()).ok() } pub unsafe fn Import(&self, lpwip: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), lpwip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), lpwip.param().abi()).ok() } pub unsafe fn Find(&self, lpiab: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Find)(windows_core::Interface::as_raw(self), lpiab.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Find)(windows_core::Interface::as_raw(self), lpiab.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn VCardDisplay(&self, lpiab: P0, hwnd: P1, lpszfilename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).VCardDisplay)(windows_core::Interface::as_raw(self), lpiab.into_param().abi(), hwnd.into_param().abi(), lpszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).VCardDisplay)(windows_core::Interface::as_raw(self), lpiab.param().abi(), hwnd.param().abi(), lpszfilename.param().abi()).ok() } pub unsafe fn LDAPUrl(&self, lpiab: P0, hwnd: P1, ulflags: u32, lpszurl: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LDAPUrl)(windows_core::Interface::as_raw(self), lpiab.into_param().abi(), hwnd.into_param().abi(), ulflags, lpszurl.into_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(), hwnd.param().abi(), ulflags, lpszurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn VCardCreate(&self, lpiab: P0, ulflags: u32, lpszvcard: P1, lpmailuser: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).VCardCreate)(windows_core::Interface::as_raw(self), lpiab.into_param().abi(), ulflags, lpszvcard.into_param().abi(), lpmailuser.into_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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VCardRetrieve)(windows_core::Interface::as_raw(self), lpiab.into_param().abi(), ulflags, lpszvcard.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMe)(windows_core::Interface::as_raw(self), lpiab.into_param().abi(), ulflags, lpdwaction, lpsbeid, hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetMe)(windows_core::Interface::as_raw(self), lpiab.param().abi(), ulflags, lpdwaction, lpsbeid, hwnd.param().abi()).ok() } pub unsafe fn SetMe(&self, lpiab: P0, ulflags: u32, sbeid: SBinary, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMe)(windows_core::Interface::as_raw(self), lpiab.into_param().abi(), ulflags, core::mem::transmute(sbeid), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMe)(windows_core::Interface::as_raw(self), lpiab.param().abi(), ulflags, core::mem::transmute(sbeid), hwnd.param().abi()).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 b202babde6..107a252ab5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs @@ -1,78 +1,78 @@ #[inline] pub unsafe fn AmsiCloseSession(amsicontext: P0, amsisession: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("amsi.dll" "system" fn AmsiCloseSession(amsicontext : HAMSICONTEXT, amsisession : HAMSISESSION)); - AmsiCloseSession(amsicontext.into_param().abi(), amsisession.into_param().abi()) + AmsiCloseSession(amsicontext.param().abi(), amsisession.param().abi()) } #[inline] pub unsafe fn AmsiInitialize(appname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("amsi.dll" "system" fn AmsiInitialize(appname : windows_core::PCWSTR, amsicontext : *mut HAMSICONTEXT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - AmsiInitialize(appname.into_param().abi(), &mut result__).map(|| result__) + AmsiInitialize(appname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn AmsiNotifyOperation(amsicontext: P0, buffer: *const core::ffi::c_void, length: u32, contentname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - AmsiNotifyOperation(amsicontext.into_param().abi(), buffer, length, contentname.into_param().abi(), &mut result__).map(|| result__) + AmsiNotifyOperation(amsicontext.param().abi(), buffer, length, contentname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn AmsiOpenSession(amsicontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("amsi.dll" "system" fn AmsiOpenSession(amsicontext : HAMSICONTEXT, amsisession : *mut HAMSISESSION) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - AmsiOpenSession(amsicontext.into_param().abi(), &mut result__).map(|| result__) + AmsiOpenSession(amsicontext.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn AmsiScanBuffer(amsicontext: P0, buffer: *const core::ffi::c_void, length: u32, contentname: P1, amsisession: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - AmsiScanBuffer(amsicontext.into_param().abi(), buffer, length, contentname.into_param().abi(), amsisession.into_param().abi(), &mut result__).map(|| result__) + AmsiScanBuffer(amsicontext.param().abi(), buffer, length, contentname.param().abi(), amsisession.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn AmsiScanString(amsicontext: P0, string: P1, contentname: P2, amsisession: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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__ = std::mem::zeroed(); - AmsiScanString(amsicontext.into_param().abi(), string.into_param().abi(), contentname.into_param().abi(), amsisession.into_param().abi(), &mut result__).map(|| result__) + AmsiScanString(amsicontext.param().abi(), string.param().abi(), contentname.param().abi(), amsisession.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn AmsiUninitialize(amsicontext: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("amsi.dll" "system" fn AmsiUninitialize(amsicontext : HAMSICONTEXT)); - AmsiUninitialize(amsicontext.into_param().abi()) + AmsiUninitialize(amsicontext.param().abi()) } #[inline] pub unsafe fn InstallELAMCertificateInfo(elamfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn InstallELAMCertificateInfo(elamfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - InstallELAMCertificateInfo(elamfile.into_param().abi()).ok() + InstallELAMCertificateInfo(elamfile.param().abi()).ok() } windows_core::imp::define_interface!(IAmsiStream, IAmsiStream_Vtbl, 0x3e47f2e5_81d4_4d3b_897f_545096770373); windows_core::imp::interface_hierarchy!(IAmsiStream, windows_core::IUnknown); @@ -95,9 +95,9 @@ windows_core::imp::interface_hierarchy!(IAntimalware, windows_core::IUnknown); impl IAntimalware { pub unsafe fn Scan(&self, stream: P0, result: *mut AMSI_RESULT, provider: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), stream.into_param().abi(), result, core::mem::transmute(provider)).ok() + (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), stream.param().abi(), 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), session) @@ -114,20 +114,20 @@ windows_core::imp::interface_hierarchy!(IAntimalware2, windows_core::IUnknown, I impl IAntimalware2 { pub unsafe fn Scan(&self, stream: P0, result: *mut AMSI_RESULT, provider: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Scan)(windows_core::Interface::as_raw(self), stream.into_param().abi(), result, core::mem::transmute(provider)).ok() + (windows_core::Interface::vtable(self).base__.Scan)(windows_core::Interface::as_raw(self), stream.param().abi(), result, core::mem::transmute(provider)).ok() } pub unsafe fn CloseSession(&self, session: u64) { (windows_core::Interface::vtable(self).base__.CloseSession)(windows_core::Interface::as_raw(self), session) } pub unsafe fn Notify(&self, buffer: *const core::ffi::c_void, length: u32, contentname: P0, appname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), buffer, length, contentname.into_param().abi(), appname.into_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)] @@ -140,10 +140,10 @@ windows_core::imp::interface_hierarchy!(IAntimalwareProvider, windows_core::IUnk impl IAntimalwareProvider { pub unsafe fn Scan(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Scan)(windows_core::Interface::as_raw(self), stream.into_param().abi(), &mut result__).map(|| result__) + (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), session) @@ -165,10 +165,10 @@ windows_core::imp::interface_hierarchy!(IAntimalwareProvider2, windows_core::IUn impl IAntimalwareProvider2 { pub unsafe fn Scan(&self, stream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Scan)(windows_core::Interface::as_raw(self), stream.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.CloseSession)(windows_core::Interface::as_raw(self), session) @@ -179,11 +179,11 @@ impl IAntimalwareProvider2 { } pub unsafe fn Notify(&self, buffer: *const core::ffi::c_void, length: u32, contentname: P0, appname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), buffer, length, contentname.into_param().abi(), appname.into_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)] 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 6d02f3bf93..601646ec06 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -1,28 +1,28 @@ #[inline] pub unsafe fn ActivateActCtx(hactctx: P0, lpcookie: *mut usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ActivateActCtx(hactctx : super::super::Foundation:: HANDLE, lpcookie : *mut usize) -> super::super::Foundation:: BOOL); - ActivateActCtx(hactctx.into_param().abi(), lpcookie).ok() + ActivateActCtx(hactctx.param().abi(), lpcookie).ok() } #[inline] pub unsafe fn AddRefActCtx(hactctx: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddRefActCtx(hactctx : super::super::Foundation:: HANDLE)); - AddRefActCtx(hactctx.into_param().abi()) + AddRefActCtx(hactctx.param().abi()) } #[inline] pub unsafe fn ApplyDeltaA(applyflags: i64, lpsourcename: P0, lpdeltaname: P1, lptargetname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(applyflags, lpsourcename.into_param().abi(), lpdeltaname.into_param().abi(), lptargetname.into_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 { @@ -42,22 +42,22 @@ pub unsafe fn ApplyDeltaProvidedB(applyflags: i64, source: DELTA_INPUT, delta: D #[inline] pub unsafe fn ApplyDeltaW(applyflags: i64, lpsourcename: P0, lpdeltaname: P1, lptargetname: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(applyflags, lpsourcename.into_param().abi(), lpdeltaname.into_param().abi(), lptargetname.into_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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), oldfilename.into_param().abi(), newfilename.into_param().abi(), 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: PPATCH_PROGRESS_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { @@ -79,52 +79,52 @@ pub unsafe fn ApplyPatchToFileByBuffers(patchfilemapped: &[u8], oldfilemapped: O #[inline] pub unsafe fn ApplyPatchToFileByHandles(patchfilehandle: P0, oldfilehandle: P1, newfilehandle: P2, applyoptionflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(patchfilehandle.into_param().abi(), oldfilehandle.into_param().abi(), newfilehandle.into_param().abi(), applyoptionflags) + ApplyPatchToFileByHandles(patchfilehandle.param().abi(), oldfilehandle.param().abi(), newfilehandle.param().abi(), applyoptionflags) } #[inline] pub unsafe fn ApplyPatchToFileByHandlesEx(patchfilehandle: P0, oldfilehandle: P1, newfilehandle: P2, applyoptionflags: u32, progresscallback: PPATCH_PROGRESS_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(patchfilehandle.into_param().abi(), oldfilehandle.into_param().abi(), newfilehandle.into_param().abi(), applyoptionflags, progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + ApplyPatchToFileByHandlesEx(patchfilehandle.param().abi(), oldfilehandle.param().abi(), newfilehandle.param().abi(), applyoptionflags, progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ApplyPatchToFileExA(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: PPATCH_PROGRESS_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), oldfilename.into_param().abi(), newfilename.into_param().abi(), applyoptionflags, progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + ApplyPatchToFileExA(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags, progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ApplyPatchToFileExW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: PPATCH_PROGRESS_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), oldfilename.into_param().abi(), newfilename.into_param().abi(), applyoptionflags, progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + ApplyPatchToFileExW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags, progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn ApplyPatchToFileW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), oldfilename.into_param().abi(), newfilename.into_param().abi(), applyoptionflags) + ApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags) } #[inline] pub unsafe fn CreateActCtxA(pactctx: *const ACTCTXA) -> windows_core::Result { @@ -142,14 +142,14 @@ pub unsafe fn CreateActCtxW(pactctx: *const ACTCTXW) -> windows_core::Result(filetypeset: i64, setflags: i64, resetflags: i64, lpsourcename: P0, lptargetname: P1, lpsourceoptionsname: P2, lptargetoptionsname: P3, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdeltaname: P4) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(filetypeset, setflags, resetflags, lpsourcename.into_param().abi(), lptargetname.into_param().abi(), lpsourceoptionsname.into_param().abi(), lptargetoptionsname.into_param().abi(), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(std::ptr::null())), hashalgid, lpdeltaname.into_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(std::ptr::null())), hashalgid, lpdeltaname.param().abi()) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -161,71 +161,71 @@ pub unsafe fn CreateDeltaB(filetypeset: i64, setflags: i64, resetflags: i64, sou #[inline] pub unsafe fn CreateDeltaW(filetypeset: i64, setflags: i64, resetflags: i64, lpsourcename: P0, lptargetname: P1, lpsourceoptionsname: P2, lptargetoptionsname: P3, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdeltaname: P4) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(filetypeset, setflags, resetflags, lpsourcename.into_param().abi(), lptargetname.into_param().abi(), lpsourceoptionsname.into_param().abi(), lptargetoptionsname.into_param().abi(), core::mem::transmute(globaloptions), core::mem::transmute(lptargetfiletime.unwrap_or(std::ptr::null())), hashalgid, lpdeltaname.into_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(std::ptr::null())), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), newfilename.into_param().abi(), patchfilename.into_param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null()))) + CreatePatchFileA(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreatePatchFileByHandles(oldfilehandle: P0, newfilehandle: P1, patchfilehandle: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(oldfilehandle.into_param().abi(), newfilehandle.into_param().abi(), patchfilehandle.into_param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null()))) + CreatePatchFileByHandles(oldfilehandle.param().abi(), newfilehandle.param().abi(), patchfilehandle.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreatePatchFileByHandlesEx(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_H], newfilehandle: P0, patchfilehandle: P1, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: PPATCH_PROGRESS_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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()), newfilehandle.into_param().abi(), patchfilehandle.into_param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null())), progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + CreatePatchFileByHandlesEx(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilehandle.param().abi(), patchfilehandle.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null())), progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreatePatchFileExA(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_A], newfilename: P0, patchfilename: P1, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: PPATCH_PROGRESS_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), patchfilename.into_param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null())), progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + 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(std::ptr::null())), progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreatePatchFileExW(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_W], newfilename: P0, patchfilename: P1, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: PPATCH_PROGRESS_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), patchfilename.into_param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null())), progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) + 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(std::ptr::null())), progresscallback, core::mem::transmute(callbackcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreatePatchFileW(oldfilename: P0, newfilename: P1, patchfilename: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), newfilename.into_param().abi(), patchfilename.into_param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null()))) + CreatePatchFileW(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DeactivateActCtx(dwflags: u32, ulcookie: usize) -> windows_core::Result<()> { @@ -245,29 +245,29 @@ pub unsafe fn DeltaNormalizeProvidedB(filetypeset: i64, normalizeflags: i64, nor #[inline] pub unsafe fn ExtractPatchHeaderToFileA(patchfilename: P0, patchheaderfilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileA(patchfilename : windows_core::PCSTR, patchheaderfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - ExtractPatchHeaderToFileA(patchfilename.into_param().abi(), patchheaderfilename.into_param().abi()) + ExtractPatchHeaderToFileA(patchfilename.param().abi(), patchheaderfilename.param().abi()) } #[inline] pub unsafe fn ExtractPatchHeaderToFileByHandles(patchfilehandle: P0, patchheaderfilehandle: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, patchheaderfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ExtractPatchHeaderToFileByHandles(patchfilehandle.into_param().abi(), patchheaderfilehandle.into_param().abi()) + ExtractPatchHeaderToFileByHandles(patchfilehandle.param().abi(), patchheaderfilehandle.param().abi()) } #[inline] pub unsafe fn ExtractPatchHeaderToFileW(patchfilename: P0, patchheaderfilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileW(patchfilename : windows_core::PCWSTR, patchheaderfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - ExtractPatchHeaderToFileW(patchfilename.into_param().abi(), patchheaderfilename.into_param().abi()) + ExtractPatchHeaderToFileW(patchfilename.param().abi(), patchheaderfilename.param().abi()) } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] @@ -279,19 +279,19 @@ pub unsafe fn FindActCtxSectionGuid(dwflags: u32, lpextensionguid: Option<*const #[inline] pub unsafe fn FindActCtxSectionStringA(dwflags: u32, lpextensionguid: Option<*const windows_core::GUID>, ulsectionid: u32, lpstringtofind: P0, returneddata: *mut ACTCTX_SECTION_KEYED_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, core::mem::transmute(lpextensionguid.unwrap_or(std::ptr::null())), ulsectionid, lpstringtofind.into_param().abi(), returneddata).ok() + FindActCtxSectionStringA(dwflags, core::mem::transmute(lpextensionguid.unwrap_or(std::ptr::null())), ulsectionid, lpstringtofind.param().abi(), returneddata).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FindActCtxSectionStringW(dwflags: u32, lpextensionguid: Option<*const windows_core::GUID>, ulsectionid: u32, lpstringtofind: P0, returneddata: *mut ACTCTX_SECTION_KEYED_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, core::mem::transmute(lpextensionguid.unwrap_or(std::ptr::null())), ulsectionid, lpstringtofind.into_param().abi(), returneddata).ok() + FindActCtxSectionStringW(dwflags, core::mem::transmute(lpextensionguid.unwrap_or(std::ptr::null())), ulsectionid, lpstringtofind.param().abi(), returneddata).ok() } #[inline] pub unsafe fn GetCurrentActCtx(lphactctx: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -302,10 +302,10 @@ pub unsafe fn GetCurrentActCtx(lphactctx: *mut super::super::Foundation::HANDLE) #[inline] pub unsafe fn GetDeltaInfoA(lpdeltaname: P0, lpheaderinfo: *mut DELTA_HEADER_INFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoA(lpdeltaname : windows_core::PCSTR, lpheaderinfo : *mut DELTA_HEADER_INFO) -> super::super::Foundation:: BOOL); - GetDeltaInfoA(lpdeltaname.into_param().abi(), lpheaderinfo) + GetDeltaInfoA(lpdeltaname.param().abi(), lpheaderinfo) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -317,19 +317,19 @@ pub unsafe fn GetDeltaInfoB(delta: DELTA_INPUT, lpheaderinfo: *mut DELTA_HEADER_ #[inline] pub unsafe fn GetDeltaInfoW(lpdeltaname: P0, lpheaderinfo: *mut DELTA_HEADER_INFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoW(lpdeltaname : windows_core::PCWSTR, lpheaderinfo : *mut DELTA_HEADER_INFO) -> super::super::Foundation:: BOOL); - GetDeltaInfoW(lpdeltaname.into_param().abi(), lpheaderinfo) + GetDeltaInfoW(lpdeltaname.param().abi(), lpheaderinfo) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn GetDeltaSignatureA(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, lpsourcename: P0, lphash: *mut DELTA_HASH) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(filetypeset, hashalgid, lpsourcename.into_param().abi(), lphash) + GetDeltaSignatureA(filetypeset, hashalgid, lpsourcename.param().abi(), lphash) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] @@ -341,19 +341,19 @@ pub unsafe fn GetDeltaSignatureB(filetypeset: i64, hashalgid: super::super::Secu #[inline] pub unsafe fn GetDeltaSignatureW(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, lpsourcename: P0, lphash: *mut DELTA_HASH) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(filetypeset, hashalgid, lpsourcename.into_param().abi(), lphash) + GetDeltaSignatureW(filetypeset, hashalgid, lpsourcename.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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.into_param().abi(), + filename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null())), ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -383,11 +383,11 @@ pub unsafe fn GetFilePatchSignatureByBuffer(filebufferwritable: &mut [u8], optio #[inline] pub unsafe fn GetFilePatchSignatureByHandle(filehandle: 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - filehandle.into_param().abi(), + filehandle.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null())), ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -401,11 +401,11 @@ where #[inline] pub unsafe fn GetFilePatchSignatureW(filename: P0, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffersize: u32, signaturebuffer: windows_core::PWSTR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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.into_param().abi(), + filename.param().abi(), optionflags, core::mem::transmute(optiondata.unwrap_or(std::ptr::null())), ignorerangearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -419,118 +419,118 @@ where #[inline] pub unsafe fn MsiAdvertiseProductA(szpackagepath: P0, szscriptfilepath: P1, sztransforms: P2, lgidlanguage: u16) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), szscriptfilepath.into_param().abi(), sztransforms.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), szscriptfilepath.into_param().abi(), sztransforms.into_param().abi(), lgidlanguage, dwplatform, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), szscriptfilepath.into_param().abi(), sztransforms.into_param().abi(), lgidlanguage, dwplatform, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), szscriptfilepath.into_param().abi(), sztransforms.into_param().abi(), lgidlanguage) + MsiAdvertiseProductW(szpackagepath.param().abi(), szscriptfilepath.param().abi(), sztransforms.param().abi(), lgidlanguage) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn MsiAdvertiseScriptA(szscriptfile: P0, dwflags: u32, phregdata: Option<*const super::Registry::HKEY>, fremoveitems: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, core::mem::transmute(phregdata.unwrap_or(std::ptr::null())), fremoveitems.into_param().abi()) + MsiAdvertiseScriptA(szscriptfile.param().abi(), dwflags, core::mem::transmute(phregdata.unwrap_or(std::ptr::null())), fremoveitems.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn MsiAdvertiseScriptW(szscriptfile: P0, dwflags: u32, phregdata: Option<*const super::Registry::HKEY>, fremoveitems: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, core::mem::transmute(phregdata.unwrap_or(std::ptr::null())), fremoveitems.into_param().abi()) + MsiAdvertiseScriptW(szscriptfile.param().abi(), dwflags, core::mem::transmute(phregdata.unwrap_or(std::ptr::null())), fremoveitems.param().abi()) } #[inline] pub unsafe fn MsiApplyMultiplePatchesA(szpatchpackages: P0, szproductcode: P1, szpropertieslist: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiApplyMultiplePatchesA(szpatchpackages : windows_core::PCSTR, szproductcode : windows_core::PCSTR, szpropertieslist : windows_core::PCSTR) -> u32); - MsiApplyMultiplePatchesA(szpatchpackages.into_param().abi(), szproductcode.into_param().abi(), szpropertieslist.into_param().abi()) + MsiApplyMultiplePatchesA(szpatchpackages.param().abi(), szproductcode.param().abi(), szpropertieslist.param().abi()) } #[inline] pub unsafe fn MsiApplyMultiplePatchesW(szpatchpackages: P0, szproductcode: P1, szpropertieslist: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiApplyMultiplePatchesW(szpatchpackages : windows_core::PCWSTR, szproductcode : windows_core::PCWSTR, szpropertieslist : windows_core::PCWSTR) -> u32); - MsiApplyMultiplePatchesW(szpatchpackages.into_param().abi(), szproductcode.into_param().abi(), szpropertieslist.into_param().abi()) + MsiApplyMultiplePatchesW(szpatchpackages.param().abi(), szproductcode.param().abi(), szpropertieslist.param().abi()) } #[inline] pub unsafe fn MsiApplyPatchA(szpatchpackage: P0, szinstallpackage: P1, einstalltype: INSTALLTYPE, szcommandline: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szinstallpackage.into_param().abi(), einstalltype, szcommandline.into_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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szinstallpackage.into_param().abi(), einstalltype, szcommandline.into_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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwtransactionattributes, phtransactionhandle, phchangeofownerevent) + MsiBeginTransactionA(szname.param().abi(), dwtransactionattributes, phtransactionhandle, phchangeofownerevent) } #[inline] pub unsafe fn MsiBeginTransactionW(szname: P0, dwtransactionattributes: u32, phtransactionhandle: *mut MSIHANDLE, phchangeofownerevent: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwtransactionattributes, phtransactionhandle, phchangeofownerevent) + MsiBeginTransactionW(szname.param().abi(), dwtransactionattributes, phtransactionhandle, phchangeofownerevent) } #[inline] pub unsafe fn MsiCloseAllHandles() -> u32 { @@ -540,78 +540,78 @@ pub unsafe fn MsiCloseAllHandles() -> u32 { #[inline] pub unsafe fn MsiCloseHandle(hany: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiCloseHandle(hany : MSIHANDLE) -> u32); - MsiCloseHandle(hany.into_param().abi()) + MsiCloseHandle(hany.param().abi()) } #[inline] pub unsafe fn MsiCollectUserInfoA(szproduct: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiCollectUserInfoA(szproduct : windows_core::PCSTR) -> u32); - MsiCollectUserInfoA(szproduct.into_param().abi()) + MsiCollectUserInfoA(szproduct.param().abi()) } #[inline] pub unsafe fn MsiCollectUserInfoW(szproduct: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiCollectUserInfoW(szproduct : windows_core::PCWSTR) -> u32); - MsiCollectUserInfoW(szproduct.into_param().abi()) + MsiCollectUserInfoW(szproduct.param().abi()) } #[inline] pub unsafe fn MsiConfigureFeatureA(szproduct: P0, szfeature: P1, einstallstate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szfeature.into_param().abi(), einstallstate) + MsiConfigureFeatureA(szproduct.param().abi(), szfeature.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiConfigureFeatureW(szproduct: P0, szfeature: P1, einstallstate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szfeature.into_param().abi(), einstallstate) + MsiConfigureFeatureW(szproduct.param().abi(), szfeature.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiConfigureProductA(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureProductA(szproduct : windows_core::PCSTR, iinstalllevel : INSTALLLEVEL, einstallstate : INSTALLSTATE) -> u32); - MsiConfigureProductA(szproduct.into_param().abi(), iinstalllevel, einstallstate) + MsiConfigureProductA(szproduct.param().abi(), iinstalllevel, einstallstate) } #[inline] pub unsafe fn MsiConfigureProductExA(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE, szcommandline: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), iinstalllevel, einstallstate, szcommandline.into_param().abi()) + MsiConfigureProductExA(szproduct.param().abi(), iinstalllevel, einstallstate, szcommandline.param().abi()) } #[inline] pub unsafe fn MsiConfigureProductExW(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE, szcommandline: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), iinstalllevel, einstallstate, szcommandline.into_param().abi()) + MsiConfigureProductExW(szproduct.param().abi(), iinstalllevel, einstallstate, szcommandline.param().abi()) } #[inline] pub unsafe fn MsiConfigureProductW(szproduct: P0, iinstalllevel: INSTALLLEVEL, einstallstate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiConfigureProductW(szproduct : windows_core::PCWSTR, iinstalllevel : INSTALLLEVEL, einstallstate : INSTALLSTATE) -> u32); - MsiConfigureProductW(szproduct.into_param().abi(), iinstalllevel, einstallstate) + MsiConfigureProductW(szproduct.param().abi(), iinstalllevel, einstallstate) } #[inline] pub unsafe fn MsiCreateRecord(cparams: u32) -> MSIHANDLE { @@ -621,260 +621,260 @@ pub unsafe fn MsiCreateRecord(cparams: u32) -> MSIHANDLE { #[inline] pub unsafe fn MsiCreateTransformSummaryInfoA(hdatabase: P0, hdatabasereference: P1, sztransformfile: P2, ierrorconditions: MSITRANSFORM_ERROR, ivalidation: MSITRANSFORM_VALIDATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hdatabase.into_param().abi(), hdatabasereference.into_param().abi(), sztransformfile.into_param().abi(), ierrorconditions, ivalidation) + MsiCreateTransformSummaryInfoA(hdatabase.param().abi(), hdatabasereference.param().abi(), sztransformfile.param().abi(), ierrorconditions, ivalidation) } #[inline] pub unsafe fn MsiCreateTransformSummaryInfoW(hdatabase: P0, hdatabasereference: P1, sztransformfile: P2, ierrorconditions: MSITRANSFORM_ERROR, ivalidation: MSITRANSFORM_VALIDATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hdatabase.into_param().abi(), hdatabasereference.into_param().abi(), sztransformfile.into_param().abi(), ierrorconditions, ivalidation) + MsiCreateTransformSummaryInfoW(hdatabase.param().abi(), hdatabasereference.param().abi(), sztransformfile.param().abi(), ierrorconditions, ivalidation) } #[inline] pub unsafe fn MsiDatabaseApplyTransformA(hdatabase: P0, sztransformfile: P1, ierrorconditions: MSITRANSFORM_ERROR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseApplyTransformA(hdatabase : MSIHANDLE, sztransformfile : windows_core::PCSTR, ierrorconditions : MSITRANSFORM_ERROR) -> u32); - MsiDatabaseApplyTransformA(hdatabase.into_param().abi(), sztransformfile.into_param().abi(), ierrorconditions) + MsiDatabaseApplyTransformA(hdatabase.param().abi(), sztransformfile.param().abi(), ierrorconditions) } #[inline] pub unsafe fn MsiDatabaseApplyTransformW(hdatabase: P0, sztransformfile: P1, ierrorconditions: MSITRANSFORM_ERROR) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseApplyTransformW(hdatabase : MSIHANDLE, sztransformfile : windows_core::PCWSTR, ierrorconditions : MSITRANSFORM_ERROR) -> u32); - MsiDatabaseApplyTransformW(hdatabase.into_param().abi(), sztransformfile.into_param().abi(), ierrorconditions) + MsiDatabaseApplyTransformW(hdatabase.param().abi(), sztransformfile.param().abi(), ierrorconditions) } #[inline] pub unsafe fn MsiDatabaseCommit(hdatabase: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseCommit(hdatabase : MSIHANDLE) -> u32); - MsiDatabaseCommit(hdatabase.into_param().abi()) + MsiDatabaseCommit(hdatabase.param().abi()) } #[inline] pub unsafe fn MsiDatabaseExportA(hdatabase: P0, sztablename: P1, szfolderpath: P2, szfilename: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hdatabase.into_param().abi(), sztablename.into_param().abi(), szfolderpath.into_param().abi(), szfilename.into_param().abi()) + MsiDatabaseExportA(hdatabase.param().abi(), sztablename.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseExportW(hdatabase: P0, sztablename: P1, szfolderpath: P2, szfilename: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hdatabase.into_param().abi(), sztablename.into_param().abi(), szfolderpath.into_param().abi(), szfilename.into_param().abi()) + MsiDatabaseExportW(hdatabase.param().abi(), sztablename.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseGenerateTransformA(hdatabase: P0, hdatabasereference: P1, sztransformfile: P2, ireserved1: i32, ireserved2: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hdatabase.into_param().abi(), hdatabasereference.into_param().abi(), sztransformfile.into_param().abi(), ireserved1, ireserved2) + MsiDatabaseGenerateTransformA(hdatabase.param().abi(), hdatabasereference.param().abi(), sztransformfile.param().abi(), ireserved1, ireserved2) } #[inline] pub unsafe fn MsiDatabaseGenerateTransformW(hdatabase: P0, hdatabasereference: P1, sztransformfile: P2, ireserved1: i32, ireserved2: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hdatabase.into_param().abi(), hdatabasereference.into_param().abi(), sztransformfile.into_param().abi(), ireserved1, ireserved2) + MsiDatabaseGenerateTransformW(hdatabase.param().abi(), hdatabasereference.param().abi(), sztransformfile.param().abi(), ireserved1, ireserved2) } #[inline] pub unsafe fn MsiDatabaseGetPrimaryKeysA(hdatabase: P0, sztablename: P1, phrecord: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseGetPrimaryKeysA(hdatabase : MSIHANDLE, sztablename : windows_core::PCSTR, phrecord : *mut MSIHANDLE) -> u32); - MsiDatabaseGetPrimaryKeysA(hdatabase.into_param().abi(), sztablename.into_param().abi(), phrecord) + MsiDatabaseGetPrimaryKeysA(hdatabase.param().abi(), sztablename.param().abi(), phrecord) } #[inline] pub unsafe fn MsiDatabaseGetPrimaryKeysW(hdatabase: P0, sztablename: P1, phrecord: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseGetPrimaryKeysW(hdatabase : MSIHANDLE, sztablename : windows_core::PCWSTR, phrecord : *mut MSIHANDLE) -> u32); - MsiDatabaseGetPrimaryKeysW(hdatabase.into_param().abi(), sztablename.into_param().abi(), phrecord) + MsiDatabaseGetPrimaryKeysW(hdatabase.param().abi(), sztablename.param().abi(), phrecord) } #[inline] pub unsafe fn MsiDatabaseImportA(hdatabase: P0, szfolderpath: P1, szfilename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseImportA(hdatabase : MSIHANDLE, szfolderpath : windows_core::PCSTR, szfilename : windows_core::PCSTR) -> u32); - MsiDatabaseImportA(hdatabase.into_param().abi(), szfolderpath.into_param().abi(), szfilename.into_param().abi()) + MsiDatabaseImportA(hdatabase.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseImportW(hdatabase: P0, szfolderpath: P1, szfilename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseImportW(hdatabase : MSIHANDLE, szfolderpath : windows_core::PCWSTR, szfilename : windows_core::PCWSTR) -> u32); - MsiDatabaseImportW(hdatabase.into_param().abi(), szfolderpath.into_param().abi(), szfilename.into_param().abi()) + MsiDatabaseImportW(hdatabase.param().abi(), szfolderpath.param().abi(), szfilename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseIsTablePersistentA(hdatabase: P0, sztablename: P1) -> MSICONDITION where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseIsTablePersistentA(hdatabase : MSIHANDLE, sztablename : windows_core::PCSTR) -> MSICONDITION); - MsiDatabaseIsTablePersistentA(hdatabase.into_param().abi(), sztablename.into_param().abi()) + MsiDatabaseIsTablePersistentA(hdatabase.param().abi(), sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseIsTablePersistentW(hdatabase: P0, sztablename: P1) -> MSICONDITION where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseIsTablePersistentW(hdatabase : MSIHANDLE, sztablename : windows_core::PCWSTR) -> MSICONDITION); - MsiDatabaseIsTablePersistentW(hdatabase.into_param().abi(), sztablename.into_param().abi()) + MsiDatabaseIsTablePersistentW(hdatabase.param().abi(), sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseMergeA(hdatabase: P0, hdatabasemerge: P1, sztablename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseMergeA(hdatabase : MSIHANDLE, hdatabasemerge : MSIHANDLE, sztablename : windows_core::PCSTR) -> u32); - MsiDatabaseMergeA(hdatabase.into_param().abi(), hdatabasemerge.into_param().abi(), sztablename.into_param().abi()) + MsiDatabaseMergeA(hdatabase.param().abi(), hdatabasemerge.param().abi(), sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseMergeW(hdatabase: P0, hdatabasemerge: P1, sztablename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseMergeW(hdatabase : MSIHANDLE, hdatabasemerge : MSIHANDLE, sztablename : windows_core::PCWSTR) -> u32); - MsiDatabaseMergeW(hdatabase.into_param().abi(), hdatabasemerge.into_param().abi(), sztablename.into_param().abi()) + MsiDatabaseMergeW(hdatabase.param().abi(), hdatabasemerge.param().abi(), sztablename.param().abi()) } #[inline] pub unsafe fn MsiDatabaseOpenViewA(hdatabase: P0, szquery: P1, phview: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseOpenViewA(hdatabase : MSIHANDLE, szquery : windows_core::PCSTR, phview : *mut MSIHANDLE) -> u32); - MsiDatabaseOpenViewA(hdatabase.into_param().abi(), szquery.into_param().abi(), phview) + MsiDatabaseOpenViewA(hdatabase.param().abi(), szquery.param().abi(), phview) } #[inline] pub unsafe fn MsiDatabaseOpenViewW(hdatabase: P0, szquery: P1, phview: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDatabaseOpenViewW(hdatabase : MSIHANDLE, szquery : windows_core::PCWSTR, phview : *mut MSIHANDLE) -> u32); - MsiDatabaseOpenViewW(hdatabase.into_param().abi(), szquery.into_param().abi(), phview) + MsiDatabaseOpenViewW(hdatabase.param().abi(), szquery.param().abi(), phview) } #[inline] pub unsafe fn MsiDetermineApplicablePatchesA(szproductpackagepath: P0, ppatchinfo: &mut [MSIPATCHSEQUENCEINFOA]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDetermineApplicablePatchesA(szproductpackagepath : windows_core::PCSTR, cpatchinfo : u32, ppatchinfo : *mut MSIPATCHSEQUENCEINFOA) -> u32); - MsiDetermineApplicablePatchesA(szproductpackagepath.into_param().abi(), ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) + MsiDetermineApplicablePatchesA(szproductpackagepath.param().abi(), ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) } #[inline] pub unsafe fn MsiDetermineApplicablePatchesW(szproductpackagepath: P0, ppatchinfo: &mut [MSIPATCHSEQUENCEINFOW]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDetermineApplicablePatchesW(szproductpackagepath : windows_core::PCWSTR, cpatchinfo : u32, ppatchinfo : *mut MSIPATCHSEQUENCEINFOW) -> u32); - MsiDetermineApplicablePatchesW(szproductpackagepath.into_param().abi(), ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) + MsiDetermineApplicablePatchesW(szproductpackagepath.param().abi(), ppatchinfo.len().try_into().unwrap(), core::mem::transmute(ppatchinfo.as_ptr())) } #[inline] pub unsafe fn MsiDeterminePatchSequenceA(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, ppatchinfo: &mut [MSIPATCHSEQUENCEINFOA]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), 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: P0, szaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDoActionA(hinstall : MSIHANDLE, szaction : windows_core::PCSTR) -> u32); - MsiDoActionA(hinstall.into_param().abi(), szaction.into_param().abi()) + MsiDoActionA(hinstall.param().abi(), szaction.param().abi()) } #[inline] pub unsafe fn MsiDoActionW(hinstall: P0, szaction: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiDoActionW(hinstall : MSIHANDLE, szaction : windows_core::PCWSTR) -> u32); - MsiDoActionW(hinstall.into_param().abi(), szaction.into_param().abi()) + MsiDoActionW(hinstall.param().abi(), szaction.param().abi()) } #[inline] pub unsafe fn MsiEnableLogA(dwlogmode: INSTALLLOGMODE, szlogfile: P0, dwlogattributes: u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), dwlogattributes) + MsiEnableLogA(dwlogmode.0 as _, szlogfile.param().abi(), dwlogattributes) } #[inline] pub unsafe fn MsiEnableLogW(dwlogmode: INSTALLLOGMODE, szlogfile: P0, dwlogattributes: u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), dwlogattributes) + MsiEnableLogW(dwlogmode.0 as _, szlogfile.param().abi(), dwlogattributes) } #[inline] pub unsafe fn MsiEnableUIPreview(hdatabase: P0, phpreview: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnableUIPreview(hdatabase : MSIHANDLE, phpreview : *mut MSIHANDLE) -> u32); - MsiEnableUIPreview(hdatabase.into_param().abi(), phpreview) + MsiEnableUIPreview(hdatabase.param().abi(), phpreview) } #[inline] pub unsafe fn MsiEndTransaction(dwtransactionstate: MSITRANSACTIONSTATE) -> u32 { @@ -884,70 +884,70 @@ pub unsafe fn MsiEndTransaction(dwtransactionstate: MSITRANSACTIONSTATE) -> u32 #[inline] pub unsafe fn MsiEnumClientsA(szcomponent: P0, iproductindex: u32, lpproductbuf: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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: windows_core::PSTR, pcchsid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) + 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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumClientsExW(szcomponent: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwproductindex: u32, szproductbuf: Option<&mut [u16; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: windows_core::PWSTR, pcchsid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) + 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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumClientsW(szcomponent: P0, iproductindex: u32, lpproductbuf: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), iproductindex, core::mem::transmute(lpproductbuf)) + MsiEnumClientsW(szcomponent.param().abi(), iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEnumComponentCostsA(hinstall: P0, szcomponent: P1, dwindex: u32, istate: INSTALLSTATE, szdrivebuf: windows_core::PSTR, pcchdrivebuf: *mut u32, picost: *mut i32, pitempcost: *mut i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szcomponent.into_param().abi(), dwindex, istate, core::mem::transmute(szdrivebuf), pcchdrivebuf, picost, pitempcost) + MsiEnumComponentCostsA(hinstall.param().abi(), szcomponent.param().abi(), dwindex, istate, core::mem::transmute(szdrivebuf), pcchdrivebuf, picost, pitempcost) } #[inline] pub unsafe fn MsiEnumComponentCostsW(hinstall: P0, szcomponent: P1, dwindex: u32, istate: INSTALLSTATE, szdrivebuf: windows_core::PWSTR, pcchdrivebuf: *mut u32, picost: *mut i32, pitempcost: *mut i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szcomponent.into_param().abi(), dwindex, istate, core::mem::transmute(szdrivebuf), pcchdrivebuf, picost, pitempcost) + MsiEnumComponentCostsW(hinstall.param().abi(), szcomponent.param().abi(), dwindex, istate, core::mem::transmute(szdrivebuf), pcchdrivebuf, picost, pitempcost) } #[inline] pub unsafe fn MsiEnumComponentQualifiersA(szcomponent: P0, iindex: u32, lpqualifierbuf: windows_core::PSTR, pcchqualifierbuf: *mut u32, lpapplicationdatabuf: windows_core::PSTR, pcchapplicationdatabuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), iindex, core::mem::transmute(lpqualifierbuf), pcchqualifierbuf, core::mem::transmute(lpapplicationdatabuf), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(std::ptr::null_mut()))) + MsiEnumComponentQualifiersA(szcomponent.param().abi(), iindex, core::mem::transmute(lpqualifierbuf), pcchqualifierbuf, core::mem::transmute(lpapplicationdatabuf), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumComponentQualifiersW(szcomponent: P0, iindex: u32, lpqualifierbuf: windows_core::PWSTR, pcchqualifierbuf: *mut u32, lpapplicationdatabuf: windows_core::PWSTR, pcchapplicationdatabuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), iindex, core::mem::transmute(lpqualifierbuf), pcchqualifierbuf, core::mem::transmute(lpapplicationdatabuf), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(std::ptr::null_mut()))) + MsiEnumComponentQualifiersW(szcomponent.param().abi(), iindex, core::mem::transmute(lpqualifierbuf), pcchqualifierbuf, core::mem::transmute(lpapplicationdatabuf), core::mem::transmute(pcchapplicationdatabuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumComponentsA(icomponentindex: u32, lpcomponentbuf: windows_core::PSTR) -> u32 { @@ -957,18 +957,18 @@ pub unsafe fn MsiEnumComponentsA(icomponentindex: u32, lpcomponentbuf: windows_c #[inline] pub unsafe fn MsiEnumComponentsExA(szusersid: P0, dwcontext: u32, dwindex: u32, szinstalledcomponentcode: Option<&mut [u8; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: windows_core::PSTR, pcchsid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) + 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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumComponentsExW(szusersid: P0, dwcontext: u32, dwindex: u32, szinstalledcomponentcode: Option<&mut [u16; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: windows_core::PWSTR, pcchsid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + 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.into_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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) + 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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumComponentsW(icomponentindex: u32, lpcomponentbuf: windows_core::PWSTR) -> u32 { @@ -978,74 +978,52 @@ pub unsafe fn MsiEnumComponentsW(icomponentindex: u32, lpcomponentbuf: windows_c #[inline] pub unsafe fn MsiEnumFeaturesA(szproduct: P0, ifeatureindex: u32, lpfeaturebuf: windows_core::PSTR, lpparentbuf: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ifeatureindex, core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf)) + MsiEnumFeaturesA(szproduct.param().abi(), ifeatureindex, core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf)) } #[inline] pub unsafe fn MsiEnumFeaturesW(szproduct: P0, ifeatureindex: u32, lpfeaturebuf: windows_core::PWSTR, lpparentbuf: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ifeatureindex, core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf)) + MsiEnumFeaturesW(szproduct.param().abi(), ifeatureindex, core::mem::transmute(lpfeaturebuf), core::mem::transmute(lpparentbuf)) } #[inline] pub unsafe fn MsiEnumPatchesA(szproduct: P0, ipatchindex: u32, lppatchbuf: windows_core::PSTR, lptransformsbuf: windows_core::PSTR, pcchtransformsbuf: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ipatchindex, core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), pcchtransformsbuf) + MsiEnumPatchesA(szproduct.param().abi(), ipatchindex, core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), 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: windows_core::PSTR, pcchtargetusersid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumPatchesExA(szproductcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : u32, dwfilter : u32, dwindex : u32, szpatchcode : windows_core::PSTR, sztargetproductcode : windows_core::PSTR, pdwtargetproductcontext : *mut MSIINSTALLCONTEXT, sztargetusersid : windows_core::PSTR, pcchtargetusersid : *mut u32) -> u32); - MsiEnumPatchesExA( - szproductcode.into_param().abi(), - szusersid.into_param().abi(), - 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(std::ptr::null_mut())), - core::mem::transmute(sztargetusersid), - core::mem::transmute(pcchtargetusersid.unwrap_or(std::ptr::null_mut())), - ) + MsiEnumPatchesExA(szproductcode.param().abi(), szusersid.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(sztargetusersid), core::mem::transmute(pcchtargetusersid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumPatchesExW(szproductcode: P0, szusersid: P1, dwcontext: u32, dwfilter: u32, dwindex: u32, szpatchcode: Option<&mut [u16; 39]>, sztargetproductcode: Option<&mut [u16; 39]>, pdwtargetproductcontext: Option<*mut MSIINSTALLCONTEXT>, sztargetusersid: windows_core::PWSTR, pcchtargetusersid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEnumPatchesExW(szproductcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : u32, dwfilter : u32, dwindex : u32, szpatchcode : windows_core::PWSTR, sztargetproductcode : windows_core::PWSTR, pdwtargetproductcontext : *mut MSIINSTALLCONTEXT, sztargetusersid : windows_core::PWSTR, pcchtargetusersid : *mut u32) -> u32); - MsiEnumPatchesExW( - szproductcode.into_param().abi(), - szusersid.into_param().abi(), - 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(std::ptr::null_mut())), - core::mem::transmute(sztargetusersid), - core::mem::transmute(pcchtargetusersid.unwrap_or(std::ptr::null_mut())), - ) + MsiEnumPatchesExW(szproductcode.param().abi(), szusersid.param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(sztargetusersid), core::mem::transmute(pcchtargetusersid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumPatchesW(szproduct: P0, ipatchindex: u32, lppatchbuf: windows_core::PWSTR, lptransformsbuf: windows_core::PWSTR, pcchtransformsbuf: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), ipatchindex, core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), pcchtransformsbuf) + MsiEnumPatchesW(szproduct.param().abi(), ipatchindex, core::mem::transmute(lppatchbuf), core::mem::transmute(lptransformsbuf), pcchtransformsbuf) } #[inline] pub unsafe fn MsiEnumProductsA(iproductindex: u32, lpproductbuf: windows_core::PSTR) -> u32 { @@ -1055,20 +1033,20 @@ pub unsafe fn MsiEnumProductsA(iproductindex: u32, lpproductbuf: windows_core::P #[inline] pub unsafe fn MsiEnumProductsExA(szproductcode: P0, szusersid: P1, dwcontext: u32, dwindex: u32, szinstalledproductcode: Option<&mut [u8; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: windows_core::PSTR, pcchsid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) + 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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumProductsExW(szproductcode: P0, szusersid: P1, dwcontext: u32, dwindex: u32, szinstalledproductcode: Option<&mut [u16; 39]>, pdwinstalledcontext: Option<*mut MSIINSTALLCONTEXT>, szsid: windows_core::PWSTR, pcchsid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) + 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(std::ptr::null_mut())), core::mem::transmute(szsid), core::mem::transmute(pcchsid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiEnumProductsW(iproductindex: u32, lpproductbuf: windows_core::PWSTR) -> u32 { @@ -1078,290 +1056,290 @@ pub unsafe fn MsiEnumProductsW(iproductindex: u32, lpproductbuf: windows_core::P #[inline] pub unsafe fn MsiEnumRelatedProductsA(lpupgradecode: P0, dwreserved: u32, iproductindex: u32, lpproductbuf: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwreserved, iproductindex, core::mem::transmute(lpproductbuf)) + MsiEnumRelatedProductsA(lpupgradecode.param().abi(), dwreserved, iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEnumRelatedProductsW(lpupgradecode: P0, dwreserved: u32, iproductindex: u32, lpproductbuf: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwreserved, iproductindex, core::mem::transmute(lpproductbuf)) + MsiEnumRelatedProductsW(lpupgradecode.param().abi(), dwreserved, iproductindex, core::mem::transmute(lpproductbuf)) } #[inline] pub unsafe fn MsiEvaluateConditionA(hinstall: P0, szcondition: P1) -> MSICONDITION where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEvaluateConditionA(hinstall : MSIHANDLE, szcondition : windows_core::PCSTR) -> MSICONDITION); - MsiEvaluateConditionA(hinstall.into_param().abi(), szcondition.into_param().abi()) + MsiEvaluateConditionA(hinstall.param().abi(), szcondition.param().abi()) } #[inline] pub unsafe fn MsiEvaluateConditionW(hinstall: P0, szcondition: P1) -> MSICONDITION where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiEvaluateConditionW(hinstall : MSIHANDLE, szcondition : windows_core::PCWSTR) -> MSICONDITION); - MsiEvaluateConditionW(hinstall.into_param().abi(), szcondition.into_param().abi()) + MsiEvaluateConditionW(hinstall.param().abi(), szcondition.param().abi()) } #[inline] pub unsafe fn MsiExtractPatchXMLDataA(szpatchpath: P0, dwreserved: u32, szxmldata: windows_core::PSTR, pcchxmldata: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiExtractPatchXMLDataA(szpatchpath : windows_core::PCSTR, dwreserved : u32, szxmldata : windows_core::PSTR, pcchxmldata : *mut u32) -> u32); - MsiExtractPatchXMLDataA(szpatchpath.into_param().abi(), dwreserved, core::mem::transmute(szxmldata), core::mem::transmute(pcchxmldata.unwrap_or(std::ptr::null_mut()))) + MsiExtractPatchXMLDataA(szpatchpath.param().abi(), dwreserved, core::mem::transmute(szxmldata), core::mem::transmute(pcchxmldata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiExtractPatchXMLDataW(szpatchpath: P0, dwreserved: u32, szxmldata: windows_core::PWSTR, pcchxmldata: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiExtractPatchXMLDataW(szpatchpath : windows_core::PCWSTR, dwreserved : u32, szxmldata : windows_core::PWSTR, pcchxmldata : *mut u32) -> u32); - MsiExtractPatchXMLDataW(szpatchpath.into_param().abi(), dwreserved, core::mem::transmute(szxmldata), core::mem::transmute(pcchxmldata.unwrap_or(std::ptr::null_mut()))) + MsiExtractPatchXMLDataW(szpatchpath.param().abi(), dwreserved, core::mem::transmute(szxmldata), core::mem::transmute(pcchxmldata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiFormatRecordA(hinstall: P0, hrecord: P1, szresultbuf: windows_core::PSTR, pcchresultbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiFormatRecordA(hinstall : MSIHANDLE, hrecord : MSIHANDLE, szresultbuf : windows_core::PSTR, pcchresultbuf : *mut u32) -> u32); - MsiFormatRecordA(hinstall.into_param().abi(), hrecord.into_param().abi(), core::mem::transmute(szresultbuf), core::mem::transmute(pcchresultbuf.unwrap_or(std::ptr::null_mut()))) + MsiFormatRecordA(hinstall.param().abi(), hrecord.param().abi(), core::mem::transmute(szresultbuf), core::mem::transmute(pcchresultbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiFormatRecordW(hinstall: P0, hrecord: P1, szresultbuf: windows_core::PWSTR, pcchresultbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiFormatRecordW(hinstall : MSIHANDLE, hrecord : MSIHANDLE, szresultbuf : windows_core::PWSTR, pcchresultbuf : *mut u32) -> u32); - MsiFormatRecordW(hinstall.into_param().abi(), hrecord.into_param().abi(), core::mem::transmute(szresultbuf), core::mem::transmute(pcchresultbuf.unwrap_or(std::ptr::null_mut()))) + MsiFormatRecordW(hinstall.param().abi(), hrecord.param().abi(), core::mem::transmute(szresultbuf), core::mem::transmute(pcchresultbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetActiveDatabase(hinstall: P0) -> MSIHANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetActiveDatabase(hinstall : MSIHANDLE) -> MSIHANDLE); - MsiGetActiveDatabase(hinstall.into_param().abi()) + MsiGetActiveDatabase(hinstall.param().abi()) } #[inline] pub unsafe fn MsiGetComponentPathA(szproduct: P0, szcomponent: P1, lppathbuf: windows_core::PSTR, pcchbuf: Option<*mut u32>) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetComponentPathA(szproduct : windows_core::PCSTR, szcomponent : windows_core::PCSTR, lppathbuf : windows_core::PSTR, pcchbuf : *mut u32) -> INSTALLSTATE); - MsiGetComponentPathA(szproduct.into_param().abi(), szcomponent.into_param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetComponentPathA(szproduct.param().abi(), szcomponent.param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetComponentPathExA(szproductcode: P0, szcomponentcode: P1, szusersid: P2, dwcontext: MSIINSTALLCONTEXT, lpoutpathbuffer: windows_core::PSTR, pcchoutpathbuffer: Option<*mut u32>) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetComponentPathExA(szproductcode : windows_core::PCSTR, szcomponentcode : windows_core::PCSTR, szusersid : windows_core::PCSTR, dwcontext : MSIINSTALLCONTEXT, lpoutpathbuffer : windows_core::PSTR, pcchoutpathbuffer : *mut u32) -> INSTALLSTATE); - MsiGetComponentPathExA(szproductcode.into_param().abi(), szcomponentcode.into_param().abi(), szusersid.into_param().abi(), dwcontext, core::mem::transmute(lpoutpathbuffer), core::mem::transmute(pcchoutpathbuffer.unwrap_or(std::ptr::null_mut()))) + MsiGetComponentPathExA(szproductcode.param().abi(), szcomponentcode.param().abi(), szusersid.param().abi(), dwcontext, core::mem::transmute(lpoutpathbuffer), core::mem::transmute(pcchoutpathbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetComponentPathExW(szproductcode: P0, szcomponentcode: P1, szusersid: P2, dwcontext: MSIINSTALLCONTEXT, lpoutpathbuffer: windows_core::PWSTR, pcchoutpathbuffer: Option<*mut u32>) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetComponentPathExW(szproductcode : windows_core::PCWSTR, szcomponentcode : windows_core::PCWSTR, szusersid : windows_core::PCWSTR, dwcontext : MSIINSTALLCONTEXT, lpoutpathbuffer : windows_core::PWSTR, pcchoutpathbuffer : *mut u32) -> INSTALLSTATE); - MsiGetComponentPathExW(szproductcode.into_param().abi(), szcomponentcode.into_param().abi(), szusersid.into_param().abi(), dwcontext, core::mem::transmute(lpoutpathbuffer), core::mem::transmute(pcchoutpathbuffer.unwrap_or(std::ptr::null_mut()))) + MsiGetComponentPathExW(szproductcode.param().abi(), szcomponentcode.param().abi(), szusersid.param().abi(), dwcontext, core::mem::transmute(lpoutpathbuffer), core::mem::transmute(pcchoutpathbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetComponentPathW(szproduct: P0, szcomponent: P1, lppathbuf: windows_core::PWSTR, pcchbuf: Option<*mut u32>) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetComponentPathW(szproduct : windows_core::PCWSTR, szcomponent : windows_core::PCWSTR, lppathbuf : windows_core::PWSTR, pcchbuf : *mut u32) -> INSTALLSTATE); - MsiGetComponentPathW(szproduct.into_param().abi(), szcomponent.into_param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetComponentPathW(szproduct.param().abi(), szcomponent.param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetComponentStateA(hinstall: P0, szcomponent: P1, piinstalled: *mut INSTALLSTATE, piaction: *mut INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szcomponent.into_param().abi(), piinstalled, piaction) + MsiGetComponentStateA(hinstall.param().abi(), szcomponent.param().abi(), piinstalled, piaction) } #[inline] pub unsafe fn MsiGetComponentStateW(hinstall: P0, szcomponent: P1, piinstalled: *mut INSTALLSTATE, piaction: *mut INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szcomponent.into_param().abi(), piinstalled, piaction) + MsiGetComponentStateW(hinstall.param().abi(), szcomponent.param().abi(), piinstalled, piaction) } #[inline] pub unsafe fn MsiGetDatabaseState(hdatabase: P0) -> MSIDBSTATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetDatabaseState(hdatabase : MSIHANDLE) -> MSIDBSTATE); - MsiGetDatabaseState(hdatabase.into_param().abi()) + MsiGetDatabaseState(hdatabase.param().abi()) } #[inline] pub unsafe fn MsiGetFeatureCostA(hinstall: P0, szfeature: P1, icosttree: MSICOSTTREE, istate: INSTALLSTATE, picost: *mut i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfeature.into_param().abi(), icosttree, istate, picost) + MsiGetFeatureCostA(hinstall.param().abi(), szfeature.param().abi(), icosttree, istate, picost) } #[inline] pub unsafe fn MsiGetFeatureCostW(hinstall: P0, szfeature: P1, icosttree: MSICOSTTREE, istate: INSTALLSTATE, picost: *mut i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfeature.into_param().abi(), icosttree, istate, picost) + MsiGetFeatureCostW(hinstall.param().abi(), szfeature.param().abi(), icosttree, istate, picost) } #[inline] pub unsafe fn MsiGetFeatureInfoA(hproduct: P0, szfeature: P1, lpattributes: Option<*mut u32>, lptitlebuf: windows_core::PSTR, pcchtitlebuf: Option<*mut u32>, lphelpbuf: windows_core::PSTR, pcchhelpbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hproduct.into_param().abi(), szfeature.into_param().abi(), core::mem::transmute(lpattributes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptitlebuf), core::mem::transmute(pcchtitlebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lphelpbuf), core::mem::transmute(pcchhelpbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetFeatureInfoA(hproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(lpattributes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptitlebuf), core::mem::transmute(pcchtitlebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lphelpbuf), core::mem::transmute(pcchhelpbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetFeatureInfoW(hproduct: P0, szfeature: P1, lpattributes: Option<*mut u32>, lptitlebuf: windows_core::PWSTR, pcchtitlebuf: Option<*mut u32>, lphelpbuf: windows_core::PWSTR, pcchhelpbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hproduct.into_param().abi(), szfeature.into_param().abi(), core::mem::transmute(lpattributes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptitlebuf), core::mem::transmute(pcchtitlebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lphelpbuf), core::mem::transmute(pcchhelpbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetFeatureInfoW(hproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(lpattributes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptitlebuf), core::mem::transmute(pcchtitlebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lphelpbuf), core::mem::transmute(pcchhelpbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetFeatureStateA(hinstall: P0, szfeature: P1, piinstalled: *mut INSTALLSTATE, piaction: *mut INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfeature.into_param().abi(), piinstalled, piaction) + MsiGetFeatureStateA(hinstall.param().abi(), szfeature.param().abi(), piinstalled, piaction) } #[inline] pub unsafe fn MsiGetFeatureStateW(hinstall: P0, szfeature: P1, piinstalled: *mut INSTALLSTATE, piaction: *mut INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfeature.into_param().abi(), piinstalled, piaction) + MsiGetFeatureStateW(hinstall.param().abi(), szfeature.param().abi(), piinstalled, piaction) } #[inline] pub unsafe fn MsiGetFeatureUsageA(szproduct: P0, szfeature: P1, pdwusecount: Option<*mut u32>, pwdateused: Option<*mut u16>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureUsageA(szproduct : windows_core::PCSTR, szfeature : windows_core::PCSTR, pdwusecount : *mut u32, pwdateused : *mut u16) -> u32); - MsiGetFeatureUsageA(szproduct.into_param().abi(), szfeature.into_param().abi(), core::mem::transmute(pdwusecount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pwdateused.unwrap_or(std::ptr::null_mut()))) + MsiGetFeatureUsageA(szproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(pdwusecount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pwdateused.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetFeatureUsageW(szproduct: P0, szfeature: P1, pdwusecount: Option<*mut u32>, pwdateused: Option<*mut u16>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureUsageW(szproduct : windows_core::PCWSTR, szfeature : windows_core::PCWSTR, pdwusecount : *mut u32, pwdateused : *mut u16) -> u32); - MsiGetFeatureUsageW(szproduct.into_param().abi(), szfeature.into_param().abi(), core::mem::transmute(pdwusecount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pwdateused.unwrap_or(std::ptr::null_mut()))) + MsiGetFeatureUsageW(szproduct.param().abi(), szfeature.param().abi(), core::mem::transmute(pdwusecount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pwdateused.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetFeatureValidStatesA(hinstall: P0, szfeature: P1, lpinstallstates: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureValidStatesA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, lpinstallstates : *mut u32) -> u32); - MsiGetFeatureValidStatesA(hinstall.into_param().abi(), szfeature.into_param().abi(), lpinstallstates) + MsiGetFeatureValidStatesA(hinstall.param().abi(), szfeature.param().abi(), lpinstallstates) } #[inline] pub unsafe fn MsiGetFeatureValidStatesW(hinstall: P0, szfeature: P1, lpinstallstates: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFeatureValidStatesW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, lpinstallstates : *mut u32) -> u32); - MsiGetFeatureValidStatesW(hinstall.into_param().abi(), szfeature.into_param().abi(), lpinstallstates) + MsiGetFeatureValidStatesW(hinstall.param().abi(), szfeature.param().abi(), lpinstallstates) } #[inline] pub unsafe fn MsiGetFileHashA(szfilepath: P0, dwoptions: u32, phash: *mut MSIFILEHASHINFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileHashA(szfilepath : windows_core::PCSTR, dwoptions : u32, phash : *mut MSIFILEHASHINFO) -> u32); - MsiGetFileHashA(szfilepath.into_param().abi(), dwoptions, phash) + MsiGetFileHashA(szfilepath.param().abi(), dwoptions, phash) } #[inline] pub unsafe fn MsiGetFileHashW(szfilepath: P0, dwoptions: u32, phash: *mut MSIFILEHASHINFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileHashW(szfilepath : windows_core::PCWSTR, dwoptions : u32, phash : *mut MSIFILEHASHINFO) -> u32); - MsiGetFileHashW(szfilepath.into_param().abi(), dwoptions, phash) + MsiGetFileHashW(szfilepath.param().abi(), dwoptions, phash) } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn MsiGetFileSignatureInformationA(szsignedobjectpath: P0, dwflags: u32, ppccertcontext: *mut *mut super::super::Security::Cryptography::CERT_CONTEXT, pbhashdata: Option<*mut u8>, pcbhashdata: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, ppccertcontext, core::mem::transmute(pbhashdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbhashdata.unwrap_or(std::ptr::null_mut()))).ok() + MsiGetFileSignatureInformationA(szsignedobjectpath.param().abi(), dwflags, ppccertcontext, core::mem::transmute(pbhashdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbhashdata.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn MsiGetFileSignatureInformationW(szsignedobjectpath: P0, dwflags: u32, ppccertcontext: *mut *mut super::super::Security::Cryptography::CERT_CONTEXT, pbhashdata: Option<*mut u8>, pcbhashdata: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, ppccertcontext, core::mem::transmute(pbhashdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbhashdata.unwrap_or(std::ptr::null_mut()))).ok() + MsiGetFileSignatureInformationW(szsignedobjectpath.param().abi(), dwflags, ppccertcontext, core::mem::transmute(pbhashdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbhashdata.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn MsiGetFileVersionA(szfilepath: P0, lpversionbuf: windows_core::PSTR, pcchversionbuf: Option<*mut u32>, lplangbuf: windows_core::PSTR, pcchlangbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileVersionA(szfilepath : windows_core::PCSTR, lpversionbuf : windows_core::PSTR, pcchversionbuf : *mut u32, lplangbuf : windows_core::PSTR, pcchlangbuf : *mut u32) -> u32); - MsiGetFileVersionA(szfilepath.into_param().abi(), core::mem::transmute(lpversionbuf), core::mem::transmute(pcchversionbuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplangbuf), core::mem::transmute(pcchlangbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetFileVersionA(szfilepath.param().abi(), core::mem::transmute(lpversionbuf), core::mem::transmute(pcchversionbuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplangbuf), core::mem::transmute(pcchlangbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetFileVersionW(szfilepath: P0, lpversionbuf: windows_core::PWSTR, pcchversionbuf: Option<*mut u32>, lplangbuf: windows_core::PWSTR, pcchlangbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetFileVersionW(szfilepath : windows_core::PCWSTR, lpversionbuf : windows_core::PWSTR, pcchversionbuf : *mut u32, lplangbuf : windows_core::PWSTR, pcchlangbuf : *mut u32) -> u32); - MsiGetFileVersionW(szfilepath.into_param().abi(), core::mem::transmute(lpversionbuf), core::mem::transmute(pcchversionbuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplangbuf), core::mem::transmute(pcchlangbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetFileVersionW(szfilepath.param().abi(), core::mem::transmute(lpversionbuf), core::mem::transmute(pcchversionbuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplangbuf), core::mem::transmute(pcchlangbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetLanguage(hinstall: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetLanguage(hinstall : MSIHANDLE) -> u16); - MsiGetLanguage(hinstall.into_param().abi()) + MsiGetLanguage(hinstall.param().abi()) } #[inline] pub unsafe fn MsiGetLastErrorRecord() -> MSIHANDLE { @@ -1371,859 +1349,859 @@ pub unsafe fn MsiGetLastErrorRecord() -> MSIHANDLE { #[inline] pub unsafe fn MsiGetMode(hinstall: P0, erunmode: MSIRUNMODE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE) -> super::super::Foundation:: BOOL); - MsiGetMode(hinstall.into_param().abi(), erunmode) + MsiGetMode(hinstall.param().abi(), erunmode) } #[inline] pub unsafe fn MsiGetPatchFileListA(szproductcode: P0, szpatchpackages: P1, pcfiles: *mut u32, pphfilerecords: *mut *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPatchFileListA(szproductcode : windows_core::PCSTR, szpatchpackages : windows_core::PCSTR, pcfiles : *mut u32, pphfilerecords : *mut *mut MSIHANDLE) -> u32); - MsiGetPatchFileListA(szproductcode.into_param().abi(), szpatchpackages.into_param().abi(), pcfiles, pphfilerecords) + MsiGetPatchFileListA(szproductcode.param().abi(), szpatchpackages.param().abi(), pcfiles, pphfilerecords) } #[inline] pub unsafe fn MsiGetPatchFileListW(szproductcode: P0, szpatchpackages: P1, pcfiles: *mut u32, pphfilerecords: *mut *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPatchFileListW(szproductcode : windows_core::PCWSTR, szpatchpackages : windows_core::PCWSTR, pcfiles : *mut u32, pphfilerecords : *mut *mut MSIHANDLE) -> u32); - MsiGetPatchFileListW(szproductcode.into_param().abi(), szpatchpackages.into_param().abi(), pcfiles, pphfilerecords) + MsiGetPatchFileListW(szproductcode.param().abi(), szpatchpackages.param().abi(), pcfiles, pphfilerecords) } #[inline] pub unsafe fn MsiGetPatchInfoA(szpatch: P0, szattribute: P1, lpvaluebuf: windows_core::PSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPatchInfoA(szpatch : windows_core::PCSTR, szattribute : windows_core::PCSTR, lpvaluebuf : windows_core::PSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetPatchInfoA(szpatch.into_param().abi(), szattribute.into_param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetPatchInfoA(szpatch.param().abi(), szattribute.param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetPatchInfoExA(szpatchcode: P0, szproductcode: P1, szusersid: P2, dwcontext: MSIINSTALLCONTEXT, szproperty: P3, lpvalue: windows_core::PSTR, pcchvalue: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), szproductcode.into_param().abi(), szusersid.into_param().abi(), dwcontext, szproperty.into_param().abi(), core::mem::transmute(lpvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) + MsiGetPatchInfoExA(szpatchcode.param().abi(), szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(lpvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetPatchInfoExW(szpatchcode: P0, szproductcode: P1, szusersid: P2, dwcontext: MSIINSTALLCONTEXT, szproperty: P3, lpvalue: windows_core::PWSTR, pcchvalue: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), szproductcode.into_param().abi(), szusersid.into_param().abi(), dwcontext, szproperty.into_param().abi(), core::mem::transmute(lpvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) + MsiGetPatchInfoExW(szpatchcode.param().abi(), szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(lpvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetPatchInfoW(szpatch: P0, szattribute: P1, lpvaluebuf: windows_core::PWSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetPatchInfoW(szpatch : windows_core::PCWSTR, szattribute : windows_core::PCWSTR, lpvaluebuf : windows_core::PWSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetPatchInfoW(szpatch.into_param().abi(), szattribute.into_param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetPatchInfoW(szpatch.param().abi(), szattribute.param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductCodeA(szcomponent: P0, lpbuf39: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductCodeA(szcomponent : windows_core::PCSTR, lpbuf39 : windows_core::PSTR) -> u32); - MsiGetProductCodeA(szcomponent.into_param().abi(), core::mem::transmute(lpbuf39)) + MsiGetProductCodeA(szcomponent.param().abi(), core::mem::transmute(lpbuf39)) } #[inline] pub unsafe fn MsiGetProductCodeW(szcomponent: P0, lpbuf39: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductCodeW(szcomponent : windows_core::PCWSTR, lpbuf39 : windows_core::PWSTR) -> u32); - MsiGetProductCodeW(szcomponent.into_param().abi(), core::mem::transmute(lpbuf39)) + MsiGetProductCodeW(szcomponent.param().abi(), core::mem::transmute(lpbuf39)) } #[inline] pub unsafe fn MsiGetProductInfoA(szproduct: P0, szattribute: P1, lpvaluebuf: windows_core::PSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductInfoA(szproduct : windows_core::PCSTR, szattribute : windows_core::PCSTR, lpvaluebuf : windows_core::PSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetProductInfoA(szproduct.into_param().abi(), szattribute.into_param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetProductInfoA(szproduct.param().abi(), szattribute.param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductInfoExA(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szproperty: P2, szvalue: windows_core::PSTR, pcchvalue: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, szproperty.into_param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) + MsiGetProductInfoExA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductInfoExW(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szproperty: P2, szvalue: windows_core::PWSTR, pcchvalue: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, szproperty.into_param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) + MsiGetProductInfoExW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szproperty.param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductInfoFromScriptA(szscriptfile: P0, lpproductbuf39: windows_core::PSTR, plgidlanguage: Option<*mut u16>, pdwversion: Option<*mut u32>, lpnamebuf: windows_core::PSTR, pcchnamebuf: Option<*mut u32>, lppackagebuf: windows_core::PSTR, pcchpackagebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductInfoFromScriptA(szscriptfile : windows_core::PCSTR, lpproductbuf39 : windows_core::PSTR, plgidlanguage : *mut u16, pdwversion : *mut u32, lpnamebuf : windows_core::PSTR, pcchnamebuf : *mut u32, lppackagebuf : windows_core::PSTR, pcchpackagebuf : *mut u32) -> u32); - MsiGetProductInfoFromScriptA(szscriptfile.into_param().abi(), core::mem::transmute(lpproductbuf39), core::mem::transmute(plgidlanguage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwversion.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnamebuf), core::mem::transmute(pcchnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lppackagebuf), core::mem::transmute(pcchpackagebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetProductInfoFromScriptA(szscriptfile.param().abi(), core::mem::transmute(lpproductbuf39), core::mem::transmute(plgidlanguage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwversion.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnamebuf), core::mem::transmute(pcchnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lppackagebuf), core::mem::transmute(pcchpackagebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductInfoFromScriptW(szscriptfile: P0, lpproductbuf39: windows_core::PWSTR, plgidlanguage: Option<*mut u16>, pdwversion: Option<*mut u32>, lpnamebuf: windows_core::PWSTR, pcchnamebuf: Option<*mut u32>, lppackagebuf: windows_core::PWSTR, pcchpackagebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductInfoFromScriptW(szscriptfile : windows_core::PCWSTR, lpproductbuf39 : windows_core::PWSTR, plgidlanguage : *mut u16, pdwversion : *mut u32, lpnamebuf : windows_core::PWSTR, pcchnamebuf : *mut u32, lppackagebuf : windows_core::PWSTR, pcchpackagebuf : *mut u32) -> u32); - MsiGetProductInfoFromScriptW(szscriptfile.into_param().abi(), core::mem::transmute(lpproductbuf39), core::mem::transmute(plgidlanguage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwversion.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnamebuf), core::mem::transmute(pcchnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lppackagebuf), core::mem::transmute(pcchpackagebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetProductInfoFromScriptW(szscriptfile.param().abi(), core::mem::transmute(lpproductbuf39), core::mem::transmute(plgidlanguage.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwversion.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnamebuf), core::mem::transmute(pcchnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lppackagebuf), core::mem::transmute(pcchpackagebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductInfoW(szproduct: P0, szattribute: P1, lpvaluebuf: windows_core::PWSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetProductInfoW(szproduct : windows_core::PCWSTR, szattribute : windows_core::PCWSTR, lpvaluebuf : windows_core::PWSTR, pcchvaluebuf : *mut u32) -> u32); - MsiGetProductInfoW(szproduct.into_param().abi(), szattribute.into_param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetProductInfoW(szproduct.param().abi(), szattribute.param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductPropertyA(hproduct: P0, szproperty: P1, lpvaluebuf: windows_core::PSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hproduct.into_param().abi(), szproperty.into_param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetProductPropertyA(hproduct.param().abi(), szproperty.param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetProductPropertyW(hproduct: P0, szproperty: P1, lpvaluebuf: windows_core::PWSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hproduct.into_param().abi(), szproperty.into_param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetProductPropertyW(hproduct.param().abi(), szproperty.param().abi(), core::mem::transmute(lpvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetPropertyA(hinstall: P0, szname: P1, szvaluebuf: windows_core::PSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szname.into_param().abi(), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetPropertyA(hinstall.param().abi(), szname.param().abi(), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetPropertyW(hinstall: P0, szname: P1, szvaluebuf: windows_core::PWSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szname.into_param().abi(), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiGetPropertyW(hinstall.param().abi(), szname.param().abi(), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetShortcutTargetA(szshortcutpath: P0, szproductcode: windows_core::PSTR, szfeatureid: windows_core::PSTR, szcomponentcode: windows_core::PSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetShortcutTargetA(szshortcutpath : windows_core::PCSTR, szproductcode : windows_core::PSTR, szfeatureid : windows_core::PSTR, szcomponentcode : windows_core::PSTR) -> u32); - MsiGetShortcutTargetA(szshortcutpath.into_param().abi(), core::mem::transmute(szproductcode), core::mem::transmute(szfeatureid), core::mem::transmute(szcomponentcode)) + MsiGetShortcutTargetA(szshortcutpath.param().abi(), core::mem::transmute(szproductcode), core::mem::transmute(szfeatureid), core::mem::transmute(szcomponentcode)) } #[inline] pub unsafe fn MsiGetShortcutTargetW(szshortcutpath: P0, szproductcode: windows_core::PWSTR, szfeatureid: windows_core::PWSTR, szcomponentcode: windows_core::PWSTR) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetShortcutTargetW(szshortcutpath : windows_core::PCWSTR, szproductcode : windows_core::PWSTR, szfeatureid : windows_core::PWSTR, szcomponentcode : windows_core::PWSTR) -> u32); - MsiGetShortcutTargetW(szshortcutpath.into_param().abi(), core::mem::transmute(szproductcode), core::mem::transmute(szfeatureid), core::mem::transmute(szcomponentcode)) + MsiGetShortcutTargetW(szshortcutpath.param().abi(), core::mem::transmute(szproductcode), core::mem::transmute(szfeatureid), core::mem::transmute(szcomponentcode)) } #[inline] pub unsafe fn MsiGetSourcePathA(hinstall: P0, szfolder: P1, szpathbuf: windows_core::PSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfolder.into_param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetSourcePathA(hinstall.param().abi(), szfolder.param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetSourcePathW(hinstall: P0, szfolder: P1, szpathbuf: windows_core::PWSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfolder.into_param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetSourcePathW(hinstall.param().abi(), szfolder.param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetSummaryInformationA(hdatabase: P0, szdatabasepath: P1, uiupdatecount: u32, phsummaryinfo: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdatabase.into_param().abi(), szdatabasepath.into_param().abi(), uiupdatecount, phsummaryinfo) + MsiGetSummaryInformationA(hdatabase.param().abi(), szdatabasepath.param().abi(), uiupdatecount, phsummaryinfo) } #[inline] pub unsafe fn MsiGetSummaryInformationW(hdatabase: P0, szdatabasepath: P1, uiupdatecount: u32, phsummaryinfo: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdatabase.into_param().abi(), szdatabasepath.into_param().abi(), uiupdatecount, phsummaryinfo) + MsiGetSummaryInformationW(hdatabase.param().abi(), szdatabasepath.param().abi(), uiupdatecount, phsummaryinfo) } #[inline] pub unsafe fn MsiGetTargetPathA(hinstall: P0, szfolder: P1, szpathbuf: windows_core::PSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfolder.into_param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetTargetPathA(hinstall.param().abi(), szfolder.param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetTargetPathW(hinstall: P0, szfolder: P1, szpathbuf: windows_core::PWSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinstall.into_param().abi(), szfolder.into_param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetTargetPathW(hinstall.param().abi(), szfolder.param().abi(), core::mem::transmute(szpathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetUserInfoA(szproduct: P0, lpusernamebuf: windows_core::PSTR, pcchusernamebuf: Option<*mut u32>, lporgnamebuf: windows_core::PSTR, pcchorgnamebuf: Option<*mut u32>, lpserialbuf: windows_core::PSTR, pcchserialbuf: Option<*mut u32>) -> USERINFOSTATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetUserInfoA(szproduct : windows_core::PCSTR, lpusernamebuf : windows_core::PSTR, pcchusernamebuf : *mut u32, lporgnamebuf : windows_core::PSTR, pcchorgnamebuf : *mut u32, lpserialbuf : windows_core::PSTR, pcchserialbuf : *mut u32) -> USERINFOSTATE); - MsiGetUserInfoA(szproduct.into_param().abi(), core::mem::transmute(lpusernamebuf), core::mem::transmute(pcchusernamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lporgnamebuf), core::mem::transmute(pcchorgnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpserialbuf), core::mem::transmute(pcchserialbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetUserInfoA(szproduct.param().abi(), core::mem::transmute(lpusernamebuf), core::mem::transmute(pcchusernamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lporgnamebuf), core::mem::transmute(pcchorgnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpserialbuf), core::mem::transmute(pcchserialbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiGetUserInfoW(szproduct: P0, lpusernamebuf: windows_core::PWSTR, pcchusernamebuf: Option<*mut u32>, lporgnamebuf: windows_core::PWSTR, pcchorgnamebuf: Option<*mut u32>, lpserialbuf: windows_core::PWSTR, pcchserialbuf: Option<*mut u32>) -> USERINFOSTATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiGetUserInfoW(szproduct : windows_core::PCWSTR, lpusernamebuf : windows_core::PWSTR, pcchusernamebuf : *mut u32, lporgnamebuf : windows_core::PWSTR, pcchorgnamebuf : *mut u32, lpserialbuf : windows_core::PWSTR, pcchserialbuf : *mut u32) -> USERINFOSTATE); - MsiGetUserInfoW(szproduct.into_param().abi(), core::mem::transmute(lpusernamebuf), core::mem::transmute(pcchusernamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lporgnamebuf), core::mem::transmute(pcchorgnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpserialbuf), core::mem::transmute(pcchserialbuf.unwrap_or(std::ptr::null_mut()))) + MsiGetUserInfoW(szproduct.param().abi(), core::mem::transmute(lpusernamebuf), core::mem::transmute(pcchusernamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lporgnamebuf), core::mem::transmute(pcchorgnamebuf.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpserialbuf), core::mem::transmute(pcchserialbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiInstallMissingComponentA(szproduct: P0, szcomponent: P1, einstallstate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szcomponent.into_param().abi(), einstallstate) + MsiInstallMissingComponentA(szproduct.param().abi(), szcomponent.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiInstallMissingComponentW(szproduct: P0, szcomponent: P1, einstallstate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szcomponent.into_param().abi(), einstallstate) + MsiInstallMissingComponentW(szproduct.param().abi(), szcomponent.param().abi(), einstallstate) } #[inline] pub unsafe fn MsiInstallMissingFileA(szproduct: P0, szfile: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiInstallMissingFileA(szproduct : windows_core::PCSTR, szfile : windows_core::PCSTR) -> u32); - MsiInstallMissingFileA(szproduct.into_param().abi(), szfile.into_param().abi()) + MsiInstallMissingFileA(szproduct.param().abi(), szfile.param().abi()) } #[inline] pub unsafe fn MsiInstallMissingFileW(szproduct: P0, szfile: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiInstallMissingFileW(szproduct : windows_core::PCWSTR, szfile : windows_core::PCWSTR) -> u32); - MsiInstallMissingFileW(szproduct.into_param().abi(), szfile.into_param().abi()) + MsiInstallMissingFileW(szproduct.param().abi(), szfile.param().abi()) } #[inline] pub unsafe fn MsiInstallProductA(szpackagepath: P0, szcommandline: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiInstallProductA(szpackagepath : windows_core::PCSTR, szcommandline : windows_core::PCSTR) -> u32); - MsiInstallProductA(szpackagepath.into_param().abi(), szcommandline.into_param().abi()) + MsiInstallProductA(szpackagepath.param().abi(), szcommandline.param().abi()) } #[inline] pub unsafe fn MsiInstallProductW(szpackagepath: P0, szcommandline: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiInstallProductW(szpackagepath : windows_core::PCWSTR, szcommandline : windows_core::PCWSTR) -> u32); - MsiInstallProductW(szpackagepath.into_param().abi(), szcommandline.into_param().abi()) + MsiInstallProductW(szpackagepath.param().abi(), szcommandline.param().abi()) } #[inline] pub unsafe fn MsiIsProductElevatedA(szproduct: P0, pfelevated: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiIsProductElevatedA(szproduct : windows_core::PCSTR, pfelevated : *mut super::super::Foundation:: BOOL) -> u32); - MsiIsProductElevatedA(szproduct.into_param().abi(), pfelevated) + MsiIsProductElevatedA(szproduct.param().abi(), pfelevated) } #[inline] pub unsafe fn MsiIsProductElevatedW(szproduct: P0, pfelevated: *mut super::super::Foundation::BOOL) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiIsProductElevatedW(szproduct : windows_core::PCWSTR, pfelevated : *mut super::super::Foundation:: BOOL) -> u32); - MsiIsProductElevatedW(szproduct.into_param().abi(), pfelevated) + MsiIsProductElevatedW(szproduct.param().abi(), pfelevated) } #[inline] pub unsafe fn MsiJoinTransaction(htransactionhandle: P0, dwtransactionattributes: u32, phchangeofownerevent: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiJoinTransaction(htransactionhandle : MSIHANDLE, dwtransactionattributes : u32, phchangeofownerevent : *mut super::super::Foundation:: HANDLE) -> u32); - MsiJoinTransaction(htransactionhandle.into_param().abi(), dwtransactionattributes, phchangeofownerevent) + MsiJoinTransaction(htransactionhandle.param().abi(), dwtransactionattributes, phchangeofownerevent) } #[inline] pub unsafe fn MsiLocateComponentA(szcomponent: P0, lppathbuf: windows_core::PSTR, pcchbuf: Option<*mut u32>) -> INSTALLSTATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiLocateComponentA(szcomponent : windows_core::PCSTR, lppathbuf : windows_core::PSTR, pcchbuf : *mut u32) -> INSTALLSTATE); - MsiLocateComponentA(szcomponent.into_param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) + MsiLocateComponentA(szcomponent.param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiLocateComponentW(szcomponent: P0, lppathbuf: windows_core::PWSTR, pcchbuf: Option<*mut u32>) -> INSTALLSTATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiLocateComponentW(szcomponent : windows_core::PCWSTR, lppathbuf : windows_core::PWSTR, pcchbuf : *mut u32) -> INSTALLSTATE); - MsiLocateComponentW(szcomponent.into_param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) + MsiLocateComponentW(szcomponent.param().abi(), core::mem::transmute(lppathbuf), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiNotifySidChangeA(poldsid: P0, pnewsid: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiNotifySidChangeA(poldsid : windows_core::PCSTR, pnewsid : windows_core::PCSTR) -> u32); - MsiNotifySidChangeA(poldsid.into_param().abi(), pnewsid.into_param().abi()) + MsiNotifySidChangeA(poldsid.param().abi(), pnewsid.param().abi()) } #[inline] pub unsafe fn MsiNotifySidChangeW(poldsid: P0, pnewsid: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiNotifySidChangeW(poldsid : windows_core::PCWSTR, pnewsid : windows_core::PCWSTR) -> u32); - MsiNotifySidChangeW(poldsid.into_param().abi(), pnewsid.into_param().abi()) + MsiNotifySidChangeW(poldsid.param().abi(), pnewsid.param().abi()) } #[inline] pub unsafe fn MsiOpenDatabaseA(szdatabasepath: P0, szpersist: P1, phdatabase: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenDatabaseA(szdatabasepath : windows_core::PCSTR, szpersist : windows_core::PCSTR, phdatabase : *mut MSIHANDLE) -> u32); - MsiOpenDatabaseA(szdatabasepath.into_param().abi(), szpersist.into_param().abi(), phdatabase) + MsiOpenDatabaseA(szdatabasepath.param().abi(), szpersist.param().abi(), phdatabase) } #[inline] pub unsafe fn MsiOpenDatabaseW(szdatabasepath: P0, szpersist: P1, phdatabase: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenDatabaseW(szdatabasepath : windows_core::PCWSTR, szpersist : windows_core::PCWSTR, phdatabase : *mut MSIHANDLE) -> u32); - MsiOpenDatabaseW(szdatabasepath.into_param().abi(), szpersist.into_param().abi(), phdatabase) + MsiOpenDatabaseW(szdatabasepath.param().abi(), szpersist.param().abi(), phdatabase) } #[inline] pub unsafe fn MsiOpenPackageA(szpackagepath: P0, hproduct: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenPackageA(szpackagepath : windows_core::PCSTR, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenPackageA(szpackagepath.into_param().abi(), hproduct) + MsiOpenPackageA(szpackagepath.param().abi(), hproduct) } #[inline] pub unsafe fn MsiOpenPackageExA(szpackagepath: P0, dwoptions: u32, hproduct: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenPackageExA(szpackagepath : windows_core::PCSTR, dwoptions : u32, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenPackageExA(szpackagepath.into_param().abi(), dwoptions, hproduct) + MsiOpenPackageExA(szpackagepath.param().abi(), dwoptions, hproduct) } #[inline] pub unsafe fn MsiOpenPackageExW(szpackagepath: P0, dwoptions: u32, hproduct: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenPackageExW(szpackagepath : windows_core::PCWSTR, dwoptions : u32, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenPackageExW(szpackagepath.into_param().abi(), dwoptions, hproduct) + MsiOpenPackageExW(szpackagepath.param().abi(), dwoptions, hproduct) } #[inline] pub unsafe fn MsiOpenPackageW(szpackagepath: P0, hproduct: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenPackageW(szpackagepath : windows_core::PCWSTR, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenPackageW(szpackagepath.into_param().abi(), hproduct) + MsiOpenPackageW(szpackagepath.param().abi(), hproduct) } #[inline] pub unsafe fn MsiOpenProductA(szproduct: P0, hproduct: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenProductA(szproduct : windows_core::PCSTR, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenProductA(szproduct.into_param().abi(), hproduct) + MsiOpenProductA(szproduct.param().abi(), hproduct) } #[inline] pub unsafe fn MsiOpenProductW(szproduct: P0, hproduct: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiOpenProductW(szproduct : windows_core::PCWSTR, hproduct : *mut MSIHANDLE) -> u32); - MsiOpenProductW(szproduct.into_param().abi(), hproduct) + MsiOpenProductW(szproduct.param().abi(), hproduct) } #[inline] pub unsafe fn MsiPreviewBillboardA(hpreview: P0, szcontrolname: P1, szbillboard: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewBillboardA(hpreview : MSIHANDLE, szcontrolname : windows_core::PCSTR, szbillboard : windows_core::PCSTR) -> u32); - MsiPreviewBillboardA(hpreview.into_param().abi(), szcontrolname.into_param().abi(), szbillboard.into_param().abi()) + MsiPreviewBillboardA(hpreview.param().abi(), szcontrolname.param().abi(), szbillboard.param().abi()) } #[inline] pub unsafe fn MsiPreviewBillboardW(hpreview: P0, szcontrolname: P1, szbillboard: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewBillboardW(hpreview : MSIHANDLE, szcontrolname : windows_core::PCWSTR, szbillboard : windows_core::PCWSTR) -> u32); - MsiPreviewBillboardW(hpreview.into_param().abi(), szcontrolname.into_param().abi(), szbillboard.into_param().abi()) + MsiPreviewBillboardW(hpreview.param().abi(), szcontrolname.param().abi(), szbillboard.param().abi()) } #[inline] pub unsafe fn MsiPreviewDialogA(hpreview: P0, szdialogname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewDialogA(hpreview : MSIHANDLE, szdialogname : windows_core::PCSTR) -> u32); - MsiPreviewDialogA(hpreview.into_param().abi(), szdialogname.into_param().abi()) + MsiPreviewDialogA(hpreview.param().abi(), szdialogname.param().abi()) } #[inline] pub unsafe fn MsiPreviewDialogW(hpreview: P0, szdialogname: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiPreviewDialogW(hpreview : MSIHANDLE, szdialogname : windows_core::PCWSTR) -> u32); - MsiPreviewDialogW(hpreview.into_param().abi(), szdialogname.into_param().abi()) + MsiPreviewDialogW(hpreview.param().abi(), szdialogname.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn MsiProcessAdvertiseScriptA(szscriptfile: P0, sziconfolder: P1, hregdata: P2, fshortcuts: P3, fremoveitems: P4) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProcessAdvertiseScriptA(szscriptfile : windows_core::PCSTR, sziconfolder : windows_core::PCSTR, hregdata : super::Registry:: HKEY, fshortcuts : super::super::Foundation:: BOOL, fremoveitems : super::super::Foundation:: BOOL) -> u32); - MsiProcessAdvertiseScriptA(szscriptfile.into_param().abi(), sziconfolder.into_param().abi(), hregdata.into_param().abi(), fshortcuts.into_param().abi(), fremoveitems.into_param().abi()) + MsiProcessAdvertiseScriptA(szscriptfile.param().abi(), sziconfolder.param().abi(), hregdata.param().abi(), fshortcuts.param().abi(), fremoveitems.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn MsiProcessAdvertiseScriptW(szscriptfile: P0, sziconfolder: P1, hregdata: P2, fshortcuts: P3, fremoveitems: P4) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProcessAdvertiseScriptW(szscriptfile : windows_core::PCWSTR, sziconfolder : windows_core::PCWSTR, hregdata : super::Registry:: HKEY, fshortcuts : super::super::Foundation:: BOOL, fremoveitems : super::super::Foundation:: BOOL) -> u32); - MsiProcessAdvertiseScriptW(szscriptfile.into_param().abi(), sziconfolder.into_param().abi(), hregdata.into_param().abi(), fshortcuts.into_param().abi(), fremoveitems.into_param().abi()) + MsiProcessAdvertiseScriptW(szscriptfile.param().abi(), sziconfolder.param().abi(), hregdata.param().abi(), fshortcuts.param().abi(), fremoveitems.param().abi()) } #[inline] pub unsafe fn MsiProcessMessage(hinstall: P0, emessagetype: INSTALLMESSAGE, hrecord: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProcessMessage(hinstall : MSIHANDLE, emessagetype : INSTALLMESSAGE, hrecord : MSIHANDLE) -> i32); - MsiProcessMessage(hinstall.into_param().abi(), emessagetype, hrecord.into_param().abi()) + MsiProcessMessage(hinstall.param().abi(), emessagetype, hrecord.param().abi()) } #[inline] pub unsafe fn MsiProvideAssemblyA(szassemblyname: P0, szappcontext: P1, dwinstallmode: INSTALLMODE, dwassemblyinfo: MSIASSEMBLYINFO, lppathbuf: windows_core::PSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szappcontext.into_param().abi(), dwinstallmode.0 as _, dwassemblyinfo, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideAssemblyA(szassemblyname.param().abi(), szappcontext.param().abi(), dwinstallmode.0 as _, dwassemblyinfo, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiProvideAssemblyW(szassemblyname: P0, szappcontext: P1, dwinstallmode: INSTALLMODE, dwassemblyinfo: MSIASSEMBLYINFO, lppathbuf: windows_core::PWSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szappcontext.into_param().abi(), dwinstallmode.0 as _, dwassemblyinfo, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideAssemblyW(szassemblyname.param().abi(), szappcontext.param().abi(), dwinstallmode.0 as _, dwassemblyinfo, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiProvideComponentA(szproduct: P0, szfeature: P1, szcomponent: P2, dwinstallmode: INSTALLMODE, lppathbuf: windows_core::PSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideComponentA(szproduct : windows_core::PCSTR, szfeature : windows_core::PCSTR, szcomponent : windows_core::PCSTR, dwinstallmode : u32, lppathbuf : windows_core::PSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideComponentA(szproduct.into_param().abi(), szfeature.into_param().abi(), szcomponent.into_param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideComponentA(szproduct.param().abi(), szfeature.param().abi(), szcomponent.param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiProvideComponentW(szproduct: P0, szfeature: P1, szcomponent: P2, dwinstallmode: INSTALLMODE, lppathbuf: windows_core::PWSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideComponentW(szproduct : windows_core::PCWSTR, szfeature : windows_core::PCWSTR, szcomponent : windows_core::PCWSTR, dwinstallmode : u32, lppathbuf : windows_core::PWSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideComponentW(szproduct.into_param().abi(), szfeature.into_param().abi(), szcomponent.into_param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideComponentW(szproduct.param().abi(), szfeature.param().abi(), szcomponent.param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiProvideQualifiedComponentA(szcategory: P0, szqualifier: P1, dwinstallmode: INSTALLMODE, lppathbuf: windows_core::PSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideQualifiedComponentA(szcategory : windows_core::PCSTR, szqualifier : windows_core::PCSTR, dwinstallmode : u32, lppathbuf : windows_core::PSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideQualifiedComponentA(szcategory.into_param().abi(), szqualifier.into_param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideQualifiedComponentA(szcategory.param().abi(), szqualifier.param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiProvideQualifiedComponentExA(szcategory: P0, szqualifier: P1, dwinstallmode: INSTALLMODE, szproduct: P2, dwunused1: u32, dwunused2: u32, lppathbuf: windows_core::PSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideQualifiedComponentExA(szcategory : windows_core::PCSTR, szqualifier : windows_core::PCSTR, dwinstallmode : u32, szproduct : windows_core::PCSTR, dwunused1 : u32, dwunused2 : u32, lppathbuf : windows_core::PSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideQualifiedComponentExA(szcategory.into_param().abi(), szqualifier.into_param().abi(), dwinstallmode.0 as _, szproduct.into_param().abi(), dwunused1, dwunused2, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideQualifiedComponentExA(szcategory.param().abi(), szqualifier.param().abi(), dwinstallmode.0 as _, szproduct.param().abi(), dwunused1, dwunused2, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiProvideQualifiedComponentExW(szcategory: P0, szqualifier: P1, dwinstallmode: INSTALLMODE, szproduct: P2, dwunused1: u32, dwunused2: u32, lppathbuf: windows_core::PWSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideQualifiedComponentExW(szcategory : windows_core::PCWSTR, szqualifier : windows_core::PCWSTR, dwinstallmode : u32, szproduct : windows_core::PCWSTR, dwunused1 : u32, dwunused2 : u32, lppathbuf : windows_core::PWSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideQualifiedComponentExW(szcategory.into_param().abi(), szqualifier.into_param().abi(), dwinstallmode.0 as _, szproduct.into_param().abi(), dwunused1, dwunused2, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideQualifiedComponentExW(szcategory.param().abi(), szqualifier.param().abi(), dwinstallmode.0 as _, szproduct.param().abi(), dwunused1, dwunused2, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiProvideQualifiedComponentW(szcategory: P0, szqualifier: P1, dwinstallmode: INSTALLMODE, lppathbuf: windows_core::PWSTR, pcchpathbuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiProvideQualifiedComponentW(szcategory : windows_core::PCWSTR, szqualifier : windows_core::PCWSTR, dwinstallmode : u32, lppathbuf : windows_core::PWSTR, pcchpathbuf : *mut u32) -> u32); - MsiProvideQualifiedComponentW(szcategory.into_param().abi(), szqualifier.into_param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) + MsiProvideQualifiedComponentW(szcategory.param().abi(), szqualifier.param().abi(), dwinstallmode.0 as _, core::mem::transmute(lppathbuf), core::mem::transmute(pcchpathbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiQueryComponentStateA(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szcomponentcode: P2, pdwstate: Option<*mut INSTALLSTATE>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, szcomponentcode.into_param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) + MsiQueryComponentStateA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szcomponentcode.param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiQueryComponentStateW(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szcomponentcode: P2, pdwstate: Option<*mut INSTALLSTATE>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, szcomponentcode.into_param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) + MsiQueryComponentStateW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szcomponentcode.param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiQueryFeatureStateA(szproduct: P0, szfeature: P1) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryFeatureStateA(szproduct : windows_core::PCSTR, szfeature : windows_core::PCSTR) -> INSTALLSTATE); - MsiQueryFeatureStateA(szproduct.into_param().abi(), szfeature.into_param().abi()) + MsiQueryFeatureStateA(szproduct.param().abi(), szfeature.param().abi()) } #[inline] pub unsafe fn MsiQueryFeatureStateExA(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szfeature: P2, pdwstate: Option<*mut INSTALLSTATE>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, szfeature.into_param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) + MsiQueryFeatureStateExA(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szfeature.param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiQueryFeatureStateExW(szproductcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, szfeature: P2, pdwstate: Option<*mut INSTALLSTATE>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, szfeature.into_param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) + MsiQueryFeatureStateExW(szproductcode.param().abi(), szusersid.param().abi(), dwcontext, szfeature.param().abi(), core::mem::transmute(pdwstate.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiQueryFeatureStateW(szproduct: P0, szfeature: P1) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryFeatureStateW(szproduct : windows_core::PCWSTR, szfeature : windows_core::PCWSTR) -> INSTALLSTATE); - MsiQueryFeatureStateW(szproduct.into_param().abi(), szfeature.into_param().abi()) + MsiQueryFeatureStateW(szproduct.param().abi(), szfeature.param().abi()) } #[inline] pub unsafe fn MsiQueryProductStateA(szproduct: P0) -> INSTALLSTATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryProductStateA(szproduct : windows_core::PCSTR) -> INSTALLSTATE); - MsiQueryProductStateA(szproduct.into_param().abi()) + MsiQueryProductStateA(szproduct.param().abi()) } #[inline] pub unsafe fn MsiQueryProductStateW(szproduct: P0) -> INSTALLSTATE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiQueryProductStateW(szproduct : windows_core::PCWSTR) -> INSTALLSTATE); - MsiQueryProductStateW(szproduct.into_param().abi()) + MsiQueryProductStateW(szproduct.param().abi()) } #[inline] pub unsafe fn MsiRecordClearData(hrecord: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordClearData(hrecord : MSIHANDLE) -> u32); - MsiRecordClearData(hrecord.into_param().abi()) + MsiRecordClearData(hrecord.param().abi()) } #[inline] pub unsafe fn MsiRecordDataSize(hrecord: P0, ifield: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordDataSize(hrecord : MSIHANDLE, ifield : u32) -> u32); - MsiRecordDataSize(hrecord.into_param().abi(), ifield) + MsiRecordDataSize(hrecord.param().abi(), ifield) } #[inline] pub unsafe fn MsiRecordGetFieldCount(hrecord: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordGetFieldCount(hrecord : MSIHANDLE) -> u32); - MsiRecordGetFieldCount(hrecord.into_param().abi()) + MsiRecordGetFieldCount(hrecord.param().abi()) } #[inline] pub unsafe fn MsiRecordGetInteger(hrecord: P0, ifield: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordGetInteger(hrecord : MSIHANDLE, ifield : u32) -> i32); - MsiRecordGetInteger(hrecord.into_param().abi(), ifield) + MsiRecordGetInteger(hrecord.param().abi(), ifield) } #[inline] pub unsafe fn MsiRecordGetStringA(hrecord: P0, ifield: u32, szvaluebuf: windows_core::PSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordGetStringA(hrecord : MSIHANDLE, ifield : u32, szvaluebuf : windows_core::PSTR, pcchvaluebuf : *mut u32) -> u32); - MsiRecordGetStringA(hrecord.into_param().abi(), ifield, core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiRecordGetStringA(hrecord.param().abi(), ifield, core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiRecordGetStringW(hrecord: P0, ifield: u32, szvaluebuf: windows_core::PWSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordGetStringW(hrecord : MSIHANDLE, ifield : u32, szvaluebuf : windows_core::PWSTR, pcchvaluebuf : *mut u32) -> u32); - MsiRecordGetStringW(hrecord.into_param().abi(), ifield, core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiRecordGetStringW(hrecord.param().abi(), ifield, core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiRecordIsNull(hrecord: P0, ifield: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordIsNull(hrecord : MSIHANDLE, ifield : u32) -> super::super::Foundation:: BOOL); - MsiRecordIsNull(hrecord.into_param().abi(), ifield) + MsiRecordIsNull(hrecord.param().abi(), ifield) } #[inline] pub unsafe fn MsiRecordReadStream(hrecord: P0, ifield: u32, szdatabuf: windows_core::PSTR, pcbdatabuf: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordReadStream(hrecord : MSIHANDLE, ifield : u32, szdatabuf : windows_core::PSTR, pcbdatabuf : *mut u32) -> u32); - MsiRecordReadStream(hrecord.into_param().abi(), ifield, core::mem::transmute(szdatabuf), pcbdatabuf) + MsiRecordReadStream(hrecord.param().abi(), ifield, core::mem::transmute(szdatabuf), pcbdatabuf) } #[inline] pub unsafe fn MsiRecordSetInteger(hrecord: P0, ifield: u32, ivalue: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetInteger(hrecord : MSIHANDLE, ifield : u32, ivalue : i32) -> u32); - MsiRecordSetInteger(hrecord.into_param().abi(), ifield, ivalue) + MsiRecordSetInteger(hrecord.param().abi(), ifield, ivalue) } #[inline] pub unsafe fn MsiRecordSetStreamA(hrecord: P0, ifield: u32, szfilepath: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStreamA(hrecord : MSIHANDLE, ifield : u32, szfilepath : windows_core::PCSTR) -> u32); - MsiRecordSetStreamA(hrecord.into_param().abi(), ifield, szfilepath.into_param().abi()) + MsiRecordSetStreamA(hrecord.param().abi(), ifield, szfilepath.param().abi()) } #[inline] pub unsafe fn MsiRecordSetStreamW(hrecord: P0, ifield: u32, szfilepath: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStreamW(hrecord : MSIHANDLE, ifield : u32, szfilepath : windows_core::PCWSTR) -> u32); - MsiRecordSetStreamW(hrecord.into_param().abi(), ifield, szfilepath.into_param().abi()) + MsiRecordSetStreamW(hrecord.param().abi(), ifield, szfilepath.param().abi()) } #[inline] pub unsafe fn MsiRecordSetStringA(hrecord: P0, ifield: u32, szvalue: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStringA(hrecord : MSIHANDLE, ifield : u32, szvalue : windows_core::PCSTR) -> u32); - MsiRecordSetStringA(hrecord.into_param().abi(), ifield, szvalue.into_param().abi()) + MsiRecordSetStringA(hrecord.param().abi(), ifield, szvalue.param().abi()) } #[inline] pub unsafe fn MsiRecordSetStringW(hrecord: P0, ifield: u32, szvalue: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiRecordSetStringW(hrecord : MSIHANDLE, ifield : u32, szvalue : windows_core::PCWSTR) -> u32); - MsiRecordSetStringW(hrecord.into_param().abi(), ifield, szvalue.into_param().abi()) + MsiRecordSetStringW(hrecord.param().abi(), ifield, szvalue.param().abi()) } #[inline] pub unsafe fn MsiReinstallFeatureA(szproduct: P0, szfeature: P1, dwreinstallmode: REINSTALLMODE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiReinstallFeatureA(szproduct : windows_core::PCSTR, szfeature : windows_core::PCSTR, dwreinstallmode : u32) -> u32); - MsiReinstallFeatureA(szproduct.into_param().abi(), szfeature.into_param().abi(), dwreinstallmode.0 as _) + MsiReinstallFeatureA(szproduct.param().abi(), szfeature.param().abi(), dwreinstallmode.0 as _) } #[inline] pub unsafe fn MsiReinstallFeatureW(szproduct: P0, szfeature: P1, dwreinstallmode: REINSTALLMODE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiReinstallFeatureW(szproduct : windows_core::PCWSTR, szfeature : windows_core::PCWSTR, dwreinstallmode : u32) -> u32); - MsiReinstallFeatureW(szproduct.into_param().abi(), szfeature.into_param().abi(), dwreinstallmode.0 as _) + MsiReinstallFeatureW(szproduct.param().abi(), szfeature.param().abi(), dwreinstallmode.0 as _) } #[inline] pub unsafe fn MsiReinstallProductA(szproduct: P0, szreinstallmode: REINSTALLMODE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiReinstallProductA(szproduct : windows_core::PCSTR, szreinstallmode : u32) -> u32); - MsiReinstallProductA(szproduct.into_param().abi(), szreinstallmode.0 as _) + MsiReinstallProductA(szproduct.param().abi(), szreinstallmode.0 as _) } #[inline] pub unsafe fn MsiReinstallProductW(szproduct: P0, szreinstallmode: REINSTALLMODE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiReinstallProductW(szproduct : windows_core::PCWSTR, szreinstallmode : u32) -> u32); - MsiReinstallProductW(szproduct.into_param().abi(), szreinstallmode.0 as _) + MsiReinstallProductW(szproduct.param().abi(), szreinstallmode.0 as _) } #[inline] pub unsafe fn MsiRemovePatchesA(szpatchlist: P0, szproductcode: P1, euninstalltype: INSTALLTYPE, szpropertylist: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szproductcode.into_param().abi(), euninstalltype, szpropertylist.into_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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szproductcode.into_param().abi(), euninstalltype, szpropertylist.into_param().abi()) + MsiRemovePatchesW(szpatchlist.param().abi(), szproductcode.param().abi(), euninstalltype, szpropertylist.param().abi()) } #[inline] pub unsafe fn MsiSequenceA(hinstall: P0, sztable: P1, isequencemode: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSequenceA(hinstall : MSIHANDLE, sztable : windows_core::PCSTR, isequencemode : i32) -> u32); - MsiSequenceA(hinstall.into_param().abi(), sztable.into_param().abi(), isequencemode) + MsiSequenceA(hinstall.param().abi(), sztable.param().abi(), isequencemode) } #[inline] pub unsafe fn MsiSequenceW(hinstall: P0, sztable: P1, isequencemode: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSequenceW(hinstall : MSIHANDLE, sztable : windows_core::PCWSTR, isequencemode : i32) -> u32); - MsiSequenceW(hinstall.into_param().abi(), sztable.into_param().abi(), isequencemode) + MsiSequenceW(hinstall.param().abi(), sztable.param().abi(), isequencemode) } #[inline] pub unsafe fn MsiSetComponentStateA(hinstall: P0, szcomponent: P1, istate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetComponentStateA(hinstall : MSIHANDLE, szcomponent : windows_core::PCSTR, istate : INSTALLSTATE) -> u32); - MsiSetComponentStateA(hinstall.into_param().abi(), szcomponent.into_param().abi(), istate) + MsiSetComponentStateA(hinstall.param().abi(), szcomponent.param().abi(), istate) } #[inline] pub unsafe fn MsiSetComponentStateW(hinstall: P0, szcomponent: P1, istate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetComponentStateW(hinstall : MSIHANDLE, szcomponent : windows_core::PCWSTR, istate : INSTALLSTATE) -> u32); - MsiSetComponentStateW(hinstall.into_param().abi(), szcomponent.into_param().abi(), istate) + MsiSetComponentStateW(hinstall.param().abi(), szcomponent.param().abi(), istate) } #[inline] pub unsafe fn MsiSetExternalUIA(puihandler: INSTALLUI_HANDLERA, dwmessagefilter: u32, pvcontext: Option<*const core::ffi::c_void>) -> INSTALLUI_HANDLERA { @@ -2243,46 +2221,46 @@ pub unsafe fn MsiSetExternalUIW(puihandler: INSTALLUI_HANDLERW, dwmessagefilter: #[inline] pub unsafe fn MsiSetFeatureAttributesA(hinstall: P0, szfeature: P1, dwattributes: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureAttributesA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, dwattributes : u32) -> u32); - MsiSetFeatureAttributesA(hinstall.into_param().abi(), szfeature.into_param().abi(), dwattributes) + MsiSetFeatureAttributesA(hinstall.param().abi(), szfeature.param().abi(), dwattributes) } #[inline] pub unsafe fn MsiSetFeatureAttributesW(hinstall: P0, szfeature: P1, dwattributes: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureAttributesW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, dwattributes : u32) -> u32); - MsiSetFeatureAttributesW(hinstall.into_param().abi(), szfeature.into_param().abi(), dwattributes) + MsiSetFeatureAttributesW(hinstall.param().abi(), szfeature.param().abi(), dwattributes) } #[inline] pub unsafe fn MsiSetFeatureStateA(hinstall: P0, szfeature: P1, istate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureStateA(hinstall : MSIHANDLE, szfeature : windows_core::PCSTR, istate : INSTALLSTATE) -> u32); - MsiSetFeatureStateA(hinstall.into_param().abi(), szfeature.into_param().abi(), istate) + MsiSetFeatureStateA(hinstall.param().abi(), szfeature.param().abi(), istate) } #[inline] pub unsafe fn MsiSetFeatureStateW(hinstall: P0, szfeature: P1, istate: INSTALLSTATE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetFeatureStateW(hinstall : MSIHANDLE, szfeature : windows_core::PCWSTR, istate : INSTALLSTATE) -> u32); - MsiSetFeatureStateW(hinstall.into_param().abi(), szfeature.into_param().abi(), istate) + MsiSetFeatureStateW(hinstall.param().abi(), szfeature.param().abi(), istate) } #[inline] pub unsafe fn MsiSetInstallLevel(hinstall: P0, iinstalllevel: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetInstallLevel(hinstall : MSIHANDLE, iinstalllevel : i32) -> u32); - MsiSetInstallLevel(hinstall.into_param().abi(), iinstalllevel) + MsiSetInstallLevel(hinstall.param().abi(), iinstalllevel) } #[inline] pub unsafe fn MsiSetInternalUI(dwuilevel: INSTALLUILEVEL, phwnd: Option<*mut super::super::Foundation::HWND>) -> INSTALLUILEVEL { @@ -2292,469 +2270,469 @@ pub unsafe fn MsiSetInternalUI(dwuilevel: INSTALLUILEVEL, phwnd: Option<*mut sup #[inline] pub unsafe fn MsiSetMode(hinstall: P0, erunmode: MSIRUNMODE, fstate: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE, fstate : super::super::Foundation:: BOOL) -> u32); - MsiSetMode(hinstall.into_param().abi(), erunmode, fstate.into_param().abi()) + MsiSetMode(hinstall.param().abi(), erunmode, fstate.param().abi()) } #[inline] pub unsafe fn MsiSetPropertyA(hinstall: P0, szname: P1, szvalue: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetPropertyA(hinstall : MSIHANDLE, szname : windows_core::PCSTR, szvalue : windows_core::PCSTR) -> u32); - MsiSetPropertyA(hinstall.into_param().abi(), szname.into_param().abi(), szvalue.into_param().abi()) + MsiSetPropertyA(hinstall.param().abi(), szname.param().abi(), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSetPropertyW(hinstall: P0, szname: P1, szvalue: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetPropertyW(hinstall : MSIHANDLE, szname : windows_core::PCWSTR, szvalue : windows_core::PCWSTR) -> u32); - MsiSetPropertyW(hinstall.into_param().abi(), szname.into_param().abi(), szvalue.into_param().abi()) + MsiSetPropertyW(hinstall.param().abi(), szname.param().abi(), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSetTargetPathA(hinstall: P0, szfolder: P1, szfolderpath: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetTargetPathA(hinstall : MSIHANDLE, szfolder : windows_core::PCSTR, szfolderpath : windows_core::PCSTR) -> u32); - MsiSetTargetPathA(hinstall.into_param().abi(), szfolder.into_param().abi(), szfolderpath.into_param().abi()) + MsiSetTargetPathA(hinstall.param().abi(), szfolder.param().abi(), szfolderpath.param().abi()) } #[inline] pub unsafe fn MsiSetTargetPathW(hinstall: P0, szfolder: P1, szfolderpath: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSetTargetPathW(hinstall : MSIHANDLE, szfolder : windows_core::PCWSTR, szfolderpath : windows_core::PCWSTR) -> u32); - MsiSetTargetPathW(hinstall.into_param().abi(), szfolder.into_param().abi(), szfolderpath.into_param().abi()) + MsiSetTargetPathW(hinstall.param().abi(), szfolder.param().abi(), szfolderpath.param().abi()) } #[inline] pub unsafe fn MsiSourceListAddMediaDiskA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwdiskid: u32, szvolumelabel: P2, szdiskprompt: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, dwdiskid, szvolumelabel.into_param().abi(), szdiskprompt.into_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: P2, szdiskprompt: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, dwdiskid, szvolumelabel.into_param().abi(), szdiskprompt.into_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: u32, szsource: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListAddSourceA(szproduct : windows_core::PCSTR, szusername : windows_core::PCSTR, dwreserved : u32, szsource : windows_core::PCSTR) -> u32); - MsiSourceListAddSourceA(szproduct.into_param().abi(), szusername.into_param().abi(), dwreserved, szsource.into_param().abi()) + MsiSourceListAddSourceA(szproduct.param().abi(), szusername.param().abi(), dwreserved, szsource.param().abi()) } #[inline] pub unsafe fn MsiSourceListAddSourceExA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szsource: P2, dwindex: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szsource.into_param().abi(), 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: P2, dwindex: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szsource.into_param().abi(), dwindex) + MsiSourceListAddSourceExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szsource.param().abi(), dwindex) } #[inline] pub unsafe fn MsiSourceListAddSourceW(szproduct: P0, szusername: P1, dwreserved: u32, szsource: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListAddSourceW(szproduct : windows_core::PCWSTR, szusername : windows_core::PCWSTR, dwreserved : u32, szsource : windows_core::PCWSTR) -> u32); - MsiSourceListAddSourceW(szproduct.into_param().abi(), szusername.into_param().abi(), dwreserved, szsource.into_param().abi()) + MsiSourceListAddSourceW(szproduct.param().abi(), szusername.param().abi(), dwreserved, szsource.param().abi()) } #[inline] pub unsafe fn MsiSourceListClearAllA(szproduct: P0, szusername: P1, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearAllA(szproduct : windows_core::PCSTR, szusername : windows_core::PCSTR, dwreserved : u32) -> u32); - MsiSourceListClearAllA(szproduct.into_param().abi(), szusername.into_param().abi(), dwreserved) + MsiSourceListClearAllA(szproduct.param().abi(), szusername.param().abi(), dwreserved) } #[inline] pub unsafe fn MsiSourceListClearAllExA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions) + MsiSourceListClearAllExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListClearAllExW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions) + MsiSourceListClearAllExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListClearAllW(szproduct: P0, szusername: P1, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListClearAllW(szproduct : windows_core::PCWSTR, szusername : windows_core::PCWSTR, dwreserved : u32) -> u32); - MsiSourceListClearAllW(szproduct.into_param().abi(), szusername.into_param().abi(), dwreserved) + MsiSourceListClearAllW(szproduct.param().abi(), szusername.param().abi(), dwreserved) } #[inline] pub unsafe fn MsiSourceListClearMediaDiskA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwdiskid: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, 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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szsource.into_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: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szsource.into_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: windows_core::PSTR, pcchvolumelabel: Option<*mut u32>, szdiskprompt: windows_core::PSTR, pcchdiskprompt: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(pdwdiskid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvolumelabel), core::mem::transmute(pcchvolumelabel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szdiskprompt), core::mem::transmute(pcchdiskprompt.unwrap_or(std::ptr::null_mut()))) + MsiSourceListEnumMediaDisksA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(pdwdiskid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvolumelabel), core::mem::transmute(pcchvolumelabel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szdiskprompt), core::mem::transmute(pcchdiskprompt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSourceListEnumMediaDisksW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwindex: u32, pdwdiskid: Option<*mut u32>, szvolumelabel: windows_core::PWSTR, pcchvolumelabel: Option<*mut u32>, szdiskprompt: windows_core::PWSTR, pcchdiskprompt: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(pdwdiskid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvolumelabel), core::mem::transmute(pcchvolumelabel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szdiskprompt), core::mem::transmute(pcchdiskprompt.unwrap_or(std::ptr::null_mut()))) + MsiSourceListEnumMediaDisksW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(pdwdiskid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvolumelabel), core::mem::transmute(pcchvolumelabel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szdiskprompt), core::mem::transmute(pcchdiskprompt.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSourceListEnumSourcesA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwindex: u32, szsource: windows_core::PSTR, pcchsource: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(szsource), core::mem::transmute(pcchsource.unwrap_or(std::ptr::null_mut()))) + MsiSourceListEnumSourcesA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(szsource), core::mem::transmute(pcchsource.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSourceListEnumSourcesW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, dwindex: u32, szsource: windows_core::PWSTR, pcchsource: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(szsource), core::mem::transmute(pcchsource.unwrap_or(std::ptr::null_mut()))) + MsiSourceListEnumSourcesW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, dwindex, core::mem::transmute(szsource), core::mem::transmute(pcchsource.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSourceListForceResolutionA(szproduct: P0, szusername: P1, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListForceResolutionA(szproduct : windows_core::PCSTR, szusername : windows_core::PCSTR, dwreserved : u32) -> u32); - MsiSourceListForceResolutionA(szproduct.into_param().abi(), szusername.into_param().abi(), dwreserved) + MsiSourceListForceResolutionA(szproduct.param().abi(), szusername.param().abi(), dwreserved) } #[inline] pub unsafe fn MsiSourceListForceResolutionExA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions) + MsiSourceListForceResolutionExA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListForceResolutionExW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions) + MsiSourceListForceResolutionExW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions) } #[inline] pub unsafe fn MsiSourceListForceResolutionW(szproduct: P0, szusername: P1, dwreserved: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSourceListForceResolutionW(szproduct : windows_core::PCWSTR, szusername : windows_core::PCWSTR, dwreserved : u32) -> u32); - MsiSourceListForceResolutionW(szproduct.into_param().abi(), szusername.into_param().abi(), dwreserved) + MsiSourceListForceResolutionW(szproduct.param().abi(), szusername.param().abi(), dwreserved) } #[inline] pub unsafe fn MsiSourceListGetInfoA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szproperty: P2, szvalue: windows_core::PSTR, pcchvalue: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szproperty.into_param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) + MsiSourceListGetInfoA(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szproperty.param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSourceListGetInfoW(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szproperty: P2, szvalue: windows_core::PWSTR, pcchvalue: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szproperty.into_param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) + MsiSourceListGetInfoW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szproperty.param().abi(), core::mem::transmute(szvalue), core::mem::transmute(pcchvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSourceListSetInfoA(szproductcodeorpatchcode: P0, szusersid: P1, dwcontext: MSIINSTALLCONTEXT, dwoptions: u32, szproperty: P2, szvalue: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szproperty.into_param().abi(), szvalue.into_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: P2, szvalue: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), szusersid.into_param().abi(), dwcontext, dwoptions, szproperty.into_param().abi(), szvalue.into_param().abi()) + MsiSourceListSetInfoW(szproductcodeorpatchcode.param().abi(), szusersid.param().abi(), dwcontext, dwoptions, szproperty.param().abi(), szvalue.param().abi()) } #[inline] pub unsafe fn MsiSummaryInfoGetPropertyA(hsummaryinfo: P0, uiproperty: u32, puidatatype: *mut u32, pivalue: *mut i32, pftvalue: Option<*mut super::super::Foundation::FILETIME>, szvaluebuf: windows_core::PSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hsummaryinfo.into_param().abi(), uiproperty, puidatatype, pivalue, core::mem::transmute(pftvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiSummaryInfoGetPropertyA(hsummaryinfo.param().abi(), uiproperty, puidatatype, pivalue, core::mem::transmute(pftvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSummaryInfoGetPropertyCount(hsummaryinfo: P0, puipropertycount: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoGetPropertyCount(hsummaryinfo : MSIHANDLE, puipropertycount : *mut u32) -> u32); - MsiSummaryInfoGetPropertyCount(hsummaryinfo.into_param().abi(), puipropertycount) + MsiSummaryInfoGetPropertyCount(hsummaryinfo.param().abi(), puipropertycount) } #[inline] pub unsafe fn MsiSummaryInfoGetPropertyW(hsummaryinfo: P0, uiproperty: u32, puidatatype: *mut u32, pivalue: *mut i32, pftvalue: Option<*mut super::super::Foundation::FILETIME>, szvaluebuf: windows_core::PWSTR, pcchvaluebuf: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hsummaryinfo.into_param().abi(), uiproperty, puidatatype, pivalue, core::mem::transmute(pftvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) + MsiSummaryInfoGetPropertyW(hsummaryinfo.param().abi(), uiproperty, puidatatype, pivalue, core::mem::transmute(pftvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(szvaluebuf), core::mem::transmute(pcchvaluebuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiSummaryInfoPersist(hsummaryinfo: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiSummaryInfoPersist(hsummaryinfo : MSIHANDLE) -> u32); - MsiSummaryInfoPersist(hsummaryinfo.into_param().abi()) + MsiSummaryInfoPersist(hsummaryinfo.param().abi()) } #[inline] pub unsafe fn MsiSummaryInfoSetPropertyA(hsummaryinfo: P0, uiproperty: u32, uidatatype: u32, ivalue: i32, pftvalue: *mut super::super::Foundation::FILETIME, szvalue: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hsummaryinfo.into_param().abi(), uiproperty, uidatatype, ivalue, pftvalue, szvalue.into_param().abi()) + MsiSummaryInfoSetPropertyA(hsummaryinfo.param().abi(), uiproperty, uidatatype, ivalue, pftvalue, szvalue.param().abi()) } #[inline] pub unsafe fn MsiSummaryInfoSetPropertyW(hsummaryinfo: P0, uiproperty: u32, uidatatype: u32, ivalue: i32, pftvalue: *mut super::super::Foundation::FILETIME, szvalue: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hsummaryinfo.into_param().abi(), uiproperty, uidatatype, ivalue, pftvalue, szvalue.into_param().abi()) + MsiSummaryInfoSetPropertyW(hsummaryinfo.param().abi(), uiproperty, uidatatype, ivalue, pftvalue, szvalue.param().abi()) } #[inline] pub unsafe fn MsiUseFeatureA(szproduct: P0, szfeature: P1) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiUseFeatureA(szproduct : windows_core::PCSTR, szfeature : windows_core::PCSTR) -> INSTALLSTATE); - MsiUseFeatureA(szproduct.into_param().abi(), szfeature.into_param().abi()) + MsiUseFeatureA(szproduct.param().abi(), szfeature.param().abi()) } #[inline] pub unsafe fn MsiUseFeatureExA(szproduct: P0, szfeature: P1, dwinstallmode: u32, dwreserved: u32) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szfeature.into_param().abi(), dwinstallmode, dwreserved) + MsiUseFeatureExA(szproduct.param().abi(), szfeature.param().abi(), dwinstallmode, dwreserved) } #[inline] pub unsafe fn MsiUseFeatureExW(szproduct: P0, szfeature: P1, dwinstallmode: u32, dwreserved: u32) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szfeature.into_param().abi(), dwinstallmode, dwreserved) + MsiUseFeatureExW(szproduct.param().abi(), szfeature.param().abi(), dwinstallmode, dwreserved) } #[inline] pub unsafe fn MsiUseFeatureW(szproduct: P0, szfeature: P1) -> INSTALLSTATE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiUseFeatureW(szproduct : windows_core::PCWSTR, szfeature : windows_core::PCWSTR) -> INSTALLSTATE); - MsiUseFeatureW(szproduct.into_param().abi(), szfeature.into_param().abi()) + MsiUseFeatureW(szproduct.param().abi(), szfeature.param().abi()) } #[inline] pub unsafe fn MsiVerifyDiskSpace(hinstall: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiVerifyDiskSpace(hinstall : MSIHANDLE) -> u32); - MsiVerifyDiskSpace(hinstall.into_param().abi()) + MsiVerifyDiskSpace(hinstall.param().abi()) } #[inline] pub unsafe fn MsiVerifyPackageA(szpackagepath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiVerifyPackageA(szpackagepath : windows_core::PCSTR) -> u32); - MsiVerifyPackageA(szpackagepath.into_param().abi()) + MsiVerifyPackageA(szpackagepath.param().abi()) } #[inline] pub unsafe fn MsiVerifyPackageW(szpackagepath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiVerifyPackageW(szpackagepath : windows_core::PCWSTR) -> u32); - MsiVerifyPackageW(szpackagepath.into_param().abi()) + MsiVerifyPackageW(szpackagepath.param().abi()) } #[inline] pub unsafe fn MsiViewClose(hview: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiViewClose(hview : MSIHANDLE) -> u32); - MsiViewClose(hview.into_param().abi()) + MsiViewClose(hview.param().abi()) } #[inline] pub unsafe fn MsiViewExecute(hview: P0, hrecord: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiViewExecute(hview : MSIHANDLE, hrecord : MSIHANDLE) -> u32); - MsiViewExecute(hview.into_param().abi(), hrecord.into_param().abi()) + MsiViewExecute(hview.param().abi(), hrecord.param().abi()) } #[inline] pub unsafe fn MsiViewFetch(hview: P0, phrecord: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiViewFetch(hview : MSIHANDLE, phrecord : *mut MSIHANDLE) -> u32); - MsiViewFetch(hview.into_param().abi(), phrecord) + MsiViewFetch(hview.param().abi(), phrecord) } #[inline] pub unsafe fn MsiViewGetColumnInfo(hview: P0, ecolumninfo: MSICOLINFO, phrecord: *mut MSIHANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiViewGetColumnInfo(hview : MSIHANDLE, ecolumninfo : MSICOLINFO, phrecord : *mut MSIHANDLE) -> u32); - MsiViewGetColumnInfo(hview.into_param().abi(), ecolumninfo, phrecord) + MsiViewGetColumnInfo(hview.param().abi(), ecolumninfo, phrecord) } #[inline] pub unsafe fn MsiViewGetErrorA(hview: P0, szcolumnnamebuffer: windows_core::PSTR, pcchbuf: Option<*mut u32>) -> MSIDBERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiViewGetErrorA(hview : MSIHANDLE, szcolumnnamebuffer : windows_core::PSTR, pcchbuf : *mut u32) -> MSIDBERROR); - MsiViewGetErrorA(hview.into_param().abi(), core::mem::transmute(szcolumnnamebuffer), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) + MsiViewGetErrorA(hview.param().abi(), core::mem::transmute(szcolumnnamebuffer), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiViewGetErrorW(hview: P0, szcolumnnamebuffer: windows_core::PWSTR, pcchbuf: Option<*mut u32>) -> MSIDBERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiViewGetErrorW(hview : MSIHANDLE, szcolumnnamebuffer : windows_core::PWSTR, pcchbuf : *mut u32) -> MSIDBERROR); - MsiViewGetErrorW(hview.into_param().abi(), core::mem::transmute(szcolumnnamebuffer), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) + MsiViewGetErrorW(hview.param().abi(), core::mem::transmute(szcolumnnamebuffer), core::mem::transmute(pcchbuf.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn MsiViewModify(hview: P0, emodifymode: MSIMODIFY, hrecord: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("msi.dll" "system" fn MsiViewModify(hview : MSIHANDLE, emodifymode : MSIMODIFY, hrecord : MSIHANDLE) -> u32); - MsiViewModify(hview.into_param().abi(), emodifymode, hrecord.into_param().abi()) + MsiViewModify(hview.param().abi(), emodifymode, hrecord.param().abi()) } #[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 { @@ -2775,72 +2753,72 @@ pub unsafe fn NormalizeFileForPatchSignature(filebuffer: *mut core::ffi::c_void, #[inline] pub unsafe fn QueryActCtxSettingsW(dwflags: u32, hactctx: P0, settingsnamespace: P1, settingname: P2, pvbuffer: windows_core::PWSTR, dwbuffer: usize, pdwwrittenorrequired: Option<*mut usize>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwflags, hactctx.into_param().abi(), settingsnamespace.into_param().abi(), settingname.into_param().abi(), core::mem::transmute(pvbuffer), dwbuffer, core::mem::transmute(pdwwrittenorrequired.unwrap_or(std::ptr::null_mut()))).ok() + QueryActCtxSettingsW(dwflags, hactctx.param().abi(), settingsnamespace.param().abi(), settingname.param().abi(), core::mem::transmute(pvbuffer), dwbuffer, core::mem::transmute(pdwwrittenorrequired.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn QueryActCtxW(dwflags: u32, hactctx: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwflags, hactctx.into_param().abi(), core::mem::transmute(pvsubinstance.unwrap_or(std::ptr::null())), ulinfoclass, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), cbbuffer, core::mem::transmute(pcbwrittenorrequired.unwrap_or(std::ptr::null_mut()))).ok() + QueryActCtxW(dwflags, hactctx.param().abi(), core::mem::transmute(pvsubinstance.unwrap_or(std::ptr::null())), ulinfoclass, core::mem::transmute(pvbuffer.unwrap_or(std::ptr::null_mut())), cbbuffer, core::mem::transmute(pcbwrittenorrequired.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ReleaseActCtx(hactctx: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReleaseActCtx(hactctx : super::super::Foundation:: HANDLE)); - ReleaseActCtx(hactctx.into_param().abi()) + ReleaseActCtx(hactctx.param().abi()) } #[inline] pub unsafe fn SfcGetNextProtectedFile(rpchandle: P0, protfiledata: *mut PROTECTED_FILE_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sfc.dll" "system" fn SfcGetNextProtectedFile(rpchandle : super::super::Foundation:: HANDLE, protfiledata : *mut PROTECTED_FILE_DATA) -> super::super::Foundation:: BOOL); - SfcGetNextProtectedFile(rpchandle.into_param().abi(), protfiledata).ok() + SfcGetNextProtectedFile(rpchandle.param().abi(), protfiledata).ok() } #[inline] pub unsafe fn SfcIsFileProtected(rpchandle: P0, protfilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(rpchandle.into_param().abi(), protfilename.into_param().abi()) + SfcIsFileProtected(rpchandle.param().abi(), protfilename.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SfcIsKeyProtected(keyhandle: P0, subkeyname: P1, keysam: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(keyhandle.into_param().abi(), subkeyname.into_param().abi(), keysam) + SfcIsKeyProtected(keyhandle.param().abi(), subkeyname.param().abi(), keysam) } #[inline] pub unsafe fn SfpVerifyFile(pszfilename: P0, pszerror: &[u8]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sfc.dll" "system" fn SfpVerifyFile(pszfilename : windows_core::PCSTR, pszerror : windows_core::PCSTR, dwerrsize : u32) -> super::super::Foundation:: BOOL); - SfpVerifyFile(pszfilename.into_param().abi(), core::mem::transmute(pszerror.as_ptr()), pszerror.len().try_into().unwrap()) + SfpVerifyFile(pszfilename.param().abi(), core::mem::transmute(pszerror.as_ptr()), pszerror.len().try_into().unwrap()) } #[inline] pub unsafe fn TestApplyPatchToFileA(patchfilename: P0, oldfilename: P1, applyoptionflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), oldfilename.into_param().abi(), 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 { @@ -2850,49 +2828,49 @@ pub unsafe fn TestApplyPatchToFileByBuffers(patchfilebuffer: &[u8], oldfilebuffe #[inline] pub unsafe fn TestApplyPatchToFileByHandles(patchfilehandle: P0, oldfilehandle: P1, applyoptionflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(patchfilehandle.into_param().abi(), oldfilehandle.into_param().abi(), applyoptionflags) + TestApplyPatchToFileByHandles(patchfilehandle.param().abi(), oldfilehandle.param().abi(), applyoptionflags) } #[inline] pub unsafe fn TestApplyPatchToFileW(patchfilename: P0, oldfilename: P1, applyoptionflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), oldfilename.into_param().abi(), applyoptionflags) + TestApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), applyoptionflags) } #[inline] pub unsafe fn ZombifyActCtx(hactctx: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ZombifyActCtx(hactctx : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ZombifyActCtx(hactctx.into_param().abi()).ok() + ZombifyActCtx(hactctx.param().abi()).ok() } windows_core::imp::define_interface!(IAssemblyCache, IAssemblyCache_Vtbl, 0xe707dcde_d1cd_11d2_bab9_00c04f8eceae); windows_core::imp::interface_hierarchy!(IAssemblyCache, windows_core::IUnknown); impl IAssemblyCache { pub unsafe fn UninstallAssembly(&self, dwflags: u32, pszassemblyname: P0, prefdata: *mut FUSION_INSTALL_REFERENCE, puldisposition: *mut IASSEMBLYCACHE_UNINSTALL_DISPOSITION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UninstallAssembly)(windows_core::Interface::as_raw(self), dwflags, pszassemblyname.into_param().abi(), prefdata, puldisposition).ok() + (windows_core::Interface::vtable(self).UninstallAssembly)(windows_core::Interface::as_raw(self), dwflags, pszassemblyname.param().abi(), prefdata, puldisposition).ok() } pub unsafe fn QueryAssemblyInfo(&self, dwflags: QUERYASMINFO_FLAGS, pszassemblyname: P0, pasminfo: *mut ASSEMBLY_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryAssemblyInfo)(windows_core::Interface::as_raw(self), dwflags, pszassemblyname.into_param().abi(), pasminfo).ok() + (windows_core::Interface::vtable(self).QueryAssemblyInfo)(windows_core::Interface::as_raw(self), dwflags, pszassemblyname.param().abi(), pasminfo).ok() } pub unsafe fn CreateAssemblyCacheItem(&self, dwflags: u32, pvreserved: *mut core::ffi::c_void, ppasmitem: *mut Option, pszassemblyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateAssemblyCacheItem)(windows_core::Interface::as_raw(self), dwflags, pvreserved, core::mem::transmute(ppasmitem), pszassemblyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateAssemblyCacheItem)(windows_core::Interface::as_raw(self), dwflags, pvreserved, core::mem::transmute(ppasmitem), pszassemblyname.param().abi()).ok() } pub unsafe fn Reserved(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2900,9 +2878,9 @@ impl IAssemblyCache { } pub unsafe fn InstallAssembly(&self, dwflags: u32, pszmanifestfilepath: P0, prefdata: *mut FUSION_INSTALL_REFERENCE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallAssembly)(windows_core::Interface::as_raw(self), dwflags, pszmanifestfilepath.into_param().abi(), prefdata).ok() + (windows_core::Interface::vtable(self).InstallAssembly)(windows_core::Interface::as_raw(self), dwflags, pszmanifestfilepath.param().abi(), prefdata).ok() } } #[repr(C)] @@ -2920,9 +2898,9 @@ impl IAssemblyCacheItem { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateStream(&self, dwflags: u32, pszstreamname: P0, dwformat: u32, dwformatflags: u32, ppistream: *mut Option, pulimaxsize: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), dwflags, pszstreamname.into_param().abi(), dwformat, dwformatflags, core::mem::transmute(ppistream), pulimaxsize).ok() + (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), dwflags, pszstreamname.param().abi(), dwformat, dwformatflags, core::mem::transmute(ppistream), 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), dwflags, puldisposition).ok() @@ -2958,11 +2936,11 @@ impl IAssemblyName { } pub unsafe fn Reserved(&self, refiid: *const windows_core::GUID, punkreserved1: P0, punkreserved2: P1, szreserved: P2, llreserved: i64, pvreserved: *mut core::ffi::c_void, cbreserved: u32, ppreserved: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Reserved)(windows_core::Interface::as_raw(self), refiid, punkreserved1.into_param().abi(), punkreserved2.into_param().abi(), szreserved.into_param().abi(), llreserved, pvreserved, cbreserved, 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, pvreserved, cbreserved, ppreserved).ok() } pub unsafe fn GetName(&self, lpcwbuffer: *mut u32, pwzname: windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), lpcwbuffer, core::mem::transmute(pwzname)).ok() @@ -2972,9 +2950,9 @@ impl IAssemblyName { } pub unsafe fn IsEqual(&self, pname: P0, dwcmpflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pname.into_param().abi(), 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__ = std::mem::zeroed(); @@ -3240,39 +3218,39 @@ windows_core::imp::interface_hierarchy!(IMsmMerge, windows_core::IUnknown, super impl IMsmMerge { pub unsafe fn OpenDatabase(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDatabase)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDatabase)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn OpenModule(&self, path: P0, language: i16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenModule)(windows_core::Interface::as_raw(self), path.into_param().abi(), language).ok() + (windows_core::Interface::vtable(self).OpenModule)(windows_core::Interface::as_raw(self), path.param().abi(), language).ok() } pub unsafe fn CloseDatabase(&self, commit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseDatabase)(windows_core::Interface::as_raw(self), commit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseDatabase)(windows_core::Interface::as_raw(self), commit.param().abi()).ok() } pub unsafe fn CloseModule(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseModule)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OpenLog(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLog)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLog)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn CloseLog(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLog)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Log(&self, message: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), message.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Log)(windows_core::Interface::as_raw(self), message.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Errors(&self) -> windows_core::Result { @@ -3286,28 +3264,28 @@ impl IMsmMerge { } pub unsafe fn Merge(&self, feature: P0, redirectdir: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), feature.into_param().abi(), redirectdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), feature.param().abi(), redirectdir.param().abi()).ok() } pub unsafe fn Connect(&self, feature: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), feature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), feature.param().abi()).ok() } pub unsafe fn ExtractCAB(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExtractCAB)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExtractCAB)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn ExtractFiles(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExtractFiles)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExtractFiles)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3473,27 +3451,27 @@ impl IPMApplicationInfo { } pub unsafe fn set_UpdateAvailable(&self, isupdateavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_UpdateAvailable)(windows_core::Interface::as_raw(self), isupdateavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_UpdateAvailable)(windows_core::Interface::as_raw(self), isupdateavailable.param().abi()).ok() } pub unsafe fn set_NotificationState(&self, isnotified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_NotificationState)(windows_core::Interface::as_raw(self), isnotified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_NotificationState)(windows_core::Interface::as_raw(self), isnotified.param().abi()).ok() } pub unsafe fn set_IconPath(&self, appiconpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_IconPath)(windows_core::Interface::as_raw(self), appiconpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_IconPath)(windows_core::Interface::as_raw(self), appiconpath.param().abi()).ok() } pub unsafe fn set_UninstallableState(&self, isuninstallable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_UninstallableState)(windows_core::Interface::as_raw(self), isuninstallable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_UninstallableState)(windows_core::Interface::as_raw(self), isuninstallable.param().abi()).ok() } pub unsafe fn IsPinableOnKidZone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3517,15 +3495,15 @@ impl IPMApplicationInfo { } pub unsafe fn set_EnterpriseDisabled(&self, isdisabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_EnterpriseDisabled)(windows_core::Interface::as_raw(self), isdisabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_EnterpriseDisabled)(windows_core::Interface::as_raw(self), isdisabled.param().abi()).ok() } pub unsafe fn set_EnterpriseUninstallable(&self, isuninstallable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_EnterpriseUninstallable)(windows_core::Interface::as_raw(self), isuninstallable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_EnterpriseUninstallable)(windows_core::Interface::as_raw(self), isuninstallable.param().abi()).ok() } pub unsafe fn EnterpriseDisabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3576,15 +3554,15 @@ impl IPMApplicationInfo { } pub unsafe fn set_IsMdilMaintenanceNeeded(&self, fismdilmaintenanceneeded: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_IsMdilMaintenanceNeeded)(windows_core::Interface::as_raw(self), fismdilmaintenanceneeded.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_IsMdilMaintenanceNeeded)(windows_core::Interface::as_raw(self), fismdilmaintenanceneeded.param().abi()).ok() } pub unsafe fn set_Title(&self, apptitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_Title)(windows_core::Interface::as_raw(self), apptitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_Title)(windows_core::Interface::as_raw(self), apptitle.param().abi()).ok() } } #[repr(C)] @@ -3706,15 +3684,15 @@ impl IPMBackgroundServiceAgentInfo { } pub unsafe fn set_IsScheduled(&self, isscheduled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_IsScheduled)(windows_core::Interface::as_raw(self), isscheduled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_IsScheduled)(windows_core::Interface::as_raw(self), isscheduled.param().abi()).ok() } pub unsafe fn set_IsScheduleAllowed(&self, isscheduleallowed: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_IsScheduleAllowed)(windows_core::Interface::as_raw(self), isscheduleallowed.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_IsScheduleAllowed)(windows_core::Interface::as_raw(self), isscheduleallowed.param().abi()).ok() } } #[repr(C)] @@ -3835,11 +3813,11 @@ impl IPMDeploymentManager { } pub unsafe fn GetLicenseChallenge(&self, packagepath: P0, ppbchallenge: *mut *mut u8, pcbchallenge: *mut u32, ppbkid: Option<*mut *mut u8>, pcbkid: Option<*mut u32>, ppbdeviceid: Option<*mut *mut u8>, pcbdeviceid: Option<*mut u32>, ppbsaltvalue: Option<*mut *mut u8>, pcbsaltvalue: Option<*mut u32>, ppbkgvvalue: Option<*mut *mut u8>, pcbkgvvalue: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetLicenseChallenge)( windows_core::Interface::as_raw(self), - packagepath.into_param().abi(), + packagepath.param().abi(), ppbchallenge, pcbchallenge, core::mem::transmute(ppbkid.unwrap_or(std::ptr::null_mut())), @@ -3892,9 +3870,9 @@ impl IPMDeploymentManager { } pub unsafe fn BeginProvision(&self, productid: windows_core::GUID, xmlpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginProvision)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), xmlpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginProvision)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), xmlpath.param().abi()).ok() } pub unsafe fn BeginDeprovision(&self, productid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginDeprovision)(windows_core::Interface::as_raw(self), core::mem::transmute(productid)).ok() @@ -3911,10 +3889,10 @@ impl IPMDeploymentManager { } pub unsafe fn EnterprisePolicyIsApplicationAllowed(&self, productid: windows_core::GUID, publishername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnterprisePolicyIsApplicationAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), publishername.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EnterprisePolicyIsApplicationAllowed)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), publishername.param().abi(), &mut result__).map(|| result__) } pub unsafe fn BeginUpdateDeployedPackage(&self, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginUpdateDeployedPackage)(windows_core::Interface::as_raw(self), pupdateinfo).ok() @@ -3924,9 +3902,9 @@ impl IPMDeploymentManager { } pub unsafe fn ResolveResourceString(&self, resourcestring: P0, presolvedresourcestring: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveResourceString)(windows_core::Interface::as_raw(self), resourcestring.into_param().abi(), core::mem::transmute(presolvedresourcestring)).ok() + (windows_core::Interface::vtable(self).ResolveResourceString)(windows_core::Interface::as_raw(self), resourcestring.param().abi(), core::mem::transmute(presolvedresourcestring)).ok() } pub unsafe fn UpdateCapabilitiesForModernApps(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateCapabilitiesForModernApps)(windows_core::Interface::as_raw(self)).ok() @@ -3942,9 +3920,9 @@ impl IPMDeploymentManager { } pub unsafe fn GenerateXamlLightupXbfForCurrentLocale(&self, packagefamilyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateXamlLightupXbfForCurrentLocale)(windows_core::Interface::as_raw(self), packagefamilyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GenerateXamlLightupXbfForCurrentLocale)(windows_core::Interface::as_raw(self), packagefamilyname.param().abi()).ok() } pub unsafe fn AddLicenseForAppx(&self, productid: windows_core::GUID, pblicense: &[u8], pbplayreadyheader: Option<&[u8]>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddLicenseForAppx)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), core::mem::transmute(pblicense.as_ptr()), pblicense.len().try_into().unwrap(), core::mem::transmute(pbplayreadyheader.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbplayreadyheader.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() @@ -4025,24 +4003,24 @@ impl IPMEnumerationManager { } pub unsafe fn get_TileInfo(&self, productid: windows_core::GUID, tileid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_TileInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), tileid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_TileInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), tileid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_TaskInfo(&self, productid: windows_core::GUID, taskid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_TaskInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), taskid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_TaskInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), taskid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_TaskInfoEx(&self, productid: windows_core::GUID, taskid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_TaskInfoEx)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), taskid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_TaskInfoEx)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), taskid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_BackgroundServiceAgentInfo(&self, bsaid: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4054,10 +4032,10 @@ impl IPMEnumerationManager { } pub unsafe fn get_LiveTileJob(&self, productid: windows_core::GUID, tileid: P0, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_LiveTileJob)(windows_core::Interface::as_raw(self), core::mem::transmute(productid), tileid.into_param().abi(), 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), tileid.param().abi(), 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__ = std::mem::zeroed(); @@ -4065,17 +4043,17 @@ impl IPMEnumerationManager { } pub unsafe fn get_FileHandlerGenericLogo(&self, filetype: P0, logosize: PM_LOGO_SIZE, plogo: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_FileHandlerGenericLogo)(windows_core::Interface::as_raw(self), filetype.into_param().abi(), logosize, core::mem::transmute(plogo)).ok() + (windows_core::Interface::vtable(self).get_FileHandlerGenericLogo)(windows_core::Interface::as_raw(self), filetype.param().abi(), logosize, core::mem::transmute(plogo)).ok() } pub unsafe fn get_ApplicationInfoFromAccessClaims(&self, sysappid0: P0, sysappid1: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ApplicationInfoFromAccessClaims)(windows_core::Interface::as_raw(self), sysappid0.into_param().abi(), sysappid1.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ApplicationInfoFromAccessClaims)(windows_core::Interface::as_raw(self), sysappid0.param().abi(), sysappid1.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_StartTileEnumeratorBlob(&self, filter: PM_ENUM_FILTER, pctiles: *mut u32, pptileblobs: *mut *mut PM_STARTTILEBLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_StartTileEnumeratorBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(filter), pctiles, pptileblobs).ok() @@ -4145,15 +4123,15 @@ impl IPMExtensionFileExtensionInfo { } pub unsafe fn get_ContentType(&self, filetype: P0, pcontenttype: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_ContentType)(windows_core::Interface::as_raw(self), filetype.into_param().abi(), core::mem::transmute(pcontenttype)).ok() + (windows_core::Interface::vtable(self).get_ContentType)(windows_core::Interface::as_raw(self), filetype.param().abi(), core::mem::transmute(pcontenttype)).ok() } pub unsafe fn get_FileType(&self, contenttype: P0, pfiletype: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).get_FileType)(windows_core::Interface::as_raw(self), contenttype.into_param().abi(), core::mem::transmute(pfiletype)).ok() + (windows_core::Interface::vtable(self).get_FileType)(windows_core::Interface::as_raw(self), contenttype.param().abi(), core::mem::transmute(pfiletype)).ok() } 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() @@ -4327,9 +4305,9 @@ impl IPMLiveTileJobInfo { } pub unsafe fn set_RunForever(&self, frunforever: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_RunForever)(windows_core::Interface::as_raw(self), frunforever.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_RunForever)(windows_core::Interface::as_raw(self), frunforever.param().abi()).ok() } pub unsafe fn MaxRunCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4598,25 +4576,25 @@ impl IPMTileInfo { } pub unsafe fn set_NotifiedState(&self, notified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_NotifiedState)(windows_core::Interface::as_raw(self), notified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_NotifiedState)(windows_core::Interface::as_raw(self), notified.param().abi()).ok() } pub unsafe fn set_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE, pinned: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_HubPinnedState)(windows_core::Interface::as_raw(self), hubtype, pinned.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_HubPinnedState)(windows_core::Interface::as_raw(self), hubtype, pinned.param().abi()).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), hubtype, size).ok() } pub unsafe fn set_InvocationInfo(&self, taskname: P0, taskparameters: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).set_InvocationInfo)(windows_core::Interface::as_raw(self), taskname.into_param().abi(), taskparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_InvocationInfo)(windows_core::Interface::as_raw(self), taskname.param().abi(), taskparameters.param().abi()).ok() } pub unsafe fn StartTileBlob(&self, pblob: *mut PM_STARTTILEBLOB) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartTileBlob)(windows_core::Interface::as_raw(self), pblob).ok() @@ -4631,15 +4609,15 @@ impl IPMTileInfo { } pub unsafe fn set_IsRestoring(&self, restoring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_IsRestoring)(windows_core::Interface::as_raw(self), restoring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_IsRestoring)(windows_core::Interface::as_raw(self), restoring.param().abi()).ok() } pub unsafe fn set_IsAutoRestoreDisabled(&self, autorestoredisabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_IsAutoRestoreDisabled)(windows_core::Interface::as_raw(self), autorestoredisabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_IsAutoRestoreDisabled)(windows_core::Interface::as_raw(self), autorestoredisabled.param().abi()).ok() } } #[repr(C)] @@ -4708,9 +4686,9 @@ impl IPMTilePropertyInfo { } pub unsafe fn set_Property(&self, propvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_Property)(windows_core::Interface::as_raw(self), propvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_Property)(windows_core::Interface::as_raw(self), propvalue.param().abi()).ok() } } #[repr(C)] @@ -4725,15 +4703,15 @@ windows_core::imp::interface_hierarchy!(IValidate, windows_core::IUnknown); impl IValidate { pub unsafe fn OpenDatabase(&self, szdatabase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDatabase)(windows_core::Interface::as_raw(self), szdatabase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDatabase)(windows_core::Interface::as_raw(self), szdatabase.param().abi()).ok() } pub unsafe fn OpenCUB(&self, szcubfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenCUB)(windows_core::Interface::as_raw(self), szcubfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenCUB)(windows_core::Interface::as_raw(self), szcubfile.param().abi()).ok() } pub unsafe fn CloseDatabase(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseDatabase)(windows_core::Interface::as_raw(self)).ok() @@ -4749,9 +4727,9 @@ impl IValidate { } pub unsafe fn Validate(&self, wzices: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), wzices.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), wzices.param().abi()).ok() } } #[repr(C)] 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 8f2070e6a1..7a1b876636 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationVerifier/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationVerifier/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn VerifierEnumerateResource(process: P0, flags: VERIFIER_ENUM_RESOURCE_FLAGS, resourcetype: eAvrfResourceTypes, resourcecallback: AVRF_RESOURCE_ENUMERATE_CALLBACK, enumerationcontext: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), flags, resourcetype.0 as _, resourcecallback, enumerationcontext) + VerifierEnumerateResource(process.param().abi(), flags, resourcetype.0 as _, resourcecallback, enumerationcontext) } pub const AVRF_ENUM_RESOURCES_FLAGS_DONT_RESOLVE_TRACES: VERIFIER_ENUM_RESOURCE_FLAGS = VERIFIER_ENUM_RESOURCE_FLAGS(2u32); pub const AVRF_ENUM_RESOURCES_FLAGS_SUSPEND: VERIFIER_ENUM_RESOURCE_FLAGS = VERIFIER_ENUM_RESOURCE_FLAGS(1u32); 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 3fba847e17..4ab8718cc2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs @@ -17,74 +17,74 @@ impl IAccessibleWinSAT { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] pub unsafe fn get_accChild(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accChild)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accChild)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accName(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accName)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accName)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accValue(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accValue)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accValue)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accDescription(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accDescription)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accDescription)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accRole(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accRole)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accRole)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accState(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accState)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accState)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accHelp(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accHelp)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accHelp)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accHelpTopic(&self, pszhelpfile: *mut windows_core::BSTR, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accHelpTopic)(windows_core::Interface::as_raw(self), core::mem::transmute(pszhelpfile), varchild.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.get_accHelpTopic)(windows_core::Interface::as_raw(self), core::mem::transmute(pszhelpfile), varchild.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accKeyboardShortcut(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accKeyboardShortcut)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accKeyboardShortcut)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn accFocus(&self) -> windows_core::Result { @@ -99,32 +99,32 @@ impl IAccessibleWinSAT { #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn get_accDefaultAction(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_accDefaultAction)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_accDefaultAction)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn accSelect(&self, flagsselect: i32, varchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.accSelect)(windows_core::Interface::as_raw(self), flagsselect, varchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.accSelect)(windows_core::Interface::as_raw(self), flagsselect, varchild.param().abi()).ok() } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn accLocation(&self, pxleft: *mut i32, pytop: *mut i32, pcxwidth: *mut i32, pcyheight: *mut i32, varchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.accLocation)(windows_core::Interface::as_raw(self), pxleft, pytop, pcxwidth, pcyheight, varchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.accLocation)(windows_core::Interface::as_raw(self), pxleft, pytop, pcxwidth, pcyheight, varchild.param().abi()).ok() } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn accNavigate(&self, navdir: i32, varstart: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.accNavigate)(windows_core::Interface::as_raw(self), navdir, varstart.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.accNavigate)(windows_core::Interface::as_raw(self), navdir, varstart.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn accHitTest(&self, xleft: i32, ytop: i32) -> windows_core::Result { @@ -134,33 +134,33 @@ impl IAccessibleWinSAT { #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn accDoDefaultAction(&self, varchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.accDoDefaultAction)(windows_core::Interface::as_raw(self), varchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.accDoDefaultAction)(windows_core::Interface::as_raw(self), varchild.param().abi()).ok() } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn put_accName(&self, varchild: P0, szname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_accName)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_accName)(windows_core::Interface::as_raw(self), varchild.param().abi(), szname.param().abi()).ok() } #[cfg(feature = "Win32_UI_Accessibility")] pub unsafe fn put_accValue(&self, varchild: P0, szvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_accValue)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_accValue)(windows_core::Interface::as_raw(self), varchild.param().abi(), szvalue.param().abi()).ok() } pub unsafe fn SetAccessiblityData(&self, wsname: P0, wsvalue: P1, wsdesc: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccessiblityData)(windows_core::Interface::as_raw(self), wsname.into_param().abi(), wsvalue.into_param().abi(), wsdesc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccessiblityData)(windows_core::Interface::as_raw(self), wsname.param().abi(), wsvalue.param().abi(), wsdesc.param().abi()).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] @@ -174,18 +174,18 @@ windows_core::imp::interface_hierarchy!(IInitiateWinSATAssessment, windows_core: impl IInitiateWinSATAssessment { pub unsafe fn InitiateAssessment(&self, cmdline: P0, pcallbacks: P1, callerhwnd: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitiateAssessment)(windows_core::Interface::as_raw(self), cmdline.into_param().abi(), pcallbacks.into_param().abi(), callerhwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitiateAssessment)(windows_core::Interface::as_raw(self), cmdline.param().abi(), pcallbacks.param().abi(), callerhwnd.param().abi()).ok() } pub unsafe fn InitiateFormalAssessment(&self, pcallbacks: P0, callerhwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitiateFormalAssessment)(windows_core::Interface::as_raw(self), pcallbacks.into_param().abi(), callerhwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitiateFormalAssessment)(windows_core::Interface::as_raw(self), pcallbacks.param().abi(), callerhwnd.param().abi()).ok() } pub unsafe fn CancelAssessment(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelAssessment)(windows_core::Interface::as_raw(self)).ok() @@ -292,11 +292,11 @@ impl IQueryAllWinSATAssessments { #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn get_AllXML(&self, xpath: P0, namespaces: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_AllXML)(windows_core::Interface::as_raw(self), xpath.into_param().abi(), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_AllXML)(windows_core::Interface::as_raw(self), xpath.param().abi(), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -330,11 +330,11 @@ impl IQueryRecentWinSATAssessment { #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub unsafe fn get_XML(&self, xpath: P0, namespaces: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_XML)(windows_core::Interface::as_raw(self), xpath.into_param().abi(), namespaces.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_XML)(windows_core::Interface::as_raw(self), xpath.param().abi(), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Info(&self) -> windows_core::Result { @@ -360,15 +360,15 @@ windows_core::imp::interface_hierarchy!(IWinSATInitiateEvents, windows_core::IUn impl IWinSATInitiateEvents { pub unsafe fn WinSATComplete(&self, hresult: windows_core::HRESULT, strdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WinSATComplete)(windows_core::Interface::as_raw(self), hresult, strdescription.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WinSATUpdate)(windows_core::Interface::as_raw(self), ucurrenttick, uticktotal, strcurrentstate.into_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 46794be0a0..430a9a0629 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs @@ -10,65 +10,65 @@ where #[inline] pub unsafe fn CallFunctionShim(szdllname: P0, szfunctionname: P1, lpvargument1: *mut core::ffi::c_void, lpvargument2: *mut core::ffi::c_void, szversion: P2, pvreserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn CallFunctionShim(szdllname : windows_core::PCWSTR, szfunctionname : windows_core::PCSTR, lpvargument1 : *mut core::ffi::c_void, lpvargument2 : *mut core::ffi::c_void, szversion : windows_core::PCWSTR, pvreserved : *mut core::ffi::c_void) -> windows_core::HRESULT); - CallFunctionShim(szdllname.into_param().abi(), szfunctionname.into_param().abi(), lpvargument1, lpvargument2, szversion.into_param().abi(), pvreserved).ok() + CallFunctionShim(szdllname.param().abi(), szfunctionname.param().abi(), lpvargument1, lpvargument2, szversion.param().abi(), pvreserved).ok() } #[inline] pub unsafe fn ClrCreateManagedInstance(ptypename: P0, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppobject).ok() + ClrCreateManagedInstance(ptypename.param().abi(), riid, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), rclsid, riid, ppv).ok() + CorBindToCurrentRuntime(pwszfilename.param().abi(), rclsid, riid, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwszbuildflavor.into_param().abi(), rclsid, riid, ppv).ok() + CorBindToRuntime(pwszversion.param().abi(), pwszbuildflavor.param().abi(), rclsid, riid, ppv).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn CorBindToRuntimeByCfg(pcfgstream: P0, reserved: u32, startupflags: u32, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), reserved, startupflags, rclsid, riid, ppv).ok() + CorBindToRuntimeByCfg(pcfgstream.param().abi(), reserved, startupflags, rclsid, riid, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwszbuildflavor.into_param().abi(), startupflags, rclsid, riid, ppv).ok() + CorBindToRuntimeEx(pwszversion.param().abi(), pwszbuildflavor.param().abi(), startupflags, rclsid, riid, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), pwszbuildflavor.into_param().abi(), pwszhostconfigfile.into_param().abi(), preserved, startupflags, rclsid, riid, ppv).ok() + CorBindToRuntimeHost(pwszversion.param().abi(), pwszbuildflavor.param().abi(), pwszhostconfigfile.param().abi(), preserved, startupflags, rclsid, riid, ppv).ok() } #[inline] pub unsafe fn CorExitProcess(exitcode: i32) { @@ -79,10 +79,10 @@ pub unsafe fn CorExitProcess(exitcode: i32) { #[inline] pub unsafe fn CorLaunchApplication(dwclickoncehost: HOST_TYPE, pwzappfullname: P0, dwmanifestpaths: u32, ppwzmanifestpaths: *const windows_core::PCWSTR, dwactivationdata: u32, ppwzactivationdata: *const windows_core::PCWSTR, lpprocessinformation: *mut super::Threading::PROCESS_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwclickoncehost, pwzappfullname.into_param().abi(), dwmanifestpaths, ppwzmanifestpaths, dwactivationdata, ppwzactivationdata, lpprocessinformation).ok() + CorLaunchApplication(dwclickoncehost, pwzappfullname.param().abi(), dwmanifestpaths, ppwzmanifestpaths, dwactivationdata, ppwzactivationdata, lpprocessinformation).ok() } #[inline] pub unsafe fn CorMarkThreadInThreadPool() { @@ -92,11 +92,11 @@ pub unsafe fn CorMarkThreadInThreadPool() { #[inline] pub unsafe fn CreateDebuggingInterfaceFromVersion(idebuggerversion: i32, szdebuggeeversion: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateDebuggingInterfaceFromVersion(idebuggerversion, szdebuggeeversion.into_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 { @@ -122,31 +122,31 @@ pub unsafe fn GetCORVersion(pbbuffer: &mut [u16], dwlength: *mut u32) -> windows #[inline] pub unsafe fn GetFileVersion(szfilename: P0, szbuffer: Option<&mut [u16]>, dwlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn GetFileVersion(szfilename : windows_core::PCWSTR, szbuffer : windows_core::PWSTR, cchbuffer : u32, dwlength : *mut u32) -> windows_core::HRESULT); - GetFileVersion(szfilename.into_param().abi(), 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()), dwlength).ok() + GetFileVersion(szfilename.param().abi(), 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()), dwlength).ok() } #[inline] pub unsafe fn GetRealProcAddress(pwszprocname: P0, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn GetRealProcAddress(pwszprocname : windows_core::PCSTR, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - GetRealProcAddress(pwszprocname.into_param().abi(), ppv).ok() + GetRealProcAddress(pwszprocname.param().abi(), ppv).ok() } #[inline] pub unsafe fn GetRequestedRuntimeInfo(pexe: P0, pwszversion: P1, pconfigurationfile: P2, startupflags: u32, runtimeinfoflags: u32, pdirectory: Option<&mut [u16]>, dwdirectorylength: Option<*mut u32>, pversion: Option<&mut [u16]>, dwlength: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn GetRequestedRuntimeInfo(pexe : windows_core::PCWSTR, pwszversion : windows_core::PCWSTR, pconfigurationfile : windows_core::PCWSTR, startupflags : u32, runtimeinfoflags : u32, pdirectory : windows_core::PWSTR, dwdirectory : u32, dwdirectorylength : *mut u32, pversion : windows_core::PWSTR, cchbuffer : u32, dwlength : *mut u32) -> windows_core::HRESULT); GetRequestedRuntimeInfo( - pexe.into_param().abi(), - pwszversion.into_param().abi(), - pconfigurationfile.into_param().abi(), + pexe.param().abi(), + pwszversion.param().abi(), + pconfigurationfile.param().abi(), startupflags, runtimeinfoflags, core::mem::transmute(pdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), @@ -161,10 +161,10 @@ where #[inline] pub unsafe fn GetRequestedRuntimeVersion(pexe: P0, pversion: &mut [u16], dwlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn GetRequestedRuntimeVersion(pexe : windows_core::PCWSTR, pversion : windows_core::PWSTR, cchbuffer : u32, dwlength : *mut u32) -> windows_core::HRESULT); - GetRequestedRuntimeVersion(pexe.into_param().abi(), core::mem::transmute(pversion.as_ptr()), pversion.len().try_into().unwrap(), dwlength).ok() + GetRequestedRuntimeVersion(pexe.param().abi(), core::mem::transmute(pversion.as_ptr()), pversion.len().try_into().unwrap(), dwlength).ok() } #[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<()> { @@ -174,19 +174,19 @@ pub unsafe fn GetRequestedRuntimeVersionForCLSID(rclsid: *const windows_core::GU #[inline] pub unsafe fn GetVersionFromProcess(hprocess: P0, pversion: &mut [u16], dwlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(pversion.as_ptr()), pversion.len().try_into().unwrap(), dwlength).ok() + GetVersionFromProcess(hprocess.param().abi(), core::mem::transmute(pversion.as_ptr()), pversion.len().try_into().unwrap(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mscoree.dll" "system" fn LoadLibraryShim(szdllname : windows_core::PCWSTR, szversion : windows_core::PCWSTR, pvreserved : *mut core::ffi::c_void, phmoddll : *mut super::super::Foundation:: HMODULE) -> windows_core::HRESULT); - LoadLibraryShim(szdllname.into_param().abi(), szversion.into_param().abi(), pvreserved, phmoddll).ok() + LoadLibraryShim(szdllname.param().abi(), szversion.param().abi(), pvreserved, phmoddll).ok() } #[inline] pub unsafe fn LoadStringRC(iresouceid: u32, szbuffer: &mut [u16], bquiet: i32) -> windows_core::Result<()> { @@ -206,12 +206,12 @@ pub unsafe fn LockClrVersion(hostcallback: FLockClrVersionCallback, pbeginhostse #[inline] pub unsafe fn RunDll32ShimW(hwnd: P0, hinst: P1, lpszcmdline: P2, ncmdshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinst.into_param().abi(), lpszcmdline.into_param().abi(), ncmdshow).ok() + RunDll32ShimW(hwnd.param().abi(), hinst.param().abi(), lpszcmdline.param().abi(), ncmdshow).ok() } windows_core::imp::define_interface!(IActionOnCLREvent, IActionOnCLREvent_Vtbl, 0x607be24b_d91b_4e28_a242_61871ce56e35); windows_core::imp::interface_hierarchy!(IActionOnCLREvent, windows_core::IUnknown); @@ -242,9 +242,9 @@ windows_core::imp::interface_hierarchy!(IAppDomainBinding, windows_core::IUnknow impl IAppDomainBinding { pub unsafe fn OnAppDomain(&self, pappdomain: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAppDomain)(windows_core::Interface::as_raw(self), pappdomain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnAppDomain)(windows_core::Interface::as_raw(self), pappdomain.param().abi()).ok() } } #[repr(C)] @@ -281,47 +281,47 @@ impl ICLRAssemblyIdentityManager { } pub unsafe fn GetBindingIdentityFromFile(&self, pwzfilepath: P0, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBindingIdentityFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), dwflags, core::mem::transmute(pwzbuffer), pcchbuffersize).ok() + (windows_core::Interface::vtable(self).GetBindingIdentityFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), dwflags, core::mem::transmute(pwzbuffer), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBindingIdentityFromStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), dwflags, core::mem::transmute(pwzbuffer), pcchbuffersize).ok() + (windows_core::Interface::vtable(self).GetBindingIdentityFromStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), dwflags, core::mem::transmute(pwzbuffer), pcchbuffersize).ok() } pub unsafe fn GetReferencedAssembliesFromFile(&self, pwzfilepath: P0, dwflags: u32, pexcludeassemblieslist: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReferencedAssembliesFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), dwflags, pexcludeassemblieslist.into_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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReferencedAssembliesFromStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), dwflags, pexcludeassemblieslist.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProbingAssembliesFromReference)(windows_core::Interface::as_raw(self), dwmachinetype, dwflags, pwzreferenceidentity.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsStronglyNamed)(windows_core::Interface::as_raw(self), pwzassemblyidentity.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsStronglyNamed)(windows_core::Interface::as_raw(self), pwzassemblyidentity.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -346,15 +346,15 @@ windows_core::imp::interface_hierarchy!(ICLRAssemblyReferenceList, windows_core: impl ICLRAssemblyReferenceList { pub unsafe fn IsStringAssemblyReferenceInList(&self, pwzassemblyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsStringAssemblyReferenceInList)(windows_core::Interface::as_raw(self), pwzassemblyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsStringAssemblyReferenceInList)(windows_core::Interface::as_raw(self), pwzassemblyname.param().abi()).ok() } pub unsafe fn IsAssemblyReferenceInList(&self, pname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsAssemblyReferenceInList)(windows_core::Interface::as_raw(self), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsAssemblyReferenceInList)(windows_core::Interface::as_raw(self), pname.param().abi()).ok() } } #[repr(C)] @@ -371,10 +371,10 @@ impl ICLRControl { } pub unsafe fn SetAppDomainManagerType(&self, pwzappdomainmanagerassembly: P0, pwzappdomainmanagertype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppDomainManagerType)(windows_core::Interface::as_raw(self), pwzappdomainmanagerassembly.into_param().abi(), pwzappdomainmanagertype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppDomainManagerType)(windows_core::Interface::as_raw(self), pwzappdomainmanagerassembly.param().abi(), pwzappdomainmanagertype.param().abi()).ok() } } #[repr(C)] @@ -388,9 +388,9 @@ windows_core::imp::interface_hierarchy!(ICLRDebugManager, windows_core::IUnknown impl ICLRDebugManager { pub unsafe fn BeginConnection(&self, dwconnectionid: u32, szconnectionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginConnection)(windows_core::Interface::as_raw(self), dwconnectionid, szconnectionname.into_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), id, ppclrtask.len().try_into().unwrap(), core::mem::transmute(ppclrtask.as_ptr())).ok() @@ -437,16 +437,16 @@ windows_core::imp::interface_hierarchy!(ICLRDebugging, windows_core::IUnknown); impl ICLRDebugging { pub unsafe fn OpenVirtualProcess(&self, modulebaseaddress: u64, pdatatarget: P0, plibraryprovider: P1, pmaxdebuggersupportedversion: *const CLR_DEBUGGING_VERSION, riidprocess: *const windows_core::GUID, ppprocess: *mut Option, pversion: *mut CLR_DEBUGGING_VERSION, pdwflags: *mut CLR_DEBUGGING_PROCESS_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenVirtualProcess)(windows_core::Interface::as_raw(self), modulebaseaddress, pdatatarget.into_param().abi(), plibraryprovider.into_param().abi(), pmaxdebuggersupportedversion, riidprocess, core::mem::transmute(ppprocess), pversion, 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), pversion, pdwflags).ok() } pub unsafe fn CanUnloadNow(&self, hmodule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CanUnloadNow)(windows_core::Interface::as_raw(self), hmodule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CanUnloadNow)(windows_core::Interface::as_raw(self), hmodule.param().abi()).ok() } } #[repr(C)] @@ -460,10 +460,10 @@ windows_core::imp::interface_hierarchy!(ICLRDebuggingLibraryProvider, windows_co impl ICLRDebuggingLibraryProvider { pub unsafe fn ProvideLibrary(&self, pwszfilename: P0, dwtimestamp: u32, dwsizeofimage: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProvideLibrary)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi(), dwtimestamp, 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)] @@ -476,10 +476,10 @@ windows_core::imp::interface_hierarchy!(ICLRDomainManager, windows_core::IUnknow impl ICLRDomainManager { pub unsafe fn SetAppDomainManagerType(&self, wszappdomainmanagerassembly: P0, wszappdomainmanagertype: P1, dwinitializedomainflags: EInitializeNewDomainFlags) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppDomainManagerType)(windows_core::Interface::as_raw(self), wszappdomainmanagerassembly.into_param().abi(), wszappdomainmanagertype.into_param().abi(), 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), nproperties, pwszpropertynames, pwszpropertyvalues).ok() @@ -557,16 +557,16 @@ windows_core::imp::interface_hierarchy!(ICLRHostBindingPolicyManager, windows_co impl ICLRHostBindingPolicyManager { pub unsafe fn ModifyApplicationPolicy(&self, pwzsourceassemblyidentity: P0, pwztargetassemblyidentity: P1, pbapplicationpolicy: *const u8, cbapppolicysize: u32, dwpolicymodifyflags: u32, pbnewapplicationpolicy: *mut u8, pcbnewapppolicysize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifyApplicationPolicy)(windows_core::Interface::as_raw(self), pwzsourceassemblyidentity.into_param().abi(), pwztargetassemblyidentity.into_param().abi(), pbapplicationpolicy, cbapppolicysize, dwpolicymodifyflags, pbnewapplicationpolicy, pcbnewapppolicysize).ok() + (windows_core::Interface::vtable(self).ModifyApplicationPolicy)(windows_core::Interface::as_raw(self), pwzsourceassemblyidentity.param().abi(), pwztargetassemblyidentity.param().abi(), pbapplicationpolicy, cbapppolicysize, dwpolicymodifyflags, pbnewapplicationpolicy, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluatePolicy)(windows_core::Interface::as_raw(self), pwzreferenceidentity.into_param().abi(), pbapplicationpolicy, cbapppolicysize, core::mem::transmute(pwzpostpolicyreferenceidentity), pcchpostpolicyreferenceidentity, pdwpoliciesapplied).ok() + (windows_core::Interface::vtable(self).EvaluatePolicy)(windows_core::Interface::as_raw(self), pwzreferenceidentity.param().abi(), pbapplicationpolicy, cbapppolicysize, core::mem::transmute(pwzpostpolicyreferenceidentity), pcchpostpolicyreferenceidentity, pdwpoliciesapplied).ok() } } #[repr(C)] @@ -620,17 +620,17 @@ windows_core::imp::interface_hierarchy!(ICLRMetaHost, windows_core::IUnknown); impl ICLRMetaHost { pub unsafe fn GetRuntime(&self, pwzversion: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetRuntime)(windows_core::Interface::as_raw(self), pwzversion.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRuntime)(windows_core::Interface::as_raw(self), pwzversion.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetVersionFromFile(&self, pwzfilepath: P0, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVersionFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), core::mem::transmute(pwzbuffer), pcchbuffer).ok() + (windows_core::Interface::vtable(self).GetVersionFromFile)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(pwzbuffer), pcchbuffer).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateInstalledRuntimes(&self) -> windows_core::Result { @@ -640,10 +640,10 @@ impl ICLRMetaHost { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateLoadedRuntimes(&self, hndprocess: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateLoadedRuntimes)(windows_core::Interface::as_raw(self), hndprocess.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateLoadedRuntimes)(windows_core::Interface::as_raw(self), hndprocess.param().abi(), &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), pcallbackfunction).ok() @@ -682,12 +682,12 @@ impl ICLRMetaHostPolicy { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRequestedRuntime(&self, dwpolicyflags: METAHOST_POLICY_FLAGS, pwzbinary: P0, pcfgstream: P1, pwzversion: windows_core::PWSTR, pcchversion: *mut u32, pwzimageversion: windows_core::PWSTR, pcchimageversion: *mut u32, pdwconfigflags: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetRequestedRuntime)(windows_core::Interface::as_raw(self), dwpolicyflags, pwzbinary.into_param().abi(), pcfgstream.into_param().abi(), core::mem::transmute(pwzversion), pcchversion, core::mem::transmute(pwzimageversion), pcchimageversion, 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), pcchversion, core::mem::transmute(pwzimageversion), pcchimageversion, pdwconfigflags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -703,15 +703,15 @@ windows_core::imp::interface_hierarchy!(ICLROnEventManager, windows_core::IUnkno impl ICLROnEventManager { pub unsafe fn RegisterActionOnEvent(&self, event: EClrEvent, paction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterActionOnEvent)(windows_core::Interface::as_raw(self), event, paction.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterActionOnEvent)(windows_core::Interface::as_raw(self), event, paction.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterActionOnEvent)(windows_core::Interface::as_raw(self), event, paction.param().abi()).ok() } } #[repr(C)] @@ -769,9 +769,9 @@ windows_core::imp::interface_hierarchy!(ICLRProfiling, windows_core::IUnknown); impl ICLRProfiling { pub unsafe fn AttachProfiler(&self, dwprofileeprocessid: u32, dwmillisecondsmax: u32, pclsidprofiler: *const windows_core::GUID, wszprofilerpath: P0, pvclientdata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachProfiler)(windows_core::Interface::as_raw(self), dwprofileeprocessid, dwmillisecondsmax, pclsidprofiler, wszprofilerpath.into_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)] @@ -802,9 +802,9 @@ impl ICLRRuntimeHost { } pub unsafe fn SetHostControl(&self, phostcontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHostControl)(windows_core::Interface::as_raw(self), phostcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHostControl)(windows_core::Interface::as_raw(self), phostcontrol.param().abi()).ok() } pub unsafe fn GetCLRControl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -812,9 +812,9 @@ impl ICLRRuntimeHost { } pub unsafe fn UnloadAppDomain(&self, dwappdomainid: u32, fwaituntildone: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadAppDomain)(windows_core::Interface::as_raw(self), dwappdomainid, fwaituntildone.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnloadAppDomain)(windows_core::Interface::as_raw(self), dwappdomainid, fwaituntildone.param().abi()).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), dwappdomainid, pcallback, cookie).ok() @@ -825,20 +825,20 @@ impl ICLRRuntimeHost { } pub unsafe fn ExecuteApplication(&self, pwzappfullname: P0, dwmanifestpaths: u32, ppwzmanifestpaths: *const windows_core::PCWSTR, dwactivationdata: u32, ppwzactivationdata: *const windows_core::PCWSTR) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecuteApplication)(windows_core::Interface::as_raw(self), pwzappfullname.into_param().abi(), dwmanifestpaths, ppwzmanifestpaths, dwactivationdata, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecuteInDefaultAppDomain)(windows_core::Interface::as_raw(self), pwzassemblypath.into_param().abi(), pwztypename.into_param().abi(), pwzmethodname.into_param().abi(), pwzargument.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExecuteInDefaultAppDomain)(windows_core::Interface::as_raw(self), pwzassemblypath.param().abi(), pwztypename.param().abi(), pwzmethodname.param().abi(), pwzargument.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -865,27 +865,27 @@ impl ICLRRuntimeInfo { } pub unsafe fn IsLoaded(&self, hndprocess: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsLoaded)(windows_core::Interface::as_raw(self), hndprocess.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsLoaded)(windows_core::Interface::as_raw(self), hndprocess.param().abi(), &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), iresourceid, core::mem::transmute(pwzbuffer), pcchbuffer, ilocaleid).ok() } pub unsafe fn LoadLibraryA(&self, pwzdllname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadLibraryA)(windows_core::Interface::as_raw(self), pwzdllname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LoadLibraryA)(windows_core::Interface::as_raw(self), pwzdllname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetProcAddress(&self, pszprocname: P0) -> windows_core::Result<*mut core::ffi::c_void> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProcAddress)(windows_core::Interface::as_raw(self), pszprocname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProcAddress)(windows_core::Interface::as_raw(self), pszprocname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetInterface(&self, rclsid: *const windows_core::GUID) -> windows_core::Result where @@ -900,9 +900,9 @@ impl ICLRRuntimeInfo { } pub unsafe fn SetDefaultStartupFlags(&self, dwstartupflags: u32, pwzhostconfigfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultStartupFlags)(windows_core::Interface::as_raw(self), dwstartupflags, pwzhostconfigfile.into_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: windows_core::PWSTR, pcchhostconfigfile: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetDefaultStartupFlags)(windows_core::Interface::as_raw(self), pdwstartupflags, core::mem::transmute(pwzhostconfigfile), pcchhostconfigfile).ok() @@ -935,62 +935,62 @@ windows_core::imp::interface_hierarchy!(ICLRStrongName, windows_core::IUnknown); impl ICLRStrongName { pub unsafe fn GetHashFromAssemblyFile(&self, pszfilepath: P0, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetHashFromAssemblyFile)(windows_core::Interface::as_raw(self), pszfilepath.into_param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() + (windows_core::Interface::vtable(self).GetHashFromAssemblyFile)(windows_core::Interface::as_raw(self), pszfilepath.param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() } pub unsafe fn GetHashFromAssemblyFileW(&self, pwzfilepath: P0, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetHashFromAssemblyFileW)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() + (windows_core::Interface::vtable(self).GetHashFromAssemblyFileW)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), 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), pbblob, cchblob, pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() } pub unsafe fn GetHashFromFile(&self, pszfilepath: P0, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetHashFromFile)(windows_core::Interface::as_raw(self), pszfilepath.into_param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() + (windows_core::Interface::vtable(self).GetHashFromFile)(windows_core::Interface::as_raw(self), pszfilepath.param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() } pub unsafe fn GetHashFromFileW(&self, pwzfilepath: P0, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetHashFromFileW)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() + (windows_core::Interface::vtable(self).GetHashFromFileW)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() } pub unsafe fn GetHashFromHandle(&self, hfile: P0, pihashalg: *mut u32, pbhash: &mut [u8], pchhash: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetHashFromHandle)(windows_core::Interface::as_raw(self), hfile.into_param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() + (windows_core::Interface::vtable(self).GetHashFromHandle)(windows_core::Interface::as_raw(self), hfile.param().abi(), pihashalg, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), pchhash).ok() } pub unsafe fn StrongNameCompareAssemblies(&self, pwzassembly1: P0, pwzassembly2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameCompareAssemblies)(windows_core::Interface::as_raw(self), pwzassembly1.into_param().abi(), pwzassembly2.into_param().abi(), &mut result__).map(|| result__) + (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), pbmemory).ok() } pub unsafe fn StrongNameGetBlob(&self, pwzfilepath: P0, pbblob: *mut u8, pcbblob: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameGetBlob)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), pbblob, pcbblob).ok() + (windows_core::Interface::vtable(self).StrongNameGetBlob)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), pbblob, pcbblob).ok() } pub unsafe fn StrongNameGetBlobFromImage(&self, pbbase: &[u8], pbblob: *mut u8, pcbblob: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StrongNameGetBlobFromImage)(windows_core::Interface::as_raw(self), core::mem::transmute(pbbase.as_ptr()), pbbase.len().try_into().unwrap(), pbblob, pcbblob).ok() } pub unsafe fn StrongNameGetPublicKey(&self, pwzkeycontainer: P0, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameGetPublicKey)(windows_core::Interface::as_raw(self), pwzkeycontainer.into_param().abi(), pbkeyblob, cbkeyblob, ppbpublickeyblob, pcbpublickeyblob).ok() + (windows_core::Interface::vtable(self).StrongNameGetPublicKey)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), pbkeyblob, cbkeyblob, ppbpublickeyblob, pcbpublickeyblob).ok() } pub unsafe fn StrongNameHashSize(&self, ulhashalg: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -998,59 +998,59 @@ impl ICLRStrongName { } pub unsafe fn StrongNameKeyDelete(&self, pwzkeycontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameKeyDelete)(windows_core::Interface::as_raw(self), pwzkeycontainer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StrongNameKeyDelete)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi()).ok() } pub unsafe fn StrongNameKeyGen(&self, pwzkeycontainer: P0, dwflags: u32, ppbkeyblob: *mut *mut u8, pcbkeyblob: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameKeyGen)(windows_core::Interface::as_raw(self), pwzkeycontainer.into_param().abi(), dwflags, ppbkeyblob, pcbkeyblob).ok() + (windows_core::Interface::vtable(self).StrongNameKeyGen)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), dwflags, ppbkeyblob, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameKeyGenEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.into_param().abi(), dwflags, dwkeysize, ppbkeyblob, pcbkeyblob).ok() + (windows_core::Interface::vtable(self).StrongNameKeyGenEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), dwflags, dwkeysize, ppbkeyblob, pcbkeyblob).ok() } pub unsafe fn StrongNameKeyInstall(&self, pwzkeycontainer: P0, pbkeyblob: *const u8, cbkeyblob: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameKeyInstall)(windows_core::Interface::as_raw(self), pwzkeycontainer.into_param().abi(), pbkeyblob, 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameSignatureGeneration)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), pwzkeycontainer.into_param().abi(), pbkeyblob, cbkeyblob, ppbsignatureblob, pcbsignatureblob).ok() + (windows_core::Interface::vtable(self).StrongNameSignatureGeneration)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), pwzkeycontainer.param().abi(), pbkeyblob, cbkeyblob, ppbsignatureblob, 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameSignatureGenerationEx)(windows_core::Interface::as_raw(self), wszfilepath.into_param().abi(), wszkeycontainer.into_param().abi(), pbkeyblob, cbkeyblob, ppbsignatureblob, pcbsignatureblob, dwflags).ok() + (windows_core::Interface::vtable(self).StrongNameSignatureGenerationEx)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), wszkeycontainer.param().abi(), pbkeyblob, cbkeyblob, ppbsignatureblob, 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), pbpublickeyblob, cbpublickeyblob, pcbsize).ok() } pub unsafe fn StrongNameSignatureVerification(&self, pwzfilepath: P0, dwinflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerification)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), 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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), fforceverification.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), fforceverification.param().abi(), &mut result__).map(|| result__) } pub unsafe fn StrongNameSignatureVerificationFromImage(&self, pbbase: *const u8, dwlength: u32, dwinflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1058,15 +1058,15 @@ impl ICLRStrongName { } pub unsafe fn StrongNameTokenFromAssembly(&self, pwzfilepath: P0, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameTokenFromAssembly)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), ppbstrongnametoken, pcbstrongnametoken).ok() + (windows_core::Interface::vtable(self).StrongNameTokenFromAssembly)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), ppbstrongnametoken, pcbstrongnametoken).ok() } pub unsafe fn StrongNameTokenFromAssemblyEx(&self, pwzfilepath: P0, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameTokenFromAssemblyEx)(windows_core::Interface::as_raw(self), pwzfilepath.into_param().abi(), ppbstrongnametoken, pcbstrongnametoken, ppbpublickeyblob, pcbpublickeyblob).ok() + (windows_core::Interface::vtable(self).StrongNameTokenFromAssemblyEx)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), ppbstrongnametoken, pcbstrongnametoken, ppbpublickeyblob, 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), pbpublickeyblob, cbpublickeyblob, ppbstrongnametoken, pcbstrongnametoken).ok() @@ -1106,17 +1106,17 @@ windows_core::imp::interface_hierarchy!(ICLRStrongName2, windows_core::IUnknown) impl ICLRStrongName2 { pub unsafe fn StrongNameGetPublicKeyEx(&self, pwzkeycontainer: P0, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32, uhashalgid: u32, ureserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameGetPublicKeyEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.into_param().abi(), pbkeyblob, cbkeyblob, ppbpublickeyblob, pcbpublickeyblob, uhashalgid, ureserved).ok() + (windows_core::Interface::vtable(self).StrongNameGetPublicKeyEx)(windows_core::Interface::as_raw(self), pwzkeycontainer.param().abi(), pbkeyblob, cbkeyblob, ppbpublickeyblob, pcbpublickeyblob, uhashalgid, ureserved).ok() } pub unsafe fn StrongNameSignatureVerificationEx2(&self, wszfilepath: P0, fforceverification: P1, pbecmapublickey: *const u8, cbecmapublickey: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx2)(windows_core::Interface::as_raw(self), wszfilepath.into_param().abi(), fforceverification.into_param().abi(), pbecmapublickey, cbecmapublickey, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx2)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), fforceverification.param().abi(), pbecmapublickey, cbecmapublickey, &mut result__).map(|| result__) } } #[repr(C)] @@ -1130,21 +1130,21 @@ windows_core::imp::interface_hierarchy!(ICLRStrongName3, windows_core::IUnknown) impl ICLRStrongName3 { pub unsafe fn StrongNameDigestGenerate(&self, wszfilepath: P0, ppbdigestblob: *mut *mut u8, pcbdigestblob: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameDigestGenerate)(windows_core::Interface::as_raw(self), wszfilepath.into_param().abi(), ppbdigestblob, pcbdigestblob, dwflags).ok() + (windows_core::Interface::vtable(self).StrongNameDigestGenerate)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), ppbdigestblob, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameDigestSign)(windows_core::Interface::as_raw(self), wszkeycontainer.into_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, ppbsignatureblob, pcbsignatureblob, 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, ppbsignatureblob, pcbsignatureblob, dwflags).ok() } pub unsafe fn StrongNameDigestEmbed(&self, wszfilepath: P0, pbsignatureblob: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StrongNameDigestEmbed)(windows_core::Interface::as_raw(self), wszfilepath.into_param().abi(), core::mem::transmute(pbsignatureblob.as_ptr()), pbsignatureblob.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).StrongNameDigestEmbed)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), core::mem::transmute(pbsignatureblob.as_ptr()), pbsignatureblob.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -1186,9 +1186,9 @@ windows_core::imp::interface_hierarchy!(ICLRTask, windows_core::IUnknown); impl ICLRTask { pub unsafe fn SwitchIn(&self, threadhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SwitchIn)(windows_core::Interface::as_raw(self), threadhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SwitchIn)(windows_core::Interface::as_raw(self), threadhandle.param().abi()).ok() } pub unsafe fn SwitchOut(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SwitchOut)(windows_core::Interface::as_raw(self)).ok() @@ -1199,9 +1199,9 @@ impl ICLRTask { } pub unsafe fn Reset(&self, ffull: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), ffull.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self), ffull.param().abi()).ok() } pub unsafe fn ExitTask(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExitTask)(windows_core::Interface::as_raw(self)).ok() @@ -1247,9 +1247,9 @@ windows_core::imp::interface_hierarchy!(ICLRTask2, windows_core::IUnknown, ICLRT impl ICLRTask2 { pub unsafe fn SwitchIn(&self, threadhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SwitchIn)(windows_core::Interface::as_raw(self), threadhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SwitchIn)(windows_core::Interface::as_raw(self), threadhandle.param().abi()).ok() } pub unsafe fn SwitchOut(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SwitchOut)(windows_core::Interface::as_raw(self)).ok() @@ -1260,9 +1260,9 @@ impl ICLRTask2 { } pub unsafe fn Reset(&self, ffull: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), ffull.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Reset)(windows_core::Interface::as_raw(self), ffull.param().abi()).ok() } pub unsafe fn ExitTask(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExitTask)(windows_core::Interface::as_raw(self)).ok() @@ -1352,21 +1352,21 @@ windows_core::imp::interface_hierarchy!(ICorConfiguration, windows_core::IUnknow impl ICorConfiguration { pub unsafe fn SetGCThreadControl(&self, pgcthreadcontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGCThreadControl)(windows_core::Interface::as_raw(self), pgcthreadcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGCThreadControl)(windows_core::Interface::as_raw(self), pgcthreadcontrol.param().abi()).ok() } pub unsafe fn SetGCHostControl(&self, pgchostcontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGCHostControl)(windows_core::Interface::as_raw(self), pgchostcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGCHostControl)(windows_core::Interface::as_raw(self), pgchostcontrol.param().abi()).ok() } pub unsafe fn SetDebuggerThreadControl(&self, pdebuggerthreadcontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDebuggerThreadControl)(windows_core::Interface::as_raw(self), pdebuggerthreadcontrol.into_param().abi()).ok() + (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), dwspecialthreadid).ok() @@ -1402,10 +1402,10 @@ impl ICorRuntimeHost { } pub unsafe fn MapFile(&self, hfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MapFile)(windows_core::Interface::as_raw(self), hfile.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MapFile)(windows_core::Interface::as_raw(self), hfile.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetConfiguration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1419,11 +1419,11 @@ impl ICorRuntimeHost { } pub unsafe fn CreateDomain(&self, pwzfriendlyname: P0, pidentityarray: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDomain)(windows_core::Interface::as_raw(self), pwzfriendlyname.into_param().abi(), pidentityarray.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDomain)(windows_core::Interface::as_raw(self), pwzfriendlyname.param().abi(), pidentityarray.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultDomain(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1441,12 +1441,12 @@ impl ICorRuntimeHost { } pub unsafe fn CreateDomainEx(&self, pwzfriendlyname: P0, psetup: P1, pevidence: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDomainEx)(windows_core::Interface::as_raw(self), pwzfriendlyname.into_param().abi(), psetup.into_param().abi(), pevidence.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDomainEx)(windows_core::Interface::as_raw(self), pwzfriendlyname.param().abi(), psetup.param().abi(), pevidence.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDomainSetup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1458,9 +1458,9 @@ impl ICorRuntimeHost { } pub unsafe fn UnloadDomain(&self, pappdomain: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadDomain)(windows_core::Interface::as_raw(self), pappdomain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnloadDomain)(windows_core::Interface::as_raw(self), pappdomain.param().abi()).ok() } pub unsafe fn CurrentDomain(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1496,27 +1496,27 @@ impl ICorThreadpool { #[cfg(feature = "Win32_System_Threading")] pub unsafe fn CorRegisterWaitForSingleObject(&self, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: P0, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CorRegisterWaitForSingleObject)(windows_core::Interface::as_raw(self), phnewwaitobject, hwaitobject.into_param().abi(), callback, context, timeout, executeonlyonce.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorRegisterWaitForSingleObject)(windows_core::Interface::as_raw(self), phnewwaitobject, hwaitobject.param().abi(), callback, context, timeout, executeonlyonce.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CorUnregisterWait(&self, hwaitobject: P0, completionevent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CorUnregisterWait)(windows_core::Interface::as_raw(self), hwaitobject.into_param().abi(), completionevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorUnregisterWait)(windows_core::Interface::as_raw(self), hwaitobject.param().abi(), completionevent.param().abi(), &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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CorQueueUserWorkItem)(windows_core::Interface::as_raw(self), function, context, executeonlyonce.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorQueueUserWorkItem)(windows_core::Interface::as_raw(self), function, context, executeonlyonce.param().abi(), &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 { @@ -1525,25 +1525,25 @@ impl ICorThreadpool { } pub unsafe fn CorChangeTimer(&self, timer: P0, duetime: u32, period: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CorChangeTimer)(windows_core::Interface::as_raw(self), timer.into_param().abi(), duetime, period, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorChangeTimer)(windows_core::Interface::as_raw(self), timer.param().abi(), duetime, period, &mut result__).map(|| result__) } pub unsafe fn CorDeleteTimer(&self, timer: P0, completionevent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CorDeleteTimer)(windows_core::Interface::as_raw(self), timer.into_param().abi(), completionevent.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CorDeleteTimer)(windows_core::Interface::as_raw(self), timer.param().abi(), completionevent.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_IO")] pub unsafe fn CorBindIoCompletionCallback(&self, filehandle: P0, callback: super::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CorBindIoCompletionCallback)(windows_core::Interface::as_raw(self), filehandle.into_param().abi(), callback).ok() + (windows_core::Interface::vtable(self).CorBindIoCompletionCallback)(windows_core::Interface::as_raw(self), filehandle.param().abi(), 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 { @@ -1776,9 +1776,9 @@ impl IHostControl { } pub unsafe fn SetAppDomainManager(&self, dwappdomainid: u32, punkappdomainmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppDomainManager)(windows_core::Interface::as_raw(self), dwappdomainid, punkappdomainmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppDomainManager)(windows_core::Interface::as_raw(self), dwappdomainid, punkappdomainmanager.param().abi()).ok() } } #[repr(C)] @@ -1841,9 +1841,9 @@ impl IHostIoCompletionManager { } pub unsafe fn CloseIoCompletionPort(&self, hport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseIoCompletionPort)(windows_core::Interface::as_raw(self), hport.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseIoCompletionPort)(windows_core::Interface::as_raw(self), hport.param().abi()).ok() } pub unsafe fn SetMaxThreads(&self, dwmaxiocompletionthreads: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetMaxThreads)(windows_core::Interface::as_raw(self), dwmaxiocompletionthreads).ok() @@ -1862,19 +1862,19 @@ impl IHostIoCompletionManager { } pub unsafe fn SetCLRIoCompletionManager(&self, pmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCLRIoCompletionManager)(windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() + (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), pvoverlapped).ok() } pub unsafe fn Bind(&self, hport: P0, hhandle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), hport.into_param().abi(), hhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), hport.param().abi(), hhandle.param().abi()).ok() } pub unsafe fn SetMinThreads(&self, dwminiocompletionthreads: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetMinThreads)(windows_core::Interface::as_raw(self), dwminiocompletionthreads).ok() @@ -1964,9 +1964,9 @@ impl IHostMemoryManager { } pub unsafe fn RegisterMemoryNotificationCallback(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterMemoryNotificationCallback)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (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), startaddress, size).ok() @@ -2030,25 +2030,25 @@ windows_core::imp::interface_hierarchy!(IHostSecurityManager, windows_core::IUnk impl IHostSecurityManager { pub unsafe fn ImpersonateLoggedOnUser(&self, htoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImpersonateLoggedOnUser)(windows_core::Interface::as_raw(self), htoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImpersonateLoggedOnUser)(windows_core::Interface::as_raw(self), htoken.param().abi()).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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenThreadToken)(windows_core::Interface::as_raw(self), dwdesiredaccess, bopenasself.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenThreadToken)(windows_core::Interface::as_raw(self), dwdesiredaccess, bopenasself.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetThreadToken(&self, htoken: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThreadToken)(windows_core::Interface::as_raw(self), htoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThreadToken)(windows_core::Interface::as_raw(self), htoken.param().abi()).ok() } pub unsafe fn GetSecurityContext(&self, econtexttype: EContextType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2056,9 +2056,9 @@ impl IHostSecurityManager { } pub unsafe fn SetSecurityContext(&self, econtexttype: EContextType, psecuritycontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityContext)(windows_core::Interface::as_raw(self), econtexttype, psecuritycontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityContext)(windows_core::Interface::as_raw(self), econtexttype, psecuritycontext.param().abi()).ok() } } #[repr(C)] @@ -2093,9 +2093,9 @@ windows_core::imp::interface_hierarchy!(IHostSyncManager, windows_core::IUnknown impl IHostSyncManager { pub unsafe fn SetCLRSyncManager(&self, pmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCLRSyncManager)(windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCLRSyncManager)(windows_core::Interface::as_raw(self), pmanager.param().abi()).ok() } pub unsafe fn CreateCrst(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2111,10 +2111,10 @@ impl IHostSyncManager { } pub unsafe fn CreateManualEvent(&self, binitialstate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateManualEvent)(windows_core::Interface::as_raw(self), binitialstate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateManualEvent)(windows_core::Interface::as_raw(self), binitialstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateMonitorEvent(&self, cookie: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2126,10 +2126,10 @@ impl IHostSyncManager { } pub unsafe fn CreateRWLockReaderEvent(&self, binitialstate: P0, cookie: usize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRWLockReaderEvent)(windows_core::Interface::as_raw(self), binitialstate.into_param().abi(), cookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateRWLockReaderEvent)(windows_core::Interface::as_raw(self), binitialstate.param().abi(), 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__ = std::mem::zeroed(); @@ -2170,9 +2170,9 @@ impl IHostTask { } pub unsafe fn SetCLRTask(&self, pclrtask: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCLRTask)(windows_core::Interface::as_raw(self), pclrtask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCLRTask)(windows_core::Interface::as_raw(self), pclrtask.param().abi()).ok() } } #[repr(C)] @@ -2246,9 +2246,9 @@ impl IHostTaskManager { } pub unsafe fn SetCLRTaskManager(&self, ppmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCLRTaskManager)(windows_core::Interface::as_raw(self), ppmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCLRTaskManager)(windows_core::Interface::as_raw(self), ppmanager.param().abi()).ok() } } #[repr(C)] @@ -2405,9 +2405,9 @@ impl ITypeNameBuilder { } pub unsafe fn AddName(&self, szname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddName)(windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddName)(windows_core::Interface::as_raw(self), szname.param().abi()).ok() } pub unsafe fn AddPointer(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddPointer)(windows_core::Interface::as_raw(self)).ok() @@ -2423,9 +2423,9 @@ impl ITypeNameBuilder { } pub unsafe fn AddAssemblySpec(&self, szassemblyspec: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAssemblySpec)(windows_core::Interface::as_raw(self), szassemblyspec.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAssemblySpec)(windows_core::Interface::as_raw(self), szassemblyspec.param().abi()).ok() } pub unsafe fn ToString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2456,10 +2456,10 @@ windows_core::imp::interface_hierarchy!(ITypeNameFactory, windows_core::IUnknown impl ITypeNameFactory { pub unsafe fn ParseTypeName(&self, szname: P0, perror: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseTypeName)(windows_core::Interface::as_raw(self), szname.into_param().abi(), perror, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseTypeName)(windows_core::Interface::as_raw(self), szname.param().abi(), perror, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTypeNameBuilder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 e2b802a98c..14c357d6f9 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 @@ -1,19 +1,19 @@ #[inline] pub unsafe fn CoGetInterceptor(iidintercepted: *const windows_core::GUID, punkouter: P0, iid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(iidintercepted, punkouter.into_param().abi(), iid, ppv).ok() + CoGetInterceptor(iidintercepted, punkouter.param().abi(), iid, ppv).ok() } #[inline] pub unsafe fn CoGetInterceptorFromTypeInfo(iidintercepted: *const windows_core::GUID, punkouter: P0, typeinfo: P1, iid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(iidintercepted, punkouter.into_param().abi(), typeinfo.into_param().abi(), iid, ppv).ok() + CoGetInterceptorFromTypeInfo(iidintercepted, punkouter.param().abi(), typeinfo.param().abi(), iid, ppv).ok() } windows_core::imp::define_interface!(ICallFrame, ICallFrame_Vtbl, 0xd573b4b0_894e_11d2_b8b6_00c04fb9618a); windows_core::imp::interface_hierarchy!(ICallFrame, windows_core::IUnknown); @@ -52,31 +52,31 @@ impl ICallFrame { } pub unsafe fn Copy(&self, copycontrol: CALLFRAME_COPY, pwalker: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), copycontrol, pwalker.into_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: P3, nullflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Free)(windows_core::Interface::as_raw(self), pframeargsdest.into_param().abi(), pwalkerdestfree.into_param().abi(), pwalkercopy.into_param().abi(), freeflags, pwalkerfree.into_param().abi(), 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: P0, nullflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FreeParam)(windows_core::Interface::as_raw(self), iparam, freeflags, pwalkerfree.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WalkFrame)(windows_core::Interface::as_raw(self), walkwhat, pwalker.into_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__ = std::mem::zeroed(); @@ -124,9 +124,9 @@ windows_core::imp::interface_hierarchy!(ICallFrameEvents, windows_core::IUnknown impl ICallFrameEvents { pub unsafe fn OnCall(&self, pframe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCall)(windows_core::Interface::as_raw(self), pframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCall)(windows_core::Interface::as_raw(self), pframe.param().abi()).ok() } } #[repr(C)] @@ -139,10 +139,10 @@ 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: P0, fout: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnWalkInterface)(windows_core::Interface::as_raw(self), iid, ppvinterface, fin.into_param().abi(), fout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnWalkInterface)(windows_core::Interface::as_raw(self), iid, ppvinterface, fin.param().abi(), fout.param().abi()).ok() } } #[repr(C)] @@ -193,9 +193,9 @@ impl ICallInterceptor { } pub unsafe fn RegisterSink(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterSink)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterSink)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn GetRegisteredSink(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -213,9 +213,9 @@ windows_core::imp::interface_hierarchy!(ICallUnmarshal, windows_core::IUnknown); impl ICallUnmarshal { pub unsafe fn Unmarshal(&self, imethod: u32, pbuffer: &[u8], fforcebuffercopy: P0, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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_param().abi(), datarep, pcontext, 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.param().abi(), datarep, pcontext, 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), imethod, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), ibfirstrelease, datarep, pcontext).ok() 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 a325673220..48b185bbe8 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 @@ -3,85 +3,85 @@ windows_core::imp::interface_hierarchy!(IChannelCredentials, windows_core::IUnkn impl IChannelCredentials { pub unsafe fn SetWindowsCredential(&self, domain: P0, username: P1, password: P2, impersonationlevel: i32, allowntlm: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWindowsCredential)(windows_core::Interface::as_raw(self), domain.into_param().abi(), username.into_param().abi(), password.into_param().abi(), impersonationlevel, allowntlm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWindowsCredential)(windows_core::Interface::as_raw(self), domain.param().abi(), username.param().abi(), password.param().abi(), impersonationlevel, allowntlm.param().abi()).ok() } pub unsafe fn SetUserNameCredential(&self, username: P0, password: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserNameCredential)(windows_core::Interface::as_raw(self), username.into_param().abi(), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserNameCredential)(windows_core::Interface::as_raw(self), username.param().abi(), password.param().abi()).ok() } pub unsafe fn SetClientCertificateFromStore(&self, storelocation: P0, storename: P1, findyype: P2, findvalue: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificateFromStore)(windows_core::Interface::as_raw(self), storelocation.into_param().abi(), storename.into_param().abi(), findyype.into_param().abi(), findvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientCertificateFromStore)(windows_core::Interface::as_raw(self), storelocation.param().abi(), storename.param().abi(), findyype.param().abi(), findvalue.param().abi()).ok() } pub unsafe fn SetClientCertificateFromStoreByName(&self, subjectname: P0, storelocation: P1, storename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificateFromStoreByName)(windows_core::Interface::as_raw(self), subjectname.into_param().abi(), storelocation.into_param().abi(), storename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientCertificateFromStoreByName)(windows_core::Interface::as_raw(self), subjectname.param().abi(), storelocation.param().abi(), storename.param().abi()).ok() } pub unsafe fn SetClientCertificateFromFile(&self, filename: P0, password: P1, keystorageflags: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCertificateFromFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), password.into_param().abi(), keystorageflags.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientCertificateFromFile)(windows_core::Interface::as_raw(self), filename.param().abi(), password.param().abi(), keystorageflags.param().abi()).ok() } pub unsafe fn SetDefaultServiceCertificateFromStore(&self, storelocation: P0, storename: P1, findtype: P2, findvalue: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultServiceCertificateFromStore)(windows_core::Interface::as_raw(self), storelocation.into_param().abi(), storename.into_param().abi(), findtype.into_param().abi(), findvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultServiceCertificateFromStore)(windows_core::Interface::as_raw(self), storelocation.param().abi(), storename.param().abi(), findtype.param().abi(), findvalue.param().abi()).ok() } pub unsafe fn SetDefaultServiceCertificateFromStoreByName(&self, subjectname: P0, storelocation: P1, storename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultServiceCertificateFromStoreByName)(windows_core::Interface::as_raw(self), subjectname.into_param().abi(), storelocation.into_param().abi(), storename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultServiceCertificateFromStoreByName)(windows_core::Interface::as_raw(self), subjectname.param().abi(), storelocation.param().abi(), storename.param().abi()).ok() } pub unsafe fn SetDefaultServiceCertificateFromFile(&self, filename: P0, password: P1, keystorageflags: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultServiceCertificateFromFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), password.into_param().abi(), keystorageflags.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultServiceCertificateFromFile)(windows_core::Interface::as_raw(self), filename.param().abi(), password.param().abi(), keystorageflags.param().abi()).ok() } pub unsafe fn SetServiceCertificateAuthentication(&self, storelocation: P0, revocationmode: P1, certificatevalidationmode: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceCertificateAuthentication)(windows_core::Interface::as_raw(self), storelocation.into_param().abi(), revocationmode.into_param().abi(), certificatevalidationmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceCertificateAuthentication)(windows_core::Interface::as_raw(self), storelocation.param().abi(), revocationmode.param().abi(), certificatevalidationmode.param().abi()).ok() } pub unsafe fn SetIssuedToken(&self, localissueraddres: P0, localissuerbindingtype: P1, localissuerbinding: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIssuedToken)(windows_core::Interface::as_raw(self), localissueraddres.into_param().abi(), localissuerbindingtype.into_param().abi(), localissuerbinding.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIssuedToken)(windows_core::Interface::as_raw(self), localissueraddres.param().abi(), localissuerbindingtype.param().abi(), localissuerbinding.param().abi()).ok() } } #[repr(C)] 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 1d5f88b883..df23df3e97 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 @@ -39,9 +39,9 @@ impl IEventClass { } pub unsafe fn SetEventClassID(&self, bstreventclassid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventClassID)(windows_core::Interface::as_raw(self), bstreventclassid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventClassID)(windows_core::Interface::as_raw(self), bstreventclassid.param().abi()).ok() } pub unsafe fn EventClassName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -49,9 +49,9 @@ impl IEventClass { } pub unsafe fn SetEventClassName(&self, bstreventclassname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventClassName)(windows_core::Interface::as_raw(self), bstreventclassname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventClassName)(windows_core::Interface::as_raw(self), bstreventclassname.param().abi()).ok() } pub unsafe fn OwnerSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -59,9 +59,9 @@ impl IEventClass { } pub unsafe fn SetOwnerSID(&self, bstrownersid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.param().abi()).ok() } pub unsafe fn FiringInterfaceID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -69,9 +69,9 @@ impl IEventClass { } pub unsafe fn SetFiringInterfaceID(&self, bstrfiringinterfaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFiringInterfaceID)(windows_core::Interface::as_raw(self), bstrfiringinterfaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFiringInterfaceID)(windows_core::Interface::as_raw(self), bstrfiringinterfaceid.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -79,9 +79,9 @@ impl IEventClass { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn CustomConfigCLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -89,9 +89,9 @@ impl IEventClass { } pub unsafe fn SetCustomConfigCLSID(&self, bstrcustomconfigclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCustomConfigCLSID)(windows_core::Interface::as_raw(self), bstrcustomconfigclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCustomConfigCLSID)(windows_core::Interface::as_raw(self), bstrcustomconfigclsid.param().abi()).ok() } pub unsafe fn TypeLib(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -99,9 +99,9 @@ impl IEventClass { } pub unsafe fn SetTypeLib(&self, bstrtypelib: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTypeLib)(windows_core::Interface::as_raw(self), bstrtypelib.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTypeLib)(windows_core::Interface::as_raw(self), bstrtypelib.param().abi()).ok() } } #[repr(C)] @@ -131,9 +131,9 @@ impl IEventClass2 { } pub unsafe fn SetEventClassID(&self, bstreventclassid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventClassID)(windows_core::Interface::as_raw(self), bstreventclassid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventClassID)(windows_core::Interface::as_raw(self), bstreventclassid.param().abi()).ok() } pub unsafe fn EventClassName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -141,9 +141,9 @@ impl IEventClass2 { } pub unsafe fn SetEventClassName(&self, bstreventclassname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEventClassName)(windows_core::Interface::as_raw(self), bstreventclassname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEventClassName)(windows_core::Interface::as_raw(self), bstreventclassname.param().abi()).ok() } pub unsafe fn OwnerSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -151,9 +151,9 @@ impl IEventClass2 { } pub unsafe fn SetOwnerSID(&self, bstrownersid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.param().abi()).ok() } pub unsafe fn FiringInterfaceID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -161,9 +161,9 @@ impl IEventClass2 { } pub unsafe fn SetFiringInterfaceID(&self, bstrfiringinterfaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFiringInterfaceID)(windows_core::Interface::as_raw(self), bstrfiringinterfaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFiringInterfaceID)(windows_core::Interface::as_raw(self), bstrfiringinterfaceid.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -171,9 +171,9 @@ impl IEventClass2 { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn CustomConfigCLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -181,9 +181,9 @@ impl IEventClass2 { } pub unsafe fn SetCustomConfigCLSID(&self, bstrcustomconfigclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCustomConfigCLSID)(windows_core::Interface::as_raw(self), bstrcustomconfigclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCustomConfigCLSID)(windows_core::Interface::as_raw(self), bstrcustomconfigclsid.param().abi()).ok() } pub unsafe fn TypeLib(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -191,9 +191,9 @@ impl IEventClass2 { } pub unsafe fn SetTypeLib(&self, bstrtypelib: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTypeLib)(windows_core::Interface::as_raw(self), bstrtypelib.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTypeLib)(windows_core::Interface::as_raw(self), bstrtypelib.param().abi()).ok() } pub unsafe fn PublisherID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -201,9 +201,9 @@ impl IEventClass2 { } pub unsafe fn SetPublisherID(&self, bstrpublisherid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPublisherID)(windows_core::Interface::as_raw(self), bstrpublisherid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPublisherID)(windows_core::Interface::as_raw(self), bstrpublisherid.param().abi()).ok() } pub unsafe fn MultiInterfacePublisherFilterCLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -211,9 +211,9 @@ impl IEventClass2 { } pub unsafe fn SetMultiInterfacePublisherFilterCLSID(&self, bstrpubfilclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultiInterfacePublisherFilterCLSID)(windows_core::Interface::as_raw(self), bstrpubfilclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMultiInterfacePublisherFilterCLSID)(windows_core::Interface::as_raw(self), bstrpubfilclsid.param().abi()).ok() } pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -221,9 +221,9 @@ impl IEventClass2 { } pub unsafe fn SetAllowInprocActivation(&self, fallowinprocactivation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.param().abi()).ok() } pub unsafe fn FireInParallel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -231,9 +231,9 @@ impl IEventClass2 { } pub unsafe fn SetFireInParallel(&self, ffireinparallel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFireInParallel)(windows_core::Interface::as_raw(self), ffireinparallel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFireInParallel)(windows_core::Interface::as_raw(self), ffireinparallel.param().abi()).ok() } } #[repr(C)] @@ -253,10 +253,10 @@ windows_core::imp::interface_hierarchy!(IEventControl, windows_core::IUnknown, s impl IEventControl { pub unsafe fn SetPublisherFilter(&self, methodname: P0, ppublisherfilter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPublisherFilter)(windows_core::Interface::as_raw(self), methodname.into_param().abi(), ppublisherfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPublisherFilter)(windows_core::Interface::as_raw(self), methodname.param().abi(), ppublisherfilter.param().abi()).ok() } pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -264,25 +264,25 @@ impl IEventControl { } pub unsafe fn SetAllowInprocActivation(&self, fallowinprocactivation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.param().abi()).ok() } pub unsafe fn GetSubscriptions(&self, methodname: P0, optionalcriteria: P1, optionalerrorindex: *const i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), methodname.into_param().abi(), optionalcriteria.into_param().abi(), optionalerrorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), methodname.param().abi(), optionalcriteria.param().abi(), optionalerrorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultQuery(&self, methodname: P0, criteria: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetDefaultQuery)(windows_core::Interface::as_raw(self), methodname.into_param().abi(), criteria.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetDefaultQuery)(windows_core::Interface::as_raw(self), methodname.param().abi(), criteria.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -299,21 +299,21 @@ windows_core::imp::interface_hierarchy!(IEventObjectChange, windows_core::IUnkno impl IEventObjectChange { pub unsafe fn ChangedSubscription(&self, changetype: EOC_ChangeType, bstrsubscriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangedSubscription)(windows_core::Interface::as_raw(self), changetype, bstrsubscriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangedSubscription)(windows_core::Interface::as_raw(self), changetype, bstrsubscriptionid.param().abi()).ok() } pub unsafe fn ChangedEventClass(&self, changetype: EOC_ChangeType, bstreventclassid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangedEventClass)(windows_core::Interface::as_raw(self), changetype, bstreventclassid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangedEventClass)(windows_core::Interface::as_raw(self), changetype, bstreventclassid.param().abi()).ok() } pub unsafe fn ChangedPublisher(&self, changetype: EOC_ChangeType, bstrpublisherid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangedPublisher)(windows_core::Interface::as_raw(self), changetype, bstrpublisherid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ChangedPublisher)(windows_core::Interface::as_raw(self), changetype, bstrpublisherid.param().abi()).ok() } } #[repr(C)] @@ -348,10 +348,10 @@ impl IEventObjectCollection { } pub unsafe fn get_Item(&self, objectid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), objectid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), objectid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -363,15 +363,15 @@ impl IEventObjectCollection { } pub unsafe fn Add(&self, item: *const windows_core::VARIANT, objectid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(item), objectid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), core::mem::transmute(item), objectid.param().abi()).ok() } pub unsafe fn Remove(&self, objectid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), objectid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), objectid.param().abi()).ok() } } #[repr(C)] @@ -393,9 +393,9 @@ impl IEventProperty { } pub unsafe fn SetName(&self, propertyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), propertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), propertyname.param().abi()).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -422,9 +422,9 @@ impl IEventPublisher { } pub unsafe fn SetPublisherID(&self, bstrpublisherid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPublisherID)(windows_core::Interface::as_raw(self), bstrpublisherid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPublisherID)(windows_core::Interface::as_raw(self), bstrpublisherid.param().abi()).ok() } pub unsafe fn PublisherName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -432,9 +432,9 @@ impl IEventPublisher { } pub unsafe fn SetPublisherName(&self, bstrpublishername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPublisherName)(windows_core::Interface::as_raw(self), bstrpublishername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPublisherName)(windows_core::Interface::as_raw(self), bstrpublishername.param().abi()).ok() } pub unsafe fn PublisherType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -442,9 +442,9 @@ impl IEventPublisher { } pub unsafe fn SetPublisherType(&self, bstrpublishertype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPublisherType)(windows_core::Interface::as_raw(self), bstrpublishertype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPublisherType)(windows_core::Interface::as_raw(self), bstrpublishertype.param().abi()).ok() } pub unsafe fn OwnerSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -452,9 +452,9 @@ impl IEventPublisher { } pub unsafe fn SetOwnerSID(&self, bstrownersid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -462,28 +462,28 @@ impl IEventPublisher { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn GetDefaultProperty(&self, bstrpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDefaultProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutDefaultProperty(&self, bstrpropertyname: P0, propertyvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutDefaultProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), core::mem::transmute(propertyvalue)).ok() + (windows_core::Interface::vtable(self).PutDefaultProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), core::mem::transmute(propertyvalue)).ok() } pub unsafe fn RemoveDefaultProperty(&self, bstrpropertyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveDefaultProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveDefaultProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi()).ok() } pub unsafe fn GetDefaultPropertyCollection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -517,9 +517,9 @@ impl IEventSubscription { } pub unsafe fn SetSubscriptionID(&self, bstrsubscriptionid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubscriptionID)(windows_core::Interface::as_raw(self), bstrsubscriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubscriptionID)(windows_core::Interface::as_raw(self), bstrsubscriptionid.param().abi()).ok() } pub unsafe fn SubscriptionName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -527,9 +527,9 @@ impl IEventSubscription { } pub unsafe fn SetSubscriptionName(&self, bstrsubscriptionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubscriptionName)(windows_core::Interface::as_raw(self), bstrsubscriptionname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubscriptionName)(windows_core::Interface::as_raw(self), bstrsubscriptionname.param().abi()).ok() } pub unsafe fn PublisherID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -537,9 +537,9 @@ impl IEventSubscription { } pub unsafe fn SetPublisherID(&self, bstrpublisherid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPublisherID)(windows_core::Interface::as_raw(self), bstrpublisherid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPublisherID)(windows_core::Interface::as_raw(self), bstrpublisherid.param().abi()).ok() } pub unsafe fn EventClassID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -547,9 +547,9 @@ impl IEventSubscription { } pub unsafe fn SetEventClassID(&self, bstreventclassid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventClassID)(windows_core::Interface::as_raw(self), bstreventclassid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventClassID)(windows_core::Interface::as_raw(self), bstreventclassid.param().abi()).ok() } pub unsafe fn MethodName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -557,9 +557,9 @@ impl IEventSubscription { } pub unsafe fn SetMethodName(&self, bstrmethodname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMethodName)(windows_core::Interface::as_raw(self), bstrmethodname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMethodName)(windows_core::Interface::as_raw(self), bstrmethodname.param().abi()).ok() } pub unsafe fn SubscriberCLSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -567,9 +567,9 @@ impl IEventSubscription { } pub unsafe fn SetSubscriberCLSID(&self, bstrsubscriberclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubscriberCLSID)(windows_core::Interface::as_raw(self), bstrsubscriberclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubscriberCLSID)(windows_core::Interface::as_raw(self), bstrsubscriberclsid.param().abi()).ok() } pub unsafe fn SubscriberInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -577,9 +577,9 @@ impl IEventSubscription { } pub unsafe fn SetSubscriberInterface(&self, psubscriberinterface: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubscriberInterface)(windows_core::Interface::as_raw(self), psubscriberinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubscriberInterface)(windows_core::Interface::as_raw(self), psubscriberinterface.param().abi()).ok() } pub unsafe fn PerUser(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -587,9 +587,9 @@ impl IEventSubscription { } pub unsafe fn SetPerUser(&self, fperuser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPerUser)(windows_core::Interface::as_raw(self), fperuser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPerUser)(windows_core::Interface::as_raw(self), fperuser.param().abi()).ok() } pub unsafe fn OwnerSID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -597,9 +597,9 @@ impl IEventSubscription { } pub unsafe fn SetOwnerSID(&self, bstrownersid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwnerSID)(windows_core::Interface::as_raw(self), bstrownersid.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -607,9 +607,9 @@ impl IEventSubscription { } pub unsafe fn SetEnabled(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -617,9 +617,9 @@ impl IEventSubscription { } pub unsafe fn SetDescription(&self, bstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bstrdescription.param().abi()).ok() } pub unsafe fn MachineName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -627,28 +627,28 @@ impl IEventSubscription { } pub unsafe fn SetMachineName(&self, bstrmachinename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMachineName)(windows_core::Interface::as_raw(self), bstrmachinename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMachineName)(windows_core::Interface::as_raw(self), bstrmachinename.param().abi()).ok() } pub unsafe fn GetPublisherProperty(&self, bstrpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPublisherProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPublisherProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutPublisherProperty(&self, bstrpropertyname: P0, propertyvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutPublisherProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), core::mem::transmute(propertyvalue)).ok() + (windows_core::Interface::vtable(self).PutPublisherProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), core::mem::transmute(propertyvalue)).ok() } pub unsafe fn RemovePublisherProperty(&self, bstrpropertyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePublisherProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemovePublisherProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi()).ok() } pub unsafe fn GetPublisherPropertyCollection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -656,22 +656,22 @@ impl IEventSubscription { } pub unsafe fn GetSubscriberProperty(&self, bstrpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubscriberProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubscriberProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutSubscriberProperty(&self, bstrpropertyname: P0, propertyvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutSubscriberProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), core::mem::transmute(propertyvalue)).ok() + (windows_core::Interface::vtable(self).PutSubscriberProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), core::mem::transmute(propertyvalue)).ok() } pub unsafe fn RemoveSubscriberProperty(&self, bstrpropertyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSubscriberProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveSubscriberProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi()).ok() } pub unsafe fn GetSubscriberPropertyCollection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -683,9 +683,9 @@ impl IEventSubscription { } pub unsafe fn SetInterfaceID(&self, bstrinterfaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInterfaceID)(windows_core::Interface::as_raw(self), bstrinterfaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInterfaceID)(windows_core::Interface::as_raw(self), bstrinterfaceid.param().abi()).ok() } } #[repr(C)] @@ -731,26 +731,26 @@ windows_core::imp::interface_hierarchy!(IEventSystem, windows_core::IUnknown, su impl IEventSystem { pub unsafe fn Query(&self, progid: P0, querycriteria: P1, errorindex: *mut i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), progid.into_param().abi(), querycriteria.into_param().abi(), errorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), progid.param().abi(), querycriteria.param().abi(), errorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Store(&self, progid: P0, pinterface: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Store)(windows_core::Interface::as_raw(self), progid.into_param().abi(), pinterface.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Store)(windows_core::Interface::as_raw(self), progid.param().abi(), pinterface.param().abi()).ok() } pub unsafe fn Remove(&self, progid: P0, querycriteria: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), progid.into_param().abi(), querycriteria.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), progid.param().abi(), querycriteria.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EventObjectChangeEventClassID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -758,18 +758,18 @@ impl IEventSystem { } pub unsafe fn QueryS(&self, progid: P0, querycriteria: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryS)(windows_core::Interface::as_raw(self), progid.into_param().abi(), querycriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryS)(windows_core::Interface::as_raw(self), progid.param().abi(), querycriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveS(&self, progid: P0, querycriteria: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveS)(windows_core::Interface::as_raw(self), progid.into_param().abi(), querycriteria.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveS)(windows_core::Interface::as_raw(self), progid.param().abi(), querycriteria.param().abi()).ok() } } #[repr(C)] @@ -787,9 +787,9 @@ windows_core::imp::interface_hierarchy!(IFiringControl, windows_core::IUnknown, impl IFiringControl { pub unsafe fn FireSubscription(&self, subscription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireSubscription)(windows_core::Interface::as_raw(self), subscription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FireSubscription)(windows_core::Interface::as_raw(self), subscription.param().abi()).ok() } } #[repr(C)] @@ -802,25 +802,25 @@ windows_core::imp::interface_hierarchy!(IMultiInterfaceEventControl, windows_cor impl IMultiInterfaceEventControl { pub unsafe fn SetMultiInterfacePublisherFilter(&self, classfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultiInterfacePublisherFilter)(windows_core::Interface::as_raw(self), classfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMultiInterfacePublisherFilter)(windows_core::Interface::as_raw(self), classfilter.param().abi()).ok() } pub unsafe fn GetSubscriptions(&self, eventiid: *const windows_core::GUID, bstrmethodname: P0, optionalcriteria: P1, optionalerrorindex: *const i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), eventiid, bstrmethodname.into_param().abi(), optionalcriteria.into_param().abi(), optionalerrorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSubscriptions)(windows_core::Interface::as_raw(self), eventiid, bstrmethodname.param().abi(), optionalcriteria.param().abi(), optionalerrorindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetDefaultQuery(&self, eventiid: *const windows_core::GUID, bstrmethodname: P0, bstrcriteria: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetDefaultQuery)(windows_core::Interface::as_raw(self), eventiid, bstrmethodname.into_param().abi(), bstrcriteria.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetDefaultQuery)(windows_core::Interface::as_raw(self), eventiid, bstrmethodname.param().abi(), bstrcriteria.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -828,9 +828,9 @@ impl IMultiInterfaceEventControl { } pub unsafe fn SetAllowInprocActivation(&self, fallowinprocactivation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.param().abi()).ok() } pub unsafe fn FireInParallel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -838,9 +838,9 @@ impl IMultiInterfaceEventControl { } pub unsafe fn SetFireInParallel(&self, ffireinparallel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFireInParallel)(windows_core::Interface::as_raw(self), ffireinparallel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFireInParallel)(windows_core::Interface::as_raw(self), ffireinparallel.param().abi()).ok() } } #[repr(C)] @@ -859,16 +859,16 @@ windows_core::imp::interface_hierarchy!(IMultiInterfacePublisherFilter, windows_ impl IMultiInterfacePublisherFilter { pub unsafe fn Initialize(&self, peic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), peic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), peic.param().abi()).ok() } pub unsafe fn PrepareToFire(&self, iid: *const windows_core::GUID, methodname: P0, firingcontrol: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareToFire)(windows_core::Interface::as_raw(self), iid, methodname.into_param().abi(), firingcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrepareToFire)(windows_core::Interface::as_raw(self), iid, methodname.param().abi(), firingcontrol.param().abi()).ok() } } #[repr(C)] @@ -882,17 +882,17 @@ windows_core::imp::interface_hierarchy!(IPublisherFilter, windows_core::IUnknown impl IPublisherFilter { pub unsafe fn Initialize(&self, methodname: P0, dispuserdefined: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), methodname.into_param().abi(), dispuserdefined.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), methodname.param().abi(), dispuserdefined.param().abi()).ok() } pub unsafe fn PrepareToFire(&self, methodname: P0, firingcontrol: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareToFire)(windows_core::Interface::as_raw(self), methodname.into_param().abi(), firingcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrepareToFire)(windows_core::Interface::as_raw(self), methodname.param().abi(), 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 80b13b749c..a3779fad59 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 @@ -81,81 +81,81 @@ pub unsafe fn CLIPFORMAT_UserUnmarshal64(param0: *const u32, param1: *const u8, #[inline] pub unsafe fn CoGetMarshalSizeMax(pulsize: *mut u32, riid: *const windows_core::GUID, punk: P0, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(pulsize, riid, punk.into_param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags).ok() + CoGetMarshalSizeMax(pulsize, riid, punk.param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags).ok() } #[inline] pub unsafe fn CoGetStandardMarshal(riid: *const windows_core::GUID, punk: P0, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CoGetStandardMarshal(riid, punk.into_param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetStandardMarshal(riid, punk.param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoGetStdMarshalEx(punkouter: P0, smexflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CoGetStdMarshalEx(punkouter.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), hresult).ok() + CoMarshalHresult(pstm.param().abi(), hresult).ok() } #[inline] pub unsafe fn CoMarshalInterThreadInterfaceInStream(riid: *const windows_core::GUID, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CoMarshalInterThreadInterfaceInStream(riid, punk.into_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: P1, dwdestcontext: u32, pvdestcontext: Option<*const core::ffi::c_void>, mshlflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), riid, punk.into_param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags).ok() + CoMarshalInterface(pstm.param().abi(), riid, punk.param().abi(), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags).ok() } #[inline] pub unsafe fn CoReleaseMarshalData(pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoReleaseMarshalData(pstm : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoReleaseMarshalData(pstm.into_param().abi()).ok() + CoReleaseMarshalData(pstm.param().abi()).ok() } #[inline] pub unsafe fn CoUnmarshalHresult(pstm: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoUnmarshalHresult(pstm : * mut core::ffi::c_void, phresult : *mut windows_core::HRESULT) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CoUnmarshalHresult(pstm.into_param().abi(), &mut result__).map(|| result__) + CoUnmarshalHresult(pstm.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CoUnmarshalInterface(pstm: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("ole32.dll" "system" fn CoUnmarshalInterface(pstm : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - CoUnmarshalInterface(pstm.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoUnmarshalInterface(pstm.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -666,21 +666,21 @@ impl IMarshal { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MarshalInterface)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), riid, core::mem::transmute(pv.unwrap_or(std::ptr::null())), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags).ok() + (windows_core::Interface::vtable(self).MarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), riid, core::mem::transmute(pv.unwrap_or(std::ptr::null())), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnmarshalInterface)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), riid, ppv).ok() + (windows_core::Interface::vtable(self).UnmarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), riid, ppv).ok() } pub unsafe fn ReleaseMarshalData(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseMarshalData)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (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), dwreserved).ok() @@ -709,21 +709,21 @@ impl IMarshal2 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MarshalInterface)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), riid, core::mem::transmute(pv.unwrap_or(std::ptr::null())), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), mshlflags).ok() + (windows_core::Interface::vtable(self).base__.MarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), riid, core::mem::transmute(pv.unwrap_or(std::ptr::null())), dwdestcontext, core::mem::transmute(pvdestcontext.unwrap_or(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnmarshalInterface)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), riid, ppv).ok() + (windows_core::Interface::vtable(self).base__.UnmarshalInterface)(windows_core::Interface::as_raw(self), pstm.param().abi(), riid, ppv).ok() } pub unsafe fn ReleaseMarshalData(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReleaseMarshalData)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.DisconnectObject)(windows_core::Interface::as_raw(self), dwreserved).ok() @@ -750,9 +750,9 @@ impl IMarshalingStream { } pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Commit(&self, grfcommitflags: super::STGC) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Commit)(windows_core::Interface::as_raw(self), grfcommitflags.0 as _).ok() 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 fc4c711e4d..71f3d5dc87 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 @@ -6,50 +6,50 @@ pub unsafe fn ClearPropVariantArray(rgpropvar: &mut [windows_core::PROPVARIANT]) #[inline] pub unsafe fn CoGetInstanceFromFile(pserverinfo: Option<*const super::COSERVERINFO>, pclsid: Option<*const windows_core::GUID>, punkouter: P0, dwclsctx: super::CLSCTX, grfmode: u32, pwszname: P1, presults: &mut [super::MULTI_QI]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(std::ptr::null())), core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), punkouter.into_param().abi(), dwclsctx, grfmode, pwszname.into_param().abi(), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoGetInstanceFromFile(core::mem::transmute(pserverinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), 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: P0, dwclsctx: super::CLSCTX, pstg: P1, presults: &mut [super::MULTI_QI]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(std::ptr::null())), core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), punkouter.into_param().abi(), dwclsctx, pstg.into_param().abi(), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoGetInstanceFromIStorage(core::mem::transmute(pserverinfo.unwrap_or(std::ptr::null())), core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("ole32.dll" "system" fn CoGetInterfaceAndReleaseStream(pstm : * mut core::ffi::c_void, iid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - CoGetInterfaceAndReleaseStream(pstm.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetInterfaceAndReleaseStream(pstm.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateILockBytesOnHGlobal(hglobal: P0, fdeleteonrelease: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CreateILockBytesOnHGlobal(hglobal : super::super::super::Foundation:: HGLOBAL, fdeleteonrelease : super::super::super::Foundation:: BOOL, pplkbyt : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateILockBytesOnHGlobal(hglobal.into_param().abi(), fdeleteonrelease.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateILockBytesOnHGlobal(hglobal.param().abi(), fdeleteonrelease.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateStreamOnHGlobal(hglobal: P0, fdeleteonrelease: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateStreamOnHGlobal(hglobal.into_param().abi(), fdeleteonrelease.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateStreamOnHGlobal(hglobal.param().abi(), fdeleteonrelease.param().abi(), &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<()> { @@ -64,28 +64,28 @@ pub unsafe fn FreePropVariantArray(rgvars: &mut [windows_core::PROPVARIANT]) -> #[inline] pub unsafe fn GetConvertStg(pstg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn GetConvertStg(pstg : * mut core::ffi::c_void) -> windows_core::HRESULT); - GetConvertStg(pstg.into_param().abi()).ok() + GetConvertStg(pstg.param().abi()).ok() } #[inline] pub unsafe fn GetHGlobalFromILockBytes(plkbyt: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn GetHGlobalFromILockBytes(plkbyt : * mut core::ffi::c_void, phglobal : *mut super::super::super::Foundation:: HGLOBAL) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetHGlobalFromILockBytes(plkbyt.into_param().abi(), &mut result__).map(|| result__) + GetHGlobalFromILockBytes(plkbyt.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetHGlobalFromStream(pstm: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn GetHGlobalFromStream(pstm : * mut core::ffi::c_void, phglobal : *mut super::super::super::Foundation:: HGLOBAL) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetHGlobalFromStream(pstm.into_param().abi(), &mut result__).map(|| result__) + GetHGlobalFromStream(pstm.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn InitPropVariantFromBooleanVector(prgf: Option<&[super::super::super::Foundation::BOOL]>) -> windows_core::Result { @@ -156,20 +156,20 @@ pub unsafe fn InitPropVariantFromPropVariantVectorElem(propvarin: *const windows #[inline] pub unsafe fn InitPropVariantFromResource(hinst: P0, id: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromResource(hinst : super::super::super::Foundation:: HINSTANCE, id : u32, ppropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - InitPropVariantFromResource(hinst.into_param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + InitPropVariantFromResource(hinst.param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn InitPropVariantFromStringAsVector(psz: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromStringAsVector(psz : windows_core::PCWSTR, ppropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - InitPropVariantFromStringAsVector(psz.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + InitPropVariantFromStringAsVector(psz.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn InitPropVariantFromStringVector(prgsz: Option<&[windows_core::PCWSTR]>) -> windows_core::Result { @@ -204,47 +204,47 @@ pub unsafe fn InitPropVariantVectorFromPropVariant(propvarsingle: *const windows #[inline] pub unsafe fn OleConvertIStorageToOLESTREAM(pstg: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleConvertIStorageToOLESTREAM(pstg : * mut core::ffi::c_void, lpolestream : *mut OLESTREAM) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - OleConvertIStorageToOLESTREAM(pstg.into_param().abi(), &mut result__).map(|| result__) + OleConvertIStorageToOLESTREAM(pstg.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OleConvertIStorageToOLESTREAMEx(pstg: P0, cfformat: u16, lwidth: i32, lheight: i32, dwsize: u32, pmedium: *const super::STGMEDIUM) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - OleConvertIStorageToOLESTREAMEx(pstg.into_param().abi(), cfformat, lwidth, lheight, dwsize, pmedium, &mut result__).map(|| result__) + OleConvertIStorageToOLESTREAMEx(pstg.param().abi(), cfformat, lwidth, lheight, dwsize, pmedium, &mut result__).map(|| result__) } #[inline] pub unsafe fn OleConvertOLESTREAMToIStorage(lpolestream: *const OLESTREAM, pstg: P0, ptd: *const super::DVTARGETDEVICE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(lpolestream, pstg.into_param().abi(), ptd).ok() + OleConvertOLESTREAMToIStorage(lpolestream, pstg.param().abi(), ptd).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OleConvertOLESTREAMToIStorageEx(polestm: *const OLESTREAM, pstg: P0, pcfformat: *mut u16, plwwidth: *mut i32, plheight: *mut i32, pdwsize: *mut u32, pmedium: *mut super::STGMEDIUM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(polestm, pstg.into_param().abi(), pcfformat, plwwidth, plheight, pdwsize, pmedium).ok() + OleConvertOLESTREAMToIStorageEx(polestm, pstg.param().abi(), pcfformat, plwwidth, plheight, pdwsize, pmedium).ok() } #[inline] pub unsafe fn PropStgNameToFmtId(oszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn PropStgNameToFmtId(oszname : windows_core::PCWSTR, pfmtid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PropStgNameToFmtId(oszname.into_param().abi(), &mut result__).map(|| result__) + PropStgNameToFmtId(oszname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Variant")] #[inline] @@ -357,10 +357,10 @@ pub unsafe fn PropVariantToBooleanVectorAlloc(propvar: *const windows_core::PROP #[inline] pub unsafe fn PropVariantToBooleanWithDefault(propvarin: *const windows_core::PROPVARIANT, fdefault: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PropVariantToBooleanWithDefault(propvarin : *const std::mem::MaybeUninit < windows_core::PROPVARIANT >, fdefault : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - PropVariantToBooleanWithDefault(core::mem::transmute(propvarin), fdefault.into_param().abi()) + PropVariantToBooleanWithDefault(core::mem::transmute(propvarin), fdefault.param().abi()) } #[inline] pub unsafe fn PropVariantToBuffer(propvar: *const windows_core::PROPVARIANT, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { @@ -498,10 +498,10 @@ pub unsafe fn PropVariantToStringVectorAlloc(propvar: *const windows_core::PROPV #[inline] pub unsafe fn PropVariantToStringWithDefault(propvarin: *const windows_core::PROPVARIANT, pszdefault: P0) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PropVariantToStringWithDefault(propvarin : *const std::mem::MaybeUninit < windows_core::PROPVARIANT >, pszdefault : windows_core::PCWSTR) -> windows_core::PCWSTR); - PropVariantToStringWithDefault(core::mem::transmute(propvarin), pszdefault.into_param().abi()) + PropVariantToStringWithDefault(core::mem::transmute(propvarin), pszdefault.param().abi()) } #[inline] pub unsafe fn PropVariantToUInt16(propvarin: *const windows_core::PROPVARIANT) -> windows_core::Result { @@ -584,99 +584,99 @@ where #[inline] pub unsafe fn ReadClassStg(pstg: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn ReadClassStg(pstg : * mut core::ffi::c_void, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - ReadClassStg(pstg.into_param().abi(), &mut result__).map(|| result__) + ReadClassStg(pstg.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn ReadClassStm(pstm: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn ReadClassStm(pstm : * mut core::ffi::c_void, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - ReadClassStm(pstm.into_param().abi(), &mut result__).map(|| result__) + ReadClassStm(pstm.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn ReadFmtUserTypeStg(pstg: P0, pcf: *mut u16, lplpszusertype: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn ReadFmtUserTypeStg(pstg : * mut core::ffi::c_void, pcf : *mut u16, lplpszusertype : *mut windows_core::PWSTR) -> windows_core::HRESULT); - ReadFmtUserTypeStg(pstg.into_param().abi(), pcf, core::mem::transmute(lplpszusertype.unwrap_or(std::ptr::null_mut()))).ok() + ReadFmtUserTypeStg(pstg.param().abi(), pcf, core::mem::transmute(lplpszusertype.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetConvertStg(pstg: P0, fconvert: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn SetConvertStg(pstg : * mut core::ffi::c_void, fconvert : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); - SetConvertStg(pstg.into_param().abi(), fconvert.into_param().abi()).ok() + SetConvertStg(pstg.param().abi(), fconvert.param().abi()).ok() } #[inline] pub unsafe fn StgConvertPropertyToVariant(pprop: *const SERIALIZEDPROPERTYVALUE, codepage: u16, pvar: *mut windows_core::PROPVARIANT, pma: P0) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgConvertPropertyToVariant(pprop : *const SERIALIZEDPROPERTYVALUE, codepage : u16, pvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >, pma : * mut core::ffi::c_void) -> super::super::super::Foundation:: BOOLEAN); - StgConvertPropertyToVariant(pprop, codepage, core::mem::transmute(pvar), pma.into_param().abi()) + StgConvertPropertyToVariant(pprop, codepage, core::mem::transmute(pvar), pma.param().abi()) } #[inline] pub unsafe fn StgConvertVariantToProperty(pvar: *const windows_core::PROPVARIANT, codepage: u16, pprop: Option<*mut SERIALIZEDPROPERTYVALUE>, pcb: *mut u32, pid: u32, freserved: P0, pcindirect: Option<*mut u32>) -> *mut SERIALIZEDPROPERTYVALUE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgConvertVariantToProperty(pvar : *const std::mem::MaybeUninit < windows_core::PROPVARIANT >, codepage : u16, pprop : *mut SERIALIZEDPROPERTYVALUE, pcb : *mut u32, pid : u32, freserved : super::super::super::Foundation:: BOOLEAN, pcindirect : *mut u32) -> *mut SERIALIZEDPROPERTYVALUE); - StgConvertVariantToProperty(core::mem::transmute(pvar), codepage, core::mem::transmute(pprop.unwrap_or(std::ptr::null_mut())), pcb, pid, freserved.into_param().abi(), core::mem::transmute(pcindirect.unwrap_or(std::ptr::null_mut()))) + StgConvertVariantToProperty(core::mem::transmute(pvar), codepage, core::mem::transmute(pprop.unwrap_or(std::ptr::null_mut())), pcb, pid, freserved.param().abi(), core::mem::transmute(pcindirect.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn StgCreateDocfile(pwcsname: P0, grfmode: super::STGM, reserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - StgCreateDocfile(pwcsname.into_param().abi(), grfmode, reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgCreateDocfile(pwcsname.param().abi(), grfmode, reserved, &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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - StgCreateDocfileOnILockBytes(plkbyt.into_param().abi(), grfmode, 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: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgCreatePropSetStg(pstorage : * mut core::ffi::c_void, dwreserved : u32, pppropsetstg : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - StgCreatePropSetStg(pstorage.into_param().abi(), dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgCreatePropSetStg(pstorage.param().abi(), dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgCreatePropStg(punk: P0, fmtid: *const windows_core::GUID, pclsid: *const windows_core::GUID, grfflags: u32, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - StgCreatePropStg(punk.into_param().abi(), fmtid, pclsid, grfflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgCreatePropStg(punk.param().abi(), fmtid, pclsid, grfflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn StgCreateStorageEx(pwcsname: P0, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: Option<*mut STGOPTIONS>, psecuritydescriptor: P1, riid: *const windows_core::GUID, ppobjectopen: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), grfmode, stgfmt, grfattrs, core::mem::transmute(pstgoptions.unwrap_or(std::ptr::null_mut())), psecuritydescriptor.into_param().abi(), riid, ppobjectopen).ok() + StgCreateStorageEx(pwcsname.param().abi(), grfmode, stgfmt, grfattrs, core::mem::transmute(pstgoptions.unwrap_or(std::ptr::null_mut())), psecuritydescriptor.param().abi(), riid, ppobjectopen).ok() } #[inline] pub unsafe fn StgDeserializePropVariant(pprop: *const SERIALIZEDPROPERTYVALUE, cbmax: u32) -> windows_core::Result { @@ -687,93 +687,93 @@ pub unsafe fn StgDeserializePropVariant(pprop: *const SERIALIZEDPROPERTYVALUE, c #[inline] pub unsafe fn StgGetIFillLockBytesOnFile(pwcsname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgGetIFillLockBytesOnFile(pwcsname : windows_core::PCWSTR, ppflb : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - StgGetIFillLockBytesOnFile(pwcsname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgGetIFillLockBytesOnFile(pwcsname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgGetIFillLockBytesOnILockBytes(pilb: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgGetIFillLockBytesOnILockBytes(pilb : * mut core::ffi::c_void, ppflb : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - StgGetIFillLockBytesOnILockBytes(pilb.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgGetIFillLockBytesOnILockBytes(pilb.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgIsStorageFile(pwcsname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgIsStorageFile(pwcsname : windows_core::PCWSTR) -> windows_core::HRESULT); - StgIsStorageFile(pwcsname.into_param().abi()).ok() + StgIsStorageFile(pwcsname.param().abi()).ok() } #[inline] pub unsafe fn StgIsStorageILockBytes(plkbyt: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgIsStorageILockBytes(plkbyt : * mut core::ffi::c_void) -> windows_core::HRESULT); - StgIsStorageILockBytes(plkbyt.into_param().abi()).ok() + StgIsStorageILockBytes(plkbyt.param().abi()).ok() } #[inline] pub unsafe fn StgOpenAsyncDocfileOnIFillLockBytes(pflb: P0, grfmode: u32, asyncflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - StgOpenAsyncDocfileOnIFillLockBytes(pflb.into_param().abi(), grfmode, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - StgOpenLayoutDocfile(pwcsdfname.into_param().abi(), grfmode, 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: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - StgOpenPropStg(punk.into_param().abi(), fmtid, grfflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgOpenPropStg(punk.param().abi(), fmtid, grfflags, dwreserved, &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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - StgOpenStorage(pwcsname.into_param().abi(), pstgpriority.into_param().abi(), grfmode, core::mem::transmute(snbexclude.unwrap_or(std::ptr::null())), 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(std::ptr::null())), reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn StgOpenStorageEx(pwcsname: P0, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: Option<*mut STGOPTIONS>, psecuritydescriptor: P1, riid: *const windows_core::GUID, ppobjectopen: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), grfmode, stgfmt, grfattrs, core::mem::transmute(pstgoptions.unwrap_or(std::ptr::null_mut())), psecuritydescriptor.into_param().abi(), riid, ppobjectopen).ok() + StgOpenStorageEx(pwcsname.param().abi(), grfmode, stgfmt, grfattrs, core::mem::transmute(pstgoptions.unwrap_or(std::ptr::null_mut())), psecuritydescriptor.param().abi(), riid, ppobjectopen).ok() } #[inline] pub unsafe fn StgOpenStorageOnILockBytes(plkbyt: P0, pstgpriority: P1, grfmode: super::STGM, snbexclude: Option<*const *const u16>, reserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - StgOpenStorageOnILockBytes(plkbyt.into_param().abi(), pstgpriority.into_param().abi(), grfmode, core::mem::transmute(snbexclude.unwrap_or(std::ptr::null())), reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + StgOpenStorageOnILockBytes(plkbyt.param().abi(), pstgpriority.param().abi(), grfmode, core::mem::transmute(snbexclude.unwrap_or(std::ptr::null())), reserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn StgPropertyLengthAsVariant(pprop: *const SERIALIZEDPROPERTYVALUE, cbprop: u32, codepage: u16, breserved: u8) -> u32 { @@ -788,10 +788,10 @@ pub unsafe fn StgSerializePropVariant(ppropvar: *const windows_core::PROPVARIANT #[inline] pub unsafe fn StgSetTimes(lpszname: P0, pctime: Option<*const super::super::super::Foundation::FILETIME>, patime: Option<*const super::super::super::Foundation::FILETIME>, pmtime: Option<*const super::super::super::Foundation::FILETIME>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn StgSetTimes(lpszname : windows_core::PCWSTR, pctime : *const super::super::super::Foundation:: FILETIME, patime : *const super::super::super::Foundation:: FILETIME, pmtime : *const super::super::super::Foundation:: FILETIME) -> windows_core::HRESULT); - StgSetTimes(lpszname.into_param().abi(), core::mem::transmute(pctime.unwrap_or(std::ptr::null())), core::mem::transmute(patime.unwrap_or(std::ptr::null())), core::mem::transmute(pmtime.unwrap_or(std::ptr::null()))).ok() + StgSetTimes(lpszname.param().abi(), core::mem::transmute(pctime.unwrap_or(std::ptr::null())), core::mem::transmute(patime.unwrap_or(std::ptr::null())), core::mem::transmute(pmtime.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn VariantToPropVariant(pvar: *const windows_core::VARIANT) -> windows_core::Result { @@ -802,36 +802,36 @@ pub unsafe fn VariantToPropVariant(pvar: *const windows_core::VARIANT) -> window #[inline] pub unsafe fn WinRTPropertyValueToPropVariant(punkpropertyvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn WinRTPropertyValueToPropVariant(punkpropertyvalue : * mut core::ffi::c_void, ppropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WinRTPropertyValueToPropVariant(punkpropertyvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WinRTPropertyValueToPropVariant(punkpropertyvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WriteClassStg(pstg: P0, rclsid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), rclsid).ok() + WriteClassStg(pstg.param().abi(), rclsid).ok() } #[inline] pub unsafe fn WriteClassStm(pstm: P0, rclsid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), rclsid).ok() + WriteClassStm(pstm.param().abi(), rclsid).ok() } #[inline] pub unsafe fn WriteFmtUserTypeStg(pstg: P0, cf: u16, lpszusertype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), cf, lpszusertype.into_param().abi()).ok() + WriteFmtUserTypeStg(pstg.param().abi(), cf, lpszusertype.param().abi()).ok() } windows_core::imp::define_interface!(IDirectWriterLock, IDirectWriterLock_Vtbl, 0x0e6d4d92_6738_11cf_9608_00aa00680db4); windows_core::imp::interface_hierarchy!(IDirectWriterLock, windows_core::IUnknown); @@ -948,9 +948,9 @@ impl IFillLockBytes { } pub unsafe fn Terminate(&self, bcanceled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), bcanceled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), bcanceled.param().abi()).ok() } } #[repr(C)] @@ -975,15 +975,15 @@ impl ILayoutStorage { } pub unsafe fn ReLayoutDocfile(&self, pwcsnewdfname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReLayoutDocfile)(windows_core::Interface::as_raw(self), pwcsnewdfname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReLayoutDocfile)(windows_core::Interface::as_raw(self), pwcsnewdfname.param().abi()).ok() } pub unsafe fn ReLayoutDocfileOnILockBytes(&self, pilockbytes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReLayoutDocfileOnILockBytes)(windows_core::Interface::as_raw(self), pilockbytes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReLayoutDocfileOnILockBytes)(windows_core::Interface::as_raw(self), pilockbytes.param().abi()).ok() } } #[repr(C)] @@ -1057,28 +1057,28 @@ impl IPersistStorage { } pub unsafe fn InitNew(&self, pstg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitNew)(windows_core::Interface::as_raw(self), pstg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitNew)(windows_core::Interface::as_raw(self), pstg.param().abi()).ok() } pub unsafe fn Load(&self, pstg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pstg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pstg.param().abi()).ok() } pub unsafe fn Save(&self, pstgsave: P0, fsameasload: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pstgsave.into_param().abi(), fsameasload.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pstgsave.param().abi(), fsameasload.param().abi()).ok() } pub unsafe fn SaveCompleted(&self, pstgnew: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), pstgnew.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), pstgnew.param().abi()).ok() } pub unsafe fn HandsOffStorage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HandsOffStorage)(windows_core::Interface::as_raw(self)).ok() @@ -1099,16 +1099,16 @@ windows_core::imp::interface_hierarchy!(IPropertyBag, windows_core::IUnknown); impl IPropertyBag { pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } } #[repr(C)] @@ -1123,9 +1123,9 @@ impl IPropertyBag2 { #[cfg(feature = "Win32_System_Variant")] pub unsafe fn Read(&self, cproperties: u32, ppropbag: *const PROPBAG2, perrlog: P0, pvarvalue: *mut windows_core::VARIANT, phrerror: *mut windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), cproperties, ppropbag, perrlog.into_param().abi(), core::mem::transmute(pvarvalue), phrerror).ok() + (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), cproperties, ppropbag, perrlog.param().abi(), core::mem::transmute(pvarvalue), phrerror).ok() } #[cfg(feature = "Win32_System_Variant")] pub unsafe fn Write(&self, cproperties: u32, ppropbag: *const PROPBAG2, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()> { @@ -1141,11 +1141,11 @@ impl IPropertyBag2 { } pub unsafe fn LoadObject(&self, pstrname: P0, dwhint: u32, punkobject: P1, perrlog: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadObject)(windows_core::Interface::as_raw(self), pstrname.into_param().abi(), dwhint, punkobject.into_param().abi(), perrlog.into_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)] @@ -1255,9 +1255,9 @@ windows_core::imp::interface_hierarchy!(IRootStorage, windows_core::IUnknown); impl IRootStorage { pub unsafe fn SwitchToFile(&self, pszfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SwitchToFile)(windows_core::Interface::as_raw(self), pszfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SwitchToFile)(windows_core::Interface::as_raw(self), pszfile.param().abi()).ok() } } #[repr(C)] @@ -1270,46 +1270,46 @@ windows_core::imp::interface_hierarchy!(IStorage, windows_core::IUnknown); impl IStorage { pub unsafe fn CreateStream(&self, pwcsname: P0, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStream)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), grfmode, reserved1, 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenStream)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), grfmode, 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(std::ptr::null())), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStorage)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), grfmode, reserved1, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenStorage)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), pstgpriority.into_param().abi(), grfmode, snbexclude, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), rgiidexclude.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgiidexclude.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(snbexclude.unwrap_or(std::ptr::null())), pstgdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), rgiidexclude.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgiidexclude.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), core::mem::transmute(snbexclude.unwrap_or(std::ptr::null())), pstgdest.param().abi()).ok() } pub unsafe fn MoveElementTo(&self, pwcsname: P0, pstgdest: P1, pwcsnewname: P2, grfflags: STGMOVE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveElementTo)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), pstgdest.into_param().abi(), pwcsnewname.into_param().abi(), grfflags.0 as _).ok() + (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), grfcommitflags).ok() @@ -1323,22 +1323,22 @@ impl IStorage { } pub unsafe fn DestroyElement(&self, pwcsname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroyElement)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroyElement)(windows_core::Interface::as_raw(self), pwcsname.param().abi()).ok() } pub unsafe fn RenameElement(&self, pwcsoldname: P0, pwcsnewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameElement)(windows_core::Interface::as_raw(self), pwcsoldname.into_param().abi(), pwcsnewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenameElement)(windows_core::Interface::as_raw(self), pwcsoldname.param().abi(), pwcsnewname.param().abi()).ok() } pub unsafe fn SetElementTimes(&self, pwcsname: P0, pctime: *const super::super::super::Foundation::FILETIME, patime: *const super::super::super::Foundation::FILETIME, pmtime: *const super::super::super::Foundation::FILETIME) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetElementTimes)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), pctime, patime, 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), clsid).ok() 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 f1198a7be9..01c467363c 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 @@ -4,10 +4,10 @@ impl IDummyHICONIncluder { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn Dummy(&self, h1: P0, h2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Dummy)(windows_core::Interface::as_raw(self), h1.into_param().abi(), h2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Dummy)(windows_core::Interface::as_raw(self), h1.param().abi(), h2.param().abi()).ok() } } #[repr(C)] @@ -24,16 +24,16 @@ impl IThumbnailExtractor { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn ExtractThumbnail(&self, pstg: P0, ullength: u32, ulheight: u32, puloutputlength: *mut u32, puloutputheight: *mut u32, phoutputbitmap: *mut super::super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExtractThumbnail)(windows_core::Interface::as_raw(self), pstg.into_param().abi(), ullength, ulheight, puloutputlength, puloutputheight, phoutputbitmap).ok() + (windows_core::Interface::vtable(self).ExtractThumbnail)(windows_core::Interface::as_raw(self), pstg.param().abi(), ullength, ulheight, puloutputlength, puloutputheight, phoutputbitmap).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn OnFileUpdated(&self, pstg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFileUpdated)(windows_core::Interface::as_raw(self), pstg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFileUpdated)(windows_core::Interface::as_raw(self), pstg.param().abi()).ok() } } #[repr(C)] 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 fb04a57742..194756b9e0 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 @@ -1,88 +1,88 @@ #[inline] pub unsafe fn CoGetClassObjectFromURL(rclassid: *const windows_core::GUID, szcode: P0, dwfileversionms: u32, dwfileversionls: u32, sztype: P1, pbindctx: P2, dwclscontext: super::CLSCTX, pvreserved: Option<*const core::ffi::c_void>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(rclassid, szcode.into_param().abi(), dwfileversionms, dwfileversionls, sztype.into_param().abi(), pbindctx.into_param().abi(), dwclscontext, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), riid, ppv).ok() + CoGetClassObjectFromURL(rclassid, szcode.param().abi(), dwfileversionms, dwfileversionls, sztype.param().abi(), pbindctx.param().abi(), dwclscontext, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null())), riid, ppv).ok() } #[inline] pub unsafe fn CoInternetCombineIUri(pbaseuri: P0, prelativeuri: P1, dwcombineflags: u32, ppcombineduri: *mut Option, dwreserved: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), prelativeuri.into_param().abi(), dwcombineflags, core::mem::transmute(ppcombineduri), dwreserved).ok() + CoInternetCombineIUri(pbaseuri.param().abi(), prelativeuri.param().abi(), dwcombineflags, core::mem::transmute(ppcombineduri), dwreserved).ok() } #[inline] pub unsafe fn CoInternetCombineUrl(pwzbaseurl: P0, pwzrelativeurl: P1, dwcombineflags: u32, pszresult: &mut [u16], pcchresult: Option<*mut u32>, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwzrelativeurl.into_param().abi(), dwcombineflags, core::mem::transmute(pszresult.as_ptr()), pszresult.len().try_into().unwrap(), core::mem::transmute(pcchresult.unwrap_or(std::ptr::null_mut())), dwreserved).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(std::ptr::null_mut())), dwreserved).ok() } #[inline] pub unsafe fn CoInternetCombineUrlEx(pbaseuri: P0, pwzrelativeurl: P1, dwcombineflags: u32, ppcombineduri: *mut Option, dwreserved: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwzrelativeurl.into_param().abi(), dwcombineflags, core::mem::transmute(ppcombineduri), dwreserved).ok() + CoInternetCombineUrlEx(pbaseuri.param().abi(), pwzrelativeurl.param().abi(), dwcombineflags, core::mem::transmute(ppcombineduri), dwreserved).ok() } #[inline] pub unsafe fn CoInternetCompareUrl(pwzurl1: P0, pwzurl2: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwzurl2.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(ppsm), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(ppzm), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pdwflags, dwreserved).ok() + CoInternetGetProtocolFlags(pwzurl.param().abi(), pdwflags, dwreserved).ok() } #[inline] pub unsafe fn CoInternetGetSecurityUrl(pwszurl: P0, ppwszsecurl: *mut windows_core::PWSTR, psuaction: PSUACTION, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ppwszsecurl, psuaction, dwreserved).ok() + CoInternetGetSecurityUrl(pwszurl.param().abi(), ppwszsecurl, psuaction, dwreserved).ok() } #[inline] pub unsafe fn CoInternetGetSecurityUrlEx(puri: P0, ppsecuri: *mut Option, psuaction: PSUACTION, dwreserved: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(ppsecuri), psuaction, dwreserved).ok() + CoInternetGetSecurityUrlEx(puri.param().abi(), core::mem::transmute(ppsecuri), psuaction, dwreserved).ok() } #[inline] pub unsafe fn CoInternetGetSession(dwsessionmode: u32, ppiinternetsession: *mut Option, dwreserved: u32) -> windows_core::Result<()> { @@ -97,62 +97,62 @@ pub unsafe fn CoInternetIsFeatureEnabled(featureentry: INTERNETFEATURELIST, dwfl #[inline] pub unsafe fn CoInternetIsFeatureEnabledForIUri(featureentry: INTERNETFEATURELIST, dwflags: u32, piuri: P0, psecmgr: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(featureentry, dwflags, piuri.into_param().abi(), psecmgr.into_param().abi()).ok() + CoInternetIsFeatureEnabledForIUri(featureentry, dwflags, piuri.param().abi(), psecmgr.param().abi()).ok() } #[inline] pub unsafe fn CoInternetIsFeatureEnabledForUrl(featureentry: INTERNETFEATURELIST, dwflags: u32, szurl: P0, psecmgr: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(featureentry, dwflags, szurl.into_param().abi(), psecmgr.into_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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), sztourl.into_param().abi(), psecmgr.into_param().abi(), 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: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), parseaction, dwflags, core::mem::transmute(pwzresult.as_ptr()), pwzresult.len().try_into().unwrap(), pcchresult, dwreserved).ok() + CoInternetParseIUri(piuri.param().abi(), parseaction, dwflags, core::mem::transmute(pwzresult.as_ptr()), pwzresult.len().try_into().unwrap(), pcchresult, dwreserved).ok() } #[inline] pub unsafe fn CoInternetParseUrl(pwzurl: P0, parseaction: PARSEACTION, dwflags: u32, pszresult: &mut [u16], pcchresult: *mut u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), parseaction, dwflags, core::mem::transmute(pszresult.as_ptr()), pszresult.len().try_into().unwrap(), pcchresult, dwreserved).ok() + CoInternetParseUrl(pwzurl.param().abi(), parseaction, dwflags, core::mem::transmute(pszresult.as_ptr()), pszresult.len().try_into().unwrap(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), queryoptions, dwqueryflags, pvbuffer, cbbuffer, core::mem::transmute(pcbbuffer.unwrap_or(std::ptr::null_mut())), dwreserved).ok() + CoInternetQueryInfo(pwzurl.param().abi(), queryoptions, dwqueryflags, pvbuffer, cbbuffer, core::mem::transmute(pcbbuffer.unwrap_or(std::ptr::null_mut())), dwreserved).ok() } #[inline] pub unsafe fn CoInternetSetFeatureEnabled(featureentry: INTERNETFEATURELIST, dwflags: u32, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CoInternetSetFeatureEnabled(featureentry : INTERNETFEATURELIST, dwflags : u32, fenable : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); - CoInternetSetFeatureEnabled(featureentry, dwflags, fenable.into_param().abi()).ok() + CoInternetSetFeatureEnabled(featureentry, dwflags, fenable.param().abi()).ok() } #[inline] pub unsafe fn CompareSecurityIds(pbsecurityid1: &[u8], pbsecurityid2: &[u8], dwreserved: u32) -> windows_core::Result<()> { @@ -180,22 +180,22 @@ pub unsafe fn CopyStgMedium(pcstgmedsrc: *const super::STGMEDIUM) -> windows_cor #[inline] pub unsafe fn CreateAsyncBindCtx(reserved: u32, pbscb: P0, pefetc: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateAsyncBindCtx(reserved, pbscb.into_param().abi(), pefetc.into_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: P1, penum: P2, ppbc: *mut Option, reserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), dwoptions, pbscb.into_param().abi(), penum.into_param().abi(), core::mem::transmute(ppbc), 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 { @@ -206,86 +206,86 @@ pub unsafe fn CreateFormatEnumerator(rgfmtetc: &[super::FORMATETC]) -> windows_c #[inline] pub unsafe fn CreateURLMoniker(pmkctx: P0, szurl: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn CreateURLMoniker(pmkctx : * mut core::ffi::c_void, szurl : windows_core::PCWSTR, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateURLMoniker(pmkctx.into_param().abi(), szurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateURLMoniker(pmkctx.param().abi(), szurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateURLMonikerEx(pmkctx: P0, szurl: P1, ppmk: *mut Option, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szurl.into_param().abi(), core::mem::transmute(ppmk), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), puri.into_param().abi(), core::mem::transmute(ppmk), dwflags).ok() + CreateURLMonikerEx2(pmkctx.param().abi(), puri.param().abi(), core::mem::transmute(ppmk), dwflags).ok() } #[inline] pub unsafe fn FaultInIEFeature(hwnd: P0, pclassspec: *const super::uCLSSPEC, pquery: Option<*mut super::QUERYCONTEXT>, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), pclassspec, core::mem::transmute(pquery.unwrap_or(std::ptr::null_mut())), dwflags).ok() + FaultInIEFeature(hwnd.param().abi(), pclassspec, core::mem::transmute(pquery.unwrap_or(std::ptr::null_mut())), dwflags).ok() } #[inline] pub unsafe fn FindMediaType(rgsztypes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn FindMediaType(rgsztypes : windows_core::PCSTR, rgcftypes : *mut u16) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - FindMediaType(rgsztypes.into_param().abi(), &mut result__).map(|| result__) + FindMediaType(rgsztypes.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn FindMediaTypeClass(pbc: P0, sztype: P1, pclsid: *mut windows_core::GUID, reserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), sztype.into_param().abi(), pclsid, reserved).ok() + FindMediaTypeClass(pbc.param().abi(), sztype.param().abi(), pclsid, reserved).ok() } #[inline] pub unsafe fn FindMimeFromData(pbc: P0, pwzurl: P1, pbuffer: Option<*const core::ffi::c_void>, cbsize: u32, pwzmimeproposed: P2, dwmimeflags: u32, ppwzmimeout: *mut windows_core::PWSTR, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pwzurl.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), cbsize, pwzmimeproposed.into_param().abi(), dwmimeflags, ppwzmimeout, dwreserved).ok() + FindMimeFromData(pbc.param().abi(), pwzurl.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), cbsize, pwzmimeproposed.param().abi(), dwmimeflags, ppwzmimeout, dwreserved).ok() } #[inline] pub unsafe fn GetClassFileOrMime(pbc: P0, szfilename: P1, pbuffer: Option<*const core::ffi::c_void>, cbsize: u32, szmime: P2, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - GetClassFileOrMime(pbc.into_param().abi(), szfilename.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), cbsize, szmime.into_param().abi(), dwreserved, &mut result__).map(|| result__) + GetClassFileOrMime(pbc.param().abi(), szfilename.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null())), cbsize, szmime.param().abi(), dwreserved, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetClassURL(szurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn GetClassURL(szurl : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetClassURL(szurl.into_param().abi(), &mut result__).map(|| result__) + GetClassURL(szurl.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetComponentIDFromCLSSPEC(pclassspec: *const super::uCLSSPEC) -> windows_core::Result { @@ -296,70 +296,70 @@ pub unsafe fn GetComponentIDFromCLSSPEC(pclassspec: *const super::uCLSSPEC) -> w #[inline] pub unsafe fn GetSoftwareUpdateInfo(szdistunit: P0, psdi: *mut SOFTDISTINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn GetSoftwareUpdateInfo(szdistunit : windows_core::PCWSTR, psdi : *mut SOFTDISTINFO) -> windows_core::HRESULT); - GetSoftwareUpdateInfo(szdistunit.into_param().abi(), psdi).ok() + GetSoftwareUpdateInfo(szdistunit.param().abi(), psdi).ok() } #[inline] pub unsafe fn HlinkGoBack(punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn HlinkGoBack(punk : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkGoBack(punk.into_param().abi()).ok() + HlinkGoBack(punk.param().abi()).ok() } #[inline] pub unsafe fn HlinkGoForward(punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn HlinkGoForward(punk : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkGoForward(punk.into_param().abi()).ok() + HlinkGoForward(punk.param().abi()).ok() } #[inline] pub unsafe fn HlinkNavigateMoniker(punk: P0, pmktarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn HlinkNavigateMoniker(punk : * mut core::ffi::c_void, pmktarget : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkNavigateMoniker(punk.into_param().abi(), pmktarget.into_param().abi()).ok() + HlinkNavigateMoniker(punk.param().abi(), pmktarget.param().abi()).ok() } #[inline] pub unsafe fn HlinkNavigateString(punk: P0, sztarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn HlinkNavigateString(punk : * mut core::ffi::c_void, sztarget : windows_core::PCWSTR) -> windows_core::HRESULT); - HlinkNavigateString(punk.into_param().abi(), sztarget.into_param().abi()).ok() + HlinkNavigateString(punk.param().abi(), sztarget.param().abi()).ok() } #[inline] pub unsafe fn HlinkSimpleNavigateToMoniker(pmktarget: P0, szlocation: P1, sztargetframename: P2, punk: P3, pbc: P4, param5: P5, grfhlnf: u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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.into_param().abi(), szlocation.into_param().abi(), sztargetframename.into_param().abi(), punk.into_param().abi(), pbc.into_param().abi(), param5.into_param().abi(), grfhlnf, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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.into_param().abi(), szlocation.into_param().abi(), sztargetframename.into_param().abi(), punk.into_param().abi(), pbc.into_param().abi(), param5.into_param().abi(), grfhlnf, 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 { @@ -375,44 +375,44 @@ pub unsafe fn IEInstallScope() -> windows_core::Result { #[inline] pub unsafe fn IsAsyncMoniker(pmk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn IsAsyncMoniker(pmk : * mut core::ffi::c_void) -> windows_core::HRESULT); - IsAsyncMoniker(pmk.into_param().abi()).ok() + IsAsyncMoniker(pmk.param().abi()).ok() } #[inline] pub unsafe fn IsLoggingEnabledA(pszurl: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn IsLoggingEnabledA(pszurl : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - IsLoggingEnabledA(pszurl.into_param().abi()) + IsLoggingEnabledA(pszurl.param().abi()) } #[inline] pub unsafe fn IsLoggingEnabledW(pwszurl: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn IsLoggingEnabledW(pwszurl : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - IsLoggingEnabledW(pwszurl.into_param().abi()) + IsLoggingEnabledW(pwszurl.param().abi()) } #[inline] pub unsafe fn IsValidURL(pbc: P0, szurl: P1, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szurl.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn MkParseDisplayNameEx(pbc : * mut core::ffi::c_void, szdisplayname : windows_core::PCWSTR, pcheaten : *mut u32, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - MkParseDisplayNameEx(pbc.into_param().abi(), szdisplayname.into_param().abi(), pcheaten, core::mem::transmute(ppmk)).ok() + MkParseDisplayNameEx(pbc.param().abi(), szdisplayname.param().abi(), pcheaten, core::mem::transmute(ppmk)).ok() } #[inline] pub unsafe fn ObtainUserAgentString(dwoption: u32, pszuaout: windows_core::PSTR, cbsize: *mut u32) -> windows_core::Result<()> { @@ -422,28 +422,28 @@ pub unsafe fn ObtainUserAgentString(dwoption: u32, pszuaout: windows_core::PSTR, #[inline] pub unsafe fn RegisterBindStatusCallback(pbc: P0, pbscb: P1, ppbscbprev: *mut Option, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pbscb.into_param().abi(), core::mem::transmute(ppbscbprev), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pefetc.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ctypes, rgsztypes, rgclsid, reserved).ok() + RegisterMediaTypeClass(pbc.param().abi(), ctypes, rgsztypes, rgclsid, reserved).ok() } #[inline] pub unsafe fn RegisterMediaTypes(ctypes: u32, rgsztypes: *const windows_core::PCSTR, rgcftypes: *mut u16) -> windows_core::Result<()> { @@ -459,138 +459,138 @@ pub unsafe fn ReleaseBindInfo(pbindinfo: *mut super::BINDINFO) { #[inline] pub unsafe fn RevokeBindStatusCallback(pbc: P0, pbscb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn RevokeBindStatusCallback(pbc : * mut core::ffi::c_void, pbscb : * mut core::ffi::c_void) -> windows_core::HRESULT); - RevokeBindStatusCallback(pbc.into_param().abi(), pbscb.into_param().abi()).ok() + RevokeBindStatusCallback(pbc.param().abi(), pbscb.param().abi()).ok() } #[inline] pub unsafe fn RevokeFormatEnumerator(pbc: P0, pefetc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn RevokeFormatEnumerator(pbc : * mut core::ffi::c_void, pefetc : * mut core::ffi::c_void) -> windows_core::HRESULT); - RevokeFormatEnumerator(pbc.into_param().abi(), pefetc.into_param().abi()).ok() + RevokeFormatEnumerator(pbc.param().abi(), pefetc.param().abi()).ok() } #[inline] pub unsafe fn SetAccessForIEAppContainer(hobject: P0, ieobjecttype: IEObjectType, dwaccessmask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("urlmon.dll" "system" fn SetAccessForIEAppContainer(hobject : super::super::super::Foundation:: HANDLE, ieobjecttype : IEObjectType, dwaccessmask : u32) -> windows_core::HRESULT); - SetAccessForIEAppContainer(hobject.into_param().abi(), ieobjecttype, dwaccessmask).ok() + SetAccessForIEAppContainer(hobject.param().abi(), ieobjecttype, dwaccessmask).ok() } #[inline] pub unsafe fn SetSoftwareUpdateAdvertisementState(szdistunit: P0, dwadstate: u32, dwadvertisedversionms: u32, dwadvertisedversionls: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwadstate, dwadvertisedversionms, 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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2.as_ptr()), param2.len().try_into().unwrap(), param4, param5.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2.as_ptr()), param2.len().try_into().unwrap(), param4, param5.into_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: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), param1.into_param().abi(), param2.into_param().abi(), param3, param4.into_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: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), param1.into_param().abi(), param2.into_param().abi(), param3, param4.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2), param3, param4.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), core::mem::transmute(param2), param3, param4.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), param2, param3.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), param2, param3.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), param2, param3.into_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: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), param1.into_param().abi(), param2, param3.into_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: u32) -> windows_core::Result<()> { @@ -612,10 +612,10 @@ windows_core::imp::interface_hierarchy!(IBindCallbackRedirect, windows_core::IUn impl IBindCallbackRedirect { pub unsafe fn Redirect(&self, lpcurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), lpcurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), lpcurl.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -641,11 +641,11 @@ windows_core::imp::interface_hierarchy!(IBindProtocol, windows_core::IUnknown); impl IBindProtocol { pub unsafe fn CreateBinding(&self, szurl: P0, pbc: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBinding)(windows_core::Interface::as_raw(self), szurl.into_param().abi(), pbc.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateBinding)(windows_core::Interface::as_raw(self), szurl.param().abi(), pbc.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -679,10 +679,10 @@ impl ICodeInstall { } pub unsafe fn OnCodeInstallProblem(&self, ulstatuscode: u32, szdestination: P0, szsource: P1, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCodeInstallProblem)(windows_core::Interface::as_raw(self), ulstatuscode, szdestination.into_param().abi(), szsource.into_param().abi(), 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)] @@ -715,19 +715,19 @@ windows_core::imp::interface_hierarchy!(IEncodingFilterFactory, windows_core::IU impl IEncodingFilterFactory { pub unsafe fn FindBestFilter(&self, pwzcodein: P0, pwzcodeout: P1, info: DATAINFO) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindBestFilter)(windows_core::Interface::as_raw(self), pwzcodein.into_param().abi(), pwzcodeout.into_param().abi(), core::mem::transmute(info), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindBestFilter)(windows_core::Interface::as_raw(self), pwzcodein.param().abi(), pwzcodeout.param().abi(), core::mem::transmute(info), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultFilter(&self, pwzcodein: P0, pwzcodeout: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultFilter)(windows_core::Interface::as_raw(self), pwzcodein.into_param().abi(), pwzcodeout.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDefaultFilter)(windows_core::Interface::as_raw(self), pwzcodein.param().abi(), pwzcodeout.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -754,19 +754,19 @@ windows_core::imp::interface_hierarchy!(IHttpNegotiate, windows_core::IUnknown); impl IHttpNegotiate { pub unsafe fn BeginningTransaction(&self, szurl: P0, szheaders: P1, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginningTransaction)(windows_core::Interface::as_raw(self), szurl.into_param().abi(), szheaders.into_param().abi(), 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: P0, szrequestheaders: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnResponse)(windows_core::Interface::as_raw(self), dwresponsecode, szresponseheaders.into_param().abi(), szrequestheaders.into_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)] @@ -780,19 +780,19 @@ windows_core::imp::interface_hierarchy!(IHttpNegotiate2, windows_core::IUnknown, impl IHttpNegotiate2 { pub unsafe fn BeginningTransaction(&self, szurl: P0, szheaders: P1, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.BeginningTransaction)(windows_core::Interface::as_raw(self), szurl.into_param().abi(), szheaders.into_param().abi(), dwreserved, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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: P0, szrequestheaders: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OnResponse)(windows_core::Interface::as_raw(self), dwresponsecode, szresponseheaders.into_param().abi(), szrequestheaders.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.OnResponse)(windows_core::Interface::as_raw(self), dwresponsecode, szresponseheaders.param().abi(), szrequestheaders.param().abi(), &mut result__).map(|| result__) } 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), pbsecurityid, pcbsecurityid, dwreserved).ok() @@ -808,19 +808,19 @@ windows_core::imp::interface_hierarchy!(IHttpNegotiate3, windows_core::IUnknown, impl IHttpNegotiate3 { pub unsafe fn BeginningTransaction(&self, szurl: P0, szheaders: P1, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.BeginningTransaction)(windows_core::Interface::as_raw(self), szurl.into_param().abi(), szheaders.into_param().abi(), dwreserved, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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: P0, szrequestheaders: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OnResponse)(windows_core::Interface::as_raw(self), dwresponsecode, szresponseheaders.into_param().abi(), szrequestheaders.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.OnResponse)(windows_core::Interface::as_raw(self), dwresponsecode, szresponseheaders.param().abi(), szrequestheaders.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetRootSecurityId(&self, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetRootSecurityId)(windows_core::Interface::as_raw(self), pbsecurityid, pcbsecurityid, dwreserved).ok() @@ -942,12 +942,12 @@ windows_core::imp::interface_hierarchy!(IInternetProtocol, windows_core::IUnknow impl IInternetProtocol { pub unsafe fn Start(&self, szurl: P0, poiprotsink: P1, poibindinfo: P2, grfpi: u32, dwreserved: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Start)(windows_core::Interface::as_raw(self), szurl.into_param().abi(), poiprotsink.into_param().abi(), poibindinfo.into_param().abi(), grfpi, dwreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Start)(windows_core::Interface::as_raw(self), szurl.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), grfpi, dwreserved.param().abi()).ok() } pub unsafe fn Continue(&self, pprotocoldata: *const PROTOCOLDATA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Continue)(windows_core::Interface::as_raw(self), pprotocoldata).ok() @@ -991,12 +991,12 @@ windows_core::imp::interface_hierarchy!(IInternetProtocolEx, windows_core::IUnkn impl IInternetProtocolEx { pub unsafe fn Start(&self, szurl: P0, poiprotsink: P1, poibindinfo: P2, grfpi: u32, dwreserved: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Start)(windows_core::Interface::as_raw(self), szurl.into_param().abi(), poiprotsink.into_param().abi(), poibindinfo.into_param().abi(), grfpi, dwreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Start)(windows_core::Interface::as_raw(self), szurl.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), grfpi, dwreserved.param().abi()).ok() } pub unsafe fn Continue(&self, pprotocoldata: *const PROTOCOLDATA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Continue)(windows_core::Interface::as_raw(self), pprotocoldata).ok() @@ -1028,12 +1028,12 @@ impl IInternetProtocolEx { } pub unsafe fn StartEx(&self, puri: P0, poiprotsink: P1, poibindinfo: P2, grfpi: u32, dwreserved: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).StartEx)(windows_core::Interface::as_raw(self), puri.into_param().abi(), poiprotsink.into_param().abi(), poibindinfo.into_param().abi(), grfpi, dwreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartEx)(windows_core::Interface::as_raw(self), puri.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), grfpi, dwreserved.param().abi()).ok() } } #[repr(C)] @@ -1046,30 +1046,30 @@ windows_core::imp::interface_hierarchy!(IInternetProtocolInfo, windows_core::IUn impl IInternetProtocolInfo { pub unsafe fn ParseUrl(&self, pwzurl: P0, parseaction: PARSEACTION, dwparseflags: u32, pwzresult: windows_core::PWSTR, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseUrl)(windows_core::Interface::as_raw(self), pwzurl.into_param().abi(), parseaction, dwparseflags, core::mem::transmute(pwzresult), cchresult, pcchresult, dwreserved).ok() + (windows_core::Interface::vtable(self).ParseUrl)(windows_core::Interface::as_raw(self), pwzurl.param().abi(), parseaction, dwparseflags, core::mem::transmute(pwzresult), cchresult, pcchresult, dwreserved).ok() } pub unsafe fn CombineUrl(&self, pwzbaseurl: P0, pwzrelativeurl: P1, dwcombineflags: u32, pwzresult: P2, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CombineUrl)(windows_core::Interface::as_raw(self), pwzbaseurl.into_param().abi(), pwzrelativeurl.into_param().abi(), dwcombineflags, pwzresult.into_param().abi(), cchresult, pcchresult, 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, pcchresult, dwreserved).ok() } pub unsafe fn CompareUrl(&self, pwzurl1: P0, pwzurl2: P1, dwcompareflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareUrl)(windows_core::Interface::as_raw(self), pwzurl1.into_param().abi(), pwzurl2.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInfo)(windows_core::Interface::as_raw(self), pwzurl.into_param().abi(), oueryoption, dwqueryflags, pbuffer, cbbuffer, pcbbuf, dwreserved).ok() + (windows_core::Interface::vtable(self).QueryInfo)(windows_core::Interface::as_raw(self), pwzurl.param().abi(), oueryoption, dwqueryflags, pbuffer, cbbuffer, pcbbuf, dwreserved).ok() } } #[repr(C)] @@ -1085,12 +1085,12 @@ windows_core::imp::interface_hierarchy!(IInternetProtocolRoot, windows_core::IUn impl IInternetProtocolRoot { pub unsafe fn Start(&self, szurl: P0, poiprotsink: P1, poibindinfo: P2, grfpi: u32, dwreserved: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), szurl.into_param().abi(), poiprotsink.into_param().abi(), poibindinfo.into_param().abi(), grfpi, dwreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), szurl.param().abi(), poiprotsink.param().abi(), poibindinfo.param().abi(), grfpi, dwreserved.param().abi()).ok() } pub unsafe fn Continue(&self, pprotocoldata: *const PROTOCOLDATA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Continue)(windows_core::Interface::as_raw(self), pprotocoldata).ok() @@ -1126,18 +1126,18 @@ impl IInternetProtocolSink { } pub unsafe fn ReportProgress(&self, ulstatuscode: u32, szstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), ulstatuscode, szstatustext.into_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), grfbscf, ulprogress, ulprogressmax).ok() } pub unsafe fn ReportResult(&self, hrresult: windows_core::HRESULT, dwerror: u32, szresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), hrresult, dwerror, szresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), hrresult, dwerror, szresult.param().abi()).ok() } } #[repr(C)] @@ -1153,9 +1153,9 @@ windows_core::imp::interface_hierarchy!(IInternetProtocolSinkStackable, windows_ impl IInternetProtocolSinkStackable { pub unsafe fn SwitchSink(&self, poiprotsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SwitchSink)(windows_core::Interface::as_raw(self), poiprotsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SwitchSink)(windows_core::Interface::as_raw(self), poiprotsink.param().abi()).ok() } pub unsafe fn CommitSwitch(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CommitSwitch)(windows_core::Interface::as_raw(self)).ok() @@ -1176,9 +1176,9 @@ windows_core::imp::interface_hierarchy!(IInternetSecurityManager, windows_core:: impl IInternetSecurityManager { pub unsafe fn SetSecuritySite(&self, psite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecuritySite)(windows_core::Interface::as_raw(self), psite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecuritySite)(windows_core::Interface::as_raw(self), psite.param().abi()).ok() } pub unsafe fn GetSecuritySite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1186,33 +1186,33 @@ impl IInternetSecurityManager { } pub unsafe fn MapUrlToZone(&self, pwszurl: P0, pdwzone: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pdwzone, dwflags).ok() + (windows_core::Interface::vtable(self).MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), pcbsecurityid, dwreserved).ok() + (windows_core::Interface::vtable(self).GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessUrlAction)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() + (windows_core::Interface::vtable(self).QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() } pub unsafe fn SetZoneMapping(&self, dwzone: u32, lpszpattern: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetZoneMapping)(windows_core::Interface::as_raw(self), dwzone, lpszpattern.into_param().abi(), 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), dwzone, core::mem::transmute(ppenumstring), dwflags).ok() @@ -1235,9 +1235,9 @@ windows_core::imp::interface_hierarchy!(IInternetSecurityManagerEx, windows_core impl IInternetSecurityManagerEx { pub unsafe fn SetSecuritySite(&self, psite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSecuritySite)(windows_core::Interface::as_raw(self), psite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSecuritySite)(windows_core::Interface::as_raw(self), psite.param().abi()).ok() } pub unsafe fn GetSecuritySite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1245,42 +1245,42 @@ impl IInternetSecurityManagerEx { } pub unsafe fn MapUrlToZone(&self, pwszurl: P0, pdwzone: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pdwzone, dwflags).ok() + (windows_core::Interface::vtable(self).base__.MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), pcbsecurityid, dwreserved).ok() + (windows_core::Interface::vtable(self).base__.GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ProcessUrlAction)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() + (windows_core::Interface::vtable(self).base__.QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() } pub unsafe fn SetZoneMapping(&self, dwzone: u32, lpszpattern: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetZoneMapping)(windows_core::Interface::as_raw(self), dwzone, lpszpattern.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetZoneMappings)(windows_core::Interface::as_raw(self), dwzone, core::mem::transmute(ppenumstring), dwflags).ok() } pub unsafe fn ProcessUrlActionEx(&self, pwszurl: P0, dwaction: u32, ppolicy: &mut [u8], pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32, pdwoutflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessUrlActionEx)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved, 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, pdwoutflags).ok() } } #[repr(C)] @@ -1293,9 +1293,9 @@ windows_core::imp::interface_hierarchy!(IInternetSecurityManagerEx2, windows_cor impl IInternetSecurityManagerEx2 { pub unsafe fn SetSecuritySite(&self, psite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSecuritySite)(windows_core::Interface::as_raw(self), psite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSecuritySite)(windows_core::Interface::as_raw(self), psite.param().abi()).ok() } pub unsafe fn GetSecuritySite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1303,66 +1303,66 @@ impl IInternetSecurityManagerEx2 { } pub unsafe fn MapUrlToZone(&self, pwszurl: P0, pdwzone: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pdwzone, dwflags).ok() + (windows_core::Interface::vtable(self).base__.base__.MapUrlToZone)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), pcbsecurityid, dwreserved).ok() + (windows_core::Interface::vtable(self).base__.base__.GetSecurityId)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ProcessUrlAction)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() + (windows_core::Interface::vtable(self).base__.base__.QueryCustomPolicy)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() } pub unsafe fn SetZoneMapping(&self, dwzone: u32, lpszpattern: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetZoneMapping)(windows_core::Interface::as_raw(self), dwzone, lpszpattern.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.GetZoneMappings)(windows_core::Interface::as_raw(self), dwzone, core::mem::transmute(ppenumstring), dwflags).ok() } pub unsafe fn ProcessUrlActionEx(&self, pwszurl: P0, dwaction: u32, ppolicy: &mut [u8], pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32, pdwoutflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ProcessUrlActionEx)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved, pdwoutflags).ok() + (windows_core::Interface::vtable(self).base__.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, pdwoutflags).ok() } pub unsafe fn MapUrlToZoneEx2(&self, puri: P0, pdwzone: *mut u32, dwflags: u32, ppwszmappedurl: Option<*mut windows_core::PWSTR>, pdwoutflags: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MapUrlToZoneEx2)(windows_core::Interface::as_raw(self), puri.into_param().abi(), pdwzone, dwflags, core::mem::transmute(ppwszmappedurl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwoutflags.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).MapUrlToZoneEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), pdwzone, dwflags, core::mem::transmute(ppwszmappedurl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwoutflags.unwrap_or(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessUrlActionEx2)(windows_core::Interface::as_raw(self), puri.into_param().abi(), dwaction, core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), pcontext, cbcontext, dwflags, dwreserved, 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, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSecurityIdEx2)(windows_core::Interface::as_raw(self), puri.into_param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), pcbsecurityid, dwreserved).ok() + (windows_core::Interface::vtable(self).GetSecurityIdEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), core::mem::transmute(pbsecurityid.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryCustomPolicyEx2)(windows_core::Interface::as_raw(self), puri.into_param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() + (windows_core::Interface::vtable(self).QueryCustomPolicyEx2)(windows_core::Interface::as_raw(self), puri.param().abi(), guidkey, pppolicy, pcbpolicy, pcontext, cbcontext, dwreserved).ok() } } #[repr(C)] @@ -1382,9 +1382,9 @@ impl IInternetSecurityMgrSite { } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -1398,39 +1398,39 @@ windows_core::imp::interface_hierarchy!(IInternetSession, windows_core::IUnknown impl IInternetSession { pub unsafe fn RegisterNameSpace(&self, pcf: P0, rclsid: *const windows_core::GUID, pwzprotocol: P1, cpatterns: u32, ppwzpatterns: *const windows_core::PCWSTR, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNameSpace)(windows_core::Interface::as_raw(self), pcf.into_param().abi(), rclsid, pwzprotocol.into_param().abi(), cpatterns, ppwzpatterns, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterNameSpace)(windows_core::Interface::as_raw(self), pcf.into_param().abi(), pszprotocol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterNameSpace)(windows_core::Interface::as_raw(self), pcf.param().abi(), pszprotocol.param().abi()).ok() } pub unsafe fn RegisterMimeFilter(&self, pcf: P0, rclsid: *const windows_core::GUID, pwztype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterMimeFilter)(windows_core::Interface::as_raw(self), pcf.into_param().abi(), rclsid, pwztype.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterMimeFilter)(windows_core::Interface::as_raw(self), pcf.into_param().abi(), pwztype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterMimeFilter)(windows_core::Interface::as_raw(self), pcf.param().abi(), pwztype.param().abi()).ok() } pub unsafe fn CreateBinding(&self, pbc: P0, szurl: P1, punkouter: P2, ppunk: *mut Option, ppoinetprot: *mut Option, dwoption: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateBinding)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), szurl.into_param().abi(), punkouter.into_param().abi(), core::mem::transmute(ppunk), core::mem::transmute(ppoinetprot), 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), dwoption, pbuffer, dwbufferlength, dwreserved).ok() @@ -1489,18 +1489,18 @@ impl IInternetZoneManager { } pub unsafe fn PromptAction(&self, dwaction: u32, hwndparent: P0, pwszurl: P1, pwsztext: P2, dwpromptflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PromptAction)(windows_core::Interface::as_raw(self), dwaction, hwndparent.into_param().abi(), pwszurl.into_param().abi(), pwsztext.into_param().abi(), dwpromptflags).ok() + (windows_core::Interface::vtable(self).PromptAction)(windows_core::Interface::as_raw(self), dwaction, hwndparent.param().abi(), pwszurl.param().abi(), pwsztext.param().abi(), dwpromptflags).ok() } pub unsafe fn LogAction(&self, dwaction: u32, pwszurl: P0, pwsztext: P1, dwlogflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LogAction)(windows_core::Interface::as_raw(self), dwaction, pwszurl.into_param().abi(), pwsztext.into_param().abi(), 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), pdwenum, pdwcount, dwflags).ok() @@ -1555,18 +1555,18 @@ impl IInternetZoneManagerEx { } pub unsafe fn PromptAction(&self, dwaction: u32, hwndparent: P0, pwszurl: P1, pwsztext: P2, dwpromptflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PromptAction)(windows_core::Interface::as_raw(self), dwaction, hwndparent.into_param().abi(), pwszurl.into_param().abi(), pwsztext.into_param().abi(), dwpromptflags).ok() + (windows_core::Interface::vtable(self).base__.PromptAction)(windows_core::Interface::as_raw(self), dwaction, hwndparent.param().abi(), pwszurl.param().abi(), pwsztext.param().abi(), dwpromptflags).ok() } pub unsafe fn LogAction(&self, dwaction: u32, pwszurl: P0, pwsztext: P1, dwlogflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LogAction)(windows_core::Interface::as_raw(self), dwaction, pwszurl.into_param().abi(), pwsztext.into_param().abi(), dwlogflags).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CreateZoneEnumerator)(windows_core::Interface::as_raw(self), pdwenum, pdwcount, dwflags).ok() @@ -1617,18 +1617,18 @@ impl IInternetZoneManagerEx2 { } pub unsafe fn PromptAction(&self, dwaction: u32, hwndparent: P0, pwszurl: P1, pwsztext: P2, dwpromptflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PromptAction)(windows_core::Interface::as_raw(self), dwaction, hwndparent.into_param().abi(), pwszurl.into_param().abi(), pwsztext.into_param().abi(), dwpromptflags).ok() + (windows_core::Interface::vtable(self).base__.base__.PromptAction)(windows_core::Interface::as_raw(self), dwaction, hwndparent.param().abi(), pwszurl.param().abi(), pwsztext.param().abi(), dwpromptflags).ok() } pub unsafe fn LogAction(&self, dwaction: u32, pwszurl: P0, pwsztext: P1, dwlogflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.LogAction)(windows_core::Interface::as_raw(self), dwaction, pwszurl.into_param().abi(), pwsztext.into_param().abi(), dwlogflags).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.CreateZoneEnumerator)(windows_core::Interface::as_raw(self), pdwenum, pdwcount, dwflags).ok() @@ -1654,16 +1654,16 @@ impl IInternetZoneManagerEx2 { } pub unsafe fn GetZoneSecurityState(&self, dwzoneindex: u32, frespectpolicy: P0, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetZoneSecurityState)(windows_core::Interface::as_raw(self), dwzoneindex, frespectpolicy.into_param().abi(), pdwstate, pfpolicyencountered).ok() + (windows_core::Interface::vtable(self).GetZoneSecurityState)(windows_core::Interface::as_raw(self), dwzoneindex, frespectpolicy.param().abi(), pdwstate, pfpolicyencountered).ok() } pub unsafe fn GetIESecurityState(&self, frespectpolicy: P0, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIESecurityState)(windows_core::Interface::as_raw(self), frespectpolicy.into_param().abi(), pdwstate, pfpolicyencountered, fnocache.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetIESecurityState)(windows_core::Interface::as_raw(self), frespectpolicy.param().abi(), pdwstate, pfpolicyencountered, fnocache.param().abi()).ok() } pub unsafe fn FixUnsecureSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FixUnsecureSettings)(windows_core::Interface::as_raw(self)).ok() @@ -1682,9 +1682,9 @@ windows_core::imp::interface_hierarchy!(IMonikerProp, windows_core::IUnknown); impl IMonikerProp { pub unsafe fn PutProperty(&self, mkp: MONIKERPROPERTY, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), mkp, val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), mkp, val.param().abi()).ok() } } #[repr(C)] @@ -1704,26 +1704,26 @@ impl IPersistMoniker { } pub unsafe fn Load(&self, ffullyavailable: P0, pimkname: P1, pibc: P2, grfmode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ffullyavailable.into_param().abi(), pimkname.into_param().abi(), pibc.into_param().abi(), grfmode).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ffullyavailable.param().abi(), pimkname.param().abi(), pibc.param().abi(), grfmode).ok() } pub unsafe fn Save(&self, pimkname: P0, pbc: P1, fremember: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pimkname.into_param().abi(), pbc.into_param().abi(), fremember.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pimkname.param().abi(), pbc.param().abi(), fremember.param().abi()).ok() } pub unsafe fn SaveCompleted(&self, pimkname: P0, pibc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), pimkname.into_param().abi(), pibc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), pimkname.param().abi(), pibc.param().abi()).ok() } pub unsafe fn GetCurMoniker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1746,10 +1746,10 @@ impl ISoftDistExt { #[cfg(feature = "Win32_Data_Xml_MsXml")] pub unsafe fn ProcessSoftDist(&self, szcdfurl: P0, psoftdistelement: P1, lpsdi: *mut SOFTDISTINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessSoftDist)(windows_core::Interface::as_raw(self), szcdfurl.into_param().abi(), psoftdistelement.into_param().abi(), lpsdi).ok() + (windows_core::Interface::vtable(self).ProcessSoftDist)(windows_core::Interface::as_raw(self), szcdfurl.param().abi(), psoftdistelement.param().abi(), 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), szcodebase, dwmaxsize).ok() @@ -1759,9 +1759,9 @@ impl ISoftDistExt { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncInstallDistributionUnit)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pvreserved, flags, lpcbh).ok() + (windows_core::Interface::vtable(self).AsyncInstallDistributionUnit)(windows_core::Interface::as_raw(self), pbc.param().abi(), pvreserved, flags, lpcbh).ok() } } #[repr(C)] @@ -1811,9 +1811,9 @@ windows_core::imp::interface_hierarchy!(IWinInetCacheHints, windows_core::IUnkno impl IWinInetCacheHints { pub unsafe fn SetCacheExtension(&self, pwzext: P0, pszcachefile: *mut core::ffi::c_void, pcbcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCacheExtension)(windows_core::Interface::as_raw(self), pwzext.into_param().abi(), pszcachefile, pcbcachefile, pdwwinineterror, pdwreserved).ok() + (windows_core::Interface::vtable(self).SetCacheExtension)(windows_core::Interface::as_raw(self), pwzext.param().abi(), pszcachefile, pcbcachefile, pdwwinineterror, pdwreserved).ok() } } #[repr(C)] @@ -1826,15 +1826,15 @@ windows_core::imp::interface_hierarchy!(IWinInetCacheHints2, windows_core::IUnkn impl IWinInetCacheHints2 { pub unsafe fn SetCacheExtension(&self, pwzext: P0, pszcachefile: *mut core::ffi::c_void, pcbcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCacheExtension)(windows_core::Interface::as_raw(self), pwzext.into_param().abi(), pszcachefile, pcbcachefile, pdwwinineterror, pdwreserved).ok() + (windows_core::Interface::vtable(self).base__.SetCacheExtension)(windows_core::Interface::as_raw(self), pwzext.param().abi(), pszcachefile, pcbcachefile, pdwwinineterror, pdwreserved).ok() } pub unsafe fn SetCacheExtension2(&self, pwzext: P0, pwzcachefile: windows_core::PWSTR, pcchcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCacheExtension2)(windows_core::Interface::as_raw(self), pwzext.into_param().abi(), core::mem::transmute(pwzcachefile), pcchcachefile, pdwwinineterror, pdwreserved).ok() + (windows_core::Interface::vtable(self).SetCacheExtension2)(windows_core::Interface::as_raw(self), pwzext.param().abi(), core::mem::transmute(pwzcachefile), pcchcachefile, pdwwinineterror, pdwreserved).ok() } } #[repr(C)] @@ -1962,9 +1962,9 @@ impl IZoneIdentifier2 { } pub unsafe fn SetLastWriterPackageFamilyName(&self, packagefamilyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLastWriterPackageFamilyName)(windows_core::Interface::as_raw(self), packagefamilyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLastWriterPackageFamilyName)(windows_core::Interface::as_raw(self), packagefamilyname.param().abi()).ok() } pub unsafe fn RemoveLastWriterPackageFamilyName(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveLastWriterPackageFamilyName)(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 815200d4af..7011ddc85d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -15,39 +15,39 @@ pub mod Urlmon; #[inline] pub unsafe fn BindMoniker(pmk: P0, grfopt: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - BindMoniker(pmk.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CLSIDFromProgID(lpszprogid : windows_core::PCWSTR, lpclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CLSIDFromProgID(lpszprogid.into_param().abi(), &mut result__).map(|| result__) + CLSIDFromProgID(lpszprogid.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CLSIDFromProgIDEx(lpszprogid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CLSIDFromProgIDEx(lpszprogid : windows_core::PCWSTR, lpclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CLSIDFromProgIDEx(lpszprogid.into_param().abi(), &mut result__).map(|| result__) + CLSIDFromProgIDEx(lpszprogid.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CLSIDFromString(lpsz: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CLSIDFromString(lpsz : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CLSIDFromString(lpsz.into_param().abi(), &mut result__).map(|| result__) + CLSIDFromString(lpsz.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CoAddRefServerProcess() -> u32 { @@ -57,10 +57,10 @@ pub unsafe fn CoAddRefServerProcess() -> u32 { #[inline] pub unsafe fn CoAllowSetForegroundWindow(punk: P0, lpvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoAllowSetForegroundWindow(punk : * mut core::ffi::c_void, lpvreserved : *const core::ffi::c_void) -> windows_core::HRESULT); - CoAllowSetForegroundWindow(punk.into_param().abi(), core::mem::transmute(lpvreserved.unwrap_or(std::ptr::null()))).ok() + CoAllowSetForegroundWindow(punk.param().abi(), core::mem::transmute(lpvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CoAllowUnmarshalerCLSID(clsid: *const windows_core::GUID) -> windows_core::Result<()> { @@ -80,20 +80,20 @@ pub unsafe fn CoCancelCall(dwthreadid: u32, ultimeout: u32) -> windows_core::Res #[inline] pub unsafe fn CoCopyProxy(pproxy: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoCopyProxy(pproxy : * mut core::ffi::c_void, ppcopy : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CoCopyProxy(pproxy.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoCopyProxy(pproxy.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoCreateFreeThreadedMarshaler(punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoCreateFreeThreadedMarshaler(punkouter : * mut core::ffi::c_void, ppunkmarshal : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CoCreateFreeThreadedMarshaler(punkouter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoCreateFreeThreadedMarshaler(punkouter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoCreateGuid() -> windows_core::Result { @@ -104,36 +104,36 @@ pub unsafe fn CoCreateGuid() -> windows_core::Result { #[inline] pub unsafe fn CoCreateInstance(rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: CLSCTX) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - CoCreateInstance(rclsid, punkouter.into_param().abi(), 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: P0, dwclsctx: CLSCTX, pserverinfo: Option<*const COSERVERINFO>, presults: &mut [MULTI_QI]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(clsid, punkouter.into_param().abi(), dwclsctx, core::mem::transmute(pserverinfo.unwrap_or(std::ptr::null())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoCreateInstanceEx(clsid, punkouter.param().abi(), dwclsctx, core::mem::transmute(pserverinfo.unwrap_or(std::ptr::null())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() } #[inline] pub unsafe fn CoCreateInstanceFromApp(clsid: *const windows_core::GUID, punkouter: P0, dwclsctx: CLSCTX, reserved: Option<*const core::ffi::c_void>, presults: &mut [MULTI_QI]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(clsid, punkouter.into_param().abi(), dwclsctx, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() + CoCreateInstanceFromApp(clsid, punkouter.param().abi(), dwclsctx, core::mem::transmute(reserved.unwrap_or(std::ptr::null())), presults.len().try_into().unwrap(), core::mem::transmute(presults.as_ptr())).ok() } #[inline] pub unsafe fn CoDecrementMTAUsage(cookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoDecrementMTAUsage(cookie : CO_MTA_USAGE_COOKIE) -> windows_core::HRESULT); - CoDecrementMTAUsage(cookie.into_param().abi()).ok() + CoDecrementMTAUsage(cookie.param().abi()).ok() } #[inline] pub unsafe fn CoDisableCallCancellation(preserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -148,10 +148,10 @@ pub unsafe fn CoDisconnectContext(dwtimeout: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn CoDisconnectObject(punk: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoDisconnectObject(punk : * mut core::ffi::c_void, dwreserved : u32) -> windows_core::HRESULT); - CoDisconnectObject(punk.into_param().abi(), dwreserved).ok() + CoDisconnectObject(punk.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn CoDosDateTimeToFileTime(ndosdate: u16, ndostime: u16, lpfiletime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { @@ -182,10 +182,10 @@ pub unsafe fn CoFreeAllLibraries() { #[inline] pub unsafe fn CoFreeLibrary(hinst: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoFreeLibrary(hinst : super::super::Foundation:: HINSTANCE)); - CoFreeLibrary(hinst.into_param().abi()) + CoFreeLibrary(hinst.param().abi()) } #[inline] pub unsafe fn CoFreeUnusedLibraries() { @@ -261,12 +261,12 @@ pub unsafe fn CoGetMalloc(dwmemcontext: u32) -> windows_core::Result { #[inline] pub unsafe fn CoGetObject(pszname: P0, pbindoptions: Option<*const BIND_OPTS>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("ole32.dll" "system" fn CoGetObject(pszname : windows_core::PCWSTR, pbindoptions : *const BIND_OPTS, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - CoGetObject(pszname.into_param().abi(), core::mem::transmute(pbindoptions.unwrap_or(std::ptr::null())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoGetObject(pszname.param().abi(), core::mem::transmute(pbindoptions.unwrap_or(std::ptr::null())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoGetObjectContext() -> windows_core::Result @@ -319,35 +319,35 @@ pub unsafe fn CoInitializeEx(pvreserved: Option<*const core::ffi::c_void>, dwcoi #[inline] pub unsafe fn CoInitializeSecurity(psecdesc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(psecdesc.into_param().abi(), cauthsvc, core::mem::transmute(asauthsvc.unwrap_or(std::ptr::null())), core::mem::transmute(preserved1.unwrap_or(std::ptr::null())), dwauthnlevel, dwimplevel, core::mem::transmute(pauthlist.unwrap_or(std::ptr::null())), dwcapabilities.0 as _, core::mem::transmute(preserved3.unwrap_or(std::ptr::null()))).ok() + CoInitializeSecurity(psecdesc.param().abi(), cauthsvc, core::mem::transmute(asauthsvc.unwrap_or(std::ptr::null())), core::mem::transmute(preserved1.unwrap_or(std::ptr::null())), dwauthnlevel, dwimplevel, core::mem::transmute(pauthlist.unwrap_or(std::ptr::null())), dwcapabilities.0 as _, core::mem::transmute(preserved3.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CoInstall(pbc: P0, dwflags: u32, pclassspec: *const uCLSSPEC, pquery: *const QUERYCONTEXT, pszcodebase: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, pclassspec, pquery, pszcodebase.into_param().abi()).ok() + CoInstall(pbc.param().abi(), dwflags, pclassspec, pquery, pszcodebase.param().abi()).ok() } #[inline] pub unsafe fn CoInvalidateRemoteMachineBindings(pszmachinename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoInvalidateRemoteMachineBindings(pszmachinename : windows_core::PCWSTR) -> windows_core::HRESULT); - CoInvalidateRemoteMachineBindings(pszmachinename.into_param().abi()).ok() + CoInvalidateRemoteMachineBindings(pszmachinename.param().abi()).ok() } #[inline] pub unsafe fn CoIsHandlerConnected(punk: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoIsHandlerConnected(punk : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - CoIsHandlerConnected(punk.into_param().abi()) + CoIsHandlerConnected(punk.param().abi()) } #[inline] pub unsafe fn CoIsOle1Class(rclsid: *const windows_core::GUID) -> super::super::Foundation::BOOL { @@ -357,21 +357,21 @@ pub unsafe fn CoIsOle1Class(rclsid: *const windows_core::GUID) -> super::super:: #[inline] pub unsafe fn CoLoadLibrary(lpszlibname: P0, bautofree: P1) -> super::super::Foundation::HINSTANCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoLoadLibrary(lpszlibname : windows_core::PCWSTR, bautofree : super::super::Foundation:: BOOL) -> super::super::Foundation:: HINSTANCE); - CoLoadLibrary(lpszlibname.into_param().abi(), bautofree.into_param().abi()) + CoLoadLibrary(lpszlibname.param().abi(), bautofree.param().abi()) } #[inline] pub unsafe fn CoLockObjectExternal(punk: P0, flock: P1, flastunlockreleases: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoLockObjectExternal(punk : * mut core::ffi::c_void, flock : super::super::Foundation:: BOOL, flastunlockreleases : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - CoLockObjectExternal(punk.into_param().abi(), flock.into_param().abi(), flastunlockreleases.into_param().abi()).ok() + CoLockObjectExternal(punk.param().abi(), flock.param().abi(), flastunlockreleases.param().abi()).ok() } #[inline] pub unsafe fn CoQueryAuthenticationServices(pcauthsvc: *mut u32, asauthsvc: *mut *mut SOLE_AUTHENTICATION_SERVICE) -> windows_core::Result<()> { @@ -386,11 +386,11 @@ pub unsafe fn CoQueryClientBlanket(pauthnsvc: Option<*mut u32>, pauthzsvc: Optio #[inline] pub unsafe fn CoQueryProxyBlanket(pproxy: P0, pwauthnsvc: Option<*mut u32>, pauthzsvc: Option<*mut u32>, pserverprincname: Option<*mut windows_core::PWSTR>, pauthnlevel: Option<*mut u32>, pimplevel: Option<*mut u32>, pauthinfo: Option<*mut *mut core::ffi::c_void>, pcapabilites: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoQueryProxyBlanket(pproxy : * mut core::ffi::c_void, pwauthnsvc : *mut u32, pauthzsvc : *mut u32, pserverprincname : *mut windows_core::PWSTR, pauthnlevel : *mut u32, pimplevel : *mut u32, pauthinfo : *mut *mut core::ffi::c_void, pcapabilites : *mut u32) -> windows_core::HRESULT); CoQueryProxyBlanket( - pproxy.into_param().abi(), + pproxy.param().abi(), core::mem::transmute(pwauthnsvc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pauthzsvc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pserverprincname.unwrap_or(std::ptr::null_mut())), @@ -404,53 +404,53 @@ where #[inline] pub unsafe fn CoRegisterActivationFilter(pactivationfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRegisterActivationFilter(pactivationfilter : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoRegisterActivationFilter(pactivationfilter.into_param().abi()).ok() + CoRegisterActivationFilter(pactivationfilter.param().abi()).ok() } #[inline] pub unsafe fn CoRegisterChannelHook(extensionuuid: *const windows_core::GUID, pchannelhook: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(extensionuuid, pchannelhook.into_param().abi()).ok() + CoRegisterChannelHook(extensionuuid, pchannelhook.param().abi()).ok() } #[inline] pub unsafe fn CoRegisterClassObject(rclsid: *const windows_core::GUID, punk: P0, dwclscontext: CLSCTX, flags: REGCLS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CoRegisterClassObject(rclsid, punk.into_param().abi(), dwclscontext, flags.0 as _, &mut result__).map(|| result__) + CoRegisterClassObject(rclsid, punk.param().abi(), dwclscontext, flags.0 as _, &mut result__).map(|| result__) } #[inline] pub unsafe fn CoRegisterDeviceCatalog(deviceinstanceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRegisterDeviceCatalog(deviceinstanceid : windows_core::PCWSTR, cookie : *mut CO_DEVICE_CATALOG_COOKIE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CoRegisterDeviceCatalog(deviceinstanceid.into_param().abi(), &mut result__).map(|| result__) + CoRegisterDeviceCatalog(deviceinstanceid.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CoRegisterInitializeSpy(pspy: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRegisterInitializeSpy(pspy : * mut core::ffi::c_void, pulicookie : *mut u64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CoRegisterInitializeSpy(pspy.into_param().abi(), &mut result__).map(|| result__) + CoRegisterInitializeSpy(pspy.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CoRegisterMallocSpy(pmallocspy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRegisterMallocSpy(pmallocspy : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoRegisterMallocSpy(pmallocspy.into_param().abi()).ok() + CoRegisterMallocSpy(pmallocspy.param().abi()).ok() } #[inline] pub unsafe fn CoRegisterPSClsid(riid: *const windows_core::GUID, rclsid: *const windows_core::GUID) -> windows_core::Result<()> { @@ -460,10 +460,10 @@ pub unsafe fn CoRegisterPSClsid(riid: *const windows_core::GUID, rclsid: *const #[inline] pub unsafe fn CoRegisterSurrogate(psurrogate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRegisterSurrogate(psurrogate : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoRegisterSurrogate(psurrogate.into_param().abi()).ok() + CoRegisterSurrogate(psurrogate.param().abi()).ok() } #[inline] pub unsafe fn CoReleaseServerProcess() -> u32 { @@ -488,10 +488,10 @@ pub unsafe fn CoRevokeClassObject(dwregister: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn CoRevokeDeviceCatalog(cookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoRevokeDeviceCatalog(cookie : CO_DEVICE_CATALOG_COOKIE) -> windows_core::HRESULT); - CoRevokeDeviceCatalog(cookie.into_param().abi()).ok() + CoRevokeDeviceCatalog(cookie.param().abi()).ok() } #[inline] pub unsafe fn CoRevokeInitializeSpy(ulicookie: u64) -> windows_core::Result<()> { @@ -506,19 +506,19 @@ pub unsafe fn CoRevokeMallocSpy() -> windows_core::Result<()> { #[inline] pub unsafe fn CoSetCancelObject(punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoSetCancelObject(punk : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoSetCancelObject(punk.into_param().abi()).ok() + CoSetCancelObject(punk.param().abi()).ok() } #[inline] pub unsafe fn CoSetProxyBlanket(pproxy: P0, dwauthnsvc: u32, dwauthzsvc: u32, pserverprincname: P1, dwauthnlevel: RPC_C_AUTHN_LEVEL, dwimplevel: RPC_C_IMP_LEVEL, pauthinfo: Option<*const core::ffi::c_void>, dwcapabilities: EOLE_AUTHENTICATION_CAPABILITIES) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwauthnsvc, dwauthzsvc, pserverprincname.into_param().abi(), dwauthnlevel, dwimplevel, core::mem::transmute(pauthinfo.unwrap_or(std::ptr::null())), dwcapabilities.0 as _).ok() + CoSetProxyBlanket(pproxy.param().abi(), dwauthnsvc, dwauthzsvc, pserverprincname.param().abi(), dwauthnlevel, dwimplevel, core::mem::transmute(pauthinfo.unwrap_or(std::ptr::null())), dwcapabilities.0 as _).ok() } #[inline] pub unsafe fn CoSuspendClassObjects() -> windows_core::Result<()> { @@ -528,11 +528,11 @@ pub unsafe fn CoSuspendClassObjects() -> windows_core::Result<()> { #[inline] pub unsafe fn CoSwitchCallContext(pnewobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CoSwitchCallContext(pnewobject : * mut core::ffi::c_void, ppoldobject : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CoSwitchCallContext(pnewobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CoSwitchCallContext(pnewobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CoTaskMemAlloc(cb: usize) -> *mut core::ffi::c_void { @@ -603,107 +603,107 @@ pub unsafe fn CreateDataAdviseHolder() -> windows_core::Result(punkouter: P0, rclsid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - CreateDataCache(punkouter.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CreateFileMoniker(lpszpathname : windows_core::PCWSTR, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateFileMoniker(lpszpathname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateFileMoniker(lpszpathname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateGenericComposite(pmkfirst: P0, pmkrest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CreateGenericComposite(pmkfirst : * mut core::ffi::c_void, pmkrest : * mut core::ffi::c_void, ppmkcomposite : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateGenericComposite(pmkfirst.into_param().abi(), pmkrest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateGenericComposite(pmkfirst.param().abi(), pmkrest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateIUriBuilder(piuri: P0, dwflags: u32, dwreserved: usize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateIUriBuilder(piuri.into_param().abi(), dwflags, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CreateItemMoniker(lpszdelim : windows_core::PCWSTR, lpszitem : windows_core::PCWSTR, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateItemMoniker(lpszdelim.into_param().abi(), lpszitem.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateItemMoniker(lpszdelim.param().abi(), lpszitem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateObjrefMoniker(punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CreateObjrefMoniker(punk : * mut core::ffi::c_void, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateObjrefMoniker(punk.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateObjrefMoniker(punk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreatePointerMoniker(punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn CreatePointerMoniker(punk : * mut core::ffi::c_void, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreatePointerMoniker(punk.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreatePointerMoniker(punk.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateStdProgressIndicator(hwndparent: P0, psztitle: P1, pibsccaller: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateStdProgressIndicator(hwndparent.into_param().abi(), psztitle.into_param().abi(), pibsccaller.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateStdProgressIndicator(hwndparent.param().abi(), 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: usize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateUri(pwzuri.into_param().abi(), dwflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateUri(pwzuri.param().abi(), dwflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateUriFromMultiByteString(pszansiinputuri: P0, dwencodingflags: u32, dwcodepage: u32, dwcreateflags: u32, dwreserved: usize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateUriFromMultiByteString(pszansiinputuri.into_param().abi(), dwencodingflags, dwcodepage, dwcreateflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateUriFromMultiByteString(pszansiinputuri.param().abi(), dwencodingflags, dwcodepage, dwcreateflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateUriWithFragment(pwzuri: P0, pwzfragment: P1, dwflags: u32, dwreserved: usize) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateUriWithFragment(pwzuri.into_param().abi(), pwzfragment.into_param().abi(), dwflags, dwreserved, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateUriWithFragment(pwzuri.param().abi(), pwzfragment.param().abi(), dwflags, dwreserved, &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<()> { @@ -713,11 +713,11 @@ pub unsafe fn DcomChannelSetHResult(pvreserved: Option<*const core::ffi::c_void> #[inline] pub unsafe fn GetClassFile(szfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn GetClassFile(szfilename : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetClassFile(szfilename.into_param().abi(), &mut result__).map(|| result__) + GetClassFile(szfilename.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetErrorInfo(dwreserved: u32) -> windows_core::Result { @@ -734,40 +734,40 @@ pub unsafe fn GetRunningObjectTable(reserved: u32) -> windows_core::Result(lpsz: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn IIDFromString(lpsz : windows_core::PCWSTR, lpiid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - IIDFromString(lpsz.into_param().abi(), &mut result__).map(|| result__) + IIDFromString(lpsz.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn MkParseDisplayName(pbc: P0, szusername: P1, pcheaten: *mut u32, ppmk: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn MkParseDisplayName(pbc : * mut core::ffi::c_void, szusername : windows_core::PCWSTR, pcheaten : *mut u32, ppmk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - MkParseDisplayName(pbc.into_param().abi(), szusername.into_param().abi(), pcheaten, core::mem::transmute(ppmk)).ok() + MkParseDisplayName(pbc.param().abi(), szusername.param().abi(), pcheaten, core::mem::transmute(ppmk)).ok() } #[inline] pub unsafe fn MonikerCommonPrefixWith(pmkthis: P0, pmkother: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn MonikerCommonPrefixWith(pmkthis : * mut core::ffi::c_void, pmkother : * mut core::ffi::c_void, ppmkcommon : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MonikerCommonPrefixWith(pmkthis.into_param().abi(), pmkother.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + MonikerCommonPrefixWith(pmkthis.param().abi(), pmkother.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn MonikerRelativePathTo(pmksrc: P0, pmkdest: P1, ppmkrelpath: *mut Option, dwreserved: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn MonikerRelativePathTo(pmksrc : * mut core::ffi::c_void, pmkdest : * mut core::ffi::c_void, ppmkrelpath : *mut * mut core::ffi::c_void, dwreserved : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - MonikerRelativePathTo(pmksrc.into_param().abi(), pmkdest.into_param().abi(), core::mem::transmute(ppmkrelpath), dwreserved.into_param().abi()).ok() + MonikerRelativePathTo(pmksrc.param().abi(), pmkdest.param().abi(), core::mem::transmute(ppmkrelpath), dwreserved.param().abi()).ok() } #[inline] pub unsafe fn ProgIDFromCLSID(clsid: *const windows_core::GUID) -> windows_core::Result { @@ -778,10 +778,10 @@ pub unsafe fn ProgIDFromCLSID(clsid: *const windows_core::GUID) -> windows_core: #[inline] pub unsafe fn SetErrorInfo(dwreserved: u32, perrinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn SetErrorInfo(dwreserved : u32, perrinfo : * mut core::ffi::c_void) -> windows_core::HRESULT); - SetErrorInfo(dwreserved, perrinfo.into_param().abi()).ok() + SetErrorInfo(dwreserved, perrinfo.param().abi()).ok() } #[inline] pub unsafe fn StringFromCLSID(rclsid: *const windows_core::GUID) -> windows_core::Result { @@ -818,9 +818,9 @@ impl AsyncIAdviseSink { } pub unsafe fn Begin_OnRename(&self, pmk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_OnRename)(windows_core::Interface::as_raw(self), pmk.into_param().abi()) + (windows_core::Interface::vtable(self).Begin_OnRename)(windows_core::Interface::as_raw(self), pmk.param().abi()) } pub unsafe fn Finish_OnRename(&self) { (windows_core::Interface::vtable(self).Finish_OnRename)(windows_core::Interface::as_raw(self)) @@ -873,9 +873,9 @@ impl AsyncIAdviseSink2 { } pub unsafe fn Begin_OnRename(&self, pmk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Begin_OnRename)(windows_core::Interface::as_raw(self), pmk.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Begin_OnRename)(windows_core::Interface::as_raw(self), pmk.param().abi()) } pub unsafe fn Finish_OnRename(&self) { (windows_core::Interface::vtable(self).base__.Finish_OnRename)(windows_core::Interface::as_raw(self)) @@ -894,9 +894,9 @@ impl AsyncIAdviseSink2 { } pub unsafe fn Begin_OnLinkSrcChange(&self, pmk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_OnLinkSrcChange)(windows_core::Interface::as_raw(self), pmk.into_param().abi()) + (windows_core::Interface::vtable(self).Begin_OnLinkSrcChange)(windows_core::Interface::as_raw(self), pmk.param().abi()) } pub unsafe fn Finish_OnLinkSrcChange(&self) { (windows_core::Interface::vtable(self).Finish_OnLinkSrcChange)(windows_core::Interface::as_raw(self)) @@ -1049,9 +1049,9 @@ impl IAddrExclusionControl { } pub unsafe fn UpdateAddrExclusionList(&self, penumerator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateAddrExclusionList)(windows_core::Interface::as_raw(self), penumerator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateAddrExclusionList)(windows_core::Interface::as_raw(self), penumerator.param().abi()).ok() } } #[repr(C)] @@ -1088,9 +1088,9 @@ impl IAdviseSink { } pub unsafe fn OnRename(&self, pmk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRename)(windows_core::Interface::as_raw(self), pmk.into_param().abi()) + (windows_core::Interface::vtable(self).OnRename)(windows_core::Interface::as_raw(self), pmk.param().abi()) } pub unsafe fn OnSave(&self) { (windows_core::Interface::vtable(self).OnSave)(windows_core::Interface::as_raw(self)) @@ -1123,9 +1123,9 @@ impl IAdviseSink2 { } pub unsafe fn OnRename(&self, pmk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnRename)(windows_core::Interface::as_raw(self), pmk.into_param().abi()) + (windows_core::Interface::vtable(self).base__.OnRename)(windows_core::Interface::as_raw(self), pmk.param().abi()) } pub unsafe fn OnSave(&self) { (windows_core::Interface::vtable(self).base__.OnSave)(windows_core::Interface::as_raw(self)) @@ -1135,9 +1135,9 @@ impl IAdviseSink2 { } pub unsafe fn OnLinkSrcChange(&self, pmk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLinkSrcChange)(windows_core::Interface::as_raw(self), pmk.into_param().abi()) + (windows_core::Interface::vtable(self).OnLinkSrcChange)(windows_core::Interface::as_raw(self), pmk.param().abi()) } } #[repr(C)] @@ -1197,9 +1197,9 @@ impl IAsyncRpcChannelBuffer { } pub unsafe fn Send(&self, pmsg: *mut RPCOLEMESSAGE, psync: P0, pulstatus: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), pmsg, psync.into_param().abi(), pulstatus).ok() + (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), pmsg, psync.param().abi(), pulstatus).ok() } pub unsafe fn Receive(&self, pmsg: *mut RPCOLEMESSAGE, pulstatus: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Receive)(windows_core::Interface::as_raw(self), pmsg, pulstatus).ok() @@ -1247,15 +1247,15 @@ windows_core::imp::interface_hierarchy!(IBindCtx, windows_core::IUnknown); impl IBindCtx { pub unsafe fn RegisterObjectBound(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterObjectBound)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterObjectBound)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn RevokeObjectBound(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RevokeObjectBound)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RevokeObjectBound)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn ReleaseBoundObjects(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseBoundObjects)(windows_core::Interface::as_raw(self)).ok() @@ -1272,17 +1272,17 @@ impl IBindCtx { } pub unsafe fn RegisterObjectParam(&self, pszkey: P0, punk: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterObjectParam)(windows_core::Interface::as_raw(self), pszkey.into_param().abi(), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterObjectParam)(windows_core::Interface::as_raw(self), pszkey.param().abi(), punk.param().abi()).ok() } pub unsafe fn GetObjectParam(&self, pszkey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectParam)(windows_core::Interface::as_raw(self), pszkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObjectParam)(windows_core::Interface::as_raw(self), pszkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumObjectParam(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1290,9 +1290,9 @@ impl IBindCtx { } pub unsafe fn RevokeObjectParam(&self, pszkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RevokeObjectParam)(windows_core::Interface::as_raw(self), pszkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RevokeObjectParam)(windows_core::Interface::as_raw(self), pszkey.param().abi()).ok() } } #[repr(C)] @@ -1314,26 +1314,26 @@ windows_core::imp::interface_hierarchy!(IBindHost, windows_core::IUnknown); impl IBindHost { pub unsafe fn CreateMoniker(&self, szname: P0, pbc: P1, ppmk: *mut Option, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateMoniker)(windows_core::Interface::as_raw(self), szname.into_param().abi(), pbc.into_param().abi(), core::mem::transmute(ppmk), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MonikerBindToStorage)(windows_core::Interface::as_raw(self), pmk.into_param().abi(), pbc.into_param().abi(), pbsc.into_param().abi(), riid, ppvobj).ok() + (windows_core::Interface::vtable(self).MonikerBindToStorage)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), pbsc.param().abi(), riid, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).MonikerBindToObject)(windows_core::Interface::as_raw(self), pmk.into_param().abi(), pbc.into_param().abi(), pbsc.into_param().abi(), riid, ppvobj).ok() + (windows_core::Interface::vtable(self).MonikerBindToObject)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), pbsc.param().abi(), riid, ppvobj).ok() } } #[repr(C)] @@ -1348,9 +1348,9 @@ windows_core::imp::interface_hierarchy!(IBindStatusCallback, windows_core::IUnkn impl IBindStatusCallback { pub unsafe fn OnStartBinding(&self, dwreserved: u32, pib: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStartBinding)(windows_core::Interface::as_raw(self), dwreserved, pib.into_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__ = std::mem::zeroed(); @@ -1361,15 +1361,15 @@ impl IBindStatusCallback { } pub unsafe fn OnProgress(&self, ulprogress: u32, ulprogressmax: u32, ulstatuscode: u32, szstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), ulprogress, ulprogressmax, ulstatuscode, szstatustext.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStopBinding)(windows_core::Interface::as_raw(self), hresult, szerror.into_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<()> { @@ -1381,9 +1381,9 @@ impl IBindStatusCallback { } pub unsafe fn OnObjectAvailable(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnObjectAvailable)(windows_core::Interface::as_raw(self), riid, punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnObjectAvailable)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } } #[repr(C)] @@ -1409,9 +1409,9 @@ windows_core::imp::interface_hierarchy!(IBindStatusCallbackEx, windows_core::IUn impl IBindStatusCallbackEx { pub unsafe fn OnStartBinding(&self, dwreserved: u32, pib: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnStartBinding)(windows_core::Interface::as_raw(self), dwreserved, pib.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnStartBinding)(windows_core::Interface::as_raw(self), dwreserved, pib.param().abi()).ok() } pub unsafe fn GetPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1422,15 +1422,15 @@ impl IBindStatusCallbackEx { } pub unsafe fn OnProgress(&self, ulprogress: u32, ulprogressmax: u32, ulstatuscode: u32, szstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnProgress)(windows_core::Interface::as_raw(self), ulprogress, ulprogressmax, ulstatuscode, szstatustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnProgress)(windows_core::Interface::as_raw(self), ulprogress, ulprogressmax, ulstatuscode, szstatustext.param().abi()).ok() } pub unsafe fn OnStopBinding(&self, hresult: windows_core::HRESULT, szerror: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnStopBinding)(windows_core::Interface::as_raw(self), hresult, szerror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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<()> { @@ -1442,9 +1442,9 @@ impl IBindStatusCallbackEx { } pub unsafe fn OnObjectAvailable(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnObjectAvailable)(windows_core::Interface::as_raw(self), riid, punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnObjectAvailable)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn GetBindInfoEx(&self, grfbindf: *mut u32, pbindinfo: *mut BINDINFO, grfbindf2: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()> { @@ -1513,10 +1513,10 @@ windows_core::imp::interface_hierarchy!(ICallFactory, windows_core::IUnknown); impl ICallFactory { pub unsafe fn CreateCall(&self, riid: *const windows_core::GUID, pctrlunk: P0, riid2: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCall)(windows_core::Interface::as_raw(self), riid, pctrlunk.into_param().abi(), 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)] @@ -1666,17 +1666,17 @@ windows_core::imp::interface_hierarchy!(IClassFactory, windows_core::IUnknown); impl IClassFactory { pub unsafe fn CreateInstance(&self, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &T::IID, &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(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LockServer(&self, flock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LockServer)(windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LockServer)(windows_core::Interface::as_raw(self), flock.param().abi()).ok() } } #[repr(C)] @@ -1690,23 +1690,23 @@ windows_core::imp::interface_hierarchy!(IClientSecurity, windows_core::IUnknown) impl IClientSecurity { pub unsafe fn QueryBlanket(&self, pproxy: P0, pauthnsvc: *mut u32, pauthzsvc: Option<*mut u32>, pserverprincname: *mut *mut u16, pauthnlevel: Option<*mut RPC_C_AUTHN_LEVEL>, pimplevel: Option<*mut RPC_C_IMP_LEVEL>, pauthinfo: *mut *mut core::ffi::c_void, pcapabilites: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryBlanket)(windows_core::Interface::as_raw(self), pproxy.into_param().abi(), pauthnsvc, core::mem::transmute(pauthzsvc.unwrap_or(std::ptr::null_mut())), pserverprincname, core::mem::transmute(pauthnlevel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pimplevel.unwrap_or(std::ptr::null_mut())), pauthinfo, core::mem::transmute(pcapabilites.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).QueryBlanket)(windows_core::Interface::as_raw(self), pproxy.param().abi(), pauthnsvc, core::mem::transmute(pauthzsvc.unwrap_or(std::ptr::null_mut())), pserverprincname, core::mem::transmute(pauthnlevel.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pimplevel.unwrap_or(std::ptr::null_mut())), pauthinfo, core::mem::transmute(pcapabilites.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetBlanket(&self, pproxy: P0, dwauthnsvc: u32, dwauthzsvc: u32, pserverprincname: P1, dwauthnlevel: RPC_C_AUTHN_LEVEL, dwimplevel: RPC_C_IMP_LEVEL, pauthinfo: Option<*const core::ffi::c_void>, dwcapabilities: EOLE_AUTHENTICATION_CAPABILITIES) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBlanket)(windows_core::Interface::as_raw(self), pproxy.into_param().abi(), dwauthnsvc, dwauthzsvc, pserverprincname.into_param().abi(), dwauthnlevel, dwimplevel, core::mem::transmute(pauthinfo.unwrap_or(std::ptr::null())), 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(std::ptr::null())), dwcapabilities.0 as _).ok() } pub unsafe fn CopyProxy(&self, pproxy: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyProxy)(windows_core::Interface::as_raw(self), pproxy.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CopyProxy)(windows_core::Interface::as_raw(self), pproxy.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1756,10 +1756,10 @@ impl IConnectionPoint { } pub unsafe fn Advise(&self, punksink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), punksink.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -1801,9 +1801,9 @@ windows_core::imp::interface_hierarchy!(IContext, windows_core::IUnknown); impl IContext { pub unsafe fn SetProperty(&self, rpolicyid: *const windows_core::GUID, flags: u32, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), rpolicyid, flags, punk.into_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), rpolicyid).ok() @@ -1829,9 +1829,9 @@ windows_core::imp::interface_hierarchy!(IContextCallback, windows_core::IUnknown impl IContextCallback { pub unsafe fn ContextCallback(&self, pfncallback: PFNCONTEXTCALL, pparam: *const ComCallData, riid: *const windows_core::GUID, imethod: i32, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContextCallback)(windows_core::Interface::as_raw(self), pfncallback, pparam, riid, imethod, punk.into_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)] @@ -1844,11 +1844,11 @@ windows_core::imp::interface_hierarchy!(IDataAdviseHolder, windows_core::IUnknow impl IDataAdviseHolder { pub unsafe fn Advise(&self, pdataobject: P0, pfetc: *const FORMATETC, advf: u32, padvise: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), pfetc, advf, padvise.into_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), dwconnection).ok() @@ -1859,9 +1859,9 @@ impl IDataAdviseHolder { } pub unsafe fn SendOnDataChange(&self, pdataobject: P0, dwreserved: u32, advf: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendOnDataChange)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), dwreserved, advf).ok() + (windows_core::Interface::vtable(self).SendOnDataChange)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), dwreserved, advf).ok() } } #[repr(C)] @@ -1893,9 +1893,9 @@ impl IDataObject { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn SetData(&self, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pformatetc, pmedium, frelease.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pformatetc, pmedium, frelease.param().abi()).ok() } pub unsafe fn EnumFormatEtc(&self, dwdirection: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1903,10 +1903,10 @@ impl IDataObject { } pub unsafe fn DAdvise(&self, pformatetc: *const FORMATETC, advf: u32, padvsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DAdvise)(windows_core::Interface::as_raw(self), pformatetc, advf, padvsink.into_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), dwconnection).ok() @@ -2257,9 +2257,9 @@ windows_core::imp::interface_hierarchy!(IErrorLog, windows_core::IUnknown); impl IErrorLog { pub unsafe fn AddError(&self, pszpropname: P0, pexcepinfo: *const EXCEPINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddError)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), pexcepinfo).ok() + (windows_core::Interface::vtable(self).AddError)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), pexcepinfo).ok() } } #[repr(C)] @@ -2275,9 +2275,9 @@ impl IExternalConnection { } pub unsafe fn ReleaseConnection(&self, extconn: u32, reserved: u32, flastreleasecloses: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseConnection)(windows_core::Interface::as_raw(self), extconn, reserved, flastreleasecloses.into_param().abi()) + (windows_core::Interface::vtable(self).ReleaseConnection)(windows_core::Interface::as_raw(self), extconn, reserved, flastreleasecloses.param().abi()) } } #[repr(C)] @@ -2310,10 +2310,10 @@ windows_core::imp::interface_hierarchy!(IGlobalInterfaceTable, windows_core::IUn impl IGlobalInterfaceTable { pub unsafe fn RegisterInterfaceInGlobal(&self, punk: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterInterfaceInGlobal)(windows_core::Interface::as_raw(self), punk.into_param().abi(), 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), dwcookie).ok() @@ -2387,25 +2387,25 @@ windows_core::imp::interface_hierarchy!(IMachineGlobalObjectTable, windows_core: impl IMachineGlobalObjectTable { pub unsafe fn RegisterObject(&self, clsid: *const windows_core::GUID, identifier: P0, object: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterObject)(windows_core::Interface::as_raw(self), clsid, identifier.into_param().abi(), object.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), clsid, identifier.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RevokeObject)(windows_core::Interface::as_raw(self), token.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RevokeObject)(windows_core::Interface::as_raw(self), token.param().abi()).ok() } } #[repr(C)] @@ -2458,51 +2458,51 @@ impl IMallocSpy { } pub unsafe fn PreFree(&self, prequest: *const core::ffi::c_void, fspyed: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreFree)(windows_core::Interface::as_raw(self), prequest, fspyed.into_param().abi()) + (windows_core::Interface::vtable(self).PreFree)(windows_core::Interface::as_raw(self), prequest, fspyed.param().abi()) } pub unsafe fn PostFree(&self, fspyed: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PostFree)(windows_core::Interface::as_raw(self), fspyed.into_param().abi()) + (windows_core::Interface::vtable(self).PostFree)(windows_core::Interface::as_raw(self), fspyed.param().abi()) } pub unsafe fn PreRealloc(&self, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreRealloc)(windows_core::Interface::as_raw(self), prequest, cbrequest, ppnewrequest, fspyed.into_param().abi()) + (windows_core::Interface::vtable(self).PreRealloc)(windows_core::Interface::as_raw(self), prequest, cbrequest, ppnewrequest, fspyed.param().abi()) } pub unsafe fn PostRealloc(&self, pactual: *const core::ffi::c_void, fspyed: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PostRealloc)(windows_core::Interface::as_raw(self), pactual, fspyed.into_param().abi()) + (windows_core::Interface::vtable(self).PostRealloc)(windows_core::Interface::as_raw(self), pactual, fspyed.param().abi()) } pub unsafe fn PreGetSize(&self, prequest: *const core::ffi::c_void, fspyed: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreGetSize)(windows_core::Interface::as_raw(self), prequest, fspyed.into_param().abi()) + (windows_core::Interface::vtable(self).PreGetSize)(windows_core::Interface::as_raw(self), prequest, fspyed.param().abi()) } pub unsafe fn PostGetSize(&self, cbactual: usize, fspyed: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PostGetSize)(windows_core::Interface::as_raw(self), cbactual, fspyed.into_param().abi()) + (windows_core::Interface::vtable(self).PostGetSize)(windows_core::Interface::as_raw(self), cbactual, fspyed.param().abi()) } pub unsafe fn PreDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreDidAlloc)(windows_core::Interface::as_raw(self), prequest, fspyed.into_param().abi()) + (windows_core::Interface::vtable(self).PreDidAlloc)(windows_core::Interface::as_raw(self), prequest, fspyed.param().abi()) } pub unsafe fn PostDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: P0, factual: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PostDidAlloc)(windows_core::Interface::as_raw(self), prequest, fspyed.into_param().abi(), factual) + (windows_core::Interface::vtable(self).PostDidAlloc)(windows_core::Interface::as_raw(self), prequest, fspyed.param().abi(), factual) } pub unsafe fn PreHeapMinimize(&self) { (windows_core::Interface::vtable(self).PreHeapMinimize)(windows_core::Interface::as_raw(self)) @@ -2539,16 +2539,16 @@ impl IMoniker { } pub unsafe fn Load(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn Save(&self, pstm: P0, fcleardirty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.param().abi(), fcleardirty.param().abi()).ok() } pub unsafe fn GetSizeMax(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2556,48 +2556,48 @@ impl IMoniker { } pub unsafe fn BindToObject(&self, pbc: P0, pmktoleft: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToObject)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pmktoleft.into_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), pbc.param().abi(), pmktoleft.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BindToStorage(&self, pbc: P0, pmktoleft: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToStorage)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pmktoleft.into_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), pbc.param().abi(), pmktoleft.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Reduce(&self, pbc: P0, dwreducehowfar: u32, ppmktoleft: *mut Option, ppmkreduced: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reduce)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), 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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ComposeWith)(windows_core::Interface::as_raw(self), pmkright.into_param().abi(), fonlyifnotgeneric.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ComposeWith)(windows_core::Interface::as_raw(self), pmkright.param().abi(), fonlyifnotgeneric.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Enum(&self, fforward: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Enum)(windows_core::Interface::as_raw(self), fforward.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Enum)(windows_core::Interface::as_raw(self), fforward.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsEqual(&self, pmkothermoniker: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pmkothermoniker.into_param().abi()) + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pmkothermoniker.param().abi()) } pub unsafe fn Hash(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2605,19 +2605,19 @@ impl IMoniker { } pub unsafe fn IsRunning(&self, pbc: P0, pmktoleft: P1, pmknewlyrunning: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pmktoleft.into_param().abi(), pmknewlyrunning.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self), pbc.param().abi(), pmktoleft.param().abi(), pmknewlyrunning.param().abi()).ok() } pub unsafe fn GetTimeOfLastChange(&self, pbc: P0, pmktoleft: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTimeOfLastChange)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pmktoleft.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTimeOfLastChange)(windows_core::Interface::as_raw(self), pbc.param().abi(), pmktoleft.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Inverse(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2625,33 +2625,33 @@ impl IMoniker { } pub unsafe fn CommonPrefixWith(&self, pmkother: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CommonPrefixWith)(windows_core::Interface::as_raw(self), pmkother.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CommonPrefixWith)(windows_core::Interface::as_raw(self), pmkother.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RelativePathTo(&self, pmkother: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RelativePathTo)(windows_core::Interface::as_raw(self), pmkother.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RelativePathTo)(windows_core::Interface::as_raw(self), pmkother.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDisplayName(&self, pbc: P0, pmktoleft: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pmktoleft.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDisplayName)(windows_core::Interface::as_raw(self), pbc.param().abi(), pmktoleft.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ParseDisplayName(&self, pbc: P0, pmktoleft: P1, pszdisplayname: P2, pcheaten: *mut u32, ppmkout: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pmktoleft.into_param().abi(), pszdisplayname.into_param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() + (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.param().abi(), pmktoleft.param().abi(), pszdisplayname.param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() } pub unsafe fn IsSystemMoniker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2701,19 +2701,19 @@ windows_core::imp::interface_hierarchy!(IOplockStorage, windows_core::IUnknown); impl IOplockStorage { pub unsafe fn CreateStorageEx(&self, pwcsname: P0, grfmode: u32, stgfmt: u32, grfattrs: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateStorageEx)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), grfmode, stgfmt, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).OpenStorageEx)(windows_core::Interface::as_raw(self), pwcsname.into_param().abi(), grfmode, stgfmt, 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)] @@ -2727,16 +2727,16 @@ windows_core::imp::interface_hierarchy!(IPSFactoryBuffer, windows_core::IUnknown impl IPSFactoryBuffer { pub unsafe fn CreateProxy(&self, punkouter: P0, riid: *const windows_core::GUID, ppproxy: *mut Option, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProxy)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), riid, core::mem::transmute(ppproxy), ppv).ok() + (windows_core::Interface::vtable(self).CreateProxy)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, core::mem::transmute(ppproxy), ppv).ok() } pub unsafe fn CreateStub(&self, riid: *const windows_core::GUID, punkserver: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStub)(windows_core::Interface::as_raw(self), riid, punkserver.into_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)] @@ -2770,22 +2770,22 @@ impl IPersistFile { } pub unsafe fn Load(&self, pszfilename: P0, dwmode: STGM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), fremember.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), fremember.param().abi()).ok() } pub unsafe fn SaveCompleted(&self, pszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), pszfilename.param().abi()).ok() } pub unsafe fn GetCurFile(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2816,9 +2816,9 @@ impl IPersistMemory { } pub unsafe fn Save(&self, pmem: &mut [u8], fcleardirty: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), core::mem::transmute(pmem.as_ptr()), fcleardirty.into_param().abi(), pmem.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), core::mem::transmute(pmem.as_ptr()), fcleardirty.param().abi(), pmem.len().try_into().unwrap()).ok() } pub unsafe fn GetSizeMax(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2849,16 +2849,16 @@ impl IPersistStream { } pub unsafe fn Load(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn Save(&self, pstm: P0, fcleardirty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pstm.param().abi(), fcleardirty.param().abi()).ok() } pub unsafe fn GetSizeMax(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2885,16 +2885,16 @@ impl IPersistStreamInit { } pub unsafe fn Load(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn Save(&self, pstm: P0, fcleardirty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pstm.param().abi(), fcleardirty.param().abi()).ok() } pub unsafe fn GetSizeMax(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2994,10 +2994,10 @@ windows_core::imp::interface_hierarchy!(IProgressNotify, windows_core::IUnknown) impl IProgressNotify { pub unsafe fn OnProgress(&self, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: P0, fowner: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), dwprogresscurrent, dwprogressmaximum, faccurate.into_param().abi(), fowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), dwprogresscurrent, dwprogressmaximum, faccurate.param().abi(), fowner.param().abi()).ok() } } #[repr(C)] @@ -3022,9 +3022,9 @@ windows_core::imp::interface_hierarchy!(IReleaseMarshalBuffers, windows_core::IU impl IReleaseMarshalBuffers { pub unsafe fn ReleaseMarshalBuffer(&self, pmsg: *mut RPCOLEMESSAGE, dwflags: u32, pchnl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseMarshalBuffer)(windows_core::Interface::as_raw(self), pmsg, dwflags, pchnl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseMarshalBuffer)(windows_core::Interface::as_raw(self), pmsg, dwflags, pchnl.param().abi()).ok() } } #[repr(C)] @@ -3131,9 +3131,9 @@ impl IRpcChannelBuffer3 { } pub unsafe fn RegisterAsync(&self, pmsg: *mut RPCOLEMESSAGE, pasyncmgr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterAsync)(windows_core::Interface::as_raw(self), pmsg, pasyncmgr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterAsync)(windows_core::Interface::as_raw(self), pmsg, pasyncmgr.param().abi()).ok() } } #[repr(C)] @@ -3170,16 +3170,16 @@ windows_core::imp::interface_hierarchy!(IRpcOptions, windows_core::IUnknown); impl IRpcOptions { pub unsafe fn Set(&self, pprx: P0, dwproperty: RPCOPT_PROPERTIES, dwvalue: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), pprx.into_param().abi(), dwproperty, 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pprx.into_param().abi(), 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)] @@ -3193,9 +3193,9 @@ windows_core::imp::interface_hierarchy!(IRpcProxyBuffer, windows_core::IUnknown) impl IRpcProxyBuffer { pub unsafe fn Connect(&self, prpcchannelbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), prpcchannelbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), prpcchannelbuffer.param().abi()).ok() } pub unsafe fn Disconnect(&self) { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)) @@ -3212,18 +3212,18 @@ windows_core::imp::interface_hierarchy!(IRpcStubBuffer, windows_core::IUnknown); impl IRpcStubBuffer { pub unsafe fn Connect(&self, punkserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), punkserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), punkserver.param().abi()).ok() } pub unsafe fn Disconnect(&self) { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)) } pub unsafe fn Invoke(&self, _prpcmsg: *mut RPCOLEMESSAGE, _prpcchannelbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), _prpcmsg, _prpcchannelbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), _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), riid) @@ -3270,25 +3270,25 @@ impl IRunnableObject { } pub unsafe fn Run(&self, pbc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), pbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), pbc.param().abi()).ok() } pub unsafe fn IsRunning(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self)) } pub unsafe fn LockRunning(&self, flock: P0, flastunlockcloses: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LockRunning)(windows_core::Interface::as_raw(self), flock.into_param().abi(), flastunlockcloses.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LockRunning)(windows_core::Interface::as_raw(self), flock.param().abi(), flastunlockcloses.param().abi()).ok() } pub unsafe fn SetContainedObject(&self, fcontained: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContainedObject)(windows_core::Interface::as_raw(self), fcontained.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContainedObject)(windows_core::Interface::as_raw(self), fcontained.param().abi()).ok() } } #[repr(C)] @@ -3305,37 +3305,37 @@ windows_core::imp::interface_hierarchy!(IRunningObjectTable, windows_core::IUnkn impl IRunningObjectTable { pub unsafe fn Register(&self, grfflags: ROT_FLAGS, punkobject: P0, pmkobjectname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), grfflags, punkobject.into_param().abi(), pmkobjectname.into_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), dwregister).ok() } pub unsafe fn IsRunning(&self, pmkobjectname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self), pmkobjectname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self), pmkobjectname.param().abi()).ok() } pub unsafe fn GetObject(&self, pmkobjectname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pmkobjectname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), dwregister, pfiletime).ok() } pub unsafe fn GetTimeOfLastChange(&self, pmkobjectname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTimeOfLastChange)(windows_core::Interface::as_raw(self), pmkobjectname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTimeOfLastChange)(windows_core::Interface::as_raw(self), pmkobjectname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EnumRunning(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3439,9 +3439,9 @@ impl IStream { } pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).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() @@ -3516,10 +3516,10 @@ windows_core::imp::interface_hierarchy!(ISurrogateService, windows_core::IUnknow impl ISurrogateService { pub unsafe fn Init(&self, rguidprocessid: *const windows_core::GUID, pprocesslock: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), rguidprocessid, pprocesslock.into_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), rguidapplid, apptype).ok() @@ -3568,9 +3568,9 @@ windows_core::imp::interface_hierarchy!(ISynchronizeContainer, windows_core::IUn impl ISynchronizeContainer { pub unsafe fn AddSynchronize(&self, psync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSynchronize)(windows_core::Interface::as_raw(self), psync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSynchronize)(windows_core::Interface::as_raw(self), psync.param().abi()).ok() } pub unsafe fn WaitMultiple(&self, dwflags: u32, dwtimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3651,15 +3651,15 @@ impl ITypeComp { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub unsafe fn Bind(&self, szname: P0, lhashval: u32, wflags: u16, pptinfo: *mut Option, pdesckind: *mut DESCKIND, pbindptr: *mut BINDPTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), szname.into_param().abi(), lhashval, wflags, core::mem::transmute(pptinfo), pdesckind, pbindptr).ok() + (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), szname.param().abi(), lhashval, wflags, core::mem::transmute(pptinfo), pdesckind, pbindptr).ok() } pub unsafe fn BindType(&self, szname: P0, lhashval: u32, pptinfo: *mut Option, pptcomp: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindType)(windows_core::Interface::as_raw(self), szname.into_param().abi(), 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)] @@ -3725,11 +3725,11 @@ impl ITypeInfo { } pub unsafe fn CreateInstance(&self, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &T::IID, &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(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMops(&self, memid: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3846,11 +3846,11 @@ impl ITypeInfo2 { } pub unsafe fn CreateInstance(&self, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMops(&self, memid: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4223,10 +4223,10 @@ impl IUri { } pub unsafe fn IsEqual(&self, puri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), puri.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), puri.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -4279,9 +4279,9 @@ impl IUriBuilder { } pub unsafe fn SetIUri(&self, piuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIUri)(windows_core::Interface::as_raw(self), piuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIUri)(windows_core::Interface::as_raw(self), piuri.param().abi()).ok() } pub unsafe fn GetFragment(&self, pcchfragment: *mut u32, ppwzfragment: *mut windows_core::PCWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFragment)(windows_core::Interface::as_raw(self), pcchfragment, ppwzfragment).ok() @@ -4309,51 +4309,51 @@ impl IUriBuilder { } pub unsafe fn SetFragment(&self, pwznewvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFragment)(windows_core::Interface::as_raw(self), pwznewvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFragment)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn SetHost(&self, pwznewvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHost)(windows_core::Interface::as_raw(self), pwznewvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHost)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn SetPassword(&self, pwznewvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), pwznewvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn SetPath(&self, pwznewvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pwznewvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn SetPort(&self, fhasport: P0, dwnewvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), fhasport.into_param().abi(), dwnewvalue).ok() + (windows_core::Interface::vtable(self).SetPort)(windows_core::Interface::as_raw(self), fhasport.param().abi(), dwnewvalue).ok() } pub unsafe fn SetQuery(&self, pwznewvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuery)(windows_core::Interface::as_raw(self), pwznewvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuery)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn SetSchemeName(&self, pwznewvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSchemeName)(windows_core::Interface::as_raw(self), pwznewvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSchemeName)(windows_core::Interface::as_raw(self), pwznewvalue.param().abi()).ok() } pub unsafe fn SetUserName(&self, pwznewvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserName)(windows_core::Interface::as_raw(self), pwznewvalue.into_param().abi()).ok() + (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), dwpropertymask).ok() @@ -4395,12 +4395,12 @@ windows_core::imp::interface_hierarchy!(IUrlMon, windows_core::IUnknown); impl IUrlMon { pub unsafe fn AsyncGetClassBits(&self, rclsid: *const windows_core::GUID, psztype: P0, pszext: P1, dwfileversionms: u32, dwfileversionls: u32, pszcodebase: P2, pbc: P3, dwclasscontext: u32, riid: *const windows_core::GUID, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncGetClassBits)(windows_core::Interface::as_raw(self), rclsid, psztype.into_param().abi(), pszext.into_param().abi(), dwfileversionms, dwfileversionls, pszcodebase.into_param().abi(), pbc.into_param().abi(), dwclasscontext, riid, 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)] @@ -4417,9 +4417,9 @@ impl IWaitMultiple { } pub unsafe fn AddSynchronize(&self, psync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSynchronize)(windows_core::Interface::as_raw(self), psync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSynchronize)(windows_core::Interface::as_raw(self), psync.param().abi()).ok() } } #[repr(C)] 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 a7acb37a2f..b15f61ded8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn CoCreateActivity(piunknown: P0, riid: *const windows_core::GUID, ppobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppobj).ok() + CoCreateActivity(piunknown.param().abi(), riid, ppobj).ok() } #[inline] pub unsafe fn CoEnterServiceDomain(pconfigobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comsvcs.dll" "system" fn CoEnterServiceDomain(pconfigobject : * mut core::ffi::c_void) -> windows_core::HRESULT); - CoEnterServiceDomain(pconfigobject.into_param().abi()).ok() + CoEnterServiceDomain(pconfigobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -23,10 +23,10 @@ pub unsafe fn CoGetDefaultContext(apttype: super::Com::APTTYPE, riid: *const win #[inline] pub unsafe fn CoLeaveServiceDomain(punkstatus: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comsvcs.dll" "system" fn CoLeaveServiceDomain(punkstatus : * mut core::ffi::c_void)); - CoLeaveServiceDomain(punkstatus.into_param().abi()) + CoLeaveServiceDomain(punkstatus.param().abi()) } #[inline] pub unsafe fn GetDispenserManager() -> windows_core::Result { @@ -52,10 +52,10 @@ pub unsafe fn RecycleSurrogate(lreasoncode: i32) -> windows_core::Result<()> { #[inline] pub unsafe fn SafeRef(rid: *const windows_core::GUID, punk: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: 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(rid, punk.into_param().abi()) + SafeRef(rid, punk.param().abi()) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(ContextInfo, ContextInfo_Vtbl, 0x19a5a02c_0ac8_11d2_b286_00c04f8ef934); @@ -149,15 +149,15 @@ windows_core::imp::interface_hierarchy!(IAppDomainHelper, windows_core::IUnknown impl IAppDomainHelper { pub unsafe fn Initialize(&self, punkad: P0, __midl__iappdomainhelper0000: isize, ppool: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkad.into_param().abi(), __midl__iappdomainhelper0000, ppool).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punkad.param().abi(), __midl__iappdomainhelper0000, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoCallback)(windows_core::Interface::as_raw(self), punkad.into_param().abi(), __midl__iappdomainhelper0001, ppool).ok() + (windows_core::Interface::vtable(self).DoCallback)(windows_core::Interface::as_raw(self), punkad.param().abi(), __midl__iappdomainhelper0001, ppool).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -176,12 +176,12 @@ impl IAssemblyLocator { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetModules(&self, applicationdir: P0, applicationname: P1, assemblyname: P2) -> windows_core::Result<*mut super::Com::SAFEARRAY> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModules)(windows_core::Interface::as_raw(self), applicationdir.into_param().abi(), applicationname.into_param().abi(), assemblyname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetModules)(windows_core::Interface::as_raw(self), applicationdir.param().abi(), applicationname.param().abi(), assemblyname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -214,18 +214,18 @@ impl ICOMAdminCatalog { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollection(&self, bstrcollname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Connect(&self, bstrcatalogservername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrcatalogservername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrcatalogservername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MajorVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -238,49 +238,49 @@ impl ICOMAdminCatalog { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollectionByQuery(&self, bstrcollname: P0, ppsavarquery: *const *const super::Com::SAFEARRAY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCollectionByQuery)(windows_core::Interface::as_raw(self), bstrcollname.into_param().abi(), ppsavarquery, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCollectionByQuery)(windows_core::Interface::as_raw(self), bstrcollname.param().abi(), ppsavarquery, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ImportComponent(&self, bstrapplidorname: P0, bstrclsidorprogid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrclsidorprogid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImportComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrclsidorprogid.param().abi()).ok() } pub unsafe fn InstallComponent(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrdll.into_param().abi(), bstrtlb.into_param().abi(), bstrpsdll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrdll.param().abi(), bstrtlb.param().abi(), bstrpsdll.param().abi()).ok() } pub unsafe fn ShutdownApplication(&self, bstrapplidorname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShutdownApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShutdownApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi()).ok() } pub unsafe fn ExportApplication(&self, bstrapplidorname: P0, bstrapplicationfile: P1, loptions: COMAdminApplicationExportOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExportApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrapplicationfile.into_param().abi(), loptions).ok() + (windows_core::Interface::vtable(self).ExportApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrapplicationfile.param().abi(), loptions).ok() } pub unsafe fn InstallApplication(&self, bstrapplicationfile: P0, bstrdestinationdirectory: P1, loptions: COMAdminApplicationInstallOptions, bstruserid: P2, bstrpassword: P3, bstrrsn: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallApplication)(windows_core::Interface::as_raw(self), bstrapplicationfile.into_param().abi(), bstrdestinationdirectory.into_param().abi(), loptions, bstruserid.into_param().abi(), bstrpassword.into_param().abi(), bstrrsn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallApplication)(windows_core::Interface::as_raw(self), bstrapplicationfile.param().abi(), bstrdestinationdirectory.param().abi(), loptions, bstruserid.param().abi(), bstrpassword.param().abi(), bstrrsn.param().abi()).ok() } pub unsafe fn StopRouter(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopRouter)(windows_core::Interface::as_raw(self)).ok() @@ -300,44 +300,44 @@ impl ICOMAdminCatalog { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstallMultipleComponents(&self, bstrapplidorname: P0, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallMultipleComponents)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), ppsavarfilenames, ppsavarclsids).ok() + (windows_core::Interface::vtable(self).InstallMultipleComponents)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), ppsavarfilenames, ppsavarclsids).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMultipleComponentsInfo(&self, bstrapplidorname: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMultipleComponentsInfo)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), ppsavarfilenames, ppsavarclsids, ppsavarclassnames, ppsavarfileflags, ppsavarcomponentflags).ok() + (windows_core::Interface::vtable(self).GetMultipleComponentsInfo)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), ppsavarfilenames, ppsavarclsids, ppsavarclassnames, ppsavarfileflags, ppsavarcomponentflags).ok() } pub unsafe fn RefreshComponents(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RefreshComponents)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn BackupREGDB(&self, bstrbackupfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BackupREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BackupREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.param().abi()).ok() } pub unsafe fn RestoreREGDB(&self, bstrbackupfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RestoreREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryApplicationFile(&self, bstrapplicationfile: P0, pbstrapplicationname: *mut windows_core::BSTR, pbstrapplicationdescription: *mut windows_core::BSTR, pbhasusers: *mut super::super::Foundation::VARIANT_BOOL, pbisproxy: *mut super::super::Foundation::VARIANT_BOOL, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryApplicationFile)(windows_core::Interface::as_raw(self), bstrapplicationfile.into_param().abi(), core::mem::transmute(pbstrapplicationname), core::mem::transmute(pbstrapplicationdescription), pbhasusers, pbisproxy, ppsavarfilenames).ok() + (windows_core::Interface::vtable(self).QueryApplicationFile)(windows_core::Interface::as_raw(self), bstrapplicationfile.param().abi(), core::mem::transmute(pbstrapplicationname), core::mem::transmute(pbstrapplicationdescription), pbhasusers, pbisproxy, ppsavarfilenames).ok() } pub unsafe fn StartApplication(&self, bstrapplidorname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi()).ok() } pub unsafe fn ServiceCheck(&self, lservice: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -346,25 +346,25 @@ impl ICOMAdminCatalog { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstallMultipleEventClasses(&self, bstrapplidorname: P0, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallMultipleEventClasses)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), ppsavarfilenames, ppsavarclsids).ok() + (windows_core::Interface::vtable(self).InstallMultipleEventClasses)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), ppsavarfilenames, ppsavarclsids).ok() } pub unsafe fn InstallEventClass(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallEventClass)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrdll.into_param().abi(), bstrtlb.into_param().abi(), bstrpsdll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallEventClass)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrdll.param().abi(), bstrtlb.param().abi(), bstrpsdll.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEventClassesForIID(&self, bstriid: P0, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventClassesForIID)(windows_core::Interface::as_raw(self), bstriid.into_param().abi(), ppsavarclsids, ppsavarprogids, ppsavardescriptions).ok() + (windows_core::Interface::vtable(self).GetEventClassesForIID)(windows_core::Interface::as_raw(self), bstriid.param().abi(), ppsavarclsids, ppsavarprogids, ppsavardescriptions).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -431,18 +431,18 @@ impl ICOMAdminCatalog2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollection(&self, bstrcollname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Connect(&self, bstrcatalogservername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), bstrcatalogservername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Connect)(windows_core::Interface::as_raw(self), bstrcatalogservername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MajorVersion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -455,49 +455,49 @@ impl ICOMAdminCatalog2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollectionByQuery(&self, bstrcollname: P0, ppsavarquery: *const *const super::Com::SAFEARRAY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCollectionByQuery)(windows_core::Interface::as_raw(self), bstrcollname.into_param().abi(), ppsavarquery, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCollectionByQuery)(windows_core::Interface::as_raw(self), bstrcollname.param().abi(), ppsavarquery, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ImportComponent(&self, bstrapplidorname: P0, bstrclsidorprogid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ImportComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrclsidorprogid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ImportComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrclsidorprogid.param().abi()).ok() } pub unsafe fn InstallComponent(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstallComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrdll.into_param().abi(), bstrtlb.into_param().abi(), bstrpsdll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstallComponent)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrdll.param().abi(), bstrtlb.param().abi(), bstrpsdll.param().abi()).ok() } pub unsafe fn ShutdownApplication(&self, bstrapplidorname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShutdownApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ShutdownApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi()).ok() } pub unsafe fn ExportApplication(&self, bstrapplidorname: P0, bstrapplicationfile: P1, loptions: COMAdminApplicationExportOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExportApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrapplicationfile.into_param().abi(), loptions).ok() + (windows_core::Interface::vtable(self).base__.ExportApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrapplicationfile.param().abi(), loptions).ok() } pub unsafe fn InstallApplication(&self, bstrapplicationfile: P0, bstrdestinationdirectory: P1, loptions: COMAdminApplicationInstallOptions, bstruserid: P2, bstrpassword: P3, bstrrsn: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstallApplication)(windows_core::Interface::as_raw(self), bstrapplicationfile.into_param().abi(), bstrdestinationdirectory.into_param().abi(), loptions, bstruserid.into_param().abi(), bstrpassword.into_param().abi(), bstrrsn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstallApplication)(windows_core::Interface::as_raw(self), bstrapplicationfile.param().abi(), bstrdestinationdirectory.param().abi(), loptions, bstruserid.param().abi(), bstrpassword.param().abi(), bstrrsn.param().abi()).ok() } pub unsafe fn StopRouter(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StopRouter)(windows_core::Interface::as_raw(self)).ok() @@ -517,44 +517,44 @@ impl ICOMAdminCatalog2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstallMultipleComponents(&self, bstrapplidorname: P0, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstallMultipleComponents)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), ppsavarfilenames, ppsavarclsids).ok() + (windows_core::Interface::vtable(self).base__.InstallMultipleComponents)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), ppsavarfilenames, ppsavarclsids).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMultipleComponentsInfo(&self, bstrapplidorname: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMultipleComponentsInfo)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), ppsavarfilenames, ppsavarclsids, ppsavarclassnames, ppsavarfileflags, ppsavarcomponentflags).ok() + (windows_core::Interface::vtable(self).base__.GetMultipleComponentsInfo)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), ppsavarfilenames, ppsavarclsids, ppsavarclassnames, ppsavarfileflags, ppsavarcomponentflags).ok() } pub unsafe fn RefreshComponents(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RefreshComponents)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn BackupREGDB(&self, bstrbackupfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BackupREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BackupREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.param().abi()).ok() } pub unsafe fn RestoreREGDB(&self, bstrbackupfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RestoreREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RestoreREGDB)(windows_core::Interface::as_raw(self), bstrbackupfilepath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryApplicationFile(&self, bstrapplicationfile: P0, pbstrapplicationname: *mut windows_core::BSTR, pbstrapplicationdescription: *mut windows_core::BSTR, pbhasusers: *mut super::super::Foundation::VARIANT_BOOL, pbisproxy: *mut super::super::Foundation::VARIANT_BOOL, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryApplicationFile)(windows_core::Interface::as_raw(self), bstrapplicationfile.into_param().abi(), core::mem::transmute(pbstrapplicationname), core::mem::transmute(pbstrapplicationdescription), pbhasusers, pbisproxy, ppsavarfilenames).ok() + (windows_core::Interface::vtable(self).base__.QueryApplicationFile)(windows_core::Interface::as_raw(self), bstrapplicationfile.param().abi(), core::mem::transmute(pbstrapplicationname), core::mem::transmute(pbstrapplicationdescription), pbhasusers, pbisproxy, ppsavarfilenames).ok() } pub unsafe fn StartApplication(&self, bstrapplidorname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StartApplication)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi()).ok() } pub unsafe fn ServiceCheck(&self, lservice: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -563,33 +563,33 @@ impl ICOMAdminCatalog2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstallMultipleEventClasses(&self, bstrapplidorname: P0, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstallMultipleEventClasses)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), ppsavarfilenames, ppsavarclsids).ok() + (windows_core::Interface::vtable(self).base__.InstallMultipleEventClasses)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), ppsavarfilenames, ppsavarclsids).ok() } pub unsafe fn InstallEventClass(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstallEventClass)(windows_core::Interface::as_raw(self), bstrapplidorname.into_param().abi(), bstrdll.into_param().abi(), bstrtlb.into_param().abi(), bstrpsdll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstallEventClass)(windows_core::Interface::as_raw(self), bstrapplidorname.param().abi(), bstrdll.param().abi(), bstrtlb.param().abi(), bstrpsdll.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEventClassesForIID(&self, bstriid: P0, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEventClassesForIID)(windows_core::Interface::as_raw(self), bstriid.into_param().abi(), ppsavarclsids, ppsavarprogids, ppsavardescriptions).ok() + (windows_core::Interface::vtable(self).base__.GetEventClassesForIID)(windows_core::Interface::as_raw(self), bstriid.param().abi(), ppsavarclsids, ppsavarprogids, ppsavardescriptions).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollectionByQuery2(&self, bstrcollectionname: P0, pvarquerystrings: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCollectionByQuery2)(windows_core::Interface::as_raw(self), bstrcollectionname.into_param().abi(), core::mem::transmute(pvarquerystrings), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCollectionByQuery2)(windows_core::Interface::as_raw(self), bstrcollectionname.param().abi(), core::mem::transmute(pvarquerystrings), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetApplicationInstanceIDFromProcessID(&self, lprocessid: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -613,11 +613,11 @@ impl ICOMAdminCatalog2 { } pub unsafe fn DumpApplicationInstance(&self, bstrapplicationinstanceid: P0, bstrdirectory: P1, lmaximages: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DumpApplicationInstance)(windows_core::Interface::as_raw(self), bstrapplicationinstanceid.into_param().abi(), bstrdirectory.into_param().abi(), lmaximages, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DumpApplicationInstance)(windows_core::Interface::as_raw(self), bstrapplicationinstanceid.param().abi(), bstrdirectory.param().abi(), lmaximages, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsApplicationInstanceDumpSupported(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -625,42 +625,42 @@ impl ICOMAdminCatalog2 { } pub unsafe fn CreateServiceForApplication(&self, bstrapplicationidorname: P0, bstrservicename: P1, bstrstarttype: P2, bstrerrorcontrol: P3, bstrdependencies: P4, bstrrunas: P5, bstrpassword: P6, bdesktopok: P7) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateServiceForApplication)(windows_core::Interface::as_raw(self), bstrapplicationidorname.into_param().abi(), bstrservicename.into_param().abi(), bstrstarttype.into_param().abi(), bstrerrorcontrol.into_param().abi(), bstrdependencies.into_param().abi(), bstrrunas.into_param().abi(), bstrpassword.into_param().abi(), bdesktopok.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateServiceForApplication)(windows_core::Interface::as_raw(self), bstrapplicationidorname.param().abi(), bstrservicename.param().abi(), bstrstarttype.param().abi(), bstrerrorcontrol.param().abi(), bstrdependencies.param().abi(), bstrrunas.param().abi(), bstrpassword.param().abi(), bdesktopok.param().abi()).ok() } pub unsafe fn DeleteServiceForApplication(&self, bstrapplicationidorname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteServiceForApplication)(windows_core::Interface::as_raw(self), bstrapplicationidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteServiceForApplication)(windows_core::Interface::as_raw(self), bstrapplicationidorname.param().abi()).ok() } pub unsafe fn GetPartitionID(&self, bstrapplicationidorname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartitionID)(windows_core::Interface::as_raw(self), bstrapplicationidorname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPartitionID)(windows_core::Interface::as_raw(self), bstrapplicationidorname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPartitionName(&self, bstrapplicationidorname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartitionName)(windows_core::Interface::as_raw(self), bstrapplicationidorname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPartitionName)(windows_core::Interface::as_raw(self), bstrapplicationidorname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetCurrentPartition(&self, bstrpartitionidorname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCurrentPartition)(windows_core::Interface::as_raw(self), bstrpartitionidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCurrentPartition)(windows_core::Interface::as_raw(self), bstrpartitionidorname.param().abi()).ok() } pub unsafe fn CurrentPartitionID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -679,59 +679,59 @@ impl ICOMAdminCatalog2 { } pub unsafe fn CopyApplications(&self, bstrsourcepartitionidorname: P0, pvarapplicationid: *const windows_core::VARIANT, bstrdestinationpartitionidorname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyApplications)(windows_core::Interface::as_raw(self), bstrsourcepartitionidorname.into_param().abi(), core::mem::transmute(pvarapplicationid), bstrdestinationpartitionidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyApplications)(windows_core::Interface::as_raw(self), bstrsourcepartitionidorname.param().abi(), core::mem::transmute(pvarapplicationid), bstrdestinationpartitionidorname.param().abi()).ok() } pub unsafe fn CopyComponents(&self, bstrsourceapplicationidorname: P0, pvarclsidorprogid: *const windows_core::VARIANT, bstrdestinationapplicationidorname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyComponents)(windows_core::Interface::as_raw(self), bstrsourceapplicationidorname.into_param().abi(), core::mem::transmute(pvarclsidorprogid), bstrdestinationapplicationidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyComponents)(windows_core::Interface::as_raw(self), bstrsourceapplicationidorname.param().abi(), core::mem::transmute(pvarclsidorprogid), bstrdestinationapplicationidorname.param().abi()).ok() } pub unsafe fn MoveComponents(&self, bstrsourceapplicationidorname: P0, pvarclsidorprogid: *const windows_core::VARIANT, bstrdestinationapplicationidorname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveComponents)(windows_core::Interface::as_raw(self), bstrsourceapplicationidorname.into_param().abi(), core::mem::transmute(pvarclsidorprogid), bstrdestinationapplicationidorname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveComponents)(windows_core::Interface::as_raw(self), bstrsourceapplicationidorname.param().abi(), core::mem::transmute(pvarclsidorprogid), bstrdestinationapplicationidorname.param().abi()).ok() } pub unsafe fn AliasComponent(&self, bstrsrcapplicationidorname: P0, bstrclsidorprogid: P1, bstrdestapplicationidorname: P2, bstrnewprogid: P3, bstrnewclsid: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AliasComponent)(windows_core::Interface::as_raw(self), bstrsrcapplicationidorname.into_param().abi(), bstrclsidorprogid.into_param().abi(), bstrdestapplicationidorname.into_param().abi(), bstrnewprogid.into_param().abi(), bstrnewclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AliasComponent)(windows_core::Interface::as_raw(self), bstrsrcapplicationidorname.param().abi(), bstrclsidorprogid.param().abi(), bstrdestapplicationidorname.param().abi(), bstrnewprogid.param().abi(), bstrnewclsid.param().abi()).ok() } pub unsafe fn IsSafeToDelete(&self, bstrdllname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSafeToDelete)(windows_core::Interface::as_raw(self), bstrdllname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSafeToDelete)(windows_core::Interface::as_raw(self), bstrdllname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ImportUnconfiguredComponents(&self, bstrapplicationidorname: P0, pvarclsidorprogid: *const windows_core::VARIANT, pvarcomponenttype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportUnconfiguredComponents)(windows_core::Interface::as_raw(self), bstrapplicationidorname.into_param().abi(), core::mem::transmute(pvarclsidorprogid), core::mem::transmute(pvarcomponenttype)).ok() + (windows_core::Interface::vtable(self).ImportUnconfiguredComponents)(windows_core::Interface::as_raw(self), bstrapplicationidorname.param().abi(), core::mem::transmute(pvarclsidorprogid), core::mem::transmute(pvarcomponenttype)).ok() } pub unsafe fn PromoteUnconfiguredComponents(&self, bstrapplicationidorname: P0, pvarclsidorprogid: *const windows_core::VARIANT, pvarcomponenttype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PromoteUnconfiguredComponents)(windows_core::Interface::as_raw(self), bstrapplicationidorname.into_param().abi(), core::mem::transmute(pvarclsidorprogid), core::mem::transmute(pvarcomponenttype)).ok() + (windows_core::Interface::vtable(self).PromoteUnconfiguredComponents)(windows_core::Interface::as_raw(self), bstrapplicationidorname.param().abi(), core::mem::transmute(pvarclsidorprogid), core::mem::transmute(pvarcomponenttype)).ok() } pub unsafe fn ImportComponents(&self, bstrapplicationidorname: P0, pvarclsidorprogid: *const windows_core::VARIANT, pvarcomponenttype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportComponents)(windows_core::Interface::as_raw(self), bstrapplicationidorname.into_param().abi(), core::mem::transmute(pvarclsidorprogid), core::mem::transmute(pvarcomponenttype)).ok() + (windows_core::Interface::vtable(self).ImportComponents)(windows_core::Interface::as_raw(self), bstrapplicationidorname.param().abi(), core::mem::transmute(pvarclsidorprogid), core::mem::transmute(pvarcomponenttype)).ok() } pub unsafe fn Is64BitCatalogServer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -739,35 +739,35 @@ impl ICOMAdminCatalog2 { } pub unsafe fn ExportPartition(&self, bstrpartitionidorname: P0, bstrpartitionfilename: P1, loptions: COMAdminApplicationExportOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExportPartition)(windows_core::Interface::as_raw(self), bstrpartitionidorname.into_param().abi(), bstrpartitionfilename.into_param().abi(), loptions).ok() + (windows_core::Interface::vtable(self).ExportPartition)(windows_core::Interface::as_raw(self), bstrpartitionidorname.param().abi(), bstrpartitionfilename.param().abi(), loptions).ok() } pub unsafe fn InstallPartition(&self, bstrfilename: P0, bstrdestdirectory: P1, loptions: COMAdminApplicationInstallOptions, bstruserid: P2, bstrpassword: P3, bstrrsn: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallPartition)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), bstrdestdirectory.into_param().abi(), loptions, bstruserid.into_param().abi(), bstrpassword.into_param().abi(), bstrrsn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallPartition)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), bstrdestdirectory.param().abi(), loptions, bstruserid.param().abi(), bstrpassword.param().abi(), bstrrsn.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryApplicationFile2(&self, bstrapplicationfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryApplicationFile2)(windows_core::Interface::as_raw(self), bstrapplicationfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryApplicationFile2)(windows_core::Interface::as_raw(self), bstrapplicationfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetComponentVersionCount(&self, bstrclsidorprogid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetComponentVersionCount)(windows_core::Interface::as_raw(self), bstrclsidorprogid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetComponentVersionCount)(windows_core::Interface::as_raw(self), bstrclsidorprogid.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -873,11 +873,11 @@ impl ICatalogCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollection(&self, bstrcollname: P0, varobjectkey: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.into_param().abi(), varobjectkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.param().abi(), varobjectkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -910,9 +910,9 @@ impl ICatalogCollection { } pub unsafe fn PopulateByQuery(&self, bstrquerystring: P0, lquerytype: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PopulateByQuery)(windows_core::Interface::as_raw(self), bstrquerystring.into_param().abi(), lquerytype).ok() + (windows_core::Interface::vtable(self).PopulateByQuery)(windows_core::Interface::as_raw(self), bstrquerystring.param().abi(), lquerytype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -959,17 +959,17 @@ windows_core::imp::interface_hierarchy!(ICatalogObject, windows_core::IUnknown, impl ICatalogObject { pub unsafe fn get_Value(&self, bstrpropname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Value)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Value)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn put_Value(&self, bstrpropname: P0, val: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Value)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Value)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), val.param().abi()).ok() } pub unsafe fn Key(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -981,10 +981,10 @@ impl ICatalogObject { } pub unsafe fn IsPropertyReadOnly(&self, bstrpropname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPropertyReadOnly)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPropertyReadOnly)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Valid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -992,10 +992,10 @@ impl ICatalogObject { } pub unsafe fn IsPropertyWriteOnly(&self, bstrpropname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPropertyWriteOnly)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPropertyWriteOnly)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1015,11 +1015,11 @@ windows_core::imp::interface_hierarchy!(ICheckSxsConfig, windows_core::IUnknown) impl ICheckSxsConfig { pub unsafe fn IsSameSxsConfig(&self, wszsxsname: P0, wszsxsdirectory: P1, wszsxsappname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsSameSxsConfig)(windows_core::Interface::as_raw(self), wszsxsname.into_param().abi(), wszsxsdirectory.into_param().abi(), wszsxsappname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsSameSxsConfig)(windows_core::Interface::as_raw(self), wszsxsname.param().abi(), wszsxsdirectory.param().abi(), wszsxsappname.param().abi()).ok() } } #[repr(C)] @@ -1077,9 +1077,9 @@ impl IComApp2Events { } pub unsafe fn OnAppPaused2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, bpaused: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAppPaused2)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp), bpaused.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnAppPaused2)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidapp), bpaused.param().abi()).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), pinfo, core::mem::transmute(guidapp), core::mem::transmute(guidprocess), lreason).ok() @@ -1152,9 +1152,9 @@ impl IComCRMEvents { } pub unsafe fn OnCRMWrite(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: P0, dwrecordsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCRMWrite)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), fvariants.into_param().abi(), dwrecordsize).ok() + (windows_core::Interface::vtable(self).OnCRMWrite)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), fvariants.param().abi(), 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), pinfo, core::mem::transmute(guidclerkclsid)).ok() @@ -1164,9 +1164,9 @@ impl IComCRMEvents { } pub unsafe fn OnCRMDeliver(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: P0, dwrecordsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCRMDeliver)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), fvariants.into_param().abi(), dwrecordsize).ok() + (windows_core::Interface::vtable(self).OnCRMDeliver)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidclerkclsid), fvariants.param().abi(), dwrecordsize).ok() } } #[repr(C)] @@ -1193,9 +1193,9 @@ windows_core::imp::interface_hierarchy!(IComExceptionEvents, windows_core::IUnkn impl IComExceptionEvents { pub unsafe fn OnExceptionUser(&self, pinfo: *const COMSVCSEVENTINFO, code: u32, address: u64, pszstacktrace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnExceptionUser)(windows_core::Interface::as_raw(self), pinfo, code, address, pszstacktrace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnExceptionUser)(windows_core::Interface::as_raw(self), pinfo, code, address, pszstacktrace.param().abi()).ok() } } #[repr(C)] @@ -1208,11 +1208,11 @@ windows_core::imp::interface_hierarchy!(IComIdentityEvents, windows_core::IUnkno impl IComIdentityEvents { pub unsafe fn OnIISRequestInfo(&self, pinfo: *const COMSVCSEVENTINFO, objid: u64, pszclientip: P0, pszserverip: P1, pszurl: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIISRequestInfo)(windows_core::Interface::as_raw(self), pinfo, objid, pszclientip.into_param().abi(), pszserverip.into_param().abi(), pszurl.into_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)] @@ -1257,15 +1257,15 @@ 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: P0, nisolationlevel: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLtxTransactionStart)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx), core::mem::transmute(tsid), froot.into_param().abi(), nisolationlevel).ok() + (windows_core::Interface::vtable(self).OnLtxTransactionStart)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx), core::mem::transmute(tsid), froot.param().abi(), nisolationlevel).ok() } pub unsafe fn OnLtxTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, fvote: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLtxTransactionPrepare)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx), fvote.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnLtxTransactionPrepare)(windows_core::Interface::as_raw(self), pinfo, core::mem::transmute(guidltx), fvote.param().abi()).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), pinfo, core::mem::transmute(guidltx)).ok() @@ -1357,9 +1357,9 @@ windows_core::imp::interface_hierarchy!(IComObjectConstruction2Events, windows_c impl IComObjectConstruction2Events { pub unsafe fn OnObjectConstruct2(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: P0, oid: u64, guidpartition: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnObjectConstruct2)(windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.into_param().abi(), oid, guidpartition).ok() + (windows_core::Interface::vtable(self).OnObjectConstruct2)(windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.param().abi(), oid, guidpartition).ok() } } #[repr(C)] @@ -1372,9 +1372,9 @@ windows_core::imp::interface_hierarchy!(IComObjectConstructionEvents, windows_co impl IComObjectConstructionEvents { pub unsafe fn OnObjectConstruct(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: P0, oid: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnObjectConstruct)(windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.into_param().abi(), oid).ok() + (windows_core::Interface::vtable(self).OnObjectConstruct)(windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.param().abi(), oid).ok() } } #[repr(C)] @@ -1531,36 +1531,36 @@ windows_core::imp::interface_hierarchy!(IComResourceEvents, windows_core::IUnkno impl IComResourceEvents { pub unsafe fn OnResourceCreate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: P0, resid: u64, enlisted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceCreate)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.into_param().abi(), resid, enlisted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnResourceCreate)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.param().abi(), resid, enlisted.param().abi()).ok() } pub unsafe fn OnResourceAllocate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: P0, resid: u64, enlisted: P1, numrated: u32, rating: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceAllocate)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.into_param().abi(), resid, enlisted.into_param().abi(), numrated, rating).ok() + (windows_core::Interface::vtable(self).OnResourceAllocate)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.param().abi(), resid, enlisted.param().abi(), numrated, rating).ok() } pub unsafe fn OnResourceRecycle(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: P0, resid: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceRecycle)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.into_param().abi(), 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: P0, resid: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceDestroy)(windows_core::Interface::as_raw(self), pinfo, objectid, hr, psztype.into_param().abi(), 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: P0, resid: u64, enlisted: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnResourceTrack)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.into_param().abi(), resid, enlisted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnResourceTrack)(windows_core::Interface::as_raw(self), pinfo, objectid, psztype.param().abi(), resid, enlisted.param().abi()).ok() } } #[repr(C)] @@ -1577,15 +1577,15 @@ windows_core::imp::interface_hierarchy!(IComSecurityEvents, windows_core::IUnkno 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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_param().abi()).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.param().abi()).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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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_param().abi()).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.param().abi()).ok() } } #[repr(C)] @@ -1707,9 +1707,9 @@ impl IComStaThreadPoolKnobs2 { } pub unsafe fn SetCPUMetricEnabled(&self, bmetricenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCPUMetricEnabled)(windows_core::Interface::as_raw(self), bmetricenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCPUMetricEnabled)(windows_core::Interface::as_raw(self), bmetricenabled.param().abi()).ok() } pub unsafe fn GetCreateThreadsAggressively(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1717,9 +1717,9 @@ impl IComStaThreadPoolKnobs2 { } pub unsafe fn SetCreateThreadsAggressively(&self, bmetricenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCreateThreadsAggressively)(windows_core::Interface::as_raw(self), bmetricenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCreateThreadsAggressively)(windows_core::Interface::as_raw(self), bmetricenabled.param().abi()).ok() } pub unsafe fn GetMaxCSR(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1829,9 +1829,9 @@ windows_core::imp::interface_hierarchy!(IComTrackingInfoEvents, windows_core::IU impl IComTrackingInfoEvents { pub unsafe fn OnNewTrackingInfo(&self, ptoplevelcollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNewTrackingInfo)(windows_core::Interface::as_raw(self), ptoplevelcollection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnNewTrackingInfo)(windows_core::Interface::as_raw(self), ptoplevelcollection.param().abi()).ok() } } #[repr(C)] @@ -1844,10 +1844,10 @@ windows_core::imp::interface_hierarchy!(IComTrackingInfoObject, windows_core::IU impl IComTrackingInfoObject { pub unsafe fn GetValue(&self, szpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), szpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), szpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1878,15 +1878,15 @@ windows_core::imp::interface_hierarchy!(IComTransaction2Events, windows_core::IU impl IComTransaction2Events { pub unsafe fn OnTransactionStart2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: P0, nisolationlevel: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTransactionStart2)(windows_core::Interface::as_raw(self), pinfo, guidtx, tsid, froot.into_param().abi(), nisolationlevel).ok() + (windows_core::Interface::vtable(self).OnTransactionStart2)(windows_core::Interface::as_raw(self), pinfo, guidtx, tsid, froot.param().abi(), nisolationlevel).ok() } pub unsafe fn OnTransactionPrepare2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTransactionPrepare2)(windows_core::Interface::as_raw(self), pinfo, guidtx, fvoteyes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnTransactionPrepare2)(windows_core::Interface::as_raw(self), pinfo, guidtx, fvoteyes.param().abi()).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), pinfo, guidtx).ok() @@ -1908,15 +1908,15 @@ windows_core::imp::interface_hierarchy!(IComTransactionEvents, windows_core::IUn impl IComTransactionEvents { pub unsafe fn OnTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTransactionStart)(windows_core::Interface::as_raw(self), pinfo, guidtx, tsid, froot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnTransactionStart)(windows_core::Interface::as_raw(self), pinfo, guidtx, tsid, froot.param().abi()).ok() } pub unsafe fn OnTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTransactionPrepare)(windows_core::Interface::as_raw(self), pinfo, guidtx, fvoteyes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnTransactionPrepare)(windows_core::Interface::as_raw(self), pinfo, guidtx, fvoteyes.param().abi()).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), pinfo, guidtx).ok() @@ -1953,9 +1953,9 @@ impl IContextProperties { } pub unsafe fn GetProperty(&self, name: P0, pproperty: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), core::mem::transmute(pproperty)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(pproperty)).ok() } pub unsafe fn EnumNames(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1963,16 +1963,16 @@ impl IContextProperties { } pub unsafe fn SetProperty(&self, name: P0, property: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), property.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), name.param().abi(), property.param().abi()).ok() } pub unsafe fn RemoveProperty(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveProperty)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveProperty)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } #[repr(C)] @@ -1992,9 +1992,9 @@ impl IContextSecurityPerimeter { } pub unsafe fn SetPerimeterFlag(&self, fflag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPerimeterFlag)(windows_core::Interface::as_raw(self), fflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPerimeterFlag)(windows_core::Interface::as_raw(self), fflag.param().abi()).ok() } } #[repr(C)] @@ -2008,9 +2008,9 @@ windows_core::imp::interface_hierarchy!(IContextState, windows_core::IUnknown); impl IContextState { pub unsafe fn SetDeactivateOnReturn(&self, bdeactivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeactivateOnReturn)(windows_core::Interface::as_raw(self), bdeactivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDeactivateOnReturn)(windows_core::Interface::as_raw(self), bdeactivate.param().abi()).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), pbdeactivate).ok() @@ -2035,9 +2035,9 @@ windows_core::imp::interface_hierarchy!(ICreateWithLocalTransaction, windows_cor impl ICreateWithLocalTransaction { pub unsafe fn CreateInstanceWithSysTx(&self, ptransaction: P0, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstanceWithSysTx)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), rclsid, riid, pobject).ok() + (windows_core::Interface::vtable(self).CreateInstanceWithSysTx)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), rclsid, riid, pobject).ok() } } #[repr(C)] @@ -2050,11 +2050,11 @@ windows_core::imp::interface_hierarchy!(ICreateWithTipTransactionEx, windows_cor impl ICreateWithTipTransactionEx { pub unsafe fn CreateInstance(&self, bstrtipurl: P0, rclsid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), bstrtipurl.into_param().abi(), 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), bstrtipurl.param().abi(), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2068,11 +2068,11 @@ impl ICreateWithTransactionEx { #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn CreateInstance(&self, ptransaction: P0, rclsid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), 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)] @@ -2088,9 +2088,9 @@ windows_core::imp::interface_hierarchy!(ICrmCompensator, windows_core::IUnknown) impl ICrmCompensator { pub unsafe fn SetLogControl(&self, plogcontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogControl)(windows_core::Interface::as_raw(self), plogcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogControl)(windows_core::Interface::as_raw(self), plogcontrol.param().abi()).ok() } pub unsafe fn BeginPrepare(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginPrepare)(windows_core::Interface::as_raw(self)).ok() @@ -2106,9 +2106,9 @@ impl ICrmCompensator { } pub unsafe fn BeginCommit(&self, frecovery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCommit)(windows_core::Interface::as_raw(self), frecovery.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCommit)(windows_core::Interface::as_raw(self), frecovery.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { @@ -2120,9 +2120,9 @@ impl ICrmCompensator { } pub unsafe fn BeginAbort(&self, frecovery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginAbort)(windows_core::Interface::as_raw(self), frecovery.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginAbort)(windows_core::Interface::as_raw(self), frecovery.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AbortRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { @@ -2161,9 +2161,9 @@ windows_core::imp::interface_hierarchy!(ICrmCompensatorVariants, windows_core::I impl ICrmCompensatorVariants { pub unsafe fn SetLogControlVariants(&self, plogcontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogControlVariants)(windows_core::Interface::as_raw(self), plogcontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogControlVariants)(windows_core::Interface::as_raw(self), plogcontrol.param().abi()).ok() } pub unsafe fn BeginPrepareVariants(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BeginPrepareVariants)(windows_core::Interface::as_raw(self)).ok() @@ -2178,9 +2178,9 @@ impl ICrmCompensatorVariants { } pub unsafe fn BeginCommitVariants(&self, brecovery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginCommitVariants)(windows_core::Interface::as_raw(self), brecovery.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginCommitVariants)(windows_core::Interface::as_raw(self), brecovery.param().abi()).ok() } pub unsafe fn CommitRecordVariants(&self, plogrecord: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2191,9 +2191,9 @@ impl ICrmCompensatorVariants { } pub unsafe fn BeginAbortVariants(&self, brecovery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginAbortVariants)(windows_core::Interface::as_raw(self), brecovery.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeginAbortVariants)(windows_core::Interface::as_raw(self), brecovery.param().abi()).ok() } pub unsafe fn AbortRecordVariants(&self, plogrecord: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2235,10 +2235,10 @@ impl ICrmFormatLogRecords { } pub unsafe fn GetColumnVariants(&self, logrecord: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColumnVariants)(windows_core::Interface::as_raw(self), logrecord.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetColumnVariants)(windows_core::Interface::as_raw(self), logrecord.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2261,10 +2261,10 @@ impl ICrmLogControl { } pub unsafe fn RegisterCompensator(&self, lpcwstrprogidcompensator: P0, lpcwstrdescription: P1, lcrmregflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterCompensator)(windows_core::Interface::as_raw(self), lpcwstrprogidcompensator.into_param().abi(), lpcwstrdescription.into_param().abi(), lcrmregflags).ok() + (windows_core::Interface::vtable(self).RegisterCompensator)(windows_core::Interface::as_raw(self), lpcwstrprogidcompensator.param().abi(), lpcwstrdescription.param().abi(), lcrmregflags).ok() } pub unsafe fn WriteLogRecordVariants(&self, plogrecord: *const windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WriteLogRecordVariants)(windows_core::Interface::as_raw(self), core::mem::transmute(plogrecord)).ok() @@ -2307,10 +2307,10 @@ impl ICrmMonitor { } pub unsafe fn HoldClerk(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).HoldClerk)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).HoldClerk)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2330,10 +2330,10 @@ windows_core::imp::interface_hierarchy!(ICrmMonitorClerks, windows_core::IUnknow impl ICrmMonitorClerks { pub unsafe fn Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2345,31 +2345,31 @@ impl ICrmMonitorClerks { } pub unsafe fn ProgIdCompensator(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProgIdCompensator)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProgIdCompensator)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Description(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Description)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Description)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TransactionUOW(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TransactionUOW)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TransactionUOW)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ActivityId(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivityId)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ActivityId)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2405,10 +2405,10 @@ impl ICrmMonitorLogRecords { } pub unsafe fn GetLogRecordVariants(&self, indexnumber: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLogRecordVariants)(windows_core::Interface::as_raw(self), indexnumber.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLogRecordVariants)(windows_core::Interface::as_raw(self), indexnumber.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2431,9 +2431,9 @@ impl IDispenserDriver { } pub unsafe fn RateResource(&self, restypid: usize, resid: usize, frequirestransactionenlistment: P0, prating: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RateResource)(windows_core::Interface::as_raw(self), restypid, resid, frequirestransactionenlistment.into_param().abi(), prating).ok() + (windows_core::Interface::vtable(self).RateResource)(windows_core::Interface::as_raw(self), restypid, resid, frequirestransactionenlistment.param().abi(), 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), resid, transid).ok() @@ -2463,11 +2463,11 @@ windows_core::imp::interface_hierarchy!(IDispenserManager, windows_core::IUnknow impl IDispenserManager { pub unsafe fn RegisterDispenser(&self, __midl__idispensermanager0000: P0, szdispensername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDispenser)(windows_core::Interface::as_raw(self), __midl__idispensermanager0000.into_param().abi(), szdispensername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterDispenser)(windows_core::Interface::as_raw(self), __midl__idispensermanager0000.param().abi(), szdispensername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetContext(&self, __midl__idispensermanager0002: *mut usize, __midl__idispensermanager0003: *mut usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), __midl__idispensermanager0002, __midl__idispensermanager0003).ok() @@ -2512,17 +2512,17 @@ windows_core::imp::interface_hierarchy!(IEventServerTrace, windows_core::IUnknow impl IEventServerTrace { pub unsafe fn StartTraceGuid(&self, bstrguidevent: P0, bstrguidfilter: P1, lpidfilter: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartTraceGuid)(windows_core::Interface::as_raw(self), bstrguidevent.into_param().abi(), bstrguidfilter.into_param().abi(), lpidfilter).ok() + (windows_core::Interface::vtable(self).StartTraceGuid)(windows_core::Interface::as_raw(self), bstrguidevent.param().abi(), bstrguidfilter.param().abi(), lpidfilter).ok() } pub unsafe fn StopTraceGuid(&self, bstrguidevent: P0, bstrguidfilter: P1, lpidfilter: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StopTraceGuid)(windows_core::Interface::as_raw(self), bstrguidevent.into_param().abi(), bstrguidfilter.into_param().abi(), lpidfilter).ok() + (windows_core::Interface::vtable(self).StopTraceGuid)(windows_core::Interface::as_raw(self), bstrguidevent.param().abi(), bstrguidfilter.param().abi(), 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), plcntguids, core::mem::transmute(pbstrguidlist)).ok() @@ -2582,9 +2582,9 @@ impl IGetContextProperties { } pub unsafe fn GetProperty(&self, name: P0, pproperty: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), core::mem::transmute(pproperty)).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), name.param().abi(), core::mem::transmute(pproperty)).ok() } pub unsafe fn EnumNames(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2636,15 +2636,15 @@ impl IHolder { } pub unsafe fn UntrackResource(&self, __midl__iholder0005: usize, __midl__iholder0006: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UntrackResource)(windows_core::Interface::as_raw(self), __midl__iholder0005, __midl__iholder0006.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UntrackResource)(windows_core::Interface::as_raw(self), __midl__iholder0005, __midl__iholder0006.param().abi()).ok() } pub unsafe fn UntrackResourceS(&self, __midl__iholder0007: *mut u16, __midl__iholder0008: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UntrackResourceS)(windows_core::Interface::as_raw(self), __midl__iholder0007, __midl__iholder0008.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UntrackResourceS)(windows_core::Interface::as_raw(self), __midl__iholder0007, __midl__iholder0008.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -2670,24 +2670,24 @@ windows_core::imp::interface_hierarchy!(ILBEvents, windows_core::IUnknown); impl ILBEvents { pub unsafe fn TargetUp(&self, bstrservername: P0, bstrclsideng: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TargetUp)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), bstrclsideng.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TargetUp)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), bstrclsideng.param().abi()).ok() } pub unsafe fn TargetDown(&self, bstrservername: P0, bstrclsideng: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TargetDown)(windows_core::Interface::as_raw(self), bstrservername.into_param().abi(), bstrclsideng.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TargetDown)(windows_core::Interface::as_raw(self), bstrservername.param().abi(), bstrclsideng.param().abi()).ok() } pub unsafe fn EngineDefined(&self, bstrpropname: P0, varpropvalue: *const windows_core::VARIANT, bstrclsideng: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EngineDefined)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), core::mem::transmute(varpropvalue), bstrclsideng.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EngineDefined)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), core::mem::transmute(varpropvalue), bstrclsideng.param().abi()).ok() } } #[repr(C)] @@ -2702,15 +2702,15 @@ windows_core::imp::interface_hierarchy!(IMTSActivity, windows_core::IUnknown); impl IMTSActivity { pub unsafe fn SynchronousCall(&self, pcall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCall)(windows_core::Interface::as_raw(self), pcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SynchronousCall)(windows_core::Interface::as_raw(self), pcall.param().abi()).ok() } pub unsafe fn AsyncCall(&self, pcall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsyncCall)(windows_core::Interface::as_raw(self), pcall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsyncCall)(windows_core::Interface::as_raw(self), pcall.param().abi()).ok() } pub unsafe fn Reserved1(&self) { (windows_core::Interface::vtable(self).Reserved1)(windows_core::Interface::as_raw(self)) @@ -2765,16 +2765,16 @@ windows_core::imp::interface_hierarchy!(IManagedActivationEvents, windows_core:: impl IManagedActivationEvents { pub unsafe fn CreateManagedStub(&self, pinfo: P0, fdist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateManagedStub)(windows_core::Interface::as_raw(self), pinfo.into_param().abi(), fdist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateManagedStub)(windows_core::Interface::as_raw(self), pinfo.param().abi(), fdist.param().abi()).ok() } pub unsafe fn DestroyManagedStub(&self, pinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroyManagedStub)(windows_core::Interface::as_raw(self), pinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroyManagedStub)(windows_core::Interface::as_raw(self), pinfo.param().abi()).ok() } } #[repr(C)] @@ -2796,16 +2796,16 @@ impl IManagedObjectInfo { } pub unsafe fn SetInPool(&self, binpool: P0, ppooledobj: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInPool)(windows_core::Interface::as_raw(self), binpool.into_param().abi(), ppooledobj.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInPool)(windows_core::Interface::as_raw(self), binpool.param().abi(), ppooledobj.param().abi()).ok() } pub unsafe fn SetWrapperStrength(&self, bstrong: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWrapperStrength)(windows_core::Interface::as_raw(self), bstrong.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWrapperStrength)(windows_core::Interface::as_raw(self), bstrong.param().abi()).ok() } } #[repr(C)] @@ -2833,9 +2833,9 @@ windows_core::imp::interface_hierarchy!(IManagedPooledObj, windows_core::IUnknow impl IManagedPooledObj { pub unsafe fn SetHeld(&self, m_bheld: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHeld)(windows_core::Interface::as_raw(self), m_bheld.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHeld)(windows_core::Interface::as_raw(self), m_bheld.param().abi()).ok() } } #[repr(C)] @@ -2855,9 +2855,9 @@ impl IMessageMover { } pub unsafe fn SetSourcePath(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn DestPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2865,9 +2865,9 @@ impl IMessageMover { } pub unsafe fn SetDestPath(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDestPath)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDestPath)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn CommitBatchSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2917,10 +2917,10 @@ impl IMtsEventInfo { } pub unsafe fn get_Value(&self, skey: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Value)(windows_core::Interface::as_raw(self), skey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Value)(windows_core::Interface::as_raw(self), skey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3012,9 +3012,9 @@ impl IObjPool { } pub unsafe fn PutEndTx(&self, pobj: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutEndTx)(windows_core::Interface::as_raw(self), pobj.into_param().abi()) + (windows_core::Interface::vtable(self).PutEndTx)(windows_core::Interface::as_raw(self), pobj.param().abi()) } pub unsafe fn Reserved5(&self) { (windows_core::Interface::vtable(self).Reserved5)(windows_core::Interface::as_raw(self)) @@ -3040,9 +3040,9 @@ impl IObjectConstruct { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Construct(&self, pctorobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Construct)(windows_core::Interface::as_raw(self), pctorobj.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Construct)(windows_core::Interface::as_raw(self), pctorobj.param().abi()).ok() } } #[repr(C)] @@ -3095,9 +3095,9 @@ impl IObjectContext { } pub unsafe fn IsCallerInRole(&self, bstrrole: P0, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsCallerInRole)(windows_core::Interface::as_raw(self), bstrrole.into_param().abi(), pfisinrole).ok() + (windows_core::Interface::vtable(self).IsCallerInRole)(windows_core::Interface::as_raw(self), bstrrole.param().abi(), pfisinrole).ok() } } #[repr(C)] @@ -3245,9 +3245,9 @@ windows_core::imp::interface_hierarchy!(IPoolManager, windows_core::IUnknown, su impl IPoolManager { pub unsafe fn ShutdownPool(&self, clsidorprogid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShutdownPool)(windows_core::Interface::as_raw(self), clsidorprogid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShutdownPool)(windows_core::Interface::as_raw(self), clsidorprogid.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3261,9 +3261,9 @@ windows_core::imp::interface_hierarchy!(IProcessInitializer, windows_core::IUnkn impl IProcessInitializer { pub unsafe fn Startup(&self, punkprocesscontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Startup)(windows_core::Interface::as_raw(self), punkprocesscontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Startup)(windows_core::Interface::as_raw(self), punkprocesscontrol.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -3287,10 +3287,10 @@ impl ISecurityCallContext { } pub unsafe fn get_Item(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3298,10 +3298,10 @@ impl ISecurityCallContext { } pub unsafe fn IsCallerInRole(&self, bstrrole: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsCallerInRole)(windows_core::Interface::as_raw(self), bstrrole.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsCallerInRole)(windows_core::Interface::as_raw(self), bstrrole.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSecurityEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3309,10 +3309,10 @@ impl ISecurityCallContext { } pub unsafe fn IsUserInRole(&self, puser: *const windows_core::VARIANT, bstrrole: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUserInRole)(windows_core::Interface::as_raw(self), core::mem::transmute(puser), bstrrole.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUserInRole)(windows_core::Interface::as_raw(self), core::mem::transmute(puser), bstrrole.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3369,10 +3369,10 @@ impl ISecurityIdentityColl { } pub unsafe fn get_Item(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3404,9 +3404,9 @@ impl ISecurityProperty { } pub unsafe fn ReleaseSID(&self, psid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseSID)(windows_core::Interface::as_raw(self), psid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseSID)(windows_core::Interface::as_raw(self), psid.param().abi()).ok() } } #[repr(C)] @@ -3426,9 +3426,9 @@ impl ISelectCOMLBServer { } pub unsafe fn GetLBServer(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLBServer)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetLBServer)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } } #[repr(C)] @@ -3458,15 +3458,15 @@ windows_core::imp::interface_hierarchy!(IServiceActivity, windows_core::IUnknown impl IServiceActivity { pub unsafe fn SynchronousCall(&self, piservicecall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCall)(windows_core::Interface::as_raw(self), piservicecall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SynchronousCall)(windows_core::Interface::as_raw(self), piservicecall.param().abi()).ok() } pub unsafe fn AsynchronousCall(&self, piservicecall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCall)(windows_core::Interface::as_raw(self), piservicecall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AsynchronousCall)(windows_core::Interface::as_raw(self), piservicecall.param().abi()).ok() } pub unsafe fn BindToCurrentThread(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BindToCurrentThread)(windows_core::Interface::as_raw(self)).ok() @@ -3552,9 +3552,9 @@ windows_core::imp::interface_hierarchy!(IServicePool, windows_core::IUnknown); impl IServicePool { pub unsafe fn Initialize(&self, ppoolconfig: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), ppoolconfig.into_param().abi()).ok() + (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), riid, ppv).ok() @@ -3593,9 +3593,9 @@ impl IServicePoolConfig { } pub unsafe fn SetTransactionAffinity(&self, ftxaffinity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransactionAffinity)(windows_core::Interface::as_raw(self), ftxaffinity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTransactionAffinity)(windows_core::Interface::as_raw(self), ftxaffinity.param().abi()).ok() } pub unsafe fn TransactionAffinity(&self, pftxaffinity: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TransactionAffinity)(windows_core::Interface::as_raw(self), pftxaffinity).ok() @@ -3603,9 +3603,9 @@ impl IServicePoolConfig { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetClassFactory(&self, pfactory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClassFactory)(windows_core::Interface::as_raw(self), pfactory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClassFactory)(windows_core::Interface::as_raw(self), pfactory.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ClassFactory(&self) -> windows_core::Result { @@ -3641,15 +3641,15 @@ impl IServiceSxsConfig { } pub unsafe fn SxsName(&self, szsxsname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SxsName)(windows_core::Interface::as_raw(self), szsxsname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SxsName)(windows_core::Interface::as_raw(self), szsxsname.param().abi()).ok() } pub unsafe fn SxsDirectory(&self, szsxsdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SxsDirectory)(windows_core::Interface::as_raw(self), szsxsdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SxsDirectory)(windows_core::Interface::as_raw(self), szsxsdirectory.param().abi()).ok() } } #[repr(C)] @@ -3685,28 +3685,28 @@ impl IServiceSysTxnConfig { } pub unsafe fn BringYourOwnTransaction(&self, sztipurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.BringYourOwnTransaction)(windows_core::Interface::as_raw(self), sztipurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.BringYourOwnTransaction)(windows_core::Interface::as_raw(self), sztipurl.param().abi()).ok() } pub unsafe fn NewTransactionDescription(&self, sztxdesc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.NewTransactionDescription)(windows_core::Interface::as_raw(self), sztxdesc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.NewTransactionDescription)(windows_core::Interface::as_raw(self), sztxdesc.param().abi()).ok() } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn ConfigureBYOT(&self, pitxbyot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConfigureBYOT)(windows_core::Interface::as_raw(self), pitxbyot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConfigureBYOT)(windows_core::Interface::as_raw(self), pitxbyot.param().abi()).ok() } pub unsafe fn ConfigureBYOTSysTxn(&self, ptxproxy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureBYOTSysTxn)(windows_core::Interface::as_raw(self), ptxproxy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConfigureBYOTSysTxn)(windows_core::Interface::as_raw(self), ptxproxy.param().abi()).ok() } } #[repr(C)] @@ -3735,10 +3735,10 @@ windows_core::imp::interface_hierarchy!(IServiceTrackerConfig, windows_core::IUn impl IServiceTrackerConfig { pub unsafe fn TrackerConfig(&self, trackerconfig: CSC_TrackerConfig, sztrackerappname: P0, sztrackerctxname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TrackerConfig)(windows_core::Interface::as_raw(self), trackerconfig, sztrackerappname.into_param().abi(), sztrackerctxname.into_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)] @@ -3760,22 +3760,22 @@ impl IServiceTransactionConfig { } pub unsafe fn BringYourOwnTransaction(&self, sztipurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BringYourOwnTransaction)(windows_core::Interface::as_raw(self), sztipurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.BringYourOwnTransaction)(windows_core::Interface::as_raw(self), sztipurl.param().abi()).ok() } pub unsafe fn NewTransactionDescription(&self, sztxdesc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NewTransactionDescription)(windows_core::Interface::as_raw(self), sztxdesc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.NewTransactionDescription)(windows_core::Interface::as_raw(self), sztxdesc.param().abi()).ok() } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn ConfigureBYOT(&self, pitxbyot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureBYOT)(windows_core::Interface::as_raw(self), pitxbyot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConfigureBYOT)(windows_core::Interface::as_raw(self), pitxbyot.param().abi()).ok() } } #[repr(C)] @@ -3800,15 +3800,15 @@ impl IServiceTransactionConfigBase { } pub unsafe fn BringYourOwnTransaction(&self, sztipurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BringYourOwnTransaction)(windows_core::Interface::as_raw(self), sztipurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BringYourOwnTransaction)(windows_core::Interface::as_raw(self), sztipurl.param().abi()).ok() } pub unsafe fn NewTransactionDescription(&self, sztxdesc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NewTransactionDescription)(windows_core::Interface::as_raw(self), sztxdesc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NewTransactionDescription)(windows_core::Interface::as_raw(self), sztxdesc.param().abi()).ok() } } #[repr(C)] @@ -3832,9 +3832,9 @@ impl ISharedProperty { } pub unsafe fn SetValue(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3862,17 +3862,17 @@ impl ISharedPropertyGroup { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateProperty(&self, name: P0, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppprop: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProperty)(windows_core::Interface::as_raw(self), name.into_param().abi(), fexists, core::mem::transmute(ppprop)).ok() + (windows_core::Interface::vtable(self).CreateProperty)(windows_core::Interface::as_raw(self), name.param().abi(), fexists, core::mem::transmute(ppprop)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Property(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3905,17 +3905,17 @@ impl ISharedPropertyGroupManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePropertyGroup(&self, name: P0, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppgroup: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePropertyGroup)(windows_core::Interface::as_raw(self), name.into_param().abi(), dwisomode, dwrelmode, fexists, core::mem::transmute(ppgroup)).ok() + (windows_core::Interface::vtable(self).CreatePropertyGroup)(windows_core::Interface::as_raw(self), name.param().abi(), dwisomode, dwrelmode, fexists, core::mem::transmute(ppgroup)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Group(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Group)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Group)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3944,9 +3944,9 @@ impl ISystemAppEventData { } pub unsafe fn OnDataChanged(&self, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: P0, dwreason: u32, u64tracehandle: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDataChanged)(windows_core::Interface::as_raw(self), dwpid, dwmask, dwnumbersinks, bstrdwmethodmask.into_param().abi(), dwreason, u64tracehandle).ok() + (windows_core::Interface::vtable(self).OnDataChanged)(windows_core::Interface::as_raw(self), dwpid, dwmask, dwnumbersinks, bstrdwmethodmask.param().abi(), dwreason, u64tracehandle).ok() } } #[repr(C)] @@ -4011,10 +4011,10 @@ windows_core::imp::interface_hierarchy!(ITransactionContext, windows_core::IUnkn impl ITransactionContext { pub unsafe fn CreateInstance(&self, pszprogid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), pszprogid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), pszprogid.param().abi(), &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() @@ -4153,10 +4153,10 @@ impl ITransactionProxy { #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn CreateVoter(&self, ptxasync: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVoter)(windows_core::Interface::as_raw(self), ptxasync.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVoter)(windows_core::Interface::as_raw(self), ptxasync.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetIsolationLevel(&self, __midl__itransactionproxy0000: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIsolationLevel)(windows_core::Interface::as_raw(self), __midl__itransactionproxy0000).ok() @@ -4190,17 +4190,17 @@ windows_core::imp::interface_hierarchy!(ITransactionResourcePool, windows_core:: impl ITransactionResourcePool { pub unsafe fn PutResource(&self, ppool: P0, punk: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutResource)(windows_core::Interface::as_raw(self), ppool.into_param().abi(), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PutResource)(windows_core::Interface::as_raw(self), ppool.param().abi(), punk.param().abi()).ok() } pub unsafe fn GetResource(&self, ppool: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), ppool.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), ppool.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4245,10 +4245,10 @@ windows_core::imp::interface_hierarchy!(ObjectContext, windows_core::IUnknown, s impl ObjectContext { pub unsafe fn CreateInstance(&self, bstrprogid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), bstrprogid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstance)(windows_core::Interface::as_raw(self), bstrprogid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetComplete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetComplete)(windows_core::Interface::as_raw(self)).ok() @@ -4272,10 +4272,10 @@ impl ObjectContext { } pub unsafe fn IsCallerInRole(&self, bstrrole: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsCallerInRole)(windows_core::Interface::as_raw(self), bstrrole.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsCallerInRole)(windows_core::Interface::as_raw(self), bstrrole.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4283,10 +4283,10 @@ impl ObjectContext { } pub unsafe fn get_Item(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 d908a88689..2715e55954 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn AddConsoleAliasA(source: P0, target: P1, exename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddConsoleAliasA(source : windows_core::PCSTR, target : windows_core::PCSTR, exename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AddConsoleAliasA(source.into_param().abi(), target.into_param().abi(), exename.into_param().abi()).ok() + AddConsoleAliasA(source.param().abi(), target.param().abi(), exename.param().abi()).ok() } #[inline] pub unsafe fn AddConsoleAliasW(source: P0, target: P1, exename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddConsoleAliasW(source : windows_core::PCWSTR, target : windows_core::PCWSTR, exename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AddConsoleAliasW(source.into_param().abi(), target.into_param().abi(), exename.into_param().abi()).ok() + AddConsoleAliasW(source.param().abi(), target.param().abi(), exename.param().abi()).ok() } #[inline] pub unsafe fn AllocConsole() -> windows_core::Result<()> { @@ -31,10 +31,10 @@ pub unsafe fn AttachConsole(dwprocessid: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn ClosePseudoConsole(hpc: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ClosePseudoConsole(hpc : HPCON)); - ClosePseudoConsole(hpc.into_param().abi()) + ClosePseudoConsole(hpc.param().abi()) } #[inline] pub unsafe fn ConsoleControl(command: CONSOLECONTROL, consoleinformation: *const core::ffi::c_void, consoleinformationlength: u32) -> super::super::Foundation::NTSTATUS { @@ -51,60 +51,60 @@ pub unsafe fn CreateConsoleScreenBuffer(dwdesiredaccess: u32, dwsharemode: u32, #[inline] pub unsafe fn CreatePseudoConsole(size: COORD, hinput: P0, houtput: P1, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - CreatePseudoConsole(core::mem::transmute(size), hinput.into_param().abi(), houtput.into_param().abi(), dwflags, &mut result__).map(|| result__) + CreatePseudoConsole(core::mem::transmute(size), hinput.param().abi(), houtput.param().abi(), dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn ExpungeConsoleCommandHistoryA(exename: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ExpungeConsoleCommandHistoryA(exename : windows_core::PCSTR)); - ExpungeConsoleCommandHistoryA(exename.into_param().abi()) + ExpungeConsoleCommandHistoryA(exename.param().abi()) } #[inline] pub unsafe fn ExpungeConsoleCommandHistoryW(exename: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ExpungeConsoleCommandHistoryW(exename : windows_core::PCWSTR)); - ExpungeConsoleCommandHistoryW(exename.into_param().abi()) + ExpungeConsoleCommandHistoryW(exename.param().abi()) } #[inline] pub unsafe fn FillConsoleOutputAttribute(hconsoleoutput: P0, wattribute: u16, nlength: u32, dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), wattribute, nlength, core::mem::transmute(dwwritecoord), lpnumberofattrswritten).ok() + FillConsoleOutputAttribute(hconsoleoutput.param().abi(), wattribute, nlength, core::mem::transmute(dwwritecoord), lpnumberofattrswritten).ok() } #[inline] pub unsafe fn FillConsoleOutputCharacterA(hconsoleoutput: P0, ccharacter: i8, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), ccharacter, nlength, core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() + FillConsoleOutputCharacterA(hconsoleoutput.param().abi(), ccharacter, nlength, core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() } #[inline] pub unsafe fn FillConsoleOutputCharacterW(hconsoleoutput: P0, ccharacter: u16, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), ccharacter, nlength, core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() + FillConsoleOutputCharacterW(hconsoleoutput.param().abi(), ccharacter, nlength, core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() } #[inline] pub unsafe fn FlushConsoleInputBuffer(hconsoleinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FlushConsoleInputBuffer(hconsoleinput : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - FlushConsoleInputBuffer(hconsoleinput.into_param().abi()).ok() + FlushConsoleInputBuffer(hconsoleinput.param().abi()).ok() } #[inline] pub unsafe fn FreeConsole() -> windows_core::Result<()> { @@ -119,11 +119,11 @@ pub unsafe fn GenerateConsoleCtrlEvent(dwctrlevent: u32, dwprocessgroupid: u32) #[inline] pub unsafe fn GetConsoleAliasA(source: P0, targetbuffer: &mut [u8], exename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleAliasA(source : windows_core::PCSTR, targetbuffer : windows_core::PSTR, targetbufferlength : u32, exename : windows_core::PCSTR) -> u32); - GetConsoleAliasA(source.into_param().abi(), core::mem::transmute(targetbuffer.as_ptr()), targetbuffer.len().try_into().unwrap(), exename.into_param().abi()) + GetConsoleAliasA(source.param().abi(), core::mem::transmute(targetbuffer.as_ptr()), targetbuffer.len().try_into().unwrap(), exename.param().abi()) } #[inline] pub unsafe fn GetConsoleAliasExesA(exenamebuffer: &mut [u8]) -> u32 { @@ -148,43 +148,43 @@ pub unsafe fn GetConsoleAliasExesW(exenamebuffer: &mut [u16]) -> u32 { #[inline] pub unsafe fn GetConsoleAliasW(source: P0, targetbuffer: &mut [u16], exename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleAliasW(source : windows_core::PCWSTR, targetbuffer : windows_core::PWSTR, targetbufferlength : u32, exename : windows_core::PCWSTR) -> u32); - GetConsoleAliasW(source.into_param().abi(), core::mem::transmute(targetbuffer.as_ptr()), targetbuffer.len().try_into().unwrap(), exename.into_param().abi()) + GetConsoleAliasW(source.param().abi(), core::mem::transmute(targetbuffer.as_ptr()), targetbuffer.len().try_into().unwrap(), exename.param().abi()) } #[inline] pub unsafe fn GetConsoleAliasesA(aliasbuffer: &mut [u8], exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleAliasesA(aliasbuffer : windows_core::PSTR, aliasbufferlength : u32, exename : windows_core::PCSTR) -> u32); - GetConsoleAliasesA(core::mem::transmute(aliasbuffer.as_ptr()), aliasbuffer.len().try_into().unwrap(), exename.into_param().abi()) + GetConsoleAliasesA(core::mem::transmute(aliasbuffer.as_ptr()), aliasbuffer.len().try_into().unwrap(), exename.param().abi()) } #[inline] pub unsafe fn GetConsoleAliasesLengthA(exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleAliasesLengthA(exename : windows_core::PCSTR) -> u32); - GetConsoleAliasesLengthA(exename.into_param().abi()) + GetConsoleAliasesLengthA(exename.param().abi()) } #[inline] pub unsafe fn GetConsoleAliasesLengthW(exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleAliasesLengthW(exename : windows_core::PCWSTR) -> u32); - GetConsoleAliasesLengthW(exename.into_param().abi()) + GetConsoleAliasesLengthW(exename.param().abi()) } #[inline] pub unsafe fn GetConsoleAliasesW(aliasbuffer: &mut [u16], exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleAliasesW(aliasbuffer : windows_core::PWSTR, aliasbufferlength : u32, exename : windows_core::PCWSTR) -> u32); - GetConsoleAliasesW(core::mem::transmute(aliasbuffer.as_ptr()), aliasbuffer.len().try_into().unwrap(), exename.into_param().abi()) + GetConsoleAliasesW(core::mem::transmute(aliasbuffer.as_ptr()), aliasbuffer.len().try_into().unwrap(), exename.param().abi()) } #[inline] pub unsafe fn GetConsoleCP() -> u32 { @@ -194,42 +194,42 @@ pub unsafe fn GetConsoleCP() -> u32 { #[inline] pub unsafe fn GetConsoleCommandHistoryA(commands: &mut [u8], exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleCommandHistoryA(commands : windows_core::PSTR, commandbufferlength : u32, exename : windows_core::PCSTR) -> u32); - GetConsoleCommandHistoryA(core::mem::transmute(commands.as_ptr()), commands.len().try_into().unwrap(), exename.into_param().abi()) + GetConsoleCommandHistoryA(core::mem::transmute(commands.as_ptr()), commands.len().try_into().unwrap(), exename.param().abi()) } #[inline] pub unsafe fn GetConsoleCommandHistoryLengthA(exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleCommandHistoryLengthA(exename : windows_core::PCSTR) -> u32); - GetConsoleCommandHistoryLengthA(exename.into_param().abi()) + GetConsoleCommandHistoryLengthA(exename.param().abi()) } #[inline] pub unsafe fn GetConsoleCommandHistoryLengthW(exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleCommandHistoryLengthW(exename : windows_core::PCWSTR) -> u32); - GetConsoleCommandHistoryLengthW(exename.into_param().abi()) + GetConsoleCommandHistoryLengthW(exename.param().abi()) } #[inline] pub unsafe fn GetConsoleCommandHistoryW(commands: windows_core::PWSTR, commandbufferlength: u32, exename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: 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), commandbufferlength, exename.into_param().abi()) + GetConsoleCommandHistoryW(core::mem::transmute(commands), commandbufferlength, exename.param().abi()) } #[inline] pub unsafe fn GetConsoleCursorInfo(hconsoleoutput: P0, lpconsolecursorinfo: *mut CONSOLE_CURSOR_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *mut CONSOLE_CURSOR_INFO) -> super::super::Foundation:: BOOL); - GetConsoleCursorInfo(hconsoleoutput.into_param().abi(), lpconsolecursorinfo).ok() + GetConsoleCursorInfo(hconsoleoutput.param().abi(), lpconsolecursorinfo).ok() } #[inline] pub unsafe fn GetConsoleDisplayMode(lpmodeflags: *mut u32) -> windows_core::Result<()> { @@ -239,10 +239,10 @@ pub unsafe fn GetConsoleDisplayMode(lpmodeflags: *mut u32) -> windows_core::Resu #[inline] pub unsafe fn GetConsoleFontSize(hconsoleoutput: P0, nfont: u32) -> COORD where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleFontSize(hconsoleoutput : super::super::Foundation:: HANDLE, nfont : u32) -> COORD); - GetConsoleFontSize(hconsoleoutput.into_param().abi(), nfont) + GetConsoleFontSize(hconsoleoutput.param().abi(), nfont) } #[inline] pub unsafe fn GetConsoleHistoryInfo(lpconsolehistoryinfo: *mut CONSOLE_HISTORY_INFO) -> windows_core::Result<()> { @@ -252,10 +252,10 @@ pub unsafe fn GetConsoleHistoryInfo(lpconsolehistoryinfo: *mut CONSOLE_HISTORY_I #[inline] pub unsafe fn GetConsoleMode(hconsolehandle: P0, lpmode: *mut CONSOLE_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, lpmode : *mut CONSOLE_MODE) -> super::super::Foundation:: BOOL); - GetConsoleMode(hconsolehandle.into_param().abi(), lpmode).ok() + GetConsoleMode(hconsolehandle.param().abi(), lpmode).ok() } #[inline] pub unsafe fn GetConsoleOriginalTitleA(lpconsoletitle: &mut [u8]) -> u32 { @@ -280,18 +280,18 @@ pub unsafe fn GetConsoleProcessList(lpdwprocesslist: &mut [u32]) -> u32 { #[inline] pub unsafe fn GetConsoleScreenBufferInfo(hconsoleoutput: P0, lpconsolescreenbufferinfo: *mut CONSOLE_SCREEN_BUFFER_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfo : *mut CONSOLE_SCREEN_BUFFER_INFO) -> super::super::Foundation:: BOOL); - GetConsoleScreenBufferInfo(hconsoleoutput.into_param().abi(), lpconsolescreenbufferinfo).ok() + GetConsoleScreenBufferInfo(hconsoleoutput.param().abi(), lpconsolescreenbufferinfo).ok() } #[inline] pub unsafe fn GetConsoleScreenBufferInfoEx(hconsoleoutput: P0, lpconsolescreenbufferinfoex: *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation:: BOOL); - GetConsoleScreenBufferInfoEx(hconsoleoutput.into_param().abi(), lpconsolescreenbufferinfoex).ok() + GetConsoleScreenBufferInfoEx(hconsoleoutput.param().abi(), lpconsolescreenbufferinfoex).ok() } #[inline] pub unsafe fn GetConsoleSelectionInfo(lpconsoleselectioninfo: *mut CONSOLE_SELECTION_INFO) -> windows_core::Result<()> { @@ -316,36 +316,36 @@ pub unsafe fn GetConsoleWindow() -> super::super::Foundation::HWND { #[inline] pub unsafe fn GetCurrentConsoleFont(hconsoleoutput: P0, bmaximumwindow: P1, lpconsolecurrentfont: *mut CONSOLE_FONT_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), bmaximumwindow.into_param().abi(), lpconsolecurrentfont).ok() + GetCurrentConsoleFont(hconsoleoutput.param().abi(), bmaximumwindow.param().abi(), lpconsolecurrentfont).ok() } #[inline] pub unsafe fn GetCurrentConsoleFontEx(hconsoleoutput: P0, bmaximumwindow: P1, lpconsolecurrentfontex: *mut CONSOLE_FONT_INFOEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), bmaximumwindow.into_param().abi(), lpconsolecurrentfontex).ok() + GetCurrentConsoleFontEx(hconsoleoutput.param().abi(), bmaximumwindow.param().abi(), lpconsolecurrentfontex).ok() } #[inline] pub unsafe fn GetLargestConsoleWindowSize(hconsoleoutput: P0) -> COORD where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetLargestConsoleWindowSize(hconsoleoutput : super::super::Foundation:: HANDLE) -> COORD); - GetLargestConsoleWindowSize(hconsoleoutput.into_param().abi()) + GetLargestConsoleWindowSize(hconsoleoutput.param().abi()) } #[inline] pub unsafe fn GetNumberOfConsoleInputEvents(hconsoleinput: P0, lpnumberofevents: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNumberOfConsoleInputEvents(hconsoleinput : super::super::Foundation:: HANDLE, lpnumberofevents : *mut u32) -> super::super::Foundation:: BOOL); - GetNumberOfConsoleInputEvents(hconsoleinput.into_param().abi(), lpnumberofevents).ok() + GetNumberOfConsoleInputEvents(hconsoleinput.param().abi(), lpnumberofevents).ok() } #[inline] pub unsafe fn GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons: *mut u32) -> windows_core::Result<()> { @@ -361,122 +361,122 @@ pub unsafe fn GetStdHandle(nstdhandle: STD_HANDLE) -> windows_core::Result(hconsoleinput: P0, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() + PeekConsoleInputA(hconsoleinput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() } #[inline] pub unsafe fn PeekConsoleInputW(hconsoleinput: P0, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() + PeekConsoleInputW(hconsoleinput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() } #[inline] pub unsafe fn ReadConsoleA(hconsoleinput: P0, lpbuffer: *mut core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: Option<*const CONSOLE_READCONSOLE_CONTROL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), lpbuffer, nnumberofcharstoread, lpnumberofcharsread, core::mem::transmute(pinputcontrol.unwrap_or(std::ptr::null()))).ok() + ReadConsoleA(hconsoleinput.param().abi(), lpbuffer, nnumberofcharstoread, lpnumberofcharsread, core::mem::transmute(pinputcontrol.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn ReadConsoleInputA(hconsoleinput: P0, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() + ReadConsoleInputA(hconsoleinput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() } #[inline] pub unsafe fn ReadConsoleInputW(hconsoleinput: P0, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() + ReadConsoleInputW(hconsoleinput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread).ok() } #[inline] pub unsafe fn ReadConsoleOutputA(hconsoleoutput: P0, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpreadregion).ok() + ReadConsoleOutputA(hconsoleoutput.param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpreadregion).ok() } #[inline] pub unsafe fn ReadConsoleOutputAttribute(hconsoleoutput: P0, lpattribute: &mut [u16], dwreadcoord: COORD, lpnumberofattrsread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofattrsread).ok() + ReadConsoleOutputAttribute(hconsoleoutput.param().abi(), core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofattrsread).ok() } #[inline] pub unsafe fn ReadConsoleOutputCharacterA(hconsoleoutput: P0, lpcharacter: &mut [u8], dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofcharsread).ok() + ReadConsoleOutputCharacterA(hconsoleoutput.param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofcharsread).ok() } #[inline] pub unsafe fn ReadConsoleOutputCharacterW(hconsoleoutput: P0, lpcharacter: &mut [u16], dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofcharsread).ok() + ReadConsoleOutputCharacterW(hconsoleoutput.param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofcharsread).ok() } #[inline] pub unsafe fn ReadConsoleOutputW(hconsoleoutput: P0, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpreadregion).ok() + ReadConsoleOutputW(hconsoleoutput.param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpreadregion).ok() } #[inline] pub unsafe fn ReadConsoleW(hconsoleinput: P0, lpbuffer: *mut core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: Option<*const CONSOLE_READCONSOLE_CONTROL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), lpbuffer, nnumberofcharstoread, lpnumberofcharsread, core::mem::transmute(pinputcontrol.unwrap_or(std::ptr::null()))).ok() + ReadConsoleW(hconsoleinput.param().abi(), lpbuffer, nnumberofcharstoread, lpnumberofcharsread, core::mem::transmute(pinputcontrol.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn ResizePseudoConsole(hpc: P0, size: COORD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ResizePseudoConsole(hpc : HPCON, size : COORD) -> windows_core::HRESULT); - ResizePseudoConsole(hpc.into_param().abi(), core::mem::transmute(size)).ok() + ResizePseudoConsole(hpc.param().abi(), core::mem::transmute(size)).ok() } #[inline] pub unsafe fn ScrollConsoleScreenBufferA(hconsoleoutput: P0, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: Option<*const SMALL_RECT>, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), lpscrollrectangle, core::mem::transmute(lpcliprectangle.unwrap_or(std::ptr::null())), core::mem::transmute(dwdestinationorigin), lpfill).ok() + ScrollConsoleScreenBufferA(hconsoleoutput.param().abi(), lpscrollrectangle, core::mem::transmute(lpcliprectangle.unwrap_or(std::ptr::null())), core::mem::transmute(dwdestinationorigin), lpfill).ok() } #[inline] pub unsafe fn ScrollConsoleScreenBufferW(hconsoleoutput: P0, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: Option<*const SMALL_RECT>, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), lpscrollrectangle, core::mem::transmute(lpcliprectangle.unwrap_or(std::ptr::null())), core::mem::transmute(dwdestinationorigin), lpfill).ok() + ScrollConsoleScreenBufferW(hconsoleoutput.param().abi(), lpscrollrectangle, core::mem::transmute(lpcliprectangle.unwrap_or(std::ptr::null())), core::mem::transmute(dwdestinationorigin), lpfill).ok() } #[inline] pub unsafe fn SetConsoleActiveScreenBuffer(hconsoleoutput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleActiveScreenBuffer(hconsoleoutput : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetConsoleActiveScreenBuffer(hconsoleoutput.into_param().abi()).ok() + SetConsoleActiveScreenBuffer(hconsoleoutput.param().abi()).ok() } #[inline] pub unsafe fn SetConsoleCP(wcodepageid: u32) -> windows_core::Result<()> { @@ -486,34 +486,34 @@ pub unsafe fn SetConsoleCP(wcodepageid: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn SetConsoleCtrlHandler(handlerroutine: PHANDLER_ROUTINE, add: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleCtrlHandler(handlerroutine : PHANDLER_ROUTINE, add : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetConsoleCtrlHandler(handlerroutine, add.into_param().abi()).ok() + SetConsoleCtrlHandler(handlerroutine, add.param().abi()).ok() } #[inline] pub unsafe fn SetConsoleCursorInfo(hconsoleoutput: P0, lpconsolecursorinfo: *const CONSOLE_CURSOR_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *const CONSOLE_CURSOR_INFO) -> super::super::Foundation:: BOOL); - SetConsoleCursorInfo(hconsoleoutput.into_param().abi(), lpconsolecursorinfo).ok() + SetConsoleCursorInfo(hconsoleoutput.param().abi(), lpconsolecursorinfo).ok() } #[inline] pub unsafe fn SetConsoleCursorPosition(hconsoleoutput: P0, dwcursorposition: COORD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorPosition(hconsoleoutput : super::super::Foundation:: HANDLE, dwcursorposition : COORD) -> super::super::Foundation:: BOOL); - SetConsoleCursorPosition(hconsoleoutput.into_param().abi(), core::mem::transmute(dwcursorposition)).ok() + SetConsoleCursorPosition(hconsoleoutput.param().abi(), core::mem::transmute(dwcursorposition)).ok() } #[inline] pub unsafe fn SetConsoleDisplayMode(hconsoleoutput: P0, dwflags: u32, lpnewscreenbufferdimensions: Option<*mut COORD>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleDisplayMode(hconsoleoutput : super::super::Foundation:: HANDLE, dwflags : u32, lpnewscreenbufferdimensions : *mut COORD) -> super::super::Foundation:: BOOL); - SetConsoleDisplayMode(hconsoleoutput.into_param().abi(), dwflags, core::mem::transmute(lpnewscreenbufferdimensions.unwrap_or(std::ptr::null_mut()))).ok() + SetConsoleDisplayMode(hconsoleoutput.param().abi(), dwflags, core::mem::transmute(lpnewscreenbufferdimensions.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetConsoleHistoryInfo(lpconsolehistoryinfo: *const CONSOLE_HISTORY_INFO) -> windows_core::Result<()> { @@ -523,26 +523,26 @@ pub unsafe fn SetConsoleHistoryInfo(lpconsolehistoryinfo: *const CONSOLE_HISTORY #[inline] pub unsafe fn SetConsoleMode(hconsolehandle: P0, dwmode: CONSOLE_MODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, dwmode : CONSOLE_MODE) -> super::super::Foundation:: BOOL); - SetConsoleMode(hconsolehandle.into_param().abi(), dwmode).ok() + SetConsoleMode(hconsolehandle.param().abi(), dwmode).ok() } #[inline] pub unsafe fn SetConsoleNumberOfCommandsA(number: u32, exename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsA(number : u32, exename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetConsoleNumberOfCommandsA(number, exename.into_param().abi()) + SetConsoleNumberOfCommandsA(number, exename.param().abi()) } #[inline] pub unsafe fn SetConsoleNumberOfCommandsW(number: u32, exename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsW(number : u32, exename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetConsoleNumberOfCommandsW(number, exename.into_param().abi()) + SetConsoleNumberOfCommandsW(number, exename.param().abi()) } #[inline] pub unsafe fn SetConsoleOutputCP(wcodepageid: u32) -> windows_core::Result<()> { @@ -552,148 +552,148 @@ pub unsafe fn SetConsoleOutputCP(wcodepageid: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn SetConsoleScreenBufferInfoEx(hconsoleoutput: P0, lpconsolescreenbufferinfoex: *const CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *const CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation:: BOOL); - SetConsoleScreenBufferInfoEx(hconsoleoutput.into_param().abi(), lpconsolescreenbufferinfoex).ok() + SetConsoleScreenBufferInfoEx(hconsoleoutput.param().abi(), lpconsolescreenbufferinfoex).ok() } #[inline] pub unsafe fn SetConsoleScreenBufferSize(hconsoleoutput: P0, dwsize: COORD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferSize(hconsoleoutput : super::super::Foundation:: HANDLE, dwsize : COORD) -> super::super::Foundation:: BOOL); - SetConsoleScreenBufferSize(hconsoleoutput.into_param().abi(), core::mem::transmute(dwsize)).ok() + SetConsoleScreenBufferSize(hconsoleoutput.param().abi(), core::mem::transmute(dwsize)).ok() } #[inline] pub unsafe fn SetConsoleTextAttribute(hconsoleoutput: P0, wattributes: CONSOLE_CHARACTER_ATTRIBUTES) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleTextAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, wattributes : CONSOLE_CHARACTER_ATTRIBUTES) -> super::super::Foundation:: BOOL); - SetConsoleTextAttribute(hconsoleoutput.into_param().abi(), wattributes).ok() + SetConsoleTextAttribute(hconsoleoutput.param().abi(), wattributes).ok() } #[inline] pub unsafe fn SetConsoleTitleA(lpconsoletitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleTitleA(lpconsoletitle : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetConsoleTitleA(lpconsoletitle.into_param().abi()).ok() + SetConsoleTitleA(lpconsoletitle.param().abi()).ok() } #[inline] pub unsafe fn SetConsoleTitleW(lpconsoletitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetConsoleTitleW(lpconsoletitle : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetConsoleTitleW(lpconsoletitle.into_param().abi()).ok() + SetConsoleTitleW(lpconsoletitle.param().abi()).ok() } #[inline] pub unsafe fn SetConsoleWindowInfo(hconsoleoutput: P0, babsolute: P1, lpconsolewindow: *const SMALL_RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), babsolute.into_param().abi(), lpconsolewindow).ok() + SetConsoleWindowInfo(hconsoleoutput.param().abi(), babsolute.param().abi(), lpconsolewindow).ok() } #[inline] pub unsafe fn SetCurrentConsoleFontEx(hconsoleoutput: P0, bmaximumwindow: P1, lpconsolecurrentfontex: *const CONSOLE_FONT_INFOEX) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), bmaximumwindow.into_param().abi(), lpconsolecurrentfontex).ok() + SetCurrentConsoleFontEx(hconsoleoutput.param().abi(), bmaximumwindow.param().abi(), lpconsolecurrentfontex).ok() } #[inline] pub unsafe fn SetStdHandle(nstdhandle: STD_HANDLE, hhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetStdHandle(nstdhandle : STD_HANDLE, hhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetStdHandle(nstdhandle, hhandle.into_param().abi()).ok() + SetStdHandle(nstdhandle, hhandle.param().abi()).ok() } #[inline] pub unsafe fn SetStdHandleEx(nstdhandle: STD_HANDLE, hhandle: P0, phprevvalue: Option<*mut super::super::Foundation::HANDLE>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(nstdhandle, hhandle.into_param().abi(), core::mem::transmute(phprevvalue.unwrap_or(std::ptr::null_mut()))) + SetStdHandleEx(nstdhandle, hhandle.param().abi(), core::mem::transmute(phprevvalue.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WriteConsoleA(hconsoleoutput: P0, lpbuffer: &[u8], lpnumberofcharswritten: Option<*mut u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const core::ffi::c_void, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - WriteConsoleA(hconsoleoutput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + WriteConsoleA(hconsoleoutput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WriteConsoleInputA(hconsoleinput: P0, lpbuffer: &[INPUT_RECORD], lpnumberofeventswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventswritten).ok() + WriteConsoleInputA(hconsoleinput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventswritten).ok() } #[inline] pub unsafe fn WriteConsoleInputW(hconsoleinput: P0, lpbuffer: &[INPUT_RECORD], lpnumberofeventswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleinput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventswritten).ok() + WriteConsoleInputW(hconsoleinput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventswritten).ok() } #[inline] pub unsafe fn WriteConsoleOutputA(hconsoleoutput: P0, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpwriteregion).ok() + WriteConsoleOutputA(hconsoleoutput.param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpwriteregion).ok() } #[inline] pub unsafe fn WriteConsoleOutputAttribute(hconsoleoutput: P0, lpattribute: &[u16], dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofattrswritten).ok() + WriteConsoleOutputAttribute(hconsoleoutput.param().abi(), core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofattrswritten).ok() } #[inline] pub unsafe fn WriteConsoleOutputCharacterA(hconsoleoutput: P0, lpcharacter: &[u8], dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() + WriteConsoleOutputCharacterA(hconsoleoutput.param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() } #[inline] pub unsafe fn WriteConsoleOutputCharacterW(hconsoleoutput: P0, lpcharacter: &[u16], dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() + WriteConsoleOutputCharacterW(hconsoleoutput.param().abi(), core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofcharswritten).ok() } #[inline] pub unsafe fn WriteConsoleOutputW(hconsoleoutput: P0, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hconsoleoutput.into_param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpwriteregion).ok() + WriteConsoleOutputW(hconsoleoutput.param().abi(), lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpwriteregion).ok() } #[inline] pub unsafe fn WriteConsoleW(hconsoleoutput: P0, lpbuffer: &[u8], lpnumberofcharswritten: Option<*mut u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WriteConsoleW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const core::ffi::c_void, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - WriteConsoleW(hconsoleoutput.into_param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).ok() + WriteConsoleW(hconsoleoutput.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpnumberofcharswritten.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null()))).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 65af50a854..b0073dea61 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs @@ -30,9 +30,9 @@ impl IContactAggregationAggregate { } pub unsafe fn Link(&self, paggregateid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Link)(windows_core::Interface::as_raw(self), paggregateid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Link)(windows_core::Interface::as_raw(self), paggregateid.param().abi()).ok() } pub unsafe fn get_Groups(&self, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -44,9 +44,9 @@ impl IContactAggregationAggregate { } pub unsafe fn SetAntiLink(&self, pantilink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAntiLink)(windows_core::Interface::as_raw(self), pantilink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAntiLink)(windows_core::Interface::as_raw(self), pantilink.param().abi()).ok() } pub unsafe fn FavoriteOrder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -82,10 +82,10 @@ impl IContactAggregationAggregateCollection { } pub unsafe fn FindFirstByAntiLinkId(&self, pantilinkid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByAntiLinkId)(windows_core::Interface::as_raw(self), pantilinkid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByAntiLinkId)(windows_core::Interface::as_raw(self), pantilinkid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindNext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -115,9 +115,9 @@ impl IContactAggregationContact { } pub unsafe fn MoveToAggregate(&self, paggregateid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveToAggregate)(windows_core::Interface::as_raw(self), paggregateid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveToAggregate)(windows_core::Interface::as_raw(self), paggregateid.param().abi()).ok() } pub unsafe fn Unlink(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlink)(windows_core::Interface::as_raw(self)).ok() @@ -128,9 +128,9 @@ impl IContactAggregationContact { } pub unsafe fn SetAccountId(&self, paccountid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccountId)(windows_core::Interface::as_raw(self), paccountid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccountId)(windows_core::Interface::as_raw(self), paccountid.param().abi()).ok() } pub unsafe fn AggregateId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -161,9 +161,9 @@ impl IContactAggregationContact { } pub unsafe fn SetNetworkSourceIdString(&self, pnetworksourceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkSourceIdString)(windows_core::Interface::as_raw(self), pnetworksourceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkSourceIdString)(windows_core::Interface::as_raw(self), pnetworksourceid.param().abi()).ok() } pub unsafe fn RemoteObjectId(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB> { let mut result__ = std::mem::zeroed(); @@ -215,11 +215,11 @@ impl IContactAggregationContactCollection { } pub unsafe fn FindFirstByIdentityHash(&self, psourcetype: P0, paccountid: P1, pidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByIdentityHash)(windows_core::Interface::as_raw(self), psourcetype.into_param().abi(), paccountid.into_param().abi(), 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__ = std::mem::zeroed(); @@ -227,11 +227,11 @@ impl IContactAggregationContactCollection { } pub unsafe fn FindFirstByRemoteId(&self, psourcetype: P0, paccountid: P1, premoteobjectid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByRemoteId)(windows_core::Interface::as_raw(self), psourcetype.into_param().abi(), paccountid.into_param().abi(), 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)] @@ -254,15 +254,15 @@ impl IContactAggregationGroup { } pub unsafe fn Add(&self, paggregateid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), paggregateid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), paggregateid.param().abi()).ok() } pub unsafe fn Remove(&self, paggregateid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), paggregateid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), paggregateid.param().abi()).ok() } pub unsafe fn Members(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -285,9 +285,9 @@ impl IContactAggregationGroup { } pub unsafe fn SetName(&self, pname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pname.param().abi()).ok() } } #[repr(C)] @@ -347,9 +347,9 @@ impl IContactAggregationLink { } pub unsafe fn SetAccountId(&self, paccountid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccountId)(windows_core::Interface::as_raw(self), paccountid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccountId)(windows_core::Interface::as_raw(self), paccountid.param().abi()).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -361,9 +361,9 @@ impl IContactAggregationLink { } pub unsafe fn SetIsLinkResolved(&self, islinkresolved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsLinkResolved)(windows_core::Interface::as_raw(self), islinkresolved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsLinkResolved)(windows_core::Interface::as_raw(self), islinkresolved.param().abi()).ok() } pub unsafe fn NetworkSourceIdString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -371,9 +371,9 @@ impl IContactAggregationLink { } pub unsafe fn SetNetworkSourceIdString(&self, pnetworksourceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkSourceIdString)(windows_core::Interface::as_raw(self), pnetworksourceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkSourceIdString)(windows_core::Interface::as_raw(self), pnetworksourceid.param().abi()).ok() } pub unsafe fn RemoteObjectId(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB> { let mut result__ = std::mem::zeroed(); @@ -388,9 +388,9 @@ impl IContactAggregationLink { } pub unsafe fn SetServerPerson(&self, pserverpersonid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerPerson)(windows_core::Interface::as_raw(self), pserverpersonid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerPerson)(windows_core::Interface::as_raw(self), pserverpersonid.param().abi()).ok() } pub unsafe fn ServerPersonBaseline(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -398,9 +398,9 @@ impl IContactAggregationLink { } pub unsafe fn SetServerPersonBaseline(&self, pserverpersonid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerPersonBaseline)(windows_core::Interface::as_raw(self), pserverpersonid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerPersonBaseline)(windows_core::Interface::as_raw(self), pserverpersonid.param().abi()).ok() } pub unsafe fn SyncIdentityHash(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB> { let mut result__ = std::mem::zeroed(); @@ -440,11 +440,11 @@ impl IContactAggregationLinkCollection { } pub unsafe fn FindFirstByRemoteId(&self, psourcetype: P0, paccountid: P1, premoteid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByRemoteId)(windows_core::Interface::as_raw(self), psourcetype.into_param().abi(), paccountid.into_param().abi(), 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__ = std::mem::zeroed(); @@ -471,10 +471,10 @@ impl IContactAggregationManager { } pub unsafe fn CreateOrOpenGroup(&self, pgroupname: P0, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut super::super::Foundation::BOOL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOrOpenGroup)(windows_core::Interface::as_raw(self), pgroupname.into_param().abi(), options, 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, pcreatedgroup, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateExternalContact(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -493,31 +493,31 @@ impl IContactAggregationManager { } pub unsafe fn OpenAggregateContact(&self, pitemid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenAggregateContact)(windows_core::Interface::as_raw(self), pitemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenAggregateContact)(windows_core::Interface::as_raw(self), pitemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenContact(&self, pitemid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenContact)(windows_core::Interface::as_raw(self), pitemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenContact)(windows_core::Interface::as_raw(self), pitemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenServerContactLink(&self, pitemid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenServerContactLink)(windows_core::Interface::as_raw(self), pitemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenServerContactLink)(windows_core::Interface::as_raw(self), pitemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OpenServerPerson(&self, pitemid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenServerPerson)(windows_core::Interface::as_raw(self), pitemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OpenServerPerson)(windows_core::Interface::as_raw(self), pitemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_Contacts(&self, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -537,10 +537,10 @@ impl IContactAggregationManager { } pub unsafe fn get_ServerContactLinks(&self, ppersonitemid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ServerContactLinks)(windows_core::Interface::as_raw(self), ppersonitemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ServerContactLinks)(windows_core::Interface::as_raw(self), ppersonitemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -577,9 +577,9 @@ impl IContactAggregationServerPerson { } pub unsafe fn SetAggregateId(&self, paggregateid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAggregateId)(windows_core::Interface::as_raw(self), paggregateid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAggregateId)(windows_core::Interface::as_raw(self), paggregateid.param().abi()).ok() } pub unsafe fn AntiLink(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -587,9 +587,9 @@ impl IContactAggregationServerPerson { } pub unsafe fn SetAntiLink(&self, pantilink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAntiLink)(windows_core::Interface::as_raw(self), pantilink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAntiLink)(windows_core::Interface::as_raw(self), pantilink.param().abi()).ok() } pub unsafe fn AntiLinkBaseline(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -597,9 +597,9 @@ impl IContactAggregationServerPerson { } pub unsafe fn SetAntiLinkBaseline(&self, pantilink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAntiLinkBaseline)(windows_core::Interface::as_raw(self), pantilink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAntiLinkBaseline)(windows_core::Interface::as_raw(self), pantilink.param().abi()).ok() } pub unsafe fn FavoriteOrder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -639,9 +639,9 @@ impl IContactAggregationServerPerson { } pub unsafe fn SetIsTombstone(&self, istombstone: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsTombstone)(windows_core::Interface::as_raw(self), istombstone.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsTombstone)(windows_core::Interface::as_raw(self), istombstone.param().abi()).ok() } pub unsafe fn LinkedAggregateId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -649,9 +649,9 @@ impl IContactAggregationServerPerson { } pub unsafe fn SetLinkedAggregateId(&self, plinkedaggregateid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLinkedAggregateId)(windows_core::Interface::as_raw(self), plinkedaggregateid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLinkedAggregateId)(windows_core::Interface::as_raw(self), plinkedaggregateid.param().abi()).ok() } pub unsafe fn ObjectId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -659,9 +659,9 @@ impl IContactAggregationServerPerson { } pub unsafe fn SetObjectId(&self, pobjectid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObjectId)(windows_core::Interface::as_raw(self), pobjectid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObjectId)(windows_core::Interface::as_raw(self), pobjectid.param().abi()).ok() } } #[repr(C)] @@ -700,24 +700,24 @@ impl IContactAggregationServerPersonCollection { } pub unsafe fn FindFirstByServerId(&self, pserverid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByServerId)(windows_core::Interface::as_raw(self), pserverid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByServerId)(windows_core::Interface::as_raw(self), pserverid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFirstByAggregateId(&self, paggregateid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByAggregateId)(windows_core::Interface::as_raw(self), paggregateid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByAggregateId)(windows_core::Interface::as_raw(self), paggregateid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindFirstByLinkedAggregateId(&self, paggregateid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstByLinkedAggregateId)(windows_core::Interface::as_raw(self), paggregateid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindFirstByLinkedAggregateId)(windows_core::Interface::as_raw(self), paggregateid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindNext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -764,24 +764,24 @@ windows_core::imp::interface_hierarchy!(IContactManager, windows_core::IUnknown) impl IContactManager { pub unsafe fn Initialize(&self, pszappname: P0, pszappversion: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszappname.into_param().abi(), pszappversion.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszappname.param().abi(), pszappversion.param().abi()).ok() } pub unsafe fn Load(&self, pszcontactid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pszcontactid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), pszcontactid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MergeContactIDs(&self, psznewcontactid: P0, pszoldcontactid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MergeContactIDs)(windows_core::Interface::as_raw(self), psznewcontactid.into_param().abi(), pszoldcontactid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MergeContactIDs)(windows_core::Interface::as_raw(self), psznewcontactid.param().abi(), pszoldcontactid.param().abi()).ok() } pub unsafe fn GetMeContact(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -789,9 +789,9 @@ impl IContactManager { } pub unsafe fn SetMeContact(&self, pmecontact: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMeContact)(windows_core::Interface::as_raw(self), pmecontact.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMeContact)(windows_core::Interface::as_raw(self), pmecontact.param().abi()).ok() } pub unsafe fn GetContactCollection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -813,88 +813,88 @@ windows_core::imp::interface_hierarchy!(IContactProperties, windows_core::IUnkno impl IContactProperties { pub unsafe fn GetString(&self, pszpropertyname: P0, dwflags: u32, pszvalue: &mut [u16], pdwcchpropertyvaluerequired: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), dwflags, core::mem::transmute(pszvalue.as_ptr()), pszvalue.len().try_into().unwrap(), 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(), pdwcchpropertyvaluerequired).ok() } pub unsafe fn GetDate(&self, pszpropertyname: P0, dwflags: u32, pftdatetime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDate)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), dwflags, pftdatetime).ok() + (windows_core::Interface::vtable(self).GetDate)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), dwflags, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBinary)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), dwflags, core::mem::transmute(pszcontenttype.as_ptr()), pszcontenttype.len().try_into().unwrap(), 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(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.into_param().abi(), dwflags, core::mem::transmute(pszlabels.as_ptr()), pszlabels.len().try_into().unwrap(), 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(), pdwcchlabelsrequired).ok() } pub unsafe fn SetString(&self, pszpropertyname: P0, dwflags: u32, pszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), dwflags, pszvalue.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDate)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), 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: P1, pstream: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBinary)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), dwflags, pszcontenttype.into_param().abi(), pstream.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.into_param().abi(), 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: P1, psznewarrayelementname: &mut [u16], pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateArrayNode)(windows_core::Interface::as_raw(self), pszarrayname.into_param().abi(), dwflags, fappend.into_param().abi(), core::mem::transmute(psznewarrayelementname.as_ptr()), psznewarrayelementname.len().try_into().unwrap(), pdwcchnewarrayelementnamerequired).ok() + (windows_core::Interface::vtable(self).CreateArrayNode)(windows_core::Interface::as_raw(self), pszarrayname.param().abi(), dwflags, fappend.param().abi(), core::mem::transmute(psznewarrayelementname.as_ptr()), psznewarrayelementname.len().try_into().unwrap(), pdwcchnewarrayelementnamerequired).ok() } pub unsafe fn DeleteProperty(&self, pszpropertyname: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteProperty)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteArrayNode)(windows_core::Interface::as_raw(self), pszarrayelementname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteLabels)(windows_core::Interface::as_raw(self), pszarrayelementname.into_param().abi(), 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: P0, ppszlabels: &[windows_core::PCWSTR], fanylabelmatches: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyCollection)(windows_core::Interface::as_raw(self), core::mem::transmute(pppropertycollection), dwflags, pszmultivaluename.into_param().abi(), ppszlabels.len().try_into().unwrap(), core::mem::transmute(ppszlabels.as_ptr()), fanylabelmatches.into_param().abi()).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.param().abi()).ok() } } #[repr(C)] 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 487d9b2763..83f9622c72 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs @@ -1,35 +1,35 @@ #[inline] pub unsafe fn AddAtomA(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddAtomA(lpstring : windows_core::PCSTR) -> u16); - AddAtomA(lpstring.into_param().abi()) + AddAtomA(lpstring.param().abi()) } #[inline] pub unsafe fn AddAtomW(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddAtomW(lpstring : windows_core::PCWSTR) -> u16); - AddAtomW(lpstring.into_param().abi()) + AddAtomW(lpstring.param().abi()) } #[inline] pub unsafe fn AddClipboardFormatListener(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn AddClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - AddClipboardFormatListener(hwnd.into_param().abi()).ok() + AddClipboardFormatListener(hwnd.param().abi()).ok() } #[inline] pub unsafe fn ChangeClipboardChain(hwndremove: P0, hwndnewnext: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ChangeClipboardChain(hwndremove : super::super::Foundation:: HWND, hwndnewnext : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ChangeClipboardChain(hwndremove.into_param().abi(), hwndnewnext.into_param().abi()) + ChangeClipboardChain(hwndremove.param().abi(), hwndnewnext.param().abi()) } #[inline] pub unsafe fn CloseClipboard() -> windows_core::Result<()> { @@ -44,137 +44,137 @@ pub unsafe fn CountClipboardFormats() -> i32 { #[inline] pub unsafe fn DdeAbandonTransaction(idinst: u32, hconv: P0, idtransaction: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeAbandonTransaction(idinst : u32, hconv : HCONV, idtransaction : u32) -> super::super::Foundation:: BOOL); - DdeAbandonTransaction(idinst, hconv.into_param().abi(), idtransaction) + DdeAbandonTransaction(idinst, hconv.param().abi(), idtransaction) } #[inline] pub unsafe fn DdeAccessData(hdata: P0, pcbdatasize: Option<*mut u32>) -> *mut u8 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeAccessData(hdata : HDDEDATA, pcbdatasize : *mut u32) -> *mut u8); - DdeAccessData(hdata.into_param().abi(), core::mem::transmute(pcbdatasize.unwrap_or(std::ptr::null_mut()))) + DdeAccessData(hdata.param().abi(), core::mem::transmute(pcbdatasize.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DdeAddData(hdata: P0, psrc: &[u8], cboff: u32) -> HDDEDATA where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeAddData(hdata : HDDEDATA, psrc : *const u8, cb : u32, cboff : u32) -> HDDEDATA); - DdeAddData(hdata.into_param().abi(), core::mem::transmute(psrc.as_ptr()), psrc.len().try_into().unwrap(), cboff) + DdeAddData(hdata.param().abi(), core::mem::transmute(psrc.as_ptr()), psrc.len().try_into().unwrap(), cboff) } #[inline] pub unsafe fn DdeClientTransaction(pdata: Option<*const u8>, cbdata: u32, hconv: P0, hszitem: P1, wfmt: u32, wtype: DDE_CLIENT_TRANSACTION_TYPE, dwtimeout: u32, pdwresult: Option<*mut u32>) -> HDDEDATA where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(std::ptr::null())), cbdata, hconv.into_param().abi(), hszitem.into_param().abi(), wfmt, wtype, dwtimeout, core::mem::transmute(pdwresult.unwrap_or(std::ptr::null_mut()))) + DdeClientTransaction(core::mem::transmute(pdata.unwrap_or(std::ptr::null())), cbdata, hconv.param().abi(), hszitem.param().abi(), wfmt, wtype, dwtimeout, core::mem::transmute(pdwresult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn DdeCmpStringHandles(hsz1: P0, hsz2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeCmpStringHandles(hsz1 : HSZ, hsz2 : HSZ) -> i32); - DdeCmpStringHandles(hsz1.into_param().abi(), hsz2.into_param().abi()) + DdeCmpStringHandles(hsz1.param().abi(), hsz2.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeConnect(idinst: u32, hszservice: P0, hsztopic: P1, pcc: Option<*const CONVCONTEXT>) -> HCONV where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeConnect(idinst : u32, hszservice : HSZ, hsztopic : HSZ, pcc : *const CONVCONTEXT) -> HCONV); - DdeConnect(idinst, hszservice.into_param().abi(), hsztopic.into_param().abi(), core::mem::transmute(pcc.unwrap_or(std::ptr::null()))) + DdeConnect(idinst, hszservice.param().abi(), hsztopic.param().abi(), core::mem::transmute(pcc.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeConnectList(idinst: u32, hszservice: P0, hsztopic: P1, hconvlist: P2, pcc: Option<*const CONVCONTEXT>) -> HCONVLIST where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeConnectList(idinst : u32, hszservice : HSZ, hsztopic : HSZ, hconvlist : HCONVLIST, pcc : *const CONVCONTEXT) -> HCONVLIST); - DdeConnectList(idinst, hszservice.into_param().abi(), hsztopic.into_param().abi(), hconvlist.into_param().abi(), core::mem::transmute(pcc.unwrap_or(std::ptr::null()))) + DdeConnectList(idinst, hszservice.param().abi(), hsztopic.param().abi(), hconvlist.param().abi(), core::mem::transmute(pcc.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DdeCreateDataHandle(idinst: u32, psrc: Option<&[u8]>, cboff: u32, hszitem: P0, wfmt: u32, afcmd: u32) -> HDDEDATA where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(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, hszitem.into_param().abi(), wfmt, 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, hszitem.param().abi(), wfmt, afcmd) } #[inline] pub unsafe fn DdeCreateStringHandleA(idinst: u32, psz: P0, icodepage: i32) -> HSZ where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeCreateStringHandleA(idinst : u32, psz : windows_core::PCSTR, icodepage : i32) -> HSZ); - DdeCreateStringHandleA(idinst, psz.into_param().abi(), icodepage) + DdeCreateStringHandleA(idinst, psz.param().abi(), icodepage) } #[inline] pub unsafe fn DdeCreateStringHandleW(idinst: u32, psz: P0, icodepage: i32) -> HSZ where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeCreateStringHandleW(idinst : u32, psz : windows_core::PCWSTR, icodepage : i32) -> HSZ); - DdeCreateStringHandleW(idinst, psz.into_param().abi(), icodepage) + DdeCreateStringHandleW(idinst, psz.param().abi(), icodepage) } #[inline] pub unsafe fn DdeDisconnect(hconv: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeDisconnect(hconv : HCONV) -> super::super::Foundation:: BOOL); - DdeDisconnect(hconv.into_param().abi()) + DdeDisconnect(hconv.param().abi()) } #[inline] pub unsafe fn DdeDisconnectList(hconvlist: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeDisconnectList(hconvlist : HCONVLIST) -> super::super::Foundation:: BOOL); - DdeDisconnectList(hconvlist.into_param().abi()) + DdeDisconnectList(hconvlist.param().abi()) } #[inline] pub unsafe fn DdeEnableCallback(idinst: u32, hconv: P0, wcmd: DDE_ENABLE_CALLBACK_CMD) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeEnableCallback(idinst : u32, hconv : HCONV, wcmd : DDE_ENABLE_CALLBACK_CMD) -> super::super::Foundation:: BOOL); - DdeEnableCallback(idinst, hconv.into_param().abi(), wcmd) + DdeEnableCallback(idinst, hconv.param().abi(), wcmd) } #[inline] pub unsafe fn DdeFreeDataHandle(hdata: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeFreeDataHandle(hdata : HDDEDATA) -> super::super::Foundation:: BOOL); - DdeFreeDataHandle(hdata.into_param().abi()) + DdeFreeDataHandle(hdata.param().abi()) } #[inline] pub unsafe fn DdeFreeStringHandle(idinst: u32, hsz: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeFreeStringHandle(idinst : u32, hsz : HSZ) -> super::super::Foundation:: BOOL); - DdeFreeStringHandle(idinst, hsz.into_param().abi()) + DdeFreeStringHandle(idinst, hsz.param().abi()) } #[inline] pub unsafe fn DdeGetData(hdata: P0, pdst: Option<&mut [u8]>, cboff: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeGetData(hdata : HDDEDATA, pdst : *mut u8, cbmax : u32, cboff : u32) -> u32); - DdeGetData(hdata.into_param().abi(), 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) + DdeGetData(hdata.param().abi(), 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 { @@ -184,10 +184,10 @@ pub unsafe fn DdeGetLastError(idinst: u32) -> u32 { #[inline] pub unsafe fn DdeImpersonateClient(hconv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeImpersonateClient(hconv : HCONV) -> super::super::Foundation:: BOOL); - DdeImpersonateClient(hconv.into_param().abi()).ok() + DdeImpersonateClient(hconv.param().abi()).ok() } #[inline] pub unsafe fn DdeInitializeA(pidinst: *mut u32, pfncallback: PFNCALLBACK, afcmd: DDE_INITIALIZE_COMMAND, ulres: u32) -> u32 { @@ -202,95 +202,95 @@ pub unsafe fn DdeInitializeW(pidinst: *mut u32, pfncallback: PFNCALLBACK, afcmd: #[inline] pub unsafe fn DdeKeepStringHandle(idinst: u32, hsz: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeKeepStringHandle(idinst : u32, hsz : HSZ) -> super::super::Foundation:: BOOL); - DdeKeepStringHandle(idinst, hsz.into_param().abi()) + DdeKeepStringHandle(idinst, hsz.param().abi()) } #[inline] pub unsafe fn DdeNameService(idinst: u32, hsz1: P0, hsz2: P1, afcmd: DDE_NAME_SERVICE_CMD) -> HDDEDATA where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeNameService(idinst : u32, hsz1 : HSZ, hsz2 : HSZ, afcmd : DDE_NAME_SERVICE_CMD) -> HDDEDATA); - DdeNameService(idinst, hsz1.into_param().abi(), hsz2.into_param().abi(), afcmd) + DdeNameService(idinst, hsz1.param().abi(), hsz2.param().abi(), afcmd) } #[inline] pub unsafe fn DdePostAdvise(idinst: u32, hsztopic: P0, hszitem: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdePostAdvise(idinst : u32, hsztopic : HSZ, hszitem : HSZ) -> super::super::Foundation:: BOOL); - DdePostAdvise(idinst, hsztopic.into_param().abi(), hszitem.into_param().abi()) + DdePostAdvise(idinst, hsztopic.param().abi(), hszitem.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeQueryConvInfo(hconv: P0, idtransaction: u32, pconvinfo: *mut CONVINFO) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeQueryConvInfo(hconv : HCONV, idtransaction : u32, pconvinfo : *mut CONVINFO) -> u32); - DdeQueryConvInfo(hconv.into_param().abi(), idtransaction, pconvinfo) + DdeQueryConvInfo(hconv.param().abi(), idtransaction, pconvinfo) } #[inline] pub unsafe fn DdeQueryNextServer(hconvlist: P0, hconvprev: P1) -> HCONV where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeQueryNextServer(hconvlist : HCONVLIST, hconvprev : HCONV) -> HCONV); - DdeQueryNextServer(hconvlist.into_param().abi(), hconvprev.into_param().abi()) + DdeQueryNextServer(hconvlist.param().abi(), hconvprev.param().abi()) } #[inline] pub unsafe fn DdeQueryStringA(idinst: u32, hsz: P0, psz: Option<&mut [u8]>, icodepage: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeQueryStringA(idinst : u32, hsz : HSZ, psz : windows_core::PSTR, cchmax : u32, icodepage : i32) -> u32); - DdeQueryStringA(idinst, hsz.into_param().abi(), 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) + DdeQueryStringA(idinst, hsz.param().abi(), 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: P0, psz: Option<&mut [u16]>, icodepage: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeQueryStringW(idinst : u32, hsz : HSZ, psz : windows_core::PWSTR, cchmax : u32, icodepage : i32) -> u32); - DdeQueryStringW(idinst, hsz.into_param().abi(), 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) + DdeQueryStringW(idinst, hsz.param().abi(), 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: P0) -> HCONV where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeReconnect(hconv : HCONV) -> HCONV); - DdeReconnect(hconv.into_param().abi()) + DdeReconnect(hconv.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeSetQualityOfService(hwndclient: P0, pqosnew: *const super::super::Security::SECURITY_QUALITY_OF_SERVICE, pqosprev: *mut super::super::Security::SECURITY_QUALITY_OF_SERVICE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndclient.into_param().abi(), pqosnew, pqosprev).ok() + DdeSetQualityOfService(hwndclient.param().abi(), pqosnew, pqosprev).ok() } #[inline] pub unsafe fn DdeSetUserHandle(hconv: P0, id: u32, huser: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeSetUserHandle(hconv : HCONV, id : u32, huser : usize) -> super::super::Foundation:: BOOL); - DdeSetUserHandle(hconv.into_param().abi(), id, huser) + DdeSetUserHandle(hconv.param().abi(), id, huser) } #[inline] pub unsafe fn DdeUnaccessData(hdata: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DdeUnaccessData(hdata : HDDEDATA) -> super::super::Foundation:: BOOL); - DdeUnaccessData(hdata.into_param().abi()) + DdeUnaccessData(hdata.param().abi()) } #[inline] pub unsafe fn DdeUninitialize(idinst: u32) -> super::super::Foundation::BOOL { @@ -315,26 +315,26 @@ pub unsafe fn EnumClipboardFormats(format: u32) -> u32 { #[inline] pub unsafe fn FindAtomA(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindAtomA(lpstring : windows_core::PCSTR) -> u16); - FindAtomA(lpstring.into_param().abi()) + FindAtomA(lpstring.param().abi()) } #[inline] pub unsafe fn FindAtomW(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindAtomW(lpstring : windows_core::PCWSTR) -> u16); - FindAtomW(lpstring.into_param().abi()) + FindAtomW(lpstring.param().abi()) } #[inline] pub unsafe fn FreeDDElParam(msg: u32, lparam: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FreeDDElParam(msg : u32, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - FreeDDElParam(msg, lparam.into_param().abi()) + FreeDDElParam(msg, lparam.param().abi()) } #[inline] pub unsafe fn GetAtomNameA(natom: u16, lpbuffer: &mut [u8]) -> u32 { @@ -395,34 +395,34 @@ pub unsafe fn GetUpdatedClipboardFormats(lpuiformats: &mut [u32], pcformatsout: #[inline] pub unsafe fn GlobalAddAtomA(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalAddAtomA(lpstring : windows_core::PCSTR) -> u16); - GlobalAddAtomA(lpstring.into_param().abi()) + GlobalAddAtomA(lpstring.param().abi()) } #[inline] pub unsafe fn GlobalAddAtomExA(lpstring: P0, flags: u32) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalAddAtomExA(lpstring : windows_core::PCSTR, flags : u32) -> u16); - GlobalAddAtomExA(lpstring.into_param().abi(), flags) + GlobalAddAtomExA(lpstring.param().abi(), flags) } #[inline] pub unsafe fn GlobalAddAtomExW(lpstring: P0, flags: u32) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalAddAtomExW(lpstring : windows_core::PCWSTR, flags : u32) -> u16); - GlobalAddAtomExW(lpstring.into_param().abi(), flags) + GlobalAddAtomExW(lpstring.param().abi(), flags) } #[inline] pub unsafe fn GlobalAddAtomW(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalAddAtomW(lpstring : windows_core::PCWSTR) -> u16); - GlobalAddAtomW(lpstring.into_param().abi()) + GlobalAddAtomW(lpstring.param().abi()) } #[inline] pub unsafe fn GlobalDeleteAtom(natom: u16) -> u16 { @@ -432,18 +432,18 @@ pub unsafe fn GlobalDeleteAtom(natom: u16) -> u16 { #[inline] pub unsafe fn GlobalFindAtomA(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalFindAtomA(lpstring : windows_core::PCSTR) -> u16); - GlobalFindAtomA(lpstring.into_param().abi()) + GlobalFindAtomA(lpstring.param().abi()) } #[inline] pub unsafe fn GlobalFindAtomW(lpstring: P0) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalFindAtomW(lpstring : windows_core::PCWSTR) -> u16); - GlobalFindAtomW(lpstring.into_param().abi()) + GlobalFindAtomW(lpstring.param().abi()) } #[inline] pub unsafe fn GlobalGetAtomNameA(natom: u16, lpbuffer: &mut [u8]) -> u32 { @@ -458,11 +458,11 @@ pub unsafe fn GlobalGetAtomNameW(natom: u16, lpbuffer: &mut [u16]) -> u32 { #[inline] pub unsafe fn ImpersonateDdeClientWindow(hwndclient: P0, hwndserver: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ImpersonateDdeClientWindow(hwndclient : super::super::Foundation:: HWND, hwndserver : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ImpersonateDdeClientWindow(hwndclient.into_param().abi(), hwndserver.into_param().abi()).ok() + ImpersonateDdeClientWindow(hwndclient.param().abi(), hwndserver.param().abi()).ok() } #[inline] pub unsafe fn InitAtomTable(nsize: u32) -> super::super::Foundation::BOOL { @@ -477,10 +477,10 @@ pub unsafe fn IsClipboardFormatAvailable(format: u32) -> windows_core::Result<() #[inline] pub unsafe fn OpenClipboard(hwndnewowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OpenClipboard(hwndnewowner : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - OpenClipboard(hwndnewowner.into_param().abi()).ok() + OpenClipboard(hwndnewowner.param().abi()).ok() } #[inline] pub unsafe fn PackDDElParam(msg: u32, uilo: usize, uihi: usize) -> super::super::Foundation::LPARAM { @@ -490,68 +490,68 @@ pub unsafe fn PackDDElParam(msg: u32, uilo: usize, uihi: usize) -> super::super: #[inline] pub unsafe fn RegisterClipboardFormatA(lpszformat: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterClipboardFormatA(lpszformat : windows_core::PCSTR) -> u32); - RegisterClipboardFormatA(lpszformat.into_param().abi()) + RegisterClipboardFormatA(lpszformat.param().abi()) } #[inline] pub unsafe fn RegisterClipboardFormatW(lpszformat: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterClipboardFormatW(lpszformat : windows_core::PCWSTR) -> u32); - RegisterClipboardFormatW(lpszformat.into_param().abi()) + RegisterClipboardFormatW(lpszformat.param().abi()) } #[inline] pub unsafe fn RemoveClipboardFormatListener(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RemoveClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - RemoveClipboardFormatListener(hwnd.into_param().abi()).ok() + RemoveClipboardFormatListener(hwnd.param().abi()).ok() } #[inline] pub unsafe fn ReuseDDElParam(lparam: P0, msgin: u32, msgout: u32, uilo: usize, uihi: usize) -> super::super::Foundation::LPARAM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lparam.into_param().abi(), msgin, msgout, uilo, uihi) + ReuseDDElParam(lparam.param().abi(), msgin, msgout, uilo, uihi) } #[inline] pub unsafe fn SetClipboardData(uformat: u32, hmem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetClipboardData(uformat : u32, hmem : super::super::Foundation:: HANDLE) -> super::super::Foundation:: HANDLE); - let result__ = SetClipboardData(uformat, hmem.into_param().abi()); + let result__ = SetClipboardData(uformat, hmem.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetClipboardViewer(hwndnewviewer: P0) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetClipboardViewer(hwndnewviewer : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - SetClipboardViewer(hwndnewviewer.into_param().abi()) + SetClipboardViewer(hwndnewviewer.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetWinMetaFileBits(lpmeta16data: &[u8], hdcref: P0, lpmfp: Option<*const METAFILEPICT>) -> super::super::Graphics::Gdi::HENHMETAFILE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetWinMetaFileBits(nsize : u32, lpmeta16data : *const u8, hdcref : super::super::Graphics::Gdi:: HDC, lpmfp : *const METAFILEPICT) -> super::super::Graphics::Gdi:: HENHMETAFILE); - SetWinMetaFileBits(lpmeta16data.len().try_into().unwrap(), core::mem::transmute(lpmeta16data.as_ptr()), hdcref.into_param().abi(), core::mem::transmute(lpmfp.unwrap_or(std::ptr::null()))) + SetWinMetaFileBits(lpmeta16data.len().try_into().unwrap(), core::mem::transmute(lpmeta16data.as_ptr()), hdcref.param().abi(), core::mem::transmute(lpmfp.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn UnpackDDElParam(msg: u32, lparam: P0, puilo: *mut usize, puihi: *mut usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(msg, lparam.into_param().abi(), puilo, puihi) + UnpackDDElParam(msg, lparam.param().abi(), puilo, 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 4dc5f21ceb..aa75d1156f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn PxeAsyncRecvDone(hclientrequest: P0, action: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdspxe.dll" "system" fn PxeAsyncRecvDone(hclientrequest : super::super::Foundation:: HANDLE, action : u32) -> u32); - PxeAsyncRecvDone(hclientrequest.into_param().abi(), action) + PxeAsyncRecvDone(hclientrequest.param().abi(), 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 { @@ -34,10 +34,10 @@ pub unsafe fn PxeDhcpInitialize(precvpacket: *const core::ffi::c_void, urecvpack #[inline] pub unsafe fn PxeDhcpIsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: P0, pbpxeoptionpresent: Option<*mut super::super::Foundation::BOOL>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ppacket, upacketlen, brequestpacket.into_param().abi(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(std::ptr::null_mut()))) + PxeDhcpIsValid(ppacket, upacketlen, brequestpacket.param().abi(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(std::ptr::null_mut()))) } #[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 { @@ -72,10 +72,10 @@ pub unsafe fn PxeDhcpv6Initialize(prequest: *const core::ffi::c_void, cbrequest: #[inline] pub unsafe fn PxeDhcpv6IsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: P0, pbpxeoptionpresent: Option<*mut super::super::Foundation::BOOL>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(ppacket, upacketlen, brequestpacket.into_param().abi(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(std::ptr::null_mut()))) + PxeDhcpv6IsValid(ppacket, upacketlen, brequestpacket.param().abi(), core::mem::transmute(pbpxeoptionpresent.unwrap_or(std::ptr::null_mut()))) } #[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 { @@ -95,28 +95,28 @@ pub unsafe fn PxeGetServerInfoEx(uinfotype: u32, pbuffer: *mut core::ffi::c_void #[inline] pub unsafe fn PxePacketAllocate(hprovider: P0, hclientrequest: P1, usize: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprovider.into_param().abi(), hclientrequest.into_param().abi(), usize) + PxePacketAllocate(hprovider.param().abi(), hclientrequest.param().abi(), usize) } #[inline] pub unsafe fn PxePacketFree(hprovider: P0, hclientrequest: P1, ppacket: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprovider.into_param().abi(), hclientrequest.into_param().abi(), ppacket) + PxePacketFree(hprovider.param().abi(), hclientrequest.param().abi(), ppacket) } #[inline] pub unsafe fn PxeProviderEnumClose(henum: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderEnumClose(henum : super::super::Foundation:: HANDLE) -> u32); - PxeProviderEnumClose(henum.into_param().abi()) + PxeProviderEnumClose(henum.param().abi()) } #[inline] pub unsafe fn PxeProviderEnumFirst(phenum: *mut super::super::Foundation::HANDLE) -> u32 { @@ -126,10 +126,10 @@ pub unsafe fn PxeProviderEnumFirst(phenum: *mut super::super::Foundation::HANDLE #[inline] pub unsafe fn PxeProviderEnumNext(henum: P0, ppprovider: *mut *mut PXE_PROVIDER) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderEnumNext(henum : super::super::Foundation:: HANDLE, ppprovider : *mut *mut PXE_PROVIDER) -> u32); - PxeProviderEnumNext(henum.into_param().abi(), ppprovider) + PxeProviderEnumNext(henum.param().abi(), ppprovider) } #[inline] pub unsafe fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32 { @@ -139,95 +139,95 @@ pub unsafe fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32 { #[inline] pub unsafe fn PxeProviderQueryIndex(pszprovidername: P0, puindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderQueryIndex(pszprovidername : windows_core::PCWSTR, puindex : *mut u32) -> u32); - PxeProviderQueryIndex(pszprovidername.into_param().abi(), puindex) + PxeProviderQueryIndex(pszprovidername.param().abi(), puindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PxeProviderRegister(pszprovidername: P0, pszmodulepath: P1, index: u32, biscritical: P2, phproviderkey: Option<*mut super::Registry::HKEY>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszmodulepath.into_param().abi(), index, biscritical.into_param().abi(), core::mem::transmute(phproviderkey.unwrap_or(std::ptr::null_mut()))) + PxeProviderRegister(pszprovidername.param().abi(), pszmodulepath.param().abi(), index, biscritical.param().abi(), core::mem::transmute(phproviderkey.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn PxeProviderSetAttribute(hprovider: P0, attribute: u32, pparameterbuffer: *const core::ffi::c_void, uparamlen: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprovider.into_param().abi(), attribute, pparameterbuffer, uparamlen) + PxeProviderSetAttribute(hprovider.param().abi(), attribute, pparameterbuffer, uparamlen) } #[inline] pub unsafe fn PxeProviderUnRegister(pszprovidername: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdspxe.dll" "system" fn PxeProviderUnRegister(pszprovidername : windows_core::PCWSTR) -> u32); - PxeProviderUnRegister(pszprovidername.into_param().abi()) + PxeProviderUnRegister(pszprovidername.param().abi()) } #[inline] pub unsafe fn PxeRegisterCallback(hprovider: P0, callbacktype: u32, pcallbackfunction: *const core::ffi::c_void, pcontext: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprovider.into_param().abi(), callbacktype, pcallbackfunction, core::mem::transmute(pcontext.unwrap_or(std::ptr::null()))) + PxeRegisterCallback(hprovider.param().abi(), callbacktype, pcallbackfunction, core::mem::transmute(pcontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn PxeSendReply(hclientrequest: P0, ppacket: *const core::ffi::c_void, upacketlen: u32, paddress: *const PXE_ADDRESS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hclientrequest.into_param().abi(), ppacket, upacketlen, paddress) + PxeSendReply(hclientrequest.param().abi(), ppacket, upacketlen, paddress) } #[inline] pub unsafe fn PxeTrace(hprovider: P0, severity: u32, pszformat: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wdspxe.dll" "cdecl" fn PxeTrace(hprovider : super::super::Foundation:: HANDLE, severity : u32, pszformat : windows_core::PCWSTR) -> u32); - PxeTrace(hprovider.into_param().abi(), severity, pszformat.into_param().abi()) + PxeTrace(hprovider.param().abi(), severity, pszformat.param().abi()) } #[inline] pub unsafe fn PxeTraceV(hprovider: P0, severity: u32, pszformat: P1, params: *const i8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprovider.into_param().abi(), severity, pszformat.into_param().abi(), params) + PxeTraceV(hprovider.param().abi(), severity, pszformat.param().abi(), params) } #[inline] pub unsafe fn WdsBpAddOption(hhandle: P0, uoption: u32, uvaluelen: u32, pvalue: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hhandle.into_param().abi(), uoption, uvaluelen, pvalue) + WdsBpAddOption(hhandle.param().abi(), uoption, uvaluelen, pvalue) } #[inline] pub unsafe fn WdsBpCloseHandle(hhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsbp.dll" "system" fn WdsBpCloseHandle(hhandle : super::super::Foundation:: HANDLE) -> u32); - WdsBpCloseHandle(hhandle.into_param().abi()) + WdsBpCloseHandle(hhandle.param().abi()) } #[inline] pub unsafe fn WdsBpGetOptionBuffer(hhandle: P0, ubufferlen: u32, pbuffer: *mut core::ffi::c_void, pubytes: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hhandle.into_param().abi(), ubufferlen, pbuffer, pubytes) + WdsBpGetOptionBuffer(hhandle.param().abi(), ubufferlen, pbuffer, pubytes) } #[inline] pub unsafe fn WdsBpInitialize(bpackettype: u8, phhandle: *mut super::super::Foundation::HANDLE) -> u32 { @@ -247,60 +247,60 @@ pub unsafe fn WdsBpParseInitializev6(ppacket: *const core::ffi::c_void, upacketl #[inline] pub unsafe fn WdsBpQueryOption(hhandle: P0, uoption: u32, uvaluelen: u32, pvalue: *mut core::ffi::c_void, pubytes: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hhandle.into_param().abi(), uoption, uvaluelen, pvalue, core::mem::transmute(pubytes.unwrap_or(std::ptr::null_mut()))) + WdsBpQueryOption(hhandle.param().abi(), uoption, uvaluelen, pvalue, core::mem::transmute(pubytes.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn WdsCliAuthorizeSession(hsession: P0, pcred: Option<*const WDS_CLI_CRED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliAuthorizeSession(hsession : super::super::Foundation:: HANDLE, pcred : *const WDS_CLI_CRED) -> windows_core::HRESULT); - WdsCliAuthorizeSession(hsession.into_param().abi(), core::mem::transmute(pcred.unwrap_or(std::ptr::null()))).ok() + WdsCliAuthorizeSession(hsession.param().abi(), core::mem::transmute(pcred.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn WdsCliCancelTransfer(htransfer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliCancelTransfer(htransfer : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliCancelTransfer(htransfer.into_param().abi()).ok() + WdsCliCancelTransfer(htransfer.param().abi()).ok() } #[inline] pub unsafe fn WdsCliClose(handle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliClose(handle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliClose(handle.into_param().abi()).ok() + WdsCliClose(handle.param().abi()).ok() } #[inline] pub unsafe fn WdsCliCreateSession(pwszserver: P0, pcred: Option<*const WDS_CLI_CRED>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliCreateSession(pwszserver : windows_core::PCWSTR, pcred : *const WDS_CLI_CRED, phsession : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliCreateSession(pwszserver.into_param().abi(), core::mem::transmute(pcred.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + WdsCliCreateSession(pwszserver.param().abi(), core::mem::transmute(pcred.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliFindFirstImage(hsession: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WdsCliFindFirstImage(hsession.into_param().abi(), &mut result__).map(|| result__) + WdsCliFindFirstImage(hsession.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliFindNextImage(handle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliFindNextImage(handle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliFindNextImage(handle.into_param().abi()).ok() + WdsCliFindNextImage(handle.param().abi()).ok() } #[inline] pub unsafe fn WdsCliFreeStringArray(ppwszarray: Option<&mut [windows_core::PWSTR]>) -> windows_core::Result<()> { @@ -310,223 +310,223 @@ pub unsafe fn WdsCliFreeStringArray(ppwszarray: Option<&mut [windows_core::PWSTR #[inline] pub unsafe fn WdsCliGetDriverQueryXml(pwszwindirpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetDriverQueryXml(pwszwindirpath : windows_core::PCWSTR, ppwszdriverquery : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetDriverQueryXml(pwszwindirpath.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetDriverQueryXml(pwszwindirpath.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetEnumerationFlags(handle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetEnumerationFlags(handle : super::super::Foundation:: HANDLE, pdwflags : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetEnumerationFlags(handle.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetEnumerationFlags(handle.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageArchitecture(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageArchitecture(hifh : super::super::Foundation:: HANDLE, pdwvalue : *mut CPU_ARCHITECTURE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageArchitecture(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageArchitecture(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageDescription(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageDescription(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageDescription(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageDescription(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageFiles(hifh: P0, pppwszfiles: *mut *mut windows_core::PWSTR, pdwcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hifh.into_param().abi(), pppwszfiles, pdwcount).ok() + WdsCliGetImageFiles(hifh.param().abi(), pppwszfiles, pdwcount).ok() } #[inline] pub unsafe fn WdsCliGetImageGroup(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageGroup(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageGroup(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageGroup(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageHalName(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageHalName(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageHalName(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageHalName(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageHandleFromFindHandle(findhandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WdsCliGetImageHandleFromFindHandle(findhandle.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageHandleFromFindHandle(findhandle.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageHandleFromTransferHandle(htransfer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WdsCliGetImageHandleFromTransferHandle(htransfer.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageHandleFromTransferHandle(htransfer.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageIndex(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageIndex(hifh : super::super::Foundation:: HANDLE, pdwvalue : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageIndex(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageIndex(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageLanguage(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageLanguage(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageLanguage(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageLanguage(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageLanguages(hifh: P0, pppszvalues: *mut *mut *mut i8, pdwnumvalues: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hifh.into_param().abi(), pppszvalues, pdwnumvalues).ok() + WdsCliGetImageLanguages(hifh.param().abi(), pppszvalues, pdwnumvalues).ok() } #[inline] pub unsafe fn WdsCliGetImageLastModifiedTime(hifh: P0) -> windows_core::Result<*mut super::super::Foundation::SYSTEMTIME> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WdsCliGetImageLastModifiedTime(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageLastModifiedTime(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageName(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageName(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageName(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageName(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageNamespace(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageNamespace(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageNamespace(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageNamespace(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageParameter(hifh: P0, paramtype: WDS_CLI_IMAGE_PARAM_TYPE, presponse: *mut core::ffi::c_void, uresponselen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hifh.into_param().abi(), paramtype, presponse, uresponselen).ok() + WdsCliGetImageParameter(hifh.param().abi(), paramtype, presponse, uresponselen).ok() } #[inline] pub unsafe fn WdsCliGetImagePath(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImagePath(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImagePath(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImagePath(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageSize(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageSize(hifh : super::super::Foundation:: HANDLE, pullvalue : *mut u64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageSize(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageSize(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageType(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WdsCliGetImageType(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageType(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetImageVersion(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetImageVersion(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetImageVersion(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetImageVersion(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliGetTransferSize(hifh: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliGetTransferSize(hifh : super::super::Foundation:: HANDLE, pullvalue : *mut u64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WdsCliGetTransferSize(hifh.into_param().abi(), &mut result__).map(|| result__) + WdsCliGetTransferSize(hifh.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliInitializeLog(hsession: P0, ulclientarchitecture: CPU_ARCHITECTURE, pwszclientid: P1, pwszclientaddress: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hsession.into_param().abi(), ulclientarchitecture, pwszclientid.into_param().abi(), pwszclientaddress.into_param().abi()).ok() + WdsCliInitializeLog(hsession.param().abi(), ulclientarchitecture, pwszclientid.param().abi(), pwszclientaddress.param().abi()).ok() } #[inline] pub unsafe fn WdsCliLog(hsession: P0, ulloglevel: u32, ulmessagecode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "cdecl" fn WdsCliLog(hsession : super::super::Foundation:: HANDLE, ulloglevel : u32, ulmessagecode : u32) -> windows_core::HRESULT); - WdsCliLog(hsession.into_param().abi(), ulloglevel, ulmessagecode).ok() + WdsCliLog(hsession.param().abi(), ulloglevel, ulmessagecode).ok() } #[inline] pub unsafe fn WdsCliObtainDriverPackages(himage: P0, ppwszservername: *mut windows_core::PWSTR, pppwszdriverpackages: *mut *mut windows_core::PWSTR, pulcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(himage.into_param().abi(), ppwszservername, pppwszdriverpackages, pulcount).ok() + WdsCliObtainDriverPackages(himage.param().abi(), ppwszservername, pppwszdriverpackages, pulcount).ok() } #[inline] pub unsafe fn WdsCliObtainDriverPackagesEx(hsession: P0, pwszmachineinfo: P1, ppwszservername: *mut windows_core::PWSTR, pppwszdriverpackages: *mut *mut windows_core::PWSTR, pulcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hsession.into_param().abi(), pwszmachineinfo.into_param().abi(), ppwszservername, pppwszdriverpackages, pulcount).ok() + WdsCliObtainDriverPackagesEx(hsession.param().abi(), pwszmachineinfo.param().abi(), ppwszservername, pppwszdriverpackages, pulcount).ok() } #[inline] pub unsafe fn WdsCliRegisterTrace(pfn: PFN_WdsCliTraceFunction) -> windows_core::Result<()> { @@ -541,32 +541,32 @@ pub unsafe fn WdsCliSetTransferBufferSize(ulsizeinbytes: u32) { #[inline] pub unsafe fn WdsCliTransferFile(pwszserver: P0, pwsznamespace: P1, pwszremotefilepath: P2, pwszlocalfilepath: P3, dwflags: u32, dwreserved: u32, pfnwdsclicallback: PFN_WdsCliCallback, pvuserdata: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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__ = std::mem::zeroed(); - WdsCliTransferFile(pwszserver.into_param().abi(), pwsznamespace.into_param().abi(), pwszremotefilepath.into_param().abi(), pwszlocalfilepath.into_param().abi(), dwflags, dwreserved, pfnwdsclicallback, core::mem::transmute(pvuserdata.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + WdsCliTransferFile(pwszserver.param().abi(), pwsznamespace.param().abi(), pwszremotefilepath.param().abi(), pwszlocalfilepath.param().abi(), dwflags, dwreserved, pfnwdsclicallback, core::mem::transmute(pvuserdata.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliTransferImage(himage: P0, pwszlocalpath: P1, dwflags: u32, dwreserved: u32, pfnwdsclicallback: PFN_WdsCliCallback, pvuserdata: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WdsCliTransferImage(himage.into_param().abi(), pwszlocalpath.into_param().abi(), dwflags, dwreserved, pfnwdsclicallback, core::mem::transmute(pvuserdata.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + WdsCliTransferImage(himage.param().abi(), pwszlocalpath.param().abi(), dwflags, dwreserved, pfnwdsclicallback, core::mem::transmute(pvuserdata.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn WdsCliWaitForTransfer(htransfer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsclientapi.dll" "system" fn WdsCliWaitForTransfer(htransfer : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WdsCliWaitForTransfer(htransfer.into_param().abi()).ok() + WdsCliWaitForTransfer(htransfer.param().abi()).ok() } #[inline] pub unsafe fn WdsTransportClientAddRefBuffer(pvbuffer: *const core::ffi::c_void) -> u32 { @@ -576,34 +576,34 @@ pub unsafe fn WdsTransportClientAddRefBuffer(pvbuffer: *const core::ffi::c_void) #[inline] pub unsafe fn WdsTransportClientCancelSession(hsessionkey: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCancelSession(hsessionkey : super::super::Foundation:: HANDLE) -> u32); - WdsTransportClientCancelSession(hsessionkey.into_param().abi()) + WdsTransportClientCancelSession(hsessionkey.param().abi()) } #[inline] pub unsafe fn WdsTransportClientCancelSessionEx(hsessionkey: P0, dwerrorcode: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCancelSessionEx(hsessionkey : super::super::Foundation:: HANDLE, dwerrorcode : u32) -> u32); - WdsTransportClientCancelSessionEx(hsessionkey.into_param().abi(), dwerrorcode) + WdsTransportClientCancelSessionEx(hsessionkey.param().abi(), dwerrorcode) } #[inline] pub unsafe fn WdsTransportClientCloseSession(hsessionkey: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCloseSession(hsessionkey : super::super::Foundation:: HANDLE) -> u32); - WdsTransportClientCloseSession(hsessionkey.into_param().abi()) + WdsTransportClientCloseSession(hsessionkey.param().abi()) } #[inline] pub unsafe fn WdsTransportClientCompleteReceive(hsessionkey: P0, ulsize: u32, pulloffset: *const u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientCompleteReceive(hsessionkey : super::super::Foundation:: HANDLE, ulsize : u32, pulloffset : *const u64) -> u32); - WdsTransportClientCompleteReceive(hsessionkey.into_param().abi(), ulsize, pulloffset) + WdsTransportClientCompleteReceive(hsessionkey.param().abi(), ulsize, pulloffset) } #[inline] pub unsafe fn WdsTransportClientInitialize() -> u32 { @@ -618,18 +618,18 @@ pub unsafe fn WdsTransportClientInitializeSession(psessionrequest: *const WDS_TR #[inline] pub unsafe fn WdsTransportClientQueryStatus(hsessionkey: P0, pustatus: *mut u32, puerrorcode: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientQueryStatus(hsessionkey : super::super::Foundation:: HANDLE, pustatus : *mut u32, puerrorcode : *mut u32) -> u32); - WdsTransportClientQueryStatus(hsessionkey.into_param().abi(), pustatus, puerrorcode) + WdsTransportClientQueryStatus(hsessionkey.param().abi(), pustatus, puerrorcode) } #[inline] pub unsafe fn WdsTransportClientRegisterCallback(hsessionkey: P0, callbackid: TRANSPORTCLIENT_CALLBACK_ID, pfncallback: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hsessionkey.into_param().abi(), callbackid, pfncallback) + WdsTransportClientRegisterCallback(hsessionkey.param().abi(), callbackid, pfncallback) } #[inline] pub unsafe fn WdsTransportClientReleaseBuffer(pvbuffer: *const core::ffi::c_void) -> u32 { @@ -644,68 +644,68 @@ pub unsafe fn WdsTransportClientShutdown() -> u32 { #[inline] pub unsafe fn WdsTransportClientStartSession(hsessionkey: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientStartSession(hsessionkey : super::super::Foundation:: HANDLE) -> u32); - WdsTransportClientStartSession(hsessionkey.into_param().abi()) + WdsTransportClientStartSession(hsessionkey.param().abi()) } #[inline] pub unsafe fn WdsTransportClientWaitForCompletion(hsessionkey: P0, utimeout: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdstptc.dll" "system" fn WdsTransportClientWaitForCompletion(hsessionkey : super::super::Foundation:: HANDLE, utimeout : u32) -> u32); - WdsTransportClientWaitForCompletion(hsessionkey.into_param().abi(), utimeout) + WdsTransportClientWaitForCompletion(hsessionkey.param().abi(), utimeout) } #[inline] pub unsafe fn WdsTransportServerAllocateBuffer(hprovider: P0, ulbuffersize: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsmc.dll" "system" fn WdsTransportServerAllocateBuffer(hprovider : super::super::Foundation:: HANDLE, ulbuffersize : u32) -> *mut core::ffi::c_void); - WdsTransportServerAllocateBuffer(hprovider.into_param().abi(), ulbuffersize) + WdsTransportServerAllocateBuffer(hprovider.param().abi(), ulbuffersize) } #[inline] pub unsafe fn WdsTransportServerCompleteRead(hprovider: P0, ulbytesread: u32, pvuserdata: *const core::ffi::c_void, hreadresult: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprovider.into_param().abi(), ulbytesread, pvuserdata, hreadresult).ok() + WdsTransportServerCompleteRead(hprovider.param().abi(), ulbytesread, pvuserdata, hreadresult).ok() } #[inline] pub unsafe fn WdsTransportServerFreeBuffer(hprovider: P0, pvbuffer: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wdsmc.dll" "system" fn WdsTransportServerFreeBuffer(hprovider : super::super::Foundation:: HANDLE, pvbuffer : *const core::ffi::c_void) -> windows_core::HRESULT); - WdsTransportServerFreeBuffer(hprovider.into_param().abi(), pvbuffer).ok() + WdsTransportServerFreeBuffer(hprovider.param().abi(), pvbuffer).ok() } #[inline] pub unsafe fn WdsTransportServerRegisterCallback(hprovider: P0, callbackid: TRANSPORTPROVIDER_CALLBACK_ID, pfncallback: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprovider.into_param().abi(), callbackid, pfncallback).ok() + WdsTransportServerRegisterCallback(hprovider.param().abi(), callbackid, pfncallback).ok() } #[inline] pub unsafe fn WdsTransportServerTrace(hprovider: P0, severity: u32, pwszformat: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprovider.into_param().abi(), severity, pwszformat.into_param().abi()).ok() + WdsTransportServerTrace(hprovider.param().abi(), severity, pwszformat.param().abi()).ok() } #[inline] pub unsafe fn WdsTransportServerTraceV(hprovider: P0, severity: u32, pwszformat: P1, params: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprovider.into_param().abi(), severity, pwszformat.into_param().abi(), params).ok() + WdsTransportServerTraceV(hprovider.param().abi(), severity, pwszformat.param().abi(), params).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IWdsTransportCacheable, IWdsTransportCacheable_Vtbl, 0x46ad894b_0bab_47dc_84b2_7b553f1d8f80); @@ -860,10 +860,10 @@ impl IWdsTransportConfigurationManager { } pub unsafe fn get_WdsTransportServicesRunning(&self, brealtimestatus: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_WdsTransportServicesRunning)(windows_core::Interface::as_raw(self), brealtimestatus.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_WdsTransportServicesRunning)(windows_core::Interface::as_raw(self), brealtimestatus.param().abi(), &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() @@ -922,10 +922,10 @@ impl IWdsTransportConfigurationManager2 { } pub unsafe fn get_WdsTransportServicesRunning(&self, brealtimestatus: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_WdsTransportServicesRunning)(windows_core::Interface::as_raw(self), brealtimestatus.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.get_WdsTransportServicesRunning)(windows_core::Interface::as_raw(self), brealtimestatus.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EnableWdsTransportServices(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EnableWdsTransportServices)(windows_core::Interface::as_raw(self)).ok() @@ -1061,9 +1061,9 @@ impl IWdsTransportDiagnosticsPolicy { } pub unsafe fn SetEnabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn Components(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1091,10 +1091,10 @@ impl IWdsTransportManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWdsTransportServer(&self, bszservername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWdsTransportServer)(windows_core::Interface::as_raw(self), bszservername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWdsTransportServer)(windows_core::Interface::as_raw(self), bszservername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1152,9 +1152,9 @@ impl IWdsTransportMulticastSessionPolicy { } pub unsafe fn SetSlowClientFallback(&self, bclientfallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSlowClientFallback)(windows_core::Interface::as_raw(self), bclientfallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSlowClientFallback)(windows_core::Interface::as_raw(self), bclientfallback.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1190,9 +1190,9 @@ impl IWdsTransportNamespace { } pub unsafe fn SetName(&self, bszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bszname.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1200,9 +1200,9 @@ impl IWdsTransportNamespace { } pub unsafe fn SetFriendlyName(&self, bszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1210,9 +1210,9 @@ impl IWdsTransportNamespace { } pub unsafe fn SetDescription(&self, bszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bszdescription.param().abi()).ok() } pub unsafe fn ContentProvider(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1220,9 +1220,9 @@ impl IWdsTransportNamespace { } pub unsafe fn SetContentProvider(&self, bszcontentprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.param().abi()).ok() } pub unsafe fn Configuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1230,9 +1230,9 @@ impl IWdsTransportNamespace { } pub unsafe fn SetConfiguration(&self, bszconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.param().abi()).ok() } pub unsafe fn Registered(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1255,9 +1255,9 @@ impl IWdsTransportNamespace { } pub unsafe fn Deregister(&self, bterminatesessions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1325,9 +1325,9 @@ impl IWdsTransportNamespaceAutoCast { } pub unsafe fn SetName(&self, bszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bszname.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1335,9 +1335,9 @@ impl IWdsTransportNamespaceAutoCast { } pub unsafe fn SetFriendlyName(&self, bszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1345,9 +1345,9 @@ impl IWdsTransportNamespaceAutoCast { } pub unsafe fn SetDescription(&self, bszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.param().abi()).ok() } pub unsafe fn ContentProvider(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1355,9 +1355,9 @@ impl IWdsTransportNamespaceAutoCast { } pub unsafe fn SetContentProvider(&self, bszcontentprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.param().abi()).ok() } pub unsafe fn Configuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1365,9 +1365,9 @@ impl IWdsTransportNamespaceAutoCast { } pub unsafe fn SetConfiguration(&self, bszconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.param().abi()).ok() } pub unsafe fn Registered(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1390,9 +1390,9 @@ impl IWdsTransportNamespaceAutoCast { } pub unsafe fn Deregister(&self, bterminatesessions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1422,30 +1422,30 @@ impl IWdsTransportNamespaceManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateNamespace(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: P0, bszcontentprovider: P1, bszconfiguration: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNamespace)(windows_core::Interface::as_raw(self), namespacetype, bsznamespacename.into_param().abi(), bszcontentprovider.into_param().abi(), bszconfiguration.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNamespace)(windows_core::Interface::as_raw(self), namespacetype, bsznamespacename.param().abi(), bszcontentprovider.param().abi(), bszconfiguration.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RetrieveNamespace(&self, bsznamespacename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RetrieveNamespace)(windows_core::Interface::as_raw(self), bsznamespacename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RetrieveNamespace)(windows_core::Interface::as_raw(self), bsznamespacename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RetrieveNamespaces(&self, bszcontentprovider: P0, bsznamespacename: P1, bincludetombstones: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RetrieveNamespaces)(windows_core::Interface::as_raw(self), bszcontentprovider.into_param().abi(), bsznamespacename.into_param().abi(), bincludetombstones.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RetrieveNamespaces)(windows_core::Interface::as_raw(self), bszcontentprovider.param().abi(), bsznamespacename.param().abi(), bincludetombstones.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1485,9 +1485,9 @@ impl IWdsTransportNamespaceScheduledCast { } pub unsafe fn SetName(&self, bszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bszname.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1495,9 +1495,9 @@ impl IWdsTransportNamespaceScheduledCast { } pub unsafe fn SetFriendlyName(&self, bszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1505,9 +1505,9 @@ impl IWdsTransportNamespaceScheduledCast { } pub unsafe fn SetDescription(&self, bszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.param().abi()).ok() } pub unsafe fn ContentProvider(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1515,9 +1515,9 @@ impl IWdsTransportNamespaceScheduledCast { } pub unsafe fn SetContentProvider(&self, bszcontentprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.param().abi()).ok() } pub unsafe fn Configuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1525,9 +1525,9 @@ impl IWdsTransportNamespaceScheduledCast { } pub unsafe fn SetConfiguration(&self, bszconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.param().abi()).ok() } pub unsafe fn Registered(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1550,9 +1550,9 @@ impl IWdsTransportNamespaceScheduledCast { } pub unsafe fn Deregister(&self, bterminatesessions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1597,9 +1597,9 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { } pub unsafe fn SetName(&self, bszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bszname.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1607,9 +1607,9 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { } pub unsafe fn SetFriendlyName(&self, bszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1617,9 +1617,9 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { } pub unsafe fn SetDescription(&self, bszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.param().abi()).ok() } pub unsafe fn ContentProvider(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1627,9 +1627,9 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { } pub unsafe fn SetContentProvider(&self, bszcontentprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.param().abi()).ok() } pub unsafe fn Configuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1637,9 +1637,9 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { } pub unsafe fn SetConfiguration(&self, bszconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.param().abi()).ok() } pub unsafe fn Registered(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1662,9 +1662,9 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { } pub unsafe fn Deregister(&self, bterminatesessions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1726,9 +1726,9 @@ impl IWdsTransportNamespaceScheduledCastManualStart { } pub unsafe fn SetName(&self, bszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bszname.param().abi()).ok() } pub unsafe fn FriendlyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1736,9 +1736,9 @@ impl IWdsTransportNamespaceScheduledCastManualStart { } pub unsafe fn SetFriendlyName(&self, bszfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFriendlyName)(windows_core::Interface::as_raw(self), bszfriendlyname.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1746,9 +1746,9 @@ impl IWdsTransportNamespaceScheduledCastManualStart { } pub unsafe fn SetDescription(&self, bszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDescription)(windows_core::Interface::as_raw(self), bszdescription.param().abi()).ok() } pub unsafe fn ContentProvider(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1756,9 +1756,9 @@ impl IWdsTransportNamespaceScheduledCastManualStart { } pub unsafe fn SetContentProvider(&self, bszcontentprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetContentProvider)(windows_core::Interface::as_raw(self), bszcontentprovider.param().abi()).ok() } pub unsafe fn Configuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1766,9 +1766,9 @@ impl IWdsTransportNamespaceScheduledCastManualStart { } pub unsafe fn SetConfiguration(&self, bszconfiguration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetConfiguration)(windows_core::Interface::as_raw(self), bszconfiguration.param().abi()).ok() } pub unsafe fn Registered(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1791,9 +1791,9 @@ impl IWdsTransportNamespaceScheduledCastManualStart { } pub unsafe fn Deregister(&self, bterminatesessions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Deregister)(windows_core::Interface::as_raw(self), bterminatesessions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -1940,9 +1940,9 @@ impl IWdsTransportServicePolicy { } pub unsafe fn put_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_StartIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszstartipaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_StartIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszstartipaddress.param().abi()).ok() } pub unsafe fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1950,9 +1950,9 @@ impl IWdsTransportServicePolicy { } pub unsafe fn put_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_EndIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszendipaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_EndIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszendipaddress.param().abi()).ok() } pub unsafe fn StartPort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2025,9 +2025,9 @@ impl IWdsTransportServicePolicy2 { } pub unsafe fn put_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_StartIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszstartipaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_StartIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszstartipaddress.param().abi()).ok() } pub unsafe fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2035,9 +2035,9 @@ impl IWdsTransportServicePolicy2 { } pub unsafe fn put_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_EndIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszendipaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_EndIpAddress)(windows_core::Interface::as_raw(self), addresstype, bszendipaddress.param().abi()).ok() } pub unsafe fn StartPort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2080,9 +2080,9 @@ impl IWdsTransportServicePolicy2 { } pub unsafe fn SetEnableTftpVariableWindowExtension(&self, benabletftpvariablewindowextension: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableTftpVariableWindowExtension)(windows_core::Interface::as_raw(self), benabletftpvariablewindowextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableTftpVariableWindowExtension)(windows_core::Interface::as_raw(self), benabletftpvariablewindowextension.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2175,18 +2175,18 @@ impl IWdsTransportSetupManager { } pub unsafe fn RegisterContentProvider(&self, bszname: P0, bszdescription: P1, bszfilepath: P2, bszinitializationroutine: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterContentProvider)(windows_core::Interface::as_raw(self), bszname.into_param().abi(), bszdescription.into_param().abi(), bszfilepath.into_param().abi(), bszinitializationroutine.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterContentProvider)(windows_core::Interface::as_raw(self), bszname.param().abi(), bszdescription.param().abi(), bszfilepath.param().abi(), bszinitializationroutine.param().abi()).ok() } pub unsafe fn DeregisterContentProvider(&self, bszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeregisterContentProvider)(windows_core::Interface::as_raw(self), bszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeregisterContentProvider)(windows_core::Interface::as_raw(self), bszname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2219,18 +2219,18 @@ impl IWdsTransportSetupManager2 { } pub unsafe fn RegisterContentProvider(&self, bszname: P0, bszdescription: P1, bszfilepath: P2, bszinitializationroutine: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterContentProvider)(windows_core::Interface::as_raw(self), bszname.into_param().abi(), bszdescription.into_param().abi(), bszfilepath.into_param().abi(), bszinitializationroutine.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterContentProvider)(windows_core::Interface::as_raw(self), bszname.param().abi(), bszdescription.param().abi(), bszfilepath.param().abi(), bszinitializationroutine.param().abi()).ok() } pub unsafe fn DeregisterContentProvider(&self, bszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeregisterContentProvider)(windows_core::Interface::as_raw(self), bszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeregisterContentProvider)(windows_core::Interface::as_raw(self), bszname.param().abi()).ok() } pub unsafe fn TftpCapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 5dec741314..ca331e8077 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs @@ -19,9 +19,9 @@ impl IRDPSRAPIApplication { } pub unsafe fn SetShared(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -68,9 +68,9 @@ impl IRDPSRAPIApplicationFilter { } pub unsafe fn SetEnabled(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -260,10 +260,10 @@ impl IRDPSRAPIClipboardUseEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnPasteFromClipboard(&self, clipboardformat: u32, pattendee: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPasteFromClipboard)(windows_core::Interface::as_raw(self), clipboardformat, pattendee.into_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)] @@ -279,9 +279,9 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPIDebug, windows_core::IUnknown); impl IRDPSRAPIDebug { pub unsafe fn SetCLXCmdLine(&self, clxcmdline: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCLXCmdLine)(windows_core::Interface::as_raw(self), clxcmdline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCLXCmdLine)(windows_core::Interface::as_raw(self), clxcmdline.param().abi()).ok() } pub unsafe fn CLXCmdLine(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -361,9 +361,9 @@ impl IRDPSRAPIInvitation { } pub unsafe fn SetRevoked(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRevoked)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRevoked)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -391,10 +391,10 @@ impl IRDPSRAPIInvitationManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -403,12 +403,12 @@ impl IRDPSRAPIInvitationManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateInvitation(&self, bstrauthstring: P0, bstrgroupname: P1, bstrpassword: P2, attendeelimit: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInvitation)(windows_core::Interface::as_raw(self), bstrauthstring.into_param().abi(), bstrgroupname.into_param().abi(), bstrpassword.into_param().abi(), attendeelimit, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInvitation)(windows_core::Interface::as_raw(self), bstrauthstring.param().abi(), bstrgroupname.param().abi(), bstrpassword.param().abi(), attendeelimit, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -443,10 +443,10 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPIPerfCounterLoggingManager, wind impl IRDPSRAPIPerfCounterLoggingManager { pub unsafe fn CreateLogger(&self, bstrcountername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLogger)(windows_core::Interface::as_raw(self), bstrcountername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLogger)(windows_core::Interface::as_raw(self), bstrcountername.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -462,17 +462,17 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPISessionProperties, windows_core impl IRDPSRAPISessionProperties { pub unsafe fn get_Property(&self, propertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), propertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn put_Property(&self, propertyname: P0, newval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), propertyname.param().abi(), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -534,9 +534,9 @@ impl IRDPSRAPISharingSession { } pub unsafe fn ConnectToClient(&self, bstrconnectionstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectToClient)(windows_core::Interface::as_raw(self), bstrconnectionstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectToClient)(windows_core::Interface::as_raw(self), bstrconnectionstring.param().abi()).ok() } pub unsafe fn SetDesktopSharedRect(&self, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDesktopSharedRect)(windows_core::Interface::as_raw(self), left, top, right, bottom).ok() @@ -631,9 +631,9 @@ impl IRDPSRAPISharingSession2 { } pub unsafe fn ConnectToClient(&self, bstrconnectionstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConnectToClient)(windows_core::Interface::as_raw(self), bstrconnectionstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConnectToClient)(windows_core::Interface::as_raw(self), bstrconnectionstring.param().abi()).ok() } pub unsafe fn SetDesktopSharedRect(&self, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetDesktopSharedRect)(windows_core::Interface::as_raw(self), left, top, right, bottom).ok() @@ -643,11 +643,11 @@ impl IRDPSRAPISharingSession2 { } pub unsafe fn ConnectUsingTransportStream(&self, pstream: P0, bstrgroup: P1, bstrauthenticatedattendeename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectUsingTransportStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), bstrgroup.into_param().abi(), bstrauthenticatedattendeename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectUsingTransportStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), bstrgroup.param().abi(), bstrauthenticatedattendeename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FrameBuffer(&self) -> windows_core::Result { @@ -657,9 +657,9 @@ impl IRDPSRAPISharingSession2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SendControlLevelChangeResponse(&self, pattendee: P0, requestedlevel: CTRL_LEVEL, reasoncode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendControlLevelChangeResponse)(windows_core::Interface::as_raw(self), pattendee.into_param().abi(), requestedlevel, 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")] @@ -722,27 +722,27 @@ impl IRDPSRAPITransportStream { } pub unsafe fn FreeBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FreeBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FreeBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn WriteBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn ReadBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReadBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } pub unsafe fn Open(&self, pcallbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pcallbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pcallbacks.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -796,9 +796,9 @@ impl IRDPSRAPITransportStreamBuffer { } pub unsafe fn SetContext(&self, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), pcontext.param().abi()).ok() } } #[repr(C)] @@ -820,15 +820,15 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStreamEvents, windows_ impl IRDPSRAPITransportStreamEvents { pub unsafe fn OnWriteCompleted(&self, pbuffer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnWriteCompleted)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()) + (windows_core::Interface::vtable(self).OnWriteCompleted)(windows_core::Interface::as_raw(self), pbuffer.param().abi()) } pub unsafe fn OnReadCompleted(&self, pbuffer: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReadCompleted)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()) + (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), hrreason) @@ -849,11 +849,11 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPIViewer, windows_core::IUnknown, impl IRDPSRAPIViewer { pub unsafe fn Connect(&self, bstrconnectionstring: P0, bstrname: P1, bstrpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrconnectionstring.into_param().abi(), bstrname.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrconnectionstring.param().abi(), bstrname.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -880,9 +880,9 @@ impl IRDPSRAPIViewer { } pub unsafe fn SetSmartSizing(&self, vbsmartsizing: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSmartSizing)(windows_core::Interface::as_raw(self), vbsmartsizing.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSmartSizing)(windows_core::Interface::as_raw(self), vbsmartsizing.param().abi()).ok() } pub unsafe fn SmartSizing(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -893,9 +893,9 @@ impl IRDPSRAPIViewer { } pub unsafe fn SetDisconnectedText(&self, bstrdisconnectedtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisconnectedText)(windows_core::Interface::as_raw(self), bstrdisconnectedtext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisconnectedText)(windows_core::Interface::as_raw(self), bstrdisconnectedtext.param().abi()).ok() } pub unsafe fn DisconnectedText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -911,12 +911,12 @@ impl IRDPSRAPIViewer { } pub unsafe fn StartReverseConnectListener(&self, bstrconnectionstring: P0, bstrusername: P1, bstrpassword: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartReverseConnectListener)(windows_core::Interface::as_raw(self), bstrconnectionstring.into_param().abi(), bstrusername.into_param().abi(), bstrpassword.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).StartReverseConnectListener)(windows_core::Interface::as_raw(self), bstrconnectionstring.param().abi(), bstrusername.param().abi(), bstrpassword.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -961,9 +961,9 @@ windows_core::imp::interface_hierarchy!(IRDPSRAPIVirtualChannel, windows_core::I impl IRDPSRAPIVirtualChannel { pub unsafe fn SendData(&self, bstrdata: P0, lattendeeid: i32, channelsendflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi(), lattendeeid, channelsendflags).ok() + (windows_core::Interface::vtable(self).SendData)(windows_core::Interface::as_raw(self), bstrdata.param().abi(), lattendeeid, channelsendflags).ok() } pub unsafe fn SetAccess(&self, lattendeeid: i32, accesstype: CHANNEL_ACCESS_ENUM) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAccess)(windows_core::Interface::as_raw(self), lattendeeid, accesstype).ok() @@ -1004,18 +1004,18 @@ impl IRDPSRAPIVirtualChannelManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, item: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateVirtualChannel(&self, bstrchannelname: P0, priority: CHANNEL_PRIORITY, channelflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), bstrchannelname.into_param().abi(), priority, channelflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), bstrchannelname.param().abi(), priority, channelflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1053,9 +1053,9 @@ impl IRDPSRAPIWindow { } pub unsafe fn SetShared(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShared)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1115,9 +1115,9 @@ windows_core::imp::interface_hierarchy!(IRDPViewerInputSink, windows_core::IUnkn impl IRDPViewerInputSink { pub unsafe fn SendMouseButtonEvent(&self, buttontype: RDPSRAPI_MOUSE_BUTTON_TYPE, vbbuttondown: P0, xpos: u32, ypos: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendMouseButtonEvent)(windows_core::Interface::as_raw(self), buttontype, vbbuttondown.into_param().abi(), xpos, ypos).ok() + (windows_core::Interface::vtable(self).SendMouseButtonEvent)(windows_core::Interface::as_raw(self), buttontype, vbbuttondown.param().abi(), 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), xpos, ypos).ok() @@ -1127,11 +1127,11 @@ impl IRDPViewerInputSink { } pub unsafe fn SendKeyboardEvent(&self, codetype: RDPSRAPI_KBD_CODE_TYPE, keycode: u16, vbkeyup: P0, vbrepeat: P1, vbextended: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SendKeyboardEvent)(windows_core::Interface::as_raw(self), codetype, keycode, vbkeyup.into_param().abi(), vbrepeat.into_param().abi(), vbextended.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendKeyboardEvent)(windows_core::Interface::as_raw(self), codetype, keycode, vbkeyup.param().abi(), vbrepeat.param().abi(), vbextended.param().abi()).ok() } pub unsafe fn SendSyncEvent(&self, syncflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendSyncEvent)(windows_core::Interface::as_raw(self), syncflags).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs index 13c3db942c..1003e8958a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn AcquireDeveloperLicense(hwndparent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsclient.dll" "system" fn AcquireDeveloperLicense(hwndparent : super::super::Foundation:: HWND, pexpiration : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - AcquireDeveloperLicense(hwndparent.into_param().abi(), &mut result__).map(|| result__) + AcquireDeveloperLicense(hwndparent.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn CheckDeveloperLicense() -> windows_core::Result { @@ -16,8 +16,8 @@ pub unsafe fn CheckDeveloperLicense() -> windows_core::Result(hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsclient.dll" "system" fn RemoveDeveloperLicense(hwndparent : super::super::Foundation:: HWND) -> windows_core::HRESULT); - RemoveDeveloperLicense(hwndparent.into_param().abi()).ok() + RemoveDeveloperLicense(hwndparent.param().abi()).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 533ac184d3..bdd054d7cd 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 @@ -19,9 +19,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback, windows_core::IUnk impl ICorProfilerCallback { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -82,15 +82,15 @@ impl ICorProfilerCallback { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -120,24 +120,24 @@ impl ICorProfilerCallback { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -147,9 +147,9 @@ impl ICorProfilerCallback { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).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), functionid, reason).ok() @@ -326,9 +326,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback10, windows_core::IU impl ICorProfilerCallback10 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -389,15 +389,15 @@ impl ICorProfilerCallback10 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -427,24 +427,24 @@ impl ICorProfilerCallback10 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -454,9 +454,9 @@ impl ICorProfilerCallback10 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -580,9 +580,9 @@ impl ICorProfilerCallback10 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -592,21 +592,21 @@ impl ICorProfilerCallback10 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() @@ -622,25 +622,25 @@ impl ICorProfilerCallback10 { } pub unsafe fn GetAssemblyReferences(&self, wszassemblypath: P0, pasmrefprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.into_param().abi(), pasmrefprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.param().abi(), pasmrefprovider.param().abi()).ok() } pub unsafe fn ModuleInMemorySymbolsUpdated(&self, moduleid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.ModuleInMemorySymbolsUpdated)(windows_core::Interface::as_raw(self), moduleid).ok() } pub unsafe fn DynamicMethodJITCompilationStarted(&self, functionid: usize, fissafetoblock: P0, pilheader: *const u8, cbilheader: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi(), pilheader, cbilheader).ok() + (windows_core::Interface::vtable(self).base__.base__.DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi(), pilheader, cbilheader).ok() } pub unsafe fn DynamicMethodJITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn DynamicMethodUnloaded(&self, functionid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DynamicMethodUnloaded)(windows_core::Interface::as_raw(self), functionid).ok() @@ -663,9 +663,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback11, windows_core::IU impl ICorProfilerCallback11 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -726,15 +726,15 @@ impl ICorProfilerCallback11 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -764,24 +764,24 @@ impl ICorProfilerCallback11 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -791,9 +791,9 @@ impl ICorProfilerCallback11 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -917,9 +917,9 @@ impl ICorProfilerCallback11 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.base__.base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -929,21 +929,21 @@ impl ICorProfilerCallback11 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() @@ -959,25 +959,25 @@ impl ICorProfilerCallback11 { } pub unsafe fn GetAssemblyReferences(&self, wszassemblypath: P0, pasmrefprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.into_param().abi(), pasmrefprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.param().abi(), pasmrefprovider.param().abi()).ok() } pub unsafe fn ModuleInMemorySymbolsUpdated(&self, moduleid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.ModuleInMemorySymbolsUpdated)(windows_core::Interface::as_raw(self), moduleid).ok() } pub unsafe fn DynamicMethodJITCompilationStarted(&self, functionid: usize, fissafetoblock: P0, pilheader: *const u8, cbilheader: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi(), pilheader, cbilheader).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi(), pilheader, cbilheader).ok() } pub unsafe fn DynamicMethodJITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn DynamicMethodUnloaded(&self, functionid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.DynamicMethodUnloaded)(windows_core::Interface::as_raw(self), functionid).ok() @@ -1002,9 +1002,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback2, windows_core::IUn impl ICorProfilerCallback2 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -1065,15 +1065,15 @@ impl ICorProfilerCallback2 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1103,24 +1103,24 @@ impl ICorProfilerCallback2 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -1130,9 +1130,9 @@ impl ICorProfilerCallback2 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -1272,9 +1272,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback3, windows_core::IUn impl ICorProfilerCallback3 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -1335,15 +1335,15 @@ impl ICorProfilerCallback3 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1373,24 +1373,24 @@ impl ICorProfilerCallback3 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -1400,9 +1400,9 @@ impl ICorProfilerCallback3 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -1526,9 +1526,9 @@ impl ICorProfilerCallback3 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, 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() @@ -1549,9 +1549,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback4, windows_core::IUn impl ICorProfilerCallback4 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -1612,15 +1612,15 @@ impl ICorProfilerCallback4 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1650,24 +1650,24 @@ impl ICorProfilerCallback4 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -1677,9 +1677,9 @@ impl ICorProfilerCallback4 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -1803,9 +1803,9 @@ impl ICorProfilerCallback4 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.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).base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -1815,21 +1815,21 @@ impl ICorProfilerCallback4 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).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), moduleid, methodid, functionid, hrstatus).ok() @@ -1856,9 +1856,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback5, windows_core::IUn impl ICorProfilerCallback5 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -1919,15 +1919,15 @@ impl ICorProfilerCallback5 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1957,24 +1957,24 @@ impl ICorProfilerCallback5 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -1984,9 +1984,9 @@ impl ICorProfilerCallback5 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -2110,9 +2110,9 @@ impl ICorProfilerCallback5 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -2122,21 +2122,21 @@ impl ICorProfilerCallback5 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() @@ -2161,9 +2161,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback6, windows_core::IUn impl ICorProfilerCallback6 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -2224,15 +2224,15 @@ impl ICorProfilerCallback6 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2262,24 +2262,24 @@ impl ICorProfilerCallback6 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -2289,9 +2289,9 @@ impl ICorProfilerCallback6 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -2415,9 +2415,9 @@ impl ICorProfilerCallback6 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -2427,21 +2427,21 @@ impl ICorProfilerCallback6 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() @@ -2457,10 +2457,10 @@ impl ICorProfilerCallback6 { } pub unsafe fn GetAssemblyReferences(&self, wszassemblypath: P0, pasmrefprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.into_param().abi(), pasmrefprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.param().abi(), pasmrefprovider.param().abi()).ok() } } #[repr(C)] @@ -2473,9 +2473,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback7, windows_core::IUn impl ICorProfilerCallback7 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -2536,15 +2536,15 @@ impl ICorProfilerCallback7 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2574,24 +2574,24 @@ impl ICorProfilerCallback7 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -2601,9 +2601,9 @@ impl ICorProfilerCallback7 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -2727,9 +2727,9 @@ impl ICorProfilerCallback7 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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).base__.base__.base__.base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -2739,21 +2739,21 @@ impl ICorProfilerCallback7 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() @@ -2769,10 +2769,10 @@ impl ICorProfilerCallback7 { } pub unsafe fn GetAssemblyReferences(&self, wszassemblypath: P0, pasmrefprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.into_param().abi(), pasmrefprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.param().abi(), pasmrefprovider.param().abi()).ok() } pub unsafe fn ModuleInMemorySymbolsUpdated(&self, moduleid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ModuleInMemorySymbolsUpdated)(windows_core::Interface::as_raw(self), moduleid).ok() @@ -2788,9 +2788,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback8, windows_core::IUn impl ICorProfilerCallback8 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -2851,15 +2851,15 @@ impl ICorProfilerCallback8 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2889,24 +2889,24 @@ impl ICorProfilerCallback8 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -2916,9 +2916,9 @@ impl ICorProfilerCallback8 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -3042,9 +3042,9 @@ impl ICorProfilerCallback8 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -3054,21 +3054,21 @@ impl ICorProfilerCallback8 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() @@ -3084,25 +3084,25 @@ impl ICorProfilerCallback8 { } pub unsafe fn GetAssemblyReferences(&self, wszassemblypath: P0, pasmrefprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.into_param().abi(), pasmrefprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.param().abi(), pasmrefprovider.param().abi()).ok() } pub unsafe fn ModuleInMemorySymbolsUpdated(&self, moduleid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ModuleInMemorySymbolsUpdated)(windows_core::Interface::as_raw(self), moduleid).ok() } pub unsafe fn DynamicMethodJITCompilationStarted(&self, functionid: usize, fissafetoblock: P0, pilheader: *const u8, cbilheader: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi(), pilheader, cbilheader).ok() + (windows_core::Interface::vtable(self).DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi(), pilheader, cbilheader).ok() } pub unsafe fn DynamicMethodJITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } } #[repr(C)] @@ -3116,9 +3116,9 @@ windows_core::imp::interface_hierarchy!(ICorProfilerCallback9, windows_core::IUn impl ICorProfilerCallback9 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.Initialize)(windows_core::Interface::as_raw(self), picorprofilerinfounk.param().abi()).ok() } pub unsafe fn Shutdown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.Shutdown)(windows_core::Interface::as_raw(self)).ok() @@ -3179,15 +3179,15 @@ impl ICorProfilerCallback9 { } pub unsafe fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3217,24 +3217,24 @@ impl ICorProfilerCallback9 { } pub unsafe fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientSendingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientReceivingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingClientInvocationFinished)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerReceivingMessage)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerInvocationStarted)(windows_core::Interface::as_raw(self)).ok() @@ -3244,9 +3244,9 @@ impl ICorProfilerCallback9 { } pub unsafe fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.RemotingServerSendingReply)(windows_core::Interface::as_raw(self), pcookie, fisasync.param().abi()).ok() } pub unsafe fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.UnmanagedToManagedTransition)(windows_core::Interface::as_raw(self), functionid, reason).ok() @@ -3370,9 +3370,9 @@ impl ICorProfilerCallback9 { } pub unsafe fn InitializeForAttach(&self, pcorprofilerinfounk: P0, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.InitializeForAttach)(windows_core::Interface::as_raw(self), pcorprofilerinfounk.into_param().abi(), pvclientdata, cbclientdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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).base__.base__.base__.base__.base__.base__.ProfilerAttachComplete)(windows_core::Interface::as_raw(self)).ok() @@ -3382,21 +3382,21 @@ impl ICorProfilerCallback9 { } pub unsafe fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ReJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, rejitid, fissafetoblock.param().abi()).ok() } pub unsafe fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetReJITParameters)(windows_core::Interface::as_raw(self), moduleid, methodid, pfunctioncontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ReJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, rejitid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ReJITError)(windows_core::Interface::as_raw(self), moduleid, methodid, functionid, hrstatus).ok() @@ -3412,25 +3412,25 @@ impl ICorProfilerCallback9 { } pub unsafe fn GetAssemblyReferences(&self, wszassemblypath: P0, pasmrefprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.into_param().abi(), pasmrefprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetAssemblyReferences)(windows_core::Interface::as_raw(self), wszassemblypath.param().abi(), pasmrefprovider.param().abi()).ok() } pub unsafe fn ModuleInMemorySymbolsUpdated(&self, moduleid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ModuleInMemorySymbolsUpdated)(windows_core::Interface::as_raw(self), moduleid).ok() } pub unsafe fn DynamicMethodJITCompilationStarted(&self, functionid: usize, fissafetoblock: P0, pilheader: *const u8, cbilheader: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.into_param().abi(), pilheader, cbilheader).ok() + (windows_core::Interface::vtable(self).base__.DynamicMethodJITCompilationStarted)(windows_core::Interface::as_raw(self), functionid, fissafetoblock.param().abi(), pilheader, cbilheader).ok() } pub unsafe fn DynamicMethodJITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DynamicMethodJITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.param().abi()).ok() } pub unsafe fn DynamicMethodUnloaded(&self, functionid: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DynamicMethodUnloaded)(windows_core::Interface::as_raw(self), functionid).ok() @@ -3586,9 +3586,9 @@ impl ICorProfilerInfo { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), 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.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3604,10 +3604,10 @@ impl ICorProfilerInfo { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &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), dwprofilercontext).ok() @@ -3751,9 +3751,9 @@ impl ICorProfilerInfo10 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3769,10 +3769,10 @@ impl ICorProfilerInfo10 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -4092,9 +4092,9 @@ impl ICorProfilerInfo11 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4110,10 +4110,10 @@ impl ICorProfilerInfo11 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -4329,16 +4329,16 @@ impl ICorProfilerInfo11 { } pub unsafe fn GetEnvironmentVariableA(&self, szname: P0, pcchvalue: *mut u32, szvalue: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() + (windows_core::Interface::vtable(self).GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() } pub unsafe fn SetEnvironmentVariable(&self, szname: P0, szvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.param().abi()).ok() } } #[repr(C)] @@ -4442,9 +4442,9 @@ impl ICorProfilerInfo12 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4460,10 +4460,10 @@ impl ICorProfilerInfo12 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -4679,23 +4679,23 @@ impl ICorProfilerInfo12 { } pub unsafe fn GetEnvironmentVariableA(&self, szname: P0, pcchvalue: *mut u32, szvalue: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() } pub unsafe fn SetEnvironmentVariable(&self, szname: P0, szvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.param().abi()).ok() } pub unsafe fn EventPipeStartSession(&self, pproviderconfigs: &[COR_PRF_EVENTPIPE_PROVIDER_CONFIG], requestrundown: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (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_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).EventPipeStartSession)(windows_core::Interface::as_raw(self), pproviderconfigs.len().try_into().unwrap(), core::mem::transmute(pproviderconfigs.as_ptr()), requestrundown.param().abi(), &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), session, core::mem::transmute(providerconfig)).ok() @@ -4705,21 +4705,21 @@ impl ICorProfilerInfo12 { } pub unsafe fn EventPipeCreateProvider(&self, providername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EventPipeCreateProvider)(windows_core::Interface::as_raw(self), providername.into_param().abi(), &mut result__).map(|| result__) + (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), provider, providername.len().try_into().unwrap(), pcchname, core::mem::transmute(providername.as_ptr())).ok() } pub unsafe fn EventPipeDefineEvent(&self, provider: usize, eventname: P0, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: P1, pparamdescs: &[COR_PRF_EVENTPIPE_PARAM_DESC]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EventPipeDefineEvent)(windows_core::Interface::as_raw(self), provider, eventname.into_param().abi(), eventid, keywords, eventversion, level, opcode, needstack.into_param().abi(), 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.param().abi(), 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), event, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), pactivityid, prelatedactivityid).ok() @@ -4831,9 +4831,9 @@ impl ICorProfilerInfo13 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4849,10 +4849,10 @@ impl ICorProfilerInfo13 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -5068,23 +5068,23 @@ impl ICorProfilerInfo13 { } pub unsafe fn GetEnvironmentVariableA(&self, szname: P0, pcchvalue: *mut u32, szvalue: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() } pub unsafe fn SetEnvironmentVariable(&self, szname: P0, szvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.param().abi()).ok() } pub unsafe fn EventPipeStartSession(&self, pproviderconfigs: &[COR_PRF_EVENTPIPE_PROVIDER_CONFIG], requestrundown: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EventPipeStartSession)(windows_core::Interface::as_raw(self), pproviderconfigs.len().try_into().unwrap(), core::mem::transmute(pproviderconfigs.as_ptr()), requestrundown.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.EventPipeStartSession)(windows_core::Interface::as_raw(self), pproviderconfigs.len().try_into().unwrap(), core::mem::transmute(pproviderconfigs.as_ptr()), requestrundown.param().abi(), &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).base__.EventPipeAddProviderToSession)(windows_core::Interface::as_raw(self), session, core::mem::transmute(providerconfig)).ok() @@ -5094,21 +5094,21 @@ impl ICorProfilerInfo13 { } pub unsafe fn EventPipeCreateProvider(&self, providername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EventPipeCreateProvider)(windows_core::Interface::as_raw(self), providername.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.EventPipeGetProviderInfo)(windows_core::Interface::as_raw(self), provider, providername.len().try_into().unwrap(), pcchname, core::mem::transmute(providername.as_ptr())).ok() } pub unsafe fn EventPipeDefineEvent(&self, provider: usize, eventname: P0, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: P1, pparamdescs: &[COR_PRF_EVENTPIPE_PARAM_DESC]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EventPipeDefineEvent)(windows_core::Interface::as_raw(self), provider, eventname.into_param().abi(), eventid, keywords, eventversion, level, opcode, needstack.into_param().abi(), pparamdescs.len().try_into().unwrap(), core::mem::transmute(pparamdescs.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.EventPipeDefineEvent)(windows_core::Interface::as_raw(self), provider, eventname.param().abi(), eventid, keywords, eventversion, level, opcode, needstack.param().abi(), 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).base__.EventPipeWriteEvent)(windows_core::Interface::as_raw(self), event, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), pactivityid, prelatedactivityid).ok() @@ -5226,9 +5226,9 @@ impl ICorProfilerInfo14 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5244,10 +5244,10 @@ impl ICorProfilerInfo14 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -5463,23 +5463,23 @@ impl ICorProfilerInfo14 { } pub unsafe fn GetEnvironmentVariableA(&self, szname: P0, pcchvalue: *mut u32, szvalue: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetEnvironmentVariableA)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.len().try_into().unwrap(), pcchvalue, core::mem::transmute(szvalue.as_ptr())).ok() } pub unsafe fn SetEnvironmentVariable(&self, szname: P0, szvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetEnvironmentVariable)(windows_core::Interface::as_raw(self), szname.param().abi(), szvalue.param().abi()).ok() } pub unsafe fn EventPipeStartSession(&self, pproviderconfigs: &[COR_PRF_EVENTPIPE_PROVIDER_CONFIG], requestrundown: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EventPipeStartSession)(windows_core::Interface::as_raw(self), pproviderconfigs.len().try_into().unwrap(), core::mem::transmute(pproviderconfigs.as_ptr()), requestrundown.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.EventPipeStartSession)(windows_core::Interface::as_raw(self), pproviderconfigs.len().try_into().unwrap(), core::mem::transmute(pproviderconfigs.as_ptr()), requestrundown.param().abi(), &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).base__.base__.EventPipeAddProviderToSession)(windows_core::Interface::as_raw(self), session, core::mem::transmute(providerconfig)).ok() @@ -5489,21 +5489,21 @@ impl ICorProfilerInfo14 { } pub unsafe fn EventPipeCreateProvider(&self, providername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EventPipeCreateProvider)(windows_core::Interface::as_raw(self), providername.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.EventPipeGetProviderInfo)(windows_core::Interface::as_raw(self), provider, providername.len().try_into().unwrap(), pcchname, core::mem::transmute(providername.as_ptr())).ok() } pub unsafe fn EventPipeDefineEvent(&self, provider: usize, eventname: P0, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: P1, pparamdescs: &[COR_PRF_EVENTPIPE_PARAM_DESC]) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EventPipeDefineEvent)(windows_core::Interface::as_raw(self), provider, eventname.into_param().abi(), eventid, keywords, eventversion, level, opcode, needstack.into_param().abi(), pparamdescs.len().try_into().unwrap(), core::mem::transmute(pparamdescs.as_ptr()), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.EventPipeDefineEvent)(windows_core::Interface::as_raw(self), provider, eventname.param().abi(), eventid, keywords, eventversion, level, opcode, needstack.param().abi(), 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).base__.base__.EventPipeWriteEvent)(windows_core::Interface::as_raw(self), event, data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), pactivityid, prelatedactivityid).ok() @@ -5527,10 +5527,10 @@ impl ICorProfilerInfo14 { } pub unsafe fn EventPipeCreateProvider2(&self, providername: P0, pcallback: *const EventPipeProviderCallback) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EventPipeCreateProvider2)(windows_core::Interface::as_raw(self), providername.into_param().abi(), 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)] @@ -5635,9 +5635,9 @@ impl ICorProfilerInfo2 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5653,10 +5653,10 @@ impl ICorProfilerInfo2 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -5860,9 +5860,9 @@ impl ICorProfilerInfo3 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5878,10 +5878,10 @@ impl ICorProfilerInfo3 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -6120,9 +6120,9 @@ impl ICorProfilerInfo4 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6138,10 +6138,10 @@ impl ICorProfilerInfo4 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -6409,9 +6409,9 @@ impl ICorProfilerInfo5 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6427,10 +6427,10 @@ impl ICorProfilerInfo5 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -6696,9 +6696,9 @@ impl ICorProfilerInfo6 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6714,10 +6714,10 @@ impl ICorProfilerInfo6 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -6985,9 +6985,9 @@ impl ICorProfilerInfo7 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7003,10 +7003,10 @@ impl ICorProfilerInfo7 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -7286,9 +7286,9 @@ impl ICorProfilerInfo8 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7304,10 +7304,10 @@ impl ICorProfilerInfo8 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() @@ -7597,9 +7597,9 @@ impl ICorProfilerInfo9 { } pub unsafe fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: P0, rgilmapentries: &[COR_IL_MAP]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.into_param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetILInstrumentedCodeMap)(windows_core::Interface::as_raw(self), functionid, fstartjit.param().abi(), rgilmapentries.len().try_into().unwrap(), core::mem::transmute(rgilmapentries.as_ptr())).ok() } pub unsafe fn GetInprocInspectionInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7615,10 +7615,10 @@ impl ICorProfilerInfo9 { } pub unsafe fn BeginInprocDebugging(&self, fthisthreadonly: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.BeginInprocDebugging)(windows_core::Interface::as_raw(self), fthisthreadonly.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.EndInprocDebugging)(windows_core::Interface::as_raw(self), dwprofilercontext).ok() 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 a2fc98775f..bca1b64c0d 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 @@ -3,18 +3,18 @@ windows_core::imp::interface_hierarchy!(AsyncIDebugApplicationNodeEvents, window impl AsyncIDebugApplicationNodeEvents { pub unsafe fn Begin_onAddChild(&self, prddpchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_onAddChild)(windows_core::Interface::as_raw(self), prddpchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_onAddChild)(windows_core::Interface::as_raw(self), prddpchild.param().abi()).ok() } pub unsafe fn Finish_onAddChild(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_onAddChild)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Begin_onRemoveChild(&self, prddpchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_onRemoveChild)(windows_core::Interface::as_raw(self), prddpchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_onRemoveChild)(windows_core::Interface::as_raw(self), prddpchild.param().abi()).ok() } pub unsafe fn Finish_onRemoveChild(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_onRemoveChild)(windows_core::Interface::as_raw(self)).ok() @@ -27,9 +27,9 @@ impl AsyncIDebugApplicationNodeEvents { } pub unsafe fn Begin_onAttach(&self, prddpparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_onAttach)(windows_core::Interface::as_raw(self), prddpparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_onAttach)(windows_core::Interface::as_raw(self), prddpparent.param().abi()).ok() } pub unsafe fn Finish_onAttach(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_onAttach)(windows_core::Interface::as_raw(self)).ok() @@ -52,9 +52,9 @@ windows_core::imp::interface_hierarchy!(IActiveScript, windows_core::IUnknown); impl IActiveScript { pub unsafe fn SetScriptSite(&self, pass: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScriptSite)(windows_core::Interface::as_raw(self), pass.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetScriptSite)(windows_core::Interface::as_raw(self), pass.param().abi()).ok() } pub unsafe fn GetScriptSite(&self) -> windows_core::Result where @@ -75,9 +75,9 @@ impl IActiveScript { } pub unsafe fn AddNamedItem(&self, pstrname: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNamedItem)(windows_core::Interface::as_raw(self), pstrname.into_param().abi(), 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), rguidtypelib, dwmajor, dwminor, dwflags).ok() @@ -85,10 +85,10 @@ impl IActiveScript { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetScriptDispatch(&self, pstritemname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScriptDispatch)(windows_core::Interface::as_raw(self), pstritemname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetScriptDispatch)(windows_core::Interface::as_raw(self), pstritemname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentScriptThreadID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -140,43 +140,43 @@ impl IActiveScriptAuthor { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddNamedItem(&self, pszname: P0, dwflags: u32, pdisp: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNamedItem)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), dwflags, pdisp.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pszdefaultname.into_param().abi(), pszcode.into_param().abi(), pszitemname.into_param().abi(), pszsubitemname.into_param().abi(), pszeventname.into_param().abi(), pszdelimiter.into_param().abi(), dwcookie, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pszcode.into_param().abi(), pszitemname.into_param().abi(), pszdelimiter.into_param().abi(), dwcookie, 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: P1, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pszcode.into_param().abi(), cch, pszdelimiter.into_param().abi(), dwflags, pattr).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pszcode.param().abi(), cch, pszdelimiter.param().abi(), dwflags, pattr).ok() } pub unsafe fn GetScriptletTextAttributes(&self, pszcode: P0, cch: u32, pszdelimiter: P1, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pszcode.into_param().abi(), cch, pszdelimiter.into_param().abi(), dwflags, pattr).ok() + (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pszcode.param().abi(), cch, pszdelimiter.param().abi(), dwflags, pattr).ok() } pub unsafe fn GetRoot(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -189,19 +189,19 @@ impl IActiveScriptAuthor { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEventHandler(&self, pdisp: P0, pszitem: P1, pszsubitem: P2, pszevent: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventHandler)(windows_core::Interface::as_raw(self), pdisp.into_param().abi(), pszitem.into_param().abi(), pszsubitem.into_param().abi(), pszevent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEventHandler)(windows_core::Interface::as_raw(self), pdisp.param().abi(), pszitem.param().abi(), pszsubitem.param().abi(), pszevent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveNamedItem(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveNamedItem)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (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), rguidtypelib, dwmajor, dwminor, dwflags).ok() @@ -215,9 +215,9 @@ impl IActiveScriptAuthor { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetInfoFromContext)(windows_core::Interface::as_raw(self), pszcode.into_param().abi(), cchcode, ichcurrentposition, dwlisttypesrequested, pdwlisttypesprovided, pichlistanchorposition, pichfuncanchorposition, pmemid, picurrentparameter, core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).GetInfoFromContext)(windows_core::Interface::as_raw(self), pszcode.param().abi(), cchcode, ichcurrentposition, dwlisttypesrequested, pdwlisttypesprovided, pichlistanchorposition, pichfuncanchorposition, pmemid, picurrentparameter, core::mem::transmute(ppunk)).ok() } pub unsafe fn IsCommitChar(&self, ch: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -254,14 +254,14 @@ impl IActiveScriptAuthorProcedure { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseProcedureText(&self, pszcode: P0, pszformalparams: P1, pszprocedurename: P2, pszitemname: P3, pszdelimiter: P4, dwcookie: u32, dwflags: u32, pdispfor: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pszcode.into_param().abi(), pszformalparams.into_param().abi(), pszprocedurename.into_param().abi(), pszitemname.into_param().abi(), pszdelimiter.into_param().abi(), dwcookie, dwflags, pdispfor.into_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)] @@ -277,17 +277,17 @@ windows_core::imp::interface_hierarchy!(IActiveScriptDebug32, windows_core::IUnk impl IActiveScriptDebug32 { pub unsafe fn GetScriptTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P1, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), unumcodechars, pstrdelimiter.into_param().abi(), dwflags, pattr).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, pattr).ok() } pub unsafe fn GetScriptletTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P1, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), unumcodechars, pstrdelimiter.into_param().abi(), dwflags, pattr).ok() + (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, pattr).ok() } pub unsafe fn EnumCodeContextsOfPosition(&self, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -306,17 +306,17 @@ windows_core::imp::interface_hierarchy!(IActiveScriptDebug64, windows_core::IUnk impl IActiveScriptDebug64 { pub unsafe fn GetScriptTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P1, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), unumcodechars, pstrdelimiter.into_param().abi(), dwflags, pattr).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, pattr).ok() } pub unsafe fn GetScriptletTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P1, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), unumcodechars, pstrdelimiter.into_param().abi(), dwflags, pattr).ok() + (windows_core::Interface::vtable(self).GetScriptletTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, pattr).ok() } pub unsafe fn EnumCodeContextsOfPosition(&self, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -335,15 +335,15 @@ windows_core::imp::interface_hierarchy!(IActiveScriptEncode, windows_core::IUnkn impl IActiveScriptEncode { pub unsafe fn EncodeSection(&self, pchin: P0, cchin: u32, pchout: windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeSection)(windows_core::Interface::as_raw(self), pchin.into_param().abi(), cchin, core::mem::transmute(pchout), cchout, pcchret).ok() + (windows_core::Interface::vtable(self).EncodeSection)(windows_core::Interface::as_raw(self), pchin.param().abi(), cchin, core::mem::transmute(pchout), cchout, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DecodeScript)(windows_core::Interface::as_raw(self), pchin.into_param().abi(), cchin, core::mem::transmute(pchout), cchout, pcchret).ok() + (windows_core::Interface::vtable(self).DecodeScript)(windows_core::Interface::as_raw(self), pchin.param().abi(), cchin, core::mem::transmute(pchout), cchout, 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() @@ -463,10 +463,10 @@ windows_core::imp::interface_hierarchy!(IActiveScriptHostEncode, windows_core::I impl IActiveScriptHostEncode { pub unsafe fn EncodeScriptHostFile(&self, bstrinfile: P0, pbstroutfile: *mut windows_core::BSTR, cflags: u32, bstrdefaultlang: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeScriptHostFile)(windows_core::Interface::as_raw(self), bstrinfile.into_param().abi(), core::mem::transmute(pbstroutfile), cflags, bstrdefaultlang.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EncodeScriptHostFile)(windows_core::Interface::as_raw(self), bstrinfile.param().abi(), core::mem::transmute(pbstroutfile), cflags, bstrdefaultlang.param().abi()).ok() } } #[repr(C)] @@ -483,24 +483,24 @@ impl IActiveScriptParse32 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddScriptlet(&self, pstrdefaultname: P0, pstrcode: P1, pstritemname: P2, pstrsubitemname: P3, pstreventname: P4, pstrdelimiter: P5, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut windows_core::BSTR, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pstrdefaultname.into_param().abi(), pstrcode.into_param().abi(), pstritemname.into_param().abi(), pstrsubitemname.into_param().abi(), pstreventname.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pbstrname), 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), pexcepinfo).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseScriptText(&self, pstrcode: P0, pstritemname: P1, punkcontext: P2, pstrdelimiter: P3, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pvarresult), 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), pexcepinfo).ok() } } #[repr(C)] @@ -525,24 +525,24 @@ impl IActiveScriptParse64 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddScriptlet(&self, pstrdefaultname: P0, pstrcode: P1, pstritemname: P2, pstrsubitemname: P3, pstreventname: P4, pstrdelimiter: P5, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut windows_core::BSTR, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).AddScriptlet)(windows_core::Interface::as_raw(self), pstrdefaultname.into_param().abi(), pstrcode.into_param().abi(), pstritemname.into_param().abi(), pstrsubitemname.into_param().abi(), pstreventname.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pbstrname), 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), pexcepinfo).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseScriptText(&self, pstrcode: P0, pstritemname: P1, punkcontext: P2, pstrdelimiter: P3, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseScriptText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, core::mem::transmute(pvarresult), 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), pexcepinfo).ok() } } #[repr(C)] @@ -564,15 +564,15 @@ impl IActiveScriptParseProcedure2_32 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseProcedureText(&self, pstrcode: P0, pstrformalparams: P1, pstrprocedurename: P2, pstritemname: P3, punkcontext: P4, pstrdelimiter: P5, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstrformalparams.into_param().abi(), pstrprocedurename.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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)] @@ -585,15 +585,15 @@ impl IActiveScriptParseProcedure2_64 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseProcedureText(&self, pstrcode: P0, pstrformalparams: P1, pstrprocedurename: P2, pstritemname: P3, punkcontext: P4, pstrdelimiter: P5, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstrformalparams.into_param().abi(), pstrprocedurename.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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)] @@ -606,15 +606,15 @@ impl IActiveScriptParseProcedure32 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseProcedureText(&self, pstrcode: P0, pstrformalparams: P1, pstrprocedurename: P2, pstritemname: P3, punkcontext: P4, pstrdelimiter: P5, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstrformalparams.into_param().abi(), pstrprocedurename.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, 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)] @@ -631,15 +631,15 @@ impl IActiveScriptParseProcedure64 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseProcedureText(&self, pstrcode: P0, pstrformalparams: P1, pstrprocedurename: P2, pstritemname: P3, punkcontext: P4, pstrdelimiter: P5, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstrformalparams.into_param().abi(), pstrprocedurename.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, 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)] @@ -656,14 +656,14 @@ impl IActiveScriptParseProcedureOld32 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseProcedureText(&self, pstrcode: P0, pstrformalparams: P1, pstritemname: P2, punkcontext: P3, pstrdelimiter: P4, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstrformalparams.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, 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)] @@ -680,14 +680,14 @@ impl IActiveScriptParseProcedureOld64 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseProcedureText(&self, pstrcode: P0, pstrformalparams: P1, pstritemname: P2, punkcontext: P3, pstrdelimiter: P4, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseProcedureText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), pstrformalparams.into_param().abi(), pstritemname.into_param().abi(), punkcontext.into_param().abi(), pstrdelimiter.into_param().abi(), dwsourcecontextcookie, ulstartinglinenumber, 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)] @@ -709,17 +709,17 @@ impl IActiveScriptProfilerCallback { } pub unsafe fn ScriptCompiled(&self, scriptid: i32, r#type: PROFILER_SCRIPT_TYPE, pidebugdocumentcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScriptCompiled)(windows_core::Interface::as_raw(self), scriptid, r#type, pidebugdocumentcontext.into_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: P0, pwszfunctionnamehint: P1, pidebugdocumentcontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FunctionCompiled)(windows_core::Interface::as_raw(self), functionid, scriptid, pwszfunctionname.into_param().abi(), pwszfunctionnamehint.into_param().abi(), pidebugdocumentcontext.into_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), scriptid, functionid).ok() @@ -749,17 +749,17 @@ impl IActiveScriptProfilerCallback2 { } pub unsafe fn ScriptCompiled(&self, scriptid: i32, r#type: PROFILER_SCRIPT_TYPE, pidebugdocumentcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ScriptCompiled)(windows_core::Interface::as_raw(self), scriptid, r#type, pidebugdocumentcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ScriptCompiled)(windows_core::Interface::as_raw(self), scriptid, r#type, pidebugdocumentcontext.param().abi()).ok() } pub unsafe fn FunctionCompiled(&self, functionid: i32, scriptid: i32, pwszfunctionname: P0, pwszfunctionnamehint: P1, pidebugdocumentcontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FunctionCompiled)(windows_core::Interface::as_raw(self), functionid, scriptid, pwszfunctionname.into_param().abi(), pwszfunctionnamehint.into_param().abi(), pidebugdocumentcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.OnFunctionEnter)(windows_core::Interface::as_raw(self), scriptid, functionid).ok() @@ -769,15 +769,15 @@ impl IActiveScriptProfilerCallback2 { } pub unsafe fn OnFunctionEnterByName(&self, pwszfunctionname: P0, r#type: PROFILER_SCRIPT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFunctionEnterByName)(windows_core::Interface::as_raw(self), pwszfunctionname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFunctionExitByName)(windows_core::Interface::as_raw(self), pwszfunctionname.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).OnFunctionExitByName)(windows_core::Interface::as_raw(self), pwszfunctionname.param().abi(), r#type).ok() } } #[repr(C)] @@ -797,17 +797,17 @@ impl IActiveScriptProfilerCallback3 { } pub unsafe fn ScriptCompiled(&self, scriptid: i32, r#type: PROFILER_SCRIPT_TYPE, pidebugdocumentcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ScriptCompiled)(windows_core::Interface::as_raw(self), scriptid, r#type, pidebugdocumentcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ScriptCompiled)(windows_core::Interface::as_raw(self), scriptid, r#type, pidebugdocumentcontext.param().abi()).ok() } pub unsafe fn FunctionCompiled(&self, functionid: i32, scriptid: i32, pwszfunctionname: P0, pwszfunctionnamehint: P1, pidebugdocumentcontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FunctionCompiled)(windows_core::Interface::as_raw(self), functionid, scriptid, pwszfunctionname.into_param().abi(), pwszfunctionnamehint.into_param().abi(), pidebugdocumentcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.OnFunctionEnter)(windows_core::Interface::as_raw(self), scriptid, functionid).ok() @@ -817,15 +817,15 @@ impl IActiveScriptProfilerCallback3 { } pub unsafe fn OnFunctionEnterByName(&self, pwszfunctionname: P0, r#type: PROFILER_SCRIPT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnFunctionEnterByName)(windows_core::Interface::as_raw(self), pwszfunctionname.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnFunctionExitByName)(windows_core::Interface::as_raw(self), pwszfunctionname.into_param().abi(), r#type).ok() + (windows_core::Interface::vtable(self).base__.OnFunctionExitByName)(windows_core::Interface::as_raw(self), pwszfunctionname.param().abi(), r#type).ok() } pub unsafe fn SetWebWorkerId(&self, webworkerid: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetWebWorkerId)(windows_core::Interface::as_raw(self), webworkerid).ok() @@ -1039,9 +1039,9 @@ impl IActiveScriptSite { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetItemInfo(&self, pstrname: P0, dwreturnmask: u32, ppiunkitem: *mut Option, ppti: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetItemInfo)(windows_core::Interface::as_raw(self), pstrname.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1056,9 +1056,9 @@ impl IActiveScriptSite { } pub unsafe fn OnScriptError(&self, pscripterror: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnScriptError)(windows_core::Interface::as_raw(self), pscripterror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnScriptError)(windows_core::Interface::as_raw(self), pscripterror.param().abi()).ok() } pub unsafe fn OnEnterScript(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnEnterScript)(windows_core::Interface::as_raw(self)).ok() @@ -1102,9 +1102,9 @@ impl IActiveScriptSiteDebug32 { } pub unsafe fn OnScriptErrorDebug(&self, perrordebug: P0, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnScriptErrorDebug)(windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), pfenterdebugger, pfcallonscripterrorwhencontinuing).ok() + (windows_core::Interface::vtable(self).OnScriptErrorDebug)(windows_core::Interface::as_raw(self), perrordebug.param().abi(), pfenterdebugger, pfcallonscripterrorwhencontinuing).ok() } } #[repr(C)] @@ -1132,9 +1132,9 @@ impl IActiveScriptSiteDebug64 { } pub unsafe fn OnScriptErrorDebug(&self, perrordebug: P0, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnScriptErrorDebug)(windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), pfenterdebugger, pfcallonscripterrorwhencontinuing).ok() + (windows_core::Interface::vtable(self).OnScriptErrorDebug)(windows_core::Interface::as_raw(self), perrordebug.param().abi(), pfenterdebugger, pfcallonscripterrorwhencontinuing).ok() } } #[repr(C)] @@ -1150,10 +1150,10 @@ windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebugEx, windows_core:: impl IActiveScriptSiteDebugEx { pub unsafe fn OnCanNotJITScriptErrorDebug(&self, perrordebug: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnCanNotJITScriptErrorDebug)(windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnCanNotJITScriptErrorDebug)(windows_core::Interface::as_raw(self), perrordebug.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1207,9 +1207,9 @@ impl IActiveScriptSiteWindow { } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -1243,11 +1243,11 @@ windows_core::imp::interface_hierarchy!(IActiveScriptStringCompare, windows_core impl IActiveScriptStringCompare { pub unsafe fn StrComp(&self, bszstr1: P0, bszstr2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StrComp)(windows_core::Interface::as_raw(self), bszstr1.into_param().abi(), bszstr2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrComp)(windows_core::Interface::as_raw(self), bszstr1.param().abi(), bszstr2.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1260,9 +1260,9 @@ windows_core::imp::interface_hierarchy!(IActiveScriptTraceInfo, windows_core::IU impl IActiveScriptTraceInfo { pub unsafe fn StartScriptTracing(&self, psitetraceinfo: P0, guidcontextid: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartScriptTracing)(windows_core::Interface::as_raw(self), psitetraceinfo.into_param().abi(), core::mem::transmute(guidcontextid)).ok() + (windows_core::Interface::vtable(self).StartScriptTracing)(windows_core::Interface::as_raw(self), psitetraceinfo.param().abi(), core::mem::transmute(guidcontextid)).ok() } pub unsafe fn StopScriptTracing(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopScriptTracing)(windows_core::Interface::as_raw(self)).ok() @@ -1316,32 +1316,32 @@ impl IApplicationDebugger { } pub unsafe fn CreateInstanceAtDebugger(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceAtDebugger)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onDebugOutput)(windows_core::Interface::as_raw(self), pstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).onDebugOutput)(windows_core::Interface::as_raw(self), pstr.param().abi()).ok() } pub unsafe fn onHandleBreakPoint(&self, prpt: P0, br: BREAKREASON, perror: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).onHandleBreakPoint)(windows_core::Interface::as_raw(self), prpt.into_param().abi(), br, perror.into_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() } pub unsafe fn onDebuggerEvent(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).onDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } } #[repr(C)] @@ -1359,15 +1359,15 @@ windows_core::imp::interface_hierarchy!(IApplicationDebuggerUI, windows_core::IU impl IApplicationDebuggerUI { pub unsafe fn BringDocumentToTop(&self, pddt: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BringDocumentToTop)(windows_core::Interface::as_raw(self), pddt.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BringDocumentToTop)(windows_core::Interface::as_raw(self), pddt.param().abi()).ok() } pub unsafe fn BringDocumentContextToTop(&self, pddc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BringDocumentContextToTop)(windows_core::Interface::as_raw(self), pddc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BringDocumentContextToTop)(windows_core::Interface::as_raw(self), pddc.param().abi()).ok() } } #[repr(C)] @@ -1382,10 +1382,10 @@ impl IBindEventHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindHandler(&self, pstrevent: P0, pdisp: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BindHandler)(windows_core::Interface::as_raw(self), pstrevent.into_param().abi(), pdisp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BindHandler)(windows_core::Interface::as_raw(self), pstrevent.param().abi(), pdisp.param().abi()).ok() } } #[repr(C)] @@ -1412,15 +1412,15 @@ impl IDebugApplication11032 { } pub unsafe fn SynchronousCallInMainThread(&self, pptc: P0, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, 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__ = std::mem::zeroed(); @@ -1450,15 +1450,15 @@ impl IDebugApplication11064 { } pub unsafe fn SynchronousCallInMainThread(&self, pptc: P0, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallInMainThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, 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__ = std::mem::zeroed(); @@ -1477,18 +1477,18 @@ windows_core::imp::interface_hierarchy!(IDebugApplication32, windows_core::IUnkn impl IDebugApplication32 { pub unsafe fn ResumeFromBreakPoint(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResumeFromBreakPoint)(windows_core::Interface::as_raw(self), prptfocus.into_param().abi(), bra, era).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CauseBreak)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ConnectDebugger(&self, pad: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConnectDebugger)(windows_core::Interface::as_raw(self), pad.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConnectDebugger)(windows_core::Interface::as_raw(self), pad.param().abi()).ok() } pub unsafe fn DisconnectDebugger(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DisconnectDebugger)(windows_core::Interface::as_raw(self)).ok() @@ -1499,10 +1499,10 @@ impl IDebugApplication32 { } pub unsafe fn CreateInstanceAtApplication(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateInstanceAtApplication)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.QueryAlive)(windows_core::Interface::as_raw(self)).ok() @@ -1525,18 +1525,18 @@ impl IDebugApplication32 { } pub unsafe fn SetName(&self, pstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pstrname.param().abi()).ok() } pub unsafe fn StepOutComplete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StepOutComplete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DebugOutput(&self, pstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DebugOutput)(windows_core::Interface::as_raw(self), pstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DebugOutput)(windows_core::Interface::as_raw(self), pstr.param().abi()).ok() } pub unsafe fn StartDebugSession(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartDebugSession)(windows_core::Interface::as_raw(self)).ok() @@ -1557,17 +1557,17 @@ impl IDebugApplication32 { } pub unsafe fn CreateAsyncDebugOperation(&self, psdo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAsyncDebugOperation)(windows_core::Interface::as_raw(self), psdo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAsyncDebugOperation)(windows_core::Interface::as_raw(self), psdo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddStackFrameSniffer(&self, pdsfs: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddStackFrameSniffer)(windows_core::Interface::as_raw(self), pdsfs.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -1577,9 +1577,9 @@ impl IDebugApplication32 { } pub unsafe fn SynchronousCallInDebuggerThread(&self, pptc: P0, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInDebuggerThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, 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__ = std::mem::zeroed(); @@ -1587,16 +1587,16 @@ impl IDebugApplication32 { } pub unsafe fn FireDebuggerEvent(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleRuntimeError)(windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), pscriptsite.into_param().abi(), pbra, perra, pfcallonscripterror).ok() + (windows_core::Interface::vtable(self).HandleRuntimeError)(windows_core::Interface::as_raw(self), perrordebug.param().abi(), pscriptsite.param().abi(), pbra, perra, pfcallonscripterror).ok() } pub unsafe fn FCanJitDebug(&self) -> super::super::super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).FCanJitDebug)(windows_core::Interface::as_raw(self)) @@ -1606,10 +1606,10 @@ impl IDebugApplication32 { } pub unsafe fn AddGlobalExpressionContextProvider(&self, pdsfs: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), pdsfs.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -1644,18 +1644,18 @@ windows_core::imp::interface_hierarchy!(IDebugApplication64, windows_core::IUnkn impl IDebugApplication64 { pub unsafe fn ResumeFromBreakPoint(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResumeFromBreakPoint)(windows_core::Interface::as_raw(self), prptfocus.into_param().abi(), bra, era).ok() + (windows_core::Interface::vtable(self).base__.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).base__.CauseBreak)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ConnectDebugger(&self, pad: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConnectDebugger)(windows_core::Interface::as_raw(self), pad.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ConnectDebugger)(windows_core::Interface::as_raw(self), pad.param().abi()).ok() } pub unsafe fn DisconnectDebugger(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DisconnectDebugger)(windows_core::Interface::as_raw(self)).ok() @@ -1666,10 +1666,10 @@ impl IDebugApplication64 { } pub unsafe fn CreateInstanceAtApplication(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateInstanceAtApplication)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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).base__.QueryAlive)(windows_core::Interface::as_raw(self)).ok() @@ -1692,18 +1692,18 @@ impl IDebugApplication64 { } pub unsafe fn SetName(&self, pstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), pstrname.param().abi()).ok() } pub unsafe fn StepOutComplete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StepOutComplete)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DebugOutput(&self, pstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DebugOutput)(windows_core::Interface::as_raw(self), pstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DebugOutput)(windows_core::Interface::as_raw(self), pstr.param().abi()).ok() } pub unsafe fn StartDebugSession(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartDebugSession)(windows_core::Interface::as_raw(self)).ok() @@ -1724,17 +1724,17 @@ impl IDebugApplication64 { } pub unsafe fn CreateAsyncDebugOperation(&self, psdo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAsyncDebugOperation)(windows_core::Interface::as_raw(self), psdo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAsyncDebugOperation)(windows_core::Interface::as_raw(self), psdo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddStackFrameSniffer(&self, pdsfs: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddStackFrameSniffer)(windows_core::Interface::as_raw(self), pdsfs.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -1744,9 +1744,9 @@ impl IDebugApplication64 { } pub unsafe fn SynchronousCallInDebuggerThread(&self, pptc: P0, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallInDebuggerThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, 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__ = std::mem::zeroed(); @@ -1754,16 +1754,16 @@ impl IDebugApplication64 { } pub unsafe fn FireDebuggerEvent(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleRuntimeError)(windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), pscriptsite.into_param().abi(), pbra, perra, pfcallonscripterror).ok() + (windows_core::Interface::vtable(self).HandleRuntimeError)(windows_core::Interface::as_raw(self), perrordebug.param().abi(), pscriptsite.param().abi(), pbra, perra, pfcallonscripterror).ok() } pub unsafe fn FCanJitDebug(&self) -> super::super::super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).FCanJitDebug)(windows_core::Interface::as_raw(self)) @@ -1773,10 +1773,10 @@ impl IDebugApplication64 { } pub unsafe fn AddGlobalExpressionContextProvider(&self, pdsfs: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddGlobalExpressionContextProvider)(windows_core::Interface::as_raw(self), pdsfs.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -1831,18 +1831,18 @@ impl IDebugApplicationNode { } pub unsafe fn SetDocumentProvider(&self, pddp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentProvider)(windows_core::Interface::as_raw(self), pddp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentProvider)(windows_core::Interface::as_raw(self), pddp.param().abi()).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 Attach(&self, pdanparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pdanparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pdanparent.param().abi()).ok() } pub unsafe fn Detach(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self)).ok() @@ -1870,9 +1870,9 @@ impl IDebugApplicationNode100 { } pub unsafe fn QueryIsChildNode(&self, psearchkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryIsChildNode)(windows_core::Interface::as_raw(self), psearchkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueryIsChildNode)(windows_core::Interface::as_raw(self), psearchkey.param().abi()).ok() } } #[repr(C)] @@ -1887,24 +1887,24 @@ windows_core::imp::interface_hierarchy!(IDebugApplicationNodeEvents, windows_cor impl IDebugApplicationNodeEvents { pub unsafe fn onAddChild(&self, prddpchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onAddChild)(windows_core::Interface::as_raw(self), prddpchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).onAddChild)(windows_core::Interface::as_raw(self), prddpchild.param().abi()).ok() } pub unsafe fn onRemoveChild(&self, prddpchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onRemoveChild)(windows_core::Interface::as_raw(self), prddpchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).onRemoveChild)(windows_core::Interface::as_raw(self), prddpchild.param().abi()).ok() } pub unsafe fn onDetach(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).onDetach)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn onAttach(&self, prddpparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onAttach)(windows_core::Interface::as_raw(self), prddpparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).onAttach)(windows_core::Interface::as_raw(self), prddpparent.param().abi()).ok() } } #[repr(C)] @@ -1935,10 +1935,10 @@ impl IDebugApplicationThread { } pub unsafe fn SetNextStatement(&self, pstackframe: P0, pcodecontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNextStatement)(windows_core::Interface::as_raw(self), pstackframe.into_param().abi(), pcodecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNextStatement)(windows_core::Interface::as_raw(self), pstackframe.param().abi(), pcodecontext.param().abi()).ok() } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1958,9 +1958,9 @@ impl IDebugApplicationThread { } pub unsafe fn SynchronousCallIntoThread32(&self, pstcb: P0, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallIntoThread32)(windows_core::Interface::as_raw(self), pstcb.into_param().abi(), dwparam1, dwparam2, 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() @@ -1970,15 +1970,15 @@ impl IDebugApplicationThread { } pub unsafe fn SetDescription(&self, pstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pstrdescription.param().abi()).ok() } pub unsafe fn SetStateString(&self, pstrstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStateString)(windows_core::Interface::as_raw(self), pstrstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStateString)(windows_core::Interface::as_raw(self), pstrstate.param().abi()).ok() } } #[repr(C)] @@ -2007,9 +2007,9 @@ impl IDebugApplicationThread11032 { } pub unsafe fn AsynchronousCallIntoThread(&self, pptc: P0, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, dwparam3).ok() + (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -2037,9 +2037,9 @@ impl IDebugApplicationThread11064 { } pub unsafe fn AsynchronousCallIntoThread(&self, pptc: P0, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, dwparam3).ok() + (windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(windows_core::Interface::as_raw(self), pptc.param().abi(), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -2070,10 +2070,10 @@ impl IDebugApplicationThread64 { } pub unsafe fn SetNextStatement(&self, pstackframe: P0, pcodecontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNextStatement)(windows_core::Interface::as_raw(self), pstackframe.into_param().abi(), pcodecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNextStatement)(windows_core::Interface::as_raw(self), pstackframe.param().abi(), pcodecontext.param().abi()).ok() } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2093,9 +2093,9 @@ impl IDebugApplicationThread64 { } pub unsafe fn SynchronousCallIntoThread32(&self, pstcb: P0, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SynchronousCallIntoThread32)(windows_core::Interface::as_raw(self), pstcb.into_param().abi(), dwparam1, dwparam2, dwparam3).ok() + (windows_core::Interface::vtable(self).base__.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).base__.QueryIsCurrentThread)(windows_core::Interface::as_raw(self)).ok() @@ -2105,21 +2105,21 @@ impl IDebugApplicationThread64 { } pub unsafe fn SetDescription(&self, pstrdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), pstrdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), pstrdescription.param().abi()).ok() } pub unsafe fn SetStateString(&self, pstrstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStateString)(windows_core::Interface::as_raw(self), pstrstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStateString)(windows_core::Interface::as_raw(self), pstrstate.param().abi()).ok() } pub unsafe fn SynchronousCallIntoThread64(&self, pstcb: P0, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SynchronousCallIntoThread64)(windows_core::Interface::as_raw(self), pstcb.into_param().abi(), dwparam1, dwparam2, dwparam3).ok() + (windows_core::Interface::vtable(self).SynchronousCallIntoThread64)(windows_core::Interface::as_raw(self), pstcb.param().abi(), dwparam1, dwparam2, dwparam3).ok() } } #[repr(C)] @@ -2160,9 +2160,9 @@ impl IDebugAsyncOperation { } pub unsafe fn Start(&self, padocb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), padocb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), padocb.param().abi()).ok() } pub unsafe fn Abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() @@ -2263,49 +2263,49 @@ windows_core::imp::interface_hierarchy!(IDebugDocumentHelper32, windows_core::IU impl IDebugDocumentHelper32 { pub unsafe fn Init(&self, pda: P0, pszshortname: P1, pszlongname: P2, docattr: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pda.into_param().abi(), pszshortname.into_param().abi(), pszlongname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pddhparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pddhparent.param().abi()).ok() } pub unsafe fn Detach(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddUnicodeText(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUnicodeText)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddUnicodeText)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn AddDBCSText(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDBCSText)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDBCSText)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn SetDebugDocumentHost(&self, pddh: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDebugDocumentHost)(windows_core::Interface::as_raw(self), pddh.into_param().abi()).ok() + (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), cchars, dwtextstartcookie).ok() } pub unsafe fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: P0, fscriptlet: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), ulcharoffset, cchars, pas.into_param().abi(), fscriptlet.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), ulcharoffset, cchars, pas.param().abi(), fscriptlet.param().abi(), &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), statextattr).ok() @@ -2315,15 +2315,15 @@ impl IDebugDocumentHelper32 { } pub unsafe fn SetLongName(&self, pszlongname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLongName)(windows_core::Interface::as_raw(self), pszlongname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLongName)(windows_core::Interface::as_raw(self), pszlongname.param().abi()).ok() } pub unsafe fn SetShortName(&self, pszshortname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShortName)(windows_core::Interface::as_raw(self), pszshortname.into_param().abi()).ok() + (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), pszattributes).ok() @@ -2344,9 +2344,9 @@ impl IDebugDocumentHelper32 { } pub unsafe fn BringDocumentContextToTop(&self, pddc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BringDocumentContextToTop)(windows_core::Interface::as_raw(self), pddc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BringDocumentContextToTop)(windows_core::Interface::as_raw(self), pddc.param().abi()).ok() } } #[repr(C)] @@ -2376,49 +2376,49 @@ windows_core::imp::interface_hierarchy!(IDebugDocumentHelper64, windows_core::IU impl IDebugDocumentHelper64 { pub unsafe fn Init(&self, pda: P0, pszshortname: P1, pszlongname: P2, docattr: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pda.into_param().abi(), pszshortname.into_param().abi(), pszlongname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pddhparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), pddhparent.param().abi()).ok() } pub unsafe fn Detach(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddUnicodeText(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUnicodeText)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddUnicodeText)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn AddDBCSText(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDBCSText)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddDBCSText)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn SetDebugDocumentHost(&self, pddh: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDebugDocumentHost)(windows_core::Interface::as_raw(self), pddh.into_param().abi()).ok() + (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), cchars, dwtextstartcookie).ok() } pub unsafe fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: P0, fscriptlet: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), ulcharoffset, cchars, pas.into_param().abi(), fscriptlet.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DefineScriptBlock)(windows_core::Interface::as_raw(self), ulcharoffset, cchars, pas.param().abi(), fscriptlet.param().abi(), &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), statextattr).ok() @@ -2428,15 +2428,15 @@ impl IDebugDocumentHelper64 { } pub unsafe fn SetLongName(&self, pszlongname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLongName)(windows_core::Interface::as_raw(self), pszlongname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLongName)(windows_core::Interface::as_raw(self), pszlongname.param().abi()).ok() } pub unsafe fn SetShortName(&self, pszshortname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShortName)(windows_core::Interface::as_raw(self), pszshortname.into_param().abi()).ok() + (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), pszattributes).ok() @@ -2457,9 +2457,9 @@ impl IDebugDocumentHelper64 { } pub unsafe fn BringDocumentContextToTop(&self, pddc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BringDocumentContextToTop)(windows_core::Interface::as_raw(self), pddc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BringDocumentContextToTop)(windows_core::Interface::as_raw(self), pddc.param().abi()).ok() } } #[repr(C)] @@ -2492,10 +2492,10 @@ impl IDebugDocumentHost { } pub unsafe fn GetScriptTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P1, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), unumcodechars, pstrdelimiter.into_param().abi(), dwflags, pattr).ok() + (windows_core::Interface::vtable(self).GetScriptTextAttributes)(windows_core::Interface::as_raw(self), pstrcode.param().abi(), unumcodechars, pstrdelimiter.param().abi(), dwflags, pattr).ok() } pub unsafe fn OnCreateDocumentContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2591,9 +2591,9 @@ impl IDebugDocumentText { } pub unsafe fn GetPositionOfContext(&self, psc: P0, pccharacterposition: *mut u32, cnumchars: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPositionOfContext)(windows_core::Interface::as_raw(self), psc.into_param().abi(), pccharacterposition, cnumchars).ok() + (windows_core::Interface::vtable(self).GetPositionOfContext)(windows_core::Interface::as_raw(self), psc.param().abi(), pccharacterposition, cnumchars).ok() } pub unsafe fn GetContextOfPosition(&self, ccharacterposition: u32, cnumchars: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2641,9 +2641,9 @@ impl IDebugDocumentTextAuthor { } pub unsafe fn GetPositionOfContext(&self, psc: P0, pccharacterposition: *mut u32, cnumchars: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetPositionOfContext)(windows_core::Interface::as_raw(self), psc.into_param().abi(), pccharacterposition, cnumchars).ok() + (windows_core::Interface::vtable(self).base__.GetPositionOfContext)(windows_core::Interface::as_raw(self), psc.param().abi(), pccharacterposition, cnumchars).ok() } pub unsafe fn GetContextOfPosition(&self, ccharacterposition: u32, cnumchars: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2724,9 +2724,9 @@ windows_core::imp::interface_hierarchy!(IDebugExpression, windows_core::IUnknown impl IDebugExpression { pub unsafe fn Start(&self, pdecb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), pdecb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), pdecb.param().abi()).ok() } pub unsafe fn Abort(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)).ok() @@ -2767,11 +2767,11 @@ windows_core::imp::interface_hierarchy!(IDebugExpressionContext, windows_core::I impl IDebugExpressionContext { pub unsafe fn ParseLanguageText(&self, pstrcode: P0, nradix: u32, pstrdelimiter: P1, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseLanguageText)(windows_core::Interface::as_raw(self), pstrcode.into_param().abi(), nradix, pstrdelimiter.into_param().abi(), 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), planguageid).ok() @@ -2792,10 +2792,10 @@ impl IDebugFormatter { } pub unsafe fn GetVariantForString(&self, pwstrvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVariantForString)(windows_core::Interface::as_raw(self), pwstrvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVariantForString)(windows_core::Interface::as_raw(self), pwstrvalue.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 GetStringForVarType(&self, vt: super::super::super::Variant::VARENUM, ptdescarraytype: *const super::super::super::Com::TYPEDESC) -> windows_core::Result { @@ -2818,28 +2818,28 @@ windows_core::imp::interface_hierarchy!(IDebugHelper, windows_core::IUnknown); impl IDebugHelper { pub unsafe fn CreatePropertyBrowser(&self, pvar: *const windows_core::VARIANT, bstrname: P0, pdat: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyBrowser)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), bstrname.into_param().abi(), pdat.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyBrowser)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), bstrname.param().abi(), pdat.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyBrowserEx(&self, pvar: *const windows_core::VARIANT, bstrname: P0, pdat: P1, pdf: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyBrowserEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), bstrname.into_param().abi(), pdat.into_param().abi(), pdf.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyBrowserEx)(windows_core::Interface::as_raw(self), core::mem::transmute(pvar), bstrname.param().abi(), pdat.param().abi(), pdf.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSimpleConnectionPoint(&self, pdisp: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSimpleConnectionPoint)(windows_core::Interface::as_raw(self), pdisp.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSimpleConnectionPoint)(windows_core::Interface::as_raw(self), pdisp.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2857,9 +2857,9 @@ windows_core::imp::interface_hierarchy!(IDebugSessionProvider, windows_core::IUn impl IDebugSessionProvider { pub unsafe fn StartDebugSession(&self, pda: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartDebugSession)(windows_core::Interface::as_raw(self), pda.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartDebugSession)(windows_core::Interface::as_raw(self), pda.param().abi()).ok() } } #[repr(C)] @@ -2876,17 +2876,17 @@ impl IDebugStackFrame { } pub unsafe fn GetDescriptionString(&self, flong: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDescriptionString)(windows_core::Interface::as_raw(self), flong.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDescriptionString)(windows_core::Interface::as_raw(self), flong.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLanguageString(&self, flong: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLanguageString)(windows_core::Interface::as_raw(self), flong.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLanguageString)(windows_core::Interface::as_raw(self), flong.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetThread(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2915,17 +2915,17 @@ impl IDebugStackFrame110 { } pub unsafe fn GetDescriptionString(&self, flong: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDescriptionString)(windows_core::Interface::as_raw(self), flong.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetDescriptionString)(windows_core::Interface::as_raw(self), flong.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLanguageString(&self, flong: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetLanguageString)(windows_core::Interface::as_raw(self), flong.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetLanguageString)(windows_core::Interface::as_raw(self), flong.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetThread(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3239,10 +3239,10 @@ windows_core::imp::interface_hierarchy!(IJsDebug, windows_core::IUnknown); impl IJsDebug { pub unsafe fn OpenVirtualProcess(&self, processid: u32, runtimejsbaseaddress: u64, pdatatarget: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenVirtualProcess)(windows_core::Interface::as_raw(self), processid, runtimejsbaseaddress, pdatatarget.into_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)] @@ -3354,9 +3354,9 @@ impl IJsDebugFrame { } pub unsafe fn Evaluate(&self, pexpressiontext: P0, ppdebugproperty: *mut Option, perror: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), pexpressiontext.into_param().abi(), core::mem::transmute(ppdebugproperty), core::mem::transmute(perror)).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), pexpressiontext.param().abi(), core::mem::transmute(ppdebugproperty), core::mem::transmute(perror)).ok() } } #[repr(C)] @@ -3379,10 +3379,10 @@ impl IJsDebugProcess { } pub unsafe fn CreateBreakPoint(&self, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateBreakPoint)(windows_core::Interface::as_raw(self), documentid, characteroffset, charactercount, isenabled.into_param().abi(), &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.param().abi(), &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), threadid).ok() @@ -3452,10 +3452,10 @@ windows_core::imp::interface_hierarchy!(IMachineDebugManager, windows_core::IUnk impl IMachineDebugManager { pub unsafe fn AddApplication(&self, pda: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.into_param().abi(), &mut result__).map(|| result__) + (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), dwappcookie).ok() @@ -3477,10 +3477,10 @@ windows_core::imp::interface_hierarchy!(IMachineDebugManagerCookie, windows_core impl IMachineDebugManagerCookie { pub unsafe fn AddApplication(&self, pda: P0, dwdebugappcookie: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.into_param().abi(), 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), dwdebugappcookie, dwappcookie).ok() @@ -3502,15 +3502,15 @@ windows_core::imp::interface_hierarchy!(IMachineDebugManagerEvents, windows_core impl IMachineDebugManagerEvents { pub unsafe fn onAddApplication(&self, pda: P0, dwappcookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onAddApplication)(windows_core::Interface::as_raw(self), pda.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).onRemoveApplication)(windows_core::Interface::as_raw(self), pda.into_param().abi(), dwappcookie).ok() + (windows_core::Interface::vtable(self).onRemoveApplication)(windows_core::Interface::as_raw(self), pda.param().abi(), dwappcookie).ok() } } #[repr(C)] @@ -3532,20 +3532,20 @@ impl IProcessDebugManager32 { } pub unsafe fn AddApplication(&self, pda: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.into_param().abi(), &mut result__).map(|| result__) + (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), dwappcookie).ok() } pub unsafe fn CreateDebugDocumentHelper(&self, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDebugDocumentHelper)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDebugDocumentHelper)(windows_core::Interface::as_raw(self), punkouter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3570,20 +3570,20 @@ impl IProcessDebugManager64 { } pub unsafe fn AddApplication(&self, pda: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddApplication)(windows_core::Interface::as_raw(self), pda.into_param().abi(), &mut result__).map(|| result__) + (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), dwappcookie).ok() } pub unsafe fn CreateDebugDocumentHelper(&self, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDebugDocumentHelper)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDebugDocumentHelper)(windows_core::Interface::as_raw(self), punkouter.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3613,18 +3613,18 @@ windows_core::imp::interface_hierarchy!(IRemoteDebugApplication, windows_core::I impl IRemoteDebugApplication { pub unsafe fn ResumeFromBreakPoint(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResumeFromBreakPoint)(windows_core::Interface::as_raw(self), prptfocus.into_param().abi(), bra, 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() } pub unsafe fn ConnectDebugger(&self, pad: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectDebugger)(windows_core::Interface::as_raw(self), pad.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectDebugger)(windows_core::Interface::as_raw(self), pad.param().abi()).ok() } pub unsafe fn DisconnectDebugger(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisconnectDebugger)(windows_core::Interface::as_raw(self)).ok() @@ -3635,10 +3635,10 @@ impl IRemoteDebugApplication { } pub unsafe fn CreateInstanceAtApplication(&self, rclsid: *const windows_core::GUID, punkouter: P0, dwclscontext: u32, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceAtApplication)(windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, 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() @@ -3702,57 +3702,57 @@ windows_core::imp::interface_hierarchy!(IRemoteDebugApplicationEvents, windows_c impl IRemoteDebugApplicationEvents { pub unsafe fn OnConnectDebugger(&self, pad: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnectDebugger)(windows_core::Interface::as_raw(self), pad.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConnectDebugger)(windows_core::Interface::as_raw(self), pad.param().abi()).ok() } pub unsafe fn OnDisconnectDebugger(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnDisconnectDebugger)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnSetName(&self, pstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetName)(windows_core::Interface::as_raw(self), pstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSetName)(windows_core::Interface::as_raw(self), pstrname.param().abi()).ok() } pub unsafe fn OnDebugOutput(&self, pstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDebugOutput)(windows_core::Interface::as_raw(self), pstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDebugOutput)(windows_core::Interface::as_raw(self), pstr.param().abi()).ok() } pub unsafe fn OnClose(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnClose)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnEnterBreakPoint(&self, prdat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEnterBreakPoint)(windows_core::Interface::as_raw(self), prdat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEnterBreakPoint)(windows_core::Interface::as_raw(self), prdat.param().abi()).ok() } pub unsafe fn OnLeaveBreakPoint(&self, prdat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLeaveBreakPoint)(windows_core::Interface::as_raw(self), prdat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnLeaveBreakPoint)(windows_core::Interface::as_raw(self), prdat.param().abi()).ok() } pub unsafe fn OnCreateThread(&self, prdat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreateThread)(windows_core::Interface::as_raw(self), prdat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCreateThread)(windows_core::Interface::as_raw(self), prdat.param().abi()).ok() } pub unsafe fn OnDestroyThread(&self, prdat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDestroyThread)(windows_core::Interface::as_raw(self), prdat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDestroyThread)(windows_core::Interface::as_raw(self), prdat.param().abi()).ok() } pub unsafe fn OnBreakFlagChange(&self, abf: u32, prdatsteppingthread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBreakFlagChange)(windows_core::Interface::as_raw(self), abf, prdatsteppingthread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnBreakFlagChange)(windows_core::Interface::as_raw(self), abf, prdatsteppingthread.param().abi()).ok() } } #[repr(C)] @@ -3789,10 +3789,10 @@ impl IRemoteDebugApplicationThread { } pub unsafe fn SetNextStatement(&self, pstackframe: P0, pcodecontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNextStatement)(windows_core::Interface::as_raw(self), pstackframe.into_param().abi(), pcodecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNextStatement)(windows_core::Interface::as_raw(self), pstackframe.param().abi(), pcodecontext.param().abi()).ok() } pub unsafe fn GetState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3883,21 +3883,21 @@ impl IScriptEntry { } pub unsafe fn CreateChildEntry(&self, isn: u32, dwcookie: u32, pszdelimiter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateChildEntry)(windows_core::Interface::as_raw(self), isn, dwcookie, pszdelimiter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P1, pszdelimiter: P2, ptisignature: P3, imethodsignature: u32, isn: u32, dwcookie: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateChildHandler)(windows_core::Interface::as_raw(self), pszdefaultname.into_param().abi(), core::mem::transmute(prgpsznames.as_ptr()), prgpsznames.len().try_into().unwrap(), pszevent.into_param().abi(), pszdelimiter.into_param().abi(), ptisignature.into_param().abi(), imethodsignature, isn, dwcookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__)) } pub unsafe fn GetText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3905,9 +3905,9 @@ impl IScriptEntry { } pub unsafe fn SetText(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetBody(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3915,9 +3915,9 @@ impl IScriptEntry { } pub unsafe fn SetBody(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3925,9 +3925,9 @@ impl IScriptEntry { } pub unsafe fn SetName(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetItemName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3935,9 +3935,9 @@ impl IScriptEntry { } pub unsafe fn SetItemName(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItemName)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetItemName)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSignature(&self, ppti: *mut Option, pimethod: *mut u32) -> windows_core::Result<()> { @@ -3946,9 +3946,9 @@ impl IScriptEntry { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignature(&self, pti: P0, imethod: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), pti.into_param().abi(), 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), pichmin, pcch).ok() @@ -4033,21 +4033,21 @@ impl IScriptNode { } pub unsafe fn CreateChildEntry(&self, isn: u32, dwcookie: u32, pszdelimiter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildEntry)(windows_core::Interface::as_raw(self), isn, dwcookie, pszdelimiter.into_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: P1, pszdelimiter: P2, ptisignature: P3, imethodsignature: u32, isn: u32, dwcookie: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateChildHandler)(windows_core::Interface::as_raw(self), pszdefaultname.into_param().abi(), core::mem::transmute(prgpsznames.as_ptr()), prgpsznames.len().try_into().unwrap(), pszevent.into_param().abi(), pszdelimiter.into_param().abi(), ptisignature.into_param().abi(), imethodsignature, isn, 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)] @@ -4102,21 +4102,21 @@ impl IScriptScriptlet { } pub unsafe fn CreateChildEntry(&self, isn: u32, dwcookie: u32, pszdelimiter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateChildEntry)(windows_core::Interface::as_raw(self), isn, dwcookie, pszdelimiter.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P1, pszdelimiter: P2, ptisignature: P3, imethodsignature: u32, isn: u32, dwcookie: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateChildHandler)(windows_core::Interface::as_raw(self), pszdefaultname.into_param().abi(), core::mem::transmute(prgpsznames.as_ptr()), prgpsznames.len().try_into().unwrap(), pszevent.into_param().abi(), pszdelimiter.into_param().abi(), ptisignature.into_param().abi(), imethodsignature, isn, dwcookie, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__)) } pub unsafe fn GetText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4124,9 +4124,9 @@ impl IScriptScriptlet { } pub unsafe fn SetText(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetText)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetText)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetBody(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4134,9 +4134,9 @@ impl IScriptScriptlet { } pub unsafe fn SetBody(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetBody)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetBody)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4144,9 +4144,9 @@ impl IScriptScriptlet { } pub unsafe fn SetName(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetItemName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4154,9 +4154,9 @@ impl IScriptScriptlet { } pub unsafe fn SetItemName(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetItemName)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetItemName)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSignature(&self, ppti: *mut Option, pimethod: *mut u32) -> windows_core::Result<()> { @@ -4165,9 +4165,9 @@ impl IScriptScriptlet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSignature(&self, pti: P0, imethod: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSignature)(windows_core::Interface::as_raw(self), pti.into_param().abi(), imethod).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetRange)(windows_core::Interface::as_raw(self), pichmin, pcch).ok() @@ -4178,9 +4178,9 @@ impl IScriptScriptlet { } pub unsafe fn SetSubItemName(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubItemName)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubItemName)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetEventName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4188,9 +4188,9 @@ impl IScriptScriptlet { } pub unsafe fn SetEventName(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventName)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventName)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } pub unsafe fn GetSimpleEventName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4198,9 +4198,9 @@ impl IScriptScriptlet { } pub unsafe fn SetSimpleEventName(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSimpleEventName)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSimpleEventName)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } } #[repr(C)] @@ -4226,10 +4226,10 @@ impl ISimpleConnectionPoint { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Advise(&self, pdisp: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pdisp.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -4252,9 +4252,9 @@ impl ITridentEventSink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FireEvent(&self, pstrevent: P0, pdp: *const super::super::super::Com::DISPPARAMS, pvarres: *mut windows_core::VARIANT, pei: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireEvent)(windows_core::Interface::as_raw(self), pstrevent.into_param().abi(), pdp, core::mem::transmute(pvarres), pei).ok() + (windows_core::Interface::vtable(self).FireEvent)(windows_core::Interface::as_raw(self), pstrevent.param().abi(), pdp, core::mem::transmute(pvarres), pei).ok() } } #[repr(C)] @@ -4270,10 +4270,10 @@ windows_core::imp::interface_hierarchy!(IWebAppDiagnosticsObjectInitialization, impl IWebAppDiagnosticsObjectInitialization { pub unsafe fn Initialize(&self, hpassedhandle: P0, pdebugapplication: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hpassedhandle.into_param().abi(), pdebugapplication.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hpassedhandle.param().abi(), pdebugapplication.param().abi()).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 b65d269bc3..2cf422ca92 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 @@ -1,27 +1,27 @@ #[inline] pub unsafe fn CreateDataModelManager(debughost: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbgmodel.dll" "system" fn CreateDataModelManager(debughost : * mut core::ffi::c_void, manager : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateDataModelManager(debughost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDataModelManager(debughost.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn DebugConnect(remoteoptions: P0, interfaceid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), interfaceid, interface).ok() + DebugConnect(remoteoptions.param().abi(), interfaceid, interface).ok() } #[inline] pub unsafe fn DebugConnectWide(remoteoptions: P0, interfaceid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), interfaceid, interface).ok() + DebugConnectWide(remoteoptions.param().abi(), interfaceid, interface).ok() } #[inline] pub unsafe fn DebugCreate() -> windows_core::Result @@ -50,9 +50,9 @@ impl DebugBaseEventCallbacks { } pub unsafe fn Breakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Breakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Exception)(windows_core::Interface::as_raw(self), exception, firstchance).ok() @@ -65,26 +65,26 @@ impl DebugBaseEventCallbacks { } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, startoffset).ok() + (windows_core::Interface::vtable(self).base__.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).base__.ExitProcess)(windows_core::Interface::as_raw(self), exitcode).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.into_param().abi(), baseoffset).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SystemError)(windows_core::Interface::as_raw(self), error, level).ok() @@ -115,9 +115,9 @@ impl DebugBaseEventCallbacksWide { } pub unsafe fn Breakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Breakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Exception)(windows_core::Interface::as_raw(self), exception, firstchance).ok() @@ -130,26 +130,26 @@ impl DebugBaseEventCallbacksWide { } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, startoffset).ok() + (windows_core::Interface::vtable(self).base__.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).base__.ExitProcess)(windows_core::Interface::as_raw(self), exitcode).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.into_param().abi(), baseoffset).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SystemError)(windows_core::Interface::as_raw(self), error, level).ok() @@ -176,10 +176,10 @@ windows_core::imp::interface_hierarchy!(ICodeAddressConcept, windows_core::IUnkn impl ICodeAddressConcept { pub unsafe fn GetContainingSymbol(&self, pcontextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContainingSymbol)(windows_core::Interface::as_raw(self), pcontextobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetContainingSymbol)(windows_core::Interface::as_raw(self), pcontextobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -192,11 +192,11 @@ windows_core::imp::interface_hierarchy!(IComparableConcept, windows_core::IUnkno impl IComparableConcept { pub unsafe fn CompareObjects(&self, contextobject: P0, otherobject: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareObjects)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), otherobject.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareObjects)(windows_core::Interface::as_raw(self), contextobject.param().abi(), otherobject.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -209,11 +209,11 @@ windows_core::imp::interface_hierarchy!(IDataModelConcept, windows_core::IUnknow impl IDataModelConcept { pub unsafe fn InitializeObject(&self, modelobject: P0, matchingtypesignature: P1, wildcardmatches: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeObject)(windows_core::Interface::as_raw(self), modelobject.into_param().abi(), matchingtypesignature.into_param().abi(), wildcardmatches.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeObject)(windows_core::Interface::as_raw(self), modelobject.param().abi(), matchingtypesignature.param().abi(), wildcardmatches.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -238,40 +238,40 @@ impl IDataModelManager { } pub unsafe fn CreateErrorObject(&self, hrerror: windows_core::HRESULT, pwszmessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateErrorObject)(windows_core::Interface::as_raw(self), hrerror, pwszmessage.into_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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypedObject)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(objectlocation), objecttype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTypedObject)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(objectlocation), objecttype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTypedObjectReference(&self, context: P0, objectlocation: Location, objecttype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypedObjectReference)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(objectlocation), objecttype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTypedObjectReference)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(objectlocation), objecttype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSyntheticObject(&self, context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSyntheticObject)(windows_core::Interface::as_raw(self), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSyntheticObject)(windows_core::Interface::as_raw(self), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDataModelObject(&self, datamodel: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDataModelObject)(windows_core::Interface::as_raw(self), datamodel.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDataModelObject)(windows_core::Interface::as_raw(self), datamodel.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateIntrinsicObject(&self, objectkind: ModelObjectKind, intrinsicdata: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -279,58 +279,58 @@ impl IDataModelManager { } pub unsafe fn CreateTypedIntrinsicObject(&self, intrinsicdata: *const windows_core::VARIANT, r#type: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypedIntrinsicObject)(windows_core::Interface::as_raw(self), core::mem::transmute(intrinsicdata), r#type.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTypedIntrinsicObject)(windows_core::Interface::as_raw(self), core::mem::transmute(intrinsicdata), r#type.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetModelForTypeSignature(&self, typesignature: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetModelForType(&self, r#type: P0, datamodel: *mut Option, typesignature: Option<*mut Option>, wildcardmatches: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModelForType)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), core::mem::transmute(datamodel), core::mem::transmute(typesignature.unwrap_or(std::ptr::null_mut())), core::mem::transmute(wildcardmatches.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModelForType)(windows_core::Interface::as_raw(self), r#type.param().abi(), core::mem::transmute(datamodel), core::mem::transmute(typesignature.unwrap_or(std::ptr::null_mut())), core::mem::transmute(wildcardmatches.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn RegisterModelForTypeSignature(&self, typesignature: P0, datamodel: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.into_param().abi(), datamodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.param().abi(), datamodel.param().abi()).ok() } pub unsafe fn UnregisterModelForTypeSignature(&self, datamodel: P0, typesignature: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterModelForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.into_param().abi(), typesignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterModelForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.param().abi(), typesignature.param().abi()).ok() } pub unsafe fn RegisterExtensionForTypeSignature(&self, typesignature: P0, datamodel: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.into_param().abi(), datamodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.param().abi(), datamodel.param().abi()).ok() } pub unsafe fn UnregisterExtensionForTypeSignature(&self, datamodel: P0, typesignature: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.into_param().abi(), typesignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.param().abi(), typesignature.param().abi()).ok() } pub unsafe fn CreateMetadataStore(&self, parentstore: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateMetadataStore)(windows_core::Interface::as_raw(self), parentstore.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateMetadataStore)(windows_core::Interface::as_raw(self), parentstore.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRootNamespace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -338,23 +338,23 @@ impl IDataModelManager { } pub unsafe fn RegisterNamedModel(&self, modelname: P0, modeobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterNamedModel)(windows_core::Interface::as_raw(self), modelname.into_param().abi(), modeobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterNamedModel)(windows_core::Interface::as_raw(self), modelname.param().abi(), modeobject.param().abi()).ok() } pub unsafe fn UnregisterNamedModel(&self, modelname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterNamedModel)(windows_core::Interface::as_raw(self), modelname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterNamedModel)(windows_core::Interface::as_raw(self), modelname.param().abi()).ok() } pub unsafe fn AcquireNamedModel(&self, modelname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AcquireNamedModel)(windows_core::Interface::as_raw(self), modelname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AcquireNamedModel)(windows_core::Interface::as_raw(self), modelname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -393,40 +393,40 @@ impl IDataModelManager2 { } pub unsafe fn CreateErrorObject(&self, hrerror: windows_core::HRESULT, pwszmessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateErrorObject)(windows_core::Interface::as_raw(self), hrerror, pwszmessage.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTypedObject)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(objectlocation), objecttype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTypedObject)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(objectlocation), objecttype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTypedObjectReference(&self, context: P0, objectlocation: Location, objecttype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTypedObjectReference)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(objectlocation), objecttype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTypedObjectReference)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(objectlocation), objecttype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSyntheticObject(&self, context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSyntheticObject)(windows_core::Interface::as_raw(self), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSyntheticObject)(windows_core::Interface::as_raw(self), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateDataModelObject(&self, datamodel: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateDataModelObject)(windows_core::Interface::as_raw(self), datamodel.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateDataModelObject)(windows_core::Interface::as_raw(self), datamodel.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateIntrinsicObject(&self, objectkind: ModelObjectKind, intrinsicdata: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -434,58 +434,58 @@ impl IDataModelManager2 { } pub unsafe fn CreateTypedIntrinsicObject(&self, intrinsicdata: *const windows_core::VARIANT, r#type: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTypedIntrinsicObject)(windows_core::Interface::as_raw(self), core::mem::transmute(intrinsicdata), r#type.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTypedIntrinsicObject)(windows_core::Interface::as_raw(self), core::mem::transmute(intrinsicdata), r#type.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetModelForTypeSignature(&self, typesignature: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetModelForType(&self, r#type: P0, datamodel: *mut Option, typesignature: Option<*mut Option>, wildcardmatches: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetModelForType)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), core::mem::transmute(datamodel), core::mem::transmute(typesignature.unwrap_or(std::ptr::null_mut())), core::mem::transmute(wildcardmatches.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.GetModelForType)(windows_core::Interface::as_raw(self), r#type.param().abi(), core::mem::transmute(datamodel), core::mem::transmute(typesignature.unwrap_or(std::ptr::null_mut())), core::mem::transmute(wildcardmatches.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn RegisterModelForTypeSignature(&self, typesignature: P0, datamodel: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.into_param().abi(), datamodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterModelForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.param().abi(), datamodel.param().abi()).ok() } pub unsafe fn UnregisterModelForTypeSignature(&self, datamodel: P0, typesignature: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterModelForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.into_param().abi(), typesignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterModelForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.param().abi(), typesignature.param().abi()).ok() } pub unsafe fn RegisterExtensionForTypeSignature(&self, typesignature: P0, datamodel: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.into_param().abi(), datamodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), typesignature.param().abi(), datamodel.param().abi()).ok() } pub unsafe fn UnregisterExtensionForTypeSignature(&self, datamodel: P0, typesignature: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.into_param().abi(), typesignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterExtensionForTypeSignature)(windows_core::Interface::as_raw(self), datamodel.param().abi(), typesignature.param().abi()).ok() } pub unsafe fn CreateMetadataStore(&self, parentstore: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateMetadataStore)(windows_core::Interface::as_raw(self), parentstore.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateMetadataStore)(windows_core::Interface::as_raw(self), parentstore.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetRootNamespace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -493,41 +493,41 @@ impl IDataModelManager2 { } pub unsafe fn RegisterNamedModel(&self, modelname: P0, modeobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterNamedModel)(windows_core::Interface::as_raw(self), modelname.into_param().abi(), modeobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterNamedModel)(windows_core::Interface::as_raw(self), modelname.param().abi(), modeobject.param().abi()).ok() } pub unsafe fn UnregisterNamedModel(&self, modelname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterNamedModel)(windows_core::Interface::as_raw(self), modelname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterNamedModel)(windows_core::Interface::as_raw(self), modelname.param().abi()).ok() } pub unsafe fn AcquireNamedModel(&self, modelname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AcquireNamedModel)(windows_core::Interface::as_raw(self), modelname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AcquireNamedModel)(windows_core::Interface::as_raw(self), modelname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AcquireSubNamespace(&self, modelname: P0, subnamespacemodelname: P1, accessname: P2, metadata: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AcquireSubNamespace)(windows_core::Interface::as_raw(self), modelname.into_param().abi(), subnamespacemodelname.into_param().abi(), accessname.into_param().abi(), metadata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AcquireSubNamespace)(windows_core::Interface::as_raw(self), modelname.param().abi(), subnamespacemodelname.param().abi(), accessname.param().abi(), metadata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTypedIntrinsicObjectEx(&self, context: P0, intrinsicdata: *const windows_core::VARIANT, r#type: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypedIntrinsicObjectEx)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(intrinsicdata), r#type.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTypedIntrinsicObjectEx)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(intrinsicdata), r#type.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -541,31 +541,31 @@ windows_core::imp::interface_hierarchy!(IDataModelNameBinder, windows_core::IUnk impl IDataModelNameBinder { pub unsafe fn BindValue(&self, contextobject: P0, name: P1, value: *mut Option, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BindValue)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), name.into_param().abi(), core::mem::transmute(value), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).BindValue)(windows_core::Interface::as_raw(self), contextobject.param().abi(), name.param().abi(), core::mem::transmute(value), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn BindReference(&self, contextobject: P0, name: P1, reference: *mut Option, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BindReference)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), name.into_param().abi(), core::mem::transmute(reference), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).BindReference)(windows_core::Interface::as_raw(self), contextobject.param().abi(), name.param().abi(), core::mem::transmute(reference), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn EnumerateValues(&self, contextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateValues)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateValues)(windows_core::Interface::as_raw(self), contextobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateReferences(&self, contextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateReferences)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateReferences)(windows_core::Interface::as_raw(self), contextobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -585,22 +585,22 @@ impl IDataModelScript { } pub unsafe fn Rename(&self, scriptname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), scriptname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rename)(windows_core::Interface::as_raw(self), scriptname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Populate(&self, contentstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Populate)(windows_core::Interface::as_raw(self), contentstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Populate)(windows_core::Interface::as_raw(self), contentstream.param().abi()).ok() } pub unsafe fn Execute(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn Unlink(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Unlink)(windows_core::Interface::as_raw(self)).ok() @@ -611,9 +611,9 @@ impl IDataModelScript { } pub unsafe fn InvokeMain(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeMain)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeMain)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } } #[repr(C)] @@ -635,9 +635,9 @@ windows_core::imp::interface_hierarchy!(IDataModelScriptClient, windows_core::IU impl IDataModelScriptClient { pub unsafe fn ReportError(&self, errclass: ErrorClass, hrfail: windows_core::HRESULT, message: P0, line: u32, position: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errclass, hrfail, message.into_param().abi(), line, position).ok() + (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errclass, hrfail, message.param().abi(), line, position).ok() } } #[repr(C)] @@ -679,15 +679,15 @@ impl IDataModelScriptDebug { } pub unsafe fn StartDebugging(&self, debugclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartDebugging)(windows_core::Interface::as_raw(self), debugclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartDebugging)(windows_core::Interface::as_raw(self), debugclient.param().abi()).ok() } pub unsafe fn StopDebugging(&self, debugclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopDebugging)(windows_core::Interface::as_raw(self), debugclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StopDebugging)(windows_core::Interface::as_raw(self), debugclient.param().abi()).ok() } } #[repr(C)] @@ -738,22 +738,22 @@ impl IDataModelScriptDebug2 { } pub unsafe fn StartDebugging(&self, debugclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartDebugging)(windows_core::Interface::as_raw(self), debugclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StartDebugging)(windows_core::Interface::as_raw(self), debugclient.param().abi()).ok() } pub unsafe fn StopDebugging(&self, debugclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StopDebugging)(windows_core::Interface::as_raw(self), debugclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StopDebugging)(windows_core::Interface::as_raw(self), debugclient.param().abi()).ok() } pub unsafe fn SetBreakpointAtFunction(&self, functionname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetBreakpointAtFunction)(windows_core::Interface::as_raw(self), functionname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetBreakpointAtFunction)(windows_core::Interface::as_raw(self), functionname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -815,10 +815,10 @@ windows_core::imp::interface_hierarchy!(IDataModelScriptDebugClient, windows_cor impl IDataModelScriptDebugClient { pub unsafe fn NotifyDebugEvent(&self, peventinfo: *const ScriptDebugEventInformation, pscript: P0, peventdataobject: P1, resumeeventkind: *mut ScriptExecutionKind) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyDebugEvent)(windows_core::Interface::as_raw(self), peventinfo, pscript.into_param().abi(), peventdataobject.into_param().abi(), resumeeventkind).ok() + (windows_core::Interface::vtable(self).NotifyDebugEvent)(windows_core::Interface::as_raw(self), peventinfo, pscript.param().abi(), peventdataobject.param().abi(), resumeeventkind).ok() } } #[repr(C)] @@ -862,10 +862,10 @@ impl IDataModelScriptDebugStackFrame { } pub unsafe fn Evaluate(&self, pwszexpression: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), pwszexpression.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), pwszexpression.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateLocals(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -908,9 +908,9 @@ windows_core::imp::interface_hierarchy!(IDataModelScriptHostContext, windows_cor impl IDataModelScriptHostContext { pub unsafe fn NotifyScriptChange(&self, script: P0, changekind: ScriptChangeKind) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyScriptChange)(windows_core::Interface::as_raw(self), script.into_param().abi(), 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__ = std::mem::zeroed(); @@ -932,29 +932,29 @@ impl IDataModelScriptManager { } pub unsafe fn RegisterScriptProvider(&self, provider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterScriptProvider)(windows_core::Interface::as_raw(self), provider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterScriptProvider)(windows_core::Interface::as_raw(self), provider.param().abi()).ok() } pub unsafe fn UnregisterScriptProvider(&self, provider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterScriptProvider)(windows_core::Interface::as_raw(self), provider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterScriptProvider)(windows_core::Interface::as_raw(self), provider.param().abi()).ok() } pub unsafe fn FindProviderForScriptType(&self, scripttype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindProviderForScriptType)(windows_core::Interface::as_raw(self), scripttype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindProviderForScriptType)(windows_core::Interface::as_raw(self), scripttype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindProviderForScriptExtension(&self, scriptextension: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindProviderForScriptExtension)(windows_core::Interface::as_raw(self), scriptextension.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindProviderForScriptExtension)(windows_core::Interface::as_raw(self), scriptextension.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateScriptProviders(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1095,15 +1095,15 @@ impl IDebugAdvanced2 { } pub unsafe fn GetSourceFileInformation(&self, which: u32, sourcefile: P0, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), which, sourcefile.into_param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn FindSourceFileAndToken(&self, startelement: u32, modaddr: u64, file: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndToken)(windows_core::Interface::as_raw(self), startelement, modaddr, file.into_param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() @@ -1137,15 +1137,15 @@ impl IDebugAdvanced3 { } pub unsafe fn GetSourceFileInformation(&self, which: u32, sourcefile: P0, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), which, sourcefile.into_param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn FindSourceFileAndToken(&self, startelement: u32, modaddr: u64, file: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndToken)(windows_core::Interface::as_raw(self), startelement, modaddr, file.into_param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() @@ -1155,15 +1155,15 @@ impl IDebugAdvanced3 { } pub unsafe fn GetSourceFileInformationWide(&self, which: u32, sourcefile: P0, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformationWide)(windows_core::Interface::as_raw(self), which, sourcefile.into_param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn FindSourceFileAndTokenWide(&self, startelement: u32, modaddr: u64, file: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndTokenWide)(windows_core::Interface::as_raw(self), startelement, modaddr, file.into_param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() @@ -1197,15 +1197,15 @@ impl IDebugAdvanced4 { } pub unsafe fn GetSourceFileInformation(&self, which: u32, sourcefile: P0, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformation)(windows_core::Interface::as_raw(self), which, sourcefile.into_param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn FindSourceFileAndToken(&self, startelement: u32, modaddr: u64, file: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndToken)(windows_core::Interface::as_raw(self), startelement, modaddr, file.into_param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() @@ -1215,15 +1215,15 @@ impl IDebugAdvanced4 { } pub unsafe fn GetSourceFileInformationWide(&self, which: u32, sourcefile: P0, arg64: u64, arg32: u32, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, infosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileInformationWide)(windows_core::Interface::as_raw(self), which, sourcefile.into_param().abi(), arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn FindSourceFileAndTokenWide(&self, startelement: u32, modaddr: u64, file: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileAndTokenWide)(windows_core::Interface::as_raw(self), startelement, modaddr, file.into_param().abi(), flags, core::mem::transmute(filetoken.unwrap_or(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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(std::ptr::null())), filetokensize, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).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), which, arg64, arg32, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(infosize.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut()))).ok() @@ -1323,18 +1323,18 @@ impl IDebugBreakpoint { } pub unsafe fn SetCommand(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), command.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), command.param().abi()).ok() } pub unsafe fn GetOffsetExpression(&self, buffer: Option<&mut [u8]>, expressionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOffsetExpression)(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(expressionsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetOffsetExpression(&self, expression: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetExpression)(windows_core::Interface::as_raw(self), expression.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOffsetExpression)(windows_core::Interface::as_raw(self), expression.param().abi()).ok() } pub unsafe fn GetParameters(&self, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetParameters)(windows_core::Interface::as_raw(self), params).ok() @@ -1428,18 +1428,18 @@ impl IDebugBreakpoint2 { } pub unsafe fn SetCommand(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), command.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), command.param().abi()).ok() } pub unsafe fn GetOffsetExpression(&self, buffer: Option<&mut [u8]>, expressionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOffsetExpression)(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(expressionsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetOffsetExpression(&self, expression: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetExpression)(windows_core::Interface::as_raw(self), expression.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOffsetExpression)(windows_core::Interface::as_raw(self), expression.param().abi()).ok() } pub unsafe fn GetParameters(&self, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetParameters)(windows_core::Interface::as_raw(self), params).ok() @@ -1449,18 +1449,18 @@ impl IDebugBreakpoint2 { } pub unsafe fn SetCommandWide(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommandWide)(windows_core::Interface::as_raw(self), command.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommandWide)(windows_core::Interface::as_raw(self), command.param().abi()).ok() } pub unsafe fn GetOffsetExpressionWide(&self, buffer: Option<&mut [u16]>, expressionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOffsetExpressionWide)(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(expressionsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetOffsetExpressionWide(&self, expression: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetExpressionWide)(windows_core::Interface::as_raw(self), expression.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOffsetExpressionWide)(windows_core::Interface::as_raw(self), expression.param().abi()).ok() } } #[repr(C)] @@ -1555,18 +1555,18 @@ impl IDebugBreakpoint3 { } pub unsafe fn SetCommand(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), command.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommand)(windows_core::Interface::as_raw(self), command.param().abi()).ok() } pub unsafe fn GetOffsetExpression(&self, buffer: Option<&mut [u8]>, expressionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOffsetExpression)(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(expressionsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetOffsetExpression(&self, expression: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetExpression)(windows_core::Interface::as_raw(self), expression.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOffsetExpression)(windows_core::Interface::as_raw(self), expression.param().abi()).ok() } pub unsafe fn GetParameters(&self, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetParameters)(windows_core::Interface::as_raw(self), params).ok() @@ -1576,18 +1576,18 @@ impl IDebugBreakpoint3 { } pub unsafe fn SetCommandWide(&self, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommandWide)(windows_core::Interface::as_raw(self), command.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommandWide)(windows_core::Interface::as_raw(self), command.param().abi()).ok() } pub unsafe fn GetOffsetExpressionWide(&self, buffer: Option<&mut [u16]>, expressionsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOffsetExpressionWide)(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(expressionsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetOffsetExpressionWide(&self, expression: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffsetExpressionWide)(windows_core::Interface::as_raw(self), expression.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOffsetExpressionWide)(windows_core::Interface::as_raw(self), expression.param().abi()).ok() } pub unsafe fn GetGuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1629,31 +1629,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient, windows_core::IUnknown); impl IDebugClient { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -1663,10 +1663,10 @@ impl IDebugClient { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -1688,15 +1688,15 @@ impl IDebugClient { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -1713,30 +1713,30 @@ impl IDebugClient { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -1756,9 +1756,9 @@ impl IDebugClient { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1770,9 +1770,9 @@ impl IDebugClient { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1780,9 +1780,9 @@ impl IDebugClient { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1793,16 +1793,16 @@ impl IDebugClient { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1816,18 +1816,18 @@ impl IDebugClient { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -1835,9 +1835,9 @@ impl IDebugClient { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() @@ -1897,31 +1897,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient2, windows_core::IUnknown); impl IDebugClient2 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -1931,10 +1931,10 @@ impl IDebugClient2 { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -1956,15 +1956,15 @@ impl IDebugClient2 { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -1981,30 +1981,30 @@ impl IDebugClient2 { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -2024,9 +2024,9 @@ impl IDebugClient2 { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2038,9 +2038,9 @@ impl IDebugClient2 { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2048,9 +2048,9 @@ impl IDebugClient2 { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2061,16 +2061,16 @@ impl IDebugClient2 { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -2084,18 +2084,18 @@ impl IDebugClient2 { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -2103,25 +2103,25 @@ impl IDebugClient2 { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteDumpFile2(&self, dumpfile: P0, qualifier: u32, formatflags: u32, comment: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.into_param().abi(), 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), server).ok() @@ -2204,31 +2204,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient3, windows_core::IUnknown); impl IDebugClient3 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -2238,10 +2238,10 @@ impl IDebugClient3 { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -2263,15 +2263,15 @@ impl IDebugClient3 { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -2288,30 +2288,30 @@ impl IDebugClient3 { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -2331,9 +2331,9 @@ impl IDebugClient3 { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2345,9 +2345,9 @@ impl IDebugClient3 { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2355,9 +2355,9 @@ impl IDebugClient3 { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2368,16 +2368,16 @@ impl IDebugClient3 { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -2391,18 +2391,18 @@ impl IDebugClient3 { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -2410,25 +2410,25 @@ impl IDebugClient3 { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteDumpFile2(&self, dumpfile: P0, qualifier: u32, formatflags: u32, comment: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.into_param().abi(), 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), server).ok() @@ -2450,10 +2450,10 @@ impl IDebugClient3 { } pub unsafe fn GetRunningProcessSystemIdByExecutableNameWide(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -2472,15 +2472,15 @@ impl IDebugClient3 { } pub unsafe fn CreateProcessWide(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, attachflags).ok() + (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.param().abi(), createflags, processid, attachflags).ok() } } #[repr(C)] @@ -2549,31 +2549,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient4, windows_core::IUnknown); impl IDebugClient4 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -2583,10 +2583,10 @@ impl IDebugClient4 { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -2608,15 +2608,15 @@ impl IDebugClient4 { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -2633,30 +2633,30 @@ impl IDebugClient4 { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -2676,9 +2676,9 @@ impl IDebugClient4 { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2690,9 +2690,9 @@ impl IDebugClient4 { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2700,9 +2700,9 @@ impl IDebugClient4 { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2713,16 +2713,16 @@ impl IDebugClient4 { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -2736,18 +2736,18 @@ impl IDebugClient4 { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -2755,25 +2755,25 @@ impl IDebugClient4 { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteDumpFile2(&self, dumpfile: P0, qualifier: u32, formatflags: u32, comment: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.into_param().abi(), 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), server).ok() @@ -2795,10 +2795,10 @@ impl IDebugClient4 { } pub unsafe fn GetRunningProcessSystemIdByExecutableNameWide(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -2817,34 +2817,34 @@ impl IDebugClient4 { } pub unsafe fn CreateProcessWide(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, 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__ = std::mem::zeroed(); @@ -2929,31 +2929,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient5, windows_core::IUnknown); impl IDebugClient5 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -2963,10 +2963,10 @@ impl IDebugClient5 { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -2988,15 +2988,15 @@ impl IDebugClient5 { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -3013,30 +3013,30 @@ impl IDebugClient5 { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -3056,9 +3056,9 @@ impl IDebugClient5 { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3070,9 +3070,9 @@ impl IDebugClient5 { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3080,9 +3080,9 @@ impl IDebugClient5 { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3093,16 +3093,16 @@ impl IDebugClient5 { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -3116,18 +3116,18 @@ impl IDebugClient5 { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -3135,25 +3135,25 @@ impl IDebugClient5 { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteDumpFile2(&self, dumpfile: P0, qualifier: u32, formatflags: u32, comment: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.into_param().abi(), 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), server).ok() @@ -3175,10 +3175,10 @@ impl IDebugClient5 { } pub unsafe fn GetRunningProcessSystemIdByExecutableNameWide(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -3197,34 +3197,34 @@ impl IDebugClient5 { } pub unsafe fn CreateProcessWide(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, 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__ = std::mem::zeroed(); @@ -3238,43 +3238,43 @@ impl IDebugClient5 { } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptionsWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServerWide(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn StartServerWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServersWide(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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__ = std::mem::zeroed(); @@ -3282,27 +3282,27 @@ impl IDebugClient5 { } pub unsafe fn SetOutputCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputLinePrefixWide(&self, buffer: Option<&mut [u16]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefixWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetOutputLinePrefixWide(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentityWide(&self, buffer: Option<&mut [u16]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentityWide)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentityWide(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -3310,55 +3310,55 @@ impl IDebugClient5 { } pub unsafe fn SetEventCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn CreateProcess2(&self, server: u64, commandline: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PushOutputLinePrefixWide(&self, newprefix: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (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), handle).ok() @@ -3380,18 +3380,18 @@ impl IDebugClient5 { } pub unsafe fn SetQuitLockString(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } pub unsafe fn GetQuitLockStringWide(&self, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockStringWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetQuitLockStringWide(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } } #[repr(C)] @@ -3495,31 +3495,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient6, windows_core::IUnknown); impl IDebugClient6 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -3529,10 +3529,10 @@ impl IDebugClient6 { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -3554,15 +3554,15 @@ impl IDebugClient6 { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -3579,30 +3579,30 @@ impl IDebugClient6 { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -3622,9 +3622,9 @@ impl IDebugClient6 { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3636,9 +3636,9 @@ impl IDebugClient6 { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3646,9 +3646,9 @@ impl IDebugClient6 { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3659,16 +3659,16 @@ impl IDebugClient6 { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -3682,18 +3682,18 @@ impl IDebugClient6 { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -3701,25 +3701,25 @@ impl IDebugClient6 { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteDumpFile2(&self, dumpfile: P0, qualifier: u32, formatflags: u32, comment: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.into_param().abi(), 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), server).ok() @@ -3741,10 +3741,10 @@ impl IDebugClient6 { } pub unsafe fn GetRunningProcessSystemIdByExecutableNameWide(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -3763,34 +3763,34 @@ impl IDebugClient6 { } pub unsafe fn CreateProcessWide(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, 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__ = std::mem::zeroed(); @@ -3804,43 +3804,43 @@ impl IDebugClient6 { } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptionsWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServerWide(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn StartServerWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServersWide(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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__ = std::mem::zeroed(); @@ -3848,27 +3848,27 @@ impl IDebugClient6 { } pub unsafe fn SetOutputCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputLinePrefixWide(&self, buffer: Option<&mut [u16]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefixWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetOutputLinePrefixWide(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentityWide(&self, buffer: Option<&mut [u16]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentityWide)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentityWide(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -3876,55 +3876,55 @@ impl IDebugClient6 { } pub unsafe fn SetEventCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn CreateProcess2(&self, server: u64, commandline: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PushOutputLinePrefixWide(&self, newprefix: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (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), handle).ok() @@ -3946,24 +3946,24 @@ impl IDebugClient6 { } pub unsafe fn SetQuitLockString(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } pub unsafe fn GetQuitLockStringWide(&self, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockStringWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetQuitLockStringWide(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } pub unsafe fn SetEventContextCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventContextCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventContextCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } } #[repr(C)] @@ -4068,31 +4068,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient7, windows_core::IUnknown); impl IDebugClient7 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -4102,10 +4102,10 @@ impl IDebugClient7 { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -4127,15 +4127,15 @@ impl IDebugClient7 { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -4152,30 +4152,30 @@ impl IDebugClient7 { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -4195,9 +4195,9 @@ impl IDebugClient7 { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4209,9 +4209,9 @@ impl IDebugClient7 { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4219,9 +4219,9 @@ impl IDebugClient7 { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4232,16 +4232,16 @@ impl IDebugClient7 { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4255,18 +4255,18 @@ impl IDebugClient7 { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -4274,25 +4274,25 @@ impl IDebugClient7 { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteDumpFile2(&self, dumpfile: P0, qualifier: u32, formatflags: u32, comment: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.into_param().abi(), 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), server).ok() @@ -4314,10 +4314,10 @@ impl IDebugClient7 { } pub unsafe fn GetRunningProcessSystemIdByExecutableNameWide(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -4336,34 +4336,34 @@ impl IDebugClient7 { } pub unsafe fn CreateProcessWide(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, 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__ = std::mem::zeroed(); @@ -4377,43 +4377,43 @@ impl IDebugClient7 { } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptionsWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServerWide(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn StartServerWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServersWide(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4421,27 +4421,27 @@ impl IDebugClient7 { } pub unsafe fn SetOutputCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputLinePrefixWide(&self, buffer: Option<&mut [u16]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefixWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetOutputLinePrefixWide(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentityWide(&self, buffer: Option<&mut [u16]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentityWide)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentityWide(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -4449,55 +4449,55 @@ impl IDebugClient7 { } pub unsafe fn SetEventCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn CreateProcess2(&self, server: u64, commandline: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PushOutputLinePrefixWide(&self, newprefix: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (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), handle).ok() @@ -4519,24 +4519,24 @@ impl IDebugClient7 { } pub unsafe fn SetQuitLockString(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } pub unsafe fn GetQuitLockStringWide(&self, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockStringWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetQuitLockStringWide(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } pub unsafe fn SetEventContextCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventContextCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (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), context, contextsize).ok() @@ -4645,31 +4645,31 @@ windows_core::imp::interface_hierarchy!(IDebugClient8, windows_core::IUnknown); impl IDebugClient8 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernel)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptions(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptions)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServer(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServer)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServer(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServer)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (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), server).ok() @@ -4679,10 +4679,10 @@ impl IDebugClient8 { } pub unsafe fn GetRunningProcessSystemIdByExecutableName(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableName)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -4704,15 +4704,15 @@ impl IDebugClient8 { } pub unsafe fn CreateProcessA(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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__ = std::mem::zeroed(); @@ -4729,30 +4729,30 @@ impl IDebugClient8 { } pub unsafe fn OpenDumpFile(&self, dumpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenDumpFile)(windows_core::Interface::as_raw(self), dumpfile.param().abi()).ok() } pub unsafe fn WriteDumpFile(&self, dumpfile: P0, qualifier: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), 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), flags, historylimit).ok() } pub unsafe fn StartServer(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServer)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServers(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServers)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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() @@ -4772,9 +4772,9 @@ impl IDebugClient8 { } pub unsafe fn ExitDispatch(&self, client: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExitDispatch)(windows_core::Interface::as_raw(self), client.param().abi()).ok() } pub unsafe fn CreateClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4786,9 +4786,9 @@ impl IDebugClient8 { } pub unsafe fn SetInputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputCallbacks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4796,9 +4796,9 @@ impl IDebugClient8 { } pub unsafe fn SetOutputCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputMask(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4809,16 +4809,16 @@ impl IDebugClient8 { } pub unsafe fn GetOtherOutputMask(&self, client: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetOtherOutputMask)(windows_core::Interface::as_raw(self), client.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOtherOutputMask(&self, client: P0, mask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOtherOutputMask)(windows_core::Interface::as_raw(self), client.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4832,18 +4832,18 @@ impl IDebugClient8 { } pub unsafe fn SetOutputLinePrefix(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefix)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentity(&self, buffer: Option<&mut [u8]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentity)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentity(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentity)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -4851,25 +4851,25 @@ impl IDebugClient8 { } pub unsafe fn SetEventCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacks)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn FlushCallbacks(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FlushCallbacks)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WriteDumpFile2(&self, dumpfile: P0, qualifier: u32, formatflags: u32, comment: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFile2)(windows_core::Interface::as_raw(self), dumpfile.into_param().abi(), qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFile)(windows_core::Interface::as_raw(self), infofile.into_param().abi(), 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), server).ok() @@ -4891,10 +4891,10 @@ impl IDebugClient8 { } pub unsafe fn GetRunningProcessSystemIdByExecutableNameWide(&self, server: u64, exename: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRunningProcessSystemIdByExecutableNameWide)(windows_core::Interface::as_raw(self), server, exename.into_param().abi(), 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)( @@ -4913,34 +4913,34 @@ impl IDebugClient8 { } pub unsafe fn CreateProcessWide(&self, server: u64, commandline: P0, createflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), 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: P0, createflags: u32, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteDumpFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, qualifier, formatflags, comment.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDumpInformationFileWide)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, 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__ = std::mem::zeroed(); @@ -4954,43 +4954,43 @@ impl IDebugClient8 { } pub unsafe fn AttachKernelWide(&self, flags: u32, connectoptions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachKernelWide)(windows_core::Interface::as_raw(self), flags, connectoptions.into_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(std::ptr::null_mut()))).ok() } pub unsafe fn SetKernelConnectionOptionsWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKernelConnectionOptionsWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn StartProcessServerWide(&self, flags: u32, options: P0, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.into_param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProcessServerWide)(windows_core::Interface::as_raw(self), flags, options.param().abi(), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ConnectProcessServerWide(&self, remoteoptions: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ConnectProcessServerWide)(windows_core::Interface::as_raw(self), remoteoptions.param().abi(), &mut result__).map(|| result__) } pub unsafe fn StartServerWide(&self, options: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServerWide)(windows_core::Interface::as_raw(self), options.param().abi()).ok() } pub unsafe fn OutputServersWide(&self, outputcontrol: u32, machine: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputServersWide)(windows_core::Interface::as_raw(self), outputcontrol, machine.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4998,27 +4998,27 @@ impl IDebugClient8 { } pub unsafe fn SetOutputCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn GetOutputLinePrefixWide(&self, buffer: Option<&mut [u16]>, prefixsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOutputLinePrefixWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetOutputLinePrefixWide(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputLinePrefixWide)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn GetIdentityWide(&self, buffer: Option<&mut [u16]>, identitysize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetIdentityWide)(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(identitysize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn OutputIdentityWide(&self, outputcontrol: u32, flags: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputIdentityWide)(windows_core::Interface::as_raw(self), outputcontrol, flags, format.into_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__ = std::mem::zeroed(); @@ -5026,55 +5026,55 @@ impl IDebugClient8 { } pub unsafe fn SetEventCallbacksWide(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventCallbacksWide)(windows_core::Interface::as_raw(self), callbacks.param().abi()).ok() } pub unsafe fn CreateProcess2(&self, server: u64, commandline: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcess2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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: P0, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: P1, environment: P2, processid: u32, attachflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessAndAttach2Wide)(windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), optionsbuffer, optionsbuffersize, initialdirectory.into_param().abi(), environment.into_param().abi(), processid, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PushOutputLinePrefix)(windows_core::Interface::as_raw(self), newprefix.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PushOutputLinePrefixWide(&self, newprefix: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PushOutputLinePrefixWide)(windows_core::Interface::as_raw(self), newprefix.into_param().abi(), &mut result__).map(|| result__) + (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), handle).ok() @@ -5096,33 +5096,33 @@ impl IDebugClient8 { } pub unsafe fn SetQuitLockString(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockString)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } pub unsafe fn GetQuitLockStringWide(&self, buffer: Option<&mut [u16]>, stringsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetQuitLockStringWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetQuitLockStringWide(&self, string: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuitLockStringWide)(windows_core::Interface::as_raw(self), string.param().abi()).ok() } pub unsafe fn SetEventContextCallbacks(&self, callbacks: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventContextCallbacks)(windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() + (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), context, contextsize).ok() } pub unsafe fn OpenDumpFileWide2(&self, filename: P0, filehandle: u64, alternatearch: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDumpFileWide2)(windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, alternatearch).ok() + (windows_core::Interface::vtable(self).OpenDumpFileWide2)(windows_core::Interface::as_raw(self), filename.param().abi(), filehandle, alternatearch).ok() } } #[repr(C)] @@ -5245,10 +5245,10 @@ impl IDebugControl { } pub unsafe fn OpenLogFile(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn CloseLogFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLogFile)(windows_core::Interface::as_raw(self)).ok() @@ -5265,45 +5265,45 @@ impl IDebugControl { } pub unsafe fn ReturnInput(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn Output(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() @@ -5323,10 +5323,10 @@ impl IDebugControl { } pub unsafe fn Assemble(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -5469,9 +5469,9 @@ impl IDebugControl { } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.into_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__ = std::mem::zeroed(); @@ -5482,9 +5482,9 @@ impl IDebugControl { } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).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), r#in, outtype, out).ok() @@ -5494,15 +5494,15 @@ impl IDebugControl { } pub unsafe fn Execute(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -5525,39 +5525,39 @@ impl IDebugControl { } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtension(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtension(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -5578,9 +5578,9 @@ impl IDebugControl { } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.into_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), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() @@ -5593,9 +5593,9 @@ impl IDebugControl { } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.into_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), count, core::mem::transmute(codes.unwrap_or(std::ptr::null())), start, params).ok() @@ -5608,9 +5608,9 @@ impl IDebugControl { } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.into_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), flags, timeout).ok() @@ -5742,10 +5742,10 @@ impl IDebugControl2 { } pub unsafe fn OpenLogFile(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn CloseLogFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLogFile)(windows_core::Interface::as_raw(self)).ok() @@ -5762,45 +5762,45 @@ impl IDebugControl2 { } pub unsafe fn ReturnInput(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn Output(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() @@ -5820,10 +5820,10 @@ impl IDebugControl2 { } pub unsafe fn Assemble(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -5966,9 +5966,9 @@ impl IDebugControl2 { } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.into_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__ = std::mem::zeroed(); @@ -5979,9 +5979,9 @@ impl IDebugControl2 { } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).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), r#in, outtype, out).ok() @@ -5991,15 +5991,15 @@ impl IDebugControl2 { } pub unsafe fn Execute(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -6022,39 +6022,39 @@ impl IDebugControl2 { } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtension(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtension(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -6075,9 +6075,9 @@ impl IDebugControl2 { } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.into_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), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() @@ -6090,9 +6090,9 @@ impl IDebugControl2 { } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.into_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), count, core::mem::transmute(codes.unwrap_or(std::ptr::null())), start, params).ok() @@ -6105,9 +6105,9 @@ impl IDebugControl2 { } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.into_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), flags, timeout).ok() @@ -6133,11 +6133,11 @@ impl IDebugControl2 { } pub unsafe fn GetTextReplacement(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u8]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u8]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -6150,10 +6150,10 @@ impl IDebugControl2 { } pub unsafe fn SetTextReplacement(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn RemoveTextReplacements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() @@ -6293,10 +6293,10 @@ impl IDebugControl3 { } pub unsafe fn OpenLogFile(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn CloseLogFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLogFile)(windows_core::Interface::as_raw(self)).ok() @@ -6313,45 +6313,45 @@ impl IDebugControl3 { } pub unsafe fn ReturnInput(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn Output(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() @@ -6371,10 +6371,10 @@ impl IDebugControl3 { } pub unsafe fn Assemble(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -6517,9 +6517,9 @@ impl IDebugControl3 { } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.into_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__ = std::mem::zeroed(); @@ -6530,9 +6530,9 @@ impl IDebugControl3 { } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).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), r#in, outtype, out).ok() @@ -6542,15 +6542,15 @@ impl IDebugControl3 { } pub unsafe fn Execute(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -6573,39 +6573,39 @@ impl IDebugControl3 { } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtension(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtension(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -6626,9 +6626,9 @@ impl IDebugControl3 { } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.into_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), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() @@ -6641,9 +6641,9 @@ impl IDebugControl3 { } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.into_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), count, core::mem::transmute(codes.unwrap_or(std::ptr::null())), start, params).ok() @@ -6656,9 +6656,9 @@ impl IDebugControl3 { } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.into_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), flags, timeout).ok() @@ -6684,11 +6684,11 @@ impl IDebugControl3 { } pub unsafe fn GetTextReplacement(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u8]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u8]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -6701,10 +6701,10 @@ impl IDebugControl3 { } pub unsafe fn SetTextReplacement(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn RemoveTextReplacements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() @@ -6734,9 +6734,9 @@ impl IDebugControl3 { } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } pub unsafe fn GetNumberExpressionSyntaxes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6761,9 +6761,9 @@ impl IDebugControl3 { } pub unsafe fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6918,10 +6918,10 @@ impl IDebugControl4 { } pub unsafe fn OpenLogFile(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn CloseLogFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLogFile)(windows_core::Interface::as_raw(self)).ok() @@ -6938,45 +6938,45 @@ impl IDebugControl4 { } pub unsafe fn ReturnInput(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn Output(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() @@ -6996,10 +6996,10 @@ impl IDebugControl4 { } pub unsafe fn Assemble(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -7142,9 +7142,9 @@ impl IDebugControl4 { } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.into_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__ = std::mem::zeroed(); @@ -7155,9 +7155,9 @@ impl IDebugControl4 { } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).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), r#in, outtype, out).ok() @@ -7167,15 +7167,15 @@ impl IDebugControl4 { } pub unsafe fn Execute(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -7198,39 +7198,39 @@ impl IDebugControl4 { } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtension(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtension(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -7251,9 +7251,9 @@ impl IDebugControl4 { } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.into_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), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() @@ -7266,9 +7266,9 @@ impl IDebugControl4 { } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.into_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), count, core::mem::transmute(codes.unwrap_or(std::ptr::null())), start, params).ok() @@ -7281,9 +7281,9 @@ impl IDebugControl4 { } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.into_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), flags, timeout).ok() @@ -7309,11 +7309,11 @@ impl IDebugControl4 { } pub unsafe fn GetTextReplacement(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u8]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u8]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -7326,10 +7326,10 @@ impl IDebugControl4 { } pub unsafe fn SetTextReplacement(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn RemoveTextReplacements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() @@ -7359,9 +7359,9 @@ impl IDebugControl4 { } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } pub unsafe fn GetNumberExpressionSyntaxes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7386,9 +7386,9 @@ impl IDebugControl4 { } pub unsafe fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7403,65 +7403,65 @@ impl IDebugControl4 { } pub unsafe fn OpenLogFileWide(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn InputWide(&self, buffer: &mut [u16], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReturnInputWide(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn OutputWide(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() } pub unsafe fn AssembleWide(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -7484,27 +7484,27 @@ impl IDebugControl4 { } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -7520,36 +7520,36 @@ impl IDebugControl4 { } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtensionWide(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtensionWide(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } 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), 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(std::ptr::null_mut()))).ok() @@ -7559,38 +7559,38 @@ impl IDebugControl4 { } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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)(windows_core::Interface::as_raw(self), r#type, processid, threadid, core::mem::transmute(extrainformation.unwrap_or(std::ptr::null_mut())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(std::ptr::null_mut())), 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()), core::mem::transmute(descriptionused.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetTextReplacementWide(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u16]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u16]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -7603,16 +7603,16 @@ impl IDebugControl4 { } pub unsafe fn SetTextReplacementWide(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn SetExpressionSyntaxByNameWide(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } 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)( @@ -7629,27 +7629,27 @@ impl IDebugControl4 { } pub unsafe fn GetEventIndexDescriptionWide(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2Wide(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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), platformid, win32major, win32minor, core::mem::transmute(kdmajor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(kdminor.unwrap_or(std::ptr::null_mut()))).ok() @@ -7876,10 +7876,10 @@ impl IDebugControl5 { } pub unsafe fn OpenLogFile(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn CloseLogFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLogFile)(windows_core::Interface::as_raw(self)).ok() @@ -7896,45 +7896,45 @@ impl IDebugControl5 { } pub unsafe fn ReturnInput(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn Output(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() @@ -7954,10 +7954,10 @@ impl IDebugControl5 { } pub unsafe fn Assemble(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -8100,9 +8100,9 @@ impl IDebugControl5 { } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.into_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__ = std::mem::zeroed(); @@ -8113,9 +8113,9 @@ impl IDebugControl5 { } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).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), r#in, outtype, out).ok() @@ -8125,15 +8125,15 @@ impl IDebugControl5 { } pub unsafe fn Execute(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -8156,39 +8156,39 @@ impl IDebugControl5 { } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtension(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtension(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -8209,9 +8209,9 @@ impl IDebugControl5 { } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.into_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), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() @@ -8224,9 +8224,9 @@ impl IDebugControl5 { } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.into_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), count, core::mem::transmute(codes.unwrap_or(std::ptr::null())), start, params).ok() @@ -8239,9 +8239,9 @@ impl IDebugControl5 { } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.into_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), flags, timeout).ok() @@ -8267,11 +8267,11 @@ impl IDebugControl5 { } pub unsafe fn GetTextReplacement(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u8]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u8]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -8284,10 +8284,10 @@ impl IDebugControl5 { } pub unsafe fn SetTextReplacement(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn RemoveTextReplacements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() @@ -8317,9 +8317,9 @@ impl IDebugControl5 { } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } pub unsafe fn GetNumberExpressionSyntaxes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8344,9 +8344,9 @@ impl IDebugControl5 { } pub unsafe fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8361,65 +8361,65 @@ impl IDebugControl5 { } pub unsafe fn OpenLogFileWide(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn InputWide(&self, buffer: &mut [u16], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReturnInputWide(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn OutputWide(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() } pub unsafe fn AssembleWide(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -8442,27 +8442,27 @@ impl IDebugControl5 { } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -8478,36 +8478,36 @@ impl IDebugControl5 { } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtensionWide(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtensionWide(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } 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), 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(std::ptr::null_mut()))).ok() @@ -8517,38 +8517,38 @@ impl IDebugControl5 { } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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)(windows_core::Interface::as_raw(self), r#type, processid, threadid, core::mem::transmute(extrainformation.unwrap_or(std::ptr::null_mut())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(std::ptr::null_mut())), 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()), core::mem::transmute(descriptionused.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetTextReplacementWide(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u16]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u16]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -8561,16 +8561,16 @@ impl IDebugControl5 { } pub unsafe fn SetTextReplacementWide(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn SetExpressionSyntaxByNameWide(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } 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)( @@ -8587,27 +8587,27 @@ impl IDebugControl5 { } pub unsafe fn GetEventIndexDescriptionWide(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2Wide(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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), platformid, win32major, win32minor, core::mem::transmute(kdmajor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(kdminor.unwrap_or(std::ptr::null_mut()))).ok() @@ -8855,10 +8855,10 @@ impl IDebugControl6 { } pub unsafe fn OpenLogFile(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn CloseLogFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLogFile)(windows_core::Interface::as_raw(self)).ok() @@ -8875,45 +8875,45 @@ impl IDebugControl6 { } pub unsafe fn ReturnInput(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn Output(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() @@ -8933,10 +8933,10 @@ impl IDebugControl6 { } pub unsafe fn Assemble(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -9079,9 +9079,9 @@ impl IDebugControl6 { } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.into_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__ = std::mem::zeroed(); @@ -9092,9 +9092,9 @@ impl IDebugControl6 { } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).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), r#in, outtype, out).ok() @@ -9104,15 +9104,15 @@ impl IDebugControl6 { } pub unsafe fn Execute(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -9135,39 +9135,39 @@ impl IDebugControl6 { } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtension(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtension(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -9188,9 +9188,9 @@ impl IDebugControl6 { } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.into_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), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() @@ -9203,9 +9203,9 @@ impl IDebugControl6 { } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.into_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), count, core::mem::transmute(codes.unwrap_or(std::ptr::null())), start, params).ok() @@ -9218,9 +9218,9 @@ impl IDebugControl6 { } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.into_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), flags, timeout).ok() @@ -9246,11 +9246,11 @@ impl IDebugControl6 { } pub unsafe fn GetTextReplacement(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u8]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u8]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -9263,10 +9263,10 @@ impl IDebugControl6 { } pub unsafe fn SetTextReplacement(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn RemoveTextReplacements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() @@ -9296,9 +9296,9 @@ impl IDebugControl6 { } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } pub unsafe fn GetNumberExpressionSyntaxes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9323,9 +9323,9 @@ impl IDebugControl6 { } pub unsafe fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9340,65 +9340,65 @@ impl IDebugControl6 { } pub unsafe fn OpenLogFileWide(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn InputWide(&self, buffer: &mut [u16], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReturnInputWide(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn OutputWide(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() } pub unsafe fn AssembleWide(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -9421,27 +9421,27 @@ impl IDebugControl6 { } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -9457,36 +9457,36 @@ impl IDebugControl6 { } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtensionWide(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtensionWide(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } 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), 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(std::ptr::null_mut()))).ok() @@ -9496,38 +9496,38 @@ impl IDebugControl6 { } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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)(windows_core::Interface::as_raw(self), r#type, processid, threadid, core::mem::transmute(extrainformation.unwrap_or(std::ptr::null_mut())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(std::ptr::null_mut())), 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()), core::mem::transmute(descriptionused.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetTextReplacementWide(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u16]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u16]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -9540,16 +9540,16 @@ impl IDebugControl6 { } pub unsafe fn SetTextReplacementWide(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn SetExpressionSyntaxByNameWide(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } 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)( @@ -9566,27 +9566,27 @@ impl IDebugControl6 { } pub unsafe fn GetEventIndexDescriptionWide(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2Wide(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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), platformid, win32major, win32minor, core::mem::transmute(kdmajor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(kdminor.unwrap_or(std::ptr::null_mut()))).ok() @@ -9843,10 +9843,10 @@ impl IDebugControl7 { } pub unsafe fn OpenLogFile(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFile)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn CloseLogFile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseLogFile)(windows_core::Interface::as_raw(self)).ok() @@ -9863,45 +9863,45 @@ impl IDebugControl7 { } pub unsafe fn ReturnInput(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInput)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn Output(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaList)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutput)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaList)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPrompt)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaList)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() @@ -9921,10 +9921,10 @@ impl IDebugControl7 { } pub unsafe fn Assemble(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Assemble)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -10067,9 +10067,9 @@ impl IDebugControl7 { } pub unsafe fn SetTextMacro(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacro)(windows_core::Interface::as_raw(self), slot, r#macro.into_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__ = std::mem::zeroed(); @@ -10080,9 +10080,9 @@ impl IDebugControl7 { } pub unsafe fn Evaluate(&self, expression: P0, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Evaluate)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).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), r#in, outtype, out).ok() @@ -10092,15 +10092,15 @@ impl IDebugControl7 { } pub unsafe fn Execute(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFile)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -10123,39 +10123,39 @@ impl IDebugControl7 { } pub unsafe fn RemoveBreakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtension(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtension)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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), handle).ok() } pub unsafe fn GetExtensionByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtension(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtension)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunction)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } #[cfg(feature = "Win32_System_Kernel")] pub unsafe fn GetWindbgExtensionApis32(&self, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::Result<()> { @@ -10176,9 +10176,9 @@ impl IDebugControl7 { } pub unsafe fn SetEventFilterCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommand)(windows_core::Interface::as_raw(self), index, command.into_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), start, params.len().try_into().unwrap(), core::mem::transmute(params.as_ptr())).ok() @@ -10191,9 +10191,9 @@ impl IDebugControl7 { } pub unsafe fn SetSpecificFilterArgument(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgument)(windows_core::Interface::as_raw(self), index, argument.into_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), count, core::mem::transmute(codes.unwrap_or(std::ptr::null())), start, params).ok() @@ -10206,9 +10206,9 @@ impl IDebugControl7 { } pub unsafe fn SetExceptionFilterSecondCommand(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommand)(windows_core::Interface::as_raw(self), index, command.into_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), flags, timeout).ok() @@ -10234,11 +10234,11 @@ impl IDebugControl7 { } pub unsafe fn GetTextReplacement(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u8]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u8]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacement)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -10251,10 +10251,10 @@ impl IDebugControl7 { } pub unsafe fn SetTextReplacement(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacement)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn RemoveTextReplacements(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveTextReplacements)(windows_core::Interface::as_raw(self)).ok() @@ -10284,9 +10284,9 @@ impl IDebugControl7 { } pub unsafe fn SetExpressionSyntaxByName(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByName)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } pub unsafe fn GetNumberExpressionSyntaxes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10311,9 +10311,9 @@ impl IDebugControl7 { } pub unsafe fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescription)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetCurrentEventIndex(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10328,65 +10328,65 @@ impl IDebugControl7 { } pub unsafe fn OpenLogFileWide(&self, file: P0, append: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.into_param().abi(), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenLogFileWide)(windows_core::Interface::as_raw(self), file.param().abi(), append.param().abi()).ok() } pub unsafe fn InputWide(&self, buffer: &mut [u16], inputsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InputWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), core::mem::transmute(inputsize.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReturnInputWide(&self, buffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReturnInputWide)(windows_core::Interface::as_raw(self), buffer.param().abi()).ok() } pub unsafe fn OutputWide(&self, mask: u32, format: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputWide)(windows_core::Interface::as_raw(self), mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputVaListWide)(windows_core::Interface::as_raw(self), mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlledOutputVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, mask, format.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_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: P0, args: *const i8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputPromptVaListWide)(windows_core::Interface::as_raw(self), outputcontrol, format.into_param().abi(), 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(std::ptr::null_mut()))).ok() } pub unsafe fn AssembleWide(&self, offset: u64, instr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssembleWide)(windows_core::Interface::as_raw(self), offset, instr.into_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), 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(std::ptr::null_mut())), endoffset).ok() @@ -10409,27 +10409,27 @@ impl IDebugControl7 { } pub unsafe fn SetTextMacroWide(&self, slot: u32, r#macro: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextMacroWide)(windows_core::Interface::as_raw(self), slot, r#macro.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.into_param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EvaluateWide)(windows_core::Interface::as_raw(self), expression.param().abi(), desiredtype, value, core::mem::transmute(remainderindex.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ExecuteWide(&self, outputcontrol: u32, command: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteWide)(windows_core::Interface::as_raw(self), outputcontrol, command.into_param().abi(), 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: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteCommandFileWide)(windows_core::Interface::as_raw(self), outputcontrol, commandfile.into_param().abi(), 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__ = std::mem::zeroed(); @@ -10445,36 +10445,36 @@ impl IDebugControl7 { } pub unsafe fn RemoveBreakpoint2(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBreakpoint2)(windows_core::Interface::as_raw(self), bp.param().abi()).ok() } pub unsafe fn AddExtensionWide(&self, path: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddExtensionWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExtensionByPathWide)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CallExtensionWide(&self, handle: u64, function: P0, arguments: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallExtensionWide)(windows_core::Interface::as_raw(self), handle, function.into_param().abi(), arguments.into_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: P0, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.into_param().abi(), function).ok() + (windows_core::Interface::vtable(self).GetExtensionFunctionWide)(windows_core::Interface::as_raw(self), handle, funcname.param().abi(), function).ok() } 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), 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(std::ptr::null_mut()))).ok() @@ -10484,38 +10484,38 @@ impl IDebugControl7 { } pub unsafe fn SetEventFilterCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventFilterCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSpecificFilterArgumentWide(&self, index: u32, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpecificFilterArgumentWide)(windows_core::Interface::as_raw(self), index, argument.into_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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn SetExceptionFilterSecondCommandWide(&self, index: u32, command: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExceptionFilterSecondCommandWide)(windows_core::Interface::as_raw(self), index, command.into_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)(windows_core::Interface::as_raw(self), r#type, processid, threadid, core::mem::transmute(extrainformation.unwrap_or(std::ptr::null_mut())), extrainformationsize, core::mem::transmute(extrainformationused.unwrap_or(std::ptr::null_mut())), 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()), core::mem::transmute(descriptionused.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetTextReplacementWide(&self, srctext: P0, index: u32, srcbuffer: Option<&mut [u16]>, srcsize: Option<*mut u32>, dstbuffer: Option<&mut [u16]>, dstsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).GetTextReplacementWide)( windows_core::Interface::as_raw(self), - srctext.into_param().abi(), + srctext.param().abi(), 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()), @@ -10528,16 +10528,16 @@ impl IDebugControl7 { } pub unsafe fn SetTextReplacementWide(&self, srctext: P0, dsttext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.into_param().abi(), dsttext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextReplacementWide)(windows_core::Interface::as_raw(self), srctext.param().abi(), dsttext.param().abi()).ok() } pub unsafe fn SetExpressionSyntaxByNameWide(&self, abbrevname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpressionSyntaxByNameWide)(windows_core::Interface::as_raw(self), abbrevname.param().abi()).ok() } 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)( @@ -10554,27 +10554,27 @@ impl IDebugControl7 { } pub unsafe fn GetEventIndexDescriptionWide(&self, index: u32, which: u32, buffer: P0, buffersize: u32, descsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventIndexDescriptionWide)(windows_core::Interface::as_raw(self), index, which, buffer.into_param().abi(), buffersize, core::mem::transmute(descsize.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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(std::ptr::null_mut())), flags).ok() } pub unsafe fn OpenLogFile2Wide(&self, file: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenLogFile2Wide)(windows_core::Interface::as_raw(self), file.into_param().abi(), 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), platformid, win32major, win32minor, core::mem::transmute(kdmajor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(kdminor.unwrap_or(std::ptr::null_mut()))).ok() @@ -11362,9 +11362,9 @@ impl IDebugEventCallbacks { } pub unsafe fn Breakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Breakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (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), exception, firstchance).ok() @@ -11377,26 +11377,26 @@ impl IDebugEventCallbacks { } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, 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), exitcode).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.into_param().abi(), 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), error, level).ok() @@ -11441,9 +11441,9 @@ impl IDebugEventCallbacksWide { } pub unsafe fn Breakpoint(&self, bp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Breakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi()).ok() + (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), exception, firstchance).ok() @@ -11456,26 +11456,26 @@ impl IDebugEventCallbacksWide { } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, 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), exitcode).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.into_param().abi(), 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), error, level).ok() @@ -11520,9 +11520,9 @@ impl IDebugEventContextCallbacks { } pub unsafe fn Breakpoint(&self, bp: P0, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Breakpoint)(windows_core::Interface::as_raw(self), bp.into_param().abi(), context, 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), exception, firstchance, context, contextsize).ok() @@ -11535,26 +11535,26 @@ impl IDebugEventContextCallbacks { } pub unsafe fn CreateProcessA(&self, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateProcessA)(windows_core::Interface::as_raw(self), imagefilehandle, handle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp, initialthreadhandle, threaddataoffset, startoffset, context, 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), exitcode, context, contextsize).ok() } pub unsafe fn LoadModule(&self, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: P0, imagename: P1, checksum: u32, timedatestamp: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), imagefilehandle, baseoffset, modulesize, modulename.into_param().abi(), imagename.into_param().abi(), checksum, timedatestamp, context, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnloadModule)(windows_core::Interface::as_raw(self), imagebasename.into_param().abi(), baseoffset, context, 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), error, level, context, contextsize).ok() @@ -11603,18 +11603,18 @@ impl IDebugFAEntryTags { } pub unsafe fn SetProperties(&self, tag: DEBUG_FLR_PARAM_TYPE, name: P0, description: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), tag, name.into_param().abi(), description.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), tag, name.param().abi(), description.param().abi(), flags).ok() } pub unsafe fn GetTagByName(&self, pluginid: P0, tagname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTagByName)(windows_core::Interface::as_raw(self), pluginid.into_param().abi(), tagname.into_param().abi(), &mut result__).map(|| result__) + (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), tag) @@ -11712,15 +11712,15 @@ impl IDebugFailureAnalysis2 { } pub unsafe fn SetString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), tag, str.into_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: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.into_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), tag, value) @@ -11733,15 +11733,15 @@ impl IDebugFailureAnalysis2 { } pub unsafe fn AddString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), tag, str.into_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: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.into_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), tag, value) @@ -11763,9 +11763,9 @@ impl IDebugFailureAnalysis2 { } pub unsafe fn AddStructuredAnalysisData(&self, tag: DEBUG_FLR_PARAM_TYPE, analysis: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructuredAnalysisData)(windows_core::Interface::as_raw(self), tag, analysis.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddStructuredAnalysisData)(windows_core::Interface::as_raw(self), tag, analysis.param().abi()).ok() } } #[repr(C)] @@ -11833,15 +11833,15 @@ impl IDebugFailureAnalysis3 { } pub unsafe fn SetString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetString)(windows_core::Interface::as_raw(self), tag, str.into_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: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.into_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), tag, value) @@ -11854,15 +11854,15 @@ impl IDebugFailureAnalysis3 { } pub unsafe fn AddString(&self, tag: DEBUG_FLR_PARAM_TYPE, str: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), tag, str.into_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: P0) -> *mut FA_ENTRY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddExtensionCommand)(windows_core::Interface::as_raw(self), tag, extension.into_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), tag, value) @@ -11884,15 +11884,15 @@ impl IDebugFailureAnalysis3 { } pub unsafe fn AddStructuredAnalysisData(&self, tag: DEBUG_FLR_PARAM_TYPE, analysis: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructuredAnalysisData)(windows_core::Interface::as_raw(self), tag, analysis.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddThreads)(windows_core::Interface::as_raw(self), pdebugfailurethreadenum.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddThreads)(windows_core::Interface::as_raw(self), pdebugfailurethreadenum.param().abi()).ok() } pub unsafe fn AttributeGet(&self, nindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11904,34 +11904,34 @@ impl IDebugFailureAnalysis3 { } pub unsafe fn AttributeSet(&self, nindex: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttributeSet)(windows_core::Interface::as_raw(self), nindex, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AttributeSet)(windows_core::Interface::as_raw(self), nindex, value.param().abi()).ok() } pub unsafe fn BlameApplication(&self, postfix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlameApplication)(windows_core::Interface::as_raw(self), postfix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BlameApplication)(windows_core::Interface::as_raw(self), postfix.param().abi()).ok() } pub unsafe fn BlameProcess(&self, postfix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlameProcess)(windows_core::Interface::as_raw(self), postfix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BlameProcess)(windows_core::Interface::as_raw(self), postfix.param().abi()).ok() } pub unsafe fn BlameThread(&self, pthread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BlameThread)(windows_core::Interface::as_raw(self), pthread.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BlameThread)(windows_core::Interface::as_raw(self), pthread.param().abi()).ok() } pub unsafe fn BlameStitch(&self, pthread: P0, stitch: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BlameStitch)(windows_core::Interface::as_raw(self), pthread.into_param().abi(), stitch.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BlameStitch)(windows_core::Interface::as_raw(self), pthread.param().abi(), stitch.param().abi()).ok() } pub unsafe fn BlameTEB(&self, address: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BlameTEB)(windows_core::Interface::as_raw(self), address).ok() @@ -11951,29 +11951,29 @@ impl IDebugFailureAnalysis3 { } pub unsafe fn ProblemClassSetBSTR(&self, nindex: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProblemClassSetBSTR)(windows_core::Interface::as_raw(self), nindex, value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProblemClassSetBSTR)(windows_core::Interface::as_raw(self), nindex, value.param().abi()).ok() } pub unsafe fn SetAdditionalXML(&self, key: P0, pxmldomelement: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdditionalXML)(windows_core::Interface::as_raw(self), key.into_param().abi(), pxmldomelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAdditionalXML)(windows_core::Interface::as_raw(self), key.param().abi(), pxmldomelement.param().abi()).ok() } pub unsafe fn GetAdditionalXML(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAdditionalXML)(windows_core::Interface::as_raw(self), key.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAdditionalXML)(windows_core::Interface::as_raw(self), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteAdditionalXML(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAdditionalXML)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAdditionalXML)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } } #[repr(C)] @@ -12055,10 +12055,10 @@ impl IDebugHostBaseClass { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12078,10 +12078,10 @@ impl IDebugHostBaseClass { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetOffset(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12102,10 +12102,10 @@ impl IDebugHostConstant { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12125,10 +12125,10 @@ impl IDebugHostConstant { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12145,10 +12145,10 @@ windows_core::imp::interface_hierarchy!(IDebugHostContext, windows_core::IUnknow impl IDebugHostContext { pub unsafe fn IsEqualTo(&self, pcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualTo)(windows_core::Interface::as_raw(self), pcontext.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqualTo)(windows_core::Interface::as_raw(self), pcontext.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -12165,10 +12165,10 @@ impl IDebugHostData { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12188,10 +12188,10 @@ impl IDebugHostData { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetLocationKind(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12218,9 +12218,9 @@ windows_core::imp::interface_hierarchy!(IDebugHostErrorSink, windows_core::IUnkn impl IDebugHostErrorSink { pub unsafe fn ReportError(&self, errclass: ErrorClass, hrerror: windows_core::HRESULT, message: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errclass, hrerror, message.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReportError)(windows_core::Interface::as_raw(self), errclass, hrerror, message.param().abi()).ok() } } #[repr(C)] @@ -12233,19 +12233,19 @@ windows_core::imp::interface_hierarchy!(IDebugHostEvaluator, windows_core::IUnkn impl IDebugHostEvaluator { pub unsafe fn EvaluateExpression(&self, context: P0, expression: P1, bindingcontext: P2, result: *mut Option, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateExpression)(windows_core::Interface::as_raw(self), context.into_param().abi(), expression.into_param().abi(), bindingcontext.into_param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EvaluateExpression)(windows_core::Interface::as_raw(self), context.param().abi(), expression.param().abi(), bindingcontext.param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn EvaluateExtendedExpression(&self, context: P0, expression: P1, bindingcontext: P2, result: *mut Option, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateExtendedExpression)(windows_core::Interface::as_raw(self), context.into_param().abi(), expression.into_param().abi(), bindingcontext.into_param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).EvaluateExtendedExpression)(windows_core::Interface::as_raw(self), context.param().abi(), expression.param().abi(), bindingcontext.param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -12259,26 +12259,26 @@ windows_core::imp::interface_hierarchy!(IDebugHostEvaluator2, windows_core::IUnk impl IDebugHostEvaluator2 { pub unsafe fn EvaluateExpression(&self, context: P0, expression: P1, bindingcontext: P2, result: *mut Option, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EvaluateExpression)(windows_core::Interface::as_raw(self), context.into_param().abi(), expression.into_param().abi(), bindingcontext.into_param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.EvaluateExpression)(windows_core::Interface::as_raw(self), context.param().abi(), expression.param().abi(), bindingcontext.param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn EvaluateExtendedExpression(&self, context: P0, expression: P1, bindingcontext: P2, result: *mut Option, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EvaluateExtendedExpression)(windows_core::Interface::as_raw(self), context.into_param().abi(), expression.into_param().abi(), bindingcontext.into_param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.EvaluateExtendedExpression)(windows_core::Interface::as_raw(self), context.param().abi(), expression.param().abi(), bindingcontext.param().abi(), core::mem::transmute(result), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AssignTo(&self, assignmentreference: P0, assignmentvalue: P1, assignmentresult: *mut Option, assignmentmetadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AssignTo)(windows_core::Interface::as_raw(self), assignmentreference.into_param().abi(), assignmentvalue.into_param().abi(), core::mem::transmute(assignmentresult), core::mem::transmute(assignmentmetadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).AssignTo)(windows_core::Interface::as_raw(self), assignmentreference.param().abi(), assignmentvalue.param().abi(), core::mem::transmute(assignmentresult), core::mem::transmute(assignmentmetadata.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -12291,16 +12291,16 @@ windows_core::imp::interface_hierarchy!(IDebugHostExtensibility, windows_core::I impl IDebugHostExtensibility { pub unsafe fn CreateFunctionAlias(&self, aliasname: P0, functionobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateFunctionAlias)(windows_core::Interface::as_raw(self), aliasname.into_param().abi(), functionobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateFunctionAlias)(windows_core::Interface::as_raw(self), aliasname.param().abi(), functionobject.param().abi()).ok() } pub unsafe fn DestroyFunctionAlias(&self, aliasname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroyFunctionAlias)(windows_core::Interface::as_raw(self), aliasname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroyFunctionAlias)(windows_core::Interface::as_raw(self), aliasname.param().abi()).ok() } } #[repr(C)] @@ -12318,10 +12318,10 @@ impl IDebugHostField { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12341,10 +12341,10 @@ impl IDebugHostField { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetLocationKind(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12376,34 +12376,34 @@ windows_core::imp::interface_hierarchy!(IDebugHostMemory, windows_core::IUnknown impl IDebugHostMemory { pub unsafe fn ReadBytes(&self, context: P0, location: Location, buffer: *mut core::ffi::c_void, buffersize: u64, bytesread: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadBytes)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).ReadBytes)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteBytes)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn ReadPointers(&self, context: P0, location: Location, pointers: &mut [u64]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadPointers)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() + (windows_core::Interface::vtable(self).ReadPointers)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() } pub unsafe fn WritePointers(&self, context: P0, location: Location, pointers: &[u64]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WritePointers)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() + (windows_core::Interface::vtable(self).WritePointers)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() } pub unsafe fn GetDisplayStringForLocation(&self, context: P0, location: Location, verbose: u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDisplayStringForLocation)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), verbose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDisplayStringForLocation)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), verbose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12420,41 +12420,41 @@ windows_core::imp::interface_hierarchy!(IDebugHostMemory2, windows_core::IUnknow impl IDebugHostMemory2 { pub unsafe fn ReadBytes(&self, context: P0, location: Location, buffer: *mut core::ffi::c_void, buffersize: u64, bytesread: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReadBytes)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.ReadBytes)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(bytesread.unwrap_or(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WriteBytes)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.WriteBytes)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), buffer, buffersize, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReadPointers(&self, context: P0, location: Location, pointers: &mut [u64]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReadPointers)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.ReadPointers)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() } pub unsafe fn WritePointers(&self, context: P0, location: Location, pointers: &[u64]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WritePointers)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.WritePointers)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), pointers.len().try_into().unwrap(), core::mem::transmute(pointers.as_ptr())).ok() } pub unsafe fn GetDisplayStringForLocation(&self, context: P0, location: Location, verbose: u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDisplayStringForLocation)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), verbose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetDisplayStringForLocation)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), verbose, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LinearizeLocation(&self, context: P0, location: Location) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LinearizeLocation)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(location), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LinearizeLocation)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(location), &mut result__).map(|| result__) } } #[repr(C)] @@ -12471,10 +12471,10 @@ impl IDebugHostModule { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12494,10 +12494,10 @@ impl IDebugHostModule { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetImageName(&self, allowpath: u8) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12512,10 +12512,10 @@ impl IDebugHostModule { } pub unsafe fn FindTypeByName(&self, typename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTypeByName)(windows_core::Interface::as_raw(self), typename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindTypeByName)(windows_core::Interface::as_raw(self), typename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindSymbolByRVA(&self, rva: u64) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12523,10 +12523,10 @@ impl IDebugHostModule { } pub unsafe fn FindSymbolByName(&self, symbolname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindSymbolByName)(windows_core::Interface::as_raw(self), symbolname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindSymbolByName)(windows_core::Interface::as_raw(self), symbolname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12548,10 +12548,10 @@ impl IDebugHostModule2 { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -12571,10 +12571,10 @@ impl IDebugHostModule2 { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetImageName(&self, allowpath: u8) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12589,10 +12589,10 @@ impl IDebugHostModule2 { } pub unsafe fn FindTypeByName(&self, typename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindTypeByName)(windows_core::Interface::as_raw(self), typename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindTypeByName)(windows_core::Interface::as_raw(self), typename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindSymbolByRVA(&self, rva: u64) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12600,10 +12600,10 @@ impl IDebugHostModule2 { } pub unsafe fn FindSymbolByName(&self, symbolname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindSymbolByName)(windows_core::Interface::as_raw(self), symbolname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindSymbolByName)(windows_core::Interface::as_raw(self), symbolname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } 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), rva, core::mem::transmute(symbol), offset).ok() @@ -12619,10 +12619,10 @@ windows_core::imp::interface_hierarchy!(IDebugHostModuleSignature, windows_core: impl IDebugHostModuleSignature { pub unsafe fn IsMatch(&self, pmodule: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsMatch)(windows_core::Interface::as_raw(self), pmodule.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsMatch)(windows_core::Interface::as_raw(self), pmodule.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -12639,10 +12639,10 @@ impl IDebugHostPublic { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12662,10 +12662,10 @@ impl IDebugHostPublic { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetLocationKind(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12687,10 +12687,10 @@ windows_core::imp::interface_hierarchy!(IDebugHostScriptHost, windows_core::IUnk impl IDebugHostScriptHost { pub unsafe fn CreateContext(&self, script: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), script.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), script.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -12720,10 +12720,10 @@ impl IDebugHostSymbol { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_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__ = std::mem::zeroed(); @@ -12743,10 +12743,10 @@ impl IDebugHostSymbol { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), 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)] @@ -12769,10 +12769,10 @@ impl IDebugHostSymbol2 { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12792,10 +12792,10 @@ impl IDebugHostSymbol2 { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetLanguage(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12829,59 +12829,59 @@ windows_core::imp::interface_hierarchy!(IDebugHostSymbols, windows_core::IUnknow impl IDebugHostSymbols { pub unsafe fn CreateModuleSignature(&self, pwszmodulename: P0, pwszminversion: P1, pwszmaxversion: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateModuleSignature)(windows_core::Interface::as_raw(self), pwszmodulename.into_param().abi(), pwszminversion.into_param().abi(), pwszmaxversion.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateModuleSignature)(windows_core::Interface::as_raw(self), pwszmodulename.param().abi(), pwszminversion.param().abi(), pwszmaxversion.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTypeSignature(&self, signaturespecification: P0, module: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypeSignature)(windows_core::Interface::as_raw(self), signaturespecification.into_param().abi(), module.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTypeSignature)(windows_core::Interface::as_raw(self), signaturespecification.param().abi(), module.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTypeSignatureForModuleRange(&self, signaturespecification: P0, modulename: P1, minversion: P2, maxversion: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypeSignatureForModuleRange)(windows_core::Interface::as_raw(self), signaturespecification.into_param().abi(), modulename.into_param().abi(), minversion.into_param().abi(), maxversion.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTypeSignatureForModuleRange)(windows_core::Interface::as_raw(self), signaturespecification.param().abi(), modulename.param().abi(), minversion.param().abi(), maxversion.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateModules(&self, context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateModules)(windows_core::Interface::as_raw(self), context.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateModules)(windows_core::Interface::as_raw(self), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindModuleByName(&self, context: P0, modulename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindModuleByName)(windows_core::Interface::as_raw(self), context.into_param().abi(), modulename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindModuleByName)(windows_core::Interface::as_raw(self), context.param().abi(), modulename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindModuleByLocation(&self, context: P0, modulelocation: Location) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindModuleByLocation)(windows_core::Interface::as_raw(self), context.into_param().abi(), core::mem::transmute(modulelocation), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindModuleByLocation)(windows_core::Interface::as_raw(self), context.param().abi(), core::mem::transmute(modulelocation), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMostDerivedObject(&self, pcontext: P0, location: Location, objecttype: P1, derivedlocation: *mut Location, derivedtype: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMostDerivedObject)(windows_core::Interface::as_raw(self), pcontext.into_param().abi(), core::mem::transmute(location), objecttype.into_param().abi(), derivedlocation, core::mem::transmute(derivedtype)).ok() + (windows_core::Interface::vtable(self).GetMostDerivedObject)(windows_core::Interface::as_raw(self), pcontext.param().abi(), core::mem::transmute(location), objecttype.param().abi(), derivedlocation, core::mem::transmute(derivedtype)).ok() } } #[repr(C)] @@ -12904,10 +12904,10 @@ impl IDebugHostType { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -12927,10 +12927,10 @@ impl IDebugHostType { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetTypeKind(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13038,10 +13038,10 @@ impl IDebugHostType2 { } pub unsafe fn EnumerateChildren(&self, kind: SymbolKind, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EnumerateChildren)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -13061,10 +13061,10 @@ impl IDebugHostType2 { } pub unsafe fn CompareAgainst(&self, pcomparisonsymbol: P0, comparisonflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CompareAgainst)(windows_core::Interface::as_raw(self), pcomparisonsymbol.param().abi(), comparisonflags, &mut result__).map(|| result__) } pub unsafe fn GetTypeKind(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13178,16 +13178,16 @@ impl IDebugHostTypeSignature { } pub unsafe fn IsMatch(&self, r#type: P0, ismatch: *mut bool, wildcardmatches: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsMatch)(windows_core::Interface::as_raw(self), r#type.into_param().abi(), ismatch, core::mem::transmute(wildcardmatches.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).IsMatch)(windows_core::Interface::as_raw(self), r#type.param().abi(), ismatch, core::mem::transmute(wildcardmatches.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CompareAgainst(&self, typesignature: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareAgainst)(windows_core::Interface::as_raw(self), typesignature.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareAgainst)(windows_core::Interface::as_raw(self), typesignature.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -13218,9 +13218,9 @@ windows_core::imp::interface_hierarchy!(IDebugOutputCallbacks, windows_core::IUn impl IDebugOutputCallbacks { pub unsafe fn Output(&self, mask: u32, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.param().abi()).ok() } } #[repr(C)] @@ -13233,9 +13233,9 @@ windows_core::imp::interface_hierarchy!(IDebugOutputCallbacks2, windows_core::IU impl IDebugOutputCallbacks2 { pub unsafe fn Output(&self, mask: u32, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.into_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__ = std::mem::zeroed(); @@ -13243,9 +13243,9 @@ impl IDebugOutputCallbacks2 { } pub unsafe fn Output2(&self, which: u32, flags: u32, arg: u64, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output2)(windows_core::Interface::as_raw(self), which, flags, arg, text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Output2)(windows_core::Interface::as_raw(self), which, flags, arg, text.param().abi()).ok() } } #[repr(C)] @@ -13260,9 +13260,9 @@ windows_core::imp::interface_hierarchy!(IDebugOutputCallbacksWide, windows_core: impl IDebugOutputCallbacksWide { pub unsafe fn Output(&self, mask: u32, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Output)(windows_core::Interface::as_raw(self), mask, text.param().abi()).ok() } } #[repr(C)] @@ -13275,9 +13275,9 @@ windows_core::imp::interface_hierarchy!(IDebugOutputStream, windows_core::IUnkno impl IDebugOutputStream { pub unsafe fn Write(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } } #[repr(C)] @@ -13290,11 +13290,11 @@ windows_core::imp::interface_hierarchy!(IDebugPlmClient, windows_core::IUnknown) impl IDebugPlmClient { pub unsafe fn LaunchPlmPackageForDebugWide(&self, server: u64, timeout: u32, packagefullname: P0, appname: P1, arguments: P2, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.into_param().abi(), appname.into_param().abi(), arguments.into_param().abi(), processid, 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(), processid, threadid).ok() } } #[repr(C)] @@ -13307,18 +13307,18 @@ windows_core::imp::interface_hierarchy!(IDebugPlmClient2, windows_core::IUnknown impl IDebugPlmClient2 { pub unsafe fn LaunchPlmPackageForDebugWide(&self, server: u64, timeout: u32, packagefullname: P0, appname: P1, arguments: P2, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.into_param().abi(), appname.into_param().abi(), arguments.into_param().abi(), processid, 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(), processid, threadid).ok() } pub unsafe fn LaunchPlmBgTaskForDebugWide(&self, server: u64, timeout: u32, packagefullname: P0, backgroundtaskid: P1, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.into_param().abi(), backgroundtaskid.into_param().abi(), processid, threadid).ok() + (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.param().abi(), backgroundtaskid.param().abi(), processid, threadid).ok() } } #[repr(C)] @@ -13332,76 +13332,76 @@ windows_core::imp::interface_hierarchy!(IDebugPlmClient3, windows_core::IUnknown impl IDebugPlmClient3 { pub unsafe fn LaunchPlmPackageForDebugWide(&self, server: u64, timeout: u32, packagefullname: P0, appname: P1, arguments: P2, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmPackageForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.into_param().abi(), appname.into_param().abi(), arguments.into_param().abi(), processid, 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(), processid, threadid).ok() } pub unsafe fn LaunchPlmBgTaskForDebugWide(&self, server: u64, timeout: u32, packagefullname: P0, backgroundtaskid: P1, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.into_param().abi(), backgroundtaskid.into_param().abi(), processid, threadid).ok() + (windows_core::Interface::vtable(self).LaunchPlmBgTaskForDebugWide)(windows_core::Interface::as_raw(self), server, timeout, packagefullname.param().abi(), backgroundtaskid.param().abi(), processid, threadid).ok() } pub unsafe fn QueryPlmPackageWide(&self, server: u64, packagefullname: P0, stream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryPlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_param().abi(), stream.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryPlmPackageList)(windows_core::Interface::as_raw(self), server, stream.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnablePlmPackageDebugWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisablePlmPackageDebugWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SuspendPlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ResumePlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TerminatePlmPackageWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_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: P0, appname: P1, arguments: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchAndDebugPlmAppWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_param().abi(), appname.into_param().abi(), arguments.into_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: P0, backgroundtaskid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateAndDebugPlmBgTaskWide)(windows_core::Interface::as_raw(self), server, packagefullname.into_param().abi(), backgroundtaskid.into_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)] @@ -13431,10 +13431,10 @@ impl IDebugRegisters { } pub unsafe fn GetIndexByName(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndexByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (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), register, value).ok() @@ -13491,10 +13491,10 @@ impl IDebugRegisters2 { } pub unsafe fn GetIndexByName(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndexByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (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), register, value).ok() @@ -13528,10 +13528,10 @@ impl IDebugRegisters2 { } pub unsafe fn GetIndexByNameWide(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIndexByNameWide)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIndexByNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetNumberPseudoRegisters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13545,17 +13545,17 @@ impl IDebugRegisters2 { } pub unsafe fn GetPseudoIndexByName(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPseudoIndexByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPseudoIndexByName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPseudoIndexByNameWide(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPseudoIndexByNameWide)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).map(|| result__) + (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), source, count, core::mem::transmute(indices.unwrap_or(std::ptr::null())), start, values).ok() @@ -13624,15 +13624,15 @@ impl IDebugSymbolGroup { } pub unsafe fn AddSymbol(&self, name: P0, index: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSymbol)(windows_core::Interface::as_raw(self), name.into_param().abi(), index).ok() + (windows_core::Interface::vtable(self).AddSymbol)(windows_core::Interface::as_raw(self), name.param().abi(), index).ok() } pub unsafe fn RemoveSymbolByName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSymbolByName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (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), index).ok() @@ -13645,24 +13645,24 @@ impl IDebugSymbolGroup { } pub unsafe fn ExpandSymbol(&self, index: u32, expand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), index, expand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), index, expand.param().abi()).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), outputcontrol, flags, start, count).ok() } pub unsafe fn WriteSymbol(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSymbol)(windows_core::Interface::as_raw(self), index, value.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputAsType)(windows_core::Interface::as_raw(self), index, r#type.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OutputAsType)(windows_core::Interface::as_raw(self), index, r#type.param().abi()).ok() } } #[repr(C)] @@ -13688,15 +13688,15 @@ impl IDebugSymbolGroup2 { } pub unsafe fn AddSymbol(&self, name: P0, index: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSymbol)(windows_core::Interface::as_raw(self), name.into_param().abi(), index).ok() + (windows_core::Interface::vtable(self).AddSymbol)(windows_core::Interface::as_raw(self), name.param().abi(), index).ok() } pub unsafe fn RemoveSymbolByName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSymbolByName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (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), index).ok() @@ -13709,51 +13709,51 @@ impl IDebugSymbolGroup2 { } pub unsafe fn ExpandSymbol(&self, index: u32, expand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), index, expand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExpandSymbol)(windows_core::Interface::as_raw(self), index, expand.param().abi()).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), outputcontrol, flags, start, count).ok() } pub unsafe fn WriteSymbol(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSymbol)(windows_core::Interface::as_raw(self), index, value.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputAsType)(windows_core::Interface::as_raw(self), index, r#type.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSymbolWide)(windows_core::Interface::as_raw(self), name.into_param().abi(), index).ok() + (windows_core::Interface::vtable(self).AddSymbolWide)(windows_core::Interface::as_raw(self), name.param().abi(), index).ok() } pub unsafe fn RemoveSymbolByNameWide(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSymbolByNameWide)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn WriteSymbolWide(&self, index: u32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteSymbolWide)(windows_core::Interface::as_raw(self), index, value.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OutputAsTypeWide)(windows_core::Interface::as_raw(self), index, r#type.into_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), 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(std::ptr::null_mut()))).ok() @@ -13831,10 +13831,10 @@ impl IDebugSymbols { } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -13844,10 +13844,10 @@ impl IDebugSymbols { } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.into_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), loaded, unloaded).ok() @@ -13858,9 +13858,9 @@ impl IDebugSymbols { } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() @@ -13887,20 +13887,20 @@ impl IDebugSymbols { } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.into_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__ = std::mem::zeroed(); @@ -13908,16 +13908,16 @@ impl IDebugSymbols { } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).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), offset, typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() @@ -13951,10 +13951,10 @@ impl IDebugSymbols { } pub unsafe fn GetScopeSymbolGroup(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -13962,10 +13962,10 @@ impl IDebugSymbols { } pub unsafe fn StartSymbolMatch(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() @@ -13975,39 +13975,39 @@ impl IDebugSymbols { } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -14017,27 +14017,27 @@ impl IDebugSymbols { } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFile(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -14114,10 +14114,10 @@ impl IDebugSymbols2 { } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -14127,10 +14127,10 @@ impl IDebugSymbols2 { } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.into_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), loaded, unloaded).ok() @@ -14141,9 +14141,9 @@ impl IDebugSymbols2 { } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() @@ -14170,20 +14170,20 @@ impl IDebugSymbols2 { } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.into_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__ = std::mem::zeroed(); @@ -14191,16 +14191,16 @@ impl IDebugSymbols2 { } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).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), offset, typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() @@ -14234,10 +14234,10 @@ impl IDebugSymbols2 { } pub unsafe fn GetScopeSymbolGroup(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -14245,10 +14245,10 @@ impl IDebugSymbols2 { } pub unsafe fn StartSymbolMatch(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() @@ -14258,39 +14258,39 @@ impl IDebugSymbols2 { } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -14300,33 +14300,33 @@ impl IDebugSymbols2 { } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFile(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetModuleVersionInformation(&self, index: u32, base: u64, item: P0, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, verinfosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -14433,10 +14433,10 @@ impl IDebugSymbols3 { } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -14446,10 +14446,10 @@ impl IDebugSymbols3 { } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.into_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), loaded, unloaded).ok() @@ -14460,9 +14460,9 @@ impl IDebugSymbols3 { } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() @@ -14489,20 +14489,20 @@ impl IDebugSymbols3 { } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.into_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__ = std::mem::zeroed(); @@ -14510,16 +14510,16 @@ impl IDebugSymbols3 { } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).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), offset, typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() @@ -14553,10 +14553,10 @@ impl IDebugSymbols3 { } pub unsafe fn GetScopeSymbolGroup(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -14564,10 +14564,10 @@ impl IDebugSymbols3 { } pub unsafe fn StartSymbolMatch(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() @@ -14577,39 +14577,39 @@ impl IDebugSymbols3 { } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -14619,33 +14619,33 @@ impl IDebugSymbols3 { } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFile(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetModuleVersionInformation(&self, index: u32, base: u64, item: P0, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, verinfosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -14674,10 +14674,10 @@ impl IDebugSymbols3 { } pub unsafe fn GetOffsetByNameWide(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByNameWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -14687,53 +14687,53 @@ impl IDebugSymbols3 { } pub unsafe fn GetOffsetByLineWide(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), line, file.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetSymbolModuleWide(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModuleWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeIdWide(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), module, name.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeIdWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeIdWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetScopeSymbolGroup2(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -14741,49 +14741,49 @@ impl IDebugSymbols3 { } pub unsafe fn StartSymbolMatchWide(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatchWide)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReloadWide(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReloadWide)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReloadWide)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPathWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePathWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -14793,33 +14793,33 @@ impl IDebugSymbols3 { } pub unsafe fn SetSourcePathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFileWide(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u16]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsetsWide(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsetsWide)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsetsWide)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetModuleVersionInformationWide(&self, index: u32, base: u64, item: P0, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, verinfosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -14835,32 +14835,32 @@ impl IDebugSymbols3 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticModule(&self, base: u64, size: u32, imagepath: P0, modulename: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), base, size, imagepath.into_param().abi(), modulename.into_param().abi(), 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: P0, modulename: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), base, size, imagepath.into_param().abi(), modulename.into_param().abi(), 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), base).ok() @@ -14886,27 +14886,27 @@ impl IDebugSymbols3 { } pub unsafe fn GetFieldTypeAndOffset(&self, module: u64, containertypeid: u32, field: P0, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.into_param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetFieldTypeAndOffsetWide(&self, module: u64, containertypeid: u32, field: P0, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.into_param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticSymbol(&self, offset: u64, size: u32, name: P0, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), offset, size, name.into_param().abi(), flags, core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticSymbolWide(&self, offset: u64, size: u32, name: P0, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), offset, size, name.into_param().abi(), flags, core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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), id).ok() @@ -14916,15 +14916,15 @@ impl IDebugSymbols3 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSymbolEntryByToken(&self, modulebase: u64, token: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14951,15 +14951,15 @@ impl IDebugSymbols3 { } pub unsafe fn GetSourceEntriesByLine(&self, line: u32, file: P0, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), line, file.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceEntriesByLineWide(&self, line: u32, file: P0, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), line, file.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -15122,10 +15122,10 @@ impl IDebugSymbols4 { } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -15135,10 +15135,10 @@ impl IDebugSymbols4 { } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.into_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), loaded, unloaded).ok() @@ -15149,9 +15149,9 @@ impl IDebugSymbols4 { } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() @@ -15178,20 +15178,20 @@ impl IDebugSymbols4 { } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.into_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__ = std::mem::zeroed(); @@ -15199,16 +15199,16 @@ impl IDebugSymbols4 { } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).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), offset, typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() @@ -15242,10 +15242,10 @@ impl IDebugSymbols4 { } pub unsafe fn GetScopeSymbolGroup(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -15253,10 +15253,10 @@ impl IDebugSymbols4 { } pub unsafe fn StartSymbolMatch(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() @@ -15266,39 +15266,39 @@ impl IDebugSymbols4 { } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -15308,33 +15308,33 @@ impl IDebugSymbols4 { } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFile(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetModuleVersionInformation(&self, index: u32, base: u64, item: P0, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, verinfosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -15363,10 +15363,10 @@ impl IDebugSymbols4 { } pub unsafe fn GetOffsetByNameWide(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByNameWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -15376,53 +15376,53 @@ impl IDebugSymbols4 { } pub unsafe fn GetOffsetByLineWide(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), line, file.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetSymbolModuleWide(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModuleWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeIdWide(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), module, name.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeIdWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeIdWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetScopeSymbolGroup2(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -15430,49 +15430,49 @@ impl IDebugSymbols4 { } pub unsafe fn StartSymbolMatchWide(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatchWide)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReloadWide(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReloadWide)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReloadWide)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPathWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePathWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -15482,33 +15482,33 @@ impl IDebugSymbols4 { } pub unsafe fn SetSourcePathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFileWide(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u16]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsetsWide(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsetsWide)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsetsWide)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetModuleVersionInformationWide(&self, index: u32, base: u64, item: P0, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, verinfosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -15524,32 +15524,32 @@ impl IDebugSymbols4 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticModule(&self, base: u64, size: u32, imagepath: P0, modulename: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), base, size, imagepath.into_param().abi(), modulename.into_param().abi(), 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: P0, modulename: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), base, size, imagepath.into_param().abi(), modulename.into_param().abi(), 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), base).ok() @@ -15575,27 +15575,27 @@ impl IDebugSymbols4 { } pub unsafe fn GetFieldTypeAndOffset(&self, module: u64, containertypeid: u32, field: P0, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.into_param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetFieldTypeAndOffsetWide(&self, module: u64, containertypeid: u32, field: P0, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.into_param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticSymbol(&self, offset: u64, size: u32, name: P0, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), offset, size, name.into_param().abi(), flags, core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticSymbolWide(&self, offset: u64, size: u32, name: P0, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), offset, size, name.into_param().abi(), flags, core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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), id).ok() @@ -15605,15 +15605,15 @@ impl IDebugSymbols4 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSymbolEntryByToken(&self, modulebase: u64, token: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15640,15 +15640,15 @@ impl IDebugSymbols4 { } pub unsafe fn GetSourceEntriesByLine(&self, line: u32, file: P0, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), line, file.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceEntriesByLineWide(&self, line: u32, file: P0, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), line, file.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -15839,10 +15839,10 @@ impl IDebugSymbols5 { } pub unsafe fn GetOffsetByName(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByName)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -15852,10 +15852,10 @@ impl IDebugSymbols5 { } pub unsafe fn GetOffsetByLine(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLine)(windows_core::Interface::as_raw(self), line, file.into_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), loaded, unloaded).ok() @@ -15866,9 +15866,9 @@ impl IDebugSymbols5 { } pub unsafe fn GetModuleByModuleName(&self, name: P0, startindex: u32, index: Option<*mut u32>, base: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() @@ -15895,20 +15895,20 @@ impl IDebugSymbols5 { } pub unsafe fn GetSymbolModule(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModule)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeId(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeId)(windows_core::Interface::as_raw(self), module, name.into_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__ = std::mem::zeroed(); @@ -15916,16 +15916,16 @@ impl IDebugSymbols5 { } pub unsafe fn GetFieldOffset(&self, module: u64, typeid: u32, field: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffset)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeId)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).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), offset, typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() @@ -15959,10 +15959,10 @@ impl IDebugSymbols5 { } pub unsafe fn GetScopeSymbolGroup(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -15970,10 +15970,10 @@ impl IDebugSymbols5 { } pub unsafe fn StartSymbolMatch(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatch)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() @@ -15983,39 +15983,39 @@ impl IDebugSymbols5 { } pub unsafe fn Reload(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reload)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePath)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePath(&self, buffer: Option<&mut [u8]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -16025,33 +16025,33 @@ impl IDebugSymbols5 { } pub unsafe fn SetSourcePath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePath(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePath)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFile(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u8]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFile)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsets(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsets)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetModuleVersionInformation(&self, index: u32, base: u64, item: P0, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, verinfosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformation)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -16080,10 +16080,10 @@ impl IDebugSymbols5 { } pub unsafe fn GetOffsetByNameWide(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByNameWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut()))).ok() @@ -16093,53 +16093,53 @@ impl IDebugSymbols5 { } pub unsafe fn GetOffsetByLineWide(&self, line: u32, file: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOffsetByLineWide)(windows_core::Interface::as_raw(self), line, file.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleNameWide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetSymbolModuleWide(&self, symbol: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSymbolModuleWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut()))).ok() } pub unsafe fn GetTypeIdWide(&self, module: u64, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTypeIdWide)(windows_core::Interface::as_raw(self), module, name.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFieldOffsetWide)(windows_core::Interface::as_raw(self), module, typeid, field.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolTypeIdWide)(windows_core::Interface::as_raw(self), symbol.into_param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSymbolTypeIdWide)(windows_core::Interface::as_raw(self), symbol.param().abi(), typeid, core::mem::transmute(module.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetScopeSymbolGroup2(&self, flags: u32, update: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetScopeSymbolGroup2)(windows_core::Interface::as_raw(self), flags, update.into_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__ = std::mem::zeroed(); @@ -16147,49 +16147,49 @@ impl IDebugSymbols5 { } pub unsafe fn StartSymbolMatchWide(&self, pattern: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartSymbolMatchWide)(windows_core::Interface::as_raw(self), pattern.into_param().abi(), &mut result__).map(|| result__) + (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), 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(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ReloadWide(&self, module: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReloadWide)(windows_core::Interface::as_raw(self), module.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReloadWide)(windows_core::Interface::as_raw(self), module.param().abi()).ok() } pub unsafe fn GetSymbolPathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSymbolPathWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetSymbolPathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSymbolPathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSymbolPathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSymbolPathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSymbolPathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSymbolPathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetImagePathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetImagePathWide)(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(std::ptr::null_mut()))).ok() } pub unsafe fn SetImagePathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImagePathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImagePathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendImagePathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendImagePathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendImagePathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn GetSourcePathWide(&self, buffer: Option<&mut [u16]>, pathsize: Option<*mut u32>) -> windows_core::Result<()> { (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(std::ptr::null_mut()))).ok() @@ -16199,33 +16199,33 @@ impl IDebugSymbols5 { } pub unsafe fn SetSourcePathWide(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourcePathWide)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourcePathWide)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn AppendSourcePathWide(&self, addition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendSourcePathWide)(windows_core::Interface::as_raw(self), addition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AppendSourcePathWide)(windows_core::Interface::as_raw(self), addition.param().abi()).ok() } pub unsafe fn FindSourceFileWide(&self, startelement: u32, file: P0, flags: u32, foundelement: Option<*mut u32>, buffer: Option<&mut [u16]>, foundsize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.into_param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).FindSourceFileWide)(windows_core::Interface::as_raw(self), startelement, file.param().abi(), flags, core::mem::transmute(foundelement.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.as_deref().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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceFileLineOffsetsWide(&self, file: P0, buffer: Option<&mut [u64]>, filelines: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceFileLineOffsetsWide)(windows_core::Interface::as_raw(self), file.into_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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetSourceFileLineOffsetsWide)(windows_core::Interface::as_raw(self), file.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()), core::mem::transmute(filelines.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetModuleVersionInformationWide(&self, index: u32, base: u64, item: P0, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, verinfosize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleVersionInformationWide)(windows_core::Interface::as_raw(self), index, base, item.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize, core::mem::transmute(verinfosize.unwrap_or(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -16241,32 +16241,32 @@ impl IDebugSymbols5 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.into_param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetModuleByModuleName2Wide)(windows_core::Interface::as_raw(self), name.param().abi(), startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).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), offset, startindex, flags, core::mem::transmute(index.unwrap_or(std::ptr::null_mut())), core::mem::transmute(base.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticModule(&self, base: u64, size: u32, imagepath: P0, modulename: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModule)(windows_core::Interface::as_raw(self), base, size, imagepath.into_param().abi(), modulename.into_param().abi(), 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: P0, modulename: P1, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticModuleWide)(windows_core::Interface::as_raw(self), base, size, imagepath.into_param().abi(), modulename.into_param().abi(), 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), base).ok() @@ -16292,27 +16292,27 @@ impl IDebugSymbols5 { } pub unsafe fn GetFieldTypeAndOffset(&self, module: u64, containertypeid: u32, field: P0, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.into_param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffset)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetFieldTypeAndOffsetWide(&self, module: u64, containertypeid: u32, field: P0, fieldtypeid: Option<*mut u32>, offset: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.into_param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetFieldTypeAndOffsetWide)(windows_core::Interface::as_raw(self), module, containertypeid, field.param().abi(), core::mem::transmute(fieldtypeid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(offset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticSymbol(&self, offset: u64, size: u32, name: P0, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbol)(windows_core::Interface::as_raw(self), offset, size, name.into_param().abi(), flags, core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn AddSyntheticSymbolWide(&self, offset: u64, size: u32, name: P0, flags: u32, id: Option<*mut DEBUG_MODULE_AND_ID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSyntheticSymbolWide)(windows_core::Interface::as_raw(self), offset, size, name.into_param().abi(), flags, core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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), id).ok() @@ -16322,15 +16322,15 @@ impl IDebugSymbols5 { } 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByName)(windows_core::Interface::as_raw(self), symbol.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSymbolEntriesByNameWide)(windows_core::Interface::as_raw(self), symbol.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSymbolEntryByToken(&self, modulebase: u64, token: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16357,15 +16357,15 @@ impl IDebugSymbols5 { } pub unsafe fn GetSourceEntriesByLine(&self, line: u32, file: P0, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLine)(windows_core::Interface::as_raw(self), line, file.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn GetSourceEntriesByLineWide(&self, line: u32, file: P0, flags: u32, entries: Option<&mut [DEBUG_SYMBOL_SOURCE_ENTRY]>, entriesavail: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourceEntriesByLineWide)(windows_core::Interface::as_raw(self), line, file.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).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), 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(std::ptr::null_mut()))).ok() @@ -17296,29 +17296,29 @@ windows_core::imp::interface_hierarchy!(IDynamicConceptProviderConcept, windows_ impl IDynamicConceptProviderConcept { pub unsafe fn GetConcept(&self, contextobject: P0, conceptid: *const windows_core::GUID, conceptinterface: *mut Option, conceptmetadata: Option<*mut Option>, hasconcept: *mut bool) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConcept)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), conceptid, core::mem::transmute(conceptinterface), core::mem::transmute(conceptmetadata.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut())), hasconcept).ok() } pub unsafe fn SetConcept(&self, contextobject: P0, conceptid: *const windows_core::GUID, conceptinterface: P1, conceptmetadata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConcept)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), conceptid, conceptinterface.into_param().abi(), conceptmetadata.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyParent)(windows_core::Interface::as_raw(self), parentmodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyParent)(windows_core::Interface::as_raw(self), parentmodel.param().abi()).ok() } pub unsafe fn NotifyParentChange(&self, parentmodel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyParentChange)(windows_core::Interface::as_raw(self), parentmodel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyParentChange)(windows_core::Interface::as_raw(self), parentmodel.param().abi()).ok() } pub unsafe fn NotifyDestruct(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NotifyDestruct)(windows_core::Interface::as_raw(self)).ok() @@ -17338,26 +17338,26 @@ windows_core::imp::interface_hierarchy!(IDynamicKeyProviderConcept, windows_core impl IDynamicKeyProviderConcept { pub unsafe fn GetKey(&self, contextobject: P0, key: P1, keyvalue: Option<*mut Option>, metadata: Option<*mut Option>, haskey: Option<*mut bool>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), key.into_param().abi(), core::mem::transmute(keyvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(haskey.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), contextobject.param().abi(), key.param().abi(), core::mem::transmute(keyvalue.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(haskey.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetKey(&self, contextobject: P0, key: P1, keyvalue: P2, metadata: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), key.into_param().abi(), keyvalue.into_param().abi(), metadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), contextobject.param().abi(), key.param().abi(), keyvalue.param().abi(), metadata.param().abi()).ok() } pub unsafe fn EnumerateKeys(&self, contextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateKeys)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumerateKeys)(windows_core::Interface::as_raw(self), contextobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -17372,11 +17372,11 @@ windows_core::imp::interface_hierarchy!(IEquatableConcept, windows_core::IUnknow impl IEquatableConcept { pub unsafe fn AreObjectsEqual(&self, contextobject: P0, otherobject: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AreObjectsEqual)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), otherobject.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AreObjectsEqual)(windows_core::Interface::as_raw(self), contextobject.param().abi(), otherobject.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -17401,23 +17401,23 @@ windows_core::imp::interface_hierarchy!(IIndexableConcept, windows_core::IUnknow impl IIndexableConcept { pub unsafe fn GetDimensionality(&self, contextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDimensionality)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDimensionality)(windows_core::Interface::as_raw(self), contextobject.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAt(&self, contextobject: P0, indexers: &[Option], object: *mut Option, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), indexers.len().try_into().unwrap(), core::mem::transmute(indexers.as_ptr()), core::mem::transmute(object), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetAt)(windows_core::Interface::as_raw(self), contextobject.param().abi(), indexers.len().try_into().unwrap(), core::mem::transmute(indexers.as_ptr()), core::mem::transmute(object), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetAt(&self, contextobject: P0, indexers: &[Option], value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), indexers.len().try_into().unwrap(), core::mem::transmute(indexers.as_ptr()), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAt)(windows_core::Interface::as_raw(self), contextobject.param().abi(), indexers.len().try_into().unwrap(), core::mem::transmute(indexers.as_ptr()), value.param().abi()).ok() } } #[repr(C)] @@ -17432,17 +17432,17 @@ windows_core::imp::interface_hierarchy!(IIterableConcept, windows_core::IUnknown impl IIterableConcept { pub unsafe fn GetDefaultIndexDimensionality(&self, contextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultIndexDimensionality)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultIndexDimensionality)(windows_core::Interface::as_raw(self), contextobject.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetIterator(&self, contextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIterator)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetIterator)(windows_core::Interface::as_raw(self), contextobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -17472,30 +17472,30 @@ windows_core::imp::interface_hierarchy!(IKeyStore, windows_core::IUnknown); impl IKeyStore { pub unsafe fn GetKey(&self, key: P0, object: Option<*mut Option>, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), key.into_param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), key.param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetKey(&self, key: P0, object: P1, metadata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), key.into_param().abi(), object.into_param().abi(), metadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), key.param().abi(), object.param().abi(), metadata.param().abi()).ok() } pub unsafe fn GetKeyValue(&self, key: P0, object: Option<*mut Option>, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetKeyValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetKeyValue)(windows_core::Interface::as_raw(self), key.param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetKeyValue(&self, key: P0, object: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), key.param().abi(), object.param().abi()).ok() } pub unsafe fn ClearKeys(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearKeys)(windows_core::Interface::as_raw(self)).ok() @@ -17549,16 +17549,16 @@ impl IModelKeyReference { } pub unsafe fn SetKey(&self, object: P0, metadata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), object.into_param().abi(), metadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), object.param().abi(), metadata.param().abi()).ok() } pub unsafe fn SetKeyValue(&self, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), object.param().abi()).ok() } } #[repr(C)] @@ -17595,22 +17595,22 @@ impl IModelKeyReference2 { } pub unsafe fn SetKey(&self, object: P0, metadata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetKey)(windows_core::Interface::as_raw(self), object.into_param().abi(), metadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetKey)(windows_core::Interface::as_raw(self), object.param().abi(), metadata.param().abi()).ok() } pub unsafe fn SetKeyValue(&self, object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetKeyValue)(windows_core::Interface::as_raw(self), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetKeyValue)(windows_core::Interface::as_raw(self), object.param().abi()).ok() } pub unsafe fn OverrideContextObject(&self, newcontextobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OverrideContextObject)(windows_core::Interface::as_raw(self), newcontextobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OverrideContextObject)(windows_core::Interface::as_raw(self), newcontextobject.param().abi()).ok() } } #[repr(C)] @@ -17623,9 +17623,9 @@ windows_core::imp::interface_hierarchy!(IModelMethod, windows_core::IUnknown); impl IModelMethod { pub unsafe fn Call(&self, pcontextobject: P0, pparguments: &[Option], ppresult: *mut Option, ppmetadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Call)(windows_core::Interface::as_raw(self), pcontextobject.into_param().abi(), pparguments.len().try_into().unwrap(), core::mem::transmute(pparguments.as_ptr()), core::mem::transmute(ppresult), core::mem::transmute(ppmetadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Call)(windows_core::Interface::as_raw(self), pcontextobject.param().abi(), pparguments.len().try_into().unwrap(), core::mem::transmute(pparguments.as_ptr()), core::mem::transmute(ppresult), core::mem::transmute(ppmetadata.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -17655,16 +17655,16 @@ impl IModelObject { } pub unsafe fn GetKeyValue(&self, key: P0, object: Option<*mut Option>, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetKeyValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetKeyValue)(windows_core::Interface::as_raw(self), key.param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetKeyValue(&self, key: P0, object: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), object.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeyValue)(windows_core::Interface::as_raw(self), key.param().abi(), object.param().abi()).ok() } pub unsafe fn EnumerateKeyValues(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17672,10 +17672,10 @@ impl IModelObject { } pub unsafe fn GetRawValue(&self, kind: SymbolKind, name: P0, searchflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRawValue)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), 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__ = std::mem::zeroed(); @@ -17712,36 +17712,36 @@ impl IModelObject { } pub unsafe fn AddParentModel(&self, model: P0, contextobject: P1, r#override: u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddParentModel)(windows_core::Interface::as_raw(self), model.into_param().abi(), contextobject.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveParentModel)(windows_core::Interface::as_raw(self), model.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveParentModel)(windows_core::Interface::as_raw(self), model.param().abi()).ok() } pub unsafe fn GetKey(&self, key: P0, object: Option<*mut Option>, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), key.into_param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), key.param().abi(), core::mem::transmute(object.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetKeyReference(&self, key: P0, objectreference: Option<*mut Option>, metadata: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetKeyReference)(windows_core::Interface::as_raw(self), key.into_param().abi(), core::mem::transmute(objectreference.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetKeyReference)(windows_core::Interface::as_raw(self), key.param().abi(), core::mem::transmute(objectreference.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadata.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetKey(&self, key: P0, object: P1, metadata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), key.into_param().abi(), object.into_param().abi(), metadata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), key.param().abi(), object.param().abi(), metadata.param().abi()).ok() } pub unsafe fn ClearKeys(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearKeys)(windows_core::Interface::as_raw(self)).ok() @@ -17756,20 +17756,20 @@ impl IModelObject { } pub unsafe fn SetConcept(&self, conceptid: *const windows_core::GUID, conceptinterface: P0, conceptmetadata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConcept)(windows_core::Interface::as_raw(self), conceptid, conceptinterface.into_param().abi(), conceptmetadata.into_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() } pub unsafe fn GetRawReference(&self, kind: SymbolKind, name: P0, searchflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRawReference)(windows_core::Interface::as_raw(self), kind, name.into_param().abi(), 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__ = std::mem::zeroed(); @@ -17777,30 +17777,30 @@ impl IModelObject { } pub unsafe fn SetContextForDataModel(&self, datamodelobject: P0, context: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContextForDataModel)(windows_core::Interface::as_raw(self), datamodelobject.into_param().abi(), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContextForDataModel)(windows_core::Interface::as_raw(self), datamodelobject.param().abi(), context.param().abi()).ok() } pub unsafe fn GetContextForDataModel(&self, datamodelobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContextForDataModel)(windows_core::Interface::as_raw(self), datamodelobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetContextForDataModel)(windows_core::Interface::as_raw(self), datamodelobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Compare(&self, other: P0, ppresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), other.into_param().abi(), core::mem::transmute(ppresult.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), other.param().abi(), core::mem::transmute(ppresult.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn IsEqualTo(&self, other: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualTo)(windows_core::Interface::as_raw(self), other.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqualTo)(windows_core::Interface::as_raw(self), other.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -17848,19 +17848,19 @@ windows_core::imp::interface_hierarchy!(IModelPropertyAccessor, windows_core::IU impl IModelPropertyAccessor { pub unsafe fn GetValue(&self, key: P0, contextobject: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), contextobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key.param().abi(), contextobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetValue(&self, key: P0, contextobject: P1, value: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), contextobject.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), key.param().abi(), contextobject.param().abi(), value.param().abi()).ok() } } #[repr(C)] @@ -17874,10 +17874,10 @@ windows_core::imp::interface_hierarchy!(IPreferredRuntimeTypeConcept, windows_co impl IPreferredRuntimeTypeConcept { pub unsafe fn CastToPreferredRuntimeType(&self, contextobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CastToPreferredRuntimeType)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CastToPreferredRuntimeType)(windows_core::Interface::as_raw(self), contextobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -17906,11 +17906,11 @@ windows_core::imp::interface_hierarchy!(IStringDisplayableConcept, windows_core: impl IStringDisplayableConcept { pub unsafe fn ToDisplayString(&self, contextobject: P0, metadata: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ToDisplayString)(windows_core::Interface::as_raw(self), contextobject.into_param().abi(), metadata.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ToDisplayString)(windows_core::Interface::as_raw(self), contextobject.param().abi(), metadata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] 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 67e65fdd81..62192fb72a 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 @@ -22,30 +22,30 @@ pub unsafe fn Beep(dwfreq: u32, dwduration: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn BindImage(imagename: P0, dllpath: P1, symbolpath: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn BindImage(imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, symbolpath : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - BindImage(imagename.into_param().abi(), dllpath.into_param().abi(), symbolpath.into_param().abi()).ok() + BindImage(imagename.param().abi(), dllpath.param().abi(), symbolpath.param().abi()).ok() } #[inline] pub unsafe fn BindImageEx(flags: u32, imagename: P0, dllpath: P1, symbolpath: P2, statusroutine: PIMAGEHLP_STATUS_ROUTINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(flags, imagename.into_param().abi(), dllpath.into_param().abi(), symbolpath.into_param().abi(), statusroutine).ok() + BindImageEx(flags, imagename.param().abi(), dllpath.param().abi(), symbolpath.param().abi(), statusroutine).ok() } #[inline] pub unsafe fn CheckRemoteDebuggerPresent(hprocess: P0, pbdebuggerpresent: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), pbdebuggerpresent).ok() + CheckRemoteDebuggerPresent(hprocess.param().abi(), pbdebuggerpresent).ok() } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_SystemInformation")] @@ -69,10 +69,10 @@ pub unsafe fn CloseThreadWaitChainSession(wcthandle: *const core::ffi::c_void) { #[inline] pub unsafe fn ContinueDebugEvent(dwprocessid: u32, dwthreadid: u32, dwcontinuestatus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ContinueDebugEvent(dwprocessid : u32, dwthreadid : u32, dwcontinuestatus : super::super::super::Foundation:: NTSTATUS) -> super::super::super::Foundation:: BOOL); - ContinueDebugEvent(dwprocessid, dwthreadid, dwcontinuestatus.into_param().abi()).ok() + ContinueDebugEvent(dwprocessid, dwthreadid, dwcontinuestatus.param().abi()).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -83,18 +83,18 @@ pub unsafe fn CopyContext(destination: *mut CONTEXT, contextflags: CONTEXT_FLAGS #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), callback, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))) + DbgHelpCreateUserDump(filename.param().abi(), callback, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), callback, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))) + DbgHelpCreateUserDumpW(filename.param().abi(), callback, core::mem::transmute(userdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DebugActiveProcess(dwprocessid: u32) -> windows_core::Result<()> { @@ -114,18 +114,18 @@ pub unsafe fn DebugBreak() { #[inline] pub unsafe fn DebugBreakProcess(process: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DebugBreakProcess(process : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - DebugBreakProcess(process.into_param().abi()).ok() + DebugBreakProcess(process.param().abi()).ok() } #[inline] pub unsafe fn DebugSetProcessKillOnExit(killonexit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DebugSetProcessKillOnExit(killonexit : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - DebugSetProcessKillOnExit(killonexit.into_param().abi()).ok() + DebugSetProcessKillOnExit(killonexit.param().abi()).ok() } #[inline] pub unsafe fn DecodePointer(ptr: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { @@ -135,10 +135,10 @@ pub unsafe fn DecodePointer(ptr: Option<*const core::ffi::c_void>) -> *mut core: #[inline] pub unsafe fn DecodeRemotePointer(processhandle: P0, ptr: Option<*const core::ffi::c_void>, decodedptr: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), core::mem::transmute(ptr.unwrap_or(std::ptr::null())), decodedptr).ok() + DecodeRemotePointer(processhandle.param().abi(), core::mem::transmute(ptr.unwrap_or(std::ptr::null())), decodedptr).ok() } #[inline] pub unsafe fn DecodeSystemPointer(ptr: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { @@ -153,10 +153,10 @@ pub unsafe fn EncodePointer(ptr: Option<*const core::ffi::c_void>) -> *mut core: #[inline] pub unsafe fn EncodeRemotePointer(processhandle: P0, ptr: Option<*const core::ffi::c_void>, encodedptr: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), core::mem::transmute(ptr.unwrap_or(std::ptr::null())), encodedptr).ok() + EncodeRemotePointer(processhandle.param().abi(), core::mem::transmute(ptr.unwrap_or(std::ptr::null())), encodedptr).ok() } #[inline] pub unsafe fn EncodeSystemPointer(ptr: Option<*const core::ffi::c_void>) -> *mut core::ffi::c_void { @@ -166,79 +166,79 @@ pub unsafe fn EncodeSystemPointer(ptr: Option<*const core::ffi::c_void>) -> *mut #[inline] pub unsafe fn EnumDirTree(hprocess: P0, rootpath: P1, inputpathname: P2, outputpathbuffer: windows_core::PSTR, cb: PENUMDIRTREE_CALLBACK, data: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn EnumDirTree(hprocess : super::super::super::Foundation:: HANDLE, rootpath : windows_core::PCSTR, inputpathname : windows_core::PCSTR, outputpathbuffer : windows_core::PSTR, cb : PENUMDIRTREE_CALLBACK, data : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EnumDirTree(hprocess.into_param().abi(), rootpath.into_param().abi(), inputpathname.into_param().abi(), core::mem::transmute(outputpathbuffer), cb, core::mem::transmute(data.unwrap_or(std::ptr::null()))).ok() + EnumDirTree(hprocess.param().abi(), rootpath.param().abi(), inputpathname.param().abi(), core::mem::transmute(outputpathbuffer), cb, core::mem::transmute(data.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn EnumDirTreeW(hprocess: P0, rootpath: P1, inputpathname: P2, outputpathbuffer: windows_core::PWSTR, cb: PENUMDIRTREE_CALLBACKW, data: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn EnumDirTreeW(hprocess : super::super::super::Foundation:: HANDLE, rootpath : windows_core::PCWSTR, inputpathname : windows_core::PCWSTR, outputpathbuffer : windows_core::PWSTR, cb : PENUMDIRTREE_CALLBACKW, data : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - EnumDirTreeW(hprocess.into_param().abi(), rootpath.into_param().abi(), inputpathname.into_param().abi(), core::mem::transmute(outputpathbuffer), cb, core::mem::transmute(data.unwrap_or(std::ptr::null()))).ok() + EnumDirTreeW(hprocess.param().abi(), rootpath.param().abi(), inputpathname.param().abi(), core::mem::transmute(outputpathbuffer), cb, core::mem::transmute(data.unwrap_or(std::ptr::null()))).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn EnumerateLoadedModules(hprocess: P0, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + EnumerateLoadedModules(hprocess.param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModules64(hprocess: P0, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + EnumerateLoadedModules64(hprocess.param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModulesEx(hprocess: P0, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + EnumerateLoadedModulesEx(hprocess.param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModulesExW(hprocess: P0, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + EnumerateLoadedModulesExW(hprocess.param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn EnumerateLoadedModulesW64(hprocess: P0, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + EnumerateLoadedModulesW64(hprocess.param().abi(), enumloadedmodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn FatalAppExitA(uaction: u32, lpmessagetext: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FatalAppExitA(uaction : u32, lpmessagetext : windows_core::PCSTR)); - FatalAppExitA(uaction, lpmessagetext.into_param().abi()) + FatalAppExitA(uaction, lpmessagetext.param().abi()) } #[inline] pub unsafe fn FatalAppExitW(uaction: u32, lpmessagetext: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FatalAppExitW(uaction : u32, lpmessagetext : windows_core::PCWSTR)); - FatalAppExitW(uaction, lpmessagetext.into_param().abi()) + FatalAppExitW(uaction, lpmessagetext.param().abi()) } #[inline] pub unsafe fn FatalExit(exitcode: i32) -> ! { @@ -248,90 +248,90 @@ pub unsafe fn FatalExit(exitcode: i32) -> ! { #[inline] pub unsafe fn FindDebugInfoFile(filename: P0, symbolpath: P1, debugfilepath: windows_core::PSTR) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindDebugInfoFile(filename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, debugfilepath : windows_core::PSTR) -> super::super::super::Foundation:: HANDLE); - let result__ = FindDebugInfoFile(filename.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(debugfilepath)); + let result__ = FindDebugInfoFile(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath)); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindDebugInfoFileEx(filename: P0, symbolpath: P1, debugfilepath: windows_core::PSTR, callback: PFIND_DEBUG_FILE_CALLBACK, callerdata: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindDebugInfoFileEx(filename : windows_core::PCSTR, symbolpath : 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__ = FindDebugInfoFileEx(filename.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); + let result__ = FindDebugInfoFileEx(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindDebugInfoFileExW(filename: P0, symbolpath: P1, debugfilepath: windows_core::PWSTR, callback: PFIND_DEBUG_FILE_CALLBACKW, callerdata: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindDebugInfoFileExW(filename : windows_core::PCWSTR, symbolpath : 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__ = FindDebugInfoFileExW(filename.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); + let result__ = FindDebugInfoFileExW(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindExecutableImage(filename: P0, symbolpath: P1, imagefilepath: windows_core::PSTR) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindExecutableImage(filename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, imagefilepath : windows_core::PSTR) -> super::super::super::Foundation:: HANDLE); - let result__ = FindExecutableImage(filename.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(imagefilepath)); + let result__ = FindExecutableImage(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(imagefilepath)); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindExecutableImageEx(filename: P0, symbolpath: P1, imagefilepath: windows_core::PSTR, callback: PFIND_EXE_FILE_CALLBACK, callerdata: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn FindExecutableImageEx(filename : windows_core::PCSTR, symbolpath : 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__ = FindExecutableImageEx(filename.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(imagefilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); + let result__ = FindExecutableImageEx(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(imagefilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindExecutableImageExW(filename: P0, symbolpath: P1, imagefilepath: windows_core::PWSTR, callback: PFIND_EXE_FILE_CALLBACKW, callerdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); + let result__ = FindExecutableImageExW(filename.param().abi(), symbolpath.param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindFileInPath(hprocess: P0, searchpatha: P1, filename: P2, id: *const core::ffi::c_void, two: u32, three: u32, flags: u32, filepath: windows_core::PSTR) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), searchpatha.into_param().abi(), filename.into_param().abi(), id, two, three, flags, core::mem::transmute(filepath)) + FindFileInPath(hprocess.param().abi(), searchpatha.param().abi(), filename.param().abi(), id, two, three, flags, core::mem::transmute(filepath)) } #[inline] pub unsafe fn FindFileInSearchPath(hprocess: P0, searchpatha: P1, filename: P2, one: u32, two: u32, three: u32, filepath: windows_core::PSTR) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), searchpatha.into_param().abi(), filename.into_param().abi(), one, two, three, core::mem::transmute(filepath)) + FindFileInSearchPath(hprocess.param().abi(), searchpatha.param().abi(), filename.param().abi(), one, two, three, core::mem::transmute(filepath)) } #[inline] pub unsafe fn FlushInstructionCache(hprocess: P0, lpbaseaddress: Option<*const core::ffi::c_void>, dwsize: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpbaseaddress.unwrap_or(std::ptr::null())), dwsize).ok() + FlushInstructionCache(hprocess.param().abi(), core::mem::transmute(lpbaseaddress.unwrap_or(std::ptr::null())), 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 { @@ -383,10 +383,10 @@ pub unsafe fn GetSymLoadError() -> u32 { #[inline] pub unsafe fn GetThreadContext(hthread: P0, lpcontext: *mut CONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut CONTEXT) -> super::super::super::Foundation:: BOOL); - GetThreadContext(hthread.into_param().abi(), lpcontext).ok() + GetThreadContext(hthread.param().abi(), lpcontext).ok() } #[inline] pub unsafe fn GetThreadErrorMode() -> u32 { @@ -396,10 +396,10 @@ pub unsafe fn GetThreadErrorMode() -> u32 { #[inline] pub unsafe fn GetThreadSelectorEntry(hthread: P0, dwselector: u32, lpselectorentry: *mut LDT_ENTRY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hthread.into_param().abi(), dwselector, lpselectorentry).ok() + GetThreadSelectorEntry(hthread.param().abi(), dwselector, lpselectorentry).ok() } #[inline] pub unsafe 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) -> windows_core::Result<()> { @@ -409,10 +409,10 @@ pub unsafe fn GetThreadWaitChain(wcthandle: *const core::ffi::c_void, context: u #[inline] pub unsafe fn GetTimestampForLoadedLibrary(module: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn GetTimestampForLoadedLibrary(module : super::super::super::Foundation:: HMODULE) -> u32); - GetTimestampForLoadedLibrary(module.into_param().abi()) + GetTimestampForLoadedLibrary(module.param().abi()) } #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] @@ -425,70 +425,70 @@ pub unsafe fn GetXStateFeaturesMask(context: *const CONTEXT, featuremask: *mut u #[inline] pub unsafe fn ImageAddCertificate(filehandle: P0, certificate: *const super::super::super::Security::WinTrust::WIN_CERTIFICATE, index: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), certificate, index).ok() + ImageAddCertificate(filehandle.param().abi(), certificate, index).ok() } #[inline] pub unsafe fn ImageDirectoryEntryToData(base: *const core::ffi::c_void, mappedasimage: P0, directoryentry: IMAGE_DIRECTORY_ENTRY, size: *mut u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToData(base : *const core::ffi::c_void, mappedasimage : super::super::super::Foundation:: BOOLEAN, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32) -> *mut core::ffi::c_void); - ImageDirectoryEntryToData(base, mappedasimage.into_param().abi(), directoryentry, size) + ImageDirectoryEntryToData(base, mappedasimage.param().abi(), directoryentry, size) } #[inline] pub unsafe fn ImageDirectoryEntryToDataEx(base: *const core::ffi::c_void, mappedasimage: P0, directoryentry: IMAGE_DIRECTORY_ENTRY, size: *mut u32, foundheader: Option<*mut *mut IMAGE_SECTION_HEADER>) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToDataEx(base : *const core::ffi::c_void, mappedasimage : super::super::super::Foundation:: BOOLEAN, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32, foundheader : *mut *mut IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); - ImageDirectoryEntryToDataEx(base, mappedasimage.into_param().abi(), directoryentry, size, core::mem::transmute(foundheader.unwrap_or(std::ptr::null_mut()))) + ImageDirectoryEntryToDataEx(base, mappedasimage.param().abi(), directoryentry, size, core::mem::transmute(foundheader.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ImageEnumerateCertificates(filehandle: P0, typefilter: u16, certificatecount: *mut u32, indices: Option<&mut [u32]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), typefilter, 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.param().abi(), typefilter, 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: P0, certificateindex: u32, certificate: *mut super::super::super::Security::WinTrust::WIN_CERTIFICATE, requiredlength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), certificateindex, certificate, requiredlength).ok() + ImageGetCertificateData(filehandle.param().abi(), certificateindex, certificate, requiredlength).ok() } #[cfg(feature = "Win32_Security_WinTrust")] #[inline] pub unsafe fn ImageGetCertificateHeader(filehandle: P0, certificateindex: u32, certificateheader: *mut super::super::super::Security::WinTrust::WIN_CERTIFICATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), certificateindex, certificateheader).ok() + ImageGetCertificateHeader(filehandle.param().abi(), certificateindex, certificateheader).ok() } #[inline] pub unsafe fn ImageGetDigestStream(filehandle: P0, digestlevel: u32, digestfunction: DIGEST_FUNCTION, digesthandle: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), digestlevel, digestfunction, digesthandle).ok() + ImageGetDigestStream(filehandle.param().abi(), digestlevel, digestfunction, digesthandle).ok() } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn ImageLoad(dllname: P0, dllpath: P1) -> *mut LOADED_IMAGE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn ImageLoad(dllname : windows_core::PCSTR, dllpath : windows_core::PCSTR) -> *mut LOADED_IMAGE); - ImageLoad(dllname.into_param().abi(), dllpath.into_param().abi()) + ImageLoad(dllname.param().abi(), dllpath.param().abi()) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_SystemInformation")] @@ -507,10 +507,10 @@ pub unsafe fn ImageNtHeader(base: *const core::ffi::c_void) -> *mut IMAGE_NT_HEA #[inline] pub unsafe fn ImageRemoveCertificate(filehandle: P0, index: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn ImageRemoveCertificate(filehandle : super::super::super::Foundation:: HANDLE, index : u32) -> super::super::super::Foundation:: BOOL); - ImageRemoveCertificate(filehandle.into_param().abi(), index).ok() + ImageRemoveCertificate(filehandle.param().abi(), index).ok() } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_SystemInformation")] @@ -583,38 +583,38 @@ pub unsafe fn LocateXStateFeature(context: *const CONTEXT, featureid: u32, lengt #[inline] pub unsafe fn MakeSureDirectoryPathExists(dirpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn MakeSureDirectoryPathExists(dirpath : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - MakeSureDirectoryPathExists(dirpath.into_param().abi()).ok() + MakeSureDirectoryPathExists(dirpath.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn MapAndLoad(imagename: P0, dllpath: P1, loadedimage: *mut LOADED_IMAGE, dotdll: P2, readonly: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn MapAndLoad(imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, loadedimage : *mut LOADED_IMAGE, dotdll : super::super::super::Foundation:: BOOL, readonly : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - MapAndLoad(imagename.into_param().abi(), dllpath.into_param().abi(), loadedimage, dotdll.into_param().abi(), readonly.into_param().abi()).ok() + MapAndLoad(imagename.param().abi(), dllpath.param().abi(), loadedimage, dotdll.param().abi(), readonly.param().abi()).ok() } #[inline] pub unsafe fn MapFileAndCheckSumA(filename: P0, headersum: *mut u32, checksum: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn MapFileAndCheckSumA(filename : windows_core::PCSTR, headersum : *mut u32, checksum : *mut u32) -> u32); - MapFileAndCheckSumA(filename.into_param().abi(), headersum, checksum) + MapFileAndCheckSumA(filename.param().abi(), headersum, checksum) } #[inline] pub unsafe fn MapFileAndCheckSumW(filename: P0, headersum: *mut u32, checksum: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imagehlp.dll" "system" fn MapFileAndCheckSumW(filename : windows_core::PCWSTR, headersum : *mut u32, checksum : *mut u32) -> u32); - MapFileAndCheckSumW(filename.into_param().abi(), headersum, checksum) + MapFileAndCheckSumW(filename.param().abi(), headersum, checksum) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -631,11 +631,11 @@ pub unsafe fn MiniDumpReadDumpStream(baseofdump: *const core::ffi::c_void, strea #[inline] pub unsafe fn MiniDumpWriteDump(hprocess: P0, processid: u32, hfile: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), processid, hfile.into_param().abi(), dumptype, core::mem::transmute(exceptionparam.unwrap_or(std::ptr::null())), core::mem::transmute(userstreamparam.unwrap_or(std::ptr::null())), core::mem::transmute(callbackparam.unwrap_or(std::ptr::null()))).ok() + MiniDumpWriteDump(hprocess.param().abi(), processid, hfile.param().abi(), dumptype, core::mem::transmute(exceptionparam.unwrap_or(std::ptr::null())), core::mem::transmute(userstreamparam.unwrap_or(std::ptr::null())), core::mem::transmute(callbackparam.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn OpenThreadWaitChainSession(flags: OPEN_THREAD_WAIT_CHAIN_SESSION_FLAGS, callback: PWAITCHAINCALLBACK) -> *mut core::ffi::c_void { @@ -645,18 +645,18 @@ pub unsafe fn OpenThreadWaitChainSession(flags: OPEN_THREAD_WAIT_CHAIN_SESSION_F #[inline] pub unsafe fn OutputDebugStringA(lpoutputstring: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OutputDebugStringA(lpoutputstring : windows_core::PCSTR)); - OutputDebugStringA(lpoutputstring.into_param().abi()) + OutputDebugStringA(lpoutputstring.param().abi()) } #[inline] pub unsafe fn OutputDebugStringW(lpoutputstring: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn OutputDebugStringW(lpoutputstring : windows_core::PCWSTR)); - OutputDebugStringW(lpoutputstring.into_param().abi()) + OutputDebugStringW(lpoutputstring.param().abi()) } #[inline] pub unsafe fn RaiseException(dwexceptioncode: u32, dwexceptionflags: u32, lparguments: Option<&[usize]>) { @@ -672,10 +672,10 @@ pub unsafe fn RaiseFailFastException(pexceptionrecord: Option<*const EXCEPTION_R #[inline] pub unsafe fn RangeMapAddPeImageSections(rmaphandle: *const core::ffi::c_void, imagename: P0, mappedimage: *const core::ffi::c_void, mappingbytes: u32, imagebase: u64, usertag: u64, mappingflags: u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(rmaphandle, imagename.into_param().abi(), mappedimage, mappingbytes, imagebase, usertag, mappingflags) + RangeMapAddPeImageSections(rmaphandle, imagename.param().abi(), mappedimage, mappingbytes, imagebase, usertag, mappingflags) } #[inline] pub unsafe fn RangeMapCreate() -> *mut core::ffi::c_void { @@ -705,34 +705,34 @@ pub unsafe fn RangeMapWrite(rmaphandle: *const core::ffi::c_void, offset: u64, b #[inline] pub unsafe fn ReBaseImage(currentimagename: P0, symbolpath: P1, frebase: P2, frebasesysfileok: P3, fgoingdown: P4, checkimagesize: u32, oldimagesize: *mut u32, oldimagebase: *mut usize, newimagesize: *mut u32, newimagebase: *mut usize, timestamp: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), symbolpath.into_param().abi(), frebase.into_param().abi(), frebasesysfileok.into_param().abi(), fgoingdown.into_param().abi(), checkimagesize, oldimagesize, oldimagebase, newimagesize, newimagebase, timestamp).ok() + ReBaseImage(currentimagename.param().abi(), symbolpath.param().abi(), frebase.param().abi(), frebasesysfileok.param().abi(), fgoingdown.param().abi(), checkimagesize, oldimagesize, oldimagebase, newimagesize, newimagebase, timestamp).ok() } #[inline] pub unsafe fn ReBaseImage64(currentimagename: P0, symbolpath: P1, frebase: P2, frebasesysfileok: P3, fgoingdown: P4, checkimagesize: u32, oldimagesize: *mut u32, oldimagebase: *mut u64, newimagesize: *mut u32, newimagebase: *mut u64, timestamp: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), symbolpath.into_param().abi(), frebase.into_param().abi(), frebasesysfileok.into_param().abi(), fgoingdown.into_param().abi(), checkimagesize, oldimagesize, oldimagebase, newimagesize, newimagebase, timestamp).ok() + ReBaseImage64(currentimagename.param().abi(), symbolpath.param().abi(), frebase.param().abi(), frebasesysfileok.param().abi(), fgoingdown.param().abi(), checkimagesize, oldimagesize, oldimagebase, newimagesize, newimagebase, timestamp).ok() } #[inline] pub unsafe fn ReadProcessMemory(hprocess: P0, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, nsize: usize, lpnumberofbytesread: Option<*mut usize>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpbaseaddress, lpbuffer, nsize, core::mem::transmute(lpnumberofbytesread.unwrap_or(std::ptr::null_mut()))).ok() + ReadProcessMemory(hprocess.param().abi(), lpbaseaddress, lpbuffer, nsize, core::mem::transmute(lpnumberofbytesread.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RegisterWaitChainCOMCallback(callstatecallback: PCOGETCALLSTATE, activationstatecallback: PCOGETACTIVATIONSTATE) { @@ -742,10 +742,10 @@ pub unsafe fn RegisterWaitChainCOMCallback(callstatecallback: PCOGETCALLSTATE, a #[inline] pub unsafe fn RemoveInvalidModuleList(hprocess: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn RemoveInvalidModuleList(hprocess : super::super::super::Foundation:: HANDLE)); - RemoveInvalidModuleList(hprocess.into_param().abi()) + RemoveInvalidModuleList(hprocess.param().abi()) } #[inline] pub unsafe fn RemoveVectoredContinueHandler(handle: *const core::ffi::c_void) -> u32 { @@ -760,11 +760,11 @@ pub unsafe fn RemoveVectoredExceptionHandler(handle: *const core::ffi::c_void) - #[inline] pub unsafe fn ReportSymbolLoadSummary(hprocess: P0, ploadmodule: P1, psymboldata: *const DBGHELP_DATA_REPORT_STRUCT) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), ploadmodule.into_param().abi(), psymboldata) + ReportSymbolLoadSummary(hprocess.param().abi(), ploadmodule.param().abi(), psymboldata) } #[cfg(target_arch = "aarch64")] #[inline] @@ -836,19 +836,19 @@ pub unsafe fn RtlGrowFunctionTable(dynamictable: *mut core::ffi::c_void, newentr #[inline] pub unsafe fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: Option<*const core::ffi::c_void>, outofprocesscallbackdll: P0) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: 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) -> super::super::super::Foundation:: BOOLEAN); - RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), outofprocesscallbackdll.into_param().abi()) + RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), outofprocesscallbackdll.param().abi()) } #[cfg(target_arch = "x86_64")] #[inline] pub unsafe fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: Option<*const core::ffi::c_void>, outofprocesscallbackdll: P0) -> super::super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: 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) -> super::super::super::Foundation:: BOOLEAN); - RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), outofprocesscallbackdll.into_param().abi()) + RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), outofprocesscallbackdll.param().abi()) } #[cfg(target_arch = "aarch64")] #[inline] @@ -907,20 +907,20 @@ pub unsafe fn RtlVirtualUnwind(handlertype: RTL_VIRTUAL_UNWIND_HANDLER_TYPE, ima #[inline] pub unsafe fn SearchTreeForFile(rootpath: P0, inputpathname: P1, outputpathbuffer: windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SearchTreeForFile(rootpath : windows_core::PCSTR, inputpathname : windows_core::PCSTR, outputpathbuffer : windows_core::PSTR) -> super::super::super::Foundation:: BOOL); - SearchTreeForFile(rootpath.into_param().abi(), inputpathname.into_param().abi(), core::mem::transmute(outputpathbuffer)).ok() + SearchTreeForFile(rootpath.param().abi(), inputpathname.param().abi(), core::mem::transmute(outputpathbuffer)).ok() } #[inline] pub unsafe fn SearchTreeForFileW(rootpath: P0, inputpathname: P1, outputpathbuffer: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SearchTreeForFileW(rootpath : windows_core::PCWSTR, inputpathname : windows_core::PCWSTR, outputpathbuffer : windows_core::PWSTR) -> super::super::super::Foundation:: BOOL); - SearchTreeForFileW(rootpath.into_param().abi(), inputpathname.into_param().abi(), core::mem::transmute(outputpathbuffer)).ok() + SearchTreeForFileW(rootpath.param().abi(), inputpathname.param().abi(), core::mem::transmute(outputpathbuffer)).ok() } #[inline] pub unsafe fn SetCheckUserInterruptShared(lpstartaddress: LPCALL_BACK_USER_INTERRUPT_ROUTINE) { @@ -955,10 +955,10 @@ pub unsafe fn SetSymLoadError(error: u32) { #[inline] pub unsafe fn SetThreadContext(hthread: P0, lpcontext: *const CONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const CONTEXT) -> super::super::super::Foundation:: BOOL); - SetThreadContext(hthread.into_param().abi(), lpcontext).ok() + SetThreadContext(hthread.param().abi(), lpcontext).ok() } #[inline] pub unsafe fn SetThreadErrorMode(dwnewmode: THREAD_ERROR_MODE, lpoldmode: Option<*mut THREAD_ERROR_MODE>) -> windows_core::Result<()> { @@ -982,145 +982,145 @@ pub unsafe fn SetXStateFeaturesMask(context: *mut CONTEXT, featuremask: u64) -> #[inline] pub unsafe fn StackWalk(machinetype: u32, hprocess: P0, hthread: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(machinetype, hprocess.into_param().abi(), hthread.into_param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress) + StackWalk(machinetype, hprocess.param().abi(), hthread.param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress) } #[inline] pub unsafe fn StackWalk2(machinetype: u32, hprocess: P0, hthread: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(machinetype, hprocess.into_param().abi(), hthread.into_param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress, gettargetattributevalue, flags) + StackWalk2(machinetype, hprocess.param().abi(), hthread.param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress, gettargetattributevalue, flags) } #[inline] pub unsafe fn StackWalk64(machinetype: u32, hprocess: P0, hthread: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(machinetype, hprocess.into_param().abi(), hthread.into_param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress) + StackWalk64(machinetype, hprocess.param().abi(), hthread.param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress) } #[inline] pub unsafe fn StackWalkEx(machinetype: u32, hprocess: P0, hthread: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(machinetype, hprocess.into_param().abi(), hthread.into_param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress, flags) + StackWalkEx(machinetype, hprocess.param().abi(), hthread.param().abi(), stackframe, contextrecord, readmemoryroutine, functiontableaccessroutine, getmodulebaseroutine, translateaddress, flags) } #[inline] pub unsafe fn SymAddSourceStream(hprocess: P0, base: u64, streamfile: P1, buffer: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), base, streamfile.into_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.param().abi(), 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: P0, base: u64, streamfile: P1, buffer: Option<&[u8]>) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), base, streamfile.into_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.param().abi(), 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: P0, base: u64, filespec: P1, buffer: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), base, filespec.into_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.param().abi(), 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: P0, baseofdll: u64, name: P1, address: u64, size: u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, name.into_param().abi(), address, size, flags).ok() + SymAddSymbol(hprocess.param().abi(), baseofdll, name.param().abi(), address, size, flags).ok() } #[inline] pub unsafe fn SymAddSymbolW(hprocess: P0, baseofdll: u64, name: P1, address: u64, size: u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, name.into_param().abi(), address, size, flags).ok() + SymAddSymbolW(hprocess.param().abi(), baseofdll, name.param().abi(), address, size, flags).ok() } #[inline] pub unsafe fn SymAddrIncludeInlineTrace(hprocess: P0, address: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymAddrIncludeInlineTrace(hprocess : super::super::super::Foundation:: HANDLE, address : u64) -> u32); - SymAddrIncludeInlineTrace(hprocess.into_param().abi(), address) + SymAddrIncludeInlineTrace(hprocess.param().abi(), address) } #[inline] pub unsafe fn SymCleanup(hprocess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymCleanup(hprocess : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - SymCleanup(hprocess.into_param().abi()).ok() + SymCleanup(hprocess.param().abi()).ok() } #[inline] pub unsafe fn SymCompareInlineTrace(hprocess: P0, address1: u64, inlinecontext1: u32, retaddress1: u64, address2: u64, retaddress2: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address1, inlinecontext1, retaddress1, address2, retaddress2) + SymCompareInlineTrace(hprocess.param().abi(), address1, inlinecontext1, retaddress1, address2, retaddress2) } #[inline] pub unsafe fn SymDeleteSymbol(hprocess: P0, baseofdll: u64, name: P1, address: u64, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, name.into_param().abi(), address, flags).ok() + SymDeleteSymbol(hprocess.param().abi(), baseofdll, name.param().abi(), address, flags).ok() } #[inline] pub unsafe fn SymDeleteSymbolW(hprocess: P0, baseofdll: u64, name: P1, address: u64, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, name.into_param().abi(), address, flags).ok() + SymDeleteSymbolW(hprocess.param().abi(), baseofdll, name.param().abi(), address, flags).ok() } #[inline] pub unsafe fn SymEnumLines(hprocess: P0, base: u64, obj: P1, file: P2, enumlinescallback: PSYM_ENUMLINES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), base, obj.into_param().abi(), file.into_param().abi(), enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumLines(hprocess.param().abi(), base, obj.param().abi(), file.param().abi(), enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumLinesW(hprocess: P0, base: u64, obj: P1, file: P2, enumlinescallback: PSYM_ENUMLINES_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), base, obj.into_param().abi(), file.into_param().abi(), enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumLinesW(hprocess.param().abi(), base, obj.param().abi(), file.param().abi(), enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumProcesses(enumprocessescallback: PSYM_ENUMPROCESSES_CALLBACK, usercontext: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -1130,368 +1130,368 @@ pub unsafe fn SymEnumProcesses(enumprocessescallback: PSYM_ENUMPROCESSES_CALLBAC #[inline] pub unsafe fn SymEnumSourceFileTokens(hprocess: P0, base: u64, callback: PENUMSOURCEFILETOKENSCALLBACK) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFileTokens(hprocess : super::super::super::Foundation:: HANDLE, base : u64, callback : PENUMSOURCEFILETOKENSCALLBACK) -> super::super::super::Foundation:: BOOL); - SymEnumSourceFileTokens(hprocess.into_param().abi(), base, callback).ok() + SymEnumSourceFileTokens(hprocess.param().abi(), base, callback).ok() } #[inline] pub unsafe fn SymEnumSourceFiles(hprocess: P0, modbase: u64, mask: P1, cbsrcfiles: PSYM_ENUMSOURCEFILES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), modbase, mask.into_param().abi(), cbsrcfiles, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSourceFiles(hprocess.param().abi(), modbase, mask.param().abi(), cbsrcfiles, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumSourceFilesW(hprocess: P0, modbase: u64, mask: P1, cbsrcfiles: PSYM_ENUMSOURCEFILES_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), modbase, mask.into_param().abi(), cbsrcfiles, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSourceFilesW(hprocess.param().abi(), modbase, mask.param().abi(), cbsrcfiles, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumSourceLines(hprocess: P0, base: u64, obj: P1, file: P2, line: u32, flags: u32, enumlinescallback: PSYM_ENUMLINES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), base, obj.into_param().abi(), file.into_param().abi(), line, flags, enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSourceLines(hprocess.param().abi(), base, obj.param().abi(), file.param().abi(), line, flags, enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumSourceLinesW(hprocess: P0, base: u64, obj: P1, file: P2, line: u32, flags: u32, enumlinescallback: PSYM_ENUMLINES_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), base, obj.into_param().abi(), file.into_param().abi(), line, flags, enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSourceLinesW(hprocess.param().abi(), base, obj.param().abi(), file.param().abi(), line, flags, enumlinescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumSym(hprocess: P0, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))) + SymEnumSym(hprocess.param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SymEnumSymbols(hprocess: P0, baseofdll: u64, mask: P1, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, mask.into_param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSymbols(hprocess.param().abi(), baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumSymbolsEx(hprocess: P0, baseofdll: u64, mask: P1, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, mask.into_param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() + SymEnumSymbolsEx(hprocess.param().abi(), baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() } #[inline] pub unsafe fn SymEnumSymbolsExW(hprocess: P0, baseofdll: u64, mask: P1, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, mask.into_param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() + SymEnumSymbolsExW(hprocess.param().abi(), baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() } #[inline] pub unsafe fn SymEnumSymbolsForAddr(hprocess: P0, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSymbolsForAddr(hprocess.param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumSymbolsForAddrW(hprocess: P0, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSymbolsForAddrW(hprocess.param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumSymbolsW(hprocess: P0, baseofdll: u64, mask: P1, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, mask.into_param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumSymbolsW(hprocess.param().abi(), baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumTypes(hprocess: P0, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumTypes(hprocess.param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumTypesByName(hprocess: P0, baseofdll: u64, mask: P1, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, mask.into_param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumTypesByName(hprocess.param().abi(), baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumTypesByNameW(hprocess: P0, baseofdll: u64, mask: P1, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, mask.into_param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumTypesByNameW(hprocess.param().abi(), baseofdll, mask.param().abi(), enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumTypesW(hprocess: P0, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumTypesW(hprocess.param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateModules(hprocess: P0, enummodulescallback: PSYM_ENUMMODULES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enummodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumerateModules(hprocess.param().abi(), enummodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumerateModules64(hprocess: P0, enummodulescallback: PSYM_ENUMMODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enummodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumerateModules64(hprocess.param().abi(), enummodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumerateModulesW64(hprocess: P0, enummodulescallback: PSYM_ENUMMODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), enummodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumerateModulesW64(hprocess.param().abi(), enummodulescallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateSymbols(hprocess: P0, baseofdll: u32, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumerateSymbols(hprocess.param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumerateSymbols64(hprocess: P0, baseofdll: u64, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumerateSymbols64(hprocess.param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateSymbolsW(hprocess: P0, baseofdll: u32, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumerateSymbolsW(hprocess.param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymEnumerateSymbolsW64(hprocess: P0, baseofdll: u64, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK64W, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymEnumerateSymbolsW64(hprocess.param().abi(), baseofdll, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymFindDebugInfoFile(hprocess: P0, filename: P1, debugfilepath: windows_core::PSTR, callback: PFIND_DEBUG_FILE_CALLBACK, callerdata: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), filename.into_param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); + let result__ = SymFindDebugInfoFile(hprocess.param().abi(), filename.param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SymFindDebugInfoFileW(hprocess: P0, filename: P1, debugfilepath: windows_core::PWSTR, callback: PFIND_DEBUG_FILE_CALLBACKW, callerdata: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), filename.into_param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); + let result__ = SymFindDebugInfoFileW(hprocess.param().abi(), filename.param().abi(), core::mem::transmute(debugfilepath), callback, core::mem::transmute(callerdata.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SymFindExecutableImage(hprocess: P0, filename: P1, imagefilepath: windows_core::PSTR, callback: PFIND_EXE_FILE_CALLBACK, callerdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), filename.into_param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); + let result__ = SymFindExecutableImage(hprocess.param().abi(), filename.param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SymFindExecutableImageW(hprocess: P0, filename: P1, imagefilepath: windows_core::PWSTR, callback: PFIND_EXE_FILE_CALLBACKW, callerdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), filename.into_param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); + let result__ = SymFindExecutableImageW(hprocess.param().abi(), filename.param().abi(), core::mem::transmute(imagefilepath), callback, callerdata); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SymFindFileInPath(hprocess: P0, searchpatha: P1, filename: P2, id: Option<*const core::ffi::c_void>, two: u32, three: u32, flags: SYM_FIND_ID_OPTION, foundfile: windows_core::PSTR, callback: PFINDFILEINPATHCALLBACK, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), searchpatha.into_param().abi(), filename.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null())), two, three, flags, core::mem::transmute(foundfile), callback, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + SymFindFileInPath(hprocess.param().abi(), searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null())), two, three, flags, core::mem::transmute(foundfile), callback, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymFindFileInPathW(hprocess: P0, 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: PFINDFILEINPATHCALLBACKW, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), searchpatha.into_param().abi(), filename.into_param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null())), two, three, flags, core::mem::transmute(foundfile), callback, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + SymFindFileInPathW(hprocess.param().abi(), searchpatha.param().abi(), filename.param().abi(), core::mem::transmute(id.unwrap_or(std::ptr::null())), two, three, flags, core::mem::transmute(foundfile), callback, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymFromAddr(hprocess: P0, address: u64, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() + SymFromAddr(hprocess.param().abi(), address, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() } #[inline] pub unsafe fn SymFromAddrW(hprocess: P0, address: u64, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() + SymFromAddrW(hprocess.param().abi(), address, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() } #[inline] pub unsafe fn SymFromIndex(hprocess: P0, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, index, symbol).ok() + SymFromIndex(hprocess.param().abi(), baseofdll, index, symbol).ok() } #[inline] pub unsafe fn SymFromIndexW(hprocess: P0, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, index, symbol).ok() + SymFromIndexW(hprocess.param().abi(), baseofdll, index, symbol).ok() } #[inline] pub unsafe fn SymFromInlineContext(hprocess: P0, address: u64, inlinecontext: u32, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address, inlinecontext, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() + SymFromInlineContext(hprocess.param().abi(), address, inlinecontext, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() } #[inline] pub unsafe fn SymFromInlineContextW(hprocess: P0, address: u64, inlinecontext: u32, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address, inlinecontext, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() + SymFromInlineContextW(hprocess.param().abi(), address, inlinecontext, core::mem::transmute(displacement.unwrap_or(std::ptr::null_mut())), symbol).ok() } #[inline] pub unsafe fn SymFromName(hprocess: P0, name: P1, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), name.into_param().abi(), symbol).ok() + SymFromName(hprocess.param().abi(), name.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymFromNameW(hprocess: P0, name: P1, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), name.into_param().abi(), symbol).ok() + SymFromNameW(hprocess.param().abi(), name.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymFromToken(hprocess: P0, base: u64, token: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), base, token, symbol).ok() + SymFromToken(hprocess.param().abi(), base, token, symbol).ok() } #[inline] pub unsafe fn SymFromTokenW(hprocess: P0, base: u64, token: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), base, token, symbol).ok() + SymFromTokenW(hprocess.param().abi(), base, token, symbol).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymFunctionTableAccess(hprocess: P0, addrbase: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFunctionTableAccess(hprocess : super::super::super::Foundation:: HANDLE, addrbase : u32) -> *mut core::ffi::c_void); - SymFunctionTableAccess(hprocess.into_param().abi(), addrbase) + SymFunctionTableAccess(hprocess.param().abi(), addrbase) } #[inline] pub unsafe fn SymFunctionTableAccess64(hprocess: P0, addrbase: u64) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymFunctionTableAccess64(hprocess : super::super::super::Foundation:: HANDLE, addrbase : u64) -> *mut core::ffi::c_void); - SymFunctionTableAccess64(hprocess.into_param().abi(), addrbase) + SymFunctionTableAccess64(hprocess.param().abi(), addrbase) } #[inline] pub unsafe fn SymFunctionTableAccess64AccessRoutines(hprocess: P0, addrbase: u64, readmemoryroutine: PREAD_PROCESS_MEMORY_ROUTINE64, getmodulebaseroutine: PGET_MODULE_BASE_ROUTINE64) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), addrbase, readmemoryroutine, getmodulebaseroutine) + SymFunctionTableAccess64AccessRoutines(hprocess.param().abi(), addrbase, readmemoryroutine, getmodulebaseroutine) } #[inline] pub unsafe fn SymGetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS) -> super::super::super::Foundation::BOOL { @@ -1501,12 +1501,12 @@ pub unsafe fn SymGetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS) -> super:: #[inline] pub unsafe fn SymGetFileLineOffsets64(hprocess: P0, modulename: P1, filename: P2, buffer: &mut [u64]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), modulename.into_param().abi(), filename.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + SymGetFileLineOffsets64(hprocess.param().abi(), 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 { @@ -1522,182 +1522,182 @@ pub unsafe fn SymGetHomeDirectoryW(r#type: IMAGEHLP_HD_TYPE, dir: &mut [u16]) -> #[inline] pub unsafe fn SymGetLineFromAddr(hprocess: P0, dwaddr: u32, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwaddr, pdwdisplacement, line).ok() + SymGetLineFromAddr(hprocess.param().abi(), dwaddr, pdwdisplacement, line).ok() } #[inline] pub unsafe fn SymGetLineFromAddr64(hprocess: P0, qwaddr: u64, pdwdisplacement: *mut u32, line64: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), qwaddr, pdwdisplacement, line64).ok() + SymGetLineFromAddr64(hprocess.param().abi(), qwaddr, pdwdisplacement, line64).ok() } #[inline] pub unsafe fn SymGetLineFromAddrW64(hprocess: P0, dwaddr: u64, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwaddr, pdwdisplacement, line).ok() + SymGetLineFromAddrW64(hprocess.param().abi(), dwaddr, pdwdisplacement, line).ok() } #[inline] pub unsafe fn SymGetLineFromInlineContext(hprocess: P0, qwaddr: u64, inlinecontext: u32, qwmodulebaseaddress: u64, pdwdisplacement: *mut u32, line64: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), qwaddr, inlinecontext, qwmodulebaseaddress, pdwdisplacement, line64).ok() + SymGetLineFromInlineContext(hprocess.param().abi(), qwaddr, inlinecontext, qwmodulebaseaddress, pdwdisplacement, line64).ok() } #[inline] pub unsafe fn SymGetLineFromInlineContextW(hprocess: P0, dwaddr: u64, inlinecontext: u32, qwmodulebaseaddress: u64, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwaddr, inlinecontext, qwmodulebaseaddress, pdwdisplacement, line).ok() + SymGetLineFromInlineContextW(hprocess.param().abi(), dwaddr, inlinecontext, qwmodulebaseaddress, pdwdisplacement, line).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLineFromName(hprocess: P0, modulename: P1, filename: P2, dwlinenumber: u32, pldisplacement: *mut i32, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), modulename.into_param().abi(), filename.into_param().abi(), dwlinenumber, pldisplacement, line).ok() + SymGetLineFromName(hprocess.param().abi(), modulename.param().abi(), filename.param().abi(), dwlinenumber, pldisplacement, line).ok() } #[inline] pub unsafe fn SymGetLineFromName64(hprocess: P0, modulename: P1, filename: P2, dwlinenumber: u32, pldisplacement: *mut i32, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), modulename.into_param().abi(), filename.into_param().abi(), dwlinenumber, pldisplacement, line).ok() + SymGetLineFromName64(hprocess.param().abi(), modulename.param().abi(), filename.param().abi(), dwlinenumber, pldisplacement, line).ok() } #[inline] pub unsafe fn SymGetLineFromNameW64(hprocess: P0, modulename: P1, filename: P2, dwlinenumber: u32, pldisplacement: *mut i32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), modulename.into_param().abi(), filename.into_param().abi(), dwlinenumber, pldisplacement, line).ok() + SymGetLineFromNameW64(hprocess.param().abi(), modulename.param().abi(), filename.param().abi(), dwlinenumber, pldisplacement, line).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLineNext(hprocess: P0, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); - SymGetLineNext(hprocess.into_param().abi(), line).ok() + SymGetLineNext(hprocess.param().abi(), line).ok() } #[inline] pub unsafe fn SymGetLineNext64(hprocess: P0, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); - SymGetLineNext64(hprocess.into_param().abi(), line).ok() + SymGetLineNext64(hprocess.param().abi(), line).ok() } #[inline] pub unsafe fn SymGetLineNextW64(hprocess: P0, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNextW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); - SymGetLineNextW64(hprocess.into_param().abi(), line).ok() + SymGetLineNextW64(hprocess.param().abi(), line).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLinePrev(hprocess: P0, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); - SymGetLinePrev(hprocess.into_param().abi(), line).ok() + SymGetLinePrev(hprocess.param().abi(), line).ok() } #[inline] pub unsafe fn SymGetLinePrev64(hprocess: P0, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); - SymGetLinePrev64(hprocess.into_param().abi(), line).ok() + SymGetLinePrev64(hprocess.param().abi(), line).ok() } #[inline] pub unsafe fn SymGetLinePrevW64(hprocess: P0, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrevW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); - SymGetLinePrevW64(hprocess.into_param().abi(), line).ok() + SymGetLinePrevW64(hprocess.param().abi(), line).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleBase(hprocess: P0, dwaddr: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleBase(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32) -> u32); - SymGetModuleBase(hprocess.into_param().abi(), dwaddr) + SymGetModuleBase(hprocess.param().abi(), dwaddr) } #[inline] pub unsafe fn SymGetModuleBase64(hprocess: P0, qwaddr: u64) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleBase64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64) -> u64); - SymGetModuleBase64(hprocess.into_param().abi(), qwaddr) + SymGetModuleBase64(hprocess.param().abi(), qwaddr) } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleInfo(hprocess: P0, dwaddr: u32, moduleinfo: *mut IMAGEHLP_MODULE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwaddr, moduleinfo).ok() + SymGetModuleInfo(hprocess.param().abi(), dwaddr, moduleinfo).ok() } #[inline] pub unsafe fn SymGetModuleInfo64(hprocess: P0, qwaddr: u64, moduleinfo: *mut IMAGEHLP_MODULE64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), qwaddr, moduleinfo).ok() + SymGetModuleInfo64(hprocess.param().abi(), qwaddr, moduleinfo).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleInfoW(hprocess: P0, dwaddr: u32, moduleinfo: *mut IMAGEHLP_MODULEW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwaddr, moduleinfo).ok() + SymGetModuleInfoW(hprocess.param().abi(), dwaddr, moduleinfo).ok() } #[inline] pub unsafe fn SymGetModuleInfoW64(hprocess: P0, qwaddr: u64, moduleinfo: *mut IMAGEHLP_MODULEW64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), qwaddr, moduleinfo).ok() + SymGetModuleInfoW64(hprocess.param().abi(), qwaddr, moduleinfo).ok() } #[inline] pub unsafe fn SymGetOmaps(hprocess: P0, baseofdll: u64, omapto: *mut *mut OMAP, comapto: *mut u64, omapfrom: *mut *mut OMAP, comapfrom: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, omapto, comapto, omapfrom, comapfrom).ok() + SymGetOmaps(hprocess.param().abi(), baseofdll, omapto, comapto, omapfrom, comapfrom).ok() } #[inline] pub unsafe fn SymGetOptions() -> u32 { @@ -1707,557 +1707,557 @@ pub unsafe fn SymGetOptions() -> u32 { #[inline] pub unsafe fn SymGetScope(hprocess: P0, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, index, symbol).ok() + SymGetScope(hprocess.param().abi(), baseofdll, index, symbol).ok() } #[inline] pub unsafe fn SymGetScopeW(hprocess: P0, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), baseofdll, index, symbol).ok() + SymGetScopeW(hprocess.param().abi(), baseofdll, index, symbol).ok() } #[inline] pub unsafe fn SymGetSearchPath(hprocess: P0, searchpatha: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() + SymGetSearchPath(hprocess.param().abi(), core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSearchPathW(hprocess: P0, searchpatha: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() + SymGetSearchPathW(hprocess.param().abi(), core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceFile(hprocess: P0, base: u64, params: P1, filespec: P2, filepath: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), base, params.into_param().abi(), filespec.into_param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFile(hprocess.param().abi(), 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: P0, base: u64, filespec: P1, pchecksumtype: *mut u32, pchecksum: &mut [u8], pactualbyteswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), base, filespec.into_param().abi(), pchecksumtype, core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), pactualbyteswritten).ok() + SymGetSourceFileChecksum(hprocess.param().abi(), base, filespec.param().abi(), pchecksumtype, core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), pactualbyteswritten).ok() } #[inline] pub unsafe fn SymGetSourceFileChecksumW(hprocess: P0, base: u64, filespec: P1, pchecksumtype: *mut u32, pchecksum: &mut [u8], pactualbyteswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), base, filespec.into_param().abi(), pchecksumtype, core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), pactualbyteswritten).ok() + SymGetSourceFileChecksumW(hprocess.param().abi(), base, filespec.param().abi(), pchecksumtype, core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), pactualbyteswritten).ok() } #[inline] pub unsafe fn SymGetSourceFileFromToken(hprocess: P0, token: *const core::ffi::c_void, params: P1, filepath: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), token, params.into_param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFileFromToken(hprocess.param().abi(), token, params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceFileFromTokenByTokenName(hprocess: P0, token: *const core::ffi::c_void, tokenname: P1, params: P2, filepath: &mut [u8]) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), token, tokenname.into_param().abi(), params.into_param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) + SymGetSourceFileFromTokenByTokenName(hprocess.param().abi(), token, tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) } #[inline] pub unsafe fn SymGetSourceFileFromTokenByTokenNameW(hprocess: P0, token: *const core::ffi::c_void, tokenname: P1, params: P2, filepath: &mut [u16]) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), token, tokenname.into_param().abi(), params.into_param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) + SymGetSourceFileFromTokenByTokenNameW(hprocess.param().abi(), token, tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) } #[inline] pub unsafe fn SymGetSourceFileFromTokenW(hprocess: P0, token: *const core::ffi::c_void, params: P1, filepath: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), token, params.into_param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFileFromTokenW(hprocess.param().abi(), token, params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSourceFileToken(hprocess: P0, base: u64, filespec: P1, token: *mut *mut core::ffi::c_void, size: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), base, filespec.into_param().abi(), token, size).ok() + SymGetSourceFileToken(hprocess.param().abi(), base, filespec.param().abi(), token, size).ok() } #[inline] pub unsafe fn SymGetSourceFileTokenByTokenName(hprocess: P0, base: u64, filespec: P1, tokenname: P2, tokenparameters: P3, token: *mut *mut core::ffi::c_void, size: *mut u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hprocess.into_param().abi(), base, filespec.into_param().abi(), tokenname.into_param().abi(), tokenparameters.into_param().abi(), token, size) + SymGetSourceFileTokenByTokenName(hprocess.param().abi(), base, filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), token, size) } #[inline] pub unsafe fn SymGetSourceFileTokenByTokenNameW(hprocess: P0, base: u64, filespec: P1, tokenname: P2, tokenparameters: P3, token: *mut *mut core::ffi::c_void, size: *mut u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hprocess.into_param().abi(), base, filespec.into_param().abi(), tokenname.into_param().abi(), tokenparameters.into_param().abi(), token, size) + SymGetSourceFileTokenByTokenNameW(hprocess.param().abi(), base, filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), token, size) } #[inline] pub unsafe fn SymGetSourceFileTokenW(hprocess: P0, base: u64, filespec: P1, token: *mut *mut core::ffi::c_void, size: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), base, filespec.into_param().abi(), token, size).ok() + SymGetSourceFileTokenW(hprocess.param().abi(), base, filespec.param().abi(), token, size).ok() } #[inline] pub unsafe fn SymGetSourceFileW(hprocess: P0, base: u64, params: P1, filespec: P2, filepath: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), base, params.into_param().abi(), filespec.into_param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() + SymGetSourceFileW(hprocess.param().abi(), 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: P0, token: *const core::ffi::c_void, params: P1, varname: P2, value: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), token, params.into_param().abi(), varname.into_param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() + SymGetSourceVarFromToken(hprocess.param().abi(), 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: P0, token: *const core::ffi::c_void, params: P1, varname: P2, value: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), token, params.into_param().abi(), varname.into_param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() + SymGetSourceVarFromTokenW(hprocess.param().abi(), 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: P0, dwaddr: u32, pdwdisplacement: Option<*mut u32>, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwaddr, core::mem::transmute(pdwdisplacement.unwrap_or(std::ptr::null_mut())), symbol).ok() + SymGetSymFromAddr(hprocess.param().abi(), dwaddr, core::mem::transmute(pdwdisplacement.unwrap_or(std::ptr::null_mut())), symbol).ok() } #[inline] pub unsafe fn SymGetSymFromAddr64(hprocess: P0, qwaddr: u64, pdwdisplacement: Option<*mut u64>, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), qwaddr, core::mem::transmute(pdwdisplacement.unwrap_or(std::ptr::null_mut())), symbol).ok() + SymGetSymFromAddr64(hprocess.param().abi(), qwaddr, core::mem::transmute(pdwdisplacement.unwrap_or(std::ptr::null_mut())), symbol).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymFromName(hprocess: P0, name: P1, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), name.into_param().abi(), symbol).ok() + SymGetSymFromName(hprocess.param().abi(), name.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymGetSymFromName64(hprocess: P0, name: P1, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), name.into_param().abi(), symbol).ok() + SymGetSymFromName64(hprocess.param().abi(), name.param().abi(), symbol).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymNext(hprocess: P0, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); - SymGetSymNext(hprocess.into_param().abi(), symbol).ok() + SymGetSymNext(hprocess.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymGetSymNext64(hprocess: P0, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); - SymGetSymNext64(hprocess.into_param().abi(), symbol).ok() + SymGetSymNext64(hprocess.param().abi(), symbol).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymPrev(hprocess: P0, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); - SymGetSymPrev(hprocess.into_param().abi(), symbol).ok() + SymGetSymPrev(hprocess.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymGetSymPrev64(hprocess: P0, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); - SymGetSymPrev64(hprocess.into_param().abi(), symbol).ok() + SymGetSymPrev64(hprocess.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymGetSymbolFile(hprocess: P0, sympath: P1, imagefile: P2, r#type: IMAGEHLP_SF_TYPE, symbolfile: &mut [u8], dbgfile: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymbolFile(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCSTR, imagefile : windows_core::PCSTR, r#type : u32, symbolfile : windows_core::PSTR, csymbolfile : usize, dbgfile : windows_core::PSTR, cdbgfile : usize) -> super::super::super::Foundation:: BOOL); - SymGetSymbolFile(hprocess.into_param().abi(), sympath.into_param().abi(), imagefile.into_param().abi(), r#type.0 as _, core::mem::transmute(symbolfile.as_ptr()), symbolfile.len().try_into().unwrap(), core::mem::transmute(dbgfile.as_ptr()), dbgfile.len().try_into().unwrap()).ok() + SymGetSymbolFile(hprocess.param().abi(), sympath.param().abi(), imagefile.param().abi(), r#type.0 as _, core::mem::transmute(symbolfile.as_ptr()), symbolfile.len().try_into().unwrap(), core::mem::transmute(dbgfile.as_ptr()), dbgfile.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetSymbolFileW(hprocess: P0, sympath: P1, imagefile: P2, r#type: IMAGEHLP_SF_TYPE, symbolfile: &mut [u16], dbgfile: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymGetSymbolFileW(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCWSTR, imagefile : windows_core::PCWSTR, r#type : u32, symbolfile : windows_core::PWSTR, csymbolfile : usize, dbgfile : windows_core::PWSTR, cdbgfile : usize) -> super::super::super::Foundation:: BOOL); - SymGetSymbolFileW(hprocess.into_param().abi(), sympath.into_param().abi(), imagefile.into_param().abi(), r#type.0 as _, core::mem::transmute(symbolfile.as_ptr()), symbolfile.len().try_into().unwrap(), core::mem::transmute(dbgfile.as_ptr()), dbgfile.len().try_into().unwrap()).ok() + SymGetSymbolFileW(hprocess.param().abi(), sympath.param().abi(), imagefile.param().abi(), r#type.0 as _, core::mem::transmute(symbolfile.as_ptr()), symbolfile.len().try_into().unwrap(), core::mem::transmute(dbgfile.as_ptr()), dbgfile.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn SymGetTypeFromName(hprocess: P0, baseofdll: u64, name: P1, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, name.into_param().abi(), symbol).ok() + SymGetTypeFromName(hprocess.param().abi(), baseofdll, name.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymGetTypeFromNameW(hprocess: P0, baseofdll: u64, name: P1, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, name.into_param().abi(), symbol).ok() + SymGetTypeFromNameW(hprocess.param().abi(), baseofdll, name.param().abi(), symbol).ok() } #[inline] pub unsafe fn SymGetTypeInfo(hprocess: P0, modbase: u64, typeid: u32, gettype: IMAGEHLP_SYMBOL_TYPE_INFO, pinfo: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), modbase, typeid, gettype, pinfo).ok() + SymGetTypeInfo(hprocess.param().abi(), modbase, typeid, gettype, pinfo).ok() } #[inline] pub unsafe fn SymGetTypeInfoEx(hprocess: P0, modbase: u64, params: *mut IMAGEHLP_GET_TYPE_INFO_PARAMS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), modbase, params).ok() + SymGetTypeInfoEx(hprocess.param().abi(), modbase, params).ok() } #[inline] pub unsafe fn SymGetUnwindInfo(hprocess: P0, address: u64, buffer: Option<*mut core::ffi::c_void>, size: *mut u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), address, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), size) + SymGetUnwindInfo(hprocess.param().abi(), address, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), size) } #[inline] pub unsafe fn SymInitialize(hprocess: P0, usersearchpath: P1, finvadeprocess: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), usersearchpath.into_param().abi(), finvadeprocess.into_param().abi()).ok() + SymInitialize(hprocess.param().abi(), usersearchpath.param().abi(), finvadeprocess.param().abi()).ok() } #[inline] pub unsafe fn SymInitializeW(hprocess: P0, usersearchpath: P1, finvadeprocess: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hprocess.into_param().abi(), usersearchpath.into_param().abi(), finvadeprocess.into_param().abi()).ok() + SymInitializeW(hprocess.param().abi(), usersearchpath.param().abi(), finvadeprocess.param().abi()).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymLoadModule(hprocess: P0, hfile: P1, imagename: P2, modulename: P3, baseofdll: u32, sizeofdll: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), hfile.into_param().abi(), imagename.into_param().abi(), modulename.into_param().abi(), baseofdll, sizeofdll) + SymLoadModule(hprocess.param().abi(), hfile.param().abi(), imagename.param().abi(), modulename.param().abi(), baseofdll, sizeofdll) } #[inline] pub unsafe fn SymLoadModule64(hprocess: P0, hfile: P1, imagename: P2, modulename: P3, baseofdll: u64, sizeofdll: u32) -> u64 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), hfile.into_param().abi(), imagename.into_param().abi(), modulename.into_param().abi(), baseofdll, sizeofdll) + SymLoadModule64(hprocess.param().abi(), hfile.param().abi(), imagename.param().abi(), modulename.param().abi(), baseofdll, sizeofdll) } #[inline] pub unsafe fn SymLoadModuleEx(hprocess: P0, hfile: P1, imagename: P2, modulename: P3, baseofdll: u64, dllsize: u32, data: Option<*const MODLOAD_DATA>, flags: SYM_LOAD_FLAGS) -> u64 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), hfile.into_param().abi(), imagename.into_param().abi(), modulename.into_param().abi(), baseofdll, dllsize, core::mem::transmute(data.unwrap_or(std::ptr::null())), flags) + SymLoadModuleEx(hprocess.param().abi(), hfile.param().abi(), imagename.param().abi(), modulename.param().abi(), baseofdll, dllsize, core::mem::transmute(data.unwrap_or(std::ptr::null())), flags) } #[inline] pub unsafe fn SymLoadModuleExW(hprocess: P0, hfile: P1, imagename: P2, modulename: P3, baseofdll: u64, dllsize: u32, data: Option<*const MODLOAD_DATA>, flags: SYM_LOAD_FLAGS) -> u64 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), hfile.into_param().abi(), imagename.into_param().abi(), modulename.into_param().abi(), baseofdll, dllsize, core::mem::transmute(data.unwrap_or(std::ptr::null())), flags) + SymLoadModuleExW(hprocess.param().abi(), hfile.param().abi(), imagename.param().abi(), modulename.param().abi(), baseofdll, dllsize, core::mem::transmute(data.unwrap_or(std::ptr::null())), flags) } #[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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymMatchFileName(filename : windows_core::PCSTR, r#match : windows_core::PCSTR, filenamestop : *mut windows_core::PSTR, matchstop : *mut windows_core::PSTR) -> super::super::super::Foundation:: BOOL); - SymMatchFileName(filename.into_param().abi(), r#match.into_param().abi(), core::mem::transmute(filenamestop.unwrap_or(std::ptr::null_mut())), core::mem::transmute(matchstop.unwrap_or(std::ptr::null_mut()))).ok() + SymMatchFileName(filename.param().abi(), r#match.param().abi(), core::mem::transmute(filenamestop.unwrap_or(std::ptr::null_mut())), core::mem::transmute(matchstop.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SymMatchFileNameW(filename: P0, r#match: P1, filenamestop: Option<*mut windows_core::PWSTR>, matchstop: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymMatchFileNameW(filename : windows_core::PCWSTR, r#match : windows_core::PCWSTR, filenamestop : *mut windows_core::PWSTR, matchstop : *mut windows_core::PWSTR) -> super::super::super::Foundation:: BOOL); - SymMatchFileNameW(filename.into_param().abi(), r#match.into_param().abi(), core::mem::transmute(filenamestop.unwrap_or(std::ptr::null_mut())), core::mem::transmute(matchstop.unwrap_or(std::ptr::null_mut()))).ok() + SymMatchFileNameW(filename.param().abi(), r#match.param().abi(), core::mem::transmute(filenamestop.unwrap_or(std::ptr::null_mut())), core::mem::transmute(matchstop.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SymMatchString(string: P0, expression: P1, fcase: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymMatchString(string : windows_core::PCSTR, expression : windows_core::PCSTR, fcase : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SymMatchString(string.into_param().abi(), expression.into_param().abi(), fcase.into_param().abi()).ok() + SymMatchString(string.param().abi(), expression.param().abi(), fcase.param().abi()).ok() } #[inline] pub unsafe fn SymMatchStringA(string: P0, expression: P1, fcase: P2) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymMatchStringA(string : windows_core::PCSTR, expression : windows_core::PCSTR, fcase : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SymMatchStringA(string.into_param().abi(), expression.into_param().abi(), fcase.into_param().abi()) + SymMatchStringA(string.param().abi(), expression.param().abi(), fcase.param().abi()) } #[inline] pub unsafe fn SymMatchStringW(string: P0, expression: P1, fcase: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymMatchStringW(string : windows_core::PCWSTR, expression : windows_core::PCWSTR, fcase : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SymMatchStringW(string.into_param().abi(), expression.into_param().abi(), fcase.into_param().abi()).ok() + SymMatchStringW(string.param().abi(), expression.param().abi(), fcase.param().abi()).ok() } #[inline] pub unsafe fn SymNext(hprocess: P0, si: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymNext(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymNext(hprocess.into_param().abi(), si).ok() + SymNext(hprocess.param().abi(), si).ok() } #[inline] pub unsafe fn SymNextW(hprocess: P0, siw: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymNextW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymNextW(hprocess.into_param().abi(), siw).ok() + SymNextW(hprocess.param().abi(), siw).ok() } #[inline] pub unsafe fn SymPrev(hprocess: P0, si: *mut SYMBOL_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymPrev(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); - SymPrev(hprocess.into_param().abi(), si).ok() + SymPrev(hprocess.param().abi(), si).ok() } #[inline] pub unsafe fn SymPrevW(hprocess: P0, siw: *mut SYMBOL_INFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymPrevW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); - SymPrevW(hprocess.into_param().abi(), siw).ok() + SymPrevW(hprocess.param().abi(), siw).ok() } #[inline] pub unsafe fn SymQueryInlineTrace(hprocess: P0, startaddress: u64, startcontext: u32, startretaddress: u64, curaddress: u64, curcontext: *mut u32, curframeindex: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), startaddress, startcontext, startretaddress, curaddress, curcontext, curframeindex).ok() + SymQueryInlineTrace(hprocess.param().abi(), startaddress, startcontext, startretaddress, curaddress, curcontext, curframeindex).ok() } #[inline] pub unsafe fn SymRefreshModuleList(hprocess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymRefreshModuleList(hprocess : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); - SymRefreshModuleList(hprocess.into_param().abi()).ok() + SymRefreshModuleList(hprocess.param().abi()).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymRegisterCallback(hprocess: P0, callbackfunction: PSYMBOL_REGISTERED_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), callbackfunction, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymRegisterCallback(hprocess.param().abi(), callbackfunction, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymRegisterCallback64(hprocess: P0, callbackfunction: PSYMBOL_REGISTERED_CALLBACK64, usercontext: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), callbackfunction, usercontext).ok() + SymRegisterCallback64(hprocess.param().abi(), callbackfunction, usercontext).ok() } #[inline] pub unsafe fn SymRegisterCallbackW64(hprocess: P0, callbackfunction: PSYMBOL_REGISTERED_CALLBACK64, usercontext: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), callbackfunction, usercontext).ok() + SymRegisterCallbackW64(hprocess.param().abi(), callbackfunction, usercontext).ok() } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymRegisterFunctionEntryCallback(hprocess: P0, callbackfunction: PSYMBOL_FUNCENTRY_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), callbackfunction, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() + SymRegisterFunctionEntryCallback(hprocess.param().abi(), callbackfunction, core::mem::transmute(usercontext.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymRegisterFunctionEntryCallback64(hprocess: P0, callbackfunction: PSYMBOL_FUNCENTRY_CALLBACK64, usercontext: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), callbackfunction, usercontext).ok() + SymRegisterFunctionEntryCallback64(hprocess.param().abi(), callbackfunction, usercontext).ok() } #[inline] pub unsafe fn SymSearch(hprocess: P0, baseofdll: u64, index: u32, symtag: u32, mask: P1, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, index, symtag, mask.into_param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() + SymSearch(hprocess.param().abi(), baseofdll, index, symtag, mask.param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() } #[inline] pub unsafe fn SymSearchW(hprocess: P0, baseofdll: u64, index: u32, symtag: u32, mask: P1, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>, options: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hprocess.into_param().abi(), baseofdll, index, symtag, mask.into_param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() + SymSearchW(hprocess.param().abi(), baseofdll, index, symtag, mask.param().abi(), address, enumsymbolscallback, core::mem::transmute(usercontext.unwrap_or(std::ptr::null())), options).ok() } #[inline] pub unsafe fn SymSetContext(hprocess: P0, stackframe: *const IMAGEHLP_STACK_FRAME, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), stackframe, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + SymSetContext(hprocess.param().abi(), stackframe, core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SymSetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS, value: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetExtendedOption(option : IMAGEHLP_EXTENDED_OPTIONS, value : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SymSetExtendedOption(option, value.into_param().abi()) + SymSetExtendedOption(option, value.param().abi()) } #[inline] pub unsafe fn SymSetHomeDirectory(hprocess: P0, dir: P1) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetHomeDirectory(hprocess : super::super::super::Foundation:: HANDLE, dir : windows_core::PCSTR) -> windows_core::PSTR); - SymSetHomeDirectory(hprocess.into_param().abi(), dir.into_param().abi()) + SymSetHomeDirectory(hprocess.param().abi(), dir.param().abi()) } #[inline] pub unsafe fn SymSetHomeDirectoryW(hprocess: P0, dir: P1) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetHomeDirectoryW(hprocess : super::super::super::Foundation:: HANDLE, dir : windows_core::PCWSTR) -> windows_core::PWSTR); - SymSetHomeDirectoryW(hprocess.into_param().abi(), dir.into_param().abi()) + SymSetHomeDirectoryW(hprocess.param().abi(), dir.param().abi()) } #[inline] pub unsafe fn SymSetOptions(symoptions: u32) -> u32 { @@ -2267,210 +2267,210 @@ pub unsafe fn SymSetOptions(symoptions: u32) -> u32 { #[inline] pub unsafe fn SymSetParentWindow(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetParentWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - SymSetParentWindow(hwnd.into_param().abi()).ok() + SymSetParentWindow(hwnd.param().abi()).ok() } #[inline] pub unsafe fn SymSetScopeFromAddr(hprocess: P0, address: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64) -> super::super::super::Foundation:: BOOL); - SymSetScopeFromAddr(hprocess.into_param().abi(), address).ok() + SymSetScopeFromAddr(hprocess.param().abi(), address).ok() } #[inline] pub unsafe fn SymSetScopeFromIndex(hprocess: P0, baseofdll: u64, index: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromIndex(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32) -> super::super::super::Foundation:: BOOL); - SymSetScopeFromIndex(hprocess.into_param().abi(), baseofdll, index).ok() + SymSetScopeFromIndex(hprocess.param().abi(), baseofdll, index).ok() } #[inline] pub unsafe fn SymSetScopeFromInlineContext(hprocess: P0, address: u64, inlinecontext: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32) -> super::super::super::Foundation:: BOOL); - SymSetScopeFromInlineContext(hprocess.into_param().abi(), address, inlinecontext).ok() + SymSetScopeFromInlineContext(hprocess.param().abi(), address, inlinecontext).ok() } #[inline] pub unsafe fn SymSetSearchPath(hprocess: P0, searchpatha: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), searchpatha.into_param().abi()).ok() + SymSetSearchPath(hprocess.param().abi(), searchpatha.param().abi()).ok() } #[inline] pub unsafe fn SymSetSearchPathW(hprocess: P0, searchpatha: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprocess.into_param().abi(), searchpatha.into_param().abi()).ok() + SymSetSearchPathW(hprocess.param().abi(), searchpatha.param().abi()).ok() } #[inline] pub unsafe fn SymSrvDeltaName(hprocess: P0, sympath: P1, r#type: P2, file1: P3, file2: P4) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hprocess.into_param().abi(), sympath.into_param().abi(), r#type.into_param().abi(), file1.into_param().abi(), file2.into_param().abi()) + SymSrvDeltaName(hprocess.param().abi(), sympath.param().abi(), r#type.param().abi(), file1.param().abi(), file2.param().abi()) } #[inline] pub unsafe fn SymSrvDeltaNameW(hprocess: P0, sympath: P1, r#type: P2, file1: P3, file2: P4) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hprocess.into_param().abi(), sympath.into_param().abi(), r#type.into_param().abi(), file1.into_param().abi(), file2.into_param().abi()) + SymSrvDeltaNameW(hprocess.param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), info, flags).ok() + SymSrvGetFileIndexInfo(file.param().abi(), info, flags).ok() } #[inline] pub unsafe fn SymSrvGetFileIndexInfoW(file: P0, info: *mut SYMSRV_INDEX_INFOW, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), info, flags).ok() + SymSrvGetFileIndexInfoW(file.param().abi(), info, flags).ok() } #[inline] pub unsafe fn SymSrvGetFileIndexString(hprocess: P0, srvpath: P1, file: P2, index: &mut [u8], flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), srvpath.into_param().abi(), file.into_param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), flags).ok() + SymSrvGetFileIndexString(hprocess.param().abi(), 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: P0, srvpath: P1, file: P2, index: &mut [u16], flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), srvpath.into_param().abi(), file.into_param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), flags).ok() + SymSrvGetFileIndexStringW(hprocess.param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), id, val1, core::mem::transmute(val2.unwrap_or(std::ptr::null_mut())), flags).ok() + SymSrvGetFileIndexes(file.param().abi(), id, val1, core::mem::transmute(val2.unwrap_or(std::ptr::null_mut())), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), id, val1, core::mem::transmute(val2.unwrap_or(std::ptr::null_mut())), flags).ok() + SymSrvGetFileIndexesW(file.param().abi(), id, val1, core::mem::transmute(val2.unwrap_or(std::ptr::null_mut())), flags).ok() } #[inline] pub unsafe fn SymSrvGetSupplement(hprocess: P0, sympath: P1, node: P2, file: P3) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), sympath.into_param().abi(), node.into_param().abi(), file.into_param().abi()) + SymSrvGetSupplement(hprocess.param().abi(), sympath.param().abi(), node.param().abi(), file.param().abi()) } #[inline] pub unsafe fn SymSrvGetSupplementW(hprocess: P0, sympath: P1, node: P2, file: P3) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), sympath.into_param().abi(), node.into_param().abi(), file.into_param().abi()) + SymSrvGetSupplementW(hprocess.param().abi(), sympath.param().abi(), node.param().abi(), file.param().abi()) } #[inline] pub unsafe fn SymSrvIsStore(hprocess: P0, path: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvIsStore(hprocess : super::super::super::Foundation:: HANDLE, path : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - SymSrvIsStore(hprocess.into_param().abi(), path.into_param().abi()).ok() + SymSrvIsStore(hprocess.param().abi(), path.param().abi()).ok() } #[inline] pub unsafe fn SymSrvIsStoreW(hprocess: P0, path: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymSrvIsStoreW(hprocess : super::super::super::Foundation:: HANDLE, path : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - SymSrvIsStoreW(hprocess.into_param().abi(), path.into_param().abi()).ok() + SymSrvIsStoreW(hprocess.param().abi(), path.param().abi()).ok() } #[inline] pub unsafe fn SymSrvStoreFile(hprocess: P0, srvpath: P1, file: P2, flags: SYM_SRV_STORE_FILE_FLAGS) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), srvpath.into_param().abi(), file.into_param().abi(), flags) + SymSrvStoreFile(hprocess.param().abi(), srvpath.param().abi(), file.param().abi(), flags) } #[inline] pub unsafe fn SymSrvStoreFileW(hprocess: P0, srvpath: P1, file: P2, flags: SYM_SRV_STORE_FILE_FLAGS) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hprocess.into_param().abi(), srvpath.into_param().abi(), file.into_param().abi(), flags) + SymSrvStoreFileW(hprocess.param().abi(), srvpath.param().abi(), file.param().abi(), flags) } #[inline] pub unsafe fn SymSrvStoreSupplement(hprocess: P0, srvpath: P1, node: P2, file: P3, flags: u32) -> windows_core::PCSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), srvpath.into_param().abi(), node.into_param().abi(), file.into_param().abi(), flags) + SymSrvStoreSupplement(hprocess.param().abi(), srvpath.param().abi(), node.param().abi(), file.param().abi(), flags) } #[inline] pub unsafe fn SymSrvStoreSupplementW(hprocess: P0, sympath: P1, node: P2, file: P3, flags: u32) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hprocess.into_param().abi(), sympath.into_param().abi(), node.into_param().abi(), file.into_param().abi(), flags) + SymSrvStoreSupplementW(hprocess.param().abi(), sympath.param().abi(), node.param().abi(), file.param().abi(), flags) } #[cfg(target_arch = "x86")] #[inline] @@ -2487,18 +2487,18 @@ pub unsafe fn SymUnDName64(sym: *const IMAGEHLP_SYMBOL64, undecname: &mut [u8]) #[inline] pub unsafe fn SymUnloadModule(hprocess: P0, baseofdll: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32) -> super::super::super::Foundation:: BOOL); - SymUnloadModule(hprocess.into_param().abi(), baseofdll).ok() + SymUnloadModule(hprocess.param().abi(), baseofdll).ok() } #[inline] pub unsafe fn SymUnloadModule64(hprocess: P0, baseofdll: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64) -> super::super::super::Foundation:: BOOL); - SymUnloadModule64(hprocess.into_param().abi(), baseofdll).ok() + SymUnloadModule64(hprocess.param().abi(), baseofdll).ok() } #[inline] pub unsafe fn TerminateProcessOnMemoryExhaustion(failedallocationsize: usize) { @@ -2508,26 +2508,26 @@ pub unsafe fn TerminateProcessOnMemoryExhaustion(failedallocationsize: usize) { #[inline] pub unsafe fn TouchFileTimes(filehandle: P0, psystemtime: Option<*const super::super::super::Foundation::SYSTEMTIME>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), core::mem::transmute(psystemtime.unwrap_or(std::ptr::null()))).ok() + TouchFileTimes(filehandle.param().abi(), core::mem::transmute(psystemtime.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn UnDecorateSymbolName(name: P0, outputstring: &mut [u8], flags: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(outputstring.as_ptr()), outputstring.len().try_into().unwrap(), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(outputstring.as_ptr()), outputstring.len().try_into().unwrap(), 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] @@ -2545,21 +2545,21 @@ pub unsafe fn UnhandledExceptionFilter(exceptioninfo: *const EXCEPTION_POINTERS) #[inline] pub unsafe fn UpdateDebugInfoFile(imagefilename: P0, symbolpath: P1, debugfilepath: windows_core::PSTR, ntheaders: *const IMAGE_NT_HEADERS32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(debugfilepath), ntheaders).ok() + UpdateDebugInfoFile(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), ntheaders).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn UpdateDebugInfoFileEx(imagefilename: P0, symbolpath: P1, debugfilepath: windows_core::PSTR, ntheaders: *const IMAGE_NT_HEADERS32, oldchecksum: u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), symbolpath.into_param().abi(), core::mem::transmute(debugfilepath), ntheaders, oldchecksum) + UpdateDebugInfoFileEx(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), ntheaders, oldchecksum) } #[cfg(feature = "Win32_System_Threading")] #[inline] @@ -2576,34 +2576,34 @@ pub unsafe fn WaitForDebugEventEx(lpdebugevent: *mut DEBUG_EVENT, dwmilliseconds #[inline] pub unsafe fn Wow64GetThreadContext(hthread: P0, lpcontext: *mut WOW64_CONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Wow64GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut WOW64_CONTEXT) -> super::super::super::Foundation:: BOOL); - Wow64GetThreadContext(hthread.into_param().abi(), lpcontext).ok() + Wow64GetThreadContext(hthread.param().abi(), lpcontext).ok() } #[inline] pub unsafe fn Wow64GetThreadSelectorEntry(hthread: P0, dwselector: u32, lpselectorentry: *mut WOW64_LDT_ENTRY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hthread.into_param().abi(), dwselector, lpselectorentry).ok() + Wow64GetThreadSelectorEntry(hthread.param().abi(), dwselector, lpselectorentry).ok() } #[inline] pub unsafe fn Wow64SetThreadContext(hthread: P0, lpcontext: *const WOW64_CONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Wow64SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const WOW64_CONTEXT) -> super::super::super::Foundation:: BOOL); - Wow64SetThreadContext(hthread.into_param().abi(), lpcontext).ok() + Wow64SetThreadContext(hthread.param().abi(), lpcontext).ok() } #[inline] pub unsafe fn WriteProcessMemory(hprocess: P0, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nsize: usize, lpnumberofbyteswritten: Option<*mut usize>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpbaseaddress, lpbuffer, nsize, core::mem::transmute(lpnumberofbyteswritten.unwrap_or(std::ptr::null_mut()))).ok() + WriteProcessMemory(hprocess.param().abi(), lpbaseaddress, lpbuffer, nsize, core::mem::transmute(lpnumberofbyteswritten.unwrap_or(std::ptr::null_mut()))).ok() } windows_core::imp::define_interface!(IDebugExtendedProperty, IDebugExtendedProperty_Vtbl, 0x51973c52_cb0c_11d0_b5c9_00a0244a0e7a); windows_core::imp::interface_hierarchy!(IDebugExtendedProperty, windows_core::IUnknown, IDebugProperty); @@ -2616,9 +2616,9 @@ impl IDebugExtendedProperty { } pub unsafe fn SetValueAsString(&self, pszvalue: P0, nradix: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetValueAsString)(windows_core::Interface::as_raw(self), pszvalue.into_param().abi(), nradix).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -2657,9 +2657,9 @@ impl IDebugProperty { } pub unsafe fn SetValueAsString(&self, pszvalue: P0, nradix: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueAsString)(windows_core::Interface::as_raw(self), pszvalue.into_param().abi(), 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__ = std::mem::zeroed(); 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 ffd8f49453..f52924d8ce 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 @@ -6,35 +6,35 @@ pub unsafe fn CloseTrace(tracehandle: PROCESSTRACE_HANDLE) -> super::super::supe #[inline] pub unsafe fn ControlTraceA(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES, controlcode: EVENT_TRACE_CONTROL) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), properties, controlcode) + ControlTraceA(core::mem::transmute(tracehandle), instancename.param().abi(), properties, controlcode) } #[inline] pub unsafe fn ControlTraceW(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES, controlcode: EVENT_TRACE_CONTROL) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), properties, controlcode) + ControlTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), properties, controlcode) } #[inline] pub unsafe fn CreateTraceInstanceId(reghandle: P0, instinfo: *mut EVENT_INSTANCE_INFO) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(reghandle.into_param().abi(), instinfo) + CreateTraceInstanceId(reghandle.param().abi(), instinfo) } #[inline] pub unsafe fn CveEventWrite(cveid: P0, additionaldetails: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CveEventWrite(cveid : windows_core::PCWSTR, additionaldetails : windows_core::PCWSTR) -> i32); - CveEventWrite(cveid.into_param().abi(), additionaldetails.into_param().abi()) + CveEventWrite(cveid.param().abi(), additionaldetails.param().abi()) } #[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 { @@ -64,11 +64,11 @@ pub unsafe fn EnumerateTraceGuidsEx(tracequeryinfoclass: TRACE_QUERY_INFO_CLASS, #[inline] pub unsafe fn EventAccessControl(guid: *const windows_core::GUID, operation: u32, sid: P0, rights: u32, allowordeny: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EventAccessControl(guid : *const windows_core::GUID, operation : u32, sid : super::super::super::Foundation:: PSID, rights : u32, allowordeny : super::super::super::Foundation:: BOOLEAN) -> u32); - EventAccessControl(guid, operation, sid.into_param().abi(), rights, allowordeny.into_param().abi()) + EventAccessControl(guid, operation, sid.param().abi(), rights, allowordeny.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] @@ -124,10 +124,10 @@ pub unsafe fn EventWriteEx(reghandle: u64, eventdescriptor: *const EVENT_DESCRIP #[inline] pub unsafe fn EventWriteString(reghandle: u64, level: u8, keyword: u64, string: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EventWriteString(reghandle : u64, level : u8, keyword : u64, string : windows_core::PCWSTR) -> u32); - EventWriteString(reghandle, level, keyword, string.into_param().abi()) + EventWriteString(reghandle, level, keyword, string.param().abi()) } #[inline] pub unsafe fn EventWriteTransfer(reghandle: u64, eventdescriptor: *const EVENT_DESCRIPTOR, activityid: Option<*const windows_core::GUID>, relatedactivityid: Option<*const windows_core::GUID>, userdata: Option<&[EVENT_DATA_DESCRIPTOR]>) -> u32 { @@ -137,18 +137,18 @@ pub unsafe fn EventWriteTransfer(reghandle: u64, eventdescriptor: *const EVENT_D #[inline] pub unsafe fn FlushTraceA(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn FlushTraceA(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - FlushTraceA(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + FlushTraceA(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } #[inline] pub unsafe fn FlushTraceW(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn FlushTraceW(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - FlushTraceW(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + FlushTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } #[inline] pub unsafe fn GetTraceEnableFlags(tracehandle: u64) -> u32 { @@ -181,29 +181,29 @@ pub unsafe fn OpenTraceFromBufferStream(options: *const ETW_OPEN_TRACE_OPTIONS, #[inline] pub unsafe fn OpenTraceFromFile(logfilename: P0, options: *const ETW_OPEN_TRACE_OPTIONS, logfileheader: Option<*mut TRACE_LOGFILE_HEADER>) -> u64 where - P0: windows_core::IntoParam, + 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.into_param().abi(), options, core::mem::transmute(logfileheader.unwrap_or(std::ptr::null_mut()))) + OpenTraceFromFile(logfilename.param().abi(), options, core::mem::transmute(logfileheader.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Time")] #[inline] pub unsafe fn OpenTraceFromRealTimeLogger(loggername: P0, options: *const ETW_OPEN_TRACE_OPTIONS, logfileheader: Option<*mut TRACE_LOGFILE_HEADER>) -> u64 where - P0: windows_core::IntoParam, + 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.into_param().abi(), options, core::mem::transmute(logfileheader.unwrap_or(std::ptr::null_mut()))) + OpenTraceFromRealTimeLogger(loggername.param().abi(), options, core::mem::transmute(logfileheader.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Time")] #[inline] pub unsafe fn OpenTraceFromRealTimeLoggerWithAllocationOptions(loggername: P0, options: *const ETW_OPEN_TRACE_OPTIONS, allocationsize: usize, memorypartitionhandle: P1, logfileheader: Option<*mut TRACE_LOGFILE_HEADER>) -> u64 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), options, allocationsize, memorypartitionhandle.into_param().abi(), core::mem::transmute(logfileheader.unwrap_or(std::ptr::null_mut()))) + OpenTraceFromRealTimeLoggerWithAllocationOptions(loggername.param().abi(), options, allocationsize, memorypartitionhandle.param().abi(), core::mem::transmute(logfileheader.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Time")] #[inline] @@ -244,10 +244,10 @@ pub unsafe fn QueryAllTracesW(propertyarray: &mut [*mut EVENT_TRACE_PROPERTIES], #[inline] pub unsafe fn QueryTraceA(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryTraceA(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - QueryTraceA(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + QueryTraceA(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } #[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 { @@ -257,28 +257,28 @@ pub unsafe fn QueryTraceProcessingHandle(processinghandle: PROCESSTRACE_HANDLE, #[inline] pub unsafe fn QueryTraceW(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryTraceW(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - QueryTraceW(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + QueryTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } #[inline] pub unsafe fn RegisterTraceGuidsA(requestaddress: WMIDPREQUEST, requestcontext: Option<*const core::ffi::c_void>, controlguid: *const windows_core::GUID, traceguidreg: Option<&[TRACE_GUID_REGISTRATION]>, mofimagepath: P0, mofresourcename: P1, registrationhandle: *mut u64) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(requestaddress, core::mem::transmute(requestcontext.unwrap_or(std::ptr::null())), 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.into_param().abi(), mofresourcename.into_param().abi(), registrationhandle) + RegisterTraceGuidsA(requestaddress, core::mem::transmute(requestcontext.unwrap_or(std::ptr::null())), 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(), 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: P0, mofresourcename: P1, registrationhandle: *mut u64) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(requestaddress, core::mem::transmute(requestcontext.unwrap_or(std::ptr::null())), 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.into_param().abi(), mofresourcename.into_param().abi(), registrationhandle) + RegisterTraceGuidsW(requestaddress, core::mem::transmute(requestcontext.unwrap_or(std::ptr::null())), 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(), registrationhandle) } #[inline] pub unsafe fn RemoveTraceCallback(pguid: *const windows_core::GUID) -> super::super::super::Foundation::WIN32_ERROR { @@ -293,34 +293,34 @@ pub unsafe fn SetTraceCallback(pguid: *const windows_core::GUID, eventcallback: #[inline] pub unsafe fn StartTraceA(tracehandle: *mut CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn StartTraceA(tracehandle : *mut CONTROLTRACE_HANDLE, instancename : windows_core::PCSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - StartTraceA(tracehandle, instancename.into_param().abi(), properties) + StartTraceA(tracehandle, instancename.param().abi(), properties) } #[inline] pub unsafe fn StartTraceW(tracehandle: *mut CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn StartTraceW(tracehandle : *mut CONTROLTRACE_HANDLE, instancename : windows_core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - StartTraceW(tracehandle, instancename.into_param().abi(), properties) + StartTraceW(tracehandle, instancename.param().abi(), properties) } #[inline] pub unsafe fn StopTraceA(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn StopTraceA(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - StopTraceA(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + StopTraceA(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } #[inline] pub unsafe fn StopTraceW(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn StopTraceW(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - StopTraceW(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + StopTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } #[inline] pub unsafe fn TdhAggregatePayloadFilters(payloadfiltercount: u32, payloadfilterptrs: *const *const core::ffi::c_void, eventmatchallflags: Option<*const super::super::super::Foundation::BOOLEAN>, eventfilterdescriptor: *mut EVENT_FILTER_DESCRIPTOR) -> u32 { @@ -335,18 +335,18 @@ pub unsafe fn TdhCleanupPayloadEventFilterDescriptor(eventfilterdescriptor: *mut #[inline] pub unsafe fn TdhCloseDecodingHandle(handle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhCloseDecodingHandle(handle : TDH_HANDLE) -> u32); - TdhCloseDecodingHandle(handle.into_param().abi()) + TdhCloseDecodingHandle(handle.param().abi()) } #[inline] pub unsafe fn TdhCreatePayloadFilter(providerguid: *const windows_core::GUID, eventdescriptor: *const EVENT_DESCRIPTOR, eventmatchany: P0, payloadpredicates: &[PAYLOAD_FILTER_PREDICATE], payloadfilter: *mut *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhCreatePayloadFilter(providerguid : *const windows_core::GUID, eventdescriptor : *const EVENT_DESCRIPTOR, eventmatchany : super::super::super::Foundation:: BOOLEAN, payloadpredicatecount : u32, payloadpredicates : *const PAYLOAD_FILTER_PREDICATE, payloadfilter : *mut *mut core::ffi::c_void) -> u32); - TdhCreatePayloadFilter(providerguid, eventdescriptor, eventmatchany.into_param().abi(), payloadpredicates.len().try_into().unwrap(), core::mem::transmute(payloadpredicates.as_ptr()), payloadfilter) + TdhCreatePayloadFilter(providerguid, eventdescriptor, eventmatchany.param().abi(), payloadpredicates.len().try_into().unwrap(), core::mem::transmute(payloadpredicates.as_ptr()), payloadfilter) } #[inline] pub unsafe fn TdhDeletePayloadFilter(payloadfilter: *mut *mut core::ffi::c_void) -> u32 { @@ -386,10 +386,10 @@ pub unsafe fn TdhFormatProperty(eventinfo: *const TRACE_EVENT_INFO, mapinfo: Opt #[inline] pub unsafe fn TdhGetDecodingParameter(handle: P0, tdhcontext: *mut TDH_CONTEXT) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhGetDecodingParameter(handle : TDH_HANDLE, tdhcontext : *mut TDH_CONTEXT) -> u32); - TdhGetDecodingParameter(handle.into_param().abi(), tdhcontext) + TdhGetDecodingParameter(handle.param().abi(), tdhcontext) } #[inline] pub unsafe fn TdhGetEventInformation(event: *const EVENT_RECORD, tdhcontext: Option<&[TDH_CONTEXT]>, buffer: Option<*mut TRACE_EVENT_INFO>, buffersize: *mut u32) -> u32 { @@ -399,10 +399,10 @@ pub unsafe fn TdhGetEventInformation(event: *const EVENT_RECORD, tdhcontext: Opt #[inline] pub unsafe fn TdhGetEventMapInformation(pevent: *const EVENT_RECORD, pmapname: P0, pbuffer: Option<*mut EVENT_MAP_INFO>, pbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: 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(pevent, pmapname.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), pbuffersize) + TdhGetEventMapInformation(pevent, pmapname.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), 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 { @@ -422,35 +422,35 @@ pub unsafe fn TdhGetPropertySize(pevent: *const EVENT_RECORD, ptdhcontext: Optio #[inline] pub unsafe fn TdhGetWppMessage(handle: P0, eventrecord: *const EVENT_RECORD, buffersize: *mut u32, buffer: *mut u8) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhGetWppMessage(handle : TDH_HANDLE, eventrecord : *const EVENT_RECORD, buffersize : *mut u32, buffer : *mut u8) -> u32); - TdhGetWppMessage(handle.into_param().abi(), eventrecord, buffersize, buffer) + TdhGetWppMessage(handle.param().abi(), eventrecord, buffersize, buffer) } #[inline] pub unsafe fn TdhGetWppProperty(handle: P0, eventrecord: *const EVENT_RECORD, propertyname: P1, buffersize: *mut u32, buffer: *mut u8) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(handle.into_param().abi(), eventrecord, propertyname.into_param().abi(), buffersize, buffer) + TdhGetWppProperty(handle.param().abi(), eventrecord, propertyname.param().abi(), buffersize, buffer) } #[inline] pub unsafe fn TdhLoadManifest(manifest: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhLoadManifest(manifest : windows_core::PCWSTR) -> u32); - TdhLoadManifest(manifest.into_param().abi()) + TdhLoadManifest(manifest.param().abi()) } #[inline] pub unsafe fn TdhLoadManifestFromBinary(binarypath: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhLoadManifestFromBinary(binarypath : windows_core::PCWSTR) -> u32); - TdhLoadManifestFromBinary(binarypath.into_param().abi()) + TdhLoadManifestFromBinary(binarypath.param().abi()) } #[inline] pub unsafe fn TdhLoadManifestFromMemory(pdata: *const core::ffi::c_void, cbdata: u32) -> u32 { @@ -470,18 +470,18 @@ pub unsafe fn TdhQueryProviderFieldInformation(pguid: *const windows_core::GUID, #[inline] pub unsafe fn TdhSetDecodingParameter(handle: P0, tdhcontext: *const TDH_CONTEXT) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhSetDecodingParameter(handle : TDH_HANDLE, tdhcontext : *const TDH_CONTEXT) -> u32); - TdhSetDecodingParameter(handle.into_param().abi(), tdhcontext) + TdhSetDecodingParameter(handle.param().abi(), tdhcontext) } #[inline] pub unsafe fn TdhUnloadManifest(manifest: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("tdh.dll" "system" fn TdhUnloadManifest(manifest : windows_core::PCWSTR) -> u32); - TdhUnloadManifest(manifest.into_param().abi()) + TdhUnloadManifest(manifest.param().abi()) } #[inline] pub unsafe fn TdhUnloadManifestFromMemory(pdata: *const core::ffi::c_void, cbdata: u32) -> u32 { @@ -526,18 +526,18 @@ pub unsafe fn UnregisterTraceGuids(registrationhandle: u64) -> u32 { #[inline] pub unsafe fn UpdateTraceA(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn UpdateTraceA(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - UpdateTraceA(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + UpdateTraceA(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } #[inline] pub unsafe fn UpdateTraceW(tracehandle: CONTROLTRACE_HANDLE, instancename: P0, properties: *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn UpdateTraceW(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); - UpdateTraceW(core::mem::transmute(tracehandle), instancename.into_param().abi(), properties) + UpdateTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), properties) } windows_core::imp::define_interface!(ITraceEvent, ITraceEvent_Vtbl, 0x8cc97f40_9028_4ff3_9b62_7d1f79ca7bcb); windows_core::imp::interface_hierarchy!(ITraceEvent, windows_core::IUnknown); @@ -603,23 +603,23 @@ windows_core::imp::interface_hierarchy!(ITraceEventCallback, windows_core::IUnkn impl ITraceEventCallback { pub unsafe fn OnBeginProcessTrace(&self, headerevent: P0, relogger: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeginProcessTrace)(windows_core::Interface::as_raw(self), headerevent.into_param().abi(), relogger.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnBeginProcessTrace)(windows_core::Interface::as_raw(self), headerevent.param().abi(), relogger.param().abi()).ok() } pub unsafe fn OnFinalizeProcessTrace(&self, relogger: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFinalizeProcessTrace)(windows_core::Interface::as_raw(self), relogger.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFinalizeProcessTrace)(windows_core::Interface::as_raw(self), relogger.param().abi()).ok() } pub unsafe fn OnEvent(&self, event: P0, relogger: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), event.into_param().abi(), relogger.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEvent)(windows_core::Interface::as_raw(self), event.param().abi(), relogger.param().abi()).ok() } } #[repr(C)] @@ -634,29 +634,29 @@ windows_core::imp::interface_hierarchy!(ITraceRelogger, windows_core::IUnknown); impl ITraceRelogger { pub unsafe fn AddLogfileTraceStream(&self, logfilename: P0, usercontext: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddLogfileTraceStream)(windows_core::Interface::as_raw(self), logfilename.into_param().abi(), usercontext, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddLogfileTraceStream)(windows_core::Interface::as_raw(self), logfilename.param().abi(), usercontext, &mut result__).map(|| result__) } pub unsafe fn AddRealtimeTraceStream(&self, loggername: P0, usercontext: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddRealtimeTraceStream)(windows_core::Interface::as_raw(self), loggername.into_param().abi(), usercontext, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddRealtimeTraceStream)(windows_core::Interface::as_raw(self), loggername.param().abi(), usercontext, &mut result__).map(|| result__) } pub unsafe fn RegisterCallback(&self, callback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterCallback)(windows_core::Interface::as_raw(self), callback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterCallback)(windows_core::Interface::as_raw(self), callback.param().abi()).ok() } pub unsafe fn Inject(&self, event: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Inject)(windows_core::Interface::as_raw(self), event.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Inject)(windows_core::Interface::as_raw(self), event.param().abi()).ok() } pub unsafe fn CreateEventInstance(&self, tracehandle: RELOGSTREAM_HANDLE, flags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -667,15 +667,15 @@ impl ITraceRelogger { } pub unsafe fn SetOutputFilename(&self, logfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutputFilename)(windows_core::Interface::as_raw(self), logfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutputFilename)(windows_core::Interface::as_raw(self), logfilename.param().abi()).ok() } pub unsafe fn SetCompressionMode(&self, compressionmode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), compressionmode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), compressionmode.param().abi()).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 fa7ea1d252..12677c7823 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,37 +1,37 @@ #[inline] pub unsafe fn PssCaptureSnapshot(processhandle: P0, captureflags: PSS_CAPTURE_FLAGS, threadcontextflags: u32, snapshothandle: *mut HPSS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), captureflags, threadcontextflags, snapshothandle) + PssCaptureSnapshot(processhandle.param().abi(), captureflags, threadcontextflags, snapshothandle) } #[inline] pub unsafe fn PssDuplicateSnapshot(sourceprocesshandle: P0, snapshothandle: P1, targetprocesshandle: P2, targetsnapshothandle: *mut HPSS, flags: PSS_DUPLICATE_FLAGS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(sourceprocesshandle.into_param().abi(), snapshothandle.into_param().abi(), targetprocesshandle.into_param().abi(), targetsnapshothandle, flags) + PssDuplicateSnapshot(sourceprocesshandle.param().abi(), snapshothandle.param().abi(), targetprocesshandle.param().abi(), targetsnapshothandle, flags) } #[inline] pub unsafe fn PssFreeSnapshot(processhandle: P0, snapshothandle: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PssFreeSnapshot(processhandle : super::super::super::Foundation:: HANDLE, snapshothandle : HPSS) -> u32); - PssFreeSnapshot(processhandle.into_param().abi(), snapshothandle.into_param().abi()) + PssFreeSnapshot(processhandle.param().abi(), snapshothandle.param().abi()) } #[inline] pub unsafe fn PssQuerySnapshot(snapshothandle: P0, informationclass: PSS_QUERY_INFORMATION_CLASS, buffer: *mut core::ffi::c_void, bufferlength: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(snapshothandle.into_param().abi(), informationclass, buffer, bufferlength) + PssQuerySnapshot(snapshothandle.param().abi(), informationclass, buffer, bufferlength) } #[inline] pub unsafe fn PssWalkMarkerCreate(allocator: Option<*const PSS_ALLOCATOR>, walkmarkerhandle: *mut HPSSWALK) -> u32 { @@ -41,43 +41,43 @@ pub unsafe fn PssWalkMarkerCreate(allocator: Option<*const PSS_ALLOCATOR>, walkm #[inline] pub unsafe fn PssWalkMarkerFree(walkmarkerhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerFree(walkmarkerhandle : HPSSWALK) -> u32); - PssWalkMarkerFree(walkmarkerhandle.into_param().abi()) + PssWalkMarkerFree(walkmarkerhandle.param().abi()) } #[inline] pub unsafe fn PssWalkMarkerGetPosition(walkmarkerhandle: P0, position: *mut usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerGetPosition(walkmarkerhandle : HPSSWALK, position : *mut usize) -> u32); - PssWalkMarkerGetPosition(walkmarkerhandle.into_param().abi(), position) + PssWalkMarkerGetPosition(walkmarkerhandle.param().abi(), position) } #[inline] pub unsafe fn PssWalkMarkerSeekToBeginning(walkmarkerhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerSeekToBeginning(walkmarkerhandle : HPSSWALK) -> u32); - PssWalkMarkerSeekToBeginning(walkmarkerhandle.into_param().abi()) + PssWalkMarkerSeekToBeginning(walkmarkerhandle.param().abi()) } #[inline] pub unsafe fn PssWalkMarkerSetPosition(walkmarkerhandle: P0, position: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PssWalkMarkerSetPosition(walkmarkerhandle : HPSSWALK, position : usize) -> u32); - PssWalkMarkerSetPosition(walkmarkerhandle.into_param().abi(), position) + PssWalkMarkerSetPosition(walkmarkerhandle.param().abi(), position) } #[inline] pub unsafe fn PssWalkSnapshot(snapshothandle: P0, informationclass: PSS_WALK_INFORMATION_CLASS, walkmarkerhandle: P1, buffer: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(snapshothandle.into_param().abi(), informationclass, walkmarkerhandle.into_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())) + PssWalkSnapshot(snapshothandle.param().abi(), informationclass, walkmarkerhandle.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())) } pub const PSS_CAPTURE_HANDLES: PSS_CAPTURE_FLAGS = PSS_CAPTURE_FLAGS(4u32); pub const PSS_CAPTURE_HANDLE_BASIC_INFORMATION: PSS_CAPTURE_FLAGS = PSS_CAPTURE_FLAGS(16u32); 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 c0d3699c54..8c7865c346 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 @@ -12,18 +12,18 @@ pub unsafe fn Heap32First(lphe: *mut HEAPENTRY32, th32processid: u32, th32heapid #[inline] pub unsafe fn Heap32ListFirst(hsnapshot: P0, lphl: *mut HEAPLIST32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Heap32ListFirst(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); - Heap32ListFirst(hsnapshot.into_param().abi(), lphl).ok() + Heap32ListFirst(hsnapshot.param().abi(), lphl).ok() } #[inline] pub unsafe fn Heap32ListNext(hsnapshot: P0, lphl: *mut HEAPLIST32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Heap32ListNext(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); - Heap32ListNext(hsnapshot.into_param().abi(), lphl).ok() + Heap32ListNext(hsnapshot.param().abi(), lphl).ok() } #[inline] pub unsafe fn Heap32Next(lphe: *mut HEAPENTRY32) -> windows_core::Result<()> { @@ -33,82 +33,82 @@ pub unsafe fn Heap32Next(lphe: *mut HEAPENTRY32) -> windows_core::Result<()> { #[inline] pub unsafe fn Module32First(hsnapshot: P0, lpme: *mut MODULEENTRY32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Module32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); - Module32First(hsnapshot.into_param().abi(), lpme).ok() + Module32First(hsnapshot.param().abi(), lpme).ok() } #[inline] pub unsafe fn Module32FirstW(hsnapshot: P0, lpme: *mut MODULEENTRY32W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Module32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); - Module32FirstW(hsnapshot.into_param().abi(), lpme).ok() + Module32FirstW(hsnapshot.param().abi(), lpme).ok() } #[inline] pub unsafe fn Module32Next(hsnapshot: P0, lpme: *mut MODULEENTRY32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Module32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); - Module32Next(hsnapshot.into_param().abi(), lpme).ok() + Module32Next(hsnapshot.param().abi(), lpme).ok() } #[inline] pub unsafe fn Module32NextW(hsnapshot: P0, lpme: *mut MODULEENTRY32W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Module32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); - Module32NextW(hsnapshot.into_param().abi(), lpme).ok() + Module32NextW(hsnapshot.param().abi(), lpme).ok() } #[inline] pub unsafe fn Process32First(hsnapshot: P0, lppe: *mut PROCESSENTRY32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Process32First(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); - Process32First(hsnapshot.into_param().abi(), lppe).ok() + Process32First(hsnapshot.param().abi(), lppe).ok() } #[inline] pub unsafe fn Process32FirstW(hsnapshot: P0, lppe: *mut PROCESSENTRY32W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Process32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); - Process32FirstW(hsnapshot.into_param().abi(), lppe).ok() + Process32FirstW(hsnapshot.param().abi(), lppe).ok() } #[inline] pub unsafe fn Process32Next(hsnapshot: P0, lppe: *mut PROCESSENTRY32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Process32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); - Process32Next(hsnapshot.into_param().abi(), lppe).ok() + Process32Next(hsnapshot.param().abi(), lppe).ok() } #[inline] pub unsafe fn Process32NextW(hsnapshot: P0, lppe: *mut PROCESSENTRY32W) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Process32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); - Process32NextW(hsnapshot.into_param().abi(), lppe).ok() + Process32NextW(hsnapshot.param().abi(), lppe).ok() } #[inline] pub unsafe fn Thread32First(hsnapshot: P0, lpte: *mut THREADENTRY32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Thread32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); - Thread32First(hsnapshot.into_param().abi(), lpte).ok() + Thread32First(hsnapshot.param().abi(), lpte).ok() } #[inline] pub unsafe fn Thread32Next(hsnapshot: P0, lpte: *mut THREADENTRY32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Thread32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); - Thread32Next(hsnapshot.into_param().abi(), lpte).ok() + Thread32Next(hsnapshot.param().abi(), 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 { 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 4be8918ad6..222b43a336 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs @@ -1,38 +1,38 @@ #[inline] pub unsafe fn DtcGetTransactionManager(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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), i_psztmname.into_param().abi(), i_riid, i_dwreserved1, i_wcbreserved2, core::mem::transmute(i_pvreserved2.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), i_psztmname.into_param().abi(), i_riid, i_dwreserved1, i_wcbreserved2, core::mem::transmute(i_pvreserved2.unwrap_or(std::ptr::null())), 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(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), i_psztmname.into_param().abi(), i_riid, i_grfoptions, i_pvconfigparams, o_ppvobject).ok() + DtcGetTransactionManagerExA(i_pszhost.param().abi(), i_psztmname.param().abi(), i_riid, i_grfoptions, i_pvconfigparams, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), i_pwsztmname.into_param().abi(), i_riid, i_grfoptions, i_pvconfigparams, o_ppvobject).ok() + DtcGetTransactionManagerExW(i_pwszhost.param().abi(), i_pwsztmname.param().abi(), i_riid, i_grfoptions, i_pvconfigparams, o_ppvobject).ok() } windows_core::imp::define_interface!(IDtcLuConfigure, IDtcLuConfigure_Vtbl, 0x4131e760_1aea_11d0_944b_00a0c905416e); windows_core::imp::interface_hierarchy!(IDtcLuConfigure, windows_core::IUnknown); @@ -212,9 +212,9 @@ windows_core::imp::interface_hierarchy!(IDtcLuRmEnlistment, windows_core::IUnkno impl IDtcLuRmEnlistment { pub unsafe fn Unplug(&self, fconversationlost: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unplug)(windows_core::Interface::as_raw(self), fconversationlost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unplug)(windows_core::Interface::as_raw(self), fconversationlost.param().abi()).ok() } pub unsafe fn BackedOut(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BackedOut)(windows_core::Interface::as_raw(self)).ok() @@ -247,10 +247,10 @@ windows_core::imp::interface_hierarchy!(IDtcLuRmEnlistmentFactory, windows_core: impl IDtcLuRmEnlistmentFactory { pub unsafe fn Create(&self, puclupair: *mut u8, cblupair: u32, pitransaction: P0, ptransid: *mut u8, cbtransid: u32, prmenlistmentsink: P1, pprmenlistment: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), puclupair, cblupair, pitransaction.into_param().abi(), ptransid, cbtransid, prmenlistmentsink.into_param().abi(), core::mem::transmute(pprmenlistment)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), puclupair, cblupair, pitransaction.param().abi(), ptransid, cbtransid, prmenlistmentsink.param().abi(), core::mem::transmute(pprmenlistment)).ok() } } #[repr(C)] @@ -307,9 +307,9 @@ windows_core::imp::interface_hierarchy!(IDtcLuSubordinateDtc, windows_core::IUnk impl IDtcLuSubordinateDtc { pub unsafe fn Unplug(&self, fconversationlost: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unplug)(windows_core::Interface::as_raw(self), fconversationlost.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unplug)(windows_core::Interface::as_raw(self), fconversationlost.param().abi()).ok() } pub unsafe fn BackedOut(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BackedOut)(windows_core::Interface::as_raw(self)).ok() @@ -346,11 +346,11 @@ windows_core::imp::interface_hierarchy!(IDtcLuSubordinateDtcFactory, windows_cor impl IDtcLuSubordinateDtcFactory { pub unsafe fn Create(&self, puclupair: *mut u8, cblupair: u32, punktransactionouter: P0, isolevel: i32, isoflags: u32, poptions: P1, pptransaction: *mut Option, ptransid: *mut u8, cbtransid: u32, psubordinatedtcsink: P2, ppsubordinatedtc: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), puclupair, cblupair, punktransactionouter.into_param().abi(), isolevel, isoflags, poptions.into_param().abi(), core::mem::transmute(pptransaction), ptransid, cbtransid, psubordinatedtcsink.into_param().abi(), core::mem::transmute(ppsubordinatedtc)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), puclupair, cblupair, punktransactionouter.param().abi(), isolevel, isoflags, poptions.param().abi(), core::mem::transmute(pptransaction), ptransid, cbtransid, psubordinatedtcsink.param().abi(), core::mem::transmute(ppsubordinatedtc)).ok() } } #[repr(C)] @@ -407,9 +407,9 @@ impl IDtcNetworkAccessConfig { } pub unsafe fn SetAnyNetworkAccess(&self, banynetworkaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAnyNetworkAccess)(windows_core::Interface::as_raw(self), banynetworkaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAnyNetworkAccess)(windows_core::Interface::as_raw(self), banynetworkaccess.param().abi()).ok() } pub unsafe fn GetNetworkAdministrationAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -417,9 +417,9 @@ impl IDtcNetworkAccessConfig { } pub unsafe fn SetNetworkAdministrationAccess(&self, bnetworkadministrationaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), bnetworkadministrationaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), bnetworkadministrationaccess.param().abi()).ok() } pub unsafe fn GetNetworkTransactionAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -427,9 +427,9 @@ impl IDtcNetworkAccessConfig { } pub unsafe fn SetNetworkTransactionAccess(&self, bnetworktransactionaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), bnetworktransactionaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), bnetworktransactionaccess.param().abi()).ok() } pub unsafe fn GetNetworkClientAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -437,9 +437,9 @@ impl IDtcNetworkAccessConfig { } pub unsafe fn SetNetworkClientAccess(&self, bnetworkclientaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkClientAccess)(windows_core::Interface::as_raw(self), bnetworkclientaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkClientAccess)(windows_core::Interface::as_raw(self), bnetworkclientaccess.param().abi()).ok() } pub unsafe fn GetNetworkTIPAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -447,9 +447,9 @@ impl IDtcNetworkAccessConfig { } pub unsafe fn SetNetworkTIPAccess(&self, bnetworktipaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkTIPAccess)(windows_core::Interface::as_raw(self), bnetworktipaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkTIPAccess)(windows_core::Interface::as_raw(self), bnetworktipaccess.param().abi()).ok() } pub unsafe fn GetXAAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -457,9 +457,9 @@ impl IDtcNetworkAccessConfig { } pub unsafe fn SetXAAccess(&self, bxaaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetXAAccess)(windows_core::Interface::as_raw(self), bxaaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetXAAccess)(windows_core::Interface::as_raw(self), bxaaccess.param().abi()).ok() } pub unsafe fn RestartDtcService(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestartDtcService)(windows_core::Interface::as_raw(self)).ok() @@ -491,9 +491,9 @@ impl IDtcNetworkAccessConfig2 { } pub unsafe fn SetAnyNetworkAccess(&self, banynetworkaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAnyNetworkAccess)(windows_core::Interface::as_raw(self), banynetworkaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAnyNetworkAccess)(windows_core::Interface::as_raw(self), banynetworkaccess.param().abi()).ok() } pub unsafe fn GetNetworkAdministrationAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -501,9 +501,9 @@ impl IDtcNetworkAccessConfig2 { } pub unsafe fn SetNetworkAdministrationAccess(&self, bnetworkadministrationaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), bnetworkadministrationaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), bnetworkadministrationaccess.param().abi()).ok() } pub unsafe fn GetNetworkTransactionAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -511,9 +511,9 @@ impl IDtcNetworkAccessConfig2 { } pub unsafe fn SetNetworkTransactionAccess(&self, bnetworktransactionaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), bnetworktransactionaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), bnetworktransactionaccess.param().abi()).ok() } pub unsafe fn GetNetworkClientAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -521,9 +521,9 @@ impl IDtcNetworkAccessConfig2 { } pub unsafe fn SetNetworkClientAccess(&self, bnetworkclientaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkClientAccess)(windows_core::Interface::as_raw(self), bnetworkclientaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkClientAccess)(windows_core::Interface::as_raw(self), bnetworkclientaccess.param().abi()).ok() } pub unsafe fn GetNetworkTIPAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -531,9 +531,9 @@ impl IDtcNetworkAccessConfig2 { } pub unsafe fn SetNetworkTIPAccess(&self, bnetworktipaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkTIPAccess)(windows_core::Interface::as_raw(self), bnetworktipaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkTIPAccess)(windows_core::Interface::as_raw(self), bnetworktipaccess.param().abi()).ok() } pub unsafe fn GetXAAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -541,9 +541,9 @@ impl IDtcNetworkAccessConfig2 { } pub unsafe fn SetXAAccess(&self, bxaaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetXAAccess)(windows_core::Interface::as_raw(self), bxaaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetXAAccess)(windows_core::Interface::as_raw(self), bxaaccess.param().abi()).ok() } pub unsafe fn RestartDtcService(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RestartDtcService)(windows_core::Interface::as_raw(self)).ok() @@ -558,15 +558,15 @@ impl IDtcNetworkAccessConfig2 { } pub unsafe fn SetNetworkInboundAccess(&self, binbound: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkInboundAccess)(windows_core::Interface::as_raw(self), binbound.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkInboundAccess)(windows_core::Interface::as_raw(self), binbound.param().abi()).ok() } pub unsafe fn SetNetworkOutboundAccess(&self, boutbound: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkOutboundAccess)(windows_core::Interface::as_raw(self), boutbound.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkOutboundAccess)(windows_core::Interface::as_raw(self), boutbound.param().abi()).ok() } pub unsafe fn GetAuthenticationLevel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -595,9 +595,9 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetAnyNetworkAccess(&self, banynetworkaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAnyNetworkAccess)(windows_core::Interface::as_raw(self), banynetworkaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAnyNetworkAccess)(windows_core::Interface::as_raw(self), banynetworkaccess.param().abi()).ok() } pub unsafe fn GetNetworkAdministrationAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -605,9 +605,9 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetNetworkAdministrationAccess(&self, bnetworkadministrationaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), bnetworkadministrationaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), bnetworkadministrationaccess.param().abi()).ok() } pub unsafe fn GetNetworkTransactionAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -615,9 +615,9 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetNetworkTransactionAccess(&self, bnetworktransactionaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), bnetworktransactionaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), bnetworktransactionaccess.param().abi()).ok() } pub unsafe fn GetNetworkClientAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -625,9 +625,9 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetNetworkClientAccess(&self, bnetworkclientaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkClientAccess)(windows_core::Interface::as_raw(self), bnetworkclientaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkClientAccess)(windows_core::Interface::as_raw(self), bnetworkclientaccess.param().abi()).ok() } pub unsafe fn GetNetworkTIPAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -635,9 +635,9 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetNetworkTIPAccess(&self, bnetworktipaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNetworkTIPAccess)(windows_core::Interface::as_raw(self), bnetworktipaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNetworkTIPAccess)(windows_core::Interface::as_raw(self), bnetworktipaccess.param().abi()).ok() } pub unsafe fn GetXAAccess(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -645,9 +645,9 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetXAAccess(&self, bxaaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetXAAccess)(windows_core::Interface::as_raw(self), bxaaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetXAAccess)(windows_core::Interface::as_raw(self), bxaaccess.param().abi()).ok() } pub unsafe fn RestartDtcService(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RestartDtcService)(windows_core::Interface::as_raw(self)).ok() @@ -662,15 +662,15 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetNetworkInboundAccess(&self, binbound: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkInboundAccess)(windows_core::Interface::as_raw(self), binbound.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkInboundAccess)(windows_core::Interface::as_raw(self), binbound.param().abi()).ok() } pub unsafe fn SetNetworkOutboundAccess(&self, boutbound: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkOutboundAccess)(windows_core::Interface::as_raw(self), boutbound.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkOutboundAccess)(windows_core::Interface::as_raw(self), boutbound.param().abi()).ok() } pub unsafe fn GetAuthenticationLevel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -685,9 +685,9 @@ impl IDtcNetworkAccessConfig3 { } pub unsafe fn SetLUAccess(&self, bluaccess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLUAccess)(windows_core::Interface::as_raw(self), bluaccess.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLUAccess)(windows_core::Interface::as_raw(self), bluaccess.param().abi()).ok() } } #[repr(C)] @@ -701,15 +701,15 @@ windows_core::imp::interface_hierarchy!(IDtcToXaHelper, windows_core::IUnknown); impl IDtcToXaHelper { pub unsafe fn Close(&self, i_fdorecovery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), i_fdorecovery.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), i_fdorecovery.param().abi()).ok() } pub unsafe fn TranslateTridToXid(&self, pitransaction: P0, pguidbqual: *const windows_core::GUID, pxid: *mut XID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TranslateTridToXid)(windows_core::Interface::as_raw(self), pitransaction.into_param().abi(), pguidbqual, pxid).ok() + (windows_core::Interface::vtable(self).TranslateTridToXid)(windows_core::Interface::as_raw(self), pitransaction.param().abi(), pguidbqual, pxid).ok() } } #[repr(C)] @@ -723,10 +723,10 @@ windows_core::imp::interface_hierarchy!(IDtcToXaHelperFactory, windows_core::IUn impl IDtcToXaHelperFactory { pub unsafe fn Create(&self, pszdsn: P0, pszclientdllname: P1, pguidrm: *mut windows_core::GUID, ppxahelper: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pszdsn.into_param().abi(), pszclientdllname.into_param().abi(), pguidrm, core::mem::transmute(ppxahelper)).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pszdsn.param().abi(), pszclientdllname.param().abi(), pguidrm, core::mem::transmute(ppxahelper)).ok() } } #[repr(C)] @@ -739,27 +739,27 @@ windows_core::imp::interface_hierarchy!(IDtcToXaHelperSinglePipe, windows_core:: impl IDtcToXaHelperSinglePipe { pub unsafe fn XARMCreate(&self, pszdsn: P0, pszclientdll: P1, pdwrmcookie: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).XARMCreate)(windows_core::Interface::as_raw(self), pszdsn.into_param().abi(), pszclientdll.into_param().abi(), pdwrmcookie).ok() + (windows_core::Interface::vtable(self).XARMCreate)(windows_core::Interface::as_raw(self), pszdsn.param().abi(), pszclientdll.param().abi(), 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), pdwitrans, dwrmcookie, pxid).ok() } pub unsafe fn EnlistWithRM(&self, dwrmcookie: u32, i_pitransaction: P0, i_pitransres: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnlistWithRM)(windows_core::Interface::as_raw(self), dwrmcookie, i_pitransaction.into_param().abi(), i_pitransres.into_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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseRMCookie)(windows_core::Interface::as_raw(self), i_dwrmcookie, i_fnormal.into_param().abi()) + (windows_core::Interface::vtable(self).ReleaseRMCookie)(windows_core::Interface::as_raw(self), i_dwrmcookie, i_fnormal.param().abi()) } } #[repr(C)] @@ -775,10 +775,10 @@ windows_core::imp::interface_hierarchy!(IDtcToXaMapper, windows_core::IUnknown); impl IDtcToXaMapper { pub unsafe fn RequestNewResourceManager(&self, pszdsn: P0, pszclientdllname: P1, pdwrmcookie: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestNewResourceManager)(windows_core::Interface::as_raw(self), pszdsn.into_param().abi(), pszclientdllname.into_param().abi(), pdwrmcookie).ok() + (windows_core::Interface::vtable(self).RequestNewResourceManager)(windows_core::Interface::as_raw(self), pszdsn.param().abi(), pszclientdllname.param().abi(), 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), pdwitransaction, dwrmcookie, pxid).ok() @@ -880,11 +880,11 @@ impl IRMHelper { } pub unsafe fn RMInfo(&self, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: P0, pszopenstring: P1, pszclosestring: P2, guidrmrecovery: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RMInfo)(windows_core::Interface::as_raw(self), pxa_switch, fcdeclcallingconv.into_param().abi(), pszopenstring.into_param().abi(), pszclosestring.into_param().abi(), core::mem::transmute(guidrmrecovery)).ok() + (windows_core::Interface::vtable(self).RMInfo)(windows_core::Interface::as_raw(self), pxa_switch, fcdeclcallingconv.param().abi(), pszopenstring.param().abi(), pszclosestring.param().abi(), core::mem::transmute(guidrmrecovery)).ok() } } #[repr(C)] @@ -898,10 +898,10 @@ windows_core::imp::interface_hierarchy!(IResourceManager, windows_core::IUnknown impl IResourceManager { pub unsafe fn Enlist(&self, ptransaction: P0, pres: P1, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Enlist)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), pres.into_param().abi(), puow, pisolevel, core::mem::transmute(ppenlist)).ok() + (windows_core::Interface::vtable(self).Enlist)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), pres.param().abi(), puow, pisolevel, core::mem::transmute(ppenlist)).ok() } pub unsafe fn Reenlist(&self, pprepinfo: &[u8], ltimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -927,10 +927,10 @@ windows_core::imp::interface_hierarchy!(IResourceManager2, windows_core::IUnknow impl IResourceManager2 { pub unsafe fn Enlist(&self, ptransaction: P0, pres: P1, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Enlist)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), pres.into_param().abi(), puow, pisolevel, core::mem::transmute(ppenlist)).ok() + (windows_core::Interface::vtable(self).base__.Enlist)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), pres.param().abi(), puow, pisolevel, core::mem::transmute(ppenlist)).ok() } pub unsafe fn Reenlist(&self, pprepinfo: &[u8], ltimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -944,10 +944,10 @@ impl IResourceManager2 { } pub unsafe fn Enlist2(&self, ptransaction: P0, presasync: P1, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Enlist2)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), presasync.into_param().abi(), puow, pisolevel, pxid, core::mem::transmute(ppenlist)).ok() + (windows_core::Interface::vtable(self).Enlist2)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), presasync.param().abi(), puow, pisolevel, pxid, core::mem::transmute(ppenlist)).ok() } pub unsafe fn Reenlist2(&self, pxid: *const XID, dwtimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -965,11 +965,11 @@ windows_core::imp::interface_hierarchy!(IResourceManagerFactory, windows_core::I impl IResourceManagerFactory { pub unsafe fn Create(&self, pguidrm: *const windows_core::GUID, pszrmname: P0, piresmgrsink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pguidrm, pszrmname.into_param().abi(), piresmgrsink.into_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)] @@ -982,18 +982,18 @@ windows_core::imp::interface_hierarchy!(IResourceManagerFactory2, windows_core:: impl IResourceManagerFactory2 { pub unsafe fn Create(&self, pguidrm: *const windows_core::GUID, pszrmname: P0, piresmgrsink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Create)(windows_core::Interface::as_raw(self), pguidrm, pszrmname.into_param().abi(), piresmgrsink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Create)(windows_core::Interface::as_raw(self), pguidrm, pszrmname.param().abi(), piresmgrsink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateEx(&self, pguidrm: *const windows_core::GUID, pszrmname: P0, piresmgrsink: P1, riidrequested: *const windows_core::GUID, ppvresmgr: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateEx)(windows_core::Interface::as_raw(self), pguidrm, pszrmname.into_param().abi(), piresmgrsink.into_param().abi(), riidrequested, ppvresmgr).ok() + (windows_core::Interface::vtable(self).CreateEx)(windows_core::Interface::as_raw(self), pguidrm, pszrmname.param().abi(), piresmgrsink.param().abi(), riidrequested, ppvresmgr).ok() } } #[repr(C)] @@ -1006,10 +1006,10 @@ windows_core::imp::interface_hierarchy!(IResourceManagerRejoinable, windows_core impl IResourceManagerRejoinable { pub unsafe fn Enlist(&self, ptransaction: P0, pres: P1, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Enlist)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), pres.into_param().abi(), puow, pisolevel, core::mem::transmute(ppenlist)).ok() + (windows_core::Interface::vtable(self).base__.base__.Enlist)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), pres.param().abi(), puow, pisolevel, core::mem::transmute(ppenlist)).ok() } pub unsafe fn Reenlist(&self, pprepinfo: &[u8], ltimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1023,10 +1023,10 @@ impl IResourceManagerRejoinable { } pub unsafe fn Enlist2(&self, ptransaction: P0, presasync: P1, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Enlist2)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), presasync.into_param().abi(), puow, pisolevel, pxid, core::mem::transmute(ppenlist)).ok() + (windows_core::Interface::vtable(self).base__.Enlist2)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), presasync.param().abi(), puow, pisolevel, pxid, core::mem::transmute(ppenlist)).ok() } pub unsafe fn Reenlist2(&self, pxid: *const XID, dwtimeout: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1063,10 +1063,10 @@ impl ITipHelper { } pub unsafe fn PullAsync(&self, i_psztxurl: *const u8, i_ptippullsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PullAsync)(windows_core::Interface::as_raw(self), i_psztxurl, i_ptippullsink.into_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__ = std::mem::zeroed(); @@ -1132,16 +1132,16 @@ windows_core::imp::interface_hierarchy!(ITransaction, windows_core::IUnknown); impl ITransaction { pub unsafe fn Commit(&self, fretaining: P0, grftc: u32, grfrm: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), grftc, grfrm).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), fretaining.param().abi(), grftc, grfrm).ok() } pub unsafe fn Abort(&self, pboidreason: *const BOID, fretaining: P0, fasync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), fasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), fasync.param().abi()).ok() } pub unsafe fn GetTransactionInfo(&self, pinfo: *mut XACTTRANSINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetTransactionInfo)(windows_core::Interface::as_raw(self), pinfo).ok() @@ -1159,16 +1159,16 @@ windows_core::imp::interface_hierarchy!(ITransaction2, windows_core::IUnknown, I impl ITransaction2 { pub unsafe fn Commit(&self, fretaining: P0, grftc: u32, grfrm: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Commit)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), grftc, grfrm).ok() + (windows_core::Interface::vtable(self).base__.base__.Commit)(windows_core::Interface::as_raw(self), fretaining.param().abi(), grftc, grfrm).ok() } pub unsafe fn Abort(&self, pboidreason: *const BOID, fretaining: P0, fasync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), fasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), fasync.param().abi()).ok() } pub unsafe fn GetTransactionInfo(&self, pinfo: *mut XACTTRANSINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetTransactionInfo)(windows_core::Interface::as_raw(self), pinfo).ok() @@ -1191,16 +1191,16 @@ windows_core::imp::interface_hierarchy!(ITransactionCloner, windows_core::IUnkno impl ITransactionCloner { pub unsafe fn Commit(&self, fretaining: P0, grftc: u32, grfrm: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Commit)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), grftc, grfrm).ok() + (windows_core::Interface::vtable(self).base__.Commit)(windows_core::Interface::as_raw(self), fretaining.param().abi(), grftc, grfrm).ok() } pub unsafe fn Abort(&self, pboidreason: *const BOID, fretaining: P0, fasync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), fasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), fasync.param().abi()).ok() } pub unsafe fn GetTransactionInfo(&self, pinfo: *mut XACTTRANSINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetTransactionInfo)(windows_core::Interface::as_raw(self), pinfo).ok() @@ -1224,11 +1224,11 @@ impl ITransactionDispenser { } pub unsafe fn BeginTransaction(&self, punkouter: P0, isolevel: i32, isoflags: u32, poptions: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginTransaction)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), isolevel, isoflags, poptions.into_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)] @@ -1243,9 +1243,9 @@ impl ITransactionEnlistmentAsync { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PrepareRequestDone(&self, hr: windows_core::HRESULT, pmk: P0, pboidreason: *const BOID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareRequestDone)(windows_core::Interface::as_raw(self), hr, pmk.into_param().abi(), 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), hr).ok() @@ -1269,16 +1269,16 @@ windows_core::imp::interface_hierarchy!(ITransactionExport, windows_core::IUnkno impl ITransactionExport { pub unsafe fn Export(&self, punktransaction: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), punktransaction.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), punktransaction.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetTransactionCookie(&self, punktransaction: P0, rgbtransactioncookie: &mut [u8], pcbused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTransactionCookie)(windows_core::Interface::as_raw(self), punktransaction.into_param().abi(), rgbtransactioncookie.len().try_into().unwrap(), core::mem::transmute(rgbtransactioncookie.as_ptr()), pcbused).ok() + (windows_core::Interface::vtable(self).GetTransactionCookie)(windows_core::Interface::as_raw(self), punktransaction.param().abi(), rgbtransactioncookie.len().try_into().unwrap(), core::mem::transmute(rgbtransactioncookie.as_ptr()), pcbused).ok() } } #[repr(C)] @@ -1387,15 +1387,15 @@ windows_core::imp::interface_hierarchy!(ITransactionOutcomeEvents, windows_core: impl ITransactionOutcomeEvents { pub unsafe fn Committed(&self, fretaining: P0, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Committed)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), pnewuow, hr).ok() + (windows_core::Interface::vtable(self).Committed)(windows_core::Interface::as_raw(self), fretaining.param().abi(), pnewuow, hr).ok() } pub unsafe fn Aborted(&self, pboidreason: *const BOID, fretaining: P0, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Aborted)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), pnewuow, hr).ok() + (windows_core::Interface::vtable(self).Aborted)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), 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), dwdecision, pboidreason, hr).ok() @@ -1446,10 +1446,10 @@ windows_core::imp::interface_hierarchy!(ITransactionPhase0Factory, windows_core: impl ITransactionPhase0Factory { pub unsafe fn Create(&self, pphase0notify: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pphase0notify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pphase0notify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1462,9 +1462,9 @@ windows_core::imp::interface_hierarchy!(ITransactionPhase0NotifyAsync, windows_c impl ITransactionPhase0NotifyAsync { pub unsafe fn Phase0Request(&self, fabortinghint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Phase0Request)(windows_core::Interface::as_raw(self), fabortinghint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Phase0Request)(windows_core::Interface::as_raw(self), fabortinghint.param().abi()).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), status).ok() @@ -1520,20 +1520,20 @@ windows_core::imp::interface_hierarchy!(ITransactionResource, windows_core::IUnk impl ITransactionResource { pub unsafe fn PrepareRequest(&self, fretaining: P0, grfrm: u32, fwantmoniker: P1, fsinglephase: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), grfrm, fwantmoniker.into_param().abi(), fsinglephase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.param().abi(), grfrm, fwantmoniker.param().abi(), fsinglephase.param().abi()).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), grfrm, pnewuow).ok() } pub unsafe fn AbortRequest(&self, pboidreason: *const BOID, fretaining: P0, pnewuow: *const BOID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), pnewuow).ok() + (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), pnewuow).ok() } pub unsafe fn TMDown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TMDown)(windows_core::Interface::as_raw(self)).ok() @@ -1552,20 +1552,20 @@ windows_core::imp::interface_hierarchy!(ITransactionResourceAsync, windows_core: impl ITransactionResourceAsync { pub unsafe fn PrepareRequest(&self, fretaining: P0, grfrm: u32, fwantmoniker: P1, fsinglephase: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), grfrm, fwantmoniker.into_param().abi(), fsinglephase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrepareRequest)(windows_core::Interface::as_raw(self), fretaining.param().abi(), grfrm, fwantmoniker.param().abi(), fsinglephase.param().abi()).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), grfrm, pnewuow).ok() } pub unsafe fn AbortRequest(&self, pboidreason: *const BOID, fretaining: P0, pnewuow: *const BOID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), pnewuow).ok() + (windows_core::Interface::vtable(self).AbortRequest)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), pnewuow).ok() } pub unsafe fn TMDown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TMDown)(windows_core::Interface::as_raw(self)).ok() @@ -1584,9 +1584,9 @@ windows_core::imp::interface_hierarchy!(ITransactionTransmitter, windows_core::I impl ITransactionTransmitter { pub unsafe fn Set(&self, ptransaction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Set)(windows_core::Interface::as_raw(self), ptransaction.param().abi()).ok() } pub unsafe fn GetPropagationTokenSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1641,11 +1641,11 @@ windows_core::imp::interface_hierarchy!(ITransactionVoterFactory2, windows_core: impl ITransactionVoterFactory2 { pub unsafe fn Create(&self, ptransaction: P0, pvoternotify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), pvoternotify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), ptransaction.param().abi(), pvoternotify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1658,15 +1658,15 @@ windows_core::imp::interface_hierarchy!(ITransactionVoterNotifyAsync2, windows_c impl ITransactionVoterNotifyAsync2 { pub unsafe fn Committed(&self, fretaining: P0, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Committed)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), pnewuow, hr).ok() + (windows_core::Interface::vtable(self).base__.Committed)(windows_core::Interface::as_raw(self), fretaining.param().abi(), pnewuow, hr).ok() } pub unsafe fn Aborted(&self, pboidreason: *const BOID, fretaining: P0, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Aborted)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), pnewuow, hr).ok() + (windows_core::Interface::vtable(self).base__.Aborted)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), 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).base__.HeuristicDecision)(windows_core::Interface::as_raw(self), dwdecision, pboidreason, hr).ok() @@ -1704,9 +1704,9 @@ windows_core::imp::interface_hierarchy!(IXAObtainRMInfo, windows_core::IUnknown) impl IXAObtainRMInfo { pub unsafe fn ObtainRMInfo(&self, pirmhelper: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ObtainRMInfo)(windows_core::Interface::as_raw(self), pirmhelper.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ObtainRMInfo)(windows_core::Interface::as_raw(self), pirmhelper.param().abi()).ok() } } #[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 ab195be4f4..9fb4eadce9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs @@ -1,27 +1,27 @@ #[inline] pub unsafe fn CallEnclave(lproutine: isize, lpparameter: *const core::ffi::c_void, fwaitforthread: P0, lpreturnvalue: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lproutine, lpparameter, fwaitforthread.into_param().abi(), lpreturnvalue).ok() + CallEnclave(lproutine, lpparameter, fwaitforthread.param().abi(), lpreturnvalue).ok() } #[inline] pub unsafe fn CreateEnclave(hprocess: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), dwsize, dwinitialcommitment, flenclavetype, lpenclaveinformation, dwinfolength, core::mem::transmute(lpenclaveerror.unwrap_or(std::ptr::null_mut()))) + CreateEnclave(hprocess.param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), dwsize, dwinitialcommitment, flenclavetype, lpenclaveinformation, dwinfolength, core::mem::transmute(lpenclaveerror.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn CreateEnvironmentBlock(lpenvironment: *mut *mut core::ffi::c_void, htoken: P0, binherit: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn CreateEnvironmentBlock(lpenvironment : *mut *mut core::ffi::c_void, htoken : super::super::Foundation:: HANDLE, binherit : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - CreateEnvironmentBlock(lpenvironment, htoken.into_param().abi(), binherit.into_param().abi()).ok() + CreateEnvironmentBlock(lpenvironment, htoken.param().abi(), binherit.param().abi()).ok() } #[inline] pub unsafe fn DeleteEnclave(lpaddress: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -61,52 +61,52 @@ pub unsafe fn EnclaveVerifyAttestationReport(enclavetype: u32, report: *const co #[inline] pub unsafe fn ExpandEnvironmentStringsA(lpsrc: P0, lpdst: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ExpandEnvironmentStringsA(lpsrc : windows_core::PCSTR, lpdst : windows_core::PSTR, nsize : u32) -> u32); - ExpandEnvironmentStringsA(lpsrc.into_param().abi(), core::mem::transmute(lpdst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ExpandEnvironmentStringsA(lpsrc.param().abi(), core::mem::transmute(lpdst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn ExpandEnvironmentStringsForUserA(htoken: P0, lpsrc: P1, lpdest: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn ExpandEnvironmentStringsForUserA(htoken : super::super::Foundation:: HANDLE, lpsrc : windows_core::PCSTR, lpdest : windows_core::PSTR, dwsize : u32) -> super::super::Foundation:: BOOL); - ExpandEnvironmentStringsForUserA(htoken.into_param().abi(), lpsrc.into_param().abi(), core::mem::transmute(lpdest.as_ptr()), lpdest.len().try_into().unwrap()).ok() + ExpandEnvironmentStringsForUserA(htoken.param().abi(), lpsrc.param().abi(), core::mem::transmute(lpdest.as_ptr()), lpdest.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn ExpandEnvironmentStringsForUserW(htoken: P0, lpsrc: P1, lpdest: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn ExpandEnvironmentStringsForUserW(htoken : super::super::Foundation:: HANDLE, lpsrc : windows_core::PCWSTR, lpdest : windows_core::PWSTR, dwsize : u32) -> super::super::Foundation:: BOOL); - ExpandEnvironmentStringsForUserW(htoken.into_param().abi(), lpsrc.into_param().abi(), core::mem::transmute(lpdest.as_ptr()), lpdest.len().try_into().unwrap()).ok() + ExpandEnvironmentStringsForUserW(htoken.param().abi(), lpsrc.param().abi(), core::mem::transmute(lpdest.as_ptr()), lpdest.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn ExpandEnvironmentStringsW(lpsrc: P0, lpdst: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ExpandEnvironmentStringsW(lpsrc : windows_core::PCWSTR, lpdst : windows_core::PWSTR, nsize : u32) -> u32); - ExpandEnvironmentStringsW(lpsrc.into_param().abi(), core::mem::transmute(lpdst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + ExpandEnvironmentStringsW(lpsrc.param().abi(), core::mem::transmute(lpdst.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdst.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn FreeEnvironmentStringsA(penv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FreeEnvironmentStringsA(penv : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - FreeEnvironmentStringsA(penv.into_param().abi()).ok() + FreeEnvironmentStringsA(penv.param().abi()).ok() } #[inline] pub unsafe fn FreeEnvironmentStringsW(penv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FreeEnvironmentStringsW(penv : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - FreeEnvironmentStringsW(penv.into_param().abi()).ok() + FreeEnvironmentStringsW(penv.param().abi()).ok() } #[inline] pub unsafe fn GetCommandLineA() -> windows_core::PCSTR { @@ -141,26 +141,26 @@ pub unsafe fn GetEnvironmentStringsW() -> windows_core::PWSTR { #[inline] pub unsafe fn GetEnvironmentVariableA(lpname: P0, lpbuffer: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetEnvironmentVariableA(lpname : windows_core::PCSTR, lpbuffer : windows_core::PSTR, nsize : u32) -> u32); - GetEnvironmentVariableA(lpname.into_param().abi(), 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())) + GetEnvironmentVariableA(lpname.param().abi(), 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())) } #[inline] pub unsafe fn GetEnvironmentVariableW(lpname: P0, lpbuffer: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetEnvironmentVariableW(lpname : windows_core::PCWSTR, lpbuffer : windows_core::PWSTR, nsize : u32) -> u32); - GetEnvironmentVariableW(lpname.into_param().abi(), 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())) + GetEnvironmentVariableW(lpname.param().abi(), 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())) } #[inline] pub unsafe fn InitializeEnclave(hprocess: P0, lpaddress: *const core::ffi::c_void, lpenclaveinformation: *const core::ffi::c_void, dwinfolength: u32, lpenclaveerror: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpaddress, lpenclaveinformation, dwinfolength, core::mem::transmute(lpenclaveerror.unwrap_or(std::ptr::null_mut()))).ok() + InitializeEnclave(hprocess.param().abi(), lpaddress, lpenclaveinformation, dwinfolength, core::mem::transmute(lpenclaveerror.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn IsEnclaveTypeSupported(flenclavetype: u32) -> windows_core::Result<()> { @@ -170,92 +170,92 @@ pub unsafe fn IsEnclaveTypeSupported(flenclavetype: u32) -> windows_core::Result #[inline] pub unsafe fn LoadEnclaveData(hprocess: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpaddress, lpbuffer, nsize, flprotect, lppageinformation, dwinfolength, lpnumberofbyteswritten, core::mem::transmute(lpenclaveerror.unwrap_or(std::ptr::null_mut()))).ok() + LoadEnclaveData(hprocess.param().abi(), lpaddress, lpbuffer, nsize, flprotect, lppageinformation, dwinfolength, lpnumberofbyteswritten, core::mem::transmute(lpenclaveerror.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn LoadEnclaveImageA(lpenclaveaddress: *const core::ffi::c_void, lpimagename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(lpenclaveaddress, lpimagename.into_param().abi()) + LoadEnclaveImageA(lpenclaveaddress, lpimagename.param().abi()) } #[inline] pub unsafe fn LoadEnclaveImageW(lpenclaveaddress: *const core::ffi::c_void, lpimagename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(lpenclaveaddress, lpimagename.into_param().abi()).ok() + LoadEnclaveImageW(lpenclaveaddress, lpimagename.param().abi()).ok() } #[inline] pub unsafe fn NeedCurrentDirectoryForExePathA(exename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn NeedCurrentDirectoryForExePathA(exename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - NeedCurrentDirectoryForExePathA(exename.into_param().abi()) + NeedCurrentDirectoryForExePathA(exename.param().abi()) } #[inline] pub unsafe fn NeedCurrentDirectoryForExePathW(exename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn NeedCurrentDirectoryForExePathW(exename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - NeedCurrentDirectoryForExePathW(exename.into_param().abi()) + NeedCurrentDirectoryForExePathW(exename.param().abi()) } #[inline] pub unsafe fn SetCurrentDirectoryA(lppathname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCurrentDirectoryA(lppathname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetCurrentDirectoryA(lppathname.into_param().abi()) + SetCurrentDirectoryA(lppathname.param().abi()) } #[inline] pub unsafe fn SetCurrentDirectoryW(lppathname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetCurrentDirectoryW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetCurrentDirectoryW(lppathname.into_param().abi()) + SetCurrentDirectoryW(lppathname.param().abi()) } #[inline] pub unsafe fn SetEnvironmentStringsW(newenvironment: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentStringsW(newenvironment : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetEnvironmentStringsW(newenvironment.into_param().abi()) + SetEnvironmentStringsW(newenvironment.param().abi()) } #[inline] pub unsafe fn SetEnvironmentVariableA(lpname: P0, lpvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentVariableA(lpname : windows_core::PCSTR, lpvalue : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetEnvironmentVariableA(lpname.into_param().abi(), lpvalue.into_param().abi()).ok() + SetEnvironmentVariableA(lpname.param().abi(), lpvalue.param().abi()).ok() } #[inline] pub unsafe fn SetEnvironmentVariableW(lpname: P0, lpvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentVariableW(lpname : windows_core::PCWSTR, lpvalue : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetEnvironmentVariableW(lpname.into_param().abi(), lpvalue.into_param().abi()).ok() + SetEnvironmentVariableW(lpname.param().abi(), lpvalue.param().abi()).ok() } #[inline] pub unsafe fn TerminateEnclave(lpaddress: *const core::ffi::c_void, fwait: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("vertdll.dll" "system" fn TerminateEnclave(lpaddress : *const core::ffi::c_void, fwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - TerminateEnclave(lpaddress, fwait.into_param().abi()).ok() + TerminateEnclave(lpaddress, fwait.param().abi()).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 f9b06a58b0..9d0b912421 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn AddERExcludedApplicationA(szapplication: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("faultrep.dll" "system" fn AddERExcludedApplicationA(szapplication : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AddERExcludedApplicationA(szapplication.into_param().abi()).ok() + AddERExcludedApplicationA(szapplication.param().abi()).ok() } #[inline] pub unsafe fn AddERExcludedApplicationW(wszapplication: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("faultrep.dll" "system" fn AddERExcludedApplicationW(wszapplication : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AddERExcludedApplicationW(wszapplication.into_param().abi()).ok() + AddERExcludedApplicationW(wszapplication.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] #[inline] @@ -23,28 +23,28 @@ pub unsafe fn ReportFault(pep: *const super::Diagnostics::Debug::EXCEPTION_POINT #[inline] pub unsafe fn WerAddExcludedApplication(pwzexename: P0, ballusers: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerAddExcludedApplication(pwzexename : windows_core::PCWSTR, ballusers : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - WerAddExcludedApplication(pwzexename.into_param().abi(), ballusers.into_param().abi()).ok() + WerAddExcludedApplication(pwzexename.param().abi(), ballusers.param().abi()).ok() } #[inline] pub unsafe fn WerFreeString(pwszstr: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerFreeString(pwszstr : windows_core::PCWSTR)); - WerFreeString(pwszstr.into_param().abi()) + WerFreeString(pwszstr.param().abi()) } #[inline] pub unsafe fn WerGetFlags(hprocess: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerGetFlags(hprocess : super::super::Foundation:: HANDLE, pdwflags : *mut WER_FAULT_REPORTING) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WerGetFlags(hprocess.into_param().abi(), &mut result__).map(|| result__) + WerGetFlags(hprocess.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WerRegisterAdditionalProcess(processid: u32, captureextrainfoforthreadid: u32) -> windows_core::Result<()> { @@ -54,19 +54,19 @@ pub unsafe fn WerRegisterAdditionalProcess(processid: u32, captureextrainfoforth #[inline] pub unsafe fn WerRegisterAppLocalDump(localappdatarelativepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerRegisterAppLocalDump(localappdatarelativepath : windows_core::PCWSTR) -> windows_core::HRESULT); - WerRegisterAppLocalDump(localappdatarelativepath.into_param().abi()).ok() + WerRegisterAppLocalDump(localappdatarelativepath.param().abi()).ok() } #[inline] pub unsafe fn WerRegisterCustomMetadata(key: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerRegisterCustomMetadata(key : windows_core::PCWSTR, value : windows_core::PCWSTR) -> windows_core::HRESULT); - WerRegisterCustomMetadata(key.into_param().abi(), value.into_param().abi()).ok() + WerRegisterCustomMetadata(key.param().abi(), value.param().abi()).ok() } #[inline] pub unsafe fn WerRegisterExcludedMemoryBlock(address: *const core::ffi::c_void, size: u32) -> windows_core::Result<()> { @@ -76,10 +76,10 @@ pub unsafe fn WerRegisterExcludedMemoryBlock(address: *const core::ffi::c_void, #[inline] pub unsafe fn WerRegisterFile(pwzfile: P0, regfiletype: WER_REGISTER_FILE_TYPE, dwflags: WER_FILE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), regfiletype, 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<()> { @@ -89,92 +89,92 @@ pub unsafe fn WerRegisterMemoryBlock(pvaddress: *const core::ffi::c_void, dwsize #[inline] pub unsafe fn WerRegisterRuntimeExceptionModule(pwszoutofprocesscallbackdll: P0, pcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pcontext).ok() + WerRegisterRuntimeExceptionModule(pwszoutofprocesscallbackdll.param().abi(), pcontext).ok() } #[inline] pub unsafe fn WerRemoveExcludedApplication(pwzexename: P0, ballusers: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerRemoveExcludedApplication(pwzexename : windows_core::PCWSTR, ballusers : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - WerRemoveExcludedApplication(pwzexename.into_param().abi(), ballusers.into_param().abi()).ok() + WerRemoveExcludedApplication(pwzexename.param().abi(), ballusers.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn WerReportAddDump(hreporthandle: P0, hprocess: P1, hthread: P2, dumptype: WER_DUMP_TYPE, pexceptionparam: Option<*const WER_EXCEPTION_INFORMATION>, pdumpcustomoptions: Option<*const WER_DUMP_CUSTOM_OPTIONS>, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hreporthandle.into_param().abi(), hprocess.into_param().abi(), hthread.into_param().abi(), dumptype, core::mem::transmute(pexceptionparam.unwrap_or(std::ptr::null())), core::mem::transmute(pdumpcustomoptions.unwrap_or(std::ptr::null())), dwflags).ok() + WerReportAddDump(hreporthandle.param().abi(), hprocess.param().abi(), hthread.param().abi(), dumptype, core::mem::transmute(pexceptionparam.unwrap_or(std::ptr::null())), core::mem::transmute(pdumpcustomoptions.unwrap_or(std::ptr::null())), dwflags).ok() } #[inline] pub unsafe fn WerReportAddFile(hreporthandle: P0, pwzpath: P1, repfiletype: WER_FILE_TYPE, dwfileflags: WER_FILE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hreporthandle.into_param().abi(), pwzpath.into_param().abi(), repfiletype, dwfileflags).ok() + WerReportAddFile(hreporthandle.param().abi(), pwzpath.param().abi(), repfiletype, dwfileflags).ok() } #[inline] pub unsafe fn WerReportCloseHandle(hreporthandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerReportCloseHandle(hreporthandle : HREPORT) -> windows_core::HRESULT); - WerReportCloseHandle(hreporthandle.into_param().abi()).ok() + WerReportCloseHandle(hreporthandle.param().abi()).ok() } #[inline] pub unsafe fn WerReportCreate(pwzeventtype: P0, reptype: WER_REPORT_TYPE, preportinformation: Option<*const WER_REPORT_INFORMATION>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WerReportCreate(pwzeventtype.into_param().abi(), reptype, core::mem::transmute(preportinformation.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + WerReportCreate(pwzeventtype.param().abi(), reptype, core::mem::transmute(preportinformation.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn WerReportHang(hwndhungapp: P0, pwzhungapplicationname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndhungapp.into_param().abi(), pwzhungapplicationname.into_param().abi()).ok() + WerReportHang(hwndhungapp.param().abi(), pwzhungapplicationname.param().abi()).ok() } #[inline] pub unsafe fn WerReportSetParameter(hreporthandle: P0, dwparamid: u32, pwzname: P1, pwzvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hreporthandle.into_param().abi(), dwparamid, pwzname.into_param().abi(), pwzvalue.into_param().abi()).ok() + WerReportSetParameter(hreporthandle.param().abi(), dwparamid, pwzname.param().abi(), pwzvalue.param().abi()).ok() } #[inline] pub unsafe fn WerReportSetUIOption(hreporthandle: P0, repuitypeid: WER_REPORT_UI, pwzvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hreporthandle.into_param().abi(), repuitypeid, pwzvalue.into_param().abi()).ok() + WerReportSetUIOption(hreporthandle.param().abi(), repuitypeid, pwzvalue.param().abi()).ok() } #[inline] pub unsafe fn WerReportSubmit(hreporthandle: P0, consent: WER_CONSENT, dwflags: WER_SUBMIT_FLAGS, psubmitresult: Option<*mut WER_SUBMIT_RESULT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hreporthandle.into_param().abi(), consent, dwflags, core::mem::transmute(psubmitresult.unwrap_or(std::ptr::null_mut()))).ok() + WerReportSubmit(hreporthandle.param().abi(), consent, dwflags, core::mem::transmute(psubmitresult.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WerSetFlags(dwflags: WER_FAULT_REPORTING) -> windows_core::Result<()> { @@ -184,44 +184,44 @@ pub unsafe fn WerSetFlags(dwflags: WER_FAULT_REPORTING) -> windows_core::Result< #[inline] pub unsafe fn WerStoreClose(hreportstore: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreClose(hreportstore : HREPORTSTORE)); - WerStoreClose(hreportstore.into_param().abi()) + WerStoreClose(hreportstore.param().abi()) } #[inline] pub unsafe fn WerStoreGetFirstReportKey(hreportstore: P0, ppszreportkey: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreGetFirstReportKey(hreportstore : HREPORTSTORE, ppszreportkey : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - WerStoreGetFirstReportKey(hreportstore.into_param().abi(), core::mem::transmute(ppszreportkey.unwrap_or(std::ptr::null_mut()))).ok() + WerStoreGetFirstReportKey(hreportstore.param().abi(), core::mem::transmute(ppszreportkey.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WerStoreGetNextReportKey(hreportstore: P0, ppszreportkey: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreGetNextReportKey(hreportstore : HREPORTSTORE, ppszreportkey : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - WerStoreGetNextReportKey(hreportstore.into_param().abi(), core::mem::transmute(ppszreportkey.unwrap_or(std::ptr::null_mut()))).ok() + WerStoreGetNextReportKey(hreportstore.param().abi(), core::mem::transmute(ppszreportkey.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WerStoreGetReportCount(hreportstore: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreGetReportCount(hreportstore : HREPORTSTORE, pdwreportcount : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WerStoreGetReportCount(hreportstore.into_param().abi(), &mut result__).map(|| result__) + WerStoreGetReportCount(hreportstore.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WerStoreGetSizeOnDisk(hreportstore: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wer.dll" "system" fn WerStoreGetSizeOnDisk(hreportstore : HREPORTSTORE, pqwsizeinbytes : *mut u64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WerStoreGetSizeOnDisk(hreportstore.into_param().abi(), &mut result__).map(|| result__) + WerStoreGetSizeOnDisk(hreportstore.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES) -> windows_core::Result { @@ -237,38 +237,38 @@ pub unsafe fn WerStorePurge() -> windows_core::Result<()> { #[inline] pub unsafe fn WerStoreQueryReportMetadataV1(hreportstore: P0, pszreportkey: P1, preportmetadata: *mut WER_REPORT_METADATA_V1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hreportstore.into_param().abi(), pszreportkey.into_param().abi(), preportmetadata).ok() + WerStoreQueryReportMetadataV1(hreportstore.param().abi(), pszreportkey.param().abi(), preportmetadata).ok() } #[inline] pub unsafe fn WerStoreQueryReportMetadataV2(hreportstore: P0, pszreportkey: P1, preportmetadata: *mut WER_REPORT_METADATA_V2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hreportstore.into_param().abi(), pszreportkey.into_param().abi(), preportmetadata).ok() + WerStoreQueryReportMetadataV2(hreportstore.param().abi(), pszreportkey.param().abi(), preportmetadata).ok() } #[inline] pub unsafe fn WerStoreQueryReportMetadataV3(hreportstore: P0, pszreportkey: P1, preportmetadata: *mut WER_REPORT_METADATA_V3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hreportstore.into_param().abi(), pszreportkey.into_param().abi(), preportmetadata).ok() + WerStoreQueryReportMetadataV3(hreportstore.param().abi(), pszreportkey.param().abi(), preportmetadata).ok() } #[inline] pub unsafe fn WerStoreUploadReport(hreportstore: P0, pszreportkey: P1, dwflags: u32, psubmitresult: Option<*mut WER_SUBMIT_RESULT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hreportstore.into_param().abi(), pszreportkey.into_param().abi(), dwflags, core::mem::transmute(psubmitresult.unwrap_or(std::ptr::null_mut()))).ok() + WerStoreUploadReport(hreportstore.param().abi(), pszreportkey.param().abi(), dwflags, core::mem::transmute(psubmitresult.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WerUnregisterAdditionalProcess(processid: u32) -> windows_core::Result<()> { @@ -283,10 +283,10 @@ pub unsafe fn WerUnregisterAppLocalDump() -> windows_core::Result<()> { #[inline] pub unsafe fn WerUnregisterCustomMetadata(key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerUnregisterCustomMetadata(key : windows_core::PCWSTR) -> windows_core::HRESULT); - WerUnregisterCustomMetadata(key.into_param().abi()).ok() + WerUnregisterCustomMetadata(key.param().abi()).ok() } #[inline] pub unsafe fn WerUnregisterExcludedMemoryBlock(address: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -296,10 +296,10 @@ pub unsafe fn WerUnregisterExcludedMemoryBlock(address: *const core::ffi::c_void #[inline] pub unsafe fn WerUnregisterFile(pwzfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WerUnregisterFile(pwzfilepath : windows_core::PCWSTR) -> windows_core::HRESULT); - WerUnregisterFile(pwzfilepath.into_param().abi()).ok() + WerUnregisterFile(pwzfilepath.param().abi()).ok() } #[inline] pub unsafe fn WerUnregisterMemoryBlock(pvaddress: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -309,10 +309,10 @@ pub unsafe fn WerUnregisterMemoryBlock(pvaddress: *const core::ffi::c_void) -> w #[inline] pub unsafe fn WerUnregisterRuntimeExceptionModule(pwszoutofprocesscallbackdll: P0, pcontext: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pcontext).ok() + WerUnregisterRuntimeExceptionModule(pwszoutofprocesscallbackdll.param().abi(), pcontext).ok() } pub const APPCRASH_EVENT: windows_core::PCWSTR = windows_core::w!("APPCRASH"); pub const E_STORE_INVALID: REPORT_STORE_TYPES = REPORT_STORE_TYPES(4i32); 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 791031e4fa..dd483dfa14 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs @@ -6,10 +6,10 @@ pub unsafe fn EcClose(object: isize) -> super::super::Foundation::BOOL { #[inline] pub unsafe fn EcDeleteSubscription(subscriptionname: P0, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wecapi.dll" "system" fn EcDeleteSubscription(subscriptionname : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); - EcDeleteSubscription(subscriptionname.into_param().abi(), flags) + EcDeleteSubscription(subscriptionname.param().abi(), flags) } #[inline] pub unsafe fn EcEnumNextSubscription(subscriptionenum: isize, subscriptionnamebuffer: Option<&mut [u16]>, subscriptionnamebufferused: *mut u32) -> super::super::Foundation::BOOL { @@ -34,11 +34,11 @@ pub unsafe fn EcGetSubscriptionProperty(subscription: isize, propertyid: EC_SUBS #[inline] pub unsafe fn EcGetSubscriptionRunTimeStatus(subscriptionname: P0, statusinfoid: EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID, eventsourcename: P1, flags: u32, statusvaluebuffersize: u32, statusvaluebuffer: *mut EC_VARIANT, statusvaluebufferused: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), statusinfoid, eventsourcename.into_param().abi(), flags, statusvaluebuffersize, statusvaluebuffer, statusvaluebufferused) + EcGetSubscriptionRunTimeStatus(subscriptionname.param().abi(), statusinfoid, eventsourcename.param().abi(), flags, statusvaluebuffersize, statusvaluebuffer, statusvaluebufferused) } #[inline] pub unsafe fn EcInsertObjectArrayElement(objectarray: isize, arrayindex: u32) -> super::super::Foundation::BOOL { @@ -48,10 +48,10 @@ pub unsafe fn EcInsertObjectArrayElement(objectarray: isize, arrayindex: u32) -> #[inline] pub unsafe fn EcOpenSubscription(subscriptionname: P0, accessmask: u32, flags: u32) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wecapi.dll" "system" fn EcOpenSubscription(subscriptionname : windows_core::PCWSTR, accessmask : u32, flags : u32) -> isize); - EcOpenSubscription(subscriptionname.into_param().abi(), accessmask, flags) + EcOpenSubscription(subscriptionname.param().abi(), accessmask, flags) } #[inline] pub unsafe fn EcOpenSubscriptionEnum(flags: u32) -> isize { @@ -66,11 +66,11 @@ pub unsafe fn EcRemoveObjectArrayElement(objectarray: isize, arrayindex: u32) -> #[inline] pub unsafe fn EcRetrySubscription(subscriptionname: P0, eventsourcename: P1, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), eventsourcename.into_param().abi(), flags) + EcRetrySubscription(subscriptionname.param().abi(), eventsourcename.param().abi(), flags) } #[inline] pub unsafe fn EcSaveSubscription(subscription: isize, flags: u32) -> super::super::Foundation::BOOL { 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 e72e9d07f6..6a94fd0a96 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs @@ -1,97 +1,97 @@ #[inline] pub unsafe fn BackupEventLogA(heventlog: P0, lpbackupfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(heventlog.into_param().abi(), lpbackupfilename.into_param().abi()).ok() + BackupEventLogA(heventlog.param().abi(), lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn BackupEventLogW(heventlog: P0, lpbackupfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(heventlog.into_param().abi(), lpbackupfilename.into_param().abi()).ok() + BackupEventLogW(heventlog.param().abi(), lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn ClearEventLogA(heventlog: P0, lpbackupfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(heventlog.into_param().abi(), lpbackupfilename.into_param().abi()).ok() + ClearEventLogA(heventlog.param().abi(), lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn ClearEventLogW(heventlog: P0, lpbackupfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(heventlog.into_param().abi(), lpbackupfilename.into_param().abi()).ok() + ClearEventLogW(heventlog.param().abi(), lpbackupfilename.param().abi()).ok() } #[inline] pub unsafe fn CloseEventLog(heventlog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CloseEventLog(heventlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CloseEventLog(heventlog.into_param().abi()).ok() + CloseEventLog(heventlog.param().abi()).ok() } #[inline] pub unsafe fn DeregisterEventSource(heventlog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn DeregisterEventSource(heventlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeregisterEventSource(heventlog.into_param().abi()).ok() + DeregisterEventSource(heventlog.param().abi()).ok() } #[inline] pub unsafe fn EvtArchiveExportedLog(session: P0, logfilepath: P1, locale: u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(session.into_param().abi(), logfilepath.into_param().abi(), locale, flags).ok() + EvtArchiveExportedLog(session.param().abi(), logfilepath.param().abi(), locale, flags).ok() } #[inline] pub unsafe fn EvtCancel(object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtCancel(object : EVT_HANDLE) -> super::super::Foundation:: BOOL); - EvtCancel(object.into_param().abi()).ok() + EvtCancel(object.param().abi()).ok() } #[inline] pub unsafe fn EvtClearLog(session: P0, channelpath: P1, targetfilepath: P2, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(session.into_param().abi(), channelpath.into_param().abi(), targetfilepath.into_param().abi(), flags).ok() + EvtClearLog(session.param().abi(), channelpath.param().abi(), targetfilepath.param().abi(), flags).ok() } #[inline] pub unsafe fn EvtClose(object: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtClose(object : EVT_HANDLE) -> super::super::Foundation:: BOOL); - EvtClose(object.into_param().abi()).ok() + EvtClose(object.param().abi()).ok() } #[inline] pub unsafe fn EvtCreateBookmark(bookmarkxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtCreateBookmark(bookmarkxml : windows_core::PCWSTR) -> EVT_HANDLE); - let result__ = EvtCreateBookmark(bookmarkxml.into_param().abi()); + let result__ = EvtCreateBookmark(bookmarkxml.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -103,46 +103,46 @@ pub unsafe fn EvtCreateRenderContext(valuepaths: Option<&[windows_core::PCWSTR]> #[inline] pub unsafe fn EvtExportLog(session: P0, path: P1, query: P2, targetfilepath: P3, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(session.into_param().abi(), path.into_param().abi(), query.into_param().abi(), targetfilepath.into_param().abi(), flags).ok() + EvtExportLog(session.param().abi(), path.param().abi(), query.param().abi(), targetfilepath.param().abi(), flags).ok() } #[inline] pub unsafe fn EvtFormatMessage(publishermetadata: P0, event: P1, messageid: u32, values: Option<&[EVT_VARIANT]>, flags: u32, buffer: Option<&mut [u16]>, bufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtFormatMessage(publishermetadata : EVT_HANDLE, event : EVT_HANDLE, messageid : u32, valuecount : u32, values : *const EVT_VARIANT, flags : u32, buffersize : u32, buffer : windows_core::PWSTR, bufferused : *mut u32) -> super::super::Foundation:: BOOL); - EvtFormatMessage(publishermetadata.into_param().abi(), event.into_param().abi(), 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())), 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())), bufferused).ok() + EvtFormatMessage(publishermetadata.param().abi(), event.param().abi(), 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())), 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())), bufferused).ok() } #[inline] pub unsafe fn EvtGetChannelConfigProperty(channelconfig: P0, propertyid: EVT_CHANNEL_CONFIG_PROPERTY_ID, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(channelconfig.into_param().abi(), propertyid, flags, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() + EvtGetChannelConfigProperty(channelconfig.param().abi(), propertyid, flags, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() } #[inline] pub unsafe fn EvtGetEventInfo(event: P0, propertyid: EVT_EVENT_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(event.into_param().abi(), propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() + EvtGetEventInfo(event.param().abi(), propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() } #[inline] pub unsafe fn EvtGetEventMetadataProperty(eventmetadata: P0, propertyid: EVT_EVENT_METADATA_PROPERTY_ID, flags: u32, eventmetadatapropertybuffersize: u32, eventmetadatapropertybuffer: Option<*mut EVT_VARIANT>, eventmetadatapropertybufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(eventmetadata.into_param().abi(), propertyid, flags, eventmetadatapropertybuffersize, core::mem::transmute(eventmetadatapropertybuffer.unwrap_or(std::ptr::null_mut())), eventmetadatapropertybufferused).ok() + EvtGetEventMetadataProperty(eventmetadata.param().abi(), propertyid, flags, eventmetadatapropertybuffersize, core::mem::transmute(eventmetadatapropertybuffer.unwrap_or(std::ptr::null_mut())), eventmetadatapropertybufferused).ok() } #[inline] pub unsafe fn EvtGetExtendedStatus(buffer: Option<&mut [u16]>, bufferused: *mut u32) -> u32 { @@ -152,10 +152,10 @@ pub unsafe fn EvtGetExtendedStatus(buffer: Option<&mut [u16]>, bufferused: *mut #[inline] pub unsafe fn EvtGetLogInfo(log: P0, propertyid: EVT_LOG_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(log.into_param().abi(), propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() + EvtGetLogInfo(log.param().abi(), propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() } #[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<()> { @@ -170,108 +170,108 @@ pub unsafe fn EvtGetObjectArraySize(objectarray: isize, objectarraysize: *mut u3 #[inline] pub unsafe fn EvtGetPublisherMetadataProperty(publishermetadata: P0, propertyid: EVT_PUBLISHER_METADATA_PROPERTY_ID, flags: u32, publishermetadatapropertybuffersize: u32, publishermetadatapropertybuffer: Option<*mut EVT_VARIANT>, publishermetadatapropertybufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(publishermetadata.into_param().abi(), propertyid, flags, publishermetadatapropertybuffersize, core::mem::transmute(publishermetadatapropertybuffer.unwrap_or(std::ptr::null_mut())), publishermetadatapropertybufferused).ok() + EvtGetPublisherMetadataProperty(publishermetadata.param().abi(), propertyid, flags, publishermetadatapropertybuffersize, core::mem::transmute(publishermetadatapropertybuffer.unwrap_or(std::ptr::null_mut())), publishermetadatapropertybufferused).ok() } #[inline] pub unsafe fn EvtGetQueryInfo(queryorsubscription: P0, propertyid: EVT_QUERY_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(queryorsubscription.into_param().abi(), propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() + EvtGetQueryInfo(queryorsubscription.param().abi(), propertyid, propertyvaluebuffersize, core::mem::transmute(propertyvaluebuffer.unwrap_or(std::ptr::null_mut())), propertyvaluebufferused).ok() } #[inline] pub unsafe fn EvtNext(resultset: P0, events: &mut [isize], timeout: u32, flags: u32, returned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(resultset.into_param().abi(), events.len().try_into().unwrap(), core::mem::transmute(events.as_ptr()), timeout, flags, returned).ok() + EvtNext(resultset.param().abi(), events.len().try_into().unwrap(), core::mem::transmute(events.as_ptr()), timeout, flags, returned).ok() } #[inline] pub unsafe fn EvtNextChannelPath(channelenum: P0, channelpathbuffer: Option<&mut [u16]>, channelpathbufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(channelenum.into_param().abi(), 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())), channelpathbufferused).ok() + EvtNextChannelPath(channelenum.param().abi(), 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())), channelpathbufferused).ok() } #[inline] pub unsafe fn EvtNextEventMetadata(eventmetadataenum: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtNextEventMetadata(eventmetadataenum : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtNextEventMetadata(eventmetadataenum.into_param().abi(), flags); + let result__ = EvtNextEventMetadata(eventmetadataenum.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtNextPublisherId(publisherenum: P0, publisheridbuffer: Option<&mut [u16]>, publisheridbufferused: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(publisherenum.into_param().abi(), 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())), publisheridbufferused).ok() + EvtNextPublisherId(publisherenum.param().abi(), 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())), publisheridbufferused).ok() } #[inline] pub unsafe fn EvtOpenChannelConfig(session: P0, channelpath: P1, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(session.into_param().abi(), channelpath.into_param().abi(), flags); + let result__ = EvtOpenChannelConfig(session.param().abi(), channelpath.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenChannelEnum(session: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenChannelEnum(session : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenChannelEnum(session.into_param().abi(), flags); + let result__ = EvtOpenChannelEnum(session.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenEventMetadataEnum(publishermetadata: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenEventMetadataEnum(publishermetadata : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenEventMetadataEnum(publishermetadata.into_param().abi(), flags); + let result__ = EvtOpenEventMetadataEnum(publishermetadata.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenLog(session: P0, path: P1, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(session.into_param().abi(), path.into_param().abi(), flags); + let result__ = EvtOpenLog(session.param().abi(), path.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenPublisherEnum(session: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtOpenPublisherEnum(session : EVT_HANDLE, flags : u32) -> EVT_HANDLE); - let result__ = EvtOpenPublisherEnum(session.into_param().abi(), flags); + let result__ = EvtOpenPublisherEnum(session.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtOpenPublisherMetadata(session: P0, publisherid: P1, logfilepath: P2, locale: u32, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(session.into_param().abi(), publisherid.into_param().abi(), logfilepath.into_param().abi(), locale, flags); + let result__ = EvtOpenPublisherMetadata(session.param().abi(), publisherid.param().abi(), logfilepath.param().abi(), locale, flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -283,196 +283,196 @@ pub unsafe fn EvtOpenSession(loginclass: EVT_LOGIN_CLASS, login: *const core::ff #[inline] pub unsafe fn EvtQuery(session: P0, path: P1, query: P2, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(session.into_param().abi(), path.into_param().abi(), query.into_param().abi(), flags); + let result__ = EvtQuery(session.param().abi(), path.param().abi(), query.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtRender(context: P0, fragment: P1, flags: u32, buffersize: u32, buffer: Option<*mut core::ffi::c_void>, bufferused: *mut u32, propertycount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(context.into_param().abi(), fragment.into_param().abi(), flags, buffersize, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), bufferused, propertycount).ok() + EvtRender(context.param().abi(), fragment.param().abi(), flags, buffersize, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), bufferused, propertycount).ok() } #[inline] pub unsafe fn EvtSaveChannelConfig(channelconfig: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtSaveChannelConfig(channelconfig : EVT_HANDLE, flags : u32) -> super::super::Foundation:: BOOL); - EvtSaveChannelConfig(channelconfig.into_param().abi(), flags).ok() + EvtSaveChannelConfig(channelconfig.param().abi(), flags).ok() } #[inline] pub unsafe fn EvtSeek(resultset: P0, position: i64, bookmark: P1, timeout: u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(resultset.into_param().abi(), position, bookmark.into_param().abi(), timeout, flags).ok() + EvtSeek(resultset.param().abi(), position, bookmark.param().abi(), timeout, flags).ok() } #[inline] pub unsafe fn EvtSetChannelConfigProperty(channelconfig: P0, propertyid: EVT_CHANNEL_CONFIG_PROPERTY_ID, flags: u32, propertyvalue: *const EVT_VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(channelconfig.into_param().abi(), propertyid, flags, propertyvalue).ok() + EvtSetChannelConfigProperty(channelconfig.param().abi(), propertyid, flags, propertyvalue).ok() } #[inline] pub unsafe fn EvtSubscribe(session: P0, signalevent: P1, channelpath: P2, query: P3, bookmark: P4, context: Option<*const core::ffi::c_void>, callback: EVT_SUBSCRIBE_CALLBACK, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(session.into_param().abi(), signalevent.into_param().abi(), channelpath.into_param().abi(), query.into_param().abi(), bookmark.into_param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null())), callback, flags); + let result__ = EvtSubscribe(session.param().abi(), signalevent.param().abi(), channelpath.param().abi(), query.param().abi(), bookmark.param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null())), callback, flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn EvtUpdateBookmark(bookmark: P0, event: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wevtapi.dll" "system" fn EvtUpdateBookmark(bookmark : EVT_HANDLE, event : EVT_HANDLE) -> super::super::Foundation:: BOOL); - EvtUpdateBookmark(bookmark.into_param().abi(), event.into_param().abi()).ok() + EvtUpdateBookmark(bookmark.param().abi(), event.param().abi()).ok() } #[inline] pub unsafe fn GetEventLogInformation(heventlog: P0, dwinfolevel: u32, lpbuffer: *mut core::ffi::c_void, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(heventlog.into_param().abi(), dwinfolevel, lpbuffer, cbbufsize, pcbbytesneeded).ok() + GetEventLogInformation(heventlog.param().abi(), dwinfolevel, lpbuffer, cbbufsize, pcbbytesneeded).ok() } #[inline] pub unsafe fn GetNumberOfEventLogRecords(heventlog: P0, numberofrecords: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetNumberOfEventLogRecords(heventlog : super::super::Foundation:: HANDLE, numberofrecords : *mut u32) -> super::super::Foundation:: BOOL); - GetNumberOfEventLogRecords(heventlog.into_param().abi(), numberofrecords).ok() + GetNumberOfEventLogRecords(heventlog.param().abi(), numberofrecords).ok() } #[inline] pub unsafe fn GetOldestEventLogRecord(heventlog: P0, oldestrecord: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetOldestEventLogRecord(heventlog : super::super::Foundation:: HANDLE, oldestrecord : *mut u32) -> super::super::Foundation:: BOOL); - GetOldestEventLogRecord(heventlog.into_param().abi(), oldestrecord).ok() + GetOldestEventLogRecord(heventlog.param().abi(), oldestrecord).ok() } #[inline] pub unsafe fn NotifyChangeEventLog(heventlog: P0, hevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn NotifyChangeEventLog(heventlog : super::super::Foundation:: HANDLE, hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - NotifyChangeEventLog(heventlog.into_param().abi(), hevent.into_param().abi()).ok() + NotifyChangeEventLog(heventlog.param().abi(), hevent.param().abi()).ok() } #[inline] pub unsafe fn OpenBackupEventLogA(lpuncservername: P0, lpfilename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenBackupEventLogA(lpuncservername : windows_core::PCSTR, lpfilename : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenBackupEventLogA(lpuncservername.into_param().abi(), lpfilename.into_param().abi()); + let result__ = OpenBackupEventLogA(lpuncservername.param().abi(), lpfilename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenBackupEventLogW(lpuncservername: P0, lpfilename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenBackupEventLogW(lpuncservername : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenBackupEventLogW(lpuncservername.into_param().abi(), lpfilename.into_param().abi()); + let result__ = OpenBackupEventLogW(lpuncservername.param().abi(), lpfilename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenEventLogA(lpuncservername: P0, lpsourcename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenEventLogA(lpuncservername : windows_core::PCSTR, lpsourcename : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenEventLogA(lpuncservername.into_param().abi(), lpsourcename.into_param().abi()); + let result__ = OpenEventLogA(lpuncservername.param().abi(), lpsourcename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenEventLogW(lpuncservername: P0, lpsourcename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenEventLogW(lpuncservername : windows_core::PCWSTR, lpsourcename : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = OpenEventLogW(lpuncservername.into_param().abi(), lpsourcename.into_param().abi()); + let result__ = OpenEventLogW(lpuncservername.param().abi(), lpsourcename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn ReadEventLogA(heventlog: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(heventlog.into_param().abi(), dwreadflags, dwrecordoffset, lpbuffer, nnumberofbytestoread, pnbytesread, pnminnumberofbytesneeded).ok() + ReadEventLogA(heventlog.param().abi(), dwreadflags, dwrecordoffset, lpbuffer, nnumberofbytestoread, pnbytesread, pnminnumberofbytesneeded).ok() } #[inline] pub unsafe fn ReadEventLogW(heventlog: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(heventlog.into_param().abi(), dwreadflags, dwrecordoffset, lpbuffer, nnumberofbytestoread, pnbytesread, pnminnumberofbytesneeded).ok() + ReadEventLogW(heventlog.param().abi(), dwreadflags, dwrecordoffset, lpbuffer, nnumberofbytestoread, pnbytesread, pnminnumberofbytesneeded).ok() } #[inline] pub unsafe fn RegisterEventSourceA(lpuncservername: P0, lpsourcename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterEventSourceA(lpuncservername : windows_core::PCSTR, lpsourcename : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = RegisterEventSourceA(lpuncservername.into_param().abi(), lpsourcename.into_param().abi()); + let result__ = RegisterEventSourceA(lpuncservername.param().abi(), lpsourcename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterEventSourceW(lpuncservername: P0, lpsourcename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegisterEventSourceW(lpuncservername : windows_core::PCWSTR, lpsourcename : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = RegisterEventSourceW(lpuncservername.into_param().abi(), lpsourcename.into_param().abi()); + let result__ = RegisterEventSourceW(lpuncservername.param().abi(), lpsourcename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn ReportEventA(heventlog: P0, wtype: REPORT_EVENT_TYPE, wcategory: u16, dweventid: u32, lpusersid: P1, dwdatasize: u32, lpstrings: Option<&[windows_core::PCSTR]>, lprawdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ReportEventA(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Foundation:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCSTR, lprawdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReportEventA(heventlog.into_param().abi(), wtype, wcategory, dweventid, lpusersid.into_param().abi(), 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(std::ptr::null()))).ok() + ReportEventA(heventlog.param().abi(), wtype, wcategory, dweventid, lpusersid.param().abi(), 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(std::ptr::null()))).ok() } #[inline] pub unsafe fn ReportEventW(heventlog: P0, wtype: REPORT_EVENT_TYPE, wcategory: u16, dweventid: u32, lpusersid: P1, dwdatasize: u32, lpstrings: Option<&[windows_core::PCWSTR]>, lprawdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ReportEventW(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Foundation:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCWSTR, lprawdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ReportEventW(heventlog.into_param().abi(), wtype, wcategory, dweventid, lpusersid.into_param().abi(), 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(std::ptr::null()))).ok() + ReportEventW(heventlog.param().abi(), wtype, wcategory, dweventid, lpusersid.param().abi(), 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(std::ptr::null()))).ok() } pub const EVENTLOG_AUDIT_FAILURE: REPORT_EVENT_TYPE = REPORT_EVENT_TYPE(16u16); pub const EVENTLOG_AUDIT_SUCCESS: REPORT_EVENT_TYPE = REPORT_EVENT_TYPE(8u16); 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 1f6e5e8036..598ae3f299 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn IsDestinationReachableA(lpszdestination: P0, lpqocinfo: *mut QOCINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sensapi.dll" "system" fn IsDestinationReachableA(lpszdestination : windows_core::PCSTR, lpqocinfo : *mut QOCINFO) -> super::super::Foundation:: BOOL); - IsDestinationReachableA(lpszdestination.into_param().abi(), lpqocinfo).ok() + IsDestinationReachableA(lpszdestination.param().abi(), lpqocinfo).ok() } #[inline] pub unsafe fn IsDestinationReachableW(lpszdestination: P0, lpqocinfo: *mut QOCINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sensapi.dll" "system" fn IsDestinationReachableW(lpszdestination : windows_core::PCWSTR, lpqocinfo : *mut QOCINFO) -> super::super::Foundation:: BOOL); - IsDestinationReachableW(lpszdestination.into_param().abi(), lpqocinfo).ok() + IsDestinationReachableW(lpszdestination.param().abi(), lpqocinfo).ok() } #[inline] pub unsafe fn IsNetworkAlive(lpdwflags: *mut u32) -> windows_core::Result<()> { @@ -27,45 +27,45 @@ windows_core::imp::interface_hierarchy!(ISensLogon, windows_core::IUnknown, supe impl ISensLogon { pub unsafe fn Logon(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn Logoff(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Logoff)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Logoff)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn StartShell(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartShell)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartShell)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn DisplayLock(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayLock)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayLock)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn DisplayUnlock(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayUnlock)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayUnlock)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn StartScreenSaver(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartScreenSaver)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartScreenSaver)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn StopScreenSaver(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopScreenSaver)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StopScreenSaver)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -88,33 +88,33 @@ windows_core::imp::interface_hierarchy!(ISensLogon2, windows_core::IUnknown, sup impl ISensLogon2 { pub unsafe fn Logon(&self, bstrusername: P0, dwsessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), dwsessionid).ok() + (windows_core::Interface::vtable(self).Logon)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), dwsessionid).ok() } pub unsafe fn Logoff(&self, bstrusername: P0, dwsessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Logoff)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), dwsessionid).ok() + (windows_core::Interface::vtable(self).Logoff)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), dwsessionid).ok() } pub unsafe fn SessionDisconnect(&self, bstrusername: P0, dwsessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SessionDisconnect)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), dwsessionid).ok() + (windows_core::Interface::vtable(self).SessionDisconnect)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), dwsessionid).ok() } pub unsafe fn SessionReconnect(&self, bstrusername: P0, dwsessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SessionReconnect)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), dwsessionid).ok() + (windows_core::Interface::vtable(self).SessionReconnect)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), dwsessionid).ok() } pub unsafe fn PostShell(&self, bstrusername: P0, dwsessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PostShell)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), dwsessionid).ok() + (windows_core::Interface::vtable(self).PostShell)(windows_core::Interface::as_raw(self), bstrusername.param().abi(), dwsessionid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -135,35 +135,35 @@ windows_core::imp::interface_hierarchy!(ISensNetwork, windows_core::IUnknown, su impl ISensNetwork { pub unsafe fn ConnectionMade(&self, bstrconnection: P0, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectionMade)(windows_core::Interface::as_raw(self), bstrconnection.into_param().abi(), ultype, lpqocinfo).ok() + (windows_core::Interface::vtable(self).ConnectionMade)(windows_core::Interface::as_raw(self), bstrconnection.param().abi(), ultype, lpqocinfo).ok() } pub unsafe fn ConnectionMadeNoQOCInfo(&self, bstrconnection: P0, ultype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectionMadeNoQOCInfo)(windows_core::Interface::as_raw(self), bstrconnection.into_param().abi(), ultype).ok() + (windows_core::Interface::vtable(self).ConnectionMadeNoQOCInfo)(windows_core::Interface::as_raw(self), bstrconnection.param().abi(), ultype).ok() } pub unsafe fn ConnectionLost(&self, bstrconnection: P0, ultype: SENS_CONNECTION_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectionLost)(windows_core::Interface::as_raw(self), bstrconnection.into_param().abi(), ultype).ok() + (windows_core::Interface::vtable(self).ConnectionLost)(windows_core::Interface::as_raw(self), bstrconnection.param().abi(), ultype).ok() } pub unsafe fn DestinationReachable(&self, bstrdestination: P0, bstrconnection: P1, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DestinationReachable)(windows_core::Interface::as_raw(self), bstrdestination.into_param().abi(), bstrconnection.into_param().abi(), ultype, lpqocinfo).ok() + (windows_core::Interface::vtable(self).DestinationReachable)(windows_core::Interface::as_raw(self), bstrdestination.param().abi(), bstrconnection.param().abi(), ultype, lpqocinfo).ok() } pub unsafe fn DestinationReachableNoQOCInfo(&self, bstrdestination: P0, bstrconnection: P1, ultype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DestinationReachableNoQOCInfo)(windows_core::Interface::as_raw(self), bstrdestination.into_param().abi(), bstrconnection.into_param().abi(), ultype).ok() + (windows_core::Interface::vtable(self).DestinationReachableNoQOCInfo)(windows_core::Interface::as_raw(self), bstrdestination.param().abi(), bstrconnection.param().abi(), ultype).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 46a26d8d20..89f8e660c7 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs @@ -6,55 +6,55 @@ pub unsafe fn BrowseForGPO(lpbrowseinfo: *mut GPOBROWSEINFO) -> windows_core::Re #[inline] pub unsafe fn CommandLineFromMsiDescriptor(descriptor: P0, commandline: windows_core::PWSTR, commandlinelength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CommandLineFromMsiDescriptor(descriptor : windows_core::PCWSTR, commandline : windows_core::PWSTR, commandlinelength : *mut u32) -> u32); - CommandLineFromMsiDescriptor(descriptor.into_param().abi(), core::mem::transmute(commandline), commandlinelength) + CommandLineFromMsiDescriptor(descriptor.param().abi(), core::mem::transmute(commandline), commandlinelength) } #[inline] pub unsafe fn CreateGPOLink(lpgpo: P0, lpcontainer: P1, fhighpriority: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("gpedit.dll" "system" fn CreateGPOLink(lpgpo : windows_core::PCWSTR, lpcontainer : windows_core::PCWSTR, fhighpriority : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - CreateGPOLink(lpgpo.into_param().abi(), lpcontainer.into_param().abi(), fhighpriority.into_param().abi()).ok() + CreateGPOLink(lpgpo.param().abi(), lpcontainer.param().abi(), fhighpriority.param().abi()).ok() } #[inline] pub unsafe fn DeleteAllGPOLinks(lpcontainer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gpedit.dll" "system" fn DeleteAllGPOLinks(lpcontainer : windows_core::PCWSTR) -> windows_core::HRESULT); - DeleteAllGPOLinks(lpcontainer.into_param().abi()).ok() + DeleteAllGPOLinks(lpcontainer.param().abi()).ok() } #[inline] pub unsafe fn DeleteGPOLink(lpgpo: P0, lpcontainer: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gpedit.dll" "system" fn DeleteGPOLink(lpgpo : windows_core::PCWSTR, lpcontainer : windows_core::PCWSTR) -> windows_core::HRESULT); - DeleteGPOLink(lpgpo.into_param().abi(), lpcontainer.into_param().abi()).ok() + DeleteGPOLink(lpgpo.param().abi(), lpcontainer.param().abi()).ok() } #[inline] pub unsafe fn EnterCriticalPolicySection(bmachine: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn EnterCriticalPolicySection(bmachine : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); - let result__ = EnterCriticalPolicySection(bmachine.into_param().abi()); + let result__ = EnterCriticalPolicySection(bmachine.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn ExportRSoPData(lpnamespace: P0, lpfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gpedit.dll" "system" fn ExportRSoPData(lpnamespace : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> windows_core::HRESULT); - ExportRSoPData(lpnamespace.into_param().abi(), lpfilename.into_param().abi()).ok() + ExportRSoPData(lpnamespace.param().abi(), lpfilename.param().abi()).ok() } #[inline] pub unsafe fn FreeGPOListA(pgpolist: *const GROUP_POLICY_OBJECTA) -> windows_core::Result<()> { @@ -69,67 +69,67 @@ pub unsafe fn FreeGPOListW(pgpolist: *const GROUP_POLICY_OBJECTW) -> windows_cor #[inline] pub unsafe fn GenerateGPNotification(bmachine: P0, lpwszmgmtproduct: P1, dwmgmtproductoptions: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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_param().abi(), lpwszmgmtproduct.into_param().abi(), dwmgmtproductoptions) + GenerateGPNotification(bmachine.param().abi(), lpwszmgmtproduct.param().abi(), dwmgmtproductoptions) } #[inline] pub unsafe fn GetAppliedGPOListA(dwflags: u32, pmachinename: P0, psiduser: P1, pguidextension: *const windows_core::GUID, ppgpolist: *mut *mut GROUP_POLICY_OBJECTA) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GetAppliedGPOListA(dwflags : u32, pmachinename : windows_core::PCSTR, psiduser : super::super::Foundation:: PSID, pguidextension : *const windows_core::GUID, ppgpolist : *mut *mut GROUP_POLICY_OBJECTA) -> u32); - GetAppliedGPOListA(dwflags, pmachinename.into_param().abi(), psiduser.into_param().abi(), pguidextension, ppgpolist) + GetAppliedGPOListA(dwflags, pmachinename.param().abi(), psiduser.param().abi(), pguidextension, ppgpolist) } #[inline] pub unsafe fn GetAppliedGPOListW(dwflags: u32, pmachinename: P0, psiduser: P1, pguidextension: *const windows_core::GUID, ppgpolist: *mut *mut GROUP_POLICY_OBJECTW) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn GetAppliedGPOListW(dwflags : u32, pmachinename : windows_core::PCWSTR, psiduser : super::super::Foundation:: PSID, pguidextension : *const windows_core::GUID, ppgpolist : *mut *mut GROUP_POLICY_OBJECTW) -> u32); - GetAppliedGPOListW(dwflags, pmachinename.into_param().abi(), psiduser.into_param().abi(), pguidextension, ppgpolist) + GetAppliedGPOListW(dwflags, pmachinename.param().abi(), psiduser.param().abi(), pguidextension, ppgpolist) } #[inline] pub unsafe fn GetGPOListA(htoken: P0, lpname: P1, lphostname: P2, lpcomputername: P3, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(htoken.into_param().abi(), lpname.into_param().abi(), lphostname.into_param().abi(), lpcomputername.into_param().abi(), dwflags, pgpolist).ok() + GetGPOListA(htoken.param().abi(), lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), dwflags, pgpolist).ok() } #[inline] pub unsafe fn GetGPOListW(htoken: P0, lpname: P1, lphostname: P2, lpcomputername: P3, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(htoken.into_param().abi(), lpname.into_param().abi(), lphostname.into_param().abi(), lpcomputername.into_param().abi(), dwflags, pgpolist).ok() + GetGPOListW(htoken.param().abi(), lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), dwflags, pgpolist).ok() } #[inline] pub unsafe fn GetLocalManagedApplicationData(productcode: P0, displayname: *mut windows_core::PWSTR, supporturl: *mut windows_core::PWSTR) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetLocalManagedApplicationData(productcode : windows_core::PCWSTR, displayname : *mut windows_core::PWSTR, supporturl : *mut windows_core::PWSTR)); - GetLocalManagedApplicationData(productcode.into_param().abi(), displayname, supporturl) + GetLocalManagedApplicationData(productcode.param().abi(), displayname, supporturl) } #[inline] pub unsafe fn GetLocalManagedApplications(buserapps: P0, pdwapps: *mut u32, prglocalapps: *mut *mut LOCALMANAGEDAPPLICATION) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetLocalManagedApplications(buserapps : super::super::Foundation:: BOOL, pdwapps : *mut u32, prglocalapps : *mut *mut LOCALMANAGEDAPPLICATION) -> u32); - GetLocalManagedApplications(buserapps.into_param().abi(), pdwapps, prglocalapps) + GetLocalManagedApplications(buserapps.param().abi(), pdwapps, prglocalapps) } #[cfg(feature = "Win32_UI_Shell")] #[inline] @@ -145,11 +145,11 @@ pub unsafe fn GetManagedApplications(pcategory: *const windows_core::GUID, dwque #[inline] pub unsafe fn ImportRSoPData(lpnamespace: P0, lpfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gpedit.dll" "system" fn ImportRSoPData(lpnamespace : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> windows_core::HRESULT); - ImportRSoPData(lpnamespace.into_param().abi(), lpfilename.into_param().abi()).ok() + ImportRSoPData(lpnamespace.param().abi(), lpfilename.param().abi()).ok() } #[inline] pub unsafe fn InstallApplication(pinstallinfo: *const INSTALLDATA) -> u32 { @@ -159,10 +159,10 @@ pub unsafe fn InstallApplication(pinstallinfo: *const INSTALLDATA) -> u32 { #[inline] pub unsafe fn LeaveCriticalPolicySection(hsection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn LeaveCriticalPolicySection(hsection : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - LeaveCriticalPolicySection(hsection.into_param().abi()).ok() + LeaveCriticalPolicySection(hsection.param().abi()).ok() } #[inline] pub unsafe fn ProcessGroupPolicyCompleted(extensionid: *const windows_core::GUID, pasynchandle: usize, dwstatus: u32) -> u32 { @@ -177,94 +177,81 @@ pub unsafe fn ProcessGroupPolicyCompletedEx(extensionid: *const windows_core::GU #[inline] pub unsafe fn RefreshPolicy(bmachine: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn RefreshPolicy(bmachine : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - RefreshPolicy(bmachine.into_param().abi()).ok() + RefreshPolicy(bmachine.param().abi()).ok() } #[inline] pub unsafe fn RefreshPolicyEx(bmachine: P0, dwoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn RefreshPolicyEx(bmachine : super::super::Foundation:: BOOL, dwoptions : u32) -> super::super::Foundation:: BOOL); - RefreshPolicyEx(bmachine.into_param().abi(), dwoptions).ok() + RefreshPolicyEx(bmachine.param().abi(), dwoptions).ok() } #[inline] pub unsafe fn RegisterGPNotification(hevent: P0, bmachine: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn RegisterGPNotification(hevent : super::super::Foundation:: HANDLE, bmachine : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - RegisterGPNotification(hevent.into_param().abi(), bmachine.into_param().abi()).ok() + RegisterGPNotification(hevent.param().abi(), bmachine.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RsopAccessCheckByType(psecuritydescriptor: P0, pprincipalselfsid: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn RsopAccessCheckByType(psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, pprincipalselfsid : super::super::Foundation:: 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( - psecuritydescriptor.into_param().abi(), - pprincipalselfsid.into_param().abi(), - 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()), - pgenericmapping, - core::mem::transmute(pprivilegeset.unwrap_or(std::ptr::null())), - core::mem::transmute(pdwprivilegesetlength.unwrap_or(std::ptr::null())), - pdwgrantedaccessmask, - pbaccessstatus, - ) - .ok() + RsopAccessCheckByType(psecuritydescriptor.param().abi(), pprincipalselfsid.param().abi(), 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()), pgenericmapping, core::mem::transmute(pprivilegeset.unwrap_or(std::ptr::null())), core::mem::transmute(pdwprivilegesetlength.unwrap_or(std::ptr::null())), pdwgrantedaccessmask, pbaccessstatus).ok() } #[inline] pub unsafe fn RsopFileAccessCheck(pszfilename: P0, prsoptoken: *const core::ffi::c_void, dwdesiredaccessmask: u32, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), prsoptoken, dwdesiredaccessmask, pdwgrantedaccessmask, pbaccessstatus).ok() + RsopFileAccessCheck(pszfilename.param().abi(), prsoptoken, dwdesiredaccessmask, pdwgrantedaccessmask, pbaccessstatus).ok() } #[cfg(feature = "Win32_System_Wmi")] #[inline] pub unsafe fn RsopResetPolicySettingStatus(dwflags: u32, pservices: P0, psettinginstance: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, pservices.into_param().abi(), psettinginstance.into_param().abi()).ok() + RsopResetPolicySettingStatus(dwflags, pservices.param().abi(), psettinginstance.param().abi()).ok() } #[cfg(feature = "Win32_System_Wmi")] #[inline] pub unsafe fn RsopSetPolicySettingStatus(dwflags: u32, pservices: P0, psettinginstance: P1, pstatus: &[POLICYSETTINGSTATUSINFO]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwflags, pservices.into_param().abi(), psettinginstance.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn UninstallApplication(productcode : windows_core::PCWSTR, dwstatus : u32) -> u32); - UninstallApplication(productcode.into_param().abi(), dwstatus) + UninstallApplication(productcode.param().abi(), dwstatus) } #[inline] pub unsafe fn UnregisterGPNotification(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn UnregisterGPNotification(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnregisterGPNotification(hevent.into_param().abi()).ok() + UnregisterGPNotification(hevent.param().abi()).ok() } windows_core::imp::define_interface!(IGPEInformation, IGPEInformation_Vtbl, 0x8fc0b735_a0e1_11d1_a7d3_0000f87571e3); windows_core::imp::interface_hierarchy!(IGPEInformation, windows_core::IUnknown); @@ -296,10 +283,10 @@ impl IGPEInformation { } pub unsafe fn PolicyChanged(&self, bmachine: P0, badd: P1, pguidextension: *mut windows_core::GUID, pguidsnapin: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PolicyChanged)(windows_core::Interface::as_raw(self), bmachine.into_param().abi(), badd.into_param().abi(), pguidextension, pguidsnapin).ok() + (windows_core::Interface::vtable(self).PolicyChanged)(windows_core::Interface::as_raw(self), bmachine.param().abi(), badd.param().abi(), pguidextension, pguidsnapin).ok() } } #[repr(C)] @@ -327,46 +314,46 @@ impl IGPM { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDomain(&self, bstrdomain: P0, bstrdomaincontroller: P1, ldcflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDomain)(windows_core::Interface::as_raw(self), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDomain)(windows_core::Interface::as_raw(self), bstrdomain.param().abi(), bstrdomaincontroller.param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBackupDir(&self, bstrbackupdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackupDir)(windows_core::Interface::as_raw(self), bstrbackupdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBackupDir)(windows_core::Interface::as_raw(self), bstrbackupdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSitesContainer(&self, bstrforest: P0, bstrdomain: P1, bstrdomaincontroller: P2, ldcflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSitesContainer)(windows_core::Interface::as_raw(self), bstrforest.into_param().abi(), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSitesContainer)(windows_core::Interface::as_raw(self), bstrforest.param().abi(), bstrdomain.param().abi(), bstrdomaincontroller.param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRSOP(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: P0, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRSOP)(windows_core::Interface::as_raw(self), gpmrsopmode, bstrnamespace.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRSOP)(windows_core::Interface::as_raw(self), gpmrsopmode, bstrnamespace.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePermission(&self, bstrtrustee: P0, perm: GPMPermissionType, binheritable: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePermission)(windows_core::Interface::as_raw(self), bstrtrustee.into_param().abi(), perm, binheritable.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePermission)(windows_core::Interface::as_raw(self), bstrtrustee.param().abi(), perm, binheritable.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSearchCriteria(&self) -> windows_core::Result { @@ -376,10 +363,10 @@ impl IGPM { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTrustee(&self, bstrtrustee: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClientSideExtensions(&self) -> windows_core::Result { @@ -394,10 +381,10 @@ impl IGPM { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMigrationTable(&self, bstrmigrationtablepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMigrationTable)(windows_core::Interface::as_raw(self), bstrmigrationtablepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMigrationTable)(windows_core::Interface::as_raw(self), bstrmigrationtablepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateMigrationTable(&self) -> windows_core::Result { @@ -406,9 +393,9 @@ impl IGPM { } pub unsafe fn InitializeReporting(&self, bstradmpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeReporting)(windows_core::Interface::as_raw(self), bstradmpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeReporting)(windows_core::Interface::as_raw(self), bstradmpath.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -470,46 +457,46 @@ impl IGPM2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDomain(&self, bstrdomain: P0, bstrdomaincontroller: P1, ldcflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDomain)(windows_core::Interface::as_raw(self), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetDomain)(windows_core::Interface::as_raw(self), bstrdomain.param().abi(), bstrdomaincontroller.param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBackupDir(&self, bstrbackupdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetBackupDir)(windows_core::Interface::as_raw(self), bstrbackupdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetBackupDir)(windows_core::Interface::as_raw(self), bstrbackupdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSitesContainer(&self, bstrforest: P0, bstrdomain: P1, bstrdomaincontroller: P2, ldcflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSitesContainer)(windows_core::Interface::as_raw(self), bstrforest.into_param().abi(), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSitesContainer)(windows_core::Interface::as_raw(self), bstrforest.param().abi(), bstrdomain.param().abi(), bstrdomaincontroller.param().abi(), ldcflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRSOP(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: P0, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRSOP)(windows_core::Interface::as_raw(self), gpmrsopmode, bstrnamespace.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetRSOP)(windows_core::Interface::as_raw(self), gpmrsopmode, bstrnamespace.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePermission(&self, bstrtrustee: P0, perm: GPMPermissionType, binheritable: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePermission)(windows_core::Interface::as_raw(self), bstrtrustee.into_param().abi(), perm, binheritable.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePermission)(windows_core::Interface::as_raw(self), bstrtrustee.param().abi(), perm, binheritable.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSearchCriteria(&self) -> windows_core::Result { @@ -519,10 +506,10 @@ impl IGPM2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTrustee(&self, bstrtrustee: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClientSideExtensions(&self) -> windows_core::Result { @@ -537,10 +524,10 @@ impl IGPM2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMigrationTable(&self, bstrmigrationtablepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetMigrationTable)(windows_core::Interface::as_raw(self), bstrmigrationtablepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetMigrationTable)(windows_core::Interface::as_raw(self), bstrmigrationtablepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateMigrationTable(&self) -> windows_core::Result { @@ -549,23 +536,23 @@ impl IGPM2 { } pub unsafe fn InitializeReporting(&self, bstradmpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeReporting)(windows_core::Interface::as_raw(self), bstradmpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeReporting)(windows_core::Interface::as_raw(self), bstradmpath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBackupDirEx(&self, bstrbackupdir: P0, backupdirtype: GPMBackupType) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackupDirEx)(windows_core::Interface::as_raw(self), bstrbackupdir.into_param().abi(), backupdirtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBackupDirEx)(windows_core::Interface::as_raw(self), bstrbackupdir.param().abi(), backupdirtype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InitializeReportingEx(&self, bstradmpath: P0, reportingoptions: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeReportingEx)(windows_core::Interface::as_raw(self), bstradmpath.into_param().abi(), reportingoptions).ok() + (windows_core::Interface::vtable(self).InitializeReportingEx)(windows_core::Interface::as_raw(self), bstradmpath.param().abi(), reportingoptions).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -603,9 +590,9 @@ impl IGPMAsyncProgress { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Status(&self, lprogressnumerator: i32, lprogressdenominator: i32, hrstatus: windows_core::HRESULT, presult: *const windows_core::VARIANT, ppigpmstatusmsgcollection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Status)(windows_core::Interface::as_raw(self), lprogressnumerator, lprogressdenominator, hrstatus, core::mem::transmute(presult), ppigpmstatusmsgcollection.into_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")] @@ -662,10 +649,10 @@ impl IGPMBackup { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -733,18 +720,18 @@ impl IGPMBackupDir { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBackup(&self, bstrid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackup)(windows_core::Interface::as_raw(self), bstrid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBackup)(windows_core::Interface::as_raw(self), bstrid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchBackups(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchBackups)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SearchBackups)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -777,18 +764,18 @@ impl IGPMBackupDirEx { } pub unsafe fn GetBackup(&self, bstrid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackup)(windows_core::Interface::as_raw(self), bstrid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetBackup)(windows_core::Interface::as_raw(self), bstrid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchBackups(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchBackups)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SearchBackups)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1010,13 +997,13 @@ impl IGPMConstants { } pub unsafe fn get_SecurityFlags(&self, vbowner: P0, vbgroup: P1, vbdacl: P2, vbsacl: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SecurityFlags)(windows_core::Interface::as_raw(self), vbowner.into_param().abi(), vbgroup.into_param().abi(), vbdacl.into_param().abi(), vbsacl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_SecurityFlags)(windows_core::Interface::as_raw(self), vbowner.param().abi(), vbgroup.param().abi(), vbdacl.param().abi(), vbsacl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DoNotValidateDC(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1108,10 +1095,10 @@ impl IGPMConstants { } pub unsafe fn get_RsopPlanningLoopbackOption(&self, vbmerge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_RsopPlanningLoopbackOption)(windows_core::Interface::as_raw(self), vbmerge.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_RsopPlanningLoopbackOption)(windows_core::Interface::as_raw(self), vbmerge.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RsopPlanningAssumeUserWQLFilterTrue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1331,13 +1318,13 @@ impl IGPMConstants2 { } pub unsafe fn get_SecurityFlags(&self, vbowner: P0, vbgroup: P1, vbdacl: P2, vbsacl: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_SecurityFlags)(windows_core::Interface::as_raw(self), vbowner.into_param().abi(), vbgroup.into_param().abi(), vbdacl.into_param().abi(), vbsacl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.get_SecurityFlags)(windows_core::Interface::as_raw(self), vbowner.param().abi(), vbgroup.param().abi(), vbdacl.param().abi(), vbsacl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DoNotValidateDC(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1429,10 +1416,10 @@ impl IGPMConstants2 { } pub unsafe fn get_RsopPlanningLoopbackOption(&self, vbmerge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_RsopPlanningLoopbackOption)(windows_core::Interface::as_raw(self), vbmerge.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.get_RsopPlanningLoopbackOption)(windows_core::Interface::as_raw(self), vbmerge.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RsopPlanningAssumeUserWQLFilterTrue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1545,58 +1532,58 @@ impl IGPMDomain { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetGPO(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGPO)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetGPO)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchGPOs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SearchGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RestoreGPO(&self, pigpmbackup: P0, ldcflags: i32, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RestoreGPO)(windows_core::Interface::as_raw(self), pigpmbackup.into_param().abi(), 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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSOM(&self, bstrpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSOM)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSOM)(windows_core::Interface::as_raw(self), bstrpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchSOMs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchSOMs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SearchSOMs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWMIFilter(&self, bstrpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWMIFilter)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWMIFilter)(windows_core::Interface::as_raw(self), bstrpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchWMIFilters(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchWMIFilters)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SearchWMIFilters)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1660,58 +1647,58 @@ impl IGPMDomain2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetGPO(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetGPO)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetGPO)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchGPOs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SearchGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SearchGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RestoreGPO(&self, pigpmbackup: P0, ldcflags: i32, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RestoreGPO)(windows_core::Interface::as_raw(self), pigpmbackup.into_param().abi(), ldcflags, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSOM(&self, bstrpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSOM)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSOM)(windows_core::Interface::as_raw(self), bstrpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchSOMs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SearchSOMs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SearchSOMs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWMIFilter(&self, bstrpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWMIFilter)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetWMIFilter)(windows_core::Interface::as_raw(self), bstrpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchWMIFilters(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SearchWMIFilters)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SearchWMIFilters)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateStarterGPO(&self) -> windows_core::Result { @@ -1721,43 +1708,43 @@ impl IGPMDomain2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGPOFromStarterGPO(&self, pgpotemplate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGPOFromStarterGPO)(windows_core::Interface::as_raw(self), pgpotemplate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGPOFromStarterGPO)(windows_core::Interface::as_raw(self), pgpotemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStarterGPO(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStarterGPO)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStarterGPO)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchStarterGPOs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchStarterGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SearchStarterGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadStarterGPO(&self, bstrloadfile: P0, boverwrite: P1, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadStarterGPO)(windows_core::Interface::as_raw(self), bstrloadfile.into_param().abi(), boverwrite.into_param().abi(), 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), bstrloadfile.param().abi(), boverwrite.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RestoreStarterGPO(&self, pigpmtmplbackup: P0, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RestoreStarterGPO)(windows_core::Interface::as_raw(self), pigpmtmplbackup.into_param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RestoreStarterGPO)(windows_core::Interface::as_raw(self), pigpmtmplbackup.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1811,58 +1798,58 @@ impl IGPMDomain3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetGPO(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetGPO)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetGPO)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchGPOs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.SearchGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.SearchGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RestoreGPO(&self, pigpmbackup: P0, ldcflags: i32, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.RestoreGPO)(windows_core::Interface::as_raw(self), pigpmbackup.into_param().abi(), ldcflags, core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSOM(&self, bstrpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetSOM)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetSOM)(windows_core::Interface::as_raw(self), bstrpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchSOMs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.SearchSOMs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.SearchSOMs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetWMIFilter(&self, bstrpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetWMIFilter)(windows_core::Interface::as_raw(self), bstrpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetWMIFilter)(windows_core::Interface::as_raw(self), bstrpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchWMIFilters(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.SearchWMIFilters)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.SearchWMIFilters)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateStarterGPO(&self) -> windows_core::Result { @@ -1872,43 +1859,43 @@ impl IGPMDomain3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGPOFromStarterGPO(&self, pgpotemplate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateGPOFromStarterGPO)(windows_core::Interface::as_raw(self), pgpotemplate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateGPOFromStarterGPO)(windows_core::Interface::as_raw(self), pgpotemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStarterGPO(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetStarterGPO)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetStarterGPO)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchStarterGPOs(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SearchStarterGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SearchStarterGPOs)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadStarterGPO(&self, bstrloadfile: P0, boverwrite: P1, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.LoadStarterGPO)(windows_core::Interface::as_raw(self), bstrloadfile.into_param().abi(), boverwrite.into_param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.LoadStarterGPO)(windows_core::Interface::as_raw(self), bstrloadfile.param().abi(), boverwrite.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RestoreStarterGPO(&self, pigpmtmplbackup: P0, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RestoreStarterGPO)(windows_core::Interface::as_raw(self), pigpmtmplbackup.into_param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.RestoreStarterGPO)(windows_core::Interface::as_raw(self), pigpmtmplbackup.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result { @@ -1921,9 +1908,9 @@ impl IGPMDomain3 { } pub unsafe fn SetInfrastructureDC(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInfrastructureDC)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInfrastructureDC)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetInfrastructureFlags)(windows_core::Interface::as_raw(self), dwflags).ok() @@ -1953,9 +1940,9 @@ impl IGPMGPO { } pub unsafe fn SetDisplayName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2001,21 +1988,21 @@ impl IGPMGPO { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWMIFilter(&self, pigpmwmifilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWMIFilter)(windows_core::Interface::as_raw(self), pigpmwmifilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWMIFilter)(windows_core::Interface::as_raw(self), pigpmwmifilter.param().abi()).ok() } pub unsafe fn SetUserEnabled(&self, vbenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserEnabled)(windows_core::Interface::as_raw(self), vbenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserEnabled)(windows_core::Interface::as_raw(self), vbenabled.param().abi()).ok() } pub unsafe fn SetComputerEnabled(&self, vbenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetComputerEnabled)(windows_core::Interface::as_raw(self), vbenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetComputerEnabled)(windows_core::Interface::as_raw(self), vbenabled.param().abi()).ok() } pub unsafe fn IsUserEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2033,9 +2020,9 @@ impl IGPMGPO { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityInfo(&self, psecurityinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2043,19 +2030,19 @@ impl IGPMGPO { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Backup(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.param().abi(), bstrcomment.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Import(&self, lflags: i32, pigpmbackup: P0, pvarmigrationtable: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), lflags, pigpmbackup.into_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(feature = "Win32_System_Com")] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result { @@ -2065,25 +2052,25 @@ impl IGPMGPO { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, lflags: i32, pigpmdomain: P0, pvarnewdisplayname: *const windows_core::VARIANT, pvarmigrationtable: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyTo)(windows_core::Interface::as_raw(self), lflags, pigpmdomain.into_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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor(&self, lflags: i32, psd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, psd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, psd.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSecurityDescriptor(&self, lflags: i32) -> windows_core::Result { @@ -2177,9 +2164,9 @@ impl IGPMGPO2 { } pub unsafe fn SetDisplayName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDisplayName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2225,21 +2212,21 @@ impl IGPMGPO2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWMIFilter(&self, pigpmwmifilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWMIFilter)(windows_core::Interface::as_raw(self), pigpmwmifilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWMIFilter)(windows_core::Interface::as_raw(self), pigpmwmifilter.param().abi()).ok() } pub unsafe fn SetUserEnabled(&self, vbenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUserEnabled)(windows_core::Interface::as_raw(self), vbenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUserEnabled)(windows_core::Interface::as_raw(self), vbenabled.param().abi()).ok() } pub unsafe fn SetComputerEnabled(&self, vbenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetComputerEnabled)(windows_core::Interface::as_raw(self), vbenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetComputerEnabled)(windows_core::Interface::as_raw(self), vbenabled.param().abi()).ok() } pub unsafe fn IsUserEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2257,9 +2244,9 @@ impl IGPMGPO2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityInfo(&self, psecurityinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2267,19 +2254,19 @@ impl IGPMGPO2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Backup(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.param().abi(), bstrcomment.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Import(&self, lflags: i32, pigpmbackup: P0, pvarmigrationtable: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Import)(windows_core::Interface::as_raw(self), lflags, pigpmbackup.into_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).base__.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(feature = "Win32_System_Com")] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result { @@ -2289,25 +2276,25 @@ impl IGPMGPO2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, lflags: i32, pigpmdomain: P0, pvarnewdisplayname: *const windows_core::VARIANT, pvarmigrationtable: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), lflags, pigpmdomain.into_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).base__.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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor(&self, lflags: i32, psd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, psd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, psd.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSecurityDescriptor(&self, lflags: i32) -> windows_core::Result { @@ -2327,9 +2314,9 @@ impl IGPMGPO2 { } pub unsafe fn SetDescription(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2351,9 +2338,9 @@ impl IGPMGPO3 { } pub unsafe fn SetDisplayName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetDisplayName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2399,21 +2386,21 @@ impl IGPMGPO3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWMIFilter(&self, pigpmwmifilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetWMIFilter)(windows_core::Interface::as_raw(self), pigpmwmifilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetWMIFilter)(windows_core::Interface::as_raw(self), pigpmwmifilter.param().abi()).ok() } pub unsafe fn SetUserEnabled(&self, vbenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUserEnabled)(windows_core::Interface::as_raw(self), vbenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUserEnabled)(windows_core::Interface::as_raw(self), vbenabled.param().abi()).ok() } pub unsafe fn SetComputerEnabled(&self, vbenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetComputerEnabled)(windows_core::Interface::as_raw(self), vbenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetComputerEnabled)(windows_core::Interface::as_raw(self), vbenabled.param().abi()).ok() } pub unsafe fn IsUserEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2431,9 +2418,9 @@ impl IGPMGPO3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityInfo(&self, psecurityinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Delete)(windows_core::Interface::as_raw(self)).ok() @@ -2441,19 +2428,19 @@ impl IGPMGPO3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Backup(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.param().abi(), bstrcomment.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Import(&self, lflags: i32, pigpmbackup: P0, pvarmigrationtable: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Import)(windows_core::Interface::as_raw(self), lflags, pigpmbackup.into_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).base__.base__.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(feature = "Win32_System_Com")] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result { @@ -2463,25 +2450,25 @@ impl IGPMGPO3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, lflags: i32, pigpmdomain: P0, pvarnewdisplayname: *const windows_core::VARIANT, pvarmigrationtable: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CopyTo)(windows_core::Interface::as_raw(self), lflags, pigpmdomain.into_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).base__.base__.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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor(&self, lflags: i32, psd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, psd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetSecurityDescriptor)(windows_core::Interface::as_raw(self), lflags, psd.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSecurityDescriptor(&self, lflags: i32) -> windows_core::Result { @@ -2501,9 +2488,9 @@ impl IGPMGPO3 { } pub unsafe fn SetDescription(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn InfrastructureDC(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2511,9 +2498,9 @@ impl IGPMGPO3 { } pub unsafe fn SetInfrastructureDC(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInfrastructureDC)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInfrastructureDC)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetInfrastructureFlags)(windows_core::Interface::as_raw(self), dwflags).ok() @@ -2578,9 +2565,9 @@ impl IGPMGPOLink { } pub unsafe fn SetEnabled(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Enforced(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2588,9 +2575,9 @@ impl IGPMGPOLink { } pub unsafe fn SetEnforced(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnforced)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnforced)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SOMLinkOrder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2724,45 +2711,45 @@ windows_core::imp::interface_hierarchy!(IGPMMigrationTable, windows_core::IUnkno impl IGPMMigrationTable { pub unsafe fn Save(&self, bstrmigrationtablepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), bstrmigrationtablepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), bstrmigrationtablepath.param().abi()).ok() } pub unsafe fn Add(&self, lflags: i32, var: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lflags, var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), lflags, var.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddEntry(&self, bstrsource: P0, gpmentrytype: GPMEntryType, pvardestination: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), bstrsource.into_param().abi(), 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), bstrsource.param().abi(), gpmentrytype, core::mem::transmute(pvardestination), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEntry(&self, bstrsource: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEntry)(windows_core::Interface::as_raw(self), bstrsource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEntry)(windows_core::Interface::as_raw(self), bstrsource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteEntry(&self, bstrsource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteEntry)(windows_core::Interface::as_raw(self), bstrsource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteEntry)(windows_core::Interface::as_raw(self), bstrsource.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateDestination(&self, bstrsource: P0, pvardestination: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).UpdateDestination)(windows_core::Interface::as_raw(self), bstrsource.into_param().abi(), core::mem::transmute(pvardestination), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).UpdateDestination)(windows_core::Interface::as_raw(self), bstrsource.param().abi(), core::mem::transmute(pvardestination), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Validate(&self) -> windows_core::Result { @@ -2860,9 +2847,9 @@ impl IGPMRSOP { } pub unsafe fn SetLoggingComputer(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoggingComputer)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoggingComputer)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn LoggingComputer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2870,9 +2857,9 @@ impl IGPMRSOP { } pub unsafe fn SetLoggingUser(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLoggingUser)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLoggingUser)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn LoggingUser(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2894,9 +2881,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningDomainController(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningDomainController)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningDomainController)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn PlanningDomainController(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2904,9 +2891,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningSiteName(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningSiteName)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningSiteName)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn PlanningSiteName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2914,9 +2901,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningUser(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningUser)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningUser)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn PlanningUser(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2924,9 +2911,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningUserSOM(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningUserSOM)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningUserSOM)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn PlanningUserSOM(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2934,9 +2921,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningUserWMIFilters(&self, varval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningUserWMIFilters)(windows_core::Interface::as_raw(self), varval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningUserWMIFilters)(windows_core::Interface::as_raw(self), varval.param().abi()).ok() } pub unsafe fn PlanningUserWMIFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2944,9 +2931,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningUserSecurityGroups(&self, varval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningUserSecurityGroups)(windows_core::Interface::as_raw(self), varval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningUserSecurityGroups)(windows_core::Interface::as_raw(self), varval.param().abi()).ok() } pub unsafe fn PlanningUserSecurityGroups(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2954,9 +2941,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningComputer(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningComputer)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningComputer)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn PlanningComputer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2964,9 +2951,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningComputerSOM(&self, bstrval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningComputerSOM)(windows_core::Interface::as_raw(self), bstrval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningComputerSOM)(windows_core::Interface::as_raw(self), bstrval.param().abi()).ok() } pub unsafe fn PlanningComputerSOM(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2974,9 +2961,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningComputerWMIFilters(&self, varval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningComputerWMIFilters)(windows_core::Interface::as_raw(self), varval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningComputerWMIFilters)(windows_core::Interface::as_raw(self), varval.param().abi()).ok() } pub unsafe fn PlanningComputerWMIFilters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2984,9 +2971,9 @@ impl IGPMRSOP { } pub unsafe fn SetPlanningComputerSecurityGroups(&self, varval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPlanningComputerSecurityGroups)(windows_core::Interface::as_raw(self), varval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPlanningComputerSecurityGroups)(windows_core::Interface::as_raw(self), varval.param().abi()).ok() } pub unsafe fn PlanningComputerSecurityGroups(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3010,10 +2997,10 @@ impl IGPMRSOP { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3104,9 +3091,9 @@ impl IGPMSOM { } pub unsafe fn SetGPOInheritanceBlocked(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGPOInheritanceBlocked)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGPOInheritanceBlocked)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3119,10 +3106,10 @@ impl IGPMSOM { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateGPOLink(&self, llinkpos: i32, pgpo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGPOLink)(windows_core::Interface::as_raw(self), llinkpos, pgpo.into_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__ = std::mem::zeroed(); @@ -3146,9 +3133,9 @@ impl IGPMSOM { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityInfo(&self, psecurityinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3220,9 +3207,9 @@ windows_core::imp::interface_hierarchy!(IGPMSearchCriteria, windows_core::IUnkno impl IGPMSearchCriteria { pub unsafe fn Add(&self, searchproperty: GPMSearchProperty, searchoperation: GPMSearchOperation, varvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), searchproperty, searchoperation, varvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), searchproperty, searchoperation, varvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3253,22 +3240,22 @@ impl IGPMSecurityInfo { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pperm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pperm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pperm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Remove(&self, pperm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), pperm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), pperm.param().abi()).ok() } pub unsafe fn RemoveTrustee(&self, bstrtrustee: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveTrustee)(windows_core::Interface::as_raw(self), bstrtrustee.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3312,18 +3299,18 @@ impl IGPMSitesContainer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSite(&self, bstrsitename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSite)(windows_core::Interface::as_raw(self), bstrsitename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSite)(windows_core::Interface::as_raw(self), bstrsitename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SearchSites(&self, pigpmsearchcriteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SearchSites)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SearchSites)(windows_core::Interface::as_raw(self), pigpmsearchcriteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3354,9 +3341,9 @@ impl IGPMStarterGPO { } pub unsafe fn SetDisplayName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3364,9 +3351,9 @@ impl IGPMStarterGPO { } pub unsafe fn SetDescription(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Author(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3410,21 +3397,21 @@ impl IGPMStarterGPO { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Save(&self, bstrsavefile: P0, boverwrite: P1, bsaveassystem: P2, bstrlanguage: *const windows_core::VARIANT, bstrauthor: *const windows_core::VARIANT, bstrproduct: *const windows_core::VARIANT, bstruniqueid: *const windows_core::VARIANT, bstrversion: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), bstrsavefile.into_param().abi(), boverwrite.into_param().abi(), bsaveassystem.into_param().abi(), 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), bstrsavefile.param().abi(), boverwrite.param().abi(), bsaveassystem.param().abi(), 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(feature = "Win32_System_Com")] pub unsafe fn Backup(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *mut windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), bstrbackupdir.param().abi(), bstrcomment.param().abi(), core::mem::transmute(pvargpmprogress), core::mem::transmute(pvargpmcancel), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pvarnewdisplayname: *const windows_core::VARIANT, pvargpmprogress: *const windows_core::VARIANT, pvargpmcancel: *const windows_core::VARIANT) -> windows_core::Result { @@ -3439,10 +3426,10 @@ impl IGPMStarterGPO { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSecurityInfo(&self) -> windows_core::Result { @@ -3452,9 +3439,9 @@ impl IGPMStarterGPO { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityInfo(&self, psecurityinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3553,10 +3540,10 @@ impl IGPMStarterGPOBackup { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GenerateReportToFile)(windows_core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3763,9 +3750,9 @@ impl IGPMWMIFilter { } pub unsafe fn SetName(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3773,9 +3760,9 @@ impl IGPMWMIFilter { } pub unsafe fn SetDescription(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3793,9 +3780,9 @@ impl IGPMWMIFilter { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityInfo(&self, psecurityinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityInfo)(windows_core::Interface::as_raw(self), psecurityinfo.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3853,32 +3840,32 @@ windows_core::imp::interface_hierarchy!(IGroupPolicyObject, windows_core::IUnkno impl IGroupPolicyObject { pub unsafe fn New(&self, pszdomainname: P0, pszdisplayname: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).New)(windows_core::Interface::as_raw(self), pszdomainname.into_param().abi(), pszdisplayname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenDSGPO)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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), dwflags).ok() } pub unsafe fn OpenRemoteMachineGPO(&self, pszcomputername: P0, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenRemoteMachineGPO)(windows_core::Interface::as_raw(self), pszcomputername.into_param().abi(), 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: P0, badd: P1, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), bmachine.into_param().abi(), badd.into_param().abi(), pguidextension, pguid).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), bmachine.param().abi(), badd.param().abi(), pguidextension, pguid).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -3891,9 +3878,9 @@ impl IGroupPolicyObject { } pub unsafe fn SetDisplayName(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetPath(&self, pszpath: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() @@ -3964,12 +3951,12 @@ impl IRSOPInformation { } pub unsafe fn GetEventLogEntryText(&self, pszeventsource: P0, pszeventlogname: P1, pszeventtime: P2, dweventid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEventLogEntryText)(windows_core::Interface::as_raw(self), pszeventsource.into_param().abi(), pszeventlogname.into_param().abi(), pszeventtime.into_param().abi(), 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 b379a7bd69..264731852a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs @@ -26,42 +26,42 @@ pub unsafe fn HcnCloseNetwork(network: *const core::ffi::c_void) -> windows_core #[inline] pub unsafe fn HcnCreateEndpoint(network: *const core::ffi::c_void, id: *const windows_core::GUID, settings: P0, endpoint: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(network, id, settings.into_param().abi(), endpoint, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnCreateEndpoint(network, id, settings.param().abi(), endpoint, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnCreateGuestNetworkService(id: *const windows_core::GUID, settings: P0, guestnetworkservice: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(id, settings.into_param().abi(), guestnetworkservice, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnCreateGuestNetworkService(id, settings.param().abi(), guestnetworkservice, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnCreateLoadBalancer(id: *const windows_core::GUID, settings: P0, loadbalancer: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(id, settings.into_param().abi(), loadbalancer, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnCreateLoadBalancer(id, settings.param().abi(), loadbalancer, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnCreateNamespace(id: *const windows_core::GUID, settings: P0, namespace: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(id, settings.into_param().abi(), namespace, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnCreateNamespace(id, settings.param().abi(), namespace, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnCreateNetwork(id: *const windows_core::GUID, settings: P0, network: *mut *mut core::ffi::c_void, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(id, settings.into_param().abi(), network, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnCreateNetwork(id, settings.param().abi(), network, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnDeleteEndpoint(id: *const windows_core::GUID, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { @@ -91,10 +91,10 @@ pub unsafe fn HcnDeleteNetwork(id: *const windows_core::GUID, errorrecord: Optio #[inline] pub unsafe fn HcnEnumerateEndpoints(query: P0, endpoints: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnEnumerateEndpoints(query : windows_core::PCWSTR, endpoints : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnEnumerateEndpoints(query.into_param().abi(), endpoints, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnEnumerateEndpoints(query.param().abi(), endpoints, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnEnumerateGuestNetworkPortReservations(returncount: *mut u32, portentries: *mut *mut HCN_PORT_RANGE_ENTRY) -> windows_core::Result<()> { @@ -104,26 +104,26 @@ pub unsafe fn HcnEnumerateGuestNetworkPortReservations(returncount: *mut u32, po #[inline] pub unsafe fn HcnEnumerateLoadBalancers(query: P0, loadbalancer: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnEnumerateLoadBalancers(query : windows_core::PCWSTR, loadbalancer : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnEnumerateLoadBalancers(query.into_param().abi(), loadbalancer, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnEnumerateLoadBalancers(query.param().abi(), loadbalancer, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnEnumerateNamespaces(query: P0, namespaces: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnEnumerateNamespaces(query : windows_core::PCWSTR, namespaces : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnEnumerateNamespaces(query.into_param().abi(), namespaces, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnEnumerateNamespaces(query.param().abi(), namespaces, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnEnumerateNetworks(query: P0, networks: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnEnumerateNetworks(query : windows_core::PCWSTR, networks : *mut windows_core::PWSTR, errorrecord : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcnEnumerateNetworks(query.into_param().abi(), networks, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnEnumerateNetworks(query.param().abi(), networks, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnFreeGuestNetworkPortReservations(portentries: Option<*mut HCN_PORT_RANGE_ENTRY>) { @@ -133,42 +133,42 @@ pub unsafe fn HcnFreeGuestNetworkPortReservations(portentries: Option<*mut HCN_P #[inline] pub unsafe fn HcnModifyEndpoint(endpoint: *const core::ffi::c_void, settings: P0, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(endpoint, settings.into_param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnModifyEndpoint(endpoint, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnModifyGuestNetworkService(guestnetworkservice: *const core::ffi::c_void, settings: P0, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(guestnetworkservice, settings.into_param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnModifyGuestNetworkService(guestnetworkservice, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnModifyLoadBalancer(loadbalancer: *const core::ffi::c_void, settings: P0, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(loadbalancer, settings.into_param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnModifyLoadBalancer(loadbalancer, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnModifyNamespace(namespace: *const core::ffi::c_void, settings: P0, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(namespace, settings.into_param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnModifyNamespace(namespace, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnModifyNetwork(network: *const core::ffi::c_void, settings: P0, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(network, settings.into_param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnModifyNetwork(network, settings.param().abi(), core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).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<()> { @@ -193,50 +193,50 @@ pub unsafe fn HcnOpenNetwork(id: *const windows_core::GUID, network: *mut *mut c #[inline] pub unsafe fn HcnQueryEndpointAddresses(endpoint: *const core::ffi::c_void, query: P0, addresses: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(endpoint, query.into_param().abi(), addresses, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnQueryEndpointAddresses(endpoint, query.param().abi(), addresses, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnQueryEndpointProperties(endpoint: *const core::ffi::c_void, query: P0, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(endpoint, query.into_param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnQueryEndpointProperties(endpoint, query.param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnQueryEndpointStats(endpoint: *const core::ffi::c_void, query: P0, stats: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(endpoint, query.into_param().abi(), stats, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnQueryEndpointStats(endpoint, query.param().abi(), stats, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnQueryLoadBalancerProperties(loadbalancer: *const core::ffi::c_void, query: P0, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(loadbalancer, query.into_param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnQueryLoadBalancerProperties(loadbalancer, query.param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnQueryNamespaceProperties(namespace: *const core::ffi::c_void, query: P0, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(namespace, query.into_param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnQueryNamespaceProperties(namespace, query.param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcnQueryNetworkProperties(network: *const core::ffi::c_void, query: P0, properties: *mut windows_core::PWSTR, errorrecord: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(network, query.into_param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).ok() + HcnQueryNetworkProperties(network, query.param().abi(), properties, core::mem::transmute(errorrecord.unwrap_or(std::ptr::null_mut()))).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<()> { @@ -251,10 +251,10 @@ pub unsafe fn HcnRegisterServiceCallback(callback: HCN_NOTIFICATION_CALLBACK, co #[inline] pub unsafe fn HcnReleaseGuestNetworkServicePortReservationHandle(portreservationhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computenetwork.dll" "system" fn HcnReleaseGuestNetworkServicePortReservationHandle(portreservationhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HcnReleaseGuestNetworkServicePortReservationHandle(portreservationhandle.into_param().abi()).ok() + HcnReleaseGuestNetworkServicePortReservationHandle(portreservationhandle.param().abi()).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 { 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 9eb1a5294a..2e5d671feb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs @@ -1,103 +1,103 @@ #[inline] pub unsafe fn HcsAddResourceToOperation(operation: P0, r#type: HCS_RESOURCE_TYPE, uri: P1, handle: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(operation.into_param().abi(), r#type, uri.into_param().abi(), handle.into_param().abi()).ok() + HcsAddResourceToOperation(operation.param().abi(), r#type, uri.param().abi(), handle.param().abi()).ok() } #[inline] pub unsafe fn HcsAttachLayerStorageFilter(layerpath: P0, layerdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsAttachLayerStorageFilter(layerpath : windows_core::PCWSTR, layerdata : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsAttachLayerStorageFilter(layerpath.into_param().abi(), layerdata.into_param().abi()).ok() + HcsAttachLayerStorageFilter(layerpath.param().abi(), layerdata.param().abi()).ok() } #[inline] pub unsafe fn HcsCancelOperation(operation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsCancelOperation(operation : HCS_OPERATION) -> windows_core::HRESULT); - HcsCancelOperation(operation.into_param().abi()).ok() + HcsCancelOperation(operation.param().abi()).ok() } #[inline] pub unsafe fn HcsCloseComputeSystem(computesystem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsCloseComputeSystem(computesystem : HCS_SYSTEM)); - HcsCloseComputeSystem(computesystem.into_param().abi()) + HcsCloseComputeSystem(computesystem.param().abi()) } #[inline] pub unsafe fn HcsCloseOperation(operation: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsCloseOperation(operation : HCS_OPERATION)); - HcsCloseOperation(operation.into_param().abi()) + HcsCloseOperation(operation.param().abi()) } #[inline] pub unsafe fn HcsCloseProcess(process: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsCloseProcess(process : HCS_PROCESS)); - HcsCloseProcess(process.into_param().abi()) + HcsCloseProcess(process.param().abi()) } #[inline] pub unsafe fn HcsCrashComputeSystem(computesystem: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsCrashComputeSystem(computesystem.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn HcsCreateComputeSystem(id: P0, configuration: P1, operation: P2, securitydescriptor: Option<*const super::super::Security::SECURITY_DESCRIPTOR>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - HcsCreateComputeSystem(id.into_param().abi(), configuration.into_param().abi(), operation.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + HcsCreateComputeSystem(id.param().abi(), configuration.param().abi(), operation.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsCreateComputeSystemInNamespace(idnamespace: P0, id: P1, configuration: P2, operation: P3, options: Option<*const HCS_CREATE_OPTIONS>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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__ = std::mem::zeroed(); - HcsCreateComputeSystemInNamespace(idnamespace.into_param().abi(), id.into_param().abi(), configuration.into_param().abi(), operation.into_param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + HcsCreateComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), configuration.param().abi(), operation.param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsCreateEmptyGuestStateFile(gueststatefilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsCreateEmptyGuestStateFile(gueststatefilepath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsCreateEmptyGuestStateFile(gueststatefilepath.into_param().abi()).ok() + HcsCreateEmptyGuestStateFile(gueststatefilepath.param().abi()).ok() } #[inline] pub unsafe fn HcsCreateEmptyRuntimeStateFile(runtimestatefilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsCreateEmptyRuntimeStateFile(runtimestatefilepath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsCreateEmptyRuntimeStateFile(runtimestatefilepath.into_param().abi()).ok() + HcsCreateEmptyRuntimeStateFile(runtimestatefilepath.param().abi()).ok() } #[inline] pub unsafe fn HcsCreateOperation(context: Option<*const core::ffi::c_void>, callback: HCS_OPERATION_COMPLETION) -> HCS_OPERATION { @@ -113,483 +113,483 @@ pub unsafe fn HcsCreateOperationWithNotifications(eventtypes: HCS_OPERATION_OPTI #[inline] pub unsafe fn HcsCreateProcess(computesystem: P0, processparameters: P1, operation: P2, securitydescriptor: Option<*const super::super::Security::SECURITY_DESCRIPTOR>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - HcsCreateProcess(computesystem.into_param().abi(), processparameters.into_param().abi(), operation.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + HcsCreateProcess(computesystem.param().abi(), processparameters.param().abi(), operation.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsDestroyLayer(layerpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsDestroyLayer(layerpath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsDestroyLayer(layerpath.into_param().abi()).ok() + HcsDestroyLayer(layerpath.param().abi()).ok() } #[inline] pub unsafe fn HcsDetachLayerStorageFilter(layerpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsDetachLayerStorageFilter(layerpath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsDetachLayerStorageFilter(layerpath.into_param().abi()).ok() + HcsDetachLayerStorageFilter(layerpath.param().abi()).ok() } #[inline] pub unsafe fn HcsEnumerateComputeSystems(query: P0, operation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsEnumerateComputeSystems(query : windows_core::PCWSTR, operation : HCS_OPERATION) -> windows_core::HRESULT); - HcsEnumerateComputeSystems(query.into_param().abi(), operation.into_param().abi()).ok() + HcsEnumerateComputeSystems(query.param().abi(), operation.param().abi()).ok() } #[inline] pub unsafe fn HcsEnumerateComputeSystemsInNamespace(idnamespace: P0, query: P1, operation: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), query.into_param().abi(), operation.into_param().abi()).ok() + HcsEnumerateComputeSystemsInNamespace(idnamespace.param().abi(), query.param().abi(), operation.param().abi()).ok() } #[inline] pub unsafe fn HcsExportLayer(layerpath: P0, exportfolderpath: P1, layerdata: P2, options: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsExportLayer(layerpath : windows_core::PCWSTR, exportfolderpath : windows_core::PCWSTR, layerdata : windows_core::PCWSTR, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsExportLayer(layerpath.into_param().abi(), exportfolderpath.into_param().abi(), layerdata.into_param().abi(), options.into_param().abi()).ok() + HcsExportLayer(layerpath.param().abi(), exportfolderpath.param().abi(), layerdata.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsExportLegacyWritableLayer(writablelayermountpath: P0, writablelayerfolderpath: P1, exportfolderpath: P2, layerdata: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsExportLegacyWritableLayer(writablelayermountpath : windows_core::PCWSTR, writablelayerfolderpath : windows_core::PCWSTR, exportfolderpath : windows_core::PCWSTR, layerdata : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsExportLegacyWritableLayer(writablelayermountpath.into_param().abi(), writablelayerfolderpath.into_param().abi(), exportfolderpath.into_param().abi(), layerdata.into_param().abi()).ok() + HcsExportLegacyWritableLayer(writablelayermountpath.param().abi(), writablelayerfolderpath.param().abi(), exportfolderpath.param().abi(), layerdata.param().abi()).ok() } #[inline] pub unsafe fn HcsFormatWritableLayerVhd(vhdhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsFormatWritableLayerVhd(vhdhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - HcsFormatWritableLayerVhd(vhdhandle.into_param().abi()).ok() + HcsFormatWritableLayerVhd(vhdhandle.param().abi()).ok() } #[inline] pub unsafe fn HcsGetComputeSystemFromOperation(operation: P0) -> HCS_SYSTEM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetComputeSystemFromOperation(operation : HCS_OPERATION) -> HCS_SYSTEM); - HcsGetComputeSystemFromOperation(operation.into_param().abi()) + HcsGetComputeSystemFromOperation(operation.param().abi()) } #[inline] pub unsafe fn HcsGetComputeSystemProperties(computesystem: P0, operation: P1, propertyquery: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), propertyquery.into_param().abi()).ok() + HcsGetComputeSystemProperties(computesystem.param().abi(), operation.param().abi(), propertyquery.param().abi()).ok() } #[inline] pub unsafe fn HcsGetLayerVhdMountPath(vhdhandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsGetLayerVhdMountPath(vhdhandle : super::super::Foundation:: HANDLE, mountpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - HcsGetLayerVhdMountPath(vhdhandle.into_param().abi(), &mut result__).map(|| result__) + HcsGetLayerVhdMountPath(vhdhandle.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsGetOperationContext(operation: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationContext(operation : HCS_OPERATION) -> *mut core::ffi::c_void); - HcsGetOperationContext(operation.into_param().abi()) + HcsGetOperationContext(operation.param().abi()) } #[inline] pub unsafe fn HcsGetOperationId(operation: P0) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationId(operation : HCS_OPERATION) -> u64); - HcsGetOperationId(operation.into_param().abi()) + HcsGetOperationId(operation.param().abi()) } #[inline] pub unsafe fn HcsGetOperationResult(operation: P0, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationResult(operation : HCS_OPERATION, resultdocument : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsGetOperationResult(operation.into_param().abi(), core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() + HcsGetOperationResult(operation.param().abi(), core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcsGetOperationResultAndProcessInfo(operation: P0, processinformation: Option<*mut HCS_PROCESS_INFORMATION>, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(operation.into_param().abi(), core::mem::transmute(processinformation.unwrap_or(std::ptr::null_mut())), core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() + HcsGetOperationResultAndProcessInfo(operation.param().abi(), core::mem::transmute(processinformation.unwrap_or(std::ptr::null_mut())), core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcsGetOperationType(operation: P0) -> HCS_OPERATION_TYPE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetOperationType(operation : HCS_OPERATION) -> HCS_OPERATION_TYPE); - HcsGetOperationType(operation.into_param().abi()) + HcsGetOperationType(operation.param().abi()) } #[inline] pub unsafe fn HcsGetProcessFromOperation(operation: P0) -> HCS_PROCESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetProcessFromOperation(operation : HCS_OPERATION) -> HCS_PROCESS); - HcsGetProcessFromOperation(operation.into_param().abi()) + HcsGetProcessFromOperation(operation.param().abi()) } #[inline] pub unsafe fn HcsGetProcessInfo(process: P0, operation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetProcessInfo(process : HCS_PROCESS, operation : HCS_OPERATION) -> windows_core::HRESULT); - HcsGetProcessInfo(process.into_param().abi(), operation.into_param().abi()).ok() + HcsGetProcessInfo(process.param().abi(), operation.param().abi()).ok() } #[inline] pub unsafe fn HcsGetProcessProperties(process: P0, operation: P1, propertyquery: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(process.into_param().abi(), operation.into_param().abi(), propertyquery.into_param().abi()).ok() + HcsGetProcessProperties(process.param().abi(), operation.param().abi(), propertyquery.param().abi()).ok() } #[inline] pub unsafe fn HcsGetProcessorCompatibilityFromSavedState(runtimefilename: P0, processorfeaturesstring: Option<*mut windows_core::PCWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetProcessorCompatibilityFromSavedState(runtimefilename : windows_core::PCWSTR, processorfeaturesstring : *mut windows_core::PCWSTR) -> windows_core::HRESULT); - HcsGetProcessorCompatibilityFromSavedState(runtimefilename.into_param().abi(), core::mem::transmute(processorfeaturesstring.unwrap_or(std::ptr::null_mut()))).ok() + HcsGetProcessorCompatibilityFromSavedState(runtimefilename.param().abi(), core::mem::transmute(processorfeaturesstring.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcsGetServiceProperties(propertyquery: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGetServiceProperties(propertyquery : windows_core::PCWSTR, result : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - HcsGetServiceProperties(propertyquery.into_param().abi(), &mut result__).map(|| result__) + HcsGetServiceProperties(propertyquery.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsGrantVmAccess(vmid: P0, filepath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGrantVmAccess(vmid : windows_core::PCWSTR, filepath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsGrantVmAccess(vmid.into_param().abi(), filepath.into_param().abi()).ok() + HcsGrantVmAccess(vmid.param().abi(), filepath.param().abi()).ok() } #[inline] pub unsafe fn HcsGrantVmGroupAccess(filepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsGrantVmGroupAccess(filepath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsGrantVmGroupAccess(filepath.into_param().abi()).ok() + HcsGrantVmGroupAccess(filepath.param().abi()).ok() } #[inline] pub unsafe fn HcsImportLayer(layerpath: P0, sourcefolderpath: P1, layerdata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsImportLayer(layerpath : windows_core::PCWSTR, sourcefolderpath : windows_core::PCWSTR, layerdata : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsImportLayer(layerpath.into_param().abi(), sourcefolderpath.into_param().abi(), layerdata.into_param().abi()).ok() + HcsImportLayer(layerpath.param().abi(), sourcefolderpath.param().abi(), layerdata.param().abi()).ok() } #[inline] pub unsafe fn HcsInitializeLegacyWritableLayer(writablelayermountpath: P0, writablelayerfolderpath: P1, layerdata: P2, options: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsInitializeLegacyWritableLayer(writablelayermountpath : windows_core::PCWSTR, writablelayerfolderpath : windows_core::PCWSTR, layerdata : windows_core::PCWSTR, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsInitializeLegacyWritableLayer(writablelayermountpath.into_param().abi(), writablelayerfolderpath.into_param().abi(), layerdata.into_param().abi(), options.into_param().abi()).ok() + HcsInitializeLegacyWritableLayer(writablelayermountpath.param().abi(), writablelayerfolderpath.param().abi(), layerdata.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsInitializeWritableLayer(writablelayerpath: P0, layerdata: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsInitializeWritableLayer(writablelayerpath : windows_core::PCWSTR, layerdata : windows_core::PCWSTR, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsInitializeWritableLayer(writablelayerpath.into_param().abi(), layerdata.into_param().abi(), options.into_param().abi()).ok() + HcsInitializeWritableLayer(writablelayerpath.param().abi(), layerdata.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsModifyComputeSystem(computesystem: P0, operation: P1, configuration: P2, identity: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(computesystem.into_param().abi(), operation.into_param().abi(), configuration.into_param().abi(), identity.into_param().abi()).ok() + HcsModifyComputeSystem(computesystem.param().abi(), operation.param().abi(), configuration.param().abi(), identity.param().abi()).ok() } #[inline] pub unsafe fn HcsModifyProcess(process: P0, operation: P1, settings: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(process.into_param().abi(), operation.into_param().abi(), settings.into_param().abi()).ok() + HcsModifyProcess(process.param().abi(), operation.param().abi(), settings.param().abi()).ok() } #[inline] pub unsafe fn HcsModifyServiceSettings(settings: P0, result: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsModifyServiceSettings(settings : windows_core::PCWSTR, result : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsModifyServiceSettings(settings.into_param().abi(), core::mem::transmute(result.unwrap_or(std::ptr::null_mut()))).ok() + HcsModifyServiceSettings(settings.param().abi(), core::mem::transmute(result.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcsOpenComputeSystem(id: P0, requestedaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsOpenComputeSystem(id : windows_core::PCWSTR, requestedaccess : u32, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - HcsOpenComputeSystem(id.into_param().abi(), requestedaccess, &mut result__).map(|| result__) + HcsOpenComputeSystem(id.param().abi(), requestedaccess, &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsOpenComputeSystemInNamespace(idnamespace: P0, id: P1, requestedaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - HcsOpenComputeSystemInNamespace(idnamespace.into_param().abi(), id.into_param().abi(), requestedaccess, &mut result__).map(|| result__) + HcsOpenComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), requestedaccess, &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsOpenProcess(computesystem: P0, processid: u32, requestedaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - HcsOpenProcess(computesystem.into_param().abi(), processid, requestedaccess, &mut result__).map(|| result__) + HcsOpenProcess(computesystem.param().abi(), processid, requestedaccess, &mut result__).map(|| result__) } #[inline] pub unsafe fn HcsPauseComputeSystem(computesystem: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsPauseComputeSystem(computesystem.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsResumeComputeSystem(computesystem: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsResumeComputeSystem(computesystem.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsRevokeVmAccess(vmid: P0, filepath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsRevokeVmAccess(vmid : windows_core::PCWSTR, filepath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsRevokeVmAccess(vmid.into_param().abi(), filepath.into_param().abi()).ok() + HcsRevokeVmAccess(vmid.param().abi(), filepath.param().abi()).ok() } #[inline] pub unsafe fn HcsRevokeVmGroupAccess(filepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsRevokeVmGroupAccess(filepath : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsRevokeVmGroupAccess(filepath.into_param().abi()).ok() + HcsRevokeVmGroupAccess(filepath.param().abi()).ok() } #[inline] pub unsafe fn HcsSaveComputeSystem(computesystem: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsSaveComputeSystem(computesystem.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsSetComputeSystemCallback(computesystem: P0, callbackoptions: HCS_EVENT_OPTIONS, context: Option<*const core::ffi::c_void>, callback: HCS_EVENT_CALLBACK) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(computesystem.into_param().abi(), callbackoptions, core::mem::transmute(context.unwrap_or(std::ptr::null())), callback).ok() + HcsSetComputeSystemCallback(computesystem.param().abi(), callbackoptions, core::mem::transmute(context.unwrap_or(std::ptr::null())), callback).ok() } #[inline] pub unsafe fn HcsSetOperationCallback(operation: P0, context: Option<*const core::ffi::c_void>, callback: HCS_OPERATION_COMPLETION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(operation.into_param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null())), callback).ok() + HcsSetOperationCallback(operation.param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null())), callback).ok() } #[inline] pub unsafe fn HcsSetOperationContext(operation: P0, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsSetOperationContext(operation : HCS_OPERATION, context : *const core::ffi::c_void) -> windows_core::HRESULT); - HcsSetOperationContext(operation.into_param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() + HcsSetOperationContext(operation.param().abi(), core::mem::transmute(context.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn HcsSetProcessCallback(process: P0, callbackoptions: HCS_EVENT_OPTIONS, context: *const core::ffi::c_void, callback: HCS_EVENT_CALLBACK) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), callbackoptions, context, callback).ok() + HcsSetProcessCallback(process.param().abi(), callbackoptions, context, callback).ok() } #[inline] pub unsafe fn HcsSetupBaseOSLayer(layerpath: P0, vhdhandle: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), vhdhandle.into_param().abi(), options.into_param().abi()).ok() + HcsSetupBaseOSLayer(layerpath.param().abi(), vhdhandle.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsSetupBaseOSVolume(layerpath: P0, volumepath: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("computestorage.dll" "system" fn HcsSetupBaseOSVolume(layerpath : windows_core::PCWSTR, volumepath : windows_core::PCWSTR, options : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsSetupBaseOSVolume(layerpath.into_param().abi(), volumepath.into_param().abi(), options.into_param().abi()).ok() + HcsSetupBaseOSVolume(layerpath.param().abi(), volumepath.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsShutDownComputeSystem(computesystem: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsShutDownComputeSystem(computesystem.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsSignalProcess(process: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(process.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsSignalProcess(process.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsStartComputeSystem(computesystem: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsStartComputeSystem(computesystem.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsSubmitWerReport(settings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsSubmitWerReport(settings : windows_core::PCWSTR) -> windows_core::HRESULT); - HcsSubmitWerReport(settings.into_param().abi()).ok() + HcsSubmitWerReport(settings.param().abi()).ok() } #[inline] pub unsafe fn HcsTerminateComputeSystem(computesystem: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(computesystem.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsTerminateComputeSystem(computesystem.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsTerminateProcess(process: P0, operation: P1, options: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(process.into_param().abi(), operation.into_param().abi(), options.into_param().abi()).ok() + HcsTerminateProcess(process.param().abi(), operation.param().abi(), options.param().abi()).ok() } #[inline] pub unsafe fn HcsWaitForComputeSystemExit(computesystem: P0, timeoutms: u32, result: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsWaitForComputeSystemExit(computesystem : HCS_SYSTEM, timeoutms : u32, result : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsWaitForComputeSystemExit(computesystem.into_param().abi(), timeoutms, core::mem::transmute(result.unwrap_or(std::ptr::null_mut()))).ok() + HcsWaitForComputeSystemExit(computesystem.param().abi(), timeoutms, core::mem::transmute(result.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcsWaitForOperationResult(operation: P0, timeoutms: u32, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsWaitForOperationResult(operation : HCS_OPERATION, timeoutms : u32, resultdocument : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsWaitForOperationResult(operation.into_param().abi(), timeoutms, core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() + HcsWaitForOperationResult(operation.param().abi(), timeoutms, core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcsWaitForOperationResultAndProcessInfo(operation: P0, timeoutms: u32, processinformation: Option<*mut HCS_PROCESS_INFORMATION>, resultdocument: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(operation.into_param().abi(), timeoutms, core::mem::transmute(processinformation.unwrap_or(std::ptr::null_mut())), core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() + HcsWaitForOperationResultAndProcessInfo(operation.param().abi(), timeoutms, core::mem::transmute(processinformation.unwrap_or(std::ptr::null_mut())), core::mem::transmute(resultdocument.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HcsWaitForProcessExit(computesystem: P0, timeoutms: u32, result: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("computecore.dll" "system" fn HcsWaitForProcessExit(computesystem : HCS_PROCESS, timeoutms : u32, result : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HcsWaitForProcessExit(computesystem.into_param().abi(), timeoutms, core::mem::transmute(result.unwrap_or(std::ptr::null_mut()))).ok() + HcsWaitForProcessExit(computesystem.param().abi(), timeoutms, core::mem::transmute(result.unwrap_or(std::ptr::null_mut()))).ok() } pub const HcsCreateOptions_1: HCS_CREATE_OPTIONS = HCS_CREATE_OPTIONS(65536i32); pub const HcsEventGroupOperationInfo: HCS_EVENT_TYPE = HCS_EVENT_TYPE(-1073741823i32); 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 5fa4e1ff07..d08e94d089 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs @@ -6,10 +6,10 @@ pub unsafe fn ApplyGuestMemoryFix(vmsavedstatedumphandle: *mut core::ffi::c_void #[inline] pub unsafe fn ApplyPendingSavedStateFileReplayLog(vmrsfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ApplyPendingSavedStateFileReplayLog(vmrsfile : windows_core::PCWSTR) -> windows_core::HRESULT); - ApplyPendingSavedStateFileReplayLog(vmrsfile.into_param().abi()).ok() + ApplyPendingSavedStateFileReplayLog(vmrsfile.param().abi()).ok() } #[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<()> { @@ -19,11 +19,11 @@ pub unsafe fn CallStackUnwind(vmsavedstatedumphandle: *mut core::ffi::c_void, vp #[inline] pub unsafe fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, typename: P0, fieldname: P1, offset: *mut u32, found: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(vmsavedstatedumphandle, vpid, typename.into_param().abi(), fieldname.into_param().abi(), offset, found).ok() + FindSavedStateSymbolFieldInType(vmsavedstatedumphandle, vpid, typename.param().abi(), fieldname.param().abi(), offset, found).ok() } #[inline] pub unsafe fn ForceActiveVirtualTrustLevel(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, virtualtrustlevel: u8) -> windows_core::Result<()> { @@ -38,10 +38,10 @@ pub unsafe fn ForceArchitecture(vmsavedstatedumphandle: *mut core::ffi::c_void, #[inline] pub unsafe fn ForceNestedHostMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, hostmode: P0, oldmode: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(vmsavedstatedumphandle, vpid, hostmode.into_param().abi(), core::mem::transmute(oldmode.unwrap_or(std::ptr::null_mut()))).ok() + ForceNestedHostMode(vmsavedstatedumphandle, vpid, hostmode.param().abi(), core::mem::transmute(oldmode.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ForcePagingMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, pagingmode: PAGING_MODE) -> windows_core::Result<()> { @@ -106,10 +106,10 @@ pub unsafe fn GetRegisterValue(vmsavedstatedumphandle: *mut core::ffi::c_void, v #[inline] pub unsafe fn GetSavedStateSymbolFieldInfo(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, typename: P0, typefieldinfomap: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(vmsavedstatedumphandle, vpid, typename.into_param().abi(), typefieldinfomap).ok() + GetSavedStateSymbolFieldInfo(vmsavedstatedumphandle, vpid, typename.param().abi(), typefieldinfomap).ok() } #[inline] pub unsafe fn GetSavedStateSymbolProviderHandle(vmsavedstatedumphandle: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { @@ -119,10 +119,10 @@ pub unsafe fn GetSavedStateSymbolProviderHandle(vmsavedstatedumphandle: *mut cor #[inline] pub unsafe fn GetSavedStateSymbolTypeSize(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, typename: P0, size: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(vmsavedstatedumphandle, vpid, typename.into_param().abi(), size).ok() + GetSavedStateSymbolTypeSize(vmsavedstatedumphandle, vpid, typename.param().abi(), size).ok() } #[inline] pub unsafe fn GetVpCount(vmsavedstatedumphandle: *mut core::ffi::c_void, vpcount: *mut u32) -> windows_core::Result<()> { @@ -147,18 +147,18 @@ pub unsafe fn HdvCreateDeviceInstance(devicehosthandle: *const core::ffi::c_void #[inline] pub unsafe fn HdvCreateGuestMemoryAperture(requestor: *const core::ffi::c_void, guestphysicaladdress: u64, bytecount: u32, writeprotected: P0, mappedaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(requestor, guestphysicaladdress, bytecount, writeprotected.into_param().abi(), mappedaddress).ok() + HdvCreateGuestMemoryAperture(requestor, guestphysicaladdress, bytecount, writeprotected.param().abi(), 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: P0, sectionoffsetinpages: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(requestor, barindex, offsetinpages, lengthinpages, mappingflags, sectionhandle.into_param().abi(), sectionoffsetinpages).ok() + HdvCreateSectionBackedMmioRange(requestor, barindex, offsetinpages, lengthinpages, mappingflags, sectionhandle.param().abi(), sectionoffsetinpages).ok() } #[inline] pub unsafe fn HdvDeliverGuestInterrupt(requestor: *const core::ffi::c_void, msiaddress: u64, msidata: u32) -> windows_core::Result<()> { @@ -179,19 +179,19 @@ pub unsafe fn HdvDestroySectionBackedMmioRange(requestor: *const core::ffi::c_vo #[inline] pub unsafe fn HdvInitializeDeviceHost(computesystem: P0, devicehosthandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("vmdevicehost.dll" "system" fn HdvInitializeDeviceHost(computesystem : super::HostComputeSystem:: HCS_SYSTEM, devicehosthandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - HdvInitializeDeviceHost(computesystem.into_param().abi(), devicehosthandle).ok() + HdvInitializeDeviceHost(computesystem.param().abi(), devicehosthandle).ok() } #[cfg(feature = "Win32_System_HostComputeSystem")] #[inline] pub unsafe fn HdvInitializeDeviceHostEx(computesystem: P0, flags: HDV_DEVICE_HOST_FLAGS, devicehosthandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(computesystem.into_param().abi(), flags, devicehosthandle).ok() + HdvInitializeDeviceHostEx(computesystem.param().abi(), flags, devicehosthandle).ok() } #[inline] pub unsafe fn HdvReadGuestMemory(requestor: *const core::ffi::c_void, guestphysicaladdress: u64, buffer: &mut [u8]) -> windows_core::Result<()> { @@ -201,10 +201,10 @@ pub unsafe fn HdvReadGuestMemory(requestor: *const core::ffi::c_void, guestphysi #[inline] pub unsafe fn HdvRegisterDoorbell(requestor: *const core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, baroffset: u64, triggervalue: u64, flags: u64, doorbellevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(requestor, barindex, baroffset, triggervalue, flags, doorbellevent.into_param().abi()).ok() + HdvRegisterDoorbell(requestor, barindex, baroffset, triggervalue, flags, doorbellevent.param().abi()).ok() } #[inline] pub unsafe fn HdvTeardownDeviceHost(devicehosthandle: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -239,55 +239,55 @@ pub unsafe fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle: *mut core::f #[inline] pub unsafe fn LoadSavedStateFile(vmrsfile: P0, vmsavedstatedumphandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateFile(vmrsfile : windows_core::PCWSTR, vmsavedstatedumphandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - LoadSavedStateFile(vmrsfile.into_param().abi(), vmsavedstatedumphandle).ok() + LoadSavedStateFile(vmrsfile.param().abi(), vmsavedstatedumphandle).ok() } #[inline] pub unsafe fn LoadSavedStateFiles(binfile: P0, vsvfile: P1, vmsavedstatedumphandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateFiles(binfile : windows_core::PCWSTR, vsvfile : windows_core::PCWSTR, vmsavedstatedumphandle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - LoadSavedStateFiles(binfile.into_param().abi(), vsvfile.into_param().abi(), vmsavedstatedumphandle).ok() + LoadSavedStateFiles(binfile.param().abi(), vsvfile.param().abi(), vmsavedstatedumphandle).ok() } #[inline] pub unsafe fn LoadSavedStateModuleSymbols(vmsavedstatedumphandle: *mut core::ffi::c_void, imagename: P0, modulename: P1, baseaddress: u64, sizeofbase: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(vmsavedstatedumphandle, imagename.into_param().abi(), modulename.into_param().abi(), baseaddress, sizeofbase).ok() + LoadSavedStateModuleSymbols(vmsavedstatedumphandle, imagename.param().abi(), modulename.param().abi(), baseaddress, sizeofbase).ok() } #[inline] pub unsafe fn LoadSavedStateModuleSymbolsEx(vmsavedstatedumphandle: *mut core::ffi::c_void, imagename: P0, imagetimestamp: u32, modulename: P1, baseaddress: u64, sizeofbase: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(vmsavedstatedumphandle, imagename.into_param().abi(), imagetimestamp, modulename.into_param().abi(), baseaddress, sizeofbase).ok() + LoadSavedStateModuleSymbolsEx(vmsavedstatedumphandle, imagename.param().abi(), imagetimestamp, modulename.param().abi(), baseaddress, sizeofbase).ok() } #[inline] pub unsafe fn LoadSavedStateSymbolProvider(vmsavedstatedumphandle: *mut core::ffi::c_void, usersymbols: P0, force: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateSymbolProvider(vmsavedstatedumphandle : *mut core::ffi::c_void, usersymbols : windows_core::PCWSTR, force : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - LoadSavedStateSymbolProvider(vmsavedstatedumphandle, usersymbols.into_param().abi(), force.into_param().abi()).ok() + LoadSavedStateSymbolProvider(vmsavedstatedumphandle, usersymbols.param().abi(), force.param().abi()).ok() } #[inline] pub unsafe fn LocateSavedStateFiles(vmname: P0, snapshotname: P1, binpath: *mut windows_core::PWSTR, vsvpath: *mut windows_core::PWSTR, vmrspath: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LocateSavedStateFiles(vmname : windows_core::PCWSTR, snapshotname : windows_core::PCWSTR, binpath : *mut windows_core::PWSTR, vsvpath : *mut windows_core::PWSTR, vmrspath : *mut windows_core::PWSTR) -> windows_core::HRESULT); - LocateSavedStateFiles(vmname.into_param().abi(), snapshotname.into_param().abi(), binpath, vsvpath, vmrspath).ok() + LocateSavedStateFiles(vmname.param().abi(), snapshotname.param().abi(), binpath, vsvpath, vmrspath).ok() } #[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<()> { @@ -302,10 +302,10 @@ pub unsafe fn ReadGuestRawSavedMemory(vmsavedstatedumphandle: *mut core::ffi::c_ #[inline] pub unsafe fn ReadSavedStateGlobalVariable(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, globalname: P0, buffer: *mut core::ffi::c_void, buffersize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(vmsavedstatedumphandle, vpid, globalname.into_param().abi(), buffer, buffersize).ok() + ReadSavedStateGlobalVariable(vmsavedstatedumphandle, vpid, globalname.param().abi(), buffer, buffersize).ok() } #[inline] pub unsafe fn ReleaseSavedStateFiles(vmsavedstatedumphandle: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -320,10 +320,10 @@ pub unsafe fn ReleaseSavedStateSymbolProvider(vmsavedstatedumphandle: *mut core: #[inline] pub unsafe fn ResolveSavedStateGlobalVariableAddress(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, globalname: P0, virtualaddress: *mut u64, size: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(vmsavedstatedumphandle, vpid, globalname.into_param().abi(), virtualaddress, core::mem::transmute(size.unwrap_or(std::ptr::null_mut()))).ok() + ResolveSavedStateGlobalVariableAddress(vmsavedstatedumphandle, vpid, globalname.param().abi(), virtualaddress, core::mem::transmute(size.unwrap_or(std::ptr::null_mut()))).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<()> { @@ -343,19 +343,19 @@ pub unsafe fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandl #[inline] pub unsafe fn WHvAcceptPartitionMigration(migrationhandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvAcceptPartitionMigration(migrationhandle : super::super::Foundation:: HANDLE, partition : *mut WHV_PARTITION_HANDLE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WHvAcceptPartitionMigration(migrationhandle.into_param().abi(), &mut result__).map(|| result__) + WHvAcceptPartitionMigration(migrationhandle.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WHvAdviseGpaRange(partition: P0, gparanges: &[WHV_MEMORY_RANGE_ENTRY], advice: WHV_ADVISE_GPA_RANGE_CODE, advicebuffer: *const core::ffi::c_void, advicebuffersizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), core::mem::transmute(gparanges.as_ptr()), gparanges.len().try_into().unwrap(), advice, advicebuffer, advicebuffersizeinbytes).ok() + WHvAdviseGpaRange(partition.param().abi(), 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 { @@ -366,35 +366,35 @@ pub unsafe fn WHvAllocateVpciResource(providerid: Option<*const windows_core::GU #[inline] pub unsafe fn WHvCancelPartitionMigration(partition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvCancelPartitionMigration(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvCancelPartitionMigration(partition.into_param().abi()).ok() + WHvCancelPartitionMigration(partition.param().abi()).ok() } #[inline] pub unsafe fn WHvCancelRunVirtualProcessor(partition: P0, vpindex: u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvCancelRunVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, flags : u32) -> windows_core::HRESULT); - WHvCancelRunVirtualProcessor(partition.into_param().abi(), vpindex, flags).ok() + WHvCancelRunVirtualProcessor(partition.param().abi(), vpindex, flags).ok() } #[inline] pub unsafe fn WHvCompletePartitionMigration(partition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvCompletePartitionMigration(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvCompletePartitionMigration(partition.into_param().abi()).ok() + WHvCompletePartitionMigration(partition.param().abi()).ok() } #[inline] pub unsafe fn WHvCreateNotificationPort(partition: P0, parameters: *const WHV_NOTIFICATION_PORT_PARAMETERS, eventhandle: P1, porthandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(partition.into_param().abi(), parameters, eventhandle.into_param().abi(), porthandle).ok() + WHvCreateNotificationPort(partition.param().abi(), parameters, eventhandle.param().abi(), porthandle).ok() } #[inline] pub unsafe fn WHvCreatePartition() -> windows_core::Result { @@ -405,76 +405,76 @@ pub unsafe fn WHvCreatePartition() -> windows_core::Result #[inline] pub unsafe fn WHvCreateTrigger(partition: P0, parameters: *const WHV_TRIGGER_PARAMETERS, triggerhandle: *mut *mut core::ffi::c_void, eventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), parameters, triggerhandle, eventhandle).ok() + WHvCreateTrigger(partition.param().abi(), parameters, triggerhandle, eventhandle).ok() } #[inline] pub unsafe fn WHvCreateVirtualProcessor(partition: P0, vpindex: u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, flags : u32) -> windows_core::HRESULT); - WHvCreateVirtualProcessor(partition.into_param().abi(), vpindex, flags).ok() + WHvCreateVirtualProcessor(partition.param().abi(), vpindex, flags).ok() } #[inline] pub unsafe fn WHvCreateVirtualProcessor2(partition: P0, vpindex: u32, properties: &[WHV_VIRTUAL_PROCESSOR_PROPERTY]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() + WHvCreateVirtualProcessor2(partition.param().abi(), vpindex, core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn WHvCreateVpciDevice(partition: P0, logicaldeviceid: u64, vpciresource: P1, flags: WHV_CREATE_VPCI_DEVICE_FLAGS, notificationeventhandle: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, vpciresource.into_param().abi(), flags, notificationeventhandle.into_param().abi()).ok() + WHvCreateVpciDevice(partition.param().abi(), logicaldeviceid, vpciresource.param().abi(), flags, notificationeventhandle.param().abi()).ok() } #[inline] pub unsafe fn WHvDeleteNotificationPort(partition: P0, porthandle: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteNotificationPort(partition : WHV_PARTITION_HANDLE, porthandle : *const core::ffi::c_void) -> windows_core::HRESULT); - WHvDeleteNotificationPort(partition.into_param().abi(), porthandle).ok() + WHvDeleteNotificationPort(partition.param().abi(), porthandle).ok() } #[inline] pub unsafe fn WHvDeletePartition(partition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeletePartition(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvDeletePartition(partition.into_param().abi()).ok() + WHvDeletePartition(partition.param().abi()).ok() } #[inline] pub unsafe fn WHvDeleteTrigger(partition: P0, triggerhandle: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteTrigger(partition : WHV_PARTITION_HANDLE, triggerhandle : *const core::ffi::c_void) -> windows_core::HRESULT); - WHvDeleteTrigger(partition.into_param().abi(), triggerhandle).ok() + WHvDeleteTrigger(partition.param().abi(), triggerhandle).ok() } #[inline] pub unsafe fn WHvDeleteVirtualProcessor(partition: P0, vpindex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32) -> windows_core::HRESULT); - WHvDeleteVirtualProcessor(partition.into_param().abi(), vpindex).ok() + WHvDeleteVirtualProcessor(partition.param().abi(), vpindex).ok() } #[inline] pub unsafe fn WHvDeleteVpciDevice(partition: P0, logicaldeviceid: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteVpciDevice(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64) -> windows_core::HRESULT); - WHvDeleteVpciDevice(partition.into_param().abi(), logicaldeviceid).ok() + WHvDeleteVpciDevice(partition.param().abi(), logicaldeviceid).ok() } #[inline] pub unsafe fn WHvEmulatorCreateEmulator(callbacks: *const WHV_EMULATOR_CALLBACKS, emulator: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -506,391 +506,391 @@ pub unsafe fn WHvGetCapability(capabilitycode: WHV_CAPABILITY_CODE, capabilitybu #[inline] pub unsafe fn WHvGetInterruptTargetVpSet(partition: P0, destination: u64, destinationmode: WHV_INTERRUPT_DESTINATION_MODE, targetvps: &mut [u32], targetvpcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), destination, destinationmode, core::mem::transmute(targetvps.as_ptr()), targetvps.len().try_into().unwrap(), targetvpcount).ok() + WHvGetInterruptTargetVpSet(partition.param().abi(), destination, destinationmode, core::mem::transmute(targetvps.as_ptr()), targetvps.len().try_into().unwrap(), targetvpcount).ok() } #[inline] pub unsafe fn WHvGetPartitionCounters(partition: P0, counterset: WHV_PARTITION_COUNTER_SET, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), counterset, buffer, buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetPartitionCounters(partition.param().abi(), counterset, buffer, buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvGetPartitionProperty(partition: P0, propertycode: WHV_PARTITION_PROPERTY_CODE, propertybuffer: *mut core::ffi::c_void, propertybuffersizeinbytes: u32, writtensizeinbytes: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), propertycode, propertybuffer, propertybuffersizeinbytes, core::mem::transmute(writtensizeinbytes.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetPartitionProperty(partition.param().abi(), propertycode, propertybuffer, propertybuffersizeinbytes, core::mem::transmute(writtensizeinbytes.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorCounters(partition: P0, vpindex: u32, counterset: WHV_PROCESSOR_COUNTER_SET, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, counterset, buffer, buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetVirtualProcessorCounters(partition.param().abi(), vpindex, counterset, buffer, buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorCpuidOutput(partition: P0, vpindex: u32, eax: u32, ecx: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WHvGetVirtualProcessorCpuidOutput(partition.into_param().abi(), vpindex, eax, ecx, &mut result__).map(|| result__) + WHvGetVirtualProcessorCpuidOutput(partition.param().abi(), vpindex, eax, ecx, &mut result__).map(|| result__) } #[inline] pub unsafe fn WHvGetVirtualProcessorInterruptControllerState(partition: P0, vpindex: u32, state: *mut core::ffi::c_void, statesize: u32, writtensize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, state, statesize, core::mem::transmute(writtensize.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetVirtualProcessorInterruptControllerState(partition.param().abi(), vpindex, state, statesize, core::mem::transmute(writtensize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorInterruptControllerState2(partition: P0, vpindex: u32, state: *mut core::ffi::c_void, statesize: u32, writtensize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, state, statesize, core::mem::transmute(writtensize.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetVirtualProcessorInterruptControllerState2(partition.param().abi(), vpindex, state, statesize, core::mem::transmute(writtensize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorRegisters(partition: P0, vpindex: u32, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *mut WHV_REGISTER_VALUE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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); - WHvGetVirtualProcessorRegisters(partition.into_param().abi(), vpindex, registernames, registercount, registervalues).ok() + WHvGetVirtualProcessorRegisters(partition.param().abi(), vpindex, registernames, registercount, registervalues).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorState(partition: P0, vpindex: u32, statetype: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, statetype, buffer, buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetVirtualProcessorState(partition.param().abi(), vpindex, statetype, buffer, buffersizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvGetVirtualProcessorXsaveState(partition: P0, vpindex: u32, buffer: *mut core::ffi::c_void, buffersizeinbytes: u32, byteswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, buffer, buffersizeinbytes, byteswritten).ok() + WHvGetVirtualProcessorXsaveState(partition.param().abi(), vpindex, buffer, buffersizeinbytes, byteswritten).ok() } #[inline] pub unsafe fn WHvGetVpciDeviceInterruptTarget(partition: P0, logicaldeviceid: u64, index: u32, multimessagenumber: u32, target: *mut WHV_VPCI_INTERRUPT_TARGET, targetsizeinbytes: u32, byteswritten: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, index, multimessagenumber, target, targetsizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetVpciDeviceInterruptTarget(partition.param().abi(), logicaldeviceid, index, multimessagenumber, target, targetsizeinbytes, core::mem::transmute(byteswritten.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvGetVpciDeviceNotification(partition: P0, logicaldeviceid: u64, notification: *mut WHV_VPCI_DEVICE_NOTIFICATION, notificationsizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, notification, notificationsizeinbytes).ok() + WHvGetVpciDeviceNotification(partition.param().abi(), logicaldeviceid, notification, notificationsizeinbytes).ok() } #[inline] pub unsafe fn WHvGetVpciDeviceProperty(partition: P0, logicaldeviceid: u64, propertycode: WHV_VPCI_DEVICE_PROPERTY_CODE, propertybuffer: *mut core::ffi::c_void, propertybuffersizeinbytes: u32, writtensizeinbytes: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, propertycode, propertybuffer, propertybuffersizeinbytes, core::mem::transmute(writtensizeinbytes.unwrap_or(std::ptr::null_mut()))).ok() + WHvGetVpciDeviceProperty(partition.param().abi(), logicaldeviceid, propertycode, propertybuffer, propertybuffersizeinbytes, core::mem::transmute(writtensizeinbytes.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvMapGpaRange(partition: P0, sourceaddress: *const core::ffi::c_void, guestaddress: u64, sizeinbytes: u64, flags: WHV_MAP_GPA_RANGE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), sourceaddress, guestaddress, sizeinbytes, flags).ok() + WHvMapGpaRange(partition.param().abi(), sourceaddress, guestaddress, sizeinbytes, flags).ok() } #[inline] pub unsafe fn WHvMapGpaRange2(partition: P0, process: P1, sourceaddress: *const core::ffi::c_void, guestaddress: u64, sizeinbytes: u64, flags: WHV_MAP_GPA_RANGE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(partition.into_param().abi(), process.into_param().abi(), sourceaddress, guestaddress, sizeinbytes, flags).ok() + WHvMapGpaRange2(partition.param().abi(), process.param().abi(), sourceaddress, guestaddress, sizeinbytes, flags).ok() } #[inline] pub unsafe fn WHvMapVpciDeviceInterrupt(partition: P0, logicaldeviceid: u64, index: u32, messagecount: u32, target: *const WHV_VPCI_INTERRUPT_TARGET, msiaddress: *mut u64, msidata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, index, messagecount, target, msiaddress, msidata).ok() + WHvMapVpciDeviceInterrupt(partition.param().abi(), logicaldeviceid, index, messagecount, target, msiaddress, msidata).ok() } #[inline] pub unsafe fn WHvMapVpciDeviceMmioRanges(partition: P0, logicaldeviceid: u64, mappingcount: *mut u32, mappings: *mut *mut WHV_VPCI_MMIO_MAPPING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, mappingcount, mappings).ok() + WHvMapVpciDeviceMmioRanges(partition.param().abi(), logicaldeviceid, mappingcount, mappings).ok() } #[inline] pub unsafe fn WHvPostVirtualProcessorSynicMessage(partition: P0, vpindex: u32, sintindex: u32, message: *const core::ffi::c_void, messagesizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, sintindex, message, messagesizeinbytes).ok() + WHvPostVirtualProcessorSynicMessage(partition.param().abi(), vpindex, sintindex, message, messagesizeinbytes).ok() } #[inline] pub unsafe fn WHvQueryGpaRangeDirtyBitmap(partition: P0, guestaddress: u64, rangesizeinbytes: u64, bitmap: Option<*mut u64>, bitmapsizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), guestaddress, rangesizeinbytes, core::mem::transmute(bitmap.unwrap_or(std::ptr::null_mut())), bitmapsizeinbytes).ok() + WHvQueryGpaRangeDirtyBitmap(partition.param().abi(), guestaddress, rangesizeinbytes, core::mem::transmute(bitmap.unwrap_or(std::ptr::null_mut())), bitmapsizeinbytes).ok() } #[inline] pub unsafe fn WHvReadGpaRange(partition: P0, vpindex: u32, guestaddress: u64, controls: WHV_ACCESS_GPA_CONTROLS, data: *mut core::ffi::c_void, datasizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, guestaddress, core::mem::transmute(controls), data, datasizeinbytes).ok() + WHvReadGpaRange(partition.param().abi(), vpindex, guestaddress, core::mem::transmute(controls), data, datasizeinbytes).ok() } #[inline] pub unsafe fn WHvReadVpciDeviceRegister(partition: P0, logicaldeviceid: u64, register: *const WHV_VPCI_DEVICE_REGISTER, data: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, register, data).ok() + WHvReadVpciDeviceRegister(partition.param().abi(), logicaldeviceid, register, data).ok() } #[inline] pub unsafe fn WHvRegisterPartitionDoorbellEvent(partition: P0, matchdata: *const WHV_DOORBELL_MATCH_DATA, eventhandle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(partition.into_param().abi(), matchdata, eventhandle.into_param().abi()).ok() + WHvRegisterPartitionDoorbellEvent(partition.param().abi(), matchdata, eventhandle.param().abi()).ok() } #[inline] pub unsafe fn WHvRequestInterrupt(partition: P0, interrupt: *const WHV_INTERRUPT_CONTROL, interruptcontrolsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvRequestInterrupt(partition : WHV_PARTITION_HANDLE, interrupt : *const WHV_INTERRUPT_CONTROL, interruptcontrolsize : u32) -> windows_core::HRESULT); - WHvRequestInterrupt(partition.into_param().abi(), interrupt, interruptcontrolsize).ok() + WHvRequestInterrupt(partition.param().abi(), interrupt, interruptcontrolsize).ok() } #[inline] pub unsafe fn WHvRequestVpciDeviceInterrupt(partition: P0, logicaldeviceid: u64, msiaddress: u64, msidata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvRequestVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, msiaddress : u64, msidata : u32) -> windows_core::HRESULT); - WHvRequestVpciDeviceInterrupt(partition.into_param().abi(), logicaldeviceid, msiaddress, msidata).ok() + WHvRequestVpciDeviceInterrupt(partition.param().abi(), logicaldeviceid, msiaddress, msidata).ok() } #[inline] pub unsafe fn WHvResetPartition(partition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvResetPartition(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvResetPartition(partition.into_param().abi()).ok() + WHvResetPartition(partition.param().abi()).ok() } #[inline] pub unsafe fn WHvResumePartitionTime(partition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvResumePartitionTime(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvResumePartitionTime(partition.into_param().abi()).ok() + WHvResumePartitionTime(partition.param().abi()).ok() } #[inline] pub unsafe fn WHvRetargetVpciDeviceInterrupt(partition: P0, logicaldeviceid: u64, msiaddress: u64, msidata: u32, target: *const WHV_VPCI_INTERRUPT_TARGET) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, msiaddress, msidata, target).ok() + WHvRetargetVpciDeviceInterrupt(partition.param().abi(), logicaldeviceid, msiaddress, msidata, target).ok() } #[inline] pub unsafe fn WHvRunVirtualProcessor(partition: P0, vpindex: u32, exitcontext: *mut core::ffi::c_void, exitcontextsizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, exitcontext, exitcontextsizeinbytes).ok() + WHvRunVirtualProcessor(partition.param().abi(), vpindex, exitcontext, exitcontextsizeinbytes).ok() } #[inline] pub unsafe fn WHvSetNotificationPortProperty(partition: P0, porthandle: *const core::ffi::c_void, propertycode: WHV_NOTIFICATION_PORT_PROPERTY_CODE, propertyvalue: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), porthandle, propertycode, propertyvalue).ok() + WHvSetNotificationPortProperty(partition.param().abi(), porthandle, propertycode, propertyvalue).ok() } #[inline] pub unsafe fn WHvSetPartitionProperty(partition: P0, propertycode: WHV_PARTITION_PROPERTY_CODE, propertybuffer: *const core::ffi::c_void, propertybuffersizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), propertycode, propertybuffer, propertybuffersizeinbytes).ok() + WHvSetPartitionProperty(partition.param().abi(), propertycode, propertybuffer, propertybuffersizeinbytes).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorInterruptControllerState(partition: P0, vpindex: u32, state: *const core::ffi::c_void, statesize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, state, statesize).ok() + WHvSetVirtualProcessorInterruptControllerState(partition.param().abi(), vpindex, state, statesize).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorInterruptControllerState2(partition: P0, vpindex: u32, state: *const core::ffi::c_void, statesize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, state, statesize).ok() + WHvSetVirtualProcessorInterruptControllerState2(partition.param().abi(), vpindex, state, statesize).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorRegisters(partition: P0, vpindex: u32, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *const WHV_REGISTER_VALUE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, registernames, registercount, registervalues).ok() + WHvSetVirtualProcessorRegisters(partition.param().abi(), vpindex, registernames, registercount, registervalues).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorState(partition: P0, vpindex: u32, statetype: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer: *const core::ffi::c_void, buffersizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, statetype, buffer, buffersizeinbytes).ok() + WHvSetVirtualProcessorState(partition.param().abi(), vpindex, statetype, buffer, buffersizeinbytes).ok() } #[inline] pub unsafe fn WHvSetVirtualProcessorXsaveState(partition: P0, vpindex: u32, buffer: *const core::ffi::c_void, buffersizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, buffer, buffersizeinbytes).ok() + WHvSetVirtualProcessorXsaveState(partition.param().abi(), vpindex, buffer, buffersizeinbytes).ok() } #[cfg(feature = "Win32_System_Power")] #[inline] pub unsafe fn WHvSetVpciDevicePowerState(partition: P0, logicaldeviceid: u64, powerstate: super::Power::DEVICE_POWER_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVpciDevicePowerState(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, powerstate : super::Power:: DEVICE_POWER_STATE) -> windows_core::HRESULT); - WHvSetVpciDevicePowerState(partition.into_param().abi(), logicaldeviceid, powerstate).ok() + WHvSetVpciDevicePowerState(partition.param().abi(), logicaldeviceid, powerstate).ok() } #[inline] pub unsafe fn WHvSetupPartition(partition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvSetupPartition(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvSetupPartition(partition.into_param().abi()).ok() + WHvSetupPartition(partition.param().abi()).ok() } #[inline] pub unsafe fn WHvSignalVirtualProcessorSynicEvent(partition: P0, synicevent: WHV_SYNIC_EVENT_PARAMETERS, newlysignaled: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), core::mem::transmute(synicevent), core::mem::transmute(newlysignaled.unwrap_or(std::ptr::null_mut()))).ok() + WHvSignalVirtualProcessorSynicEvent(partition.param().abi(), core::mem::transmute(synicevent), core::mem::transmute(newlysignaled.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WHvStartPartitionMigration(partition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvStartPartitionMigration(partition : WHV_PARTITION_HANDLE, migrationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WHvStartPartitionMigration(partition.into_param().abi(), &mut result__).map(|| result__) + WHvStartPartitionMigration(partition.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WHvSuspendPartitionTime(partition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvSuspendPartitionTime(partition : WHV_PARTITION_HANDLE) -> windows_core::HRESULT); - WHvSuspendPartitionTime(partition.into_param().abi()).ok() + WHvSuspendPartitionTime(partition.param().abi()).ok() } #[inline] pub unsafe fn WHvTranslateGva(partition: P0, vpindex: u32, gva: u64, translateflags: WHV_TRANSLATE_GVA_FLAGS, translationresult: *mut WHV_TRANSLATE_GVA_RESULT, gpa: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, gva, translateflags, translationresult, gpa).ok() + WHvTranslateGva(partition.param().abi(), vpindex, gva, translateflags, translationresult, gpa).ok() } #[inline] pub unsafe fn WHvUnmapGpaRange(partition: P0, guestaddress: u64, sizeinbytes: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapGpaRange(partition : WHV_PARTITION_HANDLE, guestaddress : u64, sizeinbytes : u64) -> windows_core::HRESULT); - WHvUnmapGpaRange(partition.into_param().abi(), guestaddress, sizeinbytes).ok() + WHvUnmapGpaRange(partition.param().abi(), guestaddress, sizeinbytes).ok() } #[inline] pub unsafe fn WHvUnmapVpciDeviceInterrupt(partition: P0, logicaldeviceid: u64, index: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, index : u32) -> windows_core::HRESULT); - WHvUnmapVpciDeviceInterrupt(partition.into_param().abi(), logicaldeviceid, index).ok() + WHvUnmapVpciDeviceInterrupt(partition.param().abi(), logicaldeviceid, index).ok() } #[inline] pub unsafe fn WHvUnmapVpciDeviceMmioRanges(partition: P0, logicaldeviceid: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapVpciDeviceMmioRanges(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64) -> windows_core::HRESULT); - WHvUnmapVpciDeviceMmioRanges(partition.into_param().abi(), logicaldeviceid).ok() + WHvUnmapVpciDeviceMmioRanges(partition.param().abi(), logicaldeviceid).ok() } #[inline] pub unsafe fn WHvUnregisterPartitionDoorbellEvent(partition: P0, matchdata: *const WHV_DOORBELL_MATCH_DATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("winhvplatform.dll" "system" fn WHvUnregisterPartitionDoorbellEvent(partition : WHV_PARTITION_HANDLE, matchdata : *const WHV_DOORBELL_MATCH_DATA) -> windows_core::HRESULT); - WHvUnregisterPartitionDoorbellEvent(partition.into_param().abi(), matchdata).ok() + WHvUnregisterPartitionDoorbellEvent(partition.param().abi(), matchdata).ok() } #[inline] pub unsafe fn WHvUpdateTriggerParameters(partition: P0, parameters: *const WHV_TRIGGER_PARAMETERS, triggerhandle: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), parameters, triggerhandle).ok() + WHvUpdateTriggerParameters(partition.param().abi(), parameters, triggerhandle).ok() } #[inline] pub unsafe fn WHvWriteGpaRange(partition: P0, vpindex: u32, guestaddress: u64, controls: WHV_ACCESS_GPA_CONTROLS, data: *const core::ffi::c_void, datasizeinbytes: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), vpindex, guestaddress, core::mem::transmute(controls), data, datasizeinbytes).ok() + WHvWriteGpaRange(partition.param().abi(), vpindex, guestaddress, core::mem::transmute(controls), data, datasizeinbytes).ok() } #[inline] pub unsafe fn WHvWriteVpciDeviceRegister(partition: P0, logicaldeviceid: u64, register: *const WHV_VPCI_DEVICE_REGISTER, data: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), logicaldeviceid, register, data).ok() + WHvWriteVpciDeviceRegister(partition.param().abi(), 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 f56ad8461f..0c986c3833 100644 --- a/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs @@ -1,95 +1,95 @@ #[inline] pub unsafe fn BindIoCompletionCallback(filehandle: P0, function: LPOVERLAPPED_COMPLETION_ROUTINE, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn BindIoCompletionCallback(filehandle : super::super::Foundation:: HANDLE, function : LPOVERLAPPED_COMPLETION_ROUTINE, flags : u32) -> super::super::Foundation:: BOOL); - BindIoCompletionCallback(filehandle.into_param().abi(), function, flags).ok() + BindIoCompletionCallback(filehandle.param().abi(), function, flags).ok() } #[inline] pub unsafe fn CancelIo(hfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CancelIo(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelIo(hfile.into_param().abi()).ok() + CancelIo(hfile.param().abi()).ok() } #[inline] pub unsafe fn CancelIoEx(hfile: P0, lpoverlapped: Option<*const OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CancelIoEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED) -> super::super::Foundation:: BOOL); - CancelIoEx(hfile.into_param().abi(), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null()))).ok() + CancelIoEx(hfile.param().abi(), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn CancelSynchronousIo(hthread: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CancelSynchronousIo(hthread : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelSynchronousIo(hthread.into_param().abi()).ok() + CancelSynchronousIo(hthread.param().abi()).ok() } #[inline] pub unsafe fn CreateIoCompletionPort(filehandle: P0, existingcompletionport: P1, completionkey: usize, numberofconcurrentthreads: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filehandle.into_param().abi(), existingcompletionport.into_param().abi(), completionkey, numberofconcurrentthreads); + let result__ = CreateIoCompletionPort(filehandle.param().abi(), existingcompletionport.param().abi(), completionkey, numberofconcurrentthreads); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DeviceIoControl(hdevice: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), dwiocontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() + DeviceIoControl(hdevice.param().abi(), dwiocontrolcode, core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, core::mem::transmute(lpbytesreturned.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetOverlappedResult(hfile: P0, lpoverlapped: *const OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hfile.into_param().abi(), lpoverlapped, lpnumberofbytestransferred, bwait.into_param().abi()).ok() + GetOverlappedResult(hfile.param().abi(), lpoverlapped, lpnumberofbytestransferred, bwait.param().abi()).ok() } #[inline] pub unsafe fn GetOverlappedResultEx(hfile: P0, lpoverlapped: *const OVERLAPPED, lpnumberofbytestransferred: *mut u32, dwmilliseconds: u32, balertable: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hfile.into_param().abi(), lpoverlapped, lpnumberofbytestransferred, dwmilliseconds, balertable.into_param().abi()).ok() + GetOverlappedResultEx(hfile.param().abi(), lpoverlapped, lpnumberofbytestransferred, dwmilliseconds, balertable.param().abi()).ok() } #[inline] pub unsafe fn GetQueuedCompletionStatus(completionport: P0, lpnumberofbytestransferred: *mut u32, lpcompletionkey: *mut usize, lpoverlapped: *mut *mut OVERLAPPED, dwmilliseconds: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(completionport.into_param().abi(), lpnumberofbytestransferred, lpcompletionkey, lpoverlapped, dwmilliseconds).ok() + GetQueuedCompletionStatus(completionport.param().abi(), lpnumberofbytestransferred, lpcompletionkey, lpoverlapped, dwmilliseconds).ok() } #[inline] pub unsafe fn GetQueuedCompletionStatusEx(completionport: P0, lpcompletionportentries: &mut [OVERLAPPED_ENTRY], ulnumentriesremoved: *mut u32, dwmilliseconds: u32, falertable: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(completionport.into_param().abi(), core::mem::transmute(lpcompletionportentries.as_ptr()), lpcompletionportentries.len().try_into().unwrap(), ulnumentriesremoved, dwmilliseconds, falertable.into_param().abi()).ok() + GetQueuedCompletionStatusEx(completionport.param().abi(), core::mem::transmute(lpcompletionportentries.as_ptr()), lpcompletionportentries.len().try_into().unwrap(), ulnumentriesremoved, dwmilliseconds, falertable.param().abi()).ok() } #[inline] pub unsafe fn PostQueuedCompletionStatus(completionport: P0, dwnumberofbytestransferred: u32, dwcompletionkey: usize, lpoverlapped: Option<*const OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(completionport.into_param().abi(), dwnumberofbytestransferred, dwcompletionkey, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null()))).ok() + PostQueuedCompletionStatus(completionport.param().abi(), dwnumberofbytestransferred, dwcompletionkey, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null()))).ok() } #[repr(C)] pub struct IO_STATUS_BLOCK { 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 8d10b8bb7a..210827c25c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs @@ -23,12 +23,12 @@ windows_core::imp::interface_hierarchy!(AsyncIFtpAuthenticationProvider, windows impl AsyncIFtpAuthenticationProvider { pub unsafe fn Begin_AuthenticateUser(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszpassword: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_AuthenticateUser)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszusername.into_param().abi(), pszpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_AuthenticateUser)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi(), pszpassword.param().abi()).ok() } pub unsafe fn Finish_AuthenticateUser(&self, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Finish_AuthenticateUser)(windows_core::Interface::as_raw(self), ppszcanonicalusername, pfauthenticated).ok() @@ -45,12 +45,12 @@ windows_core::imp::interface_hierarchy!(AsyncIFtpAuthorizationProvider, windows_ impl AsyncIFtpAuthorizationProvider { pub unsafe fn Begin_GetUserAccessPermission(&self, pszsessionid: P0, pszsitename: P1, pszvirtualpath: P2, pszusername: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_GetUserAccessPermission)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszvirtualpath.into_param().abi(), pszusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_GetUserAccessPermission)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszvirtualpath.param().abi(), pszusername.param().abi()).ok() } pub unsafe fn Finish_GetUserAccessPermission(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -68,11 +68,11 @@ windows_core::imp::interface_hierarchy!(AsyncIFtpHomeDirectoryProvider, windows_ impl AsyncIFtpHomeDirectoryProvider { pub unsafe fn Begin_GetUserHomeDirectoryData(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_GetUserHomeDirectoryData)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_GetUserHomeDirectoryData)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi()).ok() } pub unsafe fn Finish_GetUserHomeDirectoryData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -140,12 +140,12 @@ windows_core::imp::interface_hierarchy!(AsyncIFtpRoleProvider, windows_core::IUn impl AsyncIFtpRoleProvider { pub unsafe fn Begin_IsUserInRole(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszrole: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Begin_IsUserInRole)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszusername.into_param().abi(), pszrole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Begin_IsUserInRole)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi(), pszrole.param().abi()).ok() } pub unsafe fn Finish_IsUserInRole(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -207,12 +207,12 @@ windows_core::imp::interface_hierarchy!(IFtpAuthenticationProvider, windows_core impl IFtpAuthenticationProvider { pub unsafe fn AuthenticateUser(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszpassword: P3, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AuthenticateUser)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszusername.into_param().abi(), pszpassword.into_param().abi(), ppszcanonicalusername, pfauthenticated).ok() + (windows_core::Interface::vtable(self).AuthenticateUser)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi(), pszpassword.param().abi(), ppszcanonicalusername, pfauthenticated).ok() } } #[repr(C)] @@ -225,13 +225,13 @@ windows_core::imp::interface_hierarchy!(IFtpAuthorizationProvider, windows_core: impl IFtpAuthorizationProvider { pub unsafe fn GetUserAccessPermission(&self, pszsessionid: P0, pszsitename: P1, pszvirtualpath: P2, pszusername: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserAccessPermission)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszvirtualpath.into_param().abi(), pszusername.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUserAccessPermission)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszvirtualpath.param().abi(), pszusername.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -244,12 +244,12 @@ windows_core::imp::interface_hierarchy!(IFtpHomeDirectoryProvider, windows_core: impl IFtpHomeDirectoryProvider { pub unsafe fn GetUserHomeDirectoryData(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserHomeDirectoryData)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszusername.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetUserHomeDirectoryData)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -316,13 +316,13 @@ windows_core::imp::interface_hierarchy!(IFtpRoleProvider, windows_core::IUnknown impl IFtpRoleProvider { pub unsafe fn IsUserInRole(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszrole: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsUserInRole)(windows_core::Interface::as_raw(self), pszsessionid.into_param().abi(), pszsitename.into_param().abi(), pszusername.into_param().abi(), pszrole.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsUserInRole)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi(), pszrole.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -335,100 +335,100 @@ windows_core::imp::interface_hierarchy!(IMSAdminBase2W, windows_core::IUnknown, impl IMSAdminBase2W { pub unsafe fn AddKey(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn DeleteKey(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn DeleteChildKeys(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteChildKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteChildKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn EnumKeys(&self, hmdhandle: u32, pszmdpath: P0, pszmdname: &mut [u16; 256], dwmdenumobjectindex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), core::mem::transmute(pszmdname.as_ptr()), dwmdenumobjectindex).ok() + (windows_core::Interface::vtable(self).base__.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: P0, hmddesthandle: u32, pszmddestpath: P1, bmdoverwriteflag: P2, bmdcopyflag: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyKey)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.into_param().abi(), hmddesthandle, pszmddestpath.into_param().abi(), bmdoverwriteflag.into_param().abi(), bmdcopyflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyKey)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.param().abi(), hmddesthandle, pszmddestpath.param().abi(), bmdoverwriteflag.param().abi(), bmdcopyflag.param().abi()).ok() } pub unsafe fn RenameKey(&self, hmdhandle: u32, pszmdpath: P0, pszmdnewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RenameKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pszmdnewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RenameKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pszmdnewname.param().abi()).ok() } pub unsafe fn SetData(&self, hmdhandle: u32, pszmdpath: P0, pmdrmddata: *mut METADATA_RECORD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata).ok() + (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata).ok() } pub unsafe fn GetData(&self, hmdhandle: u32, pszmdpath: P0, pmdrmddata: *mut METADATA_RECORD, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata, pdwmdrequireddatalen).ok() + (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata, pdwmdrequireddatalen).ok() } pub unsafe fn DeleteData(&self, hmdhandle: u32, pszmdpath: P0, dwmdidentifier: u32, dwmddatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdidentifier, dwmddatatype).ok() + (windows_core::Interface::vtable(self).base__.DeleteData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdidentifier, dwmddatatype).ok() } pub unsafe fn EnumData(&self, hmdhandle: u32, pszmdpath: P0, pmdrmddata: *mut METADATA_RECORD, dwmdenumdataindex: u32, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata, dwmdenumdataindex, pdwmdrequireddatalen).ok() + (windows_core::Interface::vtable(self).base__.EnumData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata, dwmdenumdataindex, pdwmdrequireddatalen).ok() } pub unsafe fn GetAllData(&self, hmdhandle: u32, pszmdpath: P0, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, pdwmdnumdataentries: *mut u32, pdwmddatasetnumber: *mut u32, dwmdbuffersize: u32, pbmdbuffer: *mut u8, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, pdwmdnumdataentries, pdwmddatasetnumber, dwmdbuffersize, pbmdbuffer, pdwmdrequiredbuffersize).ok() + (windows_core::Interface::vtable(self).base__.GetAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, pdwmdnumdataentries, pdwmddatasetnumber, dwmdbuffersize, pbmdbuffer, pdwmdrequiredbuffersize).ok() } pub unsafe fn DeleteAllData(&self, hmdhandle: u32, pszmdpath: P0, dwmdusertype: u32, dwmddatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdusertype, dwmddatatype).ok() + (windows_core::Interface::vtable(self).base__.DeleteAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdusertype, dwmddatatype).ok() } pub unsafe fn CopyData(&self, hmdsourcehandle: u32, pszmdsourcepath: P0, hmddesthandle: u32, pszmddestpath: P1, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyData)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.into_param().abi(), hmddesthandle, pszmddestpath.into_param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, bmdcopyflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyData)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.param().abi(), hmddesthandle, pszmddestpath.param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, bmdcopyflag.param().abi()).ok() } pub unsafe fn GetDataPaths(&self, hmdhandle: u32, pszmdpath: P0, dwmdidentifier: u32, dwmddatatype: u32, pszbuffer: &mut [u16], pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDataPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdidentifier, dwmddatatype, pszbuffer.len().try_into().unwrap(), core::mem::transmute(pszbuffer.as_ptr()), pdwmdrequiredbuffersize).ok() + (windows_core::Interface::vtable(self).base__.GetDataPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdidentifier, dwmddatatype, pszbuffer.len().try_into().unwrap(), core::mem::transmute(pszbuffer.as_ptr()), pdwmdrequiredbuffersize).ok() } pub unsafe fn OpenKey(&self, hmdhandle: u32, pszmdpath: P0, dwmdaccessrequested: u32, dwmdtimeout: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdaccessrequested, dwmdtimeout, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.CloseKey)(windows_core::Interface::as_raw(self), hmdhandle).ok() @@ -449,24 +449,24 @@ impl IMSAdminBase2W { } pub unsafe fn GetDataSetNumber(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDataSetNumber)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetDataSetNumber)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetLastChangeTime(&self, hmdhandle: u32, pszmdpath: P0, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pftmdlastchangetime, blocaltime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pftmdlastchangetime, blocaltime.param().abi()).ok() } pub unsafe fn GetLastChangeTime(&self, hmdhandle: u32, pszmdpath: P0, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pftmdlastchangetime, blocaltime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pftmdlastchangetime, blocaltime.param().abi()).ok() } pub unsafe fn KeyExchangePhase1(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.KeyExchangePhase1)(windows_core::Interface::as_raw(self)).ok() @@ -476,24 +476,24 @@ impl IMSAdminBase2W { } pub unsafe fn Backup(&self, pszmdbackuplocation: P0, dwmdversion: u32, dwmdflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Backup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Restore)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags).ok() + (windows_core::Interface::vtable(self).base__.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).base__.EnumBackups)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmdbackuplocation.as_ptr()), pdwmdversion, pftmdbackuptime, dwmdenumindex).ok() } pub unsafe fn DeleteBackup(&self, pszmdbackuplocation: P0, dwmdversion: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteBackup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion).ok() + (windows_core::Interface::vtable(self).base__.DeleteBackup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), dwmdversion).ok() } pub unsafe fn UnmarshalInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -504,40 +504,40 @@ impl IMSAdminBase2W { } pub unsafe fn BackupWithPasswd(&self, pszmdbackuplocation: P0, dwmdversion: u32, dwmdflags: u32, pszpasswd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BackupWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags, pszpasswd.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags, pszpasswd.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), pszpasswd.into_param().abi(), pszfilename.into_param().abi(), pszsourcepath.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), pszpasswd.into_param().abi(), pszfilename.into_param().abi(), pszsourcepath.into_param().abi(), pszdestpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreHistory)(windows_core::Interface::as_raw(self), pszmdhistorylocation.into_param().abi(), dwmdmajorversion, dwmdminorversion, 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()), pdwmdmajorversion, pdwmdminorversion, pftmdhistorytime, dwmdenumindex).ok() @@ -558,100 +558,100 @@ windows_core::imp::interface_hierarchy!(IMSAdminBase3W, windows_core::IUnknown, impl IMSAdminBase3W { pub unsafe fn AddKey(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn DeleteKey(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn DeleteChildKeys(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteChildKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteChildKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi()).ok() } pub unsafe fn EnumKeys(&self, hmdhandle: u32, pszmdpath: P0, pszmdname: &mut [u16; 256], dwmdenumobjectindex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnumKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), core::mem::transmute(pszmdname.as_ptr()), dwmdenumobjectindex).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0, hmddesthandle: u32, pszmddestpath: P1, bmdoverwriteflag: P2, bmdcopyflag: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyKey)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.into_param().abi(), hmddesthandle, pszmddestpath.into_param().abi(), bmdoverwriteflag.into_param().abi(), bmdcopyflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyKey)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.param().abi(), hmddesthandle, pszmddestpath.param().abi(), bmdoverwriteflag.param().abi(), bmdcopyflag.param().abi()).ok() } pub unsafe fn RenameKey(&self, hmdhandle: u32, pszmdpath: P0, pszmdnewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RenameKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pszmdnewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RenameKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pszmdnewname.param().abi()).ok() } pub unsafe fn SetData(&self, hmdhandle: u32, pszmdpath: P0, pmdrmddata: *mut METADATA_RECORD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata).ok() + (windows_core::Interface::vtable(self).base__.base__.SetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata).ok() } pub unsafe fn GetData(&self, hmdhandle: u32, pszmdpath: P0, pmdrmddata: *mut METADATA_RECORD, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata, pdwmdrequireddatalen).ok() + (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata, pdwmdrequireddatalen).ok() } pub unsafe fn DeleteData(&self, hmdhandle: u32, pszmdpath: P0, dwmdidentifier: u32, dwmddatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdidentifier, dwmddatatype).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdidentifier, dwmddatatype).ok() } pub unsafe fn EnumData(&self, hmdhandle: u32, pszmdpath: P0, pmdrmddata: *mut METADATA_RECORD, dwmdenumdataindex: u32, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnumData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata, dwmdenumdataindex, pdwmdrequireddatalen).ok() + (windows_core::Interface::vtable(self).base__.base__.EnumData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata, dwmdenumdataindex, pdwmdrequireddatalen).ok() } pub unsafe fn GetAllData(&self, hmdhandle: u32, pszmdpath: P0, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, pdwmdnumdataentries: *mut u32, pdwmddatasetnumber: *mut u32, dwmdbuffersize: u32, pbmdbuffer: *mut u8, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, pdwmdnumdataentries, pdwmddatasetnumber, dwmdbuffersize, pbmdbuffer, pdwmdrequiredbuffersize).ok() + (windows_core::Interface::vtable(self).base__.base__.GetAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, pdwmdnumdataentries, pdwmddatasetnumber, dwmdbuffersize, pbmdbuffer, pdwmdrequiredbuffersize).ok() } pub unsafe fn DeleteAllData(&self, hmdhandle: u32, pszmdpath: P0, dwmdusertype: u32, dwmddatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdusertype, dwmddatatype).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdusertype, dwmddatatype).ok() } pub unsafe fn CopyData(&self, hmdsourcehandle: u32, pszmdsourcepath: P0, hmddesthandle: u32, pszmddestpath: P1, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyData)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.into_param().abi(), hmddesthandle, pszmddestpath.into_param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, bmdcopyflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyData)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.param().abi(), hmddesthandle, pszmddestpath.param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, bmdcopyflag.param().abi()).ok() } pub unsafe fn GetDataPaths(&self, hmdhandle: u32, pszmdpath: P0, dwmdidentifier: u32, dwmddatatype: u32, pszbuffer: &mut [u16], pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetDataPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdidentifier, dwmddatatype, pszbuffer.len().try_into().unwrap(), core::mem::transmute(pszbuffer.as_ptr()), pdwmdrequiredbuffersize).ok() + (windows_core::Interface::vtable(self).base__.base__.GetDataPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdidentifier, dwmddatatype, pszbuffer.len().try_into().unwrap(), core::mem::transmute(pszbuffer.as_ptr()), pdwmdrequiredbuffersize).ok() } pub unsafe fn OpenKey(&self, hmdhandle: u32, pszmdpath: P0, dwmdaccessrequested: u32, dwmdtimeout: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OpenKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdaccessrequested, dwmdtimeout, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.CloseKey)(windows_core::Interface::as_raw(self), hmdhandle).ok() @@ -672,24 +672,24 @@ impl IMSAdminBase3W { } pub unsafe fn GetDataSetNumber(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetDataSetNumber)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetDataSetNumber)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetLastChangeTime(&self, hmdhandle: u32, pszmdpath: P0, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pftmdlastchangetime, blocaltime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pftmdlastchangetime, blocaltime.param().abi()).ok() } pub unsafe fn GetLastChangeTime(&self, hmdhandle: u32, pszmdpath: P0, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pftmdlastchangetime, blocaltime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pftmdlastchangetime, blocaltime.param().abi()).ok() } pub unsafe fn KeyExchangePhase1(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.KeyExchangePhase1)(windows_core::Interface::as_raw(self)).ok() @@ -699,24 +699,24 @@ impl IMSAdminBase3W { } pub unsafe fn Backup(&self, pszmdbackuplocation: P0, dwmdversion: u32, dwmdflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Backup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Restore)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.EnumBackups)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmdbackuplocation.as_ptr()), pdwmdversion, pftmdbackuptime, dwmdenumindex).ok() } pub unsafe fn DeleteBackup(&self, pszmdbackuplocation: P0, dwmdversion: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteBackup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteBackup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.param().abi(), dwmdversion).ok() } pub unsafe fn UnmarshalInterface(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -727,49 +727,49 @@ impl IMSAdminBase3W { } pub unsafe fn BackupWithPasswd(&self, pszmdbackuplocation: P0, dwmdversion: u32, dwmdflags: u32, pszpasswd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.BackupWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags, pszpasswd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RestoreWithPasswd)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, dwmdflags, pszpasswd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Export)(windows_core::Interface::as_raw(self), pszpasswd.into_param().abi(), pszfilename.into_param().abi(), pszsourcepath.into_param().abi(), dwmdflags).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Import)(windows_core::Interface::as_raw(self), pszpasswd.into_param().abi(), pszfilename.into_param().abi(), pszsourcepath.into_param().abi(), pszdestpath.into_param().abi(), dwmdflags).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RestoreHistory)(windows_core::Interface::as_raw(self), pszmdhistorylocation.into_param().abi(), dwmdmajorversion, dwmdminorversion, dwmdflags).ok() + (windows_core::Interface::vtable(self).base__.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).base__.EnumHistory)(windows_core::Interface::as_raw(self), core::mem::transmute(pszmdhistorylocation.as_ptr()), pdwmdmajorversion, pdwmdminorversion, pftmdhistorytime, dwmdenumindex).ok() } pub unsafe fn GetChildPaths(&self, hmdhandle: u32, pszmdpath: P0, pszbuffer: Option<&mut [u16]>, pcchmdrequiredbuffersize: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetChildPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_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(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -798,100 +798,100 @@ windows_core::imp::interface_hierarchy!(IMSAdminBaseW, windows_core::IUnknown); impl IMSAdminBaseW { pub unsafe fn AddKey(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteChildKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_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: P0, pszmdname: &mut [u16; 256], dwmdenumobjectindex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumKeys)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), core::mem::transmute(pszmdname.as_ptr()), 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: P0, hmddesthandle: u32, pszmddestpath: P1, bmdoverwriteflag: P2, bmdcopyflag: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyKey)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.into_param().abi(), hmddesthandle, pszmddestpath.into_param().abi(), bmdoverwriteflag.into_param().abi(), bmdcopyflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyKey)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.param().abi(), hmddesthandle, pszmddestpath.param().abi(), bmdoverwriteflag.param().abi(), bmdcopyflag.param().abi()).ok() } pub unsafe fn RenameKey(&self, hmdhandle: u32, pszmdpath: P0, pszmdnewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pszmdnewname.into_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: P0, pmdrmddata: *mut METADATA_RECORD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata).ok() } pub unsafe fn GetData(&self, hmdhandle: u32, pszmdpath: P0, pmdrmddata: *mut METADATA_RECORD, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata, pdwmdrequireddatalen).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata, pdwmdrequireddatalen).ok() } pub unsafe fn DeleteData(&self, hmdhandle: u32, pszmdpath: P0, dwmdidentifier: u32, dwmddatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdidentifier, 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: P0, pmdrmddata: *mut METADATA_RECORD, dwmdenumdataindex: u32, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pmdrmddata, dwmdenumdataindex, pdwmdrequireddatalen).ok() + (windows_core::Interface::vtable(self).EnumData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pmdrmddata, dwmdenumdataindex, pdwmdrequireddatalen).ok() } pub unsafe fn GetAllData(&self, hmdhandle: u32, pszmdpath: P0, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, pdwmdnumdataentries: *mut u32, pdwmddatasetnumber: *mut u32, dwmdbuffersize: u32, pbmdbuffer: *mut u8, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, pdwmdnumdataentries, pdwmddatasetnumber, dwmdbuffersize, pbmdbuffer, pdwmdrequiredbuffersize).ok() + (windows_core::Interface::vtable(self).GetAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, pdwmdnumdataentries, pdwmddatasetnumber, dwmdbuffersize, pbmdbuffer, pdwmdrequiredbuffersize).ok() } pub unsafe fn DeleteAllData(&self, hmdhandle: u32, pszmdpath: P0, dwmdusertype: u32, dwmddatatype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAllData)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdusertype, 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: P0, hmddesthandle: u32, pszmddestpath: P1, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyData)(windows_core::Interface::as_raw(self), hmdsourcehandle, pszmdsourcepath.into_param().abi(), hmddesthandle, pszmddestpath.into_param().abi(), dwmdattributes, dwmdusertype, dwmddatatype, bmdcopyflag.into_param().abi()).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.param().abi()).ok() } pub unsafe fn GetDataPaths(&self, hmdhandle: u32, pszmdpath: P0, dwmdidentifier: u32, dwmddatatype: u32, pszbuffer: &mut [u16], pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDataPaths)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdidentifier, dwmddatatype, pszbuffer.len().try_into().unwrap(), core::mem::transmute(pszbuffer.as_ptr()), 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()), pdwmdrequiredbuffersize).ok() } pub unsafe fn OpenKey(&self, hmdhandle: u32, pszmdpath: P0, dwmdaccessrequested: u32, dwmdtimeout: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenKey)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), dwmdaccessrequested, 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), hmdhandle).ok() @@ -912,24 +912,24 @@ impl IMSAdminBaseW { } pub unsafe fn GetDataSetNumber(&self, hmdhandle: u32, pszmdpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataSetNumber)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_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: P0, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pftmdlastchangetime, blocaltime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pftmdlastchangetime, blocaltime.param().abi()).ok() } pub unsafe fn GetLastChangeTime(&self, hmdhandle: u32, pszmdpath: P0, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.into_param().abi(), pftmdlastchangetime, blocaltime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetLastChangeTime)(windows_core::Interface::as_raw(self), hmdhandle, pszmdpath.param().abi(), pftmdlastchangetime, blocaltime.param().abi()).ok() } pub unsafe fn KeyExchangePhase1(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).KeyExchangePhase1)(windows_core::Interface::as_raw(self)).ok() @@ -939,24 +939,24 @@ impl IMSAdminBaseW { } pub unsafe fn Backup(&self, pszmdbackuplocation: P0, dwmdversion: u32, dwmdflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), dwmdversion, 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()), pdwmdversion, pftmdbackuptime, dwmdenumindex).ok() } pub unsafe fn DeleteBackup(&self, pszmdbackuplocation: P0, dwmdversion: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteBackup)(windows_core::Interface::as_raw(self), pszmdbackuplocation.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1006,10 +1006,10 @@ windows_core::imp::interface_hierarchy!(IMSImpExpHelpW, windows_core::IUnknown); impl IMSImpExpHelpW { pub unsafe fn EnumeratePathsInFile(&self, pszfilename: P0, pszkeytype: P1, pszbuffer: Option<&mut [u16]>, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumeratePathsInFile)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi(), pszkeytype.into_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())), pdwmdrequiredbuffersize).ok() + (windows_core::Interface::vtable(self).EnumeratePathsInFile)(windows_core::Interface::as_raw(self), pszfilename.param().abi(), pszkeytype.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())), pdwmdrequiredbuffersize).ok() } } #[repr(C)] 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 ad25bfb219..1bfed3e66d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs @@ -1,30 +1,30 @@ #[inline] pub unsafe fn AssignProcessToJobObject(hjob: P0, hprocess: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AssignProcessToJobObject(hjob : super::super::Foundation:: HANDLE, hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AssignProcessToJobObject(hjob.into_param().abi(), hprocess.into_param().abi()).ok() + AssignProcessToJobObject(hjob.param().abi(), hprocess.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateJobObjectA(lpjobattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateJobObjectA(lpjobattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateJobObjectA(core::mem::transmute(lpjobattributes.unwrap_or(std::ptr::null())), lpname.into_param().abi()); + let result__ = CreateJobObjectA(core::mem::transmute(lpjobattributes.unwrap_or(std::ptr::null())), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateJobObjectW(lpjobattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateJobObjectW(lpjobattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateJobObjectW(core::mem::transmute(lpjobattributes.unwrap_or(std::ptr::null())), lpname.into_param().abi()); + let result__ = CreateJobObjectW(core::mem::transmute(lpjobattributes.unwrap_or(std::ptr::null())), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -40,82 +40,82 @@ pub unsafe fn FreeMemoryJobObject(buffer: *const core::ffi::c_void) { #[inline] pub unsafe fn IsProcessInJob(processhandle: P0, jobhandle: P1, result: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(processhandle.into_param().abi(), jobhandle.into_param().abi(), result).ok() + IsProcessInJob(processhandle.param().abi(), jobhandle.param().abi(), result).ok() } #[inline] pub unsafe fn OpenJobObjectA(dwdesiredaccess: u32, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenJobObjectA(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenJobObjectW(dwdesiredaccess: u32, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenJobObjectW(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn QueryInformationJobObject(hjob: P0, jobobjectinformationclass: JOBOBJECTINFOCLASS, lpjobobjectinformation: *mut core::ffi::c_void, cbjobobjectinformationlength: u32, lpreturnlength: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hjob.into_param().abi(), jobobjectinformationclass, lpjobobjectinformation, cbjobobjectinformationlength, core::mem::transmute(lpreturnlength.unwrap_or(std::ptr::null_mut()))).ok() + QueryInformationJobObject(hjob.param().abi(), jobobjectinformationclass, lpjobobjectinformation, cbjobobjectinformationlength, core::mem::transmute(lpreturnlength.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn QueryIoRateControlInformationJobObject(hjob: P0, volumename: P1, infoblocks: *mut *mut JOBOBJECT_IO_RATE_CONTROL_INFORMATION, infoblockcount: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryIoRateControlInformationJobObject(hjob : super::super::Foundation:: HANDLE, volumename : windows_core::PCWSTR, infoblocks : *mut *mut JOBOBJECT_IO_RATE_CONTROL_INFORMATION, infoblockcount : *mut u32) -> u32); - QueryIoRateControlInformationJobObject(hjob.into_param().abi(), volumename.into_param().abi(), infoblocks, infoblockcount) + QueryIoRateControlInformationJobObject(hjob.param().abi(), volumename.param().abi(), infoblocks, infoblockcount) } #[inline] pub unsafe fn SetInformationJobObject(hjob: P0, jobobjectinformationclass: JOBOBJECTINFOCLASS, lpjobobjectinformation: *const core::ffi::c_void, cbjobobjectinformationlength: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hjob.into_param().abi(), jobobjectinformationclass, lpjobobjectinformation, cbjobobjectinformationlength).ok() + SetInformationJobObject(hjob.param().abi(), jobobjectinformationclass, lpjobobjectinformation, cbjobobjectinformationlength).ok() } #[inline] pub unsafe fn SetIoRateControlInformationJobObject(hjob: P0, ioratecontrolinfo: *const JOBOBJECT_IO_RATE_CONTROL_INFORMATION) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetIoRateControlInformationJobObject(hjob : super::super::Foundation:: HANDLE, ioratecontrolinfo : *const JOBOBJECT_IO_RATE_CONTROL_INFORMATION) -> u32); - SetIoRateControlInformationJobObject(hjob.into_param().abi(), ioratecontrolinfo) + SetIoRateControlInformationJobObject(hjob.param().abi(), ioratecontrolinfo) } #[inline] pub unsafe fn TerminateJobObject(hjob: P0, uexitcode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn TerminateJobObject(hjob : super::super::Foundation:: HANDLE, uexitcode : u32) -> super::super::Foundation:: BOOL); - TerminateJobObject(hjob.into_param().abi(), uexitcode).ok() + TerminateJobObject(hjob.param().abi(), uexitcode).ok() } #[inline] pub unsafe fn UserHandleGrantAccess(huserhandle: P0, hjob: P1, bgrant: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(huserhandle.into_param().abi(), hjob.into_param().abi(), bgrant.into_param().abi()).ok() + UserHandleGrantAccess(huserhandle.param().abi(), hjob.param().abi(), bgrant.param().abi()).ok() } pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_DISABLE: JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS(2i32); pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_ENABLE: JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS(1i32); 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 d6b0137fe4..2c35c38a13 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Js/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Js/mod.rs @@ -58,20 +58,20 @@ pub unsafe fn JsCreateArray(length: u32, result: *mut *mut core::ffi::c_void) -> #[inline] pub unsafe fn JsCreateContext(runtime: *const core::ffi::c_void, debugapplication: P0, newcontext: *mut *mut core::ffi::c_void) -> JsErrorCode where - P0: windows_core::IntoParam, + P0: 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(runtime, debugapplication.into_param().abi(), newcontext) + JsCreateContext(runtime, debugapplication.param().abi(), newcontext) } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] #[inline] pub unsafe fn JsCreateContext(runtime: *const core::ffi::c_void, debugapplication: P0, newcontext: *mut *mut core::ffi::c_void) -> JsErrorCode where - P0: windows_core::IntoParam, + P0: 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(runtime, debugapplication.into_param().abi(), newcontext) + JsCreateContext(runtime, debugapplication.param().abi(), newcontext) } #[inline] pub unsafe fn JsCreateError(message: *const core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -227,10 +227,10 @@ pub unsafe fn JsGetProperty(object: *const core::ffi::c_void, propertyid: *const #[inline] pub unsafe fn JsGetPropertyIdFromName(name: P0, propertyid: *mut *mut core::ffi::c_void) -> JsErrorCode where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsGetPropertyIdFromName(name : windows_core::PCWSTR, propertyid : *mut *mut core::ffi::c_void) -> JsErrorCode); - JsGetPropertyIdFromName(name.into_param().abi(), propertyid) + JsGetPropertyIdFromName(name.param().abi(), propertyid) } #[inline] pub unsafe fn JsGetPropertyNameFromId(propertyid: *const core::ffi::c_void, name: *mut *mut u16) -> JsErrorCode { @@ -325,20 +325,20 @@ pub unsafe fn JsNumberToDouble(value: *const core::ffi::c_void, doublevalue: *mu #[inline] pub unsafe fn JsParseScript(script: P0, sourcecontext: usize, sourceurl: P1, result: *mut *mut core::ffi::c_void) -> JsErrorCode where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), sourcecontext, sourceurl.into_param().abi(), result) + JsParseScript(script.param().abi(), sourcecontext, sourceurl.param().abi(), result) } #[inline] pub unsafe fn JsParseSerializedScript(script: P0, buffer: *const u8, sourcecontext: usize, sourceurl: P1, result: *mut *mut core::ffi::c_void) -> JsErrorCode where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), buffer, sourcecontext, sourceurl.into_param().abi(), result) + JsParseSerializedScript(script.param().abi(), buffer, sourcecontext, sourceurl.param().abi(), result) } #[inline] pub unsafe fn JsPointerToString(stringvalue: &[u16], value: *mut *mut core::ffi::c_void) -> JsErrorCode { @@ -358,28 +358,28 @@ pub unsafe fn JsRelease(r#ref: *const core::ffi::c_void, count: Option<*mut u32> #[inline] pub unsafe fn JsRunScript(script: P0, sourcecontext: usize, sourceurl: P1, result: *mut *mut core::ffi::c_void) -> JsErrorCode where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), sourcecontext, sourceurl.into_param().abi(), result) + JsRunScript(script.param().abi(), sourcecontext, sourceurl.param().abi(), result) } #[inline] pub unsafe fn JsRunSerializedScript(script: P0, buffer: *const u8, sourcecontext: usize, sourceurl: P1, result: *mut *mut core::ffi::c_void) -> JsErrorCode where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), buffer, sourcecontext, sourceurl.into_param().abi(), result) + JsRunSerializedScript(script.param().abi(), buffer, sourcecontext, sourceurl.param().abi(), result) } #[inline] pub unsafe fn JsSerializeScript(script: P0, buffer: Option<*mut u8>, buffersize: *mut u32) -> JsErrorCode where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsSerializeScript(script : windows_core::PCWSTR, buffer : *mut u8, buffersize : *mut u32) -> JsErrorCode); - JsSerializeScript(script.into_param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + JsSerializeScript(script.param().abi(), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[inline] pub unsafe fn JsSetCurrentContext(context: *const core::ffi::c_void) -> JsErrorCode { @@ -431,29 +431,29 @@ pub unsafe fn JsSetRuntimeMemoryLimit(runtime: *const core::ffi::c_void, memoryl #[inline] pub unsafe fn JsStartDebugging(debugapplication: P0) -> JsErrorCode where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsStartDebugging(debugapplication : * mut core::ffi::c_void) -> JsErrorCode); - JsStartDebugging(debugapplication.into_param().abi()) + JsStartDebugging(debugapplication.param().abi()) } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] #[inline] pub unsafe fn JsStartDebugging(debugapplication: P0) -> JsErrorCode where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("chakra.dll" "system" fn JsStartDebugging(debugapplication : * mut core::ffi::c_void) -> JsErrorCode); - JsStartDebugging(debugapplication.into_param().abi()) + JsStartDebugging(debugapplication.param().abi()) } #[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] #[inline] pub unsafe fn JsStartProfiling(callback: P0, eventmask: super::Diagnostics::Debug::ActiveScript::PROFILER_EVENT_MASK, context: u32) -> JsErrorCode where - P0: windows_core::IntoParam, + 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.into_param().abi(), eventmask, context) + JsStartProfiling(callback.param().abi(), eventmask, context) } #[inline] pub unsafe fn JsStopProfiling(reason: windows_core::HRESULT) -> JsErrorCode { 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 43db393fdd..72e0759cbd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs @@ -1,222 +1,222 @@ #[inline] pub unsafe fn AddDllDirectory(newdirectory: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddDllDirectory(newdirectory : windows_core::PCWSTR) -> *mut core::ffi::c_void); - AddDllDirectory(newdirectory.into_param().abi()) + AddDllDirectory(newdirectory.param().abi()) } #[inline] pub unsafe fn BeginUpdateResourceA(pfilename: P0, bdeleteexistingresources: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn BeginUpdateResourceA(pfilename : windows_core::PCSTR, bdeleteexistingresources : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); - let result__ = BeginUpdateResourceA(pfilename.into_param().abi(), bdeleteexistingresources.into_param().abi()); + let result__ = BeginUpdateResourceA(pfilename.param().abi(), bdeleteexistingresources.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn BeginUpdateResourceW(pfilename: P0, bdeleteexistingresources: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn BeginUpdateResourceW(pfilename : windows_core::PCWSTR, bdeleteexistingresources : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); - let result__ = BeginUpdateResourceW(pfilename.into_param().abi(), bdeleteexistingresources.into_param().abi()); + let result__ = BeginUpdateResourceW(pfilename.param().abi(), bdeleteexistingresources.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DisableThreadLibraryCalls(hlibmodule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DisableThreadLibraryCalls(hlibmodule : super::super::Foundation:: HMODULE) -> super::super::Foundation:: BOOL); - DisableThreadLibraryCalls(hlibmodule.into_param().abi()).ok() + DisableThreadLibraryCalls(hlibmodule.param().abi()).ok() } #[inline] pub unsafe fn EndUpdateResourceA(hupdate: P0, fdiscard: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceA(hupdate : super::super::Foundation:: HANDLE, fdiscard : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - EndUpdateResourceA(hupdate.into_param().abi(), fdiscard.into_param().abi()).ok() + EndUpdateResourceA(hupdate.param().abi(), fdiscard.param().abi()).ok() } #[inline] pub unsafe fn EndUpdateResourceW(hupdate: P0, fdiscard: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceW(hupdate : super::super::Foundation:: HANDLE, fdiscard : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - EndUpdateResourceW(hupdate.into_param().abi(), fdiscard.into_param().abi()).ok() + EndUpdateResourceW(hupdate.param().abi(), fdiscard.param().abi()).ok() } #[inline] pub unsafe fn EnumResourceLanguagesA(hmodule: P0, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCA, lparam: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), lpenumfunc, lparam).ok() + EnumResourceLanguagesA(hmodule.param().abi(), lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceLanguagesExA(hmodule: P0, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCA, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), lpenumfunc, lparam, dwflags, langid).ok() + EnumResourceLanguagesExA(hmodule.param().abi(), lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceLanguagesExW(hmodule: P0, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCW, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), lpenumfunc, lparam, dwflags, langid).ok() + EnumResourceLanguagesExW(hmodule.param().abi(), lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceLanguagesW(hmodule: P0, lptype: P1, lpname: P2, lpenumfunc: ENUMRESLANGPROCW, lparam: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), lpenumfunc, lparam).ok() + EnumResourceLanguagesW(hmodule.param().abi(), lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceNamesA(hmodule: P0, lptype: P1, lpenumfunc: ENUMRESNAMEPROCA, lparam: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpenumfunc, lparam).ok() + EnumResourceNamesA(hmodule.param().abi(), lptype.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceNamesExA(hmodule: P0, lptype: P1, lpenumfunc: ENUMRESNAMEPROCA, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpenumfunc, lparam, dwflags, langid).ok() + EnumResourceNamesExA(hmodule.param().abi(), lptype.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceNamesExW(hmodule: P0, lptype: P1, lpenumfunc: ENUMRESNAMEPROCW, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpenumfunc, lparam, dwflags, langid).ok() + EnumResourceNamesExW(hmodule.param().abi(), lptype.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceNamesW(hmodule: P0, lptype: P1, lpenumfunc: ENUMRESNAMEPROCW, lparam: isize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpenumfunc, lparam) + EnumResourceNamesW(hmodule.param().abi(), lptype.param().abi(), lpenumfunc, lparam) } #[inline] pub unsafe fn EnumResourceTypesA(hmodule: P0, lpenumfunc: ENUMRESTYPEPROCA, lparam: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesA(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCA, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceTypesA(hmodule.into_param().abi(), lpenumfunc, lparam).ok() + EnumResourceTypesA(hmodule.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn EnumResourceTypesExA(hmodule: P0, lpenumfunc: ENUMRESTYPEPROCA, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmodule.into_param().abi(), lpenumfunc, lparam, dwflags, langid).ok() + EnumResourceTypesExA(hmodule.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceTypesExW(hmodule: P0, lpenumfunc: ENUMRESTYPEPROCW, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmodule.into_param().abi(), lpenumfunc, lparam, dwflags, langid).ok() + EnumResourceTypesExW(hmodule.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } #[inline] pub unsafe fn EnumResourceTypesW(hmodule: P0, lpenumfunc: ENUMRESTYPEPROCW, lparam: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesW(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCW, lparam : isize) -> super::super::Foundation:: BOOL); - EnumResourceTypesW(hmodule.into_param().abi(), lpenumfunc, lparam).ok() + EnumResourceTypesW(hmodule.param().abi(), lpenumfunc, lparam).ok() } #[inline] pub unsafe fn FindResourceA(hmodule: P0, lpname: P1, lptype: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindResourceA(hmodule : super::super::Foundation:: HMODULE, lpname : windows_core::PCSTR, lptype : windows_core::PCSTR) -> super::super::Foundation:: HRSRC); - let result__ = FindResourceA(hmodule.into_param().abi(), lpname.into_param().abi(), lptype.into_param().abi()); + let result__ = FindResourceA(hmodule.param().abi(), lpname.param().abi(), lptype.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindResourceExA(hmodule: P0, lptype: P1, lpname: P2, wlanguage: u16) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), wlanguage); + let result__ = FindResourceExA(hmodule.param().abi(), lptype.param().abi(), lpname.param().abi(), wlanguage); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn FindResourceExW(hmodule: P0, lptype: P1, lpname: P2, wlanguage: u16) -> super::super::Foundation::HRSRC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hmodule.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), wlanguage) + FindResourceExW(hmodule.param().abi(), lptype.param().abi(), lpname.param().abi(), wlanguage) } #[inline] pub unsafe fn FindResourceW(hmodule: P0, lpname: P1, lptype: P2) -> super::super::Foundation::HRSRC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FindResourceW(hmodule : super::super::Foundation:: HMODULE, lpname : windows_core::PCWSTR, lptype : windows_core::PCWSTR) -> super::super::Foundation:: HRSRC); - FindResourceW(hmodule.into_param().abi(), lpname.into_param().abi(), lptype.into_param().abi()) + FindResourceW(hmodule.param().abi(), lpname.param().abi(), lptype.param().abi()) } #[inline] pub unsafe fn FreeLibraryAndExitThread(hlibmodule: P0, dwexitcode: u32) -> ! where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FreeLibraryAndExitThread(hlibmodule : super::super::Foundation:: HMODULE, dwexitcode : u32) -> !); - FreeLibraryAndExitThread(hlibmodule.into_param().abi(), dwexitcode) + FreeLibraryAndExitThread(hlibmodule.param().abi(), dwexitcode) } #[inline] pub unsafe fn FreeResource(hresdata: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FreeResource(hresdata : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); - FreeResource(hresdata.into_param().abi()) + FreeResource(hresdata.param().abi()) } #[inline] pub unsafe fn GetDllDirectoryA(lpbuffer: Option<&mut [u8]>) -> u32 { @@ -231,134 +231,134 @@ pub unsafe fn GetDllDirectoryW(lpbuffer: Option<&mut [u16]>) -> u32 { #[inline] pub unsafe fn GetModuleFileNameA(hmodule: P0, lpfilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetModuleFileNameA(hmodule : super::super::Foundation:: HMODULE, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - GetModuleFileNameA(hmodule.into_param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetModuleFileNameA(hmodule.param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleFileNameW(hmodule: P0, lpfilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetModuleFileNameW(hmodule : super::super::Foundation:: HMODULE, lpfilename : windows_core::PWSTR, nsize : u32) -> u32); - GetModuleFileNameW(hmodule.into_param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetModuleFileNameW(hmodule.param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleHandleA(lpmodulename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleA(lpmodulename : windows_core::PCSTR) -> super::super::Foundation:: HMODULE); - let result__ = GetModuleHandleA(lpmodulename.into_param().abi()); + let result__ = GetModuleHandleA(lpmodulename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetModuleHandleExA(dwflags: u32, lpmodulename: P0, phmodule: *mut super::super::Foundation::HMODULE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, lpmodulename.into_param().abi(), phmodule).ok() + GetModuleHandleExA(dwflags, lpmodulename.param().abi(), phmodule).ok() } #[inline] pub unsafe fn GetModuleHandleExW(dwflags: u32, lpmodulename: P0, phmodule: *mut super::super::Foundation::HMODULE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, lpmodulename.into_param().abi(), phmodule).ok() + GetModuleHandleExW(dwflags, lpmodulename.param().abi(), phmodule).ok() } #[inline] pub unsafe fn GetModuleHandleW(lpmodulename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleW(lpmodulename : windows_core::PCWSTR) -> super::super::Foundation:: HMODULE); - let result__ = GetModuleHandleW(lpmodulename.into_param().abi()); + let result__ = GetModuleHandleW(lpmodulename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetProcAddress(hmodule: P0, lpprocname: P1) -> super::super::Foundation::FARPROC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmodule.into_param().abi(), lpprocname.into_param().abi()) + GetProcAddress(hmodule.param().abi(), lpprocname.param().abi()) } #[inline] pub unsafe fn LoadLibraryA(lplibfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LoadLibraryA(lplibfilename : windows_core::PCSTR) -> super::super::Foundation:: HMODULE); - let result__ = LoadLibraryA(lplibfilename.into_param().abi()); + let result__ = LoadLibraryA(lplibfilename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadLibraryExA(lplibfilename: P0, hfile: P1, dwflags: LOAD_LIBRARY_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hfile.into_param().abi(), dwflags); + let result__ = LoadLibraryExA(lplibfilename.param().abi(), hfile.param().abi(), dwflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadLibraryExW(lplibfilename: P0, hfile: P1, dwflags: LOAD_LIBRARY_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hfile.into_param().abi(), dwflags); + let result__ = LoadLibraryExW(lplibfilename.param().abi(), hfile.param().abi(), dwflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadLibraryW(lplibfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LoadLibraryW(lplibfilename : windows_core::PCWSTR) -> super::super::Foundation:: HMODULE); - let result__ = LoadLibraryW(lplibfilename.into_param().abi()); + let result__ = LoadLibraryW(lplibfilename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadModule(lpmodulename: P0, lpparameterblock: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpparameterblock) + LoadModule(lpmodulename.param().abi(), lpparameterblock) } #[inline] pub unsafe fn LoadPackagedLibrary(lpwlibfilename: P0, reserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LoadPackagedLibrary(lpwlibfilename : windows_core::PCWSTR, reserved : u32) -> super::super::Foundation:: HMODULE); - let result__ = LoadPackagedLibrary(lpwlibfilename.into_param().abi(), reserved); + let result__ = LoadPackagedLibrary(lpwlibfilename.param().abi(), reserved); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadResource(hmodule: P0, hresinfo: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmodule.into_param().abi(), hresinfo.into_param().abi()); + let result__ = LoadResource(hmodule.param().abi(), hresinfo.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LockResource(hresdata: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LockResource(hresdata : super::super::Foundation:: HGLOBAL) -> *mut core::ffi::c_void); - LockResource(hresdata.into_param().abi()) + LockResource(hresdata.param().abi()) } #[inline] pub unsafe fn RemoveDllDirectory(cookie: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -373,47 +373,47 @@ pub unsafe fn SetDefaultDllDirectories(directoryflags: LOAD_LIBRARY_FLAGS) -> wi #[inline] pub unsafe fn SetDllDirectoryA(lppathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetDllDirectoryA(lppathname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetDllDirectoryA(lppathname.into_param().abi()).ok() + SetDllDirectoryA(lppathname.param().abi()).ok() } #[inline] pub unsafe fn SetDllDirectoryW(lppathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetDllDirectoryW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetDllDirectoryW(lppathname.into_param().abi()).ok() + SetDllDirectoryW(lppathname.param().abi()).ok() } #[inline] pub unsafe fn SizeofResource(hmodule: P0, hresinfo: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SizeofResource(hmodule : super::super::Foundation:: HMODULE, hresinfo : super::super::Foundation:: HRSRC) -> u32); - SizeofResource(hmodule.into_param().abi(), hresinfo.into_param().abi()) + SizeofResource(hmodule.param().abi(), hresinfo.param().abi()) } #[inline] pub unsafe fn UpdateResourceA(hupdate: P0, lptype: P1, lpname: P2, wlanguage: u16, lpdata: Option<*const core::ffi::c_void>, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hupdate.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), wlanguage, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cb).ok() + UpdateResourceA(hupdate.param().abi(), lptype.param().abi(), lpname.param().abi(), wlanguage, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cb).ok() } #[inline] pub unsafe fn UpdateResourceW(hupdate: P0, lptype: P1, lpname: P2, wlanguage: u16, lpdata: Option<*const core::ffi::c_void>, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hupdate.into_param().abi(), lptype.into_param().abi(), lpname.into_param().abi(), wlanguage, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cb).ok() + UpdateResourceW(hupdate.param().abi(), lptype.param().abi(), lpname.param().abi(), wlanguage, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), 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 43b534a29a..5a1debd7bb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs @@ -2,35 +2,35 @@ #[inline] pub unsafe fn CreateMailslotA(lpname: P0, nmaxmessagesize: u32, lreadtimeout: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), nmaxmessagesize, lreadtimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))); + let result__ = CreateMailslotA(lpname.param().abi(), nmaxmessagesize, lreadtimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateMailslotW(lpname: P0, nmaxmessagesize: u32, lreadtimeout: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), nmaxmessagesize, lreadtimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))); + let result__ = CreateMailslotW(lpname.param().abi(), nmaxmessagesize, lreadtimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetMailslotInfo(hmailslot: P0, lpmaxmessagesize: Option<*mut u32>, lpnextsize: Option<*mut u32>, lpmessagecount: Option<*mut u32>, lpreadtimeout: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmailslot.into_param().abi(), core::mem::transmute(lpmaxmessagesize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnextsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpmessagecount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreadtimeout.unwrap_or(std::ptr::null_mut()))).ok() + GetMailslotInfo(hmailslot.param().abi(), core::mem::transmute(lpmaxmessagesize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpnextsize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpmessagecount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreadtimeout.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetMailslotInfo(hmailslot: P0, lreadtimeout: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetMailslotInfo(hmailslot : super::super::Foundation:: HANDLE, lreadtimeout : u32) -> super::super::Foundation:: BOOL); - SetMailslotInfo(hmailslot.into_param().abi(), lreadtimeout).ok() + SetMailslotInfo(hmailslot.param().abi(), lreadtimeout).ok() } 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 320fde040b..8e9ee47934 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs @@ -8,91 +8,91 @@ pub unsafe fn AddSecureMemoryCacheCallback(pfncallback: PSECURE_MEMORY_CACHE_CAL #[inline] pub unsafe fn AllocateUserPhysicalPages(hprocess: P0, numberofpages: *mut usize, pagearray: *mut usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AllocateUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize) -> super::super::Foundation:: BOOL); - AllocateUserPhysicalPages(hprocess.into_param().abi(), numberofpages, pagearray).ok() + AllocateUserPhysicalPages(hprocess.param().abi(), numberofpages, pagearray).ok() } #[inline] pub unsafe fn AllocateUserPhysicalPages2(objecthandle: P0, numberofpages: *mut usize, pagearray: *mut usize, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(objecthandle.into_param().abi(), numberofpages, 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.param().abi(), numberofpages, 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: P0, numberofpages: *mut usize, pagearray: *mut usize, nndpreferred: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), numberofpages, pagearray, nndpreferred).ok() + AllocateUserPhysicalPagesNuma(hprocess.param().abi(), numberofpages, pagearray, nndpreferred).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileMapping2(file: P0, securityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, desiredaccess: u32, pageprotection: PAGE_PROTECTION_FLAGS, allocationattributes: u32, maximumsize: u64, name: P1, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(file.into_param().abi(), core::mem::transmute(securityattributes.unwrap_or(std::ptr::null())), desiredaccess, pageprotection, allocationattributes, maximumsize, name.into_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.param().abi(), core::mem::transmute(securityattributes.unwrap_or(std::ptr::null())), 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(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileMappingA(hfile: P0, lpfilemappingattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hfile.into_param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.into_param().abi()); + let result__ = CreateFileMappingA(hfile.param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileMappingFromApp(hfile: P0, securityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, pageprotection: PAGE_PROTECTION_FLAGS, maximumsize: u64, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hfile.into_param().abi(), core::mem::transmute(securityattributes.unwrap_or(std::ptr::null())), pageprotection, maximumsize, name.into_param().abi()); + let result__ = CreateFileMappingFromApp(hfile.param().abi(), core::mem::transmute(securityattributes.unwrap_or(std::ptr::null())), pageprotection, maximumsize, name.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileMappingNumaA(hfile: P0, lpfilemappingattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: P1, nndpreferred: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hfile.into_param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.into_param().abi(), nndpreferred); + let result__ = CreateFileMappingNumaA(hfile.param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi(), nndpreferred); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileMappingNumaW(hfile: P0, lpfilemappingattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: P1, nndpreferred: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hfile.into_param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.into_param().abi(), nndpreferred); + let result__ = CreateFileMappingNumaW(hfile.param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi(), nndpreferred); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateFileMappingW(hfile: P0, lpfilemappingattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hfile.into_param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.into_param().abi()); + let result__ = CreateFileMappingW(hfile.param().abi(), core::mem::transmute(lpfilemappingattributes.unwrap_or(std::ptr::null())), flprotect, dwmaximumsizehigh, dwmaximumsizelow, lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -114,10 +114,10 @@ pub unsafe fn FlushViewOfFile(lpbaseaddress: *const core::ffi::c_void, dwnumbero #[inline] pub unsafe fn FreeUserPhysicalPages(hprocess: P0, numberofpages: *mut usize, pagearray: *const usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FreeUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *const usize) -> super::super::Foundation:: BOOL); - FreeUserPhysicalPages(hprocess.into_param().abi(), numberofpages, pagearray).ok() + FreeUserPhysicalPages(hprocess.param().abi(), numberofpages, pagearray).ok() } #[inline] pub unsafe fn GetLargePageMinimum() -> usize { @@ -143,10 +143,10 @@ pub unsafe fn GetProcessHeaps(processheaps: &mut [super::super::Foundation::HAND #[inline] pub unsafe fn GetProcessWorkingSetSizeEx(hprocess: P0, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize, flags: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpminimumworkingsetsize, lpmaximumworkingsetsize, flags) + GetProcessWorkingSetSizeEx(hprocess.param().abi(), lpminimumworkingsetsize, lpmaximumworkingsetsize, flags) } #[inline] pub unsafe fn GetSystemFileCacheSize(lpminimumfilecachesize: *mut usize, lpmaximumfilecachesize: *mut usize, lpflags: *mut u32) -> windows_core::Result<()> { @@ -167,10 +167,10 @@ pub unsafe fn GlobalAlloc(uflags: GLOBAL_ALLOC_FLAGS, dwbytes: usize) -> windows #[inline] pub unsafe fn GlobalFlags(hmem: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalFlags(hmem : super::super::Foundation:: HGLOBAL) -> u32); - GlobalFlags(hmem.into_param().abi()) + GlobalFlags(hmem.param().abi()) } #[inline] pub unsafe fn GlobalHandle(pmem: *const core::ffi::c_void) -> windows_core::Result { @@ -181,51 +181,51 @@ pub unsafe fn GlobalHandle(pmem: *const core::ffi::c_void) -> windows_core::Resu #[inline] pub unsafe fn GlobalLock(hmem: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalLock(hmem : super::super::Foundation:: HGLOBAL) -> *mut core::ffi::c_void); - GlobalLock(hmem.into_param().abi()) + GlobalLock(hmem.param().abi()) } #[inline] pub unsafe fn GlobalReAlloc(hmem: P0, dwbytes: usize, uflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalReAlloc(hmem : super::super::Foundation:: HGLOBAL, dwbytes : usize, uflags : u32) -> super::super::Foundation:: HGLOBAL); - let result__ = GlobalReAlloc(hmem.into_param().abi(), dwbytes, uflags); + let result__ = GlobalReAlloc(hmem.param().abi(), dwbytes, uflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GlobalSize(hmem: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalSize(hmem : super::super::Foundation:: HGLOBAL) -> usize); - GlobalSize(hmem.into_param().abi()) + GlobalSize(hmem.param().abi()) } #[inline] pub unsafe fn GlobalUnlock(hmem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalUnlock(hmem : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); - GlobalUnlock(hmem.into_param().abi()).ok() + GlobalUnlock(hmem.param().abi()).ok() } #[inline] pub unsafe fn HeapAlloc(hheap: P0, dwflags: HEAP_FLAGS, dwbytes: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapAlloc(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, dwbytes : usize) -> *mut core::ffi::c_void); - HeapAlloc(hheap.into_param().abi(), dwflags, dwbytes) + HeapAlloc(hheap.param().abi(), dwflags, dwbytes) } #[inline] pub unsafe fn HeapCompact(hheap: P0, dwflags: HEAP_FLAGS) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapCompact(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS) -> usize); - HeapCompact(hheap.into_param().abi(), dwflags) + HeapCompact(hheap.param().abi(), dwflags) } #[inline] pub unsafe fn HeapCreate(floptions: HEAP_FLAGS, dwinitialsize: usize, dwmaximumsize: usize) -> windows_core::Result { @@ -236,90 +236,90 @@ pub unsafe fn HeapCreate(floptions: HEAP_FLAGS, dwinitialsize: usize, dwmaximums #[inline] pub unsafe fn HeapDestroy(hheap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapDestroy(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HeapDestroy(hheap.into_param().abi()).ok() + HeapDestroy(hheap.param().abi()).ok() } #[inline] pub unsafe fn HeapFree(hheap: P0, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hheap.into_param().abi(), dwflags, core::mem::transmute(lpmem.unwrap_or(std::ptr::null()))).ok() + HeapFree(hheap.param().abi(), dwflags, core::mem::transmute(lpmem.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn HeapLock(hheap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapLock(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HeapLock(hheap.into_param().abi()).ok() + HeapLock(hheap.param().abi()).ok() } #[inline] pub unsafe fn HeapQueryInformation(heaphandle: P0, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: Option<*mut core::ffi::c_void>, heapinformationlength: usize, returnlength: Option<*mut usize>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(heaphandle.into_param().abi(), heapinformationclass, core::mem::transmute(heapinformation.unwrap_or(std::ptr::null_mut())), heapinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))).ok() + HeapQueryInformation(heaphandle.param().abi(), heapinformationclass, core::mem::transmute(heapinformation.unwrap_or(std::ptr::null_mut())), heapinformationlength, core::mem::transmute(returnlength.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn HeapReAlloc(hheap: P0, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>, dwbytes: usize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hheap.into_param().abi(), dwflags, core::mem::transmute(lpmem.unwrap_or(std::ptr::null())), dwbytes) + HeapReAlloc(hheap.param().abi(), dwflags, core::mem::transmute(lpmem.unwrap_or(std::ptr::null())), dwbytes) } #[inline] pub unsafe fn HeapSetInformation(heaphandle: P0, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: Option<*const core::ffi::c_void>, heapinformationlength: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(heaphandle.into_param().abi(), heapinformationclass, core::mem::transmute(heapinformation.unwrap_or(std::ptr::null())), heapinformationlength).ok() + HeapSetInformation(heaphandle.param().abi(), heapinformationclass, core::mem::transmute(heapinformation.unwrap_or(std::ptr::null())), heapinformationlength).ok() } #[inline] pub unsafe fn HeapSize(hheap: P0, dwflags: HEAP_FLAGS, lpmem: *const core::ffi::c_void) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapSize(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> usize); - HeapSize(hheap.into_param().abi(), dwflags, lpmem) + HeapSize(hheap.param().abi(), dwflags, lpmem) } #[inline] pub unsafe fn HeapSummary(hheap: P0, dwflags: u32, lpsummary: *mut HEAP_SUMMARY) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapSummary(hheap : super::super::Foundation:: HANDLE, dwflags : u32, lpsummary : *mut HEAP_SUMMARY) -> super::super::Foundation:: BOOL); - HeapSummary(hheap.into_param().abi(), dwflags, lpsummary) + HeapSummary(hheap.param().abi(), dwflags, lpsummary) } #[inline] pub unsafe fn HeapUnlock(hheap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapUnlock(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - HeapUnlock(hheap.into_param().abi()).ok() + HeapUnlock(hheap.param().abi()).ok() } #[inline] pub unsafe fn HeapValidate(hheap: P0, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hheap.into_param().abi(), dwflags, core::mem::transmute(lpmem.unwrap_or(std::ptr::null()))) + HeapValidate(hheap.param().abi(), dwflags, core::mem::transmute(lpmem.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn HeapWalk(hheap: P0, lpentry: *mut PROCESS_HEAP_ENTRY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn HeapWalk(hheap : super::super::Foundation:: HANDLE, lpentry : *mut PROCESS_HEAP_ENTRY) -> super::super::Foundation:: BOOL); - HeapWalk(hheap.into_param().abi(), lpentry).ok() + HeapWalk(hheap.param().abi(), lpentry).ok() } #[inline] pub unsafe fn IsBadCodePtr(lpfn: super::super::Foundation::FARPROC) -> windows_core::Result<()> { @@ -334,18 +334,18 @@ pub unsafe fn IsBadReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> #[inline] pub unsafe fn IsBadStringPtrA(lpsz: P0, ucchmax: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrA(lpsz : windows_core::PCSTR, ucchmax : usize) -> super::super::Foundation:: BOOL); - IsBadStringPtrA(lpsz.into_param().abi(), ucchmax) + IsBadStringPtrA(lpsz.param().abi(), ucchmax) } #[inline] pub unsafe fn IsBadStringPtrW(lpsz: P0, ucchmax: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrW(lpsz : windows_core::PCWSTR, ucchmax : usize) -> super::super::Foundation:: BOOL); - IsBadStringPtrW(lpsz.into_param().abi(), ucchmax) + IsBadStringPtrW(lpsz.param().abi(), ucchmax) } #[inline] pub unsafe fn IsBadWritePtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { @@ -361,10 +361,10 @@ pub unsafe fn LocalAlloc(uflags: LOCAL_ALLOC_FLAGS, ubytes: usize) -> windows_co #[inline] pub unsafe fn LocalFlags(hmem: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocalFlags(hmem : super::super::Foundation:: HLOCAL) -> u32); - LocalFlags(hmem.into_param().abi()) + LocalFlags(hmem.param().abi()) } #[inline] pub unsafe fn LocalHandle(pmem: *const core::ffi::c_void) -> windows_core::Result { @@ -375,35 +375,35 @@ pub unsafe fn LocalHandle(pmem: *const core::ffi::c_void) -> windows_core::Resul #[inline] pub unsafe fn LocalLock(hmem: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocalLock(hmem : super::super::Foundation:: HLOCAL) -> *mut core::ffi::c_void); - LocalLock(hmem.into_param().abi()) + LocalLock(hmem.param().abi()) } #[inline] pub unsafe fn LocalReAlloc(hmem: P0, ubytes: usize, uflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocalReAlloc(hmem : super::super::Foundation:: HLOCAL, ubytes : usize, uflags : u32) -> super::super::Foundation:: HLOCAL); - let result__ = LocalReAlloc(hmem.into_param().abi(), ubytes, uflags); + let result__ = LocalReAlloc(hmem.param().abi(), ubytes, uflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LocalSize(hmem: P0) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocalSize(hmem : super::super::Foundation:: HLOCAL) -> usize); - LocalSize(hmem.into_param().abi()) + LocalSize(hmem.param().abi()) } #[inline] pub unsafe fn LocalUnlock(hmem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocalUnlock(hmem : super::super::Foundation:: HLOCAL) -> super::super::Foundation:: BOOL); - LocalUnlock(hmem.into_param().abi()).ok() + LocalUnlock(hmem.param().abi()).ok() } #[inline] pub unsafe fn MapUserPhysicalPages(virtualaddress: *const core::ffi::c_void, pagearray: Option<&[usize]>) -> windows_core::Result<()> { @@ -418,61 +418,61 @@ pub unsafe fn MapUserPhysicalPagesScatter(virtualaddresses: *const *const core:: #[inline] pub unsafe fn MapViewOfFile(hfilemappingobject: P0, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize) -> MEMORY_MAPPED_VIEW_ADDRESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfilemappingobject.into_param().abi(), dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap) + MapViewOfFile(hfilemappingobject.param().abi(), dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap) } #[inline] pub unsafe fn MapViewOfFile3(filemapping: P0, process: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filemapping.into_param().abi(), process.into_param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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())) + MapViewOfFile3(filemapping.param().abi(), process.param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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: P0, process: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filemapping.into_param().abi(), process.into_param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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())) + MapViewOfFile3FromApp(filemapping.param().abi(), process.param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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: P0, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: Option<*const core::ffi::c_void>) -> MEMORY_MAPPED_VIEW_ADDRESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfilemappingobject.into_param().abi(), dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap, core::mem::transmute(lpbaseaddress.unwrap_or(std::ptr::null()))) + MapViewOfFileEx(hfilemappingobject.param().abi(), dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap, core::mem::transmute(lpbaseaddress.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn MapViewOfFileExNuma(hfilemappingobject: P0, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: Option<*const core::ffi::c_void>, nndpreferred: u32) -> MEMORY_MAPPED_VIEW_ADDRESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfilemappingobject.into_param().abi(), dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap, core::mem::transmute(lpbaseaddress.unwrap_or(std::ptr::null())), nndpreferred) + MapViewOfFileExNuma(hfilemappingobject.param().abi(), dwdesiredaccess, dwfileoffsethigh, dwfileoffsetlow, dwnumberofbytestomap, core::mem::transmute(lpbaseaddress.unwrap_or(std::ptr::null())), nndpreferred) } #[inline] pub unsafe fn MapViewOfFileFromApp(hfilemappingobject: P0, desiredaccess: FILE_MAP, fileoffset: u64, numberofbytestomap: usize) -> MEMORY_MAPPED_VIEW_ADDRESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hfilemappingobject.into_param().abi(), desiredaccess, fileoffset, numberofbytestomap) + MapViewOfFileFromApp(hfilemappingobject.param().abi(), desiredaccess, fileoffset, numberofbytestomap) } #[inline] pub unsafe fn MapViewOfFileNuma2(filemappinghandle: P0, processhandle: P1, offset: u64, baseaddress: Option<*const core::ffi::c_void>, viewsize: usize, allocationtype: u32, pageprotection: u32, preferrednode: u32) -> MEMORY_MAPPED_VIEW_ADDRESS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(filemappinghandle.into_param().abi(), processhandle.into_param().abi(), offset, core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), viewsize, allocationtype, pageprotection, preferrednode) + MapViewOfFileNuma2(filemappinghandle.param().abi(), processhandle.param().abi(), offset, core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), viewsize, allocationtype, pageprotection, preferrednode) } #[inline] pub unsafe fn OfferVirtualMemory(virtualaddress: &mut [u8], priority: OFFER_PRIORITY) -> u32 { @@ -482,73 +482,73 @@ pub unsafe fn OfferVirtualMemory(virtualaddress: &mut [u8], priority: OFFER_PRIO #[inline] pub unsafe fn OpenDedicatedMemoryPartition(partition: P0, dedicatedmemorytypeid: u64, desiredaccess: u32, inherithandle: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(partition.into_param().abi(), dedicatedmemorytypeid, desiredaccess, inherithandle.into_param().abi()) + OpenDedicatedMemoryPartition(partition.param().abi(), dedicatedmemorytypeid, desiredaccess, inherithandle.param().abi()) } #[inline] pub unsafe fn OpenFileMappingA(dwdesiredaccess: u32, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenFileMappingA(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenFileMappingFromApp(desiredaccess: u32, inherithandle: P0, name: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(desiredaccess, inherithandle.into_param().abi(), name.into_param().abi()); + let result__ = OpenFileMappingFromApp(desiredaccess, inherithandle.param().abi(), name.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenFileMappingW(dwdesiredaccess: u32, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenFileMappingW(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PrefetchVirtualMemory(hprocess: P0, virtualaddresses: &[WIN32_MEMORY_RANGE_ENTRY], flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), flags).ok() + PrefetchVirtualMemory(hprocess.param().abi(), virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), flags).ok() } #[inline] pub unsafe fn QueryMemoryResourceNotification(resourcenotificationhandle: P0, resourcestate: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryMemoryResourceNotification(resourcenotificationhandle : super::super::Foundation:: HANDLE, resourcestate : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - QueryMemoryResourceNotification(resourcenotificationhandle.into_param().abi(), resourcestate).ok() + QueryMemoryResourceNotification(resourcenotificationhandle.param().abi(), resourcestate).ok() } #[inline] pub unsafe fn QueryPartitionInformation(partition: P0, partitioninformationclass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation: *mut core::ffi::c_void, partitioninformationlength: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(partition.into_param().abi(), partitioninformationclass, partitioninformation, partitioninformationlength) + QueryPartitionInformation(partition.param().abi(), partitioninformationclass, partitioninformation, partitioninformationlength) } #[inline] pub unsafe fn QueryVirtualMemoryInformation(process: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), virtualaddress, memoryinformationclass, memoryinformation, memoryinformationsize, core::mem::transmute(returnsize.unwrap_or(std::ptr::null_mut()))).ok() + QueryVirtualMemoryInformation(process.param().abi(), virtualaddress, memoryinformationclass, memoryinformation, memoryinformationsize, core::mem::transmute(returnsize.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ReclaimVirtualMemory(virtualaddress: &[u8]) -> u32 { @@ -593,27 +593,27 @@ pub unsafe fn RtlIsZeroMemory(buffer: *const core::ffi::c_void, length: usize) - #[inline] pub unsafe fn SetProcessValidCallTargets(hprocess: P0, virtualaddress: *const core::ffi::c_void, regionsize: usize, offsetinformation: &mut [CFG_CALL_TARGET_INFO]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr())).ok() + SetProcessValidCallTargets(hprocess.param().abi(), virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr())).ok() } #[inline] pub unsafe fn SetProcessValidCallTargetsForMappedView(process: P0, virtualaddress: *const core::ffi::c_void, regionsize: usize, offsetinformation: &mut [CFG_CALL_TARGET_INFO], section: P1, expectedfileoffset: u64) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(process.into_param().abi(), virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr()), section.into_param().abi(), expectedfileoffset) + SetProcessValidCallTargetsForMappedView(process.param().abi(), virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr()), section.param().abi(), expectedfileoffset) } #[inline] pub unsafe fn SetProcessWorkingSetSizeEx(hprocess: P0, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize, flags: SETPROCESSWORKINGSETSIZEEX_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwminimumworkingsetsize, dwmaximumworkingsetsize, flags).ok() + SetProcessWorkingSetSizeEx(hprocess.param().abi(), dwminimumworkingsetsize, dwmaximumworkingsetsize, flags).ok() } #[inline] pub unsafe fn SetSystemFileCacheSize(minimumfilecachesize: usize, maximumfilecachesize: usize, flags: u32) -> windows_core::Result<()> { @@ -628,10 +628,10 @@ pub unsafe fn UnmapViewOfFile(lpbaseaddress: MEMORY_MAPPED_VIEW_ADDRESS) -> wind #[inline] pub unsafe fn UnmapViewOfFile2(process: P0, baseaddress: MEMORY_MAPPED_VIEW_ADDRESS, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), core::mem::transmute(baseaddress), unmapflags).ok() + UnmapViewOfFile2(process.param().abi(), 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<()> { @@ -651,34 +651,34 @@ pub unsafe fn VirtualAlloc(lpaddress: Option<*const core::ffi::c_void>, dwsize: #[inline] pub unsafe fn VirtualAlloc2(process: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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())) + VirtualAlloc2(process.param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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())) + VirtualAlloc2FromApp(process.param().abi(), core::mem::transmute(baseaddress.unwrap_or(std::ptr::null())), 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: P0, lpaddress: Option<*const core::ffi::c_void>, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: PAGE_PROTECTION_FLAGS) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), dwsize, flallocationtype, flprotect) + VirtualAllocEx(hprocess.param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), dwsize, flallocationtype, flprotect) } #[inline] pub unsafe fn VirtualAllocExNuma(hprocess: P0, lpaddress: Option<*const core::ffi::c_void>, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: u32, nndpreferred: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), dwsize, flallocationtype, flprotect, nndpreferred) + VirtualAllocExNuma(hprocess.param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), 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 { @@ -693,10 +693,10 @@ pub unsafe fn VirtualFree(lpaddress: *mut core::ffi::c_void, dwsize: usize, dwfr #[inline] pub unsafe fn VirtualFreeEx(hprocess: P0, lpaddress: *mut core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpaddress, dwsize, dwfreetype).ok() + VirtualFreeEx(hprocess.param().abi(), lpaddress, dwsize, dwfreetype).ok() } #[inline] pub unsafe fn VirtualLock(lpaddress: *const core::ffi::c_void, dwsize: usize) -> windows_core::Result<()> { @@ -711,10 +711,10 @@ pub unsafe fn VirtualProtect(lpaddress: *const core::ffi::c_void, dwsize: usize, #[inline] pub unsafe fn VirtualProtectEx(hprocess: P0, lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpaddress, dwsize, flnewprotect, lpfloldprotect).ok() + VirtualProtectEx(hprocess.param().abi(), lpaddress, dwsize, flnewprotect, lpfloldprotect).ok() } #[inline] pub unsafe fn VirtualProtectFromApp(address: *const core::ffi::c_void, size: usize, newprotection: u32, oldprotection: *mut u32) -> windows_core::Result<()> { @@ -729,10 +729,10 @@ pub unsafe fn VirtualQuery(lpaddress: Option<*const core::ffi::c_void>, lpbuffer #[inline] pub unsafe fn VirtualQueryEx(hprocess: P0, lpaddress: Option<*const core::ffi::c_void>, lpbuffer: *mut MEMORY_BASIC_INFORMATION, dwlength: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), lpbuffer, dwlength) + VirtualQueryEx(hprocess.param().abi(), core::mem::transmute(lpaddress.unwrap_or(std::ptr::null())), lpbuffer, dwlength) } #[inline] pub unsafe fn VirtualUnlock(lpaddress: *const core::ffi::c_void, dwsize: usize) -> windows_core::Result<()> { @@ -742,10 +742,10 @@ pub unsafe fn VirtualUnlock(lpaddress: *const core::ffi::c_void, dwsize: usize) #[inline] pub unsafe fn VirtualUnlockEx(process: P0, address: *const core::ffi::c_void, size: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), address, size) + VirtualUnlockEx(process.param().abi(), address, size) } pub const FILE_CACHE_MAX_HARD_DISABLE: u32 = 2u32; pub const FILE_CACHE_MAX_HARD_ENABLE: u32 = 1u32; 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 8018b39120..eb8672923f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn MQADsPathToFormatName(lpwcsadspath: P0, lpwcsformatname: windows_core::PWSTR, lpdwformatnamelength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQADsPathToFormatName(lpwcsadspath : windows_core::PCWSTR, lpwcsformatname : windows_core::PWSTR, lpdwformatnamelength : *mut u32) -> windows_core::HRESULT); - MQADsPathToFormatName(lpwcsadspath.into_param().abi(), core::mem::transmute(lpwcsformatname), lpdwformatnamelength).ok() + MQADsPathToFormatName(lpwcsadspath.param().abi(), core::mem::transmute(lpwcsformatname), lpdwformatnamelength).ok() } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] #[inline] @@ -16,10 +16,10 @@ pub unsafe fn MQBeginTransaction() -> windows_core::Result(hcursor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQCloseCursor(hcursor : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - MQCloseCursor(hcursor.into_param().abi()).ok() + MQCloseCursor(hcursor.param().abi()).ok() } #[inline] pub unsafe fn MQCloseQueue(hqueue: isize) -> windows_core::Result<()> { @@ -36,18 +36,18 @@ pub unsafe fn MQCreateCursor(hqueue: isize) -> windows_core::Result(psecuritydescriptor: P0, pqueueprops: *mut MQQUEUEPROPS, lpwcsformatname: windows_core::PWSTR, lpdwformatnamelength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQCreateQueue(psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, pqueueprops : *mut MQQUEUEPROPS, lpwcsformatname : windows_core::PWSTR, lpdwformatnamelength : *mut u32) -> windows_core::HRESULT); - MQCreateQueue(psecuritydescriptor.into_param().abi(), pqueueprops, core::mem::transmute(lpwcsformatname), lpdwformatnamelength).ok() + MQCreateQueue(psecuritydescriptor.param().abi(), pqueueprops, core::mem::transmute(lpwcsformatname), lpdwformatnamelength).ok() } #[inline] pub unsafe fn MQDeleteQueue(lpwcsformatname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQDeleteQueue(lpwcsformatname : windows_core::PCWSTR) -> windows_core::HRESULT); - MQDeleteQueue(lpwcsformatname.into_param().abi()).ok() + MQDeleteQueue(lpwcsformatname.param().abi()).ok() } #[inline] pub unsafe fn MQFreeMemory(pvmemory: *const core::ffi::c_void) { @@ -57,18 +57,18 @@ pub unsafe fn MQFreeMemory(pvmemory: *const core::ffi::c_void) { #[inline] pub unsafe fn MQFreeSecurityContext(hsecuritycontext: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQFreeSecurityContext(hsecuritycontext : super::super::Foundation:: HANDLE)); - MQFreeSecurityContext(hsecuritycontext.into_param().abi()) + MQFreeSecurityContext(hsecuritycontext.param().abi()) } #[inline] pub unsafe fn MQGetMachineProperties(lpwcsmachinename: P0, pguidmachineid: Option<*const windows_core::GUID>, pqmprops: *mut MQQMPROPS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQGetMachineProperties(lpwcsmachinename : windows_core::PCWSTR, pguidmachineid : *const windows_core::GUID, pqmprops : *mut MQQMPROPS) -> windows_core::HRESULT); - MQGetMachineProperties(lpwcsmachinename.into_param().abi(), core::mem::transmute(pguidmachineid.unwrap_or(std::ptr::null())), pqmprops).ok() + MQGetMachineProperties(lpwcsmachinename.param().abi(), core::mem::transmute(pguidmachineid.unwrap_or(std::ptr::null())), pqmprops).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -79,27 +79,27 @@ pub unsafe fn MQGetOverlappedResult(lpoverlapped: *const super::IO::OVERLAPPED) #[inline] pub unsafe fn MQGetPrivateComputerInformation(lpwcscomputername: P0, pprivateprops: *mut MQPRIVATEPROPS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQGetPrivateComputerInformation(lpwcscomputername : windows_core::PCWSTR, pprivateprops : *mut MQPRIVATEPROPS) -> windows_core::HRESULT); - MQGetPrivateComputerInformation(lpwcscomputername.into_param().abi(), pprivateprops).ok() + MQGetPrivateComputerInformation(lpwcscomputername.param().abi(), pprivateprops).ok() } #[inline] pub unsafe fn MQGetQueueProperties(lpwcsformatname: P0, pqueueprops: *mut MQQUEUEPROPS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQGetQueueProperties(lpwcsformatname : windows_core::PCWSTR, pqueueprops : *mut MQQUEUEPROPS) -> windows_core::HRESULT); - MQGetQueueProperties(lpwcsformatname.into_param().abi(), pqueueprops).ok() + MQGetQueueProperties(lpwcsformatname.param().abi(), pqueueprops).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn MQGetQueueSecurity(lpwcsformatname: P0, requestedinformation: u32, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() + MQGetQueueSecurity(lpwcsformatname.param().abi(), requestedinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() } #[inline] pub unsafe fn MQGetSecurityContext(lpcertbuffer: Option<*const core::ffi::c_void>, dwcertbufferlength: u32) -> windows_core::Result { @@ -126,80 +126,80 @@ pub unsafe fn MQInstanceToFormatName(pguid: *const windows_core::GUID, lpwcsform #[inline] pub unsafe fn MQLocateBegin(lpwcscontext: P0, prestriction: Option<*const MQRESTRICTION>, pcolumns: *const MQCOLUMNSET, psort: *const MQSORTSET) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MQLocateBegin(lpwcscontext.into_param().abi(), core::mem::transmute(prestriction.unwrap_or(std::ptr::null())), pcolumns, psort, &mut result__).map(|| result__) + MQLocateBegin(lpwcscontext.param().abi(), core::mem::transmute(prestriction.unwrap_or(std::ptr::null())), pcolumns, psort, &mut result__).map(|| result__) } #[inline] pub unsafe fn MQLocateEnd(henum: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQLocateEnd(henum : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - MQLocateEnd(henum.into_param().abi()).ok() + MQLocateEnd(henum.param().abi()).ok() } #[inline] pub unsafe fn MQLocateNext(henum: P0, pcprops: *mut u32, apropvar: *mut windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQLocateNext(henum : super::super::Foundation:: HANDLE, pcprops : *mut u32, apropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); - MQLocateNext(henum.into_param().abi(), pcprops, core::mem::transmute(apropvar)).ok() + MQLocateNext(henum.param().abi(), pcprops, core::mem::transmute(apropvar)).ok() } #[inline] pub unsafe fn MQMarkMessageRejected(hqueue: P0, ulllookupid: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQMarkMessageRejected(hqueue : super::super::Foundation:: HANDLE, ulllookupid : u64) -> windows_core::HRESULT); - MQMarkMessageRejected(hqueue.into_param().abi(), ulllookupid).ok() + MQMarkMessageRejected(hqueue.param().abi(), ulllookupid).ok() } #[inline] pub unsafe fn MQMgmtAction(pcomputername: P0, pobjectname: P1, paction: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQMgmtAction(pcomputername : windows_core::PCWSTR, pobjectname : windows_core::PCWSTR, paction : windows_core::PCWSTR) -> windows_core::HRESULT); - MQMgmtAction(pcomputername.into_param().abi(), pobjectname.into_param().abi(), paction.into_param().abi()).ok() + MQMgmtAction(pcomputername.param().abi(), pobjectname.param().abi(), paction.param().abi()).ok() } #[inline] pub unsafe fn MQMgmtGetInfo(pcomputername: P0, pobjectname: P1, pmgmtprops: *mut MQMGMTPROPS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQMgmtGetInfo(pcomputername : windows_core::PCWSTR, pobjectname : windows_core::PCWSTR, pmgmtprops : *mut MQMGMTPROPS) -> windows_core::HRESULT); - MQMgmtGetInfo(pcomputername.into_param().abi(), pobjectname.into_param().abi(), pmgmtprops).ok() + MQMgmtGetInfo(pcomputername.param().abi(), pobjectname.param().abi(), pmgmtprops).ok() } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] #[inline] pub unsafe fn MQMoveMessage(hsourcequeue: isize, hdestinationqueue: isize, ulllookupid: u64, ptransaction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hsourcequeue, hdestinationqueue, ulllookupid, ptransaction.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - MQOpenQueue(lpwcsformatname.into_param().abi(), dwaccess, dwsharemode, &mut result__).map(|| result__) + MQOpenQueue(lpwcsformatname.param().abi(), dwaccess, dwsharemode, &mut result__).map(|| result__) } #[inline] pub unsafe fn MQPathNameToFormatName(lpwcspathname: P0, lpwcsformatname: windows_core::PWSTR, lpdwformatnamelength: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQPathNameToFormatName(lpwcspathname : windows_core::PCWSTR, lpwcsformatname : windows_core::PWSTR, lpdwformatnamelength : *mut u32) -> windows_core::HRESULT); - MQPathNameToFormatName(lpwcspathname.into_param().abi(), core::mem::transmute(lpwcsformatname), lpdwformatnamelength).ok() + MQPathNameToFormatName(lpwcspathname.param().abi(), core::mem::transmute(lpwcsformatname), lpdwformatnamelength).ok() } #[inline] pub unsafe fn MQPurgeQueue(hqueue: isize) -> windows_core::Result<()> { @@ -210,20 +210,20 @@ pub unsafe fn MQPurgeQueue(hqueue: isize) -> windows_core::Result<()> { #[inline] pub unsafe fn MQReceiveMessage(hsource: isize, dwtimeout: u32, dwaction: u32, pmessageprops: Option<*mut MQMSGPROPS>, lpoverlapped: Option<*mut super::IO::OVERLAPPED>, fnreceivecallback: PMQRECEIVECALLBACK, hcursor: P0, ptransaction: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hsource, dwtimeout, dwaction, core::mem::transmute(pmessageprops.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), fnreceivecallback, hcursor.into_param().abi(), ptransaction.into_param().abi()).ok() + MQReceiveMessage(hsource, dwtimeout, dwaction, core::mem::transmute(pmessageprops.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), fnreceivecallback, hcursor.param().abi(), ptransaction.param().abi()).ok() } #[cfg(all(feature = "Win32_System_DistributedTransactionCoordinator", feature = "Win32_System_IO"))] #[inline] pub unsafe fn MQReceiveMessageByLookupId(hsource: isize, ulllookupid: u64, dwlookupaction: u32, pmessageprops: Option<*mut MQMSGPROPS>, lpoverlapped: Option<*mut super::IO::OVERLAPPED>, fnreceivecallback: PMQRECEIVECALLBACK, ptransaction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hsource, ulllookupid, dwlookupaction, core::mem::transmute(pmessageprops.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), fnreceivecallback, ptransaction.into_param().abi()).ok() + MQReceiveMessageByLookupId(hsource, ulllookupid, dwlookupaction, core::mem::transmute(pmessageprops.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut())), fnreceivecallback, ptransaction.param().abi()).ok() } #[inline] pub unsafe fn MQRegisterCertificate(dwflags: u32, lpcertbuffer: *const core::ffi::c_void, dwcertbufferlength: u32) -> windows_core::Result<()> { @@ -234,28 +234,28 @@ pub unsafe fn MQRegisterCertificate(dwflags: u32, lpcertbuffer: *const core::ffi #[inline] pub unsafe fn MQSendMessage(hdestinationqueue: isize, pmessageprops: *const MQMSGPROPS, ptransaction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(hdestinationqueue, pmessageprops, ptransaction.into_param().abi()).ok() + MQSendMessage(hdestinationqueue, pmessageprops, ptransaction.param().abi()).ok() } #[inline] pub unsafe fn MQSetQueueProperties(lpwcsformatname: P0, pqueueprops: *mut MQQUEUEPROPS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mqrt.dll" "system" fn MQSetQueueProperties(lpwcsformatname : windows_core::PCWSTR, pqueueprops : *mut MQQUEUEPROPS) -> windows_core::HRESULT); - MQSetQueueProperties(lpwcsformatname.into_param().abi(), pqueueprops).ok() + MQSetQueueProperties(lpwcsformatname.param().abi(), pqueueprops).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn MQSetQueueSecurity(lpwcsformatname: P0, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()).ok() + MQSetQueueSecurity(lpwcsformatname.param().abi(), securityinformation, psecuritydescriptor.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IMSMQApplication, IMSMQApplication_Vtbl, 0xd7d6e085_dccd_11d0_aa4b_0060970debae); @@ -265,10 +265,10 @@ windows_core::imp::interface_hierarchy!(IMSMQApplication, windows_core::IUnknown impl IMSMQApplication { pub unsafe fn MachineIdOfMachineName(&self, machinename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MachineIdOfMachineName)(windows_core::Interface::as_raw(self), machinename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MachineIdOfMachineName)(windows_core::Interface::as_raw(self), machinename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -285,20 +285,20 @@ windows_core::imp::interface_hierarchy!(IMSMQApplication2, windows_core::IUnknow impl IMSMQApplication2 { pub unsafe fn MachineIdOfMachineName(&self, machinename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MachineIdOfMachineName)(windows_core::Interface::as_raw(self), machinename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MachineIdOfMachineName)(windows_core::Interface::as_raw(self), machinename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterCertificate(&self, flags: *const windows_core::VARIANT, externalcertificate: *const windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RegisterCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(externalcertificate)).ok() } pub unsafe fn MachineNameOfMachineId(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MachineNameOfMachineId)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MachineNameOfMachineId)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MSMQVersionMajor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -345,20 +345,20 @@ windows_core::imp::interface_hierarchy!(IMSMQApplication3, windows_core::IUnknow impl IMSMQApplication3 { pub unsafe fn MachineIdOfMachineName(&self, machinename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.MachineIdOfMachineName)(windows_core::Interface::as_raw(self), machinename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.MachineIdOfMachineName)(windows_core::Interface::as_raw(self), machinename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterCertificate(&self, flags: *const windows_core::VARIANT, externalcertificate: *const windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RegisterCertificate)(windows_core::Interface::as_raw(self), core::mem::transmute(flags), core::mem::transmute(externalcertificate)).ok() } pub unsafe fn MachineNameOfMachineId(&self, bstrguid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MachineNameOfMachineId)(windows_core::Interface::as_raw(self), bstrguid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MachineNameOfMachineId)(windows_core::Interface::as_raw(self), bstrguid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MSMQVersionMajor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -403,9 +403,9 @@ impl IMSMQApplication3 { } pub unsafe fn SetMachine(&self, bstrmachine: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMachine)(windows_core::Interface::as_raw(self), bstrmachine.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMachine)(windows_core::Interface::as_raw(self), bstrmachine.param().abi()).ok() } pub unsafe fn Machine(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -568,9 +568,9 @@ impl IMSMQDestination { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_IADs(&self, piads: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_IADs)(windows_core::Interface::as_raw(self), piads.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_IADs)(windows_core::Interface::as_raw(self), piads.param().abi()).ok() } pub unsafe fn ADsPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -578,9 +578,9 @@ impl IMSMQDestination { } pub unsafe fn SetADsPath(&self, bstradspath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetADsPath)(windows_core::Interface::as_raw(self), bstradspath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetADsPath)(windows_core::Interface::as_raw(self), bstradspath.param().abi()).ok() } pub unsafe fn PathName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -588,9 +588,9 @@ impl IMSMQDestination { } pub unsafe fn SetPathName(&self, bstrpathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.param().abi()).ok() } pub unsafe fn FormatName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -598,9 +598,9 @@ impl IMSMQDestination { } pub unsafe fn SetFormatName(&self, bstrformatname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Destinations(&self) -> windows_core::Result { @@ -610,9 +610,9 @@ impl IMSMQDestination { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Destinations(&self, pdestinations: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Destinations)(windows_core::Interface::as_raw(self), pdestinations.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Destinations)(windows_core::Interface::as_raw(self), pdestinations.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Properties(&self) -> windows_core::Result { @@ -823,9 +823,9 @@ impl IMSMQMessage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } pub unsafe fn AppSpecific(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -848,9 +848,9 @@ impl IMSMQMessage { } pub unsafe fn SetBody(&self, varbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo(&self) -> windows_core::Result { @@ -860,9 +860,9 @@ impl IMSMQMessage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -874,9 +874,9 @@ impl IMSMQMessage { } pub unsafe fn SetCorrelationId(&self, varmsgid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.param().abi()).ok() } pub unsafe fn Ack(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -891,9 +891,9 @@ impl IMSMQMessage { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -942,9 +942,9 @@ impl IMSMQMessage { } pub unsafe fn SetSenderCertificate(&self, varsendercert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.param().abi()).ok() } pub unsafe fn SenderId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -960,9 +960,9 @@ impl IMSMQMessage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.into_param().abi(), core::mem::transmute(transaction)).ok() + (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.param().abi(), core::mem::transmute(transaction)).ok() } pub unsafe fn AttachCurrentSecurityContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AttachCurrentSecurityContext)(windows_core::Interface::as_raw(self)).ok() @@ -1104,9 +1104,9 @@ impl IMSMQMessage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo_v1(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } pub unsafe fn AppSpecific(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1129,9 +1129,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetBody(&self, varbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo_v1(&self) -> windows_core::Result { @@ -1141,9 +1141,9 @@ impl IMSMQMessage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo_v1(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1155,9 +1155,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetCorrelationId(&self, varmsgid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.param().abi()).ok() } pub unsafe fn Ack(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1172,9 +1172,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1223,9 +1223,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetSenderCertificate(&self, varsendercert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.param().abi()).ok() } pub unsafe fn SenderId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1241,9 +1241,9 @@ impl IMSMQMessage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.into_param().abi(), core::mem::transmute(transaction)).ok() + (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.param().abi(), core::mem::transmute(transaction)).ok() } pub unsafe fn AttachCurrentSecurityContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AttachCurrentSecurityContext)(windows_core::Interface::as_raw(self)).ok() @@ -1258,9 +1258,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetExtension(&self, varextension: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtension)(windows_core::Interface::as_raw(self), varextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtension)(windows_core::Interface::as_raw(self), varextension.param().abi()).ok() } pub unsafe fn ConnectorTypeGuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1268,9 +1268,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetConnectorTypeGuid(&self, bstrguidconnectortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConnectorTypeGuid)(windows_core::Interface::as_raw(self), bstrguidconnectortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConnectorTypeGuid)(windows_core::Interface::as_raw(self), bstrguidconnectortype.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TransactionStatusQueueInfo(&self) -> windows_core::Result { @@ -1283,9 +1283,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetDestinationSymmetricKey(&self, vardestsymmkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDestinationSymmetricKey)(windows_core::Interface::as_raw(self), vardestsymmkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDestinationSymmetricKey)(windows_core::Interface::as_raw(self), vardestsymmkey.param().abi()).ok() } pub unsafe fn Signature(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1293,9 +1293,9 @@ impl IMSMQMessage2 { } pub unsafe fn SetSignature(&self, varsignature: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), varsignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), varsignature.param().abi()).ok() } pub unsafe fn AuthenticationProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1310,15 +1310,15 @@ impl IMSMQMessage2 { } pub unsafe fn SetAuthenticationProviderName(&self, bstrauthprovname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthenticationProviderName)(windows_core::Interface::as_raw(self), bstrauthprovname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthenticationProviderName)(windows_core::Interface::as_raw(self), bstrauthprovname.param().abi()).ok() } pub unsafe fn SetSenderId(&self, varsenderid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderId)(windows_core::Interface::as_raw(self), varsenderid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderId)(windows_core::Interface::as_raw(self), varsenderid.param().abi()).ok() } pub unsafe fn MsgClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1352,9 +1352,9 @@ impl IMSMQMessage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo(&self) -> windows_core::Result { @@ -1364,9 +1364,9 @@ impl IMSMQMessage2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } pub unsafe fn ReceivedAuthenticationLevel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1553,9 +1553,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo_v1(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } pub unsafe fn AppSpecific(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1578,9 +1578,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetBody(&self, varbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo_v1(&self) -> windows_core::Result { @@ -1590,9 +1590,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo_v1(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1604,9 +1604,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetCorrelationId(&self, varmsgid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.param().abi()).ok() } pub unsafe fn Ack(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1621,9 +1621,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1672,9 +1672,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetSenderCertificate(&self, varsendercert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.param().abi()).ok() } pub unsafe fn SenderId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1690,9 +1690,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.into_param().abi(), core::mem::transmute(transaction)).ok() + (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.param().abi(), core::mem::transmute(transaction)).ok() } pub unsafe fn AttachCurrentSecurityContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AttachCurrentSecurityContext)(windows_core::Interface::as_raw(self)).ok() @@ -1707,9 +1707,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetExtension(&self, varextension: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtension)(windows_core::Interface::as_raw(self), varextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtension)(windows_core::Interface::as_raw(self), varextension.param().abi()).ok() } pub unsafe fn ConnectorTypeGuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1717,9 +1717,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetConnectorTypeGuid(&self, bstrguidconnectortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConnectorTypeGuid)(windows_core::Interface::as_raw(self), bstrguidconnectortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConnectorTypeGuid)(windows_core::Interface::as_raw(self), bstrguidconnectortype.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TransactionStatusQueueInfo(&self) -> windows_core::Result { @@ -1732,9 +1732,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetDestinationSymmetricKey(&self, vardestsymmkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDestinationSymmetricKey)(windows_core::Interface::as_raw(self), vardestsymmkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDestinationSymmetricKey)(windows_core::Interface::as_raw(self), vardestsymmkey.param().abi()).ok() } pub unsafe fn Signature(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1742,9 +1742,9 @@ impl IMSMQMessage3 { } pub unsafe fn SetSignature(&self, varsignature: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), varsignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), varsignature.param().abi()).ok() } pub unsafe fn AuthenticationProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1759,15 +1759,15 @@ impl IMSMQMessage3 { } pub unsafe fn SetAuthenticationProviderName(&self, bstrauthprovname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthenticationProviderName)(windows_core::Interface::as_raw(self), bstrauthprovname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthenticationProviderName)(windows_core::Interface::as_raw(self), bstrauthprovname.param().abi()).ok() } pub unsafe fn SetSenderId(&self, varsenderid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderId)(windows_core::Interface::as_raw(self), varsenderid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderId)(windows_core::Interface::as_raw(self), varsenderid.param().abi()).ok() } pub unsafe fn MsgClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1801,9 +1801,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo_v2(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo_v2(&self) -> windows_core::Result { @@ -1813,9 +1813,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo_v2(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } pub unsafe fn ReceivedAuthenticationLevel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1829,9 +1829,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo(&self) -> windows_core::Result { @@ -1841,9 +1841,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ResponseDestination(&self) -> windows_core::Result { @@ -1853,9 +1853,9 @@ impl IMSMQMessage3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseDestination(&self, pdestresponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseDestination)(windows_core::Interface::as_raw(self), pdestresponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseDestination)(windows_core::Interface::as_raw(self), pdestresponse.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Destination(&self) -> windows_core::Result { @@ -1891,15 +1891,15 @@ impl IMSMQMessage3 { } pub unsafe fn SetSoapHeader(&self, bstrsoapheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSoapHeader)(windows_core::Interface::as_raw(self), bstrsoapheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSoapHeader)(windows_core::Interface::as_raw(self), bstrsoapheader.param().abi()).ok() } pub unsafe fn SetSoapBody(&self, bstrsoapbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSoapBody)(windows_core::Interface::as_raw(self), bstrsoapbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSoapBody)(windows_core::Interface::as_raw(self), bstrsoapbody.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2119,9 +2119,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo_v1(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } pub unsafe fn AppSpecific(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2144,9 +2144,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetBody(&self, varbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), varbody.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo_v1(&self) -> windows_core::Result { @@ -2156,9 +2156,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo_v1(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v1)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } pub unsafe fn Id(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2170,9 +2170,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetCorrelationId(&self, varmsgid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCorrelationId)(windows_core::Interface::as_raw(self), varmsgid.param().abi()).ok() } pub unsafe fn Ack(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2187,9 +2187,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2238,9 +2238,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetSenderCertificate(&self, varsendercert: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderCertificate)(windows_core::Interface::as_raw(self), varsendercert.param().abi()).ok() } pub unsafe fn SenderId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2256,9 +2256,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Send(&self, destinationqueue: P0, transaction: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.into_param().abi(), core::mem::transmute(transaction)).ok() + (windows_core::Interface::vtable(self).Send)(windows_core::Interface::as_raw(self), destinationqueue.param().abi(), core::mem::transmute(transaction)).ok() } pub unsafe fn AttachCurrentSecurityContext(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AttachCurrentSecurityContext)(windows_core::Interface::as_raw(self)).ok() @@ -2273,9 +2273,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetExtension(&self, varextension: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtension)(windows_core::Interface::as_raw(self), varextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtension)(windows_core::Interface::as_raw(self), varextension.param().abi()).ok() } pub unsafe fn ConnectorTypeGuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2283,9 +2283,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetConnectorTypeGuid(&self, bstrguidconnectortype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConnectorTypeGuid)(windows_core::Interface::as_raw(self), bstrguidconnectortype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetConnectorTypeGuid)(windows_core::Interface::as_raw(self), bstrguidconnectortype.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TransactionStatusQueueInfo(&self) -> windows_core::Result { @@ -2298,9 +2298,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetDestinationSymmetricKey(&self, vardestsymmkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDestinationSymmetricKey)(windows_core::Interface::as_raw(self), vardestsymmkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDestinationSymmetricKey)(windows_core::Interface::as_raw(self), vardestsymmkey.param().abi()).ok() } pub unsafe fn Signature(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2308,9 +2308,9 @@ impl IMSMQMessage4 { } pub unsafe fn SetSignature(&self, varsignature: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), varsignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSignature)(windows_core::Interface::as_raw(self), varsignature.param().abi()).ok() } pub unsafe fn AuthenticationProviderType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2325,15 +2325,15 @@ impl IMSMQMessage4 { } pub unsafe fn SetAuthenticationProviderName(&self, bstrauthprovname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthenticationProviderName)(windows_core::Interface::as_raw(self), bstrauthprovname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthenticationProviderName)(windows_core::Interface::as_raw(self), bstrauthprovname.param().abi()).ok() } pub unsafe fn SetSenderId(&self, varsenderid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSenderId)(windows_core::Interface::as_raw(self), varsenderid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSenderId)(windows_core::Interface::as_raw(self), varsenderid.param().abi()).ok() } pub unsafe fn MsgClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2367,9 +2367,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo_v2(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo_v2(&self) -> windows_core::Result { @@ -2379,9 +2379,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo_v2(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo_v2)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } pub unsafe fn ReceivedAuthenticationLevel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2395,9 +2395,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseQueueInfo(&self, pqinforesponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseQueueInfo)(windows_core::Interface::as_raw(self), pqinforesponse.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AdminQueueInfo(&self) -> windows_core::Result { @@ -2407,9 +2407,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_AdminQueueInfo(&self, pqinfoadmin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_AdminQueueInfo)(windows_core::Interface::as_raw(self), pqinfoadmin.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ResponseDestination(&self) -> windows_core::Result { @@ -2419,9 +2419,9 @@ impl IMSMQMessage4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_ResponseDestination(&self, pdestresponse: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ResponseDestination)(windows_core::Interface::as_raw(self), pdestresponse.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_ResponseDestination)(windows_core::Interface::as_raw(self), pdestresponse.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Destination(&self) -> windows_core::Result { @@ -2457,15 +2457,15 @@ impl IMSMQMessage4 { } pub unsafe fn SetSoapHeader(&self, bstrsoapheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSoapHeader)(windows_core::Interface::as_raw(self), bstrsoapheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSoapHeader)(windows_core::Interface::as_raw(self), bstrsoapheader.param().abi()).ok() } pub unsafe fn SetSoapBody(&self, bstrsoapbody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSoapBody)(windows_core::Interface::as_raw(self), bstrsoapbody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSoapBody)(windows_core::Interface::as_raw(self), bstrsoapbody.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2711,9 +2711,9 @@ impl IMSMQPrivateDestination { } pub unsafe fn SetHandle(&self, varhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHandle)(windows_core::Interface::as_raw(self), varhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHandle)(windows_core::Interface::as_raw(self), varhandle.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2736,16 +2736,16 @@ impl IMSMQPrivateEvent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FireArrivedEvent(&self, pq: P0, msgcursor: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireArrivedEvent)(windows_core::Interface::as_raw(self), pq.into_param().abi(), msgcursor).ok() + (windows_core::Interface::vtable(self).FireArrivedEvent)(windows_core::Interface::as_raw(self), pq.param().abi(), msgcursor).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FireArrivedErrorEvent(&self, pq: P0, hrstatus: windows_core::HRESULT, msgcursor: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireArrivedErrorEvent)(windows_core::Interface::as_raw(self), pq.into_param().abi(), hrstatus, 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")] @@ -2934,9 +2934,9 @@ impl IMSMQQueue { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnableNotification(&self, event: P0, cursor: *const windows_core::VARIANT, receivetimeout: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.into_param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() + (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3039,9 +3039,9 @@ impl IMSMQQueue2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnableNotification(&self, event: P0, cursor: *const windows_core::VARIANT, receivetimeout: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.into_param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() + (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3198,9 +3198,9 @@ impl IMSMQQueue3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnableNotification(&self, event: P0, cursor: *const windows_core::VARIANT, receivetimeout: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.into_param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() + (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3257,26 +3257,26 @@ impl IMSMQQueue3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceiveByLookupId(&self, lookupid: P0, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReceiveByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReceiveByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceiveNextByLookupId(&self, lookupid: P0, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReceiveNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReceiveNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceivePreviousByLookupId(&self, lookupid: P0, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReceivePreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReceivePreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceiveFirstByLookupId(&self, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result { @@ -3291,26 +3291,26 @@ impl IMSMQQueue3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekByLookupId(&self, lookupid: P0, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PeekByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PeekByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekNextByLookupId(&self, lookupid: P0, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PeekNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PeekNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekPreviousByLookupId(&self, lookupid: P0, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PeekPreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PeekPreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekFirstByLookupId(&self, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result { @@ -3479,9 +3479,9 @@ impl IMSMQQueue4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnableNotification(&self, event: P0, cursor: *const windows_core::VARIANT, receivetimeout: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.into_param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() + (windows_core::Interface::vtable(self).EnableNotification)(windows_core::Interface::as_raw(self), event.param().abi(), core::mem::transmute(cursor), core::mem::transmute(receivetimeout)).ok() } pub unsafe fn Reset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() @@ -3538,26 +3538,26 @@ impl IMSMQQueue4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceiveByLookupId(&self, lookupid: P0, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReceiveByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReceiveByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceiveNextByLookupId(&self, lookupid: P0, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReceiveNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReceiveNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceivePreviousByLookupId(&self, lookupid: P0, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReceivePreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReceivePreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceiveFirstByLookupId(&self, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result { @@ -3572,26 +3572,26 @@ impl IMSMQQueue4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekByLookupId(&self, lookupid: P0, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PeekByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PeekByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekNextByLookupId(&self, lookupid: P0, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PeekNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PeekNextByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekPreviousByLookupId(&self, lookupid: P0, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PeekPreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PeekPreviousByLookupId)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PeekFirstByLookupId(&self, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result { @@ -3613,10 +3613,10 @@ impl IMSMQQueue4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReceiveByLookupIdAllowPeek(&self, lookupid: P0, transaction: *const windows_core::VARIANT, wantdestinationqueue: *const windows_core::VARIANT, wantbody: *const windows_core::VARIANT, wantconnectortype: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReceiveByLookupIdAllowPeek)(windows_core::Interface::as_raw(self), lookupid.into_param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReceiveByLookupIdAllowPeek)(windows_core::Interface::as_raw(self), lookupid.param().abi(), core::mem::transmute(transaction), core::mem::transmute(wantdestinationqueue), core::mem::transmute(wantbody), core::mem::transmute(wantconnectortype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3745,9 +3745,9 @@ impl IMSMQQueueInfo { } pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.param().abi()).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3755,9 +3755,9 @@ impl IMSMQQueueInfo { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn PathName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3765,9 +3765,9 @@ impl IMSMQQueueInfo { } pub unsafe fn SetPathName(&self, bstrpathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.param().abi()).ok() } pub unsafe fn FormatName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3775,9 +3775,9 @@ impl IMSMQQueueInfo { } pub unsafe fn SetFormatName(&self, bstrformatname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.param().abi()).ok() } pub unsafe fn IsTransactional(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3909,9 +3909,9 @@ impl IMSMQQueueInfo2 { } pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.param().abi()).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3919,9 +3919,9 @@ impl IMSMQQueueInfo2 { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn PathName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3929,9 +3929,9 @@ impl IMSMQQueueInfo2 { } pub unsafe fn SetPathName(&self, bstrpathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.param().abi()).ok() } pub unsafe fn FormatName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3939,9 +3939,9 @@ impl IMSMQQueueInfo2 { } pub unsafe fn SetFormatName(&self, bstrformatname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.param().abi()).ok() } pub unsafe fn IsTransactional(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4033,9 +4033,9 @@ impl IMSMQQueueInfo2 { } pub unsafe fn SetSecurity(&self, varsecurity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), varsecurity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), varsecurity.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4099,9 +4099,9 @@ impl IMSMQQueueInfo3 { } pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.param().abi()).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4109,9 +4109,9 @@ impl IMSMQQueueInfo3 { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn PathName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4119,9 +4119,9 @@ impl IMSMQQueueInfo3 { } pub unsafe fn SetPathName(&self, bstrpathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.param().abi()).ok() } pub unsafe fn FormatName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4129,9 +4129,9 @@ impl IMSMQQueueInfo3 { } pub unsafe fn SetFormatName(&self, bstrformatname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.param().abi()).ok() } pub unsafe fn IsTransactional(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4223,9 +4223,9 @@ impl IMSMQQueueInfo3 { } pub unsafe fn SetSecurity(&self, varsecurity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), varsecurity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), varsecurity.param().abi()).ok() } pub unsafe fn IsTransactional2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4241,9 +4241,9 @@ impl IMSMQQueueInfo3 { } pub unsafe fn SetMulticastAddress(&self, bstrmulticastaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMulticastAddress)(windows_core::Interface::as_raw(self), bstrmulticastaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMulticastAddress)(windows_core::Interface::as_raw(self), bstrmulticastaddress.param().abi()).ok() } pub unsafe fn ADsPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4316,9 +4316,9 @@ impl IMSMQQueueInfo4 { } pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceTypeGuid)(windows_core::Interface::as_raw(self), bstrguidservicetype.param().abi()).ok() } pub unsafe fn Label(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4326,9 +4326,9 @@ impl IMSMQQueueInfo4 { } pub unsafe fn SetLabel(&self, bstrlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLabel)(windows_core::Interface::as_raw(self), bstrlabel.param().abi()).ok() } pub unsafe fn PathName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4336,9 +4336,9 @@ impl IMSMQQueueInfo4 { } pub unsafe fn SetPathName(&self, bstrpathname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPathName)(windows_core::Interface::as_raw(self), bstrpathname.param().abi()).ok() } pub unsafe fn FormatName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4346,9 +4346,9 @@ impl IMSMQQueueInfo4 { } pub unsafe fn SetFormatName(&self, bstrformatname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormatName)(windows_core::Interface::as_raw(self), bstrformatname.param().abi()).ok() } pub unsafe fn IsTransactional(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4440,9 +4440,9 @@ impl IMSMQQueueInfo4 { } pub unsafe fn SetSecurity(&self, varsecurity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), varsecurity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), varsecurity.param().abi()).ok() } pub unsafe fn IsTransactional2(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4458,9 +4458,9 @@ impl IMSMQQueueInfo4 { } pub unsafe fn SetMulticastAddress(&self, bstrmulticastaddress: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMulticastAddress)(windows_core::Interface::as_raw(self), bstrmulticastaddress.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMulticastAddress)(windows_core::Interface::as_raw(self), bstrmulticastaddress.param().abi()).ok() } pub unsafe fn ADsPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4749,9 +4749,9 @@ impl IMSMQTransaction2 { } pub unsafe fn InitNew(&self, vartransaction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitNew)(windows_core::Interface::as_raw(self), vartransaction.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitNew)(windows_core::Interface::as_raw(self), vartransaction.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Properties(&self) -> windows_core::Result { @@ -4787,9 +4787,9 @@ impl IMSMQTransaction3 { } pub unsafe fn InitNew(&self, vartransaction: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitNew)(windows_core::Interface::as_raw(self), vartransaction.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitNew)(windows_core::Interface::as_raw(self), vartransaction.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Properties(&self) -> windows_core::Result { 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 f4110538bf..df96d9ad7e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs @@ -39,9 +39,9 @@ impl Column { } pub unsafe fn SetHidden(&self, hidden: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), hidden.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), hidden.param().abi()).ok() } pub unsafe fn SetAsSortColumn(&self, sortorder: _ColumnSortOrder) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAsSortColumn)(windows_core::Interface::as_raw(self), sortorder).ok() @@ -109,10 +109,10 @@ impl ContextMenu { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, indexorpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), indexorpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), indexorpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -141,15 +141,15 @@ impl Document { } pub unsafe fn SaveAs(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn Close(&self, savechanges: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), savechanges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), savechanges.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Views(&self) -> windows_core::Result { @@ -172,9 +172,9 @@ impl Document { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Location(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -283,15 +283,15 @@ impl Extension { } pub unsafe fn EnableAllExtensions(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableAllExtensions)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableAllExtensions)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } pub unsafe fn Enable(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -431,18 +431,18 @@ windows_core::imp::interface_hierarchy!(IComponent, windows_core::IUnknown); impl IComponent { pub unsafe fn Initialize(&self, lpconsole: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lpconsole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lpconsole.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Notify(&self, lpdataobject: P0, event: MMC_NOTIFY_TYPE, arg: P1, param3: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi(), event, arg.into_param().abi(), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), event, arg.param().abi(), param3.param().abi()).ok() } pub unsafe fn Destroy(&self, cookie: isize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self), cookie).ok() @@ -461,10 +461,10 @@ impl IComponent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareObjects(&self, lpdataobjecta: P0, lpdataobjectb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.into_param().abi(), lpdataobjectb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.param().abi(), lpdataobjectb.param().abi()).ok() } } #[repr(C)] @@ -492,18 +492,18 @@ windows_core::imp::interface_hierarchy!(IComponent2, windows_core::IUnknown, ICo impl IComponent2 { pub unsafe fn Initialize(&self, lpconsole: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), lpconsole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), lpconsole.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Notify(&self, lpdataobject: P0, event: MMC_NOTIFY_TYPE, arg: P1, param3: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi(), event, arg.into_param().abi(), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), event, arg.param().abi(), param3.param().abi()).ok() } pub unsafe fn Destroy(&self, cookie: isize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Destroy)(windows_core::Interface::as_raw(self), cookie).ok() @@ -522,10 +522,10 @@ impl IComponent2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareObjects(&self, lpdataobjecta: P0, lpdataobjectb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.into_param().abi(), lpdataobjectb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.param().abi(), lpdataobjectb.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDispatch(&self, cookie: isize, r#type: DATA_OBJECT_TYPES) -> windows_core::Result { @@ -554,9 +554,9 @@ windows_core::imp::interface_hierarchy!(IComponentData, windows_core::IUnknown); impl IComponentData { pub unsafe fn Initialize(&self, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), punknown.param().abi()).ok() } pub unsafe fn CreateComponent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -565,11 +565,11 @@ impl IComponentData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Notify(&self, lpdataobject: P0, event: MMC_NOTIFY_TYPE, arg: P1, param3: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi(), event, arg.into_param().abi(), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), event, arg.param().abi(), param3.param().abi()).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -585,10 +585,10 @@ impl IComponentData { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareObjects(&self, lpdataobjecta: P0, lpdataobjectb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.into_param().abi(), lpdataobjectb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.param().abi(), lpdataobjectb.param().abi()).ok() } } #[repr(C)] @@ -616,9 +616,9 @@ windows_core::imp::interface_hierarchy!(IComponentData2, windows_core::IUnknown, impl IComponentData2 { pub unsafe fn Initialize(&self, punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), punknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), punknown.param().abi()).ok() } pub unsafe fn CreateComponent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -627,11 +627,11 @@ impl IComponentData2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Notify(&self, lpdataobject: P0, event: MMC_NOTIFY_TYPE, arg: P1, param3: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi(), event, arg.into_param().abi(), param3.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), event, arg.param().abi(), param3.param().abi()).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -647,10 +647,10 @@ impl IComponentData2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareObjects(&self, lpdataobjecta: P0, lpdataobjectb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.into_param().abi(), lpdataobjectb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CompareObjects)(windows_core::Interface::as_raw(self), lpdataobjecta.param().abi(), lpdataobjectb.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryDispatch(&self, cookie: isize, r#type: DATA_OBJECT_TYPES) -> windows_core::Result { @@ -671,15 +671,15 @@ windows_core::imp::interface_hierarchy!(IConsole, windows_core::IUnknown); impl IConsole { pub unsafe fn SetHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn SetToolbar(&self, ptoolbar: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetToolbar)(windows_core::Interface::as_raw(self), ptoolbar.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetToolbar)(windows_core::Interface::as_raw(self), ptoolbar.param().abi()).ok() } pub unsafe fn QueryResultView(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -696,18 +696,18 @@ impl IConsole { #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateAllViews(&self, lpdataobject: P0, data: P1, hint: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi(), data.into_param().abi(), hint).ok() + (windows_core::Interface::vtable(self).UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), data.param().abi(), hint).ok() } pub unsafe fn MessageBox(&self, lpsztext: P0, lpsztitle: P1, fustyle: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MessageBox)(windows_core::Interface::as_raw(self), lpsztext.into_param().abi(), lpsztitle.into_param().abi(), 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__ = std::mem::zeroed(); @@ -747,15 +747,15 @@ windows_core::imp::interface_hierarchy!(IConsole2, windows_core::IUnknown, ICons impl IConsole2 { pub unsafe fn SetHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn SetToolbar(&self, ptoolbar: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetToolbar)(windows_core::Interface::as_raw(self), ptoolbar.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetToolbar)(windows_core::Interface::as_raw(self), ptoolbar.param().abi()).ok() } pub unsafe fn QueryResultView(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -772,18 +772,18 @@ impl IConsole2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateAllViews(&self, lpdataobject: P0, data: P1, hint: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi(), data.into_param().abi(), hint).ok() + (windows_core::Interface::vtable(self).base__.UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), data.param().abi(), hint).ok() } pub unsafe fn MessageBox(&self, lpsztext: P0, lpsztitle: P1, fustyle: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MessageBox)(windows_core::Interface::as_raw(self), lpsztext.into_param().abi(), lpsztitle.into_param().abi(), fustyle, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -801,18 +801,18 @@ impl IConsole2 { } pub unsafe fn Expand(&self, hitem: isize, bexpand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), hitem, bexpand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), hitem, bexpand.param().abi()).ok() } pub unsafe fn IsTaskpadViewPreferred(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsTaskpadViewPreferred)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetStatusText(&self, pszstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusText)(windows_core::Interface::as_raw(self), pszstatustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatusText)(windows_core::Interface::as_raw(self), pszstatustext.param().abi()).ok() } } #[repr(C)] @@ -827,15 +827,15 @@ windows_core::imp::interface_hierarchy!(IConsole3, windows_core::IUnknown, ICons impl IConsole3 { pub unsafe fn SetHeader(&self, pheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHeader)(windows_core::Interface::as_raw(self), pheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } pub unsafe fn SetToolbar(&self, ptoolbar: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetToolbar)(windows_core::Interface::as_raw(self), ptoolbar.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetToolbar)(windows_core::Interface::as_raw(self), ptoolbar.param().abi()).ok() } pub unsafe fn QueryResultView(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -852,18 +852,18 @@ impl IConsole3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateAllViews(&self, lpdataobject: P0, data: P1, hint: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi(), data.into_param().abi(), hint).ok() + (windows_core::Interface::vtable(self).base__.base__.UpdateAllViews)(windows_core::Interface::as_raw(self), lpdataobject.param().abi(), data.param().abi(), hint).ok() } pub unsafe fn MessageBox(&self, lpsztext: P0, lpsztitle: P1, fustyle: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.MessageBox)(windows_core::Interface::as_raw(self), lpsztext.into_param().abi(), lpsztitle.into_param().abi(), fustyle, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -881,18 +881,18 @@ impl IConsole3 { } pub unsafe fn Expand(&self, hitem: isize, bexpand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Expand)(windows_core::Interface::as_raw(self), hitem, bexpand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Expand)(windows_core::Interface::as_raw(self), hitem, bexpand.param().abi()).ok() } pub unsafe fn IsTaskpadViewPreferred(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.IsTaskpadViewPreferred)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetStatusText(&self, pszstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStatusText)(windows_core::Interface::as_raw(self), pszstatustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStatusText)(windows_core::Interface::as_raw(self), pszstatustext.param().abi()).ok() } pub unsafe fn RenameScopeItem(&self, hscopeitem: isize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RenameScopeItem)(windows_core::Interface::as_raw(self), hscopeitem).ok() @@ -997,10 +997,10 @@ windows_core::imp::interface_hierarchy!(IConsolePowerSink, windows_core::IUnknow impl IConsolePowerSink { pub unsafe fn OnPowerBroadcast(&self, nevent: u32, lparam: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPowerBroadcast)(windows_core::Interface::as_raw(self), nevent, lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnPowerBroadcast)(windows_core::Interface::as_raw(self), nevent, lparam.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1017,9 +1017,9 @@ impl IConsoleVerb { } pub unsafe fn SetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVerbState)(windows_core::Interface::as_raw(self), ecmdid, nstate, bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVerbState)(windows_core::Interface::as_raw(self), ecmdid, nstate, bstate.param().abi()).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), ecmdid).ok() @@ -1073,24 +1073,24 @@ impl IContextMenuProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddPrimaryExtensionItems(&self, piextension: P0, pidataobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPrimaryExtensionItems)(windows_core::Interface::as_raw(self), piextension.into_param().abi(), pidataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPrimaryExtensionItems)(windows_core::Interface::as_raw(self), piextension.param().abi(), pidataobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddThirdPartyExtensionItems(&self, pidataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddThirdPartyExtensionItems)(windows_core::Interface::as_raw(self), pidataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddThirdPartyExtensionItems)(windows_core::Interface::as_raw(self), pidataobject.param().abi()).ok() } pub unsafe fn ShowContextMenu(&self, hwndparent: P0, xpos: i32, ypos: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowContextMenu)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), xpos, ypos, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShowContextMenu)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), xpos, ypos, &mut result__).map(|| result__) } } #[repr(C)] @@ -1112,22 +1112,22 @@ windows_core::imp::interface_hierarchy!(IControlbar, windows_core::IUnknown); impl IControlbar { pub unsafe fn Create(&self, ntype: MMC_CONTROL_TYPE, pextendcontrolbar: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), ntype, pextendcontrolbar.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Attach)(windows_core::Interface::as_raw(self), ntype, lpunknown.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self), lpunknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Detach)(windows_core::Interface::as_raw(self), lpunknown.param().abi()).ok() } } #[repr(C)] @@ -1142,9 +1142,9 @@ windows_core::imp::interface_hierarchy!(IDisplayHelp, windows_core::IUnknown); impl IDisplayHelp { pub unsafe fn ShowTopic(&self, pszhelptopic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowTopic)(windows_core::Interface::as_raw(self), pszhelptopic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowTopic)(windows_core::Interface::as_raw(self), pszhelptopic.param().abi()).ok() } } #[repr(C)] @@ -1183,17 +1183,17 @@ impl IExtendContextMenu { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddMenuItems(&self, pidataobject: P0, picallback: P1, pinsertionallowed: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMenuItems)(windows_core::Interface::as_raw(self), pidataobject.into_param().abi(), picallback.into_param().abi(), pinsertionallowed).ok() + (windows_core::Interface::vtable(self).AddMenuItems)(windows_core::Interface::as_raw(self), pidataobject.param().abi(), picallback.param().abi(), pinsertionallowed).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Command(&self, lcommandid: i32, pidataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Command)(windows_core::Interface::as_raw(self), lcommandid, pidataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Command)(windows_core::Interface::as_raw(self), lcommandid, pidataobject.param().abi()).ok() } } #[repr(C)] @@ -1213,16 +1213,16 @@ windows_core::imp::interface_hierarchy!(IExtendControlbar, windows_core::IUnknow impl IExtendControlbar { pub unsafe fn SetControlbar(&self, pcontrolbar: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetControlbar)(windows_core::Interface::as_raw(self), pcontrolbar.into_param().abi()).ok() + (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: P0, param2: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlbarNotify)(windows_core::Interface::as_raw(self), event, arg.into_param().abi(), param2.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ControlbarNotify)(windows_core::Interface::as_raw(self), event, arg.param().abi(), param2.param().abi()).ok() } } #[repr(C)] @@ -1237,17 +1237,17 @@ impl IExtendPropertySheet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePropertyPages(&self, lpprovider: P0, handle: isize, lpidataobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePropertyPages)(windows_core::Interface::as_raw(self), lpprovider.into_param().abi(), handle, lpidataobject.into_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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryPagesFor)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueryPagesFor)(windows_core::Interface::as_raw(self), lpdataobject.param().abi()).ok() } } #[repr(C)] @@ -1268,24 +1268,24 @@ impl IExtendPropertySheet2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePropertyPages(&self, lpprovider: P0, handle: isize, lpidataobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreatePropertyPages)(windows_core::Interface::as_raw(self), lpprovider.into_param().abi(), handle, lpidataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryPagesFor)(windows_core::Interface::as_raw(self), lpdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.QueryPagesFor)(windows_core::Interface::as_raw(self), lpdataobject.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn GetWatermarks(&self, lpidataobject: P0, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetWatermarks)(windows_core::Interface::as_raw(self), lpidataobject.into_param().abi(), lphwatermark, lphheader, lphpalette, bstretch).ok() + (windows_core::Interface::vtable(self).GetWatermarks)(windows_core::Interface::as_raw(self), lpidataobject.param().abi(), lphwatermark, lphheader, lphpalette, bstretch).ok() } } #[repr(C)] @@ -1302,46 +1302,46 @@ impl IExtendTaskPad { #[cfg(feature = "Win32_System_Com")] pub unsafe fn TaskNotify(&self, pdo: P0, arg: *const windows_core::VARIANT, param2: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TaskNotify)(windows_core::Interface::as_raw(self), pdo.into_param().abi(), core::mem::transmute(arg), core::mem::transmute(param2)).ok() + (windows_core::Interface::vtable(self).TaskNotify)(windows_core::Interface::as_raw(self), pdo.param().abi(), core::mem::transmute(arg), core::mem::transmute(param2)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumTasks(&self, pdo: P0, sztaskgroup: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumTasks)(windows_core::Interface::as_raw(self), pdo.into_param().abi(), sztaskgroup.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumTasks)(windows_core::Interface::as_raw(self), pdo.param().abi(), sztaskgroup.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetTitle(&self, pszgroup: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), pszgroup.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), pszgroup.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetDescriptiveText(&self, pszgroup: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDescriptiveText)(windows_core::Interface::as_raw(self), pszgroup.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDescriptiveText)(windows_core::Interface::as_raw(self), pszgroup.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetBackground(&self, pszgroup: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBackground)(windows_core::Interface::as_raw(self), pszgroup.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBackground)(windows_core::Interface::as_raw(self), pszgroup.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetListPadInfo(&self, pszgroup: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetListPadInfo)(windows_core::Interface::as_raw(self), pszgroup.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetListPadInfo)(windows_core::Interface::as_raw(self), pszgroup.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1366,10 +1366,10 @@ impl IExtendView { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetViews(&self, pdataobject: P0, pviewextensioncallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetViews)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), pviewextensioncallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetViews)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), pviewextensioncallback.param().abi()).ok() } } #[repr(C)] @@ -1385,18 +1385,18 @@ windows_core::imp::interface_hierarchy!(IHeaderCtrl, windows_core::IUnknown); impl IHeaderCtrl { pub unsafe fn InsertColumn(&self, ncol: i32, title: P0, nformat: i32, nwidth: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertColumn)(windows_core::Interface::as_raw(self), ncol, title.into_param().abi(), nformat, 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), ncol).ok() } pub unsafe fn SetColumnText(&self, ncol: i32, title: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColumnText)(windows_core::Interface::as_raw(self), ncol, title.into_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__ = std::mem::zeroed(); @@ -1425,18 +1425,18 @@ windows_core::imp::interface_hierarchy!(IHeaderCtrl2, windows_core::IUnknown, IH impl IHeaderCtrl2 { pub unsafe fn InsertColumn(&self, ncol: i32, title: P0, nformat: i32, nwidth: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InsertColumn)(windows_core::Interface::as_raw(self), ncol, title.into_param().abi(), nformat, nwidth).ok() + (windows_core::Interface::vtable(self).base__.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).base__.DeleteColumn)(windows_core::Interface::as_raw(self), ncol).ok() } pub unsafe fn SetColumnText(&self, ncol: i32, title: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetColumnText)(windows_core::Interface::as_raw(self), ncol, title.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1474,9 +1474,9 @@ impl IImageList { } pub unsafe fn ImageListSetStrip(&self, pbmapsm: *const isize, pbmaplg: *const isize, nstartloc: i32, cmask: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImageListSetStrip)(windows_core::Interface::as_raw(self), pbmapsm, pbmaplg, nstartloc, cmask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImageListSetStrip)(windows_core::Interface::as_raw(self), pbmapsm, pbmaplg, nstartloc, cmask.param().abi()).ok() } } #[repr(C)] @@ -1502,23 +1502,23 @@ windows_core::imp::interface_hierarchy!(IMenuButton, windows_core::IUnknown); impl IMenuButton { pub unsafe fn AddButton(&self, idcommand: i32, lpbuttontext: P0, lptooltiptext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddButton)(windows_core::Interface::as_raw(self), idcommand, lpbuttontext.into_param().abi(), lptooltiptext.into_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: P0, lptooltiptext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetButton)(windows_core::Interface::as_raw(self), idcommand, lpbuttontext.into_param().abi(), lptooltiptext.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, bstate.param().abi()).ok() } } #[repr(C)] @@ -1533,15 +1533,15 @@ windows_core::imp::interface_hierarchy!(IMessageView, windows_core::IUnknown); impl IMessageView { pub unsafe fn SetTitleText(&self, psztitletext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitleText)(windows_core::Interface::as_raw(self), psztitletext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitleText)(windows_core::Interface::as_raw(self), psztitletext.param().abi()).ok() } pub unsafe fn SetBodyText(&self, pszbodytext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBodyText)(windows_core::Interface::as_raw(self), pszbodytext.into_param().abi()).ok() + (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), id).ok() @@ -1564,11 +1564,11 @@ impl INodeProperties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetProperty(&self, pdataobject: P0, szpropertyname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), szpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), szpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1585,16 +1585,16 @@ impl IPropertySheetCallback { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPage(&self, hpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), hpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), hpage.param().abi()).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn RemovePage(&self, hpage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePage)(windows_core::Interface::as_raw(self), hpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemovePage)(windows_core::Interface::as_raw(self), hpage.param().abi()).ok() } } #[repr(C)] @@ -1615,27 +1615,27 @@ impl IPropertySheetProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreatePropertySheet(&self, title: P0, r#type: u8, cookie: isize, pidataobjectm: P1, dwoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePropertySheet)(windows_core::Interface::as_raw(self), title.into_param().abi(), r#type, cookie, pidataobjectm.into_param().abi(), 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: P0, lpdataobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindPropertySheet)(windows_core::Interface::as_raw(self), hitem, lpcomponent.into_param().abi(), lpdataobject.into_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: P1, hnotifywindow: P2, bscopepane: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPrimaryPages)(windows_core::Interface::as_raw(self), lpunknown.into_param().abi(), bcreatehandle.into_param().abi(), hnotifywindow.into_param().abi(), bscopepane.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPrimaryPages)(windows_core::Interface::as_raw(self), lpunknown.param().abi(), bcreatehandle.param().abi(), hnotifywindow.param().abi(), bscopepane.param().abi()).ok() } pub unsafe fn AddExtensionPages(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddExtensionPages)(windows_core::Interface::as_raw(self)).ok() @@ -1692,10 +1692,10 @@ impl IResultData { } pub unsafe fn FindItemByLParam(&self, lparam: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByLParam)(windows_core::Interface::as_raw(self), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindItemByLParam)(windows_core::Interface::as_raw(self), lparam.param().abi(), &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() @@ -1727,15 +1727,15 @@ impl IResultData { } pub unsafe fn Sort(&self, ncolumn: i32, dwsortoptions: u32, luserparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Sort)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Sort)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam.param().abi()).ok() } pub unsafe fn SetDescBarText(&self, desctext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescBarText)(windows_core::Interface::as_raw(self), desctext.into_param().abi()).ok() + (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), nitemcount, dwoptions).ok() @@ -1771,10 +1771,10 @@ impl IResultData2 { } pub unsafe fn FindItemByLParam(&self, lparam: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindItemByLParam)(windows_core::Interface::as_raw(self), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.FindItemByLParam)(windows_core::Interface::as_raw(self), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DeleteAllRsltItems(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DeleteAllRsltItems)(windows_core::Interface::as_raw(self)).ok() @@ -1806,15 +1806,15 @@ impl IResultData2 { } pub unsafe fn Sort(&self, ncolumn: i32, dwsortoptions: u32, luserparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Sort)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Sort)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam.param().abi()).ok() } pub unsafe fn SetDescBarText(&self, desctext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescBarText)(windows_core::Interface::as_raw(self), desctext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetItemCount)(windows_core::Interface::as_raw(self), nitemcount, dwoptions).ok() @@ -1833,9 +1833,9 @@ windows_core::imp::interface_hierarchy!(IResultDataCompare, windows_core::IUnkno impl IResultDataCompare { pub unsafe fn Compare(&self, luserparam: P0, cookiea: isize, cookieb: isize, pnresult: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), luserparam.into_param().abi(), cookiea, cookieb, pnresult).ok() + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), luserparam.param().abi(), cookiea, cookieb, pnresult).ok() } } #[repr(C)] @@ -1868,9 +1868,9 @@ impl IResultOwnerData { } pub unsafe fn SortItems(&self, ncolumn: i32, dwsortoptions: u32, luserparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SortItems)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SortItems)(windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam.param().abi()).ok() } } #[repr(C)] @@ -1956,15 +1956,15 @@ impl ISnapinProperties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pproperties.param().abi()).ok() } pub unsafe fn QueryPropertyNames(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryPropertyNames)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueryPropertyNames)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn PropertiesChanged(&self, pproperties: &[MMC_SNAPIN_PROPERTY]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PropertiesChanged)(windows_core::Interface::as_raw(self), pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr())).ok() @@ -1985,9 +1985,9 @@ windows_core::imp::interface_hierarchy!(ISnapinPropertiesCallback, windows_core: impl ISnapinPropertiesCallback { pub unsafe fn AddPropertyName(&self, pszpropname: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyName)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).AddPropertyName)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), dwflags).ok() } } #[repr(C)] @@ -2000,10 +2000,10 @@ windows_core::imp::interface_hierarchy!(IStringTable, windows_core::IUnknown); impl IStringTable { pub unsafe fn AddString(&self, pszadd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddString)(windows_core::Interface::as_raw(self), pszadd.into_param().abi(), &mut result__).map(|| result__) + (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), stringid, lpbuffer.len().try_into().unwrap(), core::mem::transmute(lpbuffer.as_ptr()), pcchout).ok() @@ -2020,10 +2020,10 @@ impl IStringTable { } pub unsafe fn FindString(&self, pszfind: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindString)(windows_core::Interface::as_raw(self), pszfind.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindString)(windows_core::Interface::as_raw(self), pszfind.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Enumerate(&self) -> windows_core::Result { @@ -2051,10 +2051,10 @@ impl IToolbar { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddBitmap(&self, nimages: i32, hbmp: P0, cxsize: i32, cysize: i32, crmask: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddBitmap)(windows_core::Interface::as_raw(self), nimages, hbmp.into_param().abi(), cxsize, cysize, crmask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddBitmap)(windows_core::Interface::as_raw(self), nimages, hbmp.param().abi(), cxsize, cysize, crmask.param().abi()).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), nbuttons, lpbuttons).ok() @@ -2071,9 +2071,9 @@ impl IToolbar { } pub unsafe fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, bstate.param().abi()).ok() } } #[repr(C)] @@ -2154,10 +2154,10 @@ impl Node { } pub unsafe fn get_Property(&self, propertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), propertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Bookmark(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2226,10 +2226,10 @@ impl Properties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2237,9 +2237,9 @@ impl Properties { } pub unsafe fn Remove(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2266,9 +2266,9 @@ impl Property { } pub unsafe fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2292,26 +2292,26 @@ impl ScopeNamespace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetParent(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParent)(windows_core::Interface::as_raw(self), node.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetParent)(windows_core::Interface::as_raw(self), node.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetChild(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChild)(windows_core::Interface::as_raw(self), node.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetChild)(windows_core::Interface::as_raw(self), node.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNext(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), node.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNext)(windows_core::Interface::as_raw(self), node.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRoot(&self) -> windows_core::Result { @@ -2321,9 +2321,9 @@ impl ScopeNamespace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Expand(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2385,9 +2385,9 @@ impl SnapIn { } pub unsafe fn EnableAllExtensions(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableAllExtensions)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableAllExtensions)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2430,19 +2430,19 @@ impl SnapIns { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, snapinnameorclsid: P0, parentsnapin: P1, properties: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), snapinnameorclsid.into_param().abi(), parentsnapin.into_param().abi(), properties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), snapinnameorclsid.param().abi(), parentsnapin.param().abi(), properties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Remove(&self, snapin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), snapin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), snapin.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2478,9 +2478,9 @@ impl View { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetActiveScopeNode(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveScopeNode)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActiveScopeNode)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Selection(&self) -> windows_core::Result { @@ -2495,10 +2495,10 @@ impl View { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SnapinScopeObject(&self, scopenode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SnapinScopeObject)(windows_core::Interface::as_raw(self), scopenode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SnapinScopeObject)(windows_core::Interface::as_raw(self), scopenode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SnapinSelectionObject(&self) -> windows_core::Result { @@ -2508,10 +2508,10 @@ impl View { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Is(&self, view: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Is)(windows_core::Interface::as_raw(self), view.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Is)(windows_core::Interface::as_raw(self), view.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Document(&self) -> windows_core::Result { @@ -2524,72 +2524,72 @@ impl View { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Select(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Deselect(&self, node: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Deselect)(windows_core::Interface::as_raw(self), node.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Deselect)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsSelected(&self, node: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSelected)(windows_core::Interface::as_raw(self), node.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSelected)(windows_core::Interface::as_raw(self), node.param().abi(), &mut result__).map(|| result__) } pub unsafe fn DisplayScopeNodePropertySheet(&self, scopenode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayScopeNodePropertySheet)(windows_core::Interface::as_raw(self), scopenode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayScopeNodePropertySheet)(windows_core::Interface::as_raw(self), scopenode.param().abi()).ok() } pub unsafe fn DisplaySelectionPropertySheet(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisplaySelectionPropertySheet)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn CopyScopeNode(&self, scopenode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyScopeNode)(windows_core::Interface::as_raw(self), scopenode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyScopeNode)(windows_core::Interface::as_raw(self), scopenode.param().abi()).ok() } pub unsafe fn CopySelection(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CopySelection)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn DeleteScopeNode(&self, scopenode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteScopeNode)(windows_core::Interface::as_raw(self), scopenode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteScopeNode)(windows_core::Interface::as_raw(self), scopenode.param().abi()).ok() } pub unsafe fn DeleteSelection(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteSelection)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn RenameScopeNode(&self, newname: P0, scopenode: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameScopeNode)(windows_core::Interface::as_raw(self), newname.into_param().abi(), scopenode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenameScopeNode)(windows_core::Interface::as_raw(self), newname.param().abi(), scopenode.param().abi()).ok() } pub unsafe fn RenameSelectedItem(&self, newname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameSelectedItem)(windows_core::Interface::as_raw(self), newname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenameSelectedItem)(windows_core::Interface::as_raw(self), newname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_ScopeNodeContextMenu(&self, scopenode: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_ScopeNodeContextMenu)(windows_core::Interface::as_raw(self), scopenode.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_ScopeNodeContextMenu)(windows_core::Interface::as_raw(self), scopenode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectionContextMenu(&self) -> windows_core::Result { @@ -2598,34 +2598,34 @@ impl View { } pub unsafe fn RefreshScopeNode(&self, scopenode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RefreshScopeNode)(windows_core::Interface::as_raw(self), scopenode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RefreshScopeNode)(windows_core::Interface::as_raw(self), scopenode.param().abi()).ok() } pub unsafe fn RefreshSelection(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RefreshSelection)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ExecuteSelectionMenuItem(&self, menuitempath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteSelectionMenuItem)(windows_core::Interface::as_raw(self), menuitempath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecuteSelectionMenuItem)(windows_core::Interface::as_raw(self), menuitempath.param().abi()).ok() } pub unsafe fn ExecuteScopeNodeMenuItem(&self, menuitempath: P0, scopenode: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteScopeNodeMenuItem)(windows_core::Interface::as_raw(self), menuitempath.into_param().abi(), scopenode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecuteScopeNodeMenuItem)(windows_core::Interface::as_raw(self), menuitempath.param().abi(), scopenode.param().abi()).ok() } pub unsafe fn ExecuteShellCommand(&self, command: P0, directory: P1, parameters: P2, windowstate: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteShellCommand)(windows_core::Interface::as_raw(self), command.into_param().abi(), directory.into_param().abi(), parameters.into_param().abi(), windowstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecuteShellCommand)(windows_core::Interface::as_raw(self), command.param().abi(), directory.param().abi(), parameters.param().abi(), windowstate.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Frame(&self) -> windows_core::Result { @@ -2641,9 +2641,9 @@ impl View { } pub unsafe fn SetScopeTreeVisible(&self, visible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScopeTreeVisible)(windows_core::Interface::as_raw(self), visible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetScopeTreeVisible)(windows_core::Interface::as_raw(self), visible.param().abi()).ok() } pub unsafe fn Back(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Back)(windows_core::Interface::as_raw(self)).ok() @@ -2653,9 +2653,9 @@ impl View { } pub unsafe fn SetStatusBarText(&self, statusbartext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusBarText)(windows_core::Interface::as_raw(self), statusbartext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatusBarText)(windows_core::Interface::as_raw(self), statusbartext.param().abi()).ok() } pub unsafe fn Memento(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2663,9 +2663,9 @@ impl View { } pub unsafe fn ViewMemento(&self, memento: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ViewMemento)(windows_core::Interface::as_raw(self), memento.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ViewMemento)(windows_core::Interface::as_raw(self), memento.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Columns(&self) -> windows_core::Result { @@ -2675,16 +2675,16 @@ impl View { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_CellContents(&self, node: P0, column: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_CellContents)(windows_core::Interface::as_raw(self), node.into_param().abi(), column, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_CellContents)(windows_core::Interface::as_raw(self), node.param().abi(), column, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExportList(&self, file: P0, exportoptions: _ExportListOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ExportList)(windows_core::Interface::as_raw(self), file.into_param().abi(), exportoptions).ok() + (windows_core::Interface::vtable(self).ExportList)(windows_core::Interface::as_raw(self), file.param().abi(), exportoptions).ok() } pub unsafe fn ListViewMode(&self) -> windows_core::Result<_ListViewMode> { let mut result__ = std::mem::zeroed(); @@ -2815,9 +2815,9 @@ impl Views { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, node: P0, viewoptions: _ViewOptions) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), node.into_param().abi(), 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__ = std::mem::zeroed(); @@ -2848,77 +2848,77 @@ impl _AppEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnQuit(&self, application: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam<_Application>, + P0: windows_core::Param<_Application>, { - (windows_core::Interface::vtable(self).OnQuit)(windows_core::Interface::as_raw(self), application.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnQuit)(windows_core::Interface::as_raw(self), application.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnDocumentOpen(&self, document: P0, new: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDocumentOpen)(windows_core::Interface::as_raw(self), document.into_param().abi(), new.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDocumentOpen)(windows_core::Interface::as_raw(self), document.param().abi(), new.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnDocumentClose(&self, document: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDocumentClose)(windows_core::Interface::as_raw(self), document.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDocumentClose)(windows_core::Interface::as_raw(self), document.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSnapInAdded(&self, document: P0, snapin: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSnapInAdded)(windows_core::Interface::as_raw(self), document.into_param().abi(), snapin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSnapInAdded)(windows_core::Interface::as_raw(self), document.param().abi(), snapin.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSnapInRemoved(&self, document: P0, snapin: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSnapInRemoved)(windows_core::Interface::as_raw(self), document.into_param().abi(), snapin.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSnapInRemoved)(windows_core::Interface::as_raw(self), document.param().abi(), snapin.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnNewView(&self, view: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNewView)(windows_core::Interface::as_raw(self), view.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnNewView)(windows_core::Interface::as_raw(self), view.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnViewClose(&self, view: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewClose)(windows_core::Interface::as_raw(self), view.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnViewClose)(windows_core::Interface::as_raw(self), view.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnViewChange(&self, view: P0, newownernode: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewChange)(windows_core::Interface::as_raw(self), view.into_param().abi(), newownernode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnViewChange)(windows_core::Interface::as_raw(self), view.param().abi(), newownernode.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSelectionChange(&self, view: P0, newnodes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSelectionChange)(windows_core::Interface::as_raw(self), view.into_param().abi(), newnodes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSelectionChange)(windows_core::Interface::as_raw(self), view.param().abi(), newnodes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnContextMenuExecuted(&self, menuitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnContextMenuExecuted)(windows_core::Interface::as_raw(self), menuitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnContextMenuExecuted)(windows_core::Interface::as_raw(self), menuitem.param().abi()).ok() } pub unsafe fn OnToolbarButtonClicked(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnToolbarButtonClicked)(windows_core::Interface::as_raw(self)).ok() @@ -2926,9 +2926,9 @@ impl _AppEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnListUpdated(&self, view: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnListUpdated)(windows_core::Interface::as_raw(self), view.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnListUpdated)(windows_core::Interface::as_raw(self), view.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3000,9 +3000,9 @@ impl _Application { } pub unsafe fn Load(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Frame(&self) -> windows_core::Result { @@ -3025,9 +3025,9 @@ impl _Application { } pub unsafe fn SetUserControl(&self, usercontrol: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserControl)(windows_core::Interface::as_raw(self), usercontrol.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserControl)(windows_core::Interface::as_raw(self), usercontrol.param().abi()).ok() } pub unsafe fn VersionMajor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3070,9 +3070,9 @@ impl _EventConnector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConnectTo(&self, application: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam<_Application>, + P0: windows_core::Param<_Application>, { - (windows_core::Interface::vtable(self).ConnectTo)(windows_core::Interface::as_raw(self), application.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectTo)(windows_core::Interface::as_raw(self), application.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() 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 c57092da5a..aa85f8cace 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs @@ -33,31 +33,31 @@ pub unsafe fn CreateOleAdviseHolder() -> windows_core::Result #[inline] pub unsafe fn CreateStdDispatch(punkouter: P0, pvthis: *mut core::ffi::c_void, ptinfo: P1, ppunkstddisp: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn CreateStdDispatch(punkouter : * mut core::ffi::c_void, pvthis : *mut core::ffi::c_void, ptinfo : * mut core::ffi::c_void, ppunkstddisp : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - CreateStdDispatch(punkouter.into_param().abi(), pvthis, ptinfo.into_param().abi(), core::mem::transmute(ppunkstddisp)).ok() + CreateStdDispatch(punkouter.param().abi(), pvthis, ptinfo.param().abi(), core::mem::transmute(ppunkstddisp)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn CreateTypeLib(syskind: super::Com::SYSKIND, szfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateTypeLib(syskind, szfile.into_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] pub unsafe fn CreateTypeLib2(syskind: super::Com::SYSKIND, szfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateTypeLib2(syskind, szfile.into_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] @@ -70,10 +70,10 @@ pub unsafe fn DispCallFunc(pvinstance: Option<*const core::ffi::c_void>, ovft: u #[inline] pub unsafe fn DispGetIDsOfNames(ptinfo: P0, rgsznames: *const windows_core::PCWSTR, cnames: u32, rgdispid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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); - DispGetIDsOfNames(ptinfo.into_param().abi(), rgsznames, cnames, rgdispid).ok() + DispGetIDsOfNames(ptinfo.param().abi(), rgsznames, cnames, rgdispid).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] #[inline] @@ -85,20 +85,20 @@ pub unsafe fn DispGetParam(pdispparams: *const super::Com::DISPPARAMS, position: #[inline] pub unsafe fn DispInvoke(_this: *mut core::ffi::c_void, ptinfo: P0, dispidmember: i32, wflags: u16, pparams: *mut super::Com::DISPPARAMS, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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 std::mem::MaybeUninit < windows_core::VARIANT >, pexcepinfo : *mut super::Com:: EXCEPINFO, puargerr : *mut u32) -> windows_core::HRESULT); - DispInvoke(_this, ptinfo.into_param().abi(), dispidmember, wflags, pparams, core::mem::transmute(pvarresult), pexcepinfo, puargerr).ok() + DispInvoke(_this, ptinfo.param().abi(), dispidmember, wflags, pparams, core::mem::transmute(pvarresult), pexcepinfo, puargerr).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn DoDragDrop(pdataobj: P0, pdropsource: P1, dwokeffects: DROPEFFECT, pdweffect: *mut DROPEFFECT) -> windows_core::HRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pdropsource.into_param().abi(), dwokeffects, pdweffect) + DoDragDrop(pdataobj.param().abi(), pdropsource.param().abi(), dwokeffects, pdweffect) } #[inline] pub unsafe fn GetActiveObject(rclsid: *const windows_core::GUID, pvreserved: Option<*mut core::ffi::c_void>, ppunk: *mut Option) -> windows_core::Result<()> { @@ -121,11 +121,11 @@ pub unsafe fn GetRecordInfoFromGuids(rguidtypelib: *const windows_core::GUID, uv #[inline] pub unsafe fn GetRecordInfoFromTypeInfo(ptypeinfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn GetRecordInfoFromTypeInfo(ptypeinfo : * mut core::ffi::c_void, pprecinfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetRecordInfoFromTypeInfo(ptypeinfo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + GetRecordInfoFromTypeInfo(ptypeinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -179,28 +179,28 @@ pub unsafe fn HRGN_UserUnmarshal64(param0: *const u32, param1: *const u8, param2 #[inline] pub unsafe fn IsAccelerator(haccel: P0, caccelentries: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, lpwcmd: *mut u16) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(haccel.into_param().abi(), caccelentries, lpmsg, lpwcmd) + IsAccelerator(haccel.param().abi(), caccelentries, lpmsg, lpwcmd) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn LHashValOfNameSys(syskind: super::Com::SYSKIND, lcid: u32, szname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn LHashValOfNameSys(syskind : super::Com:: SYSKIND, lcid : u32, szname : windows_core::PCWSTR) -> u32); - LHashValOfNameSys(syskind, lcid, szname.into_param().abi()) + LHashValOfNameSys(syskind, lcid, szname.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn LHashValOfNameSysA(syskind: super::Com::SYSKIND, lcid: u32, szname: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn LHashValOfNameSysA(syskind : super::Com:: SYSKIND, lcid : u32, szname : windows_core::PCSTR) -> u32); - LHashValOfNameSysA(syskind, lcid, szname.into_param().abi()) + LHashValOfNameSysA(syskind, lcid, szname.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -213,21 +213,21 @@ pub unsafe fn LoadRegTypeLib(rguid: *const windows_core::GUID, wvermajor: u16, w #[inline] pub unsafe fn LoadTypeLib(szfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn LoadTypeLib(szfile : windows_core::PCWSTR, pptlib : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - LoadTypeLib(szfile.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + LoadTypeLib(szfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn LoadTypeLibEx(szfile: P0, regkind: REGKIND) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - LoadTypeLibEx(szfile.into_param().abi(), 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 { @@ -248,58 +248,58 @@ pub unsafe fn OleBuildVersion() -> u32 { #[inline] pub unsafe fn OleConvertOLESTREAMToIStorage2(lpolestream: *const super::Com::StructuredStorage::OLESTREAM, pstg: P0, ptd: Option<*const super::Com::DVTARGETDEVICE>, opt: u32, pvcallbackcontext: Option<*const core::ffi::c_void>, pqueryconvertolelinkcallback: OLESTREAMQUERYCONVERTOLELINKCALLBACK) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(lpolestream, pstg.into_param().abi(), core::mem::transmute(ptd.unwrap_or(std::ptr::null())), opt, core::mem::transmute(pvcallbackcontext.unwrap_or(std::ptr::null())), pqueryconvertolelinkcallback).ok() + OleConvertOLESTREAMToIStorage2(lpolestream, pstg.param().abi(), core::mem::transmute(ptd.unwrap_or(std::ptr::null())), opt, core::mem::transmute(pvcallbackcontext.unwrap_or(std::ptr::null())), pqueryconvertolelinkcallback).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn OleConvertOLESTREAMToIStorageEx2(polestm: *const super::Com::StructuredStorage::OLESTREAM, pstg: P0, pcfformat: *mut u16, plwwidth: *mut i32, plheight: *mut i32, pdwsize: *mut u32, pmedium: *mut super::Com::STGMEDIUM, opt: u32, pvcallbackcontext: Option<*const core::ffi::c_void>, pqueryconvertolelinkcallback: OLESTREAMQUERYCONVERTOLELINKCALLBACK) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(polestm, pstg.into_param().abi(), pcfformat, plwwidth, plheight, pdwsize, pmedium, opt, core::mem::transmute(pvcallbackcontext.unwrap_or(std::ptr::null())), pqueryconvertolelinkcallback).ok() + OleConvertOLESTREAMToIStorageEx2(polestm, pstg.param().abi(), pcfformat, plwwidth, plheight, pdwsize, pmedium, opt, core::mem::transmute(pvcallbackcontext.unwrap_or(std::ptr::null())), pqueryconvertolelinkcallback).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreate(rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, renderopt: OLERENDER, pformatetc: *const super::Com::FORMATETC, pclientsite: P0, pstg: P1, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(rclsid, riid, renderopt.0 as _, pformatetc, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreate(rclsid, riid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[inline] pub unsafe fn OleCreateDefaultHandler(clsid: *const windows_core::GUID, punkouter: P0, riid: *const windows_core::GUID, lplpobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(clsid, punkouter.into_param().abi(), riid, lplpobj).ok() + OleCreateDefaultHandler(clsid, punkouter.param().abi(), riid, lplpobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleCreateEmbeddingHelper(clsid: *const windows_core::GUID, punkouter: P0, flags: EMBDHLP_FLAGS, pcf: P1, riid: *const windows_core::GUID, lplpobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(clsid, punkouter.into_param().abi(), flags, pcf.into_param().abi(), riid, lplpobj).ok() + OleCreateEmbeddingHelper(clsid, punkouter.param().abi(), flags, pcf.param().abi(), riid, lplpobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateEx(rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, dwflags: OLECREATE, renderopt: OLERENDER, cformats: u32, rgadvf: *const u32, rgformatetc: *const super::Com::FORMATETC, lpadvisesink: P0, rgdwconnection: *mut u32, pclientsite: P1, pstg: P2, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(rclsid, riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.into_param().abi(), rgdwconnection, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateEx(rclsid, riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), rgdwconnection, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -311,145 +311,145 @@ pub unsafe fn OleCreateFontIndirect(lpfontdesc: *const FONTDESC, riid: *const wi #[inline] pub unsafe fn OleCreateFromData(psrcdataobj: P0, riid: *const windows_core::GUID, renderopt: OLERENDER, pformatetc: *const super::Com::FORMATETC, pclientsite: P1, pstg: P2, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), riid, renderopt.0 as _, pformatetc, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateFromData(psrcdataobj.param().abi(), riid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateFromDataEx(psrcdataobj: P0, riid: *const windows_core::GUID, dwflags: OLECREATE, renderopt: OLERENDER, cformats: u32, rgadvf: *const u32, rgformatetc: *const super::Com::FORMATETC, lpadvisesink: P1, rgdwconnection: *mut u32, pclientsite: P2, pstg: P3, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.into_param().abi(), rgdwconnection, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateFromDataEx(psrcdataobj.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), rgdwconnection, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateFromFile(rclsid: *const windows_core::GUID, lpszfilename: P0, riid: *const windows_core::GUID, renderopt: OLERENDER, lpformatetc: *const super::Com::FORMATETC, pclientsite: P1, pstg: P2, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(rclsid, lpszfilename.into_param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateFromFile(rclsid, lpszfilename.param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateFromFileEx(rclsid: *const windows_core::GUID, lpszfilename: P0, riid: *const windows_core::GUID, dwflags: OLECREATE, renderopt: OLERENDER, cformats: u32, rgadvf: *const u32, rgformatetc: *const super::Com::FORMATETC, lpadvisesink: P1, rgdwconnection: *mut u32, pclientsite: P2, pstg: P3, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(rclsid, lpszfilename.into_param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.into_param().abi(), rgdwconnection, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateFromFileEx(rclsid, lpszfilename.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), rgdwconnection, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateLink(pmklinksrc: P0, riid: *const windows_core::GUID, renderopt: OLERENDER, lpformatetc: *const super::Com::FORMATETC, pclientsite: P1, pstg: P2, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateLink(pmklinksrc.param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateLinkEx(pmklinksrc: P0, riid: *const windows_core::GUID, dwflags: OLECREATE, renderopt: OLERENDER, cformats: u32, rgadvf: *const u32, rgformatetc: *const super::Com::FORMATETC, lpadvisesink: P1, rgdwconnection: *mut u32, pclientsite: P2, pstg: P3, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.into_param().abi(), rgdwconnection, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateLinkEx(pmklinksrc.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), rgdwconnection, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateLinkFromData(psrcdataobj: P0, riid: *const windows_core::GUID, renderopt: OLERENDER, pformatetc: *const super::Com::FORMATETC, pclientsite: P1, pstg: P2, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), riid, renderopt.0 as _, pformatetc, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateLinkFromData(psrcdataobj.param().abi(), riid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateLinkFromDataEx(psrcdataobj: P0, riid: *const windows_core::GUID, dwflags: OLECREATE, renderopt: OLERENDER, cformats: u32, rgadvf: *const u32, rgformatetc: *const super::Com::FORMATETC, lpadvisesink: P1, rgdwconnection: *mut u32, pclientsite: P2, pstg: P3, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.into_param().abi(), rgdwconnection, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateLinkFromDataEx(psrcdataobj.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), rgdwconnection, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateLinkToFile(lpszfilename: P0, riid: *const windows_core::GUID, renderopt: OLERENDER, lpformatetc: *const super::Com::FORMATETC, pclientsite: P1, pstg: P2, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateLinkToFile(lpszfilename.param().abi(), riid, renderopt.0 as _, lpformatetc, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleCreateLinkToFileEx(lpszfilename: P0, riid: *const windows_core::GUID, dwflags: OLECREATE, renderopt: OLERENDER, cformats: u32, rgadvf: *const u32, rgformatetc: *const super::Com::FORMATETC, lpadvisesink: P1, rgdwconnection: *mut u32, pclientsite: P2, pstg: P3, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.into_param().abi(), rgdwconnection, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateLinkToFileEx(lpszfilename.param().abi(), riid, dwflags, renderopt.0 as _, cformats, rgadvf, rgformatetc, lpadvisesink.param().abi(), rgdwconnection, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn OleCreateMenuDescriptor(hmenucombined: P0, lpmenuwidths: *const OLEMENUGROUPWIDTHS) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleCreateMenuDescriptor(hmenucombined : super::super::UI::WindowsAndMessaging:: HMENU, lpmenuwidths : *const OLEMENUGROUPWIDTHS) -> isize); - OleCreateMenuDescriptor(hmenucombined.into_param().abi(), lpmenuwidths) + OleCreateMenuDescriptor(hmenucombined.param().abi(), lpmenuwidths) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn OleCreatePictureIndirect(lppictdesc: *const PICTDESC, fown: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - OleCreatePictureIndirect(lppictdesc, &T::IID, fown.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OleCreatePictureIndirect(lppictdesc, &T::IID, fown.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn OleCreatePropertyFrame(hwndowner: P0, x: u32, y: u32, lpszcaption: P1, cobjects: u32, ppunk: *const Option, cpages: u32, ppageclsid: *const windows_core::GUID, lcid: u32, dwreserved: u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hwndowner.into_param().abi(), x, y, lpszcaption.into_param().abi(), cobjects, core::mem::transmute(ppunk), cpages, ppageclsid, lcid, dwreserved, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + OleCreatePropertyFrame(hwndowner.param().abi(), x, y, lpszcaption.param().abi(), cobjects, core::mem::transmute(ppunk), cpages, ppageclsid, lcid, dwreserved, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn OleCreatePropertyFrameIndirect(lpparams: *const OCPFIPARAMS) -> windows_core::Result<()> { @@ -460,12 +460,12 @@ pub unsafe fn OleCreatePropertyFrameIndirect(lpparams: *const OCPFIPARAMS) -> wi #[inline] pub unsafe fn OleCreateStaticFromData(psrcdataobj: P0, iid: *const windows_core::GUID, renderopt: OLERENDER, pformatetc: *const super::Com::FORMATETC, pclientsite: P1, pstg: P2, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), iid, renderopt.0 as _, pformatetc, pclientsite.into_param().abi(), pstg.into_param().abi(), ppvobj).ok() + OleCreateStaticFromData(psrcdataobj.param().abi(), iid, renderopt.0 as _, pformatetc, pclientsite.param().abi(), pstg.param().abi(), ppvobj).ok() } #[inline] pub unsafe fn OleDestroyMenuDescriptor(holemenu: isize) -> windows_core::Result<()> { @@ -476,30 +476,30 @@ pub unsafe fn OleDestroyMenuDescriptor(holemenu: isize) -> windows_core::Result< #[inline] pub unsafe fn OleDoAutoConvert(pstg: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleDoAutoConvert(pstg : * mut core::ffi::c_void, pclsidnew : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - OleDoAutoConvert(pstg.into_param().abi(), &mut result__).map(|| result__) + OleDoAutoConvert(pstg.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OleDraw(punknown: P0, dwaspect: u32, hdcdraw: P1, lprcbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwaspect, hdcdraw.into_param().abi(), lprcbounds).ok() + OleDraw(punknown.param().abi(), dwaspect, hdcdraw.param().abi(), lprcbounds).ok() } #[cfg(feature = "Win32_System_Memory")] #[inline] pub unsafe fn OleDuplicateData(hsrc: P0, cfformat: CLIPBOARD_FORMAT, uiflags: super::Memory::GLOBAL_ALLOC_FLAGS) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hsrc.into_param().abi(), cfformat, uiflags) + OleDuplicateData(hsrc.param().abi(), cfformat, uiflags) } #[inline] pub unsafe fn OleFlushClipboard() -> windows_core::Result<()> { @@ -528,30 +528,30 @@ pub unsafe fn OleGetClipboardWithEnterpriseInfo(dataobject: *mut Option(rclsid: *const windows_core::GUID, lpszlabel: P0, fusetypeaslabel: P1) -> super::super::Foundation::HGLOBAL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(rclsid, lpszlabel.into_param().abi(), fusetypeaslabel.into_param().abi()) + OleGetIconOfClass(rclsid, lpszlabel.param().abi(), fusetypeaslabel.param().abi()) } #[inline] pub unsafe fn OleGetIconOfFile(lpszpath: P0, fusefileaslabel: P1) -> super::super::Foundation::HGLOBAL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleGetIconOfFile(lpszpath : windows_core::PCWSTR, fusefileaslabel : super::super::Foundation:: BOOL) -> super::super::Foundation:: HGLOBAL); - OleGetIconOfFile(lpszpath.into_param().abi(), fusefileaslabel.into_param().abi()) + OleGetIconOfFile(lpszpath.param().abi(), fusefileaslabel.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn OleIconToCursor(hinstexe: P0, hicon: P1) -> super::super::UI::WindowsAndMessaging::HCURSOR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hinstexe.into_param().abi(), hicon.into_param().abi()) + OleIconToCursor(hinstexe.param().abi(), hicon.param().abi()) } #[inline] pub unsafe fn OleInitialize(pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { @@ -562,135 +562,135 @@ pub unsafe fn OleInitialize(pvreserved: Option<*const core::ffi::c_void>) -> win #[inline] pub unsafe fn OleIsCurrentClipboard(pdataobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleIsCurrentClipboard(pdataobj : * mut core::ffi::c_void) -> windows_core::HRESULT); - OleIsCurrentClipboard(pdataobj.into_param().abi()).ok() + OleIsCurrentClipboard(pdataobj.param().abi()).ok() } #[inline] pub unsafe fn OleIsRunning(pobject: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleIsRunning(pobject : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - OleIsRunning(pobject.into_param().abi()) + OleIsRunning(pobject.param().abi()) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleLoad(pstg: P0, riid: *const windows_core::GUID, pclientsite: P1, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), riid, pclientsite.into_param().abi(), ppvobj).ok() + OleLoad(pstg.param().abi(), riid, pclientsite.param().abi(), ppvobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleLoadFromStream(pstm: P0, iidinterface: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), iidinterface, ppvobj).ok() + OleLoadFromStream(pstm.param().abi(), iidinterface, ppvobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleLoadPicture(lpstream: P0, lsize: i32, frunmode: P1, riid: *const windows_core::GUID, lplpvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), lsize, frunmode.into_param().abi(), riid, lplpvobj).ok() + OleLoadPicture(lpstream.param().abi(), lsize, frunmode.param().abi(), riid, lplpvobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleLoadPictureEx(lpstream: P0, lsize: i32, frunmode: P1, riid: *const windows_core::GUID, xsizedesired: u32, ysizedesired: u32, dwflags: LOAD_PICTURE_FLAGS, lplpvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), lsize, frunmode.into_param().abi(), riid, xsizedesired, ysizedesired, dwflags, lplpvobj).ok() + OleLoadPictureEx(lpstream.param().abi(), lsize, frunmode.param().abi(), riid, xsizedesired, ysizedesired, dwflags, lplpvobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleLoadPictureFile(varfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn OleLoadPictureFile(varfilename : std::mem::MaybeUninit < windows_core::VARIANT >, lplpdisppicture : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - OleLoadPictureFile(varfilename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OleLoadPictureFile(varfilename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleLoadPictureFileEx(varfilename: P0, xsizedesired: u32, ysizedesired: u32, dwflags: LOAD_PICTURE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn OleLoadPictureFileEx(varfilename : std::mem::MaybeUninit < windows_core::VARIANT >, xsizedesired : u32, ysizedesired : u32, dwflags : LOAD_PICTURE_FLAGS, lplpdisppicture : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - OleLoadPictureFileEx(varfilename.into_param().abi(), xsizedesired, ysizedesired, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + OleLoadPictureFileEx(varfilename.param().abi(), xsizedesired, ysizedesired, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn OleLoadPicturePath(szurlorpath: P0, punkcaller: P1, dwreserved: u32, clrreserved: u32, riid: *const windows_core::GUID, ppvret: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), punkcaller.into_param().abi(), dwreserved, clrreserved, riid, ppvret).ok() + OleLoadPicturePath(szurlorpath.param().abi(), punkcaller.param().abi(), dwreserved, clrreserved, riid, ppvret).ok() } #[inline] pub unsafe fn OleLockRunning(punknown: P0, flock: P1, flastunlockcloses: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleLockRunning(punknown : * mut core::ffi::c_void, flock : super::super::Foundation:: BOOL, flastunlockcloses : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - OleLockRunning(punknown.into_param().abi(), flock.into_param().abi(), flastunlockcloses.into_param().abi()).ok() + OleLockRunning(punknown.param().abi(), flock.param().abi(), flastunlockcloses.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn OleMetafilePictFromIconAndLabel(hicon: P0, lpszlabel: P1, lpszsourcefile: P2, iiconindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hicon.into_param().abi(), lpszlabel.into_param().abi(), lpszsourcefile.into_param().abi(), iiconindex); + let result__ = OleMetafilePictFromIconAndLabel(hicon.param().abi(), lpszlabel.param().abi(), lpszsourcefile.param().abi(), iiconindex); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OleNoteObjectVisible(punknown: P0, fvisible: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleNoteObjectVisible(punknown : * mut core::ffi::c_void, fvisible : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - OleNoteObjectVisible(punknown.into_param().abi(), fvisible.into_param().abi()).ok() + OleNoteObjectVisible(punknown.param().abi(), fvisible.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleQueryCreateFromData(psrcdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleQueryCreateFromData(psrcdataobject : * mut core::ffi::c_void) -> windows_core::HRESULT); - OleQueryCreateFromData(psrcdataobject.into_param().abi()).ok() + OleQueryCreateFromData(psrcdataobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleQueryLinkFromData(psrcdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleQueryLinkFromData(psrcdataobject : * mut core::ffi::c_void) -> windows_core::HRESULT); - OleQueryLinkFromData(psrcdataobject.into_param().abi()).ok() + OleQueryLinkFromData(psrcdataobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -720,41 +720,41 @@ pub unsafe fn OleRegGetUserType(clsid: *const windows_core::GUID, dwformoftype: #[inline] pub unsafe fn OleRun(punknown: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleRun(punknown : * mut core::ffi::c_void) -> windows_core::HRESULT); - OleRun(punknown.into_param().abi()).ok() + OleRun(punknown.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn OleSave(pps: P0, pstg: P1, fsameasload: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleSave(pps : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, fsameasload : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - OleSave(pps.into_param().abi(), pstg.into_param().abi(), fsameasload.into_param().abi()).ok() + OleSave(pps.param().abi(), pstg.param().abi(), fsameasload.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleSavePictureFile(lpdisppicture: P0, bstrfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn OleSavePictureFile(lpdisppicture : * mut core::ffi::c_void, bstrfilename : std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - OleSavePictureFile(lpdisppicture.into_param().abi(), bstrfilename.into_param().abi()).ok() + OleSavePictureFile(lpdisppicture.param().abi(), bstrfilename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleSaveToStream(ppstm: P0, pstm: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleSaveToStream(ppstm : * mut core::ffi::c_void, pstm : * mut core::ffi::c_void) -> windows_core::HRESULT); - OleSaveToStream(ppstm.into_param().abi(), pstm.into_param().abi()).ok() + OleSaveToStream(ppstm.param().abi(), pstm.param().abi()).ok() } #[inline] pub unsafe fn OleSetAutoConvert(clsidold: *const windows_core::GUID, clsidnew: *const windows_core::GUID) -> windows_core::Result<()> { @@ -765,73 +765,73 @@ pub unsafe fn OleSetAutoConvert(clsidold: *const windows_core::GUID, clsidnew: * #[inline] pub unsafe fn OleSetClipboard(pdataobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleSetClipboard(pdataobj : * mut core::ffi::c_void) -> windows_core::HRESULT); - OleSetClipboard(pdataobj.into_param().abi()).ok() + OleSetClipboard(pdataobj.param().abi()).ok() } #[inline] pub unsafe fn OleSetContainedObject(punknown: P0, fcontained: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn OleSetContainedObject(punknown : * mut core::ffi::c_void, fcontained : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - OleSetContainedObject(punknown.into_param().abi(), fcontained.into_param().abi()).ok() + OleSetContainedObject(punknown.param().abi(), fcontained.param().abi()).ok() } #[inline] pub unsafe fn OleSetMenuDescriptor(holemenu: isize, hwndframe: P0, hwndactiveobject: P1, lpframe: P2, lpactiveobj: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(holemenu, hwndframe.into_param().abi(), hwndactiveobject.into_param().abi(), lpframe.into_param().abi(), lpactiveobj.into_param().abi()).ok() + OleSetMenuDescriptor(holemenu, hwndframe.param().abi(), hwndactiveobject.param().abi(), lpframe.param().abi(), lpactiveobj.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn OleTranslateAccelerator(lpframe: P0, lpframeinfo: *const OLEINPLACEFRAMEINFO, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpframeinfo, lpmsg).ok() + OleTranslateAccelerator(lpframe.param().abi(), lpframeinfo, lpmsg).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn OleTranslateColor(clr: u32, hpal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - OleTranslateColor(clr, hpal.into_param().abi(), &mut result__).map(|| result__) + OleTranslateColor(clr, hpal.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn OleUIAddVerbMenuA(lpoleobj: P0, lpszshorttype: P1, hmenu: P2, upos: u32, uidverbmin: u32, uidverbmax: u32, baddconvert: P3, idconvert: u32, lphmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpszshorttype.into_param().abi(), hmenu.into_param().abi(), upos, uidverbmin, uidverbmax, baddconvert.into_param().abi(), idconvert, lphmenu) + OleUIAddVerbMenuA(lpoleobj.param().abi(), lpszshorttype.param().abi(), hmenu.param().abi(), upos, uidverbmin, uidverbmax, baddconvert.param().abi(), idconvert, lphmenu) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn OleUIAddVerbMenuW(lpoleobj: P0, lpszshorttype: P1, hmenu: P2, upos: u32, uidverbmin: u32, uidverbmax: u32, baddconvert: P3, idconvert: u32, lphmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpszshorttype.into_param().abi(), hmenu.into_param().abi(), upos, uidverbmin, uidverbmax, baddconvert.into_param().abi(), idconvert, lphmenu) + OleUIAddVerbMenuW(lpoleobj.param().abi(), lpszshorttype.param().abi(), hmenu.param().abi(), upos, uidverbmin, uidverbmax, baddconvert.param().abi(), idconvert, lphmenu) } #[cfg(feature = "Win32_Media")] #[inline] @@ -848,10 +848,10 @@ pub unsafe fn OleUIBusyW(param0: *const OLEUIBUSYW) -> u32 { #[inline] pub unsafe fn OleUICanConvertOrActivateAs(rclsid: *const windows_core::GUID, fislinkedobject: P0, wformat: u16) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rclsid, fislinkedobject.into_param().abi(), wformat) + OleUICanConvertOrActivateAs(rclsid, fislinkedobject.param().abi(), wformat) } #[inline] pub unsafe fn OleUIChangeIconA(param0: *const OLEUICHANGEICONA) -> u32 { @@ -934,38 +934,38 @@ pub unsafe fn OleUIPasteSpecialW(param0: *const OLEUIPASTESPECIALW) -> u32 { #[inline] pub unsafe fn OleUIPromptUserA(ntemplate: i32, hwndparent: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oledlg.dll" "cdecl" fn OleUIPromptUserA(ntemplate : i32, hwndparent : super::super::Foundation:: HWND) -> i32); - OleUIPromptUserA(ntemplate, hwndparent.into_param().abi()) + OleUIPromptUserA(ntemplate, hwndparent.param().abi()) } #[inline] pub unsafe fn OleUIPromptUserW(ntemplate: i32, hwndparent: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oledlg.dll" "cdecl" fn OleUIPromptUserW(ntemplate : i32, hwndparent : super::super::Foundation:: HWND) -> i32); - OleUIPromptUserW(ntemplate, hwndparent.into_param().abi()) + OleUIPromptUserW(ntemplate, hwndparent.param().abi()) } #[inline] pub unsafe fn OleUIUpdateLinksA(lpoleuilinkcntr: P0, hwndparent: P1, lpsztitle: P2, clinks: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwndparent.into_param().abi(), lpsztitle.into_param().abi(), clinks) + OleUIUpdateLinksA(lpoleuilinkcntr.param().abi(), hwndparent.param().abi(), lpsztitle.param().abi(), clinks) } #[inline] pub unsafe fn OleUIUpdateLinksW(lpoleuilinkcntr: P0, hwndparent: P1, lpsztitle: P2, clinks: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), hwndparent.into_param().abi(), lpsztitle.into_param().abi(), clinks) + OleUIUpdateLinksW(lpoleuilinkcntr.param().abi(), hwndparent.param().abi(), lpsztitle.param().abi(), clinks) } #[inline] pub unsafe fn OleUninitialize() { @@ -981,41 +981,41 @@ pub unsafe fn QueryPathOfRegTypeLib(guid: *const windows_core::GUID, wmaj: u16, #[inline] pub unsafe fn RegisterActiveObject(punk: P0, rclsid: *const windows_core::GUID, dwflags: ACTIVEOBJECT_FLAGS, pdwregister: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), rclsid, dwflags, pdwregister).ok() + RegisterActiveObject(punk.param().abi(), rclsid, dwflags, pdwregister).ok() } #[inline] pub unsafe fn RegisterDragDrop(hwnd: P0, pdroptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pdroptarget.into_param().abi()).ok() + RegisterDragDrop(hwnd.param().abi(), pdroptarget.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RegisterTypeLib(ptlib: P0, szfullpath: P1, szhelpdir: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn RegisterTypeLib(ptlib : * mut core::ffi::c_void, szfullpath : windows_core::PCWSTR, szhelpdir : windows_core::PCWSTR) -> windows_core::HRESULT); - RegisterTypeLib(ptlib.into_param().abi(), szfullpath.into_param().abi(), szhelpdir.into_param().abi()).ok() + RegisterTypeLib(ptlib.param().abi(), szfullpath.param().abi(), szhelpdir.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RegisterTypeLibForUser(ptlib: P0, szfullpath: P1, szhelpdir: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn RegisterTypeLibForUser(ptlib : * mut core::ffi::c_void, szfullpath : windows_core::PCWSTR, szhelpdir : windows_core::PCWSTR) -> windows_core::HRESULT); - RegisterTypeLibForUser(ptlib.into_param().abi(), szfullpath.into_param().abi(), szhelpdir.into_param().abi()).ok() + RegisterTypeLibForUser(ptlib.param().abi(), szfullpath.param().abi(), szhelpdir.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] @@ -1031,10 +1031,10 @@ pub unsafe fn RevokeActiveObject(dwregister: u32, pvreserved: Option<*mut core:: #[inline] pub unsafe fn RevokeDragDrop(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ole32.dll" "system" fn RevokeDragDrop(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - RevokeDragDrop(hwnd.into_param().abi()).ok() + RevokeDragDrop(hwnd.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1221,10 +1221,10 @@ pub unsafe fn SafeArraySetIID(psa: *const super::Com::SAFEARRAY, guid: *const wi #[inline] pub unsafe fn SafeArraySetRecordInfo(psa: *const super::Com::SAFEARRAY, prinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(psa, prinfo.into_param().abi()).ok() + SafeArraySetRecordInfo(psa, prinfo.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1291,11 +1291,11 @@ pub unsafe fn VarBoolFromDec(pdecin: *const super::super::Foundation::DECIMAL) - #[inline] pub unsafe fn VarBoolFromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarBoolFromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarBoolFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarBoolFromI1(cin: i8) -> windows_core::Result { @@ -1336,11 +1336,11 @@ pub unsafe fn VarBoolFromR8(dblin: f64) -> windows_core::Result(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarBoolFromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarBoolFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarBoolFromUI1(bin: u8) -> windows_core::Result { @@ -1369,30 +1369,30 @@ pub unsafe fn VarBoolFromUI8(i64in: u64) -> windows_core::Result(bstrleft: P0, bstrright: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarBstrCat(bstrleft : std::mem::MaybeUninit < windows_core::BSTR >, bstrright : std::mem::MaybeUninit < windows_core::BSTR >, pbstrresult : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarBstrCat(bstrleft.into_param().abi(), bstrright.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + VarBstrCat(bstrleft.param().abi(), bstrright.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn VarBstrCmp(bstrleft: P0, bstrright: P1, lcid: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarBstrCmp(bstrleft : std::mem::MaybeUninit < windows_core::BSTR >, bstrright : std::mem::MaybeUninit < windows_core::BSTR >, lcid : u32, dwflags : u32) -> windows_core::HRESULT); - VarBstrCmp(bstrleft.into_param().abi(), bstrright.into_param().abi(), lcid, dwflags).ok() + VarBstrCmp(bstrleft.param().abi(), bstrright.param().abi(), lcid, dwflags).ok() } #[inline] pub unsafe fn VarBstrFromBool(boolin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, lcid : u32, dwflags : u32, pbstrout : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarBstrFromBool(boolin.into_param().abi(), lcid, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + VarBstrFromBool(boolin.param().abi(), lcid, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1417,11 +1417,11 @@ pub unsafe fn VarBstrFromDec(pdecin: *const super::super::Foundation::DECIMAL, l #[inline] pub unsafe fn VarBstrFromDisp(pdispin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarBstrFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, dwflags : u32, pbstrout : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarBstrFromDisp(pdispin.into_param().abi(), lcid, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + VarBstrFromDisp(pdispin.param().abi(), lcid, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn VarBstrFromI1(cin: i8, lcid: u32, dwflags: u32) -> windows_core::Result { @@ -1531,11 +1531,11 @@ pub unsafe fn VarCyFix(cyin: super::Com::CY) -> windows_core::Result(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarCyFromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarCyFromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1555,11 +1555,11 @@ pub unsafe fn VarCyFromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarCyFromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarCyFromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarCyFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1607,11 +1607,11 @@ pub unsafe fn VarCyFromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarCyFromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarCyFromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarCyFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1693,11 +1693,11 @@ pub unsafe fn VarCySub(cyleft: super::Com::CY, cyright: super::Com::CY) -> windo #[inline] pub unsafe fn VarDateFromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarDateFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdateout : *mut f64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarDateFromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarDateFromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1716,11 +1716,11 @@ pub unsafe fn VarDateFromDec(pdecin: *const super::super::Foundation::DECIMAL) - #[inline] pub unsafe fn VarDateFromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarDateFromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarDateFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarDateFromI1(cin: i8) -> windows_core::Result { @@ -1761,11 +1761,11 @@ pub unsafe fn VarDateFromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarDateFromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarDateFromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarDateFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarDateFromUI1(bin: u8) -> windows_core::Result { @@ -1840,11 +1840,11 @@ pub unsafe fn VarDecFix(pdecin: *const super::super::Foundation::DECIMAL) -> win #[inline] pub unsafe fn VarDecFromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarDecFromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarDecFromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1863,11 +1863,11 @@ pub unsafe fn VarDecFromDate(datein: f64) -> windows_core::Result(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarDecFromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarDecFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarDecFromI1(cin: i8) -> windows_core::Result { @@ -1908,11 +1908,11 @@ pub unsafe fn VarDecFromR8(dblin: f64) -> windows_core::Result(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarDecFromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarDecFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarDecFromUI1(bin: u8) -> windows_core::Result { @@ -1989,11 +1989,11 @@ pub unsafe fn VarFix(pvarin: *const windows_core::VARIANT) -> windows_core::Resu #[inline] pub unsafe fn VarFormat(pvarin: *const windows_core::VARIANT, pstrformat: P0, ifirstday: VARFORMAT_FIRST_DAY, ifirstweek: VARFORMAT_FIRST_WEEK, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarFormat(pvarin : *const std::mem::MaybeUninit < windows_core::VARIANT >, pstrformat : windows_core::PCWSTR, ifirstday : VARFORMAT_FIRST_DAY, ifirstweek : VARFORMAT_FIRST_WEEK, dwflags : u32, pbstrout : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarFormat(core::mem::transmute(pvarin), pstrformat.into_param().abi(), ifirstday, ifirstweek, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + VarFormat(core::mem::transmute(pvarin), pstrformat.param().abi(), ifirstday, ifirstweek, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn VarFormatCurrency(pvarin: *const windows_core::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> windows_core::Result { @@ -2010,10 +2010,10 @@ pub unsafe fn VarFormatDateTime(pvarin: *const windows_core::VARIANT, inamedform #[inline] pub unsafe fn VarFormatFromTokens(pvarin: *const windows_core::VARIANT, pstrformat: P0, pbtokcur: *const u8, dwflags: u32, pbstrout: *mut windows_core::BSTR, lcid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarFormatFromTokens(pvarin : *const std::mem::MaybeUninit < windows_core::VARIANT >, pstrformat : windows_core::PCWSTR, pbtokcur : *const u8, dwflags : u32, pbstrout : *mut std::mem::MaybeUninit < windows_core::BSTR >, lcid : u32) -> windows_core::HRESULT); - VarFormatFromTokens(core::mem::transmute(pvarin), pstrformat.into_param().abi(), pbtokcur, dwflags, core::mem::transmute(pbstrout), lcid).ok() + VarFormatFromTokens(core::mem::transmute(pvarin), pstrformat.param().abi(), pbtokcur, dwflags, core::mem::transmute(pbstrout), lcid).ok() } #[inline] pub unsafe fn VarFormatNumber(pvarin: *const windows_core::VARIANT, inumdig: i32, iinclead: VARFORMAT_LEADING_DIGIT, iuseparens: VARFORMAT_PARENTHESES, igroup: VARFORMAT_GROUP, dwflags: u32) -> windows_core::Result { @@ -2030,10 +2030,10 @@ pub unsafe fn VarFormatPercent(pvarin: *const windows_core::VARIANT, inumdig: i3 #[inline] pub unsafe fn VarI1FromBool(boolin: P0, pcout: windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarI1FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pcout : windows_core::PSTR) -> windows_core::HRESULT); - VarI1FromBool(boolin.into_param().abi(), core::mem::transmute(pcout)).ok() + VarI1FromBool(boolin.param().abi(), core::mem::transmute(pcout)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2055,10 +2055,10 @@ pub unsafe fn VarI1FromDec(pdecin: *const super::super::Foundation::DECIMAL, pco #[inline] pub unsafe fn VarI1FromDisp(pdispin: P0, lcid: u32, pcout: windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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<()> { @@ -2088,10 +2088,10 @@ pub unsafe fn VarI1FromR8(dblin: f64, pcout: windows_core::PSTR) -> windows_core #[inline] pub unsafe fn VarI1FromStr(strin: P0, lcid: u32, dwflags: u32, pcout: windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lcid, 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<()> { @@ -2116,11 +2116,11 @@ pub unsafe fn VarI1FromUI8(i64in: u64, pcout: windows_core::PSTR) -> windows_cor #[inline] pub unsafe fn VarI2FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarI2FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, psout : *mut i16) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarI2FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarI2FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2144,11 +2144,11 @@ pub unsafe fn VarI2FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarI2FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarI2FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarI2FromI1(cin: i8) -> windows_core::Result { @@ -2183,11 +2183,11 @@ pub unsafe fn VarI2FromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarI2FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarI2FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarI2FromUI1(bin: u8) -> windows_core::Result { @@ -2216,11 +2216,11 @@ pub unsafe fn VarI2FromUI8(ui64in: u64) -> windows_core::Result { #[inline] pub unsafe fn VarI4FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarI4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, plout : *mut i32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarI4FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarI4FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2245,11 +2245,11 @@ pub unsafe fn VarI4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarI4FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarI4FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarI4FromI1(cin: i8) -> windows_core::Result { @@ -2284,11 +2284,11 @@ pub unsafe fn VarI4FromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarI4FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarI4FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarI4FromUI1(bin: u8) -> windows_core::Result { @@ -2317,11 +2317,11 @@ pub unsafe fn VarI4FromUI8(ui64in: u64) -> windows_core::Result { #[inline] pub unsafe fn VarI8FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarI8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pi64out : *mut i64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarI8FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarI8FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2346,11 +2346,11 @@ pub unsafe fn VarI8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarI8FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarI8FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarI8FromI1(cin: i8) -> windows_core::Result { @@ -2379,11 +2379,11 @@ pub unsafe fn VarI8FromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarI8FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarI8FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarI8FromUI1(bin: u8) -> windows_core::Result { @@ -2472,10 +2472,10 @@ pub unsafe fn VarOr(pvarleft: *const windows_core::VARIANT, pvarright: *const wi #[inline] pub unsafe fn VarParseNumFromStr(strin: P0, lcid: u32, dwflags: u32, pnumprs: *mut NUMPARSE, rgbdig: *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), lcid, dwflags, pnumprs, rgbdig).ok() + VarParseNumFromStr(strin.param().abi(), lcid, dwflags, pnumprs, rgbdig).ok() } #[inline] pub unsafe fn VarPow(pvarleft: *const windows_core::VARIANT, pvarright: *const windows_core::VARIANT) -> windows_core::Result { @@ -2491,11 +2491,11 @@ pub unsafe fn VarR4CmpR8(fltleft: f32, dblright: f64) -> VARCMP { #[inline] pub unsafe fn VarR4FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarR4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pfltout : *mut f32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarR4FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarR4FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2519,11 +2519,11 @@ pub unsafe fn VarR4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarR4FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarR4FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarR4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarR4FromI1(cin: i8) -> windows_core::Result { @@ -2558,11 +2558,11 @@ pub unsafe fn VarR4FromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarR4FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarR4FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarR4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarR4FromUI1(bin: u8) -> windows_core::Result { @@ -2591,11 +2591,11 @@ pub unsafe fn VarR4FromUI8(ui64in: u64) -> windows_core::Result { #[inline] pub unsafe fn VarR8FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarR8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdblout : *mut f64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarR8FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarR8FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2619,11 +2619,11 @@ pub unsafe fn VarR8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarR8FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarR8FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarR8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarR8FromI1(cin: i8, pdblout: *mut f64) -> windows_core::Result<()> { @@ -2657,11 +2657,11 @@ pub unsafe fn VarR8FromR4(fltin: f32) -> windows_core::Result { #[inline] pub unsafe fn VarR8FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarR8FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarR8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarR8FromUI1(bin: u8) -> windows_core::Result { @@ -2714,19 +2714,19 @@ pub unsafe fn VarSub(pvarleft: *const windows_core::VARIANT, pvarright: *const w #[inline] pub unsafe fn VarTokenizeFormatString(pstrformat: P0, rgbtok: &mut [u8], ifirstday: VARFORMAT_FIRST_DAY, ifirstweek: VARFORMAT_FIRST_WEEK, lcid: u32, pcbactual: Option<*const i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(rgbtok.as_ptr()), rgbtok.len().try_into().unwrap(), ifirstday, ifirstweek, lcid, core::mem::transmute(pcbactual.unwrap_or(std::ptr::null()))).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(std::ptr::null()))).ok() } #[inline] pub unsafe fn VarUI1FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarUI1FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pbout : *mut u8) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarUI1FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarUI1FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2751,11 +2751,11 @@ pub unsafe fn VarUI1FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarUI1FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI1FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarUI1FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI1FromI1(cin: i8) -> windows_core::Result { @@ -2796,11 +2796,11 @@ pub unsafe fn VarUI1FromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarUI1FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI1FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarUI1FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI1FromUI2(uiin: u16) -> windows_core::Result { @@ -2823,11 +2823,11 @@ pub unsafe fn VarUI1FromUI8(ui64in: u64) -> windows_core::Result { #[inline] pub unsafe fn VarUI2FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarUI2FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, puiout : *mut u16) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarUI2FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarUI2FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2852,11 +2852,11 @@ pub unsafe fn VarUI2FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarUI2FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI2FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarUI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI2FromI1(cin: i8) -> windows_core::Result { @@ -2896,11 +2896,11 @@ pub unsafe fn VarUI2FromR8(dblin: f64, puiout: *mut u16) -> windows_core::Result #[inline] pub unsafe fn VarUI2FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI2FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarUI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI2FromUI1(bin: u8) -> windows_core::Result { @@ -2923,11 +2923,11 @@ pub unsafe fn VarUI2FromUI8(i64in: u64) -> windows_core::Result { #[inline] pub unsafe fn VarUI4FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarUI4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pulout : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarUI4FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarUI4FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2952,11 +2952,11 @@ pub unsafe fn VarUI4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarUI4FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI4FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarUI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI4FromI1(cin: i8) -> windows_core::Result { @@ -2997,11 +2997,11 @@ pub unsafe fn VarUI4FromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarUI4FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI4FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarUI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI4FromUI1(bin: u8) -> windows_core::Result { @@ -3024,11 +3024,11 @@ pub unsafe fn VarUI4FromUI8(ui64in: u64) -> windows_core::Result { #[inline] pub unsafe fn VarUI8FromBool(boolin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VarUI8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pi64out : *mut u64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VarUI8FromBool(boolin.into_param().abi(), &mut result__).map(|| result__) + VarUI8FromBool(boolin.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -3053,11 +3053,11 @@ pub unsafe fn VarUI8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> #[inline] pub unsafe fn VarUI8FromDisp(pdispin: P0, lcid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI8FromDisp(pdispin.into_param().abi(), lcid, &mut result__).map(|| result__) + VarUI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI8FromI1(cin: i8) -> windows_core::Result { @@ -3092,11 +3092,11 @@ pub unsafe fn VarUI8FromR8(dblin: f64) -> windows_core::Result { #[inline] pub unsafe fn VarUI8FromStr(strin: P0, lcid: u32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - VarUI8FromStr(strin.into_param().abi(), lcid, dwflags, &mut result__).map(|| result__) + VarUI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn VarUI8FromUI1(bin: u8) -> windows_core::Result { @@ -3137,11 +3137,11 @@ pub unsafe fn VarXor(pvarleft: *const windows_core::VARIANT, pvarright: *const w #[inline] pub unsafe fn VectorFromBstr(bstr: P0) -> windows_core::Result<*mut super::Com::SAFEARRAY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleaut32.dll" "system" fn VectorFromBstr(bstr : std::mem::MaybeUninit < windows_core::BSTR >, ppsa : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - VectorFromBstr(bstr.into_param().abi(), &mut result__).map(|| result__) + VectorFromBstr(bstr.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IAdviseSinkEx, IAdviseSinkEx_Vtbl, 0x3af24290_0c96_11ce_a0cf_00aa00600ab8); @@ -3160,9 +3160,9 @@ impl IAdviseSinkEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnRename(&self, pmk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnRename)(windows_core::Interface::as_raw(self), pmk.into_param().abi()) + (windows_core::Interface::vtable(self).base__.OnRename)(windows_core::Interface::as_raw(self), pmk.param().abi()) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSave(&self) { @@ -3207,18 +3207,18 @@ impl IClassFactory2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateInstance(&self, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LockServer(&self, flock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LockServer)(windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LockServer)(windows_core::Interface::as_raw(self), flock.param().abi()).ok() } pub unsafe fn GetLicInfo(&self, plicinfo: *mut LICINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetLicInfo)(windows_core::Interface::as_raw(self), plicinfo).ok() @@ -3229,13 +3229,13 @@ impl IClassFactory2 { } pub unsafe fn CreateInstanceLic(&self, punkouter: P0, punkreserved: P1, bstrkey: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateInstanceLic)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), punkreserved.into_param().abi(), &T::IID, bstrkey.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceLic)(windows_core::Interface::as_raw(self), punkouter.param().abi(), punkreserved.param().abi(), &T::IID, bstrkey.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3266,9 +3266,9 @@ impl IContinueCallback { } pub unsafe fn FContinuePrinting(&self, ncntprinted: i32, ncurpage: i32, pwszprintstatus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FContinuePrinting)(windows_core::Interface::as_raw(self), ncntprinted, ncurpage, pwszprintstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FContinuePrinting)(windows_core::Interface::as_raw(self), ncntprinted, ncurpage, pwszprintstatus.param().abi()).ok() } } #[repr(C)] @@ -3285,21 +3285,21 @@ impl ICreateErrorInfo { } pub unsafe fn SetSource(&self, szsource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), szsource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), szsource.param().abi()).ok() } pub unsafe fn SetDescription(&self, szdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), szdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), szdescription.param().abi()).ok() } pub unsafe fn SetHelpFile(&self, szhelpfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHelpFile)(windows_core::Interface::as_raw(self), szhelpfile.into_param().abi()).ok() + (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), dwhelpcontext).ok() @@ -3325,9 +3325,9 @@ impl ICreateTypeInfo { } pub unsafe fn SetDocString(&self, pstrdoc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocString)(windows_core::Interface::as_raw(self), pstrdoc.into_param().abi()).ok() + (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), dwhelpcontext).ok() @@ -3338,9 +3338,9 @@ impl ICreateTypeInfo { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRefTypeInfo(&self, ptinfo: P0, phreftype: *const u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRefTypeInfo)(windows_core::Interface::as_raw(self), ptinfo.into_param().abi(), 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<()> { @@ -3358,9 +3358,9 @@ impl ICreateTypeInfo { } pub unsafe fn SetSchema(&self, pstrschema: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSchema)(windows_core::Interface::as_raw(self), pstrschema.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSchema)(windows_core::Interface::as_raw(self), pstrschema.param().abi()).ok() } #[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<()> { @@ -3371,9 +3371,9 @@ impl ICreateTypeInfo { } pub unsafe fn SetVarName(&self, index: u32, szname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVarName)(windows_core::Interface::as_raw(self), index, szname.into_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<()> { @@ -3381,22 +3381,22 @@ impl ICreateTypeInfo { } pub unsafe fn DefineFuncAsDllEntry(&self, index: u32, szdllname: P0, szprocname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineFuncAsDllEntry)(windows_core::Interface::as_raw(self), index, szdllname.into_param().abi(), szprocname.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFuncDocString)(windows_core::Interface::as_raw(self), index, szdocstring.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVarDocString)(windows_core::Interface::as_raw(self), index, szdocstring.into_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), index, dwhelpcontext).ok() @@ -3406,9 +3406,9 @@ impl ICreateTypeInfo { } pub unsafe fn SetMops(&self, index: u32, bstrmops: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMops)(windows_core::Interface::as_raw(self), index, bstrmops.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMops)(windows_core::Interface::as_raw(self), index, bstrmops.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTypeIdldesc(&self, pidldesc: *const super::Com::IDLDESC) -> windows_core::Result<()> { @@ -3474,9 +3474,9 @@ impl ICreateTypeInfo2 { } pub unsafe fn SetDocString(&self, pstrdoc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDocString)(windows_core::Interface::as_raw(self), pstrdoc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetHelpContext)(windows_core::Interface::as_raw(self), dwhelpcontext).ok() @@ -3487,9 +3487,9 @@ impl ICreateTypeInfo2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRefTypeInfo(&self, ptinfo: P0, phreftype: *const u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddRefTypeInfo)(windows_core::Interface::as_raw(self), ptinfo.into_param().abi(), phreftype).ok() + (windows_core::Interface::vtable(self).base__.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<()> { @@ -3507,9 +3507,9 @@ impl ICreateTypeInfo2 { } pub unsafe fn SetSchema(&self, pstrschema: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSchema)(windows_core::Interface::as_raw(self), pstrschema.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSchema)(windows_core::Interface::as_raw(self), pstrschema.param().abi()).ok() } #[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<()> { @@ -3520,9 +3520,9 @@ impl ICreateTypeInfo2 { } pub unsafe fn SetVarName(&self, index: u32, szname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVarName)(windows_core::Interface::as_raw(self), index, szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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<()> { @@ -3530,22 +3530,22 @@ impl ICreateTypeInfo2 { } pub unsafe fn DefineFuncAsDllEntry(&self, index: u32, szdllname: P0, szprocname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineFuncAsDllEntry)(windows_core::Interface::as_raw(self), index, szdllname.into_param().abi(), szprocname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DefineFuncAsDllEntry)(windows_core::Interface::as_raw(self), index, szdllname.param().abi(), szprocname.param().abi()).ok() } pub unsafe fn SetFuncDocString(&self, index: u32, szdocstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFuncDocString)(windows_core::Interface::as_raw(self), index, szdocstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFuncDocString)(windows_core::Interface::as_raw(self), index, szdocstring.param().abi()).ok() } pub unsafe fn SetVarDocString(&self, index: u32, szdocstring: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVarDocString)(windows_core::Interface::as_raw(self), index, szdocstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetFuncHelpContext)(windows_core::Interface::as_raw(self), index, dwhelpcontext).ok() @@ -3555,9 +3555,9 @@ impl ICreateTypeInfo2 { } pub unsafe fn SetMops(&self, index: u32, bstrmops: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMops)(windows_core::Interface::as_raw(self), index, bstrmops.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMops)(windows_core::Interface::as_raw(self), index, bstrmops.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTypeIdldesc(&self, pidldesc: *const super::Com::IDLDESC) -> windows_core::Result<()> { @@ -3611,9 +3611,9 @@ impl ICreateTypeInfo2 { } pub unsafe fn SetName(&self, szname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), szname.param().abi()).ok() } } #[repr(C)] @@ -3644,16 +3644,16 @@ impl ICreateTypeLib { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTypeInfo(&self, szname: P0, tkind: super::Com::TYPEKIND) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTypeInfo)(windows_core::Interface::as_raw(self), szname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() + (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), wmajorvernum, wminorvernum).ok() @@ -3663,15 +3663,15 @@ impl ICreateTypeLib { } pub unsafe fn SetDocString(&self, szdoc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocString)(windows_core::Interface::as_raw(self), szdoc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocString)(windows_core::Interface::as_raw(self), szdoc.param().abi()).ok() } pub unsafe fn SetHelpFileName(&self, szhelpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHelpFileName)(windows_core::Interface::as_raw(self), szhelpfilename.into_param().abi()).ok() + (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), dwhelpcontext).ok() @@ -3709,16 +3709,16 @@ impl ICreateTypeLib2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTypeInfo(&self, szname: P0, tkind: super::Com::TYPEKIND) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTypeInfo)(windows_core::Interface::as_raw(self), szname.into_param().abi(), tkind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetVersion)(windows_core::Interface::as_raw(self), wmajorvernum, wminorvernum).ok() @@ -3728,15 +3728,15 @@ impl ICreateTypeLib2 { } pub unsafe fn SetDocString(&self, szdoc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDocString)(windows_core::Interface::as_raw(self), szdoc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDocString)(windows_core::Interface::as_raw(self), szdoc.param().abi()).ok() } pub unsafe fn SetHelpFileName(&self, szhelpfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHelpFileName)(windows_core::Interface::as_raw(self), szhelpfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetHelpContext)(windows_core::Interface::as_raw(self), dwhelpcontext).ok() @@ -3752,9 +3752,9 @@ impl ICreateTypeLib2 { } pub unsafe fn DeleteTypeInfo(&self, szname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTypeInfo)(windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteTypeInfo)(windows_core::Interface::as_raw(self), szname.param().abi()).ok() } pub unsafe fn SetCustData(&self, guid: *const windows_core::GUID, pvarval: *const windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetCustData)(windows_core::Interface::as_raw(self), guid, core::mem::transmute(pvarval)).ok() @@ -3764,9 +3764,9 @@ impl ICreateTypeLib2 { } pub unsafe fn SetHelpStringDll(&self, szfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHelpStringDll)(windows_core::Interface::as_raw(self), szfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHelpStringDll)(windows_core::Interface::as_raw(self), szfilename.param().abi()).ok() } } #[repr(C)] @@ -3822,23 +3822,23 @@ windows_core::imp::interface_hierarchy!(IDispatchEx, windows_core::IUnknown, sup impl IDispatchEx { pub unsafe fn GetDispID(&self, bstrname: P0, grfdex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDispID)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), grfdex, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDispID)(windows_core::Interface::as_raw(self), bstrname.param().abi(), grfdex, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InvokeEx(&self, id: i32, lcid: u32, wflags: u16, pdp: *const super::Com::DISPPARAMS, pvarres: Option<*mut windows_core::VARIANT>, pei: Option<*mut super::Com::EXCEPINFO>, pspcaller: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeEx)(windows_core::Interface::as_raw(self), id, lcid, wflags, pdp, core::mem::transmute(pvarres.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pei.unwrap_or(std::ptr::null_mut())), pspcaller.into_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(std::ptr::null_mut())), core::mem::transmute(pei.unwrap_or(std::ptr::null_mut())), pspcaller.param().abi()).ok() } pub unsafe fn DeleteMemberByName(&self, bstrname: P0, grfdex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMemberByName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), grfdex).ok() + (windows_core::Interface::vtable(self).DeleteMemberByName)(windows_core::Interface::as_raw(self), bstrname.param().abi(), grfdex).ok() } pub unsafe fn DeleteMemberByDispID(&self, id: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteMemberByDispID)(windows_core::Interface::as_raw(self), id).ok() @@ -3882,9 +3882,9 @@ impl IDropSource { #[cfg(feature = "Win32_System_SystemServices")] pub unsafe fn QueryContinueDrag(&self, fescapepressed: P0, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryContinueDrag)(windows_core::Interface::as_raw(self), fescapepressed.into_param().abi(), grfkeystate) + (windows_core::Interface::vtable(self).QueryContinueDrag)(windows_core::Interface::as_raw(self), fescapepressed.param().abi(), grfkeystate) } pub unsafe fn GiveFeedback(&self, dweffect: DROPEFFECT) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).GiveFeedback)(windows_core::Interface::as_raw(self), dweffect) @@ -3904,9 +3904,9 @@ windows_core::imp::interface_hierarchy!(IDropSourceNotify, windows_core::IUnknow impl IDropSourceNotify { pub unsafe fn DragEnterTarget(&self, hwndtarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DragEnterTarget)(windows_core::Interface::as_raw(self), hwndtarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DragEnterTarget)(windows_core::Interface::as_raw(self), hwndtarget.param().abi()).ok() } pub unsafe fn DragLeaveTarget(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DragLeaveTarget)(windows_core::Interface::as_raw(self)).ok() @@ -3924,9 +3924,9 @@ impl IDropTarget { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] pub unsafe fn DragEnter(&self, pdataobj: P0, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), pdataobj.into_param().abi(), grfkeystate, core::mem::transmute(pt), pdweffect).ok() + (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), pdataobj.param().abi(), grfkeystate, core::mem::transmute(pt), 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<()> { @@ -3938,9 +3938,9 @@ impl IDropTarget { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] pub unsafe fn Drop(&self, pdataobj: P0, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Drop)(windows_core::Interface::as_raw(self), pdataobj.into_param().abi(), grfkeystate, core::mem::transmute(pt), pdweffect).ok() + (windows_core::Interface::vtable(self).Drop)(windows_core::Interface::as_raw(self), pdataobj.param().abi(), grfkeystate, core::mem::transmute(pt), pdweffect).ok() } } #[repr(C)] @@ -3965,9 +3965,9 @@ windows_core::imp::interface_hierarchy!(IEnterpriseDropTarget, windows_core::IUn impl IEnterpriseDropTarget { pub unsafe fn SetDropSourceEnterpriseId(&self, identity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDropSourceEnterpriseId)(windows_core::Interface::as_raw(self), identity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDropSourceEnterpriseId)(windows_core::Interface::as_raw(self), identity.param().abi()).ok() } pub unsafe fn IsEvaluatingEdpPolicy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4093,9 +4093,9 @@ impl IFont { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Size(&self) -> windows_core::Result { @@ -4112,9 +4112,9 @@ impl IFont { } pub unsafe fn SetBold(&self, bold: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBold)(windows_core::Interface::as_raw(self), bold.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBold)(windows_core::Interface::as_raw(self), bold.param().abi()).ok() } pub unsafe fn Italic(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4122,9 +4122,9 @@ impl IFont { } pub unsafe fn SetItalic(&self, italic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItalic)(windows_core::Interface::as_raw(self), italic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetItalic)(windows_core::Interface::as_raw(self), italic.param().abi()).ok() } pub unsafe fn Underline(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4132,9 +4132,9 @@ impl IFont { } pub unsafe fn SetUnderline(&self, underline: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), underline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), underline.param().abi()).ok() } pub unsafe fn Strikethrough(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4142,9 +4142,9 @@ impl IFont { } pub unsafe fn SetStrikethrough(&self, strikethrough: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStrikethrough)(windows_core::Interface::as_raw(self), strikethrough.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStrikethrough)(windows_core::Interface::as_raw(self), strikethrough.param().abi()).ok() } pub unsafe fn Weight(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4171,9 +4171,9 @@ impl IFont { } pub unsafe fn IsEqual(&self, pfontother: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pfontother.into_param().abi()).ok() + (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), cylogical, cyhimetric).ok() @@ -4185,23 +4185,23 @@ impl IFont { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddRefHfont(&self, hfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRefHfont)(windows_core::Interface::as_raw(self), hfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRefHfont)(windows_core::Interface::as_raw(self), hfont.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseHfont(&self, hfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseHfont)(windows_core::Interface::as_raw(self), hfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseHfont)(windows_core::Interface::as_raw(self), hfont.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetHdc(&self, hdc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHdc)(windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHdc)(windows_core::Interface::as_raw(self), hdc.param().abi()).ok() } } #[repr(C)] @@ -4304,9 +4304,9 @@ windows_core::imp::interface_hierarchy!(IObjectIdentity, windows_core::IUnknown) impl IObjectIdentity { pub unsafe fn IsEqualObject(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsEqualObject)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsEqualObject)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } } #[repr(C)] @@ -4319,9 +4319,9 @@ windows_core::imp::interface_hierarchy!(IObjectWithSite, windows_core::IUnknown) impl IObjectWithSite { pub unsafe fn SetSite(&self, punksite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSite)(windows_core::Interface::as_raw(self), punksite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSite)(windows_core::Interface::as_raw(self), punksite.param().abi()).ok() } pub unsafe fn GetSite(&self) -> windows_core::Result where @@ -4343,10 +4343,10 @@ impl IOleAdviseHolder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Advise(&self, padvise: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), padvise.into_param().abi(), &mut result__).map(|| result__) + (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), dwconnection).ok() @@ -4359,9 +4359,9 @@ impl IOleAdviseHolder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SendOnRename(&self, pmk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendOnRename)(windows_core::Interface::as_raw(self), pmk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendOnRename)(windows_core::Interface::as_raw(self), pmk.param().abi()).ok() } pub unsafe fn SendOnSave(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendOnSave)(windows_core::Interface::as_raw(self)).ok() @@ -4408,16 +4408,16 @@ impl IOleCache { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitCache(&self, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitCache)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitCache)(windows_core::Interface::as_raw(self), pdataobject.param().abi()).ok() } #[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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pformatetc, pmedium, frelease.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), pformatetc, pmedium, frelease.param().abi()).ok() } } #[repr(C)] @@ -4460,23 +4460,23 @@ impl IOleCache2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitCache(&self, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitCache)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitCache)(windows_core::Interface::as_raw(self), pdataobject.param().abi()).ok() } #[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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), pformatetc, pmedium, frelease.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), pformatetc, pmedium, frelease.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn UpdateCache(&self, pdataobject: P0, grfupdf: UPDFCACHE_FLAGS, preserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateCache)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), grfupdf, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).UpdateCache)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), grfupdf, core::mem::transmute(preserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn DiscardCache(&self, dwdiscardoptions: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DiscardCache)(windows_core::Interface::as_raw(self), dwdiscardoptions).ok() @@ -4497,9 +4497,9 @@ impl IOleCacheControl { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnRun(&self, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRun)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRun)(windows_core::Interface::as_raw(self), pdataobject.param().abi()).ok() } pub unsafe fn OnStop(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnStop)(windows_core::Interface::as_raw(self)).ok() @@ -4534,9 +4534,9 @@ impl IOleClientSite { } pub unsafe fn OnShowWindow(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnShowWindow)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnShowWindow)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn RequestNewObjectLayout(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequestNewObjectLayout)(windows_core::Interface::as_raw(self)).ok() @@ -4577,10 +4577,10 @@ impl IOleContainer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseDisplayName(&self, pbc: P0, pszdisplayname: P1, pcheaten: *mut u32, ppmkout: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pszdisplayname.into_param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() + (windows_core::Interface::vtable(self).base__.ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.param().abi(), pszdisplayname.param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumObjects(&self, grfflags: OLECONTF) -> windows_core::Result { @@ -4589,9 +4589,9 @@ impl IOleContainer { } pub unsafe fn LockContainer(&self, flock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LockContainer)(windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LockContainer)(windows_core::Interface::as_raw(self), flock.param().abi()).ok() } } #[repr(C)] @@ -4619,9 +4619,9 @@ impl IOleControl { } pub unsafe fn FreezeEvents(&self, bfreeze: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FreezeEvents)(windows_core::Interface::as_raw(self), bfreeze.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FreezeEvents)(windows_core::Interface::as_raw(self), bfreeze.param().abi()).ok() } } #[repr(C)] @@ -4646,9 +4646,9 @@ impl IOleControlSite { } pub unsafe fn LockInPlaceActive(&self, flock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LockInPlaceActive)(windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LockInPlaceActive)(windows_core::Interface::as_raw(self), flock.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExtendedControl(&self) -> windows_core::Result { @@ -4664,9 +4664,9 @@ impl IOleControlSite { } pub unsafe fn OnFocus(&self, fgotfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFocus)(windows_core::Interface::as_raw(self), fgotfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFocus)(windows_core::Interface::as_raw(self), fgotfocus.param().abi()).ok() } pub unsafe fn ShowPropertyFrame(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShowPropertyFrame)(windows_core::Interface::as_raw(self)).ok() @@ -4695,11 +4695,11 @@ impl IOleDocument { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateView(&self, pipsite: P0, pstm: P1, dwreserved: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), pipsite.into_param().abi(), pstm.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4724,9 +4724,9 @@ windows_core::imp::interface_hierarchy!(IOleDocumentSite, windows_core::IUnknown impl IOleDocumentSite { pub unsafe fn ActivateMe(&self, pviewtoactivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateMe)(windows_core::Interface::as_raw(self), pviewtoactivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ActivateMe)(windows_core::Interface::as_raw(self), pviewtoactivate.param().abi()).ok() } } #[repr(C)] @@ -4739,9 +4739,9 @@ windows_core::imp::interface_hierarchy!(IOleDocumentView, windows_core::IUnknown impl IOleDocumentView { pub unsafe fn SetInPlaceSite(&self, pipsite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInPlaceSite)(windows_core::Interface::as_raw(self), pipsite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInPlaceSite)(windows_core::Interface::as_raw(self), pipsite.param().abi()).ok() } pub unsafe fn GetInPlaceSite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4763,15 +4763,15 @@ impl IOleDocumentView { } pub unsafe fn Show(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn UIActivate(&self, fuiactivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UIActivate)(windows_core::Interface::as_raw(self), fuiactivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UIActivate)(windows_core::Interface::as_raw(self), fuiactivate.param().abi()).ok() } pub unsafe fn Open(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self)).ok() @@ -4782,23 +4782,23 @@ impl IOleDocumentView { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveViewState(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveViewState)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveViewState)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ApplyViewState(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyViewState)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyViewState)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn Clone(&self, pipsitenew: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), pipsitenew.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), pipsitenew.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4833,9 +4833,9 @@ impl IOleInPlaceActiveObject { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, lpmsg: Option<*const super::super::UI::WindowsAndMessaging::MSG>) -> windows_core::Result<()> { @@ -4843,28 +4843,28 @@ impl IOleInPlaceActiveObject { } pub unsafe fn OnFrameWindowActivate(&self, factivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFrameWindowActivate)(windows_core::Interface::as_raw(self), factivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFrameWindowActivate)(windows_core::Interface::as_raw(self), factivate.param().abi()).ok() } pub unsafe fn OnDocWindowActivate(&self, factivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDocWindowActivate)(windows_core::Interface::as_raw(self), factivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDocWindowActivate)(windows_core::Interface::as_raw(self), factivate.param().abi()).ok() } pub unsafe fn ResizeBorder(&self, prcborder: *const super::super::Foundation::RECT, puiwindow: P0, fframewindow: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResizeBorder)(windows_core::Interface::as_raw(self), prcborder, puiwindow.into_param().abi(), fframewindow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ResizeBorder)(windows_core::Interface::as_raw(self), prcborder, puiwindow.param().abi(), fframewindow.param().abi()).ok() } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -4888,9 +4888,9 @@ impl IOleInPlaceFrame { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn GetBorder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4904,44 +4904,44 @@ impl IOleInPlaceFrame { } pub unsafe fn SetActiveObject(&self, pactiveobject: P0, pszobjname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetActiveObject)(windows_core::Interface::as_raw(self), pactiveobject.into_param().abi(), pszobjname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetActiveObject)(windows_core::Interface::as_raw(self), pactiveobject.param().abi(), pszobjname.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn InsertMenus(&self, hmenushared: P0, lpmenuwidths: *mut OLEMENUGROUPWIDTHS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertMenus)(windows_core::Interface::as_raw(self), hmenushared.into_param().abi(), lpmenuwidths).ok() + (windows_core::Interface::vtable(self).InsertMenus)(windows_core::Interface::as_raw(self), hmenushared.param().abi(), lpmenuwidths).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetMenu(&self, hmenushared: P0, holemenu: isize, hwndactiveobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), hmenushared.into_param().abi(), holemenu, hwndactiveobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), hmenushared.param().abi(), holemenu, hwndactiveobject.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn RemoveMenus(&self, hmenushared: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveMenus)(windows_core::Interface::as_raw(self), hmenushared.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveMenus)(windows_core::Interface::as_raw(self), hmenushared.param().abi()).ok() } pub unsafe fn SetStatusText(&self, pszstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusText)(windows_core::Interface::as_raw(self), pszstatustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatusText)(windows_core::Interface::as_raw(self), pszstatustext.param().abi()).ok() } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, wid: u16) -> windows_core::Result<()> { @@ -4979,9 +4979,9 @@ impl IOleInPlaceObject { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn InPlaceDeactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InPlaceDeactivate)(windows_core::Interface::as_raw(self)).ok() @@ -5013,9 +5013,9 @@ impl IOleInPlaceObjectWindowless { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn InPlaceDeactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.InPlaceDeactivate)(windows_core::Interface::as_raw(self)).ok() @@ -5031,11 +5031,11 @@ impl IOleInPlaceObjectWindowless { } pub unsafe fn OnWindowMessage(&self, msg: u32, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetDropTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5057,9 +5057,9 @@ impl IOleInPlaceSite { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn CanInPlaceActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CanInPlaceActivate)(windows_core::Interface::as_raw(self)).ok() @@ -5079,9 +5079,9 @@ impl IOleInPlaceSite { } pub unsafe fn OnUIDeactivate(&self, fundoable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUIDeactivate)(windows_core::Interface::as_raw(self), fundoable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnUIDeactivate)(windows_core::Interface::as_raw(self), fundoable.param().abi()).ok() } pub unsafe fn OnInPlaceDeactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnInPlaceDeactivate)(windows_core::Interface::as_raw(self)).ok() @@ -5122,9 +5122,9 @@ impl IOleInPlaceSiteEx { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn CanInPlaceActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CanInPlaceActivate)(windows_core::Interface::as_raw(self)).ok() @@ -5144,9 +5144,9 @@ impl IOleInPlaceSiteEx { } pub unsafe fn OnUIDeactivate(&self, fundoable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnUIDeactivate)(windows_core::Interface::as_raw(self), fundoable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnUIDeactivate)(windows_core::Interface::as_raw(self), fundoable.param().abi()).ok() } pub unsafe fn OnInPlaceDeactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnInPlaceDeactivate)(windows_core::Interface::as_raw(self)).ok() @@ -5165,9 +5165,9 @@ impl IOleInPlaceSiteEx { } pub unsafe fn OnInPlaceDeactivateEx(&self, fnoredraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInPlaceDeactivateEx)(windows_core::Interface::as_raw(self), fnoredraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInPlaceDeactivateEx)(windows_core::Interface::as_raw(self), fnoredraw.param().abi()).ok() } pub unsafe fn RequestUIActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RequestUIActivate)(windows_core::Interface::as_raw(self)).ok() @@ -5189,9 +5189,9 @@ impl IOleInPlaceSiteWindowless { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn CanInPlaceActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CanInPlaceActivate)(windows_core::Interface::as_raw(self)).ok() @@ -5211,9 +5211,9 @@ impl IOleInPlaceSiteWindowless { } pub unsafe fn OnUIDeactivate(&self, fundoable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnUIDeactivate)(windows_core::Interface::as_raw(self), fundoable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.OnUIDeactivate)(windows_core::Interface::as_raw(self), fundoable.param().abi()).ok() } pub unsafe fn OnInPlaceDeactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.OnInPlaceDeactivate)(windows_core::Interface::as_raw(self)).ok() @@ -5232,9 +5232,9 @@ impl IOleInPlaceSiteWindowless { } pub unsafe fn OnInPlaceDeactivateEx(&self, fnoredraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnInPlaceDeactivateEx)(windows_core::Interface::as_raw(self), fnoredraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnInPlaceDeactivateEx)(windows_core::Interface::as_raw(self), fnoredraw.param().abi()).ok() } pub unsafe fn RequestUIActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RequestUIActivate)(windows_core::Interface::as_raw(self)).ok() @@ -5247,18 +5247,18 @@ impl IOleInPlaceSiteWindowless { } pub unsafe fn SetCapture(&self, fcapture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCapture)(windows_core::Interface::as_raw(self), fcapture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCapture)(windows_core::Interface::as_raw(self), fcapture.param().abi()).ok() } pub unsafe fn GetFocus(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFocus)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetFocus(&self, ffocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), ffocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), ffocus.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetDC(&self, prect: *const super::super::Foundation::RECT, grfflags: u32) -> windows_core::Result { @@ -5268,23 +5268,23 @@ impl IOleInPlaceSiteWindowless { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ReleaseDC(&self, hdc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseDC)(windows_core::Interface::as_raw(self), hdc.param().abi()).ok() } pub unsafe fn InvalidateRect(&self, prect: *const super::super::Foundation::RECT, ferase: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), prect, ferase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvalidateRect)(windows_core::Interface::as_raw(self), prect, ferase.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn InvalidateRgn(&self, hrgn: P0, ferase: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvalidateRgn)(windows_core::Interface::as_raw(self), hrgn.into_param().abi(), ferase.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvalidateRgn)(windows_core::Interface::as_raw(self), hrgn.param().abi(), ferase.param().abi()).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), dx, dy, prectscroll, prectclip).ok() @@ -5294,11 +5294,11 @@ impl IOleInPlaceSiteWindowless { } pub unsafe fn OnDefWindowMessage(&self, msg: u32, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnDefWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnDefWindowMessage)(windows_core::Interface::as_raw(self), msg, wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -5335,9 +5335,9 @@ impl IOleInPlaceUIWindow { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn GetBorder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5351,10 +5351,10 @@ impl IOleInPlaceUIWindow { } pub unsafe fn SetActiveObject(&self, pactiveobject: P0, pszobjname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveObject)(windows_core::Interface::as_raw(self), pactiveobject.into_param().abi(), pszobjname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActiveObject)(windows_core::Interface::as_raw(self), pactiveobject.param().abi(), pszobjname.param().abi()).ok() } } #[repr(C)] @@ -5371,10 +5371,10 @@ impl IOleItemContainer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseDisplayName(&self, pbc: P0, pszdisplayname: P1, pcheaten: *mut u32, ppmkout: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pszdisplayname.into_param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() + (windows_core::Interface::vtable(self).base__.base__.ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.param().abi(), pszdisplayname.param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumObjects(&self, grfflags: OLECONTF) -> windows_core::Result { @@ -5383,35 +5383,35 @@ impl IOleItemContainer { } pub unsafe fn LockContainer(&self, flock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LockContainer)(windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LockContainer)(windows_core::Interface::as_raw(self), flock.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetObject(&self, pszitem: P0, dwspeedneeded: u32, pbc: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pszitem.into_param().abi(), dwspeedneeded, pbc.into_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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetObjectStorage)(windows_core::Interface::as_raw(self), pszitem.into_param().abi(), pbc.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObjectStorage)(windows_core::Interface::as_raw(self), pszitem.param().abi(), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsRunning(&self, pszitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self), pszitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self), pszitem.param().abi()).ok() } } #[repr(C)] @@ -5440,9 +5440,9 @@ impl IOleLink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSourceMoniker(&self, pmk: P0, rclsid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourceMoniker)(windows_core::Interface::as_raw(self), pmk.into_param().abi(), 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 { @@ -5451,9 +5451,9 @@ impl IOleLink { } pub unsafe fn SetSourceDisplayName(&self, pszstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSourceDisplayName)(windows_core::Interface::as_raw(self), pszstatustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSourceDisplayName)(windows_core::Interface::as_raw(self), pszstatustext.param().abi()).ok() } pub unsafe fn GetSourceDisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5462,9 +5462,9 @@ impl IOleLink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToSource(&self, bindflags: u32, pbc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BindToSource)(windows_core::Interface::as_raw(self), bindflags, pbc.into_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() @@ -5479,9 +5479,9 @@ impl IOleLink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, pbc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), pbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), pbc.param().abi()).ok() } } #[repr(C)] @@ -5516,9 +5516,9 @@ windows_core::imp::interface_hierarchy!(IOleObject, windows_core::IUnknown); impl IOleObject { pub unsafe fn SetClientSite(&self, pclientsite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientSite)(windows_core::Interface::as_raw(self), pclientsite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientSite)(windows_core::Interface::as_raw(self), pclientsite.param().abi()).ok() } pub unsafe fn GetClientSite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5526,10 +5526,10 @@ impl IOleObject { } pub unsafe fn SetHostNames(&self, szcontainerapp: P0, szcontainerobj: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHostNames)(windows_core::Interface::as_raw(self), szcontainerapp.into_param().abi(), szcontainerobj.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHostNames)(windows_core::Interface::as_raw(self), szcontainerapp.param().abi(), szcontainerobj.param().abi()).ok() } pub unsafe fn Close(&self, dwsaveoption: OLECLOSE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), dwsaveoption.0 as _).ok() @@ -5537,9 +5537,9 @@ impl IOleObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMoniker(&self, dwwhichmoniker: OLEWHICHMK, pmk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMoniker)(windows_core::Interface::as_raw(self), dwwhichmoniker.0 as _, pmk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMoniker)(windows_core::Interface::as_raw(self), dwwhichmoniker.0 as _, pmk.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMoniker(&self, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK) -> windows_core::Result { @@ -5549,10 +5549,10 @@ impl IOleObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitFromData(&self, pdataobject: P0, fcreation: P1, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitFromData)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), fcreation.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).InitFromData)(windows_core::Interface::as_raw(self), pdataobject.param().abi(), fcreation.param().abi(), dwreserved).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClipboardData(&self, dwreserved: u32) -> windows_core::Result { @@ -5562,10 +5562,10 @@ impl IOleObject { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn DoVerb(&self, iverb: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, pactivesite: P0, lindex: i32, hwndparent: P1, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DoVerb)(windows_core::Interface::as_raw(self), iverb, lpmsg, pactivesite.into_param().abi(), lindex, hwndparent.into_param().abi(), lprcposrect).ok() + (windows_core::Interface::vtable(self).DoVerb)(windows_core::Interface::as_raw(self), iverb, lpmsg, pactivesite.param().abi(), lindex, hwndparent.param().abi(), lprcposrect).ok() } pub unsafe fn EnumVerbs(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5597,10 +5597,10 @@ impl IOleObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Advise(&self, padvsink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), padvsink.into_param().abi(), &mut result__).map(|| result__) + (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), dwconnection).ok() @@ -5683,9 +5683,9 @@ windows_core::imp::interface_hierarchy!(IOleParentUndoUnit, windows_core::IUnkno impl IOleParentUndoUnit { pub unsafe fn Do(&self, pundomanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Do)(windows_core::Interface::as_raw(self), pundomanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Do)(windows_core::Interface::as_raw(self), pundomanager.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5699,28 +5699,28 @@ impl IOleParentUndoUnit { } pub unsafe fn Open(&self, ppuu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), ppuu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), ppuu.param().abi()).ok() } pub unsafe fn Close(&self, ppuu: P0, fcommit: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), ppuu.into_param().abi(), fcommit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), ppuu.param().abi(), fcommit.param().abi()).ok() } pub unsafe fn Add(&self, puu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), puu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), puu.param().abi()).ok() } pub unsafe fn FindUnit(&self, puu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindUnit)(windows_core::Interface::as_raw(self), puu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FindUnit)(windows_core::Interface::as_raw(self), puu.param().abi()).ok() } pub unsafe fn GetParentState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5751,10 +5751,10 @@ impl IOleUILinkContainerA { } pub unsafe fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: P0, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.into_param().abi(), lenfilename, pcheaten, fvalidatesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, pcheaten, fvalidatesource.param().abi()).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), dwlink, core::mem::transmute(lplpszdisplayname.unwrap_or(std::ptr::null_mut())), lplenfilename, core::mem::transmute(lplpszfulllinktype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplpszshortlinktype.unwrap_or(std::ptr::null_mut())), lpfsourceavailable, lpfisselected).ok() @@ -5764,10 +5764,10 @@ impl IOleUILinkContainerA { } pub unsafe fn UpdateLink(&self, dwlink: u32, ferrormessage: P0, freserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.param().abi(), freserved.param().abi()).ok() } pub unsafe fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelLink)(windows_core::Interface::as_raw(self), dwlink).ok() @@ -5800,10 +5800,10 @@ impl IOleUILinkContainerW { } pub unsafe fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: P0, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.into_param().abi(), lenfilename, pcheaten, fvalidatesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, pcheaten, fvalidatesource.param().abi()).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), dwlink, core::mem::transmute(lplpszdisplayname.unwrap_or(std::ptr::null_mut())), lplenfilename, core::mem::transmute(lplpszfulllinktype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplpszshortlinktype.unwrap_or(std::ptr::null_mut())), lpfsourceavailable, lpfisselected).ok() @@ -5813,10 +5813,10 @@ impl IOleUILinkContainerW { } pub unsafe fn UpdateLink(&self, dwlink: u32, ferrormessage: P0, freserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.param().abi(), freserved.param().abi()).ok() } pub unsafe fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelLink)(windows_core::Interface::as_raw(self), dwlink).ok() @@ -5849,10 +5849,10 @@ impl IOleUILinkInfoA { } pub unsafe fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: P0, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.into_param().abi(), lenfilename, pcheaten, fvalidatesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, pcheaten, fvalidatesource.param().abi()).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).base__.GetLinkSource)(windows_core::Interface::as_raw(self), dwlink, core::mem::transmute(lplpszdisplayname.unwrap_or(std::ptr::null_mut())), lplenfilename, core::mem::transmute(lplpszfulllinktype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplpszshortlinktype.unwrap_or(std::ptr::null_mut())), lpfsourceavailable, lpfisselected).ok() @@ -5862,10 +5862,10 @@ impl IOleUILinkInfoA { } pub unsafe fn UpdateLink(&self, dwlink: u32, ferrormessage: P0, freserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.param().abi(), freserved.param().abi()).ok() } pub unsafe fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CancelLink)(windows_core::Interface::as_raw(self), dwlink).ok() @@ -5895,10 +5895,10 @@ impl IOleUILinkInfoW { } pub unsafe fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: P0, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.into_param().abi(), lenfilename, pcheaten, fvalidatesource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, pcheaten, fvalidatesource.param().abi()).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).base__.GetLinkSource)(windows_core::Interface::as_raw(self), dwlink, core::mem::transmute(lplpszdisplayname.unwrap_or(std::ptr::null_mut())), lplenfilename, core::mem::transmute(lplpszfulllinktype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lplpszshortlinktype.unwrap_or(std::ptr::null_mut())), lpfsourceavailable, lpfisselected).ok() @@ -5908,10 +5908,10 @@ impl IOleUILinkInfoW { } pub unsafe fn UpdateLink(&self, dwlink: u32, ferrormessage: P0, freserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateLink)(windows_core::Interface::as_raw(self), dwlink, ferrormessage.param().abi(), freserved.param().abi()).ok() } pub unsafe fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CancelLink)(windows_core::Interface::as_raw(self), dwlink).ok() @@ -5943,10 +5943,10 @@ impl IOleUIObjInfoA { } pub unsafe fn SetViewInfo(&self, dwobject: u32, hmetapict: P0, dvaspect: u32, ncurrentscale: i32, brelativetoorig: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), dwobject, hmetapict.into_param().abi(), dvaspect, ncurrentscale, brelativetoorig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), dwobject, hmetapict.param().abi(), dvaspect, ncurrentscale, brelativetoorig.param().abi()).ok() } } #[repr(C)] @@ -5975,10 +5975,10 @@ impl IOleUIObjInfoW { } pub unsafe fn SetViewInfo(&self, dwobject: u32, hmetapict: P0, dvaspect: u32, ncurrentscale: i32, brelativetoorig: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), dwobject, hmetapict.into_param().abi(), dvaspect, ncurrentscale, brelativetoorig.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetViewInfo)(windows_core::Interface::as_raw(self), dwobject, hmetapict.param().abi(), dvaspect, ncurrentscale, brelativetoorig.param().abi()).ok() } } #[repr(C)] @@ -5995,22 +5995,22 @@ windows_core::imp::interface_hierarchy!(IOleUndoManager, windows_core::IUnknown) impl IOleUndoManager { pub unsafe fn Open(&self, ppuu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), ppuu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), ppuu.param().abi()).ok() } pub unsafe fn Close(&self, ppuu: P0, fcommit: P1) -> windows_core::HRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), ppuu.into_param().abi(), fcommit.into_param().abi()) + (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self), ppuu.param().abi(), fcommit.param().abi()) } pub unsafe fn Add(&self, puu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), puu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), puu.param().abi()).ok() } pub unsafe fn GetOpenParentState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6018,21 +6018,21 @@ impl IOleUndoManager { } pub unsafe fn DiscardFrom(&self, puu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DiscardFrom)(windows_core::Interface::as_raw(self), puu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DiscardFrom)(windows_core::Interface::as_raw(self), puu.param().abi()).ok() } pub unsafe fn UndoTo(&self, puu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UndoTo)(windows_core::Interface::as_raw(self), puu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UndoTo)(windows_core::Interface::as_raw(self), puu.param().abi()).ok() } pub unsafe fn RedoTo(&self, puu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RedoTo)(windows_core::Interface::as_raw(self), puu.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RedoTo)(windows_core::Interface::as_raw(self), puu.param().abi()).ok() } pub unsafe fn EnumUndoable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6052,9 +6052,9 @@ impl IOleUndoManager { } pub unsafe fn Enable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -6078,9 +6078,9 @@ windows_core::imp::interface_hierarchy!(IOleUndoUnit, windows_core::IUnknown); impl IOleUndoUnit { pub unsafe fn Do(&self, pundomanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Do)(windows_core::Interface::as_raw(self), pundomanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Do)(windows_core::Interface::as_raw(self), pundomanager.param().abi()).ok() } pub unsafe fn GetDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6110,9 +6110,9 @@ impl IOleWindow { } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } } #[repr(C)] @@ -6127,10 +6127,10 @@ impl IParseDisplayName { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseDisplayName(&self, pbc: P0, pszdisplayname: P1, pcheaten: *mut u32, ppmkout: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pszdisplayname.into_param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() + (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), pbc.param().abi(), pszdisplayname.param().abi(), pcheaten, core::mem::transmute(ppmkout)).ok() } } #[repr(C)] @@ -6185,19 +6185,19 @@ impl IPersistPropertyBag { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Load(&self, ppropbag: P0, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppropbag.into_param().abi(), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppropbag.param().abi(), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Save(&self, ppropbag: P0, fcleardirty: P1, fsaveallproperties: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), ppropbag.into_param().abi(), fcleardirty.into_param().abi(), fsaveallproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), ppropbag.param().abi(), fcleardirty.param().abi(), fsaveallproperties.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6231,19 +6231,19 @@ impl IPersistPropertyBag2 { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Load(&self, ppropbag: P0, perrlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppropbag.into_param().abi(), perrlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), ppropbag.param().abi(), perrlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Save(&self, ppropbag: P0, fcleardirty: P1, fsaveallproperties: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), ppropbag.into_param().abi(), fcleardirty.into_param().abi(), fsaveallproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), ppropbag.param().abi(), fcleardirty.param().abi(), fsaveallproperties.param().abi()).ok() } pub unsafe fn IsDirty(&self) -> windows_core::HRESULT { (windows_core::Interface::vtable(self).IsDirty)(windows_core::Interface::as_raw(self)) @@ -6290,15 +6290,15 @@ impl IPicture { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Render(&self, hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), x, y, cx, cy, xsrc, ysrc, cxsrc, cysrc, prcwbounds).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), hdc.param().abi(), x, y, cx, cy, xsrc, ysrc, cxsrc, cysrc, prcwbounds).ok() } pub unsafe fn set_hPal(&self, hpal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).set_hPal)(windows_core::Interface::as_raw(self), hpal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).set_hPal)(windows_core::Interface::as_raw(self), hpal.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CurDC(&self) -> windows_core::Result { @@ -6308,9 +6308,9 @@ impl IPicture { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SelectPicture(&self, hdcin: P0, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut OLE_HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin.into_param().abi(), phdcout, phbmpout).ok() + (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin.param().abi(), phdcout, phbmpout).ok() } pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6318,9 +6318,9 @@ impl IPicture { } pub unsafe fn SetKeepOriginalFormat(&self, keep: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeepOriginalFormat)(windows_core::Interface::as_raw(self), keep.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeepOriginalFormat)(windows_core::Interface::as_raw(self), keep.param().abi()).ok() } pub unsafe fn PictureChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PictureChanged)(windows_core::Interface::as_raw(self)).ok() @@ -6328,11 +6328,11 @@ impl IPicture { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveAsFile(&self, pstream: P0, fsavememcopy: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SaveAsFile)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), fsavememcopy.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SaveAsFile)(windows_core::Interface::as_raw(self), pstream.param().abi(), fsavememcopy.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Attributes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6395,9 +6395,9 @@ impl IPicture2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Render(&self, hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), x, y, cx, cy, xsrc, ysrc, cxsrc, cysrc, prcwbounds).ok() + (windows_core::Interface::vtable(self).Render)(windows_core::Interface::as_raw(self), hdc.param().abi(), 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), hpal).ok() @@ -6410,9 +6410,9 @@ impl IPicture2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SelectPicture(&self, hdcin: P0, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin.into_param().abi(), phdcout, phbmpout).ok() + (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin.param().abi(), phdcout, phbmpout).ok() } pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6420,9 +6420,9 @@ impl IPicture2 { } pub unsafe fn SetKeepOriginalFormat(&self, keep: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKeepOriginalFormat)(windows_core::Interface::as_raw(self), keep.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKeepOriginalFormat)(windows_core::Interface::as_raw(self), keep.param().abi()).ok() } pub unsafe fn PictureChanged(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PictureChanged)(windows_core::Interface::as_raw(self)).ok() @@ -6430,11 +6430,11 @@ impl IPicture2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveAsFile(&self, pstream: P0, fsavememcopy: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SaveAsFile)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), fsavememcopy.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SaveAsFile)(windows_core::Interface::as_raw(self), pstream.param().abi(), fsavememcopy.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Attributes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6494,9 +6494,9 @@ impl IPointerInactive { } pub unsafe fn OnInactiveSetCursor(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInactiveSetCursor)(windows_core::Interface::as_raw(self), prectbounds, x, y, dwmousemsg, fsetalways.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInactiveSetCursor)(windows_core::Interface::as_raw(self), prectbounds, x, y, dwmousemsg, fsetalways.param().abi()).ok() } } #[repr(C)] @@ -6518,9 +6518,9 @@ impl IPrint { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn Print(&self, grfflags: u32, pptd: *mut *mut super::Com::DVTARGETDEVICE, pppageset: *mut *mut PAGESET, pstgmoptions: *mut super::Com::STGMEDIUM, pcallback: P0, nfirstpage: i32, pcpagesprinted: *mut i32, pnlastpage: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Print)(windows_core::Interface::as_raw(self), grfflags, pptd, pppageset, pstgmoptions, pcallback.into_param().abi(), nfirstpage, pcpagesprinted, pnlastpage).ok() + (windows_core::Interface::vtable(self).Print)(windows_core::Interface::as_raw(self), grfflags, pptd, pppageset, pstgmoptions, pcallback.param().abi(), nfirstpage, pcpagesprinted, pnlastpage).ok() } } #[repr(C)] @@ -6554,16 +6554,16 @@ windows_core::imp::interface_hierarchy!(IPropertyPage, windows_core::IUnknown); impl IPropertyPage { pub unsafe fn SetPageSite(&self, ppagesite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPageSite)(windows_core::Interface::as_raw(self), ppagesite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPageSite)(windows_core::Interface::as_raw(self), ppagesite.param().abi()).ok() } pub unsafe fn Activate(&self, hwndparent: P0, prect: *const super::super::Foundation::RECT, bmodal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), prect, bmodal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), prect, bmodal.param().abi()).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self)).ok() @@ -6588,9 +6588,9 @@ impl IPropertyPage { } pub unsafe fn Help(&self, pszhelpdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Help)(windows_core::Interface::as_raw(self), pszhelpdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Help)(windows_core::Interface::as_raw(self), pszhelpdir.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()> { @@ -6620,16 +6620,16 @@ windows_core::imp::interface_hierarchy!(IPropertyPage2, windows_core::IUnknown, impl IPropertyPage2 { pub unsafe fn SetPageSite(&self, ppagesite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPageSite)(windows_core::Interface::as_raw(self), ppagesite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPageSite)(windows_core::Interface::as_raw(self), ppagesite.param().abi()).ok() } pub unsafe fn Activate(&self, hwndparent: P0, prect: *const super::super::Foundation::RECT, bmodal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), prect, bmodal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), prect, bmodal.param().abi()).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Deactivate)(windows_core::Interface::as_raw(self)).ok() @@ -6654,9 +6654,9 @@ impl IPropertyPage2 { } pub unsafe fn Help(&self, pszhelpdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Help)(windows_core::Interface::as_raw(self), pszhelpdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Help)(windows_core::Interface::as_raw(self), pszhelpdir.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()> { @@ -6725,19 +6725,19 @@ impl IProtectedModeMenuServices { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn LoadMenu(&self, pszmodulename: P0, pszmenuname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadMenu)(windows_core::Interface::as_raw(self), pszmodulename.into_param().abi(), pszmenuname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LoadMenu)(windows_core::Interface::as_raw(self), pszmodulename.param().abi(), pszmenuname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn LoadMenuID(&self, pszmodulename: P0, wresourceid: u16) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadMenuID)(windows_core::Interface::as_raw(self), pszmodulename.into_param().abi(), 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)] @@ -6889,37 +6889,37 @@ impl IRecordInfo { } pub unsafe fn GetField(&self, pvdata: *const core::ffi::c_void, szfieldname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetField)(windows_core::Interface::as_raw(self), pvdata, szfieldname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetField)(windows_core::Interface::as_raw(self), pvdata, szfieldname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFieldNoCopy(&self, pvdata: *const core::ffi::c_void, szfieldname: P0, pvarfield: *mut windows_core::VARIANT, ppvdatacarray: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFieldNoCopy)(windows_core::Interface::as_raw(self), pvdata, szfieldname.into_param().abi(), core::mem::transmute(pvarfield), ppvdatacarray).ok() + (windows_core::Interface::vtable(self).GetFieldNoCopy)(windows_core::Interface::as_raw(self), pvdata, szfieldname.param().abi(), core::mem::transmute(pvarfield), ppvdatacarray).ok() } pub unsafe fn PutField(&self, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: P0, pvarfield: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutField)(windows_core::Interface::as_raw(self), wflags, pvdata, szfieldname.into_param().abi(), core::mem::transmute(pvarfield)).ok() + (windows_core::Interface::vtable(self).PutField)(windows_core::Interface::as_raw(self), wflags, pvdata, szfieldname.param().abi(), core::mem::transmute(pvarfield)).ok() } pub unsafe fn PutFieldNoCopy(&self, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: P0, pvarfield: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutFieldNoCopy)(windows_core::Interface::as_raw(self), wflags, pvdata, szfieldname.into_param().abi(), core::mem::transmute(pvarfield)).ok() + (windows_core::Interface::vtable(self).PutFieldNoCopy)(windows_core::Interface::as_raw(self), wflags, 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), pcnames, core::mem::transmute(rgbstrnames)).ok() } pub unsafe fn IsMatchingType(&self, precordinfo: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsMatchingType)(windows_core::Interface::as_raw(self), precordinfo.into_param().abi()) + (windows_core::Interface::vtable(self).IsMatchingType)(windows_core::Interface::as_raw(self), precordinfo.param().abi()) } pub unsafe fn RecordCreate(&self) -> *mut core::ffi::c_void { (windows_core::Interface::vtable(self).RecordCreate)(windows_core::Interface::as_raw(self)) @@ -6959,19 +6959,19 @@ windows_core::imp::interface_hierarchy!(ISimpleFrameSite, windows_core::IUnknown impl ISimpleFrameSite { pub unsafe fn PreMessageFilter(&self, hwnd: P0, msg: u32, wp: P1, lp: P2, plresult: *mut super::super::Foundation::LRESULT, pdwcookie: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PreMessageFilter)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wp.into_param().abi(), lp.into_param().abi(), plresult, pdwcookie).ok() + (windows_core::Interface::vtable(self).PreMessageFilter)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wp.param().abi(), lp.param().abi(), plresult, pdwcookie).ok() } pub unsafe fn PostMessageFilter(&self, hwnd: P0, msg: u32, wp: P1, lp: P2, plresult: *mut super::super::Foundation::LRESULT, dwcookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PostMessageFilter)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wp.into_param().abi(), lp.into_param().abi(), plresult, dwcookie).ok() + (windows_core::Interface::vtable(self).PostMessageFilter)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wp.param().abi(), lp.param().abi(), plresult, dwcookie).ok() } } #[repr(C)] @@ -6999,19 +6999,19 @@ impl ITypeChangeEvents { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RequestTypeChange(&self, changekind: CHANGEKIND, ptinfobefore: P0, pstrname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestTypeChange)(windows_core::Interface::as_raw(self), changekind, ptinfobefore.into_param().abi(), pstrname.into_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: P0, pstrname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AfterTypeChange)(windows_core::Interface::as_raw(self), changekind, ptinfoafter.into_param().abi(), pstrname.into_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)] @@ -7032,10 +7032,10 @@ impl ITypeFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFromTypeInfo(&self, ptypeinfo: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFromTypeInfo)(windows_core::Interface::as_raw(self), ptypeinfo.into_param().abi(), 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)] @@ -7076,9 +7076,9 @@ windows_core::imp::interface_hierarchy!(IVBFormat, windows_core::IUnknown); impl IVBFormat { pub unsafe fn Format(&self, vdata: *mut windows_core::VARIANT, bstrformat: P0, lpbuffer: *mut core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), core::mem::transmute(vdata), bstrformat.into_param().abi(), lpbuffer, cb, lcid, sfirstdayofweek, sfirstweekofyear, rcb).ok() + (windows_core::Interface::vtable(self).Format)(windows_core::Interface::as_raw(self), core::mem::transmute(vdata), bstrformat.param().abi(), lpbuffer, cb, lcid, sfirstdayofweek, sfirstweekofyear, rcb).ok() } } #[repr(C)] @@ -7125,17 +7125,17 @@ 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: P0, hdcdraw: P1, lprcbounds: Option<*const super::super::Foundation::RECTL>, lprcwbounds: Option<*const super::super::Foundation::RECTL>, pfncontinue: isize, dwcontinue: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hdctargetdev.into_param().abi(), hdcdraw.into_param().abi(), core::mem::transmute(lprcbounds.unwrap_or(std::ptr::null())), core::mem::transmute(lprcwbounds.unwrap_or(std::ptr::null())), pfncontinue, dwcontinue).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hdctargetdev.param().abi(), hdcdraw.param().abi(), core::mem::transmute(lprcbounds.unwrap_or(std::ptr::null())), core::mem::transmute(lprcwbounds.unwrap_or(std::ptr::null())), pfncontinue, 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: P0, ppcolorset: *mut *mut super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColorSet)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hictargetdev.into_param().abi(), ppcolorset).ok() + (windows_core::Interface::vtable(self).GetColorSet)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hictargetdev.param().abi(), 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<()> { @@ -7147,9 +7147,9 @@ impl IViewObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAdvise(&self, aspects: super::Com::DVASPECT, advf: u32, padvsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdvise)(windows_core::Interface::as_raw(self), aspects, advf, padvsink.into_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<()> { @@ -7187,17 +7187,17 @@ impl IViewObject2 { #[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: P0, hdcdraw: P1, lprcbounds: Option<*const super::super::Foundation::RECTL>, lprcwbounds: Option<*const super::super::Foundation::RECTL>, pfncontinue: isize, dwcontinue: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Draw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hdctargetdev.into_param().abi(), hdcdraw.into_param().abi(), core::mem::transmute(lprcbounds.unwrap_or(std::ptr::null())), core::mem::transmute(lprcwbounds.unwrap_or(std::ptr::null())), pfncontinue, dwcontinue).ok() + (windows_core::Interface::vtable(self).base__.Draw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hdctargetdev.param().abi(), hdcdraw.param().abi(), core::mem::transmute(lprcbounds.unwrap_or(std::ptr::null())), core::mem::transmute(lprcwbounds.unwrap_or(std::ptr::null())), pfncontinue, 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: P0, ppcolorset: *mut *mut super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetColorSet)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hictargetdev.into_param().abi(), ppcolorset).ok() + (windows_core::Interface::vtable(self).base__.GetColorSet)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hictargetdev.param().abi(), 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<()> { @@ -7209,9 +7209,9 @@ impl IViewObject2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAdvise(&self, aspects: super::Com::DVASPECT, advf: u32, padvsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAdvise)(windows_core::Interface::as_raw(self), aspects, advf, padvsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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<()> { @@ -7237,17 +7237,17 @@ impl IViewObjectEx { #[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: P0, hdcdraw: P1, lprcbounds: Option<*const super::super::Foundation::RECTL>, lprcwbounds: Option<*const super::super::Foundation::RECTL>, pfncontinue: isize, dwcontinue: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Draw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hdctargetdev.into_param().abi(), hdcdraw.into_param().abi(), core::mem::transmute(lprcbounds.unwrap_or(std::ptr::null())), core::mem::transmute(lprcwbounds.unwrap_or(std::ptr::null())), pfncontinue, dwcontinue).ok() + (windows_core::Interface::vtable(self).base__.base__.Draw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hdctargetdev.param().abi(), hdcdraw.param().abi(), core::mem::transmute(lprcbounds.unwrap_or(std::ptr::null())), core::mem::transmute(lprcwbounds.unwrap_or(std::ptr::null())), pfncontinue, 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: P0, ppcolorset: *mut *mut super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetColorSet)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hictargetdev.into_param().abi(), ppcolorset).ok() + (windows_core::Interface::vtable(self).base__.base__.GetColorSet)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, core::mem::transmute(ptd.unwrap_or(std::ptr::null())), hictargetdev.param().abi(), 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<()> { @@ -7259,9 +7259,9 @@ impl IViewObjectEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAdvise(&self, aspects: super::Com::DVASPECT, advf: u32, padvsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAdvise)(windows_core::Interface::as_raw(self), aspects, advf, padvsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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<()> { @@ -7291,10 +7291,10 @@ impl IViewObjectEx { #[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: P0, pextentinfo: *const DVEXTENTINFO) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNaturalExtent)(windows_core::Interface::as_raw(self), dwaspect, lindex, ptd, hictargetdev.into_param().abi(), pextentinfo, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNaturalExtent)(windows_core::Interface::as_raw(self), dwaspect, lindex, ptd, hictargetdev.param().abi(), pextentinfo, &mut result__).map(|| result__) } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs index 8aef24d1a5..c2ab41cdb7 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs @@ -28,24 +28,24 @@ windows_core::imp::interface_hierarchy!(IWPCProviderConfig, windows_core::IUnkno impl IWPCProviderConfig { pub unsafe fn GetUserSummary(&self, bstrsid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserSummary)(windows_core::Interface::as_raw(self), bstrsid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUserSummary)(windows_core::Interface::as_raw(self), bstrsid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Configure(&self, hwnd: P0, bstrsid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), bstrsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), hwnd.param().abi(), bstrsid.param().abi()).ok() } pub unsafe fn RequestOverride(&self, hwnd: P0, bstrpath: P1, dwflags: WPCFLAG_RESTRICTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestOverride)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), bstrpath.into_param().abi(), dwflags.0 as _).ok() + (windows_core::Interface::vtable(self).RequestOverride)(windows_core::Interface::as_raw(self), hwnd.param().abi(), bstrpath.param().abi(), dwflags.0 as _).ok() } } #[repr(C)] @@ -128,11 +128,11 @@ impl IWPCWebSettings { } pub unsafe fn RequestURLOverride(&self, hwnd: P0, pcszurl: P1, ppcszsuburls: Option<&[windows_core::PCWSTR]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestURLOverride)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pcszurl.into_param().abi(), ppcszsuburls.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppcszsuburls.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestURLOverride)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pcszurl.param().abi(), ppcszsuburls.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppcszsuburls.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| result__) } } #[repr(C)] @@ -150,27 +150,27 @@ impl IWindowsParentalControls { } pub unsafe fn GetUserSettings(&self, pcszsid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetUserSettings)(windows_core::Interface::as_raw(self), pcszsid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetUserSettings)(windows_core::Interface::as_raw(self), pcszsid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetWebSettings(&self, pcszsid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetWebSettings)(windows_core::Interface::as_raw(self), pcszsid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetWebSettings)(windows_core::Interface::as_raw(self), pcszsid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetWebFilterInfo(&self, pguidid: *mut windows_core::GUID, ppszname: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetWebFilterInfo)(windows_core::Interface::as_raw(self), pguidid, core::mem::transmute(ppszname.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetGamesSettings(&self, pcszsid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetGamesSettings)(windows_core::Interface::as_raw(self), pcszsid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetGamesSettings)(windows_core::Interface::as_raw(self), pcszsid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -187,17 +187,17 @@ impl IWindowsParentalControlsCore { } pub unsafe fn GetUserSettings(&self, pcszsid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUserSettings)(windows_core::Interface::as_raw(self), pcszsid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUserSettings)(windows_core::Interface::as_raw(self), pcszsid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetWebSettings(&self, pcszsid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWebSettings)(windows_core::Interface::as_raw(self), pcszsid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetWebSettings)(windows_core::Interface::as_raw(self), pcszsid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetWebFilterInfo(&self, pguidid: *mut windows_core::GUID, ppszname: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWebFilterInfo)(windows_core::Interface::as_raw(self), pguidid, core::mem::transmute(ppszname.unwrap_or(std::ptr::null_mut()))).ok() 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 2782f6eea0..61aec1f02f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn MSChapSrvChangePassword(servername: P0, username: P1, lmoldpresent: P2, lmoldowfpassword: *const LM_OWF_PASSWORD, lmnewowfpassword: *const LM_OWF_PASSWORD, ntoldowfpassword: *const LM_OWF_PASSWORD, ntnewowfpassword: *const LM_OWF_PASSWORD) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, lmoldpresent : super::super::Foundation:: BOOLEAN, lmoldowfpassword : *const LM_OWF_PASSWORD, lmnewowfpassword : *const LM_OWF_PASSWORD, ntoldowfpassword : *const LM_OWF_PASSWORD, ntnewowfpassword : *const LM_OWF_PASSWORD) -> u32); - MSChapSrvChangePassword(servername.into_param().abi(), username.into_param().abi(), lmoldpresent.into_param().abi(), lmoldowfpassword, lmnewowfpassword, ntoldowfpassword, ntnewowfpassword) + MSChapSrvChangePassword(servername.param().abi(), username.param().abi(), lmoldpresent.param().abi(), 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: P2, newpasswordencryptedwitholdlm: *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt: *const ENCRYPTED_LM_OWF_PASSWORD) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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 : super::super::Foundation:: BOOLEAN, newpasswordencryptedwitholdlm : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt : *const ENCRYPTED_LM_OWF_PASSWORD) -> u32); - MSChapSrvChangePassword2(servername.into_param().abi(), username.into_param().abi(), newpasswordencryptedwitholdnt, oldntowfpasswordencryptedwithnewnt, lmpresent.into_param().abi(), newpasswordencryptedwitholdlm, oldlmowfpasswordencryptedwithnewlmornt) + MSChapSrvChangePassword2(servername.param().abi(), username.param().abi(), newpasswordencryptedwitholdnt, oldntowfpasswordencryptedwithnewnt, lmpresent.param().abi(), newpasswordencryptedwitholdlm, oldlmowfpasswordencryptedwithnewlmornt) } #[repr(C)] pub struct CYPHER_BLOCK { 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 df2ffbf234..91894a53c7 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,34 +1,34 @@ #[inline] pub unsafe fn DisableThreadProfiling(performancedatahandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DisableThreadProfiling(performancedatahandle : super::super::super::Foundation:: HANDLE) -> u32); - DisableThreadProfiling(performancedatahandle.into_param().abi()) + DisableThreadProfiling(performancedatahandle.param().abi()) } #[inline] pub unsafe fn EnableThreadProfiling(threadhandle: P0, flags: u32, hardwarecounters: u64, performancedatahandle: *mut super::super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(threadhandle.into_param().abi(), flags, hardwarecounters, performancedatahandle) + EnableThreadProfiling(threadhandle.param().abi(), flags, hardwarecounters, performancedatahandle) } #[inline] pub unsafe fn QueryThreadProfiling(threadhandle: P0, enabled: *mut super::super::super::Foundation::BOOLEAN) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, enabled : *mut super::super::super::Foundation:: BOOLEAN) -> u32); - QueryThreadProfiling(threadhandle.into_param().abi(), enabled) + QueryThreadProfiling(threadhandle.param().abi(), enabled) } #[inline] pub unsafe fn ReadThreadProfilingData(performancedatahandle: P0, flags: u32, performancedata: *mut PERFORMANCE_DATA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReadThreadProfilingData(performancedatahandle : super::super::super::Foundation:: HANDLE, flags : u32, performancedata : *mut PERFORMANCE_DATA) -> u32); - ReadThreadProfilingData(performancedatahandle.into_param().abi(), flags, performancedata) + ReadThreadProfilingData(performancedatahandle.param().abi(), flags, performancedata) } pub const MaxHardwareCounterType: HARDWARE_COUNTER_TYPE = HARDWARE_COUNTER_TYPE(1i32); pub const PMCCounter: HARDWARE_COUNTER_TYPE = HARDWARE_COUNTER_TYPE(0i32); 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 28ba351602..53503c299f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs @@ -3,95 +3,95 @@ pub mod HardwareCounterProfiling; #[inline] pub unsafe fn BackupPerfRegistryToFileW(szfilename: P0, szcommentstring: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn BackupPerfRegistryToFileW(szfilename : windows_core::PCWSTR, szcommentstring : windows_core::PCWSTR) -> u32); - BackupPerfRegistryToFileW(szfilename.into_param().abi(), szcommentstring.into_param().abi()) + BackupPerfRegistryToFileW(szfilename.param().abi(), szcommentstring.param().abi()) } #[inline] pub unsafe fn InstallPerfDllA(szcomputername: P0, lpinifile: P1, dwflags: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpinifile.into_param().abi(), dwflags) + InstallPerfDllA(szcomputername.param().abi(), lpinifile.param().abi(), dwflags) } #[inline] pub unsafe fn InstallPerfDllW(szcomputername: P0, lpinifile: P1, dwflags: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpinifile.into_param().abi(), dwflags) + InstallPerfDllW(szcomputername.param().abi(), lpinifile.param().abi(), dwflags) } #[inline] pub unsafe fn LoadPerfCounterTextStringsA(lpcommandline: P0, bquietmodearg: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn LoadPerfCounterTextStringsA(lpcommandline : windows_core::PCSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); - LoadPerfCounterTextStringsA(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) + LoadPerfCounterTextStringsA(lpcommandline.param().abi(), bquietmodearg.param().abi()) } #[inline] pub unsafe fn LoadPerfCounterTextStringsW(lpcommandline: P0, bquietmodearg: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn LoadPerfCounterTextStringsW(lpcommandline : windows_core::PCWSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); - LoadPerfCounterTextStringsW(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) + LoadPerfCounterTextStringsW(lpcommandline.param().abi(), bquietmodearg.param().abi()) } #[inline] pub unsafe fn PdhAddCounterA(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddCounterA(hquery : isize, szfullcounterpath : windows_core::PCSTR, dwuserdata : usize, phcounter : *mut isize) -> u32); - PdhAddCounterA(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) + PdhAddCounterA(hquery, szfullcounterpath.param().abi(), dwuserdata, phcounter) } #[inline] pub unsafe fn PdhAddCounterW(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddCounterW(hquery : isize, szfullcounterpath : windows_core::PCWSTR, dwuserdata : usize, phcounter : *mut isize) -> u32); - PdhAddCounterW(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) + PdhAddCounterW(hquery, szfullcounterpath.param().abi(), dwuserdata, phcounter) } #[inline] pub unsafe fn PdhAddEnglishCounterA(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddEnglishCounterA(hquery : isize, szfullcounterpath : windows_core::PCSTR, dwuserdata : usize, phcounter : *mut isize) -> u32); - PdhAddEnglishCounterA(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) + PdhAddEnglishCounterA(hquery, szfullcounterpath.param().abi(), dwuserdata, phcounter) } #[inline] pub unsafe fn PdhAddEnglishCounterW(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhAddEnglishCounterW(hquery : isize, szfullcounterpath : windows_core::PCWSTR, dwuserdata : usize, phcounter : *mut isize) -> u32); - PdhAddEnglishCounterW(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) + PdhAddEnglishCounterW(hquery, szfullcounterpath.param().abi(), dwuserdata, phcounter) } #[inline] pub unsafe fn PdhBindInputDataSourceA(phdatasource: *mut isize, logfilenamelist: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhBindInputDataSourceA(phdatasource : *mut isize, logfilenamelist : windows_core::PCSTR) -> u32); - PdhBindInputDataSourceA(phdatasource, logfilenamelist.into_param().abi()) + PdhBindInputDataSourceA(phdatasource, logfilenamelist.param().abi()) } #[inline] pub unsafe fn PdhBindInputDataSourceW(phdatasource: *mut isize, logfilenamelist: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhBindInputDataSourceW(phdatasource : *mut isize, logfilenamelist : windows_core::PCWSTR) -> u32); - PdhBindInputDataSourceW(phdatasource, logfilenamelist.into_param().abi()) + PdhBindInputDataSourceW(phdatasource, logfilenamelist.param().abi()) } #[inline] pub unsafe fn PdhBrowseCountersA(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_A) -> u32 { @@ -136,10 +136,10 @@ pub unsafe fn PdhCollectQueryData(hquery: isize) -> u32 { #[inline] pub unsafe fn PdhCollectQueryDataEx(hquery: isize, dwintervaltime: u32, hnewdataevent: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhCollectQueryDataEx(hquery : isize, dwintervaltime : u32, hnewdataevent : super::super::Foundation:: HANDLE) -> u32); - PdhCollectQueryDataEx(hquery, dwintervaltime, hnewdataevent.into_param().abi()) + PdhCollectQueryDataEx(hquery, dwintervaltime, hnewdataevent.param().abi()) } #[inline] pub unsafe fn PdhCollectQueryDataWithTime(hquery: isize, plltimestamp: *mut i64) -> u32 { @@ -154,58 +154,58 @@ pub unsafe fn PdhComputeCounterStatistics(hcounter: isize, dwformat: PDH_FMT, dw #[inline] pub unsafe fn PdhConnectMachineA(szmachinename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhConnectMachineA(szmachinename : windows_core::PCSTR) -> u32); - PdhConnectMachineA(szmachinename.into_param().abi()) + PdhConnectMachineA(szmachinename.param().abi()) } #[inline] pub unsafe fn PdhConnectMachineW(szmachinename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhConnectMachineW(szmachinename : windows_core::PCWSTR) -> u32); - PdhConnectMachineW(szmachinename.into_param().abi()) + PdhConnectMachineW(szmachinename.param().abi()) } #[inline] pub unsafe fn PdhCreateSQLTablesA(szdatasource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhCreateSQLTablesA(szdatasource : windows_core::PCSTR) -> u32); - PdhCreateSQLTablesA(szdatasource.into_param().abi()) + PdhCreateSQLTablesA(szdatasource.param().abi()) } #[inline] pub unsafe fn PdhCreateSQLTablesW(szdatasource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhCreateSQLTablesW(szdatasource : windows_core::PCWSTR) -> u32); - PdhCreateSQLTablesW(szdatasource.into_param().abi()) + PdhCreateSQLTablesW(szdatasource.param().abi()) } #[inline] pub unsafe fn PdhEnumLogSetNamesA(szdatasource: P0, mszdatasetnamelist: windows_core::PSTR, pcchbufferlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumLogSetNamesA(szdatasource : windows_core::PCSTR, mszdatasetnamelist : windows_core::PSTR, pcchbufferlength : *mut u32) -> u32); - PdhEnumLogSetNamesA(szdatasource.into_param().abi(), core::mem::transmute(mszdatasetnamelist), pcchbufferlength) + PdhEnumLogSetNamesA(szdatasource.param().abi(), core::mem::transmute(mszdatasetnamelist), pcchbufferlength) } #[inline] pub unsafe fn PdhEnumLogSetNamesW(szdatasource: P0, mszdatasetnamelist: windows_core::PWSTR, pcchbufferlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumLogSetNamesW(szdatasource : windows_core::PCWSTR, mszdatasetnamelist : windows_core::PWSTR, pcchbufferlength : *mut u32) -> u32); - PdhEnumLogSetNamesW(szdatasource.into_param().abi(), core::mem::transmute(mszdatasetnamelist), pcchbufferlength) + PdhEnumLogSetNamesW(szdatasource.param().abi(), core::mem::transmute(mszdatasetnamelist), pcchbufferlength) } #[inline] pub unsafe fn PdhEnumMachinesA(szdatasource: P0, mszmachinelist: windows_core::PSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumMachinesA(szdatasource : windows_core::PCSTR, mszmachinelist : windows_core::PSTR, pcchbuffersize : *mut u32) -> u32); - PdhEnumMachinesA(szdatasource.into_param().abi(), core::mem::transmute(mszmachinelist), pcchbuffersize) + PdhEnumMachinesA(szdatasource.param().abi(), core::mem::transmute(mszmachinelist), pcchbuffersize) } #[inline] pub unsafe fn PdhEnumMachinesHA(hdatasource: isize, mszmachinelist: windows_core::PSTR, pcchbuffersize: *mut u32) -> u32 { @@ -220,136 +220,136 @@ pub unsafe fn PdhEnumMachinesHW(hdatasource: isize, mszmachinelist: windows_core #[inline] pub unsafe fn PdhEnumMachinesW(szdatasource: P0, mszmachinelist: windows_core::PWSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumMachinesW(szdatasource : windows_core::PCWSTR, mszmachinelist : windows_core::PWSTR, pcchbuffersize : *mut u32) -> u32); - PdhEnumMachinesW(szdatasource.into_param().abi(), core::mem::transmute(mszmachinelist), pcchbuffersize) + PdhEnumMachinesW(szdatasource.param().abi(), core::mem::transmute(mszmachinelist), pcchbuffersize) } #[inline] pub unsafe fn PdhEnumObjectItemsA(szdatasource: P0, szmachinename: P1, szobjectname: P2, mszcounterlist: windows_core::PSTR, pcchcounterlistlength: *mut u32, mszinstancelist: windows_core::PSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) + PdhEnumObjectItemsA(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectItemsHA(hdatasource: isize, szmachinename: P0, szobjectname: P1, mszcounterlist: windows_core::PSTR, pcchcounterlistlength: *mut u32, mszinstancelist: windows_core::PSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectItemsHA(hdatasource : isize, 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(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) + PdhEnumObjectItemsHA(hdatasource, szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectItemsHW(hdatasource: isize, szmachinename: P0, szobjectname: P1, mszcounterlist: windows_core::PWSTR, pcchcounterlistlength: *mut u32, mszinstancelist: windows_core::PWSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectItemsHW(hdatasource : isize, 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(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) + PdhEnumObjectItemsHW(hdatasource, szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectItemsW(szdatasource: P0, szmachinename: P1, szobjectname: P2, mszcounterlist: windows_core::PWSTR, pcchcounterlistlength: *mut u32, mszinstancelist: windows_core::PWSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) + PdhEnumObjectItemsW(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(mszcounterlist), pcchcounterlistlength, core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) } #[inline] pub unsafe fn PdhEnumObjectsA(szdatasource: P0, szmachinename: P1, mszobjectlist: windows_core::PSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szmachinename.into_param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) + PdhEnumObjectsA(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.param().abi()) } #[inline] pub unsafe fn PdhEnumObjectsHA(hdatasource: isize, szmachinename: P0, mszobjectlist: windows_core::PSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHA(hdatasource : isize, szmachinename : windows_core::PCSTR, mszobjectlist : windows_core::PSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); - PdhEnumObjectsHA(hdatasource, szmachinename.into_param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) + PdhEnumObjectsHA(hdatasource, szmachinename.param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.param().abi()) } #[inline] pub unsafe fn PdhEnumObjectsHW(hdatasource: isize, szmachinename: P0, mszobjectlist: windows_core::PWSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHW(hdatasource : isize, szmachinename : windows_core::PCWSTR, mszobjectlist : windows_core::PWSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); - PdhEnumObjectsHW(hdatasource, szmachinename.into_param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) + PdhEnumObjectsHW(hdatasource, szmachinename.param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.param().abi()) } #[inline] pub unsafe fn PdhEnumObjectsW(szdatasource: P0, szmachinename: P1, mszobjectlist: windows_core::PWSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), szmachinename.into_param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) + PdhEnumObjectsW(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.param().abi()) } #[inline] pub unsafe fn PdhExpandCounterPathA(szwildcardpath: P0, mszexpandedpathlist: windows_core::PSTR, pcchpathlistlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandCounterPathA(szwildcardpath : windows_core::PCSTR, mszexpandedpathlist : windows_core::PSTR, pcchpathlistlength : *mut u32) -> u32); - PdhExpandCounterPathA(szwildcardpath.into_param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength) + PdhExpandCounterPathA(szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength) } #[inline] pub unsafe fn PdhExpandCounterPathW(szwildcardpath: P0, mszexpandedpathlist: windows_core::PWSTR, pcchpathlistlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandCounterPathW(szwildcardpath : windows_core::PCWSTR, mszexpandedpathlist : windows_core::PWSTR, pcchpathlistlength : *mut u32) -> u32); - PdhExpandCounterPathW(szwildcardpath.into_param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength) + PdhExpandCounterPathW(szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength) } #[inline] pub unsafe fn PdhExpandWildCardPathA(szdatasource: P0, szwildcardpath: P1, mszexpandedpathlist: windows_core::PSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szwildcardpath.into_param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) + PdhExpandWildCardPathA(szdatasource.param().abi(), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) } #[inline] pub unsafe fn PdhExpandWildCardPathHA(hdatasource: isize, szwildcardpath: P0, mszexpandedpathlist: windows_core::PSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathHA(hdatasource : isize, szwildcardpath : windows_core::PCSTR, mszexpandedpathlist : windows_core::PSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); - PdhExpandWildCardPathHA(hdatasource, szwildcardpath.into_param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) + PdhExpandWildCardPathHA(hdatasource, szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) } #[inline] pub unsafe fn PdhExpandWildCardPathHW(hdatasource: isize, szwildcardpath: P0, mszexpandedpathlist: windows_core::PWSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathHW(hdatasource : isize, szwildcardpath : windows_core::PCWSTR, mszexpandedpathlist : windows_core::PWSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); - PdhExpandWildCardPathHW(hdatasource, szwildcardpath.into_param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) + PdhExpandWildCardPathHW(hdatasource, szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) } #[inline] pub unsafe fn PdhExpandWildCardPathW(szdatasource: P0, szwildcardpath: P1, mszexpandedpathlist: windows_core::PWSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), szwildcardpath.into_param().abi(), core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) + PdhExpandWildCardPathW(szdatasource.param().abi(), szwildcardpath.param().abi(), core::mem::transmute(mszexpandedpathlist), 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 { @@ -359,18 +359,18 @@ pub unsafe fn PdhFormatFromRawValue(dwcountertype: u32, dwformat: PDH_FMT, ptime #[inline] pub unsafe fn PdhGetCounterInfoA(hcounter: isize, bretrieveexplaintext: P0, pdwbuffersize: *mut u32, lpbuffer: Option<*mut PDH_COUNTER_INFO_A>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoA(hcounter : isize, bretrieveexplaintext : super::super::Foundation:: BOOLEAN, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_A) -> u32); - PdhGetCounterInfoA(hcounter, bretrieveexplaintext.into_param().abi(), pdwbuffersize, core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut()))) + PdhGetCounterInfoA(hcounter, bretrieveexplaintext.param().abi(), pdwbuffersize, core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn PdhGetCounterInfoW(hcounter: isize, bretrieveexplaintext: P0, pdwbuffersize: *mut u32, lpbuffer: Option<*mut PDH_COUNTER_INFO_W>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoW(hcounter : isize, bretrieveexplaintext : super::super::Foundation:: BOOLEAN, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_W) -> u32); - PdhGetCounterInfoW(hcounter, bretrieveexplaintext.into_param().abi(), pdwbuffersize, core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut()))) + PdhGetCounterInfoW(hcounter, bretrieveexplaintext.param().abi(), pdwbuffersize, core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn PdhGetCounterTimeBase(hcounter: isize, ptimebase: *mut i64) -> u32 { @@ -380,10 +380,10 @@ pub unsafe fn PdhGetCounterTimeBase(hcounter: isize, ptimebase: *mut i64) -> u32 #[inline] pub unsafe fn PdhGetDataSourceTimeRangeA(szdatasource: P0, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDataSourceTimeRangeA(szdatasource : windows_core::PCSTR, pdwnumentries : *mut u32, pinfo : *mut PDH_TIME_INFO, pdwbuffersize : *mut u32) -> u32); - PdhGetDataSourceTimeRangeA(szdatasource.into_param().abi(), pdwnumentries, pinfo, pdwbuffersize) + PdhGetDataSourceTimeRangeA(szdatasource.param().abi(), pdwnumentries, pinfo, pdwbuffersize) } #[inline] pub unsafe fn PdhGetDataSourceTimeRangeH(hdatasource: isize, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> u32 { @@ -393,82 +393,82 @@ pub unsafe fn PdhGetDataSourceTimeRangeH(hdatasource: isize, pdwnumentries: *mut #[inline] pub unsafe fn PdhGetDataSourceTimeRangeW(szdatasource: P0, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDataSourceTimeRangeW(szdatasource : windows_core::PCWSTR, pdwnumentries : *mut u32, pinfo : *mut PDH_TIME_INFO, pdwbuffersize : *mut u32) -> u32); - PdhGetDataSourceTimeRangeW(szdatasource.into_param().abi(), pdwnumentries, pinfo, pdwbuffersize) + PdhGetDataSourceTimeRangeW(szdatasource.param().abi(), pdwnumentries, pinfo, pdwbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfCounterA(szdatasource: P0, szmachinename: P1, szobjectname: P2, szdefaultcountername: windows_core::PSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfCounterA(szdatasource : windows_core::PCSTR, szmachinename : windows_core::PCSTR, szobjectname : windows_core::PCSTR, szdefaultcountername : windows_core::PSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfCounterA(szdatasource.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) + PdhGetDefaultPerfCounterA(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfCounterHA(hdatasource: isize, szmachinename: P0, szobjectname: P1, szdefaultcountername: windows_core::PSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfCounterHA(hdatasource : isize, szmachinename : windows_core::PCSTR, szobjectname : windows_core::PCSTR, szdefaultcountername : windows_core::PSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfCounterHA(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) + PdhGetDefaultPerfCounterHA(hdatasource, szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfCounterHW(hdatasource: isize, szmachinename: P0, szobjectname: P1, szdefaultcountername: windows_core::PWSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfCounterHW(hdatasource : isize, szmachinename : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szdefaultcountername : windows_core::PWSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfCounterHW(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) + PdhGetDefaultPerfCounterHW(hdatasource, szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfCounterW(szdatasource: P0, szmachinename: P1, szobjectname: P2, szdefaultcountername: windows_core::PWSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfCounterW(szdatasource : windows_core::PCWSTR, szmachinename : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szdefaultcountername : windows_core::PWSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfCounterW(szdatasource.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) + PdhGetDefaultPerfCounterW(szdatasource.param().abi(), szmachinename.param().abi(), szobjectname.param().abi(), core::mem::transmute(szdefaultcountername), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfObjectA(szdatasource: P0, szmachinename: P1, szdefaultobjectname: windows_core::PSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfObjectA(szdatasource : windows_core::PCSTR, szmachinename : windows_core::PCSTR, szdefaultobjectname : windows_core::PSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfObjectA(szdatasource.into_param().abi(), szmachinename.into_param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) + PdhGetDefaultPerfObjectA(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfObjectHA(hdatasource: isize, szmachinename: P0, szdefaultobjectname: windows_core::PSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfObjectHA(hdatasource : isize, szmachinename : windows_core::PCSTR, szdefaultobjectname : windows_core::PSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfObjectHA(hdatasource, szmachinename.into_param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) + PdhGetDefaultPerfObjectHA(hdatasource, szmachinename.param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfObjectHW(hdatasource: isize, szmachinename: P0, szdefaultobjectname: windows_core::PWSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfObjectHW(hdatasource : isize, szmachinename : windows_core::PCWSTR, szdefaultobjectname : windows_core::PWSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfObjectHW(hdatasource, szmachinename.into_param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) + PdhGetDefaultPerfObjectHW(hdatasource, szmachinename.param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDefaultPerfObjectW(szdatasource: P0, szmachinename: P1, szdefaultobjectname: windows_core::PWSTR, pcchbuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhGetDefaultPerfObjectW(szdatasource : windows_core::PCWSTR, szmachinename : windows_core::PCWSTR, szdefaultobjectname : windows_core::PWSTR, pcchbuffersize : *mut u32) -> u32); - PdhGetDefaultPerfObjectW(szdatasource.into_param().abi(), szmachinename.into_param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) + PdhGetDefaultPerfObjectW(szdatasource.param().abi(), szmachinename.param().abi(), core::mem::transmute(szdefaultobjectname), pcchbuffersize) } #[inline] pub unsafe fn PdhGetDllVersion(lpdwversion: Option<*mut PDH_DLL_VERSION>) -> u32 { @@ -523,36 +523,36 @@ pub unsafe fn PdhIsRealTimeQuery(hquery: isize) -> super::super::Foundation::BOO #[inline] pub unsafe fn PdhLookupPerfIndexByNameA(szmachinename: P0, sznamebuffer: P1, pdwindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhLookupPerfIndexByNameA(szmachinename : windows_core::PCSTR, sznamebuffer : windows_core::PCSTR, pdwindex : *mut u32) -> u32); - PdhLookupPerfIndexByNameA(szmachinename.into_param().abi(), sznamebuffer.into_param().abi(), pdwindex) + PdhLookupPerfIndexByNameA(szmachinename.param().abi(), sznamebuffer.param().abi(), pdwindex) } #[inline] pub unsafe fn PdhLookupPerfIndexByNameW(szmachinename: P0, sznamebuffer: P1, pdwindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhLookupPerfIndexByNameW(szmachinename : windows_core::PCWSTR, sznamebuffer : windows_core::PCWSTR, pdwindex : *mut u32) -> u32); - PdhLookupPerfIndexByNameW(szmachinename.into_param().abi(), sznamebuffer.into_param().abi(), pdwindex) + PdhLookupPerfIndexByNameW(szmachinename.param().abi(), sznamebuffer.param().abi(), pdwindex) } #[inline] pub unsafe fn PdhLookupPerfNameByIndexA(szmachinename: P0, dwnameindex: u32, sznamebuffer: windows_core::PSTR, pcchnamebuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwnameindex, core::mem::transmute(sznamebuffer), pcchnamebuffersize) + PdhLookupPerfNameByIndexA(szmachinename.param().abi(), dwnameindex, core::mem::transmute(sznamebuffer), pcchnamebuffersize) } #[inline] pub unsafe fn PdhLookupPerfNameByIndexW(szmachinename: P0, dwnameindex: u32, sznamebuffer: windows_core::PWSTR, pcchnamebuffersize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwnameindex, core::mem::transmute(sznamebuffer), pcchnamebuffersize) + PdhLookupPerfNameByIndexW(szmachinename.param().abi(), dwnameindex, core::mem::transmute(sznamebuffer), pcchnamebuffersize) } #[inline] pub unsafe fn PdhMakeCounterPathA(pcounterpathelements: *const PDH_COUNTER_PATH_ELEMENTS_A, szfullpathbuffer: windows_core::PSTR, pcchbuffersize: *mut u32, dwflags: PDH_PATH_FLAGS) -> u32 { @@ -567,28 +567,28 @@ pub unsafe fn PdhMakeCounterPathW(pcounterpathelements: *const PDH_COUNTER_PATH_ #[inline] pub unsafe fn PdhOpenLogA(szlogfilename: P0, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: isize, dwmaxsize: u32, szusercaption: P1, phlog: *mut isize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenLogA(szlogfilename : windows_core::PCSTR, dwaccessflags : PDH_LOG, lpdwlogtype : *mut PDH_LOG_TYPE, hquery : isize, dwmaxsize : u32, szusercaption : windows_core::PCSTR, phlog : *mut isize) -> u32); - PdhOpenLogA(szlogfilename.into_param().abi(), dwaccessflags, lpdwlogtype, hquery, dwmaxsize, szusercaption.into_param().abi(), phlog) + PdhOpenLogA(szlogfilename.param().abi(), dwaccessflags, lpdwlogtype, hquery, dwmaxsize, szusercaption.param().abi(), phlog) } #[inline] pub unsafe fn PdhOpenLogW(szlogfilename: P0, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: isize, dwmaxsize: u32, szusercaption: P1, phlog: *mut isize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenLogW(szlogfilename : windows_core::PCWSTR, dwaccessflags : PDH_LOG, lpdwlogtype : *mut PDH_LOG_TYPE, hquery : isize, dwmaxsize : u32, szusercaption : windows_core::PCWSTR, phlog : *mut isize) -> u32); - PdhOpenLogW(szlogfilename.into_param().abi(), dwaccessflags, lpdwlogtype, hquery, dwmaxsize, szusercaption.into_param().abi(), phlog) + PdhOpenLogW(szlogfilename.param().abi(), dwaccessflags, lpdwlogtype, hquery, dwmaxsize, szusercaption.param().abi(), phlog) } #[inline] pub unsafe fn PdhOpenQueryA(szdatasource: P0, dwuserdata: usize, phquery: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenQueryA(szdatasource : windows_core::PCSTR, dwuserdata : usize, phquery : *mut isize) -> u32); - PdhOpenQueryA(szdatasource.into_param().abi(), dwuserdata, phquery) + PdhOpenQueryA(szdatasource.param().abi(), dwuserdata, phquery) } #[inline] pub unsafe fn PdhOpenQueryH(hdatasource: isize, dwuserdata: usize, phquery: *mut isize) -> u32 { @@ -598,42 +598,42 @@ pub unsafe fn PdhOpenQueryH(hdatasource: isize, dwuserdata: usize, phquery: *mut #[inline] pub unsafe fn PdhOpenQueryW(szdatasource: P0, dwuserdata: usize, phquery: *mut isize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhOpenQueryW(szdatasource : windows_core::PCWSTR, dwuserdata : usize, phquery : *mut isize) -> u32); - PdhOpenQueryW(szdatasource.into_param().abi(), dwuserdata, phquery) + PdhOpenQueryW(szdatasource.param().abi(), dwuserdata, phquery) } #[inline] pub unsafe fn PdhParseCounterPathA(szfullpathbuffer: P0, pcounterpathelements: Option<*mut PDH_COUNTER_PATH_ELEMENTS_A>, pdwbuffersize: *mut u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(std::ptr::null_mut())), pdwbuffersize, dwflags) + PdhParseCounterPathA(szfullpathbuffer.param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(std::ptr::null_mut())), pdwbuffersize, dwflags) } #[inline] pub unsafe fn PdhParseCounterPathW(szfullpathbuffer: P0, pcounterpathelements: Option<*mut PDH_COUNTER_PATH_ELEMENTS_W>, pdwbuffersize: *mut u32, dwflags: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(std::ptr::null_mut())), pdwbuffersize, dwflags) + PdhParseCounterPathW(szfullpathbuffer.param().abi(), core::mem::transmute(pcounterpathelements.unwrap_or(std::ptr::null_mut())), pdwbuffersize, dwflags) } #[inline] pub unsafe fn PdhParseInstanceNameA(szinstancestring: P0, szinstancename: windows_core::PSTR, pcchinstancenamelength: *mut u32, szparentname: windows_core::PSTR, pcchparentnamelength: *mut u32, lpindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhParseInstanceNameA(szinstancestring : windows_core::PCSTR, szinstancename : windows_core::PSTR, pcchinstancenamelength : *mut u32, szparentname : windows_core::PSTR, pcchparentnamelength : *mut u32, lpindex : *mut u32) -> u32); - PdhParseInstanceNameA(szinstancestring.into_param().abi(), core::mem::transmute(szinstancename), pcchinstancenamelength, core::mem::transmute(szparentname), pcchparentnamelength, lpindex) + PdhParseInstanceNameA(szinstancestring.param().abi(), core::mem::transmute(szinstancename), pcchinstancenamelength, core::mem::transmute(szparentname), pcchparentnamelength, lpindex) } #[inline] pub unsafe fn PdhParseInstanceNameW(szinstancestring: P0, szinstancename: windows_core::PWSTR, pcchinstancenamelength: *mut u32, szparentname: windows_core::PWSTR, pcchparentnamelength: *mut u32, lpindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhParseInstanceNameW(szinstancestring : windows_core::PCWSTR, szinstancename : windows_core::PWSTR, pcchinstancenamelength : *mut u32, szparentname : windows_core::PWSTR, pcchparentnamelength : *mut u32, lpindex : *mut u32) -> u32); - PdhParseInstanceNameW(szinstancestring.into_param().abi(), core::mem::transmute(szinstancename), pcchinstancenamelength, core::mem::transmute(szparentname), pcchparentnamelength, lpindex) + PdhParseInstanceNameW(szinstancestring.param().abi(), core::mem::transmute(szinstancename), pcchinstancenamelength, core::mem::transmute(szparentname), pcchparentnamelength, lpindex) } #[inline] pub unsafe fn PdhReadRawLogRecord(hlog: isize, ftrecord: super::super::Foundation::FILETIME, prawlogrecord: Option<*mut PDH_RAW_LOG_RECORD>, pdwbufferlength: *mut u32) -> u32 { @@ -648,18 +648,18 @@ pub unsafe fn PdhRemoveCounter(hcounter: isize) -> u32 { #[inline] pub unsafe fn PdhSelectDataSourceA(hwndowner: P0, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: windows_core::PSTR, pcchbufferlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndowner.into_param().abi(), dwflags, core::mem::transmute(szdatasource), pcchbufferlength) + PdhSelectDataSourceA(hwndowner.param().abi(), dwflags, core::mem::transmute(szdatasource), pcchbufferlength) } #[inline] pub unsafe fn PdhSelectDataSourceW(hwndowner: P0, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: windows_core::PWSTR, pcchbufferlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndowner.into_param().abi(), dwflags, core::mem::transmute(szdatasource), pcchbufferlength) + PdhSelectDataSourceW(hwndowner.param().abi(), dwflags, core::mem::transmute(szdatasource), pcchbufferlength) } #[inline] pub unsafe fn PdhSetCounterScaleFactor(hcounter: isize, lfactor: i32) -> u32 { @@ -684,10 +684,10 @@ pub unsafe fn PdhSetQueryTimeRange(hquery: isize, pinfo: *const PDH_TIME_INFO) - #[inline] pub unsafe fn PdhUpdateLogA(hlog: isize, szuserstring: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhUpdateLogA(hlog : isize, szuserstring : windows_core::PCSTR) -> u32); - PdhUpdateLogA(hlog, szuserstring.into_param().abi()) + PdhUpdateLogA(hlog, szuserstring.param().abi()) } #[inline] pub unsafe fn PdhUpdateLogFileCatalog(hlog: isize) -> u32 { @@ -697,220 +697,220 @@ pub unsafe fn PdhUpdateLogFileCatalog(hlog: isize) -> u32 { #[inline] pub unsafe fn PdhUpdateLogW(hlog: isize, szuserstring: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhUpdateLogW(hlog : isize, szuserstring : windows_core::PCWSTR) -> u32); - PdhUpdateLogW(hlog, szuserstring.into_param().abi()) + PdhUpdateLogW(hlog, szuserstring.param().abi()) } #[inline] pub unsafe fn PdhValidatePathA(szfullpathbuffer: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhValidatePathA(szfullpathbuffer : windows_core::PCSTR) -> u32); - PdhValidatePathA(szfullpathbuffer.into_param().abi()) + PdhValidatePathA(szfullpathbuffer.param().abi()) } #[inline] pub unsafe fn PdhValidatePathExA(hdatasource: isize, szfullpathbuffer: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhValidatePathExA(hdatasource : isize, szfullpathbuffer : windows_core::PCSTR) -> u32); - PdhValidatePathExA(hdatasource, szfullpathbuffer.into_param().abi()) + PdhValidatePathExA(hdatasource, szfullpathbuffer.param().abi()) } #[inline] pub unsafe fn PdhValidatePathExW(hdatasource: isize, szfullpathbuffer: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhValidatePathExW(hdatasource : isize, szfullpathbuffer : windows_core::PCWSTR) -> u32); - PdhValidatePathExW(hdatasource, szfullpathbuffer.into_param().abi()) + PdhValidatePathExW(hdatasource, szfullpathbuffer.param().abi()) } #[inline] pub unsafe fn PdhValidatePathW(szfullpathbuffer: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhValidatePathW(szfullpathbuffer : windows_core::PCWSTR) -> u32); - PdhValidatePathW(szfullpathbuffer.into_param().abi()) + PdhValidatePathW(szfullpathbuffer.param().abi()) } #[inline] pub unsafe fn PdhVerifySQLDBA(szdatasource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhVerifySQLDBA(szdatasource : windows_core::PCSTR) -> u32); - PdhVerifySQLDBA(szdatasource.into_param().abi()) + PdhVerifySQLDBA(szdatasource.param().abi()) } #[inline] pub unsafe fn PdhVerifySQLDBW(szdatasource: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("pdh.dll" "system" fn PdhVerifySQLDBW(szdatasource : windows_core::PCWSTR) -> u32); - PdhVerifySQLDBW(szdatasource.into_param().abi()) + PdhVerifySQLDBW(szdatasource.param().abi()) } #[inline] pub unsafe fn PerfAddCounters(hquery: P0, pcounters: *mut PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfAddCounters(hquery : super::super::Foundation:: HANDLE, pcounters : *mut PERF_COUNTER_IDENTIFIER, cbcounters : u32) -> u32); - PerfAddCounters(hquery.into_param().abi(), pcounters, cbcounters) + PerfAddCounters(hquery.param().abi(), pcounters, cbcounters) } #[inline] pub unsafe fn PerfCloseQueryHandle(hquery: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfCloseQueryHandle(hquery : super::super::Foundation:: HANDLE) -> u32); - PerfCloseQueryHandle(hquery.into_param().abi()) + PerfCloseQueryHandle(hquery.param().abi()) } #[inline] pub unsafe fn PerfCreateInstance(providerhandle: P0, countersetguid: *const windows_core::GUID, name: P1, id: u32) -> *mut PERF_COUNTERSET_INSTANCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(providerhandle.into_param().abi(), countersetguid, name.into_param().abi(), id) + PerfCreateInstance(providerhandle.param().abi(), countersetguid, name.param().abi(), id) } #[inline] pub unsafe fn PerfDecrementULongCounterValue(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfDecrementULongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u32) -> u32); - PerfDecrementULongCounterValue(provider.into_param().abi(), instance, counterid, value) + PerfDecrementULongCounterValue(provider.param().abi(), instance, counterid, value) } #[inline] pub unsafe fn PerfDecrementULongLongCounterValue(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfDecrementULongLongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u64) -> u32); - PerfDecrementULongLongCounterValue(provider.into_param().abi(), instance, counterid, value) + PerfDecrementULongLongCounterValue(provider.param().abi(), instance, counterid, value) } #[inline] pub unsafe fn PerfDeleteCounters(hquery: P0, pcounters: *mut PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfDeleteCounters(hquery : super::super::Foundation:: HANDLE, pcounters : *mut PERF_COUNTER_IDENTIFIER, cbcounters : u32) -> u32); - PerfDeleteCounters(hquery.into_param().abi(), pcounters, cbcounters) + PerfDeleteCounters(hquery.param().abi(), pcounters, cbcounters) } #[inline] pub unsafe fn PerfDeleteInstance(provider: P0, instanceblock: *const PERF_COUNTERSET_INSTANCE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfDeleteInstance(provider : super::super::Foundation:: HANDLE, instanceblock : *const PERF_COUNTERSET_INSTANCE) -> u32); - PerfDeleteInstance(provider.into_param().abi(), instanceblock) + PerfDeleteInstance(provider.param().abi(), instanceblock) } #[inline] pub unsafe fn PerfEnumerateCounterSet(szmachine: P0, pcountersetids: Option<&mut [windows_core::GUID]>, pccountersetidsactual: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfEnumerateCounterSet(szmachine : windows_core::PCWSTR, pcountersetids : *mut windows_core::GUID, ccountersetids : u32, pccountersetidsactual : *mut u32) -> u32); - PerfEnumerateCounterSet(szmachine.into_param().abi(), core::mem::transmute(pcountersetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcountersetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pccountersetidsactual) + PerfEnumerateCounterSet(szmachine.param().abi(), core::mem::transmute(pcountersetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcountersetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pccountersetidsactual) } #[inline] pub unsafe fn PerfEnumerateCounterSetInstances(szmachine: P0, pcountersetid: *const windows_core::GUID, pinstances: Option<*mut PERF_INSTANCE_HEADER>, cbinstances: u32, pcbinstancesactual: *mut u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pcountersetid, core::mem::transmute(pinstances.unwrap_or(std::ptr::null_mut())), cbinstances, pcbinstancesactual) + PerfEnumerateCounterSetInstances(szmachine.param().abi(), pcountersetid, core::mem::transmute(pinstances.unwrap_or(std::ptr::null_mut())), cbinstances, pcbinstancesactual) } #[inline] pub unsafe fn PerfIncrementULongCounterValue(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfIncrementULongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u32) -> u32); - PerfIncrementULongCounterValue(provider.into_param().abi(), instance, counterid, value) + PerfIncrementULongCounterValue(provider.param().abi(), instance, counterid, value) } #[inline] pub unsafe fn PerfIncrementULongLongCounterValue(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfIncrementULongLongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u64) -> u32); - PerfIncrementULongLongCounterValue(provider.into_param().abi(), instance, counterid, value) + PerfIncrementULongLongCounterValue(provider.param().abi(), instance, counterid, value) } #[inline] pub unsafe fn PerfOpenQueryHandle(szmachine: P0, phquery: *mut super::super::Foundation::HANDLE) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfOpenQueryHandle(szmachine : windows_core::PCWSTR, phquery : *mut super::super::Foundation:: HANDLE) -> u32); - PerfOpenQueryHandle(szmachine.into_param().abi(), phquery) + PerfOpenQueryHandle(szmachine.param().abi(), phquery) } #[inline] pub unsafe fn PerfQueryCounterData(hquery: P0, pcounterblock: Option<*mut PERF_DATA_HEADER>, cbcounterblock: u32, pcbcounterblockactual: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hquery.into_param().abi(), core::mem::transmute(pcounterblock.unwrap_or(std::ptr::null_mut())), cbcounterblock, pcbcounterblockactual) + PerfQueryCounterData(hquery.param().abi(), core::mem::transmute(pcounterblock.unwrap_or(std::ptr::null_mut())), cbcounterblock, pcbcounterblockactual) } #[inline] pub unsafe fn PerfQueryCounterInfo(hquery: P0, pcounters: Option<*mut PERF_COUNTER_IDENTIFIER>, cbcounters: u32, pcbcountersactual: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hquery.into_param().abi(), core::mem::transmute(pcounters.unwrap_or(std::ptr::null_mut())), cbcounters, pcbcountersactual) + PerfQueryCounterInfo(hquery.param().abi(), core::mem::transmute(pcounters.unwrap_or(std::ptr::null_mut())), cbcounters, 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 where - P0: windows_core::IntoParam, + 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.into_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()), 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()), pcbreginfoactual) } #[inline] pub unsafe fn PerfQueryInstance(providerhandle: P0, countersetguid: *const windows_core::GUID, name: P1, id: u32) -> *mut PERF_COUNTERSET_INSTANCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(providerhandle.into_param().abi(), countersetguid, name.into_param().abi(), id) + PerfQueryInstance(providerhandle.param().abi(), countersetguid, name.param().abi(), id) } #[inline] pub unsafe fn PerfSetCounterRefValue(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, address: *const core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(provider.into_param().abi(), instance, counterid, address) + PerfSetCounterRefValue(provider.param().abi(), instance, counterid, address) } #[inline] pub unsafe fn PerfSetCounterSetInfo(providerhandle: P0, template: *mut PERF_COUNTERSET_INFO, templatesize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfSetCounterSetInfo(providerhandle : super::super::Foundation:: HANDLE, template : *mut PERF_COUNTERSET_INFO, templatesize : u32) -> u32); - PerfSetCounterSetInfo(providerhandle.into_param().abi(), template, templatesize) + PerfSetCounterSetInfo(providerhandle.param().abi(), template, templatesize) } #[inline] pub unsafe fn PerfSetULongCounterValue(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfSetULongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u32) -> u32); - PerfSetULongCounterValue(provider.into_param().abi(), instance, counterid, value) + PerfSetULongCounterValue(provider.param().abi(), instance, counterid, value) } #[inline] pub unsafe fn PerfSetULongLongCounterValue(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfSetULongLongCounterValue(provider : super::super::Foundation:: HANDLE, instance : *mut PERF_COUNTERSET_INSTANCE, counterid : u32, value : u64) -> u32); - PerfSetULongLongCounterValue(provider.into_param().abi(), instance, counterid, value) + PerfSetULongLongCounterValue(provider.param().abi(), instance, counterid, value) } #[inline] pub unsafe fn PerfStartProvider(providerguid: *const windows_core::GUID, controlcallback: PERFLIBREQUEST, phprovider: *mut super::super::Foundation::HANDLE) -> u32 { @@ -925,10 +925,10 @@ pub unsafe fn PerfStartProviderEx(providerguid: *const windows_core::GUID, provi #[inline] pub unsafe fn PerfStopProvider(providerhandle: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn PerfStopProvider(providerhandle : super::super::Foundation:: HANDLE) -> u32); - PerfStopProvider(providerhandle.into_param().abi()) + PerfStopProvider(providerhandle.param().abi()) } #[inline] pub unsafe fn QueryPerformanceCounter(lpperformancecount: *mut i64) -> windows_core::Result<()> { @@ -943,67 +943,67 @@ pub unsafe fn QueryPerformanceFrequency(lpfrequency: *mut i64) -> windows_core:: #[inline] pub unsafe fn RestorePerfRegistryFromFileW(szfilename: P0, szlangid: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn RestorePerfRegistryFromFileW(szfilename : windows_core::PCWSTR, szlangid : windows_core::PCWSTR) -> u32); - RestorePerfRegistryFromFileW(szfilename.into_param().abi(), szlangid.into_param().abi()) + RestorePerfRegistryFromFileW(szfilename.param().abi(), szlangid.param().abi()) } #[inline] pub unsafe fn SetServiceAsTrustedA(szreserved: P0, szservicename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn SetServiceAsTrustedA(szreserved : windows_core::PCSTR, szservicename : windows_core::PCSTR) -> u32); - SetServiceAsTrustedA(szreserved.into_param().abi(), szservicename.into_param().abi()) + SetServiceAsTrustedA(szreserved.param().abi(), szservicename.param().abi()) } #[inline] pub unsafe fn SetServiceAsTrustedW(szreserved: P0, szservicename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn SetServiceAsTrustedW(szreserved : windows_core::PCWSTR, szservicename : windows_core::PCWSTR) -> u32); - SetServiceAsTrustedW(szreserved.into_param().abi(), szservicename.into_param().abi()) + SetServiceAsTrustedW(szreserved.param().abi(), szservicename.param().abi()) } #[inline] pub unsafe fn UnloadPerfCounterTextStringsA(lpcommandline: P0, bquietmodearg: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn UnloadPerfCounterTextStringsA(lpcommandline : windows_core::PCSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); - UnloadPerfCounterTextStringsA(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) + UnloadPerfCounterTextStringsA(lpcommandline.param().abi(), bquietmodearg.param().abi()) } #[inline] pub unsafe fn UnloadPerfCounterTextStringsW(lpcommandline: P0, bquietmodearg: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("loadperf.dll" "system" fn UnloadPerfCounterTextStringsW(lpcommandline : windows_core::PCWSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); - UnloadPerfCounterTextStringsW(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) + UnloadPerfCounterTextStringsW(lpcommandline.param().abi(), bquietmodearg.param().abi()) } #[inline] pub unsafe fn UpdatePerfNameFilesA(sznewctrfilepath: P0, sznewhlpfilepath: P1, szlanguageid: P2, dwflags: usize) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), sznewhlpfilepath.into_param().abi(), szlanguageid.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), sznewhlpfilepath.into_param().abi(), szlanguageid.into_param().abi(), dwflags) + UpdatePerfNameFilesW(sznewctrfilepath.param().abi(), sznewhlpfilepath.param().abi(), szlanguageid.param().abi(), dwflags) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(DICounterItem, DICounterItem_Vtbl, 0xc08c4ff2_0e2e_11cf_942c_008029004347); @@ -1074,9 +1074,9 @@ impl IAlertDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataCollectorSet(&self, group: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.param().abi()).ok() } pub unsafe fn DataCollectorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1088,9 +1088,9 @@ impl IAlertDataCollector { } pub unsafe fn SetFileName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FileNameFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1105,9 +1105,9 @@ impl IAlertDataCollector { } pub unsafe fn SetFileNameFormatPattern(&self, pattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.param().abi()).ok() } pub unsafe fn LatestOutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1115,9 +1115,9 @@ impl IAlertDataCollector { } pub unsafe fn SetLatestOutputLocation(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn LogAppend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1125,9 +1125,9 @@ impl IAlertDataCollector { } pub unsafe fn SetLogAppend(&self, append: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.param().abi()).ok() } pub unsafe fn LogCircular(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1135,9 +1135,9 @@ impl IAlertDataCollector { } pub unsafe fn SetLogCircular(&self, circular: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.param().abi()).ok() } pub unsafe fn LogOverwrite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1145,9 +1145,9 @@ impl IAlertDataCollector { } pub unsafe fn SetLogOverwrite(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1155,9 +1155,9 @@ impl IAlertDataCollector { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn OutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1177,17 +1177,17 @@ impl IAlertDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXml(&self, xml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOutputLocation(&self, latest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AlertThresholds(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1204,9 +1204,9 @@ impl IAlertDataCollector { } pub unsafe fn SetEventLog(&self, log: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventLog)(windows_core::Interface::as_raw(self), log.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventLog)(windows_core::Interface::as_raw(self), log.param().abi()).ok() } pub unsafe fn SampleInterval(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1221,9 +1221,9 @@ impl IAlertDataCollector { } pub unsafe fn SetTask(&self, task: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), task.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), task.param().abi()).ok() } pub unsafe fn TaskRunAsSelf(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1231,9 +1231,9 @@ impl IAlertDataCollector { } pub unsafe fn SetTaskRunAsSelf(&self, runasself: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), runasself.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), runasself.param().abi()).ok() } pub unsafe fn TaskArguments(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1241,9 +1241,9 @@ impl IAlertDataCollector { } pub unsafe fn SetTaskArguments(&self, task: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTaskArguments)(windows_core::Interface::as_raw(self), task.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTaskArguments)(windows_core::Interface::as_raw(self), task.param().abi()).ok() } pub unsafe fn TaskUserTextArguments(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1251,9 +1251,9 @@ impl IAlertDataCollector { } pub unsafe fn SetTaskUserTextArguments(&self, task: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTaskUserTextArguments)(windows_core::Interface::as_raw(self), task.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTaskUserTextArguments)(windows_core::Interface::as_raw(self), task.param().abi()).ok() } pub unsafe fn TriggerDataCollectorSet(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1261,9 +1261,9 @@ impl IAlertDataCollector { } pub unsafe fn SetTriggerDataCollectorSet(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTriggerDataCollectorSet)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTriggerDataCollectorSet)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1307,9 +1307,9 @@ impl IApiTracingDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataCollectorSet(&self, group: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.param().abi()).ok() } pub unsafe fn DataCollectorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1321,9 +1321,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetFileName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FileNameFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1338,9 +1338,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetFileNameFormatPattern(&self, pattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.param().abi()).ok() } pub unsafe fn LatestOutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1348,9 +1348,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetLatestOutputLocation(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn LogAppend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1358,9 +1358,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetLogAppend(&self, append: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.param().abi()).ok() } pub unsafe fn LogCircular(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1368,9 +1368,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetLogCircular(&self, circular: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.param().abi()).ok() } pub unsafe fn LogOverwrite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1378,9 +1378,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetLogOverwrite(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1388,9 +1388,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn OutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1410,17 +1410,17 @@ impl IApiTracingDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXml(&self, xml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOutputLocation(&self, latest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn LogApiNamesOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1428,9 +1428,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetLogApiNamesOnly(&self, logapinames: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogApiNamesOnly)(windows_core::Interface::as_raw(self), logapinames.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogApiNamesOnly)(windows_core::Interface::as_raw(self), logapinames.param().abi()).ok() } pub unsafe fn LogApisRecursively(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1438,9 +1438,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetLogApisRecursively(&self, logrecursively: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogApisRecursively)(windows_core::Interface::as_raw(self), logrecursively.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogApisRecursively)(windows_core::Interface::as_raw(self), logrecursively.param().abi()).ok() } pub unsafe fn ExePath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1448,9 +1448,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetExePath(&self, exepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExePath)(windows_core::Interface::as_raw(self), exepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExePath)(windows_core::Interface::as_raw(self), exepath.param().abi()).ok() } pub unsafe fn LogFilePath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1458,9 +1458,9 @@ impl IApiTracingDataCollector { } pub unsafe fn SetLogFilePath(&self, logfilepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogFilePath)(windows_core::Interface::as_raw(self), logfilepath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogFilePath)(windows_core::Interface::as_raw(self), logfilepath.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IncludeModules(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1541,9 +1541,9 @@ impl IConfigurationDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataCollectorSet(&self, group: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.param().abi()).ok() } pub unsafe fn DataCollectorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1555,9 +1555,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetFileName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FileNameFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1572,9 +1572,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetFileNameFormatPattern(&self, pattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.param().abi()).ok() } pub unsafe fn LatestOutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1582,9 +1582,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetLatestOutputLocation(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn LogAppend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1592,9 +1592,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetLogAppend(&self, append: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.param().abi()).ok() } pub unsafe fn LogCircular(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1602,9 +1602,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetLogCircular(&self, circular: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.param().abi()).ok() } pub unsafe fn LogOverwrite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1612,9 +1612,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetLogOverwrite(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1622,9 +1622,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn OutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1644,17 +1644,17 @@ impl IConfigurationDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXml(&self, xml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOutputLocation(&self, latest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FileMaxCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1701,9 +1701,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetQueryNetworkAdapters(&self, network: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQueryNetworkAdapters)(windows_core::Interface::as_raw(self), network.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQueryNetworkAdapters)(windows_core::Interface::as_raw(self), network.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegistryKeys(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -1727,9 +1727,9 @@ impl IConfigurationDataCollector { } pub unsafe fn SetSystemStateFile(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSystemStateFile)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSystemStateFile)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1882,9 +1882,9 @@ impl ICounterItem2 { } pub unsafe fn SetSelected(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn Selected(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1892,9 +1892,9 @@ impl ICounterItem2 { } pub unsafe fn SetVisible(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1931,24 +1931,24 @@ impl ICounters { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pathname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pathname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pathname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1981,9 +1981,9 @@ impl IDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataCollectorSet(&self, group: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.param().abi()).ok() } pub unsafe fn DataCollectorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1995,9 +1995,9 @@ impl IDataCollector { } pub unsafe fn SetFileName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FileNameFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2012,9 +2012,9 @@ impl IDataCollector { } pub unsafe fn SetFileNameFormatPattern(&self, pattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.param().abi()).ok() } pub unsafe fn LatestOutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2022,9 +2022,9 @@ impl IDataCollector { } pub unsafe fn SetLatestOutputLocation(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn LogAppend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2032,9 +2032,9 @@ impl IDataCollector { } pub unsafe fn SetLogAppend(&self, append: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogAppend)(windows_core::Interface::as_raw(self), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogAppend)(windows_core::Interface::as_raw(self), append.param().abi()).ok() } pub unsafe fn LogCircular(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2042,9 +2042,9 @@ impl IDataCollector { } pub unsafe fn SetLogCircular(&self, circular: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogCircular)(windows_core::Interface::as_raw(self), circular.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogCircular)(windows_core::Interface::as_raw(self), circular.param().abi()).ok() } pub unsafe fn LogOverwrite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2052,9 +2052,9 @@ impl IDataCollector { } pub unsafe fn SetLogOverwrite(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2062,9 +2062,9 @@ impl IDataCollector { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn OutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2084,17 +2084,17 @@ impl IDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXml(&self, xml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetXml)(windows_core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetXml)(windows_core::Interface::as_raw(self), xml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOutputLocation(&self, latest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2149,10 +2149,10 @@ impl IDataCollectorCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2161,15 +2161,15 @@ impl IDataCollectorCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, collector: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), collector.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), collector.param().abi()).ok() } pub unsafe fn Remove(&self, collector: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), collector.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), collector.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -2177,16 +2177,16 @@ impl IDataCollectorCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, collectors: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), collectors.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), collectors.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDataCollectorFromXml(&self, bstrxml: P0, pvalidation: *mut Option, pcollector: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDataCollectorFromXml)(windows_core::Interface::as_raw(self), bstrxml.into_param().abi(), core::mem::transmute(pvalidation), core::mem::transmute(pcollector)).ok() + (windows_core::Interface::vtable(self).CreateDataCollectorFromXml)(windows_core::Interface::as_raw(self), bstrxml.param().abi(), core::mem::transmute(pvalidation), core::mem::transmute(pcollector)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateDataCollector(&self, r#type: DataCollectorType) -> windows_core::Result { @@ -2247,9 +2247,9 @@ impl IDataCollectorSet { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn DescriptionUnresolved(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2261,9 +2261,9 @@ impl IDataCollectorSet { } pub unsafe fn SetDisplayName(&self, displayname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), displayname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), displayname.param().abi()).ok() } pub unsafe fn DisplayNameUnresolved(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2284,9 +2284,9 @@ impl IDataCollectorSet { } pub unsafe fn SetLatestOutputLocation(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2302,9 +2302,9 @@ impl IDataCollectorSet { } pub unsafe fn SetRootPath(&self, folder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRootPath)(windows_core::Interface::as_raw(self), folder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRootPath)(windows_core::Interface::as_raw(self), folder.param().abi()).ok() } pub unsafe fn Segment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2312,9 +2312,9 @@ impl IDataCollectorSet { } pub unsafe fn SetSegment(&self, segment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSegment)(windows_core::Interface::as_raw(self), segment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSegment)(windows_core::Interface::as_raw(self), segment.param().abi()).ok() } pub unsafe fn SegmentMaxDuration(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2351,9 +2351,9 @@ impl IDataCollectorSet { } pub unsafe fn SetSubdirectory(&self, folder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubdirectory)(windows_core::Interface::as_raw(self), folder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubdirectory)(windows_core::Interface::as_raw(self), folder.param().abi()).ok() } pub unsafe fn SubdirectoryFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2368,9 +2368,9 @@ impl IDataCollectorSet { } pub unsafe fn SetSubdirectoryFormatPattern(&self, pattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubdirectoryFormatPattern)(windows_core::Interface::as_raw(self), pattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubdirectoryFormatPattern)(windows_core::Interface::as_raw(self), pattern.param().abi()).ok() } pub unsafe fn Task(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2378,9 +2378,9 @@ impl IDataCollectorSet { } pub unsafe fn SetTask(&self, task: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), task.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTask)(windows_core::Interface::as_raw(self), task.param().abi()).ok() } pub unsafe fn TaskRunAsSelf(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2388,9 +2388,9 @@ impl IDataCollectorSet { } pub unsafe fn SetTaskRunAsSelf(&self, runasself: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), runasself.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTaskRunAsSelf)(windows_core::Interface::as_raw(self), runasself.param().abi()).ok() } pub unsafe fn TaskArguments(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2398,9 +2398,9 @@ impl IDataCollectorSet { } pub unsafe fn SetTaskArguments(&self, task: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTaskArguments)(windows_core::Interface::as_raw(self), task.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTaskArguments)(windows_core::Interface::as_raw(self), task.param().abi()).ok() } pub unsafe fn TaskUserTextArguments(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2408,9 +2408,9 @@ impl IDataCollectorSet { } pub unsafe fn SetTaskUserTextArguments(&self, usertext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTaskUserTextArguments)(windows_core::Interface::as_raw(self), usertext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTaskUserTextArguments)(windows_core::Interface::as_raw(self), usertext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Schedules(&self) -> windows_core::Result { @@ -2423,9 +2423,9 @@ impl IDataCollectorSet { } pub unsafe fn SetSchedulesEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSchedulesEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSchedulesEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn UserAccount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2441,9 +2441,9 @@ impl IDataCollectorSet { } pub unsafe fn SetSecurity(&self, bstrsecurity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), bstrsecurity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), bstrsecurity.param().abi()).ok() } pub unsafe fn StopOnCompletion(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2451,9 +2451,9 @@ impl IDataCollectorSet { } pub unsafe fn SetStopOnCompletion(&self, stop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStopOnCompletion)(windows_core::Interface::as_raw(self), stop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStopOnCompletion)(windows_core::Interface::as_raw(self), stop.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DataManager(&self) -> windows_core::Result { @@ -2462,63 +2462,63 @@ impl IDataCollectorSet { } pub unsafe fn SetCredentials(&self, user: P0, password: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), user.into_param().abi(), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), user.param().abi(), password.param().abi()).ok() } pub unsafe fn Query(&self, name: P0, server: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), name.into_param().abi(), server.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), name.param().abi(), server.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, name: P0, server: P1, mode: CommitMode) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), name.into_param().abi(), server.into_param().abi(), mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), name.param().abi(), server.param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), synchronous.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), synchronous.param().abi()).ok() } pub unsafe fn Stop(&self, synchronous: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), synchronous.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), synchronous.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXml(&self, xml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetXml)(windows_core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetXml)(windows_core::Interface::as_raw(self), xml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetValue(&self, key: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), key.param().abi(), value.param().abi()).ok() } pub unsafe fn GetValue(&self, key: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2620,10 +2620,10 @@ impl IDataCollectorSetCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2632,15 +2632,15 @@ impl IDataCollectorSetCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, set: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), set.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), set.param().abi()).ok() } pub unsafe fn Remove(&self, set: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), set.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), set.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -2648,16 +2648,16 @@ impl IDataCollectorSetCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, sets: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), sets.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), sets.param().abi()).ok() } pub unsafe fn GetDataCollectorSets(&self, server: P0, filter: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDataCollectorSets)(windows_core::Interface::as_raw(self), server.into_param().abi(), filter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetDataCollectorSets)(windows_core::Interface::as_raw(self), server.param().abi(), filter.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2694,9 +2694,9 @@ impl IDataManager { } pub unsafe fn SetEnabled(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn CheckBeforeRunning(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2704,9 +2704,9 @@ impl IDataManager { } pub unsafe fn SetCheckBeforeRunning(&self, fcheck: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckBeforeRunning)(windows_core::Interface::as_raw(self), fcheck.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCheckBeforeRunning)(windows_core::Interface::as_raw(self), fcheck.param().abi()).ok() } pub unsafe fn MinFreeDisk(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2747,9 +2747,9 @@ impl IDataManager { } pub unsafe fn SetReportSchema(&self, reportschema: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReportSchema)(windows_core::Interface::as_raw(self), reportschema.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReportSchema)(windows_core::Interface::as_raw(self), reportschema.param().abi()).ok() } pub unsafe fn ReportFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2757,9 +2757,9 @@ impl IDataManager { } pub unsafe fn SetReportFileName(&self, pbstrfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReportFileName)(windows_core::Interface::as_raw(self), pbstrfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReportFileName)(windows_core::Interface::as_raw(self), pbstrfilename.param().abi()).ok() } pub unsafe fn RuleTargetFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2767,9 +2767,9 @@ impl IDataManager { } pub unsafe fn SetRuleTargetFileName(&self, filename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuleTargetFileName)(windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRuleTargetFileName)(windows_core::Interface::as_raw(self), filename.param().abi()).ok() } pub unsafe fn EventsFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2777,9 +2777,9 @@ impl IDataManager { } pub unsafe fn SetEventsFileName(&self, pbstrfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventsFileName)(windows_core::Interface::as_raw(self), pbstrfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventsFileName)(windows_core::Interface::as_raw(self), pbstrfilename.param().abi()).ok() } pub unsafe fn Rules(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2787,24 +2787,24 @@ impl IDataManager { } pub unsafe fn SetRules(&self, bstrxml: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRules)(windows_core::Interface::as_raw(self), bstrxml.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRules)(windows_core::Interface::as_raw(self), bstrxml.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Run(&self, steps: DataManagerSteps, bstrfolder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), steps, bstrfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), steps, bstrfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Extract(&self, cabfilename: P0, destinationpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), cabfilename.into_param().abi(), destinationpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), cabfilename.param().abi(), destinationpath.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2876,9 +2876,9 @@ impl IFolderAction { } pub unsafe fn SetSendCabTo(&self, bstrdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSendCabTo)(windows_core::Interface::as_raw(self), bstrdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSendCabTo)(windows_core::Interface::as_raw(self), bstrdestination.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2907,10 +2907,10 @@ impl IFolderActionCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2919,15 +2919,15 @@ impl IFolderActionCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, action: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), action.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), action.param().abi()).ok() } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -2935,9 +2935,9 @@ impl IFolderActionCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, actions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), actions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), actions.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFolderAction(&self) -> windows_core::Result { @@ -3000,24 +3000,24 @@ impl ILogFiles { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pathname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pathname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pathname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3050,9 +3050,9 @@ impl IPerformanceCounterDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataCollectorSet(&self, group: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.param().abi()).ok() } pub unsafe fn DataCollectorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3064,9 +3064,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetFileName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FileNameFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3081,9 +3081,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetFileNameFormatPattern(&self, pattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.param().abi()).ok() } pub unsafe fn LatestOutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3091,9 +3091,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetLatestOutputLocation(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn LogAppend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3101,9 +3101,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetLogAppend(&self, append: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.param().abi()).ok() } pub unsafe fn LogCircular(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3111,9 +3111,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetLogCircular(&self, circular: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.param().abi()).ok() } pub unsafe fn LogOverwrite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3121,9 +3121,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetLogOverwrite(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3131,9 +3131,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn OutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3153,17 +3153,17 @@ impl IPerformanceCounterDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXml(&self, xml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOutputLocation(&self, latest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DataSourceName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3171,9 +3171,9 @@ impl IPerformanceCounterDataCollector { } pub unsafe fn SetDataSourceName(&self, dsn: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDataSourceName)(windows_core::Interface::as_raw(self), dsn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDataSourceName)(windows_core::Interface::as_raw(self), dsn.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PerformanceCounters(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -3239,9 +3239,9 @@ impl ISchedule { } pub unsafe fn SetStartDate(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStartDate)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStartDate)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndDate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3249,9 +3249,9 @@ impl ISchedule { } pub unsafe fn SetEndDate(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEndDate)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEndDate)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn StartTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3259,9 +3259,9 @@ impl ISchedule { } pub unsafe fn SetStartTime(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStartTime)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn Days(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3297,10 +3297,10 @@ impl IScheduleCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3309,15 +3309,15 @@ impl IScheduleCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pschedule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pschedule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pschedule.param().abi()).ok() } pub unsafe fn Remove(&self, vschedule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), vschedule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), vschedule.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -3325,9 +3325,9 @@ impl IScheduleCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, pschedules: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pschedules.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), pschedules.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSchedule(&self) -> windows_core::Result { @@ -3399,9 +3399,9 @@ impl ISystemMonitor { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_Font(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Font)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Font)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Counters(&self) -> windows_core::Result { @@ -3410,9 +3410,9 @@ impl ISystemMonitor { } pub unsafe fn SetShowVerticalGrid(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowVerticalGrid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3420,9 +3420,9 @@ impl ISystemMonitor { } pub unsafe fn SetShowHorizontalGrid(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowHorizontalGrid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3430,9 +3430,9 @@ impl ISystemMonitor { } pub unsafe fn SetShowLegend(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowLegend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3440,9 +3440,9 @@ impl ISystemMonitor { } pub unsafe fn SetShowScaleLabels(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowScaleLabels(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3450,9 +3450,9 @@ impl ISystemMonitor { } pub unsafe fn SetShowValueBar(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowValueBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3488,9 +3488,9 @@ impl ISystemMonitor { } pub unsafe fn SetManualUpdate(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ManualUpdate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3498,9 +3498,9 @@ impl ISystemMonitor { } pub unsafe fn SetGraphTitle(&self, bstitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGraphTitle)(windows_core::Interface::as_raw(self), bstitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGraphTitle)(windows_core::Interface::as_raw(self), bstitle.param().abi()).ok() } pub unsafe fn GraphTitle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3508,9 +3508,9 @@ impl ISystemMonitor { } pub unsafe fn SetYAxisLabel(&self, bstitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetYAxisLabel)(windows_core::Interface::as_raw(self), bstitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetYAxisLabel)(windows_core::Interface::as_raw(self), bstitle.param().abi()).ok() } pub unsafe fn YAxisLabel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3534,16 +3534,16 @@ impl ISystemMonitor { } pub unsafe fn AddCounter(&self, bspath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddCounter)(windows_core::Interface::as_raw(self), bspath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddCounter)(windows_core::Interface::as_raw(self), bspath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteCounter(&self, pctr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteCounter)(windows_core::Interface::as_raw(self), pctr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteCounter)(windows_core::Interface::as_raw(self), pctr.param().abi()).ok() } pub unsafe fn BackColorCtl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3554,9 +3554,9 @@ impl ISystemMonitor { } pub unsafe fn SetLogFileName(&self, bsfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), bsfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), bsfilename.param().abi()).ok() } pub unsafe fn LogFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3596,9 +3596,9 @@ impl ISystemMonitor { } pub unsafe fn SetHighlight(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowToolbar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3606,9 +3606,9 @@ impl ISystemMonitor { } pub unsafe fn SetShowToolbar(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn Paste(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self)).ok() @@ -3621,9 +3621,9 @@ impl ISystemMonitor { } pub unsafe fn SetReadOnly(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3638,9 +3638,9 @@ impl ISystemMonitor { } pub unsafe fn SetMonitorDuplicateInstances(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn MonitorDuplicateInstances(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3667,9 +3667,9 @@ impl ISystemMonitor { } pub unsafe fn SetSqlDsnName(&self, bssqldsnname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSqlDsnName)(windows_core::Interface::as_raw(self), bssqldsnname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSqlDsnName)(windows_core::Interface::as_raw(self), bssqldsnname.param().abi()).ok() } pub unsafe fn SqlDsnName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3677,9 +3677,9 @@ impl ISystemMonitor { } pub unsafe fn SetSqlLogSetName(&self, bssqllogsetname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSqlLogSetName)(windows_core::Interface::as_raw(self), bssqllogsetname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSqlLogSetName)(windows_core::Interface::as_raw(self), bssqllogsetname.param().abi()).ok() } pub unsafe fn SqlLogSetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3817,9 +3817,9 @@ impl ISystemMonitor2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_Font(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.putref_Font)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.putref_Font)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Counters(&self) -> windows_core::Result { @@ -3828,9 +3828,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetShowVerticalGrid(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowVerticalGrid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3838,9 +3838,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetShowHorizontalGrid(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowHorizontalGrid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3848,9 +3848,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetShowLegend(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetShowLegend)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetShowLegend)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowLegend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3858,9 +3858,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetShowScaleLabels(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowScaleLabels(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3868,9 +3868,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetShowValueBar(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetShowValueBar)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetShowValueBar)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowValueBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3906,9 +3906,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetManualUpdate(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetManualUpdate)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetManualUpdate)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ManualUpdate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3916,9 +3916,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetGraphTitle(&self, bstitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetGraphTitle)(windows_core::Interface::as_raw(self), bstitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetGraphTitle)(windows_core::Interface::as_raw(self), bstitle.param().abi()).ok() } pub unsafe fn GraphTitle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3926,9 +3926,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetYAxisLabel(&self, bstitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetYAxisLabel)(windows_core::Interface::as_raw(self), bstitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetYAxisLabel)(windows_core::Interface::as_raw(self), bstitle.param().abi()).ok() } pub unsafe fn YAxisLabel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3952,16 +3952,16 @@ impl ISystemMonitor2 { } pub unsafe fn AddCounter(&self, bspath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddCounter)(windows_core::Interface::as_raw(self), bspath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AddCounter)(windows_core::Interface::as_raw(self), bspath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteCounter(&self, pctr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteCounter)(windows_core::Interface::as_raw(self), pctr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteCounter)(windows_core::Interface::as_raw(self), pctr.param().abi()).ok() } pub unsafe fn BackColorCtl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3972,9 +3972,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetLogFileName(&self, bsfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogFileName)(windows_core::Interface::as_raw(self), bsfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogFileName)(windows_core::Interface::as_raw(self), bsfilename.param().abi()).ok() } pub unsafe fn LogFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4014,9 +4014,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetHighlight(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHighlight)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHighlight)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowToolbar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4024,9 +4024,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetShowToolbar(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetShowToolbar)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetShowToolbar)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn Paste(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Paste)(windows_core::Interface::as_raw(self)).ok() @@ -4039,9 +4039,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetReadOnly(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetReadOnly)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetReadOnly)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4056,9 +4056,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetMonitorDuplicateInstances(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn MonitorDuplicateInstances(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4085,9 +4085,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetSqlDsnName(&self, bssqldsnname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSqlDsnName)(windows_core::Interface::as_raw(self), bssqldsnname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSqlDsnName)(windows_core::Interface::as_raw(self), bssqldsnname.param().abi()).ok() } pub unsafe fn SqlDsnName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4095,9 +4095,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetSqlLogSetName(&self, bssqllogsetname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetSqlLogSetName)(windows_core::Interface::as_raw(self), bssqllogsetname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetSqlLogSetName)(windows_core::Interface::as_raw(self), bssqllogsetname.param().abi()).ok() } pub unsafe fn SqlLogSetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4105,9 +4105,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetEnableDigitGrouping(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn EnableDigitGrouping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4115,9 +4115,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetEnableToolTips(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn EnableToolTips(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4125,9 +4125,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetShowTimeAxisLabels(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowTimeAxisLabels(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4135,9 +4135,9 @@ impl ISystemMonitor2 { } pub unsafe fn SetChartScroll(&self, bscroll: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), bscroll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), bscroll.param().abi()).ok() } pub unsafe fn ChartScroll(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4152,21 +4152,21 @@ impl ISystemMonitor2 { } pub unsafe fn ScaleToFit(&self, bselectedcountersonly: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), bselectedcountersonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), bselectedcountersonly.param().abi()).ok() } pub unsafe fn SaveAs(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype).ok() + (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), esysmonfiletype).ok() } pub unsafe fn Relog(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype, ifilter).ok() + (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), esysmonfiletype, ifilter).ok() } pub unsafe fn ClearData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearData)(windows_core::Interface::as_raw(self)).ok() @@ -4187,15 +4187,15 @@ impl ISystemMonitor2 { } pub unsafe fn BatchingLock(&self, flock: P0, ebatchreason: SysmonBatchReason) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), flock.into_param().abi(), ebatchreason).ok() + (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), flock.param().abi(), ebatchreason).ok() } pub unsafe fn LoadSettings(&self, bstrsettingfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadSettings)(windows_core::Interface::as_raw(self), bstrsettingfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadSettings)(windows_core::Interface::as_raw(self), bstrsettingfilename.param().abi()).ok() } } #[repr(C)] @@ -4264,9 +4264,9 @@ impl ITraceDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataCollectorSet(&self, group: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDataCollectorSet)(windows_core::Interface::as_raw(self), group.param().abi()).ok() } pub unsafe fn DataCollectorType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4278,9 +4278,9 @@ impl ITraceDataCollector { } pub unsafe fn SetFileName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn FileNameFormat(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4295,9 +4295,9 @@ impl ITraceDataCollector { } pub unsafe fn SetFileNameFormatPattern(&self, pattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameFormatPattern)(windows_core::Interface::as_raw(self), pattern.param().abi()).ok() } pub unsafe fn LatestOutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4305,9 +4305,9 @@ impl ITraceDataCollector { } pub unsafe fn SetLatestOutputLocation(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLatestOutputLocation)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn LogAppend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4315,9 +4315,9 @@ impl ITraceDataCollector { } pub unsafe fn SetLogAppend(&self, append: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogAppend)(windows_core::Interface::as_raw(self), append.param().abi()).ok() } pub unsafe fn LogCircular(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4325,9 +4325,9 @@ impl ITraceDataCollector { } pub unsafe fn SetLogCircular(&self, circular: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogCircular)(windows_core::Interface::as_raw(self), circular.param().abi()).ok() } pub unsafe fn LogOverwrite(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4335,9 +4335,9 @@ impl ITraceDataCollector { } pub unsafe fn SetLogOverwrite(&self, overwrite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLogOverwrite)(windows_core::Interface::as_raw(self), overwrite.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4345,9 +4345,9 @@ impl ITraceDataCollector { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn OutputLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4367,17 +4367,17 @@ impl ITraceDataCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetXml(&self, xml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SetXml)(windows_core::Interface::as_raw(self), xml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateOutputLocation(&self, latest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateOutputLocation)(windows_core::Interface::as_raw(self), latest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn BufferSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4473,9 +4473,9 @@ impl ITraceDataCollector { } pub unsafe fn SetPreallocateFile(&self, allocate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreallocateFile)(windows_core::Interface::as_raw(self), allocate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreallocateFile)(windows_core::Interface::as_raw(self), allocate.param().abi()).ok() } pub unsafe fn ProcessMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4483,9 +4483,9 @@ impl ITraceDataCollector { } pub unsafe fn SetProcessMode(&self, process: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProcessMode)(windows_core::Interface::as_raw(self), process.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProcessMode)(windows_core::Interface::as_raw(self), process.param().abi()).ok() } pub unsafe fn RealTimeBuffersLost(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4507,9 +4507,9 @@ impl ITraceDataCollector { } pub unsafe fn SetSessionName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSessionName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSessionName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn SessionThreadId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4591,9 +4591,9 @@ impl ITraceDataProvider { } pub unsafe fn SetDisplayName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Guid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4628,9 +4628,9 @@ impl ITraceDataProvider { } pub unsafe fn SetFilterEnabled(&self, filterenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilterEnabled)(windows_core::Interface::as_raw(self), filterenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilterEnabled)(windows_core::Interface::as_raw(self), filterenabled.param().abi()).ok() } pub unsafe fn FilterType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4650,23 +4650,23 @@ impl ITraceDataProvider { } pub unsafe fn Query(&self, bstrname: P0, bstrserver: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrserver.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Resolve(&self, pfrom: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), pfrom.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), pfrom.param().abi()).ok() } pub unsafe fn SetSecurity(&self, sddl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), sddl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurity)(windows_core::Interface::as_raw(self), sddl.param().abi()).ok() } pub unsafe fn GetSecurity(&self, securityinfo: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4739,10 +4739,10 @@ impl ITraceDataProviderCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4751,15 +4751,15 @@ impl ITraceDataProviderCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, pprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), pprovider.param().abi()).ok() } pub unsafe fn Remove(&self, vprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), vprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), vprovider.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -4767,9 +4767,9 @@ impl ITraceDataProviderCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, providers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), providers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), providers.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateTraceDataProvider(&self) -> windows_core::Result { @@ -4778,15 +4778,15 @@ impl ITraceDataProviderCollection { } pub unsafe fn GetTraceDataProviders(&self, server: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTraceDataProviders)(windows_core::Interface::as_raw(self), server.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetTraceDataProviders)(windows_core::Interface::as_raw(self), server.param().abi()).ok() } pub unsafe fn GetTraceDataProvidersByProcess(&self, server: P0, pid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTraceDataProvidersByProcess)(windows_core::Interface::as_raw(self), server.into_param().abi(), pid).ok() + (windows_core::Interface::vtable(self).GetTraceDataProvidersByProcess)(windows_core::Interface::as_raw(self), server.param().abi(), pid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4829,10 +4829,10 @@ impl IValueMap { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4844,9 +4844,9 @@ impl IValueMap { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4854,9 +4854,9 @@ impl IValueMap { } pub unsafe fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ValueMapType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4867,15 +4867,15 @@ impl IValueMap { } pub unsafe fn Add(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Remove(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -4883,9 +4883,9 @@ impl IValueMap { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddRange(&self, map: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), map.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRange)(windows_core::Interface::as_raw(self), map.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateValueMapItem(&self) -> windows_core::Result { @@ -4933,9 +4933,9 @@ impl IValueMapItem { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4943,9 +4943,9 @@ impl IValueMapItem { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Key(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4953,9 +4953,9 @@ impl IValueMapItem { } pub unsafe fn SetKey(&self, key: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), key.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), key.param().abi()).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4963,9 +4963,9 @@ impl IValueMapItem { } pub unsafe fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ValueMapType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5037,9 +5037,9 @@ impl _ICounterItemUnion { } pub unsafe fn SetSelected(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn Selected(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5047,9 +5047,9 @@ impl _ICounterItemUnion { } pub unsafe fn SetVisible(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn Visible(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5120,9 +5120,9 @@ impl _ISystemMonitorUnion { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_Font(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Font)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Font)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Counters(&self) -> windows_core::Result { @@ -5131,9 +5131,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetShowVerticalGrid(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowVerticalGrid)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowVerticalGrid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5141,9 +5141,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetShowHorizontalGrid(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowHorizontalGrid)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowHorizontalGrid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5151,9 +5151,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetShowLegend(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowLegend)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowLegend(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5161,9 +5161,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetShowScaleLabels(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowScaleLabels)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowScaleLabels(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5171,9 +5171,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetShowValueBar(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowValueBar)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowValueBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5209,9 +5209,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetManualUpdate(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetManualUpdate)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ManualUpdate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5219,9 +5219,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetGraphTitle(&self, bstitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGraphTitle)(windows_core::Interface::as_raw(self), bstitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGraphTitle)(windows_core::Interface::as_raw(self), bstitle.param().abi()).ok() } pub unsafe fn GraphTitle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5229,9 +5229,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetYAxisLabel(&self, bstitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetYAxisLabel)(windows_core::Interface::as_raw(self), bstitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetYAxisLabel)(windows_core::Interface::as_raw(self), bstitle.param().abi()).ok() } pub unsafe fn YAxisLabel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5255,16 +5255,16 @@ impl _ISystemMonitorUnion { } pub unsafe fn AddCounter(&self, bspath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddCounter)(windows_core::Interface::as_raw(self), bspath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddCounter)(windows_core::Interface::as_raw(self), bspath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteCounter(&self, pctr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteCounter)(windows_core::Interface::as_raw(self), pctr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteCounter)(windows_core::Interface::as_raw(self), pctr.param().abi()).ok() } pub unsafe fn BackColorCtl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5275,9 +5275,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetLogFileName(&self, bsfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), bsfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLogFileName)(windows_core::Interface::as_raw(self), bsfilename.param().abi()).ok() } pub unsafe fn LogFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5317,9 +5317,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetHighlight(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHighlight)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowToolbar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5327,9 +5327,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetShowToolbar(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowToolbar)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn Paste(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Paste)(windows_core::Interface::as_raw(self)).ok() @@ -5342,9 +5342,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetReadOnly(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReadOnly)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5359,9 +5359,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetMonitorDuplicateInstances(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMonitorDuplicateInstances)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn MonitorDuplicateInstances(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5388,9 +5388,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetSqlDsnName(&self, bssqldsnname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSqlDsnName)(windows_core::Interface::as_raw(self), bssqldsnname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSqlDsnName)(windows_core::Interface::as_raw(self), bssqldsnname.param().abi()).ok() } pub unsafe fn SqlDsnName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5398,9 +5398,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetSqlLogSetName(&self, bssqllogsetname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSqlLogSetName)(windows_core::Interface::as_raw(self), bssqllogsetname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSqlLogSetName)(windows_core::Interface::as_raw(self), bssqllogsetname.param().abi()).ok() } pub unsafe fn SqlLogSetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5408,9 +5408,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetEnableDigitGrouping(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableDigitGrouping)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn EnableDigitGrouping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5418,9 +5418,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetEnableToolTips(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnableToolTips)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn EnableToolTips(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5428,9 +5428,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetShowTimeAxisLabels(&self, bstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowTimeAxisLabels)(windows_core::Interface::as_raw(self), bstate.param().abi()).ok() } pub unsafe fn ShowTimeAxisLabels(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5438,9 +5438,9 @@ impl _ISystemMonitorUnion { } pub unsafe fn SetChartScroll(&self, bscroll: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), bscroll.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetChartScroll)(windows_core::Interface::as_raw(self), bscroll.param().abi()).ok() } pub unsafe fn ChartScroll(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5455,21 +5455,21 @@ impl _ISystemMonitorUnion { } pub unsafe fn ScaleToFit(&self, bselectedcountersonly: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), bselectedcountersonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScaleToFit)(windows_core::Interface::as_raw(self), bselectedcountersonly.param().abi()).ok() } pub unsafe fn SaveAs(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype).ok() + (windows_core::Interface::vtable(self).SaveAs)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), esysmonfiletype).ok() } pub unsafe fn Relog(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype, ifilter).ok() + (windows_core::Interface::vtable(self).Relog)(windows_core::Interface::as_raw(self), bstrfilename.param().abi(), esysmonfiletype, ifilter).ok() } pub unsafe fn ClearData(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearData)(windows_core::Interface::as_raw(self)).ok() @@ -5490,15 +5490,15 @@ impl _ISystemMonitorUnion { } pub unsafe fn BatchingLock(&self, flock: P0, ebatchreason: SysmonBatchReason) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), flock.into_param().abi(), ebatchreason).ok() + (windows_core::Interface::vtable(self).BatchingLock)(windows_core::Interface::as_raw(self), flock.param().abi(), ebatchreason).ok() } pub unsafe fn LoadSettings(&self, bstrsettingfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadSettings)(windows_core::Interface::as_raw(self), bstrsettingfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadSettings)(windows_core::Interface::as_raw(self), bstrsettingfilename.param().abi()).ok() } } #[repr(C)] 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 4ecd92137b..de8bd7ba0a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs @@ -1,46 +1,46 @@ #[inline] pub unsafe fn CallNamedPipeA(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) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, lpbytesread, ntimeout).ok() + CallNamedPipeA(lpnamedpipename.param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, lpbytesread, ntimeout) + CallNamedPipeW(lpnamedpipename.param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, lpbytesread, ntimeout) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ConnectNamedPipe(hnamedpipe: P0, lpoverlapped: Option<*mut super::IO::OVERLAPPED>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ConnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpoverlapped : *mut super::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); - ConnectNamedPipe(hnamedpipe.into_param().abi(), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() + ConnectNamedPipe(hnamedpipe.param().abi(), core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_FileSystem"))] #[inline] pub unsafe fn CreateNamedPipeA(lpname: P0, dwopenmode: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, dwpipemode: NAMED_PIPE_MODE, nmaxinstances: u32, noutbuffersize: u32, ninbuffersize: u32, ndefaulttimeout: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwopenmode, dwpipemode, nmaxinstances, noutbuffersize, ninbuffersize, ndefaulttimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))); + let result__ = CreateNamedPipeA(lpname.param().abi(), dwopenmode, dwpipemode, nmaxinstances, noutbuffersize, ninbuffersize, ndefaulttimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_FileSystem"))] #[inline] pub unsafe fn CreateNamedPipeW(lpname: P0, dwopenmode: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, dwpipemode: NAMED_PIPE_MODE, nmaxinstances: u32, noutbuffersize: u32, ninbuffersize: u32, ndefaulttimeout: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwopenmode, dwpipemode, nmaxinstances, noutbuffersize, ninbuffersize, ndefaulttimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) + CreateNamedPipeW(lpname.param().abi(), dwopenmode, dwpipemode, nmaxinstances, noutbuffersize, ninbuffersize, ndefaulttimeout, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] @@ -51,148 +51,131 @@ pub unsafe fn CreatePipe(hreadpipe: *mut super::super::Foundation::HANDLE, hwrit #[inline] pub unsafe fn DisconnectNamedPipe(hnamedpipe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DisconnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DisconnectNamedPipe(hnamedpipe.into_param().abi()).ok() + DisconnectNamedPipe(hnamedpipe.param().abi()).ok() } #[inline] pub unsafe fn GetNamedPipeClientComputerNameA(pipe: P0, clientcomputername: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameA(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PSTR, clientcomputernamelength : u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientComputerNameA(pipe.into_param().abi(), core::mem::transmute(clientcomputername.as_ptr()), clientcomputername.len().try_into().unwrap()).ok() + GetNamedPipeClientComputerNameA(pipe.param().abi(), core::mem::transmute(clientcomputername.as_ptr()), clientcomputername.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetNamedPipeClientComputerNameW(pipe: P0, clientcomputername: windows_core::PWSTR, clientcomputernamelength: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameW(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PWSTR, clientcomputernamelength : u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientComputerNameW(pipe.into_param().abi(), core::mem::transmute(clientcomputername), clientcomputernamelength) + GetNamedPipeClientComputerNameW(pipe.param().abi(), core::mem::transmute(clientcomputername), clientcomputernamelength) } #[inline] pub unsafe fn GetNamedPipeClientProcessId(pipe: P0, clientprocessid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientProcessId(pipe : super::super::Foundation:: HANDLE, clientprocessid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientProcessId(pipe.into_param().abi(), clientprocessid).ok() + GetNamedPipeClientProcessId(pipe.param().abi(), clientprocessid).ok() } #[inline] pub unsafe fn GetNamedPipeClientSessionId(pipe: P0, clientsessionid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientSessionId(pipe : super::super::Foundation:: HANDLE, clientsessionid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeClientSessionId(pipe.into_param().abi(), clientsessionid).ok() + GetNamedPipeClientSessionId(pipe.param().abi(), clientsessionid).ok() } #[inline] pub unsafe fn GetNamedPipeHandleStateA(hnamedpipe: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - hnamedpipe.into_param().abi(), - core::mem::transmute(lpstate.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(lpcurinstances.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(lpmaxcollectioncount.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(lpcollectdatatimeout.unwrap_or(std::ptr::null_mut())), - 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.param().abi(), core::mem::transmute(lpstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcurinstances.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(std::ptr::null_mut())), 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: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - hnamedpipe.into_param().abi(), - core::mem::transmute(lpstate.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(lpcurinstances.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(lpmaxcollectioncount.unwrap_or(std::ptr::null_mut())), - core::mem::transmute(lpcollectdatatimeout.unwrap_or(std::ptr::null_mut())), - 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.param().abi(), core::mem::transmute(lpstate.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcurinstances.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(std::ptr::null_mut())), 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: P0, lpflags: Option<*mut NAMED_PIPE_MODE>, lpoutbuffersize: Option<*mut u32>, lpinbuffersize: Option<*mut u32>, lpmaxinstances: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hnamedpipe.into_param().abi(), core::mem::transmute(lpflags.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoutbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpinbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpmaxinstances.unwrap_or(std::ptr::null_mut()))).ok() + GetNamedPipeInfo(hnamedpipe.param().abi(), core::mem::transmute(lpflags.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpoutbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpinbuffersize.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpmaxinstances.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetNamedPipeServerProcessId(pipe: P0, serverprocessid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerProcessId(pipe : super::super::Foundation:: HANDLE, serverprocessid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeServerProcessId(pipe.into_param().abi(), serverprocessid).ok() + GetNamedPipeServerProcessId(pipe.param().abi(), serverprocessid).ok() } #[inline] pub unsafe fn GetNamedPipeServerSessionId(pipe: P0, serversessionid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerSessionId(pipe : super::super::Foundation:: HANDLE, serversessionid : *mut u32) -> super::super::Foundation:: BOOL); - GetNamedPipeServerSessionId(pipe.into_param().abi(), serversessionid).ok() + GetNamedPipeServerSessionId(pipe.param().abi(), serversessionid).ok() } #[inline] pub unsafe fn ImpersonateNamedPipeClient(hnamedpipe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ImpersonateNamedPipeClient(hnamedpipe : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ImpersonateNamedPipeClient(hnamedpipe.into_param().abi()).ok() + ImpersonateNamedPipeClient(hnamedpipe.param().abi()).ok() } #[inline] pub unsafe fn PeekNamedPipe(hnamedpipe: P0, lpbuffer: Option<*mut core::ffi::c_void>, nbuffersize: u32, lpbytesread: Option<*mut u32>, lptotalbytesavail: Option<*mut u32>, lpbytesleftthismessage: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hnamedpipe.into_param().abi(), core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut())), nbuffersize, core::mem::transmute(lpbytesread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalbytesavail.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpbytesleftthismessage.unwrap_or(std::ptr::null_mut()))).ok() + PeekNamedPipe(hnamedpipe.param().abi(), core::mem::transmute(lpbuffer.unwrap_or(std::ptr::null_mut())), nbuffersize, core::mem::transmute(lpbytesread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lptotalbytesavail.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpbytesleftthismessage.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetNamedPipeHandleState(hnamedpipe: P0, lpmode: Option<*const NAMED_PIPE_MODE>, lpmaxcollectioncount: Option<*const u32>, lpcollectdatatimeout: Option<*const u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hnamedpipe.into_param().abi(), core::mem::transmute(lpmode.unwrap_or(std::ptr::null())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(std::ptr::null())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(std::ptr::null()))).ok() + SetNamedPipeHandleState(hnamedpipe.param().abi(), core::mem::transmute(lpmode.unwrap_or(std::ptr::null())), core::mem::transmute(lpmaxcollectioncount.unwrap_or(std::ptr::null())), core::mem::transmute(lpcollectdatatimeout.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn TransactNamedPipe(hnamedpipe: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hnamedpipe.into_param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, lpbytesread, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() + TransactNamedPipe(hnamedpipe.param().abi(), core::mem::transmute(lpinbuffer.unwrap_or(std::ptr::null())), ninbuffersize, core::mem::transmute(lpoutbuffer.unwrap_or(std::ptr::null_mut())), noutbuffersize, lpbytesread, core::mem::transmute(lpoverlapped.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WaitNamedPipeA(lpnamedpipename: P0, ntimeout: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeA(lpnamedpipename : windows_core::PCSTR, ntimeout : u32) -> super::super::Foundation:: BOOL); - WaitNamedPipeA(lpnamedpipename.into_param().abi(), ntimeout).ok() + WaitNamedPipeA(lpnamedpipename.param().abi(), ntimeout).ok() } #[inline] pub unsafe fn WaitNamedPipeW(lpnamedpipename: P0, ntimeout: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeW(lpnamedpipename : windows_core::PCWSTR, ntimeout : u32) -> super::super::Foundation:: BOOL); - WaitNamedPipeW(lpnamedpipename.into_param().abi(), ntimeout) + WaitNamedPipeW(lpnamedpipename.param().abi(), ntimeout) } pub const NMPWAIT_NOWAIT: u32 = 1u32; pub const NMPWAIT_USE_DEFAULT_WAIT: u32 = 0u32; 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 352922b37c..6f5c7e5689 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs @@ -31,18 +31,18 @@ pub unsafe fn DevicePowerOpen(debugmask: u32) -> super::super::Foundation::BOOLE #[inline] pub unsafe fn DevicePowerSetDeviceState(devicedescription: P0, setflags: u32, setdata: Option<*const core::ffi::c_void>) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), setflags, core::mem::transmute(setdata.unwrap_or(std::ptr::null()))) + DevicePowerSetDeviceState(devicedescription.param().abi(), setflags, core::mem::transmute(setdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn EnumPwrSchemes(lpfn: PWRSCHEMESENUMPROC, lparam: P0) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn EnumPwrSchemes(lpfn : PWRSCHEMESENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOLEAN); - EnumPwrSchemes(lpfn, lparam.into_param().abi()) + EnumPwrSchemes(lpfn, lparam.param().abi()) } #[inline] pub unsafe fn GetActivePwrScheme(puiid: *mut u32) -> super::super::Foundation::BOOLEAN { @@ -57,10 +57,10 @@ pub unsafe fn GetCurrentPowerPolicies(pglobalpowerpolicy: *mut GLOBAL_POWER_POLI #[inline] pub unsafe fn GetDevicePowerState(hdevice: P0, pfon: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetDevicePowerState(hdevice : super::super::Foundation:: HANDLE, pfon : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetDevicePowerState(hdevice.into_param().abi(), pfon) + GetDevicePowerState(hdevice.param().abi(), pfon) } #[inline] pub unsafe fn GetPwrCapabilities(lpspc: *mut SYSTEM_POWER_CAPABILITIES) -> super::super::Foundation::BOOLEAN { @@ -110,19 +110,19 @@ pub unsafe fn PowerCanRestoreIndividualDefaultPowerScheme(schemeguid: *const win #[inline] pub unsafe fn PowerClearRequest(powerrequest: P0, requesttype: POWER_REQUEST_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PowerClearRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); - PowerClearRequest(powerrequest.into_param().abi(), requesttype).ok() + PowerClearRequest(powerrequest.param().abi(), requesttype).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerCreatePossibleSetting(rootsystempowerkey: P0, subgroupofpowersettingsguid: *const windows_core::GUID, powersettingguid: *const windows_core::GUID, possiblesettingindex: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootsystempowerkey.into_param().abi(), subgroupofpowersettingsguid, powersettingguid, possiblesettingindex) + PowerCreatePossibleSetting(rootsystempowerkey.param().abi(), subgroupofpowersettingsguid, powersettingguid, possiblesettingindex) } #[cfg(feature = "Win32_System_Threading")] #[inline] @@ -135,19 +135,19 @@ pub unsafe fn PowerCreateRequest(context: *const super::Threading::REASON_CONTEX #[inline] pub unsafe fn PowerCreateSetting(rootsystempowerkey: P0, subgroupofpowersettingsguid: *const windows_core::GUID, powersettingguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootsystempowerkey.into_param().abi(), subgroupofpowersettingsguid, powersettingguid) + PowerCreateSetting(rootsystempowerkey.param().abi(), subgroupofpowersettingsguid, powersettingguid) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerDeleteScheme(rootpowerkey: P0, schemeguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerDeleteScheme(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerDeleteScheme(rootpowerkey.into_param().abi(), schemeguid) + PowerDeleteScheme(rootpowerkey.param().abi(), schemeguid) } #[inline] pub unsafe fn PowerDeterminePlatformRole() -> POWER_PLATFORM_ROLE { @@ -163,38 +163,38 @@ pub unsafe fn PowerDeterminePlatformRoleEx(version: POWER_PLATFORM_ROLE_VERSION) #[inline] pub unsafe fn PowerDuplicateScheme(rootpowerkey: P0, sourceschemeguid: *const windows_core::GUID, destinationschemeguid: *mut *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), sourceschemeguid, destinationschemeguid) + PowerDuplicateScheme(rootpowerkey.param().abi(), sourceschemeguid, destinationschemeguid) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerEnumerate(rootpowerkey: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), accessflags, index, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerEnumerate(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), accessflags, index, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerGetActiveScheme(userrootpowerkey: P0, activepolicyguid: *mut *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerGetActiveScheme(userrootpowerkey : super::Registry:: HKEY, activepolicyguid : *mut *mut windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerGetActiveScheme(userrootpowerkey.into_param().abi(), activepolicyguid) + PowerGetActiveScheme(userrootpowerkey.param().abi(), activepolicyguid) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerImportPowerScheme(rootpowerkey: P0, importfilenamepath: P1, destinationschemeguid: *mut *mut windows_core::GUID) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerImportPowerScheme(rootpowerkey : super::Registry:: HKEY, importfilenamepath : windows_core::PCWSTR, destinationschemeguid : *mut *mut windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerImportPowerScheme(rootpowerkey.into_param().abi(), importfilenamepath.into_param().abi(), destinationschemeguid) + PowerImportPowerScheme(rootpowerkey.param().abi(), importfilenamepath.param().abi(), destinationschemeguid) } #[inline] pub unsafe fn PowerIsSettingRangeDefined(subkeyguid: Option<*const windows_core::GUID>, settingguid: Option<*const windows_core::GUID>) -> super::super::Foundation::BOOLEAN { @@ -205,127 +205,127 @@ pub unsafe fn PowerIsSettingRangeDefined(subkeyguid: Option<*const windows_core: #[inline] pub unsafe fn PowerOpenSystemPowerKey(phsystempowerkey: *mut super::Registry::HKEY, access: u32, openexisting: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerOpenSystemPowerKey(phsystempowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); - PowerOpenSystemPowerKey(phsystempowerkey, access, openexisting.into_param().abi()) + PowerOpenSystemPowerKey(phsystempowerkey, access, openexisting.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerOpenUserPowerKey(phuserpowerkey: *mut super::Registry::HKEY, access: u32, openexisting: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerOpenUserPowerKey(phuserpowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); - PowerOpenUserPowerKey(phuserpowerkey, access, openexisting.into_param().abi()) + PowerOpenUserPowerKey(phuserpowerkey, access, openexisting.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadACDefaultIndex(rootpowerkey: P0, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, acdefaultindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, acdefaultindex) + PowerReadACDefaultIndex(rootpowerkey.param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, acdefaultindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadACValue(rootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, r#type: Option<*mut u32>, buffer: Option<*mut u8>, buffersize: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadACValue(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, r#type : *mut u32, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadACValue(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(r#type.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffersize.unwrap_or(std::ptr::null_mut()))) + PowerReadACValue(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(r#type.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffersize.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadACValueIndex(rootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, acvalueindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadACValueIndex(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, acvalueindex : *mut u32) -> u32); - PowerReadACValueIndex(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), acvalueindex) + PowerReadACValueIndex(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), acvalueindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadDCDefaultIndex(rootpowerkey: P0, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, dcdefaultindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, dcdefaultindex) + PowerReadDCDefaultIndex(rootpowerkey.param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, dcdefaultindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadDCValue(rootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, r#type: Option<*mut u32>, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadDCValue(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, r#type : *mut u32, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadDCValue(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(r#type.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadDCValue(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(r#type.unwrap_or(std::ptr::null_mut())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadDCValueIndex(rootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, dcvalueindex: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadDCValueIndex(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, dcvalueindex : *mut u32) -> u32); - PowerReadDCValueIndex(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), dcvalueindex) + PowerReadDCValueIndex(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), dcvalueindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadDescription(rootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadDescription(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadDescription(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadDescription(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadFriendlyName(rootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadFriendlyName(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadFriendlyName(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadFriendlyName(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadIconResourceSpecifier(rootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadIconResourceSpecifier(rootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadIconResourceSpecifier(rootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadIconResourceSpecifier(rootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null())), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadPossibleDescription(rootpowerkey: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadPossibleDescription(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadPossibleFriendlyName(rootpowerkey: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadPossibleFriendlyName(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadPossibleValue(rootpowerkey: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(r#type.unwrap_or(std::ptr::null_mut())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadPossibleValue(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(r#type.unwrap_or(std::ptr::null_mut())), possiblesettingindex, core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[inline] pub unsafe fn PowerReadSettingAttributes(subgroupguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>) -> u32 { @@ -336,37 +336,37 @@ pub unsafe fn PowerReadSettingAttributes(subgroupguid: Option<*const windows_cor #[inline] pub unsafe fn PowerReadValueIncrement(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valueincrement: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadValueIncrement(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, valueincrement : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadValueIncrement(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueincrement) + PowerReadValueIncrement(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueincrement) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadValueMax(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valuemaximum: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadValueMax(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, valuemaximum : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadValueMax(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valuemaximum) + PowerReadValueMax(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valuemaximum) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadValueMin(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valueminimum: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadValueMin(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, valueminimum : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadValueMin(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueminimum) + PowerReadValueMin(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueminimum) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerReadValueUnitsSpecifier(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: Option<*mut u8>, buffersize: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerReadValueUnitsSpecifier(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); - PowerReadValueUnitsSpecifier(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) + PowerReadValueUnitsSpecifier(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.unwrap_or(std::ptr::null_mut())), buffersize) } #[inline] pub unsafe fn PowerRegisterForEffectivePowerModeNotifications(version: u32, callback: EFFECTIVE_POWER_MODE_CALLBACK, context: Option<*const core::ffi::c_void>, registrationhandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -377,10 +377,10 @@ pub unsafe fn PowerRegisterForEffectivePowerModeNotifications(version: u32, call #[inline] pub unsafe fn PowerRegisterSuspendResumeNotification(flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS, recipient: P0, registrationhandle: *mut *mut core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(flags, recipient.into_param().abi(), registrationhandle) + PowerRegisterSuspendResumeNotification(flags, recipient.param().abi(), registrationhandle) } #[inline] pub unsafe fn PowerRemovePowerSetting(powersettingsubkeyguid: *const windows_core::GUID, powersettingguid: *const windows_core::GUID) -> super::super::Foundation::WIN32_ERROR { @@ -411,18 +411,18 @@ pub unsafe fn PowerRestoreIndividualDefaultPowerScheme(schemeguid: *const window #[inline] pub unsafe fn PowerSetActiveScheme(userrootpowerkey: P0, schemeguid: Option<*const windows_core::GUID>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerSetActiveScheme(userrootpowerkey : super::Registry:: HKEY, schemeguid : *const windows_core::GUID) -> super::super::Foundation:: WIN32_ERROR); - PowerSetActiveScheme(userrootpowerkey.into_param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null()))) + PowerSetActiveScheme(userrootpowerkey.param().abi(), core::mem::transmute(schemeguid.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn PowerSetRequest(powerrequest: P0, requesttype: POWER_REQUEST_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PowerSetRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); - PowerSetRequest(powerrequest.into_param().abi(), requesttype).ok() + PowerSetRequest(powerrequest.param().abi(), requesttype).ok() } #[inline] pub unsafe fn PowerSettingAccessCheck(accessflags: POWER_DATA_ACCESSOR, powerguid: Option<*const windows_core::GUID>) -> super::super::Foundation::WIN32_ERROR { @@ -439,18 +439,18 @@ pub unsafe fn PowerSettingAccessCheckEx(accessflags: POWER_DATA_ACCESSOR, powerg #[inline] pub unsafe fn PowerSettingRegisterNotification(settingguid: *const windows_core::GUID, flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS, recipient: P0, registrationhandle: *mut *mut core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(settingguid, flags, recipient.into_param().abi(), registrationhandle) + PowerSettingRegisterNotification(settingguid, flags, recipient.param().abi(), registrationhandle) } #[inline] pub unsafe fn PowerSettingUnregisterNotification(registrationhandle: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerSettingUnregisterNotification(registrationhandle : HPOWERNOTIFY) -> super::super::Foundation:: WIN32_ERROR); - PowerSettingUnregisterNotification(registrationhandle.into_param().abi()) + PowerSettingUnregisterNotification(registrationhandle.param().abi()) } #[inline] pub unsafe fn PowerUnregisterFromEffectivePowerModeNotifications(registrationhandle: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -460,100 +460,100 @@ pub unsafe fn PowerUnregisterFromEffectivePowerModeNotifications(registrationhan #[inline] pub unsafe fn PowerUnregisterSuspendResumeNotification(registrationhandle: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerUnregisterSuspendResumeNotification(registrationhandle : HPOWERNOTIFY) -> super::super::Foundation:: WIN32_ERROR); - PowerUnregisterSuspendResumeNotification(registrationhandle.into_param().abi()) + PowerUnregisterSuspendResumeNotification(registrationhandle.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteACDefaultIndex(rootsystempowerkey: P0, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, defaultacindex: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootsystempowerkey.into_param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, defaultacindex) + PowerWriteACDefaultIndex(rootsystempowerkey.param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, defaultacindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteACValueIndex(rootpowerkey: P0, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, acvalueindex: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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) -> u32); - PowerWriteACValueIndex(rootpowerkey.into_param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), acvalueindex) + PowerWriteACValueIndex(rootpowerkey.param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), acvalueindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteDCDefaultIndex(rootsystempowerkey: P0, schemepersonalityguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: *const windows_core::GUID, defaultdcindex: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootsystempowerkey.into_param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, defaultdcindex) + PowerWriteDCDefaultIndex(rootsystempowerkey.param().abi(), schemepersonalityguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), powersettingguid, defaultdcindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteDCValueIndex(rootpowerkey: P0, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, dcvalueindex: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), dcvalueindex) + PowerWriteDCValueIndex(rootpowerkey.param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), dcvalueindex) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteDescription(rootpowerkey: P0, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWriteDescription(rootpowerkey.param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteFriendlyName(rootpowerkey: P0, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWriteFriendlyName(rootpowerkey.param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteIconResourceSpecifier(rootpowerkey: P0, schemeguid: *const windows_core::GUID, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWriteIconResourceSpecifier(rootpowerkey.param().abi(), schemeguid, core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWritePossibleDescription(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, possiblesettingindex: u32, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWritePossibleDescription(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWritePossibleFriendlyName(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, possiblesettingindex: u32, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWritePossibleFriendlyName(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWritePossibleValue(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, r#type: u32, possiblesettingindex: u32, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), r#type, possiblesettingindex, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWritePossibleValue(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), 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 { @@ -564,37 +564,37 @@ pub unsafe fn PowerWriteSettingAttributes(subgroupguid: Option<*const windows_co #[inline] pub unsafe fn PowerWriteValueIncrement(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valueincrement: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueincrement) + PowerWriteValueIncrement(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueincrement) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteValueMax(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valuemaximum: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valuemaximum) + PowerWriteValueMax(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valuemaximum) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteValueMin(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, valueminimum: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueminimum) + PowerWriteValueMin(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), valueminimum) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerWriteValueUnitsSpecifier(rootpowerkey: P0, subgroupofpowersettingsguid: Option<*const windows_core::GUID>, powersettingguid: Option<*const windows_core::GUID>, buffer: &[u8]) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn PowerWriteValueUnitsSpecifier(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_core::GUID, powersettingguid : *const windows_core::GUID, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); - PowerWriteValueUnitsSpecifier(rootpowerkey.into_param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) + PowerWriteValueUnitsSpecifier(rootpowerkey.param().abi(), core::mem::transmute(subgroupofpowersettingsguid.unwrap_or(std::ptr::null())), core::mem::transmute(powersettingguid.unwrap_or(std::ptr::null())), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()) } #[inline] pub unsafe fn ReadGlobalPwrPolicy(pglobalpowerpolicy: *const GLOBAL_POWER_POLICY) -> super::super::Foundation::BOOLEAN { @@ -615,20 +615,20 @@ pub unsafe fn ReadPwrScheme(uiid: u32, ppowerpolicy: *mut POWER_POLICY) -> super #[inline] pub unsafe fn RegisterPowerSettingNotification(hrecipient: P0, powersettingguid: *const windows_core::GUID, flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrecipient.into_param().abi(), powersettingguid, flags); + let result__ = RegisterPowerSettingNotification(hrecipient.param().abi(), powersettingguid, flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterSuspendResumeNotification(hrecipient: P0, flags: super::super::UI::WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrecipient.into_param().abi(), flags); + let result__ = RegisterSuspendResumeNotification(hrecipient.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -644,21 +644,21 @@ pub unsafe fn SetActivePwrScheme(uiid: u32, pglobalpowerpolicy: Option<*const GL #[inline] pub unsafe fn SetSuspendState(bhibernate: P0, bforce: P1, bwakeupeventsdisabled: P2) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("powrprof.dll" "system" fn SetSuspendState(bhibernate : super::super::Foundation:: BOOLEAN, bforce : super::super::Foundation:: BOOLEAN, bwakeupeventsdisabled : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); - SetSuspendState(bhibernate.into_param().abi(), bforce.into_param().abi(), bwakeupeventsdisabled.into_param().abi()) + SetSuspendState(bhibernate.param().abi(), bforce.param().abi(), bwakeupeventsdisabled.param().abi()) } #[inline] pub unsafe fn SetSystemPowerState(fsuspend: P0, fforce: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetSystemPowerState(fsuspend : super::super::Foundation:: BOOL, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetSystemPowerState(fsuspend.into_param().abi(), fforce.into_param().abi()).ok() + SetSystemPowerState(fsuspend.param().abi(), fforce.param().abi()).ok() } #[inline] pub unsafe fn SetThreadExecutionState(esflags: EXECUTION_STATE) -> EXECUTION_STATE { @@ -668,18 +668,18 @@ pub unsafe fn SetThreadExecutionState(esflags: EXECUTION_STATE) -> EXECUTION_STA #[inline] pub unsafe fn UnregisterPowerSettingNotification(handle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterPowerSettingNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); - UnregisterPowerSettingNotification(handle.into_param().abi()).ok() + UnregisterPowerSettingNotification(handle.param().abi()).ok() } #[inline] pub unsafe fn UnregisterSuspendResumeNotification(handle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterSuspendResumeNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); - UnregisterSuspendResumeNotification(handle.into_param().abi()).ok() + UnregisterSuspendResumeNotification(handle.param().abi()).ok() } #[inline] pub unsafe fn ValidatePowerPolicies(pglobalpowerpolicy: Option<*mut GLOBAL_POWER_POLICY>, ppowerpolicy: Option<*mut POWER_POLICY>) -> super::super::Foundation::BOOLEAN { @@ -699,11 +699,11 @@ pub unsafe fn WriteProcessorPwrScheme(uiid: u32, pmachineprocessorpowerpolicy: * #[inline] pub unsafe fn WritePwrScheme(puiid: *const u32, lpszschemename: P0, lpszdescription: P1, lpscheme: *const POWER_POLICY) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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) -> super::super::Foundation:: BOOLEAN); - WritePwrScheme(puiid, lpszschemename.into_param().abi(), lpszdescription.into_param().abi(), 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 8f956f42b3..39af16a60b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn EmptyWorkingSet(hprocess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("psapi.dll" "system" fn EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - EmptyWorkingSet(hprocess.into_param().abi()).ok() + EmptyWorkingSet(hprocess.param().abi()).ok() } #[inline] pub unsafe fn EnumDeviceDrivers(lpimagebase: *mut *mut core::ffi::c_void, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { @@ -24,18 +24,18 @@ pub unsafe fn EnumPageFilesW(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKW, pconte #[inline] pub unsafe fn EnumProcessModules(hprocess: P0, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lphmodule, cb, lpcbneeded).ok() + EnumProcessModules(hprocess.param().abi(), lphmodule, cb, lpcbneeded).ok() } #[inline] pub unsafe fn EnumProcessModulesEx(hprocess: P0, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32, dwfilterflag: ENUM_PROCESS_MODULES_EX_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lphmodule, cb, lpcbneeded, dwfilterflag).ok() + EnumProcessModulesEx(hprocess.param().abi(), lphmodule, cb, lpcbneeded, dwfilterflag).ok() } #[inline] pub unsafe fn EnumProcesses(lpidprocess: *mut u32, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { @@ -65,63 +65,63 @@ pub unsafe fn GetDeviceDriverFileNameW(imagebase: *const core::ffi::c_void, lpfi #[inline] pub unsafe fn GetMappedFileNameA(hprocess: P0, lpv: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetMappedFileNameA(hprocess.param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetMappedFileNameW(hprocess: P0, lpv: *const core::ffi::c_void, lpfilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetMappedFileNameW(hprocess.param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleBaseNameA(hprocess: P0, hmodule: P1, lpbasename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + GetModuleBaseNameA(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleBaseNameW(hprocess: P0, hmodule: P1, lpbasename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + GetModuleBaseNameW(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleFileNameExA(hprocess: P0, hmodule: P1, lpfilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("psapi.dll" "system" fn GetModuleFileNameExA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - GetModuleFileNameExA(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetModuleFileNameExA(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleFileNameExW(hprocess: P0, hmodule: P1, lpfilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("psapi.dll" "system" fn GetModuleFileNameExW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : windows_core::PWSTR, nsize : u32) -> u32); - GetModuleFileNameExW(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + GetModuleFileNameExW(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetModuleInformation(hprocess: P0, hmodule: P1, lpmodinfo: *mut MODULEINFO, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), hmodule.into_param().abi(), lpmodinfo, cb).ok() + GetModuleInformation(hprocess.param().abi(), hmodule.param().abi(), lpmodinfo, cb).ok() } #[inline] pub unsafe fn GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFORMATION, cb: u32) -> windows_core::Result<()> { @@ -131,58 +131,58 @@ pub unsafe fn GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFOR #[inline] pub unsafe fn GetProcessImageFileNameA(hprocess: P0, lpimagefilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("psapi.dll" "system" fn GetProcessImageFileNameA(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PSTR, nsize : u32) -> u32); - GetProcessImageFileNameA(hprocess.into_param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + GetProcessImageFileNameA(hprocess.param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetProcessImageFileNameW(hprocess: P0, lpimagefilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("psapi.dll" "system" fn GetProcessImageFileNameW(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PWSTR, nsize : u32) -> u32); - GetProcessImageFileNameW(hprocess.into_param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + GetProcessImageFileNameW(hprocess.param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetProcessMemoryInfo(process: P0, ppsmemcounters: *mut PROCESS_MEMORY_COUNTERS, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), ppsmemcounters, cb).ok() + GetProcessMemoryInfo(process.param().abi(), ppsmemcounters, cb).ok() } #[inline] pub unsafe fn GetWsChanges(hprocess: P0, lpwatchinfo: *mut PSAPI_WS_WATCH_INFORMATION, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpwatchinfo, cb).ok() + GetWsChanges(hprocess.param().abi(), lpwatchinfo, cb).ok() } #[inline] pub unsafe fn GetWsChangesEx(hprocess: P0, lpwatchinfoex: *mut PSAPI_WS_WATCH_INFORMATION_EX, cb: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpwatchinfoex, cb).ok() + GetWsChangesEx(hprocess.param().abi(), lpwatchinfoex, cb).ok() } #[inline] pub unsafe fn InitializeProcessForWsWatch(hprocess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("psapi.dll" "system" fn InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - InitializeProcessForWsWatch(hprocess.into_param().abi()).ok() + InitializeProcessForWsWatch(hprocess.param().abi()).ok() } #[inline] pub unsafe fn K32EmptyWorkingSet(hprocess: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn K32EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - K32EmptyWorkingSet(hprocess.into_param().abi()) + K32EmptyWorkingSet(hprocess.param().abi()) } #[inline] pub unsafe fn K32EnumDeviceDrivers(lpimagebase: *mut *mut core::ffi::c_void, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { @@ -202,18 +202,18 @@ pub unsafe fn K32EnumPageFilesW(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKW, pco #[inline] pub unsafe fn K32EnumProcessModules(hprocess: P0, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lphmodule, cb, lpcbneeded) + K32EnumProcessModules(hprocess.param().abi(), lphmodule, cb, lpcbneeded) } #[inline] pub unsafe fn K32EnumProcessModulesEx(hprocess: P0, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32, dwfilterflag: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lphmodule, cb, lpcbneeded, dwfilterflag) + K32EnumProcessModulesEx(hprocess.param().abi(), lphmodule, cb, lpcbneeded, dwfilterflag) } #[inline] pub unsafe fn K32EnumProcesses(lpidprocess: *mut u32, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { @@ -243,63 +243,63 @@ pub unsafe fn K32GetDeviceDriverFileNameW(imagebase: *const core::ffi::c_void, l #[inline] pub unsafe fn K32GetMappedFileNameA(hprocess: P0, lpv: *const core::ffi::c_void, lpfilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetMappedFileNameA(hprocess.param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetMappedFileNameW(hprocess: P0, lpv: *const core::ffi::c_void, lpfilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetMappedFileNameW(hprocess.param().abi(), lpv, core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleBaseNameA(hprocess: P0, hmodule: P1, lpbasename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + K32GetModuleBaseNameA(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleBaseNameW(hprocess: P0, hmodule: P1, lpbasename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) + K32GetModuleBaseNameW(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpbasename.as_ptr()), lpbasename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleFileNameExA(hprocess: P0, hmodule: P1, lpfilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn K32GetModuleFileNameExA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : windows_core::PSTR, nsize : u32) -> u32); - K32GetModuleFileNameExA(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetModuleFileNameExA(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleFileNameExW(hprocess: P0, hmodule: P1, lpfilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn K32GetModuleFileNameExW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : windows_core::PWSTR, nsize : u32) -> u32); - K32GetModuleFileNameExW(hprocess.into_param().abi(), hmodule.into_param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) + K32GetModuleFileNameExW(hprocess.param().abi(), hmodule.param().abi(), core::mem::transmute(lpfilename.as_ptr()), lpfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetModuleInformation(hprocess: P0, hmodule: P1, lpmodinfo: *mut MODULEINFO, cb: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), hmodule.into_param().abi(), lpmodinfo, cb) + K32GetModuleInformation(hprocess.param().abi(), hmodule.param().abi(), lpmodinfo, cb) } #[inline] pub unsafe fn K32GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFORMATION, cb: u32) -> super::super::Foundation::BOOL { @@ -309,82 +309,82 @@ pub unsafe fn K32GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_IN #[inline] pub unsafe fn K32GetProcessImageFileNameA(hprocess: P0, lpimagefilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn K32GetProcessImageFileNameA(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PSTR, nsize : u32) -> u32); - K32GetProcessImageFileNameA(hprocess.into_param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + K32GetProcessImageFileNameA(hprocess.param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetProcessImageFileNameW(hprocess: P0, lpimagefilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn K32GetProcessImageFileNameW(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : windows_core::PWSTR, nsize : u32) -> u32); - K32GetProcessImageFileNameW(hprocess.into_param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) + K32GetProcessImageFileNameW(hprocess.param().abi(), core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } #[inline] pub unsafe fn K32GetProcessMemoryInfo(process: P0, ppsmemcounters: *mut PROCESS_MEMORY_COUNTERS, cb: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), ppsmemcounters, cb) + K32GetProcessMemoryInfo(process.param().abi(), ppsmemcounters, cb) } #[inline] pub unsafe fn K32GetWsChanges(hprocess: P0, lpwatchinfo: *mut PSAPI_WS_WATCH_INFORMATION, cb: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpwatchinfo, cb) + K32GetWsChanges(hprocess.param().abi(), lpwatchinfo, cb) } #[inline] pub unsafe fn K32GetWsChangesEx(hprocess: P0, lpwatchinfoex: *mut PSAPI_WS_WATCH_INFORMATION_EX, cb: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpwatchinfoex, cb) + K32GetWsChangesEx(hprocess.param().abi(), lpwatchinfoex, cb) } #[inline] pub unsafe fn K32InitializeProcessForWsWatch(hprocess: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn K32InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - K32InitializeProcessForWsWatch(hprocess.into_param().abi()) + K32InitializeProcessForWsWatch(hprocess.param().abi()) } #[inline] pub unsafe fn K32QueryWorkingSet(hprocess: P0, pv: *mut core::ffi::c_void, cb: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), pv, cb) + K32QueryWorkingSet(hprocess.param().abi(), pv, cb) } #[inline] pub unsafe fn K32QueryWorkingSetEx(hprocess: P0, pv: *mut core::ffi::c_void, cb: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), pv, cb) + K32QueryWorkingSetEx(hprocess.param().abi(), pv, cb) } #[inline] pub unsafe fn QueryWorkingSet(hprocess: P0, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), pv, cb).ok() + QueryWorkingSet(hprocess.param().abi(), pv, cb).ok() } #[inline] pub unsafe fn QueryWorkingSetEx(hprocess: P0, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), pv, cb).ok() + QueryWorkingSetEx(hprocess.param().abi(), pv, cb).ok() } pub const LIST_MODULES_32BIT: ENUM_PROCESS_MODULES_EX_FLAGS = ENUM_PROCESS_MODULES_EX_FLAGS(1u32); pub const LIST_MODULES_64BIT: ENUM_PROCESS_MODULES_EX_FLAGS = ENUM_PROCESS_MODULES_EX_FLAGS(2u32); 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 64c014c369..6eb2ba2d5e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs @@ -47,9 +47,9 @@ impl IRTCBuddy { } pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -57,9 +57,9 @@ impl IRTCBuddy { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -67,9 +67,9 @@ impl IRTCBuddy { } pub unsafe fn SetData(&self, bstrdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.param().abi()).ok() } pub unsafe fn Persistent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -77,9 +77,9 @@ impl IRTCBuddy { } pub unsafe fn SetPersistent(&self, fpersistent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.param().abi()).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -105,9 +105,9 @@ impl IRTCBuddy2 { } pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -115,9 +115,9 @@ impl IRTCBuddy2 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -125,9 +125,9 @@ impl IRTCBuddy2 { } pub unsafe fn SetData(&self, bstrdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.param().abi()).ok() } pub unsafe fn Persistent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -135,9 +135,9 @@ impl IRTCBuddy2 { } pub unsafe fn SetPersistent(&self, fpersistent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.param().abi()).ok() } pub unsafe fn Status(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -256,21 +256,21 @@ impl IRTCBuddyGroup { } pub unsafe fn SetName(&self, bstrgroupname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi()).ok() } pub unsafe fn AddBuddy(&self, pbuddy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddBuddy)(windows_core::Interface::as_raw(self), pbuddy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddBuddy)(windows_core::Interface::as_raw(self), pbuddy.param().abi()).ok() } pub unsafe fn RemoveBuddy(&self, pbuddy: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBuddy)(windows_core::Interface::as_raw(self), pbuddy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBuddy)(windows_core::Interface::as_raw(self), pbuddy.param().abi()).ok() } pub unsafe fn EnumerateBuddies(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -287,9 +287,9 @@ impl IRTCBuddyGroup { } pub unsafe fn SetData(&self, bstrdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), bstrdata.param().abi()).ok() } pub unsafe fn Profile(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -365,9 +365,9 @@ impl IRTCClient { } pub unsafe fn SetPreferredMediaTypes(&self, lmediatypes: i32, fpersistent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreferredMediaTypes)(windows_core::Interface::as_raw(self), lmediatypes, fpersistent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreferredMediaTypes)(windows_core::Interface::as_raw(self), lmediatypes, fpersistent.param().abi()).ok() } pub unsafe fn PreferredMediaTypes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -379,11 +379,11 @@ impl IRTCClient { } pub unsafe fn CreateSession(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.into_param().abi(), pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.param().abi(), 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), enlisten).ok() @@ -394,11 +394,11 @@ impl IRTCClient { } pub unsafe fn get_NetworkAddresses(&self, ftcp: P0, fexternal: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_NetworkAddresses)(windows_core::Interface::as_raw(self), ftcp.into_param().abi(), fexternal.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_NetworkAddresses)(windows_core::Interface::as_raw(self), ftcp.param().abi(), fexternal.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(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), endevice, lvolume).ok() @@ -409,9 +409,9 @@ impl IRTCClient { } pub unsafe fn put_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE, fmuted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_AudioMuted)(windows_core::Interface::as_raw(self), endevice, fmuted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_AudioMuted)(windows_core::Interface::as_raw(self), endevice, fmuted.param().abi()).ok() } pub unsafe fn get_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -424,9 +424,9 @@ impl IRTCClient { } pub unsafe fn put_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_PreferredAudioDevice)(windows_core::Interface::as_raw(self), endevice, bstrdevicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_PreferredAudioDevice)(windows_core::Interface::as_raw(self), endevice, bstrdevicename.param().abi()).ok() } pub unsafe fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -441,9 +441,9 @@ impl IRTCClient { } pub unsafe fn SetPreferredAEC(&self, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreferredAEC)(windows_core::Interface::as_raw(self), benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreferredAEC)(windows_core::Interface::as_raw(self), benable.param().abi()).ok() } pub unsafe fn PreferredAEC(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -451,9 +451,9 @@ impl IRTCClient { } pub unsafe fn SetPreferredVideoDevice(&self, bstrdevicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPreferredVideoDevice)(windows_core::Interface::as_raw(self), bstrdevicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPreferredVideoDevice)(windows_core::Interface::as_raw(self), bstrdevicename.param().abi()).ok() } pub unsafe fn PreferredVideoDevice(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -497,9 +497,9 @@ impl IRTCClient { } pub unsafe fn SetLocalUserURI(&self, bstruseruri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalUserURI)(windows_core::Interface::as_raw(self), bstruseruri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalUserURI)(windows_core::Interface::as_raw(self), bstruseruri.param().abi()).ok() } pub unsafe fn LocalUserName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -507,15 +507,15 @@ impl IRTCClient { } pub unsafe fn SetLocalUserName(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalUserName)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalUserName)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn PlayRing(&self, entype: RTC_RING_TYPE, bplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlayRing)(windows_core::Interface::as_raw(self), entype, bplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlayRing)(windows_core::Interface::as_raw(self), entype, bplay.param().abi()).ok() } pub unsafe fn SendDTMF(&self, endtmf: RTC_DTMF) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendDTMF)(windows_core::Interface::as_raw(self), endtmf).ok() @@ -598,9 +598,9 @@ impl IRTCClient2 { } pub unsafe fn SetPreferredMediaTypes(&self, lmediatypes: i32, fpersistent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPreferredMediaTypes)(windows_core::Interface::as_raw(self), lmediatypes, fpersistent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPreferredMediaTypes)(windows_core::Interface::as_raw(self), lmediatypes, fpersistent.param().abi()).ok() } pub unsafe fn PreferredMediaTypes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -612,11 +612,11 @@ impl IRTCClient2 { } pub unsafe fn CreateSession(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSession)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.into_param().abi(), pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSession)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.param().abi(), 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).base__.SetListenForIncomingSessions)(windows_core::Interface::as_raw(self), enlisten).ok() @@ -627,11 +627,11 @@ impl IRTCClient2 { } pub unsafe fn get_NetworkAddresses(&self, ftcp: P0, fexternal: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_NetworkAddresses)(windows_core::Interface::as_raw(self), ftcp.into_param().abi(), fexternal.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_NetworkAddresses)(windows_core::Interface::as_raw(self), ftcp.param().abi(), fexternal.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn put_Volume(&self, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.put_Volume)(windows_core::Interface::as_raw(self), endevice, lvolume).ok() @@ -642,9 +642,9 @@ impl IRTCClient2 { } pub unsafe fn put_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE, fmuted: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_AudioMuted)(windows_core::Interface::as_raw(self), endevice, fmuted.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_AudioMuted)(windows_core::Interface::as_raw(self), endevice, fmuted.param().abi()).ok() } pub unsafe fn get_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -657,9 +657,9 @@ impl IRTCClient2 { } pub unsafe fn put_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_PreferredAudioDevice)(windows_core::Interface::as_raw(self), endevice, bstrdevicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_PreferredAudioDevice)(windows_core::Interface::as_raw(self), endevice, bstrdevicename.param().abi()).ok() } pub unsafe fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -674,9 +674,9 @@ impl IRTCClient2 { } pub unsafe fn SetPreferredAEC(&self, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPreferredAEC)(windows_core::Interface::as_raw(self), benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPreferredAEC)(windows_core::Interface::as_raw(self), benable.param().abi()).ok() } pub unsafe fn PreferredAEC(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -684,9 +684,9 @@ impl IRTCClient2 { } pub unsafe fn SetPreferredVideoDevice(&self, bstrdevicename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPreferredVideoDevice)(windows_core::Interface::as_raw(self), bstrdevicename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPreferredVideoDevice)(windows_core::Interface::as_raw(self), bstrdevicename.param().abi()).ok() } pub unsafe fn PreferredVideoDevice(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -730,9 +730,9 @@ impl IRTCClient2 { } pub unsafe fn SetLocalUserURI(&self, bstruseruri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocalUserURI)(windows_core::Interface::as_raw(self), bstruseruri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocalUserURI)(windows_core::Interface::as_raw(self), bstruseruri.param().abi()).ok() } pub unsafe fn LocalUserName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -740,15 +740,15 @@ impl IRTCClient2 { } pub unsafe fn SetLocalUserName(&self, bstrusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocalUserName)(windows_core::Interface::as_raw(self), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocalUserName)(windows_core::Interface::as_raw(self), bstrusername.param().abi()).ok() } pub unsafe fn PlayRing(&self, entype: RTC_RING_TYPE, bplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PlayRing)(windows_core::Interface::as_raw(self), entype, bplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PlayRing)(windows_core::Interface::as_raw(self), entype, bplay.param().abi()).ok() } pub unsafe fn SendDTMF(&self, endtmf: RTC_DTMF) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SendDTMF)(windows_core::Interface::as_raw(self), endtmf).ok() @@ -769,10 +769,10 @@ impl IRTCClient2 { } pub unsafe fn InvokeTuningWizardEx(&self, hwndparent: isize, fallowaudio: P0, fallowvideo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeTuningWizardEx)(windows_core::Interface::as_raw(self), hwndparent, fallowaudio.into_param().abi(), fallowvideo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeTuningWizardEx)(windows_core::Interface::as_raw(self), hwndparent, fallowaudio.param().abi(), fallowvideo.param().abi()).ok() } pub unsafe fn Version(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -780,33 +780,33 @@ impl IRTCClient2 { } pub unsafe fn SetClientName(&self, bstrclientname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), bstrclientname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientName)(windows_core::Interface::as_raw(self), bstrclientname.param().abi()).ok() } pub unsafe fn SetClientCurVer(&self, bstrclientcurver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientCurVer)(windows_core::Interface::as_raw(self), bstrclientcurver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientCurVer)(windows_core::Interface::as_raw(self), bstrclientcurver.param().abi()).ok() } pub unsafe fn InitializeEx(&self, lflags: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), lflags).ok() } pub unsafe fn CreateSessionWithDescription(&self, bstrcontenttype: P0, bstrsessiondescription: P1, pprofile: P2, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSessionWithDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.into_param().abi(), bstrsessiondescription.into_param().abi(), pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSessionWithDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.param().abi(), bstrsessiondescription.param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSessionDescriptionManager)(windows_core::Interface::as_raw(self), psessiondescriptionmanager.into_param().abi()).ok() + (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), ensecuritytype, ensecuritylevel).ok() @@ -867,15 +867,15 @@ windows_core::imp::interface_hierarchy!(IRTCClientPortManagement, windows_core:: impl IRTCClientPortManagement { pub unsafe fn StartListenAddressAndPort(&self, bstrinternallocaladdress: P0, linternallocalport: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartListenAddressAndPort)(windows_core::Interface::as_raw(self), bstrinternallocaladdress.into_param().abi(), linternallocalport).ok() + (windows_core::Interface::vtable(self).StartListenAddressAndPort)(windows_core::Interface::as_raw(self), bstrinternallocaladdress.param().abi(), linternallocalport).ok() } pub unsafe fn StopListenAddressAndPort(&self, bstrinternallocaladdress: P0, linternallocalport: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopListenAddressAndPort)(windows_core::Interface::as_raw(self), bstrinternallocaladdress.into_param().abi(), linternallocalport).ok() + (windows_core::Interface::vtable(self).StopListenAddressAndPort)(windows_core::Interface::as_raw(self), bstrinternallocaladdress.param().abi(), linternallocalport).ok() } pub unsafe fn GetPortRange(&self, enporttype: RTC_PORT_TYPE, plminvalue: *mut i32, plmaxvalue: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetPortRange)(windows_core::Interface::as_raw(self), enporttype, plminvalue, plmaxvalue).ok() @@ -893,23 +893,23 @@ windows_core::imp::interface_hierarchy!(IRTCClientPresence, windows_core::IUnkno impl IRTCClientPresence { pub unsafe fn EnablePresence(&self, fusestorage: P0, varstorage: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnablePresence)(windows_core::Interface::as_raw(self), fusestorage.into_param().abi(), varstorage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnablePresence)(windows_core::Interface::as_raw(self), fusestorage.param().abi(), varstorage.param().abi()).ok() } pub unsafe fn Export(&self, varstorage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), varstorage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Export)(windows_core::Interface::as_raw(self), varstorage.param().abi()).ok() } pub unsafe fn Import(&self, varstorage: P0, freplaceall: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), varstorage.into_param().abi(), freplaceall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Import)(windows_core::Interface::as_raw(self), varstorage.param().abi(), freplaceall.param().abi()).ok() } pub unsafe fn EnumerateBuddies(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -922,27 +922,27 @@ impl IRTCClientPresence { } pub unsafe fn get_Buddy(&self, bstrpresentityuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Buddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Buddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddBuddy(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fpersistent: P3, pprofile: P4, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBuddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), bstrusername.into_param().abi(), bstrdata.into_param().abi(), fpersistent.into_param().abi(), pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBuddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), bstrusername.param().abi(), bstrdata.param().abi(), fpersistent.param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBuddy)(windows_core::Interface::as_raw(self), pbuddy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBuddy)(windows_core::Interface::as_raw(self), pbuddy.param().abi()).ok() } pub unsafe fn EnumerateWatchers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -955,33 +955,33 @@ impl IRTCClientPresence { } pub unsafe fn get_Watcher(&self, bstrpresentityuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Watcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Watcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddWatcher(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fblocked: P3, fpersistent: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddWatcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), bstrusername.into_param().abi(), bstrdata.into_param().abi(), fblocked.into_param().abi(), fpersistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddWatcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), bstrusername.param().abi(), bstrdata.param().abi(), fblocked.param().abi(), fpersistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveWatcher(&self, pwatcher: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveWatcher)(windows_core::Interface::as_raw(self), pwatcher.into_param().abi()).ok() + (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalPresenceInfo)(windows_core::Interface::as_raw(self), enstatus, bstrnotes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalPresenceInfo)(windows_core::Interface::as_raw(self), enstatus, bstrnotes.param().abi()).ok() } pub unsafe fn OfferWatcherMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1031,23 +1031,23 @@ windows_core::imp::interface_hierarchy!(IRTCClientPresence2, windows_core::IUnkn impl IRTCClientPresence2 { pub unsafe fn EnablePresence(&self, fusestorage: P0, varstorage: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnablePresence)(windows_core::Interface::as_raw(self), fusestorage.into_param().abi(), varstorage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnablePresence)(windows_core::Interface::as_raw(self), fusestorage.param().abi(), varstorage.param().abi()).ok() } pub unsafe fn Export(&self, varstorage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Export)(windows_core::Interface::as_raw(self), varstorage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Export)(windows_core::Interface::as_raw(self), varstorage.param().abi()).ok() } pub unsafe fn Import(&self, varstorage: P0, freplaceall: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Import)(windows_core::Interface::as_raw(self), varstorage.into_param().abi(), freplaceall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Import)(windows_core::Interface::as_raw(self), varstorage.param().abi(), freplaceall.param().abi()).ok() } pub unsafe fn EnumerateBuddies(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1060,27 +1060,27 @@ impl IRTCClientPresence2 { } pub unsafe fn get_Buddy(&self, bstrpresentityuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_Buddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_Buddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddBuddy(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fpersistent: P3, pprofile: P4, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddBuddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), bstrusername.into_param().abi(), bstrdata.into_param().abi(), fpersistent.into_param().abi(), pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AddBuddy)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), bstrusername.param().abi(), bstrdata.param().abi(), fpersistent.param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveBuddy)(windows_core::Interface::as_raw(self), pbuddy.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveBuddy)(windows_core::Interface::as_raw(self), pbuddy.param().abi()).ok() } pub unsafe fn EnumerateWatchers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1093,33 +1093,33 @@ impl IRTCClientPresence2 { } pub unsafe fn get_Watcher(&self, bstrpresentityuri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_Watcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_Watcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddWatcher(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fblocked: P3, fpersistent: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddWatcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), bstrusername.into_param().abi(), bstrdata.into_param().abi(), fblocked.into_param().abi(), fpersistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AddWatcher)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), bstrusername.param().abi(), bstrdata.param().abi(), fblocked.param().abi(), fpersistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveWatcher(&self, pwatcher: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveWatcher)(windows_core::Interface::as_raw(self), pwatcher.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveWatcher)(windows_core::Interface::as_raw(self), pwatcher.param().abi()).ok() } pub unsafe fn SetLocalPresenceInfo(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetLocalPresenceInfo)(windows_core::Interface::as_raw(self), enstatus, bstrnotes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetLocalPresenceInfo)(windows_core::Interface::as_raw(self), enstatus, bstrnotes.param().abi()).ok() } pub unsafe fn OfferWatcherMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1137,28 +1137,28 @@ impl IRTCClientPresence2 { } pub unsafe fn EnablePresenceEx(&self, pprofile: P0, varstorage: P1, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EnablePresenceEx)(windows_core::Interface::as_raw(self), pprofile.into_param().abi(), varstorage.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).EnablePresenceEx)(windows_core::Interface::as_raw(self), pprofile.param().abi(), varstorage.param().abi(), lflags).ok() } pub unsafe fn DisablePresence(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisablePresence)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn AddGroup(&self, bstrgroupname: P0, bstrdata: P1, pprofile: P2, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddGroup)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), bstrdata.into_param().abi(), pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddGroup)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), bstrdata.param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveGroup)(windows_core::Interface::as_raw(self), pgroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveGroup)(windows_core::Interface::as_raw(self), pgroup.param().abi()).ok() } pub unsafe fn EnumerateGroups(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1171,34 +1171,34 @@ impl IRTCClientPresence2 { } pub unsafe fn get_Group(&self, bstrgroupname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Group)(windows_core::Interface::as_raw(self), bstrgroupname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Group)(windows_core::Interface::as_raw(self), bstrgroupname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddWatcherEx(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, enstate: RTC_WATCHER_STATE, fpersistent: P3, enscope: RTC_ACE_SCOPE, pprofile: P4, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddWatcherEx)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), bstrusername.into_param().abi(), bstrdata.into_param().abi(), enstate, fpersistent.into_param().abi(), enscope, pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddWatcherEx)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), bstrusername.param().abi(), bstrdata.param().abi(), enstate, fpersistent.param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_WatcherEx)(windows_core::Interface::as_raw(self), enmode, bstrpresentityuri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_WatcherEx)(windows_core::Interface::as_raw(self), enmode, bstrpresentityuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn put_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_PresenceProperty)(windows_core::Interface::as_raw(self), enproperty, bstrproperty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_PresenceProperty)(windows_core::Interface::as_raw(self), enproperty, bstrproperty.param().abi()).ok() } pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1206,10 +1206,10 @@ impl IRTCClientPresence2 { } pub unsafe fn SetPresenceData(&self, bstrnamespace: P0, bstrdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPresenceData)(windows_core::Interface::as_raw(self), bstrnamespace.into_param().abi(), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPresenceData)(windows_core::Interface::as_raw(self), bstrnamespace.param().abi(), bstrdata.param().abi()).ok() } 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() @@ -1219,14 +1219,14 @@ impl IRTCClientPresence2 { } pub unsafe fn AddBuddyEx(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fpersistent: P3, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: P4, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddBuddyEx)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi(), bstrusername.into_param().abi(), bstrdata.into_param().abi(), fpersistent.into_param().abi(), ensubscriptiontype, pprofile.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddBuddyEx)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi(), bstrusername.param().abi(), bstrdata.param().abi(), fpersistent.param().abi(), ensubscriptiontype, pprofile.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1256,22 +1256,22 @@ windows_core::imp::interface_hierarchy!(IRTCClientProvisioning, windows_core::IU impl IRTCClientProvisioning { pub unsafe fn CreateProfile(&self, bstrprofilexml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProfile)(windows_core::Interface::as_raw(self), bstrprofilexml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProfile)(windows_core::Interface::as_raw(self), bstrprofilexml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnableProfile(&self, pprofile: P0, lregisterflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisableProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisableProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } pub unsafe fn EnumerateProfiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1284,12 +1284,12 @@ impl IRTCClientProvisioning { } pub unsafe fn GetProfile(&self, bstruseraccount: P0, bstruserpassword: P1, bstruseruri: P2, bstrserver: P3, ltransport: i32, lcookie: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), bstruseraccount.into_param().abi(), bstruserpassword.into_param().abi(), bstruseruri.into_param().abi(), bstrserver.into_param().abi(), ltransport, lcookie).ok() + (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), bstruseraccount.param().abi(), bstruserpassword.param().abi(), bstruseruri.param().abi(), bstrserver.param().abi(), ltransport, lcookie).ok() } pub unsafe fn SessionCapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1315,22 +1315,22 @@ windows_core::imp::interface_hierarchy!(IRTCClientProvisioning2, windows_core::I impl IRTCClientProvisioning2 { pub unsafe fn CreateProfile(&self, bstrprofilexml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateProfile)(windows_core::Interface::as_raw(self), bstrprofilexml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateProfile)(windows_core::Interface::as_raw(self), bstrprofilexml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnableProfile(&self, pprofile: P0, lregisterflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnableProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi(), lregisterflags).ok() + (windows_core::Interface::vtable(self).base__.EnableProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi(), lregisterflags).ok() } pub unsafe fn DisableProfile(&self, pprofile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DisableProfile)(windows_core::Interface::as_raw(self), pprofile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DisableProfile)(windows_core::Interface::as_raw(self), pprofile.param().abi()).ok() } pub unsafe fn EnumerateProfiles(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1343,12 +1343,12 @@ impl IRTCClientProvisioning2 { } pub unsafe fn GetProfile(&self, bstruseraccount: P0, bstruserpassword: P1, bstruseruri: P2, bstrserver: P3, ltransport: i32, lcookie: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetProfile)(windows_core::Interface::as_raw(self), bstruseraccount.into_param().abi(), bstruserpassword.into_param().abi(), bstruseruri.into_param().abi(), bstrserver.into_param().abi(), ltransport, lcookie).ok() + (windows_core::Interface::vtable(self).base__.GetProfile)(windows_core::Interface::as_raw(self), bstruseraccount.param().abi(), bstruserpassword.param().abi(), bstruseruri.param().abi(), bstrserver.param().abi(), ltransport, lcookie).ok() } pub unsafe fn SessionCapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1356,9 +1356,9 @@ impl IRTCClientProvisioning2 { } pub unsafe fn EnableProfileEx(&self, pprofile: P0, lregisterflags: i32, lroamingflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableProfileEx)(windows_core::Interface::as_raw(self), pprofile.into_param().abi(), lregisterflags, lroamingflags).ok() + (windows_core::Interface::vtable(self).EnableProfileEx)(windows_core::Interface::as_raw(self), pprofile.param().abi(), lregisterflags, lroamingflags).ok() } } #[repr(C)] @@ -1585,9 +1585,9 @@ impl IRTCEventNotification { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Event(&self, rtcevent: RTC_EVENT, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), rtcevent, pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Event)(windows_core::Interface::as_raw(self), rtcevent, pevent.param().abi()).ok() } } #[repr(C)] @@ -1841,24 +1841,24 @@ windows_core::imp::interface_hierarchy!(IRTCPortManager, windows_core::IUnknown) impl IRTCPortManager { pub unsafe fn GetMapping(&self, bstrremoteaddress: P0, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut windows_core::BSTR, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut windows_core::BSTR, plexternallocalport: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMapping)(windows_core::Interface::as_raw(self), bstrremoteaddress.into_param().abi(), enporttype, core::mem::transmute(pbstrinternallocaladdress), plinternallocalport, core::mem::transmute(pbstrexternallocaladdress), plexternallocalport).ok() + (windows_core::Interface::vtable(self).GetMapping)(windows_core::Interface::as_raw(self), bstrremoteaddress.param().abi(), enporttype, core::mem::transmute(pbstrinternallocaladdress), plinternallocalport, core::mem::transmute(pbstrexternallocaladdress), plexternallocalport).ok() } pub unsafe fn UpdateRemoteAddress(&self, bstrremoteaddress: P0, bstrinternallocaladdress: P1, linternallocalport: i32, bstrexternallocaladdress: P2, lexternallocalport: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateRemoteAddress)(windows_core::Interface::as_raw(self), bstrremoteaddress.into_param().abi(), bstrinternallocaladdress.into_param().abi(), linternallocalport, bstrexternallocaladdress.into_param().abi(), lexternallocalport).ok() + (windows_core::Interface::vtable(self).UpdateRemoteAddress)(windows_core::Interface::as_raw(self), bstrremoteaddress.param().abi(), bstrinternallocaladdress.param().abi(), linternallocalport, bstrexternallocaladdress.param().abi(), lexternallocalport).ok() } pub unsafe fn ReleaseMapping(&self, bstrinternallocaladdress: P0, linternallocalport: i32, bstrexternallocaladdress: P1, lexternallocaladdress: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseMapping)(windows_core::Interface::as_raw(self), bstrinternallocaladdress.into_param().abi(), linternallocalport, bstrexternallocaladdress.into_param().abi(), lexternallocaladdress).ok() + (windows_core::Interface::vtable(self).ReleaseMapping)(windows_core::Interface::as_raw(self), bstrinternallocaladdress.param().abi(), linternallocalport, bstrexternallocaladdress.param().abi(), lexternallocaladdress).ok() } } #[repr(C)] @@ -1877,9 +1877,9 @@ impl IRTCPresenceContact { } pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1887,9 +1887,9 @@ impl IRTCPresenceContact { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1897,9 +1897,9 @@ impl IRTCPresenceContact { } pub unsafe fn SetData(&self, bstrdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), bstrdata.param().abi()).ok() } pub unsafe fn Persistent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1907,9 +1907,9 @@ impl IRTCPresenceContact { } pub unsafe fn SetPersistent(&self, fpersistent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.param().abi()).ok() } } #[repr(C)] @@ -2100,11 +2100,11 @@ impl IRTCProfile { } pub unsafe fn SetCredentials(&self, bstruseruri: P0, bstruseraccount: P1, bstrpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), bstruseruri.into_param().abi(), bstruseraccount.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), bstruseruri.param().abi(), bstruseraccount.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn SessionCapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2202,11 +2202,11 @@ impl IRTCProfile2 { } pub unsafe fn SetCredentials(&self, bstruseruri: P0, bstruseraccount: P1, bstrpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCredentials)(windows_core::Interface::as_raw(self), bstruseruri.into_param().abi(), bstruseraccount.into_param().abi(), bstrpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCredentials)(windows_core::Interface::as_raw(self), bstruseruri.param().abi(), bstruseraccount.param().abi(), bstrpassword.param().abi()).ok() } pub unsafe fn SessionCapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2222,9 +2222,9 @@ impl IRTCProfile2 { } pub unsafe fn SetRealm(&self, bstrrealm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRealm)(windows_core::Interface::as_raw(self), bstrrealm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRealm)(windows_core::Interface::as_raw(self), bstrrealm.param().abi()).ok() } pub unsafe fn AllowedAuth(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2310,10 +2310,10 @@ impl IRTCReInviteEvent { } pub unsafe fn Accept(&self, bstrcontenttype: P0, bstrsessiondescription: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Accept)(windows_core::Interface::as_raw(self), bstrcontenttype.into_param().abi(), bstrsessiondescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Accept)(windows_core::Interface::as_raw(self), bstrcontenttype.param().abi(), bstrsessiondescription.param().abi()).ok() } pub unsafe fn Reject(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Reject)(windows_core::Interface::as_raw(self)).ok() @@ -2432,24 +2432,24 @@ impl IRTCSession { } pub unsafe fn Redirect(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.into_param().abi(), pprofile.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.param().abi(), pprofile.param().abi(), lflags).ok() } pub unsafe fn AddParticipant(&self, bstraddress: P0, bstrname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddParticipant)(windows_core::Interface::as_raw(self), bstraddress.into_param().abi(), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddParticipant)(windows_core::Interface::as_raw(self), bstraddress.param().abi(), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveParticipant(&self, pparticipant: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveParticipant)(windows_core::Interface::as_raw(self), pparticipant.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveParticipant)(windows_core::Interface::as_raw(self), pparticipant.param().abi()).ok() } pub unsafe fn EnumerateParticipants(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2472,10 +2472,10 @@ impl IRTCSession { } pub unsafe fn SendMessage(&self, bstrmessageheader: P0, bstrmessage: P1, lcookie: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), bstrmessageheader.into_param().abi(), bstrmessage.into_param().abi(), lcookie).ok() + (windows_core::Interface::vtable(self).SendMessage)(windows_core::Interface::as_raw(self), bstrmessageheader.param().abi(), bstrmessage.param().abi(), lcookie).ok() } pub unsafe fn SendMessageStatus(&self, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SendMessageStatus)(windows_core::Interface::as_raw(self), enuserstatus, lcookie).ok() @@ -2488,9 +2488,9 @@ impl IRTCSession { } pub unsafe fn put_EncryptionKey(&self, lmediatype: i32, encryptionkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_EncryptionKey)(windows_core::Interface::as_raw(self), lmediatype, encryptionkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_EncryptionKey)(windows_core::Interface::as_raw(self), lmediatype, encryptionkey.param().abi()).ok() } } #[repr(C)] @@ -2552,24 +2552,24 @@ impl IRTCSession2 { } pub unsafe fn Redirect(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Redirect)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.into_param().abi(), pprofile.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).base__.Redirect)(windows_core::Interface::as_raw(self), entype, bstrlocalphoneuri.param().abi(), pprofile.param().abi(), lflags).ok() } pub unsafe fn AddParticipant(&self, bstraddress: P0, bstrname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddParticipant)(windows_core::Interface::as_raw(self), bstraddress.into_param().abi(), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AddParticipant)(windows_core::Interface::as_raw(self), bstraddress.param().abi(), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveParticipant(&self, pparticipant: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveParticipant)(windows_core::Interface::as_raw(self), pparticipant.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveParticipant)(windows_core::Interface::as_raw(self), pparticipant.param().abi()).ok() } pub unsafe fn EnumerateParticipants(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2592,10 +2592,10 @@ impl IRTCSession2 { } pub unsafe fn SendMessage(&self, bstrmessageheader: P0, bstrmessage: P1, lcookie: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SendMessage)(windows_core::Interface::as_raw(self), bstrmessageheader.into_param().abi(), bstrmessage.into_param().abi(), lcookie).ok() + (windows_core::Interface::vtable(self).base__.SendMessage)(windows_core::Interface::as_raw(self), bstrmessageheader.param().abi(), bstrmessage.param().abi(), lcookie).ok() } pub unsafe fn SendMessageStatus(&self, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SendMessageStatus)(windows_core::Interface::as_raw(self), enuserstatus, lcookie).ok() @@ -2608,16 +2608,16 @@ impl IRTCSession2 { } pub unsafe fn put_EncryptionKey(&self, lmediatype: i32, encryptionkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_EncryptionKey)(windows_core::Interface::as_raw(self), lmediatype, encryptionkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.put_EncryptionKey)(windows_core::Interface::as_raw(self), lmediatype, encryptionkey.param().abi()).ok() } pub unsafe fn SendInfo(&self, bstrinfoheader: P0, bstrinfo: P1, lcookie: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SendInfo)(windows_core::Interface::as_raw(self), bstrinfoheader.into_param().abi(), bstrinfo.into_param().abi(), lcookie).ok() + (windows_core::Interface::vtable(self).SendInfo)(windows_core::Interface::as_raw(self), bstrinfoheader.param().abi(), bstrinfo.param().abi(), lcookie).ok() } pub unsafe fn put_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).put_PreferredSecurityLevel)(windows_core::Interface::as_raw(self), ensecuritytype, ensecuritylevel).ok() @@ -2632,17 +2632,17 @@ impl IRTCSession2 { } pub unsafe fn AnswerWithSessionDescription(&self, bstrcontenttype: P0, bstrsessiondescription: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AnswerWithSessionDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.into_param().abi(), bstrsessiondescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AnswerWithSessionDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.param().abi(), bstrsessiondescription.param().abi()).ok() } pub unsafe fn ReInviteWithSessionDescription(&self, bstrcontenttype: P0, bstrsessiondescription: P1, lcookie: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReInviteWithSessionDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.into_param().abi(), bstrsessiondescription.into_param().abi(), lcookie).ok() + (windows_core::Interface::vtable(self).ReInviteWithSessionDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.param().abi(), bstrsessiondescription.param().abi(), lcookie).ok() } } #[repr(C)] @@ -2666,22 +2666,22 @@ impl IRTCSessionCallControl { } pub unsafe fn Forward(&self, bstrforwardtouri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Forward)(windows_core::Interface::as_raw(self), bstrforwardtouri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Forward)(windows_core::Interface::as_raw(self), bstrforwardtouri.param().abi()).ok() } pub unsafe fn Refer(&self, bstrrefertouri: P0, bstrrefercookie: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Refer)(windows_core::Interface::as_raw(self), bstrrefertouri.into_param().abi(), bstrrefercookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Refer)(windows_core::Interface::as_raw(self), bstrrefertouri.param().abi(), bstrrefercookie.param().abi()).ok() } pub unsafe fn SetReferredByURI(&self, bstrreferredbyuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReferredByURI)(windows_core::Interface::as_raw(self), bstrreferredbyuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReferredByURI)(windows_core::Interface::as_raw(self), bstrreferredbyuri.param().abi()).ok() } pub unsafe fn ReferredByURI(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2689,9 +2689,9 @@ impl IRTCSessionCallControl { } pub unsafe fn SetReferCookie(&self, bstrrefercookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReferCookie)(windows_core::Interface::as_raw(self), bstrrefercookie.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReferCookie)(windows_core::Interface::as_raw(self), bstrrefercookie.param().abi()).ok() } pub unsafe fn ReferCookie(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2720,10 +2720,10 @@ windows_core::imp::interface_hierarchy!(IRTCSessionDescriptionManager, windows_c impl IRTCSessionDescriptionManager { pub unsafe fn EvaluateSessionDescription(&self, bstrcontenttype: P0, bstrsessiondescription: P1, pfapplicationsession: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateSessionDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.into_param().abi(), bstrsessiondescription.into_param().abi(), pfapplicationsession).ok() + (windows_core::Interface::vtable(self).EvaluateSessionDescription)(windows_core::Interface::as_raw(self), bstrcontenttype.param().abi(), bstrsessiondescription.param().abi(), pfapplicationsession).ok() } } #[repr(C)] @@ -2805,9 +2805,9 @@ windows_core::imp::interface_hierarchy!(IRTCSessionPortManagement, windows_core: impl IRTCSessionPortManagement { pub unsafe fn SetPortManager(&self, pportmanager: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPortManager)(windows_core::Interface::as_raw(self), pportmanager.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPortManager)(windows_core::Interface::as_raw(self), pportmanager.param().abi()).ok() } } #[repr(C)] @@ -2979,10 +2979,10 @@ impl IRTCUserSearch { } pub unsafe fn ExecuteSearch(&self, pquery: P0, pprofile: P1, lcookie: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecuteSearch)(windows_core::Interface::as_raw(self), pquery.into_param().abi(), pprofile.into_param().abi(), lcookie).ok() + (windows_core::Interface::vtable(self).ExecuteSearch)(windows_core::Interface::as_raw(self), pquery.param().abi(), pprofile.param().abi(), lcookie).ok() } } #[repr(C)] @@ -2996,17 +2996,17 @@ windows_core::imp::interface_hierarchy!(IRTCUserSearchQuery, windows_core::IUnkn impl IRTCUserSearchQuery { pub unsafe fn put_SearchTerm(&self, bstrname: P0, bstrvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_SearchTerm)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstrvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_SearchTerm)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstrvalue.param().abi()).ok() } pub unsafe fn get_SearchTerm(&self, bstrname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_SearchTerm)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_SearchTerm)(windows_core::Interface::as_raw(self), bstrname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SearchTerms(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3021,9 +3021,9 @@ impl IRTCUserSearchQuery { } pub unsafe fn SetSearchDomain(&self, bstrdomain: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSearchDomain)(windows_core::Interface::as_raw(self), bstrdomain.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSearchDomain)(windows_core::Interface::as_raw(self), bstrdomain.param().abi()).ok() } pub unsafe fn SearchDomain(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3114,9 +3114,9 @@ impl IRTCWatcher { } pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3124,9 +3124,9 @@ impl IRTCWatcher { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3134,9 +3134,9 @@ impl IRTCWatcher { } pub unsafe fn SetData(&self, bstrdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.param().abi()).ok() } pub unsafe fn Persistent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3144,9 +3144,9 @@ impl IRTCWatcher { } pub unsafe fn SetPersistent(&self, fpersistent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.param().abi()).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3171,9 +3171,9 @@ impl IRTCWatcher2 { } pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPresentityURI)(windows_core::Interface::as_raw(self), bstrpresentityuri.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3181,9 +3181,9 @@ impl IRTCWatcher2 { } pub unsafe fn SetName(&self, bstrname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bstrname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetName)(windows_core::Interface::as_raw(self), bstrname.param().abi()).ok() } pub unsafe fn Data(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3191,9 +3191,9 @@ impl IRTCWatcher2 { } pub unsafe fn SetData(&self, bstrdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetData)(windows_core::Interface::as_raw(self), bstrdata.param().abi()).ok() } pub unsafe fn Persistent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3201,9 +3201,9 @@ impl IRTCWatcher2 { } pub unsafe fn SetPersistent(&self, fpersistent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPersistent)(windows_core::Interface::as_raw(self), fpersistent.param().abi()).ok() } pub unsafe fn State(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 0f681c94e5..38d0dda326 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn ApplicationRecoveryFinished(bsuccess: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ApplicationRecoveryFinished(bsuccess : super::super::Foundation:: BOOL)); - ApplicationRecoveryFinished(bsuccess.into_param().abi()) + ApplicationRecoveryFinished(bsuccess.param().abi()) } #[inline] pub unsafe fn ApplicationRecoveryInProgress() -> windows_core::Result { @@ -16,18 +16,18 @@ pub unsafe fn ApplicationRecoveryInProgress() -> windows_core::Result(hprocess: P0, precoverycallback: *mut super::WindowsProgramming::APPLICATION_RECOVERY_CALLBACK, ppvparameter: Option<*mut *mut core::ffi::c_void>, pdwpinginterval: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), precoverycallback, core::mem::transmute(ppvparameter.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwpinginterval.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))) + GetApplicationRecoveryCallback(hprocess.param().abi(), precoverycallback, core::mem::transmute(ppvparameter.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwpinginterval.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetApplicationRestartSettings(hprocess: P0, pwzcommandline: windows_core::PWSTR, pcchsize: *mut u32, pdwflags: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(pwzcommandline), pcchsize, core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))).ok() + GetApplicationRestartSettings(hprocess.param().abi(), core::mem::transmute(pwzcommandline), pcchsize, core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] @@ -38,10 +38,10 @@ pub unsafe fn RegisterApplicationRecoveryCallback(precoveycallback: super::Windo #[inline] pub unsafe fn RegisterApplicationRestart(pwzcommandline: P0, dwflags: REGISTER_APPLICATION_RESTART_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), 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 c2c75e1ee7..a0a14b2d08 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs @@ -1,254 +1,254 @@ #[inline] pub unsafe fn GetRegistryValueWithFallbackW(hkeyprimary: P0, pwszprimarysubkey: P1, hkeyfallback: P2, pwszfallbacksubkey: P3, pwszvalue: P4, dwflags: u32, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, cbdatain: u32, pcbdataout: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hkeyprimary.into_param().abi(), pwszprimarysubkey.into_param().abi(), hkeyfallback.into_param().abi(), pwszfallbacksubkey.into_param().abi(), pwszvalue.into_param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), cbdatain, core::mem::transmute(pcbdataout.unwrap_or(std::ptr::null_mut()))) + GetRegistryValueWithFallbackW(hkeyprimary.param().abi(), pwszprimarysubkey.param().abi(), hkeyfallback.param().abi(), pwszfallbacksubkey.param().abi(), pwszvalue.param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), cbdatain, core::mem::transmute(pcbdataout.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegCloseKey(hkey: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegCloseKey(hkey : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegCloseKey(hkey.into_param().abi()) + RegCloseKey(hkey.param().abi()) } #[inline] pub unsafe fn RegConnectRegistryA(lpmachinename: P0, hkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hkey.into_param().abi(), phkresult) + RegConnectRegistryA(lpmachinename.param().abi(), hkey.param().abi(), phkresult) } #[inline] pub unsafe fn RegConnectRegistryExA(lpmachinename: P0, hkey: P1, flags: u32, phkresult: *mut HKEY) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hkey.into_param().abi(), flags, phkresult) + RegConnectRegistryExA(lpmachinename.param().abi(), hkey.param().abi(), flags, phkresult) } #[inline] pub unsafe fn RegConnectRegistryExW(lpmachinename: P0, hkey: P1, flags: u32, phkresult: *mut HKEY) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hkey.into_param().abi(), flags, phkresult) + RegConnectRegistryExW(lpmachinename.param().abi(), hkey.param().abi(), flags, phkresult) } #[inline] pub unsafe fn RegConnectRegistryW(lpmachinename: P0, hkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), hkey.into_param().abi(), phkresult) + RegConnectRegistryW(lpmachinename.param().abi(), hkey.param().abi(), phkresult) } #[inline] pub unsafe fn RegCopyTreeA(hkeysrc: P0, lpsubkey: P1, hkeydest: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkeysrc.into_param().abi(), lpsubkey.into_param().abi(), hkeydest.into_param().abi()) + RegCopyTreeA(hkeysrc.param().abi(), lpsubkey.param().abi(), hkeydest.param().abi()) } #[inline] pub unsafe fn RegCopyTreeW(hkeysrc: P0, lpsubkey: P1, hkeydest: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkeysrc.into_param().abi(), lpsubkey.into_param().abi(), hkeydest.into_param().abi()) + RegCopyTreeW(hkeysrc.param().abi(), lpsubkey.param().abi(), hkeydest.param().abi()) } #[inline] pub unsafe fn RegCreateKeyA(hkey: P0, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), phkresult) + RegCreateKeyA(hkey.param().abi(), lpsubkey.param().abi(), phkresult) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegCreateKeyExA(hkey: P0, lpsubkey: P1, reserved: u32, lpclass: P2, dwoptions: REG_OPEN_CREATE_OPTIONS, samdesired: REG_SAM_FLAGS, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, phkresult: *mut HKEY, lpdwdisposition: Option<*mut REG_CREATE_KEY_DISPOSITION>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), reserved, lpclass.into_param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut()))) + RegCreateKeyExA(hkey.param().abi(), lpsubkey.param().abi(), reserved, lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegCreateKeyExW(hkey: P0, lpsubkey: P1, reserved: u32, lpclass: P2, dwoptions: REG_OPEN_CREATE_OPTIONS, samdesired: REG_SAM_FLAGS, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, phkresult: *mut HKEY, lpdwdisposition: Option<*mut REG_CREATE_KEY_DISPOSITION>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), reserved, lpclass.into_param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut()))) + RegCreateKeyExW(hkey.param().abi(), lpsubkey.param().abi(), reserved, lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegCreateKeyTransactedA(hkey: P0, lpsubkey: P1, reserved: u32, lpclass: P2, dwoptions: REG_OPEN_CREATE_OPTIONS, samdesired: REG_SAM_FLAGS, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, phkresult: *mut HKEY, lpdwdisposition: Option<*mut REG_CREATE_KEY_DISPOSITION>, htransaction: P3, pextendedparemeter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), reserved, lpclass.into_param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut())), htransaction.into_param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) + RegCreateKeyTransactedA(hkey.param().abi(), lpsubkey.param().abi(), reserved, lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut())), htransaction.param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegCreateKeyTransactedW(hkey: P0, lpsubkey: P1, reserved: u32, lpclass: P2, dwoptions: REG_OPEN_CREATE_OPTIONS, samdesired: REG_SAM_FLAGS, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, phkresult: *mut HKEY, lpdwdisposition: Option<*mut REG_CREATE_KEY_DISPOSITION>, htransaction: P3, pextendedparemeter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), reserved, lpclass.into_param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut())), htransaction.into_param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) + RegCreateKeyTransactedW(hkey.param().abi(), lpsubkey.param().abi(), reserved, lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, core::mem::transmute(lpdwdisposition.unwrap_or(std::ptr::null_mut())), htransaction.param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RegCreateKeyW(hkey: P0, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), phkresult) + RegCreateKeyW(hkey.param().abi(), lpsubkey.param().abi(), phkresult) } #[inline] pub unsafe fn RegDeleteKeyA(hkey: P0, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyA(hkey.into_param().abi(), lpsubkey.into_param().abi()) + RegDeleteKeyA(hkey.param().abi(), lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteKeyExA(hkey: P0, lpsubkey: P1, samdesired: u32, reserved: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), samdesired, reserved) + RegDeleteKeyExA(hkey.param().abi(), lpsubkey.param().abi(), samdesired, reserved) } #[inline] pub unsafe fn RegDeleteKeyExW(hkey: P0, lpsubkey: P1, samdesired: u32, reserved: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), samdesired, reserved) + RegDeleteKeyExW(hkey.param().abi(), lpsubkey.param().abi(), samdesired, reserved) } #[inline] pub unsafe fn RegDeleteKeyTransactedA(hkey: P0, lpsubkey: P1, samdesired: u32, reserved: u32, htransaction: P2, pextendedparameter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), samdesired, reserved, htransaction.into_param().abi(), core::mem::transmute(pextendedparameter.unwrap_or(std::ptr::null()))) + RegDeleteKeyTransactedA(hkey.param().abi(), lpsubkey.param().abi(), samdesired, reserved, htransaction.param().abi(), core::mem::transmute(pextendedparameter.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RegDeleteKeyTransactedW(hkey: P0, lpsubkey: P1, samdesired: u32, reserved: u32, htransaction: P2, pextendedparameter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), samdesired, reserved, htransaction.into_param().abi(), core::mem::transmute(pextendedparameter.unwrap_or(std::ptr::null()))) + RegDeleteKeyTransactedW(hkey.param().abi(), lpsubkey.param().abi(), samdesired, reserved, htransaction.param().abi(), core::mem::transmute(pextendedparameter.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RegDeleteKeyValueA(hkey: P0, lpsubkey: P1, lpvaluename: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpvaluename.into_param().abi()) + RegDeleteKeyValueA(hkey.param().abi(), lpsubkey.param().abi(), lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDeleteKeyValueW(hkey: P0, lpsubkey: P1, lpvaluename: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpvaluename.into_param().abi()) + RegDeleteKeyValueW(hkey.param().abi(), lpsubkey.param().abi(), lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDeleteKeyW(hkey: P0, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteKeyW(hkey.into_param().abi(), lpsubkey.into_param().abi()) + RegDeleteKeyW(hkey.param().abi(), lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteTreeA(hkey: P0, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteTreeA(hkey : HKEY, lpsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteTreeA(hkey.into_param().abi(), lpsubkey.into_param().abi()) + RegDeleteTreeA(hkey.param().abi(), lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteTreeW(hkey: P0, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteTreeW(hkey : HKEY, lpsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteTreeW(hkey.into_param().abi(), lpsubkey.into_param().abi()) + RegDeleteTreeW(hkey.param().abi(), lpsubkey.param().abi()) } #[inline] pub unsafe fn RegDeleteValueA(hkey: P0, lpvaluename: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteValueA(hkey : HKEY, lpvaluename : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteValueA(hkey.into_param().abi(), lpvaluename.into_param().abi()) + RegDeleteValueA(hkey.param().abi(), lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDeleteValueW(hkey: P0, lpvaluename: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDeleteValueW(hkey : HKEY, lpvaluename : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegDeleteValueW(hkey.into_param().abi(), lpvaluename.into_param().abi()) + RegDeleteValueW(hkey.param().abi(), lpvaluename.param().abi()) } #[inline] pub unsafe fn RegDisablePredefinedCache() -> super::super::Foundation::WIN32_ERROR { @@ -263,170 +263,170 @@ pub unsafe fn RegDisablePredefinedCacheEx() -> super::super::Foundation::WIN32_E #[inline] pub unsafe fn RegDisableReflectionKey(hbase: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegDisableReflectionKey(hbase : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegDisableReflectionKey(hbase.into_param().abi()) + RegDisableReflectionKey(hbase.param().abi()) } #[inline] pub unsafe fn RegEnableReflectionKey(hbase: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegEnableReflectionKey(hbase : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegEnableReflectionKey(hbase.into_param().abi()) + RegEnableReflectionKey(hbase.param().abi()) } #[inline] pub unsafe fn RegEnumKeyA(hkey: P0, dwindex: u32, lpname: Option<&mut [u8]>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegEnumKeyA(hkey : HKEY, dwindex : u32, lpname : windows_core::PSTR, cchname : u32) -> super::super::Foundation:: WIN32_ERROR); - RegEnumKeyA(hkey.into_param().abi(), 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.param().abi(), 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: P0, dwindex: u32, lpname: windows_core::PSTR, lpcchname: *mut u32, lpreserved: Option<*const u32>, lpclass: windows_core::PSTR, lpcchclass: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(lpname), lpcchname, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lpclass), core::mem::transmute(lpcchclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) + RegEnumKeyExA(hkey.param().abi(), dwindex, core::mem::transmute(lpname), lpcchname, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lpclass), core::mem::transmute(lpcchclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegEnumKeyExW(hkey: P0, dwindex: u32, lpname: windows_core::PWSTR, lpcchname: *mut u32, lpreserved: Option<*const u32>, lpclass: windows_core::PWSTR, lpcchclass: Option<*mut u32>, lpftlastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(lpname), lpcchname, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lpclass), core::mem::transmute(lpcchclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) + RegEnumKeyExW(hkey.param().abi(), dwindex, core::mem::transmute(lpname), lpcchname, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lpclass), core::mem::transmute(lpcchclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpftlastwritetime.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegEnumKeyW(hkey: P0, dwindex: u32, lpname: Option<&mut [u16]>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegEnumKeyW(hkey : HKEY, dwindex : u32, lpname : windows_core::PWSTR, cchname : u32) -> super::super::Foundation:: WIN32_ERROR); - RegEnumKeyW(hkey.into_param().abi(), 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.param().abi(), 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: P0, dwindex: u32, lpvaluename: windows_core::PSTR, lpcchvaluename: *mut u32, lpreserved: Option<*const u32>, lptype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(lpvaluename), lpcchvaluename, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + RegEnumValueA(hkey.param().abi(), dwindex, core::mem::transmute(lpvaluename), lpcchvaluename, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegEnumValueW(hkey: P0, dwindex: u32, lpvaluename: windows_core::PWSTR, lpcchvaluename: *mut u32, lpreserved: Option<*const u32>, lptype: Option<*mut u32>, lpdata: Option<*mut u8>, lpcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(lpvaluename), lpcchvaluename, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + RegEnumValueW(hkey.param().abi(), dwindex, core::mem::transmute(lpvaluename), lpcchvaluename, core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegFlushKey(hkey: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegFlushKey(hkey : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegFlushKey(hkey.into_param().abi()) + RegFlushKey(hkey.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegGetKeySecurity(hkey: P0, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), securityinformation, psecuritydescriptor, lpcbsecuritydescriptor) + RegGetKeySecurity(hkey.param().abi(), securityinformation, psecuritydescriptor, lpcbsecuritydescriptor) } #[inline] pub unsafe fn RegGetValueA(hkey: P0, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpvalue.into_param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + RegGetValueA(hkey.param().abi(), lpsubkey.param().abi(), lpvalue.param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegGetValueW(hkey: P0, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpvalue.into_param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + RegGetValueW(hkey.param().abi(), lpsubkey.param().abi(), lpvalue.param().abi(), dwflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegLoadAppKeyA(lpfile: P0, phkresult: *mut HKEY, samdesired: u32, dwoptions: u32, reserved: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), phkresult, samdesired, dwoptions, reserved) + RegLoadAppKeyA(lpfile.param().abi(), phkresult, samdesired, dwoptions, reserved) } #[inline] pub unsafe fn RegLoadAppKeyW(lpfile: P0, phkresult: *mut HKEY, samdesired: u32, dwoptions: u32, reserved: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), phkresult, samdesired, dwoptions, reserved) + RegLoadAppKeyW(lpfile.param().abi(), phkresult, samdesired, dwoptions, reserved) } #[inline] pub unsafe fn RegLoadKeyA(hkey: P0, lpsubkey: P1, lpfile: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpfile.into_param().abi()) + RegLoadKeyA(hkey.param().abi(), lpsubkey.param().abi(), lpfile.param().abi()) } #[inline] pub unsafe fn RegLoadKeyW(hkey: P0, lpsubkey: P1, lpfile: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpfile.into_param().abi()) + RegLoadKeyW(hkey.param().abi(), lpsubkey.param().abi(), lpfile.param().abi()) } #[inline] pub unsafe fn RegLoadMUIStringA(hkey: P0, pszvalue: P1, pszoutbuf: Option<&mut [u8]>, pcbdata: Option<*mut u32>, flags: u32, pszdirectory: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), pszvalue.into_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(std::ptr::null_mut())), flags, pszdirectory.into_param().abi()) + RegLoadMUIStringA(hkey.param().abi(), 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(std::ptr::null_mut())), flags, pszdirectory.param().abi()) } #[inline] pub unsafe fn RegLoadMUIStringW(hkey: P0, pszvalue: P1, pszoutbuf: windows_core::PWSTR, cboutbuf: u32, pcbdata: Option<*mut u32>, flags: u32, pszdirectory: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), pszvalue.into_param().abi(), core::mem::transmute(pszoutbuf), cboutbuf, core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), flags, pszdirectory.into_param().abi()) + RegLoadMUIStringW(hkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pszoutbuf), cboutbuf, core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), flags, pszdirectory.param().abi()) } #[inline] pub unsafe fn RegNotifyChangeKeyValue(hkey: P0, bwatchsubtree: P1, dwnotifyfilter: REG_NOTIFY_FILTER, hevent: P2, fasynchronous: P3) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hkey.into_param().abi(), bwatchsubtree.into_param().abi(), dwnotifyfilter, hevent.into_param().abi(), fasynchronous.into_param().abi()) + RegNotifyChangeKeyValue(hkey.param().abi(), bwatchsubtree.param().abi(), dwnotifyfilter, hevent.param().abi(), fasynchronous.param().abi()) } #[inline] pub unsafe fn RegOpenCurrentUser(samdesired: u32, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR { @@ -436,84 +436,84 @@ pub unsafe fn RegOpenCurrentUser(samdesired: u32, phkresult: *mut HKEY) -> super #[inline] pub unsafe fn RegOpenKeyA(hkey: P0, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), phkresult) + RegOpenKeyA(hkey.param().abi(), lpsubkey.param().abi(), phkresult) } #[inline] pub unsafe fn RegOpenKeyExA(hkey: P0, lpsubkey: P1, uloptions: u32, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), uloptions, samdesired, phkresult) + RegOpenKeyExA(hkey.param().abi(), lpsubkey.param().abi(), uloptions, samdesired, phkresult) } #[inline] pub unsafe fn RegOpenKeyExW(hkey: P0, lpsubkey: P1, uloptions: u32, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), uloptions, samdesired, phkresult) + RegOpenKeyExW(hkey.param().abi(), lpsubkey.param().abi(), uloptions, samdesired, phkresult) } #[inline] pub unsafe fn RegOpenKeyTransactedA(hkey: P0, lpsubkey: P1, uloptions: u32, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY, htransaction: P2, pextendedparemeter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), uloptions, samdesired, phkresult, htransaction.into_param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) + RegOpenKeyTransactedA(hkey.param().abi(), lpsubkey.param().abi(), uloptions, samdesired, phkresult, htransaction.param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RegOpenKeyTransactedW(hkey: P0, lpsubkey: P1, uloptions: u32, samdesired: REG_SAM_FLAGS, phkresult: *mut HKEY, htransaction: P2, pextendedparemeter: Option<*const core::ffi::c_void>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), uloptions, samdesired, phkresult, htransaction.into_param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) + RegOpenKeyTransactedW(hkey.param().abi(), lpsubkey.param().abi(), uloptions, samdesired, phkresult, htransaction.param().abi(), core::mem::transmute(pextendedparemeter.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RegOpenKeyW(hkey: P0, lpsubkey: P1, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), phkresult) + RegOpenKeyW(hkey.param().abi(), lpsubkey.param().abi(), phkresult) } #[inline] pub unsafe fn RegOpenUserClassesRoot(htoken: P0, dwoptions: u32, samdesired: u32, phkresult: *mut HKEY) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htoken.into_param().abi(), dwoptions, samdesired, phkresult) + RegOpenUserClassesRoot(htoken.param().abi(), dwoptions, samdesired, phkresult) } #[inline] pub unsafe fn RegOverridePredefKey(hkey: P0, hnewhkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegOverridePredefKey(hkey : HKEY, hnewhkey : HKEY) -> super::super::Foundation:: WIN32_ERROR); - RegOverridePredefKey(hkey.into_param().abi(), hnewhkey.into_param().abi()) + RegOverridePredefKey(hkey.param().abi(), hnewhkey.param().abi()) } #[inline] pub unsafe fn RegQueryInfoKeyA(hkey: P0, lpclass: windows_core::PSTR, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - hkey.into_param().abi(), + hkey.param().abi(), core::mem::transmute(lpclass), core::mem::transmute(lpcchclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), @@ -530,11 +530,11 @@ where #[inline] pub unsafe fn RegQueryInfoKeyW(hkey: P0, lpclass: windows_core::PWSTR, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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( - hkey.into_param().abi(), + hkey.param().abi(), core::mem::transmute(lpclass), core::mem::transmute(lpcchclass.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), @@ -551,237 +551,237 @@ where #[inline] pub unsafe fn RegQueryMultipleValuesA(hkey: P0, val_list: &mut [VALENTA], lpvaluebuf: windows_core::PSTR, ldwtotsize: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf), core::mem::transmute(ldwtotsize.unwrap_or(std::ptr::null_mut()))) + RegQueryMultipleValuesA(hkey.param().abi(), core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf), core::mem::transmute(ldwtotsize.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegQueryMultipleValuesW(hkey: P0, val_list: &mut [VALENTW], lpvaluebuf: windows_core::PWSTR, ldwtotsize: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf), core::mem::transmute(ldwtotsize.unwrap_or(std::ptr::null_mut()))) + RegQueryMultipleValuesW(hkey.param().abi(), core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), core::mem::transmute(lpvaluebuf), core::mem::transmute(ldwtotsize.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegQueryReflectionKey(hbase: P0, bisreflectiondisabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegQueryReflectionKey(hbase : HKEY, bisreflectiondisabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); - RegQueryReflectionKey(hbase.into_param().abi(), bisreflectiondisabled) + RegQueryReflectionKey(hbase.param().abi(), bisreflectiondisabled) } #[inline] pub unsafe fn RegQueryValueA(hkey: P0, lpsubkey: P1, lpdata: windows_core::PSTR, lpcbdata: Option<*mut i32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), core::mem::transmute(lpdata), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + RegQueryValueA(hkey.param().abi(), lpsubkey.param().abi(), core::mem::transmute(lpdata), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegQueryValueExA(hkey: P0, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpvaluename.into_param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + RegQueryValueExA(hkey.param().abi(), lpvaluename.param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegQueryValueExW(hkey: P0, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpvaluename.into_param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + RegQueryValueExW(hkey.param().abi(), lpvaluename.param().abi(), core::mem::transmute(lpreserved.unwrap_or(std::ptr::null())), core::mem::transmute(lptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegQueryValueW(hkey: P0, lpsubkey: P1, lpdata: windows_core::PWSTR, lpcbdata: Option<*mut i32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), core::mem::transmute(lpdata), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) + RegQueryValueW(hkey.param().abi(), lpsubkey.param().abi(), core::mem::transmute(lpdata), core::mem::transmute(lpcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegRenameKey(hkey: P0, lpsubkeyname: P1, lpnewkeyname: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkeyname.into_param().abi(), lpnewkeyname.into_param().abi()) + RegRenameKey(hkey.param().abi(), lpsubkeyname.param().abi(), lpnewkeyname.param().abi()) } #[inline] pub unsafe fn RegReplaceKeyA(hkey: P0, lpsubkey: P1, lpnewfile: P2, lpoldfile: P3) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpnewfile.into_param().abi(), lpoldfile.into_param().abi()) + RegReplaceKeyA(hkey.param().abi(), lpsubkey.param().abi(), lpnewfile.param().abi(), lpoldfile.param().abi()) } #[inline] pub unsafe fn RegReplaceKeyW(hkey: P0, lpsubkey: P1, lpnewfile: P2, lpoldfile: P3) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpnewfile.into_param().abi(), lpoldfile.into_param().abi()) + RegReplaceKeyW(hkey.param().abi(), lpsubkey.param().abi(), lpnewfile.param().abi(), lpoldfile.param().abi()) } #[inline] pub unsafe fn RegRestoreKeyA(hkey: P0, lpfile: P1, dwflags: REG_RESTORE_KEY_FLAGS) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpfile.into_param().abi(), dwflags.0 as _) + RegRestoreKeyA(hkey.param().abi(), lpfile.param().abi(), dwflags.0 as _) } #[inline] pub unsafe fn RegRestoreKeyW(hkey: P0, lpfile: P1, dwflags: REG_RESTORE_KEY_FLAGS) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpfile.into_param().abi(), dwflags.0 as _) + RegRestoreKeyW(hkey.param().abi(), lpfile.param().abi(), dwflags.0 as _) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegSaveKeyA(hkey: P0, lpfile: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpfile.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) + RegSaveKeyA(hkey.param().abi(), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegSaveKeyExA(hkey: P0, lpfile: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, flags: REG_SAVE_FORMAT) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpfile.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), flags) + RegSaveKeyExA(hkey.param().abi(), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), flags) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegSaveKeyExW(hkey: P0, lpfile: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, flags: REG_SAVE_FORMAT) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpfile.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), flags) + RegSaveKeyExW(hkey.param().abi(), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), flags) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegSaveKeyW(hkey: P0, lpfile: P1, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpfile.into_param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) + RegSaveKeyW(hkey.param().abi(), lpfile.param().abi(), core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RegSetKeySecurity(hkey: P0, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hkey.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()) + RegSetKeySecurity(hkey.param().abi(), securityinformation, psecuritydescriptor.param().abi()) } #[inline] pub unsafe fn RegSetKeyValueA(hkey: P0, lpsubkey: P1, lpvaluename: P2, dwtype: u32, lpdata: Option<*const core::ffi::c_void>, cbdata: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpvaluename.into_param().abi(), dwtype, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata) + RegSetKeyValueA(hkey.param().abi(), lpsubkey.param().abi(), lpvaluename.param().abi(), dwtype, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata) } #[inline] pub unsafe fn RegSetKeyValueW(hkey: P0, lpsubkey: P1, lpvaluename: P2, dwtype: u32, lpdata: Option<*const core::ffi::c_void>, cbdata: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), lpvaluename.into_param().abi(), dwtype, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata) + RegSetKeyValueW(hkey.param().abi(), lpsubkey.param().abi(), lpvaluename.param().abi(), dwtype, core::mem::transmute(lpdata.unwrap_or(std::ptr::null())), cbdata) } #[inline] pub unsafe fn RegSetValueA(hkey: P0, lpsubkey: P1, dwtype: REG_VALUE_TYPE, lpdata: Option<&[u8]>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpsubkey.into_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())) + RegSetValueA(hkey.param().abi(), 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: P0, lpvaluename: P1, reserved: u32, dwtype: REG_VALUE_TYPE, lpdata: Option<&[u8]>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpvaluename.into_param().abi(), reserved, 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.param().abi(), lpvaluename.param().abi(), reserved, 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: P0, lpvaluename: P1, reserved: u32, dwtype: REG_VALUE_TYPE, lpdata: Option<&[u8]>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), lpvaluename.into_param().abi(), reserved, 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.param().abi(), lpvaluename.param().abi(), reserved, 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: P0, lpsubkey: P1, dwtype: REG_VALUE_TYPE, lpdata: P2, cbdata: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkey.into_param().abi(), lpsubkey.into_param().abi(), dwtype, lpdata.into_param().abi(), cbdata) + RegSetValueW(hkey.param().abi(), lpsubkey.param().abi(), dwtype, lpdata.param().abi(), cbdata) } #[inline] pub unsafe fn RegUnLoadKeyA(hkey: P0, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegUnLoadKeyA(hkey : HKEY, lpsubkey : windows_core::PCSTR) -> super::super::Foundation:: WIN32_ERROR); - RegUnLoadKeyA(hkey.into_param().abi(), lpsubkey.into_param().abi()) + RegUnLoadKeyA(hkey.param().abi(), lpsubkey.param().abi()) } #[inline] pub unsafe fn RegUnLoadKeyW(hkey: P0, lpsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn RegUnLoadKeyW(hkey : HKEY, lpsubkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RegUnLoadKeyW(hkey.into_param().abi(), lpsubkey.into_param().abi()) + RegUnLoadKeyW(hkey.param().abi(), 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 aa6515bf33..c0dff809e1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs @@ -14,9 +14,9 @@ windows_core::imp::interface_hierarchy!(IRendezvousApplication, windows_core::IU impl IRendezvousApplication { pub unsafe fn SetRendezvousSession(&self, prendezvoussession: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRendezvousSession)(windows_core::Interface::as_raw(self), prendezvoussession.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRendezvousSession)(windows_core::Interface::as_raw(self), prendezvoussession.param().abi()).ok() } } #[repr(C)] @@ -41,15 +41,15 @@ impl IRendezvousSession { } pub unsafe fn SendContextData(&self, bstrdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SendContextData)(windows_core::Interface::as_raw(self), bstrdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SendContextData)(windows_core::Interface::as_raw(self), bstrdata.param().abi()).ok() } pub unsafe fn Terminate(&self, hr: windows_core::HRESULT, bstrappdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), hr, bstrappdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self), hr, bstrappdata.param().abi()).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 7b02fafac0..b970dbe2dc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -6,159 +6,159 @@ pub unsafe fn ProcessIdToSessionId(dwprocessid: u32, psessionid: *mut u32) -> wi #[inline] pub unsafe fn WTSCloseServer(hserver: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSCloseServer(hserver : super::super::Foundation:: HANDLE)); - WTSCloseServer(hserver.into_param().abi()) + WTSCloseServer(hserver.param().abi()) } #[inline] pub unsafe fn WTSConnectSessionA(logonid: u32, targetlogonid: u32, ppassword: P0, bwait: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(logonid, targetlogonid, ppassword.into_param().abi(), bwait.into_param().abi()).ok() + WTSConnectSessionA(logonid, targetlogonid, ppassword.param().abi(), bwait.param().abi()).ok() } #[inline] pub unsafe fn WTSConnectSessionW(logonid: u32, targetlogonid: u32, ppassword: P0, bwait: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(logonid, targetlogonid, ppassword.into_param().abi(), bwait.into_param().abi()).ok() + WTSConnectSessionW(logonid, targetlogonid, ppassword.param().abi(), bwait.param().abi()).ok() } #[inline] pub unsafe fn WTSCreateListenerA(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, pbuffer: *const WTSLISTENERCONFIGA, flag: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), pbuffer, flag).ok() + WTSCreateListenerA(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), pbuffer, flag).ok() } #[inline] pub unsafe fn WTSCreateListenerW(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, pbuffer: *const WTSLISTENERCONFIGW, flag: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), pbuffer, flag).ok() + WTSCreateListenerW(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), pbuffer, flag).ok() } #[inline] pub unsafe fn WTSDisconnectSession(hserver: P0, sessionid: u32, bwait: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hserver.into_param().abi(), sessionid, bwait.into_param().abi()).ok() + WTSDisconnectSession(hserver.param().abi(), sessionid, bwait.param().abi()).ok() } #[inline] pub unsafe fn WTSEnableChildSessions(benable: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSEnableChildSessions(benable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WTSEnableChildSessions(benable.into_param().abi()) + WTSEnableChildSessions(benable.param().abi()) } #[inline] pub unsafe fn WTSEnumerateListenersA(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plisteners: Option<*mut *mut i8>, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), preserved, reserved, core::mem::transmute(plisteners.unwrap_or(std::ptr::null_mut())), pcount).ok() + WTSEnumerateListenersA(hserver.param().abi(), preserved, reserved, core::mem::transmute(plisteners.unwrap_or(std::ptr::null_mut())), pcount).ok() } #[inline] pub unsafe fn WTSEnumerateListenersW(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plisteners: Option<*mut *mut u16>, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), preserved, reserved, core::mem::transmute(plisteners.unwrap_or(std::ptr::null_mut())), pcount).ok() + WTSEnumerateListenersW(hserver.param().abi(), preserved, reserved, core::mem::transmute(plisteners.unwrap_or(std::ptr::null_mut())), pcount).ok() } #[inline] pub unsafe fn WTSEnumerateProcessesA(hserver: P0, reserved: u32, version: u32, ppprocessinfo: *mut *mut WTS_PROCESS_INFOA, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), reserved, version, ppprocessinfo, pcount).ok() + WTSEnumerateProcessesA(hserver.param().abi(), reserved, version, ppprocessinfo, pcount).ok() } #[inline] pub unsafe fn WTSEnumerateProcessesExA(hserver: P0, plevel: *mut u32, sessionid: u32, ppprocessinfo: *mut windows_core::PSTR, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), plevel, sessionid, ppprocessinfo, pcount).ok() + WTSEnumerateProcessesExA(hserver.param().abi(), plevel, sessionid, ppprocessinfo, pcount).ok() } #[inline] pub unsafe fn WTSEnumerateProcessesExW(hserver: P0, plevel: *mut u32, sessionid: u32, ppprocessinfo: *mut windows_core::PWSTR, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), plevel, sessionid, ppprocessinfo, pcount).ok() + WTSEnumerateProcessesExW(hserver.param().abi(), plevel, sessionid, ppprocessinfo, pcount).ok() } #[inline] pub unsafe fn WTSEnumerateProcessesW(hserver: P0, reserved: u32, version: u32, ppprocessinfo: *mut *mut WTS_PROCESS_INFOW, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), reserved, version, ppprocessinfo, pcount).ok() + WTSEnumerateProcessesW(hserver.param().abi(), reserved, version, ppprocessinfo, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), reserved, version, ppserverinfo, pcount).ok() + WTSEnumerateServersA(pdomainname.param().abi(), reserved, version, ppserverinfo, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), reserved, version, ppserverinfo, pcount).ok() + WTSEnumerateServersW(pdomainname.param().abi(), reserved, version, ppserverinfo, pcount).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsA(hserver: P0, reserved: u32, version: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFOA, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), reserved, version, ppsessioninfo, pcount).ok() + WTSEnumerateSessionsA(hserver.param().abi(), reserved, version, ppsessioninfo, pcount).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsExA(hserver: P0, plevel: *mut u32, filter: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFO_1A, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), plevel, filter, ppsessioninfo, pcount).ok() + WTSEnumerateSessionsExA(hserver.param().abi(), plevel, filter, ppsessioninfo, pcount).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsExW(hserver: P0, plevel: *mut u32, filter: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFO_1W, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), plevel, filter, ppsessioninfo, pcount).ok() + WTSEnumerateSessionsExW(hserver.param().abi(), plevel, filter, ppsessioninfo, pcount).ok() } #[inline] pub unsafe fn WTSEnumerateSessionsW(hserver: P0, reserved: u32, version: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFOW, pcount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), reserved, version, ppsessioninfo, pcount).ok() + WTSEnumerateSessionsW(hserver.param().abi(), reserved, version, ppsessioninfo, pcount).ok() } #[inline] pub unsafe fn WTSFreeMemory(pmemory: *mut core::ffi::c_void) { @@ -189,21 +189,21 @@ pub unsafe fn WTSGetChildSessionId(psessionid: *mut u32) -> super::super::Founda #[inline] pub unsafe fn WTSGetListenerSecurityA(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), securityinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() + WTSGetListenerSecurityA(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WTSGetListenerSecurityW(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), securityinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() + WTSGetListenerSecurityW(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor, nlength, lpnlengthneeded).ok() } #[inline] pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { @@ -213,95 +213,95 @@ pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation #[inline] pub unsafe fn WTSLogoffSession(hserver: P0, sessionid: u32, bwait: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hserver.into_param().abi(), sessionid, bwait.into_param().abi()).ok() + WTSLogoffSession(hserver.param().abi(), sessionid, bwait.param().abi()).ok() } #[inline] pub unsafe fn WTSOpenServerA(pservername: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSOpenServerA(pservername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - WTSOpenServerA(pservername.into_param().abi()) + WTSOpenServerA(pservername.param().abi()) } #[inline] pub unsafe fn WTSOpenServerExA(pservername: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSOpenServerExA(pservername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - WTSOpenServerExA(pservername.into_param().abi()) + WTSOpenServerExA(pservername.param().abi()) } #[inline] pub unsafe fn WTSOpenServerExW(pservername: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSOpenServerExW(pservername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - WTSOpenServerExW(pservername.into_param().abi()) + WTSOpenServerExW(pservername.param().abi()) } #[inline] pub unsafe fn WTSOpenServerW(pservername: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSOpenServerW(pservername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - WTSOpenServerW(pservername.into_param().abi()) + WTSOpenServerW(pservername.param().abi()) } #[inline] pub unsafe fn WTSQueryListenerConfigA(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, pbuffer: *mut WTSLISTENERCONFIGA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), pbuffer).ok() + WTSQueryListenerConfigA(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), pbuffer).ok() } #[inline] pub unsafe fn WTSQueryListenerConfigW(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, pbuffer: *mut WTSLISTENERCONFIGW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), pbuffer).ok() + WTSQueryListenerConfigW(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), pbuffer).ok() } #[inline] pub unsafe fn WTSQuerySessionInformationA(hserver: P0, sessionid: u32, wtsinfoclass: WTS_INFO_CLASS, ppbuffer: *mut windows_core::PSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), sessionid, wtsinfoclass, ppbuffer, pbytesreturned).ok() + WTSQuerySessionInformationA(hserver.param().abi(), sessionid, wtsinfoclass, ppbuffer, pbytesreturned).ok() } #[inline] pub unsafe fn WTSQuerySessionInformationW(hserver: P0, sessionid: u32, wtsinfoclass: WTS_INFO_CLASS, ppbuffer: *mut windows_core::PWSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hserver.into_param().abi(), sessionid, wtsinfoclass, ppbuffer, pbytesreturned).ok() + WTSQuerySessionInformationW(hserver.param().abi(), sessionid, wtsinfoclass, ppbuffer, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pusername.into_param().abi(), wtsconfigclass, ppbuffer, pbytesreturned).ok() + WTSQueryUserConfigA(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, ppbuffer, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pusername.into_param().abi(), wtsconfigclass, ppbuffer, pbytesreturned).ok() + WTSQueryUserConfigW(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, ppbuffer, pbytesreturned).ok() } #[inline] pub unsafe fn WTSQueryUserToken(sessionid: u32, phtoken: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -311,114 +311,114 @@ pub unsafe fn WTSQueryUserToken(sessionid: u32, phtoken: *mut super::super::Foun #[inline] pub unsafe fn WTSRegisterSessionNotification(hwnd: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSRegisterSessionNotification(hwnd : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); - WTSRegisterSessionNotification(hwnd.into_param().abi(), dwflags).ok() + WTSRegisterSessionNotification(hwnd.param().abi(), dwflags).ok() } #[inline] pub unsafe fn WTSRegisterSessionNotificationEx(hserver: P0, hwnd: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hserver.into_param().abi(), hwnd.into_param().abi(), dwflags).ok() + WTSRegisterSessionNotificationEx(hserver.param().abi(), hwnd.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn WTSSendMessageA(hserver: P0, sessionid: u32, ptitle: &[u8], pmessage: &[u8], style: super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE, timeout: u32, presponse: *mut super::super::UI::WindowsAndMessaging::MESSAGEBOX_RESULT, bwait: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hserver.into_param().abi(), 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, presponse, bwait.into_param().abi()).ok() + WTSSendMessageA(hserver.param().abi(), 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, presponse, bwait.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn WTSSendMessageW(hserver: P0, sessionid: u32, ptitle: P1, titlelength: u32, pmessage: P2, messagelength: u32, style: super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE, timeout: u32, presponse: *mut super::super::UI::WindowsAndMessaging::MESSAGEBOX_RESULT, bwait: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hserver.into_param().abi(), sessionid, ptitle.into_param().abi(), titlelength, pmessage.into_param().abi(), messagelength, style, timeout, presponse, bwait.into_param().abi()).ok() + WTSSendMessageW(hserver.param().abi(), sessionid, ptitle.param().abi(), titlelength, pmessage.param().abi(), messagelength, style, timeout, presponse, bwait.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WTSSetListenerSecurityA(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()).ok() + WTSSetListenerSecurityA(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WTSSetListenerSecurityW(hserver: P0, preserved: *const core::ffi::c_void, reserved: u32, plistenername: P1, securityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hserver.into_param().abi(), preserved, reserved, plistenername.into_param().abi(), securityinformation, psecuritydescriptor.into_param().abi()).ok() + WTSSetListenerSecurityW(hserver.param().abi(), preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor.param().abi()).ok() } #[inline] pub unsafe fn WTSSetRenderHint(prenderhintid: *mut u64, hwndowner: P0, renderhinttype: u32, phintdata: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(prenderhintid, hwndowner.into_param().abi(), 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(prenderhintid, hwndowner.param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pusername.into_param().abi(), 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: P2, datalength: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pusername.into_param().abi(), wtsconfigclass, pbuffer.into_param().abi(), datalength).ok() + WTSSetUserConfigW(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, pbuffer.param().abi(), datalength).ok() } #[inline] pub unsafe fn WTSShutdownSystem(hserver: P0, shutdownflag: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSShutdownSystem(hserver : super::super::Foundation:: HANDLE, shutdownflag : u32) -> super::super::Foundation:: BOOL); - WTSShutdownSystem(hserver.into_param().abi(), shutdownflag).ok() + WTSShutdownSystem(hserver.param().abi(), shutdownflag).ok() } #[inline] pub unsafe fn WTSStartRemoteControlSessionA(ptargetservername: P0, targetlogonid: u32, hotkeyvk: u8, hotkeymodifiers: u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), targetlogonid, hotkeyvk, 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), targetlogonid, hotkeyvk, hotkeymodifiers).ok() + WTSStartRemoteControlSessionW(ptargetservername.param().abi(), targetlogonid, hotkeyvk, hotkeymodifiers).ok() } #[inline] pub unsafe fn WTSStopRemoteControlSession(logonid: u32) -> windows_core::Result<()> { @@ -428,102 +428,102 @@ pub unsafe fn WTSStopRemoteControlSession(logonid: u32) -> windows_core::Result< #[inline] pub unsafe fn WTSTerminateProcess(hserver: P0, processid: u32, exitcode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSTerminateProcess(hserver : super::super::Foundation:: HANDLE, processid : u32, exitcode : u32) -> super::super::Foundation:: BOOL); - WTSTerminateProcess(hserver.into_param().abi(), processid, exitcode).ok() + WTSTerminateProcess(hserver.param().abi(), processid, exitcode).ok() } #[inline] pub unsafe fn WTSUnRegisterSessionNotification(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotification(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - WTSUnRegisterSessionNotification(hwnd.into_param().abi()).ok() + WTSUnRegisterSessionNotification(hwnd.param().abi()).ok() } #[inline] pub unsafe fn WTSUnRegisterSessionNotificationEx(hserver: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotificationEx(hserver : super::super::Foundation:: HANDLE, hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - WTSUnRegisterSessionNotificationEx(hserver.into_param().abi(), hwnd.into_param().abi()).ok() + WTSUnRegisterSessionNotificationEx(hserver.param().abi(), hwnd.param().abi()).ok() } #[inline] pub unsafe fn WTSVirtualChannelClose(hchannelhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelClose(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WTSVirtualChannelClose(hchannelhandle.into_param().abi()).ok() + WTSVirtualChannelClose(hchannelhandle.param().abi()).ok() } #[inline] pub unsafe fn WTSVirtualChannelOpen(hserver: P0, sessionid: u32, pvirtualname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hserver.into_param().abi(), sessionid, pvirtualname.into_param().abi()); + let result__ = WTSVirtualChannelOpen(hserver.param().abi(), sessionid, pvirtualname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WTSVirtualChannelOpenEx(sessionid: u32, pvirtualname: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(sessionid, pvirtualname.into_param().abi(), flags); + let result__ = WTSVirtualChannelOpenEx(sessionid, pvirtualname.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn WTSVirtualChannelPurgeInput(hchannelhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeInput(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WTSVirtualChannelPurgeInput(hchannelhandle.into_param().abi()).ok() + WTSVirtualChannelPurgeInput(hchannelhandle.param().abi()).ok() } #[inline] pub unsafe fn WTSVirtualChannelPurgeOutput(hchannelhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeOutput(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - WTSVirtualChannelPurgeOutput(hchannelhandle.into_param().abi()).ok() + WTSVirtualChannelPurgeOutput(hchannelhandle.param().abi()).ok() } #[inline] pub unsafe fn WTSVirtualChannelQuery(hchannelhandle: P0, param1: WTS_VIRTUAL_CLASS, ppbuffer: *mut *mut core::ffi::c_void, pbytesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hchannelhandle.into_param().abi(), param1, ppbuffer, pbytesreturned).ok() + WTSVirtualChannelQuery(hchannelhandle.param().abi(), param1, ppbuffer, pbytesreturned).ok() } #[inline] pub unsafe fn WTSVirtualChannelRead(hchannelhandle: P0, timeout: u32, buffer: &mut [u8], pbytesread: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hchannelhandle.into_param().abi(), timeout, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), pbytesread).ok() + WTSVirtualChannelRead(hchannelhandle.param().abi(), timeout, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), pbytesread).ok() } #[inline] pub unsafe fn WTSVirtualChannelWrite(hchannelhandle: P0, buffer: &[u8], pbyteswritten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hchannelhandle.into_param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), pbyteswritten).ok() + WTSVirtualChannelWrite(hchannelhandle.param().abi(), core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), pbyteswritten).ok() } #[inline] pub unsafe fn WTSWaitSystemEvent(hserver: P0, eventmask: u32, peventflags: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wtsapi32.dll" "system" fn WTSWaitSystemEvent(hserver : super::super::Foundation:: HANDLE, eventmask : u32, peventflags : *mut u32) -> super::super::Foundation:: BOOL); - WTSWaitSystemEvent(hserver.into_param().abi(), eventmask, peventflags).ok() + WTSWaitSystemEvent(hserver.param().abi(), eventmask, peventflags).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IADsTSUserEx, IADsTSUserEx_Vtbl, 0xc4930e79_2989_4462_8a60_2fcf2f2955ef); @@ -537,9 +537,9 @@ impl IADsTSUserEx { } pub unsafe fn SetTerminalServicesProfilePath(&self, pnewval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTerminalServicesProfilePath)(windows_core::Interface::as_raw(self), pnewval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTerminalServicesProfilePath)(windows_core::Interface::as_raw(self), pnewval.param().abi()).ok() } pub unsafe fn TerminalServicesHomeDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -547,9 +547,9 @@ impl IADsTSUserEx { } pub unsafe fn SetTerminalServicesHomeDirectory(&self, pnewval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTerminalServicesHomeDirectory)(windows_core::Interface::as_raw(self), pnewval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTerminalServicesHomeDirectory)(windows_core::Interface::as_raw(self), pnewval.param().abi()).ok() } pub unsafe fn TerminalServicesHomeDrive(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -557,9 +557,9 @@ impl IADsTSUserEx { } pub unsafe fn SetTerminalServicesHomeDrive(&self, pnewval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTerminalServicesHomeDrive)(windows_core::Interface::as_raw(self), pnewval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTerminalServicesHomeDrive)(windows_core::Interface::as_raw(self), pnewval.param().abi()).ok() } pub unsafe fn AllowLogon(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -637,9 +637,9 @@ impl IADsTSUserEx { } pub unsafe fn SetTerminalServicesWorkDirectory(&self, pnewval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTerminalServicesWorkDirectory)(windows_core::Interface::as_raw(self), pnewval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTerminalServicesWorkDirectory)(windows_core::Interface::as_raw(self), pnewval.param().abi()).ok() } pub unsafe fn TerminalServicesInitialProgram(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -647,9 +647,9 @@ impl IADsTSUserEx { } pub unsafe fn SetTerminalServicesInitialProgram(&self, pnewval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTerminalServicesInitialProgram)(windows_core::Interface::as_raw(self), pnewval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTerminalServicesInitialProgram)(windows_core::Interface::as_raw(self), pnewval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -734,9 +734,9 @@ impl IAudioEndpoint { } pub unsafe fn SetEventHandle(&self, eventhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventHandle)(windows_core::Interface::as_raw(self), eventhandle.param().abi()).ok() } } #[repr(C)] @@ -875,9 +875,9 @@ impl IRemoteDesktopClient { } pub unsafe fn DeleteSavedCredentials(&self, servername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteSavedCredentials)(windows_core::Interface::as_raw(self), servername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteSavedCredentials)(windows_core::Interface::as_raw(self), servername.param().abi()).ok() } pub unsafe fn UpdateSessionDisplaySettings(&self, width: u32, height: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateSessionDisplaySettings)(windows_core::Interface::as_raw(self), width, height).ok() @@ -885,18 +885,18 @@ impl IRemoteDesktopClient { #[cfg(feature = "Win32_System_Com")] pub unsafe fn attachEvent(&self, eventname: P0, callback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).attachEvent)(windows_core::Interface::as_raw(self), eventname.into_param().abi(), callback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).attachEvent)(windows_core::Interface::as_raw(self), eventname.param().abi(), callback.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn detachEvent(&self, eventname: P0, callback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).detachEvent)(windows_core::Interface::as_raw(self), eventname.into_param().abi(), callback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).detachEvent)(windows_core::Interface::as_raw(self), eventname.param().abi(), callback.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -966,9 +966,9 @@ windows_core::imp::interface_hierarchy!(IRemoteDesktopClientSettings, windows_co impl IRemoteDesktopClientSettings { pub unsafe fn ApplySettings(&self, rdpfilecontents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplySettings)(windows_core::Interface::as_raw(self), rdpfilecontents.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplySettings)(windows_core::Interface::as_raw(self), rdpfilecontents.param().abi()).ok() } pub unsafe fn RetrieveSettings(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -976,17 +976,17 @@ impl IRemoteDesktopClientSettings { } pub unsafe fn GetRdpProperty(&self, propertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRdpProperty)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRdpProperty)(windows_core::Interface::as_raw(self), propertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetRdpProperty(&self, propertyname: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRdpProperty)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRdpProperty)(windows_core::Interface::as_raw(self), propertyname.param().abi(), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1006,9 +1006,9 @@ windows_core::imp::interface_hierarchy!(IRemoteDesktopClientTouchPointer, window impl IRemoteDesktopClientTouchPointer { pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1016,9 +1016,9 @@ impl IRemoteDesktopClientTouchPointer { } pub unsafe fn SetEventsEnabled(&self, eventsenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventsEnabled)(windows_core::Interface::as_raw(self), eventsenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventsEnabled)(windows_core::Interface::as_raw(self), eventsenabled.param().abi()).ok() } pub unsafe fn EventsEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1076,11 +1076,11 @@ windows_core::imp::interface_hierarchy!(ITSGAuthenticateUserSink, windows_core:: impl ITSGAuthenticateUserSink { pub unsafe fn OnUserAuthenticated(&self, username: P0, userdomain: P1, context: usize, usertoken: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUserAuthenticated)(windows_core::Interface::as_raw(self), username.into_param().abi(), userdomain.into_param().abi(), context, usertoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnUserAuthenticated)(windows_core::Interface::as_raw(self), username.param().abi(), userdomain.param().abi(), context, usertoken.param().abi()).ok() } pub unsafe fn OnUserAuthenticationFailed(&self, context: usize, genericerrorcode: windows_core::HRESULT, specificerrorcode: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnUserAuthenticationFailed)(windows_core::Interface::as_raw(self), context, genericerrorcode, specificerrorcode).ok() @@ -1105,9 +1105,9 @@ windows_core::imp::interface_hierarchy!(ITSGAuthenticationEngine, windows_core:: impl ITSGAuthenticationEngine { pub unsafe fn AuthenticateUser(&self, mainsessionid: windows_core::GUID, cookiedata: *const u8, numcookiebytes: u32, context: usize, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AuthenticateUser)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), cookiedata, numcookiebytes, context, psink.into_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), context).ok() @@ -1148,21 +1148,21 @@ windows_core::imp::interface_hierarchy!(ITSGPolicyEngine, windows_core::IUnknown impl ITSGPolicyEngine { pub unsafe fn AuthorizeConnection(&self, mainsessionid: windows_core::GUID, username: P0, authtype: AAAuthSchemes, clientmachineip: P1, clientmachinename: P2, sohdata: &[u8], cookiedata: &[u8], usertoken: P3, psink: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AuthorizeConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), username.into_param().abi(), authtype, clientmachineip.into_param().abi(), clientmachinename.into_param().abi(), core::mem::transmute(sohdata.as_ptr()), sohdata.len().try_into().unwrap(), core::mem::transmute(cookiedata.as_ptr()), cookiedata.len().try_into().unwrap(), usertoken.into_param().abi(), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AuthorizeConnection)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), username.param().abi(), authtype, clientmachineip.param().abi(), clientmachinename.param().abi(), core::mem::transmute(sohdata.as_ptr()), sohdata.len().try_into().unwrap(), core::mem::transmute(cookiedata.as_ptr()), cookiedata.len().try_into().unwrap(), usertoken.param().abi(), psink.param().abi()).ok() } pub unsafe fn AuthorizeResource(&self, mainsessionid: windows_core::GUID, subsessionid: i32, username: P0, resourcenames: &[windows_core::BSTR], alternateresourcenames: &[windows_core::BSTR], portnumber: u32, operation: P1, cookie: &[u8], psink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AuthorizeResource)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), subsessionid, username.into_param().abi(), core::mem::transmute(resourcenames.as_ptr()), resourcenames.len().try_into().unwrap(), core::mem::transmute(alternateresourcenames.as_ptr()), alternateresourcenames.len().try_into().unwrap(), portnumber, operation.into_param().abi(), core::mem::transmute(cookie.as_ptr()), cookie.len().try_into().unwrap(), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AuthorizeResource)(windows_core::Interface::as_raw(self), core::mem::transmute(mainsessionid), subsessionid, username.param().abi(), core::mem::transmute(resourcenames.as_ptr()), resourcenames.len().try_into().unwrap(), core::mem::transmute(alternateresourcenames.as_ptr()), alternateresourcenames.len().try_into().unwrap(), portnumber, operation.param().abi(), 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() @@ -1221,17 +1221,17 @@ impl ITsSbClientConnection { } pub unsafe fn PutContext(&self, contextid: P0, context: P1, existingcontext: Option<*mut windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutContext)(windows_core::Interface::as_raw(self), contextid.into_param().abi(), context.into_param().abi(), core::mem::transmute(existingcontext.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).PutContext)(windows_core::Interface::as_raw(self), contextid.param().abi(), context.param().abi(), core::mem::transmute(existingcontext.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetContext(&self, contextid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), contextid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), contextid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Environment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1297,17 +1297,17 @@ impl ITsSbClientConnectionPropertySet { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1334,9 +1334,9 @@ impl ITsSbEnvironment { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SetEnvironmentPropertySet(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnvironmentPropertySet)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnvironmentPropertySet)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } } #[repr(C)] @@ -1362,17 +1362,17 @@ impl ITsSbEnvironmentPropertySet { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1386,9 +1386,9 @@ impl ITsSbFilterPluginStore { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SaveProperties(&self, ppropertyset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveProperties)(windows_core::Interface::as_raw(self), ppropertyset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveProperties)(windows_core::Interface::as_raw(self), ppropertyset.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn EnumerateProperties(&self) -> windows_core::Result { @@ -1397,9 +1397,9 @@ impl ITsSbFilterPluginStore { } pub unsafe fn DeleteProperties(&self, propertyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteProperties)(windows_core::Interface::as_raw(self), propertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteProperties)(windows_core::Interface::as_raw(self), propertyname.param().abi()).ok() } } #[repr(C)] @@ -1437,59 +1437,59 @@ windows_core::imp::interface_hierarchy!(ITsSbGlobalStore, windows_core::IUnknown impl ITsSbGlobalStore { pub unsafe fn QueryTarget(&self, providername: P0, targetname: P1, farmname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryTarget)(windows_core::Interface::as_raw(self), providername.into_param().abi(), targetname.into_param().abi(), farmname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryTarget)(windows_core::Interface::as_raw(self), providername.param().abi(), targetname.param().abi(), farmname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QuerySessionBySessionId(&self, providername: P0, dwsessionid: u32, targetname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), providername.into_param().abi(), dwsessionid, targetname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), providername.param().abi(), dwsessionid, targetname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateFarms(&self, providername: P0, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateFarms)(windows_core::Interface::as_raw(self), providername.into_param().abi(), pdwcount, pval).ok() + (windows_core::Interface::vtable(self).EnumerateFarms)(windows_core::Interface::as_raw(self), providername.param().abi(), pdwcount, pval).ok() } pub unsafe fn EnumerateTargets(&self, providername: P0, farmname: P1, envname: P2, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateTargets)(windows_core::Interface::as_raw(self), providername.into_param().abi(), farmname.into_param().abi(), envname.into_param().abi(), pdwcount, pval).ok() + (windows_core::Interface::vtable(self).EnumerateTargets)(windows_core::Interface::as_raw(self), providername.param().abi(), farmname.param().abi(), envname.param().abi(), pdwcount, pval).ok() } pub unsafe fn EnumerateEnvironmentsByProvider(&self, providername: P0, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateEnvironmentsByProvider)(windows_core::Interface::as_raw(self), providername.into_param().abi(), pdwcount, ppval).ok() + (windows_core::Interface::vtable(self).EnumerateEnvironmentsByProvider)(windows_core::Interface::as_raw(self), providername.param().abi(), pdwcount, ppval).ok() } pub unsafe fn EnumerateSessions(&self, providername: P0, targetname: P1, username: P2, userdomain: P3, poolname: P4, initialprogram: P5, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), providername.into_param().abi(), targetname.into_param().abi(), username.into_param().abi(), userdomain.into_param().abi(), poolname.into_param().abi(), initialprogram.into_param().abi(), psessionstate, pdwcount, ppval).ok() + (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), providername.param().abi(), targetname.param().abi(), username.param().abi(), userdomain.param().abi(), poolname.param().abi(), initialprogram.param().abi(), psessionstate, pdwcount, ppval).ok() } pub unsafe fn GetFarmProperty(&self, farmname: P0, propertyname: P1, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFarmProperty)(windows_core::Interface::as_raw(self), farmname.into_param().abi(), propertyname.into_param().abi(), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).GetFarmProperty)(windows_core::Interface::as_raw(self), farmname.param().abi(), propertyname.param().abi(), core::mem::transmute(pvarvalue)).ok() } } #[repr(C)] @@ -1525,21 +1525,21 @@ impl ITsSbLoadBalancing { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pprovider: P0, pnotifysink: P1, ppropertyset: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), pnotifysink.into_param().abi(), ppropertyset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Terminate)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn GetMostSuitableTarget(&self, pconnection: P0, plbsink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMostSuitableTarget)(windows_core::Interface::as_raw(self), pconnection.into_param().abi(), plbsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetMostSuitableTarget)(windows_core::Interface::as_raw(self), pconnection.param().abi(), plbsink.param().abi()).ok() } } #[repr(C)] @@ -1558,10 +1558,10 @@ impl ITsSbLoadBalancingNotifySink { } pub unsafe fn OnGetMostSuitableTarget(&self, plbresult: P0, fisnewconnection: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnGetMostSuitableTarget)(windows_core::Interface::as_raw(self), plbresult.into_param().abi(), fisnewconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnGetMostSuitableTarget)(windows_core::Interface::as_raw(self), plbresult.param().abi(), fisnewconnection.param().abi()).ok() } } #[repr(C)] @@ -1575,21 +1575,21 @@ impl ITsSbOrchestration { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pprovider: P0, pnotifysink: P1, ppropertyset: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), pnotifysink.into_param().abi(), ppropertyset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Terminate)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn PrepareTargetForConnect(&self, pconnection: P0, porchestrationnotifysink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareTargetForConnect)(windows_core::Interface::as_raw(self), pconnection.into_param().abi(), porchestrationnotifysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrepareTargetForConnect)(windows_core::Interface::as_raw(self), pconnection.param().abi(), porchestrationnotifysink.param().abi()).ok() } } #[repr(C)] @@ -1608,9 +1608,9 @@ impl ITsSbOrchestrationNotifySink { } pub unsafe fn OnReadyToConnect(&self, ptarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReadyToConnect)(windows_core::Interface::as_raw(self), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnReadyToConnect)(windows_core::Interface::as_raw(self), ptarget.param().abi()).ok() } } #[repr(C)] @@ -1624,21 +1624,21 @@ impl ITsSbPlacement { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pprovider: P0, pnotifysink: P1, ppropertyset: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), pnotifysink.into_param().abi(), ppropertyset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Terminate)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn QueryEnvironmentForTarget(&self, pconnection: P0, pplacementsink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryEnvironmentForTarget)(windows_core::Interface::as_raw(self), pconnection.into_param().abi(), pplacementsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueryEnvironmentForTarget)(windows_core::Interface::as_raw(self), pconnection.param().abi(), pplacementsink.param().abi()).ok() } } #[repr(C)] @@ -1657,9 +1657,9 @@ impl ITsSbPlacementNotifySink { } pub unsafe fn OnQueryEnvironmentCompleted(&self, penvironment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnQueryEnvironmentCompleted)(windows_core::Interface::as_raw(self), penvironment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnQueryEnvironmentCompleted)(windows_core::Interface::as_raw(self), penvironment.param().abi()).ok() } } #[repr(C)] @@ -1673,11 +1673,11 @@ impl ITsSbPlugin { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pprovider: P0, pnotifysink: P1, ppropertyset: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), pnotifysink.into_param().abi(), ppropertyset.into_param().abi()).ok() + (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), hr).ok() @@ -1723,17 +1723,17 @@ impl ITsSbPluginPropertySet { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1750,17 +1750,17 @@ impl ITsSbPropertySet { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).base__.Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1773,27 +1773,27 @@ windows_core::imp::interface_hierarchy!(ITsSbProvider, windows_core::IUnknown); impl ITsSbProvider { pub unsafe fn CreateTargetObject(&self, targetname: P0, environmentname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTargetObject)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), environmentname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTargetObject)(windows_core::Interface::as_raw(self), targetname.param().abi(), environmentname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateLoadBalanceResultObject(&self, targetname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateLoadBalanceResultObject)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateLoadBalanceResultObject)(windows_core::Interface::as_raw(self), targetname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSessionObject(&self, targetname: P0, username: P1, domain: P2, sessionid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSessionObject)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), username.into_param().abi(), domain.into_param().abi(), sessionid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSessionObject)(windows_core::Interface::as_raw(self), targetname.param().abi(), username.param().abi(), domain.param().abi(), 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 { @@ -1807,10 +1807,10 @@ impl ITsSbProvider { } pub unsafe fn CreateEnvironmentObject(&self, name: P0, serverweight: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEnvironmentObject)(windows_core::Interface::as_raw(self), name.into_param().abi(), serverweight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEnvironmentObject)(windows_core::Interface::as_raw(self), name.param().abi(), serverweight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetResourcePluginStore(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1822,16 +1822,16 @@ impl ITsSbProvider { } pub unsafe fn RegisterForNotification(&self, notificationtype: u32, resourcetomonitor: P0, ppluginnotification: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterForNotification)(windows_core::Interface::as_raw(self), notificationtype, resourcetomonitor.into_param().abi(), ppluginnotification.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterForNotification)(windows_core::Interface::as_raw(self), notificationtype, resourcetomonitor.param().abi(), ppluginnotification.param().abi()).ok() } pub unsafe fn UnRegisterForNotification(&self, notificationtype: u32, resourcetomonitor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnRegisterForNotification)(windows_core::Interface::as_raw(self), notificationtype, resourcetomonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnRegisterForNotification)(windows_core::Interface::as_raw(self), notificationtype, resourcetomonitor.param().abi()).ok() } pub unsafe fn GetInstanceOfGlobalStore(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1874,44 +1874,44 @@ impl ITsSbProvisioning { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pprovider: P0, pnotifysink: P1, ppropertyset: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), pnotifysink.into_param().abi(), ppropertyset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Terminate)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn CreateVirtualMachines(&self, jobxmlstring: P0, jobguid: P1, psink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateVirtualMachines)(windows_core::Interface::as_raw(self), jobxmlstring.into_param().abi(), jobguid.into_param().abi(), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateVirtualMachines)(windows_core::Interface::as_raw(self), jobxmlstring.param().abi(), jobguid.param().abi(), psink.param().abi()).ok() } pub unsafe fn PatchVirtualMachines(&self, jobxmlstring: P0, jobguid: P1, psink: P2, pvmpatchinfo: *const VM_PATCH_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PatchVirtualMachines)(windows_core::Interface::as_raw(self), jobxmlstring.into_param().abi(), jobguid.into_param().abi(), psink.into_param().abi(), pvmpatchinfo).ok() + (windows_core::Interface::vtable(self).PatchVirtualMachines)(windows_core::Interface::as_raw(self), jobxmlstring.param().abi(), jobguid.param().abi(), psink.param().abi(), pvmpatchinfo).ok() } pub unsafe fn DeleteVirtualMachines(&self, jobxmlstring: P0, jobguid: P1, psink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteVirtualMachines)(windows_core::Interface::as_raw(self), jobxmlstring.into_param().abi(), jobguid.into_param().abi(), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteVirtualMachines)(windows_core::Interface::as_raw(self), jobxmlstring.param().abi(), jobguid.param().abi(), psink.param().abi()).ok() } pub unsafe fn CancelJob(&self, jobguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelJob)(windows_core::Interface::as_raw(self), jobguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CancelJob)(windows_core::Interface::as_raw(self), jobguid.param().abi()).ok() } } #[repr(C)] @@ -1930,15 +1930,15 @@ impl ITsSbProvisioningPluginNotifySink { } pub unsafe fn OnVirtualMachineStatusChanged(&self, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnVirtualMachineStatusChanged)(windows_core::Interface::as_raw(self), pvmnotifyentry, vmnotifystatus, errorcode, errordescr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnVirtualMachineStatusChanged)(windows_core::Interface::as_raw(self), pvmnotifyentry, vmnotifystatus, errorcode, errordescr.param().abi()).ok() } pub unsafe fn OnJobCompleted(&self, resultcode: windows_core::HRESULT, resultdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnJobCompleted)(windows_core::Interface::as_raw(self), resultcode, resultdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnJobCompleted)(windows_core::Interface::as_raw(self), resultcode, resultdescription.param().abi()).ok() } pub unsafe fn OnJobCancelled(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnJobCancelled)(windows_core::Interface::as_raw(self)).ok() @@ -1948,10 +1948,10 @@ impl ITsSbProvisioningPluginNotifySink { } pub unsafe fn OnVirtualMachineHostStatusChanged(&self, vmhost: P0, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnVirtualMachineHostStatusChanged)(windows_core::Interface::as_raw(self), vmhost.into_param().abi(), vmhostnotifystatus, errorcode, errordescr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnVirtualMachineHostStatusChanged)(windows_core::Interface::as_raw(self), vmhost.param().abi(), vmhostnotifystatus, errorcode, errordescr.param().abi()).ok() } } #[repr(C)] @@ -1969,21 +1969,21 @@ windows_core::imp::interface_hierarchy!(ITsSbResourceNotification, windows_core: impl ITsSbResourceNotification { pub unsafe fn NotifySessionChange(&self, changetype: TSSESSION_STATE, psession: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifySessionChange)(windows_core::Interface::as_raw(self), changetype, psession.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyTargetChange)(windows_core::Interface::as_raw(self), targetchangetype, ptarget.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyClientConnectionStateChange)(windows_core::Interface::as_raw(self), changetype, pconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyClientConnectionStateChange)(windows_core::Interface::as_raw(self), changetype, pconnection.param().abi()).ok() } } #[repr(C)] @@ -1998,27 +1998,27 @@ windows_core::imp::interface_hierarchy!(ITsSbResourceNotificationEx, windows_cor impl ITsSbResourceNotificationEx { pub unsafe fn NotifySessionChangeEx(&self, targetname: P0, username: P1, domain: P2, sessionid: u32, sessionstate: TSSESSION_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifySessionChangeEx)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), username.into_param().abi(), domain.into_param().abi(), sessionid, sessionstate).ok() + (windows_core::Interface::vtable(self).NotifySessionChangeEx)(windows_core::Interface::as_raw(self), targetname.param().abi(), username.param().abi(), domain.param().abi(), sessionid, sessionstate).ok() } pub unsafe fn NotifyTargetChangeEx(&self, targetname: P0, targetchangetype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyTargetChangeEx)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), targetchangetype).ok() + (windows_core::Interface::vtable(self).NotifyTargetChangeEx)(windows_core::Interface::as_raw(self), targetname.param().abi(), targetchangetype).ok() } pub unsafe fn NotifyClientConnectionStateChangeEx(&self, username: P0, domain: P1, initialprogram: P2, poolname: P3, targetname: P4, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyClientConnectionStateChangeEx)(windows_core::Interface::as_raw(self), username.into_param().abi(), domain.into_param().abi(), initialprogram.into_param().abi(), poolname.into_param().abi(), targetname.into_param().abi(), connectionchangetype).ok() + (windows_core::Interface::vtable(self).NotifyClientConnectionStateChangeEx)(windows_core::Interface::as_raw(self), username.param().abi(), domain.param().abi(), initialprogram.param().abi(), poolname.param().abi(), targetname.param().abi(), connectionchangetype).ok() } } #[repr(C)] @@ -2034,11 +2034,11 @@ impl ITsSbResourcePlugin { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pprovider: P0, pnotifysink: P1, ppropertyset: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), pnotifysink.into_param().abi(), ppropertyset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Terminate)(windows_core::Interface::as_raw(self), hr).ok() @@ -2053,43 +2053,43 @@ windows_core::imp::interface_hierarchy!(ITsSbResourcePluginStore, windows_core:: impl ITsSbResourcePluginStore { pub unsafe fn QueryTarget(&self, targetname: P0, farmname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryTarget)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), farmname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryTarget)(windows_core::Interface::as_raw(self), targetname.param().abi(), farmname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn QuerySessionBySessionId(&self, dwsessionid: u32, targetname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), dwsessionid, targetname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QuerySessionBySessionId)(windows_core::Interface::as_raw(self), dwsessionid, targetname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddTargetToStore(&self, ptarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTargetToStore)(windows_core::Interface::as_raw(self), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTargetToStore)(windows_core::Interface::as_raw(self), ptarget.param().abi()).ok() } pub unsafe fn AddSessionToStore(&self, psession: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSessionToStore)(windows_core::Interface::as_raw(self), psession.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSessionToStore)(windows_core::Interface::as_raw(self), psession.param().abi()).ok() } pub unsafe fn AddEnvironmentToStore(&self, penvironment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEnvironmentToStore)(windows_core::Interface::as_raw(self), penvironment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddEnvironmentToStore)(windows_core::Interface::as_raw(self), penvironment.param().abi()).ok() } pub unsafe fn RemoveEnvironmentFromStore(&self, environmentname: P0, bignoreowner: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveEnvironmentFromStore)(windows_core::Interface::as_raw(self), environmentname.into_param().abi(), bignoreowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveEnvironmentFromStore)(windows_core::Interface::as_raw(self), environmentname.param().abi(), bignoreowner.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateFarms(&self, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> { @@ -2097,148 +2097,148 @@ impl ITsSbResourcePluginStore { } pub unsafe fn QueryEnvironment(&self, environmentname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryEnvironment)(windows_core::Interface::as_raw(self), environmentname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryEnvironment)(windows_core::Interface::as_raw(self), environmentname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumerateEnvironments(&self, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EnumerateEnvironments)(windows_core::Interface::as_raw(self), pdwcount, pval).ok() } pub unsafe fn SaveTarget(&self, ptarget: P0, bforcewrite: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveTarget)(windows_core::Interface::as_raw(self), ptarget.into_param().abi(), bforcewrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveTarget)(windows_core::Interface::as_raw(self), ptarget.param().abi(), bforcewrite.param().abi()).ok() } pub unsafe fn SaveEnvironment(&self, penvironment: P0, bforcewrite: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveEnvironment)(windows_core::Interface::as_raw(self), penvironment.into_param().abi(), bforcewrite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveEnvironment)(windows_core::Interface::as_raw(self), penvironment.param().abi(), bforcewrite.param().abi()).ok() } pub unsafe fn SaveSession(&self, psession: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveSession)(windows_core::Interface::as_raw(self), psession.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveSession)(windows_core::Interface::as_raw(self), psession.param().abi()).ok() } pub unsafe fn SetTargetProperty(&self, targetname: P0, propertyname: P1, pproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetProperty)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), propertyname.into_param().abi(), core::mem::transmute(pproperty)).ok() + (windows_core::Interface::vtable(self).SetTargetProperty)(windows_core::Interface::as_raw(self), targetname.param().abi(), propertyname.param().abi(), core::mem::transmute(pproperty)).ok() } pub unsafe fn SetEnvironmentProperty(&self, environmentname: P0, propertyname: P1, pproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnvironmentProperty)(windows_core::Interface::as_raw(self), environmentname.into_param().abi(), propertyname.into_param().abi(), core::mem::transmute(pproperty)).ok() + (windows_core::Interface::vtable(self).SetEnvironmentProperty)(windows_core::Interface::as_raw(self), environmentname.param().abi(), propertyname.param().abi(), core::mem::transmute(pproperty)).ok() } pub unsafe fn SetTargetState(&self, targetname: P0, newstate: TARGET_STATE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetTargetState)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), newstate, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetTargetState)(windows_core::Interface::as_raw(self), targetname.param().abi(), newstate, &mut result__).map(|| result__) } pub unsafe fn SetSessionState(&self, sbsession: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSessionState)(windows_core::Interface::as_raw(self), sbsession.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSessionState)(windows_core::Interface::as_raw(self), sbsession.param().abi()).ok() } pub unsafe fn EnumerateTargets(&self, farmname: P0, envname: P1, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: P2, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateTargets)(windows_core::Interface::as_raw(self), farmname.into_param().abi(), envname.into_param().abi(), sortbyfieldid, sortybypropname.into_param().abi(), pdwcount, pval).ok() + (windows_core::Interface::vtable(self).EnumerateTargets)(windows_core::Interface::as_raw(self), farmname.param().abi(), envname.param().abi(), sortbyfieldid, sortybypropname.param().abi(), pdwcount, pval).ok() } pub unsafe fn EnumerateSessions(&self, targetname: P0, username: P1, userdomain: P2, poolname: P3, initialprogram: P4, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), username.into_param().abi(), userdomain.into_param().abi(), poolname.into_param().abi(), initialprogram.into_param().abi(), psessionstate, pdwcount, ppval).ok() + (windows_core::Interface::vtable(self).EnumerateSessions)(windows_core::Interface::as_raw(self), targetname.param().abi(), username.param().abi(), userdomain.param().abi(), poolname.param().abi(), initialprogram.param().abi(), psessionstate, pdwcount, ppval).ok() } pub unsafe fn GetFarmProperty(&self, farmname: P0, propertyname: P1, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFarmProperty)(windows_core::Interface::as_raw(self), farmname.into_param().abi(), propertyname.into_param().abi(), core::mem::transmute(pvarvalue)).ok() + (windows_core::Interface::vtable(self).GetFarmProperty)(windows_core::Interface::as_raw(self), farmname.param().abi(), propertyname.param().abi(), core::mem::transmute(pvarvalue)).ok() } pub unsafe fn DeleteTarget(&self, targetname: P0, hostname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTarget)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), hostname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteTarget)(windows_core::Interface::as_raw(self), targetname.param().abi(), hostname.param().abi()).ok() } pub unsafe fn SetTargetPropertyWithVersionCheck(&self, ptarget: P0, propertyname: P1, pproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetPropertyWithVersionCheck)(windows_core::Interface::as_raw(self), ptarget.into_param().abi(), propertyname.into_param().abi(), core::mem::transmute(pproperty)).ok() + (windows_core::Interface::vtable(self).SetTargetPropertyWithVersionCheck)(windows_core::Interface::as_raw(self), ptarget.param().abi(), propertyname.param().abi(), core::mem::transmute(pproperty)).ok() } pub unsafe fn SetEnvironmentPropertyWithVersionCheck(&self, penvironment: P0, propertyname: P1, pproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnvironmentPropertyWithVersionCheck)(windows_core::Interface::as_raw(self), penvironment.into_param().abi(), propertyname.into_param().abi(), core::mem::transmute(pproperty)).ok() + (windows_core::Interface::vtable(self).SetEnvironmentPropertyWithVersionCheck)(windows_core::Interface::as_raw(self), penvironment.param().abi(), propertyname.param().abi(), core::mem::transmute(pproperty)).ok() } pub unsafe fn AcquireTargetLock(&self, targetname: P0, dwtimeout: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AcquireTargetLock)(windows_core::Interface::as_raw(self), targetname.into_param().abi(), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AcquireTargetLock)(windows_core::Interface::as_raw(self), targetname.param().abi(), dwtimeout, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ReleaseTargetLock(&self, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseTargetLock)(windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseTargetLock)(windows_core::Interface::as_raw(self), pcontext.param().abi()).ok() } pub unsafe fn TestAndSetServerState(&self, poolname: P0, serverfqdn: P1, newstate: TARGET_STATE, teststate: TARGET_STATE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TestAndSetServerState)(windows_core::Interface::as_raw(self), poolname.into_param().abi(), serverfqdn.into_param().abi(), newstate, teststate, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TestAndSetServerState)(windows_core::Interface::as_raw(self), poolname.param().abi(), serverfqdn.param().abi(), newstate, teststate, &mut result__).map(|| result__) } pub unsafe fn SetServerWaitingToStart(&self, poolname: P0, servername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerWaitingToStart)(windows_core::Interface::as_raw(self), poolname.into_param().abi(), servername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerWaitingToStart)(windows_core::Interface::as_raw(self), poolname.param().abi(), servername.param().abi()).ok() } pub unsafe fn GetServerState(&self, poolname: P0, serverfqdn: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServerState)(windows_core::Interface::as_raw(self), poolname.into_param().abi(), serverfqdn.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetServerState)(windows_core::Interface::as_raw(self), poolname.param().abi(), serverfqdn.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetServerDrainMode(&self, serverfqdn: P0, drainmode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerDrainMode)(windows_core::Interface::as_raw(self), serverfqdn.into_param().abi(), drainmode).ok() + (windows_core::Interface::vtable(self).SetServerDrainMode)(windows_core::Interface::as_raw(self), serverfqdn.param().abi(), drainmode).ok() } } #[repr(C)] @@ -2305,9 +2305,9 @@ impl ITsSbSession { } pub unsafe fn SetTargetName(&self, targetname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetName)(windows_core::Interface::as_raw(self), targetname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetName)(windows_core::Interface::as_raw(self), targetname.param().abi()).ok() } pub unsafe fn Username(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2344,9 +2344,9 @@ impl ITsSbSession { } pub unsafe fn SetInitialProgram(&self, application: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInitialProgram)(windows_core::Interface::as_raw(self), application.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInitialProgram)(windows_core::Interface::as_raw(self), application.param().abi()).ok() } pub unsafe fn ClientDisplay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2393,9 +2393,9 @@ impl ITsSbTarget { } pub unsafe fn SetTargetName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn FarmName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2403,9 +2403,9 @@ impl ITsSbTarget { } pub unsafe fn SetFarmName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFarmName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFarmName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn TargetFQDN(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2413,9 +2413,9 @@ impl ITsSbTarget { } pub unsafe fn SetTargetFQDN(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetFQDN)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetFQDN)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn TargetNetbios(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2423,9 +2423,9 @@ impl ITsSbTarget { } pub unsafe fn SetTargetNetbios(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetNetbios)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetNetbios)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn get_IpAddresses(&self, sockaddr: *mut TSSD_ConnectionPoint, numaddresses: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).get_IpAddresses)(windows_core::Interface::as_raw(self), sockaddr, numaddresses).ok() @@ -2448,9 +2448,9 @@ impl ITsSbTarget { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SetTargetPropertySet(&self, pval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetPropertySet)(windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetPropertySet)(windows_core::Interface::as_raw(self), pval.param().abi()).ok() } pub unsafe fn EnvironmentName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2458,9 +2458,9 @@ impl ITsSbTarget { } pub unsafe fn SetEnvironmentName(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnvironmentName)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnvironmentName)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn NumSessions(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2513,17 +2513,17 @@ impl ITsSbTargetPropertySet { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Read(&self, pszpropname: P0, pvar: *mut windows_core::VARIANT, perrorlog: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar), perrorlog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Read)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar), perrorlog.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Write(&self, pszpropname: P0, pvar: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).base__.base__.Write)(windows_core::Interface::as_raw(self), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -2594,26 +2594,26 @@ impl ITsSbTaskPlugin { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pprovider: P0, pnotifysink: P1, ppropertyset: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), pnotifysink.into_param().abi(), ppropertyset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Terminate)(windows_core::Interface::as_raw(self), hr).ok() } pub unsafe fn InitializeTaskPlugin(&self, pitssbtaskpluginnotifysink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeTaskPlugin)(windows_core::Interface::as_raw(self), pitssbtaskpluginnotifysink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeTaskPlugin)(windows_core::Interface::as_raw(self), pitssbtaskpluginnotifysink.param().abi()).ok() } pub unsafe fn SetTaskQueue(&self, pszhostname: P0, pitssbtaskinfo: &[Option]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTaskQueue)(windows_core::Interface::as_raw(self), pszhostname.into_param().abi(), pitssbtaskinfo.len().try_into().unwrap(), core::mem::transmute(pitssbtaskinfo.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetTaskQueue)(windows_core::Interface::as_raw(self), pszhostname.param().abi(), pitssbtaskinfo.len().try_into().unwrap(), core::mem::transmute(pitssbtaskinfo.as_ptr())).ok() } } #[repr(C)] @@ -2634,32 +2634,32 @@ impl ITsSbTaskPluginNotifySink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnSetTaskTime(&self, sztargetname: P0, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: P1, sztaskidentifier: P2, sztaskplugin: P3, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetTaskTime)(windows_core::Interface::as_raw(self), sztargetname.into_param().abi(), core::mem::transmute(taskstarttime), core::mem::transmute(taskendtime), core::mem::transmute(taskdeadline), sztasklabel.into_param().abi(), sztaskidentifier.into_param().abi(), sztaskplugin.into_param().abi(), dwtaskstatus, sacontext).ok() + (windows_core::Interface::vtable(self).OnSetTaskTime)(windows_core::Interface::as_raw(self), sztargetname.param().abi(), core::mem::transmute(taskstarttime), core::mem::transmute(taskendtime), core::mem::transmute(taskdeadline), sztasklabel.param().abi(), sztaskidentifier.param().abi(), sztaskplugin.param().abi(), dwtaskstatus, sacontext).ok() } pub unsafe fn OnDeleteTaskTime(&self, sztargetname: P0, sztaskidentifier: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDeleteTaskTime)(windows_core::Interface::as_raw(self), sztargetname.into_param().abi(), sztaskidentifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDeleteTaskTime)(windows_core::Interface::as_raw(self), sztargetname.param().abi(), sztaskidentifier.param().abi()).ok() } pub unsafe fn OnUpdateTaskStatus(&self, sztargetname: P0, taskidentifier: P1, taskstatus: RDV_TASK_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUpdateTaskStatus)(windows_core::Interface::as_raw(self), sztargetname.into_param().abi(), taskidentifier.into_param().abi(), taskstatus).ok() + (windows_core::Interface::vtable(self).OnUpdateTaskStatus)(windows_core::Interface::as_raw(self), sztargetname.param().abi(), taskidentifier.param().abi(), taskstatus).ok() } pub unsafe fn OnReportTasks(&self, szhostname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReportTasks)(windows_core::Interface::as_raw(self), szhostname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnReportTasks)(windows_core::Interface::as_raw(self), szhostname.param().abi()).ok() } } #[repr(C)] @@ -2691,19 +2691,19 @@ windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannel, windows_core::IUnk impl IWRdsGraphicsChannel { pub unsafe fn Write(&self, cbsize: u32, pbuffer: *const u8, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), cbsize, pbuffer, pcontext.into_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() } pub unsafe fn Open(&self, pchannelevents: P0, popencontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pchannelevents.into_param().abi(), popencontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pchannelevents.param().abi(), popencontext.param().abi()).ok() } } #[repr(C)] @@ -2724,16 +2724,16 @@ impl IWRdsGraphicsChannelEvents { } pub unsafe fn OnChannelOpened(&self, openresult: windows_core::HRESULT, popencontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChannelOpened)(windows_core::Interface::as_raw(self), openresult, popencontext.into_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: P1, pbuffer: *const u8, cbbuffer: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDataSent)(windows_core::Interface::as_raw(self), pwritecontext.into_param().abi(), bcancelled.into_param().abi(), pbuffer, cbbuffer).ok() + (windows_core::Interface::vtable(self).OnDataSent)(windows_core::Interface::as_raw(self), pwritecontext.param().abi(), bcancelled.param().abi(), 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), bandwidth, rtt, lastsentbyteindex).ok() @@ -2789,9 +2789,9 @@ impl IWRdsProtocolConnection { } pub unsafe fn NotifySessionId(&self, sessionid: *const WTS_SESSION_ID, sessionhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifySessionId)(windows_core::Interface::as_raw(self), sessionid, sessionhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifySessionId)(windows_core::Interface::as_raw(self), sessionid, sessionhandle.param().abi()).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), pkeyboardhandle, pmousehandle, pbeephandle).ok() @@ -2805,26 +2805,26 @@ impl IWRdsProtocolConnection { } pub unsafe fn IsUserAllowedToLogon(&self, sessionid: u32, usertoken: P0, pdomainname: P1, pusername: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), sessionid, usertoken.into_param().abi(), pdomainname.into_param().abi(), pusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), sessionid, usertoken.param().abi(), pdomainname.param().abi(), pusername.param().abi()).ok() } pub unsafe fn SessionArbitrationEnumeration(&self, husertoken: P0, bsinglesessionperuserenabled: P1, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), husertoken.into_param().abi(), bsinglesessionperuserenabled.into_param().abi(), psessionidarray, pdwsessionidentifiercount).ok() + (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), husertoken.param().abi(), bsinglesessionperuserenabled.param().abi(), psessionidarray, pdwsessionidentifiercount).ok() } pub unsafe fn LogonNotify(&self, hclienttoken: P0, wszusername: P1, wszdomainname: P2, sessionid: *const WTS_SESSION_ID, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), hclienttoken.into_param().abi(), wszusername.into_param().abi(), wszdomainname.into_param().abi(), sessionid, pwrdsconnectionsettings).ok() + (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), hclienttoken.param().abi(), wszusername.param().abi(), wszdomainname.param().abi(), sessionid, pwrdsconnectionsettings).ok() } pub unsafe fn PreDisconnect(&self, disconnectreason: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).PreDisconnect)(windows_core::Interface::as_raw(self), disconnectreason).ok() @@ -2847,11 +2847,11 @@ impl IWRdsProtocolConnection { } pub unsafe fn CreateVirtualChannel(&self, szendpointname: P0, bstatic: P1, requestedpriority: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.into_param().abi(), bstatic.into_param().abi(), requestedpriority, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.param().abi(), bstatic.param().abi(), 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() @@ -2970,9 +2970,9 @@ impl IWRdsProtocolListener { } pub unsafe fn StartListen(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartListen)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartListen)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn StopListen(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopListen)(windows_core::Interface::as_raw(self)).ok() @@ -2990,10 +2990,10 @@ windows_core::imp::interface_hierarchy!(IWRdsProtocolListenerCallback, windows_c impl IWRdsProtocolListenerCallback { pub unsafe fn OnConnected(&self, pconnection: P0, pwrdsconnectionsettings: *const WRDS_CONNECTION_SETTINGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnConnected)(windows_core::Interface::as_raw(self), pconnection.into_param().abi(), 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)] @@ -3009,26 +3009,26 @@ impl IWRdsProtocolLogonErrorRedirector { } pub unsafe fn RedirectStatus(&self, pszmessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectStatus)(windows_core::Interface::as_raw(self), pszmessage.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RedirectStatus)(windows_core::Interface::as_raw(self), pszmessage.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RedirectMessage(&self, pszcaption: P0, pszmessage: P1, utype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectMessage)(windows_core::Interface::as_raw(self), pszcaption.into_param().abi(), pszmessage.into_param().abi(), 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: P0, pszmessage: P1, utype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectLogonError)(windows_core::Interface::as_raw(self), ntsstatus, ntssubstatus, pszcaption.into_param().abi(), pszmessage.into_param().abi(), 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)] @@ -3044,16 +3044,16 @@ windows_core::imp::interface_hierarchy!(IWRdsProtocolManager, windows_core::IUnk impl IWRdsProtocolManager { pub unsafe fn Initialize(&self, piwrdssettings: P0, pwrdssettings: *const WRDS_SETTINGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), piwrdssettings.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateListener)(windows_core::Interface::as_raw(self), wszlistenername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), ptsservicestatechange).ok() @@ -3110,10 +3110,10 @@ impl IWRdsProtocolShadowCallback { } pub unsafe fn InvokeTargetShadow(&self, ptargetservername: P0, targetsessionid: u32, pparam1: &[u8], pparam2: &[u8], pparam3: &[u8], pparam4: &[u8], pclientname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeTargetShadow)(windows_core::Interface::as_raw(self), ptargetservername.into_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.into_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)] @@ -3127,19 +3127,19 @@ windows_core::imp::interface_hierarchy!(IWRdsProtocolShadowConnection, windows_c impl IWRdsProtocolShadowConnection { pub unsafe fn Start(&self, ptargetservername: P0, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ptargetservername.into_param().abi(), targetsessionid, hotkeyvk, hotkeymodifiers, pshadowcallback.into_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() } pub unsafe fn DoTarget(&self, pparam1: &[u8], pparam2: &[u8], pparam3: &[u8], pparam4: &[u8], pclientname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoTarget)(windows_core::Interface::as_raw(self), 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.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DoTarget)(windows_core::Interface::as_raw(self), 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)] @@ -3157,18 +3157,18 @@ impl IWRdsWddmIddProps { } pub unsafe fn OnDriverLoad(&self, sessionid: u32, driverhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDriverLoad)(windows_core::Interface::as_raw(self), sessionid, driverhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDriverLoad)(windows_core::Interface::as_raw(self), sessionid, driverhandle.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), sessionid).ok() } pub unsafe fn EnableWddmIdd(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableWddmIdd)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableWddmIdd)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } } #[repr(C)] @@ -3187,9 +3187,9 @@ impl IWRdsWddmIddProps1 { } pub unsafe fn OnDriverLoad(&self, sessionid: u32, deviceinstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDriverLoad)(windows_core::Interface::as_raw(self), sessionid, deviceinstance.into_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), sessionid).ok() @@ -3207,10 +3207,10 @@ windows_core::imp::interface_hierarchy!(IWTSBitmapRenderService, windows_core::I impl IWTSBitmapRenderService { pub unsafe fn GetMappedRenderer(&self, mappingid: u64, pmappedrenderercallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMappedRenderer)(windows_core::Interface::as_raw(self), mappingid, pmappedrenderercallback.into_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)] @@ -3273,10 +3273,10 @@ windows_core::imp::interface_hierarchy!(IWTSListenerCallback, windows_core::IUnk impl IWTSListenerCallback { pub unsafe fn OnNewChannelConnection(&self, pchannel: P0, data: P1, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNewChannelConnection)(windows_core::Interface::as_raw(self), pchannel.into_param().abi(), data.into_param().abi(), pbaccept, core::mem::transmute(ppcallback)).ok() + (windows_core::Interface::vtable(self).OnNewChannelConnection)(windows_core::Interface::as_raw(self), pchannel.param().abi(), data.param().abi(), pbaccept, core::mem::transmute(ppcallback)).ok() } } #[repr(C)] @@ -3289,9 +3289,9 @@ windows_core::imp::interface_hierarchy!(IWTSPlugin, windows_core::IUnknown); impl IWTSPlugin { pub unsafe fn Initialize(&self, pchannelmgr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pchannelmgr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pchannelmgr.param().abi()).ok() } pub unsafe fn Connected(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Connected)(windows_core::Interface::as_raw(self)).ok() @@ -3361,26 +3361,26 @@ impl IWTSProtocolConnection { } pub unsafe fn IsUserAllowedToLogon(&self, sessionid: u32, usertoken: P0, pdomainname: P1, pusername: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), sessionid, usertoken.into_param().abi(), pdomainname.into_param().abi(), pusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsUserAllowedToLogon)(windows_core::Interface::as_raw(self), sessionid, usertoken.param().abi(), pdomainname.param().abi(), pusername.param().abi()).ok() } pub unsafe fn SessionArbitrationEnumeration(&self, husertoken: P0, bsinglesessionperuserenabled: P1, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), husertoken.into_param().abi(), bsinglesessionperuserenabled.into_param().abi(), psessionidarray, pdwsessionidentifiercount).ok() + (windows_core::Interface::vtable(self).SessionArbitrationEnumeration)(windows_core::Interface::as_raw(self), husertoken.param().abi(), bsinglesessionperuserenabled.param().abi(), psessionidarray, pdwsessionidentifiercount).ok() } pub unsafe fn LogonNotify(&self, hclienttoken: P0, wszusername: P1, wszdomainname: P2, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), hclienttoken.into_param().abi(), wszusername.into_param().abi(), wszdomainname.into_param().abi(), sessionid).ok() + (windows_core::Interface::vtable(self).LogonNotify)(windows_core::Interface::as_raw(self), hclienttoken.param().abi(), 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), ppolicydata, pclientdata).ok() @@ -3406,11 +3406,11 @@ impl IWTSProtocolConnection { } pub unsafe fn CreateVirtualChannel(&self, szendpointname: P0, bstatic: P1, requestedpriority: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.into_param().abi(), bstatic.into_param().abi(), requestedpriority, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateVirtualChannel)(windows_core::Interface::as_raw(self), szendpointname.param().abi(), bstatic.param().abi(), 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() @@ -3504,9 +3504,9 @@ windows_core::imp::interface_hierarchy!(IWTSProtocolListener, windows_core::IUnk impl IWTSProtocolListener { pub unsafe fn StartListen(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartListen)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartListen)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn StopListen(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopListen)(windows_core::Interface::as_raw(self)).ok() @@ -3523,10 +3523,10 @@ windows_core::imp::interface_hierarchy!(IWTSProtocolListenerCallback, windows_co impl IWTSProtocolListenerCallback { pub unsafe fn OnConnected(&self, pconnection: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnConnected)(windows_core::Interface::as_raw(self), pconnection.into_param().abi(), &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(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3542,26 +3542,26 @@ impl IWTSProtocolLogonErrorRedirector { } pub unsafe fn RedirectStatus(&self, pszmessage: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectStatus)(windows_core::Interface::as_raw(self), pszmessage.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RedirectStatus)(windows_core::Interface::as_raw(self), pszmessage.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RedirectMessage(&self, pszcaption: P0, pszmessage: P1, utype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectMessage)(windows_core::Interface::as_raw(self), pszcaption.into_param().abi(), pszmessage.into_param().abi(), 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: P0, pszmessage: P1, utype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RedirectLogonError)(windows_core::Interface::as_raw(self), ntsstatus, ntssubstatus, pszcaption.into_param().abi(), pszmessage.into_param().abi(), 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)] @@ -3577,10 +3577,10 @@ windows_core::imp::interface_hierarchy!(IWTSProtocolManager, windows_core::IUnkn impl IWTSProtocolManager { pub unsafe fn CreateListener(&self, wszlistenername: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateListener)(windows_core::Interface::as_raw(self), wszlistenername.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), ptsservicestatechange).ok() @@ -3612,10 +3612,10 @@ impl IWTSProtocolShadowCallback { } pub unsafe fn InvokeTargetShadow(&self, ptargetservername: P0, targetsessionid: u32, pparam1: &[u8], pparam2: &[u8], pparam3: &[u8], pparam4: &[u8], pclientname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeTargetShadow)(windows_core::Interface::as_raw(self), ptargetservername.into_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.into_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)] @@ -3629,19 +3629,19 @@ windows_core::imp::interface_hierarchy!(IWTSProtocolShadowConnection, windows_co impl IWTSProtocolShadowConnection { pub unsafe fn Start(&self, ptargetservername: P0, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), ptargetservername.into_param().abi(), targetsessionid, hotkeyvk, hotkeymodifiers, pshadowcallback.into_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() } pub unsafe fn DoTarget(&self, pparam1: &[u8], pparam2: &[u8], pparam3: &[u8], pparam4: &[u8], pclientname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoTarget)(windows_core::Interface::as_raw(self), 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.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DoTarget)(windows_core::Interface::as_raw(self), 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)] @@ -3666,23 +3666,23 @@ impl IWTSSBPlugin { } pub unsafe fn WTSSBX_GetMostSuitableServer(&self, username: P0, domainname: P1, applicationtype: P2, farmname: P3, pmachineid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).WTSSBX_GetMostSuitableServer)(windows_core::Interface::as_raw(self), username.into_param().abi(), domainname.into_param().abi(), applicationtype.into_param().abi(), farmname.into_param().abi(), pmachineid).ok() + (windows_core::Interface::vtable(self).WTSSBX_GetMostSuitableServer)(windows_core::Interface::as_raw(self), username.param().abi(), domainname.param().abi(), applicationtype.param().abi(), farmname.param().abi(), pmachineid).ok() } pub unsafe fn Terminated(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Terminated)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn WTSSBX_GetUserExternalSession(&self, username: P0, domainname: P1, applicationtype: P2, redirectorinternalip: *const WTSSBX_IP_ADDRESS, psessionid: *mut u32, pmachineconnectinfo: *mut WTSSBX_MACHINE_CONNECT_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WTSSBX_GetUserExternalSession)(windows_core::Interface::as_raw(self), username.into_param().abi(), domainname.into_param().abi(), applicationtype.into_param().abi(), redirectorinternalip, psessionid, 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, psessionid, pmachineconnectinfo).ok() } } #[repr(C)] @@ -3700,9 +3700,9 @@ windows_core::imp::interface_hierarchy!(IWTSVirtualChannel, windows_core::IUnkno impl IWTSVirtualChannel { pub unsafe fn Write(&self, pbuffer: &[u8], preserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), preserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Write)(windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), core::mem::transmute(pbuffer.as_ptr()), preserved.param().abi()).ok() } pub unsafe fn Close(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() @@ -3735,11 +3735,11 @@ windows_core::imp::interface_hierarchy!(IWTSVirtualChannelManager, windows_core: impl IWTSVirtualChannelManager { pub unsafe fn CreateListener(&self, pszchannelname: P0, uflags: u32, plistenercallback: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateListener)(windows_core::Interface::as_raw(self), pszchannelname.into_param().abi(), uflags, plistenercallback.into_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)] @@ -3758,9 +3758,9 @@ impl IWorkspace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartRemoteApplication(&self, bstrworkspaceid: P0, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartRemoteApplication)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), psaparams).ok() + (windows_core::Interface::vtable(self).StartRemoteApplication)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), psaparams).ok() } pub unsafe fn GetProcessId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3791,9 +3791,9 @@ impl IWorkspace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartRemoteApplication(&self, bstrworkspaceid: P0, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartRemoteApplication)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), psaparams).ok() + (windows_core::Interface::vtable(self).base__.StartRemoteApplication)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), psaparams).ok() } pub unsafe fn GetProcessId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3802,13 +3802,13 @@ impl IWorkspace2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartRemoteApplicationEx(&self, bstrworkspaceid: P0, bstrrequestingappid: P1, bstrrequestingappfamilyname: P2, blaunchintoimmersiveclient: P3, bstrimmersiveclientactivationcontext: P4, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).StartRemoteApplicationEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrrequestingappid.into_param().abi(), bstrrequestingappfamilyname.into_param().abi(), blaunchintoimmersiveclient.into_param().abi(), bstrimmersiveclientactivationcontext.into_param().abi(), psaparams).ok() + (windows_core::Interface::vtable(self).StartRemoteApplicationEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrrequestingappid.param().abi(), bstrrequestingappfamilyname.param().abi(), blaunchintoimmersiveclient.param().abi(), bstrimmersiveclientactivationcontext.param().abi(), psaparams).ok() } } #[repr(C)] @@ -3830,9 +3830,9 @@ impl IWorkspace3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartRemoteApplication(&self, bstrworkspaceid: P0, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StartRemoteApplication)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), psaparams).ok() + (windows_core::Interface::vtable(self).base__.base__.StartRemoteApplication)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), psaparams).ok() } pub unsafe fn GetProcessId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3841,28 +3841,28 @@ impl IWorkspace3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartRemoteApplicationEx(&self, bstrworkspaceid: P0, bstrrequestingappid: P1, bstrrequestingappfamilyname: P2, blaunchintoimmersiveclient: P3, bstrimmersiveclientactivationcontext: P4, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartRemoteApplicationEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrrequestingappid.into_param().abi(), bstrrequestingappfamilyname.into_param().abi(), blaunchintoimmersiveclient.into_param().abi(), bstrimmersiveclientactivationcontext.into_param().abi(), psaparams).ok() + (windows_core::Interface::vtable(self).base__.StartRemoteApplicationEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrrequestingappid.param().abi(), bstrrequestingappfamilyname.param().abi(), blaunchintoimmersiveclient.param().abi(), bstrimmersiveclientactivationcontext.param().abi(), psaparams).ok() } pub unsafe fn GetClaimsToken2(&self, bstrclaimshint: P0, bstruserhint: P1, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetClaimsToken2)(windows_core::Interface::as_raw(self), bstrclaimshint.into_param().abi(), bstruserhint.into_param().abi(), claimcookie, hwndcreduiparent, core::mem::transmute(rectcreduiparent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetClaimsToken2)(windows_core::Interface::as_raw(self), bstrclaimshint.param().abi(), bstruserhint.param().abi(), claimcookie, hwndcreduiparent, core::mem::transmute(rectcreduiparent), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetClaimsToken(&self, bstraccesstoken: P0, ullaccesstokenexpiration: u64, bstrrefreshtoken: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClaimsToken)(windows_core::Interface::as_raw(self), bstraccesstoken.into_param().abi(), ullaccesstokenexpiration, bstrrefreshtoken.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClaimsToken)(windows_core::Interface::as_raw(self), bstraccesstoken.param().abi(), ullaccesstokenexpiration, bstrrefreshtoken.param().abi()).ok() } } #[repr(C)] @@ -3898,10 +3898,10 @@ windows_core::imp::interface_hierarchy!(IWorkspaceRegistration, windows_core::IU impl IWorkspaceRegistration { pub unsafe fn AddResource(&self, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddResource)(windows_core::Interface::as_raw(self), punk.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookieconnection).ok() @@ -3918,20 +3918,20 @@ windows_core::imp::interface_hierarchy!(IWorkspaceRegistration2, windows_core::I impl IWorkspaceRegistration2 { pub unsafe fn AddResource(&self, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddResource)(windows_core::Interface::as_raw(self), punk.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.RemoveResource)(windows_core::Interface::as_raw(self), dwcookieconnection).ok() } pub unsafe fn AddResourceEx(&self, punk: P0, bstreventloguploadaddress: P1, pdwcookie: *mut u32, correlationid: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddResourceEx)(windows_core::Interface::as_raw(self), punk.into_param().abi(), bstreventloguploadaddress.into_param().abi(), pdwcookie, core::mem::transmute(correlationid)).ok() + (windows_core::Interface::vtable(self).AddResourceEx)(windows_core::Interface::as_raw(self), punk.param().abi(), bstreventloguploadaddress.param().abi(), pdwcookie, core::mem::transmute(correlationid)).ok() } pub unsafe fn RemoveResourceEx(&self, dwcookieconnection: u32, correlationid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveResourceEx)(windows_core::Interface::as_raw(self), dwcookieconnection, core::mem::transmute(correlationid)).ok() @@ -3948,24 +3948,24 @@ windows_core::imp::interface_hierarchy!(IWorkspaceReportMessage, windows_core::I impl IWorkspaceReportMessage { pub unsafe fn RegisterErrorLogMessage(&self, bstrmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterErrorLogMessage)(windows_core::Interface::as_raw(self), bstrmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterErrorLogMessage)(windows_core::Interface::as_raw(self), bstrmessage.param().abi()).ok() } pub unsafe fn IsErrorMessageRegistered(&self, bstrwkspid: P0, dwerrortype: u32, bstrerrormessagetype: P1, dwerrorcode: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsErrorMessageRegistered)(windows_core::Interface::as_raw(self), bstrwkspid.into_param().abi(), dwerrortype, bstrerrormessagetype.into_param().abi(), dwerrorcode, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsErrorMessageRegistered)(windows_core::Interface::as_raw(self), bstrwkspid.param().abi(), dwerrortype, bstrerrormessagetype.param().abi(), dwerrorcode, &mut result__).map(|| result__) } pub unsafe fn RegisterErrorEvent(&self, bstrwkspid: P0, dwerrortype: u32, bstrerrormessagetype: P1, dwerrorcode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterErrorEvent)(windows_core::Interface::as_raw(self), bstrwkspid.into_param().abi(), dwerrortype, bstrerrormessagetype.into_param().abi(), dwerrorcode).ok() + (windows_core::Interface::vtable(self).RegisterErrorEvent)(windows_core::Interface::as_raw(self), bstrwkspid.param().abi(), dwerrortype, bstrerrormessagetype.param().abi(), dwerrorcode).ok() } } #[repr(C)] @@ -3983,42 +3983,42 @@ windows_core::imp::interface_hierarchy!(IWorkspaceResTypeRegistry, windows_core: impl IWorkspaceResTypeRegistry { pub unsafe fn AddResourceType(&self, fmachinewide: P0, bstrfileextension: P1, bstrlauncher: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddResourceType)(windows_core::Interface::as_raw(self), fmachinewide.into_param().abi(), bstrfileextension.into_param().abi(), bstrlauncher.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddResourceType)(windows_core::Interface::as_raw(self), fmachinewide.param().abi(), bstrfileextension.param().abi(), bstrlauncher.param().abi()).ok() } pub unsafe fn DeleteResourceType(&self, fmachinewide: P0, bstrfileextension: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteResourceType)(windows_core::Interface::as_raw(self), fmachinewide.into_param().abi(), bstrfileextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteResourceType)(windows_core::Interface::as_raw(self), fmachinewide.param().abi(), bstrfileextension.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRegisteredFileExtensions(&self, fmachinewide: P0) -> windows_core::Result<*mut super::Com::SAFEARRAY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRegisteredFileExtensions)(windows_core::Interface::as_raw(self), fmachinewide.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetRegisteredFileExtensions)(windows_core::Interface::as_raw(self), fmachinewide.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetResourceTypeInfo(&self, fmachinewide: P0, bstrfileextension: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetResourceTypeInfo)(windows_core::Interface::as_raw(self), fmachinewide.into_param().abi(), bstrfileextension.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetResourceTypeInfo)(windows_core::Interface::as_raw(self), fmachinewide.param().abi(), bstrfileextension.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ModifyResourceType(&self, fmachinewide: P0, bstrfileextension: P1, bstrlauncher: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifyResourceType)(windows_core::Interface::as_raw(self), fmachinewide.into_param().abi(), bstrfileextension.into_param().abi(), bstrlauncher.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ModifyResourceType)(windows_core::Interface::as_raw(self), fmachinewide.param().abi(), bstrfileextension.param().abi(), bstrlauncher.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4042,26 +4042,26 @@ windows_core::imp::interface_hierarchy!(IWorkspaceScriptable, windows_core::IUnk impl IWorkspaceScriptable { pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisconnectWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisconnectWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi()).ok() } pub unsafe fn StartWorkspace(&self, bstrworkspaceid: P0, bstrusername: P1, bstrpassword: P2, bstrworkspaceparams: P3, ltimeout: i32, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).StartWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrusername.into_param().abi(), bstrpassword.into_param().abi(), bstrworkspaceparams.into_param().abi(), ltimeout, lflags).ok() + (windows_core::Interface::vtable(self).StartWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrusername.param().abi(), bstrpassword.param().abi(), bstrworkspaceparams.param().abi(), ltimeout, lflags).ok() } pub unsafe fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: P0, bcountunauthenticatedcredentials: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bcountunauthenticatedcredentials.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bcountunauthenticatedcredentials.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsWorkspaceSSOEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4069,22 +4069,22 @@ impl IWorkspaceScriptable { } pub unsafe fn ClearWorkspaceCredential(&self, bstrworkspaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearWorkspaceCredential)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ClearWorkspaceCredential)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi()).ok() } pub unsafe fn OnAuthenticated(&self, bstrworkspaceid: P0, bstrusername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAuthenticated)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnAuthenticated)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrusername.param().abi()).ok() } pub unsafe fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisconnectWorkspaceByFriendlyName)(windows_core::Interface::as_raw(self), bstrworkspacefriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisconnectWorkspaceByFriendlyName)(windows_core::Interface::as_raw(self), bstrworkspacefriendlyname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4107,26 +4107,26 @@ windows_core::imp::interface_hierarchy!(IWorkspaceScriptable2, windows_core::IUn impl IWorkspaceScriptable2 { pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DisconnectWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DisconnectWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi()).ok() } pub unsafe fn StartWorkspace(&self, bstrworkspaceid: P0, bstrusername: P1, bstrpassword: P2, bstrworkspaceparams: P3, ltimeout: i32, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrusername.into_param().abi(), bstrpassword.into_param().abi(), bstrworkspaceparams.into_param().abi(), ltimeout, lflags).ok() + (windows_core::Interface::vtable(self).base__.StartWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrusername.param().abi(), bstrpassword.param().abi(), bstrworkspaceparams.param().abi(), ltimeout, lflags).ok() } pub unsafe fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: P0, bcountunauthenticatedcredentials: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bcountunauthenticatedcredentials.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bcountunauthenticatedcredentials.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsWorkspaceSSOEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4134,41 +4134,41 @@ impl IWorkspaceScriptable2 { } pub unsafe fn ClearWorkspaceCredential(&self, bstrworkspaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ClearWorkspaceCredential)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ClearWorkspaceCredential)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi()).ok() } pub unsafe fn OnAuthenticated(&self, bstrworkspaceid: P0, bstrusername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnAuthenticated)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnAuthenticated)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrusername.param().abi()).ok() } pub unsafe fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DisconnectWorkspaceByFriendlyName)(windows_core::Interface::as_raw(self), bstrworkspacefriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DisconnectWorkspaceByFriendlyName)(windows_core::Interface::as_raw(self), bstrworkspacefriendlyname.param().abi()).ok() } pub unsafe fn StartWorkspaceEx(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1, bstrredirectorname: P2, bstrusername: P3, bstrpassword: P4, bstrappcontainer: P5, bstrworkspaceparams: P6, ltimeout: i32, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { - (windows_core::Interface::vtable(self).StartWorkspaceEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrworkspacefriendlyname.into_param().abi(), bstrredirectorname.into_param().abi(), bstrusername.into_param().abi(), bstrpassword.into_param().abi(), bstrappcontainer.into_param().abi(), bstrworkspaceparams.into_param().abi(), ltimeout, lflags).ok() + (windows_core::Interface::vtable(self).StartWorkspaceEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrworkspacefriendlyname.param().abi(), bstrredirectorname.param().abi(), bstrusername.param().abi(), bstrpassword.param().abi(), bstrappcontainer.param().abi(), bstrworkspaceparams.param().abi(), ltimeout, lflags).ok() } pub unsafe fn ResourceDismissed(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResourceDismissed)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrworkspacefriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ResourceDismissed)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrworkspacefriendlyname.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4186,26 +4186,26 @@ windows_core::imp::interface_hierarchy!(IWorkspaceScriptable3, windows_core::IUn impl IWorkspaceScriptable3 { pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DisconnectWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DisconnectWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi()).ok() } pub unsafe fn StartWorkspace(&self, bstrworkspaceid: P0, bstrusername: P1, bstrpassword: P2, bstrworkspaceparams: P3, ltimeout: i32, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.StartWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrusername.into_param().abi(), bstrpassword.into_param().abi(), bstrworkspaceparams.into_param().abi(), ltimeout, lflags).ok() + (windows_core::Interface::vtable(self).base__.base__.StartWorkspace)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrusername.param().abi(), bstrpassword.param().abi(), bstrworkspaceparams.param().abi(), ltimeout, lflags).ok() } pub unsafe fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: P0, bcountunauthenticatedcredentials: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bcountunauthenticatedcredentials.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsWorkspaceCredentialSpecified)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bcountunauthenticatedcredentials.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsWorkspaceSSOEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4213,54 +4213,54 @@ impl IWorkspaceScriptable3 { } pub unsafe fn ClearWorkspaceCredential(&self, bstrworkspaceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ClearWorkspaceCredential)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ClearWorkspaceCredential)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi()).ok() } pub unsafe fn OnAuthenticated(&self, bstrworkspaceid: P0, bstrusername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnAuthenticated)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.OnAuthenticated)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrusername.param().abi()).ok() } pub unsafe fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DisconnectWorkspaceByFriendlyName)(windows_core::Interface::as_raw(self), bstrworkspacefriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DisconnectWorkspaceByFriendlyName)(windows_core::Interface::as_raw(self), bstrworkspacefriendlyname.param().abi()).ok() } pub unsafe fn StartWorkspaceEx(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1, bstrredirectorname: P2, bstrusername: P3, bstrpassword: P4, bstrappcontainer: P5, bstrworkspaceparams: P6, ltimeout: i32, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartWorkspaceEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrworkspacefriendlyname.into_param().abi(), bstrredirectorname.into_param().abi(), bstrusername.into_param().abi(), bstrpassword.into_param().abi(), bstrappcontainer.into_param().abi(), bstrworkspaceparams.into_param().abi(), ltimeout, lflags).ok() + (windows_core::Interface::vtable(self).base__.StartWorkspaceEx)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrworkspacefriendlyname.param().abi(), bstrredirectorname.param().abi(), bstrusername.param().abi(), bstrpassword.param().abi(), bstrappcontainer.param().abi(), bstrworkspaceparams.param().abi(), ltimeout, lflags).ok() } pub unsafe fn ResourceDismissed(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResourceDismissed)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrworkspacefriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ResourceDismissed)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrworkspacefriendlyname.param().abi()).ok() } pub unsafe fn StartWorkspaceEx2(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1, bstrredirectorname: P2, bstrusername: P3, bstrpassword: P4, bstrappcontainer: P5, bstrworkspaceparams: P6, ltimeout: i32, lflags: i32, bstreventloguploadaddress: P7, correlationid: windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { - (windows_core::Interface::vtable(self).StartWorkspaceEx2)(windows_core::Interface::as_raw(self), bstrworkspaceid.into_param().abi(), bstrworkspacefriendlyname.into_param().abi(), bstrredirectorname.into_param().abi(), bstrusername.into_param().abi(), bstrpassword.into_param().abi(), bstrappcontainer.into_param().abi(), bstrworkspaceparams.into_param().abi(), ltimeout, lflags, bstreventloguploadaddress.into_param().abi(), core::mem::transmute(correlationid)).ok() + (windows_core::Interface::vtable(self).StartWorkspaceEx2)(windows_core::Interface::as_raw(self), bstrworkspaceid.param().abi(), bstrworkspacefriendlyname.param().abi(), bstrredirectorname.param().abi(), bstrusername.param().abi(), bstrpassword.param().abi(), bstrappcontainer.param().abi(), bstrworkspaceparams.param().abi(), ltimeout, lflags, bstreventloguploadaddress.param().abi(), core::mem::transmute(correlationid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4274,15 +4274,15 @@ windows_core::imp::interface_hierarchy!(ItsPubPlugin, windows_core::IUnknown); impl ItsPubPlugin { pub unsafe fn GetResourceList(&self, userid: P0, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResourceList)(windows_core::Interface::as_raw(self), userid.into_param().abi(), pceapplistsize, resourcelist).ok() + (windows_core::Interface::vtable(self).GetResourceList)(windows_core::Interface::as_raw(self), userid.param().abi(), pceapplistsize, resourcelist).ok() } pub unsafe fn GetResource(&self, alias: P0, flags: i32, resource: *mut pluginResource) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), alias.into_param().abi(), flags, resource).ok() + (windows_core::Interface::vtable(self).GetResource)(windows_core::Interface::as_raw(self), alias.param().abi(), flags, resource).ok() } pub unsafe fn GetCacheLastUpdateTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4298,10 +4298,10 @@ impl ItsPubPlugin { } pub unsafe fn ResolveResource(&self, resourcetype: *mut u32, resourcelocation: &mut [u16; 256], endpointname: &mut [u16; 256], userid: P0, alias: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveResource)(windows_core::Interface::as_raw(self), resourcetype, core::mem::transmute(resourcelocation.as_ptr()), core::mem::transmute(endpointname.as_ptr()), userid.into_param().abi(), alias.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ResolveResource)(windows_core::Interface::as_raw(self), resourcetype, core::mem::transmute(resourcelocation.as_ptr()), core::mem::transmute(endpointname.as_ptr()), userid.param().abi(), alias.param().abi()).ok() } } #[repr(C)] @@ -4319,15 +4319,15 @@ windows_core::imp::interface_hierarchy!(ItsPubPlugin2, windows_core::IUnknown, I impl ItsPubPlugin2 { pub unsafe fn GetResourceList(&self, userid: P0, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetResourceList)(windows_core::Interface::as_raw(self), userid.into_param().abi(), pceapplistsize, resourcelist).ok() + (windows_core::Interface::vtable(self).base__.GetResourceList)(windows_core::Interface::as_raw(self), userid.param().abi(), pceapplistsize, resourcelist).ok() } pub unsafe fn GetResource(&self, alias: P0, flags: i32, resource: *mut pluginResource) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetResource)(windows_core::Interface::as_raw(self), alias.into_param().abi(), flags, resource).ok() + (windows_core::Interface::vtable(self).base__.GetResource)(windows_core::Interface::as_raw(self), alias.param().abi(), flags, resource).ok() } pub unsafe fn GetCacheLastUpdateTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4343,37 +4343,37 @@ impl ItsPubPlugin2 { } pub unsafe fn ResolveResource(&self, resourcetype: *mut u32, resourcelocation: &mut [u16; 256], endpointname: &mut [u16; 256], userid: P0, alias: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResolveResource)(windows_core::Interface::as_raw(self), resourcetype, core::mem::transmute(resourcelocation.as_ptr()), core::mem::transmute(endpointname.as_ptr()), userid.into_param().abi(), alias.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ResolveResource)(windows_core::Interface::as_raw(self), resourcetype, core::mem::transmute(resourcelocation.as_ptr()), core::mem::transmute(endpointname.as_ptr()), userid.param().abi(), alias.param().abi()).ok() } pub unsafe fn GetResource2List(&self, userid: P0, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResource2List)(windows_core::Interface::as_raw(self), userid.into_param().abi(), pceapplistsize, resourcelist).ok() + (windows_core::Interface::vtable(self).GetResource2List)(windows_core::Interface::as_raw(self), userid.param().abi(), pceapplistsize, resourcelist).ok() } pub unsafe fn GetResource2(&self, alias: P0, flags: i32, resource: *mut pluginResource2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResource2)(windows_core::Interface::as_raw(self), alias.into_param().abi(), flags, resource).ok() + (windows_core::Interface::vtable(self).GetResource2)(windows_core::Interface::as_raw(self), alias.param().abi(), flags, 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolvePersonalDesktop)(windows_core::Interface::as_raw(self), userid.into_param().abi(), poolid.into_param().abi(), epdresolutiontype, 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, ppdassignmenttype, core::mem::transmute(endpointname.as_ptr())).ok() } pub unsafe fn DeletePersonalDesktopAssignment(&self, userid: P0, poolid: P1, endpointname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeletePersonalDesktopAssignment)(windows_core::Interface::as_raw(self), userid.into_param().abi(), poolid.into_param().abi(), endpointname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeletePersonalDesktopAssignment)(windows_core::Interface::as_raw(self), userid.param().abi(), poolid.param().abi(), endpointname.param().abi()).ok() } } #[repr(C)] 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 fad0e92b9f..f80c25168f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs @@ -1,130 +1,130 @@ #[inline] pub unsafe fn WSManCloseCommand(commandhandle: P0, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseCommand(commandhandle : WSMAN_COMMAND_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManCloseCommand(commandhandle.into_param().abi(), flags, r#async) + WSManCloseCommand(commandhandle.param().abi(), flags, r#async) } #[inline] pub unsafe fn WSManCloseOperation(operationhandle: P0, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseOperation(operationhandle : WSMAN_OPERATION_HANDLE, flags : u32) -> u32); - WSManCloseOperation(operationhandle.into_param().abi(), flags) + WSManCloseOperation(operationhandle.param().abi(), flags) } #[inline] pub unsafe fn WSManCloseSession(session: P0, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseSession(session : WSMAN_SESSION_HANDLE, flags : u32) -> u32); - WSManCloseSession(session.into_param().abi(), flags) + WSManCloseSession(session.param().abi(), flags) } #[inline] pub unsafe fn WSManCloseShell(shellhandle: P0, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManCloseShell(shellhandle : WSMAN_SHELL_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManCloseShell(shellhandle.into_param().abi(), flags, r#async) + WSManCloseShell(shellhandle.param().abi(), flags, r#async) } #[inline] pub unsafe fn WSManConnectShell(session: P0, flags: u32, resourceuri: P1, shellid: P2, options: Option<*const WSMAN_OPTION_SET>, connectxml: Option<*const WSMAN_DATA>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_SHELL_HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManConnectShell(session.into_param().abi(), flags, resourceuri.into_param().abi(), shellid.into_param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(connectxml.unwrap_or(std::ptr::null())), r#async, &mut result__); + WSManConnectShell(session.param().abi(), flags, resourceuri.param().abi(), shellid.param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(connectxml.unwrap_or(std::ptr::null())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManConnectShellCommand(shell: P0, flags: u32, commandid: P1, options: Option<*const WSMAN_OPTION_SET>, connectxml: Option<*const WSMAN_DATA>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_COMMAND_HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManConnectShellCommand(shell.into_param().abi(), flags, commandid.into_param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(connectxml.unwrap_or(std::ptr::null())), r#async, &mut result__); + WSManConnectShellCommand(shell.param().abi(), flags, commandid.param().abi(), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(connectxml.unwrap_or(std::ptr::null())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManCreateSession(apihandle: P0, connection: P1, flags: u32, serverauthenticationcredentials: Option<*const WSMAN_AUTHENTICATION_CREDENTIALS>, proxyinfo: Option<*const WSMAN_PROXY_INFO>, session: *mut WSMAN_SESSION_HANDLE) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(apihandle.into_param().abi(), connection.into_param().abi(), flags, core::mem::transmute(serverauthenticationcredentials.unwrap_or(std::ptr::null())), core::mem::transmute(proxyinfo.unwrap_or(std::ptr::null())), session) + WSManCreateSession(apihandle.param().abi(), connection.param().abi(), flags, core::mem::transmute(serverauthenticationcredentials.unwrap_or(std::ptr::null())), core::mem::transmute(proxyinfo.unwrap_or(std::ptr::null())), session) } #[inline] pub unsafe fn WSManCreateShell(session: P0, flags: u32, resourceuri: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManCreateShell(session.into_param().abi(), flags, resourceuri.into_param().abi(), core::mem::transmute(startupinfo.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(createxml.unwrap_or(std::ptr::null())), r#async, &mut result__); + WSManCreateShell(session.param().abi(), flags, resourceuri.param().abi(), core::mem::transmute(startupinfo.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(createxml.unwrap_or(std::ptr::null())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManCreateShellEx(session: P0, flags: u32, resourceuri: P1, shellid: 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManCreateShellEx(session.into_param().abi(), flags, resourceuri.into_param().abi(), shellid.into_param().abi(), core::mem::transmute(startupinfo.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(createxml.unwrap_or(std::ptr::null())), r#async, &mut result__); + WSManCreateShellEx(session.param().abi(), flags, resourceuri.param().abi(), shellid.param().abi(), core::mem::transmute(startupinfo.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), core::mem::transmute(createxml.unwrap_or(std::ptr::null())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManDeinitialize(apihandle: P0, flags: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManDeinitialize(apihandle : WSMAN_API_HANDLE, flags : u32) -> u32); - WSManDeinitialize(apihandle.into_param().abi(), flags) + WSManDeinitialize(apihandle.param().abi(), flags) } #[inline] pub unsafe fn WSManDisconnectShell(shell: P0, flags: u32, disconnectinfo: *const WSMAN_SHELL_DISCONNECT_INFO, r#async: *const WSMAN_SHELL_ASYNC) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(shell.into_param().abi(), flags, disconnectinfo, r#async) + WSManDisconnectShell(shell.param().abi(), flags, disconnectinfo, r#async) } #[inline] pub unsafe fn WSManGetErrorMessage(apihandle: P0, flags: u32, languagecode: P1, errorcode: u32, message: Option<&mut [u16]>, messagelengthused: *mut u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(apihandle.into_param().abi(), flags, languagecode.into_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())), messagelengthused) + WSManGetErrorMessage(apihandle.param().abi(), flags, 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())), messagelengthused) } #[inline] pub unsafe fn WSManGetSessionOptionAsDword(session: P0, option: WSManSessionOption, value: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManGetSessionOptionAsDword(session : WSMAN_SESSION_HANDLE, option : WSManSessionOption, value : *mut u32) -> u32); - WSManGetSessionOptionAsDword(session.into_param().abi(), option, value) + WSManGetSessionOptionAsDword(session.param().abi(), option, value) } #[inline] pub unsafe fn WSManGetSessionOptionAsString(session: P0, option: WSManSessionOption, string: Option<&mut [u16]>, stringlengthused: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(session.into_param().abi(), 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())), stringlengthused) + WSManGetSessionOptionAsString(session.param().abi(), 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())), stringlengthused) } #[inline] pub unsafe fn WSManInitialize(flags: u32, apihandle: *mut WSMAN_API_HANDLE) -> u32 { @@ -134,28 +134,28 @@ pub unsafe fn WSManInitialize(flags: u32, apihandle: *mut WSMAN_API_HANDLE) -> u #[inline] pub unsafe fn WSManPluginAuthzOperationComplete(senderdetails: *const WSMAN_SENDER_DETAILS, flags: u32, userauthorizationcontext: Option<*const core::ffi::c_void>, errorcode: u32, extendederrorinformation: P0) -> u32 where - P0: windows_core::IntoParam, + P0: 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(senderdetails, flags, core::mem::transmute(userauthorizationcontext.unwrap_or(std::ptr::null())), errorcode, extendederrorinformation.into_param().abi()) + WSManPluginAuthzOperationComplete(senderdetails, flags, core::mem::transmute(userauthorizationcontext.unwrap_or(std::ptr::null())), 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: P0) -> u32 where - P0: windows_core::IntoParam, + P0: 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(senderdetails, flags, core::mem::transmute(quota.unwrap_or(std::ptr::null())), errorcode, extendederrorinformation.into_param().abi()) + WSManPluginAuthzQueryQuotaComplete(senderdetails, flags, core::mem::transmute(quota.unwrap_or(std::ptr::null())), errorcode, extendederrorinformation.param().abi()) } #[inline] pub unsafe fn WSManPluginAuthzUserComplete(senderdetails: *const WSMAN_SENDER_DETAILS, flags: u32, userauthorizationcontext: Option<*const core::ffi::c_void>, impersonationtoken: P0, userisadministrator: P1, errorcode: u32, extendederrorinformation: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(senderdetails, flags, core::mem::transmute(userauthorizationcontext.unwrap_or(std::ptr::null())), impersonationtoken.into_param().abi(), userisadministrator.into_param().abi(), errorcode, extendederrorinformation.into_param().abi()) + WSManPluginAuthzUserComplete(senderdetails, flags, core::mem::transmute(userauthorizationcontext.unwrap_or(std::ptr::null())), impersonationtoken.param().abi(), userisadministrator.param().abi(), errorcode, extendederrorinformation.param().abi()) } #[inline] pub unsafe fn WSManPluginFreeRequestDetails(requestdetails: *const WSMAN_PLUGIN_REQUEST) -> u32 { @@ -175,19 +175,19 @@ pub unsafe fn WSManPluginGetOperationParameters(requestdetails: *const WSMAN_PLU #[inline] pub unsafe fn WSManPluginOperationComplete(requestdetails: *const WSMAN_PLUGIN_REQUEST, flags: u32, errorcode: u32, extendedinformation: P0) -> u32 where - P0: windows_core::IntoParam, + P0: 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(requestdetails, flags, errorcode, extendedinformation.into_param().abi()) + WSManPluginOperationComplete(requestdetails, flags, errorcode, extendedinformation.param().abi()) } #[inline] pub unsafe fn WSManPluginReceiveResult(requestdetails: *const WSMAN_PLUGIN_REQUEST, flags: u32, stream: P0, streamresult: Option<*const WSMAN_DATA>, commandstate: P1, exitcode: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(requestdetails, flags, stream.into_param().abi(), core::mem::transmute(streamresult.unwrap_or(std::ptr::null())), commandstate.into_param().abi(), exitcode) + WSManPluginReceiveResult(requestdetails, flags, stream.param().abi(), core::mem::transmute(streamresult.unwrap_or(std::ptr::null())), commandstate.param().abi(), exitcode) } #[inline] pub unsafe fn WSManPluginReportCompletion(plugincontext: *const core::ffi::c_void, flags: u32) -> u32 { @@ -202,84 +202,84 @@ pub unsafe fn WSManPluginReportContext(requestdetails: *const WSMAN_PLUGIN_REQUE #[inline] pub unsafe fn WSManReceiveShellOutput(shell: P0, command: P1, flags: u32, desiredstreamset: Option<*const WSMAN_STREAM_ID_SET>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_OPERATION_HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManReceiveShellOutput(shell.into_param().abi(), command.into_param().abi(), flags, core::mem::transmute(desiredstreamset.unwrap_or(std::ptr::null())), r#async, &mut result__); + WSManReceiveShellOutput(shell.param().abi(), command.param().abi(), flags, core::mem::transmute(desiredstreamset.unwrap_or(std::ptr::null())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManReconnectShell(shell: P0, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManReconnectShell(shell : WSMAN_SHELL_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManReconnectShell(shell.into_param().abi(), flags, r#async) + WSManReconnectShell(shell.param().abi(), flags, r#async) } #[inline] pub unsafe fn WSManReconnectShellCommand(commandhandle: P0, flags: u32, r#async: *const WSMAN_SHELL_ASYNC) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManReconnectShellCommand(commandhandle : WSMAN_COMMAND_HANDLE, flags : u32, r#async : *const WSMAN_SHELL_ASYNC)); - WSManReconnectShellCommand(commandhandle.into_param().abi(), flags, r#async) + WSManReconnectShellCommand(commandhandle.param().abi(), flags, r#async) } #[inline] pub unsafe fn WSManRunShellCommand(shell: P0, flags: u32, commandline: P1, args: Option<*const WSMAN_COMMAND_ARG_SET>, options: Option<*const WSMAN_OPTION_SET>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_COMMAND_HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManRunShellCommand(shell.into_param().abi(), flags, commandline.into_param().abi(), core::mem::transmute(args.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), r#async, &mut result__); + WSManRunShellCommand(shell.param().abi(), flags, commandline.param().abi(), core::mem::transmute(args.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManRunShellCommandEx(shell: P0, flags: u32, commandid: P1, commandline: P2, args: Option<*const WSMAN_COMMAND_ARG_SET>, options: Option<*const WSMAN_OPTION_SET>, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_COMMAND_HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManRunShellCommandEx(shell.into_param().abi(), flags, commandid.into_param().abi(), commandline.into_param().abi(), core::mem::transmute(args.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), r#async, &mut result__); + WSManRunShellCommandEx(shell.param().abi(), flags, commandid.param().abi(), commandline.param().abi(), core::mem::transmute(args.unwrap_or(std::ptr::null())), core::mem::transmute(options.unwrap_or(std::ptr::null())), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManSendShellInput(shell: P0, command: P1, flags: u32, streamid: P2, streamdata: *const WSMAN_DATA, endofstream: P3, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_OPERATION_HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManSendShellInput(shell.into_param().abi(), command.into_param().abi(), flags, streamid.into_param().abi(), streamdata, endofstream.into_param().abi(), r#async, &mut result__); + WSManSendShellInput(shell.param().abi(), command.param().abi(), flags, streamid.param().abi(), streamdata, endofstream.param().abi(), r#async, &mut result__); result__ } #[inline] pub unsafe fn WSManSetSessionOption(session: P0, option: WSManSessionOption, data: *const WSMAN_DATA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wsmsvc.dll" "system" fn WSManSetSessionOption(session : WSMAN_SESSION_HANDLE, option : WSManSessionOption, data : *const WSMAN_DATA) -> u32); - WSManSetSessionOption(session.into_param().abi(), option, data) + WSManSetSessionOption(session.param().abi(), option, data) } #[inline] pub unsafe fn WSManSignalShell(shell: P0, command: P1, flags: u32, code: P2, r#async: *const WSMAN_SHELL_ASYNC) -> WSMAN_OPERATION_HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - WSManSignalShell(shell.into_param().abi(), command.into_param().abi(), flags, code.into_param().abi(), r#async, &mut result__); + WSManSignalShell(shell.param().abi(), command.param().abi(), flags, code.param().abi(), r#async, &mut result__); result__ } #[cfg(feature = "Win32_System_Com")] @@ -291,11 +291,11 @@ impl IWSMan { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSession(&self, connection: P0, flags: i32, connectionoptions: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), connection.into_param().abi(), flags, connectionoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), connection.param().abi(), flags, connectionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateConnectionOptions(&self) -> windows_core::Result { @@ -338,15 +338,15 @@ impl IWSManConnectionOptions { } pub unsafe fn SetUserName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn SetPassword(&self, password: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), password.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -369,15 +369,15 @@ impl IWSManConnectionOptionsEx { } pub unsafe fn SetUserName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUserName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUserName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn SetPassword(&self, password: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPassword)(windows_core::Interface::as_raw(self), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPassword)(windows_core::Interface::as_raw(self), password.param().abi()).ok() } pub unsafe fn CertificateThumbprint(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -385,9 +385,9 @@ impl IWSManConnectionOptionsEx { } pub unsafe fn SetCertificateThumbprint(&self, thumbprint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCertificateThumbprint)(windows_core::Interface::as_raw(self), thumbprint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCertificateThumbprint)(windows_core::Interface::as_raw(self), thumbprint.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -409,15 +409,15 @@ impl IWSManConnectionOptionsEx2 { } pub unsafe fn SetUserName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUserName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUserName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn SetPassword(&self, password: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPassword)(windows_core::Interface::as_raw(self), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPassword)(windows_core::Interface::as_raw(self), password.param().abi()).ok() } pub unsafe fn CertificateThumbprint(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -425,16 +425,16 @@ impl IWSManConnectionOptionsEx2 { } pub unsafe fn SetCertificateThumbprint(&self, thumbprint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCertificateThumbprint)(windows_core::Interface::as_raw(self), thumbprint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCertificateThumbprint)(windows_core::Interface::as_raw(self), thumbprint.param().abi()).ok() } pub unsafe fn SetProxy(&self, accesstype: i32, authenticationmechanism: i32, username: P0, password: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), accesstype, authenticationmechanism, username.into_param().abi(), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), accesstype, authenticationmechanism, username.param().abi(), password.param().abi()).ok() } pub unsafe fn ProxyIEConfig(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -514,11 +514,11 @@ impl IWSManEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSession(&self, connection: P0, flags: i32, connectionoptions: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateSession)(windows_core::Interface::as_raw(self), connection.into_param().abi(), flags, connectionoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateSession)(windows_core::Interface::as_raw(self), connection.param().abi(), flags, connectionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateConnectionOptions(&self) -> windows_core::Result { @@ -536,10 +536,10 @@ impl IWSManEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateResourceLocator(&self, strresourcelocator: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateResourceLocator)(windows_core::Interface::as_raw(self), strresourcelocator.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateResourceLocator)(windows_core::Interface::as_raw(self), strresourcelocator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SessionFlagUTF8(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -655,11 +655,11 @@ impl IWSManEx2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSession(&self, connection: P0, flags: i32, connectionoptions: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateSession)(windows_core::Interface::as_raw(self), connection.into_param().abi(), flags, connectionoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateSession)(windows_core::Interface::as_raw(self), connection.param().abi(), flags, connectionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateConnectionOptions(&self) -> windows_core::Result { @@ -677,10 +677,10 @@ impl IWSManEx2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateResourceLocator(&self, strresourcelocator: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateResourceLocator)(windows_core::Interface::as_raw(self), strresourcelocator.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateResourceLocator)(windows_core::Interface::as_raw(self), strresourcelocator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SessionFlagUTF8(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -778,11 +778,11 @@ impl IWSManEx3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateSession(&self, connection: P0, flags: i32, connectionoptions: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateSession)(windows_core::Interface::as_raw(self), connection.into_param().abi(), flags, connectionoptions.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateSession)(windows_core::Interface::as_raw(self), connection.param().abi(), flags, connectionoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateConnectionOptions(&self) -> windows_core::Result { @@ -800,10 +800,10 @@ impl IWSManEx3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateResourceLocator(&self, strresourcelocator: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateResourceLocator)(windows_core::Interface::as_raw(self), strresourcelocator.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateResourceLocator)(windows_core::Interface::as_raw(self), strresourcelocator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SessionFlagUTF8(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -935,11 +935,11 @@ impl IWSManInternal { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConfigSDDL(&self, session: P0, resourceuri: P1, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConfigSDDL)(windows_core::Interface::as_raw(self), session.into_param().abi(), resourceuri.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConfigSDDL)(windows_core::Interface::as_raw(self), session.param().abi(), resourceuri.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -959,9 +959,9 @@ windows_core::imp::interface_hierarchy!(IWSManResourceLocator, windows_core::IUn impl IWSManResourceLocator { pub unsafe fn SetResourceURI(&self, uri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResourceURI)(windows_core::Interface::as_raw(self), uri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetResourceURI)(windows_core::Interface::as_raw(self), uri.param().abi()).ok() } pub unsafe fn ResourceURI(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -969,10 +969,10 @@ impl IWSManResourceLocator { } pub unsafe fn AddSelector(&self, resourceselname: P0, selvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSelector)(windows_core::Interface::as_raw(self), resourceselname.into_param().abi(), selvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSelector)(windows_core::Interface::as_raw(self), resourceselname.param().abi(), selvalue.param().abi()).ok() } pub unsafe fn ClearSelectors(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearSelectors)(windows_core::Interface::as_raw(self)).ok() @@ -983,9 +983,9 @@ impl IWSManResourceLocator { } pub unsafe fn SetFragmentPath(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFragmentPath)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFragmentPath)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn FragmentDialect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -993,23 +993,23 @@ impl IWSManResourceLocator { } pub unsafe fn SetFragmentDialect(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFragmentDialect)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFragmentDialect)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn AddOption(&self, optionname: P0, optionvalue: P1, mustcomply: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddOption)(windows_core::Interface::as_raw(self), optionname.into_param().abi(), optionvalue.into_param().abi(), mustcomply.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddOption)(windows_core::Interface::as_raw(self), optionname.param().abi(), optionvalue.param().abi(), mustcomply.param().abi()).ok() } pub unsafe fn SetMustUnderstandOptions(&self, mustunderstand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMustUnderstandOptions)(windows_core::Interface::as_raw(self), mustunderstand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMustUnderstandOptions)(windows_core::Interface::as_raw(self), mustunderstand.param().abi()).ok() } pub unsafe fn MustUnderstandOptions(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1056,51 +1056,51 @@ windows_core::imp::interface_hierarchy!(IWSManSession, windows_core::IUnknown, s impl IWSManSession { pub unsafe fn Get(&self, resourceuri: P0, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), resourceuri.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), resourceuri.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Put(&self, resourceuri: P0, resource: P1, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), resourceuri.into_param().abi(), resource.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), resourceuri.param().abi(), resource.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Create(&self, resourceuri: P0, resource: P1, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), resourceuri.into_param().abi(), resource.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), resourceuri.param().abi(), resource.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Delete(&self, resourceuri: P0, flags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), resourceuri.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), resourceuri.param().abi(), flags).ok() } pub unsafe fn Invoke2(&self, actionuri: P0, resourceuri: P1, parameters: P2, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Invoke2)(windows_core::Interface::as_raw(self), actionuri.into_param().abi(), resourceuri.into_param().abi(), parameters.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Invoke2)(windows_core::Interface::as_raw(self), actionuri.param().abi(), resourceuri.param().abi(), parameters.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Enumerate(&self, resourceuri: P0, filter: P1, dialect: P2, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Enumerate)(windows_core::Interface::as_raw(self), resourceuri.into_param().abi(), filter.into_param().abi(), dialect.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Enumerate)(windows_core::Interface::as_raw(self), resourceuri.param().abi(), filter.param().abi(), dialect.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Identify(&self, flags: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 26316ad3ea..0bfe7f0909 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn RmAddFilter(dwsessionhandle: u32, strmodulename: P0, pprocess: Option<*const RM_UNIQUE_PROCESS>, strserviceshortname: P1, filteraction: RM_FILTER_ACTION) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwsessionhandle, strmodulename.into_param().abi(), core::mem::transmute(pprocess.unwrap_or(std::ptr::null())), strserviceshortname.into_param().abi(), filteraction) + RmAddFilter(dwsessionhandle, strmodulename.param().abi(), core::mem::transmute(pprocess.unwrap_or(std::ptr::null())), strserviceshortname.param().abi(), filteraction) } #[inline] pub unsafe fn RmCancelCurrentTask(dwsessionhandle: u32) -> super::super::Foundation::WIN32_ERROR { @@ -30,10 +30,10 @@ pub unsafe fn RmGetList(dwsessionhandle: u32, pnprocinfoneeded: *mut u32, pnproc #[inline] pub unsafe fn RmJoinSession(psessionhandle: *mut u32, strsessionkey: P0) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rstrtmgr.dll" "system" fn RmJoinSession(psessionhandle : *mut u32, strsessionkey : windows_core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); - RmJoinSession(psessionhandle, strsessionkey.into_param().abi()) + RmJoinSession(psessionhandle, strsessionkey.param().abi()) } #[inline] 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 { @@ -51,11 +51,11 @@ pub unsafe fn RmRegisterResources(dwsessionhandle: u32, rgsfilenames: Option<&[w #[inline] pub unsafe fn RmRemoveFilter(dwsessionhandle: u32, strmodulename: P0, pprocess: Option<*const RM_UNIQUE_PROCESS>, strserviceshortname: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwsessionhandle, strmodulename.into_param().abi(), core::mem::transmute(pprocess.unwrap_or(std::ptr::null())), strserviceshortname.into_param().abi()) + RmRemoveFilter(dwsessionhandle, strmodulename.param().abi(), core::mem::transmute(pprocess.unwrap_or(std::ptr::null())), strserviceshortname.param().abi()) } #[inline] pub unsafe fn RmRestart(dwsessionhandle: u32, dwrestartflags: u32, fnstatus: RM_WRITE_STATUS_CALLBACK) -> super::super::Foundation::WIN32_ERROR { 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 42c7af955b..bd42cf9ab5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs @@ -11,26 +11,26 @@ pub unsafe fn DceErrorInqTextW(rpcstatus: RPC_STATUS, errortext: &mut [u16; 256] #[inline] pub unsafe fn IUnknown_AddRef_Proxy(this: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn IUnknown_AddRef_Proxy(this : * mut core::ffi::c_void) -> u32); - IUnknown_AddRef_Proxy(this.into_param().abi()) + IUnknown_AddRef_Proxy(this.param().abi()) } #[inline] pub unsafe fn IUnknown_QueryInterface_Proxy(this: P0, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppvobject).ok() + IUnknown_QueryInterface_Proxy(this.param().abi(), riid, ppvobject).ok() } #[inline] pub unsafe fn IUnknown_Release_Proxy(this: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn IUnknown_Release_Proxy(this : * mut core::ffi::c_void) -> u32); - IUnknown_Release_Proxy(this.into_param().abi()) + IUnknown_Release_Proxy(this.param().abi()) } #[inline] pub unsafe fn I_RpcAllocate(size: u32) -> *mut core::ffi::c_void { @@ -57,12 +57,12 @@ pub unsafe fn I_RpcBindingCopy(sourcebinding: *mut core::ffi::c_void, destinatio #[inline] pub unsafe fn I_RpcBindingCreateNP(servername: P0, servicename: P1, networkoptions: P2, binding: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn I_RpcBindingCreateNP(servername : windows_core::PCWSTR, servicename : windows_core::PCWSTR, networkoptions : windows_core::PCWSTR, binding : *mut *mut core::ffi::c_void) -> RPC_STATUS); - I_RpcBindingCreateNP(servername.into_param().abi(), servicename.into_param().abi(), networkoptions.into_param().abi(), binding) + I_RpcBindingCreateNP(servername.param().abi(), servicename.param().abi(), networkoptions.param().abi(), binding) } #[inline] pub unsafe fn I_RpcBindingHandleToAsyncHandle(binding: *mut core::ffi::c_void, asynchandle: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -212,18 +212,18 @@ pub unsafe fn I_RpcNegotiateTransferSyntax(message: *mut RPC_MESSAGE) -> RPC_STA #[inline] pub unsafe fn I_RpcNsBindingSetEntryNameA(binding: *const core::ffi::c_void, entrynamesyntax: u32, entryname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(binding, entrynamesyntax, entryname.into_param().abi()) + I_RpcNsBindingSetEntryNameA(binding, entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn I_RpcNsBindingSetEntryNameW(binding: *const core::ffi::c_void, entrynamesyntax: u32, entryname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(binding, entrynamesyntax, entryname.into_param().abi()) + I_RpcNsBindingSetEntryNameW(binding, entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn I_RpcNsGetBuffer(message: *mut RPC_MESSAGE) -> RPC_STATUS { @@ -343,11 +343,11 @@ pub unsafe fn I_RpcServerSetAddressChangeFn(paddresschangefn: *mut RPC_ADDRESS_C #[inline] pub unsafe fn I_RpcServerStartService(protseq: P0, endpoint: P1, ifspec: *const core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), endpoint.into_param().abi(), 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 { @@ -367,40 +367,40 @@ pub unsafe fn I_RpcServerUnsubscribeForDisconnectNotification(binding: Option<*c #[inline] pub unsafe fn I_RpcServerUseProtseq2A(networkaddress: P0, protseq: P1, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), protseq.into_param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + I_RpcServerUseProtseq2A(networkaddress.param().abi(), protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), protseq.into_param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + I_RpcServerUseProtseq2W(networkaddress.param().abi(), protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) } #[inline] pub unsafe fn I_RpcServerUseProtseqEp2A(networkaddress: P0, protseq: P1, maxcalls: u32, endpoint: P2, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), protseq.into_param().abi(), maxcalls, endpoint.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + I_RpcServerUseProtseqEp2A(networkaddress.param().abi(), protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) } #[inline] pub unsafe fn I_RpcServerUseProtseqEp2W(networkaddress: P0, protseq: P1, maxcalls: u32, endpoint: P2, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), protseq.into_param().abi(), maxcalls, endpoint.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + I_RpcServerUseProtseqEp2W(networkaddress.param().abi(), protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) } #[inline] pub unsafe fn I_RpcSessionStrictContextHandle() { @@ -543,11 +543,11 @@ pub unsafe fn Ndr64DcomAsyncClientCall(pproxyinfo: *mut MIDL_STUBLESS_PROXY_INFO #[inline] pub unsafe fn Ndr64DcomAsyncStubCall(pthis: P0, pchannel: P1, prpcmsg: *mut RPC_MESSAGE, pdwstubphase: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn Ndr64DcomAsyncStubCall(pthis : * mut core::ffi::c_void, pchannel : * mut core::ffi::c_void, prpcmsg : *mut RPC_MESSAGE, pdwstubphase : *mut u32) -> i32); - Ndr64DcomAsyncStubCall(pthis.into_param().abi(), pchannel.into_param().abi(), prpcmsg, pdwstubphase) + Ndr64DcomAsyncStubCall(pthis.param().abi(), pchannel.param().abi(), prpcmsg, pdwstubphase) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -882,10 +882,10 @@ pub unsafe fn NdrCorrelationPass(pstubmsg: *mut MIDL_STUB_MESSAGE) { #[inline] pub unsafe fn NdrCreateServerInterfaceFromStub(pstub: P0, pserverif: *mut RPC_SERVER_INTERFACE) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn NdrCreateServerInterfaceFromStub(pstub : * mut core::ffi::c_void, pserverif : *mut RPC_SERVER_INTERFACE) -> RPC_STATUS); - NdrCreateServerInterfaceFromStub(pstub.into_param().abi(), pserverif) + NdrCreateServerInterfaceFromStub(pstub.param().abi(), pserverif) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -897,11 +897,11 @@ pub unsafe fn NdrDcomAsyncClientCall(pstubdescriptor: *mut MIDL_STUB_DESC, pform #[inline] pub unsafe fn NdrDcomAsyncStubCall(pthis: P0, pchannel: P1, prpcmsg: *mut RPC_MESSAGE, pdwstubphase: *mut u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn NdrDcomAsyncStubCall(pthis : * mut core::ffi::c_void, pchannel : * mut core::ffi::c_void, prpcmsg : *mut RPC_MESSAGE, pdwstubphase : *mut u32) -> i32); - NdrDcomAsyncStubCall(pthis.into_param().abi(), pchannel.into_param().abi(), prpcmsg, pdwstubphase) + NdrDcomAsyncStubCall(pthis.param().abi(), pchannel.param().abi(), prpcmsg, pdwstubphase) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -1557,10 +1557,10 @@ pub unsafe fn RpcAsyncAbortCall(pasync: *mut RPC_ASYNC_STATE, exceptioncode: u32 #[inline] pub unsafe fn RpcAsyncCancelCall(pasync: *mut RPC_ASYNC_STATE, fabort: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcAsyncCancelCall(pasync : *mut RPC_ASYNC_STATE, fabort : super::super::Foundation:: BOOL) -> RPC_STATUS); - RpcAsyncCancelCall(pasync, fabort.into_param().abi()) + RpcAsyncCancelCall(pasync, fabort.param().abi()) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -1617,18 +1617,18 @@ pub unsafe fn RpcBindingFree(binding: *mut *mut core::ffi::c_void) -> RPC_STATUS #[inline] pub unsafe fn RpcBindingFromStringBindingA(stringbinding: P0, binding: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingFromStringBindingA(stringbinding : windows_core::PCSTR, binding : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcBindingFromStringBindingA(stringbinding.into_param().abi(), binding) + RpcBindingFromStringBindingA(stringbinding.param().abi(), binding) } #[inline] pub unsafe fn RpcBindingFromStringBindingW(stringbinding: P0, binding: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcBindingFromStringBindingW(stringbinding : windows_core::PCWSTR, binding : *mut *mut core::ffi::c_void) -> RPC_STATUS); - RpcBindingFromStringBindingW(stringbinding.into_param().abi(), binding) + RpcBindingFromStringBindingW(stringbinding.param().abi(), binding) } #[inline] pub unsafe fn RpcBindingInqAuthClientA(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>) -> RPC_STATUS { @@ -1700,36 +1700,36 @@ pub unsafe fn RpcBindingServerFromClient(clientbinding: Option<*const core::ffi: #[inline] pub unsafe fn RpcBindingSetAuthInfoA(binding: *const core::ffi::c_void, serverprincname: P0, authnlevel: u32, authnsvc: u32, authidentity: Option<*const core::ffi::c_void>, authzsvc: u32) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(binding, serverprincname.into_param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc) + RpcBindingSetAuthInfoA(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RpcBindingSetAuthInfoExA(binding: *const core::ffi::c_void, serverprincname: P0, authnlevel: u32, authnsvc: u32, authidentity: Option<*const core::ffi::c_void>, authzsvc: u32, securityqos: Option<*const RPC_SECURITY_QOS>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(binding, serverprincname.into_param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc, core::mem::transmute(securityqos.unwrap_or(std::ptr::null()))) + RpcBindingSetAuthInfoExA(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc, core::mem::transmute(securityqos.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn RpcBindingSetAuthInfoExW(binding: *const core::ffi::c_void, serverprincname: P0, authnlevel: u32, authnsvc: u32, authidentity: Option<*const core::ffi::c_void>, authzsvc: u32, securityqos: Option<*const RPC_SECURITY_QOS>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(binding, serverprincname.into_param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc, core::mem::transmute(securityqos.unwrap_or(std::ptr::null()))) + RpcBindingSetAuthInfoExW(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc, core::mem::transmute(securityqos.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcBindingSetAuthInfoW(binding: *const core::ffi::c_void, serverprincname: P0, authnlevel: u32, authnsvc: u32, authidentity: Option<*const core::ffi::c_void>, authzsvc: u32) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(binding, serverprincname.into_param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc) + RpcBindingSetAuthInfoW(binding, serverprincname.param().abi(), authnlevel, authnsvc, core::mem::transmute(authidentity.unwrap_or(std::ptr::null())), authzsvc) } #[inline] pub unsafe fn RpcBindingSetObject(binding: *const core::ffi::c_void, objectuuid: *const windows_core::GUID) -> RPC_STATUS { @@ -1786,34 +1786,34 @@ pub unsafe fn RpcCertGeneratePrincipalNameW(context: *const super::super::Securi #[inline] pub unsafe fn RpcEpRegisterA(ifspec: *const core::ffi::c_void, bindingvector: *const RPC_BINDING_VECTOR, uuidvector: Option<*const UUID_VECTOR>, annotation: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), annotation.into_param().abi()) + RpcEpRegisterA(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), 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: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), annotation.into_param().abi()) + RpcEpRegisterNoReplaceA(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), 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: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), annotation.into_param().abi()) + RpcEpRegisterNoReplaceW(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), 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: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), annotation.into_param().abi()) + RpcEpRegisterW(ifspec, bindingvector, core::mem::transmute(uuidvector.unwrap_or(std::ptr::null())), annotation.param().abi()) } #[inline] pub unsafe fn RpcEpResolveBinding(binding: *const core::ffi::c_void, ifspec: *const core::ffi::c_void) -> RPC_STATUS { @@ -1843,10 +1843,10 @@ pub unsafe fn RpcErrorEndEnumeration(enumhandle: *mut RPC_ERROR_ENUM_HANDLE) -> #[inline] pub unsafe fn RpcErrorGetNextRecord(enumhandle: *const RPC_ERROR_ENUM_HANDLE, copystrings: P0, errorinfo: *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(enumhandle, copystrings.into_param().abi(), errorinfo) + RpcErrorGetNextRecord(enumhandle, copystrings.param().abi(), errorinfo) } #[inline] pub unsafe fn RpcErrorGetNumberOfRecords(enumhandle: *const RPC_ERROR_ENUM_HANDLE, records: *mut i32) -> RPC_STATUS { @@ -1886,10 +1886,10 @@ pub unsafe fn RpcFreeAuthorizationContext(pauthzclientcontext: *mut *mut core::f #[inline] pub unsafe fn RpcGetAuthorizationContextForClient(clientbinding: Option<*const core::ffi::c_void>, impersonateonreturn: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), impersonateonreturn.into_param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2), reserved3, core::mem::transmute(reserved4.unwrap_or(std::ptr::null())), pauthzclientcontext) + RpcGetAuthorizationContextForClient(core::mem::transmute(clientbinding.unwrap_or(std::ptr::null())), impersonateonreturn.param().abi(), core::mem::transmute(reserved1.unwrap_or(std::ptr::null())), core::mem::transmute(pexpirationtime.unwrap_or(std::ptr::null())), core::mem::transmute(reserved2), reserved3, core::mem::transmute(reserved4.unwrap_or(std::ptr::null())), pauthzclientcontext) } #[inline] pub unsafe fn RpcIfIdVectorFree(ifidvector: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS { @@ -2029,66 +2029,66 @@ pub unsafe fn RpcNetworkInqProtseqsW(protseqvector: *mut *mut RPC_PROTSEQ_VECTOR #[inline] pub unsafe fn RpcNetworkIsProtseqValidA(protseq: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcNetworkIsProtseqValidA(protseq : windows_core::PCSTR) -> RPC_STATUS); - RpcNetworkIsProtseqValidA(protseq.into_param().abi()) + RpcNetworkIsProtseqValidA(protseq.param().abi()) } #[inline] pub unsafe fn RpcNetworkIsProtseqValidW(protseq: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcNetworkIsProtseqValidW(protseq : windows_core::PCWSTR) -> RPC_STATUS); - RpcNetworkIsProtseqValidW(protseq.into_param().abi()) + RpcNetworkIsProtseqValidW(protseq.param().abi()) } #[inline] pub unsafe fn RpcNsBindingExportA(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, bindingvec: Option<*const RPC_BINDING_VECTOR>, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(bindingvec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) + RpcNsBindingExportA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(bindingvec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsBindingExportPnPA(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) + RpcNsBindingExportPnPA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsBindingExportPnPW(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) + RpcNsBindingExportPnPW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsBindingExportW(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, bindingvec: Option<*const RPC_BINDING_VECTOR>, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(bindingvec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) + RpcNsBindingExportW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(bindingvec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsBindingImportBeginA(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, importcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), importcontext) + RpcNsBindingImportBeginA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), importcontext) } #[inline] pub unsafe fn RpcNsBindingImportBeginW(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, importcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), importcontext) + RpcNsBindingImportBeginW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), importcontext) } #[inline] pub unsafe fn RpcNsBindingImportDone(importcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2113,18 +2113,18 @@ pub unsafe fn RpcNsBindingInqEntryNameW(binding: *const core::ffi::c_void, entry #[inline] pub unsafe fn RpcNsBindingLookupBeginA(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, bindingmaxcount: u32, lookupcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), bindingmaxcount, lookupcontext) + RpcNsBindingLookupBeginA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), bindingmaxcount, lookupcontext) } #[inline] pub unsafe fn RpcNsBindingLookupBeginW(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objuuid: Option<*const windows_core::GUID>, bindingmaxcount: u32, lookupcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), bindingmaxcount, lookupcontext) + RpcNsBindingLookupBeginW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objuuid.unwrap_or(std::ptr::null())), bindingmaxcount, lookupcontext) } #[inline] pub unsafe fn RpcNsBindingLookupDone(lookupcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2144,66 +2144,66 @@ pub unsafe fn RpcNsBindingSelect(bindingvec: *mut RPC_BINDING_VECTOR, binding: * #[inline] pub unsafe fn RpcNsBindingUnexportA(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) + RpcNsBindingUnexportA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsBindingUnexportPnPA(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) + RpcNsBindingUnexportPnPA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsBindingUnexportPnPW(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objectvector: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) + RpcNsBindingUnexportPnPW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectvector.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsBindingUnexportW(entrynamesyntax: u32, entryname: P0, ifspec: Option<*const core::ffi::c_void>, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) + RpcNsBindingUnexportW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifspec.unwrap_or(std::ptr::null())), core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsEntryExpandNameA(entrynamesyntax: u32, entryname: P0, expandedname: *mut windows_core::PSTR) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), expandedname) + RpcNsEntryExpandNameA(entrynamesyntax, entryname.param().abi(), expandedname) } #[inline] pub unsafe fn RpcNsEntryExpandNameW(entrynamesyntax: u32, entryname: P0, expandedname: *mut windows_core::PWSTR) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), expandedname) + RpcNsEntryExpandNameW(entrynamesyntax, entryname.param().abi(), expandedname) } #[inline] pub unsafe fn RpcNsEntryObjectInqBeginA(entrynamesyntax: u32, entryname: P0, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), inquirycontext) + RpcNsEntryObjectInqBeginA(entrynamesyntax, entryname.param().abi(), inquirycontext) } #[inline] pub unsafe fn RpcNsEntryObjectInqBeginW(entrynamesyntax: u32, entryname: P0, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), inquirycontext) + RpcNsEntryObjectInqBeginW(entrynamesyntax, entryname.param().abi(), inquirycontext) } #[inline] pub unsafe fn RpcNsEntryObjectInqDone(inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2218,52 +2218,52 @@ pub unsafe fn RpcNsEntryObjectInqNext(inquirycontext: *mut core::ffi::c_void, ob #[inline] pub unsafe fn RpcNsGroupDeleteA(groupnamesyntax: GROUP_NAME_SYNTAX, groupname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupDeleteA(groupnamesyntax : GROUP_NAME_SYNTAX, groupname : windows_core::PCSTR) -> RPC_STATUS); - RpcNsGroupDeleteA(groupnamesyntax, groupname.into_param().abi()) + RpcNsGroupDeleteA(groupnamesyntax, groupname.param().abi()) } #[inline] pub unsafe fn RpcNsGroupDeleteW(groupnamesyntax: GROUP_NAME_SYNTAX, groupname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsGroupDeleteW(groupnamesyntax : GROUP_NAME_SYNTAX, groupname : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsGroupDeleteW(groupnamesyntax, groupname.into_param().abi()) + RpcNsGroupDeleteW(groupnamesyntax, groupname.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrAddA(groupnamesyntax: u32, groupname: P0, membernamesyntax: u32, membername: P1) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(groupnamesyntax, groupname.into_param().abi(), membernamesyntax, membername.into_param().abi()) + RpcNsGroupMbrAddA(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrAddW(groupnamesyntax: u32, groupname: P0, membernamesyntax: u32, membername: P1) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(groupnamesyntax, groupname.into_param().abi(), membernamesyntax, membername.into_param().abi()) + RpcNsGroupMbrAddW(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrInqBeginA(groupnamesyntax: u32, groupname: P0, membernamesyntax: u32, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(groupnamesyntax, groupname.into_param().abi(), membernamesyntax, inquirycontext) + RpcNsGroupMbrInqBeginA(groupnamesyntax, groupname.param().abi(), membernamesyntax, inquirycontext) } #[inline] pub unsafe fn RpcNsGroupMbrInqBeginW(groupnamesyntax: u32, groupname: P0, membernamesyntax: u32, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(groupnamesyntax, groupname.into_param().abi(), membernamesyntax, inquirycontext) + RpcNsGroupMbrInqBeginW(groupnamesyntax, groupname.param().abi(), membernamesyntax, inquirycontext) } #[inline] pub unsafe fn RpcNsGroupMbrInqDone(inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2283,84 +2283,84 @@ pub unsafe fn RpcNsGroupMbrInqNextW(inquirycontext: *mut core::ffi::c_void, memb #[inline] pub unsafe fn RpcNsGroupMbrRemoveA(groupnamesyntax: u32, groupname: P0, membernamesyntax: u32, membername: P1) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(groupnamesyntax, groupname.into_param().abi(), membernamesyntax, membername.into_param().abi()) + RpcNsGroupMbrRemoveA(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsGroupMbrRemoveW(groupnamesyntax: u32, groupname: P0, membernamesyntax: u32, membername: P1) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(groupnamesyntax, groupname.into_param().abi(), membernamesyntax, membername.into_param().abi()) + RpcNsGroupMbrRemoveW(groupnamesyntax, groupname.param().abi(), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtBindingUnexportA(entrynamesyntax: u32, entryname: P0, ifid: Option<*const RPC_IF_ID>, versoption: u32, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) + RpcNsMgmtBindingUnexportA(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsMgmtBindingUnexportW(entrynamesyntax: u32, entryname: P0, ifid: Option<*const RPC_IF_ID>, versoption: u32, objectuuidvec: Option<*const UUID_VECTOR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) + RpcNsMgmtBindingUnexportW(entrynamesyntax, entryname.param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, core::mem::transmute(objectuuidvec.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcNsMgmtEntryCreateA(entrynamesyntax: u32, entryname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryCreateA(entrynamesyntax : u32, entryname : windows_core::PCSTR) -> RPC_STATUS); - RpcNsMgmtEntryCreateA(entrynamesyntax, entryname.into_param().abi()) + RpcNsMgmtEntryCreateA(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryCreateW(entrynamesyntax: u32, entryname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryCreateW(entrynamesyntax : u32, entryname : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsMgmtEntryCreateW(entrynamesyntax, entryname.into_param().abi()) + RpcNsMgmtEntryCreateW(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryDeleteA(entrynamesyntax: u32, entryname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryDeleteA(entrynamesyntax : u32, entryname : windows_core::PCSTR) -> RPC_STATUS); - RpcNsMgmtEntryDeleteA(entrynamesyntax, entryname.into_param().abi()) + RpcNsMgmtEntryDeleteA(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryDeleteW(entrynamesyntax: u32, entryname: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsMgmtEntryDeleteW(entrynamesyntax : u32, entryname : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsMgmtEntryDeleteW(entrynamesyntax, entryname.into_param().abi()) + RpcNsMgmtEntryDeleteW(entrynamesyntax, entryname.param().abi()) } #[inline] pub unsafe fn RpcNsMgmtEntryInqIfIdsA(entrynamesyntax: u32, entryname: P0, ifidvec: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), ifidvec) + RpcNsMgmtEntryInqIfIdsA(entrynamesyntax, entryname.param().abi(), ifidvec) } #[inline] pub unsafe fn RpcNsMgmtEntryInqIfIdsW(entrynamesyntax: u32, entryname: P0, ifidvec: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: 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(entrynamesyntax, entryname.into_param().abi(), ifidvec) + RpcNsMgmtEntryInqIfIdsW(entrynamesyntax, entryname.param().abi(), ifidvec) } #[inline] pub unsafe fn RpcNsMgmtHandleSetExpAge(nshandle: *mut core::ffi::c_void, expirationage: u32) -> RPC_STATUS { @@ -2380,56 +2380,56 @@ pub unsafe fn RpcNsMgmtSetExpAge(expirationage: u32) -> RPC_STATUS { #[inline] pub unsafe fn RpcNsProfileDeleteA(profilenamesyntax: u32, profilename: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileDeleteA(profilenamesyntax : u32, profilename : windows_core::PCSTR) -> RPC_STATUS); - RpcNsProfileDeleteA(profilenamesyntax, profilename.into_param().abi()) + RpcNsProfileDeleteA(profilenamesyntax, profilename.param().abi()) } #[inline] pub unsafe fn RpcNsProfileDeleteW(profilenamesyntax: u32, profilename: P0) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcns4.dll" "system" fn RpcNsProfileDeleteW(profilenamesyntax : u32, profilename : windows_core::PCWSTR) -> RPC_STATUS); - RpcNsProfileDeleteW(profilenamesyntax, profilename.into_param().abi()) + RpcNsProfileDeleteW(profilenamesyntax, profilename.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltAddA(profilenamesyntax: u32, profilename: P0, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P1, priority: u32, annotation: P2) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(profilenamesyntax, profilename.into_param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.into_param().abi(), priority, annotation.into_param().abi()) + RpcNsProfileEltAddA(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.param().abi(), priority, annotation.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltAddW(profilenamesyntax: u32, profilename: P0, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P1, priority: u32, annotation: P2) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(profilenamesyntax, profilename.into_param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.into_param().abi(), priority, annotation.into_param().abi()) + RpcNsProfileEltAddW(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.param().abi(), priority, annotation.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltInqBeginA(profilenamesyntax: u32, profilename: P0, inquirytype: u32, ifid: Option<*const RPC_IF_ID>, versoption: u32, membernamesyntax: u32, membername: P1, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(profilenamesyntax, profilename.into_param().abi(), inquirytype, core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, membernamesyntax, membername.into_param().abi(), inquirycontext) + RpcNsProfileEltInqBeginA(profilenamesyntax, profilename.param().abi(), inquirytype, core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, membernamesyntax, membername.param().abi(), inquirycontext) } #[inline] pub unsafe fn RpcNsProfileEltInqBeginW(profilenamesyntax: u32, profilename: P0, inquirytype: u32, ifid: Option<*const RPC_IF_ID>, versoption: u32, membernamesyntax: u32, membername: P1, inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(profilenamesyntax, profilename.into_param().abi(), inquirytype, core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, membernamesyntax, membername.into_param().abi(), inquirycontext) + RpcNsProfileEltInqBeginW(profilenamesyntax, profilename.param().abi(), inquirytype, core::mem::transmute(ifid.unwrap_or(std::ptr::null())), versoption, membernamesyntax, membername.param().abi(), inquirycontext) } #[inline] pub unsafe fn RpcNsProfileEltInqDone(inquirycontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { @@ -2449,20 +2449,20 @@ pub unsafe fn RpcNsProfileEltInqNextW(inquirycontext: *const core::ffi::c_void, #[inline] pub unsafe fn RpcNsProfileEltRemoveA(profilenamesyntax: u32, profilename: P0, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P1) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(profilenamesyntax, profilename.into_param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.into_param().abi()) + RpcNsProfileEltRemoveA(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcNsProfileEltRemoveW(profilenamesyntax: u32, profilename: P0, ifid: Option<*const RPC_IF_ID>, membernamesyntax: u32, membername: P1) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(profilenamesyntax, profilename.into_param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.into_param().abi()) + RpcNsProfileEltRemoveW(profilenamesyntax, profilename.param().abi(), core::mem::transmute(ifid.unwrap_or(std::ptr::null())), membernamesyntax, membername.param().abi()) } #[inline] pub unsafe fn RpcObjectInqType(objuuid: *const windows_core::GUID, typeuuid: Option<*mut windows_core::GUID>) -> RPC_STATUS { @@ -2592,18 +2592,18 @@ pub unsafe fn RpcServerListen(minimumcallthreads: u32, maxcalls: u32, dontwait: #[inline] pub unsafe fn RpcServerRegisterAuthInfoA(serverprincname: P0, authnsvc: u32, getkeyfn: RPC_AUTH_KEY_RETRIEVAL_FN, arg: Option<*const core::ffi::c_void>) -> RPC_STATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), authnsvc, getkeyfn, core::mem::transmute(arg.unwrap_or(std::ptr::null()))) + RpcServerRegisterAuthInfoA(serverprincname.param().abi(), authnsvc, getkeyfn, core::mem::transmute(arg.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcServerRegisterAuthInfoW(serverprincname: P0, authnsvc: u32, getkeyfn: RPC_AUTH_KEY_RETRIEVAL_FN, arg: Option<*const core::ffi::c_void>) -> RPC_STATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), authnsvc, getkeyfn, core::mem::transmute(arg.unwrap_or(std::ptr::null()))) + RpcServerRegisterAuthInfoW(serverprincname.param().abi(), authnsvc, getkeyfn, core::mem::transmute(arg.unwrap_or(std::ptr::null()))) } #[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 { @@ -2674,102 +2674,102 @@ pub unsafe fn RpcServerUseAllProtseqsIfEx(maxcalls: u32, ifspec: *const core::ff #[inline] pub unsafe fn RpcServerUseProtseqA(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) + RpcServerUseProtseqA(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcServerUseProtseqEpA(protseq: P0, maxcalls: u32, endpoint: P1, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), maxcalls, endpoint.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) + RpcServerUseProtseqEpA(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcServerUseProtseqEpExA(protseq: P0, maxcalls: u32, endpoint: P1, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), maxcalls, endpoint.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + RpcServerUseProtseqEpExA(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqEpExW(protseq: P0, maxcalls: u32, endpoint: P1, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), maxcalls, endpoint.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + RpcServerUseProtseqEpExW(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqEpW(protseq: P0, maxcalls: u32, endpoint: P1, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), maxcalls, endpoint.into_param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) + RpcServerUseProtseqEpW(protseq.param().abi(), maxcalls, endpoint.param().abi(), core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcServerUseProtseqExA(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + RpcServerUseProtseqExA(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) } #[inline] pub unsafe fn RpcServerUseProtseqExW(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>, policy: *const RPC_POLICY) -> RPC_STATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + RpcServerUseProtseqExW(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) + RpcServerUseProtseqIfA(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + RpcServerUseProtseqIfExA(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), policy) + RpcServerUseProtseqIfExW(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null())), 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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) + RpcServerUseProtseqIfW(protseq.param().abi(), maxcalls, ifspec, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcServerUseProtseqW(protseq: P0, maxcalls: u32, securitydescriptor: Option<*const core::ffi::c_void>) -> RPC_STATUS where - P0: windows_core::IntoParam, + 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.into_param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) + RpcServerUseProtseqW(protseq.param().abi(), maxcalls, core::mem::transmute(securitydescriptor.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn RpcServerYield() { @@ -2894,42 +2894,42 @@ pub unsafe fn RpcSsSwapClientAllocFree(clientalloc: RPC_CLIENT_ALLOC, clientfree #[inline] pub unsafe fn RpcStringBindingComposeA(objuuid: P0, protseq: P1, networkaddr: P2, endpoint: P3, options: P4, stringbinding: Option<*mut windows_core::PSTR>) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcStringBindingComposeA(objuuid : windows_core::PCSTR, protseq : windows_core::PCSTR, networkaddr : windows_core::PCSTR, endpoint : windows_core::PCSTR, options : windows_core::PCSTR, stringbinding : *mut windows_core::PSTR) -> RPC_STATUS); - RpcStringBindingComposeA(objuuid.into_param().abi(), protseq.into_param().abi(), networkaddr.into_param().abi(), endpoint.into_param().abi(), options.into_param().abi(), core::mem::transmute(stringbinding.unwrap_or(std::ptr::null_mut()))) + RpcStringBindingComposeA(objuuid.param().abi(), protseq.param().abi(), networkaddr.param().abi(), endpoint.param().abi(), options.param().abi(), core::mem::transmute(stringbinding.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RpcStringBindingComposeW(objuuid: P0, protseq: P1, networkaddr: P2, endpoint: P3, options: P4, stringbinding: Option<*mut windows_core::PWSTR>) -> RPC_STATUS where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcStringBindingComposeW(objuuid : windows_core::PCWSTR, protseq : windows_core::PCWSTR, networkaddr : windows_core::PCWSTR, endpoint : windows_core::PCWSTR, options : windows_core::PCWSTR, stringbinding : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcStringBindingComposeW(objuuid.into_param().abi(), protseq.into_param().abi(), networkaddr.into_param().abi(), endpoint.into_param().abi(), options.into_param().abi(), core::mem::transmute(stringbinding.unwrap_or(std::ptr::null_mut()))) + RpcStringBindingComposeW(objuuid.param().abi(), protseq.param().abi(), networkaddr.param().abi(), endpoint.param().abi(), options.param().abi(), core::mem::transmute(stringbinding.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RpcStringBindingParseA(stringbinding: P0, objuuid: Option<*mut windows_core::PSTR>, protseq: Option<*mut windows_core::PSTR>, networkaddr: Option<*mut windows_core::PSTR>, endpoint: Option<*mut windows_core::PSTR>, networkoptions: Option<*mut windows_core::PSTR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcStringBindingParseA(stringbinding : windows_core::PCSTR, objuuid : *mut windows_core::PSTR, protseq : *mut windows_core::PSTR, networkaddr : *mut windows_core::PSTR, endpoint : *mut windows_core::PSTR, networkoptions : *mut windows_core::PSTR) -> RPC_STATUS); - RpcStringBindingParseA(stringbinding.into_param().abi(), core::mem::transmute(objuuid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(protseq.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkaddr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(endpoint.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkoptions.unwrap_or(std::ptr::null_mut()))) + RpcStringBindingParseA(stringbinding.param().abi(), core::mem::transmute(objuuid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(protseq.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkaddr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(endpoint.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkoptions.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RpcStringBindingParseW(stringbinding: P0, objuuid: Option<*mut windows_core::PWSTR>, protseq: Option<*mut windows_core::PWSTR>, networkaddr: Option<*mut windows_core::PWSTR>, endpoint: Option<*mut windows_core::PWSTR>, networkoptions: Option<*mut windows_core::PWSTR>) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn RpcStringBindingParseW(stringbinding : windows_core::PCWSTR, objuuid : *mut windows_core::PWSTR, protseq : *mut windows_core::PWSTR, networkaddr : *mut windows_core::PWSTR, endpoint : *mut windows_core::PWSTR, networkoptions : *mut windows_core::PWSTR) -> RPC_STATUS); - RpcStringBindingParseW(stringbinding.into_param().abi(), core::mem::transmute(objuuid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(protseq.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkaddr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(endpoint.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkoptions.unwrap_or(std::ptr::null_mut()))) + RpcStringBindingParseW(stringbinding.param().abi(), core::mem::transmute(objuuid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(protseq.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkaddr.unwrap_or(std::ptr::null_mut())), core::mem::transmute(endpoint.unwrap_or(std::ptr::null_mut())), core::mem::transmute(networkoptions.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RpcStringFreeA(string: *mut windows_core::PSTR) -> RPC_STATUS { @@ -2979,18 +2979,18 @@ pub unsafe fn UuidEqual(uuid1: *const windows_core::GUID, uuid2: *const windows_ #[inline] pub unsafe fn UuidFromStringA(stringuuid: P0, uuid: *mut windows_core::GUID) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn UuidFromStringA(stringuuid : windows_core::PCSTR, uuid : *mut windows_core::GUID) -> RPC_STATUS); - UuidFromStringA(stringuuid.into_param().abi(), uuid) + UuidFromStringA(stringuuid.param().abi(), uuid) } #[inline] pub unsafe fn UuidFromStringW(stringuuid: P0, uuid: *mut windows_core::GUID) -> RPC_STATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rpcrt4.dll" "system" fn UuidFromStringW(stringuuid : windows_core::PCWSTR, uuid : *mut windows_core::GUID) -> RPC_STATUS); - UuidFromStringW(stringuuid.into_param().abi(), uuid) + UuidFromStringW(stringuuid.param().abi(), uuid) } #[inline] pub unsafe fn UuidHash(uuid: *const windows_core::GUID, status: *mut RPC_STATUS) -> u16 { 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 b9f3d3f689..3a457a094b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -109,10 +109,10 @@ pub unsafe fn SQLCloseCursor(statementhandle: *mut core::ffi::c_void) -> i16 { #[inline] pub unsafe fn SQLCloseEnumServers(henumhandle: P0) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn SQLCloseEnumServers(henumhandle : super::super::Foundation:: HANDLE) -> i16); - SQLCloseEnumServers(henumhandle.into_param().abi()) + SQLCloseEnumServers(henumhandle.param().abi()) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] @@ -888,10 +888,10 @@ pub unsafe fn SQLGetInfoW(hdbc: *mut core::ffi::c_void, finfotype: u16, rgbinfov #[inline] pub unsafe fn SQLGetNextEnumeration(henumhandle: P0, prgenumdata: *mut u8, pienumlength: *mut i32) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn SQLGetNextEnumeration(henumhandle : super::super::Foundation:: HANDLE, prgenumdata : *mut u8, pienumlength : *mut i32) -> i16); - SQLGetNextEnumeration(henumhandle.into_param().abi(), prgenumdata, pienumlength) + SQLGetNextEnumeration(henumhandle.param().abi(), prgenumdata, 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 { @@ -931,27 +931,27 @@ pub unsafe fn SQLGetTypeInfoW(statementhandle: *mut core::ffi::c_void, datatype: #[inline] pub unsafe fn SQLInitEnumServers(pwchservername: P0, pwchinstancename: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn SQLInitEnumServers(pwchservername : windows_core::PCWSTR, pwchinstancename : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - SQLInitEnumServers(pwchservername.into_param().abi(), pwchinstancename.into_param().abi()) + SQLInitEnumServers(pwchservername.param().abi(), pwchinstancename.param().abi()) } #[inline] pub unsafe fn SQLLinkedCatalogsA(param0: *mut core::ffi::c_void, param1: P0, param2: i16) -> i16 where - P0: windows_core::IntoParam, + P0: 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(param0, param1.into_param().abi(), param2) + SQLLinkedCatalogsA(param0, param1.param().abi(), param2) } #[inline] pub unsafe fn SQLLinkedCatalogsW(param0: *mut core::ffi::c_void, param1: P0, param2: i16) -> i16 where - P0: windows_core::IntoParam, + P0: 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(param0, param1.into_param().abi(), param2) + SQLLinkedCatalogsW(param0, param1.param().abi(), param2) } #[inline] pub unsafe fn SQLLinkedServers(param0: *mut core::ffi::c_void) -> i16 { @@ -1553,22 +1553,22 @@ pub unsafe fn bcp_getcolfmt(param0: *mut core::ffi::c_void, param1: i32, param2: #[inline] pub unsafe fn bcp_initA(param0: *mut core::ffi::c_void, param1: P0, param2: P1, param3: P2, param4: i32) -> i16 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(param0, param1.into_param().abi(), param2.into_param().abi(), param3.into_param().abi(), param4) + bcp_initA(param0, param1.param().abi(), param2.param().abi(), param3.param().abi(), param4) } #[inline] pub unsafe fn bcp_initW(param0: *mut core::ffi::c_void, param1: P0, param2: P1, param3: P2, param4: i32) -> i16 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(param0, param1.into_param().abi(), param2.into_param().abi(), param3.into_param().abi(), param4) + bcp_initW(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 { @@ -1578,18 +1578,18 @@ pub unsafe fn bcp_moretext(param0: *mut core::ffi::c_void, param1: i32, param2: #[inline] pub unsafe fn bcp_readfmtA(param0: *mut core::ffi::c_void, param1: P0) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn bcp_readfmtA(param0 : *mut core::ffi::c_void, param1 : windows_core::PCSTR) -> i16); - bcp_readfmtA(param0, param1.into_param().abi()) + bcp_readfmtA(param0, param1.param().abi()) } #[inline] pub unsafe fn bcp_readfmtW(param0: *mut core::ffi::c_void, param1: P0) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn bcp_readfmtW(param0 : *mut core::ffi::c_void, param1 : windows_core::PCWSTR) -> i16); - bcp_readfmtW(param0, param1.into_param().abi()) + bcp_readfmtW(param0, param1.param().abi()) } #[inline] pub unsafe fn bcp_sendrow(param0: *mut core::ffi::c_void) -> i16 { @@ -1604,18 +1604,18 @@ pub unsafe fn bcp_setcolfmt(param0: *mut core::ffi::c_void, param1: i32, param2: #[inline] pub unsafe fn bcp_writefmtA(param0: *mut core::ffi::c_void, param1: P0) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn bcp_writefmtA(param0 : *mut core::ffi::c_void, param1 : windows_core::PCSTR) -> i16); - bcp_writefmtA(param0, param1.into_param().abi()) + bcp_writefmtA(param0, param1.param().abi()) } #[inline] pub unsafe fn bcp_writefmtW(param0: *mut core::ffi::c_void, param1: P0) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("odbcbcp.dll" "system" fn bcp_writefmtW(param0 : *mut core::ffi::c_void, param1 : windows_core::PCWSTR) -> i16); - bcp_writefmtW(param0, param1.into_param().abi()) + bcp_writefmtW(param0, param1.param().abi()) } #[inline] pub unsafe fn dbprtypeA(param0: i32) -> windows_core::PSTR { @@ -1644,15 +1644,15 @@ impl DataSource { } pub unsafe fn addDataSourceListener(&self, pdsl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addDataSourceListener)(windows_core::Interface::as_raw(self), pdsl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addDataSourceListener)(windows_core::Interface::as_raw(self), pdsl.param().abi()).ok() } pub unsafe fn removeDataSourceListener(&self, pdsl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeDataSourceListener)(windows_core::Interface::as_raw(self), pdsl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeDataSourceListener)(windows_core::Interface::as_raw(self), pdsl.param().abi()).ok() } } #[repr(C)] @@ -1700,9 +1700,9 @@ windows_core::imp::interface_hierarchy!(IAccessor, windows_core::IUnknown); impl IAccessor { pub unsafe fn AddRefAccessor(&self, haccessor: P0, pcrefcount: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRefAccessor)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), core::mem::transmute(pcrefcount.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).AddRefAccessor)(windows_core::Interface::as_raw(self), haccessor.param().abi(), core::mem::transmute(pcrefcount.unwrap_or(std::ptr::null_mut()))).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<()> { @@ -1711,15 +1711,15 @@ impl IAccessor { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBindings(&self, haccessor: P0, pdwaccessorflags: *mut u32, pcbindings: Option<*mut usize>, prgbindings: *mut *mut DBBINDING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetBindings)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), pdwaccessorflags, core::mem::transmute(pcbindings.unwrap_or(std::ptr::null_mut())), prgbindings).ok() + (windows_core::Interface::vtable(self).GetBindings)(windows_core::Interface::as_raw(self), haccessor.param().abi(), pdwaccessorflags, core::mem::transmute(pcbindings.unwrap_or(std::ptr::null_mut())), prgbindings).ok() } pub unsafe fn ReleaseAccessor(&self, haccessor: P0, pcrefcount: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseAccessor)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), core::mem::transmute(pcrefcount.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).ReleaseAccessor)(windows_core::Interface::as_raw(self), haccessor.param().abi(), core::mem::transmute(pcrefcount.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -1782,11 +1782,11 @@ impl IBindResource { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Bind(&self, punkouter: P0, pwszurl: P1, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: P2, pimplsession: Option<*mut DBIMPLICITSESSION>, pdwbindstatus: Option<*mut u32>, ppunk: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Bind)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), pwszurl.into_param().abi(), dwbindurlflags, rguid, riid, pauthenticate.into_param().abi(), core::mem::transmute(pimplsession.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwbindstatus.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut())), core::mem::transmute(pdwbindstatus.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppunk)).ok() } } #[repr(C)] @@ -1819,9 +1819,9 @@ impl IColumnMapper { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetPropInfoFromName(&self, wcspropname: P0, pppropid: *mut *mut super::super::Storage::IndexServer::DBID, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropInfoFromName)(windows_core::Interface::as_raw(self), wcspropname.into_param().abi(), pppropid, pproptype, puiwidth).ok() + (windows_core::Interface::vtable(self).GetPropInfoFromName)(windows_core::Interface::as_raw(self), wcspropname.param().abi(), pppropid, pproptype, puiwidth).ok() } #[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<()> { @@ -1857,11 +1857,11 @@ windows_core::imp::interface_hierarchy!(IColumnMapperCreator, windows_core::IUnk impl IColumnMapperCreator { pub unsafe fn GetColumnMapper(&self, wcsmachinename: P0, wcscatalogname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetColumnMapper)(windows_core::Interface::as_raw(self), wcsmachinename.into_param().abi(), wcscatalogname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetColumnMapper)(windows_core::Interface::as_raw(self), wcsmachinename.param().abi(), wcscatalogname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1927,9 +1927,9 @@ impl IColumnsRowset { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetColumnsRowset(&self, punkouter: P0, rgoptcolumns: &[super::super::Storage::IndexServer::DBID], riid: *const windows_core::GUID, rgpropertysets: Option<&mut [DBPROPSET]>, ppcolrowset: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetColumnsRowset)(windows_core::Interface::as_raw(self), punkouter.into_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() + (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)] @@ -1952,9 +1952,9 @@ impl ICommand { } pub unsafe fn Execute(&self, punkouter: P0, riid: *const windows_core::GUID, pparams: Option<*mut DBPARAMS>, pcrowsaffected: Option<*mut isize>, pprowset: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), riid, core::mem::transmute(pparams.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcrowsaffected.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, core::mem::transmute(pparams.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcrowsaffected.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetDBSession(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1973,39 +1973,39 @@ windows_core::imp::interface_hierarchy!(ICommandCost, windows_core::IUnknown); impl ICommandCost { pub unsafe fn GetAccumulatedCost(&self, pwszrowsetname: P0, pccostlimits: *mut u32, prgcostlimits: *mut *mut DBCOST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAccumulatedCost)(windows_core::Interface::as_raw(self), pwszrowsetname.into_param().abi(), pccostlimits, prgcostlimits).ok() + (windows_core::Interface::vtable(self).GetAccumulatedCost)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), pccostlimits, prgcostlimits).ok() } pub unsafe fn GetCostEstimate(&self, pwszrowsetname: P0, pccostestimates: *mut u32, prgcostestimates: *mut DBCOST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCostEstimate)(windows_core::Interface::as_raw(self), pwszrowsetname.into_param().abi(), pccostestimates, prgcostestimates).ok() + (windows_core::Interface::vtable(self).GetCostEstimate)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), pccostestimates, prgcostestimates).ok() } pub unsafe fn GetCostGoals(&self, pwszrowsetname: P0, pccostgoals: *mut u32, prgcostgoals: *mut DBCOST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCostGoals)(windows_core::Interface::as_raw(self), pwszrowsetname.into_param().abi(), pccostgoals, prgcostgoals).ok() + (windows_core::Interface::vtable(self).GetCostGoals)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), pccostgoals, prgcostgoals).ok() } pub unsafe fn GetCostLimits(&self, pwszrowsetname: P0, pccostlimits: *mut u32, prgcostlimits: *mut DBCOST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCostLimits)(windows_core::Interface::as_raw(self), pwszrowsetname.into_param().abi(), pccostlimits, prgcostlimits).ok() + (windows_core::Interface::vtable(self).GetCostLimits)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), pccostlimits, prgcostlimits).ok() } pub unsafe fn SetCostGoals(&self, pwszrowsetname: P0, rgcostgoals: &[DBCOST]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCostGoals)(windows_core::Interface::as_raw(self), pwszrowsetname.into_param().abi(), rgcostgoals.len().try_into().unwrap(), core::mem::transmute(rgcostgoals.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetCostGoals)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), rgcostgoals.len().try_into().unwrap(), core::mem::transmute(rgcostgoals.as_ptr())).ok() } pub unsafe fn SetCostLimits(&self, pwszrowsetname: P0, ccostlimits: u32, prgcostlimits: *const DBCOST, dwexecutionflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCostLimits)(windows_core::Interface::as_raw(self), pwszrowsetname.into_param().abi(), ccostlimits, prgcostlimits, dwexecutionflags).ok() + (windows_core::Interface::vtable(self).SetCostLimits)(windows_core::Interface::as_raw(self), pwszrowsetname.param().abi(), ccostlimits, prgcostlimits, dwexecutionflags).ok() } } #[repr(C)] @@ -2107,9 +2107,9 @@ impl ICommandStream { } pub unsafe fn SetCommandStream(&self, riid: *const windows_core::GUID, rguiddialect: *const windows_core::GUID, pcommandstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommandStream)(windows_core::Interface::as_raw(self), riid, rguiddialect, pcommandstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommandStream)(windows_core::Interface::as_raw(self), riid, rguiddialect, pcommandstream.param().abi()).ok() } } #[repr(C)] @@ -2126,9 +2126,9 @@ impl ICommandText { } pub unsafe fn Execute(&self, punkouter: P0, riid: *const windows_core::GUID, pparams: Option<*mut DBPARAMS>, pcrowsaffected: Option<*mut isize>, pprowset: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Execute)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), riid, core::mem::transmute(pparams.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcrowsaffected.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.Execute)(windows_core::Interface::as_raw(self), punkouter.param().abi(), riid, core::mem::transmute(pparams.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcrowsaffected.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetDBSession(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2139,9 +2139,9 @@ impl ICommandText { } pub unsafe fn SetCommandText(&self, rguiddialect: *const windows_core::GUID, pwszcommand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommandText)(windows_core::Interface::as_raw(self), rguiddialect, pwszcommand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommandText)(windows_core::Interface::as_raw(self), rguiddialect, pwszcommand.param().abi()).ok() } } #[repr(C)] @@ -2208,17 +2208,17 @@ impl ICondition { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Load(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Load)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Save(&self, pstm: P0, fcleardirty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), pstm.param().abi(), fcleardirty.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSizeMax(&self) -> windows_core::Result { @@ -2297,17 +2297,17 @@ impl ICondition2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Load(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Load)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Load)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Save(&self, pstm: P0, fcleardirty: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Save)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), fcleardirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Save)(windows_core::Interface::as_raw(self), pstm.param().abi(), fcleardirty.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSizeMax(&self) -> windows_core::Result { @@ -2371,41 +2371,41 @@ impl IConditionFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn MakeNot(&self, pcsub: P0, fsimplify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MakeNot)(windows_core::Interface::as_raw(self), pcsub.into_param().abi(), fsimplify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MakeNot)(windows_core::Interface::as_raw(self), pcsub.param().abi(), fsimplify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn MakeAndOr(&self, ct: Common::CONDITION_TYPE, peusubs: P0, fsimplify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MakeAndOr)(windows_core::Interface::as_raw(self), ct, peusubs.into_param().abi(), fsimplify.into_param().abi(), &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.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn MakeLeaf(&self, pszpropertyname: P0, cop: Common::CONDITION_OPERATION, pszvaluetype: P1, ppropvar: *const windows_core::PROPVARIANT, ppropertynameterm: P2, poperationterm: P3, pvalueterm: P4, fexpand: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MakeLeaf)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), cop, pszvaluetype.into_param().abi(), core::mem::transmute(ppropvar), ppropertynameterm.into_param().abi(), poperationterm.into_param().abi(), pvalueterm.into_param().abi(), fexpand.into_param().abi(), &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.param().abi(), &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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), pc.into_param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(std::ptr::null())), &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(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2434,67 +2434,67 @@ impl IConditionFactory2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn MakeNot(&self, pcsub: P0, fsimplify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MakeNot)(windows_core::Interface::as_raw(self), pcsub.into_param().abi(), fsimplify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MakeNot)(windows_core::Interface::as_raw(self), pcsub.param().abi(), fsimplify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn MakeAndOr(&self, ct: Common::CONDITION_TYPE, peusubs: P0, fsimplify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MakeAndOr)(windows_core::Interface::as_raw(self), ct, peusubs.into_param().abi(), fsimplify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MakeAndOr)(windows_core::Interface::as_raw(self), ct, peusubs.param().abi(), fsimplify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn MakeLeaf(&self, pszpropertyname: P0, cop: Common::CONDITION_OPERATION, pszvaluetype: P1, ppropvar: *const windows_core::PROPVARIANT, ppropertynameterm: P2, poperationterm: P3, pvalueterm: P4, fexpand: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MakeLeaf)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), cop, pszvaluetype.into_param().abi(), core::mem::transmute(ppropvar), ppropertynameterm.into_param().abi(), poperationterm.into_param().abi(), pvalueterm.into_param().abi(), fexpand.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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.param().abi(), &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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Resolve)(windows_core::Interface::as_raw(self), pc.into_param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Resolve)(windows_core::Interface::as_raw(self), pc.param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTrueFalse(&self, fval: P0, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateTrueFalse)(windows_core::Interface::as_raw(self), fval.into_param().abi(), 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.param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateNegation)(windows_core::Interface::as_raw(self), pcsub.into_param().abi(), 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: P0, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateCompoundFromObjectArray)(windows_core::Interface::as_raw(self), ct, poasubs.into_param().abi(), 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 @@ -2507,12 +2507,12 @@ impl IConditionFactory2 { #[cfg(all(feature = "Win32_System_Search_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn CreateStringLeaf(&self, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, pszvalue: P0, pszlocalename: P1, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateStringLeaf)(windows_core::Interface::as_raw(self), propkey, cop, pszvalue.into_param().abi(), pszlocalename.into_param().abi(), 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(all(feature = "Win32_System_Search_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn CreateIntegerLeaf(&self, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, lvalue: i32, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result @@ -2525,33 +2525,33 @@ impl IConditionFactory2 { #[cfg(all(feature = "Win32_System_Search_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn CreateBooleanLeaf(&self, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: P0, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateBooleanLeaf)(windows_core::Interface::as_raw(self), propkey, cop, fvalue.into_param().abi(), 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.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_PropertiesSystem"))] pub unsafe fn CreateLeaf(&self, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, propvar: *const windows_core::PROPVARIANT, pszsemantictype: P0, pszlocalename: P1, ppropertynameterm: P2, poperationterm: P3, pvalueterm: P4, cco: CONDITION_CREATION_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateLeaf)(windows_core::Interface::as_raw(self), propkey, cop, core::mem::transmute(propvar), pszsemantictype.into_param().abi(), pszlocalename.into_param().abi(), ppropertynameterm.into_param().abi(), poperationterm.into_param().abi(), pvalueterm.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ResolveCondition)(windows_core::Interface::as_raw(self), pc.into_param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(std::ptr::null())), &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(std::ptr::null())), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2596,40 +2596,40 @@ windows_core::imp::interface_hierarchy!(IConditionGenerator, windows_core::IUnkn impl IConditionGenerator { pub unsafe fn Initialize(&self, pschemaprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pschemaprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pschemaprovider.param().abi()).ok() } pub unsafe fn RecognizeNamedEntities(&self, pszinputstring: P0, lciduserlocale: u32, ptokencollection: P1, pnamedentities: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RecognizeNamedEntities)(windows_core::Interface::as_raw(self), pszinputstring.into_param().abi(), lciduserlocale, ptokencollection.into_param().abi(), pnamedentities.into_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: P2, pszvalue: P3, pszvalue2: P4, ppropertynameterm: P5, poperationterm: P6, pvalueterm: P7, automaticwildcard: P8, pnostringquery: *mut super::super::Foundation::BOOL) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateForLeaf)(windows_core::Interface::as_raw(self), pconditionfactory.into_param().abi(), pszpropertyname.into_param().abi(), cop, pszvaluetype.into_param().abi(), pszvalue.into_param().abi(), pszvalue2.into_param().abi(), ppropertynameterm.into_param().abi(), poperationterm.into_param().abi(), pvalueterm.into_param().abi(), automaticwildcard.into_param().abi(), 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.param().abi(), pnostringquery, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DefaultPhrase(&self, pszvaluetype: P0, ppropvar: *const windows_core::PROPVARIANT, fuseenglish: P1, ppszphrase: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DefaultPhrase)(windows_core::Interface::as_raw(self), pszvaluetype.into_param().abi(), core::mem::transmute(ppropvar), fuseenglish.into_param().abi(), core::mem::transmute(ppszphrase.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DefaultPhrase)(windows_core::Interface::as_raw(self), pszvaluetype.param().abi(), core::mem::transmute(ppropvar), fuseenglish.param().abi(), core::mem::transmute(ppszphrase.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -2661,11 +2661,11 @@ impl ICreateRow { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateRow(&self, punkouter: P0, pwszurl: P1, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: P2, pimplsession: Option<*mut DBIMPLICITSESSION>, pdwbindstatus: *mut u32, ppwsznewurl: Option<*mut windows_core::PWSTR>, ppunk: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRow)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), pwszurl.into_param().abi(), dwbindurlflags, rguid, riid, pauthenticate.into_param().abi(), core::mem::transmute(pimplsession.unwrap_or(std::ptr::null_mut())), pdwbindstatus, core::mem::transmute(ppwsznewurl.unwrap_or(std::ptr::null_mut())), 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(std::ptr::null_mut())), pdwbindstatus, core::mem::transmute(ppwsznewurl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppunk)).ok() } } #[repr(C)] @@ -2684,15 +2684,15 @@ impl IDBAsynchNotify { } pub unsafe fn OnProgress(&self, hchapter: usize, eoperation: u32, ulprogress: usize, ulprogressmax: usize, easynchphase: u32, pwszstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), hchapter, eoperation, ulprogress, ulprogressmax, easynchphase, pwszstatustext.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStop)(windows_core::Interface::as_raw(self), hchapter, eoperation, hrstatus, pwszstatustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnStop)(windows_core::Interface::as_raw(self), hchapter, eoperation, hrstatus, pwszstatustext.param().abi()).ok() } } #[repr(C)] @@ -2747,10 +2747,10 @@ windows_core::imp::interface_hierarchy!(IDBCreateCommand, windows_core::IUnknown impl IDBCreateCommand { pub unsafe fn CreateCommand(&self, punkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCommand)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), 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)] @@ -2763,10 +2763,10 @@ windows_core::imp::interface_hierarchy!(IDBCreateSession, windows_core::IUnknown impl IDBCreateSession { pub unsafe fn CreateSession(&self, punkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), 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)] @@ -2780,9 +2780,9 @@ impl IDBDataSourceAdmin { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn CreateDataSource(&self, rgpropertysets: Option<&mut [DBPROPSET]>, punkouter: P0, riid: *const windows_core::GUID, ppdbsession: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), riid, core::mem::transmute(ppdbsession.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn DestroyDataSource(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DestroyDataSource)(windows_core::Interface::as_raw(self)).ok() @@ -2851,20 +2851,20 @@ windows_core::imp::interface_hierarchy!(IDBPromptInitialize, windows_core::IUnkn impl IDBPromptInitialize { pub unsafe fn PromptDataSource(&self, punkouter: P0, hwndparent: P1, dwpromptoptions: u32, rgsourcetypefilter: Option<&[u32]>, pwszszzproviderfilter: P2, riid: *const windows_core::GUID, ppdatasource: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PromptDataSource)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), hwndparent.into_param().abi(), 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.into_param().abi(), riid, core::mem::transmute(ppdatasource)).ok() + (windows_core::Interface::vtable(self).PromptDataSource)(windows_core::Interface::as_raw(self), punkouter.param().abi(), hwndparent.param().abi(), 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: P0, dwpromptoptions: u32, pwszinitialdirectory: P1, pwszinitialfile: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PromptFileName)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwpromptoptions, pwszinitialdirectory.into_param().abi(), pwszinitialfile.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PromptFileName)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), dwpromptoptions, pwszinitialdirectory.param().abi(), pwszinitialfile.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -2910,10 +2910,10 @@ windows_core::imp::interface_hierarchy!(IDBSchemaCommand, windows_core::IUnknown impl IDBSchemaCommand { pub unsafe fn GetCommand(&self, punkouter: P0, rguidschema: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCommand)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), 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), pcschemas, prgschemas).ok() @@ -2931,9 +2931,9 @@ impl IDBSchemaRowset { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetRowset(&self, punkouter: P0, rguidschema: *const windows_core::GUID, rgrestrictions: Option<&[windows_core::VARIANT]>, riid: *const windows_core::GUID, rgpropertysets: Option<&mut [DBPROPSET]>, pprowset: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRowset)(windows_core::Interface::as_raw(self), punkouter.into_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() + (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), pcschemas, prgschemas, prgrestrictionsupport).ok() @@ -2989,47 +2989,47 @@ windows_core::imp::interface_hierarchy!(IDataInitialize, windows_core::IUnknown) impl IDataInitialize { pub unsafe fn GetDataSource(&self, punkouter: P0, dwclsctx: u32, pwszinitializationstring: P1, riid: *const windows_core::GUID, ppdatasource: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDataSource)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), dwclsctx, pwszinitializationstring.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInitializationString)(windows_core::Interface::as_raw(self), pdatasource.into_param().abi(), 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: P0, dwclsctx: u32, pwszreserved: P1, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDBInstance)(windows_core::Interface::as_raw(self), clsidprovider, punkouter.into_param().abi(), dwclsctx, pwszreserved.into_param().abi(), 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: P0, dwclsctx: u32, pwszreserved: P1, pserverinfo: *const super::Com::COSERVERINFO, rgmqresults: &mut [super::Com::MULTI_QI]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateDBInstanceEx)(windows_core::Interface::as_raw(self), clsidprovider, punkouter.into_param().abi(), dwclsctx, pwszreserved.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadStringFromStorage)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LoadStringFromStorage)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), &mut result__).map(|| result__) } pub unsafe fn WriteStringToStorage(&self, pwszfilename: P0, pwszinitializationstring: P1, dwcreationdisposition: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStringToStorage)(windows_core::Interface::as_raw(self), pwszfilename.into_param().abi(), pwszinitializationstring.into_param().abi(), dwcreationdisposition).ok() + (windows_core::Interface::vtable(self).WriteStringToStorage)(windows_core::Interface::as_raw(self), pwszfilename.param().abi(), pwszinitializationstring.param().abi(), dwcreationdisposition).ok() } } #[repr(C)] @@ -3057,9 +3057,9 @@ impl IDataSourceLocator { } pub unsafe fn SethWnd(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SethWnd)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PromptNew(&self) -> windows_core::Result { @@ -3105,10 +3105,10 @@ impl IEntity { } pub unsafe fn GetRelationship(&self, pszrelationname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRelationship)(windows_core::Interface::as_raw(self), pszrelationname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRelationship)(windows_core::Interface::as_raw(self), pszrelationname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MetaData(&self) -> windows_core::Result where @@ -3126,10 +3126,10 @@ impl IEntity { } pub unsafe fn GetNamedEntity(&self, pszvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNamedEntity)(windows_core::Interface::as_raw(self), pszvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNamedEntity)(windows_core::Interface::as_raw(self), pszvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DefaultPhrase(&self, ppszphrase: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DefaultPhrase)(windows_core::Interface::as_raw(self), core::mem::transmute(ppszphrase.unwrap_or(std::ptr::null_mut()))).ok() @@ -3287,9 +3287,9 @@ impl IErrorRecords { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddErrorRecord(&self, perrorinfo: *const ERRORINFO, dwlookupid: u32, pdispparams: Option<*const super::Com::DISPPARAMS>, punkcustomerror: P0, dwdynamicerrorid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddErrorRecord)(windows_core::Interface::as_raw(self), perrorinfo, dwlookupid, core::mem::transmute(pdispparams.unwrap_or(std::ptr::null())), punkcustomerror.into_param().abi(), dwdynamicerrorid).ok() + (windows_core::Interface::vtable(self).AddErrorRecord)(windows_core::Interface::as_raw(self), perrorinfo, dwlookupid, core::mem::transmute(pdispparams.unwrap_or(std::ptr::null())), 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), ulrecordnum, perrorinfo).ok() @@ -3350,10 +3350,10 @@ windows_core::imp::interface_hierarchy!(IGetRow, windows_core::IUnknown); impl IGetRow { pub unsafe fn GetRowFromHROW(&self, punkouter: P0, hrow: usize, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRowFromHROW)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), hrow, 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__ = std::mem::zeroed(); @@ -3434,30 +3434,30 @@ impl ILoadFilter { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn LoadIFilter(&self, pwcspath: P0, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: P1, fusedefault: P2, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadIFilter)(windows_core::Interface::as_raw(self), pwcspath.into_param().abi(), pfilteredsources, punkouter.into_param().abi(), fusedefault.into_param().abi(), pfilterclsid, searchdecsize, 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.param().abi(), pfilterclsid, searchdecsize, 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: P3, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadIFilterFromStorage)(windows_core::Interface::as_raw(self), pstg.into_param().abi(), punkouter.into_param().abi(), pwcsoverride.into_param().abi(), fusedefault.into_param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() + (windows_core::Interface::vtable(self).LoadIFilterFromStorage)(windows_core::Interface::as_raw(self), pstg.param().abi(), punkouter.param().abi(), pwcsoverride.param().abi(), fusedefault.param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] pub unsafe fn LoadIFilterFromStream(&self, pstm: P0, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: P1, fusedefault: P2, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadIFilterFromStream)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), pfilteredsources, punkouter.into_param().abi(), fusedefault.into_param().abi(), pfilterclsid, searchdecsize, 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.param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() } } #[repr(C)] @@ -3482,37 +3482,37 @@ impl ILoadFilterWithPrivateComActivation { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn LoadIFilter(&self, pwcspath: P0, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: P1, fusedefault: P2, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LoadIFilter)(windows_core::Interface::as_raw(self), pwcspath.into_param().abi(), pfilteredsources, punkouter.into_param().abi(), fusedefault.into_param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() + (windows_core::Interface::vtable(self).base__.LoadIFilter)(windows_core::Interface::as_raw(self), pwcspath.param().abi(), pfilteredsources, punkouter.param().abi(), fusedefault.param().abi(), pfilterclsid, searchdecsize, 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: P3, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LoadIFilterFromStorage)(windows_core::Interface::as_raw(self), pstg.into_param().abi(), punkouter.into_param().abi(), pwcsoverride.into_param().abi(), fusedefault.into_param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() + (windows_core::Interface::vtable(self).base__.LoadIFilterFromStorage)(windows_core::Interface::as_raw(self), pstg.param().abi(), punkouter.param().abi(), pwcsoverride.param().abi(), fusedefault.param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] pub unsafe fn LoadIFilterFromStream(&self, pstm: P0, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: P1, fusedefault: P2, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LoadIFilterFromStream)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), pfilteredsources, punkouter.into_param().abi(), fusedefault.into_param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() + (windows_core::Interface::vtable(self).base__.LoadIFilterFromStream)(windows_core::Interface::as_raw(self), pstm.param().abi(), pfilteredsources, punkouter.param().abi(), fusedefault.param().abi(), pfilterclsid, searchdecsize, pwcssearchdesc, core::mem::transmute(ppifilt)).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn LoadIFilterWithPrivateComActivation(&self, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: P0, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut super::super::Foundation::BOOL, filterobj: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadIFilterWithPrivateComActivation)(windows_core::Interface::as_raw(self), filteredsources, usedefault.into_param().abi(), filterclsid, isfilterprivatecomactivated, core::mem::transmute(filterobj)).ok() + (windows_core::Interface::vtable(self).LoadIFilterWithPrivateComActivation)(windows_core::Interface::as_raw(self), filteredsources, usedefault.param().abi(), filterclsid, isfilterprivatecomactivated, core::mem::transmute(filterobj)).ok() } } #[repr(C)] @@ -3535,15 +3535,15 @@ impl IMDDataset { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetAxisRowset(&self, punkouter: P0, iaxis: usize, riid: *const windows_core::GUID, rgpropertysets: &mut [DBPROPSET], pprowset: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAxisRowset)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), iaxis, 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: P0, ulstartcell: usize, ulendcell: usize, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCellData)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), ulstartcell, ulendcell, pdata).ok() + (windows_core::Interface::vtable(self).GetCellData)(windows_core::Interface::as_raw(self), haccessor.param().abi(), ulstartcell, ulendcell, pdata).ok() } pub unsafe fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3586,9 +3586,9 @@ impl IMDRangeRowset { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetRangeRowset(&self, punkouter: P0, ulstartcell: usize, ulendcell: usize, riid: *const windows_core::GUID, rgpropertysets: &mut [DBPROPSET], pprowset: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRangeRowset)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), ulstartcell, ulendcell, 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)] @@ -3616,9 +3616,9 @@ windows_core::imp::interface_hierarchy!(IMultipleResults, windows_core::IUnknown impl IMultipleResults { pub unsafe fn GetResult(&self, punkouter: P0, lresultflag: isize, riid: *const windows_core::GUID, pcrowsaffected: Option<*mut isize>, pprowset: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResult)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), lresultflag, riid, core::mem::transmute(pcrowsaffected.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetResult)(windows_core::Interface::as_raw(self), punkouter.param().abi(), lresultflag, riid, core::mem::transmute(pcrowsaffected.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -3648,10 +3648,10 @@ windows_core::imp::interface_hierarchy!(INamedEntityCollector, windows_core::IUn impl INamedEntityCollector { pub unsafe fn Add(&self, beginspan: u32, endspan: u32, beginactual: u32, endactual: u32, ptype: P0, pszvalue: P1, certainty: NAMED_ENTITY_CERTAINTY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), beginspan, endspan, beginactual, endactual, ptype.into_param().abi(), pszvalue.into_param().abi(), 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)] @@ -3738,9 +3738,9 @@ impl IOpenRowset { #[cfg(feature = "Win32_Storage_IndexServer")] 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: Option<&mut [DBPROPSET]>, pprowset: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), core::mem::transmute(ptableid.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), 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(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -3756,10 +3756,10 @@ windows_core::imp::interface_hierarchy!(IParentRowset, windows_core::IUnknown); impl IParentRowset { pub unsafe fn GetChildRowset(&self, punkouter: P0, iordinal: usize, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChildRowset)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), iordinal, 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)] @@ -3773,11 +3773,11 @@ impl IProtocolHandlerSite { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetFilter(&self, pclsidobj: *const windows_core::GUID, pcwszcontenttype: P0, pcwszextension: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), pclsidobj, pcwszcontenttype.into_param().abi(), pcwszextension.into_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)] @@ -3811,11 +3811,11 @@ impl IQueryParser { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parse(&self, pszinputstring: P0, pcustomproperties: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Parse)(windows_core::Interface::as_raw(self), pszinputstring.into_param().abi(), pcustomproperties.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Parse)(windows_core::Interface::as_raw(self), pszinputstring.param().abi(), pcustomproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetOption(&self, option: STRUCTURED_QUERY_SINGLE_OPTION, poptionvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), option, core::mem::transmute(poptionvalue)).ok() @@ -3826,9 +3826,9 @@ impl IQueryParser { } pub unsafe fn SetMultiOption(&self, option: STRUCTURED_QUERY_MULTIOPTION, pszoptionkey: P0, poptionvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultiOption)(windows_core::Interface::as_raw(self), option, pszoptionkey.into_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__ = std::mem::zeroed(); @@ -3837,27 +3837,27 @@ impl IQueryParser { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RestateToString(&self, pcondition: P0, fuseenglish: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RestateToString)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), fuseenglish.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RestateToString)(windows_core::Interface::as_raw(self), pcondition.param().abi(), fuseenglish.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ParsePropertyValue(&self, pszpropertyname: P0, pszinputstring: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParsePropertyValue)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), pszinputstring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParsePropertyValue)(windows_core::Interface::as_raw(self), pszpropertyname.param().abi(), pszinputstring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RestatePropertyValueToString(&self, pcondition: P0, fuseenglish: P1, ppszpropertyname: *mut windows_core::PWSTR, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RestatePropertyValueToString)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), fuseenglish.into_param().abi(), ppszpropertyname, ppszquerystring).ok() + (windows_core::Interface::vtable(self).RestatePropertyValueToString)(windows_core::Interface::as_raw(self), pcondition.param().abi(), fuseenglish.param().abi(), ppszpropertyname, ppszquerystring).ok() } } #[repr(C)] @@ -3886,19 +3886,19 @@ windows_core::imp::interface_hierarchy!(IQueryParserManager, windows_core::IUnkn impl IQueryParserManager { pub unsafe fn CreateLoadedParser(&self, pszcatalog: P0, langidforkeywords: u16) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateLoadedParser)(windows_core::Interface::as_raw(self), pszcatalog.into_param().abi(), 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: P0, fautowildcard: P1, pqueryparser: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeOptions)(windows_core::Interface::as_raw(self), funderstandnqs.into_param().abi(), fautowildcard.into_param().abi(), pqueryparser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeOptions)(windows_core::Interface::as_raw(self), funderstandnqs.param().abi(), fautowildcard.param().abi(), pqueryparser.param().abi()).ok() } pub unsafe fn SetOption(&self, option: QUERY_PARSER_MANAGER_OPTION, poptionvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), option, core::mem::transmute(poptionvalue)).ok() @@ -3917,41 +3917,41 @@ impl IQuerySolution { #[cfg(feature = "Win32_System_Com")] pub unsafe fn MakeNot(&self, pcsub: P0, fsimplify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MakeNot)(windows_core::Interface::as_raw(self), pcsub.into_param().abi(), fsimplify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MakeNot)(windows_core::Interface::as_raw(self), pcsub.param().abi(), fsimplify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn MakeAndOr(&self, ct: Common::CONDITION_TYPE, peusubs: P0, fsimplify: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MakeAndOr)(windows_core::Interface::as_raw(self), ct, peusubs.into_param().abi(), fsimplify.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MakeAndOr)(windows_core::Interface::as_raw(self), ct, peusubs.param().abi(), fsimplify.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn MakeLeaf(&self, pszpropertyname: P0, cop: Common::CONDITION_OPERATION, pszvaluetype: P1, ppropvar: *const windows_core::PROPVARIANT, ppropertynameterm: P2, poperationterm: P3, pvalueterm: P4, fexpand: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MakeLeaf)(windows_core::Interface::as_raw(self), pszpropertyname.into_param().abi(), cop, pszvaluetype.into_param().abi(), core::mem::transmute(ppropvar), ppropertynameterm.into_param().abi(), poperationterm.into_param().abi(), pvalueterm.into_param().abi(), fexpand.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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.param().abi(), &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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Resolve)(windows_core::Interface::as_raw(self), pc.into_param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Resolve)(windows_core::Interface::as_raw(self), pc.param().abi(), sqro, core::mem::transmute(pstreferencetime.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetQuery(&self, ppquerynode: Option<*mut Option>, ppmaintype: Option<*mut Option>) -> windows_core::Result<()> { @@ -3983,9 +3983,9 @@ windows_core::imp::interface_hierarchy!(IReadData, windows_core::IUnknown); impl IReadData { pub unsafe fn ReadData(&self, hchapter: usize, pbookmark: &[u8], lrowsoffset: isize, haccessor: P0, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (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.into_param().abi(), crows, pcrowsobtained, ppfixeddata, pcbvariabletotal, 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.param().abi(), crows, pcrowsobtained, ppfixeddata, pcbvariabletotal, ppvariabledata).ok() } pub unsafe fn ReleaseChapter(&self, hchapter: usize) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseChapter)(windows_core::Interface::as_raw(self), hchapter).ok() @@ -4002,22 +4002,22 @@ windows_core::imp::interface_hierarchy!(IRegisterProvider, windows_core::IUnknow impl IRegisterProvider { pub unsafe fn GetURLMapping(&self, pwszurl: P0, dwreserved: usize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetURLMapping)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURLMapping)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwreserved, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterProvider)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwreserved, rclsidprovider).ok() + (windows_core::Interface::vtable(self).UnregisterProvider)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), dwreserved, rclsidprovider).ok() } } #[repr(C)] @@ -4086,9 +4086,9 @@ impl IRow { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), pcolumnid, rguidcolumntype, dwbindflags, riid, core::mem::transmute(ppunk.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -4135,9 +4135,9 @@ impl IRowPosition { } pub unsafe fn Initialize(&self, prowset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), prowset.into_param().abi()).ok() + (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), hchapter, hrow, dwpositionflags).ok() @@ -4157,9 +4157,9 @@ windows_core::imp::interface_hierarchy!(IRowPositionChange, windows_core::IUnkno impl IRowPositionChange { pub unsafe fn OnRowPositionChange(&self, ereason: u32, ephase: u32, fcantdeny: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRowPositionChange)(windows_core::Interface::as_raw(self), ereason, ephase, fcantdeny.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRowPositionChange)(windows_core::Interface::as_raw(self), ereason, ephase, fcantdeny.param().abi()).ok() } } #[repr(C)] @@ -4203,9 +4203,9 @@ impl IRowset { } pub unsafe fn GetData(&self, hrow: usize, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), 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), hreserved, lrowsoffset, prghrows.len().try_into().unwrap(), pcrowsobtained, core::mem::transmute(prghrows.as_ptr())).ok() @@ -4262,16 +4262,16 @@ impl IRowsetChange { } pub unsafe fn SetData(&self, hrow: usize, haccessor: P0, pdata: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), pdata).ok() } pub unsafe fn InsertRow(&self, hreserved: usize, haccessor: P0, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), hreserved, haccessor.into_param().abi(), pdata, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), hreserved, haccessor.param().abi(), pdata, &mut result__).map(|| result__) } } #[repr(C)] @@ -4324,10 +4324,10 @@ impl IRowsetCopyRows { } pub unsafe fn DefineSource(&self, prowsetsource: P0, ccolids: usize, rgsourcecolumns: *const isize, rgtargetcolumns: *const isize) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DefineSource)(windows_core::Interface::as_raw(self), prowsetsource.into_param().abi(), ccolids, rgsourcecolumns, 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)] @@ -4347,15 +4347,15 @@ impl IRowsetCurrentIndex { } pub unsafe fn Seek(&self, haccessor: P0, ckeyvalues: usize, pdata: *const core::ffi::c_void, dwseekoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), ckeyvalues, pdata, dwseekoptions).ok() + (windows_core::Interface::vtable(self).base__.Seek)(windows_core::Interface::as_raw(self), haccessor.param().abi(), ckeyvalues, pdata, dwseekoptions).ok() } pub unsafe fn SetRange(&self, haccessor: P0, cstartkeycolumns: usize, pstartdata: *const core::ffi::c_void, cendkeycolumns: usize, penddata: *const core::ffi::c_void, dwrangeoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRange)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), cstartkeycolumns, pstartdata, cendkeycolumns, penddata, dwrangeoptions).ok() + (windows_core::Interface::vtable(self).base__.SetRange)(windows_core::Interface::as_raw(self), haccessor.param().abi(), cstartkeycolumns, pstartdata, cendkeycolumns, penddata, dwrangeoptions).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetIndex(&self) -> windows_core::Result<*mut super::super::Storage::IndexServer::DBID> { @@ -4411,9 +4411,9 @@ impl IRowsetExactScroll { } pub unsafe fn GetData(&self, hrow: usize, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), 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).base__.base__.base__.GetNextRows)(windows_core::Interface::as_raw(self), hreserved, lrowsoffset, prghrows.len().try_into().unwrap(), pcrowsobtained, core::mem::transmute(prghrows.as_ptr())).ok() @@ -4457,15 +4457,15 @@ windows_core::imp::interface_hierarchy!(IRowsetFastLoad, windows_core::IUnknown) impl IRowsetFastLoad { pub unsafe fn InsertRow(&self, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).InsertRow)(windows_core::Interface::as_raw(self), haccessor.param().abi(), pdata).ok() } pub unsafe fn Commit(&self, fdone: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), fdone.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), fdone.param().abi()).ok() } } #[repr(C)] @@ -4479,9 +4479,9 @@ windows_core::imp::interface_hierarchy!(IRowsetFind, windows_core::IUnknown); impl IRowsetFind { pub unsafe fn FindNextRow(&self, hchapter: usize, haccessor: P0, pfindvalue: *const core::ffi::c_void, compareop: u32, pbookmark: &[u8], lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindNextRow)(windows_core::Interface::as_raw(self), hchapter, haccessor.into_param().abi(), pfindvalue, compareop, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), lrowsoffset, crows, pcrowsobtained, prghrows).ok() + (windows_core::Interface::vtable(self).FindNextRow)(windows_core::Interface::as_raw(self), hchapter, haccessor.param().abi(), pfindvalue, compareop, pbookmark.len().try_into().unwrap(), core::mem::transmute(pbookmark.as_ptr()), lrowsoffset, crows, pcrowsobtained, prghrows).ok() } } #[repr(C)] @@ -4510,15 +4510,15 @@ impl IRowsetIndex { } pub unsafe fn Seek(&self, haccessor: P0, ckeyvalues: usize, pdata: *const core::ffi::c_void, dwseekoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), ckeyvalues, pdata, dwseekoptions).ok() + (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), haccessor.param().abi(), ckeyvalues, pdata, dwseekoptions).ok() } pub unsafe fn SetRange(&self, haccessor: P0, cstartkeycolumns: usize, pstartdata: *const core::ffi::c_void, cendkeycolumns: usize, penddata: *const core::ffi::c_void, dwrangeoptions: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), cstartkeycolumns, pstartdata, cendkeycolumns, penddata, dwrangeoptions).ok() + (windows_core::Interface::vtable(self).SetRange)(windows_core::Interface::as_raw(self), haccessor.param().abi(), cstartkeycolumns, pstartdata, cendkeycolumns, penddata, dwrangeoptions).ok() } } #[repr(C)] @@ -4577,9 +4577,9 @@ impl IRowsetLocate { } pub unsafe fn GetData(&self, hrow: usize, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).base__.GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), 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).base__.GetNextRows)(windows_core::Interface::as_raw(self), hreserved, lrowsoffset, prghrows.len().try_into().unwrap(), pcrowsobtained, core::mem::transmute(prghrows.as_ptr())).ok() @@ -4617,10 +4617,10 @@ windows_core::imp::interface_hierarchy!(IRowsetNewRowAfter, windows_core::IUnkno impl IRowsetNewRowAfter { pub unsafe fn SetNewDataAfter(&self, hchapter: usize, pbmprevious: &[u8], haccessor: P0, pdata: *const u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (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.into_param().abi(), 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.param().abi(), pdata, &mut result__).map(|| result__) } } #[repr(C)] @@ -4633,10 +4633,10 @@ windows_core::imp::interface_hierarchy!(IRowsetNextRowset, windows_core::IUnknow impl IRowsetNextRowset { pub unsafe fn GetNextRowset(&self, punkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextRowset)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), 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)] @@ -4649,24 +4649,24 @@ windows_core::imp::interface_hierarchy!(IRowsetNotify, windows_core::IUnknown); impl IRowsetNotify { pub unsafe fn OnFieldChange(&self, prowset: P0, hrow: usize, rgcolumns: &[usize], ereason: u32, ephase: u32, fcantdeny: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFieldChange)(windows_core::Interface::as_raw(self), prowset.into_param().abi(), hrow, rgcolumns.len().try_into().unwrap(), core::mem::transmute(rgcolumns.as_ptr()), ereason, ephase, fcantdeny.into_param().abi()).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.param().abi()).ok() } pub unsafe fn OnRowChange(&self, prowset: P0, rghrows: &[usize], ereason: u32, ephase: u32, fcantdeny: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRowChange)(windows_core::Interface::as_raw(self), prowset.into_param().abi(), rghrows.len().try_into().unwrap(), core::mem::transmute(rghrows.as_ptr()), ereason, ephase, fcantdeny.into_param().abi()).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.param().abi()).ok() } pub unsafe fn OnRowsetChange(&self, prowset: P0, ereason: u32, ephase: u32, fcantdeny: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRowsetChange)(windows_core::Interface::as_raw(self), prowset.into_param().abi(), ereason, ephase, fcantdeny.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRowsetChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), ereason, ephase, fcantdeny.param().abi()).ok() } } #[repr(C)] @@ -4717,15 +4717,15 @@ windows_core::imp::interface_hierarchy!(IRowsetRefresh, windows_core::IUnknown); impl IRowsetRefresh { pub unsafe fn RefreshVisibleData(&self, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: P0, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RefreshVisibleData)(windows_core::Interface::as_raw(self), hchapter, crows, rghrows, foverwrite.into_param().abi(), pcrowsrefreshed, prghrowsrefreshed, prgrowstatus).ok() + (windows_core::Interface::vtable(self).RefreshVisibleData)(windows_core::Interface::as_raw(self), hchapter, crows, rghrows, foverwrite.param().abi(), pcrowsrefreshed, prghrowsrefreshed, prgrowstatus).ok() } pub unsafe fn GetLastVisibleData(&self, hrow: usize, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLastVisibleData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).GetLastVisibleData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), pdata).ok() } } #[repr(C)] @@ -4739,9 +4739,9 @@ windows_core::imp::interface_hierarchy!(IRowsetResynch, windows_core::IUnknown); impl IRowsetResynch { pub unsafe fn GetVisibleData(&self, hrow: usize, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetVisibleData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).GetVisibleData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), 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), crows, rghrows, pcrowsresynched, prghrowsresynched, prgrowstatus).ok() @@ -4761,9 +4761,9 @@ impl IRowsetScroll { } pub unsafe fn GetData(&self, hrow: usize, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).base__.base__.GetData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), 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).base__.base__.GetNextRows)(windows_core::Interface::as_raw(self), hreserved, lrowsoffset, prghrows.len().try_into().unwrap(), pcrowsobtained, core::mem::transmute(prghrows.as_ptr())).ok() @@ -4808,22 +4808,22 @@ impl IRowsetUpdate { } pub unsafe fn SetData(&self, hrow: usize, haccessor: P0, pdata: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).base__.SetData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), pdata).ok() } pub unsafe fn InsertRow(&self, hreserved: usize, haccessor: P0, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InsertRow)(windows_core::Interface::as_raw(self), hreserved, haccessor.into_param().abi(), pdata, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.InsertRow)(windows_core::Interface::as_raw(self), hreserved, haccessor.param().abi(), pdata, &mut result__).map(|| result__) } pub unsafe fn GetOriginalData(&self, hrow: usize, haccessor: P0, pdata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOriginalData)(windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() + (windows_core::Interface::vtable(self).GetOriginalData)(windows_core::Interface::as_raw(self), hrow, haccessor.param().abi(), 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), hreserved, dwrowstatus, pcpendingrows, prgpendingrows, prgpendingstatus).ok() @@ -4852,10 +4852,10 @@ windows_core::imp::interface_hierarchy!(IRowsetView, windows_core::IUnknown); impl IRowsetView { pub unsafe fn CreateView(&self, punkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateView)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), 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), hchapter, riid, phchaptersource, core::mem::transmute(ppview)).ok() @@ -4892,9 +4892,9 @@ windows_core::imp::interface_hierarchy!(IRowsetWatchNotify, windows_core::IUnkno impl IRowsetWatchNotify { pub unsafe fn OnChange(&self, prowset: P0, echangereason: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), prowset.into_param().abi(), echangereason).ok() + (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), prowset.param().abi(), echangereason).ok() } } #[repr(C)] @@ -5021,10 +5021,10 @@ windows_core::imp::interface_hierarchy!(ISchemaLocalizerSupport, windows_core::I impl ISchemaLocalizerSupport { pub unsafe fn Localize(&self, pszglobalstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Localize)(windows_core::Interface::as_raw(self), pszglobalstring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Localize)(windows_core::Interface::as_raw(self), pszglobalstring.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -5041,9 +5041,9 @@ impl ISchemaLock { } pub unsafe fn ReleaseSchemaLock(&self, hlockhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseSchemaLock)(windows_core::Interface::as_raw(self), hlockhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseSchemaLock)(windows_core::Interface::as_raw(self), hlockhandle.param().abi()).ok() } } #[repr(C)] @@ -5071,10 +5071,10 @@ impl ISchemaProvider { } pub unsafe fn GetEntity(&self, pszentityname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEntity)(windows_core::Interface::as_raw(self), pszentityname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEntity)(windows_core::Interface::as_raw(self), pszentityname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MetaData(&self) -> windows_core::Result where @@ -5085,23 +5085,23 @@ impl ISchemaProvider { } pub unsafe fn Localize(&self, lcid: u32, pschemalocalizersupport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Localize)(windows_core::Interface::as_raw(self), lcid, pschemalocalizersupport.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveBinary)(windows_core::Interface::as_raw(self), pszschemabinarypath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveBinary)(windows_core::Interface::as_raw(self), pszschemabinarypath.param().abi()).ok() } pub unsafe fn LookupAuthoredNamedEntity(&self, pentity: P0, pszinputstring: P1, ptokencollection: P2, ctokensbegin: u32, pctokenslength: *mut u32, ppszvalue: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LookupAuthoredNamedEntity)(windows_core::Interface::as_raw(self), pentity.into_param().abi(), pszinputstring.into_param().abi(), ptokencollection.into_param().abi(), ctokensbegin, pctokenslength, ppszvalue).ok() + (windows_core::Interface::vtable(self).LookupAuthoredNamedEntity)(windows_core::Interface::as_raw(self), pentity.param().abi(), pszinputstring.param().abi(), ptokencollection.param().abi(), ctokensbegin, pctokenslength, ppszvalue).ok() } } #[repr(C)] @@ -5121,25 +5121,25 @@ impl IScopedOperations { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Bind(&self, punkouter: P0, pwszurl: P1, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: P2, pimplsession: Option<*mut DBIMPLICITSESSION>, pdwbindstatus: Option<*mut u32>, ppunk: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Bind)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), pwszurl.into_param().abi(), dwbindurlflags, rguid, riid, pauthenticate.into_param().abi(), core::mem::transmute(pimplsession.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwbindstatus.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppunk)).ok() + (windows_core::Interface::vtable(self).base__.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(std::ptr::null_mut())), core::mem::transmute(pdwbindstatus.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppunk)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Copy(&self, crows: usize, rgpwszsourceurls: Option<*const windows_core::PCWSTR>, rgpwszdesturls: *const windows_core::PCWSTR, dwcopyflags: u32, pauthenticate: P0, rgdwstatus: *mut u32, rgpwsznewurls: Option<*mut windows_core::PWSTR>, ppstringsbuffer: Option<*mut *mut u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), crows, core::mem::transmute(rgpwszsourceurls.unwrap_or(std::ptr::null())), rgpwszdesturls, dwcopyflags, pauthenticate.into_param().abi(), rgdwstatus, core::mem::transmute(rgpwsznewurls.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppstringsbuffer.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), crows, core::mem::transmute(rgpwszsourceurls.unwrap_or(std::ptr::null())), rgpwszdesturls, dwcopyflags, pauthenticate.param().abi(), rgdwstatus, core::mem::transmute(rgpwsznewurls.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppstringsbuffer.unwrap_or(std::ptr::null_mut()))).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: P0, rgdwstatus: *mut u32, rgpwsznewurls: Option<*mut windows_core::PWSTR>, ppstringsbuffer: Option<*mut *mut u16>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), crows, core::mem::transmute(rgpwszsourceurls.unwrap_or(std::ptr::null())), rgpwszdesturls, dwmoveflags, pauthenticate.into_param().abi(), rgdwstatus, core::mem::transmute(rgpwsznewurls.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppstringsbuffer.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Move)(windows_core::Interface::as_raw(self), crows, core::mem::transmute(rgpwszsourceurls.unwrap_or(std::ptr::null())), rgpwszdesturls, dwmoveflags, pauthenticate.param().abi(), rgdwstatus, core::mem::transmute(rgpwsznewurls.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppstringsbuffer.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Delete(&self, crows: usize, rgpwszurls: *const windows_core::PCWSTR, dwdeleteflags: u32, rgdwstatus: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), crows, rgpwszurls, dwdeleteflags, rgdwstatus).ok() @@ -5147,9 +5147,9 @@ impl IScopedOperations { #[cfg(feature = "Win32_Storage_IndexServer")] 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), core::mem::transmute(ptableid.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), riid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).OpenRowset)(windows_core::Interface::as_raw(self), punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(std::ptr::null())), core::mem::transmute(pindexid.unwrap_or(std::ptr::null())), riid, rgpropertysets.len().try_into().unwrap(), core::mem::transmute(rgpropertysets.as_ptr()), core::mem::transmute(pprowset.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -5178,16 +5178,16 @@ impl ISearchCatalogManager { } pub unsafe fn GetParameter(&self, pszname: P0) -> windows_core::Result<*mut windows_core::PROPVARIANT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetParameter(&self, pszname: P0, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pvalue)).ok() } pub unsafe fn GetCatalogStatus(&self, pstatus: *mut CatalogStatus, ppausedreason: *mut CatalogPausedReason) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetCatalogStatus)(windows_core::Interface::as_raw(self), pstatus, ppausedreason).ok() @@ -5200,15 +5200,15 @@ impl ISearchCatalogManager { } pub unsafe fn ReindexMatchingURLs(&self, pszpattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReindexMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReindexMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.param().abi()).ok() } pub unsafe fn ReindexSearchRoot(&self, pszrooturl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReindexSearchRoot)(windows_core::Interface::as_raw(self), pszrooturl.into_param().abi()).ok() + (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), dwconnecttimeout).ok() @@ -5237,10 +5237,10 @@ impl ISearchCatalogManager { } pub unsafe fn GetURLIndexingState(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetURLIndexingState)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetURLIndexingState)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPersistentItemsChangedSink(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5248,29 +5248,29 @@ impl ISearchCatalogManager { } pub unsafe fn RegisterViewForNotification(&self, pszview: P0, pviewchangedsink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterViewForNotification)(windows_core::Interface::as_raw(self), pszview.into_param().abi(), pviewchangedsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RegisterViewForNotification)(windows_core::Interface::as_raw(self), pszview.param().abi(), pviewchangedsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetItemsChangedSink(&self, pisearchnotifyinlinesite: P0, pguidcatalogresetsignature: *mut windows_core::GUID, pguidcheckpointsignature: *mut windows_core::GUID, pdwlastcheckpointnumber: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetItemsChangedSink)(windows_core::Interface::as_raw(self), pisearchnotifyinlinesite.into_param().abi(), &T::IID, &mut result__, pguidcatalogresetsignature, pguidcheckpointsignature, pdwlastcheckpointnumber).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemsChangedSink)(windows_core::Interface::as_raw(self), pisearchnotifyinlinesite.param().abi(), &T::IID, &mut result__, pguidcatalogresetsignature, pguidcheckpointsignature, 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), dwcookie).ok() } pub unsafe fn SetExtensionClusion(&self, pszextension: P0, fexclude: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtensionClusion)(windows_core::Interface::as_raw(self), pszextension.into_param().abi(), fexclude.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExtensionClusion)(windows_core::Interface::as_raw(self), pszextension.param().abi(), fexclude.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateExcludedExtensions(&self) -> windows_core::Result { @@ -5283,9 +5283,9 @@ impl ISearchCatalogManager { } pub unsafe fn SetDiacriticSensitivity(&self, fdiacriticsensitive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.param().abi()).ok() } pub unsafe fn DiacriticSensitivity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5338,16 +5338,16 @@ impl ISearchCatalogManager2 { } pub unsafe fn GetParameter(&self, pszname: P0) -> windows_core::Result<*mut windows_core::PROPVARIANT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetParameter(&self, pszname: P0, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).base__.SetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pvalue)).ok() } pub unsafe fn GetCatalogStatus(&self, pstatus: *mut CatalogStatus, ppausedreason: *mut CatalogPausedReason) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetCatalogStatus)(windows_core::Interface::as_raw(self), pstatus, ppausedreason).ok() @@ -5360,15 +5360,15 @@ impl ISearchCatalogManager2 { } pub unsafe fn ReindexMatchingURLs(&self, pszpattern: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReindexMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReindexMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.param().abi()).ok() } pub unsafe fn ReindexSearchRoot(&self, pszrooturl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReindexSearchRoot)(windows_core::Interface::as_raw(self), pszrooturl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetConnectTimeout)(windows_core::Interface::as_raw(self), dwconnecttimeout).ok() @@ -5397,10 +5397,10 @@ impl ISearchCatalogManager2 { } pub unsafe fn GetURLIndexingState(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetURLIndexingState)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetURLIndexingState)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPersistentItemsChangedSink(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5408,29 +5408,29 @@ impl ISearchCatalogManager2 { } pub unsafe fn RegisterViewForNotification(&self, pszview: P0, pviewchangedsink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterViewForNotification)(windows_core::Interface::as_raw(self), pszview.into_param().abi(), pviewchangedsink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.RegisterViewForNotification)(windows_core::Interface::as_raw(self), pszview.param().abi(), pviewchangedsink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetItemsChangedSink(&self, pisearchnotifyinlinesite: P0, pguidcatalogresetsignature: *mut windows_core::GUID, pguidcheckpointsignature: *mut windows_core::GUID, pdwlastcheckpointnumber: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.GetItemsChangedSink)(windows_core::Interface::as_raw(self), pisearchnotifyinlinesite.into_param().abi(), &T::IID, &mut result__, pguidcatalogresetsignature, pguidcheckpointsignature, pdwlastcheckpointnumber).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetItemsChangedSink)(windows_core::Interface::as_raw(self), pisearchnotifyinlinesite.param().abi(), &T::IID, &mut result__, pguidcatalogresetsignature, pguidcheckpointsignature, pdwlastcheckpointnumber).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnregisterViewForNotification(&self, dwcookie: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UnregisterViewForNotification)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn SetExtensionClusion(&self, pszextension: P0, fexclude: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExtensionClusion)(windows_core::Interface::as_raw(self), pszextension.into_param().abi(), fexclude.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExtensionClusion)(windows_core::Interface::as_raw(self), pszextension.param().abi(), fexclude.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateExcludedExtensions(&self) -> windows_core::Result { @@ -5443,9 +5443,9 @@ impl ISearchCatalogManager2 { } pub unsafe fn SetDiacriticSensitivity(&self, fdiacriticsensitive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.param().abi()).ok() } pub unsafe fn DiacriticSensitivity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5457,9 +5457,9 @@ impl ISearchCatalogManager2 { } pub unsafe fn PrioritizeMatchingURLs(&self, pszpattern: P0, dwprioritizeflags: PRIORITIZE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrioritizeMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.into_param().abi(), dwprioritizeflags).ok() + (windows_core::Interface::vtable(self).PrioritizeMatchingURLs)(windows_core::Interface::as_raw(self), pszpattern.param().abi(), dwprioritizeflags).ok() } } #[repr(C)] @@ -5472,22 +5472,22 @@ windows_core::imp::interface_hierarchy!(ISearchCrawlScopeManager, windows_core:: impl ISearchCrawlScopeManager { pub unsafe fn AddDefaultScopeRule(&self, pszurl: P0, finclude: P1, ffollowflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), finclude.into_param().abi(), ffollowflags).ok() + (windows_core::Interface::vtable(self).AddDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.param().abi(), ffollowflags).ok() } pub unsafe fn AddRoot(&self, psearchroot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRoot)(windows_core::Interface::as_raw(self), psearchroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRoot)(windows_core::Interface::as_raw(self), psearchroot.param().abi()).ok() } pub unsafe fn RemoveRoot(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveRoot)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveRoot)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn EnumerateRoots(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5495,26 +5495,26 @@ impl ISearchCrawlScopeManager { } pub unsafe fn AddHierarchicalScope(&self, pszurl: P0, finclude: P1, fdefault: P2, foverridechildren: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddHierarchicalScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), finclude.into_param().abi(), fdefault.into_param().abi(), foverridechildren.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddHierarchicalScope)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.param().abi(), fdefault.param().abi(), foverridechildren.param().abi()).ok() } pub unsafe fn AddUserScopeRule(&self, pszurl: P0, finclude: P1, foverridechildren: P2, ffollowflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUserScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), finclude.into_param().abi(), foverridechildren.into_param().abi(), ffollowflags).ok() + (windows_core::Interface::vtable(self).AddUserScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.param().abi(), foverridechildren.param().abi(), ffollowflags).ok() } pub unsafe fn RemoveScopeRule(&self, pszrule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveScopeRule)(windows_core::Interface::as_raw(self), pszrule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveScopeRule)(windows_core::Interface::as_raw(self), pszrule.param().abi()).ok() } pub unsafe fn EnumerateScopeRules(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5522,30 +5522,30 @@ impl ISearchCrawlScopeManager { } pub unsafe fn HasParentScopeRule(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).HasParentScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasParentScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn HasChildScopeRule(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).HasChildScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasChildScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IncludedInCrawlScope(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IncludedInCrawlScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IncludedInCrawlScope)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IncludedInCrawlScopeEx(&self, pszurl: P0, pfisincluded: *mut super::super::Foundation::BOOL, preason: *mut CLUSION_REASON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IncludedInCrawlScopeEx)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), pfisincluded, preason).ok() + (windows_core::Interface::vtable(self).IncludedInCrawlScopeEx)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pfisincluded, preason).ok() } pub unsafe fn RevertToDefaultScopes(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RevertToDefaultScopes)(windows_core::Interface::as_raw(self)).ok() @@ -5555,16 +5555,16 @@ impl ISearchCrawlScopeManager { } pub unsafe fn GetParentScopeVersionId(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParentScopeVersionId)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetParentScopeVersionId)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveDefaultScopeRule(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } } #[repr(C)] @@ -5592,22 +5592,22 @@ windows_core::imp::interface_hierarchy!(ISearchCrawlScopeManager2, windows_core: impl ISearchCrawlScopeManager2 { pub unsafe fn AddDefaultScopeRule(&self, pszurl: P0, finclude: P1, ffollowflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), finclude.into_param().abi(), ffollowflags).ok() + (windows_core::Interface::vtable(self).base__.AddDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.param().abi(), ffollowflags).ok() } pub unsafe fn AddRoot(&self, psearchroot: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddRoot)(windows_core::Interface::as_raw(self), psearchroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddRoot)(windows_core::Interface::as_raw(self), psearchroot.param().abi()).ok() } pub unsafe fn RemoveRoot(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveRoot)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveRoot)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn EnumerateRoots(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5615,26 +5615,26 @@ impl ISearchCrawlScopeManager2 { } pub unsafe fn AddHierarchicalScope(&self, pszurl: P0, finclude: P1, fdefault: P2, foverridechildren: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddHierarchicalScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), finclude.into_param().abi(), fdefault.into_param().abi(), foverridechildren.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddHierarchicalScope)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.param().abi(), fdefault.param().abi(), foverridechildren.param().abi()).ok() } pub unsafe fn AddUserScopeRule(&self, pszurl: P0, finclude: P1, foverridechildren: P2, ffollowflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddUserScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), finclude.into_param().abi(), foverridechildren.into_param().abi(), ffollowflags).ok() + (windows_core::Interface::vtable(self).base__.AddUserScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), finclude.param().abi(), foverridechildren.param().abi(), ffollowflags).ok() } pub unsafe fn RemoveScopeRule(&self, pszrule: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveScopeRule)(windows_core::Interface::as_raw(self), pszrule.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveScopeRule)(windows_core::Interface::as_raw(self), pszrule.param().abi()).ok() } pub unsafe fn EnumerateScopeRules(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5642,30 +5642,30 @@ impl ISearchCrawlScopeManager2 { } pub unsafe fn HasParentScopeRule(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.HasParentScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.HasParentScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn HasChildScopeRule(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.HasChildScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.HasChildScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IncludedInCrawlScope(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IncludedInCrawlScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IncludedInCrawlScope)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IncludedInCrawlScopeEx(&self, pszurl: P0, pfisincluded: *mut super::super::Foundation::BOOL, preason: *mut CLUSION_REASON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IncludedInCrawlScopeEx)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), pfisincluded, preason).ok() + (windows_core::Interface::vtable(self).base__.IncludedInCrawlScopeEx)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pfisincluded, preason).ok() } pub unsafe fn RevertToDefaultScopes(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RevertToDefaultScopes)(windows_core::Interface::as_raw(self)).ok() @@ -5675,16 +5675,16 @@ impl ISearchCrawlScopeManager2 { } pub unsafe fn GetParentScopeVersionId(&self, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetParentScopeVersionId)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetParentScopeVersionId)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RemoveDefaultScopeRule(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveDefaultScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn GetVersion(&self, plversion: *mut *mut i32, phfilemapping: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetVersion)(windows_core::Interface::as_raw(self), plversion, phfilemapping).ok() @@ -5700,15 +5700,15 @@ windows_core::imp::interface_hierarchy!(ISearchItemsChangedSink, windows_core::I impl ISearchItemsChangedSink { pub unsafe fn StartedMonitoringScope(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn StoppedMonitoringScope(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StoppedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StoppedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } #[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<()> { @@ -5730,9 +5730,9 @@ windows_core::imp::interface_hierarchy!(ISearchLanguageSupport, windows_core::IU impl ISearchLanguageSupport { pub unsafe fn SetDiacriticSensitivity(&self, fdiacriticsensitive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.param().abi()).ok() } pub unsafe fn GetDiacriticSensitivity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5778,16 +5778,16 @@ impl ISearchManager { } pub unsafe fn GetParameter(&self, pszname: P0) -> windows_core::Result<*mut windows_core::PROPVARIANT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetParameter(&self, pszname: P0, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).SetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pvalue)).ok() } pub unsafe fn ProxyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5799,18 +5799,18 @@ impl ISearchManager { } pub unsafe fn SetProxy(&self, suseproxy: PROXY_ACCESS, flocalbypassproxy: P0, dwportnumber: u32, pszproxyname: P1, pszbypasslist: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), suseproxy, flocalbypassproxy.into_param().abi(), dwportnumber, pszproxyname.into_param().abi(), pszbypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProxy)(windows_core::Interface::as_raw(self), suseproxy, flocalbypassproxy.param().abi(), dwportnumber, pszproxyname.param().abi(), pszbypasslist.param().abi()).ok() } pub unsafe fn GetCatalog(&self, pszcatalog: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCatalog)(windows_core::Interface::as_raw(self), pszcatalog.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCatalog)(windows_core::Interface::as_raw(self), pszcatalog.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UserAgent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5818,9 +5818,9 @@ impl ISearchManager { } pub unsafe fn SetUserAgent(&self, pszuseragent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserAgent)(windows_core::Interface::as_raw(self), pszuseragent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserAgent)(windows_core::Interface::as_raw(self), pszuseragent.param().abi()).ok() } pub unsafe fn UseProxy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5864,16 +5864,16 @@ impl ISearchManager2 { } pub unsafe fn GetParameter(&self, pszname: P0) -> windows_core::Result<*mut windows_core::PROPVARIANT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetParameter(&self, pszname: P0, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetParameter)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), core::mem::transmute(pvalue)).ok() + (windows_core::Interface::vtable(self).base__.SetParameter)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pvalue)).ok() } pub unsafe fn ProxyName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5885,18 +5885,18 @@ impl ISearchManager2 { } pub unsafe fn SetProxy(&self, suseproxy: PROXY_ACCESS, flocalbypassproxy: P0, dwportnumber: u32, pszproxyname: P1, pszbypasslist: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProxy)(windows_core::Interface::as_raw(self), suseproxy, flocalbypassproxy.into_param().abi(), dwportnumber, pszproxyname.into_param().abi(), pszbypasslist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProxy)(windows_core::Interface::as_raw(self), suseproxy, flocalbypassproxy.param().abi(), dwportnumber, pszproxyname.param().abi(), pszbypasslist.param().abi()).ok() } pub unsafe fn GetCatalog(&self, pszcatalog: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCatalog)(windows_core::Interface::as_raw(self), pszcatalog.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCatalog)(windows_core::Interface::as_raw(self), pszcatalog.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UserAgent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5904,9 +5904,9 @@ impl ISearchManager2 { } pub unsafe fn SetUserAgent(&self, pszuseragent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUserAgent)(windows_core::Interface::as_raw(self), pszuseragent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUserAgent)(windows_core::Interface::as_raw(self), pszuseragent.param().abi()).ok() } pub unsafe fn UseProxy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5922,16 +5922,16 @@ impl ISearchManager2 { } pub unsafe fn CreateCatalog(&self, pszcatalog: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCatalog)(windows_core::Interface::as_raw(self), pszcatalog.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCatalog)(windows_core::Interface::as_raw(self), pszcatalog.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteCatalog(&self, pszcatalog: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteCatalog)(windows_core::Interface::as_raw(self), pszcatalog.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteCatalog)(windows_core::Interface::as_raw(self), pszcatalog.param().abi()).ok() } } #[repr(C)] @@ -5961,15 +5961,15 @@ windows_core::imp::interface_hierarchy!(ISearchPersistentItemsChangedSink, windo impl ISearchPersistentItemsChangedSink { pub unsafe fn StartedMonitoringScope(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn StoppedMonitoringScope(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StoppedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StoppedMonitoringScope)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn OnItemsChanged(&self, dwnumberofchanges: u32, datachangeentries: *const SEARCH_ITEM_PERSISTENT_CHANGE, hrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnItemsChanged)(windows_core::Interface::as_raw(self), dwnumberofchanges, datachangeentries, hrcompletioncodes).ok() @@ -5987,22 +5987,22 @@ windows_core::imp::interface_hierarchy!(ISearchProtocol, windows_core::IUnknown) impl ISearchProtocol { pub unsafe fn Init(&self, ptimeoutinfo: *const TIMEOUT_INFO, pprotocolhandlersite: P0, pproxyinfo: *const PROXY_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), ptimeoutinfo, pprotocolhandlersite.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAccessor)(windows_core::Interface::as_raw(self), pcwszurl.into_param().abi(), pauthenticationinfo, pincrementalaccessinfo, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CloseAccessor)(windows_core::Interface::as_raw(self), paccessor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CloseAccessor)(windows_core::Interface::as_raw(self), paccessor.param().abi()).ok() } pub unsafe fn ShutDown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShutDown)(windows_core::Interface::as_raw(self)).ok() @@ -6021,22 +6021,22 @@ windows_core::imp::interface_hierarchy!(ISearchProtocol2, windows_core::IUnknown impl ISearchProtocol2 { pub unsafe fn Init(&self, ptimeoutinfo: *const TIMEOUT_INFO, pprotocolhandlersite: P0, pproxyinfo: *const PROXY_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Init)(windows_core::Interface::as_raw(self), ptimeoutinfo, pprotocolhandlersite.into_param().abi(), pproxyinfo).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateAccessor)(windows_core::Interface::as_raw(self), pcwszurl.into_param().abi(), pauthenticationinfo, pincrementalaccessinfo, piteminfo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CloseAccessor)(windows_core::Interface::as_raw(self), paccessor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CloseAccessor)(windows_core::Interface::as_raw(self), paccessor.param().abi()).ok() } pub unsafe fn ShutDown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ShutDown)(windows_core::Interface::as_raw(self)).ok() @@ -6044,10 +6044,10 @@ impl ISearchProtocol2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAccessorEx(&self, pcwszurl: P0, pauthenticationinfo: *const AUTHENTICATION_INFO, pincrementalaccessinfo: *const INCREMENTAL_ACCESS_INFO, piteminfo: *const ITEM_INFO, puserdata: *const super::Com::BLOB) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAccessorEx)(windows_core::Interface::as_raw(self), pcwszurl.into_param().abi(), pauthenticationinfo, pincrementalaccessinfo, piteminfo, 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)] @@ -6115,9 +6115,9 @@ impl ISearchQueryHelper { } pub unsafe fn SetQueryContentProperties(&self, pszcontentproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQueryContentProperties)(windows_core::Interface::as_raw(self), pszcontentproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQueryContentProperties)(windows_core::Interface::as_raw(self), pszcontentproperties.param().abi()).ok() } pub unsafe fn QueryContentProperties(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6125,9 +6125,9 @@ impl ISearchQueryHelper { } pub unsafe fn SetQuerySelectColumns(&self, pszselectcolumns: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuerySelectColumns)(windows_core::Interface::as_raw(self), pszselectcolumns.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuerySelectColumns)(windows_core::Interface::as_raw(self), pszselectcolumns.param().abi()).ok() } pub unsafe fn QuerySelectColumns(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6135,9 +6135,9 @@ impl ISearchQueryHelper { } pub unsafe fn SetQueryWhereRestrictions(&self, pszrestrictions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQueryWhereRestrictions)(windows_core::Interface::as_raw(self), pszrestrictions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQueryWhereRestrictions)(windows_core::Interface::as_raw(self), pszrestrictions.param().abi()).ok() } pub unsafe fn QueryWhereRestrictions(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6145,9 +6145,9 @@ impl ISearchQueryHelper { } pub unsafe fn SetQuerySorting(&self, pszsorting: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetQuerySorting)(windows_core::Interface::as_raw(self), pszsorting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetQuerySorting)(windows_core::Interface::as_raw(self), pszsorting.param().abi()).ok() } pub unsafe fn QuerySorting(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6155,10 +6155,10 @@ impl ISearchQueryHelper { } pub unsafe fn GenerateSQLFromUserQuery(&self, pszquery: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GenerateSQLFromUserQuery)(windows_core::Interface::as_raw(self), pszquery.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GenerateSQLFromUserQuery)(windows_core::Interface::as_raw(self), pszquery.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn WriteProperties(&self, itemid: i32, dwnumberofcolumns: u32, pcolumns: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalues: *const SEARCH_COLUMN_PROPERTIES, pftgathermodifiedtime: *const super::super::Foundation::FILETIME) -> windows_core::Result<()> { @@ -6206,9 +6206,9 @@ impl ISearchQueryHits { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn Init(&self, pflt: P0, ulflags: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pflt.into_param().abi(), 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 { @@ -6240,9 +6240,9 @@ windows_core::imp::interface_hierarchy!(ISearchRoot, windows_core::IUnknown); impl ISearchRoot { pub unsafe fn SetSchedule(&self, psztaskarg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSchedule)(windows_core::Interface::as_raw(self), psztaskarg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSchedule)(windows_core::Interface::as_raw(self), psztaskarg.param().abi()).ok() } pub unsafe fn Schedule(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6250,9 +6250,9 @@ impl ISearchRoot { } pub unsafe fn SetRootURL(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRootURL)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRootURL)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn RootURL(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6260,9 +6260,9 @@ impl ISearchRoot { } pub unsafe fn SetIsHierarchical(&self, fishierarchical: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsHierarchical)(windows_core::Interface::as_raw(self), fishierarchical.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsHierarchical)(windows_core::Interface::as_raw(self), fishierarchical.param().abi()).ok() } pub unsafe fn IsHierarchical(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6270,9 +6270,9 @@ impl ISearchRoot { } pub unsafe fn SetProvidesNotifications(&self, fprovidesnotifications: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProvidesNotifications)(windows_core::Interface::as_raw(self), fprovidesnotifications.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProvidesNotifications)(windows_core::Interface::as_raw(self), fprovidesnotifications.param().abi()).ok() } pub unsafe fn ProvidesNotifications(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6280,9 +6280,9 @@ impl ISearchRoot { } pub unsafe fn SetUseNotificationsOnly(&self, fusenotificationsonly: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseNotificationsOnly)(windows_core::Interface::as_raw(self), fusenotificationsonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseNotificationsOnly)(windows_core::Interface::as_raw(self), fusenotificationsonly.param().abi()).ok() } pub unsafe fn UseNotificationsOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6304,9 +6304,9 @@ impl ISearchRoot { } pub unsafe fn SetFollowDirectories(&self, ffollowdirectories: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFollowDirectories)(windows_core::Interface::as_raw(self), ffollowdirectories.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFollowDirectories)(windows_core::Interface::as_raw(self), ffollowdirectories.param().abi()).ok() } pub unsafe fn FollowDirectories(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6321,9 +6321,9 @@ impl ISearchRoot { } pub unsafe fn SetUser(&self, pszuser: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUser)(windows_core::Interface::as_raw(self), pszuser.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUser)(windows_core::Interface::as_raw(self), pszuser.param().abi()).ok() } pub unsafe fn User(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6331,9 +6331,9 @@ impl ISearchRoot { } pub unsafe fn SetPassword(&self, pszpassword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), pszpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), pszpassword.param().abi()).ok() } pub unsafe fn Password(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6441,9 +6441,9 @@ windows_core::imp::interface_hierarchy!(IService, windows_core::IUnknown); impl IService { pub unsafe fn InvokeService(&self, punkinner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeService)(windows_core::Interface::as_raw(self), punkinner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeService)(windows_core::Interface::as_raw(self), punkinner.param().abi()).ok() } } #[repr(C)] @@ -6480,22 +6480,22 @@ windows_core::imp::interface_hierarchy!(ISimpleCommandCreator, windows_core::IUn impl ISimpleCommandCreator { pub unsafe fn CreateICommand(&self, ppiunknown: *mut Option, pouterunk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateICommand)(windows_core::Interface::as_raw(self), core::mem::transmute(ppiunknown), pouterunk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateICommand)(windows_core::Interface::as_raw(self), core::mem::transmute(ppiunknown), pouterunk.param().abi()).ok() } pub unsafe fn VerifyCatalog(&self, pwszmachine: P0, pwszcatalogname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).VerifyCatalog)(windows_core::Interface::as_raw(self), pwszmachine.into_param().abi(), pwszcatalogname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).VerifyCatalog)(windows_core::Interface::as_raw(self), pwszmachine.param().abi(), pwszcatalogname.param().abi()).ok() } pub unsafe fn GetDefaultCatalog(&self, pwszcatalogname: P0, cwcin: u32, pcwcout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDefaultCatalog)(windows_core::Interface::as_raw(self), pwszcatalogname.into_param().abi(), cwcin, pcwcout).ok() + (windows_core::Interface::vtable(self).GetDefaultCatalog)(windows_core::Interface::as_raw(self), pwszcatalogname.param().abi(), cwcin, pcwcout).ok() } } #[repr(C)] @@ -6511,9 +6511,9 @@ impl ISourcesRowset { #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn GetSourcesRowset(&self, punkouter: P0, riid: *const windows_core::GUID, rgproperties: Option<&mut [DBPROPSET]>, ppsourcesrowset: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSourcesRowset)(windows_core::Interface::as_raw(self), punkouter.into_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() + (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)] @@ -6532,10 +6532,10 @@ impl IStemmer { } pub unsafe fn GenerateWordForms(&self, pwcinbuf: P0, cwc: u32, pstemsink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateWordForms)(windows_core::Interface::as_raw(self), pwcinbuf.into_param().abi(), cwc, pstemsink.into_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), ppwcslicense).ok() @@ -6591,50 +6591,50 @@ windows_core::imp::interface_hierarchy!(ISubscriptionMgr, windows_core::IUnknown impl ISubscriptionMgr { pub unsafe fn DeleteSubscription(&self, pwszurl: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteSubscription)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteSubscription)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn UpdateSubscription(&self, pwszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateSubscription)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateSubscription)(windows_core::Interface::as_raw(self), pwszurl.param().abi()).ok() } pub unsafe fn UpdateAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateAll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn IsSubscribed(&self, pwszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSubscriptionInfo(&self, pwszurl: P0, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSubscriptionInfo)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pinfo).ok() + (windows_core::Interface::vtable(self).GetSubscriptionInfo)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), 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), subtype, pinfo).ok() } pub unsafe fn ShowSubscriptionProperties(&self, pwszurl: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowSubscriptionProperties)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowSubscriptionProperties)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn CreateSubscription(&self, hwnd: P0, pwszurl: P1, pwszfriendlyname: P2, dwflags: u32, substype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateSubscription)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pwszurl.into_param().abi(), pwszfriendlyname.into_param().abi(), dwflags, substype, pinfo).ok() + (windows_core::Interface::vtable(self).CreateSubscription)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pwszurl.param().abi(), pwszfriendlyname.param().abi(), dwflags, substype, pinfo).ok() } } #[repr(C)] @@ -6654,57 +6654,57 @@ windows_core::imp::interface_hierarchy!(ISubscriptionMgr2, windows_core::IUnknow impl ISubscriptionMgr2 { pub unsafe fn DeleteSubscription(&self, pwszurl: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteSubscription)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteSubscription)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn UpdateSubscription(&self, pwszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateSubscription)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateSubscription)(windows_core::Interface::as_raw(self), pwszurl.param().abi()).ok() } pub unsafe fn UpdateAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UpdateAll)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn IsSubscribed(&self, pwszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsSubscribed)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsSubscribed)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSubscriptionInfo(&self, pwszurl: P0, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetSubscriptionInfo)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), pinfo).ok() + (windows_core::Interface::vtable(self).base__.GetSubscriptionInfo)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), pinfo).ok() } pub unsafe fn GetDefaultInfo(&self, subtype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetDefaultInfo)(windows_core::Interface::as_raw(self), subtype, pinfo).ok() } pub unsafe fn ShowSubscriptionProperties(&self, pwszurl: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShowSubscriptionProperties)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ShowSubscriptionProperties)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn CreateSubscription(&self, hwnd: P0, pwszurl: P1, pwszfriendlyname: P2, dwflags: u32, substype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CreateSubscription)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pwszurl.into_param().abi(), pwszfriendlyname.into_param().abi(), dwflags, substype, pinfo).ok() + (windows_core::Interface::vtable(self).base__.CreateSubscription)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pwszurl.param().abi(), pwszfriendlyname.param().abi(), dwflags, substype, pinfo).ok() } pub unsafe fn GetItemFromURL(&self, pwszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemFromURL)(windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemFromURL)(windows_core::Interface::as_raw(self), pwszurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetItemFromCookie(&self, psubscriptioncookie: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6744,11 +6744,11 @@ impl ITableCreation { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] pub unsafe fn CreateTable(&self, punkouter: P0, ptableid: Option<*const super::super::Storage::IndexServer::DBID>, rgcolumndescs: Option<&[DBCOLUMNDESC]>, riid: *const windows_core::GUID, rgpropertysets: Option<&mut [DBPROPSET]>, pptableid: Option<*mut *mut super::super::Storage::IndexServer::DBID>, pprowset: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).base__.CreateTable)( windows_core::Interface::as_raw(self), - punkouter.into_param().abi(), + punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(std::ptr::null())), 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())), @@ -6802,11 +6802,11 @@ impl ITableDefinition { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] pub unsafe fn CreateTable(&self, punkouter: P0, ptableid: Option<*const super::super::Storage::IndexServer::DBID>, rgcolumndescs: Option<&[DBCOLUMNDESC]>, riid: *const windows_core::GUID, rgpropertysets: Option<&mut [DBPROPSET]>, pptableid: Option<*mut *mut super::super::Storage::IndexServer::DBID>, pprowset: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).CreateTable)( windows_core::Interface::as_raw(self), - punkouter.into_param().abi(), + punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(std::ptr::null())), 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())), @@ -6857,11 +6857,11 @@ impl ITableDefinitionWithConstraints { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] pub unsafe fn CreateTable(&self, punkouter: P0, ptableid: Option<*const super::super::Storage::IndexServer::DBID>, rgcolumndescs: Option<&[DBCOLUMNDESC]>, riid: *const windows_core::GUID, rgpropertysets: Option<&mut [DBPROPSET]>, pptableid: Option<*mut *mut super::super::Storage::IndexServer::DBID>, pprowset: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { (windows_core::Interface::vtable(self).base__.base__.CreateTable)( windows_core::Interface::as_raw(self), - punkouter.into_param().abi(), + punkouter.param().abi(), core::mem::transmute(ptableid.unwrap_or(std::ptr::null())), 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())), @@ -6907,9 +6907,9 @@ impl ITableDefinitionWithConstraints { #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateTableWithConstraints)(windows_core::Interface::as_raw(self), punkouter.into_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()), 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()), 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<()> { @@ -6983,10 +6983,10 @@ impl ITransactionJoin { #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn JoinTransaction(&self, punktransactioncoord: P0, isolevel: i32, isoflags: u32, potheroptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).JoinTransaction)(windows_core::Interface::as_raw(self), punktransactioncoord.into_param().abi(), isolevel, isoflags, potheroptions.into_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)] @@ -7010,17 +7010,17 @@ impl ITransactionLocal { #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn Commit(&self, fretaining: P0, grftc: u32, grfrm: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Commit)(windows_core::Interface::as_raw(self), fretaining.into_param().abi(), grftc, grfrm).ok() + (windows_core::Interface::vtable(self).base__.Commit)(windows_core::Interface::as_raw(self), fretaining.param().abi(), grftc, grfrm).ok() } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn Abort(&self, pboidreason: *const super::DistributedTransactionCoordinator::BOID, fretaining: P0, fasync: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.into_param().abi(), fasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Abort)(windows_core::Interface::as_raw(self), pboidreason, fretaining.param().abi(), fasync.param().abi()).ok() } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn GetTransactionInfo(&self, pinfo: *mut super::DistributedTransactionCoordinator::XACTTRANSINFO) -> windows_core::Result<()> { @@ -7034,9 +7034,9 @@ impl ITransactionLocal { #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub unsafe fn StartTransaction(&self, isolevel: i32, isoflags: u32, potheroptions: P0, pultransactionlevel: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartTransaction)(windows_core::Interface::as_raw(self), isolevel, isoflags, potheroptions.into_param().abi(), core::mem::transmute(pultransactionlevel.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).StartTransaction)(windows_core::Interface::as_raw(self), isolevel, isoflags, potheroptions.param().abi(), core::mem::transmute(pultransactionlevel.unwrap_or(std::ptr::null_mut()))).ok() } } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] @@ -7413,9 +7413,9 @@ impl IUrlAccessor3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetImpersonationSidBlobs(&self, pcwszurl: P0, pcsidcount: *mut u32, ppsidblobs: *mut *mut super::Com::BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImpersonationSidBlobs)(windows_core::Interface::as_raw(self), pcwszurl.into_param().abi(), pcsidcount, ppsidblobs).ok() + (windows_core::Interface::vtable(self).GetImpersonationSidBlobs)(windows_core::Interface::as_raw(self), pcwszurl.param().abi(), pcsidcount, ppsidblobs).ok() } } #[repr(C)] @@ -7489,9 +7489,9 @@ impl IUrlAccessor4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetImpersonationSidBlobs(&self, pcwszurl: P0, pcsidcount: *mut u32, ppsidblobs: *mut *mut super::Com::BLOB) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetImpersonationSidBlobs)(windows_core::Interface::as_raw(self), pcwszurl.into_param().abi(), pcsidcount, ppsidblobs).ok() + (windows_core::Interface::vtable(self).base__.GetImpersonationSidBlobs)(windows_core::Interface::as_raw(self), pcwszurl.param().abi(), pcsidcount, ppsidblobs).ok() } pub unsafe fn ShouldIndexItemContent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7534,9 +7534,9 @@ windows_core::imp::interface_hierarchy!(IViewFilter, windows_core::IUnknown); impl IViewFilter { pub unsafe fn GetFilter(&self, haccessor: P0, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), pcrows, pcompareops, pcriteriadata).ok() + (windows_core::Interface::vtable(self).GetFilter)(windows_core::Interface::as_raw(self), haccessor.param().abi(), pcrows, pcompareops, pcriteriadata).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFilterBindings(&self, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::Result<()> { @@ -7544,9 +7544,9 @@ impl IViewFilter { } pub unsafe fn SetFilter(&self, haccessor: P0, compareops: &[u32], pcriteriadata: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), haccessor.into_param().abi(), compareops.len().try_into().unwrap(), core::mem::transmute(compareops.as_ptr()), pcriteriadata).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), haccessor.param().abi(), compareops.len().try_into().unwrap(), core::mem::transmute(compareops.as_ptr()), pcriteriadata).ok() } } #[repr(C)] @@ -7568,10 +7568,10 @@ impl IViewRowset { } pub unsafe fn OpenViewRowset(&self, punkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenViewRowset)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), 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)] @@ -7601,25 +7601,25 @@ windows_core::imp::interface_hierarchy!(IWordBreaker, windows_core::IUnknown); impl IWordBreaker { pub unsafe fn Init(&self, fquery: P0, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), fquery.into_param().abi(), ulmaxtokensize, pflicense).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), fquery.param().abi(), ulmaxtokensize, pflicense).ok() } #[cfg(feature = "Win32_Storage_IndexServer")] pub unsafe fn BreakText(&self, ptextsource: *mut TEXT_SOURCE, pwordsink: P0, pphrasesink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BreakText)(windows_core::Interface::as_raw(self), ptextsource, pwordsink.into_param().abi(), pphrasesink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BreakText)(windows_core::Interface::as_raw(self), ptextsource, pwordsink.param().abi(), pphrasesink.param().abi()).ok() } pub unsafe fn ComposePhrase(&self, pwcnoun: P0, cwcnoun: u32, pwcmodifier: P1, cwcmodifier: u32, ulattachmenttype: u32, pwcphrase: P2, pcwcphrase: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ComposePhrase)(windows_core::Interface::as_raw(self), pwcnoun.into_param().abi(), cwcnoun, pwcmodifier.into_param().abi(), cwcmodifier, ulattachmenttype, pwcphrase.into_param().abi(), 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(), 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), ppwcslicense).ok() @@ -7641,15 +7641,15 @@ windows_core::imp::interface_hierarchy!(IWordFormSink, windows_core::IUnknown); impl IWordFormSink { pub unsafe fn PutAltWord(&self, pwcinbuf: P0, cwc: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), pwcinbuf.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.into_param().abi(), cwc).ok() + (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), pwcinbuf.param().abi(), cwc).ok() } } #[repr(C)] @@ -7663,15 +7663,15 @@ windows_core::imp::interface_hierarchy!(IWordSink, windows_core::IUnknown); impl IWordSink { pub unsafe fn PutWord(&self, cwc: u32, pwcinbuf: P0, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutWord)(windows_core::Interface::as_raw(self), cwc, pwcinbuf.into_param().abi(), cwcsrclen, 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: P0, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAltWord)(windows_core::Interface::as_raw(self), cwc, pwcinbuf.into_param().abi(), cwcsrclen, 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() @@ -7717,9 +7717,9 @@ impl OLEDBSimpleProvider { } pub unsafe fn setVariant(&self, irow: isize, icolumn: isize, format: OSPFORMAT, var: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setVariant)(windows_core::Interface::as_raw(self), irow, icolumn, format, var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setVariant)(windows_core::Interface::as_raw(self), irow, icolumn, format, var.param().abi()).ok() } pub unsafe fn getLocale(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7735,22 +7735,22 @@ impl OLEDBSimpleProvider { } pub unsafe fn find(&self, irowstart: isize, icolumn: isize, val: P0, findflags: OSPFIND, comptype: OSPCOMP) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).find)(windows_core::Interface::as_raw(self), irowstart, icolumn, val.into_param().abi(), findflags, comptype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).find)(windows_core::Interface::as_raw(self), irowstart, icolumn, val.param().abi(), findflags, comptype, &mut result__).map(|| result__) } pub unsafe fn addOLEDBSimpleProviderListener(&self, pospilistener: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).addOLEDBSimpleProviderListener)(windows_core::Interface::as_raw(self), pospilistener.into_param().abi()).ok() + (windows_core::Interface::vtable(self).addOLEDBSimpleProviderListener)(windows_core::Interface::as_raw(self), pospilistener.param().abi()).ok() } pub unsafe fn removeOLEDBSimpleProviderListener(&self, pospilistener: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeOLEDBSimpleProviderListener)(windows_core::Interface::as_raw(self), pospilistener.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeOLEDBSimpleProviderListener)(windows_core::Interface::as_raw(self), pospilistener.param().abi()).ok() } pub unsafe fn isAsync(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 7308bc81d7..6daa7f7979 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs @@ -28,10 +28,10 @@ pub unsafe fn WscRegisterForUserNotifications() -> windows_core::Result<()> { #[inline] pub unsafe fn WscUnRegisterChanges(hregistrationhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wscapi.dll" "system" fn WscUnRegisterChanges(hregistrationhandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WscUnRegisterChanges(hregistrationhandle.into_param().abi()).ok() + WscUnRegisterChanges(hregistrationhandle.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IWSCDefaultProduct, IWSCDefaultProduct_Vtbl, 0x0476d69c_f21a_11e5_9ce9_5e5517507c66); @@ -41,9 +41,9 @@ windows_core::imp::interface_hierarchy!(IWSCDefaultProduct, windows_core::IUnkno impl IWSCDefaultProduct { pub unsafe fn SetDefaultProduct(&self, etype: SECURITY_PRODUCT_TYPE, pguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultProduct)(windows_core::Interface::as_raw(self), etype, pguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultProduct)(windows_core::Interface::as_raw(self), etype, pguid.param().abi()).ok() } } #[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 71fbc6a50a..449ceadc0f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs @@ -20,12 +20,12 @@ windows_core::imp::interface_hierarchy!(IWsbApplicationBackupSupport, windows_co impl IWsbApplicationBackupSupport { pub unsafe fn CheckConsistency(&self, wszwritermetadata: P0, wszcomponentname: P1, wszcomponentlogicalpath: P2, cvolumes: u32, rgwszsourcevolumepath: *const windows_core::PCWSTR, rgwszsnapshotvolumepath: *const windows_core::PCWSTR) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckConsistency)(windows_core::Interface::as_raw(self), wszwritermetadata.into_param().abi(), wszcomponentname.into_param().abi(), wszcomponentlogicalpath.into_param().abi(), cvolumes, rgwszsourcevolumepath, 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)] @@ -38,21 +38,21 @@ windows_core::imp::interface_hierarchy!(IWsbApplicationRestoreSupport, windows_c impl IWsbApplicationRestoreSupport { pub unsafe fn PreRestore(&self, wszwritermetadata: P0, wszcomponentname: P1, wszcomponentlogicalpath: P2, bnorollforward: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PreRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.into_param().abi(), wszcomponentname.into_param().abi(), wszcomponentlogicalpath.into_param().abi(), bnorollforward.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PreRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), bnorollforward.param().abi()).ok() } pub unsafe fn PostRestore(&self, wszwritermetadata: P0, wszcomponentname: P1, wszcomponentlogicalpath: P2, bnorollforward: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PostRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.into_param().abi(), wszcomponentname.into_param().abi(), wszcomponentlogicalpath.into_param().abi(), bnorollforward.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PostRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), bnorollforward.param().abi()).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), ccomponents, rgcomponentname, rgcomponentlogicalpaths, prgcomponentname, prgcomponentlogicalpath).ok() 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 8c3a27b2d7..9a2d5fb738 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs @@ -2,500 +2,500 @@ #[inline] pub unsafe fn ChangeServiceConfig2A(hservice: P0, dwinfolevel: SERVICE_CONFIG, lpinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2A(hservice : super::super::Security:: SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ChangeServiceConfig2A(hservice.into_param().abi(), dwinfolevel, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null()))).ok() + ChangeServiceConfig2A(hservice.param().abi(), dwinfolevel, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ChangeServiceConfig2W(hservice: P0, dwinfolevel: SERVICE_CONFIG, lpinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2W(hservice : super::super::Security:: SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); - ChangeServiceConfig2W(hservice.into_param().abi(), dwinfolevel, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null()))).ok() + ChangeServiceConfig2W(hservice.param().abi(), dwinfolevel, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ChangeServiceConfigA(hservice: P0, dwservicetype: ENUM_SERVICE_TYPE, dwstarttype: SERVICE_START_TYPE, dwerrorcontrol: SERVICE_ERROR, lpbinarypathname: P1, lploadordergroup: P2, lpdwtagid: Option<*mut u32>, lpdependencies: P3, lpservicestartname: P4, lppassword: P5, lpdisplayname: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigA(hservice : super::super::Security:: 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(hservice.into_param().abi(), dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.into_param().abi(), lploadordergroup.into_param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.into_param().abi(), lpservicestartname.into_param().abi(), lppassword.into_param().abi(), lpdisplayname.into_param().abi()).ok() + ChangeServiceConfigA(hservice.param().abi(), dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ChangeServiceConfigW(hservice: P0, dwservicetype: ENUM_SERVICE_TYPE, dwstarttype: SERVICE_START_TYPE, dwerrorcontrol: SERVICE_ERROR, lpbinarypathname: P1, lploadordergroup: P2, lpdwtagid: Option<*mut u32>, lpdependencies: P3, lpservicestartname: P4, lppassword: P5, lpdisplayname: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigW(hservice : super::super::Security:: 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(hservice.into_param().abi(), dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.into_param().abi(), lploadordergroup.into_param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.into_param().abi(), lpservicestartname.into_param().abi(), lppassword.into_param().abi(), lpdisplayname.into_param().abi()).ok() + ChangeServiceConfigW(hservice.param().abi(), dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CloseServiceHandle(hscobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CloseServiceHandle(hscobject : super::super::Security:: SC_HANDLE) -> super::super::Foundation:: BOOL); - CloseServiceHandle(hscobject.into_param().abi()).ok() + CloseServiceHandle(hscobject.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ControlService(hservice: P0, dwcontrol: u32, lpservicestatus: *mut SERVICE_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ControlService(hservice : super::super::Security:: SC_HANDLE, dwcontrol : u32, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); - ControlService(hservice.into_param().abi(), dwcontrol, lpservicestatus).ok() + ControlService(hservice.param().abi(), dwcontrol, lpservicestatus).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ControlServiceExA(hservice: P0, dwcontrol: u32, dwinfolevel: u32, pcontrolparams: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ControlServiceExA(hservice : super::super::Security:: SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - ControlServiceExA(hservice.into_param().abi(), dwcontrol, dwinfolevel, pcontrolparams).ok() + ControlServiceExA(hservice.param().abi(), dwcontrol, dwinfolevel, pcontrolparams).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ControlServiceExW(hservice: P0, dwcontrol: u32, dwinfolevel: u32, pcontrolparams: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn ControlServiceExW(hservice : super::super::Security:: SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - ControlServiceExW(hservice.into_param().abi(), dwcontrol, dwinfolevel, pcontrolparams).ok() + ControlServiceExW(hservice.param().abi(), dwcontrol, dwinfolevel, pcontrolparams).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateServiceA(hscmanager: P0, lpservicename: P1, lpdisplayname: P2, dwdesiredaccess: u32, dwservicetype: ENUM_SERVICE_TYPE, dwstarttype: SERVICE_START_TYPE, dwerrorcontrol: SERVICE_ERROR, lpbinarypathname: P3, lploadordergroup: P4, lpdwtagid: Option<*mut u32>, lpdependencies: P5, lpservicestartname: P6, lppassword: P7) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateServiceA(hscmanager : super::super::Security:: 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) -> super::super::Security:: SC_HANDLE); - let result__ = CreateServiceA(hscmanager.into_param().abi(), lpservicename.into_param().abi(), lpdisplayname.into_param().abi(), dwdesiredaccess, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.into_param().abi(), lploadordergroup.into_param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.into_param().abi(), lpservicestartname.into_param().abi(), lppassword.into_param().abi()); + let result__ = CreateServiceA(hscmanager.param().abi(), lpservicename.param().abi(), lpdisplayname.param().abi(), dwdesiredaccess, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateServiceW(hscmanager: P0, lpservicename: P1, lpdisplayname: P2, dwdesiredaccess: u32, dwservicetype: ENUM_SERVICE_TYPE, dwstarttype: SERVICE_START_TYPE, dwerrorcontrol: SERVICE_ERROR, lpbinarypathname: P3, lploadordergroup: P4, lpdwtagid: Option<*mut u32>, lpdependencies: P5, lpservicestartname: P6, lppassword: P7) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateServiceW(hscmanager : super::super::Security:: 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) -> super::super::Security:: SC_HANDLE); - let result__ = CreateServiceW(hscmanager.into_param().abi(), lpservicename.into_param().abi(), lpdisplayname.into_param().abi(), dwdesiredaccess, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.into_param().abi(), lploadordergroup.into_param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.into_param().abi(), lpservicestartname.into_param().abi(), lppassword.into_param().abi()); + let result__ = CreateServiceW(hscmanager.param().abi(), lpservicename.param().abi(), lpdisplayname.param().abi(), dwdesiredaccess, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), core::mem::transmute(lpdwtagid.unwrap_or(std::ptr::null_mut())), lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DeleteService(hservice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn DeleteService(hservice : super::super::Security:: SC_HANDLE) -> super::super::Foundation:: BOOL); - DeleteService(hservice.into_param().abi()).ok() + DeleteService(hservice.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EnumDependentServicesA(hservice: P0, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesA(hservice : super::super::Security:: SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumDependentServicesA(hservice.into_param().abi(), dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned).ok() + EnumDependentServicesA(hservice.param().abi(), dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EnumDependentServicesW(hservice: P0, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesW(hservice : super::super::Security:: SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> super::super::Foundation:: BOOL); - EnumDependentServicesW(hservice.into_param().abi(), dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned).ok() + EnumDependentServicesW(hservice.param().abi(), dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EnumServicesStatusA(hscmanager: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusA(hscmanager : super::super::Security:: 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(hscmanager.into_param().abi(), dwservicetype, dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut()))).ok() + EnumServicesStatusA(hscmanager.param().abi(), dwservicetype, dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EnumServicesStatusExA(hscmanager: P0, 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExA(hscmanager : super::super::Security:: 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(hscmanager.into_param().abi(), 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()), pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut())), pszgroupname.into_param().abi()).ok() + EnumServicesStatusExA(hscmanager.param().abi(), 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()), pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut())), pszgroupname.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EnumServicesStatusExW(hscmanager: P0, 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExW(hscmanager : super::super::Security:: 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(hscmanager.into_param().abi(), 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()), pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut())), pszgroupname.into_param().abi()).ok() + EnumServicesStatusExW(hscmanager.param().abi(), 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()), pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut())), pszgroupname.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EnumServicesStatusW(hscmanager: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusW(hscmanager : super::super::Security:: 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(hscmanager.into_param().abi(), dwservicetype, dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut()))).ok() + EnumServicesStatusW(hscmanager.param().abi(), dwservicetype, dwservicestate, core::mem::transmute(lpservices.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded, lpservicesreturned, core::mem::transmute(lpresumehandle.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetServiceDirectory(hservicestatus: P0, edirectorytype: SERVICE_DIRECTORY_TYPE, lppathbuffer: Option<&mut [u16]>, lpcchrequiredbufferlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hservicestatus.into_param().abi(), 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()), lpcchrequiredbufferlength) + GetServiceDirectory(hservicestatus.param().abi(), 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()), lpcchrequiredbufferlength) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn GetServiceDisplayNameA(hscmanager: P0, lpservicename: P1, lpdisplayname: windows_core::PSTR, lpcchbuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameA(hscmanager : super::super::Security:: SC_HANDLE, lpservicename : windows_core::PCSTR, lpdisplayname : windows_core::PSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceDisplayNameA(hscmanager.into_param().abi(), lpservicename.into_param().abi(), core::mem::transmute(lpdisplayname), lpcchbuffer).ok() + GetServiceDisplayNameA(hscmanager.param().abi(), lpservicename.param().abi(), core::mem::transmute(lpdisplayname), lpcchbuffer).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn GetServiceDisplayNameW(hscmanager: P0, lpservicename: P1, lpdisplayname: windows_core::PWSTR, lpcchbuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameW(hscmanager : super::super::Security:: SC_HANDLE, lpservicename : windows_core::PCWSTR, lpdisplayname : windows_core::PWSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceDisplayNameW(hscmanager.into_param().abi(), lpservicename.into_param().abi(), core::mem::transmute(lpdisplayname), lpcchbuffer).ok() + GetServiceDisplayNameW(hscmanager.param().abi(), lpservicename.param().abi(), core::mem::transmute(lpdisplayname), lpcchbuffer).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn GetServiceKeyNameA(hscmanager: P0, lpdisplayname: P1, lpservicename: windows_core::PSTR, lpcchbuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameA(hscmanager : super::super::Security:: SC_HANDLE, lpdisplayname : windows_core::PCSTR, lpservicename : windows_core::PSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceKeyNameA(hscmanager.into_param().abi(), lpdisplayname.into_param().abi(), core::mem::transmute(lpservicename), lpcchbuffer).ok() + GetServiceKeyNameA(hscmanager.param().abi(), lpdisplayname.param().abi(), core::mem::transmute(lpservicename), lpcchbuffer).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn GetServiceKeyNameW(hscmanager: P0, lpdisplayname: P1, lpservicename: windows_core::PWSTR, lpcchbuffer: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameW(hscmanager : super::super::Security:: SC_HANDLE, lpdisplayname : windows_core::PCWSTR, lpservicename : windows_core::PWSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); - GetServiceKeyNameW(hscmanager.into_param().abi(), lpdisplayname.into_param().abi(), core::mem::transmute(lpservicename), lpcchbuffer).ok() + GetServiceKeyNameW(hscmanager.param().abi(), lpdisplayname.param().abi(), core::mem::transmute(lpservicename), lpcchbuffer).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn GetServiceRegistryStateKey(servicestatushandle: P0, statetype: SERVICE_REGISTRY_STATE_TYPE, accessmask: u32, servicestatekey: *mut super::Registry::HKEY) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(servicestatushandle.into_param().abi(), statetype, accessmask, servicestatekey) + GetServiceRegistryStateKey(servicestatushandle.param().abi(), statetype, accessmask, servicestatekey) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn GetSharedServiceDirectory(servicehandle: P0, directorytype: SERVICE_SHARED_DIRECTORY_TYPE, pathbuffer: Option<&mut [u16]>, requiredbufferlength: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-service-core-l1-1-5.dll" "system" fn GetSharedServiceDirectory(servicehandle : super::super::Security:: SC_HANDLE, directorytype : SERVICE_SHARED_DIRECTORY_TYPE, pathbuffer : windows_core::PWSTR, pathbufferlength : u32, requiredbufferlength : *mut u32) -> u32); - GetSharedServiceDirectory(servicehandle.into_param().abi(), 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()), requiredbufferlength) + GetSharedServiceDirectory(servicehandle.param().abi(), 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()), requiredbufferlength) } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn GetSharedServiceRegistryStateKey(servicehandle: P0, statetype: SERVICE_SHARED_REGISTRY_STATE_TYPE, accessmask: u32, servicestatekey: *mut super::Registry::HKEY) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-service-core-l1-1-5.dll" "system" fn GetSharedServiceRegistryStateKey(servicehandle : super::super::Security:: SC_HANDLE, statetype : SERVICE_SHARED_REGISTRY_STATE_TYPE, accessmask : u32, servicestatekey : *mut super::Registry:: HKEY) -> u32); - GetSharedServiceRegistryStateKey(servicehandle.into_param().abi(), statetype, accessmask, servicestatekey) + GetSharedServiceRegistryStateKey(servicehandle.param().abi(), statetype, accessmask, servicestatekey) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn LockServiceDatabase(hscmanager: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn LockServiceDatabase(hscmanager : super::super::Security:: SC_HANDLE) -> *mut core::ffi::c_void); - LockServiceDatabase(hscmanager.into_param().abi()) + LockServiceDatabase(hscmanager.param().abi()) } #[inline] pub unsafe fn NotifyBootConfigStatus(bootacceptable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn NotifyBootConfigStatus(bootacceptable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - NotifyBootConfigStatus(bootacceptable.into_param().abi()).ok() + NotifyBootConfigStatus(bootacceptable.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NotifyServiceStatusChangeA(hservice: P0, dwnotifymask: SERVICE_NOTIFY, pnotifybuffer: *const SERVICE_NOTIFY_2A) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn NotifyServiceStatusChangeA(hservice : super::super::Security:: SC_HANDLE, dwnotifymask : SERVICE_NOTIFY, pnotifybuffer : *const SERVICE_NOTIFY_2A) -> u32); - NotifyServiceStatusChangeA(hservice.into_param().abi(), dwnotifymask, pnotifybuffer) + NotifyServiceStatusChangeA(hservice.param().abi(), dwnotifymask, pnotifybuffer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NotifyServiceStatusChangeW(hservice: P0, dwnotifymask: SERVICE_NOTIFY, pnotifybuffer: *const SERVICE_NOTIFY_2W) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn NotifyServiceStatusChangeW(hservice : super::super::Security:: SC_HANDLE, dwnotifymask : SERVICE_NOTIFY, pnotifybuffer : *const SERVICE_NOTIFY_2W) -> u32); - NotifyServiceStatusChangeW(hservice.into_param().abi(), dwnotifymask, pnotifybuffer) + NotifyServiceStatusChangeW(hservice.param().abi(), dwnotifymask, pnotifybuffer) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenSCManagerA(lpmachinename: P0, lpdatabasename: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenSCManagerA(lpmachinename : windows_core::PCSTR, lpdatabasename : windows_core::PCSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); - let result__ = OpenSCManagerA(lpmachinename.into_param().abi(), lpdatabasename.into_param().abi(), dwdesiredaccess); + let result__ = OpenSCManagerA(lpmachinename.param().abi(), lpdatabasename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenSCManagerW(lpmachinename: P0, lpdatabasename: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenSCManagerW(lpmachinename : windows_core::PCWSTR, lpdatabasename : windows_core::PCWSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); - let result__ = OpenSCManagerW(lpmachinename.into_param().abi(), lpdatabasename.into_param().abi(), dwdesiredaccess); + let result__ = OpenSCManagerW(lpmachinename.param().abi(), lpdatabasename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenServiceA(hscmanager: P0, lpservicename: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenServiceA(hscmanager : super::super::Security:: SC_HANDLE, lpservicename : windows_core::PCSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); - let result__ = OpenServiceA(hscmanager.into_param().abi(), lpservicename.into_param().abi(), dwdesiredaccess); + let result__ = OpenServiceA(hscmanager.param().abi(), lpservicename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenServiceW(hscmanager: P0, lpservicename: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn OpenServiceW(hscmanager : super::super::Security:: SC_HANDLE, lpservicename : windows_core::PCWSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); - let result__ = OpenServiceW(hscmanager.into_param().abi(), lpservicename.into_param().abi(), dwdesiredaccess); + let result__ = OpenServiceW(hscmanager.param().abi(), lpservicename.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceConfig2A(hservice: P0, dwinfolevel: SERVICE_CONFIG, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2A(hservice : super::super::Security:: SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfig2A(hservice.into_param().abi(), 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()), pcbbytesneeded).ok() + QueryServiceConfig2A(hservice.param().abi(), 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()), pcbbytesneeded).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceConfig2W(hservice: P0, dwinfolevel: SERVICE_CONFIG, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2W(hservice : super::super::Security:: SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfig2W(hservice.into_param().abi(), 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()), pcbbytesneeded).ok() + QueryServiceConfig2W(hservice.param().abi(), 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()), pcbbytesneeded).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceConfigA(hservice: P0, lpserviceconfig: Option<*mut QUERY_SERVICE_CONFIGA>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigA(hservice : super::super::Security:: SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfigA(hservice.into_param().abi(), core::mem::transmute(lpserviceconfig.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() + QueryServiceConfigA(hservice.param().abi(), core::mem::transmute(lpserviceconfig.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceConfigW(hservice: P0, lpserviceconfig: Option<*mut QUERY_SERVICE_CONFIGW>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigW(hservice : super::super::Security:: SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceConfigW(hservice.into_param().abi(), core::mem::transmute(lpserviceconfig.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() + QueryServiceConfigW(hservice.param().abi(), core::mem::transmute(lpserviceconfig.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() } #[inline] pub unsafe fn QueryServiceDynamicInformation(hservicestatus: P0, dwinfolevel: u32, ppdynamicinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hservicestatus.into_param().abi(), dwinfolevel, ppdynamicinfo).ok() + QueryServiceDynamicInformation(hservicestatus.param().abi(), dwinfolevel, ppdynamicinfo).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceLockStatusA(hscmanager: P0, lplockstatus: Option<*mut QUERY_SERVICE_LOCK_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusA(hscmanager : super::super::Security:: SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceLockStatusA(hscmanager.into_param().abi(), core::mem::transmute(lplockstatus.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() + QueryServiceLockStatusA(hscmanager.param().abi(), core::mem::transmute(lplockstatus.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceLockStatusW(hscmanager: P0, lplockstatus: Option<*mut QUERY_SERVICE_LOCK_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusW(hscmanager : super::super::Security:: SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceLockStatusW(hscmanager.into_param().abi(), core::mem::transmute(lplockstatus.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() + QueryServiceLockStatusW(hscmanager.param().abi(), core::mem::transmute(lplockstatus.unwrap_or(std::ptr::null_mut())), cbbufsize, pcbbytesneeded).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceObjectSecurity(hservice: P0, dwsecurityinformation: u32, lpsecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceObjectSecurity(hservice : super::super::Security:: SC_HANDLE, dwsecurityinformation : u32, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceObjectSecurity(hservice.into_param().abi(), dwsecurityinformation, lpsecuritydescriptor, cbbufsize, pcbbytesneeded).ok() + QueryServiceObjectSecurity(hservice.param().abi(), dwsecurityinformation, lpsecuritydescriptor, cbbufsize, pcbbytesneeded).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceStatus(hservice: P0, lpservicestatus: *mut SERVICE_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatus(hservice : super::super::Security:: SC_HANDLE, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); - QueryServiceStatus(hservice.into_param().abi(), lpservicestatus).ok() + QueryServiceStatus(hservice.param().abi(), lpservicestatus).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceStatusEx(hservice: P0, infolevel: SC_STATUS_TYPE, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatusEx(hservice : super::super::Security:: SC_HANDLE, infolevel : SC_STATUS_TYPE, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); - QueryServiceStatusEx(hservice.into_param().abi(), 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()), pcbbytesneeded).ok() + QueryServiceStatusEx(hservice.param().abi(), 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()), pcbbytesneeded).ok() } #[inline] pub unsafe fn RegisterServiceCtrlHandlerA(lpservicename: P0, lphandlerproc: LPHANDLER_FUNCTION) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), lphandlerproc); + let result__ = RegisterServiceCtrlHandlerA(lpservicename.param().abi(), lphandlerproc); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterServiceCtrlHandlerExA(lpservicename: P0, lphandlerproc: LPHANDLER_FUNCTION_EX, lpcontext: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), lphandlerproc, core::mem::transmute(lpcontext.unwrap_or(std::ptr::null()))); + let result__ = RegisterServiceCtrlHandlerExA(lpservicename.param().abi(), lphandlerproc, core::mem::transmute(lpcontext.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterServiceCtrlHandlerExW(lpservicename: P0, lphandlerproc: LPHANDLER_FUNCTION_EX, lpcontext: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), lphandlerproc, core::mem::transmute(lpcontext.unwrap_or(std::ptr::null()))); + let result__ = RegisterServiceCtrlHandlerExW(lpservicename.param().abi(), lphandlerproc, core::mem::transmute(lpcontext.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterServiceCtrlHandlerW(lpservicename: P0, lphandlerproc: LPHANDLER_FUNCTION) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), lphandlerproc); + let result__ = RegisterServiceCtrlHandlerW(lpservicename.param().abi(), lphandlerproc); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetServiceBits(hservicestatus: P0, dwservicebits: u32, bsetbitson: P1, bupdateimmediately: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hservicestatus.into_param().abi(), dwservicebits, bsetbitson.into_param().abi(), bupdateimmediately.into_param().abi()).ok() + SetServiceBits(hservicestatus.param().abi(), dwservicebits, bsetbitson.param().abi(), bupdateimmediately.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SetServiceObjectSecurity(hservice: P0, dwsecurityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, lpsecuritydescriptor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetServiceObjectSecurity(hservice : super::super::Security:: SC_HANDLE, dwsecurityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: BOOL); - SetServiceObjectSecurity(hservice.into_param().abi(), dwsecurityinformation, lpsecuritydescriptor.into_param().abi()).ok() + SetServiceObjectSecurity(hservice.param().abi(), dwsecurityinformation, lpsecuritydescriptor.param().abi()).ok() } #[inline] pub unsafe fn SetServiceStatus(hservicestatus: P0, lpservicestatus: *const SERVICE_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetServiceStatus(hservicestatus : SERVICE_STATUS_HANDLE, lpservicestatus : *const SERVICE_STATUS) -> super::super::Foundation:: BOOL); - SetServiceStatus(hservicestatus.into_param().abi(), lpservicestatus).ok() + SetServiceStatus(hservicestatus.param().abi(), lpservicestatus).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn StartServiceA(hservice: P0, lpserviceargvectors: Option<&[windows_core::PCSTR]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn StartServiceA(hservice : super::super::Security:: SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCSTR) -> super::super::Foundation:: BOOL); - StartServiceA(hservice.into_param().abi(), 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.param().abi(), 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<()> { @@ -511,19 +511,19 @@ pub unsafe fn StartServiceCtrlDispatcherW(lpservicestarttable: *const SERVICE_TA #[inline] pub unsafe fn StartServiceW(hservice: P0, lpserviceargvectors: Option<&[windows_core::PCWSTR]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn StartServiceW(hservice : super::super::Security:: SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - StartServiceW(hservice.into_param().abi(), 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.param().abi(), 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() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SubscribeServiceChangeNotifications(hservice: P0, eeventtype: SC_EVENT_TYPE, pcallback: PSC_NOTIFICATION_CALLBACK, pcallbackcontext: Option<*const core::ffi::c_void>, psubscription: *mut PSC_NOTIFICATION_REGISTRATION) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sechost.dll" "system" fn SubscribeServiceChangeNotifications(hservice : super::super::Security:: SC_HANDLE, eeventtype : SC_EVENT_TYPE, pcallback : PSC_NOTIFICATION_CALLBACK, pcallbackcontext : *const core::ffi::c_void, psubscription : *mut PSC_NOTIFICATION_REGISTRATION) -> u32); - SubscribeServiceChangeNotifications(hservice.into_param().abi(), eeventtype, pcallback, core::mem::transmute(pcallbackcontext.unwrap_or(std::ptr::null())), psubscription) + SubscribeServiceChangeNotifications(hservice.param().abi(), eeventtype, pcallback, core::mem::transmute(pcallbackcontext.unwrap_or(std::ptr::null())), psubscription) } #[inline] pub unsafe fn UnlockServiceDatabase(sclock: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -533,20 +533,20 @@ pub unsafe fn UnlockServiceDatabase(sclock: *const core::ffi::c_void) -> windows #[inline] pub unsafe fn UnsubscribeServiceChangeNotifications(psubscription: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("sechost.dll" "system" fn UnsubscribeServiceChangeNotifications(psubscription : PSC_NOTIFICATION_REGISTRATION)); - UnsubscribeServiceChangeNotifications(psubscription.into_param().abi()) + UnsubscribeServiceChangeNotifications(psubscription.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WaitServiceState(hservice: P0, dwnotify: u32, dwtimeout: u32, hcancelevent: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn WaitServiceState(hservice : super::super::Security:: SC_HANDLE, dwnotify : u32, dwtimeout : u32, hcancelevent : super::super::Foundation:: HANDLE) -> u32); - WaitServiceState(hservice.into_param().abi(), dwnotify, dwtimeout, hcancelevent.into_param().abi()) + WaitServiceState(hservice.param().abi(), dwnotify, dwtimeout, hcancelevent.param().abi()) } 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 74456f0dc5..688e3fffdb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs @@ -26,19 +26,19 @@ impl ISettingsContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Serialize(&self, pstream: P0, ptarget: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), ptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pstream.param().abi(), ptarget.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Deserialize(&self, pstream: P0, ptarget: P1, pppresults: *mut *mut Option) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), ptarget.into_param().abi(), pppresults, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Deserialize)(windows_core::Interface::as_raw(self), pstream.param().abi(), ptarget.param().abi(), 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), puserdata).ok() @@ -53,16 +53,16 @@ impl ISettingsContext { } pub unsafe fn GetStoredSettings(&self, pidentity: P0, ppaddedsettings: *mut Option, ppmodifiedsettings: *mut Option, ppdeletedsettings: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetStoredSettings)(windows_core::Interface::as_raw(self), pidentity.into_param().abi(), core::mem::transmute(ppaddedsettings), core::mem::transmute(ppmodifiedsettings), core::mem::transmute(ppdeletedsettings)).ok() + (windows_core::Interface::vtable(self).GetStoredSettings)(windows_core::Interface::as_raw(self), pidentity.param().abi(), core::mem::transmute(ppaddedsettings), core::mem::transmute(ppmodifiedsettings), core::mem::transmute(ppdeletedsettings)).ok() } pub unsafe fn RevertSetting(&self, pidentity: P0, pwzsetting: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RevertSetting)(windows_core::Interface::as_raw(self), pidentity.into_param().abi(), pwzsetting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RevertSetting)(windows_core::Interface::as_raw(self), pidentity.param().abi(), pwzsetting.param().abi()).ok() } } #[repr(C)] @@ -91,10 +91,10 @@ impl ISettingsEngine { } pub unsafe fn GetNamespace(&self, settingsid: P0, access: WcmNamespaceAccess, reserved: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNamespace)(windows_core::Interface::as_raw(self), settingsid.into_param().abi(), access, 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__ = std::mem::zeroed(); @@ -117,19 +117,19 @@ impl ISettingsEngine { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterNamespace(&self, settingsid: P0, stream: P1, pushsettings: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterNamespace)(windows_core::Interface::as_raw(self), settingsid.into_param().abi(), stream.into_param().abi(), pushsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterNamespace)(windows_core::Interface::as_raw(self), settingsid.param().abi(), stream.param().abi(), pushsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UnregisterNamespace(&self, settingsid: P0, removesettings: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterNamespace)(windows_core::Interface::as_raw(self), settingsid.into_param().abi(), removesettings.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterNamespace)(windows_core::Interface::as_raw(self), settingsid.param().abi(), removesettings.param().abi()).ok() } pub unsafe fn CreateTargetInfo(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -141,9 +141,9 @@ impl ISettingsEngine { } pub unsafe fn SetTargetInfo(&self, target: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetInfo)(windows_core::Interface::as_raw(self), target.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetInfo)(windows_core::Interface::as_raw(self), target.param().abi()).ok() } pub unsafe fn CreateSettingsContext(&self, flags: u32, reserved: *const core::ffi::c_void) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -151,16 +151,16 @@ impl ISettingsEngine { } pub unsafe fn SetSettingsContext(&self, settingscontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSettingsContext)(windows_core::Interface::as_raw(self), settingscontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSettingsContext)(windows_core::Interface::as_raw(self), settingscontext.param().abi()).ok() } pub unsafe fn ApplySettingsContext(&self, settingscontext: P0, pppwzidentities: *mut *mut windows_core::PWSTR) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ApplySettingsContext)(windows_core::Interface::as_raw(self), settingscontext.into_param().abi(), pppwzidentities, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ApplySettingsContext)(windows_core::Interface::as_raw(self), settingscontext.param().abi(), pppwzidentities, &mut result__).map(|| result__) } pub unsafe fn GetSettingsContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -195,17 +195,17 @@ windows_core::imp::interface_hierarchy!(ISettingsIdentity, windows_core::IUnknow impl ISettingsIdentity { pub unsafe fn GetAttribute(&self, reserved: *const core::ffi::c_void, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), reserved, name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), reserved, name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetAttribute(&self, reserved: *const core::ffi::c_void, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttribute)(windows_core::Interface::as_raw(self), reserved, name.into_param().abi(), value.into_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__ = std::mem::zeroed(); @@ -262,30 +262,30 @@ impl ISettingsItem { } pub unsafe fn GetChild(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChild)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetChild)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSettingByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSettingByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSettingByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSettingByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSettingByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSettingByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveSettingByPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSettingByPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveSettingByPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn GetListKeyInformation(&self, keyname: *mut windows_core::BSTR) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -297,9 +297,9 @@ impl ISettingsItem { } pub unsafe fn RemoveListElement(&self, elementname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveListElement)(windows_core::Interface::as_raw(self), elementname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveListElement)(windows_core::Interface::as_raw(self), elementname.param().abi()).ok() } pub unsafe fn Attributes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -307,10 +307,10 @@ impl ISettingsItem { } pub unsafe fn GetAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -368,37 +368,37 @@ impl ISettingsNamespace { } pub unsafe fn Save(&self, pushsettings: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pushsettings.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), pushsettings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSettingByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSettingByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSettingByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSettingByPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSettingByPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSettingByPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RemoveSettingByPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveSettingByPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveSettingByPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn GetAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -466,9 +466,9 @@ impl ITargetInfo { } pub unsafe fn SetTemporaryStoreLocation(&self, temporarystorelocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTemporaryStoreLocation)(windows_core::Interface::as_raw(self), temporarystorelocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTemporaryStoreLocation)(windows_core::Interface::as_raw(self), temporarystorelocation.param().abi()).ok() } pub unsafe fn GetTargetID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -483,25 +483,25 @@ impl ITargetInfo { } pub unsafe fn SetTargetProcessorArchitecture(&self, processorarchitecture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetProcessorArchitecture)(windows_core::Interface::as_raw(self), processorarchitecture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetProcessorArchitecture)(windows_core::Interface::as_raw(self), processorarchitecture.param().abi()).ok() } pub unsafe fn GetProperty(&self, offline: P0, property: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), offline.into_param().abi(), property.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), offline.param().abi(), property.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetProperty(&self, offline: P0, property: P1, value: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), offline.into_param().abi(), property.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperty)(windows_core::Interface::as_raw(self), offline.param().abi(), property.param().abi(), value.param().abi()).ok() } pub unsafe fn GetEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -509,53 +509,53 @@ impl ITargetInfo { } pub unsafe fn ExpandTarget(&self, offline: P0, location: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExpandTarget)(windows_core::Interface::as_raw(self), offline.into_param().abi(), location.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExpandTarget)(windows_core::Interface::as_raw(self), offline.param().abi(), location.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExpandTargetPath(&self, offline: P0, location: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExpandTargetPath)(windows_core::Interface::as_raw(self), offline.into_param().abi(), location.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExpandTargetPath)(windows_core::Interface::as_raw(self), offline.param().abi(), location.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetModulePath(&self, module: P0, path: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModulePath)(windows_core::Interface::as_raw(self), module.into_param().abi(), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetModulePath)(windows_core::Interface::as_raw(self), module.param().abi(), path.param().abi()).ok() } pub unsafe fn LoadModule(&self, module: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LoadModule)(windows_core::Interface::as_raw(self), module.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetWow64Context(&self, installermodule: P0, wow64context: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWow64Context)(windows_core::Interface::as_raw(self), installermodule.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TranslateWow64)(windows_core::Interface::as_raw(self), clientarchitecture.into_param().abi(), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TranslateWow64)(windows_core::Interface::as_raw(self), clientarchitecture.param().abi(), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetSchemaHiveLocation(&self, pwzhivedir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSchemaHiveLocation)(windows_core::Interface::as_raw(self), pwzhivedir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSchemaHiveLocation)(windows_core::Interface::as_raw(self), pwzhivedir.param().abi()).ok() } pub unsafe fn GetSchemaHiveLocation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -563,9 +563,9 @@ impl ITargetInfo { } pub unsafe fn SetSchemaHiveMountName(&self, pwzmountname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSchemaHiveMountName)(windows_core::Interface::as_raw(self), pwzmountname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSchemaHiveMountName)(windows_core::Interface::as_raw(self), pwzmountname.param().abi()).ok() } pub unsafe fn GetSchemaHiveMountName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); 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 f98e652245..86e66570b5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs @@ -1,26 +1,26 @@ #[inline] pub unsafe fn AbortSystemShutdownA(lpmachinename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownA(lpmachinename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AbortSystemShutdownA(lpmachinename.into_param().abi()).ok() + AbortSystemShutdownA(lpmachinename.param().abi()).ok() } #[inline] pub unsafe fn AbortSystemShutdownW(lpmachinename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownW(lpmachinename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AbortSystemShutdownW(lpmachinename.into_param().abi()).ok() + AbortSystemShutdownW(lpmachinename.param().abi()).ok() } #[inline] pub unsafe fn CheckForHiberboot(phiberboot: *mut super::super::Foundation::BOOLEAN, bclearflag: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CheckForHiberboot(phiberboot : *mut super::super::Foundation:: BOOLEAN, bclearflag : super::super::Foundation:: BOOLEAN) -> u32); - CheckForHiberboot(phiberboot, bclearflag.into_param().abi()) + CheckForHiberboot(phiberboot, bclearflag.param().abi()) } #[inline] pub unsafe fn ExitWindowsEx(uflags: EXIT_WINDOWS_FLAGS, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> { @@ -30,64 +30,64 @@ pub unsafe fn ExitWindowsEx(uflags: EXIT_WINDOWS_FLAGS, dwreason: SHUTDOWN_REASO #[inline] pub unsafe fn InitiateShutdownA(lpmachinename: P0, lpmessage: P1, dwgraceperiod: u32, dwshutdownflags: SHUTDOWN_FLAGS, dwreason: SHUTDOWN_REASON) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpmessage.into_param().abi(), dwgraceperiod, dwshutdownflags, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpmessage.into_param().abi(), dwgraceperiod, dwshutdownflags, dwreason) + InitiateShutdownW(lpmachinename.param().abi(), lpmessage.param().abi(), dwgraceperiod, dwshutdownflags, dwreason) } #[inline] pub unsafe fn InitiateSystemShutdownA(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: P2, brebootaftershutdown: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpmessage.into_param().abi(), dwtimeout, bforceappsclosed.into_param().abi(), brebootaftershutdown.into_param().abi()).ok() + InitiateSystemShutdownA(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.param().abi(), brebootaftershutdown.param().abi()).ok() } #[inline] pub unsafe fn InitiateSystemShutdownExA(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: P2, brebootaftershutdown: P3, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpmessage.into_param().abi(), dwtimeout, bforceappsclosed.into_param().abi(), brebootaftershutdown.into_param().abi(), dwreason).ok() + InitiateSystemShutdownExA(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.param().abi(), brebootaftershutdown.param().abi(), dwreason).ok() } #[inline] pub unsafe fn InitiateSystemShutdownExW(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: P2, brebootaftershutdown: P3, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpmessage.into_param().abi(), dwtimeout, bforceappsclosed.into_param().abi(), brebootaftershutdown.into_param().abi(), dwreason).ok() + InitiateSystemShutdownExW(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.param().abi(), brebootaftershutdown.param().abi(), dwreason).ok() } #[inline] pub unsafe fn InitiateSystemShutdownW(lpmachinename: P0, lpmessage: P1, dwtimeout: u32, bforceappsclosed: P2, brebootaftershutdown: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), lpmessage.into_param().abi(), dwtimeout, bforceappsclosed.into_param().abi(), brebootaftershutdown.into_param().abi()).ok() + InitiateSystemShutdownW(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.param().abi(), brebootaftershutdown.param().abi()).ok() } #[inline] pub unsafe fn LockWorkStation() -> windows_core::Result<()> { @@ -97,27 +97,27 @@ pub unsafe fn LockWorkStation() -> windows_core::Result<()> { #[inline] pub unsafe fn ShutdownBlockReasonCreate(hwnd: P0, pwszreason: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pwszreason.into_param().abi()).ok() + ShutdownBlockReasonCreate(hwnd.param().abi(), pwszreason.param().abi()).ok() } #[inline] pub unsafe fn ShutdownBlockReasonDestroy(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonDestroy(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ShutdownBlockReasonDestroy(hwnd.into_param().abi()).ok() + ShutdownBlockReasonDestroy(hwnd.param().abi()).ok() } #[inline] pub unsafe fn ShutdownBlockReasonQuery(hwnd: P0, pwszbuff: windows_core::PWSTR, pcchbuff: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(pwszbuff), pcchbuff).ok() + ShutdownBlockReasonQuery(hwnd.param().abi(), core::mem::transmute(pwszbuff), 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 730d739eeb..501b7f3f4e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs @@ -7,9 +7,9 @@ impl ISideShowBulkCapabilities { } pub unsafe fn GetCapabilities(&self, in_keycollection: P0, inout_pvalues: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), in_keycollection.into_param().abi(), core::mem::transmute(inout_pvalues)).ok() + (windows_core::Interface::vtable(self).GetCapabilities)(windows_core::Interface::as_raw(self), in_keycollection.param().abi(), core::mem::transmute(inout_pvalues)).ok() } } #[repr(C)] @@ -56,9 +56,9 @@ windows_core::imp::interface_hierarchy!(ISideShowContent, windows_core::IUnknown impl ISideShowContent { pub unsafe fn GetContent(&self, in_picapabilities: P0, out_pdwsize: *mut u32, out_ppbdata: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetContent)(windows_core::Interface::as_raw(self), in_picapabilities.into_param().abi(), out_pdwsize, out_ppbdata).ok() + (windows_core::Interface::vtable(self).GetContent)(windows_core::Interface::as_raw(self), in_picapabilities.param().abi(), out_pdwsize, out_ppbdata).ok() } pub unsafe fn ContentId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -81,9 +81,9 @@ windows_core::imp::interface_hierarchy!(ISideShowContentManager, windows_core::I impl ISideShowContentManager { pub unsafe fn Add(&self, in_picontent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), in_picontent.into_param().abi()).ok() + (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), in_contentid).ok() @@ -93,9 +93,9 @@ impl ISideShowContentManager { } pub unsafe fn SetEventSink(&self, in_pievents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), in_pievents.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), in_pievents.param().abi()).ok() } pub unsafe fn GetDeviceCapabilities(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -120,21 +120,21 @@ impl ISideShowEvents { } pub unsafe fn ApplicationEvent(&self, in_picapabilities: P0, in_dweventid: u32, in_pbeventdata: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplicationEvent)(windows_core::Interface::as_raw(self), in_picapabilities.into_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() + (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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceAdded)(windows_core::Interface::as_raw(self), in_pidevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeviceAdded)(windows_core::Interface::as_raw(self), in_pidevice.param().abi()).ok() } pub unsafe fn DeviceRemoved(&self, in_pidevice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeviceRemoved)(windows_core::Interface::as_raw(self), in_pidevice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeviceRemoved)(windows_core::Interface::as_raw(self), in_pidevice.param().abi()).ok() } } #[repr(C)] @@ -197,9 +197,9 @@ impl ISideShowNotification { } pub unsafe fn SetTitle(&self, in_pwsztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), in_pwsztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), in_pwsztitle.param().abi()).ok() } pub unsafe fn Message(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -207,9 +207,9 @@ impl ISideShowNotification { } pub unsafe fn SetMessage(&self, in_pwszmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMessage)(windows_core::Interface::as_raw(self), in_pwszmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMessage)(windows_core::Interface::as_raw(self), in_pwszmessage.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn Image(&self) -> windows_core::Result { @@ -219,9 +219,9 @@ impl ISideShowNotification { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetImage(&self, in_hicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), in_hicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImage)(windows_core::Interface::as_raw(self), in_hicon.param().abi()).ok() } pub unsafe fn ExpirationTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -256,9 +256,9 @@ windows_core::imp::interface_hierarchy!(ISideShowNotificationManager, windows_co impl ISideShowNotificationManager { pub unsafe fn Show(&self, in_pinotification: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), in_pinotification.into_param().abi()).ok() + (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), in_notificationid).ok() 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 5b11444786..b952daf6b0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs @@ -1,162 +1,162 @@ #[inline] pub unsafe fn BroadcastSystemMessageA(flags: u32, lpinfo: Option<*mut u32>, msg: u32, wparam: P0, lparam: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.into_param().abi(), lparam.into_param().abi()) + BroadcastSystemMessageA(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn BroadcastSystemMessageExA(flags: BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo: Option<*mut BROADCAST_SYSTEM_MESSAGE_INFO>, msg: u32, wparam: P0, lparam: P1, pbsminfo: Option<*mut BSMINFO>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.into_param().abi(), lparam.into_param().abi(), core::mem::transmute(pbsminfo.unwrap_or(std::ptr::null_mut()))) + BroadcastSystemMessageExA(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.param().abi(), lparam.param().abi(), core::mem::transmute(pbsminfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BroadcastSystemMessageExW(flags: BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo: Option<*mut BROADCAST_SYSTEM_MESSAGE_INFO>, msg: u32, wparam: P0, lparam: P1, pbsminfo: Option<*mut BSMINFO>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.into_param().abi(), lparam.into_param().abi(), core::mem::transmute(pbsminfo.unwrap_or(std::ptr::null_mut()))) + BroadcastSystemMessageExW(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.param().abi(), lparam.param().abi(), core::mem::transmute(pbsminfo.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn BroadcastSystemMessageW(flags: BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo: Option<*mut BROADCAST_SYSTEM_MESSAGE_INFO>, msg: u32, wparam: P0, lparam: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.into_param().abi(), lparam.into_param().abi()) + BroadcastSystemMessageW(flags, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null_mut())), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn CloseDesktop(hdesktop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CloseDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); - CloseDesktop(hdesktop.into_param().abi()).ok() + CloseDesktop(hdesktop.param().abi()).ok() } #[inline] pub unsafe fn CloseWindowStation(hwinsta: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CloseWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL); - CloseWindowStation(hwinsta.into_param().abi()).ok() + CloseWindowStation(hwinsta.param().abi()).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateDesktopA(lpszdesktop: P0, lpszdevice: P1, pdevmode: Option<*const super::super::Graphics::Gdi::DEVMODEA>, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszdevice.into_param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); + let result__ = CreateDesktopA(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateDesktopExA(lpszdesktop: P0, lpszdevice: P1, pdevmode: Option<*const super::super::Graphics::Gdi::DEVMODEA>, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, ulheapsize: u32, pvoid: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszdevice.into_param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null())), ulheapsize, core::mem::transmute(pvoid.unwrap_or(std::ptr::null()))); + let result__ = CreateDesktopExA(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null())), ulheapsize, core::mem::transmute(pvoid.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateDesktopExW(lpszdesktop: P0, lpszdevice: P1, pdevmode: Option<*const super::super::Graphics::Gdi::DEVMODEW>, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, ulheapsize: u32, pvoid: Option<*const core::ffi::c_void>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszdevice.into_param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null())), ulheapsize, core::mem::transmute(pvoid.unwrap_or(std::ptr::null()))); + let result__ = CreateDesktopExW(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null())), ulheapsize, core::mem::transmute(pvoid.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateDesktopW(lpszdesktop: P0, lpszdevice: P1, pdevmode: Option<*const super::super::Graphics::Gdi::DEVMODEW>, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszdevice.into_param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); + let result__ = CreateDesktopW(lpszdesktop.param().abi(), lpszdevice.param().abi(), core::mem::transmute(pdevmode.unwrap_or(std::ptr::null())), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateWindowStationA(lpwinsta: P0, dwflags: u32, dwdesiredaccess: u32, lpsa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); + let result__ = CreateWindowStationA(lpwinsta.param().abi(), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateWindowStationW(lpwinsta: P0, dwflags: u32, dwdesiredaccess: u32, lpsa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); + let result__ = CreateWindowStationW(lpwinsta.param().abi(), dwflags, dwdesiredaccess, core::mem::transmute(lpsa.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn EnumDesktopWindows(hdesktop: P0, lpfn: super::super::UI::WindowsAndMessaging::WNDENUMPROC, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdesktop.into_param().abi(), lpfn, lparam.into_param().abi()).ok() + EnumDesktopWindows(hdesktop.param().abi(), lpfn, lparam.param().abi()).ok() } #[inline] pub unsafe fn EnumDesktopsA(hwinsta: P0, lpenumfunc: DESKTOPENUMPROCA, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDesktopsA(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumDesktopsA(hwinsta.into_param().abi(), lpenumfunc, lparam.into_param().abi()).ok() + EnumDesktopsA(hwinsta.param().abi(), lpenumfunc, lparam.param().abi()).ok() } #[inline] pub unsafe fn EnumDesktopsW(hwinsta: P0, lpenumfunc: DESKTOPENUMPROCW, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumDesktopsW(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumDesktopsW(hwinsta.into_param().abi(), lpenumfunc, lparam.into_param().abi()).ok() + EnumDesktopsW(hwinsta.param().abi(), lpenumfunc, lparam.param().abi()).ok() } #[inline] pub unsafe fn EnumWindowStationsA(lpenumfunc: WINSTAENUMPROCA, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumWindowStationsA(lpenumfunc : WINSTAENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumWindowStationsA(lpenumfunc, lparam.into_param().abi()).ok() + EnumWindowStationsA(lpenumfunc, lparam.param().abi()).ok() } #[inline] pub unsafe fn EnumWindowStationsW(lpenumfunc: WINSTAENUMPROCW, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumWindowStationsW(lpenumfunc : WINSTAENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumWindowStationsW(lpenumfunc, lparam.into_param().abi()).ok() + EnumWindowStationsW(lpenumfunc, lparam.param().abi()).ok() } #[inline] pub unsafe fn GetProcessWindowStation() -> windows_core::Result { @@ -173,107 +173,107 @@ pub unsafe fn GetThreadDesktop(dwthreadid: u32) -> windows_core::Result { #[inline] pub unsafe fn GetUserObjectInformationA(hobj: P0, nindex: USER_OBJECT_INFORMATION_INDEX, pvinfo: Option<*mut core::ffi::c_void>, nlength: u32, lpnlengthneeded: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hobj.into_param().abi(), nindex, core::mem::transmute(pvinfo.unwrap_or(std::ptr::null_mut())), nlength, core::mem::transmute(lpnlengthneeded.unwrap_or(std::ptr::null_mut()))).ok() + GetUserObjectInformationA(hobj.param().abi(), nindex, core::mem::transmute(pvinfo.unwrap_or(std::ptr::null_mut())), nlength, core::mem::transmute(lpnlengthneeded.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetUserObjectInformationW(hobj: P0, nindex: USER_OBJECT_INFORMATION_INDEX, pvinfo: Option<*mut core::ffi::c_void>, nlength: u32, lpnlengthneeded: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hobj.into_param().abi(), nindex, core::mem::transmute(pvinfo.unwrap_or(std::ptr::null_mut())), nlength, core::mem::transmute(lpnlengthneeded.unwrap_or(std::ptr::null_mut()))).ok() + GetUserObjectInformationW(hobj.param().abi(), nindex, core::mem::transmute(pvinfo.unwrap_or(std::ptr::null_mut())), nlength, core::mem::transmute(lpnlengthneeded.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn OpenDesktopA(lpszdesktop: P0, dwflags: DESKTOP_CONTROL_FLAGS, finherit: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, finherit.into_param().abi(), dwdesiredaccess); + let result__ = OpenDesktopA(lpszdesktop.param().abi(), dwflags, finherit.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenDesktopW(lpszdesktop: P0, dwflags: DESKTOP_CONTROL_FLAGS, finherit: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwflags, finherit.into_param().abi(), dwdesiredaccess); + let result__ = OpenDesktopW(lpszdesktop.param().abi(), dwflags, finherit.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenInputDesktop(dwflags: DESKTOP_CONTROL_FLAGS, finherit: P0, dwdesiredaccess: DESKTOP_ACCESS_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwflags, finherit.into_param().abi(), dwdesiredaccess); + let result__ = OpenInputDesktop(dwflags, finherit.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenWindowStationA(lpszwinsta: P0, finherit: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), finherit.into_param().abi(), dwdesiredaccess); + let result__ = OpenWindowStationA(lpszwinsta.param().abi(), finherit.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenWindowStationW(lpszwinsta: P0, finherit: P1, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), finherit.into_param().abi(), dwdesiredaccess); + let result__ = OpenWindowStationW(lpszwinsta.param().abi(), finherit.param().abi(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetProcessWindowStation(hwinsta: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetProcessWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL); - SetProcessWindowStation(hwinsta.into_param().abi()).ok() + SetProcessWindowStation(hwinsta.param().abi()).ok() } #[inline] pub unsafe fn SetThreadDesktop(hdesktop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetThreadDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); - SetThreadDesktop(hdesktop.into_param().abi()).ok() + SetThreadDesktop(hdesktop.param().abi()).ok() } #[inline] pub unsafe fn SetUserObjectInformationA(hobj: P0, nindex: i32, pvinfo: *const core::ffi::c_void, nlength: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hobj.into_param().abi(), nindex, pvinfo, nlength).ok() + SetUserObjectInformationA(hobj.param().abi(), nindex, pvinfo, nlength).ok() } #[inline] pub unsafe fn SetUserObjectInformationW(hobj: P0, nindex: i32, pvinfo: *const core::ffi::c_void, nlength: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hobj.into_param().abi(), nindex, pvinfo, nlength).ok() + SetUserObjectInformationW(hobj.param().abi(), nindex, pvinfo, nlength).ok() } #[inline] pub unsafe fn SwitchDesktop(hdesktop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SwitchDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); - SwitchDesktop(hdesktop.into_param().abi()).ok() + SwitchDesktop(hdesktop.param().abi()).ok() } pub const BSF_ALLOWSFW: BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS(128u32); pub const BSF_FLUSHDISK: BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS(4u32); 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 e71311f171..5a73d2f1a9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs @@ -1,68 +1,68 @@ #[inline] pub unsafe fn WslConfigureDistribution(distributionname: P0, defaultuid: u32, wsldistributionflags: WSL_DISTRIBUTION_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), defaultuid, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslGetDistributionConfiguration(distributionname : windows_core::PCWSTR, distributionversion : *mut u32, defaultuid : *mut u32, wsldistributionflags : *mut WSL_DISTRIBUTION_FLAGS, defaultenvironmentvariables : *mut *mut windows_core::PSTR, defaultenvironmentvariablecount : *mut u32) -> windows_core::HRESULT); - WslGetDistributionConfiguration(distributionname.into_param().abi(), distributionversion, defaultuid, wsldistributionflags, defaultenvironmentvariables, defaultenvironmentvariablecount).ok() + WslGetDistributionConfiguration(distributionname.param().abi(), distributionversion, defaultuid, wsldistributionflags, defaultenvironmentvariables, defaultenvironmentvariablecount).ok() } #[inline] pub unsafe fn WslIsDistributionRegistered(distributionname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslIsDistributionRegistered(distributionname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WslIsDistributionRegistered(distributionname.into_param().abi()) + WslIsDistributionRegistered(distributionname.param().abi()) } #[inline] pub unsafe fn WslLaunch(distributionname: P0, command: P1, usecurrentworkingdirectory: P2, stdin: P3, stdout: P4, stderr: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { 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__ = std::mem::zeroed(); - WslLaunch(distributionname.into_param().abi(), command.into_param().abi(), usecurrentworkingdirectory.into_param().abi(), stdin.into_param().abi(), stdout.into_param().abi(), stderr.into_param().abi(), &mut result__).map(|| result__) + WslLaunch(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.param().abi(), stdin.param().abi(), stdout.param().abi(), stderr.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WslLaunchInteractive(distributionname: P0, command: P1, usecurrentworkingdirectory: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslLaunchInteractive(distributionname : windows_core::PCWSTR, command : windows_core::PCWSTR, usecurrentworkingdirectory : super::super::Foundation:: BOOL, exitcode : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WslLaunchInteractive(distributionname.into_param().abi(), command.into_param().abi(), usecurrentworkingdirectory.into_param().abi(), &mut result__).map(|| result__) + WslLaunchInteractive(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WslRegisterDistribution(distributionname: P0, targzfilename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslRegisterDistribution(distributionname : windows_core::PCWSTR, targzfilename : windows_core::PCWSTR) -> windows_core::HRESULT); - WslRegisterDistribution(distributionname.into_param().abi(), targzfilename.into_param().abi()).ok() + WslRegisterDistribution(distributionname.param().abi(), targzfilename.param().abi()).ok() } #[inline] pub unsafe fn WslUnregisterDistribution(distributionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslUnregisterDistribution(distributionname : windows_core::PCWSTR) -> windows_core::HRESULT); - WslUnregisterDistribution(distributionname.into_param().abi()).ok() + WslUnregisterDistribution(distributionname.param().abi()).ok() } pub const WSL_DISTRIBUTION_FLAGS_APPEND_NT_PATH: WSL_DISTRIBUTION_FLAGS = WSL_DISTRIBUTION_FLAGS(2i32); pub const WSL_DISTRIBUTION_FLAGS_ENABLE_DRIVE_MOUNTING: WSL_DISTRIBUTION_FLAGS = WSL_DISTRIBUTION_FLAGS(4i32); 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 f4e730b5cf..955d7cf440 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn DnsHostnameToComputerNameExW(hostname: P0, computername: windows_core::PWSTR, nsize: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameExW(hostname : windows_core::PCWSTR, computername : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); - DnsHostnameToComputerNameExW(hostname.into_param().abi(), core::mem::transmute(computername), nsize) + DnsHostnameToComputerNameExW(hostname.param().abi(), core::mem::transmute(computername), nsize) } #[inline] pub unsafe fn EnumSystemFirmwareTables(firmwaretableprovidersignature: FIRMWARE_TABLE_PROVIDER, pfirmwaretableenumbuffer: Option<&mut [u8]>) -> u32 { @@ -87,10 +87,10 @@ pub unsafe fn GetProductInfo(dwosmajorversion: u32, dwosminorversion: u32, dwspm #[inline] pub unsafe fn GetSystemCpuSetInformation(information: Option<*mut SYSTEM_CPU_SET_INFORMATION>, bufferlength: u32, returnedlength: *mut u32, process: P0, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), bufferlength, returnedlength, process.into_param().abi(), flags) + GetSystemCpuSetInformation(core::mem::transmute(information.unwrap_or(std::ptr::null_mut())), bufferlength, returnedlength, process.param().abi(), flags) } #[inline] pub unsafe fn GetSystemDEPPolicy() -> DEP_SYSTEM_POLICY_TYPE { @@ -272,42 +272,42 @@ pub unsafe fn RtlSwitchedVVI(versioninfo: *const OSVERSIONINFOEXW, typemask: u32 #[inline] pub unsafe fn SetComputerNameA(lpcomputername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetComputerNameA(lpcomputername : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetComputerNameA(lpcomputername.into_param().abi()).ok() + SetComputerNameA(lpcomputername.param().abi()).ok() } #[inline] pub unsafe fn SetComputerNameEx2W(nametype: COMPUTER_NAME_FORMAT, flags: u32, lpbuffer: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(nametype, flags, lpbuffer.into_param().abi()) + SetComputerNameEx2W(nametype, flags, lpbuffer.param().abi()) } #[inline] pub unsafe fn SetComputerNameExA(nametype: COMPUTER_NAME_FORMAT, lpbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExA(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetComputerNameExA(nametype, lpbuffer.into_param().abi()).ok() + SetComputerNameExA(nametype, lpbuffer.param().abi()).ok() } #[inline] pub unsafe fn SetComputerNameExW(nametype: COMPUTER_NAME_FORMAT, lpbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetComputerNameExW(nametype, lpbuffer.into_param().abi()).ok() + SetComputerNameExW(nametype, lpbuffer.param().abi()).ok() } #[inline] pub unsafe fn SetComputerNameW(lpcomputername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetComputerNameW(lpcomputername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SetComputerNameW(lpcomputername.into_param().abi()).ok() + SetComputerNameW(lpcomputername.param().abi()).ok() } #[inline] pub unsafe fn SetLocalTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { @@ -322,18 +322,18 @@ pub unsafe fn SetSystemTime(lpsystemtime: *const super::super::Foundation::SYSTE #[inline] pub unsafe fn SetSystemTimeAdjustment(dwtimeadjustment: u32, btimeadjustmentdisabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetSystemTimeAdjustment(dwtimeadjustment : u32, btimeadjustmentdisabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetSystemTimeAdjustment(dwtimeadjustment, btimeadjustmentdisabled.into_param().abi()).ok() + SetSystemTimeAdjustment(dwtimeadjustment, btimeadjustmentdisabled.param().abi()).ok() } #[inline] pub unsafe fn SetSystemTimeAdjustmentPrecise(dwtimeadjustment: u64, btimeadjustmentdisabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwtimeadjustment, btimeadjustmentdisabled.into_param().abi()).ok() + SetSystemTimeAdjustmentPrecise(dwtimeadjustment, btimeadjustmentdisabled.param().abi()).ok() } #[inline] pub unsafe fn VerSetConditionMask(conditionmask: u64, typemask: VER_FLAGS, condition: u8) -> u64 { 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 e3bb418a9c..b9c4df29e7 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs @@ -9,9 +9,9 @@ impl IAction { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), ptype).ok() @@ -48,9 +48,9 @@ impl IActionCollection { } pub unsafe fn SetXmlText(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Create(&self, r#type: TASK_ACTION_TYPE) -> windows_core::Result { @@ -59,9 +59,9 @@ impl IActionCollection { } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -71,9 +71,9 @@ impl IActionCollection { } pub unsafe fn SetContext(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetContext)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -111,9 +111,9 @@ impl IBootTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -123,54 +123,54 @@ impl IBootTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Delay(&self, pdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delay)(windows_core::Interface::as_raw(self), core::mem::transmute(pdelay)).ok() } pub unsafe fn SetDelay(&self, delay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -191,9 +191,9 @@ impl IComHandlerAction { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Type)(windows_core::Interface::as_raw(self), ptype).ok() @@ -203,18 +203,18 @@ impl IComHandlerAction { } pub unsafe fn SetClassId(&self, clsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClassId)(windows_core::Interface::as_raw(self), clsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClassId)(windows_core::Interface::as_raw(self), clsid.param().abi()).ok() } pub unsafe fn Data(&self, pdata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Data)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() } pub unsafe fn SetData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -240,9 +240,9 @@ impl IDailyTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -252,45 +252,45 @@ impl IDailyTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DaysInterval(&self, pdays: *mut i16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DaysInterval)(windows_core::Interface::as_raw(self), pdays).ok() @@ -303,9 +303,9 @@ impl IDailyTrigger { } pub unsafe fn SetRandomDelay(&self, randomdelay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -328,9 +328,9 @@ impl IEmailAction { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Type)(windows_core::Interface::as_raw(self), ptype).ok() @@ -340,63 +340,63 @@ impl IEmailAction { } pub unsafe fn SetServer(&self, server: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), server.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), server.param().abi()).ok() } pub unsafe fn Subject(&self, psubject: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Subject)(windows_core::Interface::as_raw(self), core::mem::transmute(psubject)).ok() } pub unsafe fn SetSubject(&self, subject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), subject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubject)(windows_core::Interface::as_raw(self), subject.param().abi()).ok() } pub unsafe fn To(&self, pto: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).To)(windows_core::Interface::as_raw(self), core::mem::transmute(pto)).ok() } pub unsafe fn SetTo(&self, to: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTo)(windows_core::Interface::as_raw(self), to.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTo)(windows_core::Interface::as_raw(self), to.param().abi()).ok() } pub unsafe fn Cc(&self, pcc: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cc)(windows_core::Interface::as_raw(self), core::mem::transmute(pcc)).ok() } pub unsafe fn SetCc(&self, cc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCc)(windows_core::Interface::as_raw(self), cc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCc)(windows_core::Interface::as_raw(self), cc.param().abi()).ok() } pub unsafe fn Bcc(&self, pbcc: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Bcc)(windows_core::Interface::as_raw(self), core::mem::transmute(pbcc)).ok() } pub unsafe fn SetBcc(&self, bcc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBcc)(windows_core::Interface::as_raw(self), bcc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBcc)(windows_core::Interface::as_raw(self), bcc.param().abi()).ok() } pub unsafe fn ReplyTo(&self, preplyto: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReplyTo)(windows_core::Interface::as_raw(self), core::mem::transmute(preplyto)).ok() } pub unsafe fn SetReplyTo(&self, replyto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReplyTo)(windows_core::Interface::as_raw(self), replyto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReplyTo)(windows_core::Interface::as_raw(self), replyto.param().abi()).ok() } pub unsafe fn From(&self, pfrom: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).From)(windows_core::Interface::as_raw(self), core::mem::transmute(pfrom)).ok() } pub unsafe fn SetFrom(&self, from: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFrom)(windows_core::Interface::as_raw(self), from.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFrom)(windows_core::Interface::as_raw(self), from.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HeaderFields(&self) -> windows_core::Result { @@ -406,18 +406,18 @@ impl IEmailAction { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetHeaderFields(&self, pheaderfields: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHeaderFields)(windows_core::Interface::as_raw(self), pheaderfields.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHeaderFields)(windows_core::Interface::as_raw(self), pheaderfields.param().abi()).ok() } pub unsafe fn Body(&self, pbody: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Body)(windows_core::Interface::as_raw(self), core::mem::transmute(pbody)).ok() } pub unsafe fn SetBody(&self, body: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), body.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBody)(windows_core::Interface::as_raw(self), body.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Attachments(&self, pattachements: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> { @@ -504,9 +504,9 @@ impl IEventTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -516,63 +516,63 @@ impl IEventTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Subscription(&self, pquery: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Subscription)(windows_core::Interface::as_raw(self), core::mem::transmute(pquery)).ok() } pub unsafe fn SetSubscription(&self, query: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubscription)(windows_core::Interface::as_raw(self), query.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubscription)(windows_core::Interface::as_raw(self), query.param().abi()).ok() } pub unsafe fn Delay(&self, pdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delay)(windows_core::Interface::as_raw(self), core::mem::transmute(pdelay)).ok() } pub unsafe fn SetDelay(&self, delay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ValueQueries(&self) -> windows_core::Result { @@ -582,9 +582,9 @@ impl IEventTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetValueQueries(&self, pnamedxpaths: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueQueries)(windows_core::Interface::as_raw(self), pnamedxpaths.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValueQueries)(windows_core::Interface::as_raw(self), pnamedxpaths.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -615,9 +615,9 @@ impl IExecAction { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Type)(windows_core::Interface::as_raw(self), ptype).ok() @@ -627,27 +627,27 @@ impl IExecAction { } pub unsafe fn SetPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn Arguments(&self, pargument: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Arguments)(windows_core::Interface::as_raw(self), core::mem::transmute(pargument)).ok() } pub unsafe fn SetArguments(&self, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), argument.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), argument.param().abi()).ok() } pub unsafe fn WorkingDirectory(&self, pworkingdirectory: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WorkingDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(pworkingdirectory)).ok() } pub unsafe fn SetWorkingDirectory(&self, workingdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -672,9 +672,9 @@ impl IExecAction2 { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Type)(windows_core::Interface::as_raw(self), ptype).ok() @@ -684,36 +684,36 @@ impl IExecAction2 { } pub unsafe fn SetPath(&self, path: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPath)(windows_core::Interface::as_raw(self), path.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPath)(windows_core::Interface::as_raw(self), path.param().abi()).ok() } pub unsafe fn Arguments(&self, pargument: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Arguments)(windows_core::Interface::as_raw(self), core::mem::transmute(pargument)).ok() } pub unsafe fn SetArguments(&self, argument: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetArguments)(windows_core::Interface::as_raw(self), argument.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetArguments)(windows_core::Interface::as_raw(self), argument.param().abi()).ok() } pub unsafe fn WorkingDirectory(&self, pworkingdirectory: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.WorkingDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(pworkingdirectory)).ok() } pub unsafe fn SetWorkingDirectory(&self, workingdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), workingdirectory.param().abi()).ok() } pub unsafe fn HideAppWindow(&self, phideappwindow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HideAppWindow)(windows_core::Interface::as_raw(self), phideappwindow).ok() } pub unsafe fn SetHideAppWindow(&self, hideappwindow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHideAppWindow)(windows_core::Interface::as_raw(self), hideappwindow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHideAppWindow)(windows_core::Interface::as_raw(self), hideappwindow.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -734,36 +734,36 @@ impl IIdleSettings { } pub unsafe fn SetIdleDuration(&self, delay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIdleDuration)(windows_core::Interface::as_raw(self), delay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIdleDuration)(windows_core::Interface::as_raw(self), delay.param().abi()).ok() } pub unsafe fn WaitTimeout(&self, ptimeout: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WaitTimeout)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimeout)).ok() } pub unsafe fn SetWaitTimeout(&self, timeout: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWaitTimeout)(windows_core::Interface::as_raw(self), timeout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWaitTimeout)(windows_core::Interface::as_raw(self), timeout.param().abi()).ok() } pub unsafe fn StopOnIdleEnd(&self, pstop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopOnIdleEnd)(windows_core::Interface::as_raw(self), pstop).ok() } pub unsafe fn SetStopOnIdleEnd(&self, stop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStopOnIdleEnd)(windows_core::Interface::as_raw(self), stop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStopOnIdleEnd)(windows_core::Interface::as_raw(self), stop.param().abi()).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), prestart).ok() } pub unsafe fn SetRestartOnIdle(&self, restart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRestartOnIdle)(windows_core::Interface::as_raw(self), restart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRestartOnIdle)(windows_core::Interface::as_raw(self), restart.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -793,9 +793,9 @@ impl IIdleTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -805,45 +805,45 @@ impl IIdleTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -865,9 +865,9 @@ impl ILogonTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -877,63 +877,63 @@ impl ILogonTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Delay(&self, pdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delay)(windows_core::Interface::as_raw(self), core::mem::transmute(pdelay)).ok() } pub unsafe fn SetDelay(&self, delay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.param().abi()).ok() } pub unsafe fn UserId(&self, puser: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UserId)(windows_core::Interface::as_raw(self), core::mem::transmute(puser)).ok() } pub unsafe fn SetUserId(&self, user: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserId)(windows_core::Interface::as_raw(self), user.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserId)(windows_core::Interface::as_raw(self), user.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -953,27 +953,27 @@ windows_core::imp::interface_hierarchy!(IMaintenanceSettings, windows_core::IUnk impl IMaintenanceSettings { pub unsafe fn SetPeriod(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPeriod)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPeriod)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Period(&self, target: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Period)(windows_core::Interface::as_raw(self), core::mem::transmute(target)).ok() } pub unsafe fn SetDeadline(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeadline)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDeadline)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Deadline(&self, target: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Deadline)(windows_core::Interface::as_raw(self), core::mem::transmute(target)).ok() } pub unsafe fn SetExclusive(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExclusive)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExclusive)(windows_core::Interface::as_raw(self), value.param().abi()).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), target).ok() @@ -1004,9 +1004,9 @@ impl IMonthlyDOWTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -1016,45 +1016,45 @@ impl IMonthlyDOWTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DaysOfWeek(&self, pdays: *mut i16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DaysOfWeek)(windows_core::Interface::as_raw(self), pdays).ok() @@ -1079,18 +1079,18 @@ impl IMonthlyDOWTrigger { } pub unsafe fn SetRunOnLastWeekOfMonth(&self, lastweek: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRunOnLastWeekOfMonth)(windows_core::Interface::as_raw(self), lastweek.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRunOnLastWeekOfMonth)(windows_core::Interface::as_raw(self), lastweek.param().abi()).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() } pub unsafe fn SetRandomDelay(&self, randomdelay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1122,9 +1122,9 @@ impl IMonthlyTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -1134,45 +1134,45 @@ impl IMonthlyTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DaysOfMonth(&self, pdays: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DaysOfMonth)(windows_core::Interface::as_raw(self), pdays).ok() @@ -1191,18 +1191,18 @@ impl IMonthlyTrigger { } pub unsafe fn SetRunOnLastDayOfMonth(&self, lastday: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRunOnLastDayOfMonth)(windows_core::Interface::as_raw(self), lastday.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRunOnLastDayOfMonth)(windows_core::Interface::as_raw(self), lastday.param().abi()).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() } pub unsafe fn SetRandomDelay(&self, randomdelay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1229,18 +1229,18 @@ impl INetworkSettings { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Id(&self, pid: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Id)(windows_core::Interface::as_raw(self), core::mem::transmute(pid)).ok() } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1263,27 +1263,27 @@ impl IPrincipal { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn DisplayName(&self, pname: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisplayName)(windows_core::Interface::as_raw(self), core::mem::transmute(pname)).ok() } pub unsafe fn SetDisplayName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn UserId(&self, puser: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UserId)(windows_core::Interface::as_raw(self), core::mem::transmute(puser)).ok() } pub unsafe fn SetUserId(&self, user: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserId)(windows_core::Interface::as_raw(self), user.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserId)(windows_core::Interface::as_raw(self), user.param().abi()).ok() } pub unsafe fn LogonType(&self, plogon: *mut TASK_LOGON_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).LogonType)(windows_core::Interface::as_raw(self), plogon).ok() @@ -1296,9 +1296,9 @@ impl IPrincipal { } pub unsafe fn SetGroupId(&self, group: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroupId)(windows_core::Interface::as_raw(self), group.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGroupId)(windows_core::Interface::as_raw(self), group.param().abi()).ok() } pub unsafe fn RunLevel(&self, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RunLevel)(windows_core::Interface::as_raw(self), prunlevel).ok() @@ -1344,9 +1344,9 @@ impl IPrincipal2 { } pub unsafe fn AddRequiredPrivilege(&self, privilege: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRequiredPrivilege)(windows_core::Interface::as_raw(self), privilege.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddRequiredPrivilege)(windows_core::Interface::as_raw(self), privilege.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1365,10 +1365,10 @@ impl IProvideTaskPage { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetPage(&self, tptype: TASKPAGE, fpersistchanges: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPage)(windows_core::Interface::as_raw(self), tptype, fpersistchanges.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPage)(windows_core::Interface::as_raw(self), tptype, fpersistchanges.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1403,26 +1403,26 @@ impl IRegisteredTask { } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Run(&self, params: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), params.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), params.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RunEx(&self, params: P0, flags: i32, sessionid: i32, user: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RunEx)(windows_core::Interface::as_raw(self), params.into_param().abi(), flags, sessionid, user.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RunEx)(windows_core::Interface::as_raw(self), params.param().abi(), flags, sessionid, user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetInstances(&self, flags: i32) -> windows_core::Result { @@ -1460,9 +1460,9 @@ impl IRegisteredTask { } pub unsafe fn SetSecurityDescriptor(&self, sddl: P0, flags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), sddl.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), sddl.param().abi(), flags).ok() } pub unsafe fn Stop(&self, flags: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), flags).ok() @@ -1519,10 +1519,10 @@ impl IRegisteredTaskCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1551,81 +1551,81 @@ impl IRegistrationInfo { } pub unsafe fn SetDescription(&self, description: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), description.param().abi()).ok() } pub unsafe fn Author(&self, pauthor: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Author)(windows_core::Interface::as_raw(self), core::mem::transmute(pauthor)).ok() } pub unsafe fn SetAuthor(&self, author: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthor)(windows_core::Interface::as_raw(self), author.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthor)(windows_core::Interface::as_raw(self), author.param().abi()).ok() } pub unsafe fn Version(&self, pversion: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Version)(windows_core::Interface::as_raw(self), core::mem::transmute(pversion)).ok() } pub unsafe fn SetVersion(&self, version: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), version.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), version.param().abi()).ok() } pub unsafe fn Date(&self, pdate: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Date)(windows_core::Interface::as_raw(self), core::mem::transmute(pdate)).ok() } pub unsafe fn SetDate(&self, date: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDate)(windows_core::Interface::as_raw(self), date.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDate)(windows_core::Interface::as_raw(self), date.param().abi()).ok() } pub unsafe fn Documentation(&self, pdocumentation: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Documentation)(windows_core::Interface::as_raw(self), core::mem::transmute(pdocumentation)).ok() } pub unsafe fn SetDocumentation(&self, documentation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentation)(windows_core::Interface::as_raw(self), documentation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentation)(windows_core::Interface::as_raw(self), documentation.param().abi()).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() } pub unsafe fn SetXmlText(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn URI(&self, puri: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).URI)(windows_core::Interface::as_raw(self), core::mem::transmute(puri)).ok() } pub unsafe fn SetURI(&self, uri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURI)(windows_core::Interface::as_raw(self), uri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetURI)(windows_core::Interface::as_raw(self), uri.param().abi()).ok() } pub unsafe fn SecurityDescriptor(&self, psddl: *mut windows_core::VARIANT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SecurityDescriptor)(windows_core::Interface::as_raw(self), core::mem::transmute(psddl)).ok() } pub unsafe fn SetSecurityDescriptor(&self, sddl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), sddl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), sddl.param().abi()).ok() } pub unsafe fn Source(&self, psource: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Source)(windows_core::Interface::as_raw(self), core::mem::transmute(psource)).ok() } pub unsafe fn SetSource(&self, source: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), source.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), source.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1665,9 +1665,9 @@ impl IRegistrationTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -1677,54 +1677,54 @@ impl IRegistrationTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Delay(&self, pdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delay)(windows_core::Interface::as_raw(self), core::mem::transmute(pdelay)).ok() } pub unsafe fn SetDelay(&self, delay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1745,27 +1745,27 @@ impl IRepetitionPattern { } pub unsafe fn SetInterval(&self, interval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), interval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInterval)(windows_core::Interface::as_raw(self), interval.param().abi()).ok() } pub unsafe fn Duration(&self, pduration: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Duration)(windows_core::Interface::as_raw(self), core::mem::transmute(pduration)).ok() } pub unsafe fn SetDuration(&self, duration: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), duration.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDuration)(windows_core::Interface::as_raw(self), duration.param().abi()).ok() } pub unsafe fn StopAtDurationEnd(&self, pstop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopAtDurationEnd)(windows_core::Interface::as_raw(self), pstop).ok() } pub unsafe fn SetStopAtDurationEnd(&self, stop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStopAtDurationEnd)(windows_core::Interface::as_raw(self), stop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStopAtDurationEnd)(windows_core::Interface::as_raw(self), stop.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1842,10 +1842,10 @@ impl IRunningTaskCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1904,9 +1904,9 @@ impl IScheduledWorkItem { } pub unsafe fn EditWorkItem(&self, hparent: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EditWorkItem)(windows_core::Interface::as_raw(self), hparent.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).EditWorkItem)(windows_core::Interface::as_raw(self), hparent.param().abi(), dwreserved).ok() } pub unsafe fn GetMostRecentRunTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1922,9 +1922,9 @@ impl IScheduledWorkItem { } pub unsafe fn SetComment(&self, pwszcomment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetComment)(windows_core::Interface::as_raw(self), pwszcomment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetComment)(windows_core::Interface::as_raw(self), pwszcomment.param().abi()).ok() } pub unsafe fn GetComment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1932,9 +1932,9 @@ impl IScheduledWorkItem { } pub unsafe fn SetCreator(&self, pwszcreator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCreator)(windows_core::Interface::as_raw(self), pwszcreator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCreator)(windows_core::Interface::as_raw(self), pwszcreator.param().abi()).ok() } pub unsafe fn GetCreator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1969,10 +1969,10 @@ impl IScheduledWorkItem { } pub unsafe fn SetAccountInformation(&self, pwszaccountname: P0, pwszpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccountInformation)(windows_core::Interface::as_raw(self), pwszaccountname.into_param().abi(), pwszpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccountInformation)(windows_core::Interface::as_raw(self), pwszaccountname.param().abi(), pwszpassword.param().abi()).ok() } pub unsafe fn GetAccountInformation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2026,9 +2026,9 @@ impl ISessionStateChangeTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -2038,63 +2038,63 @@ impl ISessionStateChangeTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn Delay(&self, pdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delay)(windows_core::Interface::as_raw(self), core::mem::transmute(pdelay)).ok() } pub unsafe fn SetDelay(&self, delay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDelay)(windows_core::Interface::as_raw(self), delay.param().abi()).ok() } pub unsafe fn UserId(&self, puser: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UserId)(windows_core::Interface::as_raw(self), core::mem::transmute(puser)).ok() } pub unsafe fn SetUserId(&self, user: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserId)(windows_core::Interface::as_raw(self), user.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserId)(windows_core::Interface::as_raw(self), user.param().abi()).ok() } pub unsafe fn StateChange(&self, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StateChange)(windows_core::Interface::as_raw(self), ptype).ok() @@ -2125,9 +2125,9 @@ impl IShowMessageAction { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Type)(windows_core::Interface::as_raw(self), ptype).ok() @@ -2137,18 +2137,18 @@ impl IShowMessageAction { } pub unsafe fn SetTitle(&self, title: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), title.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), title.param().abi()).ok() } pub unsafe fn MessageBody(&self, pmessagebody: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MessageBody)(windows_core::Interface::as_raw(self), core::mem::transmute(pmessagebody)).ok() } pub unsafe fn SetMessageBody(&self, messagebody: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMessageBody)(windows_core::Interface::as_raw(self), messagebody.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMessageBody)(windows_core::Interface::as_raw(self), messagebody.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2201,9 +2201,9 @@ impl ITask { } pub unsafe fn EditWorkItem(&self, hparent: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EditWorkItem)(windows_core::Interface::as_raw(self), hparent.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).base__.EditWorkItem)(windows_core::Interface::as_raw(self), hparent.param().abi(), dwreserved).ok() } pub unsafe fn GetMostRecentRunTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2219,9 +2219,9 @@ impl ITask { } pub unsafe fn SetComment(&self, pwszcomment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetComment)(windows_core::Interface::as_raw(self), pwszcomment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetComment)(windows_core::Interface::as_raw(self), pwszcomment.param().abi()).ok() } pub unsafe fn GetComment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2229,9 +2229,9 @@ impl ITask { } pub unsafe fn SetCreator(&self, pwszcreator: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCreator)(windows_core::Interface::as_raw(self), pwszcreator.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCreator)(windows_core::Interface::as_raw(self), pwszcreator.param().abi()).ok() } pub unsafe fn GetCreator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2266,10 +2266,10 @@ impl ITask { } pub unsafe fn SetAccountInformation(&self, pwszaccountname: P0, pwszpassword: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAccountInformation)(windows_core::Interface::as_raw(self), pwszaccountname.into_param().abi(), pwszpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAccountInformation)(windows_core::Interface::as_raw(self), pwszaccountname.param().abi(), pwszpassword.param().abi()).ok() } pub unsafe fn GetAccountInformation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2277,9 +2277,9 @@ impl ITask { } pub unsafe fn SetApplicationName(&self, pwszapplicationname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetApplicationName)(windows_core::Interface::as_raw(self), pwszapplicationname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetApplicationName)(windows_core::Interface::as_raw(self), pwszapplicationname.param().abi()).ok() } pub unsafe fn GetApplicationName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2287,9 +2287,9 @@ impl ITask { } pub unsafe fn SetParameters(&self, pwszparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), pwszparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), pwszparameters.param().abi()).ok() } pub unsafe fn GetParameters(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2297,9 +2297,9 @@ impl ITask { } pub unsafe fn SetWorkingDirectory(&self, pwszworkingdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), pwszworkingdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), pwszworkingdirectory.param().abi()).ok() } pub unsafe fn GetWorkingDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2357,9 +2357,9 @@ impl ITaskDefinition { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRegistrationInfo(&self, pregistrationinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRegistrationInfo)(windows_core::Interface::as_raw(self), pregistrationinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRegistrationInfo)(windows_core::Interface::as_raw(self), pregistrationinfo.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Triggers(&self) -> windows_core::Result { @@ -2369,9 +2369,9 @@ impl ITaskDefinition { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetTriggers(&self, ptriggers: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTriggers)(windows_core::Interface::as_raw(self), ptriggers.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTriggers)(windows_core::Interface::as_raw(self), ptriggers.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Settings(&self) -> windows_core::Result { @@ -2381,18 +2381,18 @@ impl ITaskDefinition { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSettings(&self, psettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSettings)(windows_core::Interface::as_raw(self), psettings.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSettings)(windows_core::Interface::as_raw(self), psettings.param().abi()).ok() } pub unsafe fn Data(&self, pdata: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Data)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata)).ok() } pub unsafe fn SetData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Principal(&self) -> windows_core::Result { @@ -2402,9 +2402,9 @@ impl ITaskDefinition { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPrincipal(&self, pprincipal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrincipal)(windows_core::Interface::as_raw(self), pprincipal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrincipal)(windows_core::Interface::as_raw(self), pprincipal.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Actions(&self) -> windows_core::Result { @@ -2414,18 +2414,18 @@ impl ITaskDefinition { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetActions(&self, pactions: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActions)(windows_core::Interface::as_raw(self), pactions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActions)(windows_core::Interface::as_raw(self), pactions.param().abi()).ok() } pub unsafe fn XmlText(&self, pxml: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).XmlText)(windows_core::Interface::as_raw(self), core::mem::transmute(pxml)).ok() } pub unsafe fn SetXmlText(&self, xml: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), xml.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), xml.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2494,10 +2494,10 @@ impl ITaskFolder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFolder(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFolders(&self, flags: i32) -> windows_core::Result { @@ -2507,25 +2507,25 @@ impl ITaskFolder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateFolder(&self, subfoldername: P0, sddl: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFolder)(windows_core::Interface::as_raw(self), subfoldername.into_param().abi(), sddl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFolder)(windows_core::Interface::as_raw(self), subfoldername.param().abi(), sddl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteFolder(&self, subfoldername: P0, flags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), subfoldername.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).DeleteFolder)(windows_core::Interface::as_raw(self), subfoldername.param().abi(), flags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTask(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTask)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetTask)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTasks(&self, flags: i32) -> windows_core::Result { @@ -2534,33 +2534,33 @@ impl ITaskFolder { } pub unsafe fn DeleteTask(&self, name: P0, flags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), name.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), name.param().abi(), flags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterTask(&self, path: P0, xmltext: P1, flags: i32, userid: P2, password: P3, logontype: TASK_LOGON_TYPE, sddl: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterTask)(windows_core::Interface::as_raw(self), path.into_param().abi(), xmltext.into_param().abi(), flags, userid.into_param().abi(), password.into_param().abi(), logontype, sddl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterTask)(windows_core::Interface::as_raw(self), path.param().abi(), xmltext.param().abi(), flags, userid.param().abi(), password.param().abi(), logontype, sddl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RegisterTaskDefinition(&self, path: P0, pdefinition: P1, flags: i32, userid: P2, password: P3, logontype: TASK_LOGON_TYPE, sddl: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterTaskDefinition)(windows_core::Interface::as_raw(self), path.into_param().abi(), pdefinition.into_param().abi(), flags, userid.into_param().abi(), password.into_param().abi(), logontype, sddl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterTaskDefinition)(windows_core::Interface::as_raw(self), path.param().abi(), pdefinition.param().abi(), flags, userid.param().abi(), password.param().abi(), logontype, sddl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2568,9 +2568,9 @@ impl ITaskFolder { } pub unsafe fn SetSecurityDescriptor(&self, sddl: P0, flags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), sddl.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).SetSecurityDescriptor)(windows_core::Interface::as_raw(self), sddl.param().abi(), flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2625,10 +2625,10 @@ impl ITaskFolderCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2651,10 +2651,10 @@ windows_core::imp::interface_hierarchy!(ITaskHandler, windows_core::IUnknown); impl ITaskHandler { pub unsafe fn Start(&self, phandlerservices: P0, data: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), phandlerservices.into_param().abi(), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Start)(windows_core::Interface::as_raw(self), phandlerservices.param().abi(), data.param().abi()).ok() } pub unsafe fn Stop(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2680,9 +2680,9 @@ windows_core::imp::interface_hierarchy!(ITaskHandlerStatus, windows_core::IUnkno impl ITaskHandlerStatus { pub unsafe fn UpdateStatus(&self, percentcomplete: i16, statusmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateStatus)(windows_core::Interface::as_raw(self), percentcomplete, statusmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateStatus)(windows_core::Interface::as_raw(self), percentcomplete, statusmessage.param().abi()).ok() } pub unsafe fn TaskCompleted(&self, taskerrcode: windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TaskCompleted)(windows_core::Interface::as_raw(self), taskerrcode).ok() @@ -2715,11 +2715,11 @@ impl ITaskNamedValueCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Create(&self, name: P0, value: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi(), &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), index).ok() @@ -2756,18 +2756,18 @@ impl ITaskNamedValuePair { } pub unsafe fn SetName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Value(&self, pvalue: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Value)(windows_core::Interface::as_raw(self), core::mem::transmute(pvalue)).ok() } pub unsafe fn SetValue(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2784,9 +2784,9 @@ windows_core::imp::interface_hierarchy!(ITaskScheduler, windows_core::IUnknown); impl ITaskScheduler { pub unsafe fn SetTargetComputer(&self, pwszcomputer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetComputer)(windows_core::Interface::as_raw(self), pwszcomputer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetComputer)(windows_core::Interface::as_raw(self), pwszcomputer.param().abi()).ok() } pub unsafe fn GetTargetComputer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2798,36 +2798,36 @@ impl ITaskScheduler { } pub unsafe fn Activate(&self, pwszname: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pwszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), pwszname.param().abi()).ok() } pub unsafe fn NewWorkItem(&self, pwsztaskname: P0, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).NewWorkItem)(windows_core::Interface::as_raw(self), pwsztaskname.into_param().abi(), rclsid, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWorkItem)(windows_core::Interface::as_raw(self), pwsztaskname.into_param().abi(), pworkitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddWorkItem)(windows_core::Interface::as_raw(self), pwsztaskname.param().abi(), pworkitem.param().abi()).ok() } pub unsafe fn IsOfType(&self, pwszname: P0, riid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), pwszname.into_param().abi(), riid).ok() + (windows_core::Interface::vtable(self).IsOfType)(windows_core::Interface::as_raw(self), pwszname.param().abi(), riid).ok() } } #[repr(C)] @@ -2851,10 +2851,10 @@ impl ITaskService { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFolder(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRunningTasks(&self, flags: i32) -> windows_core::Result { @@ -2868,12 +2868,12 @@ impl ITaskService { } pub unsafe fn Connect(&self, servername: P0, user: P1, domain: P2, password: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), servername.into_param().abi(), user.into_param().abi(), domain.into_param().abi(), password.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), servername.param().abi(), user.param().abi(), domain.param().abi(), password.param().abi()).ok() } pub unsafe fn Connected(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2930,18 +2930,18 @@ impl ITaskSettings { } pub unsafe fn SetAllowDemandStart(&self, allowdemandstart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowDemandStart)(windows_core::Interface::as_raw(self), allowdemandstart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowDemandStart)(windows_core::Interface::as_raw(self), allowdemandstart.param().abi()).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() } pub unsafe fn SetRestartInterval(&self, restartinterval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRestartInterval)(windows_core::Interface::as_raw(self), restartinterval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRestartInterval)(windows_core::Interface::as_raw(self), restartinterval.param().abi()).ok() } pub unsafe fn RestartCount(&self, prestartcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RestartCount)(windows_core::Interface::as_raw(self), prestartcount).ok() @@ -2960,81 +2960,81 @@ impl ITaskSettings { } pub unsafe fn SetStopIfGoingOnBatteries(&self, stopifonbatteries: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStopIfGoingOnBatteries)(windows_core::Interface::as_raw(self), stopifonbatteries.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStopIfGoingOnBatteries)(windows_core::Interface::as_raw(self), stopifonbatteries.param().abi()).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), pdisallowstart).ok() } pub unsafe fn SetDisallowStartIfOnBatteries(&self, disallowstart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), disallowstart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), disallowstart.param().abi()).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), pallowhardterminate).ok() } pub unsafe fn SetAllowHardTerminate(&self, allowhardterminate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowHardTerminate)(windows_core::Interface::as_raw(self), allowhardterminate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowHardTerminate)(windows_core::Interface::as_raw(self), allowhardterminate.param().abi()).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), pstartwhenavailable).ok() } pub unsafe fn SetStartWhenAvailable(&self, startwhenavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStartWhenAvailable)(windows_core::Interface::as_raw(self), startwhenavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStartWhenAvailable)(windows_core::Interface::as_raw(self), startwhenavailable.param().abi()).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() } pub unsafe fn SetXmlText(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetXmlText)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), prunonlyifnetworkavailable).ok() } pub unsafe fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), runonlyifnetworkavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), runonlyifnetworkavailable.param().abi()).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() } pub unsafe fn SetExecutionTimeLimit(&self, executiontimelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), executiontimelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), executiontimelimit.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).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() } pub unsafe fn SetDeleteExpiredTaskAfter(&self, expirationdelay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeleteExpiredTaskAfter)(windows_core::Interface::as_raw(self), expirationdelay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDeleteExpiredTaskAfter)(windows_core::Interface::as_raw(self), expirationdelay.param().abi()).ok() } pub unsafe fn Priority(&self, ppriority: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Priority)(windows_core::Interface::as_raw(self), ppriority).ok() @@ -3053,9 +3053,9 @@ impl ITaskSettings { } pub unsafe fn SetHidden(&self, hidden: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), hidden.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHidden)(windows_core::Interface::as_raw(self), hidden.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IdleSettings(&self) -> windows_core::Result { @@ -3065,27 +3065,27 @@ impl ITaskSettings { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetIdleSettings(&self, pidlesettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIdleSettings)(windows_core::Interface::as_raw(self), pidlesettings.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIdleSettings)(windows_core::Interface::as_raw(self), pidlesettings.param().abi()).ok() } pub unsafe fn RunOnlyIfIdle(&self, prunonlyifidle: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RunOnlyIfIdle)(windows_core::Interface::as_raw(self), prunonlyifidle).ok() } pub unsafe fn SetRunOnlyIfIdle(&self, runonlyifidle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRunOnlyIfIdle)(windows_core::Interface::as_raw(self), runonlyifidle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRunOnlyIfIdle)(windows_core::Interface::as_raw(self), runonlyifidle.param().abi()).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), pwake).ok() } pub unsafe fn SetWakeToRun(&self, wake: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWakeToRun)(windows_core::Interface::as_raw(self), wake.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWakeToRun)(windows_core::Interface::as_raw(self), wake.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NetworkSettings(&self) -> windows_core::Result { @@ -3095,9 +3095,9 @@ impl ITaskSettings { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetNetworkSettings(&self, pnetworksettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNetworkSettings)(windows_core::Interface::as_raw(self), pnetworksettings.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNetworkSettings)(windows_core::Interface::as_raw(self), pnetworksettings.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3168,18 +3168,18 @@ impl ITaskSettings2 { } pub unsafe fn SetDisallowStartOnRemoteAppSession(&self, disallowstart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), disallowstart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), disallowstart.param().abi()).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), puseunifiedengine).ok() } pub unsafe fn SetUseUnifiedSchedulingEngine(&self, useunifiedengine: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), useunifiedengine.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), useunifiedengine.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3202,18 +3202,18 @@ impl ITaskSettings3 { } pub unsafe fn SetAllowDemandStart(&self, allowdemandstart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAllowDemandStart)(windows_core::Interface::as_raw(self), allowdemandstart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAllowDemandStart)(windows_core::Interface::as_raw(self), allowdemandstart.param().abi()).ok() } pub unsafe fn RestartInterval(&self, prestartinterval: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RestartInterval)(windows_core::Interface::as_raw(self), core::mem::transmute(prestartinterval)).ok() } pub unsafe fn SetRestartInterval(&self, restartinterval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRestartInterval)(windows_core::Interface::as_raw(self), restartinterval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRestartInterval)(windows_core::Interface::as_raw(self), restartinterval.param().abi()).ok() } pub unsafe fn RestartCount(&self, prestartcount: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RestartCount)(windows_core::Interface::as_raw(self), prestartcount).ok() @@ -3232,81 +3232,81 @@ impl ITaskSettings3 { } pub unsafe fn SetStopIfGoingOnBatteries(&self, stopifonbatteries: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStopIfGoingOnBatteries)(windows_core::Interface::as_raw(self), stopifonbatteries.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStopIfGoingOnBatteries)(windows_core::Interface::as_raw(self), stopifonbatteries.param().abi()).ok() } pub unsafe fn DisallowStartIfOnBatteries(&self, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), pdisallowstart).ok() } pub unsafe fn SetDisallowStartIfOnBatteries(&self, disallowstart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), disallowstart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDisallowStartIfOnBatteries)(windows_core::Interface::as_raw(self), disallowstart.param().abi()).ok() } pub unsafe fn AllowHardTerminate(&self, pallowhardterminate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.AllowHardTerminate)(windows_core::Interface::as_raw(self), pallowhardterminate).ok() } pub unsafe fn SetAllowHardTerminate(&self, allowhardterminate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAllowHardTerminate)(windows_core::Interface::as_raw(self), allowhardterminate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAllowHardTerminate)(windows_core::Interface::as_raw(self), allowhardterminate.param().abi()).ok() } pub unsafe fn StartWhenAvailable(&self, pstartwhenavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartWhenAvailable)(windows_core::Interface::as_raw(self), pstartwhenavailable).ok() } pub unsafe fn SetStartWhenAvailable(&self, startwhenavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartWhenAvailable)(windows_core::Interface::as_raw(self), startwhenavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartWhenAvailable)(windows_core::Interface::as_raw(self), startwhenavailable.param().abi()).ok() } pub unsafe fn XmlText(&self, ptext: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.XmlText)(windows_core::Interface::as_raw(self), core::mem::transmute(ptext)).ok() } pub unsafe fn SetXmlText(&self, text: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetXmlText)(windows_core::Interface::as_raw(self), text.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetXmlText)(windows_core::Interface::as_raw(self), text.param().abi()).ok() } pub unsafe fn RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), prunonlyifnetworkavailable).ok() } pub unsafe fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), runonlyifnetworkavailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRunOnlyIfNetworkAvailable)(windows_core::Interface::as_raw(self), runonlyifnetworkavailable.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(pexecutiontimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, executiontimelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), executiontimelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), executiontimelimit.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DeleteExpiredTaskAfter)(windows_core::Interface::as_raw(self), core::mem::transmute(pexpirationdelay)).ok() } pub unsafe fn SetDeleteExpiredTaskAfter(&self, expirationdelay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDeleteExpiredTaskAfter)(windows_core::Interface::as_raw(self), expirationdelay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDeleteExpiredTaskAfter)(windows_core::Interface::as_raw(self), expirationdelay.param().abi()).ok() } pub unsafe fn Priority(&self, ppriority: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Priority)(windows_core::Interface::as_raw(self), ppriority).ok() @@ -3325,9 +3325,9 @@ impl ITaskSettings3 { } pub unsafe fn SetHidden(&self, hidden: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHidden)(windows_core::Interface::as_raw(self), hidden.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHidden)(windows_core::Interface::as_raw(self), hidden.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IdleSettings(&self) -> windows_core::Result { @@ -3337,27 +3337,27 @@ impl ITaskSettings3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetIdleSettings(&self, pidlesettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIdleSettings)(windows_core::Interface::as_raw(self), pidlesettings.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIdleSettings)(windows_core::Interface::as_raw(self), pidlesettings.param().abi()).ok() } pub unsafe fn RunOnlyIfIdle(&self, prunonlyifidle: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RunOnlyIfIdle)(windows_core::Interface::as_raw(self), prunonlyifidle).ok() } pub unsafe fn SetRunOnlyIfIdle(&self, runonlyifidle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRunOnlyIfIdle)(windows_core::Interface::as_raw(self), runonlyifidle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRunOnlyIfIdle)(windows_core::Interface::as_raw(self), runonlyifidle.param().abi()).ok() } pub unsafe fn WakeToRun(&self, pwake: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.WakeToRun)(windows_core::Interface::as_raw(self), pwake).ok() } pub unsafe fn SetWakeToRun(&self, wake: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWakeToRun)(windows_core::Interface::as_raw(self), wake.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWakeToRun)(windows_core::Interface::as_raw(self), wake.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NetworkSettings(&self) -> windows_core::Result { @@ -3367,27 +3367,27 @@ impl ITaskSettings3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetNetworkSettings(&self, pnetworksettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNetworkSettings)(windows_core::Interface::as_raw(self), pnetworksettings.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNetworkSettings)(windows_core::Interface::as_raw(self), pnetworksettings.param().abi()).ok() } pub unsafe fn DisallowStartOnRemoteAppSession(&self, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), pdisallowstart).ok() } pub unsafe fn SetDisallowStartOnRemoteAppSession(&self, disallowstart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), disallowstart.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisallowStartOnRemoteAppSession)(windows_core::Interface::as_raw(self), disallowstart.param().abi()).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), puseunifiedengine).ok() } pub unsafe fn SetUseUnifiedSchedulingEngine(&self, useunifiedengine: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), useunifiedengine.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseUnifiedSchedulingEngine)(windows_core::Interface::as_raw(self), useunifiedengine.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MaintenanceSettings(&self) -> windows_core::Result { @@ -3397,9 +3397,9 @@ impl ITaskSettings3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMaintenanceSettings(&self, pmaintenancesettings: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMaintenanceSettings)(windows_core::Interface::as_raw(self), pmaintenancesettings.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMaintenanceSettings)(windows_core::Interface::as_raw(self), pmaintenancesettings.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateMaintenanceSettings(&self) -> windows_core::Result { @@ -3411,9 +3411,9 @@ impl ITaskSettings3 { } pub unsafe fn SetVolatile(&self, volatile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVolatile)(windows_core::Interface::as_raw(self), volatile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVolatile)(windows_core::Interface::as_raw(self), volatile.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3469,9 +3469,9 @@ impl ITaskVariables { } pub unsafe fn SetOutput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), input.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOutput)(windows_core::Interface::as_raw(self), input.param().abi()).ok() } pub unsafe fn GetContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3499,9 +3499,9 @@ impl ITimeTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -3511,54 +3511,54 @@ impl ITimeTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).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() } pub unsafe fn SetRandomDelay(&self, randomdelay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3582,9 +3582,9 @@ impl ITrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -3594,45 +3594,45 @@ impl ITrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3684,9 +3684,9 @@ impl ITriggerCollection { } pub unsafe fn Remove(&self, index: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), index.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -3723,9 +3723,9 @@ impl IWeeklyTrigger { } pub unsafe fn SetId(&self, id: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetId)(windows_core::Interface::as_raw(self), id.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Repetition(&self) -> windows_core::Result { @@ -3735,45 +3735,45 @@ impl IWeeklyTrigger { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetRepetition(&self, prepeat: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRepetition)(windows_core::Interface::as_raw(self), prepeat.param().abi()).ok() } pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ExecutionTimeLimit)(windows_core::Interface::as_raw(self), core::mem::transmute(ptimelimit)).ok() } pub unsafe fn SetExecutionTimeLimit(&self, timelimit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExecutionTimeLimit)(windows_core::Interface::as_raw(self), timelimit.param().abi()).ok() } pub unsafe fn StartBoundary(&self, pstart: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.StartBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pstart)).ok() } pub unsafe fn SetStartBoundary(&self, start: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStartBoundary)(windows_core::Interface::as_raw(self), start.param().abi()).ok() } pub unsafe fn EndBoundary(&self, pend: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.EndBoundary)(windows_core::Interface::as_raw(self), core::mem::transmute(pend)).ok() } pub unsafe fn SetEndBoundary(&self, end: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEndBoundary)(windows_core::Interface::as_raw(self), end.param().abi()).ok() } pub unsafe fn Enabled(&self, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Enabled)(windows_core::Interface::as_raw(self), penabled).ok() } pub unsafe fn SetEnabled(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetEnabled)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DaysOfWeek(&self, pdays: *mut i16) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DaysOfWeek)(windows_core::Interface::as_raw(self), pdays).ok() @@ -3792,9 +3792,9 @@ impl IWeeklyTrigger { } pub unsafe fn SetRandomDelay(&self, randomdelay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRandomDelay)(windows_core::Interface::as_raw(self), randomdelay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] 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 05ab8036f0..4834773cb4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs @@ -11,42 +11,42 @@ pub unsafe fn AcquireSRWLockShared(srwlock: *mut SRWLOCK) { #[inline] pub unsafe fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, integritylabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, integritylabel : super::super::Foundation:: PSID) -> super::super::Foundation:: BOOL); - AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor, integritylabel.into_param().abi()).ok() + AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor, integritylabel.param().abi()).ok() } #[inline] pub unsafe fn AddSIDToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, requiredsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn AddSIDToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, requiredsid : super::super::Foundation:: PSID) -> super::super::Foundation:: BOOL); - AddSIDToBoundaryDescriptor(boundarydescriptor, requiredsid.into_param().abi()).ok() + AddSIDToBoundaryDescriptor(boundarydescriptor, requiredsid.param().abi()).ok() } #[inline] pub unsafe fn AttachThreadInput(idattach: u32, idattachto: u32, fattach: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn AttachThreadInput(idattach : u32, idattachto : u32, fattach : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - AttachThreadInput(idattach, idattachto, fattach.into_param().abi()) + AttachThreadInput(idattach, idattachto, fattach.param().abi()) } #[inline] pub unsafe fn AvQuerySystemResponsiveness(avrthandle: P0, systemresponsivenessvalue: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvQuerySystemResponsiveness(avrthandle : super::super::Foundation:: HANDLE, systemresponsivenessvalue : *mut u32) -> super::super::Foundation:: BOOL); - AvQuerySystemResponsiveness(avrthandle.into_param().abi(), systemresponsivenessvalue).ok() + AvQuerySystemResponsiveness(avrthandle.param().abi(), systemresponsivenessvalue).ok() } #[inline] pub unsafe fn AvRevertMmThreadCharacteristics(avrthandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvRevertMmThreadCharacteristics(avrthandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRevertMmThreadCharacteristics(avrthandle.into_param().abi()).ok() + AvRevertMmThreadCharacteristics(avrthandle.param().abi()).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<()> { @@ -56,203 +56,203 @@ pub unsafe fn AvRtCreateThreadOrderingGroup(context: *mut super::super::Foundati #[inline] pub unsafe fn AvRtCreateThreadOrderingGroupExA(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut windows_core::GUID, timeout: Option<*const i64>, taskname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(context, period, threadorderingguid, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), taskname.into_param().abi()).ok() + AvRtCreateThreadOrderingGroupExA(context, period, threadorderingguid, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(context, period, threadorderingguid, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), taskname.into_param().abi()).ok() + AvRtCreateThreadOrderingGroupExW(context, period, threadorderingguid, core::mem::transmute(timeout.unwrap_or(std::ptr::null())), taskname.param().abi()).ok() } #[inline] pub unsafe fn AvRtDeleteThreadOrderingGroup(context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvRtDeleteThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRtDeleteThreadOrderingGroup(context.into_param().abi()).ok() + AvRtDeleteThreadOrderingGroup(context.param().abi()).ok() } #[inline] pub unsafe fn AvRtJoinThreadOrderingGroup(context: *mut super::super::Foundation::HANDLE, threadorderingguid: *const windows_core::GUID, before: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(context, threadorderingguid, before.into_param().abi()).ok() + AvRtJoinThreadOrderingGroup(context, threadorderingguid, before.param().abi()).ok() } #[inline] pub unsafe fn AvRtLeaveThreadOrderingGroup(context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvRtLeaveThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRtLeaveThreadOrderingGroup(context.into_param().abi()).ok() + AvRtLeaveThreadOrderingGroup(context.param().abi()).ok() } #[inline] pub unsafe fn AvRtWaitOnThreadOrderingGroup(context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvRtWaitOnThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - AvRtWaitOnThreadOrderingGroup(context.into_param().abi()).ok() + AvRtWaitOnThreadOrderingGroup(context.param().abi()).ok() } #[inline] pub unsafe fn AvSetMmMaxThreadCharacteristicsA(firsttask: P0, secondtask: P1, taskindex: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvSetMmMaxThreadCharacteristicsA(firsttask : windows_core::PCSTR, secondtask : windows_core::PCSTR, taskindex : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = AvSetMmMaxThreadCharacteristicsA(firsttask.into_param().abi(), secondtask.into_param().abi(), taskindex); + let result__ = AvSetMmMaxThreadCharacteristicsA(firsttask.param().abi(), secondtask.param().abi(), taskindex); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn AvSetMmMaxThreadCharacteristicsW(firsttask: P0, secondtask: P1, taskindex: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvSetMmMaxThreadCharacteristicsW(firsttask : windows_core::PCWSTR, secondtask : windows_core::PCWSTR, taskindex : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = AvSetMmMaxThreadCharacteristicsW(firsttask.into_param().abi(), secondtask.into_param().abi(), taskindex); + let result__ = AvSetMmMaxThreadCharacteristicsW(firsttask.param().abi(), secondtask.param().abi(), taskindex); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn AvSetMmThreadCharacteristicsA(taskname: P0, taskindex: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvSetMmThreadCharacteristicsA(taskname : windows_core::PCSTR, taskindex : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = AvSetMmThreadCharacteristicsA(taskname.into_param().abi(), taskindex); + let result__ = AvSetMmThreadCharacteristicsA(taskname.param().abi(), taskindex); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn AvSetMmThreadCharacteristicsW(taskname: P0, taskindex: *mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvSetMmThreadCharacteristicsW(taskname : windows_core::PCWSTR, taskindex : *mut u32) -> super::super::Foundation:: HANDLE); - let result__ = AvSetMmThreadCharacteristicsW(taskname.into_param().abi(), taskindex); + let result__ = AvSetMmThreadCharacteristicsW(taskname.param().abi(), taskindex); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn AvSetMmThreadPriority(avrthandle: P0, priority: AVRT_PRIORITY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("avrt.dll" "system" fn AvSetMmThreadPriority(avrthandle : super::super::Foundation:: HANDLE, priority : AVRT_PRIORITY) -> super::super::Foundation:: BOOL); - AvSetMmThreadPriority(avrthandle.into_param().abi(), priority).ok() + AvSetMmThreadPriority(avrthandle.param().abi(), priority).ok() } #[inline] pub unsafe fn CallbackMayRunLong(pci: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CallbackMayRunLong(pci : PTP_CALLBACK_INSTANCE) -> super::super::Foundation:: BOOL); - CallbackMayRunLong(pci.into_param().abi()) + CallbackMayRunLong(pci.param().abi()) } #[inline] pub unsafe fn CancelThreadpoolIo(pio: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CancelThreadpoolIo(pio : PTP_IO)); - CancelThreadpoolIo(pio.into_param().abi()) + CancelThreadpoolIo(pio.param().abi()) } #[inline] pub unsafe fn CancelTimerQueueTimer(timerqueue: P0, timer: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CancelTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelTimerQueueTimer(timerqueue.into_param().abi(), timer.into_param().abi()) + CancelTimerQueueTimer(timerqueue.param().abi(), timer.param().abi()) } #[inline] pub unsafe fn CancelWaitableTimer(htimer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CancelWaitableTimer(htimer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelWaitableTimer(htimer.into_param().abi()).ok() + CancelWaitableTimer(htimer.param().abi()).ok() } #[inline] pub unsafe fn ChangeTimerQueueTimer(timerqueue: P0, timer: P1, duetime: u32, period: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(timerqueue.into_param().abi(), timer.into_param().abi(), duetime, period).ok() + ChangeTimerQueueTimer(timerqueue.param().abi(), timer.param().abi(), duetime, period).ok() } #[inline] pub unsafe fn ClosePrivateNamespace(handle: P0, flags: u32) -> super::super::Foundation::BOOLEAN where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ClosePrivateNamespace(handle : super::super::Foundation:: HANDLE, flags : u32) -> super::super::Foundation:: BOOLEAN); - ClosePrivateNamespace(handle.into_param().abi(), flags) + ClosePrivateNamespace(handle.param().abi(), flags) } #[inline] pub unsafe fn CloseThreadpool(ptpp: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpool(ptpp : PTP_POOL)); - CloseThreadpool(ptpp.into_param().abi()) + CloseThreadpool(ptpp.param().abi()) } #[inline] pub unsafe fn CloseThreadpoolCleanupGroup(ptpcg: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroup(ptpcg : PTP_CLEANUP_GROUP)); - CloseThreadpoolCleanupGroup(ptpcg.into_param().abi()) + CloseThreadpoolCleanupGroup(ptpcg.param().abi()) } #[inline] pub unsafe fn CloseThreadpoolCleanupGroupMembers(ptpcg: P0, fcancelpendingcallbacks: P1, pvcleanupcontext: Option<*mut core::ffi::c_void>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroupMembers(ptpcg : PTP_CLEANUP_GROUP, fcancelpendingcallbacks : super::super::Foundation:: BOOL, pvcleanupcontext : *mut core::ffi::c_void)); - CloseThreadpoolCleanupGroupMembers(ptpcg.into_param().abi(), fcancelpendingcallbacks.into_param().abi(), core::mem::transmute(pvcleanupcontext.unwrap_or(std::ptr::null_mut()))) + CloseThreadpoolCleanupGroupMembers(ptpcg.param().abi(), fcancelpendingcallbacks.param().abi(), core::mem::transmute(pvcleanupcontext.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn CloseThreadpoolIo(pio: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolIo(pio : PTP_IO)); - CloseThreadpoolIo(pio.into_param().abi()) + CloseThreadpoolIo(pio.param().abi()) } #[inline] pub unsafe fn CloseThreadpoolTimer(pti: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolTimer(pti : PTP_TIMER)); - CloseThreadpoolTimer(pti.into_param().abi()) + CloseThreadpoolTimer(pti.param().abi()) } #[inline] pub unsafe fn CloseThreadpoolWait(pwa: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolWait(pwa : PTP_WAIT)); - CloseThreadpoolWait(pwa.into_param().abi()) + CloseThreadpoolWait(pwa.param().abi()) } #[inline] pub unsafe fn CloseThreadpoolWork(pwk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolWork(pwk : PTP_WORK)); - CloseThreadpoolWork(pwk.into_param().abi()) + CloseThreadpoolWork(pwk.param().abi()) } #[inline] pub unsafe fn ConvertFiberToThread() -> windows_core::Result<()> { @@ -272,62 +272,62 @@ pub unsafe fn ConvertThreadToFiberEx(lpparameter: Option<*const core::ffi::c_voi #[inline] pub unsafe fn CreateBoundaryDescriptorA(name: P0, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + 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.into_param().abi(), flags); + let result__ = CreateBoundaryDescriptorA(name.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateBoundaryDescriptorW(name: P0, flags: u32) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateBoundaryDescriptorW(name : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: HANDLE); - CreateBoundaryDescriptorW(name.into_param().abi(), flags) + CreateBoundaryDescriptorW(name.param().abi(), flags) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateEventA(lpeventattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, bmanualreset: P0, binitialstate: P1, lpname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateEventA(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, binitialstate : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateEventA(core::mem::transmute(lpeventattributes.unwrap_or(std::ptr::null())), bmanualreset.into_param().abi(), binitialstate.into_param().abi(), lpname.into_param().abi()); + let result__ = CreateEventA(core::mem::transmute(lpeventattributes.unwrap_or(std::ptr::null())), bmanualreset.param().abi(), binitialstate.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateEventExA(lpeventattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpname: P0, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lpname.into_param().abi(), dwflags, dwdesiredaccess); + let result__ = CreateEventExA(core::mem::transmute(lpeventattributes.unwrap_or(std::ptr::null())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateEventExW(lpeventattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpname: P0, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lpname.into_param().abi(), dwflags, dwdesiredaccess); + let result__ = CreateEventExW(core::mem::transmute(lpeventattributes.unwrap_or(std::ptr::null())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateEventW(lpeventattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, bmanualreset: P0, binitialstate: P1, lpname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateEventW(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, binitialstate : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateEventW(core::mem::transmute(lpeventattributes.unwrap_or(std::ptr::null())), bmanualreset.into_param().abi(), binitialstate.into_param().abi(), lpname.into_param().abi()); + let result__ = CreateEventW(core::mem::transmute(lpeventattributes.unwrap_or(std::ptr::null())), bmanualreset.param().abi(), binitialstate.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -344,190 +344,190 @@ pub unsafe fn CreateFiberEx(dwstackcommitsize: usize, dwstackreservesize: usize, #[inline] pub unsafe fn CreateMutexA(lpmutexattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, binitialowner: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateMutexA(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binitialowner : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateMutexA(core::mem::transmute(lpmutexattributes.unwrap_or(std::ptr::null())), binitialowner.into_param().abi(), lpname.into_param().abi()); + let result__ = CreateMutexA(core::mem::transmute(lpmutexattributes.unwrap_or(std::ptr::null())), binitialowner.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateMutexExA(lpmutexattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpname: P0, dwflags: u32, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lpname.into_param().abi(), dwflags, dwdesiredaccess); + let result__ = CreateMutexExA(core::mem::transmute(lpmutexattributes.unwrap_or(std::ptr::null())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateMutexExW(lpmutexattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpname: P0, dwflags: u32, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lpname.into_param().abi(), dwflags, dwdesiredaccess); + let result__ = CreateMutexExW(core::mem::transmute(lpmutexattributes.unwrap_or(std::ptr::null())), lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateMutexW(lpmutexattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, binitialowner: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateMutexW(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binitialowner : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateMutexW(core::mem::transmute(lpmutexattributes.unwrap_or(std::ptr::null())), binitialowner.into_param().abi(), lpname.into_param().abi()); + let result__ = CreateMutexW(core::mem::transmute(lpmutexattributes.unwrap_or(std::ptr::null())), binitialowner.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreatePrivateNamespaceA(lpprivatenamespaceattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpboundarydescriptor: *const core::ffi::c_void, lpaliasprefix: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lpboundarydescriptor, lpaliasprefix.into_param().abi()); + let result__ = CreatePrivateNamespaceA(core::mem::transmute(lpprivatenamespaceattributes.unwrap_or(std::ptr::null())), lpboundarydescriptor, lpaliasprefix.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreatePrivateNamespaceW(lpprivatenamespaceattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpboundarydescriptor: *const core::ffi::c_void, lpaliasprefix: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lpboundarydescriptor, lpaliasprefix.into_param().abi()) + CreatePrivateNamespaceW(core::mem::transmute(lpprivatenamespaceattributes.unwrap_or(std::ptr::null())), lpboundarydescriptor, lpaliasprefix.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateProcessA(lpapplicationname: P0, lpcommandline: windows_core::PSTR, lpprocessattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, binherithandles: P1, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P2, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.into_param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.into_param().abi(), lpstartupinfo, lpprocessinformation).ok() + CreateProcessA(lpapplicationname.param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateProcessAsUserA(htoken: P0, lpapplicationname: P1, lpcommandline: windows_core::PSTR, lpprocessattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, binherithandles: P2, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P3, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateProcessAsUserA(htoken : super::super::Foundation:: HANDLE, 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); - CreateProcessAsUserA(htoken.into_param().abi(), lpapplicationname.into_param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.into_param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.into_param().abi(), lpstartupinfo, lpprocessinformation).ok() + CreateProcessAsUserA(htoken.param().abi(), lpapplicationname.param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateProcessAsUserW(htoken: P0, lpapplicationname: P1, lpcommandline: windows_core::PWSTR, lpprocessattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, binherithandles: P2, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P3, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn CreateProcessAsUserW(htoken : super::super::Foundation:: HANDLE, 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); - CreateProcessAsUserW(htoken.into_param().abi(), lpapplicationname.into_param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.into_param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.into_param().abi(), lpstartupinfo, lpprocessinformation).ok() + CreateProcessAsUserW(htoken.param().abi(), lpapplicationname.param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateProcessW(lpapplicationname: P0, lpcommandline: windows_core::PWSTR, lpprocessattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, binherithandles: P1, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P2, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.into_param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.into_param().abi(), lpstartupinfo, lpprocessinformation).ok() + CreateProcessW(lpapplicationname.param().abi(), core::mem::transmute(lpcommandline), core::mem::transmute(lpprocessattributes.unwrap_or(std::ptr::null())), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), binherithandles.param().abi(), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation).ok() } #[inline] pub unsafe fn CreateProcessWithLogonW(lpusername: P0, lpdomain: P1, lppassword: P2, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: P3, lpcommandline: windows_core::PWSTR, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P4, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), lpdomain.into_param().abi(), lppassword.into_param().abi(), dwlogonflags, lpapplicationname.into_param().abi(), core::mem::transmute(lpcommandline), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.into_param().abi(), lpstartupinfo, lpprocessinformation).ok() + CreateProcessWithLogonW(lpusername.param().abi(), lpdomain.param().abi(), lppassword.param().abi(), dwlogonflags, lpapplicationname.param().abi(), core::mem::transmute(lpcommandline), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation).ok() } #[inline] pub unsafe fn CreateProcessWithTokenW(htoken: P0, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: P1, lpcommandline: windows_core::PWSTR, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: Option<*const core::ffi::c_void>, lpcurrentdirectory: P2, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(htoken.into_param().abi(), dwlogonflags, lpapplicationname.into_param().abi(), core::mem::transmute(lpcommandline), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.into_param().abi(), lpstartupinfo, lpprocessinformation).ok() + CreateProcessWithTokenW(htoken.param().abi(), dwlogonflags, lpapplicationname.param().abi(), core::mem::transmute(lpcommandline), dwcreationflags, core::mem::transmute(lpenvironment.unwrap_or(std::ptr::null())), lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateRemoteThread(hprocess: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(std::ptr::null())), dwcreationflags, core::mem::transmute(lpthreadid.unwrap_or(std::ptr::null_mut()))); + let result__ = CreateRemoteThread(hprocess.param().abi(), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(std::ptr::null())), dwcreationflags, core::mem::transmute(lpthreadid.unwrap_or(std::ptr::null_mut()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateRemoteThreadEx(hprocess: P0, lpthreadattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, dwstacksize: usize, lpstartaddress: LPTHREAD_START_ROUTINE, lpparameter: Option<*const core::ffi::c_void>, dwcreationflags: u32, lpattributelist: P1, lpthreadid: Option<*mut u32>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(std::ptr::null())), dwcreationflags, lpattributelist.into_param().abi(), core::mem::transmute(lpthreadid.unwrap_or(std::ptr::null_mut()))); + let result__ = CreateRemoteThreadEx(hprocess.param().abi(), core::mem::transmute(lpthreadattributes.unwrap_or(std::ptr::null())), dwstacksize, lpstartaddress, core::mem::transmute(lpparameter.unwrap_or(std::ptr::null())), dwcreationflags, lpattributelist.param().abi(), core::mem::transmute(lpthreadid.unwrap_or(std::ptr::null_mut()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateSemaphoreA(lpsemaphoreattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, linitialcount: i32, lmaximumcount: i32, lpname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), linitialcount, lmaximumcount, lpname.into_param().abi()); + let result__ = CreateSemaphoreA(core::mem::transmute(lpsemaphoreattributes.unwrap_or(std::ptr::null())), linitialcount, lmaximumcount, lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateSemaphoreExA(lpsemaphoreattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, linitialcount: i32, lmaximumcount: i32, lpname: P0, dwflags: u32, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), linitialcount, lmaximumcount, lpname.into_param().abi(), dwflags, dwdesiredaccess); + let result__ = CreateSemaphoreExA(core::mem::transmute(lpsemaphoreattributes.unwrap_or(std::ptr::null())), linitialcount, lmaximumcount, lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateSemaphoreExW(lpsemaphoreattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, linitialcount: i32, lmaximumcount: i32, lpname: P0, dwflags: u32, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), linitialcount, lmaximumcount, lpname.into_param().abi(), dwflags, dwdesiredaccess); + let result__ = CreateSemaphoreExW(core::mem::transmute(lpsemaphoreattributes.unwrap_or(std::ptr::null())), linitialcount, lmaximumcount, lpname.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateSemaphoreW(lpsemaphoreattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, linitialcount: i32, lmaximumcount: i32, lpname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), linitialcount, lmaximumcount, lpname.into_param().abi()); + let result__ = CreateSemaphoreW(core::mem::transmute(lpsemaphoreattributes.unwrap_or(std::ptr::null())), linitialcount, lmaximumcount, lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] @@ -550,10 +550,10 @@ pub unsafe fn CreateThreadpoolCleanupGroup() -> PTP_CLEANUP_GROUP { #[inline] pub unsafe fn CreateThreadpoolIo(fl: P0, pfnio: PTP_WIN32_IO_CALLBACK, pv: Option<*mut core::ffi::c_void>, pcbe: Option<*const TP_CALLBACK_ENVIRON_V3>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(fl.into_param().abi(), pfnio, core::mem::transmute(pv.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbe.unwrap_or(std::ptr::null()))); + let result__ = CreateThreadpoolIo(fl.param().abi(), pfnio, core::mem::transmute(pv.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbe.unwrap_or(std::ptr::null()))); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -583,10 +583,10 @@ pub unsafe fn CreateTimerQueue() -> windows_core::Result(phnewtimer: *mut super::super::Foundation::HANDLE, timerqueue: P0, callback: WAITORTIMERCALLBACK, parameter: Option<*const core::ffi::c_void>, duetime: u32, period: u32, flags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(phnewtimer, timerqueue.into_param().abi(), callback, core::mem::transmute(parameter.unwrap_or(std::ptr::null())), duetime, period, flags).ok() + CreateTimerQueueTimer(phnewtimer, timerqueue.param().abi(), callback, core::mem::transmute(parameter.unwrap_or(std::ptr::null())), duetime, period, flags).ok() } #[inline] pub unsafe fn CreateUmsCompletionList(umscompletionlist: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -602,49 +602,49 @@ pub unsafe fn CreateUmsThreadContext(lpumsthread: *mut *mut core::ffi::c_void) - #[inline] pub unsafe fn CreateWaitableTimerA(lptimerattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, bmanualreset: P0, lptimername: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerA(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, lptimername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); - CreateWaitableTimerA(core::mem::transmute(lptimerattributes.unwrap_or(std::ptr::null())), bmanualreset.into_param().abi(), lptimername.into_param().abi()) + CreateWaitableTimerA(core::mem::transmute(lptimerattributes.unwrap_or(std::ptr::null())), bmanualreset.param().abi(), lptimername.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateWaitableTimerExA(lptimerattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lptimername: P0, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lptimername.into_param().abi(), dwflags, dwdesiredaccess) + CreateWaitableTimerExA(core::mem::transmute(lptimerattributes.unwrap_or(std::ptr::null())), lptimername.param().abi(), dwflags, dwdesiredaccess) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateWaitableTimerExW(lptimerattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, lptimername: P0, dwflags: u32, dwdesiredaccess: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: 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(std::ptr::null())), lptimername.into_param().abi(), dwflags, dwdesiredaccess); + let result__ = CreateWaitableTimerExW(core::mem::transmute(lptimerattributes.unwrap_or(std::ptr::null())), lptimername.param().abi(), dwflags, dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreateWaitableTimerW(lptimerattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, bmanualreset: P0, lptimername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerW(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, lptimername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); - let result__ = CreateWaitableTimerW(core::mem::transmute(lptimerattributes.unwrap_or(std::ptr::null())), bmanualreset.into_param().abi(), lptimername.into_param().abi()); + let result__ = CreateWaitableTimerW(core::mem::transmute(lptimerattributes.unwrap_or(std::ptr::null())), bmanualreset.param().abi(), lptimername.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DeleteBoundaryDescriptor(boundarydescriptor: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteBoundaryDescriptor(boundarydescriptor : super::super::Foundation:: HANDLE)); - DeleteBoundaryDescriptor(boundarydescriptor.into_param().abi()) + DeleteBoundaryDescriptor(boundarydescriptor.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -670,29 +670,29 @@ pub unsafe fn DeleteSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRI #[inline] pub unsafe fn DeleteTimerQueue(timerqueue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueue(timerqueue : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteTimerQueue(timerqueue.into_param().abi()).ok() + DeleteTimerQueue(timerqueue.param().abi()).ok() } #[inline] pub unsafe fn DeleteTimerQueueEx(timerqueue: P0, completionevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueueEx(timerqueue : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DeleteTimerQueueEx(timerqueue.into_param().abi(), completionevent.into_param().abi()).ok() + DeleteTimerQueueEx(timerqueue.param().abi(), completionevent.param().abi()).ok() } #[inline] pub unsafe fn DeleteTimerQueueTimer(timerqueue: P0, timer: P1, completionevent: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(timerqueue.into_param().abi(), timer.into_param().abi(), completionevent.into_param().abi()).ok() + DeleteTimerQueueTimer(timerqueue.param().abi(), timer.param().abi(), completionevent.param().abi()).ok() } #[inline] pub unsafe fn DeleteUmsCompletionList(umscompletionlist: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -712,10 +712,10 @@ pub unsafe fn DequeueUmsCompletionListItems(umscompletionlist: *const core::ffi: #[inline] pub unsafe fn DisassociateCurrentThreadFromCallback(pci: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DisassociateCurrentThreadFromCallback(pci : PTP_CALLBACK_INSTANCE)); - DisassociateCurrentThreadFromCallback(pci.into_param().abi()) + DisassociateCurrentThreadFromCallback(pci.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -777,11 +777,11 @@ pub unsafe fn FlushProcessWriteBuffers() { #[inline] pub unsafe fn FreeLibraryWhenCallbackReturns(pci: P0, r#mod: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn FreeLibraryWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, r#mod : super::super::Foundation:: HMODULE)); - FreeLibraryWhenCallbackReturns(pci.into_param().abi(), r#mod.into_param().abi()) + FreeLibraryWhenCallbackReturns(pci.param().abi(), r#mod.param().abi()) } #[inline] pub unsafe fn GetActiveProcessorCount(groupnumber: u16) -> u32 { @@ -839,26 +839,26 @@ pub unsafe fn GetCurrentUmsThread() -> *mut core::ffi::c_void { #[inline] pub unsafe fn GetExitCodeProcess(hprocess: P0, lpexitcode: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetExitCodeProcess(hprocess : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> super::super::Foundation:: BOOL); - GetExitCodeProcess(hprocess.into_param().abi(), lpexitcode).ok() + GetExitCodeProcess(hprocess.param().abi(), lpexitcode).ok() } #[inline] pub unsafe fn GetExitCodeThread(hthread: P0, lpexitcode: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetExitCodeThread(hthread : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> super::super::Foundation:: BOOL); - GetExitCodeThread(hthread.into_param().abi(), lpexitcode).ok() + GetExitCodeThread(hthread.param().abi(), lpexitcode).ok() } #[inline] pub unsafe fn GetGuiResources(hprocess: P0, uiflags: GET_GUI_RESOURCES_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetGuiResources(hprocess : super::super::Foundation:: HANDLE, uiflags : GET_GUI_RESOURCES_FLAGS) -> u32); - GetGuiResources(hprocess.into_param().abi(), uiflags) + GetGuiResources(hprocess.param().abi(), uiflags) } #[inline] pub unsafe fn GetMachineTypeAttributes(machine: u16) -> windows_core::Result { @@ -899,10 +899,10 @@ pub unsafe fn GetNumaHighestNodeNumber(highestnodenumber: *mut u32) -> windows_c #[inline] pub unsafe fn GetNumaNodeNumberFromHandle(hfile: P0, nodenumber: *mut u16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeNumberFromHandle(hfile : super::super::Foundation:: HANDLE, nodenumber : *mut u16) -> super::super::Foundation:: BOOL); - GetNumaNodeNumberFromHandle(hfile.into_param().abi(), nodenumber).ok() + GetNumaNodeNumberFromHandle(hfile.param().abi(), nodenumber).ok() } #[inline] pub unsafe fn GetNumaNodeProcessorMask(node: u8, processormask: *mut u64) -> windows_core::Result<()> { @@ -945,107 +945,107 @@ pub unsafe fn GetNumaProximityNodeEx(proximityid: u32, nodenumber: *mut u16) -> #[inline] pub unsafe fn GetPriorityClass(hprocess: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPriorityClass(hprocess : super::super::Foundation:: HANDLE) -> u32); - GetPriorityClass(hprocess.into_param().abi()) + GetPriorityClass(hprocess.param().abi()) } #[inline] pub unsafe fn GetProcessAffinityMask(hprocess: P0, lpprocessaffinitymask: *mut usize, lpsystemaffinitymask: *mut usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, lpprocessaffinitymask : *mut usize, lpsystemaffinitymask : *mut usize) -> super::super::Foundation:: BOOL); - GetProcessAffinityMask(hprocess.into_param().abi(), lpprocessaffinitymask, lpsystemaffinitymask).ok() + GetProcessAffinityMask(hprocess.param().abi(), lpprocessaffinitymask, lpsystemaffinitymask).ok() } #[inline] pub unsafe fn GetProcessDEPPolicy(hprocess: P0, lpflags: *mut u32, lppermanent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpflags, lppermanent).ok() + GetProcessDEPPolicy(hprocess.param().abi(), lpflags, lppermanent).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetProcessDefaultCpuSetMasks(process: P0, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), 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()), requiredmaskcount) + GetProcessDefaultCpuSetMasks(process.param().abi(), 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()), requiredmaskcount) } #[inline] pub unsafe fn GetProcessDefaultCpuSets(process: P0, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), 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()), requiredidcount) + GetProcessDefaultCpuSets(process.param().abi(), 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()), requiredidcount) } #[inline] pub unsafe fn GetProcessGroupAffinity(hprocess: P0, groupcount: *mut u16, grouparray: *mut u16) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessGroupAffinity(hprocess : super::super::Foundation:: HANDLE, groupcount : *mut u16, grouparray : *mut u16) -> super::super::Foundation:: BOOL); - GetProcessGroupAffinity(hprocess.into_param().abi(), groupcount, grouparray) + GetProcessGroupAffinity(hprocess.param().abi(), groupcount, grouparray) } #[inline] pub unsafe fn GetProcessHandleCount(hprocess: P0, pdwhandlecount: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessHandleCount(hprocess : super::super::Foundation:: HANDLE, pdwhandlecount : *mut u32) -> super::super::Foundation:: BOOL); - GetProcessHandleCount(hprocess.into_param().abi(), pdwhandlecount).ok() + GetProcessHandleCount(hprocess.param().abi(), pdwhandlecount).ok() } #[inline] pub unsafe fn GetProcessId(process: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessId(process : super::super::Foundation:: HANDLE) -> u32); - GetProcessId(process.into_param().abi()) + GetProcessId(process.param().abi()) } #[inline] pub unsafe fn GetProcessIdOfThread(thread: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessIdOfThread(thread : super::super::Foundation:: HANDLE) -> u32); - GetProcessIdOfThread(thread.into_param().abi()) + GetProcessIdOfThread(thread.param().abi()) } #[inline] pub unsafe fn GetProcessInformation(hprocess: P0, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *mut core::ffi::c_void, processinformationsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), processinformationclass, processinformation, processinformationsize).ok() + GetProcessInformation(hprocess.param().abi(), processinformationclass, processinformation, processinformationsize).ok() } #[inline] pub unsafe fn GetProcessIoCounters(hprocess: P0, lpiocounters: *mut IO_COUNTERS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessIoCounters(hprocess : super::super::Foundation:: HANDLE, lpiocounters : *mut IO_COUNTERS) -> super::super::Foundation:: BOOL); - GetProcessIoCounters(hprocess.into_param().abi(), lpiocounters).ok() + GetProcessIoCounters(hprocess.param().abi(), lpiocounters).ok() } #[inline] pub unsafe fn GetProcessMitigationPolicy(hprocess: P0, mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *mut core::ffi::c_void, dwlength: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), mitigationpolicy, lpbuffer, dwlength).ok() + GetProcessMitigationPolicy(hprocess.param().abi(), mitigationpolicy, lpbuffer, dwlength).ok() } #[inline] pub unsafe fn GetProcessPriorityBoost(hprocess: P0, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetProcessPriorityBoost(hprocess.into_param().abi(), pdisablepriorityboost).ok() + GetProcessPriorityBoost(hprocess.param().abi(), pdisablepriorityboost).ok() } #[inline] pub unsafe fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut u32) -> windows_core::Result<()> { @@ -1055,10 +1055,10 @@ pub unsafe fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut #[inline] pub unsafe fn GetProcessTimes(hprocess: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), lpcreationtime, lpexittime, lpkerneltime, lpusertime).ok() + GetProcessTimes(hprocess.param().abi(), lpcreationtime, lpexittime, lpkerneltime, lpusertime).ok() } #[inline] pub unsafe fn GetProcessVersion(processid: u32) -> u32 { @@ -1068,10 +1068,10 @@ pub unsafe fn GetProcessVersion(processid: u32) -> u32 { #[inline] pub unsafe fn GetProcessWorkingSetSize(hprocess: P0, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, lpminimumworkingsetsize : *mut usize, lpmaximumworkingsetsize : *mut usize) -> super::super::Foundation:: BOOL); - GetProcessWorkingSetSize(hprocess.into_param().abi(), lpminimumworkingsetsize, lpmaximumworkingsetsize).ok() + GetProcessWorkingSetSize(hprocess.param().abi(), lpminimumworkingsetsize, lpmaximumworkingsetsize).ok() } #[inline] pub unsafe fn GetStartupInfoA(lpstartupinfo: *mut STARTUPINFOA) { @@ -1091,94 +1091,94 @@ pub unsafe fn GetSystemTimes(lpidletime: Option<*mut super::super::Foundation::F #[inline] pub unsafe fn GetThreadDescription(hthread: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadDescription(hthread : super::super::Foundation:: HANDLE, ppszthreaddescription : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetThreadDescription(hthread.into_param().abi(), &mut result__).map(|| result__) + GetThreadDescription(hthread.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetThreadGroupAffinity(hthread: P0, groupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadGroupAffinity(hthread : super::super::Foundation:: HANDLE, groupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY) -> super::super::Foundation:: BOOL); - GetThreadGroupAffinity(hthread.into_param().abi(), groupaffinity) + GetThreadGroupAffinity(hthread.param().abi(), groupaffinity) } #[inline] pub unsafe fn GetThreadIOPendingFlag(hthread: P0, lpioispending: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadIOPendingFlag(hthread : super::super::Foundation:: HANDLE, lpioispending : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetThreadIOPendingFlag(hthread.into_param().abi(), lpioispending).ok() + GetThreadIOPendingFlag(hthread.param().abi(), lpioispending).ok() } #[inline] pub unsafe fn GetThreadId(thread: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadId(thread : super::super::Foundation:: HANDLE) -> u32); - GetThreadId(thread.into_param().abi()) + GetThreadId(thread.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetThreadIdealProcessorEx(hthread: P0, lpidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadIdealProcessorEx(hthread : super::super::Foundation:: HANDLE, lpidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER) -> super::super::Foundation:: BOOL); - GetThreadIdealProcessorEx(hthread.into_param().abi(), lpidealprocessor).ok() + GetThreadIdealProcessorEx(hthread.param().abi(), lpidealprocessor).ok() } #[inline] pub unsafe fn GetThreadInformation(hthread: P0, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *mut core::ffi::c_void, threadinformationsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hthread.into_param().abi(), threadinformationclass, threadinformation, threadinformationsize).ok() + GetThreadInformation(hthread.param().abi(), threadinformationclass, threadinformation, threadinformationsize).ok() } #[inline] pub unsafe fn GetThreadPriority(hthread: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadPriority(hthread : super::super::Foundation:: HANDLE) -> i32); - GetThreadPriority(hthread.into_param().abi()) + GetThreadPriority(hthread.param().abi()) } #[inline] pub unsafe fn GetThreadPriorityBoost(hthread: P0, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - GetThreadPriorityBoost(hthread.into_param().abi(), pdisablepriorityboost).ok() + GetThreadPriorityBoost(hthread.param().abi(), pdisablepriorityboost).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn GetThreadSelectedCpuSetMasks(thread: P0, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(thread.into_param().abi(), 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()), requiredmaskcount) + GetThreadSelectedCpuSetMasks(thread.param().abi(), 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()), requiredmaskcount) } #[inline] pub unsafe fn GetThreadSelectedCpuSets(thread: P0, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(thread.into_param().abi(), 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()), requiredidcount) + GetThreadSelectedCpuSets(thread.param().abi(), 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()), requiredidcount) } #[inline] pub unsafe fn GetThreadTimes(hthread: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hthread.into_param().abi(), lpcreationtime, lpexittime, lpkerneltime, lpusertime).ok() + GetThreadTimes(hthread.param().abi(), lpcreationtime, lpexittime, lpkerneltime, lpusertime).ok() } #[inline] pub unsafe fn GetUmsCompletionListEvent(umscompletionlist: *const core::ffi::c_void, umscompletionevent: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -1188,10 +1188,10 @@ pub unsafe fn GetUmsCompletionListEvent(umscompletionlist: *const core::ffi::c_v #[inline] pub unsafe fn GetUmsSystemThreadInformation(threadhandle: P0, systemthreadinfo: *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetUmsSystemThreadInformation(threadhandle : super::super::Foundation:: HANDLE, systemthreadinfo : *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation:: BOOL); - GetUmsSystemThreadInformation(threadhandle.into_param().abi(), systemthreadinfo) + GetUmsSystemThreadInformation(threadhandle.param().abi(), 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<()> { @@ -1292,18 +1292,18 @@ pub unsafe fn InterlockedPushListSListEx(listhead: *mut super::Kernel::SLIST_HEA #[inline] pub unsafe fn IsImmersiveProcess(hprocess: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsImmersiveProcess(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - IsImmersiveProcess(hprocess.into_param().abi()).ok() + IsImmersiveProcess(hprocess.param().abi()).ok() } #[inline] pub unsafe fn IsProcessCritical(hprocess: P0, critical: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsProcessCritical(hprocess : super::super::Foundation:: HANDLE, critical : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsProcessCritical(hprocess.into_param().abi(), critical).ok() + IsProcessCritical(hprocess.param().abi(), critical).ok() } #[inline] pub unsafe fn IsProcessorFeaturePresent(processorfeature: PROCESSOR_FEATURE_ID) -> super::super::Foundation::BOOL { @@ -1318,27 +1318,27 @@ pub unsafe fn IsThreadAFiber() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsThreadpoolTimerSet(pti: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsThreadpoolTimerSet(pti : PTP_TIMER) -> super::super::Foundation:: BOOL); - IsThreadpoolTimerSet(pti.into_param().abi()) + IsThreadpoolTimerSet(pti.param().abi()) } #[inline] pub unsafe fn IsWow64Process(hprocess: P0, wow64process: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn IsWow64Process(hprocess : super::super::Foundation:: HANDLE, wow64process : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsWow64Process(hprocess.into_param().abi(), wow64process).ok() + IsWow64Process(hprocess.param().abi(), wow64process).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn IsWow64Process2(hprocess: P0, pprocessmachine: *mut super::SystemInformation::IMAGE_FILE_MACHINE, pnativemachine: Option<*mut super::SystemInformation::IMAGE_FILE_MACHINE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), pprocessmachine, core::mem::transmute(pnativemachine.unwrap_or(std::ptr::null_mut()))).ok() + IsWow64Process2(hprocess.param().abi(), pprocessmachine, core::mem::transmute(pnativemachine.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -1350,130 +1350,130 @@ pub unsafe fn LeaveCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) { #[inline] pub unsafe fn LeaveCriticalSectionWhenCallbackReturns(pci: P0, pcs: *mut CRITICAL_SECTION) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LeaveCriticalSectionWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, pcs : *mut CRITICAL_SECTION)); - LeaveCriticalSectionWhenCallbackReturns(pci.into_param().abi(), pcs) + LeaveCriticalSectionWhenCallbackReturns(pci.param().abi(), pcs) } #[inline] pub unsafe fn OpenEventA(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenEventA(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenEventW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenEventW(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenMutexW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenMutexW(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenPrivateNamespaceA(lpboundarydescriptor: *const core::ffi::c_void, lpaliasprefix: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: 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(lpboundarydescriptor, lpaliasprefix.into_param().abi()) + OpenPrivateNamespaceA(lpboundarydescriptor, lpaliasprefix.param().abi()) } #[inline] pub unsafe fn OpenPrivateNamespaceW(lpboundarydescriptor: *const core::ffi::c_void, lpaliasprefix: P0) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: 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(lpboundarydescriptor, lpaliasprefix.into_param().abi()) + OpenPrivateNamespaceW(lpboundarydescriptor, lpaliasprefix.param().abi()) } #[inline] pub unsafe fn OpenProcess(dwdesiredaccess: PROCESS_ACCESS_RIGHTS, binherithandle: P0, dwprocessid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwdesiredaccess, binherithandle.into_param().abi(), dwprocessid); + let result__ = OpenProcess(dwdesiredaccess, binherithandle.param().abi(), dwprocessid); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenProcessToken(processhandle: P0, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, tokenhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(processhandle.into_param().abi(), desiredaccess, tokenhandle).ok() + OpenProcessToken(processhandle.param().abi(), desiredaccess, tokenhandle).ok() } #[inline] pub unsafe fn OpenSemaphoreW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: P0, lpname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()); + let result__ = OpenSemaphoreW(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenThread(dwdesiredaccess: THREAD_ACCESS_RIGHTS, binherithandle: P0, dwthreadid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(dwdesiredaccess, binherithandle.into_param().abi(), dwthreadid); + let result__ = OpenThread(dwdesiredaccess, binherithandle.param().abi(), dwthreadid); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenThreadToken(threadhandle: P0, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, openasself: P1, tokenhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(threadhandle.into_param().abi(), desiredaccess, openasself.into_param().abi(), tokenhandle).ok() + OpenThreadToken(threadhandle.param().abi(), desiredaccess, openasself.param().abi(), tokenhandle).ok() } #[inline] pub unsafe fn OpenWaitableTimerA(dwdesiredaccess: u32, binherithandle: P0, lptimername: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lptimername.into_param().abi()) + OpenWaitableTimerA(dwdesiredaccess, binherithandle.param().abi(), lptimername.param().abi()) } #[inline] pub unsafe fn OpenWaitableTimerW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: P0, lptimername: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lptimername.into_param().abi()); + let result__ = OpenWaitableTimerW(dwdesiredaccess, binherithandle.param().abi(), lptimername.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PulseEvent(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn PulseEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - PulseEvent(hevent.into_param().abi()).ok() + PulseEvent(hevent.param().abi()).ok() } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -1484,26 +1484,26 @@ pub unsafe fn QueryDepthSList(listhead: *const super::Kernel::SLIST_HEADER) -> u #[inline] pub unsafe fn QueryFullProcessImageNameA(hprocess: P0, dwflags: PROCESS_NAME_FORMAT, lpexename: windows_core::PSTR, lpdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwflags, core::mem::transmute(lpexename), lpdwsize).ok() + QueryFullProcessImageNameA(hprocess.param().abi(), dwflags, core::mem::transmute(lpexename), lpdwsize).ok() } #[inline] pub unsafe fn QueryFullProcessImageNameW(hprocess: P0, dwflags: PROCESS_NAME_FORMAT, lpexename: windows_core::PWSTR, lpdwsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), dwflags, core::mem::transmute(lpexename), lpdwsize).ok() + QueryFullProcessImageNameW(hprocess.param().abi(), dwflags, core::mem::transmute(lpexename), lpdwsize).ok() } #[inline] pub unsafe fn QueryProcessAffinityUpdateMode(hprocess: P0, lpdwflags: Option<*mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), core::mem::transmute(lpdwflags.unwrap_or(std::ptr::null_mut()))).ok() + QueryProcessAffinityUpdateMode(hprocess.param().abi(), core::mem::transmute(lpdwflags.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn QueryProtectedPolicy(policyguid: *const windows_core::GUID, policyvalue: *mut usize) -> super::super::Foundation::BOOL { @@ -1513,10 +1513,10 @@ pub unsafe fn QueryProtectedPolicy(policyguid: *const windows_core::GUID, policy #[inline] pub unsafe fn QueryThreadpoolStackInformation(ptpp: P0, ptpsi: *mut TP_POOL_STACK_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *mut TP_POOL_STACK_INFORMATION) -> super::super::Foundation:: BOOL); - QueryThreadpoolStackInformation(ptpp.into_param().abi(), ptpsi).ok() + QueryThreadpoolStackInformation(ptpp.param().abi(), 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<()> { @@ -1526,18 +1526,18 @@ pub unsafe fn QueryUmsThreadInformation(umsthread: *const core::ffi::c_void, ums #[inline] pub unsafe fn QueueUserAPC(pfnapc: super::super::Foundation::PAPCFUNC, hthread: P0, dwdata: usize) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueueUserAPC(pfnapc : super::super::Foundation:: PAPCFUNC, hthread : super::super::Foundation:: HANDLE, dwdata : usize) -> u32); - QueueUserAPC(pfnapc, hthread.into_param().abi(), dwdata) + QueueUserAPC(pfnapc, hthread.param().abi(), dwdata) } #[inline] pub unsafe fn QueueUserAPC2(apcroutine: super::super::Foundation::PAPCFUNC, thread: P0, data: usize, flags: QUEUE_USER_APC_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(apcroutine, thread.into_param().abi(), data, flags) + QueueUserAPC2(apcroutine, thread.param().abi(), 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<()> { @@ -1547,27 +1547,27 @@ pub unsafe fn QueueUserWorkItem(function: LPTHREAD_START_ROUTINE, context: Optio #[inline] pub unsafe fn RegisterWaitForSingleObject(phnewwaitobject: *mut super::super::Foundation::HANDLE, hobject: P0, callback: WAITORTIMERCALLBACK, context: Option<*const core::ffi::c_void>, dwmilliseconds: u32, dwflags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(phnewwaitobject, hobject.into_param().abi(), callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), dwmilliseconds, dwflags).ok() + RegisterWaitForSingleObject(phnewwaitobject, hobject.param().abi(), callback, core::mem::transmute(context.unwrap_or(std::ptr::null())), dwmilliseconds, dwflags).ok() } #[inline] pub unsafe fn ReleaseMutex(hmutex: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReleaseMutex(hmutex : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ReleaseMutex(hmutex.into_param().abi()).ok() + ReleaseMutex(hmutex.param().abi()).ok() } #[inline] pub unsafe fn ReleaseMutexWhenCallbackReturns(pci: P0, r#mut: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReleaseMutexWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, r#mut : super::super::Foundation:: HANDLE)); - ReleaseMutexWhenCallbackReturns(pci.into_param().abi(), r#mut.into_param().abi()) + ReleaseMutexWhenCallbackReturns(pci.param().abi(), r#mut.param().abi()) } #[inline] pub unsafe fn ReleaseSRWLockExclusive(srwlock: *mut SRWLOCK) { @@ -1582,43 +1582,43 @@ pub unsafe fn ReleaseSRWLockShared(srwlock: *mut SRWLOCK) { #[inline] pub unsafe fn ReleaseSemaphore(hsemaphore: P0, lreleasecount: i32, lppreviouscount: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReleaseSemaphore(hsemaphore : super::super::Foundation:: HANDLE, lreleasecount : i32, lppreviouscount : *mut i32) -> super::super::Foundation:: BOOL); - ReleaseSemaphore(hsemaphore.into_param().abi(), lreleasecount, core::mem::transmute(lppreviouscount.unwrap_or(std::ptr::null_mut()))).ok() + ReleaseSemaphore(hsemaphore.param().abi(), lreleasecount, core::mem::transmute(lppreviouscount.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ReleaseSemaphoreWhenCallbackReturns(pci: P0, sem: P1, crel: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ReleaseSemaphoreWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, sem : super::super::Foundation:: HANDLE, crel : u32)); - ReleaseSemaphoreWhenCallbackReturns(pci.into_param().abi(), sem.into_param().abi(), crel) + ReleaseSemaphoreWhenCallbackReturns(pci.param().abi(), sem.param().abi(), crel) } #[inline] pub unsafe fn ResetEvent(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ResetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - ResetEvent(hevent.into_param().abi()).ok() + ResetEvent(hevent.param().abi()).ok() } #[inline] pub unsafe fn ResumeThread(hthread: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn ResumeThread(hthread : super::super::Foundation:: HANDLE) -> u32); - ResumeThread(hthread.into_param().abi()) + ResumeThread(hthread.param().abi()) } #[inline] pub unsafe fn RtwqAddPeriodicCallback(callback: RTWQPERIODICCALLBACK, context: P0, key: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(callback, context.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null_mut()))).ok() + RtwqAddPeriodicCallback(callback, context.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RtwqAllocateSerialWorkQueue(workqueueidin: u32) -> windows_core::Result { @@ -1635,29 +1635,29 @@ pub unsafe fn RtwqAllocateWorkQueue(workqueuetype: RTWQ_WORKQUEUE_TYPE) -> windo #[inline] pub unsafe fn RtwqBeginRegisterWorkQueueWithMMCSS(workqueueid: u32, usageclass: P0, dwtaskid: u32, lpriority: i32, donecallback: P1, donestate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(workqueueid, usageclass.into_param().abi(), dwtaskid, lpriority, donecallback.into_param().abi(), donestate.into_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: P0, donestate: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(workqueueid, donecallback.into_param().abi(), donestate.into_param().abi()).ok() + RtwqBeginUnregisterWorkQueueWithMMCSS(workqueueid, donecallback.param().abi(), donestate.param().abi()).ok() } #[inline] pub unsafe fn RtwqCancelDeadline(prequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqCancelDeadline(prequest : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RtwqCancelDeadline(prequest.into_param().abi()).ok() + RtwqCancelDeadline(prequest.param().abi()).ok() } #[inline] pub unsafe fn RtwqCancelWorkItem(key: u64) -> windows_core::Result<()> { @@ -1667,22 +1667,22 @@ pub unsafe fn RtwqCancelWorkItem(key: u64) -> windows_core::Result<()> { #[inline] pub unsafe fn RtwqCreateAsyncResult(appobject: P0, callback: P1, appstate: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqCreateAsyncResult(appobject : * mut core::ffi::c_void, callback : * mut core::ffi::c_void, appstate : * mut core::ffi::c_void, asyncresult : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - RtwqCreateAsyncResult(appobject.into_param().abi(), callback.into_param().abi(), appstate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + RtwqCreateAsyncResult(appobject.param().abi(), callback.param().abi(), appstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn RtwqEndRegisterWorkQueueWithMMCSS(result: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqEndRegisterWorkQueueWithMMCSS(result : * mut core::ffi::c_void, taskid : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - RtwqEndRegisterWorkQueueWithMMCSS(result.into_param().abi(), &mut result__).map(|| result__) + RtwqEndRegisterWorkQueueWithMMCSS(result.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn RtwqGetWorkQueueMMCSSClass(workqueueid: u32, usageclass: windows_core::PWSTR, usageclasslength: *mut u32) -> windows_core::Result<()> { @@ -1704,19 +1704,19 @@ pub unsafe fn RtwqGetWorkQueueMMCSSTaskId(workqueueid: u32) -> windows_core::Res #[inline] pub unsafe fn RtwqInvokeCallback(result: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqInvokeCallback(result : * mut core::ffi::c_void) -> windows_core::HRESULT); - RtwqInvokeCallback(result.into_param().abi()).ok() + RtwqInvokeCallback(result.param().abi()).ok() } #[inline] pub unsafe fn RtwqJoinWorkQueue(workqueueid: u32, hfile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - RtwqJoinWorkQueue(workqueueid, hfile.into_param().abi(), &mut result__).map(|| result__) + RtwqJoinWorkQueue(workqueueid, hfile.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn RtwqLockPlatform() -> windows_core::Result<()> { @@ -1726,10 +1726,10 @@ pub unsafe fn RtwqLockPlatform() -> windows_core::Result<()> { #[inline] pub unsafe fn RtwqLockSharedWorkQueue(usageclass: P0, basepriority: i32, taskid: *mut u32, id: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), basepriority, taskid, id).ok() + RtwqLockSharedWorkQueue(usageclass.param().abi(), basepriority, taskid, id).ok() } #[inline] pub unsafe fn RtwqLockWorkQueue(workqueueid: u32) -> windows_core::Result<()> { @@ -1739,35 +1739,35 @@ pub unsafe fn RtwqLockWorkQueue(workqueueid: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn RtwqPutWaitingWorkItem(hevent: P0, lpriority: i32, result: P1, key: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hevent.into_param().abi(), lpriority, result.into_param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null_mut()))).ok() + RtwqPutWaitingWorkItem(hevent.param().abi(), lpriority, result.param().abi(), core::mem::transmute(key.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RtwqPutWorkItem(dwqueue: u32, lpriority: i32, result: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwqueue, lpriority, result.into_param().abi()).ok() + RtwqPutWorkItem(dwqueue, lpriority, result.param().abi()).ok() } #[inline] pub unsafe fn RtwqRegisterPlatformEvents(platformevents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqRegisterPlatformEvents(platformevents : * mut core::ffi::c_void) -> windows_core::HRESULT); - RtwqRegisterPlatformEvents(platformevents.into_param().abi()).ok() + RtwqRegisterPlatformEvents(platformevents.param().abi()).ok() } #[inline] pub unsafe fn RtwqRegisterPlatformWithMMCSS(usageclass: P0, taskid: *mut u32, lpriority: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), taskid, lpriority).ok() + RtwqRegisterPlatformWithMMCSS(usageclass.param().abi(), taskid, lpriority).ok() } #[inline] pub unsafe fn RtwqRemovePeriodicCallback(dwkey: u32) -> windows_core::Result<()> { @@ -1777,10 +1777,10 @@ pub unsafe fn RtwqRemovePeriodicCallback(dwkey: u32) -> windows_core::Result<()> #[inline] pub unsafe fn RtwqScheduleWorkItem(result: P0, timeout: i64, key: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), timeout, core::mem::transmute(key.unwrap_or(std::ptr::null_mut()))).ok() + RtwqScheduleWorkItem(result.param().abi(), timeout, core::mem::transmute(key.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RtwqSetDeadline(workqueueid: u32, deadlineinhns: i64) -> windows_core::Result { @@ -1797,10 +1797,10 @@ pub unsafe fn RtwqSetDeadline2(workqueueid: u32, deadlineinhns: i64, predeadline #[inline] pub unsafe fn RtwqSetLongRunning(workqueueid: u32, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqSetLongRunning(workqueueid : u32, enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - RtwqSetLongRunning(workqueueid, enable.into_param().abi()).ok() + RtwqSetLongRunning(workqueueid, enable.param().abi()).ok() } #[inline] pub unsafe fn RtwqShutdown() -> windows_core::Result<()> { @@ -1815,10 +1815,10 @@ pub unsafe fn RtwqStartup() -> windows_core::Result<()> { #[inline] pub unsafe fn RtwqUnjoinWorkQueue(workqueueid: u32, hfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqUnjoinWorkQueue(workqueueid : u32, hfile : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RtwqUnjoinWorkQueue(workqueueid, hfile.into_param().abi()).ok() + RtwqUnjoinWorkQueue(workqueueid, hfile.param().abi()).ok() } #[inline] pub unsafe fn RtwqUnlockPlatform() -> windows_core::Result<()> { @@ -1833,10 +1833,10 @@ pub unsafe fn RtwqUnlockWorkQueue(workqueueid: u32) -> windows_core::Result<()> #[inline] pub unsafe fn RtwqUnregisterPlatformEvents(platformevents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("rtworkq.dll" "system" fn RtwqUnregisterPlatformEvents(platformevents : * mut core::ffi::c_void) -> windows_core::HRESULT); - RtwqUnregisterPlatformEvents(platformevents.into_param().abi()).ok() + RtwqUnregisterPlatformEvents(platformevents.param().abi()).ok() } #[inline] pub unsafe fn RtwqUnregisterPlatformFromMMCSS() -> windows_core::Result<()> { @@ -1852,43 +1852,43 @@ pub unsafe fn SetCriticalSectionSpinCount(lpcriticalsection: *mut CRITICAL_SECTI #[inline] pub unsafe fn SetEvent(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetEvent(hevent.into_param().abi()).ok() + SetEvent(hevent.param().abi()).ok() } #[inline] pub unsafe fn SetEventWhenCallbackReturns(pci: P0, evt: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetEventWhenCallbackReturns(pci : PTP_CALLBACK_INSTANCE, evt : super::super::Foundation:: HANDLE)); - SetEventWhenCallbackReturns(pci.into_param().abi(), evt.into_param().abi()) + SetEventWhenCallbackReturns(pci.param().abi(), evt.param().abi()) } #[inline] pub unsafe fn SetPriorityClass(hprocess: P0, dwpriorityclass: PROCESS_CREATION_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetPriorityClass(hprocess : super::super::Foundation:: HANDLE, dwpriorityclass : PROCESS_CREATION_FLAGS) -> super::super::Foundation:: BOOL); - SetPriorityClass(hprocess.into_param().abi(), dwpriorityclass).ok() + SetPriorityClass(hprocess.param().abi(), dwpriorityclass).ok() } #[inline] pub unsafe fn SetProcessAffinityMask(hprocess: P0, dwprocessaffinitymask: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, dwprocessaffinitymask : usize) -> super::super::Foundation:: BOOL); - SetProcessAffinityMask(hprocess.into_param().abi(), dwprocessaffinitymask).ok() + SetProcessAffinityMask(hprocess.param().abi(), dwprocessaffinitymask).ok() } #[inline] pub unsafe fn SetProcessAffinityUpdateMode(hprocess: P0, dwflags: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityUpdateMode(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); - SetProcessAffinityUpdateMode(hprocess.into_param().abi(), dwflags).ok() + SetProcessAffinityUpdateMode(hprocess.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SetProcessDEPPolicy(dwflags: PROCESS_DEP_FLAGS) -> windows_core::Result<()> { @@ -1899,42 +1899,42 @@ pub unsafe fn SetProcessDEPPolicy(dwflags: PROCESS_DEP_FLAGS) -> windows_core::R #[inline] pub unsafe fn SetProcessDefaultCpuSetMasks(process: P0, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), 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.param().abi(), 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: P0, cpusetids: Option<&[u32]>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetProcessDefaultCpuSets(process : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> super::super::Foundation:: BOOL); - SetProcessDefaultCpuSets(process.into_param().abi(), 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.param().abi(), 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: P0, targets: &mut [PROCESS_DYNAMIC_EH_CONTINUATION_TARGET]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), targets.len().try_into().unwrap(), core::mem::transmute(targets.as_ptr())).ok() + SetProcessDynamicEHContinuationTargets(process.param().abi(), targets.len().try_into().unwrap(), core::mem::transmute(targets.as_ptr())).ok() } #[inline] pub unsafe fn SetProcessDynamicEnforcedCetCompatibleRanges(process: P0, ranges: &mut [PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(process.into_param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())) + SetProcessDynamicEnforcedCetCompatibleRanges(process.param().abi(), ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())) } #[inline] pub unsafe fn SetProcessInformation(hprocess: P0, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *const core::ffi::c_void, processinformationsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hprocess.into_param().abi(), processinformationclass, processinformation, processinformationsize).ok() + SetProcessInformation(hprocess.param().abi(), processinformationclass, processinformation, processinformationsize).ok() } #[inline] pub unsafe fn SetProcessMitigationPolicy(mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *const core::ffi::c_void, dwlength: usize) -> windows_core::Result<()> { @@ -1944,19 +1944,19 @@ pub unsafe fn SetProcessMitigationPolicy(mitigationpolicy: PROCESS_MITIGATION_PO #[inline] pub unsafe fn SetProcessPriorityBoost(hprocess: P0, bdisablepriorityboost: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, bdisablepriorityboost : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetProcessPriorityBoost(hprocess.into_param().abi(), bdisablepriorityboost.into_param().abi()).ok() + SetProcessPriorityBoost(hprocess.param().abi(), bdisablepriorityboost.param().abi()).ok() } #[inline] pub unsafe fn SetProcessRestrictionExemption(fenableexemption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetProcessRestrictionExemption(fenableexemption : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetProcessRestrictionExemption(fenableexemption.into_param().abi()).ok() + SetProcessRestrictionExemption(fenableexemption.param().abi()).ok() } #[inline] pub unsafe fn SetProcessShutdownParameters(dwlevel: u32, dwflags: u32) -> windows_core::Result<()> { @@ -1966,10 +1966,10 @@ pub unsafe fn SetProcessShutdownParameters(dwlevel: u32, dwflags: u32) -> window #[inline] pub unsafe fn SetProcessWorkingSetSize(hprocess: P0, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize) -> super::super::Foundation:: BOOL); - SetProcessWorkingSetSize(hprocess.into_param().abi(), dwminimumworkingsetsize, dwmaximumworkingsetsize).ok() + SetProcessWorkingSetSize(hprocess.param().abi(), dwminimumworkingsetsize, dwmaximumworkingsetsize).ok() } #[inline] pub unsafe fn SetProtectedPolicy(policyguid: *const windows_core::GUID, policyvalue: usize, oldpolicyvalue: Option<*mut usize>) -> windows_core::Result<()> { @@ -1979,87 +1979,87 @@ pub unsafe fn SetProtectedPolicy(policyguid: *const windows_core::GUID, policyva #[inline] pub unsafe fn SetThreadAffinityMask(hthread: P0, dwthreadaffinitymask: usize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadAffinityMask(hthread : super::super::Foundation:: HANDLE, dwthreadaffinitymask : usize) -> usize); - SetThreadAffinityMask(hthread.into_param().abi(), dwthreadaffinitymask) + SetThreadAffinityMask(hthread.param().abi(), dwthreadaffinitymask) } #[inline] pub unsafe fn SetThreadDescription(hthread: P0, lpthreaddescription: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hthread.into_param().abi(), lpthreaddescription.into_param().abi()).ok() + SetThreadDescription(hthread.param().abi(), lpthreaddescription.param().abi()).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn SetThreadGroupAffinity(hthread: P0, groupaffinity: *const super::SystemInformation::GROUP_AFFINITY, previousgroupaffinity: Option<*mut super::SystemInformation::GROUP_AFFINITY>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hthread.into_param().abi(), groupaffinity, core::mem::transmute(previousgroupaffinity.unwrap_or(std::ptr::null_mut()))) + SetThreadGroupAffinity(hthread.param().abi(), groupaffinity, core::mem::transmute(previousgroupaffinity.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SetThreadIdealProcessor(hthread: P0, dwidealprocessor: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadIdealProcessor(hthread : super::super::Foundation:: HANDLE, dwidealprocessor : u32) -> u32); - SetThreadIdealProcessor(hthread.into_param().abi(), dwidealprocessor) + SetThreadIdealProcessor(hthread.param().abi(), dwidealprocessor) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn SetThreadIdealProcessorEx(hthread: P0, lpidealprocessor: *const super::Kernel::PROCESSOR_NUMBER, lppreviousidealprocessor: Option<*mut super::Kernel::PROCESSOR_NUMBER>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hthread.into_param().abi(), lpidealprocessor, core::mem::transmute(lppreviousidealprocessor.unwrap_or(std::ptr::null_mut()))).ok() + SetThreadIdealProcessorEx(hthread.param().abi(), lpidealprocessor, core::mem::transmute(lppreviousidealprocessor.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SetThreadInformation(hthread: P0, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *const core::ffi::c_void, threadinformationsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hthread.into_param().abi(), threadinformationclass, threadinformation, threadinformationsize).ok() + SetThreadInformation(hthread.param().abi(), threadinformationclass, threadinformation, threadinformationsize).ok() } #[inline] pub unsafe fn SetThreadPriority(hthread: P0, npriority: THREAD_PRIORITY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadPriority(hthread : super::super::Foundation:: HANDLE, npriority : THREAD_PRIORITY) -> super::super::Foundation:: BOOL); - SetThreadPriority(hthread.into_param().abi(), npriority).ok() + SetThreadPriority(hthread.param().abi(), npriority).ok() } #[inline] pub unsafe fn SetThreadPriorityBoost(hthread: P0, bdisablepriorityboost: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, bdisablepriorityboost : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SetThreadPriorityBoost(hthread.into_param().abi(), bdisablepriorityboost.into_param().abi()).ok() + SetThreadPriorityBoost(hthread.param().abi(), bdisablepriorityboost.param().abi()).ok() } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn SetThreadSelectedCpuSetMasks(thread: P0, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(thread.into_param().abi(), 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.param().abi(), 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: P0, cpusetids: &[u32]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadSelectedCpuSets(thread : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> super::super::Foundation:: BOOL); - SetThreadSelectedCpuSets(thread.into_param().abi(), core::mem::transmute(cpusetids.as_ptr()), cpusetids.len().try_into().unwrap()) + SetThreadSelectedCpuSets(thread.param().abi(), core::mem::transmute(cpusetids.as_ptr()), cpusetids.len().try_into().unwrap()) } #[inline] pub unsafe fn SetThreadStackGuarantee(stacksizeinbytes: *mut u32) -> windows_core::Result<()> { @@ -2069,77 +2069,77 @@ pub unsafe fn SetThreadStackGuarantee(stacksizeinbytes: *mut u32) -> windows_cor #[inline] pub unsafe fn SetThreadToken(thread: Option<*const super::super::Foundation::HANDLE>, token: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn SetThreadToken(thread : *const super::super::Foundation:: HANDLE, token : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SetThreadToken(core::mem::transmute(thread.unwrap_or(std::ptr::null())), token.into_param().abi()).ok() + SetThreadToken(core::mem::transmute(thread.unwrap_or(std::ptr::null())), token.param().abi()).ok() } #[inline] pub unsafe fn SetThreadpoolStackInformation(ptpp: P0, ptpsi: *const TP_POOL_STACK_INFORMATION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *const TP_POOL_STACK_INFORMATION) -> super::super::Foundation:: BOOL); - SetThreadpoolStackInformation(ptpp.into_param().abi(), ptpsi).ok() + SetThreadpoolStackInformation(ptpp.param().abi(), ptpsi).ok() } #[inline] pub unsafe fn SetThreadpoolThreadMaximum(ptpp: P0, cthrdmost: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolThreadMaximum(ptpp : PTP_POOL, cthrdmost : u32)); - SetThreadpoolThreadMaximum(ptpp.into_param().abi(), cthrdmost) + SetThreadpoolThreadMaximum(ptpp.param().abi(), cthrdmost) } #[inline] pub unsafe fn SetThreadpoolThreadMinimum(ptpp: P0, cthrdmic: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolThreadMinimum(ptpp : PTP_POOL, cthrdmic : u32) -> super::super::Foundation:: BOOL); - SetThreadpoolThreadMinimum(ptpp.into_param().abi(), cthrdmic).ok() + SetThreadpoolThreadMinimum(ptpp.param().abi(), cthrdmic).ok() } #[inline] pub unsafe fn SetThreadpoolTimer(pti: P0, pftduetime: Option<*const super::super::Foundation::FILETIME>, msperiod: u32, mswindowlength: u32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolTimer(pti : PTP_TIMER, pftduetime : *const super::super::Foundation:: FILETIME, msperiod : u32, mswindowlength : u32)); - SetThreadpoolTimer(pti.into_param().abi(), core::mem::transmute(pftduetime.unwrap_or(std::ptr::null())), msperiod, mswindowlength) + SetThreadpoolTimer(pti.param().abi(), core::mem::transmute(pftduetime.unwrap_or(std::ptr::null())), msperiod, mswindowlength) } #[inline] pub unsafe fn SetThreadpoolTimerEx(pti: P0, pftduetime: Option<*const super::super::Foundation::FILETIME>, msperiod: u32, mswindowlength: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(pti.into_param().abi(), core::mem::transmute(pftduetime.unwrap_or(std::ptr::null())), msperiod, mswindowlength) + SetThreadpoolTimerEx(pti.param().abi(), core::mem::transmute(pftduetime.unwrap_or(std::ptr::null())), msperiod, mswindowlength) } #[inline] pub unsafe fn SetThreadpoolWait(pwa: P0, h: P1, pfttimeout: Option<*const super::super::Foundation::FILETIME>) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolWait(pwa : PTP_WAIT, h : super::super::Foundation:: HANDLE, pfttimeout : *const super::super::Foundation:: FILETIME)); - SetThreadpoolWait(pwa.into_param().abi(), h.into_param().abi(), core::mem::transmute(pfttimeout.unwrap_or(std::ptr::null()))) + SetThreadpoolWait(pwa.param().abi(), h.param().abi(), core::mem::transmute(pfttimeout.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetThreadpoolWaitEx(pwa: P0, h: P1, pfttimeout: Option<*const super::super::Foundation::FILETIME>, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(pwa.into_param().abi(), h.into_param().abi(), core::mem::transmute(pfttimeout.unwrap_or(std::ptr::null())), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) + SetThreadpoolWaitEx(pwa.param().abi(), h.param().abi(), core::mem::transmute(pfttimeout.unwrap_or(std::ptr::null())), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetTimerQueueTimer(timerqueue: P0, callback: WAITORTIMERCALLBACK, parameter: Option<*const core::ffi::c_void>, duetime: u32, period: u32, preferio: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(timerqueue.into_param().abi(), callback, core::mem::transmute(parameter.unwrap_or(std::ptr::null())), duetime, period, preferio.into_param().abi()) + SetTimerQueueTimer(timerqueue.param().abi(), callback, core::mem::transmute(parameter.unwrap_or(std::ptr::null())), duetime, period, preferio.param().abi()) } #[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<()> { @@ -2149,29 +2149,29 @@ pub unsafe fn SetUmsThreadInformation(umsthread: *const core::ffi::c_void, umsth #[inline] pub unsafe fn SetWaitableTimer(htimer: P0, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: PTIMERAPCROUTINE, lpargtocompletionroutine: Option<*const core::ffi::c_void>, fresume: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htimer.into_param().abi(), lpduetime, lperiod, pfncompletionroutine, core::mem::transmute(lpargtocompletionroutine.unwrap_or(std::ptr::null())), fresume.into_param().abi()).ok() + SetWaitableTimer(htimer.param().abi(), lpduetime, lperiod, pfncompletionroutine, core::mem::transmute(lpargtocompletionroutine.unwrap_or(std::ptr::null())), fresume.param().abi()).ok() } #[inline] pub unsafe fn SetWaitableTimerEx(htimer: P0, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: PTIMERAPCROUTINE, lpargtocompletionroutine: Option<*const core::ffi::c_void>, wakecontext: Option<*const REASON_CONTEXT>, tolerabledelay: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htimer.into_param().abi(), lpduetime, lperiod, pfncompletionroutine, core::mem::transmute(lpargtocompletionroutine.unwrap_or(std::ptr::null())), core::mem::transmute(wakecontext.unwrap_or(std::ptr::null())), tolerabledelay).ok() + SetWaitableTimerEx(htimer.param().abi(), lpduetime, lperiod, pfncompletionroutine, core::mem::transmute(lpargtocompletionroutine.unwrap_or(std::ptr::null())), core::mem::transmute(wakecontext.unwrap_or(std::ptr::null())), tolerabledelay).ok() } #[inline] pub unsafe fn SignalObjectAndWait(hobjecttosignal: P0, hobjecttowaiton: P1, dwmilliseconds: u32, balertable: P2) -> super::super::Foundation::WAIT_EVENT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hobjecttosignal.into_param().abi(), hobjecttowaiton.into_param().abi(), dwmilliseconds, balertable.into_param().abi()) + SignalObjectAndWait(hobjecttosignal.param().abi(), hobjecttowaiton.param().abi(), dwmilliseconds, balertable.param().abi()) } #[inline] pub unsafe fn Sleep(dwmilliseconds: u32) { @@ -2192,34 +2192,34 @@ pub unsafe fn SleepConditionVariableSRW(conditionvariable: *mut CONDITION_VARIAB #[inline] pub unsafe fn SleepEx(dwmilliseconds: u32, balertable: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SleepEx(dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> u32); - SleepEx(dwmilliseconds, balertable.into_param().abi()) + SleepEx(dwmilliseconds, balertable.param().abi()) } #[inline] pub unsafe fn StartThreadpoolIo(pio: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn StartThreadpoolIo(pio : PTP_IO)); - StartThreadpoolIo(pio.into_param().abi()) + StartThreadpoolIo(pio.param().abi()) } #[inline] pub unsafe fn SubmitThreadpoolWork(pwk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SubmitThreadpoolWork(pwk : PTP_WORK)); - SubmitThreadpoolWork(pwk.into_param().abi()) + SubmitThreadpoolWork(pwk.param().abi()) } #[inline] pub unsafe fn SuspendThread(hthread: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SuspendThread(hthread : super::super::Foundation:: HANDLE) -> u32); - SuspendThread(hthread.into_param().abi()) + SuspendThread(hthread.param().abi()) } #[inline] pub unsafe fn SwitchToFiber(lpfiber: *const core::ffi::c_void) { @@ -2234,18 +2234,18 @@ pub unsafe fn SwitchToThread() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn TerminateProcess(hprocess: P0, uexitcode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn TerminateProcess(hprocess : super::super::Foundation:: HANDLE, uexitcode : u32) -> super::super::Foundation:: BOOL); - TerminateProcess(hprocess.into_param().abi(), uexitcode).ok() + TerminateProcess(hprocess.param().abi(), uexitcode).ok() } #[inline] pub unsafe fn TerminateThread(hthread: P0, dwexitcode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn TerminateThread(hthread : super::super::Foundation:: HANDLE, dwexitcode : u32) -> super::super::Foundation:: BOOL); - TerminateThread(hthread.into_param().abi(), dwexitcode).ok() + TerminateThread(hthread.param().abi(), dwexitcode).ok() } #[inline] pub unsafe fn TlsAlloc() -> u32 { @@ -2296,19 +2296,19 @@ pub unsafe fn UmsThreadYield(schedulerparam: *const core::ffi::c_void) -> window #[inline] pub unsafe fn UnregisterWait(waithandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn UnregisterWait(waithandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnregisterWait(waithandle.into_param().abi()).ok() + UnregisterWait(waithandle.param().abi()).ok() } #[inline] pub unsafe fn UnregisterWaitEx(waithandle: P0, completionevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn UnregisterWaitEx(waithandle : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnregisterWaitEx(waithandle.into_param().abi(), completionevent.into_param().abi()).ok() + UnregisterWaitEx(waithandle.param().abi(), completionevent.param().abi()).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<()> { @@ -2318,80 +2318,80 @@ pub unsafe fn UpdateProcThreadAttribute(lpattributelist: LPPROC_THREAD_ATTRIBUTE #[inline] pub unsafe fn WaitForInputIdle(hprocess: P0, dwmilliseconds: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn WaitForInputIdle(hprocess : super::super::Foundation:: HANDLE, dwmilliseconds : u32) -> u32); - WaitForInputIdle(hprocess.into_param().abi(), dwmilliseconds) + WaitForInputIdle(hprocess.param().abi(), dwmilliseconds) } #[inline] pub unsafe fn WaitForMultipleObjects(lphandles: &[super::super::Foundation::HANDLE], bwaitall: P0, dwmilliseconds: u32) -> super::super::Foundation::WAIT_EVENT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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_param().abi(), dwmilliseconds) + WaitForMultipleObjects(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.param().abi(), dwmilliseconds) } #[inline] pub unsafe fn WaitForMultipleObjectsEx(lphandles: &[super::super::Foundation::HANDLE], bwaitall: P0, dwmilliseconds: u32, balertable: P1) -> super::super::Foundation::WAIT_EVENT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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_param().abi(), dwmilliseconds, balertable.into_param().abi()) + WaitForMultipleObjectsEx(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.param().abi(), dwmilliseconds, balertable.param().abi()) } #[inline] pub unsafe fn WaitForSingleObject(hhandle: P0, dwmilliseconds: u32) -> super::super::Foundation::WAIT_EVENT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitForSingleObject(hhandle : super::super::Foundation:: HANDLE, dwmilliseconds : u32) -> super::super::Foundation:: WAIT_EVENT); - WaitForSingleObject(hhandle.into_param().abi(), dwmilliseconds) + WaitForSingleObject(hhandle.param().abi(), dwmilliseconds) } #[inline] pub unsafe fn WaitForSingleObjectEx(hhandle: P0, dwmilliseconds: u32, balertable: P1) -> super::super::Foundation::WAIT_EVENT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hhandle.into_param().abi(), dwmilliseconds, balertable.into_param().abi()) + WaitForSingleObjectEx(hhandle.param().abi(), dwmilliseconds, balertable.param().abi()) } #[inline] pub unsafe fn WaitForThreadpoolIoCallbacks(pio: P0, fcancelpendingcallbacks: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolIoCallbacks(pio : PTP_IO, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolIoCallbacks(pio.into_param().abi(), fcancelpendingcallbacks.into_param().abi()) + WaitForThreadpoolIoCallbacks(pio.param().abi(), fcancelpendingcallbacks.param().abi()) } #[inline] pub unsafe fn WaitForThreadpoolTimerCallbacks(pti: P0, fcancelpendingcallbacks: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolTimerCallbacks(pti : PTP_TIMER, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolTimerCallbacks(pti.into_param().abi(), fcancelpendingcallbacks.into_param().abi()) + WaitForThreadpoolTimerCallbacks(pti.param().abi(), fcancelpendingcallbacks.param().abi()) } #[inline] pub unsafe fn WaitForThreadpoolWaitCallbacks(pwa: P0, fcancelpendingcallbacks: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWaitCallbacks(pwa : PTP_WAIT, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolWaitCallbacks(pwa.into_param().abi(), fcancelpendingcallbacks.into_param().abi()) + WaitForThreadpoolWaitCallbacks(pwa.param().abi(), fcancelpendingcallbacks.param().abi()) } #[inline] pub unsafe fn WaitForThreadpoolWorkCallbacks(pwk: P0, fcancelpendingcallbacks: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWorkCallbacks(pwk : PTP_WORK, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); - WaitForThreadpoolWorkCallbacks(pwk.into_param().abi(), fcancelpendingcallbacks.into_param().abi()) + WaitForThreadpoolWorkCallbacks(pwk.param().abi(), fcancelpendingcallbacks.param().abi()) } #[inline] pub unsafe fn WaitOnAddress(address: *const core::ffi::c_void, compareaddress: *const core::ffi::c_void, addresssize: usize, dwmilliseconds: u32) -> windows_core::Result<()> { @@ -2421,10 +2421,10 @@ pub unsafe fn WakeConditionVariable(conditionvariable: *mut CONDITION_VARIABLE) #[inline] pub unsafe fn WinExec(lpcmdline: P0, ucmdshow: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WinExec(lpcmdline : windows_core::PCSTR, ucmdshow : u32) -> u32); - WinExec(lpcmdline.into_param().abi(), ucmdshow) + WinExec(lpcmdline.param().abi(), ucmdshow) } #[inline] pub unsafe fn Wow64SetThreadDefaultGuestMachine(machine: u16) -> u16 { @@ -2434,10 +2434,10 @@ pub unsafe fn Wow64SetThreadDefaultGuestMachine(machine: u16) -> u16 { #[inline] pub unsafe fn Wow64SuspendThread(hthread: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn Wow64SuspendThread(hthread : super::super::Foundation:: HANDLE) -> u32); - Wow64SuspendThread(hthread.into_param().abi()) + Wow64SuspendThread(hthread.param().abi()) } windows_core::imp::define_interface!(IRtwqAsyncCallback, IRtwqAsyncCallback_Vtbl, 0xa27003cf_2354_4f2a_8d6a_ab7cff15437e); windows_core::imp::interface_hierarchy!(IRtwqAsyncCallback, windows_core::IUnknown); @@ -2447,9 +2447,9 @@ impl IRtwqAsyncCallback { } pub unsafe fn Invoke(&self, pasyncresult: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pasyncresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pasyncresult.param().abi()).ok() } } #[repr(C)] 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 b6acdeec78..838dc2816d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs @@ -7,18 +7,18 @@ impl ICatalog { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCollection(&self, bstrcollname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCollection)(windows_core::Interface::as_raw(self), bstrcollname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Connect(&self, bstrconnectstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrconnectstring.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), bstrconnectstring.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn MajorVersion(&self, retval: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MajorVersion)(windows_core::Interface::as_raw(self), retval).ok() @@ -50,31 +50,31 @@ windows_core::imp::interface_hierarchy!(IComponentUtil, windows_core::IUnknown, impl IComponentUtil { pub unsafe fn InstallComponent(&self, bstrdllfile: P0, bstrtypelibfile: P1, bstrproxystubdllfile: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallComponent)(windows_core::Interface::as_raw(self), bstrdllfile.into_param().abi(), bstrtypelibfile.into_param().abi(), bstrproxystubdllfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallComponent)(windows_core::Interface::as_raw(self), bstrdllfile.param().abi(), bstrtypelibfile.param().abi(), bstrproxystubdllfile.param().abi()).ok() } pub unsafe fn ImportComponent(&self, bstrclsid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportComponent)(windows_core::Interface::as_raw(self), bstrclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImportComponent)(windows_core::Interface::as_raw(self), bstrclsid.param().abi()).ok() } pub unsafe fn ImportComponentByName(&self, bstrprogid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportComponentByName)(windows_core::Interface::as_raw(self), bstrprogid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImportComponentByName)(windows_core::Interface::as_raw(self), bstrprogid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetCLSIDs(&self, bstrdllfile: P0, bstrtypelibfile: P1, aclsids: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCLSIDs)(windows_core::Interface::as_raw(self), bstrdllfile.into_param().abi(), bstrtypelibfile.into_param().abi(), aclsids).ok() + (windows_core::Interface::vtable(self).GetCLSIDs)(windows_core::Interface::as_raw(self), bstrdllfile.param().abi(), bstrtypelibfile.param().abi(), aclsids).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -97,23 +97,23 @@ windows_core::imp::interface_hierarchy!(IPackageUtil, windows_core::IUnknown, su impl IPackageUtil { pub unsafe fn InstallPackage(&self, bstrpackagefile: P0, bstrinstallpath: P1, loptions: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallPackage)(windows_core::Interface::as_raw(self), bstrpackagefile.into_param().abi(), bstrinstallpath.into_param().abi(), loptions).ok() + (windows_core::Interface::vtable(self).InstallPackage)(windows_core::Interface::as_raw(self), bstrpackagefile.param().abi(), bstrinstallpath.param().abi(), loptions).ok() } pub unsafe fn ExportPackage(&self, bstrpackageid: P0, bstrpackagefile: P1, loptions: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ExportPackage)(windows_core::Interface::as_raw(self), bstrpackageid.into_param().abi(), bstrpackagefile.into_param().abi(), loptions).ok() + (windows_core::Interface::vtable(self).ExportPackage)(windows_core::Interface::as_raw(self), bstrpackageid.param().abi(), bstrpackagefile.param().abi(), loptions).ok() } pub unsafe fn ShutdownPackage(&self, bstrpackageid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShutdownPackage)(windows_core::Interface::as_raw(self), bstrpackageid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShutdownPackage)(windows_core::Interface::as_raw(self), bstrpackageid.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -132,19 +132,19 @@ windows_core::imp::interface_hierarchy!(IRemoteComponentUtil, windows_core::IUnk impl IRemoteComponentUtil { pub unsafe fn InstallRemoteComponent(&self, bstrserver: P0, bstrpackageid: P1, bstrclsid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallRemoteComponent)(windows_core::Interface::as_raw(self), bstrserver.into_param().abi(), bstrpackageid.into_param().abi(), bstrclsid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallRemoteComponent)(windows_core::Interface::as_raw(self), bstrserver.param().abi(), bstrpackageid.param().abi(), bstrclsid.param().abi()).ok() } pub unsafe fn InstallRemoteComponentByName(&self, bstrserver: P0, bstrpackagename: P1, bstrprogid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InstallRemoteComponentByName)(windows_core::Interface::as_raw(self), bstrserver.into_param().abi(), bstrpackagename.into_param().abi(), bstrprogid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstallRemoteComponentByName)(windows_core::Interface::as_raw(self), bstrserver.param().abi(), bstrpackagename.param().abi(), bstrprogid.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -162,15 +162,15 @@ windows_core::imp::interface_hierarchy!(IRoleAssociationUtil, windows_core::IUnk impl IRoleAssociationUtil { pub unsafe fn AssociateRole(&self, bstrroleid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociateRole)(windows_core::Interface::as_raw(self), bstrroleid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AssociateRole)(windows_core::Interface::as_raw(self), bstrroleid.param().abi()).ok() } pub unsafe fn AssociateRoleByName(&self, bstrrolename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociateRoleByName)(windows_core::Interface::as_raw(self), bstrrolename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AssociateRoleByName)(windows_core::Interface::as_raw(self), bstrrolename.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] 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 32a81b986b..fb220d9cdc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs @@ -215,9 +215,9 @@ impl IAutomaticUpdatesSettings2 { } pub unsafe fn SetIncludeRecommendedUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIncludeRecommendedUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIncludeRecommendedUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn CheckPermission(&self, usertype: AutomaticUpdatesUserType, permissiontype: AutomaticUpdatesPermissionType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -279,9 +279,9 @@ impl IAutomaticUpdatesSettings3 { } pub unsafe fn SetIncludeRecommendedUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIncludeRecommendedUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIncludeRecommendedUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn CheckPermission(&self, usertype: AutomaticUpdatesUserType, permissiontype: AutomaticUpdatesPermissionType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -293,9 +293,9 @@ impl IAutomaticUpdatesSettings3 { } pub unsafe fn SetNonAdministratorsElevated(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNonAdministratorsElevated)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNonAdministratorsElevated)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FeaturedUpdatesEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -303,9 +303,9 @@ impl IAutomaticUpdatesSettings3 { } pub unsafe fn SetFeaturedUpdatesEnabled(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFeaturedUpdatesEnabled)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFeaturedUpdatesEnabled)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -427,10 +427,10 @@ impl IDownloadCompletedCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke(&self, downloadjob: P0, callbackargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), downloadjob.into_param().abi(), callbackargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), downloadjob.param().abi(), callbackargs.param().abi()).ok() } } #[repr(C)] @@ -567,10 +567,10 @@ impl IDownloadProgressChangedCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke(&self, downloadjob: P0, callbackargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), downloadjob.into_param().abi(), callbackargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), downloadjob.param().abi(), callbackargs.param().abi()).ok() } } #[repr(C)] @@ -674,10 +674,10 @@ impl IInstallationAgent { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RecordInstallationResult(&self, installationresultcookie: P0, hresult: i32, extendedreportingdata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RecordInstallationResult)(windows_core::Interface::as_raw(self), installationresultcookie.into_param().abi(), hresult, extendedreportingdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RecordInstallationResult)(windows_core::Interface::as_raw(self), installationresultcookie.param().abi(), hresult, extendedreportingdata.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -727,10 +727,10 @@ impl IInstallationCompletedCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke(&self, installationjob: P0, callbackargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), installationjob.into_param().abi(), callbackargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), installationjob.param().abi(), callbackargs.param().abi()).ok() } } #[repr(C)] @@ -842,10 +842,10 @@ impl IInstallationProgressChangedCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke(&self, installationjob: P0, callbackargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), installationjob.into_param().abi(), callbackargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), installationjob.param().abi(), callbackargs.param().abi()).ok() } } #[repr(C)] @@ -948,10 +948,10 @@ impl ISearchCompletedCallback { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke(&self, searchjob: P0, callbackargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), searchjob.into_param().abi(), callbackargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), searchjob.param().abi(), callbackargs.param().abi()).ok() } } #[repr(C)] @@ -1059,9 +1059,9 @@ impl IStringCollection { } pub unsafe fn put_Item(&self, index: i32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index, value.into_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__ = std::mem::zeroed(); @@ -1077,10 +1077,10 @@ impl IStringCollection { } pub unsafe fn Add(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -1092,9 +1092,9 @@ impl IStringCollection { } pub unsafe fn Insert(&self, index: i32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), index, value.into_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), index).ok() @@ -1225,9 +1225,9 @@ impl IUpdate { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1329,10 +1329,10 @@ impl IUpdate { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1518,9 +1518,9 @@ impl IUpdate2 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1622,10 +1622,10 @@ impl IUpdate2 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1652,9 +1652,9 @@ impl IUpdate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1757,9 +1757,9 @@ impl IUpdate3 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1861,10 +1861,10 @@ impl IUpdate3 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1891,9 +1891,9 @@ impl IUpdate3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } pub unsafe fn BrowseOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1991,9 +1991,9 @@ impl IUpdate4 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2095,10 +2095,10 @@ impl IUpdate4 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2125,9 +2125,9 @@ impl IUpdate4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } pub unsafe fn BrowseOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2229,9 +2229,9 @@ impl IUpdate5 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2333,10 +2333,10 @@ impl IUpdate5 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2363,9 +2363,9 @@ impl IUpdate5 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } pub unsafe fn BrowseOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2405,9 +2405,9 @@ impl IUpdateCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn put_Item(&self, index: i32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Item)(windows_core::Interface::as_raw(self), index, value.into_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__ = std::mem::zeroed(); @@ -2424,10 +2424,10 @@ impl IUpdateCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -2440,9 +2440,9 @@ impl IUpdateCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Insert(&self, index: i32, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), index, value.into_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), index).ok() @@ -2581,9 +2581,9 @@ impl IUpdateDownloader { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsForced(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2591,9 +2591,9 @@ impl IUpdateDownloader { } pub unsafe fn SetIsForced(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Priority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2610,19 +2610,19 @@ impl IUpdateDownloader { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginDownload(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDownload)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginDownload)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Download(&self) -> windows_core::Result { @@ -2632,10 +2632,10 @@ impl IUpdateDownloader { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndDownload(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndDownload)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndDownload)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -2988,9 +2988,9 @@ impl IUpdateInstaller { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsForced(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2998,9 +2998,9 @@ impl IUpdateInstaller { } pub unsafe fn SetIsForced(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsForced)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentHwnd(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3008,15 +3008,15 @@ impl IUpdateInstaller { } pub unsafe fn SetParentHwnd(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParentHwnd)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParentHwnd)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetParentWindow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParentWindow)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3030,45 +3030,45 @@ impl IUpdateInstaller { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginInstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginUninstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndInstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndInstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndInstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndUninstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndUninstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndUninstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Install(&self) -> windows_core::Result { @@ -3078,10 +3078,10 @@ impl IUpdateInstaller { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RunWizard(&self, dialogtitle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsBusy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3098,9 +3098,9 @@ impl IUpdateInstaller { } pub unsafe fn SetAllowSourcePrompts(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn RebootRequiredBeforeInstallation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3172,9 +3172,9 @@ impl IUpdateInstaller2 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsForced(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3182,9 +3182,9 @@ impl IUpdateInstaller2 { } pub unsafe fn SetIsForced(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsForced)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsForced)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentHwnd(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3192,15 +3192,15 @@ impl IUpdateInstaller2 { } pub unsafe fn SetParentHwnd(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetParentHwnd)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetParentHwnd)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetParentWindow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetParentWindow)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetParentWindow)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3214,45 +3214,45 @@ impl IUpdateInstaller2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginInstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginUninstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndInstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndInstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EndInstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndUninstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndUninstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EndUninstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Install(&self) -> windows_core::Result { @@ -3262,10 +3262,10 @@ impl IUpdateInstaller2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RunWizard(&self, dialogtitle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsBusy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3282,9 +3282,9 @@ impl IUpdateInstaller2 { } pub unsafe fn SetAllowSourcePrompts(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn RebootRequiredBeforeInstallation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3296,9 +3296,9 @@ impl IUpdateInstaller2 { } pub unsafe fn SetForceQuiet(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetForceQuiet)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetForceQuiet)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3320,9 +3320,9 @@ impl IUpdateInstaller3 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsForced(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3330,9 +3330,9 @@ impl IUpdateInstaller3 { } pub unsafe fn SetIsForced(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetIsForced)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetIsForced)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentHwnd(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3340,15 +3340,15 @@ impl IUpdateInstaller3 { } pub unsafe fn SetParentHwnd(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetParentHwnd)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetParentHwnd)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetParentWindow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetParentWindow)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetParentWindow)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3362,45 +3362,45 @@ impl IUpdateInstaller3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginInstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginUninstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndInstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EndInstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.EndInstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndUninstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EndUninstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.EndUninstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Install(&self) -> windows_core::Result { @@ -3410,10 +3410,10 @@ impl IUpdateInstaller3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RunWizard(&self, dialogtitle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsBusy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3430,9 +3430,9 @@ impl IUpdateInstaller3 { } pub unsafe fn SetAllowSourcePrompts(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn RebootRequiredBeforeInstallation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3444,9 +3444,9 @@ impl IUpdateInstaller3 { } pub unsafe fn SetForceQuiet(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetForceQuiet)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetForceQuiet)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn AttemptCloseAppsIfNecessary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3454,9 +3454,9 @@ impl IUpdateInstaller3 { } pub unsafe fn SetAttemptCloseAppsIfNecessary(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttemptCloseAppsIfNecessary)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttemptCloseAppsIfNecessary)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3478,9 +3478,9 @@ impl IUpdateInstaller4 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsForced(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3488,9 +3488,9 @@ impl IUpdateInstaller4 { } pub unsafe fn SetIsForced(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetIsForced)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetIsForced)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentHwnd(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3498,15 +3498,15 @@ impl IUpdateInstaller4 { } pub unsafe fn SetParentHwnd(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetParentHwnd)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetParentHwnd)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetParentWindow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetParentWindow)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetParentWindow)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ParentWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3520,45 +3520,45 @@ impl IUpdateInstaller4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginInstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.BeginInstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginUninstall(&self, onprogresschanged: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.BeginUninstall)(windows_core::Interface::as_raw(self), onprogresschanged.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndInstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.EndInstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.EndInstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndUninstall(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.EndUninstall)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.EndUninstall)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Install(&self) -> windows_core::Result { @@ -3568,10 +3568,10 @@ impl IUpdateInstaller4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn RunWizard(&self, dialogtitle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.RunWizard)(windows_core::Interface::as_raw(self), dialogtitle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsBusy(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3588,9 +3588,9 @@ impl IUpdateInstaller4 { } pub unsafe fn SetAllowSourcePrompts(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetAllowSourcePrompts)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn RebootRequiredBeforeInstallation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3602,9 +3602,9 @@ impl IUpdateInstaller4 { } pub unsafe fn SetForceQuiet(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetForceQuiet)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetForceQuiet)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn AttemptCloseAppsIfNecessary(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3612,9 +3612,9 @@ impl IUpdateInstaller4 { } pub unsafe fn SetAttemptCloseAppsIfNecessary(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAttemptCloseAppsIfNecessary)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAttemptCloseAppsIfNecessary)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Commit(&self, dwflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self), dwflags).ok() @@ -3650,9 +3650,9 @@ impl IUpdateSearcher { } pub unsafe fn SetCanAutomaticallyUpgradeService(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ClientApplicationID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3660,9 +3660,9 @@ impl IUpdateSearcher { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IncludePotentiallySupersededUpdates(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3670,9 +3670,9 @@ impl IUpdateSearcher { } pub unsafe fn SetIncludePotentiallySupersededUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ServerSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3684,27 +3684,27 @@ impl IUpdateSearcher { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginSearch(&self, criteria: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSearch)(windows_core::Interface::as_raw(self), criteria.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BeginSearch)(windows_core::Interface::as_raw(self), criteria.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndSearch(&self, searchjob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EndSearch)(windows_core::Interface::as_raw(self), searchjob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EndSearch)(windows_core::Interface::as_raw(self), searchjob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EscapeString(&self, unescaped: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EscapeString)(windows_core::Interface::as_raw(self), unescaped.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EscapeString)(windows_core::Interface::as_raw(self), unescaped.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryHistory(&self, startindex: i32, count: i32) -> windows_core::Result { @@ -3714,10 +3714,10 @@ impl IUpdateSearcher { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Search(&self, criteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Search)(windows_core::Interface::as_raw(self), criteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Search)(windows_core::Interface::as_raw(self), criteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Online(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3725,9 +3725,9 @@ impl IUpdateSearcher { } pub unsafe fn SetOnline(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOnline)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOnline)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn GetTotalHistoryCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3739,9 +3739,9 @@ impl IUpdateSearcher { } pub unsafe fn SetServiceID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServiceID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServiceID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3791,9 +3791,9 @@ impl IUpdateSearcher2 { } pub unsafe fn SetCanAutomaticallyUpgradeService(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ClientApplicationID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3801,9 +3801,9 @@ impl IUpdateSearcher2 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IncludePotentiallySupersededUpdates(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3811,9 +3811,9 @@ impl IUpdateSearcher2 { } pub unsafe fn SetIncludePotentiallySupersededUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ServerSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3825,27 +3825,27 @@ impl IUpdateSearcher2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginSearch(&self, criteria: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.BeginSearch)(windows_core::Interface::as_raw(self), criteria.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.BeginSearch)(windows_core::Interface::as_raw(self), criteria.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndSearch(&self, searchjob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EndSearch)(windows_core::Interface::as_raw(self), searchjob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EndSearch)(windows_core::Interface::as_raw(self), searchjob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EscapeString(&self, unescaped: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EscapeString)(windows_core::Interface::as_raw(self), unescaped.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.EscapeString)(windows_core::Interface::as_raw(self), unescaped.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryHistory(&self, startindex: i32, count: i32) -> windows_core::Result { @@ -3855,10 +3855,10 @@ impl IUpdateSearcher2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Search(&self, criteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Search)(windows_core::Interface::as_raw(self), criteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Search)(windows_core::Interface::as_raw(self), criteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Online(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3866,9 +3866,9 @@ impl IUpdateSearcher2 { } pub unsafe fn SetOnline(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOnline)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOnline)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn GetTotalHistoryCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3880,9 +3880,9 @@ impl IUpdateSearcher2 { } pub unsafe fn SetServiceID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetServiceID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetServiceID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IgnoreDownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3890,9 +3890,9 @@ impl IUpdateSearcher2 { } pub unsafe fn SetIgnoreDownloadPriority(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIgnoreDownloadPriority)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIgnoreDownloadPriority)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3914,9 +3914,9 @@ impl IUpdateSearcher3 { } pub unsafe fn SetCanAutomaticallyUpgradeService(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetCanAutomaticallyUpgradeService)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ClientApplicationID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3924,9 +3924,9 @@ impl IUpdateSearcher3 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IncludePotentiallySupersededUpdates(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3934,9 +3934,9 @@ impl IUpdateSearcher3 { } pub unsafe fn SetIncludePotentiallySupersededUpdates(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetIncludePotentiallySupersededUpdates)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ServerSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3948,27 +3948,27 @@ impl IUpdateSearcher3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BeginSearch(&self, criteria: P0, oncompleted: P1, state: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.BeginSearch)(windows_core::Interface::as_raw(self), criteria.into_param().abi(), oncompleted.into_param().abi(), state.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.BeginSearch)(windows_core::Interface::as_raw(self), criteria.param().abi(), oncompleted.param().abi(), state.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndSearch(&self, searchjob: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EndSearch)(windows_core::Interface::as_raw(self), searchjob.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.EndSearch)(windows_core::Interface::as_raw(self), searchjob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EscapeString(&self, unescaped: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.EscapeString)(windows_core::Interface::as_raw(self), unescaped.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.EscapeString)(windows_core::Interface::as_raw(self), unescaped.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryHistory(&self, startindex: i32, count: i32) -> windows_core::Result { @@ -3978,10 +3978,10 @@ impl IUpdateSearcher3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Search(&self, criteria: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Search)(windows_core::Interface::as_raw(self), criteria.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.Search)(windows_core::Interface::as_raw(self), criteria.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Online(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3989,9 +3989,9 @@ impl IUpdateSearcher3 { } pub unsafe fn SetOnline(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetOnline)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetOnline)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn GetTotalHistoryCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4003,9 +4003,9 @@ impl IUpdateSearcher3 { } pub unsafe fn SetServiceID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetServiceID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetServiceID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IgnoreDownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4013,9 +4013,9 @@ impl IUpdateSearcher3 { } pub unsafe fn SetIgnoreDownloadPriority(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIgnoreDownloadPriority)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIgnoreDownloadPriority)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SearchScope(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4228,45 +4228,45 @@ impl IUpdateServiceManager { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddService(&self, serviceid: P0, authorizationcabpath: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddService)(windows_core::Interface::as_raw(self), serviceid.into_param().abi(), authorizationcabpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddService)(windows_core::Interface::as_raw(self), serviceid.param().abi(), authorizationcabpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterServiceWithAU(&self, serviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.param().abi()).ok() } pub unsafe fn RemoveService(&self, serviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveService)(windows_core::Interface::as_raw(self), serviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveService)(windows_core::Interface::as_raw(self), serviceid.param().abi()).ok() } pub unsafe fn UnregisterServiceWithAU(&self, serviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddScanPackageService(&self, servicename: P0, scanfilelocation: P1, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddScanPackageService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), scanfilelocation.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddScanPackageService)(windows_core::Interface::as_raw(self), servicename.param().abi(), scanfilelocation.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetOption(&self, optionname: P0, optionvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), optionname.into_param().abi(), optionvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOption)(windows_core::Interface::as_raw(self), optionname.param().abi(), optionvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4304,45 +4304,45 @@ impl IUpdateServiceManager2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddService(&self, serviceid: P0, authorizationcabpath: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddService)(windows_core::Interface::as_raw(self), serviceid.into_param().abi(), authorizationcabpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AddService)(windows_core::Interface::as_raw(self), serviceid.param().abi(), authorizationcabpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RegisterServiceWithAU(&self, serviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.param().abi()).ok() } pub unsafe fn RemoveService(&self, serviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveService)(windows_core::Interface::as_raw(self), serviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveService)(windows_core::Interface::as_raw(self), serviceid.param().abi()).ok() } pub unsafe fn UnregisterServiceWithAU(&self, serviceid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterServiceWithAU)(windows_core::Interface::as_raw(self), serviceid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddScanPackageService(&self, servicename: P0, scanfilelocation: P1, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddScanPackageService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), scanfilelocation.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AddScanPackageService)(windows_core::Interface::as_raw(self), servicename.param().abi(), scanfilelocation.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetOption(&self, optionname: P0, optionvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOption)(windows_core::Interface::as_raw(self), optionname.into_param().abi(), optionvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOption)(windows_core::Interface::as_raw(self), optionname.param().abi(), optionvalue.param().abi()).ok() } pub unsafe fn ClientApplicationID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4350,26 +4350,26 @@ impl IUpdateServiceManager2 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryServiceRegistration(&self, serviceid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryServiceRegistration)(windows_core::Interface::as_raw(self), serviceid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryServiceRegistration)(windows_core::Interface::as_raw(self), serviceid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddService2(&self, serviceid: P0, flags: i32, authorizationcabpath: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddService2)(windows_core::Interface::as_raw(self), serviceid.into_param().abi(), flags, authorizationcabpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddService2)(windows_core::Interface::as_raw(self), serviceid.param().abi(), flags, authorizationcabpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4435,9 +4435,9 @@ impl IUpdateSession { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4451,9 +4451,9 @@ impl IUpdateSession { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWebProxy(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWebProxy)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWebProxy)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateUpdateSearcher(&self) -> windows_core::Result { @@ -4511,9 +4511,9 @@ impl IUpdateSession2 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4527,9 +4527,9 @@ impl IUpdateSession2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWebProxy(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWebProxy)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWebProxy)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateUpdateSearcher(&self) -> windows_core::Result { @@ -4573,9 +4573,9 @@ impl IUpdateSession3 { } pub unsafe fn SetClientApplicationID(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetClientApplicationID)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4589,9 +4589,9 @@ impl IUpdateSession3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWebProxy(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetWebProxy)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetWebProxy)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateUpdateSearcher(&self) -> windows_core::Result { @@ -4623,10 +4623,10 @@ impl IUpdateSession3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryHistory(&self, criteria: P0, startindex: i32, count: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryHistory)(windows_core::Interface::as_raw(self), criteria.into_param().abi(), startindex, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).QueryHistory)(windows_core::Interface::as_raw(self), criteria.param().abi(), startindex, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -4654,9 +4654,9 @@ impl IWebProxy { } pub unsafe fn SetAddress(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAddress)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAddress)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BypassList(&self) -> windows_core::Result { @@ -4666,9 +4666,9 @@ impl IWebProxy { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetBypassList(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBypassList)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBypassList)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn BypassProxyOnLocal(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4676,9 +4676,9 @@ impl IWebProxy { } pub unsafe fn SetBypassProxyOnLocal(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBypassProxyOnLocal)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBypassProxyOnLocal)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn ReadOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4690,29 +4690,29 @@ impl IWebProxy { } pub unsafe fn SetUserName(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserName)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserName)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetPassword(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPassword)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn PromptForCredentials(&self, parentwindow: P0, title: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PromptForCredentials)(windows_core::Interface::as_raw(self), parentwindow.into_param().abi(), title.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PromptForCredentials)(windows_core::Interface::as_raw(self), parentwindow.param().abi(), title.param().abi()).ok() } pub unsafe fn PromptForCredentialsFromHwnd(&self, parentwindow: P0, title: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PromptForCredentialsFromHwnd)(windows_core::Interface::as_raw(self), parentwindow.into_param().abi(), title.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PromptForCredentialsFromHwnd)(windows_core::Interface::as_raw(self), parentwindow.param().abi(), title.param().abi()).ok() } pub unsafe fn AutoDetect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4720,9 +4720,9 @@ impl IWebProxy { } pub unsafe fn SetAutoDetect(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoDetect)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoDetect)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4835,9 +4835,9 @@ impl IWindowsDriverUpdate { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4939,10 +4939,10 @@ impl IWindowsDriverUpdate { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5084,9 +5084,9 @@ impl IWindowsDriverUpdate2 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5188,10 +5188,10 @@ impl IWindowsDriverUpdate2 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5250,9 +5250,9 @@ impl IWindowsDriverUpdate2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5355,9 +5355,9 @@ impl IWindowsDriverUpdate3 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5459,10 +5459,10 @@ impl IWindowsDriverUpdate3 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5521,9 +5521,9 @@ impl IWindowsDriverUpdate3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } pub unsafe fn BrowseOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5621,9 +5621,9 @@ impl IWindowsDriverUpdate4 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5725,10 +5725,10 @@ impl IWindowsDriverUpdate4 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5787,9 +5787,9 @@ impl IWindowsDriverUpdate4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } pub unsafe fn BrowseOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5900,9 +5900,9 @@ impl IWindowsDriverUpdate5 { } pub unsafe fn SetIsHidden(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetIsHidden)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn IsInstalled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6004,10 +6004,10 @@ impl IWindowsDriverUpdate5 { } pub unsafe fn CopyFromCache(&self, path: P0, toextractcabfiles: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.into_param().abi(), toextractcabfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyFromCache)(windows_core::Interface::as_raw(self), path.param().abi(), toextractcabfiles.param().abi()).ok() } pub unsafe fn DownloadPriority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6066,9 +6066,9 @@ impl IWindowsDriverUpdate5 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyToCache(&self, pfiles: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CopyToCache)(windows_core::Interface::as_raw(self), pfiles.param().abi()).ok() } pub unsafe fn BrowseOnly(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6190,10 +6190,10 @@ windows_core::imp::interface_hierarchy!(IWindowsUpdateAgentInfo, windows_core::I impl IWindowsUpdateAgentInfo { pub unsafe fn GetInfo(&self, varinfoidentifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), varinfoidentifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetInfo)(windows_core::Interface::as_raw(self), varinfoidentifier.param().abi(), &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/UserAccessLogging/mod.rs b/crates/libs/windows/src/Windows/Win32/System/UserAccessLogging/mod.rs index aa59a42d78..6501ed5ce4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UserAccessLogging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UserAccessLogging/mod.rs @@ -7,12 +7,12 @@ pub unsafe fn UalInstrument(data: *const UAL_DATA_BLOB) -> windows_core::Result< #[inline] pub unsafe fn UalRegisterProduct(wszproductname: P0, wszrolename: P1, wszguid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("ualapi.dll" "system" fn UalRegisterProduct(wszproductname : windows_core::PCWSTR, wszrolename : windows_core::PCWSTR, wszguid : windows_core::PCWSTR) -> windows_core::HRESULT); - UalRegisterProduct(wszproductname.into_param().abi(), wszrolename.into_param().abi(), wszguid.into_param().abi()).ok() + UalRegisterProduct(wszproductname.param().abi(), wszrolename.param().abi(), wszguid.param().abi()).ok() } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] 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 8709e93f2a..b842cb8b05 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs @@ -65,11 +65,11 @@ pub unsafe fn InitVariantFromInt64Array(prgn: &[i64]) -> windows_core::Result(hinst: P0, id: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn InitVariantFromResource(hinst : super::super::Foundation:: HINSTANCE, id : u32, pvar : *mut std::mem::MaybeUninit < windows_core::VARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - InitVariantFromResource(hinst.into_param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + InitVariantFromResource(hinst.param().abi(), id, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn InitVariantFromStringArray(prgsz: &[windows_core::PCWSTR]) -> windows_core::Result { @@ -271,10 +271,10 @@ pub unsafe fn VariantToBooleanArrayAlloc(var: *const windows_core::VARIANT, pprg #[inline] pub unsafe fn VariantToBooleanWithDefault(varin: *const windows_core::VARIANT, fdefault: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn VariantToBooleanWithDefault(varin : *const std::mem::MaybeUninit < windows_core::VARIANT >, fdefault : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - VariantToBooleanWithDefault(core::mem::transmute(varin), fdefault.into_param().abi()) + VariantToBooleanWithDefault(core::mem::transmute(varin), fdefault.param().abi()) } #[inline] pub unsafe fn VariantToBuffer(varin: *const windows_core::VARIANT, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { @@ -406,10 +406,10 @@ pub unsafe fn VariantToStringArrayAlloc(var: *const windows_core::VARIANT, pprgs #[inline] pub unsafe fn VariantToStringWithDefault(varin: *const windows_core::VARIANT, pszdefault: P0) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn VariantToStringWithDefault(varin : *const std::mem::MaybeUninit < windows_core::VARIANT >, pszdefault : windows_core::PCWSTR) -> windows_core::PCWSTR); - VariantToStringWithDefault(core::mem::transmute(varin), pszdefault.into_param().abi()) + VariantToStringWithDefault(core::mem::transmute(varin), pszdefault.param().abi()) } #[inline] pub unsafe fn VariantToUInt16(varin: *const windows_core::VARIANT) -> windows_core::Result { 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 94f68f7eb5..fecbf05e0e 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,10 +4,10 @@ impl ICompositionCapabilitiesInteropFactory { #[cfg(feature = "UI_Composition")] pub unsafe fn GetForWindow(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -81,9 +81,9 @@ impl ICompositionDrawingSurfaceInterop2 { } pub unsafe fn CopySurface(&self, destinationresource: P0, destinationoffsetx: i32, destinationoffsety: i32, sourcerectangle: Option<*const super::super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CopySurface)(windows_core::Interface::as_raw(self), destinationresource.into_param().abi(), destinationoffsetx, destinationoffsety, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).CopySurface)(windows_core::Interface::as_raw(self), destinationresource.param().abi(), destinationoffsetx, destinationoffsety, core::mem::transmute(sourcerectangle.unwrap_or(std::ptr::null()))).ok() } } #[repr(C)] @@ -100,9 +100,9 @@ impl ICompositionGraphicsDeviceInterop { } pub unsafe fn SetRenderingDevice(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRenderingDevice)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRenderingDevice)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[repr(C)] @@ -129,11 +129,11 @@ impl ICompositorDesktopInterop { #[cfg(feature = "UI_Composition_Desktop")] pub unsafe fn CreateDesktopWindowTarget(&self, hwndtarget: P0, istopmost: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDesktopWindowTarget)(windows_core::Interface::as_raw(self), hwndtarget.into_param().abi(), istopmost.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateDesktopWindowTarget)(windows_core::Interface::as_raw(self), hwndtarget.param().abi(), istopmost.param().abi(), &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), threadid).ok() @@ -154,26 +154,26 @@ impl ICompositorInterop { #[cfg(feature = "UI_Composition")] pub unsafe fn CreateCompositionSurfaceForHandle(&self, swapchain: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCompositionSurfaceForHandle)(windows_core::Interface::as_raw(self), swapchain.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompositionSurfaceForHandle)(windows_core::Interface::as_raw(self), swapchain.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "UI_Composition")] pub unsafe fn CreateCompositionSurfaceForSwapChain(&self, swapchain: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCompositionSurfaceForSwapChain)(windows_core::Interface::as_raw(self), swapchain.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompositionSurfaceForSwapChain)(windows_core::Interface::as_raw(self), swapchain.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "UI_Composition")] pub unsafe fn CreateGraphicsDevice(&self, renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateGraphicsDevice)(windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateGraphicsDevice)(windows_core::Interface::as_raw(self), renderingdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -197,18 +197,18 @@ windows_core::imp::interface_hierarchy!(ICompositorInterop2, windows_core::IUnkn impl ICompositorInterop2 { pub unsafe fn CheckCompositionTextureSupport(&self, renderingdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckCompositionTextureSupport)(windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckCompositionTextureSupport)(windows_core::Interface::as_raw(self), renderingdevice.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "UI_Composition")] pub unsafe fn CreateCompositionTexture(&self, d3dtexture: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateCompositionTexture)(windows_core::Interface::as_raw(self), d3dtexture.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateCompositionTexture)(windows_core::Interface::as_raw(self), d3dtexture.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[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 3c717d1496..25e3727011 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 @@ -3,11 +3,11 @@ windows_core::imp::interface_hierarchy!(ICoreFrameworkInputViewInterop, windows_ impl ICoreFrameworkInputViewInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.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/Direct3D11/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/mod.rs index 223537f075..5b4487b829 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/mod.rs @@ -2,21 +2,21 @@ #[inline] pub unsafe fn CreateDirect3D11DeviceFromDXGIDevice(dxgidevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d11.dll" "system" fn CreateDirect3D11DeviceFromDXGIDevice(dxgidevice : * mut core::ffi::c_void, graphicsdevice : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateDirect3D11DeviceFromDXGIDevice(dxgidevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDirect3D11DeviceFromDXGIDevice(dxgidevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Dxgi")] #[inline] pub unsafe fn CreateDirect3D11SurfaceFromDXGISurface(dgxisurface: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("d3d11.dll" "system" fn CreateDirect3D11SurfaceFromDXGISurface(dgxisurface : * mut core::ffi::c_void, graphicssurface : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CreateDirect3D11SurfaceFromDXGISurface(dgxisurface.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDirect3D11SurfaceFromDXGISurface(dgxisurface.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } windows_core::imp::define_interface!(IDirect3DDxgiInterfaceAccess, IDirect3DDxgiInterfaceAccess_Vtbl, 0xa9b3d012_3df2_4ee3_b8d1_8695f457d3c1); windows_core::imp::interface_hierarchy!(IDirect3DDxgiInterfaceAccess, windows_core::IUnknown); 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 c5f833a460..5f5b8e6a95 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 @@ -4,17 +4,17 @@ impl IDisplayDeviceInterop { #[cfg(feature = "Win32_Security")] pub unsafe fn CreateSharedHandle(&self, pobject: P0, psecurityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, access: u32, name: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSharedHandle)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), psecurityattributes, 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: P0, riid: windows_core::GUID) -> windows_core::Result<*mut core::ffi::c_void> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.into_param().abi(), core::mem::transmute(riid), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenSharedHandle)(windows_core::Interface::as_raw(self), nthandle.param().abi(), 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 930e6a8213..25cf39a848 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 @@ -3,20 +3,20 @@ windows_core::imp::interface_hierarchy!(IGraphicsCaptureItemInterop, windows_cor impl IGraphicsCaptureItemInterop { pub unsafe fn CreateForWindow(&self, window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), window.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateForMonitor(&self, monitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForMonitor)(windows_core::Interface::as_raw(self), monitor.into_param().abi(), &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.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/Graphics/Direct2D/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/mod.rs index 094079b407..0b50db1af6 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 @@ -9,10 +9,10 @@ impl IGeometrySource2DInterop { #[cfg(feature = "Win32_Graphics_Direct2D")] pub unsafe fn TryGetGeometryUsingFactory(&self, factory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TryGetGeometryUsingFactory)(windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).TryGetGeometryUsingFactory)(windows_core::Interface::as_raw(self), factory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -36,9 +36,9 @@ impl IGraphicsEffectD2D1Interop { } pub unsafe fn GetNamedPropertyMapping(&self, name: P0, index: *mut u32, mapping: *mut GRAPHICS_EFFECT_PROPERTY_MAPPING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetNamedPropertyMapping)(windows_core::Interface::as_raw(self), name.into_param().abi(), index, mapping).ok() + (windows_core::Interface::vtable(self).GetNamedPropertyMapping)(windows_core::Interface::as_raw(self), name.param().abi(), index, mapping).ok() } pub unsafe fn GetPropertyCount(&self) -> windows_core::Result { let mut result__ = std::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 51b70d20c6..aad23140a8 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 @@ -20,22 +20,22 @@ impl ISoftwareBitmapNativeFactory { #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn CreateFromWICBitmap(&self, data: P0, forcereadonly: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromWICBitmap)(windows_core::Interface::as_raw(self), data.into_param().abi(), forcereadonly.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromWICBitmap)(windows_core::Interface::as_raw(self), data.param().abi(), forcereadonly.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn CreateFromMF2DBuffer2(&self, data: P0, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: P1, mindisplayaperture: Option<*const super::super::super::super::Media::MediaFoundation::MFVideoArea>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromMF2DBuffer2)(windows_core::Interface::as_raw(self), data.into_param().abi(), subtype, width, height, forcereadonly.into_param().abi(), core::mem::transmute(mindisplayaperture.unwrap_or(std::ptr::null())), &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.param().abi(), core::mem::transmute(mindisplayaperture.unwrap_or(std::ptr::null())), &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 7eaabc72c8..496918d1df 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 @@ -4,42 +4,42 @@ impl IHolographicCameraInterop { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateDirect3D12BackBufferResource(&self, pdevice: P0, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12BackBufferResource)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12HardwareProtectedBackBufferResource)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), ptexture2ddesc, pprotectedresourcesession.into_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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetoacquire.into_param().abi(), pcommandqueue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetoacquire.param().abi(), pcommandqueue.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn AcquireDirect3D12BufferResourceWithTimeout(&self, presourcetoacquire: P0, pcommandqueue: P1, duration: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResourceWithTimeout)(windows_core::Interface::as_raw(self), presourcetoacquire.into_param().abi(), pcommandqueue.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnacquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetounacquire.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnacquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetounacquire.param().abi()).ok() } } #[repr(C)] @@ -72,20 +72,20 @@ impl IHolographicCameraRenderingParametersInterop { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CommitDirect3D12Resource(&self, pcolorresourcetocommit: P0, pcolorresourcefence: P1, colorresourcefencesignalvalue: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitDirect3D12Resource)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.into_param().abi(), pcolorresourcefence.into_param().abi(), 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: P2, pdepthresourcefence: P3, depthresourcefencesignalvalue: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitDirect3D12ResourceWithDepthData)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.into_param().abi(), pcolorresourcefence.into_param().abi(), colorresourcefencesignalvalue, pdepthresourcetocommit.into_param().abi(), pdepthresourcefence.into_param().abi(), 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)] @@ -106,42 +106,42 @@ impl IHolographicQuadLayerInterop { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] pub unsafe fn CreateDirect3D12ContentBufferResource(&self, pdevice: P0, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12ContentBufferResource)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), 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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateDirect3D12HardwareProtectedContentBufferResource)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), ptexture2ddesc, pprotectedresourcesession.into_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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetoacquire.into_param().abi(), pcommandqueue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetoacquire.param().abi(), pcommandqueue.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn AcquireDirect3D12BufferResourceWithTimeout(&self, presourcetoacquire: P0, pcommandqueue: P1, duration: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AcquireDirect3D12BufferResourceWithTimeout)(windows_core::Interface::as_raw(self), presourcetoacquire.into_param().abi(), pcommandqueue.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnacquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetounacquire.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnacquireDirect3D12BufferResource)(windows_core::Interface::as_raw(self), presourcetounacquire.param().abi()).ok() } } #[repr(C)] @@ -174,10 +174,10 @@ impl IHolographicQuadLayerUpdateParametersInterop { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CommitDirect3D12Resource(&self, pcolorresourcetocommit: P0, pcolorresourcefence: P1, colorresourcefencesignalvalue: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitDirect3D12Resource)(windows_core::Interface::as_raw(self), pcolorresourcetocommit.into_param().abi(), pcolorresourcefence.into_param().abi(), 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 76a2a672dd..40e4b6b5be 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,10 +3,10 @@ windows_core::imp::interface_hierarchy!(IIsolatedEnvironmentInterop, windows_cor impl IIsolatedEnvironmentInterop { pub unsafe fn GetHostHwndInterop(&self, containerhwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetHostHwndInterop)(windows_core::Interface::as_raw(self), containerhwnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetHostHwndInterop)(windows_core::Interface::as_raw(self), containerhwnd.param().abi(), &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 47c96535df..ca7c92c6d8 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 @@ -4,10 +4,10 @@ impl ILearningModelDeviceFactoryNative { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateFromD3D12CommandQueue(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFromD3D12CommandQueue)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateFromD3D12CommandQueue)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -86,9 +86,9 @@ impl ITensorStaticsNative { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateFromD3D12Resource(&self, value: P0, shape: *mut i64, shapecount: i32, result: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateFromD3D12Resource)(windows_core::Interface::as_raw(self), value.into_param().abi(), shape, shapecount, core::mem::transmute(result)).ok() + (windows_core::Interface::vtable(self).CreateFromD3D12Resource)(windows_core::Interface::as_raw(self), value.param().abi(), 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 6e9065e890..d21ade2325 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 @@ -20,12 +20,12 @@ impl IAudioFrameNativeFactory { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn CreateFromMFSample(&self, data: P0, forcereadonly: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromMFSample)(windows_core::Interface::as_raw(self), data.into_param().abi(), forcereadonly.into_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(), forcereadonly.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -66,13 +66,13 @@ impl IVideoFrameNativeFactory { #[cfg(feature = "Win32_Media_MediaFoundation")] pub unsafe fn CreateFromMFSample(&self, data: P0, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: P1, mindisplayaperture: Option<*const super::super::super::Media::MediaFoundation::MFVideoArea>, device: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateFromMFSample)(windows_core::Interface::as_raw(self), data.into_param().abi(), subtype, width, height, forcereadonly.into_param().abi(), core::mem::transmute(mindisplayaperture.unwrap_or(std::ptr::null())), device.into_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.param().abi(), core::mem::transmute(mindisplayaperture.unwrap_or(std::ptr::null())), 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 f2f0b6531c..e5d1bf1f91 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 @@ -20,52 +20,52 @@ pub unsafe fn RoCreatePropertySetSerializer() -> windows_core::Result(extra: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll" "system" fn RoFreeParameterizedTypeExtra(extra : super:: ROPARAMIIDHANDLE)); - RoFreeParameterizedTypeExtra(extra.into_param().abi()) + RoFreeParameterizedTypeExtra(extra.param().abi()) } #[inline] pub unsafe fn RoGetMetaDataFile(name: &windows_core::HSTRING, metadatadispenser: P0, metadatafilepath: Option<*mut windows_core::HSTRING>, metadataimport: Option<*mut Option>, typedeftoken: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-ro-typeresolution-l1-1-0.dll" "system" fn RoGetMetaDataFile(name : std::mem::MaybeUninit < windows_core::HSTRING >, metadatadispenser : * mut core::ffi::c_void, metadatafilepath : *mut std::mem::MaybeUninit < windows_core::HSTRING >, metadataimport : *mut * mut core::ffi::c_void, typedeftoken : *mut u32) -> windows_core::HRESULT); - RoGetMetaDataFile(core::mem::transmute_copy(name), metadatadispenser.into_param().abi(), core::mem::transmute(metadatafilepath.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadataimport.unwrap_or(std::ptr::null_mut())), core::mem::transmute(typedeftoken.unwrap_or(std::ptr::null_mut()))).ok() + RoGetMetaDataFile(core::mem::transmute_copy(name), metadatadispenser.param().abi(), core::mem::transmute(metadatafilepath.unwrap_or(std::ptr::null_mut())), core::mem::transmute(metadataimport.unwrap_or(std::ptr::null_mut())), core::mem::transmute(typedeftoken.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RoGetParameterizedTypeInstanceIID(nameelements: &[windows_core::PCWSTR], metadatalocator: P0, iid: *mut windows_core::GUID, pextra: Option<*mut super::ROPARAMIIDHANDLE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll" "system" fn RoGetParameterizedTypeInstanceIID(nameelementcount : u32, nameelements : *const windows_core::PCWSTR, metadatalocator : * mut core::ffi::c_void, iid : *mut windows_core::GUID, pextra : *mut super:: ROPARAMIIDHANDLE) -> windows_core::HRESULT); - RoGetParameterizedTypeInstanceIID(nameelements.len().try_into().unwrap(), core::mem::transmute(nameelements.as_ptr()), metadatalocator.into_param().abi(), iid, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut()))).ok() + RoGetParameterizedTypeInstanceIID(nameelements.len().try_into().unwrap(), core::mem::transmute(nameelements.as_ptr()), metadatalocator.param().abi(), iid, core::mem::transmute(pextra.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RoIsApiContractMajorVersionPresent(name: P0, majorversion: u16) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - RoIsApiContractMajorVersionPresent(name.into_param().abi(), majorversion, &mut result__).map(|| result__) + RoIsApiContractMajorVersionPresent(name.param().abi(), majorversion, &mut result__).map(|| result__) } #[inline] pub unsafe fn RoIsApiContractPresent(name: P0, majorversion: u16, minorversion: u16) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - RoIsApiContractPresent(name.into_param().abi(), majorversion, minorversion, &mut result__).map(|| result__) + RoIsApiContractPresent(name.param().abi(), majorversion, minorversion, &mut result__).map(|| result__) } #[inline] pub unsafe fn RoParameterizedTypeExtraGetTypeSignature(extra: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll" "system" fn RoParameterizedTypeExtraGetTypeSignature(extra : super:: ROPARAMIIDHANDLE) -> windows_core::PCSTR); - RoParameterizedTypeExtraGetTypeSignature(extra.into_param().abi()) + RoParameterizedTypeExtraGetTypeSignature(extra.param().abi()) } #[inline] pub unsafe fn RoParseTypeName(typename: &windows_core::HSTRING, partscount: *mut u32, typenameparts: *mut *mut windows_core::HSTRING) -> windows_core::Result<()> { @@ -92,9 +92,9 @@ windows_core::imp::interface_hierarchy!(ICeeGen, windows_core::IUnknown); impl ICeeGen { pub unsafe fn EmitString(&self, lpstring: P0, rva: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EmitString)(windows_core::Interface::as_raw(self), lpstring.into_param().abi(), rva).ok() + (windows_core::Interface::vtable(self).EmitString)(windows_core::Interface::as_raw(self), lpstring.param().abi(), 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), rva, core::mem::transmute(lpstring.unwrap_or(std::ptr::null_mut()))).ok() @@ -123,9 +123,9 @@ impl ICeeGen { } pub unsafe fn GetSectionCreate(&self, name: P0, flags: u32, section: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSectionCreate)(windows_core::Interface::as_raw(self), name.into_param().abi(), flags, section).ok() + (windows_core::Interface::vtable(self).GetSectionCreate)(windows_core::Interface::as_raw(self), name.param().abi(), flags, 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), section, datalen).ok() @@ -191,45 +191,45 @@ windows_core::imp::interface_hierarchy!(IMetaDataAssemblyEmit, windows_core::IUn impl IMetaDataAssemblyEmit { pub unsafe fn DefineAssembly(&self, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: P0, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32, pma: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineAssembly)(windows_core::Interface::as_raw(self), pbpublickey, cbpublickey, ulhashalgid, szname.into_param().abi(), pmetadata, dwassemblyflags, pma).ok() + (windows_core::Interface::vtable(self).DefineAssembly)(windows_core::Interface::as_raw(self), pbpublickey, cbpublickey, ulhashalgid, szname.param().abi(), pmetadata, dwassemblyflags, pma).ok() } pub unsafe fn DefineAssemblyRef(&self, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: P0, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32, pmdar: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineAssemblyRef)(windows_core::Interface::as_raw(self), pbpublickeyortoken, cbpublickeyortoken, szname.into_param().abi(), pmetadata, pbhashvalue, cbhashvalue, dwassemblyrefflags, pmdar).ok() + (windows_core::Interface::vtable(self).DefineAssemblyRef)(windows_core::Interface::as_raw(self), pbpublickeyortoken, cbpublickeyortoken, szname.param().abi(), pmetadata, pbhashvalue, cbhashvalue, dwassemblyrefflags, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineFile)(windows_core::Interface::as_raw(self), szname.into_param().abi(), pbhashvalue, cbhashvalue, dwfileflags, pmdf).ok() + (windows_core::Interface::vtable(self).DefineFile)(windows_core::Interface::as_raw(self), szname.param().abi(), pbhashvalue, cbhashvalue, dwfileflags, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineExportedType)(windows_core::Interface::as_raw(self), szname.into_param().abi(), tkimplementation, tktypedef, dwexportedtypeflags, pmdct).ok() + (windows_core::Interface::vtable(self).DefineExportedType)(windows_core::Interface::as_raw(self), szname.param().abi(), tkimplementation, tktypedef, dwexportedtypeflags, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineManifestResource)(windows_core::Interface::as_raw(self), szname.into_param().abi(), tkimplementation, dwoffset, dwresourceflags, pmdmr).ok() + (windows_core::Interface::vtable(self).DefineManifestResource)(windows_core::Interface::as_raw(self), szname.param().abi(), tkimplementation, dwoffset, dwresourceflags, pmdmr).ok() } pub unsafe fn SetAssemblyProps(&self, pma: u32, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: P0, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAssemblyProps)(windows_core::Interface::as_raw(self), pma, pbpublickey, cbpublickey, ulhashalgid, szname.into_param().abi(), pmetadata, 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: P0, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAssemblyRefProps)(windows_core::Interface::as_raw(self), ar, pbpublickeyortoken, cbpublickeyortoken, szname.into_param().abi(), pmetadata, pbhashvalue, cbhashvalue, 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), file, pbhashvalue, cbhashvalue, dwfileflags).ok() @@ -290,26 +290,26 @@ impl IMetaDataAssemblyImport { } pub unsafe fn FindExportedTypeByName(&self, szname: P0, mdtexportedtype: u32, ptkexportedtype: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindExportedTypeByName)(windows_core::Interface::as_raw(self), szname.into_param().abi(), mdtexportedtype, ptkexportedtype).ok() + (windows_core::Interface::vtable(self).FindExportedTypeByName)(windows_core::Interface::as_raw(self), szname.param().abi(), mdtexportedtype, ptkexportedtype).ok() } pub unsafe fn FindManifestResourceByName(&self, szname: P0, ptkmanifestresource: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindManifestResourceByName)(windows_core::Interface::as_raw(self), szname.into_param().abi(), ptkmanifestresource).ok() + (windows_core::Interface::vtable(self).FindManifestResourceByName)(windows_core::Interface::as_raw(self), szname.param().abi(), ptkmanifestresource).ok() } pub unsafe fn CloseEnum(&self, henum: *mut core::ffi::c_void) { (windows_core::Interface::vtable(self).CloseEnum)(windows_core::Interface::as_raw(self), henum) } pub unsafe fn FindAssembliesByName(&self, szappbase: P0, szprivatebin: P1, szassemblyname: P2, ppiunk: *mut Option, cmax: u32, pcassemblies: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindAssembliesByName)(windows_core::Interface::as_raw(self), szappbase.into_param().abi(), szprivatebin.into_param().abi(), szassemblyname.into_param().abi(), core::mem::transmute(ppiunk), cmax, 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, pcassemblies).ok() } } #[repr(C)] @@ -339,10 +339,10 @@ impl IMetaDataDispenser { } pub unsafe fn OpenScope(&self, szscope: P0, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenScope)(windows_core::Interface::as_raw(self), szscope.into_param().abi(), dwopenflags, 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__ = std::mem::zeroed(); @@ -365,10 +365,10 @@ impl IMetaDataDispenserEx { } pub unsafe fn OpenScope(&self, szscope: P0, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OpenScope)(windows_core::Interface::as_raw(self), szscope.into_param().abi(), dwopenflags, riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -383,33 +383,33 @@ impl IMetaDataDispenserEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn OpenScopeOnITypeInfo(&self, piti: P0, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenScopeOnITypeInfo)(windows_core::Interface::as_raw(self), piti.into_param().abi(), dwopenflags, 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()), pchbuffer).ok() } pub unsafe fn FindAssembly(&self, szappbase: P0, szprivatebin: P1, szglobalbin: P2, szassemblyname: P3, szname: P4, cchname: u32, pcname: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).FindAssembly)(windows_core::Interface::as_raw(self), szappbase.into_param().abi(), szprivatebin.into_param().abi(), szglobalbin.into_param().abi(), szassemblyname.into_param().abi(), szname.into_param().abi(), cchname, 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, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).FindAssemblyModule)(windows_core::Interface::as_raw(self), szappbase.into_param().abi(), szprivatebin.into_param().abi(), szglobalbin.into_param().abi(), szassemblyname.into_param().abi(), szmodulename.into_param().abi(), 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()), pcname).ok() + (windows_core::Interface::vtable(self).FindAssemblyModule)(windows_core::Interface::as_raw(self), szappbase.param().abi(), szprivatebin.param().abi(), szglobalbin.param().abi(), szassemblyname.param().abi(), szmodulename.param().abi(), 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()), pcname).ok() } } #[repr(C)] @@ -430,86 +430,86 @@ windows_core::imp::interface_hierarchy!(IMetaDataEmit, windows_core::IUnknown); impl IMetaDataEmit { pub unsafe fn SetModuleProps(&self, szname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModuleProps)(windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetModuleProps)(windows_core::Interface::as_raw(self), szname.param().abi()).ok() } pub unsafe fn Save(&self, szfile: P0, dwsaveflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), szfile.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveToStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), 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), fsave, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineTypeDef)(windows_core::Interface::as_raw(self), sztypedef.into_param().abi(), dwtypedefflags, tkextends, rtkimplements, ptd).ok() + (windows_core::Interface::vtable(self).DefineTypeDef)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), dwtypedefflags, tkextends, rtkimplements, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineNestedType)(windows_core::Interface::as_raw(self), sztypedef.into_param().abi(), dwtypedefflags, tkextends, rtkimplements, tdencloser, ptd).ok() + (windows_core::Interface::vtable(self).DefineNestedType)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), dwtypedefflags, tkextends, rtkimplements, tdencloser, ptd).ok() } pub unsafe fn SetHandler(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHandler)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHandler)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn DefineMethod(&self, td: u32, szname: P0, dwmethodflags: u32, pvsigblob: *mut u8, cbsigblob: u32, ulcoderva: u32, dwimplflags: u32, pmd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineMethod)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), dwmethodflags, pvsigblob, cbsigblob, ulcoderva, dwimplflags, pmd).ok() + (windows_core::Interface::vtable(self).DefineMethod)(windows_core::Interface::as_raw(self), td, szname.param().abi(), dwmethodflags, pvsigblob, cbsigblob, ulcoderva, dwimplflags, 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), td, tkbody, tkdecl).ok() } pub unsafe fn DefineTypeRefByName(&self, tkresolutionscope: u32, szname: P0, ptr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineTypeRefByName)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.into_param().abi(), ptr).ok() + (windows_core::Interface::vtable(self).DefineTypeRefByName)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.param().abi(), ptr).ok() } pub unsafe fn DefineImportType(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: P1, tdimport: u32, passememit: P2, ptr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineImportType)(windows_core::Interface::as_raw(self), passemimport.into_param().abi(), pbhashvalue, cbhashvalue, pimport.into_param().abi(), tdimport, passememit.into_param().abi(), 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(), ptr).ok() } pub unsafe fn DefineMemberRef(&self, tkimport: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineMemberRef)(windows_core::Interface::as_raw(self), tkimport, szname.into_param().abi(), pvsigblob, cbsigblob, pmr).ok() + (windows_core::Interface::vtable(self).DefineMemberRef)(windows_core::Interface::as_raw(self), tkimport, szname.param().abi(), pvsigblob, cbsigblob, pmr).ok() } pub unsafe fn DefineImportMember(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: P1, mbmember: u32, passememit: P2, tkparent: u32, pmr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineImportMember)(windows_core::Interface::as_raw(self), passemimport.into_param().abi(), pbhashvalue, cbhashvalue, pimport.into_param().abi(), mbmember, passememit.into_param().abi(), tkparent, 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, pmr).ok() } pub unsafe fn DefineEvent(&self, td: u32, szevent: P0, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32, pmdevent: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineEvent)(windows_core::Interface::as_raw(self), td, szevent.into_param().abi(), dweventflags, tkeventtype, mdaddon, mdremoveon, mdfire, rmdothermethods, pmdevent).ok() + (windows_core::Interface::vtable(self).DefineEvent)(windows_core::Interface::as_raw(self), td, szevent.param().abi(), dweventflags, tkeventtype, mdaddon, mdremoveon, mdfire, rmdothermethods, 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), td, dwpacksize, rfieldoffsets, ulclasssize).ok() @@ -534,9 +534,9 @@ impl IMetaDataEmit { } pub unsafe fn DefineModuleRef(&self, szname: P0, pmur: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineModuleRef)(windows_core::Interface::as_raw(self), szname.into_param().abi(), pmur).ok() + (windows_core::Interface::vtable(self).DefineModuleRef)(windows_core::Interface::as_raw(self), szname.param().abi(), 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), mr, tk).ok() @@ -549,9 +549,9 @@ impl IMetaDataEmit { } pub unsafe fn DefineUserString(&self, szstring: P0, cchstring: u32, pstk: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineUserString)(windows_core::Interface::as_raw(self), szstring.into_param().abi(), cchstring, pstk).ok() + (windows_core::Interface::vtable(self).DefineUserString)(windows_core::Interface::as_raw(self), szstring.param().abi(), cchstring, pstk).ok() } pub unsafe fn DeleteToken(&self, tkobj: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteToken)(windows_core::Interface::as_raw(self), tkobj).ok() @@ -570,15 +570,15 @@ impl IMetaDataEmit { } pub unsafe fn DefinePinvokeMap(&self, tk: u32, dwmappingflags: u32, szimportname: P0, mrimportdll: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefinePinvokeMap)(windows_core::Interface::as_raw(self), tk, dwmappingflags, szimportname.into_param().abi(), 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: P0, mrimportdll: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPinvokeMap)(windows_core::Interface::as_raw(self), tk, dwmappingflags, szimportname.into_param().abi(), 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), tk).ok() @@ -591,21 +591,21 @@ impl IMetaDataEmit { } pub unsafe fn DefineField(&self, td: u32, szname: P0, dwfieldflags: u32, pvsigblob: *mut u8, cbsigblob: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, pmd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineField)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), dwfieldflags, pvsigblob, cbsigblob, dwcplustypeflag, pvalue, cchvalue, pmd).ok() + (windows_core::Interface::vtable(self).DefineField)(windows_core::Interface::as_raw(self), td, szname.param().abi(), dwfieldflags, pvsigblob, cbsigblob, dwcplustypeflag, pvalue, cchvalue, pmd).ok() } pub unsafe fn DefineProperty(&self, td: u32, szproperty: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineProperty)(windows_core::Interface::as_raw(self), td, szproperty.into_param().abi(), dwpropflags, pvsig, cbsig, dwcplustypeflag, pvalue, cchvalue, mdsetter, mdgetter, rmdothermethods, pmdprop).ok() + (windows_core::Interface::vtable(self).DefineProperty)(windows_core::Interface::as_raw(self), td, szproperty.param().abi(), dwpropflags, pvsig, cbsig, dwcplustypeflag, pvalue, cchvalue, mdsetter, mdgetter, rmdothermethods, pmdprop).ok() } pub unsafe fn DefineParam(&self, md: u32, ulparamseq: u32, szname: P0, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, ppd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineParam)(windows_core::Interface::as_raw(self), md, ulparamseq, szname.into_param().abi(), dwparamflags, dwcplustypeflag, pvalue, cchvalue, ppd).ok() + (windows_core::Interface::vtable(self).DefineParam)(windows_core::Interface::as_raw(self), md, ulparamseq, szname.param().abi(), dwparamflags, dwcplustypeflag, pvalue, cchvalue, 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), fd, dwfieldflags, dwcplustypeflag, pvalue, cchvalue).ok() @@ -615,27 +615,27 @@ impl IMetaDataEmit { } pub unsafe fn SetParamProps(&self, pd: u32, szname: P0, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParamProps)(windows_core::Interface::as_raw(self), pd, szname.into_param().abi(), dwparamflags, dwcplustypeflag, pvalue, 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), tkobj, rsecattrs, csecattrs, pulerrorattr).ok() } pub unsafe fn ApplyEditAndContinue(&self, pimport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyEditAndContinue)(windows_core::Interface::as_raw(self), pimport.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyEditAndContinue)(windows_core::Interface::as_raw(self), pimport.param().abi()).ok() } pub unsafe fn TranslateSigWithScope(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, import: P1, pbsigblob: *mut u8, cbsigblob: u32, passememit: P2, emit: P3, pvtranslatedsig: *mut u8, cbtranslatedsigmax: u32, pcbtranslatedsig: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).TranslateSigWithScope)(windows_core::Interface::as_raw(self), passemimport.into_param().abi(), pbhashvalue, cbhashvalue, import.into_param().abi(), pbsigblob, cbsigblob, passememit.into_param().abi(), emit.into_param().abi(), pvtranslatedsig, cbtranslatedsigmax, pcbtranslatedsig).ok() + (windows_core::Interface::vtable(self).TranslateSigWithScope)(windows_core::Interface::as_raw(self), passemimport.param().abi(), pbhashvalue, cbhashvalue, import.param().abi(), pbsigblob, cbsigblob, passememit.param().abi(), emit.param().abi(), pvtranslatedsig, cbtranslatedsigmax, 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), md, dwimplflags).ok() @@ -645,11 +645,11 @@ impl IMetaDataEmit { } pub unsafe fn Merge(&self, pimport: P0, phostmaptoken: P1, phandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), pimport.into_param().abi(), phostmaptoken.into_param().abi(), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), pimport.param().abi(), phostmaptoken.param().abi(), phandler.param().abi()).ok() } pub unsafe fn MergeEnd(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MergeEnd)(windows_core::Interface::as_raw(self)).ok() @@ -716,86 +716,86 @@ windows_core::imp::interface_hierarchy!(IMetaDataEmit2, windows_core::IUnknown, impl IMetaDataEmit2 { pub unsafe fn SetModuleProps(&self, szname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetModuleProps)(windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetModuleProps)(windows_core::Interface::as_raw(self), szname.param().abi()).ok() } pub unsafe fn Save(&self, szfile: P0, dwsaveflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), szfile.into_param().abi(), dwsaveflags).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SaveToStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), dwsaveflags).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetSaveSize)(windows_core::Interface::as_raw(self), fsave, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineTypeDef)(windows_core::Interface::as_raw(self), sztypedef.into_param().abi(), dwtypedefflags, tkextends, rtkimplements, ptd).ok() + (windows_core::Interface::vtable(self).base__.DefineTypeDef)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), dwtypedefflags, tkextends, rtkimplements, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineNestedType)(windows_core::Interface::as_raw(self), sztypedef.into_param().abi(), dwtypedefflags, tkextends, rtkimplements, tdencloser, ptd).ok() + (windows_core::Interface::vtable(self).base__.DefineNestedType)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), dwtypedefflags, tkextends, rtkimplements, tdencloser, ptd).ok() } pub unsafe fn SetHandler(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHandler)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHandler)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn DefineMethod(&self, td: u32, szname: P0, dwmethodflags: u32, pvsigblob: *mut u8, cbsigblob: u32, ulcoderva: u32, dwimplflags: u32, pmd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineMethod)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), dwmethodflags, pvsigblob, cbsigblob, ulcoderva, dwimplflags, pmd).ok() + (windows_core::Interface::vtable(self).base__.DefineMethod)(windows_core::Interface::as_raw(self), td, szname.param().abi(), dwmethodflags, pvsigblob, cbsigblob, ulcoderva, dwimplflags, pmd).ok() } pub unsafe fn DefineMethodImpl(&self, td: u32, tkbody: u32, tkdecl: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DefineMethodImpl)(windows_core::Interface::as_raw(self), td, tkbody, tkdecl).ok() } pub unsafe fn DefineTypeRefByName(&self, tkresolutionscope: u32, szname: P0, ptr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineTypeRefByName)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.into_param().abi(), ptr).ok() + (windows_core::Interface::vtable(self).base__.DefineTypeRefByName)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.param().abi(), ptr).ok() } pub unsafe fn DefineImportType(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: P1, tdimport: u32, passememit: P2, ptr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineImportType)(windows_core::Interface::as_raw(self), passemimport.into_param().abi(), pbhashvalue, cbhashvalue, pimport.into_param().abi(), tdimport, passememit.into_param().abi(), ptr).ok() + (windows_core::Interface::vtable(self).base__.DefineImportType)(windows_core::Interface::as_raw(self), passemimport.param().abi(), pbhashvalue, cbhashvalue, pimport.param().abi(), tdimport, passememit.param().abi(), ptr).ok() } pub unsafe fn DefineMemberRef(&self, tkimport: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineMemberRef)(windows_core::Interface::as_raw(self), tkimport, szname.into_param().abi(), pvsigblob, cbsigblob, pmr).ok() + (windows_core::Interface::vtable(self).base__.DefineMemberRef)(windows_core::Interface::as_raw(self), tkimport, szname.param().abi(), pvsigblob, cbsigblob, pmr).ok() } pub unsafe fn DefineImportMember(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: P1, mbmember: u32, passememit: P2, tkparent: u32, pmr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineImportMember)(windows_core::Interface::as_raw(self), passemimport.into_param().abi(), pbhashvalue, cbhashvalue, pimport.into_param().abi(), mbmember, passememit.into_param().abi(), tkparent, pmr).ok() + (windows_core::Interface::vtable(self).base__.DefineImportMember)(windows_core::Interface::as_raw(self), passemimport.param().abi(), pbhashvalue, cbhashvalue, pimport.param().abi(), mbmember, passememit.param().abi(), tkparent, pmr).ok() } pub unsafe fn DefineEvent(&self, td: u32, szevent: P0, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32, pmdevent: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineEvent)(windows_core::Interface::as_raw(self), td, szevent.into_param().abi(), dweventflags, tkeventtype, mdaddon, mdremoveon, mdfire, rmdothermethods, pmdevent).ok() + (windows_core::Interface::vtable(self).base__.DefineEvent)(windows_core::Interface::as_raw(self), td, szevent.param().abi(), dweventflags, tkeventtype, mdaddon, mdremoveon, mdfire, rmdothermethods, 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).base__.SetClassLayout)(windows_core::Interface::as_raw(self), td, dwpacksize, rfieldoffsets, ulclasssize).ok() @@ -820,9 +820,9 @@ impl IMetaDataEmit2 { } pub unsafe fn DefineModuleRef(&self, szname: P0, pmur: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineModuleRef)(windows_core::Interface::as_raw(self), szname.into_param().abi(), pmur).ok() + (windows_core::Interface::vtable(self).base__.DefineModuleRef)(windows_core::Interface::as_raw(self), szname.param().abi(), pmur).ok() } pub unsafe fn SetParent(&self, mr: u32, tk: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetParent)(windows_core::Interface::as_raw(self), mr, tk).ok() @@ -835,9 +835,9 @@ impl IMetaDataEmit2 { } pub unsafe fn DefineUserString(&self, szstring: P0, cchstring: u32, pstk: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineUserString)(windows_core::Interface::as_raw(self), szstring.into_param().abi(), cchstring, pstk).ok() + (windows_core::Interface::vtable(self).base__.DefineUserString)(windows_core::Interface::as_raw(self), szstring.param().abi(), cchstring, pstk).ok() } pub unsafe fn DeleteToken(&self, tkobj: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.DeleteToken)(windows_core::Interface::as_raw(self), tkobj).ok() @@ -856,15 +856,15 @@ impl IMetaDataEmit2 { } pub unsafe fn DefinePinvokeMap(&self, tk: u32, dwmappingflags: u32, szimportname: P0, mrimportdll: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefinePinvokeMap)(windows_core::Interface::as_raw(self), tk, dwmappingflags, szimportname.into_param().abi(), mrimportdll).ok() + (windows_core::Interface::vtable(self).base__.DefinePinvokeMap)(windows_core::Interface::as_raw(self), tk, dwmappingflags, szimportname.param().abi(), mrimportdll).ok() } pub unsafe fn SetPinvokeMap(&self, tk: u32, dwmappingflags: u32, szimportname: P0, mrimportdll: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPinvokeMap)(windows_core::Interface::as_raw(self), tk, dwmappingflags, szimportname.into_param().abi(), mrimportdll).ok() + (windows_core::Interface::vtable(self).base__.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).base__.DeletePinvokeMap)(windows_core::Interface::as_raw(self), tk).ok() @@ -877,21 +877,21 @@ impl IMetaDataEmit2 { } pub unsafe fn DefineField(&self, td: u32, szname: P0, dwfieldflags: u32, pvsigblob: *mut u8, cbsigblob: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, pmd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineField)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), dwfieldflags, pvsigblob, cbsigblob, dwcplustypeflag, pvalue, cchvalue, pmd).ok() + (windows_core::Interface::vtable(self).base__.DefineField)(windows_core::Interface::as_raw(self), td, szname.param().abi(), dwfieldflags, pvsigblob, cbsigblob, dwcplustypeflag, pvalue, cchvalue, pmd).ok() } pub unsafe fn DefineProperty(&self, td: u32, szproperty: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineProperty)(windows_core::Interface::as_raw(self), td, szproperty.into_param().abi(), dwpropflags, pvsig, cbsig, dwcplustypeflag, pvalue, cchvalue, mdsetter, mdgetter, rmdothermethods, pmdprop).ok() + (windows_core::Interface::vtable(self).base__.DefineProperty)(windows_core::Interface::as_raw(self), td, szproperty.param().abi(), dwpropflags, pvsig, cbsig, dwcplustypeflag, pvalue, cchvalue, mdsetter, mdgetter, rmdothermethods, pmdprop).ok() } pub unsafe fn DefineParam(&self, md: u32, ulparamseq: u32, szname: P0, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, ppd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DefineParam)(windows_core::Interface::as_raw(self), md, ulparamseq, szname.into_param().abi(), dwparamflags, dwcplustypeflag, pvalue, cchvalue, ppd).ok() + (windows_core::Interface::vtable(self).base__.DefineParam)(windows_core::Interface::as_raw(self), md, ulparamseq, szname.param().abi(), dwparamflags, dwcplustypeflag, pvalue, cchvalue, 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).base__.SetFieldProps)(windows_core::Interface::as_raw(self), fd, dwfieldflags, dwcplustypeflag, pvalue, cchvalue).ok() @@ -901,27 +901,27 @@ impl IMetaDataEmit2 { } pub unsafe fn SetParamProps(&self, pd: u32, szname: P0, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetParamProps)(windows_core::Interface::as_raw(self), pd, szname.into_param().abi(), dwparamflags, dwcplustypeflag, pvalue, cchvalue).ok() + (windows_core::Interface::vtable(self).base__.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).base__.DefineSecurityAttributeSet)(windows_core::Interface::as_raw(self), tkobj, rsecattrs, csecattrs, pulerrorattr).ok() } pub unsafe fn ApplyEditAndContinue(&self, pimport: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ApplyEditAndContinue)(windows_core::Interface::as_raw(self), pimport.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ApplyEditAndContinue)(windows_core::Interface::as_raw(self), pimport.param().abi()).ok() } pub unsafe fn TranslateSigWithScope(&self, passemimport: P0, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, import: P1, pbsigblob: *mut u8, cbsigblob: u32, passememit: P2, emit: P3, pvtranslatedsig: *mut u8, cbtranslatedsigmax: u32, pcbtranslatedsig: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TranslateSigWithScope)(windows_core::Interface::as_raw(self), passemimport.into_param().abi(), pbhashvalue, cbhashvalue, import.into_param().abi(), pbsigblob, cbsigblob, passememit.into_param().abi(), emit.into_param().abi(), pvtranslatedsig, cbtranslatedsigmax, pcbtranslatedsig).ok() + (windows_core::Interface::vtable(self).base__.TranslateSigWithScope)(windows_core::Interface::as_raw(self), passemimport.param().abi(), pbhashvalue, cbhashvalue, import.param().abi(), pbsigblob, cbsigblob, passememit.param().abi(), emit.param().abi(), pvtranslatedsig, cbtranslatedsigmax, pcbtranslatedsig).ok() } pub unsafe fn SetMethodImplFlags(&self, md: u32, dwimplflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetMethodImplFlags)(windows_core::Interface::as_raw(self), md, dwimplflags).ok() @@ -931,11 +931,11 @@ impl IMetaDataEmit2 { } pub unsafe fn Merge(&self, pimport: P0, phostmaptoken: P1, phandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), pimport.into_param().abi(), phostmaptoken.into_param().abi(), phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), pimport.param().abi(), phostmaptoken.param().abi(), phandler.param().abi()).ok() } pub unsafe fn MergeEnd(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.MergeEnd)(windows_core::Interface::as_raw(self)).ok() @@ -948,31 +948,31 @@ impl IMetaDataEmit2 { } pub unsafe fn SaveDelta(&self, szfile: P0, dwsaveflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDelta)(windows_core::Interface::as_raw(self), szfile.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveDeltaToStream)(windows_core::Interface::as_raw(self), pistream.into_param().abi(), 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), pbdata, cbdata).ok() } pub unsafe fn DefineGenericParam(&self, tk: u32, ulparamseq: u32, dwparamflags: u32, szname: P0, reserved: u32, rtkconstraints: *mut u32, pgp: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DefineGenericParam)(windows_core::Interface::as_raw(self), tk, ulparamseq, dwparamflags, szname.into_param().abi(), reserved, rtkconstraints, pgp).ok() + (windows_core::Interface::vtable(self).DefineGenericParam)(windows_core::Interface::as_raw(self), tk, ulparamseq, dwparamflags, szname.param().abi(), reserved, rtkconstraints, pgp).ok() } pub unsafe fn SetGenericParamProps(&self, gp: u32, dwparamflags: u32, szname: P0, reserved: u32, rtkconstraints: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGenericParamProps)(windows_core::Interface::as_raw(self), gp, dwparamflags, szname.into_param().abi(), reserved, rtkconstraints).ok() + (windows_core::Interface::vtable(self).SetGenericParamProps)(windows_core::Interface::as_raw(self), gp, dwparamflags, szname.param().abi(), reserved, rtkconstraints).ok() } pub unsafe fn ResetENCLog(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetENCLog)(windows_core::Interface::as_raw(self)).ok() @@ -1048,9 +1048,9 @@ impl IMetaDataImport { } pub unsafe fn FindTypeDefByName(&self, sztypedef: P0, tkenclosingclass: u32, ptd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindTypeDefByName)(windows_core::Interface::as_raw(self), sztypedef.into_param().abi(), tkenclosingclass, ptd).ok() + (windows_core::Interface::vtable(self).FindTypeDefByName)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), tkenclosingclass, 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()), pchname, pmvid).ok() @@ -1075,27 +1075,27 @@ impl IMetaDataImport { } pub unsafe fn EnumMembersWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P0, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumMembersWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.into_param().abi(), rmembers, cmax, pctokens).ok() + (windows_core::Interface::vtable(self).EnumMembersWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.param().abi(), rmembers, cmax, 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), phenum, cl, rmethods, cmax, pctokens).ok() } pub unsafe fn EnumMethodsWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P0, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumMethodsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.into_param().abi(), rmethods, cmax, pctokens).ok() + (windows_core::Interface::vtable(self).EnumMethodsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.param().abi(), rmethods, cmax, 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), phenum, cl, rfields, cmax, pctokens).ok() } pub unsafe fn EnumFieldsWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P0, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumFieldsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.into_param().abi(), rfields, cmax, pctokens).ok() + (windows_core::Interface::vtable(self).EnumFieldsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.param().abi(), rfields, cmax, 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), phenum, mb, rparams, cmax, pctokens).ok() @@ -1111,27 +1111,27 @@ impl IMetaDataImport { } pub unsafe fn FindMember(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindMember)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmb).ok() + (windows_core::Interface::vtable(self).FindMember)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, pmb).ok() } pub unsafe fn FindMethod(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindMethod)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmb).ok() + (windows_core::Interface::vtable(self).FindMethod)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, pmb).ok() } pub unsafe fn FindField(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindField)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmb).ok() + (windows_core::Interface::vtable(self).FindField)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, pmb).ok() } pub unsafe fn FindMemberRef(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindMemberRef)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmr).ok() + (windows_core::Interface::vtable(self).FindMemberRef)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, 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), mb, 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()), pchmethod, pdwattr, ppvsigblob, pcbsigblob, pulcoderva, pdwimplflags).ok() @@ -1147,9 +1147,9 @@ impl IMetaDataImport { } pub unsafe fn GetEventProps(&self, ev: u32, pclass: *mut u32, szevent: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEventProps)(windows_core::Interface::as_raw(self), ev, pclass, szevent.into_param().abi(), cchevent, pchevent, pdweventflags, ptkeventtype, pmdaddon, pmdremoveon, pmdfire, rmdothermethod, cmax, pcothermethod).ok() + (windows_core::Interface::vtable(self).GetEventProps)(windows_core::Interface::as_raw(self), ev, pclass, szevent.param().abi(), cchevent, pchevent, pdweventflags, ptkeventtype, pmdaddon, pmdremoveon, pmdfire, rmdothermethod, cmax, 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), phenum, mb, reventprop, cmax, pceventprop).ok() @@ -1213,9 +1213,9 @@ impl IMetaDataImport { } pub unsafe fn FindTypeRef(&self, tkresolutionscope: u32, szname: P0, ptr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindTypeRef)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.into_param().abi(), ptr).ok() + (windows_core::Interface::vtable(self).FindTypeRef)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.param().abi(), 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), mb, 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()), pchmember, pdwattr, ppvsigblob, pcbsigblob, pulcoderva, pdwimplflags, pdwcplustypeflag, ppvalue, pcchvalue).ok() @@ -1225,18 +1225,18 @@ impl IMetaDataImport { } pub unsafe fn GetPropertyProps(&self, prop: u32, pclass: *mut u32, szproperty: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyProps)(windows_core::Interface::as_raw(self), prop, pclass, szproperty.into_param().abi(), cchproperty, pchproperty, pdwpropflags, ppvsig, pbsig, pdwcplustypeflag, ppdefaultvalue, pcchdefaultvalue, pmdsetter, pmdgetter, rmdothermethod, cmax, pcothermethod).ok() + (windows_core::Interface::vtable(self).GetPropertyProps)(windows_core::Interface::as_raw(self), prop, pclass, szproperty.param().abi(), cchproperty, pchproperty, pdwpropflags, ppvsig, pbsig, pdwcplustypeflag, ppdefaultvalue, pcchdefaultvalue, pmdsetter, pmdgetter, rmdothermethod, cmax, 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), tk, pmd, 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()), pchname, pdwattr, pdwcplustypeflag, ppvalue, pcchvalue).ok() } pub unsafe fn GetCustomAttributeByName(&self, tkobj: u32, szname: P0, ppdata: *const *const core::ffi::c_void, pcbdata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCustomAttributeByName)(windows_core::Interface::as_raw(self), tkobj, szname.into_param().abi(), ppdata, pcbdata).ok() + (windows_core::Interface::vtable(self).GetCustomAttributeByName)(windows_core::Interface::as_raw(self), tkobj, szname.param().abi(), ppdata, 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), tk) @@ -1340,9 +1340,9 @@ impl IMetaDataImport2 { } pub unsafe fn FindTypeDefByName(&self, sztypedef: P0, tkenclosingclass: u32, ptd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindTypeDefByName)(windows_core::Interface::as_raw(self), sztypedef.into_param().abi(), tkenclosingclass, ptd).ok() + (windows_core::Interface::vtable(self).base__.FindTypeDefByName)(windows_core::Interface::as_raw(self), sztypedef.param().abi(), tkenclosingclass, 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).base__.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()), pchname, pmvid).ok() @@ -1367,27 +1367,27 @@ impl IMetaDataImport2 { } pub unsafe fn EnumMembersWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P0, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumMembersWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.into_param().abi(), rmembers, cmax, pctokens).ok() + (windows_core::Interface::vtable(self).base__.EnumMembersWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.param().abi(), rmembers, cmax, 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).base__.EnumMethods)(windows_core::Interface::as_raw(self), phenum, cl, rmethods, cmax, pctokens).ok() } pub unsafe fn EnumMethodsWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P0, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumMethodsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.into_param().abi(), rmethods, cmax, pctokens).ok() + (windows_core::Interface::vtable(self).base__.EnumMethodsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.param().abi(), rmethods, cmax, 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).base__.EnumFields)(windows_core::Interface::as_raw(self), phenum, cl, rfields, cmax, pctokens).ok() } pub unsafe fn EnumFieldsWithName(&self, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: P0, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumFieldsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.into_param().abi(), rfields, cmax, pctokens).ok() + (windows_core::Interface::vtable(self).base__.EnumFieldsWithName)(windows_core::Interface::as_raw(self), phenum, cl, szname.param().abi(), rfields, cmax, 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).base__.EnumParams)(windows_core::Interface::as_raw(self), phenum, mb, rparams, cmax, pctokens).ok() @@ -1403,27 +1403,27 @@ impl IMetaDataImport2 { } pub unsafe fn FindMember(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindMember)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmb).ok() + (windows_core::Interface::vtable(self).base__.FindMember)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, pmb).ok() } pub unsafe fn FindMethod(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindMethod)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmb).ok() + (windows_core::Interface::vtable(self).base__.FindMethod)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, pmb).ok() } pub unsafe fn FindField(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindField)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmb).ok() + (windows_core::Interface::vtable(self).base__.FindField)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, pmb).ok() } pub unsafe fn FindMemberRef(&self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindMemberRef)(windows_core::Interface::as_raw(self), td, szname.into_param().abi(), pvsigblob, cbsigblob, pmr).ok() + (windows_core::Interface::vtable(self).base__.FindMemberRef)(windows_core::Interface::as_raw(self), td, szname.param().abi(), pvsigblob, cbsigblob, 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).base__.GetMethodProps)(windows_core::Interface::as_raw(self), mb, 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()), pchmethod, pdwattr, ppvsigblob, pcbsigblob, pulcoderva, pdwimplflags).ok() @@ -1439,9 +1439,9 @@ impl IMetaDataImport2 { } pub unsafe fn GetEventProps(&self, ev: u32, pclass: *mut u32, szevent: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetEventProps)(windows_core::Interface::as_raw(self), ev, pclass, szevent.into_param().abi(), cchevent, pchevent, pdweventflags, ptkeventtype, pmdaddon, pmdremoveon, pmdfire, rmdothermethod, cmax, pcothermethod).ok() + (windows_core::Interface::vtable(self).base__.GetEventProps)(windows_core::Interface::as_raw(self), ev, pclass, szevent.param().abi(), cchevent, pchevent, pdweventflags, ptkeventtype, pmdaddon, pmdremoveon, pmdfire, rmdothermethod, cmax, 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).base__.EnumMethodSemantics)(windows_core::Interface::as_raw(self), phenum, mb, reventprop, cmax, pceventprop).ok() @@ -1505,9 +1505,9 @@ impl IMetaDataImport2 { } pub unsafe fn FindTypeRef(&self, tkresolutionscope: u32, szname: P0, ptr: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindTypeRef)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.into_param().abi(), ptr).ok() + (windows_core::Interface::vtable(self).base__.FindTypeRef)(windows_core::Interface::as_raw(self), tkresolutionscope, szname.param().abi(), 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).base__.GetMemberProps)(windows_core::Interface::as_raw(self), mb, 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()), pchmember, pdwattr, ppvsigblob, pcbsigblob, pulcoderva, pdwimplflags, pdwcplustypeflag, ppvalue, pcchvalue).ok() @@ -1517,18 +1517,18 @@ impl IMetaDataImport2 { } pub unsafe fn GetPropertyProps(&self, prop: u32, pclass: *mut u32, szproperty: P0, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetPropertyProps)(windows_core::Interface::as_raw(self), prop, pclass, szproperty.into_param().abi(), cchproperty, pchproperty, pdwpropflags, ppvsig, pbsig, pdwcplustypeflag, ppdefaultvalue, pcchdefaultvalue, pmdsetter, pmdgetter, rmdothermethod, cmax, pcothermethod).ok() + (windows_core::Interface::vtable(self).base__.GetPropertyProps)(windows_core::Interface::as_raw(self), prop, pclass, szproperty.param().abi(), cchproperty, pchproperty, pdwpropflags, ppvsig, pbsig, pdwcplustypeflag, ppdefaultvalue, pcchdefaultvalue, pmdsetter, pmdgetter, rmdothermethod, cmax, 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).base__.GetParamProps)(windows_core::Interface::as_raw(self), tk, pmd, 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()), pchname, pdwattr, pdwcplustypeflag, ppvalue, pcchvalue).ok() } pub unsafe fn GetCustomAttributeByName(&self, tkobj: u32, szname: P0, ppdata: *const *const core::ffi::c_void, pcbdata: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetCustomAttributeByName)(windows_core::Interface::as_raw(self), tkobj, szname.into_param().abi(), ppdata, pcbdata).ok() + (windows_core::Interface::vtable(self).base__.GetCustomAttributeByName)(windows_core::Interface::as_raw(self), tkobj, szname.param().abi(), ppdata, pcbdata).ok() } pub unsafe fn IsValidToken(&self, tk: u32) -> super::super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.IsValidToken)(windows_core::Interface::as_raw(self), tk) @@ -1753,9 +1753,9 @@ windows_core::imp::interface_hierarchy!(IMetaDataValidate, windows_core::IUnknow impl IMetaDataValidate { pub unsafe fn ValidatorInit(&self, dwmoduletype: u32, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ValidatorInit)(windows_core::Interface::as_raw(self), dwmoduletype, punk.into_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() @@ -1783,10 +1783,10 @@ windows_core::imp::define_interface!(IRoMetaDataLocator, IRoMetaDataLocator_Vtbl impl IRoMetaDataLocator { pub unsafe fn Locate(&self, nameelement: P0, metadatadestination: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Locate)(windows_core::Interface::as_raw(self), nameelement.into_param().abi(), metadatadestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Locate)(windows_core::Interface::as_raw(self), nameelement.param().abi(), metadatadestination.param().abi()).ok() } } #[repr(C)] @@ -1803,42 +1803,42 @@ impl IRoSimpleMetaDataBuilder { } pub unsafe fn SetInterfaceGroupSimpleDefault(&self, name: P0, defaultinterfacename: P1, defaultinterfaceiid: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInterfaceGroupSimpleDefault)(windows_core::Interface::as_raw(self), name.into_param().abi(), defaultinterfacename.into_param().abi(), core::mem::transmute(defaultinterfaceiid.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetInterfaceGroupSimpleDefault)(windows_core::Interface::as_raw(self), name.param().abi(), defaultinterfacename.param().abi(), core::mem::transmute(defaultinterfaceiid.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn SetInterfaceGroupParameterizedDefault(&self, name: P0, defaultinterfacenameelements: &[windows_core::PCWSTR]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInterfaceGroupParameterizedDefault)(windows_core::Interface::as_raw(self), name.into_param().abi(), defaultinterfacenameelements.len().try_into().unwrap(), core::mem::transmute(defaultinterfacenameelements.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetInterfaceGroupParameterizedDefault)(windows_core::Interface::as_raw(self), name.param().abi(), defaultinterfacenameelements.len().try_into().unwrap(), core::mem::transmute(defaultinterfacenameelements.as_ptr())).ok() } pub unsafe fn SetRuntimeClassSimpleDefault(&self, name: P0, defaultinterfacename: P1, defaultinterfaceiid: Option<*const windows_core::GUID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuntimeClassSimpleDefault)(windows_core::Interface::as_raw(self), name.into_param().abi(), defaultinterfacename.into_param().abi(), core::mem::transmute(defaultinterfaceiid.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetRuntimeClassSimpleDefault)(windows_core::Interface::as_raw(self), name.param().abi(), defaultinterfacename.param().abi(), core::mem::transmute(defaultinterfaceiid.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn SetRuntimeClassParameterizedDefault(&self, name: P0, defaultinterfacenameelements: &[windows_core::PCWSTR]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRuntimeClassParameterizedDefault)(windows_core::Interface::as_raw(self), name.into_param().abi(), defaultinterfacenameelements.len().try_into().unwrap(), core::mem::transmute(defaultinterfacenameelements.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetRuntimeClassParameterizedDefault)(windows_core::Interface::as_raw(self), name.param().abi(), defaultinterfacenameelements.len().try_into().unwrap(), core::mem::transmute(defaultinterfacenameelements.as_ptr())).ok() } pub unsafe fn SetStruct(&self, name: P0, fieldtypenames: &[windows_core::PCWSTR]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStruct)(windows_core::Interface::as_raw(self), name.into_param().abi(), fieldtypenames.len().try_into().unwrap(), core::mem::transmute(fieldtypenames.as_ptr())).ok() + (windows_core::Interface::vtable(self).SetStruct)(windows_core::Interface::as_raw(self), name.param().abi(), fieldtypenames.len().try_into().unwrap(), core::mem::transmute(fieldtypenames.as_ptr())).ok() } pub unsafe fn SetEnum(&self, name: P0, basetype: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnum)(windows_core::Interface::as_raw(self), name.into_param().abi(), basetype.into_param().abi()).ok() + (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), numargs).ok() diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs index 06db7f5ffd..91ce00d0c0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs @@ -2,11 +2,11 @@ #[inline] pub unsafe fn PdfCreateRenderer(pdevice: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("windows.data.pdf.dll" "system" fn PdfCreateRenderer(pdevice : * mut core::ffi::c_void, pprenderer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PdfCreateRenderer(pdevice.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + PdfCreateRenderer(pdevice.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } windows_core::imp::define_interface!(IPdfRendererNative, IPdfRendererNative_Vtbl, 0x7d9dcd91_d277_4947_8527_07a0daeda94a); windows_core::imp::interface_hierarchy!(IPdfRendererNative, windows_core::IUnknown); @@ -14,18 +14,18 @@ impl IPdfRendererNative { #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi"))] pub unsafe fn RenderPageToSurface(&self, pdfpage: P0, psurface: P1, offset: super::super::super::Foundation::POINT, prenderparams: Option<*const PDF_RENDER_PARAMS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderPageToSurface)(windows_core::Interface::as_raw(self), pdfpage.into_param().abi(), psurface.into_param().abi(), core::mem::transmute(offset), core::mem::transmute(prenderparams.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).RenderPageToSurface)(windows_core::Interface::as_raw(self), pdfpage.param().abi(), psurface.param().abi(), core::mem::transmute(offset), core::mem::transmute(prenderparams.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub unsafe fn RenderPageToDeviceContext(&self, pdfpage: P0, pd2ddevicecontext: P1, prenderparams: Option<*const PDF_RENDER_PARAMS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderPageToDeviceContext)(windows_core::Interface::as_raw(self), pdfpage.into_param().abi(), pd2ddevicecontext.into_param().abi(), core::mem::transmute(prenderparams.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).RenderPageToDeviceContext)(windows_core::Interface::as_raw(self), pdfpage.param().abi(), pd2ddevicecontext.param().abi(), core::mem::transmute(prenderparams.unwrap_or(std::ptr::null()))).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 3c41b4c33d..f57d91c2e5 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 @@ -3,19 +3,19 @@ windows_core::imp::interface_hierarchy!(IPrintManagerInterop, windows_core::IUnk impl IPrintManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowPrintUIForWindowAsync(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowPrintUIForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -64,9 +64,9 @@ windows_core::imp::interface_hierarchy!(IPrintWorkflowObjectModelSourceFileConte impl IPrintWorkflowObjectModelSourceFileContentNative { pub unsafe fn StartXpsOMGeneration(&self, receiver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartXpsOMGeneration)(windows_core::Interface::as_raw(self), receiver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartXpsOMGeneration)(windows_core::Interface::as_raw(self), receiver.param().abi()).ok() } #[cfg(feature = "Win32_Storage_Xps")] pub unsafe fn ObjectFactory(&self) -> windows_core::Result { @@ -106,31 +106,31 @@ impl IPrintWorkflowXpsReceiver { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDocumentSequencePrintTicket(&self, documentsequenceprintticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentSequencePrintTicket)(windows_core::Interface::as_raw(self), documentsequenceprintticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentSequencePrintTicket)(windows_core::Interface::as_raw(self), documentsequenceprintticket.param().abi()).ok() } pub unsafe fn SetDocumentSequenceUri(&self, documentsequenceuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentSequenceUri)(windows_core::Interface::as_raw(self), documentsequenceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentSequenceUri)(windows_core::Interface::as_raw(self), documentsequenceuri.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddDocumentData(&self, documentid: u32, documentprintticket: P0, documenturi: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDocumentData)(windows_core::Interface::as_raw(self), documentid, documentprintticket.into_param().abi(), documenturi.into_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: P0, pageuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPage)(windows_core::Interface::as_raw(self), documentid, pageid, pagereference.into_param().abi(), pageuri.into_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() @@ -160,31 +160,31 @@ impl IPrintWorkflowXpsReceiver2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDocumentSequencePrintTicket(&self, documentsequenceprintticket: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDocumentSequencePrintTicket)(windows_core::Interface::as_raw(self), documentsequenceprintticket.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDocumentSequencePrintTicket)(windows_core::Interface::as_raw(self), documentsequenceprintticket.param().abi()).ok() } pub unsafe fn SetDocumentSequenceUri(&self, documentsequenceuri: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDocumentSequenceUri)(windows_core::Interface::as_raw(self), documentsequenceuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDocumentSequenceUri)(windows_core::Interface::as_raw(self), documentsequenceuri.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddDocumentData(&self, documentid: u32, documentprintticket: P0, documenturi: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDocumentData)(windows_core::Interface::as_raw(self), documentid, documentprintticket.into_param().abi(), documenturi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P0, pageuri: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPage)(windows_core::Interface::as_raw(self), documentid, pageid, pagereference.into_param().abi(), pageuri.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Close)(windows_core::Interface::as_raw(self)).ok() @@ -203,19 +203,19 @@ windows_core::imp::interface_hierarchy!(IPrinting3DManagerInterop, windows_core: impl IPrinting3DManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowPrintUIForWindowAsync(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowPrintUIForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.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/Shell/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/mod.rs index ac769641b3..c946007ee9 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 @@ -4,16 +4,16 @@ impl IDDEInitializer { #[cfg(feature = "Win32_UI_Shell")] pub unsafe fn Initialize(&self, fileextensionorprotocol: P0, method: CreateProcessMethod, currentdirectory: P1, exectarget: P2, site: P3, application: P4, targetfile: P5, arguments: P6, verb: P7) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), fileextensionorprotocol.into_param().abi(), method, currentdirectory.into_param().abi(), exectarget.into_param().abi(), site.into_param().abi(), application.into_param().abi(), targetfile.into_param().abi(), arguments.into_param().abi(), verb.into_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 e8b4786535..19b8588f35 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 @@ -28,11 +28,11 @@ windows_core::imp::interface_hierarchy!(IStorageFolderHandleAccess, windows_core impl IStorageFolderHandleAccess { pub unsafe fn Create(&self, filename: P0, creationoptions: HANDLE_CREATION_OPTIONS, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), filename.into_param().abi(), creationoptions, accessoptions, sharingoptions, options, oplockbreakinghandler.into_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)] @@ -45,10 +45,10 @@ windows_core::imp::interface_hierarchy!(IStorageItemHandleAccess, windows_core:: impl IStorageItemHandleAccess { pub unsafe fn Create(&self, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), accessoptions, sharingoptions, options, oplockbreakinghandler.into_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)] @@ -73,10 +73,10 @@ windows_core::imp::interface_hierarchy!(IUnbufferedFileHandleProvider, windows_c impl IUnbufferedFileHandleProvider { pub unsafe fn OpenUnbufferedFileHandle(&self, oplockbreakcallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OpenUnbufferedFileHandle)(windows_core::Interface::as_raw(self), oplockbreakcallback.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OpenUnbufferedFileHandle)(windows_core::Interface::as_raw(self), oplockbreakcallback.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CloseUnbufferedFileHandle(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloseUnbufferedFileHandle)(windows_core::Interface::as_raw(self)).ok() 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 979ee985d2..eb43d2c05e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -46,12 +46,12 @@ where #[inline] pub unsafe fn CreateControlInputEx(pcorewindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("windows.ui.dll" "cdecl" fn CreateControlInputEx(pcorewindow : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - CreateControlInputEx(pcorewindow.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateControlInputEx(pcorewindow.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "System")] #[inline] @@ -63,33 +63,33 @@ pub unsafe fn CreateDispatcherQueueController(options: DispatcherQueueOptions) - #[inline] pub unsafe fn CreateRandomAccessStreamOnFile(filepath: P0, accessmode: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - CreateRandomAccessStreamOnFile(filepath.into_param().abi(), 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] pub unsafe fn CreateRandomAccessStreamOverStream(stream: P0, options: BSOS_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - CreateRandomAccessStreamOverStream(stream.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("api-ms-win-shcore-stream-winrt-l1-1-0.dll" "system" fn CreateStreamOverRandomAccessStream(randomaccessstream : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - CreateStreamOverRandomAccessStream(randomaccessstream.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateStreamOverRandomAccessStream(randomaccessstream.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn GetRestrictedErrorInfo() -> windows_core::Result { @@ -175,11 +175,11 @@ where #[inline] pub unsafe fn RoGetAgileReference(options: AgileReferenceOptions, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - RoGetAgileReference(options, riid, punk.into_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 { @@ -240,10 +240,10 @@ pub unsafe fn RoOriginateErrorW(error: windows_core::HRESULT, cchmax: u32, messa #[inline] pub unsafe fn RoOriginateLanguageException(error: windows_core::HRESULT, message: &windows_core::HSTRING, languageexception: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoOriginateLanguageException(error : windows_core::HRESULT, message : std::mem::MaybeUninit < windows_core::HSTRING >, languageexception : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); - RoOriginateLanguageException(error, core::mem::transmute_copy(message), languageexception.into_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 { @@ -254,44 +254,44 @@ pub unsafe fn RoRegisterActivationFactories(activatableclassids: *const windows_ #[inline] pub unsafe fn RoRegisterForApartmentShutdown(callbackobject: P0, apartmentidentifier: *mut u64, regcookie: *mut APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoRegisterForApartmentShutdown(callbackobject : * mut core::ffi::c_void, apartmentidentifier : *mut u64, regcookie : *mut APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> windows_core::HRESULT); - RoRegisterForApartmentShutdown(callbackobject.into_param().abi(), apartmentidentifier, regcookie).ok() + RoRegisterForApartmentShutdown(callbackobject.param().abi(), apartmentidentifier, regcookie).ok() } #[inline] pub unsafe fn RoReportFailedDelegate(punkdelegate: P0, prestrictederrorinfo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoReportFailedDelegate(punkdelegate : * mut core::ffi::c_void, prestrictederrorinfo : * mut core::ffi::c_void) -> windows_core::HRESULT); - RoReportFailedDelegate(punkdelegate.into_param().abi(), prestrictederrorinfo.into_param().abi()).ok() + RoReportFailedDelegate(punkdelegate.param().abi(), prestrictederrorinfo.param().abi()).ok() } #[inline] pub unsafe fn RoReportUnhandledError(prestrictederrorinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoReportUnhandledError(prestrictederrorinfo : * mut core::ffi::c_void) -> windows_core::HRESULT); - RoReportUnhandledError(prestrictederrorinfo.into_param().abi()).ok() + RoReportUnhandledError(prestrictederrorinfo.param().abi()).ok() } #[inline] pub unsafe fn RoResolveRestrictedErrorInfoReference(reference: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoResolveRestrictedErrorInfoReference(reference : windows_core::PCWSTR, pprestrictederrorinfo : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - RoResolveRestrictedErrorInfoReference(reference.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + RoResolveRestrictedErrorInfoReference(reference.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn RoRevokeActivationFactories(cookie: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoRevokeActivationFactories(cookie : RO_REGISTRATION_COOKIE)); - RoRevokeActivationFactories(cookie.into_param().abi()) + RoRevokeActivationFactories(cookie.param().abi()) } #[inline] pub unsafe fn RoSetErrorReportingFlags(flags: u32) -> windows_core::Result<()> { @@ -316,18 +316,18 @@ pub unsafe fn RoUninitialize() { #[inline] pub unsafe fn RoUnregisterForApartmentShutdown(regcookie: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoUnregisterForApartmentShutdown(regcookie : APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> windows_core::HRESULT); - RoUnregisterForApartmentShutdown(regcookie.into_param().abi()).ok() + RoUnregisterForApartmentShutdown(regcookie.param().abi()).ok() } #[inline] pub unsafe fn SetRestrictedErrorInfo(prestrictederrorinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn SetRestrictedErrorInfo(prestrictederrorinfo : * mut core::ffi::c_void) -> windows_core::HRESULT); - SetRestrictedErrorInfo(prestrictederrorinfo.into_param().abi()).ok() + SetRestrictedErrorInfo(prestrictederrorinfo.param().abi()).ok() } #[inline] pub unsafe fn WindowsCompareStringOrdinal(string1: &windows_core::HSTRING, string2: &windows_core::HSTRING) -> windows_core::Result { @@ -350,10 +350,10 @@ pub unsafe fn WindowsCreateString(sourcestring: Option<&[u16]>) -> windows_core: #[inline] pub unsafe fn WindowsCreateStringReference(sourcestring: P0, length: u32, hstringheader: *mut HSTRING_HEADER, string: *mut windows_core::HSTRING) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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 std::mem::MaybeUninit < windows_core::HSTRING >) -> windows_core::HRESULT); - WindowsCreateStringReference(sourcestring.into_param().abi(), length, hstringheader, core::mem::transmute(string)).ok() + WindowsCreateStringReference(sourcestring.param().abi(), length, hstringheader, core::mem::transmute(string)).ok() } #[inline] pub unsafe fn WindowsDeleteString(string: &windows_core::HSTRING) -> windows_core::Result<()> { @@ -363,10 +363,10 @@ pub unsafe fn WindowsDeleteString(string: &windows_core::HSTRING) -> windows_cor #[inline] pub unsafe fn WindowsDeleteStringBuffer(bufferhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsDeleteStringBuffer(bufferhandle : HSTRING_BUFFER) -> windows_core::HRESULT); - WindowsDeleteStringBuffer(bufferhandle.into_param().abi()).ok() + WindowsDeleteStringBuffer(bufferhandle.param().abi()).ok() } #[inline] pub unsafe fn WindowsDuplicateString(string: &windows_core::HSTRING) -> windows_core::Result { @@ -407,11 +407,11 @@ pub unsafe fn WindowsPreallocateStringBuffer(length: u32, charbuffer: *mut *mut #[inline] pub unsafe fn WindowsPromoteStringBuffer(bufferhandle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsPromoteStringBuffer(bufferhandle : HSTRING_BUFFER, string : *mut std::mem::MaybeUninit < windows_core::HSTRING >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - WindowsPromoteStringBuffer(bufferhandle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + WindowsPromoteStringBuffer(bufferhandle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn WindowsReplaceString(string: &windows_core::HSTRING, stringreplaced: &windows_core::HSTRING, stringreplacewith: &windows_core::HSTRING) -> windows_core::Result { @@ -454,27 +454,27 @@ windows_core::imp::interface_hierarchy!(IAccountsSettingsPaneInterop, windows_co impl IAccountsSettingsPaneInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowManageAccountsForWindowAsync(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowManageAccountsForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowAddAccountForWindowAsync(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ShowAddAccountForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -559,10 +559,10 @@ windows_core::imp::interface_hierarchy!(ICastingController, windows_core::IUnkno impl ICastingController { pub unsafe fn Initialize(&self, castingengine: P0, castingsource: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), castingengine.into_param().abi(), castingsource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), castingengine.param().abi(), castingsource.param().abi()).ok() } pub unsafe fn Connect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self)).ok() @@ -572,10 +572,10 @@ impl ICastingController { } pub unsafe fn Advise(&self, eventhandler: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), eventhandler.into_param().abi(), &mut result__).map(|| result__) + (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), cookie).ok() @@ -598,9 +598,9 @@ impl ICastingEventHandler { } pub unsafe fn OnError(&self, errorstatus: CASTING_CONNECTION_ERROR_STATUS, errormessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), errorstatus, errormessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnError)(windows_core::Interface::as_raw(self), errorstatus, errormessage.param().abi()).ok() } } #[repr(C)] @@ -636,9 +636,9 @@ windows_core::imp::interface_hierarchy!(ICoreInputInterop, windows_core::IUnknow impl ICoreInputInterop { pub unsafe fn SetInputSource(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputSource)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (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), value).ok() @@ -659,9 +659,9 @@ impl ICoreInputInterop2 { } pub unsafe fn ChangeHostingContext(&self, newparentwindow: P0, newviewinstanceid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ChangeHostingContext)(windows_core::Interface::as_raw(self), newparentwindow.into_param().abi(), newviewinstanceid).ok() + (windows_core::Interface::vtable(self).ChangeHostingContext)(windows_core::Interface::as_raw(self), newparentwindow.param().abi(), newviewinstanceid).ok() } } #[repr(C)] @@ -703,9 +703,9 @@ impl ICoreWindowAdapterInterop { } pub unsafe fn SetWindowClientAdapter(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWindowClientAdapter)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWindowClientAdapter)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[repr(C)] @@ -725,10 +725,10 @@ windows_core::imp::interface_hierarchy!(ICoreWindowComponentInterop, windows_cor impl ICoreWindowComponentInterop { pub unsafe fn ConfigureComponentInput(&self, hostviewinstanceid: u32, hwndhost: P0, inputsourcevisual: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureComponentInput)(windows_core::Interface::as_raw(self), hostviewinstanceid, hwndhost.into_param().abi(), inputsourcevisual.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConfigureComponentInput)(windows_core::Interface::as_raw(self), hostviewinstanceid, hwndhost.param().abi(), inputsourcevisual.param().abi()).ok() } pub unsafe fn GetViewInstanceId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -798,11 +798,11 @@ windows_core::imp::interface_hierarchy!(IDragDropManagerInterop, windows_core::I impl IDragDropManagerInterop { pub unsafe fn GetForWindow(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -815,11 +815,11 @@ windows_core::imp::interface_hierarchy!(IHolographicSpaceInterop, windows_core:: impl IHolographicSpaceInterop { pub unsafe fn CreateForWindow(&self, window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), window.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -832,11 +832,11 @@ windows_core::imp::interface_hierarchy!(IInputPaneInterop, windows_core::IUnknow impl IInputPaneInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -870,9 +870,9 @@ impl ILanguageExceptionErrorInfo2 { } pub unsafe fn CapturePropagationContext(&self, languageexception: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CapturePropagationContext)(windows_core::Interface::as_raw(self), languageexception.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CapturePropagationContext)(windows_core::Interface::as_raw(self), languageexception.param().abi()).ok() } pub unsafe fn GetPropagationContextHead(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -940,17 +940,17 @@ windows_core::imp::interface_hierarchy!(IPlayToManagerInterop, windows_core::IUn impl IPlayToManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowPlayToUIForWindow(&self, appwindow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowPlayToUIForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowPlayToUIForWindow)(windows_core::Interface::as_raw(self), appwindow.param().abi()).ok() } } #[repr(C)] @@ -996,11 +996,11 @@ windows_core::imp::interface_hierarchy!(IShareWindowCommandSourceInterop, window impl IShareWindowCommandSourceInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1013,11 +1013,11 @@ windows_core::imp::interface_hierarchy!(ISpatialInteractionManagerInterop, windo impl ISpatialInteractionManagerInterop { pub unsafe fn GetForWindow(&self, window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), window.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1030,11 +1030,11 @@ windows_core::imp::interface_hierarchy!(ISystemMediaTransportControlsInterop, wi impl ISystemMediaTransportControlsInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1047,11 +1047,11 @@ windows_core::imp::interface_hierarchy!(IUIViewSettingsInterop, windows_core::IU impl IUIViewSettingsInterop { pub unsafe fn GetForWindow(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1064,11 +1064,11 @@ windows_core::imp::interface_hierarchy!(IUserActivityInterop, windows_core::IUnk impl IUserActivityInterop { pub unsafe fn CreateSessionForWindow(&self, window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateSessionForWindow)(windows_core::Interface::as_raw(self), window.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1081,11 +1081,11 @@ windows_core::imp::interface_hierarchy!(IUserActivityRequestManagerInterop, wind impl IUserActivityRequestManagerInterop { pub unsafe fn GetForWindow(&self, window: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), window.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1110,11 +1110,11 @@ windows_core::imp::interface_hierarchy!(IUserConsentVerifierInterop, windows_cor impl IUserConsentVerifierInterop { pub unsafe fn RequestVerificationForWindowAsync(&self, appwindow: P0, message: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestVerificationForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), 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.param().abi(), core::mem::transmute_copy(message), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1156,22 +1156,22 @@ windows_core::imp::interface_hierarchy!(IWebAuthenticationCoreManagerInterop, wi impl IWebAuthenticationCoreManagerInterop { pub unsafe fn RequestTokenForWindowAsync(&self, appwindow: P0, request: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestTokenForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), request.into_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.param().abi(), request.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RequestTokenWithWebAccountForWindowAsync(&self, appwindow: P0, request: P1, webaccount: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).RequestTokenWithWebAccountForWindowAsync)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), request.into_param().abi(), webaccount.into_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.param().abi(), 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 718a8b7538..c2104c1135 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -1,62 +1,62 @@ #[inline] pub unsafe fn AddDelBackupEntryA(lpcszfilelist: P0, lpcszbackupdir: P1, lpcszbasename: P2, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpcszbackupdir.into_param().abi(), lpcszbasename.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpcszbackupdir.into_param().abi(), lpcszbasename.into_param().abi(), dwflags).ok() + AddDelBackupEntryW(lpcszfilelist.param().abi(), lpcszbackupdir.param().abi(), lpcszbasename.param().abi(), dwflags).ok() } #[inline] pub unsafe fn AdvInstallFileA(hwnd: P0, lpszsourcedir: P1, lpszsourcefile: P2, lpszdestdir: P3, lpszdestfile: P4, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwnd.into_param().abi(), lpszsourcedir.into_param().abi(), lpszsourcefile.into_param().abi(), lpszdestdir.into_param().abi(), lpszdestfile.into_param().abi(), dwflags, dwreserved).ok() + AdvInstallFileA(hwnd.param().abi(), lpszsourcedir.param().abi(), lpszsourcefile.param().abi(), lpszdestdir.param().abi(), lpszdestfile.param().abi(), dwflags, dwreserved).ok() } #[inline] pub unsafe fn AdvInstallFileW(hwnd: P0, lpszsourcedir: P1, lpszsourcefile: P2, lpszdestdir: P3, lpszdestfile: P4, dwflags: u32, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwnd.into_param().abi(), lpszsourcedir.into_param().abi(), lpszsourcefile.into_param().abi(), lpszdestdir.into_param().abi(), lpszdestfile.into_param().abi(), dwflags, dwreserved).ok() + AdvInstallFileW(hwnd.param().abi(), 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: P0, pullflags: *mut u64) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(objectclsid, bshimifnecessary.into_param().abi(), pullflags) + ApphelpCheckShellObject(objectclsid, bshimifnecessary.param().abi(), pullflags) } #[inline] pub unsafe fn CancelDeviceWakeupRequest(hdevice: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn CancelDeviceWakeupRequest(hdevice : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - CancelDeviceWakeupRequest(hdevice.into_param().abi()) + CancelDeviceWakeupRequest(hdevice.param().abi()) } #[inline] pub unsafe fn CloseINFEngine(hinf: *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -82,37 +82,37 @@ pub unsafe fn DCIBeginAccess(pdci: *mut DCISURFACEINFO, x: i32, y: i32, dx: i32, #[inline] pub unsafe fn DCICloseProvider(hdc: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dciman32.dll" "system" fn DCICloseProvider(hdc : super::super::Graphics::Gdi:: HDC)); - DCICloseProvider(hdc.into_param().abi()) + DCICloseProvider(hdc.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DCICreateOffscreen(hdc: P0, dwcompression: u32, dwredmask: u32, dwgreenmask: u32, dwbluemask: u32, dwwidth: u32, dwheight: u32, dwdcicaps: u32, dwbitcount: u32, lplpsurface: *mut *mut DCIOFFSCREEN) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), dwcompression, dwredmask, dwgreenmask, dwbluemask, dwwidth, dwheight, dwdcicaps, dwbitcount, lplpsurface) + DCICreateOffscreen(hdc.param().abi(), dwcompression, dwredmask, dwgreenmask, dwbluemask, dwwidth, dwheight, dwdcicaps, dwbitcount, lplpsurface) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DCICreateOverlay(hdc: P0, lpoffscreensurf: *mut core::ffi::c_void, lplpsurface: *mut *mut DCIOVERLAY) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), lpoffscreensurf, lplpsurface) + DCICreateOverlay(hdc.param().abi(), lpoffscreensurf, lplpsurface) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DCICreatePrimary(hdc: P0, lplpsurface: *mut *mut DCISURFACEINFO) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dciman32.dll" "system" fn DCICreatePrimary(hdc : super::super::Graphics::Gdi:: HDC, lplpsurface : *mut *mut DCISURFACEINFO) -> i32); - DCICreatePrimary(hdc.into_param().abi(), lplpsurface) + DCICreatePrimary(hdc.param().abi(), lplpsurface) } #[inline] pub unsafe fn DCIDestroy(pdci: *mut DCISURFACEINFO) { @@ -133,10 +133,10 @@ pub unsafe fn DCIEndAccess(pdci: *mut DCISURFACEINFO) { #[inline] pub unsafe fn DCIEnum(hdc: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), lprdst, lprsrc, lpfncallback, lpcontext) + DCIEnum(hdc.param().abi(), lprdst, lprsrc, lpfncallback, lpcontext) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -164,43 +164,43 @@ pub unsafe fn DCISetSrcDestClip(pdci: *mut DCIOFFSCREEN, srcrc: *mut super::supe #[inline] pub unsafe fn DelNodeA(pszfileordirname: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn DelNodeA(pszfileordirname : windows_core::PCSTR, dwflags : u32) -> windows_core::HRESULT); - DelNodeA(pszfileordirname.into_param().abi(), dwflags).ok() + DelNodeA(pszfileordirname.param().abi(), dwflags).ok() } #[inline] pub unsafe fn DelNodeRunDLL32W(hwnd: P0, hinstance: P1, pszparms: windows_core::PWSTR, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hinstance.into_param().abi(), core::mem::transmute(pszparms), nshow).ok() + DelNodeRunDLL32W(hwnd.param().abi(), hinstance.param().abi(), core::mem::transmute(pszparms), nshow).ok() } #[inline] pub unsafe fn DelNodeW(pszfileordirname: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn DelNodeW(pszfileordirname : windows_core::PCWSTR, dwflags : u32) -> windows_core::HRESULT); - DelNodeW(pszfileordirname.into_param().abi(), dwflags).ok() + DelNodeW(pszfileordirname.param().abi(), dwflags).ok() } #[inline] pub unsafe fn DnsHostnameToComputerNameA(hostname: P0, computername: windows_core::PSTR, nsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameA(hostname : windows_core::PCSTR, computername : windows_core::PSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); - DnsHostnameToComputerNameA(hostname.into_param().abi(), core::mem::transmute(computername), nsize).ok() + DnsHostnameToComputerNameA(hostname.param().abi(), core::mem::transmute(computername), nsize).ok() } #[inline] pub unsafe fn DnsHostnameToComputerNameW(hostname: P0, computername: windows_core::PWSTR, nsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameW(hostname : windows_core::PCWSTR, computername : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); - DnsHostnameToComputerNameW(hostname.into_param().abi(), core::mem::transmute(computername), nsize).ok() + DnsHostnameToComputerNameW(hostname.param().abi(), core::mem::transmute(computername), nsize).ok() } #[inline] pub unsafe fn DosDateTimeToFileTime(wfatdate: u16, wfattime: u16, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { @@ -216,95 +216,95 @@ pub unsafe fn EnableProcessOptionalXStateFeatures(features: u64) -> super::super #[inline] pub unsafe fn ExecuteCabA(hwnd: P0, pcab: *mut CABINFOA, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), pcab, preserved).ok() + ExecuteCabA(hwnd.param().abi(), pcab, preserved).ok() } #[inline] pub unsafe fn ExecuteCabW(hwnd: P0, pcab: *mut CABINFOW, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), pcab, preserved).ok() + ExecuteCabW(hwnd.param().abi(), pcab, preserved).ok() } #[inline] pub unsafe fn ExtractFilesA(pszcabname: P0, pszexpanddir: P1, dwflags: u32, pszfilelist: P2, lpreserved: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszexpanddir.into_param().abi(), dwflags, pszfilelist.into_param().abi(), lpreserved, dwreserved).ok() + ExtractFilesA(pszcabname.param().abi(), pszexpanddir.param().abi(), dwflags, pszfilelist.param().abi(), lpreserved, dwreserved).ok() } #[inline] pub unsafe fn ExtractFilesW(pszcabname: P0, pszexpanddir: P1, dwflags: u32, pszfilelist: P2, lpreserved: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszexpanddir.into_param().abi(), dwflags, pszfilelist.into_param().abi(), lpreserved, dwreserved).ok() + ExtractFilesW(pszcabname.param().abi(), pszexpanddir.param().abi(), dwflags, pszfilelist.param().abi(), lpreserved, dwreserved).ok() } #[inline] pub unsafe fn FileSaveMarkNotExistA(lpfilelist: P0, lpdir: P1, lpbasename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn FileSaveMarkNotExistA(lpfilelist : windows_core::PCSTR, lpdir : windows_core::PCSTR, lpbasename : windows_core::PCSTR) -> windows_core::HRESULT); - FileSaveMarkNotExistA(lpfilelist.into_param().abi(), lpdir.into_param().abi(), lpbasename.into_param().abi()).ok() + FileSaveMarkNotExistA(lpfilelist.param().abi(), lpdir.param().abi(), lpbasename.param().abi()).ok() } #[inline] pub unsafe fn FileSaveMarkNotExistW(lpfilelist: P0, lpdir: P1, lpbasename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn FileSaveMarkNotExistW(lpfilelist : windows_core::PCWSTR, lpdir : windows_core::PCWSTR, lpbasename : windows_core::PCWSTR) -> windows_core::HRESULT); - FileSaveMarkNotExistW(lpfilelist.into_param().abi(), lpdir.into_param().abi(), lpbasename.into_param().abi()).ok() + FileSaveMarkNotExistW(lpfilelist.param().abi(), lpdir.param().abi(), lpbasename.param().abi()).ok() } #[inline] pub unsafe fn FileSaveRestoreOnINFA(hwnd: P0, psztitle: P1, pszinf: P2, pszsection: P3, pszbackupdir: P4, pszbasebackupfile: P5, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwnd.into_param().abi(), psztitle.into_param().abi(), pszinf.into_param().abi(), pszsection.into_param().abi(), pszbackupdir.into_param().abi(), pszbasebackupfile.into_param().abi(), dwflags).ok() + FileSaveRestoreOnINFA(hwnd.param().abi(), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), pszbackupdir.param().abi(), pszbasebackupfile.param().abi(), dwflags).ok() } #[inline] pub unsafe fn FileSaveRestoreOnINFW(hwnd: P0, psztitle: P1, pszinf: P2, pszsection: P3, pszbackupdir: P4, pszbasebackupfile: P5, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwnd.into_param().abi(), psztitle.into_param().abi(), pszinf.into_param().abi(), pszsection.into_param().abi(), pszbackupdir.into_param().abi(), pszbasebackupfile.into_param().abi(), dwflags).ok() + FileSaveRestoreOnINFW(hwnd.param().abi(), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), pszbackupdir.param().abi(), pszbasebackupfile.param().abi(), dwflags).ok() } #[inline] pub unsafe fn FileSaveRestoreW(hdlg: P0, lpfilelist: P1, lpdir: P2, lpbasename: P3, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hdlg.into_param().abi(), lpfilelist.into_param().abi(), lpdir.into_param().abi(), lpbasename.into_param().abi(), dwflags).ok() + FileSaveRestoreW(hdlg.param().abi(), 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<()> { @@ -340,10 +340,10 @@ pub unsafe fn GetCurrentHwProfileW(lphwprofileinfo: *mut HW_PROFILE_INFOW) -> wi #[inline] pub unsafe fn GetDCRegionData(hdc: P0, size: u32, prd: *mut super::super::Graphics::Gdi::RGNDATA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), size, prd) + GetDCRegionData(hdc.param().abi(), size, prd) } #[inline] pub unsafe fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE { @@ -358,188 +358,188 @@ pub unsafe fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, #[inline] pub unsafe fn GetFirmwareEnvironmentVariableA(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize) + GetFirmwareEnvironmentVariableA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize) } #[inline] pub unsafe fn GetFirmwareEnvironmentVariableExA(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32, pdwattribubutes: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize, core::mem::transmute(pdwattribubutes.unwrap_or(std::ptr::null_mut()))) + GetFirmwareEnvironmentVariableExA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize, core::mem::transmute(pdwattribubutes.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetFirmwareEnvironmentVariableExW(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32, pdwattribubutes: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize, core::mem::transmute(pdwattribubutes.unwrap_or(std::ptr::null_mut()))) + GetFirmwareEnvironmentVariableExW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize, core::mem::transmute(pdwattribubutes.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetFirmwareEnvironmentVariableW(lpname: P0, lpguid: P1, pbuffer: Option<*mut core::ffi::c_void>, nsize: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize) + GetFirmwareEnvironmentVariableW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pbuffer.unwrap_or(std::ptr::null_mut())), nsize) } #[inline] pub unsafe fn GetPrivateProfileIntA(lpappname: P0, lpkeyname: P1, ndefault: i32, lpfilename: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpkeyname.into_param().abi(), ndefault, lpfilename.into_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: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpkeyname.into_param().abi(), ndefault, lpfilename.into_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: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileSectionA(lpappname : windows_core::PCSTR, lpreturnedstring : windows_core::PSTR, nsize : u32, lpfilename : windows_core::PCSTR) -> u32); - GetPrivateProfileSectionA(lpappname.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.into_param().abi()) + GetPrivateProfileSectionA(lpappname.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileSectionNamesA(lpszreturnbuffer: Option<&mut [u8]>, lpfilename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileSectionNamesA(lpszreturnbuffer : windows_core::PSTR, nsize : u32, lpfilename : windows_core::PCSTR) -> u32); - GetPrivateProfileSectionNamesA(core::mem::transmute(lpszreturnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszreturnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.into_param().abi()) + GetPrivateProfileSectionNamesA(core::mem::transmute(lpszreturnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszreturnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileSectionNamesW(lpszreturnbuffer: Option<&mut [u16]>, lpfilename: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileSectionNamesW(lpszreturnbuffer : windows_core::PWSTR, nsize : u32, lpfilename : windows_core::PCWSTR) -> u32); - GetPrivateProfileSectionNamesW(core::mem::transmute(lpszreturnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszreturnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.into_param().abi()) + GetPrivateProfileSectionNamesW(core::mem::transmute(lpszreturnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszreturnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileSectionW(lpappname: P0, lpreturnedstring: Option<&mut [u16]>, lpfilename: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileSectionW(lpappname : windows_core::PCWSTR, lpreturnedstring : windows_core::PWSTR, nsize : u32, lpfilename : windows_core::PCWSTR) -> u32); - GetPrivateProfileSectionW(lpappname.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.into_param().abi()) + GetPrivateProfileSectionW(lpappname.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileStringA(lpappname: P0, lpkeyname: P1, lpdefault: P2, lpreturnedstring: Option<&mut [u8]>, lpfilename: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpdefault : windows_core::PCSTR, lpreturnedstring : windows_core::PSTR, nsize : u32, lpfilename : windows_core::PCSTR) -> u32); - GetPrivateProfileStringA(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpdefault.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.into_param().abi()) + GetPrivateProfileStringA(lpappname.param().abi(), lpkeyname.param().abi(), lpdefault.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileStringW(lpappname: P0, lpkeyname: P1, lpdefault: P2, lpreturnedstring: Option<&mut [u16]>, lpfilename: P3) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpdefault : windows_core::PCWSTR, lpreturnedstring : windows_core::PWSTR, nsize : u32, lpfilename : windows_core::PCWSTR) -> u32); - GetPrivateProfileStringW(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpdefault.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.into_param().abi()) + GetPrivateProfileStringW(lpappname.param().abi(), lpkeyname.param().abi(), lpdefault.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileStructA(lpszsection: P0, lpszkey: P1, lpstruct: Option<*mut core::ffi::c_void>, usizestruct: u32, szfile: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpszkey.into_param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null_mut())), usizestruct, szfile.into_param().abi()) + GetPrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null_mut())), usizestruct, szfile.param().abi()) } #[inline] pub unsafe fn GetPrivateProfileStructW(lpszsection: P0, lpszkey: P1, lpstruct: Option<*mut core::ffi::c_void>, usizestruct: u32, szfile: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpszkey.into_param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null_mut())), usizestruct, szfile.into_param().abi()) + GetPrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null_mut())), usizestruct, szfile.param().abi()) } #[inline] pub unsafe fn GetProfileIntA(lpappname: P0, lpkeyname: P1, ndefault: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpkeyname.into_param().abi(), ndefault) + GetProfileIntA(lpappname.param().abi(), lpkeyname.param().abi(), ndefault) } #[inline] pub unsafe fn GetProfileIntW(lpappname: P0, lpkeyname: P1, ndefault: i32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpkeyname.into_param().abi(), ndefault) + GetProfileIntW(lpappname.param().abi(), lpkeyname.param().abi(), ndefault) } #[inline] pub unsafe fn GetProfileSectionA(lpappname: P0, lpreturnedstring: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProfileSectionA(lpappname : windows_core::PCSTR, lpreturnedstring : windows_core::PSTR, nsize : u32) -> u32); - GetProfileSectionA(lpappname.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetProfileSectionA(lpappname.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetProfileSectionW(lpappname: P0, lpreturnedstring: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProfileSectionW(lpappname : windows_core::PCWSTR, lpreturnedstring : windows_core::PWSTR, nsize : u32) -> u32); - GetProfileSectionW(lpappname.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetProfileSectionW(lpappname.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetProfileStringA(lpappname: P0, lpkeyname: P1, lpdefault: P2, lpreturnedstring: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpdefault : windows_core::PCSTR, lpreturnedstring : windows_core::PSTR, nsize : u32) -> u32); - GetProfileStringA(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpdefault.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetProfileStringA(lpappname.param().abi(), lpkeyname.param().abi(), lpdefault.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetProfileStringW(lpappname: P0, lpkeyname: P1, lpdefault: P2, lpreturnedstring: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GetProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpdefault : windows_core::PCWSTR, lpreturnedstring : windows_core::PWSTR, nsize : u32) -> u32); - GetProfileStringW(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpdefault.into_param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + GetProfileStringW(lpappname.param().abi(), lpkeyname.param().abi(), lpdefault.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn GetSystemRegistryQuota(pdwquotaallowed: Option<*mut u32>, pdwquotaused: Option<*mut u32>) -> windows_core::Result<()> { @@ -565,47 +565,47 @@ pub unsafe fn GetUserNameW(lpbuffer: windows_core::PWSTR, pcbbuffer: *mut u32) - #[inline] pub unsafe fn GetVersionFromFileA(lpszfilename: P0, pdwmsver: *mut u32, pdwlsver: *mut u32, bversion: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileA(lpszfilename : windows_core::PCSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - GetVersionFromFileA(lpszfilename.into_param().abi(), pdwmsver, pdwlsver, bversion.into_param().abi()).ok() + GetVersionFromFileA(lpszfilename.param().abi(), pdwmsver, pdwlsver, bversion.param().abi()).ok() } #[inline] pub unsafe fn GetVersionFromFileExA(lpszfilename: P0, pdwmsver: *mut u32, pdwlsver: *mut u32, bversion: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileExA(lpszfilename : windows_core::PCSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - GetVersionFromFileExA(lpszfilename.into_param().abi(), pdwmsver, pdwlsver, bversion.into_param().abi()).ok() + GetVersionFromFileExA(lpszfilename.param().abi(), pdwmsver, pdwlsver, bversion.param().abi()).ok() } #[inline] pub unsafe fn GetVersionFromFileExW(lpszfilename: P0, pdwmsver: *mut u32, pdwlsver: *mut u32, bversion: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileExW(lpszfilename : windows_core::PCWSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - GetVersionFromFileExW(lpszfilename.into_param().abi(), pdwmsver, pdwlsver, bversion.into_param().abi()).ok() + GetVersionFromFileExW(lpszfilename.param().abi(), pdwmsver, pdwlsver, bversion.param().abi()).ok() } #[inline] pub unsafe fn GetVersionFromFileW(lpszfilename: P0, pdwmsver: *mut u32, pdwlsver: *mut u32, bversion: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileW(lpszfilename : windows_core::PCWSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - GetVersionFromFileW(lpszfilename.into_param().abi(), pdwmsver, pdwlsver, bversion.into_param().abi()).ok() + GetVersionFromFileW(lpszfilename.param().abi(), pdwmsver, pdwlsver, bversion.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetWindowRegionData(hwnd: P0, size: u32, prd: *mut super::super::Graphics::Gdi::RGNDATA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dciman32.dll" "system" fn GetWindowRegionData(hwnd : super::super::Foundation:: HWND, size : u32, prd : *mut super::super::Graphics::Gdi:: RGNDATA) -> u32); - GetWindowRegionData(hwnd.into_param().abi(), size, prd) + GetWindowRegionData(hwnd.param().abi(), size, prd) } #[inline] pub unsafe fn GlobalCompact(dwminfree: u32) -> usize { @@ -615,50 +615,50 @@ pub unsafe fn GlobalCompact(dwminfree: u32) -> usize { #[inline] pub unsafe fn GlobalFix(hmem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalFix(hmem : super::super::Foundation:: HGLOBAL)); - GlobalFix(hmem.into_param().abi()) + GlobalFix(hmem.param().abi()) } #[inline] pub unsafe fn GlobalUnWire(hmem: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalUnWire(hmem : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); - GlobalUnWire(hmem.into_param().abi()) + GlobalUnWire(hmem.param().abi()) } #[inline] pub unsafe fn GlobalUnfix(hmem: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalUnfix(hmem : super::super::Foundation:: HGLOBAL)); - GlobalUnfix(hmem.into_param().abi()) + GlobalUnfix(hmem.param().abi()) } #[inline] pub unsafe fn GlobalWire(hmem: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn GlobalWire(hmem : super::super::Foundation:: HGLOBAL) -> *mut core::ffi::c_void); - GlobalWire(hmem.into_param().abi()) + GlobalWire(hmem.param().abi()) } #[inline] pub unsafe fn IMPGetIMEA(param0: P0, param1: *mut IMEPROA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IMPGetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> super::super::Foundation:: BOOL); - IMPGetIMEA(param0.into_param().abi(), param1) + IMPGetIMEA(param0.param().abi(), param1) } #[inline] pub unsafe fn IMPGetIMEW(param0: P0, param1: *mut IMEPROW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IMPGetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> super::super::Foundation:: BOOL); - IMPGetIMEW(param0.into_param().abi(), param1) + IMPGetIMEW(param0.param().abi(), param1) } #[inline] pub unsafe fn IMPQueryIMEA(param0: *mut IMEPROA) -> super::super::Foundation::BOOL { @@ -673,26 +673,26 @@ pub unsafe fn IMPQueryIMEW(param0: *mut IMEPROW) -> super::super::Foundation::BO #[inline] pub unsafe fn IMPSetIMEA(param0: P0, param1: *mut IMEPROA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IMPSetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> super::super::Foundation:: BOOL); - IMPSetIMEA(param0.into_param().abi(), param1) + IMPSetIMEA(param0.param().abi(), param1) } #[inline] pub unsafe fn IMPSetIMEW(param0: P0, param1: *mut IMEPROW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IMPSetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> super::super::Foundation:: BOOL); - IMPSetIMEW(param0.into_param().abi(), param1) + IMPSetIMEW(param0.param().abi(), param1) } #[inline] pub unsafe fn IsApiSetImplemented(contract: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-apiquery-l2-1-0.dll" "system" fn IsApiSetImplemented(contract : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - IsApiSetImplemented(contract.into_param().abi()) + IsApiSetImplemented(contract.param().abi()) } #[inline] pub unsafe fn IsBadHugeReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { @@ -717,29 +717,29 @@ pub unsafe fn IsNativeVhdBoot(nativevhdboot: *mut super::super::Foundation::BOOL #[inline] pub unsafe fn IsTokenUntrusted(tokenhandle: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("advapi32.dll" "system" fn IsTokenUntrusted(tokenhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - IsTokenUntrusted(tokenhandle.into_param().abi()) + IsTokenUntrusted(tokenhandle.param().abi()) } #[inline] pub unsafe fn LaunchINFSectionExW(hwnd: P0, hinstance: P1, pszparms: P2, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinstance.into_param().abi(), pszparms.into_param().abi(), nshow).ok() + LaunchINFSectionExW(hwnd.param().abi(), hinstance.param().abi(), pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn LaunchINFSectionW(hwndowner: P0, hinstance: P1, pszparams: windows_core::PWSTR, nshow: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndowner.into_param().abi(), hinstance.into_param().abi(), core::mem::transmute(pszparams), nshow) + LaunchINFSectionW(hwndowner.param().abi(), hinstance.param().abi(), core::mem::transmute(pszparams), nshow) } #[inline] pub unsafe fn LocalCompact(uminfree: u32) -> usize { @@ -749,10 +749,10 @@ pub unsafe fn LocalCompact(uminfree: u32) -> usize { #[inline] pub unsafe fn LocalShrink(hmem: P0, cbnewsize: u32) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn LocalShrink(hmem : super::super::Foundation:: HLOCAL, cbnewsize : u32) -> usize); - LocalShrink(hmem.into_param().abi(), cbnewsize) + LocalShrink(hmem.param().abi(), cbnewsize) } #[inline] pub unsafe fn MulDiv(nnumber: i32, nnumerator: i32, ndenominator: i32) -> i32 { @@ -772,38 +772,38 @@ pub unsafe fn NeedRebootInit() -> u32 { #[inline] pub unsafe fn OpenINFEngineA(pszinffilename: P0, pszinstallsection: P1, dwflags: u32, phinf: *mut *mut core::ffi::c_void, pvreserved: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszinstallsection.into_param().abi(), dwflags, phinf, pvreserved).ok() + OpenINFEngineA(pszinffilename.param().abi(), pszinstallsection.param().abi(), dwflags, phinf, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszinstallsection.into_param().abi(), dwflags, phinf, pvreserved).ok() + OpenINFEngineW(pszinffilename.param().abi(), pszinstallsection.param().abi(), dwflags, phinf, pvreserved).ok() } #[inline] pub unsafe fn OpenMutexA(dwdesiredaccess: u32, binherithandle: P0, lpname: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()) + OpenMutexA(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()) } #[inline] pub unsafe fn OpenSemaphoreA(dwdesiredaccess: u32, binherithandle: P0, lpname: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(dwdesiredaccess, binherithandle.into_param().abi(), lpname.into_param().abi()) + OpenSemaphoreA(dwdesiredaccess, binherithandle.param().abi(), lpname.param().abi()) } #[inline] pub unsafe fn QueryAuxiliaryCounterFrequency() -> windows_core::Result { @@ -838,18 +838,18 @@ pub unsafe fn QueryInterruptTimePrecise() -> u64 { #[inline] pub unsafe fn QueryProcessCycleTime(processhandle: P0, cycletime: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryProcessCycleTime(processhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> super::super::Foundation:: BOOL); - QueryProcessCycleTime(processhandle.into_param().abi(), cycletime).ok() + QueryProcessCycleTime(processhandle.param().abi(), cycletime).ok() } #[inline] pub unsafe fn QueryThreadCycleTime(threadhandle: P0, cycletime: *mut u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn QueryThreadCycleTime(threadhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> super::super::Foundation:: BOOL); - QueryThreadCycleTime(threadhandle.into_param().abi(), cycletime).ok() + QueryThreadCycleTime(threadhandle.param().abi(), cycletime).ok() } #[inline] pub unsafe fn QueryUnbiasedInterruptTime(unbiasedtime: *mut u64) -> super::super::Foundation::BOOL { @@ -871,22 +871,22 @@ pub unsafe fn RaiseCustomSystemEventTrigger(customsystemeventtriggerconfig: *con #[inline] pub unsafe fn RebootCheckOnInstallA(hwnd: P0, pszinf: P1, pszsec: P2, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), pszinf.into_param().abi(), pszsec.into_param().abi(), dwreserved).ok() + RebootCheckOnInstallA(hwnd.param().abi(), pszinf.param().abi(), pszsec.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn RebootCheckOnInstallW(hwnd: P0, pszinf: P1, pszsec: P2, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), pszinf.into_param().abi(), pszsec.into_param().abi(), dwreserved).ok() + RebootCheckOnInstallW(hwnd.param().abi(), pszinf.param().abi(), pszsec.param().abi(), dwreserved).ok() } #[inline] pub unsafe fn RecordFeatureError(featureid: u32, error: *const FEATURE_ERROR) { @@ -896,132 +896,132 @@ pub unsafe fn RecordFeatureError(featureid: u32, error: *const FEATURE_ERROR) { #[inline] pub unsafe fn RecordFeatureUsage(featureid: u32, kind: u32, addend: u32, originname: P0) where - P0: windows_core::IntoParam, + P0: 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(featureid, kind, addend, originname.into_param().abi()) + RecordFeatureUsage(featureid, kind, addend, originname.param().abi()) } #[inline] pub unsafe fn RegInstallA(hmod: P0, pszsection: P1, psttable: *const STRTABLEA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmod.into_param().abi(), pszsection.into_param().abi(), psttable).ok() + RegInstallA(hmod.param().abi(), pszsection.param().abi(), psttable).ok() } #[inline] pub unsafe fn RegInstallW(hmod: P0, pszsection: P1, psttable: *const STRTABLEW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hmod.into_param().abi(), pszsection.into_param().abi(), psttable).ok() + RegInstallW(hmod.param().abi(), pszsection.param().abi(), psttable).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn RegRestoreAllA(hwnd: P0, psztitlestring: P1, hkbckupkey: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), psztitlestring.into_param().abi(), hkbckupkey.into_param().abi()).ok() + RegRestoreAllA(hwnd.param().abi(), psztitlestring.param().abi(), hkbckupkey.param().abi()).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn RegRestoreAllW(hwnd: P0, psztitlestring: P1, hkbckupkey: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), psztitlestring.into_param().abi(), hkbckupkey.into_param().abi()).ok() + RegRestoreAllW(hwnd.param().abi(), psztitlestring.param().abi(), hkbckupkey.param().abi()).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn RegSaveRestoreA(hwnd: P0, psztitlestring: P1, hkbckupkey: P2, pcszrootkey: P3, pcszsubkey: P4, pcszvaluename: P5, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwnd.into_param().abi(), psztitlestring.into_param().abi(), hkbckupkey.into_param().abi(), pcszrootkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvaluename.into_param().abi(), dwflags).ok() + RegSaveRestoreA(hwnd.param().abi(), psztitlestring.param().abi(), hkbckupkey.param().abi(), pcszrootkey.param().abi(), pcszsubkey.param().abi(), pcszvaluename.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn RegSaveRestoreOnINFA(hwnd: P0, psztitle: P1, pszinf: P2, pszsection: P3, hhklmbackkey: P4, hhkcubackkey: P5, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(hwnd.into_param().abi(), psztitle.into_param().abi(), pszinf.into_param().abi(), pszsection.into_param().abi(), hhklmbackkey.into_param().abi(), hhkcubackkey.into_param().abi(), dwflags).ok() + RegSaveRestoreOnINFA(hwnd.param().abi(), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), hhklmbackkey.param().abi(), hhkcubackkey.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn RegSaveRestoreOnINFW(hwnd: P0, psztitle: P1, pszinf: P2, pszsection: P3, hhklmbackkey: P4, hhkcubackkey: P5, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(hwnd.into_param().abi(), psztitle.into_param().abi(), pszinf.into_param().abi(), pszsection.into_param().abi(), hhklmbackkey.into_param().abi(), hhkcubackkey.into_param().abi(), dwflags).ok() + RegSaveRestoreOnINFW(hwnd.param().abi(), psztitle.param().abi(), pszinf.param().abi(), pszsection.param().abi(), hhklmbackkey.param().abi(), hhkcubackkey.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn RegSaveRestoreW(hwnd: P0, psztitlestring: P1, hkbckupkey: P2, pcszrootkey: P3, pcszsubkey: P4, pcszvaluename: P5, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + 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(hwnd.into_param().abi(), psztitlestring.into_param().abi(), hkbckupkey.into_param().abi(), pcszrootkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvaluename.into_param().abi(), dwflags).ok() + RegSaveRestoreW(hwnd.param().abi(), psztitlestring.param().abi(), hkbckupkey.param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), sparepartition.into_param().abi(), flags) + ReplacePartitionUnit(targetpartition.param().abi(), sparepartition.param().abi(), flags) } #[inline] pub unsafe fn RequestDeviceWakeup(hdevice: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn RequestDeviceWakeup(hdevice : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - RequestDeviceWakeup(hdevice.into_param().abi()) + RequestDeviceWakeup(hdevice.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlAnsiStringToUnicodeString(destinationstring: *mut super::super::Foundation::UNICODE_STRING, sourcestring: *mut super::Kernel::STRING, allocatedestinationstring: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlAnsiStringToUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : *mut super::Kernel:: STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); - RtlAnsiStringToUnicodeString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlAnsiStringToUnicodeString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlCharToInteger(string: *mut i8, base: u32, value: *mut u32) -> super::super::Foundation::NTSTATUS { @@ -1077,10 +1077,10 @@ pub unsafe fn RtlInitStringEx(destinationstring: *mut super::Kernel::STRING, sou #[inline] pub unsafe fn RtlInitUnicodeString(destinationstring: *mut super::super::Foundation::UNICODE_STRING, sourcestring: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlInitUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : windows_core::PCWSTR)); - RtlInitUnicodeString(destinationstring, sourcestring.into_param().abi()) + RtlInitUnicodeString(destinationstring, sourcestring.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] @@ -1107,27 +1107,27 @@ 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: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToAnsiString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); - RtlUnicodeStringToAnsiString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUnicodeStringToAnsiString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToOemString(destinationstring: *mut super::Kernel::STRING, sourcestring: *mut super::super::Foundation::UNICODE_STRING, allocatedestinationstring: P0) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToOemString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); - RtlUnicodeStringToOemString(destinationstring, sourcestring, allocatedestinationstring.into_param().abi()) + RtlUnicodeStringToOemString(destinationstring, sourcestring, allocatedestinationstring.param().abi()) } #[inline] pub unsafe fn RtlUnicodeToMultiByteSize(bytesinmultibytestring: *mut u32, unicodestring: P0, bytesinunicodestring: u32) -> super::super::Foundation::NTSTATUS where - P0: windows_core::IntoParam, + P0: 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(bytesinmultibytestring, unicodestring.into_param().abi(), bytesinunicodestring) + RtlUnicodeToMultiByteSize(bytesinmultibytestring, unicodestring.param().abi(), bytesinunicodestring) } #[inline] pub unsafe fn RtlUniform(seed: *mut u32) -> u32 { @@ -1137,88 +1137,88 @@ pub unsafe fn RtlUniform(seed: *mut u32) -> u32 { #[inline] pub unsafe fn RunSetupCommandA(hwnd: P0, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwnd.into_param().abi(), szcmdname.into_param().abi(), szinfsection.into_param().abi(), szdir.into_param().abi(), lpsztitle.into_param().abi(), phexe, dwflags, pvreserved).ok() + RunSetupCommandA(hwnd.param().abi(), szcmdname.param().abi(), szinfsection.param().abi(), szdir.param().abi(), lpsztitle.param().abi(), phexe, dwflags, pvreserved).ok() } #[inline] pub unsafe fn RunSetupCommandW(hwnd: P0, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwnd.into_param().abi(), szcmdname.into_param().abi(), szinfsection.into_param().abi(), szdir.into_param().abi(), lpsztitle.into_param().abi(), phexe, dwflags, pvreserved).ok() + RunSetupCommandW(hwnd.param().abi(), szcmdname.param().abi(), szinfsection.param().abi(), szdir.param().abi(), lpsztitle.param().abi(), phexe, dwflags, pvreserved).ok() } #[inline] pub unsafe fn SendIMEMessageExA(param0: P0, param1: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SendIMEMessageExA(param0 : super::super::Foundation:: HWND, param1 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendIMEMessageExA(param0.into_param().abi(), param1.into_param().abi()) + SendIMEMessageExA(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn SendIMEMessageExW(param0: P0, param1: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SendIMEMessageExW(param0 : super::super::Foundation:: HWND, param1 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LRESULT); - SendIMEMessageExW(param0.into_param().abi(), param1.into_param().abi()) + SendIMEMessageExW(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn SetEnvironmentStringsA(newenvironment: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentStringsA(newenvironment : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - SetEnvironmentStringsA(newenvironment.into_param().abi()) + SetEnvironmentStringsA(newenvironment.param().abi()) } #[inline] pub unsafe fn SetFirmwareEnvironmentVariableA(lpname: P0, lpguid: P1, pvalue: Option<*const core::ffi::c_void>, nsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), nsize).ok() + SetFirmwareEnvironmentVariableA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), nsize, dwattributes).ok() + SetFirmwareEnvironmentVariableExA(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), nsize, dwattributes).ok() + SetFirmwareEnvironmentVariableExW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), nsize, dwattributes).ok() } #[inline] pub unsafe fn SetFirmwareEnvironmentVariableW(lpname: P0, lpguid: P1, pvalue: Option<*const core::ffi::c_void>, nsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpguid.into_param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), nsize).ok() + SetFirmwareEnvironmentVariableW(lpname.param().abi(), lpguid.param().abi(), core::mem::transmute(pvalue.unwrap_or(std::ptr::null())), nsize).ok() } #[inline] pub unsafe fn SetHandleCount(unumber: u32) -> u32 { @@ -1228,10 +1228,10 @@ pub unsafe fn SetHandleCount(unumber: u32) -> u32 { #[inline] pub unsafe fn SetMessageWaitingIndicator(hmsgindicator: P0, ulmsgcount: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn SetMessageWaitingIndicator(hmsgindicator : super::super::Foundation:: HANDLE, ulmsgcount : u32) -> super::super::Foundation:: BOOL); - SetMessageWaitingIndicator(hmsgindicator.into_param().abi(), ulmsgcount) + SetMessageWaitingIndicator(hmsgindicator.param().abi(), ulmsgcount) } #[inline] pub unsafe fn SetPerUserSecValuesA(pperuser: *mut PERUSERSECTIONA) -> windows_core::Result<()> { @@ -1251,189 +1251,189 @@ pub unsafe fn SubscribeFeatureStateChangeNotification(subscription: *mut FEATURE #[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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn TranslateInfStringA(pszinffilename : windows_core::PCSTR, pszinstallsection : windows_core::PCSTR, psztranslatesection : windows_core::PCSTR, psztranslatekey : windows_core::PCSTR, pszbuffer : windows_core::PSTR, cchbuffer : u32, pdwrequiredsize : *mut u32, pvreserved : *const core::ffi::c_void) -> windows_core::HRESULT); - TranslateInfStringA(pszinffilename.into_param().abi(), pszinstallsection.into_param().abi(), psztranslatesection.into_param().abi(), psztranslatekey.into_param().abi(), core::mem::transmute(pszbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + TranslateInfStringA(pszinffilename.param().abi(), pszinstallsection.param().abi(), psztranslatesection.param().abi(), psztranslatekey.param().abi(), core::mem::transmute(pszbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn TranslateInfStringExA(hinf: *mut core::ffi::c_void, pszinffilename: P0, psztranslatesection: P1, psztranslatekey: P2, pszbuffer: &mut [u8], pdwrequiredsize: *mut u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn TranslateInfStringExA(hinf : *mut core::ffi::c_void, pszinffilename : windows_core::PCSTR, psztranslatesection : windows_core::PCSTR, psztranslatekey : windows_core::PCSTR, pszbuffer : windows_core::PSTR, dwbuffersize : u32, pdwrequiredsize : *mut u32, pvreserved : *const core::ffi::c_void) -> windows_core::HRESULT); - TranslateInfStringExA(hinf, pszinffilename.into_param().abi(), psztranslatesection.into_param().abi(), psztranslatekey.into_param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + TranslateInfStringExA(hinf, pszinffilename.param().abi(), psztranslatesection.param().abi(), psztranslatekey.param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn TranslateInfStringExW(hinf: *mut core::ffi::c_void, pszinffilename: P0, psztranslatesection: P1, psztranslatekey: P2, pszbuffer: &mut [u16], pdwrequiredsize: *mut u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn TranslateInfStringExW(hinf : *mut core::ffi::c_void, pszinffilename : windows_core::PCWSTR, psztranslatesection : windows_core::PCWSTR, psztranslatekey : windows_core::PCWSTR, pszbuffer : windows_core::PWSTR, dwbuffersize : u32, pdwrequiredsize : *mut u32, pvreserved : *const core::ffi::c_void) -> windows_core::HRESULT); - TranslateInfStringExW(hinf, pszinffilename.into_param().abi(), psztranslatesection.into_param().abi(), psztranslatekey.into_param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + TranslateInfStringExW(hinf, pszinffilename.param().abi(), psztranslatesection.param().abi(), psztranslatekey.param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap(), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn TranslateInfStringW(pszinffilename: P0, pszinstallsection: P1, psztranslatesection: P2, psztranslatekey: P3, pszbuffer: Option<&mut [u16]>, pdwrequiredsize: *mut u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("advpack.dll" "system" fn TranslateInfStringW(pszinffilename : windows_core::PCWSTR, pszinstallsection : windows_core::PCWSTR, psztranslatesection : windows_core::PCWSTR, psztranslatekey : windows_core::PCWSTR, pszbuffer : windows_core::PWSTR, cchbuffer : u32, pdwrequiredsize : *mut u32, pvreserved : *const core::ffi::c_void) -> windows_core::HRESULT); - TranslateInfStringW(pszinffilename.into_param().abi(), pszinstallsection.into_param().abi(), psztranslatesection.into_param().abi(), psztranslatekey.into_param().abi(), core::mem::transmute(pszbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + TranslateInfStringW(pszinffilename.param().abi(), pszinstallsection.param().abi(), psztranslatesection.param().abi(), psztranslatekey.param().abi(), core::mem::transmute(pszbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pdwrequiredsize, core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn UnsubscribeFeatureStateChangeNotification(subscription: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-featurestaging-l1-1-0.dll" "system" fn UnsubscribeFeatureStateChangeNotification(subscription : FEATURE_STATE_CHANGE_SUBSCRIPTION)); - UnsubscribeFeatureStateChangeNotification(subscription.into_param().abi()) + UnsubscribeFeatureStateChangeNotification(subscription.param().abi()) } #[inline] pub unsafe fn UserInstStubWrapperA(hwnd: P0, hinstance: P1, pszparms: P2, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinstance.into_param().abi(), pszparms.into_param().abi(), nshow).ok() + UserInstStubWrapperA(hwnd.param().abi(), hinstance.param().abi(), pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn UserInstStubWrapperW(hwnd: P0, hinstance: P1, pszparms: P2, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinstance.into_param().abi(), pszparms.into_param().abi(), nshow).ok() + UserInstStubWrapperW(hwnd.param().abi(), hinstance.param().abi(), pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn UserUnInstStubWrapperA(hwnd: P0, hinstance: P1, pszparms: P2, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinstance.into_param().abi(), pszparms.into_param().abi(), nshow).ok() + UserUnInstStubWrapperA(hwnd.param().abi(), hinstance.param().abi(), pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn UserUnInstStubWrapperW(hwnd: P0, hinstance: P1, pszparms: P2, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), hinstance.into_param().abi(), pszparms.into_param().abi(), nshow).ok() + UserUnInstStubWrapperW(hwnd.param().abi(), hinstance.param().abi(), pszparms.param().abi(), nshow).ok() } #[inline] pub unsafe fn WINNLSEnableIME(param0: P0, param1: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn WINNLSEnableIME(param0 : super::super::Foundation:: HWND, param1 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WINNLSEnableIME(param0.into_param().abi(), param1.into_param().abi()) + WINNLSEnableIME(param0.param().abi(), param1.param().abi()) } #[inline] pub unsafe fn WINNLSGetEnableStatus(param0: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn WINNLSGetEnableStatus(param0 : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - WINNLSGetEnableStatus(param0.into_param().abi()) + WINNLSGetEnableStatus(param0.param().abi()) } #[inline] pub unsafe fn WINNLSGetIMEHotkey(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn WINNLSGetIMEHotkey(param0 : super::super::Foundation:: HWND) -> u32); - WINNLSGetIMEHotkey(param0.into_param().abi()) + WINNLSGetIMEHotkey(param0.param().abi()) } #[inline] pub unsafe fn WinWatchClose(hww: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dciman32.dll" "system" fn WinWatchClose(hww : HWINWATCH)); - WinWatchClose(hww.into_param().abi()) + WinWatchClose(hww.param().abi()) } #[inline] pub unsafe fn WinWatchDidStatusChange(hww: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dciman32.dll" "system" fn WinWatchDidStatusChange(hww : HWINWATCH) -> super::super::Foundation:: BOOL); - WinWatchDidStatusChange(hww.into_param().abi()) + WinWatchDidStatusChange(hww.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn WinWatchGetClipList(hww: P0, prc: *mut super::super::Foundation::RECT, size: u32, prd: *mut super::super::Graphics::Gdi::RGNDATA) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hww.into_param().abi(), prc, size, prd) + WinWatchGetClipList(hww.param().abi(), prc, size, prd) } #[inline] pub unsafe fn WinWatchNotify(hww: P0, notifycallback: WINWATCHNOTIFYPROC, notifyparam: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("dciman32.dll" "system" fn WinWatchNotify(hww : HWINWATCH, notifycallback : WINWATCHNOTIFYPROC, notifyparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - WinWatchNotify(hww.into_param().abi(), notifycallback, notifyparam.into_param().abi()) + WinWatchNotify(hww.param().abi(), notifycallback, notifyparam.param().abi()) } #[inline] pub unsafe fn WinWatchOpen(hwnd: P0) -> HWINWATCH where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("dciman32.dll" "system" fn WinWatchOpen(hwnd : super::super::Foundation:: HWND) -> HWINWATCH); - WinWatchOpen(hwnd.into_param().abi()) + WinWatchOpen(hwnd.param().abi()) } #[inline] pub unsafe fn WldpCanExecuteBuffer(host: *const windows_core::GUID, options: WLDP_EXECUTION_EVALUATION_OPTIONS, buffer: &[u8], auditinfo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - WldpCanExecuteBuffer(host, options, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), auditinfo.into_param().abi(), &mut result__).map(|| result__) + WldpCanExecuteBuffer(host, options, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), auditinfo.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WldpCanExecuteFile(host: *const windows_core::GUID, options: WLDP_EXECUTION_EVALUATION_OPTIONS, filehandle: P0, auditinfo: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WldpCanExecuteFile(host, options, filehandle.into_param().abi(), auditinfo.into_param().abi(), &mut result__).map(|| result__) + WldpCanExecuteFile(host, options, filehandle.param().abi(), auditinfo.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WldpCanExecuteStream(host: *const windows_core::GUID, options: WLDP_EXECUTION_EVALUATION_OPTIONS, stream: P0, auditinfo: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - WldpCanExecuteStream(host, options, stream.into_param().abi(), auditinfo.into_param().abi(), &mut result__).map(|| result__) + WldpCanExecuteStream(host, options, stream.param().abi(), auditinfo.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn WldpGetLockdownPolicy(hostinformation: Option<*const WLDP_HOST_INFORMATION>, lockdownstate: *mut u32, lockdownflags: u32) -> windows_core::Result<()> { @@ -1459,118 +1459,118 @@ pub unsafe fn WldpQueryDeviceSecurityInformation(information: Option<&mut [WLDP_ #[inline] pub unsafe fn WldpQueryDynamicCodeTrust(filehandle: P0, baseimage: Option<*const core::ffi::c_void>, imagesize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(filehandle.into_param().abi(), core::mem::transmute(baseimage.unwrap_or(std::ptr::null())), imagesize).ok() + WldpQueryDynamicCodeTrust(filehandle.param().abi(), core::mem::transmute(baseimage.unwrap_or(std::ptr::null())), imagesize).ok() } #[inline] pub unsafe fn WldpSetDynamicCodeTrust(filehandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("wldp.dll" "system" fn WldpSetDynamicCodeTrust(filehandle : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - WldpSetDynamicCodeTrust(filehandle.into_param().abi()).ok() + WldpSetDynamicCodeTrust(filehandle.param().abi()).ok() } #[inline] pub unsafe fn WritePrivateProfileSectionA(lpappname: P0, lpstring: P1, lpfilename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileSectionA(lpappname : windows_core::PCSTR, lpstring : windows_core::PCSTR, lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - WritePrivateProfileSectionA(lpappname.into_param().abi(), lpstring.into_param().abi(), lpfilename.into_param().abi()).ok() + WritePrivateProfileSectionA(lpappname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } #[inline] pub unsafe fn WritePrivateProfileSectionW(lpappname: P0, lpstring: P1, lpfilename: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileSectionW(lpappname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WritePrivateProfileSectionW(lpappname.into_param().abi(), lpstring.into_param().abi(), lpfilename.into_param().abi()).ok() + WritePrivateProfileSectionW(lpappname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } #[inline] pub unsafe fn WritePrivateProfileStringA(lpappname: P0, lpkeyname: P1, lpstring: P2, lpfilename: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpstring : windows_core::PCSTR, lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - WritePrivateProfileStringA(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpstring.into_param().abi(), lpfilename.into_param().abi()).ok() + WritePrivateProfileStringA(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } #[inline] pub unsafe fn WritePrivateProfileStringW(lpappname: P0, lpkeyname: P1, lpstring: P2, lpfilename: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WritePrivateProfileStringW(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpstring.into_param().abi(), lpfilename.into_param().abi()).ok() + WritePrivateProfileStringW(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } #[inline] pub unsafe fn WritePrivateProfileStructA(lpszsection: P0, lpszkey: P1, lpstruct: Option<*const core::ffi::c_void>, usizestruct: u32, szfile: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpszkey.into_param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null())), usizestruct, szfile.into_param().abi()).ok() + WritePrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null())), usizestruct, szfile.param().abi()).ok() } #[inline] pub unsafe fn WritePrivateProfileStructW(lpszsection: P0, lpszkey: P1, lpstruct: Option<*const core::ffi::c_void>, usizestruct: u32, szfile: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), lpszkey.into_param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null())), usizestruct, szfile.into_param().abi()).ok() + WritePrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), core::mem::transmute(lpstruct.unwrap_or(std::ptr::null())), usizestruct, szfile.param().abi()).ok() } #[inline] pub unsafe fn WriteProfileSectionA(lpappname: P0, lpstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WriteProfileSectionA(lpappname : windows_core::PCSTR, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - WriteProfileSectionA(lpappname.into_param().abi(), lpstring.into_param().abi()).ok() + WriteProfileSectionA(lpappname.param().abi(), lpstring.param().abi()).ok() } #[inline] pub unsafe fn WriteProfileSectionW(lpappname: P0, lpstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WriteProfileSectionW(lpappname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WriteProfileSectionW(lpappname.into_param().abi(), lpstring.into_param().abi()).ok() + WriteProfileSectionW(lpappname.param().abi(), lpstring.param().abi()).ok() } #[inline] pub unsafe fn WriteProfileStringA(lpappname: P0, lpkeyname: P1, lpstring: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WriteProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - WriteProfileStringA(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpstring.into_param().abi()).ok() + WriteProfileStringA(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi()).ok() } #[inline] pub unsafe fn WriteProfileStringW(lpappname: P0, lpkeyname: P1, lpstring: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn WriteProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - WriteProfileStringW(lpappname.into_param().abi(), lpkeyname.into_param().abi(), lpstring.into_param().abi()).ok() + WriteProfileStringW(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi()).ok() } #[inline] pub unsafe fn _hread(hfile: i32, lpbuffer: *mut core::ffi::c_void, lbytes: i32) -> i32 { @@ -1590,10 +1590,10 @@ pub unsafe fn _lclose(hfile: i32) -> i32 { #[inline] pub unsafe fn _lcreat(lppathname: P0, iattribute: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn _lcreat(lppathname : windows_core::PCSTR, iattribute : i32) -> i32); - _lcreat(lppathname.into_param().abi(), iattribute) + _lcreat(lppathname.param().abi(), iattribute) } #[inline] pub unsafe fn _llseek(hfile: i32, loffset: i32, iorigin: i32) -> i32 { @@ -1603,10 +1603,10 @@ pub unsafe fn _llseek(hfile: i32, loffset: i32, iorigin: i32) -> i32 { #[inline] pub unsafe fn _lopen(lppathname: P0, ireadwrite: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("kernel32.dll" "system" fn _lopen(lppathname : windows_core::PCSTR, ireadwrite : i32) -> i32); - _lopen(lppathname.into_param().abi(), ireadwrite) + _lopen(lppathname.param().abi(), ireadwrite) } #[inline] pub unsafe fn _lread(hfile: i32, lpbuffer: *mut core::ffi::c_void, ubytes: u32) -> u32 { @@ -1671,11 +1671,11 @@ windows_core::imp::interface_hierarchy!(ICameraUIControl, windows_core::IUnknown impl ICameraUIControl { pub unsafe fn Show(&self, pwindow: P0, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: P1, peventcallback: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pwindow.into_param().abi(), mode, selectionmode, capturemode, photoformat, videoformat, bhasclosebutton.into_param().abi(), peventcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pwindow.param().abi(), mode, selectionmode, capturemode, photoformat, videoformat, bhasclosebutton.param().abi(), 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() @@ -1701,9 +1701,9 @@ impl ICameraUIControl { } pub unsafe fn RemoveCapturedItem(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveCapturedItem)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveCapturedItem)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } } #[repr(C)] @@ -1732,15 +1732,15 @@ impl ICameraUIControlEventCallback { } pub unsafe fn OnItemCaptured(&self, pszpath: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemCaptured)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()) + (windows_core::Interface::vtable(self).OnItemCaptured)(windows_core::Interface::as_raw(self), pszpath.param().abi()) } pub unsafe fn OnItemDeleted(&self, pszpath: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemDeleted)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()) + (windows_core::Interface::vtable(self).OnItemDeleted)(windows_core::Interface::as_raw(self), pszpath.param().abi()) } pub unsafe fn OnClosed(&self) { (windows_core::Interface::vtable(self).OnClosed)(windows_core::Interface::as_raw(self)) @@ -1760,13 +1760,13 @@ windows_core::imp::interface_hierarchy!(IClipServiceNotificationHelper, windows_ impl IClipServiceNotificationHelper { pub unsafe fn ShowToast(&self, titletext: P0, bodytext: P1, packagename: P2, appid: P3, launchcommand: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowToast)(windows_core::Interface::as_raw(self), titletext.into_param().abi(), bodytext.into_param().abi(), packagename.into_param().abi(), appid.into_param().abi(), launchcommand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowToast)(windows_core::Interface::as_raw(self), titletext.param().abi(), bodytext.param().abi(), packagename.param().abi(), appid.param().abi(), launchcommand.param().abi()).ok() } } #[repr(C)] @@ -1817,15 +1817,15 @@ impl IEditionUpgradeBroker { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn InitializeParentWindow(&self, parenthandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeParentWindow)(windows_core::Interface::as_raw(self), parenthandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeParentWindow)(windows_core::Interface::as_raw(self), parenthandle.param().abi()).ok() } pub unsafe fn UpdateOperatingSystem(&self, parameter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOperatingSystem)(windows_core::Interface::as_raw(self), parameter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOperatingSystem)(windows_core::Interface::as_raw(self), parameter.param().abi()).ok() } pub unsafe fn ShowProductKeyUI(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShowProductKeyUI)(windows_core::Interface::as_raw(self)).ok() @@ -1854,9 +1854,9 @@ impl IEditionUpgradeHelper { } pub unsafe fn UpdateOperatingSystem(&self, contentid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateOperatingSystem)(windows_core::Interface::as_raw(self), contentid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateOperatingSystem)(windows_core::Interface::as_raw(self), contentid.param().abi()).ok() } pub unsafe fn ShowProductKeyUI(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShowProductKeyUI)(windows_core::Interface::as_raw(self)).ok() @@ -1884,10 +1884,10 @@ windows_core::imp::interface_hierarchy!(IFClipNotificationHelper, windows_core:: impl IFClipNotificationHelper { pub unsafe fn ShowSystemDialog(&self, titletext: P0, bodytext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowSystemDialog)(windows_core::Interface::as_raw(self), titletext.into_param().abi(), bodytext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowSystemDialog)(windows_core::Interface::as_raw(self), titletext.param().abi(), bodytext.param().abi()).ok() } } #[repr(C)] 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 32aa1b2334..8068da5397 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs @@ -6,21 +6,21 @@ impl IAsynchronousDataRetriever { } pub unsafe fn RegisterCallback(&self, pdataretrievercallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterCallback)(windows_core::Interface::as_raw(self), pdataretrievercallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterCallback)(windows_core::Interface::as_raw(self), pdataretrievercallback.param().abi()).ok() } pub unsafe fn RevokeCallback(&self, pdataretrievercallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RevokeCallback)(windows_core::Interface::as_raw(self), pdataretrievercallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RevokeCallback)(windows_core::Interface::as_raw(self), pdataretrievercallback.param().abi()).ok() } pub unsafe fn LoadChangeData(&self, ploadchangecontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadChangeData)(windows_core::Interface::as_raw(self), ploadchangecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadChangeData)(windows_core::Interface::as_raw(self), ploadchangecontext.param().abi()).ok() } } #[repr(C)] @@ -58,15 +58,15 @@ impl IChangeConflict { } pub unsafe fn GetResolveActionForChangeUnit(&self, pchangeunit: P0, presolveaction: *mut SYNC_RESOLVE_ACTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.into_param().abi(), presolveaction).ok() + (windows_core::Interface::vtable(self).GetResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), presolveaction).ok() } pub unsafe fn SetResolveActionForChangeUnit(&self, pchangeunit: P0, resolveaction: SYNC_RESOLVE_ACTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.into_param().abi(), resolveaction).ok() + (windows_core::Interface::vtable(self).SetResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), resolveaction).ok() } } #[repr(C)] @@ -215,15 +215,15 @@ impl IConstraintConflict { } pub unsafe fn GetConstraintResolveActionForChangeUnit(&self, pchangeunit: P0, pconstraintresolveaction: *mut SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConstraintResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.into_param().abi(), pconstraintresolveaction).ok() + (windows_core::Interface::vtable(self).GetConstraintResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), pconstraintresolveaction).ok() } pub unsafe fn SetConstraintResolveActionForChangeUnit(&self, pchangeunit: P0, constraintresolveaction: SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConstraintResolveActionForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.into_param().abi(), 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), pconstraintconflictreason).ok() @@ -325,9 +325,9 @@ windows_core::imp::interface_hierarchy!(IDataRetrieverCallback, windows_core::IU impl IDataRetrieverCallback { pub unsafe fn LoadChangeDataComplete(&self, punkdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadChangeDataComplete)(windows_core::Interface::as_raw(self), punkdata.into_param().abi()).ok() + (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), hrerror).ok() @@ -636,9 +636,9 @@ impl IFilterKeyMap { } pub unsafe fn AddFilter(&self, pisyncfilter: P0, pdwfilterkey: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pisyncfilter.into_param().abi(), pdwfilterkey).ok() + (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pisyncfilter.param().abi(), pdwfilterkey).ok() } pub unsafe fn GetFilter(&self, dwfilterkey: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -661,9 +661,9 @@ windows_core::imp::interface_hierarchy!(IFilterRequestCallback, windows_core::IU impl IFilterRequestCallback { pub unsafe fn RequestFilter(&self, pfilter: P0, filteringtype: FILTERING_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), filteringtype).ok() + (windows_core::Interface::vtable(self).RequestFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), filteringtype).ok() } } #[repr(C)] @@ -676,15 +676,15 @@ windows_core::imp::interface_hierarchy!(IFilterTrackingProvider, windows_core::I impl IFilterTrackingProvider { pub unsafe fn SpecifyTrackedFilters(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SpecifyTrackedFilters)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SpecifyTrackedFilters)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } pub unsafe fn AddTrackedFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTrackedFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTrackedFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } } #[repr(C)] @@ -698,9 +698,9 @@ windows_core::imp::interface_hierarchy!(IFilterTrackingRequestCallback, windows_ impl IFilterTrackingRequestCallback { pub unsafe fn RequestTrackedFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestTrackedFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RequestTrackedFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } } #[repr(C)] @@ -732,9 +732,9 @@ impl IForgottenKnowledge { } pub unsafe fn Serialize(&self, fserializereplicakeymap: P0, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Serialize)(windows_core::Interface::as_raw(self), fserializereplicakeymap.into_param().abi(), pbknowledge, pcbknowledge).ok() + (windows_core::Interface::vtable(self).base__.Serialize)(windows_core::Interface::as_raw(self), fserializereplicakeymap.param().abi(), pbknowledge, pcbknowledge).ok() } pub unsafe fn SetLocalTickCount(&self, ulltickcount: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetLocalTickCount)(windows_core::Interface::as_raw(self), ulltickcount).ok() @@ -758,22 +758,22 @@ impl IForgottenKnowledge { } pub unsafe fn ConvertVersion(&self, pknowledgein: P0, pbcurrentownerid: *const u8, pversionin: *const SYNC_VERSION, pbnewownerid: *mut u8, pcbidsize: *mut u32, pversionout: *mut SYNC_VERSION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.into_param().abi(), pbcurrentownerid, pversionin, pbnewownerid, pcbidsize, pversionout).ok() + (windows_core::Interface::vtable(self).base__.ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.param().abi(), pbcurrentownerid, pversionin, pbnewownerid, pcbidsize, pversionout).ok() } pub unsafe fn MapRemoteToLocal(&self, premoteknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MapRemoteToLocal)(windows_core::Interface::as_raw(self), premoteknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MapRemoteToLocal)(windows_core::Interface::as_raw(self), premoteknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Union(&self, pknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Union)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Union)(windows_core::Interface::as_raw(self), pknowledge.param().abi()).ok() } pub unsafe fn ProjectOntoItem(&self, pbitemid: *const u8) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -795,9 +795,9 @@ impl IForgottenKnowledge { } pub unsafe fn ContainsKnowledge(&self, pknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContainsKnowledge)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.FindMinTickCountForReplica)(windows_core::Interface::as_raw(self), pbreplicaid, pullreplicatickcount).ok() @@ -822,9 +822,9 @@ impl IForgottenKnowledge { } pub unsafe fn ForgetToVersion(&self, pknowledge: P0, pversion: *const SYNC_VERSION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ForgetToVersion)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi(), pversion).ok() + (windows_core::Interface::vtable(self).ForgetToVersion)(windows_core::Interface::as_raw(self), pknowledge.param().abi(), pversion).ok() } } #[repr(C)] @@ -840,46 +840,46 @@ impl IKnowledgeSyncProvider { } pub unsafe fn BeginSession(&self, role: SYNC_PROVIDER_ROLE, psessionstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginSession)(windows_core::Interface::as_raw(self), role, psessionstate.into_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), pdwrequestedbatchsize).ok() } pub unsafe fn GetChangeBatch(&self, dwbatchsize: u32, psyncknowledge: P0, ppsyncchangebatch: *mut Option, ppunkdataretriever: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetChangeBatch)(windows_core::Interface::as_raw(self), dwbatchsize, psyncknowledge.into_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: P0, ppsyncchangebatch: *mut Option, ppunkdataretriever: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFullEnumerationChangeBatch)(windows_core::Interface::as_raw(self), dwbatchsize, pblowerenumerationbound, psyncknowledge.into_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: P0, punkdataretriever: P1, pcallback: P2, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessChangeBatch)(windows_core::Interface::as_raw(self), resolutionpolicy, psourcechangebatch.into_param().abi(), punkdataretriever.into_param().abi(), pcallback.into_param().abi(), psyncsessionstatistics).ok() + (windows_core::Interface::vtable(self).ProcessChangeBatch)(windows_core::Interface::as_raw(self), resolutionpolicy, psourcechangebatch.param().abi(), punkdataretriever.param().abi(), pcallback.param().abi(), psyncsessionstatistics).ok() } pub unsafe fn ProcessFullEnumerationChangeBatch(&self, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: P0, punkdataretriever: P1, pcallback: P2, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessFullEnumerationChangeBatch)(windows_core::Interface::as_raw(self), resolutionpolicy, psourcechangebatch.into_param().abi(), punkdataretriever.into_param().abi(), pcallback.into_param().abi(), psyncsessionstatistics).ok() + (windows_core::Interface::vtable(self).ProcessFullEnumerationChangeBatch)(windows_core::Interface::as_raw(self), resolutionpolicy, psourcechangebatch.param().abi(), punkdataretriever.param().abi(), pcallback.param().abi(), psyncsessionstatistics).ok() } pub unsafe fn EndSession(&self, psessionstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), psessionstate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), psessionstate.param().abi()).ok() } } #[repr(C)] @@ -902,16 +902,16 @@ impl ILoadChangeContext { } pub unsafe fn SetRecoverableErrorOnChange(&self, hrerror: windows_core::HRESULT, perrordata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecoverableErrorOnChange)(windows_core::Interface::as_raw(self), hrerror, perrordata.into_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: P0, perrordata: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecoverableErrorOnChangeUnit)(windows_core::Interface::as_raw(self), hrerror, pchangeunit.into_param().abi(), perrordata.into_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)] @@ -926,9 +926,9 @@ windows_core::imp::interface_hierarchy!(IProviderConverter, windows_core::IUnkno impl IProviderConverter { pub unsafe fn Initialize(&self, pisyncprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisyncprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisyncprovider.param().abi()).ok() } } #[repr(C)] @@ -974,9 +974,9 @@ impl IRecoverableError { } pub unsafe fn GetRecoverableErrorDataForChangeUnit(&self, pchangeunit: P0, phrerror: *mut windows_core::HRESULT, pperrordata: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRecoverableErrorDataForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.into_param().abi(), phrerror, core::mem::transmute(pperrordata)).ok() + (windows_core::Interface::vtable(self).GetRecoverableErrorDataForChangeUnit)(windows_core::Interface::as_raw(self), pchangeunit.param().abi(), phrerror, core::mem::transmute(pperrordata)).ok() } } #[repr(C)] @@ -993,22 +993,22 @@ windows_core::imp::interface_hierarchy!(IRecoverableErrorData, windows_core::IUn impl IRecoverableErrorData { pub unsafe fn Initialize(&self, pcszitemdisplayname: P0, pcszerrordescription: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pcszitemdisplayname.into_param().abi(), pcszerrordescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pcszitemdisplayname.param().abi(), pcszerrordescription.param().abi()).ok() } pub unsafe fn GetItemDisplayName(&self, pszitemdisplayname: P0, pcchitemdisplayname: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetItemDisplayName)(windows_core::Interface::as_raw(self), pszitemdisplayname.into_param().abi(), pcchitemdisplayname).ok() + (windows_core::Interface::vtable(self).GetItemDisplayName)(windows_core::Interface::as_raw(self), pszitemdisplayname.param().abi(), pcchitemdisplayname).ok() } pub unsafe fn GetErrorDescription(&self, pszerrordescription: P0, pccherrordescription: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), pszerrordescription.into_param().abi(), pccherrordescription).ok() + (windows_core::Interface::vtable(self).GetErrorDescription)(windows_core::Interface::as_raw(self), pszerrordescription.param().abi(), pccherrordescription).ok() } } #[repr(C)] @@ -1024,9 +1024,9 @@ impl IRegisteredSyncProvider { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Init(&self, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pcontextpropertystore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pguidinstanceid, pguidcontenttype, pcontextpropertystore.into_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__ = std::mem::zeroed(); @@ -1071,9 +1071,9 @@ windows_core::imp::interface_hierarchy!(IRequestFilteredSync, windows_core::IUnk impl IRequestFilteredSync { pub unsafe fn SpecifyFilter(&self, pcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SpecifyFilter)(windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SpecifyFilter)(windows_core::Interface::as_raw(self), pcallback.param().abi()).ok() } } #[repr(C)] @@ -1102,9 +1102,9 @@ windows_core::imp::interface_hierarchy!(ISupportFilteredSync, windows_core::IUnk impl ISupportFilteredSync { pub unsafe fn AddFilter(&self, pfilter: P0, filteringtype: FILTERING_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi(), filteringtype).ok() + (windows_core::Interface::vtable(self).AddFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi(), filteringtype).ok() } } #[repr(C)] @@ -1136,24 +1136,24 @@ impl ISyncCallback { } pub unsafe fn OnChange(&self, psyncchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), psyncchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), psyncchange.param().abi()).ok() } pub unsafe fn OnConflict(&self, pconflict: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConflict)(windows_core::Interface::as_raw(self), pconflict.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConflict)(windows_core::Interface::as_raw(self), pconflict.param().abi()).ok() } pub unsafe fn OnFullEnumerationNeeded(&self, pfullenumerationaction: *mut SYNC_FULL_ENUMERATION_ACTION) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnFullEnumerationNeeded)(windows_core::Interface::as_raw(self), pfullenumerationaction).ok() } pub unsafe fn OnRecoverableError(&self, precoverableerror: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnRecoverableError)(windows_core::Interface::as_raw(self), precoverableerror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnRecoverableError)(windows_core::Interface::as_raw(self), precoverableerror.param().abi()).ok() } } #[repr(C)] @@ -1173,24 +1173,24 @@ impl ISyncCallback2 { } pub unsafe fn OnChange(&self, psyncchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnChange)(windows_core::Interface::as_raw(self), psyncchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnChange)(windows_core::Interface::as_raw(self), psyncchange.param().abi()).ok() } pub unsafe fn OnConflict(&self, pconflict: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnConflict)(windows_core::Interface::as_raw(self), pconflict.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnConflict)(windows_core::Interface::as_raw(self), pconflict.param().abi()).ok() } pub unsafe fn OnFullEnumerationNeeded(&self, pfullenumerationaction: *mut SYNC_FULL_ENUMERATION_ACTION) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnFullEnumerationNeeded)(windows_core::Interface::as_raw(self), pfullenumerationaction).ok() } pub unsafe fn OnRecoverableError(&self, precoverableerror: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnRecoverableError)(windows_core::Interface::as_raw(self), precoverableerror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnRecoverableError)(windows_core::Interface::as_raw(self), precoverableerror.param().abi()).ok() } pub unsafe fn OnChangeApplied(&self, dwchangesapplied: u32, dwchangesfailed: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnChangeApplied)(windows_core::Interface::as_raw(self), dwchangesapplied, dwchangesfailed).ok() @@ -1277,9 +1277,9 @@ impl ISyncChangeBatch { } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1314,17 +1314,17 @@ impl ISyncChangeBatch { } pub unsafe fn EndUnorderedGroup(&self, pmadewithknowledge: P0, fallchangesforknowledge: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUnorderedGroup)(windows_core::Interface::as_raw(self), pmadewithknowledge.into_param().abi(), fallchangesforknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EndUnorderedGroup)(windows_core::Interface::as_raw(self), pmadewithknowledge.param().abi(), fallchangesforknowledge.param().abi()).ok() } pub unsafe fn AddLoggedConflict(&self, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, pconflictknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddLoggedConflict)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbitemid, pchangeversion, pcreationversion, dwflags, dwworkforchange, pconflictknowledge.into_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)] @@ -1355,9 +1355,9 @@ impl ISyncChangeBatch2 { } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -1392,17 +1392,17 @@ impl ISyncChangeBatch2 { } pub unsafe fn EndUnorderedGroup(&self, pmadewithknowledge: P0, fallchangesforknowledge: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndUnorderedGroup)(windows_core::Interface::as_raw(self), pmadewithknowledge.into_param().abi(), fallchangesforknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EndUnorderedGroup)(windows_core::Interface::as_raw(self), pmadewithknowledge.param().abi(), fallchangesforknowledge.param().abi()).ok() } pub unsafe fn AddLoggedConflict(&self, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, pconflictknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddLoggedConflict)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbitemid, pchangeversion, pcreationversion, dwflags, dwworkforchange, pconflictknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__)) } 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__ = std::mem::zeroed(); @@ -1410,10 +1410,10 @@ impl ISyncChangeBatch2 { } 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMergeTombstoneLoggedConflict)(windows_core::Interface::as_raw(self), pbownerreplicaid, pbwinneritemid, pbitemid, pchangeversion, pcreationversion, dwworkforchange, pconflictknowledge.into_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)] @@ -1469,9 +1469,9 @@ impl ISyncChangeBatchBase { } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.into_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__ = std::mem::zeroed(); @@ -1541,9 +1541,9 @@ impl ISyncChangeBatchBase2 { } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1591,55 +1591,55 @@ impl ISyncChangeBatchWithFilterKeyMap { } pub unsafe fn SetFilterKeyMap(&self, pifilterkeymap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilterKeyMap)(windows_core::Interface::as_raw(self), pifilterkeymap.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilterKeyMap)(windows_core::Interface::as_raw(self), pifilterkeymap.param().abi()).ok() } pub unsafe fn SetFilterForgottenKnowledge(&self, dwfilterkey: u32, pfilterforgottenknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), dwfilterkey, pfilterforgottenknowledge.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLearnedFilterForgottenKnowledge(&self, pdestinationknowledge: P0, pnewmoveins: P1, dwfilterkey: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(&self, pdestinationknowledge: P0, pnewmoveins: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(&self, pdestinationknowledge: P0, pnewmoveins: P1, dwfilterkey: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), 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)] @@ -1675,9 +1675,9 @@ impl ISyncChangeBatchWithPrerequisite { } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1709,16 +1709,16 @@ impl ISyncChangeBatchWithPrerequisite { } pub unsafe fn SetPrerequisiteKnowledge(&self, pprerequisiteknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrerequisiteKnowledge)(windows_core::Interface::as_raw(self), pprerequisiteknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrerequisiteKnowledge)(windows_core::Interface::as_raw(self), pprerequisiteknowledge.param().abi()).ok() } pub unsafe fn GetLearnedKnowledgeWithPrerequisite(&self, pdestinationknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedKnowledgeWithPrerequisite)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLearnedKnowledgeWithPrerequisite)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLearnedForgottenKnowledge(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1783,43 +1783,43 @@ impl ISyncChangeWithFilterKeyMap { } pub unsafe fn GetFilteredReplicaLearnedKnowledge(&self, pdestinationknowledge: P0, pnewmoveins: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLearnedFilterForgottenKnowledge(&self, pdestinationknowledge: P0, pnewmoveins: P1, dwfilterkey: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledge)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(&self, pdestinationknowledge: P0, pnewmoveins: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), pnewmoveins.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(&self, pdestinationknowledge: P0, pnewmoveins: P1, dwfilterkey: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), 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)] @@ -1844,10 +1844,10 @@ impl ISyncChangeWithPrerequisite { } pub unsafe fn GetLearnedKnowledgeWithPrerequisite(&self, pdestinationknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLearnedKnowledgeWithPrerequisite)(windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLearnedKnowledgeWithPrerequisite)(windows_core::Interface::as_raw(self), pdestinationknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1861,9 +1861,9 @@ windows_core::imp::interface_hierarchy!(ISyncConstraintCallback, windows_core::I impl ISyncConstraintCallback { pub unsafe fn OnConstraintConflict(&self, pconflict: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConstraintConflict)(windows_core::Interface::as_raw(self), pconflict.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnConstraintConflict)(windows_core::Interface::as_raw(self), pconflict.param().abi()).ok() } } #[repr(C)] @@ -1876,35 +1876,35 @@ windows_core::imp::interface_hierarchy!(ISyncDataConverter, windows_core::IUnkno impl ISyncDataConverter { pub unsafe fn ConvertDataRetrieverFromProviderFormat(&self, punkdataretrieverin: P0, penumsyncchanges: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConvertDataRetrieverFromProviderFormat)(windows_core::Interface::as_raw(self), punkdataretrieverin.into_param().abi(), penumsyncchanges.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConvertDataRetrieverFromProviderFormat)(windows_core::Interface::as_raw(self), punkdataretrieverin.param().abi(), penumsyncchanges.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ConvertDataRetrieverToProviderFormat(&self, punkdataretrieverin: P0, penumsyncchanges: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConvertDataRetrieverToProviderFormat)(windows_core::Interface::as_raw(self), punkdataretrieverin.into_param().abi(), penumsyncchanges.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConvertDataRetrieverToProviderFormat)(windows_core::Interface::as_raw(self), punkdataretrieverin.param().abi(), penumsyncchanges.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ConvertDataFromProviderFormat(&self, pdatacontext: P0, punkdatain: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConvertDataFromProviderFormat)(windows_core::Interface::as_raw(self), pdatacontext.into_param().abi(), punkdatain.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConvertDataFromProviderFormat)(windows_core::Interface::as_raw(self), pdatacontext.param().abi(), punkdatain.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ConvertDataToProviderFormat(&self, pdatacontext: P0, punkdataout: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConvertDataToProviderFormat)(windows_core::Interface::as_raw(self), pdatacontext.into_param().abi(), punkdataout.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConvertDataToProviderFormat)(windows_core::Interface::as_raw(self), pdatacontext.param().abi(), punkdataout.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1920,9 +1920,9 @@ windows_core::imp::interface_hierarchy!(ISyncFilter, windows_core::IUnknown); impl ISyncFilter { pub unsafe fn IsIdentical(&self, psyncfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsIdentical)(windows_core::Interface::as_raw(self), psyncfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsIdentical)(windows_core::Interface::as_raw(self), psyncfilter.param().abi()).ok() } pub unsafe fn Serialize(&self, pbsyncfilter: *mut u8, pcbsyncfilter: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pbsyncfilter, pcbsyncfilter).ok() @@ -2013,9 +2013,9 @@ impl ISyncFullEnumerationChangeBatch { } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -2084,9 +2084,9 @@ impl ISyncFullEnumerationChangeBatch2 { } pub unsafe fn EndOrderedGroup(&self, pbupperbound: *const u8, pmadewithknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EndOrderedGroup)(windows_core::Interface::as_raw(self), pbupperbound, pmadewithknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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__ = std::mem::zeroed(); @@ -2144,9 +2144,9 @@ impl ISyncKnowledge { } pub unsafe fn Serialize(&self, fserializereplicakeymap: P0, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), fserializereplicakeymap.into_param().abi(), pbknowledge, pcbknowledge).ok() + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), fserializereplicakeymap.param().abi(), pbknowledge, pcbknowledge).ok() } pub unsafe fn SetLocalTickCount(&self, ulltickcount: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetLocalTickCount)(windows_core::Interface::as_raw(self), ulltickcount).ok() @@ -2170,22 +2170,22 @@ impl ISyncKnowledge { } pub unsafe fn ConvertVersion(&self, pknowledgein: P0, pbcurrentownerid: *const u8, pversionin: *const SYNC_VERSION, pbnewownerid: *mut u8, pcbidsize: *mut u32, pversionout: *mut SYNC_VERSION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.into_param().abi(), pbcurrentownerid, pversionin, pbnewownerid, pcbidsize, pversionout).ok() + (windows_core::Interface::vtable(self).ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.param().abi(), pbcurrentownerid, pversionin, pbnewownerid, pcbidsize, pversionout).ok() } pub unsafe fn MapRemoteToLocal(&self, premoteknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MapRemoteToLocal)(windows_core::Interface::as_raw(self), premoteknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).MapRemoteToLocal)(windows_core::Interface::as_raw(self), premoteknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Union(&self, pknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Union)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Union)(windows_core::Interface::as_raw(self), pknowledge.param().abi()).ok() } pub unsafe fn ProjectOntoItem(&self, pbitemid: *const u8) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2207,9 +2207,9 @@ impl ISyncKnowledge { } pub unsafe fn ContainsKnowledge(&self, pknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContainsKnowledge)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi()).ok() + (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), pbreplicaid, pullreplicatickcount).ok() @@ -2269,9 +2269,9 @@ impl ISyncKnowledge2 { } pub unsafe fn Serialize(&self, fserializereplicakeymap: P0, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Serialize)(windows_core::Interface::as_raw(self), fserializereplicakeymap.into_param().abi(), pbknowledge, pcbknowledge).ok() + (windows_core::Interface::vtable(self).base__.Serialize)(windows_core::Interface::as_raw(self), fserializereplicakeymap.param().abi(), pbknowledge, pcbknowledge).ok() } pub unsafe fn SetLocalTickCount(&self, ulltickcount: u64) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetLocalTickCount)(windows_core::Interface::as_raw(self), ulltickcount).ok() @@ -2295,22 +2295,22 @@ impl ISyncKnowledge2 { } pub unsafe fn ConvertVersion(&self, pknowledgein: P0, pbcurrentownerid: *const u8, pversionin: *const SYNC_VERSION, pbnewownerid: *mut u8, pcbidsize: *mut u32, pversionout: *mut SYNC_VERSION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.into_param().abi(), pbcurrentownerid, pversionin, pbnewownerid, pcbidsize, pversionout).ok() + (windows_core::Interface::vtable(self).base__.ConvertVersion)(windows_core::Interface::as_raw(self), pknowledgein.param().abi(), pbcurrentownerid, pversionin, pbnewownerid, pcbidsize, pversionout).ok() } pub unsafe fn MapRemoteToLocal(&self, premoteknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.MapRemoteToLocal)(windows_core::Interface::as_raw(self), premoteknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.MapRemoteToLocal)(windows_core::Interface::as_raw(self), premoteknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Union(&self, pknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Union)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Union)(windows_core::Interface::as_raw(self), pknowledge.param().abi()).ok() } pub unsafe fn ProjectOntoItem(&self, pbitemid: *const u8) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2332,9 +2332,9 @@ impl ISyncKnowledge2 { } pub unsafe fn ContainsKnowledge(&self, pknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContainsKnowledge)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.FindMinTickCountForReplica)(windows_core::Interface::as_raw(self), pbreplicaid, pullreplicatickcount).ok() @@ -2369,9 +2369,9 @@ impl ISyncKnowledge2 { } pub unsafe fn GetLowestUncontainedId(&self, pisyncknowledge: P0, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetLowestUncontainedId)(windows_core::Interface::as_raw(self), pisyncknowledge.into_param().abi(), pbitemid, pcbitemidsize).ok() + (windows_core::Interface::vtable(self).GetLowestUncontainedId)(windows_core::Interface::as_raw(self), pisyncknowledge.param().abi(), pbitemid, 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), riid, ppiinspector).ok() @@ -2384,36 +2384,36 @@ impl ISyncKnowledge2 { } pub unsafe fn ContainsKnowledgeForItem(&self, pknowledge: P0, pbitemid: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContainsKnowledgeForItem)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContainsKnowledgeForChangeUnit)(windows_core::Interface::as_raw(self), pknowledge.into_param().abi(), pbitemid, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProjectOntoKnowledgeWithPrerequisite)(windows_core::Interface::as_raw(self), pprerequisiteknowledge.into_param().abi(), ptemplateknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ProjectOntoKnowledgeWithPrerequisite)(windows_core::Interface::as_raw(self), pprerequisiteknowledge.param().abi(), ptemplateknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Complement(&self, psyncknowledge: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Complement)(windows_core::Interface::as_raw(self), psyncknowledge.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Complement)(windows_core::Interface::as_raw(self), psyncknowledge.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IntersectsWithKnowledge(&self, psyncknowledge: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IntersectsWithKnowledge)(windows_core::Interface::as_raw(self), psyncknowledge.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IntersectsWithKnowledge)(windows_core::Interface::as_raw(self), psyncknowledge.param().abi()).ok() } pub unsafe fn GetKnowledgeCookie(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2421,9 +2421,9 @@ impl ISyncKnowledge2 { } pub unsafe fn CompareToKnowledgeCookie(&self, pknowledgecookie: P0, presult: *mut KNOWLEDGE_COOKIE_COMPARISON_RESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareToKnowledgeCookie)(windows_core::Interface::as_raw(self), pknowledgecookie.into_param().abi(), presult).ok() + (windows_core::Interface::vtable(self).CompareToKnowledgeCookie)(windows_core::Interface::as_raw(self), pknowledgecookie.param().abi(), presult).ok() } } #[repr(C)] @@ -2474,9 +2474,9 @@ impl ISyncProviderConfigUI { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Init(&self, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pconfigurationproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pguidinstanceid, pguidcontenttype, pconfigurationproperties.into_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 { @@ -2486,20 +2486,20 @@ impl ISyncProviderConfigUI { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CreateAndRegisterNewSyncProvider(&self, hwndparent: P0, punkcontext: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAndRegisterNewSyncProvider)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), punkcontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAndRegisterNewSyncProvider)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), punkcontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn ModifySyncProvider(&self, hwndparent: P0, punkcontext: P1, pproviderinfo: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifySyncProvider)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), punkcontext.into_param().abi(), pproviderinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ModifySyncProvider)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), punkcontext.param().abi(), pproviderinfo.param().abi()).ok() } } #[repr(C)] @@ -2662,16 +2662,16 @@ impl ISyncProviderRegistration { } pub unsafe fn RevokeEvent(&self, hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RevokeEvent)(windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RevokeEvent)(windows_core::Interface::as_raw(self), hevent.param().abi()).ok() } pub unsafe fn GetChange(&self, hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChange)(windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetChange)(windows_core::Interface::as_raw(self), hevent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2802,9 +2802,9 @@ impl ISyncSessionState2 { } pub unsafe fn SetProviderWithError(&self, fself: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProviderWithError)(windows_core::Interface::as_raw(self), fself.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProviderWithError)(windows_core::Interface::as_raw(self), fself.param().abi()).ok() } pub unsafe fn GetSessionErrorStatus(&self, phrsessionerror: *mut windows_core::HRESULT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSessionErrorStatus)(windows_core::Interface::as_raw(self), phrsessionerror).ok() @@ -2824,10 +2824,10 @@ impl ISynchronousDataRetriever { } pub unsafe fn LoadChangeData(&self, ploadchangecontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LoadChangeData)(windows_core::Interface::as_raw(self), ploadchangecontext.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LoadChangeData)(windows_core::Interface::as_raw(self), ploadchangecontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[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 0cedfabbc3..1afce8741d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs @@ -14,9 +14,9 @@ impl IEnumWbemClassObject { } pub unsafe fn NextAsync(&self, ucount: u32, psink: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NextAsync)(windows_core::Interface::as_raw(self), ucount, psink.into_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__ = std::mem::zeroed(); @@ -40,30 +40,30 @@ windows_core::imp::interface_hierarchy!(IMofCompiler, windows_core::IUnknown); impl IMofCompiler { pub unsafe fn CompileFile(&self, filename: P0, serverandnamespace: P1, user: P2, authority: P3, password: P4, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CompileFile)(windows_core::Interface::as_raw(self), filename.into_param().abi(), serverandnamespace.into_param().abi(), user.into_param().abi(), authority.into_param().abi(), password.into_param().abi(), loptionflags, lclassflags, linstanceflags, 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, pinfo).ok() } pub unsafe fn CompileBuffer(&self, pbuffer: &[u8], serverandnamespace: P0, user: P1, authority: P2, password: P3, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), user.into_param().abi(), authority.into_param().abi(), password.into_param().abi(), loptionflags, lclassflags, linstanceflags, 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, 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateBMOF)(windows_core::Interface::as_raw(self), textfilename.into_param().abi(), bmoffilename.into_param().abi(), serverandnamespace.into_param().abi(), loptionflags, lclassflags, linstanceflags, 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, pinfo).ok() } } #[repr(C)] @@ -85,9 +85,9 @@ impl ISWbemDateTime { } pub unsafe fn SetValue(&self, strvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), strvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), strvalue.param().abi()).ok() } pub unsafe fn Year(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -102,9 +102,9 @@ impl ISWbemDateTime { } pub unsafe fn SetYearSpecified(&self, byearspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetYearSpecified)(windows_core::Interface::as_raw(self), byearspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetYearSpecified)(windows_core::Interface::as_raw(self), byearspecified.param().abi()).ok() } pub unsafe fn Month(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -119,9 +119,9 @@ impl ISWbemDateTime { } pub unsafe fn SetMonthSpecified(&self, bmonthspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMonthSpecified)(windows_core::Interface::as_raw(self), bmonthspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMonthSpecified)(windows_core::Interface::as_raw(self), bmonthspecified.param().abi()).ok() } pub unsafe fn Day(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -136,9 +136,9 @@ impl ISWbemDateTime { } pub unsafe fn SetDaySpecified(&self, bdayspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDaySpecified)(windows_core::Interface::as_raw(self), bdayspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDaySpecified)(windows_core::Interface::as_raw(self), bdayspecified.param().abi()).ok() } pub unsafe fn Hours(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -153,9 +153,9 @@ impl ISWbemDateTime { } pub unsafe fn SetHoursSpecified(&self, bhoursspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHoursSpecified)(windows_core::Interface::as_raw(self), bhoursspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHoursSpecified)(windows_core::Interface::as_raw(self), bhoursspecified.param().abi()).ok() } pub unsafe fn Minutes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -170,9 +170,9 @@ impl ISWbemDateTime { } pub unsafe fn SetMinutesSpecified(&self, bminutesspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMinutesSpecified)(windows_core::Interface::as_raw(self), bminutesspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMinutesSpecified)(windows_core::Interface::as_raw(self), bminutesspecified.param().abi()).ok() } pub unsafe fn Seconds(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -187,9 +187,9 @@ impl ISWbemDateTime { } pub unsafe fn SetSecondsSpecified(&self, bsecondsspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSecondsSpecified)(windows_core::Interface::as_raw(self), bsecondsspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSecondsSpecified)(windows_core::Interface::as_raw(self), bsecondsspecified.param().abi()).ok() } pub unsafe fn Microseconds(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -204,9 +204,9 @@ impl ISWbemDateTime { } pub unsafe fn SetMicrosecondsSpecified(&self, bmicrosecondsspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMicrosecondsSpecified)(windows_core::Interface::as_raw(self), bmicrosecondsspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMicrosecondsSpecified)(windows_core::Interface::as_raw(self), bmicrosecondsspecified.param().abi()).ok() } pub unsafe fn UTC(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -221,9 +221,9 @@ impl ISWbemDateTime { } pub unsafe fn SetUTCSpecified(&self, butcspecified: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUTCSpecified)(windows_core::Interface::as_raw(self), butcspecified.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUTCSpecified)(windows_core::Interface::as_raw(self), butcspecified.param().abi()).ok() } pub unsafe fn IsInterval(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -231,36 +231,36 @@ impl ISWbemDateTime { } pub unsafe fn SetIsInterval(&self, bisinterval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsInterval)(windows_core::Interface::as_raw(self), bisinterval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsInterval)(windows_core::Interface::as_raw(self), bisinterval.param().abi()).ok() } pub unsafe fn GetVarDate(&self, bislocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVarDate)(windows_core::Interface::as_raw(self), bislocal.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVarDate)(windows_core::Interface::as_raw(self), bislocal.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetVarDate(&self, dvardate: f64, bislocal: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVarDate)(windows_core::Interface::as_raw(self), dvardate, bislocal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVarDate)(windows_core::Interface::as_raw(self), dvardate, bislocal.param().abi()).ok() } pub unsafe fn GetFileTime(&self, bislocal: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFileTime)(windows_core::Interface::as_raw(self), bislocal.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFileTime)(windows_core::Interface::as_raw(self), bislocal.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetFileTime(&self, strfiletime: P0, bislocal: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileTime)(windows_core::Interface::as_raw(self), strfiletime.into_param().abi(), bislocal.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileTime)(windows_core::Interface::as_raw(self), strfiletime.param().abi(), bislocal.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -347,150 +347,150 @@ impl ISWbemLastError { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Put_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Put_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Put_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PutAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Delete_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Delete_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Instances_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Instances_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Instances_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstancesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstancesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Subclasses_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Subclasses_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Subclasses_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SubclassesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SubclassesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SubclassesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Associators_(&self, strassocclass: P0, strresultclass: P1, strresultrole: P2, strrole: P3, bclassesonly: P4, bschemaonly: P5, strrequiredassocqualifier: P6, strrequiredqualifier: P7, iflags: i32, objwbemnamedvalueset: P8) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Associators_)(windows_core::Interface::as_raw(self), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Associators_)(windows_core::Interface::as_raw(self), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssociatorsAsync_(&self, objwbemsink: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: P5, bschemaonly: P6, strrequiredassocqualifier: P7, strrequiredqualifier: P8, iflags: i32, objwbemnamedvalueset: P9, objwbemasynccontext: P10) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, - P9: windows_core::IntoParam, - P10: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, + P9: windows_core::Param, + P10: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AssociatorsAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AssociatorsAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn References_(&self, strresultclass: P0, strrole: P1, bclassesonly: P2, bschemaonly: P3, strrequiredqualifier: P4, iflags: i32, objwbemnamedvalueset: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.References_)(windows_core::Interface::as_raw(self), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.References_)(windows_core::Interface::as_raw(self), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReferencesAsync_(&self, objwbemsink: P0, strresultclass: P1, strrole: P2, bclassesonly: P3, bschemaonly: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6, objwbemasynccontext: P7) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethod_(&self, strmethodname: P0, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ExecMethod_)(windows_core::Interface::as_raw(self), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ExecMethod_)(windows_core::Interface::as_raw(self), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethodAsync_(&self, objwbemsink: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone_(&self) -> windows_core::Result { @@ -514,10 +514,10 @@ impl ISWbemLastError { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareTo_(&self, objwbemobject: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareTo_)(windows_core::Interface::as_raw(self), objwbemobject.into_param().abi(), iflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareTo_)(windows_core::Interface::as_raw(self), objwbemobject.param().abi(), iflags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Qualifiers_(&self) -> windows_core::Result { @@ -563,16 +563,16 @@ impl ISWbemLocator { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ConnectServer(&self, strserver: P0, strnamespace: P1, struser: P2, strpassword: P3, strlocale: P4, strauthority: P5, isecurityflags: i32, objwbemnamedvalueset: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), strserver.into_param().abi(), strnamespace.into_param().abi(), struser.into_param().abi(), strpassword.into_param().abi(), strlocale.into_param().abi(), strauthority.into_param().abi(), isecurityflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), strserver.param().abi(), strnamespace.param().abi(), struser.param().abi(), strpassword.param().abi(), strlocale.param().abi(), strauthority.param().abi(), isecurityflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Security_(&self) -> windows_core::Result { @@ -655,10 +655,10 @@ impl ISWbemMethodSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, strname: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strname.into_param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strname.param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -715,10 +715,10 @@ impl ISWbemNamedValueSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, strname: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strname.into_param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strname.param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -727,16 +727,16 @@ impl ISWbemNamedValueSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, strname: P0, varvalue: *const windows_core::VARIANT, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), strname.into_param().abi(), core::mem::transmute(varvalue), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), strname.param().abi(), core::mem::transmute(varvalue), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, strname: P0, iflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), strname.into_param().abi(), iflags).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), strname.param().abi(), iflags).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -777,150 +777,150 @@ impl ISWbemObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Put_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Put_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PutAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_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() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Delete_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_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() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Instances_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Instances_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_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() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Subclasses_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Subclasses_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SubclassesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SubclassesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_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() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Associators_(&self, strassocclass: P0, strresultclass: P1, strresultrole: P2, strrole: P3, bclassesonly: P4, bschemaonly: P5, strrequiredassocqualifier: P6, strrequiredqualifier: P7, iflags: i32, objwbemnamedvalueset: P8) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Associators_)(windows_core::Interface::as_raw(self), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Associators_)(windows_core::Interface::as_raw(self), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssociatorsAsync_(&self, objwbemsink: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: P5, bschemaonly: P6, strrequiredassocqualifier: P7, strrequiredqualifier: P8, iflags: i32, objwbemnamedvalueset: P9, objwbemasynccontext: P10) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, - P9: windows_core::IntoParam, - P10: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, + P9: windows_core::Param, + P10: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociatorsAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AssociatorsAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn References_(&self, strresultclass: P0, strrole: P1, bclassesonly: P2, bschemaonly: P3, strrequiredqualifier: P4, iflags: i32, objwbemnamedvalueset: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).References_)(windows_core::Interface::as_raw(self), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).References_)(windows_core::Interface::as_raw(self), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReferencesAsync_(&self, objwbemsink: P0, strresultclass: P1, strrole: P2, bclassesonly: P3, bschemaonly: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6, objwbemasynccontext: P7) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { - (windows_core::Interface::vtable(self).ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethod_(&self, strmethodname: P0, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecMethod_)(windows_core::Interface::as_raw(self), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecMethod_)(windows_core::Interface::as_raw(self), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethodAsync_(&self, objwbemsink: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone_(&self) -> windows_core::Result { @@ -944,10 +944,10 @@ impl ISWbemObject { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareTo_(&self, objwbemobject: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareTo_)(windows_core::Interface::as_raw(self), objwbemobject.into_param().abi(), 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__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Qualifiers_(&self) -> windows_core::Result { @@ -1087,150 +1087,150 @@ impl ISWbemObjectEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Put_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Put_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Put_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PutAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Delete_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Delete_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Instances_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Instances_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Instances_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstancesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstancesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Subclasses_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Subclasses_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Subclasses_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SubclassesAsync_(&self, objwbemsink: P0, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SubclassesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SubclassesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Associators_(&self, strassocclass: P0, strresultclass: P1, strresultrole: P2, strrole: P3, bclassesonly: P4, bschemaonly: P5, strrequiredassocqualifier: P6, strrequiredqualifier: P7, iflags: i32, objwbemnamedvalueset: P8) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Associators_)(windows_core::Interface::as_raw(self), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Associators_)(windows_core::Interface::as_raw(self), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssociatorsAsync_(&self, objwbemsink: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: P5, bschemaonly: P6, strrequiredassocqualifier: P7, strrequiredqualifier: P8, iflags: i32, objwbemnamedvalueset: P9, objwbemasynccontext: P10) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, - P9: windows_core::IntoParam, - P10: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, + P9: windows_core::Param, + P10: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AssociatorsAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AssociatorsAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn References_(&self, strresultclass: P0, strrole: P1, bclassesonly: P2, bschemaonly: P3, strrequiredqualifier: P4, iflags: i32, objwbemnamedvalueset: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.References_)(windows_core::Interface::as_raw(self), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.References_)(windows_core::Interface::as_raw(self), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReferencesAsync_(&self, objwbemsink: P0, strresultclass: P1, strrole: P2, bclassesonly: P3, bschemaonly: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6, objwbemasynccontext: P7) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReferencesAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethod_(&self, strmethodname: P0, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ExecMethod_)(windows_core::Interface::as_raw(self), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ExecMethod_)(windows_core::Interface::as_raw(self), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethodAsync_(&self, objwbemsink: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ExecMethodAsync_)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone_(&self) -> windows_core::Result { @@ -1254,10 +1254,10 @@ impl ISWbemObjectEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CompareTo_(&self, objwbemobject: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareTo_)(windows_core::Interface::as_raw(self), objwbemobject.into_param().abi(), iflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareTo_)(windows_core::Interface::as_raw(self), objwbemobject.param().abi(), iflags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Qualifiers_(&self) -> windows_core::Result { @@ -1291,9 +1291,9 @@ impl ISWbemObjectEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Refresh_(&self, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Refresh_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Refresh_)(windows_core::Interface::as_raw(self), iflags, objwbemnamedvalueset.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SystemProperties_(&self) -> windows_core::Result { @@ -1303,18 +1303,18 @@ impl ISWbemObjectEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetText_(&self, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText_)(windows_core::Interface::as_raw(self), iobjecttextformat, iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetText_)(windows_core::Interface::as_raw(self), iobjecttextformat, iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFromText_(&self, bstext: P0, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFromText_)(windows_core::Interface::as_raw(self), bstext.into_param().abi(), iobjecttextformat, iflags, objwbemnamedvalueset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFromText_)(windows_core::Interface::as_raw(self), bstext.param().abi(), iobjecttextformat, iflags, objwbemnamedvalueset.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1350,9 +1350,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetPath(&self, strpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), strpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), strpath.param().abi()).ok() } pub unsafe fn RelPath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1360,9 +1360,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetRelPath(&self, strrelpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRelPath)(windows_core::Interface::as_raw(self), strrelpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRelPath)(windows_core::Interface::as_raw(self), strrelpath.param().abi()).ok() } pub unsafe fn Server(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1370,9 +1370,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetServer(&self, strserver: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), strserver.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), strserver.param().abi()).ok() } pub unsafe fn Namespace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1380,9 +1380,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetNamespace(&self, strnamespace: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamespace)(windows_core::Interface::as_raw(self), strnamespace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNamespace)(windows_core::Interface::as_raw(self), strnamespace.param().abi()).ok() } pub unsafe fn ParentNamespace(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1394,9 +1394,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetDisplayName(&self, strdisplayname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), strdisplayname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), strdisplayname.param().abi()).ok() } pub unsafe fn Class(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1404,9 +1404,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetClass(&self, strclass: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), strclass.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClass)(windows_core::Interface::as_raw(self), strclass.param().abi()).ok() } pub unsafe fn IsClass(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1438,9 +1438,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetLocale(&self, strlocale: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), strlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), strlocale.param().abi()).ok() } pub unsafe fn Authority(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1448,9 +1448,9 @@ impl ISWbemObjectPath { } pub unsafe fn SetAuthority(&self, strauthority: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthority)(windows_core::Interface::as_raw(self), strauthority.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthority)(windows_core::Interface::as_raw(self), strauthority.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1500,10 +1500,10 @@ impl ISWbemObjectSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, strobjectpath: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1551,9 +1551,9 @@ impl ISWbemPrivilege { } pub unsafe fn SetIsEnabled(&self, bisenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsEnabled)(windows_core::Interface::as_raw(self), bisenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsEnabled)(windows_core::Interface::as_raw(self), bisenabled.param().abi()).ok() } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1600,10 +1600,10 @@ impl ISWbemPrivilegeSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, iprivilege: WbemPrivilegeEnum, bisenabled: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), iprivilege, bisenabled.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), iprivilege, bisenabled.param().abi(), &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), iprivilege).ok() @@ -1614,11 +1614,11 @@ impl ISWbemPrivilegeSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddAsString(&self, strprivilege: P0, bisenabled: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddAsString)(windows_core::Interface::as_raw(self), strprivilege.into_param().abi(), bisenabled.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AddAsString)(windows_core::Interface::as_raw(self), strprivilege.param().abi(), bisenabled.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1710,10 +1710,10 @@ impl ISWbemPropertySet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, strname: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strname.into_param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), strname.param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1722,17 +1722,17 @@ impl ISWbemPropertySet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, strname: P0, icimtype: WbemCimtypeEnum, bisarray: P1, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), strname.into_param().abi(), icimtype, bisarray.into_param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), strname.param().abi(), icimtype, bisarray.param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, strname: P0, iflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), strname.into_param().abi(), iflags).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), strname.param().abi(), iflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1778,9 +1778,9 @@ impl ISWbemQualifier { } pub unsafe fn SetPropagatesToSubclass(&self, bpropagatestosubclass: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropagatesToSubclass)(windows_core::Interface::as_raw(self), bpropagatestosubclass.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropagatesToSubclass)(windows_core::Interface::as_raw(self), bpropagatestosubclass.param().abi()).ok() } pub unsafe fn PropagatesToInstance(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1788,9 +1788,9 @@ impl ISWbemQualifier { } pub unsafe fn SetPropagatesToInstance(&self, bpropagatestoinstance: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropagatesToInstance)(windows_core::Interface::as_raw(self), bpropagatestoinstance.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropagatesToInstance)(windows_core::Interface::as_raw(self), bpropagatestoinstance.param().abi()).ok() } pub unsafe fn IsOverridable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1798,9 +1798,9 @@ impl ISWbemQualifier { } pub unsafe fn SetIsOverridable(&self, bisoverridable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsOverridable)(windows_core::Interface::as_raw(self), bisoverridable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsOverridable)(windows_core::Interface::as_raw(self), bisoverridable.param().abi()).ok() } pub unsafe fn IsAmended(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1836,10 +1836,10 @@ impl ISWbemQualifierSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, name: P0, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), name.into_param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), name.param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Count(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1848,19 +1848,19 @@ impl ISWbemQualifierSet { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, strname: P0, varval: *const windows_core::VARIANT, bpropagatestosubclass: P1, bpropagatestoinstance: P2, bisoverridable: P3, iflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), strname.into_param().abi(), core::mem::transmute(varval), bpropagatestosubclass.into_param().abi(), bpropagatestoinstance.into_param().abi(), bisoverridable.into_param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), strname.param().abi(), core::mem::transmute(varval), bpropagatestosubclass.param().abi(), bpropagatestoinstance.param().abi(), bisoverridable.param().abi(), iflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, strname: P0, iflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), strname.into_param().abi(), iflags).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), strname.param().abi(), iflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1954,22 +1954,22 @@ impl ISWbemRefresher { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, objwbemservices: P0, bsinstancepath: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), objwbemservices.into_param().abi(), bsinstancepath.into_param().abi(), iflags, objwbemnamedvalueset.into_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(), bsinstancepath.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddEnum(&self, objwbemservices: P0, bsclassname: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddEnum)(windows_core::Interface::as_raw(self), objwbemservices.into_param().abi(), bsclassname.into_param().abi(), iflags, objwbemnamedvalueset.into_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(), bsclassname.param().abi(), 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), iindex, iflags).ok() @@ -1983,9 +1983,9 @@ impl ISWbemRefresher { } pub unsafe fn SetAutoReconnect(&self, bcount: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoReconnect)(windows_core::Interface::as_raw(self), bcount.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoReconnect)(windows_core::Interface::as_raw(self), bcount.param().abi()).ok() } pub unsafe fn DeleteAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DeleteAll)(windows_core::Interface::as_raw(self)).ok() @@ -2063,206 +2063,206 @@ impl ISWbemServices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Get(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAsync(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Delete(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteAsync(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancesOf(&self, strclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstancesOf)(windows_core::Interface::as_raw(self), strclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InstancesOf)(windows_core::Interface::as_raw(self), strclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancesOfAsync(&self, objwbemsink: P0, strclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).InstancesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InstancesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SubclassesOf(&self, strsuperclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SubclassesOf)(windows_core::Interface::as_raw(self), strsuperclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SubclassesOf)(windows_core::Interface::as_raw(self), strsuperclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SubclassesOfAsync(&self, objwbemsink: P0, strsuperclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).SubclassesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strsuperclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SubclassesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strsuperclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecQuery(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), strquery.into_param().abi(), strquerylanguage.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), strquery.param().abi(), strquerylanguage.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecQueryAsync(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, lflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strquery.into_param().abi(), strquerylanguage.into_param().abi(), lflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strquery.param().abi(), strquerylanguage.param().abi(), lflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssociatorsOf(&self, strobjectpath: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: P5, bschemaonly: P6, strrequiredassocqualifier: P7, strrequiredqualifier: P8, iflags: i32, objwbemnamedvalueset: P9) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, - P9: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, + P9: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociatorsOf)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AssociatorsOf)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssociatorsOfAsync(&self, objwbemsink: P0, strobjectpath: P1, strassocclass: P2, strresultclass: P3, strresultrole: P4, strrole: P5, bclassesonly: P6, bschemaonly: P7, strrequiredassocqualifier: P8, strrequiredqualifier: P9, iflags: i32, objwbemnamedvalueset: P10, objwbemasynccontext: P11) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, - P9: windows_core::IntoParam, - P10: windows_core::IntoParam, - P11: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, + P9: windows_core::Param, + P10: windows_core::Param, + P11: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociatorsOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AssociatorsOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReferencesTo(&self, strobjectpath: P0, strresultclass: P1, strrole: P2, bclassesonly: P3, bschemaonly: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReferencesTo)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ReferencesTo)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReferencesToAsync(&self, objwbemsink: P0, strobjectpath: P1, strresultclass: P2, strrole: P3, bclassesonly: P4, bschemaonly: P5, strrequiredqualifier: P6, iflags: i32, objwbemnamedvalueset: P7, objwbemasynccontext: P8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, { - (windows_core::Interface::vtable(self).ReferencesToAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReferencesToAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecNotificationQuery(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), strquery.into_param().abi(), strquerylanguage.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), strquery.param().abi(), strquerylanguage.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecNotificationQueryAsync(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strquery.into_param().abi(), strquerylanguage.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strquery.param().abi(), strquerylanguage.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethod(&self, strobjectpath: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethodAsync(&self, objwbemsink: P0, strobjectpath: P1, strmethodname: P2, objwbeminparameters: P3, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Security_(&self) -> windows_core::Result { @@ -2360,206 +2360,206 @@ impl ISWbemServicesEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Get(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAsync(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Delete(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteAsync(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancesOf(&self, strclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InstancesOf)(windows_core::Interface::as_raw(self), strclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.InstancesOf)(windows_core::Interface::as_raw(self), strclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InstancesOfAsync(&self, objwbemsink: P0, strclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InstancesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InstancesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SubclassesOf(&self, strsuperclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SubclassesOf)(windows_core::Interface::as_raw(self), strsuperclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.SubclassesOf)(windows_core::Interface::as_raw(self), strsuperclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SubclassesOfAsync(&self, objwbemsink: P0, strsuperclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SubclassesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strsuperclass.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SubclassesOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strsuperclass.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecQuery(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ExecQuery)(windows_core::Interface::as_raw(self), strquery.into_param().abi(), strquerylanguage.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ExecQuery)(windows_core::Interface::as_raw(self), strquery.param().abi(), strquerylanguage.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecQueryAsync(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, lflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strquery.into_param().abi(), strquerylanguage.into_param().abi(), lflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ExecQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strquery.param().abi(), strquerylanguage.param().abi(), lflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssociatorsOf(&self, strobjectpath: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: P5, bschemaonly: P6, strrequiredassocqualifier: P7, strrequiredqualifier: P8, iflags: i32, objwbemnamedvalueset: P9) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, - P9: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, + P9: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AssociatorsOf)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AssociatorsOf)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AssociatorsOfAsync(&self, objwbemsink: P0, strobjectpath: P1, strassocclass: P2, strresultclass: P3, strresultrole: P4, strrole: P5, bclassesonly: P6, bschemaonly: P7, strrequiredassocqualifier: P8, strrequiredqualifier: P9, iflags: i32, objwbemnamedvalueset: P10, objwbemasynccontext: P11) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, - P9: windows_core::IntoParam, - P10: windows_core::IntoParam, - P11: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, + P9: windows_core::Param, + P10: windows_core::Param, + P11: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AssociatorsOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), strassocclass.into_param().abi(), strresultclass.into_param().abi(), strresultrole.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredassocqualifier.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AssociatorsOfAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), strassocclass.param().abi(), strresultclass.param().abi(), strresultrole.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredassocqualifier.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReferencesTo(&self, strobjectpath: P0, strresultclass: P1, strrole: P2, bclassesonly: P3, bschemaonly: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ReferencesTo)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ReferencesTo)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ReferencesToAsync(&self, objwbemsink: P0, strobjectpath: P1, strresultclass: P2, strrole: P3, bclassesonly: P4, bschemaonly: P5, strrequiredqualifier: P6, iflags: i32, objwbemnamedvalueset: P7, objwbemasynccontext: P8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, - P7: windows_core::IntoParam, - P8: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, + P7: windows_core::Param, + P8: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReferencesToAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), strresultclass.into_param().abi(), strrole.into_param().abi(), bclassesonly.into_param().abi(), bschemaonly.into_param().abi(), strrequiredqualifier.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ReferencesToAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), strresultclass.param().abi(), strrole.param().abi(), bclassesonly.param().abi(), bschemaonly.param().abi(), strrequiredqualifier.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecNotificationQuery(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ExecNotificationQuery)(windows_core::Interface::as_raw(self), strquery.into_param().abi(), strquerylanguage.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ExecNotificationQuery)(windows_core::Interface::as_raw(self), strquery.param().abi(), strquerylanguage.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecNotificationQueryAsync(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strquery.into_param().abi(), strquerylanguage.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strquery.param().abi(), strquerylanguage.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethod(&self, strobjectpath: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ExecMethod)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ExecMethod)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExecMethodAsync(&self, objwbemsink: P0, strobjectpath: P1, strmethodname: P2, objwbeminparameters: P3, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ExecMethodAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), strobjectpath.into_param().abi(), strmethodname.into_param().abi(), objwbeminparameters.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ExecMethodAsync)(windows_core::Interface::as_raw(self), objwbemsink.param().abi(), strobjectpath.param().abi(), strmethodname.param().abi(), objwbeminparameters.param().abi(), iflags, objwbemnamedvalueset.param().abi(), objwbemasynccontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Security_(&self) -> windows_core::Result { @@ -2569,21 +2569,21 @@ impl ISWbemServicesEx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Put(&self, objwbemobject: P0, iflags: i32, objwbemnamedvalueset: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), objwbemobject.into_param().abi(), iflags, objwbemnamedvalueset.into_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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PutAsync(&self, objwbemsink: P0, objwbemobject: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PutAsync)(windows_core::Interface::as_raw(self), objwbemsink.into_param().abi(), objwbemobject.into_param().abi(), iflags, objwbemnamedvalueset.into_param().abi(), objwbemasynccontext.into_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")] @@ -2631,10 +2631,10 @@ windows_core::imp::interface_hierarchy!(IUnsecuredApartment, windows_core::IUnkn impl IUnsecuredApartment { pub unsafe fn CreateObjectStub(&self, pobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateObjectStub)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateObjectStub)(windows_core::Interface::as_raw(self), pobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2682,9 +2682,9 @@ windows_core::imp::interface_hierarchy!(IWbemAddressResolution, windows_core::IU impl IWbemAddressResolution { pub unsafe fn Resolve(&self, wsznamespacepath: P0, wszaddresstype: windows_core::PWSTR, pdwaddresslength: *mut u32, pabbinaryaddress: *mut *mut u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), wsznamespacepath.into_param().abi(), core::mem::transmute(wszaddresstype), pdwaddresslength, pabbinaryaddress).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), wsznamespacepath.param().abi(), core::mem::transmute(wszaddresstype), pdwaddresslength, pabbinaryaddress).ok() } } #[repr(C)] @@ -2697,15 +2697,15 @@ windows_core::imp::interface_hierarchy!(IWbemBackupRestore, windows_core::IUnkno impl IWbemBackupRestore { pub unsafe fn Backup(&self, strbackuptofile: P0, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Backup)(windows_core::Interface::as_raw(self), strbackuptofile.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), strrestorefromfile.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), strrestorefromfile.param().abi(), lflags).ok() } } #[repr(C)] @@ -2719,15 +2719,15 @@ windows_core::imp::interface_hierarchy!(IWbemBackupRestoreEx, windows_core::IUnk impl IWbemBackupRestoreEx { pub unsafe fn Backup(&self, strbackuptofile: P0, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Backup)(windows_core::Interface::as_raw(self), strbackuptofile.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Restore)(windows_core::Interface::as_raw(self), strrestorefromfile.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).base__.Restore)(windows_core::Interface::as_raw(self), strrestorefromfile.param().abi(), lflags).ok() } pub unsafe fn Pause(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() @@ -2779,29 +2779,29 @@ impl IWbemClassObject { } pub unsafe fn Get(&self, wszname: P0, lflags: i32, pval: *mut windows_core::VARIANT, ptype: Option<*mut i32>, plflavor: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, core::mem::transmute(pval), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plflavor.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut())), core::mem::transmute(plflavor.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Put(&self, wszname: P0, lflags: i32, pval: *const windows_core::VARIANT, r#type: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, core::mem::transmute(pval), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), wszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), wszname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNames(&self, wszqualifiername: P0, lflags: WBEM_CONDITION_FLAG_TYPE, pqualifierval: *const windows_core::VARIANT) -> windows_core::Result<*mut super::Com::SAFEARRAY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNames)(windows_core::Interface::as_raw(self), wszqualifiername.into_param().abi(), 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), lenumflags).ok() @@ -2814,10 +2814,10 @@ impl IWbemClassObject { } pub unsafe fn GetPropertyQualifierSet(&self, wszproperty: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyQualifierSet)(windows_core::Interface::as_raw(self), wszproperty.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyQualifierSet)(windows_core::Interface::as_raw(self), wszproperty.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2837,42 +2837,42 @@ impl IWbemClassObject { } pub unsafe fn CompareTo(&self, lflags: WBEM_COMPARISON_FLAG, pcompareto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareTo)(windows_core::Interface::as_raw(self), lflags, pcompareto.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyOrigin)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyOrigin)(windows_core::Interface::as_raw(self), wszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InheritsFrom(&self, strancestor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InheritsFrom)(windows_core::Interface::as_raw(self), strancestor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InheritsFrom)(windows_core::Interface::as_raw(self), strancestor.param().abi()).ok() } pub unsafe fn GetMethod(&self, wszname: P0, lflags: i32, ppinsignature: *mut Option, ppoutsignature: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMethod)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), 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: P1, poutsignature: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutMethod)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, pinsignature.into_param().abi(), poutsignature.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteMethod)(windows_core::Interface::as_raw(self), wszname.into_param().abi()).ok() + (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), lenumflags).ok() @@ -2885,17 +2885,17 @@ impl IWbemClassObject { } pub unsafe fn GetMethodQualifierSet(&self, wszmethod: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMethodQualifierSet)(windows_core::Interface::as_raw(self), wszmethod.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMethodQualifierSet)(windows_core::Interface::as_raw(self), wszmethod.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMethodOrigin(&self, wszmethodname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMethodOrigin)(windows_core::Interface::as_raw(self), wszmethodname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetMethodOrigin)(windows_core::Interface::as_raw(self), wszmethodname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2934,34 +2934,34 @@ windows_core::imp::interface_hierarchy!(IWbemClientConnectionTransport, windows_ impl IWbemClientConnectionTransport { pub unsafe fn Open(&self, straddresstype: P0, abbinaryaddress: &[u8], strobject: P1, struser: P2, strpassword: P3, strlocale: P4, lflags: i32, pctx: P5, pcallres: *mut Option) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), straddresstype.into_param().abi(), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), strobject.into_param().abi(), struser.into_param().abi(), strpassword.into_param().abi(), strlocale.into_param().abi(), lflags, pctx.into_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), straddresstype.param().abi(), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), strobject.param().abi(), struser.param().abi(), strpassword.param().abi(), strlocale.param().abi(), 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: P0, abbinaryaddress: &[u8], strobject: P1, struser: P2, strpassword: P3, strlocale: P4, lflags: i32, pctx: P5, riid: *const windows_core::GUID, presponsehandler: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenAsync)(windows_core::Interface::as_raw(self), straddresstype.into_param().abi(), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), strobject.into_param().abi(), struser.into_param().abi(), strpassword.into_param().abi(), strlocale.into_param().abi(), lflags, pctx.into_param().abi(), riid, presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OpenAsync)(windows_core::Interface::as_raw(self), straddresstype.param().abi(), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), strobject.param().abi(), struser.param().abi(), strpassword.param().abi(), strlocale.param().abi(), lflags, pctx.param().abi(), riid, presponsehandler.param().abi()).ok() } pub unsafe fn Cancel(&self, lflags: i32, phandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), lflags, phandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self), lflags, phandler.param().abi()).ok() } } #[repr(C)] @@ -2976,16 +2976,16 @@ windows_core::imp::interface_hierarchy!(IWbemClientTransport, windows_core::IUnk impl IWbemClientTransport { pub unsafe fn ConnectServer(&self, straddresstype: P0, abbinaryaddress: &[u8], strnetworkresource: P1, struser: P2, strpassword: P3, strlocale: P4, lsecurityflags: i32, strauthority: P5, pctx: P6) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), straddresstype.into_param().abi(), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), strnetworkresource.into_param().abi(), struser.into_param().abi(), strpassword.into_param().abi(), strlocale.into_param().abi(), lsecurityflags, strauthority.into_param().abi(), pctx.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), straddresstype.param().abi(), abbinaryaddress.len().try_into().unwrap(), core::mem::transmute(abbinaryaddress.as_ptr()), strnetworkresource.param().abi(), struser.param().abi(), strpassword.param().abi(), strlocale.param().abi(), lsecurityflags, strauthority.param().abi(), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2998,36 +2998,36 @@ windows_core::imp::interface_hierarchy!(IWbemConfigureRefresher, windows_core::I impl IWbemConfigureRefresher { pub unsafe fn AddObjectByPath(&self, pnamespace: P0, wszpath: P1, lflags: i32, pcontext: P2, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddObjectByPath)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), wszpath.into_param().abi(), lflags, pcontext.into_param().abi(), core::mem::transmute(pprefreshable), 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), plid).ok() } pub unsafe fn AddObjectByTemplate(&self, pnamespace: P0, ptemplate: P1, lflags: i32, pcontext: P2, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddObjectByTemplate)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), ptemplate.into_param().abi(), lflags, pcontext.into_param().abi(), core::mem::transmute(pprefreshable), 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), plid).ok() } pub unsafe fn AddRefresher(&self, prefresher: P0, lflags: i32, plid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddRefresher)(windows_core::Interface::as_raw(self), prefresher.into_param().abi(), lflags, plid).ok() + (windows_core::Interface::vtable(self).AddRefresher)(windows_core::Interface::as_raw(self), prefresher.param().abi(), lflags, 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), lid, lflags).ok() } pub unsafe fn AddEnum(&self, pnamespace: P0, wszclassname: P1, lflags: i32, pcontext: P2, ppenum: *mut Option, plid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEnum)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), wszclassname.into_param().abi(), lflags, pcontext.into_param().abi(), core::mem::transmute(ppenum), 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), plid).ok() } } #[repr(C)] @@ -3044,13 +3044,13 @@ windows_core::imp::interface_hierarchy!(IWbemConnectorLogin, windows_core::IUnkn impl IWbemConnectorLogin { pub unsafe fn ConnectorLogin(&self, wsznetworkresource: P0, wszpreferredlocale: P1, lflags: i32, pctx: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ConnectorLogin)(windows_core::Interface::as_raw(self), wsznetworkresource.into_param().abi(), wszpreferredlocale.into_param().abi(), lflags, pctx.into_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)] @@ -3066,22 +3066,22 @@ impl IWbemConstructClassObject { } pub unsafe fn SetPropertyOrigin(&self, wszpropertyname: P0, loriginindex: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyOrigin)(windows_core::Interface::as_raw(self), wszpropertyname.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMethodOrigin)(windows_core::Interface::as_raw(self), wszmethodname.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServerNamespace)(windows_core::Interface::as_raw(self), wszserver.into_param().abi(), wsznamespace.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServerNamespace)(windows_core::Interface::as_raw(self), wszserver.param().abi(), wsznamespace.param().abi()).ok() } } #[repr(C)] @@ -3115,22 +3115,22 @@ impl IWbemContext { } pub unsafe fn SetValue(&self, wszname: P0, lflags: i32, pvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), 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() } pub unsafe fn GetValue(&self, wszname: P0, lflags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn DeleteValue(&self, wszname: P0, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteValue)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), 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() @@ -3157,31 +3157,31 @@ windows_core::imp::interface_hierarchy!(IWbemDecoupledBasicEventProvider, window impl IWbemDecoupledBasicEventProvider { pub unsafe fn Register(&self, a_flags: i32, a_context: P0, a_user: P1, a_locale: P2, a_scope: P3, a_registration: P4, piunknown: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Register)(windows_core::Interface::as_raw(self), a_flags, a_context.into_param().abi(), a_user.into_param().abi(), a_locale.into_param().abi(), a_scope.into_param().abi(), a_registration.into_param().abi(), piunknown.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.UnRegister)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetSink(&self, a_flags: i32, a_context: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSink)(windows_core::Interface::as_raw(self), a_flags, a_context.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetService)(windows_core::Interface::as_raw(self), a_flags, a_context.into_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)] @@ -3195,14 +3195,14 @@ windows_core::imp::interface_hierarchy!(IWbemDecoupledRegistrar, windows_core::I impl IWbemDecoupledRegistrar { pub unsafe fn Register(&self, a_flags: i32, a_context: P0, a_user: P1, a_locale: P2, a_scope: P3, a_registration: P4, piunknown: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), a_flags, a_context.into_param().abi(), a_user.into_param().abi(), a_locale.into_param().abi(), a_scope.into_param().abi(), a_registration.into_param().abi(), piunknown.into_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() @@ -3219,10 +3219,10 @@ windows_core::imp::interface_hierarchy!(IWbemEventConsumerProvider, windows_core impl IWbemEventConsumerProvider { pub unsafe fn FindConsumer(&self, plogicalconsumer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindConsumer)(windows_core::Interface::as_raw(self), plogicalconsumer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindConsumer)(windows_core::Interface::as_raw(self), plogicalconsumer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3235,9 +3235,9 @@ windows_core::imp::interface_hierarchy!(IWbemEventProvider, windows_core::IUnkno impl IWbemEventProvider { pub unsafe fn ProvideEvents(&self, psink: P0, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProvideEvents)(windows_core::Interface::as_raw(self), psink.into_param().abi(), lflags).ok() + (windows_core::Interface::vtable(self).ProvideEvents)(windows_core::Interface::as_raw(self), psink.param().abi(), lflags).ok() } } #[repr(C)] @@ -3281,10 +3281,10 @@ impl IWbemEventSink { } pub unsafe fn SetStatus(&self, lflags: i32, hresult: windows_core::HRESULT, strparam: P0, pobjparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStatus)(windows_core::Interface::as_raw(self), lflags, hresult, strparam.into_param().abi(), pobjparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStatus)(windows_core::Interface::as_raw(self), lflags, hresult, strparam.param().abi(), pobjparam.param().abi()).ok() } pub unsafe fn SetSinkSecurity(&self, psd: &[u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetSinkSecurity)(windows_core::Interface::as_raw(self), psd.len().try_into().unwrap(), core::mem::transmute(psd.as_ptr())).ok() @@ -3294,10 +3294,10 @@ impl IWbemEventSink { } pub unsafe fn GetRestrictedSink(&self, awszqueries: &[windows_core::PCWSTR], pcallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRestrictedSink)(windows_core::Interface::as_raw(self), awszqueries.len().try_into().unwrap(), core::mem::transmute(awszqueries.as_ptr()), pcallback.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), lflags, dwmaxbuffersize, dwmaxsendlatency).ok() @@ -3340,52 +3340,52 @@ windows_core::imp::interface_hierarchy!(IWbemHiPerfProvider, windows_core::IUnkn impl IWbemHiPerfProvider { pub unsafe fn QueryInstances(&self, pnamespace: P0, wszclass: P1, lflags: i32, pctx: P2, psink: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInstances)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), wszclass.into_param().abi(), lflags, pctx.into_param().abi(), psink.into_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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRefresher)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), 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: P3, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateRefreshableObject)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), ptemplate.into_param().abi(), prefresher.into_param().abi(), lflags, pcontext.into_param().abi(), core::mem::transmute(pprefreshable), 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), plid).ok() } pub unsafe fn StopRefreshing(&self, prefresher: P0, lid: i32, lflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopRefreshing)(windows_core::Interface::as_raw(self), prefresher.into_param().abi(), lid, 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: P3, phiperfenum: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRefreshableEnum)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), wszclass.into_param().abi(), prefresher.into_param().abi(), lflags, pcontext.into_param().abi(), phiperfenum.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjects)(windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), apobj.len().try_into().unwrap(), core::mem::transmute(apobj.as_ptr()), lflags, pcontext.into_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)] @@ -3403,35 +3403,35 @@ windows_core::imp::interface_hierarchy!(IWbemLevel1Login, windows_core::IUnknown impl IWbemLevel1Login { pub unsafe fn EstablishPosition(&self, wszlocalelist: P0, dwnumlocales: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EstablishPosition)(windows_core::Interface::as_raw(self), wszlocalelist.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestChallenge)(windows_core::Interface::as_raw(self), wsznetworkresource.into_param().abi(), wszuser.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestChallenge)(windows_core::Interface::as_raw(self), wsznetworkresource.param().abi(), wszuser.param().abi(), &mut result__).map(|| result__) } pub unsafe fn WBEMLogin(&self, wszpreferredlocale: P0, accesstoken: *const u8, lflags: i32, pctx: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).WBEMLogin)(windows_core::Interface::as_raw(self), wszpreferredlocale.into_param().abi(), accesstoken, lflags, pctx.into_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: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).NTLMLogin)(windows_core::Interface::as_raw(self), wsznetworkresource.into_param().abi(), wszpreferredlocale.into_param().abi(), lflags, pctx.into_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)] @@ -3447,15 +3447,15 @@ windows_core::imp::interface_hierarchy!(IWbemLocator, windows_core::IUnknown); impl IWbemLocator { pub unsafe fn ConnectServer(&self, strnetworkresource: P0, struser: P1, strpassword: P2, strlocale: P3, lsecurityflags: i32, strauthority: P4, pctx: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), strnetworkresource.into_param().abi(), struser.into_param().abi(), strpassword.into_param().abi(), strlocale.into_param().abi(), lsecurityflags, strauthority.into_param().abi(), pctx.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConnectServer)(windows_core::Interface::as_raw(self), strnetworkresource.param().abi(), struser.param().abi(), strpassword.param().abi(), strlocale.param().abi(), lsecurityflags, strauthority.param().abi(), pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3472,29 +3472,29 @@ impl IWbemObjectAccess { } pub unsafe fn Get(&self, wszname: P0, lflags: i32, pval: *mut windows_core::VARIANT, ptype: Option<*mut i32>, plflavor: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, core::mem::transmute(pval), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plflavor.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.Get)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, core::mem::transmute(pval), core::mem::transmute(ptype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plflavor.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn Put(&self, wszname: P0, lflags: i32, pval: *const windows_core::VARIANT, r#type: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Put)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, core::mem::transmute(pval), r#type).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), wszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Delete)(windows_core::Interface::as_raw(self), wszname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNames(&self, wszqualifiername: P0, lflags: WBEM_CONDITION_FLAG_TYPE, pqualifierval: *const windows_core::VARIANT) -> windows_core::Result<*mut super::Com::SAFEARRAY> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetNames)(windows_core::Interface::as_raw(self), wszqualifiername.into_param().abi(), lflags, core::mem::transmute(pqualifierval), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.BeginEnumeration)(windows_core::Interface::as_raw(self), lenumflags).ok() @@ -3507,10 +3507,10 @@ impl IWbemObjectAccess { } pub unsafe fn GetPropertyQualifierSet(&self, wszproperty: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyQualifierSet)(windows_core::Interface::as_raw(self), wszproperty.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPropertyQualifierSet)(windows_core::Interface::as_raw(self), wszproperty.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3530,42 +3530,42 @@ impl IWbemObjectAccess { } pub unsafe fn CompareTo(&self, lflags: WBEM_COMPARISON_FLAG, pcompareto: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CompareTo)(windows_core::Interface::as_raw(self), lflags, pcompareto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CompareTo)(windows_core::Interface::as_raw(self), lflags, pcompareto.param().abi()).ok() } pub unsafe fn GetPropertyOrigin(&self, wszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPropertyOrigin)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetPropertyOrigin)(windows_core::Interface::as_raw(self), wszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn InheritsFrom(&self, strancestor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InheritsFrom)(windows_core::Interface::as_raw(self), strancestor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InheritsFrom)(windows_core::Interface::as_raw(self), strancestor.param().abi()).ok() } pub unsafe fn GetMethod(&self, wszname: P0, lflags: i32, ppinsignature: *mut Option, ppoutsignature: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetMethod)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, core::mem::transmute(ppinsignature), core::mem::transmute(ppoutsignature)).ok() + (windows_core::Interface::vtable(self).base__.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: P1, poutsignature: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutMethod)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, pinsignature.into_param().abi(), poutsignature.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteMethod)(windows_core::Interface::as_raw(self), wszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.BeginMethodEnumeration)(windows_core::Interface::as_raw(self), lenumflags).ok() @@ -3578,23 +3578,23 @@ impl IWbemObjectAccess { } pub unsafe fn GetMethodQualifierSet(&self, wszmethod: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetMethodQualifierSet)(windows_core::Interface::as_raw(self), wszmethod.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetMethodQualifierSet)(windows_core::Interface::as_raw(self), wszmethod.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetMethodOrigin(&self, wszmethodname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetMethodOrigin)(windows_core::Interface::as_raw(self), wszmethodname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetMethodOrigin)(windows_core::Interface::as_raw(self), wszmethodname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyHandle(&self, wszpropertyname: P0, ptype: *mut i32, plhandle: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyHandle)(windows_core::Interface::as_raw(self), wszpropertyname.into_param().abi(), ptype, plhandle).ok() + (windows_core::Interface::vtable(self).GetPropertyHandle)(windows_core::Interface::as_raw(self), wszpropertyname.param().abi(), ptype, 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), lhandle, adata.len().try_into().unwrap(), core::mem::transmute(adata.as_ptr())).ok() @@ -3648,10 +3648,10 @@ impl IWbemObjectSink { } pub unsafe fn SetStatus(&self, lflags: i32, hresult: windows_core::HRESULT, strparam: P0, pobjparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), lflags, hresult, strparam.into_param().abi(), pobjparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatus)(windows_core::Interface::as_raw(self), lflags, hresult, strparam.param().abi(), pobjparam.param().abi()).ok() } } #[repr(C)] @@ -3668,44 +3668,44 @@ impl IWbemObjectSinkEx { } pub unsafe fn SetStatus(&self, lflags: i32, hresult: windows_core::HRESULT, strparam: P0, pobjparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStatus)(windows_core::Interface::as_raw(self), lflags, hresult, strparam.into_param().abi(), pobjparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStatus)(windows_core::Interface::as_raw(self), lflags, hresult, strparam.param().abi(), pobjparam.param().abi()).ok() } pub unsafe fn WriteMessage(&self, uchannel: u32, strmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteMessage)(windows_core::Interface::as_raw(self), uchannel, strmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).WriteMessage)(windows_core::Interface::as_raw(self), uchannel, strmessage.param().abi()).ok() } pub unsafe fn WriteError(&self, pobjerror: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).WriteError)(windows_core::Interface::as_raw(self), pobjerror.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).WriteError)(windows_core::Interface::as_raw(self), pobjerror.param().abi(), &mut result__).map(|| result__) } pub unsafe fn PromptUser(&self, strmessage: P0, uprompttype: u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PromptUser)(windows_core::Interface::as_raw(self), strmessage.into_param().abi(), uprompttype, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PromptUser)(windows_core::Interface::as_raw(self), strmessage.param().abi(), uprompttype, &mut result__).map(|| result__) } pub unsafe fn WriteProgress(&self, stractivity: P0, strcurrentoperation: P1, strstatusdescription: P2, upercentcomplete: u32, usecondsremaining: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteProgress)(windows_core::Interface::as_raw(self), stractivity.into_param().abi(), strcurrentoperation.into_param().abi(), strstatusdescription.into_param().abi(), upercentcomplete, usecondsremaining).ok() + (windows_core::Interface::vtable(self).WriteProgress)(windows_core::Interface::as_raw(self), stractivity.param().abi(), strcurrentoperation.param().abi(), strstatusdescription.param().abi(), upercentcomplete, usecondsremaining).ok() } pub unsafe fn WriteStreamParameter(&self, strname: P0, vtvalue: *const windows_core::VARIANT, ultype: u32, ulflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).WriteStreamParameter)(windows_core::Interface::as_raw(self), strname.into_param().abi(), core::mem::transmute(vtvalue), ultype, ulflags).ok() + (windows_core::Interface::vtable(self).WriteStreamParameter)(windows_core::Interface::as_raw(self), strname.param().abi(), core::mem::transmute(vtvalue), ultype, ulflags).ok() } } #[repr(C)] @@ -3722,19 +3722,19 @@ windows_core::imp::interface_hierarchy!(IWbemObjectTextSrc, windows_core::IUnkno impl IWbemObjectTextSrc { pub unsafe fn GetText(&self, lflags: i32, pobj: P0, uobjtextformat: u32, pctx: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), lflags, pobj.into_param().abi(), uobjtextformat, pctx.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), lflags, pobj.param().abi(), uobjtextformat, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateFromText(&self, lflags: i32, strtext: P0, uobjtextformat: u32, pctx: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateFromText)(windows_core::Interface::as_raw(self), lflags, strtext.into_param().abi(), uobjtextformat, pctx.into_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, strtext.param().abi(), uobjtextformat, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -3748,9 +3748,9 @@ windows_core::imp::interface_hierarchy!(IWbemPath, windows_core::IUnknown); impl IWbemPath { pub unsafe fn SetText(&self, umode: u32, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), umode, pszpath.into_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), lflags, pubufflength, core::mem::transmute(psztext)).ok() @@ -3761,9 +3761,9 @@ impl IWbemPath { } pub unsafe fn SetServer(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetServer)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetServer(&self, punamebuflength: *mut u32, pname: windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetServer)(windows_core::Interface::as_raw(self), punamebuflength, core::mem::transmute(pname)).ok() @@ -3774,9 +3774,9 @@ impl IWbemPath { } pub unsafe fn SetNamespaceAt(&self, uindex: u32, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamespaceAt)(windows_core::Interface::as_raw(self), uindex, pszname.into_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), uindex, punamebuflength, core::mem::transmute(pname)).ok() @@ -3793,15 +3793,15 @@ impl IWbemPath { } pub unsafe fn SetScope(&self, uindex: u32, pszclass: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), uindex, pszclass.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScopeFromText)(windows_core::Interface::as_raw(self), uindex, psztext.into_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), uindex, puclassnamebufsize, core::mem::transmute(pszclass), core::mem::transmute(pkeylist)).ok() @@ -3817,9 +3817,9 @@ impl IWbemPath { } pub unsafe fn SetClassName(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClassName)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClassName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn GetClassName(&self, pubufflength: *mut u32, pszname: windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetClassName)(windows_core::Interface::as_raw(self), pubufflength, core::mem::transmute(pszname)).ok() @@ -3830,38 +3830,38 @@ impl IWbemPath { } pub unsafe fn CreateClassPart(&self, lflags: i32, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClassPart)(windows_core::Interface::as_raw(self), lflags, name.into_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), lflags).ok() } pub unsafe fn IsRelative(&self, wszmachine: P0, wsznamespace: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsRelative)(windows_core::Interface::as_raw(self), wszmachine.into_param().abi(), wsznamespace.into_param().abi()) + (windows_core::Interface::vtable(self).IsRelative)(windows_core::Interface::as_raw(self), wszmachine.param().abi(), wsznamespace.param().abi()) } pub unsafe fn IsRelativeOrChild(&self, wszmachine: P0, wsznamespace: P1, lflags: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).IsRelativeOrChild)(windows_core::Interface::as_raw(self), wszmachine.into_param().abi(), wsznamespace.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsLocal)(windows_core::Interface::as_raw(self), wszmachine.into_param().abi()) + (windows_core::Interface::vtable(self).IsLocal)(windows_core::Interface::as_raw(self), wszmachine.param().abi()) } pub unsafe fn IsSameClassName(&self, wszclass: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsSameClassName)(windows_core::Interface::as_raw(self), wszclass.into_param().abi()) + (windows_core::Interface::vtable(self).IsSameClassName)(windows_core::Interface::as_raw(self), wszclass.param().abi()) } } #[repr(C)] @@ -3903,15 +3903,15 @@ impl IWbemPathKeyList { } pub unsafe fn SetKey(&self, wszname: P0, uflags: u32, ucimtype: u32, pkeyval: *const core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), uflags, ucimtype, pkeyval).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), wszname.param().abi(), uflags, ucimtype, pkeyval).ok() } pub unsafe fn SetKey2(&self, wszname: P0, uflags: u32, ucimtype: u32, pkeyval: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey2)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), uflags, 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: windows_core::PWSTR, 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), ukeyix, uflags, punamebufsize, core::mem::transmute(pszkeyname), pukeyvalbufsize, pkeyval, puapparentcimtype).ok() @@ -3921,9 +3921,9 @@ impl IWbemPathKeyList { } pub unsafe fn RemoveKey(&self, wszname: P0, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveKey)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), 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), uflags).ok() @@ -3958,22 +3958,22 @@ windows_core::imp::interface_hierarchy!(IWbemPropertyProvider, windows_core::IUn impl IWbemPropertyProvider { pub unsafe fn GetProperty(&self, lflags: i32, strlocale: P0, strclassmapping: P1, strinstmapping: P2, strpropmapping: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lflags, strlocale.into_param().abi(), strclassmapping.into_param().abi(), strinstmapping.into_param().abi(), strpropmapping.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), lflags, strlocale.param().abi(), strclassmapping.param().abi(), strinstmapping.param().abi(), strpropmapping.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn PutProperty(&self, lflags: i32, strlocale: P0, strclassmapping: P1, strinstmapping: P2, strpropmapping: P3, pvvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), lflags, strlocale.into_param().abi(), strclassmapping.into_param().abi(), strinstmapping.into_param().abi(), strpropmapping.into_param().abi(), core::mem::transmute(pvvalue)).ok() + (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), lflags, strlocale.param().abi(), strclassmapping.param().abi(), strinstmapping.param().abi(), strpropmapping.param().abi(), core::mem::transmute(pvvalue)).ok() } } #[repr(C)] @@ -3987,9 +3987,9 @@ windows_core::imp::interface_hierarchy!(IWbemProviderIdentity, windows_core::IUn impl IWbemProviderIdentity { pub unsafe fn SetRegistrationObject(&self, lflags: i32, pprovreg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRegistrationObject)(windows_core::Interface::as_raw(self), lflags, pprovreg.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRegistrationObject)(windows_core::Interface::as_raw(self), lflags, pprovreg.param().abi()).ok() } } #[repr(C)] @@ -4002,14 +4002,14 @@ windows_core::imp::interface_hierarchy!(IWbemProviderInit, windows_core::IUnknow impl IWbemProviderInit { pub unsafe fn Initialize(&self, wszuser: P0, lflags: i32, wsznamespace: P1, wszlocale: P2, pnamespace: P3, pctx: P4, pinitsink: P5) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), wszuser.into_param().abi(), lflags, wsznamespace.into_param().abi(), wszlocale.into_param().abi(), pnamespace.into_param().abi(), pctx.into_param().abi(), pinitsink.into_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)] @@ -4034,21 +4034,21 @@ windows_core::imp::interface_hierarchy!(IWbemQualifierSet, windows_core::IUnknow impl IWbemQualifierSet { pub unsafe fn Get(&self, wszname: P0, lflags: i32, pval: *mut windows_core::VARIANT, plflavor: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), lflags, core::mem::transmute(pval), plflavor).ok() + (windows_core::Interface::vtable(self).Get)(windows_core::Interface::as_raw(self), wszname.param().abi(), lflags, core::mem::transmute(pval), plflavor).ok() } pub unsafe fn Put(&self, wszname: P0, pval: *const windows_core::VARIANT, lflavor: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Put)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), core::mem::transmute(pval), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), wszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self), wszname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetNames(&self, lflags: i32) -> windows_core::Result<*mut super::Com::SAFEARRAY> { @@ -4093,10 +4093,10 @@ impl IWbemQuery { } pub unsafe fn Parse(&self, pszlang: P0, pszquery: P1, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Parse)(windows_core::Interface::as_raw(self), pszlang.into_param().abi(), pszquery.into_param().abi(), 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), uanalysistype, uflags, panalysis).ok() @@ -4136,16 +4136,16 @@ windows_core::imp::interface_hierarchy!(IWbemServices, windows_core::IUnknown); impl IWbemServices { pub unsafe fn OpenNamespace(&self, strnamespace: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, ppworkingnamespace: Option<*mut Option>, ppresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenNamespace)(windows_core::Interface::as_raw(self), strnamespace.into_param().abi(), lflags, pctx.into_param().abi(), core::mem::transmute(ppworkingnamespace.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppresult.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).OpenNamespace)(windows_core::Interface::as_raw(self), strnamespace.param().abi(), lflags, pctx.param().abi(), core::mem::transmute(ppworkingnamespace.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppresult.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn CancelAsyncCall(&self, psink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CancelAsyncCall)(windows_core::Interface::as_raw(self), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CancelAsyncCall)(windows_core::Interface::as_raw(self), psink.param().abi()).ok() } pub unsafe fn QueryObjectSink(&self, lflags: WBEM_GENERIC_FLAG_TYPE) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4153,165 +4153,165 @@ impl IWbemServices { } pub unsafe fn GetObject(&self, strobjectpath: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, ppobject: Option<*mut Option>, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), lflags, pctx.into_param().abi(), core::mem::transmute(ppobject.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), lflags, pctx.param().abi(), core::mem::transmute(ppobject.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetObjectAsync(&self, strobjectpath: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjectAsync)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetObjectAsync)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn PutClass(&self, pobject: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutClass)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), lflags, pctx.into_param().abi(), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn PutClassAsync(&self, pobject: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutClassAsync)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_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: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteClass)(windows_core::Interface::as_raw(self), strclass.into_param().abi(), lflags, pctx.into_param().abi(), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DeleteClass)(windows_core::Interface::as_raw(self), strclass.param().abi(), lflags, pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn DeleteClassAsync(&self, strclass: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteClassAsync)(windows_core::Interface::as_raw(self), strclass.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteClassAsync)(windows_core::Interface::as_raw(self), strclass.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn CreateClassEnum(&self, strsuperclass: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateClassEnum)(windows_core::Interface::as_raw(self), strsuperclass.into_param().abi(), lflags, pctx.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateClassEnum)(windows_core::Interface::as_raw(self), strsuperclass.param().abi(), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateClassEnumAsync(&self, strsuperclass: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateClassEnumAsync)(windows_core::Interface::as_raw(self), strsuperclass.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateClassEnumAsync)(windows_core::Interface::as_raw(self), strsuperclass.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn PutInstance(&self, pinst: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutInstance)(windows_core::Interface::as_raw(self), pinst.into_param().abi(), lflags, pctx.into_param().abi(), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).ok() } pub unsafe fn PutInstanceAsync(&self, pinst: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PutInstanceAsync)(windows_core::Interface::as_raw(self), pinst.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_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: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteInstance)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), lflags, pctx.into_param().abi(), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).DeleteInstance)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), lflags, pctx.param().abi(), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn DeleteInstanceAsync(&self, strobjectpath: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteInstanceAsync)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteInstanceAsync)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn CreateInstanceEnum(&self, strfilter: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstanceEnum)(windows_core::Interface::as_raw(self), strfilter.into_param().abi(), lflags, pctx.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInstanceEnum)(windows_core::Interface::as_raw(self), strfilter.param().abi(), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateInstanceEnumAsync(&self, strfilter: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateInstanceEnumAsync)(windows_core::Interface::as_raw(self), strfilter.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreateInstanceEnumAsync)(windows_core::Interface::as_raw(self), strfilter.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn ExecQuery(&self, strquerylanguage: P0, strquery: P1, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), strquerylanguage.into_param().abi(), strquery.into_param().abi(), lflags, pctx.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecQuery)(windows_core::Interface::as_raw(self), strquerylanguage.param().abi(), strquery.param().abi(), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecQueryAsync(&self, strquerylanguage: P0, strquery: P1, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), strquerylanguage.into_param().abi(), strquery.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecQueryAsync)(windows_core::Interface::as_raw(self), strquerylanguage.param().abi(), strquery.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn ExecNotificationQuery(&self, strquerylanguage: P0, strquery: P1, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), strquerylanguage.into_param().abi(), strquery.into_param().abi(), lflags, pctx.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExecNotificationQuery)(windows_core::Interface::as_raw(self), strquerylanguage.param().abi(), strquery.param().abi(), lflags, pctx.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ExecNotificationQueryAsync(&self, strquerylanguage: P0, strquery: P1, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, presponsehandler: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), strquerylanguage.into_param().abi(), strquery.into_param().abi(), lflags, pctx.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecNotificationQueryAsync)(windows_core::Interface::as_raw(self), strquerylanguage.param().abi(), strquery.param().abi(), lflags, pctx.param().abi(), presponsehandler.param().abi()).ok() } pub unsafe fn ExecMethod(&self, strobjectpath: P0, strmethodname: P1, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, pinparams: P3, ppoutparams: Option<*mut Option>, ppcallresult: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strmethodname.into_param().abi(), lflags, pctx.into_param().abi(), pinparams.into_param().abi(), core::mem::transmute(ppoutparams.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).ExecMethod)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strmethodname.param().abi(), lflags, pctx.param().abi(), pinparams.param().abi(), core::mem::transmute(ppoutparams.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppcallresult.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn ExecMethodAsync(&self, strobjectpath: P0, strmethodname: P1, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P2, pinparams: P3, presponsehandler: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), strobjectpath.into_param().abi(), strmethodname.into_param().abi(), lflags, pctx.into_param().abi(), pinparams.into_param().abi(), presponsehandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ExecMethodAsync)(windows_core::Interface::as_raw(self), strobjectpath.param().abi(), strmethodname.param().abi(), lflags, pctx.param().abi(), pinparams.param().abi(), presponsehandler.param().abi()).ok() } } #[repr(C)] @@ -4346,9 +4346,9 @@ windows_core::imp::interface_hierarchy!(IWbemShutdown, windows_core::IUnknown); impl IWbemShutdown { pub unsafe fn Shutdown(&self, ureason: i32, umaxmilliseconds: u32, pctx: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), ureason, umaxmilliseconds, pctx.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Shutdown)(windows_core::Interface::as_raw(self), ureason, umaxmilliseconds, pctx.param().abi()).ok() } } #[repr(C)] @@ -4391,9 +4391,9 @@ windows_core::imp::interface_hierarchy!(IWbemUnboundObjectSink, windows_core::IU impl IWbemUnboundObjectSink { pub unsafe fn IndicateToConsumer(&self, plogicalconsumer: P0, apobjects: &[Option]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IndicateToConsumer)(windows_core::Interface::as_raw(self), plogicalconsumer.into_param().abi(), apobjects.len().try_into().unwrap(), core::mem::transmute(apobjects.as_ptr())).ok() + (windows_core::Interface::vtable(self).IndicateToConsumer)(windows_core::Interface::as_raw(self), plogicalconsumer.param().abi(), apobjects.len().try_into().unwrap(), core::mem::transmute(apobjects.as_ptr())).ok() } } #[repr(C)] @@ -4406,18 +4406,18 @@ windows_core::imp::interface_hierarchy!(IWbemUnsecuredApartment, windows_core::I impl IWbemUnsecuredApartment { pub unsafe fn CreateObjectStub(&self, pobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateObjectStub)(windows_core::Interface::as_raw(self), pobject.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateObjectStub)(windows_core::Interface::as_raw(self), pobject.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateSinkStub(&self, psink: P0, dwflags: u32, wszreserved: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSinkStub)(windows_core::Interface::as_raw(self), psink.into_param().abi(), dwflags, wszreserved.into_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 83c1194b8d..9417116064 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs @@ -1,37 +1,37 @@ #[inline] pub unsafe fn AccNotifyTouchInteraction(hwndapp: P0, hwndtarget: P1, pttarget: super::super::Foundation::POINT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndapp.into_param().abi(), hwndtarget.into_param().abi(), core::mem::transmute(pttarget)).ok() + AccNotifyTouchInteraction(hwndapp.param().abi(), hwndtarget.param().abi(), core::mem::transmute(pttarget)).ok() } #[inline] pub unsafe fn AccSetRunningUtilityState(hwndapp: P0, dwutilitystatemask: u32, dwutilitystate: ACC_UTILITY_STATE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleacc.dll" "system" fn AccSetRunningUtilityState(hwndapp : super::super::Foundation:: HWND, dwutilitystatemask : u32, dwutilitystate : ACC_UTILITY_STATE_FLAGS) -> windows_core::HRESULT); - AccSetRunningUtilityState(hwndapp.into_param().abi(), dwutilitystatemask, dwutilitystate).ok() + AccSetRunningUtilityState(hwndapp.param().abi(), dwutilitystatemask, dwutilitystate).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn AccessibleChildren(pacccontainer: P0, ichildstart: i32, rgvarchildren: &mut [windows_core::VARIANT], pcobtained: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleacc.dll" "system" fn AccessibleChildren(pacccontainer : * mut core::ffi::c_void, ichildstart : i32, cchildren : i32, rgvarchildren : *mut std::mem::MaybeUninit < windows_core::VARIANT >, pcobtained : *mut i32) -> windows_core::HRESULT); - AccessibleChildren(pacccontainer.into_param().abi(), ichildstart, rgvarchildren.len().try_into().unwrap(), core::mem::transmute(rgvarchildren.as_ptr()), pcobtained).ok() + AccessibleChildren(pacccontainer.param().abi(), ichildstart, rgvarchildren.len().try_into().unwrap(), core::mem::transmute(rgvarchildren.as_ptr()), pcobtained).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn AccessibleObjectFromEvent(hwnd: P0, dwid: u32, dwchildid: u32, ppacc: *mut Option, pvarchild: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 std::mem::MaybeUninit < windows_core::VARIANT >) -> windows_core::HRESULT); - AccessibleObjectFromEvent(hwnd.into_param().abi(), dwid, dwchildid, core::mem::transmute(ppacc), core::mem::transmute(pvarchild)).ok() + AccessibleObjectFromEvent(hwnd.param().abi(), dwid, dwchildid, core::mem::transmute(ppacc), core::mem::transmute(pvarchild)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -42,60 +42,60 @@ pub unsafe fn AccessibleObjectFromPoint(ptscreen: super::super::Foundation::POIN #[inline] pub unsafe fn AccessibleObjectFromWindow(hwnd: P0, dwid: u32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), dwid, riid, ppvobject).ok() + AccessibleObjectFromWindow(hwnd.param().abi(), dwid, riid, ppvobject).ok() } #[inline] pub unsafe fn CreateStdAccessibleObject(hwnd: P0, idobject: i32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), idobject, riid, ppvobject).ok() + CreateStdAccessibleObject(hwnd.param().abi(), idobject, riid, ppvobject).ok() } #[inline] pub unsafe fn CreateStdAccessibleProxyA(hwnd: P0, pclassname: P1, idobject: i32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pclassname.into_param().abi(), idobject, riid, ppvobject).ok() + CreateStdAccessibleProxyA(hwnd.param().abi(), pclassname.param().abi(), idobject, riid, ppvobject).ok() } #[inline] pub unsafe fn CreateStdAccessibleProxyW(hwnd: P0, pclassname: P1, idobject: i32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pclassname.into_param().abi(), idobject, riid, ppvobject).ok() + CreateStdAccessibleProxyW(hwnd.param().abi(), pclassname.param().abi(), idobject, riid, ppvobject).ok() } #[inline] pub unsafe fn DockPattern_SetDockPosition(hobj: P0, dockposition: DockPosition) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn DockPattern_SetDockPosition(hobj : HUIAPATTERNOBJECT, dockposition : DockPosition) -> windows_core::HRESULT); - DockPattern_SetDockPosition(hobj.into_param().abi(), dockposition).ok() + DockPattern_SetDockPosition(hobj.param().abi(), dockposition).ok() } #[inline] pub unsafe fn ExpandCollapsePattern_Collapse(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ExpandCollapsePattern_Collapse(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - ExpandCollapsePattern_Collapse(hobj.into_param().abi()).ok() + ExpandCollapsePattern_Collapse(hobj.param().abi()).ok() } #[inline] pub unsafe fn ExpandCollapsePattern_Expand(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ExpandCollapsePattern_Expand(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - ExpandCollapsePattern_Expand(hobj.into_param().abi()).ok() + ExpandCollapsePattern_Expand(hobj.param().abi()).ok() } #[inline] pub unsafe fn GetOleaccVersionInfo(pver: *mut u32, pbuild: *mut u32) { @@ -125,18 +125,18 @@ pub unsafe fn GetStateTextW(lstatebit: u32, lpszstate: Option<&mut [u16]>) -> u3 #[inline] pub unsafe fn GridPattern_GetItem(hobj: P0, row: i32, column: i32, presult: *mut HUIANODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn GridPattern_GetItem(hobj : HUIAPATTERNOBJECT, row : i32, column : i32, presult : *mut HUIANODE) -> windows_core::HRESULT); - GridPattern_GetItem(hobj.into_param().abi(), row, column, presult).ok() + GridPattern_GetItem(hobj.param().abi(), row, column, presult).ok() } #[inline] pub unsafe fn InvokePattern_Invoke(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn InvokePattern_Invoke(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - InvokePattern_Invoke(hobj.into_param().abi()).ok() + InvokePattern_Invoke(hobj.param().abi()).ok() } #[inline] pub unsafe fn IsWinEventHookInstalled(event: u32) -> super::super::Foundation::BOOL { @@ -146,435 +146,435 @@ pub unsafe fn IsWinEventHookInstalled(event: u32) -> super::super::Foundation::B #[inline] pub unsafe fn ItemContainerPattern_FindItemByProperty(hobj: P0, hnodestartafter: P1, propertyid: i32, value: P2, pfound: *mut HUIANODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ItemContainerPattern_FindItemByProperty(hobj : HUIAPATTERNOBJECT, hnodestartafter : HUIANODE, propertyid : i32, value : std::mem::MaybeUninit < windows_core::VARIANT >, pfound : *mut HUIANODE) -> windows_core::HRESULT); - ItemContainerPattern_FindItemByProperty(hobj.into_param().abi(), hnodestartafter.into_param().abi(), propertyid, value.into_param().abi(), pfound).ok() + ItemContainerPattern_FindItemByProperty(hobj.param().abi(), hnodestartafter.param().abi(), propertyid, value.param().abi(), pfound).ok() } #[inline] pub unsafe fn LegacyIAccessiblePattern_DoDefaultAction(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_DoDefaultAction(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - LegacyIAccessiblePattern_DoDefaultAction(hobj.into_param().abi()).ok() + LegacyIAccessiblePattern_DoDefaultAction(hobj.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn LegacyIAccessiblePattern_GetIAccessible(hobj: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_GetIAccessible(hobj : HUIAPATTERNOBJECT, paccessible : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - LegacyIAccessiblePattern_GetIAccessible(hobj.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + LegacyIAccessiblePattern_GetIAccessible(hobj.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn LegacyIAccessiblePattern_Select(hobj: P0, flagsselect: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_Select(hobj : HUIAPATTERNOBJECT, flagsselect : i32) -> windows_core::HRESULT); - LegacyIAccessiblePattern_Select(hobj.into_param().abi(), flagsselect).ok() + LegacyIAccessiblePattern_Select(hobj.param().abi(), flagsselect).ok() } #[inline] pub unsafe fn LegacyIAccessiblePattern_SetValue(hobj: P0, szvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn LegacyIAccessiblePattern_SetValue(hobj : HUIAPATTERNOBJECT, szvalue : windows_core::PCWSTR) -> windows_core::HRESULT); - LegacyIAccessiblePattern_SetValue(hobj.into_param().abi(), szvalue.into_param().abi()).ok() + LegacyIAccessiblePattern_SetValue(hobj.param().abi(), szvalue.param().abi()).ok() } #[inline] pub unsafe fn LresultFromObject(riid: *const windows_core::GUID, wparam: P0, punk: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(riid, wparam.into_param().abi(), punk.into_param().abi()) + LresultFromObject(riid, wparam.param().abi(), punk.param().abi()) } #[inline] pub unsafe fn MultipleViewPattern_GetViewName(hobj: P0, viewid: i32, ppstr: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn MultipleViewPattern_GetViewName(hobj : HUIAPATTERNOBJECT, viewid : i32, ppstr : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - MultipleViewPattern_GetViewName(hobj.into_param().abi(), viewid, core::mem::transmute(ppstr)).ok() + MultipleViewPattern_GetViewName(hobj.param().abi(), viewid, core::mem::transmute(ppstr)).ok() } #[inline] pub unsafe fn MultipleViewPattern_SetCurrentView(hobj: P0, viewid: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn MultipleViewPattern_SetCurrentView(hobj : HUIAPATTERNOBJECT, viewid : i32) -> windows_core::HRESULT); - MultipleViewPattern_SetCurrentView(hobj.into_param().abi(), viewid).ok() + MultipleViewPattern_SetCurrentView(hobj.param().abi(), viewid).ok() } #[inline] pub unsafe fn NotifyWinEvent(event: u32, hwnd: P0, idobject: i32, idchild: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn NotifyWinEvent(event : u32, hwnd : super::super::Foundation:: HWND, idobject : i32, idchild : i32)); - NotifyWinEvent(event, hwnd.into_param().abi(), idobject, idchild) + NotifyWinEvent(event, hwnd.param().abi(), idobject, idchild) } #[inline] pub unsafe fn ObjectFromLresult(lresult: P0, riid: *const windows_core::GUID, wparam: P1, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(lresult.into_param().abi(), riid, wparam.into_param().abi(), ppvobject).ok() + ObjectFromLresult(lresult.param().abi(), riid, wparam.param().abi(), ppvobject).ok() } #[inline] pub unsafe fn RangeValuePattern_SetValue(hobj: P0, val: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn RangeValuePattern_SetValue(hobj : HUIAPATTERNOBJECT, val : f64) -> windows_core::HRESULT); - RangeValuePattern_SetValue(hobj.into_param().abi(), val).ok() + RangeValuePattern_SetValue(hobj.param().abi(), val).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterPointerInputTarget(hwnd: P0, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); - RegisterPointerInputTarget(hwnd.into_param().abi(), pointertype).ok() + RegisterPointerInputTarget(hwnd.param().abi(), pointertype).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterPointerInputTargetEx(hwnd: P0, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE, fobserve: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), pointertype, fobserve.into_param().abi()) + RegisterPointerInputTargetEx(hwnd.param().abi(), pointertype, fobserve.param().abi()) } #[inline] pub unsafe fn ScrollItemPattern_ScrollIntoView(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ScrollItemPattern_ScrollIntoView(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - ScrollItemPattern_ScrollIntoView(hobj.into_param().abi()).ok() + ScrollItemPattern_ScrollIntoView(hobj.param().abi()).ok() } #[inline] pub unsafe fn ScrollPattern_Scroll(hobj: P0, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ScrollPattern_Scroll(hobj : HUIAPATTERNOBJECT, horizontalamount : ScrollAmount, verticalamount : ScrollAmount) -> windows_core::HRESULT); - ScrollPattern_Scroll(hobj.into_param().abi(), horizontalamount, verticalamount).ok() + ScrollPattern_Scroll(hobj.param().abi(), horizontalamount, verticalamount).ok() } #[inline] pub unsafe fn ScrollPattern_SetScrollPercent(hobj: P0, horizontalpercent: f64, verticalpercent: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ScrollPattern_SetScrollPercent(hobj : HUIAPATTERNOBJECT, horizontalpercent : f64, verticalpercent : f64) -> windows_core::HRESULT); - ScrollPattern_SetScrollPercent(hobj.into_param().abi(), horizontalpercent, verticalpercent).ok() + ScrollPattern_SetScrollPercent(hobj.param().abi(), horizontalpercent, verticalpercent).ok() } #[inline] pub unsafe fn SelectionItemPattern_AddToSelection(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn SelectionItemPattern_AddToSelection(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SelectionItemPattern_AddToSelection(hobj.into_param().abi()).ok() + SelectionItemPattern_AddToSelection(hobj.param().abi()).ok() } #[inline] pub unsafe fn SelectionItemPattern_RemoveFromSelection(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn SelectionItemPattern_RemoveFromSelection(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SelectionItemPattern_RemoveFromSelection(hobj.into_param().abi()).ok() + SelectionItemPattern_RemoveFromSelection(hobj.param().abi()).ok() } #[inline] pub unsafe fn SelectionItemPattern_Select(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn SelectionItemPattern_Select(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SelectionItemPattern_Select(hobj.into_param().abi()).ok() + SelectionItemPattern_Select(hobj.param().abi()).ok() } #[inline] pub unsafe fn SetWinEventHook(eventmin: u32, eventmax: u32, hmodwineventproc: P0, pfnwineventproc: WINEVENTPROC, idprocess: u32, idthread: u32, dwflags: u32) -> HWINEVENTHOOK where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(eventmin, eventmax, hmodwineventproc.into_param().abi(), pfnwineventproc, idprocess, idthread, dwflags) + SetWinEventHook(eventmin, eventmax, hmodwineventproc.param().abi(), pfnwineventproc, idprocess, idthread, dwflags) } #[inline] pub unsafe fn SynchronizedInputPattern_Cancel(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn SynchronizedInputPattern_Cancel(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - SynchronizedInputPattern_Cancel(hobj.into_param().abi()).ok() + SynchronizedInputPattern_Cancel(hobj.param().abi()).ok() } #[inline] pub unsafe fn SynchronizedInputPattern_StartListening(hobj: P0, inputtype: SynchronizedInputType) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn SynchronizedInputPattern_StartListening(hobj : HUIAPATTERNOBJECT, inputtype : SynchronizedInputType) -> windows_core::HRESULT); - SynchronizedInputPattern_StartListening(hobj.into_param().abi(), inputtype).ok() + SynchronizedInputPattern_StartListening(hobj.param().abi(), inputtype).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextPattern_GetSelection(hobj: P0, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_GetSelection(hobj : HUIAPATTERNOBJECT, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextPattern_GetSelection(hobj.into_param().abi(), pretval).ok() + TextPattern_GetSelection(hobj.param().abi(), pretval).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextPattern_GetVisibleRanges(hobj: P0, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_GetVisibleRanges(hobj : HUIAPATTERNOBJECT, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextPattern_GetVisibleRanges(hobj.into_param().abi(), pretval).ok() + TextPattern_GetVisibleRanges(hobj.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextPattern_RangeFromChild(hobj: P0, hnodechild: P1, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_RangeFromChild(hobj : HUIAPATTERNOBJECT, hnodechild : HUIANODE, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextPattern_RangeFromChild(hobj.into_param().abi(), hnodechild.into_param().abi(), pretval).ok() + TextPattern_RangeFromChild(hobj.param().abi(), hnodechild.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextPattern_RangeFromPoint(hobj: P0, point: UiaPoint, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_RangeFromPoint(hobj : HUIAPATTERNOBJECT, point : UiaPoint, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextPattern_RangeFromPoint(hobj.into_param().abi(), core::mem::transmute(point), pretval).ok() + TextPattern_RangeFromPoint(hobj.param().abi(), core::mem::transmute(point), pretval).ok() } #[inline] pub unsafe fn TextPattern_get_DocumentRange(hobj: P0, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_get_DocumentRange(hobj : HUIAPATTERNOBJECT, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextPattern_get_DocumentRange(hobj.into_param().abi(), pretval).ok() + TextPattern_get_DocumentRange(hobj.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextPattern_get_SupportedTextSelection(hobj: P0, pretval: *mut SupportedTextSelection) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextPattern_get_SupportedTextSelection(hobj : HUIAPATTERNOBJECT, pretval : *mut SupportedTextSelection) -> windows_core::HRESULT); - TextPattern_get_SupportedTextSelection(hobj.into_param().abi(), pretval).ok() + TextPattern_get_SupportedTextSelection(hobj.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextRange_AddToSelection(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_AddToSelection(hobj : HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_AddToSelection(hobj.into_param().abi()).ok() + TextRange_AddToSelection(hobj.param().abi()).ok() } #[inline] pub unsafe fn TextRange_Clone(hobj: P0, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Clone(hobj : HUIATEXTRANGE, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_Clone(hobj.into_param().abi(), pretval).ok() + TextRange_Clone(hobj.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextRange_Compare(hobj: P0, range: P1, pretval: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Compare(hobj : HUIATEXTRANGE, range : HUIATEXTRANGE, pretval : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - TextRange_Compare(hobj.into_param().abi(), range.into_param().abi(), pretval).ok() + TextRange_Compare(hobj.param().abi(), range.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextRange_CompareEndpoints(hobj: P0, endpoint: TextPatternRangeEndpoint, targetrange: P1, targetendpoint: TextPatternRangeEndpoint, pretval: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hobj.into_param().abi(), endpoint, targetrange.into_param().abi(), targetendpoint, pretval).ok() + TextRange_CompareEndpoints(hobj.param().abi(), endpoint, targetrange.param().abi(), targetendpoint, pretval).ok() } #[inline] pub unsafe fn TextRange_ExpandToEnclosingUnit(hobj: P0, unit: TextUnit) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_ExpandToEnclosingUnit(hobj : HUIATEXTRANGE, unit : TextUnit) -> windows_core::HRESULT); - TextRange_ExpandToEnclosingUnit(hobj.into_param().abi(), unit).ok() + TextRange_ExpandToEnclosingUnit(hobj.param().abi(), unit).ok() } #[inline] pub unsafe fn TextRange_FindAttribute(hobj: P0, attributeid: i32, val: P1, backward: P2, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindAttribute(hobj : HUIATEXTRANGE, attributeid : i32, val : std::mem::MaybeUninit < windows_core::VARIANT >, backward : super::super::Foundation:: BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_FindAttribute(hobj.into_param().abi(), attributeid, val.into_param().abi(), backward.into_param().abi(), pretval).ok() + TextRange_FindAttribute(hobj.param().abi(), attributeid, val.param().abi(), backward.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextRange_FindText(hobj: P0, text: P1, backward: P2, ignorecase: P3, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindText(hobj : HUIATEXTRANGE, text : std::mem::MaybeUninit < windows_core::BSTR >, backward : super::super::Foundation:: BOOL, ignorecase : super::super::Foundation:: BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_FindText(hobj.into_param().abi(), text.into_param().abi(), backward.into_param().abi(), ignorecase.into_param().abi(), pretval).ok() + TextRange_FindText(hobj.param().abi(), text.param().abi(), backward.param().abi(), ignorecase.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextRange_GetAttributeValue(hobj: P0, attributeid: i32, pretval: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetAttributeValue(hobj : HUIATEXTRANGE, attributeid : i32, pretval : *mut std::mem::MaybeUninit < windows_core::VARIANT >) -> windows_core::HRESULT); - TextRange_GetAttributeValue(hobj.into_param().abi(), attributeid, core::mem::transmute(pretval)).ok() + TextRange_GetAttributeValue(hobj.param().abi(), attributeid, core::mem::transmute(pretval)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextRange_GetBoundingRectangles(hobj: P0, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetBoundingRectangles(hobj : HUIATEXTRANGE, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextRange_GetBoundingRectangles(hobj.into_param().abi(), pretval).ok() + TextRange_GetBoundingRectangles(hobj.param().abi(), pretval).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn TextRange_GetChildren(hobj: P0, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetChildren(hobj : HUIATEXTRANGE, pretval : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - TextRange_GetChildren(hobj.into_param().abi(), pretval).ok() + TextRange_GetChildren(hobj.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextRange_GetEnclosingElement(hobj: P0, pretval: *mut HUIANODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetEnclosingElement(hobj : HUIATEXTRANGE, pretval : *mut HUIANODE) -> windows_core::HRESULT); - TextRange_GetEnclosingElement(hobj.into_param().abi(), pretval).ok() + TextRange_GetEnclosingElement(hobj.param().abi(), pretval).ok() } #[inline] pub unsafe fn TextRange_GetText(hobj: P0, maxlength: i32, pretval: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_GetText(hobj : HUIATEXTRANGE, maxlength : i32, pretval : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - TextRange_GetText(hobj.into_param().abi(), maxlength, core::mem::transmute(pretval)).ok() + TextRange_GetText(hobj.param().abi(), maxlength, core::mem::transmute(pretval)).ok() } #[inline] pub unsafe fn TextRange_Move(hobj: P0, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Move(hobj : HUIATEXTRANGE, unit : TextUnit, count : i32, pretval : *mut i32) -> windows_core::HRESULT); - TextRange_Move(hobj.into_param().abi(), unit, count, pretval).ok() + TextRange_Move(hobj.param().abi(), unit, count, pretval).ok() } #[inline] pub unsafe fn TextRange_MoveEndpointByRange(hobj: P0, endpoint: TextPatternRangeEndpoint, targetrange: P1, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_MoveEndpointByRange(hobj : HUIATEXTRANGE, endpoint : TextPatternRangeEndpoint, targetrange : HUIATEXTRANGE, targetendpoint : TextPatternRangeEndpoint) -> windows_core::HRESULT); - TextRange_MoveEndpointByRange(hobj.into_param().abi(), endpoint, targetrange.into_param().abi(), targetendpoint).ok() + TextRange_MoveEndpointByRange(hobj.param().abi(), endpoint, targetrange.param().abi(), targetendpoint).ok() } #[inline] pub unsafe fn TextRange_MoveEndpointByUnit(hobj: P0, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hobj.into_param().abi(), endpoint, unit, count, pretval).ok() + TextRange_MoveEndpointByUnit(hobj.param().abi(), endpoint, unit, count, pretval).ok() } #[inline] pub unsafe fn TextRange_RemoveFromSelection(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_RemoveFromSelection(hobj : HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_RemoveFromSelection(hobj.into_param().abi()).ok() + TextRange_RemoveFromSelection(hobj.param().abi()).ok() } #[inline] pub unsafe fn TextRange_ScrollIntoView(hobj: P0, aligntotop: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_ScrollIntoView(hobj : HUIATEXTRANGE, aligntotop : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - TextRange_ScrollIntoView(hobj.into_param().abi(), aligntotop.into_param().abi()).ok() + TextRange_ScrollIntoView(hobj.param().abi(), aligntotop.param().abi()).ok() } #[inline] pub unsafe fn TextRange_Select(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Select(hobj : HUIATEXTRANGE) -> windows_core::HRESULT); - TextRange_Select(hobj.into_param().abi()).ok() + TextRange_Select(hobj.param().abi()).ok() } #[inline] pub unsafe fn TogglePattern_Toggle(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TogglePattern_Toggle(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - TogglePattern_Toggle(hobj.into_param().abi()).ok() + TogglePattern_Toggle(hobj.param().abi()).ok() } #[inline] pub unsafe fn TransformPattern_Move(hobj: P0, x: f64, y: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TransformPattern_Move(hobj : HUIAPATTERNOBJECT, x : f64, y : f64) -> windows_core::HRESULT); - TransformPattern_Move(hobj.into_param().abi(), x, y).ok() + TransformPattern_Move(hobj.param().abi(), x, y).ok() } #[inline] pub unsafe fn TransformPattern_Resize(hobj: P0, width: f64, height: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TransformPattern_Resize(hobj : HUIAPATTERNOBJECT, width : f64, height : f64) -> windows_core::HRESULT); - TransformPattern_Resize(hobj.into_param().abi(), width, height).ok() + TransformPattern_Resize(hobj.param().abi(), width, height).ok() } #[inline] pub unsafe fn TransformPattern_Rotate(hobj: P0, degrees: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn TransformPattern_Rotate(hobj : HUIAPATTERNOBJECT, degrees : f64) -> windows_core::HRESULT); - TransformPattern_Rotate(hobj.into_param().abi(), degrees).ok() + TransformPattern_Rotate(hobj.param().abi(), degrees).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaAddEvent(hnode: P0, eventid: i32, pcallback: *mut UiaEventCallback, scope: TreeScope, pproperties: *mut i32, cproperties: i32, prequest: *mut UiaCacheRequest, phevent: *mut HUIAEVENT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hnode.into_param().abi(), eventid, pcallback, scope, pproperties, cproperties, prequest, phevent).ok() + UiaAddEvent(hnode.param().abi(), eventid, pcallback, scope, pproperties, cproperties, prequest, phevent).ok() } #[inline] pub unsafe fn UiaClientsAreListening() -> super::super::Foundation::BOOL { @@ -589,37 +589,37 @@ pub unsafe fn UiaDisconnectAllProviders() -> windows_core::Result<()> { #[inline] pub unsafe fn UiaDisconnectProvider(pprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaDisconnectProvider(pprovider : * mut core::ffi::c_void) -> windows_core::HRESULT); - UiaDisconnectProvider(pprovider.into_param().abi()).ok() + UiaDisconnectProvider(pprovider.param().abi()).ok() } #[inline] pub unsafe fn UiaEventAddWindow(hevent: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaEventAddWindow(hevent : HUIAEVENT, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - UiaEventAddWindow(hevent.into_param().abi(), hwnd.into_param().abi()).ok() + UiaEventAddWindow(hevent.param().abi(), hwnd.param().abi()).ok() } #[inline] pub unsafe fn UiaEventRemoveWindow(hevent: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaEventRemoveWindow(hevent : HUIAEVENT, hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - UiaEventRemoveWindow(hevent.into_param().abi(), hwnd.into_param().abi()).ok() + UiaEventRemoveWindow(hevent.param().abi(), hwnd.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaFind(hnode: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hnode.into_param().abi(), pparams, prequest, pprequesteddata, ppoffsets, pptreestructures).ok() + UiaFind(hnode.param().abi(), pparams, prequest, pprequesteddata, ppoffsets, pptreestructures).ok() } #[inline] pub unsafe fn UiaGetErrorDescription(pdescription: *mut windows_core::BSTR) -> super::super::Foundation::BOOL { @@ -629,18 +629,18 @@ pub unsafe fn UiaGetErrorDescription(pdescription: *mut windows_core::BSTR) -> s #[inline] pub unsafe fn UiaGetPatternProvider(hnode: P0, patternid: i32, phobj: *mut HUIAPATTERNOBJECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetPatternProvider(hnode : HUIANODE, patternid : i32, phobj : *mut HUIAPATTERNOBJECT) -> windows_core::HRESULT); - UiaGetPatternProvider(hnode.into_param().abi(), patternid, phobj).ok() + UiaGetPatternProvider(hnode.param().abi(), patternid, phobj).ok() } #[inline] pub unsafe fn UiaGetPropertyValue(hnode: P0, propertyid: i32, pvalue: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetPropertyValue(hnode : HUIANODE, propertyid : i32, pvalue : *mut std::mem::MaybeUninit < windows_core::VARIANT >) -> windows_core::HRESULT); - UiaGetPropertyValue(hnode.into_param().abi(), propertyid, core::mem::transmute(pvalue)).ok() + UiaGetPropertyValue(hnode.param().abi(), propertyid, core::mem::transmute(pvalue)).ok() } #[inline] pub unsafe fn UiaGetReservedMixedAttributeValue() -> windows_core::Result { @@ -663,19 +663,19 @@ pub unsafe fn UiaGetRootNode(phnode: *mut HUIANODE) -> windows_core::Result<()> #[inline] pub unsafe fn UiaGetRuntimeId(hnode: P0, pruntimeid: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetRuntimeId(hnode : HUIANODE, pruntimeid : *mut *mut super::super::System::Com:: SAFEARRAY) -> windows_core::HRESULT); - UiaGetRuntimeId(hnode.into_param().abi(), pruntimeid).ok() + UiaGetRuntimeId(hnode.param().abi(), pruntimeid).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaGetUpdatedCache(hnode: P0, prequest: *mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: *mut UiaCondition, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - UiaGetUpdatedCache(hnode.into_param().abi(), prequest, normalizestate, pnormalizecondition, pprequesteddata, core::mem::transmute(pptreestructure)).ok() + UiaGetUpdatedCache(hnode.param().abi(), prequest, normalizestate, pnormalizecondition, pprequesteddata, core::mem::transmute(pptreestructure)).ok() } #[inline] pub unsafe fn UiaHPatternObjectFromVariant(pvar: *mut windows_core::VARIANT, phobj: *mut HUIAPATTERNOBJECT) -> windows_core::Result<()> { @@ -695,28 +695,28 @@ pub unsafe fn UiaHUiaNodeFromVariant(pvar: *mut windows_core::VARIANT, phnode: * #[inline] pub unsafe fn UiaHasServerSideProvider(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaHasServerSideProvider(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - UiaHasServerSideProvider(hwnd.into_param().abi()) + UiaHasServerSideProvider(hwnd.param().abi()) } #[inline] pub unsafe fn UiaHostProviderFromHwnd(hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - UiaHostProviderFromHwnd(hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + UiaHostProviderFromHwnd(hwnd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaIAccessibleFromProvider(pprovider: P0, dwflags: u32, ppaccessible: *mut Option, pvarchild: *mut windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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 std::mem::MaybeUninit < windows_core::VARIANT >) -> windows_core::HRESULT); - UiaIAccessibleFromProvider(pprovider.into_param().abi(), 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 { @@ -727,10 +727,10 @@ pub unsafe fn UiaLookupId(r#type: AutomationIdentifierType, pguid: *const window #[inline] pub unsafe fn UiaNavigate(hnode: P0, direction: NavigateDirection, pcondition: *mut UiaCondition, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - UiaNavigate(hnode.into_param().abi(), direction, pcondition, prequest, pprequesteddata, core::mem::transmute(pptreestructure)).ok() + UiaNavigate(hnode.param().abi(), direction, pcondition, prequest, pprequesteddata, core::mem::transmute(pptreestructure)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -741,10 +741,10 @@ pub unsafe fn UiaNodeFromFocus(prequest: *mut UiaCacheRequest, pprequesteddata: #[inline] pub unsafe fn UiaNodeFromHandle(hwnd: P0, phnode: *mut HUIANODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeFromHandle(hwnd : super::super::Foundation:: HWND, phnode : *mut HUIANODE) -> windows_core::HRESULT); - UiaNodeFromHandle(hwnd.into_param().abi(), phnode).ok() + UiaNodeFromHandle(hwnd.param().abi(), phnode).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -755,115 +755,115 @@ pub unsafe fn UiaNodeFromPoint(x: f64, y: f64, prequest: *mut UiaCacheRequest, p #[inline] pub unsafe fn UiaNodeFromProvider(pprovider: P0, phnode: *mut HUIANODE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeFromProvider(pprovider : * mut core::ffi::c_void, phnode : *mut HUIANODE) -> windows_core::HRESULT); - UiaNodeFromProvider(pprovider.into_param().abi(), phnode).ok() + UiaNodeFromProvider(pprovider.param().abi(), phnode).ok() } #[inline] pub unsafe fn UiaNodeRelease(hnode: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeRelease(hnode : HUIANODE) -> super::super::Foundation:: BOOL); - UiaNodeRelease(hnode.into_param().abi()) + UiaNodeRelease(hnode.param().abi()) } #[inline] pub unsafe fn UiaPatternRelease(hobj: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaPatternRelease(hobj : HUIAPATTERNOBJECT) -> super::super::Foundation:: BOOL); - UiaPatternRelease(hobj.into_param().abi()) + UiaPatternRelease(hobj.param().abi()) } #[inline] pub unsafe fn UiaProviderForNonClient(hwnd: P0, idobject: i32, idchild: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - UiaProviderForNonClient(hwnd.into_param().abi(), idobject, idchild, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + UiaProviderForNonClient(hwnd.param().abi(), idobject, idchild, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaProviderFromIAccessible(paccessible: P0, idchild: i32, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - UiaProviderFromIAccessible(paccessible.into_param().abi(), idchild, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseActiveTextPositionChangedEvent(provider : * mut core::ffi::c_void, textrange : * mut core::ffi::c_void) -> windows_core::HRESULT); - UiaRaiseActiveTextPositionChangedEvent(provider.into_param().abi(), textrange.into_param().abi()).ok() + UiaRaiseActiveTextPositionChangedEvent(provider.param().abi(), textrange.param().abi()).ok() } #[inline] pub unsafe fn UiaRaiseAsyncContentLoadedEvent(pprovider: P0, asynccontentloadedstate: AsyncContentLoadedState, percentcomplete: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), asynccontentloadedstate, percentcomplete).ok() + UiaRaiseAsyncContentLoadedEvent(pprovider.param().abi(), asynccontentloadedstate, percentcomplete).ok() } #[inline] pub unsafe fn UiaRaiseAutomationEvent(pprovider: P0, id: UIA_EVENT_ID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), id).ok() + UiaRaiseAutomationEvent(pprovider.param().abi(), id).ok() } #[inline] pub unsafe fn UiaRaiseAutomationPropertyChangedEvent(pprovider: P0, id: UIA_PROPERTY_ID, oldvalue: P1, newvalue: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseAutomationPropertyChangedEvent(pprovider : * mut core::ffi::c_void, id : UIA_PROPERTY_ID, oldvalue : std::mem::MaybeUninit < windows_core::VARIANT >, newvalue : std::mem::MaybeUninit < windows_core::VARIANT >) -> windows_core::HRESULT); - UiaRaiseAutomationPropertyChangedEvent(pprovider.into_param().abi(), id, oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() + UiaRaiseAutomationPropertyChangedEvent(pprovider.param().abi(), id, oldvalue.param().abi(), newvalue.param().abi()).ok() } #[inline] pub unsafe fn UiaRaiseChangesEvent(pprovider: P0, eventidcount: i32, puiachanges: *mut UiaChangeInfo) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), eventidcount, puiachanges).ok() + UiaRaiseChangesEvent(pprovider.param().abi(), eventidcount, puiachanges).ok() } #[inline] pub unsafe fn UiaRaiseNotificationEvent(provider: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: P1, activityid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRaiseNotificationEvent(provider : * mut core::ffi::c_void, notificationkind : NotificationKind, notificationprocessing : NotificationProcessing, displaystring : std::mem::MaybeUninit < windows_core::BSTR >, activityid : std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - UiaRaiseNotificationEvent(provider.into_param().abi(), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() + UiaRaiseNotificationEvent(provider.param().abi(), notificationkind, notificationprocessing, displaystring.param().abi(), activityid.param().abi()).ok() } #[inline] pub unsafe fn UiaRaiseStructureChangedEvent(pprovider: P0, structurechangetype: StructureChangeType, pruntimeid: *mut i32, cruntimeidlen: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), structurechangetype, pruntimeid, cruntimeidlen).ok() + UiaRaiseStructureChangedEvent(pprovider.param().abi(), structurechangetype, pruntimeid, cruntimeidlen).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaRaiseTextEditTextChangedEvent(pprovider: P0, texteditchangetype: TextEditChangeType, pchangeddata: *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), texteditchangetype, pchangeddata).ok() + UiaRaiseTextEditTextChangedEvent(pprovider.param().abi(), texteditchangetype, pchangeddata).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -874,113 +874,113 @@ pub unsafe fn UiaRegisterProviderCallback(pcallback: *mut UiaProviderCallback) { #[inline] pub unsafe fn UiaRemoveEvent(hevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaRemoveEvent(hevent : HUIAEVENT) -> windows_core::HRESULT); - UiaRemoveEvent(hevent.into_param().abi()).ok() + UiaRemoveEvent(hevent.param().abi()).ok() } #[inline] pub unsafe fn UiaReturnRawElementProvider(hwnd: P0, wparam: P1, lparam: P2, el: P3) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hwnd.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi(), el.into_param().abi()) + UiaReturnRawElementProvider(hwnd.param().abi(), wparam.param().abi(), lparam.param().abi(), el.param().abi()) } #[inline] pub unsafe fn UiaSetFocus(hnode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaSetFocus(hnode : HUIANODE) -> windows_core::HRESULT); - UiaSetFocus(hnode.into_param().abi()).ok() + UiaSetFocus(hnode.param().abi()).ok() } #[inline] pub unsafe fn UiaTextRangeRelease(hobj: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn UiaTextRangeRelease(hobj : HUIATEXTRANGE) -> super::super::Foundation:: BOOL); - UiaTextRangeRelease(hobj.into_param().abi()) + UiaTextRangeRelease(hobj.param().abi()) } #[inline] pub unsafe fn UnhookWinEvent(hwineventhook: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnhookWinEvent(hwineventhook : HWINEVENTHOOK) -> super::super::Foundation:: BOOL); - UnhookWinEvent(hwineventhook.into_param().abi()) + UnhookWinEvent(hwineventhook.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn UnregisterPointerInputTarget(hwnd: P0, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); - UnregisterPointerInputTarget(hwnd.into_param().abi(), pointertype).ok() + UnregisterPointerInputTarget(hwnd.param().abi(), pointertype).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn UnregisterPointerInputTargetEx(hwnd: P0, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTargetEx(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); - UnregisterPointerInputTargetEx(hwnd.into_param().abi(), pointertype) + UnregisterPointerInputTargetEx(hwnd.param().abi(), pointertype) } #[inline] pub unsafe fn ValuePattern_SetValue(hobj: P0, pval: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn ValuePattern_SetValue(hobj : HUIAPATTERNOBJECT, pval : windows_core::PCWSTR) -> windows_core::HRESULT); - ValuePattern_SetValue(hobj.into_param().abi(), pval.into_param().abi()).ok() + ValuePattern_SetValue(hobj.param().abi(), pval.param().abi()).ok() } #[inline] pub unsafe fn VirtualizedItemPattern_Realize(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn VirtualizedItemPattern_Realize(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - VirtualizedItemPattern_Realize(hobj.into_param().abi()).ok() + VirtualizedItemPattern_Realize(hobj.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn WindowFromAccessibleObject(param0: P0, phwnd: Option<*mut super::super::Foundation::HWND>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("oleacc.dll" "system" fn WindowFromAccessibleObject(param0 : * mut core::ffi::c_void, phwnd : *mut super::super::Foundation:: HWND) -> windows_core::HRESULT); - WindowFromAccessibleObject(param0.into_param().abi(), core::mem::transmute(phwnd.unwrap_or(std::ptr::null_mut()))).ok() + WindowFromAccessibleObject(param0.param().abi(), core::mem::transmute(phwnd.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn WindowPattern_Close(hobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_Close(hobj : HUIAPATTERNOBJECT) -> windows_core::HRESULT); - WindowPattern_Close(hobj.into_param().abi()).ok() + WindowPattern_Close(hobj.param().abi()).ok() } #[inline] pub unsafe fn WindowPattern_SetWindowVisualState(hobj: P0, state: WindowVisualState) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_SetWindowVisualState(hobj : HUIAPATTERNOBJECT, state : WindowVisualState) -> windows_core::HRESULT); - WindowPattern_SetWindowVisualState(hobj.into_param().abi(), state).ok() + WindowPattern_SetWindowVisualState(hobj.param().abi(), state).ok() } #[inline] pub unsafe fn WindowPattern_WaitForInputIdle(hobj: P0, milliseconds: i32, presult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_WaitForInputIdle(hobj : HUIAPATTERNOBJECT, milliseconds : i32, presult : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - WindowPattern_WaitForInputIdle(hobj.into_param().abi(), milliseconds, presult).ok() + WindowPattern_WaitForInputIdle(hobj.param().abi(), milliseconds, presult).ok() } windows_core::imp::define_interface!(IAccIdentity, IAccIdentity_Vtbl, 0x7852b78d_1cfd_41c1_a615_9c0c85960b5f); windows_core::imp::interface_hierarchy!(IAccIdentity, windows_core::IUnknown); @@ -1011,51 +1011,51 @@ windows_core::imp::interface_hierarchy!(IAccPropServices, windows_core::IUnknown impl IAccPropServices { pub unsafe fn SetPropValue(&self, pidstring: &[u8], idprop: windows_core::GUID, var: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), core::mem::transmute(idprop), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), core::mem::transmute(idprop), var.param().abi()).ok() } pub unsafe fn SetPropServer(&self, pidstring: &[u8], paprops: &[windows_core::GUID], pserver: P0, annoscope: AnnoScope) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), 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() } pub unsafe fn SetHwndProp(&self, hwnd: P0, idobject: u32, idchild: u32, idprop: windows_core::GUID, var: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHwndProp)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), idobject, idchild, core::mem::transmute(idprop), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHwndProp)(windows_core::Interface::as_raw(self), hwnd.param().abi(), idobject, idchild, core::mem::transmute(idprop), var.param().abi()).ok() } pub unsafe fn SetHwndPropStr(&self, hwnd: P0, idobject: u32, idchild: u32, idprop: windows_core::GUID, str: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHwndPropStr)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), idobject, idchild, core::mem::transmute(idprop), str.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHwndPropStr)(windows_core::Interface::as_raw(self), hwnd.param().abi(), idobject, idchild, core::mem::transmute(idprop), str.param().abi()).ok() } pub unsafe fn SetHwndPropServer(&self, hwnd: P0, idobject: u32, idchild: u32, paprops: &[windows_core::GUID], pserver: P1, annoscope: AnnoScope) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHwndPropServer)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), idobject, idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.into_param().abi(), annoscope).ok() + (windows_core::Interface::vtable(self).SetHwndPropServer)(windows_core::Interface::as_raw(self), hwnd.param().abi(), idobject, idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.param().abi(), annoscope).ok() } pub unsafe fn ClearHwndProps(&self, hwnd: P0, idobject: u32, idchild: u32, paprops: &[windows_core::GUID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearHwndProps)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), idobject, 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.param().abi(), idobject, idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap()).ok() } pub unsafe fn ComposeHwndIdentityString(&self, hwnd: P0, idobject: u32, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ComposeHwndIdentityString)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), idobject, idchild, ppidstring, pdwidstringlen).ok() + (windows_core::Interface::vtable(self).ComposeHwndIdentityString)(windows_core::Interface::as_raw(self), hwnd.param().abi(), idobject, idchild, ppidstring, 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(), phwnd, pidobject, pidchild).ok() @@ -1063,40 +1063,40 @@ impl IAccPropServices { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetHmenuProp(&self, hmenu: P0, idchild: u32, idprop: windows_core::GUID, var: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHmenuProp)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), idchild, core::mem::transmute(idprop), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHmenuProp)(windows_core::Interface::as_raw(self), hmenu.param().abi(), idchild, core::mem::transmute(idprop), var.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetHmenuPropStr(&self, hmenu: P0, idchild: u32, idprop: windows_core::GUID, str: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHmenuPropStr)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), idchild, core::mem::transmute(idprop), str.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHmenuPropStr)(windows_core::Interface::as_raw(self), hmenu.param().abi(), idchild, core::mem::transmute(idprop), str.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetHmenuPropServer(&self, hmenu: P0, idchild: u32, paprops: &[windows_core::GUID], pserver: P1, annoscope: AnnoScope) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHmenuPropServer)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap(), pserver.into_param().abi(), annoscope).ok() + (windows_core::Interface::vtable(self).SetHmenuPropServer)(windows_core::Interface::as_raw(self), hmenu.param().abi(), 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: P0, idchild: u32, paprops: &[windows_core::GUID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearHmenuProps)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), 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.param().abi(), idchild, core::mem::transmute(paprops.as_ptr()), paprops.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ComposeHmenuIdentityString(&self, hmenu: P0, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ComposeHmenuIdentityString)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), idchild, ppidstring, pdwidstringlen).ok() + (windows_core::Interface::vtable(self).ComposeHmenuIdentityString)(windows_core::Interface::as_raw(self), hmenu.param().abi(), idchild, ppidstring, 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<()> { @@ -1158,66 +1158,66 @@ impl IAccessible { #[cfg(feature = "Win32_System_Com")] pub unsafe fn get_accChild(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accChild)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accChild)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_accName(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accName)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accName)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_accValue(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accValue)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accValue)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_accDescription(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accDescription)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accDescription)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_accRole(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accRole)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accRole)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_accState(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accState)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accState)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_accHelp(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accHelp)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accHelp)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn get_accHelpTopic(&self, pszhelpfile: *mut windows_core::BSTR, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accHelpTopic)(windows_core::Interface::as_raw(self), core::mem::transmute(pszhelpfile), varchild.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).get_accHelpTopic)(windows_core::Interface::as_raw(self), core::mem::transmute(pszhelpfile), varchild.param().abi(), &mut result__).map(|| result__) } pub unsafe fn get_accKeyboardShortcut(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accKeyboardShortcut)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accKeyboardShortcut)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn accFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1229,29 +1229,29 @@ impl IAccessible { } pub unsafe fn get_accDefaultAction(&self, varchild: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_accDefaultAction)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_accDefaultAction)(windows_core::Interface::as_raw(self), varchild.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn accSelect(&self, flagsselect: i32, varchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).accSelect)(windows_core::Interface::as_raw(self), flagsselect, varchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).accSelect)(windows_core::Interface::as_raw(self), flagsselect, varchild.param().abi()).ok() } pub unsafe fn accLocation(&self, pxleft: *mut i32, pytop: *mut i32, pcxwidth: *mut i32, pcyheight: *mut i32, varchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).accLocation)(windows_core::Interface::as_raw(self), pxleft, pytop, pcxwidth, pcyheight, varchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).accLocation)(windows_core::Interface::as_raw(self), pxleft, pytop, pcxwidth, pcyheight, varchild.param().abi()).ok() } pub unsafe fn accNavigate(&self, navdir: i32, varstart: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).accNavigate)(windows_core::Interface::as_raw(self), navdir, varstart.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).accNavigate)(windows_core::Interface::as_raw(self), navdir, varstart.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn accHitTest(&self, xleft: i32, ytop: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1259,23 +1259,23 @@ impl IAccessible { } pub unsafe fn accDoDefaultAction(&self, varchild: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).accDoDefaultAction)(windows_core::Interface::as_raw(self), varchild.into_param().abi()).ok() + (windows_core::Interface::vtable(self).accDoDefaultAction)(windows_core::Interface::as_raw(self), varchild.param().abi()).ok() } pub unsafe fn put_accName(&self, varchild: P0, szname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_accName)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), szname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_accName)(windows_core::Interface::as_raw(self), varchild.param().abi(), szname.param().abi()).ok() } pub unsafe fn put_accValue(&self, varchild: P0, szvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).put_accValue)(windows_core::Interface::as_raw(self), varchild.into_param().abi(), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).put_accValue)(windows_core::Interface::as_raw(self), varchild.param().abi(), szvalue.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1328,10 +1328,10 @@ impl IAccessibleEx { } pub unsafe fn ConvertReturnedElement(&self, pin: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ConvertReturnedElement)(windows_core::Interface::as_raw(self), pin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ConvertReturnedElement)(windows_core::Interface::as_raw(self), pin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1375,10 +1375,10 @@ impl IAccessibleHostingElementProviders { } pub unsafe fn GetObjectIdForProvider(&self, pprovider: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObjectIdForProvider)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetObjectIdForProvider)(windows_core::Interface::as_raw(self), pprovider.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -1395,24 +1395,24 @@ windows_core::imp::interface_hierarchy!(IAccessibleWindowlessSite, windows_core: impl IAccessibleWindowlessSite { pub unsafe fn AcquireObjectIdRange(&self, rangesize: i32, prangeowner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AcquireObjectIdRange)(windows_core::Interface::as_raw(self), rangesize, prangeowner.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseObjectIdRange)(windows_core::Interface::as_raw(self), rangebase, prangeowner.into_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> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryObjectIdRanges)(windows_core::Interface::as_raw(self), prangesowner.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryObjectIdRanges)(windows_core::Interface::as_raw(self), prangesowner.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetParentAccessible(&self) -> windows_core::Result { @@ -1649,11 +1649,11 @@ windows_core::imp::interface_hierarchy!(IItemContainerProvider, windows_core::IU impl IItemContainerProvider { pub unsafe fn FindItemByProperty(&self, pstartafter: P0, propertyid: UIA_PROPERTY_ID, value: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByProperty)(windows_core::Interface::as_raw(self), pstartafter.into_param().abi(), propertyid, value.into_param().abi(), &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, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1672,9 +1672,9 @@ impl ILegacyIAccessibleProvider { } pub unsafe fn SetValue(&self, szvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), szvalue.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetIAccessible(&self) -> windows_core::Result { @@ -1796,10 +1796,10 @@ windows_core::imp::interface_hierarchy!(IProxyProviderWinEventHandler, windows_c impl IProxyProviderWinEventHandler { pub unsafe fn RespondToWinEvent(&self, idwinevent: u32, hwnd: P0, idobject: i32, idchild: i32, psink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RespondToWinEvent)(windows_core::Interface::as_raw(self), idwinevent, hwnd.into_param().abi(), idobject, idchild, psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RespondToWinEvent)(windows_core::Interface::as_raw(self), idwinevent, hwnd.param().abi(), idobject, idchild, psink.param().abi()).ok() } } #[repr(C)] @@ -1812,23 +1812,23 @@ windows_core::imp::interface_hierarchy!(IProxyProviderWinEventSink, windows_core impl IProxyProviderWinEventSink { pub unsafe fn AddAutomationPropertyChangedEvent(&self, pprovider: P0, id: UIA_PROPERTY_ID, newvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationPropertyChangedEvent)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), id, newvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAutomationPropertyChangedEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), id, newvalue.param().abi()).ok() } pub unsafe fn AddAutomationEvent(&self, pprovider: P0, id: UIA_EVENT_ID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationEvent)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructureChangedEvent)(windows_core::Interface::as_raw(self), pprovider.into_param().abi(), structurechangetype, runtimeid).ok() + (windows_core::Interface::vtable(self).AddStructureChangedEvent)(windows_core::Interface::as_raw(self), pprovider.param().abi(), structurechangetype, runtimeid).ok() } } #[repr(C)] @@ -1992,10 +1992,10 @@ windows_core::imp::interface_hierarchy!(IRawElementProviderHwndOverride, windows impl IRawElementProviderHwndOverride { pub unsafe fn GetOverrideProviderForHwnd(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOverrideProviderForHwnd)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetOverrideProviderForHwnd)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2134,10 +2134,10 @@ windows_core::imp::interface_hierarchy!(IRicheditWindowlessAccessibility, window impl IRicheditWindowlessAccessibility { pub unsafe fn CreateProvider(&self, psite: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), psite.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), psite.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2337,10 +2337,10 @@ windows_core::imp::interface_hierarchy!(ISpreadsheetProvider, windows_core::IUnk impl ISpreadsheetProvider { pub unsafe fn GetItemByName(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemByName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2497,10 +2497,10 @@ impl ITextEditProvider { } pub unsafe fn RangeFromChild(&self, childelement: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), childelement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), childelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RangeFromPoint(&self, point: UiaPoint) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2544,10 +2544,10 @@ impl ITextProvider { } pub unsafe fn RangeFromChild(&self, childelement: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RangeFromChild)(windows_core::Interface::as_raw(self), childelement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RangeFromChild)(windows_core::Interface::as_raw(self), childelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RangeFromPoint(&self, point: UiaPoint) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2593,10 +2593,10 @@ impl ITextProvider2 { } pub unsafe fn RangeFromChild(&self, childelement: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), childelement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), childelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn RangeFromPoint(&self, point: UiaPoint) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2612,10 +2612,10 @@ impl ITextProvider2 { } pub unsafe fn RangeFromAnnotation(&self, annotationelement: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RangeFromAnnotation)(windows_core::Interface::as_raw(self), annotationelement.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RangeFromAnnotation)(windows_core::Interface::as_raw(self), annotationelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCaretRange(&self, isactive: *mut super::super::Foundation::BOOL) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2637,37 +2637,37 @@ impl ITextRangeProvider { } pub unsafe fn Compare(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), range.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CompareEndpoints(&self, endpoint: TextPatternRangeEndpoint, targetrange: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEndpoints)(windows_core::Interface::as_raw(self), endpoint, targetrange.into_param().abi(), 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), unit).ok() } pub unsafe fn FindAttribute(&self, attributeid: UIA_TEXTATTRIBUTE_ID, val: P0, backward: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), attributeid, val.into_param().abi(), backward.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), attributeid, val.param().abi(), backward.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindText(&self, text: P0, backward: P1, ignorecase: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), text.into_param().abi(), backward.into_param().abi(), ignorecase.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), text.param().abi(), backward.param().abi(), ignorecase.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAttributeValue(&self, attributeid: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2696,9 +2696,9 @@ impl ITextRangeProvider { } pub unsafe fn MoveEndpointByRange(&self, endpoint: TextPatternRangeEndpoint, targetrange: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveEndpointByRange)(windows_core::Interface::as_raw(self), endpoint, targetrange.into_param().abi(), 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() @@ -2711,9 +2711,9 @@ impl ITextRangeProvider { } pub unsafe fn ScrollIntoView(&self, aligntotop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetChildren(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2758,37 +2758,37 @@ impl ITextRangeProvider2 { } pub unsafe fn Compare(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), range.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CompareEndpoints(&self, endpoint: TextPatternRangeEndpoint, targetrange: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareEndpoints)(windows_core::Interface::as_raw(self), endpoint, targetrange.into_param().abi(), targetendpoint, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.ExpandToEnclosingUnit)(windows_core::Interface::as_raw(self), unit).ok() } pub unsafe fn FindAttribute(&self, attributeid: UIA_TEXTATTRIBUTE_ID, val: P0, backward: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindAttribute)(windows_core::Interface::as_raw(self), attributeid, val.into_param().abi(), backward.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindAttribute)(windows_core::Interface::as_raw(self), attributeid, val.param().abi(), backward.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindText(&self, text: P0, backward: P1, ignorecase: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindText)(windows_core::Interface::as_raw(self), text.into_param().abi(), backward.into_param().abi(), ignorecase.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindText)(windows_core::Interface::as_raw(self), text.param().abi(), backward.param().abi(), ignorecase.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAttributeValue(&self, attributeid: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2817,9 +2817,9 @@ impl ITextRangeProvider2 { } pub unsafe fn MoveEndpointByRange(&self, endpoint: TextPatternRangeEndpoint, targetrange: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MoveEndpointByRange)(windows_core::Interface::as_raw(self), endpoint, targetrange.into_param().abi(), targetendpoint).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Select)(windows_core::Interface::as_raw(self)).ok() @@ -2832,9 +2832,9 @@ impl ITextRangeProvider2 { } pub unsafe fn ScrollIntoView(&self, aligntotop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetChildren(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -2964,11 +2964,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomation, windows_core::IUnknown); impl IUIAutomation { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareElements)(windows_core::Interface::as_raw(self), el1.into_param().abi(), el2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CompareElements)(windows_core::Interface::as_raw(self), el1.param().abi(), el2.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -2981,10 +2981,10 @@ impl IUIAutomation { } pub unsafe fn ElementFromHandle(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &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__ = std::mem::zeroed(); @@ -2996,39 +2996,39 @@ impl IUIAutomation { } pub unsafe fn GetRootElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromHandleBuildCache(&self, hwnd: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), cacherequest.into_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.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPointBuildCache(&self, pt: super::super::Foundation::POINT, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocusedElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTreeWalker(&self, pcondition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ControlViewWalker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3068,25 +3068,25 @@ impl IUIAutomation { } pub unsafe fn CreatePropertyCondition(&self, propertyid: UIA_PROPERTY_ID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyConditionEx(&self, propertyid: UIA_PROPERTY_ID, value: P0, flags: PropertyConditionFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAndConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -3099,11 +3099,11 @@ impl IUIAutomation { } pub unsafe fn CreateOrCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOrConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -3116,77 +3116,77 @@ impl IUIAutomation { } pub unsafe fn CreateNotCondition(&self, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateNotCondition)(windows_core::Interface::as_raw(self), condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateNotCondition)(windows_core::Interface::as_raw(self), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), handler.into_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: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_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: P1, handler: P2, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddStructureChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddFocusChangedEventHandler(&self, cacherequest: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveFocusChangedEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn RemoveAllEventHandlers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllEventHandlers)(windows_core::Interface::as_raw(self)).ok() @@ -3207,10 +3207,10 @@ impl IUIAutomation { } pub unsafe fn VariantToRect(&self, var: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).VariantToRect)(windows_core::Interface::as_raw(self), var.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).VariantToRect)(windows_core::Interface::as_raw(self), var.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -3219,10 +3219,10 @@ impl IUIAutomation { } pub unsafe fn CreateProxyFactoryEntry(&self, factory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3239,23 +3239,23 @@ impl IUIAutomation { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), patternids, patternnames).ok() + (windows_core::Interface::vtable(self).PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.param().abi(), patternids, patternnames).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PollForPotentialSupportedProperties(&self, pelement: P0, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), propertyids, propertynames).ok() + (windows_core::Interface::vtable(self).PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.param().abi(), propertyids, propertynames).ok() } pub unsafe fn CheckNotSupported(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CheckNotSupported)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CheckNotSupported)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReservedNotSupportedValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3268,19 +3268,19 @@ impl IUIAutomation { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ElementFromIAccessible(&self, accessible: P0, childid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), 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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, cacherequest.into_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)] @@ -3380,11 +3380,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomation2, windows_core::IUnknown, impl IUIAutomation2 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareElements)(windows_core::Interface::as_raw(self), el1.into_param().abi(), el2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareElements)(windows_core::Interface::as_raw(self), el1.param().abi(), el2.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -3397,10 +3397,10 @@ impl IUIAutomation2 { } pub unsafe fn ElementFromHandle(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &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__ = std::mem::zeroed(); @@ -3412,39 +3412,39 @@ impl IUIAutomation2 { } pub unsafe fn GetRootElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromHandleBuildCache(&self, hwnd: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPointBuildCache(&self, pt: super::super::Foundation::POINT, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocusedElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTreeWalker(&self, pcondition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ControlViewWalker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3484,25 +3484,25 @@ impl IUIAutomation2 { } pub unsafe fn CreatePropertyCondition(&self, propertyid: UIA_PROPERTY_ID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyConditionEx(&self, propertyid: UIA_PROPERTY_ID, value: P0, flags: PropertyConditionFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAndConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -3515,11 +3515,11 @@ impl IUIAutomation2 { } pub unsafe fn CreateOrCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOrConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -3532,77 +3532,77 @@ impl IUIAutomation2 { } pub unsafe fn CreateNotCondition(&self, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.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: P1, handler: P2, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), propertyarray).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddStructureChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddFocusChangedEventHandler(&self, cacherequest: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveFocusChangedEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn RemoveAllEventHandlers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RemoveAllEventHandlers)(windows_core::Interface::as_raw(self)).ok() @@ -3623,10 +3623,10 @@ impl IUIAutomation2 { } pub unsafe fn VariantToRect(&self, var: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.VariantToRect)(windows_core::Interface::as_raw(self), var.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.VariantToRect)(windows_core::Interface::as_raw(self), var.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -3635,10 +3635,10 @@ impl IUIAutomation2 { } pub unsafe fn CreateProxyFactoryEntry(&self, factory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3655,23 +3655,23 @@ impl IUIAutomation2 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), patternids, patternnames).ok() + (windows_core::Interface::vtable(self).base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.param().abi(), patternids, patternnames).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PollForPotentialSupportedProperties(&self, pelement: P0, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), propertyids, propertynames).ok() + (windows_core::Interface::vtable(self).base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.param().abi(), propertyids, propertynames).ok() } pub unsafe fn CheckNotSupported(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReservedNotSupportedValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3684,19 +3684,19 @@ impl IUIAutomation2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ElementFromIAccessible(&self, accessible: P0, childid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.param().abi(), childid, cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AutoSetFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3704,9 +3704,9 @@ impl IUIAutomation2 { } pub unsafe fn SetAutoSetFocus(&self, autosetfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.param().abi()).ok() } pub unsafe fn ConnectionTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3738,11 +3738,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomation3, windows_core::IUnknown, impl IUIAutomation3 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.into_param().abi(), el2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.param().abi(), el2.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -3755,10 +3755,10 @@ impl IUIAutomation3 { } pub unsafe fn ElementFromHandle(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &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__ = std::mem::zeroed(); @@ -3770,39 +3770,39 @@ impl IUIAutomation3 { } pub unsafe fn GetRootElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromHandleBuildCache(&self, hwnd: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPointBuildCache(&self, pt: super::super::Foundation::POINT, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocusedElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTreeWalker(&self, pcondition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ControlViewWalker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3842,25 +3842,25 @@ impl IUIAutomation3 { } pub unsafe fn CreatePropertyCondition(&self, propertyid: UIA_PROPERTY_ID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyConditionEx(&self, propertyid: UIA_PROPERTY_ID, value: P0, flags: PropertyConditionFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAndConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -3873,11 +3873,11 @@ impl IUIAutomation3 { } pub unsafe fn CreateOrCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOrConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -3890,77 +3890,77 @@ impl IUIAutomation3 { } pub unsafe fn CreateNotCondition(&self, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.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: P1, handler: P2, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), propertyarray).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddStructureChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddFocusChangedEventHandler(&self, cacherequest: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveFocusChangedEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn RemoveAllEventHandlers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RemoveAllEventHandlers)(windows_core::Interface::as_raw(self)).ok() @@ -3981,10 +3981,10 @@ impl IUIAutomation3 { } pub unsafe fn VariantToRect(&self, var: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -3993,10 +3993,10 @@ impl IUIAutomation3 { } pub unsafe fn CreateProxyFactoryEntry(&self, factory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4013,23 +4013,23 @@ impl IUIAutomation3 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), patternids, patternnames).ok() + (windows_core::Interface::vtable(self).base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.param().abi(), patternids, patternnames).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PollForPotentialSupportedProperties(&self, pelement: P0, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), propertyids, propertynames).ok() + (windows_core::Interface::vtable(self).base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.param().abi(), propertyids, propertynames).ok() } pub unsafe fn CheckNotSupported(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReservedNotSupportedValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4042,19 +4042,19 @@ impl IUIAutomation3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ElementFromIAccessible(&self, accessible: P0, childid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.param().abi(), childid, cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AutoSetFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4062,9 +4062,9 @@ impl IUIAutomation3 { } pub unsafe fn SetAutoSetFocus(&self, autosetfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.param().abi()).ok() } pub unsafe fn ConnectionTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4082,18 +4082,18 @@ impl IUIAutomation3 { } pub unsafe fn AddTextEditTextChangedEventHandler(&self, element: P0, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, texteditchangetype, cacherequest.into_param().abi(), handler.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } } #[repr(C)] @@ -4107,11 +4107,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomation4, windows_core::IUnknown, impl IUIAutomation4 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.into_param().abi(), el2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.param().abi(), el2.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -4124,10 +4124,10 @@ impl IUIAutomation4 { } pub unsafe fn ElementFromHandle(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &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__ = std::mem::zeroed(); @@ -4139,39 +4139,39 @@ impl IUIAutomation4 { } pub unsafe fn GetRootElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromHandleBuildCache(&self, hwnd: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPointBuildCache(&self, pt: super::super::Foundation::POINT, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocusedElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTreeWalker(&self, pcondition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ControlViewWalker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4211,25 +4211,25 @@ impl IUIAutomation4 { } pub unsafe fn CreatePropertyCondition(&self, propertyid: UIA_PROPERTY_ID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyConditionEx(&self, propertyid: UIA_PROPERTY_ID, value: P0, flags: PropertyConditionFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAndConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -4242,11 +4242,11 @@ impl IUIAutomation4 { } pub unsafe fn CreateOrCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOrConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -4259,77 +4259,77 @@ impl IUIAutomation4 { } pub unsafe fn CreateNotCondition(&self, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1, handler: P2, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), propertyarray).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddStructureChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddFocusChangedEventHandler(&self, cacherequest: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveFocusChangedEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn RemoveAllEventHandlers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.RemoveAllEventHandlers)(windows_core::Interface::as_raw(self)).ok() @@ -4350,10 +4350,10 @@ impl IUIAutomation4 { } pub unsafe fn VariantToRect(&self, var: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -4362,10 +4362,10 @@ impl IUIAutomation4 { } pub unsafe fn CreateProxyFactoryEntry(&self, factory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4382,23 +4382,23 @@ impl IUIAutomation4 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), patternids, patternnames).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.param().abi(), patternids, patternnames).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PollForPotentialSupportedProperties(&self, pelement: P0, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), propertyids, propertynames).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.param().abi(), propertyids, propertynames).ok() } pub unsafe fn CheckNotSupported(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReservedNotSupportedValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4411,19 +4411,19 @@ impl IUIAutomation4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ElementFromIAccessible(&self, accessible: P0, childid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.param().abi(), childid, cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AutoSetFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4431,9 +4431,9 @@ impl IUIAutomation4 { } pub unsafe fn SetAutoSetFocus(&self, autosetfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.param().abi()).ok() } pub unsafe fn ConnectionTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4451,33 +4451,33 @@ impl IUIAutomation4 { } pub unsafe fn AddTextEditTextChangedEventHandler(&self, element: P0, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, texteditchangetype, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddChangesEventHandler(&self, element: P0, scope: TreeScope, changetypes: &[i32], pcacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddChangesEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, core::mem::transmute(changetypes.as_ptr()), changetypes.len().try_into().unwrap(), pcacherequest.into_param().abi(), handler.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveChangesEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveChangesEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } } #[repr(C)] @@ -4491,11 +4491,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomation5, windows_core::IUnknown, impl IUIAutomation5 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.into_param().abi(), el2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.param().abi(), el2.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -4508,10 +4508,10 @@ impl IUIAutomation5 { } pub unsafe fn ElementFromHandle(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &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__ = std::mem::zeroed(); @@ -4523,39 +4523,39 @@ impl IUIAutomation5 { } pub unsafe fn GetRootElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromHandleBuildCache(&self, hwnd: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPointBuildCache(&self, pt: super::super::Foundation::POINT, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocusedElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTreeWalker(&self, pcondition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ControlViewWalker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4595,25 +4595,25 @@ impl IUIAutomation5 { } pub unsafe fn CreatePropertyCondition(&self, propertyid: UIA_PROPERTY_ID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyConditionEx(&self, propertyid: UIA_PROPERTY_ID, value: P0, flags: PropertyConditionFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAndConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -4626,11 +4626,11 @@ impl IUIAutomation5 { } pub unsafe fn CreateOrCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOrConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -4643,77 +4643,77 @@ impl IUIAutomation5 { } pub unsafe fn CreateNotCondition(&self, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P1, handler: P2, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), propertyarray).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddStructureChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddFocusChangedEventHandler(&self, cacherequest: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveFocusChangedEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn RemoveAllEventHandlers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.RemoveAllEventHandlers)(windows_core::Interface::as_raw(self)).ok() @@ -4734,10 +4734,10 @@ impl IUIAutomation5 { } pub unsafe fn VariantToRect(&self, var: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -4746,10 +4746,10 @@ impl IUIAutomation5 { } pub unsafe fn CreateProxyFactoryEntry(&self, factory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4766,23 +4766,23 @@ impl IUIAutomation5 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), patternids, patternnames).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.param().abi(), patternids, patternnames).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PollForPotentialSupportedProperties(&self, pelement: P0, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), propertyids, propertynames).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.param().abi(), propertyids, propertynames).ok() } pub unsafe fn CheckNotSupported(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReservedNotSupportedValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4795,19 +4795,19 @@ impl IUIAutomation5 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ElementFromIAccessible(&self, accessible: P0, childid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.param().abi(), childid, cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AutoSetFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4815,9 +4815,9 @@ impl IUIAutomation5 { } pub unsafe fn SetAutoSetFocus(&self, autosetfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.param().abi()).ok() } pub unsafe fn ConnectionTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4835,48 +4835,48 @@ impl IUIAutomation5 { } pub unsafe fn AddTextEditTextChangedEventHandler(&self, element: P0, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, texteditchangetype, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddChangesEventHandler(&self, element: P0, scope: TreeScope, changetypes: &[i32], pcacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddChangesEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, core::mem::transmute(changetypes.as_ptr()), changetypes.len().try_into().unwrap(), pcacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveChangesEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveChangesEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddNotificationEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNotificationEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveNotificationEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveNotificationEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } } #[repr(C)] @@ -4890,11 +4890,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomation6, windows_core::IUnknown, impl IUIAutomation6 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.into_param().abi(), el2.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CompareElements)(windows_core::Interface::as_raw(self), el1.param().abi(), el2.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -4907,10 +4907,10 @@ impl IUIAutomation6 { } pub unsafe fn ElementFromHandle(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromHandle)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &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__ = std::mem::zeroed(); @@ -4922,39 +4922,39 @@ impl IUIAutomation6 { } pub unsafe fn GetRootElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetRootElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromHandleBuildCache(&self, hwnd: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromHandleBuildCache)(windows_core::Interface::as_raw(self), hwnd.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ElementFromPointBuildCache(&self, pt: super::super::Foundation::POINT, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromPointBuildCache)(windows_core::Interface::as_raw(self), core::mem::transmute(pt), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFocusedElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetFocusedElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateTreeWalker(&self, pcondition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateTreeWalker)(windows_core::Interface::as_raw(self), pcondition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ControlViewWalker(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4994,25 +4994,25 @@ impl IUIAutomation6 { } pub unsafe fn CreatePropertyCondition(&self, propertyid: UIA_PROPERTY_ID, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePropertyCondition)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreatePropertyConditionEx(&self, propertyid: UIA_PROPERTY_ID, value: P0, flags: PropertyConditionFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.into_param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePropertyConditionEx)(windows_core::Interface::as_raw(self), propertyid, value.param().abi(), flags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CreateAndCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateAndCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateAndConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -5025,11 +5025,11 @@ impl IUIAutomation6 { } pub unsafe fn CreateOrCondition(&self, condition1: P0, condition2: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.into_param().abi(), condition2.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateOrCondition)(windows_core::Interface::as_raw(self), condition1.param().abi(), condition2.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateOrConditionFromArray(&self, conditions: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { @@ -5042,77 +5042,77 @@ impl IUIAutomation6 { } pub unsafe fn CreateNotCondition(&self, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateNotCondition)(windows_core::Interface::as_raw(self), condition.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemoveAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddPropertyChangedEventHandlerNativeArray)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), core::mem::transmute(propertyarray.as_ptr()), propertyarray.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P1, handler: P2, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi(), propertyarray).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemovePropertyChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddStructureChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemoveStructureChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddFocusChangedEventHandler(&self, cacherequest: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddFocusChangedEventHandler)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), handler.param().abi()).ok() } pub unsafe fn RemoveFocusChangedEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemoveFocusChangedEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn RemoveAllEventHandlers(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RemoveAllEventHandlers)(windows_core::Interface::as_raw(self)).ok() @@ -5133,10 +5133,10 @@ impl IUIAutomation6 { } pub unsafe fn VariantToRect(&self, var: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.VariantToRect)(windows_core::Interface::as_raw(self), var.param().abi(), &mut result__).map(|| result__) } #[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 { @@ -5145,10 +5145,10 @@ impl IUIAutomation6 { } pub unsafe fn CreateProxyFactoryEntry(&self, factory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateProxyFactoryEntry)(windows_core::Interface::as_raw(self), factory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryMapping(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5165,23 +5165,23 @@ impl IUIAutomation6 { #[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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), patternids, patternnames).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PollForPotentialSupportedPatterns)(windows_core::Interface::as_raw(self), pelement.param().abi(), patternids, patternnames).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn PollForPotentialSupportedProperties(&self, pelement: P0, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), propertyids, propertynames).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.param().abi(), propertyids, propertynames).ok() } pub unsafe fn CheckNotSupported(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CheckNotSupported)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ReservedNotSupportedValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5194,19 +5194,19 @@ impl IUIAutomation6 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ElementFromIAccessible(&self, accessible: P0, childid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromIAccessible)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ElementFromIAccessibleBuildCache)(windows_core::Interface::as_raw(self), accessible.param().abi(), childid, cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AutoSetFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5214,9 +5214,9 @@ impl IUIAutomation6 { } pub unsafe fn SetAutoSetFocus(&self, autosetfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetAutoSetFocus)(windows_core::Interface::as_raw(self), autosetfocus.param().abi()).ok() } pub unsafe fn ConnectionTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5234,48 +5234,48 @@ impl IUIAutomation6 { } pub unsafe fn AddTextEditTextChangedEventHandler(&self, element: P0, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, texteditchangetype, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RemoveTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddChangesEventHandler(&self, element: P0, scope: TreeScope, changetypes: &[i32], pcacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddChangesEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, core::mem::transmute(changetypes.as_ptr()), changetypes.len().try_into().unwrap(), pcacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RemoveChangesEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RemoveChangesEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn AddNotificationEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddNotificationEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveNotificationEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveNotificationEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } pub unsafe fn CreateEventHandlerGroup(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5283,17 +5283,17 @@ impl IUIAutomation6 { } pub unsafe fn AddEventHandlerGroup(&self, element: P0, handlergroup: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEventHandlerGroup)(windows_core::Interface::as_raw(self), element.into_param().abi(), handlergroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddEventHandlerGroup)(windows_core::Interface::as_raw(self), element.param().abi(), handlergroup.param().abi()).ok() } pub unsafe fn RemoveEventHandlerGroup(&self, element: P0, handlergroup: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveEventHandlerGroup)(windows_core::Interface::as_raw(self), element.into_param().abi(), handlergroup.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveEventHandlerGroup)(windows_core::Interface::as_raw(self), element.param().abi(), handlergroup.param().abi()).ok() } pub unsafe fn ConnectionRecoveryBehavior(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5311,18 +5311,18 @@ impl IUIAutomation6 { } pub unsafe fn AddActiveTextPositionChangedEventHandler(&self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), scope, cacherequest.into_param().abi(), handler.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), element.param().abi(), handler.param().abi()).ok() } } #[repr(C)] @@ -5343,10 +5343,10 @@ windows_core::imp::interface_hierarchy!(IUIAutomationActiveTextPositionChangedEv impl IUIAutomationActiveTextPositionChangedEventHandler { pub unsafe fn HandleActiveTextPositionChangedEvent(&self, sender: P0, range: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleActiveTextPositionChangedEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi(), range.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandleActiveTextPositionChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), range.param().abi()).ok() } } #[repr(C)] @@ -5477,9 +5477,9 @@ impl IUIAutomationCacheRequest { } pub unsafe fn SetTreeFilter(&self, filter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTreeFilter)(windows_core::Interface::as_raw(self), filter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTreeFilter)(windows_core::Interface::as_raw(self), filter.param().abi()).ok() } pub unsafe fn AutomationElementMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5507,9 +5507,9 @@ windows_core::imp::interface_hierarchy!(IUIAutomationChangesEventHandler, window impl IUIAutomationChangesEventHandler { pub unsafe fn HandleChangesEvent(&self, sender: P0, uiachanges: &[UiaChangeInfo]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleChangesEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi(), core::mem::transmute(uiachanges.as_ptr()), uiachanges.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).HandleChangesEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), core::mem::transmute(uiachanges.as_ptr()), uiachanges.len().try_into().unwrap()).ok() } } #[repr(C)] @@ -5664,40 +5664,40 @@ impl IUIAutomationElement { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5705,10 +5705,10 @@ impl IUIAutomationElement { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5716,10 +5716,10 @@ impl IUIAutomationElement { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -6114,40 +6114,40 @@ impl IUIAutomationElement2 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6155,10 +6155,10 @@ impl IUIAutomationElement2 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6166,10 +6166,10 @@ impl IUIAutomationElement2 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -6509,40 +6509,40 @@ impl IUIAutomationElement3 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6550,10 +6550,10 @@ impl IUIAutomationElement3 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6561,10 +6561,10 @@ impl IUIAutomationElement3 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -6912,40 +6912,40 @@ impl IUIAutomationElement4 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6953,10 +6953,10 @@ impl IUIAutomationElement4 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6964,10 +6964,10 @@ impl IUIAutomationElement4 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -7370,40 +7370,40 @@ impl IUIAutomationElement5 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7411,10 +7411,10 @@ impl IUIAutomationElement5 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7422,10 +7422,10 @@ impl IUIAutomationElement5 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -7832,40 +7832,40 @@ impl IUIAutomationElement6 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7873,10 +7873,10 @@ impl IUIAutomationElement6 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7884,10 +7884,10 @@ impl IUIAutomationElement6 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -8300,40 +8300,40 @@ impl IUIAutomationElement7 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8341,10 +8341,10 @@ impl IUIAutomationElement7 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8352,10 +8352,10 @@ impl IUIAutomationElement7 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -8750,37 +8750,37 @@ impl IUIAutomationElement7 { } pub unsafe fn FindFirstWithOptions(&self, scope: TreeScope, condition: P0, traversaloptions: TreeTraversalOptions, root: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstWithOptions)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), traversaloptions, root.into_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: P0, traversaloptions: TreeTraversalOptions, root: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAllWithOptions)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), traversaloptions, root.into_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: P0, cacherequest: P1, traversaloptions: TreeTraversalOptions, root: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFirstWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), traversaloptions, root.into_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: P0, cacherequest: P1, traversaloptions: TreeTraversalOptions, root: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAllWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), traversaloptions, root.into_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__)) } pub unsafe fn GetCurrentMetadataValue(&self, targetid: i32, metadataid: UIA_METADATA_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8809,40 +8809,40 @@ impl IUIAutomationElement8 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8850,10 +8850,10 @@ impl IUIAutomationElement8 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8861,10 +8861,10 @@ impl IUIAutomationElement8 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -9259,37 +9259,37 @@ impl IUIAutomationElement8 { } pub unsafe fn FindFirstWithOptions(&self, scope: TreeScope, condition: P0, traversaloptions: TreeTraversalOptions, root: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindFirstWithOptions)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, traversaloptions: TreeTraversalOptions, root: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindAllWithOptions)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, cacherequest: P1, traversaloptions: TreeTraversalOptions, root: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindFirstWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, cacherequest: P1, traversaloptions: TreeTraversalOptions, root: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindAllWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__)) } pub unsafe fn GetCurrentMetadataValue(&self, targetid: i32, metadataid: UIA_METADATA_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9323,40 +9323,40 @@ impl IUIAutomationElement9 { } pub unsafe fn FindFirst(&self, scope: TreeScope, condition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FindFirst)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FindAll)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FindFirstBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.FindAllBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.BuildUpdatedCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9364,10 +9364,10 @@ impl IUIAutomationElement9 { } pub unsafe fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetCurrentPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9375,10 +9375,10 @@ impl IUIAutomationElement9 { } pub unsafe fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetCachedPropertyValueEx)(windows_core::Interface::as_raw(self), propertyid, ignoredefaultvalue.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result where @@ -9773,37 +9773,37 @@ impl IUIAutomationElement9 { } pub unsafe fn FindFirstWithOptions(&self, scope: TreeScope, condition: P0, traversaloptions: TreeTraversalOptions, root: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindFirstWithOptions)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0, traversaloptions: TreeTraversalOptions, root: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindAllWithOptions)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0, cacherequest: P1, traversaloptions: TreeTraversalOptions, root: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindFirstWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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: P0, cacherequest: P1, traversaloptions: TreeTraversalOptions, root: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindAllWithOptionsBuildCache)(windows_core::Interface::as_raw(self), scope, condition.into_param().abi(), cacherequest.into_param().abi(), traversaloptions, root.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.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__)) } pub unsafe fn GetCurrentMetadataValue(&self, targetid: i32, metadataid: UIA_METADATA_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9855,9 +9855,9 @@ windows_core::imp::interface_hierarchy!(IUIAutomationEventHandler, windows_core: impl IUIAutomationEventHandler { pub unsafe fn HandleAutomationEvent(&self, sender: P0, eventid: UIA_EVENT_ID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleAutomationEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi(), eventid).ok() + (windows_core::Interface::vtable(self).HandleAutomationEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), eventid).ok() } } #[repr(C)] @@ -9870,52 +9870,52 @@ windows_core::imp::interface_hierarchy!(IUIAutomationEventHandlerGroup, windows_ impl IUIAutomationEventHandlerGroup { pub unsafe fn AddActiveTextPositionChangedEventHandler(&self, scope: TreeScope, cacherequest: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddActiveTextPositionChangedEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.into_param().abi(), handler.into_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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAutomationEventHandler)(windows_core::Interface::as_raw(self), eventid, scope, cacherequest.into_param().abi(), handler.into_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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (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.into_param().abi(), handler.into_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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddNotificationEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.into_param().abi(), handler.into_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: P0, handler: P1, propertyarray: &[UIA_PROPERTY_ID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertyChangedEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.into_param().abi(), handler.into_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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStructureChangedEventHandler)(windows_core::Interface::as_raw(self), scope, cacherequest.into_param().abi(), handler.into_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: P0, handler: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTextEditTextChangedEventHandler)(windows_core::Interface::as_raw(self), scope, texteditchangetype, cacherequest.into_param().abi(), handler.into_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)] @@ -9960,9 +9960,9 @@ windows_core::imp::interface_hierarchy!(IUIAutomationFocusChangedEventHandler, w impl IUIAutomationFocusChangedEventHandler { pub unsafe fn HandleFocusChangedEvent(&self, sender: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleFocusChangedEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandleFocusChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi()).ok() } } #[repr(C)] @@ -10078,11 +10078,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomationItemContainerPattern, windo impl IUIAutomationItemContainerPattern { pub unsafe fn FindItemByProperty(&self, pstartafter: P0, propertyid: UIA_PROPERTY_ID, value: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindItemByProperty)(windows_core::Interface::as_raw(self), pstartafter.into_param().abi(), propertyid, value.into_param().abi(), &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, value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10101,9 +10101,9 @@ impl IUIAutomationLegacyIAccessiblePattern { } pub unsafe fn SetValue(&self, szvalue: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), szvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), szvalue.param().abi()).ok() } pub unsafe fn CurrentChildId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10285,11 +10285,11 @@ windows_core::imp::interface_hierarchy!(IUIAutomationNotificationEventHandler, w impl IUIAutomationNotificationEventHandler { pub unsafe fn HandleNotificationEvent(&self, sender: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: P1, activityid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleNotificationEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi(), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandleNotificationEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), notificationkind, notificationprocessing, displaystring.param().abi(), activityid.param().abi()).ok() } } #[repr(C)] @@ -10341,16 +10341,16 @@ windows_core::imp::interface_hierarchy!(IUIAutomationPatternHandler, windows_cor impl IUIAutomationPatternHandler { pub unsafe fn CreateClientWrapper(&self, ppatterninstance: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateClientWrapper)(windows_core::Interface::as_raw(self), ppatterninstance.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateClientWrapper)(windows_core::Interface::as_raw(self), ppatterninstance.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Dispatch(&self, ptarget: P0, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), ptarget.into_param().abi(), index, pparams, cparams).ok() + (windows_core::Interface::vtable(self).Dispatch)(windows_core::Interface::as_raw(self), ptarget.param().abi(), index, pparams, cparams).ok() } } #[repr(C)] @@ -10364,9 +10364,9 @@ windows_core::imp::interface_hierarchy!(IUIAutomationPatternInstance, windows_co impl IUIAutomationPatternInstance { pub unsafe fn GetProperty(&self, index: u32, cached: P0, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), index, cached.into_param().abi(), r#type, pptr).ok() + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), index, cached.param().abi(), r#type, 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), index, pparams, cparams).ok() @@ -10383,10 +10383,10 @@ windows_core::imp::interface_hierarchy!(IUIAutomationPropertyChangedEventHandler impl IUIAutomationPropertyChangedEventHandler { pub unsafe fn HandlePropertyChangedEvent(&self, sender: P0, propertyid: UIA_PROPERTY_ID, newvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HandlePropertyChangedEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi(), propertyid, newvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandlePropertyChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), propertyid, newvalue.param().abi()).ok() } } #[repr(C)] @@ -10422,10 +10422,10 @@ windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactory, windows_core: impl IUIAutomationProxyFactory { pub unsafe fn CreateProvider(&self, hwnd: P0, idobject: i32, idchild: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), idobject, idchild, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateProvider)(windows_core::Interface::as_raw(self), hwnd.param().abi(), idobject, idchild, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ProxyFactoryId(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10467,33 +10467,33 @@ impl IUIAutomationProxyFactoryEntry { } pub unsafe fn SetClassName(&self, classname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClassName)(windows_core::Interface::as_raw(self), classname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClassName)(windows_core::Interface::as_raw(self), classname.param().abi()).ok() } pub unsafe fn SetImageName(&self, imagename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetImageName)(windows_core::Interface::as_raw(self), imagename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetImageName)(windows_core::Interface::as_raw(self), imagename.param().abi()).ok() } pub unsafe fn SetAllowSubstringMatch(&self, allowsubstringmatch: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllowSubstringMatch)(windows_core::Interface::as_raw(self), allowsubstringmatch.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllowSubstringMatch)(windows_core::Interface::as_raw(self), allowsubstringmatch.param().abi()).ok() } pub unsafe fn SetCanCheckBaseClass(&self, cancheckbaseclass: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCanCheckBaseClass)(windows_core::Interface::as_raw(self), cancheckbaseclass.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCanCheckBaseClass)(windows_core::Interface::as_raw(self), cancheckbaseclass.param().abi()).ok() } pub unsafe fn SetNeedsAdviseEvents(&self, adviseevents: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNeedsAdviseEvents)(windows_core::Interface::as_raw(self), adviseevents.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNeedsAdviseEvents)(windows_core::Interface::as_raw(self), adviseevents.param().abi()).ok() } #[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<()> { @@ -10554,9 +10554,9 @@ impl IUIAutomationProxyFactoryMapping { } pub unsafe fn InsertEntry(&self, before: u32, factory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEntry)(windows_core::Interface::as_raw(self), before, factory.into_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), index).ok() @@ -10973,10 +10973,10 @@ windows_core::imp::interface_hierarchy!(IUIAutomationSpreadsheetPattern, windows impl IUIAutomationSpreadsheetPattern { pub unsafe fn GetItemByName(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemByName)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetItemByName)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -10990,9 +10990,9 @@ impl IUIAutomationStructureChangedEventHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn HandleStructureChangedEvent(&self, sender: P0, changetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleStructureChangedEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi(), changetype, runtimeid).ok() + (windows_core::Interface::vtable(self).HandleStructureChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), changetype, runtimeid).ok() } } #[repr(C)] @@ -11198,10 +11198,10 @@ impl IUIAutomationTextEditPattern { } pub unsafe fn RangeFromChild(&self, child: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), child.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), child.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11240,9 +11240,9 @@ impl IUIAutomationTextEditTextChangedEventHandler { #[cfg(feature = "Win32_System_Com")] pub unsafe fn HandleTextEditTextChangedEvent(&self, sender: P0, texteditchangetype: TextEditChangeType, eventstrings: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleTextEditTextChangedEvent)(windows_core::Interface::as_raw(self), sender.into_param().abi(), texteditchangetype, eventstrings).ok() + (windows_core::Interface::vtable(self).HandleTextEditTextChangedEvent)(windows_core::Interface::as_raw(self), sender.param().abi(), texteditchangetype, eventstrings).ok() } } #[repr(C)] @@ -11262,10 +11262,10 @@ impl IUIAutomationTextPattern { } pub unsafe fn RangeFromChild(&self, child: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RangeFromChild)(windows_core::Interface::as_raw(self), child.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RangeFromChild)(windows_core::Interface::as_raw(self), child.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11303,10 +11303,10 @@ impl IUIAutomationTextPattern2 { } pub unsafe fn RangeFromChild(&self, child: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), child.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.RangeFromChild)(windows_core::Interface::as_raw(self), child.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSelection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11326,10 +11326,10 @@ impl IUIAutomationTextPattern2 { } pub unsafe fn RangeFromAnnotation(&self, annotation: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RangeFromAnnotation)(windows_core::Interface::as_raw(self), annotation.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RangeFromAnnotation)(windows_core::Interface::as_raw(self), annotation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCaretRange(&self, isactive: *mut super::super::Foundation::BOOL) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11351,37 +11351,37 @@ impl IUIAutomationTextRange { } pub unsafe fn Compare(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), range.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CompareEndpoints(&self, srcendpoint: TextPatternRangeEndpoint, range: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEndpoints)(windows_core::Interface::as_raw(self), srcendpoint, range.into_param().abi(), 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), textunit).ok() } pub unsafe fn FindAttribute(&self, attr: UIA_TEXTATTRIBUTE_ID, val: P0, backward: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), attr, val.into_param().abi(), backward.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindAttribute)(windows_core::Interface::as_raw(self), attr, val.param().abi(), backward.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindText(&self, text: P0, backward: P1, ignorecase: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), text.into_param().abi(), backward.into_param().abi(), ignorecase.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), text.param().abi(), backward.param().abi(), ignorecase.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAttributeValue(&self, attr: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11410,9 +11410,9 @@ impl IUIAutomationTextRange { } pub unsafe fn MoveEndpointByRange(&self, srcendpoint: TextPatternRangeEndpoint, range: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveEndpointByRange)(windows_core::Interface::as_raw(self), srcendpoint, range.into_param().abi(), 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() @@ -11425,9 +11425,9 @@ impl IUIAutomationTextRange { } pub unsafe fn ScrollIntoView(&self, aligntotop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.param().abi()).ok() } pub unsafe fn GetChildren(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11468,37 +11468,37 @@ impl IUIAutomationTextRange2 { } pub unsafe fn Compare(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), range.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CompareEndpoints(&self, srcendpoint: TextPatternRangeEndpoint, range: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareEndpoints)(windows_core::Interface::as_raw(self), srcendpoint, range.into_param().abi(), targetendpoint, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.ExpandToEnclosingUnit)(windows_core::Interface::as_raw(self), textunit).ok() } pub unsafe fn FindAttribute(&self, attr: UIA_TEXTATTRIBUTE_ID, val: P0, backward: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindAttribute)(windows_core::Interface::as_raw(self), attr, val.into_param().abi(), backward.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindAttribute)(windows_core::Interface::as_raw(self), attr, val.param().abi(), backward.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindText(&self, text: P0, backward: P1, ignorecase: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindText)(windows_core::Interface::as_raw(self), text.into_param().abi(), backward.into_param().abi(), ignorecase.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.FindText)(windows_core::Interface::as_raw(self), text.param().abi(), backward.param().abi(), ignorecase.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAttributeValue(&self, attr: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11527,9 +11527,9 @@ impl IUIAutomationTextRange2 { } pub unsafe fn MoveEndpointByRange(&self, srcendpoint: TextPatternRangeEndpoint, range: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MoveEndpointByRange)(windows_core::Interface::as_raw(self), srcendpoint, range.into_param().abi(), targetendpoint).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Select)(windows_core::Interface::as_raw(self)).ok() @@ -11542,9 +11542,9 @@ impl IUIAutomationTextRange2 { } pub unsafe fn ScrollIntoView(&self, aligntotop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.param().abi()).ok() } pub unsafe fn GetChildren(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11568,37 +11568,37 @@ impl IUIAutomationTextRange3 { } pub unsafe fn Compare(&self, range: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Compare)(windows_core::Interface::as_raw(self), range.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.Compare)(windows_core::Interface::as_raw(self), range.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CompareEndpoints(&self, srcendpoint: TextPatternRangeEndpoint, range: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CompareEndpoints)(windows_core::Interface::as_raw(self), srcendpoint, range.into_param().abi(), targetendpoint, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.ExpandToEnclosingUnit)(windows_core::Interface::as_raw(self), textunit).ok() } pub unsafe fn FindAttribute(&self, attr: UIA_TEXTATTRIBUTE_ID, val: P0, backward: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindAttribute)(windows_core::Interface::as_raw(self), attr, val.into_param().abi(), backward.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.FindAttribute)(windows_core::Interface::as_raw(self), attr, val.param().abi(), backward.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn FindText(&self, text: P0, backward: P1, ignorecase: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindText)(windows_core::Interface::as_raw(self), text.into_param().abi(), backward.into_param().abi(), ignorecase.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.FindText)(windows_core::Interface::as_raw(self), text.param().abi(), backward.param().abi(), ignorecase.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetAttributeValue(&self, attr: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11627,9 +11627,9 @@ impl IUIAutomationTextRange3 { } pub unsafe fn MoveEndpointByRange(&self, srcendpoint: TextPatternRangeEndpoint, range: P0, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MoveEndpointByRange)(windows_core::Interface::as_raw(self), srcendpoint, range.into_param().abi(), targetendpoint).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.Select)(windows_core::Interface::as_raw(self)).ok() @@ -11642,9 +11642,9 @@ impl IUIAutomationTextRange3 { } pub unsafe fn ScrollIntoView(&self, aligntotop: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ScrollIntoView)(windows_core::Interface::as_raw(self), aligntotop.param().abi()).ok() } pub unsafe fn GetChildren(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11655,17 +11655,17 @@ impl IUIAutomationTextRange3 { } pub unsafe fn GetEnclosingElementBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEnclosingElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetEnclosingElementBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetChildrenBuildCache(&self, cacherequest: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChildrenBuildCache)(windows_core::Interface::as_raw(self), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetChildrenBuildCache)(windows_core::Interface::as_raw(self), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetAttributeValues(&self, attributeids: &[UIA_TEXTATTRIBUTE_ID]) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY> { @@ -11867,93 +11867,93 @@ windows_core::imp::interface_hierarchy!(IUIAutomationTreeWalker, windows_core::I impl IUIAutomationTreeWalker { pub unsafe fn GetParentElement(&self, element: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParentElement)(windows_core::Interface::as_raw(self), element.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetParentElement)(windows_core::Interface::as_raw(self), element.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFirstChildElement(&self, element: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFirstChildElement)(windows_core::Interface::as_raw(self), element.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFirstChildElement)(windows_core::Interface::as_raw(self), element.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLastChildElement(&self, element: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastChildElement)(windows_core::Interface::as_raw(self), element.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLastChildElement)(windows_core::Interface::as_raw(self), element.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNextSiblingElement(&self, element: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextSiblingElement)(windows_core::Interface::as_raw(self), element.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextSiblingElement)(windows_core::Interface::as_raw(self), element.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPreviousSiblingElement(&self, element: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreviousSiblingElement)(windows_core::Interface::as_raw(self), element.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPreviousSiblingElement)(windows_core::Interface::as_raw(self), element.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NormalizeElement(&self, element: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).NormalizeElement)(windows_core::Interface::as_raw(self), element.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NormalizeElement)(windows_core::Interface::as_raw(self), element.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetParentElementBuildCache(&self, element: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetParentElementBuildCache)(windows_core::Interface::as_raw(self), element.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetParentElementBuildCache)(windows_core::Interface::as_raw(self), element.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetFirstChildElementBuildCache(&self, element: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFirstChildElementBuildCache)(windows_core::Interface::as_raw(self), element.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFirstChildElementBuildCache)(windows_core::Interface::as_raw(self), element.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetLastChildElementBuildCache(&self, element: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastChildElementBuildCache)(windows_core::Interface::as_raw(self), element.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetLastChildElementBuildCache)(windows_core::Interface::as_raw(self), element.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNextSiblingElementBuildCache(&self, element: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextSiblingElementBuildCache)(windows_core::Interface::as_raw(self), element.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNextSiblingElementBuildCache)(windows_core::Interface::as_raw(self), element.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPreviousSiblingElementBuildCache(&self, element: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreviousSiblingElementBuildCache)(windows_core::Interface::as_raw(self), element.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPreviousSiblingElementBuildCache)(windows_core::Interface::as_raw(self), element.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NormalizeElementBuildCache(&self, element: P0, cacherequest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).NormalizeElementBuildCache)(windows_core::Interface::as_raw(self), element.into_param().abi(), cacherequest.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NormalizeElementBuildCache)(windows_core::Interface::as_raw(self), element.param().abi(), cacherequest.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Condition(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11982,9 +11982,9 @@ windows_core::imp::interface_hierarchy!(IUIAutomationValuePattern, windows_core: impl IUIAutomationValuePattern { pub unsafe fn SetValue(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn CurrentValue(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12110,9 +12110,9 @@ windows_core::imp::interface_hierarchy!(IValueProvider, windows_core::IUnknown); impl IValueProvider { pub unsafe fn SetValue(&self, val: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), val.param().abi()).ok() } pub unsafe fn Value(&self) -> windows_core::Result { let mut result__ = std::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 6965c21ffe..92655763c1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs @@ -66,9 +66,9 @@ impl IUIAnimationInterpolator2 { } pub unsafe fn GetPrimitiveInterpolation(&self, interpolation: P0, cdimension: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPrimitiveInterpolation)(windows_core::Interface::as_raw(self), interpolation.into_param().abi(), 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), initialvaluedependencies, initialvelocitydependencies, durationdependencies).ok() @@ -92,9 +92,9 @@ windows_core::imp::interface_hierarchy!(IUIAnimationLoopIterationChangeHandler2, impl IUIAnimationLoopIterationChangeHandler2 { pub unsafe fn OnLoopIterationChanged(&self, storyboard: P0, id: usize, newiterationcount: u32, olditerationcount: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLoopIterationChanged)(windows_core::Interface::as_raw(self), storyboard.into_param().abi(), id, newiterationcount, olditerationcount).ok() + (windows_core::Interface::vtable(self).OnLoopIterationChanged)(windows_core::Interface::as_raw(self), storyboard.param().abi(), id, newiterationcount, olditerationcount).ok() } } #[repr(C)] @@ -111,10 +111,10 @@ impl IUIAnimationManager { } pub unsafe fn ScheduleTransition(&self, variable: P0, transition: P1, timenow: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ScheduleTransition)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi(), 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__ = std::mem::zeroed(); @@ -131,17 +131,17 @@ impl IUIAnimationManager { } pub unsafe fn GetVariableFromTag(&self, object: P0, id: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVariableFromTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStoryboardFromTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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__ = std::mem::zeroed(); @@ -158,33 +158,33 @@ impl IUIAnimationManager { } pub unsafe fn SetManagerEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetManagerEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetManagerEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn SetCancelPriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCancelPriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCancelPriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetTrimPriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTrimPriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTrimPriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetCompressPriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompressPriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCompressPriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetConcludePriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConcludePriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (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), delay).ok() @@ -229,10 +229,10 @@ impl IUIAnimationManager2 { } pub unsafe fn ScheduleTransition(&self, variable: P0, transition: P1, timenow: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ScheduleTransition)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi(), 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__ = std::mem::zeroed(); @@ -249,17 +249,17 @@ impl IUIAnimationManager2 { } pub unsafe fn GetVariableFromTag(&self, object: P0, id: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVariableFromTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStoryboardFromTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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__ = std::mem::zeroed(); @@ -280,34 +280,34 @@ impl IUIAnimationManager2 { } pub unsafe fn SetManagerEventHandler(&self, handler: P0, fregisterfornextanimationevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetManagerEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi(), fregisterfornextanimationevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetManagerEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi(), fregisterfornextanimationevent.param().abi()).ok() } pub unsafe fn SetCancelPriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCancelPriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCancelPriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetTrimPriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTrimPriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTrimPriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetCompressPriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompressPriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCompressPriorityComparison)(windows_core::Interface::as_raw(self), comparison.param().abi()).ok() } pub unsafe fn SetConcludePriorityComparison(&self, comparison: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConcludePriorityComparison)(windows_core::Interface::as_raw(self), comparison.into_param().abi()).ok() + (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), delay).ok() @@ -386,10 +386,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationPriorityComparison, windows_ impl IUIAnimationPriorityComparison { pub unsafe fn HasPriority(&self, scheduledstoryboard: P0, newstoryboard: P1, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.into_param().abi(), newstoryboard.into_param().abi(), priorityeffect).ok() + (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.param().abi(), newstoryboard.param().abi(), priorityeffect).ok() } } #[repr(C)] @@ -402,10 +402,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationPriorityComparison2, windows impl IUIAnimationPriorityComparison2 { pub unsafe fn HasPriority(&self, scheduledstoryboard: P0, newstoryboard: P1, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.into_param().abi(), newstoryboard.into_param().abi(), priorityeffect).ok() + (windows_core::Interface::vtable(self).HasPriority)(windows_core::Interface::as_raw(self), scheduledstoryboard.param().abi(), newstoryboard.param().abi(), priorityeffect).ok() } } #[repr(C)] @@ -418,54 +418,54 @@ windows_core::imp::interface_hierarchy!(IUIAnimationStoryboard, windows_core::IU impl IUIAnimationStoryboard { pub unsafe fn AddTransition(&self, variable: P0, transition: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransition)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTransition)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi()).ok() } pub unsafe fn AddKeyframeAtOffset(&self, existingkeyframe: P0, offset: f64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), existingkeyframe.into_param().abi(), offset, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), existingkeyframe.param().abi(), offset, &mut result__).map(|| result__) } pub unsafe fn AddKeyframeAfterTransition(&self, transition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddKeyframeAfterTransition)(windows_core::Interface::as_raw(self), transition.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddKeyframeAfterTransition)(windows_core::Interface::as_raw(self), transition.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AddTransitionAtKeyframe(&self, variable: P0, transition: P1, startkeyframe: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi(), startkeyframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe.param().abi()).ok() } pub unsafe fn AddTransitionBetweenKeyframes(&self, variable: P0, transition: P1, startkeyframe: P2, endkeyframe: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi(), startkeyframe.into_param().abi(), endkeyframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe.param().abi(), endkeyframe.param().abi()).ok() } pub unsafe fn RepeatBetweenKeyframes(&self, startkeyframe: P0, endkeyframe: P1, repetitioncount: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), startkeyframe.into_param().abi(), endkeyframe.into_param().abi(), repetitioncount).ok() + (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), startkeyframe.param().abi(), endkeyframe.param().abi(), repetitioncount).ok() } pub unsafe fn HoldVariable(&self, variable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HoldVariable)(windows_core::Interface::as_raw(self), variable.into_param().abi()).ok() + (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), delay).ok() @@ -484,9 +484,9 @@ impl IUIAnimationStoryboard { } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).ok() @@ -501,9 +501,9 @@ impl IUIAnimationStoryboard { } pub unsafe fn SetStoryboardEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStoryboardEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStoryboardEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } } #[repr(C)] @@ -532,56 +532,56 @@ windows_core::imp::interface_hierarchy!(IUIAnimationStoryboard2, windows_core::I impl IUIAnimationStoryboard2 { pub unsafe fn AddTransition(&self, variable: P0, transition: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransition)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTransition)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi()).ok() } pub unsafe fn AddKeyframeAtOffset(&self, existingkeyframe: P0, offset: f64) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), existingkeyframe.into_param().abi(), offset, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddKeyframeAtOffset)(windows_core::Interface::as_raw(self), existingkeyframe.param().abi(), offset, &mut result__).map(|| result__) } pub unsafe fn AddKeyframeAfterTransition(&self, transition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddKeyframeAfterTransition)(windows_core::Interface::as_raw(self), transition.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddKeyframeAfterTransition)(windows_core::Interface::as_raw(self), transition.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AddTransitionAtKeyframe(&self, variable: P0, transition: P1, startkeyframe: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi(), startkeyframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTransitionAtKeyframe)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe.param().abi()).ok() } pub unsafe fn AddTransitionBetweenKeyframes(&self, variable: P0, transition: P1, startkeyframe: P2, endkeyframe: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.into_param().abi(), transition.into_param().abi(), startkeyframe.into_param().abi(), endkeyframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTransitionBetweenKeyframes)(windows_core::Interface::as_raw(self), variable.param().abi(), transition.param().abi(), startkeyframe.param().abi(), endkeyframe.param().abi()).ok() } pub unsafe fn RepeatBetweenKeyframes(&self, startkeyframe: P0, endkeyframe: P1, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: P2, id: usize, fregisterfornextanimationevent: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), startkeyframe.into_param().abi(), endkeyframe.into_param().abi(), crepetition, repeatmode, piterationchangehandler.into_param().abi(), id, fregisterfornextanimationevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RepeatBetweenKeyframes)(windows_core::Interface::as_raw(self), startkeyframe.param().abi(), endkeyframe.param().abi(), crepetition, repeatmode, piterationchangehandler.param().abi(), id, fregisterfornextanimationevent.param().abi()).ok() } pub unsafe fn HoldVariable(&self, variable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HoldVariable)(windows_core::Interface::as_raw(self), variable.into_param().abi()).ok() + (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), delay).ok() @@ -603,9 +603,9 @@ impl IUIAnimationStoryboard2 { } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).ok() @@ -620,11 +620,11 @@ impl IUIAnimationStoryboard2 { } pub unsafe fn SetStoryboardEventHandler(&self, handler: P0, fregisterstatuschangefornextanimationevent: P1, fregisterupdatefornextanimationevent: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStoryboardEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi(), fregisterstatuschangefornextanimationevent.into_param().abi(), fregisterupdatefornextanimationevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStoryboardEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi(), fregisterstatuschangefornextanimationevent.param().abi(), fregisterupdatefornextanimationevent.param().abi()).ok() } } #[repr(C)] @@ -654,15 +654,15 @@ windows_core::imp::interface_hierarchy!(IUIAnimationStoryboardEventHandler, wind impl IUIAnimationStoryboardEventHandler { pub unsafe fn OnStoryboardStatusChanged(&self, storyboard: P0, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStoryboardStatusChanged)(windows_core::Interface::as_raw(self), storyboard.into_param().abi(), newstatus, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStoryboardUpdated)(windows_core::Interface::as_raw(self), storyboard.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnStoryboardUpdated)(windows_core::Interface::as_raw(self), storyboard.param().abi()).ok() } } #[repr(C)] @@ -676,15 +676,15 @@ windows_core::imp::interface_hierarchy!(IUIAnimationStoryboardEventHandler2, win impl IUIAnimationStoryboardEventHandler2 { pub unsafe fn OnStoryboardStatusChanged(&self, storyboard: P0, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStoryboardStatusChanged)(windows_core::Interface::as_raw(self), storyboard.into_param().abi(), newstatus, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStoryboardUpdated)(windows_core::Interface::as_raw(self), storyboard.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnStoryboardUpdated)(windows_core::Interface::as_raw(self), storyboard.param().abi()).ok() } } #[repr(C)] @@ -698,15 +698,15 @@ windows_core::imp::interface_hierarchy!(IUIAnimationTimer, windows_core::IUnknow impl IUIAnimationTimer { pub unsafe fn SetTimerUpdateHandler(&self, updatehandler: P0, idlebehavior: UI_ANIMATION_IDLE_BEHAVIOR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTimerUpdateHandler)(windows_core::Interface::as_raw(self), updatehandler.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTimerEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTimerEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn Enable(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self)).ok() @@ -777,9 +777,9 @@ impl IUIAnimationTimerUpdateHandler { } pub unsafe fn SetTimerClientEventHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTimerClientEventHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTimerClientEventHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn ClearTimerClientEventHandler(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearTimerClientEventHandler)(windows_core::Interface::as_raw(self)).ok() @@ -860,10 +860,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationTransitionFactory, windows_c impl IUIAnimationTransitionFactory { pub unsafe fn CreateTransition(&self, interpolator: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransition)(windows_core::Interface::as_raw(self), interpolator.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTransition)(windows_core::Interface::as_raw(self), interpolator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -876,10 +876,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationTransitionFactory2, windows_ impl IUIAnimationTransitionFactory2 { pub unsafe fn CreateTransition(&self, interpolator: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransition)(windows_core::Interface::as_raw(self), interpolator.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTransition)(windows_core::Interface::as_raw(self), interpolator.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1100,24 +1100,24 @@ impl IUIAnimationVariable { } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetVariableChangeHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVariableChangeHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVariableChangeHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn SetVariableIntegerChangeHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVariableIntegerChangeHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVariableIntegerChangeHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } } #[repr(C)] @@ -1155,9 +1155,9 @@ impl IUIAnimationVariable2 { #[cfg(feature = "Win32_Graphics_DirectComposition")] pub unsafe fn GetCurve(&self, animation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCurve)(windows_core::Interface::as_raw(self), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetCurve)(windows_core::Interface::as_raw(self), animation.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_DirectComposition")] pub unsafe fn GetVectorCurve(&self, animation: &[Option]) -> windows_core::Result<()> { @@ -1219,32 +1219,32 @@ impl IUIAnimationVariable2 { } pub unsafe fn SetTag(&self, object: P0, id: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTag)(windows_core::Interface::as_raw(self), object.into_param().abi(), 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(std::ptr::null_mut())), core::mem::transmute(id.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetVariableChangeHandler(&self, handler: P0, fregisterfornextanimationevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVariableChangeHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi(), fregisterfornextanimationevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVariableChangeHandler)(windows_core::Interface::as_raw(self), handler.param().abi(), fregisterfornextanimationevent.param().abi()).ok() } pub unsafe fn SetVariableIntegerChangeHandler(&self, handler: P0, fregisterfornextanimationevent: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVariableIntegerChangeHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi(), fregisterfornextanimationevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVariableIntegerChangeHandler)(windows_core::Interface::as_raw(self), handler.param().abi(), fregisterfornextanimationevent.param().abi()).ok() } pub unsafe fn SetVariableCurveChangeHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVariableCurveChangeHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVariableCurveChangeHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } } #[repr(C)] @@ -1288,10 +1288,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationVariableChangeHandler, windo impl IUIAnimationVariableChangeHandler { pub unsafe fn OnValueChanged(&self, storyboard: P0, variable: P1, newvalue: f64, previousvalue: f64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnValueChanged)(windows_core::Interface::as_raw(self), storyboard.into_param().abi(), variable.into_param().abi(), newvalue, 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)] @@ -1304,10 +1304,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationVariableChangeHandler2, wind impl IUIAnimationVariableChangeHandler2 { pub unsafe fn OnValueChanged(&self, storyboard: P0, variable: P1, newvalue: *const f64, previousvalue: *const f64, cdimension: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnValueChanged)(windows_core::Interface::as_raw(self), storyboard.into_param().abi(), variable.into_param().abi(), newvalue, previousvalue, 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)] @@ -1320,9 +1320,9 @@ windows_core::imp::interface_hierarchy!(IUIAnimationVariableCurveChangeHandler2, impl IUIAnimationVariableCurveChangeHandler2 { pub unsafe fn OnCurveChanged(&self, variable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCurveChanged)(windows_core::Interface::as_raw(self), variable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCurveChanged)(windows_core::Interface::as_raw(self), variable.param().abi()).ok() } } #[repr(C)] @@ -1335,10 +1335,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationVariableIntegerChangeHandler impl IUIAnimationVariableIntegerChangeHandler { pub unsafe fn OnIntegerValueChanged(&self, storyboard: P0, variable: P1, newvalue: i32, previousvalue: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIntegerValueChanged)(windows_core::Interface::as_raw(self), storyboard.into_param().abi(), variable.into_param().abi(), newvalue, 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)] @@ -1351,10 +1351,10 @@ windows_core::imp::interface_hierarchy!(IUIAnimationVariableIntegerChangeHandler impl IUIAnimationVariableIntegerChangeHandler2 { pub unsafe fn OnIntegerValueChanged(&self, storyboard: P0, variable: P1, newvalue: *const i32, previousvalue: *const i32, cdimension: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnIntegerValueChanged)(windows_core::Interface::as_raw(self), storyboard.into_param().abi(), variable.into_param().abi(), newvalue, previousvalue, 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 bef802ec2d..bcc0bb5879 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs @@ -1,22 +1,22 @@ #[inline] pub unsafe fn AssociateColorProfileWithDeviceA(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn AssociateColorProfileWithDeviceA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, pdevicename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - AssociateColorProfileWithDeviceA(pmachinename.into_param().abi(), pprofilename.into_param().abi(), pdevicename.into_param().abi()) + AssociateColorProfileWithDeviceA(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } #[inline] pub unsafe fn AssociateColorProfileWithDeviceW(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn AssociateColorProfileWithDeviceW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AssociateColorProfileWithDeviceW(pmachinename.into_param().abi(), pprofilename.into_param().abi(), pdevicename.into_param().abi()) + AssociateColorProfileWithDeviceW(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } #[inline] pub unsafe fn CMCheckColors(hcmtransform: isize, lpainputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, lparesult: *mut u8) -> super::super::Foundation::BOOL { @@ -32,10 +32,10 @@ pub unsafe fn CMCheckColorsInGamut(hcmtransform: isize, lpargbtriple: *const sup #[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: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwstride, lparesult, pfncallback, ulcallbackdata.into_param().abi()) + CMCheckRGBs(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwstride, lparesult, pfncallback, ulcallbackdata.param().abi()) } #[inline] pub unsafe fn CMConvertColorNameToIndex(hprofile: isize, pacolorname: *const *const i8, paindex: *mut u32, dwcount: u32) -> super::super::Foundation::BOOL { @@ -121,10 +121,10 @@ pub unsafe fn CMTranslateColors(hcmtransform: isize, lpainputcolors: *const COLO #[inline] pub unsafe fn CMTranslateRGB(hcmtransform: isize, colorref: P0, lpcolorref: *mut u32, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcmtransform, colorref.into_param().abi(), lpcolorref, dwflags) + CMTranslateRGB(hcmtransform, colorref.param().abi(), 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 { @@ -134,18 +134,18 @@ pub unsafe fn CMTranslateRGBs(hcmtransform: isize, lpsrcbits: *const core::ffi:: #[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: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwinputstride, lpdestbits, bmoutput, dwoutputstride, lpfncallback, ulcallbackdata.into_param().abi()) + CMTranslateRGBsExt(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwinputstride, lpdestbits, bmoutput, dwoutputstride, lpfncallback, ulcallbackdata.param().abi()) } #[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: LPBMCALLBACKFN, lpcallbackdata: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwstride, paresult, pfncallback, lpcallbackdata.into_param().abi()) + CheckBitmapBits(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwstride, paresult, pfncallback, lpcallbackdata.param().abi()) } #[inline] pub unsafe fn CheckColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paresult: *mut u8) -> super::super::Foundation::BOOL { @@ -156,10 +156,10 @@ pub unsafe fn CheckColors(hcolortransform: isize, painputcolors: *const COLOR, n #[inline] pub unsafe fn CheckColorsInGamut(hdc: P0, lprgbtriple: *const super::super::Graphics::Gdi::RGBTRIPLE, dlpbuffer: *mut core::ffi::c_void, ncount: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), lprgbtriple, dlpbuffer, ncount) + CheckColorsInGamut(hdc.param().abi(), lprgbtriple, dlpbuffer, ncount) } #[inline] pub unsafe fn CloseColorProfile(hprofile: isize) -> super::super::Foundation::BOOL { @@ -170,31 +170,31 @@ pub unsafe fn CloseColorProfile(hprofile: isize) -> super::super::Foundation::BO #[inline] pub unsafe fn ColorCorrectPalette(hdc: P0, hpal: P1, defirst: u32, num: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), hpal.into_param().abi(), defirst, num) + ColorCorrectPalette(hdc.param().abi(), hpal.param().abi(), defirst, num) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ColorMatchToTarget(hdc: P0, hdctarget: P1, action: COLOR_MATCH_TO_TARGET_ACTION) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), hdctarget.into_param().abi(), action) + ColorMatchToTarget(hdc.param().abi(), hdctarget.param().abi(), action) } #[inline] pub unsafe fn ColorProfileAddDisplayAssociation(scope: WCS_PROFILE_MANAGEMENT_SCOPE, profilename: P0, targetadapterid: super::super::Foundation::LUID, sourceid: u32, setasdefault: P1, associateasadvancedcolor: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(scope, profilename.into_param().abi(), core::mem::transmute(targetadapterid), sourceid, setasdefault.into_param().abi(), associateasadvancedcolor.into_param().abi()).ok() + ColorProfileAddDisplayAssociation(scope, profilename.param().abi(), core::mem::transmute(targetadapterid), sourceid, setasdefault.param().abi(), associateasadvancedcolor.param().abi()).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 { @@ -216,19 +216,19 @@ pub unsafe fn ColorProfileGetDisplayUserScope(targetadapterid: super::super::Fou #[inline] pub unsafe fn ColorProfileRemoveDisplayAssociation(scope: WCS_PROFILE_MANAGEMENT_SCOPE, profilename: P0, targetadapterid: super::super::Foundation::LUID, sourceid: u32, dissociateadvancedcolor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(scope, profilename.into_param().abi(), core::mem::transmute(targetadapterid), sourceid, dissociateadvancedcolor.into_param().abi()).ok() + ColorProfileRemoveDisplayAssociation(scope, profilename.param().abi(), core::mem::transmute(targetadapterid), sourceid, dissociateadvancedcolor.param().abi()).ok() } #[inline] pub unsafe fn ColorProfileSetDisplayDefaultAssociation(scope: WCS_PROFILE_MANAGEMENT_SCOPE, profilename: P0, profiletype: COLORPROFILETYPE, profilesubtype: COLORPROFILESUBTYPE, targetadapterid: super::super::Foundation::LUID, sourceid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(scope, profilename.into_param().abi(), profiletype, profilesubtype, core::mem::transmute(targetadapterid), 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 { @@ -289,10 +289,10 @@ pub unsafe fn CreateProfileFromLogColorSpaceW(plogcolorspace: *const LOGCOLORSPA #[inline] pub unsafe fn DeleteColorSpace(hcs: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn DeleteColorSpace(hcs : HCOLORSPACE) -> super::super::Foundation:: BOOL); - DeleteColorSpace(hcs.into_param().abi()) + DeleteColorSpace(hcs.param().abi()) } #[inline] pub unsafe fn DeleteColorTransform(hxform: isize) -> super::super::Foundation::BOOL { @@ -302,58 +302,58 @@ pub unsafe fn DeleteColorTransform(hxform: isize) -> super::super::Foundation::B #[inline] pub unsafe fn DisassociateColorProfileFromDeviceA(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn DisassociateColorProfileFromDeviceA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, pdevicename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DisassociateColorProfileFromDeviceA(pmachinename.into_param().abi(), pprofilename.into_param().abi(), pdevicename.into_param().abi()) + DisassociateColorProfileFromDeviceA(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } #[inline] pub unsafe fn DisassociateColorProfileFromDeviceW(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn DisassociateColorProfileFromDeviceW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DisassociateColorProfileFromDeviceW(pmachinename.into_param().abi(), pprofilename.into_param().abi(), pdevicename.into_param().abi()) + DisassociateColorProfileFromDeviceW(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } #[inline] pub unsafe fn EnumColorProfilesA(pmachinename: P0, penumrecord: *const ENUMTYPEA, penumerationbuffer: Option<*mut u8>, pdwsizeofenumerationbuffer: *mut u32, pnprofiles: Option<*mut u32>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), penumrecord, core::mem::transmute(penumerationbuffer.unwrap_or(std::ptr::null_mut())), pdwsizeofenumerationbuffer, core::mem::transmute(pnprofiles.unwrap_or(std::ptr::null_mut()))) + EnumColorProfilesA(pmachinename.param().abi(), penumrecord, core::mem::transmute(penumerationbuffer.unwrap_or(std::ptr::null_mut())), pdwsizeofenumerationbuffer, core::mem::transmute(pnprofiles.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, + 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.into_param().abi(), penumrecord, core::mem::transmute(penumerationbuffer.unwrap_or(std::ptr::null_mut())), pdwsizeofenumerationbuffer, core::mem::transmute(pnprofiles.unwrap_or(std::ptr::null_mut()))) + EnumColorProfilesW(pmachinename.param().abi(), penumrecord, core::mem::transmute(penumerationbuffer.unwrap_or(std::ptr::null_mut())), pdwsizeofenumerationbuffer, core::mem::transmute(pnprofiles.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EnumICMProfilesA(hdc: P0, proc: ICMENUMPROCA, param2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumICMProfilesA(hdc : super::super::Graphics::Gdi:: HDC, proc : ICMENUMPROCA, param2 : super::super::Foundation:: LPARAM) -> i32); - EnumICMProfilesA(hdc.into_param().abi(), proc, param2.into_param().abi()) + EnumICMProfilesA(hdc.param().abi(), proc, param2.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn EnumICMProfilesW(hdc: P0, proc: ICMENUMPROCW, param2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn EnumICMProfilesW(hdc : super::super::Graphics::Gdi:: HDC, proc : ICMENUMPROCW, param2 : super::super::Foundation:: LPARAM) -> i32); - EnumICMProfilesW(hdc.into_param().abi(), proc, param2.into_param().abi()) + EnumICMProfilesW(hdc.param().abi(), proc, param2.param().abi()) } #[inline] pub unsafe fn GetCMMInfo(hcolortransform: isize, param1: u32) -> u32 { @@ -363,18 +363,18 @@ pub unsafe fn GetCMMInfo(hcolortransform: isize, param1: u32) -> u32 { #[inline] pub unsafe fn GetColorDirectoryA(pmachinename: P0, pbuffer: windows_core::PSTR, pdwsize: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn GetColorDirectoryA(pmachinename : windows_core::PCSTR, pbuffer : windows_core::PSTR, pdwsize : *mut u32) -> super::super::Foundation:: BOOL); - GetColorDirectoryA(pmachinename.into_param().abi(), core::mem::transmute(pbuffer), pdwsize) + GetColorDirectoryA(pmachinename.param().abi(), core::mem::transmute(pbuffer), pdwsize) } #[inline] pub unsafe fn GetColorDirectoryW(pmachinename: P0, pbuffer: windows_core::PWSTR, pdwsize: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn GetColorDirectoryW(pmachinename : windows_core::PCWSTR, pbuffer : windows_core::PWSTR, pdwsize : *mut u32) -> super::super::Foundation:: BOOL); - GetColorDirectoryW(pmachinename.into_param().abi(), core::mem::transmute(pbuffer), pdwsize) + GetColorDirectoryW(pmachinename.param().abi(), core::mem::transmute(pbuffer), pdwsize) } #[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 { @@ -401,10 +401,10 @@ pub unsafe fn GetColorProfileHeader(hprofile: isize, pheader: *mut PROFILEHEADER #[inline] pub unsafe fn GetColorSpace(hdc: P0) -> HCOLORSPACE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetColorSpace(hdc : super::super::Graphics::Gdi:: HDC) -> HCOLORSPACE); - GetColorSpace(hdc.into_param().abi()) + GetColorSpace(hdc.param().abi()) } #[inline] pub unsafe fn GetCountColorProfileElements(hprofile: isize, pnelementcount: *mut u32) -> super::super::Foundation::BOOL { @@ -415,46 +415,46 @@ pub unsafe fn GetCountColorProfileElements(hprofile: isize, pnelementcount: *mut #[inline] pub unsafe fn GetDeviceGammaRamp(hdc: P0, lpramp: *mut core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), lpramp) + GetDeviceGammaRamp(hdc.param().abi(), lpramp) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetICMProfileA(hdc: P0, pbufsize: *mut u32, pszfilename: windows_core::PSTR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), pbufsize, core::mem::transmute(pszfilename)) + GetICMProfileA(hdc.param().abi(), pbufsize, core::mem::transmute(pszfilename)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetICMProfileW(hdc: P0, pbufsize: *mut u32, pszfilename: windows_core::PWSTR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), pbufsize, core::mem::transmute(pszfilename)) + GetICMProfileW(hdc.param().abi(), pbufsize, core::mem::transmute(pszfilename)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetLogColorSpaceA(hcolorspace: P0, lpbuffer: *mut LOGCOLORSPACEA, nsize: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceA(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEA, nsize : u32) -> super::super::Foundation:: BOOL); - GetLogColorSpaceA(hcolorspace.into_param().abi(), lpbuffer, nsize) + GetLogColorSpaceA(hcolorspace.param().abi(), lpbuffer, nsize) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetLogColorSpaceW(hcolorspace: P0, lpbuffer: *mut LOGCOLORSPACEW, nsize: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceW(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEW, nsize : u32) -> super::super::Foundation:: BOOL); - GetLogColorSpaceW(hcolorspace.into_param().abi(), lpbuffer, nsize) + GetLogColorSpaceW(hcolorspace.param().abi(), lpbuffer, nsize) } #[inline] pub unsafe fn GetNamedProfileInfo(hprofile: isize, pnamedprofileinfo: *mut NAMED_PROFILE_INFO) -> super::super::Foundation::BOOL { @@ -479,36 +479,36 @@ pub unsafe fn GetPS2ColorSpaceArray(hprofile: isize, dwintent: u32, dwcsatype: u #[inline] pub unsafe fn GetStandardColorSpaceProfileA(pmachinename: P0, dwscs: u32, pbuffer: windows_core::PSTR, pcbsize: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwscs, core::mem::transmute(pbuffer), pcbsize) + GetStandardColorSpaceProfileA(pmachinename.param().abi(), dwscs, core::mem::transmute(pbuffer), pcbsize) } #[inline] pub unsafe fn GetStandardColorSpaceProfileW(pmachinename: P0, dwscs: u32, pbuffer: windows_core::PWSTR, pcbsize: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwscs, core::mem::transmute(pbuffer), pcbsize) + GetStandardColorSpaceProfileW(pmachinename.param().abi(), dwscs, core::mem::transmute(pbuffer), pcbsize) } #[inline] pub unsafe fn InstallColorProfileA(pmachinename: P0, pprofilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn InstallColorProfileA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - InstallColorProfileA(pmachinename.into_param().abi(), pprofilename.into_param().abi()) + InstallColorProfileA(pmachinename.param().abi(), pprofilename.param().abi()) } #[inline] pub unsafe fn InstallColorProfileW(pmachinename: P0, pprofilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn InstallColorProfileW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - InstallColorProfileW(pmachinename.into_param().abi(), pprofilename.into_param().abi()) + InstallColorProfileW(pmachinename.param().abi(), pprofilename.param().abi()) } #[inline] pub unsafe fn IsColorProfileTagPresent(hprofile: isize, tag: u32, pbpresent: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { @@ -533,20 +533,20 @@ pub unsafe fn OpenColorProfileW(pprofile: *const PROFILE, dwdesiredaccess: u32, #[inline] pub unsafe fn RegisterCMMA(pmachinename: P0, cmmid: u32, pcmmdll: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), cmmid, pcmmdll.into_param().abi()) + RegisterCMMA(pmachinename.param().abi(), cmmid, pcmmdll.param().abi()) } #[inline] pub unsafe fn RegisterCMMW(pmachinename: P0, cmmid: u32, pcmmdll: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), cmmid, pcmmdll.into_param().abi()) + RegisterCMMW(pmachinename.param().abi(), cmmid, pcmmdll.param().abi()) } #[inline] pub unsafe fn SelectCMM(dwcmmtype: u32) -> super::super::Foundation::BOOL { @@ -578,67 +578,67 @@ pub unsafe fn SetColorProfileHeader(hprofile: isize, pheader: *const PROFILEHEAD #[inline] pub unsafe fn SetColorSpace(hdc: P0, hcs: P1) -> HCOLORSPACE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetColorSpace(hdc : super::super::Graphics::Gdi:: HDC, hcs : HCOLORSPACE) -> HCOLORSPACE); - SetColorSpace(hdc.into_param().abi(), hcs.into_param().abi()) + SetColorSpace(hdc.param().abi(), hcs.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetDeviceGammaRamp(hdc: P0, lpramp: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), lpramp) + SetDeviceGammaRamp(hdc.param().abi(), lpramp) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetICMMode(hdc: P0, mode: ICM_MODE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("gdi32.dll" "system" fn SetICMMode(hdc : super::super::Graphics::Gdi:: HDC, mode : ICM_MODE) -> i32); - SetICMMode(hdc.into_param().abi(), mode) + SetICMMode(hdc.param().abi(), mode) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetICMProfileA(hdc: P0, lpfilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdc.into_param().abi(), lpfilename.into_param().abi()) + SetICMProfileA(hdc.param().abi(), lpfilename.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetICMProfileW(hdc: P0, lpfilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdc.into_param().abi(), lpfilename.into_param().abi()) + SetICMProfileW(hdc.param().abi(), lpfilename.param().abi()) } #[inline] pub unsafe fn SetStandardColorSpaceProfileA(pmachinename: P0, dwprofileid: u32, pprofilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwprofileid, pprofilename.into_param().abi()) + SetStandardColorSpaceProfileA(pmachinename.param().abi(), dwprofileid, pprofilename.param().abi()) } #[inline] pub unsafe fn SetStandardColorSpaceProfileW(pmachinename: P0, dwprofileid: u32, pprofilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwprofileid, pprofilename.into_param().abi()) + SetStandardColorSpaceProfileW(pmachinename.param().abi(), dwprofileid, pprofilename.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -655,10 +655,10 @@ 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: LPBMCALLBACKFN, ulcallbackdata: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwinputstride, pdestbits, bmoutput, dwoutputstride, pfncallback, ulcallbackdata.into_param().abi()) + TranslateBitmapBits(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwinputstride, pdestbits, bmoutput, dwoutputstride, pfncallback, ulcallbackdata.param().abi()) } #[inline] pub unsafe fn TranslateColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paoutputcolors: *mut COLOR, ctoutput: COLORTYPE) -> super::super::Foundation::BOOL { @@ -668,65 +668,65 @@ pub unsafe fn TranslateColors(hcolortransform: isize, painputcolors: *const COLO #[inline] pub unsafe fn UninstallColorProfileA(pmachinename: P0, pprofilename: P1, bdelete: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn UninstallColorProfileA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, bdelete : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - UninstallColorProfileA(pmachinename.into_param().abi(), pprofilename.into_param().abi(), bdelete.into_param().abi()) + UninstallColorProfileA(pmachinename.param().abi(), pprofilename.param().abi(), bdelete.param().abi()) } #[inline] pub unsafe fn UninstallColorProfileW(pmachinename: P0, pprofilename: P1, bdelete: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn UninstallColorProfileW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, bdelete : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - UninstallColorProfileW(pmachinename.into_param().abi(), pprofilename.into_param().abi(), bdelete.into_param().abi()) + UninstallColorProfileW(pmachinename.param().abi(), pprofilename.param().abi(), bdelete.param().abi()) } #[inline] pub unsafe fn UnregisterCMMA(pmachinename: P0, cmmid: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn UnregisterCMMA(pmachinename : windows_core::PCSTR, cmmid : u32) -> super::super::Foundation:: BOOL); - UnregisterCMMA(pmachinename.into_param().abi(), cmmid) + UnregisterCMMA(pmachinename.param().abi(), cmmid) } #[inline] pub unsafe fn UnregisterCMMW(pmachinename: P0, cmmid: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn UnregisterCMMW(pmachinename : windows_core::PCWSTR, cmmid : u32) -> super::super::Foundation:: BOOL); - UnregisterCMMW(pmachinename.into_param().abi(), cmmid) + UnregisterCMMW(pmachinename.param().abi(), cmmid) } #[inline] pub unsafe fn UpdateICMRegKeyA(reserved: u32, lpszcmid: P0, lpszfilename: P1, command: ICM_COMMAND) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(reserved, lpszcmid.into_param().abi(), lpszfilename.into_param().abi(), command) + UpdateICMRegKeyA(reserved, lpszcmid.param().abi(), lpszfilename.param().abi(), command) } #[inline] pub unsafe fn UpdateICMRegKeyW(reserved: u32, lpszcmid: P0, lpszfilename: P1, command: ICM_COMMAND) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(reserved, lpszcmid.into_param().abi(), lpszfilename.into_param().abi(), command) + UpdateICMRegKeyW(reserved, lpszcmid.param().abi(), lpszfilename.param().abi(), command) } #[inline] pub unsafe fn WcsAssociateColorProfileWithDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P0, pdevicename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(scope, pprofilename.into_param().abi(), pdevicename.into_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 { @@ -741,11 +741,11 @@ pub unsafe fn WcsCreateIccProfile(hwcsprofile: isize, dwoptions: u32) -> isize { #[inline] pub unsafe fn WcsDisassociateColorProfileFromDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P0, pdevicename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(scope, pprofilename.into_param().abi(), pdevicename.into_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 { @@ -765,18 +765,18 @@ pub unsafe fn WcsGetCalibrationManagementState(pbisenabled: *mut super::super::F #[inline] pub unsafe fn WcsGetDefaultColorProfile(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P0, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, cbprofilename: u32, pprofilename: windows_core::PWSTR) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(scope, pdevicename.into_param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, 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: P0, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, pcbprofilename: *mut u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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(scope, pdevicename.into_param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, pcbprofilename) + WcsGetDefaultColorProfileSize(scope, pdevicename.param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, pcbprofilename) } #[inline] pub unsafe fn WcsGetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdwrenderingintent: *mut u32) -> super::super::Foundation::BOOL { @@ -786,10 +786,10 @@ pub unsafe fn WcsGetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, #[inline] pub unsafe fn WcsGetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, puseperuserprofiles: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwdeviceclass, puseperuserprofiles) + WcsGetUsePerUserProfiles(pdevicename.param().abi(), dwdeviceclass, 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 { @@ -804,19 +804,19 @@ pub unsafe fn WcsOpenColorProfileW(pcdmpprofile: *const PROFILE, pcampprofile: O #[inline] pub unsafe fn WcsSetCalibrationManagementState(bisenabled: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mscms.dll" "system" fn WcsSetCalibrationManagementState(bisenabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - WcsSetCalibrationManagementState(bisenabled.into_param().abi()) + WcsSetCalibrationManagementState(bisenabled.param().abi()) } #[inline] pub unsafe fn WcsSetDefaultColorProfile(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P0, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, pprofilename: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(scope, pdevicename.into_param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, pprofilename.into_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 { @@ -826,11 +826,11 @@ pub unsafe fn WcsSetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, #[inline] pub unsafe fn WcsSetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, useperuserprofiles: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwdeviceclass, useperuserprofiles.into_param().abi()) + WcsSetUsePerUserProfiles(pdevicename.param().abi(), dwdeviceclass, useperuserprofiles.param().abi()) } #[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 { @@ -842,9 +842,9 @@ windows_core::imp::interface_hierarchy!(IDeviceModelPlugIn, windows_core::IUnkno impl IDeviceModelPlugIn { pub unsafe fn Initialize(&self, bstrxml: P0, cnummodels: u32, imodelposition: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrxml.into_param().abi(), cnummodels, imodelposition).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrxml.param().abi(), cnummodels, imodelposition).ok() } pub unsafe fn GetNumChannels(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -863,9 +863,9 @@ impl IDeviceModelPlugIn { } pub unsafe fn SetTransformDeviceModelInfo(&self, imodelposition: u32, pidevicemodelother: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTransformDeviceModelInfo)(windows_core::Interface::as_raw(self), imodelposition, pidevicemodelother.into_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), pprimarycolor).ok() @@ -904,11 +904,11 @@ windows_core::imp::interface_hierarchy!(IGamutMapModelPlugIn, windows_core::IUnk impl IGamutMapModelPlugIn { pub unsafe fn Initialize(&self, bstrxml: P0, psrcplugin: P1, pdestplugin: P2, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrxml.into_param().abi(), psrcplugin.into_param().abi(), pdestplugin.into_param().abi(), psrcgbd, pdestgbd).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), bstrxml.param().abi(), psrcplugin.param().abi(), pdestplugin.param().abi(), psrcgbd, pdestgbd).ok() } pub unsafe fn SourceToDestinationAppearanceColors(&self, ccolors: u32, pinputcolors: *const JChColorF, poutputcolors: *mut JChColorF) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SourceToDestinationAppearanceColors)(windows_core::Interface::as_raw(self), ccolors, pinputcolors, poutputcolors).ok() 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 2435c69fe0..cddee240b1 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 @@ -38,18 +38,18 @@ pub unsafe fn FindTextW(param0: *mut FINDREPLACEW) -> super::super::super::Found #[inline] pub unsafe fn GetFileTitleA(param0: P0, buf: &mut [u8]) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comdlg32.dll" "system" fn GetFileTitleA(param0 : windows_core::PCSTR, buf : windows_core::PSTR, cchsize : u16) -> i16); - GetFileTitleA(param0.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()) + GetFileTitleA(param0.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()) } #[inline] pub unsafe fn GetFileTitleW(param0: P0, buf: &mut [u16]) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comdlg32.dll" "system" fn GetFileTitleW(param0 : windows_core::PCWSTR, buf : windows_core::PWSTR, cchsize : u16) -> i16); - GetFileTitleW(param0.into_param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()) + GetFileTitleW(param0.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()) } #[inline] pub unsafe fn GetOpenFileNameA(param0: *mut OPENFILENAMEA) -> super::super::super::Foundation::BOOL { @@ -126,11 +126,11 @@ impl IPrintDialogCallback { } pub unsafe fn HandleMessage(&self, hdlg: P0, umsg: u32, wparam: P1, lparam: P2, presult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleMessage)(windows_core::Interface::as_raw(self), hdlg.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi(), presult).ok() + (windows_core::Interface::vtable(self).HandleMessage)(windows_core::Interface::as_raw(self), hdlg.param().abi(), umsg, wparam.param().abi(), lparam.param().abi(), 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 01676b51e8..a265ec024d 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 @@ -22,25 +22,25 @@ impl IRichEditOle { } pub unsafe fn ConvertObject(&self, iob: i32, rclsidnew: *const windows_core::GUID, lpstrusertypenew: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertObject)(windows_core::Interface::as_raw(self), iob, rclsidnew, lpstrusertypenew.into_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), rclsid, rclsidas).ok() } pub unsafe fn SetHostNames(&self, lpstrcontainerapp: P0, lpstrcontainerobj: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHostNames)(windows_core::Interface::as_raw(self), lpstrcontainerapp.into_param().abi(), lpstrcontainerobj.into_param().abi()).ok() + (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLinkAvailable)(windows_core::Interface::as_raw(self), iob, favailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLinkAvailable)(windows_core::Interface::as_raw(self), iob, favailable.param().abi()).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), iob, dvaspect).ok() @@ -51,18 +51,18 @@ impl IRichEditOle { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SaveCompleted(&self, iob: i32, lpstg: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveCompleted)(windows_core::Interface::as_raw(self), iob, lpstg.into_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() } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClipboardData(&self, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut Option) -> windows_core::Result<()> { @@ -71,10 +71,10 @@ impl IRichEditOle { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ImportDataObject(&self, lpdataobj: P0, cf: u16, hmetapict: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportDataObject)(windows_core::Interface::as_raw(self), lpdataobj.into_param().abi(), cf, hmetapict.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImportDataObject)(windows_core::Interface::as_raw(self), lpdataobj.param().abi(), cf, hmetapict.param().abi()).ok() } } #[repr(C)] @@ -129,38 +129,38 @@ impl IRichEditOleCallback { } pub unsafe fn ShowContainerUI(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowContainerUI)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowContainerUI)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn QueryInsertObject(&self, lpclsid: *mut windows_core::GUID, lpstg: P0, cp: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInsertObject)(windows_core::Interface::as_raw(self), lpclsid, lpstg.into_param().abi(), cp).ok() + (windows_core::Interface::vtable(self).QueryInsertObject)(windows_core::Interface::as_raw(self), lpclsid, lpstg.param().abi(), cp).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn DeleteObject(&self, lpoleobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteObject)(windows_core::Interface::as_raw(self), lpoleobj.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteObject)(windows_core::Interface::as_raw(self), lpoleobj.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] pub unsafe fn QueryAcceptData(&self, lpdataobj: P0, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: P1, hmetapict: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryAcceptData)(windows_core::Interface::as_raw(self), lpdataobj.into_param().abi(), lpcfformat, reco, freally.into_param().abi(), hmetapict.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueryAcceptData)(windows_core::Interface::as_raw(self), lpdataobj.param().abi(), lpcfformat, reco, freally.param().abi(), hmetapict.param().abi()).ok() } pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetClipboardData(&self, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut Option) -> windows_core::Result<()> { @@ -169,16 +169,16 @@ impl IRichEditOleCallback { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_SystemServices"))] pub unsafe fn GetDragDropEffect(&self, fdrag: P0, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDragDropEffect)(windows_core::Interface::as_raw(self), fdrag.into_param().abi(), grfkeystate, pdweffect).ok() + (windows_core::Interface::vtable(self).GetDragDropEffect)(windows_core::Interface::as_raw(self), fdrag.param().abi(), grfkeystate, 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: P0, lpchrg: *mut CHARRANGE, lphmenu: *mut super::super::WindowsAndMessaging::HMENU) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetContextMenu)(windows_core::Interface::as_raw(self), seltype, lpoleobj.into_param().abi(), lpchrg, lphmenu).ok() + (windows_core::Interface::vtable(self).GetContextMenu)(windows_core::Interface::as_raw(self), seltype, lpoleobj.param().abi(), lpchrg, lphmenu).ok() } } #[repr(C)] @@ -457,9 +457,9 @@ impl ITextDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDocumentFont(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentFont)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentFont)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDocumentPara(&self) -> windows_core::Result { @@ -469,9 +469,9 @@ impl ITextDocument2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDocumentPara(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDocumentPara)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDocumentPara)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn GetEastAsianFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -515,9 +515,9 @@ impl ITextDocument2 { } pub unsafe fn AttachMsgFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachMsgFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (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), cch, pcch).ok() @@ -564,9 +564,9 @@ impl ITextDocument2 { } pub unsafe fn ReleaseCallManager(&self, pvoid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseCallManager)(windows_core::Interface::as_raw(self), pvoid.into_param().abi()).ok() + (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), context).ok() @@ -602,9 +602,9 @@ impl ITextDocument2 { } pub unsafe fn SetActiveStory(&self, pstory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveStory)(windows_core::Interface::as_raw(self), pstory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActiveStory)(windows_core::Interface::as_raw(self), pstory.param().abi()).ok() } pub unsafe fn GetMainStory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -779,15 +779,15 @@ impl ITextDocument2Old { } pub unsafe fn AttachMsgFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AttachMsgFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AttachMsgFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn SetEffectColor(&self, index: i32, cr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEffectColor)(windows_core::Interface::as_raw(self), index, cr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEffectColor)(windows_core::Interface::as_raw(self), index, cr.param().abi()).ok() } pub unsafe fn GetEffectColor(&self, index: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -867,9 +867,9 @@ impl ITextDocument2Old { } pub unsafe fn ReleaseCallManager(&self, pvoid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseCallManager)(windows_core::Interface::as_raw(self), pvoid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseCallManager)(windows_core::Interface::as_raw(self), pvoid.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -924,9 +924,9 @@ impl ITextFont { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDuplicate(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDuplicate)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDuplicate)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } pub unsafe fn CanChange(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -935,10 +935,10 @@ impl ITextFont { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, pfont: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pfont.into_param().abi(), &mut result__).map(|| result__) + (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), value).ok() @@ -1033,9 +1033,9 @@ impl ITextFont { } pub unsafe fn SetName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetOutline(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1205,9 +1205,9 @@ impl ITextFont2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDuplicate(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDuplicate)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDuplicate)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } pub unsafe fn CanChange(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1216,10 +1216,10 @@ impl ITextFont2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, pfont: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), pfont.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.Reset)(windows_core::Interface::as_raw(self), value).ok() @@ -1314,9 +1314,9 @@ impl ITextFont2 { } pub unsafe fn SetName(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetOutline(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1470,9 +1470,9 @@ impl ITextFont2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDuplicate2(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDuplicate2)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDuplicate2)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } pub unsafe fn GetLinkType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1557,10 +1557,10 @@ impl ITextFont2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual2(&self, pfont: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual2)(windows_core::Interface::as_raw(self), pfont.into_param().abi(), &mut result__).map(|| result__) + (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), value, mask).ok() @@ -1642,15 +1642,15 @@ impl ITextHost { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxReleaseDC(&self, hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxReleaseDC)(windows_core::Interface::as_raw(self), hdc.into_param().abi()) + (windows_core::Interface::vtable(self).TxReleaseDC)(windows_core::Interface::as_raw(self), hdc.param().abi()) } pub unsafe fn TxShowScrollBar(&self, fnbar: i32, fshow: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxShowScrollBar)(windows_core::Interface::as_raw(self), fnbar, fshow.into_param().abi()) + (windows_core::Interface::vtable(self).TxShowScrollBar)(windows_core::Interface::as_raw(self), fnbar, fshow.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxEnableScrollBar(&self, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL { @@ -1658,40 +1658,40 @@ impl ITextHost { } pub unsafe fn TxSetScrollRange(&self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxSetScrollRange)(windows_core::Interface::as_raw(self), fnbar, nminpos, nmaxpos, fredraw.into_param().abi()) + (windows_core::Interface::vtable(self).TxSetScrollRange)(windows_core::Interface::as_raw(self), fnbar, nminpos, nmaxpos, fredraw.param().abi()) } pub unsafe fn TxSetScrollPos(&self, fnbar: i32, npos: i32, fredraw: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxSetScrollPos)(windows_core::Interface::as_raw(self), fnbar, npos, fredraw.into_param().abi()) + (windows_core::Interface::vtable(self).TxSetScrollPos)(windows_core::Interface::as_raw(self), fnbar, npos, fredraw.param().abi()) } pub unsafe fn TxInvalidateRect(&self, prc: *mut super::super::super::Foundation::RECT, fmode: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxInvalidateRect)(windows_core::Interface::as_raw(self), prc, fmode.into_param().abi()) + (windows_core::Interface::vtable(self).TxInvalidateRect)(windows_core::Interface::as_raw(self), prc, fmode.param().abi()) } pub unsafe fn TxViewChange(&self, fupdate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxViewChange)(windows_core::Interface::as_raw(self), fupdate.into_param().abi()) + (windows_core::Interface::vtable(self).TxViewChange)(windows_core::Interface::as_raw(self), fupdate.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxCreateCaret(&self, hbmp: P0, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxCreateCaret)(windows_core::Interface::as_raw(self), hbmp.into_param().abi(), xwidth, yheight) + (windows_core::Interface::vtable(self).TxCreateCaret)(windows_core::Interface::as_raw(self), hbmp.param().abi(), xwidth, yheight) } pub unsafe fn TxShowCaret(&self, fshow: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxShowCaret)(windows_core::Interface::as_raw(self), fshow.into_param().abi()) + (windows_core::Interface::vtable(self).TxShowCaret)(windows_core::Interface::as_raw(self), fshow.param().abi()) } 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), x, y) @@ -1705,15 +1705,15 @@ impl ITextHost { #[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: P0, lprcupdate: *mut super::super::super::Foundation::RECT, fuscroll: super::super::WindowsAndMessaging::SCROLL_WINDOW_FLAGS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxScrollWindowEx)(windows_core::Interface::as_raw(self), dx, dy, lprcscroll, lprcclip, hrgnupdate.into_param().abi(), lprcupdate, fuscroll) + (windows_core::Interface::vtable(self).TxScrollWindowEx)(windows_core::Interface::as_raw(self), dx, dy, lprcscroll, lprcclip, hrgnupdate.param().abi(), lprcupdate, fuscroll) } pub unsafe fn TxSetCapture(&self, fcapture: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxSetCapture)(windows_core::Interface::as_raw(self), fcapture.into_param().abi()) + (windows_core::Interface::vtable(self).TxSetCapture)(windows_core::Interface::as_raw(self), fcapture.param().abi()) } pub unsafe fn TxSetFocus(&self) { (windows_core::Interface::vtable(self).TxSetFocus)(windows_core::Interface::as_raw(self)) @@ -1721,10 +1721,10 @@ impl ITextHost { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxSetCursor(&self, hcur: P0, ftext: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxSetCursor)(windows_core::Interface::as_raw(self), hcur.into_param().abi(), ftext.into_param().abi()) + (windows_core::Interface::vtable(self).TxSetCursor)(windows_core::Interface::as_raw(self), hcur.param().abi(), ftext.param().abi()) } 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), lppt) @@ -1794,9 +1794,9 @@ impl ITextHost { #[cfg(feature = "Win32_Globalization")] pub unsafe fn TxImmReleaseContext(&self, himc: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxImmReleaseContext)(windows_core::Interface::as_raw(self), himc.into_param().abi()) + (windows_core::Interface::vtable(self).TxImmReleaseContext)(windows_core::Interface::as_raw(self), himc.param().abi()) } pub unsafe fn TxGetSelectionBarWidth(&self, lselbarwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxGetSelectionBarWidth)(windows_core::Interface::as_raw(self), lselbarwidth).ok() @@ -1888,15 +1888,15 @@ impl ITextHost2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxReleaseDC(&self, hdc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxReleaseDC)(windows_core::Interface::as_raw(self), hdc.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxReleaseDC)(windows_core::Interface::as_raw(self), hdc.param().abi()) } pub unsafe fn TxShowScrollBar(&self, fnbar: i32, fshow: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxShowScrollBar)(windows_core::Interface::as_raw(self), fnbar, fshow.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxShowScrollBar)(windows_core::Interface::as_raw(self), fnbar, fshow.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxEnableScrollBar(&self, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL { @@ -1904,40 +1904,40 @@ impl ITextHost2 { } pub unsafe fn TxSetScrollRange(&self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxSetScrollRange)(windows_core::Interface::as_raw(self), fnbar, nminpos, nmaxpos, fredraw.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxSetScrollRange)(windows_core::Interface::as_raw(self), fnbar, nminpos, nmaxpos, fredraw.param().abi()) } pub unsafe fn TxSetScrollPos(&self, fnbar: i32, npos: i32, fredraw: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxSetScrollPos)(windows_core::Interface::as_raw(self), fnbar, npos, fredraw.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxSetScrollPos)(windows_core::Interface::as_raw(self), fnbar, npos, fredraw.param().abi()) } pub unsafe fn TxInvalidateRect(&self, prc: *mut super::super::super::Foundation::RECT, fmode: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxInvalidateRect)(windows_core::Interface::as_raw(self), prc, fmode.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxInvalidateRect)(windows_core::Interface::as_raw(self), prc, fmode.param().abi()) } pub unsafe fn TxViewChange(&self, fupdate: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxViewChange)(windows_core::Interface::as_raw(self), fupdate.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxViewChange)(windows_core::Interface::as_raw(self), fupdate.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxCreateCaret(&self, hbmp: P0, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxCreateCaret)(windows_core::Interface::as_raw(self), hbmp.into_param().abi(), xwidth, yheight) + (windows_core::Interface::vtable(self).base__.TxCreateCaret)(windows_core::Interface::as_raw(self), hbmp.param().abi(), xwidth, yheight) } pub unsafe fn TxShowCaret(&self, fshow: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxShowCaret)(windows_core::Interface::as_raw(self), fshow.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxShowCaret)(windows_core::Interface::as_raw(self), fshow.param().abi()) } pub unsafe fn TxSetCaretPos(&self, x: i32, y: i32) -> super::super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.TxSetCaretPos)(windows_core::Interface::as_raw(self), x, y) @@ -1951,15 +1951,15 @@ impl ITextHost2 { #[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: P0, lprcupdate: *mut super::super::super::Foundation::RECT, fuscroll: super::super::WindowsAndMessaging::SCROLL_WINDOW_FLAGS) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxScrollWindowEx)(windows_core::Interface::as_raw(self), dx, dy, lprcscroll, lprcclip, hrgnupdate.into_param().abi(), lprcupdate, fuscroll) + (windows_core::Interface::vtable(self).base__.TxScrollWindowEx)(windows_core::Interface::as_raw(self), dx, dy, lprcscroll, lprcclip, hrgnupdate.param().abi(), lprcupdate, fuscroll) } pub unsafe fn TxSetCapture(&self, fcapture: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxSetCapture)(windows_core::Interface::as_raw(self), fcapture.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxSetCapture)(windows_core::Interface::as_raw(self), fcapture.param().abi()) } pub unsafe fn TxSetFocus(&self) { (windows_core::Interface::vtable(self).base__.TxSetFocus)(windows_core::Interface::as_raw(self)) @@ -1967,10 +1967,10 @@ impl ITextHost2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxSetCursor(&self, hcur: P0, ftext: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxSetCursor)(windows_core::Interface::as_raw(self), hcur.into_param().abi(), ftext.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxSetCursor)(windows_core::Interface::as_raw(self), hcur.param().abi(), ftext.param().abi()) } pub unsafe fn TxScreenToClient(&self, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).base__.TxScreenToClient)(windows_core::Interface::as_raw(self), lppt) @@ -2040,9 +2040,9 @@ impl ITextHost2 { #[cfg(feature = "Win32_Globalization")] pub unsafe fn TxImmReleaseContext(&self, himc: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxImmReleaseContext)(windows_core::Interface::as_raw(self), himc.into_param().abi()) + (windows_core::Interface::vtable(self).base__.TxImmReleaseContext)(windows_core::Interface::as_raw(self), himc.param().abi()) } pub unsafe fn TxGetSelectionBarWidth(&self, lselbarwidth: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.TxGetSelectionBarWidth)(windows_core::Interface::as_raw(self), lselbarwidth).ok() @@ -2066,10 +2066,10 @@ impl ITextHost2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TxSetCursor2(&self, hcur: P0, btext: P1) -> super::super::WindowsAndMessaging::HCURSOR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxSetCursor2)(windows_core::Interface::as_raw(self), hcur.into_param().abi(), btext.into_param().abi()) + (windows_core::Interface::vtable(self).TxSetCursor2)(windows_core::Interface::as_raw(self), hcur.param().abi(), btext.param().abi()) } pub unsafe fn TxFreeTextServicesNotification(&self) { (windows_core::Interface::vtable(self).TxFreeTextServicesNotification)(windows_core::Interface::as_raw(self)) @@ -2083,10 +2083,10 @@ impl ITextHost2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn TxShowDropCaret(&self, fshow: P0, hdc: P1, prc: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxShowDropCaret)(windows_core::Interface::as_raw(self), fshow.into_param().abi(), hdc.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).TxShowDropCaret)(windows_core::Interface::as_raw(self), fshow.param().abi(), hdc.param().abi(), prc).ok() } pub unsafe fn TxDestroyCaret(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxDestroyCaret)(windows_core::Interface::as_raw(self)).ok() @@ -2134,9 +2134,9 @@ impl ITextPara { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDuplicate(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDuplicate)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDuplicate)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn CanChange(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2145,10 +2145,10 @@ impl ITextPara { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, ppara: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), ppara.into_param().abi(), &mut result__).map(|| result__) + (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), value).ok() @@ -2380,9 +2380,9 @@ impl ITextPara2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDuplicate(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDuplicate)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDuplicate)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn CanChange(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2391,10 +2391,10 @@ impl ITextPara2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, ppara: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), ppara.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.Reset)(windows_core::Interface::as_raw(self), value).ok() @@ -2561,9 +2561,9 @@ impl ITextPara2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDuplicate2(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDuplicate2)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDuplicate2)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn GetFontAlignment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2603,10 +2603,10 @@ impl ITextPara2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual2(&self, ppara: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual2)(windows_core::Interface::as_raw(self), ppara.into_param().abi(), &mut result__).map(|| result__) + (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), value, mask).ok() @@ -2657,9 +2657,9 @@ impl ITextRange { } pub unsafe fn SetText(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetChar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2681,9 +2681,9 @@ impl ITextRange { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormattedText(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormattedText)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormattedText)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn GetStart(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2707,9 +2707,9 @@ impl ITextRange { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFont(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPara(&self) -> windows_core::Result { @@ -2719,9 +2719,9 @@ impl ITextRange { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPara(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPara)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPara)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn GetStoryLength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2751,26 +2751,26 @@ impl ITextRange { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InRange(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InRange)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InStory(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InStory)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InStory)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Select(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self)).ok() @@ -2821,24 +2821,24 @@ impl ITextRange { } pub unsafe fn FindText(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindText)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextStart(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTextStart)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindTextStart)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextEnd(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTextEnd)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).FindTextEnd)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2978,9 +2978,9 @@ impl ITextRange2 { } pub unsafe fn SetText(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetText)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetText)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetChar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3002,9 +3002,9 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormattedText(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFormattedText)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFormattedText)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn GetStart(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3028,9 +3028,9 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFont(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetFont)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetFont)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPara(&self) -> windows_core::Result { @@ -3040,9 +3040,9 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPara(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetPara)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetPara)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn GetStoryLength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3072,26 +3072,26 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InRange(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.InRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.InRange)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InStory(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.InStory)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.InStory)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsEqual)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsEqual)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Select(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Select)(windows_core::Interface::as_raw(self)).ok() @@ -3142,24 +3142,24 @@ impl ITextRange2 { } pub unsafe fn FindText(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindText)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.FindText)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextStart(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindTextStart)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.FindTextStart)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextEnd(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.FindTextEnd)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.FindTextEnd)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3237,9 +3237,9 @@ impl ITextRange2 { } pub unsafe fn TypeText(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TypeText)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.TypeText)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetCch(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3270,9 +3270,9 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFont2(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFont2)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFont2)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFormattedText2(&self) -> windows_core::Result { @@ -3282,9 +3282,9 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormattedText2(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormattedText2)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFormattedText2)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn GetGravity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3301,9 +3301,9 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPara2(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPara2)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPara2)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRow(&self) -> windows_core::Result { @@ -3324,9 +3324,9 @@ impl ITextRange2 { } pub unsafe fn SetURL(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AddSubrange)(windows_core::Interface::as_raw(self), cp1, cp2, activate).ok() @@ -3340,10 +3340,10 @@ impl ITextRange2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Find(&self, prange: P0, count: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Find)(windows_core::Interface::as_raw(self), prange.into_param().abi(), count, 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), pchar, offset).ok() @@ -3388,9 +3388,9 @@ impl ITextRange2 { } pub unsafe fn SetText2(&self, flags: i32, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText2)(windows_core::Interface::as_raw(self), flags, bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetText2)(windows_core::Interface::as_raw(self), flags, bstr.param().abi()).ok() } pub unsafe fn UnicodeToHex(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnicodeToHex)(windows_core::Interface::as_raw(self)).ok() @@ -3400,18 +3400,18 @@ impl ITextRange2 { } pub unsafe fn GetMathFunctionType(&self, bstr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMathFunctionType)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMathFunctionType)(windows_core::Interface::as_raw(self), bstr.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertImage(&self, width: i32, height: i32, ascent: i32, r#type: i32, bstralttext: P0, pstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertImage)(windows_core::Interface::as_raw(self), width, height, ascent, r#type, bstralttext.into_param().abi(), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InsertImage)(windows_core::Interface::as_raw(self), width, height, ascent, r#type, bstralttext.param().abi(), pstream.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3647,10 +3647,10 @@ impl ITextRow { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, prow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), prow.into_param().abi(), &mut result__).map(|| result__) + (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), value).ok() @@ -3725,9 +3725,9 @@ impl ITextSelection { } pub unsafe fn SetText(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetText)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetText)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetChar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3749,9 +3749,9 @@ impl ITextSelection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormattedText(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFormattedText)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFormattedText)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn GetStart(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3775,9 +3775,9 @@ impl ITextSelection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFont(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFont)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFont)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPara(&self) -> windows_core::Result { @@ -3787,9 +3787,9 @@ impl ITextSelection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPara(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPara)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPara)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn GetStoryLength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3819,26 +3819,26 @@ impl ITextSelection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InRange(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.InRange)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InStory(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.InStory)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.InStory)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqual)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Select(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Select)(windows_core::Interface::as_raw(self)).ok() @@ -3889,24 +3889,24 @@ impl ITextSelection { } pub unsafe fn FindText(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindText)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.FindText)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextStart(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindTextStart)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.FindTextStart)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextEnd(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindTextEnd)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.FindTextEnd)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3984,9 +3984,9 @@ impl ITextSelection { } pub unsafe fn TypeText(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TypeText)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TypeText)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4016,9 +4016,9 @@ impl ITextSelection2 { } pub unsafe fn SetText(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetText)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetText)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetChar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4040,9 +4040,9 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormattedText(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFormattedText)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFormattedText)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn GetStart(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4066,9 +4066,9 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFont(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetFont)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetFont)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetPara(&self) -> windows_core::Result { @@ -4078,9 +4078,9 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPara(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetPara)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetPara)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } pub unsafe fn GetStoryLength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4110,26 +4110,26 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InRange(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.InRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.InRange)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InStory(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.InStory)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.InStory)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsEqual(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsEqual)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsEqual)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Select(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.Select)(windows_core::Interface::as_raw(self)).ok() @@ -4180,24 +4180,24 @@ impl ITextSelection2 { } pub unsafe fn FindText(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindText)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.FindText)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextStart(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindTextStart)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.FindTextStart)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn FindTextEnd(&self, bstr: P0, count: i32, flags: tomConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.FindTextEnd)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.FindTextEnd)(windows_core::Interface::as_raw(self), bstr.param().abi(), count, flags, &mut result__).map(|| result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4275,9 +4275,9 @@ impl ITextSelection2 { } pub unsafe fn TypeText(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.TypeText)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.TypeText)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn GetCch(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4308,9 +4308,9 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFont2(&self, pfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFont2)(windows_core::Interface::as_raw(self), pfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFont2)(windows_core::Interface::as_raw(self), pfont.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFormattedText2(&self) -> windows_core::Result { @@ -4320,9 +4320,9 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormattedText2(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFormattedText2)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFormattedText2)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn GetGravity(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4339,9 +4339,9 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPara2(&self, ppara: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPara2)(windows_core::Interface::as_raw(self), ppara.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPara2)(windows_core::Interface::as_raw(self), ppara.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRow(&self) -> windows_core::Result { @@ -4362,9 +4362,9 @@ impl ITextSelection2 { } pub unsafe fn SetURL(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.AddSubrange)(windows_core::Interface::as_raw(self), cp1, cp2, activate).ok() @@ -4378,10 +4378,10 @@ impl ITextSelection2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Find(&self, prange: P0, count: i32, flags: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Find)(windows_core::Interface::as_raw(self), prange.into_param().abi(), count, flags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.GetChar2)(windows_core::Interface::as_raw(self), pchar, offset).ok() @@ -4426,9 +4426,9 @@ impl ITextSelection2 { } pub unsafe fn SetText2(&self, flags: i32, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetText2)(windows_core::Interface::as_raw(self), flags, bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetText2)(windows_core::Interface::as_raw(self), flags, bstr.param().abi()).ok() } pub unsafe fn UnicodeToHex(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UnicodeToHex)(windows_core::Interface::as_raw(self)).ok() @@ -4438,18 +4438,18 @@ impl ITextSelection2 { } pub unsafe fn GetMathFunctionType(&self, bstr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetMathFunctionType)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetMathFunctionType)(windows_core::Interface::as_raw(self), bstr.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertImage(&self, width: i32, height: i32, ascent: i32, r#type: i32, bstralttext: P0, pstream: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InsertImage)(windows_core::Interface::as_raw(self), width, height, ascent, r#type, bstralttext.into_param().abi(), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InsertImage)(windows_core::Interface::as_raw(self), width, height, ascent, r#type, bstralttext.param().abi(), pstream.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4462,18 +4462,18 @@ windows_core::imp::interface_hierarchy!(ITextServices, windows_core::IUnknown); impl ITextServices { pub unsafe fn TxSendMessage(&self, msg: u32, wparam: P0, lparam: P1, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxSendMessage)(windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), plresult).ok() + (windows_core::Interface::vtable(self).TxSendMessage)(windows_core::Interface::as_raw(self), msg, wparam.param().abi(), lparam.param().abi(), 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: P0, hictargetdev: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxDraw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), lprcbounds, lprcwbounds, lprcupdate, pfncontinue, dwcontinue, lviewid).ok() + (windows_core::Interface::vtable(self).TxDraw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.param().abi(), hictargetdev.param().abi(), lprcbounds, lprcwbounds, 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), plmin, plmax, plpos, plpage, pfenabled).ok() @@ -4484,18 +4484,18 @@ 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: P0, hictargetdev: P1, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTxSetCursor)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), lprcclient, x, y).ok() + (windows_core::Interface::vtable(self).OnTxSetCursor)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.param().abi(), hictargetdev.param().abi(), 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: P0, hictargetdev: P1, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32, phitresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxQueryHitPoint)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), lprcclient, x, y, phitresult).ok() + (windows_core::Interface::vtable(self).TxQueryHitPoint)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.param().abi(), hictargetdev.param().abi(), lprcclient, x, y, 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), prcclient).ok() @@ -4514,9 +4514,9 @@ impl ITextServices { } pub unsafe fn TxSetText(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxSetText)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TxSetText)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn TxGetCurTargetX(&self, param0: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).TxGetCurTargetX)(windows_core::Interface::as_raw(self), param0).ok() @@ -4527,10 +4527,10 @@ impl ITextServices { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn TxGetNaturalSize(&self, dwaspect: u32, hdcdraw: P0, hictargetdev: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxGetNaturalSize)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), ptd, dwmode, psizelextent, pwidth, pheight).ok() + (windows_core::Interface::vtable(self).TxGetNaturalSize)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw.param().abi(), hictargetdev.param().abi(), ptd, dwmode, psizelextent, pwidth, pheight).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn TxGetDropTarget(&self) -> windows_core::Result { @@ -4586,18 +4586,18 @@ windows_core::imp::interface_hierarchy!(ITextServices2, windows_core::IUnknown, impl ITextServices2 { pub unsafe fn TxSendMessage(&self, msg: u32, wparam: P0, lparam: P1, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxSendMessage)(windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), plresult).ok() + (windows_core::Interface::vtable(self).base__.TxSendMessage)(windows_core::Interface::as_raw(self), msg, wparam.param().abi(), lparam.param().abi(), 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: P0, hictargetdev: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxDraw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), lprcbounds, lprcwbounds, lprcupdate, pfncontinue, dwcontinue, lviewid).ok() + (windows_core::Interface::vtable(self).base__.TxDraw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.param().abi(), hictargetdev.param().abi(), lprcbounds, lprcwbounds, 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).base__.TxGetHScroll)(windows_core::Interface::as_raw(self), plmin, plmax, plpos, plpage, pfenabled).ok() @@ -4608,18 +4608,18 @@ impl ITextServices2 { #[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: P0, hictargetdev: P1, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnTxSetCursor)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), lprcclient, x, y).ok() + (windows_core::Interface::vtable(self).base__.OnTxSetCursor)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.param().abi(), hictargetdev.param().abi(), 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: P0, hictargetdev: P1, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32, phitresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxQueryHitPoint)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), lprcclient, x, y, phitresult).ok() + (windows_core::Interface::vtable(self).base__.TxQueryHitPoint)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect, ptd, hdcdraw.param().abi(), hictargetdev.param().abi(), lprcclient, x, y, phitresult).ok() } pub unsafe fn OnTxInPlaceActivate(&self, prcclient: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnTxInPlaceActivate)(windows_core::Interface::as_raw(self), prcclient).ok() @@ -4638,9 +4638,9 @@ impl ITextServices2 { } pub unsafe fn TxSetText(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxSetText)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.TxSetText)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn TxGetCurTargetX(&self, param0: *mut i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.TxGetCurTargetX)(windows_core::Interface::as_raw(self), param0).ok() @@ -4651,10 +4651,10 @@ impl ITextServices2 { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn TxGetNaturalSize(&self, dwaspect: u32, hdcdraw: P0, hictargetdev: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TxGetNaturalSize)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), ptd, dwmode, psizelextent, pwidth, pheight).ok() + (windows_core::Interface::vtable(self).base__.TxGetNaturalSize)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw.param().abi(), hictargetdev.param().abi(), ptd, dwmode, psizelextent, pwidth, pheight).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn TxGetDropTarget(&self) -> windows_core::Result { @@ -4670,17 +4670,17 @@ impl ITextServices2 { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn TxGetNaturalSize2(&self, dwaspect: u32, hdcdraw: P0, hictargetdev: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TxGetNaturalSize2)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw.into_param().abi(), hictargetdev.into_param().abi(), ptd, dwmode, psizelextent, pwidth, pheight, pascent).ok() + (windows_core::Interface::vtable(self).TxGetNaturalSize2)(windows_core::Interface::as_raw(self), dwaspect, hdcdraw.param().abi(), hictargetdev.param().abi(), ptd, dwmode, psizelextent, pwidth, pheight, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TxDrawD2D)(windows_core::Interface::as_raw(self), prendertarget.into_param().abi(), lprcbounds, lprcupdate, lviewid).ok() + (windows_core::Interface::vtable(self).TxDrawD2D)(windows_core::Interface::as_raw(self), prendertarget.param().abi(), lprcbounds, lprcupdate, lviewid).ok() } } #[repr(C)] @@ -4735,18 +4735,18 @@ impl ITextStory { } pub unsafe fn SetFormattedText(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormattedText)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (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), r#type, value).ok() } pub unsafe fn SetText(&self, flags: i32, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), flags, bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), flags, bstr.param().abi()).ok() } } #[repr(C)] @@ -4850,39 +4850,39 @@ impl ITextStrings { } pub unsafe fn Add(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Append(&self, prange: P0, istring: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), prange.into_param().abi(), 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), istring).ok() } pub unsafe fn CatTop2(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CatTop2)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CatTop2)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteRange(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteRange)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteRange)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EncodeFunction(&self, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EncodeFunction)(windows_core::Interface::as_raw(self), r#type, align, char, char1, char2, count, texstyle, ccol, prange.into_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__ = std::mem::zeroed(); @@ -4896,9 +4896,9 @@ impl ITextStrings { } pub unsafe fn PrefixTop(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrefixTop)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PrefixTop)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn Remove(&self, istring: i32, cstring: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), istring, cstring).ok() @@ -4906,10 +4906,10 @@ impl ITextStrings { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFormattedText(&self, pranged: P0, pranges: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFormattedText)(windows_core::Interface::as_raw(self), pranged.into_param().abi(), pranges.into_param().abi()).ok() + (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), istring, cp).ok() @@ -4917,10 +4917,10 @@ impl ITextStrings { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SuffixTop(&self, bstr: P0, prange: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SuffixTop)(windows_core::Interface::as_raw(self), bstr.into_param().abi(), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SuffixTop)(windows_core::Interface::as_raw(self), bstr.param().abi(), prange.param().abi()).ok() } pub unsafe fn Swap(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Swap)(windows_core::Interface::as_raw(self)).ok() 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 d874caa423..677ca0f66f 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs @@ -6,28 +6,28 @@ pub mod RichEdit; #[inline] pub unsafe fn BeginBufferedAnimation(hwnd: P0, hdctarget: P1, 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hdctarget.into_param().abi(), prctarget, dwformat, core::mem::transmute(ppaintparams.unwrap_or(std::ptr::null())), panimationparams, phdcfrom, phdcto) + BeginBufferedAnimation(hwnd.param().abi(), hdctarget.param().abi(), prctarget, dwformat, core::mem::transmute(ppaintparams.unwrap_or(std::ptr::null())), panimationparams, phdcfrom, phdcto) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn BeginBufferedPaint(hdctarget: P0, prctarget: *const super::super::Foundation::RECT, dwformat: BP_BUFFERFORMAT, ppaintparams: Option<*const BP_PAINTPARAMS>, phdc: *mut super::super::Graphics::Gdi::HDC) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdctarget.into_param().abi(), prctarget, dwformat, core::mem::transmute(ppaintparams.unwrap_or(std::ptr::null())), phdc) + BeginBufferedPaint(hdctarget.param().abi(), prctarget, dwformat, core::mem::transmute(ppaintparams.unwrap_or(std::ptr::null())), phdc) } #[inline] pub unsafe fn BeginPanningFeedback(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn BeginPanningFeedback(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - BeginPanningFeedback(hwnd.into_param().abi()) + BeginPanningFeedback(hwnd.param().abi()) } #[inline] pub unsafe fn BufferedPaintClear(hbufferedpaint: isize, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { @@ -43,11 +43,11 @@ pub unsafe fn BufferedPaintInit() -> windows_core::Result<()> { #[inline] pub unsafe fn BufferedPaintRenderAnimation(hwnd: P0, hdctarget: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintRenderAnimation(hwnd : super::super::Foundation:: HWND, hdctarget : super::super::Graphics::Gdi:: HDC) -> super::super::Foundation:: BOOL); - BufferedPaintRenderAnimation(hwnd.into_param().abi(), hdctarget.into_param().abi()) + BufferedPaintRenderAnimation(hwnd.param().abi(), hdctarget.param().abi()) } #[inline] pub unsafe fn BufferedPaintSetAlpha(hbufferedpaint: isize, prc: Option<*const super::super::Foundation::RECT>, alpha: u8) -> windows_core::Result<()> { @@ -57,10 +57,10 @@ pub unsafe fn BufferedPaintSetAlpha(hbufferedpaint: isize, prc: Option<*const su #[inline] pub unsafe fn BufferedPaintStopAllAnimations(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintStopAllAnimations(hwnd : super::super::Foundation:: HWND) -> windows_core::HRESULT); - BufferedPaintStopAllAnimations(hwnd.into_param().abi()).ok() + BufferedPaintStopAllAnimations(hwnd.param().abi()).ok() } #[inline] pub unsafe fn BufferedPaintUnInit() -> windows_core::Result<()> { @@ -70,35 +70,35 @@ pub unsafe fn BufferedPaintUnInit() -> windows_core::Result<()> { #[inline] pub unsafe fn CheckDlgButton(hdlg: P0, nidbutton: i32, ucheck: DLG_BUTTON_CHECK_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdlg.into_param().abi(), nidbutton, ucheck).ok() + CheckDlgButton(hdlg.param().abi(), nidbutton, ucheck).ok() } #[inline] pub unsafe fn CheckRadioButton(hdlg: P0, nidfirstbutton: i32, nidlastbutton: i32, nidcheckbutton: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CheckRadioButton(hdlg : super::super::Foundation:: HWND, nidfirstbutton : i32, nidlastbutton : i32, nidcheckbutton : i32) -> super::super::Foundation:: BOOL); - CheckRadioButton(hdlg.into_param().abi(), nidfirstbutton, nidlastbutton, nidcheckbutton).ok() + CheckRadioButton(hdlg.param().abi(), nidfirstbutton, nidlastbutton, nidcheckbutton).ok() } #[inline] pub unsafe fn CloseThemeData(htheme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn CloseThemeData(htheme : HTHEME) -> windows_core::HRESULT); - CloseThemeData(htheme.into_param().abi()).ok() + CloseThemeData(htheme.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateMappedBitmap(hinstance: P0, idbitmap: isize, wflags: u32, lpcolormap: Option<*const COLORMAP>, inummaps: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hinstance.into_param().abi(), idbitmap, wflags, core::mem::transmute(lpcolormap.unwrap_or(std::ptr::null())), inummaps); + let result__ = CreateMappedBitmap(hinstance.param().abi(), idbitmap, wflags, core::mem::transmute(lpcolormap.unwrap_or(std::ptr::null())), inummaps); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] @@ -116,20 +116,20 @@ pub unsafe fn CreatePropertySheetPageW(constpropsheetpagepointer: *mut PROPSHEET #[inline] pub unsafe fn CreateStatusWindowA(style: i32, lpsztext: P0, hwndparent: P1, wid: u32) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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); - CreateStatusWindowA(style, lpsztext.into_param().abi(), hwndparent.into_param().abi(), wid) + CreateStatusWindowA(style, lpsztext.param().abi(), hwndparent.param().abi(), wid) } #[inline] pub unsafe fn CreateStatusWindowW(style: i32, lpsztext: P0, hwndparent: P1, wid: u32) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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); - CreateStatusWindowW(style, lpsztext.into_param().abi(), hwndparent.into_param().abi(), wid) + CreateStatusWindowW(style, lpsztext.param().abi(), hwndparent.param().abi(), wid) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -141,30 +141,30 @@ pub unsafe fn CreateSyntheticPointerDevice(pointertype: super::WindowsAndMessagi #[inline] pub unsafe fn CreateToolbarEx(hwnd: P0, ws: u32, wid: u32, nbitmaps: i32, hbminst: P1, wbmid: usize, lpbuttons: *mut TBBUTTON, inumbuttons: i32, dxbutton: i32, dybutton: i32, dxbitmap: i32, dybitmap: i32, ustructsize: u32) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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); - CreateToolbarEx(hwnd.into_param().abi(), ws, wid, nbitmaps, hbminst.into_param().abi(), wbmid, lpbuttons, inumbuttons, dxbutton, dybutton, dxbitmap, dybitmap, ustructsize) + CreateToolbarEx(hwnd.param().abi(), ws, wid, nbitmaps, hbminst.param().abi(), wbmid, lpbuttons, inumbuttons, dxbutton, dybutton, dxbitmap, dybitmap, ustructsize) } #[inline] pub unsafe fn CreateUpDownControl(dwstyle: u32, x: i32, y: i32, cx: i32, cy: i32, hparent: P0, nid: i32, hinst: P1, hbuddy: P2, nupper: i32, nlower: i32, npos: i32) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(dwstyle, x, y, cx, cy, hparent.into_param().abi(), nid, hinst.into_param().abi(), hbuddy.into_param().abi(), nupper, nlower, npos) + CreateUpDownControl(dwstyle, x, y, cx, cy, hparent.param().abi(), nid, hinst.param().abi(), hbuddy.param().abi(), nupper, nlower, npos) } #[inline] pub unsafe fn DPA_Clone(hdpa: P0, hdpanew: P1) -> HDPA where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_Clone(hdpa : HDPA, hdpanew : HDPA) -> HDPA); - DPA_Clone(hdpa.into_param().abi(), hdpanew.into_param().abi()) + DPA_Clone(hdpa.param().abi(), hdpanew.param().abi()) } #[inline] pub unsafe fn DPA_Create(citemgrow: i32) -> HDPA { @@ -174,153 +174,153 @@ pub unsafe fn DPA_Create(citemgrow: i32) -> HDPA { #[inline] pub unsafe fn DPA_CreateEx(cpgrow: i32, hheap: P0) -> HDPA where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_CreateEx(cpgrow : i32, hheap : super::super::Foundation:: HANDLE) -> HDPA); - DPA_CreateEx(cpgrow, hheap.into_param().abi()) + DPA_CreateEx(cpgrow, hheap.param().abi()) } #[inline] pub unsafe fn DPA_DeleteAllPtrs(hdpa: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_DeleteAllPtrs(hdpa : HDPA) -> super::super::Foundation:: BOOL); - DPA_DeleteAllPtrs(hdpa.into_param().abi()) + DPA_DeleteAllPtrs(hdpa.param().abi()) } #[inline] pub unsafe fn DPA_DeletePtr(hdpa: P0, i: i32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_DeletePtr(hdpa : HDPA, i : i32) -> *mut core::ffi::c_void); - DPA_DeletePtr(hdpa.into_param().abi(), i) + DPA_DeletePtr(hdpa.param().abi(), i) } #[inline] pub unsafe fn DPA_Destroy(hdpa: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_Destroy(hdpa : HDPA) -> super::super::Foundation:: BOOL); - DPA_Destroy(hdpa.into_param().abi()) + DPA_Destroy(hdpa.param().abi()) } #[inline] pub unsafe fn DPA_DestroyCallback(hdpa: P0, pfncb: PFNDAENUMCALLBACK, pdata: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_DestroyCallback(hdpa : HDPA, pfncb : PFNDAENUMCALLBACK, pdata : *const core::ffi::c_void)); - DPA_DestroyCallback(hdpa.into_param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) + DPA_DestroyCallback(hdpa.param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DPA_EnumCallback(hdpa: P0, pfncb: PFNDAENUMCALLBACK, pdata: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_EnumCallback(hdpa : HDPA, pfncb : PFNDAENUMCALLBACK, pdata : *const core::ffi::c_void)); - DPA_EnumCallback(hdpa.into_param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) + DPA_EnumCallback(hdpa.param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DPA_GetPtr(hdpa: P0, i: isize) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_GetPtr(hdpa : HDPA, i : isize) -> *mut core::ffi::c_void); - DPA_GetPtr(hdpa.into_param().abi(), i) + DPA_GetPtr(hdpa.param().abi(), i) } #[inline] pub unsafe fn DPA_GetPtrIndex(hdpa: P0, p: Option<*const core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_GetPtrIndex(hdpa : HDPA, p : *const core::ffi::c_void) -> i32); - DPA_GetPtrIndex(hdpa.into_param().abi(), core::mem::transmute(p.unwrap_or(std::ptr::null()))) + DPA_GetPtrIndex(hdpa.param().abi(), core::mem::transmute(p.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DPA_GetSize(hdpa: P0) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_GetSize(hdpa : HDPA) -> u64); - DPA_GetSize(hdpa.into_param().abi()) + DPA_GetSize(hdpa.param().abi()) } #[inline] pub unsafe fn DPA_Grow(pdpa: P0, cp: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_Grow(pdpa : HDPA, cp : i32) -> super::super::Foundation:: BOOL); - DPA_Grow(pdpa.into_param().abi(), cp) + DPA_Grow(pdpa.param().abi(), cp) } #[inline] pub unsafe fn DPA_InsertPtr(hdpa: P0, i: i32, p: Option<*const core::ffi::c_void>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_InsertPtr(hdpa : HDPA, i : i32, p : *const core::ffi::c_void) -> i32); - DPA_InsertPtr(hdpa.into_param().abi(), i, core::mem::transmute(p.unwrap_or(std::ptr::null()))) + DPA_InsertPtr(hdpa.param().abi(), i, core::mem::transmute(p.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn DPA_LoadStream(phdpa: *mut HDPA, pfn: PFNDPASTREAM, pstream: P0, pvinstdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(phdpa, pfn, pstream.into_param().abi(), core::mem::transmute(pvinstdata.unwrap_or(std::ptr::null()))).ok() + DPA_LoadStream(phdpa, pfn, pstream.param().abi(), core::mem::transmute(pvinstdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn DPA_Merge(hdpadest: P0, hdpasrc: P1, dwflags: u32, pfncompare: PFNDACOMPARE, pfnmerge: PFNDPAMERGE, lparam: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdpadest.into_param().abi(), hdpasrc.into_param().abi(), dwflags, pfncompare, pfnmerge, lparam.into_param().abi()) + DPA_Merge(hdpadest.param().abi(), hdpasrc.param().abi(), dwflags, pfncompare, pfnmerge, lparam.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn DPA_SaveStream(hdpa: P0, pfn: PFNDPASTREAM, pstream: P1, pvinstdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdpa.into_param().abi(), pfn, pstream.into_param().abi(), core::mem::transmute(pvinstdata.unwrap_or(std::ptr::null()))).ok() + DPA_SaveStream(hdpa.param().abi(), pfn, pstream.param().abi(), core::mem::transmute(pvinstdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn DPA_Search(hdpa: P0, pfind: Option<*const core::ffi::c_void>, istart: i32, pfncompare: PFNDACOMPARE, lparam: P1, options: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdpa.into_param().abi(), core::mem::transmute(pfind.unwrap_or(std::ptr::null())), istart, pfncompare, lparam.into_param().abi(), options) + DPA_Search(hdpa.param().abi(), core::mem::transmute(pfind.unwrap_or(std::ptr::null())), istart, pfncompare, lparam.param().abi(), options) } #[inline] pub unsafe fn DPA_SetPtr(hdpa: P0, i: i32, p: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdpa.into_param().abi(), i, core::mem::transmute(p.unwrap_or(std::ptr::null()))) + DPA_SetPtr(hdpa.param().abi(), i, core::mem::transmute(p.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DPA_Sort(hdpa: P0, pfncompare: PFNDACOMPARE, lparam: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DPA_Sort(hdpa : HDPA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - DPA_Sort(hdpa.into_param().abi(), pfncompare, lparam.into_param().abi()) + DPA_Sort(hdpa.param().abi(), pfncompare, lparam.param().abi()) } #[inline] pub unsafe fn DSA_Clone(hdsa: P0) -> HDSA where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_Clone(hdsa : HDSA) -> HDSA); - DSA_Clone(hdsa.into_param().abi()) + DSA_Clone(hdsa.param().abi()) } #[inline] pub unsafe fn DSA_Create(cbitem: i32, citemgrow: i32) -> HDSA { @@ -330,341 +330,341 @@ pub unsafe fn DSA_Create(cbitem: i32, citemgrow: i32) -> HDSA { #[inline] pub unsafe fn DSA_DeleteAllItems(hdsa: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteAllItems(hdsa : HDSA) -> super::super::Foundation:: BOOL); - DSA_DeleteAllItems(hdsa.into_param().abi()) + DSA_DeleteAllItems(hdsa.param().abi()) } #[inline] pub unsafe fn DSA_DeleteItem(hdsa: P0, i: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteItem(hdsa : HDSA, i : i32) -> super::super::Foundation:: BOOL); - DSA_DeleteItem(hdsa.into_param().abi(), i) + DSA_DeleteItem(hdsa.param().abi(), i) } #[inline] pub unsafe fn DSA_Destroy(hdsa: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_Destroy(hdsa : HDSA) -> super::super::Foundation:: BOOL); - DSA_Destroy(hdsa.into_param().abi()) + DSA_Destroy(hdsa.param().abi()) } #[inline] pub unsafe fn DSA_DestroyCallback(hdsa: P0, pfncb: PFNDAENUMCALLBACK, pdata: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_DestroyCallback(hdsa : HDSA, pfncb : PFNDAENUMCALLBACK, pdata : *const core::ffi::c_void)); - DSA_DestroyCallback(hdsa.into_param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) + DSA_DestroyCallback(hdsa.param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DSA_EnumCallback(hdsa: P0, pfncb: PFNDAENUMCALLBACK, pdata: Option<*const core::ffi::c_void>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_EnumCallback(hdsa : HDSA, pfncb : PFNDAENUMCALLBACK, pdata : *const core::ffi::c_void)); - DSA_EnumCallback(hdsa.into_param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) + DSA_EnumCallback(hdsa.param().abi(), pfncb, core::mem::transmute(pdata.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DSA_GetItem(hdsa: P0, i: i32, pitem: *mut core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdsa.into_param().abi(), i, pitem) + DSA_GetItem(hdsa.param().abi(), i, pitem) } #[inline] pub unsafe fn DSA_GetItemPtr(hdsa: P0, i: i32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_GetItemPtr(hdsa : HDSA, i : i32) -> *mut core::ffi::c_void); - DSA_GetItemPtr(hdsa.into_param().abi(), i) + DSA_GetItemPtr(hdsa.param().abi(), i) } #[inline] pub unsafe fn DSA_GetSize(hdsa: P0) -> u64 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_GetSize(hdsa : HDSA) -> u64); - DSA_GetSize(hdsa.into_param().abi()) + DSA_GetSize(hdsa.param().abi()) } #[inline] pub unsafe fn DSA_InsertItem(hdsa: P0, i: i32, pitem: *const core::ffi::c_void) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_InsertItem(hdsa : HDSA, i : i32, pitem : *const core::ffi::c_void) -> i32); - DSA_InsertItem(hdsa.into_param().abi(), i, pitem) + DSA_InsertItem(hdsa.param().abi(), i, pitem) } #[inline] pub unsafe fn DSA_SetItem(hdsa: P0, i: i32, pitem: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdsa.into_param().abi(), i, pitem) + DSA_SetItem(hdsa.param().abi(), i, pitem) } #[inline] pub unsafe fn DSA_Sort(pdsa: P0, pfncompare: PFNDACOMPARE, lparam: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DSA_Sort(pdsa : HDSA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - DSA_Sort(pdsa.into_param().abi(), pfncompare, lparam.into_param().abi()) + DSA_Sort(pdsa.param().abi(), pfncompare, lparam.param().abi()) } #[inline] pub unsafe fn DestroyPropertySheetPage(param0: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DestroyPropertySheetPage(param0 : HPROPSHEETPAGE) -> super::super::Foundation:: BOOL); - DestroyPropertySheetPage(param0.into_param().abi()) + DestroyPropertySheetPage(param0.param().abi()) } #[inline] pub unsafe fn DestroySyntheticPointerDevice(device: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DestroySyntheticPointerDevice(device : HSYNTHETICPOINTERDEVICE)); - DestroySyntheticPointerDevice(device.into_param().abi()) + DestroySyntheticPointerDevice(device.param().abi()) } #[inline] pub unsafe fn DlgDirListA(hdlg: P0, lppathspec: windows_core::PSTR, nidlistbox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdlg.into_param().abi(), core::mem::transmute(lppathspec), nidlistbox, nidstaticpath, ufiletype) + DlgDirListA(hdlg.param().abi(), core::mem::transmute(lppathspec), nidlistbox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirListComboBoxA(hdlg: P0, lppathspec: windows_core::PSTR, nidcombobox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdlg.into_param().abi(), core::mem::transmute(lppathspec), nidcombobox, nidstaticpath, ufiletype) + DlgDirListComboBoxA(hdlg.param().abi(), core::mem::transmute(lppathspec), nidcombobox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirListComboBoxW(hdlg: P0, lppathspec: windows_core::PWSTR, nidcombobox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdlg.into_param().abi(), core::mem::transmute(lppathspec), nidcombobox, nidstaticpath, ufiletype) + DlgDirListComboBoxW(hdlg.param().abi(), core::mem::transmute(lppathspec), nidcombobox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirListW(hdlg: P0, lppathspec: windows_core::PWSTR, nidlistbox: i32, nidstaticpath: i32, ufiletype: DLG_DIR_LIST_FILE_TYPE) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdlg.into_param().abi(), core::mem::transmute(lppathspec), nidlistbox, nidstaticpath, ufiletype) + DlgDirListW(hdlg.param().abi(), core::mem::transmute(lppathspec), nidlistbox, nidstaticpath, ufiletype) } #[inline] pub unsafe fn DlgDirSelectComboBoxExA(hwnddlg: P0, lpstring: &mut [u8], idcombobox: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnddlg.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() + DlgDirSelectComboBoxExA(hwnddlg.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() } #[inline] pub unsafe fn DlgDirSelectComboBoxExW(hwnddlg: P0, lpstring: &mut [u16], idcombobox: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnddlg.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() + DlgDirSelectComboBoxExW(hwnddlg.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() } #[inline] pub unsafe fn DlgDirSelectExA(hwnddlg: P0, lpstring: &mut [u8], idlistbox: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnddlg.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() + DlgDirSelectExA(hwnddlg.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() } #[inline] pub unsafe fn DlgDirSelectExW(hwnddlg: P0, lpstring: &mut [u16], idlistbox: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnddlg.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() + DlgDirSelectExW(hwnddlg.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() } #[inline] pub unsafe fn DrawInsert(handparent: P0, hlb: P1, nitem: i32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn DrawInsert(handparent : super::super::Foundation:: HWND, hlb : super::super::Foundation:: HWND, nitem : i32)); - DrawInsert(handparent.into_param().abi(), hlb.into_param().abi(), nitem) + DrawInsert(handparent.param().abi(), hlb.param().abi(), nitem) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawShadowText(hdc: P0, psztext: &[u16], prc: *const super::super::Foundation::RECT, dwflags: u32, crtext: P1, crshadow: P2, ixoffset: i32, iyoffset: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), prc, dwflags, crtext.into_param().abi(), crshadow.into_param().abi(), ixoffset, iyoffset) + DrawShadowText(hdc.param().abi(), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), prc, dwflags, crtext.param().abi(), crshadow.param().abi(), ixoffset, iyoffset) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawStatusTextA(hdc: P0, lprc: *mut super::super::Foundation::RECT, psztext: P1, uflags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdc.into_param().abi(), lprc, psztext.into_param().abi(), uflags) + DrawStatusTextA(hdc.param().abi(), lprc, psztext.param().abi(), uflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawStatusTextW(hdc: P0, lprc: *mut super::super::Foundation::RECT, psztext: P1, uflags: u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdc.into_param().abi(), lprc, psztext.into_param().abi(), uflags) + DrawStatusTextW(hdc.param().abi(), lprc, psztext.param().abi(), uflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeBackground(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT, pcliprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, prect, core::mem::transmute(pcliprect.unwrap_or(std::ptr::null()))).ok() + DrawThemeBackground(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, prect, core::mem::transmute(pcliprect.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeBackgroundEx(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT, poptions: Option<*const DTBGOPTS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, prect, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() + DrawThemeBackgroundEx(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, prect, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeEdge(htheme: P0, hdc: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, pdestrect, uedge, uflags, core::mem::transmute(pcontentrect.unwrap_or(std::ptr::null_mut()))).ok() + DrawThemeEdge(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, pdestrect, uedge, uflags, core::mem::transmute(pcontentrect.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeIcon(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT, himl: P2, iimageindex: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, prect, himl.into_param().abi(), iimageindex).ok() + DrawThemeIcon(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, prect, himl.param().abi(), iimageindex).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeParentBackground(hwnd: P0, hdc: P1, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hdc.into_param().abi(), core::mem::transmute(prc.unwrap_or(std::ptr::null()))).ok() + DrawThemeParentBackground(hwnd.param().abi(), hdc.param().abi(), core::mem::transmute(prc.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeParentBackgroundEx(hwnd: P0, hdc: P1, dwflags: DRAW_THEME_PARENT_BACKGROUND_FLAGS, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hdc.into_param().abi(), dwflags, core::mem::transmute(prc.unwrap_or(std::ptr::null()))).ok() + DrawThemeParentBackgroundEx(hwnd.param().abi(), hdc.param().abi(), dwflags, core::mem::transmute(prc.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawThemeText(htheme: P0, hdc: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, dwtextflags2, prect).ok() + DrawThemeText(htheme.param().abi(), hdc.param().abi(), 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: P0, hdc: P1, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, prect, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() + DrawThemeTextEx(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, prect, core::mem::transmute(poptions.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn EnableScrollBar(hwnd: P0, wsbflags: u32, warrows: ENABLE_SCROLL_BAR_ARROWS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), wsbflags, warrows).ok() + EnableScrollBar(hwnd.param().abi(), wsbflags, warrows).ok() } #[inline] pub unsafe fn EnableThemeDialogTexture(hwnd: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn EnableThemeDialogTexture(hwnd : super::super::Foundation:: HWND, dwflags : u32) -> windows_core::HRESULT); - EnableThemeDialogTexture(hwnd.into_param().abi(), dwflags).ok() + EnableThemeDialogTexture(hwnd.param().abi(), dwflags).ok() } #[inline] pub unsafe fn EnableTheming(fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn EnableTheming(fenable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - EnableTheming(fenable.into_param().abi()).ok() + EnableTheming(fenable.param().abi()).ok() } #[inline] pub unsafe fn EndBufferedAnimation(hbpanimation: isize, fupdatetarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn EndBufferedAnimation(hbpanimation : isize, fupdatetarget : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - EndBufferedAnimation(hbpanimation, fupdatetarget.into_param().abi()).ok() + EndBufferedAnimation(hbpanimation, fupdatetarget.param().abi()).ok() } #[inline] pub unsafe fn EndBufferedPaint(hbufferedpaint: isize, fupdatetarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn EndBufferedPaint(hbufferedpaint : isize, fupdatetarget : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - EndBufferedPaint(hbufferedpaint, fupdatetarget.into_param().abi()).ok() + EndBufferedPaint(hbufferedpaint, fupdatetarget.param().abi()).ok() } #[inline] pub unsafe fn EndPanningFeedback(hwnd: P0, fanimateback: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn EndPanningFeedback(hwnd : super::super::Foundation:: HWND, fanimateback : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - EndPanningFeedback(hwnd.into_param().abi(), fanimateback.into_param().abi()) + EndPanningFeedback(hwnd.param().abi(), fanimateback.param().abi()) } #[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<()> { @@ -679,94 +679,94 @@ pub unsafe fn EvaluateProximityToRect(controlboundingbox: *const super::super::F #[inline] pub unsafe fn FlatSB_EnableScrollBar(param0: P0, param1: i32, param2: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn FlatSB_EnableScrollBar(param0 : super::super::Foundation:: HWND, param1 : i32, param2 : u32) -> super::super::Foundation:: BOOL); - FlatSB_EnableScrollBar(param0.into_param().abi(), param1, param2) + FlatSB_EnableScrollBar(param0.param().abi(), param1, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_GetScrollInfo(param0: P0, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut super::WindowsAndMessaging::SCROLLINFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), code, param2) + FlatSB_GetScrollInfo(param0.param().abi(), code, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_GetScrollPos(param0: P0, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollPos(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS) -> i32); - FlatSB_GetScrollPos(param0.into_param().abi(), code) + FlatSB_GetScrollPos(param0.param().abi(), code) } #[inline] pub unsafe fn FlatSB_GetScrollProp(param0: P0, propindex: WSB_PROP, param2: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), propindex, param2) + FlatSB_GetScrollProp(param0.param().abi(), propindex, param2) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_GetScrollRange(param0: P0, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut i32, param3: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0.into_param().abi(), code, param2, param3) + FlatSB_GetScrollRange(param0.param().abi(), code, param2, param3) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollInfo(param0: P0, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, psi: *mut super::WindowsAndMessaging::SCROLLINFO, fredraw: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(param0.into_param().abi(), code, psi, fredraw.into_param().abi()) + FlatSB_SetScrollInfo(param0.param().abi(), code, psi, fredraw.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollPos(param0: P0, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, pos: i32, fredraw: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(param0.into_param().abi(), code, pos, fredraw.into_param().abi()) + FlatSB_SetScrollPos(param0.param().abi(), code, pos, fredraw.param().abi()) } #[inline] pub unsafe fn FlatSB_SetScrollProp(param0: P0, index: WSB_PROP, newvalue: isize, param3: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(param0.into_param().abi(), index.0 as _, newvalue, param3.into_param().abi()) + FlatSB_SetScrollProp(param0.param().abi(), index.0 as _, newvalue, param3.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollRange(param0: P0, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, min: i32, max: i32, fredraw: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(param0.into_param().abi(), code, min, max, fredraw.into_param().abi()) + FlatSB_SetScrollRange(param0.param().abi(), code, min, max, fredraw.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_ShowScrollBar(param0: P0, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(param0.into_param().abi(), code, param2.into_param().abi()) + FlatSB_ShowScrollBar(param0.param().abi(), code, param2.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -795,10 +795,10 @@ pub unsafe fn GetBufferedPaintTargetRect(hbufferedpaint: isize) -> windows_core: #[inline] pub unsafe fn GetComboBoxInfo(hwndcombo: P0, pcbi: *mut COMBOBOXINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetComboBoxInfo(hwndcombo : super::super::Foundation:: HWND, pcbi : *mut COMBOBOXINFO) -> super::super::Foundation:: BOOL); - GetComboBoxInfo(hwndcombo.into_param().abi(), pcbi).ok() + GetComboBoxInfo(hwndcombo.param().abi(), pcbi).ok() } #[inline] pub unsafe fn GetCurrentThemeName(pszthemefilename: &mut [u16], pszcolorbuff: Option<&mut [u16]>, pszsizebuff: Option<&mut [u16]>) -> windows_core::Result<()> { @@ -808,18 +808,18 @@ pub unsafe fn GetCurrentThemeName(pszthemefilename: &mut [u16], pszcolorbuff: Op #[inline] pub unsafe fn GetEffectiveClientRect(hwnd: P0, lprc: *mut super::super::Foundation::RECT, lpinfo: *const i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn GetEffectiveClientRect(hwnd : super::super::Foundation:: HWND, lprc : *mut super::super::Foundation:: RECT, lpinfo : *const i32)); - GetEffectiveClientRect(hwnd.into_param().abi(), lprc, lpinfo) + GetEffectiveClientRect(hwnd.param().abi(), lprc, lpinfo) } #[inline] pub unsafe fn GetListBoxInfo(hwnd: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetListBoxInfo(hwnd : super::super::Foundation:: HWND) -> u32); - GetListBoxInfo(hwnd.into_param().abi()) + GetListBoxInfo(hwnd.param().abi()) } #[inline] pub unsafe fn GetMUILanguage() -> u16 { @@ -829,18 +829,18 @@ pub unsafe fn GetMUILanguage() -> u16 { #[inline] pub unsafe fn GetThemeAnimationProperty(htheme: P0, istoryboardid: i32, itargetid: i32, eproperty: TA_PROPERTY, pvproperty: Option<*mut core::ffi::c_void>, cbsize: u32, pcbsizeout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htheme.into_param().abi(), istoryboardid, itargetid, eproperty, core::mem::transmute(pvproperty.unwrap_or(std::ptr::null_mut())), cbsize, pcbsizeout).ok() + GetThemeAnimationProperty(htheme.param().abi(), istoryboardid, itargetid, eproperty, core::mem::transmute(pvproperty.unwrap_or(std::ptr::null_mut())), cbsize, pcbsizeout).ok() } #[inline] pub unsafe fn GetThemeAnimationTransform(htheme: P0, istoryboardid: i32, itargetid: i32, dwtransformindex: u32, ptransform: Option<*mut TA_TRANSFORM>, cbsize: u32, pcbsizeout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htheme.into_param().abi(), istoryboardid, itargetid, dwtransformindex, core::mem::transmute(ptransform.unwrap_or(std::ptr::null_mut())), cbsize, pcbsizeout).ok() + GetThemeAnimationTransform(htheme.param().abi(), istoryboardid, itargetid, dwtransformindex, core::mem::transmute(ptransform.unwrap_or(std::ptr::null_mut())), cbsize, pcbsizeout).ok() } #[inline] pub unsafe fn GetThemeAppProperties() -> SET_THEME_APP_PROPERTIES_FLAGS { @@ -851,374 +851,374 @@ pub unsafe fn GetThemeAppProperties() -> SET_THEME_APP_PROPERTIES_FLAGS { #[inline] pub unsafe fn GetThemeBackgroundContentRect(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, pboundingrect: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeBackgroundContentRect(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, pboundingrect, &mut result__).map(|| result__) + GetThemeBackgroundContentRect(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, pboundingrect, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeBackgroundExtent(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, pcontentrect: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeBackgroundExtent(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, pcontentrect, &mut result__).map(|| result__) + GetThemeBackgroundExtent(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, pcontentrect, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeBackgroundRegion(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, prect: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeBackgroundRegion(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, prect, &mut result__).map(|| result__) + GetThemeBackgroundRegion(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, prect, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeBitmap(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, dwflags: GET_THEME_BITMAP_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeBitmap(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, dwflags, &mut result__).map(|| result__) + GetThemeBitmap(htheme.param().abi(), ipartid, istateid, ipropid.0 as _, dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeBool(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeBool(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) + GetThemeBool(htheme.param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeColor(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeColor(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) + GetThemeColor(htheme.param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeDocumentationProperty(pszthemename: P0, pszpropertyname: P1, pszvaluebuff: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeDocumentationProperty(pszthemename : windows_core::PCWSTR, pszpropertyname : windows_core::PCWSTR, pszvaluebuff : windows_core::PWSTR, cchmaxvalchars : i32) -> windows_core::HRESULT); - GetThemeDocumentationProperty(pszthemename.into_param().abi(), pszpropertyname.into_param().abi(), core::mem::transmute(pszvaluebuff.as_ptr()), pszvaluebuff.len().try_into().unwrap()).ok() + GetThemeDocumentationProperty(pszthemename.param().abi(), pszpropertyname.param().abi(), core::mem::transmute(pszvaluebuff.as_ptr()), pszvaluebuff.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetThemeEnumValue(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeEnumValue(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) + GetThemeEnumValue(htheme.param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeFilename(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, pszthemefilename: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, core::mem::transmute(pszthemefilename.as_ptr()), pszthemefilename.len().try_into().unwrap()).ok() + GetThemeFilename(htheme.param().abi(), 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: P0, hdc: P1, ipartid: i32, istateid: i32, ipropid: i32, pfont: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, ipropid, pfont).ok() + GetThemeFont(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, ipropid, pfont).ok() } #[inline] pub unsafe fn GetThemeInt(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeInt(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) + GetThemeInt(htheme.param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeIntList(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, pintlist: *mut INTLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeIntList(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pintlist : *mut INTLIST) -> windows_core::HRESULT); - GetThemeIntList(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, pintlist).ok() + GetThemeIntList(htheme.param().abi(), ipartid, istateid, ipropid.0 as _, pintlist).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeMargins(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID, prc: Option<*const super::super::Foundation::RECT>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeMargins(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, ipropid.0 as _, core::mem::transmute(prc.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + GetThemeMargins(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, ipropid.0 as _, core::mem::transmute(prc.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeMetric(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeMetric(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) + GetThemeMetric(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemePartSize(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, prc: Option<*const super::super::Foundation::RECT>, esize: THEMESIZE) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemePartSize(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, core::mem::transmute(prc.unwrap_or(std::ptr::null())), esize, &mut result__).map(|| result__) + GetThemePartSize(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, core::mem::transmute(prc.unwrap_or(std::ptr::null())), esize, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemePosition(htheme: P0, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemePosition(htheme.into_param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) + GetThemePosition(htheme.param().abi(), ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemePropertyOrigin(htheme: P0, ipartid: i32, istateid: i32, ipropid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemePropertyOrigin(htheme.into_param().abi(), ipartid, istateid, ipropid, &mut result__).map(|| result__) + GetThemePropertyOrigin(htheme.param().abi(), ipartid, istateid, ipropid, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeRect(htheme: P0, ipartid: i32, istateid: i32, ipropid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeRect(htheme.into_param().abi(), ipartid, istateid, ipropid, &mut result__).map(|| result__) + GetThemeRect(htheme.param().abi(), ipartid, istateid, ipropid, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeStream(htheme: P0, ipartid: i32, istateid: i32, ipropid: i32, ppvstream: *mut *mut core::ffi::c_void, pcbstream: Option<*mut u32>, hinst: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), ipartid, istateid, ipropid, ppvstream, core::mem::transmute(pcbstream.unwrap_or(std::ptr::null_mut())), hinst.into_param().abi()).ok() + GetThemeStream(htheme.param().abi(), ipartid, istateid, ipropid, ppvstream, core::mem::transmute(pcbstream.unwrap_or(std::ptr::null_mut())), hinst.param().abi()).ok() } #[inline] pub unsafe fn GetThemeString(htheme: P0, ipartid: i32, istateid: i32, ipropid: i32, pszbuff: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htheme.into_param().abi(), ipartid, istateid, ipropid, core::mem::transmute(pszbuff.as_ptr()), pszbuff.len().try_into().unwrap()).ok() + GetThemeString(htheme.param().abi(), ipartid, istateid, ipropid, core::mem::transmute(pszbuff.as_ptr()), pszbuff.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn GetThemeSysBool(htheme: P0, iboolid: THEME_PROPERTY_SYMBOL_ID) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysBool(htheme : HTHEME, iboolid : i32) -> super::super::Foundation:: BOOL); - GetThemeSysBool(htheme.into_param().abi(), iboolid.0 as _) + GetThemeSysBool(htheme.param().abi(), iboolid.0 as _) } #[inline] pub unsafe fn GetThemeSysColor(htheme: P0, icolorid: i32) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysColor(htheme : HTHEME, icolorid : i32) -> super::super::Foundation:: COLORREF); - GetThemeSysColor(htheme.into_param().abi(), icolorid) + GetThemeSysColor(htheme.param().abi(), icolorid) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeSysColorBrush(htheme: P0, icolorid: THEME_PROPERTY_SYMBOL_ID) -> super::super::Graphics::Gdi::HBRUSH where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysColorBrush(htheme : HTHEME, icolorid : i32) -> super::super::Graphics::Gdi:: HBRUSH); - GetThemeSysColorBrush(htheme.into_param().abi(), icolorid.0 as _) + GetThemeSysColorBrush(htheme.param().abi(), icolorid.0 as _) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeSysFont(htheme: P0, ifontid: THEME_PROPERTY_SYMBOL_ID, plf: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysFont(htheme : HTHEME, ifontid : i32, plf : *mut super::super::Graphics::Gdi:: LOGFONTW) -> windows_core::HRESULT); - GetThemeSysFont(htheme.into_param().abi(), ifontid.0 as _, plf).ok() + GetThemeSysFont(htheme.param().abi(), ifontid.0 as _, plf).ok() } #[inline] pub unsafe fn GetThemeSysInt(htheme: P0, iintid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysInt(htheme : HTHEME, iintid : i32, pivalue : *mut i32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetThemeSysInt(htheme.into_param().abi(), iintid.0 as _, &mut result__).map(|| result__) + GetThemeSysInt(htheme.param().abi(), iintid.0 as _, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetThemeSysSize(htheme: P0, isizeid: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysSize(htheme : HTHEME, isizeid : i32) -> i32); - GetThemeSysSize(htheme.into_param().abi(), isizeid) + GetThemeSysSize(htheme.param().abi(), isizeid) } #[inline] pub unsafe fn GetThemeSysString(htheme: P0, istringid: THEME_PROPERTY_SYMBOL_ID, pszstringbuff: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysString(htheme : HTHEME, istringid : i32, pszstringbuff : windows_core::PWSTR, cchmaxstringchars : i32) -> windows_core::HRESULT); - GetThemeSysString(htheme.into_param().abi(), istringid.0 as _, core::mem::transmute(pszstringbuff.as_ptr()), pszstringbuff.len().try_into().unwrap()).ok() + GetThemeSysString(htheme.param().abi(), 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: P0, hdc: P1, ipartid: i32, istateid: i32, psztext: &[u16], dwtextflags: super::super::Graphics::Gdi::DRAW_TEXT_FORMAT, pboundingrect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeTextExtent(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, core::mem::transmute(pboundingrect.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + GetThemeTextExtent(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, core::mem::transmute(pboundingrect.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetThemeTextMetrics(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, ptm: *mut super::super::Graphics::Gdi::TEXTMETRICW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, ptm).ok() + GetThemeTextMetrics(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, ptm).ok() } #[inline] pub unsafe fn GetThemeTimingFunction(htheme: P0, itimingfunctionid: i32, ptimingfunction: Option<*mut TA_TIMINGFUNCTION>, cbsize: u32, pcbsizeout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htheme.into_param().abi(), itimingfunctionid, core::mem::transmute(ptimingfunction.unwrap_or(std::ptr::null_mut())), cbsize, pcbsizeout).ok() + GetThemeTimingFunction(htheme.param().abi(), itimingfunctionid, core::mem::transmute(ptimingfunction.unwrap_or(std::ptr::null_mut())), cbsize, pcbsizeout).ok() } #[inline] pub unsafe fn GetThemeTransitionDuration(htheme: P0, ipartid: i32, istateidfrom: i32, istateidto: i32, ipropid: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetThemeTransitionDuration(htheme.into_param().abi(), ipartid, istateidfrom, istateidto, ipropid, &mut result__).map(|| result__) + GetThemeTransitionDuration(htheme.param().abi(), ipartid, istateidfrom, istateidto, ipropid, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetWindowFeedbackSetting(hwnd: P0, feedback: FEEDBACK_TYPE, dwflags: u32, psize: *mut u32, config: Option<*mut core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), feedback, dwflags, psize, core::mem::transmute(config.unwrap_or(std::ptr::null_mut()))) + GetWindowFeedbackSetting(hwnd.param().abi(), feedback, dwflags, psize, core::mem::transmute(config.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetWindowTheme(hwnd: P0) -> HTHEME where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn GetWindowTheme(hwnd : super::super::Foundation:: HWND) -> HTHEME); - GetWindowTheme(hwnd.into_param().abi()) + GetWindowTheme(hwnd.param().abi()) } #[inline] pub unsafe fn HIMAGELIST_QueryInterface(himl: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(himl.into_param().abi(), riid, ppv).ok() + HIMAGELIST_QueryInterface(himl.param().abi(), riid, ppv).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HitTestThemeBackground(htheme: P0, hdc: P1, ipartid: i32, istateid: i32, dwoptions: HIT_TEST_BACKGROUND_OPTIONS, prect: *const super::super::Foundation::RECT, hrgn: P2, pttest: super::super::Foundation::POINT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - HitTestThemeBackground(htheme.into_param().abi(), hdc.into_param().abi(), ipartid, istateid, dwoptions, prect, hrgn.into_param().abi(), core::mem::transmute(pttest), &mut result__).map(|| result__) + HitTestThemeBackground(htheme.param().abi(), hdc.param().abi(), ipartid, istateid, dwoptions, prect, hrgn.param().abi(), core::mem::transmute(pttest), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_Add(himl: P0, hbmimage: P1, hbmmask: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(himl.into_param().abi(), hbmimage.into_param().abi(), hbmmask.into_param().abi()) + ImageList_Add(himl.param().abi(), hbmimage.param().abi(), hbmmask.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_AddMasked(himl: P0, hbmimage: P1, crmask: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(himl.into_param().abi(), hbmimage.into_param().abi(), crmask.into_param().abi()) + ImageList_AddMasked(himl.param().abi(), hbmimage.param().abi(), crmask.param().abi()) } #[inline] pub unsafe fn ImageList_BeginDrag(himltrack: P0, itrack: i32, dxhotspot: i32, dyhotspot: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_BeginDrag(himltrack : HIMAGELIST, itrack : i32, dxhotspot : i32, dyhotspot : i32) -> super::super::Foundation:: BOOL); - ImageList_BeginDrag(himltrack.into_param().abi(), itrack, dxhotspot, dyhotspot) + ImageList_BeginDrag(himltrack.param().abi(), itrack, dxhotspot, dyhotspot) } #[inline] pub unsafe fn ImageList_CoCreateInstance(rclsid: *const windows_core::GUID, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - ImageList_CoCreateInstance(rclsid, punkouter.into_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: P0, idst: i32, himlsrc: P1, isrc: i32, uflags: IMAGE_LIST_COPY_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(himldst.into_param().abi(), idst, himlsrc.into_param().abi(), isrc, uflags) + ImageList_Copy(himldst.param().abi(), idst, himlsrc.param().abi(), isrc, uflags) } #[inline] pub unsafe fn ImageList_Create(cx: i32, cy: i32, flags: IMAGELIST_CREATION_FLAGS, cinitial: i32, cgrow: i32) -> HIMAGELIST { @@ -1228,26 +1228,26 @@ pub unsafe fn ImageList_Create(cx: i32, cy: i32, flags: IMAGELIST_CREATION_FLAGS #[inline] pub unsafe fn ImageList_Destroy(himl: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_Destroy(himl : HIMAGELIST) -> super::super::Foundation:: BOOL); - ImageList_Destroy(himl.into_param().abi()) + ImageList_Destroy(himl.param().abi()) } #[inline] pub unsafe fn ImageList_DragEnter(hwndlock: P0, x: i32, y: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_DragEnter(hwndlock : super::super::Foundation:: HWND, x : i32, y : i32) -> super::super::Foundation:: BOOL); - ImageList_DragEnter(hwndlock.into_param().abi(), x, y) + ImageList_DragEnter(hwndlock.param().abi(), x, y) } #[inline] pub unsafe fn ImageList_DragLeave(hwndlock: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_DragLeave(hwndlock : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ImageList_DragLeave(hwndlock.into_param().abi()) + ImageList_DragLeave(hwndlock.param().abi()) } #[inline] pub unsafe fn ImageList_DragMove(x: i32, y: i32) -> super::super::Foundation::BOOL { @@ -1257,32 +1257,32 @@ pub unsafe fn ImageList_DragMove(x: i32, y: i32) -> super::super::Foundation::BO #[inline] pub unsafe fn ImageList_DragShowNolock(fshow: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_DragShowNolock(fshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ImageList_DragShowNolock(fshow.into_param().abi()) + ImageList_DragShowNolock(fshow.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_Draw(himl: P0, i: i32, hdcdst: P1, x: i32, y: i32, fstyle: IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(himl.into_param().abi(), i, hdcdst.into_param().abi(), x, y, fstyle) + ImageList_Draw(himl.param().abi(), i, hdcdst.param().abi(), x, y, fstyle) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_DrawEx(himl: P0, i: i32, hdcdst: P1, x: i32, y: i32, dx: i32, dy: i32, rgbbk: P2, rgbfg: P3, fstyle: IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(himl.into_param().abi(), i, hdcdst.into_param().abi(), x, y, dx, dy, rgbbk.into_param().abi(), rgbfg.into_param().abi(), fstyle) + ImageList_DrawEx(himl.param().abi(), i, hdcdst.param().abi(), x, y, dx, dy, rgbbk.param().abi(), rgbfg.param().abi(), fstyle) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -1293,10 +1293,10 @@ pub unsafe fn ImageList_DrawIndirect(pimldp: *const IMAGELISTDRAWPARAMS) -> supe #[inline] pub unsafe fn ImageList_Duplicate(himl: P0) -> HIMAGELIST where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_Duplicate(himl : HIMAGELIST) -> HIMAGELIST); - ImageList_Duplicate(himl.into_param().abi()) + ImageList_Duplicate(himl.param().abi()) } #[inline] pub unsafe fn ImageList_EndDrag() { @@ -1306,10 +1306,10 @@ pub unsafe fn ImageList_EndDrag() { #[inline] pub unsafe fn ImageList_GetBkColor(himl: P0) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetBkColor(himl : HIMAGELIST) -> super::super::Foundation:: COLORREF); - ImageList_GetBkColor(himl.into_param().abi()) + ImageList_GetBkColor(himl.param().abi()) } #[inline] pub unsafe fn ImageList_GetDragImage(ppt: Option<*mut super::super::Foundation::POINT>, ppthotspot: Option<*mut super::super::Foundation::POINT>) -> HIMAGELIST { @@ -1320,174 +1320,174 @@ pub unsafe fn ImageList_GetDragImage(ppt: Option<*mut super::super::Foundation:: #[inline] pub unsafe fn ImageList_GetIcon(himl: P0, i: i32, flags: IMAGE_LIST_DRAW_STYLE) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetIcon(himl : HIMAGELIST, i : i32, flags : IMAGE_LIST_DRAW_STYLE) -> super::WindowsAndMessaging:: HICON); - ImageList_GetIcon(himl.into_param().abi(), i, flags) + ImageList_GetIcon(himl.param().abi(), i, flags) } #[inline] pub unsafe fn ImageList_GetIconSize(himl: P0, cx: Option<*mut i32>, cy: Option<*mut i32>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetIconSize(himl : HIMAGELIST, cx : *mut i32, cy : *mut i32) -> super::super::Foundation:: BOOL); - ImageList_GetIconSize(himl.into_param().abi(), core::mem::transmute(cx.unwrap_or(std::ptr::null_mut())), core::mem::transmute(cy.unwrap_or(std::ptr::null_mut()))) + ImageList_GetIconSize(himl.param().abi(), core::mem::transmute(cx.unwrap_or(std::ptr::null_mut())), core::mem::transmute(cy.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ImageList_GetImageCount(himl: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetImageCount(himl : HIMAGELIST) -> i32); - ImageList_GetImageCount(himl.into_param().abi()) + ImageList_GetImageCount(himl.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_GetImageInfo(himl: P0, i: i32, pimageinfo: *mut IMAGEINFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_GetImageInfo(himl : HIMAGELIST, i : i32, pimageinfo : *mut IMAGEINFO) -> super::super::Foundation:: BOOL); - ImageList_GetImageInfo(himl.into_param().abi(), i, pimageinfo) + ImageList_GetImageInfo(himl.param().abi(), i, pimageinfo) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ImageList_LoadImageA(hi: P0, lpbmp: P1, cx: i32, cgrow: i32, crmask: P2, utype: u32, uflags: super::WindowsAndMessaging::IMAGE_FLAGS) -> HIMAGELIST where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hi.into_param().abi(), lpbmp.into_param().abi(), cx, cgrow, crmask.into_param().abi(), utype, uflags) + ImageList_LoadImageA(hi.param().abi(), lpbmp.param().abi(), cx, cgrow, crmask.param().abi(), utype, uflags) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ImageList_LoadImageW(hi: P0, lpbmp: P1, cx: i32, cgrow: i32, crmask: P2, utype: u32, uflags: super::WindowsAndMessaging::IMAGE_FLAGS) -> HIMAGELIST where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hi.into_param().abi(), lpbmp.into_param().abi(), cx, cgrow, crmask.into_param().abi(), utype, uflags) + ImageList_LoadImageW(hi.param().abi(), lpbmp.param().abi(), cx, cgrow, crmask.param().abi(), utype, uflags) } #[inline] pub unsafe fn ImageList_Merge(himl1: P0, i1: i32, himl2: P1, i2: i32, dx: i32, dy: i32) -> HIMAGELIST where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_Merge(himl1 : HIMAGELIST, i1 : i32, himl2 : HIMAGELIST, i2 : i32, dx : i32, dy : i32) -> HIMAGELIST); - ImageList_Merge(himl1.into_param().abi(), i1, himl2.into_param().abi(), i2, dx, dy) + ImageList_Merge(himl1.param().abi(), i1, himl2.param().abi(), i2, dx, dy) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ImageList_Read(pstm: P0) -> HIMAGELIST where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_Read(pstm : * mut core::ffi::c_void) -> HIMAGELIST); - ImageList_Read(pstm.into_param().abi()) + ImageList_Read(pstm.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ImageList_ReadEx(dwflags: u32, pstm: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(dwflags, pstm.into_param().abi(), riid, ppv).ok() + ImageList_ReadEx(dwflags, pstm.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn ImageList_Remove(himl: P0, i: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_Remove(himl : HIMAGELIST, i : i32) -> super::super::Foundation:: BOOL); - ImageList_Remove(himl.into_param().abi(), i) + ImageList_Remove(himl.param().abi(), i) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ImageList_Replace(himl: P0, i: i32, hbmimage: P1, hbmmask: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(himl.into_param().abi(), i, hbmimage.into_param().abi(), hbmmask.into_param().abi()) + ImageList_Replace(himl.param().abi(), i, hbmimage.param().abi(), hbmmask.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ImageList_ReplaceIcon(himl: P0, i: i32, hicon: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_ReplaceIcon(himl : HIMAGELIST, i : i32, hicon : super::WindowsAndMessaging:: HICON) -> i32); - ImageList_ReplaceIcon(himl.into_param().abi(), i, hicon.into_param().abi()) + ImageList_ReplaceIcon(himl.param().abi(), i, hicon.param().abi()) } #[inline] pub unsafe fn ImageList_SetBkColor(himl: P0, clrbk: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetBkColor(himl : HIMAGELIST, clrbk : super::super::Foundation:: COLORREF) -> super::super::Foundation:: COLORREF); - ImageList_SetBkColor(himl.into_param().abi(), clrbk.into_param().abi()) + ImageList_SetBkColor(himl.param().abi(), clrbk.param().abi()) } #[inline] pub unsafe fn ImageList_SetDragCursorImage(himldrag: P0, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetDragCursorImage(himldrag : HIMAGELIST, idrag : i32, dxhotspot : i32, dyhotspot : i32) -> super::super::Foundation:: BOOL); - ImageList_SetDragCursorImage(himldrag.into_param().abi(), idrag, dxhotspot, dyhotspot) + ImageList_SetDragCursorImage(himldrag.param().abi(), idrag, dxhotspot, dyhotspot) } #[inline] pub unsafe fn ImageList_SetIconSize(himl: P0, cx: i32, cy: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetIconSize(himl : HIMAGELIST, cx : i32, cy : i32) -> super::super::Foundation:: BOOL); - ImageList_SetIconSize(himl.into_param().abi(), cx, cy) + ImageList_SetIconSize(himl.param().abi(), cx, cy) } #[inline] pub unsafe fn ImageList_SetImageCount(himl: P0, unewcount: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetImageCount(himl : HIMAGELIST, unewcount : u32) -> super::super::Foundation:: BOOL); - ImageList_SetImageCount(himl.into_param().abi(), unewcount) + ImageList_SetImageCount(himl.param().abi(), unewcount) } #[inline] pub unsafe fn ImageList_SetOverlayImage(himl: P0, iimage: i32, ioverlay: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ImageList_SetOverlayImage(himl : HIMAGELIST, iimage : i32, ioverlay : i32) -> super::super::Foundation:: BOOL); - ImageList_SetOverlayImage(himl.into_param().abi(), iimage, ioverlay) + ImageList_SetOverlayImage(himl.param().abi(), iimage, ioverlay) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ImageList_Write(himl: P0, pstm: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(himl.into_param().abi(), pstm.into_param().abi()) + ImageList_Write(himl.param().abi(), pstm.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ImageList_WriteEx(himl: P0, dwflags: IMAGE_LIST_WRITE_STREAM_FLAGS, pstm: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(himl.into_param().abi(), dwflags, pstm.into_param().abi()).ok() + ImageList_WriteEx(himl.param().abi(), dwflags, pstm.param().abi()).ok() } #[inline] pub unsafe fn InitCommonControls() { @@ -1507,10 +1507,10 @@ pub unsafe fn InitMUILanguage(uilang: u16) { #[inline] pub unsafe fn InitializeFlatSB(param0: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn InitializeFlatSB(param0 : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InitializeFlatSB(param0.into_param().abi()) + InitializeFlatSB(param0.param().abi()) } #[inline] pub unsafe fn IsAppThemed() -> super::super::Foundation::BOOL { @@ -1530,10 +1530,10 @@ pub unsafe fn IsCompositionActive() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsDlgButtonChecked(hdlg: P0, nidbutton: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsDlgButtonChecked(hdlg : super::super::Foundation:: HWND, nidbutton : i32) -> u32); - IsDlgButtonChecked(hdlg.into_param().abi(), nidbutton) + IsDlgButtonChecked(hdlg.param().abi(), nidbutton) } #[inline] pub unsafe fn IsThemeActive() -> super::super::Foundation::BOOL { @@ -1543,96 +1543,96 @@ pub unsafe fn IsThemeActive() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsThemeBackgroundPartiallyTransparent(htheme: P0, ipartid: i32, istateid: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn IsThemeBackgroundPartiallyTransparent(htheme : HTHEME, ipartid : i32, istateid : i32) -> super::super::Foundation:: BOOL); - IsThemeBackgroundPartiallyTransparent(htheme.into_param().abi(), ipartid, istateid) + IsThemeBackgroundPartiallyTransparent(htheme.param().abi(), ipartid, istateid) } #[inline] pub unsafe fn IsThemeDialogTextureEnabled(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn IsThemeDialogTextureEnabled(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsThemeDialogTextureEnabled(hwnd.into_param().abi()) + IsThemeDialogTextureEnabled(hwnd.param().abi()) } #[inline] pub unsafe fn IsThemePartDefined(htheme: P0, ipartid: i32, istateid: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn IsThemePartDefined(htheme : HTHEME, ipartid : i32, istateid : i32) -> super::super::Foundation:: BOOL); - IsThemePartDefined(htheme.into_param().abi(), ipartid, istateid) + IsThemePartDefined(htheme.param().abi(), ipartid, istateid) } #[inline] pub unsafe fn LBItemFromPt(hlb: P0, pt: super::super::Foundation::POINT, bautoscroll: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hlb.into_param().abi(), core::mem::transmute(pt), bautoscroll.into_param().abi()) + LBItemFromPt(hlb.param().abi(), core::mem::transmute(pt), bautoscroll.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn LoadIconMetric(hinst: P0, pszname: P1, lims: _LI_METRIC) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - LoadIconMetric(hinst.into_param().abi(), pszname.into_param().abi(), lims, &mut result__).map(|| result__) + LoadIconMetric(hinst.param().abi(), pszname.param().abi(), lims, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn LoadIconWithScaleDown(hinst: P0, pszname: P1, cx: i32, cy: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - LoadIconWithScaleDown(hinst.into_param().abi(), pszname.into_param().abi(), cx, cy, &mut result__).map(|| result__) + LoadIconWithScaleDown(hinst.param().abi(), pszname.param().abi(), cx, cy, &mut result__).map(|| result__) } #[inline] pub unsafe fn MakeDragList(hlb: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn MakeDragList(hlb : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - MakeDragList(hlb.into_param().abi()) + MakeDragList(hlb.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn MenuHelp(umsg: u32, wparam: P0, lparam: P1, hmainmenu: P2, hinst: P3, hwndstatus: P4, lpwids: *const u32) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { 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(umsg, wparam.into_param().abi(), lparam.into_param().abi(), hmainmenu.into_param().abi(), hinst.into_param().abi(), hwndstatus.into_param().abi(), lpwids) + MenuHelp(umsg, wparam.param().abi(), lparam.param().abi(), hmainmenu.param().abi(), hinst.param().abi(), hwndstatus.param().abi(), lpwids) } #[inline] pub unsafe fn OpenThemeData(hwnd: P0, pszclasslist: P1) -> HTHEME where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("uxtheme.dll" "system" fn OpenThemeData(hwnd : super::super::Foundation:: HWND, pszclasslist : windows_core::PCWSTR) -> HTHEME); - OpenThemeData(hwnd.into_param().abi(), pszclasslist.into_param().abi()) + OpenThemeData(hwnd.param().abi(), pszclasslist.param().abi()) } #[inline] pub unsafe fn OpenThemeDataEx(hwnd: P0, pszclasslist: P1, dwflags: OPEN_THEME_DATA_FLAGS) -> HTHEME where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszclasslist.into_param().abi(), dwflags) + OpenThemeDataEx(hwnd.param().abi(), 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 { @@ -1654,49 +1654,49 @@ pub unsafe fn PropertySheetW(param0: *mut PROPSHEETHEADERW_V2) -> isize { #[inline] pub unsafe fn RegisterPointerDeviceNotifications(window: P0, notifyrange: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterPointerDeviceNotifications(window : super::super::Foundation:: HWND, notifyrange : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - RegisterPointerDeviceNotifications(window.into_param().abi(), notifyrange.into_param().abi()).ok() + RegisterPointerDeviceNotifications(window.param().abi(), notifyrange.param().abi()).ok() } #[inline] pub unsafe fn RegisterTouchHitTestingWindow(hwnd: P0, value: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterTouchHitTestingWindow(hwnd : super::super::Foundation:: HWND, value : u32) -> super::super::Foundation:: BOOL); - RegisterTouchHitTestingWindow(hwnd.into_param().abi(), value).ok() + RegisterTouchHitTestingWindow(hwnd.param().abi(), value).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollInfo(hwnd: P0, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, lpsi: *const super::WindowsAndMessaging::SCROLLINFO, redraw: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), nbar, lpsi, redraw.into_param().abi()) + SetScrollInfo(hwnd.param().abi(), nbar, lpsi, redraw.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollPos(hwnd: P0, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, npos: i32, bredraw: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), nbar, npos, bredraw.into_param().abi()) + SetScrollPos(hwnd.param().abi(), nbar, npos, bredraw.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollRange(hwnd: P0, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, nminpos: i32, nmaxpos: i32, bredraw: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), nbar, nminpos, nmaxpos, bredraw.into_param().abi()).ok() + SetScrollRange(hwnd.param().abi(), nbar, nminpos, nmaxpos, bredraw.param().abi()).ok() } #[inline] pub unsafe fn SetThemeAppProperties(dwflags: SET_THEME_APP_PROPERTIES_FLAGS) { @@ -1706,67 +1706,67 @@ pub unsafe fn SetThemeAppProperties(dwflags: SET_THEME_APP_PROPERTIES_FLAGS) { #[inline] pub unsafe fn SetWindowFeedbackSetting(hwnd: P0, feedback: FEEDBACK_TYPE, dwflags: u32, size: u32, configuration: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), feedback, dwflags, size, core::mem::transmute(configuration.unwrap_or(std::ptr::null()))) + SetWindowFeedbackSetting(hwnd.param().abi(), feedback, dwflags, size, core::mem::transmute(configuration.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SetWindowTheme(hwnd: P0, pszsubappname: P1, pszsubidlist: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), pszsubappname.into_param().abi(), pszsubidlist.into_param().abi()).ok() + SetWindowTheme(hwnd.param().abi(), pszsubappname.param().abi(), pszsubidlist.param().abi()).ok() } #[inline] pub unsafe fn SetWindowThemeAttribute(hwnd: P0, eattribute: WINDOWTHEMEATTRIBUTETYPE, pvattribute: *const core::ffi::c_void, cbattribute: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), eattribute, pvattribute, cbattribute).ok() + SetWindowThemeAttribute(hwnd.param().abi(), eattribute, pvattribute, cbattribute).ok() } #[inline] pub unsafe fn ShowHideMenuCtl(hwnd: P0, uflags: usize, lpinfo: *const i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn ShowHideMenuCtl(hwnd : super::super::Foundation:: HWND, uflags : usize, lpinfo : *const i32) -> super::super::Foundation:: BOOL); - ShowHideMenuCtl(hwnd.into_param().abi(), uflags, lpinfo) + ShowHideMenuCtl(hwnd.param().abi(), uflags, lpinfo) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShowScrollBar(hwnd: P0, wbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, bshow: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), wbar, bshow.into_param().abi()).ok() + ShowScrollBar(hwnd.param().abi(), wbar, bshow.param().abi()).ok() } #[inline] pub unsafe fn Str_SetPtrW(ppsz: *mut windows_core::PWSTR, psz: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn Str_SetPtrW(ppsz : *mut windows_core::PWSTR, psz : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - Str_SetPtrW(ppsz, psz.into_param().abi()) + Str_SetPtrW(ppsz, psz.param().abi()) } #[inline] pub unsafe fn TaskDialog(hwndowner: P0, hinstance: P1, pszwindowtitle: P2, pszmaininstruction: P3, pszcontent: P4, dwcommonbuttons: TASKDIALOG_COMMON_BUTTON_FLAGS, pszicon: P5, pnbutton: Option<*mut i32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: 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(hwndowner.into_param().abi(), hinstance.into_param().abi(), pszwindowtitle.into_param().abi(), pszmaininstruction.into_param().abi(), pszcontent.into_param().abi(), dwcommonbuttons, pszicon.into_param().abi(), core::mem::transmute(pnbutton.unwrap_or(std::ptr::null_mut()))).ok() + TaskDialog(hwndowner.param().abi(), hinstance.param().abi(), pszwindowtitle.param().abi(), pszmaininstruction.param().abi(), pszcontent.param().abi(), dwcommonbuttons, pszicon.param().abi(), core::mem::transmute(pnbutton.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -1777,19 +1777,19 @@ pub unsafe fn TaskDialogIndirect(ptaskconfig: *const TASKDIALOGCONFIG, pnbutton: #[inline] pub unsafe fn UninitializeFlatSB(param0: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn UninitializeFlatSB(param0 : super::super::Foundation:: HWND) -> windows_core::HRESULT); - UninitializeFlatSB(param0.into_param().abi()).ok() + UninitializeFlatSB(param0.param().abi()).ok() } #[inline] pub unsafe fn UpdatePanningFeedback(hwnd: P0, ltotaloverpanoffsetx: i32, ltotaloverpanoffsety: i32, fininertia: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), ltotaloverpanoffsetx, ltotaloverpanoffsety, fininertia.into_param().abi()) + UpdatePanningFeedback(hwnd.param().abi(), ltotaloverpanoffsetx, ltotaloverpanoffsety, fininertia.param().abi()) } windows_core::imp::define_interface!(IImageList, IImageList_Vtbl, 0x46eb5926_582e_4017_9fdf_e8998daa0950); windows_core::imp::interface_hierarchy!(IImageList, windows_core::IUnknown); @@ -1797,19 +1797,19 @@ impl IImageList { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Add(&self, hbmimage: P0, hbmmask: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), hbmimage.into_param().abi(), hbmmask.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), hbmimage.param().abi(), hbmmask.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ReplaceIcon(&self, i: i32, hicon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReplaceIcon)(windows_core::Interface::as_raw(self), i, hicon.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReplaceIcon)(windows_core::Interface::as_raw(self), i, hicon.param().abi(), &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), iimage, ioverlay).ok() @@ -1817,19 +1817,19 @@ impl IImageList { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Replace(&self, i: i32, hbmimage: P0, hbmmask: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Replace)(windows_core::Interface::as_raw(self), i, hbmimage.into_param().abi(), hbmmask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Replace)(windows_core::Interface::as_raw(self), i, hbmimage.param().abi(), hbmmask.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddMasked(&self, hbmimage: P0, crmask: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AddMasked)(windows_core::Interface::as_raw(self), hbmimage.into_param().abi(), crmask.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AddMasked)(windows_core::Interface::as_raw(self), hbmimage.param().abi(), crmask.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Draw(&self, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::Result<()> { @@ -1849,15 +1849,15 @@ impl IImageList { } pub unsafe fn Copy(&self, idst: i32, punksrc: P0, isrc: i32, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Copy)(windows_core::Interface::as_raw(self), idst, punksrc.into_param().abi(), isrc, 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: P0, i2: i32, dx: i32, dy: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), i1, punk2.into_param().abi(), i2, dx, dy, riid, ppv).ok() + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), i1, punk2.param().abi(), i2, dx, dy, riid, 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), riid, ppv).ok() @@ -1881,10 +1881,10 @@ impl IImageList { } pub unsafe fn SetBkColor(&self, clrbk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetBkColor)(windows_core::Interface::as_raw(self), clrbk.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetBkColor)(windows_core::Interface::as_raw(self), clrbk.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetBkColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1898,30 +1898,30 @@ impl IImageList { } pub unsafe fn DragEnter(&self, hwndlock: P0, x: i32, y: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), hwndlock.into_param().abi(), x, y).ok() + (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), hwndlock.param().abi(), x, y).ok() } pub unsafe fn DragLeave(&self, hwndlock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DragLeave)(windows_core::Interface::as_raw(self), hwndlock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DragLeave)(windows_core::Interface::as_raw(self), hwndlock.param().abi()).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), x, y).ok() } pub unsafe fn SetDragCursorImage(&self, punk: P0, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDragCursorImage)(windows_core::Interface::as_raw(self), punk.into_param().abi(), idrag, dxhotspot, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DragShowNolock)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DragShowNolock)(windows_core::Interface::as_raw(self), fshow.param().abi()).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(std::ptr::null_mut())), core::mem::transmute(ppthotspot.unwrap_or(std::ptr::null_mut())), riid, ppv).ok() @@ -1995,19 +1995,19 @@ impl IImageList2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Add(&self, hbmimage: P0, hbmmask: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), hbmimage.into_param().abi(), hbmmask.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Add)(windows_core::Interface::as_raw(self), hbmimage.param().abi(), hbmmask.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ReplaceIcon(&self, i: i32, hicon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ReplaceIcon)(windows_core::Interface::as_raw(self), i, hicon.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.ReplaceIcon)(windows_core::Interface::as_raw(self), i, hicon.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetOverlayImage(&self, iimage: i32, ioverlay: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetOverlayImage)(windows_core::Interface::as_raw(self), iimage, ioverlay).ok() @@ -2015,19 +2015,19 @@ impl IImageList2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Replace(&self, i: i32, hbmimage: P0, hbmmask: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Replace)(windows_core::Interface::as_raw(self), i, hbmimage.into_param().abi(), hbmmask.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Replace)(windows_core::Interface::as_raw(self), i, hbmimage.param().abi(), hbmmask.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddMasked(&self, hbmimage: P0, crmask: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AddMasked)(windows_core::Interface::as_raw(self), hbmimage.into_param().abi(), crmask.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.AddMasked)(windows_core::Interface::as_raw(self), hbmimage.param().abi(), crmask.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Draw(&self, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::Result<()> { @@ -2047,15 +2047,15 @@ impl IImageList2 { } pub unsafe fn Copy(&self, idst: i32, punksrc: P0, isrc: i32, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Copy)(windows_core::Interface::as_raw(self), idst, punksrc.into_param().abi(), isrc, uflags).ok() + (windows_core::Interface::vtable(self).base__.Copy)(windows_core::Interface::as_raw(self), idst, punksrc.param().abi(), isrc, uflags).ok() } pub unsafe fn Merge(&self, i1: i32, punk2: P0, i2: i32, dx: i32, dy: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), i1, punk2.into_param().abi(), i2, dx, dy, riid, ppv).ok() + (windows_core::Interface::vtable(self).base__.Merge)(windows_core::Interface::as_raw(self), i1, punk2.param().abi(), i2, dx, dy, riid, 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).base__.Clone)(windows_core::Interface::as_raw(self), riid, ppv).ok() @@ -2079,10 +2079,10 @@ impl IImageList2 { } pub unsafe fn SetBkColor(&self, clrbk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.SetBkColor)(windows_core::Interface::as_raw(self), clrbk.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.SetBkColor)(windows_core::Interface::as_raw(self), clrbk.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetBkColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2096,30 +2096,30 @@ impl IImageList2 { } pub unsafe fn DragEnter(&self, hwndlock: P0, x: i32, y: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DragEnter)(windows_core::Interface::as_raw(self), hwndlock.into_param().abi(), x, y).ok() + (windows_core::Interface::vtable(self).base__.DragEnter)(windows_core::Interface::as_raw(self), hwndlock.param().abi(), x, y).ok() } pub unsafe fn DragLeave(&self, hwndlock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DragLeave)(windows_core::Interface::as_raw(self), hwndlock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DragLeave)(windows_core::Interface::as_raw(self), hwndlock.param().abi()).ok() } pub unsafe fn DragMove(&self, x: i32, y: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDragCursorImage)(windows_core::Interface::as_raw(self), punk.into_param().abi(), idrag, dxhotspot, dyhotspot).ok() + (windows_core::Interface::vtable(self).base__.SetDragCursorImage)(windows_core::Interface::as_raw(self), punk.param().abi(), idrag, dxhotspot, dyhotspot).ok() } pub unsafe fn DragShowNolock(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DragShowNolock)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DragShowNolock)(windows_core::Interface::as_raw(self), fshow.param().abi()).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).base__.GetDragImage)(windows_core::Interface::as_raw(self), core::mem::transmute(ppt.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppthotspot.unwrap_or(std::ptr::null_mut())), riid, ppv).ok() @@ -2143,9 +2143,9 @@ impl IImageList2 { } pub unsafe fn SetCallback(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (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), riid, ppv).ok() @@ -2169,18 +2169,18 @@ impl IImageList2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Replace2(&self, i: i32, hbmimage: P0, hbmmask: P1, punk: P2, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Replace2)(windows_core::Interface::as_raw(self), i, hbmimage.into_param().abi(), hbmmask.into_param().abi(), punk.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).Replace2)(windows_core::Interface::as_raw(self), i, hbmimage.param().abi(), hbmmask.param().abi(), punk.param().abi(), dwflags).ok() } pub unsafe fn ReplaceFromImageList(&self, i: i32, pil: P0, isrc: i32, punk: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReplaceFromImageList)(windows_core::Interface::as_raw(self), i, pil.into_param().abi(), isrc, punk.into_param().abi(), 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 0a0e3f7cfa..26f54db4a6 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs @@ -2,68 +2,68 @@ #[inline] pub unsafe fn AdjustWindowRectExForDpi(lprect: *mut super::super::Foundation::RECT, dwstyle: super::WindowsAndMessaging::WINDOW_STYLE, bmenu: P0, dwexstyle: super::WindowsAndMessaging::WINDOW_EX_STYLE, dpi: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lprect, dwstyle, bmenu.into_param().abi(), dwexstyle, dpi).ok() + AdjustWindowRectExForDpi(lprect, dwstyle, bmenu.param().abi(), dwexstyle, dpi).ok() } #[inline] pub unsafe fn AreDpiAwarenessContextsEqual(dpicontexta: P0, dpicontextb: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn AreDpiAwarenessContextsEqual(dpicontexta : DPI_AWARENESS_CONTEXT, dpicontextb : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); - AreDpiAwarenessContextsEqual(dpicontexta.into_param().abi(), dpicontextb.into_param().abi()) + AreDpiAwarenessContextsEqual(dpicontexta.param().abi(), dpicontextb.param().abi()) } #[inline] pub unsafe fn EnableNonClientDpiScaling(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnableNonClientDpiScaling(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - EnableNonClientDpiScaling(hwnd.into_param().abi()).ok() + EnableNonClientDpiScaling(hwnd.param().abi()).ok() } #[inline] pub unsafe fn GetAwarenessFromDpiAwarenessContext(value: P0) -> DPI_AWARENESS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetAwarenessFromDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS); - GetAwarenessFromDpiAwarenessContext(value.into_param().abi()) + GetAwarenessFromDpiAwarenessContext(value.param().abi()) } #[inline] pub unsafe fn GetDialogControlDpiChangeBehavior(hwnd: P0) -> DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDialogControlDpiChangeBehavior(hwnd : super::super::Foundation:: HWND) -> DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS); - GetDialogControlDpiChangeBehavior(hwnd.into_param().abi()) + GetDialogControlDpiChangeBehavior(hwnd.param().abi()) } #[inline] pub unsafe fn GetDialogDpiChangeBehavior(hdlg: P0) -> DIALOG_DPI_CHANGE_BEHAVIORS where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDialogDpiChangeBehavior(hdlg : super::super::Foundation:: HWND) -> DIALOG_DPI_CHANGE_BEHAVIORS); - GetDialogDpiChangeBehavior(hdlg.into_param().abi()) + GetDialogDpiChangeBehavior(hdlg.param().abi()) } #[inline] pub unsafe fn GetDpiAwarenessContextForProcess(hprocess: P0) -> DPI_AWARENESS_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDpiAwarenessContextForProcess(hprocess : super::super::Foundation:: HANDLE) -> DPI_AWARENESS_CONTEXT); - GetDpiAwarenessContextForProcess(hprocess.into_param().abi()) + GetDpiAwarenessContextForProcess(hprocess.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetDpiForMonitor(hmonitor: P0, dpitype: MONITOR_DPI_TYPE, dpix: *mut u32, dpiy: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hmonitor.into_param().abi(), dpitype, dpix, dpiy).ok() + GetDpiForMonitor(hmonitor.param().abi(), dpitype, dpix, dpiy).ok() } #[inline] pub unsafe fn GetDpiForSystem() -> u32 { @@ -73,35 +73,35 @@ pub unsafe fn GetDpiForSystem() -> u32 { #[inline] pub unsafe fn GetDpiForWindow(hwnd: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDpiForWindow(hwnd : super::super::Foundation:: HWND) -> u32); - GetDpiForWindow(hwnd.into_param().abi()) + GetDpiForWindow(hwnd.param().abi()) } #[inline] pub unsafe fn GetDpiFromDpiAwarenessContext(value: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDpiFromDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> u32); - GetDpiFromDpiAwarenessContext(value.into_param().abi()) + GetDpiFromDpiAwarenessContext(value.param().abi()) } #[inline] pub unsafe fn GetProcessDpiAwareness(hprocess: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn GetProcessDpiAwareness(hprocess : super::super::Foundation:: HANDLE, value : *mut PROCESS_DPI_AWARENESS) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetProcessDpiAwareness(hprocess.into_param().abi(), &mut result__).map(|| result__) + GetProcessDpiAwareness(hprocess.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetSystemDpiForProcess(hprocess: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetSystemDpiForProcess(hprocess : super::super::Foundation:: HANDLE) -> u32); - GetSystemDpiForProcess(hprocess.into_param().abi()) + GetSystemDpiForProcess(hprocess.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -122,68 +122,68 @@ pub unsafe fn GetThreadDpiHostingBehavior() -> DPI_HOSTING_BEHAVIOR { #[inline] pub unsafe fn GetWindowDpiAwarenessContext(hwnd: P0) -> DPI_AWARENESS_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowDpiAwarenessContext(hwnd : super::super::Foundation:: HWND) -> DPI_AWARENESS_CONTEXT); - GetWindowDpiAwarenessContext(hwnd.into_param().abi()) + GetWindowDpiAwarenessContext(hwnd.param().abi()) } #[inline] pub unsafe fn GetWindowDpiHostingBehavior(hwnd: P0) -> DPI_HOSTING_BEHAVIOR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowDpiHostingBehavior(hwnd : super::super::Foundation:: HWND) -> DPI_HOSTING_BEHAVIOR); - GetWindowDpiHostingBehavior(hwnd.into_param().abi()) + GetWindowDpiHostingBehavior(hwnd.param().abi()) } #[inline] pub unsafe fn IsValidDpiAwarenessContext(value: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsValidDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); - IsValidDpiAwarenessContext(value.into_param().abi()) + IsValidDpiAwarenessContext(value.param().abi()) } #[inline] pub unsafe fn LogicalToPhysicalPointForPerMonitorDPI(hwnd: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LogicalToPhysicalPointForPerMonitorDPI(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - LogicalToPhysicalPointForPerMonitorDPI(hwnd.into_param().abi(), lppoint) + LogicalToPhysicalPointForPerMonitorDPI(hwnd.param().abi(), lppoint) } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn OpenThemeDataForDpi(hwnd: P0, pszclasslist: P1, dpi: u32) -> super::Controls::HTHEME where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszclasslist.into_param().abi(), dpi) + OpenThemeDataForDpi(hwnd.param().abi(), pszclasslist.param().abi(), dpi) } #[inline] pub unsafe fn PhysicalToLogicalPointForPerMonitorDPI(hwnd: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn PhysicalToLogicalPointForPerMonitorDPI(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - PhysicalToLogicalPointForPerMonitorDPI(hwnd.into_param().abi(), lppoint) + PhysicalToLogicalPointForPerMonitorDPI(hwnd.param().abi(), lppoint) } #[inline] pub unsafe fn SetDialogControlDpiChangeBehavior(hwnd: P0, mask: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, values: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), mask, values).ok() + SetDialogControlDpiChangeBehavior(hwnd.param().abi(), mask, values).ok() } #[inline] pub unsafe fn SetDialogDpiChangeBehavior(hdlg: P0, mask: DIALOG_DPI_CHANGE_BEHAVIORS, values: DIALOG_DPI_CHANGE_BEHAVIORS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdlg.into_param().abi(), mask, values).ok() + SetDialogDpiChangeBehavior(hdlg.param().abi(), mask, values).ok() } #[inline] pub unsafe fn SetProcessDpiAwareness(value: PROCESS_DPI_AWARENESS) -> windows_core::Result<()> { @@ -193,18 +193,18 @@ pub unsafe fn SetProcessDpiAwareness(value: PROCESS_DPI_AWARENESS) -> windows_co #[inline] pub unsafe fn SetProcessDpiAwarenessContext(value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetProcessDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); - SetProcessDpiAwarenessContext(value.into_param().abi()).ok() + SetProcessDpiAwarenessContext(value.param().abi()).ok() } #[inline] pub unsafe fn SetThreadDpiAwarenessContext(dpicontext: P0) -> DPI_AWARENESS_CONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetThreadDpiAwarenessContext(dpicontext : DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS_CONTEXT); - SetThreadDpiAwarenessContext(dpicontext.into_param().abi()) + SetThreadDpiAwarenessContext(dpicontext.param().abi()) } #[inline] pub unsafe fn SetThreadDpiHostingBehavior(value: DPI_HOSTING_BEHAVIOR) -> DPI_HOSTING_BEHAVIOR { 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 d418ae5ab4..2ec25f5b07 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 @@ -2,41 +2,41 @@ #[inline] pub unsafe fn ImmAssociateContext(param0: P0, param1: P1) -> super::super::super::Globalization::HIMC where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmAssociateContext(param0 : super::super::super::Foundation:: HWND, param1 : super::super::super::Globalization:: HIMC) -> super::super::super::Globalization:: HIMC); - ImmAssociateContext(param0.into_param().abi(), param1.into_param().abi()) + ImmAssociateContext(param0.param().abi(), param1.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmAssociateContextEx(param0: P0, param1: P1, param2: u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmAssociateContextEx(param0 : super::super::super::Foundation:: HWND, param1 : super::super::super::Globalization:: HIMC, param2 : u32) -> super::super::super::Foundation:: BOOL); - ImmAssociateContextEx(param0.into_param().abi(), param1.into_param().abi(), param2) + ImmAssociateContextEx(param0.param().abi(), param1.param().abi(), param2) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmConfigureIMEA(param0: P0, param1: P1, param2: u32, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEA(param0 : super::super::TextServices:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - ImmConfigureIMEA(param0.into_param().abi(), param1.into_param().abi(), param2, param3) + ImmConfigureIMEA(param0.param().abi(), param1.param().abi(), param2, param3) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmConfigureIMEW(param0: P0, param1: P1, param2: u32, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEW(param0 : super::super::TextServices:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); - ImmConfigureIMEW(param0.into_param().abi(), param1.into_param().abi(), param2, param3) + ImmConfigureIMEW(param0.param().abi(), param1.param().abi(), param2, param3) } #[cfg(feature = "Win32_Globalization")] #[inline] @@ -53,36 +53,36 @@ pub unsafe fn ImmCreateIMCC(param0: u32) -> super::super::super::Globalization:: #[inline] pub unsafe fn ImmCreateSoftKeyboard(param0: u32, param1: P0, param2: i32, param3: i32) -> super::super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(param0, param1.into_param().abi(), param2, param3) + ImmCreateSoftKeyboard(param0, param1.param().abi(), param2, param3) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmDestroyContext(param0: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmDestroyContext(param0 : super::super::super::Globalization:: HIMC) -> super::super::super::Foundation:: BOOL); - ImmDestroyContext(param0.into_param().abi()) + ImmDestroyContext(param0.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmDestroyIMCC(param0: P0) -> super::super::super::Globalization::HIMCC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmDestroyIMCC(param0 : super::super::super::Globalization:: HIMCC) -> super::super::super::Globalization:: HIMCC); - ImmDestroyIMCC(param0.into_param().abi()) + ImmDestroyIMCC(param0.param().abi()) } #[inline] pub unsafe fn ImmDestroySoftKeyboard(param0: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmDestroySoftKeyboard(param0 : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - ImmDestroySoftKeyboard(param0.into_param().abi()) + ImmDestroySoftKeyboard(param0.param().abi()) } #[inline] pub unsafe fn ImmDisableIME(param0: u32) -> super::super::super::Foundation::BOOL { @@ -103,235 +103,235 @@ pub unsafe fn ImmDisableTextFrameService(idthread: u32) -> super::super::super:: #[inline] pub unsafe fn ImmEnumInputContext(idthread: u32, lpfn: IMCENUMPROC, lparam: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmEnumInputContext(idthread : u32, lpfn : IMCENUMPROC, lparam : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: BOOL); - ImmEnumInputContext(idthread, lpfn, lparam.into_param().abi()) + ImmEnumInputContext(idthread, lpfn, lparam.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmEnumRegisterWordA(param0: P0, param1: REGISTERWORDENUMPROCA, lpszreading: P1, param3: u32, lpszregister: P2, param5: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmEnumRegisterWordA(param0 : super::super::TextServices:: HKL, param1 : REGISTERWORDENUMPROCA, lpszreading : windows_core::PCSTR, param3 : u32, lpszregister : windows_core::PCSTR, param5 : *mut core::ffi::c_void) -> u32); - ImmEnumRegisterWordA(param0.into_param().abi(), param1, lpszreading.into_param().abi(), param3, lpszregister.into_param().abi(), param5) + ImmEnumRegisterWordA(param0.param().abi(), param1, lpszreading.param().abi(), param3, lpszregister.param().abi(), param5) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmEnumRegisterWordW(param0: P0, param1: REGISTERWORDENUMPROCW, lpszreading: P1, param3: u32, lpszregister: P2, param5: *mut core::ffi::c_void) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmEnumRegisterWordW(param0 : super::super::TextServices:: HKL, param1 : REGISTERWORDENUMPROCW, lpszreading : windows_core::PCWSTR, param3 : u32, lpszregister : windows_core::PCWSTR, param5 : *mut core::ffi::c_void) -> u32); - ImmEnumRegisterWordW(param0.into_param().abi(), param1, lpszreading.into_param().abi(), param3, lpszregister.into_param().abi(), param5) + ImmEnumRegisterWordW(param0.param().abi(), param1, lpszreading.param().abi(), param3, lpszregister.param().abi(), param5) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] #[inline] pub unsafe fn ImmEscapeA(param0: P0, param1: P1, param2: IME_ESCAPE, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmEscapeA(param0 : super::super::TextServices:: HKL, param1 : super::super::super::Globalization:: HIMC, param2 : IME_ESCAPE, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: LRESULT); - ImmEscapeA(param0.into_param().abi(), param1.into_param().abi(), param2, param3) + ImmEscapeA(param0.param().abi(), param1.param().abi(), param2, param3) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] #[inline] pub unsafe fn ImmEscapeW(param0: P0, param1: P1, param2: IME_ESCAPE, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmEscapeW(param0 : super::super::TextServices:: HKL, param1 : super::super::super::Globalization:: HIMC, param2 : IME_ESCAPE, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: LRESULT); - ImmEscapeW(param0.into_param().abi(), param1.into_param().abi(), param2, param3) + ImmEscapeW(param0.param().abi(), param1.param().abi(), param2, param3) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGenerateMessage(param0: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGenerateMessage(param0 : super::super::super::Globalization:: HIMC) -> super::super::super::Foundation:: BOOL); - ImmGenerateMessage(param0.into_param().abi()) + ImmGenerateMessage(param0.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCandidateListA(param0: P0, deindex: u32, lpcandlist: Option<*mut CANDIDATELIST>, dwbuflen: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListA(param0 : super::super::super::Globalization:: HIMC, deindex : u32, lpcandlist : *mut CANDIDATELIST, dwbuflen : u32) -> u32); - ImmGetCandidateListA(param0.into_param().abi(), deindex, core::mem::transmute(lpcandlist.unwrap_or(std::ptr::null_mut())), dwbuflen) + ImmGetCandidateListA(param0.param().abi(), deindex, core::mem::transmute(lpcandlist.unwrap_or(std::ptr::null_mut())), dwbuflen) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCandidateListCountA(param0: P0, lpdwlistcount: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListCountA(param0 : super::super::super::Globalization:: HIMC, lpdwlistcount : *mut u32) -> u32); - ImmGetCandidateListCountA(param0.into_param().abi(), lpdwlistcount) + ImmGetCandidateListCountA(param0.param().abi(), lpdwlistcount) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCandidateListCountW(param0: P0, lpdwlistcount: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListCountW(param0 : super::super::super::Globalization:: HIMC, lpdwlistcount : *mut u32) -> u32); - ImmGetCandidateListCountW(param0.into_param().abi(), lpdwlistcount) + ImmGetCandidateListCountW(param0.param().abi(), lpdwlistcount) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCandidateListW(param0: P0, deindex: u32, lpcandlist: Option<*mut CANDIDATELIST>, dwbuflen: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateListW(param0 : super::super::super::Globalization:: HIMC, deindex : u32, lpcandlist : *mut CANDIDATELIST, dwbuflen : u32) -> u32); - ImmGetCandidateListW(param0.into_param().abi(), deindex, core::mem::transmute(lpcandlist.unwrap_or(std::ptr::null_mut())), dwbuflen) + ImmGetCandidateListW(param0.param().abi(), deindex, core::mem::transmute(lpcandlist.unwrap_or(std::ptr::null_mut())), dwbuflen) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCandidateWindow(param0: P0, param1: u32, lpcandidate: *mut CANDIDATEFORM) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateWindow(param0 : super::super::super::Globalization:: HIMC, param1 : u32, lpcandidate : *mut CANDIDATEFORM) -> super::super::super::Foundation:: BOOL); - ImmGetCandidateWindow(param0.into_param().abi(), param1, lpcandidate) + ImmGetCandidateWindow(param0.param().abi(), param1, lpcandidate) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn ImmGetCompositionFontA(param0: P0, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontA(param0 : super::super::super::Globalization:: HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTA) -> super::super::super::Foundation:: BOOL); - ImmGetCompositionFontA(param0.into_param().abi(), lplf) + ImmGetCompositionFontA(param0.param().abi(), lplf) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn ImmGetCompositionFontW(param0: P0, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontW(param0 : super::super::super::Globalization:: HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTW) -> super::super::super::Foundation:: BOOL); - ImmGetCompositionFontW(param0.into_param().abi(), lplf) + ImmGetCompositionFontW(param0.param().abi(), lplf) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCompositionStringA(param0: P0, param1: IME_COMPOSITION_STRING, lpbuf: Option<*mut core::ffi::c_void>, dwbuflen: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionStringA(param0 : super::super::super::Globalization:: HIMC, param1 : IME_COMPOSITION_STRING, lpbuf : *mut core::ffi::c_void, dwbuflen : u32) -> i32); - ImmGetCompositionStringA(param0.into_param().abi(), param1, core::mem::transmute(lpbuf.unwrap_or(std::ptr::null_mut())), dwbuflen) + ImmGetCompositionStringA(param0.param().abi(), param1, core::mem::transmute(lpbuf.unwrap_or(std::ptr::null_mut())), dwbuflen) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCompositionStringW(param0: P0, param1: IME_COMPOSITION_STRING, lpbuf: Option<*mut core::ffi::c_void>, dwbuflen: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionStringW(param0 : super::super::super::Globalization:: HIMC, param1 : IME_COMPOSITION_STRING, lpbuf : *mut core::ffi::c_void, dwbuflen : u32) -> i32); - ImmGetCompositionStringW(param0.into_param().abi(), param1, core::mem::transmute(lpbuf.unwrap_or(std::ptr::null_mut())), dwbuflen) + ImmGetCompositionStringW(param0.param().abi(), param1, core::mem::transmute(lpbuf.unwrap_or(std::ptr::null_mut())), dwbuflen) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetCompositionWindow(param0: P0, lpcompform: *mut COMPOSITIONFORM) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionWindow(param0 : super::super::super::Globalization:: HIMC, lpcompform : *mut COMPOSITIONFORM) -> super::super::super::Foundation:: BOOL); - ImmGetCompositionWindow(param0.into_param().abi(), lpcompform) + ImmGetCompositionWindow(param0.param().abi(), lpcompform) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetContext(param0: P0) -> super::super::super::Globalization::HIMC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetContext(param0 : super::super::super::Foundation:: HWND) -> super::super::super::Globalization:: HIMC); - ImmGetContext(param0.into_param().abi()) + ImmGetContext(param0.param().abi()) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] #[inline] pub unsafe fn ImmGetConversionListA(param0: P0, param1: P1, lpsrc: P2, lpdst: *mut CANDIDATELIST, dwbuflen: u32, uflag: GET_CONVERSION_LIST_FLAG) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetConversionListA(param0 : super::super::TextServices:: HKL, param1 : super::super::super::Globalization:: HIMC, lpsrc : windows_core::PCSTR, lpdst : *mut CANDIDATELIST, dwbuflen : u32, uflag : GET_CONVERSION_LIST_FLAG) -> u32); - ImmGetConversionListA(param0.into_param().abi(), param1.into_param().abi(), lpsrc.into_param().abi(), lpdst, dwbuflen, uflag) + ImmGetConversionListA(param0.param().abi(), param1.param().abi(), lpsrc.param().abi(), lpdst, dwbuflen, uflag) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] #[inline] pub unsafe fn ImmGetConversionListW(param0: P0, param1: P1, lpsrc: P2, lpdst: *mut CANDIDATELIST, dwbuflen: u32, uflag: GET_CONVERSION_LIST_FLAG) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetConversionListW(param0 : super::super::TextServices:: HKL, param1 : super::super::super::Globalization:: HIMC, lpsrc : windows_core::PCWSTR, lpdst : *mut CANDIDATELIST, dwbuflen : u32, uflag : GET_CONVERSION_LIST_FLAG) -> u32); - ImmGetConversionListW(param0.into_param().abi(), param1.into_param().abi(), lpsrc.into_param().abi(), lpdst, dwbuflen, uflag) + ImmGetConversionListW(param0.param().abi(), param1.param().abi(), lpsrc.param().abi(), lpdst, dwbuflen, uflag) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetConversionStatus(param0: P0, lpfdwconversion: Option<*mut IME_CONVERSION_MODE>, lpfdwsentence: Option<*mut IME_SENTENCE_MODE>) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetConversionStatus(param0 : super::super::super::Globalization:: HIMC, lpfdwconversion : *mut IME_CONVERSION_MODE, lpfdwsentence : *mut IME_SENTENCE_MODE) -> super::super::super::Foundation:: BOOL); - ImmGetConversionStatus(param0.into_param().abi(), core::mem::transmute(lpfdwconversion.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpfdwsentence.unwrap_or(std::ptr::null_mut()))) + ImmGetConversionStatus(param0.param().abi(), core::mem::transmute(lpfdwconversion.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpfdwsentence.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn ImmGetDefaultIMEWnd(param0: P0) -> super::super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetDefaultIMEWnd(param0 : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: HWND); - ImmGetDefaultIMEWnd(param0.into_param().abi()) + ImmGetDefaultIMEWnd(param0.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmGetDescriptionA(param0: P0, lpszdescription: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetDescriptionA(param0 : super::super::TextServices:: HKL, lpszdescription : windows_core::PSTR, ubuflen : u32) -> u32); - ImmGetDescriptionA(param0.into_param().abi(), 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.param().abi(), 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_TextServices")] #[inline] pub unsafe fn ImmGetDescriptionW(param0: P0, lpszdescription: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetDescriptionW(param0 : super::super::TextServices:: HKL, lpszdescription : windows_core::PWSTR, ubuflen : u32) -> u32); - ImmGetDescriptionW(param0.into_param().abi(), 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.param().abi(), 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_Globalization")] #[inline] pub unsafe fn ImmGetGuideLineA(param0: P0, dwindex: GET_GUIDE_LINE_TYPE, lpbuf: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetGuideLineA(param0 : super::super::super::Globalization:: HIMC, dwindex : GET_GUIDE_LINE_TYPE, lpbuf : windows_core::PSTR, dwbuflen : u32) -> u32); - ImmGetGuideLineA(param0.into_param().abi(), 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.param().abi(), 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())) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetGuideLineW(param0: P0, dwindex: GET_GUIDE_LINE_TYPE, lpbuf: windows_core::PWSTR, dwbuflen: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetGuideLineW(param0 : super::super::super::Globalization:: HIMC, dwindex : GET_GUIDE_LINE_TYPE, lpbuf : windows_core::PWSTR, dwbuflen : u32) -> u32); - ImmGetGuideLineW(param0.into_param().abi(), dwindex, core::mem::transmute(lpbuf), dwbuflen) + ImmGetGuideLineW(param0.param().abi(), dwindex, core::mem::transmute(lpbuf), dwbuflen) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] @@ -343,403 +343,403 @@ pub unsafe fn ImmGetHotKey(param0: u32, lpumodifiers: *mut u32, lpuvkey: *mut u3 #[inline] pub unsafe fn ImmGetIMCCLockCount(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetIMCCLockCount(param0 : super::super::super::Globalization:: HIMCC) -> u32); - ImmGetIMCCLockCount(param0.into_param().abi()) + ImmGetIMCCLockCount(param0.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetIMCCSize(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetIMCCSize(param0 : super::super::super::Globalization:: HIMCC) -> u32); - ImmGetIMCCSize(param0.into_param().abi()) + ImmGetIMCCSize(param0.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetIMCLockCount(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetIMCLockCount(param0 : super::super::super::Globalization:: HIMC) -> u32); - ImmGetIMCLockCount(param0.into_param().abi()) + ImmGetIMCLockCount(param0.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmGetIMEFileNameA(param0: P0, lpszfilename: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetIMEFileNameA(param0 : super::super::TextServices:: HKL, lpszfilename : windows_core::PSTR, ubuflen : u32) -> u32); - ImmGetIMEFileNameA(param0.into_param().abi(), 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.param().abi(), 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_TextServices")] #[inline] pub unsafe fn ImmGetIMEFileNameW(param0: P0, lpszfilename: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetIMEFileNameW(param0 : super::super::TextServices:: HKL, lpszfilename : windows_core::PWSTR, ubuflen : u32) -> u32); - ImmGetIMEFileNameW(param0.into_param().abi(), 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.param().abi(), 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(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn ImmGetImeMenuItemsA(param0: P0, param1: u32, param2: u32, lpimeparentmenu: Option<*mut IMEMENUITEMINFOA>, lpimemenu: Option<*mut IMEMENUITEMINFOA>, dwsize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetImeMenuItemsA(param0 : super::super::super::Globalization:: HIMC, param1 : u32, param2 : u32, lpimeparentmenu : *mut IMEMENUITEMINFOA, lpimemenu : *mut IMEMENUITEMINFOA, dwsize : u32) -> u32); - ImmGetImeMenuItemsA(param0.into_param().abi(), param1, param2, core::mem::transmute(lpimeparentmenu.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpimemenu.unwrap_or(std::ptr::null_mut())), dwsize) + ImmGetImeMenuItemsA(param0.param().abi(), param1, param2, core::mem::transmute(lpimeparentmenu.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpimemenu.unwrap_or(std::ptr::null_mut())), dwsize) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn ImmGetImeMenuItemsW(param0: P0, param1: u32, param2: u32, lpimeparentmenu: Option<*mut IMEMENUITEMINFOW>, lpimemenu: Option<*mut IMEMENUITEMINFOW>, dwsize: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetImeMenuItemsW(param0 : super::super::super::Globalization:: HIMC, param1 : u32, param2 : u32, lpimeparentmenu : *mut IMEMENUITEMINFOW, lpimemenu : *mut IMEMENUITEMINFOW, dwsize : u32) -> u32); - ImmGetImeMenuItemsW(param0.into_param().abi(), param1, param2, core::mem::transmute(lpimeparentmenu.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpimemenu.unwrap_or(std::ptr::null_mut())), dwsize) + ImmGetImeMenuItemsW(param0.param().abi(), param1, param2, core::mem::transmute(lpimeparentmenu.unwrap_or(std::ptr::null_mut())), core::mem::transmute(lpimemenu.unwrap_or(std::ptr::null_mut())), dwsize) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetOpenStatus(param0: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetOpenStatus(param0 : super::super::super::Globalization:: HIMC) -> super::super::super::Foundation:: BOOL); - ImmGetOpenStatus(param0.into_param().abi()) + ImmGetOpenStatus(param0.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmGetProperty(param0: P0, param1: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetProperty(param0 : super::super::TextServices:: HKL, param1 : u32) -> u32); - ImmGetProperty(param0.into_param().abi(), param1) + ImmGetProperty(param0.param().abi(), param1) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmGetRegisterWordStyleA(param0: P0, lpstylebuf: &mut [STYLEBUFA]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetRegisterWordStyleA(param0 : super::super::TextServices:: HKL, nitem : u32, lpstylebuf : *mut STYLEBUFA) -> u32); - ImmGetRegisterWordStyleA(param0.into_param().abi(), lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) + ImmGetRegisterWordStyleA(param0.param().abi(), lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmGetRegisterWordStyleW(param0: P0, lpstylebuf: &mut [STYLEBUFW]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetRegisterWordStyleW(param0 : super::super::TextServices:: HKL, nitem : u32, lpstylebuf : *mut STYLEBUFW) -> u32); - ImmGetRegisterWordStyleW(param0.into_param().abi(), lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) + ImmGetRegisterWordStyleW(param0.param().abi(), lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmGetStatusWindowPos(param0: P0, lpptpos: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetStatusWindowPos(param0 : super::super::super::Globalization:: HIMC, lpptpos : *mut super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); - ImmGetStatusWindowPos(param0.into_param().abi(), lpptpos) + ImmGetStatusWindowPos(param0.param().abi(), lpptpos) } #[inline] pub unsafe fn ImmGetVirtualKey(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmGetVirtualKey(param0 : super::super::super::Foundation:: HWND) -> u32); - ImmGetVirtualKey(param0.into_param().abi()) + ImmGetVirtualKey(param0.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmInstallIMEA(lpszimefilename: P0, lpszlayouttext: P1) -> super::super::TextServices::HKL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmInstallIMEA(lpszimefilename : windows_core::PCSTR, lpszlayouttext : windows_core::PCSTR) -> super::super::TextServices:: HKL); - ImmInstallIMEA(lpszimefilename.into_param().abi(), lpszlayouttext.into_param().abi()) + ImmInstallIMEA(lpszimefilename.param().abi(), lpszlayouttext.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmInstallIMEW(lpszimefilename: P0, lpszlayouttext: P1) -> super::super::TextServices::HKL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmInstallIMEW(lpszimefilename : windows_core::PCWSTR, lpszlayouttext : windows_core::PCWSTR) -> super::super::TextServices:: HKL); - ImmInstallIMEW(lpszimefilename.into_param().abi(), lpszlayouttext.into_param().abi()) + ImmInstallIMEW(lpszimefilename.param().abi(), lpszlayouttext.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmIsIME(param0: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmIsIME(param0 : super::super::TextServices:: HKL) -> super::super::super::Foundation:: BOOL); - ImmIsIME(param0.into_param().abi()) + ImmIsIME(param0.param().abi()) } #[inline] pub unsafe fn ImmIsUIMessageA(param0: P0, param1: u32, param2: P1, param3: P2) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(param0.into_param().abi(), param1, param2.into_param().abi(), param3.into_param().abi()) + ImmIsUIMessageA(param0.param().abi(), param1, param2.param().abi(), param3.param().abi()) } #[inline] pub unsafe fn ImmIsUIMessageW(param0: P0, param1: u32, param2: P1, param3: P2) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(param0.into_param().abi(), param1, param2.into_param().abi(), param3.into_param().abi()) + ImmIsUIMessageW(param0.param().abi(), param1, param2.param().abi(), param3.param().abi()) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn ImmLockIMC(param0: P0) -> *mut INPUTCONTEXT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmLockIMC(param0 : super::super::super::Globalization:: HIMC) -> *mut INPUTCONTEXT); - ImmLockIMC(param0.into_param().abi()) + ImmLockIMC(param0.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmLockIMCC(param0: P0) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmLockIMCC(param0 : super::super::super::Globalization:: HIMCC) -> *mut core::ffi::c_void); - ImmLockIMCC(param0.into_param().abi()) + ImmLockIMCC(param0.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmNotifyIME(param0: P0, dwaction: NOTIFY_IME_ACTION, dwindex: NOTIFY_IME_INDEX, dwvalue: u32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmNotifyIME(param0 : super::super::super::Globalization:: HIMC, dwaction : NOTIFY_IME_ACTION, dwindex : NOTIFY_IME_INDEX, dwvalue : u32) -> super::super::super::Foundation:: BOOL); - ImmNotifyIME(param0.into_param().abi(), dwaction, dwindex, dwvalue) + ImmNotifyIME(param0.param().abi(), dwaction, dwindex, dwvalue) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmReSizeIMCC(param0: P0, param1: u32) -> super::super::super::Globalization::HIMCC where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmReSizeIMCC(param0 : super::super::super::Globalization:: HIMCC, param1 : u32) -> super::super::super::Globalization:: HIMCC); - ImmReSizeIMCC(param0.into_param().abi(), param1) + ImmReSizeIMCC(param0.param().abi(), param1) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmRegisterWordA(param0: P0, lpszreading: P1, param2: u32, lpszregister: P2) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordA(param0 : super::super::TextServices:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszregister : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - ImmRegisterWordA(param0.into_param().abi(), lpszreading.into_param().abi(), param2, lpszregister.into_param().abi()) + ImmRegisterWordA(param0.param().abi(), lpszreading.param().abi(), param2, lpszregister.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmRegisterWordW(param0: P0, lpszreading: P1, param2: u32, lpszregister: P2) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordW(param0 : super::super::TextServices:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszregister : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - ImmRegisterWordW(param0.into_param().abi(), lpszreading.into_param().abi(), param2, lpszregister.into_param().abi()) + ImmRegisterWordW(param0.param().abi(), lpszreading.param().abi(), param2, lpszregister.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmReleaseContext(param0: P0, param1: P1) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmReleaseContext(param0 : super::super::super::Foundation:: HWND, param1 : super::super::super::Globalization:: HIMC) -> super::super::super::Foundation:: BOOL); - ImmReleaseContext(param0.into_param().abi(), param1.into_param().abi()) + ImmReleaseContext(param0.param().abi(), param1.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmRequestMessageA(param0: P0, param1: P1, param2: P2) -> super::super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmRequestMessageA(param0 : super::super::super::Globalization:: HIMC, param1 : super::super::super::Foundation:: WPARAM, param2 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: LRESULT); - ImmRequestMessageA(param0.into_param().abi(), param1.into_param().abi(), param2.into_param().abi()) + ImmRequestMessageA(param0.param().abi(), param1.param().abi(), param2.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmRequestMessageW(param0: P0, param1: P1, param2: P2) -> super::super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmRequestMessageW(param0 : super::super::super::Globalization:: HIMC, param1 : super::super::super::Foundation:: WPARAM, param2 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: LRESULT); - ImmRequestMessageW(param0.into_param().abi(), param1.into_param().abi(), param2.into_param().abi()) + ImmRequestMessageW(param0.param().abi(), param1.param().abi(), param2.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmSetCandidateWindow(param0: P0, lpcandidate: *const CANDIDATEFORM) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetCandidateWindow(param0 : super::super::super::Globalization:: HIMC, lpcandidate : *const CANDIDATEFORM) -> super::super::super::Foundation:: BOOL); - ImmSetCandidateWindow(param0.into_param().abi(), lpcandidate) + ImmSetCandidateWindow(param0.param().abi(), lpcandidate) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn ImmSetCompositionFontA(param0: P0, lplf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontA(param0 : super::super::super::Globalization:: HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTA) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionFontA(param0.into_param().abi(), lplf) + ImmSetCompositionFontA(param0.param().abi(), lplf) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn ImmSetCompositionFontW(param0: P0, lplf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontW(param0 : super::super::super::Globalization:: HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTW) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionFontW(param0.into_param().abi(), lplf) + ImmSetCompositionFontW(param0.param().abi(), lplf) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmSetCompositionStringA(param0: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringA(param0 : super::super::super::Globalization:: 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(param0.into_param().abi(), dwindex, core::mem::transmute(lpcomp.unwrap_or(std::ptr::null())), dwcomplen, core::mem::transmute(lpread.unwrap_or(std::ptr::null())), dwreadlen) + ImmSetCompositionStringA(param0.param().abi(), dwindex, core::mem::transmute(lpcomp.unwrap_or(std::ptr::null())), dwcomplen, core::mem::transmute(lpread.unwrap_or(std::ptr::null())), dwreadlen) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmSetCompositionStringW(param0: P0, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringW(param0 : super::super::super::Globalization:: 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(param0.into_param().abi(), dwindex, core::mem::transmute(lpcomp.unwrap_or(std::ptr::null())), dwcomplen, core::mem::transmute(lpread.unwrap_or(std::ptr::null())), dwreadlen) + ImmSetCompositionStringW(param0.param().abi(), dwindex, core::mem::transmute(lpcomp.unwrap_or(std::ptr::null())), dwcomplen, core::mem::transmute(lpread.unwrap_or(std::ptr::null())), dwreadlen) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmSetCompositionWindow(param0: P0, lpcompform: *const COMPOSITIONFORM) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionWindow(param0 : super::super::super::Globalization:: HIMC, lpcompform : *const COMPOSITIONFORM) -> super::super::super::Foundation:: BOOL); - ImmSetCompositionWindow(param0.into_param().abi(), lpcompform) + ImmSetCompositionWindow(param0.param().abi(), lpcompform) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmSetConversionStatus(param0: P0, param1: IME_CONVERSION_MODE, param2: IME_SENTENCE_MODE) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetConversionStatus(param0 : super::super::super::Globalization:: HIMC, param1 : IME_CONVERSION_MODE, param2 : IME_SENTENCE_MODE) -> super::super::super::Foundation:: BOOL); - ImmSetConversionStatus(param0.into_param().abi(), param1, param2) + ImmSetConversionStatus(param0.param().abi(), param1, param2) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmSetHotKey(param0: u32, param1: u32, param2: u32, param3: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetHotKey(param0 : u32, param1 : u32, param2 : u32, param3 : super::super::TextServices:: HKL) -> super::super::super::Foundation:: BOOL); - ImmSetHotKey(param0, param1, param2, param3.into_param().abi()) + ImmSetHotKey(param0, param1, param2, param3.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmSetOpenStatus(param0: P0, param1: P1) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetOpenStatus(param0 : super::super::super::Globalization:: HIMC, param1 : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - ImmSetOpenStatus(param0.into_param().abi(), param1.into_param().abi()) + ImmSetOpenStatus(param0.param().abi(), param1.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmSetStatusWindowPos(param0: P0, lpptpos: *const super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSetStatusWindowPos(param0 : super::super::super::Globalization:: HIMC, lpptpos : *const super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); - ImmSetStatusWindowPos(param0.into_param().abi(), lpptpos) + ImmSetStatusWindowPos(param0.param().abi(), lpptpos) } #[inline] pub unsafe fn ImmShowSoftKeyboard(param0: P0, param1: i32) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmShowSoftKeyboard(param0 : super::super::super::Foundation:: HWND, param1 : i32) -> super::super::super::Foundation:: BOOL); - ImmShowSoftKeyboard(param0.into_param().abi(), param1) + ImmShowSoftKeyboard(param0.param().abi(), param1) } #[inline] pub unsafe fn ImmSimulateHotKey(param0: P0, param1: IME_HOTKEY_IDENTIFIER) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmSimulateHotKey(param0 : super::super::super::Foundation:: HWND, param1 : IME_HOTKEY_IDENTIFIER) -> super::super::super::Foundation:: BOOL); - ImmSimulateHotKey(param0.into_param().abi(), param1) + ImmSimulateHotKey(param0.param().abi(), param1) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmUnlockIMC(param0: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMC(param0 : super::super::super::Globalization:: HIMC) -> super::super::super::Foundation:: BOOL); - ImmUnlockIMC(param0.into_param().abi()) + ImmUnlockIMC(param0.param().abi()) } #[cfg(feature = "Win32_Globalization")] #[inline] pub unsafe fn ImmUnlockIMCC(param0: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMCC(param0 : super::super::super::Globalization:: HIMCC) -> super::super::super::Foundation:: BOOL); - ImmUnlockIMCC(param0.into_param().abi()) + ImmUnlockIMCC(param0.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmUnregisterWordA(param0: P0, lpszreading: P1, param2: u32, lpszunregister: P2) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordA(param0 : super::super::TextServices:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszunregister : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); - ImmUnregisterWordA(param0.into_param().abi(), lpszreading.into_param().abi(), param2, lpszunregister.into_param().abi()) + ImmUnregisterWordA(param0.param().abi(), lpszreading.param().abi(), param2, lpszunregister.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn ImmUnregisterWordW(param0: P0, lpszreading: P1, param2: u32, lpszunregister: P2) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordW(param0 : super::super::TextServices:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszunregister : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); - ImmUnregisterWordW(param0.into_param().abi(), lpszreading.into_param().abi(), param2, lpszunregister.into_param().abi()) + ImmUnregisterWordW(param0.param().abi(), lpszreading.param().abi(), param2, lpszunregister.param().abi()) } windows_core::imp::define_interface!(IActiveIME, IActiveIME_Vtbl, 0x6fe20962_d077_11d0_8fe7_00aa006bcc59); windows_core::imp::interface_hierarchy!(IActiveIME, windows_core::IUnknown); @@ -750,18 +750,18 @@ impl IActiveIME { #[cfg(feature = "Win32_Globalization")] pub unsafe fn ConversionList(&self, himc: P0, szsource: P1, uflag: u32, ubuflen: u32, pdest: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConversionList)(windows_core::Interface::as_raw(self), himc.into_param().abi(), szsource.into_param().abi(), uflag, ubuflen, pdest, pucopied).ok() + (windows_core::Interface::vtable(self).ConversionList)(windows_core::Interface::as_raw(self), himc.param().abi(), szsource.param().abi(), uflag, ubuflen, pdest, pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn Configure(&self, hkl: P0, hwnd: P1, dwmode: u32, pregisterword: *const REGISTERWORDW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), hwnd.into_param().abi(), dwmode, pregisterword).ok() + (windows_core::Interface::vtable(self).Configure)(windows_core::Interface::as_raw(self), hkl.param().abi(), hwnd.param().abi(), 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), ureserved).ok() @@ -769,78 +769,78 @@ impl IActiveIME { #[cfg(feature = "Win32_Globalization")] pub unsafe fn Escape(&self, himc: P0, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), himc.into_param().abi(), uescape, pdata, plresult).ok() + (windows_core::Interface::vtable(self).Escape)(windows_core::Interface::as_raw(self), himc.param().abi(), uescape, pdata, plresult).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetActiveContext(&self, himc: P0, fflag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveContext)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActiveContext)(windows_core::Interface::as_raw(self), himc.param().abi(), fflag.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn ProcessKey(&self, himc: P0, uvirkey: u32, lparam: u32, pbkeystate: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessKey)(windows_core::Interface::as_raw(self), himc.into_param().abi(), uvirkey, lparam, pbkeystate).ok() + (windows_core::Interface::vtable(self).ProcessKey)(windows_core::Interface::as_raw(self), himc.param().abi(), uvirkey, lparam, pbkeystate).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn Notify(&self, himc: P0, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwaction, dwindex, dwvalue).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), himc.param().abi(), dwaction, dwindex, dwvalue).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn Select(&self, himc: P0, fselect: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fselect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), himc.param().abi(), fselect.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionString(&self, himc: P0, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionString)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() + (windows_core::Interface::vtable(self).SetCompositionString)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn ToAsciiEx(&self, uvirkey: u32, uscancode: u32, pbkeystate: *const u8, fustate: u32, himc: P0, pdwtransbuf: *mut u32, pusize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ToAsciiEx)(windows_core::Interface::as_raw(self), uvirkey, uscancode, pbkeystate, fustate, himc.into_param().abi(), pdwtransbuf, pusize).ok() + (windows_core::Interface::vtable(self).ToAsciiEx)(windows_core::Interface::as_raw(self), uvirkey, uscancode, pbkeystate, fustate, himc.param().abi(), pdwtransbuf, pusize).ok() } pub unsafe fn RegisterWord(&self, szreading: P0, dwstyle: u32, szstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWord)(windows_core::Interface::as_raw(self), szreading.into_param().abi(), dwstyle, szstring.into_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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWord)(windows_core::Interface::as_raw(self), szreading.into_param().abi(), dwstyle, szstring.into_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), nitem, pstylebuf, pubufsize).ok() } pub unsafe fn EnumRegisterWord(&self, szreading: P0, dwstyle: u32, szregister: P1, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWord)(windows_core::Interface::as_raw(self), szreading.into_param().abi(), dwstyle, szregister.into_param().abi(), 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__ = std::mem::zeroed(); @@ -908,18 +908,18 @@ impl IActiveIME2 { #[cfg(feature = "Win32_Globalization")] pub unsafe fn ConversionList(&self, himc: P0, szsource: P1, uflag: u32, ubuflen: u32, pdest: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ConversionList)(windows_core::Interface::as_raw(self), himc.into_param().abi(), szsource.into_param().abi(), uflag, ubuflen, pdest, pucopied).ok() + (windows_core::Interface::vtable(self).base__.ConversionList)(windows_core::Interface::as_raw(self), himc.param().abi(), szsource.param().abi(), uflag, ubuflen, pdest, pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn Configure(&self, hkl: P0, hwnd: P1, dwmode: u32, pregisterword: *const REGISTERWORDW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Configure)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), hwnd.into_param().abi(), dwmode, pregisterword).ok() + (windows_core::Interface::vtable(self).base__.Configure)(windows_core::Interface::as_raw(self), hkl.param().abi(), hwnd.param().abi(), dwmode, pregisterword).ok() } pub unsafe fn Destroy(&self, ureserved: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Destroy)(windows_core::Interface::as_raw(self), ureserved).ok() @@ -927,78 +927,78 @@ impl IActiveIME2 { #[cfg(feature = "Win32_Globalization")] pub unsafe fn Escape(&self, himc: P0, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Escape)(windows_core::Interface::as_raw(self), himc.into_param().abi(), uescape, pdata, plresult).ok() + (windows_core::Interface::vtable(self).base__.Escape)(windows_core::Interface::as_raw(self), himc.param().abi(), uescape, pdata, plresult).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetActiveContext(&self, himc: P0, fflag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetActiveContext)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetActiveContext)(windows_core::Interface::as_raw(self), himc.param().abi(), fflag.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn ProcessKey(&self, himc: P0, uvirkey: u32, lparam: u32, pbkeystate: *const u8) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ProcessKey)(windows_core::Interface::as_raw(self), himc.into_param().abi(), uvirkey, lparam, pbkeystate).ok() + (windows_core::Interface::vtable(self).base__.ProcessKey)(windows_core::Interface::as_raw(self), himc.param().abi(), uvirkey, lparam, pbkeystate).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn Notify(&self, himc: P0, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwaction, dwindex, dwvalue).ok() + (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), himc.param().abi(), dwaction, dwindex, dwvalue).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn Select(&self, himc: P0, fselect: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Select)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fselect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Select)(windows_core::Interface::as_raw(self), himc.param().abi(), fselect.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionString(&self, himc: P0, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCompositionString)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() + (windows_core::Interface::vtable(self).base__.SetCompositionString)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn ToAsciiEx(&self, uvirkey: u32, uscancode: u32, pbkeystate: *const u8, fustate: u32, himc: P0, pdwtransbuf: *mut u32, pusize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ToAsciiEx)(windows_core::Interface::as_raw(self), uvirkey, uscancode, pbkeystate, fustate, himc.into_param().abi(), pdwtransbuf, pusize).ok() + (windows_core::Interface::vtable(self).base__.ToAsciiEx)(windows_core::Interface::as_raw(self), uvirkey, uscancode, pbkeystate, fustate, himc.param().abi(), pdwtransbuf, pusize).ok() } pub unsafe fn RegisterWord(&self, szreading: P0, dwstyle: u32, szstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterWord)(windows_core::Interface::as_raw(self), szreading.into_param().abi(), dwstyle, szstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterWord)(windows_core::Interface::as_raw(self), szreading.into_param().abi(), dwstyle, szstring.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetRegisterWordStyle)(windows_core::Interface::as_raw(self), nitem, pstylebuf, pubufsize).ok() } pub unsafe fn EnumRegisterWord(&self, szreading: P0, dwstyle: u32, szregister: P1, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.EnumRegisterWord)(windows_core::Interface::as_raw(self), szreading.into_param().abi(), dwstyle, szregister.into_param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -1013,9 +1013,9 @@ impl IActiveIME2 { } pub unsafe fn Unsleep(&self, fdead: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unsleep)(windows_core::Interface::as_raw(self), fdead.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unsleep)(windows_core::Interface::as_raw(self), fdead.param().abi()).ok() } } #[repr(C)] @@ -1030,27 +1030,27 @@ impl IActiveIMMApp { #[cfg(feature = "Win32_Globalization")] pub unsafe fn AssociateContext(&self, hwnd: P0, hime: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hime.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), hwnd.param().abi(), hime.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn ConfigureIMEA(&self, hkl: P0, hwnd: P1, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), hwnd.into_param().abi(), dwmode, pdata).ok() + (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), hkl.param().abi(), hwnd.param().abi(), dwmode, pdata).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn ConfigureIMEW(&self, hkl: P0, hwnd: P1, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), hwnd.into_param().abi(), dwmode, pdata).ok() + (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), hkl.param().abi(), hwnd.param().abi(), dwmode, pdata).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn CreateContext(&self) -> windows_core::Result { @@ -1060,421 +1060,421 @@ impl IActiveIMMApp { #[cfg(feature = "Win32_Globalization")] pub unsafe fn DestroyContext(&self, hime: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), hime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), hime.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn EnumRegisterWordA(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn EnumRegisterWordW(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn EscapeA(&self, hkl: P0, himc: P1, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), uescape, pdata, plresult).ok() + (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), uescape, pdata, plresult).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn EscapeW(&self, hkl: P0, himc: P1, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), uescape, pdata, plresult).ok() + (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), uescape, pdata, plresult).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListA(&self, himc: P0, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() + (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListW(&self, himc: P0, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() + (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListCountA(&self, himc: P0, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pdwlistsize, pdwbuflen).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), himc.param().abi(), pdwlistsize, pdwbuflen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListCountW(&self, himc: P0, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pdwlistsize, pdwbuflen).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), himc.param().abi(), pdwlistsize, pdwbuflen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateWindow(&self, himc: P0, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcandidate).ok() + (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcandidate).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetCompositionFontA(&self, himc: P0, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetCompositionFontW(&self, himc: P0, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCompositionStringA(&self, himc: P0, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() + (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCompositionStringW(&self, himc: P0, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() + (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCompositionWindow(&self, himc: P0, pcompform: *mut COMPOSITIONFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pcompform).ok() + (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), pcompform).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetContext(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn GetConversionListA(&self, hkl: P0, himc: P1, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), psrc.into_param().abi(), ubuflen, uflag, pdst, pucopied).ok() + (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), psrc.param().abi(), ubuflen, uflag, pdst, pucopied).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn GetConversionListW(&self, hkl: P0, himc: P1, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), psrc.into_param().abi(), ubuflen, uflag, pdst, pucopied).ok() + (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), psrc.param().abi(), ubuflen, uflag, pdst, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetConversionStatus(&self, himc: P0, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pfdwconversion, pfdwsentence).ok() + (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), himc.param().abi(), pfdwconversion, pfdwsentence).ok() } pub unsafe fn GetDefaultIMEWnd(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetDescriptionA(&self, hkl: P0, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() + (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetDescriptionW(&self, hkl: P0, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() + (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetGuideLineA(&self, himc: P0, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() + (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetGuideLineW(&self, himc: P0, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() + (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetIMEFileNameA(&self, hkl: P0, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetIMEFileNameW(&self, hkl: P0, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetOpenStatus(&self, himc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), himc.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetProperty(&self, hkl: P0, fdwindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), fdwindex, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), hkl.param().abi(), fdwindex, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetRegisterWordStyleA(&self, hkl: P0, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), nitem, pstylebuf, pucopied).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), hkl.param().abi(), nitem, pstylebuf, pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetRegisterWordStyleW(&self, hkl: P0, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), nitem, pstylebuf, pucopied).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), hkl.param().abi(), nitem, pstylebuf, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetStatusWindowPos(&self, himc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetVirtualKey(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn InstallIMEA(&self, szimefilename: P0, szlayouttext: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstallIMEA)(windows_core::Interface::as_raw(self), szimefilename.into_param().abi(), szlayouttext.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InstallIMEA)(windows_core::Interface::as_raw(self), szimefilename.param().abi(), szlayouttext.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn InstallIMEW(&self, szimefilename: P0, szlayouttext: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstallIMEW)(windows_core::Interface::as_raw(self), szimefilename.into_param().abi(), szlayouttext.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InstallIMEW)(windows_core::Interface::as_raw(self), szimefilename.param().abi(), szlayouttext.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn IsIME(&self, hkl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), hkl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), hkl.param().abi()).ok() } pub unsafe fn IsUIMessageA(&self, hwndime: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), hwndime.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), hwndime.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn IsUIMessageW(&self, hwndime: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), hwndime.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), hwndime.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn NotifyIME(&self, himc: P0, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwaction, dwindex, dwvalue).ok() + (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), himc.param().abi(), dwaction, dwindex, dwvalue).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn RegisterWordA(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn RegisterWordW(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn ReleaseContext(&self, hwnd: P0, himc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), himc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), hwnd.param().abi(), himc.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCandidateWindow(&self, himc: P0, pcandidate: *const CANDIDATEFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pcandidate).ok() + (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), pcandidate).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn SetCompositionFontA(&self, himc: P0, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn SetCompositionFontW(&self, himc: P0, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionStringA(&self, himc: P0, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() + (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionStringW(&self, himc: P0, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() + (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionWindow(&self, himc: P0, pcompform: *const COMPOSITIONFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pcompform).ok() + (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), pcompform).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetConversionStatus(&self, himc: P0, fdwconversion: u32, fdwsentence: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fdwconversion, fdwsentence).ok() + (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), himc.param().abi(), fdwconversion, fdwsentence).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetOpenStatus(&self, himc: P0, fopen: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fopen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), himc.param().abi(), fopen.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetStatusWindowPos(&self, himc: P0, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pptpos).ok() + (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.param().abi(), pptpos).ok() } pub unsafe fn SimulateHotKey(&self, hwnd: P0, dwhotkeyid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), dwhotkeyid).ok() + (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), hwnd.param().abi(), dwhotkeyid).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn UnregisterWordA(&self, hkl: P0, szreading: P1, dwstyle: u32, szunregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szunregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn UnregisterWordW(&self, hkl: P0, szreading: P1, dwstyle: u32, szunregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szunregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } pub unsafe fn Activate(&self, frestorelayout: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), frestorelayout.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), frestorelayout.param().abi()).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn OnDefWindowProc(&self, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnDefWindowProc)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnDefWindowProc)(windows_core::Interface::as_raw(self), hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi(), &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), aaclasslist, usize).ok() @@ -1482,26 +1482,26 @@ impl IActiveIMMApp { #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetCodePageA(&self, hkl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), hkl.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetLangId(&self, hkl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), hkl.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Globalization")] pub unsafe fn AssociateContextEx(&self, hwnd: P0, himc: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), himc.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), hwnd.param().abi(), himc.param().abi(), dwflags).ok() } pub unsafe fn DisableIME(&self, idthread: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisableIME)(windows_core::Interface::as_raw(self), idthread).ok() @@ -1509,16 +1509,16 @@ impl IActiveIMMApp { #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetImeMenuItemsA(&self, himc: P0, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetImeMenuItemsW(&self, himc: P0, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() } pub unsafe fn EnumInputContext(&self, idthread: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1774,27 +1774,27 @@ impl IActiveIMMIME { #[cfg(feature = "Win32_Globalization")] pub unsafe fn AssociateContext(&self, hwnd: P0, hime: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hime.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AssociateContext)(windows_core::Interface::as_raw(self), hwnd.param().abi(), hime.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn ConfigureIMEA(&self, hkl: P0, hwnd: P1, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), hwnd.into_param().abi(), dwmode, pdata).ok() + (windows_core::Interface::vtable(self).ConfigureIMEA)(windows_core::Interface::as_raw(self), hkl.param().abi(), hwnd.param().abi(), dwmode, pdata).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn ConfigureIMEW(&self, hkl: P0, hwnd: P1, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), hwnd.into_param().abi(), dwmode, pdata).ok() + (windows_core::Interface::vtable(self).ConfigureIMEW)(windows_core::Interface::as_raw(self), hkl.param().abi(), hwnd.param().abi(), dwmode, pdata).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn CreateContext(&self) -> windows_core::Result { @@ -1804,433 +1804,433 @@ impl IActiveIMMIME { #[cfg(feature = "Win32_Globalization")] pub unsafe fn DestroyContext(&self, hime: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), hime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroyContext)(windows_core::Interface::as_raw(self), hime.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn EnumRegisterWordA(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordA)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn EnumRegisterWordW(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2, pdata: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumRegisterWordW)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi(), pdata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn EscapeA(&self, hkl: P0, himc: P1, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), uescape, pdata, plresult).ok() + (windows_core::Interface::vtable(self).EscapeA)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), uescape, pdata, plresult).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn EscapeW(&self, hkl: P0, himc: P1, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), uescape, pdata, plresult).ok() + (windows_core::Interface::vtable(self).EscapeW)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), uescape, pdata, plresult).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListA(&self, himc: P0, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() + (windows_core::Interface::vtable(self).GetCandidateListA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListW(&self, himc: P0, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() + (windows_core::Interface::vtable(self).GetCandidateListW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, ubuflen, pcandlist, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListCountA(&self, himc: P0, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pdwlistsize, pdwbuflen).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountA)(windows_core::Interface::as_raw(self), himc.param().abi(), pdwlistsize, pdwbuflen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateListCountW(&self, himc: P0, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pdwlistsize, pdwbuflen).ok() + (windows_core::Interface::vtable(self).GetCandidateListCountW)(windows_core::Interface::as_raw(self), himc.param().abi(), pdwlistsize, pdwbuflen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCandidateWindow(&self, himc: P0, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcandidate).ok() + (windows_core::Interface::vtable(self).GetCandidateWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcandidate).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetCompositionFontA(&self, himc: P0, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).GetCompositionFontA)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetCompositionFontW(&self, himc: P0, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).GetCompositionFontW)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCompositionStringA(&self, himc: P0, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() + (windows_core::Interface::vtable(self).GetCompositionStringA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCompositionStringW(&self, himc: P0, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() + (windows_core::Interface::vtable(self).GetCompositionStringW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, plcopied, pbuf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetCompositionWindow(&self, himc: P0, pcompform: *mut COMPOSITIONFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pcompform).ok() + (windows_core::Interface::vtable(self).GetCompositionWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), pcompform).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetContext(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetContext)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn GetConversionListA(&self, hkl: P0, himc: P1, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), psrc.into_param().abi(), ubuflen, uflag, pdst, pucopied).ok() + (windows_core::Interface::vtable(self).GetConversionListA)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), psrc.param().abi(), ubuflen, uflag, pdst, pucopied).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_UI_TextServices"))] pub unsafe fn GetConversionListW(&self, hkl: P0, himc: P1, psrc: P2, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), himc.into_param().abi(), psrc.into_param().abi(), ubuflen, uflag, pdst, pucopied).ok() + (windows_core::Interface::vtable(self).GetConversionListW)(windows_core::Interface::as_raw(self), hkl.param().abi(), himc.param().abi(), psrc.param().abi(), ubuflen, uflag, pdst, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetConversionStatus(&self, himc: P0, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pfdwconversion, pfdwsentence).ok() + (windows_core::Interface::vtable(self).GetConversionStatus)(windows_core::Interface::as_raw(self), himc.param().abi(), pfdwconversion, pfdwsentence).ok() } pub unsafe fn GetDefaultIMEWnd(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultIMEWnd)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetDescriptionA(&self, hkl: P0, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() + (windows_core::Interface::vtable(self).GetDescriptionA)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetDescriptionW(&self, hkl: P0, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() + (windows_core::Interface::vtable(self).GetDescriptionW)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szdescription), pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetGuideLineA(&self, himc: P0, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() + (windows_core::Interface::vtable(self).GetGuideLineA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetGuideLineW(&self, himc: P0, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() + (windows_core::Interface::vtable(self).GetGuideLineW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, dwbuflen, core::mem::transmute(pbuf), pdwresult).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetIMEFileNameA(&self, hkl: P0, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameA)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetIMEFileNameW(&self, hkl: P0, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() + (windows_core::Interface::vtable(self).GetIMEFileNameW)(windows_core::Interface::as_raw(self), hkl.param().abi(), ubuflen, core::mem::transmute(szfilename), pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetOpenStatus(&self, himc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetOpenStatus)(windows_core::Interface::as_raw(self), himc.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetProperty(&self, hkl: P0, fdwindex: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), fdwindex, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), hkl.param().abi(), fdwindex, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetRegisterWordStyleA(&self, hkl: P0, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), nitem, pstylebuf, pucopied).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleA)(windows_core::Interface::as_raw(self), hkl.param().abi(), nitem, pstylebuf, pucopied).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetRegisterWordStyleW(&self, hkl: P0, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), nitem, pstylebuf, pucopied).ok() + (windows_core::Interface::vtable(self).GetRegisterWordStyleW)(windows_core::Interface::as_raw(self), hkl.param().abi(), nitem, pstylebuf, pucopied).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetStatusWindowPos(&self, himc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetVirtualKey(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVirtualKey)(windows_core::Interface::as_raw(self), hwnd.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn InstallIMEA(&self, szimefilename: P0, szlayouttext: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstallIMEA)(windows_core::Interface::as_raw(self), szimefilename.into_param().abi(), szlayouttext.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InstallIMEA)(windows_core::Interface::as_raw(self), szimefilename.param().abi(), szlayouttext.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn InstallIMEW(&self, szimefilename: P0, szlayouttext: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstallIMEW)(windows_core::Interface::as_raw(self), szimefilename.into_param().abi(), szlayouttext.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).InstallIMEW)(windows_core::Interface::as_raw(self), szimefilename.param().abi(), szlayouttext.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn IsIME(&self, hkl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), hkl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsIME)(windows_core::Interface::as_raw(self), hkl.param().abi()).ok() } pub unsafe fn IsUIMessageA(&self, hwndime: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), hwndime.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsUIMessageA)(windows_core::Interface::as_raw(self), hwndime.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn IsUIMessageW(&self, hwndime: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), hwndime.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsUIMessageW)(windows_core::Interface::as_raw(self), hwndime.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn NotifyIME(&self, himc: P0, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwaction, dwindex, dwvalue).ok() + (windows_core::Interface::vtable(self).NotifyIME)(windows_core::Interface::as_raw(self), himc.param().abi(), dwaction, dwindex, dwvalue).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn RegisterWordA(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordA)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn RegisterWordW(&self, hkl: P0, szreading: P1, dwstyle: u32, szregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterWordW)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szregister.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn ReleaseContext(&self, hwnd: P0, himc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), himc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReleaseContext)(windows_core::Interface::as_raw(self), hwnd.param().abi(), himc.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCandidateWindow(&self, himc: P0, pcandidate: *const CANDIDATEFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pcandidate).ok() + (windows_core::Interface::vtable(self).SetCandidateWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), pcandidate).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn SetCompositionFontA(&self, himc: P0, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).SetCompositionFontA)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn SetCompositionFontW(&self, himc: P0, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), plf).ok() + (windows_core::Interface::vtable(self).SetCompositionFontW)(windows_core::Interface::as_raw(self), himc.param().abi(), plf).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionStringA(&self, himc: P0, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() + (windows_core::Interface::vtable(self).SetCompositionStringA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionStringW(&self, himc: P0, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() + (windows_core::Interface::vtable(self).SetCompositionStringW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwindex, pcomp, dwcomplen, pread, dwreadlen).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetCompositionWindow(&self, himc: P0, pcompform: *const COMPOSITIONFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pcompform).ok() + (windows_core::Interface::vtable(self).SetCompositionWindow)(windows_core::Interface::as_raw(self), himc.param().abi(), pcompform).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetConversionStatus(&self, himc: P0, fdwconversion: u32, fdwsentence: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fdwconversion, fdwsentence).ok() + (windows_core::Interface::vtable(self).SetConversionStatus)(windows_core::Interface::as_raw(self), himc.param().abi(), fdwconversion, fdwsentence).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetOpenStatus(&self, himc: P0, fopen: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), himc.into_param().abi(), fopen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOpenStatus)(windows_core::Interface::as_raw(self), himc.param().abi(), fopen.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn SetStatusWindowPos(&self, himc: P0, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.into_param().abi(), pptpos).ok() + (windows_core::Interface::vtable(self).SetStatusWindowPos)(windows_core::Interface::as_raw(self), himc.param().abi(), pptpos).ok() } pub unsafe fn SimulateHotKey(&self, hwnd: P0, dwhotkeyid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), dwhotkeyid).ok() + (windows_core::Interface::vtable(self).SimulateHotKey)(windows_core::Interface::as_raw(self), hwnd.param().abi(), dwhotkeyid).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn UnregisterWordA(&self, hkl: P0, szreading: P1, dwstyle: u32, szunregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szunregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordA)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn UnregisterWordW(&self, hkl: P0, szreading: P1, dwstyle: u32, szunregister: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), szreading.into_param().abi(), dwstyle, szunregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterWordW)(windows_core::Interface::as_raw(self), hkl.param().abi(), szreading.param().abi(), dwstyle, szunregister.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GenerateMessage(&self, himc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GenerateMessage)(windows_core::Interface::as_raw(self), himc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GenerateMessage)(windows_core::Interface::as_raw(self), himc.param().abi()).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn LockIMC(&self, himc: P0) -> windows_core::Result<*mut INPUTCONTEXT> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LockIMC)(windows_core::Interface::as_raw(self), himc.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LockIMC)(windows_core::Interface::as_raw(self), himc.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Globalization")] pub unsafe fn UnlockIMC(&self, himc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockIMC)(windows_core::Interface::as_raw(self), himc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnlockIMC)(windows_core::Interface::as_raw(self), himc.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetIMCLockCount(&self, himc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIMCLockCount)(windows_core::Interface::as_raw(self), himc.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIMCLockCount)(windows_core::Interface::as_raw(self), himc.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Globalization")] pub unsafe fn CreateIMCC(&self, dwsize: u32) -> windows_core::Result { @@ -2240,47 +2240,47 @@ impl IActiveIMMIME { #[cfg(feature = "Win32_Globalization")] pub unsafe fn DestroyIMCC(&self, himcc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroyIMCC)(windows_core::Interface::as_raw(self), himcc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroyIMCC)(windows_core::Interface::as_raw(self), himcc.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn LockIMCC(&self, himcc: P0, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LockIMCC)(windows_core::Interface::as_raw(self), himcc.into_param().abi(), ppv).ok() + (windows_core::Interface::vtable(self).LockIMCC)(windows_core::Interface::as_raw(self), himcc.param().abi(), ppv).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn UnlockIMCC(&self, himcc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnlockIMCC)(windows_core::Interface::as_raw(self), himcc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnlockIMCC)(windows_core::Interface::as_raw(self), himcc.param().abi()).ok() } #[cfg(feature = "Win32_Globalization")] pub unsafe fn ReSizeIMCC(&self, himcc: P0, dwsize: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReSizeIMCC)(windows_core::Interface::as_raw(self), himcc.into_param().abi(), dwsize, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ReSizeIMCC)(windows_core::Interface::as_raw(self), himcc.param().abi(), dwsize, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetIMCCSize(&self, himcc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIMCCSize)(windows_core::Interface::as_raw(self), himcc.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIMCCSize)(windows_core::Interface::as_raw(self), himcc.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Globalization")] pub unsafe fn GetIMCCLockCount(&self, himcc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIMCCLockCount)(windows_core::Interface::as_raw(self), himcc.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIMCCLockCount)(windows_core::Interface::as_raw(self), himcc.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetHotKey(&self, dwhotkeyid: u32, pumodifiers: *mut u32, puvkey: *mut u32, phkl: *mut super::super::TextServices::HKL) -> windows_core::Result<()> { @@ -2289,44 +2289,44 @@ impl IActiveIMMIME { #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn SetHotKey(&self, dwhotkeyid: u32, umodifiers: u32, uvkey: u32, hkl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHotKey)(windows_core::Interface::as_raw(self), dwhotkeyid, umodifiers, uvkey, hkl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHotKey)(windows_core::Interface::as_raw(self), dwhotkeyid, umodifiers, uvkey, hkl.param().abi()).ok() } pub unsafe fn CreateSoftKeyboard(&self, utype: u32, howner: P0, x: i32, y: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSoftKeyboard)(windows_core::Interface::as_raw(self), utype, howner.into_param().abi(), x, y, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CreateSoftKeyboard)(windows_core::Interface::as_raw(self), utype, howner.param().abi(), x, y, &mut result__).map(|| result__) } pub unsafe fn DestroySoftKeyboard(&self, hsoftkbdwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DestroySoftKeyboard)(windows_core::Interface::as_raw(self), hsoftkbdwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DestroySoftKeyboard)(windows_core::Interface::as_raw(self), hsoftkbdwnd.param().abi()).ok() } pub unsafe fn ShowSoftKeyboard(&self, hsoftkbdwnd: P0, ncmdshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowSoftKeyboard)(windows_core::Interface::as_raw(self), hsoftkbdwnd.into_param().abi(), ncmdshow).ok() + (windows_core::Interface::vtable(self).ShowSoftKeyboard)(windows_core::Interface::as_raw(self), hsoftkbdwnd.param().abi(), ncmdshow).ok() } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetCodePageA(&self, hkl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCodePageA)(windows_core::Interface::as_raw(self), hkl.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_TextServices")] pub unsafe fn GetLangId(&self, hkl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), hkl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetLangId)(windows_core::Interface::as_raw(self), hkl.param().abi(), &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), lgidime, bvk, bscan, dwflags, dwextrainfo).ok() @@ -2340,10 +2340,10 @@ impl IActiveIMMIME { #[cfg(feature = "Win32_Globalization")] pub unsafe fn AssociateContextEx(&self, hwnd: P0, himc: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), himc.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).AssociateContextEx)(windows_core::Interface::as_raw(self), hwnd.param().abi(), himc.param().abi(), dwflags).ok() } pub unsafe fn DisableIME(&self, idthread: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).DisableIME)(windows_core::Interface::as_raw(self), idthread).ok() @@ -2351,16 +2351,16 @@ impl IActiveIMMIME { #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetImeMenuItemsA(&self, himc: P0, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsA)(windows_core::Interface::as_raw(self), himc.param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() } #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetImeMenuItemsW(&self, himc: P0, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() + (windows_core::Interface::vtable(self).GetImeMenuItemsW)(windows_core::Interface::as_raw(self), himc.param().abi(), dwflags, dwtype, pimeparentmenu, pimemenu, dwsize, pdwresult).ok() } pub unsafe fn EnumInputContext(&self, idthread: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2369,40 +2369,40 @@ impl IActiveIMMIME { #[cfg(feature = "Win32_Globalization")] pub unsafe fn RequestMessageA(&self, himc: P0, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestMessageA)(windows_core::Interface::as_raw(self), himc.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestMessageA)(windows_core::Interface::as_raw(self), himc.param().abi(), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Globalization")] pub unsafe fn RequestMessageW(&self, himc: P0, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestMessageW)(windows_core::Interface::as_raw(self), himc.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestMessageW)(windows_core::Interface::as_raw(self), himc.param().abi(), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SendIMCA(&self, hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendIMCA)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SendIMCA)(windows_core::Interface::as_raw(self), hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SendIMCW(&self, hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SendIMCW)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SendIMCW)(windows_core::Interface::as_raw(self), hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi(), &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() @@ -2754,10 +2754,10 @@ windows_core::imp::interface_hierarchy!(IActiveIMMRegistrar, windows_core::IUnkn impl IActiveIMMRegistrar { pub unsafe fn RegisterIME(&self, rclsid: *const windows_core::GUID, lgid: u16, psziconfile: P0, pszdesc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterIME)(windows_core::Interface::as_raw(self), rclsid, lgid, psziconfile.into_param().abi(), pszdesc.into_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), rclsid).ok() @@ -2857,18 +2857,18 @@ impl IFEClassFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateInstance(&self, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateInstance)(windows_core::Interface::as_raw(self), punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LockServer(&self, flock: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LockServer)(windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LockServer)(windows_core::Interface::as_raw(self), flock.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2914,29 +2914,29 @@ impl IFEDictionary { } pub unsafe fn DisplayProperty(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayProperty)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisplayProperty)(windows_core::Interface::as_raw(self), hwnd.param().abi()).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), prgpostbl, pcpostbl).ok() } pub unsafe fn GetWords(&self, pwchfirst: P0, pwchlast: P1, pwchdisplay: P2, ulpos: u32, ulselect: u32, ulwordsrc: u32, pchbuffer: *mut u8, cbbuffer: u32, pcwrd: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetWords)(windows_core::Interface::as_raw(self), pwchfirst.into_param().abi(), pwchlast.into_param().abi(), pwchdisplay.into_param().abi(), ulpos, ulselect, ulwordsrc, pchbuffer, cbbuffer, 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, pchbuffer, cbbuffer, 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), pchbuffer, cbbuffer, pcwrd).ok() } pub unsafe fn Create(&self, pchdictpath: P0, pshf: *mut IMESHF) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pchdictpath.into_param().abi(), pshf).ok() + (windows_core::Interface::vtable(self).Create)(windows_core::Interface::as_raw(self), pchdictpath.param().abi(), pshf).ok() } pub unsafe fn SetHeader(&self, pshf: *mut IMESHF) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetHeader)(windows_core::Interface::as_raw(self), pshf).ok() @@ -2955,21 +2955,21 @@ impl IFEDictionary { } pub unsafe fn GetDependencies(&self, pwchkakarireading: P0, pwchkakaridisplay: P1, ulkakaripos: u32, pwchukereading: P2, pwchukedisplay: P3, ulukepos: u32, jrel: IMEREL, ulwordsrc: u32, pchbuffer: *mut u8, cbbuffer: u32, pcdp: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDependencies)(windows_core::Interface::as_raw(self), pwchkakarireading.into_param().abi(), pwchkakaridisplay.into_param().abi(), ulkakaripos, pwchukereading.into_param().abi(), pwchukedisplay.into_param().abi(), ulukepos, jrel, ulwordsrc, pchbuffer, cbbuffer, 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, pchbuffer, cbbuffer, 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), pchbuffer, cbbuffer, pcdp).ok() } pub unsafe fn ConvertFromOldMSIME(&self, pchdic: P0, pfnlog: PFNLOG, reg: IMEREG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertFromOldMSIME)(windows_core::Interface::as_raw(self), pchdic.into_param().abi(), pfnlog, 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() @@ -3007,24 +3007,24 @@ impl IFELanguage { } pub unsafe fn GetJMorphResult(&self, dwrequest: u32, dwcmode: u32, cwchinput: i32, pwchinput: P0, pfcinfo: *mut u32, ppresult: *mut *mut MORRSLT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetJMorphResult)(windows_core::Interface::as_raw(self), dwrequest, dwcmode, cwchinput, pwchinput.into_param().abi(), pfcinfo, ppresult).ok() + (windows_core::Interface::vtable(self).GetJMorphResult)(windows_core::Interface::as_raw(self), dwrequest, dwcmode, cwchinput, pwchinput.param().abi(), pfcinfo, 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), pdwcaps).ok() } pub unsafe fn GetPhonetic(&self, string: P0, start: i32, length: i32, phonetic: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPhonetic)(windows_core::Interface::as_raw(self), string.into_param().abi(), start, length, core::mem::transmute(phonetic)).ok() + (windows_core::Interface::vtable(self).GetPhonetic)(windows_core::Interface::as_raw(self), string.param().abi(), start, length, core::mem::transmute(phonetic)).ok() } pub unsafe fn GetConversion(&self, string: P0, start: i32, length: i32, result: *mut windows_core::BSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetConversion)(windows_core::Interface::as_raw(self), string.into_param().abi(), start, length, core::mem::transmute(result)).ok() + (windows_core::Interface::vtable(self).GetConversion)(windows_core::Interface::as_raw(self), string.param().abi(), start, length, core::mem::transmute(result)).ok() } } #[repr(C)] @@ -3042,11 +3042,11 @@ windows_core::imp::interface_hierarchy!(IImePad, windows_core::IUnknown); impl IImePad { pub unsafe fn Request(&self, piimepadapplet: P0, reqid: IME_PAD_REQUEST_FLAGS, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), piimepadapplet.into_param().abi(), reqid.0 as _, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Request)(windows_core::Interface::as_raw(self), piimepadapplet.param().abi(), reqid.0 as _, wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -3059,9 +3059,9 @@ windows_core::imp::interface_hierarchy!(IImePadApplet, windows_core::IUnknown); impl IImePadApplet { pub unsafe fn Initialize(&self, lpiimepad: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lpiimepad.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), lpiimepad.param().abi()).ok() } pub unsafe fn Terminate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Terminate)(windows_core::Interface::as_raw(self)).ok() @@ -3072,17 +3072,17 @@ impl IImePadApplet { } pub unsafe fn CreateUI(&self, hwndparent: P0, lpimeappletui: *mut IMEAPPLETUI) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateUI)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lpimeappletui).ok() + (windows_core::Interface::vtable(self).CreateUI)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), lpimeappletui).ok() } pub unsafe fn Notify(&self, lpimepad: P0, notify: i32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpimepad.into_param().abi(), notify, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), lpimepad.param().abi(), notify, wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -3106,9 +3106,9 @@ impl IImePlugInDictDictionaryList { } pub unsafe fn DeleteDictionary(&self, bstrdictionaryguid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteDictionary)(windows_core::Interface::as_raw(self), bstrdictionaryguid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteDictionary)(windows_core::Interface::as_raw(self), bstrdictionaryguid.param().abi()).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 cb664506a6..b60e715225 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 @@ -15,11 +15,11 @@ windows_core::imp::interface_hierarchy!(IInkD2DRenderer, windows_core::IUnknown) impl IInkD2DRenderer { pub unsafe fn Draw(&self, pd2d1devicecontext: P0, pinkstrokeiterable: P1, fhighcontrast: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), pd2d1devicecontext.into_param().abi(), pinkstrokeiterable.into_param().abi(), fhighcontrast.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), pd2d1devicecontext.param().abi(), pinkstrokeiterable.param().abi(), fhighcontrast.param().abi()).ok() } } #[repr(C)] @@ -32,10 +32,10 @@ windows_core::imp::interface_hierarchy!(IInkD2DRenderer2, windows_core::IUnknown impl IInkD2DRenderer2 { pub unsafe fn Draw(&self, pd2d1devicecontext: P0, pinkstrokeiterable: P1, highcontrastadjustment: INK_HIGH_CONTRAST_ADJUSTMENT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), pd2d1devicecontext.into_param().abi(), pinkstrokeiterable.into_param().abi(), highcontrastadjustment).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), pd2d1devicecontext.param().abi(), pinkstrokeiterable.param().abi(), highcontrastadjustment).ok() } } #[repr(C)] @@ -48,9 +48,9 @@ windows_core::imp::interface_hierarchy!(IInkDesktopHost, windows_core::IUnknown) impl IInkDesktopHost { pub unsafe fn QueueWorkItem(&self, workitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueueWorkItem)(windows_core::Interface::as_raw(self), workitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).QueueWorkItem)(windows_core::Interface::as_raw(self), workitem.param().abi()).ok() } pub unsafe fn CreateInkPresenter(&self) -> windows_core::Result where @@ -61,11 +61,11 @@ impl IInkDesktopHost { } pub unsafe fn CreateAndInitializeInkPresenter(&self, rootvisual: P0, width: f32, height: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateAndInitializeInkPresenter)(windows_core::Interface::as_raw(self), rootvisual.into_param().abi(), width, 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)] @@ -92,16 +92,16 @@ windows_core::imp::interface_hierarchy!(IInkPresenterDesktop, windows_core::IUnk impl IInkPresenterDesktop { pub unsafe fn SetRootVisual(&self, rootvisual: P0, device: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRootVisual)(windows_core::Interface::as_raw(self), rootvisual.into_param().abi(), device.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRootVisual)(windows_core::Interface::as_raw(self), rootvisual.param().abi(), device.param().abi()).ok() } pub unsafe fn SetCommitRequestHandler(&self, handler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCommitRequestHandler)(windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCommitRequestHandler)(windows_core::Interface::as_raw(self), handler.param().abi()).ok() } pub unsafe fn GetSize(&self, width: *mut f32, height: *mut f32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSize)(windows_core::Interface::as_raw(self), width, height).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 5c00bc1562..3d7686716a 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 @@ -2,36 +2,36 @@ #[inline] pub unsafe fn ActivateKeyboardLayout(hkl: P0, flags: ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ActivateKeyboardLayout(hkl : super::super::TextServices:: HKL, flags : ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> super::super::TextServices:: HKL); - let result__ = ActivateKeyboardLayout(hkl.into_param().abi(), flags); + let result__ = ActivateKeyboardLayout(hkl.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn BlockInput(fblockit: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn BlockInput(fblockit : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - BlockInput(fblockit.into_param().abi()).ok() + BlockInput(fblockit.param().abi()).ok() } #[inline] pub unsafe fn DragDetect(hwnd: P0, pt: super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(pt)) + DragDetect(hwnd.param().abi(), core::mem::transmute(pt)) } #[inline] pub unsafe fn EnableWindow(hwnd: P0, benable: P1) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), benable.into_param().abi()) + EnableWindow(hwnd.param().abi(), benable.param().abi()) } #[inline] pub unsafe fn GetActiveWindow() -> super::super::super::Foundation::HWND { @@ -123,29 +123,29 @@ pub unsafe fn GetMouseMovePointsEx(cbsize: u32, lppt: *const MOUSEMOVEPOINT, lpp #[inline] pub unsafe fn IsWindowEnabled(hwnd: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsWindowEnabled(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - IsWindowEnabled(hwnd.into_param().abi()) + IsWindowEnabled(hwnd.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn LoadKeyboardLayoutA(pwszklid: P0, flags: ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadKeyboardLayoutA(pwszklid : windows_core::PCSTR, flags : ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> super::super::TextServices:: HKL); - let result__ = LoadKeyboardLayoutA(pwszklid.into_param().abi(), flags); + let result__ = LoadKeyboardLayoutA(pwszklid.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn LoadKeyboardLayoutW(pwszklid: P0, flags: ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadKeyboardLayoutW(pwszklid : windows_core::PCWSTR, flags : ACTIVATE_KEYBOARD_LAYOUT_FLAGS) -> super::super::TextServices:: HKL); - let result__ = LoadKeyboardLayoutW(pwszklid.into_param().abi(), flags); + let result__ = LoadKeyboardLayoutW(pwszklid.param().abi(), flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -157,19 +157,19 @@ pub unsafe fn MapVirtualKeyA(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE) -> u32 #[inline] pub unsafe fn MapVirtualKeyExA(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE, dwhkl: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MapVirtualKeyExA(ucode : u32, umaptype : MAP_VIRTUAL_KEY_TYPE, dwhkl : super::super::TextServices:: HKL) -> u32); - MapVirtualKeyExA(ucode, umaptype, dwhkl.into_param().abi()) + MapVirtualKeyExA(ucode, umaptype, dwhkl.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn MapVirtualKeyExW(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE, dwhkl: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MapVirtualKeyExW(ucode : u32, umaptype : MAP_VIRTUAL_KEY_TYPE, dwhkl : super::super::TextServices:: HKL) -> u32); - MapVirtualKeyExW(ucode, umaptype, dwhkl.into_param().abi()) + MapVirtualKeyExW(ucode, umaptype, dwhkl.param().abi()) } #[inline] pub unsafe fn MapVirtualKeyW(ucode: u32, umaptype: MAP_VIRTUAL_KEY_TYPE) -> u32 { @@ -184,10 +184,10 @@ pub unsafe fn OemKeyScan(woemchar: u16) -> u32 { #[inline] pub unsafe fn RegisterHotKey(hwnd: P0, id: i32, fsmodifiers: HOT_KEY_MODIFIERS, vk: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), id, fsmodifiers, vk).ok() + RegisterHotKey(hwnd.param().abi(), id, fsmodifiers, vk).ok() } #[inline] pub unsafe fn ReleaseCapture() -> windows_core::Result<()> { @@ -202,18 +202,18 @@ pub unsafe fn SendInput(pinputs: &[INPUT], cbsize: i32) -> u32 { #[inline] pub unsafe fn SetActiveWindow(hwnd: P0) -> super::super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetActiveWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: HWND); - SetActiveWindow(hwnd.into_param().abi()) + SetActiveWindow(hwnd.param().abi()) } #[inline] pub unsafe fn SetCapture(hwnd: P0) -> super::super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetCapture(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: HWND); - SetCapture(hwnd.into_param().abi()) + SetCapture(hwnd.param().abi()) } #[inline] pub unsafe fn SetDoubleClickTime(param0: u32) -> windows_core::Result<()> { @@ -223,10 +223,10 @@ pub unsafe fn SetDoubleClickTime(param0: u32) -> windows_core::Result<()> { #[inline] pub unsafe fn SetFocus(hwnd: P0) -> super::super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetFocus(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: HWND); - SetFocus(hwnd.into_param().abi()) + SetFocus(hwnd.param().abi()) } #[inline] pub unsafe fn SetKeyboardState(lpkeystate: &[u8; 256]) -> windows_core::Result<()> { @@ -236,10 +236,10 @@ pub unsafe fn SetKeyboardState(lpkeystate: &[u8; 256]) -> windows_core::Result<( #[inline] pub unsafe fn SwapMouseButton(fswap: P0) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SwapMouseButton(fswap : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - SwapMouseButton(fswap.into_param().abi()) + SwapMouseButton(fswap.param().abi()) } #[inline] pub unsafe fn ToAscii(uvirtkey: u32, uscancode: u32, lpkeystate: Option<&[u8; 256]>, lpchar: *mut u16, uflags: u32) -> i32 { @@ -250,10 +250,10 @@ pub unsafe fn ToAscii(uvirtkey: u32, uscancode: u32, lpkeystate: Option<&[u8; 25 #[inline] pub unsafe fn ToAsciiEx(uvirtkey: u32, uscancode: u32, lpkeystate: Option<&[u8; 256]>, lpchar: *mut u16, uflags: u32, dwhkl: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ToAsciiEx(uvirtkey : u32, uscancode : u32, lpkeystate : *const u8, lpchar : *mut u16, uflags : u32, dwhkl : super::super::TextServices:: HKL) -> i32); - ToAsciiEx(uvirtkey, uscancode, core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpchar, uflags, dwhkl.into_param().abi()) + ToAsciiEx(uvirtkey, uscancode, core::mem::transmute(lpkeystate.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpchar, uflags, dwhkl.param().abi()) } #[inline] pub unsafe fn ToUnicode(wvirtkey: u32, wscancode: u32, lpkeystate: Option<&[u8; 256]>, pwszbuff: &mut [u16], wflags: u32) -> i32 { @@ -264,10 +264,10 @@ pub unsafe fn ToUnicode(wvirtkey: u32, wscancode: u32, lpkeystate: Option<&[u8; #[inline] pub unsafe fn ToUnicodeEx(wvirtkey: u32, wscancode: u32, lpkeystate: &[u8; 256], pwszbuff: &mut [u16], wflags: u32, dwhkl: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ToUnicodeEx(wvirtkey : u32, wscancode : u32, lpkeystate : *const u8, pwszbuff : windows_core::PWSTR, cchbuff : i32, wflags : u32, dwhkl : super::super::TextServices:: HKL) -> i32); - ToUnicodeEx(wvirtkey, wscancode, core::mem::transmute(lpkeystate.as_ptr()), core::mem::transmute(pwszbuff.as_ptr()), pwszbuff.len().try_into().unwrap(), wflags, dwhkl.into_param().abi()) + ToUnicodeEx(wvirtkey, wscancode, core::mem::transmute(lpkeystate.as_ptr()), core::mem::transmute(pwszbuff.as_ptr()), pwszbuff.len().try_into().unwrap(), wflags, dwhkl.param().abi()) } #[inline] pub unsafe fn TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> windows_core::Result<()> { @@ -278,18 +278,18 @@ pub unsafe fn TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> windows_cor #[inline] pub unsafe fn UnloadKeyboardLayout(hkl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnloadKeyboardLayout(hkl : super::super::TextServices:: HKL) -> super::super::super::Foundation:: BOOL); - UnloadKeyboardLayout(hkl.into_param().abi()).ok() + UnloadKeyboardLayout(hkl.param().abi()).ok() } #[inline] pub unsafe fn UnregisterHotKey(hwnd: P0, id: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterHotKey(hwnd : super::super::super::Foundation:: HWND, id : i32) -> super::super::super::Foundation:: BOOL); - UnregisterHotKey(hwnd.into_param().abi(), id).ok() + UnregisterHotKey(hwnd.param().abi(), id).ok() } #[inline] pub unsafe fn VkKeyScanA(ch: i8) -> i16 { @@ -300,19 +300,19 @@ pub unsafe fn VkKeyScanA(ch: i8) -> i16 { #[inline] pub unsafe fn VkKeyScanExA(ch: i8, dwhkl: P0) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn VkKeyScanExA(ch : i8, dwhkl : super::super::TextServices:: HKL) -> i16); - VkKeyScanExA(ch, dwhkl.into_param().abi()) + VkKeyScanExA(ch, dwhkl.param().abi()) } #[cfg(feature = "Win32_UI_TextServices")] #[inline] pub unsafe fn VkKeyScanExW(ch: u16, dwhkl: P0) -> i16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn VkKeyScanExW(ch : u16, dwhkl : super::super::TextServices:: HKL) -> i16); - VkKeyScanExW(ch, dwhkl.into_param().abi()) + VkKeyScanExW(ch, dwhkl.param().abi()) } #[inline] pub unsafe fn VkKeyScanW(ch: u16) -> i16 { 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 78b71c46d1..5bb4bc7de1 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 @@ -1,10 +1,10 @@ #[inline] pub unsafe fn EnableMouseInPointer(fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnableMouseInPointer(fenable : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); - EnableMouseInPointer(fenable.into_param().abi()).ok() + EnableMouseInPointer(fenable.param().abi()).ok() } #[inline] pub unsafe fn GetPointerCursorId(pointerid: u32, cursorid: *mut u32) -> windows_core::Result<()> { @@ -15,36 +15,36 @@ pub unsafe fn GetPointerCursorId(pointerid: u32, cursorid: *mut u32) -> windows_ #[inline] pub unsafe fn GetPointerDevice(device: P0, pointerdevice: *mut super::super::Controls::POINTER_DEVICE_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(device.into_param().abi(), pointerdevice).ok() + GetPointerDevice(device.param().abi(), pointerdevice).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetPointerDeviceCursors(device: P0, cursorcount: *mut u32, devicecursors: Option<*mut super::super::Controls::POINTER_DEVICE_CURSOR_INFO>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(device.into_param().abi(), cursorcount, core::mem::transmute(devicecursors.unwrap_or(std::ptr::null_mut()))).ok() + GetPointerDeviceCursors(device.param().abi(), cursorcount, core::mem::transmute(devicecursors.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetPointerDeviceProperties(device: P0, propertycount: *mut u32, pointerproperties: Option<*mut super::super::Controls::POINTER_DEVICE_PROPERTY>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(device.into_param().abi(), propertycount, core::mem::transmute(pointerproperties.unwrap_or(std::ptr::null_mut()))).ok() + GetPointerDeviceProperties(device.param().abi(), propertycount, core::mem::transmute(pointerproperties.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetPointerDeviceRects(device: P0, pointerdevicerect: *mut super::super::super::Foundation::RECT, displayrect: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(device.into_param().abi(), pointerdevicerect, displayrect).ok() + GetPointerDeviceRects(device.param().abi(), pointerdevicerect, displayrect).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] #[inline] @@ -155,10 +155,10 @@ pub unsafe fn InitializeTouchInjection(maxcount: u32, dwmode: TOUCH_FEEDBACK_MOD #[inline] pub unsafe fn InjectSyntheticPointerInput(device: P0, pointerinfo: &[super::super::Controls::POINTER_TYPE_INFO]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(device.into_param().abi(), core::mem::transmute(pointerinfo.as_ptr()), pointerinfo.len().try_into().unwrap()).ok() + InjectSyntheticPointerInput(device.param().abi(), core::mem::transmute(pointerinfo.as_ptr()), pointerinfo.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] 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 dee8575e98..0c65b72f8b 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 @@ -3,11 +3,11 @@ windows_core::imp::interface_hierarchy!(IRadialControllerConfigurationInterop, w impl IRadialControllerConfigurationInterop { pub unsafe fn GetForWindow(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -20,11 +20,11 @@ windows_core::imp::interface_hierarchy!(IRadialControllerIndependentInputSourceI impl IRadialControllerIndependentInputSourceInterop { pub unsafe fn CreateForWindow(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -37,11 +37,11 @@ windows_core::imp::interface_hierarchy!(IRadialControllerInterop, windows_core:: impl IRadialControllerInterop { pub unsafe fn CreateForWindow(&self, hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateForWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &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.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/UI/Input/Touch/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs index 93cd642dc5..2fb8d11b34 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,82 +1,82 @@ #[inline] pub unsafe fn CloseGestureInfoHandle(hgestureinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CloseGestureInfoHandle(hgestureinfo : HGESTUREINFO) -> super::super::super::Foundation:: BOOL); - CloseGestureInfoHandle(hgestureinfo.into_param().abi()).ok() + CloseGestureInfoHandle(hgestureinfo.param().abi()).ok() } #[inline] pub unsafe fn CloseTouchInputHandle(htouchinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CloseTouchInputHandle(htouchinput : HTOUCHINPUT) -> super::super::super::Foundation:: BOOL); - CloseTouchInputHandle(htouchinput.into_param().abi()).ok() + CloseTouchInputHandle(htouchinput.param().abi()).ok() } #[inline] pub unsafe fn GetGestureConfig(hwnd: P0, dwreserved: u32, dwflags: u32, pcids: *const u32, pgestureconfig: *mut GESTURECONFIG, cbsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), dwreserved, dwflags, pcids, pgestureconfig, cbsize).ok() + GetGestureConfig(hwnd.param().abi(), dwreserved, dwflags, pcids, pgestureconfig, cbsize).ok() } #[inline] pub unsafe fn GetGestureExtraArgs(hgestureinfo: P0, pextraargs: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetGestureExtraArgs(hgestureinfo : HGESTUREINFO, cbextraargs : u32, pextraargs : *mut u8) -> super::super::super::Foundation:: BOOL); - GetGestureExtraArgs(hgestureinfo.into_param().abi(), pextraargs.len().try_into().unwrap(), core::mem::transmute(pextraargs.as_ptr())).ok() + GetGestureExtraArgs(hgestureinfo.param().abi(), pextraargs.len().try_into().unwrap(), core::mem::transmute(pextraargs.as_ptr())).ok() } #[inline] pub unsafe fn GetGestureInfo(hgestureinfo: P0, pgestureinfo: *mut GESTUREINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetGestureInfo(hgestureinfo : HGESTUREINFO, pgestureinfo : *mut GESTUREINFO) -> super::super::super::Foundation:: BOOL); - GetGestureInfo(hgestureinfo.into_param().abi(), pgestureinfo).ok() + GetGestureInfo(hgestureinfo.param().abi(), pgestureinfo).ok() } #[inline] pub unsafe fn GetTouchInputInfo(htouchinput: P0, pinputs: &mut [TOUCHINPUT], cbsize: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetTouchInputInfo(htouchinput : HTOUCHINPUT, cinputs : u32, pinputs : *mut TOUCHINPUT, cbsize : i32) -> super::super::super::Foundation:: BOOL); - GetTouchInputInfo(htouchinput.into_param().abi(), pinputs.len().try_into().unwrap(), core::mem::transmute(pinputs.as_ptr()), cbsize).ok() + GetTouchInputInfo(htouchinput.param().abi(), pinputs.len().try_into().unwrap(), core::mem::transmute(pinputs.as_ptr()), cbsize).ok() } #[inline] pub unsafe fn IsTouchWindow(hwnd: P0, pulflags: Option<*mut u32>) -> super::super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsTouchWindow(hwnd : super::super::super::Foundation:: HWND, pulflags : *mut u32) -> super::super::super::Foundation:: BOOL); - IsTouchWindow(hwnd.into_param().abi(), core::mem::transmute(pulflags.unwrap_or(std::ptr::null_mut()))) + IsTouchWindow(hwnd.param().abi(), core::mem::transmute(pulflags.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn RegisterTouchWindow(hwnd: P0, ulflags: REGISTER_TOUCH_WINDOW_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), ulflags).ok() + RegisterTouchWindow(hwnd.param().abi(), ulflags).ok() } #[inline] pub unsafe fn SetGestureConfig(hwnd: P0, dwreserved: u32, pgestureconfig: &[GESTURECONFIG], cbsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), dwreserved, pgestureconfig.len().try_into().unwrap(), core::mem::transmute(pgestureconfig.as_ptr()), cbsize).ok() + SetGestureConfig(hwnd.param().abi(), dwreserved, pgestureconfig.len().try_into().unwrap(), core::mem::transmute(pgestureconfig.as_ptr()), cbsize).ok() } #[inline] pub unsafe fn UnregisterTouchWindow(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterTouchWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); - UnregisterTouchWindow(hwnd.into_param().abi()).ok() + UnregisterTouchWindow(hwnd.param().abi()).ok() } windows_core::imp::define_interface!(IInertiaProcessor, IInertiaProcessor_Vtbl, 0x18b00c6d_c5ee_41b1_90a9_9d4a929095ad); windows_core::imp::interface_hierarchy!(IInertiaProcessor, windows_core::IUnknown); 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 40304f8e99..1aa582cf64 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 @@ -1,10 +1,10 @@ #[inline] pub unsafe fn XInputEnable(enable: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("xinput1_4.dll" "system" fn XInputEnable(enable : super::super::super::Foundation:: BOOL)); - XInputEnable(enable.into_param().abi()) + XInputEnable(enable.param().abi()) } #[inline] pub unsafe fn XInputGetAudioDeviceIds(dwuserindex: u32, prenderdeviceid: windows_core::PWSTR, prendercount: Option<*mut u32>, pcapturedeviceid: windows_core::PWSTR, pcapturecount: Option<*mut u32>) -> u32 { 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 1ca232f80d..a93cb97a4c 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs @@ -35,26 +35,26 @@ pub unsafe fn GetRawInputBuffer(pdata: Option<*mut RAWINPUT>, pcbsize: *mut u32, #[inline] pub unsafe fn GetRawInputData(hrawinput: P0, uicommand: RAW_INPUT_DATA_COMMAND_FLAGS, pdata: Option<*mut core::ffi::c_void>, pcbsize: *mut u32, cbsizeheader: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrawinput.into_param().abi(), uicommand, core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), pcbsize, cbsizeheader) + GetRawInputData(hrawinput.param().abi(), uicommand, core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), pcbsize, cbsizeheader) } #[inline] pub unsafe fn GetRawInputDeviceInfoA(hdevice: P0, uicommand: RAW_INPUT_DEVICE_INFO_COMMAND, pdata: Option<*mut core::ffi::c_void>, pcbsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), uicommand, core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), pcbsize) + GetRawInputDeviceInfoA(hdevice.param().abi(), uicommand, core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), pcbsize) } #[inline] pub unsafe fn GetRawInputDeviceInfoW(hdevice: P0, uicommand: RAW_INPUT_DEVICE_INFO_COMMAND, pdata: Option<*mut core::ffi::c_void>, pcbsize: *mut u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdevice.into_param().abi(), uicommand, core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), pcbsize) + GetRawInputDeviceInfoW(hdevice.param().abi(), uicommand, core::mem::transmute(pdata.unwrap_or(std::ptr::null_mut())), pcbsize) } #[inline] pub unsafe fn GetRawInputDeviceList(prawinputdevicelist: Option<*mut RAWINPUTDEVICELIST>, puinumdevices: *mut u32, cbsize: u32) -> u32 { 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 32ebdbe6dd..bd41843bbb 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs @@ -1,19 +1,19 @@ #[inline] pub unsafe fn AddPointerInteractionContext(interactioncontext: P0, pointerid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn AddPointerInteractionContext(interactioncontext : HINTERACTIONCONTEXT, pointerid : u32) -> windows_core::HRESULT); - AddPointerInteractionContext(interactioncontext.into_param().abi(), pointerid).ok() + AddPointerInteractionContext(interactioncontext.param().abi(), pointerid).ok() } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn BufferPointerPacketsInteractionContext(interactioncontext: P0, pointerinfo: &[super::Input::Pointer::POINTER_INFO]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn BufferPointerPacketsInteractionContext(interactioncontext : HINTERACTIONCONTEXT, entriescount : u32, pointerinfo : *const super::Input::Pointer:: POINTER_INFO) -> windows_core::HRESULT); - BufferPointerPacketsInteractionContext(interactioncontext.into_param().abi(), pointerinfo.len().try_into().unwrap(), core::mem::transmute(pointerinfo.as_ptr())).ok() + BufferPointerPacketsInteractionContext(interactioncontext.param().abi(), pointerinfo.len().try_into().unwrap(), core::mem::transmute(pointerinfo.as_ptr())).ok() } #[inline] pub unsafe fn CreateInteractionContext() -> windows_core::Result { @@ -24,230 +24,230 @@ pub unsafe fn CreateInteractionContext() -> windows_core::Result(interactioncontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn DestroyInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - DestroyInteractionContext(interactioncontext.into_param().abi()).ok() + DestroyInteractionContext(interactioncontext.param().abi()).ok() } #[inline] pub unsafe fn GetCrossSlideParameterInteractionContext(interactioncontext: P0, threshold: CROSS_SLIDE_THRESHOLD) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetCrossSlideParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, threshold : CROSS_SLIDE_THRESHOLD, distance : *mut f32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetCrossSlideParameterInteractionContext(interactioncontext.into_param().abi(), threshold, &mut result__).map(|| result__) + GetCrossSlideParameterInteractionContext(interactioncontext.param().abi(), threshold, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetHoldParameterInteractionContext(interactioncontext: P0, parameter: HOLD_PARAMETER) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetHoldParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : HOLD_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetHoldParameterInteractionContext(interactioncontext.into_param().abi(), parameter, &mut result__).map(|| result__) + GetHoldParameterInteractionContext(interactioncontext.param().abi(), parameter, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetInertiaParameterInteractionContext(interactioncontext: P0, inertiaparameter: INERTIA_PARAMETER) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetInertiaParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, inertiaparameter : INERTIA_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetInertiaParameterInteractionContext(interactioncontext.into_param().abi(), inertiaparameter, &mut result__).map(|| result__) + GetInertiaParameterInteractionContext(interactioncontext.param().abi(), inertiaparameter, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetInteractionConfigurationInteractionContext(interactioncontext: P0, configuration: &mut [INTERACTION_CONTEXT_CONFIGURATION]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetInteractionConfigurationInteractionContext(interactioncontext : HINTERACTIONCONTEXT, configurationcount : u32, configuration : *mut INTERACTION_CONTEXT_CONFIGURATION) -> windows_core::HRESULT); - GetInteractionConfigurationInteractionContext(interactioncontext.into_param().abi(), configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() + GetInteractionConfigurationInteractionContext(interactioncontext.param().abi(), configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() } #[inline] pub unsafe fn GetMouseWheelParameterInteractionContext(interactioncontext: P0, parameter: MOUSE_WHEEL_PARAMETER) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetMouseWheelParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : MOUSE_WHEEL_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetMouseWheelParameterInteractionContext(interactioncontext.into_param().abi(), parameter, &mut result__).map(|| result__) + GetMouseWheelParameterInteractionContext(interactioncontext.param().abi(), parameter, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetPropertyInteractionContext(interactioncontext: P0, contextproperty: INTERACTION_CONTEXT_PROPERTY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetPropertyInteractionContext(interactioncontext : HINTERACTIONCONTEXT, contextproperty : INTERACTION_CONTEXT_PROPERTY, value : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetPropertyInteractionContext(interactioncontext.into_param().abi(), contextproperty, &mut result__).map(|| result__) + GetPropertyInteractionContext(interactioncontext.param().abi(), contextproperty, &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn GetStateInteractionContext(interactioncontext: P0, pointerinfo: Option<*const super::Input::Pointer::POINTER_INFO>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetStateInteractionContext(interactioncontext.into_param().abi(), core::mem::transmute(pointerinfo.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) + GetStateInteractionContext(interactioncontext.param().abi(), core::mem::transmute(pointerinfo.unwrap_or(std::ptr::null())), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetTapParameterInteractionContext(interactioncontext: P0, parameter: TAP_PARAMETER) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetTapParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TAP_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetTapParameterInteractionContext(interactioncontext.into_param().abi(), parameter, &mut result__).map(|| result__) + GetTapParameterInteractionContext(interactioncontext.param().abi(), parameter, &mut result__).map(|| result__) } #[inline] pub unsafe fn GetTranslationParameterInteractionContext(interactioncontext: P0, parameter: TRANSLATION_PARAMETER) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn GetTranslationParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TRANSLATION_PARAMETER, value : *mut f32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - GetTranslationParameterInteractionContext(interactioncontext.into_param().abi(), parameter, &mut result__).map(|| result__) + GetTranslationParameterInteractionContext(interactioncontext.param().abi(), parameter, &mut result__).map(|| result__) } #[inline] pub unsafe fn ProcessBufferedPacketsInteractionContext(interactioncontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn ProcessBufferedPacketsInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - ProcessBufferedPacketsInteractionContext(interactioncontext.into_param().abi()).ok() + ProcessBufferedPacketsInteractionContext(interactioncontext.param().abi()).ok() } #[inline] pub unsafe fn ProcessInertiaInteractionContext(interactioncontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn ProcessInertiaInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - ProcessInertiaInteractionContext(interactioncontext.into_param().abi()).ok() + ProcessInertiaInteractionContext(interactioncontext.param().abi()).ok() } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ProcessPointerFramesInteractionContext(interactioncontext: P0, entriescount: u32, pointercount: u32, pointerinfo: *const super::Input::Pointer::POINTER_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interactioncontext.into_param().abi(), entriescount, pointercount, pointerinfo).ok() + ProcessPointerFramesInteractionContext(interactioncontext.param().abi(), entriescount, pointercount, pointerinfo).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterOutputCallbackInteractionContext(interactioncontext: P0, outputcallback: INTERACTION_CONTEXT_OUTPUT_CALLBACK, clientdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interactioncontext.into_param().abi(), outputcallback, core::mem::transmute(clientdata.unwrap_or(std::ptr::null()))).ok() + RegisterOutputCallbackInteractionContext(interactioncontext.param().abi(), outputcallback, core::mem::transmute(clientdata.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterOutputCallbackInteractionContext2(interactioncontext: P0, outputcallback: INTERACTION_CONTEXT_OUTPUT_CALLBACK2, clientdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(interactioncontext.into_param().abi(), outputcallback, core::mem::transmute(clientdata.unwrap_or(std::ptr::null()))).ok() + RegisterOutputCallbackInteractionContext2(interactioncontext.param().abi(), outputcallback, core::mem::transmute(clientdata.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn RemovePointerInteractionContext(interactioncontext: P0, pointerid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn RemovePointerInteractionContext(interactioncontext : HINTERACTIONCONTEXT, pointerid : u32) -> windows_core::HRESULT); - RemovePointerInteractionContext(interactioncontext.into_param().abi(), pointerid).ok() + RemovePointerInteractionContext(interactioncontext.param().abi(), pointerid).ok() } #[inline] pub unsafe fn ResetInteractionContext(interactioncontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn ResetInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - ResetInteractionContext(interactioncontext.into_param().abi()).ok() + ResetInteractionContext(interactioncontext.param().abi()).ok() } #[inline] pub unsafe fn SetCrossSlideParametersInteractionContext(interactioncontext: P0, crossslideparameters: &[CROSS_SLIDE_PARAMETER]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetCrossSlideParametersInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parametercount : u32, crossslideparameters : *const CROSS_SLIDE_PARAMETER) -> windows_core::HRESULT); - SetCrossSlideParametersInteractionContext(interactioncontext.into_param().abi(), crossslideparameters.len().try_into().unwrap(), core::mem::transmute(crossslideparameters.as_ptr())).ok() + SetCrossSlideParametersInteractionContext(interactioncontext.param().abi(), crossslideparameters.len().try_into().unwrap(), core::mem::transmute(crossslideparameters.as_ptr())).ok() } #[inline] pub unsafe fn SetHoldParameterInteractionContext(interactioncontext: P0, parameter: HOLD_PARAMETER, value: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetHoldParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : HOLD_PARAMETER, value : f32) -> windows_core::HRESULT); - SetHoldParameterInteractionContext(interactioncontext.into_param().abi(), parameter, value).ok() + SetHoldParameterInteractionContext(interactioncontext.param().abi(), parameter, value).ok() } #[inline] pub unsafe fn SetInertiaParameterInteractionContext(interactioncontext: P0, inertiaparameter: INERTIA_PARAMETER, value: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetInertiaParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, inertiaparameter : INERTIA_PARAMETER, value : f32) -> windows_core::HRESULT); - SetInertiaParameterInteractionContext(interactioncontext.into_param().abi(), inertiaparameter, value).ok() + SetInertiaParameterInteractionContext(interactioncontext.param().abi(), inertiaparameter, value).ok() } #[inline] pub unsafe fn SetInteractionConfigurationInteractionContext(interactioncontext: P0, configuration: &[INTERACTION_CONTEXT_CONFIGURATION]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetInteractionConfigurationInteractionContext(interactioncontext : HINTERACTIONCONTEXT, configurationcount : u32, configuration : *const INTERACTION_CONTEXT_CONFIGURATION) -> windows_core::HRESULT); - SetInteractionConfigurationInteractionContext(interactioncontext.into_param().abi(), configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() + SetInteractionConfigurationInteractionContext(interactioncontext.param().abi(), configuration.len().try_into().unwrap(), core::mem::transmute(configuration.as_ptr())).ok() } #[inline] pub unsafe fn SetMouseWheelParameterInteractionContext(interactioncontext: P0, parameter: MOUSE_WHEEL_PARAMETER, value: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetMouseWheelParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : MOUSE_WHEEL_PARAMETER, value : f32) -> windows_core::HRESULT); - SetMouseWheelParameterInteractionContext(interactioncontext.into_param().abi(), parameter, value).ok() + SetMouseWheelParameterInteractionContext(interactioncontext.param().abi(), parameter, value).ok() } #[inline] pub unsafe fn SetPivotInteractionContext(interactioncontext: P0, x: f32, y: f32, radius: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetPivotInteractionContext(interactioncontext : HINTERACTIONCONTEXT, x : f32, y : f32, radius : f32) -> windows_core::HRESULT); - SetPivotInteractionContext(interactioncontext.into_param().abi(), x, y, radius).ok() + SetPivotInteractionContext(interactioncontext.param().abi(), x, y, radius).ok() } #[inline] pub unsafe fn SetPropertyInteractionContext(interactioncontext: P0, contextproperty: INTERACTION_CONTEXT_PROPERTY, value: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetPropertyInteractionContext(interactioncontext : HINTERACTIONCONTEXT, contextproperty : INTERACTION_CONTEXT_PROPERTY, value : u32) -> windows_core::HRESULT); - SetPropertyInteractionContext(interactioncontext.into_param().abi(), contextproperty, value).ok() + SetPropertyInteractionContext(interactioncontext.param().abi(), contextproperty, value).ok() } #[inline] pub unsafe fn SetTapParameterInteractionContext(interactioncontext: P0, parameter: TAP_PARAMETER, value: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetTapParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TAP_PARAMETER, value : f32) -> windows_core::HRESULT); - SetTapParameterInteractionContext(interactioncontext.into_param().abi(), parameter, value).ok() + SetTapParameterInteractionContext(interactioncontext.param().abi(), parameter, value).ok() } #[inline] pub unsafe fn SetTranslationParameterInteractionContext(interactioncontext: P0, parameter: TRANSLATION_PARAMETER, value: f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn SetTranslationParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TRANSLATION_PARAMETER, value : f32) -> windows_core::HRESULT); - SetTranslationParameterInteractionContext(interactioncontext.into_param().abi(), parameter, value).ok() + SetTranslationParameterInteractionContext(interactioncontext.param().abi(), parameter, value).ok() } #[inline] pub unsafe fn StopInteractionContext(interactioncontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ninput.dll" "system" fn StopInteractionContext(interactioncontext : HINTERACTIONCONTEXT) -> windows_core::HRESULT); - StopInteractionContext(interactioncontext.into_param().abi()).ok() + StopInteractionContext(interactioncontext.param().abi()).ok() } pub const CROSS_SLIDE_FLAGS_MAX: CROSS_SLIDE_FLAGS = CROSS_SLIDE_FLAGS(4294967295u32); pub const CROSS_SLIDE_FLAGS_NONE: CROSS_SLIDE_FLAGS = CROSS_SLIDE_FLAGS(0u32); 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 3994f63dd0..5c35fdd9f0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs @@ -13,9 +13,9 @@ impl IADesktopP2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn MakeDynamicChanges(&self, poleobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MakeDynamicChanges)(windows_core::Interface::as_raw(self), poleobj.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MakeDynamicChanges)(windows_core::Interface::as_raw(self), poleobj.param().abi()).ok() } } #[repr(C)] @@ -40,9 +40,9 @@ impl IActiveDesktopP { } pub unsafe fn SetScheme(&self, pwszschemename: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScheme)(windows_core::Interface::as_raw(self), pwszschemename.into_param().abi(), 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), pdwcchbuffer, dwflags).ok() @@ -62,9 +62,9 @@ impl IBriefcaseInitiator { #[cfg(feature = "Win32_System_Com")] pub unsafe fn IsMonikerInBriefcase(&self, pmk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsMonikerInBriefcase)(windows_core::Interface::as_raw(self), pmk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsMonikerInBriefcase)(windows_core::Interface::as_raw(self), pmk.param().abi()).ok() } } #[repr(C)] @@ -81,28 +81,28 @@ impl IEmptyVolumeCache { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn Initialize(&self, hkregkey: P0, pcwszvolume: P1, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hkregkey.into_param().abi(), pcwszvolume.into_param().abi(), ppwszdisplayname, ppwszdescription, pdwflags).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hkregkey.param().abi(), pcwszvolume.param().abi(), ppwszdisplayname, ppwszdescription, pdwflags).ok() } pub unsafe fn GetSpaceUsed(&self, pdwlspaceused: *mut u64, picb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetSpaceUsed)(windows_core::Interface::as_raw(self), pdwlspaceused, picb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetSpaceUsed)(windows_core::Interface::as_raw(self), pdwlspaceused, picb.param().abi()).ok() } pub unsafe fn Purge(&self, dwlspacetofree: u64, picb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Purge)(windows_core::Interface::as_raw(self), dwlspacetofree, picb.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -127,28 +127,28 @@ impl IEmptyVolumeCache2 { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn Initialize(&self, hkregkey: P0, pcwszvolume: P1, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), hkregkey.into_param().abi(), pcwszvolume.into_param().abi(), ppwszdisplayname, ppwszdescription, pdwflags).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), hkregkey.param().abi(), pcwszvolume.param().abi(), ppwszdisplayname, ppwszdescription, pdwflags).ok() } pub unsafe fn GetSpaceUsed(&self, pdwlspaceused: *mut u64, picb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetSpaceUsed)(windows_core::Interface::as_raw(self), pdwlspaceused, picb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.GetSpaceUsed)(windows_core::Interface::as_raw(self), pdwlspaceused, picb.param().abi()).ok() } pub unsafe fn Purge(&self, dwlspacetofree: u64, picb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Purge)(windows_core::Interface::as_raw(self), dwlspacetofree, picb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Purge)(windows_core::Interface::as_raw(self), dwlspacetofree, picb.param().abi()).ok() } pub unsafe fn ShowProperties(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShowProperties)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ShowProperties)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn Deactivate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -157,11 +157,11 @@ impl IEmptyVolumeCache2 { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn InitializeEx(&self, hkregkey: P0, pcwszvolume: P1, pcwszkeyname: P2, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, ppwszbtntext: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), hkregkey.into_param().abi(), pcwszvolume.into_param().abi(), pcwszkeyname.into_param().abi(), ppwszdisplayname, ppwszdescription, ppwszbtntext, pdwflags).ok() + (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), hkregkey.param().abi(), pcwszvolume.param().abi(), pcwszkeyname.param().abi(), ppwszdisplayname, ppwszdescription, ppwszbtntext, pdwflags).ok() } } #[repr(C)] @@ -177,15 +177,15 @@ windows_core::imp::interface_hierarchy!(IEmptyVolumeCacheCallBack, windows_core: impl IEmptyVolumeCacheCallBack { pub unsafe fn ScanProgress(&self, dwlspaceused: u64, dwflags: u32, pcwszstatus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScanProgress)(windows_core::Interface::as_raw(self), dwlspaceused, dwflags, pcwszstatus.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PurgeProgress)(windows_core::Interface::as_raw(self), dwlspacefreed, dwlspacetofree, dwflags, pcwszstatus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PurgeProgress)(windows_core::Interface::as_raw(self), dwlspacefreed, dwlspacetofree, dwflags, pcwszstatus.param().abi()).ok() } } #[repr(C)] @@ -200,12 +200,12 @@ impl IReconcilableObject { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Reconcile(&self, pinitiator: P0, dwflags: u32, hwndowner: P1, hwndprogressfeedback: P2, rgpmkotherinput: &mut [Option], ploutindex: *mut i32, pstgnewresidues: P3, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconcile)(windows_core::Interface::as_raw(self), pinitiator.into_param().abi(), dwflags, hwndowner.into_param().abi(), hwndprogressfeedback.into_param().abi(), rgpmkotherinput.len().try_into().unwrap(), core::mem::transmute(rgpmkotherinput.as_ptr()), ploutindex, pstgnewresidues.into_param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).Reconcile)(windows_core::Interface::as_raw(self), pinitiator.param().abi(), dwflags, hwndowner.param().abi(), hwndprogressfeedback.param().abi(), rgpmkotherinput.len().try_into().unwrap(), core::mem::transmute(rgpmkotherinput.as_ptr()), ploutindex, pstgnewresidues.param().abi(), core::mem::transmute(pvreserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn GetProgressFeedbackMaxEstimate(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -226,9 +226,9 @@ windows_core::imp::interface_hierarchy!(IReconcileInitiator, windows_core::IUnkn impl IReconcileInitiator { pub unsafe fn SetAbortCallback(&self, punkforabort: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAbortCallback)(windows_core::Interface::as_raw(self), punkforabort.into_param().abi()).ok() + (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), ulprogress, ulprogressmax).ok() 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 2748011651..62d8325ed0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn MagGetColorEffect(hwnd: P0, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagGetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); - MagGetColorEffect(hwnd.into_param().abi(), peffect) + MagGetColorEffect(hwnd.param().abi(), peffect) } #[inline] pub unsafe fn MagGetFullscreenColorEffect(peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL { @@ -20,10 +20,10 @@ pub unsafe fn MagGetFullscreenTransform(pmaglevel: *mut f32, pxoffset: *mut i32, #[inline] pub unsafe fn MagGetImageScalingCallback(hwnd: P0) -> MagImageScalingCallback where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagGetImageScalingCallback(hwnd : super::super::Foundation:: HWND) -> MagImageScalingCallback); - MagGetImageScalingCallback(hwnd.into_param().abi()) + MagGetImageScalingCallback(hwnd.param().abi()) } #[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 { @@ -33,26 +33,26 @@ pub unsafe fn MagGetInputTransform(pfenabled: *mut super::super::Foundation::BOO #[inline] pub unsafe fn MagGetWindowFilterList(hwnd: P0, pdwfiltermode: *mut MW_FILTERMODE, count: i32, phwnd: *mut super::super::Foundation::HWND) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), pdwfiltermode, count, phwnd) + MagGetWindowFilterList(hwnd.param().abi(), pdwfiltermode, count, phwnd) } #[inline] pub unsafe fn MagGetWindowSource(hwnd: P0, prect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagGetWindowSource(hwnd : super::super::Foundation:: HWND, prect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - MagGetWindowSource(hwnd.into_param().abi(), prect) + MagGetWindowSource(hwnd.param().abi(), prect) } #[inline] pub unsafe fn MagGetWindowTransform(hwnd: P0, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagGetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL); - MagGetWindowTransform(hwnd.into_param().abi(), ptransform) + MagGetWindowTransform(hwnd.param().abi(), ptransform) } #[inline] pub unsafe fn MagInitialize() -> super::super::Foundation::BOOL { @@ -62,10 +62,10 @@ pub unsafe fn MagInitialize() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn MagSetColorEffect(hwnd: P0, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagSetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); - MagSetColorEffect(hwnd.into_param().abi(), peffect) + MagSetColorEffect(hwnd.param().abi(), peffect) } #[inline] pub unsafe fn MagSetFullscreenColorEffect(peffect: *const MAGCOLOREFFECT) -> super::super::Foundation::BOOL { @@ -81,50 +81,50 @@ pub unsafe fn MagSetFullscreenTransform(maglevel: f32, xoffset: i32, yoffset: i3 #[inline] pub unsafe fn MagSetImageScalingCallback(hwnd: P0, callback: MagImageScalingCallback) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagSetImageScalingCallback(hwnd : super::super::Foundation:: HWND, callback : MagImageScalingCallback) -> super::super::Foundation:: BOOL); - MagSetImageScalingCallback(hwnd.into_param().abi(), callback) + MagSetImageScalingCallback(hwnd.param().abi(), callback) } #[inline] pub unsafe fn MagSetInputTransform(fenabled: P0, prectsource: *const super::super::Foundation::RECT, prectdest: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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_param().abi(), prectsource, prectdest).ok() + MagSetInputTransform(fenabled.param().abi(), prectsource, prectdest).ok() } #[inline] pub unsafe fn MagSetWindowFilterList(hwnd: P0, dwfiltermode: MW_FILTERMODE, count: i32, phwnd: *mut super::super::Foundation::HWND) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), dwfiltermode, count, phwnd) + MagSetWindowFilterList(hwnd.param().abi(), dwfiltermode, count, phwnd) } #[inline] pub unsafe fn MagSetWindowSource(hwnd: P0, rect: super::super::Foundation::RECT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagSetWindowSource(hwnd : super::super::Foundation:: HWND, rect : super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - MagSetWindowSource(hwnd.into_param().abi(), core::mem::transmute(rect)) + MagSetWindowSource(hwnd.param().abi(), core::mem::transmute(rect)) } #[inline] pub unsafe fn MagSetWindowTransform(hwnd: P0, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagSetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL); - MagSetWindowTransform(hwnd.into_param().abi(), ptransform) + MagSetWindowTransform(hwnd.param().abi(), ptransform) } #[inline] pub unsafe fn MagShowSystemCursor(fshowcursor: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("magnification.dll" "system" fn MagShowSystemCursor(fshowcursor : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - MagShowSystemCursor(fshowcursor.into_param().abi()) + MagShowSystemCursor(fshowcursor.param().abi()) } #[inline] pub unsafe fn MagUninitialize() -> super::super::Foundation::BOOL { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Notifications/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Notifications/mod.rs index 8c90d465bb..da9f442f45 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Notifications/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Notifications/mod.rs @@ -3,10 +3,10 @@ windows_core::imp::interface_hierarchy!(INotificationActivationCallback, windows impl INotificationActivationCallback { pub unsafe fn Activate(&self, appusermodelid: P0, invokedargs: P1, data: &[NOTIFICATION_USER_INPUT_DATA]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), appusermodelid.into_param().abi(), invokedargs.into_param().abi(), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), invokedargs.param().abi(), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } } #[repr(C)] 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 66a0d97562..f819d105f0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs @@ -3,9 +3,9 @@ windows_core::imp::interface_hierarchy!(IUIApplication, windows_core::IUnknown); impl IUIApplication { pub unsafe fn OnViewChanged(&self, viewid: u32, typeid: UI_VIEWTYPE, view: P0, verb: UI_VIEWVERB, ureasoncode: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewChanged)(windows_core::Interface::as_raw(self), viewid, typeid, view.into_param().abi(), verb, 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__ = std::mem::zeroed(); @@ -13,9 +13,9 @@ impl IUIApplication { } pub unsafe fn OnDestroyUICommand(&self, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDestroyUICommand)(windows_core::Interface::as_raw(self), commandid, typeid, commandhandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDestroyUICommand)(windows_core::Interface::as_raw(self), commandid, typeid, commandhandler.param().abi()).ok() } } #[repr(C)] @@ -38,24 +38,24 @@ impl IUICollection { } pub unsafe fn Add(&self, item: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), item.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), item.param().abi()).ok() } pub unsafe fn Insert(&self, index: u32, item: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Insert)(windows_core::Interface::as_raw(self), index, item.into_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), index).ok() } pub unsafe fn Replace(&self, indexreplaced: u32, itemreplacewith: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Replace)(windows_core::Interface::as_raw(self), indexreplaced, itemreplacewith.into_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() @@ -77,10 +77,10 @@ windows_core::imp::interface_hierarchy!(IUICollectionChangedEvent, windows_core: impl IUICollectionChangedEvent { pub unsafe fn OnChanged(&self, action: UI_COLLECTIONCHANGE, oldindex: u32, olditem: P0, newindex: u32, newitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChanged)(windows_core::Interface::as_raw(self), action, oldindex, olditem.into_param().abi(), newindex, newitem.into_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)] @@ -94,9 +94,9 @@ impl IUICommandHandler { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Execute(&self, commandid: u32, verb: UI_EXECUTIONVERB, key: Option<*const super::Shell::PropertiesSystem::PROPERTYKEY>, currentvalue: Option<*const windows_core::PROPVARIANT>, commandexecutionproperties: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), commandid, verb, core::mem::transmute(key.unwrap_or(std::ptr::null())), core::mem::transmute(currentvalue.unwrap_or(std::ptr::null())), commandexecutionproperties.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), commandid, verb, core::mem::transmute(key.unwrap_or(std::ptr::null())), core::mem::transmute(currentvalue.unwrap_or(std::ptr::null())), commandexecutionproperties.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn UpdateProperty(&self, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, currentvalue: Option<*const windows_core::PROPVARIANT>) -> windows_core::Result { @@ -145,9 +145,9 @@ windows_core::imp::interface_hierarchy!(IUIEventingManager, windows_core::IUnkno impl IUIEventingManager { pub unsafe fn SetEventLogger(&self, eventlogger: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventLogger)(windows_core::Interface::as_raw(self), eventlogger.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventLogger)(windows_core::Interface::as_raw(self), eventlogger.param().abi()).ok() } } #[repr(C)] @@ -160,20 +160,20 @@ windows_core::imp::interface_hierarchy!(IUIFramework, windows_core::IUnknown); impl IUIFramework { pub unsafe fn Initialize(&self, framewnd: P0, application: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), framewnd.into_param().abi(), application.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), framewnd.param().abi(), 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() } pub unsafe fn LoadUI(&self, instance: P0, resourcename: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadUI)(windows_core::Interface::as_raw(self), instance.into_param().abi(), resourcename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadUI)(windows_core::Interface::as_raw(self), instance.param().abi(), 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), viewid, riid, ppv).ok() @@ -243,10 +243,10 @@ impl IUIImageFromBitmap { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CreateImage(&self, bitmap: P0, options: UI_OWNERSHIP) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImage)(windows_core::Interface::as_raw(self), bitmap.into_param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImage)(windows_core::Interface::as_raw(self), bitmap.param().abi(), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -267,16 +267,16 @@ impl IUIRibbon { #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadSettingsFromStream(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadSettingsFromStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadSettingsFromStream)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveSettingsToStream(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveSettingsToStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveSettingsToStream)(windows_core::Interface::as_raw(self), pstream.param().abi()).ok() } } #[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 af9937e2ff..edb80b568d 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 @@ -35,15 +35,15 @@ impl IObjectCollection { } pub unsafe fn AddObject(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddObject)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddObject)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn AddFromArray(&self, poasource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFromArray)(windows_core::Interface::as_raw(self), poasource.into_param().abi()).ok() + (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), uiindex).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 c4f328c7c0..119a2dfddb 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 @@ -6,18 +6,18 @@ pub unsafe fn PSCoerceToCanonicalValue(key: *const PROPERTYKEY, ppropvar: *mut w #[inline] pub unsafe fn PSCreateAdapterFromPropertyStore(pps: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppv).ok() + PSCreateAdapterFromPropertyStore(pps.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn PSCreateDelayedMultiplexPropertyStore(flags: GETPROPERTYSTOREFLAGS, pdpsf: P0, rgstoreids: &[u32], riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(flags, pdpsf.into_param().abi(), core::mem::transmute(rgstoreids.as_ptr()), rgstoreids.len().try_into().unwrap(), riid, ppv).ok() + PSCreateDelayedMultiplexPropertyStore(flags, pdpsf.param().abi(), core::mem::transmute(rgstoreids.as_ptr()), rgstoreids.len().try_into().unwrap(), riid, ppv).ok() } #[inline] pub unsafe fn PSCreateMemoryPropertyStore(riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -37,19 +37,19 @@ pub unsafe fn PSCreatePropertyChangeArray(rgpropkey: Option<*const PROPERTYKEY>, #[inline] pub unsafe fn PSCreatePropertyStoreFromObject(punk: P0, grfmode: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), grfmode, riid, ppv).ok() + PSCreatePropertyStoreFromObject(punk.param().abi(), grfmode, riid, ppv).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSCreatePropertyStoreFromPropertySetStorage(ppss: P0, grfmode: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), grfmode, riid, ppv).ok() + PSCreatePropertyStoreFromPropertySetStorage(ppss.param().abi(), grfmode, riid, ppv).ok() } #[inline] pub unsafe fn PSCreateSimplePropertyChange(flags: PKA_FLAGS, key: *const PROPERTYKEY, propvar: *const windows_core::PROPVARIANT, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -75,12 +75,12 @@ pub unsafe fn PSFormatForDisplayAlloc(key: *const PROPERTYKEY, propvar: *const w #[inline] pub unsafe fn PSFormatPropertyValue(pps: P0, ppd: P1, pdff: PROPDESC_FORMAT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - PSFormatPropertyValue(pps.into_param().abi(), ppd.into_param().abi(), pdff, &mut result__).map(|| result__) + PSFormatPropertyValue(pps.param().abi(), ppd.param().abi(), pdff, &mut result__).map(|| result__) } #[inline] pub unsafe fn PSGetImageReferenceForValue(propkey: *const PROPERTYKEY, propvar: *const windows_core::PROPVARIANT) -> windows_core::Result { @@ -91,21 +91,21 @@ pub unsafe fn PSGetImageReferenceForValue(propkey: *const PROPERTYKEY, propvar: #[inline] pub unsafe fn PSGetItemPropertyHandler(punkitem: P0, freadwrite: P1, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), freadwrite.into_param().abi(), riid, ppv).ok() + PSGetItemPropertyHandler(punkitem.param().abi(), freadwrite.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn PSGetItemPropertyHandlerWithCreateObject(punkitem: P0, freadwrite: P1, punkcreateobject: P2, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), freadwrite.into_param().abi(), punkcreateobject.into_param().abi(), riid, ppv).ok() + PSGetItemPropertyHandlerWithCreateObject(punkitem.param().abi(), freadwrite.param().abi(), punkcreateobject.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn PSGetNameFromPropertyKey(propkey: *const PROPERTYKEY) -> windows_core::Result { @@ -116,12 +116,12 @@ pub unsafe fn PSGetNameFromPropertyKey(propkey: *const PROPERTYKEY) -> windows_c #[inline] pub unsafe fn PSGetNamedPropertyFromPropertyStorage(psps: P0, cb: u32, pszname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetNamedPropertyFromPropertyStorage(psps : PCUSERIALIZEDPROPSTORAGE, cb : u32, pszname : windows_core::PCWSTR, ppropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSGetNamedPropertyFromPropertyStorage(psps.into_param().abi(), cb, pszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + PSGetNamedPropertyFromPropertyStorage(psps.param().abi(), cb, pszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn PSGetPropertyDescription(propkey: *const PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -131,35 +131,35 @@ pub unsafe fn PSGetPropertyDescription(propkey: *const PROPERTYKEY, riid: *const #[inline] pub unsafe fn PSGetPropertyDescriptionByName(pszcanonicalname: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppv).ok() + PSGetPropertyDescriptionByName(pszcanonicalname.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn PSGetPropertyDescriptionListFromString(pszproplist: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), riid, ppv).ok() + PSGetPropertyDescriptionListFromString(pszproplist.param().abi(), riid, ppv).ok() } #[inline] pub unsafe fn PSGetPropertyFromPropertyStorage(psps: P0, cb: u32, rpkey: *const PROPERTYKEY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetPropertyFromPropertyStorage(psps : PCUSERIALIZEDPROPSTORAGE, cb : u32, rpkey : *const PROPERTYKEY, ppropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSGetPropertyFromPropertyStorage(psps.into_param().abi(), cb, rpkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + PSGetPropertyFromPropertyStorage(psps.param().abi(), cb, rpkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn PSGetPropertyKeyFromName(pszname: P0, ppropkey: *mut PROPERTYKEY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetPropertyKeyFromName(pszname : windows_core::PCWSTR, ppropkey : *mut PROPERTYKEY) -> windows_core::HRESULT); - PSGetPropertyKeyFromName(pszname.into_param().abi(), ppropkey).ok() + PSGetPropertyKeyFromName(pszname.param().abi(), ppropkey).ok() } #[inline] pub unsafe fn PSGetPropertySystem(riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -169,377 +169,377 @@ pub unsafe fn PSGetPropertySystem(riid: *const windows_core::GUID, ppv: *mut *mu #[inline] pub unsafe fn PSGetPropertyValue(pps: P0, ppd: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSGetPropertyValue(pps : * mut core::ffi::c_void, ppd : * mut core::ffi::c_void, ppropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSGetPropertyValue(pps.into_param().abi(), ppd.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + PSGetPropertyValue(pps.param().abi(), ppd.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn PSLookupPropertyHandlerCLSID(pszfilepath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSLookupPropertyHandlerCLSID(pszfilepath : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSLookupPropertyHandlerCLSID(pszfilepath.into_param().abi(), &mut result__).map(|| result__) + PSLookupPropertyHandlerCLSID(pszfilepath.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_Delete(propbag: P0, propname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_Delete(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR) -> windows_core::HRESULT); - PSPropertyBag_Delete(propbag.into_param().abi(), propname.into_param().abi()).ok() + PSPropertyBag_Delete(propbag.param().abi(), propname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadBOOL(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadBOOL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadBOOL(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadBOOL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadBSTR(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadBSTR(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadBSTR(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + PSPropertyBag_ReadBSTR(propbag.param().abi(), propname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadDWORD(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadDWORD(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadDWORD(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadDWORD(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadGUID(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadGUID(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadGUID(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadGUID(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadInt(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadInt(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut i32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadInt(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadInt(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadLONG(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadLONG(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut i32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadLONG(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadLONG(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadPOINTL(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadPOINTL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: POINTL) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadPOINTL(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadPOINTL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadPOINTS(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadPOINTS(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: POINTS) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadPOINTS(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadPOINTS(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadPropertyKey(propbag: P0, propname: P1, value: *mut PROPERTYKEY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadPropertyKey(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut PROPERTYKEY) -> windows_core::HRESULT); - PSPropertyBag_ReadPropertyKey(propbag.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_ReadPropertyKey(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadRECTL(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadRECTL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: RECTL) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadRECTL(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadRECTL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadSHORT(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadSHORT(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut i16) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadSHORT(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadSHORT(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadStr(propbag: P0, propname: P1, value: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadStr(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : windows_core::PWSTR, charactercount : i32) -> windows_core::HRESULT); - PSPropertyBag_ReadStr(propbag.into_param().abi(), propname.into_param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() + PSPropertyBag_ReadStr(propbag.param().abi(), propname.param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadStrAlloc(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadStrAlloc(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadStrAlloc(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadStrAlloc(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadStream(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadStream(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadStream(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + PSPropertyBag_ReadStream(propbag.param().abi(), propname.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 PSPropertyBag_ReadType(propbag: P0, propname: P1, var: *mut windows_core::VARIANT, r#type: super::super::super::System::Variant::VARENUM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 std::mem::MaybeUninit < windows_core::VARIANT >, r#type : super::super::super::System::Variant:: VARENUM) -> windows_core::HRESULT); - PSPropertyBag_ReadType(propbag.into_param().abi(), propname.into_param().abi(), core::mem::transmute(var), 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] pub unsafe fn PSPropertyBag_ReadULONGLONG(propbag: P0, propname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadULONGLONG(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut u64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PSPropertyBag_ReadULONGLONG(propbag.into_param().abi(), propname.into_param().abi(), &mut result__).map(|| result__) + PSPropertyBag_ReadULONGLONG(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_ReadUnknown(propbag: P0, propname: P1, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), riid, ppv).ok() + PSPropertyBag_ReadUnknown(propbag.param().abi(), propname.param().abi(), riid, ppv).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteBOOL(propbag: P0, propname: P1, value: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteBOOL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); - PSPropertyBag_WriteBOOL(propbag.into_param().abi(), propname.into_param().abi(), value.into_param().abi()).ok() + PSPropertyBag_WriteBOOL(propbag.param().abi(), propname.param().abi(), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteBSTR(propbag: P0, propname: P1, value: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteBSTR(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : std::mem::MaybeUninit < windows_core::BSTR >) -> windows_core::HRESULT); - PSPropertyBag_WriteBSTR(propbag.into_param().abi(), propname.into_param().abi(), value.into_param().abi()).ok() + PSPropertyBag_WriteBSTR(propbag.param().abi(), propname.param().abi(), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteDWORD(propbag: P0, propname: P1, value: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WriteDWORD(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteGUID(propbag: P0, propname: P1, value: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WriteGUID(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteInt(propbag: P0, propname: P1, value: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WriteInt(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteLONG(propbag: P0, propname: P1, value: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WriteLONG(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WritePOINTL(propbag: P0, propname: P1, value: *const super::super::super::Foundation::POINTL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WritePOINTL(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WritePOINTS(propbag: P0, propname: P1, value: *const super::super::super::Foundation::POINTS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WritePOINTS(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WritePropertyKey(propbag: P0, propname: P1, value: *const PROPERTYKEY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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 PROPERTYKEY) -> windows_core::HRESULT); - PSPropertyBag_WritePropertyKey(propbag.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WritePropertyKey(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteRECTL(propbag: P0, propname: P1, value: *const super::super::super::Foundation::RECTL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WriteRECTL(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteSHORT(propbag: P0, propname: P1, value: i16) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WriteSHORT(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteStr(propbag: P0, propname: P1, value: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteStr(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : windows_core::PCWSTR) -> windows_core::HRESULT); - PSPropertyBag_WriteStr(propbag.into_param().abi(), propname.into_param().abi(), value.into_param().abi()).ok() + PSPropertyBag_WriteStr(propbag.param().abi(), propname.param().abi(), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteStream(propbag: P0, propname: P1, value: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteStream(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : * mut core::ffi::c_void) -> windows_core::HRESULT); - PSPropertyBag_WriteStream(propbag.into_param().abi(), propname.into_param().abi(), value.into_param().abi()).ok() + PSPropertyBag_WriteStream(propbag.param().abi(), propname.param().abi(), value.param().abi()).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteULONGLONG(propbag: P0, propname: P1, value: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), propname.into_param().abi(), value).ok() + PSPropertyBag_WriteULONGLONG(propbag.param().abi(), propname.param().abi(), value).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn PSPropertyBag_WriteUnknown(propbag: P0, propname: P1, punk: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteUnknown(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, punk : * mut core::ffi::c_void) -> windows_core::HRESULT); - PSPropertyBag_WriteUnknown(propbag.into_param().abi(), propname.into_param().abi(), punk.into_param().abi()).ok() + PSPropertyBag_WriteUnknown(propbag.param().abi(), propname.param().abi(), punk.param().abi()).ok() } #[inline] pub unsafe fn PSPropertyKeyFromString(pszstring: P0, pkey: *mut PROPERTYKEY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSPropertyKeyFromString(pszstring : windows_core::PCWSTR, pkey : *mut PROPERTYKEY) -> windows_core::HRESULT); - PSPropertyKeyFromString(pszstring.into_param().abi(), pkey).ok() + PSPropertyKeyFromString(pszstring.param().abi(), pkey).ok() } #[inline] pub unsafe fn PSRefreshPropertySchema() -> windows_core::Result<()> { @@ -549,19 +549,19 @@ pub unsafe fn PSRefreshPropertySchema() -> windows_core::Result<()> { #[inline] pub unsafe fn PSRegisterPropertySchema(pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSRegisterPropertySchema(pszpath : windows_core::PCWSTR) -> windows_core::HRESULT); - PSRegisterPropertySchema(pszpath.into_param().abi()).ok() + PSRegisterPropertySchema(pszpath.param().abi()).ok() } #[inline] pub unsafe fn PSSetPropertyValue(pps: P0, ppd: P1, propvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSSetPropertyValue(pps : * mut core::ffi::c_void, ppd : * mut core::ffi::c_void, propvar : *const std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); - PSSetPropertyValue(pps.into_param().abi(), ppd.into_param().abi(), core::mem::transmute(propvar)).ok() + PSSetPropertyValue(pps.param().abi(), ppd.param().abi(), core::mem::transmute(propvar)).ok() } #[inline] pub unsafe fn PSStringFromPropertyKey(pkey: *const PROPERTYKEY, psz: &mut [u16]) -> windows_core::Result<()> { @@ -571,64 +571,64 @@ pub unsafe fn PSStringFromPropertyKey(pkey: *const PROPERTYKEY, psz: &mut [u16]) #[inline] pub unsafe fn PSUnregisterPropertySchema(pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("propsys.dll" "system" fn PSUnregisterPropertySchema(pszpath : windows_core::PCWSTR) -> windows_core::HRESULT); - PSUnregisterPropertySchema(pszpath.into_param().abi()).ok() + PSUnregisterPropertySchema(pszpath.param().abi()).ok() } #[inline] pub unsafe fn PifMgr_CloseProperties(hprops: P0, flopt: u32) -> super::super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PifMgr_CloseProperties(hprops : super::super::super::Foundation:: HANDLE, flopt : u32) -> super::super::super::Foundation:: HANDLE); - PifMgr_CloseProperties(hprops.into_param().abi(), flopt) + PifMgr_CloseProperties(hprops.param().abi(), flopt) } #[inline] pub unsafe fn PifMgr_GetProperties(hprops: P0, pszgroup: P1, lpprops: Option<*mut core::ffi::c_void>, cbprops: i32, flopt: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprops.into_param().abi(), pszgroup.into_param().abi(), core::mem::transmute(lpprops.unwrap_or(std::ptr::null_mut())), cbprops, flopt) + PifMgr_GetProperties(hprops.param().abi(), pszgroup.param().abi(), core::mem::transmute(lpprops.unwrap_or(std::ptr::null_mut())), cbprops, flopt) } #[inline] pub unsafe fn PifMgr_OpenProperties(pszapp: P0, pszpif: P1, hinf: u32, flopt: u32) -> super::super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszpif.into_param().abi(), hinf, flopt) + PifMgr_OpenProperties(pszapp.param().abi(), pszpif.param().abi(), hinf, flopt) } #[inline] pub unsafe fn PifMgr_SetProperties(hprops: P0, pszgroup: P1, lpprops: *const core::ffi::c_void, cbprops: i32, flopt: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hprops.into_param().abi(), pszgroup.into_param().abi(), lpprops, cbprops, flopt) + PifMgr_SetProperties(hprops.param().abi(), pszgroup.param().abi(), lpprops, cbprops, flopt) } #[inline] pub unsafe fn SHAddDefaultPropertiesByExt(pszext: P0, ppropstore: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHAddDefaultPropertiesByExt(pszext : windows_core::PCWSTR, ppropstore : * mut core::ffi::c_void) -> windows_core::HRESULT); - SHAddDefaultPropertiesByExt(pszext.into_param().abi(), ppropstore.into_param().abi()).ok() + SHAddDefaultPropertiesByExt(pszext.param().abi(), ppropstore.param().abi()).ok() } #[inline] pub unsafe fn SHGetPropertyStoreForWindow(hwnd: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHGetPropertyStoreForWindow(hwnd.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetPropertyStoreForWindow(hwnd.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -640,51 +640,51 @@ pub unsafe fn SHGetPropertyStoreFromIDList(pidl: *const super::Common::ITEMIDLIS #[inline] pub unsafe fn SHGetPropertyStoreFromParsingName(pszpath: P0, pbc: P1, flags: GETPROPERTYSTOREFLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHGetPropertyStoreFromParsingName(pszpath.into_param().abi(), pbc.into_param().abi(), 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] pub unsafe fn SHPropStgCreate(psstg: P0, fmtid: *const windows_core::GUID, pclsid: Option<*const windows_core::GUID>, grfflags: u32, grfmode: u32, dwdisposition: u32, ppstg: *mut Option, pucodepage: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), fmtid, core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), grfflags, grfmode, dwdisposition, core::mem::transmute(ppstg), core::mem::transmute(pucodepage.unwrap_or(std::ptr::null_mut()))).ok() + SHPropStgCreate(psstg.param().abi(), fmtid, core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), grfflags, grfmode, dwdisposition, core::mem::transmute(ppstg), core::mem::transmute(pucodepage.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn SHPropStgReadMultiple(pps: P0, ucodepage: u32, cpspec: u32, rgpspec: *const super::super::super::System::Com::StructuredStorage::PROPSPEC, rgvar: *mut windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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 std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); - SHPropStgReadMultiple(pps.into_param().abi(), ucodepage, cpspec, rgpspec, core::mem::transmute(rgvar)).ok() + SHPropStgReadMultiple(pps.param().abi(), ucodepage, cpspec, rgpspec, core::mem::transmute(rgvar)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn SHPropStgWriteMultiple(pps: P0, pucodepage: Option<*mut u32>, cpspec: u32, rgpspec: *const super::super::super::System::Com::StructuredStorage::PROPSPEC, rgvar: *mut windows_core::PROPVARIANT, propidnamefirst: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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 std::mem::MaybeUninit < windows_core::PROPVARIANT >, propidnamefirst : u32) -> windows_core::HRESULT); - SHPropStgWriteMultiple(pps.into_param().abi(), core::mem::transmute(pucodepage.unwrap_or(std::ptr::null_mut())), cpspec, rgpspec, core::mem::transmute(rgvar), propidnamefirst).ok() + SHPropStgWriteMultiple(pps.param().abi(), core::mem::transmute(pucodepage.unwrap_or(std::ptr::null_mut())), cpspec, rgpspec, core::mem::transmute(rgvar), propidnamefirst).ok() } windows_core::imp::define_interface!(ICreateObject, ICreateObject_Vtbl, 0x75121952_e0d0_43e5_9380_1d80483acf72); windows_core::imp::interface_hierarchy!(ICreateObject, windows_core::IUnknown); impl ICreateObject { pub unsafe fn CreateObject(&self, clsid: *const windows_core::GUID, punkouter: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), clsid, punkouter.into_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)] @@ -697,11 +697,11 @@ windows_core::imp::interface_hierarchy!(IDelayedPropertyStoreFactory, windows_co impl IDelayedPropertyStoreFactory { pub unsafe fn GetPropertyStore(&self, flags: GETPROPERTYSTOREFLAGS, punkfactory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.GetPropertyStore)(windows_core::Interface::as_raw(self), flags, punkfactory.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS) -> windows_core::Result where @@ -728,9 +728,9 @@ windows_core::imp::interface_hierarchy!(IInitializeWithFile, windows_core::IUnkn impl IInitializeWithFile { pub unsafe fn Initialize(&self, pszfilepath: P0, grfmode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszfilepath.into_param().abi(), grfmode).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszfilepath.param().abi(), grfmode).ok() } } #[repr(C)] @@ -744,9 +744,9 @@ impl IInitializeWithStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pstream: P0, grfmode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), grfmode).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pstream.param().abi(), grfmode).ok() } } #[repr(C)] @@ -762,16 +762,16 @@ windows_core::imp::interface_hierarchy!(INamedPropertyStore, windows_core::IUnkn impl INamedPropertyStore { pub unsafe fn GetNamedValue(&self, pszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNamedValue)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetNamedValue)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetNamedValue(&self, pszname: P0, propvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamedValue)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), core::mem::transmute(propvar)).ok() + (windows_core::Interface::vtable(self).SetNamedValue)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(propvar)).ok() } pub unsafe fn GetNameCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -814,9 +814,9 @@ impl IPersistSerializedPropStorage { } pub unsafe fn SetPropertyStorage(&self, psps: P0, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyStorage)(windows_core::Interface::as_raw(self), psps.into_param().abi(), cb).ok() + (windows_core::Interface::vtable(self).SetPropertyStorage)(windows_core::Interface::as_raw(self), psps.param().abi(), 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), ppsps, pcb).ok() @@ -837,9 +837,9 @@ impl IPersistSerializedPropStorage2 { } pub unsafe fn SetPropertyStorage(&self, psps: P0, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPropertyStorage)(windows_core::Interface::as_raw(self), psps.into_param().abi(), cb).ok() + (windows_core::Interface::vtable(self).base__.SetPropertyStorage)(windows_core::Interface::as_raw(self), psps.param().abi(), cb).ok() } pub unsafe fn GetPropertyStorage(&self, ppsps: *mut *mut SERIALIZEDPROPSTORAGE, pcb: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetPropertyStorage)(windows_core::Interface::as_raw(self), ppsps, pcb).ok() @@ -893,21 +893,21 @@ impl IPropertyChangeArray { } pub unsafe fn InsertAt(&self, iindex: u32, ppropchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertAt)(windows_core::Interface::as_raw(self), iindex, ppropchange.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), ppropchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), ppropchange.param().abi()).ok() } pub unsafe fn AppendOrReplace(&self, ppropchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendOrReplace)(windows_core::Interface::as_raw(self), ppropchange.into_param().abi()).ok() + (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), iindex).ok() @@ -986,10 +986,10 @@ impl IPropertyDescription { } pub unsafe fn GetSortDescriptionLabel(&self, fdescending: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAggregationType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1104,10 +1104,10 @@ impl IPropertyDescription2 { } pub unsafe fn GetSortDescriptionLabel(&self, fdescending: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAggregationType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1203,10 +1203,10 @@ impl IPropertyDescriptionAliasInfo { } pub unsafe fn GetSortDescriptionLabel(&self, fdescending: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAggregationType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1334,10 +1334,10 @@ impl IPropertyDescriptionRelatedPropertyInfo { } pub unsafe fn GetSortDescriptionLabel(&self, fdescending: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAggregationType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1366,11 +1366,11 @@ impl IPropertyDescriptionRelatedPropertyInfo { } pub unsafe fn GetRelatedProperty(&self, pszrelationshipname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetRelatedProperty)(windows_core::Interface::as_raw(self), pszrelationshipname.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRelatedProperty)(windows_core::Interface::as_raw(self), pszrelationshipname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1437,10 +1437,10 @@ impl IPropertyDescriptionSearchInfo { } pub unsafe fn GetSortDescriptionLabel(&self, fdescending: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetSortDescriptionLabel)(windows_core::Interface::as_raw(self), fdescending.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetAggregationType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1681,11 +1681,11 @@ windows_core::imp::interface_hierarchy!(IPropertyStoreFactory, windows_core::IUn impl IPropertyStoreFactory { pub unsafe fn GetPropertyStore(&self, flags: GETPROPERTYSTOREFLAGS, punkfactory: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStore)(windows_core::Interface::as_raw(self), flags, punkfactory.into_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 PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS) -> windows_core::Result where @@ -1713,19 +1713,19 @@ impl IPropertySystem { } pub unsafe fn GetPropertyDescriptionByName(&self, pszcanonicalname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyDescriptionByName)(windows_core::Interface::as_raw(self), pszcanonicalname.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyDescriptionByName)(windows_core::Interface::as_raw(self), pszcanonicalname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyDescriptionListFromString(&self, pszproplist: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyDescriptionListFromString)(windows_core::Interface::as_raw(self), pszproplist.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyDescriptionListFromString)(windows_core::Interface::as_raw(self), pszproplist.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumeratePropertyDescriptions(&self, filteron: PROPDESC_ENUMFILTER) -> windows_core::Result where @@ -1743,15 +1743,15 @@ impl IPropertySystem { } pub unsafe fn RegisterPropertySchema(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterPropertySchema)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterPropertySchema)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn UnregisterPropertySchema(&self, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterPropertySchema)(windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterPropertySchema)(windows_core::Interface::as_raw(self), pszpath.param().abi()).ok() } pub unsafe fn RefreshPropertySchema(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RefreshPropertySchema)(windows_core::Interface::as_raw(self)).ok() @@ -1787,9 +1787,9 @@ windows_core::imp::interface_hierarchy!(IPropertyUI, windows_core::IUnknown); impl IPropertyUI { pub unsafe fn ParsePropertyName(&self, pszname: P0, pfmtid: *mut windows_core::GUID, ppid: *mut u32, pcheaten: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ParsePropertyName)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), pfmtid, ppid, pcheaten).ok() + (windows_core::Interface::vtable(self).ParsePropertyName)(windows_core::Interface::as_raw(self), pszname.param().abi(), pfmtid, ppid, 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), fmtid, pid, core::mem::transmute(pwsztext.as_ptr()), pwsztext.len().try_into().unwrap()).ok() 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 83b21a65ea..19e0c19661 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -25,98 +25,98 @@ where #[inline] pub unsafe fn AssocGetDetailsOfPropKey(psf: P0, pidl: *const Common::ITEMIDLIST, pkey: *const PropertiesSystem::PROPERTYKEY, pv: *mut windows_core::VARIANT, pffoundpropkey: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn AssocGetDetailsOfPropKey(psf : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, pkey : *const PropertiesSystem:: PROPERTYKEY, pv : *mut std::mem::MaybeUninit < windows_core::VARIANT >, pffoundpropkey : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - AssocGetDetailsOfPropKey(psf.into_param().abi(), pidl, pkey, core::mem::transmute(pv), core::mem::transmute(pffoundpropkey.unwrap_or(std::ptr::null_mut()))).ok() + AssocGetDetailsOfPropKey(psf.param().abi(), pidl, pkey, core::mem::transmute(pv), core::mem::transmute(pffoundpropkey.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn AssocGetPerceivedType(pszext: P0, ptype: *mut Common::PERCEIVED, pflag: *mut u32, ppsztype: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn AssocGetPerceivedType(pszext : windows_core::PCWSTR, ptype : *mut Common:: PERCEIVED, pflag : *mut u32, ppsztype : *mut windows_core::PWSTR) -> windows_core::HRESULT); - AssocGetPerceivedType(pszext.into_param().abi(), ptype, pflag, core::mem::transmute(ppsztype.unwrap_or(std::ptr::null_mut()))).ok() + AssocGetPerceivedType(pszext.param().abi(), ptype, pflag, core::mem::transmute(ppsztype.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn AssocIsDangerous(pszassoc: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn AssocIsDangerous(pszassoc : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - AssocIsDangerous(pszassoc.into_param().abi()) + AssocIsDangerous(pszassoc.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn AssocQueryKeyA(flags: ASSOCF, key: ASSOCKEY, pszassoc: P0, pszextra: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - AssocQueryKeyA(flags, key, pszassoc.into_param().abi(), pszextra.into_param().abi(), &mut result__).map(|| result__) + AssocQueryKeyA(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn AssocQueryKeyW(flags: ASSOCF, key: ASSOCKEY, pszassoc: P0, pszextra: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - AssocQueryKeyW(flags, key, pszassoc.into_param().abi(), pszextra.into_param().abi(), &mut result__).map(|| result__) + AssocQueryKeyW(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn AssocQueryStringA(flags: ASSOCF, str: ASSOCSTR, pszassoc: P0, pszextra: P1, pszout: windows_core::PSTR, pcchout: *mut u32) -> windows_core::HRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(flags, str, pszassoc.into_param().abi(), pszextra.into_param().abi(), core::mem::transmute(pszout), pcchout) + AssocQueryStringA(flags, str, pszassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout), pcchout) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn AssocQueryStringByKeyA(flags: ASSOCF, str: ASSOCSTR, hkassoc: P0, pszextra: P1, pszout: windows_core::PSTR, pcchout: *mut u32) -> windows_core::HRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(flags, str, hkassoc.into_param().abi(), pszextra.into_param().abi(), core::mem::transmute(pszout), pcchout) + AssocQueryStringByKeyA(flags, str, hkassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout), pcchout) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn AssocQueryStringByKeyW(flags: ASSOCF, str: ASSOCSTR, hkassoc: P0, pszextra: P1, pszout: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::HRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(flags, str, hkassoc.into_param().abi(), pszextra.into_param().abi(), core::mem::transmute(pszout), pcchout) + AssocQueryStringByKeyW(flags, str, hkassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout), pcchout) } #[inline] pub unsafe fn AssocQueryStringW(flags: ASSOCF, str: ASSOCSTR, pszassoc: P0, pszextra: P1, pszout: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::HRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(flags, str, pszassoc.into_param().abi(), pszextra.into_param().abi(), core::mem::transmute(pszout), pcchout) + AssocQueryStringW(flags, str, pszassoc.param().abi(), pszextra.param().abi(), core::mem::transmute(pszout), pcchout) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn CDefFolderMenu_Create2(pidlfolder: Option<*const Common::ITEMIDLIST>, hwnd: P0, apidl: Option<&[*const Common::ITEMIDLIST]>, psf: P1, pfn: LPFNDFMCALLBACK, ahkeys: Option<&[super::super::System::Registry::HKEY]>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn CDefFolderMenu_Create2(pidlfolder : *const Common:: ITEMIDLIST, hwnd : super::super::Foundation:: HWND, cidl : u32, apidl : *const *const Common:: ITEMIDLIST, psf : * mut core::ffi::c_void, pfn : LPFNDFMCALLBACK, nkeys : u32, ahkeys : *const super::super::System::Registry:: HKEY, ppcm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - CDefFolderMenu_Create2(core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), hwnd.into_param().abi(), 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())), psf.into_param().abi(), pfn, ahkeys.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ahkeys.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CDefFolderMenu_Create2(core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), hwnd.param().abi(), 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())), psf.param().abi(), pfn, ahkeys.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ahkeys.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -138,11 +138,11 @@ pub unsafe fn ChrCmpIW(w1: u16, w2: u16) -> super::super::Foundation::BOOL { #[inline] pub unsafe fn ColorAdjustLuma(clrrgb: P0, n: i32, fscale: P1) -> super::super::Foundation::COLORREF where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(clrrgb.into_param().abi(), n, fscale.into_param().abi()) + ColorAdjustLuma(clrrgb.param().abi(), n, fscale.param().abi()) } #[inline] pub unsafe fn ColorHLSToRGB(whue: u16, wluminance: u16, wsaturation: u16) -> super::super::Foundation::COLORREF { @@ -152,64 +152,64 @@ pub unsafe fn ColorHLSToRGB(whue: u16, wluminance: u16, wsaturation: u16) -> sup #[inline] pub unsafe fn ColorRGBToHLS(clrrgb: P0, pwhue: *mut u16, pwluminance: *mut u16, pwsaturation: *mut u16) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn ColorRGBToHLS(clrrgb : super::super::Foundation:: COLORREF, pwhue : *mut u16, pwluminance : *mut u16, pwsaturation : *mut u16)); - ColorRGBToHLS(clrrgb.into_param().abi(), pwhue, pwluminance, pwsaturation) + ColorRGBToHLS(clrrgb.param().abi(), pwhue, pwluminance, pwsaturation) } #[inline] pub unsafe fn CommandLineToArgvW(lpcmdline: P0, pnumargs: *mut i32) -> *mut windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn CommandLineToArgvW(lpcmdline : windows_core::PCWSTR, pnumargs : *mut i32) -> *mut windows_core::PWSTR); - CommandLineToArgvW(lpcmdline.into_param().abi(), pnumargs) + CommandLineToArgvW(lpcmdline.param().abi(), pnumargs) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn ConnectToConnectionPoint(punk: P0, riidevent: *const windows_core::GUID, fconnect: P1, punktarget: P2, pdwcookie: *mut u32, ppcpout: Option<*mut Option>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), riidevent, fconnect.into_param().abi(), punktarget.into_param().abi(), pdwcookie, core::mem::transmute(ppcpout.unwrap_or(std::ptr::null_mut()))).ok() + ConnectToConnectionPoint(punk.param().abi(), riidevent, fconnect.param().abi(), punktarget.param().abi(), pdwcookie, core::mem::transmute(ppcpout.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CreateProfile(pszusersid: P0, pszusername: P1, pszprofilepath: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn CreateProfile(pszusersid : windows_core::PCWSTR, pszusername : windows_core::PCWSTR, pszprofilepath : windows_core::PWSTR, cchprofilepath : u32) -> windows_core::HRESULT); - CreateProfile(pszusersid.into_param().abi(), pszusername.into_param().abi(), core::mem::transmute(pszprofilepath.as_ptr()), pszprofilepath.len().try_into().unwrap()).ok() + CreateProfile(pszusersid.param().abi(), pszusername.param().abi(), core::mem::transmute(pszprofilepath.as_ptr()), pszprofilepath.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn DAD_AutoScroll(hwnd: P0, pad: *mut AUTO_SCROLL_DATA, pptnow: *const super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), pad, pptnow) + DAD_AutoScroll(hwnd.param().abi(), pad, pptnow) } #[inline] pub unsafe fn DAD_DragEnterEx(hwndtarget: P0, ptstart: super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndtarget.into_param().abi(), core::mem::transmute(ptstart)) + DAD_DragEnterEx(hwndtarget.param().abi(), core::mem::transmute(ptstart)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn DAD_DragEnterEx2(hwndtarget: P0, ptstart: super::super::Foundation::POINT, pdtobject: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hwndtarget.into_param().abi(), core::mem::transmute(ptstart), pdtobject.into_param().abi()) + DAD_DragEnterEx2(hwndtarget.param().abi(), core::mem::transmute(ptstart), pdtobject.param().abi()) } #[inline] pub unsafe fn DAD_DragLeave() -> super::super::Foundation::BOOL { @@ -225,48 +225,48 @@ pub unsafe fn DAD_DragMove(pt: super::super::Foundation::POINT) -> super::super: #[inline] pub unsafe fn DAD_SetDragImage(him: P0, pptoffset: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(him.into_param().abi(), pptoffset) + DAD_SetDragImage(him.param().abi(), pptoffset) } #[inline] pub unsafe fn DAD_ShowDragImage(fshow: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DAD_ShowDragImage(fshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - DAD_ShowDragImage(fshow.into_param().abi()) + DAD_ShowDragImage(fshow.param().abi()) } #[inline] pub unsafe fn DefSubclassProc(hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + DefSubclassProc(hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DeleteProfileA(lpsidstring: P0, lpprofilepath: P1, lpcomputername: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn DeleteProfileA(lpsidstring : windows_core::PCSTR, lpprofilepath : windows_core::PCSTR, lpcomputername : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - DeleteProfileA(lpsidstring.into_param().abi(), lpprofilepath.into_param().abi(), lpcomputername.into_param().abi()).ok() + DeleteProfileA(lpsidstring.param().abi(), lpprofilepath.param().abi(), lpcomputername.param().abi()).ok() } #[inline] pub unsafe fn DeleteProfileW(lpsidstring: P0, lpprofilepath: P1, lpcomputername: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn DeleteProfileW(lpsidstring : windows_core::PCWSTR, lpprofilepath : windows_core::PCWSTR, lpcomputername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - DeleteProfileW(lpsidstring.into_param().abi(), lpprofilepath.into_param().abi(), lpcomputername.into_param().abi()).ok() + DeleteProfileW(lpsidstring.param().abi(), lpprofilepath.param().abi(), lpcomputername.param().abi()).ok() } #[inline] pub unsafe fn DoEnvironmentSubstA(pszsrc: &mut [u8]) -> u32 { @@ -281,43 +281,43 @@ pub unsafe fn DoEnvironmentSubstW(pszsrc: &mut [u16]) -> u32 { #[inline] pub unsafe fn DragAcceptFiles(hwnd: P0, faccept: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DragAcceptFiles(hwnd : super::super::Foundation:: HWND, faccept : super::super::Foundation:: BOOL)); - DragAcceptFiles(hwnd.into_param().abi(), faccept.into_param().abi()) + DragAcceptFiles(hwnd.param().abi(), faccept.param().abi()) } #[inline] pub unsafe fn DragFinish(hdrop: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DragFinish(hdrop : HDROP)); - DragFinish(hdrop.into_param().abi()) + DragFinish(hdrop.param().abi()) } #[inline] pub unsafe fn DragQueryFileA(hdrop: P0, ifile: u32, lpszfile: Option<&mut [u8]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DragQueryFileA(hdrop : HDROP, ifile : u32, lpszfile : windows_core::PSTR, cch : u32) -> u32); - DragQueryFileA(hdrop.into_param().abi(), 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.param().abi(), 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: P0, ifile: u32, lpszfile: Option<&mut [u16]>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DragQueryFileW(hdrop : HDROP, ifile : u32, lpszfile : windows_core::PWSTR, cch : u32) -> u32); - DragQueryFileW(hdrop.into_param().abi(), 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.param().abi(), 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: P0, ppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DragQueryPoint(hdrop : HDROP, ppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - DragQueryPoint(hdrop.into_param().abi(), ppt) + DragQueryPoint(hdrop.param().abi(), ppt) } #[inline] pub unsafe fn DriveType(idrive: i32) -> i32 { @@ -328,103 +328,103 @@ pub unsafe fn DriveType(idrive: i32) -> i32 { #[inline] pub unsafe fn DuplicateIcon(hinst: P0, hicon: P1) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn DuplicateIcon(hinst : super::super::Foundation:: HINSTANCE, hicon : super::WindowsAndMessaging:: HICON) -> super::WindowsAndMessaging:: HICON); - DuplicateIcon(hinst.into_param().abi(), hicon.into_param().abi()) + DuplicateIcon(hinst.param().abi(), hicon.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractAssociatedIconA(hinst: P0, psziconpath: &mut [u8; 128], piicon: *mut u16) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractAssociatedIconA(hinst : super::super::Foundation:: HINSTANCE, psziconpath : windows_core::PSTR, piicon : *mut u16) -> super::WindowsAndMessaging:: HICON); - ExtractAssociatedIconA(hinst.into_param().abi(), core::mem::transmute(psziconpath.as_ptr()), piicon) + ExtractAssociatedIconA(hinst.param().abi(), core::mem::transmute(psziconpath.as_ptr()), piicon) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractAssociatedIconExA(hinst: P0, psziconpath: &mut [u8; 128], piiconindex: *mut u16, piiconid: *mut u16) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractAssociatedIconExA(hinst : super::super::Foundation:: HINSTANCE, psziconpath : windows_core::PSTR, piiconindex : *mut u16, piiconid : *mut u16) -> super::WindowsAndMessaging:: HICON); - ExtractAssociatedIconExA(hinst.into_param().abi(), core::mem::transmute(psziconpath.as_ptr()), piiconindex, piiconid) + ExtractAssociatedIconExA(hinst.param().abi(), core::mem::transmute(psziconpath.as_ptr()), piiconindex, piiconid) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractAssociatedIconExW(hinst: P0, psziconpath: &mut [u16; 128], piiconindex: *mut u16, piiconid: *mut u16) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractAssociatedIconExW(hinst : super::super::Foundation:: HINSTANCE, psziconpath : windows_core::PWSTR, piiconindex : *mut u16, piiconid : *mut u16) -> super::WindowsAndMessaging:: HICON); - ExtractAssociatedIconExW(hinst.into_param().abi(), core::mem::transmute(psziconpath.as_ptr()), piiconindex, piiconid) + ExtractAssociatedIconExW(hinst.param().abi(), core::mem::transmute(psziconpath.as_ptr()), piiconindex, piiconid) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractAssociatedIconW(hinst: P0, psziconpath: &mut [u16; 128], piicon: *mut u16) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ExtractAssociatedIconW(hinst : super::super::Foundation:: HINSTANCE, psziconpath : windows_core::PWSTR, piicon : *mut u16) -> super::WindowsAndMessaging:: HICON); - ExtractAssociatedIconW(hinst.into_param().abi(), core::mem::transmute(psziconpath.as_ptr()), piicon) + ExtractAssociatedIconW(hinst.param().abi(), core::mem::transmute(psziconpath.as_ptr()), piicon) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractIconA(hinst: P0, pszexefilename: P1, niconindex: u32) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinst.into_param().abi(), pszexefilename.into_param().abi(), niconindex) + ExtractIconA(hinst.param().abi(), pszexefilename.param().abi(), niconindex) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractIconExA(lpszfile: P0, niconindex: i32, phiconlarge: Option<*mut super::WindowsAndMessaging::HICON>, phiconsmall: Option<*mut super::WindowsAndMessaging::HICON>, nicons: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), nicons) + ExtractIconExA(lpszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), nicons) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractIconExW(lpszfile: P0, niconindex: i32, phiconlarge: Option<*mut super::WindowsAndMessaging::HICON>, phiconsmall: Option<*mut super::WindowsAndMessaging::HICON>, nicons: u32) -> u32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), nicons) + ExtractIconExW(lpszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), nicons) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ExtractIconW(hinst: P0, pszexefilename: P1, niconindex: u32) -> super::WindowsAndMessaging::HICON where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinst.into_param().abi(), pszexefilename.into_param().abi(), niconindex) + ExtractIconW(hinst.param().abi(), pszexefilename.param().abi(), niconindex) } #[inline] pub unsafe fn FindExecutableA(lpfile: P0, lpdirectory: P1, lpresult: &mut [u8; 260]) -> super::super::Foundation::HINSTANCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn FindExecutableA(lpfile : windows_core::PCSTR, lpdirectory : windows_core::PCSTR, lpresult : windows_core::PSTR) -> super::super::Foundation:: HINSTANCE); - FindExecutableA(lpfile.into_param().abi(), lpdirectory.into_param().abi(), core::mem::transmute(lpresult.as_ptr())) + FindExecutableA(lpfile.param().abi(), lpdirectory.param().abi(), core::mem::transmute(lpresult.as_ptr())) } #[inline] pub unsafe fn FindExecutableW(lpfile: P0, lpdirectory: P1, lpresult: &mut [u16; 260]) -> super::super::Foundation::HINSTANCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn FindExecutableW(lpfile : windows_core::PCWSTR, lpdirectory : windows_core::PCWSTR, lpresult : windows_core::PWSTR) -> super::super::Foundation:: HINSTANCE); - FindExecutableW(lpfile.into_param().abi(), lpdirectory.into_param().abi(), core::mem::transmute(lpresult.as_ptr())) + FindExecutableW(lpfile.param().abi(), lpdirectory.param().abi(), core::mem::transmute(lpresult.as_ptr())) } #[inline] pub unsafe fn GetAcceptLanguagesA(pszlanguages: windows_core::PSTR, pcchlanguages: *mut u32) -> windows_core::Result<()> { @@ -470,32 +470,32 @@ pub unsafe fn GetDpiForShellUIComponent(param0: SHELL_UI_COMPONENT) -> u32 { #[inline] pub unsafe fn GetFileNameFromBrowse(hwnd: P0, pszfilepath: &mut [u16], pszworkingdir: P1, pszdefext: P2, pszfilters: P3, psztitle: P4) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn GetFileNameFromBrowse(hwnd : super::super::Foundation:: HWND, pszfilepath : windows_core::PWSTR, cchfilepath : u32, pszworkingdir : windows_core::PCWSTR, pszdefext : windows_core::PCWSTR, pszfilters : windows_core::PCWSTR, psztitle : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - GetFileNameFromBrowse(hwnd.into_param().abi(), core::mem::transmute(pszfilepath.as_ptr()), pszfilepath.len().try_into().unwrap(), pszworkingdir.into_param().abi(), pszdefext.into_param().abi(), pszfilters.into_param().abi(), psztitle.into_param().abi()) + GetFileNameFromBrowse(hwnd.param().abi(), core::mem::transmute(pszfilepath.as_ptr()), pszfilepath.len().try_into().unwrap(), pszworkingdir.param().abi(), pszdefext.param().abi(), pszfilters.param().abi(), psztitle.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetMenuContextHelpId(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuContextHelpId(param0 : super::WindowsAndMessaging:: HMENU) -> u32); - GetMenuContextHelpId(param0.into_param().abi()) + GetMenuContextHelpId(param0.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetMenuPosFromID(hmenu: P0, id: u32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn GetMenuPosFromID(hmenu : super::WindowsAndMessaging:: HMENU, id : u32) -> i32); - GetMenuPosFromID(hmenu.into_param().abi(), id) + GetMenuPosFromID(hmenu.param().abi(), id) } #[inline] pub unsafe fn GetProfileType(dwflags: *mut u32) -> windows_core::Result<()> { @@ -522,43 +522,43 @@ pub unsafe fn GetScaleFactorForDevice(devicetype: DISPLAY_DEVICE_TYPE) -> Common #[inline] pub unsafe fn GetScaleFactorForMonitor(hmon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - GetScaleFactorForMonitor(hmon.into_param().abi(), &mut result__).map(|| result__) + GetScaleFactorForMonitor(hmon.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn GetUserProfileDirectoryA(htoken: P0, lpprofiledir: windows_core::PSTR, lpcchsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htoken.into_param().abi(), core::mem::transmute(lpprofiledir), lpcchsize).ok() + GetUserProfileDirectoryA(htoken.param().abi(), core::mem::transmute(lpprofiledir), lpcchsize).ok() } #[inline] pub unsafe fn GetUserProfileDirectoryW(htoken: P0, lpprofiledir: windows_core::PWSTR, lpcchsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(htoken.into_param().abi(), core::mem::transmute(lpprofiledir), lpcchsize).ok() + GetUserProfileDirectoryW(htoken.param().abi(), core::mem::transmute(lpprofiledir), lpcchsize).ok() } #[inline] pub unsafe fn GetWindowContextHelpId(param0: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowContextHelpId(param0 : super::super::Foundation:: HWND) -> u32); - GetWindowContextHelpId(param0.into_param().abi()) + GetWindowContextHelpId(param0.param().abi()) } #[inline] pub unsafe fn GetWindowSubclass(hwnd: P0, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, pdwrefdata: Option<*mut usize>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), pfnsubclass, uidsubclass, core::mem::transmute(pdwrefdata.unwrap_or(std::ptr::null_mut()))) + GetWindowSubclass(hwnd.param().abi(), pfnsubclass, uidsubclass, core::mem::transmute(pdwrefdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -616,112 +616,112 @@ pub unsafe fn HashData(pbdata: &[u8], pbhash: &mut [u8]) -> windows_core::Result #[inline] pub unsafe fn HlinkClone(pihl: P0, pihlsiteforclone: P1, dwsitedata: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - HlinkClone(pihl.into_param().abi(), &T::IID, pihlsiteforclone.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("hlink.dll" "system" fn HlinkCreateBrowseContext(piunkouter : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - HlinkCreateBrowseContext(piunkouter.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkCreateBrowseContext(piunkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn HlinkCreateExtensionServices(pwzadditionalheaders: P0, phwnd: P1, pszusername: P2, pszpassword: P3, piunkouter: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - HlinkCreateExtensionServices(pwzadditionalheaders.into_param().abi(), phwnd.into_param().abi(), pszusername.into_param().abi(), pszpassword.into_param().abi(), piunkouter.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkCreateExtensionServices(pwzadditionalheaders.param().abi(), phwnd.param().abi(), 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] pub unsafe fn HlinkCreateFromData(pidataobj: P0, pihlsite: P1, dwsitedata: u32, piunkouter: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - HlinkCreateFromData(pidataobj.into_param().abi(), pihlsite.into_param().abi(), dwsitedata, piunkouter.into_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] pub unsafe fn HlinkCreateFromMoniker(pimktrgt: P0, pwzlocation: P1, pwzfriendlyname: P2, pihlsite: P3, dwsitedata: u32, piunkouter: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - HlinkCreateFromMoniker(pimktrgt.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), pihlsite.into_param().abi(), dwsitedata, piunkouter.into_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: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - HlinkCreateFromString(pwztarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), pihlsite.into_param().abi(), dwsitedata, piunkouter.into_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: P0, pwzdir: P1, pwzfilename: P2, ppwzshortcutfile: *mut windows_core::PWSTR, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(grfhlshortcutf, pihl.into_param().abi(), pwzdir.into_param().abi(), pwzfilename.into_param().abi(), ppwzshortcutfile, dwreserved).ok() + HlinkCreateShortcut(grfhlshortcutf, pihl.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), ppwzshortcutfile, dwreserved).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkCreateShortcutFromMoniker(grfhlshortcutf: u32, pimktarget: P0, pwzlocation: P1, pwzdir: P2, pwzfilename: P3, ppwzshortcutfile: *mut windows_core::PWSTR, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(grfhlshortcutf, pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzdir.into_param().abi(), pwzfilename.into_param().abi(), ppwzshortcutfile, dwreserved).ok() + HlinkCreateShortcutFromMoniker(grfhlshortcutf, pimktarget.param().abi(), pwzlocation.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), ppwzshortcutfile, dwreserved).ok() } #[inline] pub unsafe fn HlinkCreateShortcutFromString(grfhlshortcutf: u32, pwztarget: P0, pwzlocation: P1, pwzdir: P2, pwzfilename: P3, ppwzshortcutfile: *mut windows_core::PWSTR, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(grfhlshortcutf, pwztarget.into_param().abi(), pwzlocation.into_param().abi(), pwzdir.into_param().abi(), pwzfilename.into_param().abi(), ppwzshortcutfile, dwreserved).ok() + HlinkCreateShortcutFromString(grfhlshortcutf, pwztarget.param().abi(), pwzlocation.param().abi(), pwzdir.param().abi(), pwzfilename.param().abi(), ppwzshortcutfile, dwreserved).ok() } #[inline] pub unsafe fn HlinkGetSpecialReference(ureference: u32) -> windows_core::Result { @@ -732,193 +732,193 @@ pub unsafe fn HlinkGetSpecialReference(ureference: u32) -> windows_core::Result< #[inline] pub unsafe fn HlinkGetValueFromParams(pwzparams: P0, pwzname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkGetValueFromParams(pwzparams : windows_core::PCWSTR, pwzname : windows_core::PCWSTR, ppwzvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - HlinkGetValueFromParams(pwzparams.into_param().abi(), pwzname.into_param().abi(), &mut result__).map(|| result__) + HlinkGetValueFromParams(pwzparams.param().abi(), pwzname.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn HlinkIsShortcut(pwzfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkIsShortcut(pwzfilename : windows_core::PCWSTR) -> windows_core::HRESULT); - HlinkIsShortcut(pwzfilename.into_param().abi()).ok() + HlinkIsShortcut(pwzfilename.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkNavigate(pihl: P0, pihlframe: P1, grfhlnf: u32, pbc: P2, pibsc: P3, pihlbc: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), pihlframe.into_param().abi(), grfhlnf, pbc.into_param().abi(), pibsc.into_param().abi(), pihlbc.into_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] pub unsafe fn HlinkNavigateToStringReference(pwztarget: P0, pwzlocation: P1, pihlsite: P2, dwsitedata: u32, pihlframe: P3, grfhlnf: u32, pibc: P4, pibsc: P5, pihlbc: P6) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, - P6: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, + P6: 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.into_param().abi(), pwzlocation.into_param().abi(), pihlsite.into_param().abi(), dwsitedata, pihlframe.into_param().abi(), grfhlnf, pibc.into_param().abi(), pibsc.into_param().abi(), pihlbc.into_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] pub unsafe fn HlinkOnNavigate(pihlframe: P0, pihlbc: P1, grfhlnf: u32, pimktarget: P2, pwzlocation: P3, pwzfriendlyname: P4, puhlid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), pihlbc.into_param().abi(), grfhlnf, pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), puhlid).ok() + HlinkOnNavigate(pihlframe.param().abi(), pihlbc.param().abi(), grfhlnf, pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi(), puhlid).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkOnRenameDocument(dwreserved: u32, pihlbc: P0, pimkold: P1, pimknew: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(dwreserved, pihlbc.into_param().abi(), pimkold.into_param().abi(), pimknew.into_param().abi()).ok() + HlinkOnRenameDocument(dwreserved, pihlbc.param().abi(), pimkold.param().abi(), pimknew.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkParseDisplayName(pibc: P0, pwzdisplayname: P1, fnoforceabs: P2, pccheaten: *mut u32, ppimk: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkParseDisplayName(pibc : * mut core::ffi::c_void, pwzdisplayname : windows_core::PCWSTR, fnoforceabs : super::super::Foundation:: BOOL, pccheaten : *mut u32, ppimk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkParseDisplayName(pibc.into_param().abi(), pwzdisplayname.into_param().abi(), fnoforceabs.into_param().abi(), pccheaten, core::mem::transmute(ppimk)).ok() + HlinkParseDisplayName(pibc.param().abi(), pwzdisplayname.param().abi(), fnoforceabs.param().abi(), pccheaten, core::mem::transmute(ppimk)).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkPreprocessMoniker(pibc: P0, pimkin: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkPreprocessMoniker(pibc : * mut core::ffi::c_void, pimkin : * mut core::ffi::c_void, ppimkout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - HlinkPreprocessMoniker(pibc.into_param().abi(), pimkin.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + HlinkPreprocessMoniker(pibc.param().abi(), pimkin.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkQueryCreateFromData(pidataobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkQueryCreateFromData(pidataobj : * mut core::ffi::c_void) -> windows_core::HRESULT); - HlinkQueryCreateFromData(pidataobj.into_param().abi()).ok() + HlinkQueryCreateFromData(pidataobj.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkResolveMonikerForData(pimkreference: P0, reserved: u32, pibc: P1, cfmtetc: u32, rgfmtetc: *mut super::super::System::Com::FORMATETC, pibsc: P2, pimkbase: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), reserved, pibc.into_param().abi(), cfmtetc, rgfmtetc, pibsc.into_param().abi(), pimkbase.into_param().abi()).ok() + HlinkResolveMonikerForData(pimkreference.param().abi(), reserved, pibc.param().abi(), cfmtetc, rgfmtetc, pibsc.param().abi(), pimkbase.param().abi()).ok() } #[inline] pub unsafe fn HlinkResolveShortcut(pwzshortcutfilename: P0, pihlsite: P1, dwsitedata: u32, piunkouter: P2, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pihlsite.into_param().abi(), dwsitedata, piunkouter.into_param().abi(), riid, ppvobj).ok() + HlinkResolveShortcut(pwzshortcutfilename.param().abi(), pihlsite.param().abi(), dwsitedata, piunkouter.param().abi(), riid, ppvobj).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkResolveShortcutToMoniker(pwzshortcutfilename: P0, ppimktarget: *mut Option, ppwzlocation: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkResolveShortcutToMoniker(pwzshortcutfilename : windows_core::PCWSTR, ppimktarget : *mut * mut core::ffi::c_void, ppwzlocation : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HlinkResolveShortcutToMoniker(pwzshortcutfilename.into_param().abi(), core::mem::transmute(ppimktarget), ppwzlocation).ok() + HlinkResolveShortcutToMoniker(pwzshortcutfilename.param().abi(), core::mem::transmute(ppimktarget), ppwzlocation).ok() } #[inline] pub unsafe fn HlinkResolveShortcutToString(pwzshortcutfilename: P0, ppwztarget: *mut windows_core::PWSTR, ppwzlocation: *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkResolveShortcutToString(pwzshortcutfilename : windows_core::PCWSTR, ppwztarget : *mut windows_core::PWSTR, ppwzlocation : *mut windows_core::PWSTR) -> windows_core::HRESULT); - HlinkResolveShortcutToString(pwzshortcutfilename.into_param().abi(), ppwztarget, ppwzlocation).ok() + HlinkResolveShortcutToString(pwzshortcutfilename.param().abi(), ppwztarget, ppwzlocation).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkResolveStringForData(pwzreference: P0, reserved: u32, pibc: P1, cfmtetc: u32, rgfmtetc: *mut super::super::System::Com::FORMATETC, pibsc: P2, pimkbase: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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.into_param().abi(), reserved, pibc.into_param().abi(), cfmtetc, rgfmtetc, pibsc.into_param().abi(), pimkbase.into_param().abi()).ok() + HlinkResolveStringForData(pwzreference.param().abi(), reserved, pibc.param().abi(), cfmtetc, rgfmtetc, pibsc.param().abi(), pimkbase.param().abi()).ok() } #[inline] pub unsafe fn HlinkSetSpecialReference(ureference: u32, pwzreference: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn HlinkSetSpecialReference(ureference : u32, pwzreference : windows_core::PCWSTR) -> windows_core::HRESULT); - HlinkSetSpecialReference(ureference, pwzreference.into_param().abi()).ok() + HlinkSetSpecialReference(ureference, pwzreference.param().abi()).ok() } #[inline] pub unsafe fn HlinkTranslateURL(pwzurl: P0, grfflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - HlinkTranslateURL(pwzurl.into_param().abi(), grfflags, &mut result__).map(|| result__) + HlinkTranslateURL(pwzurl.param().abi(), grfflags, &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkUpdateStackItem(pihlframe: P0, pihlbc: P1, uhlid: u32, pimktrgt: P2, pwzlocation: P3, pwzfriendlyname: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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.into_param().abi(), pihlbc.into_param().abi(), uhlid, pimktrgt.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_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: P0) -> *mut Common::ITEMIDLIST where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null())), pmkid, fappend.into_param().abi()) + ILAppendID(core::mem::transmute(pidl.unwrap_or(std::ptr::null())), pmkid, fappend.param().abi()) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -942,19 +942,19 @@ pub unsafe fn ILCombine(pidl1: Option<*const Common::ITEMIDLIST>, pidl2: Option< #[inline] pub unsafe fn ILCreateFromPathA(pszpath: P0) -> *mut Common::ITEMIDLIST where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ILCreateFromPathA(pszpath : windows_core::PCSTR) -> *mut Common:: ITEMIDLIST); - ILCreateFromPathA(pszpath.into_param().abi()) + ILCreateFromPathA(pszpath.param().abi()) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILCreateFromPathW(pszpath: P0) -> *mut Common::ITEMIDLIST where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ILCreateFromPathW(pszpath : windows_core::PCWSTR) -> *mut Common:: ITEMIDLIST); - ILCreateFromPathW(pszpath.into_param().abi()) + ILCreateFromPathW(pszpath.param().abi()) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -996,20 +996,20 @@ pub unsafe fn ILIsEqual(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common:: #[inline] pub unsafe fn ILIsParent(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST, fimmediate: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(pidl1, pidl2, fimmediate.into_param().abi()) + ILIsParent(pidl1, pidl2, fimmediate.param().abi()) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILLoadFromStreamEx(pstm: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ILLoadFromStreamEx(pstm : * mut core::ffi::c_void, pidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - ILLoadFromStreamEx(pstm.into_param().abi(), &mut result__).map(|| result__) + ILLoadFromStreamEx(pstm.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -1021,96 +1021,96 @@ pub unsafe fn ILRemoveLastID(pidl: Option<*mut Common::ITEMIDLIST>) -> super::su #[inline] pub unsafe fn ILSaveToStream(pstm: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pidl).ok() + ILSaveToStream(pstm.param().abi(), pidl).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Copy(pstmfrom: P0, pstmto: P1, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pstmto.into_param().abi(), cb).ok() + IStream_Copy(pstmfrom.param().abi(), pstmto.param().abi(), cb).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Read(pstm: P0, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pv, cb).ok() + IStream_Read(pstm.param().abi(), pv, cb).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn IStream_ReadPidl(pstm: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_ReadPidl(pstm : * mut core::ffi::c_void, ppidlout : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - IStream_ReadPidl(pstm.into_param().abi(), &mut result__).map(|| result__) + IStream_ReadPidl(pstm.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_ReadStr(pstm: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_ReadStr(pstm : * mut core::ffi::c_void, ppsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - IStream_ReadStr(pstm.into_param().abi(), &mut result__).map(|| result__) + IStream_ReadStr(pstm.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Reset(pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_Reset(pstm : * mut core::ffi::c_void) -> windows_core::HRESULT); - IStream_Reset(pstm.into_param().abi()).ok() + IStream_Reset(pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Size(pstm: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_Size(pstm : * mut core::ffi::c_void, pui : *mut u64) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - IStream_Size(pstm.into_param().abi(), &mut result__).map(|| result__) + IStream_Size(pstm.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Write(pstm: P0, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pv, cb).ok() + IStream_Write(pstm.param().abi(), pv, cb).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn IStream_WritePidl(pstm: P0, pidlwrite: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pidlwrite).ok() + IStream_WritePidl(pstm.param().abi(), pidlwrite).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_WriteStr(pstm: P0, psz: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IStream_WriteStr(pstm : * mut core::ffi::c_void, psz : windows_core::PCWSTR) -> windows_core::HRESULT); - IStream_WriteStr(pstm.into_param().abi(), psz.into_param().abi()).ok() + IStream_WriteStr(pstm.param().abi(), psz.param().abi()).ok() } #[inline] pub unsafe fn IUnknown_AtomicRelease(ppunk: Option<*mut *mut core::ffi::c_void>) { @@ -1120,56 +1120,56 @@ pub unsafe fn IUnknown_AtomicRelease(ppunk: Option<*mut *mut core::ffi::c_void>) #[inline] pub unsafe fn IUnknown_GetSite(punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shlwapi.dll" "system" fn IUnknown_GetSite(punk : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - IUnknown_GetSite(punk.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + IUnknown_GetSite(punk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn IUnknown_GetWindow(punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IUnknown_GetWindow(punk : * mut core::ffi::c_void, phwnd : *mut super::super::Foundation:: HWND) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - IUnknown_GetWindow(punk.into_param().abi(), &mut result__).map(|| result__) + IUnknown_GetWindow(punk.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn IUnknown_QueryService(punk: P0, guidservice: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - IUnknown_QueryService(punk.into_param().abi(), 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: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IUnknown_Set(ppunk : *mut * mut core::ffi::c_void, punk : * mut core::ffi::c_void)); - IUnknown_Set(core::mem::transmute(ppunk), punk.into_param().abi()) + IUnknown_Set(core::mem::transmute(ppunk), punk.param().abi()) } #[inline] pub unsafe fn IUnknown_SetSite(punk: P0, punksite: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn IUnknown_SetSite(punk : * mut core::ffi::c_void, punksite : * mut core::ffi::c_void) -> windows_core::HRESULT); - IUnknown_SetSite(punk.into_param().abi(), punksite.into_param().abi()).ok() + IUnknown_SetSite(punk.param().abi(), punksite.param().abi()).ok() } #[inline] pub unsafe fn ImportPrivacySettings(pszfilename: P0, pfparseprivacypreferences: *mut super::super::Foundation::BOOL, pfparsepersiterules: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shdocvw.dll" "system" fn ImportPrivacySettings(pszfilename : windows_core::PCWSTR, pfparseprivacypreferences : *mut super::super::Foundation:: BOOL, pfparsepersiterules : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ImportPrivacySettings(pszfilename.into_param().abi(), pfparseprivacypreferences, pfparsepersiterules) + ImportPrivacySettings(pszfilename.param().abi(), pfparseprivacypreferences, pfparsepersiterules) } #[inline] pub unsafe fn InitNetworkAddressControl() -> super::super::Foundation::BOOL { @@ -1192,22 +1192,22 @@ pub unsafe fn InitVariantFromStrRet(pstrret: *const Common::STRRET, pidl: *const #[inline] pub unsafe fn IntlStrEqWorkerA(fcasesens: P0, lpstring1: P1, lpstring2: P2, nchar: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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_param().abi(), lpstring1.into_param().abi(), lpstring2.into_param().abi(), nchar) + IntlStrEqWorkerA(fcasesens.param().abi(), lpstring1.param().abi(), lpstring2.param().abi(), nchar) } #[inline] pub unsafe fn IntlStrEqWorkerW(fcasesens: P0, lpstring1: P1, lpstring2: P2, nchar: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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_param().abi(), lpstring1.into_param().abi(), lpstring2.into_param().abi(), nchar) + IntlStrEqWorkerW(fcasesens.param().abi(), lpstring1.param().abi(), lpstring2.param().abi(), nchar) } #[inline] pub unsafe fn IsCharSpaceA(wch: i8) -> super::super::Foundation::BOOL { @@ -1227,18 +1227,18 @@ pub unsafe fn IsInternetESCEnabled() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsLFNDriveA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn IsLFNDriveA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - IsLFNDriveA(pszpath.into_param().abi()) + IsLFNDriveA(pszpath.param().abi()) } #[inline] pub unsafe fn IsLFNDriveW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn IsLFNDriveW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - IsLFNDriveW(pszpath.into_param().abi()) + IsLFNDriveW(pszpath.param().abi()) } #[inline] pub unsafe fn IsNetDrive(idrive: i32) -> i32 { @@ -1258,56 +1258,56 @@ pub unsafe fn IsUserAnAdmin() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn LoadUserProfileA(htoken: P0, lpprofileinfo: *mut PROFILEINFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn LoadUserProfileA(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOA) -> super::super::Foundation:: BOOL); - LoadUserProfileA(htoken.into_param().abi(), lpprofileinfo).ok() + LoadUserProfileA(htoken.param().abi(), lpprofileinfo).ok() } #[inline] pub unsafe fn LoadUserProfileW(htoken: P0, lpprofileinfo: *mut PROFILEINFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn LoadUserProfileW(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOW) -> super::super::Foundation:: BOOL); - LoadUserProfileW(htoken.into_param().abi(), lpprofileinfo).ok() + LoadUserProfileW(htoken.param().abi(), lpprofileinfo).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn OleSaveToStreamEx(piunk: P0, pistm: P1, fcleardirty: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("hlink.dll" "system" fn OleSaveToStreamEx(piunk : * mut core::ffi::c_void, pistm : * mut core::ffi::c_void, fcleardirty : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - OleSaveToStreamEx(piunk.into_param().abi(), pistm.into_param().abi(), fcleardirty.into_param().abi()).ok() + OleSaveToStreamEx(piunk.param().abi(), pistm.param().abi(), fcleardirty.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn OpenRegStream(hkey: P0, pszsubkey: P1, pszvalue: P2, grfmode: u32) -> Option where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), grfmode) + OpenRegStream(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[inline] pub unsafe fn ParseURLA(pcszurl: P0, ppu: *mut PARSEDURLA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn ParseURLA(pcszurl : windows_core::PCSTR, ppu : *mut PARSEDURLA) -> windows_core::HRESULT); - ParseURLA(pcszurl.into_param().abi(), ppu).ok() + ParseURLA(pcszurl.param().abi(), ppu).ok() } #[inline] pub unsafe fn ParseURLW(pcszurl: P0, ppu: *mut PARSEDURLW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn ParseURLW(pcszurl : windows_core::PCWSTR, ppu : *mut PARSEDURLW) -> windows_core::HRESULT); - ParseURLW(pcszurl.into_param().abi(), ppu).ok() + ParseURLW(pcszurl.param().abi(), ppu).ok() } #[inline] pub unsafe fn PathAddBackslashA(pszpath: &mut [u8; 260]) -> windows_core::PSTR { @@ -1322,53 +1322,53 @@ pub unsafe fn PathAddBackslashW(pszpath: &mut [u16; 260]) -> windows_core::PWSTR #[inline] pub unsafe fn PathAddExtensionA(pszpath: &mut [u8; 260], pszext: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathAddExtensionA(pszpath : windows_core::PSTR, pszext : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathAddExtensionA(core::mem::transmute(pszpath.as_ptr()), pszext.into_param().abi()) + PathAddExtensionA(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } #[inline] pub unsafe fn PathAddExtensionW(pszpath: &mut [u16; 260], pszext: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathAddExtensionW(pszpath : windows_core::PWSTR, pszext : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathAddExtensionW(core::mem::transmute(pszpath.as_ptr()), pszext.into_param().abi()) + PathAddExtensionW(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } #[inline] pub unsafe fn PathAllocCanonicalize(pszpathin: P0, dwflags: PATHCCH_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PathAllocCanonicalize(pszpathin.into_param().abi(), dwflags, &mut result__).map(|| result__) + PathAllocCanonicalize(pszpathin.param().abi(), dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn PathAllocCombine(pszpathin: P0, pszmore: P1, dwflags: PATHCCH_OPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - PathAllocCombine(pszpathin.into_param().abi(), pszmore.into_param().abi(), dwflags, &mut result__).map(|| result__) + PathAllocCombine(pszpathin.param().abi(), pszmore.param().abi(), dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn PathAppendA(pszpath: &mut [u8; 260], pszmore: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathAppendA(pszpath : windows_core::PSTR, pszmore : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathAppendA(core::mem::transmute(pszpath.as_ptr()), pszmore.into_param().abi()) + PathAppendA(core::mem::transmute(pszpath.as_ptr()), pszmore.param().abi()) } #[inline] pub unsafe fn PathAppendW(pszpath: &mut [u16; 260], pszmore: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathAppendW(pszpath : windows_core::PWSTR, pszmore : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathAppendW(core::mem::transmute(pszpath.as_ptr()), pszmore.into_param().abi()) + PathAppendW(core::mem::transmute(pszpath.as_ptr()), pszmore.param().abi()) } #[inline] pub unsafe fn PathBuildRootA(pszroot: &mut [u8; 4], idrive: i32) -> windows_core::PSTR { @@ -1383,18 +1383,18 @@ pub unsafe fn PathBuildRootW(pszroot: &mut [u16; 4], idrive: i32) -> windows_cor #[inline] pub unsafe fn PathCanonicalizeA(pszbuf: &mut [u8; 260], pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCanonicalizeA(pszbuf : windows_core::PSTR, pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathCanonicalizeA(core::mem::transmute(pszbuf.as_ptr()), pszpath.into_param().abi()).ok() + PathCanonicalizeA(core::mem::transmute(pszbuf.as_ptr()), pszpath.param().abi()).ok() } #[inline] pub unsafe fn PathCanonicalizeW(pszbuf: &mut [u16; 260], pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCanonicalizeW(pszbuf : windows_core::PWSTR, pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathCanonicalizeW(core::mem::transmute(pszbuf.as_ptr()), pszpath.into_param().abi()).ok() + PathCanonicalizeW(core::mem::transmute(pszbuf.as_ptr()), pszpath.param().abi()).ok() } #[inline] pub unsafe fn PathCchAddBackslash(pszpath: &mut [u16]) -> windows_core::HRESULT { @@ -1409,77 +1409,77 @@ pub unsafe fn PathCchAddBackslashEx(pszpath: &mut [u16], ppszend: Option<*mut wi #[inline] pub unsafe fn PathCchAddExtension(pszpath: &mut [u16], pszext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchAddExtension(pszpath : windows_core::PWSTR, cchpath : usize, pszext : windows_core::PCWSTR) -> windows_core::HRESULT); - PathCchAddExtension(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszext.into_param().abi()).ok() + PathCchAddExtension(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszext.param().abi()).ok() } #[inline] pub unsafe fn PathCchAppend(pszpath: &mut [u16], pszmore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchAppend(pszpath : windows_core::PWSTR, cchpath : usize, pszmore : windows_core::PCWSTR) -> windows_core::HRESULT); - PathCchAppend(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszmore.into_param().abi()).ok() + PathCchAppend(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszmore.param().abi()).ok() } #[inline] pub unsafe fn PathCchAppendEx(pszpath: &mut [u16], pszmore: P0, dwflags: PATHCCH_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchCanonicalize(pszpathout : windows_core::PWSTR, cchpathout : usize, pszpathin : windows_core::PCWSTR) -> windows_core::HRESULT); - PathCchCanonicalize(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.into_param().abi()).ok() + PathCchCanonicalize(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.param().abi()).ok() } #[inline] pub unsafe fn PathCchCanonicalizeEx(pszpathout: &mut [u16], pszpathin: P0, dwflags: PATHCCH_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), 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: P0, pszmore: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchCombine(pszpathout : windows_core::PWSTR, cchpathout : usize, pszpathin : windows_core::PCWSTR, pszmore : windows_core::PCWSTR) -> windows_core::HRESULT); - PathCchCombine(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.into_param().abi(), pszmore.into_param().abi()).ok() + PathCchCombine(core::mem::transmute(pszpathout.as_ptr()), pszpathout.len().try_into().unwrap(), pszpathin.param().abi(), pszmore.param().abi()).ok() } #[inline] pub unsafe fn PathCchCombineEx(pszpathout: &mut [u16], pszpathin: P0, pszmore: P1, dwflags: PATHCCH_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), pszmore.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - PathCchFindExtension(pszpath.into_param().abi(), cchpath, &mut result__).map(|| result__) + PathCchFindExtension(pszpath.param().abi(), cchpath, &mut result__).map(|| result__) } #[inline] pub unsafe fn PathCchIsRoot(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchIsRoot(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathCchIsRoot(pszpath.into_param().abi()) + PathCchIsRoot(pszpath.param().abi()) } #[inline] pub unsafe fn PathCchRemoveBackslash(pszpath: &mut [u16]) -> windows_core::HRESULT { @@ -1504,19 +1504,19 @@ pub unsafe fn PathCchRemoveFileSpec(pszpath: windows_core::PWSTR, cchpath: usize #[inline] pub unsafe fn PathCchRenameExtension(pszpath: &mut [u16], pszext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchRenameExtension(pszpath : windows_core::PWSTR, cchpath : usize, pszext : windows_core::PCWSTR) -> windows_core::HRESULT); - PathCchRenameExtension(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszext.into_param().abi()).ok() + PathCchRenameExtension(core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), pszext.param().abi()).ok() } #[inline] pub unsafe fn PathCchSkipRoot(pszpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchSkipRoot(pszpath : windows_core::PCWSTR, ppszrootend : *mut windows_core::PCWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - PathCchSkipRoot(pszpath.into_param().abi(), &mut result__).map(|| result__) + PathCchSkipRoot(pszpath.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn PathCchStripPrefix(pszpath: &mut [u16]) -> windows_core::HRESULT { @@ -1531,168 +1531,168 @@ pub unsafe fn PathCchStripToRoot(pszpath: windows_core::PWSTR, cchpath: usize) - #[inline] pub unsafe fn PathCleanupSpec(pszdir: P0, pszspec: windows_core::PWSTR) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathCleanupSpec(pszdir : windows_core::PCWSTR, pszspec : windows_core::PWSTR) -> i32); - PathCleanupSpec(pszdir.into_param().abi(), core::mem::transmute(pszspec)) + PathCleanupSpec(pszdir.param().abi(), core::mem::transmute(pszspec)) } #[inline] pub unsafe fn PathCombineA(pszdest: &mut [u8; 260], pszdir: P0, pszfile: P1) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCombineA(pszdest : windows_core::PSTR, pszdir : windows_core::PCSTR, pszfile : windows_core::PCSTR) -> windows_core::PSTR); - PathCombineA(core::mem::transmute(pszdest.as_ptr()), pszdir.into_param().abi(), pszfile.into_param().abi()) + PathCombineA(core::mem::transmute(pszdest.as_ptr()), pszdir.param().abi(), pszfile.param().abi()) } #[inline] pub unsafe fn PathCombineW(pszdest: &mut [u16; 260], pszdir: P0, pszfile: P1) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCombineW(pszdest : windows_core::PWSTR, pszdir : windows_core::PCWSTR, pszfile : windows_core::PCWSTR) -> windows_core::PWSTR); - PathCombineW(core::mem::transmute(pszdest.as_ptr()), pszdir.into_param().abi(), pszfile.into_param().abi()) + PathCombineW(core::mem::transmute(pszdest.as_ptr()), pszdir.param().abi(), pszfile.param().abi()) } #[inline] pub unsafe fn PathCommonPrefixA(pszfile1: P0, pszfile2: P1, achpath: Option<&mut [u8; 260]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCommonPrefixA(pszfile1 : windows_core::PCSTR, pszfile2 : windows_core::PCSTR, achpath : windows_core::PSTR) -> i32); - PathCommonPrefixA(pszfile1.into_param().abi(), pszfile2.into_param().abi(), core::mem::transmute(achpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + PathCommonPrefixA(pszfile1.param().abi(), pszfile2.param().abi(), core::mem::transmute(achpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn PathCommonPrefixW(pszfile1: P0, pszfile2: P1, achpath: Option<&mut [u16; 260]>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathCommonPrefixW(pszfile1 : windows_core::PCWSTR, pszfile2 : windows_core::PCWSTR, achpath : windows_core::PWSTR) -> i32); - PathCommonPrefixW(pszfile1.into_param().abi(), pszfile2.into_param().abi(), core::mem::transmute(achpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + PathCommonPrefixW(pszfile1.param().abi(), pszfile2.param().abi(), core::mem::transmute(achpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn PathCompactPathA(hdc: P0, pszpath: &mut [u8; 260], dx: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(pszpath.as_ptr()), dx) + PathCompactPathA(hdc.param().abi(), core::mem::transmute(pszpath.as_ptr()), dx) } #[inline] pub unsafe fn PathCompactPathExA(pszout: &mut [u8], pszsrc: P0, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), pszout.len().try_into().unwrap(), 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: P0, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), pszout.len().try_into().unwrap(), 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: P0, pszpath: &mut [u16; 260], dx: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hdc.into_param().abi(), core::mem::transmute(pszpath.as_ptr()), dx) + PathCompactPathW(hdc.param().abi(), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszpath), pcchpath, dwflags).ok() + PathCreateFromUrlA(pszurl.param().abi(), core::mem::transmute(pszpath), pcchpath, dwflags).ok() } #[inline] pub unsafe fn PathCreateFromUrlAlloc(pszin: P0, ppszout: *mut windows_core::PWSTR, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), ppszout, dwflags).ok() + PathCreateFromUrlAlloc(pszin.param().abi(), ppszout, dwflags).ok() } #[inline] pub unsafe fn PathCreateFromUrlW(pszurl: P0, pszpath: windows_core::PWSTR, pcchpath: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszpath), pcchpath, dwflags).ok() + PathCreateFromUrlW(pszurl.param().abi(), core::mem::transmute(pszpath), pcchpath, dwflags).ok() } #[inline] pub unsafe fn PathFileExistsA(pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFileExistsA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathFileExistsA(pszpath.into_param().abi()).ok() + PathFileExistsA(pszpath.param().abi()).ok() } #[inline] pub unsafe fn PathFileExistsW(pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFileExistsW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathFileExistsW(pszpath.into_param().abi()).ok() + PathFileExistsW(pszpath.param().abi()).ok() } #[inline] pub unsafe fn PathFindExtensionA(pszpath: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindExtensionA(pszpath : windows_core::PCSTR) -> windows_core::PSTR); - PathFindExtensionA(pszpath.into_param().abi()) + PathFindExtensionA(pszpath.param().abi()) } #[inline] pub unsafe fn PathFindExtensionW(pszpath: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindExtensionW(pszpath : windows_core::PCWSTR) -> windows_core::PWSTR); - PathFindExtensionW(pszpath.into_param().abi()) + PathFindExtensionW(pszpath.param().abi()) } #[inline] pub unsafe fn PathFindFileNameA(pszpath: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindFileNameA(pszpath : windows_core::PCSTR) -> windows_core::PSTR); - PathFindFileNameA(pszpath.into_param().abi()) + PathFindFileNameA(pszpath.param().abi()) } #[inline] pub unsafe fn PathFindFileNameW(pszpath: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindFileNameW(pszpath : windows_core::PCWSTR) -> windows_core::PWSTR); - PathFindFileNameW(pszpath.into_param().abi()) + PathFindFileNameW(pszpath.param().abi()) } #[inline] pub unsafe fn PathFindNextComponentA(pszpath: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindNextComponentA(pszpath : windows_core::PCSTR) -> windows_core::PSTR); - PathFindNextComponentA(pszpath.into_param().abi()) + PathFindNextComponentA(pszpath.param().abi()) } #[inline] pub unsafe fn PathFindNextComponentW(pszpath: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindNextComponentW(pszpath : windows_core::PCWSTR) -> windows_core::PWSTR); - PathFindNextComponentW(pszpath.into_param().abi()) + PathFindNextComponentW(pszpath.param().abi()) } #[inline] pub unsafe fn PathFindOnPathA(pszpath: &mut [u8; 260], ppszotherdirs: Option<*const *const i8>) -> super::super::Foundation::BOOL { @@ -1707,34 +1707,34 @@ pub unsafe fn PathFindOnPathW(pszpath: &mut [u16; 260], ppszotherdirs: Option<*c #[inline] pub unsafe fn PathFindSuffixArrayA(pszpath: P0, apszsuffix: &[windows_core::PCSTR]) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindSuffixArrayA(pszpath : windows_core::PCSTR, apszsuffix : *const windows_core::PCSTR, iarraysize : i32) -> windows_core::PCSTR); - PathFindSuffixArrayA(pszpath.into_param().abi(), core::mem::transmute(apszsuffix.as_ptr()), apszsuffix.len().try_into().unwrap()) + PathFindSuffixArrayA(pszpath.param().abi(), core::mem::transmute(apszsuffix.as_ptr()), apszsuffix.len().try_into().unwrap()) } #[inline] pub unsafe fn PathFindSuffixArrayW(pszpath: P0, apszsuffix: &[windows_core::PCWSTR]) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathFindSuffixArrayW(pszpath : windows_core::PCWSTR, apszsuffix : *const windows_core::PCWSTR, iarraysize : i32) -> windows_core::PCWSTR); - PathFindSuffixArrayW(pszpath.into_param().abi(), core::mem::transmute(apszsuffix.as_ptr()), apszsuffix.len().try_into().unwrap()) + PathFindSuffixArrayW(pszpath.param().abi(), core::mem::transmute(apszsuffix.as_ptr()), apszsuffix.len().try_into().unwrap()) } #[inline] pub unsafe fn PathGetArgsA(pszpath: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathGetArgsA(pszpath : windows_core::PCSTR) -> windows_core::PSTR); - PathGetArgsA(pszpath.into_param().abi()) + PathGetArgsA(pszpath.param().abi()) } #[inline] pub unsafe fn PathGetArgsW(pszpath: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathGetArgsW(pszpath : windows_core::PCWSTR) -> windows_core::PWSTR); - PathGetArgsW(pszpath.into_param().abi()) + PathGetArgsW(pszpath.param().abi()) } #[inline] pub unsafe fn PathGetCharTypeA(ch: u8) -> u32 { @@ -1749,18 +1749,18 @@ pub unsafe fn PathGetCharTypeW(ch: u16) -> u32 { #[inline] pub unsafe fn PathGetDriveNumberA(pszpath: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathGetDriveNumberA(pszpath : windows_core::PCSTR) -> i32); - PathGetDriveNumberA(pszpath.into_param().abi()) + PathGetDriveNumberA(pszpath.param().abi()) } #[inline] pub unsafe fn PathGetDriveNumberW(pszpath: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathGetDriveNumberW(pszpath : windows_core::PCWSTR) -> i32); - PathGetDriveNumberW(pszpath.into_param().abi()) + PathGetDriveNumberW(pszpath.param().abi()) } #[inline] pub unsafe fn PathGetShortPath(pszlongpath: &mut [u16; 260]) { @@ -1770,280 +1770,280 @@ pub unsafe fn PathGetShortPath(pszlongpath: &mut [u16; 260]) { #[inline] pub unsafe fn PathIsContentTypeA(pszpath: P0, pszcontenttype: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsContentTypeA(pszpath : windows_core::PCSTR, pszcontenttype : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsContentTypeA(pszpath.into_param().abi(), pszcontenttype.into_param().abi()) + PathIsContentTypeA(pszpath.param().abi(), pszcontenttype.param().abi()) } #[inline] pub unsafe fn PathIsContentTypeW(pszpath: P0, pszcontenttype: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsContentTypeW(pszpath : windows_core::PCWSTR, pszcontenttype : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsContentTypeW(pszpath.into_param().abi(), pszcontenttype.into_param().abi()) + PathIsContentTypeW(pszpath.param().abi(), pszcontenttype.param().abi()) } #[inline] pub unsafe fn PathIsDirectoryA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsDirectoryA(pszpath.into_param().abi()) + PathIsDirectoryA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsDirectoryEmptyA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryEmptyA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsDirectoryEmptyA(pszpath.into_param().abi()) + PathIsDirectoryEmptyA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsDirectoryEmptyW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryEmptyW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsDirectoryEmptyW(pszpath.into_param().abi()) + PathIsDirectoryEmptyW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsDirectoryW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsDirectoryW(pszpath.into_param().abi()) + PathIsDirectoryW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsExe(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathIsExe(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsExe(pszpath.into_param().abi()) + PathIsExe(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsFileSpecA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsFileSpecA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsFileSpecA(pszpath.into_param().abi()) + PathIsFileSpecA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsFileSpecW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsFileSpecW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsFileSpecW(pszpath.into_param().abi()) + PathIsFileSpecW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsLFNFileSpecA(pszname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsLFNFileSpecA(pszname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsLFNFileSpecA(pszname.into_param().abi()) + PathIsLFNFileSpecA(pszname.param().abi()) } #[inline] pub unsafe fn PathIsLFNFileSpecW(pszname: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsLFNFileSpecW(pszname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsLFNFileSpecW(pszname.into_param().abi()) + PathIsLFNFileSpecW(pszname.param().abi()) } #[inline] pub unsafe fn PathIsNetworkPathA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsNetworkPathA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsNetworkPathA(pszpath.into_param().abi()) + PathIsNetworkPathA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsNetworkPathW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsNetworkPathW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsNetworkPathW(pszpath.into_param().abi()) + PathIsNetworkPathW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsPrefixA(pszprefix: P0, pszpath: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsPrefixA(pszprefix : windows_core::PCSTR, pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsPrefixA(pszprefix.into_param().abi(), pszpath.into_param().abi()) + PathIsPrefixA(pszprefix.param().abi(), pszpath.param().abi()) } #[inline] pub unsafe fn PathIsPrefixW(pszprefix: P0, pszpath: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsPrefixW(pszprefix : windows_core::PCWSTR, pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsPrefixW(pszprefix.into_param().abi(), pszpath.into_param().abi()) + PathIsPrefixW(pszprefix.param().abi(), pszpath.param().abi()) } #[inline] pub unsafe fn PathIsRelativeA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsRelativeA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsRelativeA(pszpath.into_param().abi()) + PathIsRelativeA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsRelativeW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsRelativeW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsRelativeW(pszpath.into_param().abi()) + PathIsRelativeW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsRootA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsRootA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsRootA(pszpath.into_param().abi()) + PathIsRootA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsRootW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsRootW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsRootW(pszpath.into_param().abi()) + PathIsRootW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsSameRootA(pszpath1: P0, pszpath2: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsSameRootA(pszpath1 : windows_core::PCSTR, pszpath2 : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsSameRootA(pszpath1.into_param().abi(), pszpath2.into_param().abi()) + PathIsSameRootA(pszpath1.param().abi(), pszpath2.param().abi()) } #[inline] pub unsafe fn PathIsSameRootW(pszpath1: P0, pszpath2: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsSameRootW(pszpath1 : windows_core::PCWSTR, pszpath2 : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsSameRootW(pszpath1.into_param().abi(), pszpath2.into_param().abi()) + PathIsSameRootW(pszpath1.param().abi(), pszpath2.param().abi()) } #[inline] pub unsafe fn PathIsSlowA(pszfile: P0, dwattr: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathIsSlowA(pszfile : windows_core::PCSTR, dwattr : u32) -> super::super::Foundation:: BOOL); - PathIsSlowA(pszfile.into_param().abi(), dwattr) + PathIsSlowA(pszfile.param().abi(), dwattr) } #[inline] pub unsafe fn PathIsSlowW(pszfile: P0, dwattr: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathIsSlowW(pszfile : windows_core::PCWSTR, dwattr : u32) -> super::super::Foundation:: BOOL); - PathIsSlowW(pszfile.into_param().abi(), dwattr) + PathIsSlowW(pszfile.param().abi(), dwattr) } #[inline] pub unsafe fn PathIsSystemFolderA(pszpath: P0, dwattrb: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderA(pszpath : windows_core::PCSTR, dwattrb : u32) -> super::super::Foundation:: BOOL); - PathIsSystemFolderA(pszpath.into_param().abi(), dwattrb) + PathIsSystemFolderA(pszpath.param().abi(), dwattrb) } #[inline] pub unsafe fn PathIsSystemFolderW(pszpath: P0, dwattrb: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderW(pszpath : windows_core::PCWSTR, dwattrb : u32) -> super::super::Foundation:: BOOL); - PathIsSystemFolderW(pszpath.into_param().abi(), dwattrb) + PathIsSystemFolderW(pszpath.param().abi(), dwattrb) } #[inline] pub unsafe fn PathIsUNCA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsUNCA(pszpath.into_param().abi()) + PathIsUNCA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsUNCEx(pszpath: P0, ppszserver: Option<*mut windows_core::PCWSTR>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathIsUNCEx(pszpath : windows_core::PCWSTR, ppszserver : *mut windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsUNCEx(pszpath.into_param().abi(), core::mem::transmute(ppszserver.unwrap_or(std::ptr::null_mut()))) + PathIsUNCEx(pszpath.param().abi(), core::mem::transmute(ppszserver.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn PathIsUNCServerA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsUNCServerA(pszpath.into_param().abi()) + PathIsUNCServerA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsUNCServerShareA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerShareA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsUNCServerShareA(pszpath.into_param().abi()) + PathIsUNCServerShareA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsUNCServerShareW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerShareW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsUNCServerShareW(pszpath.into_param().abi()) + PathIsUNCServerShareW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsUNCServerW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsUNCServerW(pszpath.into_param().abi()) + PathIsUNCServerW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsUNCW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsUNCW(pszpath.into_param().abi()) + PathIsUNCW(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsURLA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsURLA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathIsURLA(pszpath.into_param().abi()) + PathIsURLA(pszpath.param().abi()) } #[inline] pub unsafe fn PathIsURLW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathIsURLW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathIsURLW(pszpath.into_param().abi()) + PathIsURLW(pszpath.param().abi()) } #[inline] pub unsafe fn PathMakePrettyA(pszpath: windows_core::PSTR) -> super::super::Foundation::BOOL { @@ -2058,64 +2058,64 @@ pub unsafe fn PathMakePrettyW(pszpath: windows_core::PWSTR) -> super::super::Fou #[inline] pub unsafe fn PathMakeSystemFolderA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathMakeSystemFolderA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathMakeSystemFolderA(pszpath.into_param().abi()) + PathMakeSystemFolderA(pszpath.param().abi()) } #[inline] pub unsafe fn PathMakeSystemFolderW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathMakeSystemFolderW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathMakeSystemFolderW(pszpath.into_param().abi()) + PathMakeSystemFolderW(pszpath.param().abi()) } #[inline] pub unsafe fn PathMakeUniqueName(pszuniquename: &mut [u16], psztemplate: P0, pszlongplate: P1, pszdir: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathMakeUniqueName(pszuniquename : windows_core::PWSTR, cchmax : u32, psztemplate : windows_core::PCWSTR, pszlongplate : windows_core::PCWSTR, pszdir : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathMakeUniqueName(core::mem::transmute(pszuniquename.as_ptr()), pszuniquename.len().try_into().unwrap(), psztemplate.into_param().abi(), pszlongplate.into_param().abi(), pszdir.into_param().abi()) + PathMakeUniqueName(core::mem::transmute(pszuniquename.as_ptr()), pszuniquename.len().try_into().unwrap(), psztemplate.param().abi(), pszlongplate.param().abi(), pszdir.param().abi()) } #[inline] pub unsafe fn PathMatchSpecA(pszfile: P0, pszspec: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecA(pszfile : windows_core::PCSTR, pszspec : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathMatchSpecA(pszfile.into_param().abi(), pszspec.into_param().abi()) + PathMatchSpecA(pszfile.param().abi(), pszspec.param().abi()) } #[inline] pub unsafe fn PathMatchSpecExA(pszfile: P0, pszspec: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszspec.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszspec.into_param().abi(), dwflags).ok() + PathMatchSpecExW(pszfile.param().abi(), pszspec.param().abi(), dwflags).ok() } #[inline] pub unsafe fn PathMatchSpecW(pszfile: P0, pszspec: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecW(pszfile : windows_core::PCWSTR, pszspec : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathMatchSpecW(pszfile.into_param().abi(), pszspec.into_param().abi()) + PathMatchSpecW(pszfile.param().abi(), pszspec.param().abi()) } #[inline] pub unsafe fn PathParseIconLocationA(psziconfile: windows_core::PSTR) -> i32 { @@ -2145,20 +2145,20 @@ pub unsafe fn PathQuoteSpacesW(lpsz: &mut [u16; 260]) -> super::super::Foundatio #[inline] pub unsafe fn PathRelativePathToA(pszpath: &mut [u8; 260], pszfrom: P0, dwattrfrom: u32, pszto: P1, dwattrto: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwattrfrom, pszto.into_param().abi(), 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: P0, dwattrfrom: u32, pszto: P1, dwattrto: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwattrfrom, pszto.into_param().abi(), 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) { @@ -2213,18 +2213,18 @@ pub unsafe fn PathRemoveFileSpecW(pszpath: windows_core::PWSTR) -> super::super: #[inline] pub unsafe fn PathRenameExtensionA(pszpath: &mut [u8; 260], pszext: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathRenameExtensionA(pszpath : windows_core::PSTR, pszext : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathRenameExtensionA(core::mem::transmute(pszpath.as_ptr()), pszext.into_param().abi()) + PathRenameExtensionA(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } #[inline] pub unsafe fn PathRenameExtensionW(pszpath: &mut [u16; 260], pszext: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathRenameExtensionW(pszpath : windows_core::PWSTR, pszext : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathRenameExtensionW(core::mem::transmute(pszpath.as_ptr()), pszext.into_param().abi()) + PathRenameExtensionW(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } #[inline] pub unsafe fn PathResolve(pszpath: &mut [u16; 260], dirs: Option<*const *const u16>, fflags: PRF_FLAGS) -> i32 { @@ -2234,52 +2234,52 @@ pub unsafe fn PathResolve(pszpath: &mut [u16; 260], dirs: Option<*const *const u #[inline] pub unsafe fn PathSearchAndQualifyA(pszpath: P0, pszbuf: &mut [u8]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSearchAndQualifyA(pszpath : windows_core::PCSTR, pszbuf : windows_core::PSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); - PathSearchAndQualifyA(pszpath.into_param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + PathSearchAndQualifyA(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn PathSearchAndQualifyW(pszpath: P0, pszbuf: &mut [u16]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSearchAndQualifyW(pszpath : windows_core::PCWSTR, pszbuf : windows_core::PWSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); - PathSearchAndQualifyW(pszpath.into_param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + PathSearchAndQualifyW(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn PathSetDlgItemPathA(hdlg: P0, id: i32, pszpath: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSetDlgItemPathA(hdlg : super::super::Foundation:: HWND, id : i32, pszpath : windows_core::PCSTR)); - PathSetDlgItemPathA(hdlg.into_param().abi(), id, pszpath.into_param().abi()) + PathSetDlgItemPathA(hdlg.param().abi(), id, pszpath.param().abi()) } #[inline] pub unsafe fn PathSetDlgItemPathW(hdlg: P0, id: i32, pszpath: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSetDlgItemPathW(hdlg : super::super::Foundation:: HWND, id : i32, pszpath : windows_core::PCWSTR)); - PathSetDlgItemPathW(hdlg.into_param().abi(), id, pszpath.into_param().abi()) + PathSetDlgItemPathW(hdlg.param().abi(), id, pszpath.param().abi()) } #[inline] pub unsafe fn PathSkipRootA(pszpath: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSkipRootA(pszpath : windows_core::PCSTR) -> windows_core::PSTR); - PathSkipRootA(pszpath.into_param().abi()) + PathSkipRootA(pszpath.param().abi()) } #[inline] pub unsafe fn PathSkipRootW(pszpath: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathSkipRootW(pszpath : windows_core::PCWSTR) -> windows_core::PWSTR); - PathSkipRootW(pszpath.into_param().abi()) + PathSkipRootW(pszpath.param().abi()) } #[inline] pub unsafe fn PathStripPathA(pszpath: windows_core::PSTR) { @@ -2304,18 +2304,18 @@ pub unsafe fn PathStripToRootW(pszpath: windows_core::PWSTR) -> super::super::Fo #[inline] pub unsafe fn PathUnExpandEnvStringsA(pszpath: P0, pszbuf: &mut [u8]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathUnExpandEnvStringsA(pszpath : windows_core::PCSTR, pszbuf : windows_core::PSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); - PathUnExpandEnvStringsA(pszpath.into_param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + PathUnExpandEnvStringsA(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn PathUnExpandEnvStringsW(pszpath: P0, pszbuf: &mut [u16]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathUnExpandEnvStringsW(pszpath : windows_core::PCWSTR, pszbuf : windows_core::PWSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); - PathUnExpandEnvStringsW(pszpath.into_param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) + PathUnExpandEnvStringsW(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } #[inline] pub unsafe fn PathUndecorateA(pszpath: windows_core::PSTR) { @@ -2330,18 +2330,18 @@ pub unsafe fn PathUndecorateW(pszpath: windows_core::PWSTR) { #[inline] pub unsafe fn PathUnmakeSystemFolderA(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathUnmakeSystemFolderA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - PathUnmakeSystemFolderA(pszpath.into_param().abi()) + PathUnmakeSystemFolderA(pszpath.param().abi()) } #[inline] pub unsafe fn PathUnmakeSystemFolderW(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn PathUnmakeSystemFolderW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathUnmakeSystemFolderW(pszpath.into_param().abi()) + PathUnmakeSystemFolderW(pszpath.param().abi()) } #[inline] pub unsafe fn PathUnquoteSpacesA(lpsz: windows_core::PSTR) -> super::super::Foundation::BOOL { @@ -2356,20 +2356,20 @@ pub unsafe fn PathUnquoteSpacesW(lpsz: windows_core::PWSTR) -> super::super::Fou #[inline] pub unsafe fn PathYetAnotherMakeUniqueName(pszuniquename: &mut [u16; 260], pszpath: P0, pszshort: P1, pszfilespec: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PathYetAnotherMakeUniqueName(pszuniquename : windows_core::PWSTR, pszpath : windows_core::PCWSTR, pszshort : windows_core::PCWSTR, pszfilespec : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - PathYetAnotherMakeUniqueName(core::mem::transmute(pszuniquename.as_ptr()), pszpath.into_param().abi(), pszshort.into_param().abi(), pszfilespec.into_param().abi()) + PathYetAnotherMakeUniqueName(core::mem::transmute(pszuniquename.as_ptr()), pszpath.param().abi(), pszshort.param().abi(), pszfilespec.param().abi()) } #[inline] pub unsafe fn PickIconDlg(hwnd: P0, psziconpath: &mut [u16], piiconindex: Option<*mut i32>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn PickIconDlg(hwnd : super::super::Foundation:: HWND, psziconpath : windows_core::PWSTR, cchiconpath : u32, piiconindex : *mut i32) -> i32); - PickIconDlg(hwnd.into_param().abi(), core::mem::transmute(psziconpath.as_ptr()), psziconpath.len().try_into().unwrap(), core::mem::transmute(piiconindex.unwrap_or(std::ptr::null_mut()))) + PickIconDlg(hwnd.param().abi(), core::mem::transmute(psziconpath.as_ptr()), psziconpath.len().try_into().unwrap(), core::mem::transmute(piiconindex.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -2394,10 +2394,10 @@ pub unsafe fn ReadCabinetState(pcs: *mut CABINETSTATE, clength: i32) -> super::s #[inline] pub unsafe fn RealDriveType(idrive: i32, foktohitnet: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn RealDriveType(idrive : i32, foktohitnet : super::super::Foundation:: BOOL) -> i32); - RealDriveType(idrive, foktohitnet.into_param().abi()) + RealDriveType(idrive, foktohitnet.param().abi()) } #[inline] pub unsafe fn RegisterAppConstrainedChangeNotification(routine: PAPPCONSTRAIN_CHANGE_ROUTINE, context: Option<*const core::ffi::c_void>, registration: *mut PAPPCONSTRAIN_REGISTRATION) -> u32 { @@ -2412,46 +2412,46 @@ pub unsafe fn RegisterAppStateChangeNotification(routine: PAPPSTATE_CHANGE_ROUTI #[inline] pub unsafe fn RegisterScaleChangeEvent(hevent: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - RegisterScaleChangeEvent(hevent.into_param().abi(), &mut result__).map(|| result__) + RegisterScaleChangeEvent(hevent.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn RegisterScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, hwndnotify: P0, umsgnotify: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - RegisterScaleChangeNotifications(displaydevice, hwndnotify.into_param().abi(), umsgnotify, &mut result__).map(|| result__) + RegisterScaleChangeNotifications(displaydevice, hwndnotify.param().abi(), umsgnotify, &mut result__).map(|| result__) } #[inline] pub unsafe fn RemoveWindowSubclass(hwnd: P0, pfnsubclass: SUBCLASSPROC, uidsubclass: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn RemoveWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize) -> super::super::Foundation:: BOOL); - RemoveWindowSubclass(hwnd.into_param().abi(), pfnsubclass, uidsubclass) + RemoveWindowSubclass(hwnd.param().abi(), pfnsubclass, uidsubclass) } #[inline] pub unsafe fn RestartDialog(hwnd: P0, pszprompt: P1, dwreturn: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszprompt.into_param().abi(), dwreturn) + RestartDialog(hwnd.param().abi(), pszprompt.param().abi(), dwreturn) } #[inline] pub unsafe fn RestartDialogEx(hwnd: P0, pszprompt: P1, dwreturn: u32, dwreasoncode: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszprompt.into_param().abi(), dwreturn, dwreasoncode) + RestartDialogEx(hwnd.param().abi(), pszprompt.param().abi(), dwreturn, dwreasoncode) } #[inline] pub unsafe fn RevokeScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, dwcookie: u32) -> windows_core::Result<()> { @@ -2462,11 +2462,11 @@ pub unsafe fn RevokeScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, #[inline] pub unsafe fn SHAddFromPropSheetExtArray(hpsxa: P0, lpfnaddpage: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHAddFromPropSheetExtArray(hpsxa : HPSXA, lpfnaddpage : super::Controls:: LPFNSVADDPROPSHEETPAGE, lparam : super::super::Foundation:: LPARAM) -> u32); - SHAddFromPropSheetExtArray(hpsxa.into_param().abi(), lpfnaddpage, lparam.into_param().abi()) + SHAddFromPropSheetExtArray(hpsxa.param().abi(), lpfnaddpage, lparam.param().abi()) } #[inline] pub unsafe fn SHAddToRecentDocs(uflags: u32, pv: Option<*const core::ffi::c_void>) { @@ -2486,18 +2486,18 @@ pub unsafe fn SHAllocShared(pvdata: Option<*const core::ffi::c_void>, dwsize: u3 #[inline] pub unsafe fn SHAnsiToAnsi(pszsrc: P0, pszdst: &mut [u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHAnsiToAnsi(pszsrc : windows_core::PCSTR, pszdst : windows_core::PSTR, cchbuf : i32) -> i32); - SHAnsiToAnsi(pszsrc.into_param().abi(), core::mem::transmute(pszdst.as_ptr()), pszdst.len().try_into().unwrap()) + SHAnsiToAnsi(pszsrc.param().abi(), core::mem::transmute(pszdst.as_ptr()), pszdst.len().try_into().unwrap()) } #[inline] pub unsafe fn SHAnsiToUnicode(pszsrc: P0, pwszdst: &mut [u16]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHAnsiToUnicode(pszsrc : windows_core::PCSTR, pwszdst : windows_core::PWSTR, cwchbuf : i32) -> i32); - SHAnsiToUnicode(pszsrc.into_param().abi(), core::mem::transmute(pwszdst.as_ptr()), pwszdst.len().try_into().unwrap()) + SHAnsiToUnicode(pszsrc.param().abi(), core::mem::transmute(pwszdst.as_ptr()), pwszdst.len().try_into().unwrap()) } #[inline] pub unsafe fn SHAppBarMessage(dwmessage: u32, pdata: *mut APPBARDATA) -> usize { @@ -2507,64 +2507,64 @@ pub unsafe fn SHAppBarMessage(dwmessage: u32, pdata: *mut APPBARDATA) -> usize { #[inline] pub unsafe fn SHAssocEnumHandlers(pszextra: P0, affilter: ASSOC_FILTER) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHAssocEnumHandlers(pszextra.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHAssocEnumHandlersForProtocolByApplication(protocol : windows_core::PCWSTR, riid : *const windows_core::GUID, enumhandlers : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - SHAssocEnumHandlersForProtocolByApplication(protocol.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHAssocEnumHandlersForProtocolByApplication(protocol.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHAutoComplete(hwndedit: P0, dwflags: SHELL_AUTOCOMPLETE_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHAutoComplete(hwndedit : super::super::Foundation:: HWND, dwflags : SHELL_AUTOCOMPLETE_FLAGS) -> windows_core::HRESULT); - SHAutoComplete(hwndedit.into_param().abi(), dwflags).ok() + SHAutoComplete(hwndedit.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHBindToFolderIDListParent(psfroot: P0, pidl: *const Common::ITEMIDLIST, ppidllast: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHBindToFolderIDListParent(psfroot.into_param().abi(), pidl, &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(std::ptr::null_mut()))).and_then(|| windows_core::Type::from_abi(result__)) + SHBindToFolderIDListParent(psfroot.param().abi(), pidl, &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(std::ptr::null_mut()))).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHBindToFolderIDListParentEx(psfroot: P0, pidl: *const Common::ITEMIDLIST, ppbc: P1, ppidllast: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHBindToFolderIDListParentEx(psfroot.into_param().abi(), pidl, ppbc.into_param().abi(), &T::IID, &mut result__, core::mem::transmute(ppidllast.unwrap_or(std::ptr::null_mut()))).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(std::ptr::null_mut()))).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHBindToObject(psf: P0, pidl: *const Common::ITEMIDLIST, pbc: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHBindToObject(psf.into_param().abi(), pidl, pbc.into_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] @@ -2591,28 +2591,28 @@ pub unsafe fn SHBrowseForFolderW(lpbi: *const BROWSEINFOW) -> *mut Common::ITEMI #[inline] pub unsafe fn SHCLSIDFromString(psz: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCLSIDFromString(psz : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHCLSIDFromString(psz.into_param().abi(), &mut result__).map(|| result__) + SHCLSIDFromString(psz.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHChangeNotification_Lock(hchange: P0, dwprocid: u32, pppidl: Option<*mut *mut *mut Common::ITEMIDLIST>, plevent: Option<*mut i32>) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hchange.into_param().abi(), dwprocid, core::mem::transmute(pppidl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plevent.unwrap_or(std::ptr::null_mut()))) + SHChangeNotification_Lock(hchange.param().abi(), dwprocid, core::mem::transmute(pppidl.unwrap_or(std::ptr::null_mut())), core::mem::transmute(plevent.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SHChangeNotification_Unlock(hlock: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHChangeNotification_Unlock(hlock : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - SHChangeNotification_Unlock(hlock.into_param().abi()) + SHChangeNotification_Unlock(hlock.param().abi()) } #[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>) { @@ -2628,10 +2628,10 @@ pub unsafe fn SHChangeNotifyDeregister(ulid: u32) -> super::super::Foundation::B #[inline] pub unsafe fn SHChangeNotifyRegister(hwnd: P0, fsources: SHCNRF_SOURCE, fevents: i32, wmsg: u32, centries: i32, pshcne: *const SHChangeNotifyEntry) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), fsources, fevents, wmsg, centries, pshcne) + SHChangeNotifyRegister(hwnd.param().abi(), fsources, fevents, wmsg, centries, pshcne) } #[inline] pub unsafe fn SHChangeNotifyRegisterThread(status: SCNRT_STATUS) { @@ -2642,44 +2642,44 @@ pub unsafe fn SHChangeNotifyRegisterThread(status: SCNRT_STATUS) { #[inline] pub unsafe fn SHCloneSpecialIDList(hwnd: P0, csidl: i32, fcreate: P1) -> *mut Common::ITEMIDLIST where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCloneSpecialIDList(hwnd : super::super::Foundation:: HWND, csidl : i32, fcreate : super::super::Foundation:: BOOL) -> *mut Common:: ITEMIDLIST); - SHCloneSpecialIDList(hwnd.into_param().abi(), csidl, fcreate.into_param().abi()) + SHCloneSpecialIDList(hwnd.param().abi(), csidl, fcreate.param().abi()) } #[inline] pub unsafe fn SHCoCreateInstance(pszclsid: P0, pclsid: Option<*const windows_core::GUID>, punkouter: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHCoCreateInstance(pszclsid : windows_core::PCWSTR, pclsid : *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__ = std::ptr::null_mut(); - SHCoCreateInstance(pszclsid.into_param().abi(), core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), punkouter.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCoCreateInstance(pszclsid.param().abi(), core::mem::transmute(pclsid.unwrap_or(std::ptr::null())), punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHCopyKeyA(hkeysrc: P0, pszsrcsubkey: P1, hkeydest: P2, freserved: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkeysrc.into_param().abi(), pszsrcsubkey.into_param().abi(), hkeydest.into_param().abi(), freserved) + SHCopyKeyA(hkeysrc.param().abi(), pszsrcsubkey.param().abi(), hkeydest.param().abi(), freserved) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHCopyKeyW(hkeysrc: P0, pszsrcsubkey: P1, hkeydest: P2, freserved: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hkeysrc.into_param().abi(), pszsrcsubkey.into_param().abi(), hkeydest.into_param().abi(), freserved) + SHCopyKeyW(hkeysrc.param().abi(), pszsrcsubkey.param().abi(), hkeydest.param().abi(), freserved) } #[inline] pub unsafe fn SHCreateAssociationRegistration() -> windows_core::Result @@ -2694,12 +2694,12 @@ where #[inline] pub unsafe fn SHCreateDataObject(pidlfolder: Option<*const Common::ITEMIDLIST>, apidl: Option<&[*const Common::ITEMIDLIST]>, pdtinner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHCreateDataObject(pidlfolder : *const Common:: ITEMIDLIST, cidl : u32, apidl : *const *const Common:: ITEMIDLIST, pdtinner : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - SHCreateDataObject(core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), 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())), pdtinner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateDataObject(core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), 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())), pdtinner.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] #[inline] @@ -2723,50 +2723,50 @@ where #[inline] pub unsafe fn SHCreateDefaultPropertiesOp(psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCreateDefaultPropertiesOp(psi : * mut core::ffi::c_void, ppfileop : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHCreateDefaultPropertiesOp(psi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateDefaultPropertiesOp(psi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHCreateDirectory(hwnd: P0, pszpath: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCreateDirectory(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PCWSTR) -> i32); - SHCreateDirectory(hwnd.into_param().abi(), pszpath.into_param().abi()) + SHCreateDirectory(hwnd.param().abi(), pszpath.param().abi()) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SHCreateDirectoryExA(hwnd: P0, pszpath: P1, psa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCreateDirectoryExA(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PCSTR, psa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> i32); - SHCreateDirectoryExA(hwnd.into_param().abi(), pszpath.into_param().abi(), core::mem::transmute(psa.unwrap_or(std::ptr::null()))) + SHCreateDirectoryExA(hwnd.param().abi(), pszpath.param().abi(), core::mem::transmute(psa.unwrap_or(std::ptr::null()))) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SHCreateDirectoryExW(hwnd: P0, pszpath: P1, psa: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCreateDirectoryExW(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PCWSTR, psa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> i32); - SHCreateDirectoryExW(hwnd.into_param().abi(), pszpath.into_param().abi(), core::mem::transmute(psa.unwrap_or(std::ptr::null()))) + SHCreateDirectoryExW(hwnd.param().abi(), pszpath.param().abi(), core::mem::transmute(psa.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn SHCreateFileExtractIconW(pszfile: P0, dwfileattributes: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHCreateFileExtractIconW(pszfile.into_param().abi(), 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] @@ -2782,47 +2782,47 @@ where #[inline] pub unsafe fn SHCreateItemFromParsingName(pszpath: P0, pbc: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHCreateItemFromParsingName(pszpath : windows_core::PCWSTR, pbc : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - SHCreateItemFromParsingName(pszpath.into_param().abi(), pbc.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateItemFromParsingName(pszpath.param().abi(), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHCreateItemFromRelativeName(psiparent: P0, pszname: P1, pbc: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHCreateItemFromRelativeName(psiparent : * mut core::ffi::c_void, pszname : windows_core::PCWSTR, pbc : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - SHCreateItemFromRelativeName(psiparent.into_param().abi(), pszname.into_param().abi(), pbc.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateItemFromRelativeName(psiparent.param().abi(), pszname.param().abi(), pbc.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHCreateItemInKnownFolder(kfid: *const windows_core::GUID, dwkfflags: KNOWN_FOLDER_FLAG, pszitem: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHCreateItemInKnownFolder(kfid, dwkfflags.0 as _, pszitem.into_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] pub unsafe fn SHCreateItemWithParent(pidlparent: Option<*const Common::ITEMIDLIST>, psfparent: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHCreateItemWithParent(core::mem::transmute(pidlparent.unwrap_or(std::ptr::null())), psfparent.into_param().abi(), pidl, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateItemWithParent(core::mem::transmute(pidlparent.unwrap_or(std::ptr::null())), psfparent.param().abi(), pidl, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2840,11 +2840,11 @@ pub unsafe fn SHCreateProcessAsUserW(pscpi: *mut SHCREATEPROCESSINFOW) -> window #[inline] pub unsafe fn SHCreatePropSheetExtArray(hkey: P0, pszsubkey: P1, max_iface: u32) -> HPSXA where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), max_iface) + SHCreatePropSheetExtArray(hkey.param().abi(), pszsubkey.param().abi(), max_iface) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2871,32 +2871,32 @@ pub unsafe fn SHCreateShellFolderViewEx(pcsfv: *const CSFV) -> windows_core::Res #[inline] pub unsafe fn SHCreateShellItem(pidlparent: Option<*const Common::ITEMIDLIST>, psfparent: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHCreateShellItem(core::mem::transmute(pidlparent.unwrap_or(std::ptr::null())), psfparent.into_param().abi(), pidl, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateShellItem(core::mem::transmute(pidlparent.unwrap_or(std::ptr::null())), psfparent.param().abi(), pidl, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCreateShellItemArray(pidlparent: Option<*const Common::ITEMIDLIST>, psf: P0, ppidl: Option<&[*const Common::ITEMIDLIST]>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHCreateShellItemArray(pidlparent : *const Common:: ITEMIDLIST, psf : * mut core::ffi::c_void, cidl : u32, ppidl : *const *const Common:: ITEMIDLIST, ppsiitemarray : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHCreateShellItemArray(core::mem::transmute(pidlparent.unwrap_or(std::ptr::null())), psf.into_param().abi(), ppidl.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppidl.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateShellItemArray(core::mem::transmute(pidlparent.unwrap_or(std::ptr::null())), psf.param().abi(), ppidl.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppidl.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHCreateShellItemArrayFromDataObject(pdo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHCreateShellItemArrayFromDataObject(pdo : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - SHCreateShellItemArrayFromDataObject(pdo.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateShellItemArrayFromDataObject(pdo.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -2908,21 +2908,21 @@ pub unsafe fn SHCreateShellItemArrayFromIDLists(rgpidl: &[*const Common::ITEMIDL #[inline] pub unsafe fn SHCreateShellItemArrayFromShellItem(psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHCreateShellItemArrayFromShellItem(psi : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - SHCreateShellItemArrayFromShellItem(psi.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateShellItemArrayFromShellItem(psi.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SHCreateShellPalette(hdc: P0) -> super::super::Graphics::Gdi::HPALETTE where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHCreateShellPalette(hdc : super::super::Graphics::Gdi:: HDC) -> super::super::Graphics::Gdi:: HPALETTE); - SHCreateShellPalette(hdc.into_param().abi()) + SHCreateShellPalette(hdc.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -2935,33 +2935,33 @@ pub unsafe fn SHCreateStdEnumFmtEtc(afmt: &[super::super::System::Com::FORMATETC #[inline] pub unsafe fn SHCreateStreamOnFileA(pszfile: P0, grfmode: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHCreateStreamOnFileA(pszfile.into_param().abi(), 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] pub unsafe fn SHCreateStreamOnFileEx(pszfile: P0, grfmode: u32, dwattributes: u32, fcreate: P1, pstmtemplate: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - SHCreateStreamOnFileEx(pszfile.into_param().abi(), grfmode, dwattributes, fcreate.into_param().abi(), pstmtemplate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHCreateStreamOnFileEx(pszfile.param().abi(), grfmode, dwattributes, fcreate.param().abi(), pstmtemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHCreateStreamOnFileW(pszfile: P0, grfmode: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHCreateStreamOnFileW(pszfile.into_param().abi(), 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] @@ -2984,172 +2984,172 @@ pub unsafe fn SHCreateThreadWithHandle(pfnthreadproc: super::super::System::Thre #[inline] pub unsafe fn SHDefExtractIconA(psziconfile: P0, iindex: i32, uflags: u32, phiconlarge: Option<*mut super::WindowsAndMessaging::HICON>, phiconsmall: Option<*mut super::WindowsAndMessaging::HICON>, niconsize: u32) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + 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.into_param().abi(), iindex, uflags, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize) + SHDefExtractIconA(psziconfile.param().abi(), iindex, uflags, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SHDefExtractIconW(psziconfile: P0, iindex: i32, uflags: u32, phiconlarge: Option<*mut super::WindowsAndMessaging::HICON>, phiconsmall: Option<*mut super::WindowsAndMessaging::HICON>, niconsize: u32) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + 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.into_param().abi(), iindex, uflags, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize) + SHDefExtractIconW(psziconfile.param().abi(), iindex, uflags, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHDeleteEmptyKeyA(hkey: P0, pszsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi()) + SHDeleteEmptyKeyA(hkey.param().abi(), pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHDeleteEmptyKeyW(hkey: P0, pszsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi()) + SHDeleteEmptyKeyW(hkey.param().abi(), pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHDeleteKeyA(hkey: P0, pszsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi()) + SHDeleteKeyA(hkey.param().abi(), pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHDeleteKeyW(hkey: P0, pszsubkey: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi()) + SHDeleteKeyW(hkey.param().abi(), pszsubkey.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHDeleteValueA(hkey: P0, pszsubkey: P1, pszvalue: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi()) + SHDeleteValueA(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHDeleteValueW(hkey: P0, pszsubkey: P1, pszvalue: P2) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi()) + SHDeleteValueW(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi()) } #[inline] pub unsafe fn SHDestroyPropSheetExtArray(hpsxa: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHDestroyPropSheetExtArray(hpsxa : HPSXA)); - SHDestroyPropSheetExtArray(hpsxa.into_param().abi()) + SHDestroyPropSheetExtArray(hpsxa.param().abi()) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn SHDoDragDrop(hwnd: P0, pdata: P1, pdsrc: P2, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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__ = std::mem::zeroed(); - SHDoDragDrop(hwnd.into_param().abi(), pdata.into_param().abi(), pdsrc.into_param().abi(), dweffect, &mut result__).map(|| result__) + SHDoDragDrop(hwnd.param().abi(), pdata.param().abi(), pdsrc.param().abi(), dweffect, &mut result__).map(|| result__) } #[inline] pub unsafe fn SHEmptyRecycleBinA(hwnd: P0, pszrootpath: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszrootpath.into_param().abi(), dwflags).ok() + SHEmptyRecycleBinA(hwnd.param().abi(), pszrootpath.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SHEmptyRecycleBinW(hwnd: P0, pszrootpath: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszrootpath.into_param().abi(), dwflags).ok() + SHEmptyRecycleBinW(hwnd.param().abi(), pszrootpath.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumKeyExA(hkey: P0, dwindex: u32, pszname: windows_core::PSTR, pcchname: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(pszname), pcchname) + SHEnumKeyExA(hkey.param().abi(), dwindex, core::mem::transmute(pszname), pcchname) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumKeyExW(hkey: P0, dwindex: u32, pszname: windows_core::PWSTR, pcchname: *mut u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(pszname), pcchname) + SHEnumKeyExW(hkey.param().abi(), dwindex, core::mem::transmute(pszname), pcchname) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumValueA(hkey: P0, dwindex: u32, pszvaluename: windows_core::PSTR, pcchvaluename: Option<*mut u32>, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHEnumValueA(hkey.param().abi(), dwindex, core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumValueW(hkey: P0, dwindex: u32, pszvaluename: windows_core::PWSTR, pcchvaluename: Option<*mut u32>, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), dwindex, core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHEnumValueW(hkey.param().abi(), dwindex, core::mem::transmute(pszvaluename), core::mem::transmute(pcchvaluename.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHEnumerateUnreadMailAccountsW(hkeyuser: P0, dwindex: u32, pszmailaddress: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkeyuser.into_param().abi(), dwindex, core::mem::transmute(pszmailaddress.as_ptr()), pszmailaddress.len().try_into().unwrap()).ok() + SHEnumerateUnreadMailAccountsW(hkeyuser.param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHEvaluateSystemCommandTemplate(pszcmdtemplate : windows_core::PCWSTR, ppszapplication : *mut windows_core::PWSTR, ppszcommandline : *mut windows_core::PWSTR, ppszparameters : *mut windows_core::PWSTR) -> windows_core::HRESULT); - SHEvaluateSystemCommandTemplate(pszcmdtemplate.into_param().abi(), ppszapplication, core::mem::transmute(ppszcommandline.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppszparameters.unwrap_or(std::ptr::null_mut()))).ok() + SHEvaluateSystemCommandTemplate(pszcmdtemplate.param().abi(), ppszapplication, core::mem::transmute(ppszcommandline.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppszparameters.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SHFileOperationA(lpfileop: *mut SHFILEOPSTRUCTA) -> i32 { @@ -3171,11 +3171,11 @@ pub unsafe fn SHFindFiles(pidlfolder: Option<*const Common::ITEMIDLIST>, pidlsav #[inline] pub unsafe fn SHFind_InitMenuPopup(hmenu: P0, hwndowner: P1, idcmdfirst: u32, idcmdlast: u32) -> Option where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), hwndowner.into_param().abi(), idcmdfirst, idcmdlast) + SHFind_InitMenuPopup(hmenu.param().abi(), hwndowner.param().abi(), idcmdfirst, idcmdlast) } #[inline] pub unsafe fn SHFlushSFCache() { @@ -3195,10 +3195,10 @@ pub unsafe fn SHFormatDateTimeW(pft: *const super::super::Foundation::FILETIME, #[inline] pub unsafe fn SHFormatDrive(hwnd: P0, drive: u32, fmtid: SHFMT_ID, options: SHFMT_OPT) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHFormatDrive(hwnd : super::super::Foundation:: HWND, drive : u32, fmtid : SHFMT_ID, options : u32) -> u32); - SHFormatDrive(hwnd.into_param().abi(), drive, fmtid, options.0 as _) + SHFormatDrive(hwnd.param().abi(), drive, fmtid, options.0 as _) } #[inline] pub unsafe fn SHFree(pv: Option<*const core::ffi::c_void>) { @@ -3208,45 +3208,45 @@ pub unsafe fn SHFree(pv: Option<*const core::ffi::c_void>) { #[inline] pub unsafe fn SHFreeNameMappings(hnamemappings: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHFreeNameMappings(hnamemappings : super::super::Foundation:: HANDLE)); - SHFreeNameMappings(hnamemappings.into_param().abi()) + SHFreeNameMappings(hnamemappings.param().abi()) } #[inline] pub unsafe fn SHFreeShared(hdata: P0, dwprocessid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHFreeShared(hdata : super::super::Foundation:: HANDLE, dwprocessid : u32) -> super::super::Foundation:: BOOL); - SHFreeShared(hdata.into_param().abi(), dwprocessid).ok() + SHFreeShared(hdata.param().abi(), dwprocessid).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHGetAttributesFromDataObject(pdo: P0, dwattributemask: u32, pdwattributes: Option<*mut u32>, pcitems: Option<*mut u32>) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwattributemask, core::mem::transmute(pdwattributes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcitems.unwrap_or(std::ptr::null_mut()))) + SHGetAttributesFromDataObject(pdo.param().abi(), dwattributemask, core::mem::transmute(pdwattributes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcitems.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetDataFromIDListA(psf: P0, pidl: *const Common::ITEMIDLIST, nformat: SHGDFIL_FORMAT, pv: *mut core::ffi::c_void, cb: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pidl, nformat, pv, cb).ok() + SHGetDataFromIDListA(psf.param().abi(), pidl, nformat, pv, cb).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetDataFromIDListW(psf: P0, pidl: *const Common::ITEMIDLIST, nformat: SHGDFIL_FORMAT, pv: *mut core::ffi::c_void, cb: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), pidl, nformat, pv, cb).ok() + SHGetDataFromIDListW(psf.param().abi(), pidl, nformat, pv, cb).ok() } #[inline] pub unsafe fn SHGetDesktopFolder() -> windows_core::Result { @@ -3257,120 +3257,120 @@ pub unsafe fn SHGetDesktopFolder() -> windows_core::Result { #[inline] pub unsafe fn SHGetDiskFreeSpaceExA(pszdirectoryname: P0, pulfreebytesavailabletocaller: Option<*mut u64>, pultotalnumberofbytes: Option<*mut u64>, pultotalnumberoffreebytes: Option<*mut u64>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetDiskFreeSpaceExA(pszdirectoryname : windows_core::PCSTR, pulfreebytesavailabletocaller : *mut u64, pultotalnumberofbytes : *mut u64, pultotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); - SHGetDiskFreeSpaceExA(pszdirectoryname.into_param().abi(), core::mem::transmute(pulfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))) + SHGetDiskFreeSpaceExA(pszdirectoryname.param().abi(), core::mem::transmute(pulfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SHGetDiskFreeSpaceExW(pszdirectoryname: P0, pulfreebytesavailabletocaller: Option<*mut u64>, pultotalnumberofbytes: Option<*mut u64>, pultotalnumberoffreebytes: Option<*mut u64>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetDiskFreeSpaceExW(pszdirectoryname : windows_core::PCWSTR, pulfreebytesavailabletocaller : *mut u64, pultotalnumberofbytes : *mut u64, pultotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); - SHGetDiskFreeSpaceExW(pszdirectoryname.into_param().abi(), core::mem::transmute(pulfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))) + SHGetDiskFreeSpaceExW(pszdirectoryname.param().abi(), core::mem::transmute(pulfreebytesavailabletocaller.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberofbytes.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pultotalnumberoffreebytes.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SHGetDriveMedia(pszdrive: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetDriveMedia(pszdrive : windows_core::PCWSTR, pdwmediacontent : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHGetDriveMedia(pszdrive.into_param().abi(), &mut result__).map(|| result__) + SHGetDriveMedia(pszdrive.param().abi(), &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SHGetFileInfoA(pszpath: P0, dwfileattributes: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, psfi: Option<*mut SHFILEINFOA>, cbfileinfo: u32, uflags: SHGFI_FLAGS) -> usize where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwfileattributes, core::mem::transmute(psfi.unwrap_or(std::ptr::null_mut())), cbfileinfo, uflags) + SHGetFileInfoA(pszpath.param().abi(), dwfileattributes, core::mem::transmute(psfi.unwrap_or(std::ptr::null_mut())), cbfileinfo, uflags) } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SHGetFileInfoW(pszpath: P0, dwfileattributes: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, psfi: Option<*mut SHFILEINFOW>, cbfileinfo: u32, uflags: SHGFI_FLAGS) -> usize where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwfileattributes, core::mem::transmute(psfi.unwrap_or(std::ptr::null_mut())), cbfileinfo, uflags) + SHGetFileInfoW(pszpath.param().abi(), dwfileattributes, core::mem::transmute(psfi.unwrap_or(std::ptr::null_mut())), cbfileinfo, uflags) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetFolderLocation(hwnd: P0, csidl: i32, htoken: P1, dwflags: u32) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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__ = std::mem::zeroed(); - SHGetFolderLocation(hwnd.into_param().abi(), csidl, htoken.into_param().abi(), dwflags, &mut result__).map(|| result__) + SHGetFolderLocation(hwnd.param().abi(), csidl, htoken.param().abi(), dwflags, &mut result__).map(|| result__) } #[inline] pub unsafe fn SHGetFolderPathA(hwnd: P0, csidl: i32, htoken: P1, dwflags: u32, pszpath: &mut [u8; 260]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), csidl, htoken.into_param().abi(), dwflags, core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathA(hwnd.param().abi(), csidl, htoken.param().abi(), dwflags, core::mem::transmute(pszpath.as_ptr())).ok() } #[inline] pub unsafe fn SHGetFolderPathAndSubDirA(hwnd: P0, csidl: i32, htoken: P1, dwflags: u32, pszsubdir: P2, pszpath: &mut [u8; 260]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), csidl, htoken.into_param().abi(), dwflags, pszsubdir.into_param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathAndSubDirA(hwnd.param().abi(), csidl, htoken.param().abi(), dwflags, pszsubdir.param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() } #[inline] pub unsafe fn SHGetFolderPathAndSubDirW(hwnd: P0, csidl: i32, htoken: P1, dwflags: u32, pszsubdir: P2, pszpath: &mut [u16; 260]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), csidl, htoken.into_param().abi(), dwflags, pszsubdir.into_param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathAndSubDirW(hwnd.param().abi(), csidl, htoken.param().abi(), dwflags, pszsubdir.param().abi(), core::mem::transmute(pszpath.as_ptr())).ok() } #[inline] pub unsafe fn SHGetFolderPathW(hwnd: P0, csidl: i32, htoken: P1, dwflags: u32, pszpath: &mut [u16; 260]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), csidl, htoken.into_param().abi(), dwflags, core::mem::transmute(pszpath.as_ptr())).ok() + SHGetFolderPathW(hwnd.param().abi(), csidl, htoken.param().abi(), dwflags, core::mem::transmute(pszpath.as_ptr())).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetIDListFromObject(punk: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetIDListFromObject(punk : * mut core::ffi::c_void, ppidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHGetIDListFromObject(punk.into_param().abi(), &mut result__).map(|| result__) + SHGetIDListFromObject(punk.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SHGetIconOverlayIndexA(psziconpath: P0, iiconindex: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetIconOverlayIndexA(psziconpath : windows_core::PCSTR, iiconindex : i32) -> i32); - SHGetIconOverlayIndexA(psziconpath.into_param().abi(), iiconindex) + SHGetIconOverlayIndexA(psziconpath.param().abi(), iiconindex) } #[inline] pub unsafe fn SHGetIconOverlayIndexW(psziconpath: P0, iiconindex: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetIconOverlayIndexW(psziconpath : windows_core::PCWSTR, iiconindex : i32) -> i32); - SHGetIconOverlayIndexW(psziconpath.into_param().abi(), iiconindex) + SHGetIconOverlayIndexW(psziconpath.param().abi(), iiconindex) } #[inline] pub unsafe fn SHGetImageList(iimagelist: i32) -> windows_core::Result @@ -3396,59 +3396,59 @@ pub unsafe fn SHGetInverseCMAP(pbmap: &mut [u8]) -> windows_core::Result<()> { #[inline] pub unsafe fn SHGetItemFromDataObject(pdtobj: P0, dwflags: DATAOBJ_GET_ITEM_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHGetItemFromDataObject(pdtobj.into_param().abi(), 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { windows_targets::link!("shell32.dll" "system" fn SHGetItemFromObject(punk : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = std::ptr::null_mut(); - SHGetItemFromObject(punk.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetItemFromObject(punk.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetKnownFolderIDList(rfid: *const windows_core::GUID, dwflags: u32, htoken: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHGetKnownFolderIDList(rfid, dwflags, htoken.into_param().abi(), &mut result__).map(|| result__) + SHGetKnownFolderIDList(rfid, dwflags, htoken.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SHGetKnownFolderItem(rfid: *const windows_core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHGetKnownFolderItem(rfid, flags, htoken.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetKnownFolderItem(rfid, flags, htoken.param().abi(), &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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHGetKnownFolderPath(rfid, dwflags.0 as _, htoken.into_param().abi(), &mut result__).map(|| result__) + SHGetKnownFolderPath(rfid, dwflags.0 as _, htoken.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SHGetLocalizedName(pszpath: P0, pszresmodule: &mut [u16], pidsres: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetLocalizedName(pszpath : windows_core::PCWSTR, pszresmodule : windows_core::PWSTR, cch : u32, pidsres : *mut i32) -> windows_core::HRESULT); - SHGetLocalizedName(pszpath.into_param().abi(), core::mem::transmute(pszresmodule.as_ptr()), pszresmodule.len().try_into().unwrap(), pidsres).ok() + SHGetLocalizedName(pszpath.param().abi(), core::mem::transmute(pszresmodule.as_ptr()), pszresmodule.len().try_into().unwrap(), pidsres).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] @@ -3467,20 +3467,20 @@ pub unsafe fn SHGetNameFromIDList(pidl: *const Common::ITEMIDLIST, sigdnname: SI #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszdir.into_param().abi(), core::mem::transmute(pszname.as_ptr()), pfmustcopy, uflags) + SHGetNewLinkInfoA(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszdir.into_param().abi(), core::mem::transmute(pszname.as_ptr()), pfmustcopy, uflags) + SHGetNewLinkInfoW(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), pfmustcopy, uflags) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3504,27 +3504,27 @@ pub unsafe fn SHGetPathFromIDListW(pidl: *const Common::ITEMIDLIST, pszpath: &mu #[inline] pub unsafe fn SHGetRealIDL(psf: P0, pidlsimple: *const Common::ITEMIDLIST) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHGetRealIDL(psf.into_param().abi(), pidlsimple, &mut result__).map(|| result__) + SHGetRealIDL(psf.param().abi(), pidlsimple, &mut result__).map(|| result__) } #[inline] pub unsafe fn SHGetSetFolderCustomSettings(pfcs: *mut SHFOLDERCUSTOMSETTINGS, pszpath: P0, dwreadwrite: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetSetFolderCustomSettings(pfcs : *mut SHFOLDERCUSTOMSETTINGS, pszpath : windows_core::PCWSTR, dwreadwrite : u32) -> windows_core::HRESULT); - SHGetSetFolderCustomSettings(pfcs, pszpath.into_param().abi(), dwreadwrite).ok() + SHGetSetFolderCustomSettings(pfcs, pszpath.param().abi(), dwreadwrite).ok() } #[inline] pub unsafe fn SHGetSetSettings(lpss: Option<*mut SHELLSTATEA>, dwmask: SSF_MASK, bset: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(std::ptr::null_mut())), dwmask, bset.into_param().abi()) + SHGetSetSettings(core::mem::transmute(lpss.unwrap_or(std::ptr::null_mut())), dwmask, bset.param().abi()) } #[inline] pub unsafe fn SHGetSettings(psfs: *mut SHELLFLAGSTATE, dwmask: u32) { @@ -3535,29 +3535,29 @@ pub unsafe fn SHGetSettings(psfs: *mut SHELLFLAGSTATE, dwmask: u32) { #[inline] pub unsafe fn SHGetSpecialFolderLocation(hwnd: P0, csidl: i32) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - SHGetSpecialFolderLocation(hwnd.into_param().abi(), csidl, &mut result__).map(|| result__) + SHGetSpecialFolderLocation(hwnd.param().abi(), csidl, &mut result__).map(|| result__) } #[inline] pub unsafe fn SHGetSpecialFolderPathA(hwnd: P0, pszpath: &mut [u8; 260], csidl: i32, fcreate: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.into_param().abi()) + SHGetSpecialFolderPathA(hwnd.param().abi(), core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.param().abi()) } #[inline] pub unsafe fn SHGetSpecialFolderPathW(hwnd: P0, pszpath: &mut [u16; 260], csidl: i32, fcreate: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.into_param().abi()) + SHGetSpecialFolderPathW(hwnd.param().abi(), core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -3569,11 +3569,11 @@ pub unsafe fn SHGetStockIconInfo(siid: SHSTOCKICONID, uflags: SHGSI_FLAGS, psii: #[inline] pub unsafe fn SHGetTemporaryPropertyForItem(psi: P0, propkey: *const PropertiesSystem::PROPERTYKEY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetTemporaryPropertyForItem(psi : * mut core::ffi::c_void, propkey : *const PropertiesSystem:: PROPERTYKEY, ppropvar : *mut std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHGetTemporaryPropertyForItem(psi.into_param().abi(), propkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetTemporaryPropertyForItem(psi.param().abi(), propkey, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHGetThreadRef() -> windows_core::Result { @@ -3585,44 +3585,44 @@ pub unsafe fn SHGetThreadRef() -> windows_core::Result { #[inline] pub unsafe fn SHGetUnreadMailCountW(hkeyuser: P0, pszmailaddress: P1, pdwcount: Option<*mut u32>, pfiletime: Option<*mut super::super::Foundation::FILETIME>, pszshellexecutecommand: Option<&mut [u16]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHGetUnreadMailCountW(hkeyuser : super::super::System::Registry:: HKEY, pszmailaddress : windows_core::PCWSTR, pdwcount : *mut u32, pfiletime : *mut super::super::Foundation:: FILETIME, pszshellexecutecommand : windows_core::PWSTR, cchshellexecutecommand : i32) -> windows_core::HRESULT); - SHGetUnreadMailCountW(hkeyuser.into_param().abi(), pszmailaddress.into_param().abi(), core::mem::transmute(pdwcount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pfiletime.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pszshellexecutecommand.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszshellexecutecommand.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() + SHGetUnreadMailCountW(hkeyuser.param().abi(), pszmailaddress.param().abi(), core::mem::transmute(pdwcount.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pfiletime.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pszshellexecutecommand.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszshellexecutecommand.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHGetValueA(hkey: P0, pszsubkey: P1, pszvalue: P2, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHGetValueA(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHGetValueW(hkey: P0, pszsubkey: P1, pszvalue: P2, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHGetValueW(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetViewStatePropertyBag(pidl: Option<*const Common::ITEMIDLIST>, pszbagname: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - SHGetViewStatePropertyBag(core::mem::transmute(pidl.unwrap_or(std::ptr::null())), pszbagname.into_param().abi(), dwflags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + SHGetViewStatePropertyBag(core::mem::transmute(pidl.unwrap_or(std::ptr::null())), pszbagname.param().abi(), dwflags, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn SHGlobalCounterDecrement(id: SHGLOBALCOUNTER) -> i32 { @@ -3649,40 +3649,40 @@ pub unsafe fn SHHandleUpdateImage(pidlextra: *const Common::ITEMIDLIST) -> i32 { #[inline] pub unsafe fn SHILCreateFromPath(pszpath: P0, ppidl: *mut *mut Common::ITEMIDLIST, rgfinout: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHILCreateFromPath(pszpath : windows_core::PCWSTR, ppidl : *mut *mut Common:: ITEMIDLIST, rgfinout : *mut u32) -> windows_core::HRESULT); - SHILCreateFromPath(pszpath.into_param().abi(), ppidl, core::mem::transmute(rgfinout.unwrap_or(std::ptr::null_mut()))).ok() + SHILCreateFromPath(pszpath.param().abi(), ppidl, core::mem::transmute(rgfinout.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SHInvokePrinterCommandA(hwnd: P0, uaction: u32, lpbuf1: P1, lpbuf2: P2, fmodal: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hwnd.into_param().abi(), uaction, lpbuf1.into_param().abi(), lpbuf2.into_param().abi(), fmodal.into_param().abi()) + SHInvokePrinterCommandA(hwnd.param().abi(), uaction, lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.param().abi()) } #[inline] pub unsafe fn SHInvokePrinterCommandW(hwnd: P0, uaction: u32, lpbuf1: P1, lpbuf2: P2, fmodal: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hwnd.into_param().abi(), uaction, lpbuf1.into_param().abi(), lpbuf2.into_param().abi(), fmodal.into_param().abi()) + SHInvokePrinterCommandW(hwnd.param().abi(), uaction, lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.param().abi()) } #[inline] pub unsafe fn SHIsFileAvailableOffline(pwszpath: P0, pdwstatus: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHIsFileAvailableOffline(pwszpath : windows_core::PCWSTR, pdwstatus : *mut u32) -> windows_core::HRESULT); - SHIsFileAvailableOffline(pwszpath.into_param().abi(), core::mem::transmute(pdwstatus.unwrap_or(std::ptr::null_mut()))).ok() + SHIsFileAvailableOffline(pwszpath.param().abi(), core::mem::transmute(pdwstatus.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SHIsLowMemoryMachine(dwtype: u32) -> super::super::Foundation::BOOL { @@ -3692,11 +3692,11 @@ pub unsafe fn SHIsLowMemoryMachine(dwtype: u32) -> super::super::Foundation::BOO #[inline] pub unsafe fn SHLimitInputEdit(hwndedit: P0, psf: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndedit.into_param().abi(), psf.into_param().abi()).ok() + SHLimitInputEdit(hwndedit.param().abi(), psf.param().abi()).ok() } #[inline] pub unsafe fn SHLoadInProc(rclsid: *const windows_core::GUID) -> windows_core::Result<()> { @@ -3706,10 +3706,10 @@ pub unsafe fn SHLoadInProc(rclsid: *const windows_core::GUID) -> windows_core::R #[inline] pub unsafe fn SHLoadIndirectString(pszsource: P0, pszoutbuf: &mut [u16], ppvreserved: Option<*const *const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHLoadIndirectString(pszsource : windows_core::PCWSTR, pszoutbuf : windows_core::PWSTR, cchoutbuf : u32, ppvreserved : *const *const core::ffi::c_void) -> windows_core::HRESULT); - SHLoadIndirectString(pszsource.into_param().abi(), core::mem::transmute(pszoutbuf.as_ptr()), pszoutbuf.len().try_into().unwrap(), core::mem::transmute(ppvreserved.unwrap_or(std::ptr::null()))).ok() + SHLoadIndirectString(pszsource.param().abi(), core::mem::transmute(pszoutbuf.as_ptr()), pszoutbuf.len().try_into().unwrap(), core::mem::transmute(ppvreserved.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn SHLoadNonloadedIconOverlayIdentifiers() -> windows_core::Result<()> { @@ -3719,60 +3719,60 @@ pub unsafe fn SHLoadNonloadedIconOverlayIdentifiers() -> windows_core::Result<() #[inline] pub unsafe fn SHLockShared(hdata: P0, dwprocessid: u32) -> *mut core::ffi::c_void where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHLockShared(hdata : super::super::Foundation:: HANDLE, dwprocessid : u32) -> *mut core::ffi::c_void); - SHLockShared(hdata.into_param().abi(), dwprocessid) + SHLockShared(hdata.param().abi(), dwprocessid) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHMapPIDLToSystemImageListIndex(pshf: P0, pidl: *const Common::ITEMIDLIST, piindexsel: Option<*mut i32>) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), pidl, core::mem::transmute(piindexsel.unwrap_or(std::ptr::null_mut()))) + SHMapPIDLToSystemImageListIndex(pshf.param().abi(), pidl, core::mem::transmute(piindexsel.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SHMessageBoxCheckA(hwnd: P0, psztext: P1, pszcaption: P2, utype: u32, idefault: i32, pszregval: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hwnd.into_param().abi(), psztext.into_param().abi(), pszcaption.into_param().abi(), utype, idefault, pszregval.into_param().abi()) + SHMessageBoxCheckA(hwnd.param().abi(), psztext.param().abi(), pszcaption.param().abi(), utype, idefault, pszregval.param().abi()) } #[inline] pub unsafe fn SHMessageBoxCheckW(hwnd: P0, psztext: P1, pszcaption: P2, utype: u32, idefault: i32, pszregval: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hwnd.into_param().abi(), psztext.into_param().abi(), pszcaption.into_param().abi(), utype, idefault, pszregval.into_param().abi()) + SHMessageBoxCheckW(hwnd.param().abi(), psztext.param().abi(), pszcaption.param().abi(), utype, idefault, pszregval.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHMultiFileProperties(pdtobj: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags).ok() + SHMultiFileProperties(pdtobj.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SHObjectProperties(hwnd: P0, shopobjecttype: SHOP_TYPE, pszobjectname: P1, pszpropertypage: P2) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHObjectProperties(hwnd : super::super::Foundation:: HWND, shopobjecttype : u32, pszobjectname : windows_core::PCWSTR, pszpropertypage : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SHObjectProperties(hwnd.into_param().abi(), shopobjecttype.0 as _, pszobjectname.into_param().abi(), pszpropertypage.into_param().abi()) + SHObjectProperties(hwnd.param().abi(), shopobjecttype.0 as _, pszobjectname.param().abi(), pszpropertypage.param().abi()) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -3784,129 +3784,129 @@ pub unsafe fn SHOpenFolderAndSelectItems(pidlfolder: *const Common::ITEMIDLIST, #[inline] pub unsafe fn SHOpenPropSheetW(pszcaption: P0, ahkeys: Option<&[super::super::System::Registry::HKEY]>, pclsiddefault: Option<*const windows_core::GUID>, pdtobj: P1, psb: P2, pstartpage: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHOpenPropSheetW(pszcaption : windows_core::PCWSTR, ahkeys : *const super::super::System::Registry:: HKEY, ckeys : u32, pclsiddefault : *const windows_core::GUID, pdtobj : * mut core::ffi::c_void, psb : * mut core::ffi::c_void, pstartpage : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - SHOpenPropSheetW(pszcaption.into_param().abi(), core::mem::transmute(ahkeys.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ahkeys.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pclsiddefault.unwrap_or(std::ptr::null())), pdtobj.into_param().abi(), psb.into_param().abi(), pstartpage.into_param().abi()) + SHOpenPropSheetW(pszcaption.param().abi(), core::mem::transmute(ahkeys.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ahkeys.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pclsiddefault.unwrap_or(std::ptr::null())), pdtobj.param().abi(), psb.param().abi(), pstartpage.param().abi()) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStream2A(hkey: P0, pszsubkey: P1, pszvalue: P2, grfmode: u32) -> Option where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), grfmode) + SHOpenRegStream2A(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStream2W(hkey: P0, pszsubkey: P1, pszvalue: P2, grfmode: u32) -> Option where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), grfmode) + SHOpenRegStream2W(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStreamA(hkey: P0, pszsubkey: P1, pszvalue: P2, grfmode: u32) -> Option where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), grfmode) + SHOpenRegStreamA(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStreamW(hkey: P0, pszsubkey: P1, pszvalue: P2, grfmode: u32) -> Option where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), grfmode) + SHOpenRegStreamW(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), grfmode) } #[inline] pub unsafe fn SHOpenWithDialog(hwndparent: P0, poainfo: *const OPENASINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHOpenWithDialog(hwndparent : super::super::Foundation:: HWND, poainfo : *const OPENASINFO) -> windows_core::HRESULT); - SHOpenWithDialog(hwndparent.into_param().abi(), poainfo).ok() + SHOpenWithDialog(hwndparent.param().abi(), poainfo).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHParseDisplayName(pszname: P0, pbc: P1, ppidl: *mut *mut Common::ITEMIDLIST, sfgaoin: u32, psfgaoout: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pbc.into_param().abi(), ppidl, sfgaoin, core::mem::transmute(psfgaoout.unwrap_or(std::ptr::null_mut()))).ok() + SHParseDisplayName(pszname.param().abi(), pbc.param().abi(), ppidl, sfgaoin, core::mem::transmute(psfgaoout.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn SHPathPrepareForWriteA(hwnd: P0, punkenablemodless: P1, pszpath: P2, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), punkenablemodless.into_param().abi(), pszpath.into_param().abi(), dwflags).ok() + SHPathPrepareForWriteA(hwnd.param().abi(), punkenablemodless.param().abi(), pszpath.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SHPathPrepareForWriteW(hwnd: P0, punkenablemodless: P1, pszpath: P2, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), punkenablemodless.into_param().abi(), pszpath.into_param().abi(), dwflags).ok() + SHPathPrepareForWriteW(hwnd.param().abi(), punkenablemodless.param().abi(), pszpath.param().abi(), dwflags).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHQueryInfoKeyA(hkey: P0, pcsubkeys: Option<*mut u32>, pcchmaxsubkeylen: Option<*mut u32>, pcvalues: Option<*mut u32>, pcchmaxvaluenamelen: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(pcsubkeys.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcvalues.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(std::ptr::null_mut()))) + SHQueryInfoKeyA(hkey.param().abi(), core::mem::transmute(pcsubkeys.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcvalues.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHQueryInfoKeyW(hkey: P0, pcsubkeys: Option<*mut u32>, pcchmaxsubkeylen: Option<*mut u32>, pcvalues: Option<*mut u32>, pcchmaxvaluenamelen: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hkey.into_param().abi(), core::mem::transmute(pcsubkeys.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcvalues.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(std::ptr::null_mut()))) + SHQueryInfoKeyW(hkey.param().abi(), core::mem::transmute(pcsubkeys.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxsubkeylen.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcvalues.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcchmaxvaluenamelen.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SHQueryRecycleBinA(pszrootpath: P0, pshqueryrbinfo: *mut SHQUERYRBINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHQueryRecycleBinA(pszrootpath : windows_core::PCSTR, pshqueryrbinfo : *mut SHQUERYRBINFO) -> windows_core::HRESULT); - SHQueryRecycleBinA(pszrootpath.into_param().abi(), pshqueryrbinfo).ok() + SHQueryRecycleBinA(pszrootpath.param().abi(), pshqueryrbinfo).ok() } #[inline] pub unsafe fn SHQueryRecycleBinW(pszrootpath: P0, pshqueryrbinfo: *mut SHQUERYRBINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHQueryRecycleBinW(pszrootpath : windows_core::PCWSTR, pshqueryrbinfo : *mut SHQUERYRBINFO) -> windows_core::HRESULT); - SHQueryRecycleBinW(pszrootpath.into_param().abi(), pshqueryrbinfo).ok() + SHQueryRecycleBinW(pszrootpath.param().abi(), pshqueryrbinfo).ok() } #[inline] pub unsafe fn SHQueryUserNotificationState() -> windows_core::Result { @@ -3918,21 +3918,21 @@ pub unsafe fn SHQueryUserNotificationState() -> windows_core::Result(hkey: P0, pszvalue: P1, pdwreserved: Option<*const u32>, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), pszvalue.into_param().abi(), core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHQueryValueExA(hkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHQueryValueExW(hkey: P0, pszvalue: P1, pdwreserved: Option<*const u32>, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hkey.into_param().abi(), pszvalue.into_param().abi(), core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHQueryValueExW(hkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwreserved.unwrap_or(std::ptr::null())), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SHRegCloseUSKey(huskey: isize) -> super::super::Foundation::WIN32_ERROR { @@ -3942,59 +3942,59 @@ pub unsafe fn SHRegCloseUSKey(huskey: isize) -> super::super::Foundation::WIN32_ #[inline] pub unsafe fn SHRegCreateUSKeyA(pszpath: P0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), samdesired, hrelativeuskey, phnewuskey, dwflags) + SHRegCreateUSKeyA(pszpath.param().abi(), samdesired, hrelativeuskey, phnewuskey, dwflags) } #[inline] pub unsafe fn SHRegCreateUSKeyW(pwzpath: P0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + 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.into_param().abi(), samdesired, hrelativeuskey, phnewuskey, dwflags) + SHRegCreateUSKeyW(pwzpath.param().abi(), samdesired, hrelativeuskey, phnewuskey, dwflags) } #[inline] pub unsafe fn SHRegDeleteEmptyUSKeyA(huskey: isize, pszsubkey: P0, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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(huskey, pszsubkey.into_param().abi(), delregflags) + SHRegDeleteEmptyUSKeyA(huskey, pszsubkey.param().abi(), delregflags) } #[inline] pub unsafe fn SHRegDeleteEmptyUSKeyW(huskey: isize, pwzsubkey: P0, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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(huskey, pwzsubkey.into_param().abi(), delregflags) + SHRegDeleteEmptyUSKeyW(huskey, pwzsubkey.param().abi(), delregflags) } #[inline] pub unsafe fn SHRegDeleteUSValueA(huskey: isize, pszvalue: P0, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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(huskey, pszvalue.into_param().abi(), delregflags) + SHRegDeleteUSValueA(huskey, pszvalue.param().abi(), delregflags) } #[inline] pub unsafe fn SHRegDeleteUSValueW(huskey: isize, pwzvalue: P0, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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(huskey, pwzvalue.into_param().abi(), delregflags) + SHRegDeleteUSValueW(huskey, pwzvalue.param().abi(), delregflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegDuplicateHKey(hkey: P0) -> super::super::System::Registry::HKEY where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegDuplicateHKey(hkey : super::super::System::Registry:: HKEY) -> super::super::System::Registry:: HKEY); - SHRegDuplicateHKey(hkey.into_param().abi()) + SHRegDuplicateHKey(hkey.param().abi()) } #[inline] pub unsafe fn SHRegEnumUSKeyA(huskey: isize, dwindex: u32, pszname: windows_core::PSTR, pcchname: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::WIN32_ERROR { @@ -4019,125 +4019,125 @@ pub unsafe fn SHRegEnumUSValueW(huskey: isize, dwindex: u32, pszvaluename: windo #[inline] pub unsafe fn SHRegGetBoolUSValueA(pszsubkey: P0, pszvalue: P1, fignorehkcu: P2, fdefault: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetBoolUSValueA(pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, fignorehkcu : super::super::Foundation:: BOOL, fdefault : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SHRegGetBoolUSValueA(pszsubkey.into_param().abi(), pszvalue.into_param().abi(), fignorehkcu.into_param().abi(), fdefault.into_param().abi()) + SHRegGetBoolUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), fignorehkcu.param().abi(), fdefault.param().abi()) } #[inline] pub unsafe fn SHRegGetBoolUSValueW(pszsubkey: P0, pszvalue: P1, fignorehkcu: P2, fdefault: P3) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHRegGetBoolUSValueW(pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, fignorehkcu : super::super::Foundation:: BOOL, fdefault : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - SHRegGetBoolUSValueW(pszsubkey.into_param().abi(), pszvalue.into_param().abi(), fignorehkcu.into_param().abi(), fdefault.into_param().abi()) + SHRegGetBoolUSValueW(pszsubkey.param().abi(), pszvalue.param().abi(), fignorehkcu.param().abi(), fdefault.param().abi()) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegGetIntW(hk: P0, pwzkey: P1, idefault: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hk.into_param().abi(), pwzkey.into_param().abi(), idefault) + SHRegGetIntW(hk.param().abi(), pwzkey.param().abi(), idefault) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegGetPathA(hkey: P0, pcszsubkey: P1, pcszvalue: P2, pszpath: &mut [u8; 260], dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), core::mem::transmute(pszpath.as_ptr()), dwflags) + SHRegGetPathA(hkey.param().abi(), pcszsubkey.param().abi(), pcszvalue.param().abi(), core::mem::transmute(pszpath.as_ptr()), dwflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegGetPathW(hkey: P0, pcszsubkey: P1, pcszvalue: P2, pszpath: &mut [u16; 260], dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), core::mem::transmute(pszpath.as_ptr()), dwflags) + SHRegGetPathW(hkey.param().abi(), 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: P2, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszvalue.into_param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.into_param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), dwdefaultdatasize) + SHRegGetUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), 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: P2, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), pszvalue.into_param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.into_param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), dwdefaultdatasize) + SHRegGetUSValueW(pszsubkey.param().abi(), pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), dwdefaultdatasize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegGetValueA(hkey: P0, pszsubkey: P1, pszvalue: P2, srrfflags: i32, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHRegGetValueA(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwszvalue.into_param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHRegGetValueFromHKCUHKLM(pwszkey.param().abi(), pwszvalue.param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegGetValueW(hkey: P0, pszsubkey: P1, pszvalue: P2, srrfflags: i32, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) + SHRegGetValueW(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), srrfflags, core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SHRegOpenUSKeyA(pszpath: P0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, fignorehkcu: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), samdesired, hrelativeuskey, phnewuskey, fignorehkcu.into_param().abi()) + SHRegOpenUSKeyA(pszpath.param().abi(), samdesired, hrelativeuskey, phnewuskey, fignorehkcu.param().abi()) } #[inline] pub unsafe fn SHRegOpenUSKeyW(pwzpath: P0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, fignorehkcu: P1) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), samdesired, hrelativeuskey, phnewuskey, fignorehkcu.into_param().abi()) + SHRegOpenUSKeyW(pwzpath.param().abi(), samdesired, hrelativeuskey, phnewuskey, fignorehkcu.param().abi()) } #[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 { @@ -4152,78 +4152,78 @@ pub unsafe fn SHRegQueryInfoUSKeyW(huskey: isize, pcsubkeys: Option<*mut u32>, p #[inline] pub unsafe fn SHRegQueryUSValueA(huskey: isize, pszvalue: P0, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, fignorehkcu: P1, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(huskey, pszvalue.into_param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.into_param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), dwdefaultdatasize) + SHRegQueryUSValueA(huskey, pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), dwdefaultdatasize) } #[inline] pub unsafe fn SHRegQueryUSValueW(huskey: isize, pszvalue: P0, pdwtype: Option<*mut u32>, pvdata: Option<*mut core::ffi::c_void>, pcbdata: Option<*mut u32>, fignorehkcu: P1, pvdefaultdata: Option<*const core::ffi::c_void>, dwdefaultdatasize: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(huskey, pszvalue.into_param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.into_param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), dwdefaultdatasize) + SHRegQueryUSValueW(huskey, pszvalue.param().abi(), core::mem::transmute(pdwtype.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pvdata.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbdata.unwrap_or(std::ptr::null_mut())), fignorehkcu.param().abi(), core::mem::transmute(pvdefaultdata.unwrap_or(std::ptr::null())), dwdefaultdatasize) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegSetPathA(hkey: P0, pcszsubkey: P1, pcszvalue: P2, pcszpath: P3, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), pcszpath.into_param().abi(), dwflags) + SHRegSetPathA(hkey.param().abi(), pcszsubkey.param().abi(), pcszvalue.param().abi(), pcszpath.param().abi(), dwflags) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegSetPathW(hkey: P0, pcszsubkey: P1, pcszvalue: P2, pcszpath: P3, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), pcszpath.into_param().abi(), dwflags) + SHRegSetPathW(hkey.param().abi(), 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: u32, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszvalue.into_param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, dwflags) + SHRegSetUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, dwflags) } #[inline] pub unsafe fn SHRegSetUSValueW(pwzsubkey: P0, pwzvalue: P1, dwtype: u32, pvdata: Option<*const core::ffi::c_void>, cbdata: u32, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pwzvalue.into_param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, dwflags) + SHRegSetUSValueW(pwzsubkey.param().abi(), pwzvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata, dwflags) } #[inline] pub unsafe fn SHRegWriteUSValueA(huskey: isize, pszvalue: P0, dwtype: u32, pvdata: *const core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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(huskey, pszvalue.into_param().abi(), dwtype, pvdata, cbdata, dwflags) + SHRegWriteUSValueA(huskey, pszvalue.param().abi(), dwtype, pvdata, cbdata, dwflags) } #[inline] pub unsafe fn SHRegWriteUSValueW(huskey: isize, pwzvalue: P0, dwtype: u32, pvdata: *const core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::WIN32_ERROR where - P0: windows_core::IntoParam, + P0: 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(huskey, pwzvalue.into_param().abi(), dwtype, pvdata, cbdata, dwflags) + SHRegWriteUSValueW(huskey, pwzvalue.param().abi(), dwtype, pvdata, cbdata, dwflags) } #[inline] pub unsafe fn SHReleaseThreadRef() -> windows_core::Result<()> { @@ -4233,28 +4233,28 @@ pub unsafe fn SHReleaseThreadRef() -> windows_core::Result<()> { #[inline] pub unsafe fn SHRemoveLocalizedName(pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHRemoveLocalizedName(pszpath : windows_core::PCWSTR) -> windows_core::HRESULT); - SHRemoveLocalizedName(pszpath.into_param().abi()).ok() + SHRemoveLocalizedName(pszpath.param().abi()).ok() } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SHReplaceFromPropSheetExtArray(hpsxa: P0, upageid: u32, lpfnreplacewith: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHReplaceFromPropSheetExtArray(hpsxa : HPSXA, upageid : u32, lpfnreplacewith : super::Controls:: LPFNSVADDPROPSHEETPAGE, lparam : super::super::Foundation:: LPARAM) -> u32); - SHReplaceFromPropSheetExtArray(hpsxa.into_param().abi(), upageid, lpfnreplacewith, lparam.into_param().abi()) + SHReplaceFromPropSheetExtArray(hpsxa.param().abi(), upageid, lpfnreplacewith, lparam.param().abi()) } #[inline] pub unsafe fn SHResolveLibrary(psilibrary: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHResolveLibrary(psilibrary : * mut core::ffi::c_void) -> windows_core::HRESULT); - SHResolveLibrary(psilibrary.into_param().abi()).ok() + SHResolveLibrary(psilibrary.param().abi()).ok() } #[inline] pub unsafe fn SHRestricted(rest: RESTRICTIONS) -> u32 { @@ -4264,187 +4264,187 @@ pub unsafe fn SHRestricted(rest: RESTRICTIONS) -> u32 { #[inline] pub unsafe fn SHSendMessageBroadcastA(umsg: u32, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(umsg, wparam.into_param().abi(), lparam.into_param().abi()) + SHSendMessageBroadcastA(umsg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn SHSendMessageBroadcastW(umsg: u32, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(umsg, wparam.into_param().abi(), lparam.into_param().abi()) + SHSendMessageBroadcastW(umsg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn SHSetDefaultProperties(hwnd: P0, psi: P1, dwfileopflags: u32, pfops: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), psi.into_param().abi(), dwfileopflags, pfops.into_param().abi()).ok() + SHSetDefaultProperties(hwnd.param().abi(), psi.param().abi(), dwfileopflags, pfops.param().abi()).ok() } #[inline] pub unsafe fn SHSetFolderPathA(csidl: i32, htoken: P0, dwflags: u32, pszpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(csidl, htoken.into_param().abi(), dwflags, pszpath.into_param().abi()).ok() + SHSetFolderPathA(csidl, htoken.param().abi(), dwflags, pszpath.param().abi()).ok() } #[inline] pub unsafe fn SHSetFolderPathW(csidl: i32, htoken: P0, dwflags: u32, pszpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(csidl, htoken.into_param().abi(), dwflags, pszpath.into_param().abi()).ok() + SHSetFolderPathW(csidl, htoken.param().abi(), dwflags, pszpath.param().abi()).ok() } #[inline] pub unsafe fn SHSetInstanceExplorer(punk: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetInstanceExplorer(punk : * mut core::ffi::c_void)); - SHSetInstanceExplorer(punk.into_param().abi()) + SHSetInstanceExplorer(punk.param().abi()) } #[inline] pub unsafe fn SHSetKnownFolderPath(rfid: *const windows_core::GUID, dwflags: u32, htoken: P0, pszpath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(rfid, dwflags, htoken.into_param().abi(), pszpath.into_param().abi()).ok() + SHSetKnownFolderPath(rfid, dwflags, htoken.param().abi(), pszpath.param().abi()).ok() } #[inline] pub unsafe fn SHSetLocalizedName(pszpath: P0, pszresmodule: P1, idsres: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszresmodule.into_param().abi(), idsres).ok() + SHSetLocalizedName(pszpath.param().abi(), pszresmodule.param().abi(), idsres).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] #[inline] pub unsafe fn SHSetTemporaryPropertyForItem(psi: P0, propkey: *const PropertiesSystem::PROPERTYKEY, propvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSetTemporaryPropertyForItem(psi : * mut core::ffi::c_void, propkey : *const PropertiesSystem:: PROPERTYKEY, propvar : *const std::mem::MaybeUninit < windows_core::PROPVARIANT >) -> windows_core::HRESULT); - SHSetTemporaryPropertyForItem(psi.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHSetThreadRef(punk : * mut core::ffi::c_void) -> windows_core::HRESULT); - SHSetThreadRef(punk.into_param().abi()).ok() + SHSetThreadRef(punk.param().abi()).ok() } #[inline] pub unsafe fn SHSetUnreadMailCountW(pszmailaddress: P0, dwcount: u32, pszshellexecutecommand: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwcount, pszshellexecutecommand.into_param().abi()).ok() + SHSetUnreadMailCountW(pszmailaddress.param().abi(), dwcount, pszshellexecutecommand.param().abi()).ok() } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHSetValueA(hkey: P0, pszsubkey: P1, pszvalue: P2, dwtype: u32, pvdata: Option<*const core::ffi::c_void>, cbdata: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata) + SHSetValueA(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata) } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHSetValueW(hkey: P0, pszsubkey: P1, pszvalue: P2, dwtype: u32, pvdata: Option<*const core::ffi::c_void>, cbdata: u32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata) + SHSetValueW(hkey.param().abi(), pszsubkey.param().abi(), pszvalue.param().abi(), dwtype, core::mem::transmute(pvdata.unwrap_or(std::ptr::null())), cbdata) } #[inline] pub unsafe fn SHShellFolderView_Message(hwndmain: P0, umsg: u32, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndmain.into_param().abi(), umsg, lparam.into_param().abi()) + SHShellFolderView_Message(hwndmain.param().abi(), umsg, lparam.param().abi()) } #[inline] pub unsafe fn SHShowManageLibraryUI(psilibrary: P0, hwndowner: P1, psztitle: P2, pszinstruction: P3, lmdoptions: LIBRARYMANAGEDIALOGOPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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.into_param().abi(), hwndowner.into_param().abi(), psztitle.into_param().abi(), pszinstruction.into_param().abi(), lmdoptions).ok() + SHShowManageLibraryUI(psilibrary.param().abi(), hwndowner.param().abi(), psztitle.param().abi(), pszinstruction.param().abi(), lmdoptions).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHSimpleIDListFromPath(pszpath: P0) -> *mut Common::ITEMIDLIST where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHSimpleIDListFromPath(pszpath : windows_core::PCWSTR) -> *mut Common:: ITEMIDLIST); - SHSimpleIDListFromPath(pszpath.into_param().abi()) + SHSimpleIDListFromPath(pszpath.param().abi()) } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHSkipJunction(pbc: P0, pclsid: *const windows_core::GUID) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), pclsid) + SHSkipJunction(pbc.param().abi(), pclsid) } #[inline] pub unsafe fn SHStartNetConnectionDialogW(hwnd: P0, pszremotename: P1, dwtype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszremotename.into_param().abi(), dwtype).ok() + SHStartNetConnectionDialogW(hwnd.param().abi(), pszremotename.param().abi(), dwtype).ok() } #[inline] pub unsafe fn SHStrDupA(psz: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHStrDupA(psz : windows_core::PCSTR, ppwsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHStrDupA(psz.into_param().abi(), &mut result__).map(|| result__) + SHStrDupA(psz.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SHStrDupW(psz: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHStrDupW(psz : windows_core::PCWSTR, ppwsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - SHStrDupW(psz.into_param().abi(), &mut result__).map(|| result__) + SHStrDupW(psz.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn SHStripMneumonicA(pszmenu: windows_core::PSTR) -> i8 { @@ -4459,26 +4459,26 @@ pub unsafe fn SHStripMneumonicW(pszmenu: windows_core::PWSTR) -> u16 { #[inline] pub unsafe fn SHTestTokenMembership(htoken: P0, ulrid: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHTestTokenMembership(htoken : super::super::Foundation:: HANDLE, ulrid : u32) -> super::super::Foundation:: BOOL); - SHTestTokenMembership(htoken.into_param().abi(), ulrid) + SHTestTokenMembership(htoken.param().abi(), ulrid) } #[inline] pub unsafe fn SHUnicodeToAnsi(pwszsrc: P0, pszdst: &mut [u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHUnicodeToAnsi(pwszsrc : windows_core::PCWSTR, pszdst : windows_core::PSTR, cchbuf : i32) -> i32); - SHUnicodeToAnsi(pwszsrc.into_param().abi(), core::mem::transmute(pszdst.as_ptr()), pszdst.len().try_into().unwrap()) + SHUnicodeToAnsi(pwszsrc.param().abi(), core::mem::transmute(pszdst.as_ptr()), pszdst.len().try_into().unwrap()) } #[inline] pub unsafe fn SHUnicodeToUnicode(pwzsrc: P0, pwzdst: &mut [u16]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn SHUnicodeToUnicode(pwzsrc : windows_core::PCWSTR, pwzdst : windows_core::PWSTR, cwchbuf : i32) -> i32); - SHUnicodeToUnicode(pwzsrc.into_param().abi(), core::mem::transmute(pwzdst.as_ptr()), pwzdst.len().try_into().unwrap()) + SHUnicodeToUnicode(pwzsrc.param().abi(), core::mem::transmute(pwzdst.as_ptr()), pwzdst.len().try_into().unwrap()) } #[inline] pub unsafe fn SHUnlockShared(pvdata: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -4488,96 +4488,96 @@ pub unsafe fn SHUnlockShared(pvdata: *const core::ffi::c_void) -> windows_core:: #[inline] pub unsafe fn SHUpdateImageA(pszhashitem: P0, iindex: i32, uflags: u32, iimageindex: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHUpdateImageA(pszhashitem : windows_core::PCSTR, iindex : i32, uflags : u32, iimageindex : i32)); - SHUpdateImageA(pszhashitem.into_param().abi(), iindex, uflags, iimageindex) + SHUpdateImageA(pszhashitem.param().abi(), iindex, uflags, iimageindex) } #[inline] pub unsafe fn SHUpdateImageW(pszhashitem: P0, iindex: i32, uflags: u32, iimageindex: i32) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHUpdateImageW(pszhashitem : windows_core::PCWSTR, iindex : i32, uflags : u32, iimageindex : i32)); - SHUpdateImageW(pszhashitem.into_param().abi(), iindex, uflags, iimageindex) + SHUpdateImageW(pszhashitem.param().abi(), iindex, uflags, iimageindex) } #[inline] pub unsafe fn SHValidateUNC(hwndowner: P0, pszfile: windows_core::PWSTR, fconnect: VALIDATEUNC_OPTION) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SHValidateUNC(hwndowner : super::super::Foundation:: HWND, pszfile : windows_core::PWSTR, fconnect : u32) -> super::super::Foundation:: BOOL); - SHValidateUNC(hwndowner.into_param().abi(), core::mem::transmute(pszfile), fconnect.0 as _) + SHValidateUNC(hwndowner.param().abi(), core::mem::transmute(pszfile), fconnect.0 as _) } #[inline] pub unsafe fn SetCurrentProcessExplicitAppUserModelID(appid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn SetCurrentProcessExplicitAppUserModelID(appid : windows_core::PCWSTR) -> windows_core::HRESULT); - SetCurrentProcessExplicitAppUserModelID(appid.into_param().abi()).ok() + SetCurrentProcessExplicitAppUserModelID(appid.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetMenuContextHelpId(param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetMenuContextHelpId(param0 : super::WindowsAndMessaging:: HMENU, param1 : u32) -> super::super::Foundation:: BOOL); - SetMenuContextHelpId(param0.into_param().abi(), param1).ok() + SetMenuContextHelpId(param0.param().abi(), param1).ok() } #[inline] pub unsafe fn SetWindowContextHelpId(param0: P0, param1: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowContextHelpId(param0 : super::super::Foundation:: HWND, param1 : u32) -> super::super::Foundation:: BOOL); - SetWindowContextHelpId(param0.into_param().abi(), param1).ok() + SetWindowContextHelpId(param0.param().abi(), param1).ok() } #[inline] pub unsafe fn SetWindowSubclass(hwnd: P0, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, dwrefdata: usize) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("comctl32.dll" "system" fn SetWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize, dwrefdata : usize) -> super::super::Foundation:: BOOL); - SetWindowSubclass(hwnd.into_param().abi(), pfnsubclass, uidsubclass, dwrefdata) + SetWindowSubclass(hwnd.param().abi(), pfnsubclass, uidsubclass, dwrefdata) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShellAboutA(hwnd: P0, szapp: P1, szotherstuff: P2, hicon: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ShellAboutA(hwnd : super::super::Foundation:: HWND, szapp : windows_core::PCSTR, szotherstuff : windows_core::PCSTR, hicon : super::WindowsAndMessaging:: HICON) -> i32); - ShellAboutA(hwnd.into_param().abi(), szapp.into_param().abi(), szotherstuff.into_param().abi(), hicon.into_param().abi()) + ShellAboutA(hwnd.param().abi(), szapp.param().abi(), szotherstuff.param().abi(), hicon.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShellAboutW(hwnd: P0, szapp: P1, szotherstuff: P2, hicon: P3) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn ShellAboutW(hwnd : super::super::Foundation:: HWND, szapp : windows_core::PCWSTR, szotherstuff : windows_core::PCWSTR, hicon : super::WindowsAndMessaging:: HICON) -> i32); - ShellAboutW(hwnd.into_param().abi(), szapp.into_param().abi(), szotherstuff.into_param().abi(), hicon.into_param().abi()) + ShellAboutW(hwnd.param().abi(), szapp.param().abi(), szotherstuff.param().abi(), hicon.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShellExecuteA(hwnd: P0, lpoperation: P1, lpfile: P2, lpparameters: P3, lpdirectory: P4, nshowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> super::super::Foundation::HINSTANCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwnd.into_param().abi(), lpoperation.into_param().abi(), lpfile.into_param().abi(), lpparameters.into_param().abi(), lpdirectory.into_param().abi(), nshowcmd) + ShellExecuteA(hwnd.param().abi(), lpoperation.param().abi(), lpfile.param().abi(), lpparameters.param().abi(), lpdirectory.param().abi(), nshowcmd) } #[cfg(feature = "Win32_System_Registry")] #[inline] @@ -4595,62 +4595,62 @@ pub unsafe fn ShellExecuteExW(pexecinfo: *mut SHELLEXECUTEINFOW) -> windows_core #[inline] pub unsafe fn ShellExecuteW(hwnd: P0, lpoperation: P1, lpfile: P2, lpparameters: P3, lpdirectory: P4, nshowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> super::super::Foundation::HINSTANCE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwnd.into_param().abi(), lpoperation.into_param().abi(), lpfile.into_param().abi(), lpparameters.into_param().abi(), lpdirectory.into_param().abi(), nshowcmd) + ShellExecuteW(hwnd.param().abi(), lpoperation.param().abi(), lpfile.param().abi(), lpparameters.param().abi(), lpdirectory.param().abi(), nshowcmd) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShellMessageBoxA(happinst: P0, hwnd: P1, lpctext: P2, lpctitle: P3, fustyle: super::WindowsAndMessaging::MESSAGEBOX_STYLE) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(happinst.into_param().abi(), hwnd.into_param().abi(), lpctext.into_param().abi(), lpctitle.into_param().abi(), fustyle) + ShellMessageBoxA(happinst.param().abi(), hwnd.param().abi(), lpctext.param().abi(), lpctitle.param().abi(), fustyle) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShellMessageBoxW(happinst: P0, hwnd: P1, lpctext: P2, lpctitle: P3, fustyle: super::WindowsAndMessaging::MESSAGEBOX_STYLE) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + 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(happinst.into_param().abi(), hwnd.into_param().abi(), lpctext.into_param().abi(), lpctitle.into_param().abi(), fustyle) + ShellMessageBoxW(happinst.param().abi(), hwnd.param().abi(), lpctext.param().abi(), lpctitle.param().abi(), fustyle) } #[inline] pub unsafe fn Shell_GetCachedImageIndex(pwsziconpath: P0, iiconindex: i32, uiconflags: u32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), iiconindex, uiconflags) + Shell_GetCachedImageIndex(pwsziconpath.param().abi(), iiconindex, uiconflags) } #[inline] pub unsafe fn Shell_GetCachedImageIndexA(psziconpath: P0, iiconindex: i32, uiconflags: u32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), iiconindex, uiconflags) + Shell_GetCachedImageIndexA(psziconpath.param().abi(), iiconindex, uiconflags) } #[inline] pub unsafe fn Shell_GetCachedImageIndexW(psziconpath: P0, iiconindex: i32, uiconflags: u32) -> i32 where - P0: windows_core::IntoParam, + 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.into_param().abi(), iiconindex, uiconflags) + Shell_GetCachedImageIndexW(psziconpath.param().abi(), iiconindex, uiconflags) } #[cfg(feature = "Win32_UI_Controls")] #[inline] @@ -4662,11 +4662,11 @@ pub unsafe fn Shell_GetImageLists(phiml: Option<*mut super::Controls::HIMAGELIST #[inline] pub unsafe fn Shell_MergeMenus(hmdst: P0, hmsrc: P1, uinsert: u32, uidadjust: u32, uidadjustmax: u32, uflags: MM_FLAGS) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmdst.into_param().abi(), hmsrc.into_param().abi(), uinsert, uidadjust, uidadjustmax, uflags) + Shell_MergeMenus(hmdst.param().abi(), hmsrc.param().abi(), uinsert, uidadjust, uidadjustmax, uflags) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] @@ -4696,306 +4696,306 @@ pub unsafe fn SignalFileOpen(pidl: *const Common::ITEMIDLIST) -> super::super::F #[inline] pub unsafe fn SoftwareUpdateMessageBox(hwnd: P0, pszdistunit: P1, dwflags: u32, psdi: Option<*mut super::super::System::Com::Urlmon::SOFTDISTINFO>) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), pszdistunit.into_param().abi(), dwflags, core::mem::transmute(psdi.unwrap_or(std::ptr::null_mut()))) + SoftwareUpdateMessageBox(hwnd.param().abi(), pszdistunit.param().abi(), dwflags, core::mem::transmute(psdi.unwrap_or(std::ptr::null_mut()))) } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] pub unsafe fn StgMakeUniqueName(pstgparent: P0, pszfilespec: P1, grfmode: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { 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__ = std::ptr::null_mut(); - StgMakeUniqueName(pstgparent.into_param().abi(), pszfilespec.into_param().abi(), 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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCSpnA(pszstr : windows_core::PCSTR, pszset : windows_core::PCSTR) -> i32); - StrCSpnA(pszstr.into_param().abi(), pszset.into_param().abi()) + StrCSpnA(pszstr.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrCSpnIA(pszstr: P0, pszset: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCSpnIA(pszstr : windows_core::PCSTR, pszset : windows_core::PCSTR) -> i32); - StrCSpnIA(pszstr.into_param().abi(), pszset.into_param().abi()) + StrCSpnIA(pszstr.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrCSpnIW(pszstr: P0, pszset: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCSpnIW(pszstr : windows_core::PCWSTR, pszset : windows_core::PCWSTR) -> i32); - StrCSpnIW(pszstr.into_param().abi(), pszset.into_param().abi()) + StrCSpnIW(pszstr.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrCSpnW(pszstr: P0, pszset: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCSpnW(pszstr : windows_core::PCWSTR, pszset : windows_core::PCWSTR) -> i32); - StrCSpnW(pszstr.into_param().abi(), pszset.into_param().abi()) + StrCSpnW(pszstr.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrCatBuffA(pszdest: &mut [u8], pszsrc: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCatBuffA(pszdest : windows_core::PSTR, pszsrc : windows_core::PCSTR, cchdestbuffsize : i32) -> windows_core::PSTR); - StrCatBuffA(core::mem::transmute(pszdest.as_ptr()), pszsrc.into_param().abi(), pszdest.len().try_into().unwrap()) + StrCatBuffA(core::mem::transmute(pszdest.as_ptr()), pszsrc.param().abi(), pszdest.len().try_into().unwrap()) } #[inline] pub unsafe fn StrCatBuffW(pszdest: &mut [u16], pszsrc: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCatBuffW(pszdest : windows_core::PWSTR, pszsrc : windows_core::PCWSTR, cchdestbuffsize : i32) -> windows_core::PWSTR); - StrCatBuffW(core::mem::transmute(pszdest.as_ptr()), pszsrc.into_param().abi(), pszdest.len().try_into().unwrap()) + StrCatBuffW(core::mem::transmute(pszdest.as_ptr()), pszsrc.param().abi(), pszdest.len().try_into().unwrap()) } #[inline] pub unsafe fn StrCatChainW(pszdst: &mut [u16], ichat: u32, pszsrc: P0) -> u32 where - P0: windows_core::IntoParam, + P0: 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(), ichat, pszsrc.into_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: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCatW(psz1 : windows_core::PWSTR, psz2 : windows_core::PCWSTR) -> windows_core::PWSTR); - StrCatW(core::mem::transmute(psz1), psz2.into_param().abi()) + StrCatW(core::mem::transmute(psz1), psz2.param().abi()) } #[inline] pub unsafe fn StrChrA(pszstart: P0, wmatch: u16) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrA(pszstart : windows_core::PCSTR, wmatch : u16) -> windows_core::PSTR); - StrChrA(pszstart.into_param().abi(), wmatch) + StrChrA(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrChrIA(pszstart: P0, wmatch: u16) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrIA(pszstart : windows_core::PCSTR, wmatch : u16) -> windows_core::PSTR); - StrChrIA(pszstart.into_param().abi(), wmatch) + StrChrIA(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrChrIW(pszstart: P0, wmatch: u16) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrIW(pszstart : windows_core::PCWSTR, wmatch : u16) -> windows_core::PWSTR); - StrChrIW(pszstart.into_param().abi(), wmatch) + StrChrIW(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrChrNIW(pszstart: P0, wmatch: u16, cchmax: u32) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + 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.into_param().abi(), wmatch, cchmax) + StrChrNIW(pszstart.param().abi(), wmatch, cchmax) } #[inline] pub unsafe fn StrChrNW(pszstart: P0, wmatch: u16, cchmax: u32) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + 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.into_param().abi(), wmatch, cchmax) + StrChrNW(pszstart.param().abi(), wmatch, cchmax) } #[inline] pub unsafe fn StrChrW(pszstart: P0, wmatch: u16) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrChrW(pszstart : windows_core::PCWSTR, wmatch : u16) -> windows_core::PWSTR); - StrChrW(pszstart.into_param().abi(), wmatch) + StrChrW(pszstart.param().abi(), wmatch) } #[inline] pub unsafe fn StrCmpCA(pszstr1: P0, pszstr2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpCA(pszstr1 : windows_core::PCSTR, pszstr2 : windows_core::PCSTR) -> i32); - StrCmpCA(pszstr1.into_param().abi(), pszstr2.into_param().abi()) + StrCmpCA(pszstr1.param().abi(), pszstr2.param().abi()) } #[inline] pub unsafe fn StrCmpCW(pszstr1: P0, pszstr2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpCW(pszstr1 : windows_core::PCWSTR, pszstr2 : windows_core::PCWSTR) -> i32); - StrCmpCW(pszstr1.into_param().abi(), pszstr2.into_param().abi()) + StrCmpCW(pszstr1.param().abi(), pszstr2.param().abi()) } #[inline] pub unsafe fn StrCmpICA(pszstr1: P0, pszstr2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpICA(pszstr1 : windows_core::PCSTR, pszstr2 : windows_core::PCSTR) -> i32); - StrCmpICA(pszstr1.into_param().abi(), pszstr2.into_param().abi()) + StrCmpICA(pszstr1.param().abi(), pszstr2.param().abi()) } #[inline] pub unsafe fn StrCmpICW(pszstr1: P0, pszstr2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpICW(pszstr1 : windows_core::PCWSTR, pszstr2 : windows_core::PCWSTR) -> i32); - StrCmpICW(pszstr1.into_param().abi(), pszstr2.into_param().abi()) + StrCmpICW(pszstr1.param().abi(), pszstr2.param().abi()) } #[inline] pub unsafe fn StrCmpIW(psz1: P0, psz2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpIW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR) -> i32); - StrCmpIW(psz1.into_param().abi(), psz2.into_param().abi()) + StrCmpIW(psz1.param().abi(), psz2.param().abi()) } #[inline] pub unsafe fn StrCmpLogicalW(psz1: P0, psz2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpLogicalW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR) -> i32); - StrCmpLogicalW(psz1.into_param().abi(), psz2.into_param().abi()) + StrCmpLogicalW(psz1.param().abi(), psz2.param().abi()) } #[inline] pub unsafe fn StrCmpNA(psz1: P0, psz2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), psz2.into_param().abi(), nchar) + StrCmpNA(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNCA(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszstr2.into_param().abi(), nchar) + StrCmpNCA(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNCW(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszstr2.into_param().abi(), nchar) + StrCmpNCW(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNIA(psz1: P0, psz2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), psz2.into_param().abi(), nchar) + StrCmpNIA(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNICA(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszstr2.into_param().abi(), nchar) + StrCmpNICA(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNICW(pszstr1: P0, pszstr2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszstr2.into_param().abi(), nchar) + StrCmpNICW(pszstr1.param().abi(), pszstr2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNIW(psz1: P0, psz2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), psz2.into_param().abi(), nchar) + StrCmpNIW(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpNW(psz1: P0, psz2: P1, nchar: i32) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), psz2.into_param().abi(), nchar) + StrCmpNW(psz1.param().abi(), psz2.param().abi(), nchar) } #[inline] pub unsafe fn StrCmpW(psz1: P0, psz2: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCmpW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR) -> i32); - StrCmpW(psz1.into_param().abi(), psz2.into_param().abi()) + StrCmpW(psz1.param().abi(), psz2.param().abi()) } #[inline] pub unsafe fn StrCpyNW(pszdst: &mut [u16], pszsrc: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCpyNW(pszdst : windows_core::PWSTR, pszsrc : windows_core::PCWSTR, cchmax : i32) -> windows_core::PWSTR); - StrCpyNW(core::mem::transmute(pszdst.as_ptr()), pszsrc.into_param().abi(), pszdst.len().try_into().unwrap()) + StrCpyNW(core::mem::transmute(pszdst.as_ptr()), pszsrc.param().abi(), pszdst.len().try_into().unwrap()) } #[inline] pub unsafe fn StrCpyW(psz1: windows_core::PWSTR, psz2: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrCpyW(psz1 : windows_core::PWSTR, psz2 : windows_core::PCWSTR) -> windows_core::PWSTR); - StrCpyW(core::mem::transmute(psz1), psz2.into_param().abi()) + StrCpyW(core::mem::transmute(psz1), psz2.param().abi()) } #[inline] pub unsafe fn StrDupA(pszsrch: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrDupA(pszsrch : windows_core::PCSTR) -> windows_core::PSTR); - StrDupA(pszsrch.into_param().abi()) + StrDupA(pszsrch.param().abi()) } #[inline] pub unsafe fn StrDupW(pszsrch: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrDupW(pszsrch : windows_core::PCWSTR) -> windows_core::PWSTR); - StrDupW(pszsrch.into_param().abi()) + StrDupW(pszsrch.param().abi()) } #[inline] pub unsafe fn StrFormatByteSize64A(qdw: i64, pszbuf: &mut [u8]) -> windows_core::PSTR { @@ -5040,112 +5040,112 @@ pub unsafe fn StrFromTimeIntervalW(pszout: &mut [u16], dwtimems: u32, digits: i3 #[inline] pub unsafe fn StrIsIntlEqualA(fcasesens: P0, pszstring1: P1, pszstring2: P2, nchar: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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_param().abi(), pszstring1.into_param().abi(), pszstring2.into_param().abi(), nchar) + StrIsIntlEqualA(fcasesens.param().abi(), pszstring1.param().abi(), pszstring2.param().abi(), nchar) } #[inline] pub unsafe fn StrIsIntlEqualW(fcasesens: P0, pszstring1: P1, pszstring2: P2, nchar: i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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_param().abi(), pszstring1.into_param().abi(), pszstring2.into_param().abi(), nchar) + StrIsIntlEqualW(fcasesens.param().abi(), pszstring1.param().abi(), pszstring2.param().abi(), nchar) } #[inline] pub unsafe fn StrNCatA(psz1: &mut [u8], psz2: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrNCatA(psz1 : windows_core::PSTR, psz2 : windows_core::PCSTR, cchmax : i32) -> windows_core::PSTR); - StrNCatA(core::mem::transmute(psz1.as_ptr()), psz2.into_param().abi(), psz1.len().try_into().unwrap()) + StrNCatA(core::mem::transmute(psz1.as_ptr()), psz2.param().abi(), psz1.len().try_into().unwrap()) } #[inline] pub unsafe fn StrNCatW(psz1: &mut [u16], psz2: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrNCatW(psz1 : windows_core::PWSTR, psz2 : windows_core::PCWSTR, cchmax : i32) -> windows_core::PWSTR); - StrNCatW(core::mem::transmute(psz1.as_ptr()), psz2.into_param().abi(), psz1.len().try_into().unwrap()) + StrNCatW(core::mem::transmute(psz1.as_ptr()), psz2.param().abi(), psz1.len().try_into().unwrap()) } #[inline] pub unsafe fn StrPBrkA(psz: P0, pszset: P1) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrPBrkA(psz : windows_core::PCSTR, pszset : windows_core::PCSTR) -> windows_core::PSTR); - StrPBrkA(psz.into_param().abi(), pszset.into_param().abi()) + StrPBrkA(psz.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrPBrkW(psz: P0, pszset: P1) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrPBrkW(psz : windows_core::PCWSTR, pszset : windows_core::PCWSTR) -> windows_core::PWSTR); - StrPBrkW(psz.into_param().abi(), pszset.into_param().abi()) + StrPBrkW(psz.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrRChrA(pszstart: P0, pszend: P1, wmatch: u16) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszend.into_param().abi(), wmatch) + StrRChrA(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRChrIA(pszstart: P0, pszend: P1, wmatch: u16) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszend.into_param().abi(), wmatch) + StrRChrIA(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRChrIW(pszstart: P0, pszend: P1, wmatch: u16) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszend.into_param().abi(), wmatch) + StrRChrIW(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRChrW(pszstart: P0, pszend: P1, wmatch: u16) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszend.into_param().abi(), wmatch) + StrRChrW(pszstart.param().abi(), pszend.param().abi(), wmatch) } #[inline] pub unsafe fn StrRStrIA(pszsource: P0, pszlast: P1, pszsrch: P2) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrRStrIA(pszsource : windows_core::PCSTR, pszlast : windows_core::PCSTR, pszsrch : windows_core::PCSTR) -> windows_core::PSTR); - StrRStrIA(pszsource.into_param().abi(), pszlast.into_param().abi(), pszsrch.into_param().abi()) + StrRStrIA(pszsource.param().abi(), pszlast.param().abi(), pszsrch.param().abi()) } #[inline] pub unsafe fn StrRStrIW(pszsource: P0, pszlast: P1, pszsrch: P2) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrRStrIW(pszsource : windows_core::PCWSTR, pszlast : windows_core::PCWSTR, pszsrch : windows_core::PCWSTR) -> windows_core::PWSTR); - StrRStrIW(pszsource.into_param().abi(), pszlast.into_param().abi(), pszsrch.into_param().abi()) + StrRStrIW(pszsource.param().abi(), pszlast.param().abi(), pszsrch.param().abi()) } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] @@ -5180,163 +5180,163 @@ pub unsafe fn StrRetToStrW(pstr: *mut Common::STRRET, pidl: Option<*const Common #[inline] pub unsafe fn StrSpnA(psz: P0, pszset: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrSpnA(psz : windows_core::PCSTR, pszset : windows_core::PCSTR) -> i32); - StrSpnA(psz.into_param().abi(), pszset.into_param().abi()) + StrSpnA(psz.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrSpnW(psz: P0, pszset: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrSpnW(psz : windows_core::PCWSTR, pszset : windows_core::PCWSTR) -> i32); - StrSpnW(psz.into_param().abi(), pszset.into_param().abi()) + StrSpnW(psz.param().abi(), pszset.param().abi()) } #[inline] pub unsafe fn StrStrA(pszfirst: P0, pszsrch: P1) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrStrA(pszfirst : windows_core::PCSTR, pszsrch : windows_core::PCSTR) -> windows_core::PSTR); - StrStrA(pszfirst.into_param().abi(), pszsrch.into_param().abi()) + StrStrA(pszfirst.param().abi(), pszsrch.param().abi()) } #[inline] pub unsafe fn StrStrIA(pszfirst: P0, pszsrch: P1) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrStrIA(pszfirst : windows_core::PCSTR, pszsrch : windows_core::PCSTR) -> windows_core::PSTR); - StrStrIA(pszfirst.into_param().abi(), pszsrch.into_param().abi()) + StrStrIA(pszfirst.param().abi(), pszsrch.param().abi()) } #[inline] pub unsafe fn StrStrIW(pszfirst: P0, pszsrch: P1) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrStrIW(pszfirst : windows_core::PCWSTR, pszsrch : windows_core::PCWSTR) -> windows_core::PWSTR); - StrStrIW(pszfirst.into_param().abi(), pszsrch.into_param().abi()) + StrStrIW(pszfirst.param().abi(), pszsrch.param().abi()) } #[inline] pub unsafe fn StrStrNIW(pszfirst: P0, pszsrch: P1, cchmax: u32) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszsrch.into_param().abi(), cchmax) + StrStrNIW(pszfirst.param().abi(), pszsrch.param().abi(), cchmax) } #[inline] pub unsafe fn StrStrNW(pszfirst: P0, pszsrch: P1, cchmax: u32) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszsrch.into_param().abi(), cchmax) + StrStrNW(pszfirst.param().abi(), pszsrch.param().abi(), cchmax) } #[inline] pub unsafe fn StrStrW(pszfirst: P0, pszsrch: P1) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrStrW(pszfirst : windows_core::PCWSTR, pszsrch : windows_core::PCWSTR) -> windows_core::PWSTR); - StrStrW(pszfirst.into_param().abi(), pszsrch.into_param().abi()) + StrStrW(pszfirst.param().abi(), pszsrch.param().abi()) } #[inline] pub unsafe fn StrToInt64ExA(pszstring: P0, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, pllret) + StrToInt64ExA(pszstring.param().abi(), dwflags, pllret) } #[inline] pub unsafe fn StrToInt64ExW(pszstring: P0, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, pllret) + StrToInt64ExW(pszstring.param().abi(), dwflags, pllret) } #[inline] pub unsafe fn StrToIntA(pszsrc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrToIntA(pszsrc : windows_core::PCSTR) -> i32); - StrToIntA(pszsrc.into_param().abi()) + StrToIntA(pszsrc.param().abi()) } #[inline] pub unsafe fn StrToIntExA(pszstring: P0, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, piret) + StrToIntExA(pszstring.param().abi(), dwflags, piret) } #[inline] pub unsafe fn StrToIntExW(pszstring: P0, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwflags, piret) + StrToIntExW(pszstring.param().abi(), dwflags, piret) } #[inline] pub unsafe fn StrToIntW(pszsrc: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrToIntW(pszsrc : windows_core::PCWSTR) -> i32); - StrToIntW(pszsrc.into_param().abi()) + StrToIntW(pszsrc.param().abi()) } #[inline] pub unsafe fn StrTrimA(psz: windows_core::PSTR, psztrimchars: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrTrimA(psz : windows_core::PSTR, psztrimchars : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - StrTrimA(core::mem::transmute(psz), psztrimchars.into_param().abi()) + StrTrimA(core::mem::transmute(psz), psztrimchars.param().abi()) } #[inline] pub unsafe fn StrTrimW(psz: windows_core::PWSTR, psztrimchars: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn StrTrimW(psz : windows_core::PWSTR, psztrimchars : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - StrTrimW(core::mem::transmute(psz), psztrimchars.into_param().abi()) + StrTrimW(core::mem::transmute(psz), psztrimchars.param().abi()) } #[inline] pub unsafe fn UnloadUserProfile(htoken: P0, hprofile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("userenv.dll" "system" fn UnloadUserProfile(htoken : super::super::Foundation:: HANDLE, hprofile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - UnloadUserProfile(htoken.into_param().abi(), hprofile.into_param().abi()).ok() + UnloadUserProfile(htoken.param().abi(), hprofile.param().abi()).ok() } #[inline] pub unsafe fn UnregisterAppConstrainedChangeNotification(registration: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-psm-appnotify-l1-1-1.dll" "system" fn UnregisterAppConstrainedChangeNotification(registration : PAPPCONSTRAIN_REGISTRATION)); - UnregisterAppConstrainedChangeNotification(registration.into_param().abi()) + UnregisterAppConstrainedChangeNotification(registration.param().abi()) } #[inline] pub unsafe fn UnregisterAppStateChangeNotification(registration: P0) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("api-ms-win-core-psm-appnotify-l1-1-0.dll" "system" fn UnregisterAppStateChangeNotification(registration : PAPPSTATE_REGISTRATION)); - UnregisterAppStateChangeNotification(registration.into_param().abi()) + UnregisterAppStateChangeNotification(registration.param().abi()) } #[inline] pub unsafe fn UnregisterScaleChangeEvent(dwcookie: usize) -> windows_core::Result<()> { @@ -5346,208 +5346,208 @@ pub unsafe fn UnregisterScaleChangeEvent(dwcookie: usize) -> windows_core::Resul #[inline] pub unsafe fn UrlApplySchemeA(pszin: P0, pszout: windows_core::PSTR, pcchout: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszout), pcchout, dwflags).ok() + UrlApplySchemeA(pszin.param().abi(), core::mem::transmute(pszout), pcchout, dwflags).ok() } #[inline] pub unsafe fn UrlApplySchemeW(pszin: P0, pszout: windows_core::PWSTR, pcchout: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszout), pcchout, dwflags).ok() + UrlApplySchemeW(pszin.param().abi(), core::mem::transmute(pszout), pcchout, dwflags).ok() } #[inline] pub unsafe fn UrlCanonicalizeA(pszurl: P0, pszcanonicalized: windows_core::PSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszcanonicalized), pcchcanonicalized, dwflags).ok() + UrlCanonicalizeA(pszurl.param().abi(), core::mem::transmute(pszcanonicalized), pcchcanonicalized, dwflags).ok() } #[inline] pub unsafe fn UrlCanonicalizeW(pszurl: P0, pszcanonicalized: windows_core::PWSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszcanonicalized), pcchcanonicalized, dwflags).ok() + UrlCanonicalizeW(pszurl.param().abi(), core::mem::transmute(pszcanonicalized), pcchcanonicalized, dwflags).ok() } #[inline] pub unsafe fn UrlCombineA(pszbase: P0, pszrelative: P1, pszcombined: windows_core::PSTR, pcchcombined: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszrelative.into_param().abi(), core::mem::transmute(pszcombined), pcchcombined, dwflags).ok() + UrlCombineA(pszbase.param().abi(), pszrelative.param().abi(), core::mem::transmute(pszcombined), pcchcombined, dwflags).ok() } #[inline] pub unsafe fn UrlCombineW(pszbase: P0, pszrelative: P1, pszcombined: windows_core::PWSTR, pcchcombined: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), pszrelative.into_param().abi(), core::mem::transmute(pszcombined), pcchcombined, dwflags).ok() + UrlCombineW(pszbase.param().abi(), pszrelative.param().abi(), core::mem::transmute(pszcombined), pcchcombined, dwflags).ok() } #[inline] pub unsafe fn UrlCompareA(psz1: P0, psz2: P1, fignoreslash: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCompareA(psz1 : windows_core::PCSTR, psz2 : windows_core::PCSTR, fignoreslash : super::super::Foundation:: BOOL) -> i32); - UrlCompareA(psz1.into_param().abi(), psz2.into_param().abi(), fignoreslash.into_param().abi()) + UrlCompareA(psz1.param().abi(), psz2.param().abi(), fignoreslash.param().abi()) } #[inline] pub unsafe fn UrlCompareW(psz1: P0, psz2: P1, fignoreslash: P2) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlCompareW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR, fignoreslash : super::super::Foundation:: BOOL) -> i32); - UrlCompareW(psz1.into_param().abi(), psz2.into_param().abi(), fignoreslash.into_param().abi()) + UrlCompareW(psz1.param().abi(), psz2.param().abi(), fignoreslash.param().abi()) } #[inline] pub unsafe fn UrlCreateFromPathA(pszpath: P0, pszurl: windows_core::PSTR, pcchurl: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszurl), pcchurl, dwflags).ok() + UrlCreateFromPathA(pszpath.param().abi(), core::mem::transmute(pszurl), pcchurl, dwflags).ok() } #[inline] pub unsafe fn UrlCreateFromPathW(pszpath: P0, pszurl: windows_core::PWSTR, pcchurl: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszurl), pcchurl, dwflags).ok() + UrlCreateFromPathW(pszpath.param().abi(), core::mem::transmute(pszurl), pcchurl, dwflags).ok() } #[inline] pub unsafe fn UrlEscapeA(pszurl: P0, pszescaped: windows_core::PSTR, pcchescaped: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszescaped), pcchescaped, dwflags).ok() + UrlEscapeA(pszurl.param().abi(), core::mem::transmute(pszescaped), pcchescaped, dwflags).ok() } #[inline] pub unsafe fn UrlEscapeW(pszurl: P0, pszescaped: windows_core::PWSTR, pcchescaped: *mut u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszescaped), pcchescaped, dwflags).ok() + UrlEscapeW(pszurl.param().abi(), core::mem::transmute(pszescaped), pcchescaped, dwflags).ok() } #[inline] pub unsafe fn UrlFixupW(pcszurl: P0, psztranslatedurl: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlFixupW(pcszurl : windows_core::PCWSTR, psztranslatedurl : windows_core::PWSTR, cchmax : u32) -> windows_core::HRESULT); - UrlFixupW(pcszurl.into_param().abi(), core::mem::transmute(psztranslatedurl.as_ptr()), psztranslatedurl.len().try_into().unwrap()).ok() + UrlFixupW(pcszurl.param().abi(), core::mem::transmute(psztranslatedurl.as_ptr()), psztranslatedurl.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn UrlGetLocationA(pszurl: P0) -> windows_core::PCSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlGetLocationA(pszurl : windows_core::PCSTR) -> windows_core::PCSTR); - UrlGetLocationA(pszurl.into_param().abi()) + UrlGetLocationA(pszurl.param().abi()) } #[inline] pub unsafe fn UrlGetLocationW(pszurl: P0) -> windows_core::PCWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlGetLocationW(pszurl : windows_core::PCWSTR) -> windows_core::PCWSTR); - UrlGetLocationW(pszurl.into_param().abi()) + UrlGetLocationW(pszurl.param().abi()) } #[inline] pub unsafe fn UrlGetPartA(pszin: P0, pszout: windows_core::PSTR, pcchout: *mut u32, dwpart: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszout), pcchout, dwpart, dwflags).ok() + UrlGetPartA(pszin.param().abi(), core::mem::transmute(pszout), 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<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), core::mem::transmute(pszout), pcchout, dwpart, dwflags).ok() + UrlGetPartW(pszin.param().abi(), core::mem::transmute(pszout), pcchout, dwpart, dwflags).ok() } #[inline] pub unsafe fn UrlHashA(pszurl: P0, pbhash: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlHashA(pszurl : windows_core::PCSTR, pbhash : *mut u8, cbhash : u32) -> windows_core::HRESULT); - UrlHashA(pszurl.into_param().abi(), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap()).ok() + UrlHashA(pszurl.param().abi(), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn UrlHashW(pszurl: P0, pbhash: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlHashW(pszurl : windows_core::PCWSTR, pbhash : *mut u8, cbhash : u32) -> windows_core::HRESULT); - UrlHashW(pszurl.into_param().abi(), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap()).ok() + UrlHashW(pszurl.param().abi(), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn UrlIsA(pszurl: P0, urlis: URLIS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsA(pszurl : windows_core::PCSTR, urlis : URLIS) -> super::super::Foundation:: BOOL); - UrlIsA(pszurl.into_param().abi(), urlis) + UrlIsA(pszurl.param().abi(), urlis) } #[inline] pub unsafe fn UrlIsNoHistoryA(pszurl: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsNoHistoryA(pszurl : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - UrlIsNoHistoryA(pszurl.into_param().abi()) + UrlIsNoHistoryA(pszurl.param().abi()) } #[inline] pub unsafe fn UrlIsNoHistoryW(pszurl: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsNoHistoryW(pszurl : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - UrlIsNoHistoryW(pszurl.into_param().abi()) + UrlIsNoHistoryW(pszurl.param().abi()) } #[inline] pub unsafe fn UrlIsOpaqueA(pszurl: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsOpaqueA(pszurl : windows_core::PCSTR) -> super::super::Foundation:: BOOL); - UrlIsOpaqueA(pszurl.into_param().abi()) + UrlIsOpaqueA(pszurl.param().abi()) } #[inline] pub unsafe fn UrlIsOpaqueW(pszurl: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsOpaqueW(pszurl : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - UrlIsOpaqueW(pszurl.into_param().abi()) + UrlIsOpaqueW(pszurl.param().abi()) } #[inline] pub unsafe fn UrlIsW(pszurl: P0, urlis: URLIS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "system" fn UrlIsW(pszurl : windows_core::PCWSTR, urlis : URLIS) -> super::super::Foundation:: BOOL); - UrlIsW(pszurl.into_param().abi(), urlis) + UrlIsW(pszurl.param().abi(), urlis) } #[inline] pub unsafe fn UrlUnescapeA(pszurl: windows_core::PSTR, pszunescaped: windows_core::PSTR, pcchunescaped: Option<*mut u32>, dwflags: u32) -> windows_core::Result<()> { @@ -5573,28 +5573,28 @@ pub unsafe fn WhichPlatform() -> u32 { #[inline] pub unsafe fn Win32DeleteFile(pszpath: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shell32.dll" "system" fn Win32DeleteFile(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - Win32DeleteFile(pszpath.into_param().abi()) + Win32DeleteFile(pszpath.param().abi()) } #[inline] pub unsafe fn WinHelpA(hwndmain: P0, lpszhelp: P1, ucommand: u32, dwdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndmain.into_param().abi(), lpszhelp.into_param().abi(), ucommand, dwdata).ok() + WinHelpA(hwndmain.param().abi(), lpszhelp.param().abi(), ucommand, dwdata).ok() } #[inline] pub unsafe fn WinHelpW(hwndmain: P0, lpszhelp: P1, ucommand: u32, dwdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwndmain.into_param().abi(), lpszhelp.into_param().abi(), ucommand, dwdata).ok() + WinHelpW(hwndmain.param().abi(), lpszhelp.param().abi(), ucommand, dwdata).ok() } #[inline] pub unsafe fn WriteCabinetState(pcs: *const CABINETSTATE) -> super::super::Foundation::BOOL { @@ -5604,34 +5604,34 @@ pub unsafe fn WriteCabinetState(pcs: *const CABINETSTATE) -> super::super::Found #[inline] pub unsafe fn wnsprintfA(pszdest: &mut [u8], pszfmt: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "cdecl" fn wnsprintfA(pszdest : windows_core::PSTR, cchdest : i32, pszfmt : windows_core::PCSTR) -> i32); - wnsprintfA(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.into_param().abi()) + wnsprintfA(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.param().abi()) } #[inline] pub unsafe fn wnsprintfW(pszdest: &mut [u16], pszfmt: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("shlwapi.dll" "cdecl" fn wnsprintfW(pszdest : windows_core::PWSTR, cchdest : i32, pszfmt : windows_core::PCWSTR) -> i32); - wnsprintfW(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.into_param().abi()) + wnsprintfW(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.param().abi()) } #[inline] pub unsafe fn wvnsprintfA(pszdest: &mut [u8], pszfmt: P0, arglist: *const i8) -> i32 where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), 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: P0, arglist: *const i8) -> i32 where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), arglist) + wvnsprintfW(core::mem::transmute(pszdest.as_ptr()), pszdest.len().try_into().unwrap(), pszfmt.param().abi(), arglist) } #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(CIE4ConnectionPoint, CIE4ConnectionPoint_Vtbl, 0); @@ -5652,10 +5652,10 @@ impl CIE4ConnectionPoint { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Advise(&self, punksink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), punksink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), punksink.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { @@ -5673,9 +5673,9 @@ impl CIE4ConnectionPoint { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn DoInvokePIDLIE4(&self, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoInvokePIDLIE4)(windows_core::Interface::as_raw(self), dispid, pidl, fcancancel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DoInvokePIDLIE4)(windows_core::Interface::as_raw(self), dispid, pidl, fcancancel.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5801,38 +5801,38 @@ impl Folder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseName(&self, bname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ParseName)(windows_core::Interface::as_raw(self), bname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ParseName)(windows_core::Interface::as_raw(self), bname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NewFolder(&self, bname: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NewFolder)(windows_core::Interface::as_raw(self), bname.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NewFolder)(windows_core::Interface::as_raw(self), bname.param().abi(), voptions.param().abi()).ok() } pub unsafe fn MoveHere(&self, vitem: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveHere)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveHere)(windows_core::Interface::as_raw(self), vitem.param().abi(), voptions.param().abi()).ok() } pub unsafe fn CopyHere(&self, vitem: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyHere)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyHere)(windows_core::Interface::as_raw(self), vitem.param().abi(), voptions.param().abi()).ok() } pub unsafe fn GetDetailsOf(&self, vitem: P0, icolumn: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), icolumn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetDetailsOf)(windows_core::Interface::as_raw(self), vitem.param().abi(), icolumn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -5898,38 +5898,38 @@ impl Folder2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseName(&self, bname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ParseName)(windows_core::Interface::as_raw(self), bname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ParseName)(windows_core::Interface::as_raw(self), bname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NewFolder(&self, bname: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NewFolder)(windows_core::Interface::as_raw(self), bname.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.NewFolder)(windows_core::Interface::as_raw(self), bname.param().abi(), voptions.param().abi()).ok() } pub unsafe fn MoveHere(&self, vitem: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MoveHere)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.MoveHere)(windows_core::Interface::as_raw(self), vitem.param().abi(), voptions.param().abi()).ok() } pub unsafe fn CopyHere(&self, vitem: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyHere)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyHere)(windows_core::Interface::as_raw(self), vitem.param().abi(), voptions.param().abi()).ok() } pub unsafe fn GetDetailsOf(&self, vitem: P0, icolumn: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetDetailsOf)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), icolumn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetDetailsOf)(windows_core::Interface::as_raw(self), vitem.param().abi(), icolumn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Self_(&self) -> windows_core::Result { @@ -5997,38 +5997,38 @@ impl Folder3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ParseName(&self, bname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ParseName)(windows_core::Interface::as_raw(self), bname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ParseName)(windows_core::Interface::as_raw(self), bname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn NewFolder(&self, bname: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.NewFolder)(windows_core::Interface::as_raw(self), bname.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.NewFolder)(windows_core::Interface::as_raw(self), bname.param().abi(), voptions.param().abi()).ok() } pub unsafe fn MoveHere(&self, vitem: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MoveHere)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.MoveHere)(windows_core::Interface::as_raw(self), vitem.param().abi(), voptions.param().abi()).ok() } pub unsafe fn CopyHere(&self, vitem: P0, voptions: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CopyHere)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CopyHere)(windows_core::Interface::as_raw(self), vitem.param().abi(), voptions.param().abi()).ok() } pub unsafe fn GetDetailsOf(&self, vitem: P0, icolumn: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetDetailsOf)(windows_core::Interface::as_raw(self), vitem.into_param().abi(), icolumn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetDetailsOf)(windows_core::Interface::as_raw(self), vitem.param().abi(), icolumn, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Self_(&self) -> windows_core::Result { @@ -6055,9 +6055,9 @@ impl Folder3 { } pub unsafe fn SetShowWebViewBarricade(&self, bshowwebviewbarricade: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShowWebViewBarricade)(windows_core::Interface::as_raw(self), bshowwebviewbarricade.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetShowWebViewBarricade)(windows_core::Interface::as_raw(self), bshowwebviewbarricade.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6089,9 +6089,9 @@ impl FolderItem { } pub unsafe fn SetName(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6145,9 +6145,9 @@ impl FolderItem { } pub unsafe fn InvokeVerb(&self, vverb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeVerb)(windows_core::Interface::as_raw(self), vverb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeVerb)(windows_core::Interface::as_raw(self), vverb.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6209,9 +6209,9 @@ impl FolderItem2 { } pub unsafe fn SetName(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetName)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Path(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6265,23 +6265,23 @@ impl FolderItem2 { } pub unsafe fn InvokeVerb(&self, vverb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InvokeVerb)(windows_core::Interface::as_raw(self), vverb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InvokeVerb)(windows_core::Interface::as_raw(self), vverb.param().abi()).ok() } pub unsafe fn InvokeVerbEx(&self, vverb: P0, vargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeVerbEx)(windows_core::Interface::as_raw(self), vverb.into_param().abi(), vargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeVerbEx)(windows_core::Interface::as_raw(self), vverb.param().abi(), vargs.param().abi()).ok() } pub unsafe fn ExtendedProperty(&self, bstrpropname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExtendedProperty)(windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExtendedProperty)(windows_core::Interface::as_raw(self), bstrpropname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -6353,10 +6353,10 @@ impl FolderItemVerbs { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6405,10 +6405,10 @@ impl FolderItems { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6457,10 +6457,10 @@ impl FolderItems2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6468,10 +6468,10 @@ impl FolderItems2 { } pub unsafe fn InvokeVerbEx(&self, vverb: P0, vargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeVerbEx)(windows_core::Interface::as_raw(self), vverb.into_param().abi(), vargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeVerbEx)(windows_core::Interface::as_raw(self), vverb.param().abi(), vargs.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6503,10 +6503,10 @@ impl FolderItems3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6514,16 +6514,16 @@ impl FolderItems3 { } pub unsafe fn InvokeVerbEx(&self, vverb: P0, vargs: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InvokeVerbEx)(windows_core::Interface::as_raw(self), vverb.into_param().abi(), vargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InvokeVerbEx)(windows_core::Interface::as_raw(self), vverb.param().abi(), vargs.param().abi()).ok() } pub unsafe fn Filter(&self, grfflags: i32, bstrfilespec: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Filter)(windows_core::Interface::as_raw(self), grfflags, bstrfilespec.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Filter)(windows_core::Interface::as_raw(self), grfflags, bstrfilespec.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Verbs(&self) -> windows_core::Result { @@ -6546,9 +6546,9 @@ windows_core::imp::interface_hierarchy!(IACList, windows_core::IUnknown); impl IACList { pub unsafe fn Expand(&self, pszexpand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), pszexpand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), pszexpand.param().abi()).ok() } } #[repr(C)] @@ -6561,9 +6561,9 @@ windows_core::imp::interface_hierarchy!(IACList2, windows_core::IUnknown, IACLis impl IACList2 { pub unsafe fn Expand(&self, pszexpand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Expand)(windows_core::Interface::as_raw(self), pszexpand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Expand)(windows_core::Interface::as_raw(self), pszexpand.param().abi()).ok() } pub unsafe fn SetOptions(&self, dwflag: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), dwflag).ok() @@ -6585,24 +6585,24 @@ impl IAccessibilityDockingService { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetAvailableSize(&self, hmonitor: P0, pcxfixed: *mut u32, pcymax: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetAvailableSize)(windows_core::Interface::as_raw(self), hmonitor.into_param().abi(), pcxfixed, pcymax).ok() + (windows_core::Interface::vtable(self).GetAvailableSize)(windows_core::Interface::as_raw(self), hmonitor.param().abi(), pcxfixed, pcymax).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn DockWindow(&self, hwnd: P0, hmonitor: P1, cyrequested: u32, pcallback: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).DockWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hmonitor.into_param().abi(), cyrequested, pcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DockWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), hmonitor.param().abi(), cyrequested, pcallback.param().abi()).ok() } pub unsafe fn UndockWindow(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UndockWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UndockWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } } #[repr(C)] @@ -6635,9 +6635,9 @@ windows_core::imp::interface_hierarchy!(IAccessibleObject, windows_core::IUnknow impl IAccessibleObject { pub unsafe fn SetAccessibleName(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccessibleName)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccessibleName)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } } #[repr(C)] @@ -6656,10 +6656,10 @@ impl IActionProgress { } pub unsafe fn UpdateText(&self, sptext: SPTEXT, psztext: P0, fmaycompact: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateText)(windows_core::Interface::as_raw(self), sptext, psztext.into_param().abi(), fmaycompact.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateText)(windows_core::Interface::as_raw(self), sptext, psztext.param().abi(), fmaycompact.param().abi()).ok() } pub unsafe fn QueryCancel(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6687,10 +6687,10 @@ windows_core::imp::interface_hierarchy!(IActionProgressDialog, windows_core::IUn impl IActionProgressDialog { pub unsafe fn Initialize(&self, flags: u32, psztitle: P0, pszcancel: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), flags, psztitle.into_param().abi(), pszcancel.into_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() @@ -6773,10 +6773,10 @@ impl IAppVisibility { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetAppVisibilityOnMonitor(&self, hmonitor: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAppVisibilityOnMonitor)(windows_core::Interface::as_raw(self), hmonitor.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetAppVisibilityOnMonitor)(windows_core::Interface::as_raw(self), hmonitor.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsLauncherVisible(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -6784,10 +6784,10 @@ impl IAppVisibility { } pub unsafe fn Advise(&self, pcallback: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcallback.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -6810,15 +6810,15 @@ impl IAppVisibilityEvents { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AppVisibilityOnMonitorChanged(&self, hmonitor: P0, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AppVisibilityOnMonitorChanged)(windows_core::Interface::as_raw(self), hmonitor.into_param().abi(), previousmode, currentmode).ok() + (windows_core::Interface::vtable(self).AppVisibilityOnMonitorChanged)(windows_core::Interface::as_raw(self), hmonitor.param().abi(), previousmode, currentmode).ok() } pub unsafe fn LauncherVisibilityChange(&self, currentvisiblestate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LauncherVisibilityChange)(windows_core::Interface::as_raw(self), currentvisiblestate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LauncherVisibilityChange)(windows_core::Interface::as_raw(self), currentvisiblestate.param().abi()).ok() } } #[repr(C)] @@ -6835,28 +6835,28 @@ windows_core::imp::interface_hierarchy!(IApplicationActivationManager, windows_c impl IApplicationActivationManager { pub unsafe fn ActivateApplication(&self, appusermodelid: P0, arguments: P1, options: ACTIVATEOPTIONS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateApplication)(windows_core::Interface::as_raw(self), appusermodelid.into_param().abi(), arguments.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateForFile)(windows_core::Interface::as_raw(self), appusermodelid.into_param().abi(), itemarray.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ActivateForFile)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), itemarray.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ActivateForProtocol(&self, appusermodelid: P0, itemarray: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ActivateForProtocol)(windows_core::Interface::as_raw(self), appusermodelid.into_param().abi(), itemarray.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ActivateForProtocol)(windows_core::Interface::as_raw(self), appusermodelid.param().abi(), itemarray.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -6871,38 +6871,38 @@ windows_core::imp::interface_hierarchy!(IApplicationAssociationRegistration, win impl IApplicationAssociationRegistration { pub unsafe fn QueryCurrentDefault(&self, pszquery: P0, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryCurrentDefault)(windows_core::Interface::as_raw(self), pszquery.into_param().abi(), atquerytype, 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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryAppIsDefault)(windows_core::Interface::as_raw(self), pszquery.into_param().abi(), atquerytype, alquerylevel, pszappregistryname.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryAppIsDefaultAll)(windows_core::Interface::as_raw(self), alquerylevel, pszappregistryname.into_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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppAsDefault)(windows_core::Interface::as_raw(self), pszappregistryname.into_param().abi(), pszset.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppAsDefaultAll)(windows_core::Interface::as_raw(self), pszappregistryname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppAsDefaultAll)(windows_core::Interface::as_raw(self), pszappregistryname.param().abi()).ok() } pub unsafe fn ClearUserAssociations(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearUserAssociations)(windows_core::Interface::as_raw(self)).ok() @@ -6923,9 +6923,9 @@ windows_core::imp::interface_hierarchy!(IApplicationAssociationRegistrationUI, w impl IApplicationAssociationRegistrationUI { pub unsafe fn LaunchAdvancedAssociationUI(&self, pszappregistryname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchAdvancedAssociationUI)(windows_core::Interface::as_raw(self), pszappregistryname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LaunchAdvancedAssociationUI)(windows_core::Interface::as_raw(self), pszappregistryname.param().abi()).ok() } } #[repr(C)] @@ -7011,9 +7011,9 @@ impl IApplicationDesignModeSettings2 { } pub unsafe fn SetIsOnLockScreen(&self, isonlockscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIsOnLockScreen)(windows_core::Interface::as_raw(self), isonlockscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIsOnLockScreen)(windows_core::Interface::as_raw(self), isonlockscreen.param().abi()).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), viewminwidth).ok() @@ -7042,15 +7042,15 @@ windows_core::imp::interface_hierarchy!(IApplicationDestinations, windows_core:: impl IApplicationDestinations { pub unsafe fn SetAppID(&self, pszappid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.param().abi()).ok() } pub unsafe fn RemoveDestination(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveDestination)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveDestination)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn RemoveAllDestinations(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllDestinations)(windows_core::Interface::as_raw(self)).ok() @@ -7068,9 +7068,9 @@ windows_core::imp::interface_hierarchy!(IApplicationDocumentLists, windows_core: impl IApplicationDocumentLists { pub unsafe fn SetAppID(&self, pszappid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.param().abi()).ok() } pub unsafe fn GetList(&self, listtype: APPDOCLISTTYPE, citemsdesired: u32) -> windows_core::Result where @@ -7105,24 +7105,24 @@ impl IAssocHandler { } pub unsafe fn MakeDefault(&self, pszdescription: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MakeDefault)(windows_core::Interface::as_raw(self), pszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MakeDefault)(windows_core::Interface::as_raw(self), pszdescription.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke(&self, pdo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pdo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), pdo.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateInvoker(&self, pdo: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInvoker)(windows_core::Interface::as_raw(self), pdo.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateInvoker)(windows_core::Interface::as_raw(self), pdo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -7163,62 +7163,62 @@ windows_core::imp::interface_hierarchy!(IAttachmentExecute, windows_core::IUnkno impl IAttachmentExecute { pub unsafe fn SetClientTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClientTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (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), guid).ok() } pub unsafe fn SetLocalPath(&self, pszlocalpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocalPath)(windows_core::Interface::as_raw(self), pszlocalpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocalPath)(windows_core::Interface::as_raw(self), pszlocalpath.param().abi()).ok() } pub unsafe fn SetFileName(&self, pszfilename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), pszfilename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), pszfilename.param().abi()).ok() } pub unsafe fn SetSource(&self, pszsource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), pszsource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSource)(windows_core::Interface::as_raw(self), pszsource.param().abi()).ok() } pub unsafe fn SetReferrer(&self, pszreferrer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReferrer)(windows_core::Interface::as_raw(self), pszreferrer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReferrer)(windows_core::Interface::as_raw(self), pszreferrer.param().abi()).ok() } pub unsafe fn CheckPolicy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CheckPolicy)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Prompt(&self, hwnd: P0, prompt: ATTACHMENT_PROMPT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Prompt)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), prompt, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Prompt)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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() } pub unsafe fn Execute(&self, hwnd: P0, pszverb: P1, phprocess: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pszverb.into_param().abi(), core::mem::transmute(phprocess.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pszverb.param().abi(), core::mem::transmute(phprocess.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SaveWithUI(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveWithUI)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveWithUI)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn ClearClientState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ClearClientState)(windows_core::Interface::as_raw(self)).ok() @@ -7245,18 +7245,18 @@ windows_core::imp::interface_hierarchy!(IAutoComplete, windows_core::IUnknown); impl IAutoComplete { pub unsafe fn Init(&self, hwndedit: P0, punkacl: P1, pwszregkeypath: P2, pwszquickcomplete: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), hwndedit.into_param().abi(), punkacl.into_param().abi(), pwszregkeypath.into_param().abi(), pwszquickcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), hwndedit.param().abi(), punkacl.param().abi(), pwszregkeypath.param().abi(), pwszquickcomplete.param().abi()).ok() } pub unsafe fn Enable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -7270,18 +7270,18 @@ windows_core::imp::interface_hierarchy!(IAutoComplete2, windows_core::IUnknown, impl IAutoComplete2 { pub unsafe fn Init(&self, hwndedit: P0, punkacl: P1, pwszregkeypath: P2, pwszquickcomplete: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Init)(windows_core::Interface::as_raw(self), hwndedit.into_param().abi(), punkacl.into_param().abi(), pwszregkeypath.into_param().abi(), pwszquickcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Init)(windows_core::Interface::as_raw(self), hwndedit.param().abi(), punkacl.param().abi(), pwszregkeypath.param().abi(), pwszquickcomplete.param().abi()).ok() } pub unsafe fn Enable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Enable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Enable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn SetOptions(&self, dwflag: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetOptions)(windows_core::Interface::as_raw(self), dwflag).ok() @@ -7318,18 +7318,18 @@ windows_core::imp::interface_hierarchy!(IBandHost, windows_core::IUnknown); impl IBandHost { pub unsafe fn CreateBand(&self, rclsidband: *const windows_core::GUID, favailable: P0, fvisible: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateBand)(windows_core::Interface::as_raw(self), rclsidband, favailable.into_param().abi(), fvisible.into_param().abi(), &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.param().abi(), fvisible.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetBandAvailability(&self, rclsidband: *const windows_core::GUID, favailable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBandAvailability)(windows_core::Interface::as_raw(self), rclsidband, favailable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBandAvailability)(windows_core::Interface::as_raw(self), rclsidband, favailable.param().abi()).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), rclsidband).ok() @@ -7347,9 +7347,9 @@ windows_core::imp::interface_hierarchy!(IBandSite, windows_core::IUnknown); impl IBandSite { pub unsafe fn AddBand(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddBand)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddBand)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn EnumBands(&self, uband: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7419,9 +7419,9 @@ impl IBanneredBar { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetBitmap(&self, hbitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBitmap)(windows_core::Interface::as_raw(self), hbitmap.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBitmap)(windows_core::Interface::as_raw(self), hbitmap.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmap(&self) -> windows_core::Result { @@ -7467,17 +7467,17 @@ impl IBrowserService { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetTitle(&self, psv: P0, pszname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), pszname.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetTitle(&self, psv: P0, pszname: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> windows_core::Result { @@ -7490,9 +7490,9 @@ impl IBrowserService { } pub unsafe fn ShowControlWindow(&self, id: u32, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.param().abi()).ok() } pub unsafe fn IsControlWindowShown(&self, id: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7505,16 +7505,16 @@ impl IBrowserService { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayName(&self, uicp: u32, pwszpath: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IEParseDisplayName)(windows_core::Interface::as_raw(self), uicp, pwszpath.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayParseError)(windows_core::Interface::as_raw(self), hres, pwszpath.into_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<()> { @@ -7530,10 +7530,10 @@ impl IBrowserService { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect(&self, psv: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).NotifyRedirect)(windows_core::Interface::as_raw(self), psv.into_param().abi(), 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() @@ -7574,17 +7574,17 @@ impl IBrowserService { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetHistoryObject(&self, pole: P0, fislocalanchor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHistoryObject)(windows_core::Interface::as_raw(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHistoryObject)(windows_core::Interface::as_raw(self), pole.param().abi(), fislocalanchor.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer(&self, pole: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CacheOLEServer)(windows_core::Interface::as_raw(self), pole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CacheOLEServer)(windows_core::Interface::as_raw(self), pole.param().abi()).ok() } pub unsafe fn GetSetCodePage(&self, pvarin: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7593,11 +7593,11 @@ impl IBrowserService { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnHttpEquiv(&self, psv: P0, fdone: P1, pvarargin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.into_param().abi(), fdone.into_param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.param().abi(), fdone.param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> windows_core::Result { @@ -7606,9 +7606,9 @@ impl IBrowserService { } pub unsafe fn RegisterWindow(&self, fforceregister: P0, swc: ShellWindowTypeConstants) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.into_param().abi(), swc).ok() + (windows_core::Interface::vtable(self).RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.param().abi(), swc).ok() } } #[repr(C)] @@ -7701,17 +7701,17 @@ impl IBrowserService2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetTitle(&self, psv: P0, pszname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), pszname.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetTitle(&self, psv: P0, pszname: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.GetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> windows_core::Result { @@ -7724,9 +7724,9 @@ impl IBrowserService2 { } pub unsafe fn ShowControlWindow(&self, id: u32, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.param().abi()).ok() } pub unsafe fn IsControlWindowShown(&self, id: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7739,16 +7739,16 @@ impl IBrowserService2 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayName(&self, uicp: u32, pwszpath: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IEParseDisplayName)(windows_core::Interface::as_raw(self), uicp, pwszpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DisplayParseError)(windows_core::Interface::as_raw(self), hres, pwszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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<()> { @@ -7764,10 +7764,10 @@ impl IBrowserService2 { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect(&self, psv: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.NotifyRedirect)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pidl, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.UpdateWindowList)(windows_core::Interface::as_raw(self)).ok() @@ -7808,17 +7808,17 @@ impl IBrowserService2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetHistoryObject(&self, pole: P0, fislocalanchor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHistoryObject)(windows_core::Interface::as_raw(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHistoryObject)(windows_core::Interface::as_raw(self), pole.param().abi(), fislocalanchor.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer(&self, pole: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CacheOLEServer)(windows_core::Interface::as_raw(self), pole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CacheOLEServer)(windows_core::Interface::as_raw(self), pole.param().abi()).ok() } pub unsafe fn GetSetCodePage(&self, pvarin: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -7827,11 +7827,11 @@ impl IBrowserService2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnHttpEquiv(&self, psv: P0, fdone: P1, pvarargin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.into_param().abi(), fdone.into_param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.param().abi(), fdone.param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> windows_core::Result { @@ -7840,17 +7840,17 @@ impl IBrowserService2 { } pub unsafe fn RegisterWindow(&self, fforceregister: P0, swc: ShellWindowTypeConstants) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.into_param().abi(), swc).ok() + (windows_core::Interface::vtable(self).base__.RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.param().abi(), swc).ok() } pub unsafe fn WndProcBS(&self, hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).WndProcBS)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).WndProcBS)(windows_core::Interface::as_raw(self), hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } pub unsafe fn SetAsDefFolderSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetAsDefFolderSettings)(windows_core::Interface::as_raw(self)).ok() @@ -7861,9 +7861,9 @@ impl IBrowserService2 { } pub unsafe fn OnSize(&self, wparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSize)(windows_core::Interface::as_raw(self), wparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSize)(windows_core::Interface::as_raw(self), wparam.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnCreate(&self, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> windows_core::Result<()> { @@ -7871,10 +7871,10 @@ impl IBrowserService2 { } pub unsafe fn OnCommand(&self, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCommand)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).OnCommand)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi()) } pub unsafe fn OnDestroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OnDestroy)(windows_core::Interface::as_raw(self)).ok() @@ -7888,9 +7888,9 @@ impl IBrowserService2 { } pub unsafe fn OnFrameWindowActivateBS(&self, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFrameWindowActivateBS)(windows_core::Interface::as_raw(self), factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFrameWindowActivateBS)(windows_core::Interface::as_raw(self), factive.param().abi()).ok() } pub unsafe fn ReleaseShellView(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseShellView)(windows_core::Interface::as_raw(self)).ok() @@ -7901,11 +7901,11 @@ impl IBrowserService2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CreateViewWindow(&self, psvnew: P0, psvold: P1, prcview: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateViewWindow)(windows_core::Interface::as_raw(self), psvnew.into_param().abi(), psvold.into_param().abi(), 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), riid, ppv).ok() @@ -7925,9 +7925,9 @@ impl IBrowserService2 { } pub unsafe fn InitializeTravelLog(&self, ptl: P0, dw: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeTravelLog)(windows_core::Interface::as_raw(self), ptl.into_param().abi(), 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() @@ -7937,9 +7937,9 @@ impl IBrowserService2 { } pub unsafe fn AllowViewResize(&self, f: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AllowViewResize)(windows_core::Interface::as_raw(self), f.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AllowViewResize)(windows_core::Interface::as_raw(self), f.param().abi()).ok() } pub unsafe fn SetActivateState(&self, u: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetActivateState)(windows_core::Interface::as_raw(self), u).ok() @@ -7955,10 +7955,10 @@ impl IBrowserService2 { } pub unsafe fn _Initialize(&self, hwnd: P0, pauto: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self)._Initialize)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pauto.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._Initialize)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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() @@ -7971,9 +7971,9 @@ impl IBrowserService2 { } pub unsafe fn _PauseOrResumeView(&self, fpaused: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._PauseOrResumeView)(windows_core::Interface::as_raw(self), fpaused.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._PauseOrResumeView)(windows_core::Interface::as_raw(self), fpaused.param().abi()).ok() } pub unsafe fn _DisableModeless(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self)._DisableModeless)(windows_core::Interface::as_raw(self)).ok() @@ -7985,28 +7985,28 @@ impl IBrowserService2 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._TryShell2Rename)(windows_core::Interface::as_raw(self), psv.into_param().abi(), 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() } pub unsafe fn _ExecChildren(&self, punkbar: P0, fbroadcast: P1, pguidcmdgroup: Option<*const windows_core::GUID>, ncmdid: u32, ncmdexecopt: u32, pvarargin: Option<*const windows_core::VARIANT>, pvarargout: Option<*mut windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self)._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.into_param().abi(), fbroadcast.into_param().abi(), core::mem::transmute(pguidcmdgroup.unwrap_or(std::ptr::null())), ncmdid, ncmdexecopt, core::mem::transmute(pvarargin.unwrap_or(std::ptr::null())), core::mem::transmute(pvarargout.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self)._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.param().abi(), fbroadcast.param().abi(), core::mem::transmute(pguidcmdgroup.unwrap_or(std::ptr::null())), ncmdid, ncmdexecopt, core::mem::transmute(pvarargin.unwrap_or(std::ptr::null())), core::mem::transmute(pvarargout.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn _SendChildren(&self, hwndbar: P0, fbroadcast: P1, umsg: u32, wparam: P2, lparam: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self)._SendChildren)(windows_core::Interface::as_raw(self), hwndbar.into_param().abi(), fbroadcast.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._SendChildren)(windows_core::Interface::as_raw(self), hwndbar.param().abi(), fbroadcast.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFolderSetData)(windows_core::Interface::as_raw(self), pfsd).ok() @@ -8016,9 +8016,9 @@ impl IBrowserService2 { } pub unsafe fn v_ShowHideChildWindows(&self, fchildonly: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).v_ShowHideChildWindows)(windows_core::Interface::as_raw(self), fchildonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).v_ShowHideChildWindows)(windows_core::Interface::as_raw(self), fchildonly.param().abi()).ok() } pub unsafe fn _get_itbLastFocus(&self) -> u32 { (windows_core::Interface::vtable(self)._get_itbLastFocus)(windows_core::Interface::as_raw(self)) @@ -8044,30 +8044,30 @@ impl IBrowserService2 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn _GetEffectiveClientArea(&self, lprectborder: *mut super::super::Foundation::RECT, hmon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), lprectborder, hmon.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), lprectborder, hmon.param().abi()).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: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).v_GetViewStream)(windows_core::Interface::as_raw(self), pidl, grfmode, pwszname.into_param().abi()) + (windows_core::Interface::vtable(self).v_GetViewStream)(windows_core::Interface::as_raw(self), pidl, grfmode, pwszname.param().abi()) } pub unsafe fn ForwardViewMsg(&self, umsg: u32, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ForwardViewMsg)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).ForwardViewMsg)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorMenu(&self, hacc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAcceleratorMenu)(windows_core::Interface::as_raw(self), hacc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAcceleratorMenu)(windows_core::Interface::as_raw(self), hacc.param().abi()).ok() } pub unsafe fn _GetToolbarCount(&self) -> i32 { (windows_core::Interface::vtable(self)._GetToolbarCount)(windows_core::Interface::as_raw(self)) @@ -8079,22 +8079,22 @@ impl IBrowserService2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn _SaveToolbars(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._SaveToolbars)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._SaveToolbars)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _LoadToolbars(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._LoadToolbars)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._LoadToolbars)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn _CloseAndReleaseToolbars(&self, fclose: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._CloseAndReleaseToolbars)(windows_core::Interface::as_raw(self), fclose.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._CloseAndReleaseToolbars)(windows_core::Interface::as_raw(self), fclose.param().abi()).ok() } #[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<()> { @@ -8102,22 +8102,22 @@ impl IBrowserService2 { } pub unsafe fn _ResizeNextBorderHelper(&self, itb: u32, busehmonitor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), itb, busehmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), itb, busehmonitor.param().abi()).ok() } pub unsafe fn _FindTBar(&self, punksrc: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._FindTBar)(windows_core::Interface::as_raw(self), punksrc.into_param().abi()) + (windows_core::Interface::vtable(self)._FindTBar)(windows_core::Interface::as_raw(self), punksrc.param().abi()) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn _SetFocus(&self, ptbi: *const TOOLBARITEM, hwnd: P0, lpmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._SetFocus)(windows_core::Interface::as_raw(self), ptbi, hwnd.into_param().abi(), lpmsg).ok() + (windows_core::Interface::vtable(self)._SetFocus)(windows_core::Interface::as_raw(self), ptbi, hwnd.param().abi(), lpmsg).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { @@ -8125,10 +8125,10 @@ impl IBrowserService2 { } pub unsafe fn _GetBorderDWHelper(&self, punksrc: P0, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self)._GetBorderDWHelper)(windows_core::Interface::as_raw(self), punksrc.into_param().abi(), lprectborder, busehmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self)._GetBorderDWHelper)(windows_core::Interface::as_raw(self), punksrc.param().abi(), lprectborder, busehmonitor.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { @@ -8263,17 +8263,17 @@ impl IBrowserService3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetTitle(&self, psv: P0, pszname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), pszname.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetTitle(&self, psv: P0, pszname: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.GetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.GetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> windows_core::Result { @@ -8286,9 +8286,9 @@ impl IBrowserService3 { } pub unsafe fn ShowControlWindow(&self, id: u32, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.param().abi()).ok() } pub unsafe fn IsControlWindowShown(&self, id: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8301,16 +8301,16 @@ impl IBrowserService3 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayName(&self, uicp: u32, pwszpath: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IEParseDisplayName)(windows_core::Interface::as_raw(self), uicp, pwszpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DisplayParseError)(windows_core::Interface::as_raw(self), hres, pwszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.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<()> { @@ -8326,10 +8326,10 @@ impl IBrowserService3 { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect(&self, psv: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.NotifyRedirect)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pidl, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.UpdateWindowList)(windows_core::Interface::as_raw(self)).ok() @@ -8370,17 +8370,17 @@ impl IBrowserService3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetHistoryObject(&self, pole: P0, fislocalanchor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetHistoryObject)(windows_core::Interface::as_raw(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetHistoryObject)(windows_core::Interface::as_raw(self), pole.param().abi(), fislocalanchor.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer(&self, pole: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CacheOLEServer)(windows_core::Interface::as_raw(self), pole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CacheOLEServer)(windows_core::Interface::as_raw(self), pole.param().abi()).ok() } pub unsafe fn GetSetCodePage(&self, pvarin: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8389,11 +8389,11 @@ impl IBrowserService3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnHttpEquiv(&self, psv: P0, fdone: P1, pvarargin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.into_param().abi(), fdone.into_param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.param().abi(), fdone.param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> windows_core::Result { @@ -8402,17 +8402,17 @@ impl IBrowserService3 { } pub unsafe fn RegisterWindow(&self, fforceregister: P0, swc: ShellWindowTypeConstants) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.into_param().abi(), swc).ok() + (windows_core::Interface::vtable(self).base__.base__.RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.param().abi(), swc).ok() } pub unsafe fn WndProcBS(&self, hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.WndProcBS)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).base__.WndProcBS)(windows_core::Interface::as_raw(self), hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } pub unsafe fn SetAsDefFolderSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetAsDefFolderSettings)(windows_core::Interface::as_raw(self)).ok() @@ -8423,9 +8423,9 @@ impl IBrowserService3 { } pub unsafe fn OnSize(&self, wparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnSize)(windows_core::Interface::as_raw(self), wparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnSize)(windows_core::Interface::as_raw(self), wparam.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnCreate(&self, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> windows_core::Result<()> { @@ -8433,10 +8433,10 @@ impl IBrowserService3 { } pub unsafe fn OnCommand(&self, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnCommand)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).base__.OnCommand)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi()) } pub unsafe fn OnDestroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.OnDestroy)(windows_core::Interface::as_raw(self)).ok() @@ -8450,9 +8450,9 @@ impl IBrowserService3 { } pub unsafe fn OnFrameWindowActivateBS(&self, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnFrameWindowActivateBS)(windows_core::Interface::as_raw(self), factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnFrameWindowActivateBS)(windows_core::Interface::as_raw(self), factive.param().abi()).ok() } pub unsafe fn ReleaseShellView(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ReleaseShellView)(windows_core::Interface::as_raw(self)).ok() @@ -8463,11 +8463,11 @@ impl IBrowserService3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CreateViewWindow(&self, psvnew: P0, psvold: P1, prcview: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateViewWindow)(windows_core::Interface::as_raw(self), psvnew.into_param().abi(), psvold.into_param().abi(), prcview, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.CreateBrowserPropSheetExt)(windows_core::Interface::as_raw(self), riid, ppv).ok() @@ -8487,9 +8487,9 @@ impl IBrowserService3 { } pub unsafe fn InitializeTravelLog(&self, ptl: P0, dw: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeTravelLog)(windows_core::Interface::as_raw(self), ptl.into_param().abi(), dw).ok() + (windows_core::Interface::vtable(self).base__.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).base__.SetTopBrowser)(windows_core::Interface::as_raw(self)).ok() @@ -8499,9 +8499,9 @@ impl IBrowserService3 { } pub unsafe fn AllowViewResize(&self, f: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AllowViewResize)(windows_core::Interface::as_raw(self), f.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AllowViewResize)(windows_core::Interface::as_raw(self), f.param().abi()).ok() } pub unsafe fn SetActivateState(&self, u: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetActivateState)(windows_core::Interface::as_raw(self), u).ok() @@ -8517,10 +8517,10 @@ impl IBrowserService3 { } pub unsafe fn _Initialize(&self, hwnd: P0, pauto: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._Initialize)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pauto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._Initialize)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pauto.param().abi()).ok() } pub unsafe fn _CancelPendingNavigationAsync(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__._CancelPendingNavigationAsync)(windows_core::Interface::as_raw(self)).ok() @@ -8533,9 +8533,9 @@ impl IBrowserService3 { } pub unsafe fn _PauseOrResumeView(&self, fpaused: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._PauseOrResumeView)(windows_core::Interface::as_raw(self), fpaused.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._PauseOrResumeView)(windows_core::Interface::as_raw(self), fpaused.param().abi()).ok() } pub unsafe fn _DisableModeless(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__._DisableModeless)(windows_core::Interface::as_raw(self)).ok() @@ -8547,28 +8547,28 @@ impl IBrowserService3 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._TryShell2Rename)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pidlnew).ok() + (windows_core::Interface::vtable(self).base__._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).base__._SwitchActivationNow)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn _ExecChildren(&self, punkbar: P0, fbroadcast: P1, pguidcmdgroup: Option<*const windows_core::GUID>, ncmdid: u32, ncmdexecopt: u32, pvarargin: Option<*const windows_core::VARIANT>, pvarargout: Option<*mut windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.into_param().abi(), fbroadcast.into_param().abi(), core::mem::transmute(pguidcmdgroup.unwrap_or(std::ptr::null())), ncmdid, ncmdexecopt, core::mem::transmute(pvarargin.unwrap_or(std::ptr::null())), core::mem::transmute(pvarargout.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.param().abi(), fbroadcast.param().abi(), core::mem::transmute(pguidcmdgroup.unwrap_or(std::ptr::null())), ncmdid, ncmdexecopt, core::mem::transmute(pvarargin.unwrap_or(std::ptr::null())), core::mem::transmute(pvarargout.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn _SendChildren(&self, hwndbar: P0, fbroadcast: P1, umsg: u32, wparam: P2, lparam: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._SendChildren)(windows_core::Interface::as_raw(self), hwndbar.into_param().abi(), fbroadcast.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._SendChildren)(windows_core::Interface::as_raw(self), hwndbar.param().abi(), fbroadcast.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetFolderSetData)(windows_core::Interface::as_raw(self), pfsd).ok() @@ -8578,9 +8578,9 @@ impl IBrowserService3 { } pub unsafe fn v_ShowHideChildWindows(&self, fchildonly: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.v_ShowHideChildWindows)(windows_core::Interface::as_raw(self), fchildonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.v_ShowHideChildWindows)(windows_core::Interface::as_raw(self), fchildonly.param().abi()).ok() } pub unsafe fn _get_itbLastFocus(&self) -> u32 { (windows_core::Interface::vtable(self).base__._get_itbLastFocus)(windows_core::Interface::as_raw(self)) @@ -8606,30 +8606,30 @@ impl IBrowserService3 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn _GetEffectiveClientArea(&self, lprectborder: *mut super::super::Foundation::RECT, hmon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), lprectborder, hmon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), lprectborder, hmon.param().abi()).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: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.v_GetViewStream)(windows_core::Interface::as_raw(self), pidl, grfmode, pwszname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.v_GetViewStream)(windows_core::Interface::as_raw(self), pidl, grfmode, pwszname.param().abi()) } pub unsafe fn ForwardViewMsg(&self, umsg: u32, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ForwardViewMsg)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).base__.ForwardViewMsg)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorMenu(&self, hacc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetAcceleratorMenu)(windows_core::Interface::as_raw(self), hacc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetAcceleratorMenu)(windows_core::Interface::as_raw(self), hacc.param().abi()).ok() } pub unsafe fn _GetToolbarCount(&self) -> i32 { (windows_core::Interface::vtable(self).base__._GetToolbarCount)(windows_core::Interface::as_raw(self)) @@ -8641,22 +8641,22 @@ impl IBrowserService3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn _SaveToolbars(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._SaveToolbars)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._SaveToolbars)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _LoadToolbars(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._LoadToolbars)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._LoadToolbars)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn _CloseAndReleaseToolbars(&self, fclose: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._CloseAndReleaseToolbars)(windows_core::Interface::as_raw(self), fclose.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._CloseAndReleaseToolbars)(windows_core::Interface::as_raw(self), fclose.param().abi()).ok() } #[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<()> { @@ -8664,22 +8664,22 @@ impl IBrowserService3 { } pub unsafe fn _ResizeNextBorderHelper(&self, itb: u32, busehmonitor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), itb, busehmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), itb, busehmonitor.param().abi()).ok() } pub unsafe fn _FindTBar(&self, punksrc: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._FindTBar)(windows_core::Interface::as_raw(self), punksrc.into_param().abi()) + (windows_core::Interface::vtable(self).base__._FindTBar)(windows_core::Interface::as_raw(self), punksrc.param().abi()) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn _SetFocus(&self, ptbi: *const TOOLBARITEM, hwnd: P0, lpmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._SetFocus)(windows_core::Interface::as_raw(self), ptbi, hwnd.into_param().abi(), lpmsg).ok() + (windows_core::Interface::vtable(self).base__._SetFocus)(windows_core::Interface::as_raw(self), ptbi, hwnd.param().abi(), lpmsg).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { @@ -8687,10 +8687,10 @@ impl IBrowserService3 { } pub unsafe fn _GetBorderDWHelper(&self, punksrc: P0, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._GetBorderDWHelper)(windows_core::Interface::as_raw(self), punksrc.into_param().abi(), lprectborder, busehmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__._GetBorderDWHelper)(windows_core::Interface::as_raw(self), punksrc.param().abi(), lprectborder, busehmonitor.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { @@ -8698,17 +8698,17 @@ impl IBrowserService3 { } pub unsafe fn _PositionViewWindow(&self, hwnd: P0, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self)._PositionViewWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self)._PositionViewWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), prc).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayNameEx(&self, uicp: u32, pwszpath: P0, dwflags: u32) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IEParseDisplayNameEx)(windows_core::Interface::as_raw(self), uicp, pwszpath.into_param().abi(), 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)] @@ -8731,17 +8731,17 @@ impl IBrowserService4 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetTitle(&self, psv: P0, pszname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), pszname.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetTitle(&self, psv: P0, pszname: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.GetTitle)(windows_core::Interface::as_raw(self), psv.into_param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.GetTitle)(windows_core::Interface::as_raw(self), psv.param().abi(), core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> windows_core::Result { @@ -8754,9 +8754,9 @@ impl IBrowserService4 { } pub unsafe fn ShowControlWindow(&self, id: u32, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.param().abi()).ok() } pub unsafe fn IsControlWindowShown(&self, id: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8769,16 +8769,16 @@ impl IBrowserService4 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayName(&self, uicp: u32, pwszpath: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IEParseDisplayName)(windows_core::Interface::as_raw(self), uicp, pwszpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DisplayParseError)(windows_core::Interface::as_raw(self), hres, pwszpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.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<()> { @@ -8794,10 +8794,10 @@ impl IBrowserService4 { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect(&self, psv: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.NotifyRedirect)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pidl, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.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).base__.base__.base__.UpdateWindowList)(windows_core::Interface::as_raw(self)).ok() @@ -8838,17 +8838,17 @@ impl IBrowserService4 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetHistoryObject(&self, pole: P0, fislocalanchor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetHistoryObject)(windows_core::Interface::as_raw(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetHistoryObject)(windows_core::Interface::as_raw(self), pole.param().abi(), fislocalanchor.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer(&self, pole: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CacheOLEServer)(windows_core::Interface::as_raw(self), pole.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CacheOLEServer)(windows_core::Interface::as_raw(self), pole.param().abi()).ok() } pub unsafe fn GetSetCodePage(&self, pvarin: *const windows_core::VARIANT) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -8857,11 +8857,11 @@ impl IBrowserService4 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnHttpEquiv(&self, psv: P0, fdone: P1, pvarargin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.into_param().abi(), fdone.into_param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.OnHttpEquiv)(windows_core::Interface::as_raw(self), psv.param().abi(), fdone.param().abi(), core::mem::transmute(pvarargin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> windows_core::Result { @@ -8870,17 +8870,17 @@ impl IBrowserService4 { } pub unsafe fn RegisterWindow(&self, fforceregister: P0, swc: ShellWindowTypeConstants) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.into_param().abi(), swc).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RegisterWindow)(windows_core::Interface::as_raw(self), fforceregister.param().abi(), swc).ok() } pub unsafe fn WndProcBS(&self, hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.WndProcBS)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.WndProcBS)(windows_core::Interface::as_raw(self), hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } pub unsafe fn SetAsDefFolderSettings(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SetAsDefFolderSettings)(windows_core::Interface::as_raw(self)).ok() @@ -8891,9 +8891,9 @@ impl IBrowserService4 { } pub unsafe fn OnSize(&self, wparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnSize)(windows_core::Interface::as_raw(self), wparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.OnSize)(windows_core::Interface::as_raw(self), wparam.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn OnCreate(&self, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> windows_core::Result<()> { @@ -8901,10 +8901,10 @@ impl IBrowserService4 { } pub unsafe fn OnCommand(&self, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnCommand)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.OnCommand)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi()) } pub unsafe fn OnDestroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.OnDestroy)(windows_core::Interface::as_raw(self)).ok() @@ -8918,9 +8918,9 @@ impl IBrowserService4 { } pub unsafe fn OnFrameWindowActivateBS(&self, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnFrameWindowActivateBS)(windows_core::Interface::as_raw(self), factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.OnFrameWindowActivateBS)(windows_core::Interface::as_raw(self), factive.param().abi()).ok() } pub unsafe fn ReleaseShellView(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ReleaseShellView)(windows_core::Interface::as_raw(self)).ok() @@ -8931,11 +8931,11 @@ impl IBrowserService4 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CreateViewWindow(&self, psvnew: P0, psvold: P1, prcview: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateViewWindow)(windows_core::Interface::as_raw(self), psvnew.into_param().abi(), psvold.into_param().abi(), prcview, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.CreateBrowserPropSheetExt)(windows_core::Interface::as_raw(self), riid, ppv).ok() @@ -8955,9 +8955,9 @@ impl IBrowserService4 { } pub unsafe fn InitializeTravelLog(&self, ptl: P0, dw: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.InitializeTravelLog)(windows_core::Interface::as_raw(self), ptl.into_param().abi(), dw).ok() + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.SetTopBrowser)(windows_core::Interface::as_raw(self)).ok() @@ -8967,9 +8967,9 @@ impl IBrowserService4 { } pub unsafe fn AllowViewResize(&self, f: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AllowViewResize)(windows_core::Interface::as_raw(self), f.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AllowViewResize)(windows_core::Interface::as_raw(self), f.param().abi()).ok() } pub unsafe fn SetActivateState(&self, u: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SetActivateState)(windows_core::Interface::as_raw(self), u).ok() @@ -8985,10 +8985,10 @@ impl IBrowserService4 { } pub unsafe fn _Initialize(&self, hwnd: P0, pauto: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._Initialize)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pauto.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._Initialize)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pauto.param().abi()).ok() } pub unsafe fn _CancelPendingNavigationAsync(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__._CancelPendingNavigationAsync)(windows_core::Interface::as_raw(self)).ok() @@ -9001,9 +9001,9 @@ impl IBrowserService4 { } pub unsafe fn _PauseOrResumeView(&self, fpaused: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._PauseOrResumeView)(windows_core::Interface::as_raw(self), fpaused.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._PauseOrResumeView)(windows_core::Interface::as_raw(self), fpaused.param().abi()).ok() } pub unsafe fn _DisableModeless(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__._DisableModeless)(windows_core::Interface::as_raw(self)).ok() @@ -9015,28 +9015,28 @@ impl IBrowserService4 { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._TryShell2Rename)(windows_core::Interface::as_raw(self), psv.into_param().abi(), pidlnew).ok() + (windows_core::Interface::vtable(self).base__.base__._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).base__.base__._SwitchActivationNow)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn _ExecChildren(&self, punkbar: P0, fbroadcast: P1, pguidcmdgroup: Option<*const windows_core::GUID>, ncmdid: u32, ncmdexecopt: u32, pvarargin: Option<*const windows_core::VARIANT>, pvarargout: Option<*mut windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.into_param().abi(), fbroadcast.into_param().abi(), core::mem::transmute(pguidcmdgroup.unwrap_or(std::ptr::null())), ncmdid, ncmdexecopt, core::mem::transmute(pvarargin.unwrap_or(std::ptr::null())), core::mem::transmute(pvarargout.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.base__._ExecChildren)(windows_core::Interface::as_raw(self), punkbar.param().abi(), fbroadcast.param().abi(), core::mem::transmute(pguidcmdgroup.unwrap_or(std::ptr::null())), ncmdid, ncmdexecopt, core::mem::transmute(pvarargin.unwrap_or(std::ptr::null())), core::mem::transmute(pvarargout.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn _SendChildren(&self, hwndbar: P0, fbroadcast: P1, umsg: u32, wparam: P2, lparam: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._SendChildren)(windows_core::Interface::as_raw(self), hwndbar.into_param().abi(), fbroadcast.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._SendChildren)(windows_core::Interface::as_raw(self), hwndbar.param().abi(), fbroadcast.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.GetFolderSetData)(windows_core::Interface::as_raw(self), pfsd).ok() @@ -9046,9 +9046,9 @@ impl IBrowserService4 { } pub unsafe fn v_ShowHideChildWindows(&self, fchildonly: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.v_ShowHideChildWindows)(windows_core::Interface::as_raw(self), fchildonly.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.v_ShowHideChildWindows)(windows_core::Interface::as_raw(self), fchildonly.param().abi()).ok() } pub unsafe fn _get_itbLastFocus(&self) -> u32 { (windows_core::Interface::vtable(self).base__.base__._get_itbLastFocus)(windows_core::Interface::as_raw(self)) @@ -9074,30 +9074,30 @@ impl IBrowserService4 { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn _GetEffectiveClientArea(&self, lprectborder: *mut super::super::Foundation::RECT, hmon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), lprectborder, hmon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._GetEffectiveClientArea)(windows_core::Interface::as_raw(self), lprectborder, hmon.param().abi()).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: P0) -> Option where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.v_GetViewStream)(windows_core::Interface::as_raw(self), pidl, grfmode, pwszname.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.v_GetViewStream)(windows_core::Interface::as_raw(self), pidl, grfmode, pwszname.param().abi()) } pub unsafe fn ForwardViewMsg(&self, umsg: u32, wparam: P0, lparam: P1) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ForwardViewMsg)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__.ForwardViewMsg)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi()) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorMenu(&self, hacc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetAcceleratorMenu)(windows_core::Interface::as_raw(self), hacc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetAcceleratorMenu)(windows_core::Interface::as_raw(self), hacc.param().abi()).ok() } pub unsafe fn _GetToolbarCount(&self) -> i32 { (windows_core::Interface::vtable(self).base__.base__._GetToolbarCount)(windows_core::Interface::as_raw(self)) @@ -9109,22 +9109,22 @@ impl IBrowserService4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn _SaveToolbars(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._SaveToolbars)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._SaveToolbars)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _LoadToolbars(&self, pstm: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._LoadToolbars)(windows_core::Interface::as_raw(self), pstm.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._LoadToolbars)(windows_core::Interface::as_raw(self), pstm.param().abi()).ok() } pub unsafe fn _CloseAndReleaseToolbars(&self, fclose: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._CloseAndReleaseToolbars)(windows_core::Interface::as_raw(self), fclose.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._CloseAndReleaseToolbars)(windows_core::Interface::as_raw(self), fclose.param().abi()).ok() } #[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<()> { @@ -9132,22 +9132,22 @@ impl IBrowserService4 { } pub unsafe fn _ResizeNextBorderHelper(&self, itb: u32, busehmonitor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), itb, busehmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._ResizeNextBorderHelper)(windows_core::Interface::as_raw(self), itb, busehmonitor.param().abi()).ok() } pub unsafe fn _FindTBar(&self, punksrc: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._FindTBar)(windows_core::Interface::as_raw(self), punksrc.into_param().abi()) + (windows_core::Interface::vtable(self).base__.base__._FindTBar)(windows_core::Interface::as_raw(self), punksrc.param().abi()) } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn _SetFocus(&self, ptbi: *const TOOLBARITEM, hwnd: P0, lpmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._SetFocus)(windows_core::Interface::as_raw(self), ptbi, hwnd.into_param().abi(), lpmsg).ok() + (windows_core::Interface::vtable(self).base__.base__._SetFocus)(windows_core::Interface::as_raw(self), ptbi, hwnd.param().abi(), lpmsg).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> windows_core::Result<()> { @@ -9155,10 +9155,10 @@ impl IBrowserService4 { } pub unsafe fn _GetBorderDWHelper(&self, punksrc: P0, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__._GetBorderDWHelper)(windows_core::Interface::as_raw(self), punksrc.into_param().abi(), lprectborder, busehmonitor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__._GetBorderDWHelper)(windows_core::Interface::as_raw(self), punksrc.param().abi(), lprectborder, busehmonitor.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { @@ -9166,23 +9166,23 @@ impl IBrowserService4 { } pub unsafe fn _PositionViewWindow(&self, hwnd: P0, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__._PositionViewWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).base__._PositionViewWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), prc).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IEParseDisplayNameEx(&self, uicp: u32, pwszpath: P0, dwflags: u32) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IEParseDisplayNameEx)(windows_core::Interface::as_raw(self), uicp, pwszpath.into_param().abi(), dwflags, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IEParseDisplayNameEx)(windows_core::Interface::as_raw(self), uicp, pwszpath.param().abi(), dwflags, &mut result__).map(|| result__) } pub unsafe fn ActivateView(&self, fpendingview: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateView)(windows_core::Interface::as_raw(self), fpendingview.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ActivateView)(windows_core::Interface::as_raw(self), fpendingview.param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveViewState)(windows_core::Interface::as_raw(self)).ok() @@ -9206,9 +9206,9 @@ impl ICDBurn { } pub unsafe fn Burn(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Burn)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Burn)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn HasRecordableDrive(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9397,23 +9397,23 @@ impl ICommDlgBrowser { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnDefaultCommand(&self, ppshv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDefaultCommand)(windows_core::Interface::as_raw(self), ppshv.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDefaultCommand)(windows_core::Interface::as_raw(self), ppshv.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnStateChange(&self, ppshv: P0, uchange: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStateChange)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IncludeObject)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), pidl).ok() + (windows_core::Interface::vtable(self).IncludeObject)(windows_core::Interface::as_raw(self), ppshv.param().abi(), pidl).ok() } } #[repr(C)] @@ -9438,37 +9438,37 @@ impl ICommDlgBrowser2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnDefaultCommand(&self, ppshv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnDefaultCommand)(windows_core::Interface::as_raw(self), ppshv.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnDefaultCommand)(windows_core::Interface::as_raw(self), ppshv.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnStateChange(&self, ppshv: P0, uchange: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnStateChange)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), uchange).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.IncludeObject)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), pidl).ok() + (windows_core::Interface::vtable(self).base__.IncludeObject)(windows_core::Interface::as_raw(self), ppshv.param().abi(), pidl).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn Notify(&self, ppshv: P0, dwnotifytype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Notify)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetDefaultMenuText)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetDefaultMenuText)(windows_core::Interface::as_raw(self), ppshv.param().abi(), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()).ok() } pub unsafe fn GetViewFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9494,37 +9494,37 @@ impl ICommDlgBrowser3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnDefaultCommand(&self, ppshv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnDefaultCommand)(windows_core::Interface::as_raw(self), ppshv.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.OnDefaultCommand)(windows_core::Interface::as_raw(self), ppshv.param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnStateChange(&self, ppshv: P0, uchange: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.OnStateChange)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), uchange).ok() + (windows_core::Interface::vtable(self).base__.base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.IncludeObject)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), pidl).ok() + (windows_core::Interface::vtable(self).base__.base__.IncludeObject)(windows_core::Interface::as_raw(self), ppshv.param().abi(), pidl).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn Notify(&self, ppshv: P0, dwnotifytype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Notify)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), dwnotifytype).ok() + (windows_core::Interface::vtable(self).base__.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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.GetDefaultMenuText)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).base__.GetDefaultMenuText)(windows_core::Interface::as_raw(self), ppshv.param().abi(), core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()).ok() } pub unsafe fn GetViewFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -9533,9 +9533,9 @@ impl ICommDlgBrowser3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnColumnClicked(&self, ppshv: P0, icolumn: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnColumnClicked)(windows_core::Interface::as_raw(self), ppshv.into_param().abi(), 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() @@ -9543,9 +9543,9 @@ impl ICommDlgBrowser3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnPreViewCreated(&self, ppshv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPreViewCreated)(windows_core::Interface::as_raw(self), ppshv.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPreViewCreated)(windows_core::Interface::as_raw(self), ppshv.param().abi()).ok() } } #[repr(C)] @@ -9578,9 +9578,9 @@ windows_core::imp::interface_hierarchy!(IConnectableCredentialProviderCredential impl IConnectableCredentialProviderCredential { pub unsafe fn Advise(&self, pcpce: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pcpce.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pcpce.param().abi()).ok() } pub unsafe fn UnAdvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UnAdvise)(windows_core::Interface::as_raw(self)).ok() @@ -9620,15 +9620,15 @@ impl IConnectableCredentialProviderCredential { } pub unsafe fn SetStringValue(&self, dwfieldid: u32, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), dwfieldid, psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), dwfieldid, psz.param().abi()).ok() } pub unsafe fn SetCheckboxValue(&self, dwfieldid: u32, bchecked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, bchecked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, bchecked.param().abi()).ok() } pub unsafe fn SetComboBoxSelectedValue(&self, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetComboBoxSelectedValue)(windows_core::Interface::as_raw(self), dwfieldid, dwselecteditem).ok() @@ -9641,16 +9641,16 @@ impl IConnectableCredentialProviderCredential { } pub unsafe fn ReportResult(&self, ntsstatus: P0, ntssubstatus: P1, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReportResult)(windows_core::Interface::as_raw(self), ntsstatus.into_param().abi(), ntssubstatus.into_param().abi(), ppszoptionalstatustext, pcpsioptionalstatusicon).ok() + (windows_core::Interface::vtable(self).base__.ReportResult)(windows_core::Interface::as_raw(self), ntsstatus.param().abi(), ntssubstatus.param().abi(), ppszoptionalstatustext, pcpsioptionalstatusicon).ok() } pub unsafe fn Connect(&self, pqcws: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pqcws.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), pqcws.param().abi()).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -9667,10 +9667,10 @@ windows_core::imp::interface_hierarchy!(IContactManagerInterop, windows_core::IU impl IContactManagerInterop { pub unsafe fn ShowContactCardForWindow(&self, appwindow: P0, contact: P1, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowContactCardForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), contact.into_param().abi(), selection, preferredplacement).ok() + (windows_core::Interface::vtable(self).ShowContactCardForWindow)(windows_core::Interface::as_raw(self), appwindow.param().abi(), contact.param().abi(), selection, preferredplacement).ok() } } #[repr(C)] @@ -9684,9 +9684,9 @@ impl IContextMenu { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn QueryContextMenu(&self, hmenu: P0, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryContextMenu)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), indexmenu, idcmdfirst, idcmdlast, uflags).ok() + (windows_core::Interface::vtable(self).QueryContextMenu)(windows_core::Interface::as_raw(self), hmenu.param().abi(), indexmenu, idcmdfirst, idcmdlast, uflags).ok() } pub unsafe fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).InvokeCommand)(windows_core::Interface::as_raw(self), pici).ok() @@ -9711,9 +9711,9 @@ impl IContextMenu2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn QueryContextMenu(&self, hmenu: P0, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryContextMenu)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), indexmenu, idcmdfirst, idcmdlast, uflags).ok() + (windows_core::Interface::vtable(self).base__.QueryContextMenu)(windows_core::Interface::as_raw(self), hmenu.param().abi(), indexmenu, idcmdfirst, idcmdlast, uflags).ok() } pub unsafe fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.InvokeCommand)(windows_core::Interface::as_raw(self), pici).ok() @@ -9723,10 +9723,10 @@ impl IContextMenu2 { } pub unsafe fn HandleMenuMsg(&self, umsg: u32, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleMenuMsg)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandleMenuMsg)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -9740,9 +9740,9 @@ impl IContextMenu3 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn QueryContextMenu(&self, hmenu: P0, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.QueryContextMenu)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), indexmenu, idcmdfirst, idcmdlast, uflags).ok() + (windows_core::Interface::vtable(self).base__.base__.QueryContextMenu)(windows_core::Interface::as_raw(self), hmenu.param().abi(), indexmenu, idcmdfirst, idcmdlast, uflags).ok() } pub unsafe fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.InvokeCommand)(windows_core::Interface::as_raw(self), pici).ok() @@ -9752,17 +9752,17 @@ impl IContextMenu3 { } pub unsafe fn HandleMenuMsg(&self, umsg: u32, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.HandleMenuMsg)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.HandleMenuMsg)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn HandleMenuMsg2(&self, umsg: u32, wparam: P0, lparam: P1, plresult: Option<*mut super::super::Foundation::LRESULT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleMenuMsg2)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi(), core::mem::transmute(plresult.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).HandleMenuMsg2)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi(), core::mem::transmute(plresult.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -9776,13 +9776,13 @@ impl IContextMenuCB { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CallBack(&self, psf: P0, hwndowner: P1, pdtobj: P2, umsg: u32, wparam: P3, lparam: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).CallBack)(windows_core::Interface::as_raw(self), psf.into_param().abi(), hwndowner.into_param().abi(), pdtobj.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CallBack)(windows_core::Interface::as_raw(self), psf.param().abi(), hwndowner.param().abi(), pdtobj.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -9798,9 +9798,9 @@ windows_core::imp::interface_hierarchy!(IContextMenuSite, windows_core::IUnknown impl IContextMenuSite { pub unsafe fn DoContextMenuPopup(&self, punkcontextmenu: P0, fflags: u32, pt: super::super::Foundation::POINT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DoContextMenuPopup)(windows_core::Interface::as_raw(self), punkcontextmenu.into_param().abi(), 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)] @@ -9813,11 +9813,11 @@ windows_core::imp::interface_hierarchy!(ICopyHookA, windows_core::IUnknown); impl ICopyHookA { pub unsafe fn CopyCallback(&self, hwnd: P0, wfunc: u32, wflags: u32, pszsrcfile: P1, dwsrcattribs: u32, pszdestfile: P2, dwdestattribs: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), wfunc, wflags, pszsrcfile.into_param().abi(), dwsrcattribs, pszdestfile.into_param().abi(), dwdestattribs) + (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), hwnd.param().abi(), wfunc, wflags, pszsrcfile.param().abi(), dwsrcattribs, pszdestfile.param().abi(), dwdestattribs) } } #[repr(C)] @@ -9830,11 +9830,11 @@ windows_core::imp::interface_hierarchy!(ICopyHookW, windows_core::IUnknown); impl ICopyHookW { pub unsafe fn CopyCallback(&self, hwnd: P0, wfunc: u32, wflags: u32, pszsrcfile: P1, dwsrcattribs: u32, pszdestfile: P2, dwdestattribs: u32) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), wfunc, wflags, pszsrcfile.into_param().abi(), dwsrcattribs, pszdestfile.into_param().abi(), dwdestattribs) + (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), hwnd.param().abi(), wfunc, wflags, pszsrcfile.param().abi(), dwsrcattribs, pszdestfile.param().abi(), dwdestattribs) } } #[repr(C)] @@ -9863,16 +9863,16 @@ impl ICreateProcessInputs { } pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn SetEnvironmentVariable(&self, pszname: P0, pszvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnvironmentVariable)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), pszvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnvironmentVariable)(windows_core::Interface::as_raw(self), pszname.param().abi(), pszvalue.param().abi()).ok() } } #[repr(C)] @@ -9891,9 +9891,9 @@ windows_core::imp::interface_hierarchy!(ICreatingProcess, windows_core::IUnknown impl ICreatingProcess { pub unsafe fn OnCreating(&self, pcpi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreating)(windows_core::Interface::as_raw(self), pcpi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCreating)(windows_core::Interface::as_raw(self), pcpi.param().abi()).ok() } } #[repr(C)] @@ -9912,9 +9912,9 @@ impl ICredentialProvider { } pub unsafe fn Advise(&self, pcpe: P0, upadvisecontext: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcpe.into_param().abi(), 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() @@ -9952,9 +9952,9 @@ windows_core::imp::interface_hierarchy!(ICredentialProviderCredential, windows_c impl ICredentialProviderCredential { pub unsafe fn Advise(&self, pcpce: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcpce.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pcpce.param().abi()).ok() } pub unsafe fn UnAdvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self)).ok() @@ -9994,15 +9994,15 @@ impl ICredentialProviderCredential { } pub unsafe fn SetStringValue(&self, dwfieldid: u32, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringValue)(windows_core::Interface::as_raw(self), dwfieldid, psz.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, bchecked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, bchecked.param().abi()).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), dwfieldid, dwselecteditem).ok() @@ -10015,10 +10015,10 @@ impl ICredentialProviderCredential { } pub unsafe fn ReportResult(&self, ntsstatus: P0, ntssubstatus: P1, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), ntsstatus.into_param().abi(), ntssubstatus.into_param().abi(), ppszoptionalstatustext, pcpsioptionalstatusicon).ok() + (windows_core::Interface::vtable(self).ReportResult)(windows_core::Interface::as_raw(self), ntsstatus.param().abi(), ntssubstatus.param().abi(), ppszoptionalstatustext, pcpsioptionalstatusicon).ok() } } #[repr(C)] @@ -10050,9 +10050,9 @@ windows_core::imp::interface_hierarchy!(ICredentialProviderCredential2, windows_ impl ICredentialProviderCredential2 { pub unsafe fn Advise(&self, pcpce: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pcpce.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pcpce.param().abi()).ok() } pub unsafe fn UnAdvise(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UnAdvise)(windows_core::Interface::as_raw(self)).ok() @@ -10092,15 +10092,15 @@ impl ICredentialProviderCredential2 { } pub unsafe fn SetStringValue(&self, dwfieldid: u32, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), dwfieldid, psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStringValue)(windows_core::Interface::as_raw(self), dwfieldid, psz.param().abi()).ok() } pub unsafe fn SetCheckboxValue(&self, dwfieldid: u32, bchecked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, bchecked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, bchecked.param().abi()).ok() } pub unsafe fn SetComboBoxSelectedValue(&self, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SetComboBoxSelectedValue)(windows_core::Interface::as_raw(self), dwfieldid, dwselecteditem).ok() @@ -10113,10 +10113,10 @@ impl ICredentialProviderCredential2 { } pub unsafe fn ReportResult(&self, ntsstatus: P0, ntssubstatus: P1, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ReportResult)(windows_core::Interface::as_raw(self), ntsstatus.into_param().abi(), ntssubstatus.into_param().abi(), ppszoptionalstatustext, pcpsioptionalstatusicon).ok() + (windows_core::Interface::vtable(self).base__.ReportResult)(windows_core::Interface::as_raw(self), ntsstatus.param().abi(), ntssubstatus.param().abi(), ppszoptionalstatustext, pcpsioptionalstatusicon).ok() } pub unsafe fn GetUserSid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10133,63 +10133,63 @@ windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialEvents, win impl ICredentialProviderCredentialEvents { pub unsafe fn SetFieldState(&self, pcpc: P0, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldState)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldInteractiveState)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldString)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, psz.into_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: P1, pszlabel: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldCheckbox)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, bchecked.into_param().abi(), pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFieldCheckbox)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, bchecked.param().abi(), pszlabel.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFieldBitmap(&self, pcpc: P0, dwfieldid: u32, hbmp: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldBitmap)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, hbmp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFieldBitmap)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, hbmp.param().abi()).ok() } pub unsafe fn SetFieldComboBoxSelectedItem(&self, pcpc: P0, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldComboBoxSelectedItem)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, pszitem.into_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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldSubmitButton)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, 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__ = std::mem::zeroed(); @@ -10218,63 +10218,63 @@ windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialEvents2, wi impl ICredentialProviderCredentialEvents2 { pub unsafe fn SetFieldState(&self, pcpc: P0, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFieldState)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, cpfs).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFieldInteractiveState)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, cpfis).ok() + (windows_core::Interface::vtable(self).base__.SetFieldInteractiveState)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, cpfis).ok() } pub unsafe fn SetFieldString(&self, pcpc: P0, dwfieldid: u32, psz: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFieldString)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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: P1, pszlabel: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFieldCheckbox)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, bchecked.into_param().abi(), pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFieldCheckbox)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, bchecked.param().abi(), pszlabel.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFieldBitmap(&self, pcpc: P0, dwfieldid: u32, hbmp: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFieldBitmap)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, hbmp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFieldBitmap)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, hbmp.param().abi()).ok() } pub unsafe fn SetFieldComboBoxSelectedItem(&self, pcpc: P0, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFieldComboBoxSelectedItem)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, dwselecteditem).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, dwitem).ok() + (windows_core::Interface::vtable(self).base__.DeleteFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, dwitem).ok() } pub unsafe fn AppendFieldComboBoxItem(&self, pcpc: P0, dwfieldid: u32, pszitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AppendFieldComboBoxItem)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, pszitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFieldSubmitButton)(windows_core::Interface::as_raw(self), pcpc.into_param().abi(), dwfieldid, dwadjacentto).ok() + (windows_core::Interface::vtable(self).base__.SetFieldSubmitButton)(windows_core::Interface::as_raw(self), pcpc.param().abi(), dwfieldid, dwadjacentto).ok() } pub unsafe fn OnCreatingWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10288,9 +10288,9 @@ impl ICredentialProviderCredentialEvents2 { } pub unsafe fn SetFieldOptions(&self, credential: P0, fieldid: u32, options: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFieldOptions)(windows_core::Interface::as_raw(self), credential.into_param().abi(), fieldid, options).ok() + (windows_core::Interface::vtable(self).SetFieldOptions)(windows_core::Interface::as_raw(self), credential.param().abi(), fieldid, options).ok() } } #[repr(C)] @@ -10346,9 +10346,9 @@ windows_core::imp::interface_hierarchy!(ICredentialProviderSetUserArray, windows impl ICredentialProviderSetUserArray { pub unsafe fn SetUserArray(&self, users: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUserArray)(windows_core::Interface::as_raw(self), users.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUserArray)(windows_core::Interface::as_raw(self), users.param().abi()).ok() } } #[repr(C)] @@ -10444,9 +10444,9 @@ impl ICurrentWorkingDirectory { } pub unsafe fn SetDirectory(&self, pwzpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectory)(windows_core::Interface::as_raw(self), pwzpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectory)(windows_core::Interface::as_raw(self), pwzpath.param().abi()).ok() } } #[repr(C)] @@ -10460,9 +10460,9 @@ windows_core::imp::interface_hierarchy!(ICustomDestinationList, windows_core::IU impl ICustomDestinationList { pub unsafe fn SetAppID(&self, pszappid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.param().abi()).ok() } pub unsafe fn BeginList(&self, pcminslots: *mut u32) -> windows_core::Result where @@ -10474,10 +10474,10 @@ impl ICustomDestinationList { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AppendCategory(&self, pszcategory: P0, poa: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendCategory)(windows_core::Interface::as_raw(self), pszcategory.into_param().abi(), poa.into_param().abi()).ok() + (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), category).ok() @@ -10485,9 +10485,9 @@ impl ICustomDestinationList { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddUserTasks(&self, poa: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUserTasks)(windows_core::Interface::as_raw(self), poa.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddUserTasks)(windows_core::Interface::as_raw(self), poa.param().abi()).ok() } pub unsafe fn CommitList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CommitList)(windows_core::Interface::as_raw(self)).ok() @@ -10501,9 +10501,9 @@ impl ICustomDestinationList { } pub unsafe fn DeleteList(&self, pszappid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteList)(windows_core::Interface::as_raw(self), pszappid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteList)(windows_core::Interface::as_raw(self), pszappid.param().abi()).ok() } pub unsafe fn AbortList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AbortList)(windows_core::Interface::as_raw(self)).ok() @@ -10533,9 +10533,9 @@ windows_core::imp::interface_hierarchy!(IDataObjectAsyncCapability, windows_core impl IDataObjectAsyncCapability { pub unsafe fn SetAsyncMode(&self, fdoopasync: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAsyncMode)(windows_core::Interface::as_raw(self), fdoopasync.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAsyncMode)(windows_core::Interface::as_raw(self), fdoopasync.param().abi()).ok() } pub unsafe fn GetAsyncMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10544,9 +10544,9 @@ impl IDataObjectAsyncCapability { #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartOperation(&self, pbcreserved: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartOperation)(windows_core::Interface::as_raw(self), pbcreserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartOperation)(windows_core::Interface::as_raw(self), pbcreserved.param().abi()).ok() } pub unsafe fn InOperation(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10555,9 +10555,9 @@ impl IDataObjectAsyncCapability { #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOperation(&self, hresult: windows_core::HRESULT, pbcreserved: P0, dweffects: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndOperation)(windows_core::Interface::as_raw(self), hresult, pbcreserved.into_param().abi(), dweffects).ok() + (windows_core::Interface::vtable(self).EndOperation)(windows_core::Interface::as_raw(self), hresult, pbcreserved.param().abi(), dweffects).ok() } } #[repr(C)] @@ -10586,9 +10586,9 @@ impl IDataObjectProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataObject(&self, dataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDataObject)(windows_core::Interface::as_raw(self), dataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDataObject)(windows_core::Interface::as_raw(self), dataobject.param().abi()).ok() } } #[repr(C)] @@ -10608,17 +10608,17 @@ windows_core::imp::interface_hierarchy!(IDataTransferManagerInterop, windows_cor impl IDataTransferManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi(), &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.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowShareUIForWindow(&self, appwindow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowShareUIForWindow)(windows_core::Interface::as_raw(self), appwindow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowShareUIForWindow)(windows_core::Interface::as_raw(self), appwindow.param().abi()).ok() } } #[repr(C)] @@ -10636,33 +10636,33 @@ impl IDefaultExtractIconInit { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn SetKey(&self, hkey: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), hkey.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetKey)(windows_core::Interface::as_raw(self), hkey.param().abi()).ok() } pub unsafe fn SetNormalIcon(&self, pszfile: P0, iicon: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNormalIcon)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOpenIcon)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShortcutIcon)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultIcon)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), iicon).ok() + (windows_core::Interface::vtable(self).SetDefaultIcon)(windows_core::Interface::as_raw(self), pszfile.param().abi(), iicon).ok() } } #[repr(C)] @@ -10684,12 +10684,12 @@ impl IDefaultFolderMenuInitialize { #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn Initialize(&self, hwnd: P0, pcmcb: P1, pidlfolder: Option<*const Common::ITEMIDLIST>, psf: P2, apidl: &[*const Common::ITEMIDLIST], punkassociation: P3, ckeys: u32, akeys: Option<*const super::super::System::Registry::HKEY>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pcmcb.into_param().abi(), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), psf.into_param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), punkassociation.into_param().abi(), ckeys, core::mem::transmute(akeys.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pcmcb.param().abi(), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), psf.param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), punkassociation.param().abi(), ckeys, core::mem::transmute(akeys.unwrap_or(std::ptr::null()))).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), dfmrvalues).ok() @@ -10719,9 +10719,9 @@ impl IDelegateFolder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetItemAlloc(&self, pmalloc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItemAlloc)(windows_core::Interface::as_raw(self), pmalloc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetItemAlloc)(windows_core::Interface::as_raw(self), pmalloc.param().abi()).ok() } } #[repr(C)] @@ -10763,25 +10763,25 @@ impl IDeskBand { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn ShowDW(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShowDW)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ShowDW)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn CloseDW(&self, dwreserved: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CloseDW)(windows_core::Interface::as_raw(self), dwreserved).ok() } pub unsafe fn ResizeBorderDW(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: P0, freserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ResizeBorderDW)(windows_core::Interface::as_raw(self), prcborder, punktoolbarsite.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ResizeBorderDW)(windows_core::Interface::as_raw(self), prcborder, punktoolbarsite.param().abi(), freserved.param().abi()).ok() } 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), dwbandid, dwviewmode, pdbi).ok() @@ -10807,25 +10807,25 @@ impl IDeskBand2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn ShowDW(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ShowDW)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ShowDW)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn CloseDW(&self, dwreserved: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.CloseDW)(windows_core::Interface::as_raw(self), dwreserved).ok() } pub unsafe fn ResizeBorderDW(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: P0, freserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ResizeBorderDW)(windows_core::Interface::as_raw(self), prcborder, punktoolbarsite.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ResizeBorderDW)(windows_core::Interface::as_raw(self), prcborder, punktoolbarsite.param().abi(), freserved.param().abi()).ok() } pub unsafe fn GetBandInfo(&self, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.GetBandInfo)(windows_core::Interface::as_raw(self), dwbandid, dwviewmode, pdbi).ok() @@ -10836,9 +10836,9 @@ impl IDeskBand2 { } pub unsafe fn SetCompositionState(&self, fcompositionenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCompositionState)(windows_core::Interface::as_raw(self), fcompositionenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCompositionState)(windows_core::Interface::as_raw(self), fcompositionenabled.param().abi()).ok() } pub unsafe fn GetCompositionState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10880,15 +10880,15 @@ impl IDeskBar { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn SetClient(&self, punkclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClient)(windows_core::Interface::as_raw(self), punkclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClient)(windows_core::Interface::as_raw(self), punkclient.param().abi()).ok() } pub unsafe fn GetClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10920,15 +10920,15 @@ impl IDeskBarClient { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn SetDeskBarSite(&self, punksite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDeskBarSite)(windows_core::Interface::as_raw(self), punksite.into_param().abi()).ok() + (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), dwmode).ok() @@ -10955,9 +10955,9 @@ windows_core::imp::interface_hierarchy!(IDesktopGadget, windows_core::IUnknown); impl IDesktopGadget { pub unsafe fn RunGadget(&self, gadgetpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunGadget)(windows_core::Interface::as_raw(self), gadgetpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RunGadget)(windows_core::Interface::as_raw(self), gadgetpath.param().abi()).ok() } } #[repr(C)] @@ -10970,17 +10970,17 @@ windows_core::imp::interface_hierarchy!(IDesktopWallpaper, windows_core::IUnknow impl IDesktopWallpaper { pub unsafe fn SetWallpaper(&self, monitorid: P0, wallpaper: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWallpaper)(windows_core::Interface::as_raw(self), monitorid.into_param().abi(), wallpaper.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWallpaper)(windows_core::Interface::as_raw(self), monitorid.param().abi(), wallpaper.param().abi()).ok() } pub unsafe fn GetWallpaper(&self, monitorid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWallpaper)(windows_core::Interface::as_raw(self), monitorid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWallpaper)(windows_core::Interface::as_raw(self), monitorid.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetMonitorDevicePathAt(&self, monitorindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -10992,16 +10992,16 @@ impl IDesktopWallpaper { } pub unsafe fn GetMonitorRECT(&self, monitorid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMonitorRECT)(windows_core::Interface::as_raw(self), monitorid.into_param().abi(), &mut result__).map(|| result__) + (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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), color.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), color.param().abi()).ok() } pub unsafe fn GetBackgroundColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11016,9 +11016,9 @@ impl IDesktopWallpaper { } pub unsafe fn SetSlideshow(&self, items: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSlideshow)(windows_core::Interface::as_raw(self), items.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSlideshow)(windows_core::Interface::as_raw(self), items.param().abi()).ok() } pub unsafe fn GetSlideshow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -11032,9 +11032,9 @@ impl IDesktopWallpaper { } pub unsafe fn AdvanceSlideshow(&self, monitorid: P0, direction: DESKTOP_SLIDESHOW_DIRECTION) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdvanceSlideshow)(windows_core::Interface::as_raw(self), monitorid.into_param().abi(), 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__ = std::mem::zeroed(); @@ -11042,9 +11042,9 @@ impl IDesktopWallpaper { } pub unsafe fn Enable(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } } #[repr(C)] @@ -11127,25 +11127,25 @@ impl IDockingWindow { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn ShowDW(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowDW)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowDW)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn CloseDW(&self, dwreserved: u32) -> windows_core::Result<()> { (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: P0, freserved: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResizeBorderDW)(windows_core::Interface::as_raw(self), prcborder, punktoolbarsite.into_param().abi(), freserved.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ResizeBorderDW)(windows_core::Interface::as_raw(self), prcborder, punktoolbarsite.param().abi(), freserved.param().abi()).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -11170,28 +11170,28 @@ impl IDockingWindowFrame { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn AddToolbar(&self, punksrc: P0, pwszitem: P1, dwaddflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToolbar)(windows_core::Interface::as_raw(self), punksrc.into_param().abi(), pwszitem.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveToolbar)(windows_core::Interface::as_raw(self), punksrc.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindToolbar)(windows_core::Interface::as_raw(self), pwszitem.into_param().abi(), riid, ppv).ok() + (windows_core::Interface::vtable(self).FindToolbar)(windows_core::Interface::as_raw(self), pwszitem.param().abi(), riid, ppv).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -11216,28 +11216,28 @@ impl IDockingWindowSite { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn GetBorderDW(&self, punkobj: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBorderDW)(windows_core::Interface::as_raw(self), punkobj.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBorderDW)(windows_core::Interface::as_raw(self), punkobj.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RequestBorderSpaceDW(&self, punkobj: P0, pbw: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestBorderSpaceDW)(windows_core::Interface::as_raw(self), punkobj.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBorderSpaceDW)(windows_core::Interface::as_raw(self), punkobj.into_param().abi(), pbw).ok() + (windows_core::Interface::vtable(self).SetBorderSpaceDW)(windows_core::Interface::as_raw(self), punkobj.param().abi(), pbw).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -11254,17 +11254,17 @@ impl IDragSourceHelper { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn InitializeFromBitmap(&self, pshdi: *const SHDRAGIMAGE, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromBitmap)(windows_core::Interface::as_raw(self), pshdi, pdataobject.into_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: P0, ppt: Option<*const super::super::Foundation::POINT>, pdataobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeFromWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), core::mem::transmute(ppt.unwrap_or(std::ptr::null())), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitializeFromWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), core::mem::transmute(ppt.unwrap_or(std::ptr::null())), pdataobject.param().abi()).ok() } } #[repr(C)] @@ -11285,17 +11285,17 @@ impl IDragSourceHelper2 { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn InitializeFromBitmap(&self, pshdi: *const SHDRAGIMAGE, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromBitmap)(windows_core::Interface::as_raw(self), pshdi, pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromBitmap)(windows_core::Interface::as_raw(self), pshdi, pdataobject.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InitializeFromWindow(&self, hwnd: P0, ppt: Option<*const super::super::Foundation::POINT>, pdataobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InitializeFromWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), core::mem::transmute(ppt.unwrap_or(std::ptr::null())), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InitializeFromWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), core::mem::transmute(ppt.unwrap_or(std::ptr::null())), pdataobject.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), dwflags).ok() @@ -11312,10 +11312,10 @@ impl IDropTargetHelper { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn DragEnter(&self, hwndtarget: P0, pdataobject: P1, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), hwndtarget.into_param().abi(), pdataobject.into_param().abi(), ppt, dweffect).ok() + (windows_core::Interface::vtable(self).DragEnter)(windows_core::Interface::as_raw(self), hwndtarget.param().abi(), 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() @@ -11327,15 +11327,15 @@ impl IDropTargetHelper { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Drop)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), ppt, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } } #[repr(C)] @@ -11361,10 +11361,10 @@ windows_core::imp::interface_hierarchy!(IDynamicHWHandler, windows_core::IUnknow impl IDynamicHWHandler { pub unsafe fn GetDynamicInfo(&self, pszdeviceid: P0, dwcontenttype: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDynamicInfo)(windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), 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)] @@ -11767,9 +11767,9 @@ windows_core::imp::interface_hierarchy!(IEnumerableView, windows_core::IUnknown) impl IEnumerableView { pub unsafe fn SetEnumReadyCallback(&self, percb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnumReadyCallback)(windows_core::Interface::as_raw(self), percb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnumReadyCallback)(windows_core::Interface::as_raw(self), percb.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn CreateEnumIDListFromContents(&self, pidlfolder: *const Common::ITEMIDLIST, dwenumflags: u32) -> windows_core::Result { @@ -11794,9 +11794,9 @@ impl IExecuteCommand { } pub unsafe fn SetParameters(&self, pszparameters: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), pszparameters.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), pszparameters.param().abi()).ok() } pub unsafe fn SetPosition(&self, pt: super::super::Foundation::POINT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetPosition)(windows_core::Interface::as_raw(self), core::mem::transmute(pt)).ok() @@ -11806,15 +11806,15 @@ impl IExecuteCommand { } pub unsafe fn SetNoShowUI(&self, fnoshowui: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNoShowUI)(windows_core::Interface::as_raw(self), fnoshowui.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNoShowUI)(windows_core::Interface::as_raw(self), fnoshowui.param().abi()).ok() } pub unsafe fn SetDirectory(&self, pszdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirectory)(windows_core::Interface::as_raw(self), pszdirectory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirectory)(windows_core::Interface::as_raw(self), pszdirectory.param().abi()).ok() } pub unsafe fn Execute(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self)).ok() @@ -11928,9 +11928,9 @@ windows_core::imp::interface_hierarchy!(IExplorerBrowser, windows_core::IUnknown impl IExplorerBrowser { pub unsafe fn Initialize(&self, hwndparent: P0, prc: *const super::super::Foundation::RECT, pfs: Option<*const FOLDERSETTINGS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), prc, core::mem::transmute(pfs.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), prc, core::mem::transmute(pfs.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Destroy(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Destroy)(windows_core::Interface::as_raw(self)).ok() @@ -11941,25 +11941,25 @@ impl IExplorerBrowser { } pub unsafe fn SetPropertyBag(&self, pszpropertybag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPropertyBag)(windows_core::Interface::as_raw(self), pszpropertybag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPropertyBag)(windows_core::Interface::as_raw(self), pszpropertybag.param().abi()).ok() } pub unsafe fn SetEmptyText(&self, pszemptytext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEmptyText)(windows_core::Interface::as_raw(self), pszemptytext.into_param().abi()).ok() + (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), pfs).ok() } pub unsafe fn Advise(&self, psbe: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psbe.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -11977,15 +11977,15 @@ impl IExplorerBrowser { } pub unsafe fn BrowseToObject(&self, punk: P0, uflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BrowseToObject)(windows_core::Interface::as_raw(self), punk.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FillFromObject)(windows_core::Interface::as_raw(self), punk.into_param().abi(), 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() @@ -12033,9 +12033,9 @@ impl IExplorerBrowserEvents { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnViewCreated(&self, psv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewCreated)(windows_core::Interface::as_raw(self), psv.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnViewCreated)(windows_core::Interface::as_raw(self), psv.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnNavigationComplete(&self, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::Result<()> { @@ -12071,24 +12071,24 @@ windows_core::imp::interface_hierarchy!(IExplorerCommand, windows_core::IUnknown impl IExplorerCommand { pub unsafe fn GetTitle(&self, psiitemarray: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), psiitemarray.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTitle)(windows_core::Interface::as_raw(self), psiitemarray.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetIcon(&self, psiitemarray: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), psiitemarray.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), psiitemarray.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetToolTip(&self, psiitemarray: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetToolTip)(windows_core::Interface::as_raw(self), psiitemarray.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetToolTip)(windows_core::Interface::as_raw(self), psiitemarray.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetCanonicalName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12096,19 +12096,19 @@ impl IExplorerCommand { } pub unsafe fn GetState(&self, psiitemarray: P0, foktobeslow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), psiitemarray.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), psiitemarray.param().abi(), foktobeslow.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke(&self, psiitemarray: P0, pbc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), psiitemarray.into_param().abi(), pbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), psiitemarray.param().abi(), pbc.param().abi()).ok() } pub unsafe fn GetFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12139,11 +12139,11 @@ windows_core::imp::interface_hierarchy!(IExplorerCommandProvider, windows_core:: impl IExplorerCommandProvider { pub unsafe fn GetCommands(&self, punksite: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetCommands)(windows_core::Interface::as_raw(self), punksite.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCommands)(windows_core::Interface::as_raw(self), punksite.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetCommand(&self, rguidcommandid: *const windows_core::GUID) -> windows_core::Result where @@ -12164,11 +12164,11 @@ windows_core::imp::interface_hierarchy!(IExplorerCommandState, windows_core::IUn impl IExplorerCommandState { pub unsafe fn GetState(&self, psiitemarray: P0, foktobeslow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), psiitemarray.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), psiitemarray.param().abi(), foktobeslow.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -12194,17 +12194,17 @@ windows_core::imp::interface_hierarchy!(IExtensionServices, windows_core::IUnkno impl IExtensionServices { pub unsafe fn SetAdditionalHeaders(&self, pwzadditionalheaders: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdditionalHeaders)(windows_core::Interface::as_raw(self), pwzadditionalheaders.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAdditionalHeaders)(windows_core::Interface::as_raw(self), pwzadditionalheaders.param().abi()).ok() } pub unsafe fn SetAuthenticateData(&self, phwnd: P0, pwzusername: P1, pwzpassword: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAuthenticateData)(windows_core::Interface::as_raw(self), phwnd.into_param().abi(), pwzusername.into_param().abi(), pwzpassword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAuthenticateData)(windows_core::Interface::as_raw(self), phwnd.param().abi(), pwzusername.param().abi(), pwzpassword.param().abi()).ok() } } #[repr(C)] @@ -12222,9 +12222,9 @@ impl IExtractIconA { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize).ok() + (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize).ok() } } #[repr(C)] @@ -12245,9 +12245,9 @@ impl IExtractIconW { #[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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.into_param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize).ok() + (windows_core::Interface::vtable(self).Extract)(windows_core::Interface::as_raw(self), pszfile.param().abi(), niconindex, core::mem::transmute(phiconlarge.unwrap_or(std::ptr::null_mut())), core::mem::transmute(phiconsmall.unwrap_or(std::ptr::null_mut())), niconsize).ok() } } #[repr(C)] @@ -12306,9 +12306,9 @@ windows_core::imp::interface_hierarchy!(IFileDialog, windows_core::IUnknown, IMo impl IFileDialog { pub unsafe fn Show(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetFileTypes(&self, rgfilterspec: &[Common::COMDLG_FILTERSPEC]) -> windows_core::Result<()> { @@ -12323,10 +12323,10 @@ impl IFileDialog { } pub unsafe fn Advise(&self, pfde: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pfde.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -12340,15 +12340,15 @@ impl IFileDialog { } pub unsafe fn SetDefaultFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn SetFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn GetFolder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12360,9 +12360,9 @@ impl IFileDialog { } pub unsafe fn SetFileName(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileName)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12370,21 +12370,21 @@ impl IFileDialog { } pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn SetOkButtonLabel(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn SetFileNameLabel(&self, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.param().abi()).ok() } pub unsafe fn GetResult(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12392,15 +12392,15 @@ impl IFileDialog { } pub unsafe fn AddPlace(&self, psi: P0, fdap: FDAP) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPlace)(windows_core::Interface::as_raw(self), psi.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultExtension)(windows_core::Interface::as_raw(self), pszdefaultextension.into_param().abi()).ok() + (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), hr).ok() @@ -12413,9 +12413,9 @@ impl IFileDialog { } pub unsafe fn SetFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } } #[repr(C)] @@ -12453,9 +12453,9 @@ windows_core::imp::interface_hierarchy!(IFileDialog2, windows_core::IUnknown, IM impl IFileDialog2 { pub unsafe fn Show(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetFileTypes(&self, rgfilterspec: &[Common::COMDLG_FILTERSPEC]) -> windows_core::Result<()> { @@ -12470,10 +12470,10 @@ impl IFileDialog2 { } pub unsafe fn Advise(&self, pfde: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pfde.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() @@ -12487,15 +12487,15 @@ impl IFileDialog2 { } pub unsafe fn SetDefaultFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn SetFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn GetFolder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12507,9 +12507,9 @@ impl IFileDialog2 { } pub unsafe fn SetFileName(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12517,21 +12517,21 @@ impl IFileDialog2 { } pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn SetOkButtonLabel(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn SetFileNameLabel(&self, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.param().abi()).ok() } pub unsafe fn GetResult(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12539,15 +12539,15 @@ impl IFileDialog2 { } pub unsafe fn AddPlace(&self, psi: P0, fdap: FDAP) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPlace)(windows_core::Interface::as_raw(self), psi.into_param().abi(), fdap).ok() + (windows_core::Interface::vtable(self).base__.AddPlace)(windows_core::Interface::as_raw(self), psi.param().abi(), fdap).ok() } pub unsafe fn SetDefaultExtension(&self, pszdefaultextension: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultExtension)(windows_core::Interface::as_raw(self), pszdefaultextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Close)(windows_core::Interface::as_raw(self), hr).ok() @@ -12560,21 +12560,21 @@ impl IFileDialog2 { } pub unsafe fn SetFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn SetCancelButtonLabel(&self, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCancelButtonLabel)(windows_core::Interface::as_raw(self), pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCancelButtonLabel)(windows_core::Interface::as_raw(self), pszlabel.param().abi()).ok() } pub unsafe fn SetNavigationRoot(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNavigationRoot)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNavigationRoot)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } } #[repr(C)] @@ -12588,28 +12588,28 @@ windows_core::imp::interface_hierarchy!(IFileDialogControlEvents, windows_core:: impl IFileDialogControlEvents { pub unsafe fn OnItemSelected(&self, pfdc: P0, dwidctl: u32, dwiditem: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemSelected)(windows_core::Interface::as_raw(self), pfdc.into_param().abi(), dwidctl, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnButtonClicked)(windows_core::Interface::as_raw(self), pfdc.into_param().abi(), 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCheckButtonToggled)(windows_core::Interface::as_raw(self), pfdc.into_param().abi(), dwidctl, bchecked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCheckButtonToggled)(windows_core::Interface::as_raw(self), pfdc.param().abi(), dwidctl, bchecked.param().abi()).ok() } pub unsafe fn OnControlActivating(&self, pfdc: P0, dwidctl: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnControlActivating)(windows_core::Interface::as_raw(self), pfdc.into_param().abi(), dwidctl).ok() + (windows_core::Interface::vtable(self).OnControlActivating)(windows_core::Interface::as_raw(self), pfdc.param().abi(), dwidctl).ok() } } #[repr(C)] @@ -12628,15 +12628,15 @@ impl IFileDialogCustomize { } pub unsafe fn AddMenu(&self, dwidctl: u32, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMenu)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPushButton)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.into_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), dwidctl).ok() @@ -12646,31 +12646,31 @@ impl IFileDialogCustomize { } pub unsafe fn AddCheckButton(&self, dwidctl: u32, pszlabel: P0, bchecked: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddCheckButton)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.into_param().abi(), bchecked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddCheckButton)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.param().abi(), bchecked.param().abi()).ok() } pub unsafe fn AddEditBox(&self, dwidctl: u32, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEditBox)(windows_core::Interface::as_raw(self), dwidctl, psztext.into_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), dwidctl).ok() } pub unsafe fn AddText(&self, dwidctl: u32, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddText)(windows_core::Interface::as_raw(self), dwidctl, psztext.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetControlLabel)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.into_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__ = std::mem::zeroed(); @@ -12685,9 +12685,9 @@ impl IFileDialogCustomize { } pub unsafe fn SetEditBoxText(&self, dwidctl: u32, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEditBoxText)(windows_core::Interface::as_raw(self), dwidctl, psztext.into_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__ = std::mem::zeroed(); @@ -12695,15 +12695,15 @@ impl IFileDialogCustomize { } pub unsafe fn SetCheckButtonState(&self, dwidctl: u32, bchecked: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckButtonState)(windows_core::Interface::as_raw(self), dwidctl, bchecked.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCheckButtonState)(windows_core::Interface::as_raw(self), dwidctl, bchecked.param().abi()).ok() } pub unsafe fn AddControlItem(&self, dwidctl: u32, dwiditem: u32, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddControlItem)(windows_core::Interface::as_raw(self), dwidctl, dwiditem, pszlabel.into_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), dwidctl, dwiditem).ok() @@ -12727,9 +12727,9 @@ impl IFileDialogCustomize { } pub unsafe fn StartVisualGroup(&self, dwidctl: u32, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartVisualGroup)(windows_core::Interface::as_raw(self), dwidctl, pszlabel.into_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() @@ -12739,9 +12739,9 @@ impl IFileDialogCustomize { } pub unsafe fn SetControlItemText(&self, dwidctl: u32, dwiditem: u32, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetControlItemText)(windows_core::Interface::as_raw(self), dwidctl, dwiditem, pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetControlItemText)(windows_core::Interface::as_raw(self), dwidctl, dwiditem, pszlabel.param().abi()).ok() } } #[repr(C)] @@ -12780,50 +12780,50 @@ windows_core::imp::interface_hierarchy!(IFileDialogEvents, windows_core::IUnknow impl IFileDialogEvents { pub unsafe fn OnFileOk(&self, pfd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFileOk)(windows_core::Interface::as_raw(self), pfd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFileOk)(windows_core::Interface::as_raw(self), pfd.param().abi()).ok() } pub unsafe fn OnFolderChanging(&self, pfd: P0, psifolder: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFolderChanging)(windows_core::Interface::as_raw(self), pfd.into_param().abi(), psifolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFolderChanging)(windows_core::Interface::as_raw(self), pfd.param().abi(), psifolder.param().abi()).ok() } pub unsafe fn OnFolderChange(&self, pfd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFolderChange)(windows_core::Interface::as_raw(self), pfd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFolderChange)(windows_core::Interface::as_raw(self), pfd.param().abi()).ok() } pub unsafe fn OnSelectionChange(&self, pfd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSelectionChange)(windows_core::Interface::as_raw(self), pfd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSelectionChange)(windows_core::Interface::as_raw(self), pfd.param().abi()).ok() } pub unsafe fn OnShareViolation(&self, pfd: P0, psi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnShareViolation)(windows_core::Interface::as_raw(self), pfd.into_param().abi(), psi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnShareViolation)(windows_core::Interface::as_raw(self), pfd.param().abi(), psi.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnTypeChange(&self, pfd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTypeChange)(windows_core::Interface::as_raw(self), pfd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnTypeChange)(windows_core::Interface::as_raw(self), pfd.param().abi()).ok() } pub unsafe fn OnOverwrite(&self, pfd: P0, psi: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnOverwrite)(windows_core::Interface::as_raw(self), pfd.into_param().abi(), psi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnOverwrite)(windows_core::Interface::as_raw(self), pfd.param().abi(), psi.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -12874,9 +12874,9 @@ windows_core::imp::interface_hierarchy!(IFileOpenDialog, windows_core::IUnknown, impl IFileOpenDialog { pub unsafe fn Show(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetFileTypes(&self, rgfilterspec: &[Common::COMDLG_FILTERSPEC]) -> windows_core::Result<()> { @@ -12891,10 +12891,10 @@ impl IFileOpenDialog { } pub unsafe fn Advise(&self, pfde: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pfde.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() @@ -12908,15 +12908,15 @@ impl IFileOpenDialog { } pub unsafe fn SetDefaultFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn SetFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn GetFolder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12928,9 +12928,9 @@ impl IFileOpenDialog { } pub unsafe fn SetFileName(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12938,21 +12938,21 @@ impl IFileOpenDialog { } pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn SetOkButtonLabel(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn SetFileNameLabel(&self, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.param().abi()).ok() } pub unsafe fn GetResult(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -12960,15 +12960,15 @@ impl IFileOpenDialog { } pub unsafe fn AddPlace(&self, psi: P0, fdap: FDAP) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPlace)(windows_core::Interface::as_raw(self), psi.into_param().abi(), fdap).ok() + (windows_core::Interface::vtable(self).base__.AddPlace)(windows_core::Interface::as_raw(self), psi.param().abi(), fdap).ok() } pub unsafe fn SetDefaultExtension(&self, pszdefaultextension: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultExtension)(windows_core::Interface::as_raw(self), pszdefaultextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Close)(windows_core::Interface::as_raw(self), hr).ok() @@ -12981,9 +12981,9 @@ impl IFileOpenDialog { } pub unsafe fn SetFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn GetResults(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13005,10 +13005,10 @@ windows_core::imp::interface_hierarchy!(IFileOperation, windows_core::IUnknown); impl IFileOperation { pub unsafe fn Advise(&self, pfops: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pfops.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -13018,109 +13018,109 @@ impl IFileOperation { } pub unsafe fn SetProgressMessage(&self, pszmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProgressMessage)(windows_core::Interface::as_raw(self), pszmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProgressMessage)(windows_core::Interface::as_raw(self), pszmessage.param().abi()).ok() } pub unsafe fn SetProgressDialog(&self, popd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProgressDialog)(windows_core::Interface::as_raw(self), popd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProgressDialog)(windows_core::Interface::as_raw(self), popd.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties(&self, pproparray: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pproparray.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pproparray.param().abi()).ok() } pub unsafe fn SetOwnerWindow(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwnerWindow)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } pub unsafe fn ApplyPropertiesToItem(&self, psiitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyPropertiesToItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyPropertiesToItem)(windows_core::Interface::as_raw(self), psiitem.param().abi()).ok() } pub unsafe fn ApplyPropertiesToItems(&self, punkitems: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyPropertiesToItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyPropertiesToItems)(windows_core::Interface::as_raw(self), punkitems.param().abi()).ok() } pub unsafe fn RenameItem(&self, psiitem: P0, psznewname: P1, pfopsitem: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenameItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), psznewname.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn RenameItems(&self, punkitems: P0, psznewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RenameItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi(), psznewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenameItems)(windows_core::Interface::as_raw(self), punkitems.param().abi(), psznewname.param().abi()).ok() } pub unsafe fn MoveItem(&self, psiitem: P0, psidestinationfolder: P1, psznewname: P2, pfopsitem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn MoveItems(&self, punkitems: P0, psidestinationfolder: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveItems)(windows_core::Interface::as_raw(self), punkitems.param().abi(), psidestinationfolder.param().abi()).ok() } pub unsafe fn CopyItem(&self, psiitem: P0, psidestinationfolder: P1, pszcopyname: P2, pfopsitem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), pszcopyname.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), psidestinationfolder.param().abi(), pszcopyname.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn CopyItems(&self, punkitems: P0, psidestinationfolder: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CopyItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CopyItems)(windows_core::Interface::as_raw(self), punkitems.param().abi(), psidestinationfolder.param().abi()).ok() } pub unsafe fn DeleteItem(&self, psiitem: P0, pfopsitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn DeleteItems(&self, punkitems: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteItems)(windows_core::Interface::as_raw(self), punkitems.param().abi()).ok() } pub unsafe fn NewItem(&self, psidestinationfolder: P0, dwfileattributes: u32, pszname: P1, psztemplatename: P2, pfopsitem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).NewItem)(windows_core::Interface::as_raw(self), psidestinationfolder.into_param().abi(), dwfileattributes, pszname.into_param().abi(), psztemplatename.into_param().abi(), pfopsitem.into_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() @@ -13162,10 +13162,10 @@ windows_core::imp::interface_hierarchy!(IFileOperation2, windows_core::IUnknown, impl IFileOperation2 { pub unsafe fn Advise(&self, pfops: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pfops.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() @@ -13175,109 +13175,109 @@ impl IFileOperation2 { } pub unsafe fn SetProgressMessage(&self, pszmessage: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProgressMessage)(windows_core::Interface::as_raw(self), pszmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProgressMessage)(windows_core::Interface::as_raw(self), pszmessage.param().abi()).ok() } pub unsafe fn SetProgressDialog(&self, popd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProgressDialog)(windows_core::Interface::as_raw(self), popd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProgressDialog)(windows_core::Interface::as_raw(self), popd.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties(&self, pproparray: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProperties)(windows_core::Interface::as_raw(self), pproparray.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetProperties)(windows_core::Interface::as_raw(self), pproparray.param().abi()).ok() } pub unsafe fn SetOwnerWindow(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOwnerWindow)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOwnerWindow)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } pub unsafe fn ApplyPropertiesToItem(&self, psiitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ApplyPropertiesToItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ApplyPropertiesToItem)(windows_core::Interface::as_raw(self), psiitem.param().abi()).ok() } pub unsafe fn ApplyPropertiesToItems(&self, punkitems: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ApplyPropertiesToItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ApplyPropertiesToItems)(windows_core::Interface::as_raw(self), punkitems.param().abi()).ok() } pub unsafe fn RenameItem(&self, psiitem: P0, psznewname: P1, pfopsitem: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RenameItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RenameItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), psznewname.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn RenameItems(&self, punkitems: P0, psznewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RenameItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi(), psznewname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RenameItems)(windows_core::Interface::as_raw(self), punkitems.param().abi(), psznewname.param().abi()).ok() } pub unsafe fn MoveItem(&self, psiitem: P0, psidestinationfolder: P1, psznewname: P2, pfopsitem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MoveItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.MoveItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), psidestinationfolder.param().abi(), psznewname.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn MoveItems(&self, punkitems: P0, psidestinationfolder: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MoveItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.MoveItems)(windows_core::Interface::as_raw(self), punkitems.param().abi(), psidestinationfolder.param().abi()).ok() } pub unsafe fn CopyItem(&self, psiitem: P0, psidestinationfolder: P1, pszcopyname: P2, pfopsitem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), pszcopyname.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), psidestinationfolder.param().abi(), pszcopyname.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn CopyItems(&self, punkitems: P0, psidestinationfolder: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CopyItems)(windows_core::Interface::as_raw(self), punkitems.param().abi(), psidestinationfolder.param().abi()).ok() } pub unsafe fn DeleteItem(&self, psiitem: P0, pfopsitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteItem)(windows_core::Interface::as_raw(self), psiitem.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteItem)(windows_core::Interface::as_raw(self), psiitem.param().abi(), pfopsitem.param().abi()).ok() } pub unsafe fn DeleteItems(&self, punkitems: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteItems)(windows_core::Interface::as_raw(self), punkitems.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteItems)(windows_core::Interface::as_raw(self), punkitems.param().abi()).ok() } pub unsafe fn NewItem(&self, psidestinationfolder: P0, dwfileattributes: u32, pszname: P1, psztemplatename: P2, pfopsitem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NewItem)(windows_core::Interface::as_raw(self), psidestinationfolder.into_param().abi(), dwfileattributes, pszname.into_param().abi(), psztemplatename.into_param().abi(), pfopsitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.PerformOperations)(windows_core::Interface::as_raw(self)).ok() @@ -13306,81 +13306,81 @@ impl IFileOperationProgressSink { } pub unsafe fn PreRenameItem(&self, dwflags: u32, psiitem: P0, psznewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PreRenameItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_param().abi(), psznewname.into_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: P0, psznewname: P1, hrrename: windows_core::HRESULT, psinewlycreated: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PostRenameItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_param().abi(), psznewname.into_param().abi(), hrrename, psinewlycreated.into_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: P0, psidestinationfolder: P1, psznewname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PreMoveItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_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: P0, psidestinationfolder: P1, psznewname: P2, hrmove: windows_core::HRESULT, psinewlycreated: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PostMoveItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), hrmove, psinewlycreated.into_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: P0, psidestinationfolder: P1, psznewname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PreCopyItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_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: P0, psidestinationfolder: P1, psznewname: P2, hrcopy: windows_core::HRESULT, psinewlycreated: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PostCopyItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), hrcopy, psinewlycreated.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PreDeleteItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_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: P0, hrdelete: windows_core::HRESULT, psinewlycreated: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PostDeleteItem)(windows_core::Interface::as_raw(self), dwflags, psiitem.into_param().abi(), hrdelete, psinewlycreated.into_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: P0, psznewname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PreNewItem)(windows_core::Interface::as_raw(self), dwflags, psidestinationfolder.into_param().abi(), psznewname.into_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: P0, psznewname: P1, psztemplatename: P2, dwfileattributes: u32, hrnew: windows_core::HRESULT, psinewitem: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).PostNewItem)(windows_core::Interface::as_raw(self), dwflags, psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), psztemplatename.into_param().abi(), dwfileattributes, hrnew, psinewitem.into_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), iworktotal, iworksofar).ok() @@ -13420,9 +13420,9 @@ windows_core::imp::interface_hierarchy!(IFileSaveDialog, windows_core::IUnknown, impl IFileSaveDialog { pub unsafe fn Show(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetFileTypes(&self, rgfilterspec: &[Common::COMDLG_FILTERSPEC]) -> windows_core::Result<()> { @@ -13437,10 +13437,10 @@ impl IFileSaveDialog { } pub unsafe fn Advise(&self, pfde: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), pfde.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() @@ -13454,15 +13454,15 @@ impl IFileSaveDialog { } pub unsafe fn SetDefaultFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefaultFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn SetFolder(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFolder)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFolder)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn GetFolder(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13474,9 +13474,9 @@ impl IFileSaveDialog { } pub unsafe fn SetFileName(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileName)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetFileName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13484,21 +13484,21 @@ impl IFileSaveDialog { } pub unsafe fn SetTitle(&self, psztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTitle)(windows_core::Interface::as_raw(self), psztitle.param().abi()).ok() } pub unsafe fn SetOkButtonLabel(&self, psztext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOkButtonLabel)(windows_core::Interface::as_raw(self), psztext.param().abi()).ok() } pub unsafe fn SetFileNameLabel(&self, pszlabel: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFileNameLabel)(windows_core::Interface::as_raw(self), pszlabel.param().abi()).ok() } pub unsafe fn GetResult(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13506,15 +13506,15 @@ impl IFileSaveDialog { } pub unsafe fn AddPlace(&self, psi: P0, fdap: FDAP) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPlace)(windows_core::Interface::as_raw(self), psi.into_param().abi(), fdap).ok() + (windows_core::Interface::vtable(self).base__.AddPlace)(windows_core::Interface::as_raw(self), psi.param().abi(), fdap).ok() } pub unsafe fn SetDefaultExtension(&self, pszdefaultextension: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefaultExtension)(windows_core::Interface::as_raw(self), pszdefaultextension.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Close)(windows_core::Interface::as_raw(self), hr).ok() @@ -13527,30 +13527,30 @@ impl IFileSaveDialog { } pub unsafe fn SetFilter(&self, pfilter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFilter)(windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFilter)(windows_core::Interface::as_raw(self), pfilter.param().abi()).ok() } pub unsafe fn SetSaveAsItem(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSaveAsItem)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSaveAsItem)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties(&self, pstore: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pstore.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetCollectedProperties(&self, plist: P0, fappenddefault: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCollectedProperties)(windows_core::Interface::as_raw(self), plist.into_param().abi(), fappenddefault.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCollectedProperties)(windows_core::Interface::as_raw(self), plist.param().abi(), fappenddefault.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetProperties(&self) -> windows_core::Result { @@ -13560,12 +13560,12 @@ impl IFileSaveDialog { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn ApplyProperties(&self, psi: P0, pstore: P1, hwnd: P2, psink: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self), psi.into_param().abi(), pstore.into_param().abi(), hwnd.into_param().abi(), psink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ApplyProperties)(windows_core::Interface::as_raw(self), psi.param().abi(), pstore.param().abi(), hwnd.param().abi(), psink.param().abi()).ok() } } #[repr(C)] @@ -13600,9 +13600,9 @@ impl IFileSearchBand { } pub unsafe fn SetSearchParameters(&self, pbstrsearchid: *const windows_core::BSTR, bnavtoresults: P0, pvarscope: *const windows_core::VARIANT, pvarqueryfile: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSearchParameters)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrsearchid), bnavtoresults.into_param().abi(), 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.param().abi(), core::mem::transmute(pvarscope), core::mem::transmute(pvarqueryfile)).ok() } pub unsafe fn SearchID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -13632,19 +13632,19 @@ windows_core::imp::interface_hierarchy!(IFileSyncMergeHandler, windows_core::IUn impl IFileSyncMergeHandler { pub unsafe fn Merge(&self, localfilepath: P0, serverfilepath: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), localfilepath.into_param().abi(), serverfilepath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), localfilepath.param().abi(), serverfilepath.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn ShowResolveConflictUIAsync(&self, localfilepath: P0, monitortodisplayon: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowResolveConflictUIAsync)(windows_core::Interface::as_raw(self), localfilepath.into_param().abi(), monitortodisplayon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowResolveConflictUIAsync)(windows_core::Interface::as_raw(self), localfilepath.param().abi(), monitortodisplayon.param().abi()).ok() } } #[repr(C)] @@ -13719,27 +13719,27 @@ windows_core::imp::interface_hierarchy!(IFolderBandPriv, windows_core::IUnknown) impl IFolderBandPriv { pub unsafe fn SetCascade(&self, fcascade: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCascade)(windows_core::Interface::as_raw(self), fcascade.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCascade)(windows_core::Interface::as_raw(self), fcascade.param().abi()).ok() } pub unsafe fn SetAccelerators(&self, faccelerators: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAccelerators)(windows_core::Interface::as_raw(self), faccelerators.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAccelerators)(windows_core::Interface::as_raw(self), faccelerators.param().abi()).ok() } pub unsafe fn SetNoIcons(&self, fnoicons: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNoIcons)(windows_core::Interface::as_raw(self), fnoicons.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNoIcons)(windows_core::Interface::as_raw(self), fnoicons.param().abi()).ok() } pub unsafe fn SetNoText(&self, fnotext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNoText)(windows_core::Interface::as_raw(self), fnotext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNoText)(windows_core::Interface::as_raw(self), fnotext.param().abi()).ok() } } #[repr(C)] @@ -13756,16 +13756,16 @@ impl IFolderFilter { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn ShouldShow(&self, psf: P0, pidlfolder: *const Common::ITEMIDLIST, pidlitem: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShouldShow)(windows_core::Interface::as_raw(self), psf.into_param().abi(), pidlfolder, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEnumFlags)(windows_core::Interface::as_raw(self), psf.into_param().abi(), pidlfolder, phwnd, pgrfflags).ok() + (windows_core::Interface::vtable(self).GetEnumFlags)(windows_core::Interface::as_raw(self), psf.param().abi(), pidlfolder, phwnd, pgrfflags).ok() } } #[repr(C)] @@ -13785,9 +13785,9 @@ windows_core::imp::interface_hierarchy!(IFolderFilterSite, windows_core::IUnknow impl IFolderFilterSite { pub unsafe fn SetFilter(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } } #[repr(C)] @@ -13952,9 +13952,9 @@ impl IFolderView2 { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetGroupBy(&self, key: *const PropertiesSystem::PROPERTYKEY, fascending: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroupBy)(windows_core::Interface::as_raw(self), key, fascending.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGroupBy)(windows_core::Interface::as_raw(self), key, fascending.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetGroupBy(&self, pkey: *mut PropertiesSystem::PROPERTYKEY, pfascending: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { @@ -13972,22 +13972,22 @@ impl IFolderView2 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetTileViewProperties(&self, pidl: *const Common::ITEMIDLIST, pszproplist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTileViewProperties)(windows_core::Interface::as_raw(self), pidl, pszproplist.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExtendedTileViewProperties)(windows_core::Interface::as_raw(self), pidl, pszproplist.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), itype, pwsztext.into_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), dwmask, dwflags).ok() @@ -14017,10 +14017,10 @@ impl IFolderView2 { } pub unsafe fn GetVisibleItem(&self, istart: i32, fprevious: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVisibleItem)(windows_core::Interface::as_raw(self), istart, fprevious.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetVisibleItem)(windows_core::Interface::as_raw(self), istart, fprevious.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetSelectedItem(&self, istart: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14028,10 +14028,10 @@ impl IFolderView2 { } pub unsafe fn GetSelection(&self, fnoneimpliesfolder: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), fnoneimpliesfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), fnoneimpliesfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetSelectionState(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result { @@ -14040,9 +14040,9 @@ impl IFolderView2 { } pub unsafe fn InvokeVerbOnSelection(&self, pszverb: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeVerbOnSelection)(windows_core::Interface::as_raw(self), pszverb.into_param().abi()).ok() + (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), uviewmode, iimagesize).ok() @@ -14059,9 +14059,9 @@ impl IFolderView2 { } pub unsafe fn SetRedraw(&self, fredrawon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedraw)(windows_core::Interface::as_raw(self), fredrawon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRedraw)(windows_core::Interface::as_raw(self), fredrawon.param().abi()).ok() } pub unsafe fn IsMoveInSameFolder(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).IsMoveInSameFolder)(windows_core::Interface::as_raw(self)).ok() @@ -14132,10 +14132,10 @@ impl IFolderViewHost { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, hwndparent: P0, pdo: P1, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), pdo.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), pdo.param().abi(), prc).ok() } } #[repr(C)] @@ -14155,9 +14155,9 @@ impl IFolderViewOC { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFolderView(&self, pdisp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFolderView)(windows_core::Interface::as_raw(self), pdisp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFolderView)(windows_core::Interface::as_raw(self), pdisp.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14242,19 +14242,19 @@ windows_core::imp::interface_hierarchy!(IFrameworkInputPane, windows_core::IUnkn impl IFrameworkInputPane { pub unsafe fn Advise(&self, pwindow: P0, phandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pwindow.into_param().abi(), phandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), pwindow.param().abi(), phandler.param().abi(), &mut result__).map(|| result__) } pub unsafe fn AdviseWithHWND(&self, hwnd: P0, phandler: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseWithHWND)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), phandler.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AdviseWithHWND)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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), dwcookie).ok() @@ -14277,15 +14277,15 @@ windows_core::imp::interface_hierarchy!(IFrameworkInputPaneHandler, windows_core impl IFrameworkInputPaneHandler { pub unsafe fn Showing(&self, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Showing)(windows_core::Interface::as_raw(self), prcinputpanescreenlocation, fensurefocusedelementinview.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Showing)(windows_core::Interface::as_raw(self), prcinputpanescreenlocation, fensurefocusedelementinview.param().abi()).ok() } pub unsafe fn Hiding(&self, fensurefocusedelementinview: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Hiding)(windows_core::Interface::as_raw(self), fensurefocusedelementinview.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Hiding)(windows_core::Interface::as_raw(self), fensurefocusedelementinview.param().abi()).ok() } } #[repr(C)] @@ -14311,28 +14311,28 @@ windows_core::imp::interface_hierarchy!(IHWEventHandler, windows_core::IUnknown) impl IHWEventHandler { pub unsafe fn Initialize(&self, pszparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszparams.param().abi()).ok() } pub unsafe fn HandleEvent(&self, pszdeviceid: P0, pszaltdeviceid: P1, pszeventtype: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleEvent)(windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandleEvent)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pszaltdeviceid.param().abi(), pszeventtype.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HandleEventWithContent(&self, pszdeviceid: P0, pszaltdeviceid: P1, pszeventtype: P2, pszcontenttypehandler: P3, pdataobject: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleEventWithContent)(windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi(), pszcontenttypehandler.into_param().abi(), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandleEventWithContent)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pszaltdeviceid.param().abi(), pszeventtype.param().abi(), pszcontenttypehandler.param().abi(), pdataobject.param().abi()).ok() } } #[repr(C)] @@ -14350,37 +14350,37 @@ windows_core::imp::interface_hierarchy!(IHWEventHandler2, windows_core::IUnknown impl IHWEventHandler2 { pub unsafe fn Initialize(&self, pszparams: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pszparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), pszparams.param().abi()).ok() } pub unsafe fn HandleEvent(&self, pszdeviceid: P0, pszaltdeviceid: P1, pszeventtype: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.HandleEvent)(windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.HandleEvent)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pszaltdeviceid.param().abi(), pszeventtype.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn HandleEventWithContent(&self, pszdeviceid: P0, pszaltdeviceid: P1, pszeventtype: P2, pszcontenttypehandler: P3, pdataobject: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.HandleEventWithContent)(windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi(), pszcontenttypehandler.into_param().abi(), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.HandleEventWithContent)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pszaltdeviceid.param().abi(), pszeventtype.param().abi(), pszcontenttypehandler.param().abi(), pdataobject.param().abi()).ok() } pub unsafe fn HandleEventWithHWND(&self, pszdeviceid: P0, pszaltdeviceid: P1, pszeventtype: P2, hwndowner: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).HandleEventWithHWND)(windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi(), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandleEventWithHWND)(windows_core::Interface::as_raw(self), pszdeviceid.param().abi(), pszaltdeviceid.param().abi(), pszeventtype.param().abi(), hwndowner.param().abi()).ok() } } #[repr(C)] @@ -14393,18 +14393,18 @@ windows_core::imp::interface_hierarchy!(IHandlerActivationHost, windows_core::IU impl IHandlerActivationHost { pub unsafe fn BeforeCoCreateInstance(&self, clsidhandler: *const windows_core::GUID, itemsbeingactivated: P0, handlerinfo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).BeforeCoCreateInstance)(windows_core::Interface::as_raw(self), clsidhandler, itemsbeingactivated.into_param().abi(), handlerinfo.into_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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).BeforeCreateProcess)(windows_core::Interface::as_raw(self), applicationpath.into_param().abi(), commandline.into_param().abi(), handlerinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BeforeCreateProcess)(windows_core::Interface::as_raw(self), applicationpath.param().abi(), commandline.param().abi(), handlerinfo.param().abi()).ok() } } #[repr(C)] @@ -14466,9 +14466,9 @@ windows_core::imp::interface_hierarchy!(IHlink, windows_core::IUnknown); impl IHlink { pub unsafe fn SetHlinkSite(&self, pihlsite: P0, dwsitedata: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHlinkSite)(windows_core::Interface::as_raw(self), pihlsite.into_param().abi(), 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), pdwsitedata).ok() @@ -14476,10 +14476,10 @@ impl IHlink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetMonikerReference(&self, grfhlsetf: u32, pimktarget: P0, pwzlocation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMonikerReference)(windows_core::Interface::as_raw(self), grfhlsetf, pimktarget.into_param().abi(), pwzlocation.into_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<()> { @@ -14487,19 +14487,19 @@ impl IHlink { } pub unsafe fn SetStringReference(&self, grfhlsetf: u32, pwztarget: P0, pwzlocation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStringReference)(windows_core::Interface::as_raw(self), grfhlsetf, pwztarget.into_param().abi(), pwzlocation.into_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), dwwhichref, core::mem::transmute(ppwztarget.unwrap_or(std::ptr::null_mut())), core::mem::transmute(ppwzlocation.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn SetFriendlyName(&self, pwzfriendlyname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwzfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFriendlyName)(windows_core::Interface::as_raw(self), pwzfriendlyname.param().abi()).ok() } pub unsafe fn GetFriendlyName(&self, grfhlfnamef: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14507,9 +14507,9 @@ impl IHlink { } pub unsafe fn SetTargetFrameName(&self, pwztargetframename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTargetFrameName)(windows_core::Interface::as_raw(self), pwztargetframename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTargetFrameName)(windows_core::Interface::as_raw(self), pwztargetframename.param().abi()).ok() } pub unsafe fn GetTargetFrameName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14522,17 +14522,17 @@ impl IHlink { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Navigate(&self, grfhlnf: u32, pibc: P0, pibsc: P1, pihlbc: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), grfhlnf, pibc.into_param().abi(), pibsc.into_param().abi(), pihlbc.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAdditionalParams)(windows_core::Interface::as_raw(self), pwzadditionalparams.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAdditionalParams)(windows_core::Interface::as_raw(self), pwzadditionalparams.param().abi()).ok() } pub unsafe fn GetAdditionalParams(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14572,20 +14572,20 @@ impl IHlinkBrowseContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Register(&self, reserved: u32, piunk: P0, pimk: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), reserved, piunk.into_param().abi(), pimk.into_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: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pimk.into_param().abi(), fbindifrootregistered.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetObject)(windows_core::Interface::as_raw(self), pimk.param().abi(), fbindifrootregistered.param().abi(), &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), dwregister).ok() @@ -14599,30 +14599,30 @@ impl IHlinkBrowseContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetInitialHlink(&self, pimktarget: P0, pwzlocation: P1, pwzfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInitialHlink)(windows_core::Interface::as_raw(self), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInitialHlink)(windows_core::Interface::as_raw(self), pimktarget.param().abi(), pwzlocation.param().abi(), pwzfriendlyname.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn OnNavigateHlink(&self, grfhlnf: u32, pimktarget: P0, pwzlocation: P1, pwzfriendlyname: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnNavigateHlink)(windows_core::Interface::as_raw(self), grfhlnf, pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_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: P0, pwzlocation: P1, pwzfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateHlink)(windows_core::Interface::as_raw(self), uhlid, pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_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__ = std::mem::zeroed(); @@ -14640,10 +14640,10 @@ impl IHlinkBrowseContext { } pub unsafe fn Clone(&self, piunkouter: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), piunkouter.into_param().abi(), 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), reserved).ok() @@ -14687,9 +14687,9 @@ windows_core::imp::interface_hierarchy!(IHlinkFrame, windows_core::IUnknown); impl IHlinkFrame { pub unsafe fn SetBrowseContext(&self, pihlbc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBrowseContext)(windows_core::Interface::as_raw(self), pihlbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBrowseContext)(windows_core::Interface::as_raw(self), pihlbc.param().abi()).ok() } pub unsafe fn GetBrowseContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14698,29 +14698,29 @@ impl IHlinkFrame { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Navigate(&self, grfhlnf: u32, pbc: P0, pibsc: P1, pihlnavigate: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), grfhlnf, pbc.into_param().abi(), pibsc.into_param().abi(), pihlnavigate.into_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: P0, pwzlocation: P1, pwzfriendlyname: P2, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNavigate)(windows_core::Interface::as_raw(self), grfhlnf, pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), 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: P0, pwzlocation: P1, pwzfriendlyname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateHlink)(windows_core::Interface::as_raw(self), uhlid, pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_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)] @@ -14758,9 +14758,9 @@ impl IHlinkSite { } pub unsafe fn OnNavigationComplete(&self, dwsitedata: u32, dwreserved: u32, hrerror: windows_core::HRESULT, pwzerror: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnNavigationComplete)(windows_core::Interface::as_raw(self), dwsitedata, dwreserved, hrerror, pwzerror.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnNavigationComplete)(windows_core::Interface::as_raw(self), dwsitedata, dwreserved, hrerror, pwzerror.param().abi()).ok() } } #[repr(C)] @@ -14779,9 +14779,9 @@ windows_core::imp::interface_hierarchy!(IHlinkTarget, windows_core::IUnknown); impl IHlinkTarget { pub unsafe fn SetBrowseContext(&self, pihlbc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBrowseContext)(windows_core::Interface::as_raw(self), pihlbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBrowseContext)(windows_core::Interface::as_raw(self), pihlbc.param().abi()).ok() } pub unsafe fn GetBrowseContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -14789,24 +14789,24 @@ impl IHlinkTarget { } pub unsafe fn Navigate(&self, grfhlnf: u32, pwzjumplocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), grfhlnf, pwzjumplocation.into_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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMoniker)(windows_core::Interface::as_raw(self), pwzlocation.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFriendlyName)(windows_core::Interface::as_raw(self), pwzlocation.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetFriendlyName)(windows_core::Interface::as_raw(self), pwzlocation.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -14830,10 +14830,10 @@ impl IHomeGroup { } pub unsafe fn ShowSharingWizard(&self, owner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowSharingWizard)(windows_core::Interface::as_raw(self), owner.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ShowSharingWizard)(windows_core::Interface::as_raw(self), owner.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -14881,11 +14881,11 @@ impl IImageRecompress { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn RecompressImage(&self, psi: P0, cx: i32, cy: i32, iquality: i32, pstg: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RecompressImage)(windows_core::Interface::as_raw(self), psi.into_param().abi(), cx, cy, iquality, pstg.into_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)] @@ -14902,10 +14902,10 @@ impl IInitializeCommand { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn Initialize(&self, pszcommandname: P0, ppb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszcommandname.into_param().abi(), ppb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszcommandname.param().abi(), ppb.param().abi()).ok() } } #[repr(C)] @@ -14922,10 +14922,10 @@ impl IInitializeNetworkFolder { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Initialize(&self, pidl: *const Common::ITEMIDLIST, pidltarget: *const Common::ITEMIDLIST, udisplaytype: u32, pszresname: P0, pszprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pidl, pidltarget, udisplaytype, pszresname.into_param().abi(), pszprovider.into_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)] @@ -14954,9 +14954,9 @@ impl IInitializeWithBindCtx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pbc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pbc.param().abi()).ok() } } #[repr(C)] @@ -14972,9 +14972,9 @@ windows_core::imp::interface_hierarchy!(IInitializeWithItem, windows_core::IUnkn impl IInitializeWithItem { pub unsafe fn Initialize(&self, psi: P0, grfmode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psi.into_param().abi(), grfmode).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psi.param().abi(), grfmode).ok() } } #[repr(C)] @@ -14988,9 +14988,9 @@ impl IInitializeWithPropertyStore { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Initialize(&self, pps: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pps.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pps.param().abi()).ok() } } #[repr(C)] @@ -15006,9 +15006,9 @@ windows_core::imp::interface_hierarchy!(IInitializeWithWindow, windows_core::IUn impl IInitializeWithWindow { pub unsafe fn Initialize(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } } #[repr(C)] @@ -15022,9 +15022,9 @@ impl IInputObject { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn UIActivateIO(&self, factivate: P0, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UIActivateIO)(windows_core::Interface::as_raw(self), factivate.into_param().abi(), pmsg).ok() + (windows_core::Interface::vtable(self).UIActivateIO)(windows_core::Interface::as_raw(self), factivate.param().abi(), pmsg).ok() } pub unsafe fn HasFocusIO(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).HasFocusIO)(windows_core::Interface::as_raw(self)).ok() @@ -15053,9 +15053,9 @@ impl IInputObject2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn UIActivateIO(&self, factivate: P0, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UIActivateIO)(windows_core::Interface::as_raw(self), factivate.into_param().abi(), pmsg).ok() + (windows_core::Interface::vtable(self).base__.UIActivateIO)(windows_core::Interface::as_raw(self), factivate.param().abi(), pmsg).ok() } pub unsafe fn HasFocusIO(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.HasFocusIO)(windows_core::Interface::as_raw(self)).ok() @@ -15082,10 +15082,10 @@ windows_core::imp::interface_hierarchy!(IInputObjectSite, windows_core::IUnknown impl IInputObjectSite { pub unsafe fn OnFocusChangeIS(&self, punkobj: P0, fsetfocus: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnFocusChangeIS)(windows_core::Interface::as_raw(self), punkobj.into_param().abi(), fsetfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnFocusChangeIS)(windows_core::Interface::as_raw(self), punkobj.param().abi(), fsetfocus.param().abi()).ok() } } #[repr(C)] @@ -15099,10 +15099,10 @@ impl IInputPaneAnimationCoordinator { #[cfg(feature = "Win32_Graphics_DirectComposition")] pub unsafe fn AddAnimation(&self, device: P0, animation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddAnimation)(windows_core::Interface::as_raw(self), device.into_param().abi(), animation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddAnimation)(windows_core::Interface::as_raw(self), device.param().abi(), animation.param().abi()).ok() } } #[repr(C)] @@ -15161,10 +15161,10 @@ impl IItemNameLimits { } pub unsafe fn GetMaxLength(&self, pszname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMaxLength)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetMaxLength)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -15197,9 +15197,9 @@ impl IKnownFolder { } pub unsafe fn SetPath(&self, dwflags: u32, pszpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), dwflags, pszpath.into_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> { @@ -15254,10 +15254,10 @@ impl IKnownFolderManager { } pub unsafe fn GetFolderByName(&self, pszcanonicalname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFolderByName)(windows_core::Interface::as_raw(self), pszcanonicalname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), rfid, pkfd).ok() @@ -15267,10 +15267,10 @@ impl IKnownFolderManager { } pub unsafe fn FindFolderFromPath(&self, pszpath: P0, mode: FFFP_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFolderFromPath)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), 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 { @@ -15279,10 +15279,10 @@ impl IKnownFolderManager { } pub unsafe fn Redirect(&self, rfid: *const windows_core::GUID, hwnd: P0, flags: u32, psztargetpath: P1, pexclusion: Option<&[windows_core::GUID]>, ppszerror: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), rfid, hwnd.into_param().abi(), flags, psztargetpath.into_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(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).Redirect)(windows_core::Interface::as_raw(self), rfid, hwnd.param().abi(), 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(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -15368,9 +15368,9 @@ windows_core::imp::interface_hierarchy!(ILaunchUIContext, windows_core::IUnknown impl ILaunchUIContext { pub unsafe fn SetAssociatedWindow(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAssociatedWindow)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAssociatedWindow)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn SetTabGroupingPreference(&self, value: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetTabGroupingPreference)(windows_core::Interface::as_raw(self), value).ok() @@ -15387,9 +15387,9 @@ windows_core::imp::interface_hierarchy!(ILaunchUIContextProvider, windows_core:: impl ILaunchUIContextProvider { pub unsafe fn UpdateContext(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateContext)(windows_core::Interface::as_raw(self), context.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateContext)(windows_core::Interface::as_raw(self), context.param().abi()).ok() } } #[repr(C)] @@ -15435,15 +15435,15 @@ impl IMenuPopup { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } pub unsafe fn SetClient(&self, punkclient: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetClient)(windows_core::Interface::as_raw(self), punkclient.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetClient)(windows_core::Interface::as_raw(self), punkclient.param().abi()).ok() } pub unsafe fn GetClient(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -15461,10 +15461,10 @@ impl IMenuPopup { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn SetSubMenu(&self, pmp: P0, fset: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSubMenu)(windows_core::Interface::as_raw(self), pmp.into_param().abi(), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSubMenu)(windows_core::Interface::as_raw(self), pmp.param().abi(), fset.param().abi()).ok() } } #[cfg(feature = "Win32_System_Ole")] @@ -15483,9 +15483,9 @@ windows_core::imp::interface_hierarchy!(IModalWindow, windows_core::IUnknown); impl IModalWindow { pub unsafe fn Show(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } } #[repr(C)] @@ -15498,23 +15498,23 @@ windows_core::imp::interface_hierarchy!(INameSpaceTreeAccessible, windows_core:: impl INameSpaceTreeAccessible { pub unsafe fn OnGetDefaultAccessibilityAction(&self, psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnGetDefaultAccessibilityAction)(windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OnGetDefaultAccessibilityAction)(windows_core::Interface::as_raw(self), psi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn OnDoDefaultAccessibilityAction(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDoDefaultAccessibilityAction)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDoDefaultAccessibilityAction)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnGetAccessibilityRole(&self, psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnGetAccessibilityRole)(windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).OnGetAccessibilityRole)(windows_core::Interface::as_raw(self), psi.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -15529,39 +15529,39 @@ windows_core::imp::interface_hierarchy!(INameSpaceTreeControl, windows_core::IUn impl INameSpaceTreeControl { pub unsafe fn Initialize(&self, hwndparent: P0, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), prc, nsctsflags).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), prc, nsctsflags).ok() } pub unsafe fn TreeAdvise(&self, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TreeAdvise)(windows_core::Interface::as_raw(self), punk.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() } pub unsafe fn AppendRoot(&self, psiroot: P0, grfenumflags: u32, grfrootstyle: u32, pif: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AppendRoot)(windows_core::Interface::as_raw(self), psiroot.into_param().abi(), grfenumflags, grfrootstyle, pif.into_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: P0, grfenumflags: u32, grfrootstyle: u32, pif: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertRoot)(windows_core::Interface::as_raw(self), iindex, psiroot.into_param().abi(), grfenumflags, grfrootstyle, pif.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveRoot)(windows_core::Interface::as_raw(self), psiroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveRoot)(windows_core::Interface::as_raw(self), psiroot.param().abi()).ok() } pub unsafe fn RemoveAllRoots(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveAllRoots)(windows_core::Interface::as_raw(self)).ok() @@ -15572,16 +15572,16 @@ impl INameSpaceTreeControl { } pub unsafe fn SetItemState(&self, psi: P0, nstcismask: u32, nstcisflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItemState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), nstcismask, 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), 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__ = std::mem::zeroed(); @@ -15589,35 +15589,35 @@ impl INameSpaceTreeControl { } pub unsafe fn GetItemCustomState(&self, psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemCustomState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemCustomState)(windows_core::Interface::as_raw(self), psi.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetItemCustomState(&self, psi: P0, istatenumber: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItemCustomState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnsureItemVisible)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnsureItemVisible)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn SetTheme(&self, psztheme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTheme)(windows_core::Interface::as_raw(self), psztheme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTheme)(windows_core::Interface::as_raw(self), psztheme.param().abi()).ok() } pub unsafe fn GetNextItem(&self, psi: P0, nstcgi: NSTCGNI) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNextItem)(windows_core::Interface::as_raw(self), psi.into_param().abi(), 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__ = std::mem::zeroed(); @@ -15625,10 +15625,10 @@ impl INameSpaceTreeControl { } pub unsafe fn GetItemRect(&self, psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetItemRect)(windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetItemRect)(windows_core::Interface::as_raw(self), psi.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CollapseAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CollapseAll)(windows_core::Interface::as_raw(self)).ok() @@ -15662,39 +15662,39 @@ windows_core::imp::interface_hierarchy!(INameSpaceTreeControl2, windows_core::IU impl INameSpaceTreeControl2 { pub unsafe fn Initialize(&self, hwndparent: P0, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), prc, nsctsflags).ok() + (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), prc, nsctsflags).ok() } pub unsafe fn TreeAdvise(&self, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.TreeAdvise)(windows_core::Interface::as_raw(self), punk.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.TreeUnadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn AppendRoot(&self, psiroot: P0, grfenumflags: u32, grfrootstyle: u32, pif: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AppendRoot)(windows_core::Interface::as_raw(self), psiroot.into_param().abi(), grfenumflags, grfrootstyle, pif.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AppendRoot)(windows_core::Interface::as_raw(self), psiroot.param().abi(), grfenumflags, grfrootstyle, pif.param().abi()).ok() } pub unsafe fn InsertRoot(&self, iindex: i32, psiroot: P0, grfenumflags: u32, grfrootstyle: u32, pif: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InsertRoot)(windows_core::Interface::as_raw(self), iindex, psiroot.into_param().abi(), grfenumflags, grfrootstyle, pif.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RemoveRoot)(windows_core::Interface::as_raw(self), psiroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RemoveRoot)(windows_core::Interface::as_raw(self), psiroot.param().abi()).ok() } pub unsafe fn RemoveAllRoots(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RemoveAllRoots)(windows_core::Interface::as_raw(self)).ok() @@ -15705,16 +15705,16 @@ impl INameSpaceTreeControl2 { } pub unsafe fn SetItemState(&self, psi: P0, nstcismask: u32, nstcisflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetItemState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), nstcismask, nstcisflags).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetItemState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), nstcismask, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -15722,35 +15722,35 @@ impl INameSpaceTreeControl2 { } pub unsafe fn GetItemCustomState(&self, psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetItemCustomState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetItemCustomState)(windows_core::Interface::as_raw(self), psi.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetItemCustomState(&self, psi: P0, istatenumber: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetItemCustomState)(windows_core::Interface::as_raw(self), psi.into_param().abi(), istatenumber).ok() + (windows_core::Interface::vtable(self).base__.SetItemCustomState)(windows_core::Interface::as_raw(self), psi.param().abi(), istatenumber).ok() } pub unsafe fn EnsureItemVisible(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnsureItemVisible)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnsureItemVisible)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn SetTheme(&self, psztheme: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTheme)(windows_core::Interface::as_raw(self), psztheme.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTheme)(windows_core::Interface::as_raw(self), psztheme.param().abi()).ok() } pub unsafe fn GetNextItem(&self, psi: P0, nstcgi: NSTCGNI) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetNextItem)(windows_core::Interface::as_raw(self), psi.into_param().abi(), nstcgi, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -15758,10 +15758,10 @@ impl INameSpaceTreeControl2 { } pub unsafe fn GetItemRect(&self, psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetItemRect)(windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetItemRect)(windows_core::Interface::as_raw(self), psi.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CollapseAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.CollapseAll)(windows_core::Interface::as_raw(self)).ok() @@ -15795,31 +15795,31 @@ impl INameSpaceTreeControlCustomDraw { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn PrePaint(&self, hdc: P0, prc: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PrePaint)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), prc, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PrePaint)(windows_core::Interface::as_raw(self), hdc.param().abi(), prc, &mut result__).map(|| result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn PostPaint(&self, hdc: P0, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PostPaint)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).PostPaint)(windows_core::Interface::as_raw(self), hdc.param().abi(), prc).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe fn ItemPrePaint(&self, hdc: P0, 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<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemPrePaint)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), prc, pnstccditem, pclrtext, pclrtextbk, plres).ok() + (windows_core::Interface::vtable(self).ItemPrePaint)(windows_core::Interface::as_raw(self), hdc.param().abi(), prc, pnstccditem, pclrtext, pclrtextbk, plres).ok() } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe fn ItemPostPaint(&self, hdc: P0, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ItemPostPaint)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), prc, pnstccditem).ok() + (windows_core::Interface::vtable(self).ItemPostPaint)(windows_core::Interface::as_raw(self), hdc.param().abi(), prc, pnstccditem).ok() } } #[repr(C)] @@ -15847,45 +15847,45 @@ windows_core::imp::interface_hierarchy!(INameSpaceTreeControlDropHandler, window impl INameSpaceTreeControlDropHandler { pub unsafe fn OnDragEnter(&self, psiover: P0, psiadata: P1, foutsidesource: P2, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragEnter)(windows_core::Interface::as_raw(self), psiover.into_param().abi(), psiadata.into_param().abi(), foutsidesource.into_param().abi(), grfkeystate, pdweffect).ok() + (windows_core::Interface::vtable(self).OnDragEnter)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), foutsidesource.param().abi(), grfkeystate, pdweffect).ok() } pub unsafe fn OnDragOver(&self, psiover: P0, psiadata: P1, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragOver)(windows_core::Interface::as_raw(self), psiover.into_param().abi(), psiadata.into_param().abi(), grfkeystate, pdweffect).ok() + (windows_core::Interface::vtable(self).OnDragOver)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), grfkeystate, pdweffect).ok() } pub unsafe fn OnDragPosition(&self, psiover: P0, psiadata: P1, inewposition: i32, ioldposition: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragPosition)(windows_core::Interface::as_raw(self), psiover.into_param().abi(), psiadata.into_param().abi(), inewposition, 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDrop)(windows_core::Interface::as_raw(self), psiover.into_param().abi(), psiadata.into_param().abi(), iposition, grfkeystate, pdweffect).ok() + (windows_core::Interface::vtable(self).OnDrop)(windows_core::Interface::as_raw(self), psiover.param().abi(), psiadata.param().abi(), iposition, grfkeystate, pdweffect).ok() } pub unsafe fn OnDropPosition(&self, psiover: P0, psiadata: P1, inewposition: i32, ioldposition: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDropPosition)(windows_core::Interface::as_raw(self), psiover.into_param().abi(), psiadata.into_param().abi(), inewposition, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDragLeave)(windows_core::Interface::as_raw(self), psiover.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDragLeave)(windows_core::Interface::as_raw(self), psiover.param().abi()).ok() } } #[repr(C)] @@ -15903,115 +15903,115 @@ windows_core::imp::interface_hierarchy!(INameSpaceTreeControlEvents, windows_cor impl INameSpaceTreeControlEvents { pub unsafe fn OnItemClick(&self, psi: P0, nstcehittest: u32, nstceclicktype: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemClick)(windows_core::Interface::as_raw(self), psi.into_param().abi(), nstcehittest, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPropertyItemCommit)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPropertyItemCommit)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnItemStateChanging(&self, psi: P0, nstcismask: u32, nstcisstate: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemStateChanging)(windows_core::Interface::as_raw(self), psi.into_param().abi(), nstcismask, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemStateChanged)(windows_core::Interface::as_raw(self), psi.into_param().abi(), nstcismask, 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSelectionChanged)(windows_core::Interface::as_raw(self), psiaselection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSelectionChanged)(windows_core::Interface::as_raw(self), psiaselection.param().abi()).ok() } pub unsafe fn OnKeyboardInput(&self, umsg: u32, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnKeyboardInput)(windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnKeyboardInput)(windows_core::Interface::as_raw(self), umsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn OnBeforeExpand(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeforeExpand)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnBeforeExpand)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnAfterExpand(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAfterExpand)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnAfterExpand)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnBeginLabelEdit(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeginLabelEdit)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnBeginLabelEdit)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnEndLabelEdit(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEndLabelEdit)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEndLabelEdit)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnGetToolTip(&self, psi: P0, psztip: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnGetToolTip)(windows_core::Interface::as_raw(self), psi.into_param().abi(), core::mem::transmute(psztip.as_ptr()), psztip.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).OnGetToolTip)(windows_core::Interface::as_raw(self), psi.param().abi(), core::mem::transmute(psztip.as_ptr()), psztip.len().try_into().unwrap()).ok() } pub unsafe fn OnBeforeItemDelete(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeforeItemDelete)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnBeforeItemDelete)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnItemAdded(&self, psi: P0, fisroot: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemAdded)(windows_core::Interface::as_raw(self), psi.into_param().abi(), fisroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnItemAdded)(windows_core::Interface::as_raw(self), psi.param().abi(), fisroot.param().abi()).ok() } pub unsafe fn OnItemDeleted(&self, psi: P0, fisroot: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnItemDeleted)(windows_core::Interface::as_raw(self), psi.into_param().abi(), fisroot.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnItemDeleted)(windows_core::Interface::as_raw(self), psi.param().abi(), fisroot.param().abi()).ok() } pub unsafe fn OnBeforeContextMenu(&self, psi: P0, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeforeContextMenu)(windows_core::Interface::as_raw(self), psi.into_param().abi(), riid, ppv).ok() + (windows_core::Interface::vtable(self).OnBeforeContextMenu)(windows_core::Interface::as_raw(self), psi.param().abi(), riid, 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAfterContextMenu)(windows_core::Interface::as_raw(self), psi.into_param().abi(), pcmin.into_param().abi(), riid, ppv).ok() + (windows_core::Interface::vtable(self).OnAfterContextMenu)(windows_core::Interface::as_raw(self), psi.param().abi(), pcmin.param().abi(), riid, ppv).ok() } pub unsafe fn OnBeforeStateImageChange(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnBeforeStateImageChange)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnBeforeStateImageChange)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn OnGetDefaultIconIndex(&self, psi: P0, pidefaulticon: *mut i32, piopenicon: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnGetDefaultIconIndex)(windows_core::Interface::as_raw(self), psi.into_param().abi(), pidefaulticon, piopenicon).ok() + (windows_core::Interface::vtable(self).OnGetDefaultIconIndex)(windows_core::Interface::as_raw(self), psi.param().abi(), pidefaulticon, piopenicon).ok() } } #[repr(C)] @@ -16054,24 +16054,24 @@ windows_core::imp::interface_hierarchy!(INamedPropertyBag, windows_core::IUnknow impl INamedPropertyBag { pub unsafe fn ReadPropertyNPB(&self, pszbagname: P0, pszpropname: P1, pvar: *mut windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReadPropertyNPB)(windows_core::Interface::as_raw(self), pszbagname.into_param().abi(), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).ReadPropertyNPB)(windows_core::Interface::as_raw(self), pszbagname.param().abi(), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } pub unsafe fn WritePropertyNPB(&self, pszbagname: P0, pszpropname: P1, pvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).WritePropertyNPB)(windows_core::Interface::as_raw(self), pszbagname.into_param().abi(), pszpropname.into_param().abi(), core::mem::transmute(pvar)).ok() + (windows_core::Interface::vtable(self).WritePropertyNPB)(windows_core::Interface::as_raw(self), pszbagname.param().abi(), pszpropname.param().abi(), core::mem::transmute(pvar)).ok() } pub unsafe fn RemovePropertyNPB(&self, pszbagname: P0, pszpropname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RemovePropertyNPB)(windows_core::Interface::as_raw(self), pszbagname.into_param().abi(), pszpropname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemovePropertyNPB)(windows_core::Interface::as_raw(self), pszbagname.param().abi(), pszpropname.param().abi()).ok() } } #[repr(C)] @@ -16086,10 +16086,10 @@ windows_core::imp::interface_hierarchy!(INamespaceWalk, windows_core::IUnknown); impl INamespaceWalk { pub unsafe fn Walk(&self, punktowalk: P0, dwflags: u32, cdepth: i32, pnswcb: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Walk)(windows_core::Interface::as_raw(self), punktowalk.into_param().abi(), dwflags, cdepth, pnswcb.into_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<()> { @@ -16111,23 +16111,23 @@ impl INamespaceWalkCB { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FoundItem(&self, psf: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FoundItem)(windows_core::Interface::as_raw(self), psf.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnterFolder)(windows_core::Interface::as_raw(self), psf.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LeaveFolder)(windows_core::Interface::as_raw(self), psf.into_param().abi(), 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), ppsztitle, ppszcancel).ok() @@ -16156,23 +16156,23 @@ impl INamespaceWalkCB2 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FoundItem(&self, psf: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FoundItem)(windows_core::Interface::as_raw(self), psf.into_param().abi(), pidl).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnterFolder)(windows_core::Interface::as_raw(self), psf.into_param().abi(), pidl).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LeaveFolder)(windows_core::Interface::as_raw(self), psf.into_param().abi(), pidl).ok() + (windows_core::Interface::vtable(self).base__.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).base__.InitializeProgressDialog)(windows_core::Interface::as_raw(self), ppsztitle, ppszcancel).ok() @@ -16242,19 +16242,19 @@ windows_core::imp::interface_hierarchy!(INewShortcutHookA, windows_core::IUnknow impl INewShortcutHookA { pub unsafe fn SetReferent(&self, pcszreferent: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReferent)(windows_core::Interface::as_raw(self), pcszreferent.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReferent)(windows_core::Interface::as_raw(self), pcszreferent.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn GetReferent(&self, pszreferent: &mut [u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetReferent)(windows_core::Interface::as_raw(self), core::mem::transmute(pszreferent.as_ptr()), pszreferent.len().try_into().unwrap()).ok() } pub unsafe fn SetFolder(&self, pcszfolder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFolder)(windows_core::Interface::as_raw(self), pcszfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFolder)(windows_core::Interface::as_raw(self), pcszfolder.param().abi()).ok() } pub unsafe fn GetFolder(&self, pszfolder: &mut [u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfolder.as_ptr()), pszfolder.len().try_into().unwrap()).ok() @@ -16281,19 +16281,19 @@ windows_core::imp::interface_hierarchy!(INewShortcutHookW, windows_core::IUnknow impl INewShortcutHookW { pub unsafe fn SetReferent(&self, pcszreferent: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetReferent)(windows_core::Interface::as_raw(self), pcszreferent.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetReferent)(windows_core::Interface::as_raw(self), pcszreferent.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn GetReferent(&self, pszreferent: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetReferent)(windows_core::Interface::as_raw(self), core::mem::transmute(pszreferent.as_ptr()), pszreferent.len().try_into().unwrap()).ok() } pub unsafe fn SetFolder(&self, pcszfolder: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFolder)(windows_core::Interface::as_raw(self), pcszfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFolder)(windows_core::Interface::as_raw(self), pcszfolder.param().abi()).ok() } pub unsafe fn GetFolder(&self, pszfolder: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(pszfolder.as_ptr()), pszfolder.len().try_into().unwrap()).ok() @@ -16332,9 +16332,9 @@ impl INewWDEvents { } pub unsafe fn SetCaption(&self, bstrcaption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCaption)(windows_core::Interface::as_raw(self), bstrcaption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCaption)(windows_core::Interface::as_raw(self), bstrcaption.param().abi()).ok() } pub unsafe fn Caption(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16342,38 +16342,38 @@ impl INewWDEvents { } pub unsafe fn put_Property(&self, bstrpropertyname: P0, pvproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), core::mem::transmute(pvproperty)).ok() + (windows_core::Interface::vtable(self).base__.put_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), core::mem::transmute(pvproperty)).ok() } pub unsafe fn get_Property(&self, bstrpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetWizardButtons(&self, vfenableback: P0, vfenablenext: P1, vflastpage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWizardButtons)(windows_core::Interface::as_raw(self), vfenableback.into_param().abi(), vfenablenext.into_param().abi(), vflastpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWizardButtons)(windows_core::Interface::as_raw(self), vfenableback.param().abi(), vfenablenext.param().abi(), vflastpage.param().abi()).ok() } pub unsafe fn SetHeaderText(&self, bstrheadertitle: P0, bstrheadersubtitle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHeaderText)(windows_core::Interface::as_raw(self), bstrheadertitle.into_param().abi(), bstrheadersubtitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHeaderText)(windows_core::Interface::as_raw(self), bstrheadertitle.param().abi(), bstrheadersubtitle.param().abi()).ok() } pub unsafe fn PassportAuthenticate(&self, bstrsigninurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PassportAuthenticate)(windows_core::Interface::as_raw(self), bstrsigninurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).PassportAuthenticate)(windows_core::Interface::as_raw(self), bstrsigninurl.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -16387,13 +16387,13 @@ windows_core::imp::interface_hierarchy!(INewWindowManager, windows_core::IUnknow impl INewWindowManager { pub unsafe fn EvaluateNewWindow(&self, pszurl: P0, pszname: P1, pszurlcontext: P2, pszfeatures: P3, freplace: P4, dwflags: u32, dwuseractiontime: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).EvaluateNewWindow)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), pszname.into_param().abi(), pszurlcontext.into_param().abi(), pszfeatures.into_param().abi(), freplace.into_param().abi(), dwflags, 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.param().abi(), dwflags, dwuseractiontime).ok() } } #[repr(C)] @@ -16422,15 +16422,15 @@ windows_core::imp::interface_hierarchy!(IObjMgr, windows_core::IUnknown); impl IObjMgr { pub unsafe fn Append(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Append)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn Remove(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } } #[repr(C)] @@ -16460,9 +16460,9 @@ windows_core::imp::interface_hierarchy!(IObjectWithAppUserModelID, windows_core: impl IObjectWithAppUserModelID { pub unsafe fn SetAppID(&self, pszappid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAppID)(windows_core::Interface::as_raw(self), pszappid.param().abi()).ok() } pub unsafe fn GetAppID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16522,9 +16522,9 @@ windows_core::imp::interface_hierarchy!(IObjectWithProgID, windows_core::IUnknow impl IObjectWithProgID { pub unsafe fn SetProgID(&self, pszprogid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProgID)(windows_core::Interface::as_raw(self), pszprogid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProgID)(windows_core::Interface::as_raw(self), pszprogid.param().abi()).ok() } pub unsafe fn GetProgID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16542,9 +16542,9 @@ windows_core::imp::interface_hierarchy!(IObjectWithSelection, windows_core::IUnk impl IObjectWithSelection { pub unsafe fn SetSelection(&self, psia: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), psia.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), psia.param().abi()).ok() } pub unsafe fn GetSelection(&self) -> windows_core::Result where @@ -16565,17 +16565,17 @@ windows_core::imp::interface_hierarchy!(IOpenControlPanel, windows_core::IUnknow impl IOpenControlPanel { pub unsafe fn Open(&self, pszname: P0, pszpage: P1, punksite: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), pszpage.into_param().abi(), punksite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), pszname.param().abi(), pszpage.param().abi(), punksite.param().abi()).ok() } pub unsafe fn GetPath(&self, pszname: P0, pszpath: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), pszname.param().abi(), core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap()).ok() } pub unsafe fn GetCurrentView(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -16594,12 +16594,12 @@ windows_core::imp::interface_hierarchy!(IOpenSearchSource, windows_core::IUnknow impl IOpenSearchSource { pub unsafe fn GetResults(&self, hwnd: P0, pszquery: P1, dwstartindex: u32, dwcount: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetResults)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pszquery.into_param().abi(), dwstartindex, 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.param().abi(), pszquery.param().abi(), dwstartindex, dwcount, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -16612,9 +16612,9 @@ windows_core::imp::interface_hierarchy!(IOperationsProgressDialog, windows_core: impl IOperationsProgressDialog { pub unsafe fn StartProgressDialog(&self, hwndowner: P0, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi(), flags).ok() + (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), hwndowner.param().abi(), flags).ok() } pub unsafe fn StopProgressDialog(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopProgressDialog)(windows_core::Interface::as_raw(self)).ok() @@ -16630,11 +16630,11 @@ impl IOperationsProgressDialog { } pub unsafe fn UpdateLocations(&self, psisource: P0, psitarget: P1, psiitem: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateLocations)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), psitarget.into_param().abi(), psiitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateLocations)(windows_core::Interface::as_raw(self), psisource.param().abi(), psitarget.param().abi(), psiitem.param().abi()).ok() } pub unsafe fn ResetTimer(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetTimer)(windows_core::Interface::as_raw(self)).ok() @@ -16677,86 +16677,86 @@ windows_core::imp::interface_hierarchy!(IPackageDebugSettings, windows_core::IUn impl IPackageDebugSettings { pub unsafe fn EnableDebugging(&self, packagefullname: P0, debuggercommandline: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableDebugging)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), debuggercommandline.into_param().abi(), environment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableDebugging)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), debuggercommandline.param().abi(), environment.param().abi()).ok() } pub unsafe fn DisableDebugging(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisableDebugging)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DisableDebugging)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn Suspend(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Suspend)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Suspend)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn Resume(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Resume)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn TerminateAllProcesses(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TerminateAllProcesses)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (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), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateBackgroundTasks)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), taskcount, taskids, tasknames).ok() + (windows_core::Interface::vtable(self).EnumerateBackgroundTasks)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), taskcount, taskids, 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), taskid).ok() } pub unsafe fn StartServicing(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartServicing)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartServicing)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn StopServicing(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopServicing)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StopServicing)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn StartSessionRedirection(&self, packagefullname: P0, sessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StopSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn GetPackageExecutionState(&self, packagefullname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPackageExecutionState)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetPackageExecutionState)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterForPackageStateChanges(&self, packagefullname: P0, ppackageexecutionstatechangenotification: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterForPackageStateChanges)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), ppackageexecutionstatechangenotification.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -16786,95 +16786,95 @@ windows_core::imp::interface_hierarchy!(IPackageDebugSettings2, windows_core::IU impl IPackageDebugSettings2 { pub unsafe fn EnableDebugging(&self, packagefullname: P0, debuggercommandline: P1, environment: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnableDebugging)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), debuggercommandline.into_param().abi(), environment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnableDebugging)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), debuggercommandline.param().abi(), environment.param().abi()).ok() } pub unsafe fn DisableDebugging(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DisableDebugging)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DisableDebugging)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn Suspend(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Suspend)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Suspend)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn Resume(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Resume)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Resume)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn TerminateAllProcesses(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TerminateAllProcesses)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumerateBackgroundTasks)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), taskcount, taskids, tasknames).ok() + (windows_core::Interface::vtable(self).base__.EnumerateBackgroundTasks)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), taskcount, taskids, tasknames).ok() } pub unsafe fn ActivateBackgroundTask(&self, taskid: *const windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ActivateBackgroundTask)(windows_core::Interface::as_raw(self), taskid).ok() } pub unsafe fn StartServicing(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartServicing)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StartServicing)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn StopServicing(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StopServicing)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StopServicing)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn StartSessionRedirection(&self, packagefullname: P0, sessionid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StartSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), sessionid).ok() + (windows_core::Interface::vtable(self).base__.StartSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), sessionid).ok() } pub unsafe fn StopSessionRedirection(&self, packagefullname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StopSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.StopSessionRedirection)(windows_core::Interface::as_raw(self), packagefullname.param().abi()).ok() } pub unsafe fn GetPackageExecutionState(&self, packagefullname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetPackageExecutionState)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetPackageExecutionState)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn RegisterForPackageStateChanges(&self, packagefullname: P0, ppackageexecutionstatechangenotification: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.RegisterForPackageStateChanges)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), ppackageexecutionstatechangenotification.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.UnregisterForPackageStateChanges)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn EnumerateApps(&self, packagefullname: P0, appcount: *mut u32, appusermodelids: *mut *mut windows_core::PWSTR, appdisplaynames: *mut *mut windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumerateApps)(windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), appcount, appusermodelids, appdisplaynames).ok() + (windows_core::Interface::vtable(self).EnumerateApps)(windows_core::Interface::as_raw(self), packagefullname.param().abi(), appcount, appusermodelids, appdisplaynames).ok() } } #[repr(C)] @@ -16887,9 +16887,9 @@ windows_core::imp::interface_hierarchy!(IPackageExecutionStateChangeNotification impl IPackageExecutionStateChangeNotification { pub unsafe fn OnStateChanged(&self, pszpackagefullname: P0, pesnewstate: PACKAGE_EXECUTION_STATE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), pszpackagefullname.into_param().abi(), pesnewstate).ok() + (windows_core::Interface::vtable(self).OnStateChanged)(windows_core::Interface::as_raw(self), pszpackagefullname.param().abi(), pesnewstate).ok() } } #[repr(C)] @@ -16903,9 +16903,9 @@ impl IParentAndItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetParentAndItem(&self, pidlparent: *const Common::ITEMIDLIST, psf: P0, pidlchild: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParentAndItem)(windows_core::Interface::as_raw(self), pidlparent, psf.into_param().abi(), 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<()> { @@ -16929,9 +16929,9 @@ windows_core::imp::interface_hierarchy!(IParseAndCreateItem, windows_core::IUnkn impl IParseAndCreateItem { pub unsafe fn SetItem(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetItem)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn GetItem(&self) -> windows_core::Result where @@ -17025,9 +17025,9 @@ impl IPersistFolder3 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn InitializeEx(&self, pbc: P0, pidlroot: *const Common::ITEMIDLIST, ppfti: *const PERSIST_FOLDER_TARGET_INFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeEx)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), pidlroot, 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<()> { @@ -17086,9 +17086,9 @@ windows_core::imp::interface_hierarchy!(IPreviewHandler, windows_core::IUnknown) impl IPreviewHandler { pub unsafe fn SetWindow(&self, hwnd: P0, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), prc).ok() + (windows_core::Interface::vtable(self).SetWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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), prc).ok() @@ -17155,9 +17155,9 @@ windows_core::imp::interface_hierarchy!(IPreviewHandlerVisuals, windows_core::IU impl IPreviewHandlerVisuals { pub unsafe fn SetBackgroundColor(&self, color: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), color.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), color.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { @@ -17165,9 +17165,9 @@ impl IPreviewHandlerVisuals { } pub unsafe fn SetTextColor(&self, color: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextColor)(windows_core::Interface::as_raw(self), color.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextColor)(windows_core::Interface::as_raw(self), color.param().abi()).ok() } } #[repr(C)] @@ -17202,11 +17202,11 @@ windows_core::imp::interface_hierarchy!(IPreviousVersionsInfo, windows_core::IUn impl IPreviousVersionsInfo { pub unsafe fn AreSnapshotsAvailable(&self, pszpath: P0, foktobeslow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AreSnapshotsAvailable)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).AreSnapshotsAvailable)(windows_core::Interface::as_raw(self), pszpath.param().abi(), foktobeslow.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -17220,10 +17220,10 @@ impl IProfferService { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ProfferService(&self, serviceid: *const windows_core::GUID, serviceprovider: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ProfferService)(windows_core::Interface::as_raw(self), serviceid, serviceprovider.into_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), cookie).ok() @@ -17243,25 +17243,25 @@ windows_core::imp::interface_hierarchy!(IProgressDialog, windows_core::IUnknown) impl IProgressDialog { pub unsafe fn StartProgressDialog(&self, hwndparent: P0, punkenablemodless: P1, dwflags: u32, pvresevered: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), punkenablemodless.into_param().abi(), dwflags, core::mem::transmute(pvresevered.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).StartProgressDialog)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), punkenablemodless.param().abi(), dwflags, core::mem::transmute(pvresevered.unwrap_or(std::ptr::null()))).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 SetTitle(&self, pwztitle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), pwztitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTitle)(windows_core::Interface::as_raw(self), pwztitle.param().abi()).ok() } pub unsafe fn SetAnimation(&self, hinstanimation: P0, idanimation: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAnimation)(windows_core::Interface::as_raw(self), hinstanimation.into_param().abi(), idanimation).ok() + (windows_core::Interface::vtable(self).SetAnimation)(windows_core::Interface::as_raw(self), hinstanimation.param().abi(), idanimation).ok() } pub unsafe fn HasUserCancelled(&self) -> super::super::Foundation::BOOL { (windows_core::Interface::vtable(self).HasUserCancelled)(windows_core::Interface::as_raw(self)) @@ -17274,16 +17274,16 @@ impl IProgressDialog { } pub unsafe fn SetLine(&self, dwlinenum: u32, pwzstring: P0, fcompactpath: P1, pvresevered: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLine)(windows_core::Interface::as_raw(self), dwlinenum, pwzstring.into_param().abi(), fcompactpath.into_param().abi(), core::mem::transmute(pvresevered.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetLine)(windows_core::Interface::as_raw(self), dwlinenum, pwzstring.param().abi(), fcompactpath.param().abi(), core::mem::transmute(pvresevered.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn SetCancelMsg(&self, pwzcancelmsg: P0, pvresevered: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCancelMsg)(windows_core::Interface::as_raw(self), pwzcancelmsg.into_param().abi(), core::mem::transmute(pvresevered.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).SetCancelMsg)(windows_core::Interface::as_raw(self), pwzcancelmsg.param().abi(), core::mem::transmute(pvresevered.unwrap_or(std::ptr::null()))).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), dwtimeraction, core::mem::transmute(pvresevered.unwrap_or(std::ptr::null()))).ok() @@ -17418,9 +17418,9 @@ impl IPublishedApp2 { } pub unsafe fn Install2(&self, pstinstall: *const super::super::Foundation::SYSTEMTIME, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Install2)(windows_core::Interface::as_raw(self), pstinstall, hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Install2)(windows_core::Interface::as_raw(self), pstinstall, hwndparent.param().abi()).ok() } } #[repr(C)] @@ -17448,10 +17448,10 @@ impl IPublishingWizard { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pdo: P0, dwoptions: u32, pszservicescope: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pdo.into_param().abi(), dwoptions, pszservicescope.into_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<()> { @@ -17476,37 +17476,37 @@ impl IQueryAssociations { #[cfg(feature = "Win32_System_Registry")] pub unsafe fn Init(&self, flags: ASSOCF, pszassoc: P0, hkprogid: P1, hwnd: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), flags, pszassoc.into_param().abi(), hkprogid.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), flags, pszassoc.param().abi(), hkprogid.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn GetString(&self, flags: ASSOCF, str: ASSOCSTR, pszextra: P0, pszout: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), flags, str, pszextra.into_param().abi(), core::mem::transmute(pszout), pcchout).ok() + (windows_core::Interface::vtable(self).GetString)(windows_core::Interface::as_raw(self), flags, str, pszextra.param().abi(), core::mem::transmute(pszout), pcchout).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn GetKey(&self, flags: ASSOCF, key: ASSOCKEY, pszextra: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetKey)(windows_core::Interface::as_raw(self), flags, key, pszextra.into_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: P0, pvout: Option<*mut core::ffi::c_void>, pcbout: Option<*mut u32>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), flags, data, pszextra.into_param().abi(), core::mem::transmute(pvout.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbout.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), flags, data, pszextra.param().abi(), core::mem::transmute(pvout.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbout.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetEnum(&self, flags: ASSOCF, assocenum: ASSOCENUM, pszextra: P0, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetEnum)(windows_core::Interface::as_raw(self), flags, assocenum, pszextra.into_param().abi(), riid, ppvout).ok() + (windows_core::Interface::vtable(self).GetEnum)(windows_core::Interface::as_raw(self), flags, assocenum, pszextra.param().abi(), riid, ppvout).ok() } } #[repr(C)] @@ -17529,10 +17529,10 @@ windows_core::imp::interface_hierarchy!(IQueryCancelAutoPlay, windows_core::IUnk impl IQueryCancelAutoPlay { pub unsafe fn AllowAutoPlay(&self, pszpath: P0, dwcontenttype: u32, pszlabel: P1, dwserialnumber: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AllowAutoPlay)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), dwcontenttype, pszlabel.into_param().abi(), 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)] @@ -17577,9 +17577,9 @@ impl IQueryContinueWithStatus { } pub unsafe fn SetStatusMessage(&self, psz: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusMessage)(windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatusMessage)(windows_core::Interface::as_raw(self), psz.param().abi()).ok() } } #[repr(C)] @@ -17614,9 +17614,9 @@ impl IRegTreeItem { } pub unsafe fn SetCheckState(&self, bcheck: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCheckState)(windows_core::Interface::as_raw(self), bcheck.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCheckState)(windows_core::Interface::as_raw(self), bcheck.param().abi()).ok() } } #[repr(C)] @@ -17652,10 +17652,10 @@ windows_core::imp::interface_hierarchy!(IRemoteComputer, windows_core::IUnknown) impl IRemoteComputer { pub unsafe fn Initialize(&self, pszmachine: P0, benumerating: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachine.into_param().abi(), benumerating.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pszmachine.param().abi(), benumerating.param().abi()).ok() } } #[repr(C)] @@ -17668,10 +17668,10 @@ windows_core::imp::interface_hierarchy!(IResolveShellLink, windows_core::IUnknow impl IResolveShellLink { pub unsafe fn ResolveShellLink(&self, punklink: P0, hwnd: P1, fflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ResolveShellLink)(windows_core::Interface::as_raw(self), punklink.into_param().abi(), hwnd.into_param().abi(), fflags).ok() + (windows_core::Interface::vtable(self).ResolveShellLink)(windows_core::Interface::as_raw(self), punklink.param().abi(), hwnd.param().abi(), fflags).ok() } } #[repr(C)] @@ -17684,9 +17684,9 @@ windows_core::imp::interface_hierarchy!(IResultsFolder, windows_core::IUnknown); impl IResultsFolder { pub unsafe fn AddItem(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddIDList(&self, pidl: *const Common::ITEMIDLIST, ppidladded: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result<()> { @@ -17694,9 +17694,9 @@ impl IResultsFolder { } pub unsafe fn RemoveItem(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn RemoveIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()> { @@ -17729,9 +17729,9 @@ impl IRunnableTask { } pub unsafe fn Kill(&self, bwait: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Kill)(windows_core::Interface::as_raw(self), bwait.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Kill)(windows_core::Interface::as_raw(self), bwait.param().abi()).ok() } pub unsafe fn Suspend(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Suspend)(windows_core::Interface::as_raw(self)).ok() @@ -17802,9 +17802,9 @@ impl IScriptErrorList { } pub unsafe fn setDetailsPaneOpen(&self, fdetailspaneopen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setDetailsPaneOpen)(windows_core::Interface::as_raw(self), fdetailspaneopen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setDetailsPaneOpen)(windows_core::Interface::as_raw(self), fdetailspaneopen.param().abi()).ok() } pub unsafe fn getPerErrorDisplay(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -17812,9 +17812,9 @@ impl IScriptErrorList { } pub unsafe fn setPerErrorDisplay(&self, fpererrordisplay: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setPerErrorDisplay)(windows_core::Interface::as_raw(self), fpererrordisplay.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setPerErrorDisplay)(windows_core::Interface::as_raw(self), fpererrordisplay.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -17885,9 +17885,9 @@ windows_core::imp::interface_hierarchy!(ISearchFolderItemFactory, windows_core:: impl ISearchFolderItemFactory { pub unsafe fn SetDisplayName(&self, pszdisplayname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszdisplayname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisplayName)(windows_core::Interface::as_raw(self), pszdisplayname.param().abi()).ok() } pub unsafe fn SetFolderTypeID(&self, ftid: windows_core::GUID) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetFolderTypeID)(windows_core::Interface::as_raw(self), core::mem::transmute(ftid)).ok() @@ -17916,16 +17916,16 @@ impl ISearchFolderItemFactory { } pub unsafe fn SetScope(&self, psiascope: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), psiascope.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetScope)(windows_core::Interface::as_raw(self), psiascope.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search"))] pub unsafe fn SetCondition(&self, pcondition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCondition)(windows_core::Interface::as_raw(self), pcondition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCondition)(windows_core::Interface::as_raw(self), pcondition.param().abi()).ok() } pub unsafe fn GetShellItem(&self) -> windows_core::Result where @@ -17993,9 +17993,9 @@ impl ISharedBitmap { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn InitializeBitmap(&self, hbm: P0, wtsat: WTS_ALPHATYPE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeBitmap)(windows_core::Interface::as_raw(self), hbm.into_param().abi(), wtsat).ok() + (windows_core::Interface::vtable(self).InitializeBitmap)(windows_core::Interface::as_raw(self), hbm.param().abi(), wtsat).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Detach(&self) -> windows_core::Result { @@ -18101,43 +18101,43 @@ impl IShellBrowser { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn InsertMenusSB(&self, hmenushared: P0, lpmenuwidths: *mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertMenusSB)(windows_core::Interface::as_raw(self), hmenushared.into_param().abi(), lpmenuwidths).ok() + (windows_core::Interface::vtable(self).InsertMenusSB)(windows_core::Interface::as_raw(self), hmenushared.param().abi(), lpmenuwidths).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetMenuSB(&self, hmenushared: P0, holemenures: isize, hwndactiveobject: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMenuSB)(windows_core::Interface::as_raw(self), hmenushared.into_param().abi(), holemenures, hwndactiveobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMenuSB)(windows_core::Interface::as_raw(self), hmenushared.param().abi(), holemenures, hwndactiveobject.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn RemoveMenusSB(&self, hmenushared: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveMenusSB)(windows_core::Interface::as_raw(self), hmenushared.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveMenusSB)(windows_core::Interface::as_raw(self), hmenushared.param().abi()).ok() } pub unsafe fn SetStatusTextSB(&self, pszstatustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusTextSB)(windows_core::Interface::as_raw(self), pszstatustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatusTextSB)(windows_core::Interface::as_raw(self), pszstatustext.param().abi()).ok() } pub unsafe fn EnableModelessSB(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableModelessSB)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableModelessSB)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAcceleratorSB(&self, pmsg: *const super::WindowsAndMessaging::MSG, wid: u16) -> windows_core::Result<()> { @@ -18158,10 +18158,10 @@ impl IShellBrowser { } pub unsafe fn SendControlMsg(&self, id: u32, umsg: u32, wparam: P0, lparam: P1, pret: Option<*mut super::super::Foundation::LRESULT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SendControlMsg)(windows_core::Interface::as_raw(self), id, umsg, wparam.into_param().abi(), lparam.into_param().abi(), core::mem::transmute(pret.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SendControlMsg)(windows_core::Interface::as_raw(self), id, umsg, wparam.param().abi(), lparam.param().abi(), core::mem::transmute(pret.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn QueryActiveShellView(&self) -> windows_core::Result { @@ -18171,9 +18171,9 @@ impl IShellBrowser { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn OnViewWindowActive(&self, pshv: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnViewWindowActive)(windows_core::Interface::as_raw(self), pshv.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnViewWindowActive)(windows_core::Interface::as_raw(self), pshv.param().abi()).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn SetToolbarItems(&self, lpbuttons: Option<&[super::Controls::TBBUTTON]>, uflags: u32) -> windows_core::Result<()> { @@ -18280,19 +18280,19 @@ impl IShellDispatch { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameSpace(&self, vdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).NameSpace)(windows_core::Interface::as_raw(self), vdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).NameSpace)(windows_core::Interface::as_raw(self), vdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BrowseForFolder(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.into_param().abi(), options, rootfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.param().abi(), options, rootfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> windows_core::Result { @@ -18301,15 +18301,15 @@ impl IShellDispatch { } pub unsafe fn Open(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Open)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn Explore(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Explore)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Explore)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MinimizeAll)(windows_core::Interface::as_raw(self)).ok() @@ -18358,9 +18358,9 @@ impl IShellDispatch { } pub unsafe fn ControlPanelItem(&self, bstrdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -18425,19 +18425,19 @@ impl IShellDispatch2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameSpace(&self, vdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BrowseForFolder(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.into_param().abi(), options, rootfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.param().abi(), options, rootfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> windows_core::Result { @@ -18446,15 +18446,15 @@ impl IShellDispatch2 { } pub unsafe fn Open(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Open)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn Explore(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Explore)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Explore)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.MinimizeAll)(windows_core::Interface::as_raw(self)).ok() @@ -18503,80 +18503,80 @@ impl IShellDispatch2 { } pub unsafe fn ControlPanelItem(&self, bstrdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.param().abi()).ok() } pub unsafe fn IsRestricted(&self, group: P0, restriction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsRestricted)(windows_core::Interface::as_raw(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsRestricted)(windows_core::Interface::as_raw(self), group.param().abi(), restriction.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ShellExecute(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).ShellExecute)(windows_core::Interface::as_raw(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShellExecute)(windows_core::Interface::as_raw(self), file.param().abi(), vargs.param().abi(), vdir.param().abi(), voperation.param().abi(), vshow.param().abi()).ok() } pub unsafe fn FindPrinter(&self, name: P0, location: P1, model: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).FindPrinter)(windows_core::Interface::as_raw(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FindPrinter)(windows_core::Interface::as_raw(self), name.param().abi(), location.param().abi(), model.param().abi()).ok() } pub unsafe fn GetSystemInformation(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSystemInformation)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSystemInformation)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStart(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ServiceStart)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ServiceStart)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStop(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ServiceStop)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ServiceStop)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsServiceRunning(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CanStartStopService(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanStartStopService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CanStartStopService)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowBrowserBar(&self, bstrclsid: P0, bshow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.param().abi(), bshow.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -18612,19 +18612,19 @@ impl IShellDispatch3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameSpace(&self, vdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BrowseForFolder(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.into_param().abi(), options, rootfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.param().abi(), options, rootfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> windows_core::Result { @@ -18633,15 +18633,15 @@ impl IShellDispatch3 { } pub unsafe fn Open(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn Explore(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.MinimizeAll)(windows_core::Interface::as_raw(self)).ok() @@ -18690,87 +18690,87 @@ impl IShellDispatch3 { } pub unsafe fn ControlPanelItem(&self, bstrdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.param().abi()).ok() } pub unsafe fn IsRestricted(&self, group: P0, restriction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsRestricted)(windows_core::Interface::as_raw(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsRestricted)(windows_core::Interface::as_raw(self), group.param().abi(), restriction.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ShellExecute(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShellExecute)(windows_core::Interface::as_raw(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ShellExecute)(windows_core::Interface::as_raw(self), file.param().abi(), vargs.param().abi(), vdir.param().abi(), voperation.param().abi(), vshow.param().abi()).ok() } pub unsafe fn FindPrinter(&self, name: P0, location: P1, model: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.FindPrinter)(windows_core::Interface::as_raw(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.FindPrinter)(windows_core::Interface::as_raw(self), name.param().abi(), location.param().abi(), model.param().abi()).ok() } pub unsafe fn GetSystemInformation(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStart(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStop(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsServiceRunning(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CanStartStopService(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowBrowserBar(&self, bstrclsid: P0, bshow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.param().abi(), bshow.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddToRecent(&self, varfile: P0, bstrcategory: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToRecent)(windows_core::Interface::as_raw(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddToRecent)(windows_core::Interface::as_raw(self), varfile.param().abi(), bstrcategory.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -18798,19 +18798,19 @@ impl IShellDispatch4 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameSpace(&self, vdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BrowseForFolder(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.into_param().abi(), options, rootfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.param().abi(), options, rootfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> windows_core::Result { @@ -18819,15 +18819,15 @@ impl IShellDispatch4 { } pub unsafe fn Open(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn Explore(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.MinimizeAll)(windows_core::Interface::as_raw(self)).ok() @@ -18876,87 +18876,87 @@ impl IShellDispatch4 { } pub unsafe fn ControlPanelItem(&self, bstrdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.param().abi()).ok() } pub unsafe fn IsRestricted(&self, group: P0, restriction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsRestricted)(windows_core::Interface::as_raw(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsRestricted)(windows_core::Interface::as_raw(self), group.param().abi(), restriction.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ShellExecute(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ShellExecute)(windows_core::Interface::as_raw(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ShellExecute)(windows_core::Interface::as_raw(self), file.param().abi(), vargs.param().abi(), vdir.param().abi(), voperation.param().abi(), vshow.param().abi()).ok() } pub unsafe fn FindPrinter(&self, name: P0, location: P1, model: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.FindPrinter)(windows_core::Interface::as_raw(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.FindPrinter)(windows_core::Interface::as_raw(self), name.param().abi(), location.param().abi(), model.param().abi()).ok() } pub unsafe fn GetSystemInformation(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStart(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStop(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsServiceRunning(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CanStartStopService(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowBrowserBar(&self, bstrclsid: P0, bshow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.param().abi(), bshow.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddToRecent(&self, varfile: P0, bstrcategory: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddToRecent)(windows_core::Interface::as_raw(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddToRecent)(windows_core::Interface::as_raw(self), varfile.param().abi(), bstrcategory.param().abi()).ok() } pub unsafe fn WindowsSecurity(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).WindowsSecurity)(windows_core::Interface::as_raw(self)).ok() @@ -18966,10 +18966,10 @@ impl IShellDispatch4 { } pub unsafe fn ExplorerPolicy(&self, bstrpolicyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExplorerPolicy)(windows_core::Interface::as_raw(self), bstrpolicyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ExplorerPolicy)(windows_core::Interface::as_raw(self), bstrpolicyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSetting(&self, lsetting: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19004,19 +19004,19 @@ impl IShellDispatch5 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameSpace(&self, vdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BrowseForFolder(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.into_param().abi(), options, rootfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.param().abi(), options, rootfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> windows_core::Result { @@ -19025,15 +19025,15 @@ impl IShellDispatch5 { } pub unsafe fn Open(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn Explore(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.MinimizeAll)(windows_core::Interface::as_raw(self)).ok() @@ -19082,87 +19082,87 @@ impl IShellDispatch5 { } pub unsafe fn ControlPanelItem(&self, bstrdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.param().abi()).ok() } pub unsafe fn IsRestricted(&self, group: P0, restriction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsRestricted)(windows_core::Interface::as_raw(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsRestricted)(windows_core::Interface::as_raw(self), group.param().abi(), restriction.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ShellExecute(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ShellExecute)(windows_core::Interface::as_raw(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ShellExecute)(windows_core::Interface::as_raw(self), file.param().abi(), vargs.param().abi(), vdir.param().abi(), voperation.param().abi(), vshow.param().abi()).ok() } pub unsafe fn FindPrinter(&self, name: P0, location: P1, model: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.FindPrinter)(windows_core::Interface::as_raw(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.FindPrinter)(windows_core::Interface::as_raw(self), name.param().abi(), location.param().abi(), model.param().abi()).ok() } pub unsafe fn GetSystemInformation(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStart(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStop(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsServiceRunning(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CanStartStopService(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowBrowserBar(&self, bstrclsid: P0, bshow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.param().abi(), bshow.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddToRecent(&self, varfile: P0, bstrcategory: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddToRecent)(windows_core::Interface::as_raw(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddToRecent)(windows_core::Interface::as_raw(self), varfile.param().abi(), bstrcategory.param().abi()).ok() } pub unsafe fn WindowsSecurity(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.WindowsSecurity)(windows_core::Interface::as_raw(self)).ok() @@ -19172,10 +19172,10 @@ impl IShellDispatch5 { } pub unsafe fn ExplorerPolicy(&self, bstrpolicyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ExplorerPolicy)(windows_core::Interface::as_raw(self), bstrpolicyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ExplorerPolicy)(windows_core::Interface::as_raw(self), bstrpolicyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSetting(&self, lsetting: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19210,19 +19210,19 @@ impl IShellDispatch6 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn NameSpace(&self, vdir: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.NameSpace)(windows_core::Interface::as_raw(self), vdir.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BrowseForFolder(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.into_param().abi(), options, rootfolder.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BrowseForFolder)(windows_core::Interface::as_raw(self), hwnd, title.param().abi(), options, rootfolder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> windows_core::Result { @@ -19231,15 +19231,15 @@ impl IShellDispatch6 { } pub unsafe fn Open(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Open)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn Explore(&self, vdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.Explore)(windows_core::Interface::as_raw(self), vdir.param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.MinimizeAll)(windows_core::Interface::as_raw(self)).ok() @@ -19288,87 +19288,87 @@ impl IShellDispatch6 { } pub unsafe fn ControlPanelItem(&self, bstrdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ControlPanelItem)(windows_core::Interface::as_raw(self), bstrdir.param().abi()).ok() } pub unsafe fn IsRestricted(&self, group: P0, restriction: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsRestricted)(windows_core::Interface::as_raw(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsRestricted)(windows_core::Interface::as_raw(self), group.param().abi(), restriction.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ShellExecute(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ShellExecute)(windows_core::Interface::as_raw(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ShellExecute)(windows_core::Interface::as_raw(self), file.param().abi(), vargs.param().abi(), vdir.param().abi(), voperation.param().abi(), vshow.param().abi()).ok() } pub unsafe fn FindPrinter(&self, name: P0, location: P1, model: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindPrinter)(windows_core::Interface::as_raw(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.FindPrinter)(windows_core::Interface::as_raw(self), name.param().abi(), location.param().abi(), model.param().abi()).ok() } pub unsafe fn GetSystemInformation(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.GetSystemInformation)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStart(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ServiceStart)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ServiceStop(&self, servicename: P0, persistent: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ServiceStop)(windows_core::Interface::as_raw(self), servicename.param().abi(), persistent.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsServiceRunning(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsServiceRunning)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CanStartStopService(&self, servicename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CanStartStopService)(windows_core::Interface::as_raw(self), servicename.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn ShowBrowserBar(&self, bstrclsid: P0, bshow: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserBar)(windows_core::Interface::as_raw(self), bstrclsid.param().abi(), bshow.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddToRecent(&self, varfile: P0, bstrcategory: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddToRecent)(windows_core::Interface::as_raw(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddToRecent)(windows_core::Interface::as_raw(self), varfile.param().abi(), bstrcategory.param().abi()).ok() } pub unsafe fn WindowsSecurity(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.WindowsSecurity)(windows_core::Interface::as_raw(self)).ok() @@ -19378,10 +19378,10 @@ impl IShellDispatch6 { } pub unsafe fn ExplorerPolicy(&self, bstrpolicyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ExplorerPolicy)(windows_core::Interface::as_raw(self), bstrpolicyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ExplorerPolicy)(windows_core::Interface::as_raw(self), bstrpolicyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSetting(&self, lsetting: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19406,10 +19406,10 @@ impl IShellExtInit { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn Initialize(&self, pidlfolder: Option<*const Common::ITEMIDLIST>, pdtobj: P0, hkeyprogid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), pdtobj.into_param().abi(), hkeyprogid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), pdtobj.param().abi(), hkeyprogid.param().abi()).ok() } } #[repr(C)] @@ -19449,9 +19449,9 @@ impl IShellFavoritesNameSpace { } pub unsafe fn InvokeContextMenuCommand(&self, strcommand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeContextMenuCommand)(windows_core::Interface::as_raw(self), strcommand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeContextMenuCommand)(windows_core::Interface::as_raw(self), strcommand.param().abi()).ok() } pub unsafe fn MoveSelectionTo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).MoveSelectionTo)(windows_core::Interface::as_raw(self)).ok() @@ -19470,9 +19470,9 @@ impl IShellFavoritesNameSpace { } pub unsafe fn SetRoot(&self, bstrfullpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), bstrfullpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRoot)(windows_core::Interface::as_raw(self), bstrfullpath.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -19499,50 +19499,50 @@ impl IShellFolder { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn ParseDisplayName(&self, hwnd: P0, pbc: P1, pszdisplayname: P2, pcheaten: Option<*const u32>, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pbc.into_param().abi(), pszdisplayname.into_param().abi(), core::mem::transmute(pcheaten.unwrap_or(std::ptr::null())), ppidl, pdwattributes).ok() + (windows_core::Interface::vtable(self).ParseDisplayName)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pbc.param().abi(), pszdisplayname.param().abi(), core::mem::transmute(pcheaten.unwrap_or(std::ptr::null())), ppidl, pdwattributes).ok() } pub unsafe fn EnumObjects(&self, hwnd: P0, grfflags: u32, ppenumidlist: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), grfflags, core::mem::transmute(ppenumidlist)) + (windows_core::Interface::vtable(self).EnumObjects)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToObject)(windows_core::Interface::as_raw(self), pidl, pbc.into_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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToStorage)(windows_core::Interface::as_raw(self), pidl, pbc.into_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: P0, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CompareIDs)(windows_core::Interface::as_raw(self), lparam.into_param().abi(), pidl1, pidl2).ok() + (windows_core::Interface::vtable(self).CompareIDs)(windows_core::Interface::as_raw(self), lparam.param().abi(), pidl1, pidl2).ok() } pub unsafe fn CreateViewObject(&self, hwndowner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateViewObject)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi(), &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.param().abi(), &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<()> { @@ -19551,11 +19551,11 @@ impl IShellFolder { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetUIObjectOf(&self, hwndowner: P0, apidl: &[*const Common::ITEMIDLIST], rgfreserved: Option<*const u32>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetUIObjectOf)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), &T::IID, core::mem::transmute(rgfreserved.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetUIObjectOf)(windows_core::Interface::as_raw(self), hwndowner.param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), &T::IID, core::mem::transmute(rgfreserved.unwrap_or(std::ptr::null())), &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<()> { @@ -19564,10 +19564,10 @@ impl IShellFolder { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetNameOf(&self, hwnd: P0, pidl: *const Common::ITEMIDLIST, pszname: P1, uflags: SHGDNF, ppidlout: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNameOf)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pidl, pszname.into_param().abi(), uflags, core::mem::transmute(ppidlout.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).SetNameOf)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pidl, pszname.param().abi(), uflags, core::mem::transmute(ppidlout.unwrap_or(std::ptr::null_mut()))).ok() } } #[repr(C)] @@ -19614,50 +19614,50 @@ impl IShellFolder2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn ParseDisplayName(&self, hwnd: P0, pbc: P1, pszdisplayname: P2, pcheaten: Option<*const u32>, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ParseDisplayName)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pbc.into_param().abi(), pszdisplayname.into_param().abi(), core::mem::transmute(pcheaten.unwrap_or(std::ptr::null())), ppidl, pdwattributes).ok() + (windows_core::Interface::vtable(self).base__.ParseDisplayName)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pbc.param().abi(), pszdisplayname.param().abi(), core::mem::transmute(pcheaten.unwrap_or(std::ptr::null())), ppidl, pdwattributes).ok() } pub unsafe fn EnumObjects(&self, hwnd: P0, grfflags: u32, ppenumidlist: *mut Option) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumObjects)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), grfflags, core::mem::transmute(ppenumidlist)) + (windows_core::Interface::vtable(self).base__.EnumObjects)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.BindToObject)(windows_core::Interface::as_raw(self), pidl, pbc.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.BindToStorage)(windows_core::Interface::as_raw(self), pidl, pbc.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CompareIDs)(windows_core::Interface::as_raw(self), lparam.into_param().abi(), pidl1, pidl2).ok() + (windows_core::Interface::vtable(self).base__.CompareIDs)(windows_core::Interface::as_raw(self), lparam.param().abi(), pidl1, pidl2).ok() } pub unsafe fn CreateViewObject(&self, hwndowner: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.CreateViewObject)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.CreateViewObject)(windows_core::Interface::as_raw(self), hwndowner.param().abi(), &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<()> { @@ -19666,11 +19666,11 @@ impl IShellFolder2 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetUIObjectOf(&self, hwndowner: P0, apidl: &[*const Common::ITEMIDLIST], rgfreserved: Option<*const u32>) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.GetUIObjectOf)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), &T::IID, core::mem::transmute(rgfreserved.unwrap_or(std::ptr::null())), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetUIObjectOf)(windows_core::Interface::as_raw(self), hwndowner.param().abi(), apidl.len().try_into().unwrap(), core::mem::transmute(apidl.as_ptr()), &T::IID, core::mem::transmute(rgfreserved.unwrap_or(std::ptr::null())), &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<()> { @@ -19679,10 +19679,10 @@ impl IShellFolder2 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetNameOf(&self, hwnd: P0, pidl: *const Common::ITEMIDLIST, pszname: P1, uflags: SHGDNF, ppidlout: Option<*mut *mut Common::ITEMIDLIST>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNameOf)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pidl, pszname.into_param().abi(), uflags, core::mem::transmute(ppidlout.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.SetNameOf)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pidl, pszname.param().abi(), uflags, core::mem::transmute(ppidlout.unwrap_or(std::ptr::null_mut()))).ok() } pub unsafe fn GetDefaultSearchGUID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19739,9 +19739,9 @@ impl IShellFolderBand { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn InitializeSFB(&self, psf: P0, pidl: Option<*const Common::ITEMIDLIST>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitializeSFB)(windows_core::Interface::as_raw(self), psf.into_param().abi(), core::mem::transmute(pidl.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).InitializeSFB)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidl.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetBandInfoSFB(&self, pbi: *const BANDINFOSFB) -> windows_core::Result<()> { @@ -19773,9 +19773,9 @@ windows_core::imp::interface_hierarchy!(IShellFolderView, windows_core::IUnknown impl IShellFolderView { pub unsafe fn Rearrange(&self, lparamsort: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Rearrange)(windows_core::Interface::as_raw(self), lparamsort.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Rearrange)(windows_core::Interface::as_raw(self), lparamsort.param().abi()).ok() } pub unsafe fn GetArrangeParam(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19823,9 +19823,9 @@ impl IShellFolderView { } pub unsafe fn SetRedraw(&self, bredraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRedraw)(windows_core::Interface::as_raw(self), bredraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRedraw)(windows_core::Interface::as_raw(self), bredraw.param().abi()).ok() } pub unsafe fn GetSelectedCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19838,9 +19838,9 @@ impl IShellFolderView { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn IsDropOnSource(&self, pdroptarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsDropOnSource)(windows_core::Interface::as_raw(self), pdroptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsDropOnSource)(windows_core::Interface::as_raw(self), pdroptarget.param().abi()).ok() } pub unsafe fn GetDragPoint(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19853,9 +19853,9 @@ impl IShellFolderView { #[cfg(feature = "Win32_System_Com")] pub unsafe fn MoveIcons(&self, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveIcons)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MoveIcons)(windows_core::Interface::as_raw(self), pdataobject.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetItemPos(&self, pidl: *const Common::ITEMIDLIST, ppt: *const super::super::Foundation::POINT) -> windows_core::Result<()> { @@ -19864,22 +19864,22 @@ impl IShellFolderView { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn IsBkDropTarget(&self, pdroptarget: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsBkDropTarget)(windows_core::Interface::as_raw(self), pdroptarget.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IsBkDropTarget)(windows_core::Interface::as_raw(self), pdroptarget.param().abi()).ok() } pub unsafe fn SetClipboard(&self, bmove: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipboard)(windows_core::Interface::as_raw(self), bmove.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClipboard)(windows_core::Interface::as_raw(self), bmove.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPoints(&self, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPoints)(windows_core::Interface::as_raw(self), pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPoints)(windows_core::Interface::as_raw(self), pdataobject.param().abi()).ok() } pub unsafe fn GetItemSpacing(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -19887,10 +19887,10 @@ impl IShellFolderView { } pub unsafe fn SetCallback(&self, pnewcb: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pnewcb.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SetCallback)(windows_core::Interface::as_raw(self), pnewcb.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Select(&self, dwflags: SFVS_SELECT) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Select)(windows_core::Interface::as_raw(self), dwflags.0 as _).ok() @@ -19901,9 +19901,9 @@ impl IShellFolderView { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAutomationObject(&self, pdisp: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutomationObject)(windows_core::Interface::as_raw(self), pdisp.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutomationObject)(windows_core::Interface::as_raw(self), pdisp.param().abi()).ok() } } #[repr(C)] @@ -19979,10 +19979,10 @@ windows_core::imp::interface_hierarchy!(IShellFolderViewCB, windows_core::IUnkno impl IShellFolderViewCB { pub unsafe fn MessageSFVCB(&self, umsg: SFVM_MESSAGE_ID, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MessageSFVCB)(windows_core::Interface::as_raw(self), umsg.0 as _, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MessageSFVCB)(windows_core::Interface::as_raw(self), umsg.0 as _, wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -20027,12 +20027,12 @@ impl IShellFolderViewDual { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PopupItemMenu(&self, pfi: P0, vx: P1, vy: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PopupItemMenu)(windows_core::Interface::as_raw(self), pfi.into_param().abi(), vx.into_param().abi(), vy.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PopupItemMenu)(windows_core::Interface::as_raw(self), pfi.param().abi(), vx.param().abi(), vy.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Script(&self) -> windows_core::Result { @@ -20116,12 +20116,12 @@ impl IShellFolderViewDual2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PopupItemMenu(&self, pfi: P0, vx: P1, vy: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.PopupItemMenu)(windows_core::Interface::as_raw(self), pfi.into_param().abi(), vx.into_param().abi(), vy.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.PopupItemMenu)(windows_core::Interface::as_raw(self), pfi.param().abi(), vx.param().abi(), vy.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Script(&self) -> windows_core::Result { @@ -20188,12 +20188,12 @@ impl IShellFolderViewDual3 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn PopupItemMenu(&self, pfi: P0, vx: P1, vy: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.PopupItemMenu)(windows_core::Interface::as_raw(self), pfi.into_param().abi(), vx.into_param().abi(), vy.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.PopupItemMenu)(windows_core::Interface::as_raw(self), pfi.param().abi(), vx.param().abi(), vy.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Script(&self) -> windows_core::Result { @@ -20220,9 +20220,9 @@ impl IShellFolderViewDual3 { } pub unsafe fn SetGroupBy(&self, bstrgroupby: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGroupBy)(windows_core::Interface::as_raw(self), bstrgroupby.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGroupBy)(windows_core::Interface::as_raw(self), bstrgroupby.param().abi()).ok() } pub unsafe fn FolderFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -20237,9 +20237,9 @@ impl IShellFolderViewDual3 { } pub unsafe fn SetSortColumns(&self, bstrsortcolumns: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSortColumns)(windows_core::Interface::as_raw(self), bstrsortcolumns.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSortColumns)(windows_core::Interface::as_raw(self), bstrsortcolumns.param().abi()).ok() } pub unsafe fn SetIconSize(&self, iiconsize: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetIconSize)(windows_core::Interface::as_raw(self), iiconsize).ok() @@ -20250,9 +20250,9 @@ impl IShellFolderViewDual3 { } pub unsafe fn FilterView(&self, bstrfiltertext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FilterView)(windows_core::Interface::as_raw(self), bstrfiltertext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).FilterView)(windows_core::Interface::as_raw(self), bstrfiltertext.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -20315,9 +20315,9 @@ windows_core::imp::interface_hierarchy!(IShellIconOverlayIdentifier, windows_cor impl IShellIconOverlayIdentifier { pub unsafe fn IsMemberOf(&self, pwszpath: P0, dwattrib: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IsMemberOf)(windows_core::Interface::as_raw(self), pwszpath.into_param().abi(), 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(), pindex, pdwflags).ok() @@ -20339,15 +20339,15 @@ windows_core::imp::interface_hierarchy!(IShellIconOverlayManager, windows_core:: impl IShellIconOverlayManager { pub unsafe fn GetFileOverlayInfo(&self, pwszpath: P0, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetFileOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.into_param().abi(), dwattrib, pindex, dwflags).ok() + (windows_core::Interface::vtable(self).GetFileOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), dwattrib, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetReservedOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.into_param().abi(), dwattrib, pindex, dwflags, ireservedid).ok() + (windows_core::Interface::vtable(self).GetReservedOverlayInfo)(windows_core::Interface::as_raw(self), pwszpath.param().abi(), dwattrib, 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), dwflags).ok() @@ -20357,9 +20357,9 @@ impl IShellIconOverlayManager { } pub unsafe fn OverlayIndexFromImageIndex(&self, iimage: i32, piindex: *mut i32, fadd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OverlayIndexFromImageIndex)(windows_core::Interface::as_raw(self), iimage, piindex, fadd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OverlayIndexFromImageIndex)(windows_core::Interface::as_raw(self), iimage, piindex, fadd.param().abi()).ok() } } #[repr(C)] @@ -20380,9 +20380,9 @@ impl IShellImageData { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Draw(&self, hdc: P0, prcdest: *mut super::super::Foundation::RECT, prcsrc: *mut super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc.into_param().abi(), prcdest, prcsrc).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc.param().abi(), prcdest, prcsrc).ok() } pub unsafe fn NextFrame(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).NextFrame)(windows_core::Interface::as_raw(self)).ok() @@ -20453,15 +20453,15 @@ impl IShellImageData { #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SetEncoderParams(&self, pbagenc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEncoderParams)(windows_core::Interface::as_raw(self), pbagenc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEncoderParams)(windows_core::Interface::as_raw(self), pbagenc.param().abi()).ok() } pub unsafe fn DisplayName(&self, wszname: P0, cch: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DisplayName)(windows_core::Interface::as_raw(self), wszname.into_param().abi(), 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), puresolutionx, puresolutiony).ok() @@ -20471,10 +20471,10 @@ impl IShellImageData { } pub unsafe fn RegisterAbort(&self, pabort: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterAbort)(windows_core::Interface::as_raw(self), pabort.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).RegisterAbort)(windows_core::Interface::as_raw(self), pabort.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn CloneFrame(&self, ppimg: *mut *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CloneFrame)(windows_core::Interface::as_raw(self), ppimg).ok() @@ -20550,25 +20550,25 @@ impl IShellImageDataFactory { } pub unsafe fn CreateImageFromFile(&self, pszpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageFromFile)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageFromFile)(windows_core::Interface::as_raw(self), pszpath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateImageFromStream(&self, pstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateImageFromStream)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateImageFromStream)(windows_core::Interface::as_raw(self), pstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDataFormatFromPath(&self, pszpath: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataFormatFromPath)(windows_core::Interface::as_raw(self), pszpath.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDataFormatFromPath)(windows_core::Interface::as_raw(self), pszpath.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -20588,11 +20588,11 @@ impl IShellItem { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToHandler(&self, pbc: P0, bhid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), 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__ = std::mem::zeroed(); @@ -20609,10 +20609,10 @@ impl IShellItem { } pub unsafe fn Compare(&self, psi: P0, hint: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), psi.into_param().abi(), 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)] @@ -20636,11 +20636,11 @@ impl IShellItem2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToHandler(&self, pbc: P0, bhid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.BindToHandler)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), bhid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -20657,10 +20657,10 @@ impl IShellItem2 { } pub unsafe fn Compare(&self, psi: P0, hint: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), psi.into_param().abi(), hint, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Compare)(windows_core::Interface::as_raw(self), psi.param().abi(), hint, &mut result__).map(|| result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStore(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> windows_core::Result @@ -20673,11 +20673,11 @@ impl IShellItem2 { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStoreWithCreateObject(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetPropertyStoreWithCreateObject)(windows_core::Interface::as_raw(self), flags, punkcreateobject.into_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: &[PropertiesSystem::PROPERTYKEY], flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> windows_core::Result @@ -20698,9 +20698,9 @@ impl IShellItem2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update(&self, pbc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), pbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), pbc.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetProperty(&self, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::Result { @@ -20805,11 +20805,11 @@ impl IShellItemArray { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToHandler(&self, pbc: P0, bhid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), 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 @@ -20873,16 +20873,16 @@ windows_core::imp::interface_hierarchy!(IShellItemFilter, windows_core::IUnknown impl IShellItemFilter { pub unsafe fn IncludeItem(&self, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).IncludeItem)(windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).IncludeItem)(windows_core::Interface::as_raw(self), psi.param().abi()).ok() } pub unsafe fn GetEnumFlagsForItem(&self, psi: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEnumFlagsForItem)(windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetEnumFlagsForItem)(windows_core::Interface::as_raw(self), psi.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -20973,24 +20973,24 @@ windows_core::imp::interface_hierarchy!(IShellLibrary, windows_core::IUnknown); impl IShellLibrary { pub unsafe fn LoadLibraryFromItem(&self, psilibrary: P0, grfmode: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadLibraryFromItem)(windows_core::Interface::as_raw(self), psilibrary.into_param().abi(), 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), kfidlibrary, grfmode).ok() } pub unsafe fn AddFolder(&self, psilocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFolder)(windows_core::Interface::as_raw(self), psilocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFolder)(windows_core::Interface::as_raw(self), psilocation.param().abi()).ok() } pub unsafe fn RemoveFolder(&self, psilocation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFolder)(windows_core::Interface::as_raw(self), psilocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveFolder)(windows_core::Interface::as_raw(self), psilocation.param().abi()).ok() } pub unsafe fn GetFolders(&self, lff: LIBRARYFOLDERFILTER) -> windows_core::Result where @@ -21001,11 +21001,11 @@ impl IShellLibrary { } pub unsafe fn ResolveFolder(&self, psifoldertoresolve: P0, dwtimeout: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).ResolveFolder)(windows_core::Interface::as_raw(self), psifoldertoresolve.into_param().abi(), 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 @@ -21016,9 +21016,9 @@ impl IShellLibrary { } pub unsafe fn SetDefaultSaveFolder(&self, dsft: DEFAULTSAVEFOLDERTYPE, psi: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultSaveFolder)(windows_core::Interface::as_raw(self), dsft, psi.into_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__ = std::mem::zeroed(); @@ -21040,27 +21040,27 @@ impl IShellLibrary { } pub unsafe fn SetIcon(&self, pszicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), pszicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), pszicon.param().abi()).ok() } pub unsafe fn Commit(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Commit)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn Save(&self, psifoldertosavein: P0, pszlibraryname: P1, lsf: LIBRARYSAVEFLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), psifoldertosavein.into_param().abi(), pszlibraryname.into_param().abi(), 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: P0, lsf: LIBRARYSAVEFLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SaveInKnownFolder)(windows_core::Interface::as_raw(self), kfidtosavein, pszlibraryname.into_param().abi(), 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)] @@ -21105,27 +21105,27 @@ impl IShellLinkA { } pub unsafe fn SetDescription(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetWorkingDirectory(&self, pszdir: &mut [u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWorkingDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(pszdir.as_ptr()), pszdir.len().try_into().unwrap()).ok() } pub unsafe fn SetWorkingDirectory(&self, pszdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), pszdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), pszdir.param().abi()).ok() } pub unsafe fn GetArguments(&self, pszargs: &mut [u8]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetArguments)(windows_core::Interface::as_raw(self), core::mem::transmute(pszargs.as_ptr()), pszargs.len().try_into().unwrap()).ok() } pub unsafe fn SetArguments(&self, pszargs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), pszargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), pszargs.param().abi()).ok() } pub unsafe fn GetHotkey(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21148,27 +21148,27 @@ impl IShellLinkA { } pub unsafe fn SetIconLocation(&self, psziconpath: P0, iicon: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), psziconpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRelativePath)(windows_core::Interface::as_raw(self), pszpathrel.into_param().abi(), 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: P0, fflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), fflags).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), hwnd.param().abi(), fflags).ok() } pub unsafe fn SetPath(&self, pszfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pszfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pszfile.param().abi()).ok() } } #[repr(C)] @@ -21249,9 +21249,9 @@ impl IShellLinkDual { } pub unsafe fn SetPath(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21259,9 +21259,9 @@ impl IShellLinkDual { } pub unsafe fn SetDescription(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn WorkingDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21269,9 +21269,9 @@ impl IShellLinkDual { } pub unsafe fn SetWorkingDirectory(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Arguments(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21279,9 +21279,9 @@ impl IShellLinkDual { } pub unsafe fn SetArguments(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Hotkey(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21306,15 +21306,15 @@ impl IShellLinkDual { } pub unsafe fn SetIconLocation(&self, bs: P0, iicon: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), bs.into_param().abi(), iicon).ok() + (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), bs.param().abi(), iicon).ok() } pub unsafe fn Save(&self, vwhere: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), vwhere.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), vwhere.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -21350,9 +21350,9 @@ impl IShellLinkDual2 { } pub unsafe fn SetPath(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetPath)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetPath)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Description(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21360,9 +21360,9 @@ impl IShellLinkDual2 { } pub unsafe fn SetDescription(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDescription)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn WorkingDirectory(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21370,9 +21370,9 @@ impl IShellLinkDual2 { } pub unsafe fn SetWorkingDirectory(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWorkingDirectory)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Arguments(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21380,9 +21380,9 @@ impl IShellLinkDual2 { } pub unsafe fn SetArguments(&self, bs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetArguments)(windows_core::Interface::as_raw(self), bs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetArguments)(windows_core::Interface::as_raw(self), bs.param().abi()).ok() } pub unsafe fn Hotkey(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21407,15 +21407,15 @@ impl IShellLinkDual2 { } pub unsafe fn SetIconLocation(&self, bs: P0, iicon: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetIconLocation)(windows_core::Interface::as_raw(self), bs.into_param().abi(), iicon).ok() + (windows_core::Interface::vtable(self).base__.SetIconLocation)(windows_core::Interface::as_raw(self), bs.param().abi(), iicon).ok() } pub unsafe fn Save(&self, vwhere: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), vwhere.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Save)(windows_core::Interface::as_raw(self), vwhere.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Target(&self) -> windows_core::Result { @@ -21453,27 +21453,27 @@ impl IShellLinkW { } pub unsafe fn SetDescription(&self, pszname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDescription)(windows_core::Interface::as_raw(self), pszname.param().abi()).ok() } pub unsafe fn GetWorkingDirectory(&self, pszdir: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetWorkingDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(pszdir.as_ptr()), pszdir.len().try_into().unwrap()).ok() } pub unsafe fn SetWorkingDirectory(&self, pszdir: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), pszdir.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWorkingDirectory)(windows_core::Interface::as_raw(self), pszdir.param().abi()).ok() } pub unsafe fn GetArguments(&self, pszargs: &mut [u16]) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetArguments)(windows_core::Interface::as_raw(self), core::mem::transmute(pszargs.as_ptr()), pszargs.len().try_into().unwrap()).ok() } pub unsafe fn SetArguments(&self, pszargs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), pszargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetArguments)(windows_core::Interface::as_raw(self), pszargs.param().abi()).ok() } pub unsafe fn GetHotkey(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21496,27 +21496,27 @@ impl IShellLinkW { } pub unsafe fn SetIconLocation(&self, psziconpath: P0, iicon: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconLocation)(windows_core::Interface::as_raw(self), psziconpath.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRelativePath)(windows_core::Interface::as_raw(self), pszpathrel.into_param().abi(), 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: P0, fflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), fflags).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), hwnd.param().abi(), fflags).ok() } pub unsafe fn SetPath(&self, pszfile: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pszfile.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPath)(windows_core::Interface::as_raw(self), pszfile.param().abi()).ok() } } #[repr(C)] @@ -21561,9 +21561,9 @@ windows_core::imp::interface_hierarchy!(IShellMenu, windows_core::IUnknown); impl IShellMenu { pub unsafe fn Initialize(&self, psmc: P0, uid: u32, uidancestor: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psmc.into_param().abi(), uid, uidancestor, 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(std::ptr::null_mut())), core::mem::transmute(puid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(puidancestor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))).ok() @@ -21571,10 +21571,10 @@ impl IShellMenu { #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetShellFolder(&self, psf: P0, pidlfolder: Option<*const Common::ITEMIDLIST>, hkey: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetShellFolder)(windows_core::Interface::as_raw(self), psf.into_param().abi(), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), hkey.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).SetShellFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), hkey.param().abi(), 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<()> { @@ -21583,10 +21583,10 @@ impl IShellMenu { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetMenu(&self, hmenu: P0, hwnd: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), hwnd.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).SetMenu)(windows_core::Interface::as_raw(self), hmenu.param().abi(), hwnd.param().abi(), 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<()> { @@ -21602,9 +21602,9 @@ impl IShellMenu { } pub unsafe fn SetMenuToolbar(&self, punk: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMenuToolbar)(windows_core::Interface::as_raw(self), punk.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).SetMenuToolbar)(windows_core::Interface::as_raw(self), punk.param().abi(), dwflags).ok() } } #[repr(C)] @@ -21644,10 +21644,10 @@ impl IShellMenuCallback { #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn CallbackSM(&self, psmd: *mut SMDATA, umsg: u32, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CallbackSM)(windows_core::Interface::as_raw(self), psmd, umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CallbackSM)(windows_core::Interface::as_raw(self), psmd, umsg, wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -21687,9 +21687,9 @@ impl IShellNameSpace { } pub unsafe fn InvokeContextMenuCommand(&self, strcommand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InvokeContextMenuCommand)(windows_core::Interface::as_raw(self), strcommand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InvokeContextMenuCommand)(windows_core::Interface::as_raw(self), strcommand.param().abi()).ok() } pub unsafe fn MoveSelectionTo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.MoveSelectionTo)(windows_core::Interface::as_raw(self)).ok() @@ -21708,9 +21708,9 @@ impl IShellNameSpace { } pub unsafe fn SetRoot(&self, bstrfullpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRoot)(windows_core::Interface::as_raw(self), bstrfullpath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRoot)(windows_core::Interface::as_raw(self), bstrfullpath.param().abi()).ok() } pub unsafe fn EnumOptions(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21727,9 +21727,9 @@ impl IShellNameSpace { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSelectedItem(&self, pitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelectedItem)(windows_core::Interface::as_raw(self), pitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelectedItem)(windows_core::Interface::as_raw(self), pitem.param().abi()).ok() } pub unsafe fn Root(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21737,9 +21737,9 @@ impl IShellNameSpace { } pub unsafe fn SetRoot2(&self, var: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRoot2)(windows_core::Interface::as_raw(self), var.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRoot2)(windows_core::Interface::as_raw(self), var.param().abi()).ok() } pub unsafe fn Depth(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21775,9 +21775,9 @@ impl IShellNameSpace { } pub unsafe fn SetColumns(&self, bstrcolumns: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColumns)(windows_core::Interface::as_raw(self), bstrcolumns.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetColumns)(windows_core::Interface::as_raw(self), bstrcolumns.param().abi()).ok() } pub unsafe fn CountViewTypes(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -21793,9 +21793,9 @@ impl IShellNameSpace { } pub unsafe fn Expand(&self, var: P0, idepth: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), var.into_param().abi(), idepth).ok() + (windows_core::Interface::vtable(self).Expand)(windows_core::Interface::as_raw(self), var.param().abi(), idepth).ok() } pub unsafe fn UnselectAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnselectAll)(windows_core::Interface::as_raw(self)).ok() @@ -21842,16 +21842,16 @@ impl IShellPropSheetExt { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPages(&self, pfnaddpage: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), pfnaddpage, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPages)(windows_core::Interface::as_raw(self), pfnaddpage, lparam.param().abi()).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn ReplacePage(&self, upageid: u32, pfnreplacewith: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ReplacePage)(windows_core::Interface::as_raw(self), upageid, pfnreplacewith, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ReplacePage)(windows_core::Interface::as_raw(self), upageid, pfnreplacewith, lparam.param().abi()).ok() } } #[repr(C)] @@ -21871,9 +21871,9 @@ windows_core::imp::interface_hierarchy!(IShellRunDll, windows_core::IUnknown); impl IShellRunDll { pub unsafe fn Run(&self, pszargs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), pszargs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), pszargs.param().abi()).ok() } } #[repr(C)] @@ -21886,9 +21886,9 @@ windows_core::imp::interface_hierarchy!(IShellService, windows_core::IUnknown); impl IShellService { pub unsafe fn SetOwner(&self, punkowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), punkowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOwner)(windows_core::Interface::as_raw(self), punkowner.param().abi()).ok() } } #[repr(C)] @@ -21901,15 +21901,15 @@ windows_core::imp::interface_hierarchy!(IShellTaskScheduler, windows_core::IUnkn impl IShellTaskScheduler { pub unsafe fn AddTask(&self, prt: P0, rtoid: *const windows_core::GUID, lparam: usize, dwpriority: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTask)(windows_core::Interface::as_raw(self), prt.into_param().abi(), rtoid, lparam, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveTasks)(windows_core::Interface::as_raw(self), rtoid, lparam, bwaitifrunning.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveTasks)(windows_core::Interface::as_raw(self), rtoid, lparam, bwaitifrunning.param().abi()).ok() } pub unsafe fn CountTasks(&self, rtoid: *const windows_core::GUID) -> u32 { (windows_core::Interface::vtable(self).CountTasks)(windows_core::Interface::as_raw(self), rtoid) @@ -21943,63 +21943,63 @@ impl IShellUIHelper { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -22037,69 +22037,69 @@ impl IShellUIHelper2 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -22109,11 +22109,11 @@ impl IShellUIHelper2 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22135,16 +22135,16 @@ impl IShellUIHelper2 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22156,9 +22156,9 @@ impl IShellUIHelper2 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22207,69 +22207,69 @@ impl IShellUIHelper3 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -22279,11 +22279,11 @@ impl IShellUIHelper3 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22305,16 +22305,16 @@ impl IShellUIHelper3 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22326,9 +22326,9 @@ impl IShellUIHelper3 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22340,17 +22340,17 @@ impl IShellUIHelper3 { } pub unsafe fn AddService(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddService)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddService)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn IsServiceInstalled(&self, url: P0, verb: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsServiceInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsServiceInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22358,25 +22358,25 @@ impl IShellUIHelper3 { } pub unsafe fn AddToFavoritesBar(&self, url: P0, title: P1, r#type: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.into_param().abi(), title.into_param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.param().abi(), title.param().abi(), core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -22387,15 +22387,15 @@ impl IShellUIHelper3 { } pub unsafe fn EnableSuggestedSites(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShowTabsHelp)(windows_core::Interface::as_raw(self)).ok() @@ -22439,69 +22439,69 @@ impl IShellUIHelper4 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -22511,11 +22511,11 @@ impl IShellUIHelper4 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22537,16 +22537,16 @@ impl IShellUIHelper4 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22558,9 +22558,9 @@ impl IShellUIHelper4 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22572,17 +22572,17 @@ impl IShellUIHelper4 { } pub unsafe fn AddService(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddService)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddService)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn IsServiceInstalled(&self, url: P0, verb: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22590,25 +22590,25 @@ impl IShellUIHelper4 { } pub unsafe fn AddToFavoritesBar(&self, url: P0, title: P1, r#type: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.into_param().abi(), title.into_param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.param().abi(), title.param().abi(), core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -22619,15 +22619,15 @@ impl IShellUIHelper4 { } pub unsafe fn EnableSuggestedSites(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ShowTabsHelp)(windows_core::Interface::as_raw(self)).ok() @@ -22644,25 +22644,25 @@ impl IShellUIHelper4 { } pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: P0, bstrtooltip: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeUpdateThumbBarButton(&self, buttonid: P0, fenabled: P1, fvisible: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.into_param().abi(), fenabled.into_param().abi(), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.param().abi(), fenabled.param().abi(), fvisible.param().abi()).ok() } pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: P0, pvardescription: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.into_param().abi(), core::mem::transmute(pvardescription)).ok() + (windows_core::Interface::vtable(self).msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.param().abi(), core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msSiteModeClearIconOverlay)(windows_core::Interface::as_raw(self)).ok() @@ -22672,17 +22672,17 @@ impl IShellUIHelper4 { } pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.param().abi()).ok() } pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), core::mem::transmute(pvarwindowtype)).ok() + (windows_core::Interface::vtable(self).msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstractionuri.param().abi(), bstriconuri.param().abi(), core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msSiteModeClearJumpList)(windows_core::Interface::as_raw(self)).ok() @@ -22692,36 +22692,36 @@ impl IShellUIHelper4 { } pub unsafe fn msSiteModeAddButtonStyle(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeShowButtonStyle(&self, uibuttonid: P0, uistyleid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), uistyleid.param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msSiteModeActivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msAddTrackingProtectionList(&self, url: P0, bstrfiltername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.param().abi(), bstrfiltername.param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22772,69 +22772,69 @@ impl IShellUIHelper5 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -22844,11 +22844,11 @@ impl IShellUIHelper5 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22870,16 +22870,16 @@ impl IShellUIHelper5 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22891,9 +22891,9 @@ impl IShellUIHelper5 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22905,17 +22905,17 @@ impl IShellUIHelper5 { } pub unsafe fn AddService(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddService)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddService)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn IsServiceInstalled(&self, url: P0, verb: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -22923,25 +22923,25 @@ impl IShellUIHelper5 { } pub unsafe fn AddToFavoritesBar(&self, url: P0, title: P1, r#type: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.into_param().abi(), title.into_param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.param().abi(), title.param().abi(), core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -22952,15 +22952,15 @@ impl IShellUIHelper5 { } pub unsafe fn EnableSuggestedSites(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ShowTabsHelp)(windows_core::Interface::as_raw(self)).ok() @@ -22977,25 +22977,25 @@ impl IShellUIHelper5 { } pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: P0, bstrtooltip: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeUpdateThumbBarButton(&self, buttonid: P0, fenabled: P1, fvisible: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.into_param().abi(), fenabled.into_param().abi(), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.param().abi(), fenabled.param().abi(), fvisible.param().abi()).ok() } pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: P0, pvardescription: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.into_param().abi(), core::mem::transmute(pvardescription)).ok() + (windows_core::Interface::vtable(self).base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.param().abi(), core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.msSiteModeClearIconOverlay)(windows_core::Interface::as_raw(self)).ok() @@ -23005,17 +23005,17 @@ impl IShellUIHelper5 { } pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.param().abi()).ok() } pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), core::mem::transmute(pvarwindowtype)).ok() + (windows_core::Interface::vtable(self).base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstractionuri.param().abi(), bstriconuri.param().abi(), core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.msSiteModeClearJumpList)(windows_core::Interface::as_raw(self)).ok() @@ -23025,36 +23025,36 @@ impl IShellUIHelper5 { } pub unsafe fn msSiteModeAddButtonStyle(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeShowButtonStyle(&self, uibuttonid: P0, uistyleid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), uistyleid.param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.msSiteModeActivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msAddTrackingProtectionList(&self, url: P0, bstrfiltername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.param().abi(), bstrfiltername.param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23066,10 +23066,10 @@ impl IShellUIHelper5 { } pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msReportSafeUrl(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msReportSafeUrl)(windows_core::Interface::as_raw(self)).ok() @@ -23088,9 +23088,9 @@ impl IShellUIHelper5 { } pub unsafe fn msChangeDefaultBrowser(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -23122,69 +23122,69 @@ impl IShellUIHelper6 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -23194,11 +23194,11 @@ impl IShellUIHelper6 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23220,16 +23220,16 @@ impl IShellUIHelper6 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23241,9 +23241,9 @@ impl IShellUIHelper6 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23255,17 +23255,17 @@ impl IShellUIHelper6 { } pub unsafe fn AddService(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn IsServiceInstalled(&self, url: P0, verb: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23273,25 +23273,25 @@ impl IShellUIHelper6 { } pub unsafe fn AddToFavoritesBar(&self, url: P0, title: P1, r#type: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.into_param().abi(), title.into_param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.param().abi(), title.param().abi(), core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -23302,15 +23302,15 @@ impl IShellUIHelper6 { } pub unsafe fn EnableSuggestedSites(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.ShowTabsHelp)(windows_core::Interface::as_raw(self)).ok() @@ -23327,25 +23327,25 @@ impl IShellUIHelper6 { } pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: P0, bstrtooltip: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeUpdateThumbBarButton(&self, buttonid: P0, fenabled: P1, fvisible: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.into_param().abi(), fenabled.into_param().abi(), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.param().abi(), fenabled.param().abi(), fvisible.param().abi()).ok() } pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: P0, pvardescription: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.into_param().abi(), core::mem::transmute(pvardescription)).ok() + (windows_core::Interface::vtable(self).base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.param().abi(), core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.msSiteModeClearIconOverlay)(windows_core::Interface::as_raw(self)).ok() @@ -23355,17 +23355,17 @@ impl IShellUIHelper6 { } pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.param().abi()).ok() } pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), core::mem::transmute(pvarwindowtype)).ok() + (windows_core::Interface::vtable(self).base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstractionuri.param().abi(), bstriconuri.param().abi(), core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.msSiteModeClearJumpList)(windows_core::Interface::as_raw(self)).ok() @@ -23375,36 +23375,36 @@ impl IShellUIHelper6 { } pub unsafe fn msSiteModeAddButtonStyle(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeShowButtonStyle(&self, uibuttonid: P0, uistyleid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), uistyleid.param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.msSiteModeActivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msAddTrackingProtectionList(&self, url: P0, bstrfiltername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.param().abi(), bstrfiltername.param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23416,10 +23416,10 @@ impl IShellUIHelper6 { } pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msReportSafeUrl(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.msReportSafeUrl)(windows_core::Interface::as_raw(self)).ok() @@ -23438,37 +23438,37 @@ impl IShellUIHelper6 { } pub unsafe fn msChangeDefaultBrowser(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msStopPeriodicTileUpdate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msStartPeriodicTileUpdate(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStartPeriodicTileUpdateBatch(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msClearTile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msClearTile)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msPinnedSiteState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23476,45 +23476,45 @@ impl IShellUIHelper6 { } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msScheduledTileNotification(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.param().abi(), bstrnotificationid.param().abi(), bstrnotificationtag.param().abi(), starttime.param().abi(), expirationtime.param().abi()).ok() } pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.param().abi()).ok() } pub unsafe fn msStartPeriodicBadgeUpdate(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).msStopPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self)).ok() @@ -23559,69 +23559,69 @@ impl IShellUIHelper7 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -23631,11 +23631,11 @@ impl IShellUIHelper7 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23657,16 +23657,16 @@ impl IShellUIHelper7 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23678,9 +23678,9 @@ impl IShellUIHelper7 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23692,17 +23692,17 @@ impl IShellUIHelper7 { } pub unsafe fn AddService(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn IsServiceInstalled(&self, url: P0, verb: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23710,25 +23710,25 @@ impl IShellUIHelper7 { } pub unsafe fn AddToFavoritesBar(&self, url: P0, title: P1, r#type: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.into_param().abi(), title.into_param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.param().abi(), title.param().abi(), core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -23739,15 +23739,15 @@ impl IShellUIHelper7 { } pub unsafe fn EnableSuggestedSites(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.ShowTabsHelp)(windows_core::Interface::as_raw(self)).ok() @@ -23764,25 +23764,25 @@ impl IShellUIHelper7 { } pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: P0, bstrtooltip: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeUpdateThumbBarButton(&self, buttonid: P0, fenabled: P1, fvisible: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.into_param().abi(), fenabled.into_param().abi(), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.param().abi(), fenabled.param().abi(), fvisible.param().abi()).ok() } pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: P0, pvardescription: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.into_param().abi(), core::mem::transmute(pvardescription)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.param().abi(), core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeClearIconOverlay)(windows_core::Interface::as_raw(self)).ok() @@ -23792,17 +23792,17 @@ impl IShellUIHelper7 { } pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.param().abi()).ok() } pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), core::mem::transmute(pvarwindowtype)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstractionuri.param().abi(), bstriconuri.param().abi(), core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeClearJumpList)(windows_core::Interface::as_raw(self)).ok() @@ -23812,36 +23812,36 @@ impl IShellUIHelper7 { } pub unsafe fn msSiteModeAddButtonStyle(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeShowButtonStyle(&self, uibuttonid: P0, uistyleid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), uistyleid.param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.msSiteModeActivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msAddTrackingProtectionList(&self, url: P0, bstrfiltername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.param().abi(), bstrfiltername.param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23853,10 +23853,10 @@ impl IShellUIHelper7 { } pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msReportSafeUrl(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.msReportSafeUrl)(windows_core::Interface::as_raw(self)).ok() @@ -23875,37 +23875,37 @@ impl IShellUIHelper7 { } pub unsafe fn msChangeDefaultBrowser(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.msStopPeriodicTileUpdate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msStartPeriodicTileUpdate(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStartPeriodicTileUpdateBatch(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msClearTile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.msClearTile)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msPinnedSiteState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -23913,45 +23913,45 @@ impl IShellUIHelper7 { } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msScheduledTileNotification(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.param().abi(), bstrnotificationid.param().abi(), bstrnotificationtag.param().abi(), starttime.param().abi(), expirationtime.param().abi()).ok() } pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.param().abi()).ok() } pub unsafe fn msStartPeriodicBadgeUpdate(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.msStopPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self)).ok() @@ -23961,61 +23961,61 @@ impl IShellUIHelper7 { } pub unsafe fn SetExperimentalFlag(&self, bstrflagstring: P0, vfflag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.into_param().abi(), vfflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.param().abi(), vfflag.param().abi()).ok() } pub unsafe fn GetExperimentalFlag(&self, bstrflagstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetExperimentalValue(&self, bstrvaluestring: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.into_param().abi(), dwvalue).ok() + (windows_core::Interface::vtable(self).SetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.param().abi(), dwvalue).ok() } pub unsafe fn GetExperimentalValue(&self, bstrvaluestring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ResetAllExperimentalFlagsAndValues)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetNeedIEAutoLaunchFlag(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetNeedIEAutoLaunchFlag(&self, bstrurl: P0, flag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), flag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), flag.param().abi()).ok() } pub unsafe fn HasNeedIEAutoLaunchFlag(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).HasNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn LaunchIE(&self, bstrurl: P0, automated: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchIE)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), automated.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LaunchIE)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), automated.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -24049,69 +24049,69 @@ impl IShellUIHelper8 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -24121,11 +24121,11 @@ impl IShellUIHelper8 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24147,16 +24147,16 @@ impl IShellUIHelper8 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24168,9 +24168,9 @@ impl IShellUIHelper8 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24182,17 +24182,17 @@ impl IShellUIHelper8 { } pub unsafe fn AddService(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn IsServiceInstalled(&self, url: P0, verb: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24200,25 +24200,25 @@ impl IShellUIHelper8 { } pub unsafe fn AddToFavoritesBar(&self, url: P0, title: P1, r#type: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.into_param().abi(), title.into_param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.param().abi(), title.param().abi(), core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -24229,15 +24229,15 @@ impl IShellUIHelper8 { } pub unsafe fn EnableSuggestedSites(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ShowTabsHelp)(windows_core::Interface::as_raw(self)).ok() @@ -24254,25 +24254,25 @@ impl IShellUIHelper8 { } pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: P0, bstrtooltip: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeUpdateThumbBarButton(&self, buttonid: P0, fenabled: P1, fvisible: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.into_param().abi(), fenabled.into_param().abi(), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.param().abi(), fenabled.param().abi(), fvisible.param().abi()).ok() } pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: P0, pvardescription: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.into_param().abi(), core::mem::transmute(pvardescription)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.param().abi(), core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeClearIconOverlay)(windows_core::Interface::as_raw(self)).ok() @@ -24282,17 +24282,17 @@ impl IShellUIHelper8 { } pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.param().abi()).ok() } pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), core::mem::transmute(pvarwindowtype)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstractionuri.param().abi(), bstriconuri.param().abi(), core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeClearJumpList)(windows_core::Interface::as_raw(self)).ok() @@ -24302,36 +24302,36 @@ impl IShellUIHelper8 { } pub unsafe fn msSiteModeAddButtonStyle(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeShowButtonStyle(&self, uibuttonid: P0, uistyleid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), uistyleid.param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeActivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msAddTrackingProtectionList(&self, url: P0, bstrfiltername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.param().abi(), bstrfiltername.param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24343,10 +24343,10 @@ impl IShellUIHelper8 { } pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msReportSafeUrl(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.msReportSafeUrl)(windows_core::Interface::as_raw(self)).ok() @@ -24365,37 +24365,37 @@ impl IShellUIHelper8 { } pub unsafe fn msChangeDefaultBrowser(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.msStopPeriodicTileUpdate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msStartPeriodicTileUpdate(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStartPeriodicTileUpdateBatch(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msClearTile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.msClearTile)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msPinnedSiteState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24403,45 +24403,45 @@ impl IShellUIHelper8 { } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msScheduledTileNotification(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.param().abi(), bstrnotificationid.param().abi(), bstrnotificationtag.param().abi(), starttime.param().abi(), expirationtime.param().abi()).ok() } pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.param().abi()).ok() } pub unsafe fn msStartPeriodicBadgeUpdate(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.msStopPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self)).ok() @@ -24451,61 +24451,61 @@ impl IShellUIHelper8 { } pub unsafe fn SetExperimentalFlag(&self, bstrflagstring: P0, vfflag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.into_param().abi(), vfflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.param().abi(), vfflag.param().abi()).ok() } pub unsafe fn GetExperimentalFlag(&self, bstrflagstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetExperimentalValue(&self, bstrvaluestring: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.into_param().abi(), dwvalue).ok() + (windows_core::Interface::vtable(self).base__.SetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.param().abi(), dwvalue).ok() } pub unsafe fn GetExperimentalValue(&self, bstrvaluestring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.ResetAllExperimentalFlagsAndValues)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetNeedIEAutoLaunchFlag(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.GetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetNeedIEAutoLaunchFlag(&self, bstrurl: P0, flag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), flag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), flag.param().abi()).ok() } pub unsafe fn HasNeedIEAutoLaunchFlag(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.HasNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.HasNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn LaunchIE(&self, bstrurl: P0, automated: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LaunchIE)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), automated.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LaunchIE)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), automated.param().abi()).ok() } pub unsafe fn GetCVListData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24531,9 +24531,9 @@ impl IShellUIHelper8 { } pub unsafe fn LaunchInHVSI(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LaunchInHVSI)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LaunchInHVSI)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -24565,69 +24565,69 @@ impl IShellUIHelper9 { } pub unsafe fn AddFavorite(&self, url: P0, title: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddFavorite)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(title.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AddChannel(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddChannel)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn AddDesktopComponent(&self, url: P0, r#type: P1, left: Option<*const windows_core::VARIANT>, top: Option<*const windows_core::VARIANT>, width: Option<*const windows_core::VARIANT>, height: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.into_param().abi(), r#type.into_param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(windows_core::Interface::as_raw(self), url.param().abi(), r#type.param().abi(), core::mem::transmute(left.unwrap_or(std::ptr::null())), core::mem::transmute(top.unwrap_or(std::ptr::null())), core::mem::transmute(width.unwrap_or(std::ptr::null())), core::mem::transmute(height.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn IsSubscribed(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn NavigateAndFind(&self, url: P0, strquery: P1, vartargetframe: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.into_param().abi(), strquery.into_param().abi(), core::mem::transmute(vartargetframe)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(windows_core::Interface::as_raw(self), url.param().abi(), strquery.param().abi(), core::mem::transmute(vartargetframe)).ok() } pub unsafe fn ImportExportFavorites(&self, fimport: P0, strimpexppath: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.into_param().abi(), strimpexppath.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(windows_core::Interface::as_raw(self), fimport.param().abi(), strimpexppath.param().abi()).ok() } pub unsafe fn AutoCompleteSaveForm(&self, form: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AutoCompleteSaveForm)(windows_core::Interface::as_raw(self), core::mem::transmute(form.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoScan(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AutoScan)(windows_core::Interface::as_raw(self), strsearch.param().abi(), strfailureurl.param().abi(), core::mem::transmute(pvartargetframe.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn AutoCompleteAttach(&self, reserved: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AutoCompleteAttach)(windows_core::Interface::as_raw(self), core::mem::transmute(reserved.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn ShowBrowserUI(&self, bstrname: P0, pvarin: *const windows_core::VARIANT) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(windows_core::Interface::as_raw(self), bstrname.param().abi(), core::mem::transmute(pvarin), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn AddSearchProvider(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddSearchProvider)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RunOnceShown)(windows_core::Interface::as_raw(self)).ok() @@ -24637,11 +24637,11 @@ impl IShellUIHelper9 { } pub unsafe fn CustomizeSettings(&self, fsqm: P0, fphishing: P1, bstrlocale: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.into_param().abi(), fphishing.into_param().abi(), bstrlocale.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CustomizeSettings)(windows_core::Interface::as_raw(self), fsqm.param().abi(), fphishing.param().abi(), bstrlocale.param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24663,16 +24663,16 @@ impl IShellUIHelper9 { } pub unsafe fn CustomizeClearType(&self, fset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CustomizeClearType)(windows_core::Interface::as_raw(self), fset.param().abi()).ok() } pub unsafe fn IsSearchProviderInstalled(&self, url: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), &mut result__).map(|| result__) } pub unsafe fn IsSearchMigrated(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24684,9 +24684,9 @@ impl IShellUIHelper9 { } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(windows_core::Interface::as_raw(self), fcomplete.param().abi()).ok() } pub unsafe fn RunOnceHasShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24698,17 +24698,17 @@ impl IShellUIHelper9 { } pub unsafe fn AddService(&self, url: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddService)(windows_core::Interface::as_raw(self), url.param().abi()).ok() } pub unsafe fn IsServiceInstalled(&self, url: P0, verb: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsServiceInstalled)(windows_core::Interface::as_raw(self), url.param().abi(), verb.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24716,25 +24716,25 @@ impl IShellUIHelper9 { } pub unsafe fn AddToFavoritesBar(&self, url: P0, title: P1, r#type: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.into_param().abi(), title.into_param().abi(), core::mem::transmute(r#type)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddToFavoritesBar)(windows_core::Interface::as_raw(self), url.param().abi(), title.param().abi(), core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BuildNewTabPage)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetRecentlyClosedVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetActivitiesVisible)(windows_core::Interface::as_raw(self), fvisible.param().abi()).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ContentDiscoveryReset)(windows_core::Interface::as_raw(self)).ok() @@ -24745,15 +24745,15 @@ impl IShellUIHelper9 { } pub unsafe fn EnableSuggestedSites(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.EnableSuggestedSites)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateToSuggestedSites)(windows_core::Interface::as_raw(self), bstrrelativeurl.param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ShowTabsHelp)(windows_core::Interface::as_raw(self)).ok() @@ -24770,25 +24770,25 @@ impl IShellUIHelper9 { } pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: P0, bstrtooltip: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddThumbBarButton)(windows_core::Interface::as_raw(self), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeUpdateThumbBarButton(&self, buttonid: P0, fenabled: P1, fvisible: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.into_param().abi(), fenabled.into_param().abi(), fvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeUpdateThumbBarButton)(windows_core::Interface::as_raw(self), buttonid.param().abi(), fenabled.param().abi(), fvisible.param().abi()).ok() } pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: P0, pvardescription: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.into_param().abi(), core::mem::transmute(pvardescription)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeSetIconOverlay)(windows_core::Interface::as_raw(self), iconurl.param().abi(), core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeClearIconOverlay)(windows_core::Interface::as_raw(self)).ok() @@ -24798,17 +24798,17 @@ impl IShellUIHelper9 { } pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeCreateJumpList)(windows_core::Interface::as_raw(self), bstrheader.param().abi()).ok() } pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), core::mem::transmute(pvarwindowtype)).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddJumpListItem)(windows_core::Interface::as_raw(self), bstrname.param().abi(), bstractionuri.param().abi(), bstriconuri.param().abi(), core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeClearJumpList)(windows_core::Interface::as_raw(self)).ok() @@ -24818,36 +24818,36 @@ impl IShellUIHelper9 { } pub unsafe fn msSiteModeAddButtonStyle(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), bstriconurl.param().abi(), bstrtooltip.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msSiteModeShowButtonStyle(&self, uibuttonid: P0, uistyleid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeShowButtonStyle)(windows_core::Interface::as_raw(self), uibuttonid.param().abi(), uistyleid.param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeActivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msIsSiteModeFirstRun)(windows_core::Interface::as_raw(self), fpreservestate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msAddTrackingProtectionList(&self, url: P0, bstrfiltername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.msAddTrackingProtectionList)(windows_core::Interface::as_raw(self), url.param().abi(), bstrfiltername.param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24859,10 +24859,10 @@ impl IShellUIHelper9 { } pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msProvisionNetworks)(windows_core::Interface::as_raw(self), bstrprovisioningxml.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn msReportSafeUrl(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.base__.msReportSafeUrl)(windows_core::Interface::as_raw(self)).ok() @@ -24881,37 +24881,37 @@ impl IShellUIHelper9 { } pub unsafe fn msChangeDefaultBrowser(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.base__.msChangeDefaultBrowser)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.msStopPeriodicTileUpdate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msStartPeriodicTileUpdate(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msStartPeriodicTileUpdate)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStartPeriodicTileUpdateBatch(&self, pollinguris: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msStartPeriodicTileUpdateBatch)(windows_core::Interface::as_raw(self), pollinguris.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msClearTile(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.msClearTile)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueue)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msPinnedSiteState(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -24919,45 +24919,45 @@ impl IShellUIHelper9 { } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueueForSquare150x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueueForWide310x150)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msEnableTileNotificationQueueForSquare310x310)(windows_core::Interface::as_raw(self), fchange.param().abi()).ok() } pub unsafe fn msScheduledTileNotification(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationxml.param().abi(), bstrnotificationid.param().abi(), bstrnotificationtag.param().abi(), starttime.param().abi(), expirationtime.param().abi()).ok() } pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msRemoveScheduledTileNotification)(windows_core::Interface::as_raw(self), bstrnotificationid.param().abi()).ok() } pub unsafe fn msStartPeriodicBadgeUpdate(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.msStartPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self), pollinguri.param().abi(), starttime.param().abi(), uiupdaterecurrence.param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.base__.msStopPeriodicBadgeUpdate)(windows_core::Interface::as_raw(self)).ok() @@ -24967,61 +24967,61 @@ impl IShellUIHelper9 { } pub unsafe fn SetExperimentalFlag(&self, bstrflagstring: P0, vfflag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.into_param().abi(), vfflag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.param().abi(), vfflag.param().abi()).ok() } pub unsafe fn GetExperimentalFlag(&self, bstrflagstring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetExperimentalFlag)(windows_core::Interface::as_raw(self), bstrflagstring.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetExperimentalValue(&self, bstrvaluestring: P0, dwvalue: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.into_param().abi(), dwvalue).ok() + (windows_core::Interface::vtable(self).base__.base__.SetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.param().abi(), dwvalue).ok() } pub unsafe fn GetExperimentalValue(&self, bstrvaluestring: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetExperimentalValue)(windows_core::Interface::as_raw(self), bstrvaluestring.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.ResetAllExperimentalFlagsAndValues)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn GetNeedIEAutoLaunchFlag(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.GetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.GetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetNeedIEAutoLaunchFlag(&self, bstrurl: P0, flag: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), flag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), flag.param().abi()).ok() } pub unsafe fn HasNeedIEAutoLaunchFlag(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.HasNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.HasNeedIEAutoLaunchFlag)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).map(|| result__) } pub unsafe fn LaunchIE(&self, bstrurl: P0, automated: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.LaunchIE)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), automated.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.LaunchIE)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), automated.param().abi()).ok() } pub unsafe fn GetCVListData(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -25047,9 +25047,9 @@ impl IShellUIHelper9 { } pub unsafe fn LaunchInHVSI(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.LaunchInHVSI)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.LaunchInHVSI)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn GetOSSku(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -25076,9 +25076,9 @@ impl IShellView { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { @@ -25086,9 +25086,9 @@ impl IShellView { } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn UIActivate(&self, ustate: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UIActivate)(windows_core::Interface::as_raw(self), ustate).ok() @@ -25099,11 +25099,11 @@ impl IShellView { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CreateViewWindow(&self, psvprevious: P0, pfs: *const FOLDERSETTINGS, psb: P1, prcview: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateViewWindow)(windows_core::Interface::as_raw(self), psvprevious.into_param().abi(), pfs, psb.into_param().abi(), 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() @@ -25115,9 +25115,9 @@ impl IShellView { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPropertySheetPages(&self, dwreserved: u32, pfn: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddPropertySheetPages)(windows_core::Interface::as_raw(self), dwreserved, pfn, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddPropertySheetPages)(windows_core::Interface::as_raw(self), dwreserved, pfn, lparam.param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SaveViewState)(windows_core::Interface::as_raw(self)).ok() @@ -25176,9 +25176,9 @@ impl IShellView2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { @@ -25186,9 +25186,9 @@ impl IShellView2 { } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn UIActivate(&self, ustate: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.UIActivate)(windows_core::Interface::as_raw(self), ustate).ok() @@ -25199,11 +25199,11 @@ impl IShellView2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CreateViewWindow(&self, psvprevious: P0, pfs: *const FOLDERSETTINGS, psb: P1, prcview: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CreateViewWindow)(windows_core::Interface::as_raw(self), psvprevious.into_param().abi(), pfs, psb.into_param().abi(), prcview, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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).base__.DestroyViewWindow)(windows_core::Interface::as_raw(self)).ok() @@ -25215,9 +25215,9 @@ impl IShellView2 { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPropertySheetPages(&self, dwreserved: u32, pfn: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddPropertySheetPages)(windows_core::Interface::as_raw(self), dwreserved, pfn, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddPropertySheetPages)(windows_core::Interface::as_raw(self), dwreserved, pfn, lparam.param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.SaveViewState)(windows_core::Interface::as_raw(self)).ok() @@ -25281,9 +25281,9 @@ impl IShellView3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ContextSensitiveHelp(&self, fentermode: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ContextSensitiveHelp)(windows_core::Interface::as_raw(self), fentermode.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { @@ -25291,9 +25291,9 @@ impl IShellView3 { } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn UIActivate(&self, ustate: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.UIActivate)(windows_core::Interface::as_raw(self), ustate).ok() @@ -25304,11 +25304,11 @@ impl IShellView3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CreateViewWindow(&self, psvprevious: P0, pfs: *const FOLDERSETTINGS, psb: P1, prcview: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.base__.CreateViewWindow)(windows_core::Interface::as_raw(self), psvprevious.into_param().abi(), pfs, psb.into_param().abi(), prcview, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.base__.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).base__.base__.DestroyViewWindow)(windows_core::Interface::as_raw(self)).ok() @@ -25320,9 +25320,9 @@ impl IShellView3 { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPropertySheetPages(&self, dwreserved: u32, pfn: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddPropertySheetPages)(windows_core::Interface::as_raw(self), dwreserved, pfn, lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddPropertySheetPages)(windows_core::Interface::as_raw(self), dwreserved, pfn, lparam.param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.SaveViewState)(windows_core::Interface::as_raw(self)).ok() @@ -25356,11 +25356,11 @@ impl IShellView3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CreateViewWindow3(&self, psbowner: P0, psvprev: P1, dwviewflags: u32, dwmask: FOLDERFLAGS, dwflags: FOLDERFLAGS, fvmode: FOLDERVIEWMODE, pvid: *const windows_core::GUID, prcview: *const super::super::Foundation::RECT) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateViewWindow3)(windows_core::Interface::as_raw(self), psbowner.into_param().abi(), psvprev.into_param().abi(), dwviewflags, dwmask, dwflags, fvmode, pvid, 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")] @@ -25385,10 +25385,10 @@ impl IShellWindows { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, index: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), index.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn _NewEnum(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -25397,10 +25397,10 @@ impl IShellWindows { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Register(&self, pid: P0, hwnd: i32, swclass: ShellWindowTypeConstants) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), pid.into_param().abi(), hwnd, 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__) } pub unsafe fn RegisterPending(&self, lthreadid: i32, pvarloc: *const windows_core::VARIANT, pvarlocroot: *const windows_core::VARIANT, swclass: ShellWindowTypeConstants) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -25414,9 +25414,9 @@ impl IShellWindows { } pub unsafe fn OnActivated(&self, lcookie: i32, factive: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), lcookie, factive.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), lcookie, factive.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindWindowSW(&self, pvarloc: *const windows_core::VARIANT, pvarlocroot: *const windows_core::VARIANT, swclass: ShellWindowTypeConstants, phwnd: *mut i32, swfwoptions: ShellWindowFindWindowOptions) -> windows_core::Result { @@ -25425,15 +25425,15 @@ impl IShellWindows { } pub unsafe fn OnCreated(&self, lcookie: i32, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreated)(windows_core::Interface::as_raw(self), lcookie, punk.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessAttachDetach)(windows_core::Interface::as_raw(self), fattach.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProcessAttachDetach)(windows_core::Interface::as_raw(self), fattach.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -25492,9 +25492,9 @@ windows_core::imp::interface_hierarchy!(IStartMenuPinnedList, windows_core::IUnk impl IStartMenuPinnedList { pub unsafe fn RemoveFromList(&self, pitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFromList)(windows_core::Interface::as_raw(self), pitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveFromList)(windows_core::Interface::as_raw(self), pitem.param().abi()).ok() } } #[repr(C)] @@ -25507,32 +25507,32 @@ windows_core::imp::interface_hierarchy!(IStorageProviderBanners, windows_core::I impl IStorageProviderBanners { pub unsafe fn SetBanner(&self, provideridentity: P0, subscriptionid: P1, contentid: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBanner)(windows_core::Interface::as_raw(self), provideridentity.into_param().abi(), subscriptionid.into_param().abi(), contentid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetBanner)(windows_core::Interface::as_raw(self), provideridentity.param().abi(), subscriptionid.param().abi(), contentid.param().abi()).ok() } pub unsafe fn ClearBanner(&self, provideridentity: P0, subscriptionid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearBanner)(windows_core::Interface::as_raw(self), provideridentity.into_param().abi(), subscriptionid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ClearBanner)(windows_core::Interface::as_raw(self), provideridentity.param().abi(), subscriptionid.param().abi()).ok() } pub unsafe fn ClearAllBanners(&self, provideridentity: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ClearAllBanners)(windows_core::Interface::as_raw(self), provideridentity.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ClearAllBanners)(windows_core::Interface::as_raw(self), provideridentity.param().abi()).ok() } pub unsafe fn GetBanner(&self, provideridentity: P0, subscriptionid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetBanner)(windows_core::Interface::as_raw(self), provideridentity.into_param().abi(), subscriptionid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetBanner)(windows_core::Interface::as_raw(self), provideridentity.param().abi(), subscriptionid.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -25548,12 +25548,12 @@ windows_core::imp::interface_hierarchy!(IStorageProviderCopyHook, windows_core:: impl IStorageProviderCopyHook { pub unsafe fn CopyCallback(&self, hwnd: P0, operation: u32, flags: u32, srcfile: P1, srcattribs: u32, destfile: P2, destattribs: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), operation, flags, srcfile.into_param().abi(), srcattribs, destfile.into_param().abi(), destattribs, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CopyCallback)(windows_core::Interface::as_raw(self), hwnd.param().abi(), operation, flags, srcfile.param().abi(), srcattribs, destfile.param().abi(), destattribs, &mut result__).map(|| result__) } } #[repr(C)] @@ -25566,24 +25566,24 @@ windows_core::imp::interface_hierarchy!(IStorageProviderHandler, windows_core::I impl IStorageProviderHandler { pub unsafe fn GetPropertyHandlerFromPath(&self, path: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyHandlerFromPath)(windows_core::Interface::as_raw(self), path.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyHandlerFromPath)(windows_core::Interface::as_raw(self), path.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyHandlerFromUri(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyHandlerFromUri)(windows_core::Interface::as_raw(self), uri.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyHandlerFromUri)(windows_core::Interface::as_raw(self), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyHandlerFromFileId(&self, fileid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyHandlerFromFileId)(windows_core::Interface::as_raw(self), fileid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyHandlerFromFileId)(windows_core::Interface::as_raw(self), fileid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -25604,9 +25604,9 @@ impl IStorageProviderPropertyHandler { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SaveProperties(&self, propertiestosave: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveProperties)(windows_core::Interface::as_raw(self), propertiestosave.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SaveProperties)(windows_core::Interface::as_raw(self), propertiestosave.param().abi()).ok() } } #[repr(C)] @@ -25646,9 +25646,9 @@ impl IStreamAsync { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo(&self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.into_param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).base__.CopyTo)(windows_core::Interface::as_raw(self), pstm.param().abi(), cb, core::mem::transmute(pcbread.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pcbwritten.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Commit(&self, grfcommitflags: super::super::System::Com::STGC) -> windows_core::Result<()> { @@ -25686,9 +25686,9 @@ impl IStreamAsync { #[cfg(feature = "Win32_System_IO")] pub unsafe fn OverlappedResult(&self, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OverlappedResult)(windows_core::Interface::as_raw(self), lpoverlapped, lpnumberofbytestransferred, bwait.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OverlappedResult)(windows_core::Interface::as_raw(self), lpoverlapped, lpnumberofbytestransferred, bwait.param().abi()).ok() } pub unsafe fn CancelIo(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).CancelIo)(windows_core::Interface::as_raw(self)).ok() @@ -25730,21 +25730,21 @@ windows_core::imp::interface_hierarchy!(ISuspensionDependencyManager, windows_co impl ISuspensionDependencyManager { pub unsafe fn RegisterAsChild(&self, processhandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterAsChild)(windows_core::Interface::as_raw(self), processhandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterAsChild)(windows_core::Interface::as_raw(self), processhandle.param().abi()).ok() } pub unsafe fn GroupChildWithParent(&self, childprocesshandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GroupChildWithParent)(windows_core::Interface::as_raw(self), childprocesshandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GroupChildWithParent)(windows_core::Interface::as_raw(self), childprocesshandle.param().abi()).ok() } pub unsafe fn UngroupChildFromParent(&self, childprocesshandle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UngroupChildFromParent)(windows_core::Interface::as_raw(self), childprocesshandle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UngroupChildFromParent)(windows_core::Interface::as_raw(self), childprocesshandle.param().abi()).ok() } } #[repr(C)] @@ -25773,9 +25773,9 @@ impl ISyncMgrConflict { } pub unsafe fn Resolve(&self, presolveinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), presolveinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Resolve)(windows_core::Interface::as_raw(self), presolveinfo.param().abi()).ok() } pub unsafe fn GetResolutionHandler(&self) -> windows_core::Result where @@ -25806,10 +25806,10 @@ impl ISyncMgrConflictFolder { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetConflictIDList(&self, pconflict: P0) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConflictIDList)(windows_core::Interface::as_raw(self), pconflict.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetConflictIDList)(windows_core::Interface::as_raw(self), pconflict.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -25842,10 +25842,10 @@ windows_core::imp::interface_hierarchy!(ISyncMgrConflictPresenter, windows_core: impl ISyncMgrConflictPresenter { pub unsafe fn PresentConflict(&self, pconflict: P0, presolveinfo: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PresentConflict)(windows_core::Interface::as_raw(self), pconflict.into_param().abi(), presolveinfo.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PresentConflict)(windows_core::Interface::as_raw(self), pconflict.param().abi(), presolveinfo.param().abi()).ok() } } #[repr(C)] @@ -25897,9 +25897,9 @@ impl ISyncMgrConflictResolveInfo { } pub unsafe fn SetPresenterChoice(&self, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPresenterChoice)(windows_core::Interface::as_raw(self), npresenterchoice, fapplytoall.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPresenterChoice)(windows_core::Interface::as_raw(self), npresenterchoice, fapplytoall.param().abi()).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), prgiconflictitemindexes, cchoices).ok() @@ -25922,11 +25922,11 @@ windows_core::imp::interface_hierarchy!(ISyncMgrConflictStore, windows_core::IUn impl ISyncMgrConflictStore { pub unsafe fn EnumConflicts(&self, pszhandlerid: P0, pszitemid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumConflicts)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).EnumConflicts)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToConflict(&self, pconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO) -> windows_core::Result @@ -25942,11 +25942,11 @@ impl ISyncMgrConflictStore { } pub unsafe fn GetCount(&self, pszhandlerid: P0, pszitemid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), pszitemid.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -25968,39 +25968,39 @@ windows_core::imp::interface_hierarchy!(ISyncMgrControl, windows_core::IUnknown) impl ISyncMgrControl { pub unsafe fn StartHandlerSync(&self, pszhandlerid: P0, hwndowner: P1, punk: P2, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).StartHandlerSync)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), hwndowner.into_param().abi(), punk.into_param().abi(), nsynccontrolflags, presult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartHandlerSync)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), hwndowner.param().abi(), punk.param().abi(), nsynccontrolflags, presult.param().abi()).ok() } pub unsafe fn StartItemSync(&self, pszhandlerid: P0, ppszitemids: &[windows_core::PCWSTR], hwndowner: P1, punk: P2, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).StartItemSync)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap(), hwndowner.into_param().abi(), punk.into_param().abi(), nsynccontrolflags, presult.into_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.param().abi(), punk.param().abi(), nsynccontrolflags, presult.param().abi()).ok() } pub unsafe fn StartSyncAll(&self, hwndowner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StartSyncAll)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StartSyncAll)(windows_core::Interface::as_raw(self), hwndowner.param().abi()).ok() } pub unsafe fn StopHandlerSync(&self, pszhandlerid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopHandlerSync)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).StopHandlerSync)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi()).ok() } pub unsafe fn StopItemSync(&self, pszhandlerid: P0, ppszitemids: &[windows_core::PCWSTR]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StopItemSync)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).StopItemSync)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap()).ok() } pub unsafe fn StopSyncAll(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).StopSyncAll)(windows_core::Interface::as_raw(self)).ok() @@ -26010,63 +26010,63 @@ impl ISyncMgrControl { } pub unsafe fn UpdateHandler(&self, pszhandlerid: P0, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateHandler)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateItem)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateEvents)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateConflict)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), pconflict.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateConflicts)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), 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: P0, pszhandlerid: P1, hwndowner: P2, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateHandler)(windows_core::Interface::as_raw(self), factivate.into_param().abi(), pszhandlerid.into_param().abi(), hwndowner.into_param().abi(), ncontrolflags).ok() + (windows_core::Interface::vtable(self).ActivateHandler)(windows_core::Interface::as_raw(self), factivate.param().abi(), pszhandlerid.param().abi(), hwndowner.param().abi(), ncontrolflags).ok() } pub unsafe fn EnableHandler(&self, fenable: P0, pszhandlerid: P1, hwndowner: P2, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableHandler)(windows_core::Interface::as_raw(self), fenable.into_param().abi(), pszhandlerid.into_param().abi(), hwndowner.into_param().abi(), ncontrolflags).ok() + (windows_core::Interface::vtable(self).EnableHandler)(windows_core::Interface::as_raw(self), fenable.param().abi(), pszhandlerid.param().abi(), hwndowner.param().abi(), ncontrolflags).ok() } pub unsafe fn EnableItem(&self, fenable: P0, pszhandlerid: P1, pszitemid: P2, hwndowner: P3, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableItem)(windows_core::Interface::as_raw(self), fenable.into_param().abi(), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), hwndowner.into_param().abi(), ncontrolflags).ok() + (windows_core::Interface::vtable(self).EnableItem)(windows_core::Interface::as_raw(self), fenable.param().abi(), pszhandlerid.param().abi(), pszitemid.param().abi(), hwndowner.param().abi(), ncontrolflags).ok() } } #[repr(C)] @@ -26185,15 +26185,15 @@ windows_core::imp::interface_hierarchy!(ISyncMgrEventLinkUIOperation, windows_co impl ISyncMgrEventLinkUIOperation { pub unsafe fn Run(&self, hwndowner: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Run)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Run)(windows_core::Interface::as_raw(self), hwndowner.param().abi()) } pub unsafe fn Init(&self, rguideventid: *const windows_core::GUID, pevent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), rguideventid, pevent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), rguideventid, pevent.param().abi()).ok() } } #[repr(C)] @@ -26256,23 +26256,23 @@ impl ISyncMgrHandler { } pub unsafe fn Activate(&self, factivate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), factivate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), factivate.param().abi()).ok() } pub unsafe fn Enable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn Synchronize(&self, ppszitemids: &[windows_core::PCWSTR], hwndowner: P0, psessioncreator: P1, punk: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(), hwndowner.into_param().abi(), psessioncreator.into_param().abi(), punk.into_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.param().abi(), psessioncreator.param().abi(), punk.param().abi()).ok() } } #[repr(C)] @@ -26297,11 +26297,11 @@ impl ISyncMgrHandlerCollection { } pub unsafe fn BindToHandler(&self, pszhandlerid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).BindToHandler)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -26358,9 +26358,9 @@ windows_core::imp::interface_hierarchy!(ISyncMgrRegister, windows_core::IUnknown impl ISyncMgrRegister { pub unsafe fn RegisterSyncMgrHandler(&self, clsidhandler: *const windows_core::GUID, pwszdescription: P0, dwsyncmgrregisterflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterSyncMgrHandler)(windows_core::Interface::as_raw(self), clsidhandler, pwszdescription.into_param().abi(), 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), clsidhandler, dwreserved).ok() @@ -26385,10 +26385,10 @@ impl ISyncMgrResolutionHandler { } pub unsafe fn KeepOther(&self, psiother: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).KeepOther)(windows_core::Interface::as_raw(self), psiother.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).KeepOther)(windows_core::Interface::as_raw(self), psiother.param().abi(), &mut result__).map(|| result__) } pub unsafe fn KeepRecent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -26400,10 +26400,10 @@ impl ISyncMgrResolutionHandler { } pub unsafe fn KeepItems(&self, parray: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).KeepItems)(windows_core::Interface::as_raw(self), parray.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).KeepItems)(windows_core::Interface::as_raw(self), parray.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -26420,15 +26420,15 @@ windows_core::imp::interface_hierarchy!(ISyncMgrScheduleWizardUIOperation, windo impl ISyncMgrScheduleWizardUIOperation { pub unsafe fn Run(&self, hwndowner: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Run)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()) + (windows_core::Interface::vtable(self).base__.Run)(windows_core::Interface::as_raw(self), hwndowner.param().abi()) } pub unsafe fn InitWizard(&self, pszhandlerid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitWizard)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InitWizard)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi()).ok() } } #[repr(C)] @@ -26441,10 +26441,10 @@ windows_core::imp::interface_hierarchy!(ISyncMgrSessionCreator, windows_core::IU impl ISyncMgrSessionCreator { pub unsafe fn CreateSession(&self, pszhandlerid: P0, ppszitemids: &[windows_core::PCWSTR]) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSession)(windows_core::Interface::as_raw(self), pszhandlerid.param().abi(), core::mem::transmute(ppszitemids.as_ptr()), ppszitemids.len().try_into().unwrap(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -26457,34 +26457,34 @@ windows_core::imp::interface_hierarchy!(ISyncMgrSyncCallback, windows_core::IUnk impl ISyncMgrSyncCallback { pub unsafe fn ReportProgress(&self, pszitemid: P0, pszprogresstext: P1, nstatus: SYNCMGR_PROGRESS_STATUS, ucurrentstep: u32, umaxstep: u32, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), pszitemid.into_param().abi(), pszprogresstext.into_param().abi(), nstatus, ucurrentstep, umaxstep, pncancelrequest).ok() + (windows_core::Interface::vtable(self).ReportProgress)(windows_core::Interface::as_raw(self), pszitemid.param().abi(), pszprogresstext.param().abi(), nstatus, ucurrentstep, umaxstep, pncancelrequest).ok() } pub unsafe fn SetHandlerProgressText(&self, pszprogresstext: P0, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHandlerProgressText)(windows_core::Interface::as_raw(self), pszprogresstext.into_param().abi(), pncancelrequest).ok() + (windows_core::Interface::vtable(self).SetHandlerProgressText)(windows_core::Interface::as_raw(self), pszprogresstext.param().abi(), pncancelrequest).ok() } pub unsafe fn ReportEvent(&self, pszitemid: P0, nlevel: SYNCMGR_EVENT_LEVEL, nflags: SYNCMGR_EVENT_FLAGS, pszname: P1, pszdescription: P2, pszlinktext: P3, pszlinkreference: P4, pszcontext: P5) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, - P5: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, + P5: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ReportEvent)(windows_core::Interface::as_raw(self), pszitemid.into_param().abi(), nlevel, nflags, pszname.into_param().abi(), pszdescription.into_param().abi(), pszlinktext.into_param().abi(), pszlinkreference.into_param().abi(), pszcontext.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CanContinue)(windows_core::Interface::as_raw(self), pszitemid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CanContinue)(windows_core::Interface::as_raw(self), pszitemid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryForAdditionalItems(&self, ppenumitemids: *mut Option, ppenumpunks: *mut Option) -> windows_core::Result<()> { @@ -26492,27 +26492,27 @@ impl ISyncMgrSyncCallback { } pub unsafe fn AddItemToSession(&self, pszitemid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItemToSession)(windows_core::Interface::as_raw(self), pszitemid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItemToSession)(windows_core::Interface::as_raw(self), pszitemid.param().abi()).ok() } pub unsafe fn AddIUnknownToSession(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddIUnknownToSession)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddIUnknownToSession)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn ProposeItem(&self, pnewitem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProposeItem)(windows_core::Interface::as_raw(self), pnewitem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProposeItem)(windows_core::Interface::as_raw(self), pnewitem.param().abi()).ok() } pub unsafe fn CommitItem(&self, pszitemid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitItem)(windows_core::Interface::as_raw(self), pszitemid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CommitItem)(windows_core::Interface::as_raw(self), pszitemid.param().abi()).ok() } pub unsafe fn ReportManualSync(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReportManualSync)(windows_core::Interface::as_raw(self)).ok() @@ -26567,9 +26567,9 @@ impl ISyncMgrSyncItem { } pub unsafe fn Enable(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn Delete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Delete)(windows_core::Interface::as_raw(self)).ok() @@ -26592,10 +26592,10 @@ windows_core::imp::interface_hierarchy!(ISyncMgrSyncItemContainer, windows_core: impl ISyncMgrSyncItemContainer { pub unsafe fn GetSyncItem(&self, pszitemid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSyncItem)(windows_core::Interface::as_raw(self), pszitemid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSyncItem)(windows_core::Interface::as_raw(self), pszitemid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetSyncItemEnumerator(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -26680,36 +26680,36 @@ impl ISyncMgrSynchronize { } pub unsafe fn ShowProperties(&self, hwndparent: P0, itemid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), itemid).ok() + (windows_core::Interface::vtable(self).ShowProperties)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), itemid).ok() } pub unsafe fn SetProgressCallback(&self, lpcallback: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProgressCallback)(windows_core::Interface::as_raw(self), lpcallback.into_param().abi()).ok() + (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: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PrepareForSync)(windows_core::Interface::as_raw(self), pitemids.len().try_into().unwrap(), core::mem::transmute(pitemids.as_ptr()), hwndparent.into_param().abi(), 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.param().abi(), dwreserved).ok() } pub unsafe fn Synchronize(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Synchronize)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).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), pitemid, dwsyncmgrstatus).ok() } pub unsafe fn ShowError(&self, hwndparent: P0, errorid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowError)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), errorid).ok() + (windows_core::Interface::vtable(self).ShowError)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), errorid).ok() } } #[repr(C)] @@ -26746,27 +26746,27 @@ impl ISyncMgrSynchronizeCallback { } pub unsafe fn EnableModeless(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableModeless)(windows_core::Interface::as_raw(self), fenable.param().abi()).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), itemid, psyncprogressitem).ok() } pub unsafe fn LogError(&self, dwerrorlevel: u32, pszerrortext: P0, psynclogerror: *const SYNCMGRLOGERRORINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LogError)(windows_core::Interface::as_raw(self), dwerrorlevel, pszerrortext.into_param().abi(), 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), errorid, dwreserved).ok() } pub unsafe fn EstablishConnection(&self, pwszconnection: P0, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EstablishConnection)(windows_core::Interface::as_raw(self), pwszconnection.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).EstablishConnection)(windows_core::Interface::as_raw(self), pwszconnection.param().abi(), dwreserved).ok() } } #[repr(C)] @@ -26803,9 +26803,9 @@ windows_core::imp::interface_hierarchy!(ISyncMgrUIOperation, windows_core::IUnkn impl ISyncMgrUIOperation { pub unsafe fn Run(&self, hwndowner: P0) -> windows_core::HRESULT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), hwndowner.into_param().abi()) + (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), hwndowner.param().abi()) } } #[repr(C)] @@ -26821,27 +26821,27 @@ impl ITaskbarList { } pub unsafe fn AddTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn DeleteTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn ActivateTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ActivateTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn SetActiveAlt(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } } #[repr(C)] @@ -26861,34 +26861,34 @@ impl ITaskbarList2 { } pub unsafe fn AddTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.AddTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn DeleteTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.DeleteTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn ActivateTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ActivateTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ActivateTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn SetActiveAlt(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn MarkFullscreenWindow(&self, hwnd: P0, ffullscreen: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).MarkFullscreenWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).MarkFullscreenWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), ffullscreen.param().abi()).ok() } } #[repr(C)] @@ -26904,117 +26904,117 @@ impl ITaskbarList3 { } pub unsafe fn AddTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.AddTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.AddTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn DeleteTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.DeleteTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.DeleteTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn ActivateTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.ActivateTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.ActivateTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn SetActiveAlt(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn MarkFullscreenWindow(&self, hwnd: P0, ffullscreen: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.MarkFullscreenWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.MarkFullscreenWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), ffullscreen.param().abi()).ok() } pub unsafe fn SetProgressValue(&self, hwnd: P0, ullcompleted: u64, ulltotal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProgressValue)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ullcompleted, ulltotal).ok() + (windows_core::Interface::vtable(self).SetProgressValue)(windows_core::Interface::as_raw(self), hwnd.param().abi(), ullcompleted, ulltotal).ok() } pub unsafe fn SetProgressState(&self, hwnd: P0, tbpflags: TBPFLAG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProgressState)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), tbpflags).ok() + (windows_core::Interface::vtable(self).SetProgressState)(windows_core::Interface::as_raw(self), hwnd.param().abi(), tbpflags).ok() } pub unsafe fn RegisterTab(&self, hwndtab: P0, hwndmdi: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).RegisterTab)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RegisterTab)(windows_core::Interface::as_raw(self), hwndtab.param().abi(), hwndmdi.param().abi()).ok() } pub unsafe fn UnregisterTab(&self, hwndtab: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnregisterTab)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnregisterTab)(windows_core::Interface::as_raw(self), hwndtab.param().abi()).ok() } pub unsafe fn SetTabOrder(&self, hwndtab: P0, hwndinsertbefore: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTabOrder)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), hwndinsertbefore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTabOrder)(windows_core::Interface::as_raw(self), hwndtab.param().abi(), hwndinsertbefore.param().abi()).ok() } pub unsafe fn SetTabActive(&self, hwndtab: P0, hwndmdi: P1, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTabActive)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).SetTabActive)(windows_core::Interface::as_raw(self), hwndtab.param().abi(), hwndmdi.param().abi(), dwreserved).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ThumbBarAddButtons(&self, hwnd: P0, pbutton: &[THUMBBUTTON]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ThumbBarAddButtons)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), 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.param().abi(), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ThumbBarUpdateButtons(&self, hwnd: P0, pbutton: &[THUMBBUTTON]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ThumbBarUpdateButtons)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), 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.param().abi(), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn ThumbBarSetImageList(&self, hwnd: P0, himl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ThumbBarSetImageList)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), himl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ThumbBarSetImageList)(windows_core::Interface::as_raw(self), hwnd.param().abi(), himl.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetOverlayIcon(&self, hwnd: P0, hicon: P1, pszdescription: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOverlayIcon)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hicon.into_param().abi(), pszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOverlayIcon)(windows_core::Interface::as_raw(self), hwnd.param().abi(), hicon.param().abi(), pszdescription.param().abi()).ok() } pub unsafe fn SetThumbnailTooltip(&self, hwnd: P0, psztip: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailTooltip)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), psztip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetThumbnailTooltip)(windows_core::Interface::as_raw(self), hwnd.param().abi(), psztip.param().abi()).ok() } pub unsafe fn SetThumbnailClip(&self, hwnd: P0, prcclip: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailClip)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), prcclip).ok() + (windows_core::Interface::vtable(self).SetThumbnailClip)(windows_core::Interface::as_raw(self), hwnd.param().abi(), prcclip).ok() } } #[repr(C)] @@ -27053,123 +27053,123 @@ impl ITaskbarList4 { } pub unsafe fn AddTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.AddTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.AddTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn DeleteTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.DeleteTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.DeleteTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn ActivateTab(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.ActivateTab)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.ActivateTab)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn SetActiveAlt(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.base__.SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.base__.SetActiveAlt)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn MarkFullscreenWindow(&self, hwnd: P0, ffullscreen: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.MarkFullscreenWindow)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ffullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.MarkFullscreenWindow)(windows_core::Interface::as_raw(self), hwnd.param().abi(), ffullscreen.param().abi()).ok() } pub unsafe fn SetProgressValue(&self, hwnd: P0, ullcompleted: u64, ulltotal: u64) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProgressValue)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ullcompleted, ulltotal).ok() + (windows_core::Interface::vtable(self).base__.SetProgressValue)(windows_core::Interface::as_raw(self), hwnd.param().abi(), ullcompleted, ulltotal).ok() } pub unsafe fn SetProgressState(&self, hwnd: P0, tbpflags: TBPFLAG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetProgressState)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), tbpflags).ok() + (windows_core::Interface::vtable(self).base__.SetProgressState)(windows_core::Interface::as_raw(self), hwnd.param().abi(), tbpflags).ok() } pub unsafe fn RegisterTab(&self, hwndtab: P0, hwndmdi: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RegisterTab)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.RegisterTab)(windows_core::Interface::as_raw(self), hwndtab.param().abi(), hwndmdi.param().abi()).ok() } pub unsafe fn UnregisterTab(&self, hwndtab: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UnregisterTab)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UnregisterTab)(windows_core::Interface::as_raw(self), hwndtab.param().abi()).ok() } pub unsafe fn SetTabOrder(&self, hwndtab: P0, hwndinsertbefore: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTabOrder)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), hwndinsertbefore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetTabOrder)(windows_core::Interface::as_raw(self), hwndtab.param().abi(), hwndinsertbefore.param().abi()).ok() } pub unsafe fn SetTabActive(&self, hwndtab: P0, hwndmdi: P1, dwreserved: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetTabActive)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi(), dwreserved).ok() + (windows_core::Interface::vtable(self).base__.SetTabActive)(windows_core::Interface::as_raw(self), hwndtab.param().abi(), hwndmdi.param().abi(), dwreserved).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ThumbBarAddButtons(&self, hwnd: P0, pbutton: &[THUMBBUTTON]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ThumbBarAddButtons)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.ThumbBarAddButtons)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn ThumbBarUpdateButtons(&self, hwnd: P0, pbutton: &[THUMBBUTTON]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ThumbBarUpdateButtons)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.ThumbBarUpdateButtons)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pbutton.len().try_into().unwrap(), core::mem::transmute(pbutton.as_ptr())).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn ThumbBarSetImageList(&self, hwnd: P0, himl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ThumbBarSetImageList)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), himl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.ThumbBarSetImageList)(windows_core::Interface::as_raw(self), hwnd.param().abi(), himl.param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetOverlayIcon(&self, hwnd: P0, hicon: P1, pszdescription: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetOverlayIcon)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), hicon.into_param().abi(), pszdescription.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetOverlayIcon)(windows_core::Interface::as_raw(self), hwnd.param().abi(), hicon.param().abi(), pszdescription.param().abi()).ok() } pub unsafe fn SetThumbnailTooltip(&self, hwnd: P0, psztip: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetThumbnailTooltip)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), psztip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetThumbnailTooltip)(windows_core::Interface::as_raw(self), hwnd.param().abi(), psztip.param().abi()).ok() } pub unsafe fn SetThumbnailClip(&self, hwnd: P0, prcclip: *const super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetThumbnailClip)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), prcclip).ok() + (windows_core::Interface::vtable(self).base__.SetThumbnailClip)(windows_core::Interface::as_raw(self), hwnd.param().abi(), prcclip).ok() } pub unsafe fn SetTabProperties(&self, hwndtab: P0, stpflags: STPFLAG) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTabProperties)(windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), stpflags).ok() + (windows_core::Interface::vtable(self).SetTabProperties)(windows_core::Interface::as_raw(self), hwndtab.param().abi(), stpflags).ok() } } #[repr(C)] @@ -27182,9 +27182,9 @@ windows_core::imp::interface_hierarchy!(IThumbnailCache, windows_core::IUnknown) impl IThumbnailCache { pub unsafe fn GetThumbnail(&self, pshellitem: P0, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: Option<*mut Option>, poutflags: Option<*mut WTS_CACHEFLAGS>, pthumbnailid: Option<*mut WTS_THUMBNAILID>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetThumbnail)(windows_core::Interface::as_raw(self), pshellitem.into_param().abi(), cxyrequestedthumbsize, flags, core::mem::transmute(ppvthumb.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poutflags.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pthumbnailid.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetThumbnail)(windows_core::Interface::as_raw(self), pshellitem.param().abi(), cxyrequestedthumbsize, flags, core::mem::transmute(ppvthumb.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poutflags.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pthumbnailid.unwrap_or(std::ptr::null_mut()))).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), cxyrequestedthumbsize, core::mem::transmute(ppvthumb.unwrap_or(std::ptr::null_mut())), core::mem::transmute(poutflags.unwrap_or(std::ptr::null_mut()))).ok() @@ -27201,9 +27201,9 @@ windows_core::imp::interface_hierarchy!(IThumbnailCachePrimer, windows_core::IUn impl IThumbnailCachePrimer { pub unsafe fn PageInThumbnail(&self, psi: P0, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PageInThumbnail)(windows_core::Interface::as_raw(self), psi.into_param().abi(), wtsflags, cxyrequestedthumbsize).ok() + (windows_core::Interface::vtable(self).PageInThumbnail)(windows_core::Interface::as_raw(self), psi.param().abi(), wtsflags, cxyrequestedthumbsize).ok() } } #[repr(C)] @@ -27217,10 +27217,10 @@ impl IThumbnailCapture { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn CaptureThumbnail(&self, pmaxsize: *const super::super::Foundation::SIZE, phtmldoc2: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CaptureThumbnail)(windows_core::Interface::as_raw(self), pmaxsize, phtmldoc2.into_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)] @@ -27237,11 +27237,11 @@ impl IThumbnailHandlerFactory { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetThumbnailHandler(&self, pidlchild: *const Common::ITEMIDLIST, pbc: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).GetThumbnailHandler)(windows_core::Interface::as_raw(self), pidlchild, pbc.into_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)] @@ -27286,17 +27286,17 @@ impl IThumbnailStreamCache { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetThumbnailStream(&self, path: P0, cacheid: u64, options: ThumbnailStreamCacheOptions, requestedthumbnailsize: u32, thumbnailsize: *mut super::super::Foundation::SIZE, thumbnailstream: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetThumbnailStream)(windows_core::Interface::as_raw(self), path.into_param().abi(), cacheid, options, requestedthumbnailsize, thumbnailsize, core::mem::transmute(thumbnailstream)).ok() + (windows_core::Interface::vtable(self).GetThumbnailStream)(windows_core::Interface::as_raw(self), path.param().abi(), cacheid, options, requestedthumbnailsize, 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: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetThumbnailStream)(windows_core::Interface::as_raw(self), path.into_param().abi(), cacheid, core::mem::transmute(thumbnailsize), thumbnailstream.into_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)] @@ -27316,9 +27316,9 @@ windows_core::imp::interface_hierarchy!(ITrackShellMenu, windows_core::IUnknown, impl ITrackShellMenu { pub unsafe fn Initialize(&self, psmc: P0, uid: u32, uidancestor: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Initialize)(windows_core::Interface::as_raw(self), psmc.into_param().abi(), uid, uidancestor, dwflags).ok() + (windows_core::Interface::vtable(self).base__.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).base__.GetMenuInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(ppsmc.unwrap_or(std::ptr::null_mut())), core::mem::transmute(puid.unwrap_or(std::ptr::null_mut())), core::mem::transmute(puidancestor.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))).ok() @@ -27326,10 +27326,10 @@ impl ITrackShellMenu { #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetShellFolder(&self, psf: P0, pidlfolder: Option<*const Common::ITEMIDLIST>, hkey: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetShellFolder)(windows_core::Interface::as_raw(self), psf.into_param().abi(), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), hkey.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.SetShellFolder)(windows_core::Interface::as_raw(self), psf.param().abi(), core::mem::transmute(pidlfolder.unwrap_or(std::ptr::null())), hkey.param().abi(), 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<()> { @@ -27338,10 +27338,10 @@ impl ITrackShellMenu { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetMenu(&self, hmenu: P0, hwnd: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMenu)(windows_core::Interface::as_raw(self), hmenu.into_param().abi(), hwnd.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.SetMenu)(windows_core::Interface::as_raw(self), hmenu.param().abi(), hwnd.param().abi(), 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<()> { @@ -27357,22 +27357,22 @@ impl ITrackShellMenu { } pub unsafe fn SetMenuToolbar(&self, punk: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMenuToolbar)(windows_core::Interface::as_raw(self), punk.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.SetMenuToolbar)(windows_core::Interface::as_raw(self), punk.param().abi(), dwflags).ok() } pub unsafe fn SetObscured(&self, hwndtb: P0, punkband: P1, dwsmsetflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObscured)(windows_core::Interface::as_raw(self), hwndtb.into_param().abi(), punkband.into_param().abi(), dwsmsetflags).ok() + (windows_core::Interface::vtable(self).SetObscured)(windows_core::Interface::as_raw(self), hwndtb.param().abi(), punkband.param().abi(), dwsmsetflags).ok() } pub unsafe fn Popup(&self, hwnd: P0, ppt: *mut super::super::Foundation::POINTL, prcexclude: *mut super::super::Foundation::RECTL, dwflags: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Popup)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ppt, prcexclude, dwflags).ok() + (windows_core::Interface::vtable(self).Popup)(windows_core::Interface::as_raw(self), hwnd.param().abi(), ppt, prcexclude, dwflags).ok() } } #[repr(C)] @@ -27387,10 +27387,10 @@ impl ITranscodeImage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn TranscodeImage(&self, pshellitem: P0, uimaxwidth: u32, uimaxheight: u32, flags: u32, pvimage: P1, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TranscodeImage)(windows_core::Interface::as_raw(self), pshellitem.into_param().abi(), uimaxwidth, uimaxheight, flags, pvimage.into_param().abi(), puiwidth, puiheight).ok() + (windows_core::Interface::vtable(self).TranscodeImage)(windows_core::Interface::as_raw(self), pshellitem.param().abi(), uimaxwidth, uimaxheight, flags, pvimage.param().abi(), puiwidth, puiheight).ok() } } #[repr(C)] @@ -27412,38 +27412,38 @@ impl ITransferAdviseSink { } pub unsafe fn ConfirmOverwrite(&self, psisource: P0, psidestparent: P1, pszname: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfirmOverwrite)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), psidestparent.into_param().abi(), pszname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConfirmOverwrite)(windows_core::Interface::as_raw(self), psisource.param().abi(), psidestparent.param().abi(), pszname.param().abi()).ok() } pub unsafe fn ConfirmEncryptionLoss(&self, psisource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConfirmEncryptionLoss)(windows_core::Interface::as_raw(self), psisource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConfirmEncryptionLoss)(windows_core::Interface::as_raw(self), psisource.param().abi()).ok() } pub unsafe fn FileFailure(&self, psi: P0, pszitem: P1, hrerror: windows_core::HRESULT, pszrename: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FileFailure)(windows_core::Interface::as_raw(self), psi.into_param().abi(), pszitem.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SubStreamFailure)(windows_core::Interface::as_raw(self), psi.into_param().abi(), pszstreamname.into_param().abi(), hrerror).ok() + (windows_core::Interface::vtable(self).SubStreamFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), pszstreamname.param().abi(), hrerror).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn PropertyFailure(&self, psi: P0, pkey: *const PropertiesSystem::PROPERTYKEY, hrerror: windows_core::HRESULT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PropertyFailure)(windows_core::Interface::as_raw(self), psi.into_param().abi(), pkey, hrerror).ok() + (windows_core::Interface::vtable(self).PropertyFailure)(windows_core::Interface::as_raw(self), psi.param().abi(), pkey, hrerror).ok() } } #[repr(C)] @@ -27465,19 +27465,19 @@ windows_core::imp::interface_hierarchy!(ITransferDestination, windows_core::IUnk impl ITransferDestination { pub unsafe fn Advise(&self, psink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psink.into_param().abi(), &mut result__).map(|| result__) + (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), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), pszname.into_param().abi(), dwattributes, ullsize, flags, riiditem, ppvitem, riidresources, ppvresources).ok() + (windows_core::Interface::vtable(self).CreateItem)(windows_core::Interface::as_raw(self), pszname.param().abi(), dwattributes, ullsize, flags, riiditem, ppvitem, riidresources, ppvresources).ok() } } #[repr(C)] @@ -27509,10 +27509,10 @@ windows_core::imp::interface_hierarchy!(ITransferSource, windows_core::IUnknown) impl ITransferSource { pub unsafe fn Advise(&self, psink: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), psink.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -27520,82 +27520,82 @@ impl ITransferSource { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties(&self, pproparray: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pproparray.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetProperties)(windows_core::Interface::as_raw(self), pproparray.param().abi()).ok() } pub unsafe fn OpenItem(&self, psi: P0, flags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OpenItem)(windows_core::Interface::as_raw(self), psi.into_param().abi(), flags, riid, ppv).ok() + (windows_core::Interface::vtable(self).OpenItem)(windows_core::Interface::as_raw(self), psi.param().abi(), flags, riid, ppv).ok() } pub unsafe fn MoveItem(&self, psi: P0, psiparentdst: P1, psznamedst: P2, flags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MoveItem)(windows_core::Interface::as_raw(self), psi.into_param().abi(), psiparentdst.into_param().abi(), psznamedst.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RecycleItem)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), psiparentdest.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RenameItem)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), psznewname.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LinkItem)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), psiparentdest.into_param().abi(), psznewname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ApplyPropertiesToItem)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).ApplyPropertiesToItem)(windows_core::Interface::as_raw(self), psisource.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDefaultDestinationName(&self, psisource: P0, psiparentdest: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDefaultDestinationName)(windows_core::Interface::as_raw(self), psisource.into_param().abi(), psiparentdest.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetDefaultDestinationName)(windows_core::Interface::as_raw(self), psisource.param().abi(), psiparentdest.param().abi(), &mut result__).map(|| result__) } pub unsafe fn EnterFolder(&self, psichildfolderdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnterFolder)(windows_core::Interface::as_raw(self), psichildfolderdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnterFolder)(windows_core::Interface::as_raw(self), psichildfolderdest.param().abi()).ok() } pub unsafe fn LeaveFolder(&self, psichildfolderdest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LeaveFolder)(windows_core::Interface::as_raw(self), psichildfolderdest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LeaveFolder)(windows_core::Interface::as_raw(self), psichildfolderdest.param().abi()).ok() } } #[repr(C)] @@ -27623,16 +27623,16 @@ windows_core::imp::interface_hierarchy!(ITravelEntry, windows_core::IUnknown); impl ITravelEntry { pub unsafe fn Invoke(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Invoke)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn Update(&self, punk: P0, fislocalanchor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), punk.into_param().abi(), fislocalanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), punk.param().abi(), fislocalanchor.param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetPidl(&self) -> windows_core::Result<*mut Common::ITEMIDLIST> { @@ -27655,58 +27655,58 @@ windows_core::imp::interface_hierarchy!(ITravelLog, windows_core::IUnknown); impl ITravelLog { pub unsafe fn AddEntry(&self, punk: P0, fislocalanchor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), punk.into_param().abi(), fislocalanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddEntry)(windows_core::Interface::as_raw(self), punk.param().abi(), fislocalanchor.param().abi()).ok() } pub unsafe fn UpdateEntry(&self, punk: P0, fislocalanchor: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateEntry)(windows_core::Interface::as_raw(self), punk.into_param().abi(), fislocalanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateEntry)(windows_core::Interface::as_raw(self), punk.param().abi(), fislocalanchor.param().abi()).ok() } pub unsafe fn UpdateExternal(&self, punk: P0, punkhlbrowsecontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateExternal)(windows_core::Interface::as_raw(self), punk.into_param().abi(), punkhlbrowsecontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateExternal)(windows_core::Interface::as_raw(self), punk.param().abi(), punkhlbrowsecontext.param().abi()).ok() } pub unsafe fn Travel(&self, punk: P0, ioffset: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Travel)(windows_core::Interface::as_raw(self), punk.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTravelEntry)(windows_core::Interface::as_raw(self), punk.into_param().abi(), ioffset, core::mem::transmute(ppte.unwrap_or(std::ptr::null_mut()))).ok() + (windows_core::Interface::vtable(self).GetTravelEntry)(windows_core::Interface::as_raw(self), punk.param().abi(), ioffset, core::mem::transmute(ppte.unwrap_or(std::ptr::null_mut()))).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FindTravelEntry(&self, punk: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindTravelEntry)(windows_core::Interface::as_raw(self), punk.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetToolTipText)(windows_core::Interface::as_raw(self), punk.into_param().abi(), ioffset, 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: P1, npos: i32, idfirst: i32, idlast: i32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertMenuEntries)(windows_core::Interface::as_raw(self), punk.into_param().abi(), hmenu.into_param().abi(), npos, idfirst, idlast, dwflags).ok() + (windows_core::Interface::vtable(self).InsertMenuEntries)(windows_core::Interface::as_raw(self), punk.param().abi(), hmenu.param().abi(), npos, idfirst, idlast, dwflags).ok() } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -27714,9 +27714,9 @@ impl ITravelLog { } pub unsafe fn CountEntries(&self, punk: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CountEntries)(windows_core::Interface::as_raw(self), punk.into_param().abi()) + (windows_core::Interface::vtable(self).CountEntries)(windows_core::Interface::as_raw(self), punk.param().abi()) } pub unsafe fn Revert(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Revert)(windows_core::Interface::as_raw(self)).ok() @@ -27753,15 +27753,15 @@ impl ITravelLogClient { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetWindowData(&self, pstream: P0, pwindata: *mut WINDOWDATA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetWindowData)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pwindata).ok() + (windows_core::Interface::vtable(self).GetWindowData)(windows_core::Interface::as_raw(self), pstream.param().abi(), pwindata).ok() } pub unsafe fn LoadHistoryPosition(&self, pszurllocation: P0, dwposition: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadHistoryPosition)(windows_core::Interface::as_raw(self), pszurllocation.into_param().abi(), dwposition).ok() + (windows_core::Interface::vtable(self).LoadHistoryPosition)(windows_core::Interface::as_raw(self), pszurllocation.param().abi(), dwposition).ok() } } #[repr(C)] @@ -27797,19 +27797,19 @@ windows_core::imp::interface_hierarchy!(ITravelLogStg, windows_core::IUnknown); impl ITravelLogStg { pub unsafe fn CreateEntry(&self, pszurl: P0, psztitle: P1, ptlerelativeto: P2, fprepend: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateEntry)(windows_core::Interface::as_raw(self), pszurl.into_param().abi(), psztitle.into_param().abi(), ptlerelativeto.into_param().abi(), fprepend.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateEntry)(windows_core::Interface::as_raw(self), pszurl.param().abi(), psztitle.param().abi(), ptlerelativeto.param().abi(), fprepend.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TravelTo(&self, ptle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TravelTo)(windows_core::Interface::as_raw(self), ptle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TravelTo)(windows_core::Interface::as_raw(self), ptle.param().abi()).ok() } pub unsafe fn EnumEntries(&self, flags: TLENUMF) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -27817,10 +27817,10 @@ impl ITravelLogStg { } pub unsafe fn FindEntries(&self, flags: TLENUMF, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindEntries)(windows_core::Interface::as_raw(self), flags, pszurl.into_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__ = std::mem::zeroed(); @@ -27828,9 +27828,9 @@ impl ITravelLogStg { } pub unsafe fn RemoveEntry(&self, ptle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveEntry)(windows_core::Interface::as_raw(self), ptle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveEntry)(windows_core::Interface::as_raw(self), ptle.param().abi()).ok() } pub unsafe fn GetRelativeEntry(&self, ioffset: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -27892,9 +27892,9 @@ impl IURLSearchHook2 { } pub unsafe fn TranslateWithSearchContext(&self, pwszsearchurl: &mut [u16], psearchcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TranslateWithSearchContext)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszsearchurl.as_ptr()), pwszsearchurl.len().try_into().unwrap(), psearchcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TranslateWithSearchContext)(windows_core::Interface::as_raw(self), core::mem::transmute(pwszsearchurl.as_ptr()), pwszsearchurl.len().try_into().unwrap(), psearchcontext.param().abi()).ok() } } #[repr(C)] @@ -27907,9 +27907,9 @@ windows_core::imp::interface_hierarchy!(IUniformResourceLocatorA, windows_core:: impl IUniformResourceLocatorA { pub unsafe fn SetURL(&self, pcszurl: P0, dwinflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), pcszurl.into_param().abi(), 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__ = std::mem::zeroed(); @@ -27931,9 +27931,9 @@ windows_core::imp::interface_hierarchy!(IUniformResourceLocatorW, windows_core:: impl IUniformResourceLocatorW { pub unsafe fn SetURL(&self, pcszurl: P0, dwinflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), pcszurl.into_param().abi(), 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__ = std::mem::zeroed(); @@ -27956,10 +27956,10 @@ impl IUpdateIDList { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn Update(&self, pbc: P0, pidlin: *const Common::ITEMIDLIST) -> windows_core::Result<*mut Common::ITEMIDLIST> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Update)(windows_core::Interface::as_raw(self), pbc.into_param().abi(), 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)] @@ -27992,9 +27992,9 @@ windows_core::imp::interface_hierarchy!(IUserAccountChangeCallback, windows_core impl IUserAccountChangeCallback { pub unsafe fn OnPictureChange(&self, pszusername: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPictureChange)(windows_core::Interface::as_raw(self), pszusername.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPictureChange)(windows_core::Interface::as_raw(self), pszusername.param().abi()).ok() } } #[repr(C)] @@ -28007,10 +28007,10 @@ windows_core::imp::interface_hierarchy!(IUserNotification, windows_core::IUnknow impl IUserNotification { pub unsafe fn SetBalloonInfo(&self, psztitle: P0, psztext: P1, dwinfoflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBalloonInfo)(windows_core::Interface::as_raw(self), psztitle.into_param().abi(), psztext.into_param().abi(), 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), dwshowtime, dwinterval, cretrycount).ok() @@ -28018,22 +28018,22 @@ impl IUserNotification { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetIconInfo(&self, hicon: P0, psztooltip: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), hicon.into_param().abi(), psztooltip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), hicon.param().abi(), psztooltip.param().abi()).ok() } pub unsafe fn Show(&self, pqc: P0, dwcontinuepollinterval: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pqc.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaySound)(windows_core::Interface::as_raw(self), pszsoundname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlaySound)(windows_core::Interface::as_raw(self), pszsoundname.param().abi()).ok() } } #[repr(C)] @@ -28053,10 +28053,10 @@ windows_core::imp::interface_hierarchy!(IUserNotification2, windows_core::IUnkno impl IUserNotification2 { pub unsafe fn SetBalloonInfo(&self, psztitle: P0, psztext: P1, dwinfoflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetBalloonInfo)(windows_core::Interface::as_raw(self), psztitle.into_param().abi(), psztext.into_param().abi(), 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), dwshowtime, dwinterval, cretrycount).ok() @@ -28064,23 +28064,23 @@ impl IUserNotification2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetIconInfo(&self, hicon: P0, psztooltip: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), hicon.into_param().abi(), psztooltip.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIconInfo)(windows_core::Interface::as_raw(self), hicon.param().abi(), psztooltip.param().abi()).ok() } pub unsafe fn Show(&self, pqc: P0, dwcontinuepollinterval: u32, psink: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), pqc.into_param().abi(), dwcontinuepollinterval, psink.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PlaySound)(windows_core::Interface::as_raw(self), pszsoundname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PlaySound)(windows_core::Interface::as_raw(self), pszsoundname.param().abi()).ok() } } #[repr(C)] @@ -28137,23 +28137,23 @@ windows_core::imp::interface_hierarchy!(IVirtualDesktopManager, windows_core::IU impl IVirtualDesktopManager { pub unsafe fn IsWindowOnCurrentVirtualDesktop(&self, toplevelwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsWindowOnCurrentVirtualDesktop)(windows_core::Interface::as_raw(self), toplevelwindow.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsWindowOnCurrentVirtualDesktop)(windows_core::Interface::as_raw(self), toplevelwindow.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetWindowDesktopId(&self, toplevelwindow: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWindowDesktopId)(windows_core::Interface::as_raw(self), toplevelwindow.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetWindowDesktopId)(windows_core::Interface::as_raw(self), toplevelwindow.param().abi(), &mut result__).map(|| result__) } pub unsafe fn MoveWindowToDesktop(&self, toplevelwindow: P0, desktopid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MoveWindowToDesktop)(windows_core::Interface::as_raw(self), toplevelwindow.into_param().abi(), desktopid).ok() + (windows_core::Interface::vtable(self).MoveWindowToDesktop)(windows_core::Interface::as_raw(self), toplevelwindow.param().abi(), desktopid).ok() } } #[repr(C)] @@ -28169,15 +28169,15 @@ impl IVisualProperties { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetWatermark(&self, hbmp: P0, vpwf: VPWATERMARKFLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWatermark)(windows_core::Interface::as_raw(self), hbmp.into_param().abi(), vpwf).ok() + (windows_core::Interface::vtable(self).SetWatermark)(windows_core::Interface::as_raw(self), hbmp.param().abi(), vpwf).ok() } pub unsafe fn SetColor(&self, vpcf: VPCOLORFLAGS, cr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), vpcf, cr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetColor)(windows_core::Interface::as_raw(self), vpcf, cr.param().abi()).ok() } pub unsafe fn GetColor(&self, vpcf: VPCOLORFLAGS) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28193,9 +28193,9 @@ impl IVisualProperties { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), plf, bredraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFont)(windows_core::Interface::as_raw(self), plf, bredraw.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFont(&self, plf: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()> { @@ -28203,10 +28203,10 @@ impl IVisualProperties { } pub unsafe fn SetTheme(&self, pszsubappname: P0, pszsubidlist: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTheme)(windows_core::Interface::as_raw(self), pszsubappname.into_param().abi(), pszsubidlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTheme)(windows_core::Interface::as_raw(self), pszsubappname.param().abi(), pszsubidlist.param().abi()).ok() } } #[repr(C)] @@ -28250,9 +28250,9 @@ impl IWebBrowser { } pub unsafe fn Navigate(&self, url: P0, flags: Option<*const windows_core::VARIANT>, targetframename: Option<*const windows_core::VARIANT>, postdata: Option<*const windows_core::VARIANT>, headers: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(flags.unwrap_or(std::ptr::null())), core::mem::transmute(targetframename.unwrap_or(std::ptr::null())), core::mem::transmute(postdata.unwrap_or(std::ptr::null())), core::mem::transmute(headers.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(flags.unwrap_or(std::ptr::null())), core::mem::transmute(targetframename.unwrap_or(std::ptr::null())), core::mem::transmute(postdata.unwrap_or(std::ptr::null())), core::mem::transmute(headers.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -28394,9 +28394,9 @@ impl IWebBrowser2 { } pub unsafe fn Navigate(&self, url: P0, flags: Option<*const windows_core::VARIANT>, targetframename: Option<*const windows_core::VARIANT>, postdata: Option<*const windows_core::VARIANT>, headers: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Navigate)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(flags.unwrap_or(std::ptr::null())), core::mem::transmute(targetframename.unwrap_or(std::ptr::null())), core::mem::transmute(postdata.unwrap_or(std::ptr::null())), core::mem::transmute(headers.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.base__.Navigate)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(flags.unwrap_or(std::ptr::null())), core::mem::transmute(targetframename.unwrap_or(std::ptr::null())), core::mem::transmute(postdata.unwrap_or(std::ptr::null())), core::mem::transmute(headers.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.base__.Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -28483,17 +28483,17 @@ impl IWebBrowser2 { } pub unsafe fn PutProperty(&self, property: P0, vtvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.PutProperty)(windows_core::Interface::as_raw(self), property.into_param().abi(), vtvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.PutProperty)(windows_core::Interface::as_raw(self), property.param().abi(), vtvalue.param().abi()).ok() } pub unsafe fn GetProperty(&self, property: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), property.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetProperty)(windows_core::Interface::as_raw(self), property.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28517,9 +28517,9 @@ impl IWebBrowser2 { } pub unsafe fn SetVisible(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetVisible)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetVisible)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn StatusBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28527,9 +28527,9 @@ impl IWebBrowser2 { } pub unsafe fn SetStatusBar(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStatusBar)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStatusBar)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn StatusText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28537,9 +28537,9 @@ impl IWebBrowser2 { } pub unsafe fn SetStatusText(&self, statustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetStatusText)(windows_core::Interface::as_raw(self), statustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetStatusText)(windows_core::Interface::as_raw(self), statustext.param().abi()).ok() } pub unsafe fn ToolBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28554,9 +28554,9 @@ impl IWebBrowser2 { } pub unsafe fn SetMenuBar(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetMenuBar)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetMenuBar)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FullScreen(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28564,9 +28564,9 @@ impl IWebBrowser2 { } pub unsafe fn SetFullScreen(&self, bfullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFullScreen)(windows_core::Interface::as_raw(self), bfullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFullScreen)(windows_core::Interface::as_raw(self), bfullscreen.param().abi()).ok() } pub unsafe fn Navigate2(&self, url: *const windows_core::VARIANT, flags: Option<*const windows_core::VARIANT>, targetframename: Option<*const windows_core::VARIANT>, postdata: Option<*const windows_core::VARIANT>, headers: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Navigate2)(windows_core::Interface::as_raw(self), core::mem::transmute(url), core::mem::transmute(flags.unwrap_or(std::ptr::null())), core::mem::transmute(targetframename.unwrap_or(std::ptr::null())), core::mem::transmute(postdata.unwrap_or(std::ptr::null())), core::mem::transmute(headers.unwrap_or(std::ptr::null()))).ok() @@ -28594,9 +28594,9 @@ impl IWebBrowser2 { } pub unsafe fn SetOffline(&self, boffline: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetOffline)(windows_core::Interface::as_raw(self), boffline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetOffline)(windows_core::Interface::as_raw(self), boffline.param().abi()).ok() } pub unsafe fn Silent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28604,9 +28604,9 @@ impl IWebBrowser2 { } pub unsafe fn SetSilent(&self, bsilent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), bsilent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSilent)(windows_core::Interface::as_raw(self), bsilent.param().abi()).ok() } pub unsafe fn RegisterAsBrowser(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28614,9 +28614,9 @@ impl IWebBrowser2 { } pub unsafe fn SetRegisterAsBrowser(&self, bregister: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRegisterAsBrowser)(windows_core::Interface::as_raw(self), bregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRegisterAsBrowser)(windows_core::Interface::as_raw(self), bregister.param().abi()).ok() } pub unsafe fn RegisterAsDropTarget(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28624,9 +28624,9 @@ impl IWebBrowser2 { } pub unsafe fn SetRegisterAsDropTarget(&self, bregister: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetRegisterAsDropTarget)(windows_core::Interface::as_raw(self), bregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetRegisterAsDropTarget)(windows_core::Interface::as_raw(self), bregister.param().abi()).ok() } pub unsafe fn TheaterMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28634,9 +28634,9 @@ impl IWebBrowser2 { } pub unsafe fn SetTheaterMode(&self, bregister: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTheaterMode)(windows_core::Interface::as_raw(self), bregister.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTheaterMode)(windows_core::Interface::as_raw(self), bregister.param().abi()).ok() } pub unsafe fn AddressBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28644,9 +28644,9 @@ impl IWebBrowser2 { } pub unsafe fn SetAddressBar(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAddressBar)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAddressBar)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn Resizable(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28654,9 +28654,9 @@ impl IWebBrowser2 { } pub unsafe fn SetResizable(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResizable)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetResizable)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -28712,9 +28712,9 @@ impl IWebBrowserApp { } pub unsafe fn Navigate(&self, url: P0, flags: Option<*const windows_core::VARIANT>, targetframename: Option<*const windows_core::VARIANT>, postdata: Option<*const windows_core::VARIANT>, headers: Option<*const windows_core::VARIANT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Navigate)(windows_core::Interface::as_raw(self), url.into_param().abi(), core::mem::transmute(flags.unwrap_or(std::ptr::null())), core::mem::transmute(targetframename.unwrap_or(std::ptr::null())), core::mem::transmute(postdata.unwrap_or(std::ptr::null())), core::mem::transmute(headers.unwrap_or(std::ptr::null()))).ok() + (windows_core::Interface::vtable(self).base__.Navigate)(windows_core::Interface::as_raw(self), url.param().abi(), core::mem::transmute(flags.unwrap_or(std::ptr::null())), core::mem::transmute(targetframename.unwrap_or(std::ptr::null())), core::mem::transmute(postdata.unwrap_or(std::ptr::null())), core::mem::transmute(headers.unwrap_or(std::ptr::null()))).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -28801,17 +28801,17 @@ impl IWebBrowserApp { } pub unsafe fn PutProperty(&self, property: P0, vtvalue: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), property.into_param().abi(), vtvalue.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PutProperty)(windows_core::Interface::as_raw(self), property.param().abi(), vtvalue.param().abi()).ok() } pub unsafe fn GetProperty(&self, property: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), property.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), property.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Name(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28835,9 +28835,9 @@ impl IWebBrowserApp { } pub unsafe fn SetVisible(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn StatusBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28845,9 +28845,9 @@ impl IWebBrowserApp { } pub unsafe fn SetStatusBar(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusBar)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatusBar)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn StatusText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28855,9 +28855,9 @@ impl IWebBrowserApp { } pub unsafe fn SetStatusText(&self, statustext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetStatusText)(windows_core::Interface::as_raw(self), statustext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetStatusText)(windows_core::Interface::as_raw(self), statustext.param().abi()).ok() } pub unsafe fn ToolBar(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28872,9 +28872,9 @@ impl IWebBrowserApp { } pub unsafe fn SetMenuBar(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMenuBar)(windows_core::Interface::as_raw(self), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMenuBar)(windows_core::Interface::as_raw(self), value.param().abi()).ok() } pub unsafe fn FullScreen(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28882,9 +28882,9 @@ impl IWebBrowserApp { } pub unsafe fn SetFullScreen(&self, bfullscreen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFullScreen)(windows_core::Interface::as_raw(self), bfullscreen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFullScreen)(windows_core::Interface::as_raw(self), bfullscreen.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -28931,15 +28931,15 @@ impl IWebWizardExtension { } pub unsafe fn SetInitialURL(&self, pszurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInitialURL)(windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInitialURL)(windows_core::Interface::as_raw(self), pszurl.param().abi()).ok() } pub unsafe fn SetErrorURL(&self, pszerrorurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetErrorURL)(windows_core::Interface::as_raw(self), pszerrorurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetErrorURL)(windows_core::Interface::as_raw(self), pszerrorurl.param().abi()).ok() } } #[repr(C)] @@ -28965,9 +28965,9 @@ impl IWebWizardHost { } pub unsafe fn SetCaption(&self, bstrcaption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), bstrcaption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaption)(windows_core::Interface::as_raw(self), bstrcaption.param().abi()).ok() } pub unsafe fn Caption(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -28975,31 +28975,31 @@ impl IWebWizardHost { } pub unsafe fn put_Property(&self, bstrpropertyname: P0, pvproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), core::mem::transmute(pvproperty)).ok() + (windows_core::Interface::vtable(self).put_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), core::mem::transmute(pvproperty)).ok() } pub unsafe fn get_Property(&self, bstrpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetWizardButtons(&self, vfenableback: P0, vfenablenext: P1, vflastpage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWizardButtons)(windows_core::Interface::as_raw(self), vfenableback.into_param().abi(), vfenablenext.into_param().abi(), vflastpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWizardButtons)(windows_core::Interface::as_raw(self), vfenableback.param().abi(), vfenablenext.param().abi(), vflastpage.param().abi()).ok() } pub unsafe fn SetHeaderText(&self, bstrheadertitle: P0, bstrheadersubtitle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHeaderText)(windows_core::Interface::as_raw(self), bstrheadertitle.into_param().abi(), bstrheadersubtitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHeaderText)(windows_core::Interface::as_raw(self), bstrheadertitle.param().abi(), bstrheadersubtitle.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -29033,9 +29033,9 @@ impl IWebWizardHost2 { } pub unsafe fn SetCaption(&self, bstrcaption: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetCaption)(windows_core::Interface::as_raw(self), bstrcaption.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetCaption)(windows_core::Interface::as_raw(self), bstrcaption.param().abi()).ok() } pub unsafe fn Caption(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -29043,38 +29043,38 @@ impl IWebWizardHost2 { } pub unsafe fn put_Property(&self, bstrpropertyname: P0, pvproperty: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.put_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), core::mem::transmute(pvproperty)).ok() + (windows_core::Interface::vtable(self).base__.put_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), core::mem::transmute(pvproperty)).ok() } pub unsafe fn get_Property(&self, bstrpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.get_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.get_Property)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetWizardButtons(&self, vfenableback: P0, vfenablenext: P1, vflastpage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetWizardButtons)(windows_core::Interface::as_raw(self), vfenableback.into_param().abi(), vfenablenext.into_param().abi(), vflastpage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetWizardButtons)(windows_core::Interface::as_raw(self), vfenableback.param().abi(), vfenablenext.param().abi(), vflastpage.param().abi()).ok() } pub unsafe fn SetHeaderText(&self, bstrheadertitle: P0, bstrheadersubtitle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetHeaderText)(windows_core::Interface::as_raw(self), bstrheadertitle.into_param().abi(), bstrheadersubtitle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetHeaderText)(windows_core::Interface::as_raw(self), bstrheadertitle.param().abi(), bstrheadersubtitle.param().abi()).ok() } pub unsafe fn SignString(&self, value: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SignString)(windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).SignString)(windows_core::Interface::as_raw(self), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] 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 3316d58709..1f8dc06fdf 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs @@ -2,36 +2,36 @@ #[inline] pub unsafe fn AddStroke(hrc: P0, ppacketdesc: *const PACKET_DESCRIPTION, cbpacket: u32, ppacket: *const u8, pxform: *const super::super::Graphics::Gdi::XFORM) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrc.into_param().abi(), ppacketdesc, cbpacket, ppacket, pxform).ok() + AddStroke(hrc.param().abi(), ppacketdesc, cbpacket, ppacket, pxform).ok() } #[inline] pub unsafe fn AddWordsToWordList(hwl: P0, pwcwords: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn AddWordsToWordList(hwl : HRECOWORDLIST, pwcwords : windows_core::PCWSTR) -> windows_core::HRESULT); - AddWordsToWordList(hwl.into_param().abi(), pwcwords.into_param().abi()).ok() + AddWordsToWordList(hwl.param().abi(), pwcwords.param().abi()).ok() } #[inline] pub unsafe fn AdviseInkChange(hrc: P0, bnewstroke: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn AdviseInkChange(hrc : HRECOCONTEXT, bnewstroke : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - AdviseInkChange(hrc.into_param().abi(), bnewstroke.into_param().abi()).ok() + AdviseInkChange(hrc.param().abi(), bnewstroke.param().abi()).ok() } #[inline] pub unsafe fn CreateContext(hrec: P0, phrc: *mut HRECOCONTEXT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn CreateContext(hrec : HRECOGNIZER, phrc : *mut HRECOCONTEXT) -> windows_core::HRESULT); - CreateContext(hrec.into_param().abi(), phrc).ok() + CreateContext(hrec.param().abi(), phrc).ok() } #[inline] pub unsafe fn CreateRecognizer(pclsid: *mut windows_core::GUID, phrec: *mut HRECOGNIZER) -> windows_core::Result<()> { @@ -41,34 +41,34 @@ pub unsafe fn CreateRecognizer(pclsid: *mut windows_core::GUID, phrec: *mut HREC #[inline] pub unsafe fn DestroyContext(hrc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn DestroyContext(hrc : HRECOCONTEXT) -> windows_core::HRESULT); - DestroyContext(hrc.into_param().abi()).ok() + DestroyContext(hrc.param().abi()).ok() } #[inline] pub unsafe fn DestroyRecognizer(hrec: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn DestroyRecognizer(hrec : HRECOGNIZER) -> windows_core::HRESULT); - DestroyRecognizer(hrec.into_param().abi()).ok() + DestroyRecognizer(hrec.param().abi()).ok() } #[inline] pub unsafe fn DestroyWordList(hwl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn DestroyWordList(hwl : HRECOWORDLIST) -> windows_core::HRESULT); - DestroyWordList(hwl.into_param().abi()).ok() + DestroyWordList(hwl.param().abi()).ok() } #[inline] pub unsafe fn EndInkInput(hrc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn EndInkInput(hrc : HRECOCONTEXT) -> windows_core::HRESULT); - EndInkInput(hrc.into_param().abi()).ok() + EndInkInput(hrc.param().abi()).ok() } #[inline] pub unsafe fn GetAllRecognizers(recognizerclsids: *mut *mut windows_core::GUID, count: *mut u32) -> windows_core::Result<()> { @@ -78,67 +78,67 @@ pub unsafe fn GetAllRecognizers(recognizerclsids: *mut *mut windows_core::GUID, #[inline] pub unsafe fn GetBestResultString(hrc: P0, pcsize: *mut u32, pwcbestresult: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn GetBestResultString(hrc : HRECOCONTEXT, pcsize : *mut u32, pwcbestresult : windows_core::PWSTR) -> windows_core::HRESULT); - GetBestResultString(hrc.into_param().abi(), pcsize, core::mem::transmute(pwcbestresult)).ok() + GetBestResultString(hrc.param().abi(), pcsize, core::mem::transmute(pwcbestresult)).ok() } #[inline] pub unsafe fn GetLatticePtr(hrc: P0, pplattice: *mut *mut RECO_LATTICE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn GetLatticePtr(hrc : HRECOCONTEXT, pplattice : *mut *mut RECO_LATTICE) -> windows_core::HRESULT); - GetLatticePtr(hrc.into_param().abi(), pplattice).ok() + GetLatticePtr(hrc.param().abi(), pplattice).ok() } #[inline] pub unsafe fn GetLeftSeparator(hrc: P0, pcsize: *mut u32, pwcleftseparator: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn GetLeftSeparator(hrc : HRECOCONTEXT, pcsize : *mut u32, pwcleftseparator : windows_core::PWSTR) -> windows_core::HRESULT); - GetLeftSeparator(hrc.into_param().abi(), pcsize, core::mem::transmute(pwcleftseparator)).ok() + GetLeftSeparator(hrc.param().abi(), pcsize, core::mem::transmute(pwcleftseparator)).ok() } #[inline] pub unsafe fn GetRecoAttributes(hrec: P0, precoattrs: *mut RECO_ATTRS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn GetRecoAttributes(hrec : HRECOGNIZER, precoattrs : *mut RECO_ATTRS) -> windows_core::HRESULT); - GetRecoAttributes(hrec.into_param().abi(), precoattrs).ok() + GetRecoAttributes(hrec.param().abi(), precoattrs).ok() } #[inline] pub unsafe fn GetResultPropertyList(hrec: P0, ppropertycount: *mut u32, ppropertyguid: *mut windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn GetResultPropertyList(hrec : HRECOGNIZER, ppropertycount : *mut u32, ppropertyguid : *mut windows_core::GUID) -> windows_core::HRESULT); - GetResultPropertyList(hrec.into_param().abi(), ppropertycount, ppropertyguid).ok() + GetResultPropertyList(hrec.param().abi(), ppropertycount, ppropertyguid).ok() } #[inline] pub unsafe fn GetRightSeparator(hrc: P0, pcsize: *mut u32, pwcrightseparator: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn GetRightSeparator(hrc : HRECOCONTEXT, pcsize : *mut u32, pwcrightseparator : windows_core::PWSTR) -> windows_core::HRESULT); - GetRightSeparator(hrc.into_param().abi(), pcsize, core::mem::transmute(pwcrightseparator)).ok() + GetRightSeparator(hrc.param().abi(), pcsize, core::mem::transmute(pwcrightseparator)).ok() } #[inline] pub unsafe fn GetUnicodeRanges(hrec: P0, pcranges: *mut u32, pcr: *mut CHARACTER_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn GetUnicodeRanges(hrec : HRECOGNIZER, pcranges : *mut u32, pcr : *mut CHARACTER_RANGE) -> windows_core::HRESULT); - GetUnicodeRanges(hrec.into_param().abi(), pcranges, pcr).ok() + GetUnicodeRanges(hrec.param().abi(), pcranges, pcr).ok() } #[inline] pub unsafe fn IsStringSupported(hrc: P0, wcstring: u32, pwcstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn IsStringSupported(hrc : HRECOCONTEXT, wcstring : u32, pwcstring : windows_core::PCWSTR) -> windows_core::HRESULT); - IsStringSupported(hrc.into_param().abi(), wcstring, pwcstring.into_param().abi()).ok() + IsStringSupported(hrc.param().abi(), wcstring, pwcstring.param().abi()).ok() } #[inline] pub unsafe fn LoadCachedAttributes(clsid: windows_core::GUID, precoattributes: *mut RECO_ATTRS) -> windows_core::Result<()> { @@ -148,69 +148,69 @@ pub unsafe fn LoadCachedAttributes(clsid: windows_core::GUID, precoattributes: * #[inline] pub unsafe fn MakeWordList(hrec: P0, pbuffer: P1, phwl: *mut HRECOWORDLIST) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hrec.into_param().abi(), pbuffer.into_param().abi(), phwl).ok() + MakeWordList(hrec.param().abi(), pbuffer.param().abi(), phwl).ok() } #[inline] pub unsafe fn Process(hrc: P0, pbpartialprocessing: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn Process(hrc : HRECOCONTEXT, pbpartialprocessing : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); - Process(hrc.into_param().abi(), pbpartialprocessing).ok() + Process(hrc.param().abi(), pbpartialprocessing).ok() } #[inline] pub unsafe fn SetEnabledUnicodeRanges(hrc: P0, cranges: u32, pcr: *mut CHARACTER_RANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn SetEnabledUnicodeRanges(hrc : HRECOCONTEXT, cranges : u32, pcr : *mut CHARACTER_RANGE) -> windows_core::HRESULT); - SetEnabledUnicodeRanges(hrc.into_param().abi(), cranges, pcr).ok() + SetEnabledUnicodeRanges(hrc.param().abi(), cranges, pcr).ok() } #[inline] pub unsafe fn SetFactoid(hrc: P0, cwcfactoid: u32, pwcfactoid: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn SetFactoid(hrc : HRECOCONTEXT, cwcfactoid : u32, pwcfactoid : windows_core::PCWSTR) -> windows_core::HRESULT); - SetFactoid(hrc.into_param().abi(), cwcfactoid, pwcfactoid.into_param().abi()).ok() + SetFactoid(hrc.param().abi(), cwcfactoid, pwcfactoid.param().abi()).ok() } #[inline] pub unsafe fn SetFlags(hrc: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn SetFlags(hrc : HRECOCONTEXT, dwflags : u32) -> windows_core::HRESULT); - SetFlags(hrc.into_param().abi(), dwflags).ok() + SetFlags(hrc.param().abi(), dwflags).ok() } #[inline] pub unsafe fn SetGuide(hrc: P0, pguide: *const RECO_GUIDE, iindex: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn SetGuide(hrc : HRECOCONTEXT, pguide : *const RECO_GUIDE, iindex : u32) -> windows_core::HRESULT); - SetGuide(hrc.into_param().abi(), pguide, iindex).ok() + SetGuide(hrc.param().abi(), pguide, iindex).ok() } #[inline] pub unsafe fn SetTextContext(hrc: P0, pwcbefore: &[u16], pwcafter: &[u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrc.into_param().abi(), 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.param().abi(), 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: P0, hwl: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("inkobjcore.dll" "system" fn SetWordList(hrc : HRECOCONTEXT, hwl : HRECOWORDLIST) -> windows_core::HRESULT); - SetWordList(hrc.into_param().abi(), hwl.into_param().abi()).ok() + SetWordList(hrc.param().abi(), hwl.param().abi()).ok() } windows_core::imp::define_interface!(IDynamicRenderer, IDynamicRenderer_Vtbl, 0xa079468e_7165_46f9_b7af_98ad01a93009); windows_core::imp::interface_hierarchy!(IDynamicRenderer, windows_core::IUnknown); @@ -221,9 +221,9 @@ impl IDynamicRenderer { } pub unsafe fn SetEnabled(&self, benabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), benabled.param().abi()).ok() } pub unsafe fn HWND(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -231,9 +231,9 @@ impl IDynamicRenderer { } pub unsafe fn SetHWND(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn ClipRectangle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -248,9 +248,9 @@ impl IDynamicRenderer { } pub unsafe fn SetClipRegion(&self, hcliprgn: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetClipRegion)(windows_core::Interface::as_raw(self), hcliprgn.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetClipRegion)(windows_core::Interface::as_raw(self), hcliprgn.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DrawingAttributes(&self) -> windows_core::Result { @@ -260,9 +260,9 @@ impl IDynamicRenderer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_DrawingAttributes(&self, pida: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), pida.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), pida.param().abi()).ok() } pub unsafe fn DataCacheEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -270,9 +270,9 @@ impl IDynamicRenderer { } pub unsafe fn SetDataCacheEnabled(&self, fcachedata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDataCacheEnabled)(windows_core::Interface::as_raw(self), fcachedata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDataCacheEnabled)(windows_core::Interface::as_raw(self), fcachedata.param().abi()).ok() } pub unsafe fn ReleaseCachedData(&self, strokeid: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ReleaseCachedData)(windows_core::Interface::as_raw(self), strokeid).ok() @@ -282,9 +282,9 @@ impl IDynamicRenderer { } pub unsafe fn Draw(&self, hdc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc.param().abi()).ok() } } #[repr(C)] @@ -321,9 +321,9 @@ impl IGestureRecognizer { } pub unsafe fn SetEnabled(&self, fenabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenabled.param().abi()).ok() } pub unsafe fn MaxStrokeCount(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -355,17 +355,17 @@ impl IHandwrittenTextInsertion { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertRecognitionResultsArray(&self, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertRecognitionResultsArray)(windows_core::Interface::as_raw(self), psaalternates, locale, falternatecontainsautospacinginformation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InsertRecognitionResultsArray)(windows_core::Interface::as_raw(self), psaalternates, locale, falternatecontainsautospacinginformation.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertInkRecognitionResult(&self, piinkrecoresult: P0, locale: u32, falternatecontainsautospacinginformation: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertInkRecognitionResult)(windows_core::Interface::as_raw(self), piinkrecoresult.into_param().abi(), locale, falternatecontainsautospacinginformation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InsertInkRecognitionResult)(windows_core::Interface::as_raw(self), piinkrecoresult.param().abi(), locale, falternatecontainsautospacinginformation.param().abi()).ok() } } #[repr(C)] @@ -410,9 +410,9 @@ impl IInkCollector { } pub unsafe fn SetEnabled(&self, collecting: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), collecting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), collecting.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultDrawingAttributes(&self) -> windows_core::Result { @@ -422,9 +422,9 @@ impl IInkCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_DefaultDrawingAttributes(&self, newattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_DefaultDrawingAttributes)(windows_core::Interface::as_raw(self), newattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_DefaultDrawingAttributes)(windows_core::Interface::as_raw(self), newattributes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Renderer(&self) -> windows_core::Result { @@ -434,9 +434,9 @@ impl IInkCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Renderer(&self, newinkrenderer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Renderer)(windows_core::Interface::as_raw(self), newinkrenderer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Renderer)(windows_core::Interface::as_raw(self), newinkrenderer.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Ink(&self) -> windows_core::Result { @@ -446,9 +446,9 @@ impl IInkCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Ink(&self, newink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), newink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), newink.param().abi()).ok() } pub unsafe fn AutoRedraw(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -456,9 +456,9 @@ impl IInkCollector { } pub unsafe fn SetAutoRedraw(&self, autoredraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw.param().abi()).ok() } pub unsafe fn CollectingInk(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -477,9 +477,9 @@ impl IInkCollector { } pub unsafe fn SetDynamicRendering(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DesiredPacketDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -487,9 +487,9 @@ impl IInkCollector { } pub unsafe fn SetDesiredPacketDescription(&self, packetguids: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDesiredPacketDescription)(windows_core::Interface::as_raw(self), packetguids.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDesiredPacketDescription)(windows_core::Interface::as_raw(self), packetguids.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MouseIcon(&self) -> windows_core::Result { @@ -499,16 +499,16 @@ impl IInkCollector { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_MouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } pub unsafe fn MousePointer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -547,15 +547,15 @@ impl IInkCollector { } pub unsafe fn SetSupportHighContrastInk(&self, support: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support.param().abi()).ok() } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.param().abi()).ok() } pub unsafe fn GetGestureStatus(&self, gesture: InkApplicationGesture) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -568,22 +568,22 @@ impl IInkCollector { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWindowInputRectangle(&self, windowinputrectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.param().abi()).ok() } pub unsafe fn SetAllTabletsMode(&self, usemouseforinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSingleTabletIntegratedMode(&self, tablet: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSingleTabletIntegratedMode)(windows_core::Interface::as_raw(self), tablet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSingleTabletIntegratedMode)(windows_core::Interface::as_raw(self), tablet.param().abi()).ok() } pub unsafe fn GetEventInterest(&self, eventid: InkCollectorEventInterest) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -591,9 +591,9 @@ impl IInkCollector { } pub unsafe fn SetEventInterest(&self, eventid: InkCollectorEventInterest, listen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -709,9 +709,9 @@ impl IInkCursor { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_DrawingAttributes(&self, attributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), attributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), attributes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Tablet(&self) -> windows_core::Result { @@ -792,10 +792,10 @@ impl IInkCursorButtons { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, identifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), identifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), identifier.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -857,24 +857,24 @@ impl IInkCustomStrokes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, identifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), identifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), identifier.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, name: P0, strokes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), name.into_param().abi(), strokes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), name.param().abi(), strokes.param().abi()).ok() } pub unsafe fn Remove(&self, identifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), identifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), identifier.param().abi()).ok() } pub unsafe fn Clear(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self)).ok() @@ -919,9 +919,9 @@ impl IInkDisp { } pub unsafe fn SetDirty(&self, dirty: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDirty)(windows_core::Interface::as_raw(self), dirty.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDirty)(windows_core::Interface::as_raw(self), dirty.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CustomStrokes(&self) -> windows_core::Result { @@ -936,39 +936,39 @@ impl IInkDisp { #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteStrokes(&self, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteStrokes)(windows_core::Interface::as_raw(self), strokes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteStrokes)(windows_core::Interface::as_raw(self), strokes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DeleteStroke(&self, stroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteStroke)(windows_core::Interface::as_raw(self), stroke.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DeleteStroke)(windows_core::Interface::as_raw(self), stroke.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExtractStrokes(&self, strokes: P0, extractflags: InkExtractFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExtractStrokes)(windows_core::Interface::as_raw(self), strokes.into_param().abi(), 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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ExtractWithRectangle(&self, rectangle: P0, extractflags: InkExtractFlags) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExtractWithRectangle)(windows_core::Interface::as_raw(self), rectangle.into_param().abi(), 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__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clip(&self, rectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Clip)(windows_core::Interface::as_raw(self), rectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Clip)(windows_core::Interface::as_raw(self), rectangle.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -983,17 +983,17 @@ impl IInkDisp { #[cfg(feature = "Win32_System_Com")] pub unsafe fn HitTestWithRectangle(&self, selectionrectangle: P0, intersectpercent: f32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).HitTestWithRectangle)(windows_core::Interface::as_raw(self), selectionrectangle.into_param().abi(), 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(feature = "Win32_System_Com")] pub unsafe fn HitTestWithLasso(&self, points: P0, intersectpercent: f32, lassopoints: Option<*mut windows_core::VARIANT>, strokes: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HitTestWithLasso)(windows_core::Interface::as_raw(self), points.into_param().abi(), intersectpercent, core::mem::transmute(lassopoints.unwrap_or(std::ptr::null_mut())), core::mem::transmute(strokes)).ok() + (windows_core::Interface::vtable(self).HitTestWithLasso)(windows_core::Interface::as_raw(self), points.param().abi(), intersectpercent, core::mem::transmute(lassopoints.unwrap_or(std::ptr::null_mut())), core::mem::transmute(strokes)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NearestPoint(&self, x: i32, y: i32, pointonstroke: *mut f32, distancefrompacket: *mut f32, stroke: *mut Option) -> windows_core::Result<()> { @@ -1002,18 +1002,18 @@ impl IInkDisp { #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateStrokes(&self, strokeids: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStrokes)(windows_core::Interface::as_raw(self), strokeids.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStrokes)(windows_core::Interface::as_raw(self), strokeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddStrokesAtRectangle(&self, sourcestrokes: P0, targetrectangle: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStrokesAtRectangle)(windows_core::Interface::as_raw(self), sourcestrokes.into_param().abi(), targetrectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddStrokesAtRectangle)(windows_core::Interface::as_raw(self), sourcestrokes.param().abi(), targetrectangle.param().abi()).ok() } pub unsafe fn Save(&self, persistenceformat: InkPersistenceFormat, compressionmode: InkPersistenceCompressionMode) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1021,50 +1021,50 @@ impl IInkDisp { } pub unsafe fn Load(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateStroke(&self, packetdata: P0, packetdescription: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateStroke)(windows_core::Interface::as_raw(self), packetdata.into_param().abi(), packetdescription.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateStroke)(windows_core::Interface::as_raw(self), packetdata.param().abi(), packetdescription.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ClipboardCopyWithRectangle(&self, rectangle: P0, clipboardformats: InkClipboardFormats, clipboardmodes: InkClipboardModes) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ClipboardCopyWithRectangle)(windows_core::Interface::as_raw(self), rectangle.into_param().abi(), clipboardformats, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ClipboardCopy)(windows_core::Interface::as_raw(self), strokes.into_param().abi(), clipboardformats, 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanPaste)(windows_core::Interface::as_raw(self), dataobject.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanPaste)(windows_core::Interface::as_raw(self), dataobject.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ClipboardPaste(&self, x: i32, y: i32, dataobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ClipboardPaste)(windows_core::Interface::as_raw(self), x, y, dataobject.into_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")] @@ -1174,9 +1174,9 @@ impl IInkDivider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Strokes(&self, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Strokes)(windows_core::Interface::as_raw(self), strokes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Strokes)(windows_core::Interface::as_raw(self), strokes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RecognizerContext(&self) -> windows_core::Result { @@ -1186,9 +1186,9 @@ impl IInkDivider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_RecognizerContext(&self, recognizercontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_RecognizerContext)(windows_core::Interface::as_raw(self), recognizercontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_RecognizerContext)(windows_core::Interface::as_raw(self), recognizercontext.param().abi()).ok() } pub unsafe fn LineHeight(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1364,9 +1364,9 @@ impl IInkDrawingAttributes { } pub unsafe fn SetFitToCurve(&self, flag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFitToCurve)(windows_core::Interface::as_raw(self), flag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFitToCurve)(windows_core::Interface::as_raw(self), flag.param().abi()).ok() } pub unsafe fn IgnorePressure(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1374,9 +1374,9 @@ impl IInkDrawingAttributes { } pub unsafe fn SetIgnorePressure(&self, flag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIgnorePressure)(windows_core::Interface::as_raw(self), flag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIgnorePressure)(windows_core::Interface::as_raw(self), flag.param().abi()).ok() } pub unsafe fn AntiAliased(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1384,9 +1384,9 @@ impl IInkDrawingAttributes { } pub unsafe fn SetAntiAliased(&self, flag: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAntiAliased)(windows_core::Interface::as_raw(self), flag.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAntiAliased)(windows_core::Interface::as_raw(self), flag.param().abi()).ok() } pub unsafe fn Transparency(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1467,9 +1467,9 @@ impl IInkEdit { } pub unsafe fn SetUseMouseForInput(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseMouseForInput)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseMouseForInput)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn InkMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1493,9 +1493,9 @@ impl IInkEdit { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_DrawingAttributes(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn RecognitionTimeout(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1512,9 +1512,9 @@ impl IInkEdit { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Recognizer(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Recognizer)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Recognizer)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Factoid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1522,9 +1522,9 @@ impl IInkEdit { } pub unsafe fn SetFactoid(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFactoid)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFactoid)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SelInks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1532,9 +1532,9 @@ impl IInkEdit { } pub unsafe fn SetSelInks(&self, selink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelInks)(windows_core::Interface::as_raw(self), selink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelInks)(windows_core::Interface::as_raw(self), selink.param().abi()).ok() } pub unsafe fn SelInksDisplayMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1552,9 +1552,9 @@ impl IInkEdit { } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.param().abi()).ok() } pub unsafe fn SetBackColor(&self, clr: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetBackColor)(windows_core::Interface::as_raw(self), clr).ok() @@ -1590,9 +1590,9 @@ impl IInkEdit { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_Font(&self, ppfont: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Font)(windows_core::Interface::as_raw(self), ppfont.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Font)(windows_core::Interface::as_raw(self), ppfont.param().abi()).ok() } pub unsafe fn Text(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1600,9 +1600,9 @@ impl IInkEdit { } pub unsafe fn SetText(&self, pbstrtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), pbstrtext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), pbstrtext.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MouseIcon(&self) -> windows_core::Result { @@ -1612,16 +1612,16 @@ impl IInkEdit { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_MouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } pub unsafe fn MousePointer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1636,9 +1636,9 @@ impl IInkEdit { } pub unsafe fn SetLocked(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetLocked)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetLocked)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1646,9 +1646,9 @@ impl IInkEdit { } pub unsafe fn SetEnabled(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn MaxLength(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1663,9 +1663,9 @@ impl IInkEdit { } pub unsafe fn SetMultiLine(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultiLine)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMultiLine)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn ScrollBars(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1680,9 +1680,9 @@ impl IInkEdit { } pub unsafe fn SetDisableNoScroll(&self, newval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDisableNoScroll)(windows_core::Interface::as_raw(self), newval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDisableNoScroll)(windows_core::Interface::as_raw(self), newval.param().abi()).ok() } pub unsafe fn SelAlignment(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1690,9 +1690,9 @@ impl IInkEdit { } pub unsafe fn SetSelAlignment(&self, pvarselalignment: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelAlignment)(windows_core::Interface::as_raw(self), pvarselalignment.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelAlignment)(windows_core::Interface::as_raw(self), pvarselalignment.param().abi()).ok() } pub unsafe fn SelBold(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1700,9 +1700,9 @@ impl IInkEdit { } pub unsafe fn SetSelBold(&self, pvarselbold: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelBold)(windows_core::Interface::as_raw(self), pvarselbold.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelBold)(windows_core::Interface::as_raw(self), pvarselbold.param().abi()).ok() } pub unsafe fn SelItalic(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1710,9 +1710,9 @@ impl IInkEdit { } pub unsafe fn SetSelItalic(&self, pvarselitalic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelItalic)(windows_core::Interface::as_raw(self), pvarselitalic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelItalic)(windows_core::Interface::as_raw(self), pvarselitalic.param().abi()).ok() } pub unsafe fn SelUnderline(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1720,9 +1720,9 @@ impl IInkEdit { } pub unsafe fn SetSelUnderline(&self, pvarselunderline: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelUnderline)(windows_core::Interface::as_raw(self), pvarselunderline.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelUnderline)(windows_core::Interface::as_raw(self), pvarselunderline.param().abi()).ok() } pub unsafe fn SelColor(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1730,9 +1730,9 @@ impl IInkEdit { } pub unsafe fn SetSelColor(&self, pvarselcolor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelColor)(windows_core::Interface::as_raw(self), pvarselcolor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelColor)(windows_core::Interface::as_raw(self), pvarselcolor.param().abi()).ok() } pub unsafe fn SelFontName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1740,9 +1740,9 @@ impl IInkEdit { } pub unsafe fn SetSelFontName(&self, pvarselfontname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelFontName)(windows_core::Interface::as_raw(self), pvarselfontname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelFontName)(windows_core::Interface::as_raw(self), pvarselfontname.param().abi()).ok() } pub unsafe fn SelFontSize(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1750,9 +1750,9 @@ impl IInkEdit { } pub unsafe fn SetSelFontSize(&self, pvarselfontsize: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelFontSize)(windows_core::Interface::as_raw(self), pvarselfontsize.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelFontSize)(windows_core::Interface::as_raw(self), pvarselfontsize.param().abi()).ok() } pub unsafe fn SelCharOffset(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1760,9 +1760,9 @@ impl IInkEdit { } pub unsafe fn SetSelCharOffset(&self, pvarselcharoffset: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelCharOffset)(windows_core::Interface::as_raw(self), pvarselcharoffset.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelCharOffset)(windows_core::Interface::as_raw(self), pvarselcharoffset.param().abi()).ok() } pub unsafe fn TextRTF(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1770,9 +1770,9 @@ impl IInkEdit { } pub unsafe fn SetTextRTF(&self, pbstrtextrtf: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetTextRTF)(windows_core::Interface::as_raw(self), pbstrtextrtf.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetTextRTF)(windows_core::Interface::as_raw(self), pbstrtextrtf.param().abi()).ok() } pub unsafe fn SelStart(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1794,9 +1794,9 @@ impl IInkEdit { } pub unsafe fn SetSelText(&self, pbstrseltext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelText)(windows_core::Interface::as_raw(self), pbstrseltext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelText)(windows_core::Interface::as_raw(self), pbstrseltext.param().abi()).ok() } pub unsafe fn SelRTF(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1804,9 +1804,9 @@ impl IInkEdit { } pub unsafe fn SetSelRTF(&self, pbstrselrtf: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelRTF)(windows_core::Interface::as_raw(self), pbstrselrtf.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelRTF)(windows_core::Interface::as_raw(self), pbstrselrtf.param().abi()).ok() } pub unsafe fn Refresh(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() @@ -1941,35 +1941,35 @@ impl IInkExtendedProperties { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Item(&self, identifier: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), identifier.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Item)(windows_core::Interface::as_raw(self), identifier.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, guid: P0, data: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), guid.into_param().abi(), data.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), guid.param().abi(), data.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Remove(&self, identifier: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), identifier.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), identifier.param().abi()).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 DoesPropertyExist(&self, guid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DoesPropertyExist)(windows_core::Interface::as_raw(self), guid.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).DoesPropertyExist)(windows_core::Interface::as_raw(self), guid.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2006,9 +2006,9 @@ impl IInkExtendedProperty { } pub unsafe fn SetData(&self, data: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetData)(windows_core::Interface::as_raw(self), data.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2059,15 +2059,15 @@ impl IInkLineInfo { } pub unsafe fn GetCandidate(&self, ncandidatenum: u32, pwcrecogword: P0, pcwcrecogword: *const u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetCandidate)(windows_core::Interface::as_raw(self), ncandidatenum, pwcrecogword.into_param().abi(), pcwcrecogword, 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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCandidate)(windows_core::Interface::as_raw(self), ncandidatenum, strrecogword.into_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() @@ -2102,9 +2102,9 @@ impl IInkOverlay { } pub unsafe fn SetEnabled(&self, collecting: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), collecting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), collecting.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DefaultDrawingAttributes(&self) -> windows_core::Result { @@ -2114,9 +2114,9 @@ impl IInkOverlay { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_DefaultDrawingAttributes(&self, newattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_DefaultDrawingAttributes)(windows_core::Interface::as_raw(self), newattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_DefaultDrawingAttributes)(windows_core::Interface::as_raw(self), newattributes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Renderer(&self) -> windows_core::Result { @@ -2126,9 +2126,9 @@ impl IInkOverlay { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Renderer(&self, newinkrenderer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Renderer)(windows_core::Interface::as_raw(self), newinkrenderer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Renderer)(windows_core::Interface::as_raw(self), newinkrenderer.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Ink(&self) -> windows_core::Result { @@ -2138,9 +2138,9 @@ impl IInkOverlay { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Ink(&self, newink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), newink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), newink.param().abi()).ok() } pub unsafe fn AutoRedraw(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2148,9 +2148,9 @@ impl IInkOverlay { } pub unsafe fn SetAutoRedraw(&self, autoredraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw.param().abi()).ok() } pub unsafe fn CollectingInk(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2169,9 +2169,9 @@ impl IInkOverlay { } pub unsafe fn SetDynamicRendering(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DesiredPacketDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2179,9 +2179,9 @@ impl IInkOverlay { } pub unsafe fn SetDesiredPacketDescription(&self, packetguids: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDesiredPacketDescription)(windows_core::Interface::as_raw(self), packetguids.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDesiredPacketDescription)(windows_core::Interface::as_raw(self), packetguids.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MouseIcon(&self) -> windows_core::Result { @@ -2191,16 +2191,16 @@ impl IInkOverlay { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_MouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } pub unsafe fn MousePointer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2224,9 +2224,9 @@ impl IInkOverlay { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSelection(&self, selection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), selection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), selection.param().abi()).ok() } pub unsafe fn EraserMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2279,9 +2279,9 @@ impl IInkOverlay { } pub unsafe fn SetSupportHighContrastInk(&self, support: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support.param().abi()).ok() } pub unsafe fn SupportHighContrastSelectionUI(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2289,9 +2289,9 @@ impl IInkOverlay { } pub unsafe fn SetSupportHighContrastSelectionUI(&self, support: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), support.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), support.param().abi()).ok() } pub unsafe fn HitTestSelection(&self, x: i32, y: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2300,15 +2300,15 @@ impl IInkOverlay { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Draw(&self, rect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), rect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), rect.param().abi()).ok() } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.param().abi()).ok() } pub unsafe fn GetGestureStatus(&self, gesture: InkApplicationGesture) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2321,22 +2321,22 @@ impl IInkOverlay { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWindowInputRectangle(&self, windowinputrectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.param().abi()).ok() } pub unsafe fn SetAllTabletsMode(&self, usemouseforinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSingleTabletIntegratedMode(&self, tablet: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSingleTabletIntegratedMode)(windows_core::Interface::as_raw(self), tablet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSingleTabletIntegratedMode)(windows_core::Interface::as_raw(self), tablet.param().abi()).ok() } pub unsafe fn GetEventInterest(&self, eventid: InkCollectorEventInterest) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2344,9 +2344,9 @@ impl IInkOverlay { } pub unsafe fn SetEventInterest(&self, eventid: InkCollectorEventInterest, listen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2477,9 +2477,9 @@ impl IInkPicture { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_DefaultDrawingAttributes(&self, newattributes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_DefaultDrawingAttributes)(windows_core::Interface::as_raw(self), newattributes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_DefaultDrawingAttributes)(windows_core::Interface::as_raw(self), newattributes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Renderer(&self) -> windows_core::Result { @@ -2489,9 +2489,9 @@ impl IInkPicture { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Renderer(&self, newinkrenderer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Renderer)(windows_core::Interface::as_raw(self), newinkrenderer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Renderer)(windows_core::Interface::as_raw(self), newinkrenderer.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Ink(&self) -> windows_core::Result { @@ -2501,9 +2501,9 @@ impl IInkPicture { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Ink(&self, newink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), newink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), newink.param().abi()).ok() } pub unsafe fn AutoRedraw(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2511,9 +2511,9 @@ impl IInkPicture { } pub unsafe fn SetAutoRedraw(&self, autoredraw: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoRedraw)(windows_core::Interface::as_raw(self), autoredraw.param().abi()).ok() } pub unsafe fn CollectingInk(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2532,9 +2532,9 @@ impl IInkPicture { } pub unsafe fn SetDynamicRendering(&self, enabled: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDynamicRendering)(windows_core::Interface::as_raw(self), enabled.param().abi()).ok() } pub unsafe fn DesiredPacketDescription(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2542,9 +2542,9 @@ impl IInkPicture { } pub unsafe fn SetDesiredPacketDescription(&self, packetguids: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDesiredPacketDescription)(windows_core::Interface::as_raw(self), packetguids.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDesiredPacketDescription)(windows_core::Interface::as_raw(self), packetguids.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MouseIcon(&self) -> windows_core::Result { @@ -2554,16 +2554,16 @@ impl IInkPicture { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetMouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_MouseIcon(&self, mouseicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_MouseIcon)(windows_core::Interface::as_raw(self), mouseicon.param().abi()).ok() } pub unsafe fn MousePointer(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2587,9 +2587,9 @@ impl IInkPicture { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSelection(&self, selection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), selection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSelection)(windows_core::Interface::as_raw(self), selection.param().abi()).ok() } pub unsafe fn EraserMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2608,16 +2608,16 @@ impl IInkPicture { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn putref_Picture(&self, ppicture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Picture)(windows_core::Interface::as_raw(self), ppicture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Picture)(windows_core::Interface::as_raw(self), ppicture.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetPicture(&self, ppicture: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPicture)(windows_core::Interface::as_raw(self), ppicture.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPicture)(windows_core::Interface::as_raw(self), ppicture.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Picture(&self) -> windows_core::Result { @@ -2668,9 +2668,9 @@ impl IInkPicture { } pub unsafe fn SetSupportHighContrastInk(&self, support: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastInk)(windows_core::Interface::as_raw(self), support.param().abi()).ok() } pub unsafe fn SupportHighContrastSelectionUI(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2678,9 +2678,9 @@ impl IInkPicture { } pub unsafe fn SetSupportHighContrastSelectionUI(&self, support: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), support.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSupportHighContrastSelectionUI)(windows_core::Interface::as_raw(self), support.param().abi()).ok() } pub unsafe fn HitTestSelection(&self, x: i32, y: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2688,9 +2688,9 @@ impl IInkPicture { } pub unsafe fn SetGestureStatus(&self, gesture: InkApplicationGesture, listen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetGestureStatus)(windows_core::Interface::as_raw(self), gesture, listen.param().abi()).ok() } pub unsafe fn GetGestureStatus(&self, gesture: InkApplicationGesture) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2703,22 +2703,22 @@ impl IInkPicture { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWindowInputRectangle(&self, windowinputrectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWindowInputRectangle)(windows_core::Interface::as_raw(self), windowinputrectangle.param().abi()).ok() } pub unsafe fn SetAllTabletsMode(&self, usemouseforinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), usemouseforinput.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSingleTabletIntegratedMode(&self, tablet: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSingleTabletIntegratedMode)(windows_core::Interface::as_raw(self), tablet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSingleTabletIntegratedMode)(windows_core::Interface::as_raw(self), tablet.param().abi()).ok() } pub unsafe fn GetEventInterest(&self, eventid: InkCollectorEventInterest) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2726,9 +2726,9 @@ impl IInkPicture { } pub unsafe fn SetEventInterest(&self, eventid: InkCollectorEventInterest, listen: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventInterest)(windows_core::Interface::as_raw(self), eventid, listen.param().abi()).ok() } pub unsafe fn InkEnabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2736,9 +2736,9 @@ impl IInkPicture { } pub unsafe fn SetInkEnabled(&self, collecting: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInkEnabled)(windows_core::Interface::as_raw(self), collecting.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInkEnabled)(windows_core::Interface::as_raw(self), collecting.param().abi()).ok() } pub unsafe fn Enabled(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2746,9 +2746,9 @@ impl IInkPicture { } pub unsafe fn SetEnabled(&self, vbool: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), vbool.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), vbool.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2924,10 +2924,10 @@ impl IInkRecognitionAlternate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStrokesFromStrokeRanges(&self, strokes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStrokesFromStrokeRanges)(windows_core::Interface::as_raw(self), strokes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStrokesFromStrokeRanges)(windows_core::Interface::as_raw(self), strokes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetStrokesFromTextRange(&self, selectionstart: *mut i32, selectionlength: *mut i32, getstrokesfromtextrange: *mut Option) -> windows_core::Result<()> { @@ -2936,24 +2936,24 @@ impl IInkRecognitionAlternate { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTextRangeFromStrokes(&self, strokes: P0, selectionstart: *mut i32, selectionlength: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTextRangeFromStrokes)(windows_core::Interface::as_raw(self), strokes.into_param().abi(), selectionstart, selectionlength).ok() + (windows_core::Interface::vtable(self).GetTextRangeFromStrokes)(windows_core::Interface::as_raw(self), strokes.param().abi(), selectionstart, selectionlength).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AlternatesWithConstantPropertyValues(&self, propertytype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AlternatesWithConstantPropertyValues)(windows_core::Interface::as_raw(self), propertytype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).AlternatesWithConstantPropertyValues)(windows_core::Interface::as_raw(self), propertytype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetPropertyValue(&self, propertytype: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPropertyValue)(windows_core::Interface::as_raw(self), propertytype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPropertyValue)(windows_core::Interface::as_raw(self), propertytype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -3069,9 +3069,9 @@ impl IInkRecognitionResult { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ModifyTopAlternate(&self, alternate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifyTopAlternate)(windows_core::Interface::as_raw(self), alternate.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ModifyTopAlternate)(windows_core::Interface::as_raw(self), alternate.param().abi()).ok() } pub unsafe fn SetResultOnStrokes(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetResultOnStrokes)(windows_core::Interface::as_raw(self)).ok() @@ -3188,9 +3188,9 @@ impl IInkRecognizerContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Strokes(&self, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Strokes)(windows_core::Interface::as_raw(self), strokes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Strokes)(windows_core::Interface::as_raw(self), strokes.param().abi()).ok() } pub unsafe fn CharacterAutoCompletionMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3205,9 +3205,9 @@ impl IInkRecognizerContext { } pub unsafe fn SetFactoid(&self, factoid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFactoid)(windows_core::Interface::as_raw(self), factoid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFactoid)(windows_core::Interface::as_raw(self), factoid.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Guide(&self) -> windows_core::Result { @@ -3217,9 +3217,9 @@ impl IInkRecognizerContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Guide(&self, recognizerguide: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Guide)(windows_core::Interface::as_raw(self), recognizerguide.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Guide)(windows_core::Interface::as_raw(self), recognizerguide.param().abi()).ok() } pub unsafe fn PrefixText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3227,9 +3227,9 @@ impl IInkRecognizerContext { } pub unsafe fn SetPrefixText(&self, prefix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetPrefixText)(windows_core::Interface::as_raw(self), prefix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetPrefixText)(windows_core::Interface::as_raw(self), prefix.param().abi()).ok() } pub unsafe fn SuffixText(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3237,9 +3237,9 @@ impl IInkRecognizerContext { } pub unsafe fn SetSuffixText(&self, suffix: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSuffixText)(windows_core::Interface::as_raw(self), suffix.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSuffixText)(windows_core::Interface::as_raw(self), suffix.param().abi()).ok() } pub unsafe fn RecognitionFlags(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3256,9 +3256,9 @@ impl IInkRecognizerContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_WordList(&self, wordlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_WordList)(windows_core::Interface::as_raw(self), wordlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_WordList)(windows_core::Interface::as_raw(self), wordlist.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Recognizer(&self) -> windows_core::Result { @@ -3277,15 +3277,15 @@ impl IInkRecognizerContext { } pub unsafe fn BackgroundRecognize(&self, customdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BackgroundRecognize)(windows_core::Interface::as_raw(self), customdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BackgroundRecognize)(windows_core::Interface::as_raw(self), customdata.param().abi()).ok() } pub unsafe fn BackgroundRecognizeWithAlternates(&self, customdata: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BackgroundRecognizeWithAlternates)(windows_core::Interface::as_raw(self), customdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).BackgroundRecognizeWithAlternates)(windows_core::Interface::as_raw(self), customdata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> windows_core::Result { @@ -3294,10 +3294,10 @@ impl IInkRecognizerContext { } pub unsafe fn IsStringSupported(&self, string: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsStringSupported)(windows_core::Interface::as_raw(self), string.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsStringSupported)(windows_core::Interface::as_raw(self), string.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3368,9 +3368,9 @@ impl IInkRecognizerContext2 { } pub unsafe fn SetEnabledUnicodeRanges(&self, unicoderanges: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabledUnicodeRanges)(windows_core::Interface::as_raw(self), unicoderanges.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabledUnicodeRanges)(windows_core::Interface::as_raw(self), unicoderanges.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3394,9 +3394,9 @@ impl IInkRecognizerGuide { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetWritingBox(&self, rectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetWritingBox)(windows_core::Interface::as_raw(self), rectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetWritingBox)(windows_core::Interface::as_raw(self), rectangle.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DrawnBox(&self) -> windows_core::Result { @@ -3406,9 +3406,9 @@ impl IInkRecognizerGuide { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDrawnBox(&self, rectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDrawnBox)(windows_core::Interface::as_raw(self), rectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDrawnBox)(windows_core::Interface::as_raw(self), rectangle.param().abi()).ok() } pub unsafe fn Rows(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3581,45 +3581,45 @@ impl IInkRenderer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetViewTransform(&self, viewtransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetViewTransform)(windows_core::Interface::as_raw(self), viewtransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetViewTransform)(windows_core::Interface::as_raw(self), viewtransform.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetViewTransform(&self, viewtransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetViewTransform)(windows_core::Interface::as_raw(self), viewtransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetViewTransform)(windows_core::Interface::as_raw(self), viewtransform.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetObjectTransform(&self, objecttransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetObjectTransform)(windows_core::Interface::as_raw(self), objecttransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).GetObjectTransform)(windows_core::Interface::as_raw(self), objecttransform.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetObjectTransform(&self, objecttransform: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetObjectTransform)(windows_core::Interface::as_raw(self), objecttransform.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetObjectTransform)(windows_core::Interface::as_raw(self), objecttransform.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Draw(&self, hdc: isize, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc, strokes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Draw)(windows_core::Interface::as_raw(self), hdc, strokes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn DrawStroke(&self, hdc: isize, stroke: P0, drawingattributes: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).DrawStroke)(windows_core::Interface::as_raw(self), hdc, stroke.into_param().abi(), drawingattributes.into_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), hdc, x, y).ok() @@ -3636,19 +3636,19 @@ impl IInkRenderer { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Measure(&self, strokes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Measure)(windows_core::Interface::as_raw(self), strokes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Measure)(windows_core::Interface::as_raw(self), strokes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MeasureStroke(&self, stroke: P0, drawingattributes: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MeasureStroke)(windows_core::Interface::as_raw(self), stroke.into_param().abi(), drawingattributes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (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), horizontalcomponent, verticalcomponent).ok() @@ -3658,9 +3658,9 @@ impl IInkRenderer { } pub unsafe fn ScaleTransform(&self, horizontalmultiplier: f32, verticalmultiplier: f32, applyonpenwidth: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier, applyonpenwidth.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ScaleTransform)(windows_core::Interface::as_raw(self), horizontalmultiplier, verticalmultiplier, applyonpenwidth.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3729,9 +3729,9 @@ impl IInkStrokeDisp { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_DrawingAttributes(&self, drawattrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), drawattrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), drawattrs.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Ink(&self) -> windows_core::Result { @@ -3779,25 +3779,25 @@ impl IInkStrokeDisp { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindIntersections(&self, strokes: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindIntersections)(windows_core::Interface::as_raw(self), strokes.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).FindIntersections)(windows_core::Interface::as_raw(self), strokes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetRectangleIntersections(&self, rectangle: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetRectangleIntersections)(windows_core::Interface::as_raw(self), rectangle.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetRectangleIntersections)(windows_core::Interface::as_raw(self), rectangle.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clip(&self, rectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Clip)(windows_core::Interface::as_raw(self), rectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Clip)(windows_core::Interface::as_raw(self), rectangle.param().abi()).ok() } pub unsafe fn HitTestCircle(&self, x: i32, y: i32, radius: f32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3813,9 +3813,9 @@ impl IInkStrokeDisp { } pub unsafe fn GetPacketDescriptionPropertyMetrics(&self, propertyname: P0, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPacketDescriptionPropertyMetrics)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), minimum, maximum, units, resolution).ok() + (windows_core::Interface::vtable(self).GetPacketDescriptionPropertyMetrics)(windows_core::Interface::as_raw(self), propertyname.param().abi(), minimum, maximum, units, resolution).ok() } pub unsafe fn GetPoints(&self, index: i32, count: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3823,10 +3823,10 @@ impl IInkStrokeDisp { } pub unsafe fn SetPoints(&self, points: P0, index: i32, count: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPoints)(windows_core::Interface::as_raw(self), points.into_param().abi(), index, count, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPoints)(windows_core::Interface::as_raw(self), points.param().abi(), index, count, &mut result__).map(|| result__) } pub unsafe fn GetPacketData(&self, index: i32, count: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3834,18 +3834,18 @@ impl IInkStrokeDisp { } pub unsafe fn GetPacketValuesByProperty(&self, propertyname: P0, index: i32, count: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPacketValuesByProperty)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), index, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetPacketValuesByProperty)(windows_core::Interface::as_raw(self), propertyname.param().abi(), index, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetPacketValuesByProperty(&self, bstrpropertyname: P0, packetvalues: P1, index: i32, count: i32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SetPacketValuesByProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.into_param().abi(), packetvalues.into_param().abi(), index, count, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).SetPacketValuesByProperty)(windows_core::Interface::as_raw(self), bstrpropertyname.param().abi(), packetvalues.param().abi(), index, count, &mut result__).map(|| result__) } pub unsafe fn GetFlattenedBezierPoints(&self, fittingerror: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3854,17 +3854,17 @@ impl IInkStrokeDisp { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Transform(&self, transform: P0, applyonpenwidth: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.into_param().abi(), applyonpenwidth.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.param().abi(), applyonpenwidth.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ScaleToRectangle(&self, rectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScaleToRectangle)(windows_core::Interface::as_raw(self), rectangle.into_param().abi()).ok() + (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), horizontalcomponent, verticalcomponent).ok() @@ -3986,37 +3986,37 @@ impl IInkStrokes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Add(&self, inkstroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), inkstroke.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), inkstroke.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn AddStrokes(&self, inkstrokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStrokes)(windows_core::Interface::as_raw(self), inkstrokes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddStrokes)(windows_core::Interface::as_raw(self), inkstrokes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Remove(&self, inkstroke: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), inkstroke.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), inkstroke.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveStrokes(&self, inkstrokes: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveStrokes)(windows_core::Interface::as_raw(self), inkstrokes.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveStrokes)(windows_core::Interface::as_raw(self), inkstrokes.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ModifyDrawingAttributes(&self, drawattrs: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ModifyDrawingAttributes)(windows_core::Interface::as_raw(self), drawattrs.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ModifyDrawingAttributes)(windows_core::Interface::as_raw(self), drawattrs.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetBoundingBox(&self, boundingboxmode: InkBoundingBoxMode) -> windows_core::Result { @@ -4026,17 +4026,17 @@ impl IInkStrokes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Transform(&self, transform: P0, applyonpenwidth: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.into_param().abi(), applyonpenwidth.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Transform)(windows_core::Interface::as_raw(self), transform.param().abi(), applyonpenwidth.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn ScaleToRectangle(&self, rectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ScaleToRectangle)(windows_core::Interface::as_raw(self), rectangle.into_param().abi()).ok() + (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), horizontalcomponent, verticalcomponent).ok() @@ -4053,9 +4053,9 @@ impl IInkStrokes { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clip(&self, rectangle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Clip)(windows_core::Interface::as_raw(self), rectangle.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Clip)(windows_core::Interface::as_raw(self), rectangle.param().abi()).ok() } pub unsafe fn RemoveRecognitionResult(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RemoveRecognitionResult)(windows_core::Interface::as_raw(self)).ok() @@ -4147,16 +4147,16 @@ impl IInkTablet { } pub unsafe fn IsPacketPropertySupported(&self, packetpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPacketPropertySupported)(windows_core::Interface::as_raw(self), packetpropertyname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPacketPropertySupported)(windows_core::Interface::as_raw(self), packetpropertyname.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPropertyMetrics(&self, propertyname: P0, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetPropertyMetrics)(windows_core::Interface::as_raw(self), propertyname.into_param().abi(), minimum, maximum, units, resolution).ok() + (windows_core::Interface::vtable(self).GetPropertyMetrics)(windows_core::Interface::as_raw(self), propertyname.param().abi(), minimum, maximum, units, resolution).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4238,10 +4238,10 @@ impl IInkTablets { } pub unsafe fn IsPacketPropertySupported(&self, packetpropertyname: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsPacketPropertySupported)(windows_core::Interface::as_raw(self), packetpropertyname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsPacketPropertySupported)(windows_core::Interface::as_raw(self), packetpropertyname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4277,10 +4277,10 @@ impl IInkTransform { } pub unsafe fn Reflect(&self, horizontally: P0, vertically: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Reflect)(windows_core::Interface::as_raw(self), horizontally.into_param().abi(), vertically.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reflect)(windows_core::Interface::as_raw(self), horizontally.param().abi(), vertically.param().abi()).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), horizontalcomponent, verticalcomponent).ok() @@ -4386,22 +4386,22 @@ windows_core::imp::interface_hierarchy!(IInkWordList, windows_core::IUnknown, su impl IInkWordList { pub unsafe fn AddWord(&self, newword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWord)(windows_core::Interface::as_raw(self), newword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddWord)(windows_core::Interface::as_raw(self), newword.param().abi()).ok() } pub unsafe fn RemoveWord(&self, removeword: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveWord)(windows_core::Interface::as_raw(self), removeword.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveWord)(windows_core::Interface::as_raw(self), removeword.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Merge(&self, mergewordlist: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), mergewordlist.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Merge)(windows_core::Interface::as_raw(self), mergewordlist.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4423,9 +4423,9 @@ windows_core::imp::interface_hierarchy!(IInkWordList2, windows_core::IUnknown, s impl IInkWordList2 { pub unsafe fn AddWords(&self, newwords: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddWords)(windows_core::Interface::as_raw(self), newwords.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddWords)(windows_core::Interface::as_raw(self), newwords.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4487,31 +4487,31 @@ impl IMathInputControl { } pub unsafe fn SetCustomPaint(&self, element: i32, paint: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCustomPaint)(windows_core::Interface::as_raw(self), element, paint.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCustomPaint)(windows_core::Interface::as_raw(self), element, paint.param().abi()).ok() } pub unsafe fn SetCaptionText(&self, captiontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetCaptionText)(windows_core::Interface::as_raw(self), captiontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetCaptionText)(windows_core::Interface::as_raw(self), captiontext.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadInk(&self, ink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadInk)(windows_core::Interface::as_raw(self), ink.into_param().abi()).ok() + (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), ownerwindow).ok() } pub unsafe fn EnableExtendedButtons(&self, extended: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableExtendedButtons)(windows_core::Interface::as_raw(self), extended.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableExtendedButtons)(windows_core::Interface::as_raw(self), extended.param().abi()).ok() } pub unsafe fn GetPreviewHeight(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4522,21 +4522,21 @@ impl IMathInputControl { } pub unsafe fn EnableAutoGrow(&self, autogrow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableAutoGrow)(windows_core::Interface::as_raw(self), autogrow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableAutoGrow)(windows_core::Interface::as_raw(self), autogrow.param().abi()).ok() } pub unsafe fn AddFunctionName(&self, functionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddFunctionName)(windows_core::Interface::as_raw(self), functionname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddFunctionName)(windows_core::Interface::as_raw(self), functionname.param().abi()).ok() } pub unsafe fn RemoveFunctionName(&self, functionname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveFunctionName)(windows_core::Interface::as_raw(self), functionname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveFunctionName)(windows_core::Interface::as_raw(self), functionname.param().abi()).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetHoverIcon(&self) -> windows_core::Result { @@ -4588,9 +4588,9 @@ impl IPenInputPanel { } pub unsafe fn SetFactoid(&self, factoid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFactoid)(windows_core::Interface::as_raw(self), factoid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFactoid)(windows_core::Interface::as_raw(self), factoid.param().abi()).ok() } pub unsafe fn AttachedEditWindow(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4619,9 +4619,9 @@ impl IPenInputPanel { } pub unsafe fn SetVisible(&self, visible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetVisible)(windows_core::Interface::as_raw(self), visible.param().abi()).ok() } pub unsafe fn Top(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4659,9 +4659,9 @@ impl IPenInputPanel { } pub unsafe fn SetAutoShow(&self, autoshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAutoShow)(windows_core::Interface::as_raw(self), autoshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAutoShow)(windows_core::Interface::as_raw(self), autoshow.param().abi()).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), left, top).ok() @@ -4674,9 +4674,9 @@ impl IPenInputPanel { } pub unsafe fn EnableTsf(&self, enable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableTsf)(windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableTsf)(windows_core::Interface::as_raw(self), enable.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4718,9 +4718,9 @@ impl IRealTimeStylus { } pub unsafe fn SetEnabled(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } pub unsafe fn HWND(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4728,9 +4728,9 @@ impl IRealTimeStylus { } pub unsafe fn SetHWND(&self, hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHWND)(windows_core::Interface::as_raw(self), hwnd.param().abi()).ok() } pub unsafe fn WindowInputRectangle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4741,9 +4741,9 @@ impl IRealTimeStylus { } pub unsafe fn AddStylusSyncPlugin(&self, iindex: u32, piplugin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStylusSyncPlugin)(windows_core::Interface::as_raw(self), iindex, piplugin.into_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), iindex, core::mem::transmute(ppiplugin)).ok() @@ -4761,9 +4761,9 @@ impl IRealTimeStylus { } pub unsafe fn AddStylusAsyncPlugin(&self, iindex: u32, piplugin: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddStylusAsyncPlugin)(windows_core::Interface::as_raw(self), iindex, piplugin.into_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), iindex, core::mem::transmute(ppiplugin)).ok() @@ -4785,9 +4785,9 @@ impl IRealTimeStylus { } pub unsafe fn putref_ChildRealTimeStylusPlugin(&self, pirts: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_ChildRealTimeStylusPlugin)(windows_core::Interface::as_raw(self), pirts.into_param().abi()).ok() + (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), 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() @@ -4797,16 +4797,16 @@ impl IRealTimeStylus { } pub unsafe fn SetAllTabletsMode(&self, fusemouseforinput: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), fusemouseforinput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAllTabletsMode)(windows_core::Interface::as_raw(self), fusemouseforinput.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSingleTabletMode(&self, pitablet: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSingleTabletMode)(windows_core::Interface::as_raw(self), pitablet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSingleTabletMode)(windows_core::Interface::as_raw(self), pitablet.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTablet(&self) -> windows_core::Result { @@ -4816,10 +4816,10 @@ impl IRealTimeStylus { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTabletContextIdFromTablet(&self, pitablet: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTabletContextIdFromTablet)(windows_core::Interface::as_raw(self), pitablet.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTabletContextIdFromTablet)(windows_core::Interface::as_raw(self), pitablet.param().abi(), &mut result__).map(|| result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTabletFromTabletContextId(&self, tcid: u32) -> windows_core::Result { @@ -4911,9 +4911,9 @@ impl IRealTimeStylus2 { } pub unsafe fn SetFlicksEnabled(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFlicksEnabled)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFlicksEnabled)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -4931,9 +4931,9 @@ impl IRealTimeStylus3 { } pub unsafe fn SetMultiTouchEnabled(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMultiTouchEnabled)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetMultiTouchEnabled)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -4995,9 +4995,9 @@ impl IStrokeBuilder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn putref_Ink(&self, piinkobj: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), piinkobj.into_param().abi()).ok() + (windows_core::Interface::vtable(self).putref_Ink)(windows_core::Interface::as_raw(self), piinkobj.param().abi()).ok() } } #[repr(C)] @@ -5030,102 +5030,102 @@ windows_core::imp::interface_hierarchy!(IStylusAsyncPlugin, windows_core::IUnkno impl IStylusAsyncPlugin { pub unsafe fn RealTimeStylusEnabled(&self, pirtssrc: P0, ptcids: &[u32]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RealTimeStylusEnabled)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.RealTimeStylusEnabled)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() } pub unsafe fn RealTimeStylusDisabled(&self, pirtssrc: P0, ptcids: &[u32]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RealTimeStylusDisabled)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.RealTimeStylusDisabled)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() } pub unsafe fn StylusInRange(&self, pirtssrc: P0, tcid: u32, sid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusInRange)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, sid).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusOutOfRange)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, sid).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusDown)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), ppinoutpkt).ok() + (windows_core::Interface::vtable(self).base__.StylusDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusUp)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), ppinoutpkt).ok() + (windows_core::Interface::vtable(self).base__.StylusUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), sid, pguidstylusbutton, pstyluspos).ok() + (windows_core::Interface::vtable(self).base__.StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), sid, pguidstylusbutton, pstyluspos).ok() + (windows_core::Interface::vtable(self).base__.StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InAirPackets)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, ppinoutpkts).ok() + (windows_core::Interface::vtable(self).base__.InAirPackets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Packets)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, ppinoutpkts).ok() + (windows_core::Interface::vtable(self).base__.Packets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, ppinoutpkts).ok() } pub unsafe fn CustomStylusDataAdded(&self, pirtssrc: P0, pguidid: *const windows_core::GUID, pbdata: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CustomStylusDataAdded)(windows_core::Interface::as_raw(self), pirtssrc.into_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() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SystemEvent)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, sid, event, core::mem::transmute(eventdata)).ok() + (windows_core::Interface::vtable(self).base__.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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TabletAdded)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pitablet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.TabletAdded)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pitablet.param().abi()).ok() } pub unsafe fn TabletRemoved(&self, pirtssrc: P0, itabletindex: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TabletRemoved)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), itabletindex).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Error)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), piplugin.into_param().abi(), datainterest, hrerrorcode, lptrkey).ok() + (windows_core::Interface::vtable(self).base__.Error)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), piplugin.param().abi(), datainterest, hrerrorcode, lptrkey).ok() } pub unsafe fn UpdateMapping(&self, pirtssrc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateMapping)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateMapping)(windows_core::Interface::as_raw(self), pirtssrc.param().abi()).ok() } pub unsafe fn DataInterest(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5141,102 +5141,102 @@ windows_core::imp::interface_hierarchy!(IStylusPlugin, windows_core::IUnknown); impl IStylusPlugin { pub unsafe fn RealTimeStylusEnabled(&self, pirtssrc: P0, ptcids: &[u32]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RealTimeStylusEnabled)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() + (windows_core::Interface::vtable(self).RealTimeStylusEnabled)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() } pub unsafe fn RealTimeStylusDisabled(&self, pirtssrc: P0, ptcids: &[u32]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RealTimeStylusDisabled)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() + (windows_core::Interface::vtable(self).RealTimeStylusDisabled)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() } pub unsafe fn StylusInRange(&self, pirtssrc: P0, tcid: u32, sid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusInRange)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusOutOfRange)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusDown)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), 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()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusUp)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), 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()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), sid, pguidstylusbutton, pstyluspos).ok() + (windows_core::Interface::vtable(self).StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), sid, pguidstylusbutton, pstyluspos).ok() + (windows_core::Interface::vtable(self).StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InAirPackets)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, 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()), pcinoutpkts, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Packets)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, 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()), pcinoutpkts, ppinoutpkts).ok() } pub unsafe fn CustomStylusDataAdded(&self, pirtssrc: P0, pguidid: *const windows_core::GUID, pbdata: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CustomStylusDataAdded)(windows_core::Interface::as_raw(self), pirtssrc.into_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() + (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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SystemEvent)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, sid, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TabletAdded)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pitablet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TabletAdded)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pitablet.param().abi()).ok() } pub unsafe fn TabletRemoved(&self, pirtssrc: P0, itabletindex: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TabletRemoved)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), piplugin.into_param().abi(), datainterest, hrerrorcode, lptrkey).ok() + (windows_core::Interface::vtable(self).Error)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), piplugin.param().abi(), datainterest, hrerrorcode, lptrkey).ok() } pub unsafe fn UpdateMapping(&self, pirtssrc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateMapping)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateMapping)(windows_core::Interface::as_raw(self), pirtssrc.param().abi()).ok() } pub unsafe fn DataInterest(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5272,102 +5272,102 @@ windows_core::imp::interface_hierarchy!(IStylusSyncPlugin, windows_core::IUnknow impl IStylusSyncPlugin { pub unsafe fn RealTimeStylusEnabled(&self, pirtssrc: P0, ptcids: &[u32]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RealTimeStylusEnabled)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.RealTimeStylusEnabled)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() } pub unsafe fn RealTimeStylusDisabled(&self, pirtssrc: P0, ptcids: &[u32]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.RealTimeStylusDisabled)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.RealTimeStylusDisabled)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), ptcids.len().try_into().unwrap(), core::mem::transmute(ptcids.as_ptr())).ok() } pub unsafe fn StylusInRange(&self, pirtssrc: P0, tcid: u32, sid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusInRange)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, sid).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusOutOfRange)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, sid).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusDown)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), ppinoutpkt).ok() + (windows_core::Interface::vtable(self).base__.StylusDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusUp)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), ppinoutpkt).ok() + (windows_core::Interface::vtable(self).base__.StylusUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, ppacket.len().try_into().unwrap(), core::mem::transmute(ppacket.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), sid, pguidstylusbutton, pstyluspos).ok() + (windows_core::Interface::vtable(self).base__.StylusButtonDown)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), sid, pguidstylusbutton, pstyluspos).ok() + (windows_core::Interface::vtable(self).base__.StylusButtonUp)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), sid, pguidstylusbutton, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InAirPackets)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, ppinoutpkts).ok() + (windows_core::Interface::vtable(self).base__.InAirPackets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Packets)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, ppinoutpkts).ok() + (windows_core::Interface::vtable(self).base__.Packets)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pstylusinfo, cpktcount, ppackets.len().try_into().unwrap(), core::mem::transmute(ppackets.as_ptr()), pcinoutpkts, ppinoutpkts).ok() } pub unsafe fn CustomStylusDataAdded(&self, pirtssrc: P0, pguidid: *const windows_core::GUID, pbdata: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.CustomStylusDataAdded)(windows_core::Interface::as_raw(self), pirtssrc.into_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() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SystemEvent)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), tcid, sid, event, core::mem::transmute(eventdata)).ok() + (windows_core::Interface::vtable(self).base__.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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TabletAdded)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), pitablet.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.TabletAdded)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), pitablet.param().abi()).ok() } pub unsafe fn TabletRemoved(&self, pirtssrc: P0, itabletindex: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.TabletRemoved)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), itabletindex).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Error)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi(), piplugin.into_param().abi(), datainterest, hrerrorcode, lptrkey).ok() + (windows_core::Interface::vtable(self).base__.Error)(windows_core::Interface::as_raw(self), pirtssrc.param().abi(), piplugin.param().abi(), datainterest, hrerrorcode, lptrkey).ok() } pub unsafe fn UpdateMapping(&self, pirtssrc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.UpdateMapping)(windows_core::Interface::as_raw(self), pirtssrc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.UpdateMapping)(windows_core::Interface::as_raw(self), pirtssrc.param().abi()).ok() } pub unsafe fn DataInterest(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5387,9 +5387,9 @@ impl ITextInputPanel { } pub unsafe fn SetAttachedEditWindow(&self, attachededitwindow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetAttachedEditWindow)(windows_core::Interface::as_raw(self), attachededitwindow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetAttachedEditWindow)(windows_core::Interface::as_raw(self), attachededitwindow.param().abi()).ok() } pub unsafe fn CurrentInteractionMode(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5434,9 +5434,9 @@ impl ITextInputPanel { } pub unsafe fn SetExpandPostInsertionCorrection(&self, expand: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetExpandPostInsertionCorrection)(windows_core::Interface::as_raw(self), expand.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetExpandPostInsertionCorrection)(windows_core::Interface::as_raw(self), expand.param().abi()).ok() } pub unsafe fn InPlaceVisibleOnFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5444,9 +5444,9 @@ impl ITextInputPanel { } pub unsafe fn SetInPlaceVisibleOnFocus(&self, visible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInPlaceVisibleOnFocus)(windows_core::Interface::as_raw(self), visible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInPlaceVisibleOnFocus)(windows_core::Interface::as_raw(self), visible.param().abi()).ok() } pub unsafe fn InPlaceBoundingRectangle(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5465,9 +5465,9 @@ impl ITextInputPanel { } pub unsafe fn SetInPlaceVisibility(&self, visible: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInPlaceVisibility)(windows_core::Interface::as_raw(self), visible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInPlaceVisibility)(windows_core::Interface::as_raw(self), visible.param().abi()).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), xposition, yposition, position).ok() @@ -5477,15 +5477,15 @@ impl ITextInputPanel { } pub unsafe fn Advise(&self, eventsink: P0, eventmask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), eventsink.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), eventsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unadvise)(windows_core::Interface::as_raw(self), eventsink.param().abi()).ok() } } #[repr(C)] @@ -5546,17 +5546,17 @@ impl ITextInputPanelEventSink { } pub unsafe fn InPlaceVisibilityChanging(&self, oldvisible: P0, newvisible: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InPlaceVisibilityChanging)(windows_core::Interface::as_raw(self), oldvisible.into_param().abi(), newvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InPlaceVisibilityChanging)(windows_core::Interface::as_raw(self), oldvisible.param().abi(), newvisible.param().abi()).ok() } pub unsafe fn InPlaceVisibilityChanged(&self, oldvisible: P0, newvisible: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).InPlaceVisibilityChanged)(windows_core::Interface::as_raw(self), oldvisible.into_param().abi(), newvisible.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InPlaceVisibilityChanged)(windows_core::Interface::as_raw(self), oldvisible.param().abi(), newvisible.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn TextInserting(&self, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()> { @@ -5607,17 +5607,17 @@ windows_core::imp::interface_hierarchy!(ITipAutoCompleteClient, windows_core::IU impl ITipAutoCompleteClient { pub unsafe fn AdviseProvider(&self, hwndfield: P0, piprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseProvider)(windows_core::Interface::as_raw(self), hwndfield.into_param().abi(), piprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseProvider)(windows_core::Interface::as_raw(self), hwndfield.param().abi(), piprovider.param().abi()).ok() } pub unsafe fn UnadviseProvider(&self, hwndfield: P0, piprovider: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).UnadviseProvider)(windows_core::Interface::as_raw(self), hwndfield.into_param().abi(), piprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnadviseProvider)(windows_core::Interface::as_raw(self), hwndfield.param().abi(), 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() @@ -5627,10 +5627,10 @@ impl ITipAutoCompleteClient { } pub unsafe fn RequestShowUI(&self, hwndlist: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestShowUI)(windows_core::Interface::as_raw(self), hwndlist.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).RequestShowUI)(windows_core::Interface::as_raw(self), hwndlist.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -5647,15 +5647,15 @@ windows_core::imp::interface_hierarchy!(ITipAutoCompleteProvider, windows_core:: impl ITipAutoCompleteProvider { pub unsafe fn UpdatePendingText(&self, bstrpendingtext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdatePendingText)(windows_core::Interface::as_raw(self), bstrpendingtext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdatePendingText)(windows_core::Interface::as_raw(self), bstrpendingtext.param().abi()).ok() } pub unsafe fn Show(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } } #[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 d3c2ede627..90cd60e49e 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs @@ -1,10 +1,10 @@ #[inline] pub unsafe fn DoMsCtfMonitor(dwflags: u32, heventforservicestop: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msctfmonitor.dll" "system" fn DoMsCtfMonitor(dwflags : u32, heventforservicestop : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); - DoMsCtfMonitor(dwflags, heventforservicestop.into_param().abi()) + DoMsCtfMonitor(dwflags, heventforservicestop.param().abi()) } #[inline] pub unsafe fn InitLocalMsCtfMonitor(dwflags: u32) -> windows_core::Result<()> { @@ -26,10 +26,10 @@ impl IAccClientDocMgr { } pub unsafe fn LookupByHWND(&self, hwnd: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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__ = std::mem::zeroed(); @@ -67,16 +67,16 @@ impl IAccDictionary { } pub unsafe fn LookupMnemonicTerm(&self, bstrmnemonic: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupMnemonicTerm)(windows_core::Interface::as_raw(self), bstrmnemonic.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).LookupMnemonicTerm)(windows_core::Interface::as_raw(self), bstrmnemonic.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ConvertValueToString(&self, term: *const windows_core::GUID, lcid: u32, varvalue: P0, pbstrresult: *mut windows_core::BSTR, plcid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConvertValueToString)(windows_core::Interface::as_raw(self), term, lcid, varvalue.into_param().abi(), core::mem::transmute(pbstrresult), plcid).ok() + (windows_core::Interface::vtable(self).ConvertValueToString)(windows_core::Interface::as_raw(self), term, lcid, varvalue.param().abi(), core::mem::transmute(pbstrresult), plcid).ok() } } #[repr(C)] @@ -93,21 +93,21 @@ windows_core::imp::interface_hierarchy!(IAccServerDocMgr, windows_core::IUnknown impl IAccServerDocMgr { pub unsafe fn NewDocument(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NewDocument)(windows_core::Interface::as_raw(self), riid, punk.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RevokeDocument)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RevokeDocument)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn OnDocumentFocus(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDocumentFocus)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDocumentFocus)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } } #[repr(C)] @@ -122,15 +122,15 @@ windows_core::imp::interface_hierarchy!(IAccStore, windows_core::IUnknown); impl IAccStore { pub unsafe fn Register(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Register)(windows_core::Interface::as_raw(self), riid, punk.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Unregister)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Unregister)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDocuments(&self) -> windows_core::Result { @@ -139,10 +139,10 @@ impl IAccStore { } pub unsafe fn LookupByHWND(&self, hwnd: P0, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), riid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).LookupByHWND)(windows_core::Interface::as_raw(self), hwnd.param().abi(), 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__ = std::mem::zeroed(); @@ -150,9 +150,9 @@ impl IAccStore { } pub unsafe fn OnDocumentFocus(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDocumentFocus)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnDocumentFocus)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn GetFocused(&self, riid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -185,29 +185,29 @@ impl IAnchor { } pub unsafe fn IsEqual(&self, pawith: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pawith.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsEqual)(windows_core::Interface::as_raw(self), pawith.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Compare(&self, pawith: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), pawith.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Compare)(windows_core::Interface::as_raw(self), pawith.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Shift(&self, dwflags: u32, cchreq: i32, pcch: *mut i32, pahaltanchor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Shift)(windows_core::Interface::as_raw(self), dwflags, cchreq, pcch, pahaltanchor.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Shift)(windows_core::Interface::as_raw(self), dwflags, cchreq, pcch, pahaltanchor.param().abi()).ok() } pub unsafe fn ShiftTo(&self, pasite: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftTo)(windows_core::Interface::as_raw(self), pasite.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShiftTo)(windows_core::Interface::as_raw(self), pasite.param().abi()).ok() } pub unsafe fn ShiftRegion(&self, dwflags: u32, dir: TsShiftDir) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -264,10 +264,10 @@ windows_core::imp::interface_hierarchy!(ICoCreateLocally, windows_core::IUnknown impl ICoCreateLocally { pub unsafe fn CoCreateLocally(&self, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, punk: *mut Option, riidparam: *const windows_core::GUID, punkparam: P0, varparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).CoCreateLocally)(windows_core::Interface::as_raw(self), rclsid, dwclscontext, riid, core::mem::transmute(punk), riidparam, punkparam.into_param().abi(), varparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CoCreateLocally)(windows_core::Interface::as_raw(self), rclsid, dwclscontext, riid, core::mem::transmute(punk), riidparam, punkparam.param().abi(), varparam.param().abi()).ok() } } #[repr(C)] @@ -280,11 +280,11 @@ windows_core::imp::interface_hierarchy!(ICoCreatedLocally, windows_core::IUnknow impl ICoCreatedLocally { pub unsafe fn LocalInit(&self, punklocalobject: P0, riidparam: *const windows_core::GUID, punkparam: P1, varparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).LocalInit)(windows_core::Interface::as_raw(self), punklocalobject.into_param().abi(), riidparam, punkparam.into_param().abi(), varparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LocalInit)(windows_core::Interface::as_raw(self), punklocalobject.param().abi(), riidparam, punkparam.param().abi(), varparam.param().abi()).ok() } } #[repr(C)] @@ -297,9 +297,9 @@ windows_core::imp::interface_hierarchy!(IDocWrap, windows_core::IUnknown); impl IDocWrap { pub unsafe fn SetDoc(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDoc)(windows_core::Interface::as_raw(self), riid, punk.into_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__ = std::mem::zeroed(); @@ -746,15 +746,15 @@ windows_core::imp::interface_hierarchy!(ITextStoreACP, windows_core::IUnknown); impl ITextStoreACP { pub unsafe fn AdviseSink(&self, riid: *const windows_core::GUID, punk: P0, dwmask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -797,10 +797,10 @@ impl ITextStoreACP { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), dwflags, acpstart, acpend, pdataobject.into_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), dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), pacpstart, pacpend, pchange).ok() @@ -808,9 +808,9 @@ impl ITextStoreACP { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: P0, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.into_param().abi(), pacpstart, pacpend, pchange).ok() + (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.param().abi(), pacpstart, pacpend, 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), dwflags, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() @@ -898,15 +898,15 @@ windows_core::imp::interface_hierarchy!(ITextStoreACP2, windows_core::IUnknown); impl ITextStoreACP2 { pub unsafe fn AdviseSink(&self, riid: *const windows_core::GUID, punk: P0, dwmask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -949,10 +949,10 @@ impl ITextStoreACP2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), dwflags, acpstart, acpend, pdataobject.into_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), dwflags, core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), pacpstart, pacpend, pchange).ok() @@ -960,9 +960,9 @@ impl ITextStoreACP2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: P0, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.into_param().abi(), pacpstart, pacpend, pchange).ok() + (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.param().abi(), pacpstart, pacpend, 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), dwflags, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr())).ok() @@ -1058,26 +1058,26 @@ impl ITextStoreACPServices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Serialize(&self, pprop: P0, prange: P1, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pprop.into_param().abi(), prange.into_param().abi(), phdr, pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pprop.param().abi(), prange.param().abi(), phdr, pstream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Unserialize(&self, pprop: P0, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: P1, ploader: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Unserialize)(windows_core::Interface::as_raw(self), pprop.into_param().abi(), phdr, pstream.into_param().abi(), ploader.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ForceLoadProperty)(windows_core::Interface::as_raw(self), pprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ForceLoadProperty)(windows_core::Interface::as_raw(self), pprop.param().abi()).ok() } pub unsafe fn CreateRange(&self, acpstart: i32, acpend: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1179,15 +1179,15 @@ windows_core::imp::interface_hierarchy!(ITextStoreAnchor, windows_core::IUnknown impl ITextStoreAnchor { pub unsafe fn AdviseSink(&self, riid: *const windows_core::GUID, punk: P0, dwmask: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UnadviseSink)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1199,10 +1199,10 @@ impl ITextStoreAnchor { } pub unsafe fn QueryInsert(&self, pateststart: P0, patestend: P1, cch: u32, pparesultstart: *mut Option, pparesultend: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryInsert)(windows_core::Interface::as_raw(self), pateststart.into_param().abi(), patestend.into_param().abi(), 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), ulindex, pselection.len().try_into().unwrap(), core::mem::transmute(pselection.as_ptr()), pcfetched).ok() @@ -1212,65 +1212,65 @@ impl ITextStoreAnchor { } pub unsafe fn GetText(&self, dwflags: u32, pastart: P0, paend: P1, pchtext: &mut [u16], pcch: *mut u32, fupdateanchor: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).GetText)(windows_core::Interface::as_raw(self), dwflags, pastart.into_param().abi(), paend.into_param().abi(), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), pcch, fupdateanchor.into_param().abi()).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(), pcch, fupdateanchor.param().abi()).ok() } pub unsafe fn SetText(&self, dwflags: u32, pastart: P0, paend: P1, pchtext: &[u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetText)(windows_core::Interface::as_raw(self), dwflags, pastart.into_param().abi(), paend.into_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 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), pastart.into_param().abi(), paend.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetFormattedText)(windows_core::Interface::as_raw(self), pastart.param().abi(), paend.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetEmbedded(&self, dwflags: u32, papos: P0, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEmbedded)(windows_core::Interface::as_raw(self), dwflags, papos.into_param().abi(), rguidservice, 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: P0, paend: P1, pdataobject: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), dwflags, pastart.into_param().abi(), paend.into_param().abi(), pdataobject.into_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), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestAttrsAtPosition)(windows_core::Interface::as_raw(self), papos.into_param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), papos.into_param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), 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::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), pastart.into_param().abi(), pahalt.into_param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags, pffound, 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, pffound, plfoundoffset).ok() } pub unsafe fn RetrieveRequestedAttrs(&self, paattrvals: &mut [TS_ATTRVAL], pcfetched: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).RetrieveRequestedAttrs)(windows_core::Interface::as_raw(self), paattrvals.len().try_into().unwrap(), core::mem::transmute(paattrvals.as_ptr()), pcfetched).ok() @@ -1293,10 +1293,10 @@ impl ITextStoreAnchor { } pub unsafe fn GetTextExt(&self, vcview: u32, pastart: P0, paend: P1, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), vcview, pastart.into_param().abi(), paend.into_param().abi(), prc, pfclipped).ok() + (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), vcview, pastart.param().abi(), paend.param().abi(), prc, pfclipped).ok() } pub unsafe fn GetScreenExt(&self, vcview: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1317,9 +1317,9 @@ impl ITextStoreAnchor { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: P0, ppastart: *mut Option, ppaend: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), dwflags, pdataobject.into_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)] @@ -1370,10 +1370,10 @@ windows_core::imp::interface_hierarchy!(ITextStoreAnchorEx, windows_core::IUnkno impl ITextStoreAnchorEx { pub unsafe fn ScrollToRect(&self, pstart: P0, pend: P1, rc: super::super::Foundation::RECT, dwposition: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).ScrollToRect)(windows_core::Interface::as_raw(self), pstart.into_param().abi(), pend.into_param().abi(), core::mem::transmute(rc), 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)] @@ -1386,10 +1386,10 @@ windows_core::imp::interface_hierarchy!(ITextStoreAnchorSink, windows_core::IUnk impl ITextStoreAnchorSink { pub unsafe fn OnTextChange(&self, dwflags: TEXT_STORE_CHANGE_FLAGS, pastart: P0, paend: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTextChange)(windows_core::Interface::as_raw(self), dwflags, pastart.into_param().abi(), paend.into_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() @@ -1402,10 +1402,10 @@ impl ITextStoreAnchorSink { } pub unsafe fn OnAttrsChange(&self, pastart: P0, paend: P1, paattrs: &[windows_core::GUID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAttrsChange)(windows_core::Interface::as_raw(self), pastart.into_param().abi(), paend.into_param().abi(), paattrs.len().try_into().unwrap(), core::mem::transmute(paattrs.as_ptr())).ok() + (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), dwlockflags).ok() @@ -1434,10 +1434,10 @@ windows_core::imp::interface_hierarchy!(ITextStoreSinkAnchorEx, windows_core::IU impl ITextStoreSinkAnchorEx { pub unsafe fn OnTextChange(&self, dwflags: TEXT_STORE_CHANGE_FLAGS, pastart: P0, paend: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnTextChange)(windows_core::Interface::as_raw(self), dwflags, pastart.into_param().abi(), paend.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.OnSelectionChange)(windows_core::Interface::as_raw(self)).ok() @@ -1450,10 +1450,10 @@ impl ITextStoreSinkAnchorEx { } pub unsafe fn OnAttrsChange(&self, pastart: P0, paend: P1, paattrs: &[windows_core::GUID]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnAttrsChange)(windows_core::Interface::as_raw(self), pastart.into_param().abi(), paend.into_param().abi(), paattrs.len().try_into().unwrap(), core::mem::transmute(paattrs.as_ptr())).ok() + (windows_core::Interface::vtable(self).base__.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).base__.OnLockGranted)(windows_core::Interface::as_raw(self), dwlockflags).ok() @@ -1478,9 +1478,9 @@ windows_core::imp::interface_hierarchy!(ITfActiveLanguageProfileNotifySink, wind impl ITfActiveLanguageProfileNotifySink { pub unsafe fn OnActivated(&self, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), clsid, guidprofile, factivated.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), clsid, guidprofile, factivated.param().abi()).ok() } } #[repr(C)] @@ -1528,9 +1528,9 @@ impl ITfCandidateListUIElement { } pub unsafe fn Show(&self, bshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.param().abi()).ok() } pub unsafe fn IsShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1592,9 +1592,9 @@ impl ITfCandidateListUIElementBehavior { } pub unsafe fn Show(&self, bshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), bshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.base__.Show)(windows_core::Interface::as_raw(self), bshow.param().abi()).ok() } pub unsafe fn IsShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1765,9 +1765,9 @@ windows_core::imp::interface_hierarchy!(ITfCleanupContextSink, windows_core::IUn impl ITfCleanupContextSink { pub unsafe fn OnCleanupContext(&self, ecwrite: u32, pic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCleanupContext)(windows_core::Interface::as_raw(self), ecwrite, pic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCleanupContext)(windows_core::Interface::as_raw(self), ecwrite, pic.param().abi()).ok() } } #[repr(C)] @@ -1852,15 +1852,15 @@ impl ITfComposition { } pub unsafe fn ShiftStart(&self, ecwrite: u32, pnewstart: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftStart)(windows_core::Interface::as_raw(self), ecwrite, pnewstart.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftEnd)(windows_core::Interface::as_raw(self), ecwrite, pnewend.into_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), ecwrite).ok() @@ -1879,9 +1879,9 @@ windows_core::imp::interface_hierarchy!(ITfCompositionSink, windows_core::IUnkno impl ITfCompositionSink { pub unsafe fn OnCompositionTerminated(&self, ecwrite: u32, pcomposition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCompositionTerminated)(windows_core::Interface::as_raw(self), ecwrite, pcomposition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnCompositionTerminated)(windows_core::Interface::as_raw(self), ecwrite, pcomposition.param().abi()).ok() } } #[repr(C)] @@ -1928,10 +1928,10 @@ windows_core::imp::interface_hierarchy!(ITfContext, windows_core::IUnknown); impl ITfContext { pub unsafe fn RequestEditSession(&self, tid: u32, pes: P0, dwflags: TF_CONTEXT_EDIT_CONTEXT_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).RequestEditSession)(windows_core::Interface::as_raw(self), tid, pes.into_param().abi(), 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__ = std::mem::zeroed(); @@ -1985,10 +1985,10 @@ impl ITfContext { } pub unsafe fn CreateRangeBackup(&self, ec: u32, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateRangeBackup)(windows_core::Interface::as_raw(self), ec, prange.into_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)] @@ -2015,11 +2015,11 @@ windows_core::imp::interface_hierarchy!(ITfContextComposition, windows_core::IUn impl ITfContextComposition { pub unsafe fn StartComposition(&self, ecwrite: u32, pcompositionrange: P0, psink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).StartComposition)(windows_core::Interface::as_raw(self), ecwrite, pcompositionrange.into_param().abi(), psink.into_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__ = std::mem::zeroed(); @@ -2027,18 +2027,18 @@ impl ITfContextComposition { } pub unsafe fn FindComposition(&self, ecread: u32, ptestrange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindComposition)(windows_core::Interface::as_raw(self), ecread, ptestrange.into_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: P0, psink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TakeOwnership)(windows_core::Interface::as_raw(self), ecwrite, pcomposition.into_param().abi(), psink.into_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)] @@ -2054,35 +2054,35 @@ windows_core::imp::interface_hierarchy!(ITfContextKeyEventSink, windows_core::IU impl ITfContextKeyEventSink { pub unsafe fn OnKeyDown(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnKeyUp(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnTestKeyDown(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnTestKeyUp(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -2135,11 +2135,11 @@ windows_core::imp::interface_hierarchy!(ITfContextOwnerCompositionServices, wind impl ITfContextOwnerCompositionServices { pub unsafe fn StartComposition(&self, ecwrite: u32, pcompositionrange: P0, psink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.StartComposition)(windows_core::Interface::as_raw(self), ecwrite, pcompositionrange.into_param().abi(), psink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -2147,24 +2147,24 @@ impl ITfContextOwnerCompositionServices { } pub unsafe fn FindComposition(&self, ecread: u32, ptestrange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindComposition)(windows_core::Interface::as_raw(self), ecread, ptestrange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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: P0, psink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.TakeOwnership)(windows_core::Interface::as_raw(self), ecwrite, pcomposition.into_param().abi(), psink.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.TakeOwnership)(windows_core::Interface::as_raw(self), ecwrite, pcomposition.param().abi(), psink.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TerminateComposition(&self, pcomposition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).TerminateComposition)(windows_core::Interface::as_raw(self), pcomposition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TerminateComposition)(windows_core::Interface::as_raw(self), pcomposition.param().abi()).ok() } } #[repr(C)] @@ -2177,23 +2177,23 @@ windows_core::imp::interface_hierarchy!(ITfContextOwnerCompositionSink, windows_ impl ITfContextOwnerCompositionSink { pub unsafe fn OnStartComposition(&self, pcomposition: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnStartComposition)(windows_core::Interface::as_raw(self), pcomposition.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnStartComposition)(windows_core::Interface::as_raw(self), pcomposition.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnUpdateComposition(&self, pcomposition: P0, prangenew: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUpdateComposition)(windows_core::Interface::as_raw(self), pcomposition.into_param().abi(), prangenew.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnUpdateComposition)(windows_core::Interface::as_raw(self), pcomposition.param().abi(), prangenew.param().abi()).ok() } pub unsafe fn OnEndComposition(&self, pcomposition: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEndComposition)(windows_core::Interface::as_raw(self), pcomposition.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEndComposition)(windows_core::Interface::as_raw(self), pcomposition.param().abi()).ok() } } #[repr(C)] @@ -2218,26 +2218,26 @@ impl ITfContextOwnerServices { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Serialize(&self, pprop: P0, prange: P1, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pprop.into_param().abi(), prange.into_param().abi(), phdr, pstream.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pprop.param().abi(), prange.param().abi(), phdr, pstream.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Unserialize(&self, pprop: P0, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: P1, ploader: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).Unserialize)(windows_core::Interface::as_raw(self), pprop.into_param().abi(), phdr, pstream.into_param().abi(), ploader.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ForceLoadProperty)(windows_core::Interface::as_raw(self), pprop.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ForceLoadProperty)(windows_core::Interface::as_raw(self), pprop.param().abi()).ok() } pub unsafe fn CreateRange(&self, acpstart: i32, acpend: i32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2270,9 +2270,9 @@ impl ITfContextView { } pub unsafe fn GetTextExt(&self, ec: u32, prange: P0, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), prc, pfclipped).ok() + (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), prc, pfclipped).ok() } pub unsafe fn GetScreenExt(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2296,20 +2296,20 @@ windows_core::imp::interface_hierarchy!(ITfCreatePropertyStore, windows_core::IU impl ITfCreatePropertyStore { pub unsafe fn IsStoreSerializable(&self, guidprop: *const windows_core::GUID, prange: P0, ppropstore: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsStoreSerializable)(windows_core::Interface::as_raw(self), guidprop, prange.into_param().abi(), ppropstore.into_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: P0, cb: u32, pstream: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreatePropertyStore)(windows_core::Interface::as_raw(self), guidprop, prange.into_param().abi(), cb, pstream.into_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)] @@ -2407,15 +2407,15 @@ windows_core::imp::interface_hierarchy!(ITfDocumentMgr, windows_core::IUnknown); impl ITfDocumentMgr { pub unsafe fn CreateContext(&self, tidowner: u32, dwflags: u32, punk: P0, ppic: *mut Option, pectextstore: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), tidowner, dwflags, punk.into_param().abi(), core::mem::transmute(ppic), pectextstore).ok() + (windows_core::Interface::vtable(self).CreateContext)(windows_core::Interface::as_raw(self), tidowner, dwflags, punk.param().abi(), core::mem::transmute(ppic), pectextstore).ok() } pub unsafe fn Push(&self, pic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Push)(windows_core::Interface::as_raw(self), pic.into_param().abi()).ok() + (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), dwflags).ok() @@ -2478,15 +2478,15 @@ windows_core::imp::interface_hierarchy!(ITfEditTransactionSink, windows_core::IU impl ITfEditTransactionSink { pub unsafe fn OnStartEditTransaction(&self, pic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStartEditTransaction)(windows_core::Interface::as_raw(self), pic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnStartEditTransaction)(windows_core::Interface::as_raw(self), pic.param().abi()).ok() } pub unsafe fn OnEndEditTransaction(&self, pic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEndEditTransaction)(windows_core::Interface::as_raw(self), pic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnEndEditTransaction)(windows_core::Interface::as_raw(self), pic.param().abi()).ok() } } #[repr(C)] @@ -2504,16 +2504,16 @@ impl ITfFnAdviseText { } pub unsafe fn OnTextUpdate(&self, prange: P0, pchtext: &[u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTextUpdate)(windows_core::Interface::as_raw(self), prange.into_param().abi(), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap()).ok() + (windows_core::Interface::vtable(self).OnTextUpdate)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap()).ok() } pub unsafe fn OnLatticeUpdate(&self, prange: P0, plattice: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLatticeUpdate)(windows_core::Interface::as_raw(self), prange.into_param().abi(), plattice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnLatticeUpdate)(windows_core::Interface::as_raw(self), prange.param().abi(), plattice.param().abi()).ok() } } #[repr(C)] @@ -2543,9 +2543,9 @@ impl ITfFnConfigure { } pub unsafe fn Show(&self, hwndparent: P0, langid: u16, rguidprofile: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), langid, rguidprofile).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), langid, rguidprofile).ok() } } #[repr(C)] @@ -2562,10 +2562,10 @@ impl ITfFnConfigureRegisterEudc { } pub unsafe fn Show(&self, hwndparent: P0, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), langid, rguidprofile, bstrregistered.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), langid, rguidprofile, bstrregistered.param().abi()).ok() } } #[repr(C)] @@ -2582,10 +2582,10 @@ impl ITfFnConfigureRegisterWord { } pub unsafe fn Show(&self, hwndparent: P0, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), langid, rguidprofile, bstrregistered.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.param().abi(), langid, rguidprofile, bstrregistered.param().abi()).ok() } } #[repr(C)] @@ -2602,9 +2602,9 @@ impl ITfFnCustomSpeechCommand { } pub unsafe fn SetSpeechCommandProvider(&self, pspcmdprovider: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetSpeechCommandProvider)(windows_core::Interface::as_raw(self), pspcmdprovider.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetSpeechCommandProvider)(windows_core::Interface::as_raw(self), pspcmdprovider.param().abi()).ok() } } #[repr(C)] @@ -2621,10 +2621,10 @@ impl ITfFnGetLinguisticAlternates { } pub unsafe fn GetAlternates(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetAlternates)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetAlternates)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2674,9 +2674,9 @@ impl ITfFnLMInternal { } pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), core::mem::transmute(ppnewrange), pfaccepted).ok() + (windows_core::Interface::vtable(self).base__.QueryRange)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(ppnewrange), pfaccepted).ok() } pub unsafe fn QueryLangID(&self, langid: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2684,45 +2684,45 @@ impl ITfFnLMInternal { } pub unsafe fn GetReconversion(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetReconversion)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetReconversion)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Reconvert(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Reconvert)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Reconvert)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn QueryKey(&self, fup: P0, vkey: P1, lparamkeydata: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.QueryKey)(windows_core::Interface::as_raw(self), fup.into_param().abi(), vkey.into_param().abi(), lparamkeydata.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.QueryKey)(windows_core::Interface::as_raw(self), fup.param().abi(), vkey.param().abi(), lparamkeydata.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InvokeKey(&self, fup: P0, vkey: P1, lparamkeydata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InvokeKey)(windows_core::Interface::as_raw(self), fup.into_param().abi(), vkey.into_param().abi(), lparamkeydata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.InvokeKey)(windows_core::Interface::as_raw(self), fup.param().abi(), vkey.param().abi(), lparamkeydata.param().abi()).ok() } pub unsafe fn InvokeFunc(&self, pic: P0, refguidfunc: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InvokeFunc)(windows_core::Interface::as_raw(self), pic.into_param().abi(), refguidfunc).ok() + (windows_core::Interface::vtable(self).base__.InvokeFunc)(windows_core::Interface::as_raw(self), pic.param().abi(), refguidfunc).ok() } pub unsafe fn ProcessLattice(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ProcessLattice)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ProcessLattice)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } } #[repr(C)] @@ -2739,9 +2739,9 @@ impl ITfFnLMProcessor { } pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), core::mem::transmute(ppnewrange), pfaccepted).ok() + (windows_core::Interface::vtable(self).QueryRange)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(ppnewrange), pfaccepted).ok() } pub unsafe fn QueryLangID(&self, langid: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2749,39 +2749,39 @@ impl ITfFnLMProcessor { } pub unsafe fn GetReconversion(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReconversion)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReconversion)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Reconvert(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconvert)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reconvert)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } pub unsafe fn QueryKey(&self, fup: P0, vkey: P1, lparamkeydata: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).QueryKey)(windows_core::Interface::as_raw(self), fup.into_param().abi(), vkey.into_param().abi(), lparamkeydata.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).QueryKey)(windows_core::Interface::as_raw(self), fup.param().abi(), vkey.param().abi(), lparamkeydata.param().abi(), &mut result__).map(|| result__) } pub unsafe fn InvokeKey(&self, fup: P0, vkey: P1, lparamkeydata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeKey)(windows_core::Interface::as_raw(self), fup.into_param().abi(), vkey.into_param().abi(), lparamkeydata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).InvokeKey)(windows_core::Interface::as_raw(self), fup.param().abi(), vkey.param().abi(), lparamkeydata.param().abi()).ok() } pub unsafe fn InvokeFunc(&self, pic: P0, refguidfunc: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InvokeFunc)(windows_core::Interface::as_raw(self), pic.into_param().abi(), refguidfunc).ok() + (windows_core::Interface::vtable(self).InvokeFunc)(windows_core::Interface::as_raw(self), pic.param().abi(), refguidfunc).ok() } } #[repr(C)] @@ -2825,15 +2825,15 @@ impl ITfFnPlayBack { } pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfplayable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), core::mem::transmute(ppnewrange), pfplayable).ok() + (windows_core::Interface::vtable(self).QueryRange)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(ppnewrange), pfplayable).ok() } pub unsafe fn Play(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Play)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Play)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } } #[repr(C)] @@ -2872,22 +2872,22 @@ impl ITfFnReconversion { } pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfconvertable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryRange)(windows_core::Interface::as_raw(self), prange.into_param().abi(), core::mem::transmute(ppnewrange), pfconvertable).ok() + (windows_core::Interface::vtable(self).QueryRange)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(ppnewrange), pfconvertable).ok() } pub unsafe fn GetReconversion(&self, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReconversion)(windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetReconversion)(windows_core::Interface::as_raw(self), prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Reconvert(&self, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Reconvert)(windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Reconvert)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } } #[repr(C)] @@ -2906,19 +2906,19 @@ impl ITfFnSearchCandidateProvider { } pub unsafe fn GetSearchCandidates(&self, bstrquery: P0, bstrapplicationid: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSearchCandidates)(windows_core::Interface::as_raw(self), bstrquery.into_param().abi(), bstrapplicationid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetSearchCandidates)(windows_core::Interface::as_raw(self), bstrquery.param().abi(), bstrapplicationid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn SetResult(&self, bstrquery: P0, bstrapplicationid: P1, bstrresult: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetResult)(windows_core::Interface::as_raw(self), bstrquery.into_param().abi(), bstrapplicationid.into_param().abi(), bstrresult.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetResult)(windows_core::Interface::as_raw(self), bstrquery.param().abi(), bstrapplicationid.param().abi(), bstrresult.param().abi()).ok() } } #[repr(C)] @@ -2936,9 +2936,9 @@ impl ITfFnShowHelp { } pub unsafe fn Show(&self, hwndparent: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), hwndparent.param().abi()).ok() } } #[repr(C)] @@ -2987,9 +2987,9 @@ windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileActivationSink, impl ITfInputProcessorProfileActivationSink { 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: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, catid, guidprofile, hkl.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).OnActivated)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, catid, guidprofile, hkl.param().abi(), dwflags).ok() } } #[repr(C)] @@ -3002,21 +3002,21 @@ windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileMgr, windows_cor impl ITfInputProcessorProfileMgr { pub unsafe fn ActivateProfile(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).ActivateProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl.param().abi(), dwflags).ok() } pub unsafe fn DeactivateProfile(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeactivateProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).DeactivateProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl.param().abi(), dwflags).ok() } pub unsafe fn GetProfile(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: P0, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl.into_param().abi(), pprofile).ok() + (windows_core::Interface::vtable(self).GetProfile)(windows_core::Interface::as_raw(self), dwprofiletype, langid, clsid, guidprofile, hkl.param().abi(), pprofile).ok() } pub unsafe fn EnumProfiles(&self, langid: u16) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3027,10 +3027,10 @@ impl ITfInputProcessorProfileMgr { } pub unsafe fn RegisterProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: &[u16], pchiconfile: &[u16], uiconindex: u32, hklsubstitute: P0, dwpreferredlayout: u32, benabledbydefault: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (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.into_param().abi(), dwpreferredlayout, benabledbydefault.into_param().abi(), 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.param().abi(), dwpreferredlayout, benabledbydefault.param().abi(), 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), rclsid, langid, guidprofile, dwflags).ok() @@ -3116,9 +3116,9 @@ impl ITfInputProcessorProfiles { } pub unsafe fn EnableLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.param().abi()).ok() } pub unsafe fn IsEnabledLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3126,15 +3126,15 @@ impl ITfInputProcessorProfiles { } pub unsafe fn EnableLanguageProfileByDefault(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableLanguageProfileByDefault)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableLanguageProfileByDefault)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.param().abi()).ok() } pub unsafe fn SubstituteKeyboardLayout(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, hkl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, hkl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, hkl.param().abi()).ok() } } #[repr(C)] @@ -3214,9 +3214,9 @@ impl ITfInputProcessorProfilesEx { } pub unsafe fn EnableLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnableLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnableLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.param().abi()).ok() } pub unsafe fn IsEnabledLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3224,15 +3224,15 @@ impl ITfInputProcessorProfilesEx { } pub unsafe fn EnableLanguageProfileByDefault(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnableLanguageProfileByDefault)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnableLanguageProfileByDefault)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.param().abi()).ok() } pub unsafe fn SubstituteKeyboardLayout(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, hkl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, hkl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SubstituteKeyboardLayout)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, hkl.param().abi()).ok() } 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), rclsid, langid, guidprofile, core::mem::transmute(pchfile.as_ptr()), pchfile.len().try_into().unwrap(), uresid).ok() @@ -3319,10 +3319,10 @@ impl ITfInsertAtSelection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbeddedAtSelection(&self, ec: u32, dwflags: u32, pdataobject: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(windows_core::Interface::as_raw(self), ec, dwflags, pdataobject.into_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)] @@ -3346,11 +3346,11 @@ impl ITfIntegratableCandidateListUIElement { } pub unsafe fn OnKeyDown(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn ShowCandidateNumbers(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3374,52 +3374,52 @@ windows_core::imp::interface_hierarchy!(ITfKeyEventSink, windows_core::IUnknown) impl ITfKeyEventSink { pub unsafe fn OnSetFocus(&self, fforeground: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self), fforeground.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self), fforeground.param().abi()).ok() } pub unsafe fn OnTestKeyDown(&self, pic: P0, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), pic.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnTestKeyUp(&self, pic: P0, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), pic.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnKeyDown(&self, pic: P0, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), pic.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnKeyUp(&self, pic: P0, wparam: P1, lparam: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), pic.into_param().abi(), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn OnPreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPreservedKey)(windows_core::Interface::as_raw(self), pic.into_param().abi(), 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)] @@ -3437,17 +3437,17 @@ windows_core::imp::interface_hierarchy!(ITfKeyTraceEventSink, windows_core::IUnk impl ITfKeyTraceEventSink { pub unsafe fn OnKeyTraceDown(&self, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnKeyTraceDown)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnKeyTraceDown)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn OnKeyTraceUp(&self, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnKeyTraceUp)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnKeyTraceUp)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi()).ok() } } #[repr(C)] @@ -3461,10 +3461,10 @@ windows_core::imp::interface_hierarchy!(ITfKeystrokeMgr, windows_core::IUnknown) impl ITfKeystrokeMgr { pub unsafe fn AdviseKeyEventSink(&self, tid: u32, psink: P0, fforeground: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseKeyEventSink)(windows_core::Interface::as_raw(self), tid, psink.into_param().abi(), fforeground.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AdviseKeyEventSink)(windows_core::Interface::as_raw(self), tid, psink.param().abi(), fforeground.param().abi()).ok() } pub unsafe fn UnadviseKeyEventSink(&self, tid: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UnadviseKeyEventSink)(windows_core::Interface::as_raw(self), tid).ok() @@ -3475,42 +3475,42 @@ impl ITfKeystrokeMgr { } pub unsafe fn TestKeyDown(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TestKeyDown)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TestKeyDown)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn TestKeyUp(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).TestKeyUp)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).TestKeyUp)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn KeyDown(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn KeyUp(&self, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetPreservedKey(&self, pic: P0, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPreservedKey)(windows_core::Interface::as_raw(self), pic.into_param().abi(), 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__ = std::mem::zeroed(); @@ -3531,10 +3531,10 @@ impl ITfKeystrokeMgr { } pub unsafe fn SimulatePreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).SimulatePreservedKey)(windows_core::Interface::as_raw(self), pic.into_param().abi(), 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)] @@ -3587,10 +3587,10 @@ impl ITfLangBarEventSink { } pub unsafe fn OnModalInput(&self, dwthreadid: u32, umsg: u32, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnModalInput)(windows_core::Interface::as_raw(self), dwthreadid, umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnModalInput)(windows_core::Interface::as_raw(self), dwthreadid, umsg, wparam.param().abi(), lparam.param().abi()).ok() } pub unsafe fn ShowFloating(&self, dwflags: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ShowFloating)(windows_core::Interface::as_raw(self), dwflags).ok() @@ -3622,9 +3622,9 @@ impl ITfLangBarItem { } pub unsafe fn Show(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn GetTooltipString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3651,9 +3651,9 @@ impl ITfLangBarItemBalloon { } pub unsafe fn Show(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn GetTooltipString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3690,9 +3690,9 @@ impl ITfLangBarItemBitmap { } pub unsafe fn Show(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn GetTooltipString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3732,9 +3732,9 @@ impl ITfLangBarItemBitmapButton { } pub unsafe fn Show(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn GetTooltipString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3745,9 +3745,9 @@ impl ITfLangBarItemBitmapButton { } pub unsafe fn InitMenu(&self, pmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitMenu)(windows_core::Interface::as_raw(self), pmenu.into_param().abi()).ok() + (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), wid).ok() @@ -3790,9 +3790,9 @@ impl ITfLangBarItemButton { } pub unsafe fn Show(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), fshow.param().abi()).ok() } pub unsafe fn GetTooltipString(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3803,9 +3803,9 @@ impl ITfLangBarItemButton { } pub unsafe fn InitMenu(&self, pmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitMenu)(windows_core::Interface::as_raw(self), pmenu.into_param().abi()).ok() + (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), wid).ok() @@ -3845,21 +3845,21 @@ impl ITfLangBarItemMgr { } pub unsafe fn AddItem(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn RemoveItem(&self, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveItem)(windows_core::Interface::as_raw(self), punk.param().abi()).ok() } pub unsafe fn AdviseItemSink(&self, punk: P0, pdwcookie: *mut u32, rguiditem: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseItemSink)(windows_core::Interface::as_raw(self), punk.into_param().abi(), pdwcookie, rguiditem).ok() + (windows_core::Interface::vtable(self).AdviseItemSink)(windows_core::Interface::as_raw(self), punk.param().abi(), 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), dwcookie).ok() @@ -3918,10 +3918,10 @@ windows_core::imp::interface_hierarchy!(ITfLangBarMgr, windows_core::IUnknown); impl ITfLangBarMgr { pub unsafe fn AdviseEventSink(&self, psink: P0, hwnd: P1, dwflags: u32, pdwcookie: *const u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseEventSink)(windows_core::Interface::as_raw(self), psink.into_param().abi(), hwnd.into_param().abi(), dwflags, pdwcookie).ok() + (windows_core::Interface::vtable(self).AdviseEventSink)(windows_core::Interface::as_raw(self), psink.param().abi(), hwnd.param().abi(), 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), dwcookie).ok() @@ -3938,15 +3938,15 @@ impl ITfLangBarMgr { } pub unsafe fn RestoreLastFocus(&self, pdwthreadid: *mut u32, fprev: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RestoreLastFocus)(windows_core::Interface::as_raw(self), pdwthreadid, fprev.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RestoreLastFocus)(windows_core::Interface::as_raw(self), pdwthreadid, fprev.param().abi()).ok() } pub unsafe fn SetModalInput(&self, psink: P0, dwthreadid: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetModalInput)(windows_core::Interface::as_raw(self), psink.into_param().abi(), dwthreadid, 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), dwflags).ok() @@ -4008,10 +4008,10 @@ impl ITfMenu { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AddMenuItem(&self, uid: u32, dwflags: u32, hbmp: P0, hbmpmask: P1, pch: &[u16], ppmenu: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddMenuItem)(windows_core::Interface::as_raw(self), uid, dwflags, hbmp.into_param().abi(), hbmpmask.into_param().abi(), 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.param().abi(), hbmpmask.param().abi(), core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap(), core::mem::transmute(ppmenu)).ok() } } #[repr(C)] @@ -4028,30 +4028,30 @@ impl ITfMessagePump { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn PeekMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: P0, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PeekMessageA)(windows_core::Interface::as_raw(self), pmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg, pfresult).ok() + (windows_core::Interface::vtable(self).PeekMessageA)(windows_core::Interface::as_raw(self), pmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg, pfresult).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: P0, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMessageA)(windows_core::Interface::as_raw(self), pmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax, pfresult).ok() + (windows_core::Interface::vtable(self).GetMessageA)(windows_core::Interface::as_raw(self), pmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax, pfresult).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn PeekMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: P0, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).PeekMessageW)(windows_core::Interface::as_raw(self), pmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg, pfresult).ok() + (windows_core::Interface::vtable(self).PeekMessageW)(windows_core::Interface::as_raw(self), pmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg, pfresult).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: P0, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).GetMessageW)(windows_core::Interface::as_raw(self), pmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax, pfresult).ok() + (windows_core::Interface::vtable(self).GetMessageW)(windows_core::Interface::as_raw(self), pmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax, pfresult).ok() } } #[repr(C)] @@ -4092,11 +4092,11 @@ windows_core::imp::interface_hierarchy!(ITfMouseTracker, windows_core::IUnknown) impl ITfMouseTracker { pub unsafe fn AdviseMouseSink(&self, range: P0, psink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseMouseSink)(windows_core::Interface::as_raw(self), range.into_param().abi(), psink.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -4113,11 +4113,11 @@ windows_core::imp::interface_hierarchy!(ITfMouseTrackerACP, windows_core::IUnkno impl ITfMouseTrackerACP { pub unsafe fn AdviseMouseSink(&self, range: P0, psink: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseMouseSink)(windows_core::Interface::as_raw(self), range.into_param().abi(), psink.into_param().abi(), &mut result__).map(|| result__) + (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), dwcookie).ok() @@ -4167,16 +4167,16 @@ impl ITfProperty { } pub unsafe fn EnumRanges(&self, ec: u32, ppenum: *mut Option, ptargetrange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.EnumRanges)(windows_core::Interface::as_raw(self), ec, core::mem::transmute(ppenum), ptargetrange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.EnumRanges)(windows_core::Interface::as_raw(self), ec, core::mem::transmute(ppenum), ptargetrange.param().abi()).ok() } pub unsafe fn GetValue(&self, ec: u32, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.GetValue)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.GetValue)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4184,28 +4184,28 @@ impl ITfProperty { } pub unsafe fn FindRange(&self, ec: u32, prange: P0, pprange: *mut Option, apos: TfAnchor) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FindRange)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), core::mem::transmute(pprange), 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: P0, ppropstore: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValueStore)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), ppropstore.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetValueStore)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), ppropstore.param().abi()).ok() } pub unsafe fn SetValue(&self, ec: u32, prange: P0, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetValue)(windows_core::Interface::as_raw(self), ec, prange.into_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: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Clear)(windows_core::Interface::as_raw(self), ec, prange.param().abi()).ok() } } #[repr(C)] @@ -4233,25 +4233,25 @@ impl ITfPropertyStore { } pub unsafe fn OnTextUpdated(&self, dwflags: u32, prangenew: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTextUpdated)(windows_core::Interface::as_raw(self), dwflags, prangenew.into_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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), prangenew.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Shrink)(windows_core::Interface::as_raw(self), prangenew.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Divide(&self, prangethis: P0, prangenew: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Divide)(windows_core::Interface::as_raw(self), prangethis.into_param().abi(), prangenew.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).Divide)(windows_core::Interface::as_raw(self), prangethis.param().abi(), prangenew.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Clone(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4264,10 +4264,10 @@ impl ITfPropertyStore { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Serialize(&self, pstream: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Serialize)(windows_core::Interface::as_raw(self), pstream.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -4324,9 +4324,9 @@ impl ITfRange { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, ec: u32, dwflags: u32, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InsertEmbedded)(windows_core::Interface::as_raw(self), ec, dwflags, pdataobject.into_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), ec, cchreq, pcch, phalt).ok() @@ -4336,15 +4336,15 @@ impl ITfRange { } pub unsafe fn ShiftStartToRange(&self, ec: u32, prange: P0, apos: TfAnchor) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftStartToRange)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), 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: P0, apos: TfAnchor) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShiftEndToRange)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4363,31 +4363,31 @@ impl ITfRange { } pub unsafe fn IsEqualStart(&self, ec: u32, pwith: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualStart)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), 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: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsEqualEnd)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), 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: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareStart)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), 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: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareEnd)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), 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__ = std::mem::zeroed(); @@ -4461,9 +4461,9 @@ impl ITfRangeACP { #[cfg(feature = "Win32_System_Com")] pub unsafe fn InsertEmbedded(&self, ec: u32, dwflags: u32, pdataobject: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.InsertEmbedded)(windows_core::Interface::as_raw(self), ec, dwflags, pdataobject.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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).base__.ShiftStart)(windows_core::Interface::as_raw(self), ec, cchreq, pcch, phalt).ok() @@ -4473,15 +4473,15 @@ impl ITfRangeACP { } pub unsafe fn ShiftStartToRange(&self, ec: u32, prange: P0, apos: TfAnchor) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShiftStartToRange)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), apos).ok() + (windows_core::Interface::vtable(self).base__.ShiftStartToRange)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), apos).ok() } pub unsafe fn ShiftEndToRange(&self, ec: u32, prange: P0, apos: TfAnchor) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.ShiftEndToRange)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), apos).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -4500,31 +4500,31 @@ impl ITfRangeACP { } pub unsafe fn IsEqualStart(&self, ec: u32, pwith: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqualStart)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), apos, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqualStart)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } pub unsafe fn IsEqualEnd(&self, ec: u32, pwith: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.IsEqualEnd)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), apos, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.IsEqualEnd)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } pub unsafe fn CompareStart(&self, ec: u32, pwith: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareStart)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), apos, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.CompareStart)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } pub unsafe fn CompareEnd(&self, ec: u32, pwith: P0, apos: TfAnchor) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.CompareEnd)(windows_core::Interface::as_raw(self), ec, pwith.into_param().abi(), apos, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -4562,9 +4562,9 @@ windows_core::imp::interface_hierarchy!(ITfRangeBackup, windows_core::IUnknown); impl ITfRangeBackup { pub unsafe fn Restore(&self, ec: u32, prange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Restore)(windows_core::Interface::as_raw(self), ec, prange.param().abi()).ok() } } #[repr(C)] @@ -4581,16 +4581,16 @@ impl ITfReadOnlyProperty { } pub unsafe fn EnumRanges(&self, ec: u32, ppenum: *mut Option, ptargetrange: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnumRanges)(windows_core::Interface::as_raw(self), ec, core::mem::transmute(ppenum), ptargetrange.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnumRanges)(windows_core::Interface::as_raw(self), ec, core::mem::transmute(ppenum), ptargetrange.param().abi()).ok() } pub unsafe fn GetValue(&self, ec: u32, prange: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetContext(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4618,9 +4618,9 @@ impl ITfReadingInformationUIElement { } pub unsafe fn Show(&self, bshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.param().abi()).ok() } pub unsafe fn IsShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -4666,10 +4666,10 @@ windows_core::imp::interface_hierarchy!(ITfReverseConversion, windows_core::IUnk impl ITfReverseConversion { pub unsafe fn DoReverseConversion(&self, lpstr: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).DoReverseConversion)(windows_core::Interface::as_raw(self), lpstr.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).DoReverseConversion)(windows_core::Interface::as_raw(self), lpstr.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -4713,10 +4713,10 @@ windows_core::imp::interface_hierarchy!(ITfSource, windows_core::IUnknown); impl ITfSource { pub unsafe fn AdviseSink(&self, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AdviseSink)(windows_core::Interface::as_raw(self), riid, punk.into_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), dwcookie).ok() @@ -4733,9 +4733,9 @@ windows_core::imp::interface_hierarchy!(ITfSourceSingle, windows_core::IUnknown) impl ITfSourceSingle { pub unsafe fn AdviseSingleSink(&self, tid: u32, riid: *const windows_core::GUID, punk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AdviseSingleSink)(windows_core::Interface::as_raw(self), tid, riid, punk.into_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), tid, riid).ok() @@ -4755,9 +4755,9 @@ impl ITfSpeechUIServer { } pub unsafe fn ShowUI(&self, fshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ShowUI)(windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ShowUI)(windows_core::Interface::as_raw(self), fshow.param().abi()).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), style, core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()).ok() @@ -4775,9 +4775,9 @@ windows_core::imp::interface_hierarchy!(ITfStatusSink, windows_core::IUnknown); impl ITfStatusSink { pub unsafe fn OnStatusChange(&self, pic: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), pic.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).OnStatusChange)(windows_core::Interface::as_raw(self), pic.param().abi(), dwflags).ok() } } #[repr(C)] @@ -4808,9 +4808,9 @@ impl ITfSystemLangBarItem { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetIcon(&self, hicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), hicon.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetIcon)(windows_core::Interface::as_raw(self), hicon.param().abi()).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() @@ -4830,9 +4830,9 @@ windows_core::imp::interface_hierarchy!(ITfSystemLangBarItemSink, windows_core:: impl ITfSystemLangBarItemSink { pub unsafe fn InitMenu(&self, pmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).InitMenu)(windows_core::Interface::as_raw(self), pmenu.into_param().abi()).ok() + (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), wid).ok() @@ -4866,10 +4866,10 @@ windows_core::imp::interface_hierarchy!(ITfTextEditSink, windows_core::IUnknown) impl ITfTextEditSink { pub unsafe fn OnEndEdit(&self, pic: P0, ecreadonly: u32, peditrecord: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnEndEdit)(windows_core::Interface::as_raw(self), pic.into_param().abi(), ecreadonly, peditrecord.into_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)] @@ -4882,9 +4882,9 @@ windows_core::imp::interface_hierarchy!(ITfTextInputProcessor, windows_core::IUn impl ITfTextInputProcessor { pub unsafe fn Activate(&self, ptim: P0, tid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Activate)(windows_core::Interface::as_raw(self), ptim.into_param().abi(), 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() @@ -4901,18 +4901,18 @@ windows_core::imp::interface_hierarchy!(ITfTextInputProcessorEx, windows_core::I impl ITfTextInputProcessorEx { pub unsafe fn Activate(&self, ptim: P0, tid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Activate)(windows_core::Interface::as_raw(self), ptim.into_param().abi(), tid).ok() + (windows_core::Interface::vtable(self).base__.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).base__.Deactivate)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn ActivateEx(&self, ptim: P0, tid: u32, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), ptim.into_param().abi(), tid, dwflags).ok() + (windows_core::Interface::vtable(self).ActivateEx)(windows_core::Interface::as_raw(self), ptim.param().abi(), tid, dwflags).ok() } } #[repr(C)] @@ -4925,10 +4925,10 @@ windows_core::imp::interface_hierarchy!(ITfTextLayoutSink, windows_core::IUnknow impl ITfTextLayoutSink { pub unsafe fn OnLayoutChange(&self, pic: P0, lcode: TfLayoutCode, pview: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnLayoutChange)(windows_core::Interface::as_raw(self), pic.into_param().abi(), lcode, pview.into_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)] @@ -4976,17 +4976,17 @@ impl ITfThreadMgr { } pub unsafe fn SetFocus(&self, pdimfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), pdimfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), pdimfocus.param().abi()).ok() } pub unsafe fn AssociateFocus(&self, hwnd: P0, pdimnew: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).AssociateFocus)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pdimnew.into_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.param().abi(), pdimnew.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5044,9 +5044,9 @@ impl ITfThreadMgr2 { } pub unsafe fn SetFocus(&self, pdimfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), pdimfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), pdimfocus.param().abi()).ok() } pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5101,34 +5101,34 @@ windows_core::imp::interface_hierarchy!(ITfThreadMgrEventSink, windows_core::IUn impl ITfThreadMgrEventSink { pub unsafe fn OnInitDocumentMgr(&self, pdim: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnInitDocumentMgr)(windows_core::Interface::as_raw(self), pdim.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnInitDocumentMgr)(windows_core::Interface::as_raw(self), pdim.param().abi()).ok() } pub unsafe fn OnUninitDocumentMgr(&self, pdim: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnUninitDocumentMgr)(windows_core::Interface::as_raw(self), pdim.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnUninitDocumentMgr)(windows_core::Interface::as_raw(self), pdim.param().abi()).ok() } pub unsafe fn OnSetFocus(&self, pdimfocus: P0, pdimprevfocus: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self), pdimfocus.into_param().abi(), pdimprevfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self), pdimfocus.param().abi(), pdimprevfocus.param().abi()).ok() } pub unsafe fn OnPushContext(&self, pic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPushContext)(windows_core::Interface::as_raw(self), pic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPushContext)(windows_core::Interface::as_raw(self), pic.param().abi()).ok() } pub unsafe fn OnPopContext(&self, pic: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnPopContext)(windows_core::Interface::as_raw(self), pic.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnPopContext)(windows_core::Interface::as_raw(self), pic.param().abi()).ok() } } #[repr(C)] @@ -5164,17 +5164,17 @@ impl ITfThreadMgrEx { } pub unsafe fn SetFocus(&self, pdimfocus: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetFocus)(windows_core::Interface::as_raw(self), pdimfocus.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetFocus)(windows_core::Interface::as_raw(self), pdimfocus.param().abi()).ok() } pub unsafe fn AssociateFocus(&self, hwnd: P0, pdimnew: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.AssociateFocus)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), pdimnew.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.AssociateFocus)(windows_core::Interface::as_raw(self), hwnd.param().abi(), pdimnew.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5219,9 +5219,9 @@ impl ITfToolTipUIElement { } pub unsafe fn Show(&self, bshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.param().abi()).ok() } pub unsafe fn IsShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5242,12 +5242,12 @@ windows_core::imp::interface_hierarchy!(ITfTransitoryExtensionSink, windows_core impl ITfTransitoryExtensionSink { pub unsafe fn OnTransitoryExtensionUpdated(&self, pic: P0, ecreadonly: u32, presultrange: P1, pcompositionrange: P2) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnTransitoryExtensionUpdated)(windows_core::Interface::as_raw(self), pic.into_param().abi(), ecreadonly, presultrange.into_param().abi(), pcompositionrange.into_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)] @@ -5268,9 +5268,9 @@ impl ITfTransitoryExtensionUIElement { } pub unsafe fn Show(&self, bshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Show)(windows_core::Interface::as_raw(self), bshow.param().abi()).ok() } pub unsafe fn IsShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5299,9 +5299,9 @@ impl ITfUIElement { } pub unsafe fn Show(&self, bshow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), bshow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), bshow.param().abi()).ok() } pub unsafe fn IsShown(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -5321,9 +5321,9 @@ windows_core::imp::interface_hierarchy!(ITfUIElementMgr, windows_core::IUnknown) impl ITfUIElementMgr { pub unsafe fn BeginUIElement(&self, pelement: P0, pbshow: *mut super::super::Foundation::BOOL, pdwuielementid: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).BeginUIElement)(windows_core::Interface::as_raw(self), pelement.into_param().abi(), pbshow, pdwuielementid).ok() + (windows_core::Interface::vtable(self).BeginUIElement)(windows_core::Interface::as_raw(self), pelement.param().abi(), pbshow, pdwuielementid).ok() } pub unsafe fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).UpdateUIElement)(windows_core::Interface::as_raw(self), dwuielementid).ok() 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 a82dda402b..0b4e3c8475 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -1,18 +1,18 @@ #[inline] pub unsafe fn AdjustWindowRect(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lprect, dwstyle, bmenu.into_param().abi()).ok() + AdjustWindowRect(lprect, dwstyle, bmenu.param().abi()).ok() } #[inline] pub unsafe fn AdjustWindowRectEx(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: P0, dwexstyle: WINDOW_EX_STYLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lprect, dwstyle, bmenu.into_param().abi(), dwexstyle).ok() + AdjustWindowRectEx(lprect, dwstyle, bmenu.param().abi(), dwexstyle).ok() } #[inline] pub unsafe fn AllowSetForegroundWindow(dwprocessid: u32) -> windows_core::Result<()> { @@ -22,10 +22,10 @@ pub unsafe fn AllowSetForegroundWindow(dwprocessid: u32) -> windows_core::Result #[inline] pub unsafe fn AnimateWindow(hwnd: P0, dwtime: u32, dwflags: ANIMATE_WINDOW_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn AnimateWindow(hwnd : super::super::Foundation:: HWND, dwtime : u32, dwflags : ANIMATE_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); - AnimateWindow(hwnd.into_param().abi(), dwtime, dwflags).ok() + AnimateWindow(hwnd.param().abi(), dwtime, dwflags).ok() } #[inline] pub unsafe fn AnyPopup() -> super::super::Foundation::BOOL { @@ -35,28 +35,28 @@ pub unsafe fn AnyPopup() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn AppendMenuA(hmenu: P0, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmenu.into_param().abi(), uflags, uidnewitem, lpnewitem.into_param().abi()).ok() + AppendMenuA(hmenu.param().abi(), uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn AppendMenuW(hmenu: P0, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmenu.into_param().abi(), uflags, uidnewitem, lpnewitem.into_param().abi()).ok() + AppendMenuW(hmenu.param().abi(), uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn ArrangeIconicWindows(hwnd: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ArrangeIconicWindows(hwnd : super::super::Foundation:: HWND) -> u32); - ArrangeIconicWindows(hwnd.into_param().abi()) + ArrangeIconicWindows(hwnd.param().abi()) } #[inline] pub unsafe fn BeginDeferWindowPos(nnumwindows: i32) -> windows_core::Result { @@ -67,10 +67,10 @@ pub unsafe fn BeginDeferWindowPos(nnumwindows: i32) -> windows_core::Result(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn BringWindowToTop(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - BringWindowToTop(hwnd.into_param().abi()).ok() + BringWindowToTop(hwnd.param().abi()).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<()> { @@ -90,32 +90,32 @@ pub unsafe fn CallMsgFilterW(lpmsg: *const MSG, ncode: i32) -> super::super::Fou #[inline] pub unsafe fn CallNextHookEx(hhk: P0, ncode: i32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hhk.into_param().abi(), ncode, wparam.into_param().abi(), lparam.into_param().abi()) + CallNextHookEx(hhk.param().abi(), ncode, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn CallWindowProcA(lpprevwndfunc: WNDPROC, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(lpprevwndfunc, hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + CallWindowProcA(lpprevwndfunc, hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn CallWindowProcW(lpprevwndfunc: WNDPROC, hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(lpprevwndfunc, hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + CallWindowProcW(lpprevwndfunc, hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn CancelShutdown() -> super::super::Foundation::BOOL { @@ -125,28 +125,28 @@ pub unsafe fn CancelShutdown() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn CascadeWindows(hwndparent: P0, whow: CASCADE_WINDOWS_HOW, lprect: Option<*const super::super::Foundation::RECT>, lpkids: Option<&[super::super::Foundation::HWND]>) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndparent.into_param().abi(), whow, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), 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(hwndparent.param().abi(), whow, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), 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: P0, cmd: u32, lpsznewitem: P1, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmenu.into_param().abi(), cmd, lpsznewitem.into_param().abi(), cmdinsert, flags) + ChangeMenuA(hmenu.param().abi(), cmd, lpsznewitem.param().abi(), cmdinsert, flags) } #[inline] pub unsafe fn ChangeMenuW(hmenu: P0, cmd: u32, lpsznewitem: P1, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmenu.into_param().abi(), cmd, lpsznewitem.into_param().abi(), cmdinsert, flags) + ChangeMenuW(hmenu.param().abi(), cmd, lpsznewitem.param().abi(), cmdinsert, flags) } #[inline] pub unsafe fn ChangeWindowMessageFilter(message: u32, dwflag: CHANGE_WINDOW_MESSAGE_FILTER_FLAGS) -> windows_core::Result<()> { @@ -156,10 +156,10 @@ pub unsafe fn ChangeWindowMessageFilter(message: u32, dwflag: CHANGE_WINDOW_MESS #[inline] pub unsafe fn ChangeWindowMessageFilterEx(hwnd: P0, message: u32, action: WINDOW_MESSAGE_FILTER_ACTION, pchangefilterstruct: Option<*mut CHANGEFILTERSTRUCT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), message, action, core::mem::transmute(pchangefilterstruct.unwrap_or(std::ptr::null_mut()))).ok() + ChangeWindowMessageFilterEx(hwnd.param().abi(), message, action, core::mem::transmute(pchangefilterstruct.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn CharLowerA(lpsz: windows_core::PSTR) -> windows_core::PSTR { @@ -184,85 +184,85 @@ pub unsafe fn CharLowerW(lpsz: windows_core::PWSTR) -> windows_core::PWSTR { #[inline] pub unsafe fn CharNextA(lpsz: P0) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharNextA(lpsz : windows_core::PCSTR) -> windows_core::PSTR); - CharNextA(lpsz.into_param().abi()) + CharNextA(lpsz.param().abi()) } #[inline] pub unsafe fn CharNextExA(codepage: u16, lpcurrentchar: P0, dwflags: u32) -> windows_core::PSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharNextExA(codepage : u16, lpcurrentchar : windows_core::PCSTR, dwflags : u32) -> windows_core::PSTR); - CharNextExA(codepage, lpcurrentchar.into_param().abi(), dwflags) + CharNextExA(codepage, lpcurrentchar.param().abi(), dwflags) } #[inline] pub unsafe fn CharNextW(lpsz: P0) -> windows_core::PWSTR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharNextW(lpsz : windows_core::PCWSTR) -> windows_core::PWSTR); - CharNextW(lpsz.into_param().abi()) + CharNextW(lpsz.param().abi()) } #[inline] pub unsafe fn CharPrevA(lpszstart: P0, lpszcurrent: P1) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharPrevA(lpszstart : windows_core::PCSTR, lpszcurrent : windows_core::PCSTR) -> windows_core::PSTR); - CharPrevA(lpszstart.into_param().abi(), lpszcurrent.into_param().abi()) + CharPrevA(lpszstart.param().abi(), lpszcurrent.param().abi()) } #[inline] pub unsafe fn CharPrevExA(codepage: u16, lpstart: P0, lpcurrentchar: P1, dwflags: u32) -> windows_core::PSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(codepage, lpstart.into_param().abi(), lpcurrentchar.into_param().abi(), dwflags) + CharPrevExA(codepage, lpstart.param().abi(), lpcurrentchar.param().abi(), dwflags) } #[inline] pub unsafe fn CharPrevW(lpszstart: P0, lpszcurrent: P1) -> windows_core::PWSTR where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharPrevW(lpszstart : windows_core::PCWSTR, lpszcurrent : windows_core::PCWSTR) -> windows_core::PWSTR); - CharPrevW(lpszstart.into_param().abi(), lpszcurrent.into_param().abi()) + CharPrevW(lpszstart.param().abi(), lpszcurrent.param().abi()) } #[inline] pub unsafe fn CharToOemA(psrc: P0, pdst: windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharToOemA(psrc : windows_core::PCSTR, pdst : windows_core::PSTR) -> super::super::Foundation:: BOOL); - CharToOemA(psrc.into_param().abi(), core::mem::transmute(pdst)).ok() + CharToOemA(psrc.param().abi(), core::mem::transmute(pdst)).ok() } #[inline] pub unsafe fn CharToOemBuffA(lpszsrc: P0, lpszdst: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharToOemBuffA(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); - CharToOemBuffA(lpszsrc.into_param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() + CharToOemBuffA(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn CharToOemBuffW(lpszsrc: P0, lpszdst: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharToOemBuffW(lpszsrc : windows_core::PCWSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); - CharToOemBuffW(lpszsrc.into_param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() + CharToOemBuffW(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn CharToOemW(psrc: P0, pdst: windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CharToOemW(psrc : windows_core::PCWSTR, pdst : windows_core::PSTR) -> super::super::Foundation:: BOOL); - CharToOemW(psrc.into_param().abi(), core::mem::transmute(pdst)).ok() + CharToOemW(psrc.param().abi(), core::mem::transmute(pdst)).ok() } #[inline] pub unsafe fn CharUpperA(lpsz: windows_core::PSTR) -> windows_core::PSTR { @@ -287,34 +287,34 @@ pub unsafe fn CharUpperW(lpsz: windows_core::PWSTR) -> windows_core::PWSTR { #[inline] pub unsafe fn CheckMenuItem(hmenu: P0, uidcheckitem: u32, ucheck: u32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CheckMenuItem(hmenu : HMENU, uidcheckitem : u32, ucheck : u32) -> u32); - CheckMenuItem(hmenu.into_param().abi(), uidcheckitem, ucheck) + CheckMenuItem(hmenu.param().abi(), uidcheckitem, ucheck) } #[inline] pub unsafe fn CheckMenuRadioItem(hmenu: P0, first: u32, last: u32, check: u32, flags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CheckMenuRadioItem(hmenu : HMENU, first : u32, last : u32, check : u32, flags : u32) -> super::super::Foundation:: BOOL); - CheckMenuRadioItem(hmenu.into_param().abi(), first, last, check, flags).ok() + CheckMenuRadioItem(hmenu.param().abi(), first, last, check, flags).ok() } #[inline] pub unsafe fn ChildWindowFromPoint(hwndparent: P0, point: super::super::Foundation::POINT) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ChildWindowFromPoint(hwndparent : super::super::Foundation:: HWND, point : super::super::Foundation:: POINT) -> super::super::Foundation:: HWND); - ChildWindowFromPoint(hwndparent.into_param().abi(), core::mem::transmute(point)) + ChildWindowFromPoint(hwndparent.param().abi(), core::mem::transmute(point)) } #[inline] pub unsafe fn ChildWindowFromPointEx(hwnd: P0, pt: super::super::Foundation::POINT, flags: CWP_FLAGS) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(pt), flags) + ChildWindowFromPointEx(hwnd.param().abi(), core::mem::transmute(pt), flags) } #[inline] pub unsafe fn ClipCursor(lprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { @@ -324,43 +324,43 @@ pub unsafe fn ClipCursor(lprect: Option<*const super::super::Foundation::RECT>) #[inline] pub unsafe fn CloseWindow(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CloseWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - CloseWindow(hwnd.into_param().abi()).ok() + CloseWindow(hwnd.param().abi()).ok() } #[inline] pub unsafe fn CopyAcceleratorTableA(haccelsrc: P0, lpacceldst: Option<&mut [ACCEL]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CopyAcceleratorTableA(haccelsrc : HACCEL, lpacceldst : *mut ACCEL, caccelentries : i32) -> i32); - CopyAcceleratorTableA(haccelsrc.into_param().abi(), 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.param().abi(), 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: P0, lpacceldst: Option<&mut [ACCEL]>) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CopyAcceleratorTableW(haccelsrc : HACCEL, lpacceldst : *mut ACCEL, caccelentries : i32) -> i32); - CopyAcceleratorTableW(haccelsrc.into_param().abi(), 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.param().abi(), 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: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn CopyIcon(hicon : HICON) -> HICON); - let result__ = CopyIcon(hicon.into_param().abi()); + let result__ = CopyIcon(hicon.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CopyImage(h: P0, r#type: GDI_IMAGE_TYPE, cx: i32, cy: i32, flags: IMAGE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(h.into_param().abi(), r#type, cx, cy, flags); + let result__ = CopyImage(h.param().abi(), r#type, cx, cy, flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -379,88 +379,88 @@ pub unsafe fn CreateAcceleratorTableW(paccel: &[ACCEL]) -> windows_core::Result< #[inline] pub unsafe fn CreateCaret(hwnd: P0, hbitmap: P1, nwidth: i32, nheight: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hbitmap.into_param().abi(), nwidth, nheight).ok() + CreateCaret(hwnd.param().abi(), hbitmap.param().abi(), nwidth, nheight).ok() } #[inline] pub unsafe fn CreateCursor(hinst: P0, xhotspot: i32, yhotspot: i32, nwidth: i32, nheight: i32, pvandplane: *const core::ffi::c_void, pvxorplane: *const core::ffi::c_void) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hinst.into_param().abi(), xhotspot, yhotspot, nwidth, nheight, pvandplane, pvxorplane); + let result__ = CreateCursor(hinst.param().abi(), xhotspot, yhotspot, nwidth, nheight, pvandplane, pvxorplane); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateDialogIndirectParamA(hinstance: P0, lptemplate: *const DLGTEMPLATE, hwndparent: P1, lpdialogfunc: DLGPROC, dwinitparam: P2) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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); - CreateDialogIndirectParamA(hinstance.into_param().abi(), lptemplate, hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + CreateDialogIndirectParamA(hinstance.param().abi(), lptemplate, hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn CreateDialogIndirectParamW(hinstance: P0, lptemplate: *const DLGTEMPLATE, hwndparent: P1, lpdialogfunc: DLGPROC, dwinitparam: P2) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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); - CreateDialogIndirectParamW(hinstance.into_param().abi(), lptemplate, hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + CreateDialogIndirectParamW(hinstance.param().abi(), lptemplate, hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn CreateDialogParamA(hinstance: P0, lptemplatename: P1, hwndparent: P2, lpdialogfunc: DLGPROC, dwinitparam: P3) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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); - CreateDialogParamA(hinstance.into_param().abi(), lptemplatename.into_param().abi(), hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + CreateDialogParamA(hinstance.param().abi(), lptemplatename.param().abi(), hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn CreateDialogParamW(hinstance: P0, lptemplatename: P1, hwndparent: P2, lpdialogfunc: DLGPROC, dwinitparam: P3) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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); - CreateDialogParamW(hinstance.into_param().abi(), lptemplatename.into_param().abi(), hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + CreateDialogParamW(hinstance.param().abi(), lptemplatename.param().abi(), hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn CreateIcon(hinstance: P0, nwidth: i32, nheight: i32, cplanes: u8, cbitspixel: u8, lpbandbits: *const u8, lpbxorbits: *const u8) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hinstance.into_param().abi(), nwidth, nheight, cplanes, cbitspixel, lpbandbits, lpbxorbits); + let result__ = CreateIcon(hinstance.param().abi(), nwidth, nheight, cplanes, cbitspixel, lpbandbits, lpbxorbits); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateIconFromResource(presbits: &[u8], ficon: P0, dwver: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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_param().abi(), dwver); + let result__ = CreateIconFromResource(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.param().abi(), dwver); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateIconFromResourceEx(presbits: &[u8], ficon: P0, dwver: u32, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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_param().abi(), dwver, cxdesired, cydesired, flags); + let result__ = CreateIconFromResourceEx(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.param().abi(), dwver, cxdesired, cydesired, flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -473,26 +473,26 @@ pub unsafe fn CreateIconIndirect(piconinfo: *const ICONINFO) -> windows_core::Re #[inline] pub unsafe fn CreateMDIWindowA(lpclassname: P0, lpwindowname: P1, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: P2, hinstance: P3, lparam: P4) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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); - CreateMDIWindowA(lpclassname.into_param().abi(), lpwindowname.into_param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.into_param().abi(), hinstance.into_param().abi(), lparam.into_param().abi()) + CreateMDIWindowA(lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.param().abi(), hinstance.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn CreateMDIWindowW(lpclassname: P0, lpwindowname: P1, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: P2, hinstance: P3, lparam: P4) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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); - CreateMDIWindowW(lpclassname.into_param().abi(), lpwindowname.into_param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.into_param().abi(), hinstance.into_param().abi(), lparam.into_param().abi()) + CreateMDIWindowW(lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.param().abi(), hinstance.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn CreateMenu() -> windows_core::Result { @@ -509,152 +509,152 @@ pub unsafe fn CreatePopupMenu() -> windows_core::Result { #[inline] pub unsafe fn CreateResourceIndexer(projectroot: P0, extensiondllpath: P1, ppresourceindexer: *mut *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn CreateResourceIndexer(projectroot : windows_core::PCWSTR, extensiondllpath : windows_core::PCWSTR, ppresourceindexer : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - CreateResourceIndexer(projectroot.into_param().abi(), extensiondllpath.into_param().abi(), ppresourceindexer).ok() + CreateResourceIndexer(projectroot.param().abi(), extensiondllpath.param().abi(), ppresourceindexer).ok() } #[inline] pub unsafe fn CreateWindowExA(dwexstyle: WINDOW_EX_STYLE, lpclassname: P0, lpwindowname: P1, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: P2, hmenu: P3, hinstance: P4, lpparam: Option<*const core::ffi::c_void>) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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); - CreateWindowExA(dwexstyle, lpclassname.into_param().abi(), lpwindowname.into_param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.into_param().abi(), hmenu.into_param().abi(), hinstance.into_param().abi(), core::mem::transmute(lpparam.unwrap_or(std::ptr::null()))) + CreateWindowExA(dwexstyle, lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.param().abi(), hmenu.param().abi(), hinstance.param().abi(), core::mem::transmute(lpparam.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn CreateWindowExW(dwexstyle: WINDOW_EX_STYLE, lpclassname: P0, lpwindowname: P1, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: P2, hmenu: P3, hinstance: P4, lpparam: Option<*const core::ffi::c_void>) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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); - CreateWindowExW(dwexstyle, lpclassname.into_param().abi(), lpwindowname.into_param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.into_param().abi(), hmenu.into_param().abi(), hinstance.into_param().abi(), core::mem::transmute(lpparam.unwrap_or(std::ptr::null()))) + CreateWindowExW(dwexstyle, lpclassname.param().abi(), lpwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.param().abi(), hmenu.param().abi(), hinstance.param().abi(), core::mem::transmute(lpparam.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn DefDlgProcA(hdlg: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdlg.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + DefDlgProcA(hdlg.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DefDlgProcW(hdlg: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdlg.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + DefDlgProcW(hdlg.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DefFrameProcA(hwnd: P0, hwndmdiclient: P1, umsg: u32, wparam: P2, lparam: P3) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hwnd.into_param().abi(), hwndmdiclient.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + DefFrameProcA(hwnd.param().abi(), hwndmdiclient.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DefFrameProcW(hwnd: P0, hwndmdiclient: P1, umsg: u32, wparam: P2, lparam: P3) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hwnd.into_param().abi(), hwndmdiclient.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + DefFrameProcW(hwnd.param().abi(), hwndmdiclient.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DefMDIChildProcA(hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + DefMDIChildProcA(hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DefMDIChildProcW(hwnd: P0, umsg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), umsg, wparam.into_param().abi(), lparam.into_param().abi()) + DefMDIChildProcW(hwnd.param().abi(), umsg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DefWindowProcA(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + DefWindowProcA(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DefWindowProcW(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + DefWindowProcW(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn DeferWindowPos(hwinposinfo: P0, hwnd: P1, hwndinsertafter: P2, x: i32, y: i32, cx: i32, cy: i32, uflags: SET_WINDOW_POS_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwinposinfo.into_param().abi(), hwnd.into_param().abi(), hwndinsertafter.into_param().abi(), x, y, cx, cy, uflags); + let result__ = DeferWindowPos(hwinposinfo.param().abi(), hwnd.param().abi(), hwndinsertafter.param().abi(), x, y, cx, cy, uflags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DeleteMenu(hmenu: P0, uposition: u32, uflags: MENU_ITEM_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DeleteMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); - DeleteMenu(hmenu.into_param().abi(), uposition, uflags).ok() + DeleteMenu(hmenu.param().abi(), uposition, uflags).ok() } #[inline] pub unsafe fn DeregisterShellHookWindow(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DeregisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - DeregisterShellHookWindow(hwnd.into_param().abi()) + DeregisterShellHookWindow(hwnd.param().abi()) } #[inline] pub unsafe fn DestroyAcceleratorTable(haccel: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DestroyAcceleratorTable(haccel : HACCEL) -> super::super::Foundation:: BOOL); - DestroyAcceleratorTable(haccel.into_param().abi()) + DestroyAcceleratorTable(haccel.param().abi()) } #[inline] pub unsafe fn DestroyCaret() -> windows_core::Result<()> { @@ -664,34 +664,34 @@ pub unsafe fn DestroyCaret() -> windows_core::Result<()> { #[inline] pub unsafe fn DestroyCursor(hcursor: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DestroyCursor(hcursor : HCURSOR) -> super::super::Foundation:: BOOL); - DestroyCursor(hcursor.into_param().abi()).ok() + DestroyCursor(hcursor.param().abi()).ok() } #[inline] pub unsafe fn DestroyIcon(hicon: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DestroyIcon(hicon : HICON) -> super::super::Foundation:: BOOL); - DestroyIcon(hicon.into_param().abi()).ok() + DestroyIcon(hicon.param().abi()).ok() } #[inline] pub unsafe fn DestroyIndexedResults(resourceuri: P0, qualifiers: Option<&[IndexedResourceQualifier]>) where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn DestroyIndexedResults(resourceuri : windows_core::PCWSTR, qualifiercount : u32, qualifiers : *const IndexedResourceQualifier)); - DestroyIndexedResults(resourceuri.into_param().abi(), qualifiers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(qualifiers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) + DestroyIndexedResults(resourceuri.param().abi(), qualifiers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(qualifiers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } #[inline] pub unsafe fn DestroyMenu(hmenu: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DestroyMenu(hmenu : HMENU) -> super::super::Foundation:: BOOL); - DestroyMenu(hmenu.into_param().abi()).ok() + DestroyMenu(hmenu.param().abi()).ok() } #[inline] pub unsafe fn DestroyResourceIndexer(resourceindexer: Option<*const core::ffi::c_void>) { @@ -701,52 +701,52 @@ pub unsafe fn DestroyResourceIndexer(resourceindexer: Option<*const core::ffi::c #[inline] pub unsafe fn DestroyWindow(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DestroyWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - DestroyWindow(hwnd.into_param().abi()).ok() + DestroyWindow(hwnd.param().abi()).ok() } #[inline] pub unsafe fn DialogBoxIndirectParamA(hinstance: P0, hdialogtemplate: *const DLGTEMPLATE, hwndparent: P1, lpdialogfunc: DLGPROC, dwinitparam: P2) -> isize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hinstance.into_param().abi(), hdialogtemplate, hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + DialogBoxIndirectParamA(hinstance.param().abi(), hdialogtemplate, hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn DialogBoxIndirectParamW(hinstance: P0, hdialogtemplate: *const DLGTEMPLATE, hwndparent: P1, lpdialogfunc: DLGPROC, dwinitparam: P2) -> isize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hinstance.into_param().abi(), hdialogtemplate, hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + DialogBoxIndirectParamW(hinstance.param().abi(), hdialogtemplate, hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn DialogBoxParamA(hinstance: P0, lptemplatename: P1, hwndparent: P2, lpdialogfunc: DLGPROC, dwinitparam: P3) -> isize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hinstance.into_param().abi(), lptemplatename.into_param().abi(), hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + DialogBoxParamA(hinstance.param().abi(), lptemplatename.param().abi(), hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn DialogBoxParamW(hinstance: P0, lptemplatename: P1, hwndparent: P2, lpdialogfunc: DLGPROC, dwinitparam: P3) -> isize where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hinstance.into_param().abi(), lptemplatename.into_param().abi(), hwndparent.into_param().abi(), lpdialogfunc, dwinitparam.into_param().abi()) + DialogBoxParamW(hinstance.param().abi(), lptemplatename.param().abi(), hwndparent.param().abi(), lpdialogfunc, dwinitparam.param().abi()) } #[inline] pub unsafe fn DisableProcessWindowsGhosting() { @@ -766,65 +766,65 @@ pub unsafe fn DispatchMessageW(lpmsg: *const MSG) -> super::super::Foundation::L #[inline] pub unsafe fn DragObject(hwndparent: P0, hwndfrom: P1, fmt: u32, data: usize, hcur: P2) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwndparent.into_param().abi(), hwndfrom.into_param().abi(), fmt, data, hcur.into_param().abi()) + DragObject(hwndparent.param().abi(), hwndfrom.param().abi(), fmt, data, hcur.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawIcon(hdc: P0, x: i32, y: i32, hicon: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), x, y, hicon.into_param().abi()).ok() + DrawIcon(hdc.param().abi(), x, y, hicon.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawIconEx(hdc: P0, xleft: i32, ytop: i32, hicon: P1, cxwidth: i32, cywidth: i32, istepifanicur: u32, hbrflickerfreedraw: P2, diflags: DI_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdc.into_param().abi(), xleft, ytop, hicon.into_param().abi(), cxwidth, cywidth, istepifanicur, hbrflickerfreedraw.into_param().abi(), diflags).ok() + DrawIconEx(hdc.param().abi(), xleft, ytop, hicon.param().abi(), cxwidth, cywidth, istepifanicur, hbrflickerfreedraw.param().abi(), diflags).ok() } #[inline] pub unsafe fn DrawMenuBar(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn DrawMenuBar(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - DrawMenuBar(hwnd.into_param().abi()).ok() + DrawMenuBar(hwnd.param().abi()).ok() } #[inline] pub unsafe fn EnableMenuItem(hmenu: P0, uidenableitem: u32, uenable: MENU_ITEM_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnableMenuItem(hmenu : HMENU, uidenableitem : u32, uenable : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); - EnableMenuItem(hmenu.into_param().abi(), uidenableitem, uenable) + EnableMenuItem(hmenu.param().abi(), uidenableitem, uenable) } #[inline] pub unsafe fn EndDeferWindowPos(hwinposinfo: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EndDeferWindowPos(hwinposinfo : HDWP) -> super::super::Foundation:: BOOL); - EndDeferWindowPos(hwinposinfo.into_param().abi()).ok() + EndDeferWindowPos(hwinposinfo.param().abi()).ok() } #[inline] pub unsafe fn EndDialog(hdlg: P0, nresult: isize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EndDialog(hdlg : super::super::Foundation:: HWND, nresult : isize) -> super::super::Foundation:: BOOL); - EndDialog(hdlg.into_param().abi(), nresult).ok() + EndDialog(hdlg.param().abi(), nresult).ok() } #[inline] pub unsafe fn EndMenu() -> windows_core::Result<()> { @@ -834,110 +834,110 @@ pub unsafe fn EndMenu() -> windows_core::Result<()> { #[inline] pub unsafe fn EnumChildWindows(hwndparent: P0, lpenumfunc: WNDENUMPROC, lparam: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwndparent.into_param().abi(), lpenumfunc, lparam.into_param().abi()) + EnumChildWindows(hwndparent.param().abi(), lpenumfunc, lparam.param().abi()) } #[inline] pub unsafe fn EnumPropsA(hwnd: P0, lpenumfunc: PROPENUMPROCA) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumPropsA(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCA) -> i32); - EnumPropsA(hwnd.into_param().abi(), lpenumfunc) + EnumPropsA(hwnd.param().abi(), lpenumfunc) } #[inline] pub unsafe fn EnumPropsExA(hwnd: P0, lpenumfunc: PROPENUMPROCEXA, lparam: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumPropsExA(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCEXA, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumPropsExA(hwnd.into_param().abi(), lpenumfunc, lparam.into_param().abi()) + EnumPropsExA(hwnd.param().abi(), lpenumfunc, lparam.param().abi()) } #[inline] pub unsafe fn EnumPropsExW(hwnd: P0, lpenumfunc: PROPENUMPROCEXW, lparam: P1) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumPropsExW(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCEXW, lparam : super::super::Foundation:: LPARAM) -> i32); - EnumPropsExW(hwnd.into_param().abi(), lpenumfunc, lparam.into_param().abi()) + EnumPropsExW(hwnd.param().abi(), lpenumfunc, lparam.param().abi()) } #[inline] pub unsafe fn EnumPropsW(hwnd: P0, lpenumfunc: PROPENUMPROCW) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumPropsW(hwnd : super::super::Foundation:: HWND, lpenumfunc : PROPENUMPROCW) -> i32); - EnumPropsW(hwnd.into_param().abi(), lpenumfunc) + EnumPropsW(hwnd.param().abi(), lpenumfunc) } #[inline] pub unsafe fn EnumThreadWindows(dwthreadid: u32, lpfn: WNDENUMPROC, lparam: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumThreadWindows(dwthreadid : u32, lpfn : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumThreadWindows(dwthreadid, lpfn, lparam.into_param().abi()) + EnumThreadWindows(dwthreadid, lpfn, lparam.param().abi()) } #[inline] pub unsafe fn EnumWindows(lpenumfunc: WNDENUMPROC, lparam: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn EnumWindows(lpenumfunc : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); - EnumWindows(lpenumfunc, lparam.into_param().abi()).ok() + EnumWindows(lpenumfunc, lparam.param().abi()).ok() } #[inline] pub unsafe fn FindWindowA(lpclassname: P0, lpwindowname: P1) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FindWindowA(lpclassname : windows_core::PCSTR, lpwindowname : windows_core::PCSTR) -> super::super::Foundation:: HWND); - FindWindowA(lpclassname.into_param().abi(), lpwindowname.into_param().abi()) + FindWindowA(lpclassname.param().abi(), lpwindowname.param().abi()) } #[inline] pub unsafe fn FindWindowExA(hwndparent: P0, hwndchildafter: P1, lpszclass: P2, lpszwindow: P3) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FindWindowExA(hwndparent : super::super::Foundation:: HWND, hwndchildafter : super::super::Foundation:: HWND, lpszclass : windows_core::PCSTR, lpszwindow : windows_core::PCSTR) -> super::super::Foundation:: HWND); - FindWindowExA(hwndparent.into_param().abi(), hwndchildafter.into_param().abi(), lpszclass.into_param().abi(), lpszwindow.into_param().abi()) + FindWindowExA(hwndparent.param().abi(), hwndchildafter.param().abi(), lpszclass.param().abi(), lpszwindow.param().abi()) } #[inline] pub unsafe fn FindWindowExW(hwndparent: P0, hwndchildafter: P1, lpszclass: P2, lpszwindow: P3) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FindWindowExW(hwndparent : super::super::Foundation:: HWND, hwndchildafter : super::super::Foundation:: HWND, lpszclass : windows_core::PCWSTR, lpszwindow : windows_core::PCWSTR) -> super::super::Foundation:: HWND); - FindWindowExW(hwndparent.into_param().abi(), hwndchildafter.into_param().abi(), lpszclass.into_param().abi(), lpszwindow.into_param().abi()) + FindWindowExW(hwndparent.param().abi(), hwndchildafter.param().abi(), lpszclass.param().abi(), lpszwindow.param().abi()) } #[inline] pub unsafe fn FindWindowW(lpclassname: P0, lpwindowname: P1) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FindWindowW(lpclassname : windows_core::PCWSTR, lpwindowname : windows_core::PCWSTR) -> super::super::Foundation:: HWND); - FindWindowW(lpclassname.into_param().abi(), lpwindowname.into_param().abi()) + FindWindowW(lpclassname.param().abi(), lpwindowname.param().abi()) } #[inline] pub unsafe fn FlashWindow(hwnd: P0, binvert: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn FlashWindow(hwnd : super::super::Foundation:: HWND, binvert : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - FlashWindow(hwnd.into_param().abi(), binvert.into_param().abi()) + FlashWindow(hwnd.param().abi(), binvert.param().abi()) } #[inline] pub unsafe fn FlashWindowEx(pfwi: *const FLASHWINFO) -> super::super::Foundation::BOOL { @@ -947,26 +947,26 @@ pub unsafe fn FlashWindowEx(pfwi: *const FLASHWINFO) -> super::super::Foundation #[inline] pub unsafe fn GetAltTabInfoA(hwnd: P0, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: Option<&mut [u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), iitem, 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(hwnd.param().abi(), iitem, 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: P0, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: Option<&mut [u16]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), iitem, 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(hwnd.param().abi(), iitem, 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: P0, gaflags: GET_ANCESTOR_FLAGS) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetAncestor(hwnd : super::super::Foundation:: HWND, gaflags : GET_ANCESTOR_FLAGS) -> super::super::Foundation:: HWND); - GetAncestor(hwnd.into_param().abi(), gaflags) + GetAncestor(hwnd.param().abi(), gaflags) } #[inline] pub unsafe fn GetCaretBlinkTime() -> u32 { @@ -982,107 +982,107 @@ pub unsafe fn GetCaretPos(lppoint: *mut super::super::Foundation::POINT) -> wind #[inline] pub unsafe fn GetClassInfoA(hinstance: P0, lpclassname: P1, lpwndclass: *mut WNDCLASSA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassInfoA(hinstance : super::super::Foundation:: HINSTANCE, lpclassname : windows_core::PCSTR, lpwndclass : *mut WNDCLASSA) -> super::super::Foundation:: BOOL); - GetClassInfoA(hinstance.into_param().abi(), lpclassname.into_param().abi(), lpwndclass).ok() + GetClassInfoA(hinstance.param().abi(), lpclassname.param().abi(), lpwndclass).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetClassInfoExA(hinstance: P0, lpszclass: P1, lpwcx: *mut WNDCLASSEXA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassInfoExA(hinstance : super::super::Foundation:: HINSTANCE, lpszclass : windows_core::PCSTR, lpwcx : *mut WNDCLASSEXA) -> super::super::Foundation:: BOOL); - GetClassInfoExA(hinstance.into_param().abi(), lpszclass.into_param().abi(), lpwcx).ok() + GetClassInfoExA(hinstance.param().abi(), lpszclass.param().abi(), lpwcx).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetClassInfoExW(hinstance: P0, lpszclass: P1, lpwcx: *mut WNDCLASSEXW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassInfoExW(hinstance : super::super::Foundation:: HINSTANCE, lpszclass : windows_core::PCWSTR, lpwcx : *mut WNDCLASSEXW) -> super::super::Foundation:: BOOL); - GetClassInfoExW(hinstance.into_param().abi(), lpszclass.into_param().abi(), lpwcx).ok() + GetClassInfoExW(hinstance.param().abi(), lpszclass.param().abi(), lpwcx).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetClassInfoW(hinstance: P0, lpclassname: P1, lpwndclass: *mut WNDCLASSW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassInfoW(hinstance : super::super::Foundation:: HINSTANCE, lpclassname : windows_core::PCWSTR, lpwndclass : *mut WNDCLASSW) -> super::super::Foundation:: BOOL); - GetClassInfoW(hinstance.into_param().abi(), lpclassname.into_param().abi(), lpwndclass).ok() + GetClassInfoW(hinstance.param().abi(), lpclassname.param().abi(), lpwndclass).ok() } #[inline] pub unsafe fn GetClassLongA(hwnd: P0, nindex: GET_CLASS_LONG_INDEX) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassLongA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> u32); - GetClassLongA(hwnd.into_param().abi(), nindex) + GetClassLongA(hwnd.param().abi(), nindex) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn GetClassLongPtrA(hwnd: P0, nindex: GET_CLASS_LONG_INDEX) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> usize); - GetClassLongPtrA(hwnd.into_param().abi(), nindex) + GetClassLongPtrA(hwnd.param().abi(), nindex) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn GetClassLongPtrW(hwnd: P0, nindex: GET_CLASS_LONG_INDEX) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> usize); - GetClassLongPtrW(hwnd.into_param().abi(), nindex) + GetClassLongPtrW(hwnd.param().abi(), nindex) } #[inline] pub unsafe fn GetClassLongW(hwnd: P0, nindex: GET_CLASS_LONG_INDEX) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassLongW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX) -> u32); - GetClassLongW(hwnd.into_param().abi(), nindex) + GetClassLongW(hwnd.param().abi(), nindex) } #[inline] pub unsafe fn GetClassNameA(hwnd: P0, lpclassname: &mut [u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassNameA(hwnd : super::super::Foundation:: HWND, lpclassname : windows_core::PSTR, nmaxcount : i32) -> i32); - GetClassNameA(hwnd.into_param().abi(), core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) + GetClassNameA(hwnd.param().abi(), core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) } #[inline] pub unsafe fn GetClassNameW(hwnd: P0, lpclassname: &mut [u16]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassNameW(hwnd : super::super::Foundation:: HWND, lpclassname : windows_core::PWSTR, nmaxcount : i32) -> i32); - GetClassNameW(hwnd.into_param().abi(), core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) + GetClassNameW(hwnd.param().abi(), core::mem::transmute(lpclassname.as_ptr()), lpclassname.len().try_into().unwrap()) } #[inline] pub unsafe fn GetClassWord(hwnd: P0, nindex: i32) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClassWord(hwnd : super::super::Foundation:: HWND, nindex : i32) -> u16); - GetClassWord(hwnd.into_param().abi(), nindex) + GetClassWord(hwnd.param().abi(), nindex) } #[inline] pub unsafe fn GetClientRect(hwnd: P0, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetClientRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - GetClientRect(hwnd.into_param().abi(), lprect).ok() + GetClientRect(hwnd.param().abi(), lprect).ok() } #[inline] pub unsafe fn GetClipCursor(lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { @@ -1117,43 +1117,43 @@ pub unsafe fn GetDialogBaseUnits() -> i32 { #[inline] pub unsafe fn GetDlgCtrlID(hwnd: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDlgCtrlID(hwnd : super::super::Foundation:: HWND) -> i32); - GetDlgCtrlID(hwnd.into_param().abi()) + GetDlgCtrlID(hwnd.param().abi()) } #[inline] pub unsafe fn GetDlgItem(hdlg: P0, niddlgitem: i32) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDlgItem(hdlg : super::super::Foundation:: HWND, niddlgitem : i32) -> super::super::Foundation:: HWND); - GetDlgItem(hdlg.into_param().abi(), niddlgitem) + GetDlgItem(hdlg.param().abi(), niddlgitem) } #[inline] pub unsafe fn GetDlgItemInt(hdlg: P0, niddlgitem: i32, lptranslated: Option<*mut super::super::Foundation::BOOL>, bsigned: P1) -> u32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdlg.into_param().abi(), niddlgitem, core::mem::transmute(lptranslated.unwrap_or(std::ptr::null_mut())), bsigned.into_param().abi()) + GetDlgItemInt(hdlg.param().abi(), niddlgitem, core::mem::transmute(lptranslated.unwrap_or(std::ptr::null_mut())), bsigned.param().abi()) } #[inline] pub unsafe fn GetDlgItemTextA(hdlg: P0, niddlgitem: i32, lpstring: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDlgItemTextA(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PSTR, cchmax : i32) -> u32); - GetDlgItemTextA(hdlg.into_param().abi(), niddlgitem, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetDlgItemTextA(hdlg.param().abi(), niddlgitem, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetDlgItemTextW(hdlg: P0, niddlgitem: i32, lpstring: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetDlgItemTextW(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PWSTR, cchmax : i32) -> u32); - GetDlgItemTextW(hdlg.into_param().abi(), niddlgitem, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetDlgItemTextW(hdlg.param().abi(), niddlgitem, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetForegroundWindow() -> super::super::Foundation::HWND { @@ -1169,28 +1169,28 @@ pub unsafe fn GetGUIThreadInfo(idthread: u32, pgui: *mut GUITHREADINFO) -> windo #[inline] pub unsafe fn GetIconInfo(hicon: P0, piconinfo: *mut ICONINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetIconInfo(hicon : HICON, piconinfo : *mut ICONINFO) -> super::super::Foundation:: BOOL); - GetIconInfo(hicon.into_param().abi(), piconinfo).ok() + GetIconInfo(hicon.param().abi(), piconinfo).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetIconInfoExA(hicon: P0, piconinfo: *mut ICONINFOEXA) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetIconInfoExA(hicon : HICON, piconinfo : *mut ICONINFOEXA) -> super::super::Foundation:: BOOL); - GetIconInfoExA(hicon.into_param().abi(), piconinfo) + GetIconInfoExA(hicon.param().abi(), piconinfo) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetIconInfoExW(hicon: P0, piconinfo: *mut ICONINFOEXW) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetIconInfoExW(hicon : HICON, piconinfo : *mut ICONINFOEXW) -> super::super::Foundation:: BOOL); - GetIconInfoExW(hicon.into_param().abi(), piconinfo) + GetIconInfoExW(hicon.param().abi(), piconinfo) } #[inline] pub unsafe fn GetInputState() -> super::super::Foundation::BOOL { @@ -1200,34 +1200,34 @@ pub unsafe fn GetInputState() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn GetLastActivePopup(hwnd: P0) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetLastActivePopup(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - GetLastActivePopup(hwnd.into_param().abi()) + GetLastActivePopup(hwnd.param().abi()) } #[inline] pub unsafe fn GetLayeredWindowAttributes(hwnd: P0, pcrkey: Option<*mut super::super::Foundation::COLORREF>, pbalpha: Option<*mut u8>, pdwflags: Option<*mut LAYERED_WINDOW_ATTRIBUTES_FLAGS>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), core::mem::transmute(pcrkey.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbalpha.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))).ok() + GetLayeredWindowAttributes(hwnd.param().abi(), core::mem::transmute(pcrkey.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pbalpha.unwrap_or(std::ptr::null_mut())), core::mem::transmute(pdwflags.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn GetMenu(hwnd: P0) -> HMENU where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenu(hwnd : super::super::Foundation:: HWND) -> HMENU); - GetMenu(hwnd.into_param().abi()) + GetMenu(hwnd.param().abi()) } #[inline] pub unsafe fn GetMenuBarInfo(hwnd: P0, idobject: OBJECT_IDENTIFIER, iditem: i32, pmbi: *mut MENUBARINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), idobject, iditem, pmbi).ok() + GetMenuBarInfo(hwnd.param().abi(), idobject, iditem, pmbi).ok() } #[inline] pub unsafe fn GetMenuCheckMarkDimensions() -> i32 { @@ -1237,96 +1237,96 @@ pub unsafe fn GetMenuCheckMarkDimensions() -> i32 { #[inline] pub unsafe fn GetMenuDefaultItem(hmenu: P0, fbypos: u32, gmdiflags: GET_MENU_DEFAULT_ITEM_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuDefaultItem(hmenu : HMENU, fbypos : u32, gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS) -> u32); - GetMenuDefaultItem(hmenu.into_param().abi(), fbypos, gmdiflags) + GetMenuDefaultItem(hmenu.param().abi(), fbypos, gmdiflags) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuInfo(param0: P0, param1: *mut MENUINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuInfo(param0 : HMENU, param1 : *mut MENUINFO) -> super::super::Foundation:: BOOL); - GetMenuInfo(param0.into_param().abi(), param1).ok() + GetMenuInfo(param0.param().abi(), param1).ok() } #[inline] pub unsafe fn GetMenuItemCount(hmenu: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuItemCount(hmenu : HMENU) -> i32); - GetMenuItemCount(hmenu.into_param().abi()) + GetMenuItemCount(hmenu.param().abi()) } #[inline] pub unsafe fn GetMenuItemID(hmenu: P0, npos: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuItemID(hmenu : HMENU, npos : i32) -> u32); - GetMenuItemID(hmenu.into_param().abi(), npos) + GetMenuItemID(hmenu.param().abi(), npos) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuItemInfoA(hmenu: P0, item: u32, fbyposition: P1, lpmii: *mut MENUITEMINFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), item, fbyposition.into_param().abi(), lpmii).ok() + GetMenuItemInfoA(hmenu.param().abi(), item, fbyposition.param().abi(), lpmii).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuItemInfoW(hmenu: P0, item: u32, fbyposition: P1, lpmii: *mut MENUITEMINFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), item, fbyposition.into_param().abi(), lpmii).ok() + GetMenuItemInfoW(hmenu.param().abi(), item, fbyposition.param().abi(), lpmii).ok() } #[inline] pub unsafe fn GetMenuItemRect(hwnd: P0, hmenu: P1, uitem: u32, lprcitem: *mut super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hmenu.into_param().abi(), uitem, lprcitem).ok() + GetMenuItemRect(hwnd.param().abi(), hmenu.param().abi(), uitem, lprcitem).ok() } #[inline] pub unsafe fn GetMenuState(hmenu: P0, uid: u32, uflags: MENU_ITEM_FLAGS) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuState(hmenu : HMENU, uid : u32, uflags : MENU_ITEM_FLAGS) -> u32); - GetMenuState(hmenu.into_param().abi(), uid, uflags) + GetMenuState(hmenu.param().abi(), uid, uflags) } #[inline] pub unsafe fn GetMenuStringA(hmenu: P0, uiditem: u32, lpstring: Option<&mut [u8]>, flags: MENU_ITEM_FLAGS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuStringA(hmenu : HMENU, uiditem : u32, lpstring : windows_core::PSTR, cchmax : i32, flags : MENU_ITEM_FLAGS) -> i32); - GetMenuStringA(hmenu.into_param().abi(), 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) + GetMenuStringA(hmenu.param().abi(), 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: P0, uiditem: u32, lpstring: Option<&mut [u16]>, flags: MENU_ITEM_FLAGS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetMenuStringW(hmenu : HMENU, uiditem : u32, lpstring : windows_core::PWSTR, cchmax : i32, flags : MENU_ITEM_FLAGS) -> i32); - GetMenuStringW(hmenu.into_param().abi(), 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) + GetMenuStringW(hmenu.param().abi(), 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: P0, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lpmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax) + GetMessageA(lpmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax) } #[inline] pub unsafe fn GetMessageExtraInfo() -> super::super::Foundation::LPARAM { @@ -1346,38 +1346,38 @@ pub unsafe fn GetMessageTime() -> i32 { #[inline] pub unsafe fn GetMessageW(lpmsg: *mut MSG, hwnd: P0, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lpmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax) + GetMessageW(lpmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax) } #[inline] pub unsafe fn GetNextDlgGroupItem(hdlg: P0, hctl: P1, bprevious: P2) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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); - GetNextDlgGroupItem(hdlg.into_param().abi(), hctl.into_param().abi(), bprevious.into_param().abi()) + GetNextDlgGroupItem(hdlg.param().abi(), hctl.param().abi(), bprevious.param().abi()) } #[inline] pub unsafe fn GetNextDlgTabItem(hdlg: P0, hctl: P1, bprevious: P2) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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); - GetNextDlgTabItem(hdlg.into_param().abi(), hctl.into_param().abi(), bprevious.into_param().abi()) + GetNextDlgTabItem(hdlg.param().abi(), hctl.param().abi(), bprevious.param().abi()) } #[inline] pub unsafe fn GetParent(hwnd: P0) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetParent(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - GetParent(hwnd.into_param().abi()) + GetParent(hwnd.param().abi()) } #[inline] pub unsafe fn GetPhysicalCursorPos(lppoint: *mut super::super::Foundation::POINT) -> windows_core::Result<()> { @@ -1392,20 +1392,20 @@ pub unsafe fn GetProcessDefaultLayout(pdwdefaultlayout: *mut u32) -> windows_cor #[inline] pub unsafe fn GetPropA(hwnd: P0, lpstring: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), lpstring.into_param().abi()) + GetPropA(hwnd.param().abi(), lpstring.param().abi()) } #[inline] pub unsafe fn GetPropW(hwnd: P0, lpstring: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), lpstring.into_param().abi()) + GetPropW(hwnd.param().abi(), lpstring.param().abi()) } #[inline] pub unsafe fn GetQueueStatus(flags: QUEUE_STATUS_FLAGS) -> u32 { @@ -1415,34 +1415,34 @@ pub unsafe fn GetQueueStatus(flags: QUEUE_STATUS_FLAGS) -> u32 { #[inline] pub unsafe fn GetScrollBarInfo(hwnd: P0, idobject: OBJECT_IDENTIFIER, psbi: *mut SCROLLBARINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetScrollBarInfo(hwnd : super::super::Foundation:: HWND, idobject : OBJECT_IDENTIFIER, psbi : *mut SCROLLBARINFO) -> super::super::Foundation:: BOOL); - GetScrollBarInfo(hwnd.into_param().abi(), idobject, psbi).ok() + GetScrollBarInfo(hwnd.param().abi(), idobject, psbi).ok() } #[inline] pub unsafe fn GetScrollInfo(hwnd: P0, nbar: SCROLLBAR_CONSTANTS, lpsi: *mut SCROLLINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetScrollInfo(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS, lpsi : *mut SCROLLINFO) -> super::super::Foundation:: BOOL); - GetScrollInfo(hwnd.into_param().abi(), nbar, lpsi).ok() + GetScrollInfo(hwnd.param().abi(), nbar, lpsi).ok() } #[inline] pub unsafe fn GetScrollPos(hwnd: P0, nbar: SCROLLBAR_CONSTANTS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetScrollPos(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS) -> i32); - GetScrollPos(hwnd.into_param().abi(), nbar) + GetScrollPos(hwnd.param().abi(), nbar) } #[inline] pub unsafe fn GetScrollRange(hwnd: P0, nbar: SCROLLBAR_CONSTANTS, lpminpos: *mut i32, lpmaxpos: *mut i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), nbar, lpminpos, lpmaxpos).ok() + GetScrollRange(hwnd.param().abi(), nbar, lpminpos, lpmaxpos).ok() } #[inline] pub unsafe fn GetShellWindow() -> super::super::Foundation::HWND { @@ -1452,19 +1452,19 @@ pub unsafe fn GetShellWindow() -> super::super::Foundation::HWND { #[inline] pub unsafe fn GetSubMenu(hmenu: P0, npos: i32) -> HMENU where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetSubMenu(hmenu : HMENU, npos : i32) -> HMENU); - GetSubMenu(hmenu.into_param().abi(), npos) + GetSubMenu(hmenu.param().abi(), npos) } #[inline] pub unsafe fn GetSystemMenu(hwnd: P0, brevert: P1) -> HMENU where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetSystemMenu(hwnd : super::super::Foundation:: HWND, brevert : super::super::Foundation:: BOOL) -> HMENU); - GetSystemMenu(hwnd.into_param().abi(), brevert.into_param().abi()) + GetSystemMenu(hwnd.param().abi(), brevert.param().abi()) } #[inline] pub unsafe fn GetSystemMetrics(nindex: SYSTEM_METRICS_INDEX) -> i32 { @@ -1474,173 +1474,173 @@ pub unsafe fn GetSystemMetrics(nindex: SYSTEM_METRICS_INDEX) -> i32 { #[inline] pub unsafe fn GetTitleBarInfo(hwnd: P0, pti: *mut TITLEBARINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetTitleBarInfo(hwnd : super::super::Foundation:: HWND, pti : *mut TITLEBARINFO) -> super::super::Foundation:: BOOL); - GetTitleBarInfo(hwnd.into_param().abi(), pti).ok() + GetTitleBarInfo(hwnd.param().abi(), pti).ok() } #[inline] pub unsafe fn GetTopWindow(hwnd: P0) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetTopWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - GetTopWindow(hwnd.into_param().abi()) + GetTopWindow(hwnd.param().abi()) } #[inline] pub unsafe fn GetWindow(hwnd: P0, ucmd: GET_WINDOW_CMD) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindow(hwnd : super::super::Foundation:: HWND, ucmd : GET_WINDOW_CMD) -> super::super::Foundation:: HWND); - GetWindow(hwnd.into_param().abi(), ucmd) + GetWindow(hwnd.param().abi(), ucmd) } #[inline] pub unsafe fn GetWindowDisplayAffinity(hwnd: P0, pdwaffinity: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, pdwaffinity : *mut u32) -> super::super::Foundation:: BOOL); - GetWindowDisplayAffinity(hwnd.into_param().abi(), pdwaffinity).ok() + GetWindowDisplayAffinity(hwnd.param().abi(), pdwaffinity).ok() } #[inline] pub unsafe fn GetWindowInfo(hwnd: P0, pwi: *mut WINDOWINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowInfo(hwnd : super::super::Foundation:: HWND, pwi : *mut WINDOWINFO) -> super::super::Foundation:: BOOL); - GetWindowInfo(hwnd.into_param().abi(), pwi).ok() + GetWindowInfo(hwnd.param().abi(), pwi).ok() } #[inline] pub unsafe fn GetWindowLongA(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowLongA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32); - GetWindowLongA(hwnd.into_param().abi(), nindex) + GetWindowLongA(hwnd.param().abi(), nindex) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn GetWindowLongPtrA(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize); - GetWindowLongPtrA(hwnd.into_param().abi(), nindex) + GetWindowLongPtrA(hwnd.param().abi(), nindex) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn GetWindowLongPtrW(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize); - GetWindowLongPtrW(hwnd.into_param().abi(), nindex) + GetWindowLongPtrW(hwnd.param().abi(), nindex) } #[inline] pub unsafe fn GetWindowLongW(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowLongW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32); - GetWindowLongW(hwnd.into_param().abi(), nindex) + GetWindowLongW(hwnd.param().abi(), nindex) } #[inline] pub unsafe fn GetWindowModuleFileNameA(hwnd: P0, pszfilename: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowModuleFileNameA(hwnd : super::super::Foundation:: HWND, pszfilename : windows_core::PSTR, cchfilenamemax : u32) -> u32); - GetWindowModuleFileNameA(hwnd.into_param().abi(), core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) + GetWindowModuleFileNameA(hwnd.param().abi(), core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowModuleFileNameW(hwnd: P0, pszfilename: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowModuleFileNameW(hwnd : super::super::Foundation:: HWND, pszfilename : windows_core::PWSTR, cchfilenamemax : u32) -> u32); - GetWindowModuleFileNameW(hwnd.into_param().abi(), core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) + GetWindowModuleFileNameW(hwnd.param().abi(), core::mem::transmute(pszfilename.as_ptr()), pszfilename.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowPlacement(hwnd: P0, lpwndpl: *mut WINDOWPLACEMENT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *mut WINDOWPLACEMENT) -> super::super::Foundation:: BOOL); - GetWindowPlacement(hwnd.into_param().abi(), lpwndpl).ok() + GetWindowPlacement(hwnd.param().abi(), lpwndpl).ok() } #[inline] pub unsafe fn GetWindowRect(hwnd: P0, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - GetWindowRect(hwnd.into_param().abi(), lprect).ok() + GetWindowRect(hwnd.param().abi(), lprect).ok() } #[inline] pub unsafe fn GetWindowTextA(hwnd: P0, lpstring: &mut [u8]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowTextA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, nmaxcount : i32) -> i32); - GetWindowTextA(hwnd.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetWindowTextA(hwnd.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowTextLengthA(hwnd: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowTextLengthA(hwnd : super::super::Foundation:: HWND) -> i32); - GetWindowTextLengthA(hwnd.into_param().abi()) + GetWindowTextLengthA(hwnd.param().abi()) } #[inline] pub unsafe fn GetWindowTextLengthW(hwnd: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowTextLengthW(hwnd : super::super::Foundation:: HWND) -> i32); - GetWindowTextLengthW(hwnd.into_param().abi()) + GetWindowTextLengthW(hwnd.param().abi()) } #[inline] pub unsafe fn GetWindowTextW(hwnd: P0, lpstring: &mut [u16]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowTextW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, nmaxcount : i32) -> i32); - GetWindowTextW(hwnd.into_param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) + GetWindowTextW(hwnd.param().abi(), core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } #[inline] pub unsafe fn GetWindowThreadProcessId(hwnd: P0, lpdwprocessid: Option<*mut u32>) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowThreadProcessId(hwnd : super::super::Foundation:: HWND, lpdwprocessid : *mut u32) -> u32); - GetWindowThreadProcessId(hwnd.into_param().abi(), core::mem::transmute(lpdwprocessid.unwrap_or(std::ptr::null_mut()))) + GetWindowThreadProcessId(hwnd.param().abi(), core::mem::transmute(lpdwprocessid.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn GetWindowWord(hwnd: P0, nindex: i32) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn GetWindowWord(hwnd : super::super::Foundation:: HWND, nindex : i32) -> u16); - GetWindowWord(hwnd.into_param().abi(), nindex) + GetWindowWord(hwnd.param().abi(), nindex) } #[inline] pub unsafe fn HideCaret(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn HideCaret(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - HideCaret(hwnd.into_param().abi()).ok() + HideCaret(hwnd.param().abi()).ok() } #[inline] pub unsafe fn HiliteMenuItem(hwnd: P0, hmenu: P1, uidhiliteitem: u32, uhilite: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn HiliteMenuItem(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, uidhiliteitem : u32, uhilite : u32) -> super::super::Foundation:: BOOL); - HiliteMenuItem(hwnd.into_param().abi(), hmenu.into_param().abi(), uidhiliteitem, uhilite) + HiliteMenuItem(hwnd.param().abi(), hmenu.param().abi(), uidhiliteitem, uhilite) } #[inline] pub unsafe fn InSendMessage() -> super::super::Foundation::BOOL { @@ -1655,65 +1655,65 @@ pub unsafe fn InSendMessageEx(lpreserved: Option<*const core::ffi::c_void>) -> u #[inline] pub unsafe fn IndexFilePath(resourceindexer: *const core::ffi::c_void, filepath: P0, ppresourceuri: *mut windows_core::PWSTR, pqualifiercount: *mut u32, ppqualifiers: *mut *mut IndexedResourceQualifier) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(resourceindexer, filepath.into_param().abi(), ppresourceuri, pqualifiercount, ppqualifiers).ok() + IndexFilePath(resourceindexer, filepath.param().abi(), ppresourceuri, pqualifiercount, ppqualifiers).ok() } #[inline] pub unsafe fn InheritWindowMonitor(hwnd: P0, hwndinherit: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn InheritWindowMonitor(hwnd : super::super::Foundation:: HWND, hwndinherit : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - InheritWindowMonitor(hwnd.into_param().abi(), hwndinherit.into_param().abi()) + InheritWindowMonitor(hwnd.param().abi(), hwndinherit.param().abi()) } #[inline] pub unsafe fn InsertMenuA(hmenu: P0, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmenu.into_param().abi(), uposition, uflags, uidnewitem, lpnewitem.into_param().abi()).ok() + InsertMenuA(hmenu.param().abi(), uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn InsertMenuItemA(hmenu: P0, item: u32, fbyposition: P1, lpmi: *const MENUITEMINFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), item, fbyposition.into_param().abi(), lpmi).ok() + InsertMenuItemA(hmenu.param().abi(), item, fbyposition.param().abi(), lpmi).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn InsertMenuItemW(hmenu: P0, item: u32, fbyposition: P1, lpmi: *const MENUITEMINFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), item, fbyposition.into_param().abi(), lpmi).ok() + InsertMenuItemW(hmenu.param().abi(), item, fbyposition.param().abi(), lpmi).ok() } #[inline] pub unsafe fn InsertMenuW(hmenu: P0, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmenu.into_param().abi(), uposition, uflags, uidnewitem, lpnewitem.into_param().abi()).ok() + InsertMenuW(hmenu.param().abi(), uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn InternalGetWindowText(hwnd: P0, pstring: &mut [u16]) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn InternalGetWindowText(hwnd : super::super::Foundation:: HWND, pstring : windows_core::PWSTR, cchmaxcount : i32) -> i32); - InternalGetWindowText(hwnd.into_param().abi(), core::mem::transmute(pstring.as_ptr()), pstring.len().try_into().unwrap()) + InternalGetWindowText(hwnd.param().abi(), core::mem::transmute(pstring.as_ptr()), pstring.len().try_into().unwrap()) } #[inline] pub unsafe fn IsCharAlphaA(ch: i8) -> windows_core::Result<()> { @@ -1753,59 +1753,59 @@ pub unsafe fn IsCharUpperW(ch: u16) -> windows_core::Result<()> { #[inline] pub unsafe fn IsChild(hwndparent: P0, hwnd: P1) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsChild(hwndparent : super::super::Foundation:: HWND, hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsChild(hwndparent.into_param().abi(), hwnd.into_param().abi()) + IsChild(hwndparent.param().abi(), hwnd.param().abi()) } #[inline] pub unsafe fn IsDialogMessageA(hdlg: P0, lpmsg: *const MSG) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsDialogMessageA(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); - IsDialogMessageA(hdlg.into_param().abi(), lpmsg) + IsDialogMessageA(hdlg.param().abi(), lpmsg) } #[inline] pub unsafe fn IsDialogMessageW(hdlg: P0, lpmsg: *const MSG) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsDialogMessageW(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); - IsDialogMessageW(hdlg.into_param().abi(), lpmsg) + IsDialogMessageW(hdlg.param().abi(), lpmsg) } #[inline] pub unsafe fn IsGUIThread(bconvert: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsGUIThread(bconvert : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - IsGUIThread(bconvert.into_param().abi()) + IsGUIThread(bconvert.param().abi()) } #[inline] pub unsafe fn IsHungAppWindow(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsHungAppWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsHungAppWindow(hwnd.into_param().abi()) + IsHungAppWindow(hwnd.param().abi()) } #[inline] pub unsafe fn IsIconic(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsIconic(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsIconic(hwnd.into_param().abi()) + IsIconic(hwnd.param().abi()) } #[inline] pub unsafe fn IsMenu(hmenu: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsMenu(hmenu : HMENU) -> super::super::Foundation:: BOOL); - IsMenu(hmenu.into_param().abi()) + IsMenu(hmenu.param().abi()) } #[inline] pub unsafe fn IsProcessDPIAware() -> super::super::Foundation::BOOL { @@ -1815,34 +1815,34 @@ pub unsafe fn IsProcessDPIAware() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsWindow(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsWindow(hwnd.into_param().abi()) + IsWindow(hwnd.param().abi()) } #[inline] pub unsafe fn IsWindowArranged(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsWindowArranged(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsWindowArranged(hwnd.into_param().abi()) + IsWindowArranged(hwnd.param().abi()) } #[inline] pub unsafe fn IsWindowUnicode(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsWindowUnicode(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsWindowUnicode(hwnd.into_param().abi()) + IsWindowUnicode(hwnd.param().abi()) } #[inline] pub unsafe fn IsWindowVisible(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsWindowVisible(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsWindowVisible(hwnd.into_param().abi()) + IsWindowVisible(hwnd.param().abi()) } #[inline] pub unsafe fn IsWow64Message() -> super::super::Foundation::BOOL { @@ -1852,125 +1852,125 @@ pub unsafe fn IsWow64Message() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn IsZoomed(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn IsZoomed(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - IsZoomed(hwnd.into_param().abi()) + IsZoomed(hwnd.param().abi()) } #[inline] pub unsafe fn KillTimer(hwnd: P0, uidevent: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn KillTimer(hwnd : super::super::Foundation:: HWND, uidevent : usize) -> super::super::Foundation:: BOOL); - KillTimer(hwnd.into_param().abi(), uidevent).ok() + KillTimer(hwnd.param().abi(), uidevent).ok() } #[inline] pub unsafe fn LoadAcceleratorsA(hinstance: P0, lptablename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadAcceleratorsA(hinstance : super::super::Foundation:: HINSTANCE, lptablename : windows_core::PCSTR) -> HACCEL); - let result__ = LoadAcceleratorsA(hinstance.into_param().abi(), lptablename.into_param().abi()); + let result__ = LoadAcceleratorsA(hinstance.param().abi(), lptablename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadAcceleratorsW(hinstance: P0, lptablename: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadAcceleratorsW(hinstance : super::super::Foundation:: HINSTANCE, lptablename : windows_core::PCWSTR) -> HACCEL); - let result__ = LoadAcceleratorsW(hinstance.into_param().abi(), lptablename.into_param().abi()); + let result__ = LoadAcceleratorsW(hinstance.param().abi(), lptablename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadCursorA(hinstance: P0, lpcursorname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadCursorA(hinstance : super::super::Foundation:: HINSTANCE, lpcursorname : windows_core::PCSTR) -> HCURSOR); - let result__ = LoadCursorA(hinstance.into_param().abi(), lpcursorname.into_param().abi()); + let result__ = LoadCursorA(hinstance.param().abi(), lpcursorname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadCursorFromFileA(lpfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadCursorFromFileA(lpfilename : windows_core::PCSTR) -> HCURSOR); - let result__ = LoadCursorFromFileA(lpfilename.into_param().abi()); + let result__ = LoadCursorFromFileA(lpfilename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadCursorFromFileW(lpfilename: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadCursorFromFileW(lpfilename : windows_core::PCWSTR) -> HCURSOR); - let result__ = LoadCursorFromFileW(lpfilename.into_param().abi()); + let result__ = LoadCursorFromFileW(lpfilename.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadCursorW(hinstance: P0, lpcursorname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadCursorW(hinstance : super::super::Foundation:: HINSTANCE, lpcursorname : windows_core::PCWSTR) -> HCURSOR); - let result__ = LoadCursorW(hinstance.into_param().abi(), lpcursorname.into_param().abi()); + let result__ = LoadCursorW(hinstance.param().abi(), lpcursorname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadIconA(hinstance: P0, lpiconname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadIconA(hinstance : super::super::Foundation:: HINSTANCE, lpiconname : windows_core::PCSTR) -> HICON); - let result__ = LoadIconA(hinstance.into_param().abi(), lpiconname.into_param().abi()); + let result__ = LoadIconA(hinstance.param().abi(), lpiconname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadIconW(hinstance: P0, lpiconname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadIconW(hinstance : super::super::Foundation:: HINSTANCE, lpiconname : windows_core::PCWSTR) -> HICON); - let result__ = LoadIconW(hinstance.into_param().abi(), lpiconname.into_param().abi()); + let result__ = LoadIconW(hinstance.param().abi(), lpiconname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadImageA(hinst: P0, name: P1, r#type: GDI_IMAGE_TYPE, cx: i32, cy: i32, fuload: IMAGE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinst.into_param().abi(), name.into_param().abi(), r#type, cx, cy, fuload); + let result__ = LoadImageA(hinst.param().abi(), name.param().abi(), r#type, cx, cy, fuload); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadImageW(hinst: P0, name: P1, r#type: GDI_IMAGE_TYPE, cx: i32, cy: i32, fuload: IMAGE_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hinst.into_param().abi(), name.into_param().abi(), r#type, cx, cy, fuload); + let result__ = LoadImageW(hinst.param().abi(), name.param().abi(), r#type, cx, cy, fuload); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadMenuA(hinstance: P0, lpmenuname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadMenuA(hinstance : super::super::Foundation:: HINSTANCE, lpmenuname : windows_core::PCSTR) -> HMENU); - let result__ = LoadMenuA(hinstance.into_param().abi(), lpmenuname.into_param().abi()); + let result__ = LoadMenuA(hinstance.param().abi(), lpmenuname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -1988,28 +1988,28 @@ pub unsafe fn LoadMenuIndirectW(lpmenutemplate: *const core::ffi::c_void) -> win #[inline] pub unsafe fn LoadMenuW(hinstance: P0, lpmenuname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadMenuW(hinstance : super::super::Foundation:: HINSTANCE, lpmenuname : windows_core::PCWSTR) -> HMENU); - let result__ = LoadMenuW(hinstance.into_param().abi(), lpmenuname.into_param().abi()); + let result__ = LoadMenuW(hinstance.param().abi(), lpmenuname.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn LoadStringA(hinstance: P0, uid: u32, lpbuffer: windows_core::PSTR, cchbuffermax: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadStringA(hinstance : super::super::Foundation:: HINSTANCE, uid : u32, lpbuffer : windows_core::PSTR, cchbuffermax : i32) -> i32); - LoadStringA(hinstance.into_param().abi(), uid, core::mem::transmute(lpbuffer), cchbuffermax) + LoadStringA(hinstance.param().abi(), uid, core::mem::transmute(lpbuffer), cchbuffermax) } #[inline] pub unsafe fn LoadStringW(hinstance: P0, uid: u32, lpbuffer: windows_core::PWSTR, cchbuffermax: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LoadStringW(hinstance : super::super::Foundation:: HINSTANCE, uid : u32, lpbuffer : windows_core::PWSTR, cchbuffermax : i32) -> i32); - LoadStringW(hinstance.into_param().abi(), uid, core::mem::transmute(lpbuffer), cchbuffermax) + LoadStringW(hinstance.param().abi(), uid, core::mem::transmute(lpbuffer), cchbuffermax) } #[inline] pub unsafe fn LockSetForegroundWindow(ulockcode: FOREGROUND_WINDOW_LOCK_CODE) -> windows_core::Result<()> { @@ -2019,73 +2019,73 @@ pub unsafe fn LockSetForegroundWindow(ulockcode: FOREGROUND_WINDOW_LOCK_CODE) -> #[inline] pub unsafe fn LogicalToPhysicalPoint(hwnd: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LogicalToPhysicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - LogicalToPhysicalPoint(hwnd.into_param().abi(), lppoint) + LogicalToPhysicalPoint(hwnd.param().abi(), lppoint) } #[inline] pub unsafe fn LookupIconIdFromDirectory(presbits: *const u8, ficon: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn LookupIconIdFromDirectory(presbits : *const u8, ficon : super::super::Foundation:: BOOL) -> i32); - LookupIconIdFromDirectory(presbits, ficon.into_param().abi()) + LookupIconIdFromDirectory(presbits, ficon.param().abi()) } #[inline] pub unsafe fn LookupIconIdFromDirectoryEx(presbits: *const u8, ficon: P0, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(presbits, ficon.into_param().abi(), cxdesired, cydesired, flags) + LookupIconIdFromDirectoryEx(presbits, ficon.param().abi(), cxdesired, cydesired, flags) } #[inline] pub unsafe fn MapDialogRect(hdlg: P0, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MapDialogRect(hdlg : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); - MapDialogRect(hdlg.into_param().abi(), lprect).ok() + MapDialogRect(hdlg.param().abi(), lprect).ok() } #[inline] pub unsafe fn MenuItemFromPoint(hwnd: P0, hmenu: P1, ptscreen: super::super::Foundation::POINT) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn MenuItemFromPoint(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, ptscreen : super::super::Foundation:: POINT) -> i32); - MenuItemFromPoint(hwnd.into_param().abi(), hmenu.into_param().abi(), core::mem::transmute(ptscreen)) + MenuItemFromPoint(hwnd.param().abi(), hmenu.param().abi(), core::mem::transmute(ptscreen)) } #[inline] pub unsafe fn MessageBoxA(hwnd: P0, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), lptext.into_param().abi(), lpcaption.into_param().abi(), utype) + MessageBoxA(hwnd.param().abi(), lptext.param().abi(), lpcaption.param().abi(), utype) } #[inline] pub unsafe fn MessageBoxExA(hwnd: P0, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE, wlanguageid: u16) -> MESSAGEBOX_RESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), lptext.into_param().abi(), lpcaption.into_param().abi(), utype, wlanguageid) + MessageBoxExA(hwnd.param().abi(), lptext.param().abi(), lpcaption.param().abi(), utype, wlanguageid) } #[inline] pub unsafe fn MessageBoxExW(hwnd: P0, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE, wlanguageid: u16) -> MESSAGEBOX_RESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), lptext.into_param().abi(), lpcaption.into_param().abi(), utype, wlanguageid) + MessageBoxExW(hwnd.param().abi(), lptext.param().abi(), lpcaption.param().abi(), utype, wlanguageid) } #[cfg(feature = "Win32_UI_Shell")] #[inline] @@ -2102,64 +2102,64 @@ pub unsafe fn MessageBoxIndirectW(lpmbp: *const MSGBOXPARAMSW) -> MESSAGEBOX_RES #[inline] pub unsafe fn MessageBoxW(hwnd: P0, lptext: P1, lpcaption: P2, utype: MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwnd.into_param().abi(), lptext.into_param().abi(), lpcaption.into_param().abi(), utype) + MessageBoxW(hwnd.param().abi(), lptext.param().abi(), lpcaption.param().abi(), utype) } #[inline] pub unsafe fn ModifyMenuA(hmnu: P0, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmnu.into_param().abi(), uposition, uflags, uidnewitem, lpnewitem.into_param().abi()).ok() + ModifyMenuA(hmnu.param().abi(), uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn ModifyMenuW(hmnu: P0, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hmnu.into_param().abi(), uposition, uflags, uidnewitem, lpnewitem.into_param().abi()).ok() + ModifyMenuW(hmnu.param().abi(), uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } #[inline] pub unsafe fn MoveWindow(hwnd: P0, x: i32, y: i32, nwidth: i32, nheight: i32, brepaint: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), x, y, nwidth, nheight, brepaint.into_param().abi()).ok() + MoveWindow(hwnd.param().abi(), x, y, nwidth, nheight, brepaint.param().abi()).ok() } #[inline] pub unsafe fn MrmCreateConfig(platformversion: MrmPlatformVersion, defaultqualifiers: P0, outputxmlfile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(platformversion, defaultqualifiers.into_param().abi(), outputxmlfile.into_param().abi()).ok() + MrmCreateConfig(platformversion, defaultqualifiers.param().abi(), outputxmlfile.param().abi()).ok() } #[inline] pub unsafe fn MrmCreateConfigInMemory(platformversion: MrmPlatformVersion, defaultqualifiers: P0, outputxmldata: *mut *mut u8, outputxmlsize: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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(platformversion, defaultqualifiers.into_param().abi(), outputxmldata, outputxmlsize).ok() + MrmCreateConfigInMemory(platformversion, defaultqualifiers.param().abi(), outputxmldata, outputxmlsize).ok() } #[inline] pub unsafe fn MrmCreateResourceFile(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, outputdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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), packagingmode, packagingoptions, outputdirectory.into_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<()> { @@ -2169,68 +2169,68 @@ pub unsafe fn MrmCreateResourceFileInMemory(indexer: MrmResourceIndexerHandle, p #[inline] pub unsafe fn MrmCreateResourceFileWithChecksum(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, checksum: u32, outputdirectory: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: 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), packagingmode, packagingoptions, checksum, outputdirectory.into_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: P2, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), projectroot.into_param().abi(), platformversion, defaultqualifiers.into_param().abi(), indexer).ok() + MrmCreateResourceIndexer(packagefamilyname.param().abi(), projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), indexer).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousPriData(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P1, pridata: &[u8], indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), platformversion, defaultqualifiers.into_param().abi(), core::mem::transmute(pridata.as_ptr()), pridata.len().try_into().unwrap(), indexer).ok() + MrmCreateResourceIndexerFromPreviousPriData(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), core::mem::transmute(pridata.as_ptr()), pridata.len().try_into().unwrap(), indexer).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousPriFile(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P1, prifile: P2, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), platformversion, defaultqualifiers.into_param().abi(), prifile.into_param().abi(), indexer).ok() + MrmCreateResourceIndexerFromPreviousPriFile(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), prifile.param().abi(), indexer).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaData(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P1, schemaxmldata: &[u8], indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), platformversion, defaultqualifiers.into_param().abi(), core::mem::transmute(schemaxmldata.as_ptr()), schemaxmldata.len().try_into().unwrap(), indexer).ok() + MrmCreateResourceIndexerFromPreviousSchemaData(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), core::mem::transmute(schemaxmldata.as_ptr()), schemaxmldata.len().try_into().unwrap(), indexer).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaFile(projectroot: P0, platformversion: MrmPlatformVersion, defaultqualifiers: P1, schemafile: P2, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), platformversion, defaultqualifiers.into_param().abi(), schemafile.into_param().abi(), indexer).ok() + MrmCreateResourceIndexerFromPreviousSchemaFile(projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), schemafile.param().abi(), indexer).ok() } #[inline] pub unsafe fn MrmCreateResourceIndexerWithFlags(packagefamilyname: P0, projectroot: P1, platformversion: MrmPlatformVersion, defaultqualifiers: P2, flags: MrmIndexerFlags, indexer: *mut MrmResourceIndexerHandle) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), projectroot.into_param().abi(), platformversion, defaultqualifiers.into_param().abi(), flags, indexer).ok() + MrmCreateResourceIndexerWithFlags(packagefamilyname.param().abi(), projectroot.param().abi(), platformversion, defaultqualifiers.param().abi(), flags, indexer).ok() } #[inline] pub unsafe fn MrmDestroyIndexerAndMessages(indexer: MrmResourceIndexerHandle) -> windows_core::Result<()> { @@ -2245,21 +2245,21 @@ pub unsafe fn MrmDumpPriDataInMemory(inputpridata: &[u8], schemapridata: Option< #[inline] pub unsafe fn MrmDumpPriFile(indexfilename: P0, schemaprifile: P1, dumptype: MrmDumpType, outputxmlfile: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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.into_param().abi(), schemaprifile.into_param().abi(), dumptype, outputxmlfile.into_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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), schemaprifile.into_param().abi(), dumptype, outputxmldata, outputxmlsize).ok() + MrmDumpPriFileInMemory(indexfilename.param().abi(), schemaprifile.param().abi(), dumptype, outputxmldata, outputxmlsize).ok() } #[inline] pub unsafe fn MrmFreeMemory(data: *const u8) -> windows_core::Result<()> { @@ -2269,56 +2269,56 @@ pub unsafe fn MrmFreeMemory(data: *const u8) -> windows_core::Result<()> { #[inline] pub unsafe fn MrmGetPriFileContentChecksum(prifile: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmGetPriFileContentChecksum(prifile : windows_core::PCWSTR, checksum : *mut u32) -> windows_core::HRESULT); let mut result__ = std::mem::zeroed(); - MrmGetPriFileContentChecksum(prifile.into_param().abi(), &mut result__).map(|| result__) + MrmGetPriFileContentChecksum(prifile.param().abi(), &mut result__).map(|| result__) } #[inline] pub unsafe fn MrmIndexEmbeddedData(indexer: MrmResourceIndexerHandle, resourceuri: P0, embeddeddata: &[u8], qualifiers: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmIndexEmbeddedData(indexer : MrmResourceIndexerHandle, resourceuri : windows_core::PCWSTR, embeddeddata : *const u8, embeddeddatasize : u32, qualifiers : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmIndexEmbeddedData(core::mem::transmute(indexer), resourceuri.into_param().abi(), core::mem::transmute(embeddeddata.as_ptr()), embeddeddata.len().try_into().unwrap(), qualifiers.into_param().abi()).ok() + MrmIndexEmbeddedData(core::mem::transmute(indexer), resourceuri.param().abi(), core::mem::transmute(embeddeddata.as_ptr()), embeddeddata.len().try_into().unwrap(), qualifiers.param().abi()).ok() } #[inline] pub unsafe fn MrmIndexFile(indexer: MrmResourceIndexerHandle, resourceuri: P0, filepath: P1, qualifiers: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmIndexFile(indexer : MrmResourceIndexerHandle, resourceuri : windows_core::PCWSTR, filepath : windows_core::PCWSTR, qualifiers : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmIndexFile(core::mem::transmute(indexer), resourceuri.into_param().abi(), filepath.into_param().abi(), qualifiers.into_param().abi()).ok() + MrmIndexFile(core::mem::transmute(indexer), resourceuri.param().abi(), filepath.param().abi(), qualifiers.param().abi()).ok() } #[inline] pub unsafe fn MrmIndexFileAutoQualifiers(indexer: MrmResourceIndexerHandle, filepath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmIndexFileAutoQualifiers(indexer : MrmResourceIndexerHandle, filepath : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmIndexFileAutoQualifiers(core::mem::transmute(indexer), filepath.into_param().abi()).ok() + MrmIndexFileAutoQualifiers(core::mem::transmute(indexer), filepath.param().abi()).ok() } #[inline] pub unsafe fn MrmIndexResourceContainerAutoQualifiers(indexer: MrmResourceIndexerHandle, containerpath: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmIndexResourceContainerAutoQualifiers(indexer : MrmResourceIndexerHandle, containerpath : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmIndexResourceContainerAutoQualifiers(core::mem::transmute(indexer), containerpath.into_param().abi()).ok() + MrmIndexResourceContainerAutoQualifiers(core::mem::transmute(indexer), containerpath.param().abi()).ok() } #[inline] pub unsafe fn MrmIndexString(indexer: MrmResourceIndexerHandle, resourceuri: P0, resourcestring: P1, qualifiers: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("mrmsupport.dll" "system" fn MrmIndexString(indexer : MrmResourceIndexerHandle, resourceuri : windows_core::PCWSTR, resourcestring : windows_core::PCWSTR, qualifiers : windows_core::PCWSTR) -> windows_core::HRESULT); - MrmIndexString(core::mem::transmute(indexer), resourceuri.into_param().abi(), resourcestring.into_param().abi(), qualifiers.into_param().abi()).ok() + MrmIndexString(core::mem::transmute(indexer), resourceuri.param().abi(), resourcestring.param().abi(), qualifiers.param().abi()).ok() } #[inline] pub unsafe fn MrmPeekResourceIndexerMessages(handle: MrmResourceIndexerHandle, messages: *mut *mut MrmResourceIndexerMessage, nummsgs: *mut u32) -> windows_core::Result<()> { @@ -2328,10 +2328,10 @@ pub unsafe fn MrmPeekResourceIndexerMessages(handle: MrmResourceIndexerHandle, m #[inline] pub unsafe fn MsgWaitForMultipleObjects(phandles: Option<&[super::super::Foundation::HANDLE]>, fwaitall: P0, dwmilliseconds: u32, dwwakemask: QUEUE_STATUS_FLAGS) -> super::super::Foundation::WAIT_EVENT where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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_param().abi(), dwmilliseconds, 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.param().abi(), 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 { @@ -2341,86 +2341,86 @@ pub unsafe fn MsgWaitForMultipleObjectsEx(phandles: Option<&[super::super::Found #[inline] pub unsafe fn OemToCharA(psrc: P0, pdst: windows_core::PSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OemToCharA(psrc : windows_core::PCSTR, pdst : windows_core::PSTR) -> super::super::Foundation:: BOOL); - OemToCharA(psrc.into_param().abi(), core::mem::transmute(pdst)).ok() + OemToCharA(psrc.param().abi(), core::mem::transmute(pdst)).ok() } #[inline] pub unsafe fn OemToCharBuffA(lpszsrc: P0, lpszdst: &mut [u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OemToCharBuffA(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); - OemToCharBuffA(lpszsrc.into_param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() + OemToCharBuffA(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn OemToCharBuffW(lpszsrc: P0, lpszdst: &mut [u16]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OemToCharBuffW(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PWSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); - OemToCharBuffW(lpszsrc.into_param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() + OemToCharBuffW(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } #[inline] pub unsafe fn OemToCharW(psrc: P0, pdst: windows_core::PWSTR) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OemToCharW(psrc : windows_core::PCSTR, pdst : windows_core::PWSTR) -> super::super::Foundation:: BOOL); - OemToCharW(psrc.into_param().abi(), core::mem::transmute(pdst)).ok() + OemToCharW(psrc.param().abi(), core::mem::transmute(pdst)).ok() } #[inline] pub unsafe fn OpenIcon(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn OpenIcon(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - OpenIcon(hwnd.into_param().abi()).ok() + OpenIcon(hwnd.param().abi()).ok() } #[inline] pub unsafe fn PeekMessageA(lpmsg: *mut MSG, hwnd: P0, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lpmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg) + PeekMessageA(lpmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg) } #[inline] pub unsafe fn PeekMessageW(lpmsg: *mut MSG, hwnd: P0, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(lpmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg) + PeekMessageW(lpmsg, hwnd.param().abi(), wmsgfiltermin, wmsgfiltermax, wremovemsg) } #[inline] pub unsafe fn PhysicalToLogicalPoint(hwnd: P0, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn PhysicalToLogicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); - PhysicalToLogicalPoint(hwnd.into_param().abi(), lppoint) + PhysicalToLogicalPoint(hwnd.param().abi(), lppoint) } #[inline] pub unsafe fn PostMessageA(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + PostMessageA(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } #[inline] pub unsafe fn PostMessageW(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + PostMessageW(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } #[inline] pub unsafe fn PostQuitMessage(nexitcode: i32) { @@ -2430,20 +2430,20 @@ pub unsafe fn PostQuitMessage(nexitcode: i32) { #[inline] pub unsafe fn PostThreadMessageA(idthread: u32, msg: u32, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(idthread, msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + PostThreadMessageA(idthread, msg, wparam.param().abi(), lparam.param().abi()).ok() } #[inline] pub unsafe fn PostThreadMessageW(idthread: u32, msg: u32, wparam: P0, lparam: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(idthread, msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + PostThreadMessageW(idthread, msg, wparam.param().abi(), lparam.param().abi()).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 { @@ -2458,26 +2458,26 @@ pub unsafe fn PrivateExtractIconsW(szfilename: &[u16; 260], niconindex: i32, cxi #[inline] pub unsafe fn RealChildWindowFromPoint(hwndparent: P0, ptparentclientcoords: super::super::Foundation::POINT) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RealChildWindowFromPoint(hwndparent : super::super::Foundation:: HWND, ptparentclientcoords : super::super::Foundation:: POINT) -> super::super::Foundation:: HWND); - RealChildWindowFromPoint(hwndparent.into_param().abi(), core::mem::transmute(ptparentclientcoords)) + RealChildWindowFromPoint(hwndparent.param().abi(), core::mem::transmute(ptparentclientcoords)) } #[inline] pub unsafe fn RealGetWindowClassA(hwnd: P0, ptszclassname: &mut [u8]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RealGetWindowClassA(hwnd : super::super::Foundation:: HWND, ptszclassname : windows_core::PSTR, cchclassnamemax : u32) -> u32); - RealGetWindowClassA(hwnd.into_param().abi(), core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) + RealGetWindowClassA(hwnd.param().abi(), core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) } #[inline] pub unsafe fn RealGetWindowClassW(hwnd: P0, ptszclassname: &mut [u16]) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RealGetWindowClassW(hwnd : super::super::Foundation:: HWND, ptszclassname : windows_core::PWSTR, cchclassnamemax : u32) -> u32); - RealGetWindowClassW(hwnd.into_param().abi(), core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) + RealGetWindowClassW(hwnd.param().abi(), core::mem::transmute(ptszclassname.as_ptr()), ptszclassname.len().try_into().unwrap()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -2506,224 +2506,224 @@ pub unsafe fn RegisterClassW(lpwndclass: *const WNDCLASSW) -> u16 { #[inline] pub unsafe fn RegisterDeviceNotificationA(hrecipient: P0, notificationfilter: *const core::ffi::c_void, flags: REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrecipient.into_param().abi(), notificationfilter, flags); + let result__ = RegisterDeviceNotificationA(hrecipient.param().abi(), notificationfilter, flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterDeviceNotificationW(hrecipient: P0, notificationfilter: *const core::ffi::c_void, flags: REGISTER_NOTIFICATION_FLAGS) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hrecipient.into_param().abi(), notificationfilter, flags); + let result__ = RegisterDeviceNotificationW(hrecipient.param().abi(), notificationfilter, flags); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RegisterForTooltipDismissNotification(hwnd: P0, tdflags: TOOLTIP_DISMISS_FLAGS) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterForTooltipDismissNotification(hwnd : super::super::Foundation:: HWND, tdflags : TOOLTIP_DISMISS_FLAGS) -> super::super::Foundation:: BOOL); - RegisterForTooltipDismissNotification(hwnd.into_param().abi(), tdflags) + RegisterForTooltipDismissNotification(hwnd.param().abi(), tdflags) } #[inline] pub unsafe fn RegisterShellHookWindow(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - RegisterShellHookWindow(hwnd.into_param().abi()) + RegisterShellHookWindow(hwnd.param().abi()) } #[inline] pub unsafe fn RegisterWindowMessageA(lpstring: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterWindowMessageA(lpstring : windows_core::PCSTR) -> u32); - RegisterWindowMessageA(lpstring.into_param().abi()) + RegisterWindowMessageA(lpstring.param().abi()) } #[inline] pub unsafe fn RegisterWindowMessageW(lpstring: P0) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RegisterWindowMessageW(lpstring : windows_core::PCWSTR) -> u32); - RegisterWindowMessageW(lpstring.into_param().abi()) + RegisterWindowMessageW(lpstring.param().abi()) } #[inline] pub unsafe fn RemoveMenu(hmenu: P0, uposition: u32, uflags: MENU_ITEM_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn RemoveMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); - RemoveMenu(hmenu.into_param().abi(), uposition, uflags).ok() + RemoveMenu(hmenu.param().abi(), uposition, uflags).ok() } #[inline] pub unsafe fn RemovePropA(hwnd: P0, lpstring: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), lpstring.into_param().abi()); + let result__ = RemovePropA(hwnd.param().abi(), lpstring.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn RemovePropW(hwnd: P0, lpstring: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), lpstring.into_param().abi()); + let result__ = RemovePropW(hwnd.param().abi(), lpstring.param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn ReplyMessage(lresult: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ReplyMessage(lresult : super::super::Foundation:: LRESULT) -> super::super::Foundation:: BOOL); - ReplyMessage(lresult.into_param().abi()) + ReplyMessage(lresult.param().abi()) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScrollDC(hdc: P0, dx: i32, dy: i32, lprcscroll: Option<*const super::super::Foundation::RECT>, lprcclip: Option<*const super::super::Foundation::RECT>, hrgnupdate: P1, lprcupdate: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdc.into_param().abi(), dx, dy, core::mem::transmute(lprcscroll.unwrap_or(std::ptr::null())), core::mem::transmute(lprcclip.unwrap_or(std::ptr::null())), hrgnupdate.into_param().abi(), core::mem::transmute(lprcupdate.unwrap_or(std::ptr::null_mut()))).ok() + ScrollDC(hdc.param().abi(), dx, dy, core::mem::transmute(lprcscroll.unwrap_or(std::ptr::null())), core::mem::transmute(lprcclip.unwrap_or(std::ptr::null())), hrgnupdate.param().abi(), core::mem::transmute(lprcupdate.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn ScrollWindow(hwnd: P0, xamount: i32, yamount: i32, lprect: Option<*const super::super::Foundation::RECT>, lpcliprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwnd.into_param().abi(), xamount, yamount, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), core::mem::transmute(lpcliprect.unwrap_or(std::ptr::null()))).ok() + ScrollWindow(hwnd.param().abi(), xamount, yamount, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), core::mem::transmute(lpcliprect.unwrap_or(std::ptr::null()))).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScrollWindowEx(hwnd: P0, dx: i32, dy: i32, prcscroll: Option<*const super::super::Foundation::RECT>, prcclip: Option<*const super::super::Foundation::RECT>, hrgnupdate: P1, prcupdate: Option<*mut super::super::Foundation::RECT>, flags: SCROLL_WINDOW_FLAGS) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), dx, dy, core::mem::transmute(prcscroll.unwrap_or(std::ptr::null())), core::mem::transmute(prcclip.unwrap_or(std::ptr::null())), hrgnupdate.into_param().abi(), core::mem::transmute(prcupdate.unwrap_or(std::ptr::null_mut())), flags) + ScrollWindowEx(hwnd.param().abi(), dx, dy, core::mem::transmute(prcscroll.unwrap_or(std::ptr::null())), core::mem::transmute(prcclip.unwrap_or(std::ptr::null())), hrgnupdate.param().abi(), core::mem::transmute(prcupdate.unwrap_or(std::ptr::null_mut())), flags) } #[inline] pub unsafe fn SendDlgItemMessageA(hdlg: P0, niddlgitem: i32, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdlg.into_param().abi(), niddlgitem, msg, wparam.into_param().abi(), lparam.into_param().abi()) + SendDlgItemMessageA(hdlg.param().abi(), niddlgitem, msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn SendDlgItemMessageW(hdlg: P0, niddlgitem: i32, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hdlg.into_param().abi(), niddlgitem, msg, wparam.into_param().abi(), lparam.into_param().abi()) + SendDlgItemMessageW(hdlg.param().abi(), niddlgitem, msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn SendMessageA(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + SendMessageA(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn SendMessageCallbackA(hwnd: P0, msg: u32, wparam: P1, lparam: P2, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi(), lpresultcallback, dwdata).ok() + SendMessageCallbackA(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi(), lpresultcallback, dwdata).ok() } #[inline] pub unsafe fn SendMessageCallbackW(hwnd: P0, msg: u32, wparam: P1, lparam: P2, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi(), lpresultcallback, dwdata).ok() + SendMessageCallbackW(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi(), lpresultcallback, dwdata).ok() } #[inline] pub unsafe fn SendMessageTimeoutA(hwnd: P0, msg: u32, wparam: P1, lparam: P2, fuflags: SEND_MESSAGE_TIMEOUT_FLAGS, utimeout: u32, lpdwresult: Option<*mut usize>) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi(), fuflags, utimeout, core::mem::transmute(lpdwresult.unwrap_or(std::ptr::null_mut()))) + SendMessageTimeoutA(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi(), fuflags, utimeout, core::mem::transmute(lpdwresult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SendMessageTimeoutW(hwnd: P0, msg: u32, wparam: P1, lparam: P2, fuflags: SEND_MESSAGE_TIMEOUT_FLAGS, utimeout: u32, lpdwresult: Option<*mut usize>) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi(), fuflags, utimeout, core::mem::transmute(lpdwresult.unwrap_or(std::ptr::null_mut()))) + SendMessageTimeoutW(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi(), fuflags, utimeout, core::mem::transmute(lpdwresult.unwrap_or(std::ptr::null_mut()))) } #[inline] pub unsafe fn SendMessageW(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> super::super::Foundation::LRESULT where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()) + SendMessageW(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()) } #[inline] pub unsafe fn SendNotifyMessageA(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + SendNotifyMessageA(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } #[inline] pub unsafe fn SendNotifyMessageW(hwnd: P0, msg: u32, wparam: P1, lparam: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hwnd.into_param().abi(), msg, wparam.into_param().abi(), lparam.into_param().abi()).ok() + SendNotifyMessageW(hwnd.param().abi(), msg, wparam.param().abi(), lparam.param().abi()).ok() } #[inline] pub unsafe fn SetAdditionalForegroundBoostProcesses(toplevelwindow: P0, processhandlearray: &[super::super::Foundation::HANDLE]) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(toplevelwindow.into_param().abi(), processhandlearray.len().try_into().unwrap(), core::mem::transmute(processhandlearray.as_ptr())) + SetAdditionalForegroundBoostProcesses(toplevelwindow.param().abi(), processhandlearray.len().try_into().unwrap(), core::mem::transmute(processhandlearray.as_ptr())) } #[inline] pub unsafe fn SetCaretBlinkTime(umseconds: u32) -> windows_core::Result<()> { @@ -2738,60 +2738,60 @@ pub unsafe fn SetCaretPos(x: i32, y: i32) -> windows_core::Result<()> { #[inline] pub unsafe fn SetClassLongA(hwnd: P0, nindex: GET_CLASS_LONG_INDEX, dwnewlong: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetClassLongA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : i32) -> u32); - SetClassLongA(hwnd.into_param().abi(), nindex, dwnewlong) + SetClassLongA(hwnd.param().abi(), nindex, dwnewlong) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn SetClassLongPtrA(hwnd: P0, nindex: GET_CLASS_LONG_INDEX, dwnewlong: isize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetClassLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : isize) -> usize); - SetClassLongPtrA(hwnd.into_param().abi(), nindex, dwnewlong) + SetClassLongPtrA(hwnd.param().abi(), nindex, dwnewlong) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn SetClassLongPtrW(hwnd: P0, nindex: GET_CLASS_LONG_INDEX, dwnewlong: isize) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetClassLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : isize) -> usize); - SetClassLongPtrW(hwnd.into_param().abi(), nindex, dwnewlong) + SetClassLongPtrW(hwnd.param().abi(), nindex, dwnewlong) } #[inline] pub unsafe fn SetClassLongW(hwnd: P0, nindex: GET_CLASS_LONG_INDEX, dwnewlong: i32) -> u32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetClassLongW(hwnd : super::super::Foundation:: HWND, nindex : GET_CLASS_LONG_INDEX, dwnewlong : i32) -> u32); - SetClassLongW(hwnd.into_param().abi(), nindex, dwnewlong) + SetClassLongW(hwnd.param().abi(), nindex, dwnewlong) } #[inline] pub unsafe fn SetClassWord(hwnd: P0, nindex: i32, wnewword: u16) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetClassWord(hwnd : super::super::Foundation:: HWND, nindex : i32, wnewword : u16) -> u16); - SetClassWord(hwnd.into_param().abi(), nindex, wnewword) + SetClassWord(hwnd.param().abi(), nindex, wnewword) } #[inline] pub unsafe fn SetCoalescableTimer(hwnd: P0, nidevent: usize, uelapse: u32, lptimerfunc: TIMERPROC, utolerancedelay: u32) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetCoalescableTimer(hwnd : super::super::Foundation:: HWND, nidevent : usize, uelapse : u32, lptimerfunc : TIMERPROC, utolerancedelay : u32) -> usize); - SetCoalescableTimer(hwnd.into_param().abi(), nidevent, uelapse, lptimerfunc, utolerancedelay) + SetCoalescableTimer(hwnd.param().abi(), nidevent, uelapse, lptimerfunc, utolerancedelay) } #[inline] pub unsafe fn SetCursor(hcursor: P0) -> HCURSOR where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetCursor(hcursor : HCURSOR) -> HCURSOR); - SetCursor(hcursor.into_param().abi()) + SetCursor(hcursor.param().abi()) } #[inline] pub unsafe fn SetCursorPos(x: i32, y: i32) -> windows_core::Result<()> { @@ -2806,111 +2806,111 @@ pub unsafe fn SetDebugErrorLevel(dwlevel: u32) { #[inline] pub unsafe fn SetDlgItemInt(hdlg: P0, niddlgitem: i32, uvalue: u32, bsigned: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hdlg.into_param().abi(), niddlgitem, uvalue, bsigned.into_param().abi()).ok() + SetDlgItemInt(hdlg.param().abi(), niddlgitem, uvalue, bsigned.param().abi()).ok() } #[inline] pub unsafe fn SetDlgItemTextA(hdlg: P0, niddlgitem: i32, lpstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdlg.into_param().abi(), niddlgitem, lpstring.into_param().abi()).ok() + SetDlgItemTextA(hdlg.param().abi(), niddlgitem, lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetDlgItemTextW(hdlg: P0, niddlgitem: i32, lpstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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(hdlg.into_param().abi(), niddlgitem, lpstring.into_param().abi()).ok() + SetDlgItemTextW(hdlg.param().abi(), niddlgitem, lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetForegroundWindow(hwnd: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetForegroundWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - SetForegroundWindow(hwnd.into_param().abi()) + SetForegroundWindow(hwnd.param().abi()) } #[inline] pub unsafe fn SetLayeredWindowAttributes(hwnd: P0, crkey: P1, balpha: u8, dwflags: LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), crkey.into_param().abi(), balpha, dwflags).ok() + SetLayeredWindowAttributes(hwnd.param().abi(), crkey.param().abi(), balpha, dwflags).ok() } #[inline] pub unsafe fn SetMenu(hwnd: P0, hmenu: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetMenu(hwnd : super::super::Foundation:: HWND, hmenu : HMENU) -> super::super::Foundation:: BOOL); - SetMenu(hwnd.into_param().abi(), hmenu.into_param().abi()).ok() + SetMenu(hwnd.param().abi(), hmenu.param().abi()).ok() } #[inline] pub unsafe fn SetMenuDefaultItem(hmenu: P0, uitem: u32, fbypos: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetMenuDefaultItem(hmenu : HMENU, uitem : u32, fbypos : u32) -> super::super::Foundation:: BOOL); - SetMenuDefaultItem(hmenu.into_param().abi(), uitem, fbypos).ok() + SetMenuDefaultItem(hmenu.param().abi(), uitem, fbypos).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuInfo(param0: P0, param1: *const MENUINFO) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetMenuInfo(param0 : HMENU, param1 : *const MENUINFO) -> super::super::Foundation:: BOOL); - SetMenuInfo(param0.into_param().abi(), param1).ok() + SetMenuInfo(param0.param().abi(), param1).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemBitmaps(hmenu: P0, uposition: u32, uflags: MENU_ITEM_FLAGS, hbitmapunchecked: P1, hbitmapchecked: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { 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(hmenu.into_param().abi(), uposition, uflags, hbitmapunchecked.into_param().abi(), hbitmapchecked.into_param().abi()).ok() + SetMenuItemBitmaps(hmenu.param().abi(), uposition, uflags, hbitmapunchecked.param().abi(), hbitmapchecked.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemInfoA(hmenu: P0, item: u32, fbypositon: P1, lpmii: *const MENUITEMINFOA) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), item, fbypositon.into_param().abi(), lpmii).ok() + SetMenuItemInfoA(hmenu.param().abi(), item, fbypositon.param().abi(), lpmii).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemInfoW(hmenu: P0, item: u32, fbypositon: P1, lpmii: *const MENUITEMINFOW) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), item, fbypositon.into_param().abi(), lpmii).ok() + SetMenuItemInfoW(hmenu.param().abi(), item, fbypositon.param().abi(), lpmii).ok() } #[inline] pub unsafe fn SetMessageExtraInfo(lparam: P0) -> super::super::Foundation::LPARAM where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetMessageExtraInfo(lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: LPARAM); - SetMessageExtraInfo(lparam.into_param().abi()) + SetMessageExtraInfo(lparam.param().abi()) } #[inline] pub unsafe fn SetMessageQueue(cmessagesmax: i32) -> super::super::Foundation::BOOL { @@ -2920,11 +2920,11 @@ pub unsafe fn SetMessageQueue(cmessagesmax: i32) -> super::super::Foundation::BO #[inline] pub unsafe fn SetParent(hwndchild: P0, hwndnewparent: P1) -> super::super::Foundation::HWND where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetParent(hwndchild : super::super::Foundation:: HWND, hwndnewparent : super::super::Foundation:: HWND) -> super::super::Foundation:: HWND); - SetParent(hwndchild.into_param().abi(), hwndnewparent.into_param().abi()) + SetParent(hwndchild.param().abi(), hwndnewparent.param().abi()) } #[inline] pub unsafe fn SetPhysicalCursorPos(x: i32, y: i32) -> windows_core::Result<()> { @@ -2944,123 +2944,123 @@ pub unsafe fn SetProcessDefaultLayout(dwdefaultlayout: u32) -> windows_core::Res #[inline] pub unsafe fn SetPropA(hwnd: P0, lpstring: P1, hdata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), lpstring.into_param().abi(), hdata.into_param().abi()).ok() + SetPropA(hwnd.param().abi(), lpstring.param().abi(), hdata.param().abi()).ok() } #[inline] pub unsafe fn SetPropW(hwnd: P0, lpstring: P1, hdata: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwnd.into_param().abi(), lpstring.into_param().abi(), hdata.into_param().abi()).ok() + SetPropW(hwnd.param().abi(), lpstring.param().abi(), hdata.param().abi()).ok() } #[inline] pub unsafe fn SetSystemCursor(hcur: P0, id: SYSTEM_CURSOR_ID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetSystemCursor(hcur : HCURSOR, id : SYSTEM_CURSOR_ID) -> super::super::Foundation:: BOOL); - SetSystemCursor(hcur.into_param().abi(), id).ok() + SetSystemCursor(hcur.param().abi(), id).ok() } #[inline] pub unsafe fn SetTimer(hwnd: P0, nidevent: usize, uelapse: u32, lptimerfunc: TIMERPROC) -> usize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetTimer(hwnd : super::super::Foundation:: HWND, nidevent : usize, uelapse : u32, lptimerfunc : TIMERPROC) -> usize); - SetTimer(hwnd.into_param().abi(), nidevent, uelapse, lptimerfunc) + SetTimer(hwnd.param().abi(), nidevent, uelapse, lptimerfunc) } #[inline] pub unsafe fn SetWindowDisplayAffinity(hwnd: P0, dwaffinity: WINDOW_DISPLAY_AFFINITY) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, dwaffinity : WINDOW_DISPLAY_AFFINITY) -> super::super::Foundation:: BOOL); - SetWindowDisplayAffinity(hwnd.into_param().abi(), dwaffinity).ok() + SetWindowDisplayAffinity(hwnd.param().abi(), dwaffinity).ok() } #[inline] pub unsafe fn SetWindowLongA(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowLongA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : i32) -> i32); - SetWindowLongA(hwnd.into_param().abi(), nindex, dwnewlong) + SetWindowLongA(hwnd.param().abi(), nindex, dwnewlong) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn SetWindowLongPtrA(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: isize) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowLongPtrA(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : isize) -> isize); - SetWindowLongPtrA(hwnd.into_param().abi(), nindex, dwnewlong) + SetWindowLongPtrA(hwnd.param().abi(), nindex, dwnewlong) } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] pub unsafe fn SetWindowLongPtrW(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: isize) -> isize where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowLongPtrW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : isize) -> isize); - SetWindowLongPtrW(hwnd.into_param().abi(), nindex, dwnewlong) + SetWindowLongPtrW(hwnd.param().abi(), nindex, dwnewlong) } #[inline] pub unsafe fn SetWindowLongW(hwnd: P0, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowLongW(hwnd : super::super::Foundation:: HWND, nindex : WINDOW_LONG_PTR_INDEX, dwnewlong : i32) -> i32); - SetWindowLongW(hwnd.into_param().abi(), nindex, dwnewlong) + SetWindowLongW(hwnd.param().abi(), nindex, dwnewlong) } #[inline] pub unsafe fn SetWindowPlacement(hwnd: P0, lpwndpl: *const WINDOWPLACEMENT) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *const WINDOWPLACEMENT) -> super::super::Foundation:: BOOL); - SetWindowPlacement(hwnd.into_param().abi(), lpwndpl).ok() + SetWindowPlacement(hwnd.param().abi(), lpwndpl).ok() } #[inline] pub unsafe fn SetWindowPos(hwnd: P0, hwndinsertafter: P1, x: i32, y: i32, cx: i32, cy: i32, uflags: SET_WINDOW_POS_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hwnd.into_param().abi(), hwndinsertafter.into_param().abi(), x, y, cx, cy, uflags).ok() + SetWindowPos(hwnd.param().abi(), hwndinsertafter.param().abi(), x, y, cx, cy, uflags).ok() } #[inline] pub unsafe fn SetWindowTextA(hwnd: P0, lpstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), lpstring.into_param().abi()).ok() + SetWindowTextA(hwnd.param().abi(), lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetWindowTextW(hwnd: P0, lpstring: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hwnd.into_param().abi(), lpstring.into_param().abi()).ok() + SetWindowTextW(hwnd.param().abi(), lpstring.param().abi()).ok() } #[inline] pub unsafe fn SetWindowWord(hwnd: P0, nindex: i32, wnewword: u16) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SetWindowWord(hwnd : super::super::Foundation:: HWND, nindex : i32, wnewword : u16) -> u16); - SetWindowWord(hwnd.into_param().abi(), nindex, wnewword) + SetWindowWord(hwnd.param().abi(), nindex, wnewword) } #[inline] pub unsafe fn SetWindowsHookA(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOOK { @@ -3070,19 +3070,19 @@ pub unsafe fn SetWindowsHookA(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOO #[inline] pub unsafe fn SetWindowsHookExA(idhook: WINDOWS_HOOK_ID, lpfn: HOOKPROC, hmod: P0, dwthreadid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(idhook, lpfn, hmod.into_param().abi(), dwthreadid); + let result__ = SetWindowsHookExA(idhook, lpfn, hmod.param().abi(), dwthreadid); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetWindowsHookExW(idhook: WINDOWS_HOOK_ID, lpfn: HOOKPROC, hmod: P0, dwthreadid: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(idhook, lpfn, hmod.into_param().abi(), dwthreadid); + let result__ = SetWindowsHookExW(idhook, lpfn, hmod.param().abi(), dwthreadid); (!result__.is_invalid()).then(|| result__).ok_or_else(windows_core::Error::from_win32) } #[inline] @@ -3093,43 +3093,43 @@ pub unsafe fn SetWindowsHookW(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOO #[inline] pub unsafe fn ShowCaret(hwnd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ShowCaret(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); - ShowCaret(hwnd.into_param().abi()).ok() + ShowCaret(hwnd.param().abi()).ok() } #[inline] pub unsafe fn ShowCursor(bshow: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ShowCursor(bshow : super::super::Foundation:: BOOL) -> i32); - ShowCursor(bshow.into_param().abi()) + ShowCursor(bshow.param().abi()) } #[inline] pub unsafe fn ShowOwnedPopups(hwnd: P0, fshow: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ShowOwnedPopups(hwnd : super::super::Foundation:: HWND, fshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); - ShowOwnedPopups(hwnd.into_param().abi(), fshow.into_param().abi()).ok() + ShowOwnedPopups(hwnd.param().abi(), fshow.param().abi()).ok() } #[inline] pub unsafe fn ShowWindow(hwnd: P0, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ShowWindow(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> super::super::Foundation:: BOOL); - ShowWindow(hwnd.into_param().abi(), ncmdshow) + ShowWindow(hwnd.param().abi(), ncmdshow) } #[inline] pub unsafe fn ShowWindowAsync(hwnd: P0, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn ShowWindowAsync(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> super::super::Foundation:: BOOL); - ShowWindowAsync(hwnd.into_param().abi(), ncmdshow) + ShowWindowAsync(hwnd.param().abi(), ncmdshow) } #[inline] pub unsafe fn SoundSentry() -> super::super::Foundation::BOOL { @@ -3139,11 +3139,11 @@ pub unsafe fn SoundSentry() -> super::super::Foundation::BOOL { #[inline] pub unsafe fn SwitchToThisWindow(hwnd: P0, funknown: P1) where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn SwitchToThisWindow(hwnd : super::super::Foundation:: HWND, funknown : super::super::Foundation:: BOOL)); - SwitchToThisWindow(hwnd.into_param().abi(), funknown.into_param().abi()) + SwitchToThisWindow(hwnd.param().abi(), funknown.param().abi()) } #[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<()> { @@ -3158,54 +3158,54 @@ pub unsafe fn SystemParametersInfoW(uiaction: SYSTEM_PARAMETERS_INFO_ACTION, uip #[inline] pub unsafe fn TileWindows(hwndparent: P0, whow: TILE_WINDOWS_HOW, lprect: Option<*const super::super::Foundation::RECT>, lpkids: Option<&[super::super::Foundation::HWND]>) -> u16 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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(hwndparent.into_param().abi(), whow, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), 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(hwndparent.param().abi(), whow, core::mem::transmute(lprect.unwrap_or(std::ptr::null())), 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: P0, uflags: TRACK_POPUP_MENU_FLAGS, x: i32, y: i32, nreserved: i32, hwnd: P1, prcrect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), uflags, x, y, nreserved, hwnd.into_param().abi(), core::mem::transmute(prcrect.unwrap_or(std::ptr::null()))) + TrackPopupMenu(hmenu.param().abi(), uflags, x, y, nreserved, hwnd.param().abi(), core::mem::transmute(prcrect.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TrackPopupMenuEx(hmenu: P0, uflags: u32, x: i32, y: i32, hwnd: P1, lptpm: Option<*const TPMPARAMS>) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { 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(hmenu.into_param().abi(), uflags, x, y, hwnd.into_param().abi(), core::mem::transmute(lptpm.unwrap_or(std::ptr::null()))) + TrackPopupMenuEx(hmenu.param().abi(), uflags, x, y, hwnd.param().abi(), core::mem::transmute(lptpm.unwrap_or(std::ptr::null()))) } #[inline] pub unsafe fn TranslateAcceleratorA(hwnd: P0, hacctable: P1, lpmsg: *const MSG) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn TranslateAcceleratorA(hwnd : super::super::Foundation:: HWND, hacctable : HACCEL, lpmsg : *const MSG) -> i32); - TranslateAcceleratorA(hwnd.into_param().abi(), hacctable.into_param().abi(), lpmsg) + TranslateAcceleratorA(hwnd.param().abi(), hacctable.param().abi(), lpmsg) } #[inline] pub unsafe fn TranslateAcceleratorW(hwnd: P0, hacctable: P1, lpmsg: *const MSG) -> i32 where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn TranslateAcceleratorW(hwnd : super::super::Foundation:: HWND, hacctable : HACCEL, lpmsg : *const MSG) -> i32); - TranslateAcceleratorW(hwnd.into_param().abi(), hacctable.into_param().abi(), lpmsg) + TranslateAcceleratorW(hwnd.param().abi(), hacctable.param().abi(), lpmsg) } #[inline] pub unsafe fn TranslateMDISysAccel(hwndclient: P0, lpmsg: *const MSG) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn TranslateMDISysAccel(hwndclient : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); - TranslateMDISysAccel(hwndclient.into_param().abi(), lpmsg) + TranslateMDISysAccel(hwndclient.param().abi(), lpmsg) } #[inline] pub unsafe fn TranslateMessage(lpmsg: *const MSG) -> super::super::Foundation::BOOL { @@ -3220,57 +3220,57 @@ pub unsafe fn UnhookWindowsHook(ncode: i32, pfnfilterproc: HOOKPROC) -> super::s #[inline] pub unsafe fn UnhookWindowsHookEx(hhk: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnhookWindowsHookEx(hhk : HHOOK) -> super::super::Foundation:: BOOL); - UnhookWindowsHookEx(hhk.into_param().abi()).ok() + UnhookWindowsHookEx(hhk.param().abi()).ok() } #[inline] pub unsafe fn UnregisterClassA(lpclassname: P0, hinstance: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterClassA(lpclassname : windows_core::PCSTR, hinstance : super::super::Foundation:: HINSTANCE) -> super::super::Foundation:: BOOL); - UnregisterClassA(lpclassname.into_param().abi(), hinstance.into_param().abi()).ok() + UnregisterClassA(lpclassname.param().abi(), hinstance.param().abi()).ok() } #[inline] pub unsafe fn UnregisterClassW(lpclassname: P0, hinstance: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterClassW(lpclassname : windows_core::PCWSTR, hinstance : super::super::Foundation:: HINSTANCE) -> super::super::Foundation:: BOOL); - UnregisterClassW(lpclassname.into_param().abi(), hinstance.into_param().abi()).ok() + UnregisterClassW(lpclassname.param().abi(), hinstance.param().abi()).ok() } #[inline] pub unsafe fn UnregisterDeviceNotification(handle: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UnregisterDeviceNotification(handle : HDEVNOTIFY) -> super::super::Foundation:: BOOL); - UnregisterDeviceNotification(handle.into_param().abi()).ok() + UnregisterDeviceNotification(handle.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn UpdateLayeredWindow(hwnd: P0, hdcdst: P1, pptdst: Option<*const super::super::Foundation::POINT>, psize: Option<*const super::super::Foundation::SIZE>, hdcsrc: P2, pptsrc: Option<*const super::super::Foundation::POINT>, crkey: P3, pblend: Option<*const super::super::Graphics::Gdi::BLENDFUNCTION>, dwflags: UPDATE_LAYERED_WINDOW_FLAGS) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { 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(hwnd.into_param().abi(), hdcdst.into_param().abi(), core::mem::transmute(pptdst.unwrap_or(std::ptr::null())), core::mem::transmute(psize.unwrap_or(std::ptr::null())), hdcsrc.into_param().abi(), core::mem::transmute(pptsrc.unwrap_or(std::ptr::null())), crkey.into_param().abi(), core::mem::transmute(pblend.unwrap_or(std::ptr::null())), dwflags).ok() + UpdateLayeredWindow(hwnd.param().abi(), hdcdst.param().abi(), core::mem::transmute(pptdst.unwrap_or(std::ptr::null())), core::mem::transmute(psize.unwrap_or(std::ptr::null())), hdcsrc.param().abi(), core::mem::transmute(pptsrc.unwrap_or(std::ptr::null())), crkey.param().abi(), core::mem::transmute(pblend.unwrap_or(std::ptr::null())), dwflags).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn UpdateLayeredWindowIndirect(hwnd: P0, pulwinfo: *const UPDATELAYEREDWINDOWINFO) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "system" fn UpdateLayeredWindowIndirect(hwnd : super::super::Foundation:: HWND, pulwinfo : *const UPDATELAYEREDWINDOWINFO) -> super::super::Foundation:: BOOL); - UpdateLayeredWindowIndirect(hwnd.into_param().abi(), pulwinfo) + UpdateLayeredWindowIndirect(hwnd.param().abi(), pulwinfo) } #[inline] pub unsafe fn WaitMessage() -> windows_core::Result<()> { @@ -3290,34 +3290,34 @@ pub unsafe fn WindowFromPoint(point: super::super::Foundation::POINT) -> super:: #[inline] pub unsafe fn wsprintfA(param0: windows_core::PSTR, param1: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "cdecl" fn wsprintfA(param0 : windows_core::PSTR, param1 : windows_core::PCSTR) -> i32); - wsprintfA(core::mem::transmute(param0), param1.into_param().abi()) + wsprintfA(core::mem::transmute(param0), param1.param().abi()) } #[inline] pub unsafe fn wsprintfW(param0: windows_core::PWSTR, param1: P0) -> i32 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("user32.dll" "cdecl" fn wsprintfW(param0 : windows_core::PWSTR, param1 : windows_core::PCWSTR) -> i32); - wsprintfW(core::mem::transmute(param0), param1.into_param().abi()) + wsprintfW(core::mem::transmute(param0), param1.param().abi()) } #[inline] pub unsafe fn wvsprintfA(param0: windows_core::PSTR, param1: P0, arglist: *const i8) -> i32 where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), arglist) + wvsprintfA(core::mem::transmute(param0), param1.param().abi(), arglist) } #[inline] pub unsafe fn wvsprintfW(param0: windows_core::PWSTR, param1: P0, arglist: *const i8) -> i32 where - P0: windows_core::IntoParam, + P0: 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.into_param().abi(), arglist) + wvsprintfW(core::mem::transmute(param0), param1.param().abi(), arglist) } pub const ARW_BOTTOMLEFT: MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE(0i32); pub const ARW_BOTTOMRIGHT: MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE(1i32); 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 096a9f1347..322017b52e 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs @@ -4,10 +4,10 @@ impl IMILBitmapEffect { #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetOutput(&self, uiindex: u32, pcontext: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), uiindex, pcontext.into_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__ = std::mem::zeroed(); @@ -16,9 +16,9 @@ impl IMILBitmapEffect { #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn SetInputSource(&self, uiindex: u32, pbitmapsource: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetInputSource)(windows_core::Interface::as_raw(self), uiindex, pbitmapsource.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetInputSource)(windows_core::Interface::as_raw(self), uiindex, pbitmapsource.param().abi()).ok() } } #[repr(C)] @@ -147,16 +147,16 @@ windows_core::imp::interface_hierarchy!(IMILBitmapEffectEvents, windows_core::IU impl IMILBitmapEffectEvents { pub unsafe fn PropertyChange(&self, peffect: P0, bstrpropertyname: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).PropertyChange)(windows_core::Interface::as_raw(self), peffect.into_param().abi(), bstrpropertyname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).PropertyChange)(windows_core::Interface::as_raw(self), peffect.param().abi(), bstrpropertyname.param().abi()).ok() } pub unsafe fn DirtyRegion(&self, peffect: P0, prect: *const MilRectD) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DirtyRegion)(windows_core::Interface::as_raw(self), peffect.into_param().abi(), prect).ok() + (windows_core::Interface::vtable(self).DirtyRegion)(windows_core::Interface::as_raw(self), peffect.param().abi(), prect).ok() } } #[repr(C)] @@ -201,9 +201,9 @@ impl IMILBitmapEffectGroup { } pub unsafe fn Add(&self, peffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), peffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Add)(windows_core::Interface::as_raw(self), peffect.param().abi()).ok() } } #[repr(C)] @@ -218,9 +218,9 @@ windows_core::imp::interface_hierarchy!(IMILBitmapEffectGroupImpl, windows_core: impl IMILBitmapEffectGroupImpl { pub unsafe fn Preprocess(&self, pcontext: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Preprocess)(windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Preprocess)(windows_core::Interface::as_raw(self), pcontext.param().abi()).ok() } pub unsafe fn GetNumberChildren(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -243,16 +243,16 @@ windows_core::imp::interface_hierarchy!(IMILBitmapEffectImpl, windows_core::IUnk impl IMILBitmapEffectImpl { pub unsafe fn IsInPlaceModificationAllowed(&self, poutputconnector: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsInPlaceModificationAllowed)(windows_core::Interface::as_raw(self), poutputconnector.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsInPlaceModificationAllowed)(windows_core::Interface::as_raw(self), poutputconnector.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetParentEffect(&self, pparenteffect: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetParentEffect)(windows_core::Interface::as_raw(self), pparenteffect.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetParentEffect)(windows_core::Interface::as_raw(self), pparenteffect.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetInputSource(&self, uiindex: u32) -> windows_core::Result { @@ -265,24 +265,24 @@ impl IMILBitmapEffectImpl { #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetInputBitmapSource(&self, uiindex: u32, prendercontext: P0, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetInputBitmapSource)(windows_core::Interface::as_raw(self), uiindex, prendercontext.into_param().abi(), 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(), pfmodifyinplace, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetOutputBitmapSource(&self, uiindex: u32, prendercontext: P0, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutputBitmapSource)(windows_core::Interface::as_raw(self), uiindex, prendercontext.into_param().abi(), 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(), pfmodifyinplace, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn Initialize(&self, pinner: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pinner.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pinner.param().abi()).ok() } } #[repr(C)] @@ -334,9 +334,9 @@ impl IMILBitmapEffectInputConnector { } pub unsafe fn ConnectTo(&self, pconnector: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ConnectTo)(windows_core::Interface::as_raw(self), pconnector.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ConnectTo)(windows_core::Interface::as_raw(self), pconnector.param().abi()).ok() } pub unsafe fn GetConnection(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -422,15 +422,15 @@ windows_core::imp::interface_hierarchy!(IMILBitmapEffectOutputConnectorImpl, win impl IMILBitmapEffectOutputConnectorImpl { pub unsafe fn AddBackLink(&self, pconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddBackLink)(windows_core::Interface::as_raw(self), pconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddBackLink)(windows_core::Interface::as_raw(self), pconnection.param().abi()).ok() } pub unsafe fn RemoveBackLink(&self, pconnection: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RemoveBackLink)(windows_core::Interface::as_raw(self), pconnection.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RemoveBackLink)(windows_core::Interface::as_raw(self), pconnection.param().abi()).ok() } } #[repr(C)] @@ -445,24 +445,24 @@ impl IMILBitmapEffectPrimitive { #[cfg(feature = "Win32_Graphics_Imaging")] pub unsafe fn GetOutput(&self, uiindex: u32, pcontext: P0, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetOutput)(windows_core::Interface::as_raw(self), uiindex, pcontext.into_param().abi(), 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(), pfmodifyinplace, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn TransformPoint(&self, uiindex: u32, p: *mut MilPoint2D, fforwardtransform: P0, pcontext: P1, pfpointtransformed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TransformPoint)(windows_core::Interface::as_raw(self), uiindex, p, fforwardtransform.into_param().abi(), pcontext.into_param().abi(), pfpointtransformed).ok() + (windows_core::Interface::vtable(self).TransformPoint)(windows_core::Interface::as_raw(self), uiindex, p, fforwardtransform.param().abi(), pcontext.param().abi(), pfpointtransformed).ok() } pub unsafe fn TransformRect(&self, uiindex: u32, p: *mut MilRectD, fforwardtransform: P0, pcontext: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).TransformRect)(windows_core::Interface::as_raw(self), uiindex, p, fforwardtransform.into_param().abi(), pcontext.into_param().abi()).ok() + (windows_core::Interface::vtable(self).TransformRect)(windows_core::Interface::as_raw(self), uiindex, p, fforwardtransform.param().abi(), pcontext.param().abi()).ok() } pub unsafe fn HasAffineTransform(&self, uiindex: u32) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -522,9 +522,9 @@ impl IMILBitmapEffectRenderContext { } pub unsafe fn SetUseSoftwareRenderer(&self, fsoftware: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetUseSoftwareRenderer)(windows_core::Interface::as_raw(self), fsoftware.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetUseSoftwareRenderer)(windows_core::Interface::as_raw(self), fsoftware.param().abi()).ok() } pub unsafe fn SetInitialTransform(&self, pmatrix: *const MILMatrixF) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetInitialTransform)(windows_core::Interface::as_raw(self), pmatrix).ok() 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 b9e6d69d84..70e36f3a38 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs @@ -8,11 +8,11 @@ pub unsafe fn ComputeInvCMAP(prgbcolors: *const super::super::Graphics::Gdi::RGB #[inline] pub unsafe fn CreateDDrawSurfaceOnDIB(hbmdib: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { 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__ = std::mem::zeroed(); - CreateDDrawSurfaceOnDIB(hbmdib.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + CreateDDrawSurfaceOnDIB(hbmdib.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } #[inline] pub unsafe fn CreateMIMEMap() -> windows_core::Result { @@ -24,24 +24,24 @@ pub unsafe fn CreateMIMEMap() -> windows_core::Result { #[inline] pub unsafe fn DecodeImage(pstream: P0, pmap: P1, peventsink: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("imgutil.dll" "system" fn DecodeImage(pstream : * mut core::ffi::c_void, pmap : * mut core::ffi::c_void, peventsink : * mut core::ffi::c_void) -> windows_core::HRESULT); - DecodeImage(pstream.into_param().abi(), pmap.into_param().abi(), peventsink.into_param().abi()).ok() + DecodeImage(pstream.param().abi(), pmap.param().abi(), peventsink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn DecodeImageEx(pstream: P0, pmap: P1, peventsink: P2, pszmimetypeparam: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { windows_targets::link!("imgutil.dll" "system" fn DecodeImageEx(pstream : * mut core::ffi::c_void, pmap : * mut core::ffi::c_void, peventsink : * mut core::ffi::c_void, pszmimetypeparam : windows_core::PCWSTR) -> windows_core::HRESULT); - DecodeImageEx(pstream.into_param().abi(), pmap.into_param().abi(), peventsink.into_param().abi(), pszmimetypeparam.into_param().abi()).ok() + DecodeImageEx(pstream.param().abi(), pmap.param().abi(), peventsink.param().abi(), pszmimetypeparam.param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] @@ -62,37 +62,37 @@ pub unsafe fn IEAssociateThreadWithTab(dwtabthreadid: u32, dwassociatedthreadid: #[inline] pub unsafe fn IECancelSaveFile(hstate: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IECancelSaveFile(hstate : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - IECancelSaveFile(hstate.into_param().abi()).ok() + IECancelSaveFile(hstate.param().abi()).ok() } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IECreateDirectory(lppathname: P0, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpsecurityattributes) + IECreateDirectory(lppathname.param().abi(), lpsecurityattributes) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn IECreateFile(lpfilename: P0, dwdesiredaccess: u32, dwsharemode: u32, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwcreationdisposition: u32, dwflagsandattributes: u32, htemplatefile: P1) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), dwdesiredaccess, dwsharemode, lpsecurityattributes, dwcreationdisposition, dwflagsandattributes, htemplatefile.into_param().abi()) + IECreateFile(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, lpsecurityattributes, dwcreationdisposition, dwflagsandattributes, htemplatefile.param().abi()) } #[inline] pub unsafe fn IEDeleteFile(lpfilename: P0) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEDeleteFile(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - IEDeleteFile(lpfilename.into_param().abi()) + IEDeleteFile(lpfilename.param().abi()) } #[inline] pub unsafe fn IEDisassociateThreadWithTab(dwtabthreadid: u32, dwassociatedthreadid: u32) -> windows_core::Result<()> { @@ -103,28 +103,28 @@ pub unsafe fn IEDisassociateThreadWithTab(dwtabthreadid: u32, dwassociatedthread #[inline] pub unsafe fn IEFindFirstFile(lpfilename: P0, lpfindfiledata: *const super::super::Storage::FileSystem::WIN32_FIND_DATAA) -> super::super::Foundation::HANDLE where - P0: windows_core::IntoParam, + 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.into_param().abi(), lpfindfiledata) + IEFindFirstFile(lpfilename.param().abi(), lpfindfiledata) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] pub unsafe fn IEGetFileAttributesEx(lpfilename: P0, finfolevelid: super::super::Storage::FileSystem::GET_FILEEX_INFO_LEVELS, lpfileinformation: *const core::ffi::c_void) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, + 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.into_param().abi(), finfolevelid, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpszcookiename.into_param().abi(), core::mem::transmute(lpszcookiedata), pcchcookiedata, dwflags).ok() + IEGetProtectedModeCookie(lpszurl.param().abi(), lpszcookiename.param().abi(), core::mem::transmute(lpszcookiedata), pcchcookiedata, dwflags).ok() } #[inline] pub unsafe fn IEGetWriteableFolderPath(clsidfolderid: *const windows_core::GUID) -> windows_core::Result { @@ -158,28 +158,28 @@ pub unsafe fn IEIsProtectedModeProcess() -> windows_core::Result(lpwstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IEIsProtectedModeURL(lpwstrurl : windows_core::PCWSTR) -> windows_core::HRESULT); - IEIsProtectedModeURL(lpwstrurl.into_param().abi()).ok() + IEIsProtectedModeURL(lpwstrurl.param().abi()).ok() } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn IELaunchURL(lpwstrurl: P0, lpprocinfo: *mut super::super::System::Threading::PROCESS_INFORMATION, lpinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IELaunchURL(lpwstrurl : windows_core::PCWSTR, lpprocinfo : *mut super::super::System::Threading:: PROCESS_INFORMATION, lpinfo : *const core::ffi::c_void) -> windows_core::HRESULT); - IELaunchURL(lpwstrurl.into_param().abi(), lpprocinfo, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null()))).ok() + IELaunchURL(lpwstrurl.param().abi(), lpprocinfo, core::mem::transmute(lpinfo.unwrap_or(std::ptr::null()))).ok() } #[inline] pub unsafe fn IEMoveFileEx(lpexistingfilename: P0, lpnewfilename: P1, dwflags: u32) -> super::super::Foundation::BOOL where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpnewfilename.into_param().abi(), dwflags) + IEMoveFileEx(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags) } #[inline] pub unsafe fn IERefreshElevationPolicy() -> windows_core::Result<()> { @@ -190,88 +190,88 @@ pub unsafe fn IERefreshElevationPolicy() -> windows_core::Result<()> { #[inline] pub unsafe fn IERegCreateKeyEx(lpsubkey: P0, reserved: u32, lpclass: P1, dwoptions: u32, samdesired: u32, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, phkresult: *mut super::super::System::Registry::HKEY, lpdwdisposition: *mut u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), reserved, lpclass.into_param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, lpdwdisposition).ok() + IERegCreateKeyEx(lpsubkey.param().abi(), reserved, lpclass.param().abi(), dwoptions, samdesired, core::mem::transmute(lpsecurityattributes.unwrap_or(std::ptr::null())), phkresult, lpdwdisposition).ok() } #[inline] pub unsafe fn IERegSetValueEx(lpsubkey: P0, lpvaluename: P1, reserved: u32, dwtype: u32, lpdata: &[u8]) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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.into_param().abi(), lpvaluename.into_param().abi(), reserved, 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: P0, fsubkeyallowed: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IERegisterWritableRegistryKey(guid : windows_core::GUID, lpsubkey : windows_core::PCWSTR, fsubkeyallowed : super::super::Foundation:: BOOL) -> windows_core::HRESULT); - IERegisterWritableRegistryKey(core::mem::transmute(guid), lpsubkey.into_param().abi(), fsubkeyallowed.into_param().abi()).ok() + IERegisterWritableRegistryKey(core::mem::transmute(guid), lpsubkey.param().abi(), fsubkeyallowed.param().abi()).ok() } #[inline] pub unsafe fn IERegisterWritableRegistryValue(guid: windows_core::GUID, lppath: P0, lpvaluename: P1, dwtype: u32, lpdata: Option<&[u8]>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: 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.into_param().abi(), lpvaluename.into_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() + 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 where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("ieframe.dll" "system" fn IERemoveDirectory(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); - IERemoveDirectory(lppathname.into_param().abi()) + IERemoveDirectory(lppathname.param().abi()) } #[inline] pub unsafe fn IESaveFile(hstate: P0, lpwstrsourcefile: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hstate.into_param().abi(), lpwstrsourcefile.into_param().abi()).ok() + IESaveFile(hstate.param().abi(), lpwstrsourcefile.param().abi()).ok() } #[inline] pub unsafe fn IESetProtectedModeCookie(lpszurl: P0, lpszcookiename: P1, lpszcookiedata: P2, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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.into_param().abi(), lpszcookiename.into_param().abi(), lpszcookiedata.into_param().abi(), dwflags).ok() + IESetProtectedModeCookie(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), dwflags).ok() } #[inline] pub unsafe fn IEShowOpenFileDialog(hwnd: P0, lpwstrfilename: &mut [u16], lpwstrinitialdir: P1, lpwstrfilter: P2, lpwstrdefext: P3, dwfilterindex: u32, dwflags: u32, phfile: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: 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(hwnd.into_param().abi(), core::mem::transmute(lpwstrfilename.as_ptr()), lpwstrfilename.len().try_into().unwrap(), lpwstrinitialdir.into_param().abi(), lpwstrfilter.into_param().abi(), lpwstrdefext.into_param().abi(), dwfilterindex, dwflags, phfile).ok() + IEShowOpenFileDialog(hwnd.param().abi(), core::mem::transmute(lpwstrfilename.as_ptr()), lpwstrfilename.len().try_into().unwrap(), lpwstrinitialdir.param().abi(), lpwstrfilter.param().abi(), lpwstrdefext.param().abi(), dwfilterindex, dwflags, phfile).ok() } #[inline] pub unsafe fn IEShowSaveFileDialog(hwnd: P0, 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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + 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(hwnd.into_param().abi(), lpwstrinitialfilename.into_param().abi(), lpwstrinitialdir.into_param().abi(), lpwstrfilter.into_param().abi(), lpwstrdefext.into_param().abi(), dwfilterindex, dwflags, lppwstrdestinationfilepath, phstate).ok() + IEShowSaveFileDialog(hwnd.param().abi(), lpwstrinitialfilename.param().abi(), lpwstrinitialdir.param().abi(), lpwstrfilter.param().abi(), lpwstrdefext.param().abi(), dwfilterindex, dwflags, lppwstrdestinationfilepath, phstate).ok() } #[inline] pub unsafe fn IETrackingProtectionEnabled() -> super::super::Foundation::BOOL { @@ -291,112 +291,112 @@ pub unsafe fn IdentifyMIMEType(pbbytes: *const u8, nbytes: u32, pnformat: *mut u #[inline] pub unsafe fn RatingAccessDeniedDialog(hdlg: P0, pszusername: P1, pszcontentdescription: P2, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hdlg.into_param().abi(), pszusername.into_param().abi(), pszcontentdescription.into_param().abi(), pratingdetails).ok() + RatingAccessDeniedDialog(hdlg.param().abi(), pszusername.param().abi(), pszcontentdescription.param().abi(), pratingdetails).ok() } #[inline] pub unsafe fn RatingAccessDeniedDialog2(hdlg: P0, pszusername: P1, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdlg.into_param().abi(), pszusername.into_param().abi(), pratingdetails).ok() + RatingAccessDeniedDialog2(hdlg.param().abi(), pszusername.param().abi(), pratingdetails).ok() } #[inline] pub unsafe fn RatingAccessDeniedDialog2W(hdlg: P0, pszusername: P1, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdlg.into_param().abi(), pszusername.into_param().abi(), pratingdetails).ok() + RatingAccessDeniedDialog2W(hdlg.param().abi(), pszusername.param().abi(), pratingdetails).ok() } #[inline] pub unsafe fn RatingAccessDeniedDialogW(hdlg: P0, pszusername: P1, pszcontentdescription: P2, pratingdetails: *mut core::ffi::c_void) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hdlg.into_param().abi(), pszusername.into_param().abi(), pszcontentdescription.into_param().abi(), pratingdetails).ok() + RatingAccessDeniedDialogW(hdlg.param().abi(), pszusername.param().abi(), pszcontentdescription.param().abi(), pratingdetails).ok() } #[inline] pub unsafe fn RatingAddToApprovedSites(hdlg: P0, pbpasswordblob: &mut [u8], lpszurl: P1, falwaysnever: P2, fsitepage: P3, fapprovedsitesenforced: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: 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(hdlg.into_param().abi(), pbpasswordblob.len().try_into().unwrap(), core::mem::transmute(pbpasswordblob.as_ptr()), lpszurl.into_param().abi(), falwaysnever.into_param().abi(), fsitepage.into_param().abi(), fapprovedsitesenforced.into_param().abi()).ok() + RatingAddToApprovedSites(hdlg.param().abi(), pbpasswordblob.len().try_into().unwrap(), core::mem::transmute(pbpasswordblob.as_ptr()), lpszurl.param().abi(), falwaysnever.param().abi(), fsitepage.param().abi(), fapprovedsitesenforced.param().abi()).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<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingCheckUserAccess(pszusername : windows_core::PCSTR, pszurl : windows_core::PCSTR, pszratinginfo : windows_core::PCSTR, pdata : *const u8, cbdata : u32, ppratingdetails : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - RatingCheckUserAccess(pszusername.into_param().abi(), pszurl.into_param().abi(), pszratinginfo.into_param().abi(), 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(ppratingdetails.unwrap_or(std::ptr::null_mut()))).ok() + RatingCheckUserAccess(pszusername.param().abi(), pszurl.param().abi(), pszratinginfo.param().abi(), 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(ppratingdetails.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RatingCheckUserAccessW(pszusername: P0, pszurl: P1, pszratinginfo: P2, pdata: Option<&[u8]>, ppratingdetails: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingCheckUserAccessW(pszusername : windows_core::PCWSTR, pszurl : windows_core::PCWSTR, pszratinginfo : windows_core::PCWSTR, pdata : *const u8, cbdata : u32, ppratingdetails : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); - RatingCheckUserAccessW(pszusername.into_param().abi(), pszurl.into_param().abi(), pszratinginfo.into_param().abi(), 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(ppratingdetails.unwrap_or(std::ptr::null_mut()))).ok() + RatingCheckUserAccessW(pszusername.param().abi(), pszurl.param().abi(), pszratinginfo.param().abi(), 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(ppratingdetails.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RatingClickedOnPRFInternal(hwndowner: P0, param1: P1, lpszfilename: P2, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwndowner.into_param().abi(), param1.into_param().abi(), lpszfilename.into_param().abi(), nshow).ok() + RatingClickedOnPRFInternal(hwndowner.param().abi(), param1.param().abi(), lpszfilename.param().abi(), nshow).ok() } #[inline] pub unsafe fn RatingClickedOnRATInternal(hwndowner: P0, param1: P1, lpszfilename: P2, nshow: i32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + 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(hwndowner.into_param().abi(), param1.into_param().abi(), lpszfilename.into_param().abi(), nshow).ok() + RatingClickedOnRATInternal(hwndowner.param().abi(), param1.param().abi(), lpszfilename.param().abi(), nshow).ok() } #[inline] pub unsafe fn RatingEnable(hwndparent: P0, pszusername: P1, fenable: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwndparent.into_param().abi(), pszusername.into_param().abi(), fenable.into_param().abi()).ok() + RatingEnable(hwndparent.param().abi(), pszusername.param().abi(), fenable.param().abi()).ok() } #[inline] pub unsafe fn RatingEnableW(hwndparent: P0, pszusername: P1, fenable: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: 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(hwndparent.into_param().abi(), pszusername.into_param().abi(), fenable.into_param().abi()).ok() + RatingEnableW(hwndparent.param().abi(), pszusername.param().abi(), fenable.param().abi()).ok() } #[inline] pub unsafe fn RatingEnabledQuery() -> windows_core::Result<()> { @@ -416,53 +416,53 @@ pub unsafe fn RatingInit() -> windows_core::Result<()> { #[inline] pub unsafe fn RatingObtainCancel(hratingobtainquery: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("msrating.dll" "system" fn RatingObtainCancel(hratingobtainquery : super::super::Foundation:: HANDLE) -> windows_core::HRESULT); - RatingObtainCancel(hratingobtainquery.into_param().abi()).ok() + RatingObtainCancel(hratingobtainquery.param().abi()).ok() } #[inline] pub unsafe fn RatingObtainQuery(psztargeturl: P0, dwuserdata: u32, fcallback: isize, phratingobtainquery: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwuserdata, fcallback, core::mem::transmute(phratingobtainquery.unwrap_or(std::ptr::null_mut()))).ok() + RatingObtainQuery(psztargeturl.param().abi(), dwuserdata, fcallback, core::mem::transmute(phratingobtainquery.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RatingObtainQueryW(psztargeturl: P0, dwuserdata: u32, fcallback: isize, phratingobtainquery: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + 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.into_param().abi(), dwuserdata, fcallback, core::mem::transmute(phratingobtainquery.unwrap_or(std::ptr::null_mut()))).ok() + RatingObtainQueryW(psztargeturl.param().abi(), dwuserdata, fcallback, core::mem::transmute(phratingobtainquery.unwrap_or(std::ptr::null_mut()))).ok() } #[inline] pub unsafe fn RatingSetupUI(hdlg: P0, pszusername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdlg.into_param().abi(), pszusername.into_param().abi()).ok() + RatingSetupUI(hdlg.param().abi(), pszusername.param().abi()).ok() } #[inline] pub unsafe fn RatingSetupUIW(hdlg: P0, pszusername: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + 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(hdlg.into_param().abi(), pszusername.into_param().abi()).ok() + RatingSetupUIW(hdlg.param().abi(), pszusername.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SniffStream(pinstream: P0, pnformat: *mut u32, ppoutstream: *mut Option) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { windows_targets::link!("imgutil.dll" "system" fn SniffStream(pinstream : * mut core::ffi::c_void, pnformat : *mut u32, ppoutstream : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); - SniffStream(pinstream.into_param().abi(), pnformat, core::mem::transmute(ppoutstream)).ok() + SniffStream(pinstream.param().abi(), pnformat, core::mem::transmute(ppoutstream)).ok() } windows_core::imp::define_interface!(IActiveXUIHandlerSite, IActiveXUIHandlerSite_Vtbl, 0x30510853_98b5_11cf_bb82_00aa00bdce0b); windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite, windows_core::IUnknown); @@ -473,11 +473,11 @@ impl IActiveXUIHandlerSite { } pub unsafe fn PickFileAndGetResult(&self, filepicker: P0, allowmultipleselections: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).PickFileAndGetResult)(windows_core::Interface::as_raw(self), filepicker.into_param().abi(), allowmultipleselections.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).PickFileAndGetResult)(windows_core::Interface::as_raw(self), filepicker.param().abi(), allowmultipleselections.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -508,12 +508,12 @@ windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite3, windows_core::IU impl IActiveXUIHandlerSite3 { pub unsafe fn MessageBoxW(&self, hwnd: P0, text: P1, caption: P2, r#type: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).MessageBoxW)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), text.into_param().abi(), caption.into_param().abi(), r#type, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).MessageBoxW)(windows_core::Interface::as_raw(self), hwnd.param().abi(), text.param().abi(), caption.param().abi(), r#type, &mut result__).map(|| result__) } } #[repr(C)] @@ -546,15 +546,15 @@ impl IAudioSessionSite { } pub unsafe fn OnAudioStreamCreated(&self, endpointid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAudioStreamCreated)(windows_core::Interface::as_raw(self), endpointid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnAudioStreamCreated)(windows_core::Interface::as_raw(self), endpointid.param().abi()).ok() } pub unsafe fn OnAudioStreamDestroyed(&self, endpointid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnAudioStreamDestroyed)(windows_core::Interface::as_raw(self), endpointid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnAudioStreamDestroyed)(windows_core::Interface::as_raw(self), endpointid.param().abi()).ok() } } #[repr(C)] @@ -596,9 +596,9 @@ impl IDithererImpl { } pub unsafe fn SetEventSink(&self, peventsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), peventsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEventSink)(windows_core::Interface::as_raw(self), peventsink.param().abi()).ok() } } #[repr(C)] @@ -616,21 +616,21 @@ impl IDocObjectService { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FireBeforeNavigate2(&self, pdispatch: P0, lpszurl: P1, dwflags: u32, lpszframename: P2, ppostdata: *const u8, cbpostdata: u32, lpszheaders: P3, fplaynavsound: P4) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FireBeforeNavigate2)(windows_core::Interface::as_raw(self), pdispatch.into_param().abi(), lpszurl.into_param().abi(), dwflags, lpszframename.into_param().abi(), ppostdata, cbpostdata, lpszheaders.into_param().abi(), fplaynavsound.into_param().abi(), &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.param().abi(), &mut result__).map(|| result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] pub unsafe fn FireNavigateComplete2(&self, phtmlwindow2: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireNavigateComplete2)(windows_core::Interface::as_raw(self), phtmlwindow2.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).FireNavigateComplete2)(windows_core::Interface::as_raw(self), phtmlwindow2.param().abi(), dwflags).ok() } pub unsafe fn FireDownloadBegin(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FireDownloadBegin)(windows_core::Interface::as_raw(self)).ok() @@ -641,16 +641,16 @@ impl IDocObjectService { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] pub unsafe fn FireDocumentComplete(&self, phtmlwindow: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).FireDocumentComplete)(windows_core::Interface::as_raw(self), phtmlwindow.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).FireDocumentComplete)(windows_core::Interface::as_raw(self), phtmlwindow.param().abi(), dwflags).ok() } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] pub unsafe fn UpdateDesktopComponent(&self, phtmlwindow: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UpdateDesktopComponent)(windows_core::Interface::as_raw(self), phtmlwindow.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UpdateDesktopComponent)(windows_core::Interface::as_raw(self), phtmlwindow.param().abi()).ok() } pub unsafe fn GetPendingUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -659,9 +659,9 @@ impl IDocObjectService { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] pub unsafe fn ActiveElementChanged(&self, phtmlelement: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).ActiveElementChanged)(windows_core::Interface::as_raw(self), phtmlelement.into_param().abi()).ok() + (windows_core::Interface::vtable(self).ActiveElementChanged)(windows_core::Interface::as_raw(self), phtmlelement.param().abi()).ok() } pub unsafe fn GetUrlSearchComponent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -669,10 +669,10 @@ impl IDocObjectService { } pub unsafe fn IsErrorUrl(&self, lpszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsErrorUrl)(windows_core::Interface::as_raw(self), lpszurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsErrorUrl)(windows_core::Interface::as_raw(self), lpszurl.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -713,10 +713,10 @@ impl IDownloadBehavior { #[cfg(feature = "Win32_System_Com")] pub unsafe fn startDownload(&self, bstrurl: P0, pdispcallback: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).startDownload)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), pdispcallback.into_param().abi()).ok() + (windows_core::Interface::vtable(self).startDownload)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), pdispcallback.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -734,12 +734,12 @@ impl IDownloadManager { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn Download(&self, pmk: P0, pbc: P1, dwbindverb: u32, grfbindf: i32, pbindinfo: *const super::super::System::Com::BINDINFO, pszheaders: P2, pszredir: P3, uicp: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pmk.into_param().abi(), pbc.into_param().abi(), dwbindverb, grfbindf, pbindinfo, pszheaders.into_param().abi(), pszredir.into_param().abi(), uicp).ok() + (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), pmk.param().abi(), pbc.param().abi(), dwbindverb, grfbindf, pbindinfo, pszheaders.param().abi(), pszredir.param().abi(), uicp).ok() } } #[repr(C)] @@ -848,9 +848,9 @@ impl IEnumSTATURL { } pub unsafe fn SetFilter(&self, poszfilter: P0, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), poszfilter.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).SetFilter)(windows_core::Interface::as_raw(self), poszfilter.param().abi(), dwflags).ok() } } #[repr(C)] @@ -868,13 +868,13 @@ impl IExtensionValidation { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] pub unsafe fn Validate(&self, extensionguid: *const windows_core::GUID, extensionmodulepath: P0, extensionfileversionms: u32, extensionfileversionls: u32, htmldocumenttop: P1, htmldocumentsubframe: P2, htmlelement: P3, contexts: ExtensionValidationContexts) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), extensionguid, extensionmodulepath.into_param().abi(), extensionfileversionms, extensionfileversionls, htmldocumenttop.into_param().abi(), htmldocumentsubframe.into_param().abi(), htmlelement.into_param().abi(), contexts, &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), extensionguid, extensionmodulepath.param().abi(), extensionfileversionms, extensionfileversionls, htmldocumenttop.param().abi(), htmldocumentsubframe.param().abi(), htmlelement.param().abi(), contexts, &mut result__).map(|| result__) } pub unsafe fn DisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -895,17 +895,17 @@ windows_core::imp::interface_hierarchy!(IHTMLPersistData, windows_core::IUnknown impl IHTMLPersistData { pub unsafe fn save(&self, punk: P0, ltype: i32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).save)(windows_core::Interface::as_raw(self), punk.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).load)(windows_core::Interface::as_raw(self), punk.into_param().abi(), 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__ = std::mem::zeroed(); @@ -932,23 +932,23 @@ impl IHTMLPersistDataOM { } pub unsafe fn getAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn setAttribute(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn removeAttribute(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -976,41 +976,41 @@ impl IHTMLUserDataOM { } pub unsafe fn save(&self, strname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).save)(windows_core::Interface::as_raw(self), strname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).save)(windows_core::Interface::as_raw(self), strname.param().abi()).ok() } pub unsafe fn load(&self, strname: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).load)(windows_core::Interface::as_raw(self), strname.into_param().abi()).ok() + (windows_core::Interface::vtable(self).load)(windows_core::Interface::as_raw(self), strname.param().abi()).ok() } pub unsafe fn getAttribute(&self, name: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).getAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn setAttribute(&self, name: P0, value: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi(), value.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setAttribute)(windows_core::Interface::as_raw(self), name.param().abi(), value.param().abi()).ok() } pub unsafe fn removeAttribute(&self, name: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), name.into_param().abi()).ok() + (windows_core::Interface::vtable(self).removeAttribute)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } pub unsafe fn Setexpires(&self, bstr: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setexpires)(windows_core::Interface::as_raw(self), bstr.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setexpires)(windows_core::Interface::as_raw(self), bstr.param().abi()).ok() } pub unsafe fn expires(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1049,9 +1049,9 @@ impl IHeaderFooter { } pub unsafe fn SettextHead(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SettextHead)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SettextHead)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn textHead(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1059,9 +1059,9 @@ impl IHeaderFooter { } pub unsafe fn SettextFoot(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SettextFoot)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SettextFoot)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn textFoot(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1083,9 +1083,9 @@ impl IHeaderFooter { } pub unsafe fn SetURL(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetURL)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn URL(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1093,9 +1093,9 @@ impl IHeaderFooter { } pub unsafe fn Settitle(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Settitle)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Settitle)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn title(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1103,9 +1103,9 @@ impl IHeaderFooter { } pub unsafe fn SetdateShort(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetdateShort)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetdateShort)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn dateShort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1113,9 +1113,9 @@ impl IHeaderFooter { } pub unsafe fn SetdateLong(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetdateLong)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetdateLong)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn dateLong(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1123,9 +1123,9 @@ impl IHeaderFooter { } pub unsafe fn SettimeShort(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SettimeShort)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SettimeShort)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn timeShort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1133,9 +1133,9 @@ impl IHeaderFooter { } pub unsafe fn SettimeLong(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SettimeLong)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SettimeLong)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn timeLong(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1185,9 +1185,9 @@ impl IHeaderFooter2 { } pub unsafe fn SettextHead(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SettextHead)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SettextHead)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn textHead(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1195,9 +1195,9 @@ impl IHeaderFooter2 { } pub unsafe fn SettextFoot(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SettextFoot)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SettextFoot)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn textFoot(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1219,9 +1219,9 @@ impl IHeaderFooter2 { } pub unsafe fn SetURL(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetURL)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn URL(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1229,9 +1229,9 @@ impl IHeaderFooter2 { } pub unsafe fn Settitle(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Settitle)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Settitle)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn title(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1239,9 +1239,9 @@ impl IHeaderFooter2 { } pub unsafe fn SetdateShort(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdateShort)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdateShort)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn dateShort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1249,9 +1249,9 @@ impl IHeaderFooter2 { } pub unsafe fn SetdateLong(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetdateLong)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetdateLong)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn dateLong(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1259,9 +1259,9 @@ impl IHeaderFooter2 { } pub unsafe fn SettimeShort(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SettimeShort)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SettimeShort)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn timeShort(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1269,9 +1269,9 @@ impl IHeaderFooter2 { } pub unsafe fn SettimeLong(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SettimeLong)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SettimeLong)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn timeLong(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1279,9 +1279,9 @@ impl IHeaderFooter2 { } pub unsafe fn Setfont(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setfont)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setfont)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn font(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1306,16 +1306,16 @@ impl IHomePage { } pub unsafe fn setHomePage(&self, bstrurl: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).setHomePage)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi()).ok() + (windows_core::Interface::vtable(self).setHomePage)(windows_core::Interface::as_raw(self), bstrurl.param().abi()).ok() } pub unsafe fn isHomePage(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).isHomePage)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).isHomePage)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1331,18 +1331,18 @@ windows_core::imp::interface_hierarchy!(IHomePageSetting, windows_core::IUnknown impl IHomePageSetting { pub unsafe fn SetHomePage(&self, hwnd: P0, homepageuri: P1, brandingmessage: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).SetHomePage)(windows_core::Interface::as_raw(self), hwnd.into_param().abi(), homepageuri.into_param().abi(), brandingmessage.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetHomePage)(windows_core::Interface::as_raw(self), hwnd.param().abi(), homepageuri.param().abi(), brandingmessage.param().abi()).ok() } pub unsafe fn IsHomePage(&self, uri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).IsHomePage)(windows_core::Interface::as_raw(self), uri.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).IsHomePage)(windows_core::Interface::as_raw(self), uri.param().abi(), &mut result__).map(|| result__) } pub unsafe fn SetHomePageToBrowserDefault(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetHomePageToBrowserDefault)(windows_core::Interface::as_raw(self)).ok() @@ -1363,10 +1363,10 @@ windows_core::imp::interface_hierarchy!(IIEWebDriverManager, windows_core::IUnkn impl IIEWebDriverManager { pub unsafe fn ExecuteCommand(&self, command: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).ExecuteCommand)(windows_core::Interface::as_raw(self), command.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).ExecuteCommand)(windows_core::Interface::as_raw(self), command.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1386,17 +1386,17 @@ impl IIEWebDriverSite { } pub unsafe fn DetachWebdriver(&self, punkwd: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DetachWebdriver)(windows_core::Interface::as_raw(self), punkwd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).DetachWebdriver)(windows_core::Interface::as_raw(self), punkwd.param().abi()).ok() } pub unsafe fn GetCapabilityValue(&self, punkwd: P0, capname: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCapabilityValue)(windows_core::Interface::as_raw(self), punkwd.into_param().abi(), capname.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetCapabilityValue)(windows_core::Interface::as_raw(self), punkwd.param().abi(), capname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[cfg(feature = "Win32_System_Com")] @@ -1428,9 +1428,9 @@ impl IImageDecodeEventSink { } pub unsafe fn OnProgress(&self, pbounds: *const super::super::Foundation::RECT, bcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), pbounds, bcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnProgress)(windows_core::Interface::as_raw(self), pbounds, bcomplete.param().abi()).ok() } } #[repr(C)] @@ -1464,9 +1464,9 @@ impl IImageDecodeEventSink2 { } pub unsafe fn OnProgress(&self, pbounds: *const super::super::Foundation::RECT, bcomplete: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnProgress)(windows_core::Interface::as_raw(self), pbounds, bcomplete.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnProgress)(windows_core::Interface::as_raw(self), pbounds, bcomplete.param().abi()).ok() } pub unsafe fn IsAlphaPremultRequired(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1483,16 +1483,16 @@ windows_core::imp::interface_hierarchy!(IImageDecodeFilter, windows_core::IUnkno impl IImageDecodeFilter { pub unsafe fn Initialize(&self, peventsink: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), peventsink.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), peventsink.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Process(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (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), hrstatus).ok() @@ -1520,9 +1520,9 @@ impl IIntelliForms { } pub unsafe fn Setenabled(&self, bval: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), bval.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Setenabled)(windows_core::Interface::as_raw(self), bval.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1537,11 +1537,11 @@ windows_core::imp::interface_hierarchy!(IInternetExplorerManager, windows_core:: impl IInternetExplorerManager { pub unsafe fn CreateObject(&self, dwconfig: u32, pszurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).CreateObject)(windows_core::Interface::as_raw(self), dwconfig, pszurl.into_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)] @@ -1570,9 +1570,9 @@ windows_core::imp::interface_hierarchy!(ILayoutRect, windows_core::IUnknown, sup impl ILayoutRect { pub unsafe fn SetnextRect(&self, bstrelementid: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetnextRect)(windows_core::Interface::as_raw(self), bstrelementid.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetnextRect)(windows_core::Interface::as_raw(self), bstrelementid.param().abi()).ok() } pub unsafe fn nextRect(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1580,9 +1580,9 @@ impl ILayoutRect { } pub unsafe fn SetcontentSrc(&self, varcontentsrc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetcontentSrc)(windows_core::Interface::as_raw(self), varcontentsrc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetcontentSrc)(windows_core::Interface::as_raw(self), varcontentsrc.param().abi()).ok() } pub unsafe fn contentSrc(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1590,9 +1590,9 @@ impl ILayoutRect { } pub unsafe fn SethonorPageBreaks(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SethonorPageBreaks)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SethonorPageBreaks)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn honorPageBreaks(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1600,9 +1600,9 @@ impl ILayoutRect { } pub unsafe fn SethonorPageRules(&self, v: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SethonorPageRules)(windows_core::Interface::as_raw(self), v.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SethonorPageRules)(windows_core::Interface::as_raw(self), v.param().abi()).ok() } pub unsafe fn honorPageRules(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1611,9 +1611,9 @@ impl ILayoutRect { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetnextRectElement(&self, pelem: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetnextRectElement)(windows_core::Interface::as_raw(self), pelem.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetnextRectElement)(windows_core::Interface::as_raw(self), pelem.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn nextRectElement(&self) -> windows_core::Result { @@ -1656,21 +1656,21 @@ windows_core::imp::interface_hierarchy!(IMapMIMEToCLSID, windows_core::IUnknown) impl IMapMIMEToCLSID { pub unsafe fn EnableDefaultMappings(&self, benable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EnableDefaultMappings)(windows_core::Interface::as_raw(self), benable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).EnableDefaultMappings)(windows_core::Interface::as_raw(self), benable.param().abi()).ok() } pub unsafe fn MapMIMEToCLSID(&self, pszmimetype: P0, pclsid: *const windows_core::GUID) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).MapMIMEToCLSID)(windows_core::Interface::as_raw(self), pszmimetype.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetMapping)(windows_core::Interface::as_raw(self), pszmimetype.into_param().abi(), dwmapmode, clsid).ok() + (windows_core::Interface::vtable(self).SetMapping)(windows_core::Interface::as_raw(self), pszmimetype.param().abi(), dwmapmode, clsid).ok() } } #[repr(C)] @@ -1705,10 +1705,10 @@ impl IOpenService { } pub unsafe fn SetDefault(&self, fdefault: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), fdefault.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefault)(windows_core::Interface::as_raw(self), fdefault.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn GetID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1731,10 +1731,10 @@ impl IOpenServiceActivity { } pub unsafe fn SetDefault(&self, fdefault: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.SetDefault)(windows_core::Interface::as_raw(self), fdefault.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.SetDefault)(windows_core::Interface::as_raw(self), fdefault.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn GetID(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1742,18 +1742,18 @@ impl IOpenServiceActivity { } pub unsafe fn Execute(&self, pinput: P0, poutput: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), pinput.into_param().abi(), poutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi()).ok() } pub unsafe fn CanExecute(&self, pinput: P0, poutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanExecute)(windows_core::Interface::as_raw(self), pinput.into_param().abi(), poutput.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanExecute)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CanExecuteType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1761,18 +1761,18 @@ impl IOpenServiceActivity { } pub unsafe fn Preview(&self, pinput: P0, poutput: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).Preview)(windows_core::Interface::as_raw(self), pinput.into_param().abi(), poutput.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Preview)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi()).ok() } pub unsafe fn CanPreview(&self, pinput: P0, poutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanPreview)(windows_core::Interface::as_raw(self), pinput.into_param().abi(), poutput.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanPreview)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi(), &mut result__).map(|| result__) } pub unsafe fn CanPreviewType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1780,10 +1780,10 @@ impl IOpenServiceActivity { } pub unsafe fn GetStatusText(&self, pinput: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStatusText)(windows_core::Interface::as_raw(self), pinput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetStatusText)(windows_core::Interface::as_raw(self), pinput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetHomepageUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1808,10 +1808,10 @@ impl IOpenServiceActivity { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetIcon(&self, fsmallicon: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), fsmallicon.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetIcon)(windows_core::Interface::as_raw(self), fsmallicon.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetDescriptionFilePath(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1831,9 +1831,9 @@ impl IOpenServiceActivity { } pub unsafe fn SetEnabled(&self, fenable: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetEnabled)(windows_core::Interface::as_raw(self), fenable.param().abi()).ok() } } #[repr(C)] @@ -1874,10 +1874,10 @@ impl IOpenServiceActivityCategory { } pub unsafe fn SetDefaultActivity(&self, pactivity: P0, hwnd: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).SetDefaultActivity)(windows_core::Interface::as_raw(self), pactivity.into_param().abi(), hwnd.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetDefaultActivity)(windows_core::Interface::as_raw(self), pactivity.param().abi(), hwnd.param().abi()).ok() } pub unsafe fn GetName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1885,11 +1885,11 @@ impl IOpenServiceActivityCategory { } pub unsafe fn GetActivityEnumerator(&self, pinput: P0, poutput: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActivityEnumerator)(windows_core::Interface::as_raw(self), pinput.into_param().abi(), poutput.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetActivityEnumerator)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -1906,19 +1906,19 @@ windows_core::imp::interface_hierarchy!(IOpenServiceActivityInput, windows_core: impl IOpenServiceActivityInput { pub unsafe fn GetVariable(&self, pwzvariablename: P0, pwzvariabletype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVariable)(windows_core::Interface::as_raw(self), pwzvariablename.into_param().abi(), pwzvariabletype.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetVariable)(windows_core::Interface::as_raw(self), pwzvariablename.param().abi(), pwzvariabletype.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn HasVariable(&self, pwzvariablename: P0, pwzvariabletype: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).HasVariable)(windows_core::Interface::as_raw(self), pwzvariablename.into_param().abi(), pwzvariabletype.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).HasVariable)(windows_core::Interface::as_raw(self), pwzvariablename.param().abi(), pwzvariabletype.param().abi(), &mut result__).map(|| result__) } pub unsafe fn GetType(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1941,18 +1941,18 @@ impl IOpenServiceActivityManager { } pub unsafe fn GetActivityByID(&self, pwzactivityid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActivityByID)(windows_core::Interface::as_raw(self), pwzactivityid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetActivityByID)(windows_core::Interface::as_raw(self), pwzactivityid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetActivityByHomepageAndCategory(&self, pwzhomepage: P0, pwzcategory: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetActivityByHomepageAndCategory)(windows_core::Interface::as_raw(self), pwzhomepage.into_param().abi(), pwzcategory.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetActivityByHomepageAndCategory)(windows_core::Interface::as_raw(self), pwzhomepage.param().abi(), pwzcategory.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetVersionCookie(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -1973,23 +1973,23 @@ impl IOpenServiceActivityOutputContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Navigate(&self, pwzuri: P0, pwzmethod: P1, pwzheaders: P2, ppostdata: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { - (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), pwzuri.into_param().abi(), pwzmethod.into_param().abi(), pwzheaders.into_param().abi(), ppostdata.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), pwzuri.param().abi(), pwzmethod.param().abi(), pwzheaders.param().abi(), ppostdata.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CanNavigate(&self, pwzuri: P0, pwzmethod: P1, pwzheaders: P2, ppostdata: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CanNavigate)(windows_core::Interface::as_raw(self), pwzuri.into_param().abi(), pwzmethod.into_param().abi(), pwzheaders.into_param().abi(), ppostdata.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).CanNavigate)(windows_core::Interface::as_raw(self), pwzuri.param().abi(), pwzmethod.param().abi(), pwzheaders.param().abi(), ppostdata.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -2009,23 +2009,23 @@ windows_core::imp::interface_hierarchy!(IOpenServiceManager, windows_core::IUnkn impl IOpenServiceManager { pub unsafe fn InstallService(&self, pwzserviceurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).InstallService)(windows_core::Interface::as_raw(self), pwzserviceurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).InstallService)(windows_core::Interface::as_raw(self), pwzserviceurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn UninstallService(&self, pservice: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).UninstallService)(windows_core::Interface::as_raw(self), pservice.into_param().abi()).ok() + (windows_core::Interface::vtable(self).UninstallService)(windows_core::Interface::as_raw(self), pservice.param().abi()).ok() } pub unsafe fn GetServiceByID(&self, pwzid: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceByID)(windows_core::Interface::as_raw(self), pwzid.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).GetServiceByID)(windows_core::Interface::as_raw(self), pwzid.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[repr(C)] @@ -2056,17 +2056,17 @@ impl IPersistHistory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn LoadHistory(&self, pstream: P0, pbc: P1) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).LoadHistory)(windows_core::Interface::as_raw(self), pstream.into_param().abi(), pbc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).LoadHistory)(windows_core::Interface::as_raw(self), pstream.param().abi(), pbc.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SaveHistory(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SaveHistory)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (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), dwpositioncookie).ok() @@ -2096,9 +2096,9 @@ windows_core::imp::interface_hierarchy!(IPrintTaskRequestFactory, windows_core:: impl IPrintTaskRequestFactory { pub unsafe fn CreatePrintTaskRequest(&self, pprinttaskrequesthandler: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CreatePrintTaskRequest)(windows_core::Interface::as_raw(self), pprinttaskrequesthandler.into_param().abi()).ok() + (windows_core::Interface::vtable(self).CreatePrintTaskRequest)(windows_core::Interface::as_raw(self), pprinttaskrequesthandler.param().abi()).ok() } } #[repr(C)] @@ -2111,9 +2111,9 @@ windows_core::imp::interface_hierarchy!(IPrintTaskRequestHandler, windows_core:: impl IPrintTaskRequestHandler { pub unsafe fn HandlePrintTaskRequest(&self, pprinttaskrequest: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).HandlePrintTaskRequest)(windows_core::Interface::as_raw(self), pprinttaskrequest.into_param().abi()).ok() + (windows_core::Interface::vtable(self).HandlePrintTaskRequest)(windows_core::Interface::as_raw(self), pprinttaskrequest.param().abi()).ok() } } #[repr(C)] @@ -2126,9 +2126,9 @@ windows_core::imp::interface_hierarchy!(IScrollableContextMenu, windows_core::IU impl IScrollableContextMenu { pub unsafe fn AddItem(&self, itemtext: P0, cmdid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).AddItem)(windows_core::Interface::as_raw(self), itemtext.into_param().abi(), 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__ = std::mem::zeroed(); @@ -2146,9 +2146,9 @@ windows_core::imp::interface_hierarchy!(IScrollableContextMenu2, windows_core::I impl IScrollableContextMenu2 { pub unsafe fn AddItem(&self, itemtext: P0, cmdid: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddItem)(windows_core::Interface::as_raw(self), itemtext.into_param().abi(), cmdid).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -2173,9 +2173,9 @@ impl ISniffStream { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Init(&self, pstream: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() + (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), pbuffer, nbytes, pnbytesread).ok() @@ -2278,9 +2278,9 @@ windows_core::imp::interface_hierarchy!(ITargetFrame, windows_core::IUnknown); impl ITargetFrame { pub unsafe fn SetFrameName(&self, pszframename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFrameName)(windows_core::Interface::as_raw(self), pszframename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFrameName)(windows_core::Interface::as_raw(self), pszframename.param().abi()).ok() } pub unsafe fn GetFrameName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2292,17 +2292,17 @@ impl ITargetFrame { } pub unsafe fn FindFrame(&self, psztargetname: P0, ppunkcontextframe: P1, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrame)(windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), ppunkcontextframe.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFrameSrc)(windows_core::Interface::as_raw(self), pszframesrc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFrameSrc)(windows_core::Interface::as_raw(self), pszframesrc.param().abi()).ok() } pub unsafe fn GetFrameSrc(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2331,15 +2331,15 @@ impl ITargetFrame { } pub unsafe fn OnChildFrameActivate(&self, punkchildframe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChildFrameActivate)(windows_core::Interface::as_raw(self), punkchildframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnChildFrameActivate)(windows_core::Interface::as_raw(self), punkchildframe.param().abi()).ok() } pub unsafe fn OnChildFrameDeactivate(&self, punkchildframe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChildFrameDeactivate)(windows_core::Interface::as_raw(self), punkchildframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnChildFrameDeactivate)(windows_core::Interface::as_raw(self), punkchildframe.param().abi()).ok() } } #[repr(C)] @@ -2368,9 +2368,9 @@ windows_core::imp::interface_hierarchy!(ITargetFrame2, windows_core::IUnknown); impl ITargetFrame2 { pub unsafe fn SetFrameName(&self, pszframename: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFrameName)(windows_core::Interface::as_raw(self), pszframename.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFrameName)(windows_core::Interface::as_raw(self), pszframename.param().abi()).ok() } pub unsafe fn GetFrameName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2382,9 +2382,9 @@ impl ITargetFrame2 { } pub unsafe fn SetFrameSrc(&self, pszframesrc: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetFrameSrc)(windows_core::Interface::as_raw(self), pszframesrc.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetFrameSrc)(windows_core::Interface::as_raw(self), pszframesrc.param().abi()).ok() } pub unsafe fn GetFrameSrc(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2410,17 +2410,17 @@ impl ITargetFrame2 { } pub unsafe fn FindFrame(&self, psztargetname: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrame)(windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).GetTargetAlias)(windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).GetTargetAlias)(windows_core::Interface::as_raw(self), psztargetname.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -2447,41 +2447,41 @@ windows_core::imp::interface_hierarchy!(ITargetFramePriv, windows_core::IUnknown impl ITargetFramePriv { pub unsafe fn FindFrameDownwards(&self, psztargetname: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrameDownwards)(windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), 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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).FindFrameInContext)(windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), punkcontextframe.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChildFrameActivate)(windows_core::Interface::as_raw(self), punkchildframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnChildFrameActivate)(windows_core::Interface::as_raw(self), punkchildframe.param().abi()).ok() } pub unsafe fn OnChildFrameDeactivate(&self, punkchildframe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnChildFrameDeactivate)(windows_core::Interface::as_raw(self), punkchildframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnChildFrameDeactivate)(windows_core::Interface::as_raw(self), punkchildframe.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NavigateHack(&self, grfhlnf: u32, pbc: P0, pibsc: P1, psztargetname: P2, pszurl: P3, pszlocation: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).NavigateHack)(windows_core::Interface::as_raw(self), grfhlnf, pbc.into_param().abi(), pibsc.into_param().abi(), psztargetname.into_param().abi(), pszurl.into_param().abi(), pszlocation.into_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__ = std::mem::zeroed(); @@ -2506,41 +2506,41 @@ windows_core::imp::interface_hierarchy!(ITargetFramePriv2, windows_core::IUnknow impl ITargetFramePriv2 { pub unsafe fn FindFrameDownwards(&self, psztargetname: P0, dwflags: u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindFrameDownwards)(windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.FindFrameInContext)(windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), punkcontextframe.into_param().abi(), dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnChildFrameActivate)(windows_core::Interface::as_raw(self), punkchildframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnChildFrameActivate)(windows_core::Interface::as_raw(self), punkchildframe.param().abi()).ok() } pub unsafe fn OnChildFrameDeactivate(&self, punkchildframe: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnChildFrameDeactivate)(windows_core::Interface::as_raw(self), punkchildframe.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnChildFrameDeactivate)(windows_core::Interface::as_raw(self), punkchildframe.param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn NavigateHack(&self, grfhlnf: u32, pbc: P0, pibsc: P1, psztargetname: P2, pszurl: P3, pszlocation: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.NavigateHack)(windows_core::Interface::as_raw(self), grfhlnf, pbc.into_param().abi(), pibsc.into_param().abi(), psztargetname.into_param().abi(), pszurl.into_param().abi(), pszlocation.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.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__ = std::mem::zeroed(); @@ -2549,13 +2549,13 @@ impl ITargetFramePriv2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn AggregatedNavigation2(&self, grfhlnf: u32, pbc: P0, pibsc: P1, psztargetname: P2, puri: P3, pszlocation: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AggregatedNavigation2)(windows_core::Interface::as_raw(self), grfhlnf, pbc.into_param().abi(), pibsc.into_param().abi(), psztargetname.into_param().abi(), puri.into_param().abi(), pszlocation.into_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)] @@ -2571,15 +2571,15 @@ windows_core::imp::interface_hierarchy!(ITargetNotify, windows_core::IUnknown); impl ITargetNotify { pub unsafe fn OnCreate(&self, punkdestination: P0, cbcookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnCreate)(windows_core::Interface::as_raw(self), punkdestination.into_param().abi(), 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 - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnReuse)(windows_core::Interface::as_raw(self), punkdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnReuse)(windows_core::Interface::as_raw(self), punkdestination.param().abi()).ok() } } #[repr(C)] @@ -2593,15 +2593,15 @@ windows_core::imp::interface_hierarchy!(ITargetNotify2, windows_core::IUnknown, impl ITargetNotify2 { pub unsafe fn OnCreate(&self, punkdestination: P0, cbcookie: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnCreate)(windows_core::Interface::as_raw(self), punkdestination.into_param().abi(), cbcookie).ok() + (windows_core::Interface::vtable(self).base__.OnCreate)(windows_core::Interface::as_raw(self), punkdestination.param().abi(), cbcookie).ok() } pub unsafe fn OnReuse(&self, punkdestination: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.OnReuse)(windows_core::Interface::as_raw(self), punkdestination.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.OnReuse)(windows_core::Interface::as_raw(self), punkdestination.param().abi()).ok() } pub unsafe fn GetOptionString(&self, pbstroptions: *mut windows_core::BSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetOptionString)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstroptions)).ok() @@ -2617,22 +2617,22 @@ windows_core::imp::interface_hierarchy!(ITimer, windows_core::IUnknown); impl ITimer { pub unsafe fn Advise(&self, vtimemin: P0, vtimemax: P1, vtimeinterval: P2, dwflags: u32, ptimersink: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), vtimemin.into_param().abi(), vtimemax.into_param().abi(), vtimeinterval.into_param().abi(), dwflags, ptimersink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).Advise)(windows_core::Interface::as_raw(self), vtimemin.param().abi(), vtimemax.param().abi(), vtimeinterval.param().abi(), 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), dwcookie).ok() } pub unsafe fn Freeze(&self, ffreeze: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Freeze)(windows_core::Interface::as_raw(self), ffreeze.into_param().abi()).ok() + (windows_core::Interface::vtable(self).Freeze)(windows_core::Interface::as_raw(self), ffreeze.param().abi()).ok() } pub unsafe fn GetTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2652,22 +2652,22 @@ windows_core::imp::interface_hierarchy!(ITimerEx, windows_core::IUnknown, ITimer impl ITimerEx { pub unsafe fn Advise(&self, vtimemin: P0, vtimemax: P1, vtimeinterval: P2, dwflags: u32, ptimersink: P3) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), vtimemin.into_param().abi(), vtimemax.into_param().abi(), vtimeinterval.into_param().abi(), dwflags, ptimersink.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).base__.Advise)(windows_core::Interface::as_raw(self), vtimemin.param().abi(), vtimemax.param().abi(), vtimeinterval.param().abi(), dwflags, ptimersink.param().abi(), &mut result__).map(|| result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).base__.Unadvise)(windows_core::Interface::as_raw(self), dwcookie).ok() } pub unsafe fn Freeze(&self, ffreeze: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.Freeze)(windows_core::Interface::as_raw(self), ffreeze.into_param().abi()).ok() + (windows_core::Interface::vtable(self).base__.Freeze)(windows_core::Interface::as_raw(self), ffreeze.param().abi()).ok() } pub unsafe fn GetTime(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2687,10 +2687,10 @@ windows_core::imp::interface_hierarchy!(ITimerService, windows_core::IUnknown); impl ITimerService { pub unsafe fn CreateTimer(&self, preferencetimer: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTimer)(windows_core::Interface::as_raw(self), preferencetimer.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateTimer)(windows_core::Interface::as_raw(self), preferencetimer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetNamedTimer(&self, rguidname: *const windows_core::GUID) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2698,9 +2698,9 @@ impl ITimerService { } pub unsafe fn SetNamedTimerReference(&self, rguidname: *const windows_core::GUID, preferencetimer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).SetNamedTimerReference)(windows_core::Interface::as_raw(self), rguidname, preferencetimer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).SetNamedTimerReference)(windows_core::Interface::as_raw(self), rguidname, preferencetimer.param().abi()).ok() } } #[repr(C)] @@ -2715,9 +2715,9 @@ windows_core::imp::interface_hierarchy!(ITimerSink, windows_core::IUnknown); impl ITimerSink { pub unsafe fn OnTimer(&self, vtimeadvise: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnTimer)(windows_core::Interface::as_raw(self), vtimeadvise.into_param().abi()).ok() + (windows_core::Interface::vtable(self).OnTimer)(windows_core::Interface::as_raw(self), vtimeadvise.param().abi()).ok() } } #[repr(C)] @@ -2730,11 +2730,11 @@ windows_core::imp::interface_hierarchy!(ITridentTouchInput, windows_core::IUnkno impl ITridentTouchInput { pub unsafe fn OnPointerMessage(&self, msg: u32, wparam: P0, lparam: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).OnPointerMessage)(windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).OnPointerMessage)(windows_core::Interface::as_raw(self), msg, wparam.param().abi(), lparam.param().abi(), &mut result__).map(|| result__) } } #[repr(C)] @@ -2787,30 +2787,30 @@ windows_core::imp::interface_hierarchy!(IUrlHistoryStg, windows_core::IUnknown); impl IUrlHistoryStg { pub unsafe fn AddUrl(&self, pocsurl: P0, pocstitle: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUrl)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), pocstitle.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).DeleteUrl)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), 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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).QueryUrl)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), dwflags, lpstaturl).ok() + (windows_core::Interface::vtable(self).QueryUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), dwflags, lpstaturl).ok() } pub unsafe fn BindToObject(&self, pocsurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).BindToObject)(windows_core::Interface::as_raw(self), pocsurl.into_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), pocsurl.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumUrls(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2831,30 +2831,30 @@ windows_core::imp::interface_hierarchy!(IUrlHistoryStg2, windows_core::IUnknown, impl IUrlHistoryStg2 { pub unsafe fn AddUrl(&self, pocsurl: P0, pocstitle: P1, dwflags: u32) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.AddUrl)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), pocstitle.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.DeleteUrl)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), dwflags).ok() + (windows_core::Interface::vtable(self).base__.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::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).base__.QueryUrl)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), dwflags, lpstaturl).ok() + (windows_core::Interface::vtable(self).base__.QueryUrl)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), dwflags, lpstaturl).ok() } pub unsafe fn BindToObject(&self, pocsurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, T: windows_core::Interface, { let mut result__ = std::ptr::null_mut(); - (windows_core::Interface::vtable(self).base__.BindToObject)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).base__.BindToObject)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn EnumUrls(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -2863,13 +2863,13 @@ impl IUrlHistoryStg2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn AddUrlAndNotify(&self, pocsurl: P0, pocstitle: P1, dwflags: u32, fwritehistory: P2, poctnotify: P3, punkisfolder: P4) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, - P4: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - (windows_core::Interface::vtable(self).AddUrlAndNotify)(windows_core::Interface::as_raw(self), pocsurl.into_param().abi(), pocstitle.into_param().abi(), dwflags, fwritehistory.into_param().abi(), poctnotify.into_param().abi(), punkisfolder.into_param().abi()).ok() + (windows_core::Interface::vtable(self).AddUrlAndNotify)(windows_core::Interface::as_raw(self), pocsurl.param().abi(), pocstitle.param().abi(), dwflags, fwritehistory.param().abi(), 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() @@ -2889,21 +2889,21 @@ windows_core::imp::interface_hierarchy!(IViewObjectPresentFlip, windows_core::IU impl IViewObjectPresentFlip { pub unsafe fn NotifyRender(&self, frecreatepresenter: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).NotifyRender)(windows_core::Interface::as_raw(self), frecreatepresenter.into_param().abi()).ok() + (windows_core::Interface::vtable(self).NotifyRender)(windows_core::Interface::as_raw(self), frecreatepresenter.param().abi()).ok() } pub unsafe fn RenderObjectToBitmap(&self, pbitmap: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderObjectToBitmap)(windows_core::Interface::as_raw(self), pbitmap.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenderObjectToBitmap)(windows_core::Interface::as_raw(self), pbitmap.param().abi()).ok() } pub unsafe fn RenderObjectToSharedBuffer(&self, pbuffer: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).RenderObjectToSharedBuffer)(windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() + (windows_core::Interface::vtable(self).RenderObjectToSharedBuffer)(windows_core::Interface::as_raw(self), pbuffer.param().abi()).ok() } } #[repr(C)] @@ -2931,10 +2931,10 @@ impl IViewObjectPresentFlipSite { #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml"))] pub unsafe fn CreateSurfacePresenterFlip(&self, pdevice: P0, width: u32, height: u32, backbuffercount: u32, format: super::super::Graphics::Dxgi::Common::DXGI_FORMAT, mode: super::MsHtml::VIEW_OBJECT_ALPHA_MODE) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfacePresenterFlip)(windows_core::Interface::as_raw(self), pdevice.into_param().abi(), width, height, backbuffercount, format, mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).CreateSurfacePresenterFlip)(windows_core::Interface::as_raw(self), pdevice.param().abi(), width, height, backbuffercount, format, mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn GetDeviceLuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); @@ -3044,26 +3044,26 @@ windows_core::imp::interface_hierarchy!(Iwfolders, windows_core::IUnknown, super impl Iwfolders { pub unsafe fn navigate(&self, bstrurl: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).navigate)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).navigate)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn navigateFrame(&self, bstrurl: P0, bstrtargetframe: P1) -> windows_core::Result where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, { let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).navigateFrame)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), bstrtargetframe.into_param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(self).navigateFrame)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), bstrtargetframe.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } pub unsafe fn navigateNoSite(&self, bstrurl: P0, bstrtargetframe: P1, dwhwnd: u32, pwb: P2) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).navigateNoSite)(windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), bstrtargetframe.into_param().abi(), dwhwnd, pwb.into_param().abi()).ok() + (windows_core::Interface::vtable(self).navigateNoSite)(windows_core::Interface::as_raw(self), bstrurl.param().abi(), bstrtargetframe.param().abi(), dwhwnd, pwb.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/tests/component/src/bindings.rs b/crates/tests/component/src/bindings.rs index b04b74a33a..fc1e4300fc 100644 --- a/crates/tests/component/src/bindings.rs +++ b/crates/tests/component/src/bindings.rs @@ -213,19 +213,19 @@ impl Class { } pub fn Input(&self, a: P0, b: P1, c: P2, d: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let this = self; unsafe { (windows_core::Interface::vtable(this).Input)( windows_core::Interface::as_raw(this), - a.into_param().abi(), - b.into_param().abi(), - c.into_param().abi(), - d.into_param().abi(), + a.param().abi(), + b.param().abi(), + c.param().abi(), + d.param().abi(), ) .ok() } diff --git a/crates/tests/component_client/src/bindings.rs b/crates/tests/component_client/src/bindings.rs index 59a64f5949..6e0bc1102e 100644 --- a/crates/tests/component_client/src/bindings.rs +++ b/crates/tests/component_client/src/bindings.rs @@ -181,19 +181,19 @@ impl Class { } pub fn Input(&self, a: P0, b: P1, c: P2, d: P3) -> windows_core::Result<()> where - P0: windows_core::IntoParam, - P1: windows_core::IntoParam, - P2: windows_core::IntoParam, - P3: windows_core::IntoParam, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, { let this = self; unsafe { (windows_core::Interface::vtable(this).Input)( windows_core::Interface::as_raw(this), - a.into_param().abi(), - b.into_param().abi(), - c.into_param().abi(), - d.into_param().abi(), + a.param().abi(), + b.param().abi(), + c.param().abi(), + d.param().abi(), ) .ok() } diff --git a/crates/tests/riddle/src/generic_interfaces.rs b/crates/tests/riddle/src/generic_interfaces.rs index 9b8c30dcc5..1629b077f6 100644 --- a/crates/tests/riddle/src/generic_interfaces.rs +++ b/crates/tests/riddle/src/generic_interfaces.rs @@ -251,7 +251,7 @@ impl>::Default, ) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { @@ -280,7 +280,7 @@ impl>::Default, ) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { diff --git a/crates/tests/standalone/src/b_calendar.rs b/crates/tests/standalone/src/b_calendar.rs index 656cb7a1ec..946bbc63ce 100644 --- a/crates/tests/standalone/src/b_calendar.rs +++ b/crates/tests/standalone/src/b_calendar.rs @@ -997,14 +997,14 @@ impl Calendar { } pub fn Compare(&self, other: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).Compare)( windows_core::Interface::as_raw(this), - other.into_param().abi(), + other.param().abi(), &mut result__, ) .map(|| result__) @@ -1024,13 +1024,13 @@ impl Calendar { } pub fn CopyTo(&self, other: P0) -> windows_core::Result<()> where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { (windows_core::Interface::vtable(this).CopyTo)( windows_core::Interface::as_raw(this), - other.into_param().abi(), + other.param().abi(), ) .ok() } @@ -1127,13 +1127,13 @@ impl Calendar { languages: P0, ) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)( windows_core::Interface::as_raw(this), - languages.into_param().abi(), + languages.param().abi(), &mut result__, ) .and_then(|| windows_core::Type::from_abi(result__)) @@ -1145,13 +1145,13 @@ impl Calendar { clock: &windows_core::HSTRING, ) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCalendar)( windows_core::Interface::as_raw(this), - languages.into_param().abi(), + languages.param().abi(), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__, @@ -1166,13 +1166,13 @@ impl Calendar { timezoneid: &windows_core::HSTRING, ) -> windows_core::Result where - P0: windows_core::IntoParam>, + P0: windows_core::Param>, { Self::ICalendarFactory2(|this| unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCalendarWithTimeZone)( windows_core::Interface::as_raw(this), - languages.into_param().abi(), + languages.param().abi(), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), core::mem::transmute_copy(timezoneid), @@ -1894,14 +1894,14 @@ impl IVectorView { } pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)( windows_core::Interface::as_raw(this), - value.into_param().abi(), + value.param().abi(), index, &mut result__, ) diff --git a/crates/tests/standalone/src/b_uri.rs b/crates/tests/standalone/src/b_uri.rs index c82e277632..5e68ce9527 100644 --- a/crates/tests/standalone/src/b_uri.rs +++ b/crates/tests/standalone/src/b_uri.rs @@ -408,14 +408,14 @@ impl IVectorView { } pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)( windows_core::Interface::as_raw(this), - value.into_param().abi(), + value.param().abi(), index, &mut result__, ) @@ -825,14 +825,14 @@ impl Uri { } pub fn Equals(&self, puri: P0) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = self; unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).Equals)( windows_core::Interface::as_raw(this), - puri.into_param().abi(), + puri.param().abi(), &mut result__, ) .map(|| result__) @@ -983,14 +983,14 @@ impl WwwFormUrlDecoder { } pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: windows_core::IntoParam, + P0: windows_core::Param, { let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)( windows_core::Interface::as_raw(this), - value.into_param().abi(), + value.param().abi(), index, &mut result__, )